package com.bytedance.android.live.liveinteract.multimatch.business.dialog;

import X.AnonymousClass0HH;
import X.AnonymousClass1MY;
import X.C07930Ul;
import X.C10000b0;
import X.C10380bc;
import X.C15030j7;
import X.C15040j8;
import X.C16590ld;
import X.C16630lh;
import X.C18230oH;
import X.C18250oJ;
import X.C23150wD;
import X.C23160wE;
import X.C23170wF;
import X.C23180wG;
import X.C35311aj;
import X.C35521b4;
import X.C40901jk;
import X.C46271sP;
import X.C46321sU;
import X.M12;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.android.live.base.model.ImageModel;
import com.bytedance.android.live.liveinteract.multimatch.business.dialog.contract.MultiMatchMateQuitRequestContract;
import com.bytedance.covode.number.Covode;
import java.util.HashMap;

public final class MultiMatchMateQuitRequestFragment extends MultiMatchMateQuitRequestContract.AbsView {
    public static final C23150wD LJFF = new C23150wD((byte) 0);
    public AnonymousClass1MY LIZ;
    public C46321sU LJ;
    public C46271sP LJI;
    public C40901jk LJII;
    public C40901jk LJIIIIZZ;
    public C46321sU LJIIIZ;
    public HashMap LJIIJ;

    static {
        Covode.recordClassIndex(9192);
    }

    public final void LIZJ() {
        HashMap hashMap = this.LJIIJ;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

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

    public MultiMatchMateQuitRequestFragment() {
    }

    public final void LIZ() {
        C15030j7 r0 = this.LIZIZ;
        if (r0 != null) {
            r0.dismiss();
        }
    }

    public final boolean LIZIZ() {
        AnonymousClass1MY r0 = this.LIZ;
        if (r0 == null || !r0.isChecked()) {
            return false;
        }
        return true;
    }

    public final C15040j8 LJ() {
        C15040j8 r1 = new C15040j8();
        r1.LJI = false;
        r1.LJIIIZ = false;
        return r1;
    }

    public final void onDestroy() {
        MultiMatchMateQuitRequestFragment.super.onDestroy();
        C35311aj r0 = (C35311aj) this.LIZJ;
        if (r0 != null) {
            r0.LIZIZ();
        }
    }

    public /* synthetic */ MultiMatchMateQuitRequestFragment(byte b) {
        this();
    }

    public final void LIZ(long j) {
        C46321sU r4 = this.LJIIIZ;
        if (r4 != null) {
            r4.setText((CharSequence) C10000b0.LIZ(2131828355, Long.valueOf(j)));
        }
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [X.1sP, android.widget.ImageView] */
    public final void onViewCreated(View view, Bundle bundle) {
        C18250oJ r5;
        ImageModel imageModel;
        C40901jk r1;
        String str;
        C35521b4 LIZLLL;
        C18230oH r0;
        M12.LIZ(view);
        MultiMatchMateQuitRequestFragment.super.onViewCreated(view, bundle);
        C35311aj r02 = this.LIZJ;
        if (r02 != null) {
            r02.LIZ();
        }
        C35311aj r03 = this.LIZJ;
        String str2 = null;
        if (r03 == null || (LIZLLL = r03.LIZLLL()) == null || (r0 = LIZLLL.LJI) == null) {
            r5 = null;
        } else {
            r5 = r0.LIZ;
        }
        ? r12 = this.LJI;
        if (r5 != null) {
            imageModel = r5.LIZJ;
        } else {
            imageModel = null;
        }
        C10380bc.LIZ(r12, imageModel);
        C40901jk r4 = this.LJII;
        if (r4 != null) {
            Object[] objArr = new Object[1];
            if (r5 != null) {
                str = r5.LIZ;
                str2 = r5.LIZIZ;
            } else {
                str = null;
            }
            objArr[0] = C07930Ul.LIZ(str, str2);
            r4.setText(C10000b0.LIZ(2131829726, objArr));
        }
        if (C16590ld.LIZ.LIZJ() == C16630lh.PUNISH && (r1 = this.LJIIIIZZ) != null) {
            r1.setText(C10000b0.LIZ(2131829724));
        }
    }

    public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        M12.LIZ(layoutInflater);
        View LIZ2 = AnonymousClass0HH.LIZ(layoutInflater, 2131561648, viewGroup, false);
        this.LJI = (C46271sP) LIZ2.findViewById(2131362533);
        this.LJII = (C40901jk) LIZ2.findViewById(2131369503);
        this.LJIIIIZZ = (C40901jk) LIZ2.findViewById(2131369502);
        AnonymousClass1MY r1 = (AnonymousClass1MY) LIZ2.findViewById(2131362257);
        this.LIZ = r1;
        if (r1 != null) {
            r1.setOnCheckedChangeListener(new C23160wE(this));
        }
        C46321sU r12 = (C46321sU) LIZ2.findViewById(2131369419);
        this.LJIIIZ = r12;
        if (r12 != null) {
            r12.setOnClickListener(new C23170wF(this));
        }
        C46321sU r13 = (C46321sU) LIZ2.findViewById(2131362377);
        this.LJ = r13;
        if (r13 != null) {
            r13.setOnClickListener(new C23180wG(this));
        }
        return LIZ2;
    }
}
