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

468 lines
13 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.webkit.URLUtil;
import o.C0690Mh;
import o.C15715hv;
import o.ZI;
/* renamed from: o.abX */
/* loaded from: classes3.dex */
public final class C2274abX extends ZI<InterfaceC9008dbc> {
public boolean a;
public final String b;
public final InterfaceC3521azC c;
public final CBe d;
public boolean e;
private final CQ g;
public C0371Fd i;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C2274abX(String str, CQ cq, CBe cBe, InterfaceC3521azC interfaceC3521azC, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(str, "");
C14957gcv.e(cq, "");
C14957gcv.e(cBe, "");
C14957gcv.e(interfaceC3521azC, "");
C14957gcv.e(c16903sI, "");
this.b = str;
this.g = cq;
this.d = cBe;
this.c = interfaceC3521azC;
}
/* renamed from: o.abX$HBt */
/* loaded from: classes3.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
public final void b(C0371Fd c0371Fd) {
if (c0371Fd == null) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.ack
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9008dbc) obj).b();
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
if (c0371Fd.k == null && c0371Fd.n == null && c0371Fd.i == null) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aci
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9008dbc) obj).b();
}
};
if (this.f != 0) {
ieS2.e(this.f);
return;
}
return;
}
String str = c0371Fd.k;
if (str == null || e(str)) {
this.i = c0371Fd;
ZI.IeS ieS3 = new ZI.IeS(this) { // from class: o.ach
private C2274abX e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2274abX.e(this.e, (InterfaceC9008dbc) obj);
}
{
this.e = this;
}
};
if (this.f != 0) {
ieS3.e(this.f);
}
C0371Fd c0371Fd2 = this.i;
if (c0371Fd2 == null) {
C14957gcv.a("");
c0371Fd2 = null;
}
ZI.IeS ieS4 = new ZI.IeS(c0371Fd2.e) { // from class: o.acf
private C0369Fc b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2274abX.d(this.b, (InterfaceC9008dbc) obj);
}
{
this.b = r1;
}
};
if (this.f != 0) {
ieS4.e(this.f);
return;
}
return;
}
ZI.IeS ieS5 = new ZI.IeS() { // from class: o.acc
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9008dbc) obj).b();
}
};
if (this.f != 0) {
ieS5.e(this.f);
}
}
public final boolean b() {
C0371Fd c0371Fd = this.i;
C0371Fd c0371Fd2 = null;
if (c0371Fd == null) {
C14957gcv.a("");
c0371Fd = null;
}
if (c0371Fd.k == null) {
C0371Fd c0371Fd3 = this.i;
if (c0371Fd3 == null) {
C14957gcv.a("");
c0371Fd3 = null;
}
if (c0371Fd3.n == null) {
C0371Fd c0371Fd4 = this.i;
if (c0371Fd4 == null) {
C14957gcv.a("");
} else {
c0371Fd2 = c0371Fd4;
}
if (c0371Fd2.i != null) {
return true;
}
}
}
return false;
}
public final String d() {
C0371Fd c0371Fd = this.i;
C0371Fd c0371Fd2 = null;
if (c0371Fd == null) {
C14957gcv.a("");
c0371Fd = null;
}
String str = c0371Fd.k;
if (str != null) {
String a = a(str);
return a != null ? a : "";
}
C0371Fd c0371Fd3 = this.i;
if (c0371Fd3 == null) {
C14957gcv.a("");
c0371Fd3 = null;
}
String str2 = c0371Fd3.n;
if (str2 == null) {
C0371Fd c0371Fd4 = this.i;
if (c0371Fd4 == null) {
C14957gcv.a("");
} else {
c0371Fd2 = c0371Fd4;
}
String str3 = c0371Fd2.i;
return str3 != null ? str3 : "";
}
String a2 = this.d.a(str2, null);
if (this.c.j()) {
CQ cq = this.g;
C14957gcv.e(a2, "");
String e = C6583cXR.e(a2, cq.baseAzureURL);
C14957gcv.c((Object) e, "");
return e;
}
CQ cq2 = this.g;
C14957gcv.e(a2, "");
String e2 = C6583cXR.e(a2, cq2.b);
C14957gcv.c((Object) e2, "");
return e2;
}
public final void c() {
if (this.c.j()) {
this.d.b.a();
}
C0371Fd c0371Fd = this.i;
if (c0371Fd == null) {
C14957gcv.a("");
c0371Fd = null;
}
if (c0371Fd.d) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.acs
@Override // o.ZI.IeS
public final void e(Object obj) {
C2274abX.a((InterfaceC9008dbc) obj);
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new Runnable(this) { // from class: o.acn
private C2274abX a;
@Override // java.lang.Runnable
public final void run() {
C2274abX.c(this.a);
}
{
this.a = this;
}
}));
}
private final boolean e(String str) {
if (gdZ.b((CharSequence) str).toString().length() == 0) {
return false;
}
String a = a(str);
return !(a == null || a.length() == 0);
}
private final String a(String str) {
if (!URLUtil.isHttpUrl(str) && !URLUtil.isHttpsUrl(str)) {
if (!this.c.c() || (!gdZ.d(str, ".html", true) && !gdZ.d(str, ".htm", true))) {
CQ cq = this.g;
C14957gcv.e(str, "");
str = C6583cXR.e(str, cq.b);
C14957gcv.c((Object) str, "");
} else {
CQ cq2 = this.g;
C14957gcv.e(str, "");
str = C6583cXR.e(str, cq2.baseAzureURL);
C14957gcv.c((Object) str, "");
}
}
if (URLUtil.isValidUrl(str)) {
return str;
}
return null;
}
@Override // o.ZI
public final void w_() {
super.w_();
CBe cBe = this.d;
if (cBe.h.isDisposed()) {
return;
}
cBe.h.dispose();
}
public static /* synthetic */ void a(C2274abX c2274abX, InterfaceC9008dbc interfaceC9008dbc) {
C14957gcv.e(c2274abX, "");
C0371Fd c0371Fd = c2274abX.i;
C14866gag c14866gag = null;
if (c0371Fd == null) {
C14957gcv.a("");
c0371Fd = null;
}
if (c0371Fd.b) {
C0371Fd c0371Fd2 = c2274abX.i;
if (c0371Fd2 == null) {
C14957gcv.a("");
c0371Fd2 = null;
}
boolean z = false;
if (c0371Fd2.a) {
interfaceC9008dbc.e(false);
return;
}
C0371Fd c0371Fd3 = c2274abX.i;
if (c0371Fd3 == null) {
C14957gcv.a("");
c0371Fd3 = null;
}
C0369Fc c0369Fc = c0371Fd3.e;
if (c0369Fc != null) {
if (c0369Fc.c) {
if (c2274abX.a && c2274abX.e) {
z = true;
}
interfaceC9008dbc.e(z);
} else if (!c0369Fc.c) {
interfaceC9008dbc.e(c2274abX.a);
} else {
interfaceC9008dbc.e(false);
}
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
interfaceC9008dbc.e(true);
}
}
}
public static /* synthetic */ void d(C0369Fc c0369Fc, InterfaceC9008dbc interfaceC9008dbc) {
interfaceC9008dbc.b(8);
if (c0369Fc != null) {
if (c0369Fc.c && c0369Fc.d.length() > 0 && c0369Fc.e.length() > 0) {
interfaceC9008dbc.b(0);
interfaceC9008dbc.e(c0369Fc);
} else {
if (c0369Fc.c || c0369Fc.d.length() <= 0) {
return;
}
interfaceC9008dbc.b(0);
interfaceC9008dbc.e(c0369Fc.d);
}
}
}
public static /* synthetic */ void c(C2274abX c2274abX, InterfaceC9008dbc interfaceC9008dbc) {
C14957gcv.e(c2274abX, "");
C0371Fd c0371Fd = c2274abX.i;
if (c0371Fd == null) {
C14957gcv.a("");
c0371Fd = null;
}
interfaceC9008dbc.c(c0371Fd.g);
}
public static /* synthetic */ void a(InterfaceC9008dbc interfaceC9008dbc) {
interfaceC9008dbc.ar_();
interfaceC9008dbc.a();
}
public static /* synthetic */ void e(C2274abX c2274abX) {
C14957gcv.e(c2274abX, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.acl
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9008dbc) obj).a();
}
};
if (c2274abX.f != 0) {
ieS.e(c2274abX.f);
}
}
public static /* synthetic */ void b(C2274abX c2274abX, InterfaceC9008dbc interfaceC9008dbc) {
C14957gcv.e(c2274abX, "");
C0371Fd c0371Fd = c2274abX.i;
if (c0371Fd == null) {
C14957gcv.a("");
c0371Fd = null;
}
interfaceC9008dbc.d(c0371Fd.g);
}
public static /* synthetic */ void e(C2274abX c2274abX, InterfaceC9008dbc interfaceC9008dbc) {
C14957gcv.e(c2274abX, "");
C0371Fd c0371Fd = c2274abX.i;
C0371Fd c0371Fd2 = null;
if (c0371Fd == null) {
C14957gcv.a("");
c0371Fd = null;
}
interfaceC9008dbc.d(c0371Fd.b);
C0371Fd c0371Fd3 = c2274abX.i;
if (c0371Fd3 == null) {
C14957gcv.a("");
c0371Fd3 = null;
}
interfaceC9008dbc.d(c0371Fd3);
C0371Fd c0371Fd4 = c2274abX.i;
if (c0371Fd4 == null) {
C14957gcv.a("");
c0371Fd4 = null;
}
if (c0371Fd4.b) {
C0371Fd c0371Fd5 = c2274abX.i;
if (c0371Fd5 == null) {
C14957gcv.a("");
c0371Fd5 = null;
}
if (c0371Fd5.c) {
C0371Fd c0371Fd6 = c2274abX.i;
if (c0371Fd6 == null) {
C14957gcv.a("");
c0371Fd6 = null;
}
interfaceC9008dbc.c(c0371Fd6);
}
}
C0371Fd c0371Fd7 = c2274abX.i;
if (c0371Fd7 == null) {
C14957gcv.a("");
} else {
c0371Fd2 = c0371Fd7;
}
if (c0371Fd2.a) {
return;
}
interfaceC9008dbc.d();
}
public static /* synthetic */ void d(C2274abX c2274abX, C0371Fd c0371Fd) {
C14957gcv.e(c2274abX, "");
if (c2274abX.f != 0) {
c2274abX.f.ar_();
}
c2274abX.b(c0371Fd);
}
public static /* synthetic */ void c(C2274abX c2274abX) {
C14957gcv.e(c2274abX, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.acm
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9008dbc) obj).a();
}
};
if (c2274abX.f != 0) {
ieS.e(c2274abX.f);
}
}
public static /* synthetic */ void d(C2274abX c2274abX, C0371Fd c0371Fd, Throwable th) {
String str;
C14957gcv.e(c2274abX, "");
c2274abX.d.b.a();
if (c0371Fd != null && (str = c0371Fd.n) != null && gdZ.d((CharSequence) str, (CharSequence) "main_easy_", false)) {
Runnable runnable = new Runnable(c2274abX) { // from class: o.ace
private C2274abX c;
@Override // java.lang.Runnable
public final void run() {
C2274abX.e(this.c);
}
{
this.c = c2274abX;
}
};
if (c2274abX.b(th)) {
c2274abX.d(c2274abX.j.c(th, runnable));
return;
}
return;
}
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c2274abX.b(th)) {
c2274abX.d(c2274abX.j.d(th, ieS));
}
}
static {
new HBt((byte) 0);
}
}