what-the-bank/sources/com/scb/phone/view/fragment/hml/businessowner/HmlBusinessOwnerSubmissionR...

662 lines
24 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.hml.businessowner;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.style.ClickableSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.hml.HmlApplicationOutcomeActivity;
import com.scb.phone.view.activity.hml.HmlConsentActivity;
import com.scb.phone.view.activity.hml.HmlEtbSubmissionOtpActivity;
import com.scb.phone.view.custom.common.CustomAcceptDeclineButtons;
import com.scb.phone.view.custom.easycash.CustomSeparatedViews;
import com.scb.phone.view.fragment.BaseFragment;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import o.AbstractC14961gcz;
import o.C14866gag;
import o.C14957gcv;
import o.C5634bwk;
import o.C5639bwp;
import o.C5641bwr;
import o.CaX;
import o.IV;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC14894gbR;
import o.InterfaceC9253dgI;
import o.NZ;
import o.OVB;
import o.ZI;
import o.ZUb;
import o.fZZ;
import o.nMh;
import o.pug;
/* loaded from: classes5.dex */
public final class HmlBusinessOwnerSubmissionReviewStepTwoFragment extends Hilt_HmlBusinessOwnerSubmissionReviewStepTwoFragment implements InterfaceC9253dgI {
public static final IeS d = new IeS(0);
@BindView
public CustomSeparatedViews bankAccountsInfoContainer;
@BindView
public CustomSeparatedViews businessInfoContainer;
private final Map<OVB, CustomAcceptDeclineButtons> c;
@BindView
public CheckBox checkBoxTermsConditions;
@BindView
public Button confirmButton;
@BindView
public View consentSection;
@BindView
public CustomSeparatedViews consentsContainer;
private final InterfaceC13393fZL g;
private final InterfaceC13393fZL h;
@BindView
public CustomSeparatedViews incomeInfoContainer;
@BindView
public CustomSeparatedViews loanInfoInfoContainer;
@BindView
public View ownStoreHeader;
@BindView
public CustomSeparatedViews ownStoreInfoContainer;
@InterfaceC13391fZD
public C5634bwk<InterfaceC9253dgI> presenter;
@BindView
public View storeOrProductHeader;
@BindView
public CustomSeparatedViews storeOrProductInfoContainer;
@BindView
public TextView textViewTermsConditions;
@BindView
public TextView tvFilesAttached;
@BindView
public View uploadedDocumentsContainer;
public HmlBusinessOwnerSubmissionReviewStepTwoFragment() {
RVV rvv = new RVV(this);
C14957gcv.e(rvv, "");
this.h = new fZZ(rvv);
HBt hBt = new HBt(this);
C14957gcv.e(hBt, "");
this.g = new fZZ(hBt);
this.c = new LinkedHashMap();
}
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<NZ> {
private HmlBusinessOwnerSubmissionReviewStepTwoFragment e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ NZ invoke() {
Bundle arguments = this.e.getArguments();
if (arguments != null) {
return (NZ) arguments.getParcelable("EXTRA_DISPLAY");
}
return null;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(HmlBusinessOwnerSubmissionReviewStepTwoFragment hmlBusinessOwnerSubmissionReviewStepTwoFragment) {
super(0);
this.e = hmlBusinessOwnerSubmissionReviewStepTwoFragment;
}
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<String> {
private HmlBusinessOwnerSubmissionReviewStepTwoFragment e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ String invoke() {
Bundle arguments = this.e.getArguments();
String string = arguments != null ? arguments.getString("INTENT_VALUE", "") : null;
return string == null ? "" : string;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(HmlBusinessOwnerSubmissionReviewStepTwoFragment hmlBusinessOwnerSubmissionReviewStepTwoFragment) {
super(0);
this.e = hmlBusinessOwnerSubmissionReviewStepTwoFragment;
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559689, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
C5634bwk<InterfaceC9253dgI> c5634bwk = this.presenter;
C5634bwk<InterfaceC9253dgI> c5634bwk2 = null;
if (c5634bwk == null) {
C14957gcv.a("");
c5634bwk = null;
}
c5634bwk.e((C5634bwk<InterfaceC9253dgI>) this);
final NZ nz = (NZ) this.h.e();
if (nz != null) {
C5634bwk<InterfaceC9253dgI> c5634bwk3 = this.presenter;
if (c5634bwk3 != null) {
c5634bwk2 = c5634bwk3;
} else {
C14957gcv.a("");
}
C14957gcv.c(nz, "");
C14957gcv.e(nz, "");
c5634bwk2.a = nz.g;
List<NZ.LWm> list = nz.c;
if (list != null) {
for (NZ.LWm lWm : list) {
c5634bwk2.e.put(lWm.d, lWm.a);
}
}
ZI.IeS ieS = new ZI.IeS(nz) { // from class: o.bws
private NZ e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5634bwk.c(this.e, (InterfaceC9253dgI) obj);
}
{
this.e = nz;
}
};
if (c5634bwk2.f != 0) {
ieS.e(c5634bwk2.f);
}
C5639bwp c5639bwp = new C5639bwp(c5634bwk2);
if (c5634bwk2.f != 0) {
c5639bwp.e(c5634bwk2.f);
}
}
return inflate;
}
@OnClick
public final void confirmButtonClick() {
C5634bwk<InterfaceC9253dgI> c5634bwk = this.presenter;
if (c5634bwk == null) {
C14957gcv.a("");
c5634bwk = null;
}
if (c5634bwk.f != 0) {
c5634bwk.f.y();
}
ZUb zUb = c5634bwk.b;
zUb.d(zUb.a(), new C5634bwk.HBt(c5634bwk));
}
/* loaded from: classes5.dex */
static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR<IV, Boolean> {
public static final jbe c = new jbe();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ Boolean invoke(IV iv) {
return Boolean.valueOf(iv == null);
}
jbe() {
super(1);
}
}
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<TextView, C14866gag> {
public static final Sts b = new Sts();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(TextView textView) {
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setMaxLines(1);
textView2.setEllipsize(TextUtils.TruncateAt.END);
return C14866gag.c;
}
Sts() {
super(1);
}
}
/* loaded from: classes5.dex */
static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR<TextView, C14866gag> {
public static final ojQ c = new ojQ();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(TextView textView) {
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setMaxLines(2);
textView2.setEllipsize(TextUtils.TruncateAt.END);
return C14866gag.c;
}
ojQ() {
super(1);
}
}
/* loaded from: classes5.dex */
static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR<TextView, C14866gag> {
public static final tOB b = new tOB();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(TextView textView) {
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setMaxLines(2);
textView2.setEllipsize(TextUtils.TruncateAt.END);
return C14866gag.c;
}
tOB() {
super(1);
}
}
/* loaded from: classes5.dex */
public static final class vUG extends ClickableSpan {
private HmlBusinessOwnerSubmissionReviewStepTwoFragment c;
vUG(HmlBusinessOwnerSubmissionReviewStepTwoFragment hmlBusinessOwnerSubmissionReviewStepTwoFragment) {
this.c = hmlBusinessOwnerSubmissionReviewStepTwoFragment;
}
@Override // android.text.style.ClickableSpan
public final void onClick(View view) {
C14957gcv.e(view, "");
C5634bwk<InterfaceC9253dgI> c5634bwk = this.c.presenter;
if (c5634bwk == null) {
C14957gcv.a("");
c5634bwk = null;
}
OVB ovb = OVB.TERMS_N_CONDITIONS;
C14957gcv.e(ovb, "");
C5641bwr c5641bwr = new C5641bwr(ovb);
if (c5634bwk.f != 0) {
c5641bwr.e(c5634bwk.f);
}
}
@Override // android.text.style.ClickableSpan, android.text.style.CharacterStyle
public final void updateDrawState(TextPaint textPaint) {
C14957gcv.e(textPaint, "");
super.updateDrawState(textPaint);
textPaint.setUnderlineText(true);
Context context = this.c.getContext();
if (context != null) {
textPaint.setColor(nMh.getColor(context, R.color.f13682131100876));
}
}
}
/* loaded from: classes5.dex */
public static final class ZqN extends ClickableSpan {
private HmlBusinessOwnerSubmissionReviewStepTwoFragment a;
private NZ.LWm d;
private CustomAcceptDeclineButtons e;
ZqN(HmlBusinessOwnerSubmissionReviewStepTwoFragment hmlBusinessOwnerSubmissionReviewStepTwoFragment, NZ.LWm lWm, CustomAcceptDeclineButtons customAcceptDeclineButtons) {
this.a = hmlBusinessOwnerSubmissionReviewStepTwoFragment;
this.d = lWm;
this.e = customAcceptDeclineButtons;
}
@Override // android.text.style.ClickableSpan
public final void onClick(View view) {
C14957gcv.e(view, "");
C5634bwk<InterfaceC9253dgI> c5634bwk = this.a.presenter;
if (c5634bwk == null) {
C14957gcv.a("");
c5634bwk = null;
}
OVB ovb = this.d.d;
C14957gcv.e(ovb, "");
C5641bwr c5641bwr = new C5641bwr(ovb);
if (c5634bwk.f != 0) {
c5641bwr.e(c5634bwk.f);
}
}
@Override // android.text.style.ClickableSpan, android.text.style.CharacterStyle
public final void updateDrawState(TextPaint textPaint) {
C14957gcv.e(textPaint, "");
super.updateDrawState(textPaint);
textPaint.setUnderlineText(true);
Context context = this.e.getContext();
if (context != null) {
textPaint.setColor(nMh.getColor(context, R.color.f13682131100876));
}
}
}
/* loaded from: classes5.dex */
static final class saX extends AbstractC14961gcz implements InterfaceC14894gbR<Boolean, C14866gag> {
private HmlBusinessOwnerSubmissionReviewStepTwoFragment a;
private NZ.LWm e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Boolean bool) {
boolean booleanValue = bool.booleanValue();
C5634bwk<InterfaceC9253dgI> c5634bwk = this.a.presenter;
if (c5634bwk == null) {
C14957gcv.a("");
c5634bwk = null;
}
OVB ovb = this.e.d;
C14957gcv.e(ovb, "");
c5634bwk.e.put(ovb, booleanValue ? NZ.LWm.Sts.ACCEPTED : NZ.LWm.Sts.DECLINED);
C5639bwp c5639bwp = new C5639bwp(c5634bwk);
if (c5634bwk.f != 0) {
c5639bwp.e(c5634bwk.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
saX(HmlBusinessOwnerSubmissionReviewStepTwoFragment hmlBusinessOwnerSubmissionReviewStepTwoFragment, NZ.LWm lWm) {
super(1);
this.a = hmlBusinessOwnerSubmissionReviewStepTwoFragment;
this.e = lWm;
}
}
@Override // o.InterfaceC9253dgI
public final void b(OVB ovb, boolean z) {
C14957gcv.e(ovb, "");
CustomAcceptDeclineButtons customAcceptDeclineButtons = this.c.get(ovb);
if (customAcceptDeclineButtons != null) {
if (z) {
customAcceptDeclineButtons.onAcceptClicked();
} else {
customAcceptDeclineButtons.onDeclineClicked();
}
}
}
@Override // o.InterfaceC9253dgI
public final void b(OVB ovb) {
C14957gcv.e(ovb, "");
Context context = getContext();
if (context != null) {
HmlConsentActivity.Sts sts = HmlConsentActivity.k;
startActivityForResult(HmlConsentActivity.Sts.afF_(context, ovb, null), 1002);
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onActivityResult(int i, int i2, Intent intent) {
super.onActivityResult(i, i2, intent);
if (i2 == -1) {
C5634bwk<InterfaceC9253dgI> c5634bwk = null;
if (i != 1002 || intent == null) {
if (i == 1200) {
C5634bwk<InterfaceC9253dgI> c5634bwk2 = this.presenter;
if (c5634bwk2 != null) {
c5634bwk = c5634bwk2;
} else {
C14957gcv.a("");
}
CaX caX = c5634bwk.d;
caX.d(caX.c(), new C5634bwk.LWm(c5634bwk));
return;
}
return;
}
Serializable serializableExtra = intent.getSerializableExtra("HML_CONSENT_TYPE");
final OVB ovb = serializableExtra instanceof OVB ? (OVB) serializableExtra : null;
final boolean booleanExtra = intent.getBooleanExtra("EXTRA_IS_ACCEPTED", false);
if (ovb != null) {
C5634bwk<InterfaceC9253dgI> c5634bwk3 = this.presenter;
if (c5634bwk3 != null) {
c5634bwk = c5634bwk3;
} else {
C14957gcv.a("");
}
C14957gcv.e(ovb, "");
if (C5634bwk.Sts.c[ovb.ordinal()] == 1) {
ZI.IeS ieS = new ZI.IeS(booleanExtra) { // from class: o.bwn
private boolean b;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9253dgI) obj).e(this.b);
}
{
this.b = booleanExtra;
}
};
if (c5634bwk.f != 0) {
ieS.e(c5634bwk.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS(ovb, booleanExtra) { // from class: o.bwq
private boolean a;
private OVB c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5634bwk.e(this.c, this.a, (InterfaceC9253dgI) obj);
}
{
this.c = ovb;
this.a = booleanExtra;
}
};
if (c5634bwk.f != 0) {
ieS2.e(c5634bwk.f);
}
}
}
}
@Override // o.InterfaceC9253dgI
public final void e(boolean z) {
CheckBox checkBox = this.checkBoxTermsConditions;
if (checkBox == null) {
C14957gcv.a("");
checkBox = null;
}
checkBox.setChecked(z);
}
@Override // o.InterfaceC9253dgI
public final void c(boolean z) {
Button button = this.confirmButton;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setEnabled(z);
}
@Override // o.InterfaceC9253dgI
public final void a(boolean z, boolean z2, String str) {
NZ.saX sax;
NZ.saX sax2;
NZ.saX sax3;
C14957gcv.e(str, "");
Context context = getContext();
if (context != null) {
HmlEtbSubmissionOtpActivity.LWm lWm = HmlEtbSubmissionOtpActivity.b;
String str2 = (String) this.g.e();
NZ nz = (NZ) this.h.e();
String str3 = (nz == null || (sax3 = nz.i) == null) ? null : sax3.c;
NZ nz2 = (NZ) this.h.e();
String str4 = (nz2 == null || (sax2 = nz2.i) == null) ? null : sax2.e;
NZ nz3 = (NZ) this.h.e();
startActivityForResult(HmlEtbSubmissionOtpActivity.LWm.afS_(context, Boolean.valueOf(z), Boolean.valueOf(z2), null, str, str2, str3, str4, (nz3 == null || (sax = nz3.i) == null) ? null : sax.b), 1200);
}
}
@Override // o.InterfaceC9253dgI
public final void c() {
startActivity(HmlApplicationOutcomeActivity.afw_(requireContext(), true));
}
@Override // o.InterfaceC9253dgI
public final void a(String str, String str2) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
c("p10x1_etb_otp", new pug("user_type", "etb"), new pug("loan_type", "business_owner"), new pug("product_type", str), new pug("product_application_amount", str2));
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
C5634bwk<InterfaceC9253dgI> c5634bwk = this.presenter;
if (c5634bwk == null) {
C14957gcv.a("");
c5634bwk = null;
}
c5634bwk.w_();
super.onDestroyView();
}
public static /* synthetic */ void d(HmlBusinessOwnerSubmissionReviewStepTwoFragment hmlBusinessOwnerSubmissionReviewStepTwoFragment, boolean z) {
C14957gcv.e(hmlBusinessOwnerSubmissionReviewStepTwoFragment, "");
C5634bwk<InterfaceC9253dgI> c5634bwk = hmlBusinessOwnerSubmissionReviewStepTwoFragment.presenter;
if (c5634bwk == null) {
C14957gcv.a("");
c5634bwk = null;
}
c5634bwk.c = z;
C5639bwp c5639bwp = new C5639bwp(c5634bwk);
if (c5634bwk.f != 0) {
c5639bwp.e(c5634bwk.f);
}
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:102:0x0372 */
/* JADX WARN: Removed duplicated region for block: B:105:0x0381 */
/* JADX WARN: Removed duplicated region for block: B:108:0x03d8 */
/* JADX WARN: Removed duplicated region for block: B:111:0x03e6 */
/* JADX WARN: Removed duplicated region for block: B:114:0x03f6 */
/* JADX WARN: Removed duplicated region for block: B:117:0x0402 */
/* JADX WARN: Removed duplicated region for block: B:120:0x0413 */
/* JADX WARN: Removed duplicated region for block: B:127:0x042b */
/* JADX WARN: Removed duplicated region for block: B:130:0x043a */
/* JADX WARN: Removed duplicated region for block: B:134:0x0453 */
/* JADX WARN: Removed duplicated region for block: B:13:0x0115 */
/* JADX WARN: Removed duplicated region for block: B:161:0x0442 */
/* JADX WARN: Removed duplicated region for block: B:164:0x0574 */
/* JADX WARN: Removed duplicated region for block: B:167:0x057e */
/* JADX WARN: Removed duplicated region for block: B:170:0x058f */
/* JADX WARN: Removed duplicated region for block: B:174:0x0591 */
/* JADX WARN: Removed duplicated region for block: B:175:0x0576 */
/* JADX WARN: Removed duplicated region for block: B:176:0x0383 */
/* JADX WARN: Removed duplicated region for block: B:177:0x0305 */
/* JADX WARN: Removed duplicated region for block: B:178:0x0259 */
/* JADX WARN: Removed duplicated region for block: B:179:0x0251 */
/* JADX WARN: Removed duplicated region for block: B:180:0x022c */
/* JADX WARN: Removed duplicated region for block: B:182:0x013f */
/* JADX WARN: Removed duplicated region for block: B:19:0x0162 */
/* JADX WARN: Removed duplicated region for block: B:34:0x01c4 */
/* JADX WARN: Removed duplicated region for block: B:37:0x01fb */
/* JADX WARN: Removed duplicated region for block: B:40:0x021a */
/* JADX WARN: Removed duplicated region for block: B:43:0x0249 */
/* JADX WARN: Removed duplicated region for block: B:45:0x024f */
/* JADX WARN: Removed duplicated region for block: B:48:0x0257 */
/* JADX WARN: Removed duplicated region for block: B:51:0x0260 */
/* JADX WARN: Removed duplicated region for block: B:63:0x0299 */
/* JADX WARN: Removed duplicated region for block: B:66:0x02a8 */
/* JADX WARN: Removed duplicated region for block: B:70:0x02c1 A[LOOP:1: B:68:0x02bb->B:70:0x02c1, LOOP_END] */
/* JADX WARN: Removed duplicated region for block: B:73:0x02b0 */
/* JADX WARN: Removed duplicated region for block: B:76:0x02e8 */
/* JADX WARN: Removed duplicated region for block: B:79:0x02f2 */
/* JADX WARN: Removed duplicated region for block: B:82:0x0303 */
/* JADX WARN: Removed duplicated region for block: B:89:0x0323 */
/* JADX WARN: Removed duplicated region for block: B:92:0x0332 */
/* JADX WARN: Removed duplicated region for block: B:96:0x034b A[LOOP:2: B:94:0x0345->B:96:0x034b, LOOP_END] */
/* JADX WARN: Removed duplicated region for block: B:99:0x033a */
@Override // o.InterfaceC9253dgI
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void b(o.NZ r17) {
/*
Method dump skipped, instructions count: 1431
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.hml.businessowner.HmlBusinessOwnerSubmissionReviewStepTwoFragment.b(o.NZ):void");
}
/* loaded from: classes5.dex */
public final /* synthetic */ class LWm {
public static final int[] b;
public static final int[] d;
static {
int[] iArr = new int[NZ.LWm.Sts.values().length];
try {
iArr[NZ.LWm.Sts.EMPTY.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[NZ.LWm.Sts.ACCEPTED.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[NZ.LWm.Sts.DECLINED.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
b = iArr;
int[] iArr2 = new int[OVB.values().length];
try {
iArr2[OVB.MODEL_CONSENT.ordinal()] = 1;
} catch (NoSuchFieldError unused4) {
}
try {
iArr2[OVB.CROSS_SELL_CONSENT.ordinal()] = 2;
} catch (NoSuchFieldError unused5) {
}
d = iArr2;
}
}
}