package o; import o.AbstractC5576bvf; import o.C0690Mh; import o.ZI; import o.wRi; /* renamed from: o.bvf, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public abstract class AbstractC5576bvf extends ZI { ToF a; private final RwI b; final C17027tO c; public final C17171uWJ d; private final C14614fwY e; public abstract void c(); protected abstract bTI d(); /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public AbstractC5576bvf(C16903sI c16903sI, RwI rwI, C14614fwY c14614fwY, C17171uWJ c17171uWJ, C17027tO c17027tO) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(rwI, ""); C14957gcv.e(c14614fwY, ""); C14957gcv.e(c17171uWJ, ""); C14957gcv.e(c17027tO, ""); this.b = rwI; this.e = c14614fwY; this.d = c17171uWJ; this.c = c17027tO; } /* renamed from: o.bvf$LWm */ /* loaded from: classes4.dex */ public static final class LWm extends wRi.LWm { private String a; private AbstractC5576bvf e; LWm(AbstractC5576bvf abstractC5576bvf, String str) { this.e = abstractC5576bvf; this.a = str; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { ToF toF = (ToF) obj; C14957gcv.e(toF, ""); super.onNext(toF); this.e.a = toF; final NO c = this.e.c.c(toF); final AbstractC5576bvf abstractC5576bvf = this.e; final String str = this.a; ZI.IeS ieS = new ZI.IeS(c, abstractC5576bvf, str) { // from class: o.bvl private NO a; private String d; private AbstractC5576bvf e; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5576bvf.LWm.e(this.a, this.e, this.d, (InterfaceC9299dhC) obj2); } { this.a = c; this.e = abstractC5576bvf; this.d = str; } }; if (abstractC5576bvf.f != 0) { ieS.e(abstractC5576bvf.f); } AbstractC5576bvf abstractC5576bvf2 = this.e; if (abstractC5576bvf2.f != 0) { abstractC5576bvf2.f.ar_(); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); super.onError(th); AbstractC5576bvf abstractC5576bvf = this.e; if (abstractC5576bvf.b(th)) { abstractC5576bvf.d(abstractC5576bvf.j.e(th)); } } public static /* synthetic */ void e(NO no, AbstractC5576bvf abstractC5576bvf, String str, InterfaceC9299dhC interfaceC9299dhC) { C14957gcv.e(no, ""); C14957gcv.e(abstractC5576bvf, ""); interfaceC9299dhC.d(no); interfaceC9299dhC.a(abstractC5576bvf.d()); if (no.e != null) { interfaceC9299dhC.e(no.e.e, no.e.d); } String str2 = str; if (str2 == null || gdZ.d((CharSequence) str2)) { interfaceC9299dhC.c(); } else { interfaceC9299dhC.e(str); } } } /* renamed from: o.bvf$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends wRi.LWm { private AbstractC5576bvf b; public Sts(AbstractC5576bvf abstractC5576bvf) { this.b = abstractC5576bvf; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C16387nrD c16387nrD = (C16387nrD) obj; C14957gcv.e(c16387nrD, ""); super.onNext(c16387nrD); AbstractC5576bvf.e(this.b, c16387nrD.b); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); super.onError(th); AbstractC5576bvf abstractC5576bvf = this.b; C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK; if (abstractC5576bvf.b(th)) { abstractC5576bvf.d(abstractC5576bvf.j.d(th, ieS)); } } } @Override // o.ZI public void w_() { this.e.a.K(); RwI rwI = this.b; if (!rwI.h.isDisposed()) { rwI.h.dispose(); } super.w_(); } public static final /* synthetic */ void e(AbstractC5576bvf abstractC5576bvf, String str) { int i = IeS.d[abstractC5576bvf.d().ordinal()]; if (i == 1) { ZI.IeS ieS = new ZI.IeS() { // from class: o.bvh @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9299dhC) obj).e(); } }; if (abstractC5576bvf.f != 0) { ieS.e(abstractC5576bvf.f); } } else if (i == 2) { ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bvi @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9299dhC) obj).a(); } }; if (abstractC5576bvf.f != 0) { ieS2.e(abstractC5576bvf.f); } } RwI rwI = abstractC5576bvf.b; rwI.d(rwI.e(), new LWm(abstractC5576bvf, str)); } /* renamed from: o.bvf$IeS */ /* loaded from: classes4.dex */ public final /* synthetic */ class IeS { public static final int[] d; static { int[] iArr = new int[bTI.values().length]; try { iArr[bTI.CONSUMER.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { iArr[bTI.BUSINESS_OWNER.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } d = iArr; } } }