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

215 lines
6.6 KiB
Java

package o;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import o.C11182eaX;
import o.C5541bux;
import o.QVs;
import o.wNS;
import org.threeten.bp.OffsetDateTime;
/* loaded from: classes3.dex */
public final class gsM implements saN {
final Xzn a;
final yJg b;
private final C2971aog c;
final Vgd d;
final C15879jOw e;
private final C11728ekn f;
private final FGU g;
private final String j;
@InterfaceC13391fZD
public gsM(C2971aog c2971aog, yJg yjg, FGU fgu, Xzn xzn, C15879jOw c15879jOw, Vgd vgd, C11728ekn c11728ekn, String str) {
this.c = c2971aog;
this.b = yjg;
this.g = fgu;
this.a = xzn;
this.e = c15879jOw;
this.d = vgd;
this.f = c11728ekn;
this.j = str;
}
@Override // o.saN
public final AbstractC13163fSk<wNS> e(OOZ ooz) {
return this.c.d.getBondSelectionList(ooz).map(new fSS(this) { // from class: o.akB
private gsM a;
@Override // o.fSS
public final Object a(Object obj) {
yJg yjg = this.a.b;
imS ims = (imS) ((SingleDataEntity) obj).getData();
C14957gcv.e(ims, "");
wNS.IeS ieS = new wNS.IeS((byte) 0);
ieS.d = ims.b;
List<C16306nMa> list = ims.a;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (C16306nMa c16306nMa : list) {
C11182eaX.Sts sts = new C11182eaX.Sts((byte) 0);
sts.a = c16306nMa.c;
sts.c = c16306nMa.d;
sts.d = c16306nMa.b;
sts.j = c16306nMa.i;
sts.e = c16306nMa.e;
sts.i = c16306nMa.f;
sts.d = c16306nMa.b;
sts.f = c16306nMa.j;
sts.b = (OffsetDateTime) ZTC.e(new Object[]{c16306nMa.a, null}, 267499366, -267499366, (int) System.currentTimeMillis());
arrayList.add(new C11182eaX(sts, (byte) 0));
}
ieS.a = arrayList;
wNS wns = new wNS(ieS, (byte) 0);
C14957gcv.c(wns, "");
return wns;
}
{
this.a = this;
}
});
}
@Override // o.saN
public final AbstractC13163fSk<gVi> c() {
AbstractC13163fSk<String> bondTermsAndConditions = this.c.e.getBondTermsAndConditions();
FGU fgu = this.g;
Objects.requireNonNull(fgu);
return bondTermsAndConditions.map(new sor(fgu));
}
@Override // o.saN
public final AbstractC13163fSk<gVi> c(String str) {
AbstractC13163fSk<String> bondDltTermsAndConditions = this.c.e.getBondDltTermsAndConditions(str);
FGU fgu = this.g;
Objects.requireNonNull(fgu);
return bondDltTermsAndConditions.map(new sor(fgu));
}
@Override // o.saN
public final AbstractC13163fSk<QVs> e(C1000TiG c1000TiG) {
return this.c.d.getBondAccountSummary(c1000TiG).map(new fSS(this) { // from class: o.fog
private gsM a;
@Override // o.fSS
public final Object a(Object obj) {
Xzn xzn = this.a.a;
LUs lUs = (LUs) ((SingleDataEntity) obj).getData();
C14957gcv.e(lUs, "");
QVs.HBt hBt = new QVs.HBt();
List<ZWV> list = lUs.a;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (ZWV zwv : list) {
C5541bux.RVV rvv = new C5541bux.RVV();
rvv.a = Integer.parseInt(zwv.a);
rvv.c = zwv.b;
rvv.d = zwv.c;
C5541bux c5541bux = new C5541bux(rvv, (byte) 0);
C14957gcv.c(c5541bux, "");
arrayList.add(c5541bux);
}
hBt.a = arrayList;
hBt.e = lUs.b;
hBt.b = lUs.e;
QVs qVs = new QVs(hBt, (byte) 0);
C14957gcv.c(qVs, "");
return qVs;
}
{
this.a = this;
}
});
}
@Override // o.saN
public final AbstractC13163fSk<krp> c(CYx cYx) {
return this.c.d.verifyPurchaseBond(cYx).map(new fSS(this) { // from class: o.zgp
private gsM e;
@Override // o.fSS
public final Object a(Object obj) {
C15879jOw c15879jOw = this.e.e;
return C15879jOw.b((nyd) ((SingleDataEntity) obj).getData());
}
{
this.e = this;
}
});
}
@Override // o.saN
public final AbstractC13163fSk<vAq> b(C17443wnt c17443wnt) {
return this.c.d.confirmPurchaseBond(c17443wnt).map(new fSS(this) { // from class: o.rZI
private gsM a;
@Override // o.fSS
public final Object a(Object obj) {
Vgd vgd = this.a.d;
return Vgd.c((C16250mhU) ((SingleDataEntity) obj).getData());
}
{
this.a = this;
}
});
}
@Override // o.saN
public final AbstractC13163fSk<krp> e(CYx cYx) {
return this.c.d.verifyPurchaseBondV2(cYx).map(new fSS(this) { // from class: o.jNu
private gsM a;
@Override // o.fSS
public final Object a(Object obj) {
C15879jOw c15879jOw = this.a.e;
return C15879jOw.b((nyd) ((SingleDataEntity) obj).getData());
}
{
this.a = this;
}
});
}
@Override // o.saN
public final AbstractC13163fSk<vAq> a(C17443wnt c17443wnt) {
return this.c.d.confirmPurchaseBondV2(c17443wnt).map(new fSS(this) { // from class: o.Xke
private gsM a;
@Override // o.fSS
public final Object a(Object obj) {
Vgd vgd = this.a.d;
return Vgd.c((C16250mhU) ((SingleDataEntity) obj).getData());
}
{
this.a = this;
}
});
}
@Override // o.saN
public final krp b() {
return this.f.a;
}
@Override // o.saN
public final void a(krp krpVar) {
C11728ekn c11728ekn = this.f;
C14957gcv.e(krpVar, "");
c11728ekn.a = krpVar;
}
@Override // o.saN
public final String a() {
return this.j;
}
}