package com.scb.phone.view.fragment.hml; import android.content.DialogInterface; import android.os.Bundle; import android.text.Editable; import android.text.InputFilter; import android.text.TextUtils; 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.ImageView; import android.widget.LinearLayout; 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.HmlMailingAddressActivity; import com.scb.phone.view.activity.hml.HmlNTBLaserIdAboutActivity; import com.scb.phone.view.custom.common.CommonInputViewGroup; import com.scb.phone.view.custom.common.CustomDialog; import com.scb.phone.view.custom.common.CustomEditText; import com.scb.phone.view.custom.common.CustomLaserIdInput; import com.scb.phone.view.custom.common.CustomPhoneNumberInput; import com.scb.phone.view.custom.common.DateInputText; import com.scb.phone.view.custom.investment.onboarding.CustomDropdownAwareSpinner; import com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle; import com.scb.phone.view.fragment.BaseFragment; import com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment; import java.util.List; import java.util.regex.Pattern; import o.AbstractC5071bmC; import o.C5078bmJ; import o.C6583cXR; import o.InterfaceC9249dgE; import o.MYp; import o.ViewOnFocusChangeListenerC10337eBX; import o.ZI; import o.fJJ; import o.fLM; import o.fLN; import o.gjJ; import o.lUI; import o.nMh; import org.jmrtd.cbeff.ISO781611; /* loaded from: classes5.dex */ public abstract class HmlBasePersonalInfoFragment extends BaseFragment implements CustomLaserIdInput.HBt, InterfaceC9249dgE { @BindView DateInputText baseExpiredDate; private LWm c; public AbstractC5071bmC d; @BindView CustomSpinnerWithTitle educationLevelSpinner; @BindView TextView educationalLevelError; @BindView TextView emailRemark; @BindView CommonInputViewGroup emailView; @BindView CommonInputViewGroup firstNameView; private HBt i; @BindView CustomEditText income; @BindView TextView incomeError; @BindView CustomLaserIdInput laserIdInput; @BindView CommonInputViewGroup lastNameView; @BindView ImageView mailingArrow; @BindView TextView mailingView; @BindView TextView mailingViewError; @BindView TextView maritalStatusError; @BindView CustomSpinnerWithTitle maritalStatusSpinner; @BindView TextView mobileNumberOtpMsg; @BindView CustomPhoneNumberInput mobileNumberView; @BindView View nameSection; @BindView TextView nameValue; @BindView Button nextButton; @BindView TextView residentialStatusError; @BindView CustomSpinnerWithTitle residentialStatusSpinner; @BindView public LinearLayout root; @BindView CheckBox sameAddressCheckBox; @BindView View separator; public static /* synthetic */ void r() { } protected abstract void B(); public int w() { return R.layout.2131559718; } @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { View inflate = layoutInflater.inflate(w(), (ViewGroup) null, false); ButterKnife.c(this, inflate); A(); D(); LWm lWm = new LWm(this); this.c = lWm; this.mailingView.addTextChangedListener(lWm); this.mailingView.clearFocus(); B(); this.nextButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.fae private HmlBasePersonalInfoFragment c; @Override // android.view.View.OnClickListener public final void onClick(View view) { this.c.d.c(); } { this.c = this; } }); CustomPhoneNumberInput customPhoneNumberInput = this.mobileNumberView; customPhoneNumberInput.mEditText.setOnFocusChangeListener(new ViewOnFocusChangeListenerC10337eBX(customPhoneNumberInput, customPhoneNumberInput.getOnFocusChangeListener())); this.mobileNumberView.setErrorText(getString(R.string.hml_personal_info_empty_field)); HBt hBt = new HBt(this, (byte) 0); this.i = hBt; CustomPhoneNumberInput customPhoneNumberInput2 = this.mobileNumberView; customPhoneNumberInput2.mEditText.addTextChangedListener(hBt); customPhoneNumberInput2.d.add(hBt); this.mobileNumberView.clearFocus(); this.income.setFilters(new InputFilter[]{new fLN(17, 0)}); this.income.addTextChangedListener(new fLM(this.income, new fLM.IeS(this) { // from class: o.faf private HmlBasePersonalInfoFragment a; @Override // o.fLM.IeS public final void e(double d) { this.a.d.e(d); } { this.a = this; } })); this.income.setOnBackListener(new CustomEditText.LWm(this) { // from class: o.fai private HmlBasePersonalInfoFragment b; @Override // com.scb.phone.view.custom.common.CustomEditText.LWm public final void a() { HmlBasePersonalInfoFragment hmlBasePersonalInfoFragment = this.b; hmlBasePersonalInfoFragment.root.setFocusable(true); hmlBasePersonalInfoFragment.root.setFocusableInTouchMode(true); hmlBasePersonalInfoFragment.root.requestFocus(); } { this.b = this; } }); this.income.setOnFocusChangeListener(new View.OnFocusChangeListener(this) { // from class: o.fah private HmlBasePersonalInfoFragment d; @Override // android.view.View.OnFocusChangeListener public final void onFocusChange(View view, boolean z) { r1.d.c(AbstractC5071bmC.HBt.INCOMING, this.d.income.getText().toString(), 0, z); } { this.d = this; } }); this.income.setOnEditorActionListener(new TextView.OnEditorActionListener(this) { // from class: o.faj private HmlBasePersonalInfoFragment d; @Override // android.widget.TextView.OnEditorActionListener public final boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) { return HmlBasePersonalInfoFragment.e(this.d, i); } { this.d = this; } }); CustomLaserIdInput customLaserIdInput = this.laserIdInput; fJJ fjj = new fJJ(this) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.6 private HmlBasePersonalInfoFragment c; { this.c = this; } @Override // o.fJJ, android.text.TextWatcher public final void afterTextChanged(Editable editable) { AbstractC5071bmC abstractC5071bmC = this.c.d; String c = this.c.laserIdInput.c(); if (c != null) { abstractC5071bmC.c(AbstractC5071bmC.HBt.LASER_ID, c.length() == 12 && c.matches("[a-zA-Z0-9]*"), TextUtils.isEmpty(c)); } } }; customLaserIdInput.etLaserIdFirst.addTextChangedListener(fjj); customLaserIdInput.etLaserIdSecond.addTextChangedListener(fjj); customLaserIdInput.etLaserIdThird.addTextChangedListener(fjj); this.laserIdInput.setOnLaserIdListener(this); this.laserIdInput.setFocusListener(new View.OnFocusChangeListener() { // from class: o.fag @Override // android.view.View.OnFocusChangeListener public final void onFocusChange(View view, boolean z) { HmlBasePersonalInfoFragment.r(); } }); CommonInputViewGroup commonInputViewGroup = this.emailView; fJJ fjj2 = new fJJ(this) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.4 private HmlBasePersonalInfoFragment b; { this.b = this; } @Override // o.fJJ, android.text.TextWatcher public final void afterTextChanged(Editable editable) { AbstractC5071bmC abstractC5071bmC = this.b.d; String obj = editable.toString(); if (obj == null || obj.isEmpty()) { ZI.IeS ieS = new ZI.IeS() { // from class: o.bmQ @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9249dgE) obj2).h(); } }; if (abstractC5071bmC.f != 0) { ieS.e(abstractC5071bmC.f); } abstractC5071bmC.a(AbstractC5071bmC.HBt.EMAIL, false); return; } lUI lui = abstractC5071bmC.p; if (obj == null || !Pattern.compile("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$").matcher(obj).matches()) { ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bmO @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9249dgE) obj2).j(); } }; if (abstractC5071bmC.f != 0) { ieS2.e(abstractC5071bmC.f); } abstractC5071bmC.a(AbstractC5071bmC.HBt.EMAIL, false); return; } ZI.IeS ieS3 = new ZI.IeS() { // from class: o.bmN @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9249dgE) obj2).b(AbstractC5071bmC.HBt.EMAIL); } }; if (abstractC5071bmC.f != 0) { ieS3.e(abstractC5071bmC.f); } abstractC5071bmC.a(AbstractC5071bmC.HBt.EMAIL, true); } }; commonInputViewGroup.mEditText.addTextChangedListener(fjj2); commonInputViewGroup.d.add(fjj2); this.maritalStatusSpinner.setSpinnerEventsListener(new CustomDropdownAwareSpinner.RVV(this) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.5 private HmlBasePersonalInfoFragment b; { this.b = this; } @Override // com.scb.phone.view.custom.investment.onboarding.CustomDropdownAwareSpinner.RVV public final void d() { this.b.d.c(((MYp) this.b.maritalStatusSpinner.c.e()).c.getSelectedItemPosition(), this.b.maritalStatusSpinner.d(), AbstractC5071bmC.HBt.MARITAL_STATUS); AbstractC5071bmC abstractC5071bmC = this.b.d; C5078bmJ c5078bmJ = new C5078bmJ(abstractC5071bmC, AbstractC5071bmC.HBt.MARITAL_STATUS); if (abstractC5071bmC.f != 0) { c5078bmJ.e(abstractC5071bmC.f); } } }); this.residentialStatusSpinner.setSpinnerEventsListener(new CustomDropdownAwareSpinner.RVV(this) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.2 private HmlBasePersonalInfoFragment a; { this.a = this; } @Override // com.scb.phone.view.custom.investment.onboarding.CustomDropdownAwareSpinner.RVV public final void d() { this.a.d.c(((MYp) this.a.residentialStatusSpinner.c.e()).c.getSelectedItemPosition(), (String) null, AbstractC5071bmC.HBt.RESIDENCE_TYPE); AbstractC5071bmC abstractC5071bmC = this.a.d; C5078bmJ c5078bmJ = new C5078bmJ(abstractC5071bmC, AbstractC5071bmC.HBt.RESIDENCE_TYPE); if (abstractC5071bmC.f != 0) { c5078bmJ.e(abstractC5071bmC.f); } } }); this.educationLevelSpinner.setSpinnerEventsListener(new CustomDropdownAwareSpinner.RVV(this) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.3 private HmlBasePersonalInfoFragment c; { this.c = this; } @Override // com.scb.phone.view.custom.investment.onboarding.CustomDropdownAwareSpinner.RVV public final void d() { this.c.d.c(((MYp) this.c.educationLevelSpinner.c.e()).c.getSelectedItemPosition(), (String) null, AbstractC5071bmC.HBt.EDUCATION_LEVEL); AbstractC5071bmC abstractC5071bmC = this.c.d; C5078bmJ c5078bmJ = new C5078bmJ(abstractC5071bmC, AbstractC5071bmC.HBt.EDUCATION_LEVEL); if (abstractC5071bmC.f != 0) { c5078bmJ.e(abstractC5071bmC.f); } } }); return inflate; } /* JADX INFO: Access modifiers changed from: protected */ public final void A() { this.firstNameView.requestFocus(); this.firstNameView.mEditText.setInputType(524432); this.firstNameView.mEditText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(ISO781611.BIOMETRIC_SUBTYPE_TAG)}); b(this.firstNameView, AbstractC5071bmC.HBt.FIRST_NAME); } /* JADX INFO: Access modifiers changed from: protected */ public final void D() { this.lastNameView.clearFocus(); this.lastNameView.mEditText.setInputType(524432); this.lastNameView.mEditText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(30)}); b(this.lastNameView, AbstractC5071bmC.HBt.LAST_NAME); } /* JADX INFO: Access modifiers changed from: protected */ public final void a(CustomSpinnerWithTitle customSpinnerWithTitle, String str, List list, int i) { customSpinnerWithTitle.b(); if (str != null) { customSpinnerWithTitle.setItems(list, false, true); int indexOf = list.indexOf(str); if (indexOf != -1) { customSpinnerWithTitle.setSelectionIndex(indexOf); return; } return; } customSpinnerWithTitle.setHint(getString(i)); customSpinnerWithTitle.setItems(list, true, false); customSpinnerWithTitle.setMandatory(true); } @Override // o.InterfaceC9249dgE public final void b(String str) { this.nameSection.setVisibility(0); this.nameValue.setText(str); } @Override // o.InterfaceC9249dgE public final void d(String str, String str2) { this.separator.setVisibility(0); this.firstNameView.setVisibility(0); this.lastNameView.setVisibility(0); CommonInputViewGroup commonInputViewGroup = this.firstNameView; if (str != null && !str.isEmpty()) { commonInputViewGroup.setText(str); } CommonInputViewGroup commonInputViewGroup2 = this.lastNameView; if (str2 == null || str2.isEmpty()) { return; } commonInputViewGroup2.setText(str2); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment$1, reason: invalid class name */ /* loaded from: classes5.dex */ public static /* synthetic */ class AnonymousClass1 { static final int[] c; static { int[] iArr = new int[AbstractC5071bmC.HBt.values().length]; c = iArr; try { iArr[AbstractC5071bmC.HBt.FIRST_NAME.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { c[AbstractC5071bmC.HBt.LAST_NAME.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { c[AbstractC5071bmC.HBt.MOBILE_NUMBER.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { c[AbstractC5071bmC.HBt.INCOMING.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { c[AbstractC5071bmC.HBt.EMAIL.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { c[AbstractC5071bmC.HBt.EDUCATION_LEVEL.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { c[AbstractC5071bmC.HBt.MARITAL_STATUS.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } try { c[AbstractC5071bmC.HBt.LASER_ID.ordinal()] = 8; } catch (NoSuchFieldError unused8) { } try { c[AbstractC5071bmC.HBt.RESIDENCE_TYPE.ordinal()] = 9; } catch (NoSuchFieldError unused9) { } try { c[AbstractC5071bmC.HBt.MAILING_ADDRESS.ordinal()] = 10; } catch (NoSuchFieldError unused10) { } } } @Override // o.InterfaceC9249dgE public void a(AbstractC5071bmC.HBt hBt) { switch (AnonymousClass1.c[hBt.ordinal()]) { case 1: this.firstNameView.setErrorText(getString(R.string.hml_personal_info_first_name_thai_only)); this.firstNameView.c(); return; case 2: this.lastNameView.setErrorText(getString(R.string.hml_personal_info_last_name_thai_only)); this.lastNameView.c(); return; case 3: this.mobileNumberView.setErrorText(getString(R.string.hml_personal_info_invalid_format)); this.mobileNumberView.c(); return; case 4: this.incomeError.setText(R.string.hml_personal_info_monthly_income_error); this.incomeError.setVisibility(0); this.income.e(true); return; case 5: this.emailRemark.setVisibility(8); this.emailView.setErrorText(getString(R.string.hml_personal_info_invalid_format)); this.emailView.e(); return; case 6: this.educationalLevelError.setVisibility(0); this.educationLevelSpinner.setSpinnerBackground(true); return; case 7: this.maritalStatusError.setVisibility(0); this.maritalStatusSpinner.setSpinnerBackground(true); return; case 8: this.laserIdInput.setError(getString(R.string.auto_personal_laser_id_error_invalid)); CustomLaserIdInput customLaserIdInput = this.laserIdInput; customLaserIdInput.tvLaserIdError.setVisibility(0); customLaserIdInput.d(false); return; default: return; } } @Override // o.InterfaceC9249dgE public void b(AbstractC5071bmC.HBt hBt) { switch (AnonymousClass1.c[hBt.ordinal()]) { case 1: this.firstNameView.e(); return; case 2: this.lastNameView.e(); return; case 3: this.mobileNumberView.e(); return; case 4: this.incomeError.setVisibility(8); this.income.e(true); return; case 5: this.emailRemark.setVisibility(0); this.emailView.e(); return; case 6: this.educationalLevelError.setVisibility(8); this.educationLevelSpinner.setSpinnerBackground(false); return; case 7: this.maritalStatusError.setVisibility(8); this.maritalStatusSpinner.setSpinnerBackground(false); return; case 8: CustomLaserIdInput customLaserIdInput = this.laserIdInput; customLaserIdInput.tvLaserIdError.setVisibility(8); customLaserIdInput.d(true); return; case 9: this.residentialStatusError.setVisibility(8); this.residentialStatusSpinner.setSpinnerBackground(false); return; case 10: this.mailingViewError.setVisibility(8); return; default: return; } } @Override // o.InterfaceC9249dgE public final void e(String str) { this.mailingView.setText(str); this.mailingView.setTextColor(nMh.getColor(getContext(), R.color.f2982131099805)); } @Override // o.InterfaceC9249dgE public final void b() { startActivityForResult(HmlMailingAddressActivity.afU_(getContext()), 1002); } @Override // o.InterfaceC9249dgE public final void h() { this.emailRemark.setVisibility(8); this.emailView.setErrorText(getString(R.string.hml_personal_info_email_empty_error)); this.emailView.c(); } @Override // o.InterfaceC9249dgE public final void j() { this.emailRemark.setVisibility(8); this.emailView.setErrorText(getString(R.string.hml_personal_info_email_invalid_error)); this.emailView.c(); } @Override // o.InterfaceC9249dgE public void c(AbstractC5071bmC.HBt hBt) { switch (AnonymousClass1.c[hBt.ordinal()]) { case 1: this.firstNameView.setErrorText(getString(R.string.hml_personal_info_empty_field)); this.firstNameView.c(); return; case 2: this.lastNameView.setErrorText(getString(R.string.hml_personal_info_empty_field)); this.lastNameView.c(); return; case 3: this.mobileNumberView.setErrorText(getString(R.string.hml_personal_info_empty_field)); this.mobileNumberView.c(); return; case 4: this.incomeError.setText(R.string.hml_personal_info_monthly_income_empty_error); this.incomeError.setVisibility(0); this.income.e(false); return; case 5: this.emailRemark.setVisibility(8); this.emailView.setErrorText(getString(R.string.hml_personal_info_empty_field)); this.emailView.c(); return; case 6: this.educationalLevelError.setVisibility(0); this.educationLevelSpinner.setSpinnerBackground(true); return; case 7: this.maritalStatusError.setVisibility(0); this.maritalStatusSpinner.setSpinnerBackground(true); return; case 8: this.laserIdInput.setError(getString(R.string.hml_personal_info_empty_field)); CustomLaserIdInput customLaserIdInput = this.laserIdInput; customLaserIdInput.tvLaserIdError.setVisibility(0); customLaserIdInput.d(false); return; case 9: this.residentialStatusError.setVisibility(0); this.residentialStatusSpinner.setSpinnerBackground(true); return; case 10: this.mailingViewError.setVisibility(0); return; default: return; } } @Override // o.InterfaceC9249dgE public void a(String str, List list, AbstractC5071bmC.HBt hBt) { int i = AnonymousClass1.c[hBt.ordinal()]; if (i == 6) { a(this.educationLevelSpinner, str, list, R.string.hml_personal_info_select_education_level); this.educationLevelSpinner.setOnCustomSpinnerWithTitleCompletion(new CustomSpinnerWithTitle.LWm(this, str) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.7 private HmlBasePersonalInfoFragment a; private String d; @Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm public final void bn_() { } { this.a = this; this.d = str; } @Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm public final void bo_() { this.a.b(AbstractC5071bmC.HBt.EDUCATION_LEVEL); this.a.d.c(((MYp) this.a.educationLevelSpinner.c.e()).c.getSelectedItemPosition(), this.d, AbstractC5071bmC.HBt.EDUCATION_LEVEL); } }); } else if (i == 7) { a(this.maritalStatusSpinner, str, list, R.string.hml_personal_info_select_marital_status); this.maritalStatusSpinner.setOnCustomSpinnerWithTitleCompletion(new CustomSpinnerWithTitle.LWm(this, str) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.9 private String a; private HmlBasePersonalInfoFragment c; @Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm public final void bn_() { } { this.c = this; this.a = str; } @Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm public final void bo_() { this.c.b(AbstractC5071bmC.HBt.MARITAL_STATUS); this.c.d.c(((MYp) this.c.maritalStatusSpinner.c.e()).c.getSelectedItemPosition(), this.a, AbstractC5071bmC.HBt.MARITAL_STATUS); } }); } else if (i == 9) { a(this.residentialStatusSpinner, str, list, R.string.hml_personal_info_select_residential_status); this.residentialStatusSpinner.setOnCustomSpinnerWithTitleCompletion(new CustomSpinnerWithTitle.LWm(this, str) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.8 private HmlBasePersonalInfoFragment c; private String e; @Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm public final void bn_() { } { this.c = this; this.e = str; } @Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm public final void bo_() { this.c.b(AbstractC5071bmC.HBt.RESIDENCE_TYPE); this.c.d.c(((MYp) this.c.residentialStatusSpinner.c.e()).c.getSelectedItemPosition(), this.e, AbstractC5071bmC.HBt.RESIDENCE_TYPE); } }); } } protected void b(CommonInputViewGroup commonInputViewGroup, AbstractC5071bmC.HBt hBt) { fJJ fjj = new fJJ(this, hBt, commonInputViewGroup) { // from class: com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment.10 private CommonInputViewGroup a; private AbstractC5071bmC.HBt c; private HmlBasePersonalInfoFragment d; { this.d = this; this.c = hBt; this.a = commonInputViewGroup; } @Override // o.fJJ, android.text.TextWatcher public final void afterTextChanged(Editable editable) { this.d.d.b(this.c, this.a.mEditText.getText().toString(), this.a.a); } }; commonInputViewGroup.mEditText.addTextChangedListener(fjj); commonInputViewGroup.d.add(fjj); } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes5.dex */ public class HBt extends fJJ { private HmlBasePersonalInfoFragment c; private HBt(HmlBasePersonalInfoFragment hmlBasePersonalInfoFragment) { this.c = hmlBasePersonalInfoFragment; } @Override // o.fJJ, android.text.TextWatcher public final void afterTextChanged(Editable editable) { AbstractC5071bmC abstractC5071bmC = this.c.d; String v = C6583cXR.v(editable.toString()); abstractC5071bmC.c(AbstractC5071bmC.HBt.MOBILE_NUMBER, gjJ.b((CharSequence) v) ? false : abstractC5071bmC.q.c.matcher(v).matches(), TextUtils.isEmpty(v)); } /* synthetic */ HBt(HmlBasePersonalInfoFragment hmlBasePersonalInfoFragment, byte b) { this(hmlBasePersonalInfoFragment); } } /* JADX INFO: Access modifiers changed from: protected */ /* loaded from: classes5.dex */ public class LWm extends fJJ { private HmlBasePersonalInfoFragment e; protected LWm(HmlBasePersonalInfoFragment hmlBasePersonalInfoFragment) { this.e = hmlBasePersonalInfoFragment; } @Override // o.fJJ, android.text.TextWatcher public final void afterTextChanged(Editable editable) { AbstractC5071bmC abstractC5071bmC = this.e.d; String obj = editable.toString(); abstractC5071bmC.a(AbstractC5071bmC.HBt.MAILING_ADDRESS, (obj == null || TextUtils.isEmpty(obj)) ? false : true); } } @Override // o.InterfaceC9249dgE public final void d() { CustomDialog b = CustomDialog.b(getContext()); String string = getString(R.string.hml_occupation_back_dialog_title); if (gjJ.a(string)) { b.mTitleTextView.setVisibility(0); b.mTitleTextView.setText(string); } String string2 = getString(R.string.hml_occupation_back_dialog_text); if (gjJ.a(string2)) { b.mTextTextView.setVisibility(0); b.mTextTextView.setText(string2); } b.aoU_(getString(R.string.hml_personal_back_dialog_confirm), new DialogInterface.OnClickListener(this) { // from class: o.fab private HmlBasePersonalInfoFragment e; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { HmlBasePersonalInfoFragment.a(this.e); } { this.e = this; } }).aoO_(getString(R.string.hml_personal_back_dialog_cancel), new DialogInterface.OnClickListener() { // from class: o.fad @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { dialogInterface.dismiss(); } }).show(); } @Override // o.InterfaceC9249dgE public final void e() { if (getActivity() != null) { getActivity().finish(); } } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public void onDestroyView() { CustomPhoneNumberInput customPhoneNumberInput = this.mobileNumberView; HBt hBt = this.i; customPhoneNumberInput.mEditText.removeTextChangedListener(hBt); customPhoneNumberInput.d.remove(hBt); this.mailingView.removeTextChangedListener(this.c); this.i = null; this.c = null; this.d.w_(); super.onDestroyView(); } @Override // com.scb.phone.view.custom.common.CustomLaserIdInput.HBt public final void t() { startActivity(HmlNTBLaserIdAboutActivity.agb_(getContext())); } @Override // o.InterfaceC9249dgE public final void g() { CustomDialog b = CustomDialog.b(getContext()); String string = getString(R.string.hml_personal_information_validation_error_header); if (gjJ.a(string)) { b.mTitleTextView.setVisibility(0); b.mTitleTextView.setText(string); } String string2 = getString(R.string.hml_personal_information_validation_error_message); if (gjJ.a(string2)) { b.mTextTextView.setVisibility(0); b.mTextTextView.setText(string2); } b.aoR_(getString(R.string.ok), new DialogInterface.OnClickListener() { // from class: o.eZZ @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { dialogInterface.dismiss(); } }).show(); } @Override // o.InterfaceC9249dgE public final void d(AbstractC5071bmC.HBt hBt, boolean z) { int i = z ? 8 : 0; int i2 = AnonymousClass1.c[hBt.ordinal()]; if (i2 == 6) { this.educationalLevelError.setVisibility(i); } else if (i2 == 7) { this.maritalStatusError.setVisibility(i); } else if (i2 == 9) { this.residentialStatusError.setVisibility(i); } } public static /* synthetic */ void a(HmlBasePersonalInfoFragment hmlBasePersonalInfoFragment) { AbstractC5071bmC abstractC5071bmC = hmlBasePersonalInfoFragment.d; ZI.IeS ieS = new ZI.IeS() { // from class: o.bmP @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9249dgE) obj).e(); } }; if (abstractC5071bmC.f != 0) { ieS.e(abstractC5071bmC.f); } } public static /* synthetic */ boolean e(HmlBasePersonalInfoFragment hmlBasePersonalInfoFragment, int i) { if (i != 6) { return false; } hmlBasePersonalInfoFragment.root.setFocusable(true); hmlBasePersonalInfoFragment.root.setFocusableInTouchMode(true); hmlBasePersonalInfoFragment.root.requestFocus(); hmlBasePersonalInfoFragment.aN_(); return false; } @OnClick public void onMailingClick() { AbstractC5071bmC abstractC5071bmC = this.d; ZI.IeS ieS = new ZI.IeS() { // from class: o.bmU @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9249dgE) obj).b(); } }; if (abstractC5071bmC.f != 0) { ieS.e(abstractC5071bmC.f); } } }