package o; import android.content.res.Resources; import com.scb.phone.domain.errors.RetrofitException; import java.util.Arrays; import java.util.List; import o.C0690Mh; import o.C15715hv; import o.InterfaceC6621cYR; import o.ZI; import o.aQS; import org.threeten.bp.OffsetDateTime; /* loaded from: classes4.dex */ public final class aQS extends ZI { private static final List g; private static final int i; public final C16997sy a; public final C15741iH b; public String c; public final String d; public final C16950sf e; private final FCh h; private final C16949se k; private final C16677qL l; private final Resources m; private C0600Kj n; public static final /* synthetic */ void b(final aQS aqs, final String str, final String str2, final boolean z, final C0600Kj c0600Kj) { aqs.n = c0600Kj; if (aqs.f != 0) { aqs.f.ar_(); } int size = c0600Kj.g.size(); for (final int i2 = 0; i2 < size; i2++) { ZI.IeS ieS = new ZI.IeS(c0600Kj, i2) { // from class: o.aQQ private C0600Kj a; private int c; @Override // o.ZI.IeS public final void e(Object obj) { aQS.d(this.a, this.c, (InterfaceC6621cYR.CeN) obj); } { this.a = c0600Kj; this.c = i2; } }; if (aqs.f != 0) { ieS.e(aqs.f); } } ZI.IeS ieS2 = new ZI.IeS(z, str, str2, aqs, c0600Kj) { // from class: o.aQU private aQS a; private boolean b; private C0600Kj c; private String d; private String e; @Override // o.ZI.IeS public final void e(Object obj) { aQS.b(this.b, this.d, this.e, this.a, this.c, (InterfaceC6621cYR.CeN) obj); } { this.b = z; this.d = str; this.e = str2; this.a = aqs; this.c = c0600Kj; } }; if (aqs.f != 0) { ieS2.e(aqs.f); } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public aQS(C15741iH c15741iH, C16950sf c16950sf, C16949se c16949se, C16677qL c16677qL, C16997sy c16997sy, FCh fCh, Resources resources, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(c15741iH, ""); C14957gcv.e(c16950sf, ""); C14957gcv.e(c16949se, ""); C14957gcv.e(c16677qL, ""); C14957gcv.e(c16997sy, ""); C14957gcv.e(fCh, ""); C14957gcv.e(resources, ""); C14957gcv.e(c16903sI, ""); this.b = c15741iH; this.e = c16950sf; this.k = c16949se; this.l = c16677qL; this.a = c16997sy; this.h = fCh; this.m = resources; this.d = ""; this.c = ""; } /* loaded from: classes4.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } static { new HBt((byte) 0); String[] strArr = {"9200", "9201", "9202", "9203", "9204"}; C14957gcv.e(strArr, ""); C14957gcv.e(strArr, ""); List asList = Arrays.asList(strArr); C14957gcv.c(asList, ""); g = asList; i = 1; } /* loaded from: classes4.dex */ public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR { private aQS b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); aQS.e(this.b, th2, C0690Mh.IeS.NAVIGATE_BACK); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public LWm(aQS aqs) { super(1); this.b = aqs; } } /* loaded from: classes4.dex */ public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private aQS c; private String d; private boolean e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C0600Kj c0600Kj) { C0600Kj c0600Kj2 = c0600Kj; C14957gcv.e(c0600Kj2, ""); aQS aqs = this.c; aQS.b(aqs, aqs.c, this.d, this.e, c0600Kj2); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public RVV(aQS aqs, String str, boolean z) { super(1); this.c = aqs; this.d = str; this.e = z; } } /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private aQS b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); aQS.e(this.b, th2, C0690Mh.IeS.NAVIGATE_BACK); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public IeS(aQS aqs) { super(1); this.b = aqs; } } /* loaded from: classes4.dex */ public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private String a; private boolean b; private aQS c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C0600Kj c0600Kj) { C0600Kj c0600Kj2 = c0600Kj; C14957gcv.e(c0600Kj2, ""); aQS aqs = this.c; aQS.b(aqs, aqs.c, this.a, this.b, c0600Kj2); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public Sts(aQS aqs, String str, boolean z) { super(1); this.c = aqs; this.a = str; this.b = z; } } /* loaded from: classes4.dex */ public static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR { private String b; private aQS d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C13928fja c13928fja) { final C13928fja c13928fja2 = c13928fja; C14957gcv.e(c13928fja2, ""); aQS.j(this.d); final aQS aqs = this.d; final String str = this.b; ZI.IeS ieS = new ZI.IeS(str, aqs, c13928fja2) { // from class: o.aQY private C13928fja a; private String b; private aQS e; @Override // o.ZI.IeS public final void e(Object obj) { aQS.ZqN.d(this.b, this.e, this.a, (InterfaceC6621cYR.CeN) obj); } { this.b = str; this.e = aqs; this.a = c13928fja2; } }; if (aqs.f != 0) { ieS.e(aqs.f); } return C14866gag.c; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0066, code lost: if (r4 != null) goto L29; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x0068, code lost: o.C14957gcv.a(""); r4 = null; */ /* JADX WARN: Code restructure failed: missing block: B:12:0x006c, code lost: r4 = r4.b; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x006e, code lost: if (r4 != null) goto L32; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x0070, code lost: r4 = o.C14851gaI.c; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x0074, code lost: r4 = o.C16677qL.b(r4, r6); */ /* JADX WARN: Code restructure failed: missing block: B:37:0x0050, code lost: if (r4.equals("SPEEDY_LOAN_TOP_UP") == false) goto L22; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0025, code lost: if (r4.equals("SPEEDY_LOAN") != false) goto L26; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x005f, code lost: r0 = r5.l; r4 = r5.n; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static /* synthetic */ void d(java.lang.String r4, o.aQS r5, o.C13928fja r6, o.InterfaceC6621cYR.CeN r7) { /* java.lang.String r0 = "" o.C14957gcv.e(r4, r0) o.C14957gcv.e(r5, r0) o.C14957gcv.e(r6, r0) int r1 = r4.hashCode() r2 = -771079065(0xffffffffd20a4467, float:-1.4846327E11) r3 = 0 if (r1 == r2) goto L4a r2 = 159567045(0x982ccc5, float:3.1488926E-33) if (r1 == r2) goto L28 r2 = 1034015741(0x3da1d3fd, float:0.07901762) if (r1 != r2) goto L52 java.lang.String r1 = "SPEEDY_LOAN" boolean r4 = r4.equals(r1) if (r4 != 0) goto L5f goto L52 L28: java.lang.String r1 = "COMMERCIAL_LOAN" boolean r4 = r4.equals(r1) if (r4 == 0) goto L52 o.aQS.b(r5) o.Kj r4 = o.aQS.c(r5) if (r4 != 0) goto L3d o.C14957gcv.a(r0) r4 = r3 L3d: java.util.List r4 = r4.b if (r4 != 0) goto L45 o.gaI r4 = o.C14851gaI.c java.util.List r4 = (java.util.List) r4 L45: java.util.List r4 = o.C16677qL.e(r4, r6) goto L78 L4a: java.lang.String r1 = "SPEEDY_LOAN_TOP_UP" boolean r4 = r4.equals(r1) if (r4 != 0) goto L5f L52: o.Kj r4 = o.aQS.c(r5) if (r4 != 0) goto L5c o.C14957gcv.a(r0) r4 = r3 L5c: java.util.List r4 = r4.b goto L78 L5f: o.aQS.b(r5) o.Kj r4 = o.aQS.c(r5) if (r4 != 0) goto L6c o.C14957gcv.a(r0) r4 = r3 L6c: java.util.List r4 = r4.b if (r4 != 0) goto L74 o.gaI r4 = o.C14851gaI.c java.util.List r4 = (java.util.List) r4 L74: java.util.List r4 = o.C16677qL.b(r4, r6) L78: o.qL r1 = o.aQS.b(r5) o.kfx r6 = (o.kfx) r6 o.JX r6 = r1.b(r6) o.Kj r5 = o.aQS.c(r5) if (r5 != 0) goto L8c o.C14957gcv.a(r0) goto L8d L8c: r3 = r5 L8d: o.Ks r5 = r3.i r7.e(r4, r6, r5) return */ throw new UnsupportedOperationException("Method not decompiled: o.aQS.ZqN.d(java.lang.String, o.aQS, o.fja, o.cYR$CeN):void"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public ZqN(aQS aqs, String str) { super(1); this.d = aqs; this.b = str; } } /* loaded from: classes4.dex */ public static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR { private String b; private aQS d; private boolean e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { ggV ggv; ggV ggv2; ggV ggv3; Throwable th2 = th; C14957gcv.e(th2, ""); if (th2 instanceof RetrofitException) { List list = aQS.g; RetrofitException retrofitException = (RetrofitException) th2; VCl vCl = retrofitException.e; String str = null; if (C14881gav.b(list, (vCl == null || (ggv3 = vCl.c) == null) ? null : ggv3.e)) { VCl vCl2 = retrofitException.e; String str2 = (vCl2 == null || (ggv2 = vCl2.c) == null) ? null : ggv2.d; if (str2 == null) { str2 = this.d.d; } final String str3 = str2; VCl vCl3 = retrofitException.e; if (vCl3 != null && (ggv = vCl3.c) != null) { str = ggv.c; } final String str4 = str == null ? this.d.d : str; aQS.j(this.d); final aQS aqs = this.d; final String str5 = this.b; final boolean z = this.e; ZI.IeS ieS = new ZI.IeS(str5, z, aqs, str3, str4) { // from class: o.aQW private String a; private String b; private String c; private boolean d; private aQS e; @Override // o.ZI.IeS public final void e(Object obj) { aQS.jbe.b(this.a, this.d, this.e, this.b, this.c, (InterfaceC6621cYR.CeN) obj); } { this.a = str5; this.d = z; this.e = aqs; this.b = str3; this.c = str4; } }; if (aqs.f != 0) { ieS.e(aqs.f); } return C14866gag.c; } } final aQS aqs2 = this.d; aQS.b(aqs2, th2, new Runnable(aqs2) { // from class: o.aQX private aQS e; @Override // java.lang.Runnable public final void run() { aQS.jbe.b(this.e); } { this.e = aqs2; } }); return C14866gag.c; } public static /* synthetic */ void b(String str, boolean z, aQS aqs, String str2, String str3, InterfaceC6621cYR.CeN ceN) { C14957gcv.e(str, ""); C14957gcv.e(aqs, ""); C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); if ((C14957gcv.b((Object) "CREDIT_CARD", (Object) str) && z) || (C14957gcv.b((Object) "COMMERCIAL_LOAN", (Object) str) && aqs.h.e.u().booleanValue())) { C16677qL c16677qL = aqs.l; String str4 = (String) C16157lj.c(new Object[]{c16677qL, OffsetDateTime.now()}, 838289628, -838289623, System.identityHashCode(c16677qL)); C14957gcv.c((Object) str4, ""); ceN.d(str4, str2, str3); return; } ceN.e(aqs.k.d(str2, str3, aqs.h.c())); } public static /* synthetic */ void b(aQS aqs) { C14957gcv.e(aqs, ""); ZI.IeS ieS = new ZI.IeS() { // from class: o.aRb @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6621cYR.CeN) obj).c(); } }; if (aqs.f != 0) { ieS.e(aqs.f); } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public jbe(aQS aqs, String str, boolean z) { super(1); this.d = aqs; this.b = str; this.e = z; } } @Override // o.ZI public final void w_() { this.b.a(); super.w_(); } public static /* synthetic */ void d(C0600Kj c0600Kj, int i2, InterfaceC6621cYR.CeN ceN) { C14957gcv.e(c0600Kj, ""); ceN.e(c0600Kj); ceN.b(c0600Kj.g.get(i2), i2 + i); } public static /* synthetic */ void c(String str, boolean z, InterfaceC6621cYR.CeN ceN) { C14957gcv.e(str, ""); if (C14957gcv.b((Object) "CREDIT_CARD", (Object) str) && z) { ceN.a(C15715hv.tOB.easycash_review_submit_button_card_x); } else { ceN.a(C15715hv.tOB.easycash_review_submit_button); } } public static /* synthetic */ void b(boolean z, String str, String str2, aQS aqs, C0600Kj c0600Kj, InterfaceC6621cYR.CeN ceN) { String str3; C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(aqs, ""); C14957gcv.e(c0600Kj, ""); if (z && C14957gcv.b((Object) "CREDIT_CARD", (Object) str) && C14957gcv.b((Object) "CDX", (Object) str2)) { str3 = aqs.m.getString(C15715hv.tOB.review_disclaimer_description_cdx); } else { str3 = c0600Kj.e; } C14957gcv.c((Object) str3, ""); ceN.c(c0600Kj.a, str3); if (C14957gcv.b((Object) "AUTO_TOP_UP", (Object) str)) { ceN.e(); } } public static final /* synthetic */ void j(aQS aqs) { if (aqs.f != 0) { aqs.f.ar_(); } } public static final /* synthetic */ void e(aQS aqs, Throwable th, C0690Mh.IeS ieS) { if (aqs.b(th)) { aqs.d(aqs.j.d(th, ieS)); } } public static final /* synthetic */ void b(aQS aqs, Throwable th, Runnable runnable) { if (aqs.b(th)) { aqs.d(aqs.j.c(th, runnable)); } } }