242 lines
8.2 KiB
Java
242 lines
8.2 KiB
Java
package o;
|
|
|
|
import com.scb.phone.domain.errors.RetrofitException;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import o.InterfaceC9509dlA;
|
|
import o.ZI;
|
|
import o.tqn;
|
|
|
|
/* renamed from: o.ctC */
|
|
/* loaded from: classes4.dex */
|
|
public final class C7692ctC extends ZI<InterfaceC9509dlA.RVV> {
|
|
private final String a;
|
|
public UE c;
|
|
private final C15874jN d;
|
|
private final C0166Ao e;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C7692ctC(C16903sI c16903sI, C0166Ao c0166Ao, C15874jN c15874jN, String str) {
|
|
super(c16903sI);
|
|
C14957gcv.e(c16903sI, "");
|
|
C14957gcv.e(c0166Ao, "");
|
|
C14957gcv.e(c15874jN, "");
|
|
C14957gcv.e(str, "");
|
|
this.e = c0166Ao;
|
|
this.d = c15874jN;
|
|
this.a = str;
|
|
}
|
|
|
|
/* renamed from: o.ctC$HBt */
|
|
/* loaded from: classes4.dex */
|
|
public static final class HBt {
|
|
private HBt() {
|
|
}
|
|
|
|
public /* synthetic */ HBt(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.ctC$LWm */
|
|
/* loaded from: classes4.dex */
|
|
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<NFa, C14866gag> {
|
|
private C7692ctC b;
|
|
private InterfaceC9509dlA.RVV c;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(NFa nFa) {
|
|
Object obj;
|
|
UE ue;
|
|
NFa nFa2 = nFa;
|
|
C14957gcv.e(nFa2, "");
|
|
if (!nFa2.d.isEmpty()) {
|
|
Iterator<T> it = nFa2.d.iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
obj = null;
|
|
break;
|
|
}
|
|
obj = it.next();
|
|
if (((wZk) obj).f == 0) {
|
|
break;
|
|
}
|
|
}
|
|
if (obj != null) {
|
|
C7692ctC c7692ctC = this.b;
|
|
C0166Ao c0166Ao = c7692ctC.e;
|
|
C14957gcv.e(nFa2, "");
|
|
String str = nFa2.c;
|
|
IQF iqf = nFa2.a;
|
|
List<String> list = iqf.b;
|
|
int i = iqf.e;
|
|
Double d = iqf.c;
|
|
String c = d != null ? C0166Ao.c(Double.valueOf(d.doubleValue())) : null;
|
|
if (c == null) {
|
|
c = "-";
|
|
}
|
|
String c2 = C0166Ao.c(Double.valueOf(iqf.a));
|
|
C14957gcv.c((Object) c2, "");
|
|
UC uc = new UC(list, String.valueOf(i), c, c2);
|
|
List<wZk> list2 = nFa2.d;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
Iterator it2 = list2.iterator();
|
|
while (it2.hasNext()) {
|
|
wZk wzk = (wZk) it2.next();
|
|
String str2 = wzk.e;
|
|
String str3 = wzk.b;
|
|
String b_ = c0166Ao.b_(wzk.j);
|
|
C14957gcv.c((Object) b_, "");
|
|
String str4 = str;
|
|
String c3 = C0166Ao.c(Double.valueOf(wzk.a));
|
|
C14957gcv.c((Object) c3, "");
|
|
String c4 = C0166Ao.c(Double.valueOf(wzk.h));
|
|
C14957gcv.c((Object) c4, "");
|
|
arrayList.add(new UA(str2, str3, b_, c3, c4, wzk.f, wzk.c, wzk.g, wzk.d));
|
|
str = str4;
|
|
it2 = it2;
|
|
c0166Ao = c0166Ao;
|
|
nFa2 = nFa2;
|
|
}
|
|
NFa nFa3 = nFa2;
|
|
c7692ctC.c = new UE(str, uc, arrayList);
|
|
C7692ctC c7692ctC2 = this.b;
|
|
ZI.IeS ieS = new ZI.IeS(c7692ctC2) { // from class: o.ctD
|
|
private C7692ctC d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
C7692ctC.c(this.d, (InterfaceC9509dlA.RVV) obj2);
|
|
}
|
|
|
|
{
|
|
this.d = c7692ctC2;
|
|
}
|
|
};
|
|
if (c7692ctC2.f != 0) {
|
|
ieS.e(c7692ctC2.f);
|
|
}
|
|
this.c.d();
|
|
InterfaceC9509dlA.RVV rvv = this.c;
|
|
UE ue2 = this.b.c;
|
|
if (ue2 == null) {
|
|
C14957gcv.a("");
|
|
ue = null;
|
|
} else {
|
|
ue = ue2;
|
|
}
|
|
rvv.b(ue.b);
|
|
this.c.a(((wZk) C14881gav.e((List) nFa3.d)).c.contains("CASH_OUT_SOURCE"), true);
|
|
return C14866gag.c;
|
|
}
|
|
}
|
|
this.c.c();
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
LWm(InterfaceC9509dlA.RVV rvv, C7692ctC c7692ctC) {
|
|
super(1);
|
|
this.c = rvv;
|
|
this.b = c7692ctC;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.ctC$Sts */
|
|
/* loaded from: classes4.dex */
|
|
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
|
|
private InterfaceC9509dlA.RVV a;
|
|
private C7692ctC d;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(Throwable th) {
|
|
C14866gag c14866gag;
|
|
Throwable th2 = th;
|
|
C14957gcv.e(th2, "");
|
|
if (!(th2 instanceof RetrofitException)) {
|
|
this.a.c();
|
|
} else {
|
|
VCl vCl = ((RetrofitException) th2).e;
|
|
if (vCl != null) {
|
|
C7692ctC c7692ctC = this.d;
|
|
InterfaceC9509dlA.RVV rvv = this.a;
|
|
if (vCl.c != null && gdZ.a("1002", vCl.c.e, true)) {
|
|
C7692ctC.d(c7692ctC, th2);
|
|
} else {
|
|
rvv.c();
|
|
}
|
|
c14866gag = C14866gag.c;
|
|
} else {
|
|
c14866gag = null;
|
|
}
|
|
if (c14866gag == null) {
|
|
C7692ctC.d(this.d, th2);
|
|
}
|
|
}
|
|
this.a.a(false, false);
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
Sts(C7692ctC c7692ctC, InterfaceC9509dlA.RVV rvv) {
|
|
super(1);
|
|
this.d = c7692ctC;
|
|
this.a = rvv;
|
|
}
|
|
}
|
|
|
|
@Override // o.ZI
|
|
public final void w_() {
|
|
this.d.a();
|
|
super.w_();
|
|
}
|
|
|
|
public static /* synthetic */ void e(C7692ctC c7692ctC, String str, InterfaceC9509dlA.RVV rvv) {
|
|
C14957gcv.e(c7692ctC, "");
|
|
C14957gcv.e(str, "");
|
|
rvv.b();
|
|
C15874jN c15874jN = c7692ctC.d;
|
|
LWm lWm = new LWm(rvv, c7692ctC);
|
|
Sts sts = new Sts(c7692ctC, rvv);
|
|
C10030dv c10030dv = new C10030dv(str, c7692ctC.a);
|
|
C14957gcv.e(lWm, "");
|
|
C14957gcv.e(sts, "");
|
|
C14957gcv.e(c10030dv, "");
|
|
c15874jN.b(c15874jN.d, lWm, sts, new tqn.LWm(c10030dv));
|
|
}
|
|
|
|
public static /* synthetic */ void c(C7692ctC c7692ctC, InterfaceC9509dlA.RVV rvv) {
|
|
C14957gcv.e(c7692ctC, "");
|
|
UE ue = c7692ctC.c;
|
|
if (ue == null) {
|
|
C14957gcv.a("");
|
|
ue = null;
|
|
}
|
|
List<UA> list = ue.b;
|
|
if (!(list instanceof Collection) || !list.isEmpty()) {
|
|
Iterator<T> it = list.iterator();
|
|
while (it.hasNext()) {
|
|
if (((UA) it.next()).d == 1) {
|
|
rvv.a();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
rvv.e();
|
|
}
|
|
|
|
public static final /* synthetic */ void d(C7692ctC c7692ctC, Throwable th) {
|
|
if (c7692ctC.b(th)) {
|
|
c7692ctC.d(c7692ctC.j.e(th));
|
|
}
|
|
}
|
|
|
|
static {
|
|
new HBt((byte) 0);
|
|
}
|
|
}
|