package o; import com.scb.phone.domain.errors.RetrofitException; import java.util.Arrays; import java.util.HashMap; import java.util.List; import o.C0690Mh; import o.C1989aUI; import o.FNP; import o.ZI; /* renamed from: o.aUI */ /* loaded from: classes4.dex */ public final class C1989aUI extends ZI { private final C16849ro a; public String b; private final C15835iw c; private final C15829iu d; public KM e; private final List h; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C1989aUI(C16903sI c16903sI, C15835iw c15835iw, C16849ro c16849ro, C15829iu c15829iu) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(c15835iw, ""); C14957gcv.e(c16849ro, ""); C14957gcv.e(c15829iu, ""); this.c = c15835iw; this.a = c16849ro; this.d = c15829iu; this.b = ""; String[] strArr = {"AUTO_TOP_UP", "COMMERCIAL_LOAN"}; C14957gcv.e(strArr, ""); C14957gcv.e(strArr, ""); List asList = Arrays.asList(strArr); C14957gcv.c(asList, ""); this.h = asList; } /* renamed from: o.aUI$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private C1989aUI b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { VCl vCl; ggV ggv; Throwable th2 = th; C14957gcv.e(th2, ""); String str = null; RetrofitException retrofitException = th2 instanceof RetrofitException ? (RetrofitException) th2 : null; if (retrofitException != null && (vCl = retrofitException.e) != null && (ggv = vCl.c) != null) { str = ggv.e; } if (C14957gcv.b((Object) "3005", (Object) str)) { C1989aUI c1989aUI = this.b; C1989aUI.b(c1989aUI, th2, new Runnable(c1989aUI) { // from class: o.aUS private C1989aUI e; @Override // java.lang.Runnable public final void run() { C1989aUI.IeS.d(this.e); } { this.e = c1989aUI; } }); } else { C1989aUI.d(this.b, th2, C0690Mh.IeS.NAVIGATE_BACK); } return C14866gag.c; } public static /* synthetic */ void d(C1989aUI c1989aUI) { C14957gcv.e(c1989aUI, ""); ZI.IeS ieS = new ZI.IeS(c1989aUI) { // from class: o.aUO private C1989aUI b; @Override // o.ZI.IeS public final void e(Object obj) { C1989aUI.IeS.e(this.b, (InterfaceC9209dfR) obj); } { this.b = c1989aUI; } }; if (c1989aUI.f != 0) { ieS.e(c1989aUI.f); } } public static /* synthetic */ void e(C1989aUI c1989aUI, InterfaceC9209dfR interfaceC9209dfR) { C14957gcv.e(c1989aUI, ""); String t = c1989aUI.d.e.a.t(); C14957gcv.c((Object) t, ""); interfaceC9209dfR.a(t); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(C1989aUI c1989aUI) { super(1); this.b = c1989aUI; } } /* renamed from: o.aUI$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private C1989aUI a; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(WCS wcs) { WCS wcs2 = wcs; C14957gcv.e(wcs2, ""); C1989aUI.a(this.a); C1989aUI c1989aUI = this.a; aUN aun = new aUN(c1989aUI, wcs2); if (c1989aUI.f != 0) { aun.e(c1989aUI.f); } return C14866gag.c; } public static /* synthetic */ void b(C1989aUI c1989aUI, WCS wcs, InterfaceC9209dfR interfaceC9209dfR) { C14957gcv.e(c1989aUI, ""); C14957gcv.e(wcs, ""); C16849ro c16849ro = c1989aUI.a; C14957gcv.e(wcs, ""); String str = wcs.b; String str2 = wcs.e; StringBuilder sb = new StringBuilder(); sb.append(str); sb.append(" "); sb.append(str2); String obj = sb.toString(); String str3 = wcs.a; String b_ = c16849ro.b_(wcs.c); C14957gcv.c((Object) b_, ""); c1989aUI.e = new KM(obj, str3, b_); KM km = c1989aUI.e; if (km == null) { C14957gcv.a(""); km = null; } interfaceC9209dfR.c(km); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(C1989aUI c1989aUI) { super(1); this.a = c1989aUI; } } public static /* synthetic */ void b(C1989aUI c1989aUI, InterfaceC9209dfR interfaceC9209dfR) { C14957gcv.e(c1989aUI, ""); if (c1989aUI.h.contains(c1989aUI.b)) { interfaceC9209dfR.b(C14957gcv.b((Object) "COMMERCIAL_LOAN", (Object) c1989aUI.b) ? "Y" : null); } else { interfaceC9209dfR.c(); } } public static /* synthetic */ void b(String str, C1989aUI c1989aUI, JV jv, JX jx, String str2, InterfaceC9209dfR interfaceC9209dfR) { String str3; String str4 = ""; C14957gcv.e(str, ""); C14957gcv.e(c1989aUI, ""); C14957gcv.e(str2, ""); if (C14957gcv.b((Object) "AUTO_TOP_UP", (Object) str)) { KM a = c1989aUI.a.a(jv); c1989aUI.e = a; interfaceC9209dfR.c(a); return; } if (C14957gcv.b((Object) "COMMERCIAL_LOAN", (Object) str)) { c1989aUI.e = c1989aUI.a.a((JV) null); C15829iu c15829iu = c1989aUI.d; HashMap e = c15829iu.b.a.e(); if (e != null) { String t = c15829iu.e.a.t(); C14957gcv.c((Object) t, ""); if (!C14957gcv.b((Object) "th", (Object) t) ? (str3 = e.get("NCB_LOAN_TYPE_NAME_EN")) != null : (str3 = e.get("NCB_LOAN_TYPE_NAME_TH")) != null) { str4 = str3; } } if (c1989aUI.d.b()) { ZI.IeS ieS = new ZI.IeS() { // from class: o.aUM @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9209dfR) obj).e(); } }; if (c1989aUI.f != 0) { ieS.e(c1989aUI.f); } } interfaceC9209dfR.c(str4, jx); return; } if (c1989aUI.f != 0) { c1989aUI.f.y(); } C15835iw c15835iw = c1989aUI.c; RVV rvv = new RVV(c1989aUI); IeS ieS2 = new IeS(c1989aUI); C14957gcv.e(rvv, ""); C14957gcv.e(ieS2, ""); C14957gcv.e(str2, ""); C14957gcv.e(str, ""); c15835iw.b(c15835iw.d, rvv, ieS2, new FNP.HBt(str2, str)); } public static final /* synthetic */ void a(C1989aUI c1989aUI) { if (c1989aUI.f != 0) { c1989aUI.f.ar_(); } } public static final /* synthetic */ void d(C1989aUI c1989aUI, Throwable th, C0690Mh.IeS ieS) { if (c1989aUI.b(th)) { c1989aUI.d(c1989aUI.j.d(th, ieS)); } } public static final /* synthetic */ void b(C1989aUI c1989aUI, Throwable th, Runnable runnable) { if (c1989aUI.b(th)) { c1989aUI.d(c1989aUI.j.c(th, runnable)); } } }