228 lines
7.6 KiB
Java
228 lines
7.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.res.Resources;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
import o.C15715hv;
|
||
|
import o.EW;
|
||
|
import o.QK;
|
||
|
import o.QO;
|
||
|
import org.threeten.bp.OffsetDateTime;
|
||
|
|
||
|
/* renamed from: o.zo, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C17798zo extends AbstractC17778zg<DpR> {
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public C17798zo(Resources resources, SharedPreferences sharedPreferences) {
|
||
|
super(resources, sharedPreferences);
|
||
|
C14957gcv.e(resources, "");
|
||
|
C14957gcv.e(sharedPreferences, "");
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.zo$IeS */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class IeS {
|
||
|
private IeS() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ IeS(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final EW d(InterfaceC1027Ua interfaceC1027Ua, DpR dpR) {
|
||
|
C14957gcv.e(interfaceC1027Ua, "");
|
||
|
C14957gcv.e(dpR, "");
|
||
|
d((C17798zo) dpR);
|
||
|
Jky jky = dpR.e;
|
||
|
OffsetDateTime offsetDateTime = dpR.x;
|
||
|
String str = dpR.n;
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
EW.LWm b = EW.b(c(interfaceC1027Ua, jky, offsetDateTime, str), "PointX_Partner_Payment_".concat(String.valueOf(dpR.n)));
|
||
|
b.g = Boolean.TRUE.booleanValue();
|
||
|
boolean z = true;
|
||
|
b.n = true;
|
||
|
String k = interfaceC1027Ua.k();
|
||
|
Double d = dpR.u;
|
||
|
Double d2 = dpR.v;
|
||
|
if (dpR.u != null && dpR.v != null) {
|
||
|
z = false;
|
||
|
}
|
||
|
b.f = a(k, d, d2, z);
|
||
|
EW c = b.c();
|
||
|
C14957gcv.c(c, "");
|
||
|
return c;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC17778zg
|
||
|
public final QK e(InterfaceC1027Ua interfaceC1027Ua) {
|
||
|
C14957gcv.e(interfaceC1027Ua, "");
|
||
|
QK.LWm e = QK.e();
|
||
|
e.g = e(C15715hv.tOB.to);
|
||
|
e.h = interfaceC1027Ua.e();
|
||
|
DpR h = h();
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
String string = this.e.getString(C15715hv.tOB.biller_ac, C6583cXR.u(interfaceC1027Ua.c()));
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(string);
|
||
|
sb2.append("\n");
|
||
|
sb.append(sb2.toString());
|
||
|
if (interfaceC1027Ua instanceof TW) {
|
||
|
TW tw = (TW) interfaceC1027Ua;
|
||
|
if (h.k) {
|
||
|
tw.j = h.r;
|
||
|
tw.f = h.s;
|
||
|
tw.h = h.q;
|
||
|
}
|
||
|
String str = tw.g;
|
||
|
String str2 = tw.j;
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
sb3.append(str);
|
||
|
sb3.append(" : ");
|
||
|
sb3.append(str2);
|
||
|
sb.append(sb3.toString());
|
||
|
String str3 = tw.f;
|
||
|
if (!(str3 == null || gdZ.d((CharSequence) str3))) {
|
||
|
String str4 = tw.i;
|
||
|
if (!(str4 == null || gdZ.d((CharSequence) str4))) {
|
||
|
String str5 = tw.i;
|
||
|
String str6 = tw.f;
|
||
|
StringBuilder sb4 = new StringBuilder("\n");
|
||
|
sb4.append(str5);
|
||
|
sb4.append(" : ");
|
||
|
sb4.append(str6);
|
||
|
sb.append(sb4.toString());
|
||
|
}
|
||
|
}
|
||
|
String str7 = tw.h;
|
||
|
if (!(str7 == null || gdZ.d((CharSequence) str7))) {
|
||
|
String str8 = tw.l;
|
||
|
if (!(str8 == null || gdZ.d((CharSequence) str8))) {
|
||
|
String str9 = tw.l;
|
||
|
String str10 = tw.h;
|
||
|
StringBuilder sb5 = new StringBuilder("\n");
|
||
|
sb5.append(str9);
|
||
|
sb5.append(" : ");
|
||
|
sb5.append(str10);
|
||
|
sb.append(sb5.toString());
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
String obj = sb.toString();
|
||
|
C14957gcv.c((Object) obj, "");
|
||
|
e.a = obj;
|
||
|
e.c = interfaceC1027Ua.b();
|
||
|
e.d = C15715hv.IeS.ic_biller_default;
|
||
|
e.k = true;
|
||
|
QK qk = new QK(e, (byte) 0);
|
||
|
C14957gcv.c(qk, "");
|
||
|
return qk;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC17778zg
|
||
|
public final void b(InterfaceC1027Ua interfaceC1027Ua) {
|
||
|
String b;
|
||
|
C14957gcv.e(interfaceC1027Ua, "");
|
||
|
boolean z = Double.parseDouble(interfaceC1027Ua.l()) <= 0.0d;
|
||
|
QO.IeS a = QO.a();
|
||
|
String e = e(C15715hv.tOB.review_fees);
|
||
|
C14957gcv.c((Object) e, "");
|
||
|
a.g = C2974aoj.b(e);
|
||
|
a.h = c(Double.valueOf(Double.parseDouble(interfaceC1027Ua.l())));
|
||
|
if (z) {
|
||
|
a.m = true;
|
||
|
}
|
||
|
String h = interfaceC1027Ua.h();
|
||
|
if (!(h == null || gdZ.d((CharSequence) h))) {
|
||
|
QO.IeS a2 = QO.a();
|
||
|
C14957gcv.e(interfaceC1027Ua, "");
|
||
|
if ((interfaceC1027Ua instanceof TW) && C14957gcv.b(((TW) interfaceC1027Ua).b, Boolean.TRUE)) {
|
||
|
String e2 = e(C15715hv.tOB.point_x_pay_with_account);
|
||
|
C14957gcv.c((Object) e2, "");
|
||
|
b = C2974aoj.b(e2);
|
||
|
} else {
|
||
|
String e3 = e(C15715hv.tOB.point_x_pay_with_account_card);
|
||
|
C14957gcv.c((Object) e3, "");
|
||
|
b = C2974aoj.b(e3);
|
||
|
}
|
||
|
a2.g = b;
|
||
|
String h2 = interfaceC1027Ua.h();
|
||
|
a2.h = c(h2 != null ? Double.valueOf(Double.parseDouble(h2)) : null);
|
||
|
a2.l = true;
|
||
|
this.a.add(a2.d());
|
||
|
}
|
||
|
a.k = true;
|
||
|
this.a.add(a.d());
|
||
|
this.a.add(new QQ(false, (byte) 0));
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC17778zg
|
||
|
public final void e(InterfaceC1027Ua interfaceC1027Ua, Jky jky) {
|
||
|
C14957gcv.e(interfaceC1027Ua, "");
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
if (C14957gcv.b((Object) interfaceC1027Ua.k(), (Object) "P")) {
|
||
|
arrayList.add(new XL("TEXT", e(C15715hv.tOB.point_x_partner_payment_remark), null, e(C15715hv.tOB.point_x_partner_payment_bill_payment_remark_message), null, null, null));
|
||
|
}
|
||
|
C14851gaI c14851gaI = jky != null ? jky.e : null;
|
||
|
if (c14851gaI == null) {
|
||
|
c14851gaI = C14851gaI.c;
|
||
|
}
|
||
|
for (jSX jsx : c14851gaI) {
|
||
|
if (jsx != null) {
|
||
|
arrayList.add(new XL(jsx.f, jsx.i, jsx.d, jsx.c, jsx.e, jsx.b));
|
||
|
}
|
||
|
}
|
||
|
interfaceC1027Ua.a(new TO(arrayList));
|
||
|
AbstractC17778zg.e(this, interfaceC1027Ua);
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC17778zg
|
||
|
public final List<QI> c(String str, ZJc zJc) {
|
||
|
C14957gcv.e(str, "");
|
||
|
if (str.length() <= 0) {
|
||
|
if (zJc == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String str2 = zJc.d;
|
||
|
if (str2 == null) {
|
||
|
str2 = "";
|
||
|
}
|
||
|
String str3 = zJc.e;
|
||
|
if (str3 == null) {
|
||
|
str3 = "";
|
||
|
}
|
||
|
List<QI> singletonList = Collections.singletonList(new QI(str2, str3, true));
|
||
|
C14957gcv.c(singletonList, "");
|
||
|
return singletonList;
|
||
|
}
|
||
|
QI[] qiArr = new QI[2];
|
||
|
String str4 = zJc != null ? zJc.d : null;
|
||
|
if (str4 == null) {
|
||
|
str4 = "";
|
||
|
}
|
||
|
String str5 = zJc != null ? zJc.e : null;
|
||
|
if (str5 == null) {
|
||
|
str5 = "";
|
||
|
}
|
||
|
qiArr[0] = new QI(str4, str5, true);
|
||
|
String e = e(C15715hv.tOB.return_to_pointx);
|
||
|
C14957gcv.c((Object) e, "");
|
||
|
qiArr[1] = new QI(e, str);
|
||
|
C14957gcv.e(qiArr, "");
|
||
|
C14957gcv.e(qiArr, "");
|
||
|
List<QI> asList = Arrays.asList(qiArr);
|
||
|
C14957gcv.c(asList, "");
|
||
|
return asList;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new IeS((byte) 0);
|
||
|
}
|
||
|
}
|