导航菜单

页面标题

页面副标题

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

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

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


package finance.empower.android.app.onboarding.questionnaire.v2;

import Gf.C0765p;
import Ke.C0863q;
import Nb.zqp.QxNxM;
import Nd.E;
import Vd.n;
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.text.Editable;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.compose.ui.platform.ComposeView;
import androidx.constraintlayout.widget.ConstraintLayout;
import be.C1094a;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import dd.AbstractC1221b;
import dd.EnumC1220a;
import ed.AbstractC1278a;
import fd.AbstractC1305a;
import finance.empower.android.LogicFailure;
import finance.empower.android.app.onboarding.questionnaire.v2.OnboardingQuestionnaireActivity;
import finance.empower.android.app.onboarding.questionnaire.v2.data.QuestionAnswersDto;
import finance.empower.android.app.onboarding.questionnaire.v2.e;
import finance.empower.android.app.view.PaycheckFrequencyView;
import finance.empower.android.core.ui.view.form.FormInput;
import finance.empower.android.data.model.paycheck.FrequencyDto;
import gd.AbstractC1371a;
import hd.AbstractC1552a;
import id.AbstractC1680a;
import java.util.List;
import jd.AbstractC1864a;
import kd.AbstractC1877a;
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 nd.AbstractC2023a;
import ne.EnumC2025a;
import ne.EnumC2026b;
import ne.EnumC2027c;
import ne.EnumC2028d;
import ne.EnumC2029e;
import ne.EnumC2030f;
import ne.EnumC2031g;
import ne.EnumC2032h;
import ne.EnumC2033i;
import ne.EnumC2034j;
import ne.EnumC2035k;
import ne.EnumC2036l;
import ne.EnumC2037m;
import od.AbstractC2056c;
import s0.o;
import sf.l;
import sf.m;
import ye.AbstractC2485b;
import ze.AbstractC2536b;

@Metadata(d1 = {"\u0000¨\u0001\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\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010 \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\u0005\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\u0005\n\u0002\u0010\u0001\n\u0002\b\u0006\b\u0007\u0018\u0000 ,2\u00020\u00012\u00020\u0002:\u0001$B\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\u0013\u0010\u000b\u001a\u00020\u0007*\u00020\nH\u0002¢\u0006\u0004\b\u000b\u0010\fJK\u0010\u0017\u001a\u00020\u00072\u0006\u0010\u000e\u001a\u00020\r2\b\u0010\u0010\u001a\u0004\u0018\u00010\u000f2\b\b\u0002\u0010\u0012\u001a\u00020\u00112\u001e\u0010\u0016\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0015\u0012\u0004\u0012\u00020\u000f0\u0014\u0012\u0004\u0012\u00020\u00070\u0013H\u0002¢\u0006\u0004\b\u0017\u0010\u0018J\u0013\u0010\u001a\u001a\u00020\u0007*\u00020\u0019H\u0002¢\u0006\u0004\b\u001a\u0010\u001bJ\u0019\u0010\u001e\u001a\u00020\u00072\b\u0010\u001d\u001a\u0004\u0018\u00010\u001cH\u0014¢\u0006\u0004\b\u001e\u0010\u001fJ\u000f\u0010 \u001a\u00020\u0007H\u0014¢\u0006\u0004\b \u0010\u0004J\u000f\u0010!\u001a\u00020\u0007H\u0014¢\u0006\u0004\b!\u0010\u0004J\u0017\u0010#\u001a\u00020\u00072\u0006\u0010\"\u001a\u00020\u001cH\u0014¢\u0006\u0004\b#\u0010\u001fJ\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(J%\u0010,\u001a\u00020\u00072\u0006\u0010)\u001a\u00020\n2\f\u0010+\u001a\b\u0012\u0004\u0012\u00020\u000f0*H\u0016¢\u0006\u0004\b,\u0010-J\u0017\u00100\u001a\u00020\u00072\u0006\u0010/\u001a\u00020.H\u0016¢\u0006\u0004\b0\u00101J\u0017\u00103\u001a\u00020\u00072\u0006\u00102\u001a\u00020\u0019H\u0016¢\u0006\u0004\b3\u0010\u001bJ\u0017\u00106\u001a\u00020\u00072\u0006\u00105\u001a\u000204H\u0016¢\u0006\u0004\b6\u00107R\u001b\u0010=\u001a\u0002088BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b9\u0010:\u001a\u0004\b;\u0010<R\u001b\u0010B\u001a\u00020>8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b?\u0010:\u001a\u0004\b@\u0010AR\u001c\u0010F\u001a\b\u0012\u0004\u0012\u00020C0*8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bD\u0010ER*\u0010O\u001a\u00020G2\u0006\u0010H\u001a\u00020G8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\bI\u0010J\u001a\u0004\bK\u0010L\"\u0004\bM\u0010NR\u0014\u0010S\u001a\u00020P8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bQ\u0010RR\u0014\u0010U\u001a\u00020P8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bT\u0010RR\u001c\u0010[\u001a\u0004\u0018\u00010V8\u0014X\u0094\u0004¢\u0006\f\n\u0004\bW\u0010X\u001a\u0004\bY\u0010Z¨\u0006\\"}, d2 = {"Lfinance/empower/android/app/onboarding/questionnaire/v2/OnboardingQuestionnaireActivity;", "Lbc/m;", "Lfinance/empower/android/app/onboarding/questionnaire/v2/e$c;", "<init>", "()V", "Lfinance/empower/android/app/onboarding/questionnaire/v2/e$c$a$a;", "content", "", "l2", "(Lfinance/empower/android/app/onboarding/questionnaire/v2/e$c$a$a;)V", "Lid/a$d;", "k2", "(Lid/a$d;)V", "", "questionNumber", "", "selection", "", "showAmount", "Lkotlin/Function1;", "Lkotlin/Pair;", "", "onAnswerSelected", "C2", "(ILjava/lang/Object;ZLkotlin/jvm/functions/Function1;)V", "Lgd/a$a;", "j2", "(Lgd/a$a;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "onStop", "outState", "onSaveInstanceState", "a", "Lfinance/empower/android/app/onboarding/questionnaire/v2/e$c$a;", "viewState", "i2", "(Lfinance/empower/android/app/onboarding/questionnaire/v2/e$c$a;)V", "paycheckFrequency", "", "list", "p0", "(Lid/a$d;Ljava/util/List;)V", "Lgd/a$b;", "employmentStatus", "U", "(Lgd/a$b;)V", "employmentStartingDate", "V", "Led/a$g;", "outstandingDebtDetails", "h0", "(Led/a$g;)V", "LKe/q;", "i0", "Lsf/l;", "e2", "()LKe/q;", "binding", "Ldd/a;", "j0", "h2", "()Ldd/a;", "source", "Lfinance/empower/android/app/onboarding/questionnaire/v2/data/QuestionAnswersDto;", "k0", "Ljava/util/List;", "onboardingQuestionnaireData", "Lfinance/empower/android/app/onboarding/questionnaire/v2/e;", "value", "l0", "Lfinance/empower/android/app/onboarding/questionnaire/v2/e;", "g2", "()Lfinance/empower/android/app/onboarding/questionnaire/v2/e;", "E2", "(Lfinance/empower/android/app/onboarding/questionnaire/v2/e;)V", "presenter", "Lbe/a;", "m0", "Lbe/a;", "dateWatcher", "n0", "amountWatcher", "", "o0", "Ljava/lang/Void;", "f2", "()Ljava/lang/Void;", "pageName", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class OnboardingQuestionnaireActivity extends a implements e.c {

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

    private List onboardingQuestionnaireData;

    public e presenter;

    private final Void pageName;

    private final l binding = m.a(new Function0() {
        @Override
        public final Object invoke() {
            C0863q c2;
            c2 = OnboardingQuestionnaireActivity.c2(OnboardingQuestionnaireActivity.this);
            return c2;
        }
    });

    private final l source = m.a(new Function0() {
        @Override
        public final Object invoke() {
            EnumC1220a F2;
            F2 = OnboardingQuestionnaireActivity.F2(OnboardingQuestionnaireActivity.this);
            return F2;
        }
    });

    private final C1094a dateWatcher = new C1094a(new Function1() {
        @Override
        public final Object invoke(Object obj) {
            Unit d2;
            d2 = OnboardingQuestionnaireActivity.d2(OnboardingQuestionnaireActivity.this, (Editable) obj);
            return d2;
        }
    });

    private final C1094a amountWatcher = new C1094a(new Function1() {
        @Override
        public final Object invoke(Object obj) {
            Unit b2;
            b2 = OnboardingQuestionnaireActivity.b2(OnboardingQuestionnaireActivity.this, (Editable) obj);
            return b2;
        }
    });

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

        public final Intent a(Context context, EnumC1220a source) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intrinsics.checkNotNullParameter(source, "source");
            Intent a = C0995g.a(context, OnboardingQuestionnaireActivity.class, new Pair[0]);
            AbstractC2485b.a(a, "finance.empower.491216D9-EB15-41AD-961D-57B7EDA23B73", source);
            return a;
        }

        private Companion() {
        }
    }

    class b extends C0765p implements Function2 {
        b(Object obj) {
            super(2, obj, e.class, "onPaycheckPeriodSelected", "onPaycheckPeriodSelected(ZLfinance/empower/android/data/model/paycheck/PaycheckPeriodType;)V", 0);
        }

        @Override
        public Object invoke(Object obj, Object obj2) {
            u(((Boolean) obj).booleanValue(), (finance.empower.android.data.model.paycheck.a) obj2);
            return Unit.a;
        }

        public final void u(boolean z, finance.empower.android.data.model.paycheck.a p1) {
            Intrinsics.checkNotNullParameter(p1, "p1");
            ((e) this.e).a0(z, p1);
        }
    }

    class c extends C0765p implements Function2 {
        c(Object obj) {
            super(2, obj, e.class, "onFrequencySelected", "onFrequencySelected(Lfinance/empower/android/data/model/paycheck/FrequencyDto;Ljava/lang/Integer;)V", 0);
        }

        @Override
        public Object invoke(Object obj, Object obj2) {
            u((FrequencyDto) obj, (Integer) obj2);
            return Unit.a;
        }

        public final void u(FrequencyDto p0, Integer num) {
            Intrinsics.checkNotNullParameter(p0, "p0");
            ((e) this.e).T(p0, num);
        }
    }

    static final class d implements Function2 {
        final QuestionAnswersDto d;
        final int e;
        final Object i;
        final Function1 v;

        static final class a implements Function2 {
            final QuestionAnswersDto d;
            final int e;
            final Object i;
            final Function1 v;

            a(QuestionAnswersDto questionAnswersDto, int i, Object obj, Function1 function1) {
                this.d = questionAnswersDto;
                this.e = i;
                this.i = obj;
                this.v = function1;
            }

            public static final Unit d(Function1 function1, Pair answer) {
                Intrinsics.checkNotNullParameter(answer, "answer");
                function1.invoke(answer);
                return Unit.a;
            }

            public final void c(s0.l lVar, int i) {
                Of.b c;
                if ((i & 3) == 2 && lVar.w()) {
                    lVar.F();
                    return;
                }
                if (o.H()) {
                    o.Q(-399091849, i, -1, "finance.empower.android.app.onboarding.questionnaire.v2.OnboardingQuestionnaireActivity.renderQuestionDetails.<anonymous>.<anonymous>.<anonymous> (OnboardingQuestionnaireActivity.kt:336)");
                }
                String category = this.d.getCategory();
                int i2 = this.e + 1;
                String question = this.d.getQuestion();
                List answers = this.d.getAnswers();
                if (answers == null || (c = Of.a.c(answers)) == null) {
                    com.google.firebase.crashlytics.a.b().f(new LogicFailure(null, 1, null));
                    c = Of.a.c(CollectionsKt.m());
                }
                Object obj = this.i;
                lVar.V(-436228703);
                boolean U = lVar.U(this.v);
                final Function1 function1 = this.v;
                Object f = lVar.f();
                if (U || f == s0.l.a.a()) {
                    f = new Function1() {
                        @Override
                        public final Object invoke(Object obj2) {
                            Unit d;
                            d = OnboardingQuestionnaireActivity.d.a.d(Function1.this, (Pair) obj2);
                            return d;
                        }
                    };
                    lVar.M(f);
                }
                lVar.L();
                AbstractC2056c.c(category, i2, question, c, obj, (Function1) f, null, lVar, 0, 64);
                if (o.H()) {
                    o.P();
                }
            }

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

        d(QuestionAnswersDto questionAnswersDto, int i, Object obj, Function1 function1) {
            this.d = questionAnswersDto;
            this.e = i;
            this.i = obj;
            this.v = function1;
        }

        public final void a(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(2077505596, i, -1, "finance.empower.android.app.onboarding.questionnaire.v2.OnboardingQuestionnaireActivity.renderQuestionDetails.<anonymous>.<anonymous> (OnboardingQuestionnaireActivity.kt:335)");
            }
            E.b(A0.c.e(-399091849, true, new a(this.d, this.e, this.i, this.v), lVar, 54), lVar, 6);
            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 Unit A2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.PropertyStayLengthChoices");
        g2.b0((EnumC2036l) d2);
        return Unit.a;
    }

    public static final Unit B2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.AverageIncomeOrExpenseChoices");
        g2.H((EnumC2025a) d2);
        return Unit.a;
    }

    private final void C2(int questionNumber, Object selection, boolean showAmount, Function1 onAnswerSelected) {
        C0863q e2 = e2();
        List list = this.onboardingQuestionnaireData;
        if (list == null) {
            Intrinsics.x("onboardingQuestionnaireData");
            list = null;
        }
        QuestionAnswersDto questionAnswersDto = (QuestionAnswersDto) list.get(questionNumber);
        if (showAmount && selection != null && (selection instanceof Boolean) && ((Boolean) selection).booleanValue()) {
            FormInput amountInput = e2.b;
            Intrinsics.checkNotNullExpressionValue(amountInput, "amountInput");
            n.r(amountInput);
            e2.b.h(this.amountWatcher);
            e2.b.b(this.amountWatcher);
        } else {
            FormInput amountInput2 = e2.b;
            Intrinsics.checkNotNullExpressionValue(amountInput2, "amountInput");
            n.c(amountInput2);
        }
        e2.d.setContent(A0.c.c(2077505596, true, new d(questionAnswersDto, questionNumber, selection, onAnswerSelected)));
    }

    static void D2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, int i, Object obj, boolean z, Function1 function1, int i2, Object obj2) {
        if ((i2 & 4) != 0) {
            z = false;
        }
        onboardingQuestionnaireActivity.C2(i, obj, z, function1);
    }

    public static final EnumC1220a F2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity) {
        Object obj;
        Intent intent = onboardingQuestionnaireActivity.getIntent();
        Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
        if (Build.VERSION.SDK_INT > 33) {
            obj = (Parcelable) D6.E.a(intent, "finance.empower.491216D9-EB15-41AD-961D-57B7EDA23B73", EnumC1220a.class);
        } else {
            Parcelable parcelableExtra = intent.getParcelableExtra("finance.empower.491216D9-EB15-41AD-961D-57B7EDA23B73");
            if (!(parcelableExtra instanceof EnumC1220a)) {
                parcelableExtra = null;
            }
            obj = (EnumC1220a) parcelableExtra;
        }
        Intrinsics.f(obj);
        return (EnumC1220a) obj;
    }

    public static final Unit b2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Editable it) {
        Intrinsics.checkNotNullParameter(it, "it");
        onboardingQuestionnaireActivity.g2().G(onboardingQuestionnaireActivity.e2().b.getText().toString());
        return Unit.a;
    }

    public static final C0863q c2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity) {
        return C0863q.c(onboardingQuestionnaireActivity.getLayoutInflater());
    }

    public static final Unit d2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Editable it) {
        Intrinsics.checkNotNullParameter(it, "it");
        onboardingQuestionnaireActivity.g2().K(onboardingQuestionnaireActivity.e2().e.getText().toString());
        return Unit.a;
    }

    private final C0863q e2() {
        return (C0863q) this.binding.getValue();
    }

    private final EnumC1220a h2() {
        return (EnumC1220a) this.source.getValue();
    }

    private final void j2(AbstractC1371a.C0518a c0518a) {
        List list = this.onboardingQuestionnaireData;
        if (list == null) {
            Intrinsics.x("onboardingQuestionnaireData");
            list = null;
        }
        QuestionAnswersDto questionAnswersDto = (QuestionAnswersDto) list.get(8);
        C0863q e2 = e2();
        C0863q e22 = e2();
        LinearLayout questionSection = e22.h;
        Intrinsics.checkNotNullExpressionValue(questionSection, "questionSection");
        n.r(questionSection);
        e22.j.setText(questionAnswersDto.getCategory());
        e22.k.setText("9/18");
        e22.i.setText(questionAnswersDto.getQuestion());
        FormInput formInput = e2.e;
        Intrinsics.f(formInput);
        n.r(formInput);
        formInput.h(this.dateWatcher);
        formInput.b(this.dateWatcher);
    }

    private final void k2(AbstractC1680a.d dVar) {
        C0863q e2 = e2();
        LinearLayout questionSection = e2.h;
        Intrinsics.checkNotNullExpressionValue(questionSection, "questionSection");
        n.r(questionSection);
        TextView textView = e2.j;
        List list = this.onboardingQuestionnaireData;
        List list2 = null;
        if (list == null) {
            Intrinsics.x("onboardingQuestionnaireData");
            list = null;
        }
        textView.setText(((QuestionAnswersDto) CollectionsKt.h0(list)).getCategory());
        e2.k.setText("1/18");
        TextView textView2 = e2.i;
        List list3 = this.onboardingQuestionnaireData;
        if (list3 == null) {
            Intrinsics.x("onboardingQuestionnaireData");
        } else {
            list2 = list3;
        }
        textView2.setText(((QuestionAnswersDto) CollectionsKt.h0(list2)).getQuestion());
        e2.g.h(dVar.a(), dVar.b(), new b(g2()), new c(g2()));
    }

    private final void l2(e.c.a.C0450a content) {
        LinearLayout questionSection = e2().h;
        Intrinsics.checkNotNullExpressionValue(questionSection, "questionSection");
        n.c(questionSection);
        e.a b2 = content.b();
        if (b2 instanceof e.a.C0446e) {
            AbstractC1680a a = ((e.a.C0446e) content.b()).a();
            if (a instanceof AbstractC1680a.d) {
                k2((AbstractC1680a.d) a);
            } else if (a instanceof AbstractC1680a.b) {
                D2(this, 1, ((AbstractC1680a.b) a).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit B2;
                        B2 = OnboardingQuestionnaireActivity.B2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return B2;
                    }
                }, 4, null);
            } else if (a instanceof AbstractC1680a.C0573a) {
                D2(this, 2, ((AbstractC1680a.C0573a) a).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit m2;
                        m2 = OnboardingQuestionnaireActivity.m2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return m2;
                    }
                }, 4, null);
            } else {
                if (!(a instanceof AbstractC1680a.c)) {
                    throw new NoWhenBranchMatchedException();
                }
                D2(this, 3, ((AbstractC1680a.c) a).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit n2;
                        n2 = OnboardingQuestionnaireActivity.n2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return n2;
                    }
                }, 4, null);
            }
        } else if (b2 instanceof e.a.b) {
            AbstractC1305a a2 = ((e.a.b) content.b()).a();
            if (!(a2 instanceof AbstractC1305a.C0317a)) {
                throw new NoWhenBranchMatchedException();
            }
            D2(this, 4, ((AbstractC1305a.C0317a) a2).a(), false, new Function1() {
                @Override
                public final Object invoke(Object obj) {
                    Unit o2;
                    o2 = OnboardingQuestionnaireActivity.o2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                    return o2;
                }
            }, 4, null);
        } else if (b2 instanceof e.a.f) {
            AbstractC1864a a3 = ((e.a.f) content.b()).a();
            if (!(a3 instanceof AbstractC1864a.C0612a)) {
                throw new NoWhenBranchMatchedException();
            }
            D2(this, 5, ((AbstractC1864a.C0612a) a3).a(), false, new Function1() {
                @Override
                public final Object invoke(Object obj) {
                    Unit p2;
                    p2 = OnboardingQuestionnaireActivity.p2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                    return p2;
                }
            }, 4, null);
        } else if (b2 instanceof e.a.d) {
            AbstractC1552a a4 = ((e.a.d) content.b()).a();
            if (!(a4 instanceof AbstractC1552a.C0523a)) {
                throw new NoWhenBranchMatchedException();
            }
            D2(this, 6, ((AbstractC1552a.C0523a) a4).a(), false, new Function1() {
                @Override
                public final Object invoke(Object obj) {
                    Unit q2;
                    q2 = OnboardingQuestionnaireActivity.q2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                    return q2;
                }
            }, 4, null);
        } else if (b2 instanceof e.a.c) {
            AbstractC1371a a5 = ((e.a.c) content.b()).a();
            if (a5 instanceof AbstractC1371a.b) {
                D2(this, 7, ((AbstractC1371a.b) a5).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit r2;
                        r2 = OnboardingQuestionnaireActivity.r2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return r2;
                    }
                }, 4, null);
            } else {
                if (!(a5 instanceof AbstractC1371a.C0518a)) {
                    throw new NoWhenBranchMatchedException();
                }
                j2((AbstractC1371a.C0518a) a5);
            }
        } else if (b2 instanceof e.a.C0441a) {
            AbstractC1278a a6 = ((e.a.C0441a) content.b()).a();
            if (a6 instanceof AbstractC1278a.e) {
                D2(this, 9, ((AbstractC1278a.e) a6).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit s2;
                        s2 = OnboardingQuestionnaireActivity.s2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return s2;
                    }
                }, 4, null);
            } else if (a6 instanceof AbstractC1278a.C0306a) {
                D2(this, 10, ((AbstractC1278a.C0306a) a6).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit t2;
                        t2 = OnboardingQuestionnaireActivity.t2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return t2;
                    }
                }, 4, null);
            } else if (a6 instanceof AbstractC1278a.b) {
                D2(this, 11, ((AbstractC1278a.b) a6).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit u2;
                        u2 = OnboardingQuestionnaireActivity.u2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return u2;
                    }
                }, 4, null);
            } else if (a6 instanceof AbstractC1278a.g) {
                C2(12, ((AbstractC1278a.g) a6).b(), true, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit v2;
                        v2 = OnboardingQuestionnaireActivity.v2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return v2;
                    }
                });
            } else if (a6 instanceof AbstractC1278a.f) {
                D2(this, 13, ((AbstractC1278a.f) a6).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit w2;
                        w2 = OnboardingQuestionnaireActivity.w2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return w2;
                    }
                }, 4, null);
            } else if (a6 instanceof AbstractC1278a.d) {
                D2(this, 14, ((AbstractC1278a.d) a6).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit x2;
                        x2 = OnboardingQuestionnaireActivity.x2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return x2;
                    }
                }, 4, null);
            } else {
                if (!(a6 instanceof AbstractC1278a.c)) {
                    throw new NoWhenBranchMatchedException();
                }
                D2(this, 15, ((AbstractC1278a.c) a6).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit y2;
                        y2 = OnboardingQuestionnaireActivity.y2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return y2;
                    }
                }, 4, null);
            }
        } else {
            if (!(b2 instanceof e.a.g)) {
                throw new NoWhenBranchMatchedException();
            }
            AbstractC1877a a7 = ((e.a.g) content.b()).a();
            if (a7 instanceof AbstractC1877a.b) {
                D2(this, 16, ((AbstractC1877a.b) a7).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit z2;
                        z2 = OnboardingQuestionnaireActivity.z2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return z2;
                    }
                }, 4, null);
            } else {
                if (!(a7 instanceof AbstractC1877a.C0623a)) {
                    throw new NoWhenBranchMatchedException();
                }
                D2(this, 17, ((AbstractC1877a.C0623a) a7).a(), false, new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit A2;
                        A2 = OnboardingQuestionnaireActivity.A2(OnboardingQuestionnaireActivity.this, (Pair) obj);
                        return A2;
                    }
                }, 4, null);
            }
        }
        Button button = e2().c;
        if (content.c() == null) {
            button.setEnabled(false);
            return;
        }
        button.setEnabled(true);
        Intrinsics.f(button);
        Vd.e.b(button, content.c());
    }

    public static final Unit m2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.AverageIncomeOrExpenseChoices");
        g2.H((EnumC2025a) d2);
        return Unit.a;
    }

    public static final Unit n2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type kotlin.Boolean");
        g2.Z(((Boolean) d2).booleanValue());
        return Unit.a;
    }

    public static final Unit o2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.EducationLevelChoices");
        g2.P((EnumC2029e) d2);
        return Unit.a;
    }

    public static final Unit p2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.MartialStatusChoices");
        g2.X((EnumC2035k) d2);
        return Unit.a;
    }

    public static final Unit q2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.HouseholdDependents");
        g2.U((EnumC2033i) d2);
        return Unit.a;
    }

    public static final Unit r2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.EmploymentStatusChoices");
        g2.Q((EnumC2030f) d2);
        return Unit.a;
    }

    public static final Unit s2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.CreditHistoryChoices");
        g2.I((EnumC2027c) d2);
        return Unit.a;
    }

    public static final Unit t2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.CreditCardOwnership");
        g2.J((EnumC2026b) d2);
        return Unit.a;
    }

    public static final Unit v2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type kotlin.Boolean");
        g2.Y(((Boolean) d2).booleanValue());
        return Unit.a;
    }

    public static final Unit w2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.LastYearDebtStateChoice");
        g2.W((EnumC2034j) d2);
        return Unit.a;
    }

    public static final Unit x2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.EmpowerLoanUsage");
        g2.S((EnumC2032h) d2);
        return Unit.a;
    }

    public static final Unit y2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.EmpowerLoanRepayment");
        g2.R((EnumC2031g) d2);
        return Unit.a;
    }

    public static final Unit z2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair answer) {
        Intrinsics.checkNotNullParameter(answer, "answer");
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = answer.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.PropertyTypeChoices");
        g2.c0((EnumC2037m) d2);
        return Unit.a;
    }

    @Override
    public String getPageName() {
        return (String) getPageName();
    }

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

    @Override
    public void U(AbstractC1371a.b employmentStatus) {
        Intrinsics.checkNotNullParameter(employmentStatus, "employmentStatus");
        EnumC2030f a = employmentStatus.a();
        if ((a != null ? a.name() : null) == null) {
            com.google.firebase.crashlytics.a.b().f(new LogicFailure(null, 1, null));
        } else {
            AbstractC1221b.f(B1(), employmentStatus.a().name());
        }
        C0863q e2 = e2();
        ComposeView composeQuestions = e2().d;
        Intrinsics.checkNotNullExpressionValue(composeQuestions, "composeQuestions");
        n.c(composeQuestions);
        FormInput employmentDate = e2.e;
        Intrinsics.checkNotNullExpressionValue(employmentDate, "employmentDate");
        n.r(employmentDate);
        g2().M();
    }

    @Override
    public void V(AbstractC1371a.C0518a employmentStartingDate) {
        Intrinsics.checkNotNullParameter(employmentStartingDate, "employmentStartingDate");
        if (employmentStartingDate.a() == null) {
            com.google.firebase.crashlytics.a.b().f(new LogicFailure(null, 1, null));
        } else {
            AbstractC1221b.e(B1(), employmentStartingDate.a());
        }
        AbstractC2536b.c(this);
        FormInput employmentDate = e2().e;
        Intrinsics.checkNotNullExpressionValue(employmentDate, "employmentDate");
        n.c(employmentDate);
        ComposeView composeQuestions = e2().d;
        Intrinsics.checkNotNullExpressionValue(composeQuestions, "composeQuestions");
        n.r(composeQuestions);
        g2().L();
    }

    @Override
    public void a() {
        g2().f0(h2());
    }

    protected Void getPageName() {
        return this.pageName;
    }

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

    @Override
    public void h0(AbstractC1278a.g outstandingDebtDetails) {
        Intrinsics.checkNotNullParameter(outstandingDebtDetails, "outstandingDebtDetails");
        if (outstandingDebtDetails.b() == null) {
            com.google.firebase.crashlytics.a.b().f(new LogicFailure(null, 1, null));
        } else {
            AbstractC1221b.c(B1(), outstandingDebtDetails.b().booleanValue(), e2().b.getText().toString());
        }
        AbstractC2536b.c(this);
        g2().O();
    }

    @Override
    public void E(e.c.a viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        C0863q e2 = e2();
        ConstraintLayout progressSpinnerModal = e2.f.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal, "progressSpinnerModal");
        n.c(progressSpinnerModal);
        if (viewState instanceof e.c.a.b) {
            return;
        }
        if (!(viewState instanceof e.c.a.C0451c)) {
            if (!(viewState instanceof e.c.a.C0450a)) {
                throw new NoWhenBranchMatchedException();
            }
            l2((e.c.a.C0450a) viewState);
            return;
        }
        ConstraintLayout progressSpinnerModal2 = e2.f.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal2, "progressSpinnerModal");
        n.r(progressSpinnerModal2);
        e.c.a.C0450a b2 = ((e.c.a.C0451c) viewState).b();
        if (b2 != null) {
            l2(b2);
        }
        e2.c.setEnabled(false);
        AbstractC2536b.c(this);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Parcelable parcelable;
        Object parcelable2;
        super.onCreate(savedInstanceState);
        C0863q e2 = e2();
        setContentView(e2.getRoot());
        FormInput employmentDate = e2.e;
        Intrinsics.checkNotNullExpressionValue(employmentDate, "employmentDate");
        n.c(employmentDate);
        this.onboardingQuestionnaireData = AbstractC2023a.a(this);
        if (h2() == EnumC1220a.d) {
            AbstractC2536b.b(this);
        }
        if (savedInstanceState != null) {
            if (Build.VERSION.SDK_INT > 33) {
                parcelable2 = savedInstanceState.getParcelable("finance.empower.6a647b09-c74d-488c-998d-16617fbe4fe7", e.b.class);
                parcelable = (Parcelable) parcelable2;
            } else {
                Parcelable parcelable3 = savedInstanceState.getParcelable("finance.empower.6a647b09-c74d-488c-998d-16617fbe4fe7");
                if (!(parcelable3 instanceof e.b)) {
                    parcelable3 = null;
                }
                parcelable = (e.b) parcelable3;
            }
            e.b bVar = (e.b) parcelable;
            if (bVar != null) {
                g2().e0(bVar);
            }
        }
    }

    protected void onSaveInstanceState(Bundle outState) {
        Intrinsics.checkNotNullParameter(outState, "outState");
        super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(outState);
        e.b F = g2().F();
        if (F != null) {
            outState.putParcelable("finance.empower.6a647b09-c74d-488c-998d-16617fbe4fe7", F);
        }
    }

    @Override
    protected void onStart() {
        super.onStart();
        g2().d0();
    }

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

    @Override
    public void p0(AbstractC1680a.d paycheckFrequency, List list) {
        Intrinsics.checkNotNullParameter(paycheckFrequency, "paycheckFrequency");
        Intrinsics.checkNotNullParameter(list, "list");
        if (paycheckFrequency.a() == null) {
            com.google.firebase.crashlytics.a.b().f(new LogicFailure(null, 1, null));
        } else {
            AbstractC1221b.m(B1(), paycheckFrequency.a(), paycheckFrequency.b());
        }
        g2().N();
        C0863q e2 = e2();
        PaycheckFrequencyView paycheckFrequencyView = e2.g;
        Intrinsics.checkNotNullExpressionValue(paycheckFrequencyView, "paycheckFrequencyView");
        n.c(paycheckFrequencyView);
        ComposeView composeQuestions = e2.d;
        Intrinsics.checkNotNullExpressionValue(composeQuestions, "composeQuestions");
        n.r(composeQuestions);
    }

    public static final Unit u2(OnboardingQuestionnaireActivity onboardingQuestionnaireActivity, Pair pair) {
        Intrinsics.checkNotNullParameter(pair, QxNxM.KSO);
        e g2 = onboardingQuestionnaireActivity.g2();
        Object d2 = pair.d();
        Intrinsics.g(d2, "null cannot be cast to non-null type finance.empower.android.data.model.questionnaire.CreditIdealLoanAmount");
        g2.V((EnumC2028d) d2);
        return Unit.a;
    }
}