vue-cal 5.0.1-rc.27 → 5.0.1-rc.28

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.
Files changed (51) hide show
  1. package/dist/i18n/ar.js +1 -1
  2. package/dist/i18n/bg.js +1 -1
  3. package/dist/i18n/bn.js +1 -1
  4. package/dist/i18n/bs.js +1 -1
  5. package/dist/i18n/ca.js +1 -1
  6. package/dist/i18n/cs.js +1 -1
  7. package/dist/i18n/da.js +1 -1
  8. package/dist/i18n/de.js +1 -1
  9. package/dist/i18n/el.js +1 -1
  10. package/dist/i18n/en-gb.js +1 -1
  11. package/dist/i18n/es.js +1 -1
  12. package/dist/i18n/et.js +1 -1
  13. package/dist/i18n/fa.js +1 -1
  14. package/dist/i18n/fi.js +1 -1
  15. package/dist/i18n/fr.js +1 -1
  16. package/dist/i18n/he.js +1 -1
  17. package/dist/i18n/hr.js +1 -1
  18. package/dist/i18n/hu.js +1 -1
  19. package/dist/i18n/id.js +1 -1
  20. package/dist/i18n/is.js +1 -1
  21. package/dist/i18n/it.js +1 -1
  22. package/dist/i18n/ja.js +1 -1
  23. package/dist/i18n/ka.js +1 -1
  24. package/dist/i18n/kaa.js +36 -0
  25. package/dist/i18n/kk.js +40 -0
  26. package/dist/i18n/ko.js +1 -1
  27. package/dist/i18n/ky.js +36 -0
  28. package/dist/i18n/lt.js +1 -1
  29. package/dist/i18n/mn.js +1 -1
  30. package/dist/i18n/nl.js +1 -1
  31. package/dist/i18n/no.js +1 -1
  32. package/dist/i18n/pl.js +1 -1
  33. package/dist/i18n/pt-br.js +1 -1
  34. package/dist/i18n/pt-pt.js +1 -1
  35. package/dist/i18n/ro.js +1 -1
  36. package/dist/i18n/ru.js +1 -1
  37. package/dist/i18n/sk.js +1 -1
  38. package/dist/i18n/sl.js +1 -1
  39. package/dist/i18n/sq.js +1 -1
  40. package/dist/i18n/sr.js +1 -1
  41. package/dist/i18n/sv.js +1 -1
  42. package/dist/i18n/tr.js +1 -1
  43. package/dist/i18n/uk.js +1 -1
  44. package/dist/i18n/uz-cryl.js +36 -0
  45. package/dist/i18n/uz.js +36 -0
  46. package/dist/i18n/vi.js +1 -1
  47. package/dist/i18n/zh-cn.js +1 -1
  48. package/dist/i18n/zh-hk.js +1 -1
  49. package/dist/vue-cal.es.js +250 -250
  50. package/dist/vue-cal.umd.js +3 -3
  51. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { computed as E, reactive as Te, watch as me, toRefs as bt, ref as ie, onBeforeUnmount as Ne, nextTick as Ie, inject as ze, createElementBlock as H, openBlock as V, renderSlot as j, createCommentVNode as U, unref as Y, Fragment as ue, renderList as we, normalizeClass as he, createElementVNode as ve, createVNode as je, Transition as qe, withCtx as I, createBlock as Se, resolveDynamicComponent as xe, mergeProps as re, toHandlers as Xe, normalizeProps as te, onMounted as Ze, toDisplayString as ce, withModifiers as et, normalizeStyle as $e, createTextVNode as Ue, TransitionGroup as tt, createSlots as Ce, useTemplateRef as Tt, useId as Mt, useAttrs as Yt, provide as at, guardReactiveProps as se } from "vue";
2
2
  /**
3
- * vue-cal v5.0.1-rc.27
3
+ * vue-cal v5.0.1-rc.28
4
4
  * (c) 2024-2025 Antoni Andre <antoniandre.web@gmail.com>
5
5
  * @license MIT
6
6
  */
@@ -47,9 +47,9 @@ const ge = {
47
47
  event: {}
48
48
  // All possible event listeners to attach to calendar events.
49
49
  }, k = (O) => O.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
50
- for (const [O, l] of Object.entries(c)) {
50
+ for (const [O, n] of Object.entries(c)) {
51
51
  const [B, G, ae] = O.match(/^on(Cell|Event)(.+)$/) || [];
52
- B && (f[G.toLowerCase()][k(ae).replace(/^-+|-+$/g, "")] = l);
52
+ B && (f[G.toLowerCase()][k(ae).replace(/^-+|-+$/g, "")] = n);
53
53
  }
54
54
  return f;
55
55
  }), u = E(() => {
@@ -59,12 +59,12 @@ const ge = {
59
59
  }), D = E(() => e.hideWeekends || u.value[6] && u.value[7]), F = E(() => {
60
60
  const f = e.datePicker;
61
61
  let k = 0, O = {};
62
- const l = e.views;
63
- return f && !l ? {
62
+ const n = e.views;
63
+ return f && !n ? {
64
64
  month: { ...ge.availableViews.month },
65
65
  year: { ...ge.availableViews.year },
66
66
  years: { ...ge.availableViews.years }
67
- } : (l ? (Array.isArray(l) ? O = l.reduce((B, G) => (typeof G == "string" && ge.availableViews[G] ? B[G] = ge.availableViews[G] : k++, B), {}) : typeof l == "object" && (O = Object.entries(l).reduce((B, [G, ae]) => {
67
+ } : (n ? (Array.isArray(n) ? O = n.reduce((B, G) => (typeof G == "string" && ge.availableViews[G] ? B[G] = ge.availableViews[G] : k++, B), {}) : typeof n == "object" && (O = Object.entries(n).reduce((B, [G, ae]) => {
68
68
  const { cols: ne, rows: de } = ge.availableViews[G];
69
69
  return B[G] = { cols: ae.cols || ne, rows: ae.rows || de }, B;
70
70
  }, {})), k && console.warn("Vue Cal: the provided `views` prop contains invalid views that will be ignored."), Object.keys(O).length || (console.warn("Vue Cal: No valid view in the provided `views` prop. Falling back to default views."), O = { ...ge.availableViews })) : O = { ...ge.availableViews }, O);
@@ -91,8 +91,8 @@ const ge = {
91
91
  }), z = E(() => {
92
92
  var O;
93
93
  const { view: f } = p;
94
- return e.schedules.length && (f.isDay || f.isDays || f.isWeek) && ((O = e.schedules) == null ? void 0 : O.map((l, B) => ({ ...l, id: l.id ?? B + 1 }))) || void 0;
95
- }), s = E(() => {
94
+ return e.schedules.length && (f.isDay || f.isDays || f.isWeek) && ((O = e.schedules) == null ? void 0 : O.map((n, B) => ({ ...n, id: n.id ?? B + 1 }))) || void 0;
95
+ }), l = E(() => {
96
96
  const f = {
97
97
  drag: !0,
98
98
  resize: !0,
@@ -105,7 +105,7 @@ const ge = {
105
105
  return (Array.isArray(k) ? k.includes(f.id) : k) && (f.isMonth && !e.eventsOnMonthView || f.isYear);
106
106
  }), M = E(() => e.allDayEvents && e.time !== !1 && !$.isMonth), d = E(() => e.timeAtCursor && e.time !== !1), v = async (f) => {
107
107
  var O;
108
- let k = /* @__PURE__ */ Object.assign({ "../i18n/ar.json": () => import("./i18n/ar.js").then((l) => l.default), "../i18n/bg.json": () => import("./i18n/bg.js").then((l) => l.default), "../i18n/bn.json": () => import("./i18n/bn.js").then((l) => l.default), "../i18n/bs.json": () => import("./i18n/bs.js").then((l) => l.default), "../i18n/ca.json": () => import("./i18n/ca.js").then((l) => l.default), "../i18n/cs.json": () => import("./i18n/cs.js").then((l) => l.default), "../i18n/da.json": () => import("./i18n/da.js").then((l) => l.default), "../i18n/de.json": () => import("./i18n/de.js").then((l) => l.default), "../i18n/el.json": () => import("./i18n/el.js").then((l) => l.default), "../i18n/en-gb.json": () => import("./i18n/en-gb.js").then((l) => l.default), "../i18n/en-us.json": () => Promise.resolve().then(() => Lt).then((l) => l.default), "../i18n/es.json": () => import("./i18n/es.js").then((l) => l.default), "../i18n/et.json": () => import("./i18n/et.js").then((l) => l.default), "../i18n/fa.json": () => import("./i18n/fa.js").then((l) => l.default), "../i18n/fi.json": () => import("./i18n/fi.js").then((l) => l.default), "../i18n/fr.json": () => import("./i18n/fr.js").then((l) => l.default), "../i18n/he.json": () => import("./i18n/he.js").then((l) => l.default), "../i18n/hr.json": () => import("./i18n/hr.js").then((l) => l.default), "../i18n/hu.json": () => import("./i18n/hu.js").then((l) => l.default), "../i18n/id.json": () => import("./i18n/id.js").then((l) => l.default), "../i18n/is.json": () => import("./i18n/is.js").then((l) => l.default), "../i18n/it.json": () => import("./i18n/it.js").then((l) => l.default), "../i18n/ja.json": () => import("./i18n/ja.js").then((l) => l.default), "../i18n/ka.json": () => import("./i18n/ka.js").then((l) => l.default), "../i18n/ko.json": () => import("./i18n/ko.js").then((l) => l.default), "../i18n/lt.json": () => import("./i18n/lt.js").then((l) => l.default), "../i18n/mn.json": () => import("./i18n/mn.js").then((l) => l.default), "../i18n/nl.json": () => import("./i18n/nl.js").then((l) => l.default), "../i18n/no.json": () => import("./i18n/no.js").then((l) => l.default), "../i18n/pl.json": () => import("./i18n/pl.js").then((l) => l.default), "../i18n/pt-br.json": () => import("./i18n/pt-br.js").then((l) => l.default), "../i18n/pt-pt.json": () => import("./i18n/pt-pt.js").then((l) => l.default), "../i18n/ro.json": () => import("./i18n/ro.js").then((l) => l.default), "../i18n/ru.json": () => import("./i18n/ru.js").then((l) => l.default), "../i18n/sk.json": () => import("./i18n/sk.js").then((l) => l.default), "../i18n/sl.json": () => import("./i18n/sl.js").then((l) => l.default), "../i18n/sq.json": () => import("./i18n/sq.js").then((l) => l.default), "../i18n/sr.json": () => import("./i18n/sr.js").then((l) => l.default), "../i18n/sv.json": () => import("./i18n/sv.js").then((l) => l.default), "../i18n/tr.json": () => import("./i18n/tr.js").then((l) => l.default), "../i18n/uk.json": () => import("./i18n/uk.js").then((l) => l.default), "../i18n/vi.json": () => import("./i18n/vi.js").then((l) => l.default), "../i18n/zh-cn.json": () => import("./i18n/zh-cn.js").then((l) => l.default), "../i18n/zh-hk.json": () => import("./i18n/zh-hk.js").then((l) => l.default) });
108
+ let k = /* @__PURE__ */ Object.assign({ "../i18n/ar.json": () => import("./i18n/ar.js").then((n) => n.default), "../i18n/bg.json": () => import("./i18n/bg.js").then((n) => n.default), "../i18n/bn.json": () => import("./i18n/bn.js").then((n) => n.default), "../i18n/bs.json": () => import("./i18n/bs.js").then((n) => n.default), "../i18n/ca.json": () => import("./i18n/ca.js").then((n) => n.default), "../i18n/cs.json": () => import("./i18n/cs.js").then((n) => n.default), "../i18n/da.json": () => import("./i18n/da.js").then((n) => n.default), "../i18n/de.json": () => import("./i18n/de.js").then((n) => n.default), "../i18n/el.json": () => import("./i18n/el.js").then((n) => n.default), "../i18n/en-gb.json": () => import("./i18n/en-gb.js").then((n) => n.default), "../i18n/en-us.json": () => Promise.resolve().then(() => Lt).then((n) => n.default), "../i18n/es.json": () => import("./i18n/es.js").then((n) => n.default), "../i18n/et.json": () => import("./i18n/et.js").then((n) => n.default), "../i18n/fa.json": () => import("./i18n/fa.js").then((n) => n.default), "../i18n/fi.json": () => import("./i18n/fi.js").then((n) => n.default), "../i18n/fr.json": () => import("./i18n/fr.js").then((n) => n.default), "../i18n/he.json": () => import("./i18n/he.js").then((n) => n.default), "../i18n/hr.json": () => import("./i18n/hr.js").then((n) => n.default), "../i18n/hu.json": () => import("./i18n/hu.js").then((n) => n.default), "../i18n/id.json": () => import("./i18n/id.js").then((n) => n.default), "../i18n/is.json": () => import("./i18n/is.js").then((n) => n.default), "../i18n/it.json": () => import("./i18n/it.js").then((n) => n.default), "../i18n/ja.json": () => import("./i18n/ja.js").then((n) => n.default), "../i18n/ka.json": () => import("./i18n/ka.js").then((n) => n.default), "../i18n/kaa.json": () => import("./i18n/kaa.js").then((n) => n.default), "../i18n/kk.json": () => import("./i18n/kk.js").then((n) => n.default), "../i18n/ko.json": () => import("./i18n/ko.js").then((n) => n.default), "../i18n/ky.json": () => import("./i18n/ky.js").then((n) => n.default), "../i18n/lt.json": () => import("./i18n/lt.js").then((n) => n.default), "../i18n/mn.json": () => import("./i18n/mn.js").then((n) => n.default), "../i18n/nl.json": () => import("./i18n/nl.js").then((n) => n.default), "../i18n/no.json": () => import("./i18n/no.js").then((n) => n.default), "../i18n/pl.json": () => import("./i18n/pl.js").then((n) => n.default), "../i18n/pt-br.json": () => import("./i18n/pt-br.js").then((n) => n.default), "../i18n/pt-pt.json": () => import("./i18n/pt-pt.js").then((n) => n.default), "../i18n/ro.json": () => import("./i18n/ro.js").then((n) => n.default), "../i18n/ru.json": () => import("./i18n/ru.js").then((n) => n.default), "../i18n/sk.json": () => import("./i18n/sk.js").then((n) => n.default), "../i18n/sl.json": () => import("./i18n/sl.js").then((n) => n.default), "../i18n/sq.json": () => import("./i18n/sq.js").then((n) => n.default), "../i18n/sr.json": () => import("./i18n/sr.js").then((n) => n.default), "../i18n/sv.json": () => import("./i18n/sv.js").then((n) => n.default), "../i18n/tr.json": () => import("./i18n/tr.js").then((n) => n.default), "../i18n/uk.json": () => import("./i18n/uk.js").then((n) => n.default), "../i18n/uz-cryl.json": () => import("./i18n/uz-cryl.js").then((n) => n.default), "../i18n/uz.json": () => import("./i18n/uz.js").then((n) => n.default), "../i18n/vi.json": () => import("./i18n/vi.js").then((n) => n.default), "../i18n/zh-cn.json": () => import("./i18n/zh-cn.js").then((n) => n.default), "../i18n/zh-hk.json": () => import("./i18n/zh-hk.js").then((n) => n.default) });
109
109
  {
110
110
  if (!k[`../i18n/${f}.json`]) {
111
111
  console.warn(`Vue Cal: the locale \`${f}\` does not exist. Falling back to \`en-us\`.`), f = "en-us";
@@ -133,7 +133,7 @@ const ge = {
133
133
  maxTimestamp: a,
134
134
  schedules: z,
135
135
  selectedDate: t,
136
- editableEvents: s,
136
+ editableEvents: l,
137
137
  showCellEventCount: A,
138
138
  allDayEvents: M,
139
139
  timeAtCursor: d,
@@ -166,16 +166,16 @@ const ke = Te({ el: null, cell: null, timeout: null }), _e = Te({
166
166
  function Vt(p) {
167
167
  const { config: e, view: c, eventsManager: o, emit: w, uid: $, dateUtils: N } = p, m = (_) => {
168
168
  var v;
169
- const { timeStep: a, timeCellHeight: z, timeFrom: s } = e, A = (((v = _.touches) == null ? void 0 : v[0]) || _).clientY, { top: M } = _.currentTarget.getBoundingClientRect(), d = A - M - ~~_.dataTransfer.getData("cursor-grab-at");
169
+ const { timeStep: a, timeCellHeight: z, timeFrom: l } = e, A = (((v = _.touches) == null ? void 0 : v[0]) || _).clientY, { top: M } = _.currentTarget.getBoundingClientRect(), d = A - M - ~~_.dataTransfer.getData("cursor-grab-at");
170
170
  return Le(Ke(d, _.currentTarget), e);
171
171
  }, P = (_, a, z) => {
172
- const s = a.duration || g(a.start, a.end) || e.timeStep;
172
+ const l = a.duration || g(a.start, a.end) || e.timeStep;
173
173
  let A = Math.max(m(_), 0);
174
174
  if (e.snapToInterval) {
175
175
  const L = A + e.snapToInterval / 2;
176
176
  A = L - L % e.snapToInterval;
177
177
  }
178
- const M = new Date(new Date(z).setMinutes(A)), d = Math.min(A + s, 1440), v = new Date(new Date(z).setMinutes(d));
178
+ const M = new Date(new Date(z).setMinutes(A)), d = Math.min(A + l, 1440), v = new Date(new Date(z).setMinutes(d));
179
179
  return { start: M, end: v };
180
180
  }, g = (_, a) => Math.round((a - _) / 6e4);
181
181
  return {
@@ -192,55 +192,55 @@ function Vt(p) {
192
192
  e: _,
193
193
  event: a
194
194
  });
195
- const s = _.target.closest(".vuecal__event");
196
- s.classList.add("vuecal__event--dragging-ghost"), setTimeout(() => {
197
- s.classList.add("vuecal__event--dragging-original"), s.classList.remove("vuecal__event--dragging-ghost");
195
+ const l = _.target.closest(".vuecal__event");
196
+ l.classList.add("vuecal__event--dragging-ghost"), setTimeout(() => {
197
+ l.classList.add("vuecal__event--dragging-original"), l.classList.remove("vuecal__event--dragging-ghost");
198
198
  }, 0), nt = !1, Object.assign(Re, { id: c.id, date: c.firstCellDate }), Je = !0, p.touch.isDraggingEvent = !0;
199
199
  },
200
200
  eventDragEnd: (_, a) => {
201
201
  _e.eventId = null, _.target.closest(".vuecal__event").classList.remove("vuecal__event--dragging-original");
202
- const { fromVueCal: z, toVueCal: s } = _e;
203
- s && z !== s && o.deleteEvent(a._.id, 3), nt && Je && Re.id && c.switchView(Re.id, Re.date, !0), w("event-drag-end", {
202
+ const { fromVueCal: z, toVueCal: l } = _e;
203
+ l && z !== l && o.deleteEvent(a._.id, 3), nt && Je && Re.id && c.switchView(Re.id, Re.date, !0), w("event-drag-end", {
204
204
  e: _,
205
205
  event: a,
206
206
  external: _e.fromVueCal !== $
207
207
  }), _e.fromVueCal = null, _e.toVueCal = null, p.touch.isDraggingEvent = !1;
208
208
  },
209
209
  cellDragEnter: (_, a) => {
210
- const { start: z } = a, s = _.currentTarget;
210
+ const { start: z } = a, l = _.currentTarget;
211
211
  if (!_.currentTarget.contains(_.relatedTarget)) {
212
- if (s === ke.el || !s.className.includes("vuecal__cell-content")) return !1;
213
- ke.el && (ke.cell.highlighted = !1), Object.assign(ke, { el: s, cell: a, timeout: clearTimeout(ke.timeout) }), a.highlighted = !0, ["years", "year", "month"].includes(c.id) && (ke.timeout = setTimeout(() => p.switchToNarrowerView(z), 2e3));
212
+ if (l === ke.el || !l.className.includes("vuecal__cell-content")) return !1;
213
+ ke.el && (ke.cell.highlighted = !1), Object.assign(ke, { el: l, cell: a, timeout: clearTimeout(ke.timeout) }), a.highlighted = !0, ["years", "year", "month"].includes(c.id) && (ke.timeout = setTimeout(() => p.switchToNarrowerView(z), 2e3));
214
214
  }
215
215
  },
216
216
  cellDragOver: (_, a) => {
217
- const { start: z, schedule: s } = a;
218
- _.preventDefault(), a.highlighted = !0, (s || s === 0) && (a.highlightedSchedule = s);
217
+ const { start: z, schedule: l } = a;
218
+ _.preventDefault(), a.highlighted = !0, (l || l === 0) && (a.highlightedSchedule = l);
219
219
  },
220
220
  cellDragLeave: (_, a) => {
221
221
  _.preventDefault(), !_.currentTarget.contains(_.relatedTarget) && (a.highlightedSchedule = !1, ke.cell === a && (clearTimeout(ke.timeout), Object.assign(ke, { el: null, cell: null, timeout: null }), a.highlighted = !1));
222
222
  },
223
223
  cellDragDrop: async (_, a, z = !1) => {
224
- var O, l, B;
224
+ var O, n, B;
225
225
  _.preventDefault(), clearTimeout(ke.timeout), Object.assign(ke, { el: null, cell: null, timeout: null });
226
- const s = JSON.parse(_.dataTransfer.getData("event") || "{}");
227
- s.start && (s.start = new Date(s.start)), s.end && (s.end = new Date(s.end));
226
+ const l = JSON.parse(_.dataTransfer.getData("event") || "{}");
227
+ l.start && (l.start = new Date(l.start)), l.end && (l.end = new Date(l.end));
228
228
  let A, M, d;
229
- z ? (M = new Date(a.start), d = new Date(a.end)) : { start: M, end: d } = P(_, s, a.start);
229
+ z ? (M = new Date(a.start), d = new Date(a.end)) : { start: M, end: d } = P(_, l, a.start);
230
230
  const { schedule: v } = ((O = _.target.closest("[data-schedule]")) == null ? void 0 : O.dataset) || {};
231
231
  let L = () => {
232
232
  };
233
- _e.fromVueCal === $ ? (A = o.getEvent(s._.id), A && (A._.dragging = !1, L = (G) => {
233
+ _e.fromVueCal === $ ? (A = o.getEvent(l._.id), A && (A._.dragging = !1, L = (G) => {
234
234
  if (A.start = M, A.end = d, A.allDay = z, v !== void 0 && (A.schedule = ~~v), G && typeof G == "object") {
235
235
  const { _: ae, ...ne } = G;
236
236
  Object.assign(A, ne);
237
237
  }
238
238
  })) : (A = {
239
- ...s,
239
+ ...l,
240
240
  start: M,
241
241
  end: d,
242
242
  ...v !== void 0 && { schedule: ~~v },
243
- _: { id: ((l = s._) == null ? void 0 : l.id) || s.id, duration: g(M, d) },
243
+ _: { id: ((n = l._) == null ? void 0 : n.id) || l.id, duration: g(M, d) },
244
244
  getOverlappingEvents: () => o.getEventsInRange(M, d, { schedule: ~~v })
245
245
  }, L = (G) => {
246
246
  if (A = o.createEvent(A), G && typeof G == "object") {
@@ -260,7 +260,7 @@ function Vt(p) {
260
260
  e: _,
261
261
  cell: a,
262
262
  event: A,
263
- originalEvent: s,
263
+ originalEvent: l,
264
264
  external: _e.fromVueCal !== $
265
265
  });
266
266
  }
@@ -269,139 +269,139 @@ function Vt(p) {
269
269
  const lt = (p, e) => {
270
270
  let c, o, w, $ = {}, N = {};
271
271
  const m = ie(p), P = () => {
272
- m.value.today || (m.value = e), Date.prototype.addDays = function(n) {
273
- return F(this, n || 0);
274
- }, Date.prototype.subtractDays = function(n) {
275
- return X(this, n || 0);
276
- }, Date.prototype.addHours = function(n) {
277
- return t(this, n || 0);
278
- }, Date.prototype.subtractHours = function(n) {
279
- return r(this, n || 0);
280
- }, Date.prototype.addMinutes = function(n) {
281
- return _(this, n || 0);
282
- }, Date.prototype.subtractMinutes = function(n) {
283
- return a(this, n || 0);
272
+ m.value.today || (m.value = e), Date.prototype.addDays = function(s) {
273
+ return F(this, s || 0);
274
+ }, Date.prototype.subtractDays = function(s) {
275
+ return X(this, s || 0);
276
+ }, Date.prototype.addHours = function(s) {
277
+ return t(this, s || 0);
278
+ }, Date.prototype.subtractHours = function(s) {
279
+ return r(this, s || 0);
280
+ }, Date.prototype.addMinutes = function(s) {
281
+ return _(this, s || 0);
282
+ }, Date.prototype.subtractMinutes = function(s) {
283
+ return a(this, s || 0);
284
284
  }, Date.prototype.getWeek = function() {
285
- return s(this);
285
+ return l(this);
286
286
  }, Date.prototype.isToday = function() {
287
287
  return A(this);
288
288
  }, Date.prototype.isLeapYear = function() {
289
289
  return v(this);
290
- }, Date.prototype.format = function(n = "YYYY-MM-DD") {
291
- return G(this, n);
292
- }, Date.prototype.formatTime = function(n = "HH:mm") {
293
- return ne(this, n);
290
+ }, Date.prototype.format = function(s = "YYYY-MM-DD") {
291
+ return G(this, s);
292
+ }, Date.prototype.formatTime = function(s = "HH:mm") {
293
+ return ne(this, s);
294
294
  };
295
295
  }, g = () => {
296
296
  delete Date.prototype.addDays, delete Date.prototype.subtractDays, delete Date.prototype.addHours, delete Date.prototype.subtractHours, delete Date.prototype.addMinutes, delete Date.prototype.subtractMinutes, delete Date.prototype.getWeek, delete Date.prototype.isToday, delete Date.prototype.isLeapYear, delete Date.prototype.format, delete Date.prototype.formatTime;
297
- }, u = (n) => {
298
- m.value = n, Date.prototype.subtractDays && P();
299
- }, D = () => (o !== (/* @__PURE__ */ new Date()).getDate() && (c = /* @__PURE__ */ new Date(), o = c.getDate(), w = `${c.getFullYear()}-${c.getMonth()}-${c.getDate()}`), w), F = (n, b) => {
300
- const y = new Date(n.valueOf());
297
+ }, u = (s) => {
298
+ m.value = s, Date.prototype.subtractDays && P();
299
+ }, D = () => (o !== (/* @__PURE__ */ new Date()).getDate() && (c = /* @__PURE__ */ new Date(), o = c.getDate(), w = `${c.getFullYear()}-${c.getMonth()}-${c.getDate()}`), w), F = (s, b) => {
300
+ const y = new Date(s.valueOf());
301
301
  return y.setDate(y.getDate() + b), y;
302
- }, X = (n, b) => {
303
- const y = new Date(n.valueOf());
302
+ }, X = (s, b) => {
303
+ const y = new Date(s.valueOf());
304
304
  return y.setDate(y.getDate() - b), y;
305
- }, t = (n, b) => {
306
- const y = new Date(n.valueOf());
305
+ }, t = (s, b) => {
306
+ const y = new Date(s.valueOf());
307
307
  return y.setHours(y.getHours() + b), y;
308
- }, r = (n, b) => {
309
- const y = new Date(n.valueOf());
308
+ }, r = (s, b) => {
309
+ const y = new Date(s.valueOf());
310
310
  return y.setHours(y.getHours() - b), y;
311
- }, _ = (n, b) => {
312
- const y = new Date(n.valueOf());
311
+ }, _ = (s, b) => {
312
+ const y = new Date(s.valueOf());
313
313
  return y.setMinutes(y.getMinutes() + b), y;
314
- }, a = (n, b) => {
315
- const y = new Date(n.valueOf());
314
+ }, a = (s, b) => {
315
+ const y = new Date(s.valueOf());
316
316
  return y.setMinutes(y.getMinutes() - b), y;
317
- }, z = (n, b) => {
317
+ }, z = (s, b) => {
318
318
  const y = (q) => {
319
319
  const K = q % b;
320
320
  return K !== 0 && (q += K >= b / 2 ? b - K : -K), q;
321
321
  };
322
- if (typeof n == "number") return y(n);
323
- if (n instanceof Date) {
324
- let q = y(n.getMinutes());
325
- q >= 60 && (n.setHours(n.getHours() + 1), q = 0), n.setMinutes(q, 0, 0);
322
+ if (typeof s == "number") return y(s);
323
+ if (s instanceof Date) {
324
+ let q = y(s.getMinutes());
325
+ q >= 60 && (s.setHours(s.getHours() + 1), q = 0), s.setMinutes(q, 0, 0);
326
326
  }
327
- }, s = (n, b = !1) => {
328
- const y = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate())), q = y.getUTCDay() || 7;
327
+ }, l = (s, b = !1) => {
328
+ const y = new Date(Date.UTC(s.getFullYear(), s.getMonth(), s.getDate())), q = y.getUTCDay() || 7;
329
329
  y.setUTCDate(y.getUTCDate() + 4 - q);
330
330
  const K = new Date(Date.UTC(y.getUTCFullYear(), 0, 1));
331
331
  return Math.ceil(((y - K) / 864e5 + 1) / 7) + (b ? 1 : 0);
332
- }, A = (n) => `${n.getFullYear()}-${n.getMonth()}-${n.getDate()}` === D(), M = (n, b) => {
333
- if (!n || !b) return console.warn(`Vue Cal: missing date${n ? "2" : "1"} parameter for comparison with \`isSameDate(date1, date2)\`.`);
334
- if (B(n)) {
332
+ }, A = (s) => `${s.getFullYear()}-${s.getMonth()}-${s.getDate()}` === D(), M = (s, b) => {
333
+ if (!s || !b) return console.warn(`Vue Cal: missing date${s ? "2" : "1"} parameter for comparison with \`isSameDate(date1, date2)\`.`);
334
+ if (B(s)) {
335
335
  if (!B(b)) return console.warn(`Vue Cal: invalid date2 provided for comparison with \`isSameDate(date1, date2)\`: \`${b}\`.`);
336
- } else return console.warn(`Vue Cal: invalid date1 provided for comparison with \`isSameDate(date1, date2)\`: \`${n}\`.`);
337
- return n.getFullYear() === b.getFullYear() && n.getMonth() === b.getMonth() && n.getDate() === b.getDate();
338
- }, d = (n, b, y) => B(n) ? n.getTime() >= b && n.getTime() <= y : console.warn(`Vue Cal: invalid date provided to \`isInRange(date, rangeStart, rangeEnd)\`: \`${n}\`.`), v = (n) => {
339
- const b = n.getFullYear();
336
+ } else return console.warn(`Vue Cal: invalid date1 provided for comparison with \`isSameDate(date1, date2)\`: \`${s}\`.`);
337
+ return s.getFullYear() === b.getFullYear() && s.getMonth() === b.getMonth() && s.getDate() === b.getDate();
338
+ }, d = (s, b, y) => B(s) ? s.getTime() >= b && s.getTime() <= y : console.warn(`Vue Cal: invalid date provided to \`isInRange(date, rangeStart, rangeEnd)\`: \`${s}\`.`), v = (s) => {
339
+ const b = s.getFullYear();
340
340
  return !(b % 400) || b % 100 && !(b % 4);
341
- }, L = (n = null, b) => {
342
- const y = n && new Date(n.valueOf()) || /* @__PURE__ */ new Date(), q = b ? 7 : 6;
341
+ }, L = (s = null, b) => {
342
+ const y = s && new Date(s.valueOf()) || /* @__PURE__ */ new Date(), q = b ? 7 : 6;
343
343
  return y.setDate(y.getDate() - (y.getDay() + q) % 7), y;
344
- }, f = (n) => n instanceof Date ? n : (n.length === 10 && (n += " 00:00"), new Date(n.replace(/-/g, "/"))), k = (n) => n.getHours() * 60 + n.getMinutes(), O = (n, b) => {
345
- typeof n == "string" && (n = n.replace(/-/g, "/")), typeof b == "string" && (b = b.replace(/-/g, "/")), n = new Date(n).setHours(0, 0, 0, 0), b = new Date(b).setHours(0, 0, 1, 0);
346
- const y = (new Date(b).getTimezoneOffset() - new Date(n).getTimezoneOffset()) * 60 * 1e3;
347
- return Math.ceil((b - n - y) / (24 * 3600 * 1e3));
348
- }, l = (n, b, y) => Math.abs(n.getTime() - b.getTime()) <= y * 60 * 1e3, B = (n) => n && n instanceof Date && !isNaN(n), G = (n, b = "YYYY-MM-DD", y = null) => {
349
- if (y || (y = m.value), b || (b = "YYYY-MM-DD"), b === "YYYY-MM-DD") return ae(n);
344
+ }, f = (s) => s instanceof Date ? s : (s.length === 10 && (s += " 00:00"), new Date(s.replace(/-/g, "/"))), k = (s) => s.getHours() * 60 + s.getMinutes(), O = (s, b) => {
345
+ typeof s == "string" && (s = s.replace(/-/g, "/")), typeof b == "string" && (b = b.replace(/-/g, "/")), s = new Date(s).setHours(0, 0, 0, 0), b = new Date(b).setHours(0, 0, 1, 0);
346
+ const y = (new Date(b).getTimezoneOffset() - new Date(s).getTimezoneOffset()) * 60 * 1e3;
347
+ return Math.ceil((b - s - y) / (24 * 3600 * 1e3));
348
+ }, n = (s, b, y) => Math.abs(s.getTime() - b.getTime()) <= y * 60 * 1e3, B = (s) => s && s instanceof Date && !isNaN(s), G = (s, b = "YYYY-MM-DD", y = null) => {
349
+ if (y || (y = m.value), b || (b = "YYYY-MM-DD"), b === "YYYY-MM-DD") return ae(s);
350
350
  $ = {}, N = {};
351
351
  const q = {
352
- YYYY: () => ee(n, y).YYYY,
353
- YY: () => ee(n, y).YY(),
354
- M: () => ee(n, y).M,
355
- MM: () => ee(n, y).MM(),
356
- MMM: () => ee(n, y).MMM(),
357
- MMMM: () => ee(n, y).MMMM(),
358
- MMMMG: () => ee(n, y).MMMMG(),
359
- D: () => ee(n, y).D,
360
- DD: () => ee(n, y).DD(),
361
- S: () => ee(n, y).S(),
362
- d: () => ee(n, y).d,
363
- dd: () => ee(n, y).dd(),
364
- ddd: () => ee(n, y).ddd(),
365
- dddd: () => ee(n, y).dddd(),
366
- HH: () => oe(n, y).HH,
367
- H: () => oe(n, y).H,
368
- hh: () => oe(n, y).hh,
369
- h: () => oe(n, y).h,
370
- am: () => oe(n, y).am,
371
- AM: () => oe(n, y).AM,
372
- mm: () => oe(n, y).mm,
373
- m: () => oe(n, y).m,
374
- s: () => oe(n, y).s
352
+ YYYY: () => ee(s, y).YYYY,
353
+ YY: () => ee(s, y).YY(),
354
+ M: () => ee(s, y).M,
355
+ MM: () => ee(s, y).MM(),
356
+ MMM: () => ee(s, y).MMM(),
357
+ MMMM: () => ee(s, y).MMMM(),
358
+ MMMMG: () => ee(s, y).MMMMG(),
359
+ D: () => ee(s, y).D,
360
+ DD: () => ee(s, y).DD(),
361
+ S: () => ee(s, y).S(),
362
+ d: () => ee(s, y).d,
363
+ dd: () => ee(s, y).dd(),
364
+ ddd: () => ee(s, y).ddd(),
365
+ dddd: () => ee(s, y).dddd(),
366
+ HH: () => oe(s, y).HH,
367
+ H: () => oe(s, y).H,
368
+ hh: () => oe(s, y).hh,
369
+ h: () => oe(s, y).h,
370
+ am: () => oe(s, y).am,
371
+ AM: () => oe(s, y).AM,
372
+ mm: () => oe(s, y).mm,
373
+ m: () => oe(s, y).m,
374
+ s: () => oe(s, y).s
375
375
  };
376
376
  return b.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g, (K, De) => {
377
377
  const i = q[De.replace(/\{|\}/g, "")];
378
378
  return i !== void 0 ? i() : De;
379
379
  });
380
- }, ae = (n) => {
381
- const b = n.getMonth() + 1, y = n.getDate();
382
- return `${n.getFullYear()}-${b < 10 ? "0" : ""}${b}-${y < 10 ? "0" : ""}${y}`;
383
- }, ne = (n, b = "HH:mm", y = null, q = !1) => {
380
+ }, ae = (s) => {
381
+ const b = s.getMonth() + 1, y = s.getDate();
382
+ return `${s.getFullYear()}-${b < 10 ? "0" : ""}${b}-${y < 10 ? "0" : ""}${y}`;
383
+ }, ne = (s, b = "HH:mm", y = null, q = !1) => {
384
384
  let K = !1;
385
385
  if (q) {
386
- const [S, C, T] = [n.getHours(), n.getMinutes(), n.getSeconds()];
386
+ const [S, C, T] = [s.getHours(), s.getMinutes(), s.getSeconds()];
387
387
  S + C + T === 141 && (K = !0);
388
388
  }
389
- if (n instanceof Date && b === "HH:mm") return K ? "24:00" : de(n);
389
+ if (s instanceof Date && b === "HH:mm") return K ? "24:00" : de(s);
390
390
  N = {}, y || (y = m.value);
391
- const De = oe(n, y), i = b.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g, (S, C) => {
391
+ const De = oe(s, y), i = b.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g, (S, C) => {
392
392
  const T = De[C.replace(/\{|\}/g, "")];
393
393
  return T !== void 0 ? T : C;
394
394
  });
395
395
  return K ? i.replace("23:59", "24:00") : i;
396
- }, de = (n) => {
397
- const b = n.getHours(), y = n.getMinutes();
396
+ }, de = (s) => {
397
+ const b = s.getHours(), y = s.getMinutes();
398
398
  return `${(b < 10 ? "0" : "") + b}:${(y < 10 ? "0" : "") + y}`;
399
- }, Z = (n) => {
400
- const b = Math.floor(n / 60).toString().padStart(2, 0), y = (n % 60).toString().padStart(2, 0);
399
+ }, Z = (s) => {
400
+ const b = Math.floor(s / 60).toString().padStart(2, 0), y = (s % 60).toString().padStart(2, 0);
401
401
  return `${b}:${y}`;
402
- }, ye = (n) => {
403
- if (n > 3 && n < 21) return "th";
404
- switch (n % 10) {
402
+ }, ye = (s) => {
403
+ if (s > 3 && s < 21) return "th";
404
+ switch (s % 10) {
405
405
  case 1:
406
406
  return "st";
407
407
  case 2:
@@ -411,9 +411,9 @@ const lt = (p, e) => {
411
411
  default:
412
412
  return "th";
413
413
  }
414
- }, ee = (n, b) => {
414
+ }, ee = (s, b) => {
415
415
  if ($.D) return $;
416
- const y = n.getFullYear(), q = n.getMonth() + 1, K = n.getDate(), i = (n.getDay() - 1 + 7) % 7;
416
+ const y = s.getFullYear(), q = s.getMonth() + 1, K = s.getDate(), i = (s.getDay() - 1 + 7) % 7;
417
417
  return $ = {
418
418
  // Year.
419
419
  YYYY: y,
@@ -449,10 +449,10 @@ const lt = (p, e) => {
449
449
  dddd: () => b.weekDays[i]
450
450
  // Monday to Sunday.
451
451
  }, $;
452
- }, oe = (n, b) => {
452
+ }, oe = (s, b) => {
453
453
  if (N.am) return N;
454
454
  let y, q, K;
455
- n instanceof Date ? (y = n.getHours(), q = n.getMinutes(), K = n.getSeconds()) : (y = Math.floor(n / 60), q = Math.floor(n % 60));
455
+ s instanceof Date ? (y = s.getHours(), q = s.getMinutes(), K = s.getSeconds()) : (y = Math.floor(s / 60), q = Math.floor(s % 60));
456
456
  const De = y % 12 ? y % 12 : 12, i = (b || { am: "am", pm: "pm" })[y === 24 || y < 12 ? "am" : "pm"];
457
457
  return N = {
458
458
  H: y,
@@ -477,7 +477,7 @@ const lt = (p, e) => {
477
477
  addMinutes: _,
478
478
  subtractMinutes: a,
479
479
  snapToInterval: z,
480
- getWeek: s,
480
+ getWeek: l,
481
481
  isToday: A,
482
482
  isSameDate: M,
483
483
  isInRange: d,
@@ -486,7 +486,7 @@ const lt = (p, e) => {
486
486
  stringToDate: f,
487
487
  dateToMinutes: k,
488
488
  countDays: O,
489
- datesInSameTimeStep: l,
489
+ datesInSameTimeStep: n,
490
490
  isValid: B,
491
491
  formatDate: G,
492
492
  formatDateLite: ae,
@@ -498,7 +498,7 @@ const lt = (p, e) => {
498
498
  const { dateUtils: e, config: c } = p;
499
499
  let o = 0;
500
500
  const w = E(() => {
501
- var _, a, z, s, A;
501
+ var _, a, z, l, A;
502
502
  const t = {
503
503
  // A map of events indexed by { YYYY: { MM: { DD: [] } } }.
504
504
  // Each year contains a map of 12 months starting from 1, each containing a map of days starting from 1, each containing an array of event IDs.
@@ -515,7 +515,7 @@ const lt = (p, e) => {
515
515
  for (const M of r) {
516
516
  const d = typeof M.start == "string" || typeof M.end == "string", v = !((_ = M._) != null && _.register) || !M.isOverlapping || !M.delete;
517
517
  let L = !1;
518
- if (!d && ((a = M._) != null && a.cachedStart) && ((z = M._) != null && z.cachedEnd) && (L = M.start.getTime() !== ((s = M._) == null ? void 0 : s.cachedStart) || M.end.getTime() !== ((A = M._) == null ? void 0 : A.cachedEnd)), d || v || L) {
518
+ if (!d && ((a = M._) != null && a.cachedStart) && ((z = M._) != null && z.cachedEnd) && (L = M.start.getTime() !== ((l = M._) == null ? void 0 : l.cachedStart) || M.end.getTime() !== ((A = M._) == null ? void 0 : A.cachedEnd)), d || v || L) {
519
519
  if (!$(M)) continue;
520
520
  N(M), M._.cachedStart = M.start.getTime(), M._.cachedEnd = M.end.getTime();
521
521
  }
@@ -533,16 +533,16 @@ const lt = (p, e) => {
533
533
  }), $ = (t) => !t.start || !t.end ? (console.error("Vue Cal: Event is missing start or end date", t), !1) : (typeof t.start == "string" && (t.start = e.stringToDate(t.start)), typeof t.end == "string" && (t.end = e.stringToDate(t.end)), t.start.setSeconds(0, 0), t.end.getSeconds() >= 59 ? t.end.setMinutes(t.end.getMinutes() + 1, 0, 0) : t.end.setSeconds(0, 0), isNaN(t.start) || isNaN(t.end) || t.end.getTime() < t.start.getTime() ? (isNaN(t.start) ? console.error(`Vue Cal: invalid start date for event "${t.title}".`, t.start) : isNaN(t.end) ? console.error(`Vue Cal: invalid end date for event "${t.title}".`, t.end) : console.error(`Vue Cal: invalid event dates for event "${t.title}". The event ends before it starts.`, t.start, t.end), !1) : !0), N = (t) => {
534
534
  t._ || (t._ = {}), t._.id = t._.id || ++o, t._.multiday = !e.isSameDate(t.start, new Date(t.end.getTime() - 1)), t._.startFormatted = e.formatDate(t.start), t._.startMinutes = ~~e.dateToMinutes(t.start), t._.endMinutes = ~~e.dateToMinutes(t.end);
535
535
  const r = t.start.getHours(), _ = t.start.getMinutes().toString().padStart(2, 0), a = t.end.getHours(), z = t.end.getMinutes().toString().padStart(2, 0);
536
- t._.startTimeFormatted24 = `${r.toString().padStart(2, 0)}:${_}`, t._.startTimeFormatted12 = `${r % 12 || 12}${_ ? `:${_}` : ""} ${r < 12 ? "AM" : "PM"}`, t._.endTimeFormatted24 = `${a.toString().padStart(2, 0)}:${z}`, t._.endTimeFormatted12 = `${a % 12 || 12}${z ? `:${z}` : ""} ${a < 12 ? "AM" : "PM"}`, t._.duration = Math.abs(~~((t.end - t.start) / 6e4)), t.delete || (t.delete = function(s) {
537
- return u(this._.id, s);
538
- }), t._.deleting === void 0 && (t._.deleting = !1), t._.deleted === void 0 && (t._.deleted = !1), t.isOverlapping || (t.isOverlapping = function(s = null) {
539
- return this.getOverlappingEvents(s).length;
540
- }), t.getOverlappingEvents || (t.getOverlappingEvents = function(s = null) {
536
+ t._.startTimeFormatted24 = `${r.toString().padStart(2, 0)}:${_}`, t._.startTimeFormatted12 = `${r % 12 || 12}${_ ? `:${_}` : ""} ${r < 12 ? "AM" : "PM"}`, t._.endTimeFormatted24 = `${a.toString().padStart(2, 0)}:${z}`, t._.endTimeFormatted12 = `${a % 12 || 12}${z ? `:${z}` : ""} ${a < 12 ? "AM" : "PM"}`, t._.duration = Math.abs(~~((t.end - t.start) / 6e4)), t.delete || (t.delete = function(l) {
537
+ return u(this._.id, l);
538
+ }), t._.deleting === void 0 && (t._.deleting = !1), t._.deleted === void 0 && (t._.deleted = !1), t.isOverlapping || (t.isOverlapping = function(l = null) {
539
+ return this.getOverlappingEvents(l).length;
540
+ }), t.getOverlappingEvents || (t.getOverlappingEvents = function(l = null) {
541
541
  var v;
542
- const A = (s == null ? void 0 : s.start) || this.start, M = (s == null ? void 0 : s.end) || this.end, d = (v = c.schedules) != null && v.length ? ~~((s == null ? void 0 : s.schedule) || this.schedule) : null;
542
+ const A = (l == null ? void 0 : l.start) || this.start, M = (l == null ? void 0 : l.end) || this.end, d = (v = c.schedules) != null && v.length ? ~~((l == null ? void 0 : l.schedule) || this.schedule) : null;
543
543
  return F(A, M, { excludeIds: [this._.id], schedule: d });
544
- }), t._.register || (t._.register = (s) => {
545
- t._.$el = s, t._.fireCreated && (p.emit("event-created", t), delete t._.fireCreated);
544
+ }), t._.register || (t._.register = (l) => {
545
+ t._.$el = l, t._.fireCreated && (p.emit("event-created", t), delete t._.fireCreated);
546
546
  }), t._.unregister || (t._.unregister = () => {
547
547
  t._.$el = null, t._.register = null, t.isOverlapping = null, t.getOverlappingEvents = null, t.delete = null;
548
548
  });
@@ -573,61 +573,61 @@ const lt = (p, e) => {
573
573
  if (!_) return console.warn("Vue Cal: Cannot delete event without its ID.");
574
574
  const z = c.events.findIndex((d) => d._.id === _);
575
575
  if (z === -1) return console.warn(`Vue Cal: Cannot delete unknown event \`${_}\`.`);
576
- const s = c.events[z];
577
- if (s.deletable === !1) return console.warn(`Vue Cal: Can't delete event \`${_}\` since it was explicitely set to \`delete: false\`.`);
576
+ const l = c.events[z];
577
+ if (l.deletable === !1) return console.warn(`Vue Cal: Can't delete event \`${_}\` since it was explicitely set to \`delete: false\`.`);
578
578
  switch (r) {
579
579
  case 0:
580
- s._.deleting ? c.events.splice(z, 1) : s._.deleting = !0;
580
+ l._.deleting ? c.events.splice(z, 1) : l._.deleting = !0;
581
581
  break;
582
582
  // Display the delete button.
583
583
  case 1:
584
- s._.deleting = !0;
584
+ l._.deleting = !0;
585
585
  break;
586
586
  // Visual deletion + external DOM event firing.
587
587
  // When explicitly using this stage, the event will be visually deleted but still present in the
588
588
  // source of truth until the cell is unmounted (by navigating away).
589
589
  case 2:
590
- s._.deleted = !0, c.events[z]._.deleted = !0, (M = s._.$el) == null || M.dispatchEvent(new CustomEvent("event-deleted", { detail: s._.id }));
590
+ l._.deleted = !0, c.events[z]._.deleted = !0, (M = l._.$el) == null || M.dispatchEvent(new CustomEvent("event-deleted", { detail: l._.id }));
591
591
  break;
592
592
  // Effective deletion from the source of truth (by default, when unmounting the cell).
593
593
  case 3:
594
- c.events.splice(z, 1), p.emit("update:events", c.events), p.emit("event-delete", s);
594
+ c.events.splice(z, 1), p.emit("update:events", c.events), p.emit("event-delete", l);
595
595
  break;
596
596
  }
597
597
  return !0;
598
598
  }, D = (t, r, _) => {
599
599
  const a = c.allDayEvents ? { allDay: _ } : {}, z = F(t, r, { background: !1, ...a });
600
600
  if (!z.length) return { cellOverlaps: {}, longestStreak: 0 };
601
- const s = {};
601
+ const l = {};
602
602
  let A = [], M = 0;
603
603
  z.sort((d, v) => d.start - v.start || d.end - d.start - (v.end - v.start));
604
604
  for (const d of z) {
605
605
  const v = d._.id;
606
- s[v] || (s[v] = { overlaps: /* @__PURE__ */ new Set(), maxConcurrent: 1, position: 0 }), A = A.filter((l) => l.end > d.start);
607
- const L = A.filter((l) => {
606
+ l[v] || (l[v] = { overlaps: /* @__PURE__ */ new Set(), maxConcurrent: 1, position: 0 }), A = A.filter((n) => n.end > d.start);
607
+ const L = A.filter((n) => {
608
608
  var G;
609
- return (!((G = c.schedules) != null && G.length) || d.schedule === l.schedule) && l.start < d.end;
610
- }), f = new Set(L.map((l) => {
609
+ return (!((G = c.schedules) != null && G.length) || d.schedule === n.schedule) && n.start < d.end;
610
+ }), f = new Set(L.map((n) => {
611
611
  var B;
612
- return ((B = s[l._.id]) == null ? void 0 : B.position) ?? 0;
612
+ return ((B = l[n._.id]) == null ? void 0 : B.position) ?? 0;
613
613
  }));
614
614
  let k = 0;
615
615
  for (; f.has(k); ) k++;
616
- s[v].position = k, A.push(d);
617
- const O = Math.max(1, ...L.map((l) => {
616
+ l[v].position = k, A.push(d);
617
+ const O = Math.max(1, ...L.map((n) => {
618
618
  var B;
619
- return ((B = s[l._.id]) == null ? void 0 : B.maxConcurrent) ?? 1;
619
+ return ((B = l[n._.id]) == null ? void 0 : B.maxConcurrent) ?? 1;
620
620
  }));
621
- s[v].maxConcurrent = Math.max(L.length + 1, O);
622
- for (const l of L)
623
- s[l._.id].overlaps.add(v), s[v].overlaps.add(l._.id), s[l._.id].maxConcurrent = s[v].maxConcurrent;
624
- M = Math.max(M, s[v].maxConcurrent);
621
+ l[v].maxConcurrent = Math.max(L.length + 1, O);
622
+ for (const n of L)
623
+ l[n._.id].overlaps.add(v), l[v].overlaps.add(n._.id), l[n._.id].maxConcurrent = l[v].maxConcurrent;
624
+ M = Math.max(M, l[v].maxConcurrent);
625
625
  }
626
- for (const d in s) s[d].overlaps = [...s[d].overlaps];
627
- return { cellOverlaps: s, longestStreak: M };
628
- }, F = (t, r, { excludeIds: _ = [], schedule: a = null, background: z = !0, allDay: s = !1 } = {}) => {
626
+ for (const d in l) l[d].overlaps = [...l[d].overlaps];
627
+ return { cellOverlaps: l, longestStreak: M };
628
+ }, F = (t, r, { excludeIds: _ = [], schedule: a = null, background: z = !0, allDay: l = !1 } = {}) => {
629
629
  if (!Object.keys(w.value.byId).length) return [];
630
- const A = t.getFullYear(), M = r.getFullYear(), d = t.getMonth() + 1, v = r.getMonth() + 1, L = t.getDate(), f = r.getDate(), k = t.getTime(), O = r.getTime(), l = [], B = new Set(_);
630
+ const A = t.getFullYear(), M = r.getFullYear(), d = t.getMonth() + 1, v = r.getMonth() + 1, L = t.getDate(), f = r.getDate(), k = t.getTime(), O = r.getTime(), n = [], B = new Set(_);
631
631
  for (let G = A; G <= M; G++) {
632
632
  const ae = `${G}`, ne = w.value.byYear[ae];
633
633
  if (!ne) continue;
@@ -635,19 +635,19 @@ const lt = (p, e) => {
635
635
  for (let ye = de; ye <= Z; ye++) {
636
636
  const ee = String(ye).padStart(2, "0"), oe = ne[ee];
637
637
  if (oe)
638
- for (const n in oe) {
639
- const b = +n;
638
+ for (const s in oe) {
639
+ const b = +s;
640
640
  if (G === A && ye === d && b < L || G === M && ye === v && b > f) continue;
641
- const y = oe[n];
641
+ const y = oe[s];
642
642
  if (y != null && y.length)
643
643
  for (let q = 0; q < y.length; q++) {
644
644
  const K = w.value.byId[y[q]];
645
- !K || B.has(K._.id) || a !== null && a !== K.schedule || z === !1 && K.background || c.allDayEvents && (s && !K.allDay || !s && K.allDay) || K.end.getTime() > k && K.start.getTime() < O && l.push(K);
645
+ !K || B.has(K._.id) || a !== null && a !== K.schedule || z === !1 && K.background || c.allDayEvents && (l && !K.allDay || !l && K.allDay) || K.end.getTime() > k && K.start.getTime() < O && n.push(K);
646
646
  }
647
647
  }
648
648
  }
649
649
  }
650
- return l;
650
+ return n;
651
651
  };
652
652
  return {
653
653
  events: w,
@@ -658,8 +658,8 @@ const lt = (p, e) => {
658
658
  createEvent: g,
659
659
  deleteEvent: u,
660
660
  isEventInRange: (t, r, _) => {
661
- const a = t.allDay || !c.time, z = a ? new Date(t.start).setHours(0, 0, 0, 0) : t.start.getTime(), s = a ? new Date(t.end).setHours(23, 59, 59, 999) : t.end.getTime(), A = a ? new Date(r).setHours(0, 0, 0, 0) : r.getTime(), M = a ? new Date(_).setHours(23, 59, 59, 999) : _.getTime();
662
- return s > A && z < M;
661
+ const a = t.allDay || !c.time, z = a ? new Date(t.start).setHours(0, 0, 0, 0) : t.start.getTime(), l = a ? new Date(t.end).setHours(23, 59, 59, 999) : t.end.getTime(), A = a ? new Date(r).setHours(0, 0, 0, 0) : r.getTime(), M = a ? new Date(_).setHours(23, 59, 59, 999) : _.getTime();
662
+ return l > A && z < M;
663
663
  }
664
664
  };
665
665
  }, jt = ({ config: p, dateUtils: e, emit: c, texts: o, eventsManager: w }, $) => {
@@ -683,7 +683,7 @@ const lt = (p, e) => {
683
683
  function z() {
684
684
  g.value = /* @__PURE__ */ new Date(), F = setTimeout(z, 60 * 1e3);
685
685
  }
686
- function s() {
686
+ function l() {
687
687
  F = setTimeout(z, (60 - (/* @__PURE__ */ new Date()).getSeconds()) * 1e3), z();
688
688
  }
689
689
  const A = E(() => {
@@ -739,7 +739,7 @@ const lt = (p, e) => {
739
739
  }), f = E(() => L.value[L.value.length - 1].end), k = ie("right"), O = E(() => {
740
740
  const h = Object.keys(p.availableViews);
741
741
  return h[h.indexOf(m.value) + 1];
742
- }), l = E(() => {
742
+ }), n = E(() => {
743
743
  const h = Object.keys(p.availableViews);
744
744
  return h[h.indexOf(m.value) - 1];
745
745
  });
@@ -828,12 +828,12 @@ const lt = (p, e) => {
828
828
  O.value ? Z(O.value) : console.warn("Vue Cal: no broader view is available.");
829
829
  }
830
830
  function ee() {
831
- l.value ? Z(l.value) : console.warn("Vue Cal: no narrower view is available.");
831
+ n.value ? Z(n.value) : console.warn("Vue Cal: no narrower view is available.");
832
832
  }
833
833
  function oe() {
834
834
  b(!1);
835
835
  }
836
- function n() {
836
+ function s() {
837
837
  b(!0);
838
838
  }
839
839
  function b(h = !0) {
@@ -904,12 +904,12 @@ const lt = (p, e) => {
904
904
  return me(() => p.view, (h) => Z(h, !1)), me(() => p.availableViews, de), me(() => p.datePicker, () => Z("month")), me(() => p.viewDate, (h) => q(h, !1)), me(() => p.selectedDate, (h) => K(h, !1)), me(() => p.startWeekOnSunday, (h) => De(h)), me(() => p.hideWeekends, (h) => i(h)), me(() => p.hideWeekdays, S), me(() => d.value, () => {
905
905
  d.value > 90 && console.warn("Vue Cal: high cell count detected. Performance may degrade when interactions are enabled.");
906
906
  }), me(() => p.watchRealTime, (h) => {
907
- h && p.time ? s() : F = clearTimeout(F);
908
- }), ne(), p.time && p.watchRealTime && s(), Ne(() => F = clearTimeout(F)), {
907
+ h && p.time ? l() : F = clearTimeout(F);
908
+ }), ne(), p.time && p.watchRealTime && l(), Ne(() => F = clearTimeout(F)), {
909
909
  now: g,
910
910
  id: m,
911
911
  broaderView: O,
912
- narrowerView: l,
912
+ narrowerView: n,
913
913
  title: ae,
914
914
  viewDate: u,
915
915
  start: X,
@@ -934,7 +934,7 @@ const lt = (p, e) => {
934
934
  broader: ye,
935
935
  narrower: ee,
936
936
  previous: oe,
937
- next: n,
937
+ next: s,
938
938
  navigate: b,
939
939
  goToToday: y,
940
940
  updateViewDate: q,
@@ -1338,33 +1338,33 @@ const lt = (p, e) => {
1338
1338
  u.fromResizer = v.target.matches(".vuecal__event-resizer, .vuecal__event-resizer *");
1339
1339
  const L = P.value.getBoundingClientRect();
1340
1340
  u.startX = (((k = d.touches) == null ? void 0 : k[0]) || d).clientX - L.left, u.startY = (((O = d.touches) == null ? void 0 : O[0]) || d).clientY - L.top, u.startPercentageX = u.startX * 100 / L.width, u.startPercentageY = u.startY * 100 / L.height, u.cellEl = P.value.closest(".vuecal__cell"), u.resizeStartDate = g.start, M(d.type === "touchstart" ? "touchmove" : "mousemove", a, { passive: !u.fromResizer }), M(d.type === "touchstart" ? "touchend" : "mouseup", z, { once: !0 }), u.holdTimer = setTimeout(() => {
1341
- var l, B;
1342
- u.holding = !0, (B = (l = r.value).hold) == null || B.call(l, { e: d, event: g });
1341
+ var n, B;
1342
+ u.holding = !0, (B = (n = r.value).hold) == null || B.call(n, { e: d, event: g });
1343
1343
  }, 1e3);
1344
1344
  }, a = async (d) => {
1345
1345
  var L, f, k, O;
1346
1346
  const v = ((L = d.touches) == null ? void 0 : L[0]) || d;
1347
1347
  if (u.fromResizer && !u.resizing && (u.resizing = !0, u.resizingOriginalEvent = { ...g, _: { ...g._ } }, $.isResizingEvent = !0, (k = (f = r.value)["resize-start"]) == null || k.call(f, { e: d, event: g })), u.holdTimer = clearTimeout(u.holdTimer), u.holding = !1, u.cellEl) {
1348
- const { top: l, left: B, width: G, height: ae } = u.cellEl.getBoundingClientRect();
1349
- u.moveX = v.clientX - B, u.moveY = v.clientY - l, u.movePercentageX = u.moveX * 100 / G, u.movePercentageY = u.moveY * 100 / ae;
1348
+ const { top: n, left: B, width: G, height: ae } = u.cellEl.getBoundingClientRect();
1349
+ u.moveX = v.clientX - B, u.moveY = v.clientY - n, u.movePercentageX = u.moveX * 100 / G, u.movePercentageY = u.moveY * 100 / ae;
1350
1350
  }
1351
1351
  if (u.fromResizer) {
1352
- const { newStart: l, newEnd: B } = s(g);
1352
+ const { newStart: n, newEnd: B } = l(g);
1353
1353
  let G = !0;
1354
1354
  const { resize: ae } = (O = c.eventListeners) == null ? void 0 : O.event;
1355
1355
  ae && (G = await ae({
1356
1356
  e: d,
1357
- event: { ...g, start: l, end: B },
1358
- overlaps: g.getOverlappingEvents({ start: l, end: B })
1359
- })), G !== !1 ? (g.start = l, g.end = B, u.resizingLastAcceptedEvent && (u.resizingLastAcceptedEvent = null), d.preventDefault()) : ae && (u.resizingLastAcceptedEvent = { ...g, _: { ...g._ } });
1357
+ event: { ...g, start: n, end: B },
1358
+ overlaps: g.getOverlappingEvents({ start: n, end: B })
1359
+ })), G !== !1 ? (g.start = n, g.end = B, u.resizingLastAcceptedEvent && (u.resizingLastAcceptedEvent = null), d.preventDefault()) : ae && (u.resizingLastAcceptedEvent = { ...g, _: { ...g._ } });
1360
1360
  }
1361
1361
  }, z = async (d) => {
1362
1362
  var v, L;
1363
1363
  if (u.holdTimer = clearTimeout(u.holdTimer), u.holding = !1, u.resizing) {
1364
- const { newStart: f, newEnd: k } = s(g);
1364
+ const { newStart: f, newEnd: k } = l(g);
1365
1365
  let O = !0;
1366
- const l = r.value["resize-end"];
1367
- l && (O = await l({
1366
+ const n = r.value["resize-end"];
1367
+ n && (O = await n({
1368
1368
  e: d,
1369
1369
  event: g,
1370
1370
  original: u.resizingOriginalEvent,
@@ -1373,13 +1373,13 @@ const lt = (p, e) => {
1373
1373
  })), g.start = O === !1 ? (u.resizingLastAcceptedEvent || u.resizingOriginalEvent).start : ((v = u.resizingLastAcceptedEvent) == null ? void 0 : v.start) || f, g.end = O === !1 ? (u.resizingLastAcceptedEvent || u.resizingOriginalEvent).end : ((L = u.resizingLastAcceptedEvent) == null ? void 0 : L.end) || k, g._.duration < 1 && (g.start = u.resizingOriginalEvent.start, g.end = u.resizingOriginalEvent.end), $.isResizingEvent = !1;
1374
1374
  }
1375
1375
  document.removeEventListener(d.type === "touchend" ? "touchmove" : "mousemove", a, { passive: !u.fromResizer }), u.resizing = !1, u.fromResizer = !1, u.dragging = !1, u.startX = 0, u.startY = 0, u.moveX = 0, u.moveY = 0, u.startPercentageX = 0, u.startPercentageY = 0, u.movePercentageX = 0, u.movePercentageY = 0, u.cellEl = null, u.resizeStartDate = null, u.resizingOriginalEvent = null, u.resizingLastAcceptedEvent = null, u.schedule = null;
1376
- }, s = (d) => {
1376
+ }, l = (d) => {
1377
1377
  const v = new Date(d.start.getFullYear(), d.start.getMonth(), d.start.getDate());
1378
1378
  new Date(v).setDate(v.getDate() + 1);
1379
1379
  let f = Le(u.movePercentageY, c);
1380
1380
  if (f = Math.max(0, Math.min(f, 1440)), c.snapToInterval) {
1381
- const l = f + c.snapToInterval / 2;
1382
- f = l - l % c.snapToInterval;
1381
+ const n = f + c.snapToInterval / 2;
1382
+ f = n - n % c.snapToInterval;
1383
1383
  }
1384
1384
  let k = d.start, O = new Date(v.getTime() + f * 6e4);
1385
1385
  return O < u.resizeStartDate && (k = O, O = u.resizeStartDate), { newStart: k, newEnd: O };
@@ -1514,7 +1514,7 @@ const lt = (p, e) => {
1514
1514
  end: $.formatMinutes(T),
1515
1515
  ...r.schedule ? { schedule: r.schedule } : {}
1516
1516
  };
1517
- }), s = E(() => {
1517
+ }), l = E(() => {
1518
1518
  const i = w.editableEvents.create && (r.dragging || _.value), S = w.eventCreateMinDrag && r.thresholdPassed || !w.eventCreateMinDrag, C = r.canTouchAndDrag !== !1;
1519
1519
  return i && S && C;
1520
1520
  }), A = E(() => {
@@ -1575,7 +1575,7 @@ const lt = (p, e) => {
1575
1575
  i[C] = `vuecal__event--stack-${W + 1}-${T}`;
1576
1576
  }
1577
1577
  return i;
1578
- }), O = E(() => w.showCellEventCount && v.value.length), l = E(() => {
1578
+ }), O = E(() => w.showCellEventCount && v.value.length), n = E(() => {
1579
1579
  var C;
1580
1580
  if (!w.specialHours || o.isMonth || o.isYear || o.isYears || e.allDay) return;
1581
1581
  const i = Ge[e.start.getDay()];
@@ -1624,10 +1624,10 @@ const lt = (p, e) => {
1624
1624
  }, 400);
1625
1625
  }, (w.time && o.isDay || o.isDays || o.isWeek) && (i.touchstart = (T) => {
1626
1626
  var W;
1627
- n(T.e || T), (W = S.touchstart) == null || W.call(S, { e: T, cell: Z.value, cursor: ee.value });
1627
+ s(T.e || T), (W = S.touchstart) == null || W.call(S, { e: T, cell: Z.value, cursor: ee.value });
1628
1628
  }, i.mousedown = (T) => {
1629
1629
  var W;
1630
- n(T.e || T), (W = S.mousedown) == null || W.call(S, { e: T, cell: Z.value, cursor: ee.value });
1630
+ s(T.e || T), (W = S.mousedown) == null || W.call(S, { e: T, cell: Z.value, cursor: ee.value });
1631
1631
  }), S.dblclick && (i.dblclick = (T) => {
1632
1632
  var W;
1633
1633
  (W = S.dblclick) == null || W.call(S, { e: T, cell: Z.value, cursor: ye(T) });
@@ -1656,7 +1656,7 @@ const lt = (p, e) => {
1656
1656
  };
1657
1657
  }), oe = () => {
1658
1658
  o.updateSelectedDate(e.start), w.clickToNavigate && ((o.isMonth || o.isDays || o.isWeek) && w.availableViews.day ? o.switch("day") : o.isYear && w.availableViews.month ? o.switch("month") : o.isYears && w.availableViews.year && o.switch("year")), o.updateViewDate(e.start);
1659
- }, n = (i) => {
1659
+ }, s = (i) => {
1660
1660
  var T, W;
1661
1661
  const S = i.type === "touchstart";
1662
1662
  S ? (r.canTouchAndDrag = !1, r.touchAndDragTimer = setTimeout(() => {
@@ -1683,7 +1683,7 @@ const lt = (p, e) => {
1683
1683
  document.removeEventListener(S ? "touchmove" : "mousemove", b, { passive: !1 }), r.touchAndDragTimer && (clearTimeout(r.touchAndDragTimer), r.touchAndDragTimer = null), r.dragging && ((T = (C = de.value)["drag-end"]) == null || T.call(C, { e: i, cell: Z.value, cursor: ee.value }), P.isDraggingCell = !1, w.editableEvents.create && r.canTouchAndDrag && (_.value = !0, await q(i), _.value = !1)), r.holdTimer = clearTimeout(r.holdTimer), r.holding = !1, r.dragging = !1, r.startX = 0, r.startY = 0, r.moveX = 0, r.moveY = 0, r.startPercentageX = 0, r.startPercentageY = 0, r.movePercentageX = 0, r.movePercentageY = 0, r.thresholdPassed = !1, r.schedule = null, r.canTouchAndDrag = null;
1684
1684
  }, q = async (i) => {
1685
1685
  var pe;
1686
- if (!s.value) return;
1686
+ if (!l.value) return;
1687
1687
  let { start: S, end: C, startMinutes: T, endMinutes: W } = z.value;
1688
1688
  S = new Date(e.start), S.setMinutes(T), C = new Date(e.start), C.setMinutes(W);
1689
1689
  let J = { ...z.value, start: S, end: C };
@@ -1720,7 +1720,7 @@ const lt = (p, e) => {
1720
1720
  key: 0,
1721
1721
  cell: Z.value
1722
1722
  }) : U("", !0),
1723
- l.value ? (V(!0), H(ue, { key: 1 }, we(l.value, (C, T) => (V(), H("div", {
1723
+ n.value ? (V(!0), H(ue, { key: 1 }, we(n.value, (C, T) => (V(), H("div", {
1724
1724
  class: he(["vuecal__special-hours", C.class]),
1725
1725
  style: $e(C.style),
1726
1726
  innerHTML: C.label || ""
@@ -1786,7 +1786,7 @@ const lt = (p, e) => {
1786
1786
  ]),
1787
1787
  _: 2
1788
1788
  }, 1024)) : U("", !0),
1789
- s.value && r.schedule === C.id && !e.allDay ? (V(), H("div", {
1789
+ l.value && r.schedule === C.id && !e.allDay ? (V(), H("div", {
1790
1790
  key: 5,
1791
1791
  class: "vuecal__event-placeholder",
1792
1792
  style: $e(z.value.style)
@@ -1849,7 +1849,7 @@ const lt = (p, e) => {
1849
1849
  ]),
1850
1850
  _: 3
1851
1851
  })) : U("", !0),
1852
- s.value ? (V(), H("div", {
1852
+ l.value ? (V(), H("div", {
1853
1853
  key: 5,
1854
1854
  class: "vuecal__event-placeholder",
1855
1855
  style: $e(z.value.style)
@@ -2234,85 +2234,85 @@ const lt = (p, e) => {
2234
2234
  je(It, null, Ce({ _: 2 }, [
2235
2235
  a.$slots.header ? {
2236
2236
  name: "header",
2237
- fn: I((s) => [
2238
- j(a.$slots, "header", te(se(s)))
2237
+ fn: I((l) => [
2238
+ j(a.$slots, "header", te(se(l)))
2239
2239
  ]),
2240
2240
  key: "0"
2241
2241
  } : void 0,
2242
2242
  !a.$slots.header && a.$slots["previous-button"] ? {
2243
2243
  name: "previous-button",
2244
- fn: I((s) => [
2245
- j(a.$slots, "previous-button", te(se(s)))
2244
+ fn: I((l) => [
2245
+ j(a.$slots, "previous-button", te(se(l)))
2246
2246
  ]),
2247
2247
  key: "1"
2248
2248
  } : void 0,
2249
2249
  !a.$slots.header && a.$slots["next-button"] ? {
2250
2250
  name: "next-button",
2251
- fn: I((s) => [
2252
- j(a.$slots, "next-button", te(se(s)))
2251
+ fn: I((l) => [
2252
+ j(a.$slots, "next-button", te(se(l)))
2253
2253
  ]),
2254
2254
  key: "2"
2255
2255
  } : void 0,
2256
2256
  !a.$slots.header && a.$slots["today-button"] ? {
2257
2257
  name: "today-button",
2258
- fn: I((s) => [
2259
- j(a.$slots, "today-button", te(se(s)))
2258
+ fn: I((l) => [
2259
+ j(a.$slots, "today-button", te(se(l)))
2260
2260
  ]),
2261
2261
  key: "3"
2262
2262
  } : void 0,
2263
2263
  !a.$slots.header && a.$slots.title ? {
2264
2264
  name: "title",
2265
- fn: I((s) => [
2266
- j(a.$slots, "title", te(se(s)))
2265
+ fn: I((l) => [
2266
+ j(a.$slots, "title", te(se(l)))
2267
2267
  ]),
2268
2268
  key: "4"
2269
2269
  } : void 0,
2270
2270
  !a.$slots.header && a.$slots["title.day"] ? {
2271
2271
  name: "title.day",
2272
- fn: I((s) => [
2273
- j(a.$slots, "title.day", te(se(s)))
2272
+ fn: I((l) => [
2273
+ j(a.$slots, "title.day", te(se(l)))
2274
2274
  ]),
2275
2275
  key: "5"
2276
2276
  } : void 0,
2277
2277
  !a.$slots.header && a.$slots["title.days"] ? {
2278
2278
  name: "title.days",
2279
- fn: I((s) => [
2280
- j(a.$slots, "title.days", te(se(s)))
2279
+ fn: I((l) => [
2280
+ j(a.$slots, "title.days", te(se(l)))
2281
2281
  ]),
2282
2282
  key: "6"
2283
2283
  } : void 0,
2284
2284
  !a.$slots.header && a.$slots["title.week"] ? {
2285
2285
  name: "title.week",
2286
- fn: I((s) => [
2287
- j(a.$slots, "title.week", te(se(s)))
2286
+ fn: I((l) => [
2287
+ j(a.$slots, "title.week", te(se(l)))
2288
2288
  ]),
2289
2289
  key: "7"
2290
2290
  } : void 0,
2291
2291
  !a.$slots.header && a.$slots["title.month"] ? {
2292
2292
  name: "title.month",
2293
- fn: I((s) => [
2294
- j(a.$slots, "title.month", te(se(s)))
2293
+ fn: I((l) => [
2294
+ j(a.$slots, "title.month", te(se(l)))
2295
2295
  ]),
2296
2296
  key: "8"
2297
2297
  } : void 0,
2298
2298
  !a.$slots.header && a.$slots["title.year"] ? {
2299
2299
  name: "title.year",
2300
- fn: I((s) => [
2301
- j(a.$slots, "title.year", te(se(s)))
2300
+ fn: I((l) => [
2301
+ j(a.$slots, "title.year", te(se(l)))
2302
2302
  ]),
2303
2303
  key: "9"
2304
2304
  } : void 0,
2305
2305
  !a.$slots.header && a.$slots["title.years"] ? {
2306
2306
  name: "title.years",
2307
- fn: I((s) => [
2308
- j(a.$slots, "title.years", te(se(s)))
2307
+ fn: I((l) => [
2308
+ j(a.$slots, "title.years", te(se(l)))
2309
2309
  ]),
2310
2310
  key: "10"
2311
2311
  } : void 0,
2312
2312
  !a.$slots.header && a.$slots["schedule-heading"] ? {
2313
2313
  name: "schedule-heading",
2314
- fn: I((s) => [
2315
- j(a.$slots, "schedule-heading", te(se(s)))
2314
+ fn: I((l) => [
2315
+ j(a.$slots, "schedule-heading", te(se(l)))
2316
2316
  ]),
2317
2317
  key: "11"
2318
2318
  } : void 0
@@ -2329,16 +2329,16 @@ const lt = (p, e) => {
2329
2329
  D.value ? (V(), Se(wa, { key: 0 }, Ce({ _: 2 }, [
2330
2330
  a.$slots["time-cell"] ? {
2331
2331
  name: "time-cell",
2332
- fn: I((s) => [
2333
- j(a.$slots, "time-cell", te(se(s)))
2332
+ fn: I((l) => [
2333
+ j(a.$slots, "time-cell", te(se(l)))
2334
2334
  ]),
2335
2335
  key: "0"
2336
2336
  } : void 0
2337
2337
  ]), 1024)) : U("", !0),
2338
2338
  Y(m).weekNumbers && Y(P).isMonth ? (V(), H("div", ba, [
2339
- (V(!0), H(ue, null, we(F.value, (s) => (V(), H("div", Ta, [
2339
+ (V(!0), H(ue, null, we(F.value, (l) => (V(), H("div", Ta, [
2340
2340
  j(a.$slots, "week-number", {}, () => [
2341
- ve("small", null, ce(s), 1)
2341
+ ve("small", null, ce(l), 1)
2342
2342
  ])
2343
2343
  ]))), 256))
2344
2344
  ])) : U("", !0),
@@ -2346,29 +2346,29 @@ const lt = (p, e) => {
2346
2346
  je(ya, null, Ce({ _: 2 }, [
2347
2347
  a.$slots["weekday-heading"] ? {
2348
2348
  name: "weekday-heading",
2349
- fn: I((s) => [
2350
- j(a.$slots, "weekday-heading", te(se(s)))
2349
+ fn: I((l) => [
2350
+ j(a.$slots, "weekday-heading", te(se(l)))
2351
2351
  ]),
2352
2352
  key: "0"
2353
2353
  } : void 0,
2354
2354
  a.$slots["schedule-heading"] ? {
2355
2355
  name: "schedule-heading",
2356
- fn: I((s) => [
2357
- j(a.$slots, "schedule-heading", te(se(s)))
2356
+ fn: I((l) => [
2357
+ j(a.$slots, "schedule-heading", te(se(l)))
2358
2358
  ]),
2359
2359
  key: "1"
2360
2360
  } : void 0,
2361
2361
  a.$slots["event.all-day"] ? {
2362
2362
  name: "event.all-day",
2363
- fn: I((s) => [
2364
- j(a.$slots, "event.all-day", te(se(s)))
2363
+ fn: I((l) => [
2364
+ j(a.$slots, "event.all-day", te(se(l)))
2365
2365
  ]),
2366
2366
  key: "2"
2367
2367
  } : void 0,
2368
2368
  a.$slots.event ? {
2369
2369
  name: "event",
2370
- fn: I((s) => [
2371
- j(a.$slots, "event", te(se(s)))
2370
+ fn: I((l) => [
2371
+ j(a.$slots, "event", te(se(l)))
2372
2372
  ]),
2373
2373
  key: "3"
2374
2374
  } : void 0
@@ -2376,57 +2376,57 @@ const lt = (p, e) => {
2376
2376
  je(ka, null, Ce({ _: 2 }, [
2377
2377
  a.$slots.cell ? {
2378
2378
  name: "cell",
2379
- fn: I((s) => [
2380
- j(a.$slots, "cell", te(se(s)))
2379
+ fn: I((l) => [
2380
+ j(a.$slots, "cell", te(se(l)))
2381
2381
  ]),
2382
2382
  key: "0"
2383
2383
  } : void 0,
2384
2384
  !a.$slots.cell && a.$slots["cell-date"] ? {
2385
2385
  name: "cell-date",
2386
- fn: I((s) => [
2387
- j(a.$slots, "cell-date", te(se(s)))
2386
+ fn: I((l) => [
2387
+ j(a.$slots, "cell-date", te(se(l)))
2388
2388
  ]),
2389
2389
  key: "1"
2390
2390
  } : void 0,
2391
2391
  !a.$slots.cell && a.$slots["cell-content"] ? {
2392
2392
  name: "cell-content",
2393
- fn: I((s) => [
2394
- j(a.$slots, "cell-content", te(se(s)))
2393
+ fn: I((l) => [
2394
+ j(a.$slots, "cell-content", te(se(l)))
2395
2395
  ]),
2396
2396
  key: "2"
2397
2397
  } : void 0,
2398
2398
  !a.$slots.cell && a.$slots["cell-events"] ? {
2399
2399
  name: "cell-events",
2400
- fn: I((s) => [
2401
- j(a.$slots, "cell-events", te(se(s)))
2400
+ fn: I((l) => [
2401
+ j(a.$slots, "cell-events", te(se(l)))
2402
2402
  ]),
2403
2403
  key: "3"
2404
2404
  } : void 0,
2405
2405
  !a.$slots.cell && !a.$slots["cell-events"] && a.$slots["event.all-day"] ? {
2406
2406
  name: "event.all-day",
2407
- fn: I((s) => [
2408
- j(a.$slots, "event.all-day", te(se(s)))
2407
+ fn: I((l) => [
2408
+ j(a.$slots, "event.all-day", te(se(l)))
2409
2409
  ]),
2410
2410
  key: "4"
2411
2411
  } : void 0,
2412
2412
  !a.$slots.cell && !a.$slots["cell-events"] && a.$slots[`event.${Y(P).id}`] ? {
2413
2413
  name: `event.${Y(P).id}`,
2414
- fn: I((s) => [
2415
- j(a.$slots, `event.${Y(P).id}`, te(se(s)))
2414
+ fn: I((l) => [
2415
+ j(a.$slots, `event.${Y(P).id}`, te(se(l)))
2416
2416
  ]),
2417
2417
  key: "5"
2418
2418
  } : void 0,
2419
2419
  !a.$slots.cell && !a.$slots["cell-events"] && a.$slots.event ? {
2420
2420
  name: "event",
2421
- fn: I((s) => [
2422
- j(a.$slots, "event", te(se(s)))
2421
+ fn: I((l) => [
2422
+ j(a.$slots, "event", te(se(l)))
2423
2423
  ]),
2424
2424
  key: "6"
2425
2425
  } : void 0,
2426
2426
  !a.$slots.cell && a.$slots["event-count"] ? {
2427
2427
  name: "event-count",
2428
- fn: I((s) => [
2429
- j(a.$slots, "event-count", te(se(s)))
2428
+ fn: I((l) => [
2429
+ j(a.$slots, "event-count", te(se(l)))
2430
2430
  ]),
2431
2431
  key: "7"
2432
2432
  } : void 0