what-the-bank/sources/com/scb/phone/view/fragment/financialmall/FinancialMallLandingFragmen...

643 lines
22 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.financialmall;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.media.AudioTrack;
import android.net.Uri;
import android.os.Bundle;
import android.os.Process;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.LinearLayoutCompat;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.ButterKnife;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.scb.phone.R;
import com.scb.phone.view.activity.easycash.EasycashLoanTrackActivity;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.financialmall.FinancialMallLandingFragment;
import com.scb.phone.view.fragment.transferandpay.ContextualAdsFragment;
import java.lang.reflect.Method;
import java.util.List;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractC14961gcz;
import o.C0375Fe;
import o.C12258eun;
import o.C14957gcv;
import o.C5002bkn;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9281dgl;
import o.MG;
import o.MH;
import o.MJ;
import o.MK;
import o.RHA;
import o.fKI;
import o.fZZ;
import o.guQ;
import o.pug;
import o.qeC;
import o.xzZ;
import o.zUI;
/* loaded from: classes5.dex */
public final class FinancialMallLandingFragment extends Hilt_FinancialMallLandingFragment implements InterfaceC9281dgl.IeS, MJ {
public static final RVV d;
private static int g;
private static int j;
private final InterfaceC13393fZL c;
private C12258eun i;
@InterfaceC13391fZD
public C5002bkn presenter;
private static final byte[] $$a = {94, -19, ISOFileInfo.FCP_BYTE, 2};
private static final int $$b = 217;
private static int $10 = 0;
private static int $11 = 1;
private static int f = 0;
public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) {
int i4 = (i * 465) + (i2 * (-463));
int i5 = ~i2;
int i6 = ~i3;
int i7 = ~(i5 | i6);
int i8 = ~(i5 | i);
int i9 = i4 + (((~(i6 | i)) | i7 | i8) * 464) + ((i5 | (~i) | i3) * (-464)) + (((~(i | i3)) | i8) * 464);
if (i9 == 1) {
return b(objArr);
}
if (i9 != 2) {
return e(objArr);
}
FinancialMallLandingFragment financialMallLandingFragment = (FinancialMallLandingFragment) objArr[0];
List list = (List) objArr[1];
int i10 = 2 % 2;
int i11 = g + 31;
f = i11 % 128;
int i12 = i11 % 2;
C14957gcv.e(list, "");
financialMallLandingFragment.f().d.setVisibility(0);
ContextualAdsFragment.IeS ieS = ContextualAdsFragment.d;
fKI.e(financialMallLandingFragment, ContextualAdsFragment.IeS.a(null, list, "ADS_FINANCIAL_MALL_TYPE", "financialmall_landing_banner", true), R.id.fl_fragment_contextual_ads);
int i13 = g + 115;
f = i13 % 128;
int i14 = i13 % 2;
return null;
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002d). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void o(short r7, int r8, short r9, java.lang.Object[] r10) {
/*
int r7 = r7 * 3
int r7 = 3 - r7
int r9 = r9 * 7
int r9 = r9 + 69
int r8 = r8 * 3
int r8 = 1 - r8
byte[] r0 = com.scb.phone.view.fragment.financialmall.FinancialMallLandingFragment.$$a
byte[] r1 = new byte[r8]
r2 = 0
if (r0 != 0) goto L16
r3 = r8
r5 = r2
goto L2d
L16:
r3 = r2
L17:
byte r4 = (byte) r9
int r5 = r3 + 1
r1[r3] = r4
int r7 = r7 + 1
if (r5 != r8) goto L28
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L28:
r3 = r0[r7]
r6 = r3
r3 = r9
r9 = r6
L2d:
int r9 = -r9
int r9 = r9 + r3
r3 = r5
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.financialmall.FinancialMallLandingFragment.o(short, int, short, java.lang.Object[]):void");
}
public FinancialMallLandingFragment() {
HBt hBt = new HBt(this);
C14957gcv.e(hBt, "");
this.c = new fZZ(hBt);
}
/* loaded from: classes5.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<RHA> {
private FinancialMallLandingFragment d;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ RHA invoke() {
View inflate = this.d.getLayoutInflater().inflate(R.layout.2131559658, (ViewGroup) null, false);
int i = R.id.fl_container_tracking_status;
FrameLayout frameLayout = (FrameLayout) qeC.e(inflate, R.id.fl_container_tracking_status);
if (frameLayout != null) {
i = R.id.fl_fragment_contextual_ads;
FrameLayout frameLayout2 = (FrameLayout) qeC.e(inflate, R.id.fl_fragment_contextual_ads);
if (frameLayout2 != null) {
i = R.id.iv_tracking_status_background;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_tracking_status_background);
if (imageView != null) {
i = R.id.ll_layout_banner;
LinearLayoutCompat linearLayoutCompat = (LinearLayoutCompat) qeC.e(inflate, R.id.ll_layout_banner);
if (linearLayoutCompat != null) {
NestedScrollView nestedScrollView = (NestedScrollView) inflate;
i = R.id.rv_financial_mall;
RecyclerView recyclerView = (RecyclerView) qeC.e(inflate, R.id.rv_financial_mall);
if (recyclerView != null) {
i = R.id.tv_banner_title;
AppCompatTextView appCompatTextView = (AppCompatTextView) qeC.e(inflate, R.id.tv_banner_title);
if (appCompatTextView != null) {
i = R.id.tv_tracking_status;
TextView textView = (TextView) qeC.e(inflate, R.id.tv_tracking_status);
if (textView != null) {
RHA rha = new RHA(nestedScrollView, frameLayout, frameLayout2, imageView, linearLayoutCompat, nestedScrollView, recyclerView, appCompatTextView, textView);
C14957gcv.c(rha, "");
return rha;
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(FinancialMallLandingFragment financialMallLandingFragment) {
super(0);
this.d = financialMallLandingFragment;
}
}
private final RHA f() {
int i = 2 % 2;
int i2 = g + 29;
f = i2 % 128;
if (i2 % 2 != 0) {
Object obj = null;
obj.hashCode();
throw null;
}
RHA rha = (RHA) this.c.e();
int i3 = f + 53;
g = i3 % 128;
int i4 = i3 % 2;
return rha;
}
private C5002bkn n() {
int i = 2 % 2;
int i2 = f + 7;
int i3 = i2 % 128;
g = i3;
int i4 = i2 % 2;
C5002bkn c5002bkn = this.presenter;
Object obj = null;
if (c5002bkn == null) {
C14957gcv.a("");
return null;
}
int i5 = i3 + 11;
int i6 = i5 % 128;
f = i6;
int i7 = i5 % 2;
int i8 = i6 + 57;
g = i8 % 128;
if (i8 % 2 != 0) {
return c5002bkn;
}
obj.hashCode();
throw null;
}
@Override // androidx.fragment.app.Fragment
public final void onCreate(Bundle bundle) {
int i = 2 % 2;
int i2 = f + 9;
g = i2 % 128;
if (i2 % 2 == 0) {
super.onCreate(bundle);
c(new Object[]{this}, -1365824624, 1365824625, System.identityHashCode(this));
int i3 = 72 / 0;
} else {
super.onCreate(bundle);
c(new Object[]{this}, -1365824624, 1365824625, System.identityHashCode(this));
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int i = 2 % 2;
int i2 = g + 5;
f = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(layoutInflater, "");
((BaseFragment) this).a = ButterKnife.c(this, f().a);
n().e((C5002bkn) this);
NestedScrollView nestedScrollView = f().a;
C14957gcv.c(nestedScrollView, "");
NestedScrollView nestedScrollView2 = nestedScrollView;
int i4 = f + 115;
g = i4 % 128;
int i5 = i4 % 2;
return nestedScrollView2;
}
/* JADX WARN: Code restructure failed: missing block: B:17:0x0071, code lost:
if (r9.c() != false) goto L27;
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x009a, code lost:
r9.d();
*/
/* JADX WARN: Code restructure failed: missing block: B:24:0x007a, code lost:
r2 = r9.e;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x007c, code lost:
if (r2 == null) goto L43;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x007e, code lost:
r3 = com.scb.phone.view.fragment.financialmall.FinancialMallLandingFragment.f + 11;
com.scb.phone.view.fragment.financialmall.FinancialMallLandingFragment.g = r3 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0087, code lost:
if ((r3 % 2) != 0) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x0089, code lost:
r9.d(r2);
r9.b();
r9 = 41 / 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x0093, code lost:
r9.d(r2);
r9.b();
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x0078, code lost:
if (r9.c() != false) goto L27;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0035, code lost:
if (r3 == null) goto L11;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ java.lang.Object e(java.lang.Object[] r9) {
/*
Method dump skipped, instructions count: 223
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.financialmall.FinancialMallLandingFragment.e(java.lang.Object[]):java.lang.Object");
}
private final void i() {
int i = 2 % 2;
f().c.setOnClickListener(new View.OnClickListener(this) { // from class: o.eZe
private FinancialMallLandingFragment c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
FinancialMallLandingFragment.c(this.c);
}
{
this.c = this;
}
});
int i2 = g + 77;
f = i2 % 128;
int i3 = i2 % 2;
}
private static final void a(FinancialMallLandingFragment financialMallLandingFragment) {
int i = 2 % 2;
int i2 = g + 13;
f = i2 % 128;
if (i2 % 2 != 0) {
C14957gcv.e(financialMallLandingFragment, "");
financialMallLandingFragment.h();
Object obj = null;
obj.hashCode();
throw null;
}
C14957gcv.e(financialMallLandingFragment, "");
financialMallLandingFragment.h();
int i3 = f + 45;
g = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 9 / 0;
}
}
private static /* synthetic */ Object b(Object[] objArr) {
FinancialMallLandingFragment financialMallLandingFragment = (FinancialMallLandingFragment) objArr[0];
int i = 2 % 2;
financialMallLandingFragment.i = new C12258eun(financialMallLandingFragment);
RecyclerView recyclerView = financialMallLandingFragment.f().e;
C12258eun c12258eun = financialMallLandingFragment.i;
if (c12258eun == null) {
C14957gcv.a("");
int i2 = f + 5;
g = i2 % 128;
int i3 = i2 % 2;
c12258eun = null;
}
recyclerView.setAdapter(c12258eun);
recyclerView.getContext();
recyclerView.setLayoutManager(new LinearLayoutManager(1, false));
int i4 = g + 57;
f = i4 % 128;
int i5 = i4 % 2;
return null;
}
@Override // o.InterfaceC9281dgl.IeS
public final void e(List<? extends MK> list) {
int i = 2 % 2;
C14957gcv.e(list, "");
C12258eun c12258eun = this.i;
if (c12258eun == null) {
int i2 = f + 111;
g = i2 % 128;
int i3 = i2 % 2;
C14957gcv.a("");
if (i3 == 0) {
int i4 = 2 / 0;
}
int i5 = f + 53;
g = i5 % 128;
int i6 = i5 % 2;
c12258eun = null;
}
C14957gcv.e(list, "");
c12258eun.c = list;
c12258eun.notifyDataSetChanged();
}
@Override // o.InterfaceC9281dgl.IeS
public final void b() {
int i = 2 % 2;
int i2 = g + 71;
f = i2 % 128;
int i3 = i2 % 2;
f().b.setVisibility(0);
int i4 = g + 107;
f = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9281dgl.IeS
public final void d() {
int i = 2 % 2;
int i2 = f + 39;
g = i2 % 128;
f().d.setVisibility(i2 % 2 == 0 ? 12 : 8);
}
private final void h() {
int i = 2 % 2;
v("financialmall_landing_status_tracking");
EasycashLoanTrackActivity.LWm lWm = EasycashLoanTrackActivity.b;
Context requireContext = requireContext();
C14957gcv.c(requireContext, "");
C14957gcv.e(requireContext, "");
requireContext.startActivity(new Intent(requireContext, (Class<?>) EasycashLoanTrackActivity.class));
int i2 = g + 19;
f = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
private static void m(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) {
int i4 = 2 % 2;
zUI zui = new zUI();
char[] cArr2 = new char[i];
zui.d = 0;
int i5 = $11 + 119;
$10 = i5 % 128;
int i6 = i5 % 2;
while (zui.d < i) {
int i7 = $11 + 35;
$10 = i7 % 128;
int i8 = i7 % 2;
zui.c = cArr[zui.d];
cArr2[zui.d] = (char) (i3 + zui.c);
int i9 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i9]), Integer.valueOf(j)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c((-16777073) - Color.rgb(0, 0, 0), 8 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) Color.green(0));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
o(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(880493502, obj);
}
cArr2[i9] = ((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((KeyEvent.getMaxKeyCode() >> 16) + 342, 5 - Color.alpha(0), (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
o(b3, b4, (byte) (b4 + 1), 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 (i2 > 0) {
int i10 = $10 + 67;
$11 = i10 % 128;
int i11 = i10 % 2;
zui.a = i2;
char[] cArr3 = new char[i];
System.arraycopy(cArr2, 0, cArr3, 0, i);
System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a);
System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a);
}
if (z) {
char[] cArr4 = new char[i];
zui.d = 0;
int i12 = $10 + 61;
$11 = i12 % 128;
int i13 = i12 % 2;
while (zui.d < i) {
cArr4[zui.d] = cArr2[(i - zui.d) - 1];
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(View.getDefaultSize(0, 0) + 342, 5 - (ViewConfiguration.getPressedStateDuration() >> 16), (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 0)));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
o(b5, b6, (byte) (b6 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
cArr2 = cArr4;
}
objArr[0] = new String(cArr2);
}
@Override // o.MJ
public final void a(MG mg) {
int i = 2 % 2;
int i2 = g + 105;
f = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(mg, "");
if (mg.c && mg.d.length() > 0) {
c("financialmall_landing_product_menu", new pug("product_name", mg.a));
c(mg.d);
}
int i4 = f + 17;
g = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.MJ
public final void b(MH mh) {
int i = 2 % 2;
int i2 = f + 1;
g = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(mh, "");
if (mh.b.length() > 0) {
c("financialmall_landing_interesting", new pug("interesting_name", mh.d));
c(mh.b);
int i4 = g + 67;
f = i4 % 128;
int i5 = i4 % 2;
}
}
private final void c(String str) {
int i = 2 % 2;
try {
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str));
Object[] objArr = new Object[1];
m(-Process.getGidForName(""), View.MeasureSpec.getMode(0) + 1, 62 - View.resolveSizeAndState(0, 0, 0), new char[]{0}, true, objArr);
intent.putExtra("inApp", ((String) objArr[0]).intern());
startActivity(intent);
int i2 = f + 73;
g = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 18 / 0;
}
} catch (Exception e) {
guQ.a("can't open deep link ".concat(String.valueOf(e)), new Object[0]);
}
}
static void g() {
j = 2015661610;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
c(new Object[]{this, view, bundle}, 566851565, -566851565, System.identityHashCode(this));
}
@Override // o.InterfaceC9281dgl.IeS
public final void a(List<C0375Fe> list) {
c(new Object[]{this, list}, -1980145122, 1980145124, System.identityHashCode(this));
}
private final void j() {
c(new Object[]{this}, -1365824624, 1365824625, System.identityHashCode(this));
}
static {
g = 1;
g();
d = new RVV((byte) 0);
int i = f + 119;
g = i % 128;
if (i % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public static /* synthetic */ void c(FinancialMallLandingFragment financialMallLandingFragment) {
int i = 2 % 2;
int i2 = g + 27;
f = i2 % 128;
int i3 = i2 % 2;
a(financialMallLandingFragment);
int i4 = g + 61;
f = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 65 / 0;
}
}
}