package o; import com.scb.phone.domain.errors.RetrofitException; import o.C0690Mh; import o.Jjb; import o.ZI; import o.aHX; import o.wRi; /* loaded from: classes4.dex */ public final class aHX extends ZI { private final C16399nx a; public final DJB b; private final C15790id c; private C0367Fb d; private final xZj e; private final String h; private final C16291nD i; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public aHX(C15790id c15790id, DJB djb, xZj xzj, C16291nD c16291nD, C16399nx c16399nx, C16903sI c16903sI, String str) { super(c16903sI); C14957gcv.e(c15790id, ""); C14957gcv.e(djb, ""); C14957gcv.e(xzj, ""); C14957gcv.e(c16291nD, ""); C14957gcv.e(c16399nx, ""); C14957gcv.e(c16903sI, ""); C14957gcv.e(str, ""); this.c = c15790id; this.b = djb; this.e = xzj; this.i = c16291nD; this.a = c16399nx; this.h = str; } /* loaded from: classes4.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } /* loaded from: classes4.dex */ static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR { private aHX c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(fQB fqb) { fQB fqb2 = fqb; C14957gcv.e(fqb2, ""); aHX.g(this.c); aHX ahx = this.c; ahx.d = ahx.a.e(fqb2); C0367Fb c0367Fb = this.c.d; C0367Fb c0367Fb2 = null; if (c0367Fb == null) { C14957gcv.a(""); c0367Fb = null; } String str = c0367Fb.g; C14957gcv.c((Object) str, ""); String str2 = this.c.h; C0367Fb c0367Fb3 = this.c.d; if (c0367Fb3 == null) { C14957gcv.a(""); } else { c0367Fb2 = c0367Fb3; } this.c.e.c(new KQt(str, str2, c0367Fb2.J)); xZj xzj = this.c.e; xzj.d(xzj.i, new IeS(this.c)); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(aHX ahx) { super(1); this.c = ahx; } } /* loaded from: classes4.dex */ static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private aHX e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { final Throwable th2 = th; C14957gcv.e(th2, ""); aHX.g(this.e); if (!(th2 instanceof RetrofitException)) { aHX ahx = this.e; ZI.IeS ieS = new ZI.IeS(th2) { // from class: o.aIe private Throwable a; @Override // o.ZI.IeS public final void e(Object obj) { aHX.Sts.a(this.a, (InterfaceC9185deu) obj); } { this.a = th2; } }; if (ahx.f != 0) { ieS.e(ahx.f); } } else { VCl vCl = ((RetrofitException) th2).e; ggV ggv = vCl != null ? vCl.c : null; String str = ggv != null ? ggv.e : null; if (str == null) { str = ""; } final String str2 = ggv != null ? ggv.d : null; if (str2 == null) { str2 = ""; } String str3 = ggv != null ? ggv.c : null; final String str4 = str3 != null ? str3 : ""; if (C14957gcv.b((Object) str, (Object) "3019")) { aHX ahx2 = this.e; ZI.IeS ieS2 = new ZI.IeS(str2, str4) { // from class: o.aId private String a; private String e; @Override // o.ZI.IeS public final void e(Object obj) { aHX.Sts.e(this.a, this.e, (InterfaceC9185deu) obj); } { this.a = str2; this.e = str4; } }; if (ahx2.f != 0) { ieS2.e(ahx2.f); } } else { aHX ahx3 = this.e; ZI.IeS ieS3 = new ZI.IeS(th2) { // from class: o.aIb private Throwable a; @Override // o.ZI.IeS public final void e(Object obj) { aHX.Sts.c(this.a, (InterfaceC9185deu) obj); } { this.a = th2; } }; if (ahx3.f != 0) { ieS3.e(ahx3.f); } } } return C14866gag.c; } public static /* synthetic */ void e(String str, String str2, InterfaceC9185deu interfaceC9185deu) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); interfaceC9185deu.e(str, str2); } public static /* synthetic */ void c(Throwable th, InterfaceC9185deu interfaceC9185deu) { C14957gcv.e(th, ""); interfaceC9185deu.d(th); } public static /* synthetic */ void a(Throwable th, InterfaceC9185deu interfaceC9185deu) { C14957gcv.e(th, ""); interfaceC9185deu.d(th); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ Sts(aHX ahx) { super(1); this.e = ahx; } } public final void b(String str) { C15790id c15790id = this.c; LWm lWm = new LWm(this); Sts sts = new Sts(this); if (str == null) { str = ""; } C14957gcv.e(lWm, ""); C14957gcv.e(sts, ""); C14957gcv.e(str, ""); c15790id.b(c15790id.b, lWm, sts, new Jjb.LWm(str)); } /* loaded from: classes4.dex */ final class IeS extends wRi.LWm { private aHX a; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { THL thl = (THL) obj; C14957gcv.e(thl, ""); aHX.g(this.a); final GN c = this.a.i.c(thl); final aHX ahx = this.a; ZI.IeS ieS = new ZI.IeS(ahx, c) { // from class: o.aHY private aHX a; private GN e; @Override // o.ZI.IeS public final void e(Object obj2) { aHX.IeS.e(this.a, this.e, (InterfaceC9185deu) obj2); } { this.a = ahx; this.e = c; } }; if (ahx.f != 0) { ieS.e(ahx.f); } } public IeS(aHX ahx) { this.a = ahx; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { C14957gcv.e(th, ""); aHX.g(this.a); final aHX ahx = this.a; ZI.IeS ieS = new ZI.IeS(ahx, th) { // from class: o.aIf private aHX c; private Throwable e; @Override // o.ZI.IeS public final void e(Object obj) { aHX.IeS.b(this.c, this.e, (InterfaceC9185deu) obj); } { this.c = ahx; this.e = th; } }; if (ahx.f != 0) { ieS.e(ahx.f); } } public static /* synthetic */ void e(aHX ahx, GN gn, InterfaceC9185deu interfaceC9185deu) { C14957gcv.e(ahx, ""); C14957gcv.e(gn, ""); C0367Fb c0367Fb = ahx.d; if (c0367Fb == null) { C14957gcv.a(""); c0367Fb = null; } interfaceC9185deu.b(c0367Fb, gn); } public static /* synthetic */ void b(aHX ahx, Throwable th, InterfaceC9185deu interfaceC9185deu) { C14957gcv.e(ahx, ""); C14957gcv.e(th, ""); interfaceC9185deu.e(ahx.j.d(th, C0690Mh.IeS.JUST_DISMISS)); } } public static /* synthetic */ void c(InterfaceC9185deu interfaceC9185deu) { interfaceC9185deu.d(); interfaceC9185deu.b(); } public static final /* synthetic */ void g(aHX ahx) { if (ahx.f != 0) { ahx.f.ar_(); } } @Override // o.ZI public final void w_() { xZj xzj = this.e; if (!xzj.h.isDisposed()) { xzj.h.dispose(); } super.w_(); } static { new RVV((byte) 0); } }