package com.scb.phone.view.fragment.prepaid.request; import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.scb.phone.R; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.fragment.PurchaseSuccessFragment; import com.scb.phone.view.fragment.prepaid.request.PrepaidRequestSuccessFragment; import java.util.Calendar; import java.util.List; import o.AbstractC13163fSk; import o.AbstractC14961gcz; import o.C13417fZt; import o.C14866gag; import o.C14957gcv; import o.C7681css; import o.Dwh; import o.EO; import o.EW; import o.InterfaceC13391fZD; import o.InterfaceC13393fZL; import o.InterfaceC14890gbN; import o.InterfaceC14894gbR; import o.QI; import o.ZI; import o.cYH; import o.fKY; import o.fRR; import o.fSQ; import o.fZZ; /* loaded from: classes5.dex */ public final class PrepaidRequestSuccessFragment extends Hilt_PrepaidRequestSuccessFragment implements cYH { public static final Sts d = new Sts(0); private final InterfaceC13393fZL g; private EW j; @InterfaceC13391fZD public C7681css successPresenter; @Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, com.scb.phone.view.fragment.ScreenShotFragment public final /* bridge */ /* synthetic */ void d(EO eo, boolean z, boolean z2) { d((EW) eo, z, z2); } public PrepaidRequestSuccessFragment() { RVV rvv = RVV.d; C14957gcv.e(rvv, ""); this.g = new fZZ(rvv); } /* loaded from: classes5.dex */ public static final class Sts { private Sts() { } public /* synthetic */ Sts(byte b) { this(); } } @Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); C7681css c7681css = this.successPresenter; if (c7681css == null) { C14957gcv.a(""); c7681css = null; } c7681css.e((C7681css) this); return super.onCreateView(layoutInflater, viewGroup, bundle); } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { C14957gcv.e(view, ""); super.onViewCreated(view, bundle); Bundle arguments = getArguments(); C7681css c7681css = null; this.j = arguments != null ? (EW) arguments.getParcelable("com.scb.phone.view.fragment.prepaid.request.PrepaidRequestSuccessFragment.KEY_SUCCESS") : null; C7681css c7681css2 = this.successPresenter; if (c7681css2 == null) { C14957gcv.a(""); c7681css2 = null; } c7681css2.e((C7681css) this); final EW ew = this.j; if (ew != null) { C7681css c7681css3 = this.successPresenter; if (c7681css3 != null) { c7681css = c7681css3; } else { C14957gcv.a(""); } C14957gcv.e(ew, ""); ZI.IeS ieS = new ZI.IeS(ew) { // from class: o.cso private EW b; @Override // o.ZI.IeS public final void e(Object obj) { C7681css.c(this.b, (cYH) obj); } { this.b = ew; } }; if (c7681css.f != 0) { ieS.e(c7681css.f); } } } @Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH public final void d(EW ew) { C14957gcv.e(ew, ""); this.presenter.e(ew, (List) null); } @Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH public final void d(EW ew, boolean z, boolean z2) { if (ew != null) { AbstractC13163fSk subscribeOn = AbstractC13163fSk.fromCallable(new fKY(new PurchaseSuccessFragment.HBt(), new PurchaseSuccessFragment.PurchaseScreenshotDisplay(R.layout.2131560122, ew.d(String.valueOf(Calendar.getInstance().getTimeInMillis())), ew, z, this.componentFactory, z2), getContext())).observeOn(fRR.e()).subscribeOn(C13417fZt.b()); final HBt hBt = new HBt(this, z); fSQ fsq = new fSQ(hBt) { // from class: o.ftZ private InterfaceC14894gbR b; @Override // o.fSQ public final void c(Object obj) { PrepaidRequestSuccessFragment.a(this.b, obj); } { this.b = hBt; } }; final IeS ieS = new IeS(this); ((PurchaseSuccessFragment) this).c = subscribeOn.subscribe(fsq, new fSQ(ieS) { // from class: o.fuj private InterfaceC14894gbR e; @Override // o.fSQ public final void c(Object obj) { PrepaidRequestSuccessFragment.c(this.e, obj); } { this.e = ieS; } }); Dwh dwh = (Dwh) this.g.e(); if (getActivity() != null) { dwh.c(((BaseActivity) getActivity()).scbAnalytics, "planetscb_request_slip_screen"); } } } /* loaded from: classes5.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private boolean b; private PrepaidRequestSuccessFragment e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Uri uri) { this.e.b(uri.toString(), this.b); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(PrepaidRequestSuccessFragment prepaidRequestSuccessFragment, boolean z) { super(1); this.e = prepaidRequestSuccessFragment; this.b = z; } } /* loaded from: classes5.dex */ static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private PrepaidRequestSuccessFragment e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { this.e.o(); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(PrepaidRequestSuccessFragment prepaidRequestSuccessFragment) { super(1); this.e = prepaidRequestSuccessFragment; } } @Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH public final void e() { Dwh dwh = (Dwh) this.g.e(); if (getActivity() != null) { dwh.c(((BaseActivity) getActivity()).scbAnalytics, "planetscb_return_account_summary_request"); } super.e(); } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public final void onDestroyView() { C7681css c7681css = this.successPresenter; if (c7681css == null) { C14957gcv.a(""); c7681css = null; } c7681css.w_(); super.onDestroyView(); } /* loaded from: classes5.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN { public static final RVV d = new RVV(); @Override // o.InterfaceC14890gbN public final /* synthetic */ Dwh invoke() { return new Dwh(); } RVV() { super(0); } } public static /* synthetic */ void a(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); interfaceC14894gbR.invoke(obj); } public static /* synthetic */ void c(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); interfaceC14894gbR.invoke(obj); } }