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

227 lines
6.8 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import o.C0690Mh;
import o.InterfaceC9319dhW;
import o.ZI;
/* renamed from: o.byt */
/* loaded from: classes4.dex */
public final class C5749byt extends ZI<InterfaceC9319dhW.IeS> {
private List<C0800Ov> a;
public final C15771iW e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C5749byt(C15771iW c15771iW, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c15771iW, "");
C14957gcv.e(c16903sI, "");
this.e = c15771iW;
}
/* renamed from: o.byt$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, "");
C5749byt.d((C5749byt) this.f, th2);
return C14866gag.c;
}
public HBt(Object obj) {
super(1, obj, C5749byt.class, "onGetPortfolioSummaryError", "onGetPortfolioSummaryError(Ljava/lang/Throwable;)V");
}
}
/* renamed from: o.byt$Sts */
/* loaded from: classes4.dex */
public final /* synthetic */ class Sts extends C14954gcs implements InterfaceC14894gbR<C0803Ox, C14866gag> {
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C0803Ox c0803Ox) {
C0803Ox c0803Ox2 = c0803Ox;
C14957gcv.e(c0803Ox2, "");
C5749byt.b((C5749byt) this.f, c0803Ox2);
return C14866gag.c;
}
public Sts(Object obj) {
super(1, obj, C5749byt.class, "onGetPortfolioSummarySuccess", "onGetPortfolioSummarySuccess(Lcom/scb/phone/presentation/model/display/insurance/PortfolioSummaryDisplay;)V");
}
}
public final void b(C0800Ov c0800Ov) {
C14851gaI c14851gaI;
C14957gcv.e(c0800Ov, "");
List<C0800Ov> list = this.a;
if (list != null) {
List<C0800Ov> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (C0800Ov c0800Ov2 : list2) {
arrayList.add(C0800Ov.e(c0800Ov2, c0800Ov2.b == c0800Ov.b));
}
c14851gaI = arrayList;
} else {
c14851gaI = null;
}
if (c14851gaI == null) {
c14851gaI = C14851gaI.c;
}
if (!c14851gaI.isEmpty()) {
this.a = c14851gaI;
ZI.IeS ieS = new ZI.IeS(c14851gaI) { // from class: o.byx
private List d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5749byt.e(this.d, (InterfaceC9319dhW.IeS) obj);
}
{
this.d = c14851gaI;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
List<C0804Oy> list3 = c0800Ov.a;
List<C0804Oy> list4 = list3;
if (true ^ list4.isEmpty()) {
ZI.IeS ieS2 = new ZI.IeS(list3) { // from class: o.byD
private List e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5749byt.b(this.e, (InterfaceC9319dhW.IeS) obj);
}
{
this.e = list3;
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
a(list4.size());
C0804Oy c0804Oy = list3.get(0);
C14957gcv.e(c0804Oy, "");
C5752byw c5752byw = new C5752byw(0, c0804Oy);
if (this.f != 0) {
c5752byw.e(this.f);
}
}
}
}
private final void a(int i) {
if (i > 0 && i < 11) {
ZI.IeS ieS = new ZI.IeS(i) { // from class: o.byo
private int a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9319dhW.IeS) obj).b(this.a);
}
{
this.a = i;
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.byy
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9319dhW.IeS) obj).c();
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
@Override // o.ZI
public final void w_() {
super.w_();
this.e.a();
}
/* renamed from: o.byt$RVV */
/* loaded from: classes4.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
public static /* synthetic */ void b(List list, InterfaceC9319dhW.IeS ieS) {
C14957gcv.e(list, "");
ieS.d((List<C0804Oy>) list);
}
public static /* synthetic */ void e(List list, InterfaceC9319dhW.IeS ieS) {
C14957gcv.e(list, "");
ieS.b((List<C0800Ov>) list);
}
public static /* synthetic */ void d(int i, C0804Oy c0804Oy, InterfaceC9319dhW.IeS ieS) {
C14957gcv.e(c0804Oy, "");
ieS.d(i, c0804Oy);
}
public static final /* synthetic */ void d(C5749byt c5749byt, Throwable th) {
if (c5749byt.f != 0) {
c5749byt.f.ar_();
}
C5751byv c5751byv = new C5751byv();
if (c5749byt.f != 0) {
c5751byv.e(c5749byt.f);
}
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c5749byt.b(th)) {
c5749byt.d(c5749byt.j.d(th, ieS));
}
}
public static final /* synthetic */ void b(C5749byt c5749byt, C0803Ox c0803Ox) {
if (c5749byt.f != 0) {
c5749byt.f.ar_();
}
List<C0800Ov> list = c0803Ox.a;
c5749byt.a = list;
if (!list.isEmpty()) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.byu
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9319dhW.IeS) obj).d();
}
};
if (c5749byt.f != 0) {
ieS.e(c5749byt.f);
}
c5749byt.b(list.get(0));
return;
}
C5751byv c5751byv = new C5751byv();
if (c5749byt.f != 0) {
c5751byv.e(c5749byt.f);
}
}
static {
new RVV((byte) 0);
}
}