导航菜单

页面标题

页面副标题

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

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

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


package finance.empower.android.app.survey;

import Ke.C0871z;
import Nd.E;
import Nd.z0;
import Vd.n;
import ac.C0995g;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.compose.foundation.layout.q;
import androidx.compose.foundation.layout.t;
import androidx.constraintlayout.widget.ConstraintLayout;
import bc.AbstractC1046m;
import c0.h;
import c0.i;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import d0.A;
import d0.z;
import finance.empower.android.app.ExplanationComposeActivity;
import finance.empower.android.app.survey.SurveyQuestionsActivity;
import finance.empower.android.app.survey.f;
import finance.empower.android.data.model.firebase.UserSurveyQuestionDto;
import hc.AbstractC1548l;
import j0.J;
import java.util.List;
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 l1.W;
import p0.Q;
import p0.S;
import p0.v0;
import r1.K;
import r1.c0;
import r1.x;
import r1.y;
import re.j;
import re.k;
import s0.o;
import sf.l;
import sf.m;

@Metadata(d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\r\b\u0007\u0018\u0000 52\u00020\u00012\u00020\u0002:\u00016B\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;\u0010\u0010\u001a\u00020\u00072\f\u0010\f\u001a\b\u0012\u0004\u0012\u00020\u000b0\n2\b\u0010\r\u001a\u0004\u0018\u00010\u000b2\u0012\u0010\u000f\u001a\u000e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\u00070\u000eH\u0002¢\u0006\u0004\b\u0010\u0010\u0011J-\u0010\u0012\u001a\u00020\u00072\b\u0010\r\u001a\u0004\u0018\u00010\u000b2\u0012\u0010\u000f\u001a\u000e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\u00070\u000eH\u0002¢\u0006\u0004\b\u0012\u0010\u0013J\u0019\u0010\u0016\u001a\u00020\u00072\b\u0010\u0015\u001a\u0004\u0018\u00010\u0014H\u0014¢\u0006\u0004\b\u0016\u0010\u0017J\u000f\u0010\u0018\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u0018\u0010\u0004J\u000f\u0010\u0019\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u0019\u0010\u0004J\u0017\u0010\u001b\u001a\u00020\u00072\u0006\u0010\u001a\u001a\u00020\u0014H\u0014¢\u0006\u0004\b\u001b\u0010\u0017J\u000f\u0010\u001c\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\u001c\u0010\u0004J\u0017\u0010\u001f\u001a\u00020\u00072\u0006\u0010\u001e\u001a\u00020\u001dH\u0016¢\u0006\u0004\b\u001f\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\u001b\u0010/\u001a\u00020*8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b+\u0010,\u001a\u0004\b-\u0010.R\u001a\u00104\u001a\u00020\u000b8\u0014X\u0094D¢\u0006\f\n\u0004\b0\u00101\u001a\u0004\b2\u00103¨\u00067"}, d2 = {"Lfinance/empower/android/app/survey/SurveyQuestionsActivity;", "Lbc/m;", "Lfinance/empower/android/app/survey/f$b;", "<init>", "()V", "Lfinance/empower/android/app/survey/f$b$a$a;", "content", "", "P1", "(Lfinance/empower/android/app/survey/f$b$a$a;)V", "", "", "offers", "selection", "Lkotlin/Function1;", "onSelectionDone", "T1", "(Ljava/util/List;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V", "U1", "(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "onStop", "outState", "onSaveInstanceState", "t", "Lfinance/empower/android/app/survey/f$b$a;", "viewState", "O1", "(Lfinance/empower/android/app/survey/f$b$a;)V", "Lfinance/empower/android/app/survey/f;", "value", "i0", "Lfinance/empower/android/app/survey/f;", "N1", "()Lfinance/empower/android/app/survey/f;", "V1", "(Lfinance/empower/android/app/survey/f;)V", "presenter", "LKe/z;", "j0", "Lsf/l;", "M1", "()LKe/z;", "binding", "k0", "Ljava/lang/String;", "C1", "()Ljava/lang/String;", "pageName", "l0", "a", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class SurveyQuestionsActivity extends a implements f.b {

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

    public f presenter;

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

    private final String pageName = "SurveyQuestionsScreen";

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

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

        private Companion() {
        }
    }

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

        static {
            int[] iArr = new int[UserSurveyQuestionDto.b.values().length];
            try {
                iArr[UserSurveyQuestionDto.b.v.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[UserSurveyQuestionDto.b.w.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[UserSurveyQuestionDto.b.i.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            a = iArr;
        }
    }

    static final class c implements Function2 {
        final List d;
        final String e;
        final Function1 i;

        static final class a implements Function2 {
            final List d;
            final String e;
            final Function1 i;

            a(List list, String str, Function1 function1) {
                this.d = list;
                this.e = str;
                this.i = function1;
            }

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

            public final void c(s0.l lVar, int i) {
                if ((i & 3) == 2 && lVar.w()) {
                    lVar.F();
                    return;
                }
                if (o.H()) {
                    o.Q(-1731478528, i, -1, "finance.empower.android.app.survey.SurveyQuestionsActivity.renderQuestionDetails.<anonymous>.<anonymous>.<anonymous> (SurveyQuestionsActivity.kt:155)");
                }
                Of.b c = Of.a.c(this.d);
                String str = this.e;
                lVar.V(1816461355);
                boolean U = lVar.U(this.i);
                final Function1 function1 = this.i;
                Object f = lVar.f();
                if (U || f == s0.l.a.a()) {
                    f = new Function1() {
                        @Override
                        public final Object invoke(Object obj) {
                            Unit d;
                            d = SurveyQuestionsActivity.c.a.d(Function1.this, (String) obj);
                            return d;
                        }
                    };
                    lVar.M(f);
                }
                lVar.L();
                Hd.e.g(c, str, (Function1) f, null, lVar, 0, 8);
                if (o.H()) {
                    o.P();
                }
            }

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

        c(List list, String str, Function1 function1) {
            this.d = list;
            this.e = str;
            this.i = function1;
        }

        public final void a(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(1894918939, i, -1, "finance.empower.android.app.survey.SurveyQuestionsActivity.renderQuestionDetails.<anonymous>.<anonymous> (SurveyQuestionsActivity.kt:154)");
            }
            E.b(A0.c.e(-1731478528, true, new a(this.d, this.e, this.i), 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;
        }
    }

    static final class d implements Function2 {
        final String d;
        final Function1 e;

        d(String str, Function1 function1) {
            this.d = str;
            this.e = function1;
        }

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

        public final void c(s0.l lVar, int i) {
            if ((i & 3) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-1528314179, i, -1, "finance.empower.android.app.survey.SurveyQuestionsActivity.renderTextBoxDetails.<anonymous>.<anonymous> (SurveyQuestionsActivity.kt:173)");
            }
            String str = this.d;
            if (str == null) {
                str = "";
            }
            String str2 = str;
            A c = A.c(A.g.a(), x.b.c(), (Boolean) null, y.b.h(), 0, (K) null, (Boolean) null, (s1.e) null, 122, (Object) null);
            h c2 = i.c(x1.h.j(12));
            W h = j.h();
            v0 d = Q.a.d(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, (J) null, z0.d(), z0.d(), 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, lVar, 0, 0, 0, 0, 3072, 2147477503, 4095);
            androidx.compose.ui.e k = q.k(t.h(t.i(androidx.compose.ui.e.a, x1.h.j(250)), 0.0f, 1, (Object) null), k.a.b(lVar, k.b).c(), 0.0f, 2, (Object) null);
            lVar.V(1670975188);
            boolean U = lVar.U(this.e);
            final Function1 function1 = this.e;
            Object f = lVar.f();
            if (U || f == s0.l.a.a()) {
                f = new Function1() {
                    @Override
                    public final Object invoke(Object obj) {
                        Unit d2;
                        d2 = SurveyQuestionsActivity.d.d(Function1.this, (String) obj);
                        return d2;
                    }
                };
                lVar.M(f);
            }
            lVar.L();
            S.a(str2, (Function1) f, k, false, false, h, (Function2) null, (Function2) null, (Function2) null, (Function2) null, (Function2) null, (Function2) null, (Function2) null, false, (c0) null, c, (z) null, false, 0, 0, (W.l) null, c2, d, lVar, 0, 0, 0, 2064344);
            if (o.H()) {
                o.P();
            }
        }

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

    public static final C0871z L1(SurveyQuestionsActivity surveyQuestionsActivity) {
        return C0871z.c(surveyQuestionsActivity.getLayoutInflater());
    }

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

    private final void P1(f.b.a.C0489a content) {
        C0871z M1 = M1();
        M1.i.setText(content.g());
        M1.h.setText(content.d());
        M1.g.setText(content.e());
        int i = b.a[content.f().ordinal()];
        if (i == 1) {
            List c2 = content.c();
            if (c2 == null) {
                c2 = Of.a.c(CollectionsKt.m());
            }
            T1(c2, content.a(), new Function1() {
                @Override
                public final Object invoke(Object obj) {
                    Unit Q1;
                    Q1 = SurveyQuestionsActivity.Q1(SurveyQuestionsActivity.this, (String) obj);
                    return Q1;
                }
            });
        } else if (i == 2) {
            U1(content.a(), new Function1() {
                @Override
                public final Object invoke(Object obj) {
                    Unit R1;
                    R1 = SurveyQuestionsActivity.R1(SurveyQuestionsActivity.this, (String) obj);
                    return R1;
                }
            });
        } else {
            if (i != 3) {
                throw new NoWhenBranchMatchedException();
            }
            U1(content.a(), new Function1() {
                @Override
                public final Object invoke(Object obj) {
                    Unit S1;
                    S1 = SurveyQuestionsActivity.S1(SurveyQuestionsActivity.this, (String) obj);
                    return S1;
                }
            });
        }
        Button btnSubmit = M1.b;
        Intrinsics.checkNotNullExpressionValue(btnSubmit, "btnSubmit");
        Vd.e.b(btnSubmit, content.b());
    }

    public static final Unit Q1(SurveyQuestionsActivity surveyQuestionsActivity, String selection) {
        Intrinsics.checkNotNullParameter(selection, "selection");
        surveyQuestionsActivity.N1().r(selection);
        return Unit.a;
    }

    public static final Unit R1(SurveyQuestionsActivity surveyQuestionsActivity, String selection) {
        Intrinsics.checkNotNullParameter(selection, "selection");
        surveyQuestionsActivity.N1().r(selection);
        return Unit.a;
    }

    public static final Unit S1(SurveyQuestionsActivity surveyQuestionsActivity, String selection) {
        Intrinsics.checkNotNullParameter(selection, "selection");
        surveyQuestionsActivity.N1().r(selection);
        return Unit.a;
    }

    private final void T1(List offers, String selection, Function1 onSelectionDone) {
        M1().c.setContent(A0.c.c(1894918939, true, new c(offers, selection, onSelectionDone)));
    }

    private final void U1(String selection, Function1 onSelectionDone) {
        M1().c.setContent(A0.c.c(-1528314179, true, new d(selection, onSelectionDone)));
    }

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

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

    @Override
    public void E(f.b.a viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        ConstraintLayout progressSpinnerModal = M1().e.c;
        Intrinsics.checkNotNullExpressionValue(progressSpinnerModal, "progressSpinnerModal");
        n.c(progressSpinnerModal);
        if (viewState instanceof f.b.a.C0490b) {
            return;
        }
        if (!(viewState instanceof f.b.a.C0489a)) {
            throw new NoWhenBranchMatchedException();
        }
        P1((f.b.a.C0489a) viewState);
    }

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

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(M1().getRoot());
        AbstractC1046m.G1(this, null, null, Jd.t.i, null, false, null, 59, null);
    }

    protected void onSaveInstanceState(Bundle outState) {
        Intrinsics.checkNotNullParameter(outState, "outState");
        super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(outState);
        f.a p = N1().p();
        if (p != null) {
            outState.putParcelable("finance.empower.bec0bd72-4e0a-412c-9d67-b488d3d867ac", p);
        }
    }

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

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

    @Override
    public void t() {
        finish();
        startActivity(ExplanationComposeActivity.INSTANCE.a(this, AbstractC1548l.a()));
    }
}