what-the-bank/sources/o/cMH.java

223 lines
7.0 KiB
Java

package o;
import java.util.List;
import java.util.Objects;
import o.C0690Mh;
import o.C15715hv;
import o.InterfaceC9010dbe;
import o.InterfaceC9010dbe.Heg;
import o.ZI;
import o.cMH;
import o.wRi;
/* loaded from: classes4.dex */
public abstract class cMH<T extends InterfaceC9010dbe.Heg> extends ZI<T> {
protected List<C1019Twi> a;
protected final C17515xRi c;
final C0289Dh e;
/* JADX INFO: Access modifiers changed from: protected */
public cMH(C0289Dh c0289Dh, C17515xRi c17515xRi, C16903sI c16903sI) {
super(c16903sI);
this.e = c0289Dh;
this.c = c17515xRi;
}
public static int c(String str) {
if ("BILLPAYMENT".equals(str)) {
return C15715hv.tOB.favorite_add_suggestion_bill_payment;
}
if ("TOPUP".equals(str)) {
return C15715hv.tOB.favorite_add_suggestion_top_up;
}
if ("REMITTANCE".equals(str)) {
return C15715hv.tOB.favorite_add_suggestion_remittance;
}
return 0;
}
@Override // o.ZI
public final void w_() {
super.w_();
this.c.e.Z();
}
/* JADX INFO: Access modifiers changed from: protected */
/* loaded from: classes4.dex */
public final class HBt extends wRi.LWm<List<C1019Twi>> {
private cMH c;
/* JADX INFO: Access modifiers changed from: protected */
public HBt(cMH cmh) {
this.c = cmh;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final List<C1019Twi> list = (List) obj;
if (this.c.f != 0) {
this.c.a = list;
if (!list.isEmpty()) {
cMH cmh = this.c;
ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.cMJ
private List a;
private cMH.HBt e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
cMH.HBt.b(this.e, this.a, (InterfaceC9010dbe.Heg) obj2);
}
{
this.e = this;
this.a = list;
}
};
if (cmh.f != 0) {
ieS.e(cmh.f);
return;
}
return;
}
cMH cmh2 = this.c;
cML cml = new cML();
if (cmh2.f != 0) {
cml.e(cmh2.f);
}
}
}
public static /* synthetic */ void b(HBt hBt, List list, InterfaceC9010dbe.Heg heg) {
C0289Dh c0289Dh = hBt.c.e;
C0289Dh c0289Dh2 = hBt.c.e;
Objects.requireNonNull(c0289Dh2);
heg.d((List<? extends AbstractC1181Xh>) C16157lj.c(new Object[]{list, new C17631yW(c0289Dh2)}, -1846295624, 1846295631, (int) System.currentTimeMillis()));
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
cMH cmh = this.c;
if (cmh.f != 0) {
cmh.f.aq_();
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (this.c.f == 0 || this.c.i(th)) {
return;
}
cMH cmh = this.c;
if (cmh.f != 0) {
cmh.f.aq_();
}
cMH cmh2 = this.c;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cMM
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9010dbe.Heg) obj).e();
}
};
if (cmh2.f != 0) {
ieS.e(cmh2.f);
}
}
}
/* JADX INFO: Access modifiers changed from: protected */
/* loaded from: classes4.dex */
public final class IeS extends wRi.LWm<List<C1019Twi>> {
private cMH b;
/* JADX INFO: Access modifiers changed from: protected */
public IeS(cMH cmh) {
this.b = cmh;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final List<C1019Twi> list = (List) obj;
if (this.b.f != 0) {
this.b.a = list;
if (!list.isEmpty()) {
cMH cmh = this.b;
ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.cMQ
private cMH.IeS a;
private List e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
cMH.IeS.d(this.a, this.e, (InterfaceC9010dbe.Heg) obj2);
}
{
this.a = this;
this.e = list;
}
};
if (cmh.f != 0) {
ieS.e(cmh.f);
return;
}
return;
}
cMH cmh2 = this.b;
cML cml = new cML();
if (cmh2.f != 0) {
cml.e(cmh2.f);
}
}
}
public static /* synthetic */ void d(IeS ieS, List list, InterfaceC9010dbe.Heg heg) {
C0289Dh c0289Dh = ieS.b.e;
C0289Dh c0289Dh2 = ieS.b.e;
Objects.requireNonNull(c0289Dh2);
heg.d((List<? extends AbstractC1181Xh>) C16157lj.c(new Object[]{list, new C17631yW(c0289Dh2)}, -1846295624, 1846295631, (int) System.currentTimeMillis()));
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
cMH cmh = this.b;
if (cmh.f != 0) {
cmh.f.aq_();
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
if (this.b.f == 0 || this.b.i(th)) {
return;
}
cMH cmh = this.b;
if (cmh.f != 0) {
cmh.f.aq_();
}
cMH cmh2 = this.b;
ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.cMR
private cMH.IeS b;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC9010dbe.Heg heg = (InterfaceC9010dbe.Heg) obj;
heg.e(this.b.b.j.d(this.e, C0690Mh.IeS.NAVIGATE_BACK));
}
{
this.b = this;
this.e = th;
}
};
if (cmh2.f != 0) {
ieS.e(cmh2.f);
}
}
}
public void c(String str, int i) {
C17515xRi c17515xRi = this.c;
c17515xRi.e.a(str, this.a.get(i).q.intValue());
}
}