153 lines
5.5 KiB
Java
153 lines
5.5 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import o.C15715hv;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/* renamed from: o.tp, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C17091tp extends C17082tl {
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C17091tp(Resources resources, SharedPreferences sharedPreferences, String str) {
|
|
super(resources, sharedPreferences, str);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
C14957gcv.e(str, "");
|
|
}
|
|
|
|
/* renamed from: o.tp$IeS */
|
|
/* loaded from: classes3.dex */
|
|
public static final class IeS {
|
|
private IeS() {
|
|
}
|
|
|
|
public /* synthetic */ IeS(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public final NB c(String str, String str2, String str3) {
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
if (str2 == null) {
|
|
str2 = "";
|
|
}
|
|
return new NB(str, str2, str3 != null ? this.e.getString(C15715hv.tOB.hml_outcome_pending_date, d(OffsetDateTime.parse(str3))) : null);
|
|
}
|
|
|
|
public final NU a(ENH enh) {
|
|
WZ wz;
|
|
String str;
|
|
String i;
|
|
String str2 = enh.l;
|
|
String str3 = enh.a;
|
|
String str4 = enh.h.a;
|
|
String str5 = enh.e;
|
|
String str6 = enh.h.d;
|
|
String a = a(OffsetDateTime.parse(enh.k));
|
|
C14957gcv.c((Object) a, "");
|
|
Wcm wcm = enh.b;
|
|
String str7 = wcm != null ? wcm.e : null;
|
|
Wcm wcm2 = enh.b;
|
|
String str8 = wcm2 != null ? wcm2.d : null;
|
|
String i2 = C6583cXR.i(enh.q);
|
|
String str9 = enh.g;
|
|
String str10 = enh.i;
|
|
WZ c = C17082tl.c(this, true, enh.f8142o, C15715hv.tOB.hml_outcome_interest_rate_title, 0, 8);
|
|
Wcm wcm3 = enh.c;
|
|
if (wcm3 != null) {
|
|
wz = c;
|
|
if (C14957gcv.b((Object) wcm3.d, (Object) "0.00")) {
|
|
i = e(C15715hv.tOB.hml_offer_review_waived);
|
|
} else {
|
|
i = C6583cXR.i(wcm3.d);
|
|
}
|
|
str = i;
|
|
} else {
|
|
wz = c;
|
|
str = null;
|
|
}
|
|
String i3 = C6583cXR.i(enh.f);
|
|
String str11 = enh.d;
|
|
return new NU(str2, str3, str4, str5, str6, a, str7, str8, i2, str9, str10, wz, str, i3, str11 != null ? b_(str11) : null);
|
|
}
|
|
|
|
public final ND b(muE mue) {
|
|
String c;
|
|
ArrayList arrayList;
|
|
ArrayList arrayList2;
|
|
RGZ rgz;
|
|
C14957gcv.e(mue, "");
|
|
String d = d(OffsetDateTime.parse(mue.b));
|
|
if (mue.l == null || (c = c(C15715hv.tOB.auto_app_outcome_upselling_desc, mue.j)) == null) {
|
|
c = c(C15715hv.tOB.auto_app_outcome_counter_teaser_desc, mue.j);
|
|
}
|
|
String str = c;
|
|
C14957gcv.c((Object) str, "");
|
|
List<ENH> list = mue.g;
|
|
if (list != null) {
|
|
List<ENH> list2 = list;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList3 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
for (ENH enh : list2) {
|
|
C14957gcv.e(enh, "");
|
|
String str2 = enh.m;
|
|
String str3 = enh.j;
|
|
String str4 = str3 == null ? "" : str3;
|
|
String c2 = c(C15715hv.tOB.hml_success_principal_amount, C16157lj.d(Double.valueOf(Double.parseDouble(enh.l))));
|
|
C14957gcv.c((Object) c2, "");
|
|
String c3 = c(C15715hv.tOB.hml_outcome_reject_repayment_value, C16157lj.d(Double.valueOf(Double.parseDouble(enh.a))), enh.e, enh.h.d);
|
|
C14957gcv.c((Object) c3, "");
|
|
WZ c4 = C17082tl.c(this, true, enh.f8142o, C15715hv.tOB.hml_outcome_interest_rate_title, 0, 8);
|
|
String str5 = enh.d;
|
|
arrayList3.add(new C0732Ng(str2, str4, c2, c3, c4, str5 != null ? b_(str5) : null));
|
|
}
|
|
ArrayList arrayList4 = arrayList3;
|
|
C14957gcv.e(arrayList4, "");
|
|
arrayList = new ArrayList(arrayList4);
|
|
RGZ rgz2 = mue.l;
|
|
if (rgz2 != null && rgz2.g && (rgz = mue.l) != null) {
|
|
String str6 = rgz.f;
|
|
String str7 = rgz.d;
|
|
String b_ = b_(rgz.c);
|
|
C14957gcv.c((Object) b_, "");
|
|
Double d2 = gdZ.d(rgz.e);
|
|
double doubleValue = d2 != null ? d2.doubleValue() : 0.0d;
|
|
Double d3 = gdZ.d(rgz.a);
|
|
double doubleValue2 = d3 != null ? d3.doubleValue() : 0.0d;
|
|
Double d4 = gdZ.d(rgz.b);
|
|
arrayList.add(new NP(str6, str7, b_, doubleValue, doubleValue2, d4 != null ? d4.doubleValue() : 0.0d));
|
|
}
|
|
C14866gag c14866gag = C14866gag.c;
|
|
} else {
|
|
arrayList = null;
|
|
}
|
|
List<ENH> list3 = mue.g;
|
|
if (list3 != null) {
|
|
List<ENH> list4 = list3;
|
|
C14957gcv.e(list4, "");
|
|
ArrayList arrayList5 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
|
|
Iterator<T> it = list4.iterator();
|
|
while (it.hasNext()) {
|
|
arrayList5.add(a((ENH) it.next()));
|
|
}
|
|
arrayList2 = arrayList5;
|
|
} else {
|
|
arrayList2 = null;
|
|
}
|
|
String str8 = mue.c;
|
|
return new ND(d, str, arrayList, arrayList2, str8 != null ? b_(str8) : null);
|
|
}
|
|
|
|
static {
|
|
new IeS((byte) 0);
|
|
}
|
|
}
|