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

228 lines
7.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.net.Uri;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
import o.C1168Xb;
import o.C15715hv;
import o.C6447cTO;
import o.PRA;
import o.ZI;
import o.wRi;
/* renamed from: o.cTO, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public class C6447cTO extends ZI<InterfaceC9286dgq> {
public final C0328Ed a;
public C1223Yj b;
public final C1019Twi c;
public boolean d;
public final C17022tMI e;
public String g;
public boolean h;
private C1189Xo i;
@InterfaceC13391fZD
public C6447cTO(C17022tMI c17022tMI, yGw ygw, C0328Ed c0328Ed, C16903sI c16903sI) {
super(c16903sI);
this.h = true;
this.d = false;
this.c = ygw.a.n();
this.e = c17022tMI;
this.a = c0328Ed;
}
/* renamed from: o.cTO$HBt */
/* loaded from: classes4.dex */
public class HBt extends wRi.LWm<WNX> {
private C6447cTO a;
private final String b;
private final qhK d;
private final String e;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C6447cTO c6447cTO;
C1189Xo c1189Xo;
C0328Ed c0328Ed;
qhK qhk;
String str;
List<C1222Yi> list;
WNX wnx = (WNX) obj;
super.onNext(wnx);
C6447cTO c6447cTO2 = this.a;
C6487cUe c6487cUe = new C6487cUe();
if (c6447cTO2.f != 0) {
c6487cUe.e(c6447cTO2.f);
}
C6447cTO c6447cTO3 = this.a;
C0328Ed c0328Ed2 = c6447cTO3.a;
qhK qhk2 = this.d;
String str2 = this.b;
String str3 = this.e;
boolean T = this.a.e.e.T();
C17307vgH c17307vgH = wnx.c;
C17307vgH c17307vgH2 = wnx.b;
if (c17307vgH == null || c17307vgH2 == null) {
c6447cTO = c6447cTO3;
c1189Xo = null;
} else {
Uri VS_ = C6583cXR.VS_(c0328Ed2.d, C15715hv.IeS.bankicon_scb);
Uri VS_2 = TextUtils.isEmpty(str2) ? C6583cXR.VS_(c0328Ed2.d, C15715hv.IeS.bankicon_scb) : Uri.parse(c0328Ed2.b_(str2));
if (qhK.SCB.equals(qhk2)) {
c6447cTO = c6447cTO3;
c0328Ed = c0328Ed2;
str = (String) C16157lj.c(new Object[]{c17307vgH2.c, false}, 1230925834, -1230925834, (int) System.currentTimeMillis());
qhk = qhk2;
} else {
c6447cTO = c6447cTO3;
c0328Ed = c0328Ed2;
qhk = qhk2;
str = (String) C16157lj.c(new Object[]{c17307vgH2.c, Boolean.valueOf(T)}, 1230925834, -1230925834, (int) System.currentTimeMillis());
}
C1189Xo b = new C1189Xo().b(c17307vgH.b);
b.X = c17307vgH.c;
b.S = c17307vgH.c;
C1189Xo a = b.a((String) C16157lj.c(new Object[]{c17307vgH.c, Boolean.valueOf(T)}, 1230925834, -1230925834, (int) System.currentTimeMillis()));
a.Q = VS_;
a.y = c17307vgH2.b;
a.v = c17307vgH2.c;
a.t = c17307vgH2.c;
a.s = str;
a.q = VS_2;
C1168Xb.LWm lWm = new C1168Xb.LWm();
lWm.b = C0328Ed.c(Double.valueOf(wnx.a));
a.j = new C1168Xb(lWm, (byte) 0);
C1189Xo h = a.h(C0328Ed.c(Double.valueOf(wnx.h)));
h.az = C0328Ed.c(Double.valueOf(wnx.j));
h.aD = C16157lj.c(wnx.g);
h.V = c17307vgH2.d;
h.z = str3;
C1189Xo e = h.e("FIXED_TRANSFER");
e.aE = qhk.toString();
e.aH = wnx.d != null ? wnx.d.b : null;
c1189Xo = e.d(wnx.i);
List<HYO> list2 = wnx.e;
if (list2 != null) {
YKU yku = new YKU(list2);
final C0328Ed c0328Ed3 = c0328Ed;
list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c0328Ed3) { // from class: o.Ee
private C0328Ed a;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return C0328Ed.d(this.a, (HYO) obj2);
}
{
this.a = c0328Ed3;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
} else {
list = new ArrayList<>();
}
c1189Xo.aA = list;
}
c6447cTO.i = c1189Xo;
C6447cTO c6447cTO4 = this.a;
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cUd
private C6447cTO.HBt d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9286dgq) obj2).c(r0.a.i, this.d.d);
}
{
this.d = this;
}
};
if (c6447cTO4.f != 0) {
ieS.e(c6447cTO4.f);
}
}
public HBt(C6447cTO c6447cTO, qhK qhk, String str, C1019Twi c1019Twi) {
this.a = c6447cTO;
this.d = qhk;
this.b = str;
this.e = c1019Twi != null ? c1019Twi.u : null;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
super.onError(th);
C6447cTO c6447cTO = this.a;
C6487cUe c6487cUe = new C6487cUe();
if (c6447cTO.f != 0) {
c6487cUe.e(c6447cTO.f);
}
final C0693Mj e = this.a.j.e(th);
C6447cTO c6447cTO2 = this.a;
ZI.IeS ieS = new ZI.IeS(e) { // from class: o.cUf
private C0693Mj c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9286dgq) obj).e(this.c);
}
{
this.c = e;
}
};
if (c6447cTO2.f != 0) {
ieS.e(c6447cTO2.f);
}
}
}
public static long d(List<C1222Yi> list) {
if (list == null) {
return 0L;
}
YKU yku = new YKU(list);
return new YKU(yku.a, new GEP(yku.b, new C0331Eg())).c();
}
public final void c() {
C1223Yj c1223Yj = this.b;
if (c1223Yj != null && this.d) {
if (gjJ.a(c1223Yj.c)) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.cTS
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9286dgq) obj).a();
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cTU
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9286dgq) obj).d();
}
};
if (this.f != 0) {
ieS2.e(this.f);
return;
}
return;
}
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.cTU
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9286dgq) obj).d();
}
};
if (this.f != 0) {
ieS3.e(this.f);
}
}
}