package com.ss.android.ugc.aweme.ecommerce.pdp;

import X.0Bv;
import X.0CH;
import X.2Pr;
import X.2RX;
import X.2RY;
import X.2cN;
import X.2k0;
import X.3Ok;
import X.3SI;
import X.3SM;
import X.3df;
import X.4CM;
import X.4r1;
import X.5Am;
import X.5An;
import X.5vY;
import X.5wO;
import X.7W7;
import X.7df;
import X.7he;
import X.B1N;
import X.B8T;
import X.C1835Aid;
import X.C5360ByO;
import X.C5957CJd;
import X.C5965CJl;
import X.C5972CJs;
import X.C6063CNf;
import X.C6108COy;
import X.C6215CTb;
import X.C6228CTo;
import X.C6237CTx;
import X.C6239CTz;
import X.C6240CUa;
import X.C6241CUb;
import X.C6242CUc;
import X.C6247CUh;
import X.C6249CUj;
import X.C7O;
import X.C7R;
import X.CEG;
import X.CEH;
import X.CEK;
import X.CG9;
import X.CJZ;
import X.CNM;
import X.CPI;
import X.CTL;
import X.CTO;
import X.CTQ;
import X.CTV;
import X.CU7;
import X.CU8;
import X.CUG;
import X.CUP;
import X.CUR;
import X.CUY;
import X.CVC;
import X.CVJ;
import X.CW1;
import X.CW4;
import X.CYQ;
import X.CYU;
import X.CYW;
import X.CZ8;
import X.CqM;
import X.Crj;
import X.Cwt;
import X.D1G;
import X.D4t;
import X.DAe;
import X.DCr;
import X.DRZ;
import X.DUT;
import X.DUy;
import X.DUz;
import X.DV0;
import X.DV9;
import X.DVU;
import X.ESN;
import X.K41;
import X.KEM;
import X.LsC;
import X.LsD;
import X.LsE;
import X.LsF;
import X.Lsh;
import X.M12;
import X.PHD;
import X.Qen;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.bytedance.jedi.arch.JediViewModel;
import com.bytedance.jedi.arch.lifecycleAwareLazy;
import com.bytedance.router.SmartRouter;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.ss.android.ugc.aweme.ecommerce.ab.EComLiveDegradeExperiment;
import com.ss.android.ugc.aweme.ecommerce.pdp.IPdpStarter;
import com.ss.android.ugc.aweme.ecommerce.pdp.repository.dto.ProductPackStruct;
import com.ss.android.ugc.aweme.ecommerce.pdp.view.compat.FullScreenBottomSheetDialogFragment;
import com.ss.android.ugc.aweme.ecommerce.pdp.widget.PdpAddonFloatWidget;
import com.ss.android.ugc.aweme.ecommerce.pdp.widget.PdpBodyWidget;
import com.ss.android.ugc.aweme.ecommerce.pdp.widget.PdpBottomNavBarWidget;
import com.ss.android.ugc.aweme.ecommerce.pdp.widget.PdpHeadNavBarWidget;
import com.ss.android.ugc.aweme.ecommerce.pdp.widget.PdpReviewWidget;
import com.ss.android.ugc.aweme.utils.ActivityStack;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import kotlin.h.b.n;

public final class PdpFragment extends FullScreenBottomSheetDialogFragment implements B1N<C1835Aid>, 5vY, CVJ {
    public static final CVC LJIIJ = new CVC((byte) 0);
    public C1835Aid LIZ = new C1835Aid();
    public 2cN LIZIZ;
    public View LIZJ;
    public int LIZLLL;
    public long LJ = -1;
    public boolean LJFF;
    public boolean LJI;
    public PdpAddonFloatWidget LJII;
    public boolean LJIIIIZZ;
    public boolean LJIIIZ;
    public final Crj LJIILLIIL = 7he.LIZ(new CU8(this));
    public final Crj LJIIZILJ = 7he.LIZ(new C6241CUb(this));
    public final Crj LJIJ = 7he.LIZ(new C6247CUh(this));
    public final Crj LJIJI = 7he.LIZ(new CUG(this));
    public final lifecycleAwareLazy LJIJJ;
    public boolean LJIJJLI;
    public final C6239CTz LJIL;
    public SparseArray LJJ;

    static {
        Covode.recordClassIndex(71023);
    }

    private final PdpBodyWidget LJJ() {
        return (PdpBodyWidget) this.LJIIZILJ.getValue();
    }

    public final View LIZ(int i) {
        if (this.LJJ == null) {
            this.LJJ = new SparseArray();
        }
        View view = (View) this.LJJ.get(i);
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LJJ.put(i, findViewById);
        return findViewById;
    }

    public final ESN LIZJ() {
        return (ESN) this.LJIILLIIL.getValue();
    }

    public final PdpReviewWidget LJII() {
        return (PdpReviewWidget) this.LJIJ.getValue();
    }

    public final 3SI LJIIIIZZ() {
        return (3SI) this.LJIJI.getValue();
    }

    public final PdpViewModel LJIIIZ() {
        return (PdpViewModel) this.LJIJJ.getValue();
    }

    public final void LJIIJJI() {
    }

    public final void LJIJ() {
        SparseArray sparseArray = this.LJJ;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public final String ce_() {
        return "page_name";
    }

    public final String ck_() {
        return "product_detail";
    }

    public final boolean getUniqueOnlyGlobal() {
        return true;
    }

    public final /* synthetic */ void onDestroyView() {
        super.onDestroyView();
        LJIJ();
    }

    public final /* bridge */ /* synthetic */ 0Bv be_() {
        return this.LIZ;
    }

    public final Map<String, String> cd_() {
        return CYQ.LIZIZ;
    }

    public final /* bridge */ /* synthetic */ 5An getReceiver() {
        return this;
    }

    public final List<String> getRegisteredLane() {
        return CYQ.LIZ;
    }

    public final CZ8 cc_() {
        return CYU.LIZ((Object) this);
    }

    public final CZ8 cf_() {
        return CYU.LIZIZ((Object) this);
    }

    public final 0CH getLifecycleOwner() {
        5wO.LIZJ(this);
        return this;
    }

    public final DUz getLifecycleOwnerHolder() {
        5wO.LIZ(this);
        return this;
    }

    public final DUy<DVU> getReceiverHolder() {
        5wO.LIZIZ(this);
        return this;
    }

    private final void LJJIFFI() {
        if (LJJI()) {
            7df.LJJJI().LJJI();
        }
    }

    private final void LJJII() {
        if (LJJI()) {
            7df.LJJJI().LJJIIZI();
        }
    }

    public final boolean LJIIJ() {
        return EComLiveDegradeExperiment.LIZ().getPageAnimDegrade();
    }

    public final void LJIILL() {
        CG9 cg9 = LJIIIZ().LJJ;
        if (cg9 != null) {
            cg9.LIZ(true);
        }
        super.LJIILL();
    }

    public final void LJIILLIIL() {
        CG9 cg9 = LJIIIZ().LJJ;
        if (cg9 != null) {
            cg9.LIZ(false);
        }
        super.LJIILLIIL();
    }

    public final void LJIIZILJ() {
        try {
            this.LJIIIIZZ = true;
            LJIIIIZZ().dismiss();
        } catch (Exception unused) {
        }
    }

    public final void onDestroy() {
        PdpFragment.super.onDestroy();
        2cN r0 = this.LIZIZ;
        if (r0 != null) {
            r0.dispose();
        }
        this.LIZIZ = null;
    }

    private final boolean LJJI() {
        IPdpStarter.PdpEnterParam pdpEnterParam = LJIIIZ().LIZ;
        if (pdpEnterParam == null || !pdpEnterParam.getPlayerControl()) {
            return false;
        }
        return true;
    }

    public final void onPause() {
        super.onPause();
        if (LJIIIZ().LIZIZ && LJJI()) {
            CqM.LIZ(new 3df(false, getContext()));
        }
    }

    public final void LJIIL() {
        this.LJIIIZ = true;
        CG9 cg9 = LJIIIZ().LJJ;
        if (cg9 != null) {
            cg9.LIZ("return");
        }
        C5972CJs cJs = new C5972CJs(LJIIIZ().LJIIJJI());
        cJs.LIZ(CJZ.RETURN);
        cJs.LIZIZ();
        CG9 cg92 = LJIIIZ().LJJ;
        if (cg92 != null) {
            cg92.LIZ(CJZ.RETURN);
        }
        super.LJIIL();
    }

    public final void LJIILIIL() {
        this.LJIIIZ = true;
        CG9 cg9 = LJIIIZ().LJJ;
        if (cg9 != null) {
            cg9.LIZ("return");
        }
        C5972CJs cJs = new C5972CJs(LJIIIZ().LJIIJJI());
        cJs.LIZ(CJZ.RETURN);
        cJs.LIZIZ();
        CG9 cg92 = LJIIIZ().LJJ;
        if (cg92 != null) {
            cg92.LIZ(CJZ.RETURN);
        }
        super.LJIILIIL();
    }

    public final boolean LJIILJJIL() {
        CG9 cg9;
        this.LJIIIZ = true;
        CG9 cg92 = LJIIIZ().LJJ;
        if (cg92 != null) {
            cg92.LIZ("return");
        }
        C5972CJs cJs = new C5972CJs(LJIIIZ().LJIIJJI());
        cJs.LIZ(CJZ.RETURN);
        cJs.LIZIZ();
        boolean LJIILIIL = LJIIIZ().LJIILIIL();
        if (!LJIILIIL && (cg9 = LJIIIZ().LJJ) != null) {
            cg9.LIZ(CJZ.RETURN);
        }
        return LJIILIIL;
    }

    public final void onStop() {
        if (!this.LJIIIZ && !ActivityStack.isAppBackGround()) {
            C5972CJs cJs = new C5972CJs(LJIIIZ().LJIIJJI());
            cJs.LIZ(CJZ.NEXT);
            cJs.LIZIZ();
            CG9 cg9 = LJIIIZ().LJJ;
            if (cg9 != null) {
                cg9.LIZ(CJZ.NEXT);
            }
        }
        this.LJIIIZ = false;
        PdpFragment.super.onStop();
    }

    public PdpFragment() {
        C6063CNf cNf = new C6063CNf(this);
        D1G LIZ2 = KEM.LIZ.LIZ(PdpViewModel.class);
        CU7 cu7 = new CU7(LIZ2);
        this.LJIJJ = new lifecycleAwareLazy(this, cu7, new C6242CUc(this, cu7, LIZ2, cNf));
        this.LJIL = new C6239CTz(this);
    }

    public final void onResume() {
        super.onResume();
        if (LJJI()) {
            CqM.LIZ(new 3df(true, getContext()));
        }
        if (this.LJ > 0) {
            if (this.LJFF && LJIIIZ().LJJ != null) {
                2k0.LIZ.LIZ("rd_tiktokec_mall_video_page_pdp_dur", new 2RY(this.LJ));
            }
            if (this.LJI && LJIIIZ().LJJ != null) {
                2k0.LIZ.LIZ("rd_tiktokec_mall_live_page_pdp_dur", new 2RX(this.LJ));
            }
            this.LJ = -1;
            this.LJI = false;
            this.LJFF = false;
        }
    }

    public final void LIZ(CYW cyw) {
        M12.LIZ(cyw);
        CG9 cg9 = LJIIIZ().LJJ;
        if (cg9 != null) {
            cg9.LIZ(cyw);
        }
    }

    public final void LIZ(boolean z) {
        CG9 cg9 = LJIIIZ().LJJ;
        if (cg9 != null) {
            cg9.LIZ(false);
        }
        super.LIZ(z);
    }

    public final void LIZIZ(boolean z) {
        if (isResumed() && this.LJIJJLI && LJJI()) {
            if (z) {
                View view = getView();
                if (view != null) {
                    view.post(CUY.LIZ);
                }
                7df.LJJJI().LJJIIZ();
                return;
            }
            LJJII();
            LJJIFFI();
        }
    }

    public final void onDismiss(DialogInterface dialogInterface) {
        M12.LIZ(dialogInterface);
        PdpFragment.super.onDismiss(dialogInterface);
        if (LJJI()) {
            7W7 LJJJI = 7df.LJJJI();
            n.LIZIZ(LJJJI, "");
            boolean LJIILJJIL = LJJJI.LJIILJJIL();
            if (this.LJIJJLI && !LJIILJJIL) {
                LJJIFFI();
            }
            LJJII();
        }
        LJIIZILJ();
    }

    public final void onActivityCreated(Bundle bundle) {
        super.onActivityCreated(bundle);
        IPdpStarter.PdpEnterParam pdpEnterParam = LJIIIZ().LIZ;
        if (pdpEnterParam != null) {
            if (pdpEnterParam.getCollapsible()) {
                if (pdpEnterParam.getCollapsedHeight() != null) {
                    BottomSheetBehavior<View> bottomSheetBehavior = this.LJIIJJI;
                    if (bottomSheetBehavior != null) {
                        bottomSheetBehavior.LIZ((int) pdpEnterParam.getCollapsedHeight().floatValue());
                    }
                } else {
                    BottomSheetBehavior<View> bottomSheetBehavior2 = this.LJIIJJI;
                    if (bottomSheetBehavior2 != null) {
                        bottomSheetBehavior2.LIZ((int) 3SM.LIZ());
                    }
                }
                LJIILLIIL();
                BottomSheetBehavior<View> bottomSheetBehavior3 = this.LJIIJJI;
                if (bottomSheetBehavior3 != null) {
                    bottomSheetBehavior3.LJI = false;
                }
            } else if (pdpEnterParam.getCollapsedHeight() == null) {
                BottomSheetBehavior<View> bottomSheetBehavior4 = this.LJIIJJI;
                if (bottomSheetBehavior4 != null) {
                    bottomSheetBehavior4.LIZ((int) pdpEnterParam.getExpandHeight());
                }
                LJIILL();
                LJIIIZ().LIZIZ = true;
                LJIIIZ().LIZJ = true;
                BottomSheetBehavior<View> bottomSheetBehavior5 = this.LJIIJJI;
                if (bottomSheetBehavior5 != null) {
                    bottomSheetBehavior5.LJI = true;
                }
                this.LJIILJJIL = false;
            } else {
                BottomSheetBehavior<View> bottomSheetBehavior6 = this.LJIIJJI;
                if (bottomSheetBehavior6 != null) {
                    bottomSheetBehavior6.LIZ((int) pdpEnterParam.getCollapsedHeight().floatValue());
                }
                LJIILLIIL();
                BottomSheetBehavior<View> bottomSheetBehavior7 = this.LJIIJJI;
                if (bottomSheetBehavior7 != null) {
                    bottomSheetBehavior7.LJI = false;
                }
                this.LJIILJJIL = true;
            }
            ViewGroup LJIJJLI2 = LJIJJLI();
            if (LJIJJLI2 != null) {
                Qen.LIZIZ(LJIJJLI2, (Integer) null, Integer.valueOf(3SM.LIZIZ - ((int) pdpEnterParam.getExpandHeight())), (Integer) null, (Integer) null, false, 29);
            }
        }
    }

    public final void onCreate(Bundle bundle) {
        Serializable serializable;
        int i;
        boolean z;
        ProductPackStruct productPackStruct;
        long j;
        Long l;
        Long l2;
        HashMap<String, Object> trackParams;
        HashMap<String, Object> trackParams2;
        long j2;
        long j3;
        int i2;
        Bundle bundle2 = bundle;
        PdpFragment.super.onCreate(bundle2);
        if (bundle2 != null) {
            dismissAllowingStateLoss();
        }
        Bundle arguments = getArguments();
        if (arguments != null) {
            serializable = arguments.getSerializable("ENTER_PARAMS");
        } else {
            serializable = null;
        }
        Objects.requireNonNull(serializable, "null cannot be cast to non-null type com.ss.android.ugc.aweme.ecommerce.pdp.IPdpStarter.PdpEnterParam");
        IPdpStarter.PdpEnterParam pdpEnterParam = (IPdpStarter.PdpEnterParam) serializable;
        LJIIIZ().LJJ = CG9.LJJIZ.LIZ(getContext());
        LJIIIZ().LIZ = pdpEnterParam;
        LJIIIZ().LIZ(pdpEnterParam.getFullScreen());
        LJIIIZ().LJJIII = false;
        PdpViewModel LJIIIZ2 = LJIIIZ();
        Bundle arguments2 = getArguments();
        if (arguments2 != null) {
            i = arguments2.getInt("PREFETCH_TYPE");
        } else {
            i = 0;
        }
        LJIIIZ2.LJIIL = i;
        PdpViewModel LJIIIZ3 = LJIIIZ();
        if (pdpEnterParam.getFullScreen() || pdpEnterParam.getExpandHeight() >= ((float) (3SM.LIZIZ - 4CM.LIZ()))) {
            z = true;
        } else {
            z = false;
        }
        LJIIIZ3.LJJII = z;
        Bundle arguments3 = getArguments();
        if (arguments3 != null) {
            productPackStruct = (ProductPackStruct) arguments3.getParcelable("PREFETCH_RESULT");
        } else {
            productPackStruct = null;
        }
        try {
            PdpViewModel LJIIIZ4 = LJIIIZ();
            Resources resources = getResources();
            n.LIZIZ(resources, "");
            LJIIIZ4.LJIILJJIL = resources.getDisplayMetrics().density;
        } catch (Exception unused) {
        }
        Bundle arguments4 = getArguments();
        if (arguments4 == null || (i2 = arguments4.getInt("ERROR_CODE", 0)) == 0) {
            if (productPackStruct != null) {
                Bundle arguments5 = getArguments();
                if (arguments5 != null) {
                    l = Long.valueOf(arguments5.getLong("PREFETCH_FINISH_TIME"));
                } else {
                    l = null;
                }
                Bundle arguments6 = getArguments();
                if (arguments6 != null) {
                    l2 = Long.valueOf(arguments6.getLong("CLICK_TIMESTAMP"));
                } else {
                    l2 = null;
                }
                PdpViewModel.LIZ(LJIIIZ(), productPackStruct, (Integer) null, false, false, true, false, 32);
                CG9 cg9 = LJIIIZ().LJJ;
                long j4 = 0;
                if (cg9 != null) {
                    if (l != null) {
                        j3 = l.longValue();
                    } else {
                        j3 = 0;
                    }
                    cg9.LJIJJ = j3;
                }
                CG9 cg92 = LJIIIZ().LJJ;
                if (cg92 != null) {
                    if (l2 != null) {
                        j2 = l2.longValue();
                    } else {
                        j2 = 0;
                    }
                    cg92.LJIJI = j2;
                }
                CG9 cg93 = LJIIIZ().LJJ;
                if (cg93 != null) {
                    if (l2 != null) {
                        j4 = l2.longValue();
                    }
                    cg93.LJIJ = j4;
                }
                PopUp popUp = productPackStruct.LJIJJLI;
                if (!(popUp == null || popUp.LIZ == null || (trackParams2 = pdpEnterParam.getTrackParams()) == null)) {
                    LIZ(popUp, (Map<String, ? extends Object>) trackParams2);
                }
                if (productPackStruct.LJIJJLI != null) {
                    PopUp popUp2 = productPackStruct.LJIJJLI;
                    if (popUp2 == null) {
                        n.LIZIZ();
                    }
                    if (!(popUp2.LIZ == null || (trackParams = pdpEnterParam.getTrackParams()) == null)) {
                        PopUp popUp3 = productPackStruct.LJIJJLI;
                        if (popUp3 == null) {
                            n.LIZIZ();
                        }
                        LIZ(popUp3, (Map<String, ? extends Object>) trackParams);
                    }
                }
                if (LJIIIZ().LJIIL != 4) {
                    LJIIIZ().LIZ(productPackStruct.LIZIZ, productPackStruct);
                }
            } else {
                C6237CTx LIZ2 = IPdpStarter.LIZ.LIZ().LIZ(pdpEnterParam, true);
                if (LIZ2.LIZLLL != null) {
                    PdpViewModel.LIZ(LJIIIZ(), LIZ2.LIZLLL, (Integer) null, false, false, true, false, 32);
                    PdpViewModel LJIIIZ5 = LJIIIZ();
                    ProductPackStruct productPackStruct2 = LIZ2.LIZLLL;
                    if (productPackStruct2 == null) {
                        n.LIZIZ();
                    }
                    LJIIIZ5.LIZ(productPackStruct2.LIZIZ, LIZ2.LIZLLL);
                } else {
                    3Ok r6 = new 3Ok();
                    r6.element = false;
                    this.LIZIZ = LIZ2.LIZJ.LIZ(new CTL(this, r6, pdpEnterParam), new C6215CTb(this));
                    HashMap<String, String> pdpPreParam = pdpEnterParam.getPdpPreParam();
                    this.LJFF = n.LIZ("true", pdpPreParam.get("video_anchor"));
                    this.LJI = n.LIZ("true", pdpPreParam.get("live_anchor"));
                    String str = pdpPreParam.get("click_timestamp");
                    if (str != null) {
                        j = Long.parseLong(str);
                    } else {
                        j = -1;
                    }
                    this.LJ = j;
                    if (LJIIIZ().LIZIZ(pdpEnterParam.getProductId())) {
                        LJIIIZ().LIZ(pdpEnterParam.getProductId());
                        CG9 cg94 = LJIIIZ().LJJ;
                        if (cg94 != null) {
                            cg94.LIZ("hit_netcache", 1);
                        }
                    } else {
                        CG9 cg95 = LJIIIZ().LJJ;
                        if (cg95 != null) {
                            cg95.LIZ("hit_netcache", 0);
                        }
                        CG9 cg96 = LJIIIZ().LJJ;
                        if (cg96 != null) {
                            cg96.LIZ("has_data", 1);
                        }
                        r6.element = true;
                        DAe.LIZ(LJIIIZ().LJJIJLIJ, DCr.LIZLLL, new CTQ(this, pdpEnterParam, pdpPreParam, r6, (4r1) null), 2);
                    }
                }
            }
            if (C5360ByO.LIZ()) {
                C7O.LIZIZ.LIZ();
                DAe.LIZ(LJIIIZ().LJJIJLIJ, DCr.LIZLLL, new CEG((4r1) null), 2);
            }
            if (C7R.LIZIZ()) {
                C7O.LIZIZ.LIZ();
                DAe.LIZ(LJIIIZ().LJJIJLIJ, DCr.LIZLLL, new CEH((4r1) null), 2);
                return;
            }
            return;
        }
        PdpViewModel.LIZ(LJIIIZ(), (ProductPackStruct) null, Integer.valueOf(i2), false, false, false, false, 60);
    }

    public final <VM1 extends JediViewModel<S1>, S1 extends 5Am, R> R withState(VM1 vm1, LsC<? super S1, ? extends R> lsC) {
        M12.LIZ(vm1, lsC);
        return 5wO.LIZ(vm1, lsC);
    }

    public final void LIZ(View view, float f) {
        M12.LIZ(view);
        super.LIZ(view, f);
        if (!Float.isNaN(f)) {
            LJIIIZ().LIZJ(new CNM(f));
            Iterator<T> it = LJIIIZ().LJIIJJI.iterator();
            while (it.hasNext()) {
                ((LsC) it.next()).invoke(Float.valueOf(f));
            }
        }
    }

    public final void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        PdpFragment.super.onViewCreated(view, bundle);
        CW4.LIZ(view, this);
        PdpHeadNavBarWidget pdpHeadNavBarWidget = new PdpHeadNavBarWidget(this, getFragmentManager());
        PdpBottomNavBarWidget pdpBottomNavBarWidget = new PdpBottomNavBarWidget(this);
        LIZJ().LIZ(2131362869, LJJ(), C6240CUa.LIZ);
        LIZJ().LIZ(2131365544, pdpHeadNavBarWidget, C6240CUa.LIZ);
        LIZJ().LIZ(2131362810, pdpBottomNavBarWidget, C6240CUa.LIZ);
        pdpHeadNavBarWidget.LIZ((C5965CJl) this.LJIL);
        LJJ().LIZ((C5965CJl) this.LJIL);
        pdpBottomNavBarWidget.LIZ((C5965CJl) this.LJIL);
        DV0.LIZ(this, LJIIIZ(), C6108COy.LIZ, new CTO(this));
        DV0.LIZ(this, LJIIIZ(), CPI.LIZ, new CW1(this));
        DV0.LIZ(this, LJIIIZ(), CUP.LIZ, new CEK(this));
        DV0.LIZ(this, LJIIIZ(), CUR.LIZ, new C6228CTo(this));
        DV0.LIZ(this, LJIIIZ(), C6249CUj.LIZ, new CTV(this));
        7W7 LJJJI = 7df.LJJJI();
        n.LIZIZ(LJJJI, "");
        this.LJIJJLI = LJJJI.LJIILJJIL();
    }

    public final void LIZ(PopUp popUp, Map<String, ? extends Object> map) {
        Object obj;
        String obj2;
        String LIZ2 = LIZ(popUp.LIZ, map);
        long j = popUp.LIZIZ;
        Context context = getContext();
        if (context != null) {
            n.LIZIZ(context, "");
            obj = K41.LIZ(context).LIZ("ug_last_popup_time");
        } else {
            obj = null;
        }
        if (obj == null) {
            SmartRouter.buildRoute(getContext(), LIZ2).open();
            obj = Long.valueOf(System.currentTimeMillis() / 1000);
        } else {
            Class<?> cls = obj.getClass();
            if (n.LIZ(cls, Integer.class)) {
                obj2 = String.valueOf(((Integer) obj).intValue());
            } else if (n.LIZ(cls, Short.class)) {
                obj2 = String.valueOf(((Short) obj).shortValue());
            } else if (n.LIZ(cls, Long.class)) {
                obj2 = String.valueOf(((Long) obj).longValue());
            } else if (n.LIZ(cls, Float.class)) {
                obj2 = String.valueOf(((Float) obj).floatValue());
            } else if (n.LIZ(cls, Double.class)) {
                obj2 = String.valueOf(((Double) obj).doubleValue());
            } else if (n.LIZ(cls, Integer.TYPE)) {
                obj2 = String.valueOf(((Integer) obj).intValue());
            } else if (n.LIZ(cls, Short.TYPE)) {
                obj2 = String.valueOf(((Short) obj).shortValue());
            } else if (n.LIZ(cls, Long.TYPE)) {
                obj2 = String.valueOf(((Long) obj).longValue());
            } else if (n.LIZ(cls, Float.TYPE)) {
                obj2 = String.valueOf(((Float) obj).floatValue());
            } else if (n.LIZ(cls, Double.TYPE)) {
                obj2 = String.valueOf(((Double) obj).doubleValue());
            } else {
                obj2 = obj.toString();
            }
            if (Long.parseLong(obj2) + j <= System.currentTimeMillis() / 1000) {
                SmartRouter.buildRoute(getContext(), LIZ2).open();
                obj = Long.valueOf(System.currentTimeMillis() / 1000);
            }
        }
        Context context2 = getContext();
        if (context2 != null) {
            n.LIZIZ(context2, "");
            K41.LIZ(context2).LIZ("ug_last_popup_time", obj.toString());
        }
    }

    private final String LIZ(String str, Map<String, ? extends Object> map) {
        String str2;
        String str3;
        String str4;
        String str5;
        String str6;
        String str7;
        String str8;
        String str9;
        String str10;
        String str11;
        String str12;
        Uri.Builder buildUpon = Uri.parse(str).buildUpon();
        Object obj = map.get("author_id");
        String str13 = null;
        if (obj != null) {
            Class<?> cls = obj.getClass();
            if (n.LIZ(cls, Integer.class)) {
                str2 = String.valueOf(((Integer) obj).intValue());
            } else if (n.LIZ(cls, Short.class)) {
                str2 = String.valueOf(((Short) obj).shortValue());
            } else if (n.LIZ(cls, Long.class)) {
                str2 = String.valueOf(((Long) obj).longValue());
            } else if (n.LIZ(cls, Float.class)) {
                str2 = String.valueOf(((Float) obj).floatValue());
            } else if (n.LIZ(cls, Double.class)) {
                str2 = String.valueOf(((Double) obj).doubleValue());
            } else if (n.LIZ(cls, Integer.TYPE)) {
                str2 = String.valueOf(((Integer) obj).intValue());
            } else if (n.LIZ(cls, Short.TYPE)) {
                str2 = String.valueOf(((Short) obj).shortValue());
            } else if (n.LIZ(cls, Long.TYPE)) {
                str2 = String.valueOf(((Long) obj).longValue());
            } else if (n.LIZ(cls, Float.TYPE)) {
                str2 = String.valueOf(((Float) obj).floatValue());
            } else if (n.LIZ(cls, Double.TYPE)) {
                str2 = String.valueOf(((Double) obj).doubleValue());
            } else {
                str2 = obj.toString();
            }
        } else {
            str2 = null;
        }
        buildUpon.appendQueryParameter("anchor_id", str2);
        Object obj2 = map.get("source_content_id");
        if (obj2 != null) {
            Class<?> cls2 = obj2.getClass();
            if (n.LIZ(cls2, Integer.class)) {
                str3 = String.valueOf(((Integer) obj2).intValue());
            } else if (n.LIZ(cls2, Short.class)) {
                str3 = String.valueOf(((Short) obj2).shortValue());
            } else if (n.LIZ(cls2, Long.class)) {
                str3 = String.valueOf(((Long) obj2).longValue());
            } else if (n.LIZ(cls2, Float.class)) {
                str3 = String.valueOf(((Float) obj2).floatValue());
            } else if (n.LIZ(cls2, Double.class)) {
                str3 = String.valueOf(((Double) obj2).doubleValue());
            } else if (n.LIZ(cls2, Integer.TYPE)) {
                str3 = String.valueOf(((Integer) obj2).intValue());
            } else if (n.LIZ(cls2, Short.TYPE)) {
                str3 = String.valueOf(((Short) obj2).shortValue());
            } else if (n.LIZ(cls2, Long.TYPE)) {
                str3 = String.valueOf(((Long) obj2).longValue());
            } else if (n.LIZ(cls2, Float.TYPE)) {
                str3 = String.valueOf(((Float) obj2).floatValue());
            } else if (n.LIZ(cls2, Double.TYPE)) {
                str3 = String.valueOf(((Double) obj2).doubleValue());
            } else {
                str3 = obj2.toString();
            }
        } else {
            str3 = null;
        }
        buildUpon.appendQueryParameter("group_id", str3);
        Object obj3 = map.get("entrance_form");
        if (obj3 != null) {
            Class<?> cls3 = obj3.getClass();
            if (n.LIZ(cls3, Integer.class)) {
                str4 = String.valueOf(((Integer) obj3).intValue());
            } else if (n.LIZ(cls3, Short.class)) {
                str4 = String.valueOf(((Short) obj3).shortValue());
            } else if (n.LIZ(cls3, Long.class)) {
                str4 = String.valueOf(((Long) obj3).longValue());
            } else if (n.LIZ(cls3, Float.class)) {
                str4 = String.valueOf(((Float) obj3).floatValue());
            } else if (n.LIZ(cls3, Double.class)) {
                str4 = String.valueOf(((Double) obj3).doubleValue());
            } else if (n.LIZ(cls3, Integer.TYPE)) {
                str4 = String.valueOf(((Integer) obj3).intValue());
            } else if (n.LIZ(cls3, Short.TYPE)) {
                str4 = String.valueOf(((Short) obj3).shortValue());
            } else if (n.LIZ(cls3, Long.TYPE)) {
                str4 = String.valueOf(((Long) obj3).longValue());
            } else if (n.LIZ(cls3, Float.TYPE)) {
                str4 = String.valueOf(((Float) obj3).floatValue());
            } else if (n.LIZ(cls3, Double.TYPE)) {
                str4 = String.valueOf(((Double) obj3).doubleValue());
            } else {
                str4 = obj3.toString();
            }
        } else {
            str4 = null;
        }
        buildUpon.appendQueryParameter("enter_from", str4);
        Object obj4 = map.get("anchor_show_type");
        if (obj4 != null) {
            Class<?> cls4 = obj4.getClass();
            if (n.LIZ(cls4, Integer.class)) {
                str5 = String.valueOf(((Integer) obj4).intValue());
            } else if (n.LIZ(cls4, Short.class)) {
                str5 = String.valueOf(((Short) obj4).shortValue());
            } else if (n.LIZ(cls4, Long.class)) {
                str5 = String.valueOf(((Long) obj4).longValue());
            } else if (n.LIZ(cls4, Float.class)) {
                str5 = String.valueOf(((Float) obj4).floatValue());
            } else if (n.LIZ(cls4, Double.class)) {
                str5 = String.valueOf(((Double) obj4).doubleValue());
            } else if (n.LIZ(cls4, Integer.TYPE)) {
                str5 = String.valueOf(((Integer) obj4).intValue());
            } else if (n.LIZ(cls4, Short.TYPE)) {
                str5 = String.valueOf(((Short) obj4).shortValue());
            } else if (n.LIZ(cls4, Long.TYPE)) {
                str5 = String.valueOf(((Long) obj4).longValue());
            } else if (n.LIZ(cls4, Float.TYPE)) {
                str5 = String.valueOf(((Float) obj4).floatValue());
            } else if (n.LIZ(cls4, Double.TYPE)) {
                str5 = String.valueOf(((Double) obj4).doubleValue());
            } else {
                str5 = obj4.toString();
            }
        } else {
            str5 = null;
        }
        buildUpon.appendQueryParameter("anchor_show_type", str5);
        Object obj5 = map.get("product_source");
        if (obj5 != null) {
            Class<?> cls5 = obj5.getClass();
            if (n.LIZ(cls5, Integer.class)) {
                str6 = String.valueOf(((Integer) obj5).intValue());
            } else if (n.LIZ(cls5, Short.class)) {
                str6 = String.valueOf(((Short) obj5).shortValue());
            } else if (n.LIZ(cls5, Long.class)) {
                str6 = String.valueOf(((Long) obj5).longValue());
            } else if (n.LIZ(cls5, Float.class)) {
                str6 = String.valueOf(((Float) obj5).floatValue());
            } else if (n.LIZ(cls5, Double.class)) {
                str6 = String.valueOf(((Double) obj5).doubleValue());
            } else if (n.LIZ(cls5, Integer.TYPE)) {
                str6 = String.valueOf(((Integer) obj5).intValue());
            } else if (n.LIZ(cls5, Short.TYPE)) {
                str6 = String.valueOf(((Short) obj5).shortValue());
            } else if (n.LIZ(cls5, Long.TYPE)) {
                str6 = String.valueOf(((Long) obj5).longValue());
            } else if (n.LIZ(cls5, Float.TYPE)) {
                str6 = String.valueOf(((Float) obj5).floatValue());
            } else if (n.LIZ(cls5, Double.TYPE)) {
                str6 = String.valueOf(((Double) obj5).doubleValue());
            } else {
                str6 = obj5.toString();
            }
        } else {
            str6 = null;
        }
        buildUpon.appendQueryParameter("product_source", str6);
        Object obj6 = map.get("source_from");
        if (obj6 != null) {
            Class<?> cls6 = obj6.getClass();
            if (n.LIZ(cls6, Integer.class)) {
                str7 = String.valueOf(((Integer) obj6).intValue());
            } else if (n.LIZ(cls6, Short.class)) {
                str7 = String.valueOf(((Short) obj6).shortValue());
            } else if (n.LIZ(cls6, Long.class)) {
                str7 = String.valueOf(((Long) obj6).longValue());
            } else if (n.LIZ(cls6, Float.class)) {
                str7 = String.valueOf(((Float) obj6).floatValue());
            } else if (n.LIZ(cls6, Double.class)) {
                str7 = String.valueOf(((Double) obj6).doubleValue());
            } else if (n.LIZ(cls6, Integer.TYPE)) {
                str7 = String.valueOf(((Integer) obj6).intValue());
            } else if (n.LIZ(cls6, Short.TYPE)) {
                str7 = String.valueOf(((Short) obj6).shortValue());
            } else if (n.LIZ(cls6, Long.TYPE)) {
                str7 = String.valueOf(((Long) obj6).longValue());
            } else if (n.LIZ(cls6, Float.TYPE)) {
                str7 = String.valueOf(((Float) obj6).floatValue());
            } else if (n.LIZ(cls6, Double.TYPE)) {
                str7 = String.valueOf(((Double) obj6).doubleValue());
            } else {
                str7 = obj6.toString();
            }
        } else {
            str7 = null;
        }
        buildUpon.appendQueryParameter("source_from", str7);
        Object obj7 = map.get("source");
        if (obj7 != null) {
            Class<?> cls7 = obj7.getClass();
            if (n.LIZ(cls7, Integer.class)) {
                str8 = String.valueOf(((Integer) obj7).intValue());
            } else if (n.LIZ(cls7, Short.class)) {
                str8 = String.valueOf(((Short) obj7).shortValue());
            } else if (n.LIZ(cls7, Long.class)) {
                str8 = String.valueOf(((Long) obj7).longValue());
            } else if (n.LIZ(cls7, Float.class)) {
                str8 = String.valueOf(((Float) obj7).floatValue());
            } else if (n.LIZ(cls7, Double.class)) {
                str8 = String.valueOf(((Double) obj7).doubleValue());
            } else if (n.LIZ(cls7, Integer.TYPE)) {
                str8 = String.valueOf(((Integer) obj7).intValue());
            } else if (n.LIZ(cls7, Short.TYPE)) {
                str8 = String.valueOf(((Short) obj7).shortValue());
            } else if (n.LIZ(cls7, Long.TYPE)) {
                str8 = String.valueOf(((Long) obj7).longValue());
            } else if (n.LIZ(cls7, Float.TYPE)) {
                str8 = String.valueOf(((Float) obj7).floatValue());
            } else if (n.LIZ(cls7, Double.TYPE)) {
                str8 = String.valueOf(((Double) obj7).doubleValue());
            } else {
                str8 = obj7.toString();
            }
        } else {
            str8 = null;
        }
        buildUpon.appendQueryParameter("source", str8);
        Object obj8 = map.get("product_id");
        if (obj8 != null) {
            Class<?> cls8 = obj8.getClass();
            if (n.LIZ(cls8, Integer.class)) {
                str9 = String.valueOf(((Integer) obj8).intValue());
            } else if (n.LIZ(cls8, Short.class)) {
                str9 = String.valueOf(((Short) obj8).shortValue());
            } else if (n.LIZ(cls8, Long.class)) {
                str9 = String.valueOf(((Long) obj8).longValue());
            } else if (n.LIZ(cls8, Float.class)) {
                str9 = String.valueOf(((Float) obj8).floatValue());
            } else if (n.LIZ(cls8, Double.class)) {
                str9 = String.valueOf(((Double) obj8).doubleValue());
            } else if (n.LIZ(cls8, Integer.TYPE)) {
                str9 = String.valueOf(((Integer) obj8).intValue());
            } else if (n.LIZ(cls8, Short.TYPE)) {
                str9 = String.valueOf(((Short) obj8).shortValue());
            } else if (n.LIZ(cls8, Long.TYPE)) {
                str9 = String.valueOf(((Long) obj8).longValue());
            } else if (n.LIZ(cls8, Float.TYPE)) {
                str9 = String.valueOf(((Float) obj8).floatValue());
            } else if (n.LIZ(cls8, Double.TYPE)) {
                str9 = String.valueOf(((Double) obj8).doubleValue());
            } else {
                str9 = obj8.toString();
            }
        } else {
            str9 = null;
        }
        buildUpon.appendQueryParameter("product_id", str9);
        Object obj9 = map.get("is_self");
        if (obj9 != null) {
            Class<?> cls9 = obj9.getClass();
            if (n.LIZ(cls9, Integer.class)) {
                str10 = String.valueOf(((Integer) obj9).intValue());
            } else if (n.LIZ(cls9, Short.class)) {
                str10 = String.valueOf(((Short) obj9).shortValue());
            } else if (n.LIZ(cls9, Long.class)) {
                str10 = String.valueOf(((Long) obj9).longValue());
            } else if (n.LIZ(cls9, Float.class)) {
                str10 = String.valueOf(((Float) obj9).floatValue());
            } else if (n.LIZ(cls9, Double.class)) {
                str10 = String.valueOf(((Double) obj9).doubleValue());
            } else if (n.LIZ(cls9, Integer.TYPE)) {
                str10 = String.valueOf(((Integer) obj9).intValue());
            } else if (n.LIZ(cls9, Short.TYPE)) {
                str10 = String.valueOf(((Short) obj9).shortValue());
            } else if (n.LIZ(cls9, Long.TYPE)) {
                str10 = String.valueOf(((Long) obj9).longValue());
            } else if (n.LIZ(cls9, Float.TYPE)) {
                str10 = String.valueOf(((Float) obj9).floatValue());
            } else if (n.LIZ(cls9, Double.TYPE)) {
                str10 = String.valueOf(((Double) obj9).doubleValue());
            } else {
                str10 = obj9.toString();
            }
        } else {
            str10 = null;
        }
        buildUpon.appendQueryParameter("is_self", str10);
        Object obj10 = map.get("is_single_anchor");
        if (obj10 != null) {
            Class<?> cls10 = obj10.getClass();
            if (n.LIZ(cls10, Integer.class)) {
                str11 = String.valueOf(((Integer) obj10).intValue());
            } else if (n.LIZ(cls10, Short.class)) {
                str11 = String.valueOf(((Short) obj10).shortValue());
            } else if (n.LIZ(cls10, Long.class)) {
                str11 = String.valueOf(((Long) obj10).longValue());
            } else if (n.LIZ(cls10, Float.class)) {
                str11 = String.valueOf(((Float) obj10).floatValue());
            } else if (n.LIZ(cls10, Double.class)) {
                str11 = String.valueOf(((Double) obj10).doubleValue());
            } else if (n.LIZ(cls10, Integer.TYPE)) {
                str11 = String.valueOf(((Integer) obj10).intValue());
            } else if (n.LIZ(cls10, Short.TYPE)) {
                str11 = String.valueOf(((Short) obj10).shortValue());
            } else if (n.LIZ(cls10, Long.TYPE)) {
                str11 = String.valueOf(((Long) obj10).longValue());
            } else if (n.LIZ(cls10, Float.TYPE)) {
                str11 = String.valueOf(((Float) obj10).floatValue());
            } else if (n.LIZ(cls10, Double.TYPE)) {
                str11 = String.valueOf(((Double) obj10).doubleValue());
            } else {
                str11 = obj10.toString();
            }
        } else {
            str11 = null;
        }
        buildUpon.appendQueryParameter("is_single_anchor", str11);
        Object obj11 = map.get("is_ad");
        if (obj11 != null) {
            Class<?> cls11 = obj11.getClass();
            if (n.LIZ(cls11, Integer.class)) {
                str12 = String.valueOf(((Integer) obj11).intValue());
            } else if (n.LIZ(cls11, Short.class)) {
                str12 = String.valueOf(((Short) obj11).shortValue());
            } else if (n.LIZ(cls11, Long.class)) {
                str12 = String.valueOf(((Long) obj11).longValue());
            } else if (n.LIZ(cls11, Float.class)) {
                str12 = String.valueOf(((Float) obj11).floatValue());
            } else if (n.LIZ(cls11, Double.class)) {
                str12 = String.valueOf(((Double) obj11).doubleValue());
            } else if (n.LIZ(cls11, Integer.TYPE)) {
                str12 = String.valueOf(((Integer) obj11).intValue());
            } else if (n.LIZ(cls11, Short.TYPE)) {
                str12 = String.valueOf(((Short) obj11).shortValue());
            } else if (n.LIZ(cls11, Long.TYPE)) {
                str12 = String.valueOf(((Long) obj11).longValue());
            } else if (n.LIZ(cls11, Float.TYPE)) {
                str12 = String.valueOf(((Float) obj11).floatValue());
            } else if (n.LIZ(cls11, Double.TYPE)) {
                str12 = String.valueOf(((Double) obj11).doubleValue());
            } else {
                str12 = obj11.toString();
            }
        } else {
            str12 = null;
        }
        buildUpon.appendQueryParameter("is_ad", str12);
        Object obj12 = map.get("ad_id");
        if (obj12 != null) {
            Class<?> cls12 = obj12.getClass();
            if (n.LIZ(cls12, Integer.class)) {
                str13 = String.valueOf(((Integer) obj12).intValue());
            } else if (n.LIZ(cls12, Short.class)) {
                str13 = String.valueOf(((Short) obj12).shortValue());
            } else if (n.LIZ(cls12, Long.class)) {
                str13 = String.valueOf(((Long) obj12).longValue());
            } else if (n.LIZ(cls12, Float.class)) {
                str13 = String.valueOf(((Float) obj12).floatValue());
            } else if (n.LIZ(cls12, Double.class)) {
                str13 = String.valueOf(((Double) obj12).doubleValue());
            } else if (n.LIZ(cls12, Integer.TYPE)) {
                str13 = String.valueOf(((Integer) obj12).intValue());
            } else if (n.LIZ(cls12, Short.TYPE)) {
                str13 = String.valueOf(((Short) obj12).shortValue());
            } else if (n.LIZ(cls12, Long.TYPE)) {
                str13 = String.valueOf(((Long) obj12).longValue());
            } else if (n.LIZ(cls12, Float.TYPE)) {
                str13 = String.valueOf(((Float) obj12).floatValue());
            } else if (n.LIZ(cls12, Double.TYPE)) {
                str13 = String.valueOf(((Double) obj12).doubleValue());
            } else {
                str13 = obj12.toString();
            }
        }
        buildUpon.appendQueryParameter("ad_id", str13);
        String builder = buildUpon.toString();
        n.LIZIZ(builder, "");
        return builder;
    }

    public final <S extends 5Am> 2cN subscribe(JediViewModel<S> jediViewModel, DUT<S> dut, LsD<? super DVU, ? super S, 2Pr> lsD) {
        M12.LIZ(jediViewModel, dut, lsD);
        return 5wO.LIZ(this, jediViewModel, dut, lsD);
    }

    public final void LIZ(int i, int i2, boolean z) {
        CG9 cg9;
        String str;
        String str2;
        String str3;
        String str4;
        IPdpStarter.PdpEnterParam pdpEnterParam;
        if (i2 == 5 || i2 == 3 || i2 == 4) {
            LJIIIZ().LIZJ(i2);
        }
        if (i2 == 3 && (pdpEnterParam = LJIIIZ().LIZ) != null && !pdpEnterParam.getCollapsible() && pdpEnterParam.getCollapsedHeight() != null) {
            BottomSheetBehavior<View> bottomSheetBehavior = this.LJIIJJI;
            if (bottomSheetBehavior != null) {
                bottomSheetBehavior.LIZ((int) pdpEnterParam.getExpandHeight());
            }
            BottomSheetBehavior<View> bottomSheetBehavior2 = this.LJIIJJI;
            if (bottomSheetBehavior2 != null) {
                bottomSheetBehavior2.LJI = true;
            }
            this.LJIILJJIL = false;
        }
        String str5 = "";
        String str6 = null;
        if (i2 == 3) {
            if (i == 4) {
                CG9 cg92 = LJIIIZ().LJJ;
                if (cg92 != null) {
                    cg92.LIZJ(true);
                }
                CG9 cg93 = LJIIIZ().LJJ;
                if (cg93 != null) {
                    cg93.LIZ(false, LJIIIZ().LIZIZ());
                }
                CG9 cg94 = LJIIIZ().LJJ;
                if (cg94 != null) {
                    cg94.LIZJ("halftofull");
                }
                ProductPackStruct productPackStruct = LJIIIZ().LIZLLL;
                if (productPackStruct == null || (str3 = productPackStruct.LIZIZ) == null) {
                    str3 = str5;
                }
                IPdpStarter.PdpEnterParam pdpEnterParam2 = LJIIIZ().LIZ;
                if (pdpEnterParam2 != null) {
                    str4 = pdpEnterParam2.getAwemeId();
                } else {
                    str4 = null;
                }
                IPdpStarter.PdpEnterParam pdpEnterParam3 = LJIIIZ().LIZ;
                if (pdpEnterParam3 != null) {
                    str6 = pdpEnterParam3.getClickFrom();
                }
                M12.LIZ(str3);
                CqM.LIZ(new C5957CJd(str3, 2, str4, str6));
            }
        } else if (i2 == 4) {
            if (i == 3) {
                CG9 cg95 = LJIIIZ().LJJ;
                if (cg95 != null) {
                    cg95.LIZJ(false);
                }
                CG9 cg96 = LJIIIZ().LJJ;
                if (cg96 != null) {
                    cg96.LIZ(true, LJIIIZ().LIZIZ());
                }
                CG9 cg97 = LJIIIZ().LJJ;
                if (cg97 != null) {
                    cg97.LIZJ("fulltohalf");
                }
                ProductPackStruct productPackStruct2 = LJIIIZ().LIZLLL;
                if (!(productPackStruct2 == null || (str2 = productPackStruct2.LIZIZ) == null)) {
                    str5 = str2;
                }
                IPdpStarter.PdpEnterParam pdpEnterParam4 = LJIIIZ().LIZ;
                if (pdpEnterParam4 != null) {
                    str = pdpEnterParam4.getAwemeId();
                } else {
                    str = null;
                }
                IPdpStarter.PdpEnterParam pdpEnterParam5 = LJIIIZ().LIZ;
                if (pdpEnterParam5 != null) {
                    str6 = pdpEnterParam5.getClickFrom();
                }
                M12.LIZ(str5);
                CqM.LIZ(new C5957CJd(str5, 3, str, str6));
            }
        } else if (i2 == 5 && i == 4 && z && (cg9 = LJIIIZ().LJJ) != null) {
            cg9.LIZJ("halftoquit");
        }
    }

    public final <S extends 5Am, A> 2cN selectSubscribe(JediViewModel<S> jediViewModel, PHD<S, ? extends A> phd, DUT<DRZ<A>> dut, LsD<? super DVU, ? super A, 2Pr> lsD) {
        M12.LIZ(jediViewModel, phd, dut, lsD);
        return 5wO.LIZ(this, jediViewModel, phd, dut, lsD);
    }

    public final <S extends 5Am, A, B> 2cN selectSubscribe(JediViewModel<S> jediViewModel, PHD<S, ? extends A> phd, PHD<S, ? extends B> phd2, DUT<Cwt<A, B>> dut, LsE<? super DVU, ? super A, ? super B, 2Pr> lsE) {
        M12.LIZ(jediViewModel, phd, phd2, dut, lsE);
        return 5wO.LIZ(this, jediViewModel, phd, phd2, dut, lsE);
    }

    public final <S extends 5Am, T> 2cN asyncSubscribe(JediViewModel<S> jediViewModel, PHD<S, ? extends B8T<? extends T>> phd, DUT<DRZ<B8T<T>>> dut, LsD<? super DVU, ? super Throwable, 2Pr> lsD, LsC<? super DVU, 2Pr> lsC, LsD<? super DVU, ? super T, 2Pr> lsD2) {
        M12.LIZ(jediViewModel, phd, dut);
        return 5wO.LIZ(this, jediViewModel, phd, dut, lsD, lsC, lsD2);
    }

    public final <S extends 5Am, A, B, C> 2cN selectSubscribe(JediViewModel<S> jediViewModel, PHD<S, ? extends A> phd, PHD<S, ? extends B> phd2, PHD<S, ? extends C> phd3, DUT<DV9<A, B, C>> dut, LsF<? super DVU, ? super A, ? super B, ? super C, 2Pr> lsF) {
        M12.LIZ(jediViewModel, phd, phd2, phd3, dut, lsF);
        return 5wO.LIZ(this, jediViewModel, phd, phd2, phd3, dut, lsF);
    }

    public final <S extends 5Am, A, B, C, D> 2cN selectSubscribe(JediViewModel<S> jediViewModel, PHD<S, ? extends A> phd, PHD<S, ? extends B> phd2, PHD<S, ? extends C> phd3, PHD<S, ? extends D> phd4, DUT<D4t<A, B, C, D>> dut, Lsh<? super DVU, ? super A, ? super B, ? super C, ? super D, 2Pr> lsh) {
        M12.LIZ(jediViewModel, phd, phd2, phd3, phd4, dut, lsh);
        return 5wO.LIZ(this, jediViewModel, phd, phd2, phd3, phd4, dut, lsh);
    }
}
