231 lines
7.0 KiB
Java
231 lines
7.0 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import java.util.Objects;
|
||
|
import o.C0690Mh;
|
||
|
import o.C15715hv;
|
||
|
import o.C4652beH;
|
||
|
import o.ZI;
|
||
|
import o.cYS;
|
||
|
import o.wRi;
|
||
|
|
||
|
/* renamed from: o.beH, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes4.dex */
|
||
|
public class C4652beH extends ZI<cYS.HBt> {
|
||
|
public final IaV a;
|
||
|
private final C16895sE b;
|
||
|
private boolean c;
|
||
|
private List<C0682Mc> d;
|
||
|
public boolean e;
|
||
|
private int g;
|
||
|
private int i;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C4652beH(IaV iaV, C16895sE c16895sE, C16903sI c16903sI) {
|
||
|
super(c16903sI);
|
||
|
this.c = false;
|
||
|
this.a = iaV;
|
||
|
this.b = c16895sE;
|
||
|
this.i = 1;
|
||
|
}
|
||
|
|
||
|
public final void a() {
|
||
|
if (this.c) {
|
||
|
return;
|
||
|
}
|
||
|
this.c = true;
|
||
|
this.g = this.a.b.e();
|
||
|
int c = this.a.b.c();
|
||
|
this.i = c;
|
||
|
int i = this.g + 1;
|
||
|
this.g = i;
|
||
|
if (i <= c) {
|
||
|
if (i == 1) {
|
||
|
if (this.f != 0) {
|
||
|
this.f.y();
|
||
|
}
|
||
|
} else if (this.f != 0) {
|
||
|
this.f.v();
|
||
|
}
|
||
|
this.a.e(this.g);
|
||
|
IaV iaV = this.a;
|
||
|
iaV.d(iaV.i, new IeS(this, (byte) 0));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void e(final CeT ceT, final List<C0682Mc> list) {
|
||
|
str strVar = this.a.e;
|
||
|
final boolean z = true;
|
||
|
if (this.g <= 1 && this.i <= 1 && list.isEmpty()) {
|
||
|
this.e = true;
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS(ceT, list, z) { // from class: o.beG
|
||
|
private boolean a = true;
|
||
|
private CeT b;
|
||
|
private List c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((cYS.HBt) obj).c(this.b, this.c, !this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = ceT;
|
||
|
this.c = list;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS.e(this.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.beH$IeS */
|
||
|
/* loaded from: classes4.dex */
|
||
|
public final class IeS extends wRi.LWm<GvC> {
|
||
|
private C4652beH b;
|
||
|
|
||
|
private IeS(C4652beH c4652beH) {
|
||
|
this.b = c4652beH;
|
||
|
}
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final /* synthetic */ void onNext(Object obj) {
|
||
|
GvC gvC = (GvC) obj;
|
||
|
if (this.b.f != 0) {
|
||
|
CeT ceT = gvC.c;
|
||
|
this.b.d = new ArrayList();
|
||
|
if (ceT == CeT.HAVE_PROMPTPAY_WITH_RTP) {
|
||
|
if (gvC.b == null || gvC.b.isEmpty()) {
|
||
|
this.b.e(gvC.c, this.b.d);
|
||
|
return;
|
||
|
}
|
||
|
C4652beH c4652beH = this.b;
|
||
|
C16895sE unused = c4652beH.b;
|
||
|
List<CwL> list = gvC.b;
|
||
|
final C16895sE c16895sE = this.b.b;
|
||
|
Objects.requireNonNull(c16895sE);
|
||
|
c4652beH.d = (List) C16157lj.c(new Object[]{list, new InterfaceC1244Ytw(c16895sE) { // from class: o.beF
|
||
|
private C16895sE d;
|
||
|
|
||
|
@Override // o.InterfaceC1244Ytw
|
||
|
public final Object d(Object obj2) {
|
||
|
String str;
|
||
|
C16895sE c16895sE2 = this.d;
|
||
|
CwL cwL = (CwL) obj2;
|
||
|
if (cwL.h == null) {
|
||
|
str = cwL.i != null ? C6583cXR.a(cwL.i) : "";
|
||
|
} else {
|
||
|
str = cwL.h;
|
||
|
}
|
||
|
C0682Mc a = C0682Mc.a();
|
||
|
a.s = cwL.l;
|
||
|
a.c = cwL.c;
|
||
|
a.d = cwL.d;
|
||
|
a.f = cwL.a;
|
||
|
a.g = cwL.i;
|
||
|
a.i = str;
|
||
|
a.f8273o = cwL.f;
|
||
|
a.k = cwL.g;
|
||
|
a.m = cwL.j;
|
||
|
a.p = cwL.f8126o;
|
||
|
a.t = cwL.m;
|
||
|
a.r = cwL.k;
|
||
|
a.a = c16895sE2.b_(cwL.d);
|
||
|
a.b = c16895sE2.c(C15715hv.tOB.biller_id, cwL.c);
|
||
|
a.n = c16895sE2.c(C15715hv.tOB.ebill_selected_reference, cwL.f, cwL.f8126o);
|
||
|
a.l = c16895sE2.c(C15715hv.tOB.ebill_selected_reference, cwL.g, cwL.m);
|
||
|
a.q = c16895sE2.c(C15715hv.tOB.ebill_selected_reference, cwL.j, cwL.k);
|
||
|
a.j = cwL.b;
|
||
|
a.h = cwL.n;
|
||
|
return a;
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = c16895sE;
|
||
|
}
|
||
|
}}, -1846295624, 1846295631, (int) System.currentTimeMillis());
|
||
|
}
|
||
|
this.b.e(gvC.c, this.b.d);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final void onComplete() {
|
||
|
if (this.b.g == 1) {
|
||
|
C4652beH.c(this.b);
|
||
|
} else {
|
||
|
C4652beH.f(this.b);
|
||
|
}
|
||
|
this.b.c = false;
|
||
|
}
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final void onError(final Throwable th) {
|
||
|
if (this.b.g == 1) {
|
||
|
C4652beH.g(this.b);
|
||
|
} else {
|
||
|
C4652beH.i(this.b);
|
||
|
}
|
||
|
if (!this.b.i(th)) {
|
||
|
C4652beH c4652beH = this.b;
|
||
|
ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.beJ
|
||
|
private Throwable c;
|
||
|
private C4652beH.IeS e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
cYS.HBt hBt = (cYS.HBt) obj;
|
||
|
hBt.e(this.e.b.j.d(this.c, C0690Mh.IeS.NAVIGATE_BACK));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
this.c = th;
|
||
|
}
|
||
|
};
|
||
|
if (c4652beH.f != 0) {
|
||
|
ieS.e(c4652beH.f);
|
||
|
}
|
||
|
}
|
||
|
this.b.c = false;
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ IeS(C4652beH c4652beH, byte b) {
|
||
|
this(c4652beH);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static /* synthetic */ void c(C4652beH c4652beH) {
|
||
|
if (c4652beH.f != 0) {
|
||
|
c4652beH.f.ar_();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static /* synthetic */ void f(C4652beH c4652beH) {
|
||
|
if (c4652beH.f != 0) {
|
||
|
c4652beH.f.aq_();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static /* synthetic */ void g(C4652beH c4652beH) {
|
||
|
if (c4652beH.f != 0) {
|
||
|
c4652beH.f.y();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static /* synthetic */ void i(C4652beH c4652beH) {
|
||
|
if (c4652beH.f != 0) {
|
||
|
c4652beH.f.aq_();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void b() {
|
||
|
IaV iaV = this.a;
|
||
|
if (!iaV.h.isDisposed()) {
|
||
|
iaV.h.dispose();
|
||
|
}
|
||
|
iaV.b.f();
|
||
|
}
|
||
|
}
|