265 lines
9.4 KiB
Java
265 lines
9.4 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import android.net.Uri;
|
|
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import o.C15715hv;
|
|
import o.EW;
|
|
import o.QG;
|
|
import o.QK;
|
|
import o.QN;
|
|
import o.QO;
|
|
import o.QR;
|
|
|
|
/* renamed from: o.oo, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C16493oo extends C16181lx {
|
|
private final BaseAssetsDisplayMapper d;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C16493oo(Resources resources, SharedPreferences sharedPreferences, BaseAssetsDisplayMapper baseAssetsDisplayMapper) {
|
|
super(resources, sharedPreferences);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
C14957gcv.e(baseAssetsDisplayMapper, "");
|
|
this.d = baseAssetsDisplayMapper;
|
|
}
|
|
|
|
public final EW c(HH hh, kVd kvd, int i) {
|
|
String c;
|
|
String format;
|
|
List<HU> list;
|
|
C14957gcv.e(hh, "");
|
|
C14957gcv.e(kvd, "");
|
|
ArrayList arrayList = new ArrayList();
|
|
QN.HBt a = QN.a();
|
|
a.f = e(C15715hv.tOB.successful_purchase_payment);
|
|
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
|
|
String d = d(kvd.c);
|
|
if (d == null) {
|
|
d = "-";
|
|
}
|
|
a.a = d;
|
|
a.c = c(C15715hv.tOB.reference_id, kvd.d);
|
|
a.e = C15715hv.LWm.dark_gray;
|
|
arrayList.add(new QN(a, YD.REVAMP_SUCCESS_HEADER, (byte) 0));
|
|
arrayList.add(new QQ(true));
|
|
this.a.clear();
|
|
boolean z = gdZ.a(YL.CREDIT_CARD_FULL_AMOUNT.code, hh.g, false) && i == 102;
|
|
QK.LWm e = QK.e();
|
|
e.g = this.e.getString(C15715hv.tOB.from);
|
|
HI hi = hh.k;
|
|
e.h = hi != null ? hi.e : null;
|
|
HI hi2 = hh.k;
|
|
String str = hi2 != null ? hi2.c : null;
|
|
HI hi3 = hh.k;
|
|
e.a = b(str, hi3 != null ? hi3.b : null);
|
|
e.e = true;
|
|
HI hi4 = hh.k;
|
|
e.c = e(hi4 != null ? hi4.d : null, C15715hv.IeS.ic_bill_credit_card);
|
|
e.d = C15715hv.IeS.ic_bill_credit_card;
|
|
this.a.add(new QK(e, (byte) 0));
|
|
QK.LWm e2 = QK.e();
|
|
e2.g = this.e.getString(C15715hv.tOB.to);
|
|
HK hk = hh.j;
|
|
e2.h = hk != null ? hk.e : null;
|
|
String string = this.e.getString(C15715hv.tOB.reference_1);
|
|
HK hk2 = hh.j;
|
|
String str2 = hk2 != null ? hk2.d : null;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(string);
|
|
sb.append(" : ");
|
|
sb.append(str2);
|
|
e2.a = sb.toString();
|
|
HK hk3 = hh.j;
|
|
e2.c = e(hk3 != null ? hk3.a : null, C15715hv.IeS.biller_place_holder);
|
|
e2.d = C15715hv.IeS.biller_place_holder;
|
|
e2.k = true;
|
|
this.a.add(new QK(e2, (byte) 0));
|
|
if (z) {
|
|
QO.IeS a2 = QO.a();
|
|
a2.g = this.e.getString(C15715hv.tOB.amount);
|
|
a2.h = c(hh.c);
|
|
QO d2 = a2.d();
|
|
this.a.add(new QQ(true));
|
|
this.a.add(d2);
|
|
QO.IeS a3 = QO.a();
|
|
a3.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_fee_and_vat);
|
|
a3.h = c(hh.e);
|
|
QO d3 = a3.d();
|
|
this.a.add(new QQ(true));
|
|
this.a.add(d3);
|
|
if (hh.a != null) {
|
|
QO.IeS a4 = QO.a();
|
|
a4.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_annual_interest_rate);
|
|
a4.h = hh.a;
|
|
QO d4 = a4.d();
|
|
this.a.add(new QQ(true));
|
|
this.a.add(d4);
|
|
}
|
|
} else {
|
|
QO.IeS a5 = QO.a();
|
|
a5.g = this.e.getString(C15715hv.tOB.amount);
|
|
a5.h = c(hh.c);
|
|
a5.l = true;
|
|
QO d5 = a5.d();
|
|
this.a.add(new QQ(true));
|
|
this.a.add(d5);
|
|
QO.IeS a6 = QO.a();
|
|
a6.g = this.e.getString(C15715hv.tOB.prepaid_cash_out_fee);
|
|
if (hh.e != null && hh.e.doubleValue() > 0.0d) {
|
|
c = c(hh.e);
|
|
C14957gcv.c((Object) c, "");
|
|
} else {
|
|
c = c(Double.valueOf(0.0d));
|
|
C14957gcv.c((Object) c, "");
|
|
}
|
|
a6.h = c;
|
|
a6.k = true;
|
|
if (hh.e == null || hh.e.doubleValue() <= 0.0d) {
|
|
a6.m = true;
|
|
}
|
|
this.a.add(a6.d());
|
|
}
|
|
HO ho = hh.d;
|
|
if (ho != null) {
|
|
QO.IeS a7 = QO.a();
|
|
a7.g = this.e.getString(C15715hv.tOB.duration);
|
|
a7.h = this.e.getString(C15715hv.tOB.auto_ccsof_review_no_of_months, Integer.valueOf(ho.j));
|
|
QO d6 = a7.d();
|
|
this.a.add(new QQ(true));
|
|
this.a.add(d6);
|
|
QO.IeS a8 = QO.a();
|
|
a8.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_monthly_interest_rate);
|
|
String i2 = i(Double.valueOf(ho.b));
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(i2);
|
|
sb2.append("%");
|
|
a8.h = sb2.toString();
|
|
QO d7 = a8.d();
|
|
this.a.add(new QQ(true));
|
|
this.a.add(d7);
|
|
QO.IeS a9 = QO.a();
|
|
a9.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_total_payment);
|
|
a9.h = c(Double.valueOf(ho.h));
|
|
a9.l = true;
|
|
QO d8 = a9.d();
|
|
this.a.add(new QQ(true));
|
|
this.a.add(d8);
|
|
QO.IeS e3 = QO.e(YD.SIMPLE_SUB_ITEM);
|
|
e3.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_principal);
|
|
e3.h = c(hh.c);
|
|
e3.n = true;
|
|
e3.l = true;
|
|
this.a.add(e3.d());
|
|
QO.IeS e4 = QO.e(YD.SIMPLE_SUB_ITEM);
|
|
e4.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_interest);
|
|
e4.h = c(Double.valueOf(ho.a));
|
|
e4.n = true;
|
|
e4.k = true;
|
|
this.a.add(e4.d());
|
|
QO.IeS a10 = QO.a();
|
|
a10.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_monthly_payment);
|
|
a10.h = c(Double.valueOf(ho.d));
|
|
QO d9 = a10.d();
|
|
this.a.add(new QQ(true));
|
|
this.a.add(d9);
|
|
}
|
|
String str3 = hh.b;
|
|
if (str3 != null && str3.length() != 0) {
|
|
QR.LWm b = QR.b();
|
|
b.g = this.e.getString(C15715hv.tOB.auto_ccsof_review_email);
|
|
b.n = true;
|
|
b.e = hh.b;
|
|
QR qr = new QR(b, (byte) 0);
|
|
this.a.add(new QQ(true));
|
|
this.a.add(qr);
|
|
}
|
|
String str4 = hh.f;
|
|
if (str4 != null && str4.length() != 0) {
|
|
QR.LWm b2 = QR.b();
|
|
b2.g = this.e.getString(C15715hv.tOB.purchase_remark);
|
|
b2.n = true;
|
|
b2.e = hh.f;
|
|
QR qr2 = new QR(b2, (byte) 0);
|
|
this.a.add(new QQ(true));
|
|
this.a.add(qr2);
|
|
}
|
|
String str5 = hh.i;
|
|
if (str5 != null && str5.length() != 0) {
|
|
QR.LWm b3 = QR.b();
|
|
b3.g = this.e.getString(C15715hv.tOB.prepaid_cash_out_note);
|
|
b3.n = true;
|
|
b3.e = hh.i;
|
|
QR qr3 = new QR(b3, (byte) 0);
|
|
this.a.add(new QQ(true));
|
|
this.a.add(qr3);
|
|
}
|
|
HN hn = hh.h;
|
|
if (hn != null && (list = hn.c) != null) {
|
|
list.isEmpty();
|
|
QG.RVV a11 = QG.a();
|
|
List<HU> list2 = hh.h.c;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
for (HU hu : list2) {
|
|
arrayList2.add(new XL(hu.c, hu.e, hu.a, hu.b, hu.d, null));
|
|
}
|
|
a11.e = arrayList2;
|
|
QG qg = new QG((QG.RVV<?>) a11);
|
|
this.a.add(new QQ(true));
|
|
this.a.add(qg);
|
|
}
|
|
List<EM> list3 = this.a;
|
|
C14957gcv.c(list3, "");
|
|
arrayList.addAll(list3);
|
|
if (gdZ.a(hh.g, YL.CREDIT_CARD_INSTALLMENT_PAYMENT_PLAN.code, false)) {
|
|
format = this.e.getString(C15715hv.tOB.txv_deejung_installments_updation_text);
|
|
C14957gcv.c((Object) format, "");
|
|
} else {
|
|
gcH gch = gcH.d;
|
|
String string2 = this.e.getString(C15715hv.tOB.deals_buy_success_extra_text_remaining_balance);
|
|
C14957gcv.c((Object) string2, "");
|
|
format = String.format(string2, Arrays.copyOf(new Object[]{c(kvd.i)}, 1));
|
|
C14957gcv.c((Object) format, "");
|
|
}
|
|
EW.LWm b4 = EW.b(arrayList, "CcSof_".concat(String.valueOf(kvd.d)));
|
|
b4.n = true;
|
|
b4.f = format;
|
|
b4.l = EnumC1276Zl.DEFAULT;
|
|
EW c2 = b4.c();
|
|
C14957gcv.c(c2, "");
|
|
return c2;
|
|
}
|
|
|
|
public static List<QI> a(List<tlc> list) {
|
|
if (list == null) {
|
|
return null;
|
|
}
|
|
List<tlc> list2 = list;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
for (tlc tlcVar : list2) {
|
|
arrayList.add(new QI(tlcVar.a, tlcVar.e));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
private final String e(String str, int i) {
|
|
String str2;
|
|
String b_ = this.d.b_(str);
|
|
Uri VR_ = C6583cXR.VR_(i);
|
|
if (VR_ == null || (str2 = VR_.toString()) == null) {
|
|
str2 = "";
|
|
}
|
|
String str3 = b_;
|
|
return (str3 == null || str3.length() == 0) ? str2 : b_;
|
|
}
|
|
}
|