what-the-bank/sources/o/YKc.java

161 lines
5.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/* loaded from: classes3.dex */
public final class YKc implements hnp {
private final Kvt a;
@InterfaceC13391fZD
public YKc(Kvt kvt) {
C14957gcv.e(kvt, "");
this.a = kvt;
}
/* loaded from: classes3.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<otm>, Nlt> {
public static final Sts e = new Sts();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ Nlt invoke(SingleDataEntity<otm> singleDataEntity) {
otm data = singleDataEntity.getData();
Integer num = data.b;
if (num != null) {
int intValue = num.intValue();
List<C16970snz> list = data.e;
if (list != null) {
List<C16970snz> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (C16970snz c16970snz : list2) {
String str = c16970snz.e;
if (str == null) {
throw new EntityMappingException("coBorrowerId can not be null");
}
Integer num2 = c16970snz.d;
if (num2 != null) {
arrayList.add(new XcE(str, num2.intValue(), c16970snz.a, c16970snz.b, c16970snz.c));
} else {
throw new EntityMappingException("sortSequence can not be null");
}
}
return new Nlt(intValue, arrayList);
}
throw new EntityMappingException("coBorrower can not be null");
}
throw new EntityMappingException("maxCoBorrower can not be null");
}
Sts() {
super(1);
}
}
@Override // o.hnp
public final AbstractC13175fSw<Nlt> c(oSk osk) {
C14957gcv.e(osk, "");
Kvt kvt = this.a;
C14957gcv.e(osk, "");
AbstractC13175fSw<SingleDataEntity<otm>> postInquiryCoBorrower = kvt.e.postInquiryCoBorrower(osk);
final Sts sts = Sts.e;
C13372fYk c13372fYk = new C13372fYk(postInquiryCoBorrower, new fSS(sts) { // from class: o.tBR
private InterfaceC14894gbR c;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.c;
C14957gcv.e(interfaceC14894gbR, "");
return (Nlt) interfaceC14894gbR.invoke(obj);
}
{
this.c = sts;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* loaded from: classes3.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<C16562pOe, Boolean> {
public static final HBt a = new HBt();
@Override // o.InterfaceC14894gbR
public final /* bridge */ /* synthetic */ Boolean invoke(C16562pOe c16562pOe) {
return Boolean.TRUE;
}
HBt() {
super(1);
}
}
@Override // o.hnp
public final AbstractC13175fSw<Boolean> d(C16553pKY c16553pKY) {
C14957gcv.e(c16553pKY, "");
Kvt kvt = this.a;
C14957gcv.e(c16553pKY, "");
AbstractC13175fSw<C16562pOe> postCoBorrower = kvt.e.postCoBorrower(c16553pKY);
final HBt hBt = HBt.a;
C13372fYk c13372fYk = new C13372fYk(postCoBorrower, new fSS(hBt) { // from class: o.MTr
private InterfaceC14894gbR c;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.c;
C14957gcv.e(interfaceC14894gbR, "");
return (Boolean) interfaceC14894gbR.invoke(obj);
}
{
this.c = hBt;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* loaded from: classes3.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<C16562pOe, Boolean> {
public static final RVV a = new RVV();
@Override // o.InterfaceC14894gbR
public final /* bridge */ /* synthetic */ Boolean invoke(C16562pOe c16562pOe) {
return Boolean.TRUE;
}
RVV() {
super(1);
}
}
@Override // o.hnp
public final AbstractC13175fSw<Boolean> e(HAZ haz) {
C14957gcv.e(haz, "");
Kvt kvt = this.a;
C14957gcv.e(haz, "");
AbstractC13175fSw<C16562pOe> deleteCoBorrower = kvt.e.deleteCoBorrower(haz);
final RVV rvv = RVV.a;
C13372fYk c13372fYk = new C13372fYk(deleteCoBorrower, new fSS(rvv) { // from class: o.lSG
private InterfaceC14894gbR b;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.b;
C14957gcv.e(interfaceC14894gbR, "");
return (Boolean) interfaceC14894gbR.invoke(obj);
}
{
this.b = rvv;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
}