正在查看: klikUMKM v2.0.1 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: klikUMKM v2.0.1 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.yx.credit.indonesia.ui.withdraw;
import androidx.lifecycle.i0;
import com.yx.credit.base.entity.NetResponse;
import com.yx.credit.indonesia.http.entity.ApplyTrial;
import java.util.Map;
import kotlin.Pair;
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 k extends ub.i implements Function2 {
final long $amount;
final long $couponId;
final Function1<ApplyTrial, Unit> $function;
final boolean $isShow;
final int $loanTerm;
final String $productCode;
Object L$0;
int label;
final o this$0;
public static final class a extends ub.i implements Function2 {
final long $amount;
final long $couponId;
final int $loanTerm;
final String $productCode;
final Ref.ObjectRef<NetResponse<ApplyTrial>> $response;
Object L$0;
int label;
public a(Ref.ObjectRef<NetResponse<ApplyTrial>> objectRef, long j7, String str, int i10, long j9, tb.a aVar) {
super(2, aVar);
this.$response = objectRef;
this.$amount = j7;
this.$productCode = str;
this.$loanTerm = i10;
this.$couponId = j9;
}
@Override
public final tb.a create(Object obj, tb.a aVar) {
return new a(this.$response, this.$amount, this.$productCode, this.$loanTerm, this.$couponId, aVar);
}
@Override
public final Object invokeSuspend(Object obj) {
Ref.ObjectRef<NetResponse<ApplyTrial>> 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<ApplyTrial>> objectRef2 = this.$response;
com.yx.credit.base.net.g gVar = com.yx.credit.base.net.g.a;
Map e10 = q0.e(new Pair("jumlah", new Long(this.$amount)), new Pair("kodeProduk", this.$productCode), new Pair("hari", new Integer(this.$loanTerm)), new Pair("jenisAkun", new Integer(2)), new Pair("couponId", new Long(this.$couponId)));
this.L$0 = objectRef2;
this.label = 1;
Object a = gVar.a("https://api.klikumkm.co.id/api/indo/apply/trial", e10, ApplyTrial.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 k(boolean z10, o oVar, long j7, String str, int i10, long j9, Function1<? super ApplyTrial, Unit> function1, tb.a aVar) {
super(2, aVar);
this.$isShow = z10;
this.this$0 = oVar;
this.$amount = j7;
this.$productCode = str;
this.$loanTerm = i10;
this.$couponId = j9;
this.$function = function1;
}
@Override
public final tb.a create(Object obj, tb.a aVar) {
return new k(this.$isShow, this.this$0, this.$amount, this.$productCode, this.$loanTerm, this.$couponId, this.$function, aVar);
}
@Override
public final Object invokeSuspend(Object obj) {
Ref.ObjectRef objectRef;
ApplyTrial applyTrial;
kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
int i10 = this.label;
if (i10 == 0) {
r.b(obj);
if (this.$isShow) {
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, this.$amount, this.$productCode, this.$loanTerm, this.$couponId, 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() && (applyTrial = (ApplyTrial) ((NetResponse) objectRef.element).getData()) != null) {
this.$function.invoke(applyTrial);
}
i0 i0Var = this.this$0.f7626b;
if (i0Var != null) {
i0Var.postValue(Boolean.FALSE);
}
return Unit.a;
}
@Override
public final Object invoke(b0 b0Var, tb.a aVar) {
return ((k) create(b0Var, aVar)).invokeSuspend(Unit.a);
}
}