what-the-bank/sources/com/scb/phone/view/fragment/remittance/RemittanceAmountFormFragmen...

1044 lines
48 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.remittance;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.Editable;
import android.text.InputFilter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.scb.phone.R;
import com.scb.phone.view.custom.common.AmountEditText;
import com.scb.phone.view.custom.common.CustomEditText;
import com.scb.phone.view.custom.common.ThaiTextView;
import com.scb.phone.view.custom.common.TintNoteEditText;
import com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle;
import com.scb.phone.view.fragment.remittance.RemittanceAmountFormFragment;
import java.util.List;
import o.AbstractC14961gcz;
import o.C1108Vu;
import o.C12891fKc;
import o.C13396fZU;
import o.C14957gcv;
import o.C5847cBE;
import o.C6583cXR;
import o.InterfaceC12882fJz;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14686fxr;
import o.InterfaceC14890gbN;
import o.InterfaceC16541pFg;
import o.InterfaceC9612dmy;
import o.MYp;
import o.TQ;
import o.VC;
import o.VD;
import o.ZI;
import o.cBH;
import o.fJJ;
import o.fLN;
import o.fZZ;
import o.hNH;
import o.qeC;
/* loaded from: classes5.dex */
public final class RemittanceAmountFormFragment extends Hilt_RemittanceAmountFormFragment implements InterfaceC9612dmy, InterfaceC14686fxr {
public static final LWm d = new LWm(0);
final InterfaceC13393fZL c;
private final saX f;
private final Sts g;
private final InputFilter[] h;
private final InputFilter[] i;
private final IeS j;
private final tOB l;
private InterfaceC12882fJz m;
@InterfaceC13391fZD
public cBH presenter;
public static final /* synthetic */ hNH c(RemittanceAmountFormFragment remittanceAmountFormFragment) {
return (hNH) remittanceAmountFormFragment.c.e();
}
public RemittanceAmountFormFragment() {
HBt hBt = new HBt(this);
C14957gcv.e(hBt, "");
this.c = new fZZ(hBt);
this.j = new IeS(this);
this.f = new saX(this);
this.l = new tOB(this);
this.g = new Sts(this);
this.h = new InputFilter[]{new fLN(10, 2)};
this.i = new InputFilter[]{new fLN(10, 0)};
}
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public static RemittanceAmountFormFragment d(VD vd, VC vc, boolean z, TQ tq) {
C14957gcv.e(vd, "");
C14957gcv.e(vc, "");
RemittanceAmountFormFragment remittanceAmountFormFragment = new RemittanceAmountFormFragment();
Bundle bundle = new Bundle();
bundle.putInt("STATE", vd.ordinal());
bundle.putParcelable(CommonConstant.ReqAccessTokenParam.DISPLAY_LABEL, vc);
bundle.putBoolean("preFilled", z);
bundle.putParcelable("cache", tq);
remittanceAmountFormFragment.setArguments(bundle);
return remittanceAmountFormFragment;
}
public /* synthetic */ LWm(byte b) {
this();
}
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<hNH> {
private RemittanceAmountFormFragment c;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ hNH invoke() {
View inflate = this.c.getLayoutInflater().inflate(R.layout.2131559866, (ViewGroup) null, false);
int i = R.id.bt_action;
Button button = (Button) qeC.e(inflate, R.id.bt_action);
if (button != null) {
i = R.id.cl_amount_from_container;
ConstraintLayout constraintLayout = (ConstraintLayout) qeC.e(inflate, R.id.cl_amount_from_container);
if (constraintLayout != null) {
i = R.id.cl_amount_to_container;
ConstraintLayout constraintLayout2 = (ConstraintLayout) qeC.e(inflate, R.id.cl_amount_to_container);
if (constraintLayout2 != null) {
i = R.id.constraintLayout;
ConstraintLayout constraintLayout3 = (ConstraintLayout) qeC.e(inflate, R.id.constraintLayout);
if (constraintLayout3 != null) {
i = R.id.cs_layout_mobile_input;
ConstraintLayout constraintLayout4 = (ConstraintLayout) qeC.e(inflate, R.id.cs_layout_mobile_input);
if (constraintLayout4 != null) {
i = R.id.cs_layout_mobile_section;
ConstraintLayout constraintLayout5 = (ConstraintLayout) qeC.e(inflate, R.id.cs_layout_mobile_section);
if (constraintLayout5 != null) {
i = R.id.custom_purpose_type;
CustomSpinnerWithTitle customSpinnerWithTitle = (CustomSpinnerWithTitle) qeC.e(inflate, R.id.custom_purpose_type);
if (customSpinnerWithTitle != null) {
i = R.id.et_from_amount_value;
AmountEditText amountEditText = (AmountEditText) qeC.e(inflate, R.id.et_from_amount_value);
if (amountEditText != null) {
i = R.id.et_mobile_input_field;
CustomEditText customEditText = (CustomEditText) qeC.e(inflate, R.id.et_mobile_input_field);
if (customEditText != null) {
i = R.id.et_note;
TintNoteEditText tintNoteEditText = (TintNoteEditText) qeC.e(inflate, R.id.et_note);
if (tintNoteEditText != null) {
i = R.id.et_to_amount_value;
AmountEditText amountEditText2 = (AmountEditText) qeC.e(inflate, R.id.et_to_amount_value);
if (amountEditText2 != null) {
i = R.id.icTransferAmountWallet;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.icTransferAmountWallet);
if (imageView != null) {
i = R.id.iv_country_flag;
ImageView imageView2 = (ImageView) qeC.e(inflate, R.id.iv_country_flag);
if (imageView2 != null) {
i = R.id.iv_edit;
ImageView imageView3 = (ImageView) qeC.e(inflate, R.id.iv_edit);
if (imageView3 != null) {
i = R.id.ll_label_container;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.ll_label_container);
if (linearLayout != null) {
i = R.id.rl_info_container;
RelativeLayout relativeLayout = (RelativeLayout) qeC.e(inflate, R.id.rl_info_container);
if (relativeLayout != null) {
i = R.id.tv_country_name;
TextView textView = (TextView) qeC.e(inflate, R.id.tv_country_name);
if (textView != null) {
i = R.id.tv_error_amount_to;
TextView textView2 = (TextView) qeC.e(inflate, R.id.tv_error_amount_to);
if (textView2 != null) {
i = R.id.tv_exchange_rate;
TextView textView3 = (TextView) qeC.e(inflate, R.id.tv_exchange_rate);
if (textView3 != null) {
i = R.id.tv_limit_no_decimal;
TextView textView4 = (TextView) qeC.e(inflate, R.id.tv_limit_no_decimal);
if (textView4 != null) {
i = R.id.tv_max_limit_transaction;
TextView textView5 = (TextView) qeC.e(inflate, R.id.tv_max_limit_transaction);
if (textView5 != null) {
i = R.id.tv_mobile_desc;
TextView textView6 = (TextView) qeC.e(inflate, R.id.tv_mobile_desc);
if (textView6 != null) {
TextView textView7 = (TextView) qeC.e(inflate, R.id.tv_mobile_number_tile);
if (textView7 != null) {
TextView textView8 = (TextView) qeC.e(inflate, R.id.tv_more_title);
if (textView8 != null) {
TextView textView9 = (TextView) qeC.e(inflate, R.id.tv_paynow_remaining_daily_limit);
if (textView9 != null) {
ThaiTextView thaiTextView = (ThaiTextView) qeC.e(inflate, R.id.tv_rate_description);
if (thaiTextView != null) {
TextView textView10 = (TextView) qeC.e(inflate, R.id.tv_remaining_daily_limit);
if (textView10 != null) {
TextView textView11 = (TextView) qeC.e(inflate, R.id.tv_remaining_monthly_limit);
if (textView11 != null) {
TextView textView12 = (TextView) qeC.e(inflate, R.id.tv_remaining_times_monthly);
if (textView12 != null) {
TextView textView13 = (TextView) qeC.e(inflate, R.id.tv_remark);
if (textView13 != null) {
TextView textView14 = (TextView) qeC.e(inflate, R.id.tv_remittance_plus);
if (textView14 != null) {
TextView textView15 = (TextView) qeC.e(inflate, R.id.tv_title_from_amount);
if (textView15 != null) {
TextView textView16 = (TextView) qeC.e(inflate, R.id.tv_title_to_amount);
if (textView16 != null) {
View e = qeC.e(inflate, R.id.v_space);
if (e != null) {
return new hNH((LinearLayout) inflate, button, constraintLayout, constraintLayout2, constraintLayout3, constraintLayout4, constraintLayout5, customSpinnerWithTitle, amountEditText, customEditText, tintNoteEditText, amountEditText2, imageView, imageView2, imageView3, linearLayout, relativeLayout, textView, textView2, textView3, textView4, textView5, textView6, textView7, textView8, textView9, thaiTextView, textView10, textView11, textView12, textView13, textView14, textView15, textView16, e);
}
i = R.id.v_space;
} else {
i = R.id.tv_title_to_amount;
}
} else {
i = R.id.tv_title_from_amount;
}
} else {
i = R.id.tv_remittance_plus;
}
} else {
i = R.id.tv_remark;
}
} else {
i = R.id.tv_remaining_times_monthly;
}
} else {
i = R.id.tv_remaining_monthly_limit;
}
} else {
i = R.id.tv_remaining_daily_limit;
}
} else {
i = R.id.tv_rate_description;
}
} else {
i = R.id.tv_paynow_remaining_daily_limit;
}
} else {
i = R.id.tv_more_title;
}
} else {
i = R.id.tv_mobile_number_tile;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(RemittanceAmountFormFragment remittanceAmountFormFragment) {
super(0);
this.c = remittanceAmountFormFragment;
}
}
/* loaded from: classes5.dex */
public static final class IeS implements AmountEditText.RVV {
private RemittanceAmountFormFragment c;
IeS(RemittanceAmountFormFragment remittanceAmountFormFragment) {
this.c = remittanceAmountFormFragment;
}
@Override // com.scb.phone.view.custom.common.AmountEditText.RVV
public final void b(double d) {
if (RemittanceAmountFormFragment.c(this.c).f.hasFocus()) {
cBH cbh = this.c.presenter;
cBH cbh2 = null;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
cbh.e(d, this.c.i());
cBH cbh3 = this.c.presenter;
if (cbh3 != null) {
cbh2 = cbh3;
} else {
C14957gcv.a("");
}
C5847cBE c5847cBE = new C5847cBE(cbh2, RemittanceAmountFormFragment.c(this.c).f.e, RemittanceAmountFormFragment.c(this.c).h.e);
if (cbh2.f != 0) {
c5847cBE.e(cbh2.f);
}
}
}
@Override // com.scb.phone.view.custom.common.AmountEditText.RVV
public final void a() {
this.c.aN_();
}
}
/* loaded from: classes5.dex */
public static final class saX extends fJJ {
private RemittanceAmountFormFragment d;
saX(RemittanceAmountFormFragment remittanceAmountFormFragment) {
this.d = remittanceAmountFormFragment;
}
@Override // o.fJJ, android.text.TextWatcher
public final void afterTextChanged(Editable editable) {
C14957gcv.e(editable, "");
if (RemittanceAmountFormFragment.c(this.d).i.hasFocus()) {
cBH cbh = this.d.presenter;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
RemittanceAmountFormFragment remittanceAmountFormFragment = this.d;
String obj = editable.toString();
C14957gcv.e(obj, "");
cbh.a = obj;
C5847cBE c5847cBE = new C5847cBE(cbh, RemittanceAmountFormFragment.c(remittanceAmountFormFragment).f.e, RemittanceAmountFormFragment.c(remittanceAmountFormFragment).h.e);
if (cbh.f != 0) {
c5847cBE.e(cbh.f);
}
}
}
}
/* loaded from: classes5.dex */
public static final class tOB extends fJJ {
private RemittanceAmountFormFragment d;
tOB(RemittanceAmountFormFragment remittanceAmountFormFragment) {
this.d = remittanceAmountFormFragment;
}
@Override // o.fJJ, android.text.TextWatcher
public final void afterTextChanged(Editable editable) {
C14957gcv.e(editable, "");
if (RemittanceAmountFormFragment.c(this.d).g.hasFocus()) {
cBH cbh = this.d.presenter;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
String obj = editable.toString();
C14957gcv.e(obj, "");
cbh.e = obj;
}
}
}
/* loaded from: classes5.dex */
public static final class Sts implements AmountEditText.RVV {
private RemittanceAmountFormFragment d;
Sts(RemittanceAmountFormFragment remittanceAmountFormFragment) {
this.d = remittanceAmountFormFragment;
}
@Override // com.scb.phone.view.custom.common.AmountEditText.RVV
public final void b(final double d) {
if (RemittanceAmountFormFragment.c(this.d).h.hasFocus()) {
cBH cbh = this.d.presenter;
cBH cbh2 = null;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
final double d2 = d * cbh.d;
final cBH cbh3 = cbh;
ZI.IeS ieS = new ZI.IeS(cbh3, d2, d) { // from class: o.cBJ
private double a;
private cBH c;
private double e;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBH.d(this.c, this.a, this.e, (InterfaceC9612dmy) obj);
}
{
this.c = cbh3;
this.a = d2;
this.e = d;
}
};
if (cbh.f != 0) {
ieS.e(cbh.f);
}
cBH cbh4 = this.d.presenter;
if (cbh4 != null) {
cbh2 = cbh4;
} else {
C14957gcv.a("");
}
C5847cBE c5847cBE = new C5847cBE(cbh2, RemittanceAmountFormFragment.c(this.d).f.e, RemittanceAmountFormFragment.c(this.d).h.e);
if (cbh2.f != 0) {
c5847cBE.e(cbh2.f);
}
}
}
@Override // com.scb.phone.view.custom.common.AmountEditText.RVV
public final void a() {
this.d.aN_();
}
}
private final VD g() {
Bundle arguments = getArguments();
if (arguments != null) {
int i = arguments.getInt("STATE", -1);
VD vd = i >= 0 ? VD.values()[i] : null;
if (vd != null) {
return vd;
}
}
return VD.NORMAL;
}
/* JADX INFO: Access modifiers changed from: private */
public final boolean i() {
Parcelable parcelable;
Bundle arguments = getArguments();
if (arguments != null) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable(CommonConstant.ReqAccessTokenParam.DISPLAY_LABEL, VC.class);
} else {
Parcelable parcelable2 = arguments.getParcelable(CommonConstant.ReqAccessTokenParam.DISPLAY_LABEL);
if (!(parcelable2 instanceof VC)) {
parcelable2 = null;
}
parcelable = (VC) parcelable2;
}
VC vc = (VC) parcelable;
if (vc != null) {
return vc.h;
}
}
return true;
}
@Override // com.scb.phone.view.fragment.remittance.Hilt_RemittanceAmountFormFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public final void onAttach(Context context) {
C14957gcv.e(context, "");
super.onAttach(context);
if (getParentFragment() instanceof InterfaceC12882fJz) {
InterfaceC16541pFg parentFragment = getParentFragment();
C14957gcv.d(parentFragment, "");
this.m = (InterfaceC12882fJz) parentFragment;
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
LinearLayout linearLayout = ((hNH) this.c.e()).f9156o;
C14957gcv.c(linearLayout, "");
return linearLayout;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
String string;
Parcelable parcelable;
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
cBH cbh = this.presenter;
final cBH cbh2 = null;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
cbh.e((cBH) this);
((hNH) this.c.e()).a.setOnClickListener(new View.OnClickListener(this) { // from class: o.fxs
private RemittanceAmountFormFragment e;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
RemittanceAmountFormFragment.b(this.e);
}
{
this.e = this;
}
});
((hNH) this.c.e()).n.setOnClickListener(new View.OnClickListener(this) { // from class: o.fxx
private RemittanceAmountFormFragment a;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
RemittanceAmountFormFragment.e(this.a);
}
{
this.a = this;
}
});
int i = g() == VD.ADD_FAVOURITE ? 8 : 0;
int i2 = g() == VD.ADD_FAVOURITE ? 0 : 8;
if (g() == VD.ADD_FAVOURITE) {
string = getString(R.string.remittance_input_add_recipient_button_message);
} else {
string = getString(R.string.remittance_input_proceed_button_message);
}
C14957gcv.c((Object) string, "");
hNH hnh = (hNH) this.c.e();
hnh.x.setVisibility(i);
hnh.k.setVisibility(i);
hnh.s.setVisibility(i);
hnh.p.setVisibility(i);
hnh.v.setVisibility(i);
hnh.w.setVisibility(i);
hnh.u.setVisibility(i);
hnh.y.setVisibility(i);
hnh.c.setVisibility(i);
hnh.e.setVisibility(i);
hnh.z.setVisibility(i2);
hnh.a.setText(string);
InterfaceC12882fJz interfaceC12882fJz = this.m;
if (interfaceC12882fJz != null) {
interfaceC12882fJz.g();
}
Bundle arguments = getArguments();
if (arguments != null) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable(CommonConstant.ReqAccessTokenParam.DISPLAY_LABEL, VC.class);
} else {
Parcelable parcelable2 = arguments.getParcelable(CommonConstant.ReqAccessTokenParam.DISPLAY_LABEL);
if (!(parcelable2 instanceof VC)) {
parcelable2 = null;
}
parcelable = (VC) parcelable2;
}
final VC vc = (VC) parcelable;
if (vc != null) {
cBH cbh3 = this.presenter;
if (cbh3 != null) {
cbh2 = cbh3;
} else {
C14957gcv.a("");
}
Bundle arguments2 = getArguments();
final boolean z = arguments2 != null ? arguments2.getBoolean("preFilled") : false;
C14957gcv.e(vc, "");
C14957gcv.e(vc, "");
cbh2.g = vc;
cbh2.d = vc.l;
ZI.IeS ieS = new ZI.IeS(cbh2, vc, z) { // from class: o.cBI
private cBH a;
private boolean c;
private VC e;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBH.b(this.a, this.e, this.c, (InterfaceC9612dmy) obj);
}
{
this.a = cbh2;
this.e = vc;
this.c = z;
}
};
if (cbh2.f != 0) {
ieS.e(cbh2.f);
}
hNH hnh2 = (hNH) this.c.e();
hnh2.l.setText(vc.i);
if (getContext() == null) {
getActivity();
}
C12891fKc.azo_(hnh2.j, vc.g);
hnh2.k.setText(vc.j);
hnh2.x.setText(vc.f);
hnh2.B.setText(vc.d);
hnh2.A.setText(vc.c);
ImageView imageView = hnh2.n;
C14957gcv.c(imageView, "");
ImageView imageView2 = imageView;
boolean z2 = vc.b;
C14957gcv.e(imageView2, "");
imageView2.setVisibility(z2 ? 0 : 8);
}
}
hNH hnh3 = (hNH) this.c.e();
hnh3.f.setOnAmountChangeListener(this.j);
hnh3.h.setOnAmountChangeListener(this.g);
hnh3.i.addTextChangedListener(this.f);
hnh3.g.mNoteEditText.addTextChangedListener(this.l);
}
@Override // o.InterfaceC9612dmy
public final void c(String str) {
C14957gcv.e(str, "");
((hNH) this.c.e()).h.setText(str);
}
@Override // o.InterfaceC9612dmy
public final void d(String str) {
C14957gcv.e(str, "");
((hNH) this.c.e()).f.setText(str);
}
@Override // o.InterfaceC14686fxr
public final void b(boolean z) {
((hNH) this.c.e()).a.setEnabled(z);
}
@Override // androidx.fragment.app.Fragment
public final void onDetach() {
super.onDetach();
this.m = null;
}
@Override // o.InterfaceC9612dmy
public final void a(VC vc) {
Double d2;
C14957gcv.e(vc, "");
hNH hnh = (hNH) this.c.e();
TextView textView = hnh.s;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
TextView textView3 = hnh.p;
C14957gcv.c(textView3, "");
TextView textView4 = textView3;
C14957gcv.e(textView4, "");
textView4.setVisibility(8);
hnh.v.setText(vc.k);
hnh.w.setText(vc.q);
hnh.u.setText(vc.s);
Bundle arguments = getArguments();
if (arguments == null || !arguments.getBoolean("preFilled") || vc.e == null || (d2 = vc.e) == null) {
return;
}
double doubleValue = d2.doubleValue();
String str = (String) C6583cXR.c(new Object[]{Double.valueOf(doubleValue)}, -150997759, 150997764, (int) System.currentTimeMillis());
cBH cbh = this.presenter;
cBH cbh2 = null;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
cbh.e(doubleValue, i());
hNH hnh2 = (hNH) this.c.e();
hnh2.f.setText(str);
cBH cbh3 = this.presenter;
if (cbh3 != null) {
cbh2 = cbh3;
} else {
C14957gcv.a("");
}
C5847cBE c5847cBE = new C5847cBE(cbh2, hnh2.f.e, hnh2.h.e);
if (cbh2.f != 0) {
c5847cBE.e(cbh2.f);
}
}
/* loaded from: classes5.dex */
public static final class ojQ implements CustomSpinnerWithTitle.LWm {
private RemittanceAmountFormFragment a;
@Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm
public final void bn_() {
}
ojQ(RemittanceAmountFormFragment remittanceAmountFormFragment) {
this.a = remittanceAmountFormFragment;
}
@Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm
public final void bo_() {
cBH cbh = this.a.presenter;
cBH cbh2 = null;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
cbh.e(((MYp) RemittanceAmountFormFragment.c(this.a).b.c.e()).c.getSelectedItemPosition());
cBH cbh3 = this.a.presenter;
if (cbh3 != null) {
cbh2 = cbh3;
} else {
C14957gcv.a("");
}
C5847cBE c5847cBE = new C5847cBE(cbh2, RemittanceAmountFormFragment.c(this.a).f.e, RemittanceAmountFormFragment.c(this.a).h.e);
if (cbh2.f != 0) {
c5847cBE.e(cbh2.f);
}
}
}
@Override // o.InterfaceC9612dmy
public final void b(C1108Vu c1108Vu, VC vc) {
C14957gcv.e(c1108Vu, "");
C14957gcv.e(vc, "");
ojQ ojq = new ojQ(this);
hNH hnh = (hNH) this.c.e();
hnh.a.setText(getString(R.string.paynow_input_review_button_message));
ConstraintLayout constraintLayout = hnh.d;
C14957gcv.c(constraintLayout, "");
ConstraintLayout constraintLayout2 = constraintLayout;
C14957gcv.e(constraintLayout2, "");
constraintLayout2.setVisibility(0);
TextView textView = hnh.v;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
TextView textView3 = hnh.w;
C14957gcv.c(textView3, "");
TextView textView4 = textView3;
C14957gcv.e(textView4, "");
textView4.setVisibility(8);
TextView textView5 = hnh.u;
C14957gcv.c(textView5, "");
TextView textView6 = textView5;
C14957gcv.e(textView6, "");
textView6.setVisibility(8);
TextView textView7 = hnh.r;
C14957gcv.c(textView7, "");
TextView textView8 = textView7;
C14957gcv.e(textView8, "");
textView8.setVisibility(0);
TextView textView9 = hnh.t;
C14957gcv.c(textView9, "");
TextView textView10 = textView9;
C14957gcv.e(textView10, "");
textView10.setVisibility(0);
TintNoteEditText tintNoteEditText = hnh.g;
C14957gcv.c(tintNoteEditText, "");
TintNoteEditText tintNoteEditText2 = tintNoteEditText;
C14957gcv.e(tintNoteEditText2, "");
tintNoteEditText2.setVisibility(0);
hnh.s.setText(vc.n);
hnh.p.setText(vc.k);
if (c1108Vu.d != null) {
((hNH) this.c.e()).b.b();
((hNH) this.c.e()).b.setItems(c1108Vu.d, false, true);
((hNH) this.c.e()).b.setSelectionIndex(0);
cBH cbh = this.presenter;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
cbh.e(((MYp) ((hNH) this.c.e()).b.c.e()).c.getSelectedItemPosition());
((hNH) this.c.e()).b.setOnCustomSpinnerWithTitleCompletion(ojq);
}
}
@Override // o.InterfaceC9612dmy
public final void b() {
((hNH) this.c.e()).h.setInvalidAmount(false);
TextView textView = ((hNH) this.c.e()).m;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
}
@Override // o.InterfaceC9612dmy
public final void a() {
((hNH) this.c.e()).h.setInvalidAmount(true);
TextView textView = ((hNH) this.c.e()).m;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
}
@Override // o.InterfaceC9612dmy
public final void e(C13396fZU<Double, Double> c13396fZU, String str, String str2) {
C14957gcv.e(c13396fZU, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
InterfaceC12882fJz interfaceC12882fJz = this.m;
if (interfaceC12882fJz != null) {
interfaceC12882fJz.b(c13396fZU, str, str2);
}
}
@Override // o.InterfaceC9612dmy
public final void c(C13396fZU<Double, Double> c13396fZU) {
C14957gcv.e(c13396fZU, "");
InterfaceC12882fJz interfaceC12882fJz = this.m;
if (interfaceC12882fJz != null) {
interfaceC12882fJz.e(c13396fZU);
}
}
@Override // o.InterfaceC9612dmy
public final void b(C13396fZU<Double, Double> c13396fZU) {
C14957gcv.e(c13396fZU, "");
InterfaceC12882fJz interfaceC12882fJz = this.m;
if (interfaceC12882fJz != null) {
interfaceC12882fJz.c(c13396fZU);
}
}
@Override // o.InterfaceC9612dmy
public final void d(C13396fZU<Double, Double> c13396fZU, String str, String str2, String str3) {
C14957gcv.e(c13396fZU, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
InterfaceC12882fJz interfaceC12882fJz = this.m;
if (interfaceC12882fJz != null) {
interfaceC12882fJz.b(c13396fZU, str, str2, str3);
}
}
@Override // o.InterfaceC9612dmy
public final void d() {
final AmountEditText amountEditText = ((hNH) this.c.e()).h;
amountEditText.setOnPasteListener(new AmountEditText.Sts() { // from class: o.fxt
@Override // com.scb.phone.view.custom.common.AmountEditText.Sts
public final boolean c(AmountEditText amountEditText2, String str) {
return RemittanceAmountFormFragment.c(amountEditText2, str);
}
});
C14957gcv.c(amountEditText, "");
amountEditText.setOnFocusChangeListener(new View.OnFocusChangeListener(amountEditText, this) { // from class: o.fxu
private RemittanceAmountFormFragment a;
private AmountEditText d;
@Override // android.view.View.OnFocusChangeListener
public final void onFocusChange(View view, boolean z) {
RemittanceAmountFormFragment.b(this.d, this.a, z);
}
{
this.d = amountEditText;
this.a = this;
}
});
}
@Override // o.InterfaceC9612dmy
public final void c() {
InterfaceC12882fJz interfaceC12882fJz = this.m;
if (interfaceC12882fJz != null) {
interfaceC12882fJz.d();
}
}
@Override // o.InterfaceC9612dmy
public final void c(int i) {
((hNH) this.c.e()).b.setSelectionIndex(i);
}
@Override // o.InterfaceC9612dmy
public final void b(String str) {
C14957gcv.e(str, "");
TextView textView = ((hNH) this.c.e()).q;
C14957gcv.c(textView, "");
TextView textView2 = textView;
boolean z = !i() && str.length() > 0;
C14957gcv.e(textView2, "");
textView2.setVisibility(z ? 0 : 8);
textView.setText(str);
}
@Override // o.InterfaceC9612dmy
public final void e() {
v("outward_remittance_pp_input");
}
public static /* synthetic */ void b(RemittanceAmountFormFragment remittanceAmountFormFragment) {
C14957gcv.e(remittanceAmountFormFragment, "");
if (RVV.e[remittanceAmountFormFragment.g().ordinal()] == 1) {
InterfaceC12882fJz interfaceC12882fJz = remittanceAmountFormFragment.m;
if (interfaceC12882fJz != null) {
interfaceC12882fJz.i();
}
} else {
cBH cbh = remittanceAmountFormFragment.presenter;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
final double d2 = ((hNH) remittanceAmountFormFragment.c.e()).f.e;
final double d3 = ((hNH) remittanceAmountFormFragment.c.e()).h.e;
final cBH cbh2 = cbh;
ZI.IeS ieS = new ZI.IeS(cbh2, d2, d3) { // from class: o.cBL
private double c;
private double d;
private cBH e;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBH.b(this.e, this.d, this.c, (InterfaceC9612dmy) obj);
}
{
this.e = cbh2;
this.d = d2;
this.c = d3;
}
};
if (cbh.f != 0) {
ieS.e(cbh.f);
}
}
remittanceAmountFormFragment.v("outward_remittance_input");
}
public static /* synthetic */ void e(RemittanceAmountFormFragment remittanceAmountFormFragment) {
C14957gcv.e(remittanceAmountFormFragment, "");
InterfaceC12882fJz interfaceC12882fJz = remittanceAmountFormFragment.m;
if (interfaceC12882fJz != null) {
interfaceC12882fJz.f();
}
}
public static /* synthetic */ boolean c(AmountEditText amountEditText, String str) {
amountEditText.setText(C6583cXR.o(str));
return true;
}
public static /* synthetic */ void b(AmountEditText amountEditText, RemittanceAmountFormFragment remittanceAmountFormFragment, boolean z) {
C14957gcv.e(amountEditText, "");
C14957gcv.e(remittanceAmountFormFragment, "");
if (z) {
amountEditText.setText(C6583cXR.o(String.valueOf(amountEditText.getText())));
amountEditText.setFilters(remittanceAmountFormFragment.i);
} else {
amountEditText.setFilters(remittanceAmountFormFragment.h);
}
}
@Override // o.InterfaceC9612dmy
public final void h() {
TQ tq;
Parcelable parcelable;
Bundle arguments = getArguments();
C1108Vu c1108Vu = null;
if (arguments != null) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable("cache", TQ.class);
} else {
Parcelable parcelable2 = arguments.getParcelable("cache");
if (!(parcelable2 instanceof TQ)) {
parcelable2 = null;
}
parcelable = (TQ) parcelable2;
}
tq = (TQ) parcelable;
} else {
tq = null;
}
if (tq != null) {
double d2 = tq.e;
String str = (String) C6583cXR.c(new Object[]{Double.valueOf(d2)}, -150997759, 150997764, (int) System.currentTimeMillis());
((hNH) this.c.e()).i.setText(tq.i);
cBH cbh = this.presenter;
if (cbh == null) {
C14957gcv.a("");
cbh = null;
}
String str2 = tq.i;
C14957gcv.e(str2, "");
cbh.a = str2;
((hNH) this.c.e()).g.setText(tq.j);
((hNH) this.c.e()).f.setText(str);
cBH cbh2 = this.presenter;
if (cbh2 == null) {
C14957gcv.a("");
cbh2 = null;
}
cbh2.e(d2, i());
cBH cbh3 = this.presenter;
if (cbh3 == null) {
C14957gcv.a("");
cbh3 = null;
}
String str3 = tq.j;
if (str3 == null) {
str3 = "";
}
C14957gcv.e(str3, "");
cbh3.e = str3;
cBH cbh4 = this.presenter;
if (cbh4 == null) {
C14957gcv.a("");
cbh4 = null;
}
String str4 = tq.f;
C14957gcv.e(str4, "");
C1108Vu c1108Vu2 = cbh4.c;
if (c1108Vu2 != null) {
c1108Vu = c1108Vu2;
} else {
C14957gcv.a("");
}
List<String> list = c1108Vu.d;
if (list != null) {
final int indexOf = list.indexOf(str4);
cbh4.b = list.get(indexOf);
ZI.IeS ieS = new ZI.IeS(indexOf) { // from class: o.cBK
private int e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9612dmy) obj).c(this.e);
}
{
this.e = indexOf;
}
};
if (cbh4.f != 0) {
ieS.e(cbh4.f);
}
}
}
}
/* loaded from: classes5.dex */
public final /* synthetic */ class RVV {
public static final int[] e;
static {
int[] iArr = new int[VD.values().length];
try {
iArr[VD.ADD_FAVOURITE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
e = iArr;
}
}
}