what-the-bank/sources/com/scb/phone/view/fragment/debitcard/DebitCardRequestSuccessFrag...

322 lines
11 KiB
Java

package com.scb.phone.view.fragment.debitcard;
import android.content.DialogInterface;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
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.custom.common.CustomDialog;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.PurchaseSuccessFragment;
import com.scb.phone.view.fragment.debitcard.DebitCardRequestSuccessFragment;
import java.util.Calendar;
import o.AbstractC13163fSk;
import o.AbstractC14961gcz;
import o.C13417fZt;
import o.C14866gag;
import o.C14957gcv;
import o.EO;
import o.EW;
import o.InterfaceC13391fZD;
import o.InterfaceC14894gbR;
import o.InterfaceC6620cYM;
import o.ZI;
import o.aFM;
import o.fKY;
import o.fRR;
import o.fSQ;
import o.gjJ;
import o.pyT;
/* loaded from: classes5.dex */
public final class DebitCardRequestSuccessFragment extends Hilt_DebitCardRequestSuccessFragment implements InterfaceC6620cYM.RVV {
public static final Sts d = new Sts(0);
private ExtraRemarkViewHolder j;
@InterfaceC13391fZD
public aFM successPresenter;
/* loaded from: classes5.dex */
public final class ExtraRemarkViewHolder_ViewBinding implements Unbinder {
private ExtraRemarkViewHolder b;
public ExtraRemarkViewHolder_ViewBinding(ExtraRemarkViewHolder extraRemarkViewHolder, View view) {
this.b = extraRemarkViewHolder;
extraRemarkViewHolder.tvRemarkExtra = (TextView) pyT.e(view, R.id.tv_remark_extra, "field 'tvRemarkExtra'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ExtraRemarkViewHolder extraRemarkViewHolder = this.b;
if (extraRemarkViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
extraRemarkViewHolder.tvRemarkExtra = null;
}
}
@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);
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
View inflate = LayoutInflater.from(getContext()).inflate(R.layout.2131560127, (ViewGroup) this.extraContainer, true);
C14957gcv.c(inflate, "");
this.j = new ExtraRemarkViewHolder(this, inflate);
aFM afm = this.successPresenter;
if (afm == null) {
C14957gcv.a("");
afm = null;
}
afm.e((aFM) this);
return onCreateView;
}
/* JADX WARN: Removed duplicated region for block: B:10:0x001e */
/* JADX WARN: Removed duplicated region for block: B:14:0x0020 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0015 */
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onActivityCreated(android.os.Bundle r5) {
/*
r4 = this;
super.onActivityCreated(r5)
com.scb.phone.view.fragment.debitcard.DebitCardRequestSuccessFragment$ExtraRemarkViewHolder r5 = r4.j
java.lang.String r0 = ""
r1 = 0
if (r5 == 0) goto L12
android.widget.TextView r5 = r5.tvRemarkExtra
if (r5 == 0) goto Lf
goto L13
Lf:
o.C14957gcv.a(r0)
L12:
r5 = r1
L13:
if (r5 == 0) goto L1a
r2 = 8
r5.setVisibility(r2)
L1a:
o.aFM r5 = r4.successPresenter
if (r5 == 0) goto L20
r1 = r5
goto L23
L20:
o.C14957gcv.a(r0)
L23:
o.ntG r5 = r1.e
o.fSk r5 = r5.a()
o.fSq r5 = (o.InterfaceC13169fSq) r5
o.CWq r0 = r1.a
o.fSk r0 = r0.d()
o.fSq r0 = (o.InterfaceC13169fSq) r0
o.aFM$IeS r2 = new o.aFM$IeS
r2.<init>(r1)
o.aFR r3 = new o.aFR
o.gcb r2 = (o.InterfaceC14937gcb) r2
r3.<init>(r2)
o.fSk r5 = o.AbstractC13163fSk.zip(r5, r0, r3)
o.aFM$RVV r0 = new o.aFM$RVV
r0.<init>(r1)
o.fSv r0 = (o.InterfaceC13174fSv) r0
r5.subscribe(r0)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.debitcard.DebitCardRequestSuccessFragment.onActivityCreated(android.os.Bundle):void");
}
@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 IeS ieS = new IeS(this, z);
fSQ fsq = new fSQ(ieS) { // from class: o.eQN
private InterfaceC14894gbR a;
@Override // o.fSQ
public final void c(Object obj) {
DebitCardRequestSuccessFragment.e(this.a, obj);
}
{
this.a = ieS;
}
};
final RVV rvv = new RVV(this);
((PurchaseSuccessFragment) this).c = subscribeOn.subscribe(fsq, new fSQ(rvv) { // from class: o.eQP
private InterfaceC14894gbR d;
@Override // o.fSQ
public final void c(Object obj) {
DebitCardRequestSuccessFragment.d(this.d, obj);
}
{
this.d = rvv;
}
});
}
}
/* loaded from: classes5.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Uri, C14866gag> {
private boolean b;
private DebitCardRequestSuccessFragment d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Uri uri) {
this.d.b(uri.toString(), this.b);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(DebitCardRequestSuccessFragment debitCardRequestSuccessFragment, boolean z) {
super(1);
this.d = debitCardRequestSuccessFragment;
this.b = z;
}
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private DebitCardRequestSuccessFragment 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) */
RVV(DebitCardRequestSuccessFragment debitCardRequestSuccessFragment) {
super(1);
this.c = debitCardRequestSuccessFragment;
}
}
@Override // o.InterfaceC6620cYM.RVV
public final void h(String str) {
C14957gcv.e(str, "");
ExtraRemarkViewHolder extraRemarkViewHolder = this.j;
if (extraRemarkViewHolder != null) {
TextView textView = extraRemarkViewHolder.tvRemarkExtra;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
if (textView != null) {
textView.setVisibility(0);
textView.setText(str);
}
}
}
@Override // o.InterfaceC6620cYM.RVV
public final void c(String str, String str2) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
CustomDialog b = CustomDialog.b(getContext());
if (gjJ.a(str)) {
b.mTitleTextView.setVisibility(0);
b.mTitleTextView.setText(str);
}
if (gjJ.a(str2)) {
b.mTextTextView.setVisibility(0);
b.mTextTextView.setText(str2);
}
b.setCanceledOnTouchOutside(true);
b.setCancelable(true);
b.aoT_(R.string.ok, new DialogInterface.OnClickListener() { // from class: o.eQO
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}).show();
}
@Override // o.InterfaceC6620cYM.RVV
public final void f() {
k(false);
}
/* loaded from: classes5.dex */
public final class ExtraRemarkViewHolder {
private DebitCardRequestSuccessFragment d;
@BindView
public TextView tvRemarkExtra;
public ExtraRemarkViewHolder(DebitCardRequestSuccessFragment debitCardRequestSuccessFragment, View view) {
C14957gcv.e(view, "");
this.d = debitCardRequestSuccessFragment;
DebitCardRequestSuccessFragment.a(debitCardRequestSuccessFragment, this, view);
}
}
@OnClick
public final void onClickReturnButton() {
final aFM afm = this.successPresenter;
if (afm == null) {
C14957gcv.a("");
afm = null;
}
if (afm.f != 0) {
afm.f.y();
}
ZI.IeS ieS = new ZI.IeS(afm) { // from class: o.aFT
private aFM e;
@Override // o.ZI.IeS
public final void e(Object obj) {
aFM.a(this.e, (InterfaceC6620cYM.RVV) obj);
}
{
this.e = afm;
}
};
if (afm.f != 0) {
ieS.e(afm.f);
}
}
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
public static /* synthetic */ void d(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
public static /* synthetic */ void e(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
public static final /* synthetic */ void a(DebitCardRequestSuccessFragment debitCardRequestSuccessFragment, Object obj, View view) {
((BaseFragment) debitCardRequestSuccessFragment).a = ButterKnife.c(obj, view);
}
}