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

192 lines
6.0 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.List;
import kotlin.NoWhenBranchMatchedException;
import o.YS;
/* renamed from: o.vy, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17350vy extends C16157lj {
public final InterfaceC13393fZL a;
private final C17774zeQ b;
public final InterfaceC13393fZL d;
private final SMl h;
/* renamed from: o.vy$RVV */
/* loaded from: classes3.dex */
public enum RVV {
PURCHASED,
OTHERS,
SSF,
TESG,
IPO
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17350vy(Resources resources, SharedPreferences sharedPreferences, SMl sMl, C17774zeQ c17774zeQ) {
super(resources, sharedPreferences);
C14957gcv.e(sMl, "");
C14957gcv.e(c17774zeQ, "");
this.h = sMl;
this.b = c17774zeQ;
ojQ ojq = new ojQ(this);
C14957gcv.e(ojq, "");
this.a = new fZZ(ojq);
tOB tob = new tOB(this);
C14957gcv.e(tob, "");
this.d = new fZZ(tob);
}
/* renamed from: o.vy$ojQ */
/* loaded from: classes3.dex */
static final class ojQ extends AbstractC14961gcz implements InterfaceC14890gbN<Boolean> {
private C17350vy e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ Boolean invoke() {
return Boolean.valueOf(this.e.h.d.l());
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ojQ(C17350vy c17350vy) {
super(0);
this.e = c17350vy;
}
}
/* renamed from: o.vy$tOB */
/* loaded from: classes3.dex */
static final class tOB extends AbstractC14961gcz implements InterfaceC14890gbN<Boolean> {
private C17350vy e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ Boolean invoke() {
return Boolean.valueOf(this.e.b.a());
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
tOB(C17350vy c17350vy) {
super(0);
this.e = c17350vy;
}
}
public static List<PY> d(List<PY> list, RVV rvv) {
LWm lWm;
int i = Sts.d[rvv.ordinal()];
if (i == 1) {
lWm = new gcF() { // from class: o.vy.LWm
@Override // o.gcF, o.InterfaceC14988gdt
public final Object d(Object obj) {
return Boolean.valueOf(((PY) obj).f8315o);
}
};
} else if (i == 2) {
lWm = new gcF() { // from class: o.vy.HBt
@Override // o.gcF, o.InterfaceC14988gdt
public final Object d(Object obj) {
return Boolean.valueOf(((PY) obj).k);
}
};
} else if (i == 3) {
lWm = new gcF() { // from class: o.vy.IeS
@Override // o.gcF, o.InterfaceC14988gdt
public final Object d(Object obj) {
return Boolean.valueOf(((PY) obj).n);
}
};
} else if (i == 4) {
lWm = new gcF() { // from class: o.vy.jbe
@Override // o.gcF, o.InterfaceC14988gdt
public final Object d(Object obj) {
return Boolean.valueOf(((PY) obj).f);
}
};
} else {
if (i != 5) {
throw new NoWhenBranchMatchedException();
}
lWm = new gcF() { // from class: o.vy.ZqN
@Override // o.gcF, o.InterfaceC14988gdt
public final Object d(Object obj) {
return Boolean.valueOf(((PY) obj).m);
}
};
}
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (((Boolean) lWm.invoke(obj)).booleanValue()) {
arrayList.add(obj);
}
}
return arrayList;
}
public static PY e(cIM cim) {
C14957gcv.e(cim, "");
int i = cim.q;
String str = cim.d;
C14957gcv.c((Object) str, "");
String str2 = cim.e;
C14957gcv.c((Object) str2, "");
String str3 = cim.b;
C14957gcv.c((Object) str3, "");
String str4 = cim.j;
C14957gcv.c((Object) str4, "");
boolean z = cim.m;
boolean z2 = cim.i;
boolean z3 = cim.n;
boolean z4 = cim.l;
boolean z5 = cim.k;
String str5 = cim.g;
C14957gcv.c((Object) str5, "");
String str6 = cim.f;
C14957gcv.c((Object) str6, "");
String f = f(Double.valueOf(cim.c));
StringBuilder sb = new StringBuilder();
sb.append(f);
sb.append("%");
String obj = sb.toString();
String str7 = cim.a;
C14957gcv.c((Object) str7, "");
boolean z6 = cim.h;
YS.RVV rvv = YS.Companion;
return new PY(i, str, str2, str3, str4, z, z2, z3, z4, z5, str5, str6, obj, str7, z6, YS.RVV.d(cim.f8605o));
}
/* renamed from: o.vy$Sts */
/* loaded from: classes3.dex */
public final /* synthetic */ class Sts {
public static final int[] d;
static {
int[] iArr = new int[RVV.values().length];
try {
iArr[RVV.PURCHASED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[RVV.SSF.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[RVV.TESG.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[RVV.IPO.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[RVV.OTHERS.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
d = iArr;
}
}
}