package com.kofax.mobile.sdk.w; import bolts.CancellationToken; import com.kofax.mobile.sdk.capture.model.FieldLocation; import com.kofax.mobile.sdk.extract.id.DataField; import java.util.List; import o.InterfaceC13391fZD; /* loaded from: classes3.dex */ public class v extends ae { private static final String PC = "FullName"; private static final String PD = "LastName"; private static final String Qd = "Philippines (PHL) Driver License (2001)"; private final com.kofax.mobile.sdk._internal.extraction.id.e Lu; @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 v(com.kofax.mobile.sdk._internal.extraction.id.e eVar) { this.Lu = eVar; } @Override // com.kofax.mobile.sdk.w.ae public void a(com.kofax.mobile.sdk.e.a aVar) { if (Qd.equals(c(aVar.hv()))) { DataField g = g(PD, aVar.hB()); DataField g2 = g(PC, aVar.hG()); if (g == null || g2 == null) { return; } aVar.hG().remove(g2); aVar.hG().add(d(g, g2)); } } static DataField d(DataField dataField, DataField dataField2) { return new DataField(dataField2.getName(), E(dataField.getObject(), dataField2.getObject()), dataField.getConfidence(), FieldLocation.UNDEFINED); } private DataField g(String str, List list) { if (list == null) { return null; } return this.Lu.a(str, list); } private static String c(com.kofax.mobile.sdk.c.a aVar) { if (aVar == null) { return null; } return aVar.getClassId(); } private static String E(String str, String str2) { if (str == null) { str = ""; } if (str2 == null) { str2 = ""; } if (str2.isEmpty()) { return str; } if (str.isEmpty()) { return str2; } StringBuilder sb = new StringBuilder(); sb.append(str); sb.append(", "); sb.append(str2); return sb.toString(); } }