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

273 lines
8.0 KiB
Java

package o;
import java.util.Calendar;
import java.util.List;
import o.PRA;
import o.ZI;
import o.cXG;
import o.cYE;
import o.wRi;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.axq, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public class C3455axq extends ZI<cYE.RVV> {
private C16490om a;
public Say b;
public Sts c;
public IeS d;
public int e;
private List<OffsetDateTime> g;
private C16501or h;
private C16507ot i;
@InterfaceC13391fZD
public C3455axq(C16903sI c16903sI, Say say, C16490om c16490om, C16507ot c16507ot, C16501or c16501or) {
super(c16903sI);
this.b = null;
this.a = null;
this.i = null;
this.h = null;
this.e = 1;
this.j = c16903sI;
this.b = say;
this.a = c16490om;
this.i = c16507ot;
this.h = c16501or;
}
public final void b(boolean z, String str, int i) {
if (z) {
this.b.a(c(b(i), str));
} else {
this.b.d(c(b(i), str));
}
IeS ieS = this.d;
if (ieS != null) {
ieS.dispose();
}
IeS ieS2 = new IeS(this, z);
this.d = ieS2;
Say say = this.b;
say.d(say.i, ieS2);
}
public static Bfm b(String str, String str2) {
return new Bfm(str2, EnumC16550pIx.ALL.status, str);
}
private LEv c(String str, String str2) {
LEv lEv = new LEv();
lEv.c = this.e;
lEv.a = str2;
lEv.b = EnumC16550pIx.ALL.status;
lEv.e = str;
return lEv;
}
public final String b(int i) {
Calendar calendar = Calendar.getInstance();
calendar.set(5, 1);
calendar.set(14, 0);
calendar.set(13, 0);
calendar.set(12, 0);
calendar.set(11, 0);
List<OffsetDateTime> list = this.g;
if (list != null) {
int monthValue = list.get(i).getMonthValue();
int year = this.g.get(i).getYear();
calendar.set(2, monthValue - 1);
calendar.set(1, year);
}
return new cXG.AnonymousClass5("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(calendar.getTime());
}
/* renamed from: o.axq$Sts */
/* loaded from: classes4.dex */
public final class Sts extends wRi.LWm {
private C3455axq a;
private Sts(C3455axq c3455axq) {
this.a = c3455axq;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
guQ.b("onCompleted", new Object[0]);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (this.a.i(th)) {
return;
}
guQ.e(th);
C3455axq c3455axq = this.a;
ZI.IeS ieS = new ZI.IeS() { // from class: o.axx
@Override // o.ZI.IeS
public final void e(Object obj) {
((cYE.RVV) obj).c();
}
};
if (c3455axq.f != 0) {
ieS.e(c3455axq.f);
}
final C0693Mj e = this.a.j.e(th);
C3455axq c3455axq2 = this.a;
ZI.IeS ieS2 = new ZI.IeS(e) { // from class: o.axu
private C0693Mj e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((cYE.RVV) obj).b(this.e.c);
}
{
this.e = e;
}
};
if (c3455axq2.f != 0) {
ieS2.e(c3455axq2.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onNext(Object obj) {
if (obj instanceof C11012eVm) {
C11012eVm c11012eVm = (C11012eVm) obj;
final HY d = this.a.i.d(c11012eVm);
this.a.g = c11012eVm.d;
C3455axq c3455axq = this.a;
ZI.IeS ieS = new ZI.IeS(d) { // from class: o.axt
private HY e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((cYE.RVV) obj2).d(this.e);
}
{
this.e = d;
}
};
if (c3455axq.f != 0) {
ieS.e(c3455axq.f);
return;
}
return;
}
if (obj instanceof C14296fqY) {
C14296fqY c14296fqY = (C14296fqY) obj;
final HZ d2 = this.a.h.d(c14296fqY);
this.a.g = c14296fqY.b;
C3455axq c3455axq2 = this.a;
ZI.IeS ieS2 = new ZI.IeS(d2) { // from class: o.axw
private HZ d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((cYE.RVV) obj2).d(this.d);
}
{
this.d = d2;
}
};
if (c3455axq2.f != 0) {
ieS2.e(c3455axq2.f);
}
}
}
public /* synthetic */ Sts(C3455axq c3455axq, byte b) {
this(c3455axq);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.axq$IeS */
/* loaded from: classes4.dex */
public final class IeS extends wRi.LWm<C16899sGA> {
private final boolean a;
private C3455axq d;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C16899sGA c16899sGA = (C16899sGA) obj;
C3455axq.c(this.d);
final boolean z = this.a;
if (c16899sGA.b.isEmpty()) {
C3455axq c3455axq = this.d;
C3460axv c3460axv = new C3460axv();
if (c3455axq.f != 0) {
c3460axv.e(c3455axq.f);
return;
}
return;
}
final C16490om c16490om = this.d.a;
final HW b = HW.b();
b.d = c16899sGA.c;
b.a = c16899sGA.d;
b.c = c16899sGA.a;
YKU yku = new YKU(c16899sGA.b);
b.b = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c16490om, z) { // from class: o.op
private C16490om b;
private boolean e;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return C16490om.e(this.b, this.e, (C10310eAf) obj2);
}
{
this.b = c16490om;
this.e = z;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
final boolean z2 = c16899sGA.d == c16899sGA.a;
C3455axq c3455axq2 = this.d;
ZI.IeS ieS = new ZI.IeS(b, z2) { // from class: o.axr
private boolean b;
private HW c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((cYE.RVV) obj2).b(this.c, this.b);
}
{
this.c = b;
this.b = z2;
}
};
if (c3455axq2.f != 0) {
ieS.e(c3455axq2.f);
}
}
IeS(C3455axq c3455axq, boolean z) {
this.d = c3455axq;
this.a = z;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (this.d.i(th)) {
return;
}
C3455axq c3455axq = this.d;
C3460axv c3460axv = new C3460axv();
if (c3455axq.f != 0) {
c3460axv.e(c3455axq.f);
}
}
}
static /* synthetic */ void c(C3455axq c3455axq) {
if (c3455axq.f != 0) {
c3455axq.f.aq_();
}
}
}