what-the-bank/sources/com/scb/phone/view/fragment/transferandpay/BillPaymentTabFragment.java

774 lines
30 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.transferandpay;
import android.animation.ValueAnimator;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.Fragment;
import com.scb.phone.R;
import com.scb.phone.view.activity.transferandpay.billpayment.BillPaymentActivity;
import com.scb.phone.view.adapter.transferandpay.AccountSourceAdapter;
import com.scb.phone.view.fragment.transferandpay.AccountSourceSelectFragment;
import com.scb.phone.view.fragment.transferandpay.BillPaymentTabFragment;
import com.scb.phone.view.fragment.transferandpay.billpaymenttab.BillPaymentBillerSelectedFragment;
import com.scb.phone.view.fragment.transferandpay.billpaymenttab.SecondaryTabsFragment;
import com.scb.phone.view.fragment.transferandpay.billpaymenttab.ebilltabsfragment.EBillSelectedFragment;
import java.util.Calendar;
import o.AbstractC13482fbE;
import o.AbstractC14961gcz;
import o.C0910Ri;
import o.C1171Xc;
import o.C1193Xr;
import o.C14957gcv;
import o.C6353cQY;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9010dbe;
import o.InterfaceC9663dnz;
import o.MBB;
import o.WW;
import o.XB;
import o.ZI;
import o.fZZ;
import o.gdZ;
import o.gxQ;
import o.pug;
import o.qTu;
import o.qeC;
import o.yRS;
/* loaded from: classes5.dex */
public final class BillPaymentTabFragment extends Hilt_BillPaymentTabFragment implements InterfaceC9010dbe.saX, AccountSourceSelectFragment.Sts, InterfaceC9663dnz.ZqN, InterfaceC9663dnz.RVV, InterfaceC9663dnz.Sts, InterfaceC9663dnz.HBt, InterfaceC9663dnz.IeS, InterfaceC9663dnz.ojQ, BillPaymentActivity.LWm {
public static final IeS d = new IeS(0);
private final InterfaceC13393fZL c;
private InterfaceC9663dnz.jbe f;
private final InterfaceC13393fZL g;
private WW h;
private BillPaymentBillerSelectedFragment i;
private long j;
private LWm k;
private EBillSelectedFragment l;
private InterfaceC9663dnz.jbe m;
@InterfaceC13391fZD
public C6353cQY presenter;
/* loaded from: classes5.dex */
public interface LWm {
void d();
}
public BillPaymentTabFragment() {
HBt hBt = new HBt(this);
C14957gcv.e(hBt, "");
this.g = new fZZ(hBt);
Sts sts = new Sts(this);
C14957gcv.e(sts, "");
this.c = new fZZ(sts);
}
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public static BillPaymentTabFragment b(MBB mbb, String str, boolean z) {
Bundle bundle = new Bundle();
MBB mbb2 = mbb;
bundle.putInt("com.scb.phone.EXTRA_BILL_PAY_METHOD", mbb2 != null ? mbb2.ordinal() : -1);
bundle.putString("source", str);
bundle.putBoolean("EXTRA_BILL_PAYMENT_IS_SHOW_FROM", z);
BillPaymentTabFragment billPaymentTabFragment = new BillPaymentTabFragment();
billPaymentTabFragment.setArguments(bundle);
return billPaymentTabFragment;
}
public /* synthetic */ IeS(byte b) {
this();
}
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<qTu> {
private BillPaymentTabFragment e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ qTu invoke() {
View inflate = this.e.getLayoutInflater().inflate(R.layout.2131559463, (ViewGroup) null, false);
int i = R.id.banner_text_view;
TextView textView = (TextView) qeC.e(inflate, R.id.banner_text_view);
if (textView != null) {
NestedScrollView nestedScrollView = (NestedScrollView) inflate;
i = R.id.fragment_account_source_select;
FrameLayout frameLayout = (FrameLayout) qeC.e(inflate, R.id.fragment_account_source_select);
if (frameLayout != null) {
i = R.id.fragment_container_bill_payment_tabs;
FrameLayout frameLayout2 = (FrameLayout) qeC.e(inflate, R.id.fragment_container_bill_payment_tabs);
if (frameLayout2 != null) {
return new qTu(nestedScrollView, textView, nestedScrollView, frameLayout, frameLayout2);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(BillPaymentTabFragment billPaymentTabFragment) {
super(0);
this.e = billPaymentTabFragment;
}
}
private final MBB h() {
Bundle arguments = getArguments();
if (arguments == null) {
return null;
}
int i = arguments.getInt("com.scb.phone.EXTRA_BILL_PAY_METHOD", -1);
return i >= 0 ? MBB.values()[i] : null;
}
private final XB f() {
Parcelable parcelable;
Bundle arguments = getArguments();
if (arguments == null) {
return null;
}
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable("com.scb.phone.EXTRA_LEVELUP_PAYMENT_MODEL", XB.class);
} else {
Parcelable parcelable2 = arguments.getParcelable("com.scb.phone.EXTRA_LEVELUP_PAYMENT_MODEL");
parcelable = (XB) (parcelable2 instanceof XB ? parcelable2 : null);
}
return (XB) parcelable;
}
private final C1193Xr g() {
Parcelable parcelable;
Bundle arguments = getArguments();
if (arguments == null) {
return null;
}
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable("com.scb.phone.EXTRA_BILL_PAYMENT_DISPLAY", C1193Xr.class);
} else {
Parcelable parcelable2 = arguments.getParcelable("com.scb.phone.EXTRA_BILL_PAYMENT_DISPLAY");
parcelable = (C1193Xr) (parcelable2 instanceof C1193Xr ? parcelable2 : null);
}
return (C1193Xr) parcelable;
}
private final C0910Ri n() {
Parcelable parcelable;
Bundle arguments = getArguments();
if (arguments == null) {
return null;
}
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable("com.scb.phone.EXTRA_BILL_PAYMENT_HISTORY", C0910Ri.class);
} else {
Parcelable parcelable2 = arguments.getParcelable("com.scb.phone.EXTRA_BILL_PAYMENT_HISTORY");
parcelable = (C0910Ri) (parcelable2 instanceof C0910Ri ? parcelable2 : null);
}
return (C0910Ri) parcelable;
}
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN<AccountSourceSelectFragment> {
private BillPaymentTabFragment d;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ AccountSourceSelectFragment invoke() {
if (this.d.presenter == null) {
C14957gcv.a("");
}
C1171Xc.IeS ieS = new C1171Xc.IeS(C6353cQY.e(BillPaymentTabFragment.a(this.d), BillPaymentTabFragment.e(this.d)));
C1171Xc c1171Xc = ieS.c;
c1171Xc.a = false;
c1171Xc.b = true;
c1171Xc.j = true;
c1171Xc.g = true;
ieS.c.g = BillPaymentTabFragment.d(this.d);
return AccountSourceSelectFragment.b(ieS.c);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(BillPaymentTabFragment billPaymentTabFragment) {
super(0);
this.d = billPaymentTabFragment;
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
NestedScrollView nestedScrollView = ((qTu) this.g.e()).e;
C14957gcv.c(nestedScrollView, "");
return nestedScrollView;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
AbstractC13482fbE a = getChildFragmentManager().a();
Object e = this.c.e();
C14957gcv.c(e, "");
final C6353cQY c6353cQY = null;
C6353cQY c6353cQY2 = null;
a.b(R.id.fragment_account_source_select, (AccountSourceSelectFragment) e, null, 2);
a.b();
Bundle arguments = getArguments();
final String string = arguments != null ? arguments.getString("com.scb.phone.analytics.KEY_EVENT_NAME", "") : null;
if (string == null) {
string = "";
}
C6353cQY c6353cQY3 = this.presenter;
if (c6353cQY3 == null) {
C14957gcv.a("");
c6353cQY3 = null;
}
c6353cQY3.e((C6353cQY) this);
C6353cQY c6353cQY4 = this.presenter;
if (c6353cQY4 == null) {
C14957gcv.a("");
c6353cQY4 = null;
}
final String Q = Q();
C14957gcv.c((Object) Q, "");
final String O = O();
Bundle arguments2 = getArguments();
boolean z = arguments2 != null ? arguments2.getBoolean("com.scb.phone.EXTRA_IS_LEVELUP_PAYMENT") : false;
C14957gcv.e(Q, "");
if (!z) {
ZI.IeS ieS = new ZI.IeS(string, Q, O) { // from class: o.cQW
private String a;
private String b;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6353cQY.e(this.b, this.a, this.d, (InterfaceC9010dbe.saX) obj);
}
{
this.b = string;
this.a = Q;
this.d = O;
}
};
if (c6353cQY4.f != 0) {
ieS.e(c6353cQY4.f);
}
}
if (g() != null) {
C6353cQY c6353cQY5 = this.presenter;
if (c6353cQY5 != null) {
c6353cQY2 = c6353cQY5;
} else {
C14957gcv.a("");
}
final C1193Xr g = g();
C0910Ri n = n();
if (n != null && g != null) {
g.j = n.b;
g.K = n.g;
g.J = n.i;
g.g = n.a;
}
ZI.IeS ieS2 = new ZI.IeS(g) { // from class: o.cRa
private C1193Xr b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6353cQY.d(this.b, (InterfaceC9010dbe.saX) obj);
}
{
this.b = g;
}
};
if (c6353cQY2.f != 0) {
ieS2.e(c6353cQY2.f);
}
} else {
Bundle arguments3 = getArguments();
if (arguments3 != null && arguments3.getBoolean("com.scb.phone.EXTRA_IS_LEVELUP_PAYMENT")) {
d();
XB f = f();
String str = f != null ? f.B : null;
if (str == null) {
str = "";
}
c("billpay_landing", new pug("source", Q()), new pug("product_code", str));
EBillSelectedFragment.LWm lWm = EBillSelectedFragment.d;
XB f2 = f();
MBB h = h();
Object e2 = this.c.e();
C14957gcv.c(e2, "");
AccountSourceSelectFragment accountSourceSelectFragment = (AccountSourceSelectFragment) e2;
AccountSourceAdapter accountSourceAdapter = accountSourceSelectFragment.d;
WW d2 = accountSourceAdapter != null ? accountSourceAdapter.d(accountSourceSelectFragment.mViewPager.getCurrentItem()) : null;
String Q2 = Q();
EBillSelectedFragment eBillSelectedFragment = new EBillSelectedFragment();
Bundle bundle2 = new Bundle();
bundle2.putParcelable("com.scb.phone.EXTRA_EBILL_PAYMENT_DISPLAY", f2);
bundle2.putSerializable("com.scb.phone.EXTRA_BILL_PAY_METHOD", h);
bundle2.putParcelable("com.scb.phone.EXTRA_ACCOUNT_NUMBER", d2);
bundle2.putString("source", Q2);
bundle2.putBoolean("com.scb.phone.EXTRA_IS_LEVELUP_PAYMENT", true);
eBillSelectedFragment.setArguments(bundle2);
eBillSelectedFragment.setArguments(bundle2);
this.l = eBillSelectedFragment;
e(eBillSelectedFragment, R.id.fragment_container_bill_payment_tabs, "EBILL_SELECTED_FRAGMENT_TAG", true, true);
} else {
Bundle arguments4 = getArguments();
if (arguments4 != null && arguments4.getBoolean("com.scb.phone.FAVOURITE")) {
C6353cQY c6353cQY6 = this.presenter;
if (c6353cQY6 != null) {
c6353cQY = c6353cQY6;
} else {
C14957gcv.a("");
}
ZI.IeS ieS3 = new ZI.IeS(c6353cQY) { // from class: o.cRe
private C6353cQY d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6353cQY.a(this.d, (InterfaceC9010dbe.saX) obj);
}
{
this.d = c6353cQY;
}
};
if (c6353cQY.f != 0) {
ieS3.e(c6353cQY.f);
}
}
b(new SecondaryTabsFragment(), R.id.fragment_container_bill_payment_tabs, "BILLER_PAYMENT_SECONDARY_TABS_TAG", true);
}
}
getChildFragmentManager().a(new gxQ(this) { // from class: o.fCY
private BillPaymentTabFragment c;
@Override // o.gxQ
public final void d(yRS yrs, Fragment fragment) {
BillPaymentTabFragment.d(this.c, yrs, fragment);
}
{
this.c = this;
}
});
((qTu) this.g.e()).b.setOnScrollChangeListener(new NestedScrollView.RVV(this) { // from class: o.fDg
private BillPaymentTabFragment a;
@Override // androidx.core.widget.NestedScrollView.RVV
public final void e(NestedScrollView nestedScrollView, int i, int i2) {
BillPaymentTabFragment.a(this.a, nestedScrollView, i, i2);
}
{
this.a = this;
}
});
}
@Override // o.InterfaceC9010dbe.saX
public final void d() {
AbstractC13482fbE a = getChildFragmentManager().a();
Fragment findFragmentById = getChildFragmentManager().findFragmentById(R.id.fragment_favourite_bill_payment_target);
if (findFragmentById != null) {
a.c(findFragmentById);
a.b();
}
}
@Override // o.InterfaceC9010dbe.saX
public final void d(String str, String str2, String str3) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
c(str, new pug("source", str2), new pug("subtype", str3));
}
@Override // o.InterfaceC9010dbe.saX
public final void b(String str) {
C14957gcv.e(str, "");
TextView textView = ((qTu) this.g.e()).a;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
textView.setText(str);
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.scb.phone.view.fragment.transferandpay.BaseReplaceableFragment
public final void aO_() {
super.aO_();
this.i = null;
}
@Override // com.scb.phone.view.fragment.BaseFragment
public final void aJ_() {
super.aJ_();
InterfaceC9663dnz.jbe jbeVar = this.f;
if (jbeVar != null) {
jbeVar.a();
}
InterfaceC9663dnz.jbe jbeVar2 = this.m;
if (jbeVar2 != null) {
jbeVar2.a();
}
}
@Override // com.scb.phone.view.activity.transferandpay.billpayment.BillPaymentActivity.LWm
public final void b() {
LWm lWm = this.k;
if (lWm != null) {
lWm.d();
}
}
@Override // com.scb.phone.view.fragment.transferandpay.AccountSourceSelectFragment.Sts
public final void a(WW ww) {
C14957gcv.e(ww, "");
this.h = ww;
EBillSelectedFragment eBillSelectedFragment = this.l;
if (eBillSelectedFragment != null) {
eBillSelectedFragment.e(ww);
}
BillPaymentBillerSelectedFragment billPaymentBillerSelectedFragment = this.i;
if (billPaymentBillerSelectedFragment != null) {
billPaymentBillerSelectedFragment.a(ww);
}
}
@Override // com.scb.phone.view.fragment.transferandpay.AccountSourceSelectFragment.Sts
public final void e_(boolean z) {
C0910Ri n;
String str;
if (z && (n = n()) != null && (str = n.d) != null) {
String str2 = str;
if (!(str2 == null || gdZ.d((CharSequence) str2))) {
Object e = this.c.e();
C14957gcv.c(e, "");
AccountSourceSelectFragment accountSourceSelectFragment = (AccountSourceSelectFragment) e;
C0910Ri n2 = n();
accountSourceSelectFragment.e(n2 != null ? n2.d : null);
}
}
BillPaymentBillerSelectedFragment billPaymentBillerSelectedFragment = this.i;
if (billPaymentBillerSelectedFragment != null) {
billPaymentBillerSelectedFragment.e_(z);
}
}
@Override // o.InterfaceC9663dnz.ZqN
public final void c(C1193Xr c1193Xr) {
C14957gcv.e(c1193Xr, "");
d(c1193Xr);
}
@Override // o.InterfaceC9663dnz.HBt
public final void b(C1193Xr c1193Xr) {
C14957gcv.e(c1193Xr, "");
d(c1193Xr);
}
@Override // o.InterfaceC9663dnz.IeS
public final InterfaceC9663dnz.ojQ e() {
return this;
}
@Override // o.InterfaceC9663dnz.IeS
public final void i() {
ValueAnimator ofInt = ValueAnimator.ofInt(((qTu) this.g.e()).b.getScrollY(), 0);
ofInt.setDuration(400L);
ofInt.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: o.fDh
private BillPaymentTabFragment a;
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
BillPaymentTabFragment.axJ_(this.a, valueAnimator);
}
{
this.a = this;
}
});
ofInt.start();
}
@Override // o.InterfaceC9663dnz.IeS
public final void e(final int i) {
((qTu) this.g.e()).b.post(new Runnable(this, i) { // from class: o.fDc
private BillPaymentTabFragment a;
private int e;
@Override // java.lang.Runnable
public final void run() {
BillPaymentTabFragment.e(this.a, this.e);
}
{
this.a = this;
this.e = i;
}
});
}
@Override // o.InterfaceC9663dnz.Sts
public final void b(XB xb) {
C14957gcv.e(xb, "");
C14957gcv.e(xb, "");
super.aO_();
this.i = null;
EBillSelectedFragment.LWm lWm = EBillSelectedFragment.d;
MBB h = h();
Object e = this.c.e();
C14957gcv.c(e, "");
AccountSourceSelectFragment accountSourceSelectFragment = (AccountSourceSelectFragment) e;
AccountSourceAdapter accountSourceAdapter = accountSourceSelectFragment.d;
WW d2 = accountSourceAdapter != null ? accountSourceAdapter.d(accountSourceSelectFragment.mViewPager.getCurrentItem()) : null;
String Q = Q();
EBillSelectedFragment eBillSelectedFragment = new EBillSelectedFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("com.scb.phone.EXTRA_EBILL_PAYMENT_DISPLAY", xb);
bundle.putSerializable("com.scb.phone.EXTRA_BILL_PAY_METHOD", h);
bundle.putParcelable("com.scb.phone.EXTRA_ACCOUNT_NUMBER", d2);
bundle.putString("source", Q);
eBillSelectedFragment.setArguments(bundle);
this.l = eBillSelectedFragment;
e(eBillSelectedFragment, R.id.fragment_container_bill_payment_tabs, "EBILL_SELECTED_FRAGMENT_TAG", true, true);
}
public static /* synthetic */ void a(BillPaymentTabFragment billPaymentTabFragment, NestedScrollView nestedScrollView, int i, int i2) {
C14957gcv.e(billPaymentTabFragment, "");
if (i >= i2) {
if ((nestedScrollView != null ? nestedScrollView.getChildAt(0) : null) == null || i < nestedScrollView.getChildAt(0).getMeasuredHeight() - nestedScrollView.getMeasuredHeight() || Calendar.getInstance().getTimeInMillis() - billPaymentTabFragment.j <= 750) {
return;
}
billPaymentTabFragment.aJ_();
billPaymentTabFragment.j = Calendar.getInstance().getTimeInMillis();
}
}
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ void d(BillPaymentTabFragment billPaymentTabFragment, yRS yrs, Fragment fragment) {
C14957gcv.e(billPaymentTabFragment, "");
C14957gcv.e(yrs, "");
C14957gcv.e(fragment, "");
if (fragment instanceof SecondaryTabsFragment) {
billPaymentTabFragment.k = (LWm) fragment;
}
}
public static /* synthetic */ void e(final BillPaymentTabFragment billPaymentTabFragment, int i) {
C14957gcv.e(billPaymentTabFragment, "");
ValueAnimator ofInt = ValueAnimator.ofInt(((qTu) billPaymentTabFragment.g.e()).b.getScrollY(), i);
ofInt.setDuration(400L);
ofInt.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(billPaymentTabFragment) { // from class: o.fDb
private BillPaymentTabFragment e;
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
BillPaymentTabFragment.axK_(this.e, valueAnimator);
}
{
this.e = billPaymentTabFragment;
}
});
ofInt.start();
}
public static /* synthetic */ void axJ_(BillPaymentTabFragment billPaymentTabFragment, ValueAnimator valueAnimator) {
C14957gcv.e(billPaymentTabFragment, "");
C14957gcv.e(valueAnimator, "");
Object animatedValue = valueAnimator.getAnimatedValue();
C14957gcv.d(animatedValue, "");
((qTu) billPaymentTabFragment.g.e()).b.scrollTo(0, ((Integer) animatedValue).intValue());
}
public static /* synthetic */ void axK_(BillPaymentTabFragment billPaymentTabFragment, ValueAnimator valueAnimator) {
C14957gcv.e(billPaymentTabFragment, "");
C14957gcv.e(valueAnimator, "");
Object animatedValue = valueAnimator.getAnimatedValue();
C14957gcv.d(animatedValue, "");
((qTu) billPaymentTabFragment.g.e()).b.scrollTo(0, ((Integer) animatedValue).intValue());
}
public static final /* synthetic */ boolean a(BillPaymentTabFragment billPaymentTabFragment) {
C1193Xr g = billPaymentTabFragment.g();
if (g != null) {
return C14957gcv.b((Object) g.S, (Object) "EDONATION");
}
return false;
}
public static final /* synthetic */ boolean e(BillPaymentTabFragment billPaymentTabFragment) {
Bundle arguments = billPaymentTabFragment.getArguments();
if (arguments != null) {
return arguments.getBoolean("com.scb.phone.EXTRA_IS_LEVELUP_PAYMENT");
}
return false;
}
public static final /* synthetic */ boolean d(BillPaymentTabFragment billPaymentTabFragment) {
Bundle arguments = billPaymentTabFragment.getArguments();
if (arguments != null) {
return arguments.getBoolean("EXTRA_BILL_PAYMENT_IS_SHOW_FROM", true);
}
return true;
}
public static final BillPaymentTabFragment a(MBB mbb, C1193Xr c1193Xr) {
Bundle bundle = new Bundle();
MBB mbb2 = mbb;
bundle.putInt("com.scb.phone.EXTRA_BILL_PAY_METHOD", mbb2 != null ? mbb2.ordinal() : -1);
bundle.putParcelable("com.scb.phone.EXTRA_BILL_PAYMENT_DISPLAY", c1193Xr);
bundle.putParcelable("com.scb.phone.EXTRA_BILL_PAYMENT_HISTORY", null);
bundle.putBoolean("com.scb.phone.EXTRA_BILL_PAYMENT_ENABLE_SCHEDULE", true);
bundle.putString("source", null);
BillPaymentTabFragment billPaymentTabFragment = new BillPaymentTabFragment();
billPaymentTabFragment.setArguments(bundle);
return billPaymentTabFragment;
}
public static final BillPaymentTabFragment d(MBB mbb, String str) {
Bundle bundle = new Bundle();
MBB mbb2 = mbb;
bundle.putInt("com.scb.phone.EXTRA_BILL_PAY_METHOD", mbb2 != null ? mbb2.ordinal() : -1);
bundle.putBoolean("com.scb.phone.FAVOURITE", true);
bundle.putString("source", str);
BillPaymentTabFragment billPaymentTabFragment = new BillPaymentTabFragment();
billPaymentTabFragment.setArguments(bundle);
return billPaymentTabFragment;
}
public static final BillPaymentTabFragment c(MBB mbb, String str, boolean z) {
Bundle bundle = new Bundle();
MBB mbb2 = mbb;
bundle.putInt("com.scb.phone.EXTRA_BILL_PAY_METHOD", mbb2 != null ? mbb2.ordinal() : -1);
bundle.putBoolean("com.scb.phone.FAVOURITE", true);
bundle.putString("source", str);
bundle.putBoolean("com.scb.phone.EXTRA_BILL_PAYMENT_ENABLE_SCHEDULE", z);
BillPaymentTabFragment billPaymentTabFragment = new BillPaymentTabFragment();
billPaymentTabFragment.setArguments(bundle);
return billPaymentTabFragment;
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x004f, code lost:
if (r0 == null) goto L16;
*/
@Override // o.InterfaceC9010dbe.saX
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void d(o.C1193Xr r11) {
/*
r10 = this;
java.lang.String r0 = ""
o.C14957gcv.e(r11, r0)
super.aO_()
r0 = 0
r10.i = r0
o.MBB r2 = r10.h()
java.lang.String r3 = r10.Q()
android.os.Bundle r1 = r10.getArguments()
r4 = 1
if (r1 == 0) goto L21
java.lang.String r5 = "com.scb.phone.EXTRA_BILL_PAYMENT_ENABLE_SCHEDULE"
boolean r1 = r1.getBoolean(r5, r4)
r4 = r1
L21:
o.WW r5 = r10.h
java.lang.String r6 = r10.O()
android.os.Bundle r1 = r10.getArguments()
if (r1 == 0) goto L35
java.lang.String r7 = "EXTRA_BILL_PAYMENT_PARTNER_CALLBACK"
java.lang.String r1 = r1.getString(r7)
r7 = r1
goto L36
L35:
r7 = r0
L36:
android.os.Bundle r1 = r10.getArguments()
if (r1 == 0) goto L51
java.lang.String r8 = "com.scb.phone.EXTRA_PAYMENT_FLOW_TYPE"
r9 = -1
int r1 = r1.getInt(r8, r9)
if (r1 < 0) goto L4d
o.YY[] r0 = o.YY.values()
r0 = r0[r1]
java.lang.Enum r0 = (java.lang.Enum) r0
L4d:
o.YY r0 = (o.YY) r0
if (r0 != 0) goto L53
L51:
o.YY r0 = o.YY.NORMAL
L53:
r8 = r0
r1 = r11
com.scb.phone.view.fragment.transferandpay.billpaymenttab.BillPaymentBillerSelectedFragment r11 = com.scb.phone.view.fragment.transferandpay.billpaymenttab.BillPaymentBillerSelectedFragment.e(r1, r2, r3, r4, r5, r6, r7, r8)
r10.i = r11
r1 = r11
androidx.fragment.app.Fragment r1 = (androidx.fragment.app.Fragment) r1
r2 = 2131363660(0x7f0a074c, float:1.8347135E38)
java.lang.String r3 = "BILLER_PAYMENT_SELECTED_FRAGMENT_TAG"
r4 = 1
r5 = 1
r0 = r10
r0.e(r1, r2, r3, r4, r5)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.transferandpay.BillPaymentTabFragment.d(o.Xr):void");
}
@Override // o.InterfaceC9663dnz.RVV
public final void c() {
String Q;
Bundle arguments = getArguments();
if (arguments != null && arguments.getBoolean("com.scb.phone.EXTRA_IS_LEVELUP_PAYMENT")) {
Q = "lvl";
} else {
Q = C14957gcv.b((Object) Q(), (Object) "gifting_input") ? "input" : Q();
}
c("billpay_landing", new pug("source", Q));
Bundle arguments2 = getArguments();
if (arguments2 == null || !arguments2.getBoolean("com.scb.phone.EXTRA_IS_LEVELUP_PAYMENT")) {
super.aO_();
this.i = null;
b(new SecondaryTabsFragment(), R.id.fragment_container_bill_payment_tabs, "BILLER_PAYMENT_SECONDARY_TABS_TAG", true);
}
}
@Override // o.InterfaceC9663dnz.ojQ
public final void a(InterfaceC9663dnz.jbe jbeVar) {
C14957gcv.e(jbeVar, "");
this.m = jbeVar;
}
@Override // o.InterfaceC9663dnz.ojQ
public final void c(InterfaceC9663dnz.jbe jbeVar) {
C14957gcv.e(jbeVar, "");
this.f = jbeVar;
}
public static final BillPaymentTabFragment c(MBB mbb, String str) {
return IeS.b(mbb, str, true);
}
}