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

203 lines
8.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.closeaccount;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.closeaccount.CloseAccountAmountDetailsActivity;
import com.scb.phone.view.activity.closeaccount.CloseAccountConfirmationOtpActivity;
import com.scb.phone.view.custom.closeaccount.AccountAmountCustomComponent;
import com.scb.phone.view.custom.common.MultilineDataComponent;
import com.scb.phone.view.fragment.closeaccount.CloseAccountReviewFragment;
import o.AbstractC13163fSk;
import o.C0508If;
import o.C3470ayE;
import o.InterfaceC13391fZD;
import o.InterfaceC9121ddj;
import o.ZI;
import o.fSL;
import o.fSQ;
import o.pug;
/* loaded from: classes5.dex */
public class CloseAccountReviewFragment extends Hilt_CloseAccountReviewFragment implements InterfaceC9121ddj {
@BindView
AccountAmountCustomComponent closingAccountAmountDataComponent;
@BindView
MultilineDataComponent closingAccountDataComponent;
@BindView
TextView contactInformationTextView;
@BindView
MultilineDataComponent depositTypeDataComponent;
@BindView
TextView extraInfo;
@InterfaceC13391fZD
public C3470ayE presenter;
@BindView
MultilineDataComponent receivingAccountDataComponent;
public static Fragment b(String str) {
CloseAccountReviewFragment closeAccountReviewFragment = new CloseAccountReviewFragment();
Bundle bundle = new Bundle();
bundle.putString("EXTRA_TYPE", str);
closeAccountReviewFragment.setArguments(bundle);
return closeAccountReviewFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559507, viewGroup, false);
ButterKnife.c(this, inflate);
this.presenter.e((C3470ayE) this);
final C3470ayE c3470ayE = this.presenter;
final String string = getArguments().getString("EXTRA_TYPE");
c3470ayE.b.d(AbstractC13163fSk.zip(c3470ayE.b.b().doOnNext(new fSQ(c3470ayE) { // from class: o.ayI
private C3470ayE c;
@Override // o.fSQ
public final void c(Object obj) {
this.c.b(r2.d != null,
/* JADX ERROR: Method code generation error
jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0004: INVOKE
(wrap:o.ayE:0x0000: IGET (r1v0 'this' o.ayI A[IMMUTABLE_TYPE, THIS]) A[WRAPPED] (LINE:65353) o.ayI.c o.ayE)
(wrap:boolean:?: TERNARY null = ((wrap:java.util.List<o.TPf$IeS>:0x0000: IGET (r2v0 o.TPf) A[WRAPPED] (LINE:5000) o.TPf.d java.util.List) != (null java.util.List<o.TPf$IeS>)) ? true : false)
(wrap:o.ZI$IeS:0x0009: CONSTRUCTOR A[MD:():void (m), WRAPPED] (LINE:4040) call: o.ayC.<init>():void type: CONSTRUCTOR)
VIRTUAL call: o.ZI.b(boolean, o.ZI$IeS):void A[MD:(boolean, o.ZI$IeS<T extends o.cYp>):void (m)] (LINE:4039) in method: o.ayI.c(java.lang.Object):void, file: classes4.dex
at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:310)
at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:273)
at jadx.core.codegen.RegionGen.makeSimpleBlock(RegionGen.java:94)
at jadx.core.dex.nodes.IBlock.generate(IBlock.java:15)
at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:66)
at jadx.core.dex.regions.Region.generate(Region.java:35)
at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:66)
at jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:297)
at jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:276)
at jadx.core.codegen.ClassGen.addMethodCode(ClassGen.java:406)
at jadx.core.codegen.ClassGen.addMethod(ClassGen.java:335)
at jadx.core.codegen.ClassGen.lambda$addInnerClsAndMethods$3(ClassGen.java:301)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:261)
Caused by: jadx.core.utils.exceptions.JadxRuntimeException: Expected class to be processed at this point, class: o.ayC, state: NOT_LOADED
at jadx.core.dex.nodes.ClassNode.ensureProcessed(ClassNode.java:304)
at jadx.core.codegen.InsnGen.inlineAnonymousConstructor(InsnGen.java:781)
at jadx.core.codegen.InsnGen.makeConstructor(InsnGen.java:730)
at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:418)
at jadx.core.codegen.InsnGen.addWrappedArg(InsnGen.java:145)
at jadx.core.codegen.InsnGen.addArg(InsnGen.java:121)
at jadx.core.codegen.InsnGen.addArg(InsnGen.java:108)
at jadx.core.codegen.InsnGen.generateMethodArguments(InsnGen.java:1117)
at jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:884)
at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:422)
at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:303)
... 15 more
*/
/*
this = this;
o.ayE r0 = r1.c
o.TPf r2 = (o.TPf) r2
o.C3470ayE.e(r0, r2)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C3474ayI.c(java.lang.Object):void");
}
{
this.c = c3470ayE;
}
}), c3470ayE.d.c(), new fSL(c3470ayE, string) { // from class: o.ayJ
private String d;
private C3470ayE e;
@Override // o.fSL
public final Object e(Object obj, Object obj2) {
return C3470ayE.e(this.e, this.d, (TPf) obj, (C5762bzF) obj2);
}
{
this.e = c3470ayE;
this.d = string;
}
}), new C3470ayE.AnonymousClass1(c3470ayE));
return inflate;
}
@Override // o.InterfaceC9121ddj
public final void d() {
CloseAccountAmountDetailsActivity.e(getContext());
}
@Override // o.InterfaceC9121ddj
public final void c() {
this.closingAccountAmountDataComponent.setButtonListener(new View.OnClickListener(this) { // from class: o.eNl
private CloseAccountReviewFragment e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
CloseAccountReviewFragment.a(this.e);
}
{
this.e = this;
}
});
}
@Override // o.InterfaceC9121ddj
public final void e() {
startActivity(CloseAccountConfirmationOtpActivity.aay_(getActivity()));
}
public static /* synthetic */ void a(CloseAccountReviewFragment closeAccountReviewFragment) {
C3470ayE c3470ayE = closeAccountReviewFragment.presenter;
ZI.IeS ieS = new ZI.IeS() { // from class: o.ayF
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9121ddj) obj).d();
}
};
if (c3470ayE.f != 0) {
ieS.e(c3470ayE.f);
}
}
@OnClick
public void onConfirmClicked() {
C3470ayE c3470ayE = this.presenter;
ZI.IeS ieS = new ZI.IeS() { // from class: o.ayG
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9121ddj) obj).e();
}
};
if (c3470ayE.f != 0) {
ieS.e(c3470ayE.f);
}
c("close_acct_breakdown", new pug("view_breakdown", "click"));
}
@Override // o.InterfaceC9121ddj
public final void c(C0508If c0508If) {
this.closingAccountDataComponent.setDisplay(c0508If.e);
this.depositTypeDataComponent.setDisplay(c0508If.b);
this.receivingAccountDataComponent.setDisplay(c0508If.a);
this.closingAccountAmountDataComponent.setDisplayData(c0508If.d);
this.contactInformationTextView.setText(c0508If.c);
this.extraInfo.setText(c0508If.j);
}
}