导航菜单

页面标题

页面副标题

Empower MX v1.29.4.340 - OnboardingUserDetailsActivity.java 源代码

正在查看: Empower MX v1.29.4.340 应用的 OnboardingUserDetailsActivity.java JAVA 源代码文件

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


package finance.empower.android.app.onboarding.idverification;

import Je.B;
import Yc.AbstractC0926a;
import ac.C0995g;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.widget.Button;
import androidx.compose.ui.platform.ComposeView;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import finance.empower.android.app.onboarding.authentication.reopen.account.ReopenAccountStepsActivity;
import finance.empower.android.app.onboarding.idverification.OnboardingUserDetailsActivity;
import finance.empower.android.app.onboarding.idverification.o;
import i3.qvo.IrXwMKibvuzXg;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import s0.l;
import ze.AbstractC2536b;

@Metadata(d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0007\b\u0007\u0018\u0000 12\u00020\u00012\u00020\u0002:\u0001\u0016B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u0017\u0010\b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\b\u0010\tJ\u0019\u0010\f\u001a\u00020\u00072\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0014¢\u0006\u0004\b\f\u0010\rJ\u000f\u0010\u000e\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u000e\u0010\u0004J\u000f\u0010\u000f\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u000f\u0010\u0004J\u0017\u0010\u0011\u001a\u00020\u00072\u0006\u0010\u0010\u001a\u00020\nH\u0014¢\u0006\u0004\b\u0011\u0010\rJ\u0017\u0010\u0014\u001a\u00020\u00072\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u0014\u0010\u0015J\u000f\u0010\u0016\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\u0016\u0010\u0004R*\u0010\u001f\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u00178\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b\u0019\u0010\u001a\u001a\u0004\b\u001b\u0010\u001c\"\u0004\b\u001d\u0010\u001eR\u001b\u0010%\u001a\u00020 8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b!\u0010\"\u001a\u0004\b#\u0010$R\u001b\u0010*\u001a\u00020&8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b'\u0010\"\u001a\u0004\b(\u0010)R\u001a\u00100\u001a\u00020+8\u0014X\u0094D¢\u0006\f\n\u0004\b,\u0010-\u001a\u0004\b.\u0010/¨\u00062"}, d2 = {"Lfinance/empower/android/app/onboarding/idverification/OnboardingUserDetailsActivity;", "Lbc/m;", "Lfinance/empower/android/app/onboarding/idverification/o$b;", "<init>", "()V", "Lfinance/empower/android/app/onboarding/idverification/o$b$a$a;", "content", "", "Q1", "(Lfinance/empower/android/app/onboarding/idverification/o$b$a$a;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "onStop", "outState", "onSaveInstanceState", "Lfinance/empower/android/app/onboarding/idverification/o$b$a;", "viewState", "P1", "(Lfinance/empower/android/app/onboarding/idverification/o$b$a;)V", "a", "Lfinance/empower/android/app/onboarding/idverification/o;", "value", "i0", "Lfinance/empower/android/app/onboarding/idverification/o;", "O1", "()Lfinance/empower/android/app/onboarding/idverification/o;", "R1", "(Lfinance/empower/android/app/onboarding/idverification/o;)V", "presenter", "LKe/r;", "j0", "Lsf/l;", "M1", "()LKe/r;", "binding", "", "k0", "N1", "()Z", "fromReopenFlow", "", "l0", "Ljava/lang/String;", "C1", "()Ljava/lang/String;", "pageName", "m0", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class OnboardingUserDetailsActivity extends a implements o.b {

    public static final Companion INSTANCE = new Companion(null);
    public static final int n0 = 8;

    public o presenter;

    private final sf.l binding = sf.m.a(new Function0() {
        @Override
        public final Object invoke() {
            Ke.r K1;
            K1 = OnboardingUserDetailsActivity.K1(OnboardingUserDetailsActivity.this);
            return K1;
        }
    });

    private final sf.l fromReopenFlow = sf.m.a(new Function0() {
        @Override
        public final Object invoke() {
            boolean L1;
            L1 = OnboardingUserDetailsActivity.L1(OnboardingUserDetailsActivity.this);
            return Boolean.valueOf(L1);
        }
    });

    private final String pageName = "UserDetails";

    public static final class Companion {
        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final Intent a(Context context, boolean z) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intent a = C0995g.a(context, OnboardingUserDetailsActivity.class, new Pair[0]);
            a.putExtra("finance.empower.0bf30166-75b8-46eb-9962-6ab03c2ac6c8", z);
            return a;
        }

        private Companion() {
        }
    }

    static final class b implements Function2 {
        b() {
        }

        public final void c(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (s0.o.H()) {
                s0.o.Q(453014705, i, -1, "finance.empower.android.app.onboarding.idverification.OnboardingUserDetailsActivity.renderContent.<anonymous>.<anonymous>.<anonymous> (OnboardingUserDetailsActivity.kt:122)");
            }
            String string = OnboardingUserDetailsActivity.this.getString(Ge.j.d);
            Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
            boolean N1 = OnboardingUserDetailsActivity.this.N1();
            lVar.V(-233119520);
            boolean l = lVar.l(OnboardingUserDetailsActivity.this);
            final OnboardingUserDetailsActivity onboardingUserDetailsActivity = OnboardingUserDetailsActivity.this;
            Object f = lVar.f();
            if (l || f == s0.l.a.a()) {
                f = new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit d;
                        d = OnboardingUserDetailsActivity.b.d(OnboardingUserDetailsActivity.this, (String) obj);
                        return d;
                    }
                };
                lVar.M(f);
            }
            lVar.L();
            Pd.i.b(string, null, N1, false, null, (Function1) f, lVar, 0, 26);
            if (s0.o.H()) {
                s0.o.P();
            }
        }

        @Override
        public Object invoke(Object obj, Object obj2) {
            c((s0.l) obj, ((Number) obj2).intValue());
            return Unit.a;
        }

        public static final Unit d(OnboardingUserDetailsActivity onboardingUserDetailsActivity, String str) {
            Intrinsics.checkNotNullParameter(str, IrXwMKibvuzXg.rQLArhhDDHi);
            onboardingUserDetailsActivity.O1().H(str);
            return Unit.a;
        }
    }

    static final class c implements Function2 {
        final o.b.a.C0426a d;
        final OnboardingUserDetailsActivity e;

        c(o.b.a.C0426a c0426a, OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
            this.d = c0426a;
            this.e = onboardingUserDetailsActivity;
        }

        public static final Unit f(String it) {
            Intrinsics.checkNotNullParameter(it, "it");
            return Unit.a;
        }

        public static final Unit g(OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
            onboardingUserDetailsActivity.O1().t();
            return Unit.a;
        }

        public final void d(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (s0.o.H()) {
                s0.o.Q(82761379, i, -1, "finance.empower.android.app.onboarding.idverification.OnboardingUserDetailsActivity.renderContent.<anonymous>.<anonymous> (OnboardingUserDetailsActivity.kt:132)");
            }
            String e = this.d.e();
            androidx.appcompat.app.c cVar = this.e;
            lVar.V(867003715);
            Object f = lVar.f();
            l.a aVar = s0.l.a;
            if (f == aVar.a()) {
                f = new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit f2;
                        f2 = OnboardingUserDetailsActivity.c.f((String) obj);
                        return f2;
                    }
                };
                lVar.M(f);
            }
            Function1 function1 = (Function1) f;
            lVar.L();
            lVar.V(867000018);
            boolean l = lVar.l(this.e);
            final OnboardingUserDetailsActivity onboardingUserDetailsActivity = this.e;
            Object f2 = lVar.f();
            if (l || f2 == aVar.a()) {
                f2 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit g;
                        g = OnboardingUserDetailsActivity.c.g(OnboardingUserDetailsActivity.this);
                        return g;
                    }
                };
                lVar.M(f2);
            }
            lVar.L();
            Pd.m.b(cVar, e, function1, false, null, false, (Function0) f2, 0, false, null, 0, lVar, 3456, 0, 1968);
            if (s0.o.H()) {
                s0.o.P();
            }
        }

        @Override
        public Object invoke(Object obj, Object obj2) {
            d((s0.l) obj, ((Number) obj2).intValue());
            return Unit.a;
        }
    }

    static final class d implements Function2 {
        final o.b.a.C0426a d;
        final OnboardingUserDetailsActivity e;

        d(o.b.a.C0426a c0426a, OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
            this.d = c0426a;
            this.e = onboardingUserDetailsActivity;
        }

        public static final Unit f(String it) {
            Intrinsics.checkNotNullParameter(it, "it");
            return Unit.a;
        }

        public static final Unit g(OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
            onboardingUserDetailsActivity.O1().t();
            return Unit.a;
        }

        public final void d(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (s0.o.H()) {
                s0.o.Q(820983628, i, -1, "finance.empower.android.app.onboarding.idverification.OnboardingUserDetailsActivity.renderContent.<anonymous>.<anonymous> (OnboardingUserDetailsActivity.kt:145)");
            }
            String b = this.d.b();
            androidx.appcompat.app.c cVar = this.e;
            lVar.V(867019171);
            Object f = lVar.f();
            l.a aVar = s0.l.a;
            if (f == aVar.a()) {
                f = new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit f2;
                        f2 = OnboardingUserDetailsActivity.d.f((String) obj);
                        return f2;
                    }
                };
                lVar.M(f);
            }
            Function1 function1 = (Function1) f;
            lVar.L();
            lVar.V(867015506);
            boolean l = lVar.l(this.e);
            final OnboardingUserDetailsActivity onboardingUserDetailsActivity = this.e;
            Object f2 = lVar.f();
            if (l || f2 == aVar.a()) {
                f2 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit g;
                        g = OnboardingUserDetailsActivity.d.g(OnboardingUserDetailsActivity.this);
                        return g;
                    }
                };
                lVar.M(f2);
            }
            lVar.L();
            Pd.k.b(cVar, b, function1, false, (Function0) f2, lVar, 3456, 0);
            if (s0.o.H()) {
                s0.o.P();
            }
        }

        @Override
        public Object invoke(Object obj, Object obj2) {
            d((s0.l) obj, ((Number) obj2).intValue());
            return Unit.a;
        }
    }

    static final class e implements Function2 {
        final o.b.a.C0426a d;
        final OnboardingUserDetailsActivity e;

        e(o.b.a.C0426a c0426a, OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
            this.d = c0426a;
            this.e = onboardingUserDetailsActivity;
        }

        public static final Unit f(String it) {
            Intrinsics.checkNotNullParameter(it, "it");
            return Unit.a;
        }

        public static final Unit g(OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
            onboardingUserDetailsActivity.O1().t();
            return Unit.a;
        }

        public final void d(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (s0.o.H()) {
                s0.o.Q(1992192299, i, -1, "finance.empower.android.app.onboarding.idverification.OnboardingUserDetailsActivity.renderContent.<anonymous>.<anonymous> (OnboardingUserDetailsActivity.kt:158)");
            }
            String c = this.d.c();
            lVar.V(867028403);
            Object f = lVar.f();
            l.a aVar = s0.l.a;
            if (f == aVar.a()) {
                f = new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit f2;
                        f2 = OnboardingUserDetailsActivity.e.f((String) obj);
                        return f2;
                    }
                };
                lVar.M(f);
            }
            Function1 function1 = (Function1) f;
            lVar.L();
            lVar.V(867033458);
            boolean l = lVar.l(this.e);
            final OnboardingUserDetailsActivity onboardingUserDetailsActivity = this.e;
            Object f2 = lVar.f();
            if (l || f2 == aVar.a()) {
                f2 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit g;
                        g = OnboardingUserDetailsActivity.e.g(OnboardingUserDetailsActivity.this);
                        return g;
                    }
                };
                lVar.M(f2);
            }
            lVar.L();
            Pd.d.d(18, c, function1, null, false, (Function0) f2, lVar, 24966, 8);
            if (s0.o.H()) {
                s0.o.P();
            }
        }

        @Override
        public Object invoke(Object obj, Object obj2) {
            d((s0.l) obj, ((Number) obj2).intValue());
            return Unit.a;
        }
    }

    static final class f implements Function2 {
        final o.b.a.C0426a d;
        final OnboardingUserDetailsActivity e;

        f(o.b.a.C0426a c0426a, OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
            this.d = c0426a;
            this.e = onboardingUserDetailsActivity;
        }

        public static final Unit f(String it) {
            Intrinsics.checkNotNullParameter(it, "it");
            return Unit.a;
        }

        public static final Unit g(OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
            onboardingUserDetailsActivity.O1().t();
            return Unit.a;
        }

        public final void d(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (s0.o.H()) {
                s0.o.Q(-1131566326, i, -1, "finance.empower.android.app.onboarding.idverification.OnboardingUserDetailsActivity.renderContent.<anonymous>.<anonymous> (OnboardingUserDetailsActivity.kt:171)");
            }
            String F = StringsKt.F(this.d.d(), "/", "", false, 4, null);
            androidx.appcompat.app.c cVar = this.e;
            lVar.V(867045187);
            Object f = lVar.f();
            l.a aVar = s0.l.a;
            if (f == aVar.a()) {
                f = new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit f2;
                        f2 = OnboardingUserDetailsActivity.f.f((String) obj);
                        return f2;
                    }
                };
                lVar.M(f);
            }
            Function1 function1 = (Function1) f;
            lVar.L();
            lVar.V(867048562);
            boolean l = lVar.l(this.e);
            final OnboardingUserDetailsActivity onboardingUserDetailsActivity = this.e;
            Object f2 = lVar.f();
            if (l || f2 == aVar.a()) {
                f2 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit g;
                        g = OnboardingUserDetailsActivity.f.g(OnboardingUserDetailsActivity.this);
                        return g;
                    }
                };
                lVar.M(f2);
            }
            lVar.L();
            Pd.g.b(cVar, F, false, function1, null, (Function0) f2, lVar, 3456, 16);
            if (s0.o.H()) {
                s0.o.P();
            }
        }

        @Override
        public Object invoke(Object obj, Object obj2) {
            d((s0.l) obj, ((Number) obj2).intValue());
            return Unit.a;
        }
    }

    public static final Ke.r K1(OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
        return Ke.r.c(onboardingUserDetailsActivity.getLayoutInflater());
    }

    public static final boolean L1(OnboardingUserDetailsActivity onboardingUserDetailsActivity) {
        return onboardingUserDetailsActivity.getIntent().getBooleanExtra("finance.empower.0bf30166-75b8-46eb-9962-6ab03c2ac6c8", false);
    }

    private final Ke.r M1() {
        return (Ke.r) this.binding.getValue();
    }

    public final boolean N1() {
        return ((Boolean) this.fromReopenFlow.getValue()).booleanValue();
    }

    private final void Q1(o.b.a.C0426a content) {
        Ke.r M1 = M1();
        ComposeView composeView = M1.f;
        AbstractC0926a.s(B1(), !N1());
        Intrinsics.f(composeView);
        Vd.n.s(composeView, N1());
        composeView.setContent(A0.c.c(453014705, true, new b()));
        M1.g.setContent(A0.c.c(82761379, true, new c(content, this)));
        M1.c.setContent(A0.c.c(820983628, true, new d(content, this)));
        M1.d.setContent(A0.c.c(1992192299, true, new e(content, this)));
        M1.e.setContent(A0.c.c(-1131566326, true, new f(content, this)));
        Button btnSubmit = M1.b;
        Intrinsics.checkNotNullExpressionValue(btnSubmit, "btnSubmit");
        Vd.e.b(btnSubmit, content.f());
    }

    @Override
    protected String getPageName() {
        return this.pageName;
    }

    public final o O1() {
        o oVar = this.presenter;
        if (oVar != null) {
            return oVar;
        }
        Intrinsics.x("presenter");
        return null;
    }

    @Override
    public void E(o.b.a viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        Ke.r M1 = M1();
        ConstraintLayout progressSpinnerModal = M1.h.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal, "progressSpinnerModal");
        Vd.n.c(progressSpinnerModal);
        if (viewState instanceof o.b.a.C0427b) {
            return;
        }
        if (!(viewState instanceof o.b.a.c)) {
            if (!(viewState instanceof o.b.a.C0426a)) {
                throw new NoWhenBranchMatchedException();
            }
            Q1((o.b.a.C0426a) viewState);
            return;
        }
        ConstraintLayout progressSpinnerModal2 = M1.h.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal2, "progressSpinnerModal");
        Vd.n.r(progressSpinnerModal2);
        o.b.a.C0426a b2 = ((o.b.a.c) viewState).b();
        if (b2 != null) {
            Q1(b2);
        }
        M1.b.setEnabled(false);
        AbstractC2536b.c(this);
    }

    public final void R1(o oVar) {
        Intrinsics.checkNotNullParameter(oVar, "<set-?>");
        this.presenter = oVar;
    }

    @Override
    public void a() {
        if (N1()) {
            startActivity(ReopenAccountStepsActivity.INSTANCE.a(this, "", "", true));
        } else {
            O1().v();
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Parcelable parcelable;
        Object parcelable2;
        super.onCreate(savedInstanceState);
        Ke.r M1 = M1();
        setContentView(M1.getRoot());
        M1.i.setText(N1() ? getString(B.r6) : getString(B.s6));
        if (savedInstanceState == null) {
            O1().s(N1());
            return;
        }
        if (Build.VERSION.SDK_INT > 33) {
            parcelable2 = savedInstanceState.getParcelable("finance.empower.a259f727-7c52-424d-abdf-706f352ab129", o.a.class);
            parcelable = (Parcelable) parcelable2;
        } else {
            Parcelable parcelable3 = savedInstanceState.getParcelable("finance.empower.a259f727-7c52-424d-abdf-706f352ab129");
            if (!(parcelable3 instanceof o.a)) {
                parcelable3 = null;
            }
            parcelable = (o.a) parcelable3;
        }
        o.a aVar = (o.a) parcelable;
        if (aVar != null) {
            O1().D(aVar);
        }
    }

    protected void onSaveInstanceState(Bundle outState) {
        Intrinsics.checkNotNullParameter(outState, "outState");
        super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(outState);
        o.a B = O1().B();
        if (B != null) {
            outState.putParcelable("finance.empower.a259f727-7c52-424d-abdf-706f352ab129", B);
        }
    }

    @Override
    protected void onStart() {
        super.onStart();
        O1().C();
    }

    protected void onStop() {
        O1().f();
        super.onStop();
    }
}