package com.ss.android.ugc.aweme.authorize;

import X.0AP;
import X.0By;
import X.0HH;
import X.1hK;
import X.2GO;
import X.2HZ;
import X.2OR;
import X.2fU;
import X.2oz;
import X.3BB;
import X.3QV;
import X.44i;
import X.46h;
import X.46i;
import X.4EV;
import X.4EW;
import X.4FQ;
import X.7hO;
import X.9Y3;
import X.C1069Rc9;
import X.C2798S9q;
import X.C2799S9r;
import X.C3096SLc;
import X.C3102SLi;
import X.C3103SLj;
import X.C3104SLk;
import X.C3107SLn;
import X.C3108SLo;
import X.C3119SLz;
import X.ESC;
import X.FjD;
import X.FjV;
import X.ISm;
import X.Jym;
import X.KPw;
import X.M12;
import X.OLb;
import X.OLh;
import X.OLi;
import X.Ql4;
import X.SLM;
import X.SLQ;
import X.SLV;
import X.SLX;
import X.SLY;
import X.SLZ;
import X.SMF;
import X.SMH;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.IAccountUserService;
import com.ss.android.ugc.aweme.authorize.viewmodel.AuthCommonViewModel;
import com.ss.android.ugc.aweme.global.config.settings.pojo.IESSettingsProxy;
import com.ss.android.ugc.aweme.global.config.settings.pojo.UgAwemeActivitySetting;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import kotlin.h.b.n;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.ThreadMode;

public class BaseI18nAuthorizedFragment extends Fragment implements 2oz, 2HZ, 2GO {
    public static Fragment LJIIZILJ;
    public static final SMF LJIJ = new SMF((byte) 0);
    public AuthCommonViewModel LIZ;
    public KPw LIZIZ;
    public Jym LIZJ;
    public int LIZLLL;
    public String LJ;
    public String LJFF;
    public String LJI;
    public String LJII;
    public String LJIIIIZZ;
    public String LJIIIZ;
    public SLQ LJIIJ;
    public boolean LJIIJJI;
    public String LJIIL = "";
    public String LJIILIIL;
    public String LJIILJJIL;
    public String LJIILL;
    public String LJIILLIIL;
    public AwemeAuthorizePlatformDepend LJIJI;
    public SLV LJIJJ;
    public Handler LJIJJLI = new Handler(Looper.getMainLooper());
    public boolean LJIL;
    public SparseArray LJJ;

    static {
        Covode.recordClassIndex(53605);
    }

    public Map<Integer, Object> getSubscriberEventTypes() {
        HashMap hashMap = new HashMap();
        hashMap.put(420, new C1069Rc9(BaseI18nAuthorizedFragment.class, "onUserBannedEvent", 46h.class, ThreadMode.POSTING, 0, false));
        return hashMap;
    }

    private final void LJI() {
        this.LJIJJLI.postDelayed(new OLb(this), 1500);
    }

    public /* synthetic */ void onDestroyView() {
        BaseI18nAuthorizedFragment.super.onDestroyView();
        SparseArray sparseArray = this.LJJ;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public final String LIZ() {
        KPw kPw = this.LIZIZ;
        if (kPw == null) {
            n.LIZ("");
        }
        return kPw.LIZJ;
    }

    public final boolean LIZIZ() {
        AuthCommonViewModel authCommonViewModel = this.LIZ;
        if (authCommonViewModel == null) {
            n.LIZ("");
        }
        C3108SLo sLo = (C3108SLo) authCommonViewModel.LIZIZ.getValue();
        if (sLo == null) {
            return false;
        }
        n.LIZIZ(sLo, "");
        return LIZIZ(sLo);
    }

    public final boolean LJFF() {
        try {
            IESSettingsProxy iESSettingsProxy = 2OR.LIZ.LIZIZ;
            n.LIZIZ(iESSettingsProxy, "");
            UgAwemeActivitySetting awemeActivitySetting = iESSettingsProxy.getAwemeActivitySetting();
            n.LIZIZ(awemeActivitySetting, "");
            Boolean isNewUser = awemeActivitySetting.getIsNewUser();
            n.LIZIZ(isNewUser, "");
            return isNewUser.booleanValue();
        } catch (Exception unused) {
            return false;
        }
    }

    public final void LIZJ() {
        Fragment fragment = LJIIZILJ;
        if (fragment == null || !(fragment instanceof I18nScopesFragment)) {
            LIZJ(OLi.LIZ.LIZ(-2, SMH.LIZ, "", "", ""));
            return;
        }
        AuthCommonViewModel authCommonViewModel = this.LIZ;
        if (authCommonViewModel == null) {
            n.LIZ("");
        }
        authCommonViewModel.LIZJ.observe(this, new C3096SLc(this));
    }

    public final void LIZLLL() {
        Context context = getContext();
        if (context != null) {
            n.LIZIZ(context, "");
            4EW r1 = new 4EW(context);
            r1.LIZJ("This feature is not available for your account due to the age restriction. Try using another account.");
            3QV.LIZ(r1, new C3119SLz(this));
            4EV LIZ2 = r1.LIZ();
            if (LIZ2 != null) {
                4FQ.LIZ(LIZ2.LIZJ());
            }
        }
    }

    public void onDestroy() {
        BaseI18nAuthorizedFragment.super.onDestroy();
        Jym jym = this.LIZJ;
        if (jym == null) {
            n.LIZ("");
        }
        if (jym.isShowing()) {
            Jym jym2 = this.LIZJ;
            if (jym2 == null) {
                n.LIZ("");
            }
            jym2.dismiss();
        }
        EventBus.LIZ().LIZIZ((Object) this);
    }

    public final void LJ() {
        if (46i.LJFF() != null) {
            IAccountUserService LJFF2 = 46i.LJFF();
            n.LIZIZ(LJFF2, "");
            if (LJFF2.isLogin()) {
                IAccountUserService LJFF3 = 46i.LJFF();
                n.LIZIZ(LJFF3, "");
                if (LJFF3.isChildrenMode()) {
                    LIZLLL();
                } else {
                    LIZ(0);
                }
            } else {
                44i.LIZLLL(true);
                IAccountUserService LJFF4 = 46i.LJFF();
                IAccountUserService LJFF5 = 46i.LJFF();
                n.LIZIZ(LJFF5, "");
                LJFF4.delete(LJFF5.getCurUserId(), "authorize");
                LJI();
            }
        } else {
            LIZ(-1);
        }
    }

    @ISm
    public final void onUserBannedEvent(46h r2) {
        M12.LIZ(r2);
        this.LJIL = true;
    }

    public static final /* synthetic */ KPw LIZ(BaseI18nAuthorizedFragment baseI18nAuthorizedFragment) {
        KPw kPw = baseI18nAuthorizedFragment.LIZIZ;
        if (kPw == null) {
            n.LIZ("");
        }
        return kPw;
    }

    public static View LIZ(LayoutInflater layoutInflater) {
        MethodCollector.i(1662);
        if (9Y3.LIZ(9Y3.LIZ(), true, "tiktok_tux_text_view_opt", false) && layoutInflater != null && layoutInflater.getFactory() == null && layoutInflater.getFactory2() == null) {
            try {
                layoutInflater.setFactory(new Ql4());
            } catch (Exception unused) {
                View inflate = layoutInflater.inflate(2131558471, (ViewGroup) null);
                MethodCollector.o(1662);
                return inflate;
            }
        }
        View inflate2 = layoutInflater.inflate(2131558471, (ViewGroup) null);
        MethodCollector.o(1662);
        return inflate2;
    }

    public final void LIZIZ(OLh oLh) {
        C2798S9q s9q = C2799S9r.LJFF;
        int i = C2799S9r.LIZLLL;
        int i2 = oLh.errorCode;
        String str = oLh.errorMsg;
        if (str == null) {
            str = "";
        }
        String LIZ2 = LIZ();
        String str2 = this.LJFF;
        if (str2 == null) {
            n.LIZ("");
        }
        String str3 = this.LJI;
        if (str3 == null) {
            n.LIZ("");
        }
        String str4 = this.LJII;
        if (str4 == null) {
            n.LIZ("");
        }
        String str5 = this.LJIIIIZZ;
        if (str5 == null) {
            n.LIZ("");
        }
        s9q.LIZ(i, i2, str, LIZ2, str2, str3, str4, str5);
        LIZ(oLh);
        1hK activity = getActivity();
        if (activity != null) {
            activity.finish();
        }
    }

    private final void LIZ(int i) {
        if (i != 0) {
            LIZJ(OLi.LIZ.LIZ(-30, "login fail", "", "", ""));
            return;
        }
        AuthCommonViewModel authCommonViewModel = this.LIZ;
        if (authCommonViewModel == null) {
            n.LIZ("");
        }
        authCommonViewModel.LIZ();
    }

    public final void LIZIZ(String str) {
        Jym jym = this.LIZJ;
        if (jym == null) {
            n.LIZ("");
        }
        jym.hide();
        Context context = getContext();
        if (context != null) {
            n.LIZIZ(context, "");
            4EW r1 = new 4EW(context);
            r1.LIZJ(2131826765);
            r1.LIZJ(str);
            r1.LIZ(false);
            3QV.LIZ(r1, new FjV(this));
            4FQ.LIZ(r1.LIZ().LIZJ());
        }
    }

    public final void LIZJ(OLh oLh) {
        M12.LIZ(oLh);
        C2798S9q s9q = C2799S9r.LJFF;
        int i = C2799S9r.LJ;
        String LIZ2 = LIZ();
        String str = this.LJFF;
        if (str == null) {
            n.LIZ("");
        }
        String str2 = this.LJI;
        if (str2 == null) {
            n.LIZ("");
        }
        String str3 = this.LJII;
        if (str3 == null) {
            n.LIZ("");
        }
        String str4 = this.LJIIIIZZ;
        if (str4 == null) {
            n.LIZ("");
        }
        s9q.LIZ(i, 0, "", LIZ2, str, str2, str3, str4);
        LIZ(oLh);
        1hK activity = getActivity();
        if (activity != null) {
            activity.finish();
        }
    }

    public final void LIZ(OLh oLh) {
        List<String> LIZ2;
        KPw kPw = this.LIZIZ;
        if (kPw == null) {
            n.LIZ("");
        }
        String callerPackage = kPw.getCallerPackage();
        KPw kPw2 = this.LIZIZ;
        if (kPw2 == null) {
            n.LIZ("");
        }
        String str = kPw2.callerLocalEntry;
        if (!TextUtils.isEmpty(callerPackage) && !TextUtils.isEmpty(str) && oLh.checkArgs()) {
            n.LIZIZ(callerPackage, "");
            if (this.LJ == null) {
                Bundle bundle = new Bundle();
                oLh.toBundle(bundle);
                Intent intent = new Intent();
                intent.setComponent(new ComponentName(callerPackage, str));
                intent.putExtras(bundle);
                intent.addFlags(67108864);
                intent.addFlags(268435456);
            } else {
                Context context = getContext();
                String str2 = this.LJ;
                if (!TextUtils.isEmpty(callerPackage) && !TextUtils.isEmpty(str2) && context != null && (LIZ2 = 7hO.LIZ(context, callerPackage)) != null && LIZ2.size() > 0) {
                    for (String equalsIgnoreCase : LIZ2) {
                        if (str2.equalsIgnoreCase(equalsIgnoreCase)) {
                        }
                    }
                    return;
                }
                return;
            }
            Bundle bundle2 = new Bundle();
            oLh.toBundle(bundle2);
            Intent intent2 = new Intent();
            intent2.setComponent(new ComponentName(callerPackage, str));
            intent2.putExtras(bundle2);
            intent2.addFlags(67108864);
            intent2.addFlags(268435456);
            try {
                startActivity(intent2);
            } catch (Exception e) {
                0HH.LIZ(e);
            }
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:10:0x001f  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final boolean LIZIZ(X.C3108SLo r12) {
        /*
            r11 = this;
            r10 = r12
            java.lang.Boolean r0 = r10.getShowSwitchAccount()
            r4 = 1
            r3 = 0
            if (r0 == 0) goto L_0x009a
            java.lang.Boolean r0 = r10.getShowSwitchAccount()
            if (r0 != 0) goto L_0x0012
            kotlin.h.b.n.LIZIZ()
        L_0x0012:
            boolean r0 = r0.booleanValue()
            if (r0 == 0) goto L_0x009a
            r7 = 1
        L_0x0019:
            X.SM8 r0 = r10.getCheckResult()
            if (r0 == 0) goto L_0x009d
            X.SM8 r8 = r10.getCheckResult()
            if (r8 != 0) goto L_0x0028
            kotlin.h.b.n.LIZIZ()
        L_0x0028:
            X.1hK r0 = r11.getActivity()
            if (r0 == 0) goto L_0x009d
            X.4EW r2 = new X.4EW
            X.1hK r1 = r11.getActivity()
            if (r1 != 0) goto L_0x0039
            kotlin.h.b.n.LIZIZ()
        L_0x0039:
            java.lang.String r0 = ""
            kotlin.h.b.n.LIZIZ(r1, r0)
            r2.<init>(r1)
            r0 = 2131826774(0x7f111856, float:1.9286442E38)
            java.lang.String r0 = r11.getString(r0)
            r2.LIZ(r0)
            java.lang.String r0 = r8.getResultMsg()
            r2.LIZJ(r0)
            r2.LIZ(r3)
            X.SLg r5 = new X.SLg
            r6 = r11
            r9 = r7
            r5.<init>(r6, r7, r8, r9, r10)
            X.3QV.LIZ(r2, r5)
            X.4EV r0 = r2.LIZ()
            android.app.Dialog r0 = r0.LIZJ()
            X.4FQ.LIZ(r0)
            X.2UX r2 = new X.2UX
            r2.<init>()
            java.lang.String r1 = r11.LJIIIZ
            java.lang.String r0 = "auth_app"
            r2.LIZ(r0, r1)
            java.lang.String r1 = r11.LIZ()
            java.lang.String r0 = "channel"
            r2.LIZ(r0, r1)
            java.lang.String r0 = "has_switch_account_button"
            r2.LIZ(r0, r7)
            X.HSj r1 = X.HSj.LIZ
            java.lang.String r0 = "error_code"
            r2.LIZ(r0, r1)
            java.lang.String r1 = "enter_from"
            java.lang.String r0 = "authorize_screen"
            r2.LIZ(r1, r0)
            java.util.Map r1 = r2.LIZ
            java.lang.String r0 = "show_auth_error_toast"
            X.2nK.LIZ(r0, r1)
            return r4
        L_0x009a:
            r7 = 0
            goto L_0x0019
        L_0x009d:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.authorize.BaseI18nAuthorizedFragment.LIZIZ(X.SLo):boolean");
    }

    public final void LIZ(C3108SLo sLo) {
        boolean z;
        if (getArguments() == null) {
            LIZIZ(OLi.LIZ.LIZ(-1, "", "", "", ""));
            return;
        }
        Bundle arguments = getArguments();
        if (arguments == null) {
            n.LIZIZ();
        }
        arguments.putSerializable("auth_page_info", sLo);
        Jym jym = this.LIZJ;
        if (jym == null) {
            n.LIZ("");
        }
        jym.dismiss();
        Boolean isLite = sLo.isLite();
        if (isLite != null) {
            z = isLite.booleanValue();
        } else {
            z = false;
        }
        if (z) {
            Bundle arguments2 = getArguments();
            String str = this.LJ;
            I18nLiteAuthorizeFragment i18nLiteAuthorizeFragment = new I18nLiteAuthorizeFragment();
            if (arguments2 != null) {
                arguments2.putString("caller_signature_key", str);
            }
            i18nLiteAuthorizeFragment.setArguments(arguments2);
            LJIIZILJ = i18nLiteAuthorizeFragment;
            0AP LIZ2 = getChildFragmentManager().LIZ();
            Fragment fragment = LJIIZILJ;
            if (fragment == null) {
                n.LIZIZ();
            }
            LIZ2.LIZ(2131365175, fragment);
            LIZ2.LIZJ();
            return;
        }
        I18nTTBCAuthroizeFragment i18nTTBCAuthroizeFragment = null;
        if (this.LJIILJJIL != null) {
            0AP LIZ3 = getChildFragmentManager().LIZ();
            n.LIZIZ(LIZ3, "");
            I18nTTBCAuthroizeFragment i18nTTBCAuthroizeFragment2 = LJIIZILJ;
            if (i18nTTBCAuthroizeFragment2 != null) {
                if (i18nTTBCAuthroizeFragment2 instanceof I18nTTBCAuthroizeFragment) {
                    i18nTTBCAuthroizeFragment = i18nTTBCAuthroizeFragment2;
                }
                I18nTTBCAuthroizeFragment i18nTTBCAuthroizeFragment3 = i18nTTBCAuthroizeFragment;
                if (i18nTTBCAuthroizeFragment3 != null) {
                    i18nTTBCAuthroizeFragment3.LIZIZ();
                }
                LIZ3.LIZ(i18nTTBCAuthroizeFragment2);
            }
            Bundle arguments3 = getArguments();
            String str2 = this.LJ;
            I18nTTBCAuthroizeFragment i18nTTBCAuthroizeFragment4 = new I18nTTBCAuthroizeFragment();
            if (arguments3 != null) {
                arguments3.putString("caller_signature_key", str2);
            }
            i18nTTBCAuthroizeFragment4.setArguments(arguments3);
            LJIIZILJ = i18nTTBCAuthroizeFragment4;
            LIZ3.LIZ(2131365175, i18nTTBCAuthroizeFragment4);
            LIZ3.LIZIZ();
            return;
        }
        0AP LIZ4 = getChildFragmentManager().LIZ();
        n.LIZIZ(LIZ4, "");
        I18nTTBCAuthroizeFragment i18nTTBCAuthroizeFragment5 = LJIIZILJ;
        if (i18nTTBCAuthroizeFragment5 != null) {
            if (i18nTTBCAuthroizeFragment5 instanceof I18nAuthorizeFragment) {
                i18nTTBCAuthroizeFragment = i18nTTBCAuthroizeFragment5;
            }
            I18nAuthorizeFragment i18nAuthorizeFragment = (I18nAuthorizeFragment) i18nTTBCAuthroizeFragment;
            if (i18nAuthorizeFragment != null) {
                i18nAuthorizeFragment.LIZIZ();
            }
            LIZ4.LIZ(i18nTTBCAuthroizeFragment5);
        }
        I18nAuthorizeFragment LIZ5 = I18nAuthorizeFragment.LJIIIIZZ.LIZ(getArguments(), this.LJ);
        LJIIZILJ = LIZ5;
        if (LIZ5 == null) {
            n.LIZIZ();
        }
        LIZ4.LIZ(2131365175, LIZ5);
        LIZ4.LIZIZ();
    }

    public void onCreate(Bundle bundle) {
        Bundle bundle2;
        String str;
        String str2;
        String str3;
        String str4;
        int i;
        String str5;
        String str6;
        String str7;
        BaseI18nAuthorizedFragment.super.onCreate(bundle);
        this.LJIJI = new AwemeAuthorizePlatformDepend(this);
        Context context = getContext();
        AwemeAuthorizePlatformDepend awemeAuthorizePlatformDepend = this.LJIJI;
        if (awemeAuthorizePlatformDepend == null) {
            n.LIZ("");
        }
        this.LJIJJ = new SLM(context, awemeAuthorizePlatformDepend);
        KPw kPw = new KPw(getArguments());
        this.LIZIZ = kPw;
        String str8 = kPw.LJII;
        if (str8 == null) {
            str8 = "";
        }
        this.LJIILLIIL = str8;
        Bundle arguments = getArguments();
        String str9 = null;
        if (arguments != null) {
            bundle2 = arguments.getBundle("_bytedance_params_extra");
        } else {
            bundle2 = null;
        }
        Bundle arguments2 = getArguments();
        if (arguments2 == null || (str = arguments2.getString("_aweme_params_caller_open_sdk_common_name")) == null) {
            str = "";
        }
        this.LJII = str;
        Bundle arguments3 = getArguments();
        if (arguments3 == null || (str2 = arguments3.getString("_aweme_params_caller_open_sdk_common_version")) == null) {
            str2 = "";
        }
        this.LJIIIIZZ = str2;
        Bundle arguments4 = getArguments();
        if (arguments4 == null || (str3 = arguments4.getString("_aweme_params_caller_open_sdk_name")) == null) {
            str3 = "";
        }
        this.LJFF = str3;
        Bundle arguments5 = getArguments();
        if (arguments5 == null || (str4 = arguments5.getString("_aweme_params_caller_open_sdk_version")) == null) {
            str4 = "";
        }
        this.LJI = str4;
        boolean z = false;
        if (bundle2 != null) {
            i = bundle2.getInt("authType");
        } else {
            i = 0;
        }
        this.LIZLLL = i;
        Bundle arguments6 = getArguments();
        if (arguments6 != null) {
            z = arguments6.getBoolean("key_qrcode_auth", false);
        }
        this.LJIIJJI = z;
        Bundle arguments7 = getArguments();
        if (arguments7 == null || (str5 = arguments7.getString("key_qrcode_token")) == null) {
            str5 = "";
        }
        this.LJIIL = str5;
        Bundle arguments8 = getArguments();
        if (arguments8 != null) {
            str6 = arguments8.getString("key_qrcode_bc_params");
        } else {
            str6 = null;
        }
        this.LJIILJJIL = str6;
        Bundle arguments9 = getArguments();
        if (arguments9 != null) {
            str7 = arguments9.getString("key_qrcode_redirect_uri");
        } else {
            str7 = null;
        }
        this.LJIILL = str7;
        Bundle arguments10 = getArguments();
        if (arguments10 != null) {
            str9 = arguments10.getString("caller_signature_key");
        }
        this.LJ = str9;
        AwemeAuthorizePlatformDepend awemeAuthorizePlatformDepend2 = this.LJIJI;
        if (awemeAuthorizePlatformDepend2 == null) {
            n.LIZ("");
        }
        SLV slv = this.LJIJJ;
        if (slv == null) {
            n.LIZ("");
        }
        KPw kPw2 = this.LIZIZ;
        if (kPw2 == null) {
            n.LIZ("");
        }
        FjD fjD = new FjD(awemeAuthorizePlatformDepend2, slv, kPw2);
        1hK activity = getActivity();
        if (activity == null) {
            n.LIZIZ();
        }
        AuthCommonViewModel LIZ2 = 0By.LIZ(activity, fjD).LIZ(AuthCommonViewModel.class);
        n.LIZIZ(LIZ2, "");
        this.LIZ = LIZ2;
        Context context2 = getContext();
        if (context2 == null) {
            n.LIZIZ();
        }
        n.LIZIZ(context2, "");
        String string = getString(2131832891);
        n.LIZIZ(string, "");
        this.LIZJ = new Jym(context2, string);
    }

    public final void LIZ(String str) {
        Jym jym = this.LIZJ;
        if (jym == null) {
            n.LIZ("");
        }
        jym.hide();
        if (!TextUtils.isEmpty(str) && getActivity() != null) {
            1hK activity = getActivity();
            if (activity == null) {
                n.LIZIZ();
            }
            3BB r1 = new 3BB(activity);
            r1.LIZ(str);
            r1.LIZIZ();
        }
    }

    public void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        BaseI18nAuthorizedFragment.super.onViewCreated(view, bundle);
        Jym jym = this.LIZJ;
        if (jym == null) {
            n.LIZ("");
        }
        jym.show();
        2fU.LIZ.LIZ(jym);
        LJ();
        AuthCommonViewModel authCommonViewModel = this.LIZ;
        if (authCommonViewModel == null) {
            n.LIZ("");
        }
        authCommonViewModel.LIZ.observe(this, new SLY(this));
        AuthCommonViewModel authCommonViewModel2 = this.LIZ;
        if (authCommonViewModel2 == null) {
            n.LIZ("");
        }
        authCommonViewModel2.LIZIZ.observe(this, new SLZ(this));
        AuthCommonViewModel authCommonViewModel3 = this.LIZ;
        if (authCommonViewModel3 == null) {
            n.LIZ("");
        }
        authCommonViewModel3.LJFF.observe(this, new C3104SLk(this));
        AuthCommonViewModel authCommonViewModel4 = this.LIZ;
        if (authCommonViewModel4 == null) {
            n.LIZ("");
        }
        authCommonViewModel4.LIZLLL.observe(this, new SLX(this));
        AuthCommonViewModel authCommonViewModel5 = this.LIZ;
        if (authCommonViewModel5 == null) {
            n.LIZ("");
        }
        authCommonViewModel5.LJ.observe(this, new C3107SLn(this));
        AuthCommonViewModel authCommonViewModel6 = this.LIZ;
        if (authCommonViewModel6 == null) {
            n.LIZ("");
        }
        authCommonViewModel6.LJII.observe(this, new C3103SLj(this));
        AuthCommonViewModel authCommonViewModel7 = this.LIZ;
        if (authCommonViewModel7 == null) {
            n.LIZ("");
        }
        authCommonViewModel7.LJI.observe(this, new C3102SLi(this));
    }

    public void onActivityResult(int i, int i2, Intent intent) {
        BaseI18nAuthorizedFragment.super.onActivityResult(i, i2, intent);
        if (i == 2001) {
            int i3 = -1;
            if (i2 == -1 && !this.LJIL && !ESC.LIZLLL()) {
                i3 = 0;
            }
            LIZ(i3);
        }
    }

    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        M12.LIZ(layoutInflater);
        View onCreateView = BaseI18nAuthorizedFragment.super.onCreateView(layoutInflater, viewGroup, bundle);
        if (onCreateView != null) {
            onCreateView.setTag(2131363634, this);
        }
        return LIZ(layoutInflater);
    }
}
