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

160 lines
5.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/* loaded from: classes3.dex */
public final class JBR implements AAN {
private final C0495Hxb a;
final iNy c;
final C17736zNi d;
@InterfaceC13391fZD
public JBR(C0495Hxb c0495Hxb, C17736zNi c17736zNi, iNy iny) {
C14957gcv.e(c0495Hxb, "");
C14957gcv.e(c17736zNi, "");
C14957gcv.e(iny, "");
this.a = c0495Hxb;
this.d = c17736zNi;
this.c = iny;
}
/* loaded from: classes3.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<C0707Mst>, uoJ> {
private JBR c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ uoJ invoke(SingleDataEntity<C0707Mst> singleDataEntity) {
C14851gaI c14851gaI;
C17736zNi c17736zNi = this.c.d;
C0707Mst data = singleDataEntity.getData();
C14957gcv.c(data, "");
C0707Mst c0707Mst = data;
C14957gcv.e(c0707Mst, "");
List<C2375adS> list = c0707Mst.b;
if (list != null) {
List<C2375adS> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (C2375adS c2375adS : list2) {
String str = c2375adS.b;
if (str == null) {
str = "";
}
String str2 = c2375adS.d;
if (str2 == null) {
str2 = "";
}
C14851gaI c14851gaI2 = c2375adS.c;
if (c14851gaI2 == null) {
c14851gaI2 = C14851gaI.c;
}
List<TEN> list3 = c14851gaI2;
C14957gcv.e(list3, "");
ArrayList arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
for (TEN ten : list3) {
String str3 = ten.d;
if (str3 == null) {
str3 = "";
}
String str4 = ten.e;
if (str4 == null) {
str4 = "";
}
arrayList2.add(new C9866drv(str3, str4));
}
arrayList.add(new TAm(str, str2, arrayList2));
}
c14851gaI = arrayList;
} else {
c14851gaI = null;
}
if (c14851gaI == null) {
c14851gaI = C14851gaI.c;
}
uoJ uoj = new uoJ(C14881gav.d((Iterable) c14851gaI));
this.c.c.c = uoj;
return uoj;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(JBR jbr) {
super(1);
this.c = jbr;
}
}
/* loaded from: classes3.dex */
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private JBR e;
@Override // o.InterfaceC14894gbR
public final /* bridge */ /* synthetic */ C14866gag invoke(Throwable th) {
this.e.c.c = null;
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
LWm(JBR jbr) {
super(1);
this.e = jbr;
}
}
@Override // o.AAN
public final void a() {
this.c.c = null;
}
@Override // o.AAN
public final AbstractC13163fSk<uoJ> c(C14007fl c14007fl) {
List<TAm> list;
C14957gcv.e(c14007fl, "");
uoJ uoj = this.c.c;
if (uoj == null || (list = uoj.c) == null || !(!list.isEmpty())) {
C0495Hxb c0495Hxb = this.a;
C14957gcv.e(c14007fl, "");
AbstractC13163fSk<SingleDataEntity<C0707Mst>> appConfigTermsAndConditions = c0495Hxb.e.getAppConfigTermsAndConditions(c14007fl);
final Sts sts = new Sts(this);
AbstractC13163fSk<R> map = appConfigTermsAndConditions.map(new fSS(sts) { // from class: o.nQZ
private InterfaceC14894gbR a;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.a;
C14957gcv.e(interfaceC14894gbR, "");
return (uoJ) interfaceC14894gbR.invoke(obj);
}
{
this.a = sts;
}
});
final LWm lWm = new LWm(this);
AbstractC13163fSk<uoJ> doOnError = map.doOnError(new fSQ(lWm) { // from class: o.bzi
private InterfaceC14894gbR a;
@Override // o.fSQ
public final void c(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.a;
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
{
this.a = lWm;
}
});
C14957gcv.c(doOnError, "");
return doOnError;
}
uoJ uoj2 = this.c.c;
C14957gcv.d(uoj2, "");
AbstractC13163fSk<uoJ> just = AbstractC13163fSk.just(uoj2);
C14957gcv.c(just, "");
return just;
}
}