package o; import com.scb.phone.domain.errors.RetrofitException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import o.C15715hv; import o.C7578cqv; import o.EV; import o.EW; import o.InterfaceC9557dlw; import o.QN; import o.ZI; /* renamed from: o.cqv, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C7578cqv extends ZI { public final String a; private final C17735zN c; private final C0149Ag d; public final C15858jG e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C7578cqv(C16903sI c16903sI, C15858jG c15858jG, C17735zN c17735zN, C0149Ag c0149Ag, String str) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(c15858jG, ""); C14957gcv.e(c17735zN, ""); C14957gcv.e(c0149Ag, ""); C14957gcv.e(str, ""); this.e = c15858jG; this.c = c17735zN; this.d = c0149Ag; this.a = str; } /* renamed from: o.cqv$LWm */ /* loaded from: classes4.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } /* renamed from: o.cqv$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private C7578cqv d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { final Throwable th2 = th; C14957gcv.e(th2, ""); if (ZI.a(th2) || ZI.c(th2) || ZI.d(th2)) { C7578cqv.f(this.d); final C7578cqv c7578cqv = this.d; ZI.IeS ieS = new ZI.IeS(c7578cqv, th2) { // from class: o.cqC private C7578cqv b; private Throwable c; @Override // o.ZI.IeS public final void e(Object obj) { C7578cqv.HBt.d(this.b, this.c, (InterfaceC9557dlw.LWm) obj); } { this.b = c7578cqv; this.c = th2; } }; if (c7578cqv.f != 0) { ieS.e(c7578cqv.f); } } else { final C7578cqv c7578cqv2 = this.d; ZI.IeS ieS2 = new ZI.IeS(th2, c7578cqv2) { // from class: o.cqD private Throwable b; private C7578cqv e; @Override // o.ZI.IeS public final void e(Object obj) { C7578cqv.HBt.d(this.b, this.e, (InterfaceC9557dlw.LWm) obj); } { this.b = th2; this.e = c7578cqv2; } }; if (c7578cqv2.f != 0) { ieS2.e(c7578cqv2.f); } } return C14866gag.c; } public static /* synthetic */ void d(C7578cqv c7578cqv, Throwable th, InterfaceC9557dlw.LWm lWm) { C14957gcv.e(c7578cqv, ""); C14957gcv.e(th, ""); String str = c7578cqv.j.e(th).c; C14957gcv.c((Object) str, ""); lWm.b(str); } public static /* synthetic */ void d(Throwable th, C7578cqv c7578cqv, final InterfaceC9557dlw.LWm lWm) { C14957gcv.e(th, ""); C14957gcv.e(c7578cqv, ""); if (th instanceof RetrofitException) { if (C14957gcv.b((Object) ((RetrofitException) th).e.c.e, (Object) "9000")) { C7578cqv.b(c7578cqv, th, new Runnable(lWm) { // from class: o.cqG private InterfaceC9557dlw.LWm b; @Override // java.lang.Runnable public final void run() { this.b.c(); } { this.b = lWm; } }); return; } else { C7578cqv.b(c7578cqv, th, new Runnable(lWm) { // from class: o.cqJ private InterfaceC9557dlw.LWm a; @Override // java.lang.Runnable public final void run() { this.a.d(); } { this.a = lWm; } }); return; } } C7578cqv.b(c7578cqv, th, new Runnable(lWm) { // from class: o.cqL private InterfaceC9557dlw.LWm c; @Override // java.lang.Runnable public final void run() { this.c.d(); } { this.c = lWm; } }); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(C7578cqv c7578cqv) { super(1); this.d = c7578cqv; } } /* renamed from: o.cqv$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private C7578cqv b; private C1070Uy d; private C1049Un e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(WNM wnm) { String str; WNM wnm2 = wnm; C14957gcv.e(wnm2, ""); C7578cqv.f(this.b); C17735zN c17735zN = this.b.c; C1049Un c1049Un = this.e; C1070Uy c1070Uy = this.d; C14957gcv.e(c1049Un, ""); C14957gcv.e(c1070Uy, ""); C14957gcv.e(wnm2, ""); List list = c17735zN.a; C17414wd c17414wd = c17735zN.f; String e = c17735zN.e(C15715hv.tOB.prepaid_activation_success_title); C14957gcv.c((Object) e, ""); int i = C15715hv.IeS.ic_check_circle_black_48dp; String str2 = (String) C16157lj.c(new Object[]{c17735zN, wnm2.b}, 838289628, -838289623, System.identityHashCode(c17735zN)); C14957gcv.c((Object) str2, ""); String c = c17735zN.c(C15715hv.tOB.prepaid_activation_success_ref, wnm2.d); C14957gcv.c((Object) c, ""); list.add(C17414wd.a(e, i, str2, c)); String str3 = c1049Un.j; c17735zN.a.add(c17735zN.d.b(c1049Un.j, c1070Uy.b)); c17735zN.a.add(new QQ()); C17412wb c17412wb = c17735zN.b; String e2 = c17735zN.e(C15715hv.tOB.prepaid_activation_success_cardno); C14957gcv.c((Object) e2, ""); c17735zN.a.add(c17412wb.e(e2, c1070Uy.b)); EV ev = new EV(EV.a(), (byte) 0); if (C14957gcv.b((Object) "1000", (Object) wnm2.c.c.a)) { str = wnm2.a; } else { String str4 = wnm2.c.c.c; String str5 = wnm2.c.c.c; if (str5 == null || str5.length() == 0) { str4 = c17735zN.e.getString(C15715hv.tOB.error_generic_resource); } EV.IeS a = EV.a(); a.b = wnm2.c.c.e; a.a = str4; ev = new EV(a, (byte) 0); str = ""; } EW.LWm b = EW.b(c17735zN.a, "PrepaidCard_activate_".concat(String.valueOf(wnm2.d))); b.i = str; b.e = ev; final EW c2 = b.c(); C14957gcv.c(c2, ""); C7578cqv c7578cqv = this.b; ZI.IeS ieS = new ZI.IeS(c2) { // from class: o.cqH private EW b; @Override // o.ZI.IeS public final void e(Object obj) { C7578cqv.Sts.c(this.b, (InterfaceC9557dlw.LWm) obj); } { this.b = c2; } }; if (c7578cqv.f != 0) { ieS.e(c7578cqv.f); } return C14866gag.c; } public static /* synthetic */ void c(EW ew, InterfaceC9557dlw.LWm lWm) { C14957gcv.e(ew, ""); lWm.e(ew); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public Sts(C7578cqv c7578cqv, C1049Un c1049Un, C1070Uy c1070Uy) { super(1); this.b = c7578cqv; this.e = c1049Un; this.d = c1070Uy; } } /* renamed from: o.cqv$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private ES c; private C7578cqv d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C13549fcS c13549fcS) { C13549fcS c13549fcS2 = c13549fcS; C14957gcv.e(c13549fcS2, ""); C7578cqv.f(this.d); C0149Ag c0149Ag = this.d.d; List list = this.c.a; C14957gcv.c(list, ""); C14957gcv.e(list, ""); C14957gcv.e(c13549fcS2, ""); ArrayList arrayList = new ArrayList(); QN.HBt a = QN.a(); a.f = c0149Ag.e(C15715hv.tOB.prepaid_request_success_title); a.d = C15715hv.IeS.ic_check_circle_black_48dp; a.a = (String) C16157lj.c(new Object[]{c0149Ag, c13549fcS2.c}, 838289628, -838289623, System.identityHashCode(c0149Ag)); a.c = c0149Ag.c(C15715hv.tOB.reference_id, c13549fcS2.d); arrayList.add(new QN(a, (byte) 0)); arrayList.add(new QQ()); arrayList.addAll(list); EW.LWm b = EW.b(arrayList, "PrepaidCard_request_".concat(String.valueOf(c13549fcS2.d))); gcH gch = gcH.d; String string = c0149Ag.e.getString(C15715hv.tOB.prepaid_request_remaining_text); C14957gcv.c((Object) string, ""); String format = String.format(string, Arrays.copyOf(new Object[]{C0149Ag.c(Double.valueOf(Double.parseDouble(c13549fcS2.b)))}, 1)); C14957gcv.c((Object) format, ""); b.f = format; final EW c = b.c(); C14957gcv.c(c, ""); C7578cqv c7578cqv = this.d; ZI.IeS ieS = new ZI.IeS(c) { // from class: o.cqK private EW c; @Override // o.ZI.IeS public final void e(Object obj) { C7578cqv.IeS.e(this.c, (InterfaceC9557dlw.LWm) obj); } { this.c = c; } }; if (c7578cqv.f != 0) { ieS.e(c7578cqv.f); } return C14866gag.c; } public static /* synthetic */ void e(EW ew, InterfaceC9557dlw.LWm lWm) { C14957gcv.e(ew, ""); lWm.e(ew); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public IeS(C7578cqv c7578cqv, ES es) { super(1); this.d = c7578cqv; this.c = es; } } /* renamed from: o.cqv$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private C7578cqv a; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { final Throwable th2 = th; C14957gcv.e(th2, ""); if (ZI.a(th2) || ZI.c(th2) || ZI.d(th2)) { C7578cqv.f(this.a); final C7578cqv c7578cqv = this.a; ZI.IeS ieS = new ZI.IeS(c7578cqv, th2) { // from class: o.cqI private C7578cqv a; private Throwable b; @Override // o.ZI.IeS public final void e(Object obj) { C7578cqv.RVV.c(this.a, this.b, (InterfaceC9557dlw.LWm) obj); } { this.a = c7578cqv; this.b = th2; } }; if (c7578cqv.f != 0) { ieS.e(c7578cqv.f); } } else { final C7578cqv c7578cqv2 = this.a; ZI.IeS ieS2 = new ZI.IeS(th2, c7578cqv2) { // from class: o.cqM private C7578cqv a; private Throwable e; @Override // o.ZI.IeS public final void e(Object obj) { C7578cqv.RVV.c(this.e, this.a, (InterfaceC9557dlw.LWm) obj); } { this.e = th2; this.a = c7578cqv2; } }; if (c7578cqv2.f != 0) { ieS2.e(c7578cqv2.f); } } return C14866gag.c; } public static /* synthetic */ void c(Throwable th, C7578cqv c7578cqv, final InterfaceC9557dlw.LWm lWm) { C14957gcv.e(th, ""); C14957gcv.e(c7578cqv, ""); if (th instanceof RetrofitException) { RetrofitException retrofitException = (RetrofitException) th; if (C14957gcv.b((Object) retrofitException.e.c.e, (Object) "9000")) { C7578cqv.b(c7578cqv, th, new Runnable(lWm) { // from class: o.cqN private InterfaceC9557dlw.LWm d; @Override // java.lang.Runnable public final void run() { this.d.a(); } { this.d = lWm; } }); return; } else { C7578cqv.a(c7578cqv, retrofitException); return; } } C7578cqv.b(c7578cqv, th, new Runnable(lWm) { // from class: o.cqQ private InterfaceC9557dlw.LWm a; @Override // java.lang.Runnable public final void run() { this.a.d(); } { this.a = lWm; } }); } public static /* synthetic */ void c(C7578cqv c7578cqv, Throwable th, InterfaceC9557dlw.LWm lWm) { C14957gcv.e(c7578cqv, ""); C14957gcv.e(th, ""); String str = c7578cqv.j.e(th).c; C14957gcv.c((Object) str, ""); lWm.b(str); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public RVV(C7578cqv c7578cqv) { super(1); this.a = c7578cqv; } } public static /* synthetic */ void a(String str, String str2, InterfaceC9557dlw.LWm lWm) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); lWm.b(str, str2); } public static /* synthetic */ void e(String str, String str2, InterfaceC9557dlw.LWm lWm) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); lWm.c(str, str2); } public static /* synthetic */ void e(C7578cqv c7578cqv) { C14957gcv.e(c7578cqv, ""); ZI.IeS ieS = new ZI.IeS() { // from class: o.cqA @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9557dlw.LWm) obj).c(); } }; if (c7578cqv.f != 0) { ieS.e(c7578cqv.f); } } public static /* synthetic */ void c(C7578cqv c7578cqv) { C14957gcv.e(c7578cqv, ""); ZI.IeS ieS = new ZI.IeS() { // from class: o.cqx @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9557dlw.LWm) obj).d(); } }; if (c7578cqv.f != 0) { ieS.e(c7578cqv.f); } } public static final /* synthetic */ void f(C7578cqv c7578cqv) { if (c7578cqv.f != 0) { c7578cqv.f.ar_(); } } public static final /* synthetic */ void a(final C7578cqv c7578cqv, RetrofitException retrofitException) { String str = retrofitException.e.c.e; if (C14957gcv.b((Object) str, (Object) "1899") || C14957gcv.b((Object) str, (Object) "1999")) { RetrofitException retrofitException2 = retrofitException; Runnable runnable = new Runnable(c7578cqv) { // from class: o.cqB private C7578cqv b; @Override // java.lang.Runnable public final void run() { C7578cqv.e(this.b); } { this.b = c7578cqv; } }; if (c7578cqv.b(retrofitException2)) { c7578cqv.d(c7578cqv.j.c(retrofitException2, runnable)); return; } return; } RetrofitException retrofitException3 = retrofitException; Runnable runnable2 = new Runnable(c7578cqv) { // from class: o.cqE private C7578cqv b; @Override // java.lang.Runnable public final void run() { C7578cqv.c(this.b); } { this.b = c7578cqv; } }; if (c7578cqv.b(retrofitException3)) { c7578cqv.d(c7578cqv.j.c(retrofitException3, runnable2)); } } public static final /* synthetic */ void b(C7578cqv c7578cqv, Throwable th, Runnable runnable) { if (c7578cqv.b(th)) { c7578cqv.d(c7578cqv.j.c(th, runnable)); } } static { new LWm((byte) 0); } }