what-the-bank/sources/com/scb/phone/view/fragment/easycash/EasycashCardXSuccessFragmen...

310 lines
12 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.easycash;
import android.content.Context;
import android.os.Bundle;
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.AppCompatTextView;
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.EasycashNcbSlipActivity;
import com.scb.phone.view.fragment.easycash.EasycashCardXSuccessFragment;
import o.AbstractC14961gcz;
import o.C12914fKz;
import o.C14957gcv;
import o.C1856aQP;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9195dfD;
import o.Lld;
import o.ZI;
import o.fZZ;
import o.iQQ;
import o.qeC;
/* loaded from: classes5.dex */
public final class EasycashCardXSuccessFragment extends Hilt_EasycashCardXSuccessFragment implements InterfaceC9195dfD {
public static final LWm d = new LWm(0);
private final InterfaceC13393fZL c;
@InterfaceC13391fZD
public C1856aQP presenterCardX;
@InterfaceC13391fZD
public Lld tracker;
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN<iQQ> {
private EasycashCardXSuccessFragment a;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ iQQ invoke() {
View inflate = this.a.getLayoutInflater().inflate(R.layout.2131559617, (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.iv_success;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_success);
if (imageView != null) {
i = R.id.tv_ncb_slip;
AppCompatTextView appCompatTextView = (AppCompatTextView) qeC.e(inflate, R.id.tv_ncb_slip);
if (appCompatTextView != null) {
i = R.id.tv_success_description;
AppCompatTextView appCompatTextView2 = (AppCompatTextView) qeC.e(inflate, R.id.tv_success_description);
if (appCompatTextView2 != null) {
i = R.id.tv_success_title;
AppCompatTextView appCompatTextView3 = (AppCompatTextView) qeC.e(inflate, R.id.tv_success_title);
if (appCompatTextView3 != null) {
i = R.id.tv_time_stamp;
AppCompatTextView appCompatTextView4 = (AppCompatTextView) qeC.e(inflate, R.id.tv_time_stamp);
if (appCompatTextView4 != null) {
RelativeLayout relativeLayout = (RelativeLayout) inflate;
iQQ iqq = new iQQ(relativeLayout, button, imageView, appCompatTextView, appCompatTextView2, appCompatTextView3, appCompatTextView4, relativeLayout);
C14957gcv.c(iqq, "");
return iqq;
}
}
}
}
}
}
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(EasycashCardXSuccessFragment easycashCardXSuccessFragment) {
super(0);
this.a = easycashCardXSuccessFragment;
}
}
public EasycashCardXSuccessFragment() {
Sts sts = new Sts(this);
C14957gcv.e(sts, "");
this.c = new fZZ(sts);
}
/* 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, "");
C1856aQP c1856aQP = this.presenterCardX;
if (c1856aQP == null) {
C14957gcv.a("");
c1856aQP = null;
}
c1856aQP.e((C1856aQP) this);
RelativeLayout relativeLayout = ((iQQ) this.c.e()).e;
C14957gcv.c(relativeLayout, "");
return relativeLayout;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
C1856aQP c1856aQP = this.presenterCardX;
if (c1856aQP == null) {
C14957gcv.a("");
c1856aQP = null;
}
Bundle arguments = getArguments();
final String string = arguments != null ? arguments.getString("CARD_COMPANY_EXTRA") : null;
if (string == null) {
string = "";
}
Bundle arguments2 = getArguments();
final String string2 = arguments2 != null ? arguments2.getString("PRODUCT_TYPE_EXTRA") : null;
if (string2 == null) {
string2 = "";
}
C14957gcv.e(string, "");
C14957gcv.e(string2, "");
ZI.IeS ieS = new ZI.IeS(string, string2) { // from class: o.aQN
private String c;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1856aQP.e(this.c, this.d, (InterfaceC9195dfD) obj);
}
{
this.c = string;
this.d = string2;
}
};
if (c1856aQP.f != 0) {
ieS.e(c1856aQP.f);
}
iQQ iqq = (iQQ) this.c.e();
iqq.d.setOnClickListener(new View.OnClickListener(this) { // from class: o.eTb
private EasycashCardXSuccessFragment c;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
EasycashCardXSuccessFragment.e(this.c);
}
{
this.c = this;
}
});
iqq.b.setOnClickListener(new View.OnClickListener(this) { // from class: o.eSZ
private EasycashCardXSuccessFragment a;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
EasycashCardXSuccessFragment.a(this.a);
}
{
this.a = this;
}
});
}
@Override // o.InterfaceC9195dfD
public final void a() {
((iQQ) this.c.e()).a.setText(getString(R.string.easycash_success_result_description_b2k));
}
@Override // o.InterfaceC9195dfD
public final void b() {
((iQQ) this.c.e()).a.setText(getString(R.string.easycash_success_result_description_cdx));
}
@Override // o.InterfaceC9195dfD
public final void c() {
AppCompatTextView appCompatTextView = ((iQQ) this.c.e()).h;
Bundle arguments = getArguments();
appCompatTextView.setText(arguments != null ? arguments.getString("TIME_STAMP_EXTRA") : null);
}
@Override // o.InterfaceC9195dfD
public final void e() {
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.InterfaceC9195dfD
public final void d(String str) {
C14957gcv.e(str, "");
FragmentActivity activity = getActivity();
C14957gcv.d(activity, "");
((BaseActivityWithFragment) activity).c_(str);
EasycashLandingActivity.c(getContext());
}
@Override // o.InterfaceC9195dfD
public final void d() {
iQQ iqq = (iQQ) this.c.e();
AppCompatTextView appCompatTextView = iqq.c;
Bundle arguments = getArguments();
appCompatTextView.setText(arguments != null ? arguments.getString("SUCCESS_TITLE") : null);
AppCompatTextView appCompatTextView2 = iqq.a;
Bundle arguments2 = getArguments();
appCompatTextView2.setText(arguments2 != null ? arguments2.getString("SUCCESS_DESCRIPTION") : null);
AppCompatTextView appCompatTextView3 = iqq.d;
appCompatTextView3.setText(getString(R.string.easycash_success_result_commercial_ncb_slip_text_button));
C12914fKz.e(new Object[]{appCompatTextView3}, 162025388, -162025380, (int) System.currentTimeMillis());
iqq.b.setText(getString(R.string.easycash_success_result_commercial_text_back_button));
AppCompatTextView appCompatTextView4 = iqq.h;
C14957gcv.c(appCompatTextView4, "");
AppCompatTextView appCompatTextView5 = appCompatTextView4;
C14957gcv.e(appCompatTextView5, "");
appCompatTextView5.setVisibility(8);
}
public static /* synthetic */ void e(EasycashCardXSuccessFragment easycashCardXSuccessFragment) {
C14957gcv.e(easycashCardXSuccessFragment, "");
Bundle arguments = easycashCardXSuccessFragment.getArguments();
C1856aQP c1856aQP = null;
if (arguments != null) {
Lld lld = easycashCardXSuccessFragment.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 = easycashCardXSuccessFragment.tracker;
if (lld2 == null) {
C14957gcv.a("");
lld2 = null;
}
lld2.j(arguments.getString("FLOW_TYPE_EXTRA"));
Lld lld3 = easycashCardXSuccessFragment.tracker;
if (lld3 == null) {
C14957gcv.a("");
lld3 = null;
}
Lld lld4 = lld3;
if (easycashCardXSuccessFragment.getActivity() != null) {
lld4.c(((BaseActivity) easycashCardXSuccessFragment.getActivity()).scbAnalytics, "apply_loan_feedback_success");
}
}
C1856aQP c1856aQP2 = easycashCardXSuccessFragment.presenterCardX;
if (c1856aQP2 != null) {
c1856aQP = c1856aQP2;
} else {
C14957gcv.a("");
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.aQK
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9195dfD) obj).e();
}
};
if (c1856aQP.f != 0) {
ieS.e(c1856aQP.f);
}
}
public static /* synthetic */ void a(EasycashCardXSuccessFragment easycashCardXSuccessFragment) {
C14957gcv.e(easycashCardXSuccessFragment, "");
final C1856aQP c1856aQP = easycashCardXSuccessFragment.presenterCardX;
if (c1856aQP == null) {
C14957gcv.a("");
c1856aQP = null;
}
ZI.IeS ieS = new ZI.IeS(c1856aQP) { // from class: o.aQL
private C1856aQP b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1856aQP.a(this.b, (InterfaceC9195dfD) obj);
}
{
this.b = c1856aQP;
}
};
if (c1856aQP.f != 0) {
ieS.e(c1856aQP.f);
}
}
}