package o; import o.InterfaceC6626cYd; import o.ZI; import o.bAJ; import o.tJR; import o.wRi; /* loaded from: classes4.dex */ public final class bAJ extends ZI { public int a; private final C17809ztu b; public final C17145uL c; public String d; public final HGL e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public bAJ(C17809ztu c17809ztu, HGL hgl, C17145uL c17145uL, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(c17809ztu, ""); C14957gcv.e(hgl, ""); C14957gcv.e(c17145uL, ""); C14957gcv.e(c16903sI, ""); this.b = c17809ztu; this.e = hgl; this.c = c17145uL; this.a = -1; } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public final class RVV extends wRi.LWm { private bAJ e; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C14957gcv.e((KJx) obj, ""); bAJ.a(this.e); bAJ baj = this.e; ZI.IeS ieS = new ZI.IeS(baj) { // from class: o.bAR private bAJ d; @Override // o.ZI.IeS public final void e(Object obj2) { bAJ.RVV.a(this.d, (InterfaceC6626cYd.LWm) obj2); } { this.d = baj; } }; if (baj.f != 0) { ieS.e(baj.f); } } public RVV(bAJ baj) { this.e = baj; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); bAJ.a(this.e); if (this.e.i(th)) { return; } bAJ.c(this.e, th); } public static /* synthetic */ void a(bAJ baj, InterfaceC6626cYd.LWm lWm) { C14957gcv.e(baj, ""); int i = baj.a; if (i != 0 && i != 1) { if (i != 2) { if (i != 3) { if (i != 4) { return; } } } lWm.b("oldRefreshInvestments"); return; } lWm.b("newRefreshInvestments"); } } public static /* synthetic */ void c(OY oy, bAJ baj, InterfaceC6626cYd.LWm lWm) { C14957gcv.e(oy, ""); C14957gcv.e(baj, ""); lWm.b(oy); int i = baj.a; String str = (i == 0 || i == 1 || i == 2) ? "mf_suit_expire" : (i == 3 || i == 4) ? "mf_suit_new" : null; if (str != null) { tJR.LWm lWm2 = tJR.a; C14957gcv.e(str, ""); tJR.d = str; } String str2 = baj.d; if (str2 != null) { bAN ban = new bAN(str2); if (baj.f != 0) { ban.e(baj.f); } } } public static /* synthetic */ void a(String str, InterfaceC6626cYd.LWm lWm) { C14957gcv.e(str, ""); lWm.d_(str); } public static /* synthetic */ void d(boolean z, InterfaceC6626cYd.LWm lWm) { lWm.d_("mfsuit_risk_retake_action"); lWm.b(z ? "newSelectLevel" : "oldSelectLevel"); } public static /* synthetic */ void d(bAJ baj, InterfaceC6626cYd.LWm lWm) { C14957gcv.e(baj, ""); int i = baj.a; if (i == 0) { String str = baj.d; if (str != null) { bAN ban = new bAN(str); if (baj.f != 0) { ban.e(baj.f); } } C3576bAQ c3576bAQ = new C3576bAQ(true); if (baj.f != 0) { c3576bAQ.e(baj.f); return; } return; } if (i != 1) { if (i == 2) { C3576bAQ c3576bAQ2 = new C3576bAQ(false); if (baj.f != 0) { c3576bAQ2.e(baj.f); return; } return; } if (i != 3 && i != 4) { return; } } lWm.c(); } public static final /* synthetic */ void a(bAJ baj) { if (baj.f != 0) { baj.f.ar_(); } } public static final /* synthetic */ void c(bAJ baj, Throwable th) { if (baj.b(th)) { baj.d(baj.j.e(th)); } } public final void a(boolean z) { if (this.f != 0) { this.f.y(); } ZI.IeS ieS = new ZI.IeS() { // from class: o.bAP @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6626cYd.LWm) obj).d_("mfsuit_risk_confirm_action"); } }; if (this.f != 0) { ieS.e(this.f); } if (z) { this.b.h(); } else { this.b.d(); } C17809ztu c17809ztu = this.b; c17809ztu.d(c17809ztu.i, new RVV(this)); } }