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

270 lines
9.7 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.text.TextUtils;
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import o.C15715hv;
import o.ES;
import o.QG;
import o.QK;
import o.QO;
import o.QR;
/* renamed from: o.pw, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16646pw extends C16181lx {
private static byte b = 6;
private static int h = 1;
private static int j;
private final C16629pp d;
private void n(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] ^ b);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@InterfaceC13391fZD
public C16646pw(Resources resources, SharedPreferences sharedPreferences, C16629pp c16629pp) {
super(resources, sharedPreferences);
this.d = c16629pp;
}
public final ES a(yrH yrh, boolean z, boolean z2) {
this.a = new ArrayList();
ES.IeS a = ES.a();
a.c = b(yrh.b, yrh.e, z, z2);
a.e = yrh.b.l;
return new ES(a, (byte) 0);
}
private List<EM> b(C11218ebG c11218ebG, NEO neo, boolean z, boolean z2) {
boolean z3;
List<String> list;
int i = 2 % 2;
if (neo.b == null) {
int i2 = h + 125;
j = i2 % 128;
int i3 = i2 % 2;
z3 = true;
} else {
z3 = false;
}
QO.IeS d = QO.d();
String string = this.e.getString(C15715hv.tOB.debit_card_review_request_type);
if (string.startsWith(",*,)")) {
Object[] objArr = new Object[1];
n(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
int i4 = j + 97;
h = i4 % 128;
int i5 = i4 % 2;
}
d.g = string;
d.h = c11218ebG.u;
this.a.add(d.d());
this.a.add(new QQ());
QK.LWm e = QK.e();
String string2 = this.e.getString(C15715hv.tOB.debit_card_review_account);
if (string2.startsWith(",*,)")) {
Object[] objArr2 = new Object[1];
n(string2.substring(4), objArr2);
string2 = ((String) objArr2[0]).intern();
}
e.g = string2;
e.h = c11218ebG.d;
e.a = c(c11218ebG.a, z);
e.c = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
this.a.add(new QK(e, (byte) 0));
this.a.add(new QQ());
if (!z3) {
QO.IeS d2 = QO.d();
String string3 = this.e.getString(C15715hv.tOB.debit_card_review_debit_number);
if (string3.startsWith(",*,)")) {
Object[] objArr3 = new Object[1];
n(string3.substring(4), objArr3);
string3 = ((String) objArr3[0]).intern();
}
d2.g = string3;
d2.h = C16629pp.e(neo.b, "$1 $2XX XXXX $3");
this.a.add(d2.d());
this.a.add(new QQ());
}
if (c11218ebG.q.equals("PHYSICAL")) {
QO.IeS d3 = QO.d();
String string4 = this.e.getString(C15715hv.tOB.debit_card_review_debit_card_physical_number);
if (string4.startsWith(",*,)")) {
Object[] objArr4 = new Object[1];
n(string4.substring(4), objArr4);
string4 = ((String) objArr4[0]).intern();
}
d3.g = string4;
d3.h = C16629pp.e(c11218ebG.h, "$1 $2XX XXXX $3");
this.a.add(d3.d());
this.a.add(new QQ());
}
QO.IeS d4 = QO.d();
String string5 = this.e.getString(C15715hv.tOB.debit_card_review_debit_card_product);
if (string5.startsWith(",*,)")) {
Object[] objArr5 = new Object[1];
n(string5.substring(4), objArr5);
string5 = ((String) objArr5[0]).intern();
}
d4.g = string5;
d4.h = c11218ebG.j;
this.a.add(d4.d());
this.a.add(new QQ());
QO.IeS d5 = QO.d();
String string6 = this.e.getString(z3 ? C15715hv.tOB.debit_card_review_debit_type_new : C15715hv.tOB.debit_card_review_debit_type_existing);
if (string6.startsWith(",*,)")) {
Object[] objArr6 = new Object[1];
n(string6.substring(4), objArr6);
string6 = ((String) objArr6[0]).intern();
}
d5.g = string6;
d5.h = c11218ebG.i;
this.a.add(d5.d());
this.a.add(new QQ());
QO.IeS d6 = QO.d();
String string7 = this.e.getString(C15715hv.tOB.debit_card_review_total_fee);
if (string7.startsWith(",*,)")) {
Object[] objArr7 = new Object[1];
n(string7.substring(4), objArr7);
string7 = ((String) objArr7[0]).intern();
}
d6.g = string7;
d6.h = c(Double.valueOf(c11218ebG.m));
this.a.add(d6.d());
QO.IeS e2 = QO.e(YD.SUB_DETAIL_ITEM);
String string8 = this.e.getString(C15715hv.tOB.debit_card_review_annual_fee);
if (string8.startsWith(",*,)")) {
Object[] objArr8 = new Object[1];
n(string8.substring(4), objArr8);
string8 = ((String) objArr8[0]).intern();
}
e2.g = string8;
e2.h = c(Double.valueOf(c11218ebG.e));
e2.i = c11218ebG.c;
e2.f = b(c11218ebG.w.b);
this.a.add(e2.d());
QO.IeS e3 = QO.e(YD.SUB_DETAIL_ITEM);
String string9 = this.e.getString(C15715hv.tOB.debit_card_review_issuing_fee);
if (string9.startsWith(",*,)")) {
Object[] objArr9 = new Object[1];
n(string9.substring(4), objArr9);
string9 = ((String) objArr9[0]).intern();
}
e3.g = string9;
e3.h = c(Double.valueOf(c11218ebG.r));
e3.f = b(c11218ebG.w.c);
this.a.add(e3.d());
QO.IeS e4 = QO.e(YD.SUB_DETAIL_ITEM);
String string10 = this.e.getString(C15715hv.tOB.debit_card_review_delivery_fee);
if (string10.startsWith(",*,)")) {
int i6 = h + 45;
j = i6 % 128;
if (i6 % 2 != 0) {
Object[] objArr10 = new Object[1];
n(string10.substring(4), objArr10);
string10 = ((String) objArr10[0]).intern();
int i7 = 57 / 0;
} else {
Object[] objArr11 = new Object[1];
n(string10.substring(4), objArr11);
string10 = ((String) objArr11[0]).intern();
}
}
e4.g = string10;
e4.h = c(Double.valueOf(c11218ebG.g));
e4.f = b(c11218ebG.w.a);
this.a.add(e4.d());
this.a.add(new QQ());
Object obj = null;
if ((!(!c11218ebG.q.equals("PHYSICAL")) || c11218ebG.q.equals("ALL")) && (list = c11218ebG.t) != null && !c(list).isEmpty()) {
QR.LWm b2 = QR.b();
String string11 = this.e.getString(C15715hv.tOB.debit_card_review_mailing_address);
if (string11.startsWith(",*,)")) {
int i8 = h + 99;
j = i8 % 128;
if (i8 % 2 != 0) {
Object[] objArr12 = new Object[1];
n(string11.substring(4), objArr12);
((String) objArr12[0]).intern();
obj.hashCode();
throw null;
}
Object[] objArr13 = new Object[1];
n(string11.substring(4), objArr13);
string11 = ((String) objArr13[0]).intern();
}
b2.g = string11;
b2.a = TextUtils.join("\n", list);
this.a.add(new QR(b2, (byte) 0));
this.a.add(new QQ());
}
if (c11218ebG.s != null && c11218ebG.s.e != null && !c11218ebG.s.e.isEmpty()) {
QG.RVV a = QG.a();
a.e = e(c11218ebG.s.e);
this.a.add(new QG((QG.RVV<?>) a));
this.a.add(new QQ());
}
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
String str = c11218ebG.f;
if (!z2 && str != null) {
int i9 = h + 11;
j = i9 % 128;
if (i9 % 2 != 0) {
str.isEmpty();
obj.hashCode();
throw null;
}
if (!str.isEmpty()) {
arrayList2.add(str);
}
}
if (c11218ebG.v != null) {
arrayList2.addAll(Arrays.asList(c11218ebG.v.split("\n")));
}
QR.LWm b3 = QR.b();
String string12 = this.e.getString(C15715hv.tOB.debit_card_review_remark);
if (string12.startsWith(",*,)")) {
Object[] objArr14 = new Object[1];
n(string12.substring(4), objArr14);
string12 = ((String) objArr14[0]).intern();
}
b3.g = string12;
int VQ_ = C6583cXR.VQ_(16, this.e);
b3.a = (CharSequence) C6583cXR.c(new Object[]{Integer.valueOf(VQ_), arrayList2}, -1984242070, 1984242084, VQ_);
arrayList.add(new QR(b3, (byte) 0));
a((List<EM>) arrayList, false);
return this.a;
}
private static List<XL> e(List<jSX> list) {
ArrayList arrayList = new ArrayList();
if (list != null) {
for (jSX jsx : list) {
arrayList.add(new XL(jsx.f, jsx.i, jsx.d, jsx.c, jsx.e, jsx.b, jsx.a));
}
}
return arrayList;
}
private static String c(List<String> list) {
list.removeAll(Arrays.asList(""));
if (list.isEmpty()) {
return "";
}
return list.get(0);
}
}