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

326 lines
11 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import o.C0671Lw;
import o.C15715hv;
import o.IV;
import o.LF;
/* renamed from: o.st, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16987st extends C16157lj {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C16987st(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
}
private static List<Integer> e(List<String> list) {
List<String> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
arrayList.add(Integer.valueOf(Integer.parseInt((String) it.next())));
}
return arrayList;
}
/* renamed from: o.st$HBt */
/* loaded from: classes3.dex */
public static final class HBt<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Integer num = ((C0609Ko) t).b;
Integer num2 = ((C0609Ko) t2).b;
if (num == num2) {
return 0;
}
if (num == null) {
return -1;
}
if (num2 == null) {
return 1;
}
return num.compareTo(num2);
}
}
/* renamed from: o.st$IeS */
/* loaded from: classes3.dex */
public static final class IeS<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Integer valueOf = Integer.valueOf(((C17180ucA) t).d);
Integer valueOf2 = Integer.valueOf(((C17180ucA) t2).d);
if (valueOf == valueOf2) {
return 0;
}
if (valueOf == null) {
return -1;
}
if (valueOf2 == null) {
return 1;
}
return valueOf.compareTo(valueOf2);
}
}
/* renamed from: o.st$LWm */
/* loaded from: classes3.dex */
public static final class LWm<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Integer valueOf = Integer.valueOf(((C17180ucA) t).d);
Integer valueOf2 = Integer.valueOf(((C17180ucA) t2).d);
if (valueOf == valueOf2) {
return 0;
}
if (valueOf == null) {
return -1;
}
if (valueOf2 == null) {
return 1;
}
return valueOf.compareTo(valueOf2);
}
}
/* renamed from: o.st$RVV */
/* loaded from: classes3.dex */
public static final class RVV<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Integer valueOf = Integer.valueOf(((C17180ucA) t).d);
Integer valueOf2 = Integer.valueOf(((C17180ucA) t2).d);
if (valueOf == valueOf2) {
return 0;
}
if (valueOf == null) {
return -1;
}
if (valueOf2 == null) {
return 1;
}
return valueOf.compareTo(valueOf2);
}
}
/* renamed from: o.st$Sts */
/* loaded from: classes3.dex */
public static final class Sts<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Integer num = ((C0609Ko) t).b;
Integer num2 = ((C0609Ko) t2).b;
if (num == num2) {
return 0;
}
if (num == null) {
return -1;
}
if (num2 == null) {
return 1;
}
return num.compareTo(num2);
}
}
public final List<IV> a(List<? extends C17180ucA> list) {
C14957gcv.e(list, "");
List<? extends C17180ucA> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2);
ArrayList arrayList2 = new ArrayList();
for (Object obj : arrayList) {
C17180ucA c17180ucA = (C17180ucA) obj;
if (C14957gcv.b((Object) "LOAN_INFORMATION", (Object) c17180ucA.c) && c17180ucA.g != null && c17180ucA.e != null) {
arrayList2.add(obj);
}
}
List a = C14881gav.a((Iterable) arrayList2, (Comparator) new IeS());
C14957gcv.e(a, "");
ArrayList arrayList3 = new ArrayList(a instanceof Collection ? a.size() : 10);
Iterator it = a.iterator();
while (it.hasNext()) {
arrayList3.add(c((C17180ucA) it.next()));
}
return C14881gav.d((Iterable) arrayList3);
}
public static List<C0609Ko> d(List<YFD> list) {
C14957gcv.e(list, "");
List<YFD> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (YFD yfd : list2) {
arrayList.add(new C0609Ko(yfd.c, yfd.d, Integer.valueOf(yfd.m)));
}
return C14881gav.d((Iterable) C14881gav.a((Iterable) arrayList, (Comparator) new Sts()));
}
public static String b(String str, List<? extends C17180ucA> list) {
Object obj;
C14957gcv.e(str, "");
C14957gcv.e(list, "");
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (C14957gcv.b((Object) str, (Object) ((C17180ucA) obj).a)) {
break;
}
}
C17180ucA c17180ucA = (C17180ucA) obj;
String str2 = c17180ucA != null ? c17180ucA.b : null;
return str2 == null ? "" : str2;
}
public static C0609Ko a(String str, List<? extends C17180ucA> list) {
Object obj;
C14957gcv.e(str, "");
C14957gcv.e(list, "");
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (C14957gcv.b((Object) str, (Object) ((C17180ucA) obj).a)) {
break;
}
}
C17180ucA c17180ucA = (C17180ucA) obj;
if ((c17180ucA != null ? c17180ucA.e : null) == null || c17180ucA.g == null) {
return null;
}
return new C0609Ko(c17180ucA.e, c17180ucA.g, 1);
}
private final IV c(C17180ucA c17180ucA) {
if (!C14957gcv.b((Object) c17180ucA.a, (Object) "REMARK")) {
return new IV(c17180ucA.b, c17180ucA.g);
}
String str = c17180ucA.b;
List singletonList = Collections.singletonList(new IV.Sts(c17180ucA.g, kVs.nX_(this.e, C15715hv.LWm.dark_gray, null)));
C14957gcv.c(singletonList, "");
return new IV(str, (List<IV.Sts>) singletonList);
}
public final C0623Kx a(Ufn ufn, String str) {
ArrayList e;
ArrayList e2;
C14957gcv.e(ufn, "");
C14957gcv.e(str, "");
C0671Lw.Sts e3 = C0671Lw.e();
e3.q = ufn.i;
e3.s = ufn.j;
e3.t = ufn.d;
e3.r = ufn.b;
e3.u = ufn.f;
List<RCl> list = ufn.e;
if (list != null) {
List<RCl> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
arrayList.add(Integer.valueOf(Integer.parseInt(((RCl) it.next()).c)));
}
e = arrayList;
} else {
e = e(ufn.g);
}
e3.p = e;
LF.HBt hBt = new LF.HBt();
hBt.e = ufn.i;
hBt.a = ufn.j;
List<RCl> list3 = ufn.e;
if (list3 == null) {
e2 = e(ufn.g);
} else {
ArrayList arrayList2 = new ArrayList();
for (Object obj : list3) {
if (Double.parseDouble(((RCl) obj).e) >= Double.parseDouble(str)) {
arrayList2.add(obj);
}
}
ArrayList arrayList3 = arrayList2;
C14957gcv.e(arrayList3, "");
ArrayList arrayList4 = new ArrayList(arrayList3.size());
Iterator it2 = arrayList3.iterator();
while (it2.hasNext()) {
arrayList4.add(Integer.valueOf(Integer.parseInt(((RCl) it2.next()).c)));
}
e2 = arrayList4;
}
hBt.b = e2;
List<LF> singletonList = Collections.singletonList(new LF(hBt, (byte) 0));
C14957gcv.c(singletonList, "");
e3.v = singletonList;
LB a = e3.a();
C14957gcv.d(a, "");
C0671Lw c0671Lw = (C0671Lw) a;
List<C17180ucA> list4 = ufn.a;
ArrayList arrayList5 = new ArrayList();
for (Object obj2 : list4) {
C17180ucA c17180ucA = (C17180ucA) obj2;
if (C14957gcv.b((Object) "LOAN_INFORMATION", (Object) c17180ucA.c) && c17180ucA.g != null && c17180ucA.e != null) {
arrayList5.add(obj2);
}
}
List a2 = C14881gav.a((Iterable) arrayList5, (Comparator) new LWm());
C14957gcv.e(a2, "");
ArrayList arrayList6 = new ArrayList(a2 instanceof Collection ? a2.size() : 10);
Iterator it3 = a2.iterator();
while (it3.hasNext()) {
arrayList6.add(c((C17180ucA) it3.next()));
}
List d = C14881gav.d((Iterable) arrayList6);
ArrayList arrayList7 = new ArrayList();
for (Object obj3 : list4) {
C17180ucA c17180ucA2 = (C17180ucA) obj3;
if (C14957gcv.b((Object) "PURPOSE_LOAN", (Object) c17180ucA2.c) && c17180ucA2.g != null && c17180ucA2.e != null) {
arrayList7.add(obj3);
}
}
List a3 = C14881gav.a((Iterable) arrayList7, (Comparator) new RVV());
C14957gcv.e(a3, "");
ArrayList arrayList8 = new ArrayList(a3 instanceof Collection ? a3.size() : 10);
Iterator it4 = a3.iterator();
while (it4.hasNext()) {
arrayList8.add(c((C17180ucA) it4.next()));
}
return new C0623Kx(c0671Lw, new C0590Kc(d, C14881gav.d((Iterable) arrayList8)));
}
public static List<C0609Ko> d(Lul lul) {
C14957gcv.e(lul, "");
List<JPY> list = lul.a;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (JPY jpy : list) {
arrayList.add(new C0609Ko(jpy.d, jpy.e, jpy.b));
}
return C14881gav.d((Iterable) C14881gav.a((Iterable) arrayList, (Comparator) new HBt()));
}
}