package o; import android.content.SharedPreferences; import android.content.res.Resources; import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.List; import o.C15715hv; /* renamed from: o.og, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16474og extends BaseAssetsDisplayMapper { public final Resources a; private final String b; public final InterfaceC3521azC d; private final SharedPreferences j; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16474og(Resources resources, SharedPreferences sharedPreferences, String str, InterfaceC3521azC interfaceC3521azC) { super(resources, sharedPreferences, str); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); C14957gcv.e(str, ""); C14957gcv.e(interfaceC3521azC, ""); this.a = resources; this.j = sharedPreferences; this.b = str; this.d = interfaceC3521azC; } /* renamed from: o.og$HBt */ /* loaded from: classes3.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } public static List e(int i, List list) { ArrayList arrayList = new ArrayList(); Iterator it = list.iterator(); while (it.hasNext()) { arrayList.add(new HB(YX.ITEM, "", i, "", (HD) it.next())); } return arrayList; } public static HB b(int i, String str, String str2) { return new HB(YX.TITLE, str2, i, str, null); } public final List a(List list) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { arrayList.add(d((TXk) it.next())); } return arrayList; } private final HD d(TXk tXk) { double d; String format; String string; double d2 = tXk.g; String str = tXk.a; String str2 = tXk.i; String str3 = tXk.f; String str4 = tXk.c; int i = tXk.j; double d3 = tXk.e; int i2 = tXk.d; int i3 = tXk.h; int i4 = tXk.b; String str5 = (String) C6583cXR.c(new Object[]{new BigDecimal(String.valueOf(tXk.g))}, 453807656, -453807652, (int) System.currentTimeMillis()); if (C14957gcv.b((Object) tXk.c, (Object) "FIXED")) { gcH gch = gcH.d; d = d2; String string2 = this.a.getString(C15715hv.tOB.auto_p2p_select_purchase_pts); C14957gcv.c((Object) string2, ""); format = String.format(string2, Arrays.copyOf(new Object[]{C6583cXR.b(String.valueOf(tXk.j))}, 1)); C14957gcv.c((Object) format, ""); } else { d = d2; gcH gch2 = gcH.d; String string3 = this.a.getString(C15715hv.tOB.auto_p2p_select_purchase_pts_max); C14957gcv.c((Object) string3, ""); format = String.format(string3, Arrays.copyOf(new Object[]{C6583cXR.b(String.valueOf(tXk.j))}, 1)); C14957gcv.c((Object) format, ""); } String str6 = format; int i5 = (int) (tXk.e * 100.0d); if (C14957gcv.b((Object) tXk.c, (Object) "FIXED")) { string = this.a.getString(C15715hv.tOB.auto_p2p_select_purchase_fixed_point); C14957gcv.c((Object) string, ""); } else { string = this.a.getString(C15715hv.tOB.auto_p2p_select_purchase_flexible_points); C14957gcv.c((Object) string, ""); } String str7 = string; double d4 = tXk.j; double d5 = tXk.e; String str8 = (String) C6583cXR.c(new Object[]{Double.valueOf(tXk.j * tXk.e)}, -150997759, 150997764, (int) System.currentTimeMillis()); C14957gcv.c((Object) str5, ""); C14957gcv.c((Object) str8, ""); return new HD(str, str4, d3, i2, i3, i, str2, d, str3, str5, str6, String.valueOf(i5), i4, str7, d5 * d4, str8); } static { new HBt((byte) 0); } }