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

281 lines
11 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import o.C15715hv;
import o.Nvp;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.je, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C15923je extends C15620hF {
public final hKK b;
final C17174uY c;
public final Cjv d;
final C17170uW e;
private final Nvp f;
public fSJ i;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C15923je(Cjv cjv, Nvp nvp, hKK hkk, C17174uY c17174uY, C17170uW c17170uW) {
super((byte) 0);
C14957gcv.e(cjv, "");
C14957gcv.e(nvp, "");
C14957gcv.e(hkk, "");
C14957gcv.e(c17174uY, "");
C14957gcv.e(c17170uW, "");
this.d = cjv;
this.f = nvp;
this.b = hkk;
this.c = c17174uY;
this.e = c17170uW;
}
/* renamed from: o.je$RVV */
/* loaded from: classes3.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<uvo, C0826Ph> {
private C15923je c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C0826Ph invoke(uvo uvoVar) {
uvo uvoVar2 = uvoVar;
C14957gcv.e(uvoVar2, "");
C17170uW c17170uW = this.c.e;
C14957gcv.e(uvoVar2, "");
List<KNW> list = uvoVar2.b.b;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (KNW knw : list) {
arrayList.add(new C0844Pu(knw.c, knw.b));
}
String string = c17170uW.e.getString(C15715hv.tOB.investment_discover_types_of_fund);
String string2 = c17170uW.e.getString(C15715hv.tOB.investment_discover_types_of_fund_hint);
C14957gcv.c((Object) string, "");
C14957gcv.c((Object) string2, "");
C0838Pp c0838Pp = new C0838Pp(string, string2, arrayList);
List<KNW> list2 = uvoVar2.b.c;
C14957gcv.e(list2, "");
ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (KNW knw2 : list2) {
arrayList2.add(new C0844Pu(knw2.c, knw2.b));
}
String string3 = c17170uW.e.getString(C15715hv.tOB.investment_discover_asset_management_company);
String string4 = c17170uW.e.getString(C15715hv.tOB.investment_discover_broker_hint);
C14957gcv.c((Object) string3, "");
C14957gcv.c((Object) string4, "");
C0838Pp c0838Pp2 = new C0838Pp(string3, string4, arrayList2);
List<KNW> list3 = uvoVar2.b.e;
C14957gcv.e(list3, "");
ArrayList arrayList3 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
for (KNW knw3 : list3) {
arrayList3.add(new C0844Pu(knw3.c, knw3.b));
}
String string5 = c17170uW.e.getString(C15715hv.tOB.investment_discover_risk_level_filter);
C14957gcv.c((Object) string5, "");
C0831Pk c0831Pk = new C0831Pk(string5, arrayList3);
List<Aeo> list4 = uvoVar2.e.b;
C14957gcv.e(list4, "");
ArrayList arrayList4 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
for (Aeo aeo : list4) {
arrayList4.add(new C0844Pu(aeo.a, aeo.e, aeo.d, aeo.c));
}
C0838Pp c0838Pp3 = new C0838Pp("", "", arrayList4);
List<KNW> list5 = uvoVar2.e.a;
C14957gcv.e(list5, "");
ArrayList arrayList5 = new ArrayList(list5 instanceof Collection ? list5.size() : 10);
for (KNW knw4 : list5) {
arrayList5.add(new C0844Pu(knw4.c, knw4.b));
}
return new C0826Ph(c0838Pp, c0838Pp2, c0831Pk, c0838Pp3, new C0838Pp("", "", arrayList5));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C15923je c15923je) {
super(1);
this.c = c15923je;
}
}
/* renamed from: o.je$LWm */
/* loaded from: classes3.dex */
public static final class LWm implements InterfaceC13176fSx<C0836Pn> {
private InterfaceC14894gbR<Throwable, C14866gag> b;
private InterfaceC14894gbR<C0836Pn, C14866gag> c;
private C15923je d;
/* JADX WARN: Multi-variable type inference failed */
LWm(InterfaceC14894gbR<? super C0836Pn, C14866gag> interfaceC14894gbR, C15923je c15923je, InterfaceC14894gbR<? super Throwable, C14866gag> interfaceC14894gbR2) {
this.c = interfaceC14894gbR;
this.d = c15923je;
this.b = interfaceC14894gbR2;
}
@Override // o.InterfaceC13176fSx
public final /* synthetic */ void e(C0836Pn c0836Pn) {
C0836Pn c0836Pn2 = c0836Pn;
C14957gcv.e(c0836Pn2, "");
this.c.invoke(c0836Pn2);
}
@Override // o.InterfaceC13176fSx
public final void onError(Throwable th) {
C14957gcv.e(th, "");
this.b.invoke(th);
}
@Override // o.InterfaceC13176fSx
public final void onSubscribe(fSJ fsj) {
C14957gcv.e(fsj, "");
this.d.i = fsj;
}
}
public final void c(C2674aj c2674aj, InterfaceC14894gbR<? super C0836Pn, C14866gag> interfaceC14894gbR, InterfaceC14894gbR<? super Throwable, C14866gag> interfaceC14894gbR2) {
C14957gcv.e(c2674aj, "");
C14957gcv.e(interfaceC14894gbR, "");
C14957gcv.e(interfaceC14894gbR2, "");
LWm lWm = new LWm(interfaceC14894gbR, this, interfaceC14894gbR2);
fSJ fsj = this.i;
if (fsj != null && !fsj.isDisposed()) {
fsj.dispose();
}
this.f.d(lWm, new Nvp.IeS(c2674aj), new Sts(this), this.a);
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.je$Sts */
/* loaded from: classes3.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Vhk, C0836Pn> {
private C15923je b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C0836Pn invoke(Vhk vhk) {
C14851gaI c14851gaI;
String e;
List list;
String a;
Vhk vhk2 = vhk;
C14957gcv.e(vhk2, "");
C17174uY c17174uY = this.b.c;
C14957gcv.e(vhk2, "");
C0836Pn c0836Pn = new C0836Pn();
c0836Pn.f = vhk2.g;
c0836Pn.c = vhk2.e;
c0836Pn.e = vhk2.b;
c0836Pn.h = vhk2.f;
List<HMz> list2 = vhk2.a;
if (list2 != null) {
List<HMz> list3 = list2;
C14957gcv.e(list3, "");
ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
for (HMz hMz : list3) {
C17160uR c17160uR = c17174uY.b;
C14957gcv.e(hMz, "");
C0830Pj c0830Pj = new C0830Pj((byte) 0);
String str = hMz.a;
if (str == null) {
str = "";
}
C14957gcv.e(str, "");
c0830Pj.a = str;
String str2 = hMz.d;
if (str2 == null) {
str2 = "";
}
C14957gcv.e(str2, "");
c0830Pj.b = str2;
String str3 = hMz.e;
if (str3 == null) {
str3 = "";
}
C14957gcv.e(str3, "");
c0830Pj.e = str3;
String str4 = hMz.j;
String str5 = null;
c0830Pj.j = str4 != null ? gdZ.d(str4) : null;
String str6 = hMz.j;
if (str6 != null) {
String a2 = C14813gH.a(str6);
StringBuilder sb = new StringBuilder();
sb.append(a2);
sb.append("%");
e = sb.toString();
} else {
e = c17160uR.e(C15715hv.tOB.investment_discover_not_available);
C14957gcv.c((Object) e, "");
}
C14957gcv.e(e, "");
c0830Pj.g = e;
OffsetDateTime offsetDateTime = hMz.c;
if (offsetDateTime != null && (a = c17160uR.a(offsetDateTime)) != null) {
C14957gcv.c((Object) a, "");
String string = c17160uR.e.getString(C15715hv.tOB.investment_discover_return_as_of_date);
C14957gcv.c((Object) string, "");
str5 = String.format(string, Arrays.copyOf(new Object[]{a}, 1));
C14957gcv.c((Object) str5, "");
}
if (str5 == null) {
str5 = "";
}
C14957gcv.e(str5, "");
c0830Pj.c = str5;
List<C0249Cga> list4 = hMz.b;
if (list4 != null) {
List<C0249Cga> list5 = list4;
C14957gcv.e(list5, "");
ArrayList arrayList2 = new ArrayList(list5 instanceof Collection ? list5.size() : 10);
Iterator<T> it = list5.iterator();
while (it.hasNext()) {
String str7 = ((C0249Cga) it.next()).d;
if (str7 == null) {
str7 = "";
}
arrayList2.add(str7);
}
list = new ArrayList();
for (Object obj : arrayList2) {
if (((String) obj).length() > 0) {
list.add(obj);
}
}
} else {
list = C14851gaI.c;
}
List list6 = list;
C14957gcv.e(list6, "");
c0830Pj.d = list6;
arrayList.add(c0830Pj);
}
c14851gaI = arrayList;
} else {
c14851gaI = C14851gaI.c;
}
C14957gcv.e(c14851gaI, "");
c0836Pn.a = c14851gaI;
c0836Pn.i = vhk2.h;
c0836Pn.d = vhk2.d;
c0836Pn.b = vhk2.c;
return c0836Pn;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(C15923je c15923je) {
super(1);
this.b = c15923je;
}
}
@Override // o.C15620hF
public final void a() {
fSJ fsj = this.i;
if (fsj != null && !fsj.isDisposed()) {
fsj.dispose();
}
super.a();
}
}