package com.scb.phone.view.fragment.remittance; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.os.Parcelable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.LinearLayout; import androidx.core.widget.NestedScrollView; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentActivity; import com.huawei.hms.support.api.entity.common.CommonConstant; import com.scb.phone.R; import com.scb.phone.view.activity.HomeActivity; import com.scb.phone.view.activity.paynow.PayNowReviewActivity; import com.scb.phone.view.activity.remittance.RemittanceAddFavouriteRecipientDetailActivity; import com.scb.phone.view.activity.remittance.RemittanceSenderAddressReviewActivity; import com.scb.phone.view.activity.splash.SplashActivity; import com.scb.phone.view.adapter.accountsummary.ErrorPagerAdapter; import com.scb.phone.view.adapter.transferandpay.AccountSourceAdapter; import com.scb.phone.view.custom.common.CustomDialog; import com.scb.phone.view.fragment.remittance.RemittanceAmountFormFragment; import com.scb.phone.view.fragment.remittance.RemittanceInputFragment; import com.scb.phone.view.fragment.transferandpay.AccountSourceSelectFragment; import o.AbstractC13163fSk; import o.AbstractC13482fbE; import o.AbstractC14961gcz; import o.C0232By; import o.C10400eD; import o.C10533eH; import o.C1106Vt; import o.C1115Vz; import o.C11560ehe; import o.C1171Xc; import o.C13396fZU; import o.C14807gC; import o.C14866gag; import o.C14957gcv; import o.C17622yQ; import o.C5896cCj; import o.C6146cK; import o.CmE; import o.Heg; import o.InterfaceC0834Plv; import o.InterfaceC12837fIl; import o.InterfaceC12882fJz; import o.InterfaceC13391fZD; import o.InterfaceC13393fZL; import o.InterfaceC14686fxr; import o.InterfaceC14890gbN; import o.InterfaceC14894gbR; import o.InterfaceC9562dmA; import o.LYo; import o.NxD; import o.PpH; import o.TN; import o.TQ; import o.VC; import o.VD; import o.VH; import o.VkI; import o.WW; import o.YE; import o.ZI; import o.cBZ; import o.fSQ; import o.fZZ; import o.gdZ; import o.gjJ; import o.hNH; import o.huo; import o.qPX; import o.qeC; import o.yRS; /* loaded from: classes5.dex */ public final class RemittanceInputFragment extends Hilt_RemittanceInputFragment implements InterfaceC9562dmA, InterfaceC12837fIl, InterfaceC12882fJz, AccountSourceSelectFragment.Sts { public static final IeS c = new IeS(0); private final InterfaceC13393fZL d; private boolean g; private InterfaceC14686fxr h; private huo j; @InterfaceC13391fZD public cBZ presenter; public static final /* synthetic */ VkI e(RemittanceInputFragment remittanceInputFragment) { return (VkI) remittanceInputFragment.d.e(); } public RemittanceInputFragment() { LWm lWm = new LWm(this); C14957gcv.e(lWm, ""); this.d = new fZZ(lWm); } /* loaded from: classes5.dex */ public static final class IeS { private IeS() { } public static RemittanceInputFragment d(VD vd, C1115Vz c1115Vz) { C14957gcv.e(vd, ""); RemittanceInputFragment remittanceInputFragment = new RemittanceInputFragment(); Bundle bundle = new Bundle(); bundle.putInt("STATE", vd.ordinal()); bundle.putParcelable("INPUT_DISPLAY", c1115Vz); remittanceInputFragment.setArguments(bundle); return remittanceInputFragment; } public /* synthetic */ IeS(byte b) { this(); } } /* loaded from: classes5.dex */ static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN { private RemittanceInputFragment a; @Override // o.InterfaceC14890gbN public final /* synthetic */ VkI invoke() { View inflate = this.a.getLayoutInflater().inflate(R.layout.2131559869, (ViewGroup) null, false); int i = R.id.fragment_account_source_select; FrameLayout frameLayout = (FrameLayout) qeC.e(inflate, R.id.fragment_account_source_select); if (frameLayout != null) { i = R.id.fragment_detail; FrameLayout frameLayout2 = (FrameLayout) qeC.e(inflate, R.id.fragment_detail); if (frameLayout2 != null) { i = R.id.fragment_favourite_transfer_target; FrameLayout frameLayout3 = (FrameLayout) qeC.e(inflate, R.id.fragment_favourite_transfer_target); if (frameLayout3 != null) { NestedScrollView nestedScrollView = (NestedScrollView) inflate; i = R.id.view_group_root; LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.view_group_root); if (linearLayout != null) { return new VkI(nestedScrollView, frameLayout, frameLayout2, frameLayout3, nestedScrollView, linearLayout); } } } } 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) */ LWm(RemittanceInputFragment remittanceInputFragment) { super(0); this.a = remittanceInputFragment; } } private final VD h() { 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; } @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); NestedScrollView nestedScrollView = ((VkI) this.d.e()).a; C14957gcv.c(nestedScrollView, ""); return nestedScrollView; } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { Parcelable parcelable; C14957gcv.e(view, ""); super.onViewCreated(view, bundle); cBZ cbz = this.presenter; cBZ cbz2 = null; if (cbz == null) { C14957gcv.a(""); cbz = null; } cbz.e((cBZ) this); cBZ cbz3 = this.presenter; if (cbz3 == null) { C14957gcv.a(""); cbz3 = null; } VD h = h(); C14957gcv.e(h, ""); cbz3.l = h; huo registerForActivityResult = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.fxM private RemittanceInputFragment e; @Override // o.InterfaceC0834Plv public final void d(Object obj) { RemittanceInputFragment.c(this.e, (Heg) obj); } { this.e = this; } }); C14957gcv.c(registerForActivityResult, ""); this.j = registerForActivityResult; int i = RVV.e[h().ordinal()]; if (i != 1 && i != 2) { if (i != 3) { yRS childFragmentManager = getChildFragmentManager(); C14957gcv.c(childFragmentManager, ""); C14807gC.e(childFragmentManager, new ZqN(this)); a((String) null); l(); return; } a((String) null); l(); return; } Bundle arguments = getArguments(); if (arguments != null) { if (Build.VERSION.SDK_INT >= 33) { parcelable = (Parcelable) arguments.getParcelable("INPUT_DISPLAY", C1115Vz.class); } else { Parcelable parcelable2 = arguments.getParcelable("INPUT_DISPLAY"); if (!(parcelable2 instanceof C1115Vz)) { parcelable2 = null; } parcelable = (C1115Vz) parcelable2; } C1115Vz c1115Vz = (C1115Vz) parcelable; if (c1115Vz != null) { a(c1115Vz.a); cBZ cbz4 = this.presenter; if (cbz4 == null) { C14957gcv.a(""); cbz4 = null; } C14957gcv.e(c1115Vz, ""); cbz4.d = c1115Vz; cBZ cbz5 = this.presenter; if (cbz5 != null) { cbz2 = cbz5; } else { C14957gcv.a(""); } cbz2.e(new C1106Vt(c1115Vz.f8428o, c1115Vz.f, c1115Vz.i, c1115Vz.l)); } } } /* loaded from: classes5.dex */ static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR { private RemittanceInputFragment e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(AbstractC13482fbE abstractC13482fbE) { AbstractC13482fbE abstractC13482fbE2 = abstractC13482fbE; C14957gcv.e(abstractC13482fbE2, ""); abstractC13482fbE2.b(RemittanceInputFragment.e(this.e).d.getId(), new RemittanceFavouriteTargetFragment(), "favorite", 1); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ZqN(RemittanceInputFragment remittanceInputFragment) { super(1); this.e = remittanceInputFragment; } } private final void a(String str) { C1171Xc.IeS ieS = new C1171Xc.IeS(YE.REMITTANCE_FUNCTION); C1171Xc c1171Xc = ieS.c; c1171Xc.a = false; c1171Xc.b = true; c1171Xc.j = true; c1171Xc.g = true; ieS.c.d = getString(R.string.remittance_input_account_from_title); ieS.c.f = getString(R.string.remittance_input_account_to_title); ieS.c.c = 3; AccountSourceSelectFragment e = AccountSourceSelectFragment.e(ieS.c, str, ErrorPagerAdapter.LWm.NORMAL_ERROR); AbstractC13482fbE a = getChildFragmentManager().a(); a.b(((VkI) this.d.e()).b.getId(), e, "source_of_fund", 1); a.b(); } private final void l() { AbstractC13482fbE a = getChildFragmentManager().a(); a.b(((VkI) this.d.e()).c.getId(), new RemittanceCountrySelectionFragment(), "country_selection", 1); a.b(); } @Override // o.InterfaceC9562dmA public final void e(VC vc) { C14957gcv.e(vc, ""); aN_(); if (h() == VD.ADD_FAVOURITE) { ((VkI) this.d.e()).e.setFillViewport(true); } RemittanceAmountFormFragment.LWm lWm = RemittanceAmountFormFragment.d; RemittanceAmountFormFragment d = RemittanceAmountFormFragment.LWm.d(h(), vc, this.g, null); this.h = d; if (this.g) { yRS childFragmentManager = getChildFragmentManager(); C14957gcv.c(childFragmentManager, ""); C14807gC.e(childFragmentManager, new HBt(d, this)); } else { yRS childFragmentManager2 = getChildFragmentManager(); C14957gcv.c(childFragmentManager2, ""); C14807gC.e(childFragmentManager2, new ojQ(d)); } } /* loaded from: classes5.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private RemittanceAmountFormFragment c; private RemittanceInputFragment d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(AbstractC13482fbE abstractC13482fbE) { AbstractC13482fbE abstractC13482fbE2 = abstractC13482fbE; C14957gcv.e(abstractC13482fbE2, ""); abstractC13482fbE2.b(R.id.fragment_detail, this.c, "amount_form", 2); this.d.g = false; return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(RemittanceAmountFormFragment remittanceAmountFormFragment, RemittanceInputFragment remittanceInputFragment) { super(1); this.c = remittanceAmountFormFragment; this.d = remittanceInputFragment; } } /* loaded from: classes5.dex */ static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR { private RemittanceAmountFormFragment c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(AbstractC13482fbE abstractC13482fbE) { AbstractC13482fbE abstractC13482fbE2 = abstractC13482fbE; C14957gcv.e(abstractC13482fbE2, ""); abstractC13482fbE2.n = R.anim.2130772001; abstractC13482fbE2.f9128o = R.anim.2130772000; abstractC13482fbE2.l = R.anim.2130772001; abstractC13482fbE2.t = R.anim.2130772000; abstractC13482fbE2.b(R.id.fragment_detail, this.c, "amount_form", 2); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ojQ(RemittanceAmountFormFragment remittanceAmountFormFragment) { super(1); this.c = remittanceAmountFormFragment; } } @Override // o.InterfaceC9562dmA public final void d(VH vh) { C14957gcv.e(vh, ""); Context context = getContext(); if (context != null) { huo huoVar = this.j; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } RemittanceSenderAddressReviewActivity.RVV rvv = RemittanceSenderAddressReviewActivity.l; VD h = h(); C14957gcv.e(context, ""); C14957gcv.e(h, ""); Intent intent = new Intent(context, (Class) RemittanceSenderAddressReviewActivity.class); C14957gcv.c(intent.putExtra("STATE", h.ordinal()), ""); intent.putExtra(CommonConstant.ReqAccessTokenParam.DISPLAY_LABEL, vh); huoVar.d(intent, null); } } @Override // o.InterfaceC9562dmA public final void e(VH vh) { C14957gcv.e(vh, ""); Context context = getContext(); if (context != null) { RemittanceAddFavouriteRecipientDetailActivity.RVV rvv = RemittanceAddFavouriteRecipientDetailActivity.f7884o; C14957gcv.e(context, ""); Intent intent = new Intent(context, (Class) RemittanceAddFavouriteRecipientDetailActivity.class); intent.putExtra(CommonConstant.ReqAccessTokenParam.DISPLAY_LABEL, vh); startActivityForResult(intent, 1002); } } @Override // o.InterfaceC12837fIl public final void c(C1106Vt c1106Vt) { C14957gcv.e(c1106Vt, ""); cBZ cbz = this.presenter; if (cbz == null) { C14957gcv.a(""); cbz = null; } cbz.e(c1106Vt); } @Override // o.InterfaceC12882fJz public final void d() { FrameLayout frameLayout = ((VkI) this.d.e()).d; C14957gcv.c(frameLayout, ""); FrameLayout frameLayout2 = frameLayout; C14957gcv.e(frameLayout2, ""); frameLayout2.setVisibility(8); } @Override // o.InterfaceC12882fJz public final void i() { AccountSourceAdapter accountSourceAdapter; cBZ cbz = this.presenter; VD vd = null; if (cbz == null) { C14957gcv.a(""); cbz = null; } Fragment findFragmentByTag = getChildFragmentManager().findFragmentByTag("source_of_fund"); AccountSourceSelectFragment accountSourceSelectFragment = findFragmentByTag instanceof AccountSourceSelectFragment ? (AccountSourceSelectFragment) findFragmentByTag : null; WW d = (accountSourceSelectFragment == null || (accountSourceAdapter = accountSourceSelectFragment.d) == null) ? null : accountSourceAdapter.d(accountSourceSelectFragment.mViewPager.getCurrentItem()); if (d == null || cbz.e == null || cbz.a == null) { return; } C0232By c0232By = cbz.n; VD vd2 = cbz.l; if (vd2 == null) { C14957gcv.a(""); } else { vd = vd2; } C1106Vt c1106Vt = cbz.e; C14957gcv.e(c1106Vt); NxD nxD = cbz.a; C14957gcv.e(nxD); final VH e = C0232By.e(c0232By, vd, d, c1106Vt, nxD); ZI.IeS ieS = new ZI.IeS(e) { // from class: o.cCl private VH a; @Override // o.ZI.IeS public final void e(Object obj) { cBZ.d(this.a, (InterfaceC9562dmA) obj); } { this.a = e; } }; if (cbz.f != 0) { ieS.e(cbz.f); } } @Override // o.InterfaceC12882fJz public final void f() { this.h = null; int i = RVV.e[h().ordinal()]; if (i == 3) { ((VkI) this.d.e()).e.setFillViewport(false); } else if (i == 4) { cBZ cbz = this.presenter; if (cbz == null) { C14957gcv.a(""); cbz = null; } cbz.f8595o.c.c(); FrameLayout frameLayout = ((VkI) this.d.e()).d; C14957gcv.c(frameLayout, ""); FrameLayout frameLayout2 = frameLayout; C14957gcv.e(frameLayout2, ""); frameLayout2.setVisibility(0); } Fragment findFragmentByTag = getChildFragmentManager().findFragmentByTag("country_selection"); RemittanceCountrySelectionFragment remittanceCountrySelectionFragment = findFragmentByTag instanceof RemittanceCountrySelectionFragment ? (RemittanceCountrySelectionFragment) findFragmentByTag : null; if (remittanceCountrySelectionFragment == null) { remittanceCountrySelectionFragment = new RemittanceCountrySelectionFragment(); } yRS childFragmentManager = getChildFragmentManager(); C14957gcv.c(childFragmentManager, ""); C14807gC.e(childFragmentManager, new Sts(this, remittanceCountrySelectionFragment)); } /* loaded from: classes5.dex */ static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private RemittanceCountrySelectionFragment c; private RemittanceInputFragment d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(AbstractC13482fbE abstractC13482fbE) { AbstractC13482fbE abstractC13482fbE2 = abstractC13482fbE; C14957gcv.e(abstractC13482fbE2, ""); abstractC13482fbE2.n = R.anim.2130772001; abstractC13482fbE2.f9128o = R.anim.2130772000; abstractC13482fbE2.l = R.anim.2130772001; abstractC13482fbE2.t = R.anim.2130772000; int id = RemittanceInputFragment.e(this.d).c.getId(); RemittanceCountrySelectionFragment remittanceCountrySelectionFragment = this.c; if (id == 0) { throw new IllegalArgumentException("Must use non-zero containerViewId"); } abstractC13482fbE2.b(id, remittanceCountrySelectionFragment, "country_selection", 2); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ Sts(RemittanceInputFragment remittanceInputFragment, RemittanceCountrySelectionFragment remittanceCountrySelectionFragment) { super(1); this.d = remittanceInputFragment; this.c = remittanceCountrySelectionFragment; } } @Override // o.InterfaceC9562dmA public final void c(VC vc, TQ tq) { C14957gcv.e(vc, ""); C14957gcv.e(tq, ""); aN_(); if (h() == VD.ADD_FAVOURITE) { ((VkI) this.d.e()).e.setFillViewport(true); } RemittanceAmountFormFragment.LWm lWm = RemittanceAmountFormFragment.d; RemittanceAmountFormFragment d = RemittanceAmountFormFragment.LWm.d(h(), vc, this.g, tq); this.h = d; yRS childFragmentManager = getChildFragmentManager(); C14957gcv.c(childFragmentManager, ""); C14807gC.e(childFragmentManager, new jbe(this, d)); } /* loaded from: classes5.dex */ static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR { private RemittanceInputFragment a; private RemittanceAmountFormFragment b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(AbstractC13482fbE abstractC13482fbE) { AbstractC13482fbE abstractC13482fbE2 = abstractC13482fbE; C14957gcv.e(abstractC13482fbE2, ""); int id = RemittanceInputFragment.e(this.a).c.getId(); RemittanceAmountFormFragment remittanceAmountFormFragment = this.b; if (id == 0) { throw new IllegalArgumentException("Must use non-zero containerViewId"); } abstractC13482fbE2.b(id, remittanceAmountFormFragment, "amount_form", 2); this.a.g = false; return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ jbe(RemittanceInputFragment remittanceInputFragment, RemittanceAmountFormFragment remittanceAmountFormFragment) { super(1); this.a = remittanceInputFragment; this.b = remittanceAmountFormFragment; } } @Override // o.InterfaceC9562dmA public final void e(TN tn) { C14957gcv.e(tn, ""); Context context = getContext(); if (context != null) { PayNowReviewActivity.Sts sts = PayNowReviewActivity.k; C14957gcv.e(context, ""); C14957gcv.e(tn, ""); Intent intent = new Intent(context, (Class) PayNowReviewActivity.class); intent.putExtra("EXTRA_PAYNOW_REVIEW_DISPLAY", tn); startActivityForResult(intent, 1012); } } @Override // o.InterfaceC9562dmA public final void b() { startActivity((Intent) HomeActivity.e(new Object[]{requireActivity()}, -1290522472, 1290522474, (int) System.currentTimeMillis())); } @Override // com.scb.phone.view.fragment.BaseFragment, o.InterfaceC9620dnF.IeS public final void aI_() { SplashActivity.b(new Object[]{requireActivity()}, 1199803597, -1199803588, (int) System.currentTimeMillis()); } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public final void onActivityResult(int i, int i2, Intent intent) { final TQ tq; super.onActivityResult(i, i2, intent); if (i == 1002 && i2 == -1) { FragmentActivity activity = getActivity(); if (activity != null) { activity.setResult(-1); activity.finish(); return; } return; } if (i == 1012 && i2 == -1) { cBZ cbz = this.presenter; final cBZ cbz2 = null; if (cbz == null) { C14957gcv.a(""); cbz = null; } qPX b = cbz.h.a.b(); if (b != null) { C17622yQ c17622yQ = cbz.g; tq = C17622yQ.a(b); } else { tq = null; } if (tq != null) { this.g = true; cBZ cbz3 = this.presenter; if (cbz3 != null) { cbz2 = cbz3; } else { C14957gcv.a(""); } final C1106Vt c1106Vt = new C1106Vt(tq.d, tq.c, tq.b, tq.a); C14957gcv.e(c1106Vt, ""); C14957gcv.e(tq, ""); cbz2.e = c1106Vt; C10400eD c10400eD = new C10400eD(c1106Vt.a, c1106Vt.c, c1106Vt.d, c1106Vt.b); PpH ppH = cbz2.i; C14957gcv.e(c10400eD, ""); AbstractC13163fSk d = ppH.c.d(c10400eD); final cBZ.LWm lWm = new cBZ.LWm(cbz2); AbstractC13163fSk doOnNext = d.doOnNext(new fSQ(lWm) { // from class: o.cCi private InterfaceC14894gbR a; @Override // o.fSQ public final void c(Object obj) { cBZ.b(this.a, obj); } { this.a = lWm; } }); if (cbz2.f != 0) { cbz2.f.y(); } cbz2.i.d(doOnNext, new fSQ(cbz2, c1106Vt, tq) { // from class: o.cCa private TQ b; private cBZ c; private C1106Vt e; @Override // o.fSQ public final void c(Object obj) { cBZ.e(this.c, this.e, this.b, (NxD) obj); } { this.c = cbz2; this.e = c1106Vt; this.b = tq; } }, new fSQ(cbz2) { // from class: o.cCd private cBZ a; @Override // o.fSQ public final void c(Object obj) { cBZ.c(this.a, (Throwable) obj); } { this.a = cbz2; } }); } } } @Override // o.InterfaceC9562dmA public final void c(CmE cmE) { C14957gcv.e(cmE, ""); CustomDialog b = CustomDialog.b(getContext()); String str = cmE.f; if (gjJ.a(str)) { b.mTitleTextView.setVisibility(0); b.mTitleTextView.setText(str); } String str2 = cmE.e; if (gjJ.a(str2)) { b.mTextTextView.setVisibility(0); b.mTextTextView.setText(str2); } ((CustomDialog) CustomDialog.e(new Object[]{b.aoT_(R.string.paynow_proceed_button_dialog, new DialogInterface.OnClickListener(this) { // from class: o.fxN private RemittanceInputFragment b; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { RemittanceInputFragment.axn_(this.b, dialogInterface); } { this.b = this; } }), Integer.valueOf(R.string.paynow_cancel_button_dialog), new DialogInterface.OnClickListener() { // from class: o.fxQ @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { dialogInterface.dismiss(); } }})).show(); } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public final void onDestroyView() { cBZ cbz = this.presenter; huo huoVar = null; if (cbz == null) { C14957gcv.a(""); cbz = null; } cbz.w_(); huo huoVar2 = this.j; if (huoVar2 == null) { C14957gcv.a(""); } else { huoVar = huoVar2; } huoVar.e(); super.onDestroyView(); } public static /* synthetic */ void c(RemittanceInputFragment remittanceInputFragment, Heg heg) { Intent intent; C14957gcv.e(remittanceInputFragment, ""); C14957gcv.e(heg, ""); if (heg.e == -1 && (intent = heg.b) != null && intent.getBooleanExtra("EXTRA_IS_FROM_REVIEW", false)) { remittanceInputFragment.g = true; cBZ cbz = remittanceInputFragment.presenter; cBZ cbz2 = null; if (cbz == null) { C14957gcv.a(""); cbz = null; } C1106Vt c1106Vt = cbz.e; if (c1106Vt != null) { cBZ cbz3 = remittanceInputFragment.presenter; if (cbz3 != null) { cbz2 = cbz3; } else { C14957gcv.a(""); } cbz2.e(c1106Vt); } } } public static /* synthetic */ void axn_(RemittanceInputFragment remittanceInputFragment, DialogInterface dialogInterface) { C14957gcv.e(remittanceInputFragment, ""); cBZ cbz = remittanceInputFragment.presenter; if (cbz == null) { C14957gcv.a(""); cbz = null; } C5896cCj c5896cCj = new C5896cCj(cbz); if (cbz.f != 0) { c5896cCj.e(cbz.f); } dialogInterface.dismiss(); } @Override // com.scb.phone.view.fragment.transferandpay.AccountSourceSelectFragment.Sts public final void a(WW ww) { boolean z; Fragment findFragmentByTag = getChildFragmentManager().findFragmentByTag("amount_form"); cBZ cbz = null; RemittanceAmountFormFragment remittanceAmountFormFragment = findFragmentByTag instanceof RemittanceAmountFormFragment ? (RemittanceAmountFormFragment) findFragmentByTag : null; if (remittanceAmountFormFragment != null) { cBZ cbz2 = this.presenter; if (cbz2 != null) { cbz = cbz2; } else { C14957gcv.a(""); } z = cbz.e(ww, new C13396fZU<>(Double.valueOf(((hNH) remittanceAmountFormFragment.c.e()).f.e), Double.valueOf(((hNH) remittanceAmountFormFragment.c.e()).h.e))); } else { z = false; } InterfaceC14686fxr interfaceC14686fxr = this.h; if (interfaceC14686fxr != null) { interfaceC14686fxr.b(z); } } @Override // o.InterfaceC12882fJz public final void e(C13396fZU c13396fZU) { boolean z; C14957gcv.e(c13396fZU, ""); Fragment findFragmentByTag = getChildFragmentManager().findFragmentByTag("source_of_fund"); AccountSourceSelectFragment accountSourceSelectFragment = findFragmentByTag instanceof AccountSourceSelectFragment ? (AccountSourceSelectFragment) findFragmentByTag : null; if (accountSourceSelectFragment != null) { cBZ cbz = this.presenter; if (cbz == null) { C14957gcv.a(""); cbz = null; } AccountSourceAdapter accountSourceAdapter = accountSourceSelectFragment.d; z = cbz.e(accountSourceAdapter != null ? accountSourceAdapter.d(accountSourceSelectFragment.mViewPager.getCurrentItem()) : null, c13396fZU); } else { z = false; } InterfaceC14686fxr interfaceC14686fxr = this.h; if (interfaceC14686fxr != null) { interfaceC14686fxr.b(z); } } @Override // o.InterfaceC12882fJz public final void g() { boolean z; Fragment findFragmentByTag = getChildFragmentManager().findFragmentByTag("source_of_fund"); AccountSourceSelectFragment accountSourceSelectFragment = findFragmentByTag instanceof AccountSourceSelectFragment ? (AccountSourceSelectFragment) findFragmentByTag : null; if (accountSourceSelectFragment != null) { cBZ cbz = this.presenter; if (cbz == null) { C14957gcv.a(""); cbz = null; } AccountSourceAdapter accountSourceAdapter = accountSourceSelectFragment.d; z = cbz.e(accountSourceAdapter != null ? accountSourceAdapter.d(accountSourceSelectFragment.mViewPager.getCurrentItem()) : null, new C13396fZU<>(Double.valueOf(0.0d), Double.valueOf(0.0d))); } else { z = false; } InterfaceC14686fxr interfaceC14686fxr = this.h; if (interfaceC14686fxr != null) { interfaceC14686fxr.b(z); } } @Override // o.InterfaceC12882fJz public final void b(C13396fZU c13396fZU, String str, String str2) { C14957gcv.e(c13396fZU, ""); C14957gcv.e(str, ""); C14957gcv.e(str2, ""); Fragment findFragmentByTag = getChildFragmentManager().findFragmentByTag("source_of_fund"); AccountSourceSelectFragment accountSourceSelectFragment = findFragmentByTag instanceof AccountSourceSelectFragment ? (AccountSourceSelectFragment) findFragmentByTag : null; boolean z = false; if (accountSourceSelectFragment != null) { cBZ cbz = this.presenter; if (cbz == null) { C14957gcv.a(""); cbz = null; } AccountSourceAdapter accountSourceAdapter = accountSourceSelectFragment.d; WW d = accountSourceAdapter != null ? accountSourceAdapter.d(accountSourceSelectFragment.mViewPager.getCurrentItem()) : null; C14957gcv.e(c13396fZU, ""); C14957gcv.e(str, ""); C14957gcv.e(str2, ""); if (d != null) { String str3 = str; if (!(str3 == null || gdZ.d((CharSequence) str3))) { String str4 = str2; if ((!(str4 == null || gdZ.d((CharSequence) str4))) && c13396fZU.d.doubleValue() > 0.0d && c13396fZU.e.doubleValue() > 0.0d) { double doubleValue = c13396fZU.e.doubleValue(); C14957gcv.e(cbz.a); if (doubleValue <= r10.q.b) { z = true; } } } } } InterfaceC14686fxr interfaceC14686fxr = this.h; if (interfaceC14686fxr != null) { interfaceC14686fxr.b(z); } } @Override // o.InterfaceC12882fJz public final void b(C13396fZU c13396fZU, String str, String str2, String str3) { cBZ cbz; C14957gcv.e(c13396fZU, ""); C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); Fragment findFragmentByTag = getChildFragmentManager().findFragmentByTag("source_of_fund"); AccountSourceSelectFragment accountSourceSelectFragment = findFragmentByTag instanceof AccountSourceSelectFragment ? (AccountSourceSelectFragment) findFragmentByTag : null; if (accountSourceSelectFragment != null) { cBZ cbz2 = this.presenter; if (cbz2 != null) { cbz = cbz2; } else { C14957gcv.a(""); cbz = null; } AccountSourceAdapter accountSourceAdapter = accountSourceSelectFragment.d; WW d = accountSourceAdapter != null ? accountSourceAdapter.d(accountSourceSelectFragment.mViewPager.getCurrentItem()) : null; C14957gcv.c(d, ""); C14957gcv.e(d, ""); C14957gcv.e(c13396fZU, ""); C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); C1106Vt c1106Vt = cbz.e; if (c1106Vt != null) { String str4 = c1106Vt.a; String str5 = c1106Vt.c; String str6 = c1106Vt.d; String str7 = c1106Vt.b; double doubleValue = c13396fZU.d.doubleValue(); double doubleValue2 = c13396fZU.e.doubleValue(); String concat = "+".concat(String.valueOf(str)); String str8 = d.t; C14957gcv.c((Object) str8, ""); C6146cK c6146cK = new C6146cK(str4, str5, str6, str7, doubleValue2, str8, concat, str3, str2, cbz.m); if (cbz.f != 0) { cbz.f.y(); } LYo lYo = cbz.h; C14957gcv.e(c6146cK, ""); lYo.a.e(c6146cK, doubleValue); cbz.h.b(new cBZ.RVV(cbz), new LYo.HBt(c6146cK), cbz.b); } } } @Override // o.InterfaceC12882fJz public final void c(C13396fZU c13396fZU) { C14957gcv.e(c13396fZU, ""); Fragment findFragmentByTag = getChildFragmentManager().findFragmentByTag("source_of_fund"); AccountSourceSelectFragment accountSourceSelectFragment = findFragmentByTag instanceof AccountSourceSelectFragment ? (AccountSourceSelectFragment) findFragmentByTag : null; if (accountSourceSelectFragment != null) { final cBZ cbz = this.presenter; if (cbz == null) { C14957gcv.a(""); cbz = null; } AccountSourceAdapter accountSourceAdapter = accountSourceSelectFragment.d; final WW d = accountSourceAdapter != null ? accountSourceAdapter.d(accountSourceSelectFragment.mViewPager.getCurrentItem()) : null; C14957gcv.c(d, ""); C14957gcv.e(d, ""); C14957gcv.e(c13396fZU, ""); C1106Vt c1106Vt = cbz.e; if (c1106Vt != null) { String str = c1106Vt.a; String str2 = c1106Vt.c; String str3 = c1106Vt.d; String str4 = c1106Vt.b; cbz.c = c13396fZU.d; double doubleValue = c13396fZU.d.doubleValue(); final double doubleValue2 = c13396fZU.e.doubleValue(); String str5 = d.t; C14957gcv.c((Object) str5, ""); C10533eH c10533eH = new C10533eH(str5, doubleValue, doubleValue2, str, str2, str3, str4, cbz.m); if (cbz.f != 0) { cbz.f.y(); } PpH ppH = cbz.i; C14957gcv.e(c10533eH, ""); ppH.d(ppH.c.a(c10533eH), new fSQ(cbz, d, doubleValue2) { // from class: o.cCo private double a; private WW b; private cBZ c; @Override // o.fSQ public final void c(Object obj) { cBZ.a(this.c, this.b, this.a); } { this.c = cbz; this.b = d; this.a = doubleValue2; } }, new fSQ(cbz) { // from class: o.cCn private cBZ b; @Override // o.fSQ public final void c(Object obj) { cBZ.b(this.b, (Throwable) obj); } { this.b = cbz; } }); } } } /* 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.FAVOURITE.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { iArr[VD.RETRY.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { iArr[VD.ADD_FAVOURITE.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { iArr[VD.NORMAL.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } e = iArr; } } }