得物.apk(点击下载) / MerchantApplyExitDetainmentDialog.java


package com.shizhuang.duapp.modules.mall_seller.merchant.apply.dialog;

import a40.j;
import android.graphics.Color;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.text.SpannedString;
import android.text.style.AbsoluteSizeSpan;
import android.text.style.ForegroundColorSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.Group;
import co.c;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.dialog.BaseBottomDialog;
import com.shizhuang.duapp.common.widget.font.FontText;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.libs.duimageloaderview.options.DuRequestOptions;
import com.shizhuang.duapp.modules.du_mall_common.extension.ViewExtensionKt;
import com.shizhuang.duapp.modules.du_mall_common.widget.DuIconsTextView;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.model.MerchantRightsAndInterestsInfo;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.model.ShareInfoModel;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.model.ShareLinkModel;
import java.util.HashMap;
import java.util.List;
import jn.b;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u0001:\u0001\u0006B\u0007¢\u0006\u0004\b\u0004\u0010\u0005J\b\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/modules/mall_seller/merchant/apply/dialog/MerchantApplyExitDetainmentDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseBottomDialog;", "", "onResume", "<init>", "()V", "a", "du_mall_seller_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: MerchantApplyExitDetainmentDialog.kt */
public final class MerchantApplyExitDetainmentDialog extends BaseBottomDialog {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull

    /* renamed from: h  reason: collision with root package name */
    public static final a f20201h = new a(null);

    /* renamed from: c  reason: collision with root package name */
    public MerchantRightsAndInterestsInfo.Retain f20202c;
    public int d = 1;
    @Nullable
    public Function0<Unit> e;
    @Nullable
    public Function0<Unit> f;

    /* renamed from: g  reason: collision with root package name */
    public HashMap f20203g;

    public class _boostWeave {
        public static ChangeQuickRedirect changeQuickRedirect;

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreate")
        @Keep
        public static void FragmentMethodWeaver_onCreate(MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{merchantApplyExitDetainmentDialog, bundle}, null, changeQuickRedirect, true, 223252, new Class[]{MerchantApplyExitDetainmentDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                MerchantApplyExitDetainmentDialog.u(merchantApplyExitDetainmentDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (merchantApplyExitDetainmentDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.dialog.MerchantApplyExitDetainmentDialog")) {
                    b.f34396a.fragmentOnCreateMethod(merchantApplyExitDetainmentDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreateView")
        @Keep
        public static View FragmentMethodWeaver_onCreateView(@NonNull MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog, @androidx.annotation.Nullable LayoutInflater layoutInflater, @androidx.annotation.Nullable ViewGroup viewGroup, Bundle bundle) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{merchantApplyExitDetainmentDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 223255, new Class[]{MerchantApplyExitDetainmentDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
            if (proxy.isSupported) {
                return (View) proxy.result;
            }
            long currentTimeMillis = System.currentTimeMillis();
            View x = MerchantApplyExitDetainmentDialog.x(merchantApplyExitDetainmentDialog, layoutInflater, viewGroup, bundle);
            long currentTimeMillis2 = System.currentTimeMillis();
            if (merchantApplyExitDetainmentDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.dialog.MerchantApplyExitDetainmentDialog")) {
                b.f34396a.fragmentOnCreateViewMethod(merchantApplyExitDetainmentDialog, currentTimeMillis, currentTimeMillis2);
            }
            return x;
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void FragmentMethodWeaver_onResume(MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog) {
            if (!PatchProxy.proxy(new Object[]{merchantApplyExitDetainmentDialog}, null, changeQuickRedirect, true, 223253, new Class[]{MerchantApplyExitDetainmentDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                MerchantApplyExitDetainmentDialog.v(merchantApplyExitDetainmentDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (merchantApplyExitDetainmentDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.dialog.MerchantApplyExitDetainmentDialog")) {
                    b.f34396a.fragmentOnResumeMethod(merchantApplyExitDetainmentDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void FragmentMethodWeaver_onStart(MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog) {
            if (!PatchProxy.proxy(new Object[]{merchantApplyExitDetainmentDialog}, null, changeQuickRedirect, true, 223254, new Class[]{MerchantApplyExitDetainmentDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                MerchantApplyExitDetainmentDialog.w(merchantApplyExitDetainmentDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (merchantApplyExitDetainmentDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.dialog.MerchantApplyExitDetainmentDialog")) {
                    b.f34396a.fragmentOnStartMethod(merchantApplyExitDetainmentDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onViewCreated")
        @Keep
        public static void FragmentMethodWeaver_onViewCreated(@NonNull MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog, @androidx.annotation.Nullable View view, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{merchantApplyExitDetainmentDialog, view, bundle}, null, changeQuickRedirect, true, 223256, new Class[]{MerchantApplyExitDetainmentDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                MerchantApplyExitDetainmentDialog.y(merchantApplyExitDetainmentDialog, view, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (merchantApplyExitDetainmentDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.dialog.MerchantApplyExitDetainmentDialog")) {
                    b.f34396a.fragmentOnViewCreatedMethod(merchantApplyExitDetainmentDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

    /* compiled from: MerchantApplyExitDetainmentDialog.kt */
    public static final class a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }
    }

    public static void u(MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog, Bundle bundle) {
        int i = 1;
        if (!PatchProxy.proxy(new Object[]{bundle}, merchantApplyExitDetainmentDialog, changeQuickRedirect, false, 223233, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
            Bundle arguments = merchantApplyExitDetainmentDialog.getArguments();
            MerchantRightsAndInterestsInfo.Retain retain = null;
            MerchantRightsAndInterestsInfo.Retain retain2 = arguments != null ? (MerchantRightsAndInterestsInfo.Retain) arguments.getParcelable("model") : null;
            if (retain2 instanceof MerchantRightsAndInterestsInfo.Retain) {
                retain = retain2;
            }
            merchantApplyExitDetainmentDialog.f20202c = retain;
            Bundle arguments2 = merchantApplyExitDetainmentDialog.getArguments();
            if (arguments2 != null) {
                i = arguments2.getInt("currentStep");
            }
            merchantApplyExitDetainmentDialog.d = i;
        }
    }

    public static void v(MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog) {
        if (!PatchProxy.proxy(new Object[0], merchantApplyExitDetainmentDialog, changeQuickRedirect, false, 223237, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
            mv0.a aVar = mv0.a.f35758a;
            String obj = ((FontText) merchantApplyExitDetainmentDialog._$_findCachedViewById(R.id.clTitle)).getText().toString();
            boolean z = true;
            if (!PatchProxy.proxy(new Object[]{obj}, aVar, mv0.a.changeQuickRedirect, false, 232260, new Class[]{Object.class}, Void.TYPE).isSupported) {
                i60.b.f33293a.b("trade_common_exposure", "937", "2075", j.e(8, "block_content_title", obj));
            }
            if (((Group) merchantApplyExitDetainmentDialog._$_findCachedViewById(R.id.group)).getVisibility() != 0) {
                z = false;
            }
            if (z && !PatchProxy.proxy(new Object[0], aVar, mv0.a.changeQuickRedirect, false, 232267, new Class[0], Void.TYPE).isSupported) {
                a1.a.j(8, i60.b.f33293a, "trade_common_exposure", "1077", "2873");
            }
        }
    }

    public static void w(MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog) {
        if (!PatchProxy.proxy(new Object[0], merchantApplyExitDetainmentDialog, changeQuickRedirect, false, 223246, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public static View x(MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, merchantApplyExitDetainmentDialog, changeQuickRedirect, false, 223248, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
    }

    public static void y(MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, merchantApplyExitDetainmentDialog, changeQuickRedirect, false, 223250, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

    public View _$_findCachedViewById(int i) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 223242, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.f20203g == null) {
            this.f20203g = new HashMap();
        }
        View view = (View) this.f20203g.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.f20203g.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, com.shizhuang.duapp.common.dialog.BaseBottomDialog, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 223232, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, com.shizhuang.duapp.common.dialog.BaseBottomDialog, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, this, changeQuickRedirect, false, 223247, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : _boostWeave.FragmentMethodWeaver_onCreateView(this, layoutInflater, viewGroup, bundle);
    }

    @Override // androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onDestroyView() {
        HashMap hashMap;
        super.onDestroyView();
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223243, new Class[0], Void.TYPE).isSupported && (hashMap = this.f20203g) != null) {
            hashMap.clear();
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, com.shizhuang.duapp.common.dialog.BaseBottomDialog, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223236, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, com.shizhuang.duapp.common.dialog.BaseBottomDialog, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223245, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, com.shizhuang.duapp.common.dialog.BaseBottomDialog, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onViewCreated(View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 223249, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:104:0x05ca  */
    /* JADX WARNING: Removed duplicated region for block: B:106:0x05d9  */
    /* JADX WARNING: Removed duplicated region for block: B:113:0x05fe  */
    /* JADX WARNING: Removed duplicated region for block: B:115:0x060d  */
    /* JADX WARNING: Removed duplicated region for block: B:49:0x0347  */
    /* JADX WARNING: Removed duplicated region for block: B:51:0x035c  */
    /* JADX WARNING: Removed duplicated region for block: B:53:0x036b  */
    /* JADX WARNING: Removed duplicated region for block: B:55:0x0380  */
    /* JADX WARNING: Removed duplicated region for block: B:58:0x0390  */
    /* JADX WARNING: Removed duplicated region for block: B:60:0x03a5  */
    /* JADX WARNING: Removed duplicated region for block: B:96:0x0597  */
    /* JADX WARNING: Removed duplicated region for block: B:98:0x05a6  */
    @Override // com.shizhuang.duapp.common.dialog.BaseBottomDialog
    public void p(@NotNull View view) {
        TextView textView;
        DuImageLoaderView duImageLoaderView;
        TextView textView2;
        TextView textView3;
        DuImageLoaderView duImageLoaderView2;
        TextView textView4;
        TextView textView5;
        TextView textView6;
        c i;
        c i3;
        c i12;
        TextView textView7;
        DuImageLoaderView duImageLoaderView3;
        TextView textView8;
        DuImageLoaderView duImageLoaderView4;
        ShareInfoModel shareInfo;
        FontText fontText;
        FontText fontText2;
        TextView textView9;
        FontText fontText3;
        TextView textView10;
        TextView textView11;
        FontText fontText4;
        TextView textView12;
        FontText fontText5;
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 223235, new Class[]{View.class}, Void.TYPE).isSupported) {
            setCancelable(false);
            MerchantRightsAndInterestsInfo.Retain retain = this.f20202c;
            if (retain != null) {
                FrameLayout frameLayout = (FrameLayout) view.findViewById(R.id.flCoupon);
                List<MerchantRightsAndInterestsInfo.Coupon> coupons = retain.getCoupons();
                frameLayout.setVisibility((coupons != null ? coupons.size() : 0) > 0 ? 0 : 8);
                if (!PatchProxy.proxy(new Object[]{view, retain}, this, changeQuickRedirect, false, 223238, new Class[]{View.class, MerchantRightsAndInterestsInfo.Retain.class}, Void.TYPE).isSupported) {
                    FontText fontText6 = (FontText) view.findViewById(R.id.clTitle);
                    SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
                    ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.parseColor("#14151A"));
                    int length = spannableStringBuilder.length();
                    float f12 = (float) 18;
                    AbsoluteSizeSpan absoluteSizeSpan = new AbsoluteSizeSpan(fi.b.b(f12));
                    int length2 = spannableStringBuilder.length();
                    spannableStringBuilder.append((CharSequence) "还差");
                    spannableStringBuilder.setSpan(absoluteSizeSpan, length2, spannableStringBuilder.length(), 17);
                    spannableStringBuilder.setSpan(foregroundColorSpan, length, spannableStringBuilder.length(), 17);
                    ForegroundColorSpan foregroundColorSpan2 = new ForegroundColorSpan(Color.parseColor("#07B7B8"));
                    int length3 = spannableStringBuilder.length();
                    float f13 = (float) 26;
                    AbsoluteSizeSpan absoluteSizeSpan2 = new AbsoluteSizeSpan(fi.b.b(f13));
                    int length4 = spannableStringBuilder.length();
                    StringBuilder c5 = us.c.c(' ');
                    c5.append((4 - this.d) + 1);
                    c5.append(' ');
                    spannableStringBuilder.append((CharSequence) c5.toString());
                    spannableStringBuilder.setSpan(absoluteSizeSpan2, length4, spannableStringBuilder.length(), 17);
                    spannableStringBuilder.setSpan(foregroundColorSpan2, length3, spannableStringBuilder.length(), 17);
                    ForegroundColorSpan foregroundColorSpan3 = new ForegroundColorSpan(Color.parseColor("#14151A"));
                    int length5 = spannableStringBuilder.length();
                    AbsoluteSizeSpan absoluteSizeSpan3 = new AbsoluteSizeSpan(fi.b.b(f12));
                    int length6 = spannableStringBuilder.length();
                    spannableStringBuilder.append((CharSequence) "步入驻成功");
                    spannableStringBuilder.setSpan(absoluteSizeSpan3, length6, spannableStringBuilder.length(), 17);
                    spannableStringBuilder.setSpan(foregroundColorSpan3, length5, spannableStringBuilder.length(), 17);
                    Integer totalAmount = retain.getTotalAmount();
                    if ((totalAmount != null ? totalAmount.intValue() : 0) > 0) {
                        ForegroundColorSpan foregroundColorSpan4 = new ForegroundColorSpan(Color.parseColor("#14151A"));
                        int length7 = spannableStringBuilder.length();
                        AbsoluteSizeSpan absoluteSizeSpan4 = new AbsoluteSizeSpan(fi.b.b(f12));
                        int length8 = spannableStringBuilder.length();
                        spannableStringBuilder.append((CharSequence) ",可得");
                        spannableStringBuilder.setSpan(absoluteSizeSpan4, length8, spannableStringBuilder.length(), 17);
                        spannableStringBuilder.setSpan(foregroundColorSpan4, length7, spannableStringBuilder.length(), 17);
                        ForegroundColorSpan foregroundColorSpan5 = new ForegroundColorSpan(Color.parseColor("#07B7B8"));
                        int length9 = spannableStringBuilder.length();
                        AbsoluteSizeSpan absoluteSizeSpan5 = new AbsoluteSizeSpan(fi.b.b(f12));
                        int length10 = spannableStringBuilder.length();
                        spannableStringBuilder.append((CharSequence) " ¥ ");
                        spannableStringBuilder.setSpan(absoluteSizeSpan5, length10, spannableStringBuilder.length(), 17);
                        AbsoluteSizeSpan absoluteSizeSpan6 = new AbsoluteSizeSpan(fi.b.b(f13));
                        int length11 = spannableStringBuilder.length();
                        StringBuilder sb2 = new StringBuilder();
                        Integer totalAmount2 = retain.getTotalAmount();
                        sb2.append(totalAmount2 != null ? totalAmount2.intValue() : 0);
                        sb2.append(' ');
                        spannableStringBuilder.append((CharSequence) sb2.toString());
                        spannableStringBuilder.setSpan(absoluteSizeSpan6, length11, spannableStringBuilder.length(), 17);
                        spannableStringBuilder.setSpan(foregroundColorSpan5, length9, spannableStringBuilder.length(), 17);
                        ForegroundColorSpan foregroundColorSpan6 = new ForegroundColorSpan(Color.parseColor("#14151A"));
                        int length12 = spannableStringBuilder.length();
                        AbsoluteSizeSpan absoluteSizeSpan7 = new AbsoluteSizeSpan(fi.b.b(f12));
                        int length13 = spannableStringBuilder.length();
                        spannableStringBuilder.append((CharSequence) "新人券");
                        spannableStringBuilder.setSpan(absoluteSizeSpan7, length13, spannableStringBuilder.length(), 17);
                        spannableStringBuilder.setSpan(foregroundColorSpan6, length12, spannableStringBuilder.length(), 17);
                    }
                    Unit unit = Unit.INSTANCE;
                    fontText6.setText(new SpannedString(spannableStringBuilder));
                }
                DuImageLoaderView duImageLoaderView5 = null;
                if (!PatchProxy.proxy(new Object[]{view, retain}, this, changeQuickRedirect, false, 223239, new Class[]{View.class, MerchantRightsAndInterestsInfo.Retain.class}, Void.TYPE).isSupported) {
                    ViewStub viewStub = (ViewStub) view.findViewById(R.id.vsCoupon);
                    List<MerchantRightsAndInterestsInfo.Coupon> coupons2 = retain.getCoupons();
                    List filterNotNull = coupons2 != null ? CollectionsKt___CollectionsKt.filterNotNull(coupons2) : null;
                    if (filterNotNull == null) {
                        filterNotNull = CollectionsKt__CollectionsKt.emptyList();
                    }
                    if (filterNotNull.size() == 1) {
                        viewStub.setLayoutResource(R.layout.dialog_merchant_apply_exit_coupon1);
                        View inflate = viewStub.inflate();
                        fontText5 = (FontText) inflate.findViewById(R.id.tvCouponPrice1);
                        textView12 = (TextView) inflate.findViewById(R.id.tvCouponLimit1);
                        MerchantRightsAndInterestsInfo.Coupon coupon = (MerchantRightsAndInterestsInfo.Coupon) filterNotNull.get(0);
                        ((TextView) inflate.findViewById(R.id.tvCouponDesc)).setText(coupon.getTitle());
                        ((TextView) inflate.findViewById(R.id.tvCouponEffectiveType)).setText(coupon.getLimitDesc());
                        ((TextView) inflate.findViewById(R.id.tvCouponEffectiveTime)).setText(coupon.getValidTimeStart() + "-" + coupon.getValidTimeEnd());
                        textView11 = null;
                        fontText4 = null;
                    } else if (filterNotNull.size() == 2) {
                        viewStub.setLayoutResource(R.layout.dialog_merchant_apply_exit_coupon2);
                        View inflate2 = viewStub.inflate();
                        fontText5 = (FontText) inflate2.findViewById(R.id.tvCouponPrice1);
                        textView12 = (TextView) inflate2.findViewById(R.id.tvCouponLimit1);
                        fontText4 = (FontText) inflate2.findViewById(R.id.tvCouponPrice2);
                        textView11 = (TextView) inflate2.findViewById(R.id.tvCouponLimit2);
                    } else {
                        if (filterNotNull.size() > 2) {
                            viewStub.setLayoutResource(R.layout.dialog_merchant_apply_exit_coupon3);
                            View inflate3 = viewStub.inflate();
                            FontText fontText7 = (FontText) inflate3.findViewById(R.id.tvCouponPrice1);
                            fontText = (FontText) inflate3.findViewById(R.id.tvCouponPrice3);
                            textView10 = (TextView) inflate3.findViewById(R.id.tvCouponLimit3);
                            textView11 = (TextView) inflate3.findViewById(R.id.tvCouponLimit2);
                            fontText2 = (FontText) inflate3.findViewById(R.id.tvCouponPrice2);
                            textView9 = (TextView) inflate3.findViewById(R.id.tvCouponLimit1);
                            fontText3 = fontText7;
                        } else {
                            textView11 = null;
                            textView10 = null;
                            fontText3 = null;
                            textView9 = null;
                            fontText2 = null;
                            fontText = null;
                        }
                        if (fontText3 != null) {
                            fontText3.c(String.valueOf(((MerchantRightsAndInterestsInfo.Coupon) filterNotNull.get(0)).getAmount()), 22, 32);
                        }
                        if (textView9 != null) {
                            textView9.setText(((MerchantRightsAndInterestsInfo.Coupon) filterNotNull.get(0)).getThresholdDesc());
                        }
                        if (fontText2 != null) {
                            fontText2.c(String.valueOf(((MerchantRightsAndInterestsInfo.Coupon) filterNotNull.get(1)).getAmount()), 22, 32);
                        }
                        if (textView11 != null) {
                            textView11.setText(((MerchantRightsAndInterestsInfo.Coupon) filterNotNull.get(1)).getThresholdDesc());
                        }
                        if (fontText != null) {
                            fontText.c(String.valueOf(((MerchantRightsAndInterestsInfo.Coupon) filterNotNull.get(2)).getAmount()), 22, 32);
                        }
                        if (textView10 != null) {
                            textView10.setText(((MerchantRightsAndInterestsInfo.Coupon) filterNotNull.get(2)).getThresholdDesc());
                        }
                    }
                    fontText2 = fontText4;
                    fontText = null;
                    textView9 = textView12;
                    fontText3 = fontText5;
                    textView10 = null;
                    if (fontText3 != null) {
                    }
                    if (textView9 != null) {
                    }
                    if (fontText2 != null) {
                    }
                    if (textView11 != null) {
                    }
                    if (fontText != null) {
                    }
                    if (textView10 != null) {
                    }
                }
                if (retain.getShareInfo() != null) {
                    ViewExtensionKt.o((Group) view.findViewById(R.id.group));
                    ViewExtensionKt.k((FrameLayout) view.findViewById(R.id.flMoreBenefits));
                    if (!PatchProxy.proxy(new Object[]{view, retain}, this, changeQuickRedirect, false, 223241, new Class[]{View.class, MerchantRightsAndInterestsInfo.Retain.class}, Void.TYPE).isSupported && (shareInfo = retain.getShareInfo()) != null) {
                        ((DuImageLoaderView) view.findViewById(R.id.ivShare)).i(shareInfo.getBackImg()).x();
                        com.shizhuang.duapp.common.extension.ViewExtensionKt.j((DuIconsTextView) view.findViewById(R.id.tvRule), 0, new MerchantApplyExitDetainmentDialog$setShare$$inlined$let$lambda$1(shareInfo, this, view), 1);
                        ShareLinkModel shareLink = shareInfo.getShareLink();
                        if (shareLink == null) {
                            shareLink = shareInfo.getShareLinkOld();
                        }
                        com.shizhuang.duapp.common.extension.ViewExtensionKt.j((DuImageLoaderView) view.findViewById(R.id.ivShare), 0, new MerchantApplyExitDetainmentDialog$setShare$$inlined$let$lambda$2(shareLink, this, view), 1);
                    }
                } else {
                    ViewExtensionKt.k((Group) view.findViewById(R.id.group));
                    ViewExtensionKt.o((FrameLayout) view.findViewById(R.id.flMoreBenefits));
                    if (!PatchProxy.proxy(new Object[]{view, retain}, this, changeQuickRedirect, false, 223240, new Class[]{View.class, MerchantRightsAndInterestsInfo.Retain.class}, Void.TYPE).isSupported) {
                        ViewStub viewStub2 = (ViewStub) view.findViewById(R.id.vsBenefits);
                        ((TextView) view.findViewById(R.id.tvBenefitsTitle)).setText(retain.getContent());
                        List<MerchantRightsAndInterestsInfo.MoreBenefit> moreBenefits = retain.getMoreBenefits();
                        List filterNotNull2 = moreBenefits != null ? CollectionsKt___CollectionsKt.filterNotNull(moreBenefits) : null;
                        if (filterNotNull2 == null) {
                            filterNotNull2 = CollectionsKt__CollectionsKt.emptyList();
                        }
                        if (filterNotNull2.size() == 1) {
                            viewStub2.setLayoutResource(R.layout.dialog_merchant_apply_exit_benefits1);
                            View inflate4 = viewStub2.inflate();
                            duImageLoaderView4 = (DuImageLoaderView) inflate4.findViewById(R.id.ivBenefitsIcon1);
                            textView8 = (TextView) inflate4.findViewById(R.id.tvBenefitsTitle1);
                            textView4 = (TextView) inflate4.findViewById(R.id.tvBenefitsContent1);
                            textView6 = null;
                            duImageLoaderView3 = null;
                            textView7 = null;
                        } else if (filterNotNull2.size() == 2) {
                            viewStub2.setLayoutResource(R.layout.dialog_merchant_apply_exit_benefits2);
                            View inflate5 = viewStub2.inflate();
                            duImageLoaderView4 = (DuImageLoaderView) inflate5.findViewById(R.id.ivBenefitsIcon1);
                            textView8 = (TextView) inflate5.findViewById(R.id.tvBenefitsTitle1);
                            textView4 = (TextView) inflate5.findViewById(R.id.tvBenefitsContent1);
                            duImageLoaderView3 = (DuImageLoaderView) inflate5.findViewById(R.id.ivBenefitsIcon2);
                            textView7 = (TextView) inflate5.findViewById(R.id.tvBenefitsTitle2);
                            textView6 = (TextView) inflate5.findViewById(R.id.tvBenefitsContent2);
                        } else {
                            if (filterNotNull2.size() > 2) {
                                viewStub2.setLayoutResource(R.layout.dialog_merchant_apply_exit_benefits3);
                                View inflate6 = viewStub2.inflate();
                                duImageLoaderView5 = (DuImageLoaderView) inflate6.findViewById(R.id.ivBenefitsIcon1);
                                textView5 = (TextView) inflate6.findViewById(R.id.tvBenefitsTitle1);
                                textView4 = (TextView) inflate6.findViewById(R.id.tvBenefitsContent1);
                                duImageLoaderView2 = (DuImageLoaderView) inflate6.findViewById(R.id.ivBenefitsIcon2);
                                textView3 = (TextView) inflate6.findViewById(R.id.tvBenefitsTitle2);
                                TextView textView13 = (TextView) inflate6.findViewById(R.id.tvBenefitsContent2);
                                duImageLoaderView = (DuImageLoaderView) inflate6.findViewById(R.id.ivBenefitsIcon3);
                                textView = (TextView) inflate6.findViewById(R.id.tvBenefitsTitle3);
                                textView2 = (TextView) inflate6.findViewById(R.id.tvBenefitsContent3);
                                textView6 = textView13;
                            } else {
                                textView6 = null;
                                textView5 = null;
                                textView4 = null;
                                duImageLoaderView2 = null;
                                textView3 = null;
                                textView2 = null;
                                duImageLoaderView = null;
                                textView = null;
                            }
                            if (!(duImageLoaderView5 == null || (i12 = duImageLoaderView5.i(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(0)).getUrl())) == null)) {
                                i12.x();
                            }
                            if (textView5 != null) {
                                textView5.setText(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(0)).getTitle());
                            }
                            if (textView4 != null) {
                                textView4.setText(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(0)).getContent());
                            }
                            if (!(duImageLoaderView2 == null || (i3 = duImageLoaderView2.i(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(1)).getUrl())) == null)) {
                                i3.x();
                            }
                            if (textView3 != null) {
                                textView3.setText(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(1)).getTitle());
                            }
                            if (textView6 != null) {
                                textView6.setText(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(1)).getContent());
                            }
                            if (!(duImageLoaderView == null || (i = duImageLoaderView.i(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(2)).getUrl())) == null)) {
                                i.x();
                            }
                            if (textView != null) {
                                textView.setText(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(2)).getTitle());
                            }
                            if (textView2 != null) {
                                textView2.setText(((MerchantRightsAndInterestsInfo.MoreBenefit) filterNotNull2.get(2)).getContent());
                            }
                        }
                        textView2 = null;
                        textView = null;
                        duImageLoaderView5 = duImageLoaderView4;
                        textView5 = textView8;
                        duImageLoaderView2 = duImageLoaderView3;
                        textView3 = textView7;
                        duImageLoaderView = null;
                        i12.x();
                        if (textView5 != null) {
                        }
                        if (textView4 != null) {
                        }
                        i3.x();
                        if (textView3 != null) {
                        }
                        if (textView6 != null) {
                        }
                        i.x();
                        if (textView != null) {
                        }
                        if (textView2 != null) {
                        }
                    }
                }
                ((TextView) view.findViewById(R.id.tvExit)).setOnClickListener(new MerchantApplyExitDetainmentDialog$bindView$1(this));
                ((TextView) view.findViewById(R.id.tvContinue)).setOnClickListener(new MerchantApplyExitDetainmentDialog$bindView$2(this));
                ((DuRequestOptions) mn.a.f35714a.g("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/merchant/ic_merchant_apply_coupon_bottom.png").u(new MerchantApplyExitDetainmentDialog$bindView$3(this))).G(getViewLifecycleOwner()).y();
            }
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseBottomDialog
    public int t() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223234, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.dialog_merchant_apply_exit_detainment;
    }

    public final String z() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223231, new Class[0], String.class);
        if (proxy.isSupported) {
            return (String) proxy.result;
        }
        int i = this.d;
        if (i == 1) {
            return "实名认证";
        }
        if (i == 2) {
            return "选择服务";
        }
        return i == 3 ? "填写地址" : "确认协议";
    }
}