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

1023 lines
39 KiB
Java

package com.scb.phone.view.fragment.hml;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.InputFilter;
import android.text.method.DigitsKeyListener;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import butterknife.BindView;
import com.scb.phone.R;
import com.scb.phone.view.activity.hml.HmlBusinessEmailAboutActivity;
import com.scb.phone.view.activity.hml.HmlBusinessOccupationInfoActivity;
import com.scb.phone.view.custom.common.CommonInputViewGroup;
import com.scb.phone.view.custom.common.CustomAcceptDeclineButtons;
import com.scb.phone.view.custom.common.CustomEditText;
import com.scb.phone.view.fragment.hml.HmlBusinessOwnerETBPersonalInfoFragment;
import o.AbstractC14961gcz;
import o.C14866gag;
import o.C14957gcv;
import o.C15602gz;
import o.C17800zpz;
import o.C5138bnQ;
import o.C5141bnT;
import o.C5142bnU;
import o.C5145bnX;
import o.C5201boa;
import o.InterfaceC13391fZD;
import o.InterfaceC14894gbR;
import o.InterfaceC9256dgL;
import o.NF;
import o.ZI;
import o.fLJ;
import o.gdZ;
import o.pug;
import org.jmrtd.cbeff.ISO781611;
/* loaded from: classes5.dex */
public final class HmlBusinessOwnerETBPersonalInfoFragment extends Hilt_HmlBusinessOwnerETBPersonalInfoFragment implements InterfaceC9256dgL {
@InterfaceC13391fZD
public C5138bnQ<InterfaceC9256dgL> businessPresenter;
@BindView
public View incomeSection;
@BindView
public TextView spouseCitizenError;
@BindView
public TextView spouseCitizenFooter;
@BindView
public CustomAcceptDeclineButtons spouseCitizenToggler;
@BindView
public CommonInputViewGroup spouseFirstNameInput;
@BindView
public TextView spouseHeaderLabel;
@BindView
public CommonInputViewGroup spouseLastNameInput;
@BindView
public CommonInputViewGroup spouseNIDInput;
@BindView
public View spouseSeparator;
@Override // com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment
public final int w() {
return R.layout.2131559690;
}
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
@Override // com.scb.phone.view.fragment.hml.HmlBasePersonalInfoFragment, androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
C5138bnQ<InterfaceC9256dgL> c5138bnQ = this.businessPresenter;
CommonInputViewGroup commonInputViewGroup = null;
if (c5138bnQ == null) {
C14957gcv.a("");
c5138bnQ = null;
}
c5138bnQ.e((C5138bnQ<InterfaceC9256dgL>) this);
C5138bnQ<InterfaceC9256dgL> c5138bnQ2 = this.businessPresenter;
if (c5138bnQ2 == null) {
C14957gcv.a("");
c5138bnQ2 = null;
}
e(c5138bnQ2);
this.tvETBExpiryDateTitle.setVisibility(0);
this.baseExpiredDate.setVisibility(0);
this.laserIdInput.setLaserIdButtonVisibility(false);
c("p10x1_business_verification_personal_info", new pug("user_type", "etb"));
C5138bnQ<InterfaceC9256dgL> c5138bnQ3 = this.businessPresenter;
if (c5138bnQ3 == null) {
C14957gcv.a("");
c5138bnQ3 = null;
}
c5138bnQ3.b();
CustomAcceptDeclineButtons customAcceptDeclineButtons = this.spouseCitizenToggler;
if (customAcceptDeclineButtons == null) {
C14957gcv.a("");
customAcceptDeclineButtons = null;
}
TextView textView = customAcceptDeclineButtons.tvLabel;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setVisibility(8);
CommonInputViewGroup commonInputViewGroup2 = this.spouseFirstNameInput;
if (commonInputViewGroup2 == null) {
C14957gcv.a("");
commonInputViewGroup2 = null;
}
commonInputViewGroup2.mEditText.setInputType(524432);
CommonInputViewGroup commonInputViewGroup3 = this.spouseFirstNameInput;
if (commonInputViewGroup3 == null) {
C14957gcv.a("");
commonInputViewGroup3 = null;
}
commonInputViewGroup3.mEditText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(ISO781611.BIOMETRIC_SUBTYPE_TAG)});
CommonInputViewGroup commonInputViewGroup4 = this.spouseLastNameInput;
if (commonInputViewGroup4 == null) {
C14957gcv.a("");
commonInputViewGroup4 = null;
}
commonInputViewGroup4.mEditText.setInputType(524432);
CommonInputViewGroup commonInputViewGroup5 = this.spouseLastNameInput;
if (commonInputViewGroup5 == null) {
C14957gcv.a("");
commonInputViewGroup5 = null;
}
commonInputViewGroup5.mEditText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(30)});
CommonInputViewGroup commonInputViewGroup6 = this.spouseNIDInput;
if (commonInputViewGroup6 == null) {
C14957gcv.a("");
commonInputViewGroup6 = null;
}
commonInputViewGroup6.setErrorText(getString(R.string.auto_bo_spouse_id_card_error_invalid));
CommonInputViewGroup commonInputViewGroup7 = this.spouseNIDInput;
if (commonInputViewGroup7 == null) {
C14957gcv.a("");
commonInputViewGroup7 = null;
}
commonInputViewGroup7.mEditText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(17)});
CommonInputViewGroup commonInputViewGroup8 = this.spouseNIDInput;
if (commonInputViewGroup8 == null) {
C14957gcv.a("");
commonInputViewGroup8 = null;
}
commonInputViewGroup8.mEditText.setInputType(2);
CommonInputViewGroup commonInputViewGroup9 = this.spouseNIDInput;
if (commonInputViewGroup9 == null) {
C14957gcv.a("");
commonInputViewGroup9 = null;
}
commonInputViewGroup9.mEditText.setKeyListener(DigitsKeyListener.getInstance("1234567890-"));
CommonInputViewGroup commonInputViewGroup10 = this.spouseNIDInput;
if (commonInputViewGroup10 == null) {
C14957gcv.a("");
commonInputViewGroup10 = null;
}
commonInputViewGroup10.setOnPasteListener(new CustomEditText.IeS(this) { // from class: o.faq
private HmlBusinessOwnerETBPersonalInfoFragment b;
@Override // com.scb.phone.view.custom.common.CustomEditText.IeS
public final boolean e(CustomEditText customEditText, String str) {
return HmlBusinessOwnerETBPersonalInfoFragment.a(this.b, str);
}
{
this.b = this;
}
});
CommonInputViewGroup commonInputViewGroup11 = this.spouseNIDInput;
if (commonInputViewGroup11 == null) {
C14957gcv.a("");
commonInputViewGroup11 = null;
}
CommonInputViewGroup commonInputViewGroup12 = this.spouseNIDInput;
if (commonInputViewGroup12 == null) {
C14957gcv.a("");
commonInputViewGroup12 = null;
}
fLJ flj = new fLJ(commonInputViewGroup12.mEditText, "X-XXXX-XXXXX-XX-X", new fLJ.Sts(this) { // from class: o.fat
private HmlBusinessOwnerETBPersonalInfoFragment d;
@Override // o.fLJ.Sts
public final String c(String str) {
return HmlBusinessOwnerETBPersonalInfoFragment.d(this.d, str);
}
{
this.d = this;
}
});
commonInputViewGroup11.mEditText.addTextChangedListener(flj);
commonInputViewGroup11.d.add(flj);
CommonInputViewGroup commonInputViewGroup13 = this.spouseNIDInput;
if (commonInputViewGroup13 == null) {
C14957gcv.a("");
commonInputViewGroup13 = null;
}
commonInputViewGroup13.setFocusListener(new View.OnFocusChangeListener(this) { // from class: o.faA
private HmlBusinessOwnerETBPersonalInfoFragment a;
@Override // android.view.View.OnFocusChangeListener
public final void onFocusChange(View view, boolean z) {
HmlBusinessOwnerETBPersonalInfoFragment.d(this.a, z);
}
{
this.a = this;
}
});
CommonInputViewGroup commonInputViewGroup14 = this.spouseNIDInput;
if (commonInputViewGroup14 == null) {
C14957gcv.a("");
commonInputViewGroup14 = null;
}
commonInputViewGroup14.setOnBackListener(new CustomEditText.LWm(this) { // from class: o.faw
private HmlBusinessOwnerETBPersonalInfoFragment e;
@Override // com.scb.phone.view.custom.common.CustomEditText.LWm
public final void a() {
HmlBusinessOwnerETBPersonalInfoFragment.c(this.e);
}
{
this.e = this;
}
});
CommonInputViewGroup commonInputViewGroup15 = this.spouseNIDInput;
if (commonInputViewGroup15 != null) {
commonInputViewGroup = commonInputViewGroup15;
} else {
C14957gcv.a("");
}
commonInputViewGroup.setOnEditorActionListener(new TextView.OnEditorActionListener(this) { // from class: o.fav
private HmlBusinessOwnerETBPersonalInfoFragment b;
@Override // android.widget.TextView.OnEditorActionListener
public final boolean onEditorAction(TextView textView2, int i, KeyEvent keyEvent) {
return HmlBusinessOwnerETBPersonalInfoFragment.e(this.b, i);
}
{
this.b = this;
}
});
c("p10x1_business_verif_personal_info", new pug("user_type", "etb"));
return onCreateView;
}
@Override // o.InterfaceC9256dgL
public final void e(boolean z) {
TextView textView = this.spouseHeaderLabel;
View view = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(z ? 0 : 8);
CustomAcceptDeclineButtons customAcceptDeclineButtons = this.spouseCitizenToggler;
if (customAcceptDeclineButtons == null) {
C14957gcv.a("");
customAcceptDeclineButtons = null;
}
CustomAcceptDeclineButtons customAcceptDeclineButtons2 = customAcceptDeclineButtons;
C14957gcv.e(customAcceptDeclineButtons2, "");
customAcceptDeclineButtons2.setVisibility(z ? 0 : 8);
TextView textView3 = this.spouseCitizenError;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
TextView textView4 = textView3;
C14957gcv.e(textView4, "");
textView4.setVisibility(8);
TextView textView5 = this.spouseCitizenFooter;
if (textView5 == null) {
C14957gcv.a("");
textView5 = null;
}
TextView textView6 = textView5;
C14957gcv.e(textView6, "");
textView6.setVisibility(z ? 0 : 8);
CommonInputViewGroup commonInputViewGroup = this.spouseFirstNameInput;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
CommonInputViewGroup commonInputViewGroup2 = commonInputViewGroup;
C14957gcv.e(commonInputViewGroup2, "");
commonInputViewGroup2.setVisibility(z ? 0 : 8);
CommonInputViewGroup commonInputViewGroup3 = this.spouseLastNameInput;
if (commonInputViewGroup3 == null) {
C14957gcv.a("");
commonInputViewGroup3 = null;
}
CommonInputViewGroup commonInputViewGroup4 = commonInputViewGroup3;
C14957gcv.e(commonInputViewGroup4, "");
commonInputViewGroup4.setVisibility(z ? 0 : 8);
CommonInputViewGroup commonInputViewGroup5 = this.spouseNIDInput;
if (commonInputViewGroup5 == null) {
C14957gcv.a("");
commonInputViewGroup5 = null;
}
CommonInputViewGroup commonInputViewGroup6 = commonInputViewGroup5;
C14957gcv.e(commonInputViewGroup6, "");
commonInputViewGroup6.setVisibility(z ? 0 : 8);
View view2 = this.spouseSeparator;
if (view2 != null) {
view = view2;
} else {
C14957gcv.a("");
}
C14957gcv.e(view, "");
view.setVisibility(z ? 0 : 8);
}
@Override // o.InterfaceC9256dgL
public final void f() {
CustomAcceptDeclineButtons customAcceptDeclineButtons;
CustomAcceptDeclineButtons customAcceptDeclineButtons2 = this.spouseCitizenToggler;
CommonInputViewGroup commonInputViewGroup = null;
if (customAcceptDeclineButtons2 != null) {
customAcceptDeclineButtons = customAcceptDeclineButtons2;
} else {
C14957gcv.a("");
customAcceptDeclineButtons = null;
}
CustomAcceptDeclineButtons.setText$default(customAcceptDeclineButtons, getString(R.string.hml_business_owner_personal_info_spouse_thai_button_toggle), getString(R.string.hml_business_owner_personal_info_spouse_non_thai_button_toggle), null, 4, null);
CustomAcceptDeclineButtons customAcceptDeclineButtons3 = this.spouseCitizenToggler;
if (customAcceptDeclineButtons3 == null) {
C14957gcv.a("");
customAcceptDeclineButtons3 = null;
}
customAcceptDeclineButtons3.setOnButtonClickListener(new RVV(this));
CommonInputViewGroup commonInputViewGroup2 = this.spouseFirstNameInput;
if (commonInputViewGroup2 == null) {
C14957gcv.a("");
commonInputViewGroup2 = null;
}
commonInputViewGroup2.setFocusListener(new View.OnFocusChangeListener(this) { // from class: o.faz
private HmlBusinessOwnerETBPersonalInfoFragment b;
@Override // android.view.View.OnFocusChangeListener
public final void onFocusChange(View view, boolean z) {
HmlBusinessOwnerETBPersonalInfoFragment.e(this.b, z);
}
{
this.b = this;
}
});
CommonInputViewGroup commonInputViewGroup3 = this.spouseFirstNameInput;
if (commonInputViewGroup3 == null) {
C14957gcv.a("");
commonInputViewGroup3 = null;
}
commonInputViewGroup3.setOnEditorActionListener(new TextView.OnEditorActionListener(this) { // from class: o.fax
private HmlBusinessOwnerETBPersonalInfoFragment d;
@Override // android.widget.TextView.OnEditorActionListener
public final boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
return HmlBusinessOwnerETBPersonalInfoFragment.a(this.d, i);
}
{
this.d = this;
}
});
CommonInputViewGroup commonInputViewGroup4 = this.spouseFirstNameInput;
if (commonInputViewGroup4 == null) {
C14957gcv.a("");
commonInputViewGroup4 = null;
}
commonInputViewGroup4.setOnBackListener(new CustomEditText.LWm(this) { // from class: o.faE
private HmlBusinessOwnerETBPersonalInfoFragment c;
@Override // com.scb.phone.view.custom.common.CustomEditText.LWm
public final void a() {
HmlBusinessOwnerETBPersonalInfoFragment.a(this.c);
}
{
this.c = this;
}
});
CommonInputViewGroup commonInputViewGroup5 = this.spouseLastNameInput;
if (commonInputViewGroup5 == null) {
C14957gcv.a("");
commonInputViewGroup5 = null;
}
commonInputViewGroup5.setFocusListener(new View.OnFocusChangeListener(this) { // from class: o.faF
private HmlBusinessOwnerETBPersonalInfoFragment b;
@Override // android.view.View.OnFocusChangeListener
public final void onFocusChange(View view, boolean z) {
HmlBusinessOwnerETBPersonalInfoFragment.c(this.b, z);
}
{
this.b = this;
}
});
CommonInputViewGroup commonInputViewGroup6 = this.spouseLastNameInput;
if (commonInputViewGroup6 == null) {
C14957gcv.a("");
commonInputViewGroup6 = null;
}
commonInputViewGroup6.setOnEditorActionListener(new TextView.OnEditorActionListener(this) { // from class: o.far
private HmlBusinessOwnerETBPersonalInfoFragment d;
@Override // android.widget.TextView.OnEditorActionListener
public final boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
return HmlBusinessOwnerETBPersonalInfoFragment.b(this.d, i);
}
{
this.d = this;
}
});
CommonInputViewGroup commonInputViewGroup7 = this.spouseLastNameInput;
if (commonInputViewGroup7 != null) {
commonInputViewGroup = commonInputViewGroup7;
} else {
C14957gcv.a("");
}
commonInputViewGroup.setOnBackListener(new CustomEditText.LWm(this) { // from class: o.fas
private HmlBusinessOwnerETBPersonalInfoFragment d;
@Override // com.scb.phone.view.custom.common.CustomEditText.LWm
public final void a() {
HmlBusinessOwnerETBPersonalInfoFragment.d(this.d);
}
{
this.d = this;
}
});
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Boolean, C14866gag> {
private HmlBusinessOwnerETBPersonalInfoFragment b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Boolean bool) {
final boolean booleanValue = bool.booleanValue();
C5138bnQ<InterfaceC9256dgL> c5138bnQ = this.b.businessPresenter;
if (c5138bnQ == null) {
C14957gcv.a("");
c5138bnQ = null;
}
c5138bnQ.r.d = Boolean.valueOf(booleanValue);
ZI.IeS ieS = new ZI.IeS(booleanValue) { // from class: o.bnN
private boolean c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9256dgL) obj).d(this.c);
}
{
this.c = booleanValue;
}
};
if (c5138bnQ.f != 0) {
ieS.e(c5138bnQ.f);
}
C5142bnU c5142bnU = new C5142bnU(c5138bnQ);
if (c5138bnQ.f != 0) {
c5142bnU.e(c5138bnQ.f);
}
if (booleanValue) {
if (c5138bnQ.r.c != null) {
C5141bnT c5141bnT = new C5141bnT(c5138bnQ);
if (c5138bnQ.f != 0) {
c5141bnT.e(c5138bnQ.f);
}
}
if (c5138bnQ.r.a != null) {
C5145bnX c5145bnX = new C5145bnX(c5138bnQ);
if (c5138bnQ.f != 0) {
c5145bnX.e(c5138bnQ.f);
}
}
if (c5138bnQ.r.e != null) {
C5201boa c5201boa = new C5201boa(c5138bnQ);
if (c5138bnQ.f != 0) {
c5201boa.e(c5138bnQ.f);
}
}
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment) {
super(1);
this.b = hmlBusinessOwnerETBPersonalInfoFragment;
}
}
@Override // o.InterfaceC9256dgL
public final void d(boolean z) {
CommonInputViewGroup commonInputViewGroup = null;
if (!z) {
this.root.setFocusable(true);
this.root.setFocusableInTouchMode(true);
this.root.requestFocus();
CommonInputViewGroup commonInputViewGroup2 = this.spouseFirstNameInput;
if (commonInputViewGroup2 == null) {
C14957gcv.a("");
commonInputViewGroup2 = null;
}
commonInputViewGroup2.e();
CommonInputViewGroup commonInputViewGroup3 = this.spouseLastNameInput;
if (commonInputViewGroup3 == null) {
C14957gcv.a("");
commonInputViewGroup3 = null;
}
commonInputViewGroup3.e();
CommonInputViewGroup commonInputViewGroup4 = this.spouseNIDInput;
if (commonInputViewGroup4 == null) {
C14957gcv.a("");
commonInputViewGroup4 = null;
}
commonInputViewGroup4.e();
}
CommonInputViewGroup commonInputViewGroup5 = this.spouseFirstNameInput;
if (commonInputViewGroup5 == null) {
C14957gcv.a("");
commonInputViewGroup5 = null;
}
commonInputViewGroup5.setEnabled(z);
CommonInputViewGroup commonInputViewGroup6 = this.spouseFirstNameInput;
if (commonInputViewGroup6 == null) {
C14957gcv.a("");
commonInputViewGroup6 = null;
}
commonInputViewGroup6.setForegroundFontEnabled(z);
CommonInputViewGroup commonInputViewGroup7 = this.spouseLastNameInput;
if (commonInputViewGroup7 == null) {
C14957gcv.a("");
commonInputViewGroup7 = null;
}
commonInputViewGroup7.setEnabled(z);
CommonInputViewGroup commonInputViewGroup8 = this.spouseLastNameInput;
if (commonInputViewGroup8 == null) {
C14957gcv.a("");
commonInputViewGroup8 = null;
}
commonInputViewGroup8.setForegroundFontEnabled(z);
CommonInputViewGroup commonInputViewGroup9 = this.spouseNIDInput;
if (commonInputViewGroup9 == null) {
C14957gcv.a("");
commonInputViewGroup9 = null;
}
commonInputViewGroup9.setEnabled(z);
CommonInputViewGroup commonInputViewGroup10 = this.spouseNIDInput;
if (commonInputViewGroup10 != null) {
commonInputViewGroup = commonInputViewGroup10;
} else {
C14957gcv.a("");
}
commonInputViewGroup.setForegroundFontEnabled(z);
}
@Override // o.InterfaceC9256dgL
public final void c(boolean z) {
TextView textView = this.spouseCitizenFooter;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
TextView textView3 = textView;
boolean z2 = !z;
C14957gcv.e(textView3, "");
textView3.setVisibility(z2 ? 0 : 8);
TextView textView4 = this.spouseCitizenError;
if (textView4 != null) {
textView2 = textView4;
} else {
C14957gcv.a("");
}
TextView textView5 = textView2;
C14957gcv.e(textView5, "");
textView5.setVisibility(z ? 0 : 8);
}
@Override // o.InterfaceC9256dgL
public final void n() {
View view = this.incomeSection;
if (view == null) {
C14957gcv.a("");
view = null;
}
C14957gcv.e(view, "");
view.setVisibility(8);
}
@Override // o.InterfaceC9256dgL
public final void c(String str) {
C14957gcv.e(str, "");
CommonInputViewGroup commonInputViewGroup = this.spouseNIDInput;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
commonInputViewGroup.setText(str);
}
@Override // o.InterfaceC9256dgL
public final void i() {
CommonInputViewGroup commonInputViewGroup = this.spouseFirstNameInput;
CommonInputViewGroup commonInputViewGroup2 = null;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
commonInputViewGroup.setErrorText(getString(R.string.hml_business_owner_personal_info_spouse_first_name_blank_error));
CommonInputViewGroup commonInputViewGroup3 = this.spouseFirstNameInput;
if (commonInputViewGroup3 != null) {
commonInputViewGroup2 = commonInputViewGroup3;
} else {
C14957gcv.a("");
}
commonInputViewGroup2.c();
}
@Override // o.InterfaceC9256dgL
public final void k() {
CommonInputViewGroup commonInputViewGroup = this.spouseFirstNameInput;
CommonInputViewGroup commonInputViewGroup2 = null;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
commonInputViewGroup.setErrorText(getString(R.string.hml_business_owner_personal_info_spouse_first_name_not_valid_error));
CommonInputViewGroup commonInputViewGroup3 = this.spouseFirstNameInput;
if (commonInputViewGroup3 != null) {
commonInputViewGroup2 = commonInputViewGroup3;
} else {
C14957gcv.a("");
}
commonInputViewGroup2.c();
}
@Override // o.InterfaceC9256dgL
public final void o() {
CommonInputViewGroup commonInputViewGroup = this.spouseLastNameInput;
CommonInputViewGroup commonInputViewGroup2 = null;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
commonInputViewGroup.setErrorText(getString(R.string.hml_business_owner_personal_info_spouse_last_name_blank_error));
CommonInputViewGroup commonInputViewGroup3 = this.spouseLastNameInput;
if (commonInputViewGroup3 != null) {
commonInputViewGroup2 = commonInputViewGroup3;
} else {
C14957gcv.a("");
}
commonInputViewGroup2.c();
}
@Override // o.InterfaceC9256dgL
public final void s() {
CommonInputViewGroup commonInputViewGroup = this.spouseLastNameInput;
CommonInputViewGroup commonInputViewGroup2 = null;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
commonInputViewGroup.setErrorText(getString(R.string.hml_business_owner_personal_info_spouse_last_name_not_valid_error));
CommonInputViewGroup commonInputViewGroup3 = this.spouseLastNameInput;
if (commonInputViewGroup3 != null) {
commonInputViewGroup2 = commonInputViewGroup3;
} else {
C14957gcv.a("");
}
commonInputViewGroup2.c();
}
@Override // o.InterfaceC9256dgL
public final void l() {
CommonInputViewGroup commonInputViewGroup = this.spouseFirstNameInput;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
commonInputViewGroup.e();
}
@Override // o.InterfaceC9256dgL
public final void m() {
CommonInputViewGroup commonInputViewGroup = this.spouseLastNameInput;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
commonInputViewGroup.e();
}
@Override // o.InterfaceC9256dgL
public final void a(boolean z) {
CommonInputViewGroup commonInputViewGroup = this.spouseNIDInput;
if (commonInputViewGroup == null) {
C14957gcv.a("");
commonInputViewGroup = null;
}
if (z) {
commonInputViewGroup.c();
} else {
commonInputViewGroup.e();
}
}
@Override // o.InterfaceC9249dgE
public final void a() {
Context context = getContext();
if (context != null) {
HmlBusinessOccupationInfoActivity.IeS ieS = HmlBusinessOccupationInfoActivity.b;
C14957gcv.e(context, "");
startActivity(new Intent(context, (Class<?>) HmlBusinessOccupationInfoActivity.class));
}
}
@Override // com.scb.phone.view.fragment.hml.HmlETBPersonalInfoFragment
protected final void C() {
Intent intent;
Context context = getContext();
if (context != null) {
HmlBusinessEmailAboutActivity.HBt hBt = HmlBusinessEmailAboutActivity.f7256o;
C14957gcv.e(context, "");
intent = new Intent(context, (Class<?>) HmlBusinessEmailAboutActivity.class);
} else {
intent = null;
}
startActivity(intent);
}
public static /* synthetic */ void d(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment, boolean z) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
C5138bnQ<InterfaceC9256dgL> c5138bnQ = hmlBusinessOwnerETBPersonalInfoFragment.businessPresenter;
CommonInputViewGroup commonInputViewGroup = null;
if (c5138bnQ == null) {
C14957gcv.a("");
c5138bnQ = null;
}
CommonInputViewGroup commonInputViewGroup2 = hmlBusinessOwnerETBPersonalInfoFragment.spouseNIDInput;
if (commonInputViewGroup2 != null) {
commonInputViewGroup = commonInputViewGroup2;
} else {
C14957gcv.a("");
}
String obj = commonInputViewGroup.mEditText.getText().toString();
C14957gcv.c((Object) obj, "");
C14957gcv.e(obj, "");
c5138bnQ.r.c = gdZ.a(obj, "-", "");
if (z) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bnR
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9256dgL) obj2).a(false);
}
};
if (c5138bnQ.f != 0) {
ieS.e(c5138bnQ.f);
return;
}
return;
}
C5141bnT c5141bnT = new C5141bnT(c5138bnQ);
if (c5138bnQ.f != 0) {
c5141bnT.e(c5138bnQ.f);
}
}
public static /* synthetic */ void d(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusable(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusableInTouchMode(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.requestFocus();
}
public static /* synthetic */ String d(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment, String str) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
C5138bnQ<InterfaceC9256dgL> c5138bnQ = hmlBusinessOwnerETBPersonalInfoFragment.businessPresenter;
if (c5138bnQ == null) {
C14957gcv.a("");
c5138bnQ = null;
}
C14957gcv.c((Object) str, "");
C14957gcv.e(str, "");
C17800zpz c17800zpz = c5138bnQ.s;
String b = C15602gz.b(str, "[^0-9]", "X-XXXX-XXXXX-XX-X");
C14957gcv.c((Object) b, "");
return b;
}
public static /* synthetic */ boolean a(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment, int i) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
if (i != 6) {
return false;
}
hmlBusinessOwnerETBPersonalInfoFragment.aN_();
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusable(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusableInTouchMode(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.requestFocus();
return true;
}
public static /* synthetic */ void e(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment, boolean z) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
C5138bnQ<InterfaceC9256dgL> c5138bnQ = hmlBusinessOwnerETBPersonalInfoFragment.businessPresenter;
CommonInputViewGroup commonInputViewGroup = null;
if (c5138bnQ == null) {
C14957gcv.a("");
c5138bnQ = null;
}
CommonInputViewGroup commonInputViewGroup2 = hmlBusinessOwnerETBPersonalInfoFragment.spouseFirstNameInput;
if (commonInputViewGroup2 != null) {
commonInputViewGroup = commonInputViewGroup2;
} else {
C14957gcv.a("");
}
String obj = commonInputViewGroup.mEditText.getText().toString();
C14957gcv.c((Object) obj, "");
C14957gcv.e(obj, "");
c5138bnQ.r.a = obj;
if (z) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bnY
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9256dgL) obj2).l();
}
};
if (c5138bnQ.f != 0) {
ieS.e(c5138bnQ.f);
return;
}
return;
}
C5145bnX c5145bnX = new C5145bnX(c5138bnQ);
if (c5138bnQ.f != 0) {
c5145bnX.e(c5138bnQ.f);
}
}
public static /* synthetic */ boolean e(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment, int i) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
if (i != 6) {
return false;
}
hmlBusinessOwnerETBPersonalInfoFragment.aN_();
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusable(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusableInTouchMode(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.requestFocus();
return true;
}
public static /* synthetic */ void a(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusable(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusableInTouchMode(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.requestFocus();
}
public static /* synthetic */ void c(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment, boolean z) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
C5138bnQ<InterfaceC9256dgL> c5138bnQ = hmlBusinessOwnerETBPersonalInfoFragment.businessPresenter;
CommonInputViewGroup commonInputViewGroup = null;
if (c5138bnQ == null) {
C14957gcv.a("");
c5138bnQ = null;
}
CommonInputViewGroup commonInputViewGroup2 = hmlBusinessOwnerETBPersonalInfoFragment.spouseLastNameInput;
if (commonInputViewGroup2 != null) {
commonInputViewGroup = commonInputViewGroup2;
} else {
C14957gcv.a("");
}
String obj = commonInputViewGroup.mEditText.getText().toString();
C14957gcv.c((Object) obj, "");
C14957gcv.e(obj, "");
c5138bnQ.r.e = obj;
if (z) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bob
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9256dgL) obj2).m();
}
};
if (c5138bnQ.f != 0) {
ieS.e(c5138bnQ.f);
return;
}
return;
}
C5201boa c5201boa = new C5201boa(c5138bnQ);
if (c5138bnQ.f != 0) {
c5201boa.e(c5138bnQ.f);
}
}
public static /* synthetic */ void c(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusable(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusableInTouchMode(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.requestFocus();
}
public static /* synthetic */ boolean a(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment, final String str) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
C5138bnQ<InterfaceC9256dgL> c5138bnQ = hmlBusinessOwnerETBPersonalInfoFragment.businessPresenter;
if (c5138bnQ == null) {
C14957gcv.a("");
c5138bnQ = null;
}
C14957gcv.c((Object) str, "");
C14957gcv.e(str, "");
final int length = str.length() < 17 ? str.length() : 17;
ZI.IeS ieS = new ZI.IeS(str, length) { // from class: o.bnS
private int b;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5138bnQ.b(this.d, this.b, (InterfaceC9256dgL) obj);
}
{
this.d = str;
this.b = length;
}
};
if (c5138bnQ.f != 0) {
ieS.e(c5138bnQ.f);
}
C5141bnT c5141bnT = new C5141bnT(c5138bnQ);
if (c5138bnQ.f == 0) {
return true;
}
c5141bnT.e(c5138bnQ.f);
return true;
}
@Override // o.InterfaceC9256dgL
public final void b(NF.IeS ieS) {
C14957gcv.e(ieS, "");
Boolean bool = ieS.b;
CommonInputViewGroup commonInputViewGroup = null;
if (bool != null) {
boolean booleanValue = bool.booleanValue();
CustomAcceptDeclineButtons customAcceptDeclineButtons = this.spouseCitizenToggler;
if (customAcceptDeclineButtons == null) {
C14957gcv.a("");
customAcceptDeclineButtons = null;
}
customAcceptDeclineButtons.a(booleanValue);
}
CommonInputViewGroup commonInputViewGroup2 = this.spouseFirstNameInput;
if (commonInputViewGroup2 == null) {
C14957gcv.a("");
commonInputViewGroup2 = null;
}
commonInputViewGroup2.setText(ieS.a);
CommonInputViewGroup commonInputViewGroup3 = this.spouseLastNameInput;
if (commonInputViewGroup3 == null) {
C14957gcv.a("");
commonInputViewGroup3 = null;
}
commonInputViewGroup3.setText(ieS.e);
CommonInputViewGroup commonInputViewGroup4 = this.spouseNIDInput;
if (commonInputViewGroup4 != null) {
commonInputViewGroup = commonInputViewGroup4;
} else {
C14957gcv.a("");
}
commonInputViewGroup.setText(ieS.c);
}
public static /* synthetic */ boolean b(HmlBusinessOwnerETBPersonalInfoFragment hmlBusinessOwnerETBPersonalInfoFragment, int i) {
C14957gcv.e(hmlBusinessOwnerETBPersonalInfoFragment, "");
if (i != 6) {
return false;
}
hmlBusinessOwnerETBPersonalInfoFragment.aN_();
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusable(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.setFocusableInTouchMode(true);
hmlBusinessOwnerETBPersonalInfoFragment.root.requestFocus();
return true;
}
static {
new Sts((byte) 0);
}
}