what-the-bank/sources/com/scb/phone/view/fragment/mailingaddress/BaseMailingAddressFragment....

1464 lines
48 KiB
Java

package com.scb.phone.view.fragment.mailingaddress;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.AddressSearchActivity;
import com.scb.phone.view.custom.common.CustomAddressInput;
import com.scb.phone.view.fragment.mailingaddress.BaseMailingAddressFragment;
import o.C0406Fx;
import o.C14957gcv;
import o.C4128bQt;
import o.InterfaceC13391fZD;
import o.InterfaceC9445djq;
import o.RA;
import o.ZI;
import o.nMh;
/* loaded from: classes5.dex */
public abstract class BaseMailingAddressFragment extends Hilt_BaseMailingAddressFragment implements InterfaceC9445djq {
@BindView
public CustomAddressInput alley;
private boolean c;
@BindView
public Button confirmButton;
private boolean d;
@BindView
public TextView districtLabel;
private RA f;
@BindView
public CustomAddressInput floor;
private boolean g;
private boolean h;
@BindView
public CustomAddressInput houseNo;
private RA i;
private boolean k;
private boolean l;
private boolean m;
@BindView
public CustomAddressInput moo;
private boolean n;
@BindView
public Button nextButton;
private boolean p;
@BindView
public TextView postalCodeLabel;
@InterfaceC13391fZD
public C4128bQt presenter;
@BindView
public TextView provinceLabel;
private C0406Fx q;
private boolean r;
@BindView
public CustomAddressInput road;
private boolean s;
@BindView
public RelativeLayout selectProvince;
@BindView
public TextView subDistrictLabel;
private boolean t;
@BindView
public TextView textAddressTitle;
@BindView
public LinearLayout typeOfAddressLayout;
@BindView
public CustomAddressInput unit;
@BindView
public CustomAddressInput village;
/* renamed from: o, reason: collision with root package name */
private String f8053o = "";
private String j = "";
/* 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.2131559747, viewGroup, false);
ButterKnife.c(this, inflate);
s();
C4128bQt c4128bQt = this.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.e((C4128bQt) this);
return inflate;
}
@Override // androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
super.aa();
Y();
}
@Override // com.scb.phone.view.fragment.BaseFragment
public final void aa() {
super.aa();
Y();
}
@Override // o.InterfaceC9445djq
public final void o(boolean z) {
if (this.presenter == null) {
C14957gcv.a("");
}
String string = getString(C4128bQt.e(z));
C14957gcv.c((Object) string, "");
this.j = string;
u(string);
TextView textView = this.textAddressTitle;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
if (this.presenter == null) {
C14957gcv.a("");
}
textView.setText(getString(C4128bQt.c(z)));
}
/* JADX INFO: Access modifiers changed from: protected */
public final void s() {
CustomAddressInput customAddressInput = this.houseNo;
CustomAddressInput customAddressInput2 = null;
if (customAddressInput == null) {
C14957gcv.a("");
customAddressInput = null;
}
customAddressInput.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fmQ
private BaseMailingAddressFragment b;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV
public final void e(boolean z) {
BaseMailingAddressFragment.a(this.b, z);
}
{
this.b = this;
}
});
CustomAddressInput customAddressInput3 = this.floor;
if (customAddressInput3 == null) {
C14957gcv.a("");
customAddressInput3 = null;
}
customAddressInput3.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fnc
private BaseMailingAddressFragment e;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV
public final void e(boolean z) {
BaseMailingAddressFragment.h(this.e, z);
}
{
this.e = this;
}
});
CustomAddressInput customAddressInput4 = this.village;
if (customAddressInput4 == null) {
C14957gcv.a("");
customAddressInput4 = null;
}
customAddressInput4.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fna
private BaseMailingAddressFragment a;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV
public final void e(boolean z) {
BaseMailingAddressFragment.g(this.a, z);
}
{
this.a = this;
}
});
CustomAddressInput customAddressInput5 = this.unit;
if (customAddressInput5 == null) {
C14957gcv.a("");
customAddressInput5 = null;
}
customAddressInput5.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fnd
private BaseMailingAddressFragment a;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV
public final void e(boolean z) {
BaseMailingAddressFragment.c(this.a, z);
}
{
this.a = this;
}
});
CustomAddressInput customAddressInput6 = this.moo;
if (customAddressInput6 == null) {
C14957gcv.a("");
customAddressInput6 = null;
}
customAddressInput6.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fmU
private BaseMailingAddressFragment d;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV
public final void e(boolean z) {
BaseMailingAddressFragment.n(this.d, z);
}
{
this.d = this;
}
});
CustomAddressInput customAddressInput7 = this.alley;
if (customAddressInput7 == null) {
C14957gcv.a("");
customAddressInput7 = null;
}
customAddressInput7.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fmW
private BaseMailingAddressFragment a;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV
public final void e(boolean z) {
BaseMailingAddressFragment.j(this.a, z);
}
{
this.a = this;
}
});
CustomAddressInput customAddressInput8 = this.road;
if (customAddressInput8 == null) {
C14957gcv.a("");
customAddressInput8 = null;
}
customAddressInput8.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fmV
private BaseMailingAddressFragment b;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV
public final void e(boolean z) {
BaseMailingAddressFragment.o(this.b, z);
}
{
this.b = this;
}
});
CustomAddressInput customAddressInput9 = this.moo;
if (customAddressInput9 == null) {
C14957gcv.a("");
customAddressInput9 = null;
}
customAddressInput9.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fmT
private BaseMailingAddressFragment d;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS
public final void e(boolean z) {
BaseMailingAddressFragment.b(this.d, z);
}
{
this.d = this;
}
});
CustomAddressInput customAddressInput10 = this.alley;
if (customAddressInput10 == null) {
C14957gcv.a("");
customAddressInput10 = null;
}
customAddressInput10.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fmY
private BaseMailingAddressFragment d;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS
public final void e(boolean z) {
BaseMailingAddressFragment.l(this.d, z);
}
{
this.d = this;
}
});
CustomAddressInput customAddressInput11 = this.road;
if (customAddressInput11 == null) {
C14957gcv.a("");
customAddressInput11 = null;
}
customAddressInput11.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fmX
private BaseMailingAddressFragment a;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS
public final void e(boolean z) {
BaseMailingAddressFragment.d(this.a, z);
}
{
this.a = this;
}
});
CustomAddressInput customAddressInput12 = this.floor;
if (customAddressInput12 == null) {
C14957gcv.a("");
customAddressInput12 = null;
}
customAddressInput12.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fmZ
private BaseMailingAddressFragment b;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS
public final void e(boolean z) {
BaseMailingAddressFragment.f(this.b, z);
}
{
this.b = this;
}
});
CustomAddressInput customAddressInput13 = this.unit;
if (customAddressInput13 == null) {
C14957gcv.a("");
customAddressInput13 = null;
}
customAddressInput13.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fnb
private BaseMailingAddressFragment b;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS
public final void e(boolean z) {
BaseMailingAddressFragment.e(this.b, z);
}
{
this.b = this;
}
});
CustomAddressInput customAddressInput14 = this.village;
if (customAddressInput14 != null) {
customAddressInput2 = customAddressInput14;
} else {
C14957gcv.a("");
}
customAddressInput2.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fne
private BaseMailingAddressFragment d;
@Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS
public final void e(boolean z) {
BaseMailingAddressFragment.i(this.d, z);
}
{
this.d = this;
}
});
}
@OnClick
public final void onAddressRadioButtonClicked(RadioButton radioButton) {
C4128bQt c4128bQt;
C14957gcv.e(radioButton, "");
boolean isChecked = radioButton.isChecked();
this.s = isChecked;
int id = radioButton.getId();
if (id != R.id.home_address_radio_button) {
if (id == R.id.work_address_radio_button && isChecked) {
C4128bQt c4128bQt2 = this.presenter;
if (c4128bQt2 == null) {
C14957gcv.a("");
c4128bQt2 = null;
}
c4128bQt2.a("WORK");
}
} else if (isChecked) {
C4128bQt c4128bQt3 = this.presenter;
if (c4128bQt3 == null) {
C14957gcv.a("");
c4128bQt3 = null;
}
c4128bQt3.a("HOME");
}
C4128bQt c4128bQt4 = this.presenter;
if (c4128bQt4 != null) {
c4128bQt = c4128bQt4;
} else {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.a(this.r, this.h, this.n, this.d, this.m);
w();
}
private void w() {
C4128bQt c4128bQt = this.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
boolean z = this.g;
boolean z2 = this.k;
boolean z3 = this.c;
boolean z4 = this.t;
boolean z5 = this.l;
boolean z6 = this.h;
boolean z7 = this.r;
boolean z8 = this.p;
boolean z9 = this.n;
boolean z10 = this.d;
boolean z11 = this.m;
boolean z12 = this.s;
if (!c4128bQt.b) {
z = z & z2 & z3 & z4 & z5 & z12;
}
if ((z6 | z7) & z) {
z = z6 & z7 & z8 & (z9 | z10 | z11);
}
if (z) {
if (c4128bQt.c != null) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bQG
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).i();
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bQE
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).j();
}
};
if (c4128bQt.f != 0) {
ieS2.e(c4128bQt.f);
return;
}
return;
}
if (c4128bQt.c != null) {
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.bQD
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).c();
}
};
if (c4128bQt.f != 0) {
ieS3.e(c4128bQt.f);
return;
}
return;
}
ZI.IeS ieS4 = new ZI.IeS() { // from class: o.bQB
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).a();
}
};
if (c4128bQt.f != 0) {
ieS4.e(c4128bQt.f);
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onActivityResult(int i, int i2, Intent intent) {
if (i == 10002 && i2 == -1 && intent != null) {
C0406Fx c0406Fx = (C0406Fx) intent.getParcelableExtra("SUB_DISTRICT_DISPLAY");
final C4128bQt c4128bQt = this.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.h = c0406Fx;
ZI.IeS ieS = new ZI.IeS(c4128bQt) { // from class: o.bQV
private C4128bQt a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4128bQt.a(this.a, (InterfaceC9445djq) obj);
}
{
this.a = c4128bQt;
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
this.t = true;
this.c = true;
this.k = true;
this.l = true;
w();
}
}
@OnClick
public void onSelectProvinceClick() {
C4128bQt c4128bQt = this.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.bQx
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).h();
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
}
@Override // o.InterfaceC9445djq
public final void a(boolean z) {
this.h = z;
w();
}
@Override // o.InterfaceC9445djq
public final void i(boolean z) {
this.p = z;
w();
}
@Override // o.InterfaceC9445djq
public final void j(boolean z) {
this.r = z;
w();
}
@Override // o.InterfaceC9445djq
public final void f(boolean z) {
this.n = z;
w();
}
@Override // o.InterfaceC9445djq
public final void c(boolean z) {
this.d = z;
w();
}
@Override // o.InterfaceC9445djq
public final void g(boolean z) {
this.m = z;
w();
}
@Override // o.InterfaceC9445djq
public final void h(boolean z) {
this.g = z;
w();
}
@Override // o.InterfaceC9445djq
public final void d(String str, String str2, String str3, String str4, C0406Fx c0406Fx) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C14957gcv.e(str4, "");
C14957gcv.e(c0406Fx, "");
TextView textView = this.subDistrictLabel;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(str);
TextView textView3 = this.districtLabel;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setText(str2);
TextView textView4 = this.provinceLabel;
if (textView4 == null) {
C14957gcv.a("");
textView4 = null;
}
textView4.setText(str3);
TextView textView5 = this.postalCodeLabel;
if (textView5 != null) {
textView2 = textView5;
} else {
C14957gcv.a("");
}
textView2.setText(str4);
this.q = c0406Fx;
}
@Override // o.InterfaceC9445djq
public final void c(String str, String str2, String str3) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
CustomAddressInput customAddressInput = this.houseNo;
CustomAddressInput customAddressInput2 = null;
if (customAddressInput == null) {
C14957gcv.a("");
customAddressInput = null;
}
customAddressInput.setTextValue(str);
this.g = str.length() > 0;
CustomAddressInput customAddressInput3 = this.floor;
if (customAddressInput3 == null) {
C14957gcv.a("");
customAddressInput3 = null;
}
customAddressInput3.setTextValue(str2);
this.h = str2.length() > 0;
this.p = str3.length() > 0;
CustomAddressInput customAddressInput4 = this.village;
if (customAddressInput4 != null) {
customAddressInput2 = customAddressInput4;
} else {
C14957gcv.a("");
}
customAddressInput2.setTextValue(str3);
this.s = true;
}
@Override // o.InterfaceC9445djq
public final void b(String str, String str2, String str3, String str4) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C14957gcv.e(str4, "");
this.r = str.length() > 0;
this.n = str2.length() > 0;
this.m = str3.length() > 0;
this.d = str4.length() > 0;
CustomAddressInput customAddressInput = this.unit;
CustomAddressInput customAddressInput2 = null;
if (customAddressInput == null) {
C14957gcv.a("");
customAddressInput = null;
}
customAddressInput.setTextValue(str);
CustomAddressInput customAddressInput3 = this.moo;
if (customAddressInput3 == null) {
C14957gcv.a("");
customAddressInput3 = null;
}
customAddressInput3.setTextValue(str2);
CustomAddressInput customAddressInput4 = this.road;
if (customAddressInput4 == null) {
C14957gcv.a("");
customAddressInput4 = null;
}
customAddressInput4.setTextValue(str3);
CustomAddressInput customAddressInput5 = this.alley;
if (customAddressInput5 != null) {
customAddressInput2 = customAddressInput5;
} else {
C14957gcv.a("");
}
customAddressInput2.setTextValue(str4);
}
@Override // o.InterfaceC9445djq
public final void a(boolean z, boolean z2) {
CustomAddressInput customAddressInput = null;
if (z2) {
CustomAddressInput customAddressInput2 = this.village;
if (customAddressInput2 == null) {
C14957gcv.a("");
customAddressInput2 = null;
}
customAddressInput2.a(this.p);
CustomAddressInput customAddressInput3 = this.moo;
if (customAddressInput3 == null) {
C14957gcv.a("");
customAddressInput3 = null;
}
customAddressInput3.a(z);
CustomAddressInput customAddressInput4 = this.alley;
if (customAddressInput4 == null) {
C14957gcv.a("");
customAddressInput4 = null;
}
customAddressInput4.a(z);
CustomAddressInput customAddressInput5 = this.road;
if (customAddressInput5 != null) {
customAddressInput = customAddressInput5;
} else {
C14957gcv.a("");
}
customAddressInput.a(z);
return;
}
CustomAddressInput customAddressInput6 = this.unit;
if (customAddressInput6 == null) {
C14957gcv.a("");
customAddressInput6 = null;
}
customAddressInput6.a(this.r);
CustomAddressInput customAddressInput7 = this.village;
if (customAddressInput7 == null) {
C14957gcv.a("");
customAddressInput7 = null;
}
customAddressInput7.a(this.p);
CustomAddressInput customAddressInput8 = this.floor;
if (customAddressInput8 == null) {
C14957gcv.a("");
customAddressInput8 = null;
}
customAddressInput8.a(this.h);
CustomAddressInput customAddressInput9 = this.moo;
if (customAddressInput9 == null) {
C14957gcv.a("");
customAddressInput9 = null;
}
customAddressInput9.a(z);
CustomAddressInput customAddressInput10 = this.alley;
if (customAddressInput10 == null) {
C14957gcv.a("");
customAddressInput10 = null;
}
customAddressInput10.a(z);
CustomAddressInput customAddressInput11 = this.road;
if (customAddressInput11 != null) {
customAddressInput = customAddressInput11;
} else {
C14957gcv.a("");
}
customAddressInput.a(z);
}
@Override // o.InterfaceC9445djq
public final void e(boolean z) {
CustomAddressInput customAddressInput = null;
if (z) {
CustomAddressInput customAddressInput2 = this.village;
if (customAddressInput2 == null) {
C14957gcv.a("");
customAddressInput2 = null;
}
customAddressInput2.errorInline.setVisibility(8);
customAddressInput2.inputTextField.setBackground(nMh.getDrawable(customAddressInput2.getContext(), R.drawable.shape_gray_rounded_rectangle));
CustomAddressInput customAddressInput3 = this.moo;
if (customAddressInput3 == null) {
C14957gcv.a("");
customAddressInput3 = null;
}
customAddressInput3.errorInline.setVisibility(8);
customAddressInput3.inputTextField.setBackground(nMh.getDrawable(customAddressInput3.getContext(), R.drawable.shape_gray_rounded_rectangle));
CustomAddressInput customAddressInput4 = this.alley;
if (customAddressInput4 == null) {
C14957gcv.a("");
customAddressInput4 = null;
}
customAddressInput4.errorInline.setVisibility(8);
customAddressInput4.inputTextField.setBackground(nMh.getDrawable(customAddressInput4.getContext(), R.drawable.shape_gray_rounded_rectangle));
CustomAddressInput customAddressInput5 = this.road;
if (customAddressInput5 != null) {
customAddressInput = customAddressInput5;
} else {
C14957gcv.a("");
}
customAddressInput.errorInline.setVisibility(8);
customAddressInput.inputTextField.setBackground(nMh.getDrawable(customAddressInput.getContext(), R.drawable.shape_gray_rounded_rectangle));
return;
}
CustomAddressInput customAddressInput6 = this.unit;
if (customAddressInput6 == null) {
C14957gcv.a("");
customAddressInput6 = null;
}
customAddressInput6.errorInline.setVisibility(8);
customAddressInput6.inputTextField.setBackground(nMh.getDrawable(customAddressInput6.getContext(), R.drawable.shape_gray_rounded_rectangle));
CustomAddressInput customAddressInput7 = this.floor;
if (customAddressInput7 == null) {
C14957gcv.a("");
customAddressInput7 = null;
}
customAddressInput7.errorInline.setVisibility(8);
customAddressInput7.inputTextField.setBackground(nMh.getDrawable(customAddressInput7.getContext(), R.drawable.shape_gray_rounded_rectangle));
CustomAddressInput customAddressInput8 = this.village;
if (customAddressInput8 == null) {
C14957gcv.a("");
customAddressInput8 = null;
}
customAddressInput8.errorInline.setVisibility(8);
customAddressInput8.inputTextField.setBackground(nMh.getDrawable(customAddressInput8.getContext(), R.drawable.shape_gray_rounded_rectangle));
CustomAddressInput customAddressInput9 = this.moo;
if (customAddressInput9 == null) {
C14957gcv.a("");
customAddressInput9 = null;
}
customAddressInput9.errorInline.setVisibility(8);
customAddressInput9.inputTextField.setBackground(nMh.getDrawable(customAddressInput9.getContext(), R.drawable.shape_gray_rounded_rectangle));
CustomAddressInput customAddressInput10 = this.alley;
if (customAddressInput10 == null) {
C14957gcv.a("");
customAddressInput10 = null;
}
customAddressInput10.errorInline.setVisibility(8);
customAddressInput10.inputTextField.setBackground(nMh.getDrawable(customAddressInput10.getContext(), R.drawable.shape_gray_rounded_rectangle));
CustomAddressInput customAddressInput11 = this.road;
if (customAddressInput11 != null) {
customAddressInput = customAddressInput11;
} else {
C14957gcv.a("");
}
customAddressInput.errorInline.setVisibility(8);
customAddressInput.inputTextField.setBackground(nMh.getDrawable(customAddressInput.getContext(), R.drawable.shape_gray_rounded_rectangle));
}
@Override // o.InterfaceC9445djq
public final void d(boolean z) {
if (!z) {
CustomAddressInput customAddressInput = this.floor;
CustomAddressInput customAddressInput2 = null;
if (customAddressInput == null) {
C14957gcv.a("");
customAddressInput = null;
}
customAddressInput.inputTextField.removeTextChangedListener(customAddressInput);
customAddressInput.inputTextField.setText("");
CustomAddressInput customAddressInput3 = this.unit;
if (customAddressInput3 == null) {
C14957gcv.a("");
customAddressInput3 = null;
}
customAddressInput3.inputTextField.removeTextChangedListener(customAddressInput3);
customAddressInput3.inputTextField.setText("");
CustomAddressInput customAddressInput4 = this.village;
if (customAddressInput4 == null) {
C14957gcv.a("");
customAddressInput4 = null;
}
customAddressInput4.inputTextField.removeTextChangedListener(customAddressInput4);
customAddressInput4.inputTextField.setText("");
CustomAddressInput customAddressInput5 = this.moo;
if (customAddressInput5 == null) {
C14957gcv.a("");
customAddressInput5 = null;
}
customAddressInput5.inputTextField.removeTextChangedListener(customAddressInput5);
customAddressInput5.inputTextField.setText("");
CustomAddressInput customAddressInput6 = this.alley;
if (customAddressInput6 == null) {
C14957gcv.a("");
customAddressInput6 = null;
}
customAddressInput6.inputTextField.removeTextChangedListener(customAddressInput6);
customAddressInput6.inputTextField.setText("");
CustomAddressInput customAddressInput7 = this.road;
if (customAddressInput7 != null) {
customAddressInput2 = customAddressInput7;
} else {
C14957gcv.a("");
}
customAddressInput2.inputTextField.removeTextChangedListener(customAddressInput2);
customAddressInput2.inputTextField.setText("");
}
w();
}
@Override // o.InterfaceC9445djq
public final void l() {
LinearLayout linearLayout = this.typeOfAddressLayout;
if (linearLayout == null) {
C14957gcv.a("");
linearLayout = null;
}
linearLayout.setVisibility(8);
}
@Override // o.InterfaceC9445djq
public final void a() {
Button button = this.nextButton;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setEnabled(false);
}
@Override // o.InterfaceC9445djq
public final void c() {
Button button = this.confirmButton;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setEnabled(false);
}
@Override // o.InterfaceC9445djq
public final void j() {
Button button = this.nextButton;
Button button2 = null;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setEnabled(true);
Button button3 = this.nextButton;
if (button3 == null) {
C14957gcv.a("");
button3 = null;
}
button3.setVisibility(0);
Button button4 = this.confirmButton;
if (button4 != null) {
button2 = button4;
} else {
C14957gcv.a("");
}
button2.setVisibility(8);
}
@Override // o.InterfaceC9445djq
public final void i() {
Button button = this.nextButton;
Button button2 = null;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setVisibility(8);
Button button3 = this.confirmButton;
if (button3 == null) {
C14957gcv.a("");
button3 = null;
}
button3.setEnabled(true);
Button button4 = this.confirmButton;
if (button4 != null) {
button2 = button4;
} else {
C14957gcv.a("");
}
button2.setVisibility(0);
}
@Override // o.InterfaceC9445djq
public final void d() {
RelativeLayout relativeLayout = this.selectProvince;
RelativeLayout relativeLayout2 = null;
if (relativeLayout == null) {
C14957gcv.a("");
relativeLayout = null;
}
relativeLayout.setClickable(false);
RelativeLayout relativeLayout3 = this.selectProvince;
if (relativeLayout3 == null) {
C14957gcv.a("");
relativeLayout3 = null;
}
relativeLayout3.setEnabled(false);
Context context = getContext();
if (context != null) {
RelativeLayout relativeLayout4 = this.selectProvince;
if (relativeLayout4 != null) {
relativeLayout2 = relativeLayout4;
} else {
C14957gcv.a("");
}
relativeLayout2.setBackground(nMh.getDrawable(context, R.drawable.bg_rounded_rectangle_border_enable_state));
}
}
@Override // o.InterfaceC9445djq
public final void b(boolean z) {
CustomAddressInput customAddressInput = null;
if (z) {
CustomAddressInput customAddressInput2 = this.houseNo;
if (customAddressInput2 == null) {
C14957gcv.a("");
customAddressInput2 = null;
}
customAddressInput2.e();
CustomAddressInput customAddressInput3 = this.moo;
if (customAddressInput3 == null) {
C14957gcv.a("");
customAddressInput3 = null;
}
customAddressInput3.e();
CustomAddressInput customAddressInput4 = this.road;
if (customAddressInput4 == null) {
C14957gcv.a("");
customAddressInput4 = null;
}
customAddressInput4.e();
CustomAddressInput customAddressInput5 = this.floor;
if (customAddressInput5 == null) {
C14957gcv.a("");
customAddressInput5 = null;
}
customAddressInput5.e();
CustomAddressInput customAddressInput6 = this.unit;
if (customAddressInput6 == null) {
C14957gcv.a("");
customAddressInput6 = null;
}
customAddressInput6.e();
CustomAddressInput customAddressInput7 = this.village;
if (customAddressInput7 == null) {
C14957gcv.a("");
customAddressInput7 = null;
}
customAddressInput7.e();
CustomAddressInput customAddressInput8 = this.alley;
if (customAddressInput8 != null) {
customAddressInput = customAddressInput8;
} else {
C14957gcv.a("");
}
customAddressInput.e();
return;
}
CustomAddressInput customAddressInput9 = this.houseNo;
if (customAddressInput9 == null) {
C14957gcv.a("");
customAddressInput9 = null;
}
customAddressInput9.a();
CustomAddressInput customAddressInput10 = this.moo;
if (customAddressInput10 == null) {
C14957gcv.a("");
customAddressInput10 = null;
}
customAddressInput10.a();
CustomAddressInput customAddressInput11 = this.road;
if (customAddressInput11 == null) {
C14957gcv.a("");
customAddressInput11 = null;
}
customAddressInput11.a();
CustomAddressInput customAddressInput12 = this.alley;
if (customAddressInput12 == null) {
C14957gcv.a("");
customAddressInput12 = null;
}
customAddressInput12.a();
CustomAddressInput customAddressInput13 = this.floor;
if (customAddressInput13 == null) {
C14957gcv.a("");
customAddressInput13 = null;
}
customAddressInput13.c();
CustomAddressInput customAddressInput14 = this.unit;
if (customAddressInput14 == null) {
C14957gcv.a("");
customAddressInput14 = null;
}
customAddressInput14.c();
CustomAddressInput customAddressInput15 = this.village;
if (customAddressInput15 != null) {
customAddressInput = customAddressInput15;
} else {
C14957gcv.a("");
}
customAddressInput.c();
}
@Override // o.InterfaceC9445djq
public final void b() {
CustomAddressInput customAddressInput = this.houseNo;
CustomAddressInput customAddressInput2 = null;
if (customAddressInput == null) {
C14957gcv.a("");
customAddressInput = null;
}
customAddressInput.c();
CustomAddressInput customAddressInput3 = this.moo;
if (customAddressInput3 == null) {
C14957gcv.a("");
customAddressInput3 = null;
}
customAddressInput3.c();
CustomAddressInput customAddressInput4 = this.road;
if (customAddressInput4 == null) {
C14957gcv.a("");
customAddressInput4 = null;
}
customAddressInput4.c();
CustomAddressInput customAddressInput5 = this.floor;
if (customAddressInput5 == null) {
C14957gcv.a("");
customAddressInput5 = null;
}
customAddressInput5.c();
CustomAddressInput customAddressInput6 = this.unit;
if (customAddressInput6 == null) {
C14957gcv.a("");
customAddressInput6 = null;
}
customAddressInput6.c();
CustomAddressInput customAddressInput7 = this.village;
if (customAddressInput7 == null) {
C14957gcv.a("");
customAddressInput7 = null;
}
customAddressInput7.c();
CustomAddressInput customAddressInput8 = this.alley;
if (customAddressInput8 != null) {
customAddressInput2 = customAddressInput8;
} else {
C14957gcv.a("");
}
customAddressInput2.c();
}
@Override // o.InterfaceC9445djq
public final void e() {
CustomAddressInput customAddressInput = this.unit;
CustomAddressInput customAddressInput2 = null;
if (customAddressInput == null) {
C14957gcv.a("");
customAddressInput = null;
}
Boolean bool = Boolean.TRUE;
customAddressInput.setReadOnly(bool);
CustomAddressInput customAddressInput3 = this.floor;
if (customAddressInput3 != null) {
customAddressInput2 = customAddressInput3;
} else {
C14957gcv.a("");
}
customAddressInput2.setReadOnly(bool);
}
@Override // o.InterfaceC9445djq
public final void h() {
startActivityForResult(AddressSearchActivity.WU_(requireContext(), this.j), 10002);
}
public static /* synthetic */ void b(BaseMailingAddressFragment baseMailingAddressFragment, boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
if (z) {
return;
}
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.a(baseMailingAddressFragment.r, baseMailingAddressFragment.h, baseMailingAddressFragment.n, baseMailingAddressFragment.d, baseMailingAddressFragment.m);
}
public static /* synthetic */ void e(BaseMailingAddressFragment baseMailingAddressFragment, boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
if (z) {
return;
}
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.a(baseMailingAddressFragment.r, baseMailingAddressFragment.h, baseMailingAddressFragment.n, baseMailingAddressFragment.d, baseMailingAddressFragment.m);
}
public static /* synthetic */ void a(BaseMailingAddressFragment baseMailingAddressFragment, final boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bQM
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).h(this.e);
}
{
this.e = z;
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
}
public static /* synthetic */ void c(BaseMailingAddressFragment baseMailingAddressFragment, final boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bQN
private boolean c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).j(this.c);
}
{
this.c = z;
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
}
public static /* synthetic */ void d(BaseMailingAddressFragment baseMailingAddressFragment, boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
if (z) {
return;
}
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.a(baseMailingAddressFragment.r, baseMailingAddressFragment.h, baseMailingAddressFragment.n, baseMailingAddressFragment.d, baseMailingAddressFragment.m);
}
public static /* synthetic */ void i(BaseMailingAddressFragment baseMailingAddressFragment, boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
if (z) {
return;
}
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.a(baseMailingAddressFragment.r, baseMailingAddressFragment.h, baseMailingAddressFragment.n, baseMailingAddressFragment.d, baseMailingAddressFragment.m);
}
public static /* synthetic */ void g(BaseMailingAddressFragment baseMailingAddressFragment, final boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bQC
private boolean c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).i(this.c);
}
{
this.c = z;
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
}
public static /* synthetic */ void j(BaseMailingAddressFragment baseMailingAddressFragment, final boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bQI
private boolean c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).c(this.c);
}
{
this.c = z;
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
}
public static /* synthetic */ void f(BaseMailingAddressFragment baseMailingAddressFragment, boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
if (z) {
return;
}
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.a(baseMailingAddressFragment.r, baseMailingAddressFragment.h, baseMailingAddressFragment.n, baseMailingAddressFragment.d, baseMailingAddressFragment.m);
}
public static /* synthetic */ void h(BaseMailingAddressFragment baseMailingAddressFragment, final boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bQH
private boolean d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).a(this.d);
}
{
this.d = z;
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
}
public static /* synthetic */ void l(BaseMailingAddressFragment baseMailingAddressFragment, boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
if (z) {
return;
}
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
c4128bQt.a(baseMailingAddressFragment.r, baseMailingAddressFragment.h, baseMailingAddressFragment.n, baseMailingAddressFragment.d, baseMailingAddressFragment.m);
}
public static /* synthetic */ void o(BaseMailingAddressFragment baseMailingAddressFragment, final boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bQW
private boolean c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).g(this.c);
}
{
this.c = z;
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
}
public static /* synthetic */ void n(BaseMailingAddressFragment baseMailingAddressFragment, final boolean z) {
C14957gcv.e(baseMailingAddressFragment, "");
C4128bQt c4128bQt = baseMailingAddressFragment.presenter;
if (c4128bQt == null) {
C14957gcv.a("");
c4128bQt = null;
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bQS
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9445djq) obj).f(this.e);
}
{
this.e = z;
}
};
if (c4128bQt.f != 0) {
ieS.e(c4128bQt.f);
}
}
/* JADX INFO: Access modifiers changed from: protected */
public final void r() {
this.s = true;
}
/* JADX INFO: Access modifiers changed from: protected */
public final void c(C0406Fx c0406Fx) {
this.q = c0406Fx;
}
/* JADX INFO: Access modifiers changed from: protected */
public final void c(RA ra) {
this.f = ra;
}
/* JADX INFO: Access modifiers changed from: protected */
public final void a(RA ra) {
this.i = ra;
}
@Override // o.InterfaceC9445djq
public final void d(String str) {
C14957gcv.e(str, "");
this.f8053o = str;
}
/* JADX INFO: Access modifiers changed from: protected */
public final C0406Fx k() {
return this.q;
}
/* JADX INFO: Access modifiers changed from: protected */
public final String m() {
return this.f8053o;
}
/* JADX INFO: Access modifiers changed from: protected */
public final RA o() {
return this.f;
}
/* JADX INFO: Access modifiers changed from: protected */
public final RA n() {
return this.i;
}
static {
new LWm((byte) 0);
}
}