package com.scb.phone.view.fragment.ccsof; import android.net.Uri; import android.os.Bundle; import android.view.View; 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.ccsof.CcSofSuccessFragment; import java.util.Calendar; import o.AbstractC13163fSk; import o.AbstractC14961gcz; import o.C13417fZt; import o.C14866gag; import o.C14957gcv; import o.C2252abB; import o.EO; import o.EW; import o.InterfaceC13393fZL; import o.InterfaceC14890gbN; import o.InterfaceC14894gbR; import o.UXP; import o.cYH; import o.fKY; import o.fRR; import o.fSQ; import o.fZZ; /* loaded from: classes5.dex */ public final class CcSofSuccessFragment extends Hilt_CcSofSuccessFragment implements cYH { public static final Sts d = new Sts(0); private final InterfaceC13393fZL g; private UXP h; @Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH public final void d(EW ew) { } @Override // com.scb.phone.view.fragment.ScreenShotFragment /* renamed from: a */ public final /* synthetic */ void d(EO eo, boolean z, boolean z2) { EW ew = (EW) eo; if (ew != null) { PurchaseSuccessFragment.HBt hBt = new PurchaseSuccessFragment.HBt(this.themesSlipPresenter); PurchaseSuccessFragment.PurchaseScreenshotDisplay purchaseScreenshotDisplay = new PurchaseSuccessFragment.PurchaseScreenshotDisplay(R.layout.2131560122, ew.d(String.valueOf(Calendar.getInstance().getTimeInMillis())), ew, z, this.componentFactory, z2); purchaseScreenshotDisplay.c = true; AbstractC13163fSk subscribeOn = AbstractC13163fSk.fromCallable(new fKY(hBt, purchaseScreenshotDisplay, getContext())).observeOn(fRR.e()).subscribeOn(C13417fZt.b()); final LWm lWm = new LWm(this, z); fSQ fsq = new fSQ(lWm) { // from class: o.eMm private InterfaceC14894gbR a; @Override // o.fSQ public final void c(Object obj) { CcSofSuccessFragment.a(this.a, obj); } { this.a = lWm; } }; final RVV rvv = new RVV(this); ((PurchaseSuccessFragment) this).c = subscribeOn.subscribe(fsq, new fSQ(rvv) { // from class: o.eMo private InterfaceC14894gbR a; @Override // o.fSQ public final void c(Object obj) { CcSofSuccessFragment.b(this.a, obj); } { this.a = rvv; } }); } } public CcSofSuccessFragment() { IeS ieS = new IeS(this); C14957gcv.e(ieS, ""); this.g = new fZZ(ieS); } /* loaded from: classes5.dex */ static final class IeS extends AbstractC14961gcz implements InterfaceC14890gbN { private CcSofSuccessFragment d; @Override // o.InterfaceC14890gbN public final /* synthetic */ String invoke() { Bundle arguments = this.d.getArguments(); if (arguments != null) { return arguments.getString("EXTRA_CC_SOF_KEY_SUCCESS_PARTNER_SUBTYPE_CODE"); } return null; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(CcSofSuccessFragment ccSofSuccessFragment) { super(0); this.d = ccSofSuccessFragment; } } /* loaded from: classes5.dex */ public static final class Sts { private Sts() { } public /* synthetic */ Sts(byte b) { this(); } } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { C14957gcv.e(view, ""); super.onViewCreated(view, bundle); this.h = new UXP(); l(); this.presenter.e((C2252abB) this); Bundle arguments = getArguments(); UXP uxp = null; EW ew = arguments != null ? (EW) arguments.getParcelable("EXTRA_CC_SOF_KEY_SUCCESS") : null; Bundle arguments2 = getArguments(); this.presenter.e(ew, arguments2 != null ? arguments2.getParcelableArrayList("EXTRA_ITEM_DEEP_LINK_BUTTON_DISPLAY_LIST") : null); UXP uxp2 = this.h; if (uxp2 == null) { C14957gcv.a(""); uxp2 = null; } uxp2.d("source", "deeplink"); UXP uxp3 = this.h; if (uxp3 == null) { C14957gcv.a(""); uxp3 = null; } uxp3.d("subtype", (String) this.g.e()); UXP uxp4 = this.h; if (uxp4 == null) { C14957gcv.a(""); } else { uxp = uxp4; } UXP uxp5 = uxp; if (getActivity() != null) { uxp5.c(((BaseActivity) getActivity()).scbAnalytics, "partner_payment_slip"); } } /* loaded from: classes5.dex */ static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR { private boolean d; private CcSofSuccessFragment e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Uri uri) { this.e.b(uri.toString(), this.d); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(CcSofSuccessFragment ccSofSuccessFragment, boolean z) { super(1); this.e = ccSofSuccessFragment; this.d = z; } } /* loaded from: classes5.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private CcSofSuccessFragment d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { this.d.o(); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(CcSofSuccessFragment ccSofSuccessFragment) { super(1); this.d = ccSofSuccessFragment; } } @Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH public final void e() { super.e(); } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public final void onDestroyView() { this.presenter.w_(); super.onDestroyView(); } @Override // com.scb.phone.view.fragment.PurchaseSuccessFragment public final void onShareSlipButtonClick() { super.onShareSlipButtonClick(); UXP uxp = this.h; UXP uxp2 = null; if (uxp == null) { C14957gcv.a(""); uxp = null; } uxp.d("source", "deeplink"); UXP uxp3 = this.h; if (uxp3 == null) { C14957gcv.a(""); uxp3 = null; } uxp3.d("subtype", (String) this.g.e()); UXP uxp4 = this.h; if (uxp4 == null) { C14957gcv.a(""); } else { uxp2 = uxp4; } UXP uxp5 = uxp2; if (getActivity() != null) { uxp5.c(((BaseActivity) getActivity()).scbAnalytics, "partner_payment_share_slip_action"); } } public static /* synthetic */ void a(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); interfaceC14894gbR.invoke(obj); } public static /* synthetic */ void b(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); interfaceC14894gbR.invoke(obj); } }