what-the-bank/sources/o/C17439wm.java

438 lines
13 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import o.C0907Rf;
import o.C15715hv;
import o.LhO;
import o.PRA;
/* renamed from: o.wm, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17439wm extends BaseAssetsDisplayMapper {
private String a;
private C0289Dh b;
private C0297Dm d;
private C17355wA h;
private C0334Ei j;
/* JADX INFO: Access modifiers changed from: package-private */
@InterfaceC13391fZD
public C17439wm(Resources resources, SharedPreferences sharedPreferences, C0297Dm c0297Dm, C17355wA c17355wA, C0289Dh c0289Dh, C0334Ei c0334Ei, String str, String str2) {
super(resources, sharedPreferences, str);
this.d = c0297Dm;
this.h = c17355wA;
this.b = c0289Dh;
this.j = c0334Ei;
this.a = str2;
}
public final C0907Rf d(List<uxC> list, int i, final String str) {
final C0907Rf c0907Rf = new C0907Rf(i);
YKU yku = new YKU(list);
new YKU(yku.a, new C17745zRk(yku.b, xNZ.a(new InterfaceC1244Ytw() { // from class: o.ww
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
int i2;
i2 = ((uxC) obj).f9272o;
return Integer.valueOf(i2);
}
}))).d(new qsu(this, c0907Rf, str) { // from class: o.wt
private C17439wm a;
private C0907Rf b;
private String e;
@Override // o.qsu
public final void d(Object obj) {
this.b.e(this.a.e((uxC) obj, this.e));
}
{
this.a = this;
this.b = c0907Rf;
this.e = str;
}
});
return c0907Rf;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ C0907Rf c(C0907Rf c0907Rf, C0907Rf.Sts sts) {
c0907Rf.e(sts);
return c0907Rf;
}
private List<C0375Fe> a(List<LhO> list) {
if (list == null) {
return Collections.emptyList();
}
boolean b = b();
YKU yku = new YKU(list);
final boolean z = !b;
return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, z) { // from class: o.wu
private C17439wm b;
private boolean d;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C17439wm.a(this.d, (LhO) obj);
}
{
this.b = this;
this.d = z;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.wm$3, reason: invalid class name */
/* loaded from: classes3.dex */
public static /* synthetic */ class AnonymousClass3 {
static final int[] c;
static {
int[] iArr = new int[LhO.RVV.values().length];
c = iArr;
try {
iArr[LhO.RVV.IMAGE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
c[LhO.RVV.TEXT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
private static List<QX> d(List<vrx> list) {
if (list == null) {
return Collections.emptyList();
}
YKU yku = new YKU(list);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.wo
@Override // o.Jel
public final boolean e(Object obj) {
return C17439wm.e((vrx) obj);
}
}));
return (List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw() { // from class: o.ws
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C17439wm.d((vrx) obj);
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ QX d(vrx vrxVar) {
return new QX((String) Objects.requireNonNull(vrxVar.c), (String) Objects.requireNonNull(vrxVar.e));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean a(C0907Rf.Sts sts) {
return sts != null && EnumC15824isw.OPENACCOUNT_NTB.equals(sts.M);
}
public static /* synthetic */ C0907Rf.Sts b(C17439wm c17439wm, String str, uxC uxc) {
C0907Rf.Sts e = c17439wm.e(uxc, str);
e.f = c17439wm.b_(uxc.m);
return e;
}
public static /* synthetic */ C0375Fe a(boolean z, LhO lhO) {
String str;
String str2;
String str3;
String str4;
String str5;
EnumC0378Fg enumC0378Fg;
String str6;
String str7;
String str8 = lhO.a;
String str9 = lhO.b;
TfH tfH = lhO.f;
if (z) {
str = tfH.d;
} else {
str = tfH.c;
}
String str10 = str;
TfH tfH2 = lhO.e;
if (z) {
str2 = tfH2.d;
} else {
str2 = tfH2.c;
}
String str11 = str2;
if (lhO.i == null) {
str3 = "";
} else {
TfH tfH3 = lhO.i;
if (z) {
str7 = tfH3.d;
} else {
str7 = tfH3.c;
}
str3 = str7;
}
if (lhO.d == null) {
str4 = "";
} else {
TfH tfH4 = lhO.d;
if (z) {
str6 = tfH4.d;
} else {
str6 = tfH4.c;
}
str4 = str6;
}
if (lhO.c == null) {
str5 = "";
} else {
TfH tfH5 = lhO.c;
if (z) {
str5 = tfH5.d;
} else {
str5 = tfH5.c;
}
}
int i = AnonymousClass3.c[lhO.j.ordinal()];
if (i == 1) {
enumC0378Fg = EnumC0378Fg.IMAGE;
} else {
enumC0378Fg = i != 2 ? null : EnumC0378Fg.TEXT;
}
return new C0375Fe(str8, str9, str10, str11, str3, str4, str5, enumC0378Fg, false, lhO.h);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean e(vrx vrxVar) {
return vrxVar != null && gjJ.a(vrxVar.c) && gjJ.a(vrxVar.e);
}
private List<C0907Rf.Sts> b(List<uxC> list, final String str) {
YKU yku = new YKU(list);
return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, str) { // from class: o.wl
private String b;
private C17439wm c;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
C0907Rf.Sts e;
e = this.c.e((uxC) obj, this.b);
return e;
}
{
this.c = this;
this.b = str;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
private String a(uxC uxc, String str) {
String str2;
if (uxc.D == null) {
return null;
}
if ("th".equalsIgnoreCase(str)) {
str2 = uxc.D.h;
} else {
str2 = uxc.D.g;
}
if (str2 != null) {
return str2.startsWith("http") ? str2 : b_(str2);
}
return null;
}
public final C0907Rf.Sts e(uxC uxc, String str) {
C1193Xr c1193Xr;
EnumC15824isw enumC15824isw;
C0910Ri c0910Ri;
C1182Xi c1182Xi;
C1226Yl c1226Yl;
C1182Xi c1182Xi2;
if (uxc.D != null && EnumC15824isw.IMAGE.equals(uxc.C)) {
C0907Rf.Sts sts = new C0907Rf.Sts();
sts.x = uxc.A;
sts.K = uxc.B;
sts.u = uxc.x;
sts.y = uxc.y;
sts.L = uxc.z;
sts.M = uxc.C;
sts.w = b_(uxc.m);
sts.f = a(uxc);
sts.F = uxc.w;
sts.t = uxc.f9272o;
sts.H = uxc.v;
sts.A = uxc.r;
sts.v = uxc.k;
sts.G = o(uxc.u);
sts.j = null;
sts.I = null;
sts.q = null;
sts.Q = null;
sts.z = uxc.q;
sts.r = (uxc.D == null || uxc.D.k == null) ? null : uxc.D.k;
sts.O = null;
sts.N = uxc.E;
if (uxc.D != null) {
String str2 = uxc.D.m;
}
sts.B = null;
sts.i = uxc.i;
sts.k = a(uxc, str);
sts.g = uxc.D.d;
sts.c = uxc.D.b;
sts.n = uxc.D.f;
sts.E = uxc.p;
sts.l = uxc.D.i;
sts.f8345o = b_(uxc.D.j);
sts.p = uxc.l;
sts.s = d(uxc.b);
sts.m = uxc.f;
sts.d = uxc.a;
sts.e = uxc.c;
sts.C = uxc.t;
sts.J = uxc.G != null ? b(uxc.G, str) : null;
sts.b = uxc.g != null ? a(uxc.g) : null;
return sts;
}
if (uxc.D != null) {
if (uxc.D.c != null) {
c1193Xr = this.d.d(uxc.D.c, str);
c1193Xr.a = true;
} else {
c1193Xr = null;
}
if (uxc.D.l == null) {
c0910Ri = null;
} else if (uxc.D.n == null) {
c0910Ri = C17355wA.a(uxc.D.l, true);
} else {
c0910Ri = C17355wA.a(uxc.D.l, false);
}
c1182Xi = uxc.D.f8214o != null ? this.b.a(uxc.D.f8214o) : null;
if (uxc.D.n != null) {
c1226Yl = this.j.a(uxc.D.n);
c1226Yl.a = true;
} else {
c1226Yl = null;
}
enumC15824isw = uxc.D.k != null ? uxc.D.k : null;
c1182Xi2 = uxc.D.s != null ? this.b.a(uxc.D.s) : null;
} else {
c1193Xr = null;
enumC15824isw = null;
c0910Ri = null;
c1182Xi = null;
c1226Yl = null;
c1182Xi2 = null;
}
C0907Rf.Sts sts2 = new C0907Rf.Sts();
sts2.x = uxc.A;
sts2.K = uxc.B;
sts2.u = uxc.x;
sts2.y = uxc.y;
sts2.L = uxc.z;
sts2.M = uxc.C;
sts2.w = b_(uxc.m);
sts2.f = a(uxc);
sts2.F = uxc.w;
sts2.t = uxc.f9272o;
sts2.H = uxc.v;
sts2.A = uxc.r;
sts2.v = uxc.k;
sts2.D = uxc.s;
sts2.A = 0;
sts2.A = C15715hv.LWm.gray;
sts2.G = o(uxc.u);
sts2.j = c1193Xr;
sts2.I = c0910Ri;
sts2.q = c1182Xi;
sts2.Q = c1226Yl;
sts2.z = uxc.q;
sts2.r = enumC15824isw;
sts2.O = c1182Xi2;
sts2.N = uxc.E;
if (uxc.D != null) {
String str3 = uxc.D.m;
}
sts2.B = null;
sts2.i = uxc.i;
sts2.v = uxc.k;
sts2.k = a(uxc, str);
sts2.g = uxc.D != null ? uxc.D.d : 0;
sts2.c = uxc.D != null ? uxc.D.b : null;
sts2.n = uxc.D != null ? uxc.D.f : 0;
sts2.E = uxc.p;
sts2.a = uxc.d;
sts2.l = uxc.h != null ? uxc.D.i : null;
sts2.p = uxc.l;
sts2.s = d(uxc.b);
sts2.m = uxc.f;
sts2.d = uxc.a;
sts2.e = uxc.c;
sts2.C = uxc.t;
sts2.J = uxc.G != null ? b(uxc.G, str) : null;
sts2.b = uxc.g != null ? a(uxc.g) : null;
return sts2;
}
private String a(uxC uxc) {
if (uxc.z == AyW.BANNER) {
return j(uxc.j, uxc.n, this.a);
}
return b_(uxc.j);
}
public final C0907Rf c(List<uxC> list, final String str) {
YKU yku = new YKU(list);
return (C0907Rf) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, str) { // from class: o.wq
private String c;
private C17439wm d;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C17439wm.b(this.d, this.c, (uxC) obj);
}
{
this.d = this;
this.c = str;
}
})).d((YKU) new C0907Rf(0), (InterfaceC15902jVZ<? super YKU, ? super T, ? extends YKU>) new InterfaceC15902jVZ() { // from class: o.wr
@Override // o.InterfaceC15902jVZ
public final Object a(Object obj, Object obj2) {
return C17439wm.c((C0907Rf) obj, (C0907Rf.Sts) obj2);
}
});
}
public final List<C0907Rf.Sts> a(List<uxC> list, final String str) {
YKU yku = new YKU(list);
return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, str) { // from class: o.wp
private C17439wm b;
private String c;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
C0907Rf.Sts e;
e = this.b.e((uxC) obj, this.c);
return e;
}
{
this.b = this;
this.c = str;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
}