package o; import com.scb.phone.domain.errors.RetrofitException; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.List; import o.C0690Mh; import o.C15715hv; import o.C4396bYw; import o.InterfaceC9483dkb; import o.ZI; import o.jlh; /* renamed from: o.bYw */ /* loaded from: classes4.dex */ public final class C4396bYw extends ZI { public final C15849jC a; private final C17512xQ d; private final boolean e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C4396bYw(C15849jC c15849jC, C17512xQ c17512xQ, jwh jwhVar, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(c15849jC, ""); C14957gcv.e(c17512xQ, ""); C14957gcv.e(jwhVar, ""); C14957gcv.e(c16903sI, ""); this.a = c15849jC; this.d = c17512xQ; this.e = jwhVar.d.T(); } /* renamed from: o.bYw$LWm */ /* loaded from: classes4.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } /* renamed from: o.bYw$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private C4396bYw c; private InterfaceC9483dkb.Sts e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { VCl vCl; ggV ggv; Throwable th2 = th; C14957gcv.e(th2, ""); C4396bYw.c(this.c); RetrofitException retrofitException = th2 instanceof RetrofitException ? (RetrofitException) th2 : null; String str = (retrofitException == null || (vCl = retrofitException.e) == null || (ggv = vCl.c) == null) ? null : ggv.e; if (C14957gcv.b((Object) str, (Object) "1899")) { this.e.b(); } else if (C14957gcv.b((Object) str, (Object) "3060")) { this.e.d(); } else { C4396bYw c4396bYw = this.c; int i = C15715hv.tOB.error_generic_resource; C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK; C16903sI c16903sI = c4396bYw.j; c4396bYw.d(c16903sI.c((String) null, c16903sI.e(i), ieS)); } return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(C4396bYw c4396bYw, InterfaceC9483dkb.Sts sts) { super(1); this.c = c4396bYw; this.e = sts; } } /* renamed from: o.bYw$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private InterfaceC9483dkb.Sts b; private C4396bYw d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(POg pOg) { POg pOg2 = pOg; C14957gcv.e(pOg2, ""); C4396bYw.c(this.d); this.b.c(pOg2.c, C14881gav.a((Iterable) pOg2.d, (Comparator) new Sts()), this.d.e); return C14866gag.c; } /* renamed from: o.bYw$RVV$Sts */ /* loaded from: classes4.dex */ public static final class Sts implements Comparator { /* JADX WARN: Multi-variable type inference failed */ @Override // java.util.Comparator public final int compare(T t, T t2) { Integer valueOf = Integer.valueOf(((dGW) t).b); Integer valueOf2 = Integer.valueOf(((dGW) t2).b); if (valueOf == valueOf2) { return 0; } if (valueOf == null) { return -1; } if (valueOf2 == null) { return 1; } return valueOf.compareTo(valueOf2); } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(C4396bYw c4396bYw, InterfaceC9483dkb.Sts sts) { super(1); this.d = c4396bYw; this.b = sts; } } /* renamed from: o.bYw$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private C4396bYw e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { C14957gcv.e(th, ""); C4396bYw c4396bYw = this.e; int i = C15715hv.tOB.error_generic_resource; C0690Mh.IeS ieS = C0690Mh.IeS.JUST_DISMISS; C16903sI c16903sI = c4396bYw.j; c4396bYw.d(c16903sI.c((String) null, c16903sI.e(i), ieS)); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(C4396bYw c4396bYw) { super(1); this.e = c4396bYw; } } /* renamed from: o.bYw$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private C4396bYw d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(orO oro) { orO oro2 = oro; C14957gcv.e(oro2, ""); C4396bYw.c(this.d); C4396bYw c4396bYw = this.d; ZI.IeS ieS = new ZI.IeS(c4396bYw, oro2) { // from class: o.bYH private orO c; private C4396bYw d; @Override // o.ZI.IeS public final void e(Object obj) { C4396bYw.Sts.c(this.d, this.c, (InterfaceC9483dkb.Sts) obj); } { this.d = c4396bYw; this.c = oro2; } }; if (c4396bYw.f != 0) { ieS.e(c4396bYw.f); } return C14866gag.c; } public static /* synthetic */ void c(C4396bYw c4396bYw, orO oro, InterfaceC9483dkb.Sts sts) { C14957gcv.e(c4396bYw, ""); C14957gcv.e(oro, ""); C17512xQ c17512xQ = c4396bYw.d; C14957gcv.e(oro, ""); List list = oro.d; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); for (C12365ewo c12365ewo : list) { C17518xT c17518xT = c17512xQ.b; C14957gcv.e(c12365ewo, ""); arrayList.add(new C0978Sv(c12365ewo.e, c12365ewo.d)); } sts.a(new C0980Sx(arrayList, oro.a, oro.b)); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public Sts(C4396bYw c4396bYw) { super(1); this.d = c4396bYw; } } @Override // o.ZI public final void w_() { this.a.a(); super.w_(); } public static /* synthetic */ void a(int i, InterfaceC9483dkb.Sts sts) { if (i == 0) { sts.h(); } else { sts.m(); } } public static /* synthetic */ void b(int i, InterfaceC9483dkb.Sts sts) { if (i > 0) { sts.o(); } else { sts.i(); } } public static /* synthetic */ void e(int i, int i2, int i3, InterfaceC9483dkb.Sts sts) { boolean z; if (i == 0) { z = i2 == 0; sts.i(); if ((z ? C14866gag.c : null) == null) { sts.o(); return; } return; } z = i3 == 0; sts.f(); if ((z ? C14866gag.c : null) == null) { sts.n(); } } public static /* synthetic */ void b(int i, String str, InterfaceC9483dkb.Sts sts) { C14957gcv.e(str, ""); if (C14957gcv.b((Object) String.valueOf(i), (Object) str)) { sts.j(); } else { sts.g(); } } public static /* synthetic */ void b(C4396bYw c4396bYw, String str, InterfaceC9483dkb.Sts sts) { C14957gcv.e(c4396bYw, ""); C14957gcv.e(str, ""); C15849jC c15849jC = c4396bYw.a; RVV rvv = new RVV(c4396bYw, sts); IeS ieS = new IeS(c4396bYw, sts); C3964bM c3964bM = new C3964bM(str); C14957gcv.e(rvv, ""); C14957gcv.e(ieS, ""); C14957gcv.e(c3964bM, ""); c15849jC.b(c15849jC.c, rvv, ieS, new jlh.Sts(c3964bM)); } public static /* synthetic */ void b(String str, C4396bYw c4396bYw, List list, InterfaceC9483dkb.Sts sts) { C14957gcv.e(str, ""); C14957gcv.e(c4396bYw, ""); C14957gcv.e(list, ""); String str2 = str; if (str2.length() == 0) { sts.e(); return; } ArrayList arrayList = new ArrayList(); for (Object obj : list) { if (gdZ.d((CharSequence) ((dGW) obj).e, (CharSequence) str2, false)) { arrayList.add(obj); } } ArrayList arrayList2 = arrayList; if (arrayList2.isEmpty()) { sts.c(); } else { sts.b(arrayList2); } } public static final /* synthetic */ void c(C4396bYw c4396bYw) { if (c4396bYw.f != 0) { c4396bYw.f.ar_(); } } static { new LWm((byte) 0); } }