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

254 lines
8.1 KiB
Java

package com.scb.phone.view.fragment.debitcard;
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 com.scb.phone.R;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.PurchaseSuccessFragment;
import com.scb.phone.view.fragment.debitcard.DebitCardSuccessfulActivationFragment;
import java.util.Calendar;
import java.util.List;
import o.AbstractC13163fSk;
import o.C13417fZt;
import o.C14823gO;
import o.C1519aGj;
import o.C1526aGq;
import o.EO;
import o.EW;
import o.InterfaceC13391fZD;
import o.InterfaceC9107ddV;
import o.QI;
import o.ZI;
import o.fKR;
import o.fKY;
import o.fRR;
import o.fSL;
import o.fSQ;
import o.iRl;
/* loaded from: classes5.dex */
public class DebitCardSuccessfulActivationFragment extends Hilt_DebitCardSuccessfulActivationFragment implements InterfaceC9107ddV {
@InterfaceC13391fZD
public C1519aGj debitCardSuccessfulActivationPresenter;
@BindView
TextView tvRemark;
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment
public final int m() {
return R.layout.2131559513;
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, com.scb.phone.view.fragment.ScreenShotFragment
public final /* synthetic */ void d(EO eo, boolean z, boolean z2) {
C1519aGj c1519aGj = this.debitCardSuccessfulActivationPresenter;
C1526aGq c1526aGq = new C1526aGq(c1519aGj, z, z2);
if (c1519aGj.f != 0) {
c1526aGq.e(c1519aGj.f);
}
}
public static DebitCardSuccessfulActivationFragment f() {
return new DebitCardSuccessfulActivationFragment();
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
((BaseFragment) this).a = ButterKnife.c(this, onCreateView);
this.debitCardSuccessfulActivationPresenter.e((C1519aGj) this);
final C1519aGj c1519aGj = this.debitCardSuccessfulActivationPresenter;
c1519aGj.d.d(AbstractC13163fSk.zip(c1519aGj.d.b.c(), c1519aGj.e.b.e(), new fSL(c1519aGj) { // from class: o.aGm
private C1519aGj b;
@Override // o.fSL
public final Object e(Object obj, Object obj2) {
return C1519aGj.c(this.b, (Gfp) obj, (KYO) obj2);
}
{
this.b = c1519aGj;
}
}), new fSQ(c1519aGj) { // from class: o.aGl
private C1519aGj c;
@Override // o.fSQ
public final void c(Object obj) {
C1519aGj.b(this.c, (EW) obj);
}
{
this.c = c1519aGj;
}
}, new fSQ(c1519aGj) { // from class: o.aGo
private C1519aGj b;
@Override // o.fSQ
public final void c(Object obj) {
C1519aGj.b(this.b, (Throwable) obj);
}
{
this.b = c1519aGj;
}
});
return onCreateView;
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH
public final void d(final EW ew) {
this.presenter.e(ew, (List<QI>) null);
final C1519aGj c1519aGj = this.debitCardSuccessfulActivationPresenter;
if (c1519aGj.a.equals("PHYSICAL")) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.aGs
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9107ddV) obj).i();
}
};
if (c1519aGj.f != 0) {
ieS.e(c1519aGj.f);
return;
}
return;
}
boolean z = ew != null;
ZI.IeS ieS2 = new ZI.IeS(c1519aGj, ew) { // from class: o.aGk
private EW a;
private C1519aGj e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1519aGj.a(this.e, this.a, (InterfaceC9107ddV) obj);
}
{
this.e = c1519aGj;
this.a = ew;
}
};
if (!z || c1519aGj.f == 0) {
return;
}
ieS2.e(c1519aGj.f);
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
this.debitCardSuccessfulActivationPresenter.w_();
super.onDestroy();
}
@Override // o.InterfaceC9107ddV
public final void g(String str) {
this.tvRemark.setVisibility(0);
this.tvRemark.setText(str);
}
@Override // o.InterfaceC9107ddV
public final void i() {
this.tvRemark.setVisibility(0);
this.tvRemark.setText(R.string.debit_card_activation_success_pin_remark);
}
@Override // o.InterfaceC9107ddV
public final void e(final boolean z, EW ew, boolean z2) {
((PurchaseSuccessFragment) this).c = AbstractC13163fSk.fromCallable(new fKY(new Sts(), new IeS(ew.d(String.valueOf(Calendar.getInstance().getTimeInMillis())), ew, z, this.componentFactory, z2), getContext())).observeOn(fRR.e()).subscribeOn(C13417fZt.b()).subscribe(new fSQ(this, z) { // from class: o.eQR
private boolean d;
private DebitCardSuccessfulActivationFragment e;
@Override // o.fSQ
public final void c(Object obj) {
this.e.b(((Uri) obj).toString(), this.d);
}
{
this.e = this;
this.d = z;
}
}, new fSQ(this) { // from class: o.eQQ
private DebitCardSuccessfulActivationFragment d;
@Override // o.fSQ
public final void c(Object obj) {
this.d.o();
}
{
this.d = this;
}
});
}
@Override // o.InterfaceC9107ddV
public final void g() {
k(false);
}
/* loaded from: classes5.dex */
public static class IeS extends PurchaseSuccessFragment.PurchaseScreenshotDisplay {
public IeS(String str, EW ew, boolean z, C14823gO c14823gO, boolean z2) {
super(R.layout.2131560150, str, ew, z, c14823gO, z2);
}
}
/* loaded from: classes5.dex */
public static class Sts extends fKR<PurchaseSuccessFragment.PurchaseScreenshotDisplay> {
@Override // o.fKR
public final /* synthetic */ void b(PurchaseSuccessFragment.PurchaseScreenshotDisplay purchaseScreenshotDisplay, View view) {
PurchaseSuccessFragment.PurchaseScreenshotDisplay purchaseScreenshotDisplay2 = purchaseScreenshotDisplay;
ButterKnife.c(purchaseScreenshotDisplay2, view);
purchaseScreenshotDisplay2.a(view);
}
}
@OnClick
public void onClickReturnButton() {
final C1519aGj c1519aGj = this.debitCardSuccessfulActivationPresenter;
if (c1519aGj.f != 0) {
c1519aGj.f.y();
}
iRl irl = c1519aGj.c;
irl.d(irl.e(), new fSQ(c1519aGj) { // from class: o.aGv
private C1519aGj a;
@Override // o.fSQ
public final void c(Object obj) {
C1519aGj.b(this.a);
}
{
this.a = c1519aGj;
}
}, new fSQ(c1519aGj) { // from class: o.aGr
private C1519aGj d;
@Override // o.fSQ
public final void c(Object obj) {
C1519aGj.a(this.d);
}
{
this.d = c1519aGj;
}
});
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH
public final void d(EW ew, boolean z, boolean z2) {
C1519aGj c1519aGj = this.debitCardSuccessfulActivationPresenter;
C1526aGq c1526aGq = new C1526aGq(c1519aGj, z, z2);
if (c1519aGj.f != 0) {
c1526aGq.e(c1519aGj.f);
}
}
}