package com.kofax.mobile.sdk.capture.id; import com.kofax.mobile.sdk._internal.extraction.IDataUnitProcessedListener; import com.kofax.mobile.sdk._internal.extraction.IExceptionResponseDeserializer; import com.kofax.mobile.sdk.capture.extraction.ExceptionResponse; import com.kofax.mobile.sdk.capture.extraction.Extractor; import com.kofax.mobile.sdk.capture.extraction.ExtractorResponse; import com.kofax.mobile.sdk.capture.id.IdParameters; import com.kofax.mobile.sdk.capture.model.Id; import com.kofax.mobile.sdk.capture.parameter.ExtractionParameters; import com.kofax.mobile.sdk.extract.id.IdRegion; import io.beid.beidk.definitions.LivenessStatus; import java.util.HashMap; import java.util.Map; import o.InterfaceC13390fZB; import o.InterfaceC13391fZD; /* loaded from: classes3.dex */ public class IdExtractor extends Extractor implements IDataUnitProcessedListener { public static final String ID_EXTRACT_KTA = "_id_extract_kta_"; public static final String ID_EXTRACT_ON_DEVICE = "_id_extract_on_device_"; public static final String ID_EXTRACT_RTTI = "_id_extract_rtti_"; static final Map acB = new HashMap() { // from class: com.kofax.mobile.sdk.capture.id.IdExtractor.1 { put(IdRegion.US, "United States"); put(IdRegion.CANADA, "Canada"); put(IdRegion.AFRICA, "Africa"); put(IdRegion.ASIA, "Asia"); put(IdRegion.AUSTRALIA, "Australia"); put(IdRegion.EUROPE, "Europe"); put(IdRegion.LATIN_AMERICA, "Latin America"); } }; static final Map acC = new HashMap() { // from class: com.kofax.mobile.sdk.capture.id.IdExtractor.2 { put(IdParameters.IdState.CAMEROON, "1350"); put(IdParameters.IdState.CHINA, "470"); put(IdParameters.IdState.INDIA, "850"); put(IdParameters.IdState.SINGAPORE, "180"); put(IdParameters.IdState.SOUTH_KOREA, "2220"); put(IdParameters.IdState.KEY_PASS, LivenessStatus.ERROR_UNKNOW); put(IdParameters.IdState.ALBANIA, "1010"); put(IdParameters.IdState.GERMANY, "140"); put(IdParameters.IdState.LITHUANIA, "19"); put(IdParameters.IdState.LUXEMBOURG, "220"); put(IdParameters.IdState.BRAZIL, "130"); put(IdParameters.IdState.ECUADOR, "710"); put(IdParameters.IdState.EL_SALVADOR, "380"); put(IdParameters.IdState.GUATEMALA, "370"); put(IdParameters.IdState.ST_CHRIST_NEVIS, "1000"); put(IdParameters.IdState.JAPAN, "2100"); } }; @InterfaceC13390fZB(a = ID_EXTRACT_RTTI) @InterfaceC13391fZD IExceptionResponseDeserializer ZB; @InterfaceC13390fZB(a = ID_EXTRACT_KTA) @InterfaceC13391fZD String ZC; @InterfaceC13390fZB(a = ID_EXTRACT_KTA) @InterfaceC13391fZD IExceptionResponseDeserializer ZF; @InterfaceC13390fZB(a = ID_EXTRACT_RTTI) @InterfaceC13391fZD String Zy; @InterfaceC13390fZB(a = ID_EXTRACT_RTTI) @InterfaceC13391fZD IIdExtractionServer acD; @InterfaceC13390fZB(a = ID_EXTRACT_RTTI) @InterfaceC13391fZD IIdDeserializer acE; @InterfaceC13390fZB(a = ID_EXTRACT_KTA) @InterfaceC13391fZD IIdExtractionServer acF; @InterfaceC13390fZB(a = ID_EXTRACT_KTA) @InterfaceC13391fZD IIdDeserializer acG; private String acH = null; @InterfaceC13390fZB(a = ID_EXTRACT_ON_DEVICE) @InterfaceC13391fZD IIdExtractionServer acI; @InterfaceC13390fZB(a = ID_EXTRACT_ON_DEVICE) @InterfaceC13391fZD IIdDeserializer acJ; @InterfaceC13390fZB(a = ID_EXTRACT_ON_DEVICE) @InterfaceC13391fZD IExceptionResponseDeserializer acK; @InterfaceC13391fZD public IdExtractor() { } public void setParameters(IdParameters idParameters) { if (IdParameters.IdState.NOT_SPECIFIED.equals(idParameters.state)) { idParameters.state = IdParameters.IdState.UNITED_STATES; } super.setParameters(idParameters.getExtractionParameters()); int i = AnonymousClass3.Yh[idParameters.getExtractionParameters().getExtractionType().ordinal()]; if (i == 1) { d(idParameters); } else if (i == 2) { c(idParameters); } else if (i == 3) { b(idParameters); } } /* renamed from: com.kofax.mobile.sdk.capture.id.IdExtractor$3, reason: invalid class name */ /* loaded from: classes3.dex */ static /* synthetic */ class AnonymousClass3 { static final int[] Yh; static { int[] iArr = new int[ExtractionParameters.ExtractionType.values().length]; Yh = iArr; try { iArr[ExtractionParameters.ExtractionType.RTTI.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { Yh[ExtractionParameters.ExtractionType.KTA.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { Yh[ExtractionParameters.ExtractionType.ON_DEVICE.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } } } private void b(IdParameters idParameters) { this.acI.setParameters(idParameters.getExtractionParameters()); this.acI.setIdParameters(idParameters); setExtractionServer(this.acI); setResultDeserializer(this.acJ); setExceptionResponseDeserializer(this.acK); } private void c(IdParameters idParameters) { this.acF.setParameters(idParameters.getExtractionParameters()); this.acF.setIdParameters(idParameters); setExtractionServer(this.acF); setResultDeserializer(this.acG); setExceptionResponseDeserializer(this.ZF); } private void d(IdParameters idParameters) { this.acD.setParameters(idParameters.getExtractionParameters()); this.acD.setIdParameters(idParameters); setExtractionServer(this.acD); setResultDeserializer(this.acE); setExceptionResponseDeserializer(this.ZB); } /* JADX INFO: Access modifiers changed from: protected */ @Override // com.kofax.mobile.sdk.capture.extraction.Extractor public ExtractorResponse createResponse(Id id, ExceptionResponse exceptionResponse) { return new IdExtractorResponse(id, exceptionResponse); } @Override // com.kofax.mobile.sdk.capture.extraction.Extractor public String getDefaultServerUrl(ExtractionParameters.ExtractionType extractionType) { return ExtractionParameters.ExtractionType.RTTI.equals(extractionType) ? this.Zy : ExtractionParameters.ExtractionType.KTA.equals(extractionType) ? this.ZC : this.acH; } }