395 lines
17 KiB
Java
395 lines
17 KiB
Java
|
package com.scb.phone.view.fragment.bulktransfer;
|
||
|
|
||
|
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.ImageView;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.core.widget.NestedScrollView;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.bot.BotContactScbActivity;
|
||
|
import com.scb.phone.view.activity.bulktransfer.BulkTransferOtpActivity;
|
||
|
import com.scb.phone.view.activity.bulktransfer.BulkTransferSuccessActivity;
|
||
|
import com.scb.phone.view.activity.facialrecognition.BotCommonFacialRecognitionLandingActivity;
|
||
|
import com.scb.phone.view.adapter.bulktransfer.RecipientsReviewAdapter;
|
||
|
import com.scb.phone.view.custom.bulktransfer.CustomEffectiveDate;
|
||
|
import com.scb.phone.view.custom.common.DefaultButton;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource;
|
||
|
import com.scb.phone.view.fragment.bulktransfer.BulkTransferReviewFragment;
|
||
|
import o.AbstractC14961gcz;
|
||
|
import o.C11560ehe;
|
||
|
import o.C14957gcv;
|
||
|
import o.C2735akH;
|
||
|
import o.C2737akJ;
|
||
|
import o.ESf;
|
||
|
import o.FR;
|
||
|
import o.FS;
|
||
|
import o.Heg;
|
||
|
import o.InterfaceC0834Plv;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC13393fZL;
|
||
|
import o.InterfaceC14890gbN;
|
||
|
import o.InterfaceC6636cYn;
|
||
|
import o.MC;
|
||
|
import o.fZZ;
|
||
|
import o.huo;
|
||
|
import o.qeC;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class BulkTransferReviewFragment extends Hilt_BulkTransferReviewFragment implements InterfaceC6636cYn.saX {
|
||
|
private FR c;
|
||
|
private final InterfaceC13393fZL d;
|
||
|
private huo<Intent> j;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C2737akJ presenter;
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.saX
|
||
|
public final void e(String str) {
|
||
|
}
|
||
|
|
||
|
public BulkTransferReviewFragment() {
|
||
|
IeS ieS = new IeS(this);
|
||
|
C14957gcv.e(ieS, "");
|
||
|
this.d = new fZZ(ieS);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class IeS extends AbstractC14961gcz implements InterfaceC14890gbN<ESf> {
|
||
|
private BulkTransferReviewFragment b;
|
||
|
|
||
|
@Override // o.InterfaceC14890gbN
|
||
|
public final /* synthetic */ ESf invoke() {
|
||
|
View inflate = this.b.getLayoutInflater().inflate(R.layout.2131559474, (ViewGroup) null, false);
|
||
|
int i = R.id.amount;
|
||
|
CustomTransferAndPayItem customTransferAndPayItem = (CustomTransferAndPayItem) qeC.e(inflate, R.id.amount);
|
||
|
if (customTransferAndPayItem != null) {
|
||
|
i = R.id.confirm_button;
|
||
|
DefaultButton defaultButton = (DefaultButton) qeC.e(inflate, R.id.confirm_button);
|
||
|
if (defaultButton != null) {
|
||
|
i = R.id.group_header_text_view;
|
||
|
TextView textView = (TextView) qeC.e(inflate, R.id.group_header_text_view);
|
||
|
if (textView != null) {
|
||
|
i = R.id.iv_warning_message_icon;
|
||
|
ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_warning_message_icon);
|
||
|
if (imageView != null) {
|
||
|
i = R.id.ll_warning_message_layout;
|
||
|
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.ll_warning_message_layout);
|
||
|
if (linearLayout != null) {
|
||
|
i = R.id.recipients_recycler_view;
|
||
|
RecyclerView recyclerView = (RecyclerView) qeC.e(inflate, R.id.recipients_recycler_view);
|
||
|
if (recyclerView != null) {
|
||
|
i = R.id.schedule_disclaimer;
|
||
|
TextView textView2 = (TextView) qeC.e(inflate, R.id.schedule_disclaimer);
|
||
|
if (textView2 != null) {
|
||
|
i = R.id.schedule_effective_date;
|
||
|
CustomEffectiveDate customEffectiveDate = (CustomEffectiveDate) qeC.e(inflate, R.id.schedule_effective_date);
|
||
|
if (customEffectiveDate != null) {
|
||
|
i = R.id.schedule_effective_date_container;
|
||
|
LinearLayout linearLayout2 = (LinearLayout) qeC.e(inflate, R.id.schedule_effective_date_container);
|
||
|
if (linearLayout2 != null) {
|
||
|
i = R.id.target_label;
|
||
|
TextView textView3 = (TextView) qeC.e(inflate, R.id.target_label);
|
||
|
if (textView3 != null) {
|
||
|
i = R.id.total_amount;
|
||
|
CustomTransferAndPayItem customTransferAndPayItem2 = (CustomTransferAndPayItem) qeC.e(inflate, R.id.total_amount);
|
||
|
if (customTransferAndPayItem2 != null) {
|
||
|
i = R.id.total_fee;
|
||
|
CustomTransferAndPayItem customTransferAndPayItem3 = (CustomTransferAndPayItem) qeC.e(inflate, R.id.total_fee);
|
||
|
if (customTransferAndPayItem3 != null) {
|
||
|
i = R.id.total_label;
|
||
|
TextView textView4 = (TextView) qeC.e(inflate, R.id.total_label);
|
||
|
if (textView4 != null) {
|
||
|
i = R.id.transfer_and_pay_source;
|
||
|
CustomTransferAndPaySource customTransferAndPaySource = (CustomTransferAndPaySource) qeC.e(inflate, R.id.transfer_and_pay_source);
|
||
|
if (customTransferAndPaySource != null) {
|
||
|
i = R.id.tv_warning_message;
|
||
|
TextView textView5 = (TextView) qeC.e(inflate, R.id.tv_warning_message);
|
||
|
if (textView5 != null) {
|
||
|
i = R.id.tv_warning_message_header;
|
||
|
TextView textView6 = (TextView) qeC.e(inflate, R.id.tv_warning_message_header);
|
||
|
if (textView6 != null) {
|
||
|
return new ESf((NestedScrollView) inflate, customTransferAndPayItem, defaultButton, textView, imageView, linearLayout, recyclerView, textView2, customEffectiveDate, linearLayout2, textView3, customTransferAndPayItem2, customTransferAndPayItem3, textView4, customTransferAndPaySource, textView5, textView6);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
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) */
|
||
|
IeS(BulkTransferReviewFragment bulkTransferReviewFragment) {
|
||
|
super(0);
|
||
|
this.b = bulkTransferReviewFragment;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
NestedScrollView nestedScrollView = ((ESf) this.d.e()).h;
|
||
|
C14957gcv.c(nestedScrollView, "");
|
||
|
return nestedScrollView;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
FR fr;
|
||
|
Parcelable parcelable;
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
ESf eSf = (ESf) this.d.e();
|
||
|
RecyclerView recyclerView = eSf.c;
|
||
|
getContext();
|
||
|
recyclerView.setLayoutManager(new LinearLayoutManager(1, false));
|
||
|
eSf.e.setOnClickListener(new View.OnClickListener(this) { // from class: o.eHX
|
||
|
private BulkTransferReviewFragment c;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
BulkTransferReviewFragment.d(this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
Bundle arguments = getArguments();
|
||
|
C2737akJ c2737akJ = null;
|
||
|
if (arguments != null) {
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
parcelable = (Parcelable) arguments.getParcelable("com.scb.phone.EXTRA_REVIEW_DISPLAY", FR.class);
|
||
|
} else {
|
||
|
Parcelable parcelable2 = arguments.getParcelable("com.scb.phone.EXTRA_REVIEW_DISPLAY");
|
||
|
if (!(parcelable2 instanceof FR)) {
|
||
|
parcelable2 = null;
|
||
|
}
|
||
|
parcelable = (FR) parcelable2;
|
||
|
}
|
||
|
fr = (FR) parcelable;
|
||
|
} else {
|
||
|
fr = null;
|
||
|
}
|
||
|
this.c = fr;
|
||
|
C2737akJ c2737akJ2 = this.presenter;
|
||
|
if (c2737akJ2 != null) {
|
||
|
c2737akJ = c2737akJ2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
c2737akJ.e((C2737akJ) this);
|
||
|
FR fr2 = this.c;
|
||
|
c2737akJ.e = fr2;
|
||
|
C2735akH c2735akH = new C2735akH(fr2);
|
||
|
if (c2737akJ.f != 0) {
|
||
|
c2735akH.e(c2737akJ.f);
|
||
|
}
|
||
|
huo<Intent> registerForActivityResult = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.eHV
|
||
|
private BulkTransferReviewFragment d;
|
||
|
|
||
|
@Override // o.InterfaceC0834Plv
|
||
|
public final void d(Object obj) {
|
||
|
BulkTransferReviewFragment.e(this.d, (Heg) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
});
|
||
|
C14957gcv.c(registerForActivityResult, "");
|
||
|
this.j = registerForActivityResult;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.saX
|
||
|
public final void a(FR fr) {
|
||
|
C14957gcv.e(fr, "");
|
||
|
ESf eSf = (ESf) this.d.e();
|
||
|
eSf.b.setText(fr.g);
|
||
|
eSf.l.setSourceName(fr.b);
|
||
|
CustomTransferAndPaySource customTransferAndPaySource = eSf.l;
|
||
|
String str = fr.a;
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
customTransferAndPaySource.setAccountNumber(str);
|
||
|
CustomTransferAndPaySource customTransferAndPaySource2 = eSf.l;
|
||
|
String str2 = fr.d;
|
||
|
if (str2 == null) {
|
||
|
str2 = "";
|
||
|
}
|
||
|
customTransferAndPaySource2.setAvatar(str2);
|
||
|
eSf.c.setNestedScrollingEnabled(false);
|
||
|
eSf.c.setAdapter(new RecipientsReviewAdapter(fr.i));
|
||
|
CustomTransferAndPayItem customTransferAndPayItem = eSf.a;
|
||
|
String str3 = fr.j;
|
||
|
if (str3 == null) {
|
||
|
str3 = "";
|
||
|
}
|
||
|
customTransferAndPayItem.setValue(str3);
|
||
|
CustomTransferAndPayItem customTransferAndPayItem2 = eSf.i;
|
||
|
String str4 = fr.l;
|
||
|
if (str4 == null) {
|
||
|
str4 = "";
|
||
|
}
|
||
|
customTransferAndPayItem2.setValue(str4);
|
||
|
CustomTransferAndPayItem customTransferAndPayItem3 = eSf.j;
|
||
|
String str5 = fr.k;
|
||
|
customTransferAndPayItem3.setValue(str5 != null ? str5 : "");
|
||
|
eSf.j.mDividerView.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.saX
|
||
|
public final void e(FS fs) {
|
||
|
BulkTransferSuccessActivity.d(getContext(), fs);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.saX
|
||
|
public final void b(FR fr) {
|
||
|
BulkTransferOtpActivity.d(getContext(), fr);
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
activity.finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.saX
|
||
|
public final void d(String str) {
|
||
|
ESf eSf = (ESf) this.d.e();
|
||
|
LinearLayout linearLayout = eSf.f;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(0);
|
||
|
eSf.g.setEffectiveDate(str);
|
||
|
eSf.i.scheduleFeeText.setVisibility(0);
|
||
|
eSf.j.scheduleFeeText.setVisibility(0);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.saX
|
||
|
public final void b(MC mc) {
|
||
|
C14957gcv.e(mc, "");
|
||
|
huo<Intent> huoVar = this.j;
|
||
|
if (huoVar == null) {
|
||
|
C14957gcv.a("");
|
||
|
huoVar = null;
|
||
|
}
|
||
|
BotCommonFacialRecognitionLandingActivity.LWm lWm = BotCommonFacialRecognitionLandingActivity.b;
|
||
|
Context requireContext = requireContext();
|
||
|
C14957gcv.c(requireContext, "");
|
||
|
huoVar.d(BotCommonFacialRecognitionLandingActivity.LWm.afq_(requireContext, mc), null);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.saX
|
||
|
public final void c(String str, String str2) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
BotContactScbActivity.IeS ieS = BotContactScbActivity.b;
|
||
|
FragmentActivity requireActivity = requireActivity();
|
||
|
C14957gcv.c(requireActivity, "");
|
||
|
startActivity(BotContactScbActivity.IeS.YE_(requireActivity, str, str2));
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
activity.finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.saX
|
||
|
public final void e(String str, String str2) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
ESf eSf = (ESf) this.d.e();
|
||
|
LinearLayout linearLayout = eSf.d;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(0);
|
||
|
eSf.n.setText(str);
|
||
|
eSf.m.setText(str2);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroyView() {
|
||
|
huo<Intent> huoVar = this.j;
|
||
|
if (huoVar == null) {
|
||
|
C14957gcv.a("");
|
||
|
huoVar = null;
|
||
|
}
|
||
|
huoVar.e();
|
||
|
super.onDestroyView();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class HBt {
|
||
|
private HBt() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ HBt(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(BulkTransferReviewFragment bulkTransferReviewFragment) {
|
||
|
C14957gcv.e(bulkTransferReviewFragment, "");
|
||
|
C2737akJ c2737akJ = bulkTransferReviewFragment.presenter;
|
||
|
if (c2737akJ == null) {
|
||
|
C14957gcv.a("");
|
||
|
c2737akJ = null;
|
||
|
}
|
||
|
c2737akJ.d(false);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(BulkTransferReviewFragment bulkTransferReviewFragment, Heg heg) {
|
||
|
C14957gcv.e(bulkTransferReviewFragment, "");
|
||
|
if (-1 == heg.e && heg.b != null) {
|
||
|
bulkTransferReviewFragment.y();
|
||
|
Intent intent = heg.b;
|
||
|
boolean booleanExtra = intent != null ? intent.getBooleanExtra("com.scb.phone.EXTRA_IS_FACE_VALIDATE", false) : false;
|
||
|
C2737akJ c2737akJ = bulkTransferReviewFragment.presenter;
|
||
|
if (c2737akJ == null) {
|
||
|
C14957gcv.a("");
|
||
|
c2737akJ = null;
|
||
|
}
|
||
|
c2737akJ.d(booleanExtra);
|
||
|
return;
|
||
|
}
|
||
|
FragmentActivity activity = bulkTransferReviewFragment.getActivity();
|
||
|
if (activity != null) {
|
||
|
activity.finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final BulkTransferReviewFragment e(FR fr) {
|
||
|
BulkTransferReviewFragment bulkTransferReviewFragment = new BulkTransferReviewFragment();
|
||
|
Bundle bundle = new Bundle();
|
||
|
bundle.putParcelable("com.scb.phone.EXTRA_REVIEW_DISPLAY", fr);
|
||
|
bulkTransferReviewFragment.setArguments(bundle);
|
||
|
return bulkTransferReviewFragment;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new HBt((byte) 0);
|
||
|
}
|
||
|
}
|