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

534 lines
17 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.os.CountDownTimer;
import o.C0690Mh;
import o.C1168Xb;
import o.C15715hv;
import o.C6348cQC;
import o.InterfaceC9010dbe;
import o.KiK;
import o.ZI;
import o.wRi;
/* renamed from: o.cQC, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public class C6348cQC extends ZI<InterfaceC9010dbe.ZqN> {
private final Fnl a;
private MjP b;
public int c;
public String d;
public CountDownTimer e;
private final C16165lo g;
private C16146le h;
private final DH i;
private String k;
private final Jur l;
private final C17391wQ m;
private boolean n;
/* renamed from: o, reason: collision with root package name */
private C1189Xo f8619o;
private String t;
@InterfaceC13391fZD
public C6348cQC(Jur jur, Fnl fnl, DH dh, C16903sI c16903sI, C17391wQ c17391wQ, C16146le c16146le, C16165lo c16165lo, String str) {
super(c16903sI);
this.e = null;
this.k = "";
this.d = null;
this.c = 0;
this.i = dh;
this.m = c17391wQ;
this.l = jur;
this.a = fnl;
this.h = c16146le;
this.t = str;
this.g = c16165lo;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void c(C1189Xo c1189Xo, InterfaceC9010dbe.ZqN zqN) {
if ("BNPL_PAYMENT".equals(c1189Xo.j())) {
zqN.b();
} else if (c1189Xo.N) {
zqN.as_();
} else {
zqN.a();
}
}
public final void d(final C1189Xo c1189Xo) {
c();
ZI.IeS ieS = new ZI.IeS(c1189Xo) { // from class: o.cQH
private C1189Xo a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9010dbe.ZqN) obj).c(this.a);
}
{
this.a = c1189Xo;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
/* JADX INFO: Access modifiers changed from: protected */
public final void c() {
C8064dAG a = this.a.d.a();
if (a != null) {
TqF tqF = a.b;
if (tqF != null) {
this.d = tqF.c;
}
if (tqF == null || tqF.e == null) {
return;
}
this.c = tqF.e.intValue() * 1000;
}
}
public void a() {
this.h.d(new InterfaceC14894gbR(this) { // from class: o.cQB
private C6348cQC c;
@Override // o.InterfaceC14894gbR
public final Object invoke(Object obj) {
return C6348cQC.c(this.c, (MjP) obj);
}
{
this.c = this;
}
}, new InterfaceC14894gbR(this) { // from class: o.cQA
private C6348cQC a;
@Override // o.InterfaceC14894gbR
public final Object invoke(Object obj) {
return C6348cQC.e(this.a, (Throwable) obj);
}
{
this.a = this;
}
}, new KiK.HBt(this.k, false));
}
/* renamed from: o.cQC$2, reason: invalid class name */
/* loaded from: classes4.dex */
public class AnonymousClass2 extends CountDownTimer {
private ER b;
private C6348cQC d;
@Override // android.os.CountDownTimer
public final void onTick(long j) {
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public AnonymousClass2(C6348cQC c6348cQC, long j, ER er) {
super(j, 1000L);
this.d = c6348cQC;
this.b = er;
}
@Override // android.os.CountDownTimer
public final void onFinish() {
this.d.d(this.b);
C6348cQC.f(this.d);
}
}
protected void d(final ER er) {
ZI.IeS ieS = new ZI.IeS(er) { // from class: o.cQD
private ER e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9010dbe.ZqN) obj).b(this.e);
}
{
this.e = er;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
@Override // o.ZI
public final void w_() {
CountDownTimer countDownTimer = this.e;
if (countDownTimer != null) {
countDownTimer.cancel();
}
super.w_();
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cQC$IeS */
/* loaded from: classes4.dex */
public final class IeS extends wRi.LWm<DpR> {
private C6348cQC e;
private IeS(C6348cQC c6348cQC) {
this.e = c6348cQC;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final DpR dpR = (DpR) obj;
if (this.e.f != 0) {
if ("3053".equals(dpR.w.a)) {
C6348cQC.g(this.e);
this.e.k = dpR.n;
String str = C6348cQC.d(this.e.f8619o.aE) ? "v1/donations/confirmation" : "v1/payments/bill";
C6348cQC c6348cQC = this.e;
AnonymousClass2 anonymousClass2 = new AnonymousClass2(c6348cQC, c6348cQC.c, c6348cQC.g.a(dpR.w, str));
c6348cQC.e = anonymousClass2;
anonymousClass2.start();
} else if (C6348cQC.a(this.e.f8619o.aE)) {
C6348cQC c6348cQC2 = this.e;
ZI.IeS ieS = new ZI.IeS(this, dpR) { // from class: o.cQL
private C6348cQC.IeS b;
private DpR e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C6348cQC.IeS.b(this.b, this.e, (InterfaceC9010dbe.ZqN) obj2);
}
{
this.b = this;
this.e = dpR;
}
};
if (c6348cQC2.f != 0) {
ieS.e(c6348cQC2.f);
}
C6348cQC.i(this.e);
} else {
final SBO a = this.e.l.a.a();
C6348cQC c6348cQC3 = this.e;
ZI.IeS ieS2 = new ZI.IeS(this, dpR, a) { // from class: o.cQP
private SBO a;
private C6348cQC.IeS c;
private DpR d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
InterfaceC9010dbe.ZqN zqN = (InterfaceC9010dbe.ZqN) obj2;
zqN.e(r0.e.i.d(this.d, r0.e.f8619o, this.a, this.c.e.d));
}
{
this.c = this;
this.d = dpR;
this.a = a;
}
};
if (c6348cQC3.f != 0) {
ieS2.e(c6348cQC3.f);
}
C6348cQC.j(this.e);
}
}
this.e.n = false;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (this.e.f8619o.P != null && this.e.b(th, "3004")) {
C6348cQC.c(this.e, th, C0690Mh.IeS.NAVIGATE_BACK);
} else {
C6348cQC c6348cQC = this.e;
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c6348cQC.b(th)) {
c6348cQC.d(c6348cQC.j.b(th, ieS));
}
}
this.e.n = false;
C6348cQC c6348cQC2 = this.e;
C4882biZ c4882biZ = new C4882biZ();
if (c6348cQC2.f != 0) {
c4882biZ.e(c6348cQC2.f);
}
}
public static /* synthetic */ void b(IeS ieS, DpR dpR, InterfaceC9010dbe.ZqN zqN) {
C1191Xp c1191Xp;
DH dh = ieS.e.i;
C1189Xo c1189Xo = ieS.e.f8619o;
if (c1189Xo == null || dpR == null) {
c1191Xp = null;
} else {
if (c1189Xo.E) {
c1189Xo.s = c1189Xo.t.replaceFirst(DH.d("CID", c1189Xo.ai), "[EDONATION_MASK]").replace("[EDONATION_MASK]", DH.b("CID", c1189Xo.ai, true));
}
c1189Xo.l = dh.b_(c1189Xo.l);
c1189Xo.m = dpR.h;
c1189Xo.ay = new C1195Xt(dpR.p, dh.b_(dpR.c));
c1189Xo.a(DH.i(c1189Xo.S));
String e = dh.e(c1189Xo.at == null ? C15715hv.tOB.review_success_bill_payment : C15715hv.tOB.billpayment_successful_001);
c1191Xp = new C1191Xp();
c1191Xp.f = dpR.x == null ? "" : (String) C16157lj.c(new Object[]{dh, dpR.x}, 838289628, -838289623, System.identityHashCode(dh));
c1191Xp.l = dpR.n;
c1191Xp.r = String.format(dh.e(C15715hv.tOB.reference_id), dpR.n);
c1191Xp.s = e;
c1191Xp.t = DH.c(dpR.u);
c1191Xp.p = c1189Xo;
c1191Xp.n = dpR.t;
c1191Xp.i = dpR.g;
c1191Xp.m = true;
c1191Xp.a = Boolean.valueOf(dpR.m);
c1191Xp.j = DH.a(dpR.e);
}
zqN.e(c1191Xp);
}
/* synthetic */ IeS(C6348cQC c6348cQC, byte b) {
this(c6348cQC);
}
}
static boolean d(String str) {
return "E_DONATION_FUNCTION".equalsIgnoreCase(str);
}
public static /* synthetic */ C14866gag c(final C6348cQC c6348cQC, final MjP mjP) {
if ("3053".equals(mjP.r.a)) {
c6348cQC.d(c6348cQC.g.a(mjP.r, "v1/payments/transactions/ISO/id/".concat(c6348cQC.k)));
} else {
final SBO a = c6348cQC.l.a.a();
c6348cQC.b = mjP;
if ("E_DONATION_FUNCTION".equalsIgnoreCase(c6348cQC.f8619o.aE)) {
ZI.IeS ieS = new ZI.IeS(c6348cQC, mjP) { // from class: o.cQJ
private C6348cQC c;
private MjP e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6348cQC.b(this.c, this.e, (InterfaceC9010dbe.ZqN) obj);
}
{
this.c = c6348cQC;
this.e = mjP;
}
};
if (c6348cQC.f != 0) {
ieS.e(c6348cQC.f);
}
} else {
ZI.IeS ieS2 = new ZI.IeS(c6348cQC, a) { // from class: o.cQG
private C6348cQC a;
private SBO c;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC9010dbe.ZqN zqN = (InterfaceC9010dbe.ZqN) obj;
zqN.e(r0.i.b(r0.b, r0.f8619o, this.c, this.a.d));
}
{
this.a = c6348cQC;
this.c = a;
}
};
if (c6348cQC.f != 0) {
ieS2.e(c6348cQC.f);
}
}
}
if (c6348cQC.f != 0) {
c6348cQC.f.ar_();
}
return C14866gag.c;
}
public static /* synthetic */ void b(C6348cQC c6348cQC, MjP mjP, InterfaceC9010dbe.ZqN zqN) {
C1191Xp c1191Xp;
XU xu;
DH dh = c6348cQC.i;
C1189Xo c1189Xo = c6348cQC.f8619o;
if (c1189Xo == null || mjP == null) {
c1191Xp = null;
} else {
c1189Xo.s = C6583cXR.e(gjJ.b((CharSequence) mjP.n) ? "" : dh.c(C15715hv.tOB.ebill_selected_reference, c1189Xo.ad, mjP.n), gjJ.b((CharSequence) mjP.k) ? "" : dh.c(C15715hv.tOB.ebill_selected_reference, c1189Xo.ah, DH.b("CID", mjP.k, true)));
ruq ruqVar = mjP.s;
if (ruqVar == null) {
xu = new XU("", "", "");
} else {
xu = new XU(gjJ.b((CharSequence) ruqVar.c) ? "" : ruqVar.c, gjJ.b((CharSequence) ruqVar.e) ? "" : ruqVar.e, gjJ.b((CharSequence) ruqVar.a) ? "" : ruqVar.a);
}
c1189Xo.A = false;
C1168Xb.LWm lWm = new C1168Xb.LWm();
lWm.b = C6583cXR.i(mjP.f);
lWm.a = c1189Xo.j.a;
c1189Xo.j = new C1168Xb(lWm, (byte) 0);
C1189Xo h = c1189Xo.h(C6583cXR.i(mjP.j));
h.aH = mjP.d;
C1189Xo b = h.b(mjP.i);
b.S = mjP.b;
b.l = dh.b_(c1189Xo.l);
b.m = mjP.e;
b.ay = new C1195Xt(mjP.f8275o, dh.b_(mjP.a));
b.a(DH.i(mjP.b));
String e = dh.e(c1189Xo.at == null ? C15715hv.tOB.review_success_bill_payment : C15715hv.tOB.billpayment_successful_001);
c1191Xp = new C1191Xp();
c1191Xp.f = mjP.g != null ? (String) C16157lj.c(new Object[]{dh, mjP.g}, 838289628, -838289623, System.identityHashCode(dh)) : "";
c1191Xp.l = mjP.h;
c1191Xp.r = String.format(dh.e(C15715hv.tOB.reference_id), mjP.h);
c1191Xp.s = e;
c1191Xp.t = DH.c(mjP.m);
c1191Xp.p = c1189Xo;
c1191Xp.m = true;
c1191Xp.a = Boolean.FALSE;
c1191Xp.x = xu;
c1191Xp.j = DH.a(mjP.c);
}
zqN.e(c1191Xp);
}
static /* synthetic */ void f(C6348cQC c6348cQC) {
if (c6348cQC.f != 0) {
c6348cQC.f.ar_();
}
}
static /* synthetic */ void g(C6348cQC c6348cQC) {
if (c6348cQC.f != 0) {
c6348cQC.f.y();
}
}
static /* synthetic */ void i(C6348cQC c6348cQC) {
if (c6348cQC.f != 0) {
c6348cQC.f.ar_();
}
}
static /* synthetic */ void j(C6348cQC c6348cQC) {
if (c6348cQC.f != 0) {
c6348cQC.f.ar_();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void a(C1191Xp c1191Xp, InterfaceC9010dbe.ZqN zqN) {
if (c1191Xp.f8452o) {
zqN.h();
} else {
zqN.e();
}
}
public void a(C1189Xo c1189Xo) {
C12744fG d;
if (this.n) {
return;
}
this.n = true;
this.f8619o = c1189Xo;
if (c1189Xo.P != null) {
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cQy
private C6348cQC c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9010dbe.ZqN) obj).d(this.c.m.e(C15715hv.tOB.loading_movie_title, C15715hv.tOB.loading_movie_description));
}
{
this.c = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
} else {
C4878biV c4878biV = new C4878biV();
if (this.f != 0) {
c4878biV.e(this.f);
}
}
SBO a = this.l.a.a();
eWY c = this.l.a.c();
if (a == null || c == null) {
d = C12744fG.d();
} else {
d = C12744fG.d();
d.b = a.d;
d.e = a.e;
d.a = a.c;
d.d = c.r;
String str = c.x;
if (str == null) {
str = "";
}
d.h = str;
String str2 = c.v;
if (str2 == null) {
str2 = "";
}
d.i = str2;
String str3 = c.w;
if (str3 == null) {
str3 = "";
}
d.g = str3;
String str4 = c.u;
if (str4 == null) {
str4 = "";
}
d.f9093o = str4;
String str5 = c.y;
d.n = str5 != null ? str5 : "";
d.f = a.t;
d.c = a.j;
d.l = c.D;
}
if (c1189Xo.H) {
this.l.e(d);
} else if (c1189Xo.P != null) {
this.l.d(d);
} else if ("E_DONATION_FUNCTION".equalsIgnoreCase(c1189Xo.aE)) {
Jur jur = this.l;
C14748fz d2 = C14748fz.d();
d2.e = this.f8619o.v;
d2.d = this.t;
d2.c = this.f8619o.a();
jur.a(d2);
} else if (!"BNPL_PAYMENT".equals(c1189Xo.j())) {
this.l.c(d);
} else {
d.j = c1189Xo.ae;
d.m = this.t;
this.l.c(d);
}
Jur jur2 = this.l;
jur2.d(jur2.i, new IeS(this, (byte) 0));
}
static /* synthetic */ void c(C6348cQC c6348cQC, Throwable th, C0690Mh.IeS ieS) {
if (c6348cQC.b(th)) {
c6348cQC.d(c6348cQC.j.d(th, ieS));
}
}
public static /* synthetic */ C14866gag e(C6348cQC c6348cQC, Throwable th) {
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c6348cQC.b(th)) {
c6348cQC.d(c6348cQC.j.d(th, ieS));
}
return C14866gag.c;
}
static /* synthetic */ boolean a(String str) {
return "E_DONATION_FUNCTION".equalsIgnoreCase(str);
}
}