288 lines
10 KiB
Java
288 lines
10 KiB
Java
|
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.Collections;
|
||
|
import java.util.List;
|
||
|
import o.syi;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class VCh implements oZA {
|
||
|
private final nuN a;
|
||
|
private final IaG b;
|
||
|
private final String c;
|
||
|
private final C12432eyB d;
|
||
|
private final syi e;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public VCh(nuN nun, syi syiVar, C12432eyB c12432eyB, IaG iaG, String str) {
|
||
|
C14957gcv.e(nun, "");
|
||
|
C14957gcv.e(syiVar, "");
|
||
|
C14957gcv.e(c12432eyB, "");
|
||
|
C14957gcv.e(iaG, "");
|
||
|
C14957gcv.e(str, "");
|
||
|
this.a = nun;
|
||
|
this.e = syiVar;
|
||
|
this.d = c12432eyB;
|
||
|
this.b = iaG;
|
||
|
this.c = str;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<MfD>, MfD> {
|
||
|
public static final IeS a = new IeS();
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ MfD invoke(SingleDataEntity<MfD> singleDataEntity) {
|
||
|
return singleDataEntity.getData();
|
||
|
}
|
||
|
|
||
|
IeS() {
|
||
|
super(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.oZA
|
||
|
public final AbstractC13175fSw<oMb> c(gYp gyp) {
|
||
|
C14957gcv.e(gyp, "");
|
||
|
nuN nun = this.a;
|
||
|
String str = this.c;
|
||
|
C14957gcv.e(gyp, "");
|
||
|
AbstractC13175fSw<SingleDataEntity<MfD>> transaction = nun.d.getTransaction(gyp, str);
|
||
|
final IeS ieS = IeS.a;
|
||
|
C13372fYk c13372fYk = new C13372fYk(transaction, new fSS(ieS) { // from class: o.xKo
|
||
|
private InterfaceC14894gbR c;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
InterfaceC14894gbR interfaceC14894gbR = this.c;
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
return (MfD) interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = ieS;
|
||
|
}
|
||
|
});
|
||
|
final saX sax = new saX(this.e);
|
||
|
C13372fYk c13372fYk2 = new C13372fYk(c13372fYk, new fSS(sax) { // from class: o.cwU
|
||
|
private InterfaceC14894gbR b;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
InterfaceC14894gbR interfaceC14894gbR = this.b;
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
return (oMb) interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = sax;
|
||
|
}
|
||
|
});
|
||
|
C14957gcv.c(c13372fYk2, "");
|
||
|
return c13372fYk2;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
final /* synthetic */ class saX extends C14954gcs implements InterfaceC14894gbR<MfD, oMb> {
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ oMb invoke(MfD mfD) {
|
||
|
String str;
|
||
|
String str2;
|
||
|
MfD mfD2 = mfD;
|
||
|
C14957gcv.e(mfD2, "");
|
||
|
C14957gcv.e(mfD2, "");
|
||
|
List<C0921Rpq> list = mfD2.c;
|
||
|
if (list == null || list.isEmpty() || (str = mfD2.a) == null || str.length() == 0 || (str2 = mfD2.b) == null || str2.length() == 0) {
|
||
|
throw new EntityMappingException("data must not be null or empty");
|
||
|
}
|
||
|
List<C0921Rpq> list2 = mfD2.c;
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
if (list2 != null) {
|
||
|
for (C0921Rpq c0921Rpq : list2) {
|
||
|
ArrayList arrayList2 = arrayList;
|
||
|
Double d = c0921Rpq.i;
|
||
|
double doubleValue = d != null ? d.doubleValue() : 0.0d;
|
||
|
String str3 = c0921Rpq.a;
|
||
|
String str4 = str3 == null ? "" : str3;
|
||
|
String str5 = c0921Rpq.f;
|
||
|
String str6 = str5 == null ? "" : str5;
|
||
|
String str7 = c0921Rpq.h;
|
||
|
String str8 = str7 == null ? "" : str7;
|
||
|
String str9 = c0921Rpq.d;
|
||
|
String str10 = str9 == null ? "" : str9;
|
||
|
Integer num = c0921Rpq.j;
|
||
|
int intValue = num != null ? num.intValue() : 0;
|
||
|
Double d2 = c0921Rpq.e;
|
||
|
double doubleValue2 = d2 != null ? d2.doubleValue() : 0.0d;
|
||
|
Integer num2 = c0921Rpq.b;
|
||
|
int intValue2 = num2 != null ? num2.intValue() : 0;
|
||
|
Integer num3 = c0921Rpq.g;
|
||
|
int intValue3 = num3 != null ? num3.intValue() : 0;
|
||
|
Integer num4 = c0921Rpq.c;
|
||
|
arrayList2.add(new TXk(str4, str10, doubleValue2, intValue2, intValue3, intValue, str6, doubleValue, str8, num4 != null ? num4.intValue() : 0));
|
||
|
}
|
||
|
ArrayList arrayList3 = arrayList;
|
||
|
if (arrayList3.size() > 1) {
|
||
|
syi.RVV rvv = new syi.RVV();
|
||
|
C14957gcv.e(arrayList3, "");
|
||
|
C14957gcv.e(rvv, "");
|
||
|
if (arrayList3.size() > 1) {
|
||
|
Collections.sort(arrayList3, rvv);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
ArrayList arrayList4 = arrayList;
|
||
|
String str11 = mfD2.a;
|
||
|
if (str11 == null) {
|
||
|
str11 = "";
|
||
|
}
|
||
|
Integer num5 = mfD2.e;
|
||
|
int intValue4 = num5 != null ? num5.intValue() : 0;
|
||
|
String str12 = mfD2.b;
|
||
|
return new oMb(arrayList4, str11, intValue4, str12 != null ? str12 : "");
|
||
|
}
|
||
|
|
||
|
saX(Object obj) {
|
||
|
super(1, obj, syi.class, "transform", "transform(Lcom/scb/phone/data/entity/ccrredemption/pointtopay/PointToPayTransactionEntity;)Lcom/scb/phone/domain/entity/ccrredemption/pointtopay/PointToPayTransaction;");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<zmk>, zmk> {
|
||
|
public static final HBt a = new HBt();
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ zmk invoke(SingleDataEntity<zmk> singleDataEntity) {
|
||
|
return singleDataEntity.getData();
|
||
|
}
|
||
|
|
||
|
HBt() {
|
||
|
super(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.oZA
|
||
|
public final AbstractC13175fSw<OFV> d(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
nuN nun = this.a;
|
||
|
C14957gcv.e(str, "");
|
||
|
AbstractC13175fSw<SingleDataEntity<zmk>> cardDataFromDeepLinkId = nun.d.getCardDataFromDeepLinkId(str);
|
||
|
final HBt hBt = HBt.a;
|
||
|
C13372fYk c13372fYk = new C13372fYk(cardDataFromDeepLinkId, new fSS(hBt) { // from class: o.Cpw
|
||
|
private InterfaceC14894gbR b;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
InterfaceC14894gbR interfaceC14894gbR = this.b;
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
return (zmk) interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = hBt;
|
||
|
}
|
||
|
});
|
||
|
final Sts sts = new Sts(this.d);
|
||
|
C13372fYk c13372fYk2 = new C13372fYk(c13372fYk, new fSS(sts) { // from class: o.LAt
|
||
|
private InterfaceC14894gbR a;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
InterfaceC14894gbR interfaceC14894gbR = this.a;
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
return (OFV) interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = sts;
|
||
|
}
|
||
|
});
|
||
|
C14957gcv.c(c13372fYk2, "");
|
||
|
return c13372fYk2;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
final /* synthetic */ class Sts extends C14954gcs implements InterfaceC14894gbR<zmk, OFV> {
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ OFV invoke(zmk zmkVar) {
|
||
|
zmk zmkVar2 = zmkVar;
|
||
|
C14957gcv.e(zmkVar2, "");
|
||
|
return C12432eyB.d(zmkVar2);
|
||
|
}
|
||
|
|
||
|
Sts(Object obj) {
|
||
|
super(1, obj, C12432eyB.class, "transform", "transform(Lcom/scb/phone/data/entity/ccrredemption/pointtopay/PointToPayNotificationDeepLinkEntity;)Lcom/scb/phone/domain/entity/ccrredemption/pointtopay/PointToPayDeepLinkTransaction;");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<mtF>, mtF> {
|
||
|
public static final RVV e = new RVV();
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ mtF invoke(SingleDataEntity<mtF> singleDataEntity) {
|
||
|
return singleDataEntity.getData();
|
||
|
}
|
||
|
|
||
|
RVV() {
|
||
|
super(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.oZA
|
||
|
public final AbstractC13175fSw<nCP> a(sQR sqr) {
|
||
|
C14957gcv.e(sqr, "");
|
||
|
nuN nun = this.a;
|
||
|
C14957gcv.e(sqr, "");
|
||
|
AbstractC13175fSw<SingleDataEntity<mtF>> confirmRedemption = nun.d.getConfirmRedemption(sqr);
|
||
|
final RVV rvv = RVV.e;
|
||
|
C13372fYk c13372fYk = new C13372fYk(confirmRedemption, new fSS(rvv) { // from class: o.BkS
|
||
|
private InterfaceC14894gbR d;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
InterfaceC14894gbR interfaceC14894gbR = this.d;
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
return (mtF) interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = rvv;
|
||
|
}
|
||
|
});
|
||
|
final LWm lWm = new LWm(this.b);
|
||
|
C13372fYk c13372fYk2 = new C13372fYk(c13372fYk, new fSS(lWm) { // from class: o.iwW
|
||
|
private InterfaceC14894gbR b;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
InterfaceC14894gbR interfaceC14894gbR = this.b;
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
return (nCP) interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = lWm;
|
||
|
}
|
||
|
});
|
||
|
C14957gcv.c(c13372fYk2, "");
|
||
|
return c13372fYk2;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
final /* synthetic */ class LWm extends C14954gcs implements InterfaceC14894gbR<mtF, nCP> {
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ nCP invoke(mtF mtf) {
|
||
|
mtF mtf2 = mtf;
|
||
|
C14957gcv.e(mtf2, "");
|
||
|
return IaG.b(mtf2);
|
||
|
}
|
||
|
|
||
|
LWm(Object obj) {
|
||
|
super(1, obj, IaG.class, "transform", "transform(Lcom/scb/phone/data/entity/ccrredemption/pointtopay/PointToPayConfirmEntity;)Lcom/scb/phone/domain/entity/ccrredemption/pointtopay/PointToPayConfirm;");
|
||
|
}
|
||
|
}
|
||
|
}
|