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

224 lines
6.7 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import o.C15715hv;
import o.EW;
import o.InterfaceC6620cYM;
import o.QN;
import o.ZI;
import o.aFM;
import o.wRi;
/* loaded from: classes4.dex */
public final class aFM extends ZI<InterfaceC6620cYM.RVV> {
public final CWq a;
private final C16646pw b;
private Qgf c;
private final iRl d;
public final ntG e;
private final C16642pu h;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public aFM(CWq cWq, ntG ntg, C16646pw c16646pw, C16642pu c16642pu, iRl irl, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(cWq, "");
C14957gcv.e(ntg, "");
C14957gcv.e(c16646pw, "");
C14957gcv.e(c16642pu, "");
C14957gcv.e(irl, "");
C14957gcv.e(c16903sI, "");
this.a = cWq;
this.e = ntg;
this.b = c16646pw;
this.h = c16642pu;
this.d = irl;
}
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14937gcb<yrH, Qgf, EW> {
private aFM e;
@Override // o.InterfaceC14937gcb
public final /* synthetic */ EW invoke(yrH yrh, Qgf qgf) {
Qgf qgf2 = qgf;
C14957gcv.e(qgf2, "");
this.e.c = qgf2;
ES a = this.e.b.a(yrh, true, false);
C16642pu c16642pu = this.e.h;
List<EM> list = a.a;
C14957gcv.c(list, "");
C14957gcv.e(list, "");
C14957gcv.e(qgf2, "");
ArrayList arrayList = new ArrayList();
QN.HBt a2 = QN.a();
a2.f = qgf2.d;
a2.d = C15715hv.IeS.ic_check_circle_black_48dp;
a2.a = qgf2.b == null ? "" : (String) C16157lj.c(new Object[]{c16642pu, qgf2.b}, 838289628, -838289623, System.identityHashCode(c16642pu));
a2.c = c16642pu.c(C15715hv.tOB.reference_id, qgf2.g);
QN qn = new QN(a2, (byte) 0);
C14957gcv.c(qn, "");
arrayList.add(qn);
arrayList.add(new QQ());
arrayList.addAll(list);
EW.LWm b = EW.b(arrayList, c16642pu.e(C15715hv.tOB.debit_card_request_filename));
gcH gch = gcH.d;
String string = c16642pu.d.getString(C15715hv.tOB.debit_card_request_remaining_text);
C14957gcv.c((Object) string, "");
String format = String.format(string, Arrays.copyOf(new Object[]{C16642pu.c(Double.valueOf(qgf2.e))}, 1));
C14957gcv.c((Object) format, "");
b.f = format;
EW c = b.c();
C14957gcv.c(c, "");
return c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(aFM afm) {
super(2);
this.e = afm;
}
}
/* loaded from: classes4.dex */
public static final class RVV extends wRi.LWm<EW> {
private aFM c;
public RVV(aFM afm) {
this.c = afm;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final EW ew = (EW) obj;
C14957gcv.e(ew, "");
final aFM afm = this.c;
ZI.IeS ieS = new ZI.IeS(ew, afm) { // from class: o.aFQ
private aFM a;
private EW e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
aFM.RVV.d(this.e, this.a, (InterfaceC6620cYM.RVV) obj2);
}
{
this.e = ew;
this.a = afm;
}
};
if (afm.f != 0) {
ieS.e(afm.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
aFM.b(this.c, th);
}
public static /* synthetic */ void d(EW ew, aFM afm, InterfaceC6620cYM.RVV rvv) {
String str;
String str2;
String str3;
C6931cei c6931cei;
C14957gcv.e(ew, "");
C14957gcv.e(afm, "");
rvv.d(ew);
Qgf qgf = afm.c;
ISr iSr = (qgf == null || (c6931cei = qgf.a) == null) ? null : c6931cei.d;
String str4 = iSr != null ? iSr.e : null;
if (str4 != null && !gdZ.d((CharSequence) str4)) {
if (!C14957gcv.b((Object) (iSr != null ? iSr.e : null), (Object) "1000")) {
if (iSr == null || (str2 = iSr.b) == null || (str3 = iSr.c) == null) {
return;
}
rvv.c(str2, str3);
return;
}
}
Qgf qgf2 = afm.c;
if (qgf2 == null || (str = qgf2.c) == null) {
return;
}
rvv.h(str);
}
}
/* loaded from: classes4.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
public static /* synthetic */ void b(aFM afm, InterfaceC6620cYM.RVV rvv) {
C14957gcv.e(afm, "");
if (afm.f != 0) {
afm.f.ar_();
}
rvv.f();
}
public static /* synthetic */ void d(aFM afm, InterfaceC6620cYM.RVV rvv) {
C14957gcv.e(afm, "");
if (afm.f != 0) {
afm.f.ar_();
}
rvv.e();
}
public static /* synthetic */ void a(final aFM afm, final InterfaceC6620cYM.RVV rvv) {
C14957gcv.e(afm, "");
iRl irl = afm.d;
irl.d(irl.e(), new fSQ(afm, rvv) { // from class: o.aFS
private aFM a;
private InterfaceC6620cYM.RVV e;
@Override // o.fSQ
public final void c(Object obj) {
aFM.d(this.a, this.e);
}
{
this.a = afm;
this.e = rvv;
}
}, new fSQ(afm, rvv) { // from class: o.aFU
private aFM a;
private InterfaceC6620cYM.RVV c;
@Override // o.fSQ
public final void c(Object obj) {
aFM.b(this.a, this.c);
}
{
this.a = afm;
this.c = rvv;
}
});
}
public static /* synthetic */ EW b(InterfaceC14937gcb interfaceC14937gcb, Object obj, Object obj2) {
C14957gcv.e(interfaceC14937gcb, "");
return (EW) interfaceC14937gcb.invoke(obj, obj2);
}
public static final /* synthetic */ void b(aFM afm, Throwable th) {
if (afm.b(th)) {
afm.d(afm.j.e(th));
}
}
static {
new HBt((byte) 0);
}
}