导航菜单

页面标题

页面副标题

klikUMKM v2.0.1 - g.java 源代码

正在查看: klikUMKM v2.0.1 应用的 g.java JAVA 源代码文件

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


package com.yx.credit.indonesia.ui.withdraw;

import com.yx.credit.base.entity.NetResponse;
import com.yx.credit.indonesia.http.entity.ApplyElements;
import java.util.Map;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Ref;
import kotlinx.coroutines.b0;
import kotlinx.coroutines.f0;
import pb.r;
import qb.q0;

public final class g extends ub.i implements Function2 {
    final Function1<ApplyElements, Unit> $function;
    Object L$0;
    int label;
    final o this$0;

    public static final class a extends ub.i implements Function2 {
        final Ref.ObjectRef<NetResponse<ApplyElements>> $response;
        Object L$0;
        int label;

        public a(Ref.ObjectRef<NetResponse<ApplyElements>> objectRef, tb.a aVar) {
            super(2, aVar);
            this.$response = objectRef;
        }

        @Override
        public final tb.a create(Object obj, tb.a aVar) {
            return new a(this.$response, aVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Ref.ObjectRef<NetResponse<ApplyElements>> objectRef;
            T t9;
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i10 = this.label;
            if (i10 == 0) {
                r.b(obj);
                Ref.ObjectRef<NetResponse<ApplyElements>> objectRef2 = this.$response;
                com.yx.credit.base.net.g gVar = com.yx.credit.base.net.g.a;
                Map c5 = q0.c();
                this.L$0 = objectRef2;
                this.label = 1;
                Object a = gVar.a("https://api.klikumkm.co.id/api/indo/apply/elements", c5, ApplyElements.class, true, this);
                if (a == aVar) {
                    return aVar;
                }
                objectRef = objectRef2;
                t9 = a;
            } else {
                if (i10 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                objectRef = (Ref.ObjectRef) this.L$0;
                r.b(obj);
                t9 = obj;
            }
            objectRef.element = t9;
            return Unit.a;
        }

        @Override
        public final Object invoke(b0 b0Var, tb.a aVar) {
            return ((a) create(b0Var, aVar)).invokeSuspend(Unit.a);
        }
    }

    public g(o oVar, Function1<? super ApplyElements, Unit> function1, tb.a aVar) {
        super(2, aVar);
        this.this$0 = oVar;
        this.$function = function1;
    }

    @Override
    public final tb.a create(Object obj, tb.a aVar) {
        return new g(this.this$0, this.$function, aVar);
    }

    @Override
    public final Object invokeSuspend(Object obj) {
        Ref.ObjectRef objectRef;
        kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        int i10 = this.label;
        if (i10 == 0) {
            r.b(obj);
            this.this$0.f7626b.postValue(Boolean.TRUE);
            Ref.ObjectRef objectRef2 = new Ref.ObjectRef();
            mc.e eVar = kotlinx.coroutines.q0.f9859c;
            a aVar2 = new a(objectRef2, null);
            this.L$0 = objectRef2;
            this.label = 1;
            if (f0.t(eVar, aVar2, this) == aVar) {
                return aVar;
            }
            objectRef = objectRef2;
        } else {
            if (i10 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            objectRef = (Ref.ObjectRef) this.L$0;
            r.b(obj);
        }
        if (!((NetResponse) objectRef.element).isSuccess()) {
            this.this$0.f7626b.postValue(Boolean.FALSE);
        }
        this.$function.invoke(((NetResponse) objectRef.element).getData());
        return Unit.a;
    }

    @Override
    public final Object invoke(b0 b0Var, tb.a aVar) {
        return ((g) create(b0Var, aVar)).invokeSuspend(Unit.a);
    }
}