package o; import android.content.SharedPreferences; import android.content.res.Resources; import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper; import java.util.ArrayList; import java.util.Collection; import java.util.List; import o.C15715hv; /* renamed from: o.nh, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16356nh extends BaseAssetsDisplayMapper { private final String a; private final InterfaceC3521azC b; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16356nh(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 = str; this.b = interfaceC3521azC; } /* renamed from: o.nh$Sts */ /* loaded from: classes3.dex */ public static final class Sts { private Sts() { } public /* synthetic */ Sts(byte b) { this(); } } public final C0430Gj b(String str, String str2, String str3, C0367Fb c0367Fb, C0433Gl c0433Gl) { ArrayList arrayList; String e; boolean z; Double d; C14957gcv.e(c0367Fb, ""); C14957gcv.e(c0433Gl, ""); C0430Gj c0430Gj = new C0430Gj((byte) 0); c0430Gj.f8183o = c0367Fb.S; c0430Gj.d = c0367Fb.g; c0430Gj.f = String.format("%s %s%s %s %s", c0367Fb.s, c0367Fb.t, "xx", "xxxx", c0367Fb.r); c0430Gj.e = c0433Gl.i; c0430Gj.n = c0433Gl.d; Double d2 = c0433Gl.n; c0430Gj.q = d2 != null ? d2.doubleValue() : 0.0d; c0430Gj.t = c0433Gl.k; Double d3 = c0433Gl.b; c0430Gj.k = d3 != null ? d3.doubleValue() : 0.0d; c0430Gj.b = String.format("%s %s", c0433Gl.h, this.e.getString(C15715hv.tOB.month_label)); c0430Gj.r = str; c0430Gj.h = c0433Gl.a; c0430Gj.y = c0433Gl.p; c0430Gj.l = c0433Gl.l; c0430Gj.p = c0433Gl.m; c0430Gj.s = str2; List list = c0433Gl.t; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (GH gh : list2) { C0421Gf c0421Gf = gh.c; C0448Gt c0448Gt = gh.d; C0449Gu c0449Gu = new C0449Gu((byte) 0); c0449Gu.a = c0421Gf != null ? c0421Gf.e : null; c0449Gu.e = c0421Gf != null ? c0421Gf.d : null; c0449Gu.c = c0421Gf != null ? c0421Gf.b : null; c0449Gu.j = c0421Gf != null ? c0421Gf.i : null; c0449Gu.i = (c0421Gf == null || (d = c0421Gf.h) == null) ? 0.0d : d.doubleValue(); c0449Gu.d = c0448Gt != null ? c0448Gt.d : 0.0d; c0449Gu.b = (String) C6583cXR.c(new Object[]{Double.valueOf(c0448Gt != null ? c0448Gt.d : 0.0d)}, -150997759, 150997764, (int) System.currentTimeMillis()); arrayList2.add(c0449Gu); } arrayList = arrayList2; } else { arrayList = new ArrayList(); } c0430Gj.j = arrayList; if (this.b.c()) { e = C6583cXR.e(str3, this.baseAzureURL); } else { e = C6583cXR.e(str3, "v1/staticcontents/"); } c0430Gj.m = e; c0430Gj.c = c0367Fb.A; if (!C14957gcv.b((Object) c0367Fb.T, (Object) "CDX")) { String str4 = c0433Gl.a; z = !(str4 == null || gdZ.d((CharSequence) str4)); } else { z = C14957gcv.b((Object) c0433Gl.e, (Object) "EFFECTIVE_RATE"); } c0430Gj.g = z; c0430Gj.i = c0367Fb.K; c0430Gj.a = c0367Fb.T; return c0430Gj; } static { new Sts((byte) 0); } }