导航菜单

页面标题

页面副标题

Atlys v4.8.7 - PaymentSheetActivity.java 源代码

正在查看: Atlys v4.8.7 应用的 PaymentSheetActivity.java JAVA 源代码文件

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


package com.stripe.android.paymentsheet;

import Bi.C0028h;
import E.j;
import Jh.C0324f;
import Kh.r;
import L0.a;
import M5.b;
import Oh.g;
import Ph.h;
import Sd.c;
import Uh.w;
import Vh.A0;
import Vh.C0431d0;
import Vh.C0441i0;
import Vh.C0463u;
import Vh.D0;
import Vh.E0;
import Vh.F0;
import Vh.G0;
import Vh.J0;
import Vh.K0;
import Vh.S0;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.lifecycle.B;
import androidx.lifecycle.r0;
import com.bumptech.glide.d;
import di.AbstractC0771A;
import java.security.InvalidParameterException;
import java.util.Set;
import javax.inject.Provider;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.l;
import kotlin.jvm.internal.z;
import ni.AbstractC0995k;
import rh.C1059B;
import rh.C1071N;
import th.p;
import wl.k;
import wl.n;

@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\b\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0007¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0007²\u0006\f\u0010\u0006\u001a\u00020\u00058\nX\u008a\u0084\u0002"}, d2 = {"Lcom/stripe/android/paymentsheet/PaymentSheetActivity;", "Lni/k;", "LVh/K0;", "<init>", "()V", "", "isProcessing", "paymentsheet_release"}, k = 1, mv = {1, 8, 0})
public final class PaymentSheetActivity extends AbstractC0995k {
    public static final int g1 = 0;
    public final h I = new h(4, new E0(this, 2));
    public final j e1 = new j(z.a.b(PaymentSheetViewModel.class), new C0028h(this, 15), new E0(this, 1), new C0028h(this, 16));
    public final n f1 = di.z.c0(new E0(this, 0));

    @Override
    public final PaymentSheetViewModel j0() {
        return (PaymentSheetViewModel) this.e1.getValue();
    }

    public final void l0(K0 result) {
        l.h(result, "result");
        setResult(-1, new Intent().putExtras(AbstractC0771A.x(new Pair("com.stripe.android.paymentsheet.PaymentSheetContract.extra_result", new G0(result)))));
    }

    @Override
    public final void onCreate(Bundle bundle) {
        C0431d0 c0431d0;
        ?? r0 = (F0) this.f1.getValue();
        if (r0 == 0) {
            r0 = AbstractC0771A.F(new IllegalArgumentException("PaymentSheet started without arguments."));
        } else {
            try {
                r0.a.a();
                C0441i0 c0441i0 = r0.b;
                if (c0441i0 != null) {
                    d.U(c0441i0);
                }
                if (c0441i0 != null && (c0431d0 = c0441i0.i) != null) {
                    d.O(c0431d0);
                }
            } catch (InvalidParameterException e) {
                r0 = AbstractC0771A.F(e);
            }
        }
        boolean z = r0 instanceof k;
        this.G = z;
        super.onCreate(bundle);
        if ((z ? null : r0) == null) {
            Throwable a = wl.l.a(r0);
            if (a == null) {
                a = new IllegalArgumentException("PaymentSheet started without arguments.");
            }
            l0(new J0(a));
            finish();
            return;
        }
        PaymentSheetViewModel j0 = j0();
        C0463u c0463u = j0.B;
        c0463u.getClass();
        b bVar = new b(1, c0463u, C0463u.class, "onLinkActivityResult", "onLinkActivityResult(Lcom/stripe/android/link/LinkActivityResult;)V", 0, 28);
        p pVar = c0463u.a;
        pVar.getClass();
        pVar.c = registerForActivityResult(pVar.a, new r(pVar, bVar, 1));
        Integer num = j0.n1.c;
        h.d registerForActivityResult = registerForActivityResult(new g(2), new A0(j0, 1));
        S0 s0 = new S0(j0, 2);
        S0 s02 = new S0(j0, 3);
        l.g(registerForActivityResult, "registerForActivityResul…ymentResult\n            )");
        c cVar = j0.q1.a;
        j0.E1 = new w(s0, s02, registerForActivityResult, num, ((Boolean) ((Provider) cVar.a).get()).booleanValue(), (Set) ((Provider) cVar.b).get());
        getLifecycle().a(new Uh.r(j0, 1));
        PaymentSheetViewModel j02 = j0();
        B i = r0.i(this);
        h.d registerForActivityResult2 = registerForActivityResult(new g(17), new A0(j0(), 0));
        l.g(registerForActivityResult2, "registerForActivityResul…lePayResult\n            )");
        C1059B c1059b = j02.B1;
        if (c1059b != null) {
            C1071N c1071n = j02.r1.a;
            j02.z1 = new A.k(i, c1059b, registerForActivityResult2, false, (Context) ((Provider) c1071n.b).get(), (Kl.k) ((Provider) c1071n.c).get(), (C0324f) ((Provider) c1071n.d).get(), (mh.k) ((Provider) c1071n.e).get());
        }
        f.d.a(this, new a(485212172, true, new D0(this, 2)));
    }
}