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.Iterator; import java.util.List; /* renamed from: o.xy, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17586xy extends BaseAssetsDisplayMapper { private final String a; private final C17477xA b; private final C17574xu d; private final C17496xK g; private final C17504xN i; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C17586xy(Resources resources, SharedPreferences sharedPreferences, String str, C17477xA c17477xA, C17496xK c17496xK, C17504xN c17504xN, C17574xu c17574xu, String str2) { super(resources, sharedPreferences, str); C14957gcv.e(str, ""); C14957gcv.e(c17477xA, ""); C14957gcv.e(c17496xK, ""); C14957gcv.e(c17504xN, ""); C14957gcv.e(c17574xu, ""); C14957gcv.e(str2, ""); this.b = c17477xA; this.g = c17496xK; this.i = c17504xN; this.d = c17574xu; this.a = str2; } public final C0951Sd d(rzT rzt) { C0953Se c0953Se; List list; RZ rz; RX rx; C14957gcv.e(rzt, ""); String str = rzt.e; int i = rzt.h; String str2 = rzt.n; String str3 = rzt.f; if (C14957gcv.b((Object) this.a, (Object) "th")) { str3 = str2; } String str4 = rzt.c; String str5 = rzt.i; C0532IwX c0532IwX = rzt.d; if (c0532IwX != null) { C17477xA c17477xA = this.b; C14957gcv.e(c0532IwX, ""); String str6 = c0532IwX.f; String str7 = c0532IwX.a; if (!C14957gcv.b((Object) c17477xA.b, (Object) "th")) { str6 = str7; } String str8 = str6 == null ? "" : str6; String str9 = c0532IwX.d; String str10 = c0532IwX.h; String str11 = str10 == null ? "" : str10; String str12 = c0532IwX.b; String str13 = c0532IwX.g; String str14 = c0532IwX.c; String str15 = str14 == null ? "" : str14; String str16 = c0532IwX.j; String str17 = c0532IwX.i; c0953Se = new C0953Se(str8, str9, str11, str12, str13, str15, str16, str17 == null ? "" : str17); } else { c0953Se = null; } C7806cvL c7806cvL = rzt.j; C0960Si a = c7806cvL != null ? this.g.a(c7806cvL) : null; List list2 = rzt.l; if (list2 != null) { List list3 = list2; C14957gcv.e(list3, ""); List arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10); Iterator it = list3.iterator(); while (it.hasNext()) { arrayList.add(this.i.e((tDs) it.next())); } list = arrayList; } else { list = C14851gaI.c; } String str18 = rzt.b; String str19 = str18 == null ? "" : str18; Ddv ddv = rzt.a; if (ddv != null) { C17574xu c17574xu = this.d; C14957gcv.e(ddv, ""); String b_ = c17574xu.b_(ddv.b); C14957gcv.c((Object) b_, ""); OBr oBr = ddv.c; if (oBr != null) { C17588xz c17588xz = c17574xu.d; C14957gcv.e(oBr, ""); rx = new RX(oBr.e, oBr.c); } else { rx = null; } rz = new RZ(b_, rx, ddv.e, ddv.a); } else { rz = null; } String str20 = rzt.g; if (str20 == null) { str20 = ""; } return new C0951Sd(str, i, str3, str4, str5, c0953Se, a, list, str19, rz, str20); } }