478 lines
17 KiB
Java
478 lines
17 KiB
Java
|
package com.scb.phone.view.fragment.easycash;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.Intent;
|
||
|
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.Button;
|
||
|
import android.widget.ImageView;
|
||
|
import androidx.appcompat.widget.AppCompatTextView;
|
||
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.BaseActivity;
|
||
|
import com.scb.phone.view.activity.BaseActivityWithFragment;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashLandingActivity;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashLoanTrackActivity;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashNcbSlipActivity;
|
||
|
import com.scb.phone.view.fragment.easycash.EasycashSubmittedResultFragment;
|
||
|
import o.AbstractC14961gcz;
|
||
|
import o.C14851gaI;
|
||
|
import o.C14957gcv;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC13393fZL;
|
||
|
import o.InterfaceC14890gbN;
|
||
|
import o.InterfaceC9196dfE;
|
||
|
import o.JU;
|
||
|
import o.JV;
|
||
|
import o.JX;
|
||
|
import o.Lld;
|
||
|
import o.Ruy;
|
||
|
import o.ZI;
|
||
|
import o.aRS;
|
||
|
import o.fZZ;
|
||
|
import o.nMh;
|
||
|
import o.qeC;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class EasycashSubmittedResultFragment extends Hilt_EasycashSubmittedResultFragment implements InterfaceC9196dfE {
|
||
|
public static final LWm c = new LWm(0);
|
||
|
private final InterfaceC13393fZL d;
|
||
|
private JV f;
|
||
|
private String i;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public aRS presenter;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public Lld tracker;
|
||
|
|
||
|
public EasycashSubmittedResultFragment() {
|
||
|
Sts sts = new Sts(this);
|
||
|
C14957gcv.e(sts, "");
|
||
|
this.d = new fZZ(sts);
|
||
|
this.i = "";
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN<Ruy> {
|
||
|
private EasycashSubmittedResultFragment c;
|
||
|
|
||
|
@Override // o.InterfaceC14890gbN
|
||
|
public final /* synthetic */ Ruy invoke() {
|
||
|
View inflate = this.c.getLayoutInflater().inflate(R.layout.2131559615, (ViewGroup) null, false);
|
||
|
int i = R.id.bt_back;
|
||
|
Button button = (Button) qeC.e(inflate, R.id.bt_back);
|
||
|
if (button != null) {
|
||
|
i = R.id.bt_loan_status_tracking;
|
||
|
Button button2 = (Button) qeC.e(inflate, R.id.bt_loan_status_tracking);
|
||
|
if (button2 != null) {
|
||
|
i = R.id.iv_icon;
|
||
|
ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_icon);
|
||
|
if (imageView != null) {
|
||
|
i = R.id.ll_layout_content;
|
||
|
ConstraintLayout constraintLayout = (ConstraintLayout) qeC.e(inflate, R.id.ll_layout_content);
|
||
|
if (constraintLayout != null) {
|
||
|
i = R.id.tv_description;
|
||
|
AppCompatTextView appCompatTextView = (AppCompatTextView) qeC.e(inflate, R.id.tv_description);
|
||
|
if (appCompatTextView != null) {
|
||
|
i = R.id.tv_header;
|
||
|
AppCompatTextView appCompatTextView2 = (AppCompatTextView) qeC.e(inflate, R.id.tv_header);
|
||
|
if (appCompatTextView2 != null) {
|
||
|
i = R.id.tv_hyper_link;
|
||
|
AppCompatTextView appCompatTextView3 = (AppCompatTextView) qeC.e(inflate, R.id.tv_hyper_link);
|
||
|
if (appCompatTextView3 != null) {
|
||
|
i = R.id.tv_loan_information;
|
||
|
AppCompatTextView appCompatTextView4 = (AppCompatTextView) qeC.e(inflate, R.id.tv_loan_information);
|
||
|
if (appCompatTextView4 != null) {
|
||
|
ConstraintLayout constraintLayout2 = (ConstraintLayout) inflate;
|
||
|
return new Ruy(constraintLayout2, button, button2, imageView, constraintLayout, appCompatTextView, appCompatTextView2, appCompatTextView3, appCompatTextView4, constraintLayout2);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
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) */
|
||
|
Sts(EasycashSubmittedResultFragment easycashSubmittedResultFragment) {
|
||
|
super(0);
|
||
|
this.c = easycashSubmittedResultFragment;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class LWm {
|
||
|
private LWm() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ LWm(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
aRS ars = this.presenter;
|
||
|
if (ars == null) {
|
||
|
C14957gcv.a("");
|
||
|
ars = null;
|
||
|
}
|
||
|
ars.e((aRS) this);
|
||
|
ConstraintLayout constraintLayout = ((Ruy) this.d.e()).b;
|
||
|
C14957gcv.c(constraintLayout, "");
|
||
|
return constraintLayout;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
Parcelable parcelable;
|
||
|
Parcelable parcelable2;
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
Ruy ruy = (Ruy) this.d.e();
|
||
|
ruy.d.setOnClickListener(new View.OnClickListener(this) { // from class: o.eTO
|
||
|
private EasycashSubmittedResultFragment b;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
EasycashSubmittedResultFragment.a(this.b);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
ruy.c.setOnClickListener(new View.OnClickListener(this) { // from class: o.eTS
|
||
|
private EasycashSubmittedResultFragment c;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
EasycashSubmittedResultFragment.b(this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
ruy.f.setOnClickListener(new View.OnClickListener(this) { // from class: o.eTR
|
||
|
private EasycashSubmittedResultFragment c;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
EasycashSubmittedResultFragment.c(this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
Bundle arguments = getArguments();
|
||
|
if (arguments != null) {
|
||
|
aRS ars = this.presenter;
|
||
|
final aRS ars2 = null;
|
||
|
if (ars == null) {
|
||
|
C14957gcv.a("");
|
||
|
ars = null;
|
||
|
}
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
parcelable = (Parcelable) arguments.getParcelable("AUTO_CONFIRMATION_DISPLAY_EXTRA", JV.class);
|
||
|
} else {
|
||
|
Parcelable parcelable3 = arguments.getParcelable("AUTO_CONFIRMATION_DISPLAY_EXTRA");
|
||
|
if (!(parcelable3 instanceof JV)) {
|
||
|
parcelable3 = null;
|
||
|
}
|
||
|
parcelable = (JV) parcelable3;
|
||
|
}
|
||
|
JV jv = (JV) parcelable;
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
parcelable2 = (Parcelable) arguments.getParcelable("COMMERCIAL_CONFIRM_DISPLAY_EXTRA", JX.class);
|
||
|
} else {
|
||
|
Parcelable parcelable4 = arguments.getParcelable("COMMERCIAL_CONFIRM_DISPLAY_EXTRA");
|
||
|
if (!(parcelable4 instanceof JX)) {
|
||
|
parcelable4 = null;
|
||
|
}
|
||
|
parcelable2 = (JX) parcelable4;
|
||
|
}
|
||
|
JX jx = (JX) parcelable2;
|
||
|
if (jv == null) {
|
||
|
if (jx != null) {
|
||
|
JV jv2 = new JV(null, new JU(jx.b, null, jx.d, jx.e, null, C14851gaI.c));
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.aRU
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9196dfE) obj).h();
|
||
|
}
|
||
|
};
|
||
|
if (ars.f != 0) {
|
||
|
ieS.e(ars.f);
|
||
|
}
|
||
|
jv = jv2;
|
||
|
} else {
|
||
|
jv = null;
|
||
|
}
|
||
|
}
|
||
|
this.f = jv;
|
||
|
aRS ars3 = this.presenter;
|
||
|
if (ars3 != null) {
|
||
|
ars2 = ars3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
final JV jv3 = this.f;
|
||
|
final String string = arguments.getString("HIDE_TRACKING_EXTRA");
|
||
|
ZI.IeS ieS2 = new ZI.IeS(jv3, ars2, string) { // from class: o.aSe
|
||
|
private String b;
|
||
|
private aRS c;
|
||
|
private JV e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
aRS.b(this.e, this.c, this.b, (InterfaceC9196dfE) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = jv3;
|
||
|
this.c = ars2;
|
||
|
this.b = string;
|
||
|
}
|
||
|
};
|
||
|
if (ars2.f != 0) {
|
||
|
ieS2.e(ars2.f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void d(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
FragmentActivity activity = getActivity();
|
||
|
BaseActivityWithFragment baseActivityWithFragment = activity instanceof BaseActivityWithFragment ? (BaseActivityWithFragment) activity : null;
|
||
|
if (baseActivityWithFragment != null) {
|
||
|
baseActivityWithFragment.c_(str);
|
||
|
}
|
||
|
EasycashLandingActivity.c(getContext());
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void b() {
|
||
|
AppCompatTextView appCompatTextView = ((Ruy) this.d.e()).i;
|
||
|
C14957gcv.c(appCompatTextView, "");
|
||
|
AppCompatTextView appCompatTextView2 = appCompatTextView;
|
||
|
C14957gcv.e(appCompatTextView2, "");
|
||
|
appCompatTextView2.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void a(String str, String str2, String str3) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
C14957gcv.e(str3, "");
|
||
|
Ruy ruy = (Ruy) this.d.e();
|
||
|
ruy.j.setText(str);
|
||
|
ruy.a.setText(str2);
|
||
|
ruy.i.setText(str3);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void a() {
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
EasycashNcbSlipActivity.HBt hBt = EasycashNcbSlipActivity.b;
|
||
|
Bundle arguments = getArguments();
|
||
|
String string = arguments != null ? arguments.getString("APPLICATION_ID_EXTRA", "") : null;
|
||
|
Bundle arguments2 = getArguments();
|
||
|
context.startActivity(EasycashNcbSlipActivity.HBt.aey_(context, string, arguments2 != null ? arguments2.getString("PRODUCT_TYPE_EXTRA", null) : null, null));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void e() {
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
EasycashLoanTrackActivity.LWm lWm = EasycashLoanTrackActivity.b;
|
||
|
C14957gcv.e(context, "");
|
||
|
context.startActivity(new Intent(context, (Class<?>) EasycashLoanTrackActivity.class));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void j() {
|
||
|
Ruy ruy = (Ruy) this.d.e();
|
||
|
ruy.e.setImageResource(R.drawable.success);
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
ruy.j.setTextColor(nMh.getColor(context, R.color.2131099730));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void d() {
|
||
|
Button button = ((Ruy) this.d.e()).d;
|
||
|
C14957gcv.c(button, "");
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(0);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void g() {
|
||
|
Ruy ruy = (Ruy) this.d.e();
|
||
|
ruy.e.setImageResource(R.drawable.pending);
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
ruy.j.setTextColor(nMh.getColor(context, R.color.f14092131100917));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void f() {
|
||
|
Ruy ruy = (Ruy) this.d.e();
|
||
|
ruy.e.setImageResource(R.drawable.failed);
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
ruy.j.setTextColor(nMh.getColor(context, R.color.f13582131100866));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void i() {
|
||
|
AppCompatTextView appCompatTextView = ((Ruy) this.d.e()).f;
|
||
|
C14957gcv.c(appCompatTextView, "");
|
||
|
AppCompatTextView appCompatTextView2 = appCompatTextView;
|
||
|
C14957gcv.e(appCompatTextView2, "");
|
||
|
appCompatTextView2.setVisibility(0);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void c() {
|
||
|
AppCompatTextView appCompatTextView = ((Ruy) this.d.e()).f;
|
||
|
C14957gcv.c(appCompatTextView, "");
|
||
|
AppCompatTextView appCompatTextView2 = appCompatTextView;
|
||
|
C14957gcv.e(appCompatTextView2, "");
|
||
|
appCompatTextView2.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void o() {
|
||
|
Lld lld = this.tracker;
|
||
|
Lld lld2 = null;
|
||
|
if (lld == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld = null;
|
||
|
}
|
||
|
Bundle arguments = getArguments();
|
||
|
Lld.a(new Object[]{lld, arguments != null ? arguments.getString("PRODUCT_TYPE_EXTRA", "") : null}, 1412451036, -1412451032, System.identityHashCode(lld));
|
||
|
Lld lld3 = this.tracker;
|
||
|
if (lld3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld3 = null;
|
||
|
}
|
||
|
Bundle arguments2 = getArguments();
|
||
|
lld3.j(arguments2 != null ? arguments2.getString("FLOW_TYPE_EXTRA", "") : null);
|
||
|
Lld lld4 = this.tracker;
|
||
|
if (lld4 != null) {
|
||
|
lld2 = lld4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
Lld lld5 = lld2;
|
||
|
String str = this.i;
|
||
|
if (getActivity() != null) {
|
||
|
lld5.c(((BaseActivity) getActivity()).scbAnalytics, str);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void h() {
|
||
|
((Ruy) this.d.e()).c.setText(getText(R.string.easycash_success_result_commercial_text_back_button));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(EasycashSubmittedResultFragment easycashSubmittedResultFragment) {
|
||
|
C14957gcv.e(easycashSubmittedResultFragment, "");
|
||
|
final aRS ars = easycashSubmittedResultFragment.presenter;
|
||
|
if (ars == null) {
|
||
|
C14957gcv.a("");
|
||
|
ars = null;
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS(ars) { // from class: o.aRY
|
||
|
private aRS e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
aRS.d(this.e, (InterfaceC9196dfE) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = ars;
|
||
|
}
|
||
|
};
|
||
|
if (ars.f != 0) {
|
||
|
ieS.e(ars.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(EasycashSubmittedResultFragment easycashSubmittedResultFragment) {
|
||
|
C14957gcv.e(easycashSubmittedResultFragment, "");
|
||
|
aRS ars = easycashSubmittedResultFragment.presenter;
|
||
|
if (ars == null) {
|
||
|
C14957gcv.a("");
|
||
|
ars = null;
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.aRZ
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9196dfE) obj).e();
|
||
|
}
|
||
|
};
|
||
|
if (ars.f != 0) {
|
||
|
ieS.e(ars.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(EasycashSubmittedResultFragment easycashSubmittedResultFragment) {
|
||
|
JU ju;
|
||
|
C14957gcv.e(easycashSubmittedResultFragment, "");
|
||
|
aRS ars = easycashSubmittedResultFragment.presenter;
|
||
|
final String str = null;
|
||
|
if (ars == null) {
|
||
|
C14957gcv.a("");
|
||
|
ars = null;
|
||
|
}
|
||
|
JV jv = easycashSubmittedResultFragment.f;
|
||
|
if (jv != null && (ju = jv.c) != null) {
|
||
|
str = ju.a;
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS(str) { // from class: o.aRX
|
||
|
private String a;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
aRS.a(this.a, (InterfaceC9196dfE) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = str;
|
||
|
}
|
||
|
};
|
||
|
if (ars.f != 0) {
|
||
|
ieS.e(ars.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9196dfE
|
||
|
public final void c(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
this.i = str;
|
||
|
}
|
||
|
}
|