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

369 lines
11 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.text.TextUtils;
import com.scb.phone.domain.errors.RetrofitException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import o.PRA;
import o.ZI;
import o.bII;
import o.wRi;
/* loaded from: classes4.dex */
public class bII extends ZI<InterfaceC9369diT> {
public String a;
public final Vkn b;
public C0405Fw c;
public String d;
public final vij e;
public Boolean g;
public PQ h;
public String i;
public String k;
public List<String> l;
public String m;
public String n;
/* renamed from: o, reason: collision with root package name */
public String f8542o;
public String p;
public final C17392wQA q;
public final OfL r;
public final wDa s;
public final C1429aDv t;
private final C17342vu u;
private final C16127lV w;
@InterfaceC13391fZD
public bII(OfL ofL, Vkn vkn, vij vijVar, C1429aDv c1429aDv, C17392wQA c17392wQA, wDa wda, C17342vu c17342vu, C16127lV c16127lV, C16903sI c16903sI) {
super(c16903sI);
this.l = Arrays.asList("U", "M", "D", "W");
this.r = ofL;
this.b = vkn;
this.e = vijVar;
this.t = c1429aDv;
this.q = c17392wQA;
this.s = wda;
this.u = c17342vu;
this.w = c16127lV;
}
@Override // o.ZI
public final void w_() {
super.w_();
Vkn vkn = this.b;
if (!vkn.h.isDisposed()) {
vkn.h.dispose();
}
OfL ofL = this.r;
if (!ofL.h.isDisposed()) {
ofL.h.dispose();
}
vij vijVar = this.e;
if (vijVar.h.isDisposed()) {
return;
}
vijVar.h.dispose();
}
/* renamed from: o.bII$1, reason: invalid class name */
/* loaded from: classes4.dex */
public class AnonymousClass1 extends wRi.LWm<zwR> {
private bII b;
public AnonymousClass1(bII bii) {
this.b = bii;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
zwR zwr = (zwR) obj;
List<C0405Fw> d = this.b.w.d(zwr);
ArrayList arrayList = new ArrayList();
Iterator<C0405Fw> it = d.iterator();
while (it.hasNext()) {
arrayList.add(it.next().d);
}
this.b.c = new C0405Fw();
this.b.c.c = arrayList;
this.b.c.a = zwr.a;
bII bii = this.b;
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.bIW
private bII.AnonymousClass1 e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9369diT) obj2).c(this.e.b.c);
}
{
this.e = this;
}
};
if (bii.f != 0) {
ieS.e(bii.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
bII.b(this.b);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
bII.j(this.b);
bII.d(this.b, th);
}
}
/* renamed from: o.bII$5, reason: invalid class name */
/* loaded from: classes4.dex */
public class AnonymousClass5 extends wRi.LWm<List<iso>> {
private String a;
private bII c;
public AnonymousClass5(bII bii, String str) {
this.c = bii;
this.a = str;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
List<iso> list = (List) obj;
C17342vu unused = this.c.u;
List<PQ> d = C17342vu.d(list, this.a);
ArrayList arrayList = new ArrayList();
HashMap hashMap = new HashMap();
for (PQ pq : d) {
if (!hashMap.containsKey(pq.a)) {
hashMap.put(pq.a, Boolean.TRUE);
arrayList.add(pq);
}
}
YKU yku = new YKU(arrayList);
YKU yku2 = new YKU(yku.a, new C17745zRk(yku.b, new Comparator() { // from class: o.bIX
@Override // java.util.Comparator
public final int compare(Object obj2, Object obj3) {
return bII.AnonymousClass5.b((PQ) obj2, (PQ) obj3);
}
}));
List<String> list2 = (List) new YKU(yku2.a, new wxK(yku2.b, new bDM())).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
this.c.h = PQ.c();
this.c.h.g = list2;
this.c.h.c = list;
bII bii = this.c;
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.bIT
private bII.AnonymousClass5 d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9369diT) obj2).c(this.d.c.h);
}
{
this.d = this;
}
};
if (bii.f != 0) {
ieS.e(bii.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
bII.f(this.c);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
bII.i(this.c);
bII.b(this.c, th);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ int b(PQ pq, PQ pq2) {
int i = pq.b;
int i2 = pq2.b;
return 1;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void c(InterfaceC9369diT interfaceC9369diT) {
interfaceC9369diT.b();
interfaceC9369diT.c(false);
}
public final void d() {
if (!TextUtils.isEmpty(this.p) && !TextUtils.isEmpty(this.a) && !TextUtils.isEmpty(this.i) && this.g != null) {
if (Boolean.TRUE.equals(this.g)) {
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.bIP
private bII c;
@Override // o.ZI.IeS
public final void e(Object obj) {
bII bii = this.c;
((InterfaceC9369diT) obj).c(!TextUtils.isEmpty(bii.k));
}
{
this.c = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS(this) { // from class: o.bIR
private bII e;
@Override // o.ZI.IeS
public final void e(Object obj) {
bII bii = this.e;
((InterfaceC9369diT) obj).c((TextUtils.isEmpty(r1.f8542o) || TextUtils.isEmpty(r1.d)) ? false : true);
}
{
this.e = this;
}
};
if (this.f != 0) {
ieS2.e(this.f);
return;
}
return;
}
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.bIV
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9369diT) obj).c(false);
}
};
if (this.f != 0) {
ieS3.e(this.f);
}
}
/* renamed from: o.bII$4, reason: invalid class name */
/* loaded from: classes4.dex */
public class AnonymousClass4 extends wRi.LWm<Boolean> {
private bII c;
public AnonymousClass4(bII bii) {
this.c = bii;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
bII.h(this.c);
bII bii = this.c;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bJa
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9369diT) obj2).d();
}
};
if (bii.f != 0) {
ieS.e(bii.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (th instanceof RetrofitException) {
RetrofitException retrofitException = (RetrofitException) th;
if (retrofitException.e != null && retrofitException.e.c != null && "3006".equalsIgnoreCase(retrofitException.e.c.e)) {
bII.b(this.c, th, new Runnable(this) { // from class: o.bIY
private bII.AnonymousClass4 d;
@Override // java.lang.Runnable
public final void run() {
bII.AnonymousClass4.c(this.d);
}
{
this.d = this;
}
});
return;
}
}
bII.a(this.c, th);
}
public static /* synthetic */ void c(AnonymousClass4 anonymousClass4) {
bII bii = anonymousClass4.c;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bJc
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9369diT) obj).a();
}
};
if (bii.f != 0) {
ieS.e(bii.f);
}
}
}
static /* synthetic */ void b(bII bii) {
if (bii.f != 0) {
bii.f.ar_();
}
}
static /* synthetic */ void j(bII bii) {
if (bii.f != 0) {
bii.f.ar_();
}
}
static /* synthetic */ void d(bII bii, Throwable th) {
if (bii.b(th)) {
bii.d(bii.j.e(th));
}
}
static /* synthetic */ void f(bII bii) {
if (bii.f != 0) {
bii.f.ar_();
}
}
static /* synthetic */ void i(bII bii) {
if (bii.f != 0) {
bii.f.ar_();
}
}
static /* synthetic */ void b(bII bii, Throwable th) {
if (bii.b(th)) {
bii.d(bii.j.e(th));
}
}
static /* synthetic */ void h(bII bii) {
if (bii.f != 0) {
bii.f.ar_();
}
}
static /* synthetic */ void b(bII bii, Throwable th, Runnable runnable) {
if (bii.b(th)) {
bii.d(bii.j.c(th, runnable));
}
}
static /* synthetic */ void a(bII bii, Throwable th) {
if (bii.b(th)) {
bii.d(bii.j.e(th));
}
}
}