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

94 lines
3.0 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 android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
import o.C15715hv;
import o.PRA;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.Ea, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0323Ea extends C16157lj {
@InterfaceC13391fZD
public C0323Ea(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
}
public final AbstractC1237Yr d(final C1299ZyL c1299ZyL, boolean z, boolean z2) {
String str;
List<C1222Yi> arrayList = new ArrayList<>();
try {
str = C6583cXR.VS_(null, C15715hv.IeS.bankicon_scb).toString();
} catch (NullPointerException unused) {
str = "";
}
if (c1299ZyL.c != null) {
YKU yku = new YKU(c1299ZyL.c);
arrayList = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, c1299ZyL) { // from class: o.DY
private C1299ZyL a;
private C0323Ea b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
C1222Yi e;
e = this.b.e((QFJ) obj, this.a.f);
return e;
}
{
this.b = this;
this.a = c1299ZyL;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
if (!z) {
C1223Yj c1223Yj = new C1223Yj();
c1223Yj.d = arrayList;
c1223Yj.i = qhK.SCB.toString().toUpperCase();
c1223Yj.e = str;
c1223Yj.h = qhK.SCB;
return c1223Yj;
}
zIf zif = c1299ZyL.i;
String str2 = zif.d != null ? zif.d.a : "";
if (!TextUtils.isEmpty(zif.b)) {
str2 = zif.b;
}
C1223Yj c1223Yj2 = new C1223Yj();
c1223Yj2.d = arrayList;
c1223Yj2.i = str2;
c1223Yj2.b = c(zif.c, z2);
c1223Yj2.e = str;
c1223Yj2.h = qhK.OWN;
c1223Yj2.c = zif.c;
return c1223Yj2;
}
/* JADX INFO: Access modifiers changed from: private */
public C1222Yi e(QFJ qfj, OffsetDateTime offsetDateTime) {
long j;
int i = qfj.b;
String str = "";
String a = qfj.d == null ? "" : a(qfj.d);
if (qfj.f != null) {
str = a(qfj.f);
}
try {
j = (long) ((qfj.d.until(offsetDateTime, gtH.DAYS) / qfj.d.until(qfj.f, gtH.DAYS)) * 100.0d);
} catch (NullPointerException unused) {
j = 0;
}
C1222Yi c1222Yi = new C1222Yi();
c1222Yi.b = String.valueOf(i);
c1222Yi.a = (String) C6583cXR.c(new Object[]{Double.valueOf(qfj.c)}, -150997759, 150997764, (int) System.currentTimeMillis());
c1222Yi.h = false;
c1222Yi.d = a;
c1222Yi.f = str;
c1222Yi.c = j;
return c1222Yi;
}
}