导航菜单

页面标题

页面副标题

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

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

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


package finance.empower.android.app.loan.repayment.spei.arcus;

import Jd.t;
import Je.A;
import Je.y;
import Ke.C0853g;
import Ne.aE.RTqsLyHH;
import Vd.n;
import ac.C0995g;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import bc.AbstractC1046m;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import ec.M0;
import finance.empower.android.app.loan.repayment.spei.arcus.LoanPayUsingArcusActivity;
import finance.empower.android.app.loan.repayment.spei.arcus.e;
import finance.empower.android.core.ui.view.itemview.ButtonItemView;
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 kotlin.text.StringsKt;
import sf.l;
import sf.m;

@Metadata(d1 = {"\u0000p\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\u0010\u000e\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\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\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\r\b\u0007\u0018\u0000 B2\u00020\u00012\u00020\u0002:\u0001CB\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\tJ1\u0010\u0010\u001a\u00020\u0007*\u00020\n2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u000b2\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00070\u000eH\u0002¢\u0006\u0004\b\u0010\u0010\u0011J\u0019\u0010\u0014\u001a\u00020\u00072\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012H\u0014¢\u0006\u0004\b\u0014\u0010\u0015J\u000f\u0010\u0016\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u0016\u0010\u0004J\u000f\u0010\u0017\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u0017\u0010\u0004J\u0017\u0010\u001b\u001a\u00020\u001a2\u0006\u0010\u0019\u001a\u00020\u0018H\u0016¢\u0006\u0004\b\u001b\u0010\u001cJ\u0017\u0010\u001f\u001a\u00020\u001a2\u0006\u0010\u001e\u001a\u00020\u001dH\u0016¢\u0006\u0004\b\u001f\u0010 J\u000f\u0010!\u001a\u00020\u0007H\u0016¢\u0006\u0004\b!\u0010\u0004J\u0017\u0010$\u001a\u00020\u00072\u0006\u0010#\u001a\u00020\"H\u0016¢\u0006\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*\u00106\u001a\u00020/2\u0006\u0010'\u001a\u00020/8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b0\u00101\u001a\u0004\b2\u00103\"\u0004\b4\u00105R\u001b\u0010<\u001a\u0002078BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b8\u00109\u001a\u0004\b:\u0010;R\u001a\u0010A\u001a\u00020\u000b8\u0014X\u0094D¢\u0006\f\n\u0004\b=\u0010>\u001a\u0004\b?\u0010@¨\u0006D"}, d2 = {"Lfinance/empower/android/app/loan/repayment/spei/arcus/LoanPayUsingArcusActivity;", "Lbc/m;", "Lfinance/empower/android/app/loan/repayment/spei/arcus/e$b;", "<init>", "()V", "Lfinance/empower/android/app/loan/repayment/spei/arcus/e$b$a$a;", "content", "", "S1", "(Lfinance/empower/android/app/loan/repayment/spei/arcus/e$b$a$a;)V", "Lfinance/empower/android/core/ui/view/itemview/ButtonItemView;", "", "dataToDisplay", "dataToCopy", "Lkotlin/Function0;", "onDataCopied", "Q1", "(Lfinance/empower/android/core/ui/view/itemview/ButtonItemView;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "onStop", "Landroid/view/Menu;", "menu", "", "onCreateOptionsMenu", "(Landroid/view/Menu;)Z", "Landroid/view/MenuItem;", "item", "onOptionsItemSelected", "(Landroid/view/MenuItem;)Z", "Z", "Lfinance/empower/android/app/loan/repayment/spei/arcus/e$b$a;", "viewState", "P1", "(Lfinance/empower/android/app/loan/repayment/spei/arcus/e$b$a;)V", "Lfinance/empower/android/app/loan/repayment/spei/arcus/e;", "value", "i0", "Lfinance/empower/android/app/loan/repayment/spei/arcus/e;", "N1", "()Lfinance/empower/android/app/loan/repayment/spei/arcus/e;", "V1", "(Lfinance/empower/android/app/loan/repayment/spei/arcus/e;)V", "presenter", "Lec/M0;", "j0", "Lec/M0;", "O1", "()Lec/M0;", "W1", "(Lec/M0;)V", "snackbarComponent", "LKe/g;", "k0", "Lsf/l;", "M1", "()LKe/g;", "binding", "l0", "Ljava/lang/String;", "C1", "()Ljava/lang/String;", "pageName", "m0", "a", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class LoanPayUsingArcusActivity extends a implements e.b {

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

    public e presenter;

    public M0 snackbarComponent;

    private final l binding = m.a(new Function0() {
        @Override
        public final Object invoke() {
            C0853g L1;
            L1 = LoanPayUsingArcusActivity.L1(LoanPayUsingArcusActivity.this);
            return L1;
        }
    });

    private final String pageName = "LoanPayUsingSpei";

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

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

        private Companion() {
        }
    }

    public static final C0853g L1(LoanPayUsingArcusActivity loanPayUsingArcusActivity) {
        return C0853g.c(loanPayUsingArcusActivity.getLayoutInflater());
    }

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

    private final void Q1(final ButtonItemView buttonItemView, String str, final String str2, final Function0 function0) {
        buttonItemView.setTextSecondary(str);
        Wd.c.c(buttonItemView.getCtaButton(), new Function1() {
            @Override
            public final Object invoke(Object obj) {
                Unit R1;
                R1 = LoanPayUsingArcusActivity.R1(str2, this, buttonItemView, function0, (View) obj);
                return R1;
            }
        });
    }

    public static final Unit R1(String str, LoanPayUsingArcusActivity loanPayUsingArcusActivity, ButtonItemView buttonItemView, Function0 function0, View it) {
        Intrinsics.checkNotNullParameter(it, "it");
        De.a.c(str, loanPayUsingArcusActivity, buttonItemView.getTextPrimary());
        function0.invoke();
        return Unit.a;
    }

    public static final Unit T1(LoanPayUsingArcusActivity loanPayUsingArcusActivity) {
        loanPayUsingArcusActivity.N1().s();
        return Unit.a;
    }

    public static final Unit U1(LoanPayUsingArcusActivity loanPayUsingArcusActivity) {
        loanPayUsingArcusActivity.N1().t();
        return Unit.a;
    }

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

    public final e N1() {
        e eVar = this.presenter;
        if (eVar != null) {
            return eVar;
        }
        Intrinsics.x("presenter");
        return null;
    }

    public final M0 O1() {
        M0 m0 = this.snackbarComponent;
        if (m0 != null) {
            return m0;
        }
        Intrinsics.x("snackbarComponent");
        return null;
    }

    @Override
    public void E(e.b.a viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        C0853g M1 = M1();
        ConstraintLayout progressSpinnerModal = M1.d.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal, "progressSpinnerModal");
        n.c(progressSpinnerModal);
        if (viewState instanceof e.b.a.C0372b) {
            return;
        }
        if (!(viewState instanceof e.b.a.c)) {
            if (!(viewState instanceof e.b.a.C0371a)) {
                throw new NoWhenBranchMatchedException();
            }
            S1((e.b.a.C0371a) viewState);
            return;
        }
        ConstraintLayout progressSpinnerModal2 = M1.d.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal2, "progressSpinnerModal");
        n.r(progressSpinnerModal2);
        e.b.a.C0371a b = ((e.b.a.c) viewState).b();
        if (b != null) {
            S1(b);
        }
    }

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

    public final void W1(M0 m0) {
        Intrinsics.checkNotNullParameter(m0, "<set-?>");
        this.snackbarComponent = m0;
    }

    @Override
    public void Z() {
        startActivity(LoanPayUsingArcusInfoView.INSTANCE.a(this));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        C0853g M1 = M1();
        setContentView(M1.getRoot());
        CoordinatorLayout root = M1().getRoot();
        Intrinsics.checkNotNullExpressionValue(root, "getRoot(...)");
        n.o(root, 0, 1, null);
        AbstractC1046m.G1(this, null, null, t.i, M1.c.c.b, false, null, 51, null);
        M0 O1 = O1();
        CoordinatorLayout root2 = M1.getRoot();
        Intrinsics.checkNotNullExpressionValue(root2, "getRoot(...)");
        M0.b(O1, root2, null, 2, null);
    }

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

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

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

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

    private final void S1(e.b.a.C0371a content) {
        C0853g M1 = M1();
        ButtonItemView sectionTotalDue = M1.h;
        Intrinsics.checkNotNullExpressionValue(sectionTotalDue, "sectionTotalDue");
        Q1(sectionTotalDue, content.d(), StringsKt.F(content.d(), "$", RTqsLyHH.MdyqLupiLC, false, 4, null), new Function0() {
            @Override
            public final Object invoke() {
                Unit T1;
                T1 = LoanPayUsingArcusActivity.T1(LoanPayUsingArcusActivity.this);
                return T1;
            }
        });
        M1.f.setTextSecondary(content.b());
        ButtonItemView sectionClabe = M1.g;
        Intrinsics.checkNotNullExpressionValue(sectionClabe, "sectionClabe");
        Q1(sectionClabe, content.c(), content.c(), new Function0() {
            @Override
            public final Object invoke() {
                Unit U1;
                U1 = LoanPayUsingArcusActivity.U1(LoanPayUsingArcusActivity.this);
                return U1;
            }
        });
    }
}