正在查看: CashVia v1.6.02 应用的 C0790e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CashVia v1.6.02 应用的 C0790e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package z2;
import A2.C0028c;
import D2.P;
import V2.C0085e0;
import V2.G;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.text.SpannableStringBuilder;
import android.text.method.LinkMovementMethod;
import android.text.style.ForegroundColorSpan;
import android.view.View;
import androidx.lifecycle.ViewModelKt;
import com.blankj.utilcode.util.AbstractC0203c;
import com.cashvia.prestamos.R;
import com.sensorsdata.analytics.android.sdk.data.adapter.DbParams;
import com.xy.credyclub.base.XYBaseCenterDialog;
import com.xy.credyclub.databinding.FragmentQuotaBinding;
import com.xy.credyclub.dialog.ConfirmVerticalDialog;
import com.xy.credyclub.repository.response.LoanApplyResp;
import com.xy.credyclub.view.HomeFragment;
import com.xy.credyclub.view.WebActivity;
import com.xy.credyclub.view.home.QuotaFragment;
import com.xy.credyclub.view.product.ProductDetailActivity;
import com.xy.credyclub.vm.HomeViewModel;
import com.xy.credyclub.vm.QuotaViewModel;
import java.util.HashMap;
import java.util.List;
import kotlin.Triple;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.text.StringsKt;
import p2.B;
import q2.AbstractC0620d;
import u2.A;
import u2.x;
public final class C0790e extends Lambda implements Function1 {
public final int f9018a;
public final QuotaFragment f9019b;
public C0790e(QuotaFragment quotaFragment, int i4) {
super(1);
this.f9018a = i4;
this.f9019b = quotaFragment;
}
@Override
public final Object invoke(Object obj) {
String loanApplyNo;
Integer paidCnt;
ConfirmVerticalDialog confirmVerticalDialog;
SpannableStringBuilder spannableStringBuilder;
C0085e0 c0085e0 = C0085e0.f1732a;
int i4 = 0;
FragmentQuotaBinding fragmentQuotaBinding = null;
FragmentQuotaBinding fragmentQuotaBinding2 = null;
HomeFragment homeFragment = null;
FragmentQuotaBinding fragmentQuotaBinding3 = null;
FragmentQuotaBinding fragmentQuotaBinding4 = null;
QuotaFragment quotaFragment = this.f9019b;
switch (this.f9018a) {
case 0:
if (((Boolean) obj).booleanValue()) {
LoanApplyResp loanApplyResp = quotaFragment.i().f5449e;
String loanApplyOrderNo = loanApplyResp != null ? loanApplyResp.getLoanApplyOrderNo() : null;
Intrinsics.checkNotNullParameter("CLIK_APPLYORDER", "eventName");
String valueOf = String.valueOf(System.currentTimeMillis());
String d4 = AbstractC0620d.d();
r2.i event = new r2.i(valueOf, d4 == null ? "" : d4, "", DbParams.GZIP_DATA_EVENT, "CLIK_APPLYORDER", loanApplyOrderNo, null, 448);
Intrinsics.checkNotNullParameter(event, "event");
kotlin.collections.a.q(event, null, c0085e0, null, 3);
x.n(x.f8229a, "516", "09", null, 12);
FragmentQuotaBinding fragmentQuotaBinding5 = quotaFragment.f5245e;
if (fragmentQuotaBinding5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
fragmentQuotaBinding = fragmentQuotaBinding5;
}
fragmentQuotaBinding.f4977d.setEnabled(false);
LoanApplyResp loanApplyResp2 = quotaFragment.i().f5449e;
if (loanApplyResp2 != null && (paidCnt = loanApplyResp2.getPaidCnt()) != null) {
i4 = paidCnt.intValue();
}
quotaFragment.v = i4 >= 1 ? u2.r.f8208i : u2.r.f8205e;
AbstractC0793h.a(quotaFragment);
} else {
x.n(x.f8229a, "516", "10", null, 12);
LoanApplyResp loanApplyResp3 = quotaFragment.i().f5449e;
if (loanApplyResp3 != null && (loanApplyNo = loanApplyResp3.getLoanApplyOrderNo()) != null) {
QuotaViewModel h4 = quotaFragment.h();
h4.getClass();
Intrinsics.checkNotNullParameter(loanApplyNo, "loanApplyNo");
E0.g gVar = h4.f5511c;
gVar.getClass();
Intrinsics.checkNotNullParameter(loanApplyNo, "loanApplyNo");
HashMap hashMap = new HashMap();
hashMap.put("laceCuriousCamelSightseeingEquatorPlea", loanApplyNo);
hashMap.put("influencePsychologicalRecallOunceEnsureYuch", String.valueOf(System.currentTimeMillis()));
u2.q.a(false, false, 0L, null, new B(gVar, hashMap, null), 31).observe(quotaFragment.getViewLifecycleOwner(), new C0028c(quotaFragment, 9));
}
}
return Unit.INSTANCE;
case 1:
((Boolean) obj).getClass();
HomeViewModel.c(quotaFragment.i(), false, true, false, 5);
x.n(x.f8229a, "516", "01", null, 12);
return Unit.INSTANCE;
case 2:
String str = (String) obj;
FragmentQuotaBinding fragmentQuotaBinding6 = quotaFragment.f5245e;
if (fragmentQuotaBinding6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
fragmentQuotaBinding4 = fragmentQuotaBinding6;
}
fragmentQuotaBinding4.f4977d.setEnabled(true);
LoanApplyResp loanApplyResp4 = quotaFragment.i().f5449e;
if (loanApplyResp4 != null) {
loanApplyResp4.setLoanApplyOrderNo(str);
}
return Unit.INSTANCE;
case 3:
View it = (View) obj;
Intrinsics.checkNotNullParameter(it, "it");
quotaFragment.f();
return Unit.INSTANCE;
case 4:
quotaFragment.v = null;
FragmentQuotaBinding fragmentQuotaBinding7 = quotaFragment.f5245e;
if (fragmentQuotaBinding7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
fragmentQuotaBinding3 = fragmentQuotaBinding7;
}
fragmentQuotaBinding3.f4977d.setEnabled(true);
return Unit.INSTANCE;
case 5:
if (((Boolean) obj) != null) {
HomeViewModel.c(quotaFragment.i(), false, !r1.booleanValue(), false, 5);
FragmentQuotaBinding fragmentQuotaBinding8 = quotaFragment.f5245e;
if (fragmentQuotaBinding8 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
fragmentQuotaBinding8 = null;
}
fragmentQuotaBinding8.f4977d.setEnabled(true);
quotaFragment.a(false);
LoanApplyResp loanApplyResp5 = quotaFragment.i().f5449e;
if ((loanApplyResp5 != null ? loanApplyResp5.getLoanApplyOrderNo() : null) == null) {
quotaFragment.v = null;
LoanApplyResp loanApplyResp6 = quotaFragment.i().f5449e;
if (Intrinsics.areEqual(loanApplyResp6 != null ? loanApplyResp6.getAccountStatus() : null, LoanApplyResp.AccountStatus.KYC_COMPETED)) {
quotaFragment.g();
}
}
}
return Unit.INSTANCE;
case 6:
((Number) obj).intValue();
quotaFragment.getClass();
x xVar = x.f8229a;
x.m(xVar, "516", "07", null, 12);
x.o(xVar, "516", "08", null, 12);
LoanApplyResp loanApplyResp7 = quotaFragment.i().f5449e;
String loanApplyOrderNo2 = loanApplyResp7 != null ? loanApplyResp7.getLoanApplyOrderNo() : null;
Intrinsics.checkNotNullParameter("CANCEL_AUTO_APPLY", "eventName");
String valueOf2 = String.valueOf(System.currentTimeMillis());
String d5 = AbstractC0620d.d();
r2.i event2 = new r2.i(valueOf2, d5 == null ? "" : d5, "", DbParams.GZIP_DATA_EVENT, "CANCEL_AUTO_APPLY", loanApplyOrderNo2, null, 448);
Intrinsics.checkNotNullParameter(event2, "event");
kotlin.collections.a.q(event2, null, c0085e0, null, 3);
String string = quotaFragment.getString(R.string.quota_dialog_content);
String string2 = quotaFragment.getString(R.string.cancel);
String string3 = quotaFragment.getString(R.string.open_agree);
C0790e block = new C0790e(quotaFragment, i4);
Intrinsics.checkNotNullParameter(block, "block");
ConfirmVerticalDialog confirmVerticalDialog2 = new ConfirmVerticalDialog();
confirmVerticalDialog2.f5092g = null;
confirmVerticalDialog2.f5093i = string;
confirmVerticalDialog2.f5094t = string3;
confirmVerticalDialog2.u = string2;
confirmVerticalDialog2.v = block;
quotaFragment.u = confirmVerticalDialog2;
XYBaseCenterDialog.d(confirmVerticalDialog2, quotaFragment.f4662c);
return Unit.INSTANCE;
case 7:
String str2 = (String) obj;
if (str2 == null || str2.length() == 0) {
FragmentQuotaBinding fragmentQuotaBinding9 = quotaFragment.f5245e;
if (fragmentQuotaBinding9 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
fragmentQuotaBinding9 = null;
}
fragmentQuotaBinding9.f4974a.setVisibility(8);
HomeViewModel.c(quotaFragment.i(), false, false, false, 7);
ConfirmVerticalDialog confirmVerticalDialog3 = quotaFragment.u;
if (confirmVerticalDialog3 != null) {
XYBaseCenterDialog.a(confirmVerticalDialog3);
}
try {
Activity i5 = AbstractC0203c.i();
ProductDetailActivity productDetailActivity = i5 instanceof ProductDetailActivity ? (ProductDetailActivity) i5 : null;
if (productDetailActivity != null) {
HomeFragment homeFragment2 = productDetailActivity.f5382t;
if (homeFragment2 != null) {
homeFragment = homeFragment2;
} else {
Intrinsics.throwUninitializedPropertyAccessException("homeFragment");
}
if (homeFragment != null && (confirmVerticalDialog = homeFragment.f5149B) != null) {
XYBaseCenterDialog.a(confirmVerticalDialog);
}
}
} catch (Exception unused) {
}
} else if (str2.length() > quotaFragment.getString(R.string.quota_countdown_tips_click).length()) {
FragmentQuotaBinding fragmentQuotaBinding10 = quotaFragment.f5245e;
if (fragmentQuotaBinding10 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
fragmentQuotaBinding10 = null;
}
fragmentQuotaBinding10.f4974a.setVisibility(0);
FragmentQuotaBinding fragmentQuotaBinding11 = quotaFragment.f5245e;
if (fragmentQuotaBinding11 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
fragmentQuotaBinding11 = null;
}
fragmentQuotaBinding11.f4978e.setMovementMethod(LinkMovementMethod.getInstance());
int j4 = StringsKt.j(str2, ":");
String string4 = quotaFragment.getString(R.string.quota_countdown_tips_click);
Intrinsics.checkNotNullExpressionValue(string4, "getString(...)");
int j5 = StringsKt.j(str2, string4);
List parts = CollectionsKt.listOf((Object[]) new Triple[]{new Triple(Integer.valueOf(j4 - 2), Integer.valueOf(j4 + 3), Boolean.FALSE), new Triple(Integer.valueOf(j5), Integer.valueOf(quotaFragment.getString(R.string.quota_countdown_tips_click).length() + j5), Boolean.TRUE)});
List listOf = CollectionsKt.listOf((Object[]) new Integer[]{Integer.valueOf(Color.parseColor("#F99912")), Integer.valueOf(Color.parseColor("#34B698"))});
C0790e c0790e = new C0790e(quotaFragment, 6);
Intrinsics.checkNotNullParameter(str2, "<this>");
Intrinsics.checkNotNullParameter(parts, "parts");
if (listOf == null) {
spannableStringBuilder = null;
} else {
spannableStringBuilder = new SpannableStringBuilder(str2);
for (Object obj2 : parts) {
int i6 = i4 + 1;
if (i4 < 0) {
CollectionsKt.throwIndexOverflow();
}
Triple triple = (Triple) obj2;
if (listOf.size() != parts.size()) {
Intrinsics.checkNotNull(null);
throw null;
}
ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(((Number) listOf.get(i4)).intValue());
int intValue = ((Number) triple.getFirst()).intValue();
int intValue2 = ((Number) triple.getSecond()).intValue();
spannableStringBuilder.setSpan(foregroundColorSpan, intValue, intValue2, 33);
if (((Boolean) triple.getThird()).booleanValue()) {
spannableStringBuilder.setSpan(new A(i4, c0790e), intValue, intValue2, 33);
}
i4 = i6;
}
}
quotaFragment.f5249t = spannableStringBuilder;
FragmentQuotaBinding fragmentQuotaBinding12 = quotaFragment.f5245e;
if (fragmentQuotaBinding12 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
fragmentQuotaBinding2 = fragmentQuotaBinding12;
}
fragmentQuotaBinding2.f4978e.setText(quotaFragment.f5249t);
}
return Unit.INSTANCE;
case 8:
String it2 = (String) obj;
Intrinsics.checkNotNullParameter(it2, "it");
x.m(x.f8229a, "516", "12", null, 12);
Context context = quotaFragment.f4661b;
if (context != null) {
int i7 = WebActivity.f5162f;
Intrinsics.checkNotNullParameter(context, "context");
L0.d.s(context, "https://sites.google.com/view/cashvia-loan-agreement/home", "Loan Policy");
}
return Unit.INSTANCE;
default:
u2.r scene = (u2.r) obj;
QuotaViewModel h5 = quotaFragment.h();
Intrinsics.checkNotNull(scene);
LoanApplyResp loanApplyResp8 = quotaFragment.i().f5449e;
String loanApplyOrderNo3 = loanApplyResp8 != null ? loanApplyResp8.getLoanApplyOrderNo() : null;
h5.getClass();
Intrinsics.checkNotNullParameter(scene, "scene");
G.h(ViewModelKt.getViewModelScope(h5), null, new P(h5, scene, loanApplyOrderNo3, null), 3);
return Unit.INSTANCE;
}
}
}