123 lines
4.5 KiB
Java
123 lines
4.5 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.res.Resources;
|
||
|
import android.util.Base64;
|
||
|
import java.nio.charset.StandardCharsets;
|
||
|
import java.text.MessageFormat;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
import o.C15715hv;
|
||
|
import o.IV;
|
||
|
import o.LY;
|
||
|
|
||
|
/* renamed from: o.ql, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C16729ql extends AbstractC16173lt<LM, LY> {
|
||
|
private static int a = 0;
|
||
|
private static byte d = 6;
|
||
|
private static int f = 1;
|
||
|
private final Context b;
|
||
|
|
||
|
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] ^ d);
|
||
|
}
|
||
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
||
|
}
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C16729ql(Resources resources, SharedPreferences sharedPreferences, Context context) {
|
||
|
super(resources, sharedPreferences);
|
||
|
this.b = context;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16173lt
|
||
|
/* renamed from: c, reason: merged with bridge method [inline-methods] */
|
||
|
public final LY d(LM lm) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = f + 21;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (lm.a != null && !lm.a.isEmpty()) {
|
||
|
List<IV> a2 = a(lm.a, new InterfaceC1244Ytw(this) { // from class: o.qu
|
||
|
private C16729ql e;
|
||
|
|
||
|
@Override // o.InterfaceC1244Ytw
|
||
|
public final Object d(Object obj) {
|
||
|
return C16729ql.c((LJ) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
}
|
||
|
});
|
||
|
LY.IeS ieS = new LY.IeS();
|
||
|
ieS.b = a2;
|
||
|
ieS.e = true;
|
||
|
return ieS.b();
|
||
|
}
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
arrayList.add(new IV(this.e.getString(C15715hv.tOB.loan_monthly_payment_label).toUpperCase(), c(C6583cXR.c(lm.d))));
|
||
|
arrayList.add(new IV(this.e.getString(C15715hv.tOB.loan_interest_rate_label).toUpperCase(), lm.b));
|
||
|
if (!C6583cXR.q(lm.c)) {
|
||
|
String string = this.e.getString(C15715hv.tOB.loan_duty_stamp_fee_label);
|
||
|
if (string.startsWith(",*,)")) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
n(string.substring(4), objArr);
|
||
|
string = ((String) objArr[0]).intern();
|
||
|
}
|
||
|
arrayList.add(new IV(MessageFormat.format("{0} {1}", string.toUpperCase(), lm.e), lm.c));
|
||
|
int i4 = a + 67;
|
||
|
f = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
if (!C6583cXR.q(lm.h)) {
|
||
|
arrayList.add(new IV(this.e.getString(C15715hv.tOB.loan_transer_fee_label).toUpperCase(), lm.h));
|
||
|
}
|
||
|
arrayList.add(new IV(this.e.getString(C15715hv.tOB.loan_net_transfer_amount_label).toUpperCase(), c(C6583cXR.c(lm.f))));
|
||
|
LY.IeS ieS2 = new LY.IeS();
|
||
|
ieS2.b = arrayList;
|
||
|
ieS2.e = true;
|
||
|
return ieS2.b();
|
||
|
}
|
||
|
|
||
|
public static IV c(LJ lj) {
|
||
|
return new IV(lj.c, lj.g);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ IV a(C16729ql c16729ql, C17180ucA c17180ucA) {
|
||
|
if (c17180ucA.g == null || c17180ucA.e == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if ("ANNUAL_INTEREST".equals(c17180ucA.a)) {
|
||
|
return new IV(c17180ucA.b, (List<IV.Sts>) Collections.singletonList(new IV.Sts(c17180ucA.g, c16729ql.e.getColor(C15715hv.LWm.dark_gray))));
|
||
|
}
|
||
|
return new IV(c17180ucA.b, c17180ucA.g);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ IV e(C16729ql c16729ql, C0588Ka c0588Ka) {
|
||
|
if (c0588Ka.g == null || c0588Ka.d == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if ("REMARK".equals(c0588Ka.b)) {
|
||
|
return new IV(c0588Ka.c, (List<IV.Sts>) Collections.singletonList(new IV.Sts(c0588Ka.g, nMh.getColor(c16729ql.b, C15715hv.LWm.dark_gray))));
|
||
|
}
|
||
|
return new IV(c0588Ka.c, c0588Ka.g);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ IV b(C16729ql c16729ql, C17180ucA c17180ucA) {
|
||
|
if (c17180ucA.g == null || c17180ucA.e == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if ("REMARK".equals(c17180ucA.a) || "ANNUAL_INTEREST_TIER".equals(c17180ucA.a)) {
|
||
|
return new IV(c17180ucA.b, (List<IV.Sts>) Collections.singletonList(new IV.Sts(c17180ucA.g, c16729ql.e.getColor(C15715hv.LWm.dark_gray))));
|
||
|
}
|
||
|
return new IV(c17180ucA.b, c17180ucA.g);
|
||
|
}
|
||
|
}
|