28 lines
1007 B
Java
28 lines
1007 B
Java
package o;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class TDf extends wRi {
|
|
private static String[] d = {"557755", "557772", "589599", "0014", "478867", "0140"};
|
|
private static String[] e = {"477376", "490734", "490733", "541496", "515648", "541029", "777777", "540492", "454852", "481529", "534442", "496615", "356518"};
|
|
|
|
@InterfaceC13391fZD
|
|
public TDf(yRw yrw, yRw yrw2) {
|
|
super(yrw, yrw2);
|
|
}
|
|
|
|
public static String c(String str) {
|
|
if (gjJ.b((CharSequence) str)) {
|
|
return "EMPTY_CARD";
|
|
}
|
|
if (str != null) {
|
|
boolean z = str.length() >= 4 && Arrays.asList(d).contains(str.substring(0, 4));
|
|
if ((str.length() >= 6 && Arrays.asList(d).contains(str.substring(0, 6))) || z) {
|
|
return "VALID_ATM_CARD";
|
|
}
|
|
}
|
|
return (str == null || str.length() < 6 || !Arrays.asList(e).contains(str.substring(0, 6))) ? "INVALID_CARD" : "VALID_CREDIT_CARD";
|
|
}
|
|
}
|