what-the-bank/sources/com/scb/phone/view/fragment/prepaid/activation/PrepaidActivationSuccessFra...

414 lines
13 KiB
Java

package com.scb.phone.view.fragment.prepaid.activation;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.PurchaseSuccessFragment;
import com.scb.phone.view.fragment.prepaid.activation.PrepaidActivationSuccessFragment;
import java.util.Calendar;
import java.util.List;
import o.AbstractC13163fSk;
import o.AbstractC14961gcz;
import o.C0690Mh;
import o.C13417fZt;
import o.C14823gO;
import o.C14866gag;
import o.C14957gcv;
import o.C7624cro;
import o.C7625crp;
import o.Dwh;
import o.EO;
import o.EW;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC14894gbR;
import o.InterfaceC9515dlG;
import o.QI;
import o.ZI;
import o.fKR;
import o.fKY;
import o.fRR;
import o.fSQ;
import o.fZZ;
import o.iRl;
import o.pyT;
/* loaded from: classes5.dex */
public final class PrepaidActivationSuccessFragment extends Hilt_PrepaidActivationSuccessFragment implements InterfaceC9515dlG.LWm {
public static final IeS d = new IeS(0);
private final InterfaceC13393fZL h;
private EW i;
@InterfaceC13391fZD
public C7624cro successPresenter;
@BindView
public TextView tvRemark;
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment
public final int m() {
return R.layout.2131559513;
}
/* loaded from: classes5.dex */
public final class SuccessScreenshotBinder_ViewBinding implements Unbinder {
private SuccessScreenshotBinder d;
public SuccessScreenshotBinder_ViewBinding(SuccessScreenshotBinder successScreenshotBinder, View view) {
this.d = successScreenshotBinder;
successScreenshotBinder.tvActivationTitle = (TextView) pyT.e(view, R.id.tvActivationTitle, "field 'tvActivationTitle'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
SuccessScreenshotBinder successScreenshotBinder = this.d;
if (successScreenshotBinder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
successScreenshotBinder.tvActivationTitle = null;
}
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, com.scb.phone.view.fragment.ScreenShotFragment
public final /* synthetic */ void d(EO eo, boolean z, boolean z2) {
EW ew = (EW) eo;
C14957gcv.e(ew, "");
C7624cro c7624cro = this.successPresenter;
if (c7624cro == null) {
C14957gcv.a("");
c7624cro = null;
}
C14957gcv.e(ew, "");
C7625crp c7625crp = new C7625crp(z, c7624cro, ew, z2);
if (c7624cro.f != 0) {
c7625crp.e(c7624cro.f);
}
}
public PrepaidActivationSuccessFragment() {
HBt hBt = HBt.c;
C14957gcv.e(hBt, "");
this.h = new fZZ(hBt);
}
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
((BaseFragment) this).a = ButterKnife.c(this, view);
Bundle arguments = getArguments();
C7624cro c7624cro = null;
this.i = arguments != null ? (EW) arguments.getParcelable("com.scb.phone.view.fragment.prepaid.activation.PrepaidActivationSuccessFragment.KEY_SUCCESS") : null;
C7624cro c7624cro2 = this.successPresenter;
if (c7624cro2 == null) {
C14957gcv.a("");
c7624cro2 = null;
}
c7624cro2.e((C7624cro) this);
final EW ew = this.i;
if (ew != null) {
C7624cro c7624cro3 = this.successPresenter;
if (c7624cro3 != null) {
c7624cro = c7624cro3;
} else {
C14957gcv.a("");
}
C14957gcv.e(ew, "");
ZI.IeS ieS = new ZI.IeS(ew) { // from class: o.crw
private EW b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7624cro.c(this.b, (InterfaceC9515dlG.LWm) obj);
}
{
this.b = ew;
}
};
if (c7624cro.f != 0) {
ieS.e(c7624cro.f);
}
String str = ew.e.d;
if (str != null && str.length() != 0) {
c7624cro.d(c7624cro.j.c(ew.e.d, ew.e.b, C0690Mh.IeS.JUST_DISMISS));
return;
}
ZI.IeS ieS2 = new ZI.IeS(ew) { // from class: o.crv
private EW a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7624cro.a(this.a, (InterfaceC9515dlG.LWm) obj);
}
{
this.a = ew;
}
};
if (c7624cro.f != 0) {
ieS2.e(c7624cro.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 // o.InterfaceC9515dlG.LWm
public final void h(String str) {
C14957gcv.e(str, "");
TextView textView = this.tvRemark;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setVisibility(0);
TextView textView3 = this.tvRemark;
if (textView3 != null) {
textView2 = textView3;
} else {
C14957gcv.a("");
}
textView2.setText(str);
}
@Override // o.InterfaceC9515dlG.LWm
public final void f() {
Dwh dwh = (Dwh) this.h.e();
if (getActivity() != null) {
dwh.c(((BaseActivity) getActivity()).scbAnalytics, "planetscb_return_summary_activate");
}
k(false);
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH
public final void e() {
Dwh dwh = (Dwh) this.h.e();
if (getActivity() != null) {
dwh.c(((BaseActivity) getActivity()).scbAnalytics, "planetscb_return_summary_activate");
}
super.e();
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH
public final void d(EW ew, boolean z, boolean z2) {
C14957gcv.e(ew, "");
C7624cro c7624cro = this.successPresenter;
if (c7624cro == null) {
C14957gcv.a("");
c7624cro = null;
}
C14957gcv.e(ew, "");
C7625crp c7625crp = new C7625crp(z, c7624cro, ew, z2);
if (c7624cro.f != 0) {
c7625crp.e(c7624cro.f);
}
}
@Override // o.InterfaceC9515dlG.LWm
public final void e(boolean z, EW ew, boolean z2) {
C14957gcv.e(ew, "");
SuccessScreenshotBinder successScreenshotBinder = new SuccessScreenshotBinder();
String d2 = ew.d(String.valueOf(Calendar.getInstance().getTimeInMillis()));
C14957gcv.c((Object) d2, "");
C14823gO c14823gO = this.componentFactory;
C14957gcv.c(c14823gO, "");
AbstractC13163fSk subscribeOn = AbstractC13163fSk.fromCallable(new fKY(successScreenshotBinder, new RVV(d2, ew, z, c14823gO, z2), getContext())).observeOn(fRR.e()).subscribeOn(C13417fZt.b());
final Sts sts = new Sts(this, z);
fSQ fsq = new fSQ(sts) { // from class: o.ftK
private InterfaceC14894gbR a;
@Override // o.fSQ
public final void c(Object obj) {
PrepaidActivationSuccessFragment.c(this.a, obj);
}
{
this.a = sts;
}
};
final LWm lWm = new LWm(this);
((PurchaseSuccessFragment) this).c = subscribeOn.subscribe(fsq, new fSQ(lWm) { // from class: o.ftM
private InterfaceC14894gbR b;
@Override // o.fSQ
public final void c(Object obj) {
PrepaidActivationSuccessFragment.d(this.b, obj);
}
{
this.b = lWm;
}
});
Dwh dwh = (Dwh) this.h.e();
if (getActivity() != null) {
dwh.c(((BaseActivity) getActivity()).scbAnalytics, "planetscb_activate_slip_screen");
}
}
/* loaded from: classes5.dex */
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private PrepaidActivationSuccessFragment 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) */
LWm(PrepaidActivationSuccessFragment prepaidActivationSuccessFragment) {
super(1);
this.e = prepaidActivationSuccessFragment;
}
}
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Uri, C14866gag> {
private PrepaidActivationSuccessFragment c;
private boolean e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Uri uri) {
this.c.b(uri.toString(), this.e);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(PrepaidActivationSuccessFragment prepaidActivationSuccessFragment, boolean z) {
super(1);
this.c = prepaidActivationSuccessFragment;
this.e = z;
}
}
@OnClick
public final void onClickReturnButton() {
final C7624cro c7624cro = this.successPresenter;
if (c7624cro == null) {
C14957gcv.a("");
c7624cro = null;
}
if (c7624cro.f != 0) {
c7624cro.f.y();
}
iRl irl = c7624cro.e;
irl.d(irl.e(), new fSQ(c7624cro) { // from class: o.crt
private C7624cro c;
@Override // o.fSQ
public final void c(Object obj) {
C7624cro.c(this.c);
}
{
this.c = c7624cro;
}
}, new fSQ(c7624cro) { // from class: o.crx
private C7624cro d;
@Override // o.fSQ
public final void c(Object obj) {
C7624cro.b(this.d);
}
{
this.d = c7624cro;
}
});
}
/* loaded from: classes5.dex */
public static final class RVV extends PurchaseSuccessFragment.PurchaseScreenshotDisplay {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(String str, EW ew, boolean z, C14823gO c14823gO, boolean z2) {
super(R.layout.2131560150, str, ew, z, c14823gO, z2);
C14957gcv.e(str, "");
C14957gcv.e(c14823gO, "");
}
}
/* loaded from: classes5.dex */
public static final class SuccessScreenshotBinder extends fKR<PurchaseSuccessFragment.PurchaseScreenshotDisplay> {
@BindView
public TextView tvActivationTitle;
@Override // o.fKR
public final /* synthetic */ void b(PurchaseSuccessFragment.PurchaseScreenshotDisplay purchaseScreenshotDisplay, View view) {
PurchaseSuccessFragment.PurchaseScreenshotDisplay purchaseScreenshotDisplay2 = purchaseScreenshotDisplay;
C14957gcv.e(purchaseScreenshotDisplay2, "");
C14957gcv.e(view, "");
ButterKnife.c(purchaseScreenshotDisplay2, view);
ButterKnife.c(this, view);
purchaseScreenshotDisplay2.a(view);
TextView textView = this.tvActivationTitle;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(R.string.prepaid_activation_slip_sub_title);
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
C7624cro c7624cro = this.successPresenter;
if (c7624cro == null) {
C14957gcv.a("");
c7624cro = null;
}
c7624cro.w_();
super.onDestroyView();
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<Dwh> {
public static final HBt c = new HBt();
@Override // o.InterfaceC14890gbN
public final /* synthetic */ Dwh invoke() {
return new Dwh();
}
HBt() {
super(0);
}
}
public static /* synthetic */ void d(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);
}
}