package o; import o.C15715hv; import o.C8098dB; import o.InterfaceC9010dbe; import o.ZI; import o.cMB; import o.cMH; import o.wRi; /* loaded from: classes4.dex */ public class cMB extends cMH { @InterfaceC13391fZD public cMB(C0289Dh c0289Dh, C17515xRi c17515xRi, C16903sI c16903sI) { super(c0289Dh, c17515xRi, c16903sI); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void d(String str, int i, InterfaceC9010dbe.CeN ceN) { if ("TRANSFER".equals(str) || "REMITTANCE".equals(str)) { ceN.a(i); } else if ("BILLPAYMENT".equals(str)) { ceN.e(i); } else if ("TOPUP".equals(str)) { ceN.c(i); } } public final void e(int i) { if (i < this.a.size()) { if (this.f != 0) { this.f.y(); } C1019Twi c1019Twi = this.a.get(i); if (c1019Twi != null) { C17515xRi c17515xRi = this.c; C8200dE c = C8200dE.c(); c.a = String.valueOf(c1019Twi.q); c17515xRi.e(c); C17515xRi c17515xRi2 = this.c; c17515xRi2.d(c17515xRi2.i, new LWm(this, (byte) 0)); } } } public final void e(int i, String str) { if (i < this.a.size()) { if (this.f != 0) { this.f.y(); } C1019Twi c1019Twi = this.a.get(i); if (c1019Twi != null) { C17515xRi c17515xRi = this.c; C8098dB.IeS c = C8098dB.c(); c.a = str; c17515xRi.d(new C8098dB(c, (byte) 0), String.valueOf(c1019Twi.q)); C17515xRi c17515xRi2 = this.c; c17515xRi2.d(c17515xRi2.i, new IeS(this, (byte) 0)); } } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public class IeS extends wRi.LWm { private cMB b; private IeS(cMB cmb) { this.b = cmb; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { cMB cmb = this.b; ZI.IeS ieS = new ZI.IeS() { // from class: o.cME @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9010dbe.CeN) obj2).c(); } }; if (cmb.f != 0) { ieS.e(cmb.f); } this.b.c.e.U(); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { cMB.d(this.b); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { cMB.e(this.b); cMB cmb = this.b; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.cMC private Throwable c; private cMB.IeS e; @Override // o.ZI.IeS public final void e(Object obj) { cMB.IeS.d(this.e, this.c, (InterfaceC9010dbe.CeN) obj); } { this.e = this; this.c = th; } }; if (cmb.f != 0) { ieS.e(cmb.f); } } public static /* synthetic */ void d(IeS ieS, Throwable th, InterfaceC9010dbe.CeN ceN) { if (ieS.b.i(th)) { return; } ceN.a(ieS.b.j.e(th)); } /* synthetic */ IeS(cMB cmb, byte b) { this(cmb); } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public class LWm extends wRi.LWm { private cMB d; private LWm(cMB cmb) { this.d = cmb; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { cMB cmb = this.d; ZI.IeS ieS = new ZI.IeS() { // from class: o.cMz @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9010dbe.CeN) obj2).d(); } }; if (cmb.f != 0) { ieS.e(cmb.f); } this.d.c.e.U(); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { cMB.c(this.d); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { cMB.a(this.d, th); } /* synthetic */ LWm(cMB cmb, byte b) { this(cmb); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void a(String str, InterfaceC9010dbe.CeN ceN) { if ("TRANSFER".equals(str)) { ceN.b(); return; } if ("BILLPAYMENT".equals(str)) { ceN.d(C15715hv.tOB.favorite_add_suggestion_bill_payment); } else if ("TOPUP".equals(str)) { ceN.d(C15715hv.tOB.favorite_add_suggestion_top_up); } else if ("REMITTANCE".equals(str)) { ceN.d(C15715hv.tOB.favorite_add_suggestion_remittance); } } static /* synthetic */ void d(cMB cmb) { if (cmb.f != 0) { cmb.f.ar_(); } } static /* synthetic */ void e(cMB cmb) { if (cmb.f != 0) { cmb.f.ar_(); } } static /* synthetic */ void c(cMB cmb) { if (cmb.f != 0) { cmb.f.ar_(); } } static /* synthetic */ void a(cMB cmb, Throwable th) { if (cmb.b(th)) { cmb.d(cmb.j.e(th)); } } public final void e(String str) { if (this.f != 0) { this.f.v(); } if (this.c != null) { if ("TRANSFER".equals(str)) { this.c.a(); C17515xRi c17515xRi = this.c; c17515xRi.d(c17515xRi.i, new cMH.IeS(this)); return; } if ("BILLPAYMENT".equals(str)) { this.c.e(); C17515xRi c17515xRi2 = this.c; c17515xRi2.d(c17515xRi2.i, new cMH.HBt(this)); return; } if ("TOPUP".equals(str)) { this.c.c(); C17515xRi c17515xRi3 = this.c; c17515xRi3.d(c17515xRi3.i, new cMH.HBt(this)); return; } if ("REMITTANCE".equals(str)) { this.c.d(); C17515xRi c17515xRi4 = this.c; c17515xRi4.d(c17515xRi4.i, new cMH.IeS(this)); } } } }