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

297 lines
8.9 KiB
Java

package o;
import java.util.Arrays;
import java.util.List;
import o.InterfaceC8954dab;
import o.ZI;
/* renamed from: o.cfi */
/* loaded from: classes4.dex */
public final class C6984cfi extends ZI<InterfaceC8954dab.Sts> {
private static final gdW k;
private static final gdW m;
private static final gdW p;
public int a;
public int b;
public boolean c;
public int d;
public int e;
public int g;
public int h;
public int i;
public int l;
public int n;
/* renamed from: o */
public int f8643o;
private int q;
private int r;
private int s;
private final List<Integer> t;
@InterfaceC13391fZD
public C6984cfi(C16903sI c16903sI) {
super(c16903sI);
this.c = true;
Integer[] numArr = {2, 1, 3};
C14957gcv.e(numArr, "");
C14957gcv.e(numArr, "");
List<Integer> asList = Arrays.asList(numArr);
C14957gcv.c(asList, "");
this.t = asList;
}
public static int d(String str, Boolean bool) {
String b = C2974aoj.b(str);
gdW gdw = k;
C14957gcv.e(b, "");
if (gdw.e.matcher(b).matches()) {
return 2;
}
gdW gdw2 = p;
if (C14957gcv.b(bool, Boolean.TRUE)) {
gdw2 = m;
}
String str2 = str;
if (gdw2.a(str2, "").length() != 0) {
return 3;
}
return str2.length() == 0 ? 4 : 1;
}
public static int d(String str) {
return str.length() == 0 ? 4 : 1;
}
public final void c(int i, int i2) {
if (i2 == 1) {
ZI.IeS ieS = new ZI.IeS(i) { // from class: o.cfh
private int d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8954dab.Sts) obj).a(this.d);
}
{
this.d = i;
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
if (i2 == 2 || i2 == 3) {
ZI.IeS ieS2 = new ZI.IeS(i2, i) { // from class: o.cfl
private int c;
private int d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8954dab.Sts) obj).c(this.c, this.d);
}
{
this.c = i2;
this.d = i;
}
};
if (this.f != 0) {
ieS2.e(this.f);
return;
}
return;
}
if (i2 == 4) {
if (this.t.contains(Integer.valueOf(i))) {
ZI.IeS ieS3 = new ZI.IeS(i2, i) { // from class: o.cfj
private int a;
private int e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8954dab.Sts) obj).c(this.a, this.e);
}
{
this.a = i2;
this.e = i;
}
};
if (this.f != 0) {
ieS3.e(this.f);
return;
}
return;
}
ZI.IeS ieS4 = new ZI.IeS(i) { // from class: o.cfm
private int c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8954dab.Sts) obj).a(this.c);
}
{
this.c = i;
}
};
if (this.f != 0) {
ieS4.e(this.f);
}
}
}
public final void b(boolean z) {
List asList;
if (z) {
Integer[] numArr = {Integer.valueOf(this.d), Integer.valueOf(this.r), Integer.valueOf(this.s), Integer.valueOf(this.q), Integer.valueOf(this.a), Integer.valueOf(this.e), Integer.valueOf(this.h)};
C14957gcv.e(numArr, "");
C14957gcv.e(numArr, "");
asList = Arrays.asList(numArr);
C14957gcv.c(asList, "");
} else {
Integer[] numArr2 = {Integer.valueOf(this.d), Integer.valueOf(this.r), Integer.valueOf(this.s), Integer.valueOf(this.q), Integer.valueOf(this.a), Integer.valueOf(this.e), Integer.valueOf(this.g), Integer.valueOf(this.i), Integer.valueOf(this.b), Integer.valueOf(this.f8643o), Integer.valueOf(this.n)};
C14957gcv.e(numArr2, "");
C14957gcv.e(numArr2, "");
asList = Arrays.asList(numArr2);
C14957gcv.c(asList, "");
}
if (asList.contains(2) || asList.contains(3)) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.cfq
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8954dab.Sts) obj).c();
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
int i = this.s;
if (i != 4 || this.r != 4) {
if (i == 4 || this.r == 4 || this.q == 4) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cfr
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8954dab.Sts) obj).c();
}
};
if (this.f != 0) {
ieS2.e(this.f);
return;
}
return;
}
ZI.IeS ieS3 = new ZI.IeS(this) { // from class: o.cfs
private C6984cfi c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6984cfi.a(this.c, (InterfaceC8954dab.Sts) obj);
}
{
this.c = this;
}
};
if (this.f != 0) {
ieS3.e(this.f);
return;
}
return;
}
ZI.IeS ieS4 = new ZI.IeS(this) { // from class: o.cfn
private C6984cfi b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6984cfi.b(this.b, (InterfaceC8954dab.Sts) obj);
}
{
this.b = this;
}
};
if (this.f != 0) {
ieS4.e(this.f);
}
}
/* renamed from: o.cfi$HBt */
/* loaded from: classes4.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
static {
new HBt((byte) 0);
m = new gdW("(^[-A-Za-z0-9\\u0E01-\\u0E39\\u0E40-\\u0E4C]$)|(^[A-Za-z0-9\\u0E01-\\u0E39\\u0E40-\\u0E4C]+[#&(),-./ A-Za-z0-9\\u0E01-\\u0E39\\u0E40-\\u0E4C]*[).A-Za-z0-9\\u0E01-\\u0E39\\u0E40-\\u0E4C]$)");
p = new gdW("(^[A-Za-z0-9\\u0E01-\\u0E39\\u0E40-\\u0E4C]$)|(^[@A-Za-z0-9\\u0E01-\\u0E39\\u0E40-\\u0E4C]+[#&(),-./@ A-Za-z0-9\\u0E01-\\u0E39\\u0E40-\\u0E4C]*[).A-Za-z0-9\\u0E01-\\u0E39\\u0E40-\\u0E4C]$)");
k = new gdW("((^NONE)(.*)|(.*)(NONE$))|((^ไม่มี)(.*)|(.*)(ไม่มี$))");
}
public static /* synthetic */ void a(C6984cfi c6984cfi, InterfaceC8954dab.Sts sts) {
C14957gcv.e(c6984cfi, "");
sts.a(Boolean.valueOf(c6984cfi.c));
}
public static /* synthetic */ void b(InterfaceC8954dab.Sts sts) {
sts.a(1);
sts.a(2);
}
public static /* synthetic */ void b(C6984cfi c6984cfi, InterfaceC8954dab.Sts sts) {
C14957gcv.e(c6984cfi, "");
sts.a(Boolean.valueOf(c6984cfi.c));
}
public final void d(String str, String str2, String str3) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
this.s = d(str, Boolean.FALSE);
this.r = d(str2, Boolean.FALSE);
this.q = d(str3, Boolean.FALSE);
if (this.s != 4 || this.r != 4) {
c(1, this.r);
c(2, this.s);
c(3, this.q);
} else {
ZI.IeS ieS = new ZI.IeS() { // from class: o.cfp
@Override // o.ZI.IeS
public final void e(Object obj) {
C6984cfi.b((InterfaceC8954dab.Sts) obj);
}
};
if (this.f != 0) {
ieS.e(this.f);
}
int i = this.q;
if (i == 1 || i == 4) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cfo
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8954dab.Sts) obj).a(3);
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
} else {
c(3, i);
}
}
b(this.c);
}
}