package o; import o.C0690Mh; import o.ZI; import o.bSS; import o.cZT; import o.wRi; /* loaded from: classes4.dex */ public class bSS extends ZI { public final pan a; public final C12374ewx c; @InterfaceC13391fZD public bSS(C16903sI c16903sI, C12374ewx c12374ewx, pan panVar) { super(c16903sI); this.c = c12374ewx; this.a = panVar; } /* renamed from: o.bSS$3, reason: invalid class name */ /* loaded from: classes4.dex */ public static /* synthetic */ class AnonymousClass3 { public static final int[] d; static { int[] iArr = new int[gHK.values().length]; d = iArr; try { iArr[gHK.JURISTIC.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { d[gHK.INDIVIDUAL.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } } } @Override // o.ZI public final void w_() { this.c.b.b(); C12374ewx c12374ewx = this.c; if (!c12374ewx.h.isDisposed()) { c12374ewx.h.dispose(); } c12374ewx.b.f(); super.w_(); } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public final class HBt extends wRi.LWm { private bSS c; private HBt(bSS bss) { this.c = bss; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C8987dbH c8987dbH = (C8987dbH) obj; if (this.c.f != 0) { final CeT ceT = c8987dbH.d; if (this.c.f != 0) { bSS bss = this.c; ZI.IeS ieS = new ZI.IeS(this, ceT) { // from class: o.bSP private bSS.HBt a; private CeT c; @Override // o.ZI.IeS public final void e(Object obj2) { bSS.HBt.b(this.a, this.c, (cZT.HBt) obj2); } { this.a = this; this.c = ceT; } }; if (bss.f != 0) { ieS.e(bss.f); } } bSS.b(this.c); } } public static /* synthetic */ void b(HBt hBt, CeT ceT, cZT.HBt hBt2) { bSS bss = hBt.c; boolean l = bss.c.d.l(); if (!l) { bss.c.d.C(); } hBt2.a(ceT, !l); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { if (this.c.f == 0 || this.c.i(th)) { return; } bSS.d(this.c); bSS.d(this.c, th, C0690Mh.IeS.NAVIGATE_BACK); } /* synthetic */ HBt(bSS bss, byte b) { this(bss); } } static /* synthetic */ void d(bSS bss) { if (bss.f != 0) { bss.f.ar_(); } } static /* synthetic */ void d(bSS bss, Throwable th, C0690Mh.IeS ieS) { if (bss.b(th)) { bss.d(bss.j.d(th, ieS)); } } static /* synthetic */ void b(bSS bss) { if (bss.f != 0) { bss.f.ar_(); } } public final void b() { if (this.f != 0) { this.f.y(); } this.c.b.b(); this.c.d(); C12374ewx c12374ewx = this.c; c12374ewx.d(c12374ewx.i, new HBt(this, (byte) 0)); } }