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

263 lines
12 KiB
Java
Raw 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.C0837Po;
import o.C15715hv;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.io, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C15815io extends C15620hF {
public final HyR b;
public final hKK c;
public final umd d;
final C17172uX e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C15815io(HyR hyR, umd umdVar, hKK hkk, C17172uX c17172uX) {
super((byte) 0);
C14957gcv.e(hyR, "");
C14957gcv.e(umdVar, "");
C14957gcv.e(hkk, "");
C14957gcv.e(c17172uX, "");
this.b = hyR;
this.d = umdVar;
this.c = hkk;
this.e = c17172uX;
}
/* renamed from: o.io$IeS */
/* loaded from: classes3.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<JQR, C0837Po> {
private C15815io d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C0837Po invoke(JQR jqr) {
ArrayList arrayList;
ArrayList arrayList2;
ArrayList arrayList3;
String k;
ArrayList arrayList4;
String str;
ArrayList arrayList5;
String a;
Double d;
String str2;
EnumC0823Pg enumC0823Pg;
String str3;
String str4;
String c;
JQR jqr2 = jqr;
String str5 = "";
C14957gcv.e(jqr2, "");
C17172uX c17172uX = this.d.e;
C14957gcv.e(jqr2, "");
C0837Po.LWm lWm = C0837Po.b;
C0837Po c0837Po = new C0837Po();
c0837Po.d = jqr2.b;
List<RiM> list = jqr2.e;
if (list != null) {
C14957gcv.e(list, "");
List<RiM> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList6 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (RiM riM : list2) {
C14957gcv.e(riM, "");
String b_ = c17172uX.b_(riM.b);
String str6 = riM.c;
String str7 = str6 == null ? "" : str6;
String str8 = riM.e;
String str9 = str8 == null ? "" : str8;
String str10 = riM.d;
String str11 = str10 == null ? "" : str10;
String str12 = riM.a;
arrayList6.add(new C0840Pr(b_, str7, str9, str11, str12 == null ? "" : str12));
}
arrayList = arrayList6;
} else {
arrayList = null;
}
c0837Po.c = arrayList;
List<oDD> list3 = jqr2.d;
if (list3 != null) {
C14957gcv.e(list3, "");
List<oDD> list4 = list3;
C14957gcv.e(list4, "");
ArrayList arrayList7 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
for (oDD odd : list4) {
C14957gcv.e(odd, "");
String str13 = odd.c;
String str14 = str13 == null ? "" : str13;
String b_2 = c17172uX.b_(odd.f);
String str15 = odd.a;
String str16 = str15 == null ? "" : str15;
String str17 = odd.d;
String str18 = str17 == null ? "" : str17;
String a2 = C14813gH.a(odd.b);
String str19 = a2 == null ? "" : a2;
String str20 = odd.e;
String str21 = odd.i;
if (str20 == null || str21 == null) {
str2 = "";
} else {
double m = C17172uX.m(str20);
if (m > 0.0d) {
c = c17172uX.c(C15715hv.tOB.investment_discover_recommend_change_positive, C14813gH.a(str20), C14813gH.a(str21));
C14957gcv.c((Object) c, "");
} else if (m < 0.0d) {
c = c17172uX.c(C15715hv.tOB.investment_discover_recommend_change_negative, C14813gH.a(str20), C14813gH.a(str21));
C14957gcv.c((Object) c, "");
} else {
c = c17172uX.c(C15715hv.tOB.investment_discover_recommend_change_neutral, C14813gH.a(str20), C14813gH.a(str21));
C14957gcv.c((Object) c, "");
}
str2 = c;
}
OffsetDateTime offsetDateTime = odd.j;
String k2 = offsetDateTime != null ? c17172uX.k(offsetDateTime) : null;
String str22 = k2 == null ? "" : k2;
String str23 = odd.e;
if (str23 != null) {
double m2 = C17172uX.m(str23);
if (m2 > 0.0d) {
enumC0823Pg = EnumC0823Pg.POSITIVE_TYPE;
} else if (m2 < 0.0d) {
enumC0823Pg = EnumC0823Pg.NEGATIVE_TYPE;
} else {
enumC0823Pg = EnumC0823Pg.NEUTRAL_TYPE;
}
} else {
enumC0823Pg = EnumC0823Pg.NEUTRAL_TYPE;
}
EnumC0823Pg enumC0823Pg2 = enumC0823Pg;
String str24 = odd.h;
String str25 = str24 == null ? "" : str24;
OffsetDateTime offsetDateTime2 = odd.f9227o;
OffsetDateTime offsetDateTime3 = odd.g;
if (offsetDateTime2 == null || offsetDateTime3 == null) {
str3 = "";
} else {
str3 = String.format("%s - %s", Arrays.copyOf(new Object[]{c17172uX.a(offsetDateTime2), c17172uX.a(offsetDateTime3)}, 2));
C14957gcv.c((Object) str3, "");
}
if (str3.length() == 0) {
str4 = "";
} else {
String string = c17172uX.e.getString(C15715hv.tOB.investment_discover_recommend_ipo_date, str3);
C14957gcv.c((Object) string, "");
str4 = string;
}
arrayList7.add(new C0839Pq(str14, b_2, str16, str18, str19, str2, str22, enumC0823Pg2, str25, str4));
}
arrayList2 = arrayList7;
} else {
arrayList2 = null;
}
c0837Po.g = arrayList2;
c0837Po.i = c17172uX.a(jqr2.f);
List<Xfj> list5 = jqr2.c;
if (list5 != null) {
C14957gcv.e(list5, "");
List<Xfj> list6 = list5;
C14957gcv.e(list6, "");
ArrayList arrayList8 = new ArrayList(list6 instanceof Collection ? list6.size() : 10);
for (Xfj xfj : list6) {
C14957gcv.e(xfj, "");
String str26 = xfj.e;
if (str26 == null) {
str26 = "";
}
String str27 = xfj.c;
if (str27 == null) {
str27 = "";
}
List<OZD> list7 = xfj.d;
if (list7 != null) {
C14957gcv.e(list7, "");
List<OZD> list8 = list7;
C14957gcv.e(list8, "");
ArrayList arrayList9 = new ArrayList(list8 instanceof Collection ? list8.size() : 10);
for (OZD ozd : list8) {
C14957gcv.e(ozd, "");
String str28 = ozd.a;
String str29 = str28 == null ? "" : str28;
String str30 = ozd.b;
String str31 = str30 == null ? "" : str30;
String str32 = ozd.f;
double doubleValue = (str32 == null || (d = gdZ.d(str32)) == null) ? 0.0d : d.doubleValue();
String str33 = ozd.f;
if (str33 != null) {
String a3 = C14813gH.a(str33);
StringBuilder sb = new StringBuilder();
sb.append(a3);
sb.append("%");
str = sb.toString();
} else {
str = null;
}
String str34 = str == null ? "" : str;
OffsetDateTime offsetDateTime4 = ozd.i;
String string2 = (offsetDateTime4 == null || (a = c17172uX.a(offsetDateTime4)) == null) ? null : c17172uX.e.getString(C15715hv.tOB.investment_discover_return_as_of_date, a);
String str35 = string2 == null ? "" : string2;
boolean z = ozd.d;
String str36 = ozd.e;
String str37 = str36 == null ? "" : str36;
List<ysd> list9 = ozd.c;
if (list9 != null) {
ArrayList arrayList10 = new ArrayList();
for (Object obj : list9) {
String str38 = ((ysd) obj).e;
if (!(str38 == null || str38.length() == 0)) {
arrayList10.add(obj);
}
}
ArrayList arrayList11 = arrayList10;
C14957gcv.e(arrayList11, "");
ArrayList arrayList12 = arrayList11;
C14957gcv.e(arrayList12, "");
ArrayList arrayList13 = new ArrayList(arrayList12.size());
Iterator it = arrayList12.iterator();
while (it.hasNext()) {
arrayList13.add(C17172uX.b((ysd) it.next()));
}
arrayList5 = arrayList13;
} else {
arrayList5 = null;
}
arrayList9.add(new C0843Pt(str29, str31, doubleValue, str34, str35, z, str37, arrayList5));
}
arrayList4 = arrayList9;
} else {
arrayList4 = null;
}
arrayList8.add(new C0842Ps(str26, str27, arrayList4));
}
arrayList3 = arrayList8;
if (!arrayList3.isEmpty()) {
arrayList3.get(0).a = true;
}
} else {
arrayList3 = null;
}
c0837Po.f = arrayList3;
OffsetDateTime offsetDateTime5 = jqr2.a;
if (offsetDateTime5 != null && (k = c17172uX.k(offsetDateTime5)) != null) {
str5 = k;
}
c0837Po.a = str5;
return c0837Po;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C15815io c15815io) {
super(1);
this.d = c15815io;
}
}
}