package o; import android.text.TextUtils; import java.util.ArrayList; import java.util.Collection; import java.util.List; import o.C0690Mh; import o.C15715hv; import o.C16523oz; import o.PRA; import o.ZI; import o.wRi; import org.threeten.bp.OffsetDateTime; /* renamed from: o.ayh, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C3499ayh extends ZI { public YY a; private final C16523oz b; public final C15769iV c; public C1192Xq d; public final Vsn e; @InterfaceC13391fZD public C3499ayh(C16903sI c16903sI, Vsn vsn, C16523oz c16523oz, C15769iV c15769iV) { super(c16903sI); this.a = YY.NORMAL; this.e = vsn; this.c = c15769iV; this.b = c16523oz; } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void d(C1192Xq c1192Xq, String str, String str2, InterfaceC9123ddl interfaceC9123ddl) { interfaceC9123ddl.c(c1192Xq); List list = c1192Xq.g; if (list == null) { C14957gcv.a(""); list = null; } if (list.isEmpty()) { interfaceC9123ddl.c(); } else { interfaceC9123ddl.e(c1192Xq.g); } interfaceC9123ddl.b(str, str2); } /* renamed from: o.ayh$RVV */ /* loaded from: classes4.dex */ public class RVV extends wRi.LWm { private C3499ayh c; private RVV(C3499ayh c3499ayh) { this.c = c3499ayh; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C14851gaI c14851gaI; String c; String c2; String str; pPU ppu = (pPU) obj; super.onNext(ppu); C3499ayh.e(this.c); C16523oz c16523oz = this.c.b; C1192Xq c1192Xq = this.c.d; C14957gcv.e(ppu, ""); C14957gcv.e(c1192Xq, ""); final C0506Ie c0506Ie = new C0506Ie(); List list = null; if (ppu.a) { if (ppu.f.length() == 0) { c = ""; } else { int i = C15715hv.tOB.ebill_selected_reference; C1189Xo c1189Xo = c1192Xq.i; if (c1189Xo == null) { C14957gcv.a(""); c1189Xo = null; } c = c16523oz.c(i, c1189Xo.ad, ppu.f); } if (ppu.i.length() == 0) { c2 = ""; } else { int i2 = C15715hv.tOB.ebill_selected_reference; C1189Xo c1189Xo2 = c1192Xq.i; if (c1189Xo2 == null) { C14957gcv.a(""); c1189Xo2 = null; } c2 = c16523oz.c(i2, c1189Xo2.ah, ppu.i); } if (ppu.j.length() == 0) { str = ""; } else { int i3 = C15715hv.tOB.ebill_selected_reference; C1189Xo c1189Xo3 = c1192Xq.i; if (c1189Xo3 == null) { C14957gcv.a(""); c1189Xo3 = null; } str = c16523oz.c(i3, c1189Xo3.ag, ppu.j); } C1189Xo c1189Xo4 = c1192Xq.i; if (c1189Xo4 == null) { C14957gcv.a(""); c1189Xo4 = null; } C1189Xo c1189Xo5 = c1192Xq.i; if (c1189Xo5 == null) { C14957gcv.a(""); c1189Xo5 = null; } c1189Xo4.t = C6583cXR.e(c1189Xo5.h, c, c2, str); C1189Xo c1189Xo6 = c1192Xq.i; if (c1189Xo6 == null) { C14957gcv.a(""); c1189Xo6 = null; } C1189Xo c1189Xo7 = c1192Xq.i; if (c1189Xo7 == null) { C14957gcv.a(""); c1189Xo7 = null; } c1189Xo6.s = C6583cXR.e(c1189Xo7.h, c, c2, str); } C1189Xo c1189Xo8 = c1192Xq.i; if (c1189Xo8 == null) { C14957gcv.a(""); c1189Xo8 = null; } C1189Xo c1189Xo9 = c1192Xq.i; if (c1189Xo9 == null) { C14957gcv.a(""); c1189Xo9 = null; } c1189Xo9.a((String) C16157lj.c(new Object[]{c1189Xo8.S, true}, 1230925834, -1230925834, (int) System.currentTimeMillis())); String str2 = ppu.b; C14957gcv.e(str2, ""); c0506Ie.c = str2; c0506Ie.s = c16523oz.e.getString(C15715hv.tOB.review_success_bill_payment); c0506Ie.r = c16523oz.e.getString(C15715hv.tOB.ref_id, ppu.b); String str3 = ppu.k; C14957gcv.e(str3, ""); c0506Ie.d = str3; C14957gcv.e(c1192Xq, ""); c0506Ie.b = c1192Xq; c0506Ie.f = (String) C16157lj.c(new Object[]{c16523oz, ppu.d}, 838289628, -838289623, System.identityHashCode(c16523oz)); c0506Ie.t = C16523oz.c(Double.valueOf(ppu.l)); c0506Ie.n = ppu.h; C1192Xq c1192Xq2 = c0506Ie.b; if (c1192Xq2 == null) { C14957gcv.a(""); c1192Xq2 = null; } Jky jky = ppu.c; List list2 = jky != null ? jky.e : null; if (list2 != null) { List list3 = list2; C14957gcv.e(list3, ""); ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10); for (jSX jsx : list3) { arrayList.add(new XL(jsx != null ? jsx.f : null, jsx != null ? jsx.i : null, jsx != null ? jsx.d : null, jsx != null ? jsx.c : null, jsx != null ? jsx.e : null, jsx != null ? jsx.b : null)); } c14851gaI = arrayList; } else { c14851gaI = C14851gaI.c; } C14957gcv.e(c14851gaI, ""); c1192Xq2.g = c14851gaI; C1189Xo c1189Xo10 = c1192Xq.i; if (c1189Xo10 == null) { C14957gcv.a(""); c1189Xo10 = null; } c0506Ie.p = c1189Xo10; List list4 = ppu.g; if (list4 != null) { YKU yku = new YKU(list4); final C16523oz.Sts sts = new C16523oz.Sts(c16523oz); list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(sts) { // from class: o.oB private InterfaceC14894gbR b; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return C16523oz.b(this.b, obj2); } { this.b = sts; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } c0506Ie.e = list; C3499ayh c3499ayh = this.c; ZI.IeS ieS = new ZI.IeS(c0506Ie) { // from class: o.ayq private C0506Ie e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9123ddl) obj2).c(this.e); } { this.e = c0506Ie; } }; if (c3499ayh.f != 0) { ieS.e(c3499ayh.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { super.onError(th); C3499ayh.c(this.c); C3499ayh.b(this.c, th, C0690Mh.IeS.NAVIGATE_BACK); } public /* synthetic */ RVV(C3499ayh c3499ayh, byte b) { this(c3499ayh); } } public static /* synthetic */ C14866gag a(C3499ayh c3499ayh, C5465btZ c5465btZ) { String str; C14851gaI c14851gaI; if (c3499ayh.f != 0) { c3499ayh.f.ar_(); } C16523oz c16523oz = c3499ayh.b; C1192Xq c1192Xq = c3499ayh.d; C14957gcv.e(c5465btZ, ""); C14957gcv.e(c1192Xq, ""); final C0506Ie c0506Ie = new C0506Ie(); C1189Xo c1189Xo = c1192Xq.i; C1189Xo c1189Xo2 = null; if (c1189Xo == null) { C14957gcv.a(""); c1189Xo = null; } C1189Xo c1189Xo3 = c1192Xq.i; if (c1189Xo3 == null) { C14957gcv.a(""); c1189Xo3 = null; } c1189Xo3.a((String) C16157lj.c(new Object[]{c1189Xo.S, true}, 1230925834, -1230925834, (int) System.currentTimeMillis())); String str2 = c5465btZ.b; if (str2 == null) { str2 = ""; } C14957gcv.e(str2, ""); c0506Ie.c = str2; c0506Ie.s = c16523oz.e.getString(C15715hv.tOB.review_success_bill_payment); c0506Ie.r = c16523oz.e.getString(C15715hv.tOB.ref_id, c5465btZ.b); String str3 = c5465btZ.h; if (str3 == null) { str3 = ""; } C14957gcv.e(str3, ""); c0506Ie.d = str3; C14957gcv.e(c1192Xq, ""); c0506Ie.b = c1192Xq; c0506Ie.f = (String) C16157lj.c(new Object[]{c16523oz, OffsetDateTime.parse(c5465btZ.g)}, 838289628, -838289623, System.identityHashCode(c16523oz)); c0506Ie.t = C16523oz.c(c5465btZ.d); jFB jfb = c5465btZ.e; List list = jfb != null ? jfb.b : null; if (list != null) { for (TyG tyG : list) { if (!TextUtils.isEmpty(tyG.b)) { str = tyG.b; break; } } } str = null; c0506Ie.n = str; C1192Xq c1192Xq2 = c0506Ie.b; if (c1192Xq2 == null) { C14957gcv.a(""); c1192Xq2 = null; } jFB jfb2 = c5465btZ.e; List list2 = jfb2 != null ? jfb2.b : null; if (list2 != null) { List list3 = list2; C14957gcv.e(list3, ""); ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10); for (TyG tyG2 : list3) { arrayList.add(new XL(tyG2 != null ? tyG2.g : null, tyG2 != null ? tyG2.a : null, tyG2 != null ? tyG2.d : null, tyG2 != null ? tyG2.e : null, tyG2 != null ? tyG2.c : null, tyG2 != null ? tyG2.b : null)); } c14851gaI = arrayList; } else { c14851gaI = C14851gaI.c; } C14957gcv.e(c14851gaI, ""); c1192Xq2.g = c14851gaI; C1189Xo c1189Xo4 = c1192Xq.i; if (c1189Xo4 != null) { c1189Xo2 = c1189Xo4; } else { C14957gcv.a(""); } c0506Ie.p = c1189Xo2; ZI.IeS ieS = new ZI.IeS(c0506Ie) { // from class: o.ayg private C0506Ie a; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9123ddl) obj).c(this.a); } { this.a = c0506Ie; } }; if (c3499ayh.f != 0) { ieS.e(c3499ayh.f); } return C14866gag.c; } public static /* synthetic */ C14866gag c(C3499ayh c3499ayh, Throwable th) { if (c3499ayh.f != 0) { c3499ayh.f.ar_(); } C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK; if (c3499ayh.b(th)) { c3499ayh.d(c3499ayh.j.d(th, ieS)); } return C14866gag.c; } static /* synthetic */ void e(C3499ayh c3499ayh) { if (c3499ayh.f != 0) { c3499ayh.f.ar_(); } } static /* synthetic */ void c(C3499ayh c3499ayh) { if (c3499ayh.f != 0) { c3499ayh.f.ar_(); } } static /* synthetic */ void b(C3499ayh c3499ayh, Throwable th, C0690Mh.IeS ieS) { if (c3499ayh.b(th)) { c3499ayh.d(c3499ayh.j.d(th, ieS)); } } }