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

1412 lines
50 KiB
Java

package o;
import android.text.TextUtils;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import o.C16355ngL;
import o.C16401nxI;
import o.PRA;
import o.UwO;
import org.threeten.bp.OffsetDateTime;
/* loaded from: classes3.dex */
public final class EfQ implements pQs {
private final C17282vWU A;
private final String C;
private final PVj D;
final tip a;
final C1105VsM b;
final KXi c;
final IKh d;
final lZT e;
final xgt f;
final Arl g;
final yot h;
final BYV i;
final YUR j;
final SKo k;
final myV l;
final JaP m;
final LUX n;
/* renamed from: o, reason: collision with root package name */
final orX f8150o;
final onj p;
final lpg q;
final C0763OUn r;
final CwK s;
final C7109ciA t;
private final BlS u;
private final File v;
final C15736iDx w;
final JGX x;
private final InterfaceC3521azC y;
private final MJH z;
@InterfaceC13391fZD
public EfQ(MJH mjh, BlS blS, tip tipVar, File file, PVj pVj, C1105VsM c1105VsM, orX orx, lZT lzt, KXi kXi, SKo sKo, myV myv, xgt xgtVar, LUX lux, CwK cwK, C0763OUn c0763OUn, C7109ciA c7109ciA, JaP jaP, JGX jgx, lpg lpgVar, yot yotVar, IKh iKh, onj onjVar, Arl arl, C17282vWU c17282vWU, YUR yur, BYV byv, C15736iDx c15736iDx, InterfaceC3521azC interfaceC3521azC, String str) {
this.z = mjh;
this.u = blS;
this.a = tipVar;
this.D = pVj;
this.b = c1105VsM;
this.f8150o = orx;
this.e = lzt;
this.c = kXi;
this.k = sKo;
this.l = myv;
this.f = xgtVar;
this.n = lux;
this.s = cwK;
this.r = c0763OUn;
this.t = c7109ciA;
this.m = jaP;
this.x = jgx;
this.q = lpgVar;
this.v = file;
this.h = yotVar;
this.d = iKh;
this.p = onjVar;
this.g = arl;
this.A = c17282vWU;
this.j = yur;
this.i = byv;
this.w = c15736iDx;
this.y = interfaceC3521azC;
this.C = str;
}
@Override // o.pQs
public final AbstractC13163fSk<Ibr> d(Wun wun, boolean z) {
if (z && this.a.f != null) {
return AbstractC13163fSk.just(c(this.a.f));
}
return this.z.d.getInvestmentSummary(wun).map(new fSS(this) { // from class: o.gWy
private EfQ d;
@Override // o.fSS
public final Object a(Object obj) {
EfQ efQ = this.d;
SingleDataEntity<gBy> singleDataEntity = (SingleDataEntity) obj;
efQ.a.f = singleDataEntity;
return efQ.c(singleDataEntity);
}
{
this.d = this;
}
});
}
@Override // o.pQs
public final void e() {
this.a.c();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Ibr c(SingleDataEntity<gBy> singleDataEntity) {
Ibr e = this.D.e(singleDataEntity.getData());
if (e.a != null && this.y.d(e.a.a)) {
e.a = null;
}
return e;
}
@Override // o.pQs
public final AbstractC13163fSk<C11805emK> g() {
return a(true);
}
@Override // o.pQs
public final AbstractC13163fSk<C11805emK> a(boolean z) {
if (z && this.a.b != null) {
return AbstractC13163fSk.just(this.b.e(this.a.b.getData()));
}
MJH mjh = this.z;
AbstractC13163fSk<SingleDataEntity<pAU>> doOnError = mjh.b.getDetails(C2462af.d(), this.C).doOnError(new fSQ(this) { // from class: o.BZX
private EfQ a;
@Override // o.fSQ
public final void c(Object obj) {
this.a.a.b = null;
}
{
this.a = this;
}
});
final tip tipVar = this.a;
Objects.requireNonNull(tipVar);
return doOnError.doOnNext(new fSQ(tipVar) { // from class: o.EYR
private tip a;
@Override // o.fSQ
public final void c(Object obj) {
this.a.b = (SingleDataEntity) obj;
}
{
this.a = tipVar;
}
}).flatMap(new fSS(this) { // from class: o.tht
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13163fSk.just(this.e.b.e((pAU) ((SingleDataEntity) obj).getData()));
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<C11805emK> d(final C2409ae c2409ae, final String str) {
if (this.a.b != null) {
return this.z.b.cancelFundTransaction(c2409ae).doOnNext(new fSQ(this, c2409ae, str) { // from class: o.DuF
private C2409ae a;
private EfQ b;
private String e;
@Override // o.fSQ
public final void c(Object obj) {
EfQ efQ = this.b;
final C2409ae c2409ae2 = this.a;
String str2 = this.e;
tip tipVar = efQ.a;
if ("1000".equals(((C16562pOe) obj).getStatus().e)) {
if ("A".equals(str2)) {
YKU yku = new YKU(tipVar.b.getData().e);
List list = (List) new YKU(yku.a, new GEP(yku.b, new Jel(c2409ae2) { // from class: o.hrZ
private C2409ae c;
@Override // o.Jel
public final boolean e(Object obj2) {
return !this.c.a.equals(((KjV) obj2).n);
}
{
this.c = c2409ae2;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
tipVar.b.getData().e = new ArrayList(list);
}
if ("T".equals(str2)) {
YKU yku2 = new YKU(tipVar.b.getData().j);
List list2 = (List) new YKU(yku2.a, new GEP(yku2.b, new Jel(c2409ae2) { // from class: o.Ysp
private C2409ae a;
@Override // o.Jel
public final boolean e(Object obj2) {
return !this.a.a.equals(((KjV) obj2).n);
}
{
this.a = c2409ae2;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
tipVar.b.getData().j = new ArrayList(list2);
}
}
}
{
this.b = this;
this.a = c2409ae;
this.e = str;
}
}).flatMap(new fSS(this) { // from class: o.yXS
private EfQ d;
@Override // o.fSS
public final Object a(Object obj) {
EfQ efQ = this.d;
return AbstractC13163fSk.just(efQ.b.e(efQ.a.b.getData()));
}
{
this.d = this;
}
});
}
MJH mjh = this.z;
return mjh.b.getDetails(C2462af.d(), this.C).flatMap(new fSS(this, c2409ae, str) { // from class: o.scK
private EfQ a;
private C2409ae d;
private String e;
@Override // o.fSS
public final Object a(Object obj) {
EfQ efQ = this.a;
C2409ae c2409ae2 = this.d;
String str2 = this.e;
efQ.a.b = (SingleDataEntity) obj;
return efQ.d(c2409ae2, str2);
}
{
this.a = this;
this.d = c2409ae;
this.e = str;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<List<C17305vfR>> o() {
if (this.a.g != null) {
return AbstractC13163fSk.just(yot.d(this.a.g.getData()));
}
AbstractC13163fSk<SingleDataEntity<C9118ddg>> riskAssessment = this.z.b.getRiskAssessment();
final tip tipVar = this.a;
Objects.requireNonNull(tipVar);
return riskAssessment.doOnNext(new fSQ(tipVar) { // from class: o.bYW
private tip a;
@Override // o.fSQ
public final void c(Object obj) {
this.a.g = (SingleDataEntity) obj;
}
{
this.a = tipVar;
}
}).flatMap(new fSS(this) { // from class: o.zTb
private EfQ c;
@Override // o.fSS
public final Object a(Object obj) {
yot yotVar = this.c.h;
return AbstractC13163fSk.just(yot.d((C9118ddg) ((SingleDataEntity) obj).getData()));
}
{
this.c = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<List<C17305vfR>> n() {
return this.z.b.getRiskAssessmentV2().map(new fSS(this) { // from class: o.nKE
private EfQ b;
@Override // o.fSS
public final Object a(Object obj) {
yot yotVar = this.b.h;
return yot.d((C9118ddg) ((SingleDataEntity) obj).getData());
}
{
this.b = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<zZj> a(final String str) {
Map<String, SingleDataEntity<C2916and>> map = this.a.e;
if ((map == null ? null : map.get(str)) != null) {
IKh iKh = this.d;
Map<String, SingleDataEntity<C2916and>> map2 = this.a.e;
return AbstractC13163fSk.just(iKh.e((map2 != null ? map2.get(str) : null).getData()));
}
return this.z.b.requestRiskAssessment(str, this.C).doOnNext(new fSQ(this, str) { // from class: o.whM
private String a;
private EfQ d;
@Override // o.fSQ
public final void c(Object obj) {
EfQ efQ = this.d;
String str2 = this.a;
SingleDataEntity<C2916and> singleDataEntity = (SingleDataEntity) obj;
tip tipVar = efQ.a;
if (tipVar.e == null) {
tipVar.e = new HashMap();
}
tipVar.e.put(str2, singleDataEntity);
}
{
this.d = this;
this.a = str;
}
}).flatMap(new fSS(this) { // from class: o.okD
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13163fSk.just(this.e.d.e((C2916and) ((SingleDataEntity) obj).getData()));
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<zZj> d(String str) {
AbstractC13163fSk<R> map = this.z.b.requestRiskAssessmentV2(str).map(new fSS() { // from class: o.TRS
@Override // o.fSS
public final Object a(Object obj) {
return (YUh) ((SingleDataEntity) obj).getData();
}
});
final tip tipVar = this.a;
Objects.requireNonNull(tipVar);
AbstractC13163fSk doOnNext = map.doOnNext(new fSQ(tipVar) { // from class: o.zHs
private tip e;
@Override // o.fSQ
public final void c(Object obj) {
this.e.j = (YUh) obj;
}
{
this.e = tipVar;
}
});
final C17282vWU c17282vWU = this.A;
Objects.requireNonNull(c17282vWU);
return doOnNext.map(new fSS(c17282vWU) { // from class: o.Qlw
private C17282vWU d;
@Override // o.fSS
public final Object a(Object obj) {
return this.d.e((YUh) obj);
}
{
this.d = c17282vWU;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk a(final F f) {
tip tipVar = this.a;
List<String> list = f.e;
Map<String, SingleDataEntity<LJU>> map = tipVar.i;
if ((map == null ? null : map.get(tip.c(list))) != null) {
onj onjVar = this.p;
tip tipVar2 = this.a;
List<String> list2 = f.e;
Map<String, SingleDataEntity<LJU>> map2 = tipVar2.i;
return AbstractC13163fSk.just(onjVar.c((map2 != null ? map2.get(tip.c(list2)) : null).getData()));
}
return this.z.b.calculateRiskAssessment(f).doOnNext(new fSQ(this, f) { // from class: o.wGK
private EfQ a;
private F b;
@Override // o.fSQ
public final void c(Object obj) {
EfQ efQ = this.a;
F f2 = this.b;
SingleDataEntity<LJU> singleDataEntity = (SingleDataEntity) obj;
tip tipVar3 = efQ.a;
List<String> list3 = f2.e;
if (tipVar3.i == null) {
tipVar3.i = new HashMap();
}
tipVar3.i.put(tip.c(list3), singleDataEntity);
}
{
this.a = this;
this.b = f;
}
}).flatMap(new fSS(this) { // from class: o.Yuc
private EfQ a;
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13163fSk.just(this.a.p.c((LJU) ((SingleDataEntity) obj).getData()));
}
{
this.a = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk d(C11123eZ c11123eZ) {
return this.z.b.calculateRiskAssessmentV2(c11123eZ).map(new fSS(this) { // from class: o.Nga
private EfQ c;
@Override // o.fSS
public final Object a(Object obj) {
return this.c.p.c((LJU) ((SingleDataEntity) obj).getData());
}
{
this.c = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk d(J j) {
return this.z.b.confirmRiskAssessment(j).flatMap(new fSS(this) { // from class: o.xBE
private EfQ c;
@Override // o.fSS
public final Object a(Object obj) {
C1105VsM c1105VsM = this.c.b;
return AbstractC13163fSk.just(Boolean.valueOf(C1105VsM.a((C16562pOe) obj)));
}
{
this.c = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk e(J j) {
AbstractC13163fSk<C16562pOe> confirmRiskAssessmentV2 = this.z.b.confirmRiskAssessmentV2(j);
final C1105VsM c1105VsM = this.b;
Objects.requireNonNull(c1105VsM);
return confirmRiskAssessmentV2.map(new fSS(c1105VsM) { // from class: o.XzP
private C1105VsM b;
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.valueOf(ZTC.a((C16562pOe) obj));
}
{
this.b = c1105VsM;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<VOT> a(C2568ah c2568ah) {
return this.z.b.getFundDetails(c2568ah).flatMap(new fSS(this) { // from class: o.JXj
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
C14851gaI c14851gaI;
KXi kXi = this.e.c;
RBf rBf = (RBf) ((SingleDataEntity) obj).getData();
VOT vot = new VOT();
final C1886aRC c1886aRC = kXi.a;
List<NnH> list = rBf != null ? rBf.d : null;
if (list == null) {
list = new ArrayList<>();
}
YKU yku = new YKU(list);
vot.a = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c1886aRC) { // from class: o.quB
private C1886aRC b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
NnH nnH = (NnH) obj2;
PQC pqc = new PQC();
pqc.c = nnH.e;
pqc.d = (OffsetDateTime) ZTC.e(new Object[]{nnH.a, OffsetDateTime.now()}, 267499366, -267499366, (int) System.currentTimeMillis());
pqc.e = (OffsetDateTime) ZTC.e(new Object[]{nnH.b, OffsetDateTime.now()}, 267499366, -267499366, (int) System.currentTimeMillis());
pqc.a = nnH.d;
pqc.b = nnH.c;
return pqc;
}
{
this.b = c1886aRC;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
qyw qywVar = kXi.b;
List<RQi> list2 = rBf != null ? rBf.c : null;
if (list2 != null) {
List<RQi> list3 = list2;
C14957gcv.e(list3, "");
ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
Iterator<T> it = list3.iterator();
while (it.hasNext()) {
arrayList.add(qyw.c((RQi) it.next()));
}
c14851gaI = arrayList;
} else {
c14851gaI = C14851gaI.c;
}
vot.d = c14851gaI;
C14957gcv.c(vot, "");
return AbstractC13163fSk.just(vot);
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<JQR> j() {
return this.z.b.getLandingDiscover().map(new fSS(this) { // from class: o.UiC
private EfQ d;
@Override // o.fSS
public final Object a(Object obj) {
ArrayList arrayList;
ArrayList arrayList2;
ArrayList arrayList3;
KXi kXi = this.d.c;
SjD sjD = (SjD) ((SingleDataEntity) obj).getData();
String str = sjD != null ? sjD.d : null;
List<C1085VfI> list = sjD != null ? sjD.e : null;
if (list != null) {
List<C1085VfI> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList4 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (C1085VfI c1085VfI : list2) {
arrayList4.add(new RiM(c1085VfI != null ? c1085VfI.a : null, c1085VfI != null ? c1085VfI.c : null, c1085VfI != null ? c1085VfI.d : null, c1085VfI != null ? c1085VfI.e : null, c1085VfI != null ? c1085VfI.b : null));
}
arrayList = arrayList4;
} else {
arrayList = null;
}
List<KbO> list3 = sjD != null ? sjD.c : null;
if (list3 != null) {
List<KbO> list4 = list3;
C14957gcv.e(list4, "");
ArrayList arrayList5 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
for (Iterator it = list4.iterator(); it.hasNext(); it = it) {
KbO kbO = (KbO) it.next();
C14957gcv.e(kbO, "");
arrayList5.add(new oDD(kbO.b, kbO.h, kbO.a, kbO.c, kbO.d, kbO.e, kbO.j, C2974aoj.a(kbO.f, null), kbO.i, C2974aoj.a(kbO.l, null), C2974aoj.a(kbO.g, null)));
}
arrayList2 = arrayList5;
} else {
arrayList2 = null;
}
OffsetDateTime a = C2974aoj.a(sjD != null ? sjD.j : null, null);
List<C1116VzN> list5 = sjD != null ? sjD.a : null;
if (list5 != null) {
List<C1116VzN> list6 = list5;
C14957gcv.e(list6, "");
ArrayList arrayList6 = new ArrayList(list6 instanceof Collection ? list6.size() : 10);
for (C1116VzN c1116VzN : list6) {
arrayList6.add(new Xfj(c1116VzN.c, c1116VzN.a, KXi.b(c1116VzN.d)));
}
arrayList3 = arrayList6;
} else {
arrayList3 = null;
}
return new JQR(str, arrayList, arrayList2, a, arrayList3, (OffsetDateTime) ZTC.e(new Object[]{sjD != null ? sjD.b : null, null}, 267499366, -267499366, (int) System.currentTimeMillis()));
}
{
this.d = this;
}
});
}
@Override // o.pQs
public final AbstractC13175fSw<List<cIM>> d(T t) {
return new C13372fYk(this.z.b.getPurchaseSearchFunds(t), new fSS(this) { // from class: o.HoD
private EfQ b;
@Override // o.fSS
public final Object a(Object obj) {
SKo sKo = this.b.k;
return SKo.b((YVC) ((SingleDataEntity) obj).getData());
}
{
this.b = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<C0888Qul> c(W w) {
return this.z.b.confirmPurchase(w).flatMap(new fSS(this) { // from class: o.FlV
private EfQ b;
@Override // o.fSS
public final Object a(Object obj) {
xgt xgtVar = this.b.f;
LNc lNc = ((yMh) obj).c;
C0888Qul c0888Qul = new C0888Qul();
c0888Qul.b = lNc.b != null ? lNc.b.c : null;
c0888Qul.c = (lNc.b == null || TextUtils.isEmpty(lNc.b.a)) ? null : Double.valueOf(Double.parseDouble(lNc.b.a));
c0888Qul.e = (OffsetDateTime) ZTC.e(new Object[]{lNc.e, null}, 267499366, -267499366, (int) System.currentTimeMillis());
return AbstractC13163fSk.just(c0888Qul);
}
{
this.b = this;
}
});
}
@Override // o.pQs
public final AbstractC13175fSw<C4971bkI> m() {
MJH mjh = this.z;
return new C13372fYk(mjh.b.getPreparationSearch(new V(this.C)), new fSS(this) { // from class: o.oLP
private EfQ c;
@Override // o.fSS
public final Object a(Object obj) {
Integer num;
orX orx = this.c.f8150o;
C8760dUz c8760dUz = (C8760dUz) ((SingleDataEntity) obj).getData();
C14957gcv.e(c8760dUz, "");
C14957gcv.e(c8760dUz.a, "");
Iterator<Integer> it = new C14973gde(0, r2.size() - 1).iterator();
while (true) {
if (!it.hasNext()) {
num = null;
break;
}
num = it.next();
if (C14957gcv.b((Object) c8760dUz.b, (Object) c8760dUz.a.get(num.intValue()).d)) {
break;
}
}
Integer num2 = num;
int intValue = num2 != null ? num2.intValue() : 0;
List<IJP> d = orx.e.d(c8760dUz.a);
lZT lzt = orx.d;
return new C4971bkI(intValue, d, lZT.d(c8760dUz.c));
}
{
this.c = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<C17770zcx> a(X x, String str, String str2) {
return this.z.b.confirmRedeem(x, str, str2).flatMap(new fSS(this) { // from class: o.sgf
private EfQ a;
@Override // o.fSS
public final Object a(Object obj) {
JaP jaP = this.a.m;
JOw jOw = (JOw) ((SingleDataEntity) obj).getData();
C17770zcx c17770zcx = new C17770zcx();
c17770zcx.b = (OffsetDateTime) ZTC.e(new Object[]{jOw.d, null}, 267499366, -267499366, (int) System.currentTimeMillis());
return AbstractC13163fSk.just(c17770zcx);
}
{
this.a = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<C0817PbD> e(C2303ac c2303ac) {
return this.z.b.getRedeemSearchFunds(c2303ac).flatMap(new fSS(this) { // from class: o.tkL
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
Iterable arrayList;
LUX lux = this.e.n;
DnQ dnQ = ((NoF) obj).c;
if (dnQ.b == null) {
arrayList = new ArrayList();
} else {
arrayList = dnQ.b;
}
C0817PbD c0817PbD = new C0817PbD();
YKU yku = new YKU(arrayList);
c0817PbD.b = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(lux) { // from class: o.bhB
private LUX e;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return LUX.e((JVX) obj2);
}
{
this.e = lux;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
return AbstractC13163fSk.just(c0817PbD);
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<NgV> d(Z z) {
return this.z.b.getSwitchOutSearchFunds(z).flatMap(new fSS(this) { // from class: o.NLI
private EfQ a;
@Override // o.fSS
public final Object a(Object obj) {
C14851gaI c14851gaI;
CwK cwK = this.a.s;
aLA ala = (aLA) ((SingleDataEntity) obj).getData();
C14957gcv.e(ala, "");
NgV ngV = new NgV();
List<DEY> list = ala.d;
if (list != null) {
List<DEY> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (DEY dey : list2) {
C14957gcv.c(dey, "");
arrayList.add(CwK.b(dey));
}
c14851gaI = arrayList;
} else {
c14851gaI = C14851gaI.c;
}
ngV.b = c14851gaI;
C14957gcv.c(ngV, "");
return AbstractC13163fSk.just(ngV);
}
{
this.a = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<WLo> a(C2250ab c2250ab) {
return this.z.b.getSwitchInSearchFunds(c2250ab).flatMap(new fSS(this) { // from class: o.QoE
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
C14851gaI c14851gaI;
C0763OUn c0763OUn = this.e.r;
YLF ylf = (YLF) ((SingleDataEntity) obj).getData();
C14957gcv.e(ylf, "");
WLo wLo = new WLo();
List<C16232mZI> list = ylf.d;
if (list != null) {
List<C16232mZI> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (C16232mZI c16232mZI : list2) {
C14957gcv.c(c16232mZI, "");
arrayList.add(C0763OUn.d(c16232mZI));
}
c14851gaI = arrayList;
} else {
c14851gaI = C14851gaI.c;
}
wLo.d = c14851gaI;
C14957gcv.c(wLo, "");
return AbstractC13163fSk.just(wLo);
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<Lgb> a(C2197aa c2197aa) {
return this.z.b.confirmSwitch(c2197aa).flatMap(new fSS(this) { // from class: o.AKJ
private EfQ c;
@Override // o.fSS
public final Object a(Object obj) {
lpg lpgVar = this.c.q;
owm owmVar = (owm) ((SingleDataEntity) obj).getData();
return AbstractC13163fSk.just(new Lgb(owmVar.b != null ? (OffsetDateTime) ZTC.e(new Object[]{owmVar.b, null}, 267499366, -267499366, (int) System.currentTimeMillis()) : null));
}
{
this.c = this;
}
});
}
@Override // o.QpH
public final void f() {
this.a.c();
}
@Override // o.pQs
public final AbstractC13163fSk<UwO> c(C5333br c5333br) {
return this.z.b.getMutualFundsConfig(c5333br).flatMap(new fSS(this) { // from class: o.hgR
private EfQ a;
@Override // o.fSS
public final Object a(Object obj) {
Arl arl = this.a.g;
yzC yzc = (yzC) ((SingleDataEntity) obj).getData();
UwO.Sts sts = new UwO.Sts((byte) 0);
sts.d = arl.d(yzc.b);
Aid aid = yzc.c;
C16401nxI.HBt hBt = new C16401nxI.HBt((byte) 0);
hBt.e = aid.c;
hBt.b = aid.a;
hBt.d = aid.b;
sts.e = new C16401nxI(hBt, (byte) 0);
return AbstractC13163fSk.just(new UwO(sts, (byte) 0));
}
{
this.a = this;
}
});
}
@Override // o.pQs
public final AbstractC13175fSw<Boolean> a(M m) {
return new C13372fYk(this.z.b.updateDataSharingFlag(m), new fSS() { // from class: o.Aqj
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.pQs
public final AbstractC13175fSw<Boolean> d(M m) {
return new C13372fYk(this.z.b.updateDataSharingFlagV2(m), new fSS() { // from class: o.Zhv
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.pQs
public final AbstractC13175fSw<LYc> a(C2356ad c2356ad) {
return new C13372fYk(this.z.b.getMfDeepLinkMyFund(c2356ad), new fSS(this) { // from class: o.OQh
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
KJx kJx;
YUR yur = this.e.j;
ZCg zCg = (ZCg) ((SingleDataEntity) obj).getData();
C14957gcv.e(zCg, "");
List<IJP> d = yur.e.d(zCg.d);
Gex gex = zCg.e;
if (gex != null) {
lZT lzt = yur.c;
kJx = lZT.d(gex);
} else {
kJx = null;
}
return new LYc(d, kJx);
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final AbstractC13175fSw<ROy> k() {
return new C13372fYk(this.z.b.getProductRecommendNotification(), new fSS(this) { // from class: o.wYC
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
BYV byv = this.e.i;
return BYV.c((jxn) ((SingleDataEntity) obj).getData());
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final AbstractC13175fSw<C0441GqM> e(C2621ai c2621ai) {
return new C13372fYk(this.z.b.getMfDeepLinkTermFund(c2621ai), new fSS(this) { // from class: o.gqe
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
KJx kJx;
C1267Zgj c1267Zgj;
DdJ ddJ;
C15736iDx c15736iDx = this.e.w;
mxZ mxz = (mxZ) ((SingleDataEntity) obj).getData();
C14957gcv.e(mxz, "");
List<String> list = mxz.a;
boolean b = C14957gcv.b(mxz.c, Boolean.TRUE);
List<IJP> d = c15736iDx.a.d(mxz.e);
Gex gex = mxz.b;
if (gex != null) {
lZT lzt = c15736iDx.b;
kJx = lZT.d(gex);
} else {
kJx = null;
}
DEY dey = mxz.g;
if (dey != null) {
CwK cwK = c15736iDx.c;
c1267Zgj = CwK.b(dey);
} else {
c1267Zgj = null;
}
C16232mZI c16232mZI = mxz.d;
if (c16232mZI != null) {
C0763OUn c0763OUn = c15736iDx.e;
ddJ = C0763OUn.d(c16232mZI);
} else {
ddJ = null;
}
return new C0441GqM(list, b, d, kJx, c1267Zgj, ddJ);
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final void d() {
this.a.c = "";
}
@Override // o.pQs
public final void a() {
this.a.b = null;
this.a.f = null;
}
@Override // o.pQs
public final void b() {
this.a.a = "";
}
@Override // o.pQs
public final void c() {
tip tipVar = this.a;
tipVar.e = null;
tipVar.j = null;
tipVar.i = null;
tipVar.g = null;
}
@Override // o.pQs
public final String i() {
return this.a.c;
}
@Override // o.pQs
public final String h() {
return this.a.a;
}
@Override // o.pQs
public final C13396fZU<String, String> r() {
return this.a.h;
}
@Override // o.pQs
public final boolean p() {
return this.a.d;
}
@Override // o.pQs
public final zZj q() {
YUh yUh = this.a.j;
if (yUh == null) {
yUh = null;
}
if (yUh != null) {
return this.A.e(yUh);
}
return null;
}
@Override // o.pQs
public final void c(String str) {
this.a.c = str;
}
@Override // o.pQs
public final void t() {
this.a.d = true;
}
@Override // o.pQs
public final void e(String str) {
this.a.a = str;
}
@Override // o.pQs
public final AbstractC13163fSk<yrx> a(U u) {
MJH mjh = this.z;
DiG.e("9200");
return mjh.b.verifyPurchase(u).doFinally(new Cbf()).flatMap(new fSS(this) { // from class: o.wXT
private EfQ c;
@Override // o.fSS
public final Object a(Object obj) {
C16355ngL c16355ngL;
boolean z;
String str;
String str2;
String str3;
String str4;
String str5;
ArrayList arrayList;
String str6;
String str7;
String str8;
String str9;
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
myV myv = this.c.l;
String str10 = "";
C14957gcv.e(singleDataEntity, "");
yzb status = singleDataEntity.getStatus();
C16702qUs c16702qUs = (C16702qUs) singleDataEntity.getData();
if (gdZ.a("9200", status.e, true)) {
C14957gcv.c(status, "");
C16355ngL.RVV rvv = new C16355ngL.RVV();
rvv.d = status.h;
rvv.e = status.c;
C16355ngL c16355ngL2 = new C16355ngL(rvv, (byte) 0);
C14957gcv.c(c16355ngL2, "");
c16355ngL = c16355ngL2;
z = true;
} else {
c16355ngL = null;
z = false;
}
String str11 = c16702qUs.k;
String str12 = c16702qUs.h;
String str13 = str12 == null ? "" : str12;
OffsetDateTime offsetDateTime = (OffsetDateTime) ZTC.e(new Object[]{c16702qUs.m, null}, 267499366, -267499366, (int) System.currentTimeMillis());
if (offsetDateTime == null) {
offsetDateTime = OffsetDateTime.now();
}
OffsetDateTime offsetDateTime2 = offsetDateTime;
C14957gcv.c(offsetDateTime2, "");
isK isk = myv.c;
JZC jzc = c16702qUs.i;
if (jzc == null || (str = jzc.a) == null) {
str = "";
}
if (jzc == null || (str2 = jzc.d) == null) {
str2 = "";
}
if (jzc == null || (str3 = jzc.c) == null) {
str3 = "";
}
HVQ hvq = new HVQ(str, str2, str3);
String str14 = c16702qUs.n;
String str15 = str14 == null ? "" : str14;
String str16 = c16702qUs.c;
yzb yzbVar = c16702qUs.l;
String str17 = yzbVar != null ? yzbVar.c : null;
yzb yzbVar2 = c16702qUs.l;
String str18 = yzbVar2 != null ? yzbVar2.e : null;
OffsetDateTime offsetDateTime3 = (OffsetDateTime) ZTC.e(new Object[]{c16702qUs.a, null}, 267499366, -267499366, (int) System.currentTimeMillis());
List<String> list = c16702qUs.e;
String str19 = c16702qUs.d;
String str20 = str19 == null ? "" : str19;
String str21 = c16702qUs.j;
String str22 = c16702qUs.s;
String str23 = c16702qUs.f9248o;
List<C17069tfl> list2 = c16702qUs.g;
if (list2 == null) {
str4 = "";
str5 = str23;
arrayList = null;
} else {
List<C17069tfl> list3 = list2;
C14957gcv.e(list3, "");
ArrayList arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
Iterator it = list3.iterator();
while (it.hasNext()) {
C17069tfl c17069tfl = (C17069tfl) it.next();
Iterator it2 = it;
if (c17069tfl == null || (str6 = c17069tfl.c) == null) {
str6 = str10;
}
String str24 = str10;
if (c17069tfl == null || (str7 = c17069tfl.d) == null) {
str7 = str24;
}
if (c17069tfl == null || (str9 = c17069tfl.e) == null) {
str8 = str23;
str9 = str24;
} else {
str8 = str23;
}
arrayList2.add(new C5229bpB(str6, str7, str9));
it = it2;
str10 = str24;
str23 = str8;
}
str4 = str10;
str5 = str23;
arrayList = arrayList2;
}
Boolean bool = c16702qUs.b;
boolean booleanValue = bool != null ? bool.booleanValue() : false;
KwX kwX = c16702qUs.f;
String str25 = kwX != null ? kwX.e : null;
if (str25 == null) {
str25 = str4;
}
String str26 = kwX != null ? kwX.c : null;
return AbstractC13163fSk.just(new yrx(z, c16355ngL, str11, str13, offsetDateTime2, hvq, str15, str16, str17, str18, offsetDateTime3, list, str20, str21, str22, str5, arrayList, booleanValue, new IoH(str25, str26 == null ? str4 : str26)));
}
{
this.c = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<C0236CMo> c(Y y) {
MJH mjh = this.z;
DiG.e("9200");
return mjh.b.verifyRedeem(y).flatMap(new fSS(this) { // from class: o.Vyp
private EfQ a;
@Override // o.fSS
public final Object a(Object obj) {
OffsetDateTime offsetDateTime;
String str;
String str2;
String str3;
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
C7109ciA c7109ciA = this.a.t;
C0236CMo c0236CMo = new C0236CMo();
ztn ztnVar = (ztn) singleDataEntity.getData();
if (singleDataEntity.getStatus() != null && singleDataEntity.getStatus().e != null && "9200".equalsIgnoreCase(singleDataEntity.getStatus().e)) {
c0236CMo.g = true;
C16355ngL.RVV rvv = new C16355ngL.RVV();
rvv.d = singleDataEntity.getStatus().h;
rvv.e = singleDataEntity.getStatus().c;
c0236CMo.d = new C16355ngL(rvv, (byte) 0);
} else {
c0236CMo.g = false;
}
if (ztnVar.f != null) {
offsetDateTime = ztnVar.f.a != null ? (OffsetDateTime) ZTC.e(new Object[]{ztnVar.f.a, null}, 267499366, -267499366, (int) System.currentTimeMillis()) : null;
str = ztnVar.f.c;
} else {
offsetDateTime = null;
str = null;
}
String str4 = "";
if (ztnVar.e == null) {
str2 = "";
} else {
if (ztnVar.e.e == null) {
str3 = "";
} else {
str3 = ztnVar.e.e;
}
if (ztnVar.e.c != null) {
str4 = ztnVar.e.c;
}
String str5 = str4;
str4 = str3;
str2 = str5;
}
c0236CMo.k = ztnVar.i;
c0236CMo.f8115o = ztnVar.j;
c0236CMo.i = ztnVar.g != null ? (OffsetDateTime) ZTC.e(new Object[]{ztnVar.g, null}, 267499366, -267499366, (int) System.currentTimeMillis()) : null;
c0236CMo.n = offsetDateTime;
c0236CMo.l = str;
c0236CMo.b = ztnVar.b;
c0236CMo.c = ztnVar.a;
c0236CMo.j = ztnVar.h;
c0236CMo.f = ztnVar.d != null ? (OffsetDateTime) ZTC.e(new Object[]{ztnVar.d, null}, 267499366, -267499366, (int) System.currentTimeMillis()) : null;
c0236CMo.e = Boolean.TRUE.equals(ztnVar.c);
c0236CMo.h = str4;
c0236CMo.a = str2;
return AbstractC13163fSk.just(c0236CMo);
}
{
this.a = this;
}
});
}
@Override // o.pQs
public final AbstractC13175fSw<Boolean> l() {
MJH mjh = this.z;
DiG.e("3023");
return new C13372fYk(new C13325fXX(mjh.b.getMutualFundsCustomerDataSharing(), new Cbf()), new fSS() { // from class: o.jGw
@Override // o.fSS
public final Object a(Object obj) {
C16562pOe c16562pOe = (C16562pOe) obj;
return Boolean.valueOf((c16562pOe == null || c16562pOe.getStatus() == null || !"3023".equals(c16562pOe.getStatus().e)) ? false : true);
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<RCR> a(C2515ag c2515ag) {
MJH mjh = this.z;
DiG.e("9200");
return mjh.b.verifySwitch(c2515ag).flatMap(new fSS(this) { // from class: o.XEV
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
boolean z;
C16355ngL c16355ngL;
String str;
ArrayList arrayList;
String str2;
String str3;
String str4;
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
JGX jgx = this.e.x;
C14957gcv.e(singleDataEntity, "");
yzb status = singleDataEntity.getStatus();
PvD pvD = (PvD) singleDataEntity.getData();
if (gdZ.a(singleDataEntity.getStatus().e, "9200", true)) {
C14957gcv.c(status, "");
C16355ngL.RVV rvv = new C16355ngL.RVV();
rvv.d = status.h;
rvv.e = status.c;
C16355ngL c16355ngL2 = new C16355ngL(rvv, (byte) 0);
C14957gcv.c(c16355ngL2, "");
c16355ngL = c16355ngL2;
z = true;
} else {
z = false;
c16355ngL = null;
}
String str5 = pvD.k;
String str6 = pvD.f8318o;
String str7 = str6 == null ? "" : str6;
OffsetDateTime offsetDateTime = (OffsetDateTime) ZTC.e(new Object[]{pvD.n, null}, 267499366, -267499366, (int) System.currentTimeMillis());
if (offsetDateTime == null) {
offsetDateTime = OffsetDateTime.now();
}
OffsetDateTime offsetDateTime2 = offsetDateTime;
C1251Yyi c1251Yyi = pvD.j;
OffsetDateTime offsetDateTime3 = (OffsetDateTime) ZTC.e(new Object[]{c1251Yyi != null ? c1251Yyi.a : null, null}, 267499366, -267499366, (int) System.currentTimeMillis());
if (offsetDateTime3 == null) {
offsetDateTime3 = OffsetDateTime.now();
}
OffsetDateTime offsetDateTime4 = offsetDateTime3;
String str8 = pvD.f;
String str9 = str8 == null ? "" : str8;
String str10 = pvD.h;
String str11 = str10 == null ? "" : str10;
String str12 = pvD.c;
yzb yzbVar = pvD.g;
String str13 = yzbVar != null ? yzbVar.c : null;
yzb yzbVar2 = pvD.g;
String str14 = yzbVar2 != null ? yzbVar2.e : null;
OffsetDateTime offsetDateTime5 = (OffsetDateTime) ZTC.e(new Object[]{pvD.e, null}, 267499366, -267499366, (int) System.currentTimeMillis());
List<String> list = pvD.d;
String str15 = pvD.b;
String str16 = str15 == null ? "" : str15;
String str17 = pvD.i;
String str18 = pvD.m;
String str19 = pvD.l;
List<C17069tfl> list2 = pvD.a;
if (list2 != null) {
List<C17069tfl> list3 = list2;
C14957gcv.e(list3, "");
ArrayList arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
Iterator it = list3.iterator();
while (it.hasNext()) {
C17069tfl c17069tfl = (C17069tfl) it.next();
if (c17069tfl == null || (str2 = c17069tfl.c) == null) {
str2 = "";
}
Iterator it2 = it;
if (c17069tfl == null || (str3 = c17069tfl.d) == null) {
str3 = "";
}
if (c17069tfl == null || (str4 = c17069tfl.e) == null) {
str4 = "";
}
arrayList2.add(new C5229bpB(str2, str3, str4));
it = it2;
str19 = str19;
}
str = str19;
arrayList = arrayList2;
} else {
str = str19;
arrayList = null;
}
C14957gcv.c(offsetDateTime2, "");
return AbstractC13163fSk.just(new RCR(str5, str7, offsetDateTime2, offsetDateTime4, str9, str11, str12, str14, str13, z, c16355ngL, offsetDateTime5, list, str16, str17, str18, str, arrayList));
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final void b(String str, String str2) {
this.a.h = new C13396fZU<>(str, str2);
}
@Override // o.pQs
public final AbstractC13163fSk<KJx> u() {
MJH mjh = this.z;
return mjh.b.setRiskAssessment(C2462af.d()).map(new fSS(this) { // from class: o.oXW
private EfQ e;
@Override // o.fSS
public final Object a(Object obj) {
lZT lzt = this.e.e;
return lZT.d((Gex) ((SingleDataEntity) obj).getData());
}
{
this.e = this;
}
});
}
@Override // o.pQs
public final AbstractC13163fSk<KJx> v() {
MJH mjh = this.z;
return mjh.b.setRiskAssessmentV2(C2462af.d()).map(new fSS(this) { // from class: o.fDV
private EfQ d;
@Override // o.fSS
public final Object a(Object obj) {
lZT lzt = this.d.e;
return lZT.d((Gex) ((SingleDataEntity) obj).getData());
}
{
this.d = this;
}
});
}
@Override // o.pQs
public final String s() {
return this.C;
}
}