导航菜单

页面标题

页面副标题

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

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

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


package finance.empower.android.app.home;

import Fc.u;
import Gc.t;
import Je.B;
import Ke.C0850d;
import Ne.aE.RTqsLyHH;
import Sb.Ge.ytfVNX;
import Vd.k;
import ac.AbstractC0989a;
import ac.C0995g;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Spannable;
import android.view.Window;
import android.widget.ImageView;
import androidx.compose.foundation.layout.q;
import androidx.compose.ui.platform.ComposeView;
import bc.AbstractC1046m;
import bc.B0;
import bc.C1030e;
import bc.e1;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import ec.J0;
import ec.T;
import fc.C1297n;
import finance.empower.android.app.email.EmailVerificationActivity;
import finance.empower.android.app.home.HomeActivity;
import finance.empower.android.app.home.m;
import finance.empower.android.app.notifications.NotificationsFeedActivity;
import finance.empower.android.app.profile.ProfileActivity;
import finance.empower.android.app.referrals.ReferralsProgramActivity;
import finance.empower.android.app.survey.SurveyQuestionsActivity;
import finance.empower.android.data.model.FeatureRadarDetails;
import finance.empower.android.data.model.loan.DeliveryAccountDto;
import gc.C1337N;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import nc.C2006b;
import oc.AbstractC2046c;
import oc.AbstractC2053j;
import oc.C2050g;
import org.joda.time.DateTime;
import s0.o;
import z6.p;

@Metadata(d1 = {"\u0000°\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0015\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\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\u0007\n\u0002\u0018\u0002\n\u0002\b\r\b\u0007\u0018\u0000 r2\u00020\u00012\u00020\u0002:\u0001sB\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\u0017\u0010\f\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\nH\u0002¢\u0006\u0004\b\f\u0010\rJ7\u0010\u0014\u001a\u00020\u00072&\u0010\u0013\u001a\"\u0012\f\u0012\n\u0018\u00010\u000fj\u0004\u0018\u0001`\u0010\u0012\b\u0012\u00060\u0005j\u0002`\u0011\u0018\u00010\u000ej\u0004\u0018\u0001`\u0012H\u0002¢\u0006\u0004\b\u0014\u0010\u0015J\u0017\u0010\u0018\u001a\u00020\u00072\u0006\u0010\u0017\u001a\u00020\u0016H\u0002¢\u0006\u0004\b\u0018\u0010\u0019J\u0017\u0010\u001b\u001a\u00020\u00072\u0006\u0010\u001a\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u001b\u0010\tJ\u0017\u0010\u001e\u001a\u00020\u00072\u0006\u0010\u001d\u001a\u00020\u001cH\u0002¢\u0006\u0004\b\u001e\u0010\u001fJ\u0019\u0010\"\u001a\u00020\u00072\b\u0010!\u001a\u0004\u0018\u00010 H\u0002¢\u0006\u0004\b\"\u0010#J\u001f\u0010%\u001a\u00020\u00072\u0006\u0010$\u001a\u00020\u00052\u0006\u0010\u0017\u001a\u00020\u0016H\u0002¢\u0006\u0004\b%\u0010&J\u0019\u0010(\u001a\u00020\u00072\b\u0010'\u001a\u0004\u0018\u00010\u0005H\u0002¢\u0006\u0004\b(\u0010)J'\u0010,\u001a\u00020\u00072\u0016\u0010+\u001a\u0012\u0012\u0006\u0012\u0004\u0018\u00010*\u0012\u0004\u0012\u00020\u0005\u0018\u00010\u000eH\u0002¢\u0006\u0004\b,\u0010\u0015J\u0019\u0010/\u001a\u00020\u00072\b\u0010.\u001a\u0004\u0018\u00010-H\u0002¢\u0006\u0004\b/\u00100J\u0019\u00103\u001a\u00020\u00072\b\u00102\u001a\u0004\u0018\u000101H\u0014¢\u0006\u0004\b3\u00104J\u000f\u00105\u001a\u00020\u0007H\u0014¢\u0006\u0004\b5\u0010\u0004J\u000f\u00106\u001a\u00020\u0007H\u0014¢\u0006\u0004\b6\u0010\u0004J\u000f\u00107\u001a\u00020\u0007H\u0014¢\u0006\u0004\b7\u0010\u0004J\u0017\u00108\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\nH\u0014¢\u0006\u0004\b8\u0010\rJ/\u0010?\u001a\u00020\u00072\u0006\u00109\u001a\u00020\u000f2\u000e\u0010<\u001a\n\u0012\u0006\b\u0001\u0012\u00020;0:2\u0006\u0010>\u001a\u00020=H\u0016¢\u0006\u0004\b?\u0010@J\u0017\u0010A\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\nH\u0016¢\u0006\u0004\bA\u0010\rJ\u000f\u0010B\u001a\u00020\u0007H\u0016¢\u0006\u0004\bB\u0010\u0004J\u0017\u0010D\u001a\u00020\u00072\u0006\u0010\u0017\u001a\u00020CH\u0016¢\u0006\u0004\bD\u0010ER*\u0010N\u001a\u00020F2\u0006\u0010G\u001a\u00020F8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\bH\u0010I\u001a\u0004\bJ\u0010K\"\u0004\bL\u0010MR*\u0010V\u001a\u00020O2\u0006\u0010G\u001a\u00020O8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\bP\u0010Q\u001a\u0004\bR\u0010S\"\u0004\bT\u0010UR*\u0010^\u001a\u00020W2\u0006\u0010G\u001a\u00020W8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\bX\u0010Y\u001a\u0004\bZ\u0010[\"\u0004\b\\\u0010]R*\u0010f\u001a\u00020_2\u0006\u0010G\u001a\u00020_8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b`\u0010a\u001a\u0004\bb\u0010c\"\u0004\bd\u0010eR\u001b\u0010l\u001a\u00020g8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bh\u0010i\u001a\u0004\bj\u0010kR\u001c\u0010q\u001a\u0004\u0018\u00010;8\u0014X\u0094\u0004¢\u0006\f\n\u0004\bm\u0010n\u001a\u0004\bo\u0010p¨\u0006t"}, d2 = {"Lfinance/empower/android/app/home/HomeActivity;", "Lbc/m;", "Lfinance/empower/android/app/home/m$a;", "<init>", "()V", "", "show", "", "d2", "(Z)V", "Landroid/content/Intent;", "intent", "O1", "(Landroid/content/Intent;)V", "Lkotlin/Pair;", "", "Lfinance/empower/android/app/components/offers/ImageResourceId;", "Lfinance/empower/android/app/components/offers/IsImageAnimated;", "Lfinance/empower/android/app/components/offers/PreEnrollImage;", "preEnrollImageDetails", "T1", "(Lkotlin/Pair;)V", "Lfinance/empower/android/app/home/m$a$a$a;", "viewState", "U1", "(Lfinance/empower/android/app/home/m$a$a$a;)V", "referralsEnabled", "Y1", "Lfc/n$b;", "headerSection", "R1", "(Lfc/n$b;)V", "Loc/g;", "loanUnitMainData", "S1", "(Loc/g;)V", "isExperiment", "W1", "(ZLfinance/empower/android/app/home/m$a$a$a;)V", "isDuring7Days", "V1", "(Ljava/lang/Boolean;)V", "Lfinance/empower/android/data/model/FeatureRadarDetails;", "featureRadarDetails", "Q1", "Lec/J0$b;", "referralsInfo", "X1", "(Lec/J0$b;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "onResume", "onStop", "onNewIntent", "requestCode", "", "", "permissions", "", "grantResults", "onRequestPermissionsResult", "(I[Ljava/lang/String;[I)V", "Y", "W", "Lfinance/empower/android/app/home/m$a$a;", "P1", "(Lfinance/empower/android/app/home/m$a$a;)V", "Lfinance/empower/android/app/home/m;", "value", "i0", "Lfinance/empower/android/app/home/m;", "N1", "()Lfinance/empower/android/app/home/m;", "c2", "(Lfinance/empower/android/app/home/m;)V", "presenter", "Lbc/e;", "j0", "Lbc/e;", "J1", "()Lbc/e;", "Z1", "(Lbc/e;)V", "appForegroundMonitor", "Lec/T;", "k0", "Lec/T;", "L1", "()Lec/T;", "a2", "(Lec/T;)V", "performanceComponent", "Lgc/N;", "l0", "Lgc/N;", "M1", "()Lgc/N;", "b2", "(Lgc/N;)V", "permissionsComponent", "LKe/d;", "m0", "Lsf/l;", "K1", "()LKe/d;", "binding", "n0", "Ljava/lang/String;", "C1", "()Ljava/lang/String;", "pageName", "o0", "a", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class HomeActivity extends a implements m.a {

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

    public m presenter;

    public C1030e appForegroundMonitor;

    public T performanceComponent;

    public C1337N permissionsComponent;

    private final sf.l binding = sf.m.a(new Function0() {
        @Override
        public final Object invoke() {
            C0850d I1;
            I1 = HomeActivity.I1(HomeActivity.this);
            return I1;
        }
    });

    private final String pageName;

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

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

        public final Intent c(Context context) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intent action = a(context).setAction("finance.empower.12278850-bc66-4a07-a609-96d26e25060e");
            Intrinsics.checkNotNullExpressionValue(action, "setAction(...)");
            return action;
        }

        public final Intent d(Context context) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intent action = a(context).setAction("finance.empower.7c9f1bae-1d10-4deb-bd30-200e13a3a58d");
            Intrinsics.checkNotNullExpressionValue(action, "setAction(...)");
            return action;
        }

        private Companion() {
        }

        public final Intent b(Context context, String confirmationCode) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intrinsics.checkNotNullParameter(confirmationCode, "confirmationCode");
            Intent putExtra = a(context).setAction("finance.empower.8703bf81-f361-4507-a0f0-0095c4bae6d0").putExtra(ytfVNX.GMTOnRC, confirmationCode);
            Intrinsics.checkNotNullExpressionValue(putExtra, "putExtra(...)");
            return putExtra;
        }
    }

    static final class b implements Function2 {
        final FeatureRadarDetails d;
        final HomeActivity e;
        final boolean i;

        b(FeatureRadarDetails featureRadarDetails, HomeActivity homeActivity, boolean z) {
            this.d = featureRadarDetails;
            this.e = homeActivity;
            this.i = z;
        }

        public static final Unit f(HomeActivity homeActivity, FeatureRadarDetails featureRadarDetails, boolean z) {
            homeActivity.N1().S0(true, featureRadarDetails.getName());
            if (p.a(com.google.firebase.c.a).l("survey_questions_enabled") && z) {
                homeActivity.startActivity(SurveyQuestionsActivity.INSTANCE.a(homeActivity));
            }
            return Unit.a;
        }

        public static final Unit g(HomeActivity homeActivity, FeatureRadarDetails featureRadarDetails) {
            homeActivity.N1().S0(false, featureRadarDetails.getName());
            return Unit.a;
        }

        public final void d(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(737702219, i, -1, "finance.empower.android.app.home.HomeActivity.renderExperimentQuestionContainer.<anonymous>.<anonymous>.<anonymous> (HomeActivity.kt:400)");
            }
            String title = this.d.getTitle();
            String details = this.d.getDetails();
            String primaryCta = this.d.getPrimaryCta();
            String secondaryCta = this.d.getSecondaryCta();
            lVar.V(-1061423480);
            boolean l = lVar.l(this.e) | lVar.l(this.d) | lVar.c(this.i);
            final HomeActivity homeActivity = this.e;
            final FeatureRadarDetails featureRadarDetails = this.d;
            final boolean z = this.i;
            Object f = lVar.f();
            if (l || f == s0.l.a.a()) {
                f = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit f2;
                        f2 = HomeActivity.b.f(HomeActivity.this, featureRadarDetails, z);
                        return f2;
                    }
                };
                lVar.M(f);
            }
            Function0 function0 = (Function0) f;
            lVar.L();
            lVar.V(-1061410835);
            boolean l2 = lVar.l(this.e) | lVar.l(this.d);
            final HomeActivity homeActivity2 = this.e;
            final FeatureRadarDetails featureRadarDetails2 = this.d;
            Object f2 = lVar.f();
            if (l2 || f2 == s0.l.a.a()) {
                f2 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit g;
                        g = HomeActivity.b.g(HomeActivity.this, featureRadarDetails2);
                        return g;
                    }
                };
                lVar.M(f2);
            }
            lVar.L();
            float f3 = 20;
            B0.b(title, details, primaryCta, secondaryCta, function0, (Function0) f2, q.l(androidx.compose.ui.e.a, x1.h.j(f3), x1.h.j(0), x1.h.j(f3), x1.h.j(26)), lVar, 0, 0);
            if (o.H()) {
                o.P();
            }
        }

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

    static final class c implements Function2 {
        final C1297n.b d;

        c(C1297n.b bVar) {
            this.d = bVar;
        }

        public final void a(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-20024228, i, -1, "finance.empower.android.app.home.HomeActivity.renderHeader.<anonymous>.<anonymous>.<anonymous> (HomeActivity.kt:324)");
            }
            Fc.i f = this.d.f();
            Ld.a j = this.d.j();
            J0.a k = this.d.k();
            Ld.a c = k != null ? k.c() : null;
            Function0 g = this.d.g();
            int i2 = Vd.k.d;
            int i3 = Ld.a.c;
            Gc.q.e(f, j, c, g, null, lVar, i2 | (i3 << 3) | (i3 << 6), 16);
            if (o.H()) {
                o.P();
            }
        }

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

    static final class d implements Function2 {
        final C2050g d;

        d(C2050g c2050g) {
            this.d = c2050g;
        }

        public final void a(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-1177865809, i, -1, "finance.empower.android.app.home.HomeActivity.renderHomeFeedLoanExperimentUnit.<anonymous>.<anonymous>.<anonymous> (HomeActivity.kt:340)");
            }
            float f = 24;
            AbstractC2046c.c(this.d, q.l(androidx.compose.ui.e.a, x1.h.j(f), x1.h.j(12), x1.h.j(f), x1.h.j(32)), lVar, Ld.a.c, 0);
            if (o.H()) {
                o.P();
            }
        }

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

    static final class e implements Function2 {
        final C1297n.d e;
        final ComposeView i;
        final C1297n.b v;

        e(C1297n.d dVar, ComposeView composeView, C1297n.b bVar) {
            this.e = dVar;
            this.i = composeView;
            this.v = bVar;
        }

        public final void a(s0.l lVar, int i) {
            Spannable b;
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-101420619, i, -1, "finance.empower.android.app.home.HomeActivity.renderLoanDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous> (HomeActivity.kt:268)");
            }
            String string = HomeActivity.this.getString(B.b2);
            Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
            String string2 = HomeActivity.this.getString(B.n1);
            Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
            String string3 = HomeActivity.this.getString(B.r3);
            Intrinsics.checkNotNullExpressionValue(string3, "getString(...)");
            String string4 = HomeActivity.this.getString(B.s8);
            Intrinsics.checkNotNullExpressionValue(string4, "getString(...)");
            String obj = Sd.b.b(this.e.c(), HomeActivity.this, false, null, 6, null).toString();
            Double b2 = this.e.b();
            String obj2 = (b2 == null || (b = Sd.b.b(b2.doubleValue(), HomeActivity.this, false, null, 6, null)) == null) ? null : b.toString();
            String obj3 = Sd.b.b(this.e.d(), HomeActivity.this, false, null, 6, null).toString();
            k.b bVar = new k.b(B.o1, null, 2, null);
            Context context = this.i.getContext();
            Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
            String a = bVar.a(context);
            C1297n.a c = this.v.c();
            Integer valueOf = c != null ? Integer.valueOf(c.c()) : null;
            C1297n.a c2 = this.v.c();
            Gc.l.h(string, string2, string3, string4, obj, obj3, Ud.a.a(this.e.a()), c2 != null ? c2.b() : null, a, valueOf, null, obj2, lVar, 0, 0, 1024);
            if (o.H()) {
                o.P();
            }
        }

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

    static final class f implements Function2 {
        final C1297n.a e;

        f(C1297n.a aVar) {
            this.e = aVar;
        }

        public final void a(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-1982354586, i, -1, "finance.empower.android.app.home.HomeActivity.renderLoanDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous> (HomeActivity.kt:288)");
            }
            String a = new k.b(B.G1, null, 2, null).a(HomeActivity.this);
            C1297n.a aVar = this.e;
            DateTime a2 = aVar != null ? aVar.a() : null;
            C1297n.a aVar2 = this.e;
            DeliveryAccountDto b = aVar2 != null ? aVar2.b() : null;
            C1297n.a aVar3 = this.e;
            Gc.h.h(a, a2, b, aVar3 != null ? aVar3.c() : Ge.e.t, null, lVar, 0, 16);
            if (o.H()) {
                o.P();
            }
        }

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

    static final class g implements Function2 {
        final Boolean d;
        final HomeActivity e;

        g(Boolean bool, HomeActivity homeActivity) {
            this.d = bool;
            this.e = homeActivity;
        }

        public static final Unit f(HomeActivity homeActivity, Boolean bool) {
            homeActivity.N1().P0(true, Intrinsics.d(bool, Boolean.TRUE));
            return Unit.a;
        }

        public static final Unit g(HomeActivity homeActivity, Boolean bool) {
            homeActivity.N1().P0(false, Intrinsics.d(bool, Boolean.TRUE));
            return Unit.a;
        }

        public final void d(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(2060268248, i, -1, "finance.empower.android.app.home.HomeActivity.renderLoanInterestUnit.<anonymous>.<anonymous> (HomeActivity.kt:376)");
            }
            boolean d = Intrinsics.d(this.d, Boolean.TRUE);
            String string = this.e.getString(B.f1);
            Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
            String string2 = this.e.getString(B.a1);
            Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
            String string3 = this.e.getString(B.F1);
            String string4 = this.e.getString(B.v1);
            lVar.V(211366719);
            boolean l = lVar.l(this.e) | lVar.U(this.d);
            final HomeActivity homeActivity = this.e;
            final Boolean bool = this.d;
            Object f = lVar.f();
            if (l || f == s0.l.a.a()) {
                f = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit f2;
                        f2 = HomeActivity.g.f(HomeActivity.this, bool);
                        return f2;
                    }
                };
                lVar.M(f);
            }
            Function0 function0 = (Function0) f;
            lVar.L();
            lVar.V(211372512);
            boolean l2 = lVar.l(this.e) | lVar.U(this.d);
            final HomeActivity homeActivity2 = this.e;
            final Boolean bool2 = this.d;
            Object f2 = lVar.f();
            if (l2 || f2 == s0.l.a.a()) {
                f2 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit g;
                        g = HomeActivity.g.g(HomeActivity.this, bool2);
                        return g;
                    }
                };
                lVar.M(f2);
            }
            lVar.L();
            float f3 = 20;
            e1.b(d, string, string2, string3, string4, function0, (Function0) f2, q.l(androidx.compose.ui.e.a, x1.h.j(f3), x1.h.j(0), x1.h.j(f3), x1.h.j(26)), lVar, 0, 0);
            if (o.H()) {
                o.P();
            }
        }

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

    static final class h implements Function2 {
        final C1297n.b d;
        final HomeActivity e;
        final boolean i;

        h(C1297n.b bVar, HomeActivity homeActivity, boolean z) {
            this.d = bVar;
            this.e = homeActivity;
            this.i = z;
        }

        public static final Unit d(HomeActivity homeActivity) {
            homeActivity.N1().x0();
            return Unit.a;
        }

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

        public final void c(s0.l lVar, int i) {
            DateTime h;
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-1849295562, i, -1, RTqsLyHH.fWYUSHvuAosi);
            }
            u l = this.d.l();
            lVar.V(-951286484);
            boolean l2 = lVar.l(this.e);
            final HomeActivity homeActivity = this.e;
            Object f = lVar.f();
            if (l2 || f == s0.l.a.a()) {
                f = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit d;
                        d = HomeActivity.h.d(HomeActivity.this);
                        return d;
                    }
                };
                lVar.M(f);
            }
            Function0 function0 = (Function0) f;
            lVar.L();
            t.c(l, function0, null, (this.i || (h = this.d.h()) == null) ? null : Ud.a.a(h), lVar, Vd.k.d, 4);
            if (o.H()) {
                o.P();
            }
        }
    }

    static final class i implements Function2 {
        final J0.b d;
        final ComposeView e;
        final HomeActivity i;

        i(J0.b bVar, ComposeView composeView, HomeActivity homeActivity) {
            this.d = bVar;
            this.e = composeView;
            this.i = homeActivity;
        }

        public static final Unit d(HomeActivity homeActivity) {
            homeActivity.N1().B0();
            return Unit.a;
        }

        public final void c(s0.l lVar, int i) {
            String str;
            String str2;
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-631815472, i, -1, "finance.empower.android.app.home.HomeActivity.renderReferralsBox.<anonymous>.<anonymous>.<anonymous> (HomeActivity.kt:426)");
            }
            Vd.k c = this.d.c();
            String str3 = null;
            if (c != null) {
                Context context = this.e.getContext();
                Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
                str = c.a(context);
            } else {
                str = null;
            }
            Vd.k b = this.d.b();
            if (b != null) {
                Context context2 = this.e.getContext();
                Intrinsics.checkNotNullExpressionValue(context2, "getContext(...)");
                str2 = b.a(context2);
            } else {
                str2 = null;
            }
            Vd.k a = this.d.a();
            if (a != null) {
                Context context3 = this.e.getContext();
                Intrinsics.checkNotNullExpressionValue(context3, "getContext(...)");
                str3 = a.a(context3);
            }
            String str4 = str3;
            float f = 20;
            androidx.compose.ui.e l = q.l(androidx.compose.ui.e.a, x1.h.j(f), x1.h.j(0), x1.h.j(f), x1.h.j(26));
            lVar.V(979307362);
            boolean l2 = lVar.l(this.i);
            final HomeActivity homeActivity = this.i;
            Object f2 = lVar.f();
            if (l2 || f2 == s0.l.a.a()) {
                f2 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit d;
                        d = HomeActivity.i.d(HomeActivity.this);
                        return d;
                    }
                };
                lVar.M(f2);
            }
            lVar.L();
            Dd.e.e(str, str2, str4, l, (Function0) f2, lVar, 0, 0);
            if (o.H()) {
                o.P();
            }
        }

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

    static final class j implements Function2 {
        final boolean e;

        j(boolean z) {
            this.e = z;
        }

        public static final Unit g(HomeActivity homeActivity) {
            homeActivity.startActivity(ProfileActivity.INSTANCE.a(homeActivity));
            return Unit.a;
        }

        public static final Unit i(HomeActivity homeActivity) {
            homeActivity.startActivity(NotificationsFeedActivity.INSTANCE.a(homeActivity));
            return Unit.a;
        }

        public static final Unit k(HomeActivity homeActivity) {
            homeActivity.N1().B0();
            return Unit.a;
        }

        public final void f(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(1114889450, i, -1, "finance.empower.android.app.home.HomeActivity.renderTopBar.<anonymous> (HomeActivity.kt:304)");
            }
            lVar.V(-1592565384);
            boolean l = lVar.l(HomeActivity.this);
            final HomeActivity homeActivity = HomeActivity.this;
            Object f = lVar.f();
            if (l || f == s0.l.a.a()) {
                f = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit g;
                        g = HomeActivity.j.g(HomeActivity.this);
                        return g;
                    }
                };
                lVar.M(f);
            }
            Function0 function0 = (Function0) f;
            lVar.L();
            lVar.V(-1592560894);
            boolean l2 = lVar.l(HomeActivity.this);
            final HomeActivity homeActivity2 = HomeActivity.this;
            Object f2 = lVar.f();
            if (l2 || f2 == s0.l.a.a()) {
                f2 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit i2;
                        i2 = HomeActivity.j.i(HomeActivity.this);
                        return i2;
                    }
                };
                lVar.M(f2);
            }
            Function0 function02 = (Function0) f2;
            lVar.L();
            lVar.V(-1592556283);
            boolean l3 = lVar.l(HomeActivity.this);
            final HomeActivity homeActivity3 = HomeActivity.this;
            Object f3 = lVar.f();
            if (l3 || f3 == s0.l.a.a()) {
                f3 = new Function0() {
                    @Override
                    public final Object invoke() {
                        Unit k;
                        k = HomeActivity.j.k(HomeActivity.this);
                        return k;
                    }
                };
                lVar.M(f3);
            }
            lVar.L();
            s.b(function0, function02, (Function0) f3, this.e, (androidx.compose.ui.e) null, lVar, 0, 16);
            if (o.H()) {
                o.P();
            }
        }

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

    static final class k implements Function2 {
        final boolean d;

        k(boolean z) {
            this.d = z;
        }

        public final void a(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(910908898, i, -1, "finance.empower.android.app.home.HomeActivity.showShimmering.<anonymous>.<anonymous> (HomeActivity.kt:212)");
            }
            if (this.d) {
                AbstractC2053j.c(lVar, 0);
            }
            if (o.H()) {
                o.P();
            }
        }

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

    public static final C0850d I1(HomeActivity homeActivity) {
        return C0850d.c(homeActivity.getLayoutInflater());
    }

    private final C0850d K1() {
        return (C0850d) this.binding.getValue();
    }

    private final void O1(Intent intent) {
        String action = intent.getAction();
        if (action != null) {
            int hashCode = action.hashCode();
            if (hashCode != -1702875980) {
                if (hashCode != -523826730) {
                    if (hashCode == -33320973 && action.equals("finance.empower.12278850-bc66-4a07-a609-96d26e25060e")) {
                        N1().y0(true);
                        return;
                    }
                } else if (action.equals("finance.empower.7c9f1bae-1d10-4deb-bd30-200e13a3a58d")) {
                    N1().B0();
                    return;
                }
            } else if (action.equals("finance.empower.8703bf81-f361-4507-a0f0-0095c4bae6d0")) {
                EmailVerificationActivity.Companion companion = EmailVerificationActivity.INSTANCE;
                String stringExtra = intent.getStringExtra("finance.empower.3f1f26d7-8a09-41ea-a598-b5674cf87a8e");
                Intrinsics.f(stringExtra);
                startActivity(AbstractC0989a.d(companion.a(this, stringExtra)));
                return;
            }
        }
        N1().T();
    }

    private final void Q1(Pair featureRadarDetails) {
        FeatureRadarDetails featureRadarDetails2;
        ComposeView composeView = K1().f;
        Intrinsics.f(composeView);
        Vd.n.s(composeView, featureRadarDetails != null);
        boolean booleanValue = featureRadarDetails != null ? ((Boolean) featureRadarDetails.d()).booleanValue() : false;
        if (featureRadarDetails == null || (featureRadarDetails2 = (FeatureRadarDetails) featureRadarDetails.c()) == null) {
            return;
        }
        composeView.setContent(A0.c.c(737702219, true, new b(featureRadarDetails2, this, booleanValue)));
    }

    private final void R1(C1297n.b headerSection) {
        ComposeView composeView = K1().h;
        Intrinsics.f(composeView);
        Vd.n.r(composeView);
        composeView.setContent(A0.c.c(-20024228, true, new c(headerSection)));
    }

    private final void S1(C2050g loanUnitMainData) {
        ComposeView composeView = K1().k;
        Intrinsics.f(composeView);
        Vd.n.s(composeView, loanUnitMainData != null);
        if (loanUnitMainData != null) {
            composeView.setContent(A0.c.c(-1177865809, true, new d(loanUnitMainData)));
        }
    }

    private final void T1(Pair preEnrollImageDetails) {
        C0850d K1 = K1();
        Integer num = preEnrollImageDetails != null ? (Integer) preEnrollImageDetails.c() : null;
        boolean z = num != null;
        boolean booleanValue = preEnrollImageDetails != null ? ((Boolean) preEnrollImageDetails.d()).booleanValue() : false;
        ComposeView composeView = K1.c;
        Intrinsics.f(composeView);
        Vd.n.s(composeView, booleanValue);
        if (booleanValue) {
            composeView.setContent(C2006b.a.a());
        }
        ImageView imageView = K1.p;
        Intrinsics.f(imageView);
        Vd.n.s(imageView, z);
        if (z) {
            Intrinsics.g(num, "null cannot be cast to non-null type kotlin.Int");
            imageView.setImageResource(num.intValue());
        }
    }

    private final void U1(m.a.AbstractC0341a.C0342a viewState) {
        C1297n.b b2 = viewState.b();
        if (b2 != null) {
            ComposeView composeView = K1().j;
            boolean z = b2.d() != null;
            boolean z2 = b2.c() != null;
            Intrinsics.f(composeView);
            Vd.n.s(composeView, z || z2);
            if (!z) {
                if (z2) {
                    composeView.setContent(A0.c.c(-1982354586, true, new f(b2.c())));
                }
            } else {
                C1297n.d d2 = b2.d();
                if (d2 != null) {
                    composeView.setContent(A0.c.c(-101420619, true, new e(d2, composeView, b2)));
                }
            }
        }
    }

    private final void V1(Boolean isDuring7Days) {
        ComposeView composeView = K1().l;
        Intrinsics.f(composeView);
        Vd.n.s(composeView, isDuring7Days != null);
        composeView.setContent(A0.c.c(2060268248, true, new g(isDuring7Days, this)));
    }

    private final void W1(boolean isExperiment, m.a.AbstractC0341a.C0342a viewState) {
        C1297n.b b2 = viewState.b();
        if (b2 == null || b2.l() == null) {
            return;
        }
        ComposeView composeView = K1().m;
        Intrinsics.f(composeView);
        Vd.n.r(composeView);
        composeView.setContent(A0.c.c(-1849295562, true, new h(b2, this, isExperiment)));
    }

    private final void X1(J0.b referralsInfo) {
        ComposeView composeView = K1().n;
        Intrinsics.f(composeView);
        Vd.n.s(composeView, referralsInfo != null);
        if (referralsInfo != null) {
            composeView.setContent(A0.c.c(-631815472, true, new i(referralsInfo, composeView, this)));
        }
    }

    private final void Y1(boolean referralsEnabled) {
        K1().g.setContent(A0.c.c(1114889450, true, new j(referralsEnabled)));
    }

    private final void d2(boolean show) {
        ComposeView composeView = K1().i;
        composeView.setContent(A0.c.c(910908898, true, new k(show)));
        Intrinsics.f(composeView);
        Vd.n.s(composeView, show);
    }

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

    public final C1030e J1() {
        C1030e c1030e = this.appForegroundMonitor;
        if (c1030e != null) {
            return c1030e;
        }
        Intrinsics.x("appForegroundMonitor");
        return null;
    }

    public final T L1() {
        T t = this.performanceComponent;
        if (t != null) {
            return t;
        }
        Intrinsics.x("performanceComponent");
        return null;
    }

    public final C1337N M1() {
        C1337N c1337n = this.permissionsComponent;
        if (c1337n != null) {
            return c1337n;
        }
        Intrinsics.x("permissionsComponent");
        return null;
    }

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

    @Override
    public void E(m.a.AbstractC0341a viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        boolean z = viewState instanceof m.a.AbstractC0341a.c;
        d2(z);
        if (viewState instanceof m.a.AbstractC0341a.b) {
            return;
        }
        if (!z) {
            if (!(viewState instanceof m.a.AbstractC0341a.C0342a)) {
                throw new NoWhenBranchMatchedException();
            }
            m.a.AbstractC0341a.C0342a c0342a = (m.a.AbstractC0341a.C0342a) viewState;
            C1297n.b b2 = c0342a.b();
            if (b2 != null) {
                J0.a k2 = b2.k();
                Y1(k2 != null ? Intrinsics.d(k2.e(), Boolean.TRUE) : false);
                C1297n.c m = c0342a.b().m();
                if (m == null) {
                    R1(c0342a.b());
                    S1(b2.e());
                } else {
                    V1(Boolean.valueOf(m.a()));
                }
                J0.a k3 = b2.k();
                X1(k3 != null ? k3.d() : null);
                W1(m != null, c0342a);
                T1(b2.i());
                U1(c0342a);
            }
            if (p.a(com.google.firebase.c.a).l("home_feed_feature_radar_enabled")) {
                Q1(c0342a.a());
                return;
            }
            return;
        }
        C0850d K1 = K1();
        ComposeView homeFeedHeader = K1.h;
        Intrinsics.checkNotNullExpressionValue(homeFeedHeader, "homeFeedHeader");
        Vd.n.c(homeFeedHeader);
        ComposeView referralsBoxSection = K1.n;
        Intrinsics.checkNotNullExpressionValue(referralsBoxSection, "referralsBoxSection");
        Vd.n.c(referralsBoxSection);
        ComposeView loanTile = K1.m;
        Intrinsics.checkNotNullExpressionValue(loanTile, "loanTile");
        Vd.n.c(loanTile);
        ComposeView accountInfo = K1.b;
        Intrinsics.checkNotNullExpressionValue(accountInfo, "accountInfo");
        Vd.n.c(accountInfo);
        ComposeView loanDetailsView = K1.j;
        Intrinsics.checkNotNullExpressionValue(loanDetailsView, "loanDetailsView");
        Vd.n.c(loanDetailsView);
        ComposeView composeViewMonthsList = K1.d;
        Intrinsics.checkNotNullExpressionValue(composeViewMonthsList, "composeViewMonthsList");
        Vd.n.c(composeViewMonthsList);
        ComposeView animatedImage = K1.c;
        Intrinsics.checkNotNullExpressionValue(animatedImage, "animatedImage");
        Vd.n.c(animatedImage);
        ImageView staticImage = K1.p;
        Intrinsics.checkNotNullExpressionValue(staticImage, "staticImage");
        Vd.n.c(staticImage);
    }

    @Override
    public void W() {
        startActivity(ReferralsProgramActivity.INSTANCE.a(this));
    }

    @Override
    public void Y(Intent intent) {
        Intrinsics.checkNotNullParameter(intent, "intent");
        startActivity(intent);
    }

    public final void Z1(C1030e c1030e) {
        Intrinsics.checkNotNullParameter(c1030e, "<set-?>");
        this.appForegroundMonitor = c1030e;
    }

    public final void a2(T t) {
        Intrinsics.checkNotNullParameter(t, "<set-?>");
        this.performanceComponent = t;
    }

    public final void b2(C1337N c1337n) {
        Intrinsics.checkNotNullParameter(c1337n, "<set-?>");
        this.permissionsComponent = c1337n;
    }

    public final void c2(m mVar) {
        Intrinsics.checkNotNullParameter(mVar, "<set-?>");
        this.presenter = mVar;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Window window = getWindow();
        window.addFlags(Integer.MIN_VALUE);
        window.setStatusBarColor(getColor(Ge.c.e));
        setContentView(K1().getRoot());
        AbstractC1046m.G1(this, null, null, Jd.t.e, null, false, null, 59, null);
        if (savedInstanceState == null) {
            Intent intent = getIntent();
            Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
            O1(intent);
        }
    }

    protected void onNewIntent(Intent intent) {
        Intrinsics.checkNotNullParameter(intent, "intent");
        super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
        O1(intent);
    }

    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
        Intrinsics.checkNotNullParameter(permissions, "permissions");
        Intrinsics.checkNotNullParameter(grantResults, "grantResults");
        super/*androidx.fragment.app.i*/.onRequestPermissionsResult(requestCode, permissions, grantResults);
        M1().k(requestCode, permissions, grantResults);
    }

    protected void onResume() {
        super/*androidx.fragment.app.i*/.onResume();
        if (J1().b()) {
            return;
        }
        N1().y0(false);
        L1().c().b();
    }

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

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