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

227 lines
7.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.util.MalformedJsonException;
import com.google.gson.Gson;
import com.google.gson.JsonParseException;
import com.google.gson.reflect.TypeToken;
import java.util.Arrays;
import java.util.List;
import o.C15715hv;
import o.InterfaceC9463dkH;
import o.ZI;
import org.json.JSONException;
/* renamed from: o.chK, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C7066chK extends ZI<InterfaceC9463dkH.Sts> {
public final C15851jD a;
public final C16672qHa b;
public final String c;
public boolean d;
/* renamed from: o.chK$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends TypeToken<OC> {
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C7066chK(C16903sI c16903sI, C16672qHa c16672qHa, C15851jD c15851jD, String str) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c16672qHa, "");
C14957gcv.e(c15851jD, "");
C14957gcv.e(str, "");
this.b = c16672qHa;
this.a = c15851jD;
this.c = str;
}
/* renamed from: o.chK$LWm */
/* loaded from: classes4.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public static boolean b(String str) {
C14957gcv.e(str, "");
return gdZ.e(str, "scbeasy://", false);
}
public final void e(final String str, boolean z) {
C14957gcv.e(str, "");
if (z) {
ZI.IeS ieS = new ZI.IeS(str) { // from class: o.chL
private String b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7066chK.c(this.b, (InterfaceC9463dkH.Sts) obj);
}
{
this.b = str;
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS(str) { // from class: o.chQ
private String b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7066chK.e(this.b, (InterfaceC9463dkH.Sts) obj);
}
{
this.b = str;
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
public final void d(String str) {
Boolean bool;
C14866gag c14866gag = null;
if (str != null) {
try {
IM im = ((IG) new Gson().fromJson(str, IG.class)).a;
if (im != null && (bool = im.e) != null) {
if (bool.booleanValue()) {
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.chP
private C7066chK e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7066chK.e(this.e, (InterfaceC9463dkH.Sts) obj);
}
{
this.e = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
} else {
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new Runnable(this) { // from class: o.chV
private C7066chK d;
@Override // java.lang.Runnable
public final void run() {
C7066chK.a(this.d);
}
{
this.d = this;
}
}));
}
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new Runnable(this) { // from class: o.chV
private C7066chK d;
@Override // java.lang.Runnable
public final void run() {
C7066chK.a(this.d);
}
{
this.d = this;
}
}));
}
} catch (Exception e) {
if ((e instanceof JsonParseException) || (e instanceof JSONException) || (e instanceof MalformedJsonException)) {
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new Runnable(this) { // from class: o.chV
private C7066chK d;
@Override // java.lang.Runnable
public final void run() {
C7066chK.a(this.d);
}
{
this.d = this;
}
}));
}
}
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new Runnable(this) { // from class: o.chV
private C7066chK d;
@Override // java.lang.Runnable
public final void run() {
C7066chK.a(this.d);
}
{
this.d = this;
}
}));
}
}
public static /* synthetic */ void a(C7066chK c7066chK) {
C14957gcv.e(c7066chK, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.chT
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9463dkH.Sts) obj).aB_();
}
};
if (c7066chK.f != 0) {
ieS.e(c7066chK.f);
}
}
public static /* synthetic */ void d(String str, List list, InterfaceC9463dkH.Sts sts) {
C14957gcv.e(str, "");
C14957gcv.e(list, "");
pug[] pugVarArr = (pug[]) list.toArray(new pug[0]);
sts.c(str, (pug[]) Arrays.copyOf(pugVarArr, pugVarArr.length));
}
public static /* synthetic */ void e(C7066chK c7066chK, InterfaceC9463dkH.Sts sts) {
C14957gcv.e(c7066chK, "");
String json = new Gson().toJson(new TD(new TE(c7066chK.d ? "CXSE" : "EAPP", "Manage")));
C14957gcv.c((Object) json, "");
sts.g(json);
}
public static /* synthetic */ void d(String str, InterfaceC9463dkH.Sts sts) {
C14957gcv.e(str, "");
sts.q_(str);
}
public static /* synthetic */ void e(String str, InterfaceC9463dkH.Sts sts) {
C14957gcv.e(str, "");
sts.f(str);
}
public static /* synthetic */ void c(String str, InterfaceC9463dkH.Sts sts) {
C14957gcv.e(str, "");
sts.h(str);
}
static {
new LWm((byte) 0);
}
}