正在查看: Tuna Cash v1.0.0 应用的 LiLlLil.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tuna Cash v1.0.0 应用的 LiLlLil.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.efectivo.presto.credi.tuna.presentation.ui.screens.confirm;
import androidx.coroutines.SavedStateHandle;
import androidx.coroutines.ViewModelKt;
import coil.coroutines.DiskLruCache;
import com.efectivo.presto.credi.tuna.presentation.ui.components.liIiIl;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.TreeMap;
import java.util.concurrent.CancellationException;
import kotlin.Pair;
import kotlin.collections.CollectionsKt;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.flow.lLiiLL;
import kotlinx.coroutines.lliLiIL;
import llLil.IlIlliI;
public final class LiLlLil extends com.efectivo.presto.credi.tuna.presentation.mvi.LIili {
public lliLiIL LlLiILL;
public IIiLIIl.lLlili LlLlL;
public boolean LllLii;
public boolean iliilLi;
public final IiLlIiI.LllLii lIiiLli = IiLlIiI.IiLIL.lIliL(new com.efectivo.presto.credi.tuna.presentation.ui.screens.authentication.LIili(27));
public String LILli = "";
public String iilIL = "";
public String IiILLi = "";
public static final void IILlL(LiLlLil liLlLil) {
liLlLil.getClass();
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "onCountdownFinished");
lliLiIL lliliil = liLlLil.LlLiILL;
if (lliliil != null) {
lliliil.cancel((CancellationException) null);
}
liLlLil.LlLiILL = null;
liLlLil.lIIiL(new com.efectivo.presto.credi.tuna.presentation.ui.screens.authentication.iliilLi(27));
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "onCountdownFinished - setState showCountdown to false");
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "saveCountdownEnded");
kotlinx.coroutines.liIiIiI.IiLIL(ViewModelKt.getViewModelScope(liLlLil), (CoroutineContext) null, 0, new lliII(liLlLil, null), 3);
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "onCountdownFinished");
}
public static int iilIL(String str, List list) {
Double iliLLil;
LliILl.LLiIl.llLii("ConfirmLoanViewModel", "percentageAccessToCalculatedCredits quotaSize:" + (list != null ? Integer.valueOf(list.size()) : null) + "; proportion:" + str);
if (list == null || list.isEmpty() || list.size() <= 1) {
return -1;
}
double d = 0.7d;
double doubleValue = (str == null || (iliLLil = kotlin.text.lIiiLli.iliLLil(str)) == null) ? 0.7d : iliLLil.doubleValue();
if (doubleValue > 0.0d && doubleValue <= 1.0d) {
d = doubleValue;
}
Double iliLLil2 = kotlin.text.lIiiLli.iliLLil((String) CollectionsKt.liIiIiI(list));
if (iliLLil2 == null) {
return -1;
}
double doubleValue2 = iliLLil2.doubleValue() * d;
Iterator it = list.iterator();
int i = 0;
while (it.hasNext()) {
Double iliLLil3 = kotlin.text.lIiiLli.iliLLil((String) it.next());
if (iliLLil3 != null && iliLLil3.doubleValue() >= doubleValue2) {
return i;
}
i++;
}
return -1;
}
@Override
public final com.efectivo.presto.credi.tuna.presentation.mvi.lLLIiI IiLIL() {
return new iliilLi(null, -1, 7);
}
public final void LILli(final int i, final List list) {
String str;
LliILl.LLiIl.llLii("ConfirmLoanViewModel", "initQuotaView quotaList:" + list + " -- defaultQuotaIndex:" + i);
if (list.isEmpty()) {
lIIiL(new com.efectivo.presto.credi.tuna.presentation.ui.dialog.liILil(list, 3));
} else {
final String str2 = (i == -1 || (str = (String) CollectionsKt.lIlilI(i, list)) == null) ? (String) CollectionsKt.liIiIiI(list) : str;
final int size = list.size() == 1 ? 1 : list.size() - 1;
final int size2 = i == 1 ? 1 : i != -1 ? i : list.size() - 1;
final boolean z = list.size() > 1;
lIIiL(new Function1() {
public final Object invoke(Object obj) {
String str3 = str2;
int i2 = i;
int i3 = size2;
boolean z2 = z;
int i4 = size;
iliilLi iliilli = (iliilLi) obj;
Intrinsics.checkNotNullParameter(iliilli, "$this$setState");
String iiIiLl = LiLlLil.this.iiIiLl(str3);
List list2 = list;
return iliilLi.lLILIl(iliilli, null, false, null, false, null, null, null, 0, null, null, list2, i2, i3, true, z2, i3, i4, str3, iiIiLl, (String) CollectionsKt.LLLIl(list2), (String) CollectionsKt.liIiIiI(list2), null, null, null, null, null, null, null, false, null, null, false, -4192257, 7);
}
});
LllLii();
}
this.IiILLi = ((iliilLi) this.IiLIL.lLlii.getValue()).IILlL;
}
public final void LlLiILL() {
com.efectivo.presto.credi.tuna.presentation.mvi.LIili.llLii(this, "ConfirmLoanViewModel", true, new llIliIi(this, null), new liiiLI(this, null), new liliii(2, null), 72);
}
public final void LlLlL(String str) {
iLllL.LLiIl.iliLi(kotlin.collections.LLLli.IILii(new Pair[]{new Pair("biz_id", ((iliilLi) this.IiLIL.lLlii.getValue()).iIliII)}), "tc_confirmation", str);
}
public final void LllLii() {
String str;
LliILl.LLiIl.llLii("ConfirmLoanViewModel", "conductProductRateTrail");
kotlinx.coroutines.flow.LlIiIL llIiIL = this.IiLIL;
String str2 = ((iliilLi) llIiIL.lLlii.getValue()).IILlL;
IIiLIIl.lLLIiI llliii = ((iliilLi) llIiIL.lLlii.getValue()).LILlLi;
if (llliii == null || (str = llliii.getDid()) == null) {
str = "";
}
List list = ((iliilLi) llIiIL.lLlii.getValue()).LILli;
if (str2.length() == 0 || str.length() == 0) {
liLILi(new iiIiiI("please_select_product_and_amount"));
return;
}
TreeMap treeMap = new TreeMap();
treeMap.put("did", str);
treeMap.put("loanAmount", str2);
if (!list.isEmpty()) {
treeMap.put("couponIds", list);
}
com.efectivo.presto.credi.tuna.presentation.mvi.LIili.llLii(this, "ConfirmLoanViewModel", true, new ILIiLiI(this, treeMap, null), new iLLIII(this, null), new lllIIl(this, null), 72);
}
public final String iiIiLl(String str) {
int i = ((iliilLi) this.IiLIL.lLlii.getValue()).LllLii;
if (i == 0) {
return str;
}
Double iliLLil = kotlin.text.lIiiLli.iliLLil(str);
return String.valueOf((iliLLil != null ? (int) iliLLil.doubleValue() : 0) + i);
}
public final void iliilLi() {
com.efectivo.presto.credi.tuna.presentation.mvi.LIili.llLii(this, "ConfirmLoanViewModel", true, new lLLLLL(this, ((iliilLi) this.IiLIL.lLlii.getValue()).lllIill, null), new LlIiIL(this, null), new LIIIIiL(2, null), 72);
}
public final void lIiiLli() {
List<String> loanQuotaList;
String limitInterval;
Double iliLLil;
String limitMax;
Double iliLLil2;
String limitMin;
Double iliLLil3;
LliILl.LLiIl.llLii("ConfirmLoanViewModel", "calculatingProductLimits start...");
kotlinx.coroutines.flow.LlIiIL llIiIL = this.IiLIL;
List list = ((iliilLi) llIiIL.lLlii.getValue()).IILii;
int i = ((iliilLi) llIiIL.lLlii.getValue()).iiIiiI;
IIiLIIl.lLLIiI llliii = (IIiLIIl.lLLIiI) CollectionsKt.lIlilI(i, list);
if (i > list.size() - 1) {
return;
}
List loanQuotaList2 = ((IIiLIIl.lLLIiI) list.get(i)).getLoanQuotaList();
if (!loanQuotaList2.isEmpty()) {
LILli(iilIL(llliii != null ? llliii.getGrantcreditRatio() : null, loanQuotaList2), loanQuotaList2);
return;
}
int i2 = 0;
int doubleValue = (llliii == null || (limitMin = llliii.getLimitMin()) == null || (iliLLil3 = kotlin.text.lIiiLli.iliLLil(limitMin)) == null) ? 0 : (int) iliLLil3.doubleValue();
int doubleValue2 = (llliii == null || (limitMax = llliii.getLimitMax()) == null || (iliLLil2 = kotlin.text.lIiiLli.iliLLil(limitMax)) == null) ? 0 : (int) iliLLil2.doubleValue();
if (llliii != null && (limitInterval = llliii.getLimitInterval()) != null && (iliLLil = kotlin.text.lIiiLli.iliLLil(limitInterval)) != null) {
i2 = (int) iliLLil.doubleValue();
}
StringBuilder iiIiiI = IiLIi.ilLll.iiIiiI("configureProductQuota start calculate limitMin:", doubleValue, " -- limitMax:", doubleValue2, " -- loanStep:");
iiIiiI.append(i2);
LliILl.LLiIl.llLii("ConfirmLoanViewModel", iiIiiI.toString());
ArrayList arrayList = new ArrayList();
if (doubleValue == 0 || doubleValue2 == 0 || i2 == 0) {
LILli(-1, arrayList);
return;
}
arrayList.add(String.valueOf(doubleValue));
if (doubleValue != doubleValue2) {
int i3 = doubleValue / i2;
int i4 = doubleValue * i3 >= 1 ? (i3 + 1) * i2 : i2;
if (i2 <= 0) {
throw new IllegalArgumentException(LlLlL.IILlL.lLILl("Step must be positive, was: ", i2, "."));
}
int IiLIL = IIllI.llLii.IiLIL(i4, doubleValue2, i2);
if (i4 <= IiLIL) {
while (true) {
arrayList.add(String.valueOf(i4));
if (i4 == IiLIL) {
break;
} else {
i4 += i2;
}
}
}
if (doubleValue2 % i2 != 0) {
arrayList.add(String.valueOf(doubleValue2));
}
}
IIiLIIl.lLLIiI llliii2 = (IIiLIIl.lLLIiI) list.get(i);
if (llliii2 != null && (loanQuotaList = llliii2.getLoanQuotaList()) != null) {
loanQuotaList.addAll(arrayList);
}
LILli(iilIL(llliii != null ? llliii.getGrantcreditRatio() : null, arrayList), arrayList);
}
@Override
public final void onCleared() {
super.onCleared();
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "onCleared");
lliLiIL lliliil = this.LlLiILL;
if (lliliil != null) {
lliliil.cancel((CancellationException) null);
}
}
@Override
public final void processIntent(com.efectivo.presto.credi.tuna.presentation.mvi.IILliLL iILliLL) {
String str;
String creditEnhancementAmount;
String grantcreditAmount;
String productName;
Integer productType;
String num;
String did;
String pid;
String str2;
Long applyTime;
String str3;
IIiLIIl.iilIlI iilili;
String str4;
final LlLlL llLlL = (LlLlL) iILliLL;
Intrinsics.checkNotNullParameter(llLlL, "intent");
boolean z = llLlL instanceof iiILI;
kotlinx.coroutines.flow.LlIiIL llIiIL = this.IiLIL;
str = "";
if (z) {
TreeMap llLii = IlIlliI.llLii();
IIiLIIl.LLiIl lIliL = com.efectivo.presto.credi.tuna.LLiIl.lIliL();
if (lIliL == null || (str3 = lIliL.getAPP_CONTRACT_TEMPLATE_NEW()) == null) {
str3 = "";
}
boolean z2 = this.LllLii;
IiLlIiI.LllLii lllLii = this.lIiiLli;
if (z2) {
str3 = ((IIiLIIl.iIILLL) lllLii.getValue()).getContractTemplateCode();
}
llLii.put("agreementName", str3);
llLii.put("loanAmount", ((iliilLi) llIiIL.lLlii.getValue()).IILlL);
if (this.LllLii) {
IIiLIIl.iilLli LLiIl = com.efectivo.presto.credi.tuna.business.lIliL.LLiIl();
iilili = new IIiLIIl.iilIlI(null, LLiIl.getUserNo(), LLiIl.getMid(), ((IIiLIIl.iIILLL) lllLii.getValue()).getAppName(), null, null, ((IIiLIIl.iIILLL) lllLii.getValue()).getClientId(), 49, null);
} else {
iilili = new IIiLIIl.iilIlI(null, com.efectivo.presto.credi.tuna.LLiIl.IiLlI(), com.efectivo.presto.credi.tuna.LLiIl.LLiIl(), "Tuna Cash", null, null, "38cb07f1-21ce-47ed-b552-384381fbaa92", 49, null);
}
llLii.put("applyTime", Long.valueOf(System.currentTimeMillis()));
IIiLIIl.lLLIiI llliii = ((iliilLi) llIiIL.lLlii.getValue()).LILlLi;
if (llliii == null || (str4 = llliii.getDid()) == null) {
str4 = "";
}
llLii.put("did", str4);
String mid = iilili.getMid();
if (mid == null) {
mid = "";
}
llLii.put("mid", mid);
llLii.put("riskGrade", this.iilIL);
String userNo = iilili.getUserNo();
if (userNo == null) {
userNo = "";
}
llLii.put("userNo", userNo);
String appName = iilili.getAppName();
if (appName == null) {
appName = "";
}
llLii.put("appName", appName);
llLii.put("bizId", this.LILli);
String clientId = iilili.getClientId();
llLii.put("clientId", clientId != null ? clientId : "");
liLILi(new IiLlI(IlIlliI.iilIL("https://loansapp.tunacash.com/api/getProtocol", llLii), iiIiiI(com.efectivo.presto.credi.tuna.iiILI.loan_order_contact)));
return;
}
final int i = 0;
final int i2 = 2;
final int i3 = 1;
if (llLlL instanceof lLILl) {
lLILl llill = (lLILl) llLlL;
String str5 = llill.lLILIl;
StringBuilder LLiIl2 = iliLi.lllIIl.LLiIl("initializeWithParams orderDataJson: ", str5, ", apiProductApply: ");
boolean z3 = llill.lIliL;
LLiIl2.append(z3);
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", LLiIl2.toString());
if (this.iliilLi) {
LliILl.LLiIl.llLii("ConfirmLoanViewModel", "initData already initialized, skipping");
return;
}
this.iliilLi = true;
IIiLIIl.lLlili lllili = (IIiLIIl.lLlili) com.efectivo.presto.credi.tuna.utils.lIiiLli.IILii(IIiLIIl.lLlili.class, str5);
if (lllili == null) {
LliILl.LLiIl.lIliL("ConfirmLoanViewModel", "initData orderDataBean is null");
return;
}
this.LllLii = z3;
this.LlLlL = lllili;
String bizId = lllili.getBizId();
this.LILli = bizId != null ? bizId : "";
IIiLIIl.lLlili lllili2 = this.LlLlL;
if (lllili2 == null || (str2 = lllili2.getRiskLevel()) == null) {
str2 = "default";
}
this.iilIL = str2;
lIIiL(new IliilL.iiILI(z3, i2));
IIiLIIl.lLlili lllili3 = this.LlLlL;
if (lllili3 != null && (applyTime = lllili3.getApplyTime()) != null) {
long longValue = applyTime.longValue();
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "checkCountdownStatus: " + longValue);
lliLiIL lliliil = this.LlLiILL;
if (lliliil != null) {
lliliil.cancel((CancellationException) null);
}
this.LlLiILL = kotlinx.coroutines.liIiIiI.IiLIL(ViewModelKt.getViewModelScope(this), (CoroutineContext) null, 0, new IiilIli(longValue, this, null), 3);
}
LlLiILL();
iliilLi();
return;
}
if (llLlL instanceof IILlL) {
IILlL iILlL = (IILlL) llLlL;
int i4 = iILlL.lLILIl;
List list = ((iliilLi) llIiIL.lLlii.getValue()).IILii;
if (i4 >= 0 && i4 < list.size()) {
lIIiL(new LLLliL(i4, list));
lIiiLli();
}
LlLlL("terms");
Pair[] pairArr = new Pair[2];
lLiiLL lliill = llIiIL.lLlii;
pairArr[0] = new Pair("tc_isReloan", ((iliilLi) lliill.getValue()).lllIill ? "tc_reloan" : "tc_loan");
IIiLIIl.lLLIiI llliii2 = (IIiLIIl.lLLIiI) CollectionsKt.lIlilI(iILlL.lLILIl, ((iliilLi) lliill.getValue()).IILii);
if (llliii2 != null && (pid = llliii2.getPid()) != null) {
str = pid;
}
pairArr[1] = new Pair("tc_productId", str);
iLllL.LLiIl.iIliII("tc_apply_confirmloan_term_ck", kotlin.collections.LLLli.IILii(pairArr), 4);
return;
}
if (llLlL instanceof liLILi) {
int i5 = ((liLILi) llLlL).lLILIl;
Object obj = (String) CollectionsKt.lIlilI(i5, ((iliilLi) llIiIL.lLlii.getValue()).IiLIL);
if (obj == null) {
obj = 0;
}
String obj2 = obj.toString();
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "seekQuota: " + i5 + ", amount: " + obj2);
lIIiL(new liIiIl(19, obj2, this));
return;
}
if (llLlL instanceof LLILli) {
int i6 = ((LLILli) llLlL).lLILIl;
List list2 = ((iliilLi) llIiIL.lLlii.getValue()).IiLlI;
if (i6 < 0 || i6 >= list2.size()) {
return;
}
lIIiL(new com.efectivo.presto.credi.tuna.llLii((IIiLIIl.liILil) list2.get(i6), 13));
return;
}
if (llLlL instanceof iiIiLl) {
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "toBindBankCardPage");
liLILi(new llLii(this.LllLii));
return;
}
if (llLlL instanceof IiLIL) {
IiLIL iiLIL = (IiLIL) llLlL;
if (!iiLIL.lLILIl) {
liLILi(new iiIiiI("Por favor, lee y acepta Contrato de préstamo los antes de contunuar."));
return;
}
String str6 = iiLIL.lIliL;
if (str6.length() == 0 || Intrinsics.lIliL(str6, "Seleccionar")) {
liLILi(new iiIiiI("Por favor, elija el uso del préstamo"));
return;
}
if (((iliilLi) llIiIL.lLlii.getValue()).IiILLi.length() != 0) {
lLiiLL lliill2 = llIiIL.lLlii;
if (((iliilLi) lliill2.getValue()).liIiI.length() != 0) {
Pair[] pairArr2 = new Pair[1];
pairArr2[0] = new Pair("tc_isReloan", ((iliilLi) lliill2.getValue()).lllIill ? "tc_reloan" : "tc_loan");
iLllL.LLiIl.iIliII("tc_apply_confirmloan_submit_ck", kotlin.collections.LLLli.IILii(pairArr2), 4);
IIiLIIl.lLLIiI llliii3 = ((iliilLi) lliill2.getValue()).LILlLi;
IIiLIIl.IlllI illlI = new IIiLIIl.IlllI(((iliilLi) lliill2.getValue()).IILlL, (llliii3 == null || (did = llliii3.getDid()) == null) ? "" : did, (llliii3 == null || (productName = llliii3.getProductName()) == null) ? "" : productName, (llliii3 == null || (productType = llliii3.getProductType()) == null || (num = productType.toString()) == null) ? "" : num, (llliii3 == null || (grantcreditAmount = llliii3.getGrantcreditAmount()) == null) ? "" : grantcreditAmount, this.LILli, str6, this.iilIL, ((iliilLi) lliill2.getValue()).IiILLi, ((iliilLi) lliill2.getValue()).liIiI, ((iliilLi) lliill2.getValue()).LlLiILL, null, null, (llliii3 == null || (creditEnhancementAmount = llliii3.getCreditEnhancementAmount()) == null) ? "" : creditEnhancementAmount, 6144, null);
if (!((iliilLi) lliill2.getValue()).LILli.isEmpty()) {
illlI.setCouponIds(((iliilLi) lliill2.getValue()).LILli);
}
illlI.setApi_product_apply(this.LllLii ? "true" : "");
com.efectivo.presto.credi.tuna.presentation.mvi.LIili.llLii(this, "ConfirmLoanViewModel", true, new ilIll(this, illlI, null), new LliILi(this, null), new lLlLiIL(this, null), 72);
return;
}
}
liLILi(new iiIiiI("Agregue una cuenta receptora"));
return;
}
if (llLlL instanceof lIiiLli) {
lIIiL(new Function1() {
public final Object invoke(Object obj3) {
int i7 = i;
LlLlL llLlL2 = llLlL;
switch (i7) {
case 0:
iliilLi iliilli = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli, "$this$setState");
return iliilLi.lLILIl(iliilli, null, false, ((lIiiLli) llLlL2).lLILIl, false, null, null, null, 0, null, null, null, 0, 0, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -5, 7);
case 1:
iliilLi iliilli2 = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli2, "$this$setState");
return iliilLi.lLILIl(iliilli2, null, false, null, ((LllLii) llLlL2).lLILIl, null, null, null, 0, null, null, null, 0, 0, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -9, 7);
default:
iliilLi iliilli3 = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli3, "$this$setState");
return iliilLi.lLILIl(iliilli3, null, false, null, false, null, null, null, 0, null, null, null, 0, ((LILli) llLlL2).lLILIl, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -8193, 7);
}
}
});
LlLlL("purpose");
return;
}
if (llLlL instanceof LllLii) {
lIIiL(new Function1() {
public final Object invoke(Object obj3) {
int i7 = i3;
LlLlL llLlL2 = llLlL;
switch (i7) {
case 0:
iliilLi iliilli = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli, "$this$setState");
return iliilLi.lLILIl(iliilli, null, false, ((lIiiLli) llLlL2).lLILIl, false, null, null, null, 0, null, null, null, 0, 0, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -5, 7);
case 1:
iliilLi iliilli2 = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli2, "$this$setState");
return iliilLi.lLILIl(iliilli2, null, false, null, ((LllLii) llLlL2).lLILIl, null, null, null, 0, null, null, null, 0, 0, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -9, 7);
default:
iliilLi iliilli3 = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli3, "$this$setState");
return iliilLi.lLILIl(iliilli3, null, false, null, false, null, null, null, 0, null, null, null, 0, ((LILli) llLlL2).lLILIl, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -8193, 7);
}
}
});
return;
}
if (llLlL instanceof LILli) {
lIIiL(new Function1() {
public final Object invoke(Object obj3) {
int i7 = i2;
LlLlL llLlL2 = llLlL;
switch (i7) {
case 0:
iliilLi iliilli = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli, "$this$setState");
return iliilLi.lLILIl(iliilli, null, false, ((lIiiLli) llLlL2).lLILIl, false, null, null, null, 0, null, null, null, 0, 0, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -5, 7);
case 1:
iliilLi iliilli2 = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli2, "$this$setState");
return iliilLi.lLILIl(iliilli2, null, false, null, ((LllLii) llLlL2).lLILIl, null, null, null, 0, null, null, null, 0, 0, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -9, 7);
default:
iliilLi iliilli3 = (iliilLi) obj3;
Intrinsics.checkNotNullParameter(iliilli3, "$this$setState");
return iliilLi.lLILIl(iliilli3, null, false, null, false, null, null, null, 0, null, null, null, 0, ((LILli) llLlL2).lLILIl, false, false, 0, 0, null, null, null, null, null, null, null, null, null, null, null, false, null, null, false, -8193, 7);
}
}
});
return;
}
if (llLlL instanceof ILLiI) {
SavedStateHandle savedStateHandle = ((ILLiI) llLlL).lLILIl;
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "processBindBankCardResult");
IiLlIiI.LILlLi lILlLi = com.efectivo.presto.credi.tuna.utils.iilLIL.lLILIl;
Boolean bool = (Boolean) com.efectivo.presto.credi.tuna.utils.iilLIL.iliLLil(DiskLruCache.VERSION, Boolean.TYPE, savedStateHandle);
if (bool != null) {
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "processBindBankCardResult result: " + bool);
if (bool.booleanValue()) {
LlLiILL();
}
com.efectivo.presto.credi.tuna.utils.iilLIL.lIliL(savedStateHandle, DiskLruCache.VERSION);
return;
}
return;
}
if (!(llLlL instanceof lIIiL)) {
throw new IiLlIiI.iiILI();
}
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "processSeekBarStop");
LllLii();
TreeMap treeMap = new TreeMap();
String str7 = ((iliilLi) llIiIL.lLlii.getValue()).IILlL;
treeMap.put("new_amount", str7);
treeMap.put("old_amount", this.IiILLi);
Double iliLLil = kotlin.text.lIiiLli.iliLLil(this.IiILLi);
Double iliLLil2 = kotlin.text.lIiiLli.iliLLil(str7);
if (iliLLil == null || iliLLil2 == null) {
iLllL.LLiIl.iIliII("format_loan_amount_exception", treeMap, 4);
LliILl.LLiIl.lIliL("ConfirmLoanViewModel", "oldAmountDouble is null or newMoney is null");
} else if (iliLLil.doubleValue() > iliLLil2.doubleValue()) {
LlLlL("minus");
iLllL.LLiIl.iIliII("tc_apply_confirmloan_amount_reduce", treeMap, 4);
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "onProgressChangeFinished is reduce: oldAmount=" + iliLLil + ", newMoney=" + iliLLil2);
} else {
LlLlL("plus");
iLllL.LLiIl.iIliII("tc_apply_confirmloan_amount_add", treeMap, 4);
LliILl.LLiIl.lLILIl("ConfirmLoanViewModel", "onProgressChangeFinished is add: oldAmount=" + iliLLil + ", newMoney=" + iliLLil2);
}
this.IiILLi = str7;
}
}