导航菜单

页面标题

页面副标题

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

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

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


package com.stripe.android.paymentsheet.addresselement;

import Ff.o;
import Gf.M;
import Gf.s;
import M0.c2;
import Rf.N;
import Rf.P;
import Rf.i;
import Sb.Ge.ytfVNX;
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.core.view.n0;
import androidx.lifecycle.e0;
import androidx.lifecycle.f0;
import androidx.lifecycle.g0;
import com.stripe.android.paymentsheet.addresselement.a;
import com.stripe.android.paymentsheet.addresselement.c;
import com.stripe.android.paymentsheet.addresselement.d;
import com.stripe.android.paymentsheet.p;
import fa.n;
import java.util.List;
import k0.F0;
import k0.l0;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import o9.q;
import p9.AbstractC2843i;
import p9.C2837c;
import p9.C2840f;
import q2.A;
import q2.C;
import q2.j;
import q2.v;
import q8.AbstractC2854a;
import r2.k;
import s0.O;
import sf.l;
import sf.m;
import sf.t;

@Metadata(d1 = {"\u0000:\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\u0004\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0000\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0019\u0010\u0007\u001a\u00020\u00062\b\b\u0002\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0007\u0010\bJ\u0019\u0010\u000b\u001a\u00020\u00062\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0014¢\u0006\u0004\b\u000b\u0010\fJ\u000f\u0010\r\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\r\u0010\u0003R(\u0010\u0016\u001a\u00020\u000e8\u0000@\u0000X\u0081\u000e¢\u0006\u0018\n\u0004\b\u000f\u0010\u0010\u0012\u0004\b\u0015\u0010\u0003\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014R\u001b\u0010\u001c\u001a\u00020\u00178BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u001a\u0010\u001bR\u001b\u0010!\u001a\u00020\u001d8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001e\u0010\u0019\u001a\u0004\b\u001f\u0010 ¨\u0006\""}, d2 = {"Lcom/stripe/android/paymentsheet/addresselement/AddressElementActivity;", "Landroidx/activity/ComponentActivity;", "<init>", "()V", "Lcom/stripe/android/paymentsheet/addresselement/e;", "result", "", "Z0", "(Lcom/stripe/android/paymentsheet/addresselement/e;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "finish", "Landroidx/lifecycle/f0$c;", "U", "Landroidx/lifecycle/f0$c;", "Y0", "()Landroidx/lifecycle/f0$c;", "setViewModelFactory$paymentsheet_release", "(Landroidx/lifecycle/f0$c;)V", "getViewModelFactory$paymentsheet_release$annotations", "viewModelFactory", "Lcom/stripe/android/paymentsheet/addresselement/d;", "V", "Lsf/l;", "X0", "()Lcom/stripe/android/paymentsheet/addresselement/d;", "viewModel", "Lcom/stripe/android/paymentsheet/addresselement/a;", "W", "W0", "()Lcom/stripe/android/paymentsheet/addresselement/a;", "starterArgs", "paymentsheet_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class AddressElementActivity extends ComponentActivity {

    private f0.c viewModelFactory = new d.a(new f(), new g());

    private final l viewModel = new e0(M.b(com.stripe.android.paymentsheet.addresselement.d.class), new b(this), new e(), new c(null, this));

    private final l starterArgs = m.a(new d());

    static final class a extends s implements Function2 {

        static final class C0401a extends s implements Function0 {
            final AddressElementActivity d;

            C0401a(AddressElementActivity addressElementActivity) {
                super(0);
                this.d = addressElementActivity;
            }

            public final void a() {
                this.d.X0().i().e();
            }

            public Object invoke() {
                a();
                return Unit.a;
            }
        }

        static final class b extends s implements Function1 {
            final N d;
            final ja.g e;
            final AddressElementActivity i;

            static final class C0402a extends kotlin.coroutines.jvm.internal.m implements Function2 {
                int d;
                final ja.g e;
                final AddressElementActivity i;
                final com.stripe.android.paymentsheet.addresselement.e v;

                C0402a(ja.g gVar, AddressElementActivity addressElementActivity, com.stripe.android.paymentsheet.addresselement.e eVar, vf.b bVar) {
                    super(2, bVar);
                    this.e = gVar;
                    this.i = addressElementActivity;
                    this.v = eVar;
                }

                public final vf.b create(Object obj, vf.b bVar) {
                    return new C0402a(this.e, this.i, this.v, bVar);
                }

                public final Object invoke(N n, vf.b bVar) {
                    return create(n, bVar).invokeSuspend(Unit.a);
                }

                public final Object invokeSuspend(Object obj) {
                    Object f = wf.b.f();
                    int i = this.d;
                    if (i == 0) {
                        t.b(obj);
                        ja.g gVar = this.e;
                        this.d = 1;
                        if (gVar.c(this) == f) {
                            return f;
                        }
                    } else {
                        if (i != 1) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        t.b(obj);
                    }
                    this.i.Z0(this.v);
                    this.i.finish();
                    return Unit.a;
                }
            }

            b(N n, ja.g gVar, AddressElementActivity addressElementActivity) {
                super(1);
                this.d = n;
                this.e = gVar;
                this.i = addressElementActivity;
            }

            public final void a(com.stripe.android.paymentsheet.addresselement.e eVar) {
                Intrinsics.checkNotNullParameter(eVar, "result");
                i.d(this.d, (CoroutineContext) null, (P) null, new C0402a(this.e, this.i, eVar, null), 3, (Object) null);
            }

            public Object invoke(Object obj) {
                a((com.stripe.android.paymentsheet.addresselement.e) obj);
                return Unit.a;
            }
        }

        static final class c extends s implements Function2 {
            final ja.g d;
            final AddressElementActivity e;
            final v i;

            class C0403a extends Gf.a implements Function0 {
                C0403a(Object obj) {
                    super(0, obj, com.stripe.android.paymentsheet.addresselement.b.class, "dismiss", "dismiss(Lcom/stripe/android/paymentsheet/addresselement/AddressLauncherResult;)V", 0);
                }

                public final void a() {
                    com.stripe.android.paymentsheet.addresselement.b.b((com.stripe.android.paymentsheet.addresselement.b) ((Gf.a) this).d, null, 1, null);
                }

                public Object invoke() {
                    a();
                    return Unit.a;
                }
            }

            static final class b extends s implements Function2 {
                final v d;
                final AddressElementActivity e;

                static final class C0404a extends s implements Function2 {
                    final v d;
                    final AddressElementActivity e;

                    static final class C0405a extends s implements Function1 {
                        final AddressElementActivity d;

                        static final class C0406a extends s implements o {
                            final AddressElementActivity d;

                            C0406a(AddressElementActivity addressElementActivity) {
                                super(4);
                                this.d = addressElementActivity;
                            }

                            public final void a(Q.b bVar, j jVar, s0.l lVar, int i) {
                                Intrinsics.checkNotNullParameter(bVar, "$this$composable");
                                Intrinsics.checkNotNullParameter(jVar, "it");
                                if (s0.o.H()) {
                                    s0.o.Q(11906891, i, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (AddressElementActivity.kt:81)");
                                }
                                com.stripe.android.paymentsheet.addresselement.g.a(this.d.X0().h(), lVar, 8);
                                if (s0.o.H()) {
                                    s0.o.P();
                                }
                            }

                            public Object h(Object obj, Object obj2, Object obj3, Object obj4) {
                                a((Q.b) obj, (j) obj2, (s0.l) obj3, ((Number) obj4).intValue());
                                return Unit.a;
                            }
                        }

                        static final class C0407b extends s implements Function1 {
                            public static final C0407b d = new C0407b();

                            C0407b() {
                                super(1);
                            }

                            public final void a(q2.h hVar) {
                                Intrinsics.checkNotNullParameter(hVar, "$this$navArgument");
                                hVar.b(A.m);
                            }

                            public Object invoke(Object obj) {
                                a((q2.h) obj);
                                return Unit.a;
                            }
                        }

                        static final class C0408c extends s implements o {
                            final AddressElementActivity d;

                            C0408c(AddressElementActivity addressElementActivity) {
                                super(4);
                                this.d = addressElementActivity;
                            }

                            public final void a(Q.b bVar, j jVar, s0.l lVar, int i) {
                                Intrinsics.checkNotNullParameter(bVar, "$this$composable");
                                Intrinsics.checkNotNullParameter(jVar, "backStackEntry");
                                if (s0.o.H()) {
                                    s0.o.Q(1704615618, i, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (AddressElementActivity.kt:91)");
                                }
                                Bundle c = jVar.c();
                                AbstractC2843i.a(this.d.X0().g(), c != null ? c.getString("country") : null, lVar, 8);
                                if (s0.o.H()) {
                                    s0.o.P();
                                }
                            }

                            public Object h(Object obj, Object obj2, Object obj3, Object obj4) {
                                a((Q.b) obj, (j) obj2, (s0.l) obj3, ((Number) obj4).intValue());
                                return Unit.a;
                            }
                        }

                        C0405a(AddressElementActivity addressElementActivity) {
                            super(1);
                            this.d = addressElementActivity;
                        }

                        public final void a(q2.t tVar) {
                            Intrinsics.checkNotNullParameter(tVar, "$this$NavHost");
                            r2.i.b(tVar, c.b.b.a(), (List) null, (List) null, (Function1) null, (Function1) null, (Function1) null, (Function1) null, A0.c.c(11906891, true, new C0406a(this.d)), 126, (Object) null);
                            r2.i.b(tVar, "Autocomplete?country={country}", CollectionsKt.e(q2.e.a("country", C0407b.d)), (List) null, (Function1) null, (Function1) null, (Function1) null, (Function1) null, A0.c.c(1704615618, true, new C0408c(this.d)), 124, (Object) null);
                        }

                        public Object invoke(Object obj) {
                            a((q2.t) obj);
                            return Unit.a;
                        }
                    }

                    C0404a(v vVar, AddressElementActivity addressElementActivity) {
                        super(2);
                        this.d = vVar;
                        this.e = addressElementActivity;
                    }

                    public final void a(s0.l lVar, int i) {
                        if ((i & 11) == 2 && lVar.w()) {
                            lVar.F();
                            return;
                        }
                        if (s0.o.H()) {
                            s0.o.Q(-1329641751, i, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous>.<anonymous>.<anonymous> (AddressElementActivity.kt:76)");
                        }
                        k.a(this.d, c.b.b.a(), (androidx.compose.ui.e) null, (F0.c) null, (String) null, (Function1) null, (Function1) null, (Function1) null, (Function1) null, new C0405a(this.e), lVar, 8, 508);
                        if (s0.o.H()) {
                            s0.o.P();
                        }
                    }

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

                b(v vVar, AddressElementActivity addressElementActivity) {
                    super(2);
                    this.d = vVar;
                    this.e = addressElementActivity;
                }

                public final void a(s0.l lVar, int i) {
                    if ((i & 11) == 2 && lVar.w()) {
                        lVar.F();
                        return;
                    }
                    if (s0.o.H()) {
                        s0.o.Q(-665209427, i, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous>.<anonymous> (AddressElementActivity.kt:75)");
                    }
                    F0.a(androidx.compose.foundation.layout.t.f(androidx.compose.ui.e.a, 0.0f, 1, (Object) null), (c2) null, 0L, 0L, (S.g) null, 0.0f, A0.c.b(lVar, -1329641751, true, new C0404a(this.d, this.e)), lVar, 1572870, 62);
                    if (s0.o.H()) {
                        s0.o.P();
                    }
                }

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

            c(ja.g gVar, AddressElementActivity addressElementActivity, v vVar) {
                super(2);
                this.d = gVar;
                this.e = addressElementActivity;
                this.i = vVar;
            }

            public final void a(s0.l lVar, int i) {
                if ((i & 11) == 2 && lVar.w()) {
                    lVar.F();
                    return;
                }
                if (s0.o.H()) {
                    s0.o.Q(1044576262, i, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous> (AddressElementActivity.kt:71)");
                }
                AbstractC2854a.a(this.d, null, new C0403a(this.e.X0().i()), A0.c.b(lVar, -665209427, true, new b(this.i, this.e)), lVar, ja.g.e | 3072, 2);
                if (s0.o.H()) {
                    s0.o.P();
                }
            }

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

        a() {
            super(2);
        }

        public final void a(s0.l lVar, int i) {
            if ((i & 11) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (s0.o.H()) {
                s0.o.Q(1953035352, i, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous> (AddressElementActivity.kt:51)");
            }
            lVar.e(773894976);
            lVar.e(-492369756);
            Object f = lVar.f();
            if (f == s0.l.a.a()) {
                s0.A a = new s0.A(O.j(kotlin.coroutines.e.d, lVar));
                lVar.M(a);
                f = a;
            }
            lVar.R();
            N a2 = ((s0.A) f).a();
            lVar.R();
            v d = r2.j.d(new C[0], lVar, 8);
            AddressElementActivity.this.X0().i().f(d);
            ja.g b2 = ja.h.b((l0) null, (Function1) null, lVar, 0, 3);
            e.d.a(false, new C0401a(AddressElementActivity.this), lVar, 0, 1);
            AddressElementActivity.this.X0().i().g(new b(a2, b2, AddressElementActivity.this));
            fa.m.a((fa.h) null, (fa.j) null, (n) null, A0.c.b(lVar, 1044576262, true, new c(b2, AddressElementActivity.this, d)), lVar, 3072, 7);
            if (s0.o.H()) {
                s0.o.P();
            }
        }

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

    public static final class b extends s implements Function0 {
        final ComponentActivity d;

        public b(ComponentActivity componentActivity) {
            super(0);
            this.d = componentActivity;
        }

        public final g0 invoke() {
            return this.d.H();
        }
    }

    public static final class c extends s implements Function0 {
        final Function0 d;
        final ComponentActivity e;

        public c(Function0 function0, ComponentActivity componentActivity) {
            super(0);
            this.d = function0;
            this.e = componentActivity;
        }

        public final n2.a invoke() {
            n2.a aVar;
            Function0 function0 = this.d;
            return (function0 == null || (aVar = (n2.a) function0.invoke()) == null) ? this.e.A() : aVar;
        }
    }

    static final class d extends s implements Function0 {
        d() {
            super(0);
        }

        public final com.stripe.android.paymentsheet.addresselement.a invoke() {
            a.C0409a c0409a = com.stripe.android.paymentsheet.addresselement.a.i;
            Intent intent = AddressElementActivity.this.getIntent();
            Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
            com.stripe.android.paymentsheet.addresselement.a a = c0409a.a(intent);
            if (a != null) {
                return a;
            }
            throw new IllegalArgumentException("Required value was null.");
        }
    }

    static final class e extends s implements Function0 {
        e() {
            super(0);
        }

        public final f0.c invoke() {
            return AddressElementActivity.this.getViewModelFactory();
        }
    }

    static final class f extends s implements Function0 {
        f() {
            super(0);
        }

        public final Application invoke() {
            Application application = AddressElementActivity.this.getApplication();
            Intrinsics.checkNotNullExpressionValue(application, ytfVNX.GKOYTi);
            return application;
        }
    }

    static final class g extends s implements Function0 {
        g() {
            super(0);
        }

        public final com.stripe.android.paymentsheet.addresselement.a invoke() {
            return AddressElementActivity.this.W0();
        }
    }

    public final com.stripe.android.paymentsheet.addresselement.a W0() {
        return (com.stripe.android.paymentsheet.addresselement.a) this.starterArgs.getValue();
    }

    public final com.stripe.android.paymentsheet.addresselement.d X0() {
        return (com.stripe.android.paymentsheet.addresselement.d) this.viewModel.getValue();
    }

    public final void Z0(com.stripe.android.paymentsheet.addresselement.e result) {
        setResult(result.a(), new Intent().putExtras(new C2837c(result).a()));
    }

    public final f0.c getViewModelFactory() {
        return this.viewModelFactory;
    }

    public void finish() {
        super/*android.app.Activity*/.finish();
        ra.c.a(this);
    }

    protected void onCreate(Bundle savedInstanceState) {
        q d2;
        super.onCreate(savedInstanceState);
        n0.b(getWindow(), false);
        C2840f a2 = W0().a();
        if (a2 != null && (d2 = a2.d()) != null) {
            p.a(d2);
        }
        e.e.b(this, (s0.q) null, A0.c.c(1953035352, true, new a()), 1, (Object) null);
    }
}