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

143 lines
3.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.List;
import o.C0690Mh;
import o.InterfaceC6673cZp;
import o.ZI;
import o.cKJ;
import o.wRi;
/* loaded from: classes4.dex */
public abstract class cKJ extends ZI<InterfaceC6673cZp.vUG> {
protected final CE a;
protected String c;
boolean d;
protected boolean e;
protected abstract List<WI> a(List<uUm> list);
protected abstract void d();
/* JADX INFO: Access modifiers changed from: protected */
public cKJ(C16903sI c16903sI, CE ce) {
super(c16903sI);
this.e = false;
this.c = "";
this.d = false;
this.a = ce;
}
public final void a() {
if (this.e || this.d) {
return;
}
this.d = true;
if (this.c.isEmpty()) {
if (this.f != 0) {
this.f.y();
}
} else if (this.f != 0) {
this.f.v();
}
d();
}
public final void c() {
this.c = "";
this.e = false;
this.d = false;
cKF ckf = new cKF();
if (this.f != 0) {
ckf.e(this.f);
}
a();
}
/* JADX INFO: Access modifiers changed from: protected */
/* loaded from: classes4.dex */
public class LWm extends wRi.LWm<C0662Lpo> {
private cKJ c;
/* JADX INFO: Access modifiers changed from: protected */
public LWm(cKJ ckj) {
this.c = ckj;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C0662Lpo c0662Lpo = (C0662Lpo) obj;
this.c.e = c0662Lpo.a;
final List<uUm> list = c0662Lpo.c;
this.c.d = false;
cKJ ckj = this.c;
if (ckj.f != 0) {
ckj.f.ar_();
}
cKJ ckj2 = this.c;
if (ckj2.f != 0) {
ckj2.f.aq_();
}
if (list != null && !list.isEmpty()) {
this.c.c = list.get(list.size() - 1).f9287o;
cKJ ckj3 = this.c;
ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.cKO
private cKJ.LWm b;
private List c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC6673cZp.vUG) obj2).d(this.b.c.a((List<uUm>) this.c));
}
{
this.b = this;
this.c = list;
}
};
if (ckj3.f != 0) {
ieS.e(ckj3.f);
return;
}
return;
}
if (cKJ.b(this.c)) {
cKJ ckj4 = this.c;
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cKM
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC6673cZp.vUG) obj2).e();
}
};
if (ckj4.f != 0) {
ieS2.e(ckj4.f);
}
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
cKJ ckj = this.c;
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (ckj.b(th)) {
ckj.d(ckj.j.d(th, ieS));
}
}
}
@Override // o.ZI
public final void w_() {
this.c = "";
this.e = false;
this.d = false;
cKF ckf = new cKF();
if (this.f != 0) {
ckf.e(this.f);
}
super.w_();
}
static /* synthetic */ boolean b(cKJ ckj) {
return ckj.c.isEmpty();
}
}