package o; import java.util.Arrays; import o.C0690Mh; import o.C1168Xb; import o.C15715hv; import o.C5949cED; import o.InterfaceC8929daC; import o.ZI; import o.wRi; import org.threeten.bp.OffsetDateTime; /* renamed from: o.cED, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C5949cED extends ZI { public boolean a; private final BI b; public final mXb d; @InterfaceC13391fZD public C5949cED(C16903sI c16903sI, BI bi, mXb mxb) { super(c16903sI); this.b = bi; this.d = mxb; } @Override // o.ZI public final void w_() { super.w_(); mXb mxb = this.d; if (mxb.h.isDisposed()) { return; } mxb.h.dispose(); } /* renamed from: o.cED$IeS */ /* loaded from: classes4.dex */ public final class IeS extends wRi.LWm { private C5949cED d; private IeS(C5949cED c5949cED) { this.d = c5949cED; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { Kaq kaq = (Kaq) obj; if (this.d.f != 0) { C10829eQ i = this.d.d.b.i(); C1006TnQ a = this.d.d.b.a(); BI bi = this.d.b; C14957gcv.e(kaq, ""); C14957gcv.e(i, ""); C14957gcv.e(a, ""); final C1191Xp c1191Xp = new C1191Xp(); OffsetDateTime now = OffsetDateTime.now(); C1189Xo h = C1189Xo.h(); h.ab = i.i; String str = kaq.i; if (str == null) { str = ""; } h.ac = str; h.Z = BI.b(i.i, i.j, true); h.Y = i.g; String str2 = kaq.j; if (str2 == null) { str2 = ""; } h.T = str2; h.U = BI.b(i.g, i.a, true); C1168Xb.LWm lWm = new C1168Xb.LWm(); String str3 = i.b; C14957gcv.c((Object) str3, ""); lWm.b = BI.c(gdZ.d(str3)); h.j = new C1168Xb(lWm, (byte) 0); OffsetDateTime offsetDateTime = a.b; String a2 = offsetDateTime != null ? bi.a(offsetDateTime) : null; if (a2 == null) { a2 = ""; } h.w = a2; String str4 = kaq.a; C14957gcv.c((Object) str4, ""); C1189Xo h2 = h.h(BI.c(gdZ.d(str4))); h2.D = kaq.c; h2.O = i.e; c1191Xp.p = h2.e("rtp.requester"); c1191Xp.s = bi.e(C15715hv.tOB.request_to_pay_succuess); String str5 = kaq.f; if (str5 == null) { str5 = ""; } c1191Xp.l = str5; gcH gch = gcH.d; String e = bi.e(C15715hv.tOB.reference_id); C14957gcv.c((Object) e, ""); String str6 = kaq.f; if (str6 == null) { str6 = ""; } String format = String.format(e, Arrays.copyOf(new Object[]{str6}, 1)); C14957gcv.c((Object) format, ""); c1191Xp.r = format; c1191Xp.f = (String) C16157lj.c(new Object[]{bi, now}, 838289628, -838289623, System.identityHashCode(bi)); String str7 = kaq.d; C14957gcv.c((Object) str7, ""); c1191Xp.t = BI.c(gdZ.d(str7)); C5949cED c5949cED = this.d; ZI.IeS ieS = new ZI.IeS(c1191Xp) { // from class: o.cEF private C1191Xp a; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC8929daC.jbe) obj2).e(this.a); } { this.a = c1191Xp; } }; if (c5949cED.f != 0) { ieS.e(c5949cED.f); } C5949cED.c(this.d); } this.d.a = false; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { if (this.d.i(th) || this.d.f == 0) { return; } C5949cED c5949cED = this.d; C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK; if (c5949cED.b(th)) { c5949cED.d(c5949cED.j.b(th, ieS)); } C5949cED c5949cED2 = this.d; ZI.IeS ieS2 = new ZI.IeS(this, th) { // from class: o.cEH private Throwable c; private C5949cED.IeS d; @Override // o.ZI.IeS public final void e(Object obj) { C5949cED.IeS.c(this.d, this.c, (InterfaceC8929daC.jbe) obj); } { this.d = this; this.c = th; } }; if (c5949cED2.f != 0) { ieS2.e(c5949cED2.f); } } public static /* synthetic */ void c(IeS ieS, Throwable th, InterfaceC8929daC.jbe jbeVar) { ieS.d.j.e(th); jbeVar.E_(); } public /* synthetic */ IeS(C5949cED c5949cED, byte b) { this(c5949cED); } } static /* synthetic */ void c(C5949cED c5949cED) { if (c5949cED.f != 0) { c5949cED.f.ar_(); } } }