what-the-bank/sources/o/C1965aTg.java

439 lines
15 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.Resources;
import com.scb.phone.domain.errors.RetrofitException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import o.C0690Mh;
import o.C15715hv;
import o.C1965aTg;
import o.ZI;
/* renamed from: o.aTg, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C1965aTg extends ZI<InterfaceC9201dfJ> {
public final C15836ix a;
public KJ b;
public C0657Lo c;
public final C15823is d;
public kSY e;
private final C16997sy g;
private final Resources i;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C1965aTg(C15823is c15823is, C15836ix c15836ix, C16997sy c16997sy, Resources resources, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c15823is, "");
C14957gcv.e(c15836ix, "");
C14957gcv.e(c16997sy, "");
C14957gcv.e(resources, "");
C14957gcv.e(c16903sI, "");
this.d = c15823is;
this.a = c15836ix;
this.g = c16997sy;
this.i = resources;
}
/* renamed from: o.aTg$HBt */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<kSY, C14866gag> {
private C1965aTg d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(kSY ksy) {
final kSY ksy2 = ksy;
C14957gcv.e(ksy2, "");
this.d.e = ksy2;
final C1965aTg c1965aTg = this.d;
ZI.IeS ieS = new ZI.IeS(c1965aTg, ksy2) { // from class: o.aTr
private kSY b;
private C1965aTg d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1965aTg.HBt.b(this.d, this.b, (InterfaceC9201dfJ) obj);
}
{
this.d = c1965aTg;
this.b = ksy2;
}
};
if (c1965aTg.f != 0) {
ieS.e(c1965aTg.f);
}
return C14866gag.c;
}
public static /* synthetic */ void b(C1965aTg c1965aTg, kSY ksy, InterfaceC9201dfJ interfaceC9201dfJ) {
C14957gcv.e(c1965aTg, "");
C14957gcv.e(ksy, "");
C16997sy c16997sy = c1965aTg.g;
C14957gcv.e(ksy, "");
String b_ = c16997sy.b_(ksy.b);
C14957gcv.c((Object) b_, "");
String str = ksy.c;
String str2 = ksy.e;
List<DrX> list = ksy.f.d;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (Iterator it = list.iterator(); it.hasNext(); it = it) {
DrX drX = (DrX) it.next();
arrayList.add(new C0675Lz(drX.f, drX.g, drX.i, drX.h, drX.d, drX.e, drX.c, drX.b, drX.a));
}
ArrayList arrayList2 = arrayList;
List<ZYw> list2 = ksy.a;
C14957gcv.e(list2, "");
ArrayList arrayList3 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (ZYw zYw : list2) {
arrayList3.add(new LT(zYw.a, zYw.e, zYw.b, zYw.d, zYw.c));
}
interfaceC9201dfJ.b(new LA(b_, str, str2, arrayList2, arrayList3));
C1965aTg.f(c1965aTg);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C1965aTg c1965aTg) {
super(1);
this.d = c1965aTg;
}
}
/* renamed from: o.aTg$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C1965aTg c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C1965aTg.b(this.c, th2, C0690Mh.IeS.ON_BACK_PRESS);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(C1965aTg c1965aTg) {
super(1);
this.c = c1965aTg;
}
}
/* renamed from: o.aTg$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Boolean, C14866gag> {
private C1965aTg c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Boolean bool) {
C1965aTg.f(this.c);
C1965aTg.c(this.c);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C1965aTg c1965aTg) {
super(1);
this.c = c1965aTg;
}
}
/* renamed from: o.aTg$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C1965aTg a;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
VCl vCl;
final Throwable th2 = th;
C14957gcv.e(th2, "");
final ggV ggv = null;
RetrofitException retrofitException = th2 instanceof RetrofitException ? (RetrofitException) th2 : null;
if (retrofitException != null && (vCl = retrofitException.e) != null) {
ggv = vCl.c;
}
final C1965aTg c1965aTg = this.a;
ZI.IeS ieS = new ZI.IeS(c1965aTg, ggv, th2) { // from class: o.aTs
private C1965aTg c;
private ggV d;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1965aTg.RVV.a(this.c, this.d, this.e, (InterfaceC9201dfJ) obj);
}
{
this.c = c1965aTg;
this.d = ggv;
this.e = th2;
}
};
if (c1965aTg.f != 0) {
ieS.e(c1965aTg.f);
}
return C14866gag.c;
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Code restructure failed: missing block: B:12:0x002a, code lost:
if (r0.equals("3049") == false) goto L29;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x004d, code lost:
o.C1965aTg.e(r2, r3);
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0050, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x004b, code lost:
if (r0.equals("3004") != false) goto L27;
*/
/* JADX WARN: Failed to find 'out' block for switch in B:10:0x0020. Please report as an issue. */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ void a(o.C1965aTg r2, o.ggV r3, java.lang.Throwable r4, final o.InterfaceC9201dfJ r5) {
/*
java.lang.String r0 = ""
o.C14957gcv.e(r2, r0)
o.C14957gcv.e(r4, r0)
o.C1965aTg.f(r2)
if (r3 == 0) goto L14
java.lang.String r0 = r3.e
if (r0 == 0) goto L14
r5.c(r0)
L14:
if (r3 == 0) goto L19
java.lang.String r0 = r3.e
goto L1a
L19:
r0 = 0
L1a:
if (r0 == 0) goto L51
int r1 = r0.hashCode()
switch(r1) {
case 1567009: goto L45;
case 1567134: goto L39;
case 1567135: goto L2d;
case 1567138: goto L24;
default: goto L23;
}
L23:
goto L51
L24:
java.lang.String r1 = "3049"
boolean r0 = r0.equals(r1)
if (r0 != 0) goto L4d
goto L51
L2d:
java.lang.String r3 = "3046"
boolean r3 = r0.equals(r3)
if (r3 == 0) goto L51
o.C1965aTg.a(r2)
return
L39:
java.lang.String r3 = "3045"
boolean r3 = r0.equals(r3)
if (r3 == 0) goto L51
o.C1965aTg.b(r2)
return
L45:
java.lang.String r1 = "3004"
boolean r0 = r0.equals(r1)
if (r0 == 0) goto L51
L4d:
o.C1965aTg.e(r2, r3)
return
L51:
o.sI r2 = o.C1965aTg.d(r2)
o.aTo r3 = new o.aTo
r3.<init>(r5)
o.Mj r2 = r2.c(r4, r3)
r5.e(r2)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C1965aTg.RVV.a(o.aTg, o.ggV, java.lang.Throwable, o.dfJ):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C1965aTg c1965aTg) {
super(1);
this.a = c1965aTg;
}
}
public static /* synthetic */ void e(C1965aTg c1965aTg, ggV ggv, final InterfaceC9201dfJ interfaceC9201dfJ) {
C14957gcv.e(c1965aTg, "");
C14957gcv.e(ggv, "");
interfaceC9201dfJ.e(c1965aTg.j.d(ggv.d, ggv.c, new Runnable(interfaceC9201dfJ) { // from class: o.aTf
private InterfaceC9201dfJ d;
@Override // java.lang.Runnable
public final void run() {
this.d.h();
}
{
this.d = interfaceC9201dfJ;
}
}));
}
public static /* synthetic */ void d(C1965aTg c1965aTg, InterfaceC9201dfJ interfaceC9201dfJ) {
C14957gcv.e(c1965aTg, "");
C0657Lo c0657Lo = c1965aTg.c;
String str = c0657Lo != null ? c0657Lo.t : null;
if (str != null) {
int hashCode = str.hashCode();
if (hashCode == -1436717870) {
if (str.equals("REFERRAL_UNSECURED")) {
interfaceC9201dfJ.e();
}
} else if (hashCode == -1039294225 && str.equals("NON_REFERRAL")) {
interfaceC9201dfJ.d();
}
}
}
public static /* synthetic */ void a(C1965aTg c1965aTg, InterfaceC9201dfJ interfaceC9201dfJ) {
List<qVp> list;
qVp qvp;
C14957gcv.e(c1965aTg, "");
kSY ksy = c1965aTg.e;
String str = (ksy == null || (list = ksy.d) == null || (qvp = (qVp) C14881gav.e((List) list)) == null) ? null : qvp.d;
if (str == null) {
str = "";
}
C0657Lo c0657Lo = c1965aTg.c;
String str2 = c0657Lo != null ? c0657Lo.t : null;
interfaceC9201dfJ.b(str, str2 != null ? str2 : "");
}
public static /* synthetic */ void b(C1965aTg c1965aTg, final InterfaceC9201dfJ interfaceC9201dfJ) {
C14957gcv.e(c1965aTg, "");
interfaceC9201dfJ.e(c1965aTg.j.b(c1965aTg.i.getString(C15715hv.tOB.unable_to_proceed_error_title), c1965aTg.i.getString(C15715hv.tOB.error_not_add_savings_account_msg), C15715hv.tOB.mf_onboarding_add_account, C15715hv.tOB.additional_document_back_button, new Runnable(interfaceC9201dfJ) { // from class: o.aTi
private InterfaceC9201dfJ a;
@Override // java.lang.Runnable
public final void run() {
this.a.c();
}
{
this.a = interfaceC9201dfJ;
}
}, new RunnableC1969aTk(interfaceC9201dfJ)));
}
public static /* synthetic */ void e(C1965aTg c1965aTg, final InterfaceC9201dfJ interfaceC9201dfJ) {
C14957gcv.e(c1965aTg, "");
interfaceC9201dfJ.e(c1965aTg.j.b(c1965aTg.i.getString(C15715hv.tOB.unable_to_proceed_error_title), c1965aTg.i.getString(C15715hv.tOB.error_dont_have_savings_account_msg), C15715hv.tOB.open_account_button, C15715hv.tOB.additional_document_back_button, new Runnable(interfaceC9201dfJ) { // from class: o.aTh
private InterfaceC9201dfJ a;
@Override // java.lang.Runnable
public final void run() {
this.a.b();
}
{
this.a = interfaceC9201dfJ;
}
}, new RunnableC1969aTk(interfaceC9201dfJ)));
}
public static final /* synthetic */ void b(final C1965aTg c1965aTg) {
ZI.IeS ieS = new ZI.IeS(c1965aTg) { // from class: o.aTc
private C1965aTg e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1965aTg.b(this.e, (InterfaceC9201dfJ) obj);
}
{
this.e = c1965aTg;
}
};
if (c1965aTg.f != 0) {
ieS.e(c1965aTg.f);
}
}
public static final /* synthetic */ void a(final C1965aTg c1965aTg) {
ZI.IeS ieS = new ZI.IeS(c1965aTg) { // from class: o.aTd
private C1965aTg d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1965aTg.e(this.d, (InterfaceC9201dfJ) obj);
}
{
this.d = c1965aTg;
}
};
if (c1965aTg.f != 0) {
ieS.e(c1965aTg.f);
}
}
public static final /* synthetic */ void e(final C1965aTg c1965aTg, final ggV ggv) {
ZI.IeS ieS = new ZI.IeS(c1965aTg, ggv) { // from class: o.aTm
private C1965aTg a;
private ggV e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1965aTg.e(this.a, this.e, (InterfaceC9201dfJ) obj);
}
{
this.a = c1965aTg;
this.e = ggv;
}
};
if (c1965aTg.f != 0) {
ieS.e(c1965aTg.f);
}
}
public static final /* synthetic */ void c(final C1965aTg c1965aTg) {
ZI.IeS ieS = new ZI.IeS(c1965aTg) { // from class: o.aTj
private C1965aTg a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1965aTg.d(this.a, (InterfaceC9201dfJ) obj);
}
{
this.a = c1965aTg;
}
};
if (c1965aTg.f != 0) {
ieS.e(c1965aTg.f);
}
}
public static final /* synthetic */ void f(C1965aTg c1965aTg) {
if (c1965aTg.f != 0) {
c1965aTg.f.ar_();
}
}
public static final /* synthetic */ void b(C1965aTg c1965aTg, Throwable th, C0690Mh.IeS ieS) {
if (c1965aTg.b(th)) {
c1965aTg.d(c1965aTg.j.d(th, ieS));
}
}
}