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.Collection; import java.util.List; import o.C15715hv; import o.QG; import o.QK; import o.QO; import o.QR; /* renamed from: o.oi, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16480oi extends C16181lx { private final BaseAssetsDisplayMapper d; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16480oi(Resources resources, SharedPreferences sharedPreferences, BaseAssetsDisplayMapper baseAssetsDisplayMapper) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); C14957gcv.e(baseAssetsDisplayMapper, ""); this.d = baseAssetsDisplayMapper; } /* renamed from: o.oi$LWm */ /* loaded from: classes3.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } public final List d(HH hh, int i) { List list; HO ho; C14957gcv.e(hh, ""); this.a.clear(); boolean a = gdZ.a(YL.CREDIT_CARD_INSTALLMENT_PAYMENT_PLAN.code, hh.g, false); 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)); this.a.add(new QQ()); 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(); e2.e = true; HK hk3 = hh.j; e2.c = e(hk3 != null ? hk3.a : null, C15715hv.IeS.biller_place_holder); e2.d = C15715hv.IeS.biller_place_holder; 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(hh.c); this.a.add(a2.d()); this.a.add(new QQ()); if (z) { QO.IeS a3 = QO.a(); a3.g = e(C15715hv.tOB.auto_ccsof_input_fee_and_vat); a3.h = c(hh.e); this.a.add(a3.d()); this.a.add(new QQ()); 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; this.a.add(a4.d()); this.a.add(new QQ()); } } else { QO.IeS a5 = QO.a(); a5.g = this.e.getString(C15715hv.tOB.prepaid_cash_out_fee); a5.h = c(hh.e); this.a.add(a5.d()); this.a.add(new QQ()); } if (a && (ho = hh.d) != null) { QO.IeS a6 = QO.a(); a6.g = this.e.getString(C15715hv.tOB.duration); a6.h = this.e.getString(C15715hv.tOB.auto_ccsof_review_no_of_months, Integer.valueOf(ho.j)); this.a.add(a6.d()); this.a.add(new QQ()); QO.IeS a7 = QO.a(); a7.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("%"); a7.h = sb2.toString(); this.a.add(a7.d()); this.a.add(new QQ()); QO.IeS a8 = QO.a(); a8.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_total_payment); a8.h = c(Double.valueOf(ho.h)); this.a.add(a8.d()); 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.k = 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; this.a.add(e4.d()); this.a.add(new QQ(false)); QO.IeS a9 = QO.a(); a9.g = this.e.getString(C15715hv.tOB.auto_ccsof_input_monthly_payment); a9.h = c(Double.valueOf(ho.d)); this.a.add(a9.d()); this.a.add(new QQ()); } if (hh.b != null) { QR.LWm b = QR.b(); b.g = this.e.getString(C15715hv.tOB.auto_ccsof_review_email); b.n = true; b.e = hh.b; this.a.add(new QR(b, (byte) 0)); this.a.add(new QQ()); } if (hh.f != null) { QR.LWm b2 = QR.b(); b2.g = this.e.getString(C15715hv.tOB.purchase_remark); b2.n = true; b2.e = hh.f; this.a.add(new QR(b2, (byte) 0)); this.a.add(new QQ()); } if (hh.i != null) { QR.LWm b3 = QR.b(); b3.g = this.e.getString(C15715hv.tOB.prepaid_cash_out_note); b3.n = true; b3.e = hh.i; this.a.add(new QR(b3, (byte) 0)); } HN hn = hh.h; if (hn != null && (list = hn.c) != null) { list.isEmpty(); QG.RVV a10 = QG.a(); List list2 = hh.h.c; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (HU hu : list2) { arrayList.add(new XL(hu.c, hu.e, hu.a, hu.b, hu.d, null)); } a10.e = arrayList; this.a.add(new QG((QG.RVV) a10)); } List list3 = this.a; C14957gcv.c(list3, ""); return list3; } public static boolean k(String str) { return gdZ.a(YL.CREDIT_CARD_INSTALLMENT_PAYMENT_PLAN.code, str, false); } 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_; } static { new LWm((byte) 0); } }