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

247 lines
7.7 KiB
Java

package o;
import java.util.List;
import o.C15716hvG;
import o.C6081cHy;
import o.InterfaceC9584dmW;
import o.ZI;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.cHy, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C6081cHy extends ZI<InterfaceC9584dmW.LWm> {
public final C15982kE b;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C6081cHy(C15982kE c15982kE, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c15982kE, "");
C14957gcv.e(c16903sI, "");
this.b = c15982kE;
}
/* renamed from: o.cHy$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<List<? extends AbstractC0518Im>, C14866gag> {
private C6081cHy e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(List<? extends AbstractC0518Im> list) {
final List<? extends AbstractC0518Im> list2 = list;
C14957gcv.e(list2, "");
C6081cHy.d(this.e);
C6081cHy c6081cHy = this.e;
ZI.IeS ieS = new ZI.IeS(list2) { // from class: o.cHH
private List b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6081cHy.IeS.c(this.b, (InterfaceC9584dmW.LWm) obj);
}
{
this.b = list2;
}
};
if (c6081cHy.f != 0) {
ieS.e(c6081cHy.f);
}
return C14866gag.c;
}
public static /* synthetic */ void c(List list, InterfaceC9584dmW.LWm lWm) {
boolean z;
boolean z2;
boolean z3;
C14957gcv.e(list, "");
lWm.b(list);
C15716hvG.RVV rvv = C15716hvG.d;
z = C15716hvG.a;
z2 = C15716hvG.e;
z3 = C15716hvG.b;
lWm.c(C15716hvG.RVV.d("investment_onboard_personalinfo", z, z2, z3, null));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C6081cHy c6081cHy) {
super(1);
this.e = c6081cHy;
}
}
/* renamed from: o.cHy$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6081cHy a;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
final C6081cHy c6081cHy = this.a;
C6081cHy.a(c6081cHy, th2, new Runnable(c6081cHy) { // from class: o.cHF
private C6081cHy b;
@Override // java.lang.Runnable
public final void run() {
C6081cHy.Sts.d(this.b);
}
{
this.b = c6081cHy;
}
});
return C14866gag.c;
}
public static /* synthetic */ void d(C6081cHy c6081cHy) {
C14957gcv.e(c6081cHy, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cHI
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9584dmW.LWm) obj).c();
}
};
if (c6081cHy.f != 0) {
ieS.e(c6081cHy.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(C6081cHy c6081cHy) {
super(1);
this.a = c6081cHy;
}
}
/* renamed from: o.cHy$HBt */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6081cHy a;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6081cHy.e(this.a, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C6081cHy c6081cHy) {
super(1);
this.a = c6081cHy;
}
}
/* renamed from: o.cHy$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Boolean, C14866gag> {
private C6081cHy d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Boolean bool) {
C6081cHy.d(this.d);
C6081cHy c6081cHy = this.d;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cHG
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9584dmW.LWm) obj).e();
}
};
if (c6081cHy.f != 0) {
ieS.e(c6081cHy.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C6081cHy c6081cHy) {
super(1);
this.d = c6081cHy;
}
}
public static YJ d(String str, String str2) {
C14957gcv.e(str2, "");
YJ yj = YJ.INVALID_DATE_FORMAT;
String j = cXG.j("dd/MM/yyyy", str);
OffsetDateTime now = OffsetDateTime.now(AbstractC15502gsH.of("Asia/Bangkok"));
C14957gcv.c(now, "");
if (str == null) {
str = "";
}
boolean z = str.length() == 0;
if (!z) {
C14957gcv.c((Object) j, "");
if (j.length() > 0) {
OffsetDateTime b = cXG.b("dd/MM/yyyy", j, Boolean.FALSE);
if (C14957gcv.b((Object) "th", (Object) str2)) {
now = now.plusYears(543L);
C14957gcv.c(now, "");
}
if (b.compareTo(now.truncatedTo(gtH.DAYS)) < 0) {
return YJ.INVALID_DATE_EXPIRED;
}
if (b.compareTo(now.plusYears(10L)) > 0) {
return YJ.INVALID_DATE_MORE_THAN_TEN_YEARS;
}
return YJ.VALID;
}
}
if (!z) {
C14957gcv.c((Object) j, "");
if (j.length() == 0) {
return YJ.INVALID_DATE_FORMAT;
}
}
return z ? YJ.INVALID_EMPTY_DATE_STRING : yj;
}
@Override // o.ZI
public final void w_() {
super.w_();
this.b.a();
}
/* renamed from: o.cHy$RVV */
/* loaded from: classes4.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
public static /* synthetic */ void e(C6081cHy c6081cHy, InterfaceC9584dmW.LWm lWm) {
C14957gcv.e(c6081cHy, "");
String b = c6081cHy.b.c.b();
lWm.a(b != null ? b : "");
}
public static final /* synthetic */ void d(C6081cHy c6081cHy) {
if (c6081cHy.f != 0) {
c6081cHy.f.ar_();
}
}
public static final /* synthetic */ void e(C6081cHy c6081cHy, Throwable th) {
if (c6081cHy.b(th)) {
c6081cHy.d(c6081cHy.j.e(th));
}
}
public static final /* synthetic */ void a(C6081cHy c6081cHy, Throwable th, Runnable runnable) {
if (c6081cHy.b(th)) {
c6081cHy.d(c6081cHy.j.c(th, runnable));
}
}
static {
new RVV((byte) 0);
}
}