正在查看: CashVia v1.6.02 应用的 C0391e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CashVia v1.6.02 应用的 C0391e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package z2;
import A2.C0013c;
import D2.P;
import V2.C0062e0;
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.sensorsdata.analytics.android.sdk.data.SAProviderHelper;
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__StringsKt;
import p2.B;
import q2.AbstractC0257d;
import u2.A;
import u2.x;
public final class C0391e extends Lambda implements Function1 {
public final int a;
public final QuotaFragment b;
public C0391e(QuotaFragment quotaFragment, int i) {
super(1);
this.a = i;
this.b = quotaFragment;
}
@Override
public final Object invoke(Object obj) {
String loanApplyNo;
Integer paidCnt;
ConfirmVerticalDialog confirmVerticalDialog;
int indexOf$default;
int indexOf$default2;
SpannableStringBuilder spannableStringBuilder;
C0062e0 c0062e0 = C0062e0.a;
int i = 0;
FragmentQuotaBinding fragmentQuotaBinding = null;
FragmentQuotaBinding fragmentQuotaBinding2 = null;
HomeFragment homeFragment = null;
FragmentQuotaBinding fragmentQuotaBinding3 = null;
FragmentQuotaBinding fragmentQuotaBinding4 = null;
QuotaFragment quotaFragment = this.b;
switch (this.a) {
case 0:
if (((Boolean) obj).booleanValue()) {
LoanApplyResp loanApplyResp = quotaFragment.i().e;
String loanApplyOrderNo = loanApplyResp != null ? loanApplyResp.getLoanApplyOrderNo() : null;
Intrinsics.checkNotNullParameter("CLIK_APPLYORDER", "eventName");
String valueOf = String.valueOf(System.currentTimeMillis());
String d = AbstractC0257d.d();
r2.i event = new r2.i(valueOf, d == null ? "" : d, "", DbParams.GZIP_DATA_EVENT, "CLIK_APPLYORDER", loanApplyOrderNo, null, 448);
Intrinsics.checkNotNullParameter(event, "event");
kotlin.collections.a.q(event, null, c0062e0, null, 3);
x.n(x.a, "516", "09", null, 12);
FragmentQuotaBinding fragmentQuotaBinding5 = quotaFragment.e;
if (fragmentQuotaBinding5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
fragmentQuotaBinding = fragmentQuotaBinding5;
}
fragmentQuotaBinding.d.setEnabled(false);
LoanApplyResp loanApplyResp2 = quotaFragment.i().e;
if (loanApplyResp2 != null && (paidCnt = loanApplyResp2.getPaidCnt()) != null) {
i = paidCnt.intValue();
}
quotaFragment.v = i >= 1 ? u2.r.i : u2.r.e;
AbstractC0394h.a(quotaFragment);
} else {
x.n(x.a, "516", "10", null, 12);
LoanApplyResp loanApplyResp3 = quotaFragment.i().e;
if (loanApplyResp3 != null && (loanApplyNo = loanApplyResp3.getLoanApplyOrderNo()) != null) {
QuotaViewModel h = quotaFragment.h();
h.getClass();
Intrinsics.checkNotNullParameter(loanApplyNo, "loanApplyNo");
E0.g gVar = h.c;
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 C0013c(quotaFragment, 9));
}
}
return Unit.INSTANCE;
case 1:
((Boolean) obj).getClass();
HomeViewModel.c(quotaFragment.i(), false, true, false, 5);
x.n(x.a, "516", "01", null, 12);
return Unit.INSTANCE;
case 2:
String str = (String) obj;
FragmentQuotaBinding fragmentQuotaBinding6 = quotaFragment.e;
if (fragmentQuotaBinding6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
fragmentQuotaBinding4 = fragmentQuotaBinding6;
}
fragmentQuotaBinding4.d.setEnabled(true);
LoanApplyResp loanApplyResp4 = quotaFragment.i().e;
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.e;
if (fragmentQuotaBinding7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
fragmentQuotaBinding3 = fragmentQuotaBinding7;
}
fragmentQuotaBinding3.d.setEnabled(true);
return Unit.INSTANCE;
case 5:
if (((Boolean) obj) != null) {
HomeViewModel.c(quotaFragment.i(), false, !r1.booleanValue(), false, 5);
FragmentQuotaBinding fragmentQuotaBinding8 = quotaFragment.e;
if (fragmentQuotaBinding8 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
fragmentQuotaBinding8 = null;
}
fragmentQuotaBinding8.d.setEnabled(true);
quotaFragment.a(false);
LoanApplyResp loanApplyResp5 = quotaFragment.i().e;
if ((loanApplyResp5 != null ? loanApplyResp5.getLoanApplyOrderNo() : null) == null) {
quotaFragment.v = null;
LoanApplyResp loanApplyResp6 = quotaFragment.i().e;
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.a;
x.m(xVar, "516", "07", null, 12);
x.o(xVar, "516", "08", null, 12);
LoanApplyResp loanApplyResp7 = quotaFragment.i().e;
String loanApplyOrderNo2 = loanApplyResp7 != null ? loanApplyResp7.getLoanApplyOrderNo() : null;
Intrinsics.checkNotNullParameter("CANCEL_AUTO_APPLY", "eventName");
String valueOf2 = String.valueOf(System.currentTimeMillis());
String d4 = AbstractC0257d.d();
r2.i event2 = new r2.i(valueOf2, d4 == null ? "" : d4, "", DbParams.GZIP_DATA_EVENT, "CANCEL_AUTO_APPLY", loanApplyOrderNo2, null, 448);
Intrinsics.checkNotNullParameter(event2, "event");
kotlin.collections.a.q(event2, null, c0062e0, null, 3);
String string = quotaFragment.getString(2131821076);
String string2 = quotaFragment.getString(2131820651);
String string3 = quotaFragment.getString(2131820981);
C0391e block = new C0391e(quotaFragment, i);
Intrinsics.checkNotNullParameter(block, "block");
ConfirmVerticalDialog confirmVerticalDialog2 = new ConfirmVerticalDialog();
confirmVerticalDialog2.g = null;
confirmVerticalDialog2.i = string;
confirmVerticalDialog2.t = string3;
confirmVerticalDialog2.u = string2;
confirmVerticalDialog2.v = block;
quotaFragment.u = confirmVerticalDialog2;
XYBaseCenterDialog.d(confirmVerticalDialog2, quotaFragment.c);
return Unit.INSTANCE;
case SAProviderHelper.URI_CODE.LOGIN_ID:
String str2 = (String) obj;
if (str2 == null || str2.length() == 0) {
FragmentQuotaBinding fragmentQuotaBinding9 = quotaFragment.e;
if (fragmentQuotaBinding9 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
fragmentQuotaBinding9 = null;
}
fragmentQuotaBinding9.a.setVisibility(8);
HomeViewModel.c(quotaFragment.i(), false, false, false, 7);
ConfirmVerticalDialog confirmVerticalDialog3 = quotaFragment.u;
if (confirmVerticalDialog3 != null) {
XYBaseCenterDialog.a(confirmVerticalDialog3);
}
try {
Activity i4 = com.blankj.utilcode.util.c.i();
ProductDetailActivity productDetailActivity = i4 instanceof ProductDetailActivity ? (ProductDetailActivity) i4 : null;
if (productDetailActivity != null) {
HomeFragment homeFragment2 = productDetailActivity.t;
if (homeFragment2 != null) {
homeFragment = homeFragment2;
} else {
Intrinsics.throwUninitializedPropertyAccessException("homeFragment");
}
if (homeFragment != null && (confirmVerticalDialog = homeFragment.B) != null) {
XYBaseCenterDialog.a(confirmVerticalDialog);
}
}
} catch (Exception unused) {
}
} else if (str2.length() > quotaFragment.getString(2131821075).length()) {
FragmentQuotaBinding fragmentQuotaBinding10 = quotaFragment.e;
if (fragmentQuotaBinding10 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
fragmentQuotaBinding10 = null;
}
fragmentQuotaBinding10.a.setVisibility(0);
FragmentQuotaBinding fragmentQuotaBinding11 = quotaFragment.e;
if (fragmentQuotaBinding11 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
fragmentQuotaBinding11 = null;
}
fragmentQuotaBinding11.e.setMovementMethod(LinkMovementMethod.getInstance());
indexOf$default = StringsKt__StringsKt.indexOf$default(str2, ":", 0, false, 6, (Object) null);
String string4 = quotaFragment.getString(2131821075);
Intrinsics.checkNotNullExpressionValue(string4, "getString(...)");
indexOf$default2 = StringsKt__StringsKt.indexOf$default(str2, string4, 0, false, 6, (Object) null);
List parts = CollectionsKt.listOf((Object[]) new Triple[]{new Triple(Integer.valueOf(indexOf$default - 2), Integer.valueOf(indexOf$default + 3), Boolean.FALSE), new Triple(Integer.valueOf(indexOf$default2), Integer.valueOf(quotaFragment.getString(2131821075).length() + indexOf$default2), Boolean.TRUE)});
List listOf = CollectionsKt.listOf((Object[]) new Integer[]{Integer.valueOf(Color.parseColor("#F99912")), Integer.valueOf(Color.parseColor("#34B698"))});
C0391e c0391e = new C0391e(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 i5 = i + 1;
if (i < 0) {
CollectionsKt.throwIndexOverflow();
}
Triple triple = (Triple) obj2;
if (listOf.size() != parts.size()) {
Intrinsics.checkNotNull(null);
throw null;
}
ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(((Number) listOf.get(i)).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(i, c0391e), intValue, intValue2, 33);
}
i = i5;
}
}
quotaFragment.t = spannableStringBuilder;
FragmentQuotaBinding fragmentQuotaBinding12 = quotaFragment.e;
if (fragmentQuotaBinding12 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
fragmentQuotaBinding2 = fragmentQuotaBinding12;
}
fragmentQuotaBinding2.e.setText(quotaFragment.t);
}
return Unit.INSTANCE;
case 8:
String it2 = (String) obj;
Intrinsics.checkNotNullParameter(it2, "it");
x.m(x.a, "516", "12", null, 12);
Context context = quotaFragment.b;
if (context != null) {
int i6 = WebActivity.f;
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 h4 = quotaFragment.h();
Intrinsics.checkNotNull(scene);
LoanApplyResp loanApplyResp8 = quotaFragment.i().e;
String loanApplyOrderNo3 = loanApplyResp8 != null ? loanApplyResp8.getLoanApplyOrderNo() : null;
h4.getClass();
Intrinsics.checkNotNullParameter(scene, "scene");
G.h(ViewModelKt.getViewModelScope(h4), null, new P(h4, scene, loanApplyOrderNo3, null), 3);
return Unit.INSTANCE;
}
}
}