package com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.ccdc.viewholder;

import X.0CH;
import X.2Pr;
import X.2ha;
import X.4G6;
import X.4HR;
import X.4hP;
import X.ARD;
import X.ARE;
import X.AXV;
import X.AXW;
import X.AXX;
import X.AXY;
import X.AXZ;
import X.C0573A8b;
import X.C0574A8c;
import X.C0575A8d;
import X.C0576A8e;
import X.C0577A8f;
import X.C0578A8g;
import X.C0579A8h;
import X.C0580A8i;
import X.C1222AXa;
import X.C1223AXb;
import X.C1224AXc;
import X.C1225AXd;
import X.C1244AXw;
import X.C4406Bj0;
import X.C4445Bjd;
import X.C4446Bje;
import X.C4591Blz;
import X.C4679BnP;
import X.C4682BnS;
import X.Csa;
import X.Csw;
import X.Csy;
import X.Ct1;
import X.Cuh;
import X.Cv8;
import X.Cvh;
import X.CwK;
import X.CwU;
import X.Cwc;
import X.Cwf;
import X.D1G;
import X.DaP;
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 android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.assem.arch.viewModel.AssemViewModel;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.powerlist.PowerCell;
import com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.ccdc.CCDCAddCardViewModel;
import java.util.Objects;
import kotlin.h.b.n;

public final class CCDCDateElementViewHolder extends PowerCell<AXV> implements ARE, 4G6 {
    public final Csa LIZ;

    static {
        Covode.recordClassIndex(68857);
    }

    public final CCDCAddCardViewModel LIZ() {
        return (CCDCAddCardViewModel) this.LIZ.getValue();
    }

    public final View LJIJI() {
        View view = this.itemView;
        n.LIZIZ(view, "");
        return view;
    }

    public final 0CH getActualLifecycleOwner() {
        ARD.LIZIZ(this);
        return this;
    }

    public final Cv8 getActualLifecycleOwnerHolder() {
        ARD.LIZ(this);
        return this;
    }

    public final 4hP getActualReceiver() {
        ARD.LIZLLL(this);
        return this;
    }

    public final Cuh<4hP> getActualReceiverHolder() {
        ARD.LIZJ(this);
        return this;
    }

    public final 0CH getHostLifecycleOwner() {
        M12.LIZ(this);
        return null;
    }

    public final 0CH getOwnLifecycleOwner() {
        ARD.LJ(this);
        return this;
    }

    public final 4hP getReceiverForHostVM() {
        M12.LIZ(this);
        return null;
    }

    public final boolean getUniqueOnlyDefault() {
        return ARD.LJFF(this);
    }

    public CCDCDateElementViewHolder() {
        Csa csa;
        Csy csy = Csy.LIZ;
        D1G LIZ2 = KEM.LIZ.LIZ(CCDCAddCardViewModel.class);
        C0580A8i a8i = new C0580A8i(LIZ2);
        C1223AXb aXb = C1223AXb.INSTANCE;
        if (n.LIZ(csy, Csw.LIZ)) {
            csa = new Csa(LIZ2, a8i, AXY.INSTANCE, new C0574A8c(this), new C0573A8b(this), C1225AXd.INSTANCE, aXb);
        } else if (n.LIZ(csy, Csy.LIZ)) {
            csa = new Csa(LIZ2, a8i, AXZ.INSTANCE, new C0576A8e(this), new C0575A8d(this), C1224AXc.INSTANCE, aXb);
        } else if (csy != null && !n.LIZ(csy, Ct1.LIZ)) {
            throw new IllegalArgumentException("Don't support this VMScope: " + csy + " there");
        } else {
            csa = new Csa(LIZ2, a8i, AXX.INSTANCE, new C0579A8h(this), new C0577A8f(this), new C0578A8g(this), aXb);
        }
        this.LIZ = csa;
    }

    public final View LIZ(ViewGroup viewGroup) {
        M12.LIZ(viewGroup);
        Context context = viewGroup.getContext();
        n.LIZIZ(context, "");
        return new C4679BnP(context, (byte) 0);
    }

    public final /* synthetic */ void LIZ(DaP daP) {
        AXV axv = (AXV) daP;
        M12.LIZ(axv);
        CCDCDateElementViewHolder.super.LIZ(axv);
        C1244AXw aXw = C4445Bjd.LIZIZ;
        View view = this.itemView;
        String str = "";
        n.LIZIZ(view, str);
        aXw.LIZ(view, new C4446Bje(2ha.LIZ(25.0d), 0, 0, 0, false, true, 30));
        View view2 = this.itemView;
        Objects.requireNonNull(view2, "null cannot be cast to non-null type com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.ccdc.view.CCDCDateElement");
        C4679BnP bnP = (C4679BnP) view2;
        C4682BnS bnS = axv.LIZIZ.LIZJ;
        C4591Blz blz = axv.LIZ;
        bnP.setOnValueChange(new AXW(bnS, this, axv));
        bnP.setOnVerify(new C4406Bj0(bnP, bnS, blz));
        bnP.setOnErrorClear(new C1222AXa(this, axv));
        CCDCAddCardViewModel LIZ2 = LIZ();
        String str2 = bnS.LIZ;
        if (str2 != null) {
            str = str2;
        }
        bnP.LIZ(bnS, blz, LIZ2.LIZ(str), axv.LIZIZ.LIZ);
    }

    public final <S extends 4HR> void subscribe(AssemViewModel<S> assemViewModel, Cvh<S> cvh, LsC<? super Throwable, 2Pr> lsC, LsD<? super 4hP, ? super S, 2Pr> lsD) {
        M12.LIZ(assemViewModel, cvh, lsD);
        ARD.LIZ(this, assemViewModel, cvh, lsC, lsD);
    }

    public final <S extends 4HR, A> void selectSubscribe(AssemViewModel<S> assemViewModel, PHD<S, ? extends A> phd, Cvh<CwK<A>> cvh, LsC<? super Throwable, 2Pr> lsC, LsD<? super 4hP, ? super A, 2Pr> lsD) {
        M12.LIZ(assemViewModel, phd, cvh, lsD);
        ARD.LIZ(this, assemViewModel, phd, cvh, lsC, lsD);
    }

    public final <S extends 4HR, A> void selectSubscribeOnAsync(AssemViewModel<S> assemViewModel, PHD<S, ? extends A> phd, Cvh<CwK<A>> cvh, LsC<? super Throwable, 2Pr> lsC, LsD<? super 4hP, ? super A, 2Pr> lsD) {
        M12.LIZ(assemViewModel, phd, cvh, lsD);
        ARD.LIZIZ(this, assemViewModel, phd, cvh, lsC, lsD);
    }

    public final <S extends 4HR, A, B> void selectSubscribe(AssemViewModel<S> assemViewModel, PHD<S, ? extends A> phd, PHD<S, ? extends B> phd2, Cvh<CwU<A, B>> cvh, LsC<? super Throwable, 2Pr> lsC, LsE<? super 4hP, ? super A, ? super B, 2Pr> lsE) {
        M12.LIZ(assemViewModel, phd, phd2, cvh, lsE);
        ARD.LIZ(this, assemViewModel, phd, phd2, cvh, lsC, lsE);
    }

    public final <S extends 4HR, A, B, C> void selectSubscribe(AssemViewModel<S> assemViewModel, PHD<S, ? extends A> phd, PHD<S, ? extends B> phd2, PHD<S, ? extends C> phd3, Cvh<Cwc<A, B, C>> cvh, LsC<? super Throwable, 2Pr> lsC, LsF<? super 4hP, ? super A, ? super B, ? super C, 2Pr> lsF) {
        LsF<? super 4hP, ? super A, ? super B, ? super C, 2Pr> lsF2 = lsF;
        AssemViewModel<S> assemViewModel2 = assemViewModel;
        PHD<S, ? extends A> phd4 = phd;
        PHD<S, ? extends B> phd5 = phd2;
        PHD<S, ? extends C> phd6 = phd3;
        Cvh<Cwc<A, B, C>> cvh2 = cvh;
        M12.LIZ(assemViewModel2, phd4, phd5, phd6, cvh2, lsF2);
        ARD.LIZ(this, assemViewModel2, phd4, phd5, phd6, cvh2, lsC, lsF2);
    }

    public final <S extends 4HR, A, B, C, D> void selectSubscribe(AssemViewModel<S> assemViewModel, PHD<S, ? extends A> phd, PHD<S, ? extends B> phd2, PHD<S, ? extends C> phd3, PHD<S, ? extends D> phd4, Cvh<Cwf<A, B, C, D>> cvh, LsC<? super Throwable, 2Pr> lsC, Lsh<? super 4hP, ? super A, ? super B, ? super C, ? super D, 2Pr> lsh) {
        Lsh<? super 4hP, ? super A, ? super B, ? super C, ? super D, 2Pr> lsh2 = lsh;
        AssemViewModel<S> assemViewModel2 = assemViewModel;
        PHD<S, ? extends A> phd5 = phd;
        PHD<S, ? extends B> phd6 = phd2;
        PHD<S, ? extends C> phd7 = phd3;
        PHD<S, ? extends D> phd8 = phd4;
        Cvh<Cwf<A, B, C, D>> cvh2 = cvh;
        M12.LIZ(assemViewModel2, phd5, phd6, phd7, phd8, cvh2, lsh2);
        ARD.LIZ(this, assemViewModel2, phd5, phd6, phd7, phd8, cvh2, lsC, lsh2);
    }
}
