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

410 lines
13 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import o.PRA;
/* renamed from: o.KuQ, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C0619KuQ extends ZTC {
final C1170Xbv b = new C1170Xbv();
@InterfaceC13391fZD
public C0619KuQ() {
}
public final KwY b(C4212bTg c4212bTg, final String str, boolean z, long j) {
final ArrayList arrayList = new ArrayList();
if (c4212bTg.e != null) {
new YKU(c4212bTg.e).d(new qsu(this, arrayList, str) { // from class: o.pdz
private List a;
private C0619KuQ c;
private String e;
@Override // o.qsu
public final void d(Object obj) {
C0619KuQ.b(this.c, this.a, this.e, (qRQ) obj);
}
{
this.c = this;
this.a = arrayList;
this.e = str;
}
});
} else if (c4212bTg.c != null) {
YKU yku = new YKU(c4212bTg.c);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new C16645pvk(this)));
arrayList.addAll((Collection) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(this, str) { // from class: o.slM
private C0619KuQ c;
private String e;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
sdB b;
b = this.c.b(r3, this.e, ((C17104tuu) obj).d);
return b;
}
{
this.c = this;
this.e = str;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())));
}
if (z) {
int i = c4212bTg.b;
int i2 = !arrayList.isEmpty() ? ((sdB) arrayList.get(arrayList.size() - 1)).f9272o : 0;
if (arrayList.size() < i) {
arrayList.add(sdB.c().c(j).a(AyW.ADD_SHORTCUT).h(Integer.MAX_VALUE).d(i2).m(3 - (arrayList.size() % 3)));
}
}
KwY c = KwY.c();
c.c = c4212bTg.b;
c.b = c4212bTg.g;
c.a = arrayList;
return c;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean a(C17104tuu c17104tuu) {
return !EnumC14464fth.SHORTCUT.equals(c17104tuu.m) || EnumC15824isw.QUICKBALANCE.equals(c17104tuu.l) || EnumC15824isw.QUICKPROMPTPAY.equals(c17104tuu.l) || EnumC15824isw.DEEPLINK.equals(c17104tuu.l) || c17104tuu.k != null;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.KuQ$2, reason: invalid class name */
/* loaded from: classes.dex */
public static /* synthetic */ class AnonymousClass2 {
static final int[] b;
static final int[] e;
static {
int[] iArr = new int[EnumC14464fth.values().length];
b = iArr;
try {
iArr[EnumC14464fth.SCB.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
b[EnumC14464fth.ERROR.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
b[EnumC14464fth.GROUP.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
b[EnumC14464fth.HEADER.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
b[EnumC14464fth.LOADING.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
b[EnumC14464fth.SHORTCUT.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
b[EnumC14464fth.LEARN_MORE.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
b[EnumC14464fth.ADD_SHORTCUT.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
try {
b[EnumC14464fth.STATIC_ERROR.ordinal()] = 9;
} catch (NoSuchFieldError unused9) {
}
try {
b[EnumC14464fth.STATIC_LOADING.ordinal()] = 10;
} catch (NoSuchFieldError unused10) {
}
try {
b[EnumC14464fth.STATIC_SHORTCUT.ordinal()] = 11;
} catch (NoSuchFieldError unused11) {
}
try {
b[EnumC14464fth.PREDICTIVE_TILE_LOADING.ordinal()] = 12;
} catch (NoSuchFieldError unused12) {
}
try {
b[EnumC14464fth.SPLASH.ordinal()] = 13;
} catch (NoSuchFieldError unused13) {
}
try {
b[EnumC14464fth.EMPTY.ordinal()] = 14;
} catch (NoSuchFieldError unused14) {
}
int[] iArr2 = new int[EnumC15824isw.values().length];
e = iArr2;
try {
iArr2[EnumC15824isw.BILLERTOPUP.ordinal()] = 1;
} catch (NoSuchFieldError unused15) {
}
try {
e[EnumC15824isw.BILLERSCAN.ordinal()] = 2;
} catch (NoSuchFieldError unused16) {
}
try {
e[EnumC15824isw.BILLERPAYMENT.ordinal()] = 3;
} catch (NoSuchFieldError unused17) {
}
try {
e[EnumC15824isw.FAVOURITE.ordinal()] = 4;
} catch (NoSuchFieldError unused18) {
}
try {
e[EnumC15824isw.DEEPLINK.ordinal()] = 5;
} catch (NoSuchFieldError unused19) {
}
}
}
/* JADX INFO: Access modifiers changed from: protected */
public static AyW d(EnumC14464fth enumC14464fth) {
if (enumC14464fth != null) {
switch (AnonymousClass2.b[enumC14464fth.ordinal()]) {
case 1:
return AyW.SCB;
case 2:
return AyW.ERROR;
case 3:
return AyW.GROUP;
case 4:
return AyW.HEADER;
case 5:
return AyW.LOADING;
case 6:
return AyW.SHORTCUT;
case 7:
return AyW.LEARN_MORE;
case 8:
return AyW.ADD_SHORTCUT;
case 9:
return AyW.STATIC_ERROR;
case 10:
return AyW.STATIC_LOADING;
case 11:
return AyW.STATIC_SHORTCUT;
case 12:
return AyW.PREDICTIVE_TILE_LOADING;
case 13:
return AyW.SPLASH;
default:
return AyW.EMPTY;
}
}
return AyW.EMPTY;
}
/* JADX INFO: Access modifiers changed from: protected */
public static int j(String str) {
char c;
if (str == null) {
return 0;
}
str.hashCode();
int hashCode = str.hashCode();
if (hashCode == 76) {
if (str.equals("L")) {
c = 0;
}
c = 65535;
} else if (hashCode != 77) {
if (hashCode == 83 && str.equals("S")) {
c = 2;
}
c = 65535;
} else {
if (str.equals("M")) {
c = 1;
}
c = 65535;
}
if (c == 0) {
return 3;
}
if (c != 1) {
return c != 2 ? 0 : 1;
}
return 2;
}
public static /* synthetic */ void b(final C0619KuQ c0619KuQ, List list, final String str, qRQ qrq) {
String str2;
ArrayList arrayList = new ArrayList();
int i = qrq.e;
sdB a = new sdB().i(qrq.c).a(qrq.i);
if ("en".equalsIgnoreCase(str)) {
str2 = qrq.h;
} else {
str2 = qrq.g;
}
arrayList.add(a.q(str2).a(AyW.HEADER).m(3).d(i).c(qrq.d));
YKU yku = new YKU(qrq.a);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new C16645pvk(c0619KuQ)));
arrayList.addAll((Collection) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(c0619KuQ, str) { // from class: o.QHA
private String b;
private C0619KuQ c;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
sdB b;
b = this.c.b(r3, this.b, ((C17104tuu) obj).d);
return b;
}
{
this.c = c0619KuQ;
this.b = str;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())));
list.addAll(arrayList);
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Removed duplicated region for block: B:18:0x0093 */
/* JADX WARN: Removed duplicated region for block: B:21:0x00a6 */
/* JADX WARN: Removed duplicated region for block: B:24:0x00b1 */
/* JADX WARN: Removed duplicated region for block: B:27:0x00c2 */
/* JADX WARN: Removed duplicated region for block: B:30:0x00cf */
/* JADX WARN: Removed duplicated region for block: B:34:0x00b3 */
/* JADX WARN: Removed duplicated region for block: B:35:0x00a8 */
/* JADX WARN: Removed duplicated region for block: B:36:0x009c */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public o.sdB b(o.C17104tuu r6, java.lang.String r7, int r8) {
/*
r5 = this;
o.kNl r0 = r6.k
r1 = 1
if (r0 == 0) goto L51
int[] r0 = o.C0619KuQ.AnonymousClass2.e
o.isw r2 = r6.l
int r2 = r2.ordinal()
r0 = r0[r2]
if (r0 == r1) goto L42
r2 = 2
if (r0 == r2) goto L35
r2 = 3
if (r0 == r2) goto L35
r2 = 4
if (r0 == r2) goto L28
r2 = 5
if (r0 != r2) goto L51
o.kNl r0 = r6.k
java.lang.String r0 = r0.j
if (r0 == 0) goto L51
o.kNl r0 = r6.k
java.lang.String r0 = r0.j
goto L53
L28:
o.kNl r0 = r6.k
o.Orj r0 = r0.i
if (r0 == 0) goto L51
o.kNl r0 = r6.k
o.Orj r0 = r0.i
java.lang.String r0 = r0.q
goto L53
L35:
o.kNl r0 = r6.k
o.BUi r0 = r0.e
if (r0 == 0) goto L51
o.kNl r0 = r6.k
o.BUi r0 = r0.e
java.lang.String r0 = r0.a
goto L53
L42:
o.kNl r0 = r6.k
o.ApB r0 = r0.c
if (r0 == 0) goto L51
o.kNl r0 = r6.k
o.ApB r0 = r0.c
java.lang.String r0 = r0.a()
goto L53
L51:
java.lang.String r0 = ""
L53:
o.sdB r2 = new o.sdB
r2.<init>()
o.sdB r0 = r2.i(r0)
o.sdB r8 = r0.d(r8)
int r0 = r6.d
o.sdB r8 = r8.h(r0)
java.lang.String r0 = r6.b
o.sdB r8 = r8.c(r0)
long r2 = r6.h
o.sdB r8 = r8.a(r2)
java.lang.String r7 = a(r6, r7)
o.sdB r7 = r8.q(r7)
o.fth r8 = r6.m
o.AyW r8 = d(r8)
o.sdB r7 = r7.a(r8)
o.isw r8 = r6.l
o.sdB r7 = r7.e(r8)
o.sdB r7 = r7.m(r1)
o.kNl r8 = r6.k
r0 = 0
if (r8 == 0) goto L9c
o.Xbv r8 = r5.b
o.kNl r2 = r6.k
o.Ikx r8 = r8.e(r2)
goto L9d
L9c:
r8 = r0
L9d:
o.sdB r7 = r7.a(r8)
int r8 = r6.g
r2 = 0
if (r8 != r1) goto La8
r8 = r1
goto La9
La8:
r8 = r2
La9:
o.sdB r7 = r7.h(r8)
int r8 = r6.c
if (r8 != r1) goto Lb3
r8 = r1
goto Lb4
Lb3:
r8 = r2
Lb4:
o.sdB r7 = r7.i(r8)
long r3 = r6.a
o.sdB r7 = r7.c(r3)
o.kNl r8 = r6.k
if (r8 == 0) goto Lc6
o.kNl r8 = r6.k
java.lang.String r0 = r8.a
Lc6:
o.sdB r7 = r7.f(r0)
int r6 = r6.e
if (r6 != r1) goto Lcf
goto Ld0
Lcf:
r1 = r2
Ld0:
o.sdB r6 = r7.e(r1)
return r6
*/
throw new UnsupportedOperationException("Method not decompiled: o.C0619KuQ.b(o.tuu, java.lang.String, int):o.sdB");
}
/* JADX INFO: Access modifiers changed from: protected */
public static String a(C17104tuu c17104tuu, String str) {
if (gjJ.b((CharSequence) c17104tuu.f9281o)) {
if ("en".equalsIgnoreCase(str)) {
return c17104tuu.f;
}
return c17104tuu.i;
}
return c17104tuu.f9281o;
}
}