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, uoJ> { private JBR c; @Override // o.InterfaceC14894gbR public final /* synthetic */ uoJ invoke(SingleDataEntity singleDataEntity) { C14851gaI c14851gaI; C17736zNi c17736zNi = this.c.d; C0707Mst data = singleDataEntity.getData(); C14957gcv.c(data, ""); C0707Mst c0707Mst = data; C14957gcv.e(c0707Mst, ""); List list = c0707Mst.b; if (list != null) { List 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 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 { 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 c(C14007fl c14007fl) { List 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> appConfigTermsAndConditions = c0495Hxb.e.getAppConfigTermsAndConditions(c14007fl); final Sts sts = new Sts(this); AbstractC13163fSk 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 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 just = AbstractC13163fSk.just(uoj2); C14957gcv.c(just, ""); return just; } }