package o; import android.content.res.Resources; import com.scb.phone.domain.errors.RetrofitException; import o.C14930gcM; import o.C15715hv; import o.C2022aVK; import o.ZI; /* renamed from: o.aVK, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C2022aVK extends aVB { private final Resources d; public final C15836ix e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C2022aVK(C16903sI c16903sI, C15836ix c15836ix, Resources resources) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(c15836ix, ""); C14957gcv.e(resources, ""); this.e = c15836ix; this.d = resources; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aVK$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private C2022aVK d; private String e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Boolean bool) { C2022aVK c2022aVK = this.d; final String str = this.e; ZI.IeS ieS = new ZI.IeS(str) { // from class: o.aVL private String d; @Override // o.ZI.IeS public final void e(Object obj) { C2022aVK.HBt.c(this.d, (InterfaceC9193dfB) obj); } { this.d = str; } }; if (c2022aVK.f != 0) { ieS.e(c2022aVK.f); } return C14866gag.c; } public static /* synthetic */ void c(String str, InterfaceC9193dfB interfaceC9193dfB) { C14957gcv.e(str, ""); interfaceC9193dfB.ar_(); if (C14957gcv.b((Object) str, (Object) "REFERRAL_UNSECURED")) { interfaceC9193dfB.g(); } else if (C14957gcv.b((Object) str, (Object) "NON_REFERRAL")) { interfaceC9193dfB.d(); } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(C2022aVK c2022aVK, String str) { super(1); this.d = c2022aVK; this.e = str; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aVK$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private C2022aVK a; /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r2v8, types: [T, java.lang.Object, java.lang.String] */ @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { final Throwable th2 = th; C14957gcv.e(th2, ""); final C14930gcM.RVV rvv = new C14930gcM.RVV(); rvv.d = ""; RetrofitException retrofitException = th2 instanceof RetrofitException ? (RetrofitException) th2 : null; VCl vCl = retrofitException != null ? retrofitException.e : null; if (vCl != null && vCl.c != null) { ?? r2 = vCl.c.e; C14957gcv.c((Object) r2, ""); rvv.d = r2; } String str = (String) rvv.d; if (!C14957gcv.b((Object) str, (Object) "3045")) { if (!C14957gcv.b((Object) str, (Object) "3046")) { final C2022aVK c2022aVK = this.a; ZI.IeS ieS = new ZI.IeS(c2022aVK, th2) { // from class: o.aVY private C2022aVK a; private Throwable c; @Override // o.ZI.IeS public final void e(Object obj) { C2022aVK.IeS.c(this.a, this.c, (InterfaceC9193dfB) obj); } { this.a = c2022aVK; this.c = th2; } }; if (c2022aVK.f != 0) { ieS.e(c2022aVK.f); } } else { final C2022aVK c2022aVK2 = this.a; ZI.IeS ieS2 = new ZI.IeS(c2022aVK2, rvv) { // from class: o.aVT private C2022aVK a; private C14930gcM.RVV b; @Override // o.ZI.IeS public final void e(Object obj) { C2022aVK.IeS.c(this.a, this.b, (InterfaceC9193dfB) obj); } { this.a = c2022aVK2; this.b = rvv; } }; if (c2022aVK2.f != 0) { ieS2.e(c2022aVK2.f); } } } else { final C2022aVK c2022aVK3 = this.a; ZI.IeS ieS3 = new ZI.IeS(c2022aVK3, rvv) { // from class: o.aVS private C2022aVK a; private C14930gcM.RVV e; @Override // o.ZI.IeS public final void e(Object obj) { C2022aVK.IeS.d(this.a, this.e, (InterfaceC9193dfB) obj); } { this.a = c2022aVK3; this.e = rvv; } }; if (c2022aVK3.f != 0) { ieS3.e(c2022aVK3.f); } } return C14866gag.c; } public static /* synthetic */ void c(C2022aVK c2022aVK, Throwable th, final InterfaceC9193dfB interfaceC9193dfB) { C14957gcv.e(c2022aVK, ""); C14957gcv.e(th, ""); interfaceC9193dfB.e(c2022aVK.j.c(th, new Runnable(interfaceC9193dfB) { // from class: o.aVR private InterfaceC9193dfB c; @Override // java.lang.Runnable public final void run() { this.c.a(); } { this.c = interfaceC9193dfB; } })); } public static /* synthetic */ void c(final C2022aVK c2022aVK, final C14930gcM.RVV rvv, final InterfaceC9193dfB interfaceC9193dfB) { C14957gcv.e(c2022aVK, ""); C14957gcv.e(rvv, ""); interfaceC9193dfB.e(c2022aVK.j.b(c2022aVK.d.getString(C15715hv.tOB.unable_to_proceed_error_title), c2022aVK.d.getString(C15715hv.tOB.error_dont_have_savings_account_msg), C15715hv.tOB.open_account_button, C15715hv.tOB.additional_document_back_button, new Runnable(interfaceC9193dfB) { // from class: o.aVP private InterfaceC9193dfB d; @Override // java.lang.Runnable public final void run() { this.d.f(); } { this.d = interfaceC9193dfB; } }, new Runnable(c2022aVK, rvv) { // from class: o.aVQ private C14930gcM.RVV b; private C2022aVK e; @Override // java.lang.Runnable public final void run() { C2022aVK.IeS.e(this.e, this.b); } { this.e = c2022aVK; this.b = rvv; } })); } /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ void e(C2022aVK c2022aVK, C14930gcM.RVV rvv) { C14957gcv.e(c2022aVK, ""); C14957gcv.e(rvv, ""); C2022aVK.d(c2022aVK, (String) rvv.d); } /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ void c(C2022aVK c2022aVK, C14930gcM.RVV rvv) { C14957gcv.e(c2022aVK, ""); C14957gcv.e(rvv, ""); C2022aVK.d(c2022aVK, (String) rvv.d); } public static /* synthetic */ void d(final C2022aVK c2022aVK, final C14930gcM.RVV rvv, final InterfaceC9193dfB interfaceC9193dfB) { C14957gcv.e(c2022aVK, ""); C14957gcv.e(rvv, ""); interfaceC9193dfB.e(c2022aVK.j.b(c2022aVK.d.getString(C15715hv.tOB.unable_to_proceed_error_title), c2022aVK.d.getString(C15715hv.tOB.error_not_add_savings_account_msg), C15715hv.tOB.mf_onboarding_add_account, C15715hv.tOB.additional_document_back_button, new Runnable(interfaceC9193dfB) { // from class: o.aVM private InterfaceC9193dfB e; @Override // java.lang.Runnable public final void run() { this.e.h(); } { this.e = interfaceC9193dfB; } }, new Runnable(c2022aVK, rvv) { // from class: o.aVN private C2022aVK a; private C14930gcM.RVV b; @Override // java.lang.Runnable public final void run() { C2022aVK.IeS.c(this.a, this.b); } { this.a = c2022aVK; this.b = rvv; } })); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(C2022aVK c2022aVK) { super(1); this.a = c2022aVK; } } public static /* synthetic */ void c(String str, InterfaceC9193dfB interfaceC9193dfB) { C14957gcv.e(str, ""); interfaceC9193dfB.ar_(); if (C14957gcv.b((Object) str, (Object) "3045")) { interfaceC9193dfB.d("apply_up_cash_add_account_notnow"); } else if (C14957gcv.b((Object) str, (Object) "3046")) { interfaceC9193dfB.d("apply_up_cash_open_account_notnow"); } } public static final /* synthetic */ void d(C2022aVK c2022aVK, final String str) { ZI.IeS ieS = new ZI.IeS(str) { // from class: o.aVO private String d; @Override // o.ZI.IeS public final void e(Object obj) { C2022aVK.c(this.d, (InterfaceC9193dfB) obj); } { this.d = str; } }; if (c2022aVK.f != 0) { ieS.e(c2022aVK.f); } } public final void b(String str, String str2) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); if (this.f != 0) { this.f.y(); } this.e.b(new HBt(this, str2), new IeS(this), str, str2); } }