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

211 lines
7.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import com.scb.phone.data.network.service.PartnerDiscoverWebViewService;
import java.util.List;
import okhttp3.RequestBody;
/* renamed from: o.veh, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17303veh implements jeB {
final HDS b;
final Gson c;
private final PartnerDiscoverWebViewService d;
@InterfaceC13391fZD
public C17303veh(PartnerDiscoverWebViewService partnerDiscoverWebViewService, HDS hds, Gson gson) {
C14957gcv.e(partnerDiscoverWebViewService, "");
C14957gcv.e(hds, "");
C14957gcv.e(gson, "");
this.d = partnerDiscoverWebViewService;
this.b = hds;
this.c = gson;
}
/* renamed from: o.veh$LWm */
/* loaded from: classes3.dex */
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<JsonObject, String> {
private C17303veh c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ String invoke(JsonObject jsonObject) {
return this.c.c.toJson((JsonElement) jsonObject);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
LWm(C17303veh c17303veh) {
super(1);
this.c = c17303veh;
}
}
@Override // o.jeB
public final AbstractC13175fSw<String> a(RequestBody requestBody) {
C14957gcv.e(requestBody, "");
AbstractC13175fSw<JsonObject> fundData = this.d.getFundData(requestBody);
final LWm lWm = new LWm(this);
C13372fYk c13372fYk = new C13372fYk(fundData, new fSS(lWm) { // from class: o.kfA
private InterfaceC14894gbR a;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.a;
C14957gcv.e(interfaceC14894gbR, "");
return (String) interfaceC14894gbR.invoke(obj);
}
{
this.a = lWm;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.veh$IeS */
/* loaded from: classes3.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<JsonObject, String> {
private C17303veh c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ String invoke(JsonObject jsonObject) {
return this.c.c.toJson((JsonElement) jsonObject);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(C17303veh c17303veh) {
super(1);
this.c = c17303veh;
}
}
@Override // o.jeB
public final AbstractC13175fSw<String> b(RequestBody requestBody) {
C14957gcv.e(requestBody, "");
AbstractC13175fSw<JsonObject> historicalData = this.d.getHistoricalData(requestBody);
final IeS ieS = new IeS(this);
C13372fYk c13372fYk = new C13372fYk(historicalData, new fSS(ieS) { // from class: o.thz
private InterfaceC14894gbR b;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.b;
C14957gcv.e(interfaceC14894gbR, "");
return (String) interfaceC14894gbR.invoke(obj);
}
{
this.b = ieS;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.veh$HBt */
/* loaded from: classes3.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<C16923sSF>, C16174ltE> {
private C17303veh c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C16174ltE invoke(SingleDataEntity<C16923sSF> singleDataEntity) {
KJx kJx;
cIM cim;
HDS hds = this.c.b;
C16923sSF data = singleDataEntity.getData();
C14957gcv.c(data, "");
C16923sSF c16923sSF = data;
C14957gcv.e(c16923sSF, "");
Boolean bool = c16923sSF.c;
boolean booleanValue = bool != null ? bool.booleanValue() : false;
Boolean bool2 = c16923sSF.e;
boolean booleanValue2 = bool2 != null ? bool2.booleanValue() : false;
Gex gex = c16923sSF.d;
if (gex != null) {
lZT lzt = hds.e;
kJx = lZT.d(gex);
} else {
kJx = null;
}
List<DmS> list = c16923sSF.a;
List<IJP> d = list != null ? hds.b.d(list) : null;
List<QII> list2 = c16923sSF.b;
if (list2 == null || !(!list2.isEmpty())) {
cim = null;
} else {
SKo sKo = hds.a;
cim = SKo.c(list2.get(0));
}
return new C16174ltE(booleanValue, booleanValue2, kJx, d, cim);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(C17303veh c17303veh) {
super(1);
this.c = c17303veh;
}
}
@Override // o.jeB
public final AbstractC13175fSw<C16174ltE> c(P p) {
C14957gcv.e(p, "");
AbstractC13175fSw<SingleDataEntity<C16923sSF>> investFund = this.d.getInvestFund(p);
final HBt hBt = new HBt(this);
C13372fYk c13372fYk = new C13372fYk(investFund, new fSS(hBt) { // from class: o.VgH
private InterfaceC14894gbR a;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.a;
C14957gcv.e(interfaceC14894gbR, "");
return (C16174ltE) interfaceC14894gbR.invoke(obj);
}
{
this.a = hBt;
}
});
final RVV rvv = new RVV(this);
C13369fYh c13369fYh = new C13369fYh(c13372fYk, new fSQ(rvv) { // from class: o.AWk
private InterfaceC14894gbR a;
@Override // o.fSQ
public final void c(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.a;
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
{
this.a = rvv;
}
});
C14957gcv.c(c13369fYh, "");
return c13369fYh;
}
/* renamed from: o.veh$RVV */
/* loaded from: classes3.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<C16174ltE, C14866gag> {
private C17303veh e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C16174ltE c16174ltE) {
C16174ltE c16174ltE2 = c16174ltE;
HDS hds = this.e.b;
C14957gcv.c(c16174ltE2, "");
HDS.b(c16174ltE2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(C17303veh c17303veh) {
super(1);
this.e = c17303veh;
}
}
}