正在查看: CashVia v1.6.02 应用的 CashierActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CashVia v1.6.02 应用的 CashierActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.xy.credyclub.view.cashier;
import A2.C0014d;
import B2.e;
import D2.C0030c;
import V2.C0062e0;
import V2.G;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.activity.OnBackPressedDispatcher;
import androidx.activity.OnBackPressedDispatcherKt;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.ViewModelKt;
import androidx.lifecycle.ViewModelLazy;
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.ActivityCashierBinding;
import com.xy.credyclub.dialog.BottomTipsDialog;
import com.xy.credyclub.dialog.ConfirmVerticalDialog;
import com.xy.credyclub.vm.CashierViewModel;
import k2.c;
import kotlin.Metadata;
import kotlin.TuplesKt;
import kotlin.collections.MapsKt;
import kotlin.collections.a;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import q2.AbstractC0257d;
import r2.i;
import u2.j;
import u2.x;
import x2.C0312a;
import x2.C0313b;
import x2.C0314c;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/xy/credyclub/view/cashier/CashierActivity;", "Lcom/xy/credyclub/base/XYBaseActivity;", "<init>", "()V", "app_prodRelease"}, k = 1, mv = {1, SAProviderHelper.URI_CODE.FLUSH_DATA, 0})
@SourceDebugExtension({"SMAP\nCashierActivity.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CashierActivity.kt\ncom/xy/credyclub/view/cashier/CashierActivity\n+ 2 ActivityViewModelLazy.kt\nandroidx/activity/ActivityViewModelLazyKt\n+ 3 View.kt\nandroidx/core/view/ViewKt\n*L\n1#1,224:1\n75#2,13:225\n256#3,2:238\n256#3,2:240\n*S KotlinDebug\n*F\n+ 1 CashierActivity.kt\ncom/xy/credyclub/view/cashier/CashierActivity\n*L\n31#1:225,13\n201#1:238,2\n204#1:240,2\n*E\n"})
public final class CashierActivity extends Hilt_CashierActivity {
public static final int D = 0;
public String A;
public String B;
public boolean C;
public ActivityCashierBinding i;
public final ViewModelLazy t = new ViewModelLazy(Reflection.getOrCreateKotlinClass(CashierViewModel.class), new e(this, 24), new C0314c(this), new e(this, 25));
public boolean u;
public BottomTipsDialog v;
public String w;
public String x;
public String y;
public String z;
public static final void r(CashierActivity cashierActivity) {
if (cashierActivity.w == null || !Intrinsics.areEqual(cashierActivity.z, "all") || cashierActivity.B == null) {
cashierActivity.finish();
return;
}
String str = cashierActivity.w;
Intrinsics.checkNotNull(str);
boolean z = cashierActivity.C;
x.o(x.a, "559", null, MapsKt.mapOf(TuplesKt.to("isZero", String.valueOf(z))), 10);
String string = cashierActivity.getString(2131821101);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
String string2 = z ? cashierActivity.getString(2131821104, cashierActivity.A, cashierActivity.y) : cashierActivity.getString(2131821103, cashierActivity.B);
Intrinsics.checkNotNull(string2);
String string3 = cashierActivity.getString(2131821101);
String string4 = cashierActivity.getString(2131820651);
C0313b block = new C0313b(z, cashierActivity, str);
Intrinsics.checkNotNullParameter(block, "block");
ConfirmVerticalDialog confirmVerticalDialog = new ConfirmVerticalDialog();
confirmVerticalDialog.g = string3;
confirmVerticalDialog.i = string2;
confirmVerticalDialog.t = string;
confirmVerticalDialog.u = string4;
confirmVerticalDialog.v = block;
XYBaseCenterDialog.d(confirmVerticalDialog, cashierActivity);
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.w = getIntent().getStringExtra("orderNo");
this.x = getIntent().getStringExtra("amount");
this.y = getIntent().getStringExtra("date");
this.z = getIntent().getStringExtra("type");
this.A = getIntent().getStringExtra("nextAmount");
this.B = getIntent().getStringExtra("delayAmount");
this.C = getIntent().getBooleanExtra("isFullDelay", false);
Intrinsics.checkNotNullParameter("CLICK_DESK", "eventName");
String valueOf = String.valueOf(System.currentTimeMillis());
String d = AbstractC0257d.d();
if (d == null) {
d = "";
}
i event = new i(valueOf, d, "", DbParams.GZIP_DATA_EVENT, "CLICK_DESK", null, null, 448);
Intrinsics.checkNotNullParameter(event, "event");
ActivityCashierBinding activityCashierBinding = null;
a.q(event, null, C0062e0.a, null, 3);
ViewDataBinding contentView = DataBindingUtil.setContentView(this, 2131492894);
Intrinsics.checkNotNullExpressionValue(contentView, "setContentView(...)");
this.i = (ActivityCashierBinding) contentView;
OnBackPressedDispatcher onBackPressedDispatcher = getOnBackPressedDispatcher();
Intrinsics.checkNotNullExpressionValue(onBackPressedDispatcher, "<get-onBackPressedDispatcher>(...)");
OnBackPressedDispatcherKt.addCallback$default(onBackPressedDispatcher, (LifecycleOwner) null, false, new C0312a(this, 0), 3, (Object) null);
ActivityCashierBinding activityCashierBinding2 = this.i;
if (activityCashierBinding2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding2 = null;
}
LinearLayout layoutTitle = activityCashierBinding2.b;
Intrinsics.checkNotNullExpressionValue(layoutTitle, "layoutTitle");
j.c(layoutTitle, new C0312a(this, 1));
ActivityCashierBinding activityCashierBinding3 = this.i;
if (activityCashierBinding3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding3 = null;
}
ImageView ivService = activityCashierBinding3.a;
Intrinsics.checkNotNullExpressionValue(ivService, "ivService");
j.c(ivService, new C0312a(this, 2));
ActivityCashierBinding activityCashierBinding4 = this.i;
if (activityCashierBinding4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding4 = null;
}
activityCashierBinding4.a(s());
ActivityCashierBinding activityCashierBinding5 = this.i;
if (activityCashierBinding5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding5 = null;
}
activityCashierBinding5.setLifecycleOwner(this);
ActivityCashierBinding activityCashierBinding6 = this.i;
if (activityCashierBinding6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding6 = null;
}
TextView tvBankNoCopy = activityCashierBinding6.i;
Intrinsics.checkNotNullExpressionValue(tvBankNoCopy, "tvBankNoCopy");
j.c(tvBankNoCopy, new C0312a(this, 3));
ActivityCashierBinding activityCashierBinding7 = this.i;
if (activityCashierBinding7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding7 = null;
}
TextView tvBankRemarkCopy = activityCashierBinding7.t;
Intrinsics.checkNotNullExpressionValue(tvBankRemarkCopy, "tvBankRemarkCopy");
j.c(tvBankRemarkCopy, new C0312a(this, 4));
ActivityCashierBinding activityCashierBinding8 = this.i;
if (activityCashierBinding8 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding8 = null;
}
TextView tvIndexBtn = activityCashierBinding8.w;
Intrinsics.checkNotNullExpressionValue(tvIndexBtn, "tvIndexBtn");
j.c(tvIndexBtn, new C0312a(this, 5));
ActivityCashierBinding activityCashierBinding9 = this.i;
if (activityCashierBinding9 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
activityCashierBinding = activityCashierBinding9;
}
activityCashierBinding.d.setOnClickListener(new c(2));
s().f.observe(this, new C0014d(new C0312a(this, 6)));
t();
}
@Override
public final void onResume() {
super.onResume();
if (this.u) {
x.o(x.a, "526", null, null, 14);
BottomTipsDialog bottomTipsDialog = this.v;
if (bottomTipsDialog != null) {
bottomTipsDialog.dismiss();
this.v = null;
}
String string = getString(2131820662);
String string2 = getString(2131820660);
String string3 = getString(2131820661);
C0312a block = new C0312a(this, 7);
Intrinsics.checkNotNullParameter(block, "block");
BottomTipsDialog bottomTipsDialog2 = new BottomTipsDialog();
bottomTipsDialog2.t = string;
bottomTipsDialog2.u = string2;
bottomTipsDialog2.v = string3;
bottomTipsDialog2.w = block;
this.v = bottomTipsDialog2;
bottomTipsDialog2.e(this, "bottomDialog");
}
}
public final void onStop() {
super.onStop();
this.u = true;
}
public final CashierViewModel s() {
return (CashierViewModel) this.t.getValue();
}
public final void t() {
String str;
x xVar = x.a;
String type = this.z;
if (type == null) {
type = "";
}
Intrinsics.checkNotNullParameter(type, "type");
x.p(xVar, "525", null, MapsKt.mapOf(TuplesKt.to("type", type)), 10);
if (Intrinsics.areEqual(this.z, "all")) {
ActivityCashierBinding activityCashierBinding = this.i;
if (activityCashierBinding == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding = null;
}
LinearLayout llDelay = activityCashierBinding.c;
Intrinsics.checkNotNullExpressionValue(llDelay, "llDelay");
llDelay.setVisibility(8);
ActivityCashierBinding activityCashierBinding2 = this.i;
if (activityCashierBinding2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding2 = null;
}
activityCashierBinding2.y.setText(getString(2131821113));
} else {
ActivityCashierBinding activityCashierBinding3 = this.i;
if (activityCashierBinding3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding3 = null;
}
LinearLayout llDelay2 = activityCashierBinding3.c;
Intrinsics.checkNotNullExpressionValue(llDelay2, "llDelay");
llDelay2.setVisibility(0);
ActivityCashierBinding activityCashierBinding4 = this.i;
if (activityCashierBinding4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding4 = null;
}
activityCashierBinding4.y.setText(getString(2131821101));
ActivityCashierBinding activityCashierBinding5 = this.i;
if (activityCashierBinding5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding5 = null;
}
TextView textView = activityCashierBinding5.v;
String str2 = this.y;
textView.setText(getString(2131820659, str2 != null ? str2 : "", this.A));
}
ActivityCashierBinding activityCashierBinding6 = this.i;
if (activityCashierBinding6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityCashierBinding6 = null;
}
activityCashierBinding6.e.setText("$" + this.x);
String str3 = this.w;
if (str3 == null || str3.length() == 0 || (str = this.x) == null || str.length() == 0) {
return;
}
CashierViewModel s = s();
String loanApplyNo = this.w;
Intrinsics.checkNotNull(loanApplyNo);
int i = Intrinsics.areEqual("all", this.z) ? 1 : 2;
s.getClass();
Intrinsics.checkNotNullParameter(loanApplyNo, "loanApplyNo");
G.h(ViewModelKt.getViewModelScope(s), null, new C0030c(s, loanApplyNo, i, null), 3);
}
}