292 lines
9.8 KiB
Java
292 lines
9.8 KiB
Java
package o;
|
|
|
|
import com.scb.phone.domain.errors.RetrofitException;
|
|
import java.util.List;
|
|
import o.C0690Mh;
|
|
import o.C15715hv;
|
|
import o.ZI;
|
|
|
|
/* renamed from: o.aLc */
|
|
/* loaded from: classes4.dex */
|
|
public final class C1685aLc extends ZI<InterfaceC9158deT> {
|
|
private final C0310Dw a;
|
|
public final C15909jY b;
|
|
private final InterfaceC3521azC c;
|
|
public String d;
|
|
private String e;
|
|
private final C0221Br h;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C1685aLc(C16903sI c16903sI, C15909jY c15909jY, C0221Br c0221Br, C0310Dw c0310Dw, InterfaceC3521azC interfaceC3521azC) {
|
|
super(c16903sI);
|
|
C14957gcv.e(c16903sI, "");
|
|
C14957gcv.e(c15909jY, "");
|
|
C14957gcv.e(c0221Br, "");
|
|
C14957gcv.e(c0310Dw, "");
|
|
C14957gcv.e(interfaceC3521azC, "");
|
|
this.b = c15909jY;
|
|
this.h = c0221Br;
|
|
this.a = c0310Dw;
|
|
this.c = interfaceC3521azC;
|
|
}
|
|
|
|
/* renamed from: o.aLc$HBt */
|
|
/* loaded from: classes4.dex */
|
|
public final /* synthetic */ class HBt extends C14954gcs implements InterfaceC14894gbR<Throwable, C14866gag> {
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(Throwable th) {
|
|
Throwable th2 = th;
|
|
C14957gcv.e(th2, "");
|
|
C1685aLc.a((C1685aLc) this.f, th2);
|
|
return C14866gag.c;
|
|
}
|
|
|
|
public HBt(Object obj) {
|
|
super(1, obj, C1685aLc.class, "onPurchasePaymentIdFailed", "onPurchasePaymentIdFailed(Ljava/lang/Throwable;)V");
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.aLc$RVV */
|
|
/* loaded from: classes4.dex */
|
|
public final /* synthetic */ class RVV extends C14954gcs implements InterfaceC14894gbR<C6162cKm, C14866gag> {
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(C6162cKm c6162cKm) {
|
|
C6162cKm c6162cKm2 = c6162cKm;
|
|
C14957gcv.e(c6162cKm2, "");
|
|
C1685aLc.a((C1685aLc) this.f, c6162cKm2);
|
|
return C14866gag.c;
|
|
}
|
|
|
|
public RVV(Object obj) {
|
|
super(1, obj, C1685aLc.class, "onPurchasePaymentIdLoaded", "onPurchasePaymentIdLoaded(Lcom/scb/phone/domain/entity/purchase/PurchaseSourceOfFund;)V");
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.aLc$IeS */
|
|
/* loaded from: classes4.dex */
|
|
public static final class IeS {
|
|
private IeS() {
|
|
}
|
|
|
|
public /* synthetic */ IeS(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void d(C1685aLc c1685aLc, C6162cKm c6162cKm, InterfaceC9158deT interfaceC9158deT) {
|
|
C14957gcv.e(c1685aLc, "");
|
|
C14957gcv.e(c6162cKm, "");
|
|
interfaceC9158deT.a(c1685aLc.a.c(c6162cKm), c1685aLc.d, c1685aLc.e);
|
|
}
|
|
|
|
public static /* synthetic */ void c(Throwable th, C1685aLc c1685aLc, InterfaceC9158deT interfaceC9158deT) {
|
|
VCl vCl;
|
|
ggV ggv;
|
|
C14957gcv.e(th, "");
|
|
C14957gcv.e(c1685aLc, "");
|
|
String str = null;
|
|
RetrofitException retrofitException = th instanceof RetrofitException ? (RetrofitException) th : null;
|
|
if (retrofitException != null && (vCl = retrofitException.e) != null && (ggv = vCl.c) != null) {
|
|
str = ggv.e;
|
|
}
|
|
if (C14957gcv.b((Object) "3020", (Object) str)) {
|
|
Runnable runnable = new Runnable(interfaceC9158deT, c1685aLc) { // from class: o.aLe
|
|
private InterfaceC9158deT c;
|
|
private C1685aLc d;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
C1685aLc.a(this.c, this.d);
|
|
}
|
|
|
|
{
|
|
this.c = interfaceC9158deT;
|
|
this.d = c1685aLc;
|
|
}
|
|
};
|
|
if (c1685aLc.b(th)) {
|
|
c1685aLc.d(c1685aLc.j.c(th, runnable));
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (th instanceof IllegalArgumentException) {
|
|
C16903sI c16903sI = c1685aLc.j;
|
|
C0693Mj c = c16903sI.c(c16903sI.e(C15715hv.tOB.unable_to_proceed_error_title), c16903sI.e(C15715hv.tOB.error_generic_resource), C0690Mh.IeS.JUST_DISMISS);
|
|
VCl b = VCl.b();
|
|
ggV d = ggV.d();
|
|
d.d = c.d;
|
|
d.c = c.c;
|
|
b.c = d;
|
|
interfaceC9158deT.a_(RetrofitException.c(b));
|
|
interfaceC9158deT.e();
|
|
return;
|
|
}
|
|
interfaceC9158deT.a_(th);
|
|
}
|
|
|
|
public static /* synthetic */ void e(C1685aLc c1685aLc, C6162cKm c6162cKm, InterfaceC9158deT interfaceC9158deT) {
|
|
C14957gcv.e(c1685aLc, "");
|
|
C14957gcv.e(c6162cKm, "");
|
|
interfaceC9158deT.d(c1685aLc.h.a(c6162cKm), c1685aLc.d);
|
|
}
|
|
|
|
public static /* synthetic */ void b(C1685aLc c1685aLc, C6162cKm c6162cKm, InterfaceC9158deT interfaceC9158deT) {
|
|
C14957gcv.e(c1685aLc, "");
|
|
C14957gcv.e(c6162cKm, "");
|
|
interfaceC9158deT.e(c1685aLc.h.a(c6162cKm), c1685aLc.d, c1685aLc.e);
|
|
}
|
|
|
|
public static /* synthetic */ void c(C1685aLc c1685aLc, C6162cKm c6162cKm, InterfaceC9158deT interfaceC9158deT) {
|
|
C14957gcv.e(c1685aLc, "");
|
|
C14957gcv.e(c6162cKm, "");
|
|
interfaceC9158deT.d(c1685aLc.h.a(c6162cKm), c1685aLc.d);
|
|
}
|
|
|
|
public static /* synthetic */ void a(InterfaceC9158deT interfaceC9158deT, C1685aLc c1685aLc) {
|
|
C14957gcv.e(c1685aLc, "");
|
|
interfaceC9158deT.l_(c1685aLc.c.a().w);
|
|
}
|
|
|
|
public static final /* synthetic */ void a(C1685aLc c1685aLc, Throwable th) {
|
|
if (c1685aLc.i(th)) {
|
|
return;
|
|
}
|
|
ZI.IeS ieS = new ZI.IeS(th, c1685aLc) { // from class: o.aLh
|
|
private C1685aLc b;
|
|
private Throwable c;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C1685aLc.c(this.c, this.b, (InterfaceC9158deT) obj);
|
|
}
|
|
|
|
{
|
|
this.c = th;
|
|
this.b = c1685aLc;
|
|
}
|
|
};
|
|
if (c1685aLc.f != 0) {
|
|
ieS.e(c1685aLc.f);
|
|
}
|
|
}
|
|
|
|
public static final /* synthetic */ void a(C1685aLc c1685aLc, C6162cKm c6162cKm) {
|
|
if (c1685aLc.f != 0) {
|
|
c1685aLc.f.ar_();
|
|
}
|
|
List<String> list = c6162cKm.i;
|
|
int size = list.size();
|
|
String str = c6162cKm.g;
|
|
String str2 = str;
|
|
if (!gdZ.d((CharSequence) str2)) {
|
|
String str3 = null;
|
|
String a = str != null ? new gdW("\\s+").a(str2, "") : null;
|
|
c1685aLc.e = a;
|
|
if (a != null && a.length() > 100) {
|
|
String str4 = c1685aLc.e;
|
|
if (str4 != null) {
|
|
str3 = str4.substring(0, 100);
|
|
C14957gcv.c((Object) str3, "");
|
|
}
|
|
c1685aLc.e = str3;
|
|
}
|
|
}
|
|
c1685aLc.e = c1685aLc.e;
|
|
if (size == 1) {
|
|
String str5 = (String) C14881gav.e((List) list);
|
|
if (C14957gcv.b((Object) str5, (Object) YL.CREDIT_CARD_FULL_AMOUNT.code) || C14957gcv.b((Object) str5, (Object) YL.CREDIT_CARD_INSTALLMENT_PAYMENT_PLAN.code)) {
|
|
ZI.IeS ieS = new ZI.IeS(c1685aLc, c6162cKm) { // from class: o.aLd
|
|
private C6162cKm a;
|
|
private C1685aLc b;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C1685aLc.e(this.b, this.a, (InterfaceC9158deT) obj);
|
|
}
|
|
|
|
{
|
|
this.b = c1685aLc;
|
|
this.a = c6162cKm;
|
|
}
|
|
};
|
|
if (c1685aLc.f != 0) {
|
|
ieS.e(c1685aLc.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
ZI.IeS ieS2 = new ZI.IeS(c1685aLc, c6162cKm) { // from class: o.aKZ
|
|
private C6162cKm b;
|
|
private C1685aLc d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C1685aLc.d(this.d, this.b, (InterfaceC9158deT) obj);
|
|
}
|
|
|
|
{
|
|
this.d = c1685aLc;
|
|
this.b = c6162cKm;
|
|
}
|
|
};
|
|
if (c1685aLc.f != 0) {
|
|
ieS2.e(c1685aLc.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (size > 1) {
|
|
if (list.contains(YL.BILL_PAYMENT.code)) {
|
|
ZI.IeS ieS3 = new ZI.IeS(c1685aLc, c6162cKm) { // from class: o.aLf
|
|
private C1685aLc a;
|
|
private C6162cKm b;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C1685aLc.b(this.a, this.b, (InterfaceC9158deT) obj);
|
|
}
|
|
|
|
{
|
|
this.a = c1685aLc;
|
|
this.b = c6162cKm;
|
|
}
|
|
};
|
|
if (c1685aLc.f != 0) {
|
|
ieS3.e(c1685aLc.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
ZI.IeS ieS4 = new ZI.IeS(c1685aLc, c6162cKm) { // from class: o.aLg
|
|
private C6162cKm a;
|
|
private C1685aLc e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C1685aLc.c(this.e, this.a, (InterfaceC9158deT) obj);
|
|
}
|
|
|
|
{
|
|
this.e = c1685aLc;
|
|
this.a = c6162cKm;
|
|
}
|
|
};
|
|
if (c1685aLc.f != 0) {
|
|
ieS4.e(c1685aLc.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
C1691aLi c1691aLi = new C1691aLi();
|
|
if (c1685aLc.f != 0) {
|
|
c1691aLi.e(c1685aLc.f);
|
|
}
|
|
}
|
|
|
|
static {
|
|
new IeS((byte) 0);
|
|
}
|
|
}
|