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

149 lines
4.7 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import o.C15715hv;
import o.ES;
import o.EW;
import o.QK;
import o.QN;
import o.QO;
import o.QR;
/* renamed from: o.Ae, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0147Ae extends C16181lx {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C0147Ae(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
}
public final ES e(C1071Uz c1071Uz, boolean z) {
C14957gcv.e(c1071Uz, "");
ES.IeS a = ES.a();
a.c = e(c1071Uz, z, false);
ES es = new ES(a, (byte) 0);
C14957gcv.c(es, "");
return es;
}
public final EW a(C1071Uz c1071Uz, C17122uBC c17122uBC) {
C14957gcv.e(c1071Uz, "");
C14957gcv.e(c17122uBC, "");
ArrayList arrayList = new ArrayList();
QN.HBt a = QN.a();
a.f = e(C15715hv.tOB.prepaid_cash_out_success_title);
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
String d = d(c17122uBC.a);
if (d == null) {
d = "-";
}
a.a = d;
a.c = c(C15715hv.tOB.reference_id, c17122uBC.c);
a.e = C15715hv.LWm.dark_gray;
arrayList.add(new QN(a, YD.REVAMP_SUCCESS_HEADER, (byte) 0));
arrayList.add(new QQ(true));
arrayList.addAll(e(c1071Uz, true, true));
EW.LWm b = EW.b(arrayList, "PrepaidCashOut_".concat(String.valueOf(c17122uBC.c)));
b.n = true;
gcH gch = gcH.d;
String string = this.e.getString(C15715hv.tOB.prepaid_cash_out_success_balance);
C14957gcv.c((Object) string, "");
String format = String.format(string, Arrays.copyOf(new Object[]{c(Double.valueOf(c17122uBC.b))}, 1));
C14957gcv.c((Object) format, "");
b.f = format;
EW c = b.c();
C14957gcv.c(c, "");
return c;
}
private final List<EM> e(C1071Uz c1071Uz, boolean z, boolean z2) {
String str;
String str2;
this.a.clear();
if (c1071Uz.e.l != null && c1071Uz.e.l.length() != 0) {
str = c1071Uz.e.l;
} else {
str = c1071Uz.e.p.c;
}
if (!c1071Uz.d) {
str2 = "";
} else {
str2 = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
}
C14957gcv.c((Object) str2, "");
QK.LWm e = QK.e();
e.g = this.e.getString(C15715hv.tOB.from);
e.h = str;
e.a = b(c1071Uz.e.i, c1071Uz.e.g);
e.c = str2;
QK qk = new QK(e, (byte) 0);
QK.LWm e2 = QK.e();
e2.g = this.e.getString(C15715hv.tOB.to);
e2.h = c1071Uz.a.d;
e2.a = c(c1071Uz.f, z);
e2.c = str2;
if (z2) {
this.a.add(qk);
e2.k = true;
this.a.add(new QK(e2, (byte) 0));
this.a.add(new QQ(true));
QO.IeS a = QO.a();
a.g = this.e.getString(C15715hv.tOB.amount);
a.h = c(C6583cXR.c(c1071Uz.c));
a.l = true;
this.a.add(a.d());
} else {
this.a.add(qk);
this.a.add(new QQ());
this.a.add(new QK(e2, (byte) 0));
this.a.add(new QQ());
QO.IeS a2 = QO.a();
a2.g = this.e.getString(C15715hv.tOB.amount);
a2.h = c(C6583cXR.c(c1071Uz.c));
this.a.add(a2.d());
this.a.add(new QQ());
}
boolean z3 = c1071Uz.a.a > 0.0d;
QO.IeS a3 = QO.a();
a3.g = this.e.getString(C15715hv.tOB.prepaid_cash_out_fee);
a3.h = c(Double.valueOf(c1071Uz.a.a));
QO d = a3.d();
if (c1071Uz.b.length() != 0) {
if (z2) {
QO.IeS a4 = QO.a();
a4.g = this.e.getString(C15715hv.tOB.prepaid_cash_out_fee);
a4.h = c(Double.valueOf(c1071Uz.a.a));
a4.k = true;
if (!z3) {
a4.m = true;
}
this.a.add(a4.d());
this.a.add(new QQ(true));
} else {
this.a.add(d);
this.a.add(new QQ());
}
QR.LWm b = QR.b();
b.g = this.e.getString(C15715hv.tOB.prepaid_cash_out_note);
b.e = c1071Uz.b;
b.n = true;
if (z2) {
b.j = true;
}
this.a.add(new QR(b, (byte) 0));
} else {
this.a.add(d);
}
List<EM> list = this.a;
C14957gcv.c(list, "");
return list;
}
}