what-the-bank/sources/com/scb/phone/view/fragment/pointx/PointXPaymentOptionFragment...

1037 lines
48 KiB
Java

package com.scb.phone.view.fragment.pointx;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.SpannableString;
import android.text.style.UnderlineSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.scb.phone.R;
import com.scb.phone.view.activity.pointx.PaymentMethodActivity;
import com.scb.phone.view.custom.common.CustomEditText;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.pointx.PointXPaymentOptionFragment;
import java.util.ArrayList;
import o.C0367Fb;
import o.C11560ehe;
import o.C1202Xx;
import o.C1203Xy;
import o.C12891fKc;
import o.C14957gcv;
import o.C15715hv;
import o.C6583cXR;
import o.C7293clZ;
import o.Heg;
import o.InterfaceC0834Plv;
import o.InterfaceC12857fJa;
import o.InterfaceC13391fZD;
import o.InterfaceC9536dlb;
import o.TR;
import o.TS;
import o.WW;
import o.ZI;
import o.gcV;
import o.huo;
import o.nMh;
import o.qeC;
/* loaded from: classes5.dex */
public abstract class PointXPaymentOptionFragment extends BaseFragment implements InterfaceC9536dlb {
private gcV c;
private boolean f;
private C1203Xy g;
private double h;
private boolean j;
private Sts k;
private boolean l;
private boolean m;
private RVV n;
/* renamed from: o, reason: collision with root package name */
private boolean f8062o;
@InterfaceC13391fZD
public C7293clZ presenter;
private TS r;
private TR s;
private huo<Intent> t;
private String i = "";
private String[] d = new String[0];
/* loaded from: classes5.dex */
public interface RVV extends InterfaceC12857fJa {
}
/* loaded from: classes5.dex */
public interface Sts extends InterfaceC12857fJa {
}
public abstract void C();
public abstract void D();
public abstract void E();
public abstract void F();
public abstract void G();
public abstract void H();
public abstract void I();
public abstract void K();
public abstract void a(double d);
public abstract void a(boolean z, WW ww, C0367Fb c0367Fb, String str, String str2);
public abstract void a(boolean z, boolean z2, double d, int i, double d2, double d3, boolean z3, WW ww, C0367Fb c0367Fb, boolean z4, boolean z5, double d4, String str);
public abstract void b(double d);
public abstract void d(boolean z, String str, C1202Xx c1202Xx, String str2);
public abstract void d(boolean z, boolean z2, ArrayList<WW> arrayList, ArrayList<C0367Fb> arrayList2);
public abstract void z();
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
/* JADX INFO: Access modifiers changed from: protected */
public final gcV s() {
gcV gcv = this.c;
C14957gcv.e(gcv);
return gcv;
}
@Override // androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
Parcelable parcelable;
Parcelable parcelable2;
Parcelable parcelable3;
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
final C7293clZ c7293clZ = this.presenter;
if (c7293clZ == null) {
C14957gcv.a("");
c7293clZ = null;
}
c7293clZ.e((C7293clZ) this);
C();
Bundle arguments = getArguments();
if (arguments != null) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable("EXTRA_POINT_RATE_DISPLAY", TR.class);
} else {
Parcelable parcelable4 = arguments.getParcelable("EXTRA_POINT_RATE_DISPLAY");
if (!(parcelable4 instanceof TR)) {
parcelable4 = null;
}
parcelable = (TR) parcelable4;
}
this.s = (TR) parcelable;
if (Build.VERSION.SDK_INT >= 33) {
parcelable2 = (Parcelable) arguments.getParcelable("EXTRA_POINT", TS.class);
} else {
Parcelable parcelable5 = arguments.getParcelable("EXTRA_POINT");
if (!(parcelable5 instanceof TS)) {
parcelable5 = null;
}
parcelable2 = (TS) parcelable5;
}
this.r = (TS) parcelable2;
this.h = arguments.getDouble("EXTRA_AMOUNT");
this.j = arguments.getBoolean("EXTRA_FLAG_POINT_ERROR");
String string = arguments.getString("EXTRA_FUNCTION");
if (string == null) {
string = "";
}
this.i = string;
if (Build.VERSION.SDK_INT >= 33) {
parcelable3 = (Parcelable) arguments.getParcelable("com.scb.phone.TransferTabFragment.EXTRA_BILL_SCAN", C1203Xy.class);
} else {
Parcelable parcelable6 = arguments.getParcelable("com.scb.phone.TransferTabFragment.EXTRA_BILL_SCAN");
if (!(parcelable6 instanceof C1203Xy)) {
parcelable6 = null;
}
parcelable3 = (C1203Xy) parcelable6;
}
this.g = (C1203Xy) parcelable3;
String[] stringArray = arguments.getStringArray("EXTRA_ALLOW_LIST");
if (stringArray != null) {
C14957gcv.c(stringArray, "");
this.d = stringArray;
}
this.l = arguments.getBoolean("EXTRA_IS_POINT_WITH_MONEY");
this.m = arguments.getBoolean("EXTRA_IS_PAYWISE_ENABLE");
this.f = arguments.getBoolean("EXTRA_IS_REPAYMENT");
this.f8062o = arguments.getBoolean("EXTRA_IS_NOT_POINT_USER");
}
D();
gcV gcv = this.c;
C14957gcv.e(gcv);
gcv.l.setOnClickListener(new View.OnClickListener(this) { // from class: o.fsp
private PointXPaymentOptionFragment e;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
PointXPaymentOptionFragment.e(this.e);
}
{
this.e = this;
}
});
gcv.e.setOnClickListener(new View.OnClickListener(this) { // from class: o.fss
private PointXPaymentOptionFragment c;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
PointXPaymentOptionFragment.a(this.c);
}
{
this.c = this;
}
});
huo<Intent> registerForActivityResult = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.fso
private PointXPaymentOptionFragment d;
@Override // o.InterfaceC0834Plv
public final void d(Object obj) {
PointXPaymentOptionFragment.a(this.d, (Heg) obj);
}
{
this.d = this;
}
});
C14957gcv.c(registerForActivityResult, "");
this.t = registerForActivityResult;
TR tr = this.s;
TS ts = this.r;
double d = this.h;
String str = this.i;
boolean z = this.j;
String[] strArr = this.d;
C1203Xy c1203Xy = this.g;
boolean z2 = this.m;
boolean z3 = this.l;
boolean z4 = this.f;
boolean z5 = this.f8062o;
C14957gcv.e(strArr, "");
c7293clZ.u = tr;
c7293clZ.y = ts;
c7293clZ.a = d;
c7293clZ.i = z;
c7293clZ.b = strArr;
c7293clZ.k = str != null ? str : "";
c7293clZ.e = c1203Xy != null ? c1203Xy.f : null;
c7293clZ.x = z2;
if (c1203Xy != null) {
c7293clZ.d = c1203Xy;
}
c7293clZ.w = z3;
c7293clZ.q = z4;
c7293clZ.r = z5;
ZI.IeS ieS = new ZI.IeS(c7293clZ) { // from class: o.cmi
private C7293clZ c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7293clZ.l(this.c, (InterfaceC9536dlb) obj);
}
{
this.c = c7293clZ;
}
};
if (c7293clZ.f != 0) {
ieS.e(c7293clZ.f);
}
}
@Override // o.InterfaceC9536dlb
public final void n() {
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.g;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
LinearLayout linearLayout3 = gcv.f;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(8);
LinearLayout linearLayout5 = gcv.k;
C14957gcv.c(linearLayout5, "");
LinearLayout linearLayout6 = linearLayout5;
C14957gcv.e(linearLayout6, "");
linearLayout6.setVisibility(8);
}
@Override // o.InterfaceC9536dlb
public final void d(String str) {
C14957gcv.e(str, "");
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.g;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
LinearLayout linearLayout3 = gcv.f;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(8);
LinearLayout linearLayout5 = gcv.k;
C14957gcv.c(linearLayout5, "");
LinearLayout linearLayout6 = linearLayout5;
C14957gcv.e(linearLayout6, "");
linearLayout6.setVisibility(0);
gcv.x.setText(str);
}
@Override // o.InterfaceC9536dlb
public final void g(String str) {
C14957gcv.e(str, "");
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.g;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
LinearLayout linearLayout3 = gcv.f;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(0);
LinearLayout linearLayout5 = gcv.k;
C14957gcv.c(linearLayout5, "");
LinearLayout linearLayout6 = linearLayout5;
C14957gcv.e(linearLayout6, "");
linearLayout6.setVisibility(0);
gcv.x.setText(str);
}
@Override // o.InterfaceC9536dlb
public final void bi_() {
K();
}
@Override // o.InterfaceC9536dlb
public final void bj_() {
H();
}
@Override // o.InterfaceC9536dlb
public final void j() {
z();
}
@Override // o.InterfaceC9536dlb
public final void r() {
I();
}
@Override // o.InterfaceC9536dlb
public final void e(double d) {
a(d);
}
@Override // o.InterfaceC9536dlb
public final void c(double d) {
b(d);
}
@Override // o.InterfaceC9536dlb
public final void s_(String str) {
C14957gcv.e(str, "");
gcV gcv = this.c;
C14957gcv.e(gcv);
gcv.d.setEnabled(false);
LinearLayout linearLayout = gcv.m;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
ConstraintLayout constraintLayout = gcv.a;
C14957gcv.c(constraintLayout, "");
ConstraintLayout constraintLayout2 = constraintLayout;
C14957gcv.e(constraintLayout2, "");
constraintLayout2.setVisibility(8);
LinearLayout linearLayout3 = gcv.i;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(0);
gcv.r.setText(str);
TextView textView = gcv.l;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
TextView textView3 = gcv.D;
C14957gcv.c(textView3, "");
TextView textView4 = textView3;
C14957gcv.e(textView4, "");
textView4.setVisibility(8);
}
@Override // o.InterfaceC9536dlb
public final void c(String str, C1202Xx c1202Xx) {
C14957gcv.e(str, "");
RVV rvv = this.n;
if (rvv != null) {
rvv.e(false, str, c1202Xx);
}
}
@Override // o.InterfaceC9536dlb
public final void c(String str, String str2, String str3, String str4, C1202Xx c1202Xx, boolean z) {
String string;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C14957gcv.e(str4, "");
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.m;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
ConstraintLayout constraintLayout = gcv.a;
C14957gcv.c(constraintLayout, "");
ConstraintLayout constraintLayout2 = constraintLayout;
C14957gcv.e(constraintLayout2, "");
constraintLayout2.setVisibility(8);
LinearLayout linearLayout3 = gcv.i;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(8);
C7293clZ c7293clZ = this.presenter;
if (c7293clZ == null) {
C14957gcv.a("");
c7293clZ = null;
}
if (c7293clZ.q) {
string = c7293clZ.v.getString(C15715hv.tOB.point_change_payment_method_repayment);
C14957gcv.c((Object) string, "");
} else {
string = c7293clZ.v.getString(C15715hv.tOB.point_change_payment_method);
C14957gcv.c((Object) string, "");
}
SpannableString spannableString = new SpannableString(string);
spannableString.setSpan(new UnderlineSpan(), 0, spannableString.length(), 0);
TextView textView = gcv.l;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
gcv.l.setText(spannableString);
gcv.v.setText(str);
gcv.y.setText(str2);
d(z, str4, c1202Xx, str3);
}
@Override // o.InterfaceC9536dlb
public final void g() {
gcV gcv = this.c;
C14957gcv.e(gcv);
gcv.c.setImageResource(R.drawable.logo_scb_new);
}
@Override // o.InterfaceC9536dlb
public final void b(String str) {
C14957gcv.e(str, "");
gcV gcv = this.c;
C14957gcv.e(gcv);
ImageView imageView = gcv.c;
C12891fKc.azg_(imageView.getContext(), nMh.getDrawable(imageView.getContext(), R.drawable.shape_circle_lighter_gray), imageView, str, imageView.getResources().getDimensionPixelOffset(R.dimen.f27102131166476), nMh.getColor(imageView.getContext(), R.color.f3412131099849));
}
@Override // o.InterfaceC9536dlb
public final void l() {
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.h;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
TextView textView = gcv.q;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
LinearLayout linearLayout3 = gcv.b;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(0);
}
@Override // o.InterfaceC9536dlb
public final void bh_() {
F();
}
@Override // o.InterfaceC9536dlb
public final void bk_() {
E();
}
@Override // o.InterfaceC9536dlb
public final void c(String str) {
C14957gcv.e(str, "");
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.b;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
LinearLayout linearLayout3 = gcv.j;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(0);
TextView textView = gcv.w;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
TextView textView3 = gcv.w;
Double c = C6583cXR.c(str);
C14957gcv.c(c, "");
textView3.setText(C6583cXR.b(c.doubleValue()));
}
@Override // o.InterfaceC9536dlb
public final void a(String str) {
C14957gcv.e(str, "");
gcV gcv = this.c;
C14957gcv.e(gcv);
TextView textView = gcv.D;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
textView.setText(str);
}
@Override // o.InterfaceC9536dlb
public final void d(double d, double d2, int i) {
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.j;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
LinearLayout linearLayout3 = gcv.n;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(0);
c(d, d2);
gcv.d.setText(String.valueOf(i));
LinearLayout linearLayout5 = gcv.b;
C14957gcv.c(linearLayout5, "");
LinearLayout linearLayout6 = linearLayout5;
C14957gcv.e(linearLayout6, "");
linearLayout6.setVisibility(8);
}
@Override // o.InterfaceC9536dlb
public final void m() {
gcV gcv = this.c;
C14957gcv.e(gcv);
TextView textView = gcv.s;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
textView.setText(getString(R.string.pay_with_hybrid_insufficient_balance));
}
@Override // o.InterfaceC9536dlb
public final void bl_() {
gcV gcv = this.c;
C14957gcv.e(gcv);
TextView textView = gcv.s;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
}
private final void c(double d, double d2) {
gcV gcv = this.c;
C14957gcv.e(gcv);
TextView textView = gcv.p;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
gcv.B.setText((String) C6583cXR.c(new Object[]{Double.valueOf(d)}, -150997759, 150997764, (int) System.currentTimeMillis()));
gcv.u.setText((String) C6583cXR.c(new Object[]{Double.valueOf(d2)}, -150997759, 150997764, (int) System.currentTimeMillis()));
Context context = getContext();
if (context != null) {
gcv.d.setBackgroundTintList(ColorStateList.valueOf(nMh.getColor(context, R.color.f13772131100885)));
}
}
@Override // o.InterfaceC9536dlb
public final void o() {
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.j;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
LinearLayout linearLayout3 = gcv.n;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(8);
LinearLayout linearLayout5 = gcv.b;
C14957gcv.c(linearLayout5, "");
LinearLayout linearLayout6 = linearLayout5;
C14957gcv.e(linearLayout6, "");
linearLayout6.setVisibility(0);
TextView textView = gcv.p;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
gcv.t.setText(getString(R.string.pay_with_hybrid_error_unable_to_pay_for_product_price));
}
@Override // o.InterfaceC9536dlb
public final void c(boolean z, boolean z2, double d, int i, double d2, double d3, boolean z3, WW ww, C0367Fb c0367Fb, boolean z4, boolean z5, double d4, String str) {
C14957gcv.e(str, "");
a(z, z2, d, i, d2, d3, z3, ww, c0367Fb, z4, z5, d4, str);
}
@Override // o.InterfaceC9536dlb
public final void a(double d, double d2) {
C14957gcv.e(this.c);
this.j = false;
c(d, d2);
}
private final void f(String str) {
gcV gcv = this.c;
C14957gcv.e(gcv);
TextView textView = gcv.p;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
textView.setText(str);
TextView textView3 = gcv.s;
C14957gcv.c(textView3, "");
TextView textView4 = textView3;
C14957gcv.e(textView4, "");
textView4.setVisibility(8);
gcv.B.setText("");
gcv.u.setText("");
this.j = true;
}
@Override // o.InterfaceC9536dlb
public final void k() {
gcV gcv = this.c;
C14957gcv.e(gcv);
gcv.d.setBackgroundTintList(ColorStateList.valueOf(nMh.getColor(gcv.d.getContext(), R.color.f13582131100866)));
gcv.d.setText("");
String string = getString(R.string.pay_with_hybrid_error_please_enter_point);
C14957gcv.c((Object) string, "");
f(string);
}
@Override // o.InterfaceC9536dlb
public final void i() {
gcV gcv = this.c;
C14957gcv.e(gcv);
gcv.d.setBackgroundTintList(ColorStateList.valueOf(nMh.getColor(gcv.d.getContext(), R.color.f13582131100866)));
String string = getString(R.string.pay_with_hybrid_insufficient);
C14957gcv.c((Object) string, "");
f(string);
}
@Override // o.InterfaceC9536dlb
public final void f() {
gcV gcv = this.c;
C14957gcv.e(gcv);
gcv.d.setBackgroundTintList(ColorStateList.valueOf(nMh.getColor(gcv.d.getContext(), R.color.f13582131100866)));
String string = getString(R.string.pay_with_hybrid_the_maximum_number);
C14957gcv.c((Object) string, "");
f(string);
}
@Override // o.InterfaceC9536dlb
public final void h() {
gcV gcv = this.c;
C14957gcv.e(gcv);
LinearLayout linearLayout = gcv.k;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroyView() {
C7293clZ c7293clZ = this.presenter;
if (c7293clZ == null) {
C14957gcv.a("");
c7293clZ = null;
}
c7293clZ.w_();
huo<Intent> huoVar = this.t;
if (huoVar == null) {
C14957gcv.a("");
huoVar = null;
}
huoVar.e();
this.c = null;
super.onDestroyView();
}
public static /* synthetic */ void a(PointXPaymentOptionFragment pointXPaymentOptionFragment) {
C14957gcv.e(pointXPaymentOptionFragment, "");
C7293clZ c7293clZ = pointXPaymentOptionFragment.presenter;
if (c7293clZ == null) {
C14957gcv.a("");
c7293clZ = null;
}
c7293clZ.s = false;
c7293clZ.m = false;
c7293clZ.t = false;
c7293clZ.p = false;
c7293clZ.f8654o = false;
c7293clZ.l = false;
pointXPaymentOptionFragment.G();
}
public static /* synthetic */ void e(PointXPaymentOptionFragment pointXPaymentOptionFragment) {
C14957gcv.e(pointXPaymentOptionFragment, "");
Context context = pointXPaymentOptionFragment.getContext();
if (context != null) {
C7293clZ c7293clZ = pointXPaymentOptionFragment.presenter;
if (c7293clZ == null) {
C14957gcv.a("");
c7293clZ = null;
}
huo<Intent> huoVar = pointXPaymentOptionFragment.t;
if (huoVar == null) {
C14957gcv.a("");
huoVar = null;
}
PaymentMethodActivity.Sts sts = PaymentMethodActivity.k;
String str = pointXPaymentOptionFragment.i;
ArrayList<C0367Fb> arrayList = c7293clZ.g;
ArrayList<WW> arrayList2 = c7293clZ.c;
boolean z = c7293clZ.n;
boolean z2 = c7293clZ.f8654o;
boolean z3 = c7293clZ.l;
String[] strArr = pointXPaymentOptionFragment.d;
C14957gcv.e(context, "");
C14957gcv.e(arrayList, "");
C14957gcv.e(arrayList2, "");
C14957gcv.e(strArr, "");
Intent intent = new Intent(context, (Class<?>) PaymentMethodActivity.class);
intent.putExtra("EXTRA_PAYMENT_ALLOW", str);
intent.putParcelableArrayListExtra("EXTRA_CREDIT_CARD_DISPLAY", arrayList);
intent.putParcelableArrayListExtra("EXTRA_ACCOUNT_SOURCE_DISPLAY", arrayList2);
intent.putExtra("EXTRA_IS_CURRENT_ACCOUNT_SOURCE", z);
intent.putExtra("EXTRA_IS_ACCOUNT_SOURCE_ERROR", z2);
intent.putExtra("EXTRA_IS_CREDIT_ERROR", z3);
intent.putExtra("EXTRA_ALLOW_TAGS", strArr);
huoVar.d(intent, null);
}
}
public static /* synthetic */ void a(PointXPaymentOptionFragment pointXPaymentOptionFragment, Heg heg) {
ArrayList<WW> parcelableArrayListExtra;
ArrayList<C0367Fb> parcelableArrayListExtra2;
Parcelable parcelable;
C14957gcv.e(pointXPaymentOptionFragment, "");
C14957gcv.e(heg, "");
Intent intent = heg.b;
if (intent != null) {
if (pointXPaymentOptionFragment.presenter == null) {
C14957gcv.a("");
}
boolean booleanExtra = intent.getBooleanExtra("EXTRA_IS_ACCOUNT_SOURCE", false);
boolean booleanExtra2 = intent.getBooleanExtra("EXTRA_DEPOSIT_ERROR", false);
boolean booleanExtra3 = intent.getBooleanExtra("EXTRA_CARD_ERROR", false);
if (Build.VERSION.SDK_INT >= 33) {
parcelableArrayListExtra = intent.getParcelableArrayListExtra("EXTRA_ACCOUNT_LIST", WW.class);
} else {
parcelableArrayListExtra = intent.getParcelableArrayListExtra("EXTRA_ACCOUNT_LIST");
}
if (parcelableArrayListExtra == null) {
parcelableArrayListExtra = new ArrayList<>();
}
ArrayList<WW> arrayList = parcelableArrayListExtra;
if (Build.VERSION.SDK_INT >= 33) {
parcelableArrayListExtra2 = intent.getParcelableArrayListExtra("EXTRA_CARD_LIST", C0367Fb.class);
} else {
parcelableArrayListExtra2 = intent.getParcelableArrayListExtra("EXTRA_CARD_LIST");
}
if (parcelableArrayListExtra2 == null) {
parcelableArrayListExtra2 = new ArrayList<>();
}
ArrayList<C0367Fb> arrayList2 = parcelableArrayListExtra2;
if (-1 == heg.e) {
if (Build.VERSION.SDK_INT >= 33) {
Bundle extras = intent.getExtras();
parcelable = extras != null ? (Parcelable) extras.getParcelable("EXTRA_ACCOUNT_SELECTED", WW.class) : null;
} else {
Bundle extras2 = intent.getExtras();
Parcelable parcelable2 = extras2 != null ? extras2.getParcelable("EXTRA_ACCOUNT_SELECTED") : null;
if (!(parcelable2 instanceof WW)) {
parcelable2 = null;
}
parcelable = (WW) parcelable2;
}
WW ww = (WW) parcelable;
if (Build.VERSION.SDK_INT >= 33) {
Bundle extras3 = intent.getExtras();
if (extras3 != null) {
r6 = (Parcelable) extras3.getParcelable("EXTRA_CREDIT_CARD_SELECTED", C0367Fb.class);
}
} else {
Bundle extras4 = intent.getExtras();
Parcelable parcelable3 = extras4 != null ? extras4.getParcelable("EXTRA_CREDIT_CARD_SELECTED") : null;
r6 = (C0367Fb) (parcelable3 instanceof C0367Fb ? parcelable3 : null);
}
C0367Fb c0367Fb = (C0367Fb) r6;
String stringExtra = intent.getStringExtra("EXTRA_ACCOUNT_NAME");
String str = stringExtra == null ? "" : stringExtra;
String stringExtra2 = intent.getStringExtra("EXTRA_ACCOUNT_NUMBER");
pointXPaymentOptionFragment.a(booleanExtra, ww, c0367Fb, str, stringExtra2 == null ? "" : stringExtra2);
pointXPaymentOptionFragment.d(booleanExtra2, booleanExtra3, arrayList, arrayList2);
return;
}
if (heg.e == 0) {
pointXPaymentOptionFragment.d(booleanExtra2, booleanExtra3, arrayList, arrayList2);
}
}
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559818, viewGroup, false);
int i = R.id.cs_account_generic_error;
ConstraintLayout constraintLayout = (ConstraintLayout) qeC.e(inflate, R.id.cs_account_generic_error);
if (constraintLayout != null) {
i = R.id.et_pay_with_point;
CustomEditText customEditText = (CustomEditText) qeC.e(inflate, R.id.et_pay_with_point);
if (customEditText != null) {
i = R.id.iv_payment_method_logo;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_payment_method_logo);
if (imageView != null) {
i = R.id.iv_reload_account;
ImageView imageView2 = (ImageView) qeC.e(inflate, R.id.iv_reload_account);
if (imageView2 != null) {
i = R.id.ll_error;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.ll_error);
if (linearLayout != null) {
i = R.id.ll_layout_no_eligible;
LinearLayout linearLayout2 = (LinearLayout) qeC.e(inflate, R.id.ll_layout_no_eligible);
if (linearLayout2 != null) {
i = R.id.ll_layout_point_only;
LinearLayout linearLayout3 = (LinearLayout) qeC.e(inflate, R.id.ll_layout_point_only);
if (linearLayout3 != null) {
i = R.id.ll_layout_point_with_money;
LinearLayout linearLayout4 = (LinearLayout) qeC.e(inflate, R.id.ll_layout_point_with_money);
if (linearLayout4 != null) {
i = R.id.ll_pay_account_amount;
LinearLayout linearLayout5 = (LinearLayout) qeC.e(inflate, R.id.ll_pay_account_amount);
if (linearLayout5 != null) {
i = R.id.ll_pay_with_point;
LinearLayout linearLayout6 = (LinearLayout) qeC.e(inflate, R.id.ll_pay_with_point);
if (linearLayout6 != null) {
i = R.id.ll_pay_with_point_only;
LinearLayout linearLayout7 = (LinearLayout) qeC.e(inflate, R.id.ll_pay_with_point_only);
if (linearLayout7 != null) {
i = R.id.ll_pay_with_point_value;
LinearLayout linearLayout8 = (LinearLayout) qeC.e(inflate, R.id.ll_pay_with_point_value);
if (linearLayout8 != null) {
i = R.id.ll_payment_method;
LinearLayout linearLayout9 = (LinearLayout) qeC.e(inflate, R.id.ll_payment_method);
if (linearLayout9 != null) {
i = R.id.ll_payment_method_section;
LinearLayout linearLayout10 = (LinearLayout) qeC.e(inflate, R.id.ll_payment_method_section);
if (linearLayout10 != null) {
i = R.id.tv_account_error_title;
TextView textView = (TextView) qeC.e(inflate, R.id.tv_account_error_title);
if (textView != null) {
i = R.id.tv_change_account;
TextView textView2 = (TextView) qeC.e(inflate, R.id.tv_change_account);
if (textView2 != null) {
i = R.id.tv_error;
TextView textView3 = (TextView) qeC.e(inflate, R.id.tv_error);
if (textView3 != null) {
i = R.id.tv_error_inline_pay_with_point;
TextView textView4 = (TextView) qeC.e(inflate, R.id.tv_error_inline_pay_with_point);
if (textView4 != null) {
i = R.id.tv_error_insufficient_balance;
TextView textView5 = (TextView) qeC.e(inflate, R.id.tv_error_insufficient_balance);
if (textView5 != null) {
i = R.id.tv_fixed_point_exchange_rate;
TextView textView6 = (TextView) qeC.e(inflate, R.id.tv_fixed_point_exchange_rate);
if (textView6 != null) {
i = R.id.tv_no_eligible;
TextView textView7 = (TextView) qeC.e(inflate, R.id.tv_no_eligible);
if (textView7 != null) {
TextView textView8 = (TextView) qeC.e(inflate, R.id.tv_pay_account_amount);
if (textView8 != null) {
TextView textView9 = (TextView) qeC.e(inflate, R.id.tv_pay_with_account_card);
if (textView9 != null) {
TextView textView10 = (TextView) qeC.e(inflate, R.id.tv_pay_with_point_fixed);
if (textView10 != null) {
TextView textView11 = (TextView) qeC.e(inflate, R.id.tv_pay_with_point_only);
if (textView11 != null) {
TextView textView12 = (TextView) qeC.e(inflate, R.id.tv_pay_with_point_with_money);
if (textView12 != null) {
TextView textView13 = (TextView) qeC.e(inflate, R.id.tv_payment_method_name);
if (textView13 != null) {
TextView textView14 = (TextView) qeC.e(inflate, R.id.tv_payment_method_ref);
if (textView14 != null) {
TextView textView15 = (TextView) qeC.e(inflate, R.id.tv_payment_method_remark);
if (textView15 != null) {
TextView textView16 = (TextView) qeC.e(inflate, R.id.tv_payment_method_title);
if (textView16 != null) {
TextView textView17 = (TextView) qeC.e(inflate, R.id.tv_point_exchange_rate);
if (textView17 != null) {
TextView textView18 = (TextView) qeC.e(inflate, R.id.tv_points_value);
if (textView18 != null) {
TextView textView19 = (TextView) qeC.e(inflate, R.id.tv_points_value_label);
if (textView19 != null) {
gcV gcv = new gcV((LinearLayout) inflate, constraintLayout, customEditText, imageView, imageView2, linearLayout, linearLayout2, linearLayout3, linearLayout4, linearLayout5, linearLayout6, linearLayout7, linearLayout8, linearLayout9, linearLayout10, textView, textView2, textView3, textView4, textView5, textView6, textView7, textView8, textView9, textView10, textView11, textView12, textView13, textView14, textView15, textView16, textView17, textView18, textView19);
this.c = gcv;
C14957gcv.e(gcv);
LinearLayout linearLayout11 = gcv.f9138o;
C14957gcv.c(linearLayout11, "");
return linearLayout11;
}
i = R.id.tv_points_value_label;
} else {
i = R.id.tv_points_value;
}
} else {
i = R.id.tv_point_exchange_rate;
}
} else {
i = R.id.tv_payment_method_title;
}
} else {
i = R.id.tv_payment_method_remark;
}
} else {
i = R.id.tv_payment_method_ref;
}
} else {
i = R.id.tv_payment_method_name;
}
} else {
i = R.id.tv_pay_with_point_with_money;
}
} else {
i = R.id.tv_pay_with_point_only;
}
} else {
i = R.id.tv_pay_with_point_fixed;
}
} else {
i = R.id.tv_pay_with_account_card;
}
} else {
i = R.id.tv_pay_account_amount;
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
/* JADX INFO: Access modifiers changed from: protected */
public final void b(Sts sts) {
this.k = sts;
}
/* JADX INFO: Access modifiers changed from: protected */
public final void b(RVV rvv) {
this.n = rvv;
}
/* JADX INFO: Access modifiers changed from: protected */
public final Sts B() {
return this.k;
}
/* JADX INFO: Access modifiers changed from: protected */
public final RVV A() {
return this.n;
}
/* JADX INFO: Access modifiers changed from: protected */
public final boolean w() {
return this.j;
}
static {
new LWm((byte) 0);
}
}