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

176 lines
5.6 KiB
Java

package o;
import android.content.SharedPreferences;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import o.C2329acZ;
import o.InterfaceC6627cYe;
import o.MUI;
import o.ZI;
/* renamed from: o.acZ, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public class C2329acZ extends ZI<InterfaceC6627cYe.Sts> {
public final Icn a;
public final C1025UIz b;
public String c;
public fSC d;
private final mSw e;
private final C16184ly g;
private final C16177lv h;
private final MUI i;
/* renamed from: o, reason: collision with root package name */
private final SharedPreferences f8515o;
@InterfaceC13391fZD
public C2329acZ(Icn icn, mSw msw, C16184ly c16184ly, C16177lv c16177lv, C16903sI c16903sI, C1025UIz c1025UIz, MUI mui, SharedPreferences sharedPreferences) {
super(c16903sI);
this.d = new fSC();
this.a = icn;
this.e = msw;
this.g = c16184ly;
this.h = c16177lv;
this.b = c1025UIz;
this.i = mui;
this.f8515o = sharedPreferences;
}
public final void e(String str, boolean z) {
Iterable arrayList;
String substring;
C16184ly c16184ly = this.g;
C7968cyO p = this.e.b.p();
if (p == null || p.e == null || p.e.isEmpty()) {
arrayList = new ArrayList();
} else {
arrayList = p.e;
}
C14957gcv.e(arrayList, "");
Iterable<hAo> iterable = arrayList;
C14957gcv.e(iterable, "");
ArrayList arrayList2 = new ArrayList(iterable instanceof Collection ? ((Collection) iterable).size() : 10);
for (hAo hao : iterable) {
int i = hao.c;
String str2 = hao.e;
C14957gcv.c((Object) str2, "");
String str3 = hao.b.b;
C14957gcv.c((Object) str3, "");
String str4 = hao.b.d;
C14957gcv.c((Object) str4, "");
String str5 = hao.j;
if (!C2974aoj.c(hao.a)) {
String str6 = hao.a;
if (str6 != null) {
substring = str6.substring(hao.a != null ? r13.length() - 4 : 0);
C14957gcv.c((Object) substring, "");
}
substring = null;
} else {
String str7 = hao.j;
if (str7 != null) {
substring = str7.substring(hao.j != null ? r13.length() - 4 : 0);
C14957gcv.c((Object) substring, "");
}
substring = null;
}
String str8 = hao.d;
String b_ = c16184ly.b_(hao.i);
C14957gcv.c((Object) b_, "");
arrayList2.add(new C0377Ff(i, str2, str3, str4, str5, substring, str8, b_));
}
final ArrayList arrayList3 = arrayList2;
if ((gHK.INDIVIDUAL.mode.equals(this.f8515o.getString("USER_MODE", gHK.INDIVIDUAL.mode)) ? gHK.INDIVIDUAL : gHK.JURISTIC) == gHK.INDIVIDUAL && !arrayList3.isEmpty() && z) {
this.i.b(new AnonymousClass5(this, str), new MUI.IeS("ACCOUNT_SUMMARY", "CREDIT_CARD"), this.d);
}
ZI.IeS ieS = new ZI.IeS(arrayList3) { // from class: o.add
private List c;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC6627cYe.Sts) obj).a(this.c);
}
{
this.c = arrayList3;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.acZ$5, reason: invalid class name */
/* loaded from: classes3.dex */
public final class AnonymousClass5 implements InterfaceC13176fSx<LhO> {
private String b;
final C2329acZ d;
@Override // o.InterfaceC13176fSx
public final void onError(Throwable th) {
}
@Override // o.InterfaceC13176fSx
public final void onSubscribe(fSJ fsj) {
}
AnonymousClass5(C2329acZ c2329acZ, String str) {
this.d = c2329acZ;
this.b = str;
}
@Override // o.InterfaceC13176fSx
public final /* synthetic */ void e(LhO lhO) {
final LhO lhO2 = lhO;
if (this.d.f == 0 || lhO2 == null) {
return;
}
C2329acZ c2329acZ = this.d;
final String str = this.b;
ZI.IeS ieS = new ZI.IeS(this, lhO2, str) { // from class: o.ade
private LhO a;
private String b;
private C2329acZ.AnonymousClass5 c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C16177lv c16177lv;
C2329acZ.AnonymousClass5 anonymousClass5 = this.c;
LhO lhO3 = this.a;
String str2 = this.b;
c16177lv = anonymousClass5.d.h;
((InterfaceC6627cYe.Sts) obj).e(c16177lv.b(lhO3, str2.equalsIgnoreCase("en")));
}
{
this.c = this;
this.a = lhO2;
this.b = str;
}
};
if (c2329acZ.f != 0) {
ieS.e(c2329acZ.f);
}
}
}
static /* synthetic */ void e(C2329acZ c2329acZ, Throwable th) {
if (c2329acZ.b(th)) {
c2329acZ.d(c2329acZ.j.e(th));
}
}
@Override // o.ZI
public final void w_() {
mSw msw = this.e;
if (!msw.h.isDisposed()) {
msw.h.dispose();
}
this.d.dispose();
this.i.d.b();
super.w_();
}
}