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

257 lines
9.0 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.EW;
import o.InterfaceC9617dnC;
import o.QK;
import o.QN;
import o.QO;
import o.QR;
import o.ZI;
import o.cTI;
import org.threeten.bp.OffsetDateTime;
/* loaded from: classes4.dex */
public final class cTI extends ZI<InterfaceC9617dnC.RVV> {
public final C15656hY c;
public C1218Yf d;
private final C16456oY e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public cTI(C15656hY c15656hY, C16456oY c16456oY, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c15656hY, "");
C14957gcv.e(c16456oY, "");
C14957gcv.e(c16903sI, "");
this.c = c15656hY;
this.e = c16456oY;
}
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<C8914dZo, C14866gag> {
private cTI c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C8914dZo c8914dZo) {
final C8914dZo c8914dZo2 = c8914dZo;
C14957gcv.e(c8914dZo2, "");
cTI.c(this.c);
final cTI cti = this.c;
ZI.IeS ieS = new ZI.IeS(cti, c8914dZo2) { // from class: o.cTM
private cTI a;
private C8914dZo e;
@Override // o.ZI.IeS
public final void e(Object obj) {
cTI.LWm.d(this.a, this.e, (InterfaceC9617dnC.RVV) obj);
}
{
this.a = cti;
this.e = c8914dZo2;
}
};
if (cti.f != 0) {
ieS.e(cti.f);
}
return C14866gag.c;
}
public static /* synthetic */ void d(cTI cti, C8914dZo c8914dZo, InterfaceC9617dnC.RVV rvv) {
C14957gcv.e(cti, "");
C14957gcv.e(c8914dZo, "");
C16456oY c16456oY = cti.e;
C1218Yf c1218Yf = cti.d;
if (c1218Yf == null) {
C14957gcv.a("");
c1218Yf = null;
}
C14957gcv.e(c1218Yf, "");
C14957gcv.e(c8914dZo, "");
C14957gcv.e(c1218Yf, "");
C14957gcv.e(c8914dZo, "");
c16456oY.a.clear();
QN.HBt a = QN.a();
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
a.b = C15715hv.LWm.light_green;
a.f = c16456oY.e(C15715hv.tOB.cross_border_success_header);
String str = c8914dZo.c;
if (!gjJ.b((CharSequence) str)) {
str = (String) C16157lj.c(new Object[]{c16456oY, OffsetDateTime.parse(cXG.a(str))}, 838289628, -838289623, System.identityHashCode(c16456oY));
}
a.a = str;
a.c = c16456oY.c(C15715hv.tOB.ref_id, c8914dZo.e);
c16456oY.a.add(new QN(a, YD.REVAMP_SUCCESS_HEADER, (byte) 0));
c16456oY.a.add(new QQ(true));
QK.LWm e = QK.e();
e.g = c16456oY.e(C15715hv.tOB.from);
e.h = c1218Yf.a.b;
e.a = (String) C16157lj.c(new Object[]{c1218Yf.a.c, true}, 1230925834, -1230925834, (int) System.currentTimeMillis());
e.c = c1218Yf.a.e;
e.d = C15715hv.IeS.bankicon_remittance;
c16456oY.a.add(new QK(e, (byte) 0));
QK.LWm e2 = QK.e();
e2.g = c16456oY.e.getString(C15715hv.tOB.to);
e2.h = c1218Yf.b.a;
e2.a = c1218Yf.b.c;
e2.c = c1218Yf.b.d;
e2.d = C15715hv.IeS.bankicon_remittance;
c16456oY.a.add(new QK(e2, (byte) 0));
c16456oY.a.add(new QQ(true));
QR.LWm b = QR.b();
b.g = c16456oY.e(C15715hv.tOB.cross_border_input_conversion_rate);
b.e = c1218Yf.e;
b.n = true;
c16456oY.a.add(new QR(b, (byte) 0));
c16456oY.a.add(new QQ(true));
String c = c16456oY.c(C15715hv.tOB.cross_border_review_amount_in_title, c1218Yf.i);
QO.IeS a2 = QO.a();
a2.g = c;
a2.h = c16456oY.e(c1218Yf.c, c1218Yf.i);
c16456oY.a.add(a2.d());
c16456oY.a.add(new QQ(true));
QO.IeS a3 = QO.a();
a3.g = c16456oY.e(C15715hv.tOB.cross_border_review_total_in_thb_title);
a3.h = c16456oY.e(c1218Yf.g, "THB");
c16456oY.a.add(a3.d());
QO.IeS e3 = QO.e(YD.SUB_DETAIL_ITEM);
e3.g = c16456oY.c(C15715hv.tOB.cross_border_review_amount_in_title, "THB");
e3.h = c16456oY.e(c1218Yf.h, "THB");
e3.k = true;
e3.q = 8;
e3.l = true;
c16456oY.a.add(e3.d());
QO.IeS e4 = QO.e(YD.SUB_DETAIL_ITEM);
String e5 = c16456oY.e(C15715hv.tOB.review_fees);
C14957gcv.c((Object) e5, "");
e4.g = C2974aoj.b(e5);
e4.h = c16456oY.e(c1218Yf.d, "THB");
e4.q = 8;
e4.k = true;
c16456oY.a.add(e4.d());
String str2 = c1218Yf.f;
if (str2 != null && str2.length() != 0) {
c16456oY.a.add(new QQ(true));
QR.LWm b2 = QR.b();
b2.g = c16456oY.e(C15715hv.tOB.note);
b2.e = c1218Yf.f;
b2.n = true;
c16456oY.a.add(new QR(b2, (byte) 0));
}
List<EM> list = c16456oY.a;
C14957gcv.c(list, "");
gcH gch = gcH.d;
String e6 = c16456oY.e(C15715hv.tOB.cross_border_success_slip_file_name);
C14957gcv.c((Object) e6, "");
String format = String.format(e6, Arrays.copyOf(new Object[]{c8914dZo.e}, 1));
C14957gcv.c((Object) format, "");
EW.LWm b3 = EW.b(list, format);
b3.n = true;
gcH gch2 = gcH.d;
String string = c16456oY.e.getString(C15715hv.tOB.cross_border_success_balance);
C14957gcv.c((Object) string, "");
String format2 = String.format(string, Arrays.copyOf(new Object[]{C16456oY.c(Double.valueOf(c8914dZo.d))}, 1));
C14957gcv.c((Object) format2, "");
b3.f = format2;
EW c2 = b3.c();
C14957gcv.c(c2, "");
rvv.e(c2);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(cTI cti) {
super(1);
this.c = cti;
}
}
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private cTI c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
ggV ggv;
Throwable th2 = th;
C14957gcv.e(th2, "");
if (th2 instanceof RetrofitException) {
VCl vCl = ((RetrofitException) th2).e;
if (C14957gcv.b((Object) "3004", (Object) ((vCl == null || (ggv = vCl.c) == null) ? null : ggv.e))) {
cTI cti = this.c;
cti.d(cti.j.d(th2, C0690Mh.IeS.NAVIGATE_BACK));
return C14866gag.c;
}
}
cTI cti2 = this.c;
C16903sI c16903sI = cti2.j;
final cTI cti3 = this.c;
cti2.d(c16903sI.c(th2, new Runnable(cti3) { // from class: o.cTP
private cTI a;
@Override // java.lang.Runnable
public final void run() {
cTI.RVV.c(this.a);
}
{
this.a = cti3;
}
}));
return C14866gag.c;
}
public static /* synthetic */ void c(cTI cti) {
C14957gcv.e(cti, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cTL
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9617dnC.RVV) obj).a();
}
};
if (cti.f != 0) {
ieS.e(cti.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(cTI cti) {
super(1);
this.c = cti;
}
}
@Override // o.ZI
public final void w_() {
super.w_();
this.c.a();
}
public static /* synthetic */ void a(C1218Yf c1218Yf, InterfaceC9617dnC.RVV rvv) {
C14957gcv.e(c1218Yf, "");
rvv.e(c1218Yf.a);
rvv.e(c1218Yf.b);
String str = c1218Yf.e;
if (str != null && str.length() != 0) {
rvv.b(c1218Yf.e);
}
rvv.d(c1218Yf.i, c1218Yf.c);
rvv.c(c1218Yf.g, c1218Yf.h, c1218Yf.d);
String str2 = c1218Yf.f;
if (str2 == null || str2.length() == 0) {
return;
}
rvv.e(c1218Yf.f);
}
public static final /* synthetic */ void c(cTI cti) {
if (cti.f != 0) {
cti.f.ar_();
}
}
}