156 lines
4.5 KiB
Java
156 lines
4.5 KiB
Java
package o;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.ArrayList;
|
|
import java.util.Calendar;
|
|
import java.util.Map;
|
|
import o.C0690Mh;
|
|
import o.ZI;
|
|
import o.aNZ;
|
|
import o.wRi;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class aNZ extends ZI<InterfaceC6619cYL> {
|
|
public C0386Fk a;
|
|
public final C11137eZf b;
|
|
public String c;
|
|
public String d;
|
|
public Calendar e;
|
|
public String g;
|
|
public Calendar h;
|
|
public Map<String, ArrayList<Calendar>> i;
|
|
|
|
@InterfaceC13391fZD
|
|
public aNZ(C16903sI c16903sI, C11137eZf c11137eZf) {
|
|
super(c16903sI);
|
|
this.b = c11137eZf;
|
|
}
|
|
|
|
public static boolean e(Calendar calendar, Calendar calendar2) {
|
|
return calendar.before(calendar2) || calendar.equals(calendar2);
|
|
}
|
|
|
|
public final Calendar c(Calendar calendar) {
|
|
Calendar calendar2 = (Calendar) calendar.clone();
|
|
if (this.b.b.M().equalsIgnoreCase("th")) {
|
|
calendar2.add(1, -543);
|
|
}
|
|
return calendar2;
|
|
}
|
|
|
|
public final String[] b(String str) {
|
|
ArrayList<Calendar> arrayList = this.i.get(str);
|
|
if (arrayList == null) {
|
|
return new String[0];
|
|
}
|
|
String[] strArr = new String[arrayList.size()];
|
|
for (int i = 0; i < arrayList.size(); i++) {
|
|
strArr[i] = new SimpleDateFormat("MMM").format(arrayList.get(i).getTime());
|
|
}
|
|
return strArr;
|
|
}
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class Sts extends wRi.LWm<Pag> {
|
|
private aNZ c;
|
|
private final boolean e;
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final /* synthetic */ void onNext(Object obj) {
|
|
aNZ anz = this.c;
|
|
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.aOn
|
|
private aNZ.Sts e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
((InterfaceC6619cYL) obj2).c(new C0575Jv(r0.c.g, C6583cXR.b(r0.c.a.E, true), r0.c.c, r0.c.d, this.e.e));
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
};
|
|
if (anz.f != 0) {
|
|
ieS.e(anz.f);
|
|
}
|
|
}
|
|
|
|
public Sts(aNZ anz, boolean z) {
|
|
this.c = anz;
|
|
this.e = z;
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
aNZ.a(this.c);
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
aNZ anz = this.c;
|
|
C0690Mh.IeS ieS = C0690Mh.IeS.JUST_DISMISS;
|
|
if (anz.b(th)) {
|
|
anz.d(anz.j.b(th, ieS));
|
|
}
|
|
}
|
|
|
|
@Override // o.AbstractC13403fZf
|
|
public final void c() {
|
|
aNZ anz = this.c;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.aOl
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC6619cYL) obj).y();
|
|
}
|
|
};
|
|
if (anz.f != 0) {
|
|
ieS.e(anz.f);
|
|
}
|
|
super.c();
|
|
}
|
|
}
|
|
|
|
public final void e(int i, String str) {
|
|
ArrayList<Calendar> arrayList = this.i.get(str.trim());
|
|
if (arrayList != null) {
|
|
this.h = arrayList.get(i);
|
|
}
|
|
}
|
|
|
|
public final void b(int i, String str) {
|
|
ArrayList<Calendar> arrayList = this.i.get(str.trim());
|
|
if (arrayList != null) {
|
|
this.e = arrayList.get(i);
|
|
}
|
|
}
|
|
|
|
@Override // o.ZI
|
|
public final void w_() {
|
|
super.w_();
|
|
C11137eZf c11137eZf = this.b;
|
|
if (c11137eZf.h.isDisposed()) {
|
|
return;
|
|
}
|
|
c11137eZf.h.dispose();
|
|
}
|
|
|
|
static /* synthetic */ void a(aNZ anz) {
|
|
if (anz.f != 0) {
|
|
anz.f.ar_();
|
|
}
|
|
}
|
|
|
|
public final String b() {
|
|
return this.a.w.d().equalsIgnoreCase(ZGL.TYPE_LONG_TERM.d()) ? "Long Term" : this.a.w.d().equalsIgnoreCase(ZGL.TYPE_FIXED.d()) ? "Fixed" : this.a.w.d().equalsIgnoreCase(ZGL.TYPE_SAVING.d()) ? "Savings" : this.a.w.d().equalsIgnoreCase(ZGL.TYPE_CURRENT.d()) ? "Current" : "Unknown";
|
|
}
|
|
|
|
public final String c() {
|
|
Calendar calendar = this.h;
|
|
Calendar calendar2 = this.e;
|
|
Calendar calendar3 = Calendar.getInstance();
|
|
calendar3.setTime(calendar2.getTime());
|
|
calendar3.add(2, 1);
|
|
return String.valueOf(((calendar3.get(1) - calendar.get(1)) * 12) + (calendar3.get(2) - calendar.get(2)));
|
|
}
|
|
}
|