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

290 lines
8.8 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import o.C0653Ll;
import o.C0655Lm;
import o.C0690Mh;
import o.C15715hv;
import o.InterfaceC6621cYR;
import o.JO;
import o.LY;
import o.ZI;
/* renamed from: o.aYv */
/* loaded from: classes4.dex */
public class C2161aYv extends ZI<InterfaceC6621cYR.ojQ> {
public final C15831iv a;
public C0651Lj b;
public odT c;
public int d;
public HKr e;
public String g;
public String h;
private final C16729ql i;
private C16746qs k;
private final C16989su m;
private final C16960sk n;
/* renamed from: o */
private final C16675qJ f8510o;
@InterfaceC13391fZD
public C2161aYv(C16903sI c16903sI, C16675qJ c16675qJ, C16989su c16989su, C16960sk c16960sk, C16746qs c16746qs, C16729ql c16729ql, C15831iv c15831iv) {
super(c16903sI);
this.d = 0;
this.h = "%.2f";
this.g = "";
this.f8510o = c16675qJ;
this.m = c16989su;
this.a = c15831iv;
this.n = c16960sk;
this.k = c16746qs;
this.i = c16729ql;
}
public static /* synthetic */ void d(double d, InterfaceC6621cYR.ojQ ojq) {
ojq.aX_();
ojq.b();
ojq.a(false);
ojq.d(d);
}
public static /* synthetic */ void b(InterfaceC6621cYR.ojQ ojq) {
ojq.aX_();
ojq.b();
ojq.a(false);
ojq.c();
}
public static /* synthetic */ void b(SgN sgN, InterfaceC6621cYR.ojQ ojq) {
ojq.ar_();
ojq.b(sgN);
}
public static /* synthetic */ boolean e(C17180ucA c17180ucA) {
return ("WEEKLY_PAYMENT".equals(c17180ucA.a) && c17180ucA.g != null) || "MONTHLY_PAYMENT".equals(c17180ucA.a);
}
@Override // o.ZI
public final void w_() {
this.a.a();
super.w_();
}
public static /* synthetic */ C14866gag b(C2161aYv c2161aYv, SgN sgN) {
ZI.IeS ieS = new ZI.IeS(sgN) { // from class: o.aYr
private SgN e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2161aYv.b(this.e, (InterfaceC6621cYR.ojQ) obj);
}
{
this.e = sgN;
}
};
if (c2161aYv.f != 0) {
ieS.e(c2161aYv.f);
}
return C14866gag.c;
}
public static /* synthetic */ C14866gag a(C2161aYv c2161aYv, Throwable th) {
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c2161aYv.b(th)) {
c2161aYv.d(c2161aYv.j.d(th, ieS));
}
return C14866gag.c;
}
public static /* synthetic */ C14866gag d(C2161aYv c2161aYv, HKr hKr) {
c2161aYv.e = hKr;
if (c2161aYv.f != 0) {
c2161aYv.f.ar_();
}
C16675qJ c16675qJ = c2161aYv.f8510o;
C14957gcv.e(hKr, "");
List<SYb> list = hKr.d;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (SYb sYb : list) {
C0655Lm.Sts c = C0655Lm.c();
c.b = sYb.c;
c.a = sYb.e;
LZR lzr = sYb.b;
C14957gcv.c(lzr, "");
C0653Ll.RVV rvv = new C0653Ll.RVV();
rvv.b = lzr.j;
JO.Sts e = JO.d().b(lzr.e).d(lzr.d).e(c16675qJ.b_(lzr.a));
String str = lzr.r;
rvv.e = e.b(str != null ? Integer.parseInt(str) : 0).d().a();
rvv.d = lzr.c;
rvv.a = lzr.b;
rvv.C = lzr.r;
rvv.y = lzr.f8477o;
rvv.x = lzr.m;
rvv.D = lzr.p;
rvv.q = lzr.l;
rvv.s = lzr.i;
rvv.t = lzr.g;
rvv.u = lzr.t;
rvv.p = (List) C16157lj.c(new Object[]{lzr.h, new InterfaceC1244Ytw() { // from class: o.qK
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
int parseInt;
parseInt = Integer.parseInt((String) obj);
return Integer.valueOf(parseInt);
}
}}, -1846295624, 1846295631, (int) System.currentTimeMillis());
rvv.v = (List) C16157lj.c(new Object[]{lzr.k, new InterfaceC1244Ytw(c16675qJ) { // from class: o.qO
private C16675qJ d;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C16778rF.b((NqH) obj);
}
{
this.d = c16675qJ;
}
}}, -1846295624, 1846295631, (int) System.currentTimeMillis());
LB a = rvv.a();
C14957gcv.d(a, "");
c.d = (C0653Ll) a;
arrayList.add(new C0655Lm(c, (byte) 0));
}
String c2 = c16675qJ.c(C15715hv.tOB.commercial_feature_disclaimer_top, hKr.a.d);
String e2 = c16675qJ.e(C15715hv.tOB.commercial_feature_disclaimer_bottom);
StringBuilder sb = new StringBuilder();
sb.append(c2);
sb.append("\n");
sb.append(e2);
C0651Lj c0651Lj = new C0651Lj(arrayList, sb.toString());
c2161aYv.b = c0651Lj;
ZI.IeS ieS = new ZI.IeS(c2161aYv, c0651Lj.a.get(0).d, c0651Lj) { // from class: o.aYF
private C2161aYv a;
private C0653Ll c;
private C0651Lj d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2161aYv.e(this.a, this.c, this.d, (InterfaceC6621cYR.ojQ) obj);
}
{
this.a = c2161aYv;
this.c = r2;
this.d = c0651Lj;
}
};
if (c2161aYv.f != 0) {
ieS.e(c2161aYv.f);
}
return C14866gag.c;
}
public static /* synthetic */ C14866gag c(C2161aYv c2161aYv, odT odt) {
LY ly;
c2161aYv.c = odt;
C16729ql c16729ql = c2161aYv.i;
if (odt.a == null || odt.a.isEmpty()) {
ly = null;
} else {
List<IV> list = (List) C16157lj.c(new Object[]{odt.a, new InterfaceC1244Ytw(c16729ql) { // from class: o.qr
private C16729ql d;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C16729ql.a(this.d, (C17180ucA) obj);
}
{
this.d = c16729ql;
}
}}, -1846295624, 1846295631, (int) System.currentTimeMillis());
LY.IeS ieS = new LY.IeS();
ieS.b = list;
ly = ieS.b();
}
if (c2161aYv.f != 0) {
c2161aYv.f.ar_();
}
ZI.IeS ieS2 = new ZI.IeS(ly) { // from class: o.aYK
private LY d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2161aYv.c(this.d, (InterfaceC6621cYR.ojQ) obj);
}
{
this.d = ly;
}
};
if (c2161aYv.f != 0) {
ieS2.e(c2161aYv.f);
}
return C14866gag.c;
}
public static /* synthetic */ void c(LY ly, InterfaceC6621cYR.ojQ ojq) {
if (ly.d != null) {
ojq.c(ly);
}
ojq.a(true);
ojq.d(true);
}
public static /* synthetic */ void e(C2161aYv c2161aYv, C0653Ll c0653Ll, C0651Lj c0651Lj, InterfaceC6621cYR.ojQ ojq) {
ojq.aX_();
C16989su c16989su = c2161aYv.m;
ojq.b(C16989su.e(c0653Ll));
C16746qs c16746qs = c2161aYv.k;
List<C0655Lm> list = c0651Lj.a;
C14957gcv.e(list, "");
String e = c16746qs.e(C15715hv.tOB.commercial_feature_input_card_selector_title);
C14957gcv.c((Object) e, "");
List<C0655Lm> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
arrayList.add(((C0655Lm) it.next()).d.a);
}
ojq.b(new IR(e, arrayList));
ojq.e();
C16960sk c16960sk = c2161aYv.n;
ojq.c(C16960sk.c(c0653Ll));
ojq.a(c0651Lj.c);
ojq.d(false);
ojq.b(c0653Ll.c);
}
public static /* synthetic */ C14866gag d(C2161aYv c2161aYv, Throwable th) {
if (c2161aYv.b(th)) {
c2161aYv.d(c2161aYv.j.e(th));
}
return C14866gag.c;
}
public static /* synthetic */ C14866gag e(C2161aYv c2161aYv, Throwable th) {
if (c2161aYv.b(th)) {
c2161aYv.d(c2161aYv.j.e(th));
}
return C14866gag.c;
}
public static /* synthetic */ void b(C2161aYv c2161aYv, int i, C0653Ll c0653Ll, InterfaceC6621cYR.ojQ ojq) {
ojq.d(i);
C16989su c16989su = c2161aYv.m;
ojq.b(C16989su.e(c0653Ll));
C16960sk c16960sk = c2161aYv.n;
ojq.c(C16960sk.c(c0653Ll));
ojq.b(c0653Ll.c);
}
}