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

361 lines
13 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import o.C15715hv;
import o.QG;
import o.QK;
import o.QN;
import o.QO;
import o.QR;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.zg */
/* loaded from: classes3.dex */
public abstract class AbstractC17778zg<T> extends C16181lx {
private T b;
public abstract QK e(InterfaceC1027Ua interfaceC1027Ua);
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public AbstractC17778zg(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
}
/* renamed from: o.zg$HBt */
/* loaded from: classes3.dex */
protected static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
public final T h() {
T t = this.b;
if (t != null) {
return t;
}
C14957gcv.a("");
return (T) C14866gag.c;
}
public void b(OffsetDateTime offsetDateTime, String str) {
C14957gcv.e(str, "");
QN.HBt a = QN.a();
a.f = e(C15715hv.tOB.point_x_partner_success_title);
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
a.a = d(offsetDateTime);
a.c = c(C15715hv.tOB.reference_id, str);
this.a.add(new QN(a, YD.REVAMP_SUCCESS_HEADER, (byte) 0));
this.a.add(new QQ(true));
}
public final List<EM> c(InterfaceC1027Ua interfaceC1027Ua, Jky jky, OffsetDateTime offsetDateTime, String str) {
C14957gcv.e(interfaceC1027Ua, "");
C14957gcv.e(str, "");
this.a.clear();
b(offsetDateTime, str);
e(interfaceC1027Ua, jky);
List<EM> list = this.a;
C14957gcv.c(list, "");
return list;
}
public void e(InterfaceC1027Ua interfaceC1027Ua, Jky jky) {
C14957gcv.e(interfaceC1027Ua, "");
ArrayList arrayList = new ArrayList();
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));
e(this, interfaceC1027Ua);
}
/* JADX WARN: Code restructure failed: missing block: B:20:0x007d, code lost:
if (r4 == null) goto L53;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x0085, code lost:
if (r4 == null) goto L55;
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x00ba, code lost:
if (r4 == null) goto L61;
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x00c2, code lost:
if (r4 == null) goto L63;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x003b, code lost:
if (r4 == null) goto L43;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.String a(java.lang.String r4, java.lang.Double r5, java.lang.Double r6, boolean r7) {
/*
r3 = this;
java.lang.String r0 = ""
o.C14957gcv.e(r4, r0)
java.lang.String r1 = "PWCASA"
boolean r1 = o.C14957gcv.b(r4, r1)
java.lang.String r2 = "PWCC"
if (r1 != 0) goto L48
boolean r1 = o.C14957gcv.b(r4, r2)
if (r1 != 0) goto L48
if (r7 != 0) goto L3d
if (r6 == 0) goto L3d
r4 = r6
java.lang.Number r4 = (java.lang.Number) r4
o.gcH r4 = o.gcH.d
int r4 = o.C15715hv.tOB.point_x_remaining_balance_p
java.lang.String r4 = r3.e(r4)
o.C14957gcv.c(r4, r0)
java.lang.String r5 = o.C16157lj.d(r6)
java.lang.Object[] r5 = new java.lang.Object[]{r5}
r6 = 1
java.lang.Object[] r5 = java.util.Arrays.copyOf(r5, r6)
java.lang.String r4 = java.lang.String.format(r4, r5)
o.C14957gcv.c(r4, r0)
if (r4 != 0) goto L43
L3d:
int r4 = o.C15715hv.tOB.point_x_remaining_balance_p_point_empty
java.lang.String r4 = r3.e(r4)
L43:
o.C14957gcv.c(r4, r0)
goto Lcd
L48:
if (r7 != 0) goto Lc4
boolean r4 = o.C14957gcv.b(r4, r2)
r7 = 2
if (r4 == 0) goto L8e
if (r5 == 0) goto L87
r4 = r5
java.lang.Number r4 = (java.lang.Number) r4
if (r6 == 0) goto L7f
r4 = r6
java.lang.Number r4 = (java.lang.Number) r4
o.gcH r4 = o.gcH.d
int r4 = o.C15715hv.tOB.point_x_remaining_balance_p_cc
java.lang.String r4 = r3.e(r4)
o.C14957gcv.c(r4, r0)
java.lang.String r5 = c(r5)
java.lang.String r6 = o.C16157lj.d(r6)
java.lang.Object[] r5 = new java.lang.Object[]{r5, r6}
java.lang.Object[] r5 = java.util.Arrays.copyOf(r5, r7)
java.lang.String r4 = java.lang.String.format(r4, r5)
o.C14957gcv.c(r4, r0)
if (r4 != 0) goto L85
L7f:
int r4 = o.C15715hv.tOB.point_x_remaining_balance_p_casa_point_empty
java.lang.String r4 = r3.e(r4)
L85:
if (r4 != 0) goto Lca
L87:
int r4 = o.C15715hv.tOB.point_x_remaining_balance_p_casa_point_empty
java.lang.String r4 = r3.e(r4)
goto Lca
L8e:
if (r5 == 0) goto Lc4
r4 = r5
java.lang.Number r4 = (java.lang.Number) r4
if (r6 == 0) goto Lbc
r4 = r6
java.lang.Number r4 = (java.lang.Number) r4
o.gcH r4 = o.gcH.d
int r4 = o.C15715hv.tOB.point_x_remaining_balance_p_casa
java.lang.String r4 = r3.e(r4)
o.C14957gcv.c(r4, r0)
java.lang.String r5 = c(r5)
java.lang.String r6 = o.C16157lj.d(r6)
java.lang.Object[] r5 = new java.lang.Object[]{r5, r6}
java.lang.Object[] r5 = java.util.Arrays.copyOf(r5, r7)
java.lang.String r4 = java.lang.String.format(r4, r5)
o.C14957gcv.c(r4, r0)
if (r4 != 0) goto Lc2
Lbc:
int r4 = o.C15715hv.tOB.point_x_remaining_balance_p_casa_point_empty
java.lang.String r4 = r3.e(r4)
Lc2:
if (r4 != 0) goto Lca
Lc4:
int r4 = o.C15715hv.tOB.point_x_remaining_balance_p_casa_point_empty
java.lang.String r4 = r3.e(r4)
Lca:
o.C14957gcv.c(r4, r0)
Lcd:
return r4
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractC17778zg.a(java.lang.String, java.lang.Double, java.lang.Double, boolean):java.lang.String");
}
public static /* synthetic */ void e(AbstractC17778zg abstractC17778zg, InterfaceC1027Ua interfaceC1027Ua) {
C14957gcv.e(interfaceC1027Ua, "");
QK.LWm e = QK.e();
e.g = abstractC17778zg.e(C15715hv.tOB.from);
e.h = interfaceC1027Ua.f();
int i = C15715hv.tOB.point_x_point_ref_no;
cXL cxl = cXL.c;
e.a = abstractC17778zg.c(i, cXL.c(interfaceC1027Ua.m(), true));
e.c = C6583cXR.VR_(C15715hv.IeS.ic_point_oval).toString();
abstractC17778zg.a.add(new QK(e, (byte) 0));
abstractC17778zg.a(interfaceC1027Ua);
abstractC17778zg.a.add(abstractC17778zg.e(interfaceC1027Ua));
abstractC17778zg.a.add(new QQ(true));
QO.IeS a = QO.a();
String e2 = abstractC17778zg.e(C15715hv.tOB.point_x_total_amount);
C14957gcv.c((Object) e2, "");
a.g = C2974aoj.b(e2);
a.h = c(Double.valueOf(Double.parseDouble(interfaceC1027Ua.o())));
a.l = true;
abstractC17778zg.a.add(a.d());
String c = c(Double.valueOf(Double.parseDouble(interfaceC1027Ua.n())));
String d = C16157lj.d(Double.valueOf(Double.parseDouble(interfaceC1027Ua.j())));
QO.IeS a2 = QO.a();
String e3 = abstractC17778zg.e(C15715hv.tOB.point_x_pay_with_point);
C14957gcv.c((Object) e3, "");
a2.g = C2974aoj.b(e3);
a2.k = true;
a2.h = abstractC17778zg.c(C15715hv.tOB.point_x_point_value, c, d);
a2.j = true;
abstractC17778zg.a.add(a2.d());
abstractC17778zg.a.add(new QQ(true));
abstractC17778zg.b(interfaceC1027Ua);
C14957gcv.e(interfaceC1027Ua, "");
if (interfaceC1027Ua instanceof TX) {
TX tx = (TX) interfaceC1027Ua;
String str = tx.a;
if (!(str == null || gdZ.d((CharSequence) str))) {
QR.LWm b = QR.b();
b.g = abstractC17778zg.e.getString(C15715hv.tOB.review_biller_note);
b.a = tx.a;
abstractC17778zg.a.add(new QR(b, (byte) 0));
abstractC17778zg.a.add(new QQ(true));
}
}
TO g = interfaceC1027Ua.g();
C14851gaI c14851gaI = g != null ? g.b : null;
if (c14851gaI == null) {
c14851gaI = C14851gaI.c;
}
boolean z = !c14851gaI.isEmpty();
if (C2974aoj.c(interfaceC1027Ua.i())) {
if (z) {
abstractC17778zg.d(interfaceC1027Ua);
return;
}
return;
}
QR.LWm b2 = QR.b();
b2.g = abstractC17778zg.e.getString(C15715hv.tOB.note);
b2.e = interfaceC1027Ua.i();
abstractC17778zg.a.add(new QR(b2, (byte) 0));
abstractC17778zg.a.add(new QQ(true));
if (z) {
abstractC17778zg.d(interfaceC1027Ua);
}
}
public void a(InterfaceC1027Ua interfaceC1027Ua) {
String obj;
int i;
C14957gcv.e(interfaceC1027Ua, "");
if (interfaceC1027Ua instanceof TW) {
obj = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
i = C15715hv.IeS.bankicon_scb;
} else {
if (interfaceC1027Ua instanceof TY) {
TY ty = (TY) interfaceC1027Ua;
String str = ty.a;
if (!(str == null || gdZ.d((CharSequence) str))) {
obj = ty.a;
i = C15715hv.IeS.ic_bill_credit_card;
}
}
obj = C6583cXR.VR_(C15715hv.IeS.ic_bill_credit_card).toString();
i = C15715hv.IeS.ic_bill_credit_card;
}
QK.LWm e = QK.e();
e.h = interfaceC1027Ua.a();
e.a = c(interfaceC1027Ua.d(), true);
e.c = obj;
e.d = i;
e.k = true;
this.a.add(new QK(e, (byte) 0));
}
public 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;
}
if (C14957gcv.b((Object) interfaceC1027Ua.k(), (Object) "PWCASA")) {
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 h = interfaceC1027Ua.h();
a2.h = c(h != null ? Double.valueOf(Double.parseDouble(h)) : null);
a2.l = true;
this.a.add(a2.d());
a.k = true;
this.a.add(a.d());
this.a.add(new QQ(true));
return;
}
this.a.add(a.d());
this.a.add(new QQ(z, (byte) 0));
}
private final void d(InterfaceC1027Ua interfaceC1027Ua) {
QG.RVV a = QG.a();
TO g = interfaceC1027Ua.g();
a.e = g != null ? g.b : null;
this.a.add(new QG((QG.RVV<?>) a));
}
public List<QI> c(String str, ZJc zJc) {
C14957gcv.e(str, "");
if (str.length() <= 0) {
return null;
}
String e = e(C15715hv.tOB.return_to_pointx);
C14957gcv.c((Object) e, "");
List<QI> singletonList = Collections.singletonList(new QI(e, str));
C14957gcv.c(singletonList, "");
return singletonList;
}
public final void d(T t) {
C14957gcv.e(t, "");
this.b = t;
}
static {
new HBt((byte) 0);
}
}