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 = 35, o = [...e];
7716
- if (n < a && n > 0) {
7717
- const i = o[o.length - 1];
7718
- if (i)
7719
- for (let r = n; r < a; r++) {
7720
- const l = new Date(i.date);
7721
- l.setDate(l.getDate() + (r - n + 1)), o.push({
7722
- date: l,
7723
- day: l.getDate().toString(),
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: i.isDisabled
7728
+ isDisabled: r.isDisabled
7729
7729
  });
7730
7730
  }
7731
7731
  }
7732
- for (let i = 0; i < 5; i++) {
7733
- const r = o.slice(i * 7, (i + 1) * 7), l = [];
7734
- let u = [];
7735
- r.forEach((d) => {
7736
- d.isInRange || d.isSelected ? u.push(d) : (u.length > 0 && (l.push({ isRangeGroup: !0, days: u }), u = []), l.push({ isRangeGroup: !1, day: d }));
7737
- }), u.length > 0 && l.push({ isRangeGroup: !0, days: u }), t.push(l);
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
  }