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

73 lines
2.6 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
import o.C15715hv;
/* renamed from: o.lI, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16101lI extends AbstractC16173lt<Ibr, QH> {
private final BaseAssetsDisplayMapper a;
/* JADX INFO: Access modifiers changed from: package-private */
@InterfaceC13391fZD
public C16101lI(Resources resources, BaseAssetsDisplayMapper baseAssetsDisplayMapper, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
this.a = baseAssetsDisplayMapper;
}
private static String c(String str, String str2) {
String str3 = C6583cXR.c(str).doubleValue() > 0.0d ? "+" : "";
StringBuilder sb = new StringBuilder();
sb.append(str3);
sb.append(str);
sb.append(" (");
sb.append(str3);
sb.append(str2);
sb.append("%)");
return sb.toString();
}
@Override // o.AbstractC16173lt
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public final QH d(Ibr ibr) {
QD qd;
int i;
int i2;
UHc uHc = ibr.e;
int i3 = 0;
QD qd2 = null;
if (uHc != null) {
String str = uHc.e;
String b_ = this.a.b_(uHc.c);
double doubleValue = C6583cXR.c(uHc.d).doubleValue();
if (doubleValue > 0.0d) {
i2 = C15715hv.IeS.ic_arrow_up;
} else if (doubleValue >= 0.0d) {
i = 0;
qd = new QD(str, b_, i, C6583cXR.i(uHc.j), c(C6583cXR.i(uHc.d), uHc.f), b(C6583cXR.c(uHc.d).doubleValue()), a(uHc.a), 0, false, uHc.b);
} else {
i2 = C15715hv.IeS.ic_arrow_down;
}
i = i2;
qd = new QD(str, b_, i, C6583cXR.i(uHc.j), c(C6583cXR.i(uHc.d), uHc.f), b(C6583cXR.c(uHc.d).doubleValue()), a(uHc.a), 0, false, uHc.b);
} else {
qd = null;
}
szZ szz = ibr.b;
if (szz != null) {
String str2 = szz.c;
String b_2 = this.a.b_(szz.d);
double doubleValue2 = C6583cXR.c(szz.i).doubleValue();
if (doubleValue2 > 0.0d) {
i3 = C15715hv.IeS.ic_arrow_up;
} else if (doubleValue2 < 0.0d) {
i3 = C15715hv.IeS.ic_arrow_down;
}
qd2 = new QD(str2, b_2, i3, C6583cXR.i(szz.j), c(C6583cXR.i(szz.i), szz.g), b(C6583cXR.c(szz.i).doubleValue()), a(szz.e), 1, szz.b, szz.a);
}
return new QH(qd, qd2);
}
}