236 lines
11 KiB
Java
236 lines
11 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
|
|
import java.math.BigDecimal;
|
|
import java.util.List;
|
|
import o.C15715hv;
|
|
|
|
/* renamed from: o.lN, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C16113lN extends BaseAssetsDisplayMapper {
|
|
@InterfaceC13391fZD
|
|
public C16113lN(Resources resources, SharedPreferences sharedPreferences, String str) {
|
|
super(resources, sharedPreferences, str);
|
|
}
|
|
|
|
private static String b(String str, BigDecimal bigDecimal) {
|
|
String c = c(Double.valueOf(bigDecimal != null ? bigDecimal.doubleValue() : 0.0d));
|
|
if (str == null || str.length() <= 0) {
|
|
return c;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(" ");
|
|
sb.append(c);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static /* synthetic */ C0394Fo b(C16113lN c16113lN, C17661yjI c17661yjI) {
|
|
String str;
|
|
String str2;
|
|
String str3;
|
|
String str4;
|
|
String str5 = c17661yjI.g;
|
|
int i = c17661yjI.i;
|
|
String e = c16113lN.e(C15715hv.tOB.sme_loan_end_date);
|
|
Object[] objArr = new Object[1];
|
|
if (c17661yjI.a == null) {
|
|
str = "";
|
|
} else {
|
|
str = c16113lN.a(c17661yjI.a);
|
|
}
|
|
objArr[0] = str;
|
|
String format = String.format(e, objArr);
|
|
String c = c(Double.valueOf(c17661yjI.h != null ? c17661yjI.h.doubleValue() : 0.0d));
|
|
String c2 = c(Double.valueOf(c17661yjI.d != null ? c17661yjI.d.doubleValue() : 0.0d));
|
|
if (c17661yjI.b == null) {
|
|
str2 = "";
|
|
} else {
|
|
str2 = c16113lN.a(c17661yjI.b);
|
|
}
|
|
String e2 = c16113lN.e(C15715hv.tOB.percentage_format);
|
|
Object[] objArr2 = new Object[2];
|
|
if (c17661yjI.c == null) {
|
|
str3 = "";
|
|
} else {
|
|
str3 = i(Double.valueOf(c17661yjI.c.doubleValue()));
|
|
}
|
|
objArr2[0] = str3;
|
|
objArr2[1] = c16113lN.e(C15715hv.tOB.percentage);
|
|
String format2 = String.format(e2, objArr2);
|
|
if (c17661yjI.f == null) {
|
|
str4 = "";
|
|
} else {
|
|
str4 = c16113lN.a(c17661yjI.f);
|
|
}
|
|
return new C0394Fo(str5, i, format, c, c2, str2, format2, str4, c17661yjI.e, c17661yjI.j);
|
|
}
|
|
|
|
public static /* synthetic */ C0388Fl e(C16113lN c16113lN, bPN bpn) {
|
|
String c = c(Double.valueOf(bpn.c != null ? bpn.c.doubleValue() : 0.0d));
|
|
String str = "";
|
|
String a = bpn.a != null ? c16113lN.a(bpn.a) : "";
|
|
String c2 = c(Double.valueOf(bpn.b != null ? bpn.b.doubleValue() : 0.0d));
|
|
String e = c16113lN.e(C15715hv.tOB.percentage_format);
|
|
Object[] objArr = new Object[2];
|
|
if (bpn.d != null) {
|
|
str = i(Double.valueOf(bpn.d.doubleValue()));
|
|
}
|
|
objArr[0] = str;
|
|
objArr[1] = c16113lN.e(C15715hv.tOB.percentage);
|
|
return new C0388Fl(c, a, c2, String.format(e, objArr));
|
|
}
|
|
|
|
public static /* synthetic */ C0395Fp c(final C16113lN c16113lN, C16936sZT c16936sZT) {
|
|
String str;
|
|
String str2;
|
|
int i = c16936sZT.n;
|
|
String str3 = c16936sZT.a;
|
|
String c = c(Double.valueOf(c16936sZT.g != null ? c16936sZT.g.doubleValue() : 0.0d));
|
|
String e = c16113lN.e(C15715hv.tOB.sme_loan_end_date);
|
|
Object[] objArr = new Object[1];
|
|
String str4 = "";
|
|
if (c16936sZT.h == null) {
|
|
str = "";
|
|
} else {
|
|
str = c16113lN.a(c16936sZT.h);
|
|
}
|
|
objArr[0] = str;
|
|
String format = String.format(e, objArr);
|
|
String str5 = c16936sZT.c;
|
|
String str6 = c16936sZT.j;
|
|
String c2 = c(c16936sZT.e, false);
|
|
String str7 = c16936sZT.i;
|
|
if (c16936sZT.k == null) {
|
|
str2 = "";
|
|
} else {
|
|
str2 = c16113lN.a(c16936sZT.k);
|
|
}
|
|
String c3 = c(Double.valueOf(c16936sZT.l != null ? c16936sZT.l.doubleValue() : 0.0d));
|
|
List a = a(c16936sZT.d, new InterfaceC1244Ytw(c16113lN) { // from class: o.lR
|
|
private C16113lN e;
|
|
|
|
@Override // o.InterfaceC1244Ytw
|
|
public final Object d(Object obj) {
|
|
return C16113lN.e(this.e, (bPN) obj);
|
|
}
|
|
|
|
{
|
|
this.e = c16113lN;
|
|
}
|
|
});
|
|
String e2 = c16113lN.e(C15715hv.tOB.percentage_format);
|
|
Object[] objArr2 = new Object[2];
|
|
if (c16936sZT.f != null) {
|
|
str4 = i(Double.valueOf(c16936sZT.f.doubleValue()));
|
|
}
|
|
objArr2[0] = str4;
|
|
objArr2[1] = c16113lN.e(C15715hv.tOB.percentage);
|
|
return new C0395Fp(i, str3, c, format, str5, str6, c2, str7, str2, c3, a, String.format(e2, objArr2), c16936sZT.b);
|
|
}
|
|
|
|
public static C0385Fj c(C0390Fm c0390Fm) {
|
|
return new C0385Fj(false, c0390Fm.c, null, c0390Fm.i, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, c0390Fm.a, 0, 0, false, null, null, null, null, null, null, false, false, false, false, null, null, c0390Fm.f8174o, null, null, null, null, null, null, null, c0390Fm.p, null, false, false, null, false, null, null);
|
|
}
|
|
|
|
public final C0390Fm a(C15893jSb c15893jSb) {
|
|
char c;
|
|
String str = (c15893jSb.c == null || c15893jSb.c.isEmpty()) ? (c15893jSb.l == null || c15893jSb.l.isEmpty()) ? "" : c15893jSb.l : c15893jSb.c;
|
|
String str2 = c15893jSb.D;
|
|
str2.hashCode();
|
|
int hashCode = str2.hashCode();
|
|
if (hashCode == 2427) {
|
|
if (str2.equals("LG")) {
|
|
c = 0;
|
|
}
|
|
c = 65535;
|
|
} else if (hashCode != 2558) {
|
|
if (hashCode == 159567045 && str2.equals("COMMERCIAL_LOAN")) {
|
|
c = 2;
|
|
}
|
|
c = 65535;
|
|
} else {
|
|
if (str2.equals("PN")) {
|
|
c = 1;
|
|
}
|
|
c = 65535;
|
|
}
|
|
if (c == 0) {
|
|
String str3 = c15893jSb.D;
|
|
int i = c15893jSb.A;
|
|
String b_ = b_(c15893jSb.B);
|
|
if (str.isEmpty()) {
|
|
str = e(C15715hv.tOB.sme_loan_lg_nickname);
|
|
}
|
|
return new C0390Fm(str3, i, b_, str, c15893jSb.a, e(C15715hv.tOB.sme_loan_lg_claimed_amount), c(Double.valueOf(c15893jSb.H != null ? c15893jSb.H.doubleValue() : 0.0d)), c15893jSb.q, c15893jSb.E, c(Double.valueOf(c15893jSb.I != null ? c15893jSb.I.doubleValue() : 0.0d)), c(Double.valueOf(c15893jSb.h != null ? c15893jSb.h.doubleValue() : 0.0d)), Integer.valueOf((c15893jSb.g == null || c15893jSb.I == null || c15893jSb.f9182o == null) ? 0 : a(Double.valueOf(c15893jSb.g.doubleValue() + c15893jSb.I.doubleValue()), Double.valueOf(c15893jSb.f9182o.doubleValue())).intValue()), Integer.valueOf((c15893jSb.I == null || c15893jSb.f9182o == null) ? 0 : a(Double.valueOf(c15893jSb.I.doubleValue()), Double.valueOf(c15893jSb.f9182o.doubleValue())).intValue()), c15893jSb.g, e(C15715hv.tOB.sme_loan_lg_outstanding_title), c(Double.valueOf(c15893jSb.I != null ? c15893jSb.I.doubleValue() : 0.0d)), b(c15893jSb.p, c15893jSb.f9182o), c15893jSb.b != null ? b_(c15893jSb.b) : "", c15893jSb.n, a(c15893jSb.m, new InterfaceC1244Ytw(this) { // from class: o.lP
|
|
private C16113lN d;
|
|
|
|
@Override // o.InterfaceC1244Ytw
|
|
public final Object d(Object obj) {
|
|
return C16113lN.c(this.d, (C16936sZT) obj);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
}), c(c15893jSb), b_(c15893jSb.C));
|
|
}
|
|
if (c == 1) {
|
|
String str4 = c15893jSb.D;
|
|
int i2 = c15893jSb.A;
|
|
String b_2 = b_(c15893jSb.B);
|
|
if (str.isEmpty()) {
|
|
str = e(C15715hv.tOB.sme_loan_pn_nickname);
|
|
}
|
|
return new C0390Fm(str4, i2, b_2, str, c15893jSb.a, e(C15715hv.tOB.sme_loan_pn_principal), c(Double.valueOf(c15893jSb.G != null ? c15893jSb.G.doubleValue() : 0.0d)), c15893jSb.q, c15893jSb.E, c(Double.valueOf(c15893jSb.G != null ? c15893jSb.G.doubleValue() : 0.0d)), c(Double.valueOf(c15893jSb.f != null ? c15893jSb.f.doubleValue() : 0.0d)), Integer.valueOf((c15893jSb.G == null || c15893jSb.z == null) ? 0 : a(Double.valueOf(c15893jSb.G.doubleValue()), Double.valueOf(c15893jSb.z.doubleValue())).intValue()), 0, e(C15715hv.tOB.sme_loan_pn_outstanding_title), c(Double.valueOf(c15893jSb.G != null ? c15893jSb.G.doubleValue() : 0.0d)), b(c15893jSb.p, c15893jSb.z), c15893jSb.b != null ? b_(c15893jSb.b) : "", c15893jSb.s, a(c15893jSb.r, new InterfaceC1244Ytw(this) { // from class: o.lL
|
|
private C16113lN a;
|
|
|
|
@Override // o.InterfaceC1244Ytw
|
|
public final Object d(Object obj) {
|
|
return C16113lN.b(this.a, (C17661yjI) obj);
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
}), c(c15893jSb), b_(c15893jSb.C));
|
|
}
|
|
if (c != 2) {
|
|
return null;
|
|
}
|
|
String str5 = c15893jSb.D;
|
|
String str6 = c15893jSb.l;
|
|
int i3 = c15893jSb.A;
|
|
String b_3 = b_(c15893jSb.B);
|
|
if (str.isEmpty()) {
|
|
str = e(C15715hv.tOB.sme_loan_commercial_nickname);
|
|
}
|
|
String str7 = str;
|
|
String str8 = c15893jSb.a;
|
|
String e = e(C15715hv.tOB.account_summary_loan_payment_due);
|
|
Object[] objArr = new Object[1];
|
|
objArr[0] = c15893jSb.w != null ? e(c15893jSb.w) : "";
|
|
String format = String.format(e, objArr);
|
|
String c2 = c(Double.valueOf(c15893jSb.y != null ? c15893jSb.y.doubleValue() : 0.0d));
|
|
String str9 = c15893jSb.q;
|
|
String str10 = c15893jSb.E;
|
|
String c3 = c(Double.valueOf(c15893jSb.x != null ? c15893jSb.x.doubleValue() : 0.0d));
|
|
String c4 = c(Double.valueOf(c15893jSb.M != null ? c15893jSb.M.doubleValue() : 0.0d));
|
|
int intValue = (c15893jSb.x == null || c15893jSb.M == null) ? 0 : a(Double.valueOf(c15893jSb.x.doubleValue()), Double.valueOf(c15893jSb.M.doubleValue())).intValue();
|
|
String e2 = e(C15715hv.tOB.sme_loan_commercial_outstanding_title);
|
|
String c5 = c(Double.valueOf(c15893jSb.t != null ? c15893jSb.t.doubleValue() : 0.0d));
|
|
boolean z = c15893jSb.v;
|
|
String b_4 = c15893jSb.b != null ? b_(c15893jSb.b) : "";
|
|
String str11 = c15893jSb.u;
|
|
String str12 = c15893jSb.d;
|
|
String c6 = c(Double.valueOf(c15893jSb.j != null ? c15893jSb.j.doubleValue() : 0.0d));
|
|
String e3 = e(C15715hv.tOB.percentage_format);
|
|
Object[] objArr2 = new Object[2];
|
|
objArr2[0] = c15893jSb.i != null ? i(Double.valueOf(c15893jSb.i.doubleValue())) : "";
|
|
objArr2[1] = e(C15715hv.tOB.percentage);
|
|
return new C0390Fm(str5, str6, i3, b_3, str7, str8, format, c2, str9, str10, c3, c4, 0, Integer.valueOf(intValue), e2, c5, z, b_4, str11, str12, c6, String.format(e3, objArr2), String.valueOf(c15893jSb.k), String.valueOf(c15893jSb.F), c(c15893jSb), b_(c15893jSb.C));
|
|
}
|
|
}
|