导航菜单

页面标题

页面副标题

BodyTech v7.6.4 - PaymentLauncherViewModel$confirmStripeIntent$1.java 源代码

正在查看: BodyTech v7.6.4 应用的 PaymentLauncherViewModel$confirmStripeIntent$1.java JAVA 源代码文件

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


package com.stripe.android.payments.paymentlauncher;

import androidx.lifecycle.SavedStateHandle;
import com.stripe.android.core.networking.e;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.payments.DefaultReturnUrl;
import com.stripe.android.payments.core.authentication.PaymentAuthenticator;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.r;
import kotlin.text.s;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.scheduling.WorkQueueKt;

@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lkotlinx/coroutines/CoroutineScope;", "", "<anonymous>"}, k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0})
@kotlin.coroutines.jvm.internal.c(c = "com.stripe.android.payments.paymentlauncher.PaymentLauncherViewModel$confirmStripeIntent$1", f = "PaymentLauncherViewModel.kt", l = {WorkQueueKt.MASK, 137, 144, 152}, m = "invokeSuspend")
final class PaymentLauncherViewModel$confirmStripeIntent$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
    final ai.d $confirmStripeIntentParams;
    final com.stripe.android.view.i $host;
    Object L$0;
    Object L$1;
    int label;
    final PaymentLauncherViewModel this$0;

    PaymentLauncherViewModel$confirmStripeIntent$1(PaymentLauncherViewModel paymentLauncherViewModel, ai.d dVar, com.stripe.android.view.i iVar, Continuation<? super PaymentLauncherViewModel$confirmStripeIntent$1> continuation) {
        super(2, continuation);
        this.this$0 = paymentLauncherViewModel;
        this.$confirmStripeIntentParams = dVar;
        this.$host = iVar;
    }

    @Override
    public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
        return new PaymentLauncherViewModel$confirmStripeIntent$1(this.this$0, this.$confirmStripeIntentParams, this.$host, continuation);
    }

    @Override
    public final Object invokeSuspend(Object obj) {
        Object f;
        SavedStateHandle savedStateHandle;
        SavedStateHandle savedStateHandle2;
        Map w;
        boolean z;
        String returnUrl;
        DefaultReturnUrl defaultReturnUrl;
        Object q;
        Map map;
        Object obj2;
        CoroutineContext coroutineContext;
        fj.a aVar;
        CoroutineContext coroutineContext2;
        String id;
        Map map2;
        f = kotlin.coroutines.intrinsics.b.f();
        int i = this.label;
        if (i == 0) {
            kotlin.f.b(obj);
            savedStateHandle = this.this$0.savedStateHandle;
            savedStateHandle.set("key_has_started", kotlin.coroutines.jvm.internal.a.a(true));
            savedStateHandle2 = this.this$0.savedStateHandle;
            savedStateHandle2.set("confirm_action_requested", kotlin.coroutines.jvm.internal.a.a(true));
            w = this.this$0.w(this.$confirmStripeIntentParams);
            this.this$0.y(this.$confirmStripeIntentParams.getReturnUrl());
            z = this.this$0.isInstantApp;
            if (z) {
                returnUrl = this.$confirmStripeIntentParams.getReturnUrl();
            } else {
                returnUrl = this.$confirmStripeIntentParams.getReturnUrl();
                if (returnUrl == null || s.z(returnUrl)) {
                    returnUrl = null;
                }
                if (returnUrl == null) {
                    defaultReturnUrl = this.this$0.defaultReturnUrl;
                    returnUrl = defaultReturnUrl.a();
                }
            }
            PaymentLauncherViewModel paymentLauncherViewModel = this.this$0;
            ai.d dVar = this.$confirmStripeIntentParams;
            this.L$0 = w;
            this.L$1 = returnUrl;
            this.label = 1;
            q = paymentLauncherViewModel.q(dVar, returnUrl, this);
            if (q == f) {
                return f;
            }
            map = w;
            obj2 = q;
        } else {
            if (i != 1) {
                if (i != 2 && i != 3 && i != 4) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                kotlin.f.b(obj);
                return Unit.a;
            }
            returnUrl = (String) this.L$1;
            map = (Map) this.L$0;
            kotlin.f.b(obj);
            obj2 = ((Result) obj).getValue();
        }
        PaymentLauncherViewModel paymentLauncherViewModel2 = this.this$0;
        com.stripe.android.view.i iVar = this.$host;
        Throwable e = Result.e(obj2);
        if (e == null) {
            StripeIntent stripeIntent = (StripeIntent) obj2;
            StripeIntent.a nextActionData = stripeIntent.getNextActionData();
            if (nextActionData != null && (nextActionData instanceof StripeIntent.a.j.Use3DS1) && (id = stripeIntent.getId()) != null) {
                map2 = paymentLauncherViewModel2.threeDs1IntentReturnUrlMap;
                if (returnUrl == null) {
                    returnUrl = "";
                }
                map2.put(id, returnUrl);
            }
            if (stripeIntent.p()) {
                PaymentAuthenticator c = paymentLauncherViewModel2.authenticatorRegistry.c(stripeIntent);
                aVar = paymentLauncherViewModel2.apiRequestOptionsProvider;
                Object obj3 = aVar.get();
                r.h(obj3, "get(...)");
                this.L$0 = null;
                this.L$1 = null;
                this.label = 3;
                if (c.d(iVar, stripeIntent, (e.Options) obj3, this) == f) {
                    return f;
                }
            } else {
                coroutineContext2 = paymentLauncherViewModel2.uiContext;
                PaymentLauncherViewModel$confirmStripeIntent$1$1$2 paymentLauncherViewModel$confirmStripeIntent$1$1$2 = new PaymentLauncherViewModel$confirmStripeIntent$1$1$2(paymentLauncherViewModel2, stripeIntent, null);
                this.L$0 = null;
                this.L$1 = null;
                this.label = 2;
                if (BuildersKt.withContext(coroutineContext2, paymentLauncherViewModel$confirmStripeIntent$1$1$2, this) == f) {
                    return f;
                }
            }
        } else {
            coroutineContext = paymentLauncherViewModel2.uiContext;
            PaymentLauncherViewModel$confirmStripeIntent$1$2$1 paymentLauncherViewModel$confirmStripeIntent$1$2$1 = new PaymentLauncherViewModel$confirmStripeIntent$1$2$1(paymentLauncherViewModel2, e, map, null);
            this.L$0 = null;
            this.L$1 = null;
            this.label = 4;
            if (BuildersKt.withContext(coroutineContext, paymentLauncherViewModel$confirmStripeIntent$1$2$1, this) == f) {
                return f;
            }
        }
        return Unit.a;
    }

    @Override
    public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
        return ((PaymentLauncherViewModel$confirmStripeIntent$1) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
    }
}