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

331 lines
10 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.Resources;
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
import java.util.Arrays;
import o.C0690Mh;
import o.C15715hv;
import o.C3005apN;
import o.InterfaceC9074dcp;
import o.ZI;
import o.wRi;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.apN, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C3005apN extends ZI<InterfaceC9074dcp.HBt> {
public GF a;
public final String b;
public C0455Gy c;
public final xZj d;
public boolean e;
private final Resources g;
private final C16383nq h;
private final C16379np i;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C3005apN(C16903sI c16903sI, xZj xzj, C16383nq c16383nq, C16379np c16379np, Resources resources, String str) {
super(c16903sI);
C14957gcv.e(xzj, "");
C14957gcv.e(c16383nq, "");
C14957gcv.e(c16379np, "");
C14957gcv.e(resources, "");
C14957gcv.e(str, "");
this.d = xzj;
this.h = c16383nq;
this.i = c16379np;
this.g = resources;
this.b = str;
}
/* renamed from: o.apN$IeS */
/* loaded from: classes3.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
public static String d(Double d) {
try {
gcH gch = gcH.d;
String format = String.format("%1$,.2f", Arrays.copyOf(new Object[]{d}, 1));
C14957gcv.c((Object) format, "");
return format;
} catch (Exception unused) {
return "";
}
}
/* renamed from: o.apN$LWm */
/* loaded from: classes3.dex */
public final class LWm extends wRi.LWm<FuO> {
private C3005apN b;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final GE ge;
FuO fuO = (FuO) obj;
C14957gcv.e(fuO, "");
GF gf = this.b.a;
if (gf != null) {
C16383nq c16383nq = this.b.h;
C14957gcv.e(fuO, "");
C14957gcv.e(gf, "");
ge = new GE((byte) 0);
ge.g = (String) C16157lj.c(new Object[]{c16383nq, OffsetDateTime.parse(fuO.g)}, 838289628, -838289623, System.identityHashCode(c16383nq));
ge.d = gf.f;
ge.a = fuO.a;
ge.e = fuO.d;
ge.b = fuO.b;
ge.c = fuO.c;
gcH gch = gcH.d;
String format = String.format("%s %s", Arrays.copyOf(new Object[]{c16383nq.e.getString(C15715hv.tOB.ref_id_label), fuO.h}, 2));
C14957gcv.c((Object) format, "");
ge.h = format;
ge.j = gf.h;
double d = gf.d;
Double d2 = fuO.a;
ge.f = Double.valueOf(d + (d2 != null ? d2.doubleValue() : 0.0d));
ge.i = fuO.f;
} else {
ge = null;
}
C3005apN c3005apN = this.b;
ZI.IeS ieS = new ZI.IeS(ge) { // from class: o.apU
private GE d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C3005apN.LWm.d(this.d, (InterfaceC9074dcp.HBt) obj2);
}
{
this.d = ge;
}
};
if (c3005apN.f != 0) {
ieS.e(c3005apN.f);
}
}
public LWm(C3005apN c3005apN) {
this.b = c3005apN;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
C3005apN.e(this.b);
C3005apN.e(this.b, th);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
C3005apN.e(this.b);
}
public static /* synthetic */ void d(GE ge, InterfaceC9074dcp.HBt hBt) {
if (ge != null) {
hBt.c(ge);
}
}
}
/* renamed from: o.apN$Sts */
/* loaded from: classes3.dex */
public final class Sts extends wRi.LWm<VNK> {
private C3005apN a;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
VNK vnk = (VNK) obj;
C14957gcv.e(vnk, "");
C16379np c16379np = this.a.i;
C14957gcv.e(vnk, "");
gcH gch = gcH.d;
Object[] objArr = new Object[2];
objArr[0] = c16379np.e.getString(C15715hv.tOB.ref_id_label);
String str = vnk.a;
if (str == null) {
str = "";
}
objArr[1] = str;
String format = String.format("%s %s", Arrays.copyOf(objArr, 2));
C14957gcv.c((Object) format, "");
OffsetDateTime parse = OffsetDateTime.parse(vnk.b);
C14957gcv.c(parse, "");
String str2 = (String) C16157lj.c(new Object[]{c16379np, parse}, 838289628, -838289623, System.identityHashCode(c16379np));
String str3 = str2;
if (!(str3 == null || gdZ.d((CharSequence) str3))) {
C14957gcv.c((Object) str2, "");
String str4 = vnk.d;
final GB gb = new GB(format, str2, str4 != null ? str4 : "");
final C3005apN c3005apN = this.a;
ZI.IeS ieS = new ZI.IeS(c3005apN, gb) { // from class: o.apQ
private C3005apN a;
private GB c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C3005apN.Sts.a(this.a, this.c, (InterfaceC9074dcp.HBt) obj2);
}
{
this.a = c3005apN;
this.c = gb;
}
};
if (c3005apN.f != 0) {
ieS.e(c3005apN.f);
return;
}
return;
}
throw new EntityMappingException("DateTime must not be null or empty");
}
public Sts(C3005apN c3005apN) {
this.a = c3005apN;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
C3005apN.e(this.a);
C3005apN.e(this.a, th);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
C3005apN.e(this.a);
}
public static /* synthetic */ void a(C3005apN c3005apN, GB gb, InterfaceC9074dcp.HBt hBt) {
C14957gcv.e(c3005apN, "");
C14957gcv.e(gb, "");
C0455Gy c0455Gy = c3005apN.c;
if (c0455Gy != null) {
hBt.b(c0455Gy, gb);
}
}
}
public static /* synthetic */ void e(String str, InterfaceC9074dcp.HBt hBt) {
C14957gcv.e(str, "");
hBt.a(str);
}
public static /* synthetic */ void b(boolean z, C0455Gy c0455Gy, GF gf, C3005apN c3005apN, InterfaceC9074dcp.HBt hBt) {
C14957gcv.e(c3005apN, "");
if (z) {
if (c0455Gy != null) {
hBt.c(c0455Gy);
c3005apN.e(c0455Gy.f);
return;
}
return;
}
if (gf != null) {
hBt.c(gf);
c3005apN.e(gf.j);
}
}
public static /* synthetic */ void d(C3005apN c3005apN, Throwable th, InterfaceC9074dcp.HBt hBt) {
C14957gcv.e(c3005apN, "");
C14957gcv.e(th, "");
hBt.d();
hBt.e(c3005apN.j.d(th, C0690Mh.IeS.NAVIGATE_BACK));
}
public static final /* synthetic */ void e(final C3005apN c3005apN, final Throwable th) {
ZI.IeS ieS = new ZI.IeS(c3005apN, th) { // from class: o.apR
private C3005apN c;
private Throwable d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3005apN.d(this.c, this.d, (InterfaceC9074dcp.HBt) obj);
}
{
this.c = c3005apN;
this.d = th;
}
};
if (c3005apN.f != 0) {
ieS.e(c3005apN.f);
}
}
public static final /* synthetic */ void e(C3005apN c3005apN) {
if (c3005apN.f != 0) {
c3005apN.f.ar_();
}
}
/* JADX WARN: Code restructure failed: missing block: B:8:0x0012, code lost:
if ((!(r0 == null || o.gdZ.d((java.lang.CharSequence) r0))) != true) goto L11;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final void e(final java.lang.String r3) {
/*
r2 = this;
if (r3 == 0) goto L14
r0 = r3
java.lang.CharSequence r0 = (java.lang.CharSequence) r0
r1 = 1
if (r0 == 0) goto L10
boolean r0 = o.gdZ.d(r0)
if (r0 != 0) goto L10
r0 = 0
goto L11
L10:
r0 = r1
L11:
r0 = r0 ^ r1
if (r0 == r1) goto L3e
L14:
android.content.res.Resources r3 = r2.g
int r0 = o.C15715hv.tOB.temp_limit_max_attempts
java.lang.String r3 = r3.getString(r0)
android.content.res.Resources r0 = r2.g
int r1 = o.C15715hv.tOB.temp_limit_amount_info
java.lang.String r0 = r0.getString(r1)
java.lang.StringBuilder r1 = new java.lang.StringBuilder
r1.<init>()
r1.append(r3)
java.lang.String r3 = "\n\n"
r1.append(r3)
r1.append(r0)
java.lang.String r3 = r1.toString()
boolean r0 = r2.e
if (r0 == 0) goto L3e
java.lang.String r3 = ""
L3e:
o.apO r0 = new o.apO
r0.<init>(r3)
T extends o.cYp r3 = r2.f
if (r3 == 0) goto L4c
T extends o.cYp r3 = r2.f
r0.e(r3)
L4c:
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C3005apN.e(java.lang.String):void");
}
static {
new IeS((byte) 0);
}
}