what-the-bank/sources/com/scb/phone/view/fragment/investment/InvestmentDetailsFragment.java

1749 lines
62 KiB
Java

package com.scb.phone.view.fragment.investment;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.net.Uri;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.SpannableString;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.FragmentActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.github.mikephil.charting.charts.PieChart;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.tabs.TabLayout;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.rd.PageIndicatorView;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.HomeActivity;
import com.scb.phone.view.activity.investment.assessment.AssessmentPopupActivity;
import com.scb.phone.view.activity.investment.assessment.RiskLevelAssessmentActivity;
import com.scb.phone.view.adapter.investment.InvestmentContextualAdsAdapter;
import com.scb.phone.view.adapter.investment.InvestmentDetailsAssetGroupListAdapter;
import com.scb.phone.view.custom.InfiniteRecyclerView;
import com.scb.phone.view.custom.common.CustomFundsActions;
import com.scb.phone.view.custom.common.FragmentWrapContentViewPager;
import com.scb.phone.view.custom.investment.CustomNewFundsActions;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.investment.InvestmentDetailsFragment;
import java.lang.reflect.Method;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import o.AbstractC0810PWv;
import o.C10457eEr;
import o.C12302eve;
import o.C12914fKz;
import o.C12923fLa;
import o.C14957gcv;
import o.C15715hv;
import o.C16180lwo;
import o.C17046tXv;
import o.C17764zak;
import o.C17809ztu;
import o.C2640aiS;
import o.C5797bzo;
import o.C5798bzp;
import o.Dfa;
import o.EnumC8951daY;
import o.IRS;
import o.Ikb;
import o.InterfaceC12848fIw;
import o.InterfaceC13391fZD;
import o.InterfaceC9378dic;
import o.OH;
import o.ON;
import o.OO;
import o.OQ;
import o.QFQ;
import o.QU;
import o.YV;
import o.ZI;
import o.cZG;
import o.fJF;
import o.fSJ;
import o.guQ;
import o.nMh;
import o.xzZ;
/* loaded from: classes5.dex */
public class InvestmentDetailsFragment extends Hilt_InvestmentDetailsFragment implements cZG.RVV, InterfaceC12848fIw, InterfaceC9378dic {
private OH c;
@BindView
CustomFundsActions cfaInvestmentDetails;
@BindView
CustomNewFundsActions cfaNewInvestmentDetails;
@BindView
ConstraintLayout csContextualAds;
private InvestmentContextualAdsAdapter d;
private boolean h = false;
private boolean i;
@InterfaceC13391fZD
public C5798bzp investmentDetailsPresenter;
@BindView
ImageView ivNetGainIndicator;
private boolean j;
@BindView
LinearLayout layoutIndicator;
@BindView
LinearLayout llLayoutCustomerName;
@BindView
LinearLayout llLayoutPieChartContainer;
@BindView
LinearLayout llLayoutRequireSuitProfile;
@BindView
LinearLayout llLayoutRetakeSuitProfile;
@BindView
LinearLayout llLayoutRiskProfile;
@BindView
LinearLayout llLayoutTransactionAwaiting;
@BindView
LinearLayout llLayoutTransactionTab;
@BindView
ListView lvAssetGroup;
@BindView
PieChart pcChart;
@BindView
PageIndicatorView pivAdsIndicator;
@BindView
InfiniteRecyclerView rvContextualAds;
@BindView
TabLayout tlInvestmentDetails;
@BindView
TextView tvCustomerName;
@BindView
TextView tvNetGain;
@BindView
TextView tvNetGainPercent;
@BindView
TextView tvRequireSuitDescription;
@BindView
TextView tvRetakeSuitDescription;
@BindView
TextView tvRiskExpiryDate;
@BindView
TextView tvRiskLevel;
@BindView
TextView tvRiskLevelIcon;
@BindView
TextView tvTotalBalance;
@BindView
FragmentWrapContentViewPager vpInvestmentDetails;
private static final byte[] $$a = {101, -49, 33, 116};
private static final int $$b = 235;
private static int $10 = 0;
private static int $11 = 1;
/* renamed from: o */
private static int f8044o = 0;
private static int n = 1;
private static char[] f = {35368, 49025, 49027, 49026};
private static char g = 35371;
public static /* synthetic */ Object a(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = ~i3;
switch ((i * 302) + (i2 * 603) + (((~(i4 | i5)) | i2) * (-602)) + (((~(i | i5 | i2)) | (~(i3 | i4)) | (~((~i2) | i4))) * (-301)) + ((~(i5 | i2)) * 301)) {
case 1:
return b(objArr);
case 2:
return e(objArr);
case 3:
return a(objArr);
case 4:
InvestmentDetailsFragment investmentDetailsFragment = (InvestmentDetailsFragment) objArr[0];
int i6 = 2 % 2;
int i7 = f8044o + 83;
n = i7 % 128;
int i8 = i7 % 2;
investmentDetailsFragment.l();
int i9 = f8044o + 7;
n = i9 % 128;
int i10 = i9 % 2;
return null;
case 5:
return d(objArr);
case 6:
return c(objArr);
case 7:
return h(objArr);
default:
InvestmentDetailsFragment investmentDetailsFragment2 = (InvestmentDetailsFragment) objArr[0];
int intValue = ((Number) objArr[1]).intValue();
int i11 = 2 % 2;
int i12 = n + 45;
f8044o = i12 % 128;
int i13 = i12 % 2;
investmentDetailsFragment2.j = true;
investmentDetailsFragment2.layoutIndicator.setVisibility(0);
investmentDetailsFragment2.pivAdsIndicator.setCount(intValue);
investmentDetailsFragment2.rvContextualAds.g();
int i14 = f8044o + 67;
n = i14 % 128;
int i15 = i14 % 2;
return null;
}
}
/* JADX WARN: Removed duplicated region for block: B:10:0x002a */
/* JADX WARN: Removed duplicated region for block: B:7:0x0022 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> B:4:0x002c). 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 q(byte r6, short r7, int r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 2
int r8 = r8 + 4
byte[] r0 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.$$a
int r6 = 120 - r6
int r7 = r7 * 3
int r1 = 1 - r7
byte[] r1 = new byte[r1]
r2 = 0
int r7 = 0 - r7
if (r0 != 0) goto L17
r3 = r7
r6 = r8
r4 = r2
goto L2c
L17:
r3 = r2
r5 = r8
r8 = r6
r6 = r5
L1b:
byte r4 = (byte) r8
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r7) goto L2a
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L2a:
r3 = r0[r6]
L2c:
int r8 = r8 + r3
int r6 = r6 + 1
r3 = r4
goto L1b
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.q(byte, short, int, java.lang.Object[]):void");
}
private static /* synthetic */ Object d(Object[] objArr) {
boolean booleanValue = ((Boolean) objArr[0]).booleanValue();
boolean booleanValue2 = ((Boolean) objArr[1]).booleanValue();
boolean booleanValue3 = ((Boolean) objArr[2]).booleanValue();
int i = 2 % 2;
InvestmentDetailsFragment investmentDetailsFragment = new InvestmentDetailsFragment();
Bundle bundle = new Bundle();
bundle.putBoolean("EXTRA_GO_TO_DISCOVER_TAB", booleanValue);
bundle.putBoolean("EXTRA_GO_TO_MY_ALERT_TAB", booleanValue2);
bundle.putBoolean("EXTRA_BACK_HOME", booleanValue3);
investmentDetailsFragment.setArguments(bundle);
int i2 = f8044o + 39;
n = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 49 / 0;
}
return investmentDetailsFragment;
}
@Override // androidx.fragment.app.Fragment
public void onCreate(Bundle bundle) {
int i = 2 % 2;
int i2 = n + 83;
f8044o = i2 % 128;
int i3 = i2 % 2;
super.onCreate(bundle);
if (bundle != null) {
this.j = bundle.getBoolean("IS_AUTO_SCROLL", false);
}
int i4 = f8044o + 95;
n = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
boolean z;
boolean z2;
boolean z3;
int i = 2 % 2;
int i2 = n + 95;
f8044o = i2 % 128;
int i3 = i2 % 2;
byte b = 0;
View inflate = layoutInflater.inflate(R.layout.2131559733, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
Bundle arguments = getArguments();
if (arguments != null) {
z2 = arguments.getBoolean("EXTRA_GO_TO_DISCOVER_TAB", false);
z3 = arguments.getBoolean("EXTRA_GO_TO_MY_ALERT_TAB", false);
z = arguments.getBoolean("EXTRA_BACK_HOME", false);
} else {
z = false;
z2 = false;
z3 = false;
}
this.investmentDetailsPresenter.e((C5798bzp) this);
this.investmentDetailsPresenter.b = z2;
this.investmentDetailsPresenter.e = z3;
this.investmentDetailsPresenter.a = z;
C5798bzp c5798bzp = this.investmentDetailsPresenter;
c5798bzp.c.a();
C17809ztu c17809ztu = c5798bzp.c;
c17809ztu.d(c17809ztu.i, new C5798bzp.Sts(c5798bzp, b));
C5798bzp c5798bzp2 = this.investmentDetailsPresenter;
ZI.IeS ieS = new ZI.IeS(c5798bzp2) { // from class: o.bzr
private C5798bzp e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5798bzp.c(this.e, (cZG.RVV) obj);
}
{
this.e = c5798bzp2;
}
};
if (c5798bzp2.f != 0) {
int i4 = n + 73;
f8044o = i4 % 128;
int i5 = i4 % 2;
ieS.e(c5798bzp2.f);
}
aa();
n();
return inflate;
}
@Override // androidx.fragment.app.Fragment
public void onResume() {
int i = 2 % 2;
int i2 = n + 81;
f8044o = i2 % 128;
int i3 = i2 % 2;
super.onResume();
if (this.j) {
int i4 = f8044o + 77;
n = i4 % 128;
int i5 = i4 % 2;
fSJ fsj = this.rvContextualAds.ac;
if (fsj != null) {
fsj.dispose();
}
this.rvContextualAds.g();
}
}
private static void p(int i, char[] cArr, byte b, Object[] objArr) {
int i2;
Object obj;
int i3 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = f;
Object obj2 = null;
int i4 = 7;
int i5 = 5;
if (cArr2 != null) {
int i6 = $11 + 93;
$10 = i6 % 128;
int i7 = i6 % 2;
int length = cArr2.length;
char[] cArr3 = new char[length];
int i8 = 0;
while (i8 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i8])};
Object obj3 = xzZ.y.get(-1987398494);
if (obj3 == null) {
Class cls = (Class) xzZ.c(298 - Drawable.resolveOpacity(0, 0), (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + i5, (char) (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
byte b2 = (byte) ($$b & i4);
byte b3 = (byte) (b2 - 3);
Object[] objArr3 = new Object[1];
q(b2, b3, b3, objArr3);
obj3 = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj3);
}
cArr3[i8] = ((Character) ((Method) obj3).invoke(null, objArr2)).charValue();
i8++;
i4 = 7;
i5 = 5;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(g)};
Object obj4 = xzZ.y.get(-1987398494);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(297 - ((byte) KeyEvent.getModifierMetaStateMask()), 5 - (ViewConfiguration.getJumpTapTimeout() >> 16), (char) Color.green(0));
byte b4 = (byte) ($$b & 7);
byte b5 = (byte) (b4 - 3);
Object[] objArr5 = new Object[1];
q(b4, b5, b5, objArr5);
obj4 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj4);
}
char charValue = ((Character) ((Method) obj4).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
int i9 = $11 + 65;
$10 = i9 % 128;
int i10 = i9 % 2;
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b);
} else {
i2 = i;
}
if (i2 > 1) {
irs.e = 0;
int i11 = $11 + 103;
$10 = i11 % 128;
int i12 = i11 % 2;
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b);
cArr4[irs.e + 1] = (char) (irs.c - b);
obj = obj2;
} else {
try {
Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs};
Object obj5 = xzZ.y.get(822107368);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c(ImageFormat.getBitsPerPixel(0) + 234, 4 - ((byte) KeyEvent.getModifierMetaStateMask()), (char) (Gravity.getAbsoluteGravity(0, 0) + 22024));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
q(b6, b7, b7, objArr7);
obj5 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj5);
}
if (((Integer) ((Method) obj5).invoke(null, objArr6)).intValue() == irs.j) {
try {
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj6 = xzZ.y.get(-1152873385);
if (obj6 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> 16) + 327, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 1));
byte b8 = (byte) ($$b & 6);
byte b9 = (byte) (b8 - 2);
Object[] objArr9 = new Object[1];
q(b8, b9, b9, objArr9);
obj6 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj6);
}
obj = null;
int intValue = ((Integer) ((Method) obj6).invoke(null, objArr8)).intValue();
int i13 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i13];
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
obj = null;
if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i14 = (irs.a * charValue) + irs.f;
int i15 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i14];
cArr4[irs.e + 1] = cArr2[i15];
} else {
int i16 = (irs.a * charValue) + irs.j;
int i17 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i16];
cArr4[irs.e + 1] = cArr2[i17];
}
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
irs.e += 2;
obj2 = obj;
}
}
for (int i18 = 0; i18 < i; i18++) {
cArr4[i18] = (char) (cArr4[i18] ^ 13722);
}
objArr[0] = new String(cArr4);
}
@Override // androidx.fragment.app.Fragment
public void onPause() {
fSJ fsj;
int i = 2 % 2;
int i2 = f8044o + 15;
n = i2 % 128;
if (i2 % 2 != 0) {
super.onPause();
if ((!this.j) || (fsj = this.rvContextualAds.ac) == null) {
return;
}
int i3 = n + 61;
f8044o = i3 % 128;
int i4 = i3 % 2;
fsj.dispose();
return;
}
super.onPause();
Object obj = null;
obj.hashCode();
throw null;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onSaveInstanceState(Bundle bundle) {
int i = 2 % 2;
int i2 = f8044o + 23;
n = i2 % 128;
int i3 = i2 % 2;
super.onSaveInstanceState(bundle);
bundle.putBoolean("IS_AUTO_SCROLL", this.j);
int i4 = n + 99;
f8044o = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
private Dfa b(List<OQ> list) {
int i = 2 % 2;
int size = list.size();
int[] iArr = new int[size];
ArrayList arrayList = new ArrayList();
int i2 = f8044o + 55;
n = i2 % 128;
int i3 = i2 % 2;
int i4 = 0;
for (int i5 = 0; i5 < list.size(); i5++) {
OQ oq = list.get(i5);
arrayList.add(new Ikb((int) Float.parseFloat(oq.e), oq.d, ""));
iArr[i5] = nMh.getColor(requireContext(), OQ.e(oq.b));
}
C16180lwo c16180lwo = new C16180lwo(arrayList, "");
c16180lwo.d = false;
c16180lwo.b = AbstractC0810PWv.d(1.0f);
QFQ qfq = new QFQ(40.0f);
c16180lwo.a.a = qfq.a;
c16180lwo.a.e = qfq.e;
c16180lwo.c = AbstractC0810PWv.d(5.0f);
ArrayList arrayList2 = new ArrayList();
while (i4 < size) {
int i6 = f8044o + 77;
n = i6 % 128;
if (i6 % 2 == 0) {
arrayList2.add(Integer.valueOf(iArr[i4]));
i4 += 101;
} else {
arrayList2.add(Integer.valueOf(iArr[i4]));
i4++;
}
}
c16180lwo.e = arrayList2;
Dfa dfa = new Dfa(c16180lwo);
dfa.b(new C12923fLa(this.pcChart, new DecimalFormat("###,###,###")));
dfa.j();
dfa.a();
dfa.Gy_(Typeface.createFromAsset(requireContext().getAssets(), "fonts/PSL001Pro.ttf"));
return dfa;
}
private void c(List<OQ> list) {
int i = 2 % 2;
if (list != null) {
int i2 = n + 57;
f8044o = i2 % 128;
int i3 = i2 % 2;
if (!list.isEmpty()) {
this.pcChart.setUsePercentValues(true);
this.pcChart.a.q = false;
this.pcChart.setExtraOffsets(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED);
this.pcChart.setPadding(10, 10, 10, 10);
this.pcChart.setDrawHoleEnabled(true);
this.pcChart.setHoleColor(-1);
this.pcChart.setHoleRadius(35.0f);
this.pcChart.setTransparentCircleRadius(35.0f);
this.pcChart.setRotationAngle(BitmapDescriptorFactory.HUE_RED);
this.pcChart.setRotationEnabled(false);
this.pcChart.setHighlightPerTapEnabled(false);
this.pcChart.setRotationAngle(270.0f);
this.pcChart.setData(b(list));
this.pcChart.k();
this.pcChart.d(C2640aiS.c);
this.lvAssetGroup.setAdapter((ListAdapter) new InvestmentDetailsAssetGroupListAdapter(getContext(), list));
this.pcChart.l().q = false;
this.pcChart.setDrawEntryLabels(false);
this.pcChart.setTranslationX(-10.0f);
this.pcChart.invalidate();
return;
}
}
this.llLayoutPieChartContainer.setVisibility(8);
int i4 = f8044o + 13;
n = i4 % 128;
int i5 = i4 % 2;
}
private static /* synthetic */ Object c(Object[] objArr) {
InvestmentDetailsFragment investmentDetailsFragment = (InvestmentDetailsFragment) objArr[0];
int i = 2 % 2;
int i2 = n + 61;
f8044o = i2 % 128;
int i3 = i2 % 2;
super.aa();
investmentDetailsFragment.setHasOptionsMenu(true);
investmentDetailsFragment.Y();
int i4 = f8044o + 49;
n = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 14 / 0;
}
return null;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
int i = 2 % 2;
int i2 = f8044o + 95;
int i3 = i2 % 128;
n = i3;
int i4 = i2 % 2;
C5798bzp c5798bzp = this.investmentDetailsPresenter;
if (c5798bzp != null) {
int i5 = i3 + 9;
f8044o = i5 % 128;
int i6 = i5 % 2;
c5798bzp.w_();
}
super.onDestroy();
int i7 = n + 95;
f8044o = i7 % 128;
int i8 = i7 % 2;
}
@Override // o.cZG.RVV
public final void c(String str) {
int i = 2 % 2;
FragmentActivity activity = getActivity();
if (activity != null) {
int i2 = f8044o + 97;
n = i2 % 128;
int i3 = i2 % 2;
c(this.c, this.i);
EnumC8951daY enumC8951daY = EnumC8951daY.ERROR;
if (getActivity() != null) {
int i4 = f8044o + 5;
n = i4 % 128;
int i5 = i4 % 2;
BaseActivity.a(new Object[]{(BaseActivity) getActivity(), activity, Integer.valueOf(R.id.investment_details_view), str, enumC8951daY}, 855668825, -855668822, R.id.investment_details_view);
}
}
}
@Override // o.cZG.RVV
public final void a(OH oh, boolean z) {
int i = 2 % 2;
int i2 = n + 119;
f8044o = i2 % 128;
int i3 = i2 % 2;
this.c = oh;
this.i = z;
c(oh, z);
int i4 = f8044o + 59;
n = i4 % 128;
int i5 = i4 % 2;
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
private void c(OH oh, boolean z) {
char c;
int i = 2 % 2;
int i2 = f8044o + 21;
n = i2 % 128;
int i3 = i2 % 2;
OO oo = oh.g;
this.tvTotalBalance.setText(oo.f);
this.ivNetGainIndicator.setImageResource(oo.g);
this.tvNetGain.setTextColor(nMh.getColor(requireContext(), oo.h));
this.tvNetGainPercent.setTextColor(nMh.getColor(requireContext(), oo.h));
this.tvNetGain.setText(String.format("%s%s", oo.a, oo.b));
this.tvNetGainPercent.setText(String.format("(%s%s%%)", oo.a, oo.c));
this.tvCustomerName.setText(oh.i.c);
this.llLayoutCustomerName.setVisibility(0);
String str = oh.i.g;
str.hashCode();
switch (str.hashCode()) {
case 48:
Object[] objArr = new Object[1];
p(View.MeasureSpec.getMode(0) + 1, new char[]{13808}, (byte) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 69), objArr);
if (str.equals(((String) objArr[0]).intern())) {
c = 0;
break;
}
c = 65535;
break;
case 49:
Object[] objArr2 = new Object[1];
p(1 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), new char[]{13769}, (byte) (31 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))), objArr2);
if (str.equals(((String) objArr2[0]).intern())) {
c = 1;
break;
}
c = 65535;
break;
case 50:
Object[] objArr3 = new Object[1];
p(1 - TextUtils.indexOf("", ""), new char[]{13793}, (byte) (58 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), objArr3);
if (str.equals(((String) objArr3[0]).intern())) {
int i4 = n + 89;
f8044o = i4 % 128;
int i5 = i4 % 2;
c = 2;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
if (c == 0 || c == 1) {
this.llLayoutCustomerName.setVisibility(8);
this.llLayoutRiskProfile.setVisibility(8);
a(oo);
} else if (c == 2) {
this.llLayoutCustomerName.setVisibility(0);
this.llLayoutRiskProfile.setVisibility(0);
a(oo);
b(oh, z);
}
C5798bzp c5798bzp = this.investmentDetailsPresenter;
ZI.IeS ieS = new ZI.IeS(c5798bzp) { // from class: o.bzm
private C5798bzp d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5798bzp.d(this.d, (cZG.RVV) obj);
}
{
this.d = c5798bzp;
}
};
if (c5798bzp.f != 0) {
int i6 = f8044o + 91;
n = i6 % 128;
int i7 = i6 % 2;
ieS.e(c5798bzp.f);
}
if (requireActivity() instanceof BaseActivity) {
((BaseActivity) requireActivity()).ar_();
}
C10457eEr.aqd_(this, new Intent("com.scb.phone/BROADCAST_INVESTMENT_DETAILS"));
if (!this.h) {
return;
}
g(R.string.investment_risk_assessment_renew_success);
this.h = false;
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x0024, code lost:
if ((!r4.f.equals("0.00")) != false) goto L22;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost:
if (r4.f.equals("0.00") == false) goto L22;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x002c, code lost:
r3.pcChart.setVisibility(8);
r4 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.n + 63;
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.f8044o = r4 % 128;
r4 = r4 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x003c, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0026, code lost:
c(r4.d);
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x002b, code lost:
return;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void a(o.OO r4) {
/*
r3 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.n
int r1 = r1 + 117
int r2 = r1 % 128
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.f8044o = r2
int r1 = r1 % r0
java.lang.String r2 = "0.00"
if (r1 == 0) goto L1c
java.lang.String r1 = r4.f
boolean r1 = r1.equals(r2)
r2 = 3
int r2 = r2 / 0
if (r1 != 0) goto L2c
goto L26
L1c:
java.lang.String r1 = r4.f
boolean r1 = r1.equals(r2)
r1 = r1 ^ 1
if (r1 == 0) goto L2c
L26:
java.util.List<o.OQ> r4 = r4.d
r3.c(r4)
return
L2c:
com.github.mikephil.charting.charts.PieChart r4 = r3.pcChart
r1 = 8
r4.setVisibility(r1)
int r4 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.n
int r4 = r4 + 63
int r1 = r4 % 128
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.f8044o = r1
int r4 = r4 % r0
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.a(o.OO):void");
}
private void b(OH oh, boolean z) {
int i = 2 % 2;
int i2 = f8044o + 29;
n = i2 % 128;
int i3 = i2 % 2;
this.llLayoutRequireSuitProfile.setVisibility(8);
if (z) {
this.tvRiskLevelIcon.setVisibility(0);
this.tvRiskLevelIcon.setText(oh.i.n);
} else {
this.tvRiskLevelIcon.setVisibility(8);
int i4 = n + 17;
f8044o = i4 % 128;
int i5 = i4 % 2;
}
this.tvRiskLevel.setText(oh.i.f);
this.tvRiskExpiryDate.setText(oh.i.j);
}
@Override // o.cZG.RVV
public final void a() {
int i = 2 % 2;
C5798bzp c5798bzp = this.investmentDetailsPresenter;
c5798bzp.c.e();
C17809ztu c17809ztu = c5798bzp.c;
c17809ztu.d(c17809ztu.i, new C5798bzp.Sts(c5798bzp, (byte) 0));
this.h = true;
int i2 = f8044o + 33;
n = i2 % 128;
int i3 = i2 % 2;
}
private void m() {
int i = 2 % 2;
this.vpInvestmentDetails.setAdapter(new C12302eve(getFragmentManager(), getContext()));
this.tlInvestmentDetails.setupWithViewPager(this.vpInvestmentDetails);
int i2 = n + 125;
f8044o = i2 % 128;
int i3 = i2 % 2;
}
private void g(int i) {
int i2 = 2 % 2;
int i3 = n + 43;
f8044o = i3 % 128;
int i4 = i3 % 2;
FragmentActivity activity = getActivity();
if (getUserVisibleHint()) {
int i5 = n + 43;
f8044o = i5 % 128;
int i6 = i5 % 2;
if (activity != null) {
C12914fKz.e(new Object[]{activity, Integer.valueOf(R.id.view_group_root), Integer.valueOf(R.drawable.ic_check_circle_white_24dp), getString(i), Integer.valueOf(R.color.f13832131100891)}, 1259223802, -1259223796, R.id.view_group_root);
}
}
int i7 = n + 19;
f8044o = i7 % 128;
if (i7 % 2 != 0) {
int i8 = 15 / 0;
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onActivityResult(int i, int i2, Intent intent) {
int i3 = 2 % 2;
if (i == 7000) {
int i4 = n + 11;
f8044o = i4 % 128;
if (i4 % 2 == 0) {
a(new Object[]{this, Integer.valueOf(i2)}, 1891540160, -1891540158, i2);
return;
}
a(new Object[]{this, Integer.valueOf(i2)}, 1891540160, -1891540158, i2);
Object obj = null;
obj.hashCode();
throw null;
}
if (i != 321) {
if (i == 322) {
aus_(i2, intent);
}
} else {
int i5 = f8044o + 31;
n = i5 % 128;
int i6 = i5 % 2;
aut_(i2, intent);
}
}
private static /* synthetic */ Object e(Object[] objArr) {
byte b = 0;
InvestmentDetailsFragment investmentDetailsFragment = (InvestmentDetailsFragment) objArr[0];
int intValue = ((Number) objArr[1]).intValue();
int i = 2 % 2;
int i2 = f8044o + 57;
n = i2 % 128;
int i3 = i2 % 2;
if (intValue == 0) {
investmentDetailsFragment.c(investmentDetailsFragment.c, investmentDetailsFragment.i);
if (investmentDetailsFragment.getActivity() instanceof BaseActivity) {
int i4 = f8044o + 105;
n = i4 % 128;
int i5 = i4 % 2;
((BaseActivity) investmentDetailsFragment.getActivity()).ar_();
return null;
}
} else if (intValue == -1) {
C5798bzp c5798bzp = investmentDetailsFragment.investmentDetailsPresenter;
c5798bzp.c.d();
C17809ztu c17809ztu = c5798bzp.c;
c17809ztu.d(c17809ztu.i, new C5798bzp.IeS(c5798bzp, b));
}
return null;
}
private void aut_(int i, Intent intent) {
int i2 = 2 % 2;
char c = 65535;
if (i == -1) {
int i3 = f8044o + 101;
n = i3 % 128;
if (i3 % 2 == 0) {
intent.getStringExtra("riskPopupResult");
throw null;
}
String stringExtra = intent.getStringExtra("riskPopupResult");
if (stringExtra != null) {
stringExtra.hashCode();
switch (stringExtra.hashCode()) {
case -979979291:
if (!(!stringExtra.equals("newRefreshInvestments"))) {
c = 0;
break;
}
break;
case -470334292:
if (stringExtra.equals("oldRefreshInvestments")) {
c = 1;
break;
}
break;
case -16474303:
if (!stringExtra.equals("oldSelectLevel")) {
int i4 = f8044o + 117;
n = i4 % 128;
int i5 = i4 % 2;
break;
} else {
c = 2;
break;
}
case 700509736:
if (!stringExtra.equals("newSelectLevel")) {
int i6 = n + 79;
f8044o = i6 % 128;
int i7 = i6 % 2;
break;
} else {
c = 3;
break;
}
}
if (c == 0) {
this.investmentDetailsPresenter.e(true);
return;
}
if (c == 1) {
this.investmentDetailsPresenter.e(false);
int i8 = n + 57;
f8044o = i8 % 128;
if (i8 % 2 != 0) {
throw null;
}
return;
}
if (c != 2) {
if (c != 3) {
return;
}
C5798bzp c5798bzp = this.investmentDetailsPresenter;
C5797bzo c5797bzo = new C5797bzo(c5798bzp, true, false);
if (c5798bzp.f != 0) {
int i9 = f8044o + 109;
n = i9 % 128;
int i10 = i9 % 2;
c5797bzo.e(c5798bzp.f);
return;
}
return;
}
C5798bzp c5798bzp2 = this.investmentDetailsPresenter;
C5797bzo c5797bzo2 = new C5797bzo(c5798bzp2, false, false);
if (c5798bzp2.f != 0) {
int i11 = n + 107;
f8044o = i11 % 128;
int i12 = i11 % 2;
c5797bzo2.e(c5798bzp2.f);
int i13 = n + 121;
f8044o = i13 % 128;
if (i13 % 2 != 0) {
int i14 = 4 % 3;
}
}
}
}
}
private void aus_(int i, Intent intent) {
int i2 = 2 % 2;
if (i == -1) {
C5798bzp c5798bzp = this.investmentDetailsPresenter;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bzn
@Override // o.ZI.IeS
public final void e(Object obj) {
((cZG.RVV) obj).b();
}
};
if (c5798bzp.f != 0) {
ieS.e(c5798bzp.f);
return;
}
return;
}
if (intent == null || !intent.getBooleanExtra("showPopup", false)) {
return;
}
int i3 = n + 47;
f8044o = i3 % 128;
if (i3 % 2 != 0) {
this.investmentDetailsPresenter.a();
int i4 = 28 / 0;
} else {
this.investmentDetailsPresenter.a();
}
int i5 = f8044o + 25;
n = i5 % 128;
int i6 = i5 % 2;
}
private SpannableString aur_(String str, String str2) {
int i = 2 % 2;
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append("\n");
SpannableString Qo_ = C17046tXv.Qo_(sb.toString(), str2, getResources(), new C17046tXv.HBt(this) { // from class: o.ffS
private InvestmentDetailsFragment c;
@Override // o.C17046tXv.HBt
public final void e() {
InvestmentDetailsFragment.a(new Object[]{this.c}, 33139855, -33139851, (int) System.currentTimeMillis());
}
{
this.c = this;
}
}, true, 0, C15715hv.LWm.scb_purple);
int i2 = n + 91;
f8044o = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 93 / 0;
}
return Qo_;
}
private /* synthetic */ void l() {
int i = 2 % 2;
int i2 = f8044o + 23;
n = i2 % 128;
int i3 = i2 % 2;
this.investmentDetailsPresenter.d();
int i4 = n + 37;
f8044o = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:27:0x003e, code lost:
if (r7.equals("BUTTON_TRANSACTIONS") != false) goto L48;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ java.lang.Object b(java.lang.Object[] r7) {
/*
r0 = 0
r1 = r7[r0]
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment r1 = (com.scb.phone.view.fragment.investment.InvestmentDetailsFragment) r1
r2 = 1
r7 = r7[r2]
java.lang.String r7 = (java.lang.String) r7
r3 = 2
int r4 = r3 % r3
r7.hashCode()
int r4 = r7.hashCode()
r5 = 3
switch(r4) {
case -1477774519: goto L4c;
case -1432358687: goto L42;
case -747110078: goto L38;
case -278559890: goto L22;
default: goto L18;
}
L18:
int r7 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.n
int r7 = r7 + 103
int r4 = r7 % 128
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.f8044o = r4
int r7 = r7 % r3
goto L5f
L22:
java.lang.String r4 = "BUTTON_PURCHASE"
boolean r7 = r7.equals(r4)
if (r7 == 0) goto L5f
int r7 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.f8044o
int r7 = r7 + 45
int r4 = r7 % 128
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.n = r4
int r7 = r7 % r3
if (r7 != 0) goto L36
goto L40
L36:
r7 = r5
goto L60
L38:
java.lang.String r4 = "BUTTON_TRANSACTIONS"
boolean r7 = r7.equals(r4)
if (r7 == 0) goto L5f
L40:
r7 = r3
goto L60
L42:
java.lang.String r4 = "BUTTON_SWITCH"
boolean r7 = r7.equals(r4)
if (r7 == 0) goto L5f
r7 = r2
goto L60
L4c:
java.lang.String r4 = "BUTTON_REDEEM"
boolean r7 = r7.equals(r4)
if (r7 == 0) goto L5f
int r7 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.n
int r7 = r7 + 61
int r4 = r7 % 128
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.f8044o = r4
int r7 = r7 % r3
r7 = r0
goto L60
L5f:
r7 = -1
L60:
java.lang.String r4 = "SELECTED_CLIENT_LIST_POSITION"
r6 = 0
if (r7 == 0) goto L9e
if (r7 == r2) goto L8c
if (r7 == r3) goto L7e
if (r7 == r5) goto L6c
return r6
L6c:
android.content.Intent r7 = new android.content.Intent
android.content.Context r2 = r1.getContext()
java.lang.Class<com.scb.phone.view.activity.investment.purchase.FundPurchaseLandingActivity> r3 = com.scb.phone.view.activity.investment.purchase.FundPurchaseLandingActivity.class
r7.<init>(r2, r3)
r7.putExtra(r4, r0)
r1.startActivity(r7)
return r6
L7e:
android.content.Context r7 = r1.requireContext()
o.mfY r0 = o.mfY.MF_TRANSACTIONS_HISTORY_PORTFOLIO
android.content.Intent r7 = com.scb.phone.view.activity.investment.InvestmentWebViewActivity.agS_(r7, r0)
r1.startActivity(r7)
return r6
L8c:
android.content.Intent r7 = new android.content.Intent
android.content.Context r2 = r1.getContext()
java.lang.Class<com.scb.phone.view.activity.investment.fundswitch.FundSwitchLandingActivity> r3 = com.scb.phone.view.activity.investment.fundswitch.FundSwitchLandingActivity.class
r7.<init>(r2, r3)
r7.putExtra(r4, r0)
r1.startActivity(r7)
return r6
L9e:
android.content.Intent r7 = new android.content.Intent
android.content.Context r2 = r1.getContext()
java.lang.Class<com.scb.phone.view.activity.investment.redeem.FundRedeemLandingActivity> r3 = com.scb.phone.view.activity.investment.redeem.FundRedeemLandingActivity.class
r7.<init>(r2, r3)
r7.putExtra(r4, r0)
r1.startActivity(r7)
return r6
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.b(java.lang.Object[]):java.lang.Object");
}
@Override // o.cZG.RVV
public final void e(ON on) {
int i = 2 % 2;
int i2 = f8044o + 121;
n = i2 % 128;
int i3 = i2 % 2;
startActivityForResult((Intent) AssessmentPopupActivity.e(new Object[]{getContext(), on}, 480974176, -480974175, (int) System.currentTimeMillis()), 321);
int i4 = n + 35;
f8044o = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cZG.RVV
public final void d(String str, YV yv, boolean z) {
int i = 2 % 2;
int i2 = f8044o + 125;
n = i2 % 128;
int i3 = i2 % 2;
if (getContext() != null) {
int i4 = n + 63;
f8044o = i4 % 128;
int i5 = i4 % 2;
startActivityForResult(RiskLevelAssessmentActivity.ahf_(getContext(), str, yv, Boolean.valueOf(z)), 322);
}
}
@Override // o.cZG.RVV
public final void c(int i) {
int i2 = 2 % 2;
int i3 = f8044o + 47;
n = i3 % 128;
int i4 = i3 % 2;
g(i);
if (i4 == 0) {
throw null;
}
int i5 = n + 3;
f8044o = i5 % 128;
int i6 = i5 % 2;
}
@Override // o.cZG.RVV
public final void d(ArrayList<QU> arrayList) {
int i = 2 % 2;
int i2 = n + 95;
f8044o = i2 % 128;
if (i2 % 2 != 0) {
InvestmentContextualAdsAdapter investmentContextualAdsAdapter = this.d;
C14957gcv.e(arrayList, "");
investmentContextualAdsAdapter.c.clear();
investmentContextualAdsAdapter.c.addAll(arrayList);
investmentContextualAdsAdapter.notifyDataSetChanged();
int i3 = 54 / 0;
} else {
InvestmentContextualAdsAdapter investmentContextualAdsAdapter2 = this.d;
C14957gcv.e(arrayList, "");
investmentContextualAdsAdapter2.c.clear();
investmentContextualAdsAdapter2.c.addAll(arrayList);
investmentContextualAdsAdapter2.notifyDataSetChanged();
}
int i4 = f8044o + 123;
n = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.cZG.RVV
public final void a(int i) {
int i2 = 2 % 2;
int i3 = f8044o + 61;
n = i3 % 128;
int i4 = i3 % 2;
this.csContextualAds.setVisibility(i);
int i5 = n + 25;
f8044o = i5 % 128;
if (i5 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0032, code lost:
if (r4 != null) goto L21;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x002b, code lost:
if (r4 != null) goto L21;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0034, code lost:
r1.startActivity((android.content.Intent) com.scb.phone.view.activity.investment.MutualFundsDataSharingTCActivity.e(new java.lang.Object[]{r4, java.lang.Boolean.valueOf(r2), java.lang.Boolean.valueOf(r7)}, -355100264, 355100267, (int) java.lang.System.currentTimeMillis()));
r4.finish();
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ java.lang.Object a(java.lang.Object[] r7) {
/*
r0 = 0
r1 = r7[r0]
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment r1 = (com.scb.phone.view.fragment.investment.InvestmentDetailsFragment) r1
r2 = 1
r2 = r7[r2]
java.lang.Boolean r2 = (java.lang.Boolean) r2
boolean r2 = r2.booleanValue()
r3 = 2
r7 = r7[r3]
java.lang.Boolean r7 = (java.lang.Boolean) r7
boolean r7 = r7.booleanValue()
int r4 = r3 % r3
int r4 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.f8044o
int r4 = r4 + 109
int r5 = r4 % 128
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.n = r5
int r4 = r4 % r3
if (r4 != 0) goto L2e
androidx.fragment.app.FragmentActivity r4 = r1.getActivity()
r5 = 27
int r5 = r5 / r0
if (r4 == 0) goto L57
goto L34
L2e:
androidx.fragment.app.FragmentActivity r4 = r1.getActivity()
if (r4 == 0) goto L57
L34:
java.lang.Boolean r0 = java.lang.Boolean.valueOf(r2)
java.lang.Boolean r7 = java.lang.Boolean.valueOf(r7)
java.lang.Object[] r7 = new java.lang.Object[]{r4, r0, r7}
long r5 = java.lang.System.currentTimeMillis()
int r0 = (int) r5
r2 = -355100264(0xffffffffead59998, float:-1.2911326E26)
r5 = 355100267(0x152a666b, float:3.441202E-26)
java.lang.Object r7 = com.scb.phone.view.activity.investment.MutualFundsDataSharingTCActivity.e(r7, r2, r5, r0)
android.content.Intent r7 = (android.content.Intent) r7
r1.startActivity(r7)
r4.finish()
L57:
int r7 = com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.f8044o
int r7 = r7 + 113
int r0 = r7 % 128
com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.n = r0
int r7 = r7 % r3
r7 = 0
return r7
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.investment.InvestmentDetailsFragment.a(java.lang.Object[]):java.lang.Object");
}
@Override // o.cZG.RVV
public final void g() {
int i = 2 % 2;
int i2 = n + 103;
f8044o = i2 % 128;
int i3 = i2 % 2;
this.llLayoutRequireSuitProfile.setVisibility(0);
this.tvRequireSuitDescription.setText(aur_(getString(R.string.mf_port_suit_toggle_require_suitability_test_description), getString(R.string.mf_port_suit_toggle_require_suitability_test_description_clickable)));
this.tvRequireSuitDescription.setMovementMethod(LinkMovementMethod.getInstance());
int i4 = f8044o + 107;
n = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 84 / 0;
}
}
@Override // o.cZG.RVV
public final void i() {
LinearLayout linearLayout;
int i;
int i2 = 2 % 2;
int i3 = f8044o + 25;
n = i3 % 128;
if (i3 % 2 == 0) {
linearLayout = this.llLayoutRequireSuitProfile;
i = 1;
} else {
linearLayout = this.llLayoutRequireSuitProfile;
i = 0;
}
linearLayout.setVisibility(i);
this.tvRequireSuitDescription.setText(R.string.auto_single_form_mf_portfolio_require_suitability_test);
}
@Override // o.cZG.RVV
public final void c() {
LinearLayout linearLayout;
int i;
int i2 = 2 % 2;
int i3 = n + 11;
f8044o = i3 % 128;
if (i3 % 2 != 0) {
linearLayout = this.llLayoutRequireSuitProfile;
i = 52;
} else {
linearLayout = this.llLayoutRequireSuitProfile;
i = 8;
}
linearLayout.setVisibility(i);
}
@Override // o.cZG.RVV
public final void o() {
int i = 2 % 2;
int i2 = f8044o + 69;
n = i2 % 128;
int i3 = i2 % 2;
this.llLayoutRetakeSuitProfile.setVisibility(0);
this.tvRetakeSuitDescription.setText(aur_(getString(R.string.mf_port_suit_toggle_retake_suitability_test_description), getString(R.string.mf_port_suit_toggle_retake_suitability_test_description_clickable)));
this.tvRetakeSuitDescription.setMovementMethod(LinkMovementMethod.getInstance());
int i4 = n + 79;
f8044o = i4 % 128;
int i5 = i4 % 2;
}
private static /* synthetic */ Object h(Object[] objArr) {
InvestmentDetailsFragment investmentDetailsFragment = (InvestmentDetailsFragment) objArr[0];
int i = 2 % 2;
int i2 = f8044o + 73;
n = i2 % 128;
int i3 = i2 % 2;
investmentDetailsFragment.llLayoutRetakeSuitProfile.setVisibility(8);
int i4 = f8044o + 25;
n = i4 % 128;
if (i4 % 2 != 0) {
return null;
}
throw null;
}
@Override // o.cZG.RVV
public final void k() {
int i = 2 % 2;
int i2 = n + 51;
f8044o = i2 % 128;
int i3 = i2 % 2;
v("mfport_suit_retake_or_complete_menu");
if (i3 != 0) {
int i4 = 49 / 0;
}
int i5 = f8044o + 103;
n = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
}
@Override // o.cZG.RVV
public final void j() {
CustomNewFundsActions customNewFundsActions;
int i;
int i2 = 2 % 2;
int i3 = f8044o + 65;
n = i3 % 128;
if (i3 % 2 == 0) {
customNewFundsActions = this.cfaNewInvestmentDetails;
i = 1;
} else {
customNewFundsActions = this.cfaNewInvestmentDetails;
i = 0;
}
customNewFundsActions.setVisibility(i);
this.llLayoutTransactionAwaiting.setVisibility(i);
this.cfaNewInvestmentDetails.setOnFundsActionsClickListener(this);
int i4 = f8044o + 103;
n = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
@Override // o.cZG.RVV
public final void h() {
CustomFundsActions customFundsActions;
int i = 2 % 2;
int i2 = n + 117;
f8044o = i2 % 128;
if (i2 % 2 != 0) {
this.cfaInvestmentDetails.setVisibility(0);
this.llLayoutTransactionTab.setVisibility(1);
customFundsActions = this.cfaInvestmentDetails;
} else {
this.cfaInvestmentDetails.setVisibility(0);
this.llLayoutTransactionTab.setVisibility(0);
customFundsActions = this.cfaInvestmentDetails;
}
customFundsActions.setOnCustomFundsActionsClickListener(this);
m();
}
@Override // o.cZG.RVV
public final void e() {
int i = 2 % 2;
int i2 = n + 33;
f8044o = i2 % 128;
int i3 = i2 % 2;
CustomNewFundsActions customNewFundsActions = this.cfaNewInvestmentDetails;
OH oh = this.c;
Object[] objArr = new Object[1];
p((ViewConfiguration.getJumpTapTimeout() >> 16) + 1, new char[]{13769}, (byte) (30 - (ViewConfiguration.getScrollDefaultDelay() >> 16)), objArr);
customNewFundsActions.setButtonEnabled("BUTTON_PURCHASE", ((String) objArr[0]).intern().equals(oh.i.b));
CustomNewFundsActions customNewFundsActions2 = this.cfaNewInvestmentDetails;
OH oh2 = this.c;
Object[] objArr2 = new Object[1];
p((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), new char[]{13769}, (byte) (Color.alpha(0) + 30), objArr2);
customNewFundsActions2.setButtonEnabled("BUTTON_REDEEM", ((String) objArr2[0]).intern().equals(oh2.i.d));
CustomNewFundsActions customNewFundsActions3 = this.cfaNewInvestmentDetails;
OH oh3 = this.c;
Object[] objArr3 = new Object[1];
p(-TextUtils.indexOf((CharSequence) "", '0'), new char[]{13769}, (byte) (29 - MotionEvent.axisFromString("")), objArr3);
customNewFundsActions3.setButtonEnabled("BUTTON_SWITCH", ((String) objArr3[0]).intern().equals(oh3.i.a));
this.cfaNewInvestmentDetails.setButtonEnabled("BUTTON_TRANSACTIONS", true);
int i4 = n + 57;
f8044o = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 63 / 0;
}
}
@Override // o.cZG.RVV
public final void f() {
int i = 2 % 2;
int i2 = f8044o + 99;
n = i2 % 128;
int i3 = i2 % 2;
this.cfaInvestmentDetails.setButtonEnabled("BUTTON_PURCHASE", this.c.i.b);
this.cfaInvestmentDetails.setButtonEnabled("BUTTON_REDEEM", this.c.i.d);
this.cfaInvestmentDetails.setButtonEnabled("BUTTON_SWITCH", this.c.i.a);
int i4 = n + 43;
f8044o = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cZG.RVV
public final void b() {
int i = 2 % 2;
int i2 = f8044o + 61;
n = i2 % 128;
int i3 = i2 % 2;
HomeActivity.c(getContext(), true);
int i4 = f8044o + 41;
n = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9378dic
public final void a(QU qu) {
int i = 2 % 2;
C17764zak.HBt hBt = C17764zak.CREATOR;
int i2 = qu.b;
String str = qu.d;
String valueOf = String.valueOf(i2);
C14957gcv.e(valueOf, "");
C14957gcv.e(str, "");
g(C17764zak.HBt.d(valueOf, str, C17764zak.HBt.IeS.CLICK));
try {
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL);
intent.setData(Uri.parse(qu.e));
intent.putExtra("IS_NEED_HISTORY_STACK", true);
startActivity(intent);
int i3 = f8044o + 35;
n = i3 % 128;
int i4 = i3 % 2;
} catch (ActivityNotFoundException e) {
guQ.e(e);
}
}
private void n() {
int i = 2 % 2;
this.d = new InvestmentContextualAdsAdapter(new ArrayList(), this);
InfiniteRecyclerView infiniteRecyclerView = this.rvContextualAds;
getContext();
infiniteRecyclerView.setLayoutManager(new LinearLayoutManager(0, false));
this.rvContextualAds.setAdapter(this.d);
this.rvContextualAds.setOnSnapPositionChangeListener(new fJF.HBt(this) { // from class: o.ffV
private InvestmentDetailsFragment e;
@Override // o.fJF.HBt
public final void d(int i2) {
InvestmentDetailsFragment.b(this.e, i2);
}
{
this.e = this;
}
});
int i2 = n + 75;
f8044o = i2 % 128;
int i3 = i2 % 2;
}
private /* synthetic */ void e(int i) {
int i2 = 2 % 2;
int i3 = n + 71;
f8044o = i3 % 128;
int i4 = i3 % 2;
this.pivAdsIndicator.setSelection(this.d.b(i));
int i5 = n + 45;
f8044o = i5 % 128;
int i6 = i5 % 2;
}
@Override // o.cZG.RVV
public final void b(int i) {
a(new Object[]{this, Integer.valueOf(i)}, -724089027, 724089027, i);
}
@Override // com.scb.phone.view.fragment.BaseFragment
public final void aa() {
a(new Object[]{this}, -1911924559, 1911924565, System.identityHashCode(this));
}
@Override // o.InterfaceC12848fIw
public final void d(String str) {
a(new Object[]{this, str}, 1658182275, -1658182274, System.identityHashCode(this));
}
@Override // o.cZG.RVV
public final void a(boolean z, boolean z2) {
a(new Object[]{this, Boolean.valueOf(z), Boolean.valueOf(z2)}, 1407743502, -1407743499, System.identityHashCode(this));
}
@Override // o.cZG.RVV
public final void d() {
a(new Object[]{this}, -1471732517, 1471732524, System.identityHashCode(this));
}
public static InvestmentDetailsFragment b(boolean z, boolean z2, boolean z3) {
return (InvestmentDetailsFragment) a(new Object[]{Boolean.valueOf(z), Boolean.valueOf(z2), Boolean.valueOf(z3)}, -183581945, 183581950, (int) System.currentTimeMillis());
}
private void d(int i) {
a(new Object[]{this, Integer.valueOf(i)}, 1891540160, -1891540158, i);
}
public static /* synthetic */ void b(InvestmentDetailsFragment investmentDetailsFragment, int i) {
int i2 = 2 % 2;
int i3 = f8044o + 109;
n = i3 % 128;
int i4 = i3 % 2;
investmentDetailsFragment.e(i);
if (i4 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}