beeple-toolkit 1.0.25 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7712,29 +7712,29 @@ function Qn(e) {
|
|
|
7712
7712
|
return t.slice(0, 10);
|
|
7713
7713
|
}
|
|
7714
7714
|
function Vc(e) {
|
|
7715
|
-
const t = [], n = e.length, a =
|
|
7716
|
-
if (n <
|
|
7717
|
-
const
|
|
7718
|
-
if (
|
|
7719
|
-
for (let
|
|
7720
|
-
const
|
|
7721
|
-
|
|
7722
|
-
date:
|
|
7723
|
-
day:
|
|
7715
|
+
const t = [], n = e.length, a = Math.ceil(n / 7), o = a * 7, i = [...e];
|
|
7716
|
+
if (n < o && n > 0) {
|
|
7717
|
+
const r = i[i.length - 1];
|
|
7718
|
+
if (r)
|
|
7719
|
+
for (let l = n; l < o; l++) {
|
|
7720
|
+
const u = new Date(r.date);
|
|
7721
|
+
u.setDate(u.getDate() + (l - n + 1)), i.push({
|
|
7722
|
+
date: u,
|
|
7723
|
+
day: u.getDate().toString(),
|
|
7724
7724
|
isCurrentMonth: !1,
|
|
7725
7725
|
isSelected: !1,
|
|
7726
7726
|
isInRange: !1,
|
|
7727
7727
|
isToday: !1,
|
|
7728
|
-
isDisabled:
|
|
7728
|
+
isDisabled: r.isDisabled
|
|
7729
7729
|
});
|
|
7730
7730
|
}
|
|
7731
7731
|
}
|
|
7732
|
-
for (let
|
|
7733
|
-
const
|
|
7734
|
-
let
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
}),
|
|
7732
|
+
for (let r = 0; r < a; r++) {
|
|
7733
|
+
const l = i.slice(r * 7, (r + 1) * 7), u = [];
|
|
7734
|
+
let d = [];
|
|
7735
|
+
l.forEach((c) => {
|
|
7736
|
+
c.isInRange || c.isSelected ? d.push(c) : (d.length > 0 && (u.push({ isRangeGroup: !0, days: d }), d = []), u.push({ isRangeGroup: !1, day: c }));
|
|
7737
|
+
}), d.length > 0 && u.push({ isRangeGroup: !0, days: d }), t.push(u);
|
|
7738
7738
|
}
|
|
7739
7739
|
return t;
|
|
7740
7740
|
}
|