package o; import com.scb.phone.domain.errors.RetrofitException; import java.util.ArrayList; import java.util.Collection; import java.util.List; import o.C0690Mh; import o.C4768bgR; import o.InterfaceC9213dfV; import o.ZI; import o.wRi; /* renamed from: o.bgR, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C4768bgR extends ZI { public final C16439oPV a; public String b; public boolean c; public InterfaceC9213dfV.Sts d; public List e; public final InterfaceC16300nIe g; private final C16892sD h; public C4768bgR(C16903sI c16903sI, C16439oPV c16439oPV, InterfaceC16300nIe interfaceC16300nIe, C16892sD c16892sD) { super(c16903sI); this.c = false; this.a = c16439oPV; this.g = interfaceC16300nIe; this.h = c16892sD; } /* renamed from: o.bgR$IeS */ /* loaded from: classes4.dex */ public class IeS extends wRi.LWm { private C4768bgR e; private IeS(C4768bgR c4768bgR) { this.e = c4768bgR; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C9567dmF c9567dmF = (C9567dmF) obj; C4768bgR.i(this.e); if (c9567dmF != null) { C16892sD c16892sD = this.e.h; C14957gcv.e(c9567dmF, ""); String str = c9567dmF.e; String str2 = c9567dmF.d; List list = c9567dmF.b; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); for (ymE yme : list) { String b_ = c16892sD.b_(yme.a); C14957gcv.c((Object) b_, ""); arrayList.add(new C0694Mk(b_, yme.d)); } final C0691Mi c0691Mi = new C0691Mi(str, str2, arrayList, c9567dmF.a); C4768bgR c4768bgR = this.e; ZI.IeS ieS = new ZI.IeS(c0691Mi) { // from class: o.bgU private C0691Mi a; @Override // o.ZI.IeS public final void e(Object obj2) { C4768bgR.IeS.c(this.a, (InterfaceC9213dfV) obj2); } { this.a = c0691Mi; } }; if (c4768bgR.f != 0) { ieS.e(c4768bgR.f); } } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C4768bgR.d(this.e); C4768bgR.c(this.e, th, C0690Mh.IeS.NAVIGATE_BACK); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void c(C0691Mi c0691Mi, InterfaceC9213dfV interfaceC9213dfV) { interfaceC9213dfV.c(c0691Mi.c); interfaceC9213dfV.d(c0691Mi.b); interfaceC9213dfV.a(c0691Mi.a); interfaceC9213dfV.b(c0691Mi.d); } public /* synthetic */ IeS(C4768bgR c4768bgR, byte b) { this(c4768bgR); } } /* renamed from: o.bgR$Sts */ /* loaded from: classes4.dex */ public class Sts extends wRi.LWm { private C4768bgR d; private Sts(C4768bgR c4768bgR) { this.d = c4768bgR; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { String str; C4768bgR.j(this.d); if (th instanceof RetrofitException) { RetrofitException retrofitException = (RetrofitException) th; if (retrofitException.e != null) { str = retrofitException.e.c.e; if (!"3005".equals(str) || "3006".equals(str) || "3008".equals(str) || "3010".equals(str) || "3011".equals(str)) { C4768bgR.e(this.d, th, new Runnable(this) { // from class: o.bgZ private C4768bgR.Sts a; @Override // java.lang.Runnable public final void run() { C4768bgR.Sts.b(this.a); } { this.a = this; } }); } else if ("5009".equals(str)) { C4768bgR c4768bgR = this.d; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.bgY private C4768bgR.Sts b; private Throwable c; @Override // o.ZI.IeS public final void e(Object obj) { InterfaceC9213dfV interfaceC9213dfV = (InterfaceC9213dfV) obj; interfaceC9213dfV.d(this.b.d.j.e(this.c)); } { this.b = this; this.c = th; } }; if (c4768bgR.f != 0) { ieS.e(c4768bgR.f); } } else if (this.d.e != null && this.d.d != null && this.d.e.contains(str)) { C4768bgR.a(this.d, th, new Runnable(this) { // from class: o.bha private C4768bgR.Sts d; @Override // java.lang.Runnable public final void run() { this.d.d.d.c(); } { this.d = this; } }); } else { C4768bgR.e(this.d, th); } this.d.c = false; } } str = ""; if (!"3005".equals(str)) { } C4768bgR.e(this.d, th, new Runnable(this) { // from class: o.bgZ private C4768bgR.Sts a; @Override // java.lang.Runnable public final void run() { C4768bgR.Sts.b(this.a); } { this.a = this; } }); this.d.c = false; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C4768bgR.h(this.d); C4768bgR c4768bgR = this.d; ZI.IeS ieS = new ZI.IeS() { // from class: o.bgT @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9213dfV) obj).b(); } }; if (c4768bgR.f != 0) { ieS.e(c4768bgR.f); } this.d.c = false; } public static /* synthetic */ void b(Sts sts) { C4768bgR c4768bgR = sts.d; ZI.IeS ieS = new ZI.IeS() { // from class: o.bgW @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9213dfV) obj).d(); } }; if (c4768bgR.f != 0) { ieS.e(c4768bgR.f); } } public /* synthetic */ Sts(C4768bgR c4768bgR, byte b) { this(c4768bgR); } } static /* synthetic */ void d(C4768bgR c4768bgR) { if (c4768bgR.f != 0) { c4768bgR.f.ar_(); } } static /* synthetic */ void c(C4768bgR c4768bgR, Throwable th, C0690Mh.IeS ieS) { if (c4768bgR.b(th)) { c4768bgR.d(c4768bgR.j.d(th, ieS)); } } static /* synthetic */ void i(C4768bgR c4768bgR) { if (c4768bgR.f != 0) { c4768bgR.f.ar_(); } } static /* synthetic */ void j(C4768bgR c4768bgR) { if (c4768bgR.f != 0) { c4768bgR.f.ar_(); } } static /* synthetic */ void e(C4768bgR c4768bgR, Throwable th, Runnable runnable) { if (c4768bgR.b(th)) { c4768bgR.d(c4768bgR.j.c(th, runnable)); } } static /* synthetic */ void a(C4768bgR c4768bgR, Throwable th, Runnable runnable) { if (c4768bgR.b(th)) { c4768bgR.d(c4768bgR.j.c(th, runnable)); } } static /* synthetic */ void e(C4768bgR c4768bgR, Throwable th) { if (c4768bgR.b(th)) { c4768bgR.d(c4768bgR.j.e(th)); } } static /* synthetic */ void h(C4768bgR c4768bgR) { if (c4768bgR.f != 0) { c4768bgR.f.ar_(); } } }