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

183 lines
5.1 KiB
Java

package o;
import java.util.List;
import o.C0690Mh;
import o.C7882cwi;
import o.InterfaceC8975daw;
import o.ZI;
import o.wRi;
/* renamed from: o.cwi, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public class C7882cwi extends ZI<InterfaceC8975daw.Sts> {
private final C0199Bd a;
private boolean d;
private final ihb e;
@InterfaceC13391fZD
public C7882cwi(ihb ihbVar, C0199Bd c0199Bd, C16903sI c16903sI) {
super(c16903sI);
this.d = false;
this.e = ihbVar;
this.a = c0199Bd;
}
public final void a() {
if (this.d) {
return;
}
this.d = true;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cwk
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8975daw.Sts) obj).y();
}
};
if (this.f != 0) {
ieS.e(this.f);
}
this.e.b();
ihb ihbVar = this.e;
ihbVar.d(ihbVar.i, new Sts(this, (byte) 0));
}
public final void d(final xit xitVar, final List<C1087Vh> list) {
str strVar = this.e.a;
final boolean z = true;
ZI.IeS ieS = new ZI.IeS(xitVar, list, z) { // from class: o.cwj
private boolean a = true;
private xit c;
private List d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8975daw.Sts) obj).a(this.c);
}
{
this.c = xitVar;
this.d = list;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cwi$Sts */
/* loaded from: classes4.dex */
public final class Sts extends wRi.LWm<C15953jsr> {
private C7882cwi b;
private Sts(C7882cwi c7882cwi) {
this.b = c7882cwi;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C15953jsr c15953jsr = (C15953jsr) obj;
if (this.b.f != 0) {
int i = AnonymousClass2.d[c15953jsr.b.ordinal()];
if (i == 1) {
this.b.d(c15953jsr.b, null);
return;
}
if (i == 2) {
this.b.d(c15953jsr.b, this.b.a.a(c15953jsr, this.b.e.c.T()).b);
} else if (i == 3) {
this.b.d(c15953jsr.b, this.b.a.a(c15953jsr, true).b);
}
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
C7882cwi.c(this.b);
this.b.d = false;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
C7882cwi.a(this.b);
if (!this.b.i(th)) {
C7882cwi c7882cwi = this.b;
ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.cwm
private C7882cwi.Sts c;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC8975daw.Sts sts = (InterfaceC8975daw.Sts) obj;
sts.e(this.c.b.j.d(this.e, C0690Mh.IeS.NAVIGATE_BACK));
}
{
this.c = this;
this.e = th;
}
};
if (c7882cwi.f != 0) {
ieS.e(c7882cwi.f);
}
}
this.b.d = false;
}
/* synthetic */ Sts(C7882cwi c7882cwi, byte b) {
this(c7882cwi);
}
}
/* renamed from: o.cwi$2, reason: invalid class name */
/* loaded from: classes4.dex */
static /* synthetic */ class AnonymousClass2 {
static final int[] d;
static {
int[] iArr = new int[xit.values().length];
d = iArr;
try {
iArr[xit.NO_PROMPTPAY.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
d[xit.PROMPT_PAY_QR_EDIT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
d[xit.PROMPT_PAY_QR_SUCCESS.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
d[xit.NO_RTP.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
d[xit.HAVE_PROMPTPAY_WITH_RTP.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
}
}
static /* synthetic */ void c(C7882cwi c7882cwi) {
if (c7882cwi.f != 0) {
c7882cwi.f.ar_();
}
}
static /* synthetic */ void a(C7882cwi c7882cwi) {
if (c7882cwi.f != 0) {
c7882cwi.f.ar_();
}
}
public final void d() {
ihb ihbVar = this.e;
if (!ihbVar.h.isDisposed()) {
ihbVar.h.dispose();
}
ihbVar.d.b();
}
}