what-the-bank/sources/com/scb/phone/view/fragment/deposit/DepositSelectionFragment.java

527 lines
17 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.deposit;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import android.widget.LinearLayout;
import androidx.core.view.ViewCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.OnClick;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.deposit.DepositProductCatalogActivity;
import com.scb.phone.view.activity.etb.ETBSaleSheetAccountTypeActivity;
import com.scb.phone.view.activity.etb.EtbActivity;
import com.scb.phone.view.adapter.deposit.DepositOpenAccountSelectionAdapter;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractC14961gcz;
import o.C0698Mn;
import o.C0715My;
import o.C14930gcM;
import o.C14957gcv;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9226dfi;
import o.UNo;
import o.aNI;
import o.eCG;
import o.fZZ;
import o.gcQ;
import o.sZJ;
import o.xzZ;
import o.zUI;
/* loaded from: classes5.dex */
public final class DepositSelectionFragment extends Hilt_DepositSelectionFragment implements InterfaceC9226dfi, DepositOpenAccountSelectionAdapter.RVV {
public static final Sts d;
private static int h;
private static int j;
private String c;
@InterfaceC13391fZD
public aNI depositSelectAccountPresenter;
private DepositOpenAccountSelectionAdapter f;
private final InterfaceC13393fZL g;
@BindView
public RecyclerView recyclerView;
@BindView
public LinearLayout saleSheetButtonContainer;
private static final byte[] $$a = {53, ISOFileInfo.FMD_BYTE, ISO7816.INS_READ_BINARY_STAMPED, -81};
private static final int $$b = 115;
private static int $10 = 0;
private static int $11 = 1;
private static int i = 1;
private static void n(int i2, int i3, int i4, Object[] objArr) {
int i5 = (i2 * 3) + 4;
int i6 = 76 - (i4 * 7);
byte[] bArr = $$a;
int i7 = i3 * 4;
byte[] bArr2 = new byte[1 - i7];
int i8 = 0 - i7;
int i9 = -1;
if (bArr == null) {
i6 += i8;
i5++;
}
while (true) {
i9++;
bArr2[i9] = (byte) i6;
if (i9 == i8) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i6 += bArr[i5];
i5++;
}
}
}
public DepositSelectionFragment() {
HBt hBt = HBt.c;
C14957gcv.e(hBt, "");
this.g = new fZZ(hBt);
}
private RecyclerView h() {
int i2 = 2 % 2;
int i3 = j + 39;
i = i3 % 128;
int i4 = i3 % 2;
RecyclerView recyclerView = this.recyclerView;
if (recyclerView != null) {
return recyclerView;
}
C14957gcv.a("");
int i5 = i + 57;
j = i5 % 128;
Object obj = null;
if (i5 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
private LinearLayout arS_() {
int i2 = 2 % 2;
int i3 = i + 75;
int i4 = i3 % 128;
j = i4;
Object obj = null;
if (i3 % 2 != 0) {
obj.hashCode();
throw null;
}
LinearLayout linearLayout = this.saleSheetButtonContainer;
if (linearLayout == null) {
C14957gcv.a("");
return null;
}
int i5 = i4 + 93;
i = i5 % 128;
int i6 = i5 % 2;
return linearLayout;
}
private final UNo f() {
int i2 = 2 % 2;
int i3 = j + 107;
i = i3 % 128;
int i4 = i3 % 2;
UNo uNo = (UNo) this.g.e();
int i5 = i + 77;
j = i5 % 128;
if (i5 % 2 == 0) {
return uNo;
}
throw null;
}
private aNI g() {
int i2 = 2 % 2;
int i3 = j;
int i4 = i3 + 75;
i = i4 % 128;
int i5 = i4 % 2;
aNI ani = this.depositSelectAccountPresenter;
Object obj = null;
if (ani == null) {
C14957gcv.a("");
return null;
}
int i6 = i3 + 121;
i = i6 % 128;
if (i6 % 2 != 0) {
return ani;
}
obj.hashCode();
throw null;
}
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
/* JADX WARN: Code restructure failed: missing block: B:25:0x0037, code lost:
r0 = com.scb.phone.view.fragment.deposit.DepositSelectionFragment.j + 53;
com.scb.phone.view.fragment.deposit.DepositSelectionFragment.i = r0 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x0042, code lost:
if ((r0 % 2) == 0) goto L12;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0044, code lost:
r14 = r14.getString("accountType");
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x0049, code lost:
r14.getString("accountType");
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x004c, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x0035, code lost:
if (r14 != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0024, code lost:
if (r14 != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x004d, code lost:
r14 = com.scb.phone.view.fragment.deposit.DepositSelectionFragment.j + 21;
com.scb.phone.view.fragment.deposit.DepositSelectionFragment.i = r14 % 128;
r14 = r14 % 2;
r14 = null;
*/
@Override // androidx.fragment.app.Fragment
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final android.view.View onCreateView(android.view.LayoutInflater r13, android.view.ViewGroup r14, android.os.Bundle r15) {
/*
Method dump skipped, instructions count: 265
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.deposit.DepositSelectionFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle):android.view.View");
}
@Override // o.InterfaceC9226dfi
public final void e(List<C0698Mn> list) {
int i2 = 2 % 2;
C14957gcv.e(list, "");
Context requireContext = requireContext();
C14957gcv.c(requireContext, "");
this.f = new DepositOpenAccountSelectionAdapter(requireContext, new ArrayList(), this);
RecyclerView h2 = h();
h2.getContext();
h().setLayoutManager(new LinearLayoutManager(1, false));
h().d(new eCG(h2.getContext(), 12), -1);
g();
Iterator<Map.Entry<String, List<C0698Mn>>> it = aNI.e((List<C0698Mn>) gcQ.b(list)).entrySet().iterator();
while (!(!it.hasNext())) {
List<C0698Mn> value = it.next().getValue();
DepositOpenAccountSelectionAdapter depositOpenAccountSelectionAdapter = this.f;
DepositOpenAccountSelectionAdapter depositOpenAccountSelectionAdapter2 = null;
if (depositOpenAccountSelectionAdapter == null) {
C14957gcv.a("");
int i3 = j + 77;
i = i3 % 128;
int i4 = i3 % 2;
depositOpenAccountSelectionAdapter = null;
}
List<C0698Mn> list2 = value;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2);
C14957gcv.e(arrayList, "");
depositOpenAccountSelectionAdapter.b.addAll(arrayList);
depositOpenAccountSelectionAdapter.notifyDataSetChanged();
RecyclerView h3 = h();
DepositOpenAccountSelectionAdapter depositOpenAccountSelectionAdapter3 = this.f;
if (depositOpenAccountSelectionAdapter3 == null) {
int i5 = j + 23;
i = i5 % 128;
if (i5 % 2 == 0) {
C14957gcv.a("");
throw null;
}
C14957gcv.a("");
} else {
depositOpenAccountSelectionAdapter2 = depositOpenAccountSelectionAdapter3;
}
h3.setAdapter(depositOpenAccountSelectionAdapter2);
}
ViewCompat.d((View) h2, false);
arS_().setVisibility(0);
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object c(Object[] objArr) {
DepositSelectionFragment depositSelectionFragment = (DepositSelectionFragment) objArr[0];
List list = (List) objArr[1];
int i2 = 2 % 2;
int i3 = i + 119;
j = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(list, "");
depositSelectionFragment.startActivity(ETBSaleSheetAccountTypeActivity.afh_(depositSelectionFragment.getContext(), list, "DEPOSIT"));
int i5 = j + 35;
i = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 18 / 0;
}
return null;
}
@OnClick
public final void onClickRead() {
int i2 = 2 % 2;
DepositProductCatalogActivity.LWm lWm = DepositProductCatalogActivity.b;
Context requireContext = requireContext();
C14957gcv.c(requireContext, "");
C14957gcv.e(requireContext, "");
startActivity(new Intent(requireContext, (Class<?>) DepositProductCatalogActivity.class));
UNo f = f();
if (getActivity() != null) {
int i3 = i + 17;
j = i3 % 128;
if (i3 % 2 != 0) {
f.c(((BaseActivity) getActivity()).scbAnalytics, "etb_open_deposit_product_catalog");
throw null;
}
f.c(((BaseActivity) getActivity()).scbAnalytics, "etb_open_deposit_product_catalog");
}
int i4 = j + 3;
i = i4 % 128;
int i5 = i4 % 2;
}
@OnClick
public final void onClickViewSalesList() {
sZJ szj;
int i2 = 2 % 2;
aNI g = g();
String str = g.d;
if (str != null) {
szj = new sZJ(str, g.e);
} else {
int i3 = i + 73;
j = i3 % 128;
int i4 = i3 % 2;
szj = null;
}
C14930gcM.RVV rvv = new C14930gcM.RVV();
if (szj != null) {
int i5 = j + 49;
i = i5 % 128;
int i6 = i5 % 2;
if (g.f != 0) {
int i7 = i + 37;
j = i7 % 128;
int i8 = i7 % 2;
g.f.y();
}
g.b.e(new aNI.RVV(g, rvv), new aNI.LWm(g), szj);
}
UNo f = f();
if (getActivity() != null) {
f.c(((BaseActivity) getActivity()).scbAnalytics, "etb_open_deposit_sales_sheet");
}
}
@Override // com.scb.phone.view.adapter.deposit.DepositOpenAccountSelectionAdapter.RVV
public final void e(C0698Mn c0698Mn) {
int i2 = 2 % 2;
int i3 = j + 91;
i = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(c0698Mn, "");
Context context = getContext();
String str = c0698Mn.c;
String str2 = c0698Mn.j;
Object[] objArr = new Object[1];
m(Color.green(0) + 1, -MotionEvent.axisFromString(""), Gravity.getAbsoluteGravity(0, 0) + 216, new char[]{0}, true, objArr);
Object[] objArr2 = {context, str, str2, ((String) objArr[0]).intern()};
startActivity((Intent) EtbActivity.b(objArr2));
int i5 = i + 67;
j = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroy() {
int i2 = 2 % 2;
int i3 = j + 5;
i = i3 % 128;
Object obj = null;
if (i3 % 2 != 0) {
g().w_();
super.onDestroy();
int i4 = j + 9;
i = i4 % 128;
if (i4 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
g().w_();
super.onDestroy();
obj.hashCode();
throw null;
}
private static void m(int i2, int i3, int i4, char[] cArr, boolean z, Object[] objArr) {
char[] cArr2;
int i5 = 2 % 2;
zUI zui = new zUI();
char[] cArr3 = new char[i2];
zui.d = 0;
while (zui.d < i2) {
int i6 = $10 + 103;
$11 = i6 % 128;
int i7 = i6 % 2;
zui.c = cArr[zui.d];
cArr3[zui.d] = (char) (i4 + zui.c);
int i8 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr3[i8]), Integer.valueOf(h)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c(143 - ExpandableListView.getPackedPositionGroup(0L), (ViewConfiguration.getTapTimeout() >> 16) + 7, (char) (1 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
n(b, b2, (byte) (b2 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(880493502, obj);
}
cArr3[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {zui, zui};
Object obj2 = xzZ.y.get(1294990079);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 342, ExpandableListView.getPackedPositionChild(0L) + 6, (char) View.MeasureSpec.getSize(0));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
n(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
if (i3 > 0) {
int i9 = $10 + 29;
$11 = i9 % 128;
int i10 = i9 % 2;
zui.a = i3;
char[] cArr4 = new char[i2];
System.arraycopy(cArr3, 0, cArr4, 0, i2);
System.arraycopy(cArr4, 0, cArr3, i2 - zui.a, zui.a);
System.arraycopy(cArr4, zui.a, cArr3, 0, i2 - zui.a);
}
if (z) {
int i11 = $11 + 123;
$10 = i11 % 128;
if (i11 % 2 != 0) {
cArr2 = new char[i2];
zui.d = 1;
} else {
cArr2 = new char[i2];
zui.d = 0;
}
while (zui.d < i2) {
cArr2[zui.d] = cArr3[(i2 - zui.d) - 1];
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(342 - (ViewConfiguration.getTapTimeout() >> 16), 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
n(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
cArr3 = cArr2;
}
objArr[0] = new String(cArr3);
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<UNo> {
public static final HBt c = new HBt();
@Override // o.InterfaceC14890gbN
public final /* synthetic */ UNo invoke() {
return new UNo();
}
HBt() {
super(0);
}
}
static void d() {
h = 2015661697;
}
@Override // o.InterfaceC9226dfi
public final void a(List<C0715My> list) {
System.identityHashCode(this);
c(new Object[]{this, list});
}
static {
j = 0;
d();
d = new Sts((byte) 0);
int i2 = i + 55;
j = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 19 / 0;
}
}
}