package o; import com.scb.phone.domain.errors.RetrofitException; import java.util.Objects; import o.C0690Mh; import o.InterfaceC9010dbe; import o.MC; import o.ZI; import o.cUY; import o.wRi; /* loaded from: classes4.dex */ public class cUY extends ZI { private final Jur a; private C1189Xo b; private boolean c; private final C0361Ez d; private final C0349Eq e; @InterfaceC13391fZD public cUY(Jur jur, C0349Eq c0349Eq, C16903sI c16903sI, C0361Ez c0361Ez) { super(c16903sI); this.a = jur; this.e = c0349Eq; this.d = c0361Ez; } private C13248fV a(C1189Xo c1189Xo, boolean z) { C13248fV e = C13248fV.e(); e.d = c1189Xo.V; e.b = c1189Xo.aj; e.a = c1189Xo.ai; e.c = c1189Xo.am; e.e = c1189Xo.S; e.j = C6583cXR.c(c1189Xo.m()); e.i = c1189Xo.aq; e.f = c1189Xo.ar; e.g = c1189Xo.t; e.l = c1189Xo.O; e.n = C15602gz.e(C6583cXR.c(c1189Xo.j.c).doubleValue()); e.m = c1189Xo.t; e.f9112o = c1189Xo.a(); e.h = z; this.b = c1189Xo; return e; } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public final class LWm extends wRi.LWm { private cUY d; private LWm(cUY cuy) { this.d = cuy; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final DpR dpR = (DpR) obj; this.d.c = false; final C15612hBE c15612hBE = dpR.w; cUY.g(this.d); cUY cuy = this.d; ZI.IeS ieS = new ZI.IeS(this, c15612hBE, dpR) { // from class: o.cVd private C15612hBE b; private cUY.LWm d; private DpR e; @Override // o.ZI.IeS public final void e(Object obj2) { cUY.LWm.a(this.d, this.b, this.e, (InterfaceC9010dbe.lmI) obj2); } { this.d = this; this.b = c15612hBE; this.e = dpR; } }; if (cuy.f != 0) { ieS.e(cuy.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { this.d.c = false; final ggV h = cUY.h(th); cUY.d(this.d); if (!this.d.b(th, "8103") || h == null) { cUY cuy = this.d; C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK; if (cuy.b(th)) { cuy.d(cuy.j.b(th, ieS)); } cUY cuy2 = this.d; ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cVh @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9010dbe.lmI) obj).b(); } }; if (cuy2.f != 0) { ieS2.e(cuy2.f); return; } return; } cUY cuy3 = this.d; ZI.IeS ieS3 = new ZI.IeS(h) { // from class: o.cVg private ggV b; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9010dbe.lmI) obj).b(r0.d, this.b.c); } { this.b = h; } }; if (cuy3.f != 0) { ieS3.e(cuy3.f); } } public static /* synthetic */ void a(LWm lWm, C15612hBE c15612hBE, DpR dpR, InterfaceC9010dbe.lmI lmi) { String str = ((C15612hBE) Objects.requireNonNull(c15612hBE)).a; str.hashCode(); if (!str.equals("8101") && !str.equals("8102")) { lmi.e(lWm.d.e.b(dpR, lWm.d.b)); return; } C0361Ez unused = lWm.d.d; String str2 = c15612hBE.c; String str3 = c15612hBE.d; String str4 = lWm.d.b.aF; String a = lWm.d.b.a(); C14957gcv.e(str4, ""); C14957gcv.e(a, ""); C14957gcv.e(dpR, ""); String str5 = dpR.b; String str6 = str5 == null ? "" : str5; String str7 = dpR.d; String str8 = str7 == null ? "" : str7; String str9 = dpR.j; String str10 = str9 == null ? "" : str9; String str11 = dpR.f8136o; String str12 = str11 == null ? "" : str11; String str13 = dpR.a; String str14 = str13 == null ? "" : str13; String str15 = dpR.y; lmi.d(new MC.ojQ(str6, str8, str3, str10, str12, str2, str14, a, str4, str15 == null ? "" : str15)); } /* synthetic */ LWm(cUY cuy, byte b) { this(cuy); } } static /* synthetic */ ggV h(Throwable th) { if (!(th instanceof RetrofitException)) { return null; } RetrofitException retrofitException = (RetrofitException) th; if (retrofitException.e != null) { return retrofitException.e.c; } return null; } static /* synthetic */ void d(cUY cuy) { if (cuy.f != 0) { cuy.f.ar_(); } } static /* synthetic */ void g(cUY cuy) { if (cuy.f != 0) { cuy.f.ar_(); } } public final void e(C1189Xo c1189Xo, boolean z) { if (this.c) { return; } this.c = true; if (this.f != 0) { this.f.y(); } if (c1189Xo.H) { this.a.c(a(c1189Xo, z)); } else { this.a.d(a(c1189Xo, z)); } Jur jur = this.a; jur.d(jur.i, new LWm(this, (byte) 0)); } }