package com.kofax.mobile.sdk.u; import com.kofax.kmc.ken.engines.data.BarCodeResult; import com.kofax.mobile.sdk.extract.id.AggregateException; import com.kofax.mobile.sdk.extract.id.DataField; import com.kofax.mobile.sdk.extract.id.IIdExtractionListener; import com.kofax.mobile.sdk.extract.id.IIdImageProcessingListener; import com.kofax.mobile.sdk.extract.id.IdExtractionParameters; import com.kofax.mobile.sdk.extract.id.IdType; import com.kofax.mobile.sdk.extract.id.ImageField; import com.kofax.mobile.sdk.extract.id.ListOfException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /* loaded from: classes3.dex */ public class d implements com.kofax.mobile.sdk.e.a { private boolean NO; private boolean NP; private final IdExtractionParameters Oc; private List Od; private b Og; private b Oh; private com.kofax.mobile.sdk.c.a Oi; private com.kofax.mobile.sdk.c.a Oj; private List> Os; private List> Ot; private double Ou; private List Oe = new ArrayList(); private List Of = new ArrayList(); private List Ok = null; private List Ol = null; private List Om = null; private ImageField On = null; private ImageField Oo = null; private List Op = null; private List Oq = null; private List Or = null; public d(IdExtractionParameters idExtractionParameters) { this.Oc = idExtractionParameters; } @Override // com.kofax.mobile.sdk.e.a public void a(Exception exc) { this.Oe.add(exc); } @Override // com.kofax.mobile.sdk.e.a public void b(Exception exc) { this.Of.add(exc); } @Override // com.kofax.mobile.sdk.e.a public boolean isProcessed() { return this.Oc.isProcessed(); } @Override // com.kofax.mobile.sdk.e.a public String ht() { return this.Oc.getIdType() == IdType.Passport ? com.kofax.mobile.sdk.e.a.vM : this.Oc.getProjectName(); } @Override // com.kofax.mobile.sdk.e.a public IIdExtractionListener getExtractionListener() { return this.Oc.getExtractionListener(); } @Override // com.kofax.mobile.sdk.e.a public IIdImageProcessingListener getImageProcessingListener() { return this.Oc.getImageProcessingListener(); } @Override // com.kofax.mobile.sdk.e.a public AggregateException hA() { Exception listOfException; Exception listOfException2; do { } while (this.Oe.remove((Object) null)); if (this.Oe.size() == 1) { listOfException = this.Oe.get(0); } else { listOfException = this.Oe.size() > 1 ? new ListOfException(this.Oe) : null; } do { } while (this.Of.remove((Object) null)); if (this.Of.size() == 1) { listOfException2 = this.Of.get(0); } else { listOfException2 = this.Of.size() > 1 ? new ListOfException(this.Of) : null; } if (listOfException == null && listOfException2 == null) { return null; } return new AggregateException(listOfException, listOfException2); } @Override // com.kofax.mobile.sdk.e.a public List hC() { return this.Oc.getBackBarcodes(); } @Override // com.kofax.mobile.sdk.e.a public List hE() { return this.Oc.getFrontBarcodes(); } @Override // com.kofax.mobile.sdk.e.a public List> hH() { return Arrays.asList(this.Oq); } @Override // com.kofax.mobile.sdk.e.a public List> hI() { return Arrays.asList(this.Or); } @Override // com.kofax.mobile.sdk.e.a public void o(boolean z) { this.NP = this.NP || z; } @Override // com.kofax.mobile.sdk.e.a public void n(boolean z) { this.NO = z | this.NO; } @Override // com.kofax.mobile.sdk.e.a public void j(List list) { this.Op = list; } @Override // com.kofax.mobile.sdk.e.a public boolean isOcrRead() { return this.NP; } @Override // com.kofax.mobile.sdk.e.a public boolean isBarcodeRead() { return this.NO; } @Override // com.kofax.mobile.sdk.e.a public void i(List list) { this.Or = list; } @Override // com.kofax.mobile.sdk.e.a public List hz() { return this.Od; } @Override // com.kofax.mobile.sdk.e.a public List hy() { return this.Ol; } @Override // com.kofax.mobile.sdk.e.a public List hx() { return this.Ok; } @Override // com.kofax.mobile.sdk.e.a public com.kofax.mobile.sdk.c.a hw() { return this.Oj; } @Override // com.kofax.mobile.sdk.e.a public com.kofax.mobile.sdk.c.a hv() { return this.Oi; } @Override // com.kofax.mobile.sdk.e.a public com.kofax.mobile.sdk.c.a hu() { return this.Oi; } @Override // com.kofax.mobile.sdk.e.a public b hs() { return this.Oh; } @Override // com.kofax.mobile.sdk.e.a public b hr() { return this.Og; } @Override // com.kofax.mobile.sdk.e.a public IdExtractionParameters hq() { return this.Oc; } @Override // com.kofax.mobile.sdk.e.a public List hG() { return this.Op; } @Override // com.kofax.mobile.sdk.e.a public List> hF() { return this.Os; } @Override // com.kofax.mobile.sdk.e.a public List> hD() { return this.Ot; } @Override // com.kofax.mobile.sdk.e.a public List hB() { return this.Om; } @Override // com.kofax.mobile.sdk.e.a public void h(List list) { this.Oq = list; } @Override // com.kofax.mobile.sdk.e.a public ImageField getSignatureImageField() { return this.Oo; } @Override // com.kofax.mobile.sdk.e.a public ImageField getFaceImageField() { return this.On; } @Override // com.kofax.mobile.sdk.e.a public double getDocumentVerificationConfidenceRating() { return this.Ou; } @Override // com.kofax.mobile.sdk.e.a public void g(List> list) { this.Os = list; } @Override // com.kofax.mobile.sdk.e.a public void f(List> list) { this.Ot = list; } @Override // com.kofax.mobile.sdk.e.a public void e(List list) { this.Om = list; } @Override // com.kofax.mobile.sdk.e.a public void d(List list) { this.Od = list; } @Override // com.kofax.mobile.sdk.e.a public void d(double d) { this.Ou = d; } @Override // com.kofax.mobile.sdk.e.a public void c(List list) { this.Ol = list; } @Override // com.kofax.mobile.sdk.e.a public void b(List list) { this.Ok = list; } @Override // com.kofax.mobile.sdk.e.a public void b(b bVar) { this.Oh = bVar; } @Override // com.kofax.mobile.sdk.e.a public void b(ImageField imageField) { this.Oo = imageField; } @Override // com.kofax.mobile.sdk.e.a public void b(com.kofax.mobile.sdk.c.a aVar) { this.Oj = aVar; } @Override // com.kofax.mobile.sdk.e.a public void a(b bVar) { this.Og = bVar; } @Override // com.kofax.mobile.sdk.e.a public void a(ImageField imageField) { this.On = imageField; } @Override // com.kofax.mobile.sdk.e.a public void a(com.kofax.mobile.sdk.c.a aVar) { this.Oi = aVar; } }