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

182 lines
6.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.investment;
import android.content.Context;
import android.view.View;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.view.custom.transferandpay.CustomScheduleFundItem;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource;
import o.OL;
import o.OR;
/* loaded from: classes5.dex */
public class BaseInvestmentSuccessReviewFragment extends Hilt_BaseInvestmentSuccessReviewFragment {
@BindView
CustomTransferAndPaySource accountNo;
@BindView
CustomTransferAndPaySource clientNo;
@BindView
CustomTransferAndPayItem customAmount;
@BindView
CustomTransferAndPayItem customFees;
@BindView
CustomTransferAndPaySource funds;
@BindView
CustomScheduleFundItem scheduleInfo;
@BindView
CustomTransferAndPayItem transferDate;
/* JADX INFO: Access modifiers changed from: protected */
public void c(OL ol, View view, Context context, String str) {
e(ol, view, str, false);
}
public final void e(OL ol, View view, String str, boolean z) {
ButterKnife.c(this, view);
d(ol);
e(ol);
d(ol, str, z);
this.customAmount.setValue(ol.b);
this.customAmount.setText(ol.h);
this.customFees.setValue(ol.l);
this.customFees.setText(ol.n);
String str2 = ol.k;
str2.hashCode();
if (!str2.equals("FUND_ACTION_REDEEM")) {
if (str2.equals("FUND_ACTION_PURCHASE")) {
this.transferDate.setVisibility(8);
}
} else if (ol.p == null) {
this.transferDate.setVisibility(0);
this.transferDate.setValue(ol.y);
this.transferDate.setText(ol.u);
}
}
public final void b(OR or) {
this.scheduleInfo.setVisibility(0);
if (or.e != null) {
this.scheduleInfo.setEffectiveDateLabel(or.c);
this.scheduleInfo.setEffectiveDate(or.e, or.b == 1);
}
if (or.b == 1) {
this.scheduleInfo.setEffectiveDescription(or.a);
} else if (or.f != null) {
this.scheduleInfo.transferLayout.setVisibility(0);
this.scheduleInfo.setTransactionDateLabel(or.i);
this.scheduleInfo.setTransactionDate(or.f);
}
}
/* JADX WARN: Code restructure failed: missing block: B:12:0x004a, code lost:
if (r6 != 2) goto L29;
*/
/* JADX WARN: Removed duplicated region for block: B:15:0x006b */
/* JADX WARN: Removed duplicated region for block: B:18:0x0080 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void d(o.OL r5, java.lang.String r6, boolean r7) {
/*
r4 = this;
com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource r0 = r4.accountNo
java.lang.String r1 = r5.d
r0.setText(r1)
com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource r0 = r4.accountNo
java.lang.String r1 = r5.c
r0.setSourceName(r1)
r6.hashCode()
int r0 = r6.hashCode()
r1 = -566678661(0xffffffffde392b7b, float:-3.3357234E18)
r2 = 2
r3 = 1
if (r0 == r1) goto L3b
r1 = 847942355(0x328a92d3, float:1.6132082E-8)
if (r0 == r1) goto L31
r1 = 1844253640(0x6ded13c8, float:9.1714827E27)
if (r0 == r1) goto L27
goto L45
L27:
java.lang.String r0 = "ACCOUNT_MASKING_SUCCESS"
boolean r6 = r6.equals(r0)
if (r6 == 0) goto L45
r6 = r2
goto L46
L31:
java.lang.String r0 = "ACCOUNT_MASKING_REVIEW"
boolean r6 = r6.equals(r0)
if (r6 == 0) goto L45
r6 = r3
goto L46
L3b:
java.lang.String r0 = "ACCOUNT_MASKING_SLIP"
boolean r6 = r6.equals(r0)
if (r6 == 0) goto L45
r6 = 0
goto L46
L45:
r6 = -1
L46:
if (r6 == 0) goto L5a
if (r6 == r3) goto L4d
if (r6 == r2) goto L5a
goto L61
L4d:
com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource r6 = r4.accountNo
if (r7 == 0) goto L54
java.lang.String r7 = r5.a
goto L56
L54:
java.lang.String r7 = r5.e
L56:
r6.setAccountNumber(r7)
goto L61
L5a:
com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource r6 = r4.accountNo
java.lang.String r7 = r5.a
r6.setAccountNumber(r7)
L61:
java.lang.String r5 = r5.k
java.lang.String r6 = "FUND_ACTION_SWITCH"
boolean r5 = r5.equals(r6)
if (r5 != 0) goto L80
com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource r5 = r4.accountNo
android.content.Context r6 = r4.getContext()
r7 = 2131230888(0x7f0800a8, float:1.8077841E38)
android.net.Uri r6 = o.C6583cXR.VS_(r6, r7)
java.lang.String r6 = r6.toString()
r5.setAvatar(r6)
return
L80:
com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource r5 = r4.accountNo
android.widget.LinearLayout r5 = r5.mSourceLinearLayout
r5.setOrientation(r3)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.investment.BaseInvestmentSuccessReviewFragment.d(o.OL, java.lang.String, boolean):void");
}
private void d(OL ol) {
this.clientNo.setText(ol.j);
this.clientNo.setSourceName(ol.f8298o);
this.clientNo.setAccountNumber(ol.g);
}
private void e(OL ol) {
this.funds.setText(ol.t);
this.funds.setSourceName(ol.m);
this.funds.setAccountNumber(ol.r);
this.funds.mSourceLinearLayout.setOrientation(1);
}
}