导航菜单

页面标题

页面副标题

Mitra Bukalapak v2.55.0 - AuthBrowserScreen.java 源代码

正在查看: Mitra Bukalapak v2.55.0 应用的 AuthBrowserScreen.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.bukalapak.mitra.feature.account.screen.authentication;

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import androidx.lifecycle.w;
import androidx.recyclerview.widget.RecyclerView;
import com.bukalapak.android.lib.api4.tungku.data.SingleKycIdentity;
import com.bukalapak.android.lib.browser.BrowserView;
import com.bukalapak.android.lib.browser.StandardBrowserScreen;
import com.bukalapak.android.lib.ui.util.RecyclerViewExtKt;
import com.bukalapak.mitra.feature.account.screen.authentication.c;
import com.bukalapak.mitra.lib.schema.AgenLiteScreenVisit;
import defpackage.C0215xl4;
import defpackage.a71;
import defpackage.ad8;
import defpackage.cd7;
import defpackage.dk4;
import defpackage.ex2;
import defpackage.f0;
import defpackage.f4;
import defpackage.gx2;
import defpackage.ha2;
import defpackage.ip;
import defpackage.ip2;
import defpackage.k87;
import defpackage.k95;
import defpackage.kt8;
import defpackage.lm9;
import defpackage.p64;
import defpackage.po;
import defpackage.q95;
import defpackage.t0;
import defpackage.ux2;
import defpackage.vo9;
import defpackage.w38;
import defpackage.w80;
import defpackage.xk4;
import defpackage.zh2;
import java.util.Arrays;
import java.util.Iterator;
import java.util.UUID;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;

@Metadata(d1 = {"\u0000\u0094\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\r\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\t\b\u0007\u0018\u0000 _2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0002`aB\u0007¢\u0006\u0004\b]\u0010^J\b\u0010\u0004\u001a\u00020\u0003H\u0002J\b\u0010\u0005\u001a\u00020\u0003H\u0002J\b\u0010\u0006\u001a\u00020\u0003H\u0002J\b\u0010\u0007\u001a\u00020\u0003H\u0002J\b\u0010\b\u001a\u00020\u0003H\u0002J\u0010\u0010\u000b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\tH\u0002J\b\u0010\f\u001a\u00020\u0003H\u0002J\u0012\u0010\u000f\u001a\u00020\u00032\b\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0014J\u0010\u0010\u0012\u001a\u00020\u00032\u0006\u0010\u0011\u001a\u00020\u0010H\u0015J\f\u0010\u0014\u001a\u0006\u0012\u0002\b\u00030\u0013H\u0016J\"\u0010\u001a\u001a\u00020\u00032\u0006\u0010\u0016\u001a\u00020\u00152\u0006\u0010\u0017\u001a\u00020\t2\b\u0010\u0019\u001a\u0004\u0018\u00010\u0018H\u0014J\u0018\u0010\u001b\u001a\u00020\u00032\u0006\u0010\u0016\u001a\u00020\u00152\u0006\u0010\u0017\u001a\u00020\tH\u0014J\b\u0010\u001c\u001a\u00020\u0003H\u0014J\u0010\u0010\u001d\u001a\u00020\u00032\u0006\u0010\u0017\u001a\u00020\tH\u0016J\b\u0010\u001e\u001a\u00020\u0003H\u0016J\u0010\u0010\"\u001a\u00020!2\u0006\u0010 \u001a\u00020\u001fH\u0014J\u0017\u0010$\u001a\u00020\u00032\u0006\u0010#\u001a\u00020\tH\u0000¢\u0006\u0004\b$\u0010%J\u0017\u0010&\u001a\u00020\u00032\u0006\u0010#\u001a\u00020\tH\u0000¢\u0006\u0004\b&\u0010%J\u0017\u0010'\u001a\u00020\u00032\u0006\u0010#\u001a\u00020\tH\u0000¢\u0006\u0004\b'\u0010%R\"\u0010/\u001a\u00020(8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b)\u0010*\u001a\u0004\b+\u0010,\"\u0004\b-\u0010.R\"\u00107\u001a\u0002008\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b1\u00102\u001a\u0004\b3\u00104\"\u0004\b5\u00106R\"\u0010?\u001a\u0002088\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b9\u0010:\u001a\u0004\b;\u0010<\"\u0004\b=\u0010>R\u0018\u0010C\u001a\u0004\u0018\u00010@8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bA\u0010BR)\u0010J\u001a\u0010\u0012\f\u0012\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030E0D8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bF\u0010G\u001a\u0004\bH\u0010IR\u001c\u0010N\u001a\b\u0012\u0002\b\u0003\u0018\u00010K8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bL\u0010MR\u0016\u0010Q\u001a\u00020\u00108\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bO\u0010PR\u0018\u0010U\u001a\u0004\u0018\u00010R8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bS\u0010TR\u0014\u0010X\u001a\u00020\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bV\u0010WR\u0014\u0010\\\u001a\u00020Y8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\bZ\u0010[¨\u0006b"}, d2 = {"Lcom/bukalapak/mitra/feature/account/screen/authentication/AuthBrowserScreen;", "Lcom/bukalapak/mitra/feature/account/screen/authentication/Hilt_AuthBrowserScreen;", "Lcom/bukalapak/mitra/feature/account/screen/authentication/AuthBrowserScreen$b;", "Llm9;", "r1", "y1", "t1", AgenLiteScreenVisit.V1, "u1", SingleKycIdentity.EMPTY, "urlAuth", "l1", "x1", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", SingleKycIdentity.EMPTY, "firstInit", "h0", "Lf0;", "H", "Landroid/webkit/WebView;", "view", "url", "Landroid/graphics/Bitmap;", "favicon", "G0", "F0", "onResume", "Z0", "m0", SingleKycIdentity.EMPTY, "message", "Landroid/view/View;", "F", "json", "w1", "(Ljava/lang/String;)V", "k1", SingleKycIdentity.S1, "La71;", "s", "La71;", "n1", "()La71;", "setCrashlyticsLogger", "(La71;)V", "crashlyticsLogger", "Lf4;", "t", "Lf4;", "m1", "()Lf4;", "setAccountNavigation", "(Lf4;)V", "accountNavigation", "Lad8;", "u", "Lad8;", "q1", "()Lad8;", "setSessionPref", "(Lad8;)V", "sessionPref", "Lcom/bukalapak/mitra/feature/account/screen/authentication/AuthBrowserViewModel;", "v", "Lcom/bukalapak/mitra/feature/account/screen/authentication/AuthBrowserViewModel;", "viewModel", "Lzh2;", "Lt0;", "w", "Lxk4;", "o1", "()Lzh2;", "loadingAdapter", "Lq95;", "x", "Lq95;", "loadingItem", "y", "Z", "isAlreadyShowSuccessChangePassword", "Lip2;", "z", "Lip2;", "loadTimeTracker", "A", "Ljava/lang/String;", "trackerClickId", "Landroidx/recyclerview/widget/RecyclerView;", "p1", "()Landroidx/recyclerview/widget/RecyclerView;", "loadingBrowserMV", "<init>", "()V", "B", SingleKycIdentity.A, SingleKycIdentity.B, "feature_account_release"}, k = 1, mv = {1, 8, 0})
public final class AuthBrowserScreen extends Hilt_AuthBrowserScreen<b> {

    private final String trackerClickId;

    public a71 crashlyticsLogger;

    public f4 accountNavigation;

    public ad8 sessionPref;

    private AuthBrowserViewModel viewModel;

    private final xk4 loadingAdapter;

    private q95<?> loadingItem;

    private boolean isAlreadyShowSuccessChangePassword;

    private ip2 loadTimeTracker;

    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u000b\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u001c\u0010\u001dR$\u0010\u0003\u001a\u0004\u0018\u00010\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\"\u0010\t\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\t\u0010\u0004\u001a\u0004\b\n\u0010\u0006\"\u0004\b\u000b\u0010\bR\"\u0010\r\u001a\u00020\f8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010\"\u0004\b\u0011\u0010\u0012R\"\u0010\u0014\u001a\u00020\u00138\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0014\u0010\u0015\u001a\u0004\b\u0016\u0010\u0017\"\u0004\b\u000e\u0010\u0018R$\u0010\u0019\u001a\u0004\u0018\u00010\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0019\u0010\u0004\u001a\u0004\b\u001a\u0010\u0006\"\u0004\b\u001b\u0010\b¨\u0006\u001e"}, d2 = {"Lcom/bukalapak/mitra/feature/account/screen/authentication/AuthBrowserScreen$b;", "Lcom/bukalapak/android/lib/browser/StandardBrowserScreen$b;", SingleKycIdentity.EMPTY, "referrerScreen", "Ljava/lang/String;", "getReferrerScreen", "()Ljava/lang/String;", "b0", "(Ljava/lang/String;)V", "sessionId", "getSessionId", "d0", SingleKycIdentity.EMPTY, "isFromChangedPassword", "Z", "Y", "()Z", "a0", "(Z)V", "Lip;", "authType", "Lip;", "W", "()Lip;", "(Lip;)V", "registerType", "X", "c0", "<init>", "()V", "feature_account_release"}, k = 1, mv = {1, 8, 0})
    public static final class b extends StandardBrowserScreen.b {
        private boolean isFromChangedPassword;
        private String referrerScreen;
        private String registerType;
        private String sessionId = SingleKycIdentity.EMPTY;
        private ip authType = ip.LOGIN;

        public final ip getAuthType() {
            return this.authType;
        }

        public final String getRegisterType() {
            return this.registerType;
        }

        public final boolean getIsFromChangedPassword() {
            return this.isFromChangedPassword;
        }

        public final void Z(ip ipVar) {
            p64.h(ipVar, "<set-?>");
            this.authType = ipVar;
        }

        public final void a0(boolean z) {
            this.isFromChangedPassword = z;
        }

        public final void b0(String str) {
            this.referrerScreen = str;
        }

        public final void c0(String str) {
            this.registerType = str;
        }

        public final void d0(String str) {
            p64.h(str, "<set-?>");
            this.sessionId = str;
        }
    }

    @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
    public class c {
        public static final int[] $EnumSwitchMapping$0;

        static {
            int[] iArr = new int[ip.values().length];
            try {
                iArr[ip.REGISTRATION.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[ip.LOGIN.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            $EnumSwitchMapping$0 = iArr;
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u0010\u0012\f\u0012\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lzh2;", "Lt0;", SingleKycIdentity.A, "()Lzh2;"}, k = 3, mv = {1, 8, 0})
    static final class e extends dk4 implements ex2<zh2<t0<?, ?>>> {
        e() {
            super(0);
        }

        @Override
        public final zh2<t0<?, ?>> invoke() {
            return RecyclerViewExtKt.f(AuthBrowserScreen.this.p1());
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", SingleKycIdentity.A, "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
    public static final class f extends dk4 implements gx2<Context, com.bukalapak.mitra.feature.account.screen.authentication.c> {
        public f() {
            super(1);
        }

        @Override
        public final com.bukalapak.mitra.feature.account.screen.authentication.c invoke(Context context) {
            p64.h(context, "context");
            return new com.bukalapak.mitra.feature.account.screen.authentication.c(context);
        }
    }

    @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", SingleKycIdentity.A, "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
    public static final class g extends dk4 implements gx2<com.bukalapak.mitra.feature.account.screen.authentication.c, lm9> {
        final gx2 $state;

        public g(gx2 gx2Var) {
            super(1);
            this.$state = gx2Var;
        }

        public final void a(com.bukalapak.mitra.feature.account.screen.authentication.c cVar) {
            p64.h(cVar, "it");
            cVar.Q(this.$state);
        }

        @Override
        public lm9 invoke(com.bukalapak.mitra.feature.account.screen.authentication.c cVar) {
            a(cVar);
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", SingleKycIdentity.A, "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
    public static final class h extends dk4 implements gx2<com.bukalapak.mitra.feature.account.screen.authentication.c, lm9> {
        public static final h g = new h();

        public h() {
            super(1);
        }

        public final void a(com.bukalapak.mitra.feature.account.screen.authentication.c cVar) {
            p64.h(cVar, "it");
            cVar.e0();
        }

        @Override
        public lm9 invoke(com.bukalapak.mitra.feature.account.screen.authentication.c cVar) {
            a(cVar);
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lcom/bukalapak/mitra/feature/account/screen/authentication/c$b;", "Llm9;", SingleKycIdentity.A, "(Lcom/bukalapak/mitra/feature/account/screen/authentication/c$b;)V"}, k = 3, mv = {1, 8, 0})
    static final class i extends dk4 implements gx2<c.b, lm9> {
        i() {
            super(1);
        }

        public final void a(c.b bVar) {
            p64.h(bVar, "$this$newItem");
            bVar.c(AuthBrowserScreen.this.getString(cd7.h3));
        }

        @Override
        public lm9 invoke(c.b bVar) {
            a(bVar);
            return lm9.a;
        }
    }

    public AuthBrowserScreen() {
        xk4 a;
        a = C0215xl4.a(new e());
        this.loadingAdapter = a;
        String uuid = UUID.randomUUID().toString();
        p64.g(uuid, "randomUUID().toString()");
        this.trackerClickId = uuid;
    }

    private final String l1(String urlAuth) {
        vo9 vo9Var = vo9.a;
        String r0 = vo9Var.r0(urlAuth, "comeback");
        if (r0 == null) {
            r0 = SingleKycIdentity.EMPTY;
        }
        return vo9Var.b(vo9Var.O0(urlAuth, "comeback", vo9Var.b(r0, "client_id")), (String[]) Arrays.copyOf(new String[]{"client_request_id", "otp_key_webview"}, 2));
    }

    private final zh2<t0<?, ?>> o1() {
        return (zh2) this.loadingAdapter.getValue();
    }

    public final RecyclerView p1() {
        View findViewById = findViewById(k87.e);
        p64.g(findViewById, "findViewById(RBrowser.id.loadingBrowserMV)");
        return (RecyclerView) findViewById;
    }

    private final void r1() {
        String str;
        int i2 = c.$EnumSwitchMapping$0[((b) P()).getAuthType().ordinal()];
        if (i2 == 1) {
            str = "register_webview";
        } else {
            if (i2 != 2) {
                throw new NoWhenBranchMatchedException();
            }
            str = "login_webview";
        }
        String str2 = str;
        ip2 ip2Var = this.loadTimeTracker;
        if (ip2Var != null) {
            ip2.d(ip2Var, w38.Screen, this.trackerClickId, str2, null, 8, null);
        }
    }

    public final void t1() {
        O().reload();
        v1();
    }

    private final void u1() {
        p1().setVisibility(8);
        o1().n0();
    }

    private final void v1() {
        u1();
        k95.Companion companion = k95.INSTANCE;
        this.loadingItem = new q95(com.bukalapak.mitra.feature.account.screen.authentication.c.class.hashCode(), new f()).H(new g(new i())).M(h.g);
        o1().k0(this.loadingItem);
        p1().setVisibility(0);
    }

    private final void x1() {
        f4 m1 = m1();
        String string = getString(cd7.t1);
        p64.g(string, "getString(R.string.accou…word_changed_sheet_title)");
        String r = kt8.r(string);
        String string2 = getString(cd7.s1);
        String h2 = fia.a.r().h();
        String string3 = getString(cd7.r1);
        p64.g(h2, "toStringUrl()");
        p64.g(string2, "getString(R.string.accou…rd_changed_sheet_content)");
        p64.g(string3, "getString(R.string.accou…ord_changed_sheet_action)");
        m1.R(this, h2, r, string2, string3);
    }

    private final void y1() {
        tx1.b.b(this, new j(this)).h();
    }

    @Override
    protected View F(CharSequence message) {
        p64.h(message, "message");
        ha2 ha2Var = new ha2(this);
        ha2Var.Q(new d(this));
        ViewGroup t = ha2Var.t();
        t.setBackgroundColor(-1);
        return t;
    }

    @Override
    protected void F0(WebView webView, String str) {
        p64.h(webView, "view");
        p64.h(str, "url");
        u1();
        super.F0(webView, str);
        if (!O().c()) {
            r1();
            Iterator<T> it = w80.a.d().iterator();
            while (it.hasNext()) {
                ((ux2) it.next()).invoke(webView, str);
            }
            BrowserView O = O();
            p64.g(O, "browserView");
            O.setVisibility(0);
        }
        if (!((b) P()).getIsFromChangedPassword() || this.isAlreadyShowSuccessChangePassword) {
            return;
        }
        this.isAlreadyShowSuccessChangePassword = true;
        x1();
    }

    @Override
    protected void G0(WebView webView, String str, Bitmap bitmap) {
        p64.h(webView, "view");
        p64.h(str, "url");
        v1();
        super.G0(webView, str, bitmap);
        R().setEnabled(false);
        this.loadTimeTracker = new ip2(q1());
        Iterator<T> it = w80.a.e().iterator();
        while (it.hasNext()) {
            ((gx2) it.next()).invoke(str);
        }
        AuthBrowserViewModel authBrowserViewModel = this.viewModel;
        if (authBrowserViewModel != null) {
            Context context = webView.getContext();
            p64.g(context, "view.context");
            authBrowserViewModel.h(context, str);
        }
    }

    @Override
    public f0<?> H() {
        return new po(this);
    }

    @Override
    public void Z0(String str) {
        p64.h(str, "url");
        super.Z0(str);
        String l1 = l1(str);
        n1().c("url load: " + l1);
    }

    @Override
    @SuppressLint({"SetJavaScriptEnabled"})
    protected void h0(boolean z) {
        super.h0(z);
        R().setEnabled(false);
    }

    public final void k1(String json) {
        p64.h(json, "json");
        AuthBrowserViewModel authBrowserViewModel = this.viewModel;
        mi0 e2 = authBrowserViewModel != null ? authBrowserViewModel.e(json) : null;
        String a = e2 != null ? e2.a() : null;
        if (p64.c(a, "cancel_register_new_user") || p64.c(a, "cancel_register_existing_user_non_mitra")) {
            y1();
        }
    }

    @Override
    public void m0() {
        int i2 = c.$EnumSwitchMapping$0[((b) P()).getAuthType().ordinal()];
        if (i2 == 1) {
            y1();
        } else {
            if (i2 != 2) {
                return;
            }
            super.m0();
        }
    }

    public final f4 m1() {
        f4 f4Var = this.accountNavigation;
        if (f4Var != null) {
            return f4Var;
        }
        p64.t("accountNavigation");
        return null;
    }

    public final a71 n1() {
        a71 a71Var = this.crashlyticsLogger;
        if (a71Var != null) {
            return a71Var;
        }
        p64.t("crashlyticsLogger");
        return null;
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.viewModel = (AuthBrowserViewModel) new w(this).a(AuthBrowserViewModel.class);
    }

    @Override
    protected void onResume() {
        super.onResume();
        Iterator<T> it = w80.a.g().iterator();
        while (it.hasNext()) {
            ((gx2) it.next()).invoke(((b) P()).P());
        }
    }

    public final ad8 q1() {
        ad8 ad8Var = this.sessionPref;
        if (ad8Var != null) {
            return ad8Var;
        }
        p64.t("sessionPref");
        return null;
    }

    public final void s1(String json) {
        AuthBrowserViewModel authBrowserViewModel;
        AuthBrowserViewModel authBrowserViewModel2;
        String b2;
        AuthBrowserViewModel authBrowserViewModel3;
        p64.h(json, "json");
        AuthBrowserViewModel authBrowserViewModel4 = this.viewModel;
        zia f2 = authBrowserViewModel4 != null ? authBrowserViewModel4.f(json) : null;
        String a = f2 != null ? f2.a() : null;
        if (a != null) {
            int hashCode = a.hashCode();
            if (hashCode == 262574910) {
                if (a.equals("show_chat_otp_non_login") && (authBrowserViewModel = this.viewModel) != null) {
                    authBrowserViewModel.g(this);
                    return;
                }
                return;
            }
            if (hashCode == 548631025) {
                if (a.equals("call_cs") && (authBrowserViewModel2 = this.viewModel) != null) {
                    authBrowserViewModel2.d(this);
                    return;
                }
                return;
            }
            if (hashCode != 1855209748 || !a.equals("open_new_browser") || (b2 = f2.b()) == null || b2.length() == 0 || (authBrowserViewModel3 = this.viewModel) == null) {
                return;
            }
            authBrowserViewModel3.c(this, f2.b());
        }
    }

    public final void w1(String json) {
        p64.h(json, "json");
    }
}