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

import X.0CB;
import X.0CH;
import X.0EG;
import X.6Is;
import X.7he;
import X.BHR;
import X.BJ3;
import X.BTH;
import X.C3397BIr;
import X.C3398BIs;
import X.C3399BIt;
import X.Crj;
import X.D1G;
import X.DV0;
import X.HeD;
import X.KEM;
import X.M12;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.OrderSubmitViewModel;
import com.ss.android.ugc.aweme.ecommerce.pdp.vh.AbsFullSpanVH;
import kotlin.h.b.n;

public final class OrderSubmitSpanVH extends AbsFullSpanVH<C3399BIt> implements 6Is {
    public final Crj LJFF;

    static {
        Covode.recordClassIndex(69126);
    }

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

    public final void LJ() {
        super.LJ();
        DV0.LIZ(this, (OrderSubmitViewModel) this.LJFF.getValue(), C3398BIs.LIZ, C3397BIr.LIZ);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public OrderSubmitSpanVH(ViewGroup viewGroup) {
        super(new View(viewGroup.getContext()));
        M12.LIZ(viewGroup);
        MethodCollector.i(1853);
        D1G LIZ = KEM.LIZ.LIZ(OrderSubmitViewModel.class);
        this.LJFF = 7he.LIZ(new BHR(this, LIZ, LIZ));
        MethodCollector.o(1853);
    }

    public final /* synthetic */ void LIZ(Object obj) {
        C3399BIt bIt = (C3399BIt) obj;
        M12.LIZ(bIt);
        View view = this.itemView;
        n.LIZIZ(view, "");
        0EG r2 = new 0EG(-1, (int) HeD.LIZIZ(view.getContext(), bIt.LIZ));
        r2.leftMargin = bIt.LIZJ;
        r2.rightMargin = bIt.LIZJ;
        View view2 = this.itemView;
        n.LIZIZ(view2, "");
        view2.setLayoutParams(r2);
        this.itemView.setPadding(bIt.LIZJ, 0, bIt.LIZJ, 0);
        this.itemView.setBackgroundColor(bIt.LIZLLL);
        BJ3 bj3 = BTH.LIZLLL;
        View view3 = this.itemView;
        n.LIZIZ(view3, "");
        bj3.LIZ(view3, bIt.LIZIZ);
    }
}
