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

278 lines
9.2 KiB
Java

package o;
import android.content.res.Resources;
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import o.C15715hv;
import o.InterfaceC9022dbq;
import o.ZI;
/* renamed from: o.agw, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public class C2564agw extends ZI<InterfaceC9022dbq.LWm> {
private static int a = 0;
private static byte c = 6;
private static int g = 1;
private final C16125lT b;
private final Resources d;
public final C0256ClW e;
private void h(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] ^ c);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@InterfaceC13391fZD
public C2564agw(C16903sI c16903sI, C0256ClW c0256ClW, C16125lT c16125lT, Resources resources) {
super(c16903sI);
this.e = c0256ClW;
this.b = c16125lT;
this.d = resources;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.agw$5, reason: invalid class name */
/* loaded from: classes3.dex */
public static /* synthetic */ class AnonymousClass5 {
static final int[] d;
static {
int[] iArr = new int[YM.values().length];
d = iArr;
try {
iArr[YM.PROVINCE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
d[YM.DISTRICT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
d[YM.SUB_DISTRICT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void g(final Throwable th) throws Throwable {
int i = 2 % 2;
if (this.f != 0) {
int i2 = g + 71;
a = i2 % 128;
int i3 = i2 % 2;
this.f.ar_();
}
YM ym = YM.PROVINCE;
String string = this.d.getString(C15715hv.tOB.address_subdistrict_search_province_hint);
if (string.startsWith(",*,)")) {
Object[] objArr = new Object[1];
h(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
String str = string;
String string2 = this.d.getString(C15715hv.tOB.address_subdistrict_search_province_header);
if (string2.startsWith(",*,)")) {
Object[] objArr2 = new Object[1];
h(string2.substring(4), objArr2);
string2 = ((String) objArr2[0]).intern();
}
final C0398Fr c0398Fr = new C0398Fr(ym, str, string2, new ArrayList(), null);
if (i(th)) {
ZI.IeS ieS = new ZI.IeS(c0398Fr, th) { // from class: o.agt
private C0398Fr b;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9022dbq.LWm) obj).b(this.b, this.e);
}
{
this.b = c0398Fr;
this.e = th;
}
};
if (this.f != 0) {
int i4 = a + 61;
g = i4 % 128;
int i5 = i4 % 2;
ieS.e(this.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS(c0398Fr) { // from class: o.ags
private C0398Fr a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9022dbq.LWm) obj).c(this.a);
}
{
this.a = c0398Fr;
}
};
if (this.f != 0) {
int i6 = g + 41;
a = i6 % 128;
int i7 = i6 % 2;
ieS2.e(this.f);
int i8 = g + 71;
a = i8 % 128;
int i9 = i8 % 2;
}
}
public static /* synthetic */ void a(C2564agw c2564agw, Lrj lrj) {
if (c2564agw.f != 0) {
c2564agw.f.ar_();
}
final List<C0406Fx> d = c2564agw.b.d(lrj);
final String string = c2564agw.d.getString(C15715hv.tOB.address_subdistrict_search_province_header);
final String string2 = c2564agw.d.getString(C15715hv.tOB.address_subdistrict_search_province_hint);
ZI.IeS ieS = new ZI.IeS(string2, string, d) { // from class: o.agB
private String b;
private String c;
private List e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9022dbq.LWm) obj).c(new C0398Fr(YM.PROVINCE, this.b, this.c, this.e, null));
}
{
this.b = string2;
this.c = string;
this.e = d;
}
};
if (c2564agw.f != 0) {
ieS.e(c2564agw.f);
}
}
public static /* synthetic */ void d(C2564agw c2564agw, YM ym, C0406Fx c0406Fx, Lrj lrj) {
if (c2564agw.f != 0) {
c2564agw.f.ar_();
}
final List<C0406Fx> d = c2564agw.b.d(lrj);
if (d.size() == 1 && ym == YM.SUB_DISTRICT) {
ZI.IeS ieS = new ZI.IeS(d) { // from class: o.agD
private List d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9022dbq.LWm) obj).b(((C0406Fx) this.d.get(0)).c);
}
{
this.d = d;
}
};
if (c2564agw.f != 0) {
ieS.e(c2564agw.f);
return;
}
return;
}
int i = AnonymousClass5.d[ym.ordinal()];
if (i == 1) {
final String str = c0406Fx.h;
final String format = String.format(c2564agw.d.getString(C15715hv.tOB.address_subdistrict_search_district_header), str);
final String string = c2564agw.d.getString(C15715hv.tOB.address_subdistrict_search_district_hint);
ZI.IeS ieS2 = new ZI.IeS(string, format, d, str) { // from class: o.agG
private String a;
private String b;
private String c;
private List e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9022dbq.LWm) obj).d(new C0398Fr(YM.DISTRICT, this.a, this.c, this.e, this.b));
}
{
this.a = string;
this.c = format;
this.e = d;
this.b = str;
}
};
if (c2564agw.f != 0) {
ieS2.e(c2564agw.f);
return;
}
return;
}
if (i == 2) {
final String str2 = c0406Fx.d;
final String format2 = String.format(c2564agw.d.getString(C15715hv.tOB.address_subdistrict_search_sub_district_header), str2);
final String string2 = c2564agw.d.getString(C15715hv.tOB.address_subdistrict_search_sub_district_hint);
ZI.IeS ieS3 = new ZI.IeS(string2, format2, d, str2) { // from class: o.agv
private List b;
private String c;
private String d;
private String e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9022dbq.LWm) obj).d(new C0398Fr(YM.SUB_DISTRICT, this.e, this.d, this.b, this.c));
}
{
this.e = string2;
this.d = format2;
this.b = d;
this.c = str2;
}
};
if (c2564agw.f != 0) {
ieS3.e(c2564agw.f);
return;
}
return;
}
if (i == 3) {
final String str3 = c0406Fx.i;
final String format3 = String.format(c2564agw.d.getString(C15715hv.tOB.address_subdistrict_search_postal_header), str3);
final String string3 = c2564agw.d.getString(C15715hv.tOB.address_subdistrict_search_postal_hint);
ZI.IeS ieS4 = new ZI.IeS(string3, format3, d, str3) { // from class: o.agu
private List a;
private String b;
private String d;
private String e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9022dbq.LWm) obj).d(new C0398Fr(YM.POSTAL_CODE, this.e, this.b, this.a, this.d));
}
{
this.e = string3;
this.b = format3;
this.a = d;
this.d = str3;
}
};
if (c2564agw.f != 0) {
ieS4.e(c2564agw.f);
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void b(C2564agw c2564agw, Throwable th) throws Throwable {
if (c2564agw.b(th)) {
c2564agw.d(c2564agw.j.e(th));
}
}
}