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

78 lines
2.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.util.List;
import o.C15715hv;
import o.EW;
import o.PRA;
import o.QN;
import org.threeten.bp.OffsetDateTime;
/* loaded from: classes3.dex */
public final class CD extends C16157lj {
private static int a = 0;
private static byte b = 6;
private static int f = 1;
private final CB d;
@InterfaceC13391fZD
public CD(Resources resources, SharedPreferences sharedPreferences, CB cb) {
super(resources, sharedPreferences);
this.d = cb;
}
private void n(String str, Object[] objArr) {
byte[] decode = Base64.decode(str, 0);
byte[] bArr = new byte[decode.length];
for (int i = 0; i < decode.length; i++) {
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ b);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
public final EW a(C16573pSL c16573pSL, ES es) {
String d;
int i = 2 % 2;
int i2 = f + 7;
a = i2 % 128;
int i3 = i2 % 2;
CB cb = this.d;
OffsetDateTime offsetDateTime = c16573pSL.a;
String str = c16573pSL.d;
cb.a.clear();
QN.HBt a2 = QN.a();
a2.f = cb.e(C15715hv.tOB.review_success_bill_payment);
a2.d = C15715hv.IeS.ic_check_circle_black_48dp;
if (offsetDateTime == null) {
int i4 = f + 123;
a = i4 % 128;
int i5 = i4 % 2;
d = "";
} else {
d = cb.d(offsetDateTime);
}
a2.a = d;
a2.c = cb.c(C15715hv.tOB.reference_id, str);
a2.e = C15715hv.LWm.dark_gray;
cb.a.add(new QN(a2, YD.REVAMP_SUCCESS_HEADER, (byte) 0));
cb.a.add(new QQ(true));
EW.LWm b2 = EW.b((List) YKU.a(new YKU(cb.a), new YKU(es.a)).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())), e(C15715hv.tOB.deals_buy_deal_filename));
String string = this.e.getString(C15715hv.tOB.deals_buy_success_extra_text_remaining_balance);
if (string.startsWith(",*,)")) {
int i6 = a + 71;
f = i6 % 128;
int i7 = i6 % 2;
String substring = string.substring(4);
Object[] objArr = new Object[1];
n(substring, objArr);
string = ((String) objArr[0]).intern();
}
b2.f = String.format(string, c(c16573pSL.e));
b2.n = true;
return b2.c();
}
}