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

100 lines
3.3 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.text.NumberFormat;
import java.util.List;
import java.util.Locale;
import o.C15715hv;
import o.PRA;
/* renamed from: o.nG, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16295nG extends C16157lj {
@InterfaceC13391fZD
public C16295nG(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
}
public final C0494Hx b(int i, EnumC16373nni enumC16373nni, C0367Fb c0367Fb, PNg pNg) {
C0494Hx c0494Hx = new C0494Hx();
c0494Hx.b = i;
c0494Hx.f = enumC16373nni;
c0494Hx.c = c0367Fb.g;
c0494Hx.k = c0367Fb.S;
c0494Hx.g = c0367Fb.q;
List<TBH> list = pNg.f;
List<TBH> list2 = pNg.b;
c0494Hx.i = pNg.c;
String str = null;
c0494Hx.n = (list == null || list.isEmpty()) ? null : a(list);
if (list2 != null && !list2.isEmpty()) {
str = h(cXG.d("yyyy-MM-dd", list2.get(0).b));
}
c0494Hx.f8204o = str;
c0494Hx.h = pNg.a;
c0494Hx.l = pNg.e;
c0494Hx.m = c0367Fb.ab;
c0494Hx.e = c0367Fb.W;
c0494Hx.d = c0367Fb.d;
c0494Hx.r = pNg.d;
return c0494Hx;
}
public final C0494Hx c(C0487Hs c0487Hs, PNg pNg) {
C0494Hx c0494Hx = new C0494Hx();
c0494Hx.b = c0487Hs.g;
c0494Hx.f = c0487Hs.i;
c0494Hx.c = c0487Hs.a;
c0494Hx.k = c0487Hs.c;
c0494Hx.g = c0487Hs.d;
List<TBH> list = pNg.f;
List<TBH> list2 = pNg.b;
c0494Hx.i = pNg.c;
String str = null;
c0494Hx.n = (list == null || list.isEmpty()) ? null : a(list);
if (list2 != null && !list2.isEmpty()) {
str = h(cXG.d("yyyy-MM-dd", list2.get(0).b));
}
c0494Hx.f8204o = str;
c0494Hx.h = pNg.a;
c0494Hx.l = pNg.e;
c0494Hx.m = c0487Hs.e;
c0494Hx.e = c0487Hs.h;
c0494Hx.d = c0487Hs.b;
c0494Hx.j = c0487Hs.f;
c0494Hx.r = pNg.d;
return c0494Hx;
}
public static /* synthetic */ C0486Hr a(C16295nG c16295nG, TBH tbh) {
uAa uaa = tbh.j;
String a = c16295nG.a(cXG.d("yyyy-MM-dd", tbh.b));
String str = uaa.a;
String string = c16295nG.e.getString(C15715hv.tOB.rewards_text, uaa.c);
int i = uaa.b;
int i2 = uaa.e;
StringBuilder sb = new StringBuilder();
sb.append(NumberFormat.getInstance(Locale.getDefault()).format(i));
sb.append(" - ");
sb.append(NumberFormat.getInstance(Locale.getDefault()).format(i2));
return new C0486Hr(str, string, sb.toString(), c16295nG.e.getString(C15715hv.tOB.expires_text, a), uaa.h, uaa.d);
}
private List<C0486Hr> a(List<TBH> list) {
YKU yku = new YKU(list);
return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.nJ
private C16295nG b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C16295nG.a(this.b, (TBH) obj);
}
{
this.b = this;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
}