160 lines
5.6 KiB
Java
160 lines
5.6 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import o.C15715hv;
|
|
import o.EW;
|
|
import o.QK;
|
|
import o.QO;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/* renamed from: o.zi, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C17786zi extends AbstractC17778zg<kVd> {
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C17786zi(Resources resources, SharedPreferences sharedPreferences) {
|
|
super(resources, sharedPreferences);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
}
|
|
|
|
/* renamed from: o.zi$LWm */
|
|
/* loaded from: classes3.dex */
|
|
public static final class LWm {
|
|
private LWm() {
|
|
}
|
|
|
|
public /* synthetic */ LWm(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public final EW a(InterfaceC1027Ua interfaceC1027Ua, kVd kvd) {
|
|
C14957gcv.e(interfaceC1027Ua, "");
|
|
C14957gcv.e(kvd, "");
|
|
d((C17786zi) kvd);
|
|
C15758iOf c15758iOf = kvd.a;
|
|
C14851gaI c14851gaI = c15758iOf != null ? c15758iOf.c : null;
|
|
if (c14851gaI == null) {
|
|
c14851gaI = C14851gaI.c;
|
|
}
|
|
List<C16360nhu> list = c14851gaI;
|
|
C14957gcv.e(list, "");
|
|
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
|
|
for (C16360nhu c16360nhu : list) {
|
|
arrayList.add(new jSX(c16360nhu.e, c16360nhu.a, c16360nhu.b, c16360nhu.d, c16360nhu.c, (String) null, 96));
|
|
}
|
|
Jky jky = new Jky(C14881gav.d((Iterable) arrayList));
|
|
OffsetDateTime offsetDateTime = kvd.c;
|
|
String str = kvd.d;
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
EW.LWm b = EW.b(c(interfaceC1027Ua, jky, offsetDateTime, str), "PointX_Partner_Credit_".concat(String.valueOf(kvd.d)));
|
|
b.g = Boolean.TRUE.booleanValue();
|
|
b.n = true;
|
|
b.f = a(interfaceC1027Ua.k(), kvd.i, kvd.h, kvd.e);
|
|
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();
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(interfaceC1027Ua.c());
|
|
if (interfaceC1027Ua instanceof TY) {
|
|
TY ty = (TY) interfaceC1027Ua;
|
|
String str = ty.d;
|
|
if (!(str == null || gdZ.d((CharSequence) str))) {
|
|
String string = this.e.getString(C15715hv.tOB.reference_1);
|
|
String str2 = ty.d;
|
|
StringBuilder sb2 = new StringBuilder("\n");
|
|
sb2.append(string);
|
|
sb2.append(" : ");
|
|
sb2.append(str2);
|
|
sb.append(sb2.toString());
|
|
}
|
|
String str3 = ty.e;
|
|
if (!(str3 == null || gdZ.d((CharSequence) str3))) {
|
|
String string2 = this.e.getString(C15715hv.tOB.merchant_terminal_label);
|
|
String str4 = ty.e;
|
|
StringBuilder sb3 = new StringBuilder("\n");
|
|
sb3.append(string2);
|
|
sb3.append(" : ");
|
|
sb3.append(str4);
|
|
sb.append(sb3.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) {
|
|
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();
|
|
String e2 = e(C15715hv.tOB.point_x_pay_with_account_card);
|
|
C14957gcv.c((Object) e2, "");
|
|
a2.g = C2974aoj.b(e2);
|
|
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_credit_card_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);
|
|
}
|
|
|
|
static {
|
|
new LWm((byte) 0);
|
|
}
|
|
}
|