导航菜单

页面标题

页面副标题

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

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

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


package com.stripe.android.payments.paymentlauncher;

import Gf.M;
import Gf.s;
import Rf.N;
import Rf.P;
import Uf.A;
import Uf.InterfaceC0814f;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.lifecycle.e0;
import androidx.lifecycle.f0;
import androidx.lifecycle.g0;
import androidx.lifecycle.x;
import androidx.lifecycle.y;
import com.stripe.android.core.exception.StripeException;
import com.stripe.android.payments.paymentlauncher.a;
import com.stripe.android.payments.paymentlauncher.b;
import com.stripe.android.payments.paymentlauncher.d;
import com.stripe.android.view.o;
import d.C;
import d.D;
import d.F;
import i9.InterfaceC1721h;
import kotlin.KotlinNothingValueException;
import kotlin.Metadata;
import kotlin.Unit;
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 sf.l;
import sf.m;
import sf.s;
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\u0005\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\b\b\u0000\u0018\u0000 #2\u00020\u0001:\u0001$B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\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\u001d\u0010\u0013\u001a\u0004\u0018\u00010\u000e8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012R(\u0010\u001c\u001a\u00020\u00148\u0000@\u0000X\u0081\u000e¢\u0006\u0018\n\u0004\b\u0015\u0010\u0016\u0012\u0004\b\u001b\u0010\u0003\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001aR!\u0010\"\u001a\u00020\u001d8@X\u0081\u0084\u0002¢\u0006\u0012\n\u0004\b\u001e\u0010\u0010\u0012\u0004\b!\u0010\u0003\u001a\u0004\b\u001f\u0010 ¨\u0006%"}, d2 = {"Lcom/stripe/android/payments/paymentlauncher/PaymentLauncherConfirmationActivity;", "Landroidx/appcompat/app/c;", "<init>", "()V", "Lcom/stripe/android/payments/paymentlauncher/a;", "result", "", "y1", "(Lcom/stripe/android/payments/paymentlauncher/a;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "finish", "Lcom/stripe/android/payments/paymentlauncher/b$a;", "b0", "Lsf/l;", "z1", "()Lcom/stripe/android/payments/paymentlauncher/b$a;", "starterArgs", "Landroidx/lifecycle/f0$c;", "c0", "Landroidx/lifecycle/f0$c;", "B1", "()Landroidx/lifecycle/f0$c;", "setViewModelFactory$payments_core_release", "(Landroidx/lifecycle/f0$c;)V", "getViewModelFactory$payments_core_release$annotations", "viewModelFactory", "Lcom/stripe/android/payments/paymentlauncher/d;", "d0", "A1", "()Lcom/stripe/android/payments/paymentlauncher/d;", "getViewModel$payments_core_release$annotations", "viewModel", "e0", "a", "payments-core_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class PaymentLauncherConfirmationActivity extends androidx.appcompat.app.c {
    public static final int f0 = 8;

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

    private f0.c viewModelFactory = new d.b(new h());

    private final l viewModel = new e0(M.b(com.stripe.android.payments.paymentlauncher.d.class), new d(this), new g(), new e(null, this));

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

        b() {
            super(1);
        }

        public final void a(C c) {
            Intrinsics.checkNotNullParameter(c, "$this$addCallback");
        }

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

    static final class c extends kotlin.coroutines.jvm.internal.m implements Function2 {
        int d;

        static final class a implements InterfaceC0814f {
            final PaymentLauncherConfirmationActivity d;

            a(PaymentLauncherConfirmationActivity paymentLauncherConfirmationActivity) {
                this.d = paymentLauncherConfirmationActivity;
            }

            @Override
            public final Object a(com.stripe.android.payments.paymentlauncher.a aVar, vf.b bVar) {
                if (aVar != null) {
                    this.d.y1(aVar);
                }
                return Unit.a;
            }
        }

        c(vf.b bVar) {
            super(2, bVar);
        }

        public final vf.b create(Object obj, vf.b bVar) {
            return PaymentLauncherConfirmationActivity.this.new c(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);
                A A = PaymentLauncherConfirmationActivity.this.A1().A();
                a aVar = new a(PaymentLauncherConfirmationActivity.this);
                this.d = 1;
                if (A.b(aVar, this) == f) {
                    return f;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                t.b(obj);
            }
            throw new KotlinNothingValueException();
        }
    }

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

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

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

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

        public e(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 f extends s implements Function0 {
        f() {
            super(0);
        }

        public final b.a invoke() {
            b.a.C0384a c0384a = b.a.G;
            Intent intent = PaymentLauncherConfirmationActivity.this.getIntent();
            Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
            return c0384a.a(intent);
        }
    }

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

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

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

        public final b.a invoke() {
            b.a z1 = PaymentLauncherConfirmationActivity.this.z1();
            if (z1 != null) {
                return z1;
            }
            throw new IllegalArgumentException("Required value was null.");
        }
    }

    public final void y1(a result) {
        setResult(-1, new Intent().putExtras(result.a()));
        finish();
    }

    public final b.a z1() {
        return (b.a) this.starterArgs.getValue();
    }

    public final com.stripe.android.payments.paymentlauncher.d A1() {
        return (com.stripe.android.payments.paymentlauncher.d) this.viewModel.getValue();
    }

    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) {
        Object b2;
        b.a z1;
        super/*androidx.fragment.app.i*/.onCreate(savedInstanceState);
        try {
            s.a aVar = sf.s.e;
            z1 = z1();
        } catch (Throwable th) {
            s.a aVar2 = sf.s.e;
            b2 = sf.s.b(t.a(th));
        }
        if (z1 == null) {
            throw new IllegalArgumentException("PaymentLauncherConfirmationActivity was started without arguments");
        }
        b2 = sf.s.b(z1);
        Throwable e2 = sf.s.e(b2);
        if (e2 != null) {
            y1(new a.d(e2));
            InterfaceC1721h.a aVar3 = InterfaceC1721h.a;
            Context applicationContext = getApplicationContext();
            Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
            InterfaceC1721h.b.a(InterfaceC1721h.a.b(aVar3, applicationContext, null, 2, null), InterfaceC1721h.d.M, StripeException.INSTANCE.b(e2), null, 4, null);
            return;
        }
        b.a aVar4 = (b.a) b2;
        D i = i();
        Intrinsics.checkNotNullExpressionValue(i, "<get-onBackPressedDispatcher>(...)");
        F.b(i, (x) null, false, b.d, 3, (Object) null);
        Rf.i.d(y.a(this), (CoroutineContext) null, (P) null, new c(null), 3, (Object) null);
        A1().J(this, this);
        o a = o.a.a(this, aVar4.e());
        if (aVar4 instanceof b.a.C0385b) {
            A1().x(((b.a.C0385b) aVar4).j(), a);
        } else if (aVar4 instanceof b.a.c) {
            A1().B(((b.a.c) aVar4).j(), a);
        } else if (aVar4 instanceof b.a.d) {
            A1().B(((b.a.d) aVar4).j(), a);
        }
    }
}