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

190 lines
7.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.Resources;
import com.scb.phone.domain.errors.RetrofitException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import o.C15715hv;
import o.C5929cDi;
import o.InterfaceC9565dmD;
import o.ZI;
/* renamed from: o.cDi, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C5929cDi extends ZI<InterfaceC9565dmD.HBt> {
public final C16065kq a;
private final Resources b;
public boolean d;
private final C0231Bx e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C5929cDi(C16903sI c16903sI, Resources resources, C16065kq c16065kq, C0231Bx c0231Bx) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(resources, "");
C14957gcv.e(c16065kq, "");
C14957gcv.e(c0231Bx, "");
this.b = resources;
this.a = c16065kq;
this.e = c0231Bx;
}
/* renamed from: o.cDi$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C5929cDi d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
String string;
Throwable th2 = th;
C14957gcv.e(th2, "");
C5929cDi.d(this.d);
if (!(th2 instanceof RetrofitException)) {
string = this.d.b.getString(C15715hv.tOB.error_generic_resource);
} else {
string = ((RetrofitException) th2).e.c.c;
}
C5929cDi c5929cDi = this.d;
C14957gcv.c((Object) string, "");
C5929cDi.e(c5929cDi, string);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C5929cDi c5929cDi) {
super(1);
this.d = c5929cDi;
}
}
/* renamed from: o.cDi$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<EMy, C14866gag> {
private C5929cDi e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(EMy eMy) {
final EMy eMy2 = eMy;
C14957gcv.e(eMy2, "");
C5929cDi.d(this.e);
final C5929cDi c5929cDi = this.e;
ZI.IeS ieS = new ZI.IeS(c5929cDi, eMy2) { // from class: o.cDj
private EMy c;
private C5929cDi d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5929cDi.RVV.d(this.d, this.c, (InterfaceC9565dmD.HBt) obj);
}
{
this.d = c5929cDi;
this.c = eMy2;
}
};
if (c5929cDi.f != 0) {
ieS.e(c5929cDi.f);
}
return C14866gag.c;
}
public static /* synthetic */ void d(C5929cDi c5929cDi, EMy eMy, InterfaceC9565dmD.HBt hBt) {
C14957gcv.e(c5929cDi, "");
C14957gcv.e(eMy, "");
C0231Bx unused = c5929cDi.e;
C14957gcv.e(eMy, "");
List<String> list = eMy.e;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
Iterator<T> it = list.iterator();
while (it.hasNext()) {
arrayList.add(new C0520Io((String) it.next(), ""));
}
ArrayList arrayList2 = arrayList;
if (!arrayList2.isEmpty()) {
String string = c5929cDi.b.getString(C15715hv.tOB.remittance_search_country_title);
C14957gcv.c((Object) string, "");
String string2 = c5929cDi.b.getString(C15715hv.tOB.remittance_search_nationality_title);
C14957gcv.c((Object) string2, "");
String c = C5929cDi.c(c5929cDi, string, string2);
String string3 = c5929cDi.b.getString(C15715hv.tOB.remittance_search_country_hint);
C14957gcv.c((Object) string3, "");
String string4 = c5929cDi.b.getString(C15715hv.tOB.remittance_search_nationality_hint);
C14957gcv.c((Object) string4, "");
String c2 = C5929cDi.c(c5929cDi, string3, string4);
String string5 = c5929cDi.b.getString(C15715hv.tOB.remittance_search_country_error);
C14957gcv.c((Object) string5, "");
String string6 = c5929cDi.b.getString(C15715hv.tOB.remittance_search_nationality_error);
C14957gcv.c((Object) string6, "");
String c3 = C5929cDi.c(c5929cDi, string5, string6);
C14957gcv.e(arrayList2, "");
hBt.e(new C0511Ih(c, c2, c3, new ArrayList(arrayList2)));
return;
}
String string7 = c5929cDi.b.getString(C15715hv.tOB.error_generic_resource);
C14957gcv.c((Object) string7, "");
C5929cDi.e(c5929cDi, string7);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C5929cDi c5929cDi) {
super(1);
this.e = c5929cDi;
}
}
public static /* synthetic */ void d(C5929cDi c5929cDi, String str, InterfaceC9565dmD.HBt hBt) {
C14957gcv.e(c5929cDi, "");
C14957gcv.e(str, "");
String string = c5929cDi.b.getString(C15715hv.tOB.remittance_search_country_title);
C14957gcv.c((Object) string, "");
String string2 = c5929cDi.b.getString(C15715hv.tOB.remittance_search_nationality_title);
C14957gcv.c((Object) string2, "");
if (!c5929cDi.d) {
string = string2;
}
String string3 = c5929cDi.b.getString(C15715hv.tOB.remittance_search_country_hint);
C14957gcv.c((Object) string3, "");
String string4 = c5929cDi.b.getString(C15715hv.tOB.remittance_search_nationality_hint);
C14957gcv.c((Object) string4, "");
if (!c5929cDi.d) {
string3 = string4;
}
hBt.e(new C0511Ih(string, string3, str, new ArrayList()));
}
public static final /* synthetic */ String c(C5929cDi c5929cDi, String str, String str2) {
return !c5929cDi.d ? str2 : str;
}
public static final /* synthetic */ void d(C5929cDi c5929cDi) {
if (c5929cDi.f != 0) {
c5929cDi.f.ar_();
}
}
public static final /* synthetic */ void e(final C5929cDi c5929cDi, final String str) {
ZI.IeS ieS = new ZI.IeS(c5929cDi, str) { // from class: o.cDm
private String b;
private C5929cDi c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5929cDi.d(this.c, this.b, (InterfaceC9565dmD.HBt) obj);
}
{
this.c = c5929cDi;
this.b = str;
}
};
if (c5929cDi.f != 0) {
ieS.e(c5929cDi.f);
}
}
}