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

107 lines
3.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import o.C15715hv;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.zT, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17747zT extends C16157lj {
private final Resources b;
private final SharedPreferences d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17747zT(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
this.b = resources;
this.d = sharedPreferences;
}
public final List<C1042Ui> c(String str, String str2) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
ArrayList arrayList = new ArrayList();
String str3 = str2;
int i = 1;
if (!(str3 == null || gdZ.d((CharSequence) str3))) {
OffsetDateTime parse = OffsetDateTime.parse(str);
int parseInt = Integer.parseInt(str2) - 1;
String e = e(C15715hv.tOB.deposit_detail_filter_this_month);
C14957gcv.c((Object) e, "");
arrayList.add(new C1042Ui(e, 0));
if (parseInt > 0) {
while (true) {
String h = h(parse.minusMonths(i));
C14957gcv.c((Object) h, "");
arrayList.add(new C1042Ui(h, i));
if (i == parseInt) {
break;
}
i++;
}
}
}
return arrayList;
}
public final C1046Ul e(C15816ioh c15816ioh) {
String str;
String str2;
C17747zT c17747zT = this;
String str3 = "";
C14957gcv.e(c15816ioh, "");
String str4 = c15816ioh.c;
String str5 = c15816ioh.d;
String str6 = c15816ioh.e;
List<Cpk> list = c15816ioh.a;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
Iterator it = list.iterator();
while (it.hasNext()) {
Cpk cpk = (Cpk) it.next();
String e = c17747zT.e(cpk.g);
String a = c17747zT.a(cpk.f);
if (a == null) {
a = "-";
}
String str7 = a;
String str8 = cpk.h;
String c = c(str8 != null ? Double.valueOf(Double.parseDouble(str8)) : null);
String str9 = cpk.j;
String str10 = str9 == null ? str3 : str9;
String str11 = cpk.i;
String str12 = cpk.a;
String c2 = c(str12 != null ? Double.valueOf(Double.parseDouble(str12)) : null);
String str13 = cpk.d;
String str14 = str13 == null ? str3 : str13;
String str15 = cpk.n;
String str16 = cpk.c;
Iterator it2 = it;
String str17 = cpk.b;
C15598gwj c15598gwj = cpk.e;
String str18 = c15598gwj != null ? c15598gwj.a : null;
C15598gwj c15598gwj2 = cpk.e;
if (c15598gwj2 != null) {
str2 = c15598gwj2.b;
str = str3;
} else {
str = str3;
str2 = null;
}
arrayList.add(new C1062Uu(e, str7, c, str10, str11, c2, str14, str15, str16, str17, new C1040Uh(str18, str2)));
c17747zT = this;
it = it2;
str3 = str;
}
return new C1046Ul(str4, str5, str6, arrayList);
}
}