导航菜单

页面标题

页面副标题

BodyTech v7.6.4 - o.java 源代码

正在查看: BodyTech v7.6.4 应用的 o.java JAVA 源代码文件

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


package com.mindbodyonline.android.api.sales.model.payments;

import androidx.compose.runtime.internal.StabilityInferred;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.mindbodyonline.android.api.sales.model.payments.BillingInfoItem;
import com.mindbodyonline.android.api.sales.model.payments.PaymentMethod;
import com.mindbodyonline.connect.utils.POSPaymentUtils;
import java.math.BigDecimal;
import java.util.List;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.coroutines.Continuation;
import kotlin.jvm.internal.r;
import kotlinx.coroutines.CancellableContinuation;
import kotlinx.coroutines.CancellableContinuationImpl;
import org.koin.core.core.data.remote.k;
import org.koin.core.core.data.remote.model.CreateIdentityUserResponse;
import org.koin.core.model.Client;
import org.koin.core.model.GetClientAccountBalancesResponse;
import qf.j;

@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0007\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0012\u001a\u00020\u0010¢\u0006\u0004\b\u0013\u0010\u0014J!\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00050\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0096@ø\u0001\u0000¢\u0006\u0004\b\u0006\u0010\u0007J\u001b\u0010\u000b\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\bH\u0096@ø\u0001\u0000¢\u0006\u0004\b\u000b\u0010\fJ\u0013\u0010\u000e\u001a\u00020\rH\u0096@ø\u0001\u0000¢\u0006\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0012\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000e\u0010\u0011\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0015"}, d2 = {"Lcom/fitnessmobileapps/fma/core/data/remote/service/o;", "Lcom/fitnessmobileapps/fma/core/data/remote/k;", "", "siteId", "", "Lcom/mindbodyonline/android/api/sales/model/payments/PaymentMethod;", "c", "(ILkotlin/coroutines/Continuation;)Ljava/lang/Object;", "", CreateIdentityUserResponse.ID, "", "b", "(JLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Ljava/math/BigDecimal;", "a", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lqf/j;", "Lqf/j;", "userService", "<init>", "(Lqf/j;)V", "FMA_release"}, k = 1, mv = {1, 8, 0})
public final class o implements k {

    private final j userService;

    @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", "it", "Lcom/android/volley/VolleyError;", "kotlin.jvm.PlatformType", "onErrorResponse"}, k = 3, mv = {1, 8, 0}, xi = com.google.accompanist.themeadapter.material3.a.X)
    static final class a implements Response.ErrorListener {
        final CancellableContinuation<BigDecimal> c;

        a(CancellableContinuation<? super BigDecimal> cancellableContinuation) {
            this.c = cancellableContinuation;
        }

        @Override
        public final void onErrorResponse(VolleyError volleyError) {
            CancellableContinuation<BigDecimal> cancellableContinuation = this.c;
            Result.a aVar = Result.c;
            r.h(volleyError, "it");
            cancellableContinuation.resumeWith(Result.b(kotlin.f.a(volleyError)));
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lcom/fitnessmobileapps/fma/model/GetClientAccountBalancesResponse;", "kotlin.jvm.PlatformType", "it", "", "a", "(Lcom/fitnessmobileapps/fma/model/GetClientAccountBalancesResponse;)V"}, k = 3, mv = {1, 8, 0})
    static final class b<T> implements Response.Listener {
        final CancellableContinuation<BigDecimal> c;

        b(CancellableContinuation<? super BigDecimal> cancellableContinuation) {
            this.c = cancellableContinuation;
        }

        @Override
        public final void onResponse(GetClientAccountBalancesResponse getClientAccountBalancesResponse) {
            Client client;
            Double accountBalance;
            this.c.resumeWith(Result.b(BigDecimal.valueOf((getClientAccountBalancesResponse == null || (client = getClientAccountBalancesResponse.getClient()) == null || (accountBalance = client.getAccountBalance()) == null) ? 0.0d : accountBalance.doubleValue())));
        }
    }

    @Metadata(d1 = {"\u0000\u0014\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042,\u0010\u0003\u001a(\u0012\f\u0012\n \u0002*\u0004\u0018\u00010\u00010\u0001 \u0002*\u0014\u0012\u000e\b\u0001\u0012\n \u0002*\u0004\u0018\u00010\u00010\u0001\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"", "Lcom/mindbodyonline/android/api/sales/model/payments/BillingInfoItem;", "kotlin.jvm.PlatformType", "billingInfoItems", "", "a", "([Lcom/mindbodyonline/android/api/sales/model/payments/BillingInfoItem;)V"}, k = 3, mv = {1, 8, 0})
    static final class c<T> implements Response.Listener {
        final int c;
        final CancellableContinuation<List<? extends PaymentMethod>> d;

        @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lcom/mindbodyonline/android/api/sales/model/payments/PaymentConfiguration;", "kotlin.jvm.PlatformType", "configuration", "", "a", "(Lcom/mindbodyonline/android/api/sales/model/payments/PaymentConfiguration;)V"}, k = 3, mv = {1, 8, 0})
        static final class PaymentConfiguration<T> implements Response.Listener {
            final BillingInfoItem[] c;
            final CancellableContinuation<List<? extends PaymentMethod>> d;

            PaymentConfiguration(BillingInfoItem[] billingInfoItemArr, CancellableContinuation<? super List<? extends PaymentMethod>> cancellableContinuation) {
                this.c = billingInfoItemArr;
                this.d = cancellableContinuation;
            }

            @Override
            public final void onResponse(com.mindbodyonline.android.api.sales.model.payments.PaymentConfiguration paymentConfiguration) {
                paymentConfiguration.assignBillingInfoItemIds(this.c);
                CancellableContinuation<List<? extends PaymentMethod>> cancellableContinuation = this.d;
                Result.a aVar = Result.c;
                cancellableContinuation.resumeWith(Result.b(paymentConfiguration.getPaymentMethods()));
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", "error", "Lcom/android/volley/VolleyError;", "kotlin.jvm.PlatformType", "onErrorResponse"}, k = 3, mv = {1, 8, 0}, xi = com.google.accompanist.themeadapter.material3.a.X)
        static final class b implements Response.ErrorListener {
            final CancellableContinuation<List<? extends PaymentMethod>> c;

            b(CancellableContinuation<? super List<? extends PaymentMethod>> cancellableContinuation) {
                this.c = cancellableContinuation;
            }

            @Override
            public final void onErrorResponse(VolleyError volleyError) {
                CancellableContinuation<List<? extends PaymentMethod>> cancellableContinuation = this.c;
                Result.a aVar = Result.c;
                r.h(volleyError, "error");
                cancellableContinuation.resumeWith(Result.b(kotlin.f.a(volleyError)));
            }
        }

        c(int i, CancellableContinuation<? super List<? extends PaymentMethod>> cancellableContinuation) {
            this.c = i;
            this.d = cancellableContinuation;
        }

        @Override
        public final void onResponse(BillingInfoItem[] billingInfoItemArr) {
            POSPaymentUtils.u(this.c, new PaymentConfiguration(billingInfoItemArr, this.d), new b(this.d));
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", "it", "Lcom/android/volley/VolleyError;", "kotlin.jvm.PlatformType", "onErrorResponse"}, k = 3, mv = {1, 8, 0}, xi = com.google.accompanist.themeadapter.material3.a.X)
    static final class d implements Response.ErrorListener {
        final CancellableContinuation<List<? extends PaymentMethod>> c;

        d(CancellableContinuation<? super List<? extends PaymentMethod>> cancellableContinuation) {
            this.c = cancellableContinuation;
        }

        @Override
        public final void onErrorResponse(VolleyError volleyError) {
            CancellableContinuation<List<? extends PaymentMethod>> cancellableContinuation = this.c;
            Result.a aVar = Result.c;
            r.h(volleyError, "it");
            cancellableContinuation.resumeWith(Result.b(kotlin.f.a(volleyError)));
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Ljava/lang/Void;", "kotlin.jvm.PlatformType", "it", "", "a", "(Ljava/lang/Void;)V"}, k = 3, mv = {1, 8, 0})
    static final class e<T> implements Response.Listener {
        final CancellableContinuation<Boolean> c;

        e(CancellableContinuation<? super Boolean> cancellableContinuation) {
            this.c = cancellableContinuation;
        }

        @Override
        public final void onResponse(Void r22) {
            CancellableContinuation<Boolean> cancellableContinuation = this.c;
            Result.a aVar = Result.c;
            cancellableContinuation.resumeWith(Result.b(Boolean.TRUE));
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", "it", "Lcom/android/volley/VolleyError;", "kotlin.jvm.PlatformType", "onErrorResponse"}, k = 3, mv = {1, 8, 0}, xi = com.google.accompanist.themeadapter.material3.a.X)
    static final class f implements Response.ErrorListener {
        final CancellableContinuation<Boolean> c;

        f(CancellableContinuation<? super Boolean> cancellableContinuation) {
            this.c = cancellableContinuation;
        }

        @Override
        public final void onErrorResponse(VolleyError volleyError) {
            CancellableContinuation<Boolean> cancellableContinuation = this.c;
            Result.a aVar = Result.c;
            r.h(volleyError, "it");
            cancellableContinuation.resumeWith(Result.b(kotlin.f.a(volleyError)));
        }
    }

    public o(j jVar) {
        r.i(jVar, "userService");
        this.userService = jVar;
    }

    @Override
    public Object a(Continuation<? super BigDecimal> continuation) {
        CancellableContinuationImpl cancellableContinuationImpl = new CancellableContinuationImpl(kotlin.coroutines.intrinsics.a.d(continuation), 1);
        cancellableContinuationImpl.initCancellability();
        new n6.f(new a(cancellableContinuationImpl), new b(cancellableContinuationImpl)).i();
        Object result = cancellableContinuationImpl.getResult();
        if (result == kotlin.coroutines.intrinsics.a.f()) {
            kotlin.coroutines.jvm.internal.e.c(continuation);
        }
        return result;
    }

    @Override
    public Object b(long j7, Continuation<? super Boolean> continuation) {
        CancellableContinuationImpl cancellableContinuationImpl = new CancellableContinuationImpl(kotlin.coroutines.intrinsics.a.d(continuation), 1);
        cancellableContinuationImpl.initCancellability();
        this.userService.k(j7, new e(cancellableContinuationImpl), new f(cancellableContinuationImpl));
        Object result = cancellableContinuationImpl.getResult();
        if (result == kotlin.coroutines.intrinsics.a.f()) {
            kotlin.coroutines.jvm.internal.e.c(continuation);
        }
        return result;
    }

    @Override
    public Object c(int i, Continuation<? super List<? extends PaymentMethod>> continuation) {
        CancellableContinuationImpl cancellableContinuationImpl = new CancellableContinuationImpl(kotlin.coroutines.intrinsics.a.d(continuation), 1);
        cancellableContinuationImpl.initCancellability();
        this.userService.c(new c(i, cancellableContinuationImpl), new d(cancellableContinuationImpl));
        Object result = cancellableContinuationImpl.getResult();
        if (result == kotlin.coroutines.intrinsics.a.f()) {
            kotlin.coroutines.jvm.internal.e.c(continuation);
        }
        return result;
    }
}