package com.ss.android.ugc.aweme.ecommerce.combinepayment.payment.view.viewholder;

import X.0CB;
import X.0CH;
import X.3SM;
import X.6Is;
import X.BIO;
import X.C1244AXw;
import X.C35;
import X.C4391Bil;
import X.C4394Bio;
import X.C4405Biz;
import X.C4417BjB;
import X.C4419BjD;
import X.C4445Bjd;
import X.C4446Bje;
import X.C4591Blz;
import X.C4680BnQ;
import X.C4682BnS;
import X.Crj;
import X.M12;
import android.view.View;
import com.bytedance.covode.number.Covode;
import com.bytedance.jedi.ext.adapter.JediSimpleViewHolder;
import com.ss.android.ugc.aweme.ecommerce.combinepayment.payment.PaymentViewModel;
import java.util.Objects;
import kotlin.h.b.n;

public final class DateElementViewHolder extends JediSimpleViewHolder<C4419BjD> implements 6Is {
    public final Crj LJFF;
    public final C35 LJI;

    static {
        Covode.recordClassIndex(69703);
    }

    public final PaymentViewModel LJIIL() {
        return (PaymentViewModel) this.LJFF.getValue();
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        super.onStateChanged(r1, r2);
    }

    public final /* synthetic */ void LIZ(Object obj) {
        C4446Bje bje;
        int i;
        C4419BjD bjD = (C4419BjD) obj;
        M12.LIZ(bjD);
        if (this.LJI.LIZ(this.LJIIIIZZ + 1) != null) {
            boolean z = this.LJI.LIZ(this.LJIIIIZZ + 1) instanceof C4394Bio;
            if (this.LJI.LIZ(this.LJIIIIZZ + 1) instanceof C4417BjB) {
                i = 3SM.LJFF;
            } else {
                i = 3SM.LJ;
            }
            bje = new C4446Bje(i, 0, 0, 0, false, z, 30);
        } else {
            bje = new C4446Bje(3SM.LJ, 0, 0, 0, false, true, 30);
        }
        C1244AXw aXw = C4445Bjd.LIZIZ;
        View view = this.itemView;
        String str = "";
        n.LIZIZ(view, str);
        aXw.LIZ(view, bje);
        View view2 = this.itemView;
        Objects.requireNonNull(view2, "null cannot be cast to non-null type com.ss.android.ugc.aweme.ecommerce.combinepayment.payment.view.element.DateElement");
        C4680BnQ bnQ = (C4680BnQ) view2;
        bnQ.setOnValueChange(new C4391Bil(this, bjD));
        bnQ.setOnVerify(new C4405Biz(bnQ, this, bjD));
        bnQ.setOnErrorClear(new BIO(this, bjD));
        C4682BnS bnS = bjD.LIZJ;
        C4591Blz blz = bjD.LIZLLL;
        PaymentViewModel LJIIL = LJIIL();
        C4591Blz blz2 = bjD.LIZLLL;
        String str2 = bjD.LIZJ.LIZ;
        if (str2 != null) {
            str = str2;
        }
        bnQ.LIZ(bnS, blz, LJIIL.LIZIZ(blz2, str), bjD.LIZ);
        bnQ.setPaymentLogger(LJIIL().LIZLLL);
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public DateElementViewHolder(android.view.ViewGroup r4, X.C35 r5) {
        /*
            r3 = this;
            X.M12.LIZ(r4, r5)
            X.BnQ r2 = new X.BnQ
            android.content.Context r1 = r4.getContext()
            java.lang.String r0 = ""
            kotlin.h.b.n.LIZIZ(r1, r0)
            r0 = 0
            r2.<init>(r1, r0)
            r3.<init>(r2)
            r3.LJI = r5
            java.lang.Class<com.ss.android.ugc.aweme.ecommerce.combinepayment.payment.PaymentViewModel> r1 = com.ss.android.ugc.aweme.ecommerce.combinepayment.payment.PaymentViewModel.class
            X.KEN r0 = X.KEM.LIZ
            X.D1G r1 = r0.LIZ(r1)
            X.BIK r0 = new X.BIK
            r0.<init>(r3, r1, r1)
            X.Crj r0 = X.7he.LIZ(r0)
            r3.LJFF = r0
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ecommerce.combinepayment.payment.view.viewholder.DateElementViewHolder.<init>(android.view.ViewGroup, X.C35):void");
    }
}
