59 lines
1.7 KiB
Java
59 lines
1.7 KiB
Java
package com.kofax.mobile.sdk.x;
|
|
|
|
import com.kofax.mobile.sdk.extract.id.DataField;
|
|
import com.kofax.mobile.sdk.w.ag;
|
|
import java.util.List;
|
|
import o.InterfaceC13391fZD;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class ay implements ag.a {
|
|
private static final String Rx = "MRZ1";
|
|
private static final String Ry = "MRZ2";
|
|
private final com.kofax.mobile.sdk._internal.extraction.id.e Ls;
|
|
|
|
@InterfaceC13391fZD
|
|
public ay(com.kofax.mobile.sdk._internal.extraction.id.e eVar) {
|
|
this.Ls = eVar;
|
|
}
|
|
|
|
@Override // com.kofax.mobile.sdk.w.ag.a
|
|
public boolean k(com.kofax.mobile.sdk.e.a aVar) {
|
|
return a(aVar.hv(), ac.Re);
|
|
}
|
|
|
|
@Override // com.kofax.mobile.sdk.w.ag.a
|
|
public boolean z(com.kofax.mobile.sdk.e.a aVar) {
|
|
return aVar.hx() != null && aVar.hx().size() > 0;
|
|
}
|
|
|
|
@Override // com.kofax.mobile.sdk.w.ag.a
|
|
public boolean A(com.kofax.mobile.sdk.e.a aVar) {
|
|
return z(aVar) && u(aVar.hx());
|
|
}
|
|
|
|
@Override // com.kofax.mobile.sdk.w.ag.a
|
|
public void d(com.kofax.mobile.sdk.e.a aVar, Exception exc) {
|
|
if (exc != null) {
|
|
aVar.a(exc);
|
|
}
|
|
}
|
|
|
|
private boolean u(List<DataField> list) {
|
|
DataField a = this.Ls.a(Rx, list);
|
|
DataField a2 = this.Ls.a(Ry, list);
|
|
return ((a == null || a.getObject().equals("")) && (a2 == null || a2.getObject().equals(""))) ? false : true;
|
|
}
|
|
|
|
private static boolean a(com.kofax.mobile.sdk.c.a aVar, String str) {
|
|
String e = e(aVar);
|
|
return e != null && e.equals(str);
|
|
}
|
|
|
|
private static String e(com.kofax.mobile.sdk.c.a aVar) {
|
|
if (aVar == null) {
|
|
return null;
|
|
}
|
|
return aVar.getClassId();
|
|
}
|
|
}
|