package com.bytedance.android.live.liveinteract.multiguestv3.dialog;

import X.2Pr;
import X.2fU;
import X.6Is;
import X.AnonymousClass0CB;
import X.AnonymousClass0CH;
import X.C10000b0;
import X.C20110rJ;
import X.C20120rK;
import X.C20130rL;
import X.C20140rM;
import X.C40901jk;
import X.C46321sU;
import X.GqS;
import X.LsC;
import X.M12;
import android.content.Context;
import android.os.Bundle;
import android.widget.ImageView;
import com.bytedance.android.live.design.view.sheet.LiveBaseSheetDialog;
import com.bytedance.android.live.design.view.sheet.LiveBottomSheetDialog;
import com.bytedance.covode.number.Covode;
import kotlin.h.b.n;

public abstract class MultiGuestV3BottomConfirmDialog extends LiveBaseSheetDialog implements 6Is {
    public static final C20110rJ LJIILIIL = new C20110rJ((byte) 0);
    public static int LJIJJ = 2131371605;
    public static int LJIJJLI = 2131371603;
    public static int LJIL = 2131371604;
    public static int LJJ = 2131371607;
    public static int LJJI = 2131371606;
    public C40901jk LJFF;
    public int LJI;
    public C40901jk LJII;
    public C46321sU LJIIIIZZ;
    public LsC<? super LiveBottomSheetDialog, 2Pr> LJIIIZ;
    public C46321sU LJIIJ;
    public ImageView LJIIJJI;
    public LsC<? super LiveBottomSheetDialog, 2Pr> LJIIL;
    public int LJIILJJIL;
    public String LJIILL = "";
    public String LJIILLIIL = "";
    public int LJIIZILJ;
    public String LJIJ = "";
    public int LJIJI;

    public void onStateChanged(AnonymousClass0CH r1, AnonymousClass0CB r2) {
        super.onStateChanged(r1, r2);
    }

    public void dismiss() {
        super.dismiss();
        GqS.LIZIZ(this);
    }

    public void show() {
        super.show();
        2fU.LIZ.LIZ(this);
        GqS.LIZ(this);
    }

    static {
        Covode.recordClassIndex(8216);
    }

    public void setTitle(int i) {
        this.LJIILJJIL = i;
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public MultiGuestV3BottomConfirmDialog(Context context) {
        super(context);
        M12.LIZ(context);
    }

    public final void LIZ(LsC<? super LiveBottomSheetDialog, 2Pr> lsC) {
        M12.LIZ(lsC);
        this.LJIIZILJ = 2131829920;
        this.LJIIIZ = lsC;
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131561974);
        C40901jk r1 = (C40901jk) findViewById(LJJ);
        ImageView imageView = null;
        if (r1 != null) {
            if (this.LJIILJJIL != 0) {
                n.LIZIZ(r1, "");
                r1.setText(C10000b0.LIZ(this.LJIILJJIL));
            }
            if (this.LJIILL.length() > 0) {
                n.LIZIZ(r1, "");
                r1.setText(this.LJIILL);
            }
        } else {
            r1 = null;
        }
        this.LJFF = r1;
        C40901jk r12 = (C40901jk) findViewById(LJJI);
        if (r12 != null) {
            if (this.LJI != 0) {
                n.LIZIZ(r12, "");
                r12.setText(C10000b0.LIZ(this.LJI));
            }
            if (this.LJIILLIIL.length() > 0) {
                n.LIZIZ(r12, "");
                r12.setText(this.LJIILLIIL);
            }
        } else {
            r12 = null;
        }
        this.LJII = r12;
        C46321sU r13 = (C46321sU) findViewById(LJIJJ);
        if (r13 != null) {
            if (this.LJIIZILJ != 0) {
                n.LIZIZ(r13, "");
                r13.setText((CharSequence) C10000b0.LIZ(this.LJIIZILJ));
            }
            if (this.LJIJ.length() > 0) {
                n.LIZIZ(r13, "");
                r13.setText((CharSequence) this.LJIJ);
            }
            r13.setOnClickListener(new C20120rK(this));
        } else {
            r13 = null;
        }
        this.LJIIIIZZ = r13;
        C46321sU r14 = (C46321sU) findViewById(LJIJJLI);
        if (r14 != null) {
            if (this.LJIJI != 0) {
                n.LIZIZ(r14, "");
                r14.setText((CharSequence) C10000b0.LIZ(this.LJIJI));
            }
            r14.setOnClickListener(new C20130rL(this));
        } else {
            r14 = null;
        }
        this.LJIIJ = r14;
        ImageView imageView2 = (ImageView) findViewById(LJIL);
        if (imageView2 != null) {
            imageView2.setOnClickListener(new C20140rM(this));
            imageView = imageView2;
        }
        this.LJIIJJI = imageView;
    }

    public static /* synthetic */ void LIZ(MultiGuestV3BottomConfirmDialog multiGuestV3BottomConfirmDialog, LsC lsC) {
        M12.LIZ(lsC);
        multiGuestV3BottomConfirmDialog.LJIJI = 0;
        multiGuestV3BottomConfirmDialog.LJIIL = lsC;
    }
}
