package o; import com.scb.phone.domain.entity.mwpartner.EntityMappingException; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; /* loaded from: classes3.dex */ public final class xYl extends ZTC { @InterfaceC13391fZD public xYl() { } public static String i(String str) { String str2 = str; if (str2 == null || str2.length() == 0) { throw new EntityMappingException("data must not be null or empty"); } return str; } public static Pgp e(Ssq ssq) { if (ssq == null) { throw new EntityMappingException("data must not be null or empty"); } String str = ssq.a; String str2 = str; if (str2 == null || str2.length() == 0) { throw new EntityMappingException("data must not be null or empty"); } String str3 = ssq.e; String str4 = str3; if (str4 != null && str4.length() != 0) { return new Pgp(str, str3); } throw new EntityMappingException("data must not be null or empty"); } public static OeP b(nQk nqk) { List list; if (nqk == null || (list = nqk.b) == null || list.isEmpty()) { throw new EntityMappingException("data must not be null or empty"); } List list2 = nqk.b; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { arrayList.add(e((Ssq) it.next())); } return new OeP(arrayList); } public static SOJ a(nHj nhj) { return new SOJ(nhj != null ? nhj.d : null); } }