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

419 lines
12 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.List;
import o.C5645bwv;
import o.ZI;
/* renamed from: o.bwv, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C5645bwv extends ZI<InterfaceC9312dhP> {
private final ArrayList<Sts> a;
public final OQP b;
public boolean c;
private int d;
public final CBD e;
private int h;
/* renamed from: o.bwv$Sts */
/* loaded from: classes4.dex */
public enum Sts {
BUSINESS_REG_NUM,
OFFICIAL_STORE_URL,
ON_LEASE,
MARKETPLACE_STORE_URL,
MARKETPLACE_PRODUCT_URL
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C5645bwv(CBD cbd, OQP oqp, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(cbd, "");
C14957gcv.e(oqp, "");
C14957gcv.e(c16903sI, "");
this.e = cbd;
this.b = oqp;
this.c = true;
this.a = new ArrayList<>();
}
/* renamed from: o.bwv$LWm */
/* loaded from: classes4.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
/* renamed from: o.bwv$ZqN */
/* loaded from: classes4.dex */
public static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C5645bwv a;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C5645bwv.e(this.a, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ZqN(C5645bwv c5645bwv) {
super(1);
this.a = c5645bwv;
}
}
/* renamed from: o.bwv$ojQ */
/* loaded from: classes4.dex */
public static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR<NSh, C14866gag> {
private C5645bwv c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(NSh nSh) {
NSh nSh2 = nSh;
C14957gcv.e(nSh2, "");
C5645bwv.c(this.c);
C5645bwv.c(this.c, nSh2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ojQ(C5645bwv c5645bwv) {
super(1);
this.c = c5645bwv;
}
}
/* renamed from: o.bwv$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C5645bwv c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C5645bwv.e(this.c, th2);
this.c.c = true;
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C5645bwv c5645bwv) {
super(1);
this.c = c5645bwv;
}
}
/* renamed from: o.bwv$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C5645bwv e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
C5645bwv.c(this.e);
C5645bwv c5645bwv = this.e;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bwH
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9312dhP) obj).e();
}
};
if (c5645bwv.f != 0) {
ieS.e(c5645bwv.f);
}
this.e.c = true;
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C5645bwv c5645bwv) {
super(0);
this.e = c5645bwv;
}
}
public final boolean d(final Sts sts, String str) {
C14957gcv.e(sts, "");
C14957gcv.e(str, "");
int i = HBt.e[sts.ordinal()];
final boolean z = false;
if (i == 1) {
if (str.length() == 13) {
String str2 = str;
gdW gdw = new gdW("^[0-9]+$");
C14957gcv.e(str2, "");
if (gdw.e.matcher(str2).matches()) {
z = true;
}
}
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bwA
private boolean a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9312dhP) obj).b(C5645bwv.Sts.BUSINESS_REG_NUM, this.a);
}
{
this.a = z;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
} else if (i == 2) {
String str3 = str;
gdW gdw2 = new gdW("^((?:http|https)://)(?:www\\.)?[\\w\\d\\-_]+\\.\\w{2,3}(\\.\\w{2})?(/(?<=/)(?:[\\w\\d\\-./_]+)?)?$");
C14957gcv.e(str3, "");
z = gdw2.e.matcher(str3).matches();
ZI.IeS ieS2 = new ZI.IeS(sts, z) { // from class: o.bwy
private boolean a;
private C5645bwv.Sts c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5645bwv.e(this.c, this.a, (InterfaceC9312dhP) obj);
}
{
this.c = sts;
this.a = z;
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
return z;
}
public final boolean a(List<String> list, Sts sts) {
int i;
C14957gcv.e(list, "");
C14957gcv.e(sts, "");
int i2 = HBt.e[sts.ordinal()];
int i3 = 0;
if (i2 == 3) {
i = this.h;
} else {
if (i2 != 4) {
return false;
}
i = this.d;
}
if (list.size() < i) {
return false;
}
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (i3 >= 0) {
arrayList.add(Boolean.valueOf(c(sts, (String) obj, i3)));
i3++;
} else {
throw new ArithmeticException("Index overflow has happened.");
}
}
return !arrayList.contains(Boolean.FALSE);
}
public final boolean c(final Sts sts, String str, final int i) {
C14957gcv.e(sts, "");
C14957gcv.e(str, "");
String str2 = str;
gdW gdw = new gdW("^((?:http|https)://)(?:www\\.)?[\\w\\d\\-_]+\\.\\w{2,3}(\\.\\w{2})?(/(?<=/)(?:[\\w\\d\\-./_]+)?)?$");
C14957gcv.e(str2, "");
final boolean matches = gdw.e.matcher(str2).matches();
ZI.IeS ieS = new ZI.IeS(sts, i, matches) { // from class: o.bwC
private boolean a;
private C5645bwv.Sts b;
private int d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5645bwv.e(this.b, this.d, this.a, (InterfaceC9312dhP) obj);
}
{
this.b = sts;
this.d = i;
this.a = matches;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
return matches;
}
public static /* synthetic */ void e(Sts sts, boolean z, InterfaceC9312dhP interfaceC9312dhP) {
C14957gcv.e(sts, "");
interfaceC9312dhP.b(sts, z);
}
public static /* synthetic */ void e(NSh nSh, InterfaceC9312dhP interfaceC9312dhP) {
C14957gcv.e(nSh, "");
interfaceC9312dhP.c(nSh.c, nSh.d.c, nSh.d.d);
}
public static /* synthetic */ void d(NSh nSh, InterfaceC9312dhP interfaceC9312dhP) {
C14957gcv.e(nSh, "");
interfaceC9312dhP.d(nSh.a.a);
}
public static /* synthetic */ void e(NSh nSh, C5645bwv c5645bwv, InterfaceC9312dhP interfaceC9312dhP) {
C14957gcv.e(nSh, "");
C14957gcv.e(c5645bwv, "");
interfaceC9312dhP.b(nSh.b.a);
c5645bwv.a.add(Sts.OFFICIAL_STORE_URL);
}
public static /* synthetic */ void b(NSh nSh, C5645bwv c5645bwv, InterfaceC9312dhP interfaceC9312dhP) {
C14957gcv.e(nSh, "");
C14957gcv.e(c5645bwv, "");
interfaceC9312dhP.e(nSh.e.a);
c5645bwv.a.add(Sts.BUSINESS_REG_NUM);
}
public static /* synthetic */ void e(Sts sts, int i, boolean z, InterfaceC9312dhP interfaceC9312dhP) {
C14957gcv.e(sts, "");
interfaceC9312dhP.a(sts, Integer.valueOf(i), z);
}
public static final /* synthetic */ void c(final C5645bwv c5645bwv, final NSh nSh) {
if (nSh.e.e) {
ZI.IeS ieS = new ZI.IeS(nSh, c5645bwv) { // from class: o.bwz
private NSh b;
private C5645bwv e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5645bwv.b(this.b, this.e, (InterfaceC9312dhP) obj);
}
{
this.b = nSh;
this.e = c5645bwv;
}
};
if (c5645bwv.f != 0) {
ieS.e(c5645bwv.f);
}
}
if (nSh.a.e) {
c5645bwv.a.add(Sts.ON_LEASE);
ZI.IeS ieS2 = new ZI.IeS(nSh) { // from class: o.bwB
private NSh e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5645bwv.d(this.e, (InterfaceC9312dhP) obj);
}
{
this.e = nSh;
}
};
if (c5645bwv.f != 0) {
ieS2.e(c5645bwv.f);
}
}
if (nSh.b.e) {
ZI.IeS ieS3 = new ZI.IeS(nSh, c5645bwv) { // from class: o.bwG
private NSh a;
private C5645bwv d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5645bwv.e(this.a, this.d, (InterfaceC9312dhP) obj);
}
{
this.a = nSh;
this.d = c5645bwv;
}
};
if (c5645bwv.f != 0) {
ieS3.e(c5645bwv.f);
}
}
if (nSh.d.b) {
c5645bwv.d = nSh.c.c.e;
c5645bwv.h = nSh.c.e.e;
ZI.IeS ieS4 = new ZI.IeS(nSh) { // from class: o.bwF
private NSh e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5645bwv.e(this.e, (InterfaceC9312dhP) obj);
}
{
this.e = nSh;
}
};
if (c5645bwv.f != 0) {
ieS4.e(c5645bwv.f);
}
}
}
public static final /* synthetic */ void c(C5645bwv c5645bwv) {
if (c5645bwv.f != 0) {
c5645bwv.f.ar_();
}
}
public static final /* synthetic */ void e(C5645bwv c5645bwv, Throwable th) {
if (c5645bwv.b(th)) {
c5645bwv.d(c5645bwv.j.e(th));
}
}
/* JADX WARN: Multi-variable type inference failed */
public static ArrayList<String> d(C13396fZU<? extends ArrayList<String>, ? extends Sts> c13396fZU, Sts sts) {
if (sts == c13396fZU.e) {
return (ArrayList) c13396fZU.d;
}
return null;
}
/* renamed from: o.bwv$HBt */
/* loaded from: classes4.dex */
public final /* synthetic */ class HBt {
public static final int[] e;
static {
int[] iArr = new int[Sts.values().length];
try {
iArr[Sts.BUSINESS_REG_NUM.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[Sts.OFFICIAL_STORE_URL.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[Sts.MARKETPLACE_STORE_URL.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[Sts.MARKETPLACE_PRODUCT_URL.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
e = iArr;
}
}
static {
new LWm((byte) 0);
}
}