83 lines
2.9 KiB
Java
83 lines
2.9 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.Collections;
|
||
|
import java.util.Comparator;
|
||
|
import java.util.List;
|
||
|
import o.YNc;
|
||
|
|
||
|
/* renamed from: o.tC, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C17004tC extends C16157lj {
|
||
|
private final BaseAssetsDisplayMapper d;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public C17004tC(Resources resources, SharedPreferences sharedPreferences, BaseAssetsDisplayMapper baseAssetsDisplayMapper) {
|
||
|
super(resources, sharedPreferences);
|
||
|
C14957gcv.e(resources, "");
|
||
|
C14957gcv.e(sharedPreferences, "");
|
||
|
C14957gcv.e(baseAssetsDisplayMapper, "");
|
||
|
this.d = baseAssetsDisplayMapper;
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.tC$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(((YNc.Sts) t).h);
|
||
|
Integer valueOf2 = Integer.valueOf(((YNc.Sts) t2).h);
|
||
|
if (valueOf == valueOf2) {
|
||
|
return 0;
|
||
|
}
|
||
|
if (valueOf == null) {
|
||
|
return -1;
|
||
|
}
|
||
|
if (valueOf2 == null) {
|
||
|
return 1;
|
||
|
}
|
||
|
return valueOf.compareTo(valueOf2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final C0737Nk d(YNc yNc) {
|
||
|
C14957gcv.e(yNc, "");
|
||
|
String d = d(yNc.c);
|
||
|
C14957gcv.c((Object) d, "");
|
||
|
List<YNc.IeS> list = yNc.d;
|
||
|
ArrayList<YNc.IeS> arrayList = new ArrayList();
|
||
|
for (Object obj : list) {
|
||
|
if (!((YNc.IeS) obj).d.isEmpty()) {
|
||
|
arrayList.add(obj);
|
||
|
}
|
||
|
}
|
||
|
ArrayList arrayList2 = new ArrayList();
|
||
|
for (YNc.IeS ieS : arrayList) {
|
||
|
List singletonList = Collections.singletonList(new C0744No(ieS.b));
|
||
|
C14957gcv.c(singletonList, "");
|
||
|
List list2 = singletonList;
|
||
|
List<YNc.Sts> a = C14881gav.a((Iterable) ieS.d, (Comparator) new HBt());
|
||
|
C14957gcv.e(a, "");
|
||
|
ArrayList arrayList3 = new ArrayList(a instanceof Collection ? a.size() : 10);
|
||
|
for (YNc.Sts sts : a) {
|
||
|
String str = sts.e;
|
||
|
String str2 = sts.b;
|
||
|
if (str2 == null) {
|
||
|
str2 = "";
|
||
|
}
|
||
|
String b_ = this.d.b_(sts.d);
|
||
|
C14957gcv.c((Object) b_, "");
|
||
|
arrayList3.add(new C0742Nn(str, str2, b_));
|
||
|
}
|
||
|
C14881gav.d(arrayList2, C14881gav.e(list2, arrayList3));
|
||
|
}
|
||
|
return new C0737Nk(d, arrayList2);
|
||
|
}
|
||
|
}
|