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

211 lines
6.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.net.Uri;
import java.util.HashMap;
import o.C0690Mh;
import o.C15667hc;
import o.ZI;
import o.lqb;
import org.simpleframework.xml.strategy.Name;
/* renamed from: o.hc, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C15667hc extends ZI<cYJ> {
private vLK a;
private final C15811im c;
private final C14824gP d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C15667hc(C16903sI c16903sI, C14824gP c14824gP, vLK vlk, C15811im c15811im) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c14824gP, "");
C14957gcv.e(vlk, "");
C14957gcv.e(c15811im, "");
this.d = c14824gP;
this.a = vlk;
this.c = c15811im;
}
/* renamed from: o.hc$IeS */
/* loaded from: classes3.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C15667hc e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C15667hc.c(this.e, th2, C0690Mh.IeS.NAVIGATE_BACK);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(C15667hc c15667hc) {
super(1);
this.e = c15667hc;
}
}
/* renamed from: o.hc$LWm */
/* loaded from: classes3.dex */
static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C15667hc b;
private HashMap<String, Object> e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
C15667hc.a(this.b);
C15667hc c15667hc = this.b;
final HashMap<String, Object> hashMap = this.e;
ZI.IeS ieS = new ZI.IeS(hashMap) { // from class: o.hf
private HashMap e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C15667hc.LWm.b(this.e, (cYJ) obj);
}
{
this.e = hashMap;
}
};
if (c15667hc.f != 0) {
ieS.e(c15667hc.f);
}
return C14866gag.c;
}
public static /* synthetic */ void b(HashMap hashMap, cYJ cyj) {
C14957gcv.e(hashMap, "");
C14957gcv.c(cyj, "");
cyj.b(hashMap);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
LWm(C15667hc c15667hc, HashMap<String, Object> hashMap) {
super(0);
this.b = c15667hc;
this.e = hashMap;
}
}
public static /* synthetic */ void a(HashMap hashMap, cYJ cyj) {
C14957gcv.e(hashMap, "");
C14957gcv.c(cyj, "");
cyj.b(hashMap);
}
public static final /* synthetic */ void a(C15667hc c15667hc) {
if (c15667hc.f != 0) {
c15667hc.f.ar_();
}
}
public static final /* synthetic */ void c(C15667hc c15667hc, Throwable th, C0690Mh.IeS ieS) {
if (c15667hc.b(th)) {
c15667hc.d(c15667hc.j.d(th, ieS));
}
}
public final void c(String str) {
String str2;
String str3;
C14957gcv.e(str, "");
C14824gP c14824gP = this.d;
C14957gcv.e(str, "");
c14824gP.d = str;
String b = this.a.b();
C14957gcv.c((Object) b, "");
C14957gcv.e(b, "");
c14824gP.e = b;
C14824gP c14824gP2 = this.d;
final HashMap hashMap = new HashMap();
String str4 = c14824gP2.g.d.x;
if (str4 == null) {
str4 = "";
}
String str5 = c14824gP2.g.d.p;
if (str5 == null) {
str5 = "";
}
String str6 = c14824gP2.g.d.f9170o;
if (str6 == null) {
str6 = "";
}
HashMap hashMap2 = hashMap;
String str7 = c14824gP2.h.c;
C14957gcv.c((Object) str7, "");
hashMap2.put("apiAuth", str7);
String str8 = c14824gP2.g.d.L;
C14957gcv.c((Object) str8, "");
hashMap2.put("userId", str8);
hashMap2.put("tilesVersion", c14824gP2.f);
hashMap2.put("apiBaseURL", c14824gP2.a);
hashMap2.put("assetsBaseURL", c14824gP2.c);
hashMap2.put("deepLinkURL", c14824gP2.d);
hashMap2.put("casaAccounts", c14824gP2.b);
hashMap2.put("deviceId", c14824gP2.e);
String str9 = c14824gP2.g.d.i;
C14957gcv.c((Object) str9, "");
hashMap2.put("emailVerification", str9);
String str10 = c14824gP2.g.d.D;
if (str10 == null) {
str10 = "";
}
hashMap2.put("profileImage", str10);
hashMap2.put("accountMasking", Boolean.valueOf(c14824gP2.g.d.m > 0));
hashMap2.put("autoSaveSlip", Boolean.valueOf(c14824gP2.i.V()));
String str11 = c14824gP2.g.d.h;
if (str11 == null) {
str11 = "";
}
hashMap2.put("verifiedEmail", str11);
StringBuilder sb = new StringBuilder();
sb.append(str4);
sb.append(" ");
sb.append(str5);
sb.append(" ");
sb.append(str6);
hashMap2.put("profileName", new gdW("\\s+").a(gdZ.b((CharSequence) sb.toString()).toString(), " "));
hashMap2.put("Easy_ENV", C2974aoj.d("prod"));
String M = c14824gP2.i.M();
C14957gcv.c((Object) M, "");
hashMap2.put("acceptLanguage", M);
Uri parse = Uri.parse(str);
if (parse == null || (str2 = parse.getQueryParameter("source")) == null) {
str2 = "";
}
if (gdZ.d((CharSequence) str2, (CharSequence) "ndid_common_flow", false)) {
Uri parse2 = Uri.parse(str);
if (parse2 == null || (str3 = parse2.getQueryParameter(Name.MARK)) == null) {
str3 = "";
}
C15811im c15811im = this.c;
LWm lWm = new LWm(this, hashMap);
IeS ieS = new IeS(this);
C14957gcv.e(str3, "");
C14957gcv.e(lWm, "");
C14957gcv.e(ieS, "");
c15811im.e.d(lWm, ieS, new lqb.LWm(str3), new fSC());
return;
}
ZI.IeS ieS2 = new ZI.IeS(hashMap) { // from class: o.hg
private HashMap b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C15667hc.a(this.b, (cYJ) obj);
}
{
this.b = hashMap;
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
}