237 lines
7.2 KiB
Java
237 lines
7.2 KiB
Java
|
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.Comparator;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* renamed from: o.te, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C17064te extends BaseAssetsDisplayMapper {
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public C17064te(Resources resources, SharedPreferences sharedPreferences, String str) {
|
||
|
super(resources, sharedPreferences, str);
|
||
|
C14957gcv.e(resources, "");
|
||
|
C14957gcv.e(sharedPreferences, "");
|
||
|
C14957gcv.e(str, "");
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.te$RVV */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class RVV {
|
||
|
private RVV() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ RVV(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.te$HBt */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class HBt<T> implements Comparator {
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // java.util.Comparator
|
||
|
public final int compare(T t, T t2) {
|
||
|
Integer valueOf = Integer.valueOf(((QJg) t).p);
|
||
|
Integer valueOf2 = Integer.valueOf(((QJg) t2).p);
|
||
|
if (valueOf == valueOf2) {
|
||
|
return 0;
|
||
|
}
|
||
|
if (valueOf == null) {
|
||
|
return -1;
|
||
|
}
|
||
|
if (valueOf2 == null) {
|
||
|
return 1;
|
||
|
}
|
||
|
return valueOf.compareTo(valueOf2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.te$Sts */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class Sts<T> implements Comparator {
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // java.util.Comparator
|
||
|
public final int compare(T t, T t2) {
|
||
|
Integer valueOf = Integer.valueOf(((QJg) t).p);
|
||
|
Integer valueOf2 = Integer.valueOf(((QJg) t2).p);
|
||
|
if (valueOf == valueOf2) {
|
||
|
return 0;
|
||
|
}
|
||
|
if (valueOf == null) {
|
||
|
return -1;
|
||
|
}
|
||
|
if (valueOf2 == null) {
|
||
|
return 1;
|
||
|
}
|
||
|
return valueOf.compareTo(valueOf2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final List<MG> a(QJg qJg) {
|
||
|
ArrayList arrayList;
|
||
|
Object obj;
|
||
|
List<QJg> list;
|
||
|
List a;
|
||
|
String str;
|
||
|
String str2;
|
||
|
C14957gcv.e(qJg, "");
|
||
|
List<QJg> list2 = qJg.M;
|
||
|
C14957gcv.c(list2, "");
|
||
|
Iterator<T> it = list2.iterator();
|
||
|
while (true) {
|
||
|
arrayList = null;
|
||
|
if (!it.hasNext()) {
|
||
|
obj = null;
|
||
|
break;
|
||
|
}
|
||
|
obj = it.next();
|
||
|
if (((QJg) obj).A == 627) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
QJg qJg2 = (QJg) obj;
|
||
|
if (qJg2 != null && (list = qJg2.M) != null && (a = C14881gav.a((Iterable) list, (Comparator) new Sts())) != null) {
|
||
|
List<QJg> list3 = a;
|
||
|
C14957gcv.e(list3, "");
|
||
|
ArrayList arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
|
||
|
for (QJg qJg3 : list3) {
|
||
|
String str3 = qJg3.j;
|
||
|
String str4 = str3 == null ? "" : str3;
|
||
|
C14957gcv.c(qJg3, "");
|
||
|
if (b()) {
|
||
|
str = qJg3.x;
|
||
|
} else {
|
||
|
str = qJg3.r;
|
||
|
}
|
||
|
String str5 = str == null ? "" : str;
|
||
|
String b_ = b_(qJg3.k);
|
||
|
boolean z = qJg3.t == 0;
|
||
|
if (b()) {
|
||
|
str2 = qJg3.G;
|
||
|
} else {
|
||
|
str2 = qJg3.I;
|
||
|
}
|
||
|
String str6 = str2 == null ? "" : str2;
|
||
|
String str7 = qJg3.I;
|
||
|
C14957gcv.c((Object) str7, "");
|
||
|
C14957gcv.c((Object) b_, "");
|
||
|
arrayList2.add(new MG(str4, str5, str7, b_, z, str6));
|
||
|
}
|
||
|
arrayList = arrayList2;
|
||
|
}
|
||
|
return arrayList == null ? C14851gaI.c : arrayList;
|
||
|
}
|
||
|
|
||
|
public final String b(QJg qJg) {
|
||
|
String str;
|
||
|
Object obj;
|
||
|
List<QJg> list;
|
||
|
String str2;
|
||
|
C14957gcv.e(qJg, "");
|
||
|
List<QJg> list2 = qJg.M;
|
||
|
C14957gcv.c(list2, "");
|
||
|
Iterator<T> it = list2.iterator();
|
||
|
while (true) {
|
||
|
str = null;
|
||
|
if (!it.hasNext()) {
|
||
|
obj = null;
|
||
|
break;
|
||
|
}
|
||
|
obj = it.next();
|
||
|
if (((QJg) obj).A == 633) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
QJg qJg2 = (QJg) obj;
|
||
|
if (qJg2 != null) {
|
||
|
if (b()) {
|
||
|
str2 = qJg2.G;
|
||
|
} else {
|
||
|
str2 = qJg2.I;
|
||
|
}
|
||
|
str = str2;
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
}
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
int size = (qJg2 == null || (list = qJg2.M) == null) ? 0 : list.size();
|
||
|
if (size <= 0) {
|
||
|
return "";
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(str);
|
||
|
sb.append(" (");
|
||
|
sb.append(size);
|
||
|
sb.append(")");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
public final List<MH> e(QJg qJg) {
|
||
|
ArrayList arrayList;
|
||
|
Object obj;
|
||
|
List<QJg> list;
|
||
|
List a;
|
||
|
String str;
|
||
|
String str2;
|
||
|
C14957gcv.e(qJg, "");
|
||
|
List<QJg> list2 = qJg.M;
|
||
|
C14957gcv.c(list2, "");
|
||
|
Iterator<T> it = list2.iterator();
|
||
|
while (true) {
|
||
|
arrayList = null;
|
||
|
if (!it.hasNext()) {
|
||
|
obj = null;
|
||
|
break;
|
||
|
}
|
||
|
obj = it.next();
|
||
|
if (((QJg) obj).A == 633) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
QJg qJg2 = (QJg) obj;
|
||
|
if (qJg2 != null && (list = qJg2.M) != null && (a = C14881gav.a((Iterable) list, (Comparator) new HBt())) != null) {
|
||
|
List<QJg> list3 = a;
|
||
|
C14957gcv.e(list3, "");
|
||
|
ArrayList arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
|
||
|
for (QJg qJg3 : list3) {
|
||
|
String str3 = qJg3.j;
|
||
|
String str4 = str3 == null ? "" : str3;
|
||
|
C14957gcv.c(qJg3, "");
|
||
|
if (b()) {
|
||
|
str = qJg3.x;
|
||
|
} else {
|
||
|
str = qJg3.r;
|
||
|
}
|
||
|
String str5 = str == null ? "" : str;
|
||
|
String b_ = b_(qJg3.k);
|
||
|
if (b()) {
|
||
|
str2 = qJg3.G;
|
||
|
} else {
|
||
|
str2 = qJg3.I;
|
||
|
}
|
||
|
String str6 = str2 == null ? "" : str2;
|
||
|
String str7 = qJg3.I;
|
||
|
C14957gcv.c((Object) str7, "");
|
||
|
C14957gcv.c((Object) b_, "");
|
||
|
arrayList2.add(new MH(str4, str5, str7, b_, str6));
|
||
|
}
|
||
|
arrayList = arrayList2;
|
||
|
}
|
||
|
return arrayList == null ? C14851gaI.c : arrayList;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new RVV((byte) 0);
|
||
|
}
|
||
|
}
|