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

349 lines
10 KiB
Java

package o;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import o.C0690Mh;
import o.C15715hv;
import o.InterfaceC9071dcm;
import o.ZI;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.apw */
/* loaded from: classes3.dex */
public final class C3039apw extends ZI<InterfaceC9071dcm.LWm> implements InterfaceC9071dcm.HBt {
public boolean a;
public C16389ns b;
public GG c;
public C0367Fb d;
public C0435Gm e;
private boolean g;
private boolean h;
private boolean i;
private final Resources k;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C3039apw(Resources resources, C16389ns c16389ns, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(resources, "");
C14957gcv.e(c16389ns, "");
C14957gcv.e(c16903sI, "");
this.k = resources;
this.b = c16389ns;
}
private static ArrayList<String> e(List<GA> list) {
ArrayList<String> arrayList = new ArrayList<>();
if (list != null) {
Iterator<GA> it = list.iterator();
while (it.hasNext()) {
arrayList.add(it.next().b);
}
}
return arrayList;
}
private final void d() {
d(this.k.getString(C15715hv.tOB.common_error), this.k.getString(C15715hv.tOB.error_generic_resource), C0690Mh.IeS.NAVIGATE_BACK);
}
/* renamed from: o.apw$LWm */
/* loaded from: classes3.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public static /* synthetic */ void d(C3039apw c3039apw, InterfaceC9071dcm.LWm lWm) {
C14957gcv.e(c3039apw, "");
if (!c3039apw.g) {
lWm.d();
}
if (!c3039apw.h && !c3039apw.i) {
lWm.a();
}
lWm.b();
lWm.i();
}
public static /* synthetic */ void a(C0455Gy c0455Gy, InterfaceC9071dcm.LWm lWm) {
C14957gcv.e(c0455Gy, "");
lWm.c(c0455Gy);
}
public static /* synthetic */ void c(C3039apw c3039apw, InterfaceC9071dcm.LWm lWm) {
C14957gcv.e(c3039apw, "");
if (!c3039apw.a) {
lWm.e();
return;
}
ZI.IeS ieS = new ZI.IeS(c3039apw) { // from class: o.apB
private C3039apw a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3039apw.d(this.a, (InterfaceC9071dcm.LWm) obj);
}
{
this.a = c3039apw;
}
};
if (c3039apw.f != 0) {
ieS.e(c3039apw.f);
}
}
public static /* synthetic */ void a(C3039apw c3039apw, InterfaceC9071dcm.LWm lWm) {
C14957gcv.e(c3039apw, "");
lWm.a(false);
if (c3039apw.a) {
lWm.e(false);
} else {
lWm.d(false);
}
if (c3039apw.h) {
return;
}
lWm.c(false);
}
public static /* synthetic */ void a(Boolean bool, Boolean bool2, Boolean bool3, Boolean bool4, InterfaceC9071dcm.LWm lWm) {
Boolean bool5 = Boolean.TRUE;
if (C14957gcv.b(bool, bool5)) {
lWm.a(true);
return;
}
if (C14957gcv.b(bool2, bool5)) {
lWm.c(true);
} else if (C14957gcv.b(bool3, bool5)) {
lWm.e(true);
} else if (C14957gcv.b(bool4, bool5)) {
lWm.d(true);
}
}
public static /* synthetic */ void e(boolean z, C3039apw c3039apw, GG gg, InterfaceC9071dcm.LWm lWm) {
C14957gcv.e(c3039apw, "");
if (z) {
C0435Gm c0435Gm = c3039apw.e;
List<String> list = c0435Gm != null ? c0435Gm.a : null;
if (list != null && list.size() >= 2) {
ZI.IeS ieS = new ZI.IeS(list) { // from class: o.apK
private List b;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9071dcm.LWm) obj).b(this.b);
}
{
this.b = list;
}
};
if (c3039apw.f != 0) {
ieS.e(c3039apw.f);
}
} else {
c3039apw.d();
}
C0435Gm c0435Gm2 = c3039apw.e;
boolean z2 = c0435Gm2 != null && c0435Gm2.j;
C0435Gm c0435Gm3 = c3039apw.e;
ZI.IeS ieS2 = new ZI.IeS(c0435Gm3 != null ? c0435Gm3.g : null, z2, c3039apw) { // from class: o.apL
private C3039apw b;
private List d;
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3039apw.a(this.d, this.e, this.b, (InterfaceC9071dcm.LWm) obj);
}
{
this.d = r1;
this.e = z2;
this.b = c3039apw;
}
};
if (c3039apw.f != 0) {
ieS2.e(c3039apw.f);
}
C0435Gm c0435Gm4 = c3039apw.e;
boolean z3 = c0435Gm4 != null && c0435Gm4.j;
C0435Gm c0435Gm5 = c3039apw.e;
ZI.IeS ieS3 = new ZI.IeS(c0435Gm5 != null ? c0435Gm5.f : null, z3, c3039apw) { // from class: o.apJ
private C3039apw a;
private boolean b;
private List e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3039apw.b(this.e, this.b, this.a, (InterfaceC9071dcm.LWm) obj);
}
{
this.e = r1;
this.b = z3;
this.a = c3039apw;
}
};
if (c3039apw.f != 0) {
ieS3.e(c3039apw.f);
}
C0435Gm c0435Gm6 = c3039apw.e;
boolean z4 = c0435Gm6 != null && c0435Gm6.j;
C0435Gm c0435Gm7 = c3039apw.e;
ZI.IeS ieS4 = new ZI.IeS(z4, c0435Gm7 != null ? c0435Gm7.k : null) { // from class: o.apI
private String b;
private boolean c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3039apw.e(this.c, this.b, (InterfaceC9071dcm.LWm) obj);
}
{
this.c = z4;
this.b = r2;
}
};
if (c3039apw.f != 0) {
ieS4.e(c3039apw.f);
return;
}
return;
}
lWm.e(gg);
}
public static /* synthetic */ void b(List list, boolean z, C3039apw c3039apw, InterfaceC9071dcm.LWm lWm) {
C14957gcv.e(c3039apw, "");
if (list == null || list.size() < 2) {
lWm.c();
c3039apw.h = true;
if (z) {
return;
}
c3039apw.d();
return;
}
if (z) {
c3039apw.i = true;
lWm.d(e((List<GA>) list));
} else {
lWm.c(e((List<GA>) list));
}
}
public static /* synthetic */ void e(boolean z, String str, InterfaceC9071dcm.LWm lWm) {
if (z) {
String str2 = str;
if (!(str2 == null || gdZ.d((CharSequence) str2))) {
lWm.e(str);
return;
}
}
lWm.j();
}
public static /* synthetic */ void a(List list, boolean z, C3039apw c3039apw, InterfaceC9071dcm.LWm lWm) {
C14957gcv.e(c3039apw, "");
if (list == null || list.size() < 2) {
c3039apw.d();
} else if (z) {
c3039apw.g = true;
lWm.a((List<String>) list);
} else {
lWm.e((List<String>) list);
}
}
public static /* synthetic */ void e(GF gf, InterfaceC9071dcm.LWm lWm) {
C14957gcv.e(gf, "");
lWm.d(gf);
}
public final String b(int i) {
List<String> list;
String str;
C0435Gm c0435Gm = this.e;
return (c0435Gm == null || (list = c0435Gm.d) == null || (str = list.get(i)) == null) ? "" : str;
}
@Override // o.InterfaceC9071dcm.HBt
public final void b(Boolean bool, Boolean bool2, Boolean bool3, Boolean bool4) {
C2996apE c2996apE = new C2996apE(this);
if (this.f != 0) {
c2996apE.e(this.f);
}
ZI.IeS ieS = new ZI.IeS(bool, bool2, bool3, bool4) { // from class: o.apG
private Boolean a;
private Boolean b;
private Boolean c;
private Boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3039apw.a(this.e, this.c, this.b, this.a, (InterfaceC9071dcm.LWm) obj);
}
{
this.e = bool;
this.c = bool2;
this.b = bool3;
this.a = bool4;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
public final boolean a(String str, OffsetDateTime offsetDateTime, String str2, String str3) {
if (!this.a) {
String str4 = str;
if (!(!(str4 == null || gdZ.d((CharSequence) str4))) || offsetDateTime == null) {
return false;
}
String str5 = str2;
if (!(!(str5 == null || gdZ.d((CharSequence) str5)))) {
return false;
}
} else if (this.h) {
String str6 = str;
if (!(!(str6 == null || gdZ.d((CharSequence) str6)))) {
return false;
}
String str7 = str3;
if (!(!(str7 == null || gdZ.d((CharSequence) str7)))) {
return false;
}
} else {
String str8 = str;
if (!(!(str8 == null || gdZ.d((CharSequence) str8)))) {
return false;
}
String str9 = str3;
if (!(!(str9 == null || gdZ.d((CharSequence) str9)))) {
return false;
}
String str10 = str2;
if (!(!(str10 == null || gdZ.d((CharSequence) str10)))) {
return false;
}
}
return true;
}
static {
new LWm((byte) 0);
}
}