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

364 lines
13 KiB
Java

package o;
import java.util.Arrays;
import java.util.List;
import o.C0690Mh;
import o.ELL;
import o.InterfaceC9496dko;
import o.ZI;
import o.cXH;
import org.threeten.bp.OffsetDateTime;
import scb.yek.NdidKey;
/* renamed from: o.caA, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C6685caA extends ZI<InterfaceC9496dko.IeS> {
cXH.HBt.LWm a;
private final C15970jz b;
private final C17529xY c;
private final List<String> d;
public SA e;
private final C17524xW g;
private final C17528xX i;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C6685caA(C15970jz c15970jz, C17529xY c17529xY, C17524xW c17524xW, C17528xX c17528xX, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c15970jz, "");
C14957gcv.e(c17529xY, "");
C14957gcv.e(c17524xW, "");
C14957gcv.e(c17528xX, "");
this.b = c15970jz;
this.c = c17529xY;
this.g = c17524xW;
this.i = c17528xX;
this.a = cXH.HBt.LWm.RP_INITIAL;
String[] strArr = {"LVL", "DSMCM"};
C14957gcv.e(strArr, "");
C14957gcv.e(strArr, "");
List<String> asList = Arrays.asList(strArr);
C14957gcv.c(asList, "");
this.d = asList;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.caA$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6685caA d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6685caA.d(this.d);
C6685caA c6685caA = this.d;
c6685caA.d(c6685caA.j.d(th2, C0690Mh.IeS.NAVIGATE_BACK));
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(C6685caA c6685caA) {
super(1);
this.d = c6685caA;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.caA$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<C1215Ydv, C14866gag> {
private InterfaceC9496dko.IeS b;
private SA c;
private C6685caA d;
private SA e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C1215Ydv c1215Ydv) {
String str;
Long valueOf;
SD sd;
C1215Ydv c1215Ydv2 = c1215Ydv;
C14957gcv.e(c1215Ydv2, "");
C6685caA.d(this.d);
C17529xY unused = this.d.c;
C14957gcv.e(c1215Ydv2, "");
String str2 = c1215Ydv2.r;
String str3 = c1215Ydv2.t;
String str4 = c1215Ydv2.c;
String str5 = c1215Ydv2.n;
String str6 = c1215Ydv2.e;
String str7 = c1215Ydv2.p;
List<String> list = c1215Ydv2.k;
boolean z = c1215Ydv2.b;
boolean z2 = c1215Ydv2.s;
List<String> list2 = c1215Ydv2.f;
List<String> list3 = c1215Ydv2.q;
String str8 = c1215Ydv2.j;
String str9 = c1215Ydv2.i;
String str10 = c1215Ydv2.h;
String str11 = c1215Ydv2.f8466o;
String str12 = c1215Ydv2.a;
boolean z3 = c1215Ydv2.d;
String str13 = c1215Ydv2.m;
OffsetDateTime offsetDateTime = c1215Ydv2.g;
if (offsetDateTime == null) {
valueOf = null;
str = str9;
} else {
str = str9;
valueOf = Long.valueOf(C15519gso.between(OffsetDateTime.now(AbstractC15502gsH.of("Asia/Bangkok")), offsetDateTime).toMillis());
}
SD sd2 = new SD(str2, str3, str4, str5, str6, str7, list, Boolean.valueOf(z), Boolean.valueOf(z2), list2, list3, str8, str, str10, str11, str12, Boolean.valueOf(z3), str13, valueOf, 131072);
cUQ cuq = c1215Ydv2.l;
if (cuq != null) {
sd = sd2;
sd.f8356o = C17529xY.b(cuq);
} else {
sd = sd2;
}
C6685caA c6685caA = this.d;
SA sa = this.c;
C17529xY unused2 = c6685caA.c;
c6685caA.e = C17529xY.b(sa.u, sd);
String str14 = sd.t;
if (str14 != null) {
if (C14957gcv.b((Object) str14, (Object) cXH.HBt.LWm.RP_CID_VERIFIED.name())) {
c6685caA.a = cXH.HBt.LWm.RP_CID_VERIFIED;
} else if (C14957gcv.b((Object) str14, (Object) cXH.HBt.LWm.RP_PENDING.name())) {
c6685caA.a = cXH.HBt.LWm.RP_PENDING;
} else if (C14957gcv.b((Object) str14, (Object) cXH.HBt.LWm.RP_LIVENESS.name())) {
c6685caA.a = cXH.HBt.LWm.RP_LIVENESS;
}
}
SA sa2 = this.d.e;
if (sa2 != null) {
SA sa3 = this.e;
C6685caA c6685caA2 = this.d;
InterfaceC9496dko.IeS ieS = this.b;
sa2.i = sa3.i;
if (c6685caA2.d.contains(c1215Ydv2.c)) {
final C14851gaI c14851gaI = C14851gaI.c;
ZI.IeS ieS2 = new ZI.IeS(c14851gaI) { // from class: o.caB
private List e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6685caA.c(this.e, (InterfaceC9496dko.IeS) obj);
}
{
this.e = c14851gaI;
}
};
if (c6685caA2.f != 0) {
ieS2.e(c6685caA2.f);
}
} else {
final List<String> list4 = sa2.f;
ZI.IeS ieS3 = new ZI.IeS(list4) { // from class: o.caB
private List e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6685caA.c(this.e, (InterfaceC9496dko.IeS) obj);
}
{
this.e = list4;
}
};
if (c6685caA2.f != 0) {
ieS3.e(c6685caA2.f);
}
}
ieS.a(sa2, c6685caA2.a);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(C6685caA c6685caA, SA sa, SA sa2, InterfaceC9496dko.IeS ieS) {
super(1);
this.d = c6685caA;
this.c = sa;
this.e = sa2;
this.b = ieS;
}
}
@Override // o.ZI
public final void w_() {
this.b.a();
super.w_();
}
public static /* synthetic */ void a(C6685caA c6685caA, SA sa, String str, SA sa2, InterfaceC9496dko.IeS ieS) {
Object obj;
boolean z;
Object obj2;
boolean z2;
Boolean bool;
String str2;
C14957gcv.e(c6685caA, "");
C14957gcv.e(sa, "");
C14957gcv.e(str, "");
if (c6685caA.f != 0) {
c6685caA.f.y();
}
C17528xX c17528xX = c6685caA.i;
String d = c6685caA.b.f.c.d();
C14957gcv.c((Object) d, "");
C14957gcv.e(sa, "");
C14957gcv.e(str, "");
C14957gcv.e(d, "");
C14957gcv.e(sa, "");
C14957gcv.e(d, "");
String b = C17528xX.b(sa.c);
String b2 = C17528xX.b(sa.q);
String b3 = C17528xX.b(sa.d);
String b4 = C17528xX.b(sa.y);
String d2 = C17528xX.d(sa.p);
String d3 = C17528xX.d(sa.l);
String d4 = C17528xX.d(sa.n);
String d5 = C17528xX.d(sa.v);
String b5 = C17528xX.b(sa.g);
String b6 = C17528xX.b(sa.k);
String b7 = C17528xX.b(sa.m);
String str3 = sa.r;
Boolean bool2 = null;
String b8 = C17528xX.b(str3 != null ? gdZ.a(str3, "\"", "") : null);
String b9 = C17528xX.b(sa.b);
Boolean bool3 = sa.e;
if (bool3 == null) {
bool3 = (C14957gcv.b((Object) d, (Object) "NDID") || C14957gcv.b((Object) d, (Object) "IDP_AGENT")) ? null : Boolean.TRUE;
}
Boolean bool4 = sa.t;
if (bool4 == null) {
obj = "IDP_AGENT";
z = true;
} else {
z = bool4.booleanValue();
obj = "IDP_AGENT";
}
Boolean bool5 = sa.a;
if (bool5 != null) {
z2 = bool5.booleanValue();
obj2 = "NDID";
} else {
obj2 = "NDID";
z2 = false;
}
String str4 = sa.f8354o;
boolean z3 = z2;
if (str4 == null) {
str4 = C14957gcv.b((Object) sa.c, (Object) "FastEasy") ? "FastEasy" : "DEFAULT";
}
String str5 = sa.u;
StringBuilder sb = new StringBuilder("{\"transactionId\":\"");
sb.append(str5);
sb.append("\",\"channel\":");
sb.append(b);
sb.append(",\"product\":");
sb.append(b2);
sb.append(",\"callbackDeeplink\":");
sb.append(b3);
sb.append(",\"userType\":");
sb.append(b4);
sb.append(",\"serviceIdList\":");
sb.append(d2);
sb.append(",\"cidToggle\":");
sb.append(bool3);
sb.append(",\"termAndConToggle\":");
sb.append(z);
sb.append(",\"indicationListTH\":");
sb.append(d3);
sb.append(",\"indicationListEN\":");
sb.append(d4);
sb.append(",\"verifyFlag\":");
sb.append(d5);
sb.append(",\"consentSubType\":");
sb.append(b5);
sb.append(",\"minIal\":");
sb.append(b6);
sb.append(",\"minAal\":");
sb.append(b7);
sb.append(",\"requestParameter\":");
sb.append(b8);
sb.append(",\"appId\":");
sb.append(b9);
sb.append(",\"clearStackToggle\":");
sb.append(z3);
sb.append(",\"nationalIdScreenRule\":\"");
sb.append(str4);
sb.append("\"}");
String obj3 = sb.toString();
NdidKey ndidKey = new NdidKey();
C14957gcv.e(obj3, "");
String e = ndidKey.e(gdZ.a(gdZ.a(obj3, " ", ""), "\n", ""), str);
C17524xW c17524xW = c6685caA.g;
String d6 = c6685caA.b.f.c.d();
C14957gcv.c((Object) d6, "");
C14957gcv.e(sa, "");
C14957gcv.e(e, "");
C14957gcv.e(d6, "");
String str6 = sa.u;
String str7 = sa.c;
String str8 = sa.q;
String str9 = sa.d;
String str10 = sa.y;
List<String> list = sa.p;
Boolean bool6 = sa.e;
if (bool6 == null) {
if (!C14957gcv.b(d6, obj2) && !C14957gcv.b(d6, obj)) {
bool2 = Boolean.TRUE;
}
bool = bool2;
} else {
bool = bool6;
}
Boolean bool7 = sa.t;
boolean booleanValue = bool7 != null ? bool7.booleanValue() : true;
List<String> list2 = sa.l;
List<String> list3 = sa.n;
List<String> list4 = sa.v;
String str11 = sa.g;
String str12 = sa.k;
String str13 = sa.m;
String str14 = sa.r;
String str15 = sa.b;
Boolean bool8 = sa.a;
boolean booleanValue2 = bool8 != null ? bool8.booleanValue() : false;
String str16 = sa.f8354o;
if (str16 == null) {
str2 = C14957gcv.b((Object) sa.c, (Object) "FastEasy") ? "FastEasy" : "DEFAULT";
} else {
str2 = str16;
}
C7108ci c7108ci = new C7108ci(str6, str7, str8, str9, str10, list, bool, Boolean.valueOf(booleanValue), list2, list3, list4, str11, str12, str13, str14, str15, Boolean.valueOf(booleanValue2), e, str2, d6, c17524xW.e);
C15970jz c15970jz = c6685caA.b;
Sts sts = new Sts(c6685caA, sa2, sa, ieS);
RVV rvv = new RVV(c6685caA);
C14957gcv.e(c7108ci, "");
C14957gcv.e(sts, "");
C14957gcv.e(rvv, "");
c15970jz.g.e(sts, rvv, new ELL.Sts(c7108ci), new fSC());
}
public static final /* synthetic */ void d(C6685caA c6685caA) {
if (c6685caA.f != 0) {
c6685caA.f.ar_();
}
}
public static /* synthetic */ void c(List list, InterfaceC9496dko.IeS ieS) {
List list2 = list;
if (list2 == null || list2.isEmpty()) {
ieS.c();
} else {
ieS.a(list);
}
}
}