what-the-bank/sources/com/scb/phone/view/fragment/closeaccount/CloseAccountSuccessFragment...

466 lines
18 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.closeaccount;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.FragmentActivity;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Optional;
import butterknife.Unbinder;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.HomeActivity;
import com.scb.phone.view.adapter.closeaccount.AmountDetailsSuccessAdapter;
import com.scb.phone.view.custom.closeaccount.AccountAmountCustomComponent;
import com.scb.phone.view.custom.common.MultilineDataComponent;
import com.scb.phone.view.custom.investment.CustomSuccessInformation;
import com.scb.phone.view.fragment.closeaccount.CloseAccountSuccessFragment;
import o.AbstractC13163fSk;
import o.C0509Ig;
import o.C13417fZt;
import o.C14820gN;
import o.C3558azn;
import o.C6204cLu;
import o.EZ;
import o.EnumC8951daY;
import o.InterfaceC13150fSU;
import o.InterfaceC13391fZD;
import o.InterfaceC9131ddt;
import o.ZI;
import o.fKR;
import o.fKY;
import o.fRR;
import o.fSJ;
import o.fSQ;
import o.pyT;
import org.jmrtd.lds.ImageInfo;
/* loaded from: classes5.dex */
public class CloseAccountSuccessFragment extends Hilt_CloseAccountSuccessFragment<C0509Ig> implements InterfaceC9131ddt {
@BindView
AccountAmountCustomComponent accountAmountComponent;
private fSJ d;
@InterfaceC13391fZD
public C14820gN itemFactory;
@BindView
LinearLayout layoutDepositDetails;
@InterfaceC13391fZD
public C3558azn presenter;
@BindView
MultilineDataComponent receivingAccountData;
@BindView
RecyclerView recyclerView;
@BindView
Button saveSlip;
@BindView
CustomSuccessInformation successInformation;
@InterfaceC13391fZD
public C6204cLu themesSlipPresenter;
@BindView
TextView tvReferenceId;
@BindView
TextView tvSuccessDescription;
@BindView
TextView tvSuccessTitle;
@BindView
TextView tvTransactionDate;
/* loaded from: classes5.dex */
public class CloseAccountSuccessfulDisplay_ViewBinding implements Unbinder {
private CloseAccountSuccessfulDisplay d;
public CloseAccountSuccessfulDisplay_ViewBinding(CloseAccountSuccessfulDisplay closeAccountSuccessfulDisplay, View view) {
this.d = closeAccountSuccessfulDisplay;
closeAccountSuccessfulDisplay.tvSuccessTitle = (TextView) pyT.e(view, R.id.text_title, "field 'tvSuccessTitle'", TextView.class);
closeAccountSuccessfulDisplay.tvSuccessDescription = (TextView) pyT.e(view, R.id.text_desc, "field 'tvSuccessDescription'", TextView.class);
closeAccountSuccessfulDisplay.tvTransactionDate = (TextView) pyT.e(view, R.id.text_date_time, "field 'tvTransactionDate'", TextView.class);
closeAccountSuccessfulDisplay.tvReferenceId = (TextView) pyT.e(view, R.id.text_reference_id, "field 'tvReferenceId'", TextView.class);
closeAccountSuccessfulDisplay.successInformation = (CustomSuccessInformation) pyT.e(view, R.id.success_information, "field 'successInformation'", CustomSuccessInformation.class);
closeAccountSuccessfulDisplay.accountAmountComponent = (AccountAmountCustomComponent) pyT.e(view, R.id.closing_account_amount_data, "field 'accountAmountComponent'", AccountAmountCustomComponent.class);
closeAccountSuccessfulDisplay.receivingAccountData = (MultilineDataComponent) pyT.e(view, R.id.receiving_account_data, "field 'receivingAccountData'", MultilineDataComponent.class);
closeAccountSuccessfulDisplay.layoutDepositDetails = (LinearLayout) pyT.e(view, R.id.ll_deposit_details, "field 'layoutDepositDetails'", LinearLayout.class);
closeAccountSuccessfulDisplay.recyclerView = (RecyclerView) pyT.e(view, R.id.recycler_view, "field 'recyclerView'", RecyclerView.class);
}
@Override // butterknife.Unbinder
public final void a() {
CloseAccountSuccessfulDisplay closeAccountSuccessfulDisplay = this.d;
if (closeAccountSuccessfulDisplay == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
closeAccountSuccessfulDisplay.tvSuccessTitle = null;
closeAccountSuccessfulDisplay.tvSuccessDescription = null;
closeAccountSuccessfulDisplay.tvTransactionDate = null;
closeAccountSuccessfulDisplay.tvReferenceId = null;
closeAccountSuccessfulDisplay.successInformation = null;
closeAccountSuccessfulDisplay.accountAmountComponent = null;
closeAccountSuccessfulDisplay.receivingAccountData = null;
closeAccountSuccessfulDisplay.layoutDepositDetails = null;
closeAccountSuccessfulDisplay.recyclerView = null;
}
}
@Override // o.InterfaceC9131ddt
public final /* synthetic */ void b(C0509Ig c0509Ig, boolean z) {
super.c((CloseAccountSuccessFragment) c0509Ig, z);
}
public static CloseAccountSuccessFragment h() {
return new CloseAccountSuccessFragment();
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559511, viewGroup, false);
ButterKnife.c(this, inflate);
this.presenter.e((C3558azn) this);
return inflate;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onActivityCreated(Bundle bundle) {
super.onActivityCreated(bundle);
final C3558azn c3558azn = this.presenter;
AbstractC13163fSk zip = AbstractC13163fSk.zip(c3558azn.d.d(), c3558azn.b.b(), c3558azn.c.c(), new InterfaceC13150fSU(c3558azn) { // from class: o.azr
private C3558azn c;
@Override // o.InterfaceC13150fSU
public final Object b(Object obj, Object obj2, Object obj3) {
C0509Ig e;
e = this.c.g.e((Dhj) obj, (TPf) obj2, (C5762bzF) obj3);
return e;
}
{
this.c = c3558azn;
}
});
ZI.IeS ieS = new ZI.IeS() { // from class: o.azs
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9131ddt) obj).y();
}
};
if (c3558azn.f != 0) {
ieS.e(c3558azn.f);
}
c3558azn.b.d(zip, new C3558azn.AnonymousClass3(c3558azn));
}
@Override // o.InterfaceC9131ddt
public final void d(C0509Ig c0509Ig) {
this.tvSuccessTitle.setText(getString(R.string.close_account_successfuly_closeaccount));
this.tvTransactionDate.setText(c0509Ig.j);
this.tvReferenceId.setText(getString(R.string.reference_id, c0509Ig.g));
this.tvReferenceId.setVisibility(0);
this.tvSuccessDescription.setVisibility(8);
this.successInformation.setData(c0509Ig.a);
this.accountAmountComponent.setDisplayData(c0509Ig.d);
this.accountAmountComponent.netAmountButton.setVisibility(8);
this.receivingAccountData.setDisplay(c0509Ig.e);
if (c0509Ig.b.isEmpty()) {
this.layoutDepositDetails.setVisibility(8);
return;
}
this.layoutDepositDetails.setVisibility(0);
this.recyclerView.setAdapter(new AmountDetailsSuccessAdapter(c0509Ig.b));
}
@Override // o.InterfaceC9131ddt
public final void e() {
FragmentActivity activity = getActivity();
String string = getString(R.string.saved_slip);
EnumC8951daY enumC8951daY = EnumC8951daY.SUCCESS;
if (getActivity() != null) {
BaseActivity.a(new Object[]{(BaseActivity) getActivity(), activity, Integer.valueOf(R.id.root_view), string, enumC8951daY}, 855668825, -855668822, R.id.root_view);
}
}
@Override // o.InterfaceC9131ddt
public final void b() {
FragmentActivity activity = getActivity();
String string = getString(R.string.saved_slip_error);
EnumC8951daY enumC8951daY = EnumC8951daY.ERROR;
if (getActivity() != null) {
BaseActivity.a(new Object[]{(BaseActivity) getActivity(), activity, Integer.valueOf(R.id.root_view), string, enumC8951daY}, 855668825, -855668822, R.id.root_view);
}
}
@Override // o.InterfaceC9131ddt
public final void d() {
getActivity().startActivity(new Intent(getActivity(), (Class<?>) HomeActivity.class).addFlags(603979776).putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_LAYOUT", R.id.account_summary_tab).putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_REFRESH", true));
}
@Override // o.InterfaceC9131ddt
public final void b(String str) {
Intent intent = new Intent("android.intent.action.SEND");
intent.setType(ImageInfo.JPEG_MIME_TYPE);
intent.addFlags(1);
intent.putExtra("android.intent.extra.STREAM", Uri.parse(str));
startActivity(Intent.createChooser(intent, getString(R.string.share_slip)));
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
fSJ fsj = this.d;
if (fsj != null && !fsj.isDisposed()) {
this.d.dispose();
}
this.presenter.w_();
super.onDestroy();
}
@Override // o.InterfaceC8936daJ
public final void c(boolean z) {
this.saveSlip.setVisibility(z ? 0 : 8);
}
@Override // com.scb.phone.view.fragment.ScreenShotFragment
public final void d(C0509Ig c0509Ig, final boolean z, boolean z2) {
this.d = AbstractC13163fSk.fromCallable(new fKY(new HBt(this, this.themesSlipPresenter), new CloseAccountSuccessfulDisplay(this, c0509Ig, z, z2), getContext())).observeOn(fRR.e()).subscribeOn(C13417fZt.b()).subscribe(new fSQ(this, z) { // from class: o.eNG
private boolean a;
private CloseAccountSuccessFragment c;
@Override // o.fSQ
public final void c(Object obj) {
CloseAccountSuccessFragment.arl_(this.c, this.a, (Uri) obj);
}
{
this.c = this;
this.a = z;
}
}, new fSQ(this) { // from class: o.eNC
private CloseAccountSuccessFragment a;
@Override // o.fSQ
public final void c(Object obj) {
CloseAccountSuccessFragment.d(this.a);
}
{
this.a = this;
}
});
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public class HBt extends fKR<CloseAccountSuccessfulDisplay> {
private CloseAccountSuccessFragment e;
@Override // o.fKR
public final /* synthetic */ void b(CloseAccountSuccessfulDisplay closeAccountSuccessfulDisplay, View view) {
CloseAccountSuccessfulDisplay closeAccountSuccessfulDisplay2 = closeAccountSuccessfulDisplay;
ButterKnife.c(closeAccountSuccessfulDisplay2, view);
closeAccountSuccessfulDisplay2.tvSuccessTitle.setText(closeAccountSuccessfulDisplay2.d.getString(R.string.close_account_deposit_account_closed));
closeAccountSuccessfulDisplay2.tvTransactionDate.setText(closeAccountSuccessfulDisplay2.c.j);
closeAccountSuccessfulDisplay2.tvReferenceId.setText(closeAccountSuccessfulDisplay2.d.getString(R.string.reference_id, closeAccountSuccessfulDisplay2.c.g));
closeAccountSuccessfulDisplay2.tvReferenceId.setVisibility(0);
closeAccountSuccessfulDisplay2.tvSuccessDescription.setVisibility(8);
closeAccountSuccessfulDisplay2.successInformation.setData(closeAccountSuccessfulDisplay2.c.a);
closeAccountSuccessfulDisplay2.accountAmountComponent.setDisplayData(closeAccountSuccessfulDisplay2.c.d);
closeAccountSuccessfulDisplay2.accountAmountComponent.netAmountButton.setVisibility(8);
closeAccountSuccessfulDisplay2.receivingAccountData.setDisplay(closeAccountSuccessfulDisplay2.c.e);
if (closeAccountSuccessfulDisplay2.c.b.isEmpty()) {
closeAccountSuccessfulDisplay2.layoutDepositDetails.setVisibility(8);
return;
}
closeAccountSuccessfulDisplay2.layoutDepositDetails.setVisibility(0);
closeAccountSuccessfulDisplay2.recyclerView.setAdapter(new AmountDetailsSuccessAdapter(closeAccountSuccessfulDisplay2.c.b));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(CloseAccountSuccessFragment closeAccountSuccessFragment, C6204cLu c6204cLu) {
super(c6204cLu);
this.e = closeAccountSuccessFragment;
}
}
/* loaded from: classes5.dex */
public class CloseAccountSuccessfulDisplay extends EZ {
@BindView
AccountAmountCustomComponent accountAmountComponent;
final C0509Ig c;
final CloseAccountSuccessFragment d;
@BindView
LinearLayout layoutDepositDetails;
@BindView
MultilineDataComponent receivingAccountData;
@BindView
RecyclerView recyclerView;
@BindView
CustomSuccessInformation successInformation;
@BindView
TextView tvReferenceId;
@BindView
TextView tvSuccessDescription;
@BindView
TextView tvSuccessTitle;
@BindView
TextView tvTransactionDate;
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public CloseAccountSuccessfulDisplay(com.scb.phone.view.fragment.closeaccount.CloseAccountSuccessFragment r3, o.C0509Ig r4, boolean r5, boolean r6) {
/*
r2 = this;
r2.d = r3
java.util.Calendar r3 = java.util.Calendar.getInstance()
long r0 = r3.getTimeInMillis()
java.lang.String r3 = java.lang.String.valueOf(r0)
java.lang.String r0 = ""
o.C14957gcv.e(r3, r0)
java.lang.String r0 = r4.c
java.lang.StringBuilder r1 = new java.lang.StringBuilder
r1.<init>()
r1.append(r0)
r1.append(r3)
java.lang.String r3 = r1.toString()
r0 = 2131560074(0x7f0d068a, float:1.874551E38)
r2.<init>(r0, r3, r5, r6)
r2.c = r4
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.closeaccount.CloseAccountSuccessFragment.CloseAccountSuccessfulDisplay.<init>(com.scb.phone.view.fragment.closeaccount.CloseAccountSuccessFragment, o.Ig, boolean, boolean):void");
}
}
public static /* synthetic */ void arl_(CloseAccountSuccessFragment closeAccountSuccessFragment, boolean z, Uri uri) {
C3558azn c3558azn = closeAccountSuccessFragment.presenter;
final String obj = uri.toString();
if (z) {
ZI.IeS ieS = new ZI.IeS(obj) { // from class: o.azt
private String a;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9131ddt) obj2).b(this.a);
}
{
this.a = obj;
}
};
if (c3558azn.f != 0) {
ieS.e(c3558azn.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.azq
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9131ddt) obj2).e();
}
};
if (c3558azn.f != 0) {
ieS2.e(c3558azn.f);
}
}
public static /* synthetic */ void d(CloseAccountSuccessFragment closeAccountSuccessFragment) {
C3558azn c3558azn = closeAccountSuccessFragment.presenter;
ZI.IeS ieS = new ZI.IeS() { // from class: o.azx
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9131ddt) obj).b();
}
};
if (c3558azn.f != 0) {
ieS.e(c3558azn.f);
}
}
@OnClick
public void onReturnButton() {
C3558azn c3558azn = this.presenter;
ZI.IeS ieS = new ZI.IeS() { // from class: o.azo
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9131ddt) obj).d();
}
};
if (c3558azn.f != 0) {
ieS.e(c3558azn.f);
}
}
@OnClick
@Optional
public void onSaveSlipButtonClick() {
final C3558azn c3558azn = this.presenter;
ZI.IeS ieS = new ZI.IeS(c3558azn) { // from class: o.azm
private C3558azn a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9131ddt) obj).b(this.a.e, true);
}
{
this.a = c3558azn;
}
};
if (c3558azn.f != 0) {
ieS.e(c3558azn.f);
}
}
@OnClick
@Optional
public void onShareSlipButtonClick() {
final C3558azn c3558azn = this.presenter;
ZI.IeS ieS = new ZI.IeS(c3558azn) { // from class: o.azv
private C3558azn c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9131ddt) obj).d(this.c.e, true, false);
}
{
this.c = c3558azn;
}
};
if (c3558azn.f != 0) {
ieS.e(c3558azn.f);
}
}
}