67 lines
2.0 KiB
Java
67 lines
2.0 KiB
Java
package com.kofax.mobile.sdk.w;
|
|
|
|
import bolts.CancellationToken;
|
|
import com.kofax.mobile.sdk.extract.id.DataField;
|
|
import java.util.List;
|
|
import o.InterfaceC13391fZD;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class as extends ae {
|
|
private static final String QD = "MRZ1";
|
|
private static final String QE = "MRZ2";
|
|
private final com.kofax.mobile.sdk._internal.extraction.id.e Ls;
|
|
private final String QC = "Slovakia (SVK) Identification Card (1999) - Back";
|
|
|
|
@Override // com.kofax.mobile.sdk.w.ae, com.kofax.mobile.sdk.e.c
|
|
public /* bridge */ /* synthetic */ void a(Object obj, CancellationToken cancellationToken) {
|
|
super.a(obj, cancellationToken);
|
|
}
|
|
|
|
@InterfaceC13391fZD
|
|
public as(com.kofax.mobile.sdk._internal.extraction.id.e eVar) {
|
|
this.Ls = eVar;
|
|
}
|
|
|
|
@Override // com.kofax.mobile.sdk.w.ae
|
|
public void a(com.kofax.mobile.sdk.e.a aVar) {
|
|
String c = c(aVar.hw());
|
|
if (c == null || !c.contains("Slovakia (SVK) Identification Card (1999) - Back")) {
|
|
return;
|
|
}
|
|
f(QD, aVar.hz());
|
|
f(QE, aVar.hz());
|
|
}
|
|
|
|
private void f(String str, List<DataField> list) {
|
|
DataField g = g(str, list);
|
|
if (g != null) {
|
|
String object = g.getObject();
|
|
String aA = aA(object);
|
|
if (object.equals(aA)) {
|
|
return;
|
|
}
|
|
int indexOf = list.indexOf(g);
|
|
list.remove(g);
|
|
list.add(indexOf, new DataField(g.getName(), aA, g.getConfidence(), g.getLocation()));
|
|
}
|
|
}
|
|
|
|
private DataField g(String str, List<DataField> list) {
|
|
if (list == null) {
|
|
return null;
|
|
}
|
|
return this.Ls.a(str, list);
|
|
}
|
|
|
|
private String aA(String str) {
|
|
return (str == null || str.length() <= 34) ? str : str.substring(0, 34);
|
|
}
|
|
|
|
private String c(com.kofax.mobile.sdk.c.a aVar) {
|
|
if (aVar == null) {
|
|
return null;
|
|
}
|
|
return aVar.getClassId();
|
|
}
|
|
}
|