package o; import java.util.ArrayList; import java.util.Collections; import java.util.List; import o.C2448aem; import o.InterfaceC6627cYe; import o.PRA; import o.ZI; import o.wRi; /* renamed from: o.aem, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public class C2448aem extends ZI { public int a; private final C17741zQ b; private final Jdn c; private boolean e; @InterfaceC13391fZD public C2448aem(Jdn jdn, C17741zQ c17741zQ, C16903sI c16903sI) { super(c16903sI); this.a = 0; this.c = jdn; this.b = c17741zQ; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aem$1, reason: invalid class name */ /* loaded from: classes3.dex */ public final class AnonymousClass1 extends wRi.LWm { private C2448aem c; AnonymousClass1(C2448aem c2448aem) { this.c = c2448aem; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final isg isgVar = (isg) obj; super.onNext(isgVar); this.c.e = false; C2448aem c2448aem = this.c; ZI.IeS ieS = new ZI.IeS(this, isgVar) { // from class: o.aej private isg b; private C2448aem.AnonymousClass1 e; @Override // o.ZI.IeS public final void e(Object obj2) { InterfaceC6627cYe.jNh jnh = (InterfaceC6627cYe.jNh) obj2; jnh.c(this.e.c.b.e(this.b)); } { this.e = this; this.b = isgVar; } }; if (c2448aem.f != 0) { ieS.e(c2448aem.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { super.onError(th); this.c.e = false; C2448aem.a(this.c); C2448aem c2448aem = this.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.aeo @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6627cYe.jNh) obj).aM_(); } }; if (c2448aem.f != 0) { ieS.e(c2448aem.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { super.onComplete(); C2448aem.e(this.c); C2448aem.c(this.c); } } private List c() { C7968cyO p = this.c.a.p(); if (p == null || p.g == null) { return new ArrayList(); } return p.g; } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ C8979db e(idH idh) { return new C8979db(idh.a); } static /* synthetic */ void a(C2448aem c2448aem) { if (c2448aem.f != 0) { c2448aem.f.u(); } } static /* synthetic */ void e(C2448aem c2448aem) { if (c2448aem.f != 0) { c2448aem.f.aq_(); } } static /* synthetic */ void c(C2448aem c2448aem) { if (c2448aem.f != 0) { c2448aem.f.u(); } } public final void d() { List list; if (this.e) { return; } this.e = true; if (this.f != 0) { this.f.v(); } String a = this.c.b.a(); List c = c(); if (c == null) { list = Collections.emptyList(); } else { YKU yku = new YKU(c); list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.aen @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C2448aem.e((idH) obj); } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } C6615cY c6615cY = new C6615cY(list, a); Jdn jdn = this.c; jdn.d(jdn.a(c6615cY, c()), new AnonymousClass1(this)); } public static boolean d(C1049Un c1049Un) { return c1049Un.d.contains("SHOW_TRAVEL_DETAILS"); } @Override // o.ZI public final void w_() { Jdn jdn = this.c; if (!jdn.h.isDisposed()) { jdn.h.dispose(); } super.w_(); } }