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

450 lines
16 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.text.TextUtils;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import o.C15715hv;
import o.PRA;
/* renamed from: o.wD, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17361wD extends C16157lj {
private Resources a;
/* JADX INFO: Access modifiers changed from: package-private */
@InterfaceC13391fZD
public C17361wD(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
this.a = resources;
}
public final List<C0917Rn> e(List<C15966jxa> list) {
if (list == null || list.isEmpty()) {
return new ArrayList();
}
YKU yku = new YKU(list);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.wL
@Override // o.Jel
public final boolean e(Object obj) {
return C17361wD.b((C15966jxa) obj);
}
}));
return (List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(this) { // from class: o.wJ
private C17361wD a;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
List arrayList;
String str;
C17361wD c17361wD = this.a;
C15966jxa c15966jxa = (C15966jxa) obj;
String d = C6583cXR.d(c15966jxa.e, (String) null);
C0922Rq c0922Rq = new C0922Rq(c15966jxa.n.d(), c15966jxa.n.b(), c15966jxa.n.a());
String str2 = c15966jxa.k;
String str3 = "";
String string = (str2 == null || str2.equals("")) ? c17361wD.c.getString("SCB_STORE_URL", "") : str2;
String str4 = c15966jxa.c;
String str5 = c15966jxa.d;
String str6 = c15966jxa.a;
String a = c15966jxa.n.a();
int intValue = c15966jxa.m != null ? c15966jxa.m.intValue() : 0;
int intValue2 = c15966jxa.f9185o != null ? c15966jxa.f9185o.intValue() : 0;
int intValue3 = c15966jxa.f != null ? c15966jxa.f.intValue() : 0;
int intValue4 = c15966jxa.g != null ? c15966jxa.g.intValue() : 0;
int intValue5 = c15966jxa.j != null ? c15966jxa.j.intValue() : 0;
int intValue6 = c15966jxa.i != null ? c15966jxa.i.intValue() : 0;
if (c15966jxa.b == null) {
arrayList = new ArrayList();
} else {
arrayList = c15966jxa.b;
}
List list2 = arrayList;
String str7 = c15966jxa.l;
String str8 = c15966jxa.h;
String str9 = c15966jxa.l;
String str10 = c15966jxa.e;
if (str10 != null) {
str = str7;
if (str10.length() > 5) {
String replace = str10.replace(" ", "");
str3 = replace.substring(replace.length() - 5).toLowerCase();
}
} else {
str = str7;
}
Integer valueOf = Integer.valueOf(intValue);
Integer valueOf2 = Integer.valueOf(intValue2);
Integer valueOf3 = Integer.valueOf(intValue3);
Integer valueOf4 = Integer.valueOf(intValue4);
Integer valueOf5 = Integer.valueOf(intValue5);
Integer valueOf6 = Integer.valueOf(intValue6);
StringBuilder sb = new StringBuilder();
sb.append(str9);
sb.append(" ");
sb.append(str3);
return new C0917Rn(c0922Rq, string, str4, d, str5, str6, a, valueOf, valueOf2, valueOf3, valueOf4, valueOf5, valueOf6, list2, str, str8, sb.toString());
}
{
this.a = this;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
public final String d(HNz hNz) {
String e = e(C15715hv.tOB.bill_payment_limit);
Object[] objArr = new Object[1];
objArr[0] = c(Double.valueOf(hNz != null ? hNz.l.doubleValue() : 0.0d));
return String.format(e, objArr);
}
public final String n(String str) {
String e = e(C15715hv.tOB.limit_top_up_remaining);
Object[] objArr = new Object[1];
if (TextUtils.isEmpty(str)) {
str = c(Double.valueOf(0.0d));
}
objArr[0] = str;
return String.format(e, objArr);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean c(C16588pYG c16588pYG) {
return "TRANSFER".equals(c16588pYG.e) && "OWN".equalsIgnoreCase(c16588pYG.m);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean e(C16588pYG c16588pYG) {
return "TRANSFER".equals(c16588pYG.e) && "OTHER".equalsIgnoreCase(c16588pYG.m);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean b(C16588pYG c16588pYG) {
return "TRANSFER".equals(c16588pYG.e) && "PROMPTPAY".equalsIgnoreCase(c16588pYG.m);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean a(C16588pYG c16588pYG) {
return "TRANSFER".equals(c16588pYG.e) && "SCB".equalsIgnoreCase(c16588pYG.m);
}
public final String b(HNz hNz) {
return MessageFormat.format("{0} {1}", e(C15715hv.tOB.transfer_remaining_limit), c(Double.valueOf(hNz.l.doubleValue())));
}
public final String c(HNz hNz) {
return c(C15715hv.tOB.bulk_transfer_limit_per_day, c(Double.valueOf(hNz.a.doubleValue())));
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
public static /* synthetic */ C0920Rp b(C17361wD c17361wD, boolean z, C16588pYG c16588pYG) {
char c;
String string;
C0920Rp c0920Rp = new C0920Rp();
c0920Rp.i = c16588pYG.j;
c0920Rp.e = c16588pYG.e;
c0920Rp.k = c16588pYG.m;
String str = c16588pYG.e;
str.hashCode();
boolean z2 = false;
char c2 = 65535;
switch (str.hashCode()) {
case -486974465:
if (str.equals("BILLPAYMENT")) {
c = 0;
break;
}
c = 65535;
break;
case 80008848:
if (str.equals("TOPUP")) {
c = 1;
break;
}
c = 65535;
break;
case 510594974:
if (str.equals("REMITTANCE")) {
c = 2;
break;
}
c = 65535;
break;
case 512407012:
if (str.equals("CARDLESS_ATM")) {
c = 3;
break;
}
c = 65535;
break;
case 803617947:
if (str.equals("CARDLESS_ATM_CC")) {
c = 4;
break;
}
c = 65535;
break;
case 803617968:
if (str.equals("CARDLESS_ATM_CX")) {
c = 5;
break;
}
c = 65535;
break;
case 803618443:
if (str.equals("CARDLESS_ATM_SC")) {
c = 6;
break;
}
c = 65535;
break;
case 803618464:
if (str.equals("CARDLESS_ATM_SX")) {
c = 7;
break;
}
c = 65535;
break;
case 2063509483:
if (str.equals("TRANSFER")) {
c = '\b';
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
String str2 = "";
switch (c) {
case 0:
str2 = c17361wD.a.getString(C15715hv.tOB.limit_bill_payment_label);
break;
case 1:
str2 = c17361wD.a.getString(C15715hv.tOB.limit_top_up_label);
break;
case 2:
str2 = c17361wD.a.getString(C15715hv.tOB.limit_label_remittance);
break;
case 3:
str2 = c17361wD.a.getString(C15715hv.tOB.limit_cardless_label);
break;
case 4:
str2 = c17361wD.a.getString(C15715hv.tOB.limit_cardless_credit_card_label);
break;
case 5:
case 7:
String str3 = c16588pYG.d;
if (str3 != null && !kcz.c(str3)) {
str2 = str3;
break;
} else {
if (c16588pYG.e.equals("CARDLESS_ATM_CX")) {
string = c17361wD.a.getString(C15715hv.tOB.limit_cardless_cardx_credit_card_label);
} else if (c16588pYG.e.equals("CARDLESS_ATM_SX")) {
string = c17361wD.a.getString(C15715hv.tOB.limit_cardless_cardx_speedy_cash_label);
}
str2 = string;
break;
}
break;
case 6:
if (z) {
str2 = c17361wD.a.getString(C15715hv.tOB.limit_cardless_revolving_loan_label);
break;
} else {
str2 = c17361wD.a.getString(C15715hv.tOB.limit_cardless_speedy_cash_label);
break;
}
case '\b':
String str4 = c16588pYG.m;
str4.hashCode();
switch (str4.hashCode()) {
case 78694:
if (str4.equals("OWN")) {
c2 = 0;
break;
}
break;
case 81906:
if (str4.equals("SCB")) {
c2 = 1;
break;
}
break;
case 75532016:
if (str4.equals("OTHER")) {
c2 = 2;
break;
}
break;
case 1988312228:
if (str4.equals("PROMPTPAY")) {
c2 = 3;
break;
}
break;
}
if (c2 == 0) {
string = c17361wD.a.getString(C15715hv.tOB.limit_label_own_scb_account);
} else if (c2 == 1) {
string = c17361wD.a.getString(C15715hv.tOB.limit_label_other_scb_account);
} else if (c2 == 2) {
string = c17361wD.a.getString(C15715hv.tOB.limit_label_other_account);
} else if (c2 == 3) {
string = c17361wD.a.getString(C15715hv.tOB.limit_label_prompt_pay);
}
str2 = string;
break;
}
c0920Rp.c = str2;
c0920Rp.h = c16588pYG.a;
c0920Rp.j = C6583cXR.b(c16588pYG.a.doubleValue());
c0920Rp.g = c16588pYG.f;
c0920Rp.f = c16588pYG.g;
c0920Rp.l = c16588pYG.i;
c0920Rp.a = c16588pYG.b;
Boolean bool = c16588pYG.c;
if (bool != null && bool.booleanValue()) {
z2 = true;
}
c0920Rp.d = z2;
c0920Rp.m = c16588pYG.h;
return c0920Rp;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean b(C15966jxa c15966jxa) {
return c15966jxa.n != null && ("1000".equalsIgnoreCase(c15966jxa.n.d()) || "3003".equalsIgnoreCase(c15966jxa.n.d()) || "3004".equalsIgnoreCase(c15966jxa.n.d()) || "426".equalsIgnoreCase(c15966jxa.n.d()));
}
public static String a(HNz hNz) {
return String.format(c(Double.valueOf(hNz != null ? hNz.a.doubleValue() : 0.0d)), new Object[0]);
}
public static String e(HNz hNz) {
return String.format(c(Double.valueOf(hNz != null ? hNz.l.doubleValue() : 0.0d)), new Object[0]);
}
/* JADX WARN: Multi-variable type inference failed */
public static String d(List<C16588pYG> list) {
zEQ d;
double d2;
YKU yku = new YKU(list);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.wG
@Override // o.Jel
public final boolean e(Object obj) {
return C17361wD.e((C16588pYG) obj);
}
}));
if (yku2.b.hasNext()) {
d = zEQ.a(yku2.b.next());
} else {
d = zEQ.d();
}
if (d.d != 0) {
T t = d.d;
if (t != 0) {
d2 = ((C16588pYG) t).a.doubleValue();
} else {
throw new NoSuchElementException("No value present");
}
} else {
d2 = 0.0d;
}
return c(Double.valueOf(d2));
}
/* JADX WARN: Multi-variable type inference failed */
public static String a(List<C16588pYG> list) {
zEQ d;
double d2;
YKU yku = new YKU(list);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.wK
@Override // o.Jel
public final boolean e(Object obj) {
return C17361wD.c((C16588pYG) obj);
}
}));
if (yku2.b.hasNext()) {
d = zEQ.a(yku2.b.next());
} else {
d = zEQ.d();
}
if (d.d != 0) {
T t = d.d;
if (t != 0) {
d2 = ((C16588pYG) t).a.doubleValue();
} else {
throw new NoSuchElementException("No value present");
}
} else {
d2 = 0.0d;
}
return c(Double.valueOf(d2));
}
/* JADX WARN: Multi-variable type inference failed */
public static String c(List<C16588pYG> list) {
zEQ d;
double d2;
YKU yku = new YKU(list);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.wF
@Override // o.Jel
public final boolean e(Object obj) {
return C17361wD.b((C16588pYG) obj);
}
}));
if (yku2.b.hasNext()) {
d = zEQ.a(yku2.b.next());
} else {
d = zEQ.d();
}
if (d.d != 0) {
T t = d.d;
if (t != 0) {
d2 = ((C16588pYG) t).a.doubleValue();
} else {
throw new NoSuchElementException("No value present");
}
} else {
d2 = 0.0d;
}
return c(Double.valueOf(d2));
}
/* JADX WARN: Multi-variable type inference failed */
public static String g(List<C16588pYG> list) {
zEQ d;
double d2;
YKU yku = new YKU(list);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.wM
@Override // o.Jel
public final boolean e(Object obj) {
return C17361wD.a((C16588pYG) obj);
}
}));
if (yku2.b.hasNext()) {
d = zEQ.a(yku2.b.next());
} else {
d = zEQ.d();
}
if (d.d != 0) {
T t = d.d;
if (t != 0) {
d2 = ((C16588pYG) t).a.doubleValue();
} else {
throw new NoSuchElementException("No value present");
}
} else {
d2 = 0.0d;
}
return c(Double.valueOf(d2));
}
}