导航菜单

页面标题

页面副标题

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

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

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


package finance.empower.android.app.loan.enroll.flow;

import Jd.t;
import Je.B;
import Je.y;
import Ke.C0854h;
import Ke.g0;
import Vd.k;
import ac.AbstractC0989a;
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.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.core.widget.NestedScrollView;
import bc.AbstractC1046m;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import com.withpersona.sdk2.inquiry.network.dto.ui.UiComponentConfig;
import finance.empower.android.app.ExplanationComposeActivity;
import finance.empower.android.app.home.HomeActivity;
import finance.empower.android.app.loan.enroll.flow.LoanPostEnrollActivity;
import finance.empower.android.app.loan.enroll.flow.j;
import finance.empower.android.app.loan.repayment.cash.RepayWithCashCodeActivity;
import finance.empower.android.app.loan.repayment.spei.arcus.LoanPayUsingArcusActivity;
import finance.empower.android.app.view.PdfDownloadActivity;
import finance.empower.android.core.ui.view.ColoredCardCellView;
import finance.empower.android.core.ui.view.itemview.TextItemView;
import finance.empower.android.data.model.loan.LoanDto;
import finance.empower.android.data.model.loan.LoanFeesDto;
import hc.AbstractC1541e;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
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 p0.N;
import p0.i0;
import s0.A;
import s0.O;
import s0.l;
import s0.n1;
import s0.o;
import s0.o1;
import s0.q0;
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\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\f\b\u0007\u0018\u0000 A2\u00020\u00012\u00020\u0002:\u0001BB\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\u0015\u001a\u00020\u00142\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u0017\u0010\u0019\u001a\u00020\u00142\u0006\u0010\u0018\u001a\u00020\u0017H\u0016¢\u0006\u0004\b\u0019\u0010\u001aJ\u0017\u0010\u001d\u001a\u00020\u00072\u0006\u0010\u001c\u001a\u00020\u001bH\u0016¢\u0006\u0004\b\u001d\u0010\u001eJ\u000f\u0010\u001f\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\u001f\u0010\u0004J\u000f\u0010 \u001a\u00020\u0007H\u0016¢\u0006\u0004\b \u0010\u0004J\u001f\u0010%\u001a\u00020\u00072\u0006\u0010\"\u001a\u00020!2\u0006\u0010$\u001a\u00020#H\u0016¢\u0006\u0004\b%\u0010&J\u000f\u0010'\u001a\u00020\u0007H\u0016¢\u0006\u0004\b'\u0010\u0004R*\u00100\u001a\u00020(2\u0006\u0010)\u001a\u00020(8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b*\u0010+\u001a\u0004\b,\u0010-\"\u0004\b.\u0010/R\u001b\u00106\u001a\u0002018BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b2\u00103\u001a\u0004\b4\u00105R\u001a\u0010;\u001a\b\u0012\u0004\u0012\u000208078\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b9\u0010:R\u001a\u0010@\u001a\u00020#8\u0014X\u0094D¢\u0006\f\n\u0004\b<\u0010=\u001a\u0004\b>\u0010?¨\u0006D²\u0006\u000e\u0010C\u001a\u00020\u00148\n@\nX\u008a\u008e\u0002"}, d2 = {"Lfinance/empower/android/app/loan/enroll/flow/LoanPostEnrollActivity;", "Lbc/m;", "Lfinance/empower/android/app/loan/enroll/flow/j$b;", "<init>", "()V", "Lfinance/empower/android/app/loan/enroll/flow/j$b$a$a;", "content", "", "R1", "(Lfinance/empower/android/app/loan/enroll/flow/j$b$a$a;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "onStop", "outState", "onSaveInstanceState", "Landroid/view/Menu;", "menu", "", "onCreateOptionsMenu", "(Landroid/view/Menu;)Z", "Landroid/view/MenuItem;", "item", "onOptionsItemSelected", "(Landroid/view/MenuItem;)Z", "Lfinance/empower/android/app/loan/enroll/flow/j$b$a;", "viewState", "Q1", "(Lfinance/empower/android/app/loan/enroll/flow/j$b$a;)V", "r0", "s", "LVd/k;", UiComponentConfig.Title.type, "", "filePath", "e", "(LVd/k;Ljava/lang/String;)V", "K", "Lfinance/empower/android/app/loan/enroll/flow/j;", "value", "i0", "Lfinance/empower/android/app/loan/enroll/flow/j;", "P1", "()Lfinance/empower/android/app/loan/enroll/flow/j;", "U1", "(Lfinance/empower/android/app/loan/enroll/flow/j;)V", "presenter", "LKe/h;", "j0", "Lsf/l;", "O1", "()LKe/h;", "binding", "Lg/d;", "Landroid/content/Intent;", "k0", "Lg/d;", "cheerRepaymentActivityLauncher", "l0", "Ljava/lang/String;", "C1", "()Ljava/lang/String;", "pageName", "m0", "a", "showBottomSheet", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class LoanPostEnrollActivity extends a implements j.b {

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

    public j presenter;

    private final sf.l binding = sf.m.a(new Function0() {
        @Override
        public final Object invoke() {
            C0854h M1;
            M1 = LoanPostEnrollActivity.M1(LoanPostEnrollActivity.this);
            return M1;
        }
    });

    private final g.d cheerRepaymentActivityLauncher = AbstractC2536b.f(this, null, new Function1() {
        @Override
        public final Object invoke(Object obj) {
            Unit N1;
            N1 = LoanPostEnrollActivity.N1(LoanPostEnrollActivity.this, (g.a) obj);
            return N1;
        }
    }, 1, null);

    private final String pageName = "LoanPostEnrollOffer";

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

        public final Intent a(Context context) {
            Intrinsics.checkNotNullParameter(context, "context");
            return C0995g.a(context, LoanPostEnrollActivity.class, new Pair[0]);
        }

        public final Intent b(Context context) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intent a = C0995g.a(context, LoanPostEnrollActivity.class, new Pair[0]);
            a.setAction("finance.empower.5acd74ab-48ee-42bc-a159-770ad39d9b0d");
            return a;
        }

        public final Intent c(Context context) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intent a = C0995g.a(context, LoanPostEnrollActivity.class, new Pair[0]);
            a.setAction("finance.empower.09fe9d10-31f5-4737-896b-2431f1609d9d");
            return a;
        }

        private Companion() {
        }
    }

    public class b {
        public static final int[] a;

        static {
            int[] iArr = new int[LoanFeesDto.b.values().length];
            try {
                iArr[LoanFeesDto.b.w.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            a = iArr;
        }
    }

    static final class c implements Function2 {
        final j.b.a.C0345a e;

        c(j.b.a.C0345a c0345a) {
            this.e = c0345a;
        }

        private static final boolean k(q0 q0Var) {
            return ((Boolean) q0Var.getValue()).booleanValue();
        }

        public static final Unit l(LoanPostEnrollActivity loanPostEnrollActivity, q0 q0Var) {
            q(q0Var, false);
            loanPostEnrollActivity.P1().x0();
            return Unit.a;
        }

        public static final Unit n(LoanPostEnrollActivity loanPostEnrollActivity, q0 q0Var) {
            q(q0Var, false);
            loanPostEnrollActivity.P1().w0();
            return Unit.a;
        }

        private static final void q(q0 q0Var, boolean z) {
            q0Var.setValue(Boolean.valueOf(z));
        }

        public static final Unit r(q0 q0Var, View it) {
            Intrinsics.checkNotNullParameter(it, "it");
            q(q0Var, true);
            return Unit.a;
        }

        public static final Unit s(q0 q0Var) {
            q(q0Var, false);
            return Unit.a;
        }

        public static final Unit t(LoanPostEnrollActivity loanPostEnrollActivity, q0 q0Var) {
            q(q0Var, false);
            loanPostEnrollActivity.P1().z0();
            return Unit.a;
        }

        public final void i(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-24940138, i, -1, "finance.empower.android.app.loan.enroll.flow.LoanPostEnrollActivity.renderContent.<anonymous>.<anonymous>.<anonymous>.<anonymous> (LoanPostEnrollActivity.kt:216)");
            }
            lVar.V(-496197507);
            Object f = lVar.f();
            l.a aVar = s0.l.a;
            String str = null;
            if (f == aVar.a()) {
                f = o1.i(Boolean.FALSE, (n1) null, 2, (Object) null);
                lVar.M(f);
            }
            final q0 q0Var = (q0) f;
            lVar.L();
            i0 l = N.l(false, (Function1) null, lVar, 0, 3);
            Object f2 = lVar.f();
            if (f2 == aVar.a()) {
                A a = new A(O.j(kotlin.coroutines.e.d, lVar));
                lVar.M(a);
                f2 = a;
            }
            ((A) f2).a();
            Button btnLoanPayEarly = LoanPostEnrollActivity.this.O1().d;
            Intrinsics.checkNotNullExpressionValue(btnLoanPayEarly, "btnLoanPayEarly");
            lVar.V(-496189975);
            Object f3 = lVar.f();
            if (f3 == aVar.a()) {
                f3 = new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit r;
                        r = LoanPostEnrollActivity.c.r(q0Var, (View) obj);
                        return r;
                    }
                };
                lVar.M(f3);
            }
            lVar.L();
            Wd.c.c(btnLoanPayEarly, (Function1) f3);
            if (k(q0Var)) {
                String string = LoanPostEnrollActivity.this.getString(B.R2);
                Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
                if (this.e.e() != null) {
                    j.b.a.C0345a c0345a = this.e;
                    str = new k.b(B.P2, CollectionsKt.p(c0345a.e().getName(), c0345a.e().getLastFour())).a(LoanPostEnrollActivity.this);
                }
                boolean f4 = this.e.f();
                lVar.V(-496162918);
                Object f5 = lVar.f();
                if (f5 == aVar.a()) {
                    f5 = new Function0() {
                        @Override
                        public final Object invoke() {
                            Unit s;
                            s = LoanPostEnrollActivity.c.s(q0Var);
                            return s;
                        }
                    };
                    lVar.M(f5);
                }
                Function0 function0 = (Function0) f5;
                lVar.L();
                lVar.V(-496157985);
                boolean l2 = lVar.l(LoanPostEnrollActivity.this);
                final LoanPostEnrollActivity loanPostEnrollActivity = LoanPostEnrollActivity.this;
                Object f6 = lVar.f();
                if (l2 || f6 == aVar.a()) {
                    f6 = new Function0() {
                        @Override
                        public final Object invoke() {
                            Unit t;
                            t = LoanPostEnrollActivity.c.t(LoanPostEnrollActivity.this, q0Var);
                            return t;
                        }
                    };
                    lVar.M(f6);
                }
                Function0 function02 = (Function0) f6;
                lVar.L();
                lVar.V(-496150880);
                boolean l3 = lVar.l(LoanPostEnrollActivity.this);
                final LoanPostEnrollActivity loanPostEnrollActivity2 = LoanPostEnrollActivity.this;
                Object f7 = lVar.f();
                if (l3 || f7 == aVar.a()) {
                    f7 = new Function0() {
                        @Override
                        public final Object invoke() {
                            Unit l4;
                            l4 = LoanPostEnrollActivity.c.l(LoanPostEnrollActivity.this, q0Var);
                            return l4;
                        }
                    };
                    lVar.M(f7);
                }
                Function0 function03 = (Function0) f7;
                lVar.L();
                lVar.V(-496143777);
                boolean l4 = lVar.l(LoanPostEnrollActivity.this);
                final LoanPostEnrollActivity loanPostEnrollActivity3 = LoanPostEnrollActivity.this;
                Object f8 = lVar.f();
                if (l4 || f8 == aVar.a()) {
                    f8 = new Function0() {
                        @Override
                        public final Object invoke() {
                            Unit n;
                            n = LoanPostEnrollActivity.c.n(LoanPostEnrollActivity.this, q0Var);
                            return n;
                        }
                    };
                    lVar.M(f8);
                }
                lVar.L();
                Ec.c.b(string, str, f4, l, function0, function02, function03, (Function0) f8, null, lVar, 24576, 256);
            }
            if (o.H()) {
                o.P();
            }
        }

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

    public static final C0854h M1(LoanPostEnrollActivity loanPostEnrollActivity) {
        return C0854h.c(loanPostEnrollActivity.getLayoutInflater());
    }

    public static final Unit N1(LoanPostEnrollActivity loanPostEnrollActivity, g.a it) {
        Intrinsics.checkNotNullParameter(it, "it");
        loanPostEnrollActivity.startActivity(AbstractC0989a.d(AbstractC0989a.f(HomeActivity.INSTANCE.a(loanPostEnrollActivity))));
        return Unit.a;
    }

    public final C0854h O1() {
        return (C0854h) this.binding.getValue();
    }

    private final void R1(j.b.a.C0345a content) {
        String a;
        Object obj;
        C0854h O1 = O1();
        LinearLayout cashAdvancePreEnrollDetailsSection = O1.e;
        Intrinsics.checkNotNullExpressionValue(cashAdvancePreEnrollDetailsSection, "cashAdvancePreEnrollDetailsSection");
        Vd.n.r(cashAdvancePreEnrollDetailsSection);
        LinearLayout loanFeeSection = O1.o;
        Intrinsics.checkNotNullExpressionValue(loanFeeSection, "loanFeeSection");
        Wd.c.c(loanFeeSection, new Function1() {
            @Override
            public final Object invoke(Object obj2) {
                Unit S1;
                S1 = LoanPostEnrollActivity.S1(LoanPostEnrollActivity.this, (View) obj2);
                return S1;
            }
        });
        LinearLayout linearLayout = O1.l;
        Intrinsics.f(linearLayout);
        Wd.c.c(linearLayout, new Function1() {
            @Override
            public final Object invoke(Object obj2) {
                Unit T1;
                T1 = LoanPostEnrollActivity.T1(LoanPostEnrollActivity.this, (View) obj2);
                return T1;
            }
        });
        LoanDto.b d = content.d();
        LoanDto.b bVar = LoanDto.b.w;
        Vd.n.s(linearLayout, d == bVar);
        O1.r.setText(Sd.b.b(content.c(), this, false, null, 6, null).toString());
        O1.u.setText(Sd.b.f(content.o(), null, 1, null).toString());
        O1.t.setText(Sd.b.f(content.n(), null, 1, null).toString());
        O1.n.setTextMeta(Sd.b.f(content.j(), null, 1, null).toString());
        O1.s.setTextMeta(Sd.b.f(content.m(), null, 1, null).toString());
        O1.i.setTextMeta(Ud.a.a(content.l()));
        TextItemView textItemView = O1.b;
        textItemView.setTextMeta(Ud.a.a(content.a()));
        Intrinsics.f(textItemView);
        LoanDto.b d2 = content.d();
        LoanDto.b bVar2 = LoanDto.b.F;
        Vd.n.s(textItemView, d2 != bVar2);
        LinearLayout estimatedArrivalSection = O1.j;
        Intrinsics.checkNotNullExpressionValue(estimatedArrivalSection, "estimatedArrivalSection");
        Vd.n.s(estimatedArrivalSection, content.d() != bVar2);
        g0 g0Var = O1.h;
        O1.g.setContent(A0.c.c(-24940138, true, new c(content)));
        LinearLayout root = g0Var.getRoot();
        Intrinsics.checkNotNullExpressionValue(root, "getRoot(...)");
        Vd.n.s(root, content.d() == bVar);
        TextView textView = g0Var.e;
        LoanFeesDto.b i = content.i();
        if ((i == null ? -1 : b.a[i.ordinal()]) == 1) {
            int i2 = B.v2;
            Double h = content.h();
            if (h == null || (obj = Sd.b.j(h.doubleValue(), 2, false)) == null) {
                obj = "";
            }
            a = new k.b(i2, CollectionsKt.e(obj)).a(this);
        } else {
            a = new k.b(B.u2, null, 2, null).a(this);
        }
        textView.setText(a);
        O1.c.setTextMeta(content.b().a(this));
        Button button = O1.d;
        Intrinsics.f(button);
        Vd.e.b(button, content.k());
        Vd.n.s(button, content.d() == LoanDto.b.v && !content.g());
        ColoredCardCellView repayingStateSection = O1.q;
        Intrinsics.checkNotNullExpressionValue(repayingStateSection, "repayingStateSection");
        Vd.n.s(repayingStateSection, content.d() == bVar2);
    }

    public static final Unit S1(LoanPostEnrollActivity loanPostEnrollActivity, View it) {
        Intrinsics.checkNotNullParameter(it, "it");
        loanPostEnrollActivity.P1().q0();
        return Unit.a;
    }

    public static final Unit T1(LoanPostEnrollActivity loanPostEnrollActivity, View it) {
        Intrinsics.checkNotNullParameter(it, "it");
        loanPostEnrollActivity.P1().r0();
        return Unit.a;
    }

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

    @Override
    public void K() {
        startActivity(RepayWithCashCodeActivity.INSTANCE.a(this));
    }

    public final j P1() {
        j jVar = this.presenter;
        if (jVar != null) {
            return jVar;
        }
        Intrinsics.x("presenter");
        return null;
    }

    @Override
    public void E(j.b.a viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        C0854h O1 = O1();
        ConstraintLayout progressSpinnerModal = O1.m.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal, "progressSpinnerModal");
        Vd.n.c(progressSpinnerModal);
        if (viewState instanceof j.b.a.c) {
            NestedScrollView postEnrollSection = O1.p;
            Intrinsics.checkNotNullExpressionValue(postEnrollSection, "postEnrollSection");
            Vd.n.c(postEnrollSection);
            ConstraintLayout progressSpinnerModal2 = O1.m.c;
            Intrinsics.checkNotNullExpressionValue(progressSpinnerModal2, "progressSpinnerModal");
            Vd.n.r(progressSpinnerModal2);
            return;
        }
        if (!(viewState instanceof j.b.a.C0345a)) {
            if (!Intrinsics.d(viewState, j.b.a.C0346b.a)) {
                throw new NoWhenBranchMatchedException();
            }
        } else {
            NestedScrollView postEnrollSection2 = O1.p;
            Intrinsics.checkNotNullExpressionValue(postEnrollSection2, "postEnrollSection");
            Vd.n.r(postEnrollSection2);
            R1((j.b.a.C0345a) viewState);
        }
    }

    public final void U1(j jVar) {
        Intrinsics.checkNotNullParameter(jVar, "<set-?>");
        this.presenter = jVar;
    }

    @Override
    public void e(Vd.k title, String filePath) {
        Intrinsics.checkNotNullParameter(title, "title");
        Intrinsics.checkNotNullParameter(filePath, "filePath");
        startActivity(PdfDownloadActivity.INSTANCE.a(this, title, filePath));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Parcelable parcelable;
        Object parcelable2;
        super.onCreate(savedInstanceState);
        CoordinatorLayout root = O1().getRoot();
        Intrinsics.checkNotNullExpressionValue(root, "getRoot(...)");
        Vd.n.o(root, 0, 1, null);
        C0854h O1 = O1();
        setContentView(O1().getRoot());
        String string = getString(B.u1);
        Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
        AbstractC1046m.G1(this, string, null, t.i, O1.k.c.b, false, null, 50, null);
        P1().p0(Intrinsics.d(getIntent().getAction(), "finance.empower.5acd74ab-48ee-42bc-a159-770ad39d9b0d"), Intrinsics.d(getIntent().getAction(), "finance.empower.09fe9d10-31f5-4737-896b-2431f1609d9d"));
        if (savedInstanceState != null) {
            if (Build.VERSION.SDK_INT > 33) {
                parcelable2 = savedInstanceState.getParcelable("finance.empower.d0b6c5a1-c86f-44bd-b101-22d9619e26f2", j.a.class);
                parcelable = (Parcelable) parcelable2;
            } else {
                Parcelable parcelable3 = savedInstanceState.getParcelable("finance.empower.d0b6c5a1-c86f-44bd-b101-22d9619e26f2");
                parcelable = (j.a) (parcelable3 instanceof j.a ? parcelable3 : null);
            }
            j.a aVar = (j.a) parcelable;
            if (aVar != null) {
                P1().G0(aVar);
            }
        }
    }

    public boolean onCreateOptionsMenu(Menu menu) {
        Intrinsics.checkNotNullParameter(menu, "menu");
        super/*android.app.Activity*/.onCreateOptionsMenu(menu);
        getMenuInflater().inflate(Je.A.a, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        Intrinsics.checkNotNullParameter(item, "item");
        if (item.getItemId() != y.u) {
            return super.onOptionsItemSelected(item);
        }
        P1().s0();
        return true;
    }

    protected void onSaveInstanceState(Bundle outState) {
        Intrinsics.checkNotNullParameter(outState, "outState");
        super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(outState);
        j.a o0 = P1().o0();
        if (o0 != null) {
            outState.putParcelable("finance.empower.d0b6c5a1-c86f-44bd-b101-22d9619e26f2", o0);
        }
    }

    @Override
    protected void onStart() {
        super.onStart();
        P1().A0();
    }

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

    @Override
    public void r0() {
        finish();
        this.cheerRepaymentActivityLauncher.b(ExplanationComposeActivity.INSTANCE.a(this, AbstractC1541e.a()));
    }

    @Override
    public void s() {
        startActivity(LoanPayUsingArcusActivity.INSTANCE.a(this));
    }
}