package o; import android.os.Bundle; import java.util.List; import o.C0690Mh; import o.C1315aAh; import o.InterfaceC6618cYI; import o.ZI; import o.wRi; /* renamed from: o.aAh, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C1315aAh extends ZI { public Bundle a; public String b; public final C1097Vno c; public final C3544azZ d; public List e; public boolean g; public List h; public boolean i; private final C16184ly n; /* renamed from: o, reason: collision with root package name */ private final C16441oQ f8488o; @InterfaceC13391fZD public C1315aAh(C1097Vno c1097Vno, C16441oQ c16441oQ, C16184ly c16184ly, C3544azZ c3544azZ, C16903sI c16903sI) { super(c16903sI); this.b = ""; this.i = false; this.g = false; this.c = c1097Vno; this.f8488o = c16441oQ; this.n = c16184ly; this.d = c3544azZ; } @Override // o.ZI public final void w_() { super.w_(); C1097Vno c1097Vno = this.c; if (!c1097Vno.h.isDisposed()) { c1097Vno.h.dispose(); } c1097Vno.a.a(); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aAh$RVV */ /* loaded from: classes4.dex */ public final class RVV extends wRi.LWm { private C1315aAh b; private String d; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C16765qzi c16765qzi = (C16765qzi) obj; if (this.b.f != 0) { C16441oQ unused = this.b.f8488o; final C0537Iz a = C16441oQ.a(c16765qzi); if (!d(a.b)) { C1315aAh c1315aAh = this.b; ZI.IeS ieS = new ZI.IeS(a) { // from class: o.aAo private C0537Iz e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6618cYI.HBt) obj2).c(this.e); } { this.e = a; } }; if (c1315aAh.f != 0) { ieS.e(c1315aAh.f); } } C1315aAh c1315aAh2 = this.b; ZI.IeS ieS2 = new ZI.IeS(a) { // from class: o.aAm private C0537Iz c; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6618cYI.HBt) obj2).d(this.c); } { this.c = a; } }; if (c1315aAh2.f != 0) { ieS2.e(c1315aAh2.f); } } } public RVV(C1315aAh c1315aAh, String str) { this.b = c1315aAh; this.d = str; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C1315aAh.d(this.b); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { this.b.i(th); if (!d(this.d)) { C1315aAh c1315aAh = this.b; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.aAl private C1315aAh.RVV b; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6618cYI.HBt) obj).a(this.b.d); } { this.b = this; } }; if (c1315aAh.f != 0) { ieS.e(c1315aAh.f); } } C1315aAh c1315aAh2 = this.b; ZI.IeS ieS2 = new ZI.IeS(this) { // from class: o.aAn private C1315aAh.RVV d; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6618cYI.HBt) obj).b(this.d.d); } { this.d = this; } }; if (c1315aAh2.f != 0) { ieS2.e(c1315aAh2.f); } } private boolean d(String str) { for (C0367Fb c0367Fb : this.b.e) { if (str.equalsIgnoreCase(c0367Fb.g) && C1315aAh.c(c0367Fb)) { return true; } } return false; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aAh$LWm */ /* loaded from: classes4.dex */ public final class LWm extends wRi.LWm { private C1315aAh a; private LWm(C1315aAh c1315aAh) { this.a = c1315aAh; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { hMS hms = (hMS) obj; if (hms == null || hms.c.isEmpty()) { return; } C1315aAh c1315aAh = this.a; c1315aAh.e = c1315aAh.n.e(hms.c, hms.a, false, hms.g); this.a.b = hms.b; C1315aAh c1315aAh2 = this.a; C16184ly unused = c1315aAh2.n; c1315aAh2.h = C16184ly.d(hms.j); this.a.g = hms.i; C1315aAh c1315aAh3 = this.a; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.aAk private C1315aAh.LWm e; @Override // o.ZI.IeS public final void e(Object obj2) { C1315aAh.LWm.d(this.e, (InterfaceC6618cYI.HBt) obj2); } { this.e = this; } }; if (c1315aAh3.f != 0) { ieS.e(c1315aAh3.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C1315aAh.g(this.a); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { if (this.a.i(th)) { return; } C1315aAh c1315aAh = this.a; c1315aAh.d(c1315aAh.j.d(th, C0690Mh.IeS.NAVIGATE_BACK)); } public static /* synthetic */ void d(LWm lWm, InterfaceC6618cYI.HBt hBt) { if (lWm.a.i) { hBt.d(lWm.a.e); } else { hBt.c(lWm.a.e); } } /* synthetic */ LWm(C1315aAh c1315aAh, byte b) { this(c1315aAh); } } public static boolean b(C0367Fb c0367Fb) { return "BLOCK".equalsIgnoreCase(c0367Fb.u) || "PENDING_ACTIVATION".equalsIgnoreCase(c0367Fb.u); } public static boolean c(C0367Fb c0367Fb) { return "BLOCK".equalsIgnoreCase(c0367Fb.u) || "TEMP_BLOCK".equalsIgnoreCase(c0367Fb.u) || "PENDING_ACTIVATION".equalsIgnoreCase(c0367Fb.u); } static /* synthetic */ void d(C1315aAh c1315aAh) { if (c1315aAh.f != 0) { c1315aAh.f.aq_(); } } static /* synthetic */ void g(C1315aAh c1315aAh) { if (c1315aAh.f != 0) { c1315aAh.f.ar_(); } } public final void d() { if (this.f != 0) { this.f.y(); } this.c.c(); C1097Vno c1097Vno = this.c; c1097Vno.d(c1097Vno.i, new LWm(this, (byte) 0)); } public final void d(C0367Fb c0367Fb) { if (c0367Fb.M) { JGs c = JGs.c(); c.a = c0367Fb.g; c.c = c0367Fb.x; this.c.c(c); C1097Vno c1097Vno = this.c; c1097Vno.d(c1097Vno.i, new RVV(this, c0367Fb.g)); return; } ZI.IeS ieS = new ZI.IeS() { // from class: o.aAi @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6618cYI.HBt) obj).d((C0537Iz) null); } }; if (this.f != 0) { ieS.e(this.f); } } }