462 lines
18 KiB
Java
462 lines
18 KiB
Java
|
package com.scb.phone.view.fragment.easycash.declinencb;
|
||
|
|
||
|
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 android.widget.RelativeLayout;
|
||
|
import androidx.appcompat.widget.AppCompatImageView;
|
||
|
import androidx.appcompat.widget.AppCompatTextView;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.BaseActivity;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashLandingActivity;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashSubmittedResultActivity;
|
||
|
import com.scb.phone.view.activity.easycash.declinencb.EasycashDeclineNCBResultActivity;
|
||
|
import com.scb.phone.view.fragment.easycash.declinencb.EasycashDeclineNCBConsentFragment;
|
||
|
import o.AbstractC14961gcz;
|
||
|
import o.C12891fKc;
|
||
|
import o.C14957gcv;
|
||
|
import o.C1989aUI;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC13393fZL;
|
||
|
import o.InterfaceC14890gbN;
|
||
|
import o.InterfaceC17396wQp;
|
||
|
import o.InterfaceC9208dfQ;
|
||
|
import o.InterfaceC9209dfR;
|
||
|
import o.JV;
|
||
|
import o.JX;
|
||
|
import o.KM;
|
||
|
import o.Lld;
|
||
|
import o.ZI;
|
||
|
import o.fZZ;
|
||
|
import o.qeC;
|
||
|
import o.wBS;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class EasycashDeclineNCBConsentFragment extends Hilt_EasycashDeclineNCBConsentFragment implements InterfaceC9209dfR {
|
||
|
public static final IeS c = new IeS(0);
|
||
|
private final InterfaceC13393fZL d;
|
||
|
private InterfaceC9208dfQ f;
|
||
|
private JV g;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C1989aUI presenter;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public Lld tracker;
|
||
|
|
||
|
public EasycashDeclineNCBConsentFragment() {
|
||
|
LWm lWm = new LWm(this);
|
||
|
C14957gcv.e(lWm, "");
|
||
|
this.d = new fZZ(lWm);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN<wBS> {
|
||
|
private EasycashDeclineNCBConsentFragment b;
|
||
|
|
||
|
@Override // o.InterfaceC14890gbN
|
||
|
public final /* synthetic */ wBS invoke() {
|
||
|
View inflate = this.b.getLayoutInflater().inflate(R.layout.2131559593, (ViewGroup) null, false);
|
||
|
int i = R.id.bt_next;
|
||
|
Button button = (Button) qeC.e(inflate, R.id.bt_next);
|
||
|
if (button != null) {
|
||
|
i = R.id.iv_decline_ncb;
|
||
|
ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_decline_ncb);
|
||
|
if (imageView != null) {
|
||
|
i = R.id.iv_full_screen_decline_ncb;
|
||
|
AppCompatImageView appCompatImageView = (AppCompatImageView) qeC.e(inflate, R.id.iv_full_screen_decline_ncb);
|
||
|
if (appCompatImageView != null) {
|
||
|
i = R.id.ll_layout_content;
|
||
|
RelativeLayout relativeLayout = (RelativeLayout) qeC.e(inflate, R.id.ll_layout_content);
|
||
|
if (relativeLayout != null) {
|
||
|
i = R.id.tv_card_type;
|
||
|
AppCompatTextView appCompatTextView = (AppCompatTextView) qeC.e(inflate, R.id.tv_card_type);
|
||
|
if (appCompatTextView != null) {
|
||
|
i = R.id.tv_card_type_title;
|
||
|
AppCompatTextView appCompatTextView2 = (AppCompatTextView) qeC.e(inflate, R.id.tv_card_type_title);
|
||
|
if (appCompatTextView2 != null) {
|
||
|
i = R.id.tv_name;
|
||
|
AppCompatTextView appCompatTextView3 = (AppCompatTextView) qeC.e(inflate, R.id.tv_name);
|
||
|
if (appCompatTextView3 != null) {
|
||
|
i = R.id.tv_name_title;
|
||
|
AppCompatTextView appCompatTextView4 = (AppCompatTextView) qeC.e(inflate, R.id.tv_name_title);
|
||
|
if (appCompatTextView4 != null) {
|
||
|
RelativeLayout relativeLayout2 = (RelativeLayout) inflate;
|
||
|
return new wBS(relativeLayout2, button, imageView, appCompatImageView, relativeLayout, appCompatTextView, appCompatTextView2, appCompatTextView3, appCompatTextView4, relativeLayout2);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
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) */
|
||
|
LWm(EasycashDeclineNCBConsentFragment easycashDeclineNCBConsentFragment) {
|
||
|
super(0);
|
||
|
this.b = easycashDeclineNCBConsentFragment;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class IeS {
|
||
|
private IeS() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ IeS(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
C1989aUI c1989aUI = this.presenter;
|
||
|
if (c1989aUI == null) {
|
||
|
C14957gcv.a("");
|
||
|
c1989aUI = null;
|
||
|
}
|
||
|
c1989aUI.e((C1989aUI) this);
|
||
|
RelativeLayout relativeLayout = ((wBS) this.d.e()).a;
|
||
|
C14957gcv.c(relativeLayout, "");
|
||
|
return relativeLayout;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
JV jv;
|
||
|
Parcelable parcelable;
|
||
|
Parcelable parcelable2;
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
Bundle arguments = getArguments();
|
||
|
if (arguments != null) {
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
parcelable2 = (Parcelable) arguments.getParcelable("AUTO_CONFIRMATION_DISPLAY_EXTRA", JV.class);
|
||
|
} else {
|
||
|
Parcelable parcelable3 = arguments.getParcelable("AUTO_CONFIRMATION_DISPLAY_EXTRA");
|
||
|
if (!(parcelable3 instanceof JV)) {
|
||
|
parcelable3 = null;
|
||
|
}
|
||
|
parcelable2 = (JV) parcelable3;
|
||
|
}
|
||
|
jv = (JV) parcelable2;
|
||
|
} else {
|
||
|
jv = null;
|
||
|
}
|
||
|
this.g = jv;
|
||
|
((wBS) this.d.e()).d.setOnClickListener(new View.OnClickListener(this) { // from class: o.eUS
|
||
|
private EasycashDeclineNCBConsentFragment c;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
EasycashDeclineNCBConsentFragment.e(this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
Bundle arguments2 = getArguments();
|
||
|
if (arguments2 != null) {
|
||
|
C1989aUI c1989aUI = this.presenter;
|
||
|
if (c1989aUI == null) {
|
||
|
C14957gcv.a("");
|
||
|
c1989aUI = null;
|
||
|
}
|
||
|
String string = arguments2.getString("APPLICATION_ID_EXTRA");
|
||
|
final String str = string == null ? "" : string;
|
||
|
String string2 = arguments2.getString("PRODUCT_TYPE_EXTRA");
|
||
|
final String str2 = string2 != null ? string2 : "";
|
||
|
final JV jv2 = this.g;
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
parcelable = (Parcelable) arguments2.getParcelable("COMMERCIAL_CONFIRM_DISPLAY_EXTRA", JX.class);
|
||
|
} else {
|
||
|
Parcelable parcelable4 = arguments2.getParcelable("COMMERCIAL_CONFIRM_DISPLAY_EXTRA");
|
||
|
parcelable = (JX) (parcelable4 instanceof JX ? parcelable4 : null);
|
||
|
}
|
||
|
final JX jx = (JX) parcelable;
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
c1989aUI.b = str2;
|
||
|
final C1989aUI c1989aUI2 = c1989aUI;
|
||
|
ZI.IeS ieS = new ZI.IeS(str2, c1989aUI2, jv2, jx, str) { // from class: o.aUK
|
||
|
private JV a;
|
||
|
private JX b;
|
||
|
private C1989aUI c;
|
||
|
private String d;
|
||
|
private String e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C1989aUI.b(this.d, this.c, this.a, this.b, this.e, (InterfaceC9209dfR) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = str2;
|
||
|
this.c = c1989aUI2;
|
||
|
this.a = jv2;
|
||
|
this.b = jx;
|
||
|
this.e = str;
|
||
|
}
|
||
|
};
|
||
|
if (c1989aUI.f != 0) {
|
||
|
ieS.e(c1989aUI.f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.easycash.declinencb.Hilt_EasycashDeclineNCBConsentFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onAttach(Context context) {
|
||
|
C14957gcv.e(context, "");
|
||
|
super.onAttach(context);
|
||
|
InterfaceC17396wQp activity = getActivity();
|
||
|
C14957gcv.d(activity, "");
|
||
|
this.f = (InterfaceC9208dfQ) activity;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9209dfR
|
||
|
public final void c(KM km) {
|
||
|
String string;
|
||
|
C14957gcv.e(km, "");
|
||
|
wBS wbs = (wBS) this.d.e();
|
||
|
C12891fKc.azx_(km.c, wbs.b);
|
||
|
AppCompatTextView appCompatTextView = wbs.f;
|
||
|
String str = km.d;
|
||
|
if (str == null) {
|
||
|
str = getString(R.string.easycash_decline_ncb_consent_name_title);
|
||
|
}
|
||
|
appCompatTextView.setText(str);
|
||
|
wbs.j.setText(km.b);
|
||
|
AppCompatTextView appCompatTextView2 = wbs.h;
|
||
|
String str2 = km.e;
|
||
|
if (str2 != null) {
|
||
|
string = str2;
|
||
|
} else {
|
||
|
string = getString(R.string.easycash_decline_ncb_consent_card_type_title);
|
||
|
}
|
||
|
appCompatTextView2.setText(string);
|
||
|
wbs.c.setText(km.a);
|
||
|
Bundle arguments = getArguments();
|
||
|
if (arguments != null) {
|
||
|
Lld lld = this.tracker;
|
||
|
Lld lld2 = null;
|
||
|
if (lld == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld = null;
|
||
|
}
|
||
|
Lld.a(new Object[]{lld, arguments.getString("PRODUCT_TYPE_EXTRA")}, 1412451036, -1412451032, System.identityHashCode(lld));
|
||
|
Lld lld3 = this.tracker;
|
||
|
if (lld3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld3 = null;
|
||
|
}
|
||
|
lld3.j(arguments.getString("FLOW_TYPE_EXTRA"));
|
||
|
Lld lld4 = this.tracker;
|
||
|
if (lld4 != null) {
|
||
|
lld2 = lld4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
Lld lld5 = lld2;
|
||
|
if (getActivity() != null) {
|
||
|
lld5.c(((BaseActivity) getActivity()).scbAnalytics, "apply_loan_feedback_failed_landing");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9209dfR
|
||
|
public final void c() {
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
EasycashDeclineNCBResultActivity.Sts sts = EasycashDeclineNCBResultActivity.b;
|
||
|
Bundle arguments = getArguments();
|
||
|
String string = arguments != null ? arguments.getString("CARD_COMPANY_EXTRA") : null;
|
||
|
if (string == null) {
|
||
|
string = "";
|
||
|
}
|
||
|
C14957gcv.e(context, "");
|
||
|
C14957gcv.e(string, "");
|
||
|
Intent intent = new Intent(context, (Class<?>) EasycashDeclineNCBResultActivity.class);
|
||
|
intent.putExtra("CARD_COMPANY_EXTRA", string);
|
||
|
context.startActivity(intent);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9209dfR
|
||
|
public final void b(String str) {
|
||
|
Bundle arguments;
|
||
|
Parcelable parcelable;
|
||
|
Context context = getContext();
|
||
|
if (context == null || (arguments = getArguments()) == null) {
|
||
|
return;
|
||
|
}
|
||
|
EasycashSubmittedResultActivity.Sts sts = EasycashSubmittedResultActivity.b;
|
||
|
String string = arguments.getString("APPLICATION_ID_EXTRA");
|
||
|
if (string == null) {
|
||
|
string = "";
|
||
|
}
|
||
|
String string2 = arguments.getString("PRODUCT_TYPE_EXTRA");
|
||
|
String string3 = arguments.getString("FLOW_TYPE_EXTRA");
|
||
|
if (string3 == null) {
|
||
|
string3 = "";
|
||
|
}
|
||
|
JV jv = this.g;
|
||
|
C14957gcv.c(arguments, "");
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
parcelable = (Parcelable) arguments.getParcelable("COMMERCIAL_CONFIRM_DISPLAY_EXTRA", JX.class);
|
||
|
} else {
|
||
|
Parcelable parcelable2 = arguments.getParcelable("COMMERCIAL_CONFIRM_DISPLAY_EXTRA");
|
||
|
if (!(parcelable2 instanceof JX)) {
|
||
|
parcelable2 = null;
|
||
|
}
|
||
|
parcelable = (JX) parcelable2;
|
||
|
}
|
||
|
context.startActivity(EasycashSubmittedResultActivity.Sts.aeC_(context, string, string2, string3, jv, (JX) parcelable, str));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9209dfR
|
||
|
public final void c(String str, JX jx) {
|
||
|
C14957gcv.e(str, "");
|
||
|
wBS wbs = (wBS) this.d.e();
|
||
|
ImageView imageView = wbs.b;
|
||
|
C14957gcv.c(imageView, "");
|
||
|
ImageView imageView2 = imageView;
|
||
|
C14957gcv.e(imageView2, "");
|
||
|
imageView2.setVisibility(8);
|
||
|
AppCompatImageView appCompatImageView = wbs.e;
|
||
|
C14957gcv.c(appCompatImageView, "");
|
||
|
AppCompatImageView appCompatImageView2 = appCompatImageView;
|
||
|
C14957gcv.e(appCompatImageView2, "");
|
||
|
appCompatImageView2.setVisibility(0);
|
||
|
Lld lld = null;
|
||
|
C12891fKc.azx_(jx != null ? jx.c : null, wbs.e);
|
||
|
wbs.f.setText(getString(R.string.easycash_decline_ncb_consent_commercial_name_title));
|
||
|
wbs.j.setText(jx != null ? jx.a : null);
|
||
|
wbs.h.setText(getString(R.string.easycash_decline_ncb_consent_commercial_type_title));
|
||
|
wbs.c.setText(str);
|
||
|
Bundle arguments = getArguments();
|
||
|
if (arguments != null) {
|
||
|
Lld lld2 = this.tracker;
|
||
|
if (lld2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld2 = null;
|
||
|
}
|
||
|
Lld.a(new Object[]{lld2, arguments.getString("PRODUCT_TYPE_EXTRA")}, 1412451036, -1412451032, System.identityHashCode(lld2));
|
||
|
Lld lld3 = this.tracker;
|
||
|
if (lld3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld3 = null;
|
||
|
}
|
||
|
lld3.j(arguments.getString("FLOW_TYPE_EXTRA"));
|
||
|
Lld lld4 = this.tracker;
|
||
|
if (lld4 != null) {
|
||
|
lld = lld4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
Lld lld5 = lld;
|
||
|
if (getActivity() != null) {
|
||
|
lld5.c(((BaseActivity) getActivity()).scbAnalytics, "apply_loan_feedback_failed_landing");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9209dfR
|
||
|
public final void e() {
|
||
|
X();
|
||
|
InterfaceC9208dfQ interfaceC9208dfQ = this.f;
|
||
|
if (interfaceC9208dfQ != null) {
|
||
|
interfaceC9208dfQ.e();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9209dfR
|
||
|
public final void a(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
FragmentActivity activity = getActivity();
|
||
|
BaseActivity baseActivity = activity instanceof BaseActivity ? (BaseActivity) activity : null;
|
||
|
if (baseActivity != null) {
|
||
|
baseActivity.c_(str);
|
||
|
}
|
||
|
EasycashLandingActivity.c(getContext());
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(EasycashDeclineNCBConsentFragment easycashDeclineNCBConsentFragment) {
|
||
|
C14957gcv.e(easycashDeclineNCBConsentFragment, "");
|
||
|
Bundle arguments = easycashDeclineNCBConsentFragment.getArguments();
|
||
|
final C1989aUI c1989aUI = null;
|
||
|
if (arguments != null) {
|
||
|
Lld lld = easycashDeclineNCBConsentFragment.tracker;
|
||
|
if (lld == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld = null;
|
||
|
}
|
||
|
Lld.a(new Object[]{lld, arguments.getString("PRODUCT_TYPE_EXTRA")}, 1412451036, -1412451032, System.identityHashCode(lld));
|
||
|
Lld lld2 = easycashDeclineNCBConsentFragment.tracker;
|
||
|
if (lld2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld2 = null;
|
||
|
}
|
||
|
lld2.j(arguments.getString("FLOW_TYPE_EXTRA"));
|
||
|
Lld lld3 = easycashDeclineNCBConsentFragment.tracker;
|
||
|
if (lld3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld3 = null;
|
||
|
}
|
||
|
C1989aUI c1989aUI2 = easycashDeclineNCBConsentFragment.presenter;
|
||
|
if (c1989aUI2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c1989aUI2 = null;
|
||
|
}
|
||
|
KM km = c1989aUI2.e;
|
||
|
if (km == null) {
|
||
|
C14957gcv.a("");
|
||
|
km = null;
|
||
|
}
|
||
|
Lld.a(new Object[]{lld3, km.a}, -385924495, 385924498, System.identityHashCode(lld3));
|
||
|
Lld lld4 = easycashDeclineNCBConsentFragment.tracker;
|
||
|
if (lld4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld4 = null;
|
||
|
}
|
||
|
Lld lld5 = lld4;
|
||
|
if (easycashDeclineNCBConsentFragment.getActivity() != null) {
|
||
|
lld5.c(((BaseActivity) easycashDeclineNCBConsentFragment.getActivity()).scbAnalytics, "apply_loan_feedback_failed");
|
||
|
}
|
||
|
}
|
||
|
C1989aUI c1989aUI3 = easycashDeclineNCBConsentFragment.presenter;
|
||
|
if (c1989aUI3 != null) {
|
||
|
c1989aUI = c1989aUI3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS(c1989aUI) { // from class: o.aUJ
|
||
|
private C1989aUI c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C1989aUI.b(this.c, (InterfaceC9209dfR) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = c1989aUI;
|
||
|
}
|
||
|
};
|
||
|
if (c1989aUI.f != 0) {
|
||
|
ieS.e(c1989aUI.f);
|
||
|
}
|
||
|
}
|
||
|
}
|