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

1650 lines
57 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.hml;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.InputFilter;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnCheckedChanged;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.hml.HmlETBOperatingAccountActivity;
import com.scb.phone.view.activity.hml.businessowner.HmlBusinessHelpActivity;
import com.scb.phone.view.activity.hml.businessowner.HmlBusinessIndustrySelectionActivity;
import com.scb.phone.view.activity.hml.businessowner.HmlBusinessURLInformationActivity;
import com.scb.phone.view.activity.hml.businessowner.HmlETBOperatingBankActivity;
import com.scb.phone.view.adapter.hml.HmlBusinessInfoAdapter;
import com.scb.phone.view.custom.common.CustomAcceptDeclineButtons;
import com.scb.phone.view.custom.common.CustomEditText;
import com.scb.phone.view.custom.common.ProgressStateBar;
import com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.hml.HmlBusinessInformationFragment;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import o.AbstractC14961gcz;
import o.AbstractC15351go;
import o.C0690Mh;
import o.C0693Mj;
import o.C0750Ns;
import o.C14866gag;
import o.C14875gap;
import o.C14881gav;
import o.C14957gcv;
import o.C15750iL;
import o.C5045bld;
import o.C5167bnt;
import o.C5171bnx;
import o.InterfaceC13391fZD;
import o.InterfaceC14894gbR;
import o.InterfaceC14937gcb;
import o.InterfaceC9255dgK;
import o.MT;
import o.MW;
import o.MX;
import o.MY;
import o.MYp;
import o.NN;
import o.ZI;
import o.fLM;
import o.fLN;
/* loaded from: classes5.dex */
public class HmlBusinessInformationFragment extends Hilt_HmlBusinessInformationFragment implements InterfaceC9255dgK {
public static final LWm d = new LWm(0);
@BindView
public TextView accountSelector;
@BindView
public TextView addAccount;
@BindView
public TextView bankAccountError;
@BindView
public ProgressStateBar breadcrumbs;
@BindView
public TextView businessIndustry;
@BindView
public TextView businessIndustryError;
@BindView
public CustomAcceptDeclineButtons businessType;
@BindView
public TextView businessTypeError;
private HmlBusinessInfoAdapter c;
@BindView
public CheckBox cbCapital;
@BindView
public CheckBox cbExpansion;
@BindView
public CheckBox cbMarketplace;
@BindView
public CheckBox cbPhysical;
@BindView
public CheckBox cbWebsite;
@BindView
public CustomSpinnerWithTitle incomeSpinner;
@BindView
public TextView loanPurposeError;
@BindView
public CustomEditText monthlyIncome;
@BindView
public TextView netIncomeError;
@BindView
public Button nextButton;
@InterfaceC13391fZD
public C5167bnt presenter;
@BindView
public RecyclerView recyclerView;
@BindView
public RelativeLayout root;
@BindView
public TextView sourceIncomeError;
@BindView
public TextView storeTypeError;
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559688, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
C5167bnt c5167bnt = this.presenter;
TextView textView = null;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
c5167bnt.e((C5167bnt) this);
C5167bnt c5167bnt2 = this.presenter;
if (c5167bnt2 == null) {
C14957gcv.a("");
c5167bnt2 = null;
}
c5167bnt2.a = true;
if (c5167bnt2.f != 0) {
c5167bnt2.f.y();
}
C15750iL c15750iL = c5167bnt2.b;
C5167bnt.LWm lWm = new C5167bnt.LWm(c5167bnt2);
C5167bnt.HBt hBt = new C5167bnt.HBt(c5167bnt2);
C5167bnt.saX sax = new C5167bnt.saX(c5167bnt2);
C14957gcv.e(lWm, "");
C14957gcv.e(hBt, "");
C14957gcv.e(sax, "");
c15750iL.b(c15750iL.c, lWm, hBt, new AbstractC15351go.LWm(), sax);
CustomEditText customEditText = this.monthlyIncome;
if (customEditText == null) {
C14957gcv.a("");
customEditText = null;
}
customEditText.setFilters(new InputFilter[]{new fLN(17, 0)});
CustomEditText customEditText2 = this.monthlyIncome;
if (customEditText2 == null) {
C14957gcv.a("");
customEditText2 = null;
}
CustomEditText customEditText3 = this.monthlyIncome;
if (customEditText3 == null) {
C14957gcv.a("");
customEditText3 = null;
}
customEditText2.addTextChangedListener(new fLM(customEditText3, null));
CustomEditText customEditText4 = this.monthlyIncome;
if (customEditText4 == null) {
C14957gcv.a("");
customEditText4 = null;
}
customEditText4.setOnBackListener(new CustomEditText.LWm(this) { // from class: o.fak
private HmlBusinessInformationFragment c;
@Override // com.scb.phone.view.custom.common.CustomEditText.LWm
public final void a() {
HmlBusinessInformationFragment.c(this.c);
}
{
this.c = this;
}
});
CustomEditText customEditText5 = this.monthlyIncome;
if (customEditText5 == null) {
C14957gcv.a("");
customEditText5 = null;
}
customEditText5.setOnFocusChangeListener(new View.OnFocusChangeListener(this) { // from class: o.fal
private HmlBusinessInformationFragment a;
@Override // android.view.View.OnFocusChangeListener
public final void onFocusChange(View view, boolean z) {
HmlBusinessInformationFragment.a(this.a, view, z);
}
{
this.a = this;
}
});
CustomEditText customEditText6 = this.monthlyIncome;
if (customEditText6 == null) {
C14957gcv.a("");
customEditText6 = null;
}
customEditText6.setOnEditorActionListener(new TextView.OnEditorActionListener(this) { // from class: o.fam
private HmlBusinessInformationFragment a;
@Override // android.widget.TextView.OnEditorActionListener
public final boolean onEditorAction(TextView textView2, int i, KeyEvent keyEvent) {
return HmlBusinessInformationFragment.c(this.a, i);
}
{
this.a = this;
}
});
j();
TextView textView2 = this.addAccount;
if (textView2 != null) {
textView = textView2;
} else {
C14957gcv.a("");
}
textView.setOnClickListener(new View.OnClickListener(this) { // from class: o.fap
private HmlBusinessInformationFragment d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
HmlBusinessInformationFragment.b(this.d);
}
{
this.d = this;
}
});
return inflate;
}
protected void j() {
ProgressStateBar progressStateBar = this.breadcrumbs;
ProgressStateBar progressStateBar2 = null;
if (progressStateBar == null) {
C14957gcv.a("");
progressStateBar = null;
}
progressStateBar.setVisibility(0);
ProgressStateBar progressStateBar3 = this.breadcrumbs;
if (progressStateBar3 == null) {
C14957gcv.a("");
progressStateBar3 = null;
}
String[] stringArray = getResources().getStringArray(R.array.2130903050);
C14957gcv.c(stringArray, "");
progressStateBar3.setStates(C14875gap.d(stringArray));
ProgressStateBar progressStateBar4 = this.breadcrumbs;
if (progressStateBar4 != null) {
progressStateBar2 = progressStateBar4;
} else {
C14957gcv.a("");
}
progressStateBar2.setCurrentState(2);
}
@OnClick
public void navigateToSelectBusiness() {
HmlBusinessIndustrySelectionActivity.HBt hBt = HmlBusinessIndustrySelectionActivity.b;
Context requireContext = requireContext();
C14957gcv.c(requireContext, "");
C14957gcv.e(requireContext, "");
startActivityForResult(new Intent(requireContext, (Class<?>) HmlBusinessIndustrySelectionActivity.class), 10002);
}
@Override // o.InterfaceC9255dgK
public final void c() {
Context context = getContext();
if (context != null) {
HmlETBOperatingBankActivity.Sts sts = HmlETBOperatingBankActivity.b;
C14957gcv.e(context, "");
startActivityForResult(new Intent(context, (Class<?>) HmlETBOperatingBankActivity.class), 10003);
}
}
@Override // o.InterfaceC9255dgK
public final void c(C5045bld c5045bld) {
C14957gcv.e(c5045bld, "");
Context context = getContext();
if (context != null) {
HmlETBOperatingAccountActivity.RVV rvv = HmlETBOperatingAccountActivity.b;
startActivityForResult(HmlETBOperatingAccountActivity.RVV.afP_(context, HmlETBOperatingAccountActivity.LWm.EDIT, c5045bld), 10004);
}
}
@Override // o.InterfaceC9255dgK
public final void d() {
Context context = getContext();
if (context != null) {
HmlBusinessURLInformationActivity.RVV rvv = HmlBusinessURLInformationActivity.b;
C14957gcv.e(context, "");
startActivity(new Intent(context, (Class<?>) HmlBusinessURLInformationActivity.class));
}
}
@OnClick
public void navigateToBusinessIndustryAbout() {
Context context = getContext();
if (context != null) {
HmlBusinessHelpActivity.HBt hBt = HmlBusinessHelpActivity.m;
String string = getString(R.string.hml_business_owner_industry_about_activity);
C14957gcv.c((Object) string, "");
startActivity(HmlBusinessHelpActivity.HBt.agy_(context, string, R.layout.2131558602));
}
}
@OnClick
public void navigateToLoanPurposeAbout() {
Context context = getContext();
if (context != null) {
HmlBusinessHelpActivity.HBt hBt = HmlBusinessHelpActivity.m;
String string = getString(R.string.hml_business_owner_purpose_loan_about_activity);
C14957gcv.c((Object) string, "");
startActivity(HmlBusinessHelpActivity.HBt.agy_(context, string, R.layout.2131558605));
}
}
@OnClick
public void navigateToStoreTypeAbout() {
Context context = getContext();
if (context != null) {
HmlBusinessHelpActivity.HBt hBt = HmlBusinessHelpActivity.m;
String string = getString(R.string.hml_business_owner_type_store_about_activity);
C14957gcv.c((Object) string, "");
startActivity(HmlBusinessHelpActivity.HBt.agy_(context, string, R.layout.2131558608));
}
}
@OnClick
public void navigateToMonthlyIncomeAbout() {
Context context = getContext();
if (context != null) {
HmlBusinessHelpActivity.HBt hBt = HmlBusinessHelpActivity.m;
String string = getString(R.string.hml_business_owner_monthly_income_about_activity);
C14957gcv.c((Object) string, "");
startActivity(HmlBusinessHelpActivity.HBt.agy_(context, string, R.layout.2131558604));
}
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r6v10, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r6v15, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r6v18, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r6v5, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r6v8, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r6v9, types: [android.widget.TextView] */
@Override // o.InterfaceC9255dgK
public final void e(C5167bnt.Sts sts, boolean z) {
C14957gcv.e(sts, "");
CustomSpinnerWithTitle customSpinnerWithTitle = null;
switch (IeS.d[sts.ordinal()]) {
case 1:
TextView textView = this.businessIndustryError;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setVisibility(0);
?? r6 = this.businessIndustry;
if (r6 != 0) {
customSpinnerWithTitle = r6;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setBackgroundResource(R.drawable.shape_red_reounded_reactangle_border);
return;
case 2:
?? r62 = this.businessTypeError;
if (r62 != 0) {
customSpinnerWithTitle = r62;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(0);
return;
case 3:
?? r63 = this.storeTypeError;
if (r63 != 0) {
customSpinnerWithTitle = r63;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(0);
return;
case 4:
?? r64 = this.loanPurposeError;
if (r64 != 0) {
customSpinnerWithTitle = r64;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(0);
return;
case 5:
TextView textView2 = this.netIncomeError;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setText(getString(z ? R.string.hml_business_info_2_monthly_income_empty_error : R.string.hml_business_info_2_monthly_income_error));
CustomEditText customEditText = this.monthlyIncome;
if (customEditText == null) {
C14957gcv.a("");
customEditText = null;
}
customEditText.e(false);
?? r65 = this.netIncomeError;
if (r65 != 0) {
customSpinnerWithTitle = r65;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(0);
return;
case 6:
?? r66 = this.bankAccountError;
if (r66 != 0) {
customSpinnerWithTitle = r66;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(0);
HmlBusinessInfoAdapter hmlBusinessInfoAdapter = this.c;
if (hmlBusinessInfoAdapter != null) {
List<MX> list = hmlBusinessInfoAdapter.a;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (MX mx : list) {
if (mx.j == MT.PLACE_HOLDER) {
mx.h = true;
}
arrayList.add(C14866gag.c);
}
hmlBusinessInfoAdapter.notifyDataSetChanged();
return;
}
return;
case 7:
TextView textView3 = this.sourceIncomeError;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setVisibility(0);
CustomSpinnerWithTitle customSpinnerWithTitle2 = this.incomeSpinner;
if (customSpinnerWithTitle2 != null) {
customSpinnerWithTitle = customSpinnerWithTitle2;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setSpinnerBackground(true);
return;
default:
return;
}
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r5v10, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r5v13, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r5v15, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r5v5, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r5v8, types: [android.widget.TextView] */
/* JADX WARN: Type inference failed for: r5v9, types: [android.widget.TextView] */
@Override // o.InterfaceC9255dgK
public final void c(C5167bnt.Sts sts) {
C14957gcv.e(sts, "");
CustomSpinnerWithTitle customSpinnerWithTitle = null;
switch (IeS.d[sts.ordinal()]) {
case 1:
TextView textView = this.businessIndustryError;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setVisibility(8);
?? r5 = this.businessIndustry;
if (r5 != 0) {
customSpinnerWithTitle = r5;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setBackgroundResource(R.drawable.shape_gray_rounded_rectangle);
return;
case 2:
?? r52 = this.businessTypeError;
if (r52 != 0) {
customSpinnerWithTitle = r52;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(8);
return;
case 3:
?? r53 = this.storeTypeError;
if (r53 != 0) {
customSpinnerWithTitle = r53;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(8);
return;
case 4:
?? r54 = this.loanPurposeError;
if (r54 != 0) {
customSpinnerWithTitle = r54;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(8);
return;
case 5:
CustomEditText customEditText = this.monthlyIncome;
if (customEditText == null) {
C14957gcv.a("");
customEditText = null;
}
customEditText.e(true);
?? r55 = this.netIncomeError;
if (r55 != 0) {
customSpinnerWithTitle = r55;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(8);
return;
case 6:
?? r56 = this.bankAccountError;
if (r56 != 0) {
customSpinnerWithTitle = r56;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setVisibility(8);
return;
case 7:
TextView textView2 = this.sourceIncomeError;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setVisibility(8);
CustomSpinnerWithTitle customSpinnerWithTitle2 = this.incomeSpinner;
if (customSpinnerWithTitle2 != null) {
customSpinnerWithTitle = customSpinnerWithTitle2;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle.setSpinnerBackground(false);
return;
default:
return;
}
}
@OnCheckedChanged
public final void onPhysicalChecked() {
boolean z;
C5167bnt c5167bnt = this.presenter;
CheckBox checkBox = null;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
C5167bnt.Sts sts = C5167bnt.Sts.STORE_TYPE;
CheckBox checkBox2 = this.cbPhysical;
if (checkBox2 == null) {
C14957gcv.a("");
checkBox2 = null;
}
if (!checkBox2.isChecked()) {
CheckBox checkBox3 = this.cbMarketplace;
if (checkBox3 == null) {
C14957gcv.a("");
checkBox3 = null;
}
if (!checkBox3.isChecked()) {
CheckBox checkBox4 = this.cbWebsite;
if (checkBox4 != null) {
checkBox = checkBox4;
} else {
C14957gcv.a("");
}
if (!checkBox.isChecked()) {
z = false;
c5167bnt.a(sts, z);
}
}
}
z = true;
c5167bnt.a(sts, z);
}
@OnCheckedChanged
public final void onMarketplaceChecked() {
boolean z;
C5167bnt c5167bnt = this.presenter;
CheckBox checkBox = null;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
C5167bnt.Sts sts = C5167bnt.Sts.STORE_TYPE;
CheckBox checkBox2 = this.cbPhysical;
if (checkBox2 == null) {
C14957gcv.a("");
checkBox2 = null;
}
if (!checkBox2.isChecked()) {
CheckBox checkBox3 = this.cbMarketplace;
if (checkBox3 == null) {
C14957gcv.a("");
checkBox3 = null;
}
if (!checkBox3.isChecked()) {
CheckBox checkBox4 = this.cbWebsite;
if (checkBox4 != null) {
checkBox = checkBox4;
} else {
C14957gcv.a("");
}
if (!checkBox.isChecked()) {
z = false;
c5167bnt.a(sts, z);
}
}
}
z = true;
c5167bnt.a(sts, z);
}
@OnCheckedChanged
public final void onWebsiteChecked() {
boolean z;
C5167bnt c5167bnt = this.presenter;
CheckBox checkBox = null;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
C5167bnt.Sts sts = C5167bnt.Sts.STORE_TYPE;
CheckBox checkBox2 = this.cbPhysical;
if (checkBox2 == null) {
C14957gcv.a("");
checkBox2 = null;
}
if (!checkBox2.isChecked()) {
CheckBox checkBox3 = this.cbMarketplace;
if (checkBox3 == null) {
C14957gcv.a("");
checkBox3 = null;
}
if (!checkBox3.isChecked()) {
CheckBox checkBox4 = this.cbWebsite;
if (checkBox4 != null) {
checkBox = checkBox4;
} else {
C14957gcv.a("");
}
if (!checkBox.isChecked()) {
z = false;
c5167bnt.a(sts, z);
}
}
}
z = true;
c5167bnt.a(sts, z);
}
@OnCheckedChanged
public final void onExpansionChecked() {
boolean z;
C5167bnt c5167bnt = this.presenter;
CheckBox checkBox = null;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
C5167bnt.Sts sts = C5167bnt.Sts.LOAN_PURPOSE;
CheckBox checkBox2 = this.cbExpansion;
if (checkBox2 == null) {
C14957gcv.a("");
checkBox2 = null;
}
if (!checkBox2.isChecked()) {
CheckBox checkBox3 = this.cbCapital;
if (checkBox3 != null) {
checkBox = checkBox3;
} else {
C14957gcv.a("");
}
if (!checkBox.isChecked()) {
z = false;
c5167bnt.a(sts, z);
}
}
z = true;
c5167bnt.a(sts, z);
}
@OnCheckedChanged
public final void onCapitalChecked() {
boolean z;
C5167bnt c5167bnt = this.presenter;
CheckBox checkBox = null;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
C5167bnt.Sts sts = C5167bnt.Sts.LOAN_PURPOSE;
CheckBox checkBox2 = this.cbExpansion;
if (checkBox2 == null) {
C14957gcv.a("");
checkBox2 = null;
}
if (!checkBox2.isChecked()) {
CheckBox checkBox3 = this.cbCapital;
if (checkBox3 != null) {
checkBox = checkBox3;
} else {
C14957gcv.a("");
}
if (!checkBox.isChecked()) {
z = false;
c5167bnt.a(sts, z);
}
}
z = true;
c5167bnt.a(sts, z);
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Boolean, C14866gag> {
private HmlBusinessInformationFragment d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Boolean bool) {
C5167bnt c5167bnt = this.d.presenter;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
c5167bnt.a(C5167bnt.Sts.BUSINESS_TYPE, true);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(HmlBusinessInformationFragment hmlBusinessInformationFragment) {
super(1);
this.d = hmlBusinessInformationFragment;
}
}
/* JADX WARN: Removed duplicated region for block: B:68:0x018c */
/* JADX WARN: Removed duplicated region for block: B:71:0x01cf */
/* JADX WARN: Removed duplicated region for block: B:73:0x01d2 */
/* JADX WARN: Removed duplicated region for block: B:88:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:89:0x0191 */
@butterknife.OnClick
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onNextClicked() {
/*
Method dump skipped, instructions count: 514
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.hml.HmlBusinessInformationFragment.onNextClicked():void");
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onActivityResult(int i, int i2, Intent intent) {
Bundle extras;
final C5045bld c5045bld;
Bundle extras2;
final C5045bld c5045bld2;
super.onActivityResult(i, i2, intent);
final C5167bnt c5167bnt = null;
if (i == 10002 && i2 == -1 && intent != null) {
TextView textView = this.businessIndustry;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(intent.getStringExtra("EXTRA_RESULT_OCCUPATION_DESCRIPTION"));
C5167bnt c5167bnt2 = this.presenter;
if (c5167bnt2 == null) {
C14957gcv.a("");
c5167bnt2 = null;
}
String stringExtra = intent.getStringExtra("EXTRA_RESULT_OCCUPATION_ISIC_CODE");
if (stringExtra == null) {
stringExtra = "";
}
C14957gcv.e(stringExtra, "");
c5167bnt2.d = stringExtra;
C5167bnt c5167bnt3 = this.presenter;
if (c5167bnt3 == null) {
C14957gcv.a("");
c5167bnt3 = null;
}
c5167bnt3.a(C5167bnt.Sts.BUSINESS_INDUSTRY, true);
}
if (i == 10003 && i2 == -1 && intent != null && (extras2 = intent.getExtras()) != null && (c5045bld2 = (C5045bld) extras2.getParcelable("OPERATING_ACCOUNT_RESULT")) != null) {
final C5167bnt c5167bnt4 = this.presenter;
if (c5167bnt4 == null) {
C14957gcv.a("");
c5167bnt4 = null;
}
C14957gcv.e(c5045bld2, "");
c5167bnt4.c++;
c5167bnt4.a(C5167bnt.Sts.BANK_ACCOUNT, c5167bnt4.c >= c5167bnt4.g);
ZI.IeS ieS = new ZI.IeS(c5167bnt4, c5045bld2) { // from class: o.bnE
private C5167bnt b;
private C5045bld e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.d(this.b, this.e, (InterfaceC9255dgK) obj);
}
{
this.b = c5167bnt4;
this.e = c5045bld2;
}
};
if (c5167bnt4.f != 0) {
ieS.e(c5167bnt4.f);
}
}
if (i != 10004 || i2 != -1 || intent == null || (extras = intent.getExtras()) == null || (c5045bld = (C5045bld) extras.getParcelable("OPERATING_ACCOUNT_RESULT")) == null) {
return;
}
if (extras.getBoolean("OPERATING_ACCOUNT_EDIT_ACTION", false)) {
C5167bnt c5167bnt5 = this.presenter;
if (c5167bnt5 != null) {
c5167bnt = c5167bnt5;
} else {
C14957gcv.a("");
}
C14957gcv.c(c5045bld, "");
C14957gcv.e(c5045bld, "");
int i3 = c5167bnt.c - 1;
c5167bnt.c = i3;
if (i3 < c5167bnt.g) {
c5167bnt.k.remove(C5167bnt.Sts.BANK_ACCOUNT);
}
ZI.IeS ieS2 = new ZI.IeS(c5167bnt, c5045bld) { // from class: o.bnI
private C5167bnt a;
private C5045bld d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.c(this.a, this.d, (InterfaceC9255dgK) obj);
}
{
this.a = c5167bnt;
this.d = c5045bld;
}
};
if (c5167bnt.f != 0) {
ieS2.e(c5167bnt.f);
return;
}
return;
}
C5167bnt c5167bnt6 = this.presenter;
if (c5167bnt6 != null) {
c5167bnt = c5167bnt6;
} else {
C14957gcv.a("");
}
C14957gcv.c(c5045bld, "");
C14957gcv.e(c5045bld, "");
ZI.IeS ieS3 = new ZI.IeS(c5167bnt, c5045bld) { // from class: o.bnG
private C5045bld a;
private C5167bnt b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.e(this.b, this.a, (InterfaceC9255dgK) obj);
}
{
this.b = c5167bnt;
this.a = c5045bld;
}
};
if (c5167bnt.f != 0) {
ieS3.e(c5167bnt.f);
}
}
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14937gcb<HmlETBOperatingAccountActivity.LWm, MX, C14866gag> {
private HmlBusinessInformationFragment b;
@Override // o.InterfaceC14937gcb
public final /* synthetic */ C14866gag invoke(HmlETBOperatingAccountActivity.LWm lWm, MX mx) {
HmlETBOperatingAccountActivity.LWm lWm2 = lWm;
final MX mx2 = mx;
C14957gcv.e(lWm2, "");
int i = HBt.a[lWm2.ordinal()];
C5167bnt c5167bnt = null;
if (i == 1) {
C5167bnt c5167bnt2 = this.b.presenter;
if (c5167bnt2 != null) {
c5167bnt = c5167bnt2;
} else {
C14957gcv.a("");
}
C5171bnx c5171bnx = new C5171bnx();
if (c5167bnt.f != 0) {
c5171bnx.e(c5167bnt.f);
}
} else if (i == 2 && mx2 != null) {
C5167bnt c5167bnt3 = this.b.presenter;
if (c5167bnt3 != null) {
c5167bnt = c5167bnt3;
} else {
C14957gcv.a("");
}
C14957gcv.e(mx2, "");
ZI.IeS ieS = new ZI.IeS(mx2) { // from class: o.bny
private MX a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.d(this.a, (InterfaceC9255dgK) obj);
}
{
this.a = mx2;
}
};
if (c5167bnt.f != 0) {
ieS.e(c5167bnt.f);
}
}
return C14866gag.c;
}
/* loaded from: classes5.dex */
public final /* synthetic */ class HBt {
public static final int[] a;
static {
int[] iArr = new int[HmlETBOperatingAccountActivity.LWm.values().length];
try {
iArr[HmlETBOperatingAccountActivity.LWm.ADD.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[HmlETBOperatingAccountActivity.LWm.EDIT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
a = iArr;
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(HmlBusinessInformationFragment hmlBusinessInformationFragment) {
super(2);
this.b = hmlBusinessInformationFragment;
}
}
@Override // o.InterfaceC9255dgK
public final void e(int i) {
this.c = new HmlBusinessInfoAdapter(i, new Sts(this));
RecyclerView recyclerView = this.recyclerView;
RecyclerView recyclerView2 = null;
if (recyclerView == null) {
C14957gcv.a("");
recyclerView = null;
}
getActivity();
recyclerView.setLayoutManager(new LinearLayoutManager(1, false));
RecyclerView recyclerView3 = this.recyclerView;
if (recyclerView3 != null) {
recyclerView2 = recyclerView3;
} else {
C14957gcv.a("");
}
recyclerView2.setAdapter(this.c);
}
@Override // o.InterfaceC9255dgK
public final void d(List<MX> list, int i) {
C14957gcv.e(list, "");
List<MX> list2 = list;
TextView textView = null;
if (!list2.isEmpty()) {
RecyclerView recyclerView = this.recyclerView;
if (recyclerView == null) {
C14957gcv.a("");
recyclerView = null;
}
recyclerView.setVisibility(0);
TextView textView2 = this.accountSelector;
if (textView2 != null) {
textView = textView2;
} else {
C14957gcv.a("");
}
textView.setVisibility(8);
HmlBusinessInfoAdapter hmlBusinessInfoAdapter = this.c;
if (hmlBusinessInfoAdapter != null) {
C14957gcv.e(list, "");
hmlBusinessInfoAdapter.a.clear();
hmlBusinessInfoAdapter.a.addAll(list2);
hmlBusinessInfoAdapter.notifyDataSetChanged();
}
c(i);
return;
}
RecyclerView recyclerView2 = this.recyclerView;
if (recyclerView2 == null) {
C14957gcv.a("");
recyclerView2 = null;
}
recyclerView2.setVisibility(8);
TextView textView3 = this.addAccount;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setVisibility(8);
TextView textView4 = this.accountSelector;
if (textView4 != null) {
textView = textView4;
} else {
C14957gcv.a("");
}
textView.setVisibility(0);
c(i);
}
@Override // o.InterfaceC9255dgK
public final void c(MX mx) {
Object obj;
C14957gcv.e(mx, "");
HmlBusinessInfoAdapter hmlBusinessInfoAdapter = this.c;
if (hmlBusinessInfoAdapter != null) {
C14957gcv.e(mx, "");
hmlBusinessInfoAdapter.a.add(mx);
C14881gav.a((Iterable) hmlBusinessInfoAdapter.a, (Comparator) new HmlBusinessInfoAdapter.RVV());
Iterator<T> it = hmlBusinessInfoAdapter.a.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
} else {
obj = it.next();
if (((MX) obj).j == MT.PLACE_HOLDER) {
break;
}
}
}
MX mx2 = (MX) obj;
if (mx2 != null) {
hmlBusinessInfoAdapter.a.remove(mx2);
}
hmlBusinessInfoAdapter.notifyDataSetChanged();
}
}
@Override // o.InterfaceC9255dgK
public final void a(MX mx) {
C14957gcv.e(mx, "");
HmlBusinessInfoAdapter hmlBusinessInfoAdapter = this.c;
if (hmlBusinessInfoAdapter != null) {
C14957gcv.e(mx, "");
hmlBusinessInfoAdapter.a.set(hmlBusinessInfoAdapter.b, mx);
hmlBusinessInfoAdapter.notifyDataSetChanged();
}
}
@Override // o.InterfaceC9255dgK
public final void e(MX mx) {
Object obj;
C14957gcv.e(mx, "");
HmlBusinessInfoAdapter hmlBusinessInfoAdapter = this.c;
if (hmlBusinessInfoAdapter != null) {
C14957gcv.e(mx, "");
Iterator<T> it = hmlBusinessInfoAdapter.a.iterator();
while (true) {
if (it.hasNext()) {
obj = it.next();
if (((MX) obj).g == mx.g) {
break;
}
} else {
obj = null;
break;
}
}
MX mx2 = (MX) obj;
if (mx2 != null) {
hmlBusinessInfoAdapter.a.remove(mx2);
}
List<MX> list = hmlBusinessInfoAdapter.a;
ArrayList arrayList = new ArrayList();
for (Object obj2 : list) {
if (((MX) obj2).j == MT.ACCOUNT) {
arrayList.add(obj2);
}
}
if (arrayList.size() < hmlBusinessInfoAdapter.e) {
hmlBusinessInfoAdapter.a.add(new MX(-1, "", "", "", "", "", MT.PLACE_HOLDER));
}
hmlBusinessInfoAdapter.notifyDataSetChanged();
}
}
@Override // o.InterfaceC9255dgK
public final void a(List<String> list, int i) {
C14957gcv.e(list, "");
CustomSpinnerWithTitle customSpinnerWithTitle = this.incomeSpinner;
CustomSpinnerWithTitle customSpinnerWithTitle2 = null;
if (customSpinnerWithTitle == null) {
C14957gcv.a("");
customSpinnerWithTitle = null;
}
customSpinnerWithTitle.setItems(list, true, false);
CustomSpinnerWithTitle customSpinnerWithTitle3 = this.incomeSpinner;
if (customSpinnerWithTitle3 == null) {
C14957gcv.a("");
customSpinnerWithTitle3 = null;
}
customSpinnerWithTitle3.setSelectionIndex(i);
CustomSpinnerWithTitle customSpinnerWithTitle4 = this.incomeSpinner;
if (customSpinnerWithTitle4 != null) {
customSpinnerWithTitle2 = customSpinnerWithTitle4;
} else {
C14957gcv.a("");
}
customSpinnerWithTitle2.setOnCustomSpinnerWithTitleCompletion(new HBt(this));
}
/* loaded from: classes5.dex */
public static final class HBt implements CustomSpinnerWithTitle.LWm {
private boolean a = true;
private HmlBusinessInformationFragment c;
@Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm
public final void bn_() {
}
HBt(HmlBusinessInformationFragment hmlBusinessInformationFragment) {
this.c = hmlBusinessInformationFragment;
}
@Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm
public final void bo_() {
if (this.a) {
this.a = false;
return;
}
C5167bnt c5167bnt = this.c.presenter;
CustomSpinnerWithTitle customSpinnerWithTitle = null;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
CustomSpinnerWithTitle customSpinnerWithTitle2 = this.c.incomeSpinner;
if (customSpinnerWithTitle2 != null) {
customSpinnerWithTitle = customSpinnerWithTitle2;
} else {
C14957gcv.a("");
}
if (((MYp) customSpinnerWithTitle.c.e()).c.getSelectedItemPosition() == 0) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bnw
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9255dgK) obj).e(C5167bnt.Sts.SOURCE_OF_INCOME, true);
}
};
if (c5167bnt.f != 0) {
ieS.e(c5167bnt.f);
}
c5167bnt.k.remove(C5167bnt.Sts.SOURCE_OF_INCOME);
return;
}
c5167bnt.a(C5167bnt.Sts.SOURCE_OF_INCOME, true);
}
}
@Override // androidx.fragment.app.Fragment
public void onResume() {
super.onResume();
C5167bnt c5167bnt = this.presenter;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
c5167bnt.a = true;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroyView() {
C5167bnt c5167bnt = this.presenter;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
c5167bnt.w_();
super.onDestroyView();
}
public static /* synthetic */ void c(HmlBusinessInformationFragment hmlBusinessInformationFragment) {
C14957gcv.e(hmlBusinessInformationFragment, "");
RelativeLayout relativeLayout = hmlBusinessInformationFragment.root;
RelativeLayout relativeLayout2 = null;
if (relativeLayout == null) {
C14957gcv.a("");
relativeLayout = null;
}
relativeLayout.setFocusable(true);
RelativeLayout relativeLayout3 = hmlBusinessInformationFragment.root;
if (relativeLayout3 == null) {
C14957gcv.a("");
relativeLayout3 = null;
}
relativeLayout3.setFocusableInTouchMode(true);
RelativeLayout relativeLayout4 = hmlBusinessInformationFragment.root;
if (relativeLayout4 != null) {
relativeLayout2 = relativeLayout4;
} else {
C14957gcv.a("");
}
relativeLayout2.requestFocus();
}
public static /* synthetic */ void b(HmlBusinessInformationFragment hmlBusinessInformationFragment) {
C14957gcv.e(hmlBusinessInformationFragment, "");
C5167bnt c5167bnt = hmlBusinessInformationFragment.presenter;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
C5171bnx c5171bnx = new C5171bnx();
if (c5167bnt.f != 0) {
c5171bnx.e(c5167bnt.f);
}
}
public static /* synthetic */ void a(HmlBusinessInformationFragment hmlBusinessInformationFragment, View view, boolean z) {
String str;
Editable text;
C14957gcv.e(hmlBusinessInformationFragment, "");
C5167bnt c5167bnt = hmlBusinessInformationFragment.presenter;
if (c5167bnt == null) {
C14957gcv.a("");
c5167bnt = null;
}
CustomEditText customEditText = view instanceof CustomEditText ? (CustomEditText) view : null;
if (customEditText == null || (text = customEditText.getText()) == null || (str = text.toString()) == null) {
str = "";
}
C14957gcv.e(str, "");
if (z) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bnD
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9255dgK) obj).c(C5167bnt.Sts.NET_INCOME);
}
};
if (c5167bnt.f != 0) {
ieS.e(c5167bnt.f);
return;
}
return;
}
if (str.length() == 0) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bnK
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9255dgK) obj).e(C5167bnt.Sts.NET_INCOME, true);
}
};
if (c5167bnt.f != 0) {
ieS2.e(c5167bnt.f);
}
c5167bnt.k.remove(C5167bnt.Sts.NET_INCOME);
return;
}
c5167bnt.a(C5167bnt.Sts.NET_INCOME, c5167bnt.e(str));
}
public static /* synthetic */ boolean c(HmlBusinessInformationFragment hmlBusinessInformationFragment, int i) {
C14957gcv.e(hmlBusinessInformationFragment, "");
if (i != 6) {
return false;
}
RelativeLayout relativeLayout = hmlBusinessInformationFragment.root;
RelativeLayout relativeLayout2 = null;
if (relativeLayout == null) {
C14957gcv.a("");
relativeLayout = null;
}
relativeLayout.setFocusable(true);
RelativeLayout relativeLayout3 = hmlBusinessInformationFragment.root;
if (relativeLayout3 == null) {
C14957gcv.a("");
relativeLayout3 = null;
}
relativeLayout3.setFocusableInTouchMode(true);
RelativeLayout relativeLayout4 = hmlBusinessInformationFragment.root;
if (relativeLayout4 != null) {
relativeLayout2 = relativeLayout4;
} else {
C14957gcv.a("");
}
relativeLayout2.requestFocus();
hmlBusinessInformationFragment.aN_();
return false;
}
@Override // o.InterfaceC9255dgK
public final void c(MW mw) {
String str;
C14957gcv.e(mw, "");
MY my = mw.b;
CustomEditText customEditText = null;
if (my != null && (str = my.a) != null) {
TextView textView = this.businessIndustry;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(str);
}
CustomAcceptDeclineButtons customAcceptDeclineButtons = this.businessType;
if (customAcceptDeclineButtons == null) {
C14957gcv.a("");
customAcceptDeclineButtons = null;
}
TextView textView2 = customAcceptDeclineButtons.tvLabel;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setVisibility(8);
CustomAcceptDeclineButtons customAcceptDeclineButtons2 = this.businessType;
if (customAcceptDeclineButtons2 == null) {
C14957gcv.a("");
customAcceptDeclineButtons2 = null;
}
Button button = customAcceptDeclineButtons2.btAccept;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setText(getString(R.string.hml_business_info_jusristic_button));
CustomAcceptDeclineButtons customAcceptDeclineButtons3 = this.businessType;
if (customAcceptDeclineButtons3 == null) {
C14957gcv.a("");
customAcceptDeclineButtons3 = null;
}
Button button2 = customAcceptDeclineButtons3.btDecline;
if (button2 == null) {
C14957gcv.a("");
button2 = null;
}
button2.setText(getString(R.string.hml_business_info_no_juristic_button));
CustomAcceptDeclineButtons customAcceptDeclineButtons4 = this.businessType;
if (customAcceptDeclineButtons4 == null) {
C14957gcv.a("");
customAcceptDeclineButtons4 = null;
}
customAcceptDeclineButtons4.setOnButtonClickListener(new RVV(this));
String str2 = mw.a;
if (str2 != null) {
if (C14957gcv.b((Object) str2, (Object) "JURISTIC")) {
CustomAcceptDeclineButtons customAcceptDeclineButtons5 = this.businessType;
if (customAcceptDeclineButtons5 == null) {
C14957gcv.a("");
customAcceptDeclineButtons5 = null;
}
customAcceptDeclineButtons5.a(true);
} else if (C14957gcv.b((Object) str2, (Object) "NON_JURISTIC")) {
CustomAcceptDeclineButtons customAcceptDeclineButtons6 = this.businessType;
if (customAcceptDeclineButtons6 == null) {
C14957gcv.a("");
customAcceptDeclineButtons6 = null;
}
customAcceptDeclineButtons6.a(false);
}
}
NN nn = mw.g;
if (nn != null) {
boolean z = nn.c;
CheckBox checkBox = this.cbPhysical;
if (checkBox == null) {
C14957gcv.a("");
checkBox = null;
}
checkBox.setChecked(z);
}
NN nn2 = mw.g;
if (nn2 != null) {
boolean z2 = nn2.b;
CheckBox checkBox2 = this.cbMarketplace;
if (checkBox2 == null) {
C14957gcv.a("");
checkBox2 = null;
}
checkBox2.setChecked(z2);
}
NN nn3 = mw.g;
if (nn3 != null) {
boolean z3 = nn3.a;
CheckBox checkBox3 = this.cbWebsite;
if (checkBox3 == null) {
C14957gcv.a("");
checkBox3 = null;
}
checkBox3.setChecked(z3);
}
C0750Ns c0750Ns = mw.d;
if (c0750Ns != null) {
boolean z4 = c0750Ns.d;
CheckBox checkBox4 = this.cbExpansion;
if (checkBox4 == null) {
C14957gcv.a("");
checkBox4 = null;
}
checkBox4.setChecked(z4);
}
C0750Ns c0750Ns2 = mw.d;
if (c0750Ns2 != null) {
boolean z5 = c0750Ns2.e;
CheckBox checkBox5 = this.cbCapital;
if (checkBox5 == null) {
C14957gcv.a("");
checkBox5 = null;
}
checkBox5.setChecked(z5);
}
Integer num = mw.c;
if (num != null) {
int intValue = num.intValue();
CustomEditText customEditText2 = this.monthlyIncome;
if (customEditText2 != null) {
customEditText = customEditText2;
} else {
C14957gcv.a("");
}
customEditText.setText(String.valueOf(intValue));
}
}
/* JADX WARN: Code restructure failed: missing block: B:31:0x005d, code lost:
if (r3 >= (r7 != null ? r7.e : 0)) goto L34;
*/
@Override // o.InterfaceC9255dgK
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void c(int r7) {
/*
r6 = this;
com.scb.phone.view.adapter.hml.HmlBusinessInfoAdapter r0 = r6.c
r1 = 0
if (r0 == 0) goto L30
java.util.List<o.MX> r0 = r0.a
if (r0 == 0) goto L30
java.lang.Iterable r0 = (java.lang.Iterable) r0
java.util.ArrayList r2 = new java.util.ArrayList
r2.<init>()
java.util.Collection r2 = (java.util.Collection) r2
java.util.Iterator r0 = r0.iterator()
L16:
boolean r3 = r0.hasNext()
if (r3 == 0) goto L2d
java.lang.Object r3 = r0.next()
r4 = r3
o.MX r4 = (o.MX) r4
o.MT r4 = r4.j
o.MT r5 = o.MT.ACCOUNT
if (r4 != r5) goto L16
r2.add(r3)
goto L16
L2d:
java.util.List r2 = (java.util.List) r2
goto L31
L30:
r2 = r1
L31:
r0 = 0
if (r2 == 0) goto L39
int r3 = r2.size()
goto L3a
L39:
r3 = r0
L3a:
android.widget.TextView r4 = r6.addAccount
java.lang.String r5 = ""
if (r4 == 0) goto L42
r1 = r4
goto L45
L42:
o.C14957gcv.a(r5)
L45:
android.view.View r1 = (android.view.View) r1
if (r3 >= r7) goto L60
if (r2 == 0) goto L60
java.util.Collection r2 = (java.util.Collection) r2
boolean r7 = r2.isEmpty()
r2 = 1
r7 = r7 ^ r2
if (r7 == 0) goto L60
com.scb.phone.view.adapter.hml.HmlBusinessInfoAdapter r7 = r6.c
if (r7 == 0) goto L5c
int r7 = r7.e
goto L5d
L5c:
r7 = r0
L5d:
if (r3 < r7) goto L60
goto L61
L60:
r2 = r0
L61:
o.C14957gcv.e(r1, r5)
if (r2 == 0) goto L67
goto L69
L67:
r0 = 8
L69:
r1.setVisibility(r0)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.hml.HmlBusinessInformationFragment.c(int):void");
}
@Override // o.InterfaceC9255dgK
public final void a() {
RelativeLayout relativeLayout = this.root;
RelativeLayout relativeLayout2 = null;
if (relativeLayout == null) {
C14957gcv.a("");
relativeLayout = null;
}
relativeLayout.setFocusable(true);
RelativeLayout relativeLayout3 = this.root;
if (relativeLayout3 == null) {
C14957gcv.a("");
relativeLayout3 = null;
}
relativeLayout3.setFocusableInTouchMode(true);
RelativeLayout relativeLayout4 = this.root;
if (relativeLayout4 != null) {
relativeLayout2 = relativeLayout4;
} else {
C14957gcv.a("");
}
relativeLayout2.requestFocus();
C0693Mj c0693Mj = new C0693Mj();
c0693Mj.d = getString(R.string.hml_business_info_2_empty_fields_title);
c0693Mj.c = getString(R.string.hml_business_info_2_empty_fields_content);
C0690Mh c0690Mh = new C0690Mh();
c0690Mh.b = getString(R.string.ok);
c0690Mh.e = C0690Mh.IeS.JUST_DISMISS;
c0693Mj.e = c0690Mh;
e(c0693Mj);
}
/* loaded from: classes5.dex */
public final /* synthetic */ class IeS {
public static final int[] d;
static {
int[] iArr = new int[C5167bnt.Sts.values().length];
try {
iArr[C5167bnt.Sts.BUSINESS_INDUSTRY.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[C5167bnt.Sts.BUSINESS_TYPE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[C5167bnt.Sts.STORE_TYPE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[C5167bnt.Sts.LOAN_PURPOSE.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[C5167bnt.Sts.NET_INCOME.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
iArr[C5167bnt.Sts.BANK_ACCOUNT.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
iArr[C5167bnt.Sts.SOURCE_OF_INCOME.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
d = iArr;
}
}
}