导航菜单

页面标题

页面副标题

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

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

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


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

import Jd.t;
import Je.B;
import Ke.C0855i;
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.View;
import android.widget.Button;
import android.widget.LinearLayout;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import bc.AbstractC1046m;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import ec.p0;
import finance.empower.android.app.ExplanationComposeActivity;
import finance.empower.android.app.home.HomeActivity;
import finance.empower.android.app.loan.enroll.flow.LoanPreEnrollActivity;
import finance.empower.android.app.loan.enroll.flow.n;
import finance.empower.android.app.loan.legal.LoanReadAndAgreeActivity;
import hc.AbstractC1540d;
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.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import qc.C2173c;
import ze.AbstractC2536b;

@Metadata(d1 = {"\u0000r\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\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\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\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\f\b\u0007\u0018\u0000 M2\u00020\u00012\u00020\u0002:\u0001NB\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\u0004J\u0017\u0010\u0019\u001a\u00020\u00072\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\u001eR*\u0010'\u001a\u00020\u001f2\u0006\u0010 \u001a\u00020\u001f8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b!\u0010\"\u001a\u0004\b#\u0010$\"\u0004\b%\u0010&R*\u0010/\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*\u00107\u001a\u0002002\u0006\u0010 \u001a\u0002008\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b1\u00102\u001a\u0004\b3\u00104\"\u0004\b5\u00106R\u0016\u0010;\u001a\u0002088\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b9\u0010:R\u001b\u0010A\u001a\u00020<8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b=\u0010>\u001a\u0004\b?\u0010@R\u001a\u0010F\u001a\b\u0012\u0004\u0012\u00020C0B8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bD\u0010ER\u001a\u0010G\u001a\b\u0012\u0004\u0012\u00020C0B8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0019\u0010ER\u001a\u0010L\u001a\u00020\u00178\u0014X\u0094D¢\u0006\f\n\u0004\bH\u0010I\u001a\u0004\bJ\u0010K¨\u0006O"}, d2 = {"Lfinance/empower/android/app/loan/enroll/flow/LoanPreEnrollActivity;", "Lbc/m;", "Lfinance/empower/android/app/loan/enroll/flow/n$b;", "<init>", "()V", "Lfinance/empower/android/app/loan/enroll/flow/n$b$a$a;", "content", "", "T1", "(Lfinance/empower/android/app/loan/enroll/flow/n$b$a$a;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "onStop", "outState", "onSaveInstanceState", "Lfinance/empower/android/app/loan/enroll/flow/n$b$a;", "viewState", "S1", "(Lfinance/empower/android/app/loan/enroll/flow/n$b$a;)V", "N", "", "loanId", "o0", "(Ljava/lang/String;)V", "LVd/k$b;", "message", "f0", "(LVd/k$b;)V", "Lfinance/empower/android/app/loan/enroll/flow/n;", "value", "i0", "Lfinance/empower/android/app/loan/enroll/flow/n;", "Q1", "()Lfinance/empower/android/app/loan/enroll/flow/n;", "X1", "(Lfinance/empower/android/app/loan/enroll/flow/n;)V", "presenter", "LRc/e;", "j0", "LRc/e;", "P1", "()LRc/e;", "W1", "(LRc/e;)V", "institutionLogoProvider", "Lec/p0;", "k0", "Lec/p0;", "getPromptsComponent", "()Lec/p0;", "Y1", "(Lec/p0;)V", "promptsComponent", "Lqc/c;", "l0", "Lqc/c;", "deliveryOptionsAdapter", "LKe/i;", "m0", "Lsf/l;", "O1", "()LKe/i;", "binding", "Lg/d;", "Landroid/content/Intent;", "n0", "Lg/d;", "readAndAgreeActivityLauncher", "cheerActivityLauncher", "p0", "Ljava/lang/String;", "C1", "()Ljava/lang/String;", "pageName", "q0", "a", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class LoanPreEnrollActivity extends b implements n.b {

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

    public n presenter;

    public Rc.e institutionLogoProvider;

    public p0 promptsComponent;

    private C2173c deliveryOptionsAdapter;

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

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

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

    private final String pageName = "LoanPreEnrollOffer";

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

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

        private Companion() {
        }
    }

    public static final C0855i M1(LoanPreEnrollActivity loanPreEnrollActivity) {
        return C0855i.c(loanPreEnrollActivity.getLayoutInflater());
    }

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

    private final C0855i O1() {
        return (C0855i) this.binding.getValue();
    }

    public static final Unit R1(LoanPreEnrollActivity loanPreEnrollActivity, g.a it) {
        Intrinsics.checkNotNullParameter(it, "it");
        loanPreEnrollActivity.Q1().t();
        return Unit.a;
    }

    private final void T1(final n.b.a.C0348a content) {
        C0855i O1 = O1();
        LinearLayout cashAdvancePreEnrollDetailsSection = O1.c;
        Intrinsics.checkNotNullExpressionValue(cashAdvancePreEnrollDetailsSection, "cashAdvancePreEnrollDetailsSection");
        Vd.n.r(cashAdvancePreEnrollDetailsSection);
        LinearLayout loanFeeSection = O1.i;
        Intrinsics.checkNotNullExpressionValue(loanFeeSection, "loanFeeSection");
        Wd.c.c(loanFeeSection, new Function1() {
            @Override
            public final Object invoke(Object obj) {
                Unit V1;
                V1 = LoanPreEnrollActivity.V1(LoanPreEnrollActivity.this, (View) obj);
                return V1;
            }
        });
        C2173c c2173c = this.deliveryOptionsAdapter;
        if (c2173c == null) {
            Intrinsics.x("deliveryOptionsAdapter");
            c2173c = null;
        }
        c2173c.G(content.b());
        O1.h.setText(Sd.b.d(content.a(), this, null, 2, null).toString());
        O1.m.setText(Sd.b.f(content.f(), null, 1, null).toString());
        O1.l.setTextMeta(Sd.b.f(content.e(), null, 1, null).toString());
        O1.e.setTextMeta(Ud.a.a(content.d()));
        Button btnGetCashAdvance = O1.b;
        Intrinsics.checkNotNullExpressionValue(btnGetCashAdvance, "btnGetCashAdvance");
        Wd.c.c(btnGetCashAdvance, new Function1() {
            @Override
            public final Object invoke(Object obj) {
                Unit U1;
                U1 = LoanPreEnrollActivity.U1(n.b.a.C0348a.this, (View) obj);
                return U1;
            }
        });
    }

    public static final Unit U1(n.b.a.C0348a c0348a, View it) {
        Intrinsics.checkNotNullParameter(it, "it");
        c0348a.c().invoke();
        return Unit.a;
    }

    public static final Unit V1(LoanPreEnrollActivity loanPreEnrollActivity, View it) {
        Intrinsics.checkNotNullParameter(it, "it");
        loanPreEnrollActivity.Q1().u();
        return Unit.a;
    }

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

    @Override
    public void N() {
        this.readAndAgreeActivityLauncher.b(LoanReadAndAgreeActivity.INSTANCE.a(this, ""));
    }

    public final Rc.e P1() {
        Rc.e eVar = this.institutionLogoProvider;
        if (eVar != null) {
            return eVar;
        }
        Intrinsics.x("institutionLogoProvider");
        return null;
    }

    public final n Q1() {
        n nVar = this.presenter;
        if (nVar != null) {
            return nVar;
        }
        Intrinsics.x("presenter");
        return null;
    }

    @Override
    public void E(n.b.a viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        C0855i O1 = O1();
        ConstraintLayout progressSpinnerModal = O1.g.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal, "progressSpinnerModal");
        Vd.n.c(progressSpinnerModal);
        if (viewState instanceof n.b.a.c) {
            NestedScrollView preEnrollSection = O1.j;
            Intrinsics.checkNotNullExpressionValue(preEnrollSection, "preEnrollSection");
            Vd.n.c(preEnrollSection);
            ConstraintLayout progressSpinnerModal2 = O1.g.c;
            Intrinsics.checkNotNullExpressionValue(progressSpinnerModal2, "progressSpinnerModal");
            Vd.n.r(progressSpinnerModal2);
            O1.b.setEnabled(false);
            return;
        }
        if (!(viewState instanceof n.b.a.C0348a)) {
            if (!Intrinsics.d(viewState, n.b.a.C0349b.a)) {
                throw new NoWhenBranchMatchedException();
            }
            return;
        }
        NestedScrollView preEnrollSection2 = O1.j;
        Intrinsics.checkNotNullExpressionValue(preEnrollSection2, "preEnrollSection");
        Vd.n.r(preEnrollSection2);
        O1.b.setEnabled(true);
        T1((n.b.a.C0348a) viewState);
    }

    public final void W1(Rc.e eVar) {
        Intrinsics.checkNotNullParameter(eVar, "<set-?>");
        this.institutionLogoProvider = eVar;
    }

    public final void X1(n nVar) {
        Intrinsics.checkNotNullParameter(nVar, "<set-?>");
        this.presenter = nVar;
    }

    public final void Y1(p0 p0Var) {
        Intrinsics.checkNotNullParameter(p0Var, "<set-?>");
        this.promptsComponent = p0Var;
    }

    @Override
    public void f0(k.b message) {
        Intrinsics.checkNotNullParameter(message, "message");
        this.cheerActivityLauncher.b(ExplanationComposeActivity.INSTANCE.a(this, AbstractC1540d.a(message)));
    }

    @Override
    public void o0(String loanId) {
        Intrinsics.checkNotNullParameter(loanId, "loanId");
        this.readAndAgreeActivityLauncher.b(LoanReadAndAgreeActivity.INSTANCE.a(this, loanId));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Parcelable parcelable;
        Object parcelable2;
        super.onCreate(savedInstanceState);
        C0855i O1 = O1();
        setContentView(O1().getRoot());
        String string = getString(B.u1);
        Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
        AbstractC1046m.G1(this, string, null, t.i, O1.f.c.b, false, null, 50, null);
        C2173c c2173c = new C2173c(P1());
        this.deliveryOptionsAdapter = c2173c;
        RecyclerView recyclerView = O1.k;
        recyclerView.setAdapter(c2173c);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setFocusableInTouchMode(false);
        if (savedInstanceState != null) {
            if (Build.VERSION.SDK_INT > 33) {
                parcelable2 = savedInstanceState.getParcelable("finance.empower.9ae49e5e-246c-4ca5-9c1b-b5483b95223d", n.a.class);
                parcelable = (Parcelable) parcelable2;
            } else {
                Parcelable parcelable3 = savedInstanceState.getParcelable("finance.empower.9ae49e5e-246c-4ca5-9c1b-b5483b95223d");
                if (!(parcelable3 instanceof n.a)) {
                    parcelable3 = null;
                }
                parcelable = (n.a) parcelable3;
            }
            n.a aVar = (n.a) parcelable;
            if (aVar != null) {
                Q1().w(aVar);
            }
        }
    }

    protected void onSaveInstanceState(Bundle outState) {
        Intrinsics.checkNotNullParameter(outState, "outState");
        super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(outState);
        n.a s = Q1().s();
        if (s != null) {
            outState.putParcelable("finance.empower.9ae49e5e-246c-4ca5-9c1b-b5483b95223d", s);
        }
    }

    @Override
    protected void onStart() {
        super.onStart();
        Q1().v();
    }

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