what-the-bank/sources/com/kofax/mobile/sdk/i/g.java

106 lines
4.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.i;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class g implements com.kofax.mobile.sdk.b.d {
private static final String zb = "_DeviceType_2_Do90DegreeRotation_4_DoCropCorrection__DoScaleImageToDPI_500_DoSkewCorrectionPage__LoadSetting_<Property Name=\"CSkewDetect.correct_illumination.Bool\" Value=\"0\" />";
private static final String zc = a(a.ID1);
private static final String zd = "_DeviceType_2_DoCropCorrection__DoSkewCorrectionAlt__Do90DegreeRotation_4_DoScaleImageToDPI_500_DocDimLarge_4.921_DocDimSmall_3.465";
private final Map<String, a> ze = new HashMap();
private final Map<String, String> zf = new HashMap();
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public enum b {
ENABLED,
DISABLED
}
@InterfaceC13391fZD
public g() {
a(a.ID2, b.ENABLED, "Belgium (BEL) Special Identity Card (2000)", "Czech Republic (CZE) Identification Card (2005)", "Czech Republic (CZE) Identification Card (2005) - Back", "Finland (FIN) Driver License (1990)", "Finland (FIN) Driver License (2000)", "France (FRA) Eu Residence Permit, Family, Temporary (2002)", "France (FRA) Identification Card (1994)", "France (FRA) Identification Card (1994) - Back", "France (FRA) Residence Permit (2002)", "France (FRA) Resident ID Card, Algerian, EU Temporary (2000)", "Germany (D) Identification Card (1995)", "Germany (D) Identification Card (1995) - Back", "Germany (D) Residence Permit TA,TN (2006)", "Luxembourg (LUX) Identification Card (2004)", "Romania (ROU) Identity Card (2002,2010)", "Slovakia (SVK) Identification Card (1999)", "Slovakia (SVK) Identification Card (1999) - Back", "UK (Citizen) (GBR) Residence Documentation (2)", "UK (Citizen) (GBR) Residence Documentation (2012A)", "UK (Citizen) (GBR) Residence Permit (3)");
a(a.TUR_ID_2004, b.ENABLED, "Turkey (TUR) Identity Card - Female (2001)", "Turkey (TUR) Identity Card - Female (2001) - Back", "Turkey (TUR) Identity Card - Male (2001)", "Turkey (TUR) Identity Card - Male (2001) - Back");
a(a.PRT_ID_2004, b.ENABLED, "Portugal (PRT) Identity Card (2004)", "Portugal (PRT) Identity Card (2004) - Back");
a(a.BAH_ID_2009, b.ENABLED, "Bahrain (BHR) Identity Card (1)");
a(a.BRA_ID, b.ENABLED, "Brazil (BRA) Sao Paulo Identification Card (1) - Back");
a(a.BRA_DL, b.ENABLED, "Brazil (BRA) Driver License (2000)", "Brazil (BRA) Driver License (2006)");
a(a.BRA_AID_2001, b.ENABLED, "Brazil (BRA) Alien Identification Card (2001)", "Brazil (BRA) Alien Identification Card (2001) - Back");
a(a.ZAF_ID_GB, b.ENABLED, "South Africa (ZAF) Greenbook");
}
@Override // com.kofax.mobile.sdk.b.d
public String L(String str) {
return str.equals(com.kofax.mobile.sdk.e.a.vM) ? zd : zc;
}
@Override // com.kofax.mobile.sdk.b.d
public String l(String str, String str2) {
return this.zf.get(str2);
}
@Override // com.kofax.mobile.sdk.b.d
public String m(String str, String str2) {
return t(str, str2).toString();
}
private void a(a aVar, b bVar, String... strArr) {
for (String str : strArr) {
this.ze.put(str, aVar);
if (bVar == b.ENABLED) {
this.zf.put(str, a(aVar));
}
}
}
private a t(String str, String str2) {
if (str.equals(com.kofax.mobile.sdk.e.a.vM)) {
return a.PASSPORT;
}
return (a) a(this.ze, str2, a.ID1);
}
private static String a(a aVar) {
return zb.concat(String.valueOf(aVar));
}
private static <K, V> V a(Map<K, V> map, K k, V v) {
V v2 = map.get(k);
return (v2 != null || map.containsKey(k)) ? v2 : v;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public enum a {
ID1(3.375d, 2.125d),
ID2(4.134d, 2.913d),
PASSPORT(4.921d, 3.465d),
TUR_ID_2004(3.78d, 2.795d),
PRT_ID_2004(4.275d, 3.044d),
BAH_ID_2009(3.3d, 2.1d),
BRA_ID(4.016d, 2.677d),
BRA_DL(2.46d, 1.732d),
BRA_AID_2001(3.937d, 2.559d),
ZAF_ID_GB(4.3d, 3.1d);
private final double zq;
private final double zr;
a(double d, double d2) {
if (d < d2) {
throw new AssertionError();
}
this.zq = d;
this.zr = d2;
}
@Override // java.lang.Enum
public final String toString() {
return String.format(Locale.US, "_DocDimLarge_%.3f_DocDimSmall_%.3f", Double.valueOf(this.zq), Double.valueOf(this.zr));
}
}
}