package o; import com.google.gson.JsonObject; import com.google.gson.reflect.TypeToken; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import o.C0690Mh; import o.C15715hv; import o.C7135cia; import o.InterfaceC9461dkF; import o.ZI; import org.bouncycastle.i18n.MessageBundle; import org.json.JSONException; /* renamed from: o.cia, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C7135cia extends ZI { public final C15845jA a; public String b; public ON c; public C16174ltE d; public final C17809ztu e; private final mSw g; public final nPB h; public boolean i; private final C17121uB k; private final C17612yL l; private final C17350vy m; private final C16075kv n; /* renamed from: o, reason: collision with root package name */ private final C17231uz f8647o; private final C16121lS r; /* renamed from: o.cia$NHB */ /* loaded from: classes4.dex */ public static final class NHB extends TypeToken> { } /* renamed from: o.cia$ZnX */ /* loaded from: classes4.dex */ public static final class ZnX extends TypeToken> { } /* renamed from: o.cia$dAO */ /* loaded from: classes4.dex */ public static final class dAO extends TypeToken> { } /* renamed from: o.cia$jNh */ /* loaded from: classes4.dex */ public static final class jNh extends TypeToken { } /* renamed from: o.cia$saX */ /* loaded from: classes4.dex */ public static final class saX extends TypeToken> { } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C7135cia(C16903sI c16903sI, nPB npb, C15845jA c15845jA, C17231uz c17231uz, C17350vy c17350vy, C17121uB c17121uB, C17612yL c17612yL, C16121lS c16121lS, mSw msw, C16075kv c16075kv, C17809ztu c17809ztu) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(npb, ""); C14957gcv.e(c15845jA, ""); C14957gcv.e(c17231uz, ""); C14957gcv.e(c17350vy, ""); C14957gcv.e(c17121uB, ""); C14957gcv.e(c17612yL, ""); C14957gcv.e(c16121lS, ""); C14957gcv.e(msw, ""); C14957gcv.e(c16075kv, ""); C14957gcv.e(c17809ztu, ""); this.h = npb; this.a = c15845jA; this.f8647o = c17231uz; this.m = c17350vy; this.k = c17121uB; this.l = c17612yL; this.r = c16121lS; this.g = msw; this.n = c16075kv; this.e = c17809ztu; } /* renamed from: o.cia$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private C7135cia a; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(String str) { C14866gag c14866gag; final String str2 = str; C14957gcv.e(str2, ""); try { C17612yL c17612yL = this.a.l; C14957gcv.e(str2, ""); JsonObject asJsonObject = ((JsonObject) c17612yL.b.fromJson(str2, JsonObject.class)).getAsJsonObject("data"); if (asJsonObject != null) { final C7135cia c7135cia = this.a; C17612yL unused = c7135cia.l; c7135cia.i = C17612yL.c(asJsonObject); ZI.IeS ieS = new ZI.IeS(c7135cia, str2) { // from class: o.cip private String a; private C7135cia b; @Override // o.ZI.IeS public final void e(Object obj) { C7135cia.RVV.e(this.b, this.a, (InterfaceC9461dkF.IeS) obj); } { this.b = c7135cia; this.a = str2; } }; if (c7135cia.f != 0) { ieS.e(c7135cia.f); } c14866gag = C14866gag.c; } else { c14866gag = null; } if (c14866gag == null) { C7135cia c7135cia2 = this.a; int i = C15715hv.tOB.error_generic_resource; C0690Mh.IeS ieS2 = C0690Mh.IeS.NAVIGATE_BACK; C16903sI c16903sI = c7135cia2.j; c7135cia2.d(c16903sI.c((String) null, c16903sI.e(i), ieS2)); } } catch (JSONException unused2) { C7135cia c7135cia3 = this.a; int i2 = C15715hv.tOB.error_generic_resource; C0690Mh.IeS ieS3 = C0690Mh.IeS.NAVIGATE_BACK; C16903sI c16903sI2 = c7135cia3.j; c7135cia3.d(c16903sI2.c((String) null, c16903sI2.e(i2), ieS3)); } return C14866gag.c; } public static /* synthetic */ void e(C7135cia c7135cia, String str, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(c7135cia, ""); C14957gcv.e(str, ""); if (c7135cia.i) { ieS.i(); } else { ieS.f(); } ieS.e(str); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public RVV(C7135cia c7135cia) { super(1); this.a = c7135cia; } } /* renamed from: o.cia$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private C7135cia b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); C7135cia.b(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 Sts(C7135cia c7135cia) { super(1); this.b = c7135cia; } } /* renamed from: o.cia$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private C7135cia c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(String str) { final String str2 = str; C14957gcv.e(str2, ""); C7135cia c7135cia = this.c; ZI.IeS ieS = new ZI.IeS(str2) { // from class: o.cio private String e; @Override // o.ZI.IeS public final void e(Object obj) { C7135cia.HBt.c(this.e, (InterfaceC9461dkF.IeS) obj); } { this.e = str2; } }; if (c7135cia.f != 0) { ieS.e(c7135cia.f); } return C14866gag.c; } public static /* synthetic */ void c(String str, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(str, ""); ieS.c(str); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(C7135cia c7135cia) { super(1); this.c = c7135cia; } } /* renamed from: o.cia$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { public static final IeS b = new IeS(); @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { C14957gcv.e(th, ""); return C14866gag.c; } IeS() { super(1); } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.cia$jbe */ /* loaded from: classes4.dex */ public static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR { private C7135cia c; private InterfaceC9461dkF.IeS e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C16174ltE c16174ltE) { C16174ltE c16174ltE2 = c16174ltE; C14957gcv.e(c16174ltE2, ""); this.c.d = c16174ltE2; this.e.c(); this.e.d(); if (!c16174ltE2.d) { C16075kv c16075kv = this.c.n; String c = this.c.c(C15971jzF.e.h); C14957gcv.e(c, ""); Klc klc = c16075kv.d; C14957gcv.e(c, ""); klc.e.d(c); this.e.e(); } else { C7135cia c7135cia = this.c; ON d = c7135cia.f8647o.d(c16174ltE2.a); C14957gcv.c(d, ""); c7135cia.c = d; C7135cia c7135cia2 = this.c; ON on = c7135cia2.c; if (on == null) { C14957gcv.a(""); on = null; } c7135cia2.e(c16174ltE2, on); } return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ jbe(C7135cia c7135cia, InterfaceC9461dkF.IeS ieS) { super(1); this.c = c7135cia; this.e = ieS; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.cia$tOB */ /* loaded from: classes4.dex */ public static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR { private C7135cia c; private InterfaceC9461dkF.IeS d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); this.d.c(); this.d.d(); C7135cia.c(this.c, th2); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ tOB(InterfaceC9461dkF.IeS ieS, C7135cia c7135cia) { super(1); this.d = ieS; this.c = c7135cia; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.cia$ZqN */ /* loaded from: classes4.dex */ public static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR { private InterfaceC9461dkF.IeS a; private HashMap b; private C7135cia d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C7968cyO c7968cyO) { C7968cyO c7968cyO2 = c7968cyO; C14957gcv.e(c7968cyO2, ""); this.a.c(); this.a.d(); this.d.d(this.b, c7968cyO2); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ZqN(InterfaceC9461dkF.IeS ieS, C7135cia c7135cia, HashMap hashMap) { super(1); this.a = ieS; this.d = c7135cia; this.b = hashMap; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.cia$ojQ */ /* loaded from: classes4.dex */ public static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR { private C7135cia b; private InterfaceC9461dkF.IeS e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); this.e.c(); this.e.d(); C7135cia.c(this.b, th2); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ojQ(InterfaceC9461dkF.IeS ieS, C7135cia c7135cia) { super(1); this.e = ieS; this.b = c7135cia; } } public final void c(boolean z) { final String replace; final YV yv; ON on = this.c; ON on2 = null; if (on == null) { C14957gcv.a(""); on = null; } String str = on.c; if (str != null && str.length() != 0) { ON on3 = this.c; if (on3 == null) { C14957gcv.a(""); } else { on2 = on3; } replace = on2.c; } else { replace = this.r.d(this.g.b.L()).a.replace("\n", " "); } if (z) { yv = YV.NEW_SUITABILITY; } else { yv = YV.OLD_SUITABILITY; } ZI.IeS ieS = new ZI.IeS(replace, yv) { // from class: o.cil private String b; private YV e; @Override // o.ZI.IeS public final void e(Object obj) { C7135cia.e(this.b, this.e, (InterfaceC9461dkF.IeS) obj); } { this.b = replace; this.e = yv; } }; if (this.f != 0) { ieS.e(this.f); } } @Override // o.ZI public final void w_() { this.a.a(); super.w_(); } /* JADX INFO: Access modifiers changed from: private */ public final String c(String str) { String str2 = this.b; if (str2 == null) { C14957gcv.a(""); str2 = null; } C13396fZU c13396fZU = new C13396fZU(str, str2); if (!C14957gcv.b(c13396fZU, new C13396fZU(C15971jzF.e.h, C15971jzF.e.s))) { if (!C14957gcv.b(c13396fZU, new C13396fZU(C15971jzF.e.h, C15971jzF.e.f))) { if (C14957gcv.b(c13396fZU, new C13396fZU(C15971jzF.e.i, C15971jzF.e.s))) { return EnumC1274Zk.SCBS_INVEST_NOW.entryPoint; } return C14957gcv.b(c13396fZU, new C13396fZU(C15971jzF.e.i, C15971jzF.e.f)) ? EnumC1274Zk.SCBS_COMPARE_INVEST_NOW.entryPoint : ""; } return EnumC1274Zk.MF_COMPARE_INVEST_NOW.entryPoint; } return EnumC1274Zk.MF_INVEST_NOW.entryPoint; } /* renamed from: o.cia$LWm */ /* loaded from: classes4.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } public static /* synthetic */ void e(String str, YV yv, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(yv, ""); C14957gcv.c((Object) str, ""); ieS.d(str, yv); } public static /* synthetic */ void c(C7135cia c7135cia, IJP ijp, int i, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(c7135cia, ""); C14957gcv.e(ijp, ""); ieS.c(c7135cia.k.d(ijp), i); } public static /* synthetic */ void b(String str, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(str, ""); ieS.d(str); } public static /* synthetic */ void b(String str, Map map, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(str, ""); C14957gcv.e(map, ""); String str2 = (String) map.get(MessageBundle.TITLE_ENTRY); ieS.e(str, str2 != null ? str2 : ""); } public static /* synthetic */ void b(C7135cia c7135cia, HashMap hashMap, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(c7135cia, ""); C14957gcv.e(hashMap, ""); ieS.g(); c7135cia.a.b(new ZqN(ieS, c7135cia, hashMap), new ojQ(ieS, c7135cia)); } public static /* synthetic */ void c(C7135cia c7135cia, String str, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(c7135cia, ""); C14957gcv.e(str, ""); ieS.g(); c7135cia.a.d(new jbe(c7135cia, ieS), new tOB(ieS, c7135cia), c7135cia.k.m(str)); } public static /* synthetic */ void a(boolean z, boolean z2, HashMap hashMap, C7135cia c7135cia, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(hashMap, ""); C14957gcv.e(c7135cia, ""); if (z && z2) { ieS.d((HashMap) hashMap); return; } C16075kv c16075kv = c7135cia.n; String c = c7135cia.c(C15971jzF.e.i); C14957gcv.e(c, ""); Klc klc = c16075kv.d; C14957gcv.e(c, ""); klc.e.d(c); ieS.e(C14957gcv.b(new C13396fZU(Boolean.valueOf(z), Boolean.valueOf(z2)), new C13396fZU(Boolean.TRUE, Boolean.FALSE)) ? 1 : 0); } public static /* synthetic */ void a(String str, OC oc, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(str, ""); C14957gcv.e(oc, ""); ieS.c(str, oc.d); } public static /* synthetic */ void b(C7135cia c7135cia, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(c7135cia, ""); if (c7135cia.i) { ieS.j(); } else { ieS.k(); } } public static /* synthetic */ void e(C16174ltE c16174ltE, List list, C7135cia c7135cia, InterfaceC9461dkF.IeS ieS) { PY py; C14957gcv.e(c16174ltE, ""); C14957gcv.e(c7135cia, ""); cIM cim = c16174ltE.b; ON on = null; if (cim != null) { C17350vy c17350vy = c7135cia.m; py = C17350vy.e(cim); } else { py = null; } ON on2 = c7135cia.c; if (on2 == null) { C14957gcv.a(""); } else { on = on2; } ieS.e(py, list, on); } public static /* synthetic */ void a(ON on, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(on, ""); ieS.c(on); } public static /* synthetic */ void e(String str, String str2, InterfaceC9461dkF.IeS ieS) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); ieS.d(str, str2); } public static final /* synthetic */ void c(C7135cia c7135cia, Throwable th) { if (c7135cia.b(th)) { c7135cia.d(c7135cia.j.e(th)); } } public static final /* synthetic */ void b(C7135cia c7135cia, Throwable th, C0690Mh.IeS ieS) { if (c7135cia.b(th)) { c7135cia.d(c7135cia.j.d(th, ieS)); } } private final void b(final C16174ltE c16174ltE) { final ArrayList arrayList; List list = c16174ltE.e; C16174ltE c16174ltE2 = null; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { arrayList2.add(this.k.d((IJP) it.next())); } arrayList = arrayList2; } else { arrayList = null; } if (c16174ltE.c) { C16174ltE c16174ltE3 = this.d; if (c16174ltE3 == null) { C14957gcv.a(""); } else { c16174ltE2 = c16174ltE3; } List list3 = c16174ltE2.e; if (list3 != null) { for (final IJP ijp : list3) { List list4 = ijp.e; if (list4 != null && !list4.isEmpty()) { List list5 = ijp.e; C14957gcv.c(list5, ""); final int i = 0; for (Object obj : list5) { if (i < 0) { throw new ArithmeticException("Index overflow has happened."); } if (((ThO) obj).f) { ZI.IeS ieS = new ZI.IeS(this, ijp, i) { // from class: o.cik private C7135cia a; private IJP b; private int c; @Override // o.ZI.IeS public final void e(Object obj2) { C7135cia.c(this.a, this.b, this.c, (InterfaceC9461dkF.IeS) obj2); } { this.a = this; this.b = ijp; this.c = i; } }; if (this.f != 0) { ieS.e(this.f); return; } return; } i++; } } } } d(this.j.c(C15715hv.tOB.error_default_title, C15715hv.tOB.error_generic_resource, new Runnable() { // from class: o.cij @Override // java.lang.Runnable public final void run() { C0690Mh.IeS.JUST_DISMISS; } })); return; } ZI.IeS ieS2 = new ZI.IeS(c16174ltE, arrayList, this) { // from class: o.cie private C7135cia a; private C16174ltE c; private List d; @Override // o.ZI.IeS public final void e(Object obj2) { C7135cia.e(this.c, this.d, this.a, (InterfaceC9461dkF.IeS) obj2); } { this.c = c16174ltE; this.d = arrayList; this.a = this; } }; if (this.f != 0) { ieS2.e(this.f); } } public final void e(C16174ltE c16174ltE, final ON on) { String str = on.g; C14957gcv.c((Object) str, ""); if (2 == Integer.parseInt(str)) { b(c16174ltE); return; } ZI.IeS ieS = new ZI.IeS(on) { // from class: o.chZ private ON e; @Override // o.ZI.IeS public final void e(Object obj) { C7135cia.a(this.e, (InterfaceC9461dkF.IeS) obj); } { this.e = on; } }; if (this.f != 0) { ieS.e(this.f); } } public final void d(final HashMap hashMap, C7968cyO c7968cyO) { Gdg gdg = c7968cyO.h; final boolean z = gdg != null ? gdg.b : false; Gdg gdg2 = c7968cyO.h; final boolean z2 = gdg2 != null ? gdg2.d : false; ZI.IeS ieS = new ZI.IeS(z, z2, hashMap, this) { // from class: o.cig private boolean a; private HashMap c; private boolean d; private C7135cia e; @Override // o.ZI.IeS public final void e(Object obj) { C7135cia.a(this.d, this.a, this.c, this.e, (InterfaceC9461dkF.IeS) obj); } { this.d = z; this.a = z2; this.c = hashMap; this.e = this; } }; if (this.f != 0) { ieS.e(this.f); } } static { new LWm((byte) 0); } }