227 lines
7.7 KiB
Java
227 lines
7.7 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
import o.C15658hZO;
|
|
import o.C15715hv;
|
|
import o.QJ;
|
|
import o.QN;
|
|
import o.QO;
|
|
import o.QP;
|
|
import o.QR;
|
|
|
|
/* renamed from: o.tB, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C17003tB extends C16181lx {
|
|
private final C17283vX d;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C17003tB(Resources resources, SharedPreferences sharedPreferences, C17283vX c17283vX) {
|
|
super(resources, sharedPreferences);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
C14957gcv.e(c17283vX, "");
|
|
this.d = c17283vX;
|
|
}
|
|
|
|
public final EW d(C16517owV c16517owV, bTI bti) {
|
|
String i;
|
|
String b;
|
|
String e;
|
|
String i2;
|
|
C14957gcv.e(c16517owV, "");
|
|
C14957gcv.e(bti, "");
|
|
this.a.clear();
|
|
List<EM> list = this.a;
|
|
QN.HBt a = QN.a();
|
|
a.f = e(C15715hv.tOB.hml_slip_title);
|
|
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
|
|
a.h = e(C15715hv.tOB.hml_slip_subtitle);
|
|
a.a = d(c16517owV.c);
|
|
int i3 = C15715hv.tOB.debit_card_activation_success_ref;
|
|
Object[] objArr = new Object[1];
|
|
String str = c16517owV.j;
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
objArr[0] = str;
|
|
a.c = c(i3, objArr);
|
|
list.add(new QN(a, (byte) 0));
|
|
QO.IeS d = QO.d();
|
|
d.g = e(C15715hv.tOB.hml_slip_net_amount);
|
|
d.h = C6583cXR.i(c16517owV.f.h);
|
|
this.a.add(d.d());
|
|
this.a.add(new QQ());
|
|
String string = this.e.getString(C15715hv.tOB.hml_slip_to);
|
|
C14957gcv.c((Object) string, "");
|
|
C15890jRd c15890jRd = c16517owV.e;
|
|
String str2 = c15890jRd != null ? c15890jRd.b : null;
|
|
C15890jRd c15890jRd2 = c16517owV.e;
|
|
String i4 = i(c15890jRd2 != null ? c15890jRd2.c : null);
|
|
C14957gcv.c((Object) i4, "");
|
|
String obj = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
|
|
C14957gcv.c((Object) obj, "");
|
|
this.a.add(C17283vX.a(string, str2, i4, obj));
|
|
this.a.add(new QQ());
|
|
QO.IeS d2 = QO.d();
|
|
d2.g = e(C15715hv.tOB.hml_slip_loan_info);
|
|
d2.b = C15715hv.LWm.dark_gray;
|
|
this.a.add(d2.d());
|
|
this.a.add(new QQ());
|
|
QO.IeS d3 = QO.d();
|
|
d3.g = e(C15715hv.tOB.hml_slip_loan_amount);
|
|
d3.h = C6583cXR.i(c16517owV.f.i);
|
|
QO d4 = d3.d();
|
|
C14957gcv.c(d4, "");
|
|
this.a.add(d4);
|
|
this.a.add(new QQ());
|
|
QO.IeS d5 = QO.d();
|
|
d5.g = e(C15715hv.tOB.hml_slip_duration);
|
|
d5.h = c(C15715hv.tOB.hml_slip_duration_value, Integer.valueOf(c16517owV.f.a), c16517owV.f.g.e);
|
|
this.a.add(d5.d());
|
|
this.a.add(new QQ());
|
|
QJ.RVV c = QJ.c();
|
|
c.c = e(C15715hv.tOB.hml_review_confirmation_annual_interest_rate_title);
|
|
List<C0393Fnz> list2 = c16517owV.f.m;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
for (C0393Fnz c0393Fnz : list2) {
|
|
arrayList.add(new WY(c0393Fnz.a, c0393Fnz.d));
|
|
}
|
|
c.b = arrayList;
|
|
this.a.add(new QJ((QJ.RVV<?>) c));
|
|
this.a.add(new QQ());
|
|
QO.IeS d6 = QO.d();
|
|
d6.g = e(C15715hv.tOB.hml_slip_repayment);
|
|
String i5 = C6583cXR.i(c16517owV.f.f);
|
|
String str3 = c16517owV.f.g.a;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(i5);
|
|
sb.append("\n");
|
|
sb.append(str3);
|
|
d6.h = sb.toString();
|
|
this.a.add(d6.d());
|
|
this.a.add(new QQ());
|
|
List<EM> list3 = this.a;
|
|
QO.IeS d7 = QO.d();
|
|
d7.g = e(C15715hv.tOB.hml_slip_start_repay);
|
|
d7.h = a(c16517owV.f.n);
|
|
list3.add(d7.d());
|
|
QP.Sts a2 = QP.a();
|
|
a2.c = e(C15715hv.tOB.hml_summary_repayment_description);
|
|
this.a.add(new QP((QP.Sts<?>) a2));
|
|
this.a.add(new QQ());
|
|
QO.IeS d8 = QO.d();
|
|
d8.g = e(C15715hv.tOB.hml_slip_tax_and_fees);
|
|
d8.b = C15715hv.LWm.dark_gray;
|
|
this.a.add(d8.d());
|
|
this.a.add(new QQ());
|
|
QO.IeS d9 = QO.d();
|
|
d9.g = c(C15715hv.tOB.hml_slip_duty_stamp, c(Double.valueOf(c16517owV.f.b.a)));
|
|
if (C14957gcv.c(gdZ.d(c16517owV.f.b.b))) {
|
|
i = e(C15715hv.tOB.hml_offer_review_waived);
|
|
} else {
|
|
i = C6583cXR.i(c16517owV.f.b.b);
|
|
}
|
|
d9.h = i;
|
|
this.a.add(d9.d());
|
|
this.a.add(new QQ());
|
|
C15658hZO.Sts sts = c16517owV.f.d;
|
|
if (sts != null) {
|
|
QO.IeS d10 = QO.d();
|
|
d10.g = e(C15715hv.tOB.hml_slip_front_fee);
|
|
if (C14957gcv.c(gdZ.d(sts.b))) {
|
|
i2 = e(C15715hv.tOB.hml_offer_review_waived);
|
|
} else {
|
|
i2 = C6583cXR.i(sts.b);
|
|
}
|
|
d10.h = i2;
|
|
this.a.add(d10.d());
|
|
this.a.add(new QQ());
|
|
}
|
|
QO.IeS d11 = QO.d();
|
|
d11.g = e(C15715hv.tOB.hml_slip_transfer_fee);
|
|
if (C14957gcv.c(gdZ.d(c16517owV.f.k))) {
|
|
b = e(C15715hv.tOB.hml_offer_review_waived);
|
|
} else {
|
|
b = C6583cXR.b(c16517owV.f.k);
|
|
}
|
|
d11.h = b;
|
|
this.a.add(d11.d());
|
|
this.a.add(new QQ());
|
|
QO.IeS d12 = QO.d();
|
|
d12.g = e(C15715hv.tOB.hml_slip_account_info);
|
|
d12.b = C15715hv.LWm.dark_gray;
|
|
this.a.add(d12.d());
|
|
this.a.add(new QQ());
|
|
QR.LWm b2 = QR.b();
|
|
b2.g = e(C15715hv.tOB.hml_slip_receiving_account);
|
|
C15890jRd c15890jRd3 = c16517owV.e;
|
|
b2.e = i(c15890jRd3 != null ? c15890jRd3.c : null);
|
|
this.a.add(new QR(b2, (byte) 0));
|
|
this.a.add(new QQ());
|
|
C15890jRd c15890jRd4 = c16517owV.i;
|
|
if (c15890jRd4 != null) {
|
|
QR.LWm b3 = QR.b();
|
|
b3.g = e(C15715hv.tOB.hml_slip_repay_account);
|
|
b3.e = i(c15890jRd4.c);
|
|
this.a.add(new QR(b3, (byte) 0));
|
|
this.a.add(new QQ());
|
|
}
|
|
QR.LWm b4 = QR.b();
|
|
b4.g = e(C15715hv.tOB.hml_slip_repay_date);
|
|
int i6 = C15715hv.IeS.hml_icon_calendar;
|
|
String c2 = c(C15715hv.tOB.hml_slip_repayment_date_text, c16517owV.f.f9158o.b, c16517owV.f.g.d);
|
|
b4.d = i6;
|
|
b4.f = c2;
|
|
this.a.add(new QR(b4, (byte) 0));
|
|
this.a.add(new QQ());
|
|
List<EM> list4 = this.a;
|
|
QR.LWm b5 = QR.b();
|
|
int i7 = Sts.a[bti.ordinal()];
|
|
if (i7 == 1) {
|
|
e = e(C15715hv.tOB.hml_slip_email);
|
|
} else {
|
|
if (i7 != 2) {
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
e = e(C15715hv.tOB.hml_bo_slip_email);
|
|
}
|
|
b5.g = e;
|
|
b5.e = c16517owV.d;
|
|
list4.add(new QR(b5, (byte) 0));
|
|
List<EM> list5 = this.a;
|
|
String str4 = c16517owV.j;
|
|
if (str4 == null) {
|
|
str4 = "";
|
|
}
|
|
EW c3 = EW.b(list5, str4).c();
|
|
C14957gcv.c(c3, "");
|
|
return c3;
|
|
}
|
|
|
|
/* renamed from: o.tB$Sts */
|
|
/* loaded from: classes3.dex */
|
|
public final /* synthetic */ class Sts {
|
|
public static final int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[bTI.values().length];
|
|
try {
|
|
iArr[bTI.CONSUMER.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[bTI.BUSINESS_OWNER.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
a = iArr;
|
|
}
|
|
}
|
|
}
|