130 lines
4.5 KiB
Java
130 lines
4.5 KiB
Java
|
package o;
|
||
|
|
||
|
import com.prolificinteractive.materialcalendarview.CalendarDay;
|
||
|
import java.util.Calendar;
|
||
|
import o.ZI;
|
||
|
import org.threeten.bp.OffsetDateTime;
|
||
|
|
||
|
/* loaded from: classes4.dex */
|
||
|
public class cEK extends ZI<InterfaceC6641cYs> {
|
||
|
public VS a;
|
||
|
private final BM c;
|
||
|
public int d;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public cEK(C16903sI c16903sI, BM bm) {
|
||
|
super(c16903sI);
|
||
|
this.c = bm;
|
||
|
}
|
||
|
|
||
|
public final CalendarDay a(CalendarDay calendarDay) {
|
||
|
Calendar calendar = calendarDay.getCalendar();
|
||
|
if (this.a.j == null || calendar.compareTo(this.a.j.getCalendar()) >= 0) {
|
||
|
return (this.a.h == null || calendarDay.getCalendar().compareTo(this.a.h.getCalendar()) <= 0) ? calendarDay : this.a.h;
|
||
|
}
|
||
|
return this.a.j;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(cEK cek, CalendarDay calendarDay, InterfaceC6641cYs interfaceC6641cYs) {
|
||
|
BM bm = cek.c;
|
||
|
interfaceC6641cYs.d(BM.e(calendarDay));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(cEK cek, int i, InterfaceC6641cYs interfaceC6641cYs) {
|
||
|
interfaceC6641cYs.c(cek.a);
|
||
|
if (3 == i) {
|
||
|
interfaceC6641cYs.d(cek.a);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(cEK cek, CalendarDay calendarDay, InterfaceC6641cYs interfaceC6641cYs) {
|
||
|
if (3 == cek.d) {
|
||
|
interfaceC6641cYs.d(calendarDay, calendarDay.getMonth(), cek.a.n.indexOf(Integer.valueOf(calendarDay.getYear())));
|
||
|
} else {
|
||
|
interfaceC6641cYs.b(cek.c.b(calendarDay));
|
||
|
}
|
||
|
interfaceC6641cYs.d(!cek.c.b(calendarDay).equals(cek.c.b(cek.a.j)));
|
||
|
interfaceC6641cYs.a(!cek.c.b(calendarDay).equals(cek.c.b(cek.a.h)));
|
||
|
}
|
||
|
|
||
|
public final void e(int i, OffsetDateTime offsetDateTime, OffsetDateTime offsetDateTime2, OffsetDateTime offsetDateTime3, OffsetDateTime offsetDateTime4, boolean z, OffsetDateTime offsetDateTime5, boolean z2) {
|
||
|
CalendarDay calendarDay;
|
||
|
if (this.f != 0) {
|
||
|
this.d = i;
|
||
|
this.a = this.c.a(i, offsetDateTime, offsetDateTime2, offsetDateTime3, offsetDateTime4, z, offsetDateTime5, z2);
|
||
|
ZI.IeS ieS = new ZI.IeS(this, i) { // from class: o.cEP
|
||
|
private int a;
|
||
|
private cEK c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
cEK.a(this.c, this.a, (InterfaceC6641cYs) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
this.a = i;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS.e(this.f);
|
||
|
}
|
||
|
if (this.a.f8415o != null) {
|
||
|
calendarDay = this.a.f8415o;
|
||
|
} else {
|
||
|
calendarDay = this.a.b;
|
||
|
}
|
||
|
C5952cEN c5952cEN = new C5952cEN(this, calendarDay);
|
||
|
if (this.f != 0) {
|
||
|
c5952cEN.e(this.f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void d(CalendarDay calendarDay) {
|
||
|
if (this.f != 0) {
|
||
|
int i = this.d;
|
||
|
if (i == 2) {
|
||
|
ZI.IeS ieS = new ZI.IeS(this, calendarDay) { // from class: o.cEJ
|
||
|
private CalendarDay b;
|
||
|
private cEK c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC6641cYs) obj).d(this.c.c.a((OffsetDateTime) C16157lj.c(new Object[]{this.b.getCalendar()}, 2043012252, -2043012250, (int) System.currentTimeMillis())));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
this.b = calendarDay;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS.e(this.f);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
if (i == 1) {
|
||
|
ZI.IeS ieS2 = new ZI.IeS(this, calendarDay) { // from class: o.cET
|
||
|
private CalendarDay a;
|
||
|
private cEK c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC6641cYs) obj).c(this.c.c.a((OffsetDateTime) C16157lj.c(new Object[]{this.a.getCalendar()}, 2043012252, -2043012250, (int) System.currentTimeMillis())));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
this.a = calendarDay;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS2.e(this.f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|