what-the-bank/sources/com/scb/phone/view/fragment/ntb/selectaccount/SelectAccountFragment.java

671 lines
24 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.ntb.selectaccount;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.android.gms.analytics.ecommerce.ProductAction;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.ntb.touchpoint.TouchPointAccountDetailActivity;
import com.scb.phone.view.activity.ntb.touchpoint.TouchPointSelectAccountActivity;
import com.scb.phone.view.adapter.ntb.selectaccount.SelectAccountAdapter;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.fragment.ntb.selectaccount.SelectAccountFragment;
import java.lang.ref.WeakReference;
import java.lang.reflect.Method;
import java.util.List;
import o.AbstractC13482fbE;
import o.C12912fKx;
import o.C17382wKl;
import o.C6915ceS;
import o.InterfaceC13391fZD;
import o.InterfaceC8954dab;
import o.QKH;
import o.SL;
import o.ZI;
import o.dQY;
import o.fIY;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public class SelectAccountFragment extends Hilt_SelectAccountFragment implements InterfaceC8954dab.jNh, SelectAccountAdapter.HBt, fIY.saX {
private InterfaceC8954dab.jbe c;
private boolean d;
private fIY.Sts j;
@BindView
RecyclerView recyclerView;
@InterfaceC13391fZD
public C6915ceS selectAccountPresenter;
private static final byte[] $$a = {70, -37, 38, -31};
private static final int $$b = CipherSuite.TLS_DH_anon_WITH_SEED_CBC_SHA;
private static int $10 = 0;
private static int $11 = 1;
private static int f = 0;
private static int i = 1;
private static char[] g = {36834};
private static long h = -1640911342987044899L;
public static /* synthetic */ Object d(Object[] objArr, int i2, int i3, int i4) {
int i5 = ~i3;
int i6 = ~i4;
if ((i2 * 989) + (i3 * (-987)) + (((~(i5 | i6 | i2)) | (~(i2 | i3 | i4))) * 988) + ((i2 | i5) * (-988)) + (((~(i2 | i6 | i3)) | (~(i4 | i5)) | (~((~i2) | i5))) * 988) != 1) {
SelectAccountFragment selectAccountFragment = (SelectAccountFragment) objArr[0];
DialogInterface dialogInterface = (DialogInterface) objArr[1];
int i7 = 2 % 2;
int i8 = i + 83;
f = i8 % 128;
int i9 = i8 % 2;
dialogInterface.dismiss();
selectAccountFragment.d();
int i10 = i + 33;
f = i10 % 128;
int i11 = i10 % 2;
return null;
}
return e(objArr);
}
private static void n(int i2, int i3, short s, Object[] objArr) {
byte[] bArr = $$a;
int i4 = 106 - s;
int i5 = i3 * 4;
int i6 = 4 - (i2 * 2);
byte[] bArr2 = new byte[i5 + 1];
int i7 = -1;
if (bArr == null) {
i4 += -i5;
i6++;
}
while (true) {
i7++;
bArr2[i7] = (byte) i4;
if (i7 == i5) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i4 += -bArr[i6];
i6++;
}
}
}
public static SelectAccountFragment i() {
int i2 = 2 % 2;
SelectAccountFragment selectAccountFragment = new SelectAccountFragment();
Bundle bundle = new Bundle();
bundle.putBoolean("EXTRA_TOUCH_POINT", true);
selectAccountFragment.setArguments(bundle);
int i3 = f + 29;
i = i3 % 128;
int i4 = i3 % 2;
return selectAccountFragment;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.scb.phone.view.fragment.ntb.selectaccount.Hilt_SelectAccountFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public void onAttach(Context context) {
int i2 = 2 % 2;
super.onAttach(context);
if (context instanceof fIY.Sts) {
int i3 = f + 23;
i = i3 % 128;
if (i3 % 2 == 0) {
this.j = (fIY.Sts) context;
Object obj = null;
obj.hashCode();
throw null;
}
this.j = (fIY.Sts) context;
}
if (context instanceof InterfaceC8954dab.jbe) {
this.c = (InterfaceC8954dab.jbe) context;
return;
}
if (context instanceof TouchPointSelectAccountActivity) {
int i4 = i + 17;
f = i4 % 128;
if (i4 % 2 != 0) {
this.d = true;
} else {
this.d = true;
}
}
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int i2 = 2 % 2;
View inflate = layoutInflater.inflate(R.layout.2131559909, viewGroup, false);
ButterKnife.c(this, inflate);
this.selectAccountPresenter.e((C6915ceS) this);
C6915ceS c6915ceS = this.selectAccountPresenter;
if (c6915ceS.f != 0) {
int i3 = f;
int i4 = i3 + 41;
i = i4 % 128;
int i5 = i4 % 2;
int i6 = i3 + 11;
i = i6 % 128;
int i7 = i6 % 2;
c6915ceS.f.y();
}
c6915ceS.c.e();
C17382wKl c17382wKl = c6915ceS.c;
c17382wKl.d(c17382wKl.i, new C6915ceS.HBt(c6915ceS));
this.j.r();
this.j.o(getString(R.string.select_account_title));
QKH qkh = (QKH) d(new Object[]{this}, 1302080578, -1302080577, System.identityHashCode(this));
if (getActivity() != null) {
int i8 = i + 71;
f = i8 % 128;
int i9 = i8 % 2;
qkh.c(((BaseActivity) getActivity()).scbAnalytics, "ekyc_selectaccount");
}
return inflate;
}
private static void m(char c, int i2, int i3, Object[] objArr) {
int i4 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i3];
dqy.a = 0;
while (dqy.a < i3) {
int i5 = $11 + 17;
$10 = i5 % 128;
int i6 = i5 % 2;
int i7 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(g[i2 + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(KeyEvent.keyCodeFromString("") + 308, Color.argb(0, 0, 0, 0) + 5, (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 32796));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
n(b, b2, (byte) (b2 | 8), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(h), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), 5 - View.resolveSize(0, 0), (char) TextUtils.getOffsetBefore("", 0));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
n(b3, b4, (byte) (b4 | 7), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i7] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 407, View.resolveSize(0, 0) + 5, (char) (29234 - Gravity.getAbsoluteGravity(0, 0)));
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(1071125919, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr = new char[i3];
dqy.a = 0;
while (dqy.a < i3) {
int i8 = $10 + 33;
$11 = i8 % 128;
if (i8 % 2 == 0) {
cArr[dqy.a] = (char) jArr[dqy.a];
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(408 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) (29235 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte b7 = (byte) 0;
byte b8 = b7;
Object[] objArr9 = new Object[1];
n(b7, b8, b8, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
throw null;
}
cArr[dqy.a] = (char) jArr[dqy.a];
Object[] objArr10 = {dqy, dqy};
Object obj5 = xzZ.y.get(1071125919);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(((Process.getThreadPriority(0) + 20) >> 6) + 407, (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 5, (char) (29235 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte b9 = (byte) 0;
byte b10 = b9;
Object[] objArr11 = new Object[1];
n(b9, b10, b10, objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj5);
}
((Method) obj5).invoke(null, objArr10);
}
String str = new String(cArr);
int i9 = $10 + 123;
$11 = i9 % 128;
int i10 = i9 % 2;
objArr[0] = str;
}
@Override // androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
int i2 = 2 % 2;
super.onViewCreated(view, bundle);
if (getArguments() != null) {
int i3 = f + 45;
i = i3 % 128;
int i4 = i3 % 2;
this.d = getArguments().getBoolean("EXTRA_TOUCH_POINT", false);
}
fIY.Sts sts = this.j;
if (sts != null) {
sts.r();
}
int i5 = i + 25;
f = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
@Override // o.InterfaceC8954dab.jNh
public final void b(List<SL> list) {
int i2 = 2 % 2;
SelectAccountAdapter selectAccountAdapter = new SelectAccountAdapter(list, this);
selectAccountAdapter.c = this.d;
getContext();
this.recyclerView.setLayoutManager(new LinearLayoutManager(1, false));
this.recyclerView.setAdapter(selectAccountAdapter);
int i3 = i + 9;
f = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 36 / 0;
}
}
@Override // com.scb.phone.view.adapter.ntb.selectaccount.SelectAccountAdapter.HBt
public final void e(int i2) {
int i3 = 2 % 2;
QKH qkh = (QKH) d(new Object[]{this}, 1302080578, -1302080577, System.identityHashCode(this));
if (getActivity() != null) {
int i4 = f + 59;
i = i4 % 128;
if (i4 % 2 == 0) {
qkh.c(((BaseActivity) getActivity()).scbAnalytics, "ekyc_savingaccountdetail");
throw null;
}
qkh.c(((BaseActivity) getActivity()).scbAnalytics, "ekyc_savingaccountdetail");
int i5 = f + 117;
i = i5 % 128;
int i6 = i5 % 2;
}
List<SL> list = this.selectAccountPresenter.a;
SL sl = list != null ? list.get(i2) : null;
if (sl != null) {
Bundle bundle = new Bundle();
bundle.putString("BUNDLE_CODE", sl.b);
DepositProductDetailFragment depositProductDetailFragment = new DepositProductDetailFragment();
depositProductDetailFragment.setArguments(bundle);
AbstractC13482fbE a = getChildFragmentManager().a();
a.b(R.id.select_account_containner, depositProductDetailFragment, null, 2);
String concat = ProductAction.ACTION_DETAIL.concat(String.valueOf(i2));
if (!a.d) {
throw new IllegalStateException("This FragmentTransaction is not allowed to be added to the back stack.");
}
a.a = true;
a.m = concat;
int i7 = f + 81;
i = i7 % 128;
int i8 = i7 % 2;
a.b();
this.j.l();
}
}
@Override // com.scb.phone.view.adapter.ntb.selectaccount.SelectAccountAdapter.HBt
public final void c(final int i2) {
int i3 = 2 % 2;
C6915ceS c6915ceS = this.selectAccountPresenter;
c6915ceS.e = i2;
ZI.IeS ieS = new ZI.IeS(i2) { // from class: o.ceT
private int a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8954dab.jNh) obj).b(this.a);
}
{
this.a = i2;
}
};
if (c6915ceS.f == 0) {
int i4 = f + 3;
i = i4 % 128;
int i5 = i4 % 2;
return;
}
int i6 = f + 121;
i = i6 % 128;
if (i6 % 2 != 0) {
ieS.e(c6915ceS.f);
return;
}
ieS.e(c6915ceS.f);
Object obj = null;
obj.hashCode();
throw null;
}
@Override // com.scb.phone.view.adapter.ntb.selectaccount.SelectAccountAdapter.HBt
public final void d(int i2) {
int i3 = 2 % 2;
int i4 = i + 119;
f = i4 % 128;
int i5 = i4 % 2;
QKH qkh = (QKH) d(new Object[]{this}, 1302080578, -1302080577, System.identityHashCode(this));
if (getActivity() != null) {
int i6 = i + 115;
f = i6 % 128;
int i7 = i6 % 2;
qkh.c(((BaseActivity) getActivity()).scbAnalytics, "ekyc_savingaccountdetail");
}
List<SL> list = this.selectAccountPresenter.a;
SL sl = list != null ? list.get(i2) : null;
if (sl == null) {
return;
}
Context context = getContext();
String str = sl.b;
Object[] objArr = new Object[1];
m((char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), ViewConfiguration.getTouchSlop() >> 8, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 1, objArr);
startActivity(TouchPointAccountDetailActivity.ajF_(context, str, ((String) objArr[0]).intern()));
}
@Override // o.InterfaceC8954dab.jNh
public final void b(int i2) {
int i3 = 2 % 2;
SelectPurposeFragment selectPurposeFragment = new SelectPurposeFragment();
AbstractC13482fbE a = getChildFragmentManager().a();
a.b(R.id.select_account_containner, selectPurposeFragment, null, 2);
String concat = "product_select_purpose".concat(String.valueOf(i2));
if (!(!a.d)) {
int i4 = i + 81;
f = i4 % 128;
int i5 = i4 % 2;
a.a = true;
a.m = concat;
a.b();
int i6 = i + 3;
f = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 35 / 0;
return;
}
return;
}
throw new IllegalStateException("This FragmentTransaction is not allowed to be added to the back stack.");
}
public static /* synthetic */ void aww_(DialogInterface dialogInterface) {
int i2 = 2 % 2;
int i3 = i + 19;
f = i3 % 128;
int i4 = i3 % 2;
dialogInterface.dismiss();
int i5 = i + 33;
f = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 58 / 0;
}
}
private void f() {
int i2 = 2 % 2;
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.ntb_pop_up_title_exit).d(R.string.ntb_pop_up_message_exit), Integer.valueOf(R.string.cancel), new DialogInterface.OnClickListener() { // from class: o.fro
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i3) {
SelectAccountFragment.aww_(dialogInterface);
}
}})).aoT_(R.string.ok, new DialogInterface.OnClickListener(this) { // from class: o.frr
private SelectAccountFragment c;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i3) {
SelectAccountFragment.awv_(this.c, dialogInterface);
}
{
this.c = this;
}
}).show();
int i3 = i + 23;
f = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
protected void d() {
int i2 = 2 % 2;
Object obj = null;
if (this.d) {
C12912fKx.d((WeakReference<BaseActivity>) new WeakReference((BaseActivity) getActivity()));
int i3 = f + 5;
i = i3 % 128;
if (i3 % 2 == 0) {
throw null;
}
return;
}
getActivity().finish();
int i4 = i + 1;
f = i4 % 128;
if (i4 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
public final void h() {
int i2 = 2 % 2;
if (getChildFragmentManager().t() != 0) {
getChildFragmentManager().H();
this.j.av_();
int i3 = f + 115;
i = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 39 / 0;
return;
}
return;
}
int i5 = i + 27;
f = i5 % 128;
if (i5 % 2 == 0) {
f();
} else {
f();
throw null;
}
}
private static /* synthetic */ Object e(Object[] objArr) {
SelectAccountFragment selectAccountFragment = (SelectAccountFragment) objArr[0];
int i2 = 2 % 2;
QKH qkh = new QKH();
InterfaceC8954dab.jbe jbeVar = selectAccountFragment.c;
if (jbeVar != null) {
int i3 = i + 65;
f = i3 % 128;
if (i3 % 2 != 0) {
String e = jbeVar.e();
selectAccountFragment.selectAccountPresenter.d.d.e();
qkh.d("source", e);
"touchpoint".equals(e);
throw null;
}
String e2 = jbeVar.e();
String e3 = selectAccountFragment.selectAccountPresenter.d.d.e();
qkh.d("source", e2);
if ("touchpoint".equals(e2)) {
int i4 = f + 105;
i = i4 % 128;
if (i4 % 2 == 0) {
qkh.d("customer_group", e3);
int i5 = 84 / 0;
} else {
qkh.d("customer_group", e3);
}
}
} else if (selectAccountFragment.d) {
int i6 = f + 89;
i = i6 % 128;
int i7 = i6 % 2;
C6915ceS c6915ceS = selectAccountFragment.selectAccountPresenter;
if (i7 == 0) {
c6915ceS.d.d.e();
qkh.d("source", "touchpoint");
"touchpoint".equals("touchpoint");
throw null;
}
String e4 = c6915ceS.d.d.e();
qkh.d("source", "touchpoint");
if ("touchpoint".equals("touchpoint")) {
qkh.d("customer_group", e4);
}
}
return qkh;
}
@Override // o.fIY.saX
public final void e(final String str) {
boolean z;
int i2 = 2 % 2;
int i3 = f + 47;
i = i3 % 128;
if (i3 % 2 != 0) {
final C6915ceS c6915ceS = this.selectAccountPresenter;
int i4 = c6915ceS.e;
List<SL> list = c6915ceS.a;
final SL sl = list != null ? list.get(i4) : null;
if (sl != null) {
int i5 = f + 27;
i = i5 % 128;
int i6 = i5 % 2;
z = true;
} else {
z = false;
}
ZI.IeS ieS = new ZI.IeS(c6915ceS, sl, str) { // from class: o.ceW
private SL b;
private C6915ceS c;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC8954dab.jNh jnh = (InterfaceC8954dab.jNh) obj;
jnh.b(this.b, this.c.e, this.d);
}
{
this.c = c6915ceS;
this.b = sl;
this.d = str;
}
};
if (z) {
if (!(!(c6915ceS.f != 0))) {
ieS.e(c6915ceS.f);
return;
}
return;
}
return;
}
C6915ceS c6915ceS2 = this.selectAccountPresenter;
int i7 = c6915ceS2.e;
List<SL> list2 = c6915ceS2.a;
throw null;
}
public void b(SL sl, int i2, String str) {
int i3 = 2 % 2;
int i4 = f + 9;
i = i4 % 128;
int i5 = i4 % 2;
AbstractC13482fbE a = getChildFragmentManager().a();
a.b(R.id.select_account_containner, EkycProductTermConditionFragment.e(sl.b, str), null, 2);
String concat = "product_term_cond".concat(String.valueOf(i2));
if (a.d) {
a.a = true;
a.m = concat;
int i6 = f + 43;
i = i6 % 128;
int i7 = i6 % 2;
a.b();
int i8 = f + 5;
i = i8 % 128;
int i9 = i8 % 2;
return;
}
throw new IllegalStateException("This FragmentTransaction is not allowed to be added to the back stack.");
}
private /* synthetic */ void awx_(DialogInterface dialogInterface) {
d(new Object[]{this, dialogInterface}, -1536588469, 1536588469, System.identityHashCode(this));
}
private QKH g() {
return (QKH) d(new Object[]{this}, 1302080578, -1302080577, System.identityHashCode(this));
}
public static /* synthetic */ void awv_(SelectAccountFragment selectAccountFragment, DialogInterface dialogInterface) {
int i2 = 2 % 2;
int i3 = f + 81;
i = i3 % 128;
int i4 = i3 % 2;
d(new Object[]{selectAccountFragment, dialogInterface}, -1536588469, 1536588469, System.identityHashCode(selectAccountFragment));
int i5 = i + 59;
f = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
}