251 lines
9.3 KiB
Java
251 lines
9.3 KiB
Java
package o;
|
|
|
|
import com.scb.phone.domain.errors.RetrofitException;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import o.C0690Mh;
|
|
import o.C15715hv;
|
|
import o.C16262mlf;
|
|
import o.EW;
|
|
import o.InterfaceC9418djP;
|
|
import o.QK;
|
|
import o.QN;
|
|
import o.QO;
|
|
import o.QR;
|
|
import o.ZI;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class bXM extends ZI<InterfaceC9418djP.IeS> {
|
|
public final FHl a;
|
|
private final C15849jC c;
|
|
public boolean d;
|
|
private final C17507xO e;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public bXM(C15849jC c15849jC, FHl fHl, C17507xO c17507xO, C16903sI c16903sI) {
|
|
super(c16903sI);
|
|
C14957gcv.e(c15849jC, "");
|
|
C14957gcv.e(fHl, "");
|
|
C14957gcv.e(c17507xO, "");
|
|
C14957gcv.e(c16903sI, "");
|
|
this.c = c15849jC;
|
|
this.a = fHl;
|
|
this.e = c17507xO;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes4.dex */
|
|
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<EVR, C14866gag> {
|
|
private InterfaceC9418djP.IeS c;
|
|
private bXM d;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(EVR evr) {
|
|
EVR evr2 = evr;
|
|
C14957gcv.e(evr2, "");
|
|
bXM.d(this.d);
|
|
C17507xO c17507xO = this.d.e;
|
|
boolean z = this.d.d;
|
|
C14957gcv.e(evr2, "");
|
|
c17507xO.a.clear();
|
|
QN.HBt a = QN.a();
|
|
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
|
|
a.b = C15715hv.LWm.light_green;
|
|
a.f = c17507xO.e(C15715hv.tOB.idp_sharing_statement_success_header_title);
|
|
String str = evr2.i;
|
|
if (!gjJ.b((CharSequence) str)) {
|
|
str = (String) C16157lj.c(new Object[]{c17507xO, OffsetDateTime.parse(cXG.a(str))}, 838289628, -838289623, System.identityHashCode(c17507xO));
|
|
}
|
|
a.a = str;
|
|
a.c = c17507xO.c(C15715hv.tOB.ref_id, evr2.h);
|
|
c17507xO.a.add(new QN(a, YD.REVAMP_SUCCESS_HEADER, (byte) 0));
|
|
c17507xO.a.add(new QQ(true));
|
|
QK.LWm e = QK.e();
|
|
e.g = c17507xO.e(C15715hv.tOB.from);
|
|
e.h = evr2.a;
|
|
e.a = (String) C16157lj.c(new Object[]{evr2.c, Boolean.valueOf(z)}, 1230925834, -1230925834, (int) System.currentTimeMillis());
|
|
e.c = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
|
|
e.d = C15715hv.IeS.bankicon_scb;
|
|
c17507xO.a.add(new QK(e, (byte) 0));
|
|
c17507xO.a.add(new QQ(true));
|
|
double d = evr2.b;
|
|
QO.IeS a2 = QO.a();
|
|
a2.g = c17507xO.e(C15715hv.tOB.close_account_review_amount_details_fee);
|
|
a2.h = C15602gz.e(d);
|
|
c17507xO.a.add(a2.d());
|
|
c17507xO.a.add(new QQ(true));
|
|
List<fQW> list = evr2.d;
|
|
QO.IeS a3 = QO.a();
|
|
a3.g = c17507xO.e(C15715hv.tOB.idp_sharing_statement_success_billers_note);
|
|
a3.l = true;
|
|
c17507xO.a.add(a3.d());
|
|
C14957gcv.e(list, "");
|
|
int size = list.size() - 1;
|
|
if (size >= 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
C14957gcv.e(list, "");
|
|
if (i == list.size() - 1) {
|
|
QR.LWm b = QR.b();
|
|
b.e = list.get(i).b;
|
|
b.h = true;
|
|
c17507xO.a.add(new QR(b, (byte) 0));
|
|
c17507xO.a.add(new QQ(true));
|
|
} else {
|
|
QR.LWm b2 = QR.b();
|
|
b2.e = list.get(i).b;
|
|
b2.j = true;
|
|
b2.h = true;
|
|
c17507xO.a.add(new QR(b2, (byte) 0));
|
|
}
|
|
if (i == size) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
String str2 = evr2.g;
|
|
QR.LWm b3 = QR.b();
|
|
b3.g = c17507xO.e(C15715hv.tOB.purchase_remark);
|
|
b3.e = str2;
|
|
c17507xO.a.add(new QR(b3, (byte) 0));
|
|
List<EM> list2 = c17507xO.a;
|
|
C14957gcv.c(list2, "");
|
|
gcH gch = gcH.d;
|
|
String e2 = c17507xO.e(C15715hv.tOB.idp_sharing_statement_success_slip_file_name);
|
|
C14957gcv.c((Object) e2, "");
|
|
String format = String.format(e2, Arrays.copyOf(new Object[]{evr2.h}, 1));
|
|
C14957gcv.c((Object) format, "");
|
|
EW.LWm b4 = EW.b(list2, format);
|
|
b4.n = true;
|
|
double d2 = evr2.e;
|
|
String str3 = evr2.f;
|
|
gcH gch2 = gcH.d;
|
|
String string = c17507xO.e.getString(C15715hv.tOB.idp_sharing_statement_success_balance);
|
|
C14957gcv.c((Object) string, "");
|
|
String format2 = String.format(string, Arrays.copyOf(new Object[]{C17507xO.c(Double.valueOf(d2))}, 1));
|
|
C14957gcv.c((Object) format2, "");
|
|
if (str3 != null) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(format2);
|
|
sb.append("\n");
|
|
sb.append(str3);
|
|
format2 = sb.toString();
|
|
}
|
|
b4.f = format2;
|
|
EW c = b4.c();
|
|
C14957gcv.c(c, "");
|
|
this.c.d(c);
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
HBt(bXM bxm, InterfaceC9418djP.IeS ieS) {
|
|
super(1);
|
|
this.d = bxm;
|
|
this.c = ieS;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes4.dex */
|
|
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
|
|
private InterfaceC9418djP.IeS d;
|
|
private bXM e;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(Throwable th) {
|
|
VCl vCl;
|
|
ggV ggv;
|
|
Throwable th2 = th;
|
|
C14957gcv.e(th2, "");
|
|
RetrofitException retrofitException = th2 instanceof RetrofitException ? (RetrofitException) th2 : null;
|
|
String str = (retrofitException == null || (vCl = retrofitException.e) == null || (ggv = vCl.c) == null) ? null : ggv.e;
|
|
if (str != null) {
|
|
int hashCode = str.hashCode();
|
|
if (hashCode != 1567192) {
|
|
if (hashCode != 1567194) {
|
|
if (hashCode == 1686170 && str.equals("7001")) {
|
|
bXM bxm = this.e;
|
|
bxm.d(bxm.j.d(th2, C0690Mh.IeS.NAVIGATE_BACK));
|
|
}
|
|
} else if (str.equals("3063")) {
|
|
bXM bxm2 = this.e;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.bXR
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9418djP.IeS) obj).d();
|
|
}
|
|
};
|
|
if (bxm2.f != 0) {
|
|
ieS.e(bxm2.f);
|
|
}
|
|
}
|
|
} else if (str.equals("3061")) {
|
|
bXM bxm3 = this.e;
|
|
C16903sI c16903sI = bxm3.j;
|
|
final InterfaceC9418djP.IeS ieS2 = this.d;
|
|
bxm3.d(c16903sI.c(th2, new Runnable(ieS2) { // from class: o.bXS
|
|
private InterfaceC9418djP.IeS c;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
this.c.e();
|
|
}
|
|
|
|
{
|
|
this.c = ieS2;
|
|
}
|
|
}));
|
|
}
|
|
return C14866gag.c;
|
|
}
|
|
bXM bxm4 = this.e;
|
|
int i = C15715hv.tOB.error_generic_resource;
|
|
C0690Mh.IeS ieS3 = C0690Mh.IeS.JUST_DISMISS;
|
|
C16903sI c16903sI2 = bxm4.j;
|
|
bxm4.d(c16903sI2.c((String) null, c16903sI2.e(i), ieS3));
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
Sts(bXM bxm, InterfaceC9418djP.IeS ieS) {
|
|
super(1);
|
|
this.e = bxm;
|
|
this.d = ieS;
|
|
}
|
|
}
|
|
|
|
@Override // o.ZI
|
|
public final void w_() {
|
|
this.c.a();
|
|
super.w_();
|
|
}
|
|
|
|
public static /* synthetic */ void d(bXM bxm, String str, InterfaceC9418djP.IeS ieS) {
|
|
C14957gcv.e(bxm, "");
|
|
C14957gcv.e(str, "");
|
|
C15849jC c15849jC = bxm.c;
|
|
HBt hBt = new HBt(bxm, ieS);
|
|
Sts sts = new Sts(bxm, ieS);
|
|
C3892bK c3892bK = new C3892bK(str);
|
|
C14957gcv.e(hBt, "");
|
|
C14957gcv.e(sts, "");
|
|
C14957gcv.e(c3892bK, "");
|
|
c15849jC.b(c15849jC.e, hBt, sts, new C16262mlf.HBt(c3892bK));
|
|
}
|
|
|
|
public static /* synthetic */ void c(ES es, InterfaceC9418djP.IeS ieS) {
|
|
C14957gcv.e(es, "");
|
|
ieS.a(es);
|
|
}
|
|
|
|
public static final /* synthetic */ void d(bXM bxm) {
|
|
if (bxm.f != 0) {
|
|
bxm.f.ar_();
|
|
}
|
|
}
|
|
}
|