244 lines
8.1 KiB
Java
244 lines
8.1 KiB
Java
|
package com.scb.phone.view.fragment.prepaid.cashout;
|
||
|
|
||
|
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.cashout.PrepaidCashOutSuccessFragment;
|
||
|
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.C7607crX;
|
||
|
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 PrepaidCashOutSuccessFragment extends Hilt_PrepaidCashOutSuccessFragment implements cYH {
|
||
|
public static final HBt d = new HBt(0);
|
||
|
private EW g;
|
||
|
private final InterfaceC13393fZL i;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C7607crX 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 PrepaidCashOutSuccessFragment() {
|
||
|
RVV rvv = RVV.b;
|
||
|
C14957gcv.e(rvv, "");
|
||
|
this.i = new fZZ(rvv);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class HBt {
|
||
|
private HBt() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ HBt(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, "");
|
||
|
C7607crX c7607crX = this.successPresenter;
|
||
|
if (c7607crX == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7607crX = null;
|
||
|
}
|
||
|
c7607crX.e((C7607crX) 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();
|
||
|
C7607crX c7607crX = null;
|
||
|
this.g = arguments != null ? (EW) arguments.getParcelable("PREPAID_CASH_OUT_KEY_SUCCESS") : null;
|
||
|
C7607crX c7607crX2 = this.successPresenter;
|
||
|
if (c7607crX2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7607crX2 = null;
|
||
|
}
|
||
|
c7607crX2.e((C7607crX) this);
|
||
|
final EW ew = this.g;
|
||
|
if (ew != null) {
|
||
|
C7607crX c7607crX3 = this.successPresenter;
|
||
|
if (c7607crX3 != null) {
|
||
|
c7607crX = c7607crX3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
C14957gcv.e(ew, "");
|
||
|
ZI.IeS ieS = new ZI.IeS(ew) { // from class: o.crV
|
||
|
private EW d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C7607crX.d(this.d, (cYH) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = ew;
|
||
|
}
|
||
|
};
|
||
|
if (c7607crX.f != 0) {
|
||
|
ieS.e(c7607crX.f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH
|
||
|
public final void d(EW ew) {
|
||
|
C14957gcv.e(ew, "");
|
||
|
this.presenter.e(ew, (List<QI>) null);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH
|
||
|
public final void d(EW ew, boolean z, boolean z2) {
|
||
|
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;
|
||
|
C14866gag c14866gag = C14866gag.c;
|
||
|
AbstractC13163fSk subscribeOn = AbstractC13163fSk.fromCallable(new fKY(hBt, purchaseScreenshotDisplay, getContext())).observeOn(fRR.e()).subscribeOn(C13417fZt.b());
|
||
|
final Sts sts = new Sts(this, z);
|
||
|
fSQ fsq = new fSQ(sts) { // from class: o.ftR
|
||
|
private InterfaceC14894gbR c;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
PrepaidCashOutSuccessFragment.d(this.c, obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = sts;
|
||
|
}
|
||
|
};
|
||
|
final LWm lWm = new LWm(this);
|
||
|
((PurchaseSuccessFragment) this).c = subscribeOn.subscribe(fsq, new fSQ(lWm) { // from class: o.ftT
|
||
|
private InterfaceC14894gbR c;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
PrepaidCashOutSuccessFragment.c(this.c, obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = lWm;
|
||
|
}
|
||
|
});
|
||
|
Dwh dwh = (Dwh) this.i.e();
|
||
|
if (getActivity() != null) {
|
||
|
dwh.c(((BaseActivity) getActivity()).scbAnalytics, "planetscb_cashout_slip_screen");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
|
||
|
private PrepaidCashOutSuccessFragment c;
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ C14866gag invoke(Throwable th) {
|
||
|
this.c.o();
|
||
|
return C14866gag.c;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
LWm(PrepaidCashOutSuccessFragment prepaidCashOutSuccessFragment) {
|
||
|
super(1);
|
||
|
this.c = prepaidCashOutSuccessFragment;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Uri, C14866gag> {
|
||
|
private boolean a;
|
||
|
private PrepaidCashOutSuccessFragment c;
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ C14866gag invoke(Uri uri) {
|
||
|
this.c.b(uri.toString(), this.a);
|
||
|
return C14866gag.c;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
Sts(PrepaidCashOutSuccessFragment prepaidCashOutSuccessFragment, boolean z) {
|
||
|
super(1);
|
||
|
this.c = prepaidCashOutSuccessFragment;
|
||
|
this.a = z;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH
|
||
|
public final void e() {
|
||
|
Dwh dwh = (Dwh) this.i.e();
|
||
|
if (getActivity() != null) {
|
||
|
dwh.c(((BaseActivity) getActivity()).scbAnalytics, "planetscb_cashout_return");
|
||
|
}
|
||
|
super.e();
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroyView() {
|
||
|
C7607crX c7607crX = this.successPresenter;
|
||
|
if (c7607crX == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7607crX = null;
|
||
|
}
|
||
|
c7607crX.w_();
|
||
|
super.onDestroyView();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<Dwh> {
|
||
|
public static final RVV b = new RVV();
|
||
|
|
||
|
@Override // o.InterfaceC14890gbN
|
||
|
public final /* synthetic */ Dwh invoke() {
|
||
|
return new Dwh();
|
||
|
}
|
||
|
|
||
|
RVV() {
|
||
|
super(0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
}
|