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

746 lines
21 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.Resources;
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import o.C0690Mh;
import o.C15715hv;
import o.InterfaceC9093ddH;
import o.PRA;
import o.ZI;
/* renamed from: o.aCb */
/* loaded from: classes4.dex */
public final class C1375aCb extends ZI<InterfaceC9093ddH.HBt> implements InterfaceC9093ddH.Sts {
private static int m = 1;
private static int n = 0;
/* renamed from: o */
private static byte f8491o = 6;
private Ndz a;
private C16600pd b;
private IU c;
private C1459aEq d;
private List<C10900eSQ> e;
private IY g;
private C16602pe h;
private EPT i;
private Resources k;
private int l;
private void p(String str, Object[] objArr) {
byte[] decode = Base64.decode(str, 0);
byte[] bArr = new byte[decode.length];
for (int i = 0; i < decode.length; i++) {
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ f8491o);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.InterfaceC9093ddH.Sts
public final /* synthetic */ void c(InterfaceC9093ddH.HBt hBt) {
super.e((C1375aCb) hBt);
}
@InterfaceC13391fZD
public C1375aCb(C16903sI c16903sI, C1459aEq c1459aEq, Ndz ndz, C16600pd c16600pd, C16602pe c16602pe, EPT ept, Resources resources) {
super(c16903sI);
this.l = 0;
this.d = c1459aEq;
this.a = ndz;
this.b = c16600pd;
this.i = ept;
this.h = c16602pe;
this.k = resources;
}
public /* synthetic */ void b(FIi fIi) throws Throwable {
int i = 2 % 2;
int i2 = n + 73;
m = i2 % 128;
int i3 = i2 % 2;
if (this.f != 0) {
int i4 = m + 31;
n = i4 % 128;
int i5 = i4 % 2;
this.f.ar_();
}
IY e = this.h.e(fIi);
this.g = e;
if (!e.d.isEmpty()) {
c(this.g);
return;
}
String string = this.k.getString(C15715hv.tOB.error_default_title);
if (string.startsWith(",*,)")) {
Object[] objArr = new Object[1];
p(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
String string2 = this.k.getString(C15715hv.tOB.error_generic_resource);
if (string2.startsWith(",*,)")) {
int i6 = n + 27;
m = i6 % 128;
if (i6 % 2 == 0) {
String substring = string2.substring(4);
Object[] objArr2 = new Object[1];
p(substring, objArr2);
string2 = ((String) objArr2[0]).intern();
int i7 = 2 / 0;
} else {
Object[] objArr3 = new Object[1];
p(string2.substring(4), objArr3);
string2 = ((String) objArr3[0]).intern();
}
}
d(string, string2, C0690Mh.IeS.NAVIGATE_BACK);
}
public static /* synthetic */ void a(IY iy, InterfaceC9093ddH.HBt hBt) {
hBt.c(iy);
hBt.f();
}
private void d(IU iu) {
String str;
if (iu.j() == null || !gjJ.a(iu.j().a) || iu.x() == null) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.aCf
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9093ddH.HBt) obj).i();
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
String b = C6583cXR.b(iu.j().a, this.i.b.T());
String str2 = iu.j().a;
Iterator<JNE> it = this.i.b.p().a.iterator();
while (true) {
if (it.hasNext()) {
JNE next = it.next();
if (str2 != null && str2.equalsIgnoreCase(next.a) && gjJ.a(next.e)) {
str = next.e;
break;
}
} else {
str = "";
break;
}
}
ZI.IeS ieS2 = new ZI.IeS(str, iu, b) { // from class: o.aCp
private String a;
private String c;
private IU e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1375aCb.b(this.c, this.e, this.a, (InterfaceC9093ddH.HBt) obj);
}
{
this.c = str;
this.e = iu;
this.a = b;
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
ZI.IeS ieS3 = new ZI.IeS(iu) { // from class: o.aCx
private IU d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9093ddH.HBt) obj).e(this.d.x());
}
{
this.d = iu;
}
};
if (this.f != 0) {
ieS3.e(this.f);
}
}
public static /* synthetic */ void b(String str, IU iu, String str2, InterfaceC9093ddH.HBt hBt) {
Object[] objArr = new Object[2];
if (str.length() <= 0) {
str = iu.j().b;
}
objArr[0] = str;
objArr[1] = str2;
hBt.b(String.format("%s (%s)", objArr));
}
public static /* synthetic */ void c(List list, InterfaceC9093ddH.HBt hBt) {
hBt.a((List<IU>) list);
hBt.a((IU) list.get(0));
}
/* JADX WARN: Multi-variable type inference failed */
private void c(List<IU> list, List<C10900eSQ> list2) {
zEQ d;
for (IU iu : list) {
YKU yku = new YKU(list2);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(iu) { // from class: o.aCq
private IU d;
@Override // o.Jel
public final boolean e(Object obj) {
boolean equalsIgnoreCase;
equalsIgnoreCase = ((C10900eSQ) obj).c.equalsIgnoreCase(this.d.c());
return equalsIgnoreCase;
}
{
this.d = iu;
}
}));
if (yku2.b.hasNext()) {
d = zEQ.a(yku2.b.next());
} else {
d = zEQ.d();
}
if (d.d != 0) {
T t = d.d;
if (t != 0) {
this.b.a(iu, (C10900eSQ) t);
} else {
throw new NoSuchElementException("No value present");
}
}
}
}
@Override // o.InterfaceC9093ddH.Sts
public final void e(boolean z) {
C16833rfK c16833rfK = new C16833rfK(c(h()), this.a.c.b());
Ndz ndz = this.a;
ndz.d(ndz.c.d(c16833rfK), new fSQ(this) { // from class: o.aCh
private C1375aCb d;
@Override // o.fSQ
public final void c(Object obj) {
C1375aCb.a(this.d, (FIi) obj);
}
{
this.d = this;
}
}, new fSQ(this, z) { // from class: o.aCr
private boolean b;
private C1375aCb c;
@Override // o.fSQ
public final void c(Object obj) {
C1375aCb.d(this.c, this.b, (Throwable) obj);
}
{
this.c = this;
this.b = z;
}
});
}
private static List<C13117fRM> c(List<Yms> list) {
if (list == null) {
return Collections.emptyList();
}
YKU yku = new YKU(list);
return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.aCd
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C1375aCb.d((Yms) obj);
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
public static /* synthetic */ C13117fRM d(Yms yms) {
return new C13117fRM(yms.a);
}
private List<Yms> h() {
C7968cyO p = this.a.a.p();
if (p == null) {
return new ArrayList();
}
return p.d;
}
@Override // o.InterfaceC9093ddH.Sts
public final boolean d() {
return this.c.r() != null;
}
@Override // o.InterfaceC9093ddH.Sts
public final void i() {
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.aCg
private C1375aCb d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1375aCb.d(this.d, (InterfaceC9093ddH.HBt) obj);
}
{
this.d = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
@Override // o.InterfaceC9093ddH.Sts
public final void a() {
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.aCa
private C1375aCb d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9093ddH.HBt) obj).d(this.d.c);
}
{
this.d = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
public static /* synthetic */ void e(IU iu, InterfaceC9093ddH.HBt hBt) {
if ("Y".equals((String) IU.e(new Object[]{iu}, 1130200500, -1130200500, System.identityHashCode(iu)))) {
hBt.n();
} else {
hBt.a();
}
}
@Override // o.ZI
public final void w_() {
super.w_();
Ndz ndz = this.a;
if (ndz.h.isDisposed()) {
return;
}
ndz.h.dispose();
}
public static /* synthetic */ void a(C1375aCb c1375aCb, List list, List list2) {
c1375aCb.e = list2;
c1375aCb.c((List<IU>) list, (List<C10900eSQ>) list2);
ZI.IeS ieS = new ZI.IeS(list) { // from class: o.aCk
private List b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1375aCb.c(this.b, (InterfaceC9093ddH.HBt) obj);
}
{
this.b = list;
}
};
if (c1375aCb.f != 0) {
ieS.e(c1375aCb.f);
}
}
public static /* synthetic */ void a(C1375aCb c1375aCb, FIi fIi) {
c1375aCb.g = c1375aCb.h.e(fIi);
ZI.IeS ieS = new ZI.IeS(c1375aCb) { // from class: o.aCl
private C1375aCb a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1375aCb.c(this.a, (InterfaceC9093ddH.HBt) obj);
}
{
this.a = c1375aCb;
}
};
if (c1375aCb.f != 0) {
ieS.e(c1375aCb.f);
}
}
public static /* synthetic */ void d(C1375aCb c1375aCb, boolean z, Throwable th) {
ZI.IeS ieS = new ZI.IeS(c1375aCb, z, th) { // from class: o.aCo
private C1375aCb a;
private boolean c;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1375aCb.d(this.a, this.c, this.e, (InterfaceC9093ddH.HBt) obj);
}
{
this.a = c1375aCb;
this.c = z;
this.e = th;
}
};
if (c1375aCb.f != 0) {
ieS.e(c1375aCb.f);
}
}
public static /* synthetic */ void d(C1375aCb c1375aCb, InterfaceC9093ddH.HBt hBt) {
if (c1375aCb.a.c.a().booleanValue()) {
if (c1375aCb.c.q() != null && "Y".equals(c1375aCb.c.q().d)) {
hBt.j();
} else {
if (c1375aCb.c.q() == null || !"A".equals(c1375aCb.c.q().d)) {
return;
}
hBt.e(c1375aCb.g.b.b.a.get(c1375aCb.c.q().a));
}
}
}
public static /* synthetic */ void c(C1375aCb c1375aCb, IU iu, InterfaceC9093ddH.HBt hBt) {
if (c1375aCb.a.c.a().booleanValue()) {
if (iu.q() != null && ("Y".equals(iu.q().d) || "A".equals(iu.q().d))) {
hBt.g();
return;
} else {
hBt.c();
return;
}
}
if (iu.q() != null && ("Y".equals(iu.q().d) || "A".equals(iu.q().d))) {
hBt.h();
} else {
hBt.c();
}
}
public static /* synthetic */ void d(C1375aCb c1375aCb, boolean z, Throwable th, InterfaceC9093ddH.HBt hBt) {
hBt.d();
if (z) {
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c1375aCb.b(th)) {
c1375aCb.d(c1375aCb.j.d(th, ieS));
return;
}
return;
}
C0690Mh.IeS ieS2 = C0690Mh.IeS.JUST_DISMISS;
if (c1375aCb.b(th)) {
c1375aCb.d(c1375aCb.j.d(th, ieS2));
}
}
public static /* synthetic */ void c(C1375aCb c1375aCb, List list) {
ZI.IeS ieS = new ZI.IeS(list) { // from class: o.aCt
private List c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9093ddH.HBt) obj).a((List<IU>) this.c);
}
{
this.c = list;
}
};
if (c1375aCb.f != 0) {
ieS.e(c1375aCb.f);
}
}
public static /* synthetic */ void d(C1375aCb c1375aCb, Throwable th) {
if (c1375aCb.f != 0) {
c1375aCb.f.ar_();
}
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c1375aCb.b(th)) {
c1375aCb.d(c1375aCb.j.d(th, ieS));
}
}
public static /* synthetic */ void c(C1375aCb c1375aCb, InterfaceC9093ddH.HBt hBt) {
hBt.d();
c1375aCb.c(c1375aCb.g.d, c1375aCb.e);
hBt.a(c1375aCb.g.d);
IU iu = c1375aCb.g.d.get(c1375aCb.l);
c1375aCb.c = iu;
C1386aCm c1386aCm = new C1386aCm(iu);
if (c1375aCb.f != 0) {
c1386aCm.e(c1375aCb.f);
}
C1387aCn c1387aCn = new C1387aCn(c1375aCb, c1375aCb.c);
if (c1375aCb.f != 0) {
c1387aCn.e(c1375aCb.f);
}
hBt.a(c1375aCb.c, c1375aCb.g.b, c1375aCb.g.f, c1375aCb.g.j, c1375aCb.g.g, c1375aCb.g.a);
hBt.f();
}
private void c(IY iy) {
b(iy.d.size() >= 10, new ZI.IeS() { // from class: o.aCv
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9093ddH.HBt) obj).b();
}
});
IU iu = iy.d.get(0);
this.c = iu;
C1386aCm c1386aCm = new C1386aCm(iu);
if (this.f != 0) {
c1386aCm.e(this.f);
}
C1387aCn c1387aCn = new C1387aCn(this, this.c);
if (this.f != 0) {
c1387aCn.e(this.f);
}
d(this.c);
ZI.IeS ieS = new ZI.IeS(iy) { // from class: o.aCe
private IY b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1375aCb.a(this.b, (InterfaceC9093ddH.HBt) obj);
}
{
this.b = iy;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
@Override // o.InterfaceC9093ddH.Sts
public final String c() {
return this.g.h;
}
@Override // o.InterfaceC9093ddH.Sts
public final void b() {
if (this.f != 0) {
this.f.y();
}
if (!this.d.d().isEmpty()) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.aCu
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9093ddH.HBt) obj).e();
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
C16833rfK c16833rfK = new C16833rfK(c(h()), this.a.c.b());
Ndz ndz = this.a;
ndz.d(ndz.c.d(c16833rfK), new fSQ(this) { // from class: o.aCs
private C1375aCb c;
@Override // o.fSQ
public final void c(Object obj) {
this.c.b((FIi) obj);
}
{
this.c = this;
}
}, new fSQ(this) { // from class: o.aCw
private C1375aCb a;
@Override // o.fSQ
public final void c(Object obj) {
C1375aCb.d(this.a, (Throwable) obj);
}
{
this.a = this;
}
});
}
@Override // o.InterfaceC9093ddH.Sts
public final void e(List<IU> list) {
AbstractC13163fSk c13377fYp;
ArrayList arrayList = new ArrayList(list.size());
for (IU iu : list) {
arrayList.add(new JOM(iu.c(), iu.w()));
}
fSD reduce = AbstractC13163fSk.fromIterable(arrayList).flatMap(new fSS(this.a) { // from class: o.sWj
private Ndz a;
@Override // o.fSS
public final Object a(Object obj) {
JOM jom = (JOM) obj;
return this.a.c.e(jom).map(new fSS(jom) { // from class: o.DDb
private JOM c;
@Override // o.fSS
public final Object a(Object obj2) {
C10900eSQ c10900eSQ = (C10900eSQ) obj2;
c10900eSQ.c = this.c.e;
return c10900eSQ;
}
{
this.c = jom;
}
}).onErrorReturn(new fSS(jom) { // from class: o.fzW
private JOM d;
@Override // o.fSS
public final Object a(Object obj2) {
JOM jom2 = this.d;
C10900eSQ c10900eSQ = new C10900eSQ();
c10900eSQ.i = (Throwable) obj2;
c10900eSQ.c = jom2.e;
return c10900eSQ;
}
{
this.d = jom;
}
});
}
{
this.a = r1;
}
}).reduce(new ArrayList(), new fSL() { // from class: o.JVZ
@Override // o.fSL
public final Object e(Object obj, Object obj2) {
List list2 = (List) obj;
list2.add((C10900eSQ) obj2);
return list2;
}
});
if (reduce instanceof InterfaceC13204fTr) {
c13377fYp = ((InterfaceC13204fTr) reduce).b();
} else {
c13377fYp = new C13377fYp(reduce);
}
this.a.d(c13377fYp, new fSQ(this, list) { // from class: o.aCi
private C1375aCb b;
private List d;
@Override // o.fSQ
public final void c(Object obj) {
C1375aCb.a(this.b, this.d, (List) obj);
}
{
this.b = this;
this.d = list;
}
}, new fSQ(this, list) { // from class: o.aCj
private List a;
private C1375aCb d;
@Override // o.fSQ
public final void c(Object obj) {
C1375aCb.c(this.d, this.a);
}
{
this.d = this;
this.a = list;
}
});
}
@Override // o.InterfaceC9093ddH.Sts
public final void b(IU iu, int i) {
this.c = iu;
C1386aCm c1386aCm = new C1386aCm(iu);
if (this.f != 0) {
c1386aCm.e(this.f);
}
C1387aCn c1387aCn = new C1387aCn(this, iu);
if (this.f != 0) {
c1387aCn.e(this.f);
}
d(iu);
if (i == 0) {
ZI.IeS ieS = new ZI.IeS(iu) { // from class: o.aCz
private IU d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9093ddH.HBt) obj).b(this.d);
}
{
this.d = iu;
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
if (i == 1) {
ZI.IeS ieS2 = new ZI.IeS(iu) { // from class: o.aCy
private IU a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9093ddH.HBt) obj).a(this.a);
}
{
this.a = iu;
}
};
if (this.f != 0) {
ieS2.e(this.f);
return;
}
return;
}
if (i == 2) {
ZI.IeS ieS3 = new ZI.IeS(this, iu) { // from class: o.aCA
private C1375aCb c;
private IU e;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC9093ddH.HBt hBt = (InterfaceC9093ddH.HBt) obj;
hBt.a(this.e, r0.g.b, r0.g.f, r0.g.j, r0.g.g, this.c.g.a);
}
{
this.c = this;
this.e = iu;
}
};
if (this.f != 0) {
ieS3.e(this.f);
}
}
}
@Override // o.InterfaceC9093ddH.Sts
public final void a(int i) {
this.l = i;
}
}