144 lines
4.0 KiB
Java
144 lines
4.0 KiB
Java
package o;
|
|
|
|
import com.scb.phone.domain.errors.RetrofitException;
|
|
import java.util.List;
|
|
import java.util.function.Consumer;
|
|
import o.C0690Mh;
|
|
import o.ZI;
|
|
import o.wRi;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class bSM extends ZI<cZU> {
|
|
public boolean a;
|
|
private final C17603yF b;
|
|
public final QAJ c;
|
|
|
|
@InterfaceC13391fZD
|
|
public bSM(C16903sI c16903sI, QAJ qaj, C17603yF c17603yF) {
|
|
super(c16903sI);
|
|
this.c = qaj;
|
|
this.b = c17603yF;
|
|
}
|
|
|
|
@Override // o.ZI
|
|
public final void w_() {
|
|
super.w_();
|
|
QAJ qaj = this.c;
|
|
if (qaj.h.isDisposed()) {
|
|
return;
|
|
}
|
|
qaj.h.dispose();
|
|
}
|
|
|
|
public static List<C1003Tl> e(List<C1003Tl> list) {
|
|
if (list == null || list.isEmpty()) {
|
|
return null;
|
|
}
|
|
list.forEach(new Consumer() { // from class: o.bSL
|
|
@Override // java.util.function.Consumer
|
|
public final void accept(Object obj) {
|
|
((C1003Tl) obj).e = false;
|
|
}
|
|
});
|
|
return list;
|
|
}
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class RVV extends wRi.LWm<C2414aeE> {
|
|
private bSM d;
|
|
|
|
private RVV(bSM bsm) {
|
|
this.d = bsm;
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final /* synthetic */ void onNext(Object obj) {
|
|
final List list = (List) C16157lj.c(new Object[]{((C2414aeE) obj).d, new C16164ln(this.d.b, true)}, -1846295624, 1846295631, (int) System.currentTimeMillis());
|
|
if (list == null || list.isEmpty()) {
|
|
bSM bsm = this.d;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.bSR
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
((cZU) obj2).d();
|
|
}
|
|
};
|
|
if (bsm.f != 0) {
|
|
ieS.e(bsm.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
bSM bsm2 = this.d;
|
|
ZI.IeS ieS2 = new ZI.IeS(list) { // from class: o.bSU
|
|
private List d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
((cZU) obj2).a(this.d);
|
|
}
|
|
|
|
{
|
|
this.d = list;
|
|
}
|
|
};
|
|
if (bsm2.f != 0) {
|
|
ieS2.e(bsm2.f);
|
|
}
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onError(final Throwable th) {
|
|
bSM bsm = this.d;
|
|
ZI.IeS ieS = new ZI.IeS(th) { // from class: o.bSO
|
|
private Throwable d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((cZU) obj).a();
|
|
}
|
|
|
|
{
|
|
this.d = th;
|
|
}
|
|
};
|
|
if (bsm.f != 0) {
|
|
ieS.e(bsm.f);
|
|
}
|
|
if (th instanceof RetrofitException) {
|
|
RetrofitException retrofitException = (RetrofitException) th;
|
|
if (retrofitException.e != null && "1601".equals(retrofitException.e.c.e)) {
|
|
bSM.b(this.d, th, C0690Mh.IeS.NAVIGATE_BACK);
|
|
return;
|
|
}
|
|
}
|
|
if (this.d.a) {
|
|
bSM.e(this.d, th, C0690Mh.IeS.NAVIGATE_BACK);
|
|
} else {
|
|
bSM.b(this.d, th);
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ RVV(bSM bsm, byte b) {
|
|
this(bsm);
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void e(bSM bsm, Throwable th, C0690Mh.IeS ieS) {
|
|
if (bsm.b(th)) {
|
|
bsm.d(bsm.j.d(th, ieS));
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void b(bSM bsm, Throwable th) {
|
|
if (bsm.b(th)) {
|
|
bsm.d(bsm.j.e(th));
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void b(bSM bsm, Throwable th, C0690Mh.IeS ieS) {
|
|
if (bsm.b(th)) {
|
|
bsm.d(bsm.j.d(th, ieS));
|
|
}
|
|
}
|
|
}
|