what-the-bank/sources/com/scb/phone/view/fragment/ccsof/CcSofCreditCardOnlyFragment...

362 lines
12 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.ccsof;
import android.content.Intent;
import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import com.scb.phone.R;
import com.scb.phone.view.fragment.ccsof.CcSofCreditCardOnlyInputFragment;
import com.scb.phone.view.fragment.transferandpay.cardlessatm.CardlessCreditCardSelectorFragment;
import java.util.ArrayList;
import o.AbstractC13482fbE;
import o.C0367Fb;
import o.C14957gcv;
import o.C3331avY;
import o.C3402awq;
import o.C3403awr;
import o.HR;
import o.InterfaceC13391fZD;
import o.InterfaceC9114ddc;
import o.YY;
import o.ZI;
import o.fFO;
/* loaded from: classes5.dex */
public final class CcSofCreditCardOnlyFragment extends Hilt_CcSofCreditCardOnlyFragment implements InterfaceC9114ddc.HBt, fFO {
public static final LWm c = new LWm(0);
private CardlessCreditCardSelectorFragment d;
private CcSofCreditCardOnlyInputFragment g;
@BindView
public FrameLayout mInputContainer;
@BindView
public RelativeLayout mLayoutError;
@InterfaceC13391fZD
public C3403awr mPresenter;
@BindView
public FrameLayout mSourceOfFundContainer;
@BindView
public TextView mSourceOfFundEmptyStateTextView;
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public static CcSofCreditCardOnlyFragment a(HR hr, String str, YY yy) {
C14957gcv.e(hr, "");
C14957gcv.e(yy, "");
CcSofCreditCardOnlyFragment ccSofCreditCardOnlyFragment = new CcSofCreditCardOnlyFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("EXTRA_PURCHASE_SOURCE_FUND_DISPLAY", hr);
bundle.putString("EXTRA_CALLBACK_URL", str);
bundle.putInt("com.scb.phone.EXTRA_PAYMENT_FLOW_TYPE", yy.ordinal());
ccSofCreditCardOnlyFragment.setArguments(bundle);
return ccSofCreditCardOnlyFragment;
}
public /* synthetic */ LWm(byte b) {
this();
}
}
/* JADX WARN: Code restructure failed: missing block: B:19:0x0083, code lost:
if (r2 == null) goto L26;
*/
@Override // androidx.fragment.app.Fragment
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final android.view.View onCreateView(android.view.LayoutInflater r6, android.view.ViewGroup r7, android.os.Bundle r8) {
/*
r5 = this;
java.lang.String r8 = ""
o.C14957gcv.e(r6, r8)
r0 = 2131559493(0x7f0d0445, float:1.8744332E38)
r1 = 0
android.view.View r6 = r6.inflate(r0, r7, r1)
butterknife.ButterKnife.c(r5, r6)
android.widget.TextView r7 = r5.mSourceOfFundEmptyStateTextView
r0 = 0
if (r7 == 0) goto L16
goto L1a
L16:
o.C14957gcv.a(r8)
r7 = r0
L1a:
r1 = 2131952627(0x7f1303f3, float:1.9541702E38)
java.lang.String r1 = r5.getString(r1)
r2 = 2131952628(0x7f1303f4, float:1.9541704E38)
java.lang.String r2 = r5.getString(r2)
java.lang.Object[] r1 = new java.lang.Object[]{r1, r2}
r2 = 2131953740(0x7f13084c, float:1.954396E38)
java.lang.String r1 = r5.getString(r2, r1)
java.lang.CharSequence r1 = (java.lang.CharSequence) r1
r7.setText(r1)
o.awr r7 = r5.mPresenter
if (r7 == 0) goto L3d
goto L41
L3d:
o.C14957gcv.a(r8)
r7 = r0
L41:
r1 = r5
o.cYp r1 = (o.InterfaceC6638cYp) r1
r7.e(r1)
android.os.Bundle r7 = r5.getArguments()
if (r7 == 0) goto L56
java.lang.String r1 = "EXTRA_PURCHASE_SOURCE_FUND_DISPLAY"
android.os.Parcelable r7 = r7.getParcelable(r1)
o.HR r7 = (o.HR) r7
goto L57
L56:
r7 = r0
L57:
android.os.Bundle r1 = r5.getArguments()
if (r1 == 0) goto L64
java.lang.String r2 = "EXTRA_CALLBACK_URL"
java.lang.String r1 = r1.getString(r2)
goto L65
L64:
r1 = r0
L65:
android.os.Bundle r2 = r5.getArguments()
if (r2 == 0) goto L85
o.C14957gcv.c(r2, r8)
java.lang.String r3 = "com.scb.phone.EXTRA_PAYMENT_FLOW_TYPE"
r4 = -1
int r2 = r2.getInt(r3, r4)
if (r2 < 0) goto L80
o.YY[] r3 = o.YY.values()
r2 = r3[r2]
java.lang.Enum r2 = (java.lang.Enum) r2
goto L81
L80:
r2 = r0
L81:
o.YY r2 = (o.YY) r2
if (r2 != 0) goto L87
L85:
o.YY r2 = o.YY.NORMAL
L87:
if (r7 == 0) goto Lac
o.awr r3 = r5.mPresenter
if (r3 == 0) goto L8f
r0 = r3
goto L92
L8f:
o.C14957gcv.a(r8)
L92:
o.C14957gcv.e(r7, r8)
o.C14957gcv.e(r2, r8)
r0.b = r7
r0.a = r1
r0.e = r2
o.awq r7 = new o.awq
r7.<init>(r0)
T extends o.cYp r8 = r0.f
if (r8 == 0) goto Lac
T extends o.cYp r8 = r0.f
r7.e(r8)
Lac:
return r6
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.ccsof.CcSofCreditCardOnlyFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle):android.view.View");
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroy() {
C3403awr c3403awr = this.mPresenter;
if (c3403awr == null) {
C14957gcv.a("");
c3403awr = null;
}
c3403awr.w_();
super.onDestroy();
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onActivityResult(int i, int i2, Intent intent) {
super.onActivityResult(i, i2, intent);
if (i == 90 && i2 == -1) {
C3403awr c3403awr = this.mPresenter;
if (c3403awr == null) {
C14957gcv.a("");
c3403awr = null;
}
C3402awq c3402awq = new C3402awq(c3403awr);
if (c3403awr.f != 0) {
c3402awq.e(c3403awr.f);
}
}
}
@Override // o.InterfaceC9114ddc.HBt
public final void b(ArrayList<String> arrayList) {
C14957gcv.e(arrayList, "");
CardlessCreditCardSelectorFragment.LWm lWm = CardlessCreditCardSelectorFragment.c;
CardlessCreditCardSelectorFragment d = CardlessCreditCardSelectorFragment.LWm.d(arrayList, true);
this.d = d;
d.d = this;
AbstractC13482fbE a = getChildFragmentManager().a();
CardlessCreditCardSelectorFragment cardlessCreditCardSelectorFragment = this.d;
if (cardlessCreditCardSelectorFragment == null) {
C14957gcv.a("");
cardlessCreditCardSelectorFragment = null;
}
a.b(R.id.source_of_fund_container, cardlessCreditCardSelectorFragment, null, 2);
a.b();
}
@Override // o.InterfaceC9114ddc.HBt
public final void c(C0367Fb c0367Fb, HR hr, String str, YY yy) {
C14957gcv.e(hr, "");
C14957gcv.e(yy, "");
CcSofCreditCardOnlyInputFragment ccSofCreditCardOnlyInputFragment = this.g;
C3331avY c3331avY = null;
if (ccSofCreditCardOnlyInputFragment == null) {
CcSofCreditCardOnlyInputFragment.Sts sts = CcSofCreditCardOnlyInputFragment.c;
C14957gcv.e(hr, "");
C14957gcv.e(yy, "");
CcSofCreditCardOnlyInputFragment ccSofCreditCardOnlyInputFragment2 = new CcSofCreditCardOnlyInputFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("EXTRA_CC_SOURCE_OF_FUND_DISPLAY", hr);
bundle.putParcelable("EXTRA_CREDIT_CARD_DISPLAY", c0367Fb);
bundle.putString("EXTRA_CALLBACK_URL", str);
bundle.putInt("com.scb.phone.EXTRA_PAYMENT_FLOW_TYPE", yy.ordinal());
ccSofCreditCardOnlyInputFragment2.setArguments(bundle);
this.g = ccSofCreditCardOnlyInputFragment2;
AbstractC13482fbE a = getChildFragmentManager().a();
CcSofCreditCardOnlyInputFragment ccSofCreditCardOnlyInputFragment3 = this.g;
if (ccSofCreditCardOnlyInputFragment3 == null) {
C14957gcv.a("");
ccSofCreditCardOnlyInputFragment3 = null;
}
a.b(R.id.input_container, ccSofCreditCardOnlyInputFragment3, null, 2);
a.b();
return;
}
if (ccSofCreditCardOnlyInputFragment == null) {
C14957gcv.a("");
ccSofCreditCardOnlyInputFragment = null;
}
C14957gcv.e(hr, "");
C14957gcv.e(yy, "");
C3331avY c3331avY2 = ccSofCreditCardOnlyInputFragment.mPresenter;
if (c3331avY2 != null) {
c3331avY = c3331avY2;
} else {
C14957gcv.a("");
}
c3331avY.a(hr, c0367Fb, str, yy);
}
@Override // o.InterfaceC9114ddc.HBt
public final void d(boolean z) {
TextView textView = this.mSourceOfFundEmptyStateTextView;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(z ? 0 : 8);
}
@Override // o.InterfaceC9114ddc.HBt
public final void e(boolean z) {
RelativeLayout relativeLayout = this.mLayoutError;
if (relativeLayout == null) {
C14957gcv.a("");
relativeLayout = null;
}
RelativeLayout relativeLayout2 = relativeLayout;
C14957gcv.e(relativeLayout2, "");
relativeLayout2.setVisibility(z ? 0 : 8);
}
@Override // o.fFO
public final void e(C0367Fb c0367Fb) {
C14957gcv.e(c0367Fb, "");
final C3403awr c3403awr = this.mPresenter;
if (c3403awr == null) {
C14957gcv.a("");
c3403awr = null;
}
C14957gcv.e(c0367Fb, "");
c3403awr.c = c0367Fb;
ZI.IeS ieS = new ZI.IeS(c3403awr) { // from class: o.aws
private C3403awr a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3403awr.d(this.a, (InterfaceC9114ddc.HBt) obj);
}
{
this.a = c3403awr;
}
};
if (c3403awr.f != 0) {
ieS.e(c3403awr.f);
}
}
@Override // o.fFO
public final void c(final boolean z) {
C3403awr c3403awr = this.mPresenter;
if (c3403awr == null) {
C14957gcv.a("");
c3403awr = null;
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.awu
private boolean b;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9114ddc.HBt) obj).d(!this.b);
}
{
this.b = z;
}
};
if (c3403awr.f != 0) {
ieS.e(c3403awr.f);
}
}
@Override // o.fFO
public final void d() {
final C3403awr c3403awr = this.mPresenter;
if (c3403awr == null) {
C14957gcv.a("");
c3403awr = null;
}
c3403awr.c = null;
ZI.IeS ieS = new ZI.IeS(c3403awr) { // from class: o.awt
private C3403awr a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3403awr.e(this.a, (InterfaceC9114ddc.HBt) obj);
}
{
this.a = c3403awr;
}
};
if (c3403awr.f != 0) {
ieS.e(c3403awr.f);
}
}
}