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

308 lines
10 KiB
Java

package o;
import com.scb.phone.domain.interactor.partner.nsip.NsipPartnerPaymentConfirmCase;
import java.util.List;
import o.C15715hv;
import o.C7198cjk;
import o.ES;
import o.InterfaceC9476dkU;
import o.QG;
import o.QK;
import o.QO;
import o.QR;
import o.ZI;
/* renamed from: o.cjk, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C7198cjk extends ZI<InterfaceC9476dkU.LWm> {
public final C15853jE a;
private final C17625yS b;
private final C17621yP c;
private final Xky d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C7198cjk(C16903sI c16903sI, C15853jE c15853jE, C17625yS c17625yS, C17621yP c17621yP, Xky xky) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c15853jE, "");
C14957gcv.e(c17625yS, "");
C14957gcv.e(c17621yP, "");
C14957gcv.e(xky, "");
this.a = c15853jE;
this.b = c17625yS;
this.c = c17621yP;
this.d = xky;
}
/* renamed from: o.cjk$HBt */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7198cjk d;
private TJ e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
if (!(th2 instanceof NsipPartnerPaymentConfirmCase.NsipConfirmException)) {
if (ZI.j(th2)) {
C7198cjk.c(this.d);
C7198cjk c7198cjk = this.d;
final TJ tj = this.e;
ZI.IeS ieS = new ZI.IeS(tj) { // from class: o.cjr
private TJ e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7198cjk.HBt.e(this.e, (InterfaceC9476dkU.LWm) obj);
}
{
this.e = tj;
}
};
if (c7198cjk.f != 0) {
ieS.e(c7198cjk.f);
}
} else {
final C7198cjk c7198cjk2 = this.d;
C7198cjk.e(c7198cjk2, th2, new Runnable(c7198cjk2) { // from class: o.cju
private C7198cjk b;
@Override // java.lang.Runnable
public final void run() {
C7198cjk.HBt.d(this.b);
}
{
this.b = c7198cjk2;
}
});
}
} else {
final C7198cjk c7198cjk3 = this.d;
C7198cjk.e(c7198cjk3, th2, new Runnable(c7198cjk3) { // from class: o.cjp
private C7198cjk c;
@Override // java.lang.Runnable
public final void run() {
C7198cjk.HBt.c(this.c);
}
{
this.c = c7198cjk3;
}
});
}
return C14866gag.c;
}
public static /* synthetic */ void c(C7198cjk c7198cjk) {
C14957gcv.e(c7198cjk, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cjs
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9476dkU.LWm) obj).b();
}
};
if (c7198cjk.f != 0) {
ieS.e(c7198cjk.f);
}
}
public static /* synthetic */ void d(C7198cjk c7198cjk) {
C14957gcv.e(c7198cjk, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cjq
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9476dkU.LWm) obj).d();
}
};
if (c7198cjk.f != 0) {
ieS.e(c7198cjk.f);
}
}
public static /* synthetic */ void e(TJ tj, InterfaceC9476dkU.LWm lWm) {
C14957gcv.e(tj, "");
lWm.c(tj);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C7198cjk c7198cjk, TJ tj) {
super(1);
this.d = c7198cjk;
this.e = tj;
}
}
/* renamed from: o.cjk$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<kkD, C14866gag> {
private TJ a;
private C7198cjk c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(kkD kkd) {
kkD kkd2 = kkd;
C14957gcv.e(kkd2, "");
C7198cjk.c(this.c);
final EW b = this.c.c.b(this.a, kkd2);
C17621yP unused = this.c.c;
final List<QI> e = C17621yP.e(kkd2.b);
C7198cjk c7198cjk = this.c;
ZI.IeS ieS = new ZI.IeS(b, e) { // from class: o.cjo
private List a;
private EW b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7198cjk.LWm.a(this.b, this.a, (InterfaceC9476dkU.LWm) obj);
}
{
this.b = b;
this.a = e;
}
};
if (c7198cjk.f != 0) {
ieS.e(c7198cjk.f);
}
return C14866gag.c;
}
public static /* synthetic */ void a(EW ew, List list, InterfaceC9476dkU.LWm lWm) {
C14957gcv.e(ew, "");
lWm.c(ew, list);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C7198cjk c7198cjk, TJ tj) {
super(1);
this.c = c7198cjk;
this.a = tj;
}
}
public static /* synthetic */ void e(C7198cjk c7198cjk, TJ tj, InterfaceC9476dkU.LWm lWm) {
C14957gcv.e(c7198cjk, "");
C14957gcv.e(tj, "");
C17625yS c17625yS = c7198cjk.b;
boolean T = c7198cjk.d.T();
C14957gcv.e(tj, "");
ES.IeS a = ES.a();
c17625yS.a.clear();
QK.LWm e = QK.e();
e.g = c17625yS.e.getString(C15715hv.tOB.from);
e.h = tj.a;
e.a = (String) C16157lj.c(new Object[]{tj.b, Boolean.valueOf(T)}, 1230925834, -1230925834, (int) System.currentTimeMillis());
e.c = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
c17625yS.a.add(new QK(e, (byte) 0));
c17625yS.a.add(new QQ());
QK.LWm e2 = QK.e();
e2.g = c17625yS.e.getString(C15715hv.tOB.to);
e2.h = tj.i.a;
StringBuilder sb = new StringBuilder();
String string = c17625yS.e.getString(C15715hv.tOB.biller_ac, C6583cXR.u(tj.c));
StringBuilder sb2 = new StringBuilder();
sb2.append(string);
sb2.append("\n");
sb.append(sb2.toString());
String str = tj.f;
String str2 = tj.g;
StringBuilder sb3 = new StringBuilder();
sb3.append(str);
sb3.append(" : ");
sb3.append(str2);
sb.append(sb3.toString());
if (tj.f8373o.length() > 0 && tj.n.length() > 0) {
String str3 = tj.n;
String str4 = tj.f8373o;
StringBuilder sb4 = new StringBuilder("\n");
sb4.append(str3);
sb4.append(" : ");
sb4.append(str4);
sb.append(sb4.toString());
}
if (tj.l.length() > 0 && tj.m.length() > 0) {
String str5 = tj.m;
String str6 = tj.l;
StringBuilder sb5 = new StringBuilder("\n");
sb5.append(str5);
sb5.append(" : ");
sb5.append(str6);
sb.append(sb5.toString());
}
String obj = sb.toString();
C14957gcv.c((Object) obj, "");
e2.a = obj;
e2.c = tj.i.b;
e2.d = C15715hv.IeS.ic_biller_default;
c17625yS.a.add(new QK(e2, (byte) 0));
c17625yS.a.add(new QQ());
QO.IeS d = QO.d();
d.g = c17625yS.e.getString(C15715hv.tOB.amount);
d.h = C17625yS.c(Double.valueOf(tj.h));
c17625yS.a.add(d.d());
c17625yS.a.add(new QQ());
QO.IeS d2 = QO.d();
d2.g = c17625yS.e.getString(C15715hv.tOB.nsip_fee);
d2.h = C17625yS.c(Double.valueOf(tj.k));
QO d3 = d2.d();
String str7 = tj.j;
if (str7 == null || str7.length() == 0) {
if (!tj.d.b.isEmpty()) {
c17625yS.a.add(d3);
c17625yS.a.add(new QQ());
QG.RVV a2 = QG.a();
a2.e = tj.d.b;
c17625yS.a.add(new QG((QG.RVV<?>) a2));
} else {
c17625yS.a.add(d3);
}
} else {
c17625yS.a.add(d3);
c17625yS.a.add(new QQ());
if (!tj.d.b.isEmpty()) {
QR.LWm b = QR.b();
b.g = c17625yS.e.getString(C15715hv.tOB.note);
b.e = tj.j;
c17625yS.a.add(new QR(b, (byte) 0));
c17625yS.a.add(new QQ());
QG.RVV a3 = QG.a();
a3.e = tj.d.b;
c17625yS.a.add(new QG((QG.RVV<?>) a3));
} else {
QR.LWm b2 = QR.b();
b2.g = c17625yS.e.getString(C15715hv.tOB.note);
b2.e = tj.j;
c17625yS.a.add(new QR(b2, (byte) 0));
}
}
List<EM> list = c17625yS.a;
C14957gcv.c(list, "");
a.c = list;
ES es = new ES(a, (byte) 0);
C14957gcv.c(es, "");
lWm.a(es);
}
public static final /* synthetic */ void c(C7198cjk c7198cjk) {
if (c7198cjk.f != 0) {
c7198cjk.f.ar_();
}
}
public static /* synthetic */ void a(EW ew, InterfaceC9476dkU.LWm lWm) {
C14957gcv.e(ew, "");
lWm.c(ew, null);
}
public static final /* synthetic */ void e(C7198cjk c7198cjk, Throwable th, Runnable runnable) {
if (c7198cjk.b(th)) {
c7198cjk.d(c7198cjk.j.c(th, runnable));
}
}
}