hisonvue 1.1.3 → 1.1.5

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 (63) hide show
  1. package/dist/{HAccordion-CYdLZCoO.mjs → HAccordion-2BXGsG5B.mjs} +2 -2
  2. package/dist/{HAccordion-Bc8LHllz.js → HAccordion-BXzQTj-T.js} +1 -1
  3. package/dist/{HBaggie-XgHTnkp2.js → HBaggie-DP-oXbIt.js} +1 -1
  4. package/dist/{HBaggie-Ywgz5nvV.mjs → HBaggie-DbUnI6Cg.mjs} +2 -2
  5. package/dist/{HBanner-BcDU3AwV.js → HBanner-C_RVokKc.js} +1 -1
  6. package/dist/{HBanner-CidWbYwG.mjs → HBanner-DS1wAGBj.mjs} +2 -2
  7. package/dist/{HButton-Bf1WiQNr.mjs → HButton-CJZsjgRh.mjs} +2 -2
  8. package/dist/{HButton-B6af0nzb.js → HButton-EmsUduJx.js} +1 -1
  9. package/dist/{HCalendar-CQs3-lsy.mjs → HCalendar-BHuielDt.mjs} +468 -458
  10. package/dist/{HCalendar-BiiLjDq7.js → HCalendar-BQcg95QP.js} +2 -2
  11. package/dist/{HCaption-CJD8YqTy.mjs → HCaption-B_TLREQt.mjs} +1 -1
  12. package/dist/{HCaption-DxXZw4pH.js → HCaption-DnnfU-4f.js} +1 -1
  13. package/dist/HChart-C9gfq-PC.mjs +187 -0
  14. package/dist/HChart-CPILy-I8.js +1 -0
  15. package/dist/{HDrawer-C_zCEAoj.mjs → HDrawer-D_kSIGBU.mjs} +35 -37
  16. package/dist/{HDrawer-QSVck31B.js → HDrawer-tfvUaRKv.js} +1 -1
  17. package/dist/{HDropdown-CzKF2cyh.mjs → HDropdown-BIPy8aU4.mjs} +2 -2
  18. package/dist/{HDropdown-l_g96ufU.js → HDropdown-BjUvzvFC.js} +1 -1
  19. package/dist/{HFileset-B6ezY9_O.mjs → HFileset-BtK0nmzk.mjs} +1 -1
  20. package/dist/{HFileset-CnM1z10l.js → HFileset-PW9YCJgS.js} +1 -1
  21. package/dist/{HGap-D9TgBL0P.js → HGap-BbdxTgBt.js} +1 -1
  22. package/dist/{HGap--qHusiKo.mjs → HGap-CW02Hxpc.mjs} +1 -1
  23. package/dist/{HGrid-DWFs2PVH.mjs → HGrid-CJ4-xVpR.mjs} +113 -86
  24. package/dist/HGrid-olge21bD.js +1 -0
  25. package/dist/{HImagebox-C-kUyV2a.js → HImagebox-AXcA-jAB.js} +1 -1
  26. package/dist/{HImagebox-B6DkNa0s.mjs → HImagebox-FTiJuOTN.mjs} +1 -1
  27. package/dist/{HInput-DF_oPvVG.js → HInput-CZ11eUJB.js} +1 -1
  28. package/dist/{HInput-Dih14jAK.mjs → HInput-Cqo_Tfru.mjs} +1 -1
  29. package/dist/{HInputGroup-Czqo_DBM.mjs → HInputGroup-SzCxRqaF.mjs} +1 -1
  30. package/dist/{HInputGroup-CxiRFkpV.js → HInputGroup-zaJVW7RE.js} +1 -1
  31. package/dist/{HLabel-x3QyAn-P.mjs → HLabel-DEVMDggG.mjs} +7 -3
  32. package/dist/{HLabel-BFuX1v46.js → HLabel-jZG7tY-0.js} +1 -1
  33. package/dist/{HLayout-DHwcSj6Y.js → HLayout-Fh65aaVI.js} +1 -1
  34. package/dist/{HLayout-DbIW32b3.mjs → HLayout-x_jVkIo4.mjs} +1 -1
  35. package/dist/{HList-CGt8QYPb.js → HList-JIhEylRe.js} +1 -1
  36. package/dist/{HList-B0_bqe2X.mjs → HList-V-fyd5fw.mjs} +2 -2
  37. package/dist/{HModal-DaQTId_h.mjs → HModal-B7pME4H2.mjs} +1 -1
  38. package/dist/{HModal-Bbq2SffE.js → HModal-M0YUil9A.js} +1 -1
  39. package/dist/HNote-C5nujdV1.js +1 -0
  40. package/dist/{HNote-BxjGgGT6.mjs → HNote-HqNrL-U2.mjs} +195 -137
  41. package/dist/{HPagination-OwLtKBDy.js → HPagination-6aWyrTI-.js} +1 -1
  42. package/dist/{HPagination-BZpSWEEW.mjs → HPagination-h8MaMUIE.mjs} +2 -2
  43. package/dist/{HParagraph-BiOV9AaX.mjs → HParagraph-CP1IofM4.mjs} +1 -1
  44. package/dist/{HParagraph-DA30mUOK.js → HParagraph-IvsIOdD1.js} +1 -1
  45. package/dist/{HPopup-CXsLCjT7.js → HPopup-Cj5IaN9N.js} +1 -1
  46. package/dist/{HPopup-CSWCs1bC.mjs → HPopup-DUnn4AIb.mjs} +1 -1
  47. package/dist/{HSpinner-B6mWhGkj.js → HSpinner-HdIJ62aF.js} +1 -1
  48. package/dist/{HSpinner-DEHdIFhp.mjs → HSpinner-bShjHynQ.mjs} +1 -1
  49. package/dist/{HTable-BoUCH2Zf.js → HTable-BgZ-XAZx.js} +1 -1
  50. package/dist/{HTable-By0pF5zV.mjs → HTable-BuGAaqrq.mjs} +1 -1
  51. package/dist/hisonvue.cjs.js +1 -1
  52. package/dist/hisonvue.css +1 -1
  53. package/dist/hisonvue.d.ts +1 -3
  54. package/dist/hisonvue.es.js +2 -2
  55. package/dist/{index-BC8m9ivd.mjs → index-BU8h1J_W.mjs} +1 -1
  56. package/dist/{index-CyZluKOE.js → index-BzCcaeiL.js} +1 -1
  57. package/dist/{setButtonCssEvent-DzPansSE.mjs → setButtonCssEvent-C-ESkC60.mjs} +1 -1
  58. package/dist/{setButtonCssEvent-fXHkzhY1.js → setButtonCssEvent-Oy4ojn9y.js} +1 -1
  59. package/package.json +1 -1
  60. package/dist/HChart-Br_mONmh.mjs +0 -179
  61. package/dist/HChart-CLxSeQfB.js +0 -1
  62. package/dist/HGrid-DZT6UYsc.js +0 -1
  63. package/dist/HNote-CHa35R5J.js +0 -1
@@ -1,8 +1,8 @@
1
- import { resolveComponent as ae, createElementBlock as m, openBlock as v, normalizeClass as V, createVNode as We, createCommentVNode as D, createSlots as Le, withCtx as T, renderSlot as k, createTextVNode as x, toDisplayString as E, createElementVNode as H, Transition as Ye, createBlock as G, normalizeProps as ze, mergeProps as Re, normalizeStyle as z, Fragment as L, renderList as N, resolveDynamicComponent as at, TransitionGroup as ft, withKeys as nt, withModifiers as oe, defineComponent as wt, ref as b, useSlots as Dt, computed as Ie, onMounted as gt, onBeforeUnmount as pt, watch as p, nextTick as Je, guardReactiveProps as bt } from "vue";
2
- import { H as Ze, k as kt, g as Ct, u as _t, l as P, n as ue, m as de, e as Tt, t as Mt, a as St, b as Qe, h as C, o as Ve, p as $e, q as R, s as Ae, v as je, r as Et, c as Ht, d as Ot } from "./index-BC8m9ivd.mjs";
3
- import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- var Vt = Object.defineProperty, At = (t, e, s) => e in t ? Vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Z = (t, e, s) => At(t, typeof e != "symbol" ? e + "" : e, s);
5
- const jt = (t, e, s) => {
1
+ import { resolveComponent as ne, createElementBlock as m, openBlock as v, normalizeClass as V, createVNode as Ve, createCommentVNode as D, createSlots as Ie, withCtx as T, renderSlot as C, createTextVNode as z, toDisplayString as E, createElementVNode as H, Transition as Pe, createBlock as J, normalizeProps as Ke, mergeProps as Xe, normalizeStyle as R, Fragment as L, renderList as B, resolveDynamicComponent as ut, TransitionGroup as pt, withKeys as dt, withModifiers as ue, defineComponent as bt, ref as p, useSlots as kt, computed as Re, onMounted as Ct, onBeforeUnmount as _t, watch as b, nextTick as et, guardReactiveProps as Tt } from "vue";
2
+ import { H as tt, k as Mt, g as St, u as Et, l as x, n as de, m as ce, e as Ht, t as Ot, a as Wt, b as it, h as k, o as Fe, p as st, q as U, s as Le, v as Ye, d as Ne, r as Vt, c as At } from "./index-BU8h1J_W.mjs";
3
+ import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ var Ft = Object.defineProperty, Lt = (t, e, s) => e in t ? Ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Q = (t, e, s) => Lt(t, typeof e != "symbol" ? e + "" : e, s);
5
+ const Yt = (t, e, s) => {
6
6
  const l = t[e];
7
7
  return l ? typeof l == "function" ? l() : Promise.resolve(l) : new Promise((r, i) => {
8
8
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -15,34 +15,34 @@ const jt = (t, e, s) => {
15
15
  );
16
16
  });
17
17
  };
18
- let Ee, et, tt, U, He = {}, ce = {};
19
- class Ft {
18
+ let He, lt, at, q, Oe = {}, he = {};
19
+ class Nt {
20
20
  constructor(e, s = !1) {
21
- Z(this, "texts", {}), Z(this, "dateToMinutes", (l) => l.getHours() * 60 + l.getMinutes()), U = this, this._texts = e, !s && Date && !Date.prototype.addDays && this._initDatePrototypes();
21
+ Q(this, "texts", {}), Q(this, "dateToMinutes", (l) => l.getHours() * 60 + l.getMinutes()), q = this, this._texts = e, !s && Date && !Date.prototype.addDays && this._initDatePrototypes();
22
22
  }
23
23
  _initDatePrototypes() {
24
24
  Date.prototype.addDays = function(e) {
25
- return U.addDays(this, e);
25
+ return q.addDays(this, e);
26
26
  }, Date.prototype.subtractDays = function(e) {
27
- return U.subtractDays(this, e);
27
+ return q.subtractDays(this, e);
28
28
  }, Date.prototype.addHours = function(e) {
29
- return U.addHours(this, e);
29
+ return q.addHours(this, e);
30
30
  }, Date.prototype.subtractHours = function(e) {
31
- return U.subtractHours(this, e);
31
+ return q.subtractHours(this, e);
32
32
  }, Date.prototype.addMinutes = function(e) {
33
- return U.addMinutes(this, e);
33
+ return q.addMinutes(this, e);
34
34
  }, Date.prototype.subtractMinutes = function(e) {
35
- return U.subtractMinutes(this, e);
35
+ return q.subtractMinutes(this, e);
36
36
  }, Date.prototype.getWeek = function() {
37
- return U.getWeek(this);
37
+ return q.getWeek(this);
38
38
  }, Date.prototype.isToday = function() {
39
- return U.isToday(this);
39
+ return q.isToday(this);
40
40
  }, Date.prototype.isLeapYear = function() {
41
- return U.isLeapYear(this);
41
+ return q.isLeapYear(this);
42
42
  }, Date.prototype.format = function(e = "YYYY-MM-DD") {
43
- return U.formatDate(this, e);
43
+ return q.formatDate(this, e);
44
44
  }, Date.prototype.formatTime = function(e = "HH:mm") {
45
- return U.formatTime(this, e);
45
+ return q.formatTime(this, e);
46
46
  };
47
47
  }
48
48
  removePrototypes() {
@@ -54,7 +54,7 @@ class Ft {
54
54
  // Cache Today's date (to a maximum) for better isToday() performances. Formatted without leading 0.
55
55
  // We still need to update Today's date when Today changes without page refresh.
56
56
  _todayFormatted() {
57
- return et !== (/* @__PURE__ */ new Date()).getDate() && (Ee = /* @__PURE__ */ new Date(), et = Ee.getDate(), tt = `${Ee.getFullYear()}-${Ee.getMonth()}-${Ee.getDate()}`), tt;
57
+ return lt !== (/* @__PURE__ */ new Date()).getDate() && (He = /* @__PURE__ */ new Date(), lt = He.getDate(), at = `${He.getFullYear()}-${He.getMonth()}-${He.getDate()}`), at;
58
58
  }
59
59
  // UTILITIES.
60
60
  // ====================================================================
@@ -146,7 +146,7 @@ class Ft {
146
146
  */
147
147
  formatDate(e, s = "YYYY-MM-DD", l = null) {
148
148
  if (l || (l = this._texts), s || (s = "YYYY-MM-DD"), s === "YYYY-MM-DD") return this.formatDateLite(e);
149
- He = {}, ce = {};
149
+ Oe = {}, he = {};
150
150
  const r = {
151
151
  YYYY: () => this._hydrateDateObject(e, l).YYYY,
152
152
  YY: () => this._hydrateDateObject(e, l).YY(),
@@ -199,7 +199,7 @@ class Ft {
199
199
  h + d + c === 141 && (i = !0);
200
200
  }
201
201
  if (e instanceof Date && s === "HH:mm") return i ? "24:00" : this.formatTimeLite(e);
202
- ce = {}, l || (l = this._texts);
202
+ he = {}, l || (l = this._texts);
203
203
  const o = this._hydrateTimeObject(e, l), n = s.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g, (h, d) => {
204
204
  const c = o[d.replace(/\{|\}/g, "")];
205
205
  return c !== void 0 ? c : d;
@@ -230,9 +230,9 @@ class Ft {
230
230
  }
231
231
  }
232
232
  _hydrateDateObject(e, s) {
233
- if (He.D) return He;
233
+ if (Oe.D) return Oe;
234
234
  const l = e.getFullYear(), r = e.getMonth() + 1, i = e.getDate(), n = (e.getDay() - 1 + 7) % 7;
235
- return He = {
235
+ return Oe = {
236
236
  // Year.
237
237
  YYYY: l,
238
238
  // 2019.
@@ -265,14 +265,14 @@ class Ft {
265
265
  // Mon to Sun.
266
266
  dddd: () => s.weekDays[n]
267
267
  // Monday to Sunday.
268
- }, He;
268
+ }, Oe;
269
269
  }
270
270
  _hydrateTimeObject(e, s) {
271
- if (ce.am) return ce;
271
+ if (he.am) return he;
272
272
  let l, r;
273
273
  e instanceof Date ? (l = e.getHours(), r = e.getMinutes()) : (l = Math.floor(e / 60), r = Math.floor(e % 60));
274
274
  const i = l % 12 ? l % 12 : 12, o = (s || { am: "am", pm: "pm" })[l === 24 || l < 12 ? "am" : "pm"];
275
- return ce = {
275
+ return he = {
276
276
  H: l,
277
277
  h: i,
278
278
  HH: (l < 10 ? "0" : "") + l,
@@ -281,32 +281,32 @@ class Ft {
281
281
  AM: o.toUpperCase(),
282
282
  m: r,
283
283
  mm: (r < 10 ? "0" : "") + r
284
- }, ce;
284
+ }, he;
285
285
  }
286
286
  // ====================================================================
287
287
  }
288
- const Lt = 24 * 60;
289
- class Yt {
288
+ const Bt = 24 * 60;
289
+ class It {
290
290
  constructor(e) {
291
- Z(this, "_vuecal", null), Z(this, "selectCell", (s = !1, l, r) => {
291
+ Q(this, "_vuecal", null), Q(this, "selectCell", (s = !1, l, r) => {
292
292
  this._vuecal.$emit("cell-click", r ? { date: l, split: r } : l), this._vuecal.clickToNavigate || s ? this._vuecal.switchToNarrowerView() : this._vuecal.dblclickToNavigate && "ontouchstart" in window && (this._vuecal.domEvents.dblTapACell.taps++, setTimeout(() => this._vuecal.domEvents.dblTapACell.taps = 0, this._vuecal.domEvents.dblTapACell.timeout), this._vuecal.domEvents.dblTapACell.taps >= 2 && (this._vuecal.domEvents.dblTapACell.taps = 0, this._vuecal.switchToNarrowerView(), this._vuecal.$emit("cell-dblclick", r ? { date: l, split: r } : l)));
293
- }), Z(this, "keyPressEnterCell", (s, l) => {
293
+ }), Q(this, "keyPressEnterCell", (s, l) => {
294
294
  this._vuecal.$emit("cell-keypress-enter", l ? { date: s, split: l } : s), this._vuecal.switchToNarrowerView();
295
- }), Z(this, "getPosition", (s) => {
295
+ }), Q(this, "getPosition", (s) => {
296
296
  const { left: l, top: r } = this._vuecal.cellsEl.getBoundingClientRect(), { clientX: i, clientY: o } = "ontouchstart" in window && s.touches ? s.touches[0] : s;
297
297
  return { x: i - l, y: o - r };
298
- }), Z(this, "minutesAtCursor", (s) => {
298
+ }), Q(this, "minutesAtCursor", (s) => {
299
299
  let l = 0, r = { x: 0, y: 0 };
300
300
  const { timeStep: i, timeCellHeight: o, timeFrom: n } = this._vuecal.$props;
301
- return typeof s == "number" ? l = s : typeof s == "object" && (r = this.getPosition(s), l = Math.round(r.y * i / parseInt(o) + n)), { minutes: Math.max(Math.min(l, Lt), 0), cursorCoords: r };
301
+ return typeof s == "number" ? l = s : typeof s == "object" && (r = this.getPosition(s), l = Math.round(r.y * i / parseInt(o) + n)), { minutes: Math.max(Math.min(l, Bt), 0), cursorCoords: r };
302
302
  }), this._vuecal = e;
303
303
  }
304
304
  }
305
- const Nt = 2, Pe = 24 * 60;
306
- let M, S, xe;
307
- class Bt {
305
+ const Pt = 2, Ue = 24 * 60;
306
+ let M, S, qe;
307
+ class xt {
308
308
  constructor(e, s) {
309
- Z(this, "_vuecal", null), Z(this, "eventDefaults", {
309
+ Q(this, "_vuecal", null), Q(this, "eventDefaults", {
310
310
  _eid: null,
311
311
  start: "",
312
312
  // Externally given formatted date & time or Date object.
@@ -345,7 +345,7 @@ class Bt {
345
345
  createAnEvent(e, s, l) {
346
346
  if (typeof e == "string" && (e = M.stringToDate(e)), !(e instanceof Date)) return !1;
347
347
  const r = M.dateToMinutes(e);
348
- s = s * 1 || Nt * 60;
348
+ s = s * 1 || Pt * 60;
349
349
  const i = r + s, o = M.addMinutes(new Date(e), s);
350
350
  l.end && (typeof l.end == "string" && (l.end = M.stringToDate(l.end)), l.endTimeMinutes = M.dateToMinutes(l.end));
351
351
  const n = {
@@ -370,12 +370,12 @@ class Bt {
370
370
  e.segments || (e.segments = {}, e.segments[M.formatDateLite(e.start)] = {
371
371
  start: e.start,
372
372
  startTimeMinutes: e.startTimeMinutes,
373
- endTimeMinutes: Pe,
373
+ endTimeMinutes: Ue,
374
374
  isFirstDay: !0,
375
375
  isLastDay: !1
376
376
  });
377
377
  const s = e.segments[M.formatDateLite(e.end)];
378
- s && (s.isLastDay = !1, s.endTimeMinutes = Pe);
378
+ s && (s.isLastDay = !1, s.endTimeMinutes = Ue);
379
379
  const l = M.addDays(e.end, 1), r = M.formatDateLite(l);
380
380
  return l.setHours(0, 0, 0, 0), e.segments[r] = {
381
381
  start: l,
@@ -418,14 +418,14 @@ class Bt {
418
418
  const A = M.addDays(new Date(d), 1).setHours(0, 0, 0, 0);
419
419
  let g, Y, j, _;
420
420
  if (e.repeat) {
421
- const B = new Date(d), O = M.formatDateLite(B);
421
+ const I = new Date(d), O = M.formatDateLite(I);
422
422
  (h || e.occurrences && e.occurrences[O]) && (h || (o = e.occurrences[O].start, y = new Date(o).setHours(0, 0, 0, 0), n = e.occurrences[O].end), h = !0, w = !0), g = d === y, Y = O === M.formatDateLite(new Date(n)), j = new Date(g ? o : d), _ = M.formatDateLite(j), Y && (h = !1);
423
423
  } else
424
424
  w = !0, g = d === o, Y = c === n && A > c, j = g ? e.start : new Date(d), _ = M.formatDateLite(g ? e.start : j);
425
425
  w && (e.segments[_] = {
426
426
  start: j,
427
427
  startTimeMinutes: g ? e.startTimeMinutes : 0,
428
- endTimeMinutes: Y ? e.endTimeMinutes : Pe,
428
+ endTimeMinutes: Y ? e.endTimeMinutes : Ue,
429
429
  isFirstDay: g,
430
430
  isLastDay: Y
431
431
  }), d = A;
@@ -445,8 +445,8 @@ class Bt {
445
445
  // Will recalculate all the overlaps of the current cell OR split.
446
446
  // cellEvents will contain only the current split events if in a split.
447
447
  checkCellOverlappingEvents(e, s) {
448
- xe = e.slice(0), S = {}, e.forEach((r) => {
449
- xe.shift(), S[r._eid] || (S[r._eid] = { overlaps: [], start: r.start, position: 0 }), S[r._eid].position = 0, xe.forEach((i) => {
448
+ qe = e.slice(0), S = {}, e.forEach((r) => {
449
+ qe.shift(), S[r._eid] || (S[r._eid] = { overlaps: [], start: r.start, position: 0 }), S[r._eid].position = 0, qe.forEach((i) => {
450
450
  S[i._eid] || (S[i._eid] = { overlaps: [], start: i.start, position: 0 });
451
451
  const o = this.eventInRange(i, r.start, r.end), n = s.overlapsPerTimeStep ? M.datesInSameTimeStep(r.start, i.start, s.timeStep) : 1;
452
452
  if (!r.background && !r.allDay && !i.background && !i.allDay && o && n)
@@ -499,25 +499,25 @@ class Bt {
499
499
  return r < l.getTime() && i > s.getTime();
500
500
  }
501
501
  }
502
- const It = { class: "vuecal__flex vuecal__weekdays-headings" }, Pt = ["onClick"], xt = {
502
+ const zt = { class: "vuecal__flex vuecal__weekdays-headings" }, Rt = ["onClick"], Ut = {
503
503
  class: "vuecal__flex weekday-label",
504
504
  grow: ""
505
- }, zt = { class: "full" }, Rt = { class: "small" }, Ut = { class: "xsmall" }, qt = { key: 0 }, Kt = {
505
+ }, qt = { class: "full" }, Kt = { class: "small" }, Xt = { class: "xsmall" }, Gt = { key: 0 }, Jt = {
506
506
  key: 0,
507
507
  class: "vuecal__flex vuecal__split-days-headers",
508
508
  grow: ""
509
509
  };
510
- function Xt(t, e, s, l, r, i) {
511
- return v(), m("div", It, [
512
- (v(!0), m(L, null, N(i.headings, (o, n) => (v(), m(L, { key: n }, [
510
+ function Zt(t, e, s, l, r, i) {
511
+ return v(), m("div", zt, [
512
+ (v(!0), m(L, null, B(i.headings, (o, n) => (v(), m(L, { key: n }, [
513
513
  o.hide ? D("", !0) : (v(), m("div", {
514
514
  key: 0,
515
515
  class: V(["vuecal__flex vuecal__heading", { today: o.today, clickable: i.cellHeadingsClickable }]),
516
- style: z(i.weekdayCellStyles),
516
+ style: R(i.weekdayCellStyles),
517
517
  onClick: (h) => i.view.id === "week" && i.selectCell(o.date, h),
518
518
  onDblclick: e[0] || (e[0] = (h) => i.view.id === "week" && i.vuecal.dblclickToNavigate && s.switchToNarrowerView())
519
519
  }, [
520
- We(Ye, {
520
+ Ve(Pe, {
521
521
  name: `slide-fade--${s.transitionDirection}`,
522
522
  appear: i.vuecal.transitions
523
523
  }, {
@@ -527,27 +527,27 @@ function Xt(t, e, s, l, r, i) {
527
527
  column: "",
528
528
  key: i.vuecal.transitions ? `${n}-${o.dayOfMonth}` : !1
529
529
  }, [
530
- H("div", xt, [
531
- k(t.$slots, "weekday-heading", {
530
+ H("div", Ut, [
531
+ C(t.$slots, "weekday-heading", {
532
532
  heading: i.cleanupHeading(o),
533
533
  view: i.view
534
534
  }, () => [
535
- H("span", zt, E(o.full), 1),
536
- H("span", Rt, E(o.small), 1),
537
- H("span", Ut, E(o.xsmall), 1),
538
- o.dayOfMonth ? (v(), m("span", qt, " " + E(o.dayOfMonth), 1)) : D("", !0)
535
+ H("span", qt, E(o.full), 1),
536
+ H("span", Kt, E(o.small), 1),
537
+ H("span", Xt, E(o.xsmall), 1),
538
+ o.dayOfMonth ? (v(), m("span", Gt, " " + E(o.dayOfMonth), 1)) : D("", !0)
539
539
  ])
540
540
  ]),
541
- i.vuecal.hasSplits && i.vuecal.stickySplitLabels ? (v(), m("div", Kt, [
542
- (v(!0), m(L, null, N(i.vuecal.daySplits, (h, d) => (v(), m("div", {
541
+ i.vuecal.hasSplits && i.vuecal.stickySplitLabels ? (v(), m("div", Jt, [
542
+ (v(!0), m(L, null, B(i.vuecal.daySplits, (h, d) => (v(), m("div", {
543
543
  class: V(["day-split-header", h.class || !1]),
544
544
  key: d
545
545
  }, [
546
- k(t.$slots, "split-label", {
546
+ C(t.$slots, "split-label", {
547
547
  split: h,
548
548
  view: i.view
549
549
  }, () => [
550
- x(E(h.label), 1)
550
+ z(E(h.label), 1)
551
551
  ])
552
552
  ], 2))), 128))
553
553
  ])) : D("", !0)
@@ -555,16 +555,16 @@ function Xt(t, e, s, l, r, i) {
555
555
  ]),
556
556
  _: 2
557
557
  }, 1032, ["name", "appear"])
558
- ], 46, Pt))
558
+ ], 46, Rt))
559
559
  ], 64))), 128))
560
560
  ]);
561
561
  }
562
- const he = (t, e) => {
562
+ const ve = (t, e) => {
563
563
  const s = t.__vccOpts || t;
564
564
  for (const [l, r] of e)
565
565
  s[l] = r;
566
566
  return s;
567
- }, Gt = {
567
+ }, Qt = {
568
568
  inject: ["vuecal", "utils", "view"],
569
569
  props: {
570
570
  transitionDirection: { type: String, default: "right" },
@@ -616,26 +616,26 @@ const he = (t, e) => {
616
616
  return this.view.id === "week" && (this.vuecal.clickToNavigate || this.vuecal.dblclickToNavigate);
617
617
  }
618
618
  }
619
- }, rt = /* @__PURE__ */ he(Gt, [["render", Xt]]), Jt = { class: "vuecal__header" }, Zt = {
619
+ }, ct = /* @__PURE__ */ ve(Qt, [["render", Zt]]), $t = { class: "vuecal__header" }, ei = {
620
620
  key: 0,
621
621
  class: "vuecal__flex vuecal__menu",
622
622
  role: "tablist",
623
623
  "aria-label": "Calendar views navigation"
624
- }, Qt = ["onDragenter", "onDragleave", "onClick", "aria-label"], $t = {
624
+ }, ti = ["onDragenter", "onDragleave", "onClick", "aria-label"], ii = {
625
625
  key: 1,
626
626
  class: "vuecal__title-bar"
627
- }, ei = ["aria-label"], ti = {
627
+ }, si = ["aria-label"], li = {
628
628
  class: "vuecal__flex vuecal__title",
629
629
  grow: ""
630
- }, ii = ["aria-label"], si = {
630
+ }, ai = ["aria-label"], ni = {
631
631
  key: 0,
632
632
  class: "vuecal__flex vuecal__split-days-headers"
633
633
  };
634
- function li(t, e, s, l, r, i) {
635
- const o = ae("weekdays-headings");
636
- return v(), m("div", Jt, [
637
- s.options.hideViewSelector ? D("", !0) : (v(), m("div", Zt, [
638
- (v(!0), m(L, null, N(s.viewProps.views, (n, h) => (v(), m(L, { key: h }, [
634
+ function ri(t, e, s, l, r, i) {
635
+ const o = ne("weekdays-headings");
636
+ return v(), m("div", $t, [
637
+ s.options.hideViewSelector ? D("", !0) : (v(), m("div", ei, [
638
+ (v(!0), m(L, null, B(s.viewProps.views, (n, h) => (v(), m(L, { key: h }, [
639
639
  n.enabled ? (v(), m("button", {
640
640
  key: 0,
641
641
  class: V(["vuecal__view-btn", { "vuecal__view-btn--active": i.view.id === h, "vuecal__view-btn--highlighted": t.highlightedControl === h }]),
@@ -644,10 +644,10 @@ function li(t, e, s, l, r, i) {
644
644
  onDragleave: (d) => s.editEvents.drag && i.dnd && i.dnd.viewSelectorDragLeave(d, h, t.$data),
645
645
  onClick: (d) => i.switchView(h, null, !0),
646
646
  "aria-label": `${n.label} view`
647
- }, E(n.label), 43, Qt)) : D("", !0)
647
+ }, E(n.label), 43, ti)) : D("", !0)
648
648
  ], 64))), 128))
649
649
  ])),
650
- s.options.hideTitleBar ? D("", !0) : (v(), m("div", $t, [
650
+ s.options.hideTitleBar ? D("", !0) : (v(), m("div", ii, [
651
651
  H("button", {
652
652
  class: V(["vuecal__arrow vuecal__arrow--prev", { "vuecal__arrow--highlighted": t.highlightedControl === "previous" }]),
653
653
  type: "button",
@@ -656,21 +656,21 @@ function li(t, e, s, l, r, i) {
656
656
  onDragleave: e[2] || (e[2] = (n) => s.editEvents.drag && i.dnd && i.dnd.viewSelectorDragLeave(n, "previous", t.$data)),
657
657
  "aria-label": `Previous ${i.view.id}`
658
658
  }, [
659
- k(t.$slots, "arrow-prev")
660
- ], 42, ei),
661
- H("div", ti, [
662
- We(Ye, {
659
+ C(t.$slots, "arrow-prev")
660
+ ], 42, si),
661
+ H("div", li, [
662
+ Ve(Pe, {
663
663
  name: s.options.transitions ? `slide-fade--${i.transitionDirection}` : ""
664
664
  }, {
665
665
  default: T(() => [
666
- (v(), G(at(i.broaderView ? "button" : "span"), {
666
+ (v(), J(ut(i.broaderView ? "button" : "span"), {
667
667
  type: !!i.broaderView && "button",
668
668
  key: `${i.view.id}${i.view.startDate.toString()}`,
669
669
  onClick: e[3] || (e[3] = (n) => !!i.broaderView && i.switchToBroaderView()),
670
670
  "aria-label": !!i.broaderView && `Go to ${i.broaderView} view`
671
671
  }, {
672
672
  default: T(() => [
673
- k(t.$slots, "title")
673
+ C(t.$slots, "title")
674
674
  ]),
675
675
  _: 3
676
676
  }, 8, ["type", "aria-label"]))
@@ -687,7 +687,7 @@ function li(t, e, s, l, r, i) {
687
687
  onDragleave: e[6] || (e[6] = (n) => s.editEvents.drag && i.dnd && i.dnd.viewSelectorDragLeave(n, "today", t.$data)),
688
688
  "aria-label": "Today"
689
689
  }, [
690
- k(t.$slots, "today-button")
690
+ C(t.$slots, "today-button")
691
691
  ], 34)) : D("", !0),
692
692
  H("button", {
693
693
  class: V(["vuecal__arrow vuecal__arrow--next", { "vuecal__arrow--highlighted": t.highlightedControl === "next" }]),
@@ -697,19 +697,19 @@ function li(t, e, s, l, r, i) {
697
697
  onDragleave: e[9] || (e[9] = (n) => s.editEvents.drag && i.dnd && i.dnd.viewSelectorDragLeave(n, "next", t.$data)),
698
698
  "aria-label": `Next ${i.view.id}`
699
699
  }, [
700
- k(t.$slots, "arrow-next")
701
- ], 42, ii)
700
+ C(t.$slots, "arrow-next")
701
+ ], 42, ai)
702
702
  ])),
703
- s.viewProps.weekDaysInHeader ? (v(), G(o, {
703
+ s.viewProps.weekDaysInHeader ? (v(), J(o, {
704
704
  key: 2,
705
705
  "week-days": s.weekDays,
706
706
  "transition-direction": i.transitionDirection,
707
707
  "switch-to-narrower-view": s.switchToNarrowerView
708
- }, Le({ _: 2 }, [
708
+ }, Ie({ _: 2 }, [
709
709
  t.$slots["weekday-heading"] ? {
710
710
  name: "weekday-heading",
711
711
  fn: T(({ heading: n, view: h }) => [
712
- k(t.$slots, "weekday-heading", {
712
+ C(t.$slots, "weekday-heading", {
713
713
  heading: n,
714
714
  view: h
715
715
  })
@@ -719,7 +719,7 @@ function li(t, e, s, l, r, i) {
719
719
  t.$slots["split-label"] ? {
720
720
  name: "split-label",
721
721
  fn: T(({ split: n }) => [
722
- k(t.$slots, "split-label", {
722
+ C(t.$slots, "split-label", {
723
723
  split: n,
724
724
  view: i.view
725
725
  })
@@ -727,20 +727,20 @@ function li(t, e, s, l, r, i) {
727
727
  key: "1"
728
728
  } : void 0
729
729
  ]), 1032, ["week-days", "transition-direction", "switch-to-narrower-view"])) : D("", !0),
730
- We(Ye, {
730
+ Ve(Pe, {
731
731
  name: `slide-fade--${i.transitionDirection}`
732
732
  }, {
733
733
  default: T(() => [
734
- i.showDaySplits ? (v(), m("div", si, [
735
- (v(!0), m(L, null, N(s.daySplits, (n, h) => (v(), m("div", {
734
+ i.showDaySplits ? (v(), m("div", ni, [
735
+ (v(!0), m(L, null, B(s.daySplits, (n, h) => (v(), m("div", {
736
736
  class: V(["day-split-header", n.class || !1]),
737
737
  key: h
738
738
  }, [
739
- k(t.$slots, "split-label", {
739
+ C(t.$slots, "split-label", {
740
740
  split: n,
741
741
  view: i.view.id
742
742
  }, () => [
743
- x(E(n.label), 1)
743
+ z(E(n.label), 1)
744
744
  ])
745
745
  ], 2))), 128))
746
746
  ])) : D("", !0)
@@ -749,9 +749,9 @@ function li(t, e, s, l, r, i) {
749
749
  }, 8, ["name"])
750
750
  ]);
751
751
  }
752
- const ai = {
752
+ const oi = {
753
753
  inject: ["vuecal", "previous", "next", "switchView", "updateSelectedDate", "modules", "view"],
754
- components: { WeekdaysHeadings: rt },
754
+ components: { WeekdaysHeadings: ct },
755
755
  props: {
756
756
  // Vuecal main component options (props).
757
757
  options: { type: Object, default: () => ({}) },
@@ -795,17 +795,17 @@ const ai = {
795
795
  return this.modules.dnd;
796
796
  }
797
797
  }
798
- }, ni = /* @__PURE__ */ he(ai, [["render", li]]), ri = ["draggable"];
799
- function oi(t, e, s, l, r, i) {
798
+ }, ui = /* @__PURE__ */ ve(oi, [["render", ri]]), di = ["draggable"];
799
+ function ci(t, e, s, l, r, i) {
800
800
  return v(), m("div", {
801
801
  class: V(["vuecal__event", i.eventClasses]),
802
- style: z(i.eventStyles),
802
+ style: R(i.eventStyles),
803
803
  tabindex: "0",
804
804
  onFocus: e[4] || (e[4] = (...o) => i.focusEvent && i.focusEvent(...o)),
805
- onKeypress: e[5] || (e[5] = nt(oe((...o) => i.onEnterKeypress && i.onEnterKeypress(...o), ["stop"]), ["enter"])),
805
+ onKeypress: e[5] || (e[5] = dt(ue((...o) => i.onEnterKeypress && i.onEnterKeypress(...o), ["stop"]), ["enter"])),
806
806
  onMouseenter: e[6] || (e[6] = (...o) => i.onMouseEnter && i.onMouseEnter(...o)),
807
807
  onMouseleave: e[7] || (e[7] = (...o) => i.onMouseLeave && i.onMouseLeave(...o)),
808
- onTouchstart: e[8] || (e[8] = oe((...o) => i.onTouchStart && i.onTouchStart(...o), ["stop"])),
808
+ onTouchstart: e[8] || (e[8] = ue((...o) => i.onTouchStart && i.onTouchStart(...o), ["stop"])),
809
809
  onMousedown: e[9] || (e[9] = (o) => i.onMouseDown(o)),
810
810
  onMouseup: e[10] || (e[10] = (...o) => i.onMouseUp && i.onMouseUp(...o)),
811
811
  onTouchend: e[11] || (e[11] = (...o) => i.onMouseUp && i.onMouseUp(...o)),
@@ -818,10 +818,10 @@ function oi(t, e, s, l, r, i) {
818
818
  i.vuecal.editEvents.delete && s.event.deletable ? (v(), m("div", {
819
819
  key: 0,
820
820
  class: "vuecal__event-delete",
821
- onClick: e[0] || (e[0] = oe((...o) => i.deleteEvent && i.deleteEvent(...o), ["stop"])),
822
- onTouchstart: e[1] || (e[1] = oe((...o) => i.touchDeleteEvent && i.touchDeleteEvent(...o), ["stop"]))
821
+ onClick: e[0] || (e[0] = ue((...o) => i.deleteEvent && i.deleteEvent(...o), ["stop"])),
822
+ onTouchstart: e[1] || (e[1] = ue((...o) => i.touchDeleteEvent && i.touchDeleteEvent(...o), ["stop"]))
823
823
  }, E(i.vuecal.texts.deleteEvent), 33)) : D("", !0),
824
- k(t.$slots, "event", {
824
+ C(t.$slots, "event", {
825
825
  event: s.event,
826
826
  view: i.view.id
827
827
  }),
@@ -829,12 +829,12 @@ function oi(t, e, s, l, r, i) {
829
829
  key: 1,
830
830
  class: "vuecal__event-resize-handle",
831
831
  contenteditable: "false",
832
- onMousedown: e[2] || (e[2] = oe((...o) => i.onResizeHandleMouseDown && i.onResizeHandleMouseDown(...o), ["stop", "prevent"])),
833
- onTouchstart: e[3] || (e[3] = oe((...o) => i.onResizeHandleMouseDown && i.onResizeHandleMouseDown(...o), ["stop", "prevent"]))
832
+ onMousedown: e[2] || (e[2] = ue((...o) => i.onResizeHandleMouseDown && i.onResizeHandleMouseDown(...o), ["stop", "prevent"])),
833
+ onTouchstart: e[3] || (e[3] = ue((...o) => i.onResizeHandleMouseDown && i.onResizeHandleMouseDown(...o), ["stop", "prevent"]))
834
834
  }, null, 32)) : D("", !0)
835
- ], 46, ri);
835
+ ], 46, di);
836
836
  }
837
- const ui = {
837
+ const hi = {
838
838
  inject: ["vuecal", "utils", "modules", "view", "domEvents", "editEvents"],
839
839
  props: {
840
840
  cellFormattedDate: { type: String, default: "" },
@@ -1002,24 +1002,24 @@ const ui = {
1002
1002
  return this.modules.dnd;
1003
1003
  }
1004
1004
  }
1005
- }, di = /* @__PURE__ */ he(ui, [["render", oi]]), ci = ["data-split", "aria-label", "onTouchstart", "onMousedown", "onDragover", "onDrop"], hi = {
1005
+ }, vi = /* @__PURE__ */ ve(hi, [["render", ci]]), mi = ["data-split", "aria-label", "onTouchstart", "onMousedown", "onDragover", "onDrop"], yi = {
1006
1006
  key: 0,
1007
1007
  class: "cell-time-labels"
1008
- }, vi = ["innerHTML"], mi = {
1008
+ }, fi = ["innerHTML"], wi = {
1009
1009
  key: 2,
1010
1010
  class: "vuecal__cell-events"
1011
- }, yi = ["title"];
1012
- function fi(t, e, s, l, r, i) {
1013
- const o = ae("event");
1014
- return v(), G(ft, {
1011
+ }, Di = ["title"];
1012
+ function gi(t, e, s, l, r, i) {
1013
+ const o = ne("event");
1014
+ return v(), J(pt, {
1015
1015
  class: V(["vuecal__cell", i.cellClasses]),
1016
1016
  name: `slide-fade--${i.transitionDirection}`,
1017
1017
  tag: "div",
1018
1018
  appear: s.options.transitions,
1019
- style: z(i.cellStyles)
1019
+ style: R(i.cellStyles)
1020
1020
  }, {
1021
1021
  default: T(() => [
1022
- (v(!0), m(L, null, N(i.splitsCount ? i.splits : 1, (n, h) => (v(), m("div", {
1022
+ (v(!0), m(L, null, B(i.splitsCount ? i.splits : 1, (n, h) => (v(), m("div", {
1023
1023
  class: V(["vuecal__flex vuecal__cell-content", i.splitsCount && i.splitClasses(n)]),
1024
1024
  key: s.options.transitions ? `${i.view.id}-${s.data.content}-${h}` : h,
1025
1025
  "data-split": i.splitsCount ? n.id : !1,
@@ -1027,7 +1027,7 @@ function fi(t, e, s, l, r, i) {
1027
1027
  tabindex: "0",
1028
1028
  "aria-label": s.data.content,
1029
1029
  onFocus: e[0] || (e[0] = (d) => i.onCellFocus(d)),
1030
- onKeypress: e[1] || (e[1] = nt((d) => i.onCellkeyPressEnter(d), ["enter"])),
1030
+ onKeypress: e[1] || (e[1] = dt((d) => i.onCellkeyPressEnter(d), ["enter"])),
1031
1031
  onTouchstart: (d) => !i.isDisabled && i.onCellTouchStart(d, i.splitsCount ? n.id : null),
1032
1032
  onMousedown: (d) => !i.isDisabled && i.onCellMouseDown(d, i.splitsCount ? n.id : null),
1033
1033
  onClick: e[2] || (e[2] = (d) => !i.isDisabled && i.onCellClick(d)),
@@ -1038,29 +1038,29 @@ function fi(t, e, s, l, r, i) {
1038
1038
  onDragleave: e[6] || (e[6] = (d) => !i.isDisabled && s.editEvents.drag && i.dnd && i.dnd.cellDragLeave(d, t.$data, s.data.startDate)),
1039
1039
  onDrop: (d) => !i.isDisabled && s.editEvents.drag && i.dnd && i.dnd.cellDragDrop(d, t.$data, s.data.startDate, i.splitsCount ? n.id : null)
1040
1040
  }, [
1041
- s.options.showTimeInCells && s.options.time && i.isWeekOrDayView && !s.allDay ? (v(), m("div", hi, [
1042
- (v(!0), m(L, null, N(i.vuecal.timeCells, (d, c) => (v(), m("span", {
1041
+ s.options.showTimeInCells && s.options.time && i.isWeekOrDayView && !s.allDay ? (v(), m("div", yi, [
1042
+ (v(!0), m(L, null, B(i.vuecal.timeCells, (d, c) => (v(), m("span", {
1043
1043
  class: "cell-time-label",
1044
1044
  key: c
1045
1045
  }, E(d.label), 1))), 128))
1046
1046
  ])) : D("", !0),
1047
- i.isWeekOrDayView && !s.allDay && i.specialHours.length ? (v(!0), m(L, { key: 1 }, N(i.specialHours, (d, c) => (v(), m("div", {
1047
+ i.isWeekOrDayView && !s.allDay && i.specialHours.length ? (v(!0), m(L, { key: 1 }, B(i.specialHours, (d, c) => (v(), m("div", {
1048
1048
  class: V(["vuecal__special-hours", `vuecal__special-hours--day${d.day} ${d.class}`]),
1049
- style: z(`height: ${d.height}px;top: ${d.top}px`)
1049
+ style: R(`height: ${d.height}px;top: ${d.top}px`)
1050
1050
  }, [
1051
1051
  d.label ? (v(), m("div", {
1052
1052
  key: 0,
1053
1053
  class: "special-hours-label",
1054
1054
  innerHTML: d.label
1055
- }, null, 8, vi)) : D("", !0)
1055
+ }, null, 8, fi)) : D("", !0)
1056
1056
  ], 6))), 256)) : D("", !0),
1057
- k(t.$slots, "cell-content", {
1057
+ C(t.$slots, "cell-content", {
1058
1058
  events: i.events,
1059
1059
  selectCell: (d) => i.selectCell(d, !0),
1060
1060
  split: i.splitsCount ? n : !1
1061
1061
  }),
1062
- i.eventsCount && (i.isWeekOrDayView || i.view.id === "month" && s.options.eventsOnMonthView) ? (v(), m("div", mi, [
1063
- (v(!0), m(L, null, N(i.splitsCount ? n.events : i.events, (d, c) => (v(), G(o, {
1062
+ i.eventsCount && (i.isWeekOrDayView || i.view.id === "month" && s.options.eventsOnMonthView) ? (v(), m("div", wi, [
1063
+ (v(!0), m(L, null, B(i.splitsCount ? n.events : i.events, (d, c) => (v(), J(o, {
1064
1064
  key: c,
1065
1065
  "cell-formatted-date": s.data.formattedDate,
1066
1066
  event: d,
@@ -1071,7 +1071,7 @@ function fi(t, e, s, l, r, i) {
1071
1071
  "overlaps-streak": i.splitsCount ? n.overlapsStreak : t.cellOverlapsStreak
1072
1072
  }, {
1073
1073
  event: T(({ event: y, view: w }) => [
1074
- k(t.$slots, "event", {
1074
+ C(t.$slots, "event", {
1075
1075
  view: w,
1076
1076
  event: y
1077
1077
  })
@@ -1079,20 +1079,20 @@ function fi(t, e, s, l, r, i) {
1079
1079
  _: 2
1080
1080
  }, 1032, ["cell-formatted-date", "event", "all-day", "cell-events", "overlaps", "event-position", "overlaps-streak"]))), 128))
1081
1081
  ])) : D("", !0)
1082
- ], 42, ci))), 128)),
1082
+ ], 42, mi))), 128)),
1083
1083
  i.timelineVisible ? (v(), m("div", {
1084
1084
  class: "vuecal__now-line",
1085
- style: z(`top: ${i.todaysTimePosition}px`),
1085
+ style: R(`top: ${i.todaysTimePosition}px`),
1086
1086
  key: s.options.transitions ? `${i.view.id}-now-line` : "now-line",
1087
1087
  title: i.utils.date.formatTime(i.vuecal.now)
1088
- }, null, 12, yi)) : D("", !0)
1088
+ }, null, 12, Di)) : D("", !0)
1089
1089
  ]),
1090
1090
  _: 3
1091
1091
  }, 8, ["class", "name", "appear", "style"]);
1092
1092
  }
1093
- const wi = {
1093
+ const pi = {
1094
1094
  inject: ["vuecal", "utils", "modules", "view", "domEvents"],
1095
- components: { Event: di },
1095
+ components: { Event: vi },
1096
1096
  props: {
1097
1097
  // Vue-cal main component options (props).
1098
1098
  options: { type: Object, default: () => ({}) },
@@ -1325,26 +1325,26 @@ const wi = {
1325
1325
  return this.options.timeCellHeight / this.options.timeStep;
1326
1326
  }
1327
1327
  }
1328
- }, ot = /* @__PURE__ */ he(wi, [["render", fi]]), Di = {
1328
+ }, ht = /* @__PURE__ */ ve(pi, [["render", gi]]), bi = {
1329
1329
  key: 0,
1330
1330
  class: "vuecal__all-day-text",
1331
1331
  style: { width: "3em" }
1332
1332
  };
1333
- function gi(t, e, s, l, r, i) {
1334
- const o = ae("vuecal-cell");
1333
+ function ki(t, e, s, l, r, i) {
1334
+ const o = ne("vuecal-cell");
1335
1335
  return v(), m("div", {
1336
1336
  class: "vuecal__flex vuecal__all-day",
1337
- style: z(s.cellOrSplitMinWidth && { height: s.height })
1337
+ style: R(s.cellOrSplitMinWidth && { height: s.height })
1338
1338
  }, [
1339
- s.cellOrSplitMinWidth ? D("", !0) : (v(), m("div", Di, [
1339
+ s.cellOrSplitMinWidth ? D("", !0) : (v(), m("div", bi, [
1340
1340
  H("span", null, E(s.label), 1)
1341
1341
  ])),
1342
1342
  H("div", {
1343
1343
  class: V(["vuecal__flex vuecal__cells", `${i.view.id}-view`]),
1344
1344
  grow: "",
1345
- style: z(s.cellOrSplitMinWidth ? `min-width: ${s.cellOrSplitMinWidth}px` : "")
1345
+ style: R(s.cellOrSplitMinWidth ? `min-width: ${s.cellOrSplitMinWidth}px` : "")
1346
1346
  }, [
1347
- (v(!0), m(L, null, N(s.cells, (n, h) => (v(), G(o, {
1347
+ (v(!0), m(L, null, B(s.cells, (n, h) => (v(), J(o, {
1348
1348
  key: h,
1349
1349
  options: s.options,
1350
1350
  "edit-events": i.editEvents,
@@ -1356,7 +1356,7 @@ function gi(t, e, s, l, r, i) {
1356
1356
  "cell-splits": s.daySplits
1357
1357
  }, {
1358
1358
  event: T(({ event: d, view: c }) => [
1359
- k(t.$slots, "event", {
1359
+ C(t.$slots, "event", {
1360
1360
  view: c,
1361
1361
  event: d
1362
1362
  })
@@ -1366,9 +1366,9 @@ function gi(t, e, s, l, r, i) {
1366
1366
  ], 6)
1367
1367
  ], 4);
1368
1368
  }
1369
- const pi = {
1369
+ const Ci = {
1370
1370
  inject: ["vuecal", "view", "editEvents"],
1371
- components: { "vuecal-cell": ot },
1371
+ components: { "vuecal-cell": ht },
1372
1372
  props: {
1373
1373
  // Vue-cal main component options (props).
1374
1374
  options: { type: Object, required: !0 },
@@ -1384,46 +1384,46 @@ const pi = {
1384
1384
  return !!(this.options.minCellWidth || this.daySplits.length && this.options.minSplitWidth);
1385
1385
  }
1386
1386
  }
1387
- }, bi = /* @__PURE__ */ he(pi, [["render", gi]]), ki = ["lang"], Ci = { class: "default" }, _i = {
1387
+ }, _i = /* @__PURE__ */ ve(Ci, [["render", ki]]), Ti = ["lang"], Mi = { class: "default" }, Si = {
1388
1388
  key: 0,
1389
1389
  class: "vuecal__flex vuecal__body",
1390
1390
  grow: ""
1391
- }, Ti = ["onBlur", "innerHTML"], Mi = ["innerHTML"], Si = ["innerHTML"], Ei = {
1391
+ }, Ei = ["onBlur", "innerHTML"], Hi = ["innerHTML"], Oi = ["innerHTML"], Wi = {
1392
1392
  class: "vuecal__flex",
1393
1393
  row: "",
1394
1394
  grow: ""
1395
- }, Hi = {
1395
+ }, Vi = {
1396
1396
  key: 0,
1397
1397
  class: "vuecal__time-column"
1398
- }, Oi = { class: "vuecal__time-cell-label" }, Wi = {
1398
+ }, Ai = { class: "vuecal__time-cell-label" }, ji = {
1399
1399
  key: 1,
1400
1400
  class: "vuecal__flex vuecal__week-numbers",
1401
1401
  column: ""
1402
- }, Vi = ["wrap", "column"], Ai = ["onBlur", "innerHTML"], ji = ["innerHTML"], Fi = ["innerHTML"], Li = ["wrap"], Yi = ["innerHTML"], Ni = ["innerHTML"], Bi = {
1402
+ }, Fi = ["wrap", "column"], Li = ["onBlur", "innerHTML"], Yi = ["innerHTML"], Ni = ["innerHTML"], Bi = ["wrap"], Ii = ["innerHTML"], Pi = ["innerHTML"], xi = {
1403
1403
  key: 2,
1404
1404
  class: "vuecal__cell-events-count"
1405
- }, Ii = {
1405
+ }, zi = {
1406
1406
  key: 3,
1407
1407
  class: "vuecal__no-event"
1408
- }, Pi = ["onBlur", "innerHTML"], xi = ["innerHTML"], zi = {
1408
+ }, Ri = ["onBlur", "innerHTML"], Ui = ["innerHTML"], qi = {
1409
1409
  key: 2,
1410
1410
  class: "vuecal__event-time"
1411
- }, Ri = { key: 0 }, Ui = {
1411
+ }, Ki = { key: 0 }, Xi = {
1412
1412
  key: 1,
1413
1413
  class: "days-to-end"
1414
- }, qi = ["innerHTML"], Ki = {
1414
+ }, Gi = ["innerHTML"], Ji = {
1415
1415
  key: 0,
1416
1416
  class: "vuecal__scrollbar-check"
1417
1417
  };
1418
- function Xi(t, e, s, l, r, i) {
1419
- const o = ae("vuecal-header"), n = ae("all-day-bar"), h = ae("weekdays-headings"), d = ae("vuecal-cell");
1418
+ function Zi(t, e, s, l, r, i) {
1419
+ const o = ne("vuecal-header"), n = ne("all-day-bar"), h = ne("weekdays-headings"), d = ne("vuecal-cell");
1420
1420
  return v(), m("div", {
1421
1421
  class: V(["vuecal__flex vuecal", i.cssClasses]),
1422
1422
  column: "",
1423
1423
  ref: "vuecal",
1424
1424
  lang: s.locale
1425
1425
  }, [
1426
- We(o, {
1426
+ Ve(o, {
1427
1427
  options: t.$props,
1428
1428
  "edit-events": i.editEvents,
1429
1429
  "view-props": { views: i.views, weekDaysInHeader: i.weekDaysInHeader },
@@ -1431,32 +1431,32 @@ function Xi(t, e, s, l, r, i) {
1431
1431
  "has-splits": i.hasSplits,
1432
1432
  "day-splits": i.daySplits,
1433
1433
  "switch-to-narrower-view": i.switchToNarrowerView
1434
- }, Le({
1434
+ }, Ie({
1435
1435
  "arrow-prev": T(() => [
1436
- k(t.$slots, "arrow-prev", {}, () => [
1437
- e[0] || (e[0] = x(" ")),
1436
+ C(t.$slots, "arrow-prev", {}, () => [
1437
+ e[0] || (e[0] = z(" ")),
1438
1438
  e[1] || (e[1] = H("i", { class: "angle" }, null, -1)),
1439
- e[2] || (e[2] = x(" "))
1439
+ e[2] || (e[2] = z(" "))
1440
1440
  ])
1441
1441
  ]),
1442
1442
  "arrow-next": T(() => [
1443
- k(t.$slots, "arrow-next", {}, () => [
1444
- e[3] || (e[3] = x(" ")),
1443
+ C(t.$slots, "arrow-next", {}, () => [
1444
+ e[3] || (e[3] = z(" ")),
1445
1445
  e[4] || (e[4] = H("i", { class: "angle" }, null, -1)),
1446
- e[5] || (e[5] = x(" "))
1446
+ e[5] || (e[5] = z(" "))
1447
1447
  ])
1448
1448
  ]),
1449
1449
  "today-button": T(() => [
1450
- k(t.$slots, "today-button", {}, () => [
1451
- H("span", Ci, E(r.texts.today), 1)
1450
+ C(t.$slots, "today-button", {}, () => [
1451
+ H("span", Mi, E(r.texts.today), 1)
1452
1452
  ])
1453
1453
  ]),
1454
1454
  title: T(() => [
1455
- k(t.$slots, "title", {
1455
+ C(t.$slots, "title", {
1456
1456
  title: i.viewTitle,
1457
1457
  view: r.view
1458
1458
  }, () => [
1459
- x(E(i.viewTitle), 1)
1459
+ z(E(i.viewTitle), 1)
1460
1460
  ])
1461
1461
  ]),
1462
1462
  _: 2
@@ -1464,7 +1464,7 @@ function Xi(t, e, s, l, r, i) {
1464
1464
  t.$slots["weekday-heading"] ? {
1465
1465
  name: "weekday-heading",
1466
1466
  fn: T(({ heading: c, view: y }) => [
1467
- k(t.$slots, "weekday-heading", {
1467
+ C(t.$slots, "weekday-heading", {
1468
1468
  heading: c,
1469
1469
  view: y
1470
1470
  })
@@ -1474,7 +1474,7 @@ function Xi(t, e, s, l, r, i) {
1474
1474
  t.$slots["split-label"] ? {
1475
1475
  name: "split-label",
1476
1476
  fn: T(({ split: c }) => [
1477
- k(t.$slots, "split-label", {
1477
+ C(t.$slots, "split-label", {
1478
1478
  split: c,
1479
1479
  view: r.view.id
1480
1480
  })
@@ -1482,8 +1482,8 @@ function Xi(t, e, s, l, r, i) {
1482
1482
  key: "1"
1483
1483
  } : void 0
1484
1484
  ]), 1032, ["options", "edit-events", "view-props", "week-days", "has-splits", "day-splits", "switch-to-narrower-view"]),
1485
- s.hideBody ? D("", !0) : (v(), m("div", _i, [
1486
- We(Ye, {
1485
+ s.hideBody ? D("", !0) : (v(), m("div", Si, [
1486
+ Ve(Pe, {
1487
1487
  name: `slide-fade--${r.transitionDirection}`,
1488
1488
  appear: s.transitions
1489
1489
  }, {
@@ -1494,9 +1494,9 @@ function Xi(t, e, s, l, r, i) {
1494
1494
  key: s.transitions ? r.view.id : !1,
1495
1495
  column: ""
1496
1496
  }, [
1497
- s.showAllDayEvents && i.hasTimeColumn && (!i.cellOrSplitMinWidth || i.isDayView && !s.minSplitWidth) ? (v(), G(n, ze(Re({ key: 0 }, i.allDayBar)), {
1497
+ s.showAllDayEvents && i.hasTimeColumn && (!i.cellOrSplitMinWidth || i.isDayView && !s.minSplitWidth) ? (v(), J(n, Ke(Xe({ key: 0 }, i.allDayBar)), {
1498
1498
  event: T(({ event: c, view: y }) => [
1499
- k(t.$slots, "event", {
1499
+ C(t.$slots, "event", {
1500
1500
  view: y,
1501
1501
  event: c
1502
1502
  }, () => [
@@ -1506,16 +1506,16 @@ function Xi(t, e, s, l, r, i) {
1506
1506
  contenteditable: "",
1507
1507
  onBlur: (w) => i.onEventTitleBlur(w, c),
1508
1508
  innerHTML: c.title
1509
- }, null, 40, Ti)) : c.title ? (v(), m("div", {
1509
+ }, null, 40, Ei)) : c.title ? (v(), m("div", {
1510
1510
  key: 1,
1511
1511
  class: "vuecal__event-title",
1512
1512
  innerHTML: c.title
1513
- }, null, 8, Mi)) : D("", !0),
1513
+ }, null, 8, Hi)) : D("", !0),
1514
1514
  c.content && !i.hasShortEvents && !i.isShortMonthView ? (v(), m("div", {
1515
1515
  key: 2,
1516
1516
  class: "vuecal__event-content",
1517
1517
  innerHTML: c.content
1518
- }, null, 8, Si)) : D("", !0)
1518
+ }, null, 8, Oi)) : D("", !0)
1519
1519
  ])
1520
1520
  ]),
1521
1521
  _: 3
@@ -1524,39 +1524,39 @@ function Xi(t, e, s, l, r, i) {
1524
1524
  class: V(["vuecal__bg", { vuecal__flex: !i.hasTimeColumn }]),
1525
1525
  column: ""
1526
1526
  }, [
1527
- H("div", Ei, [
1528
- i.hasTimeColumn ? (v(), m("div", Hi, [
1527
+ H("div", Wi, [
1528
+ i.hasTimeColumn ? (v(), m("div", Vi, [
1529
1529
  s.showAllDayEvents && i.cellOrSplitMinWidth && !(i.isDayView && !s.minSplitWidth) ? (v(), m("div", {
1530
1530
  key: 0,
1531
1531
  class: "vuecal__all-day-text",
1532
- style: z({ height: i.allDayBar.height })
1532
+ style: R({ height: i.allDayBar.height })
1533
1533
  }, [
1534
1534
  H("span", null, E(r.texts.allDay), 1)
1535
1535
  ], 4)) : D("", !0),
1536
- (v(!0), m(L, null, N(i.timeCells, (c, y) => (v(), m("div", {
1536
+ (v(!0), m(L, null, B(i.timeCells, (c, y) => (v(), m("div", {
1537
1537
  class: "vuecal__time-cell",
1538
1538
  key: y,
1539
- style: z(`height: ${s.timeCellHeight}px`)
1539
+ style: R(`height: ${s.timeCellHeight}px`)
1540
1540
  }, [
1541
- k(t.$slots, "time-cell", {
1541
+ C(t.$slots, "time-cell", {
1542
1542
  hours: c.hours,
1543
1543
  minutes: c.minutes
1544
1544
  }, () => [
1545
1545
  e[6] || (e[6] = H("span", { class: "vuecal__time-cell-line" }, null, -1)),
1546
- H("span", Oi, E(c.label), 1)
1546
+ H("span", Ai, E(c.label), 1)
1547
1547
  ])
1548
1548
  ], 4))), 128))
1549
1549
  ])) : D("", !0),
1550
- s.showWeekNumbers && i.isMonthView ? (v(), m("div", Wi, [
1551
- (v(), m(L, null, N(6, (c) => H("div", {
1550
+ s.showWeekNumbers && i.isMonthView ? (v(), m("div", ji, [
1551
+ (v(), m(L, null, B(6, (c) => H("div", {
1552
1552
  class: "vuecal__flex vuecal__week-number-cell",
1553
1553
  key: c,
1554
1554
  grow: ""
1555
1555
  }, [
1556
- k(t.$slots, "week-number-cell", {
1556
+ C(t.$slots, "week-number-cell", {
1557
1557
  week: i.getWeekNumber(c - 1)
1558
1558
  }, () => [
1559
- x(E(i.getWeekNumber(c - 1)), 1)
1559
+ z(E(i.getWeekNumber(c - 1)), 1)
1560
1560
  ])
1561
1561
  ])), 64))
1562
1562
  ])) : D("", !0),
@@ -1566,17 +1566,17 @@ function Xi(t, e, s, l, r, i) {
1566
1566
  wrap: !i.cellOrSplitMinWidth || !i.isWeekView,
1567
1567
  column: !!i.cellOrSplitMinWidth
1568
1568
  }, [
1569
- i.cellOrSplitMinWidth && i.isWeekView ? (v(), G(h, {
1569
+ i.cellOrSplitMinWidth && i.isWeekView ? (v(), J(h, {
1570
1570
  key: 0,
1571
1571
  "transition-direction": r.transitionDirection,
1572
1572
  "week-days": i.weekDays,
1573
1573
  "switch-to-narrower-view": i.switchToNarrowerView,
1574
- style: z(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
1575
- }, Le({ _: 2 }, [
1574
+ style: R(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
1575
+ }, Ie({ _: 2 }, [
1576
1576
  t.$slots["weekday-heading"] ? {
1577
1577
  name: "weekday-heading",
1578
1578
  fn: T(({ heading: c, view: y }) => [
1579
- k(t.$slots, "weekday-heading", {
1579
+ C(t.$slots, "weekday-heading", {
1580
1580
  heading: c,
1581
1581
  view: y
1582
1582
  })
@@ -1586,7 +1586,7 @@ function Xi(t, e, s, l, r, i) {
1586
1586
  t.$slots["split-label"] ? {
1587
1587
  name: "split-label",
1588
1588
  fn: T(({ split: c }) => [
1589
- k(t.$slots, "split-label", {
1589
+ C(t.$slots, "split-label", {
1590
1590
  split: c,
1591
1591
  view: r.view.id
1592
1592
  })
@@ -1596,23 +1596,23 @@ function Xi(t, e, s, l, r, i) {
1596
1596
  ]), 1032, ["transition-direction", "week-days", "switch-to-narrower-view", "style"])) : i.hasSplits && s.stickySplitLabels && s.minSplitWidth ? (v(), m("div", {
1597
1597
  key: 1,
1598
1598
  class: "vuecal__flex vuecal__split-days-headers",
1599
- style: z(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
1599
+ style: R(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
1600
1600
  }, [
1601
- (v(!0), m(L, null, N(i.daySplits, (c, y) => (v(), m("div", {
1601
+ (v(!0), m(L, null, B(i.daySplits, (c, y) => (v(), m("div", {
1602
1602
  class: V(["day-split-header", c.class || !1]),
1603
1603
  key: y
1604
1604
  }, [
1605
- k(t.$slots, "split-label", {
1605
+ C(t.$slots, "split-label", {
1606
1606
  split: c,
1607
1607
  view: r.view.id
1608
1608
  }, () => [
1609
- x(E(c.label), 1)
1609
+ z(E(c.label), 1)
1610
1610
  ])
1611
1611
  ], 2))), 128))
1612
1612
  ], 4)) : D("", !0),
1613
- s.showAllDayEvents && i.hasTimeColumn && (i.isWeekView && i.cellOrSplitMinWidth || i.isDayView && i.hasSplits && s.minSplitWidth) ? (v(), G(n, ze(Re({ key: 2 }, i.allDayBar)), {
1613
+ s.showAllDayEvents && i.hasTimeColumn && (i.isWeekView && i.cellOrSplitMinWidth || i.isDayView && i.hasSplits && s.minSplitWidth) ? (v(), J(n, Ke(Xe({ key: 2 }, i.allDayBar)), {
1614
1614
  event: T(({ event: c, view: y }) => [
1615
- k(t.$slots, "event", {
1615
+ C(t.$slots, "event", {
1616
1616
  view: y,
1617
1617
  event: c
1618
1618
  }, () => [
@@ -1622,16 +1622,16 @@ function Xi(t, e, s, l, r, i) {
1622
1622
  contenteditable: "",
1623
1623
  onBlur: (w) => i.onEventTitleBlur(w, c),
1624
1624
  innerHTML: c.title
1625
- }, null, 40, Ai)) : c.title ? (v(), m("div", {
1625
+ }, null, 40, Li)) : c.title ? (v(), m("div", {
1626
1626
  key: 1,
1627
1627
  class: "vuecal__event-title",
1628
1628
  innerHTML: c.title
1629
- }, null, 8, ji)) : D("", !0),
1629
+ }, null, 8, Yi)) : D("", !0),
1630
1630
  c.content && !i.hasShortEvents && !i.isShortMonthView ? (v(), m("div", {
1631
1631
  key: 2,
1632
1632
  class: "vuecal__event-content",
1633
1633
  innerHTML: c.content
1634
- }, null, 8, Fi)) : D("", !0)
1634
+ }, null, 8, Ni)) : D("", !0)
1635
1635
  ])
1636
1636
  ]),
1637
1637
  _: 3
@@ -1641,9 +1641,9 @@ function Xi(t, e, s, l, r, i) {
1641
1641
  ref: (c) => r.cellsEl = c,
1642
1642
  grow: "",
1643
1643
  wrap: !i.cellOrSplitMinWidth || !i.isWeekView,
1644
- style: z(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
1644
+ style: R(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
1645
1645
  }, [
1646
- (v(!0), m(L, null, N(i.viewCells, (c, y) => (v(), G(d, {
1646
+ (v(!0), m(L, null, B(i.viewCells, (c, y) => (v(), J(d, {
1647
1647
  key: y,
1648
1648
  options: t.$props,
1649
1649
  "edit-events": i.editEvents,
@@ -1654,7 +1654,7 @@ function Xi(t, e, s, l, r, i) {
1654
1654
  "cell-splits": i.hasSplits && i.daySplits || []
1655
1655
  }, {
1656
1656
  "cell-content": T(({ events: w, split: A, selectCell: g }) => [
1657
- k(t.$slots, "cell-content", {
1657
+ C(t.$slots, "cell-content", {
1658
1658
  cell: c,
1659
1659
  view: r.view,
1660
1660
  goNarrower: g,
@@ -1664,29 +1664,29 @@ function Xi(t, e, s, l, r, i) {
1664
1664
  key: 0,
1665
1665
  class: "split-label",
1666
1666
  innerHTML: A.label
1667
- }, null, 8, Yi)) : D("", !0),
1667
+ }, null, 8, Ii)) : D("", !0),
1668
1668
  c.content ? (v(), m("div", {
1669
1669
  key: 1,
1670
1670
  class: "vuecal__cell-date",
1671
1671
  innerHTML: c.content
1672
- }, null, 8, Ni)) : D("", !0),
1673
- (i.isMonthView && !s.eventsOnMonthView || i.isYearsOrYearView && s.eventsCountOnYearView) && w.length ? (v(), m("div", Bi, [
1674
- k(t.$slots, "events-count", {
1672
+ }, null, 8, Pi)) : D("", !0),
1673
+ (i.isMonthView && !s.eventsOnMonthView || i.isYearsOrYearView && s.eventsCountOnYearView) && w.length ? (v(), m("div", xi, [
1674
+ C(t.$slots, "events-count", {
1675
1675
  view: r.view,
1676
1676
  events: w
1677
1677
  }, () => [
1678
- x(E(w.length), 1)
1678
+ z(E(w.length), 1)
1679
1679
  ])
1680
1680
  ])) : D("", !0),
1681
- !i.cellOrSplitHasEvents(w, A) && i.isWeekOrDayView ? (v(), m("div", Ii, [
1682
- k(t.$slots, "no-event", {}, () => [
1683
- x(E(r.texts.noEvent), 1)
1681
+ !i.cellOrSplitHasEvents(w, A) && i.isWeekOrDayView ? (v(), m("div", zi, [
1682
+ C(t.$slots, "no-event", {}, () => [
1683
+ z(E(r.texts.noEvent), 1)
1684
1684
  ])
1685
1685
  ])) : D("", !0)
1686
1686
  ])
1687
1687
  ]),
1688
1688
  event: T(({ event: w, view: A }) => [
1689
- k(t.$slots, "event", {
1689
+ C(t.$slots, "event", {
1690
1690
  view: A,
1691
1691
  event: w
1692
1692
  }, () => [
@@ -1696,45 +1696,45 @@ function Xi(t, e, s, l, r, i) {
1696
1696
  contenteditable: "",
1697
1697
  onBlur: (g) => i.onEventTitleBlur(g, w),
1698
1698
  innerHTML: w.title
1699
- }, null, 40, Pi)) : w.title ? (v(), m("div", {
1699
+ }, null, 40, Ri)) : w.title ? (v(), m("div", {
1700
1700
  key: 1,
1701
1701
  class: "vuecal__event-title",
1702
1702
  innerHTML: w.title
1703
- }, null, 8, xi)) : D("", !0),
1704
- s.time && !w.allDay && !(i.isMonthView && (w.allDay || s.showAllDayEvents === "short")) && !i.isShortMonthView ? (v(), m("div", zi, [
1705
- x(E(r.utils.date.formatTime(w.start, i.TimeFormat)), 1),
1706
- w.endTimeMinutes ? (v(), m("span", Ri, " - " + E(r.utils.date.formatTime(w.end, i.TimeFormat, null, !0)), 1)) : D("", !0),
1707
- w.daysCount > 1 && (w.segments[c.formattedDate] || {}).isFirstDay ? (v(), m("small", Ui, " +" + E(w.daysCount - 1) + E((r.texts.day[0] || "").toLowerCase()), 1)) : D("", !0)
1703
+ }, null, 8, Ui)) : D("", !0),
1704
+ s.time && !w.allDay && !(i.isMonthView && (w.allDay || s.showAllDayEvents === "short")) && !i.isShortMonthView ? (v(), m("div", qi, [
1705
+ z(E(r.utils.date.formatTime(w.start, i.TimeFormat)), 1),
1706
+ w.endTimeMinutes ? (v(), m("span", Ki, " - " + E(r.utils.date.formatTime(w.end, i.TimeFormat, null, !0)), 1)) : D("", !0),
1707
+ w.daysCount > 1 && (w.segments[c.formattedDate] || {}).isFirstDay ? (v(), m("small", Xi, " +" + E(w.daysCount - 1) + E((r.texts.day[0] || "").toLowerCase()), 1)) : D("", !0)
1708
1708
  ])) : D("", !0),
1709
1709
  w.content && !(i.isMonthView && w.allDay && s.showAllDayEvents === "short") && !i.isShortMonthView ? (v(), m("div", {
1710
1710
  key: 3,
1711
1711
  class: "vuecal__event-content",
1712
1712
  innerHTML: w.content
1713
- }, null, 8, qi)) : D("", !0)
1713
+ }, null, 8, Gi)) : D("", !0)
1714
1714
  ])
1715
1715
  ]),
1716
1716
  "no-event": T(() => [
1717
- k(t.$slots, "no-event", {}, () => [
1718
- x(E(r.texts.noEvent), 1)
1717
+ C(t.$slots, "no-event", {}, () => [
1718
+ z(E(r.texts.noEvent), 1)
1719
1719
  ])
1720
1720
  ]),
1721
1721
  _: 2
1722
1722
  }, 1032, ["options", "edit-events", "data", "cell-width", "min-timestamp", "max-timestamp", "cell-splits"]))), 128))
1723
- ], 12, Li)
1724
- ], 10, Vi)
1723
+ ], 12, Bi)
1724
+ ], 10, Fi)
1725
1725
  ])
1726
1726
  ], 2)
1727
1727
  ]))
1728
1728
  ]),
1729
1729
  _: 3
1730
1730
  }, 8, ["name", "appear"]),
1731
- r.ready ? D("", !0) : (v(), m("div", Ki, e[7] || (e[7] = [
1731
+ r.ready ? D("", !0) : (v(), m("div", Ji, e[7] || (e[7] = [
1732
1732
  H("div", null, null, -1)
1733
1733
  ])))
1734
1734
  ]))
1735
- ], 10, ki);
1735
+ ], 10, Ti);
1736
1736
  }
1737
- const Oe = 24 * 60, Fe = {
1737
+ const We = 24 * 60, Be = {
1738
1738
  weekDays: Array(7).fill(""),
1739
1739
  weekDaysShort: [],
1740
1740
  months: Array(12).fill(""),
@@ -1751,9 +1751,9 @@ const Oe = 24 * 60, Fe = {
1751
1751
  dateFormat: "dddd MMMM D, YYYY",
1752
1752
  am: "am",
1753
1753
  pm: "pm"
1754
- }, it = ["years", "year", "month", "week", "day"], st = new Ft(Fe), Gi = {
1754
+ }, nt = ["years", "year", "month", "week", "day"], rt = new Nt(Be), Qi = {
1755
1755
  name: "vue-cal",
1756
- components: { "vuecal-cell": ot, "vuecal-header": ni, WeekdaysHeadings: rt, AllDayBar: bi },
1756
+ components: { "vuecal-cell": ht, "vuecal-header": ui, WeekdaysHeadings: ct, AllDayBar: _i },
1757
1757
  // By Vue design, passing props loses the reactivity unless it's a method or reactive OBJECT.
1758
1758
  provide() {
1759
1759
  return {
@@ -1824,7 +1824,7 @@ const Oe = 24 * 60, Fe = {
1824
1824
  // In minutes.
1825
1825
  timeStep: { type: Number, default: 60 },
1826
1826
  // In minutes.
1827
- timeTo: { type: Number, default: Oe },
1827
+ timeTo: { type: Number, default: We },
1828
1828
  // In minutes.
1829
1829
  todayButton: { type: Boolean, default: !1 },
1830
1830
  transitions: { type: Boolean, default: !0 },
@@ -1838,10 +1838,10 @@ const Oe = 24 * 60, Fe = {
1838
1838
  ready: !1,
1839
1839
  // Is vue-cal ready.
1840
1840
  // Make texts reactive before a locale is loaded.
1841
- texts: { ...Fe },
1841
+ texts: { ...Be },
1842
1842
  utils: {
1843
1843
  // Remove prototypes ASAP if the user wants so.
1844
- date: (this.disableDatePrototypes ? st.removePrototypes() : !1) || st,
1844
+ date: (this.disableDatePrototypes ? rt.removePrototypes() : !1) || rt,
1845
1845
  cell: null,
1846
1846
  // Note: Destructuring class method loses the `this` context and Vue Cal becomes inaccessible
1847
1847
  // from the event utils function. Don't do:
@@ -1942,11 +1942,11 @@ const Oe = 24 * 60, Fe = {
1942
1942
  */
1943
1943
  async loadLocale(t) {
1944
1944
  if (typeof this.locale == "object") {
1945
- this.texts = Object.assign({}, Fe, t), this.utils.date.updateTexts(this.texts);
1945
+ this.texts = Object.assign({}, Be, t), this.utils.date.updateTexts(this.texts);
1946
1946
  return;
1947
1947
  }
1948
- const e = await jt(/* @__PURE__ */ Object.assign({ "./i18n/ar.json": () => import("./ar.es-XxSuE68c.mjs"), "./i18n/bg.json": () => import("./bg.es-BJ7fu6yy.mjs"), "./i18n/bn.json": () => import("./bn.es-CYlBkxc5.mjs"), "./i18n/bs.json": () => import("./bs.es-yMnaKmdi.mjs"), "./i18n/ca.json": () => import("./ca.es-DIhlxmQc.mjs"), "./i18n/cs.json": () => import("./cs.es-BN8oxRXQ.mjs"), "./i18n/da.json": () => import("./da.es-DJB5lAli.mjs"), "./i18n/de.json": () => import("./de.es-glb8GeJh.mjs"), "./i18n/el.json": () => import("./el.es-_bBZf22h.mjs"), "./i18n/en.json": () => import("./en.es-CV9nmQGr.mjs"), "./i18n/es.json": () => import("./es.es-CZjcWK54.mjs"), "./i18n/et.json": () => import("./et.es-CjvQAzNF.mjs"), "./i18n/fa.json": () => import("./fa.es-DykeFwDA.mjs"), "./i18n/fi.json": () => import("./fi.es-Bl7Pp7AO.mjs"), "./i18n/fr.json": () => import("./fr.es-CNKVhFfO.mjs"), "./i18n/he.json": () => import("./he.es-nF4GFhjH.mjs"), "./i18n/hr.json": () => import("./hr.es-QFfz660j.mjs"), "./i18n/hu.json": () => import("./hu.es-Ck2rE01V.mjs"), "./i18n/id.json": () => import("./id.es-Je7FEUJ5.mjs"), "./i18n/is.json": () => import("./is.es-bzprHvXI.mjs"), "./i18n/it.json": () => import("./it.es-CJtfqmNS.mjs"), "./i18n/ja.json": () => import("./ja.es-BaiGjqZ6.mjs"), "./i18n/ka.json": () => import("./ka.es-x9QJo_dl.mjs"), "./i18n/ko.json": () => import("./ko.es-6c447eTS.mjs"), "./i18n/lt.json": () => import("./lt.es-2twYdvmJ.mjs"), "./i18n/mn.json": () => import("./mn.es-BLQRG1uu.mjs"), "./i18n/nl.json": () => import("./nl.es-bB1qWR_S.mjs"), "./i18n/no.json": () => import("./no.es-CWDVXpTf.mjs"), "./i18n/pl.json": () => import("./pl.es-Dzct23w9.mjs"), "./i18n/pt-br.json": () => import("./pt-br.es-BeBuiitI.mjs"), "./i18n/pt-pt.json": () => import("./pt-pt.es-BeBuiitI.mjs"), "./i18n/ro.json": () => import("./ro.es-DfMVJ30M.mjs"), "./i18n/ru.json": () => import("./ru.es-Bv9UvrBe.mjs"), "./i18n/sk.json": () => import("./sk.es-CUOTpLuL.mjs"), "./i18n/sl.json": () => import("./sl.es-DeIGgZbR.mjs"), "./i18n/sq.json": () => import("./sq.es-CQJJrZHv.mjs"), "./i18n/sr.json": () => import("./sr.es-CKS0AkiW.mjs"), "./i18n/sv.json": () => import("./sv.es-ChHQRrAe.mjs"), "./i18n/tr.json": () => import("./tr.es-B3v90gVv.mjs"), "./i18n/uk.json": () => import("./uk.es-CiR4NnbN.mjs"), "./i18n/vi.json": () => import("./vi.es-DFDi5l7p.mjs"), "./i18n/zh-cn.json": () => import("./zh-cn.es-9cbEAuAi.mjs"), "./i18n/zh-hk.json": () => import("./zh-hk.es-z0tio4jE.mjs") }), `./i18n/${t}.json`, 3);
1949
- this.texts = Object.assign({}, Fe, e), this.utils.date.updateTexts(this.texts);
1948
+ const e = await Yt(/* @__PURE__ */ Object.assign({ "./i18n/ar.json": () => import("./ar.es-XxSuE68c.mjs"), "./i18n/bg.json": () => import("./bg.es-BJ7fu6yy.mjs"), "./i18n/bn.json": () => import("./bn.es-CYlBkxc5.mjs"), "./i18n/bs.json": () => import("./bs.es-yMnaKmdi.mjs"), "./i18n/ca.json": () => import("./ca.es-DIhlxmQc.mjs"), "./i18n/cs.json": () => import("./cs.es-BN8oxRXQ.mjs"), "./i18n/da.json": () => import("./da.es-DJB5lAli.mjs"), "./i18n/de.json": () => import("./de.es-glb8GeJh.mjs"), "./i18n/el.json": () => import("./el.es-_bBZf22h.mjs"), "./i18n/en.json": () => import("./en.es-CV9nmQGr.mjs"), "./i18n/es.json": () => import("./es.es-CZjcWK54.mjs"), "./i18n/et.json": () => import("./et.es-CjvQAzNF.mjs"), "./i18n/fa.json": () => import("./fa.es-DykeFwDA.mjs"), "./i18n/fi.json": () => import("./fi.es-Bl7Pp7AO.mjs"), "./i18n/fr.json": () => import("./fr.es-CNKVhFfO.mjs"), "./i18n/he.json": () => import("./he.es-nF4GFhjH.mjs"), "./i18n/hr.json": () => import("./hr.es-QFfz660j.mjs"), "./i18n/hu.json": () => import("./hu.es-Ck2rE01V.mjs"), "./i18n/id.json": () => import("./id.es-Je7FEUJ5.mjs"), "./i18n/is.json": () => import("./is.es-bzprHvXI.mjs"), "./i18n/it.json": () => import("./it.es-CJtfqmNS.mjs"), "./i18n/ja.json": () => import("./ja.es-BaiGjqZ6.mjs"), "./i18n/ka.json": () => import("./ka.es-x9QJo_dl.mjs"), "./i18n/ko.json": () => import("./ko.es-6c447eTS.mjs"), "./i18n/lt.json": () => import("./lt.es-2twYdvmJ.mjs"), "./i18n/mn.json": () => import("./mn.es-BLQRG1uu.mjs"), "./i18n/nl.json": () => import("./nl.es-bB1qWR_S.mjs"), "./i18n/no.json": () => import("./no.es-CWDVXpTf.mjs"), "./i18n/pl.json": () => import("./pl.es-Dzct23w9.mjs"), "./i18n/pt-br.json": () => import("./pt-br.es-BeBuiitI.mjs"), "./i18n/pt-pt.json": () => import("./pt-pt.es-BeBuiitI.mjs"), "./i18n/ro.json": () => import("./ro.es-DfMVJ30M.mjs"), "./i18n/ru.json": () => import("./ru.es-Bv9UvrBe.mjs"), "./i18n/sk.json": () => import("./sk.es-CUOTpLuL.mjs"), "./i18n/sl.json": () => import("./sl.es-DeIGgZbR.mjs"), "./i18n/sq.json": () => import("./sq.es-CQJJrZHv.mjs"), "./i18n/sr.json": () => import("./sr.es-CKS0AkiW.mjs"), "./i18n/sv.json": () => import("./sv.es-ChHQRrAe.mjs"), "./i18n/tr.json": () => import("./tr.es-B3v90gVv.mjs"), "./i18n/uk.json": () => import("./uk.es-CiR4NnbN.mjs"), "./i18n/vi.json": () => import("./vi.es-DFDi5l7p.mjs"), "./i18n/zh-cn.json": () => import("./zh-cn.es-9cbEAuAi.mjs"), "./i18n/zh-hk.json": () => import("./zh-hk.es-z0tio4jE.mjs") }), `./i18n/${t}.json`, 3);
1949
+ this.texts = Object.assign({}, Be, e), this.utils.date.updateTexts(this.texts);
1950
1950
  },
1951
1951
  /**
1952
1952
  * Only import drag and drop module on demand to keep a small library weight.
@@ -1966,8 +1966,8 @@ const Oe = 24 * 60, Fe = {
1966
1966
  * @return {String} a valid view.
1967
1967
  */
1968
1968
  validateView(t) {
1969
- return it.includes(t) || (console.error(`Vue Cal: invalid active-view parameter provided: "${t}".
1970
- A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews.includes(t) || (console.warn(`Vue Cal: the provided active-view "${t}" is disabled. Using the "${this.enabledViews[0]}" view instead.`), t = this.enabledViews[0]), t;
1969
+ return nt.includes(t) || (console.error(`Vue Cal: invalid active-view parameter provided: "${t}".
1970
+ A valid view must be one of: ${nt.join(", ")}.`), t = "week"), this.enabledViews.includes(t) || (console.warn(`Vue Cal: the provided active-view "${t}" is disabled. Using the "${this.enabledViews[0]}" view instead.`), t = this.enabledViews[0]), t;
1971
1971
  },
1972
1972
  /**
1973
1973
  * On click/dblclick of a cell go to a narrower view if available.
@@ -2176,16 +2176,16 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2176
2176
  const { event: d, start: c } = i, y = this.isDOMElementAnEvent(t.target), w = e.mousedUp;
2177
2177
  if (e.mousedUp = !1, y && (this.domEvents.cancelClickEventCreation = !0), r.eventCreated) return;
2178
2178
  if (n) {
2179
- const { originalEnd: g, originalEndTimeMinutes: Y, endTimeMinutes: j } = s, _ = this.view.events.find((B) => B._eid === s._eid);
2179
+ const { originalEnd: g, originalEndTimeMinutes: Y, endTimeMinutes: j } = s, _ = this.view.events.find((I) => I._eid === s._eid);
2180
2180
  if (h = j && j !== Y, _ && _.end.getTime() !== g.getTime()) {
2181
- const B = this.mutableEvents.find((Q) => Q._eid === s._eid);
2182
- B.endTimeMinutes = _.endTimeMinutes, B.end = _.end;
2183
- const O = this.cleanupEvent(_), q = {
2181
+ const I = this.mutableEvents.find(($) => $._eid === s._eid);
2182
+ I.endTimeMinutes = _.endTimeMinutes, I.end = _.end;
2183
+ const O = this.cleanupEvent(_), K = {
2184
2184
  ...this.cleanupEvent(_),
2185
2185
  end: g,
2186
2186
  endTimeMinutes: _.originalEndTimeMinutes
2187
2187
  };
2188
- this.$emit("event-duration-change", { event: O, oldDate: s.originalEnd, originalEvent: q }), this.$emit("event-change", { event: O, originalEvent: q });
2188
+ this.$emit("event-duration-change", { event: O, oldDate: s.originalEnd, originalEvent: K }), this.$emit("event-change", { event: O, originalEvent: K });
2189
2189
  }
2190
2190
  _ && (_.resizing = !1), s._eid = null, s.start = null, s.split = null, s.segment = null, s.originalEndTimeMinutes = null, s.originalEnd = null, s.endTimeMinutes = null, s.startCell = null, s.endCell = null;
2191
2191
  } else c && (d && (this.emitWithEvent("event-drag-create", d), i.event.resizing = !1), i.start = null, i.split = null, i.event = null);
@@ -2215,7 +2215,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2215
2215
  const d = s.endTimeMinutes + this.snapToTime / 2;
2216
2216
  s.endTimeMinutes = d - d % this.snapToTime;
2217
2217
  }
2218
- if (i && (i.endTimeMinutes = s.endTimeMinutes), s.end.setHours(0, s.endTimeMinutes, s.endTimeMinutes === Oe ? -1 : 0, 0), this.resizeX && this.isWeekView) {
2218
+ if (i && (i.endTimeMinutes = s.endTimeMinutes), s.end.setHours(0, s.endTimeMinutes, s.endTimeMinutes === We ? -1 : 0, 0), this.resizeX && this.isWeekView) {
2219
2219
  s.daysCount = o.countDays(s.start, s.end);
2220
2220
  const d = this.cellsEl, c = d.offsetWidth / d.childElementCount, y = Math.floor(r.x / c);
2221
2221
  if (e.startCell === null && (e.startCell = y - (s.daysCount - 1)), e.endCell !== y) {
@@ -2238,7 +2238,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2238
2238
  const { dragCreateAnEvent: e } = this.domEvents, { start: s, startCursorY: l, split: r } = e, i = new Date(s), { minutes: o, cursorCoords: { y: n } } = this.minutesAtCursor(t);
2239
2239
  if (!(!e.event && Math.abs(l - n) < this.dragToCreateThreshold))
2240
2240
  if (e.event) {
2241
- if (i.setHours(0, o, o === Oe ? -1 : 0, 0), this.snapToTime) {
2241
+ if (i.setHours(0, o, o === We ? -1 : 0, 0), this.snapToTime) {
2242
2242
  let c = i.getHours() * 60 + i.getMinutes();
2243
2243
  const y = c + this.snapToTime / 2;
2244
2244
  c = y - y % this.snapToTime, i.setHours(0, c, 0, 0);
@@ -2298,7 +2298,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2298
2298
  let i = null;
2299
2299
  typeof e.end == "string" && e.end.includes("24:00") ? (i = new Date(e.end.replace(" 24:00", "")), i.setHours(23, 59, 59, 0)) : i = typeof e.end == "string" ? t.stringToDate(e.end) : e.end;
2300
2300
  let o = t.formatDateLite(i), n = t.dateToMinutes(i);
2301
- (!n || n === Oe) && (!this.time || typeof e.end == "string" && e.end.length === 10 ? i.setHours(23, 59, 59, 0) : i.setSeconds(i.getSeconds() - 1), o = t.formatDateLite(i), n = Oe);
2301
+ (!n || n === We) && (!this.time || typeof e.end == "string" && e.end.length === 10 ? i.setHours(23, 59, 59, 0) : i.setSeconds(i.getSeconds() - 1), o = t.formatDateLite(i), n = We);
2302
2302
  const h = l !== o;
2303
2303
  e = Object.assign({ ...this.utils.event.eventDefaults }, e, {
2304
2304
  // Keep the event ids scoped to this calendar instance.
@@ -2444,7 +2444,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2444
2444
  }
2445
2445
  },
2446
2446
  created() {
2447
- this.utils.cell = new Yt(this), this.utils.event = new Bt(this, this.utils.date), this.loadLocale(this.locale), this.editEvents.drag && this.loadDragAndDrop(), this.updateMutableEvents(this.events), this.view.id = this.currentView, this.selectedDate ? this.updateSelectedDate(this.selectedDate) : (this.view.selectedDate = /* @__PURE__ */ new Date(), this.switchView(this.currentView)), this.time && this.watchRealTime && (this.timeTickerIds[0] = setTimeout(this.timeTick, (60 - this.now.getSeconds()) * 1e3));
2447
+ this.utils.cell = new It(this), this.utils.event = new xt(this, this.utils.date), this.loadLocale(this.locale), this.editEvents.drag && this.loadDragAndDrop(), this.updateMutableEvents(this.events), this.view.id = this.currentView, this.selectedDate ? this.updateSelectedDate(this.selectedDate) : (this.view.selectedDate = /* @__PURE__ */ new Date(), this.switchView(this.currentView)), this.time && this.watchRealTime && (this.timeTickerIds[0] = setTimeout(this.timeTick, (60 - this.now.getSeconds()) * 1e3));
2448
2448
  },
2449
2449
  mounted() {
2450
2450
  const t = this.utils.date, e = "ontouchstart" in window, { resize: s, drag: l, create: r, delete: i, title: o } = this.editEvents, n = this.onEventClick && typeof this.onEventClick == "function";
@@ -2783,7 +2783,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2783
2783
  this.switchView(t);
2784
2784
  }
2785
2785
  }
2786
- }, lt = /* @__PURE__ */ he(Gi, [["render", Xi]]), Ji = {
2786
+ }, ot = /* @__PURE__ */ ve(Qi, [["render", Zi]]), $i = {
2787
2787
  /**
2788
2788
  * Unique identifier for the calendar component.
2789
2789
  * - Use `hison.component.getCalendar(id)` to access methods at runtime.
@@ -2925,7 +2925,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2925
2925
  timeFormat: {
2926
2926
  type: String,
2927
2927
  required: !1,
2928
- validator: (t) => t == null || kt.includes(t)
2928
+ validator: (t) => t == null || Mt.includes(t)
2929
2929
  },
2930
2930
  /**
2931
2931
  * Time axis start (minutes from 0..1440).
@@ -2967,7 +2967,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2967
2967
  activeView: {
2968
2968
  type: String,
2969
2969
  required: !1,
2970
- validator: (t) => t == null || Ze.includes(t)
2970
+ validator: (t) => t == null || tt.includes(t)
2971
2971
  },
2972
2972
  /**
2973
2973
  * List of views to disable in navigation.
@@ -2976,12 +2976,12 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2976
2976
  disableViews: {
2977
2977
  type: Array,
2978
2978
  required: !1,
2979
- validator: (t) => t == null || Array.isArray(t) && t.every((e) => Ze.includes(e))
2979
+ validator: (t) => t == null || Array.isArray(t) && t.every((e) => tt.includes(e))
2980
2980
  }
2981
- }, Zi = wt({
2981
+ }, es = bt({
2982
2982
  name: "HCalendar",
2983
- components: { VueCal: lt },
2984
- props: Ji,
2983
+ components: { VueCal: ot },
2984
+ props: $i,
2985
2985
  emits: [
2986
2986
  "responsive-change",
2987
2987
  "cell-click",
@@ -2989,353 +2989,363 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
2989
2989
  "mounted"
2990
2990
  ],
2991
2991
  setup(t, { emit: e, attrs: s }) {
2992
- const l = t.id || Ct(), r = `hcalendar:${l}`, i = b(null), o = b(null), n = _t(), h = Dt(), d = Ie(() => Object.keys(h)), c = b(t.visible), y = b(t.disable), w = Ie(() => c.value ? "" : "hison-display-none"), A = Ie(() => y.value ? "hison-disable-calendar" : ""), g = b(P.utils.getJSDateObject(t.selectedDate) ?? /* @__PURE__ */ new Date()), Y = g.value, j = b(t.events ?? []), _ = b(t.weekendColor ? ue(t.weekendColor) : void 0), B = b(t.weekendDays), O = b(t.selectedColor ? ue(t.selectedColor) : void 0), q = b(t.showTodayColor), Q = b(t.specialTime ?? {}), ne = b(t.dateCellMinHeight), ee = b(t.dateCellMaxHeight), ve = b(t.disableDays), me = b(t.eventsOnMonthView), ye = b(t.hideWeekdays), fe = b(t.hideWeekends), we = b(t.locale), K = b(
2992
+ const l = t.id || St(), r = `hcalendar:${l}`, i = p(null), o = p(null), n = Et(), h = kt(), d = Re(() => Object.keys(h)), c = p(t.visible), y = p(t.disable), w = Re(() => c.value ? "" : "hison-display-none"), A = Re(() => y.value ? "hison-disable-calendar" : ""), g = p(x.utils.getJSDateObject(t.selectedDate) ?? /* @__PURE__ */ new Date()), Y = g.value, j = p(t.events ?? []), _ = p(t.weekendColor ? de(t.weekendColor) : void 0), I = p(t.weekendDays), O = p(t.selectedColor ? de(t.selectedColor) : void 0), K = p(t.showTodayColor), $ = p(t.specialTime ?? {}), re = p(t.dateCellMinHeight), te = p(t.dateCellMaxHeight), me = p(t.disableDays), ye = p(t.eventsOnMonthView), fe = p(t.hideWeekdays), we = p(t.hideWeekends), De = p(t.locale), X = p(
2993
2993
  y.value ? "100-01-01" : t.maxDate
2994
- ), te = b(t.minDate), re = b(t.startWeekOnSunday), De = b(t.time), ge = b(t.timeCellHeight), pe = b(t.timeFormat), be = b(t.timeFrom), ke = b(t.timeStep), Ce = b(t.timeTo), _e = b(t.hideTitleBar), Te = b(t.twelveHour), Ne = b(t.activeView), Me = b(t.disableViews), X = b([]), ie = () => {
2994
+ ), ie = p(t.minDate), oe = p(t.startWeekOnSunday), ge = p(t.time), pe = p(t.timeCellHeight), be = p(t.timeFormat), ke = p(t.timeFrom), Ce = p(t.timeStep), _e = p(t.timeTo), Te = p(t.hideTitleBar), Me = p(t.twelveHour), xe = p(t.activeView), Se = p(t.disableViews), G = p([]), Ae = p(!0), je = p(!1), N = p(!1), se = () => {
2995
2995
  var a;
2996
- if (X.value = Tt(Mt(t.class) || "", n.value), St(X.value, "col") === -1 && X.value.push("hison-col-12"), Qe(X.value, "size", C.componentStyle.size), Qe(X.value, "color", "primary"), (a = i.value) != null && a.$el) {
2996
+ if (G.value = Ht(Ot(t.class) || "", n.value), Wt(G.value, "col") === -1 && G.value.push("hison-col-12"), it(G.value, "size", k.componentStyle.size), it(G.value, "color", "primary"), (a = i.value) != null && a.$el) {
2997
2997
  const u = i.value.$el;
2998
- let f = Ve(X.value, "color");
2999
- const W = Ve(X.value, "size");
3000
- switch ((!f || !$e(f)) && (f = "primary"), u.style.setProperty("--vuecal-filled-back-color", C.componentStyle.componentColor[`${f}`].buttonColor), u.style.setProperty("--vuecal-filled-font-color", C.componentStyle.componentColor[`${f}`].filledTextColor), C.componentStyle.invertColor ? (u.style.setProperty("--vuecal-empty-back-color", C.componentStyle.emptyInvertColor), u.style.setProperty("--vuecal-empty-font-color", C.componentStyle.emptyTextInvertColor), u.style.setProperty("--vuecal-empty-disabled-color", R(C.componentStyle.emptyTextInvertColor, 0.3)), u.style.setProperty("--vuecal-empty-out-of-scope-font-color", R(C.componentStyle.emptyTextInvertColor, 0.5)), u.style.setProperty("--vuecal-selected-back-color", O.value ? Ae(O.value) : R(C.componentStyle.componentColor[`${f}`].buttonColor, 0.5)), u.style.setProperty("--vuecal-weekend-back-color", _.value ? Ae(_.value) : null), u.style.setProperty("--vuecal-today-back-color", q.value ? R(C.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : C.componentStyle.emptyInvertColor)) : (u.style.setProperty("--vuecal-empty-back-color", C.componentStyle.emptyColor), u.style.setProperty("--vuecal-empty-font-color", C.componentStyle.emptyTextColor), u.style.setProperty("--vuecal-empty-disabled-color", R(C.componentStyle.emptyTextColor, 0.3)), u.style.setProperty("--vuecal-empty-out-of-scope-font-color", R(C.componentStyle.emptyTextColor, 0.5)), u.style.setProperty("--vuecal-selected-back-color", O.value ? O.value : R(C.componentStyle.componentColor[`${f}`].buttonColor, 0.5)), u.style.setProperty("--vuecal-weekend-back-color", _.value ? _.value : null), u.style.setProperty("--vuecal-today-back-color", q.value ? R(C.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : C.componentStyle.emptyColor)), W) {
3001
- case je.xl:
2998
+ let f = Fe(G.value, "color");
2999
+ const W = Fe(G.value, "size");
3000
+ switch ((!f || !st(f)) && (f = "primary"), u.style.setProperty("--vuecal-filled-back-color", k.componentStyle.componentColor[`${f}`].buttonColor), u.style.setProperty("--vuecal-filled-font-color", k.componentStyle.componentColor[`${f}`].filledTextColor), k.componentStyle.invertColor ? (u.style.setProperty("--vuecal-empty-back-color", k.componentStyle.emptyInvertColor), u.style.setProperty("--vuecal-empty-font-color", k.componentStyle.emptyTextInvertColor), u.style.setProperty("--vuecal-empty-disabled-color", U(k.componentStyle.emptyTextInvertColor, 0.3)), u.style.setProperty("--vuecal-empty-out-of-scope-font-color", U(k.componentStyle.emptyTextInvertColor, 0.5)), u.style.setProperty("--vuecal-selected-back-color", O.value ? Le(O.value) : U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.5)), u.style.setProperty("--vuecal-weekend-back-color", _.value ? Le(_.value) : null), u.style.setProperty("--vuecal-today-back-color", K.value ? U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : k.componentStyle.emptyInvertColor)) : (u.style.setProperty("--vuecal-empty-back-color", k.componentStyle.emptyColor), u.style.setProperty("--vuecal-empty-font-color", k.componentStyle.emptyTextColor), u.style.setProperty("--vuecal-empty-disabled-color", U(k.componentStyle.emptyTextColor, 0.3)), u.style.setProperty("--vuecal-empty-out-of-scope-font-color", U(k.componentStyle.emptyTextColor, 0.5)), u.style.setProperty("--vuecal-selected-back-color", O.value ? O.value : U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.5)), u.style.setProperty("--vuecal-weekend-back-color", _.value ? _.value : null), u.style.setProperty("--vuecal-today-back-color", K.value ? U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : k.componentStyle.emptyColor)), W) {
3001
+ case Ye.xl:
3002
3002
  u.style.setProperty("--vuecal-header-font-size", "0.9em"), u.style.setProperty("--vuecal-title-button-font-size", "1em"), u.style.setProperty("--vuecal-body-font-size", "0.9em"), u.style.setProperty("--vuecal-no-event-font-size", "0.8em");
3003
3003
  break;
3004
- case je.l:
3004
+ case Ye.l:
3005
3005
  u.style.setProperty("--vuecal-header-font-size", "0.75em"), u.style.setProperty("--vuecal-title-button-font-size", "1em"), u.style.setProperty("--vuecal-body-font-size", "0.9em"), u.style.setProperty("--vuecal-no-event-font-size", "0.8em");
3006
3006
  break;
3007
- case je.m:
3007
+ case Ye.m:
3008
3008
  u.style.setProperty("--vuecal-header-font-size", "0.7em"), u.style.setProperty("--vuecal-title-button-font-size", "0.6em"), u.style.setProperty("--vuecal-body-font-size", "0.8em"), u.style.setProperty("--vuecal-no-event-font-size", "0.7em");
3009
3009
  break;
3010
- case je.s:
3010
+ case Ye.s:
3011
3011
  u.style.setProperty("--vuecal-header-font-size", "0.6em"), u.style.setProperty("--vuecal-title-button-font-size", "0.5em"), u.style.setProperty("--vuecal-body-font-size", "0.8em"), u.style.setProperty("--vuecal-no-event-font-size", "0.7em");
3012
3012
  break;
3013
3013
  }
3014
3014
  u.style.setProperty("--calendar-clickable-cursor", y.value ? "not-allowed" : null);
3015
3015
  }
3016
- }, ut = (a) => {
3016
+ }, vt = (a) => {
3017
3017
  const u = /pm/i.test(a), f = /am/i.test(a), W = a.replace(/[^\d:]/g, "").trim();
3018
- let F = 0, J = 0;
3018
+ let F = 0, Z = 0;
3019
3019
  if (W.includes(":")) {
3020
- const [I, le] = W.split(":");
3021
- F = parseInt(I, 10), J = parseInt(le, 10);
3020
+ const [P, ae] = W.split(":");
3021
+ F = parseInt(P, 10), Z = parseInt(ae, 10);
3022
3022
  } else {
3023
- const I = parseInt(W, 10);
3024
- I <= 12 && (f || u) || I <= 23 ? F = I : J = I;
3023
+ const P = parseInt(W, 10);
3024
+ P <= 12 && (f || u) || P <= 23 ? F = P : Z = P;
3025
3025
  }
3026
- return u && F < 12 && (F += 12), f && F === 12 && (F = 0), F * 60 + J;
3027
- }, $ = (a) => {
3028
- if (!i.value) return;
3029
- const u = i.value.$el, f = a ?? P.utils.getJSDateObject(g.value);
3030
- if (Q.value && f) {
3031
- const W = f.getDay(), F = Q.value[W], J = u.querySelectorAll(".vuecal__time-cell");
3032
- J.length > 0 && F && Array.isArray(F) ? J.forEach((I) => {
3033
- const le = I.querySelector(".vuecal__time-cell-label");
3034
- if (le) {
3035
- const ht = le.textContent, Xe = ut(ht);
3036
- let Be = "";
3037
- F.some(({ from: vt, to: mt, className: yt }) => {
3038
- const Ge = vt <= Xe && Xe <= mt;
3039
- return Ge && (Be = yt ?? ""), Ge;
3040
- }) && I.classList.add(Be || "special_time");
3026
+ return u && F < 12 && (F += 12), f && F === 12 && (F = 0), F * 60 + Z;
3027
+ }, ee = (a) => {
3028
+ if (!i.value || N.value) return;
3029
+ const u = i.value.$el, f = a ?? x.utils.getJSDateObject(g.value);
3030
+ if ($.value && f) {
3031
+ const W = f.getDay(), F = $.value[W], Z = u.querySelectorAll(".vuecal__time-cell");
3032
+ Z.length > 0 && F && Array.isArray(F) ? Z.forEach((P) => {
3033
+ const ae = P.querySelector(".vuecal__time-cell-label");
3034
+ if (ae) {
3035
+ const ft = ae.textContent, Qe = vt(ft);
3036
+ let ze = "";
3037
+ F.some(({ from: wt, to: Dt, className: gt }) => {
3038
+ const $e = wt <= Qe && Qe <= Dt;
3039
+ return $e && (ze = gt ?? ""), $e;
3040
+ }) && P.classList.add(ze || "special_time");
3041
3041
  }
3042
- }) : J.forEach((I) => {
3043
- I.classList.forEach((le) => {
3044
- le !== "vuecal__time-cell" && I.classList.remove(le);
3042
+ }) : Z.forEach((P) => {
3043
+ P.classList.forEach((ae) => {
3044
+ ae !== "vuecal__time-cell" && P.classList.remove(ae);
3045
3045
  });
3046
3046
  });
3047
3047
  }
3048
- }, se = (a) => {
3049
- if (a === de.month || a === de.week) {
3050
- const u = i.value.$el, f = B.value ? B.value : re.value ? [0, 6] : [5, 6], W = u.querySelectorAll(".vuecal__heading");
3051
- W.length > 0 && W.forEach((F, J) => {
3052
- f.includes(J) ? F.classList.add("weekend") : F.classList.remove("weekend");
3048
+ }, le = (a) => {
3049
+ if (!N.value && (a === ce.month || a === ce.week)) {
3050
+ const u = i.value.$el, f = I.value ? I.value : oe.value ? [0, 6] : [5, 6], W = u.querySelectorAll(".vuecal__heading");
3051
+ W.length > 0 && W.forEach((F, Z) => {
3052
+ f.includes(Z) ? F.classList.add("weekend") : F.classList.remove("weekend");
3053
3053
  });
3054
3054
  }
3055
- }, Se = (a) => {
3055
+ }, Ee = (a) => {
3056
+ if (!i.value || N.value) return;
3056
3057
  const u = i.value.$el;
3057
- u.style.setProperty("--vuecal-cell-content-min_heihgt", a === "month" && ne.value ? ne.value + "px" : null), u.style.setProperty("--vuecal-cell-content-max_heihgt", a === "month" && ee.value ? ee.value + "px" : null), u.style.setProperty("--vuecal-cell-content-overflow", a === "month" && ee.value ? "auto" : null);
3058
- }, Ue = (a) => {
3059
- if (!i.value) return;
3058
+ u.style.setProperty("--vuecal-cell-content-min_heihgt", a === "month" && re.value ? re.value + "px" : null), u.style.setProperty("--vuecal-cell-content-max_heihgt", a === "month" && te.value ? te.value + "px" : null), u.style.setProperty("--vuecal-cell-content-overflow", a === "month" && te.value ? "auto" : null);
3059
+ }, Ge = (a) => {
3060
+ if (!i.value || N.value) return;
3060
3061
  const u = a ?? i.value.view.id;
3061
- _.value && Je(() => se(u)), Se(u);
3062
- }, dt = (a) => {
3063
- Ue(a.view), a.view === de.day ? $(a.startDate) : a.view === de.week && $(), Ne.value = a.view, e("view-change", a);
3064
- }, ct = (a) => {
3062
+ _.value && et(() => le(u)), Ee(u);
3063
+ }, mt = (a) => {
3064
+ N.value || (Ge(a.view), a.view === ce.day ? ee(a.startDate) : a.view === ce.week && ee(), xe.value = a.view, e("view-change", a));
3065
+ }, yt = (a) => {
3065
3066
  var f;
3067
+ if (N.value) return;
3066
3068
  const u = a instanceof Date ? a : a.date;
3067
3069
  y.value ? (g.value = Y, (f = i.value) == null || f.updateSelectedDate(Y)) : (g.value = u, e("cell-click", u));
3068
- }, qe = () => {
3069
- C.component.calendarList[l] && C.component.calendarList[l].isHisonvueComponent && console.warn(`[Hisonvue] The calendar ID is at risk of being duplicated. ${l}`), Et(r, () => {
3070
- Ke(), Je(qe);
3071
- }), i.value && (ie(), $(), Ue(), o.value = {
3070
+ }, Je = () => {
3071
+ !Ae.value || je.value || N.value || (k.component.calendarList[l] && k.component.calendarList[l].isHisonvueComponent && console.warn(`[Hisonvue] The calendar ID is at risk of being duplicated. ${l}`), Ne(r), Vt(r, () => {
3072
+ Ae.value && (Ne(r), Ze(), et(() => {
3073
+ Ae.value && Je();
3074
+ }));
3075
+ }), i.value && (se(), ee(), Ge(), o.value = {
3072
3076
  isHisonvueComponent: !0,
3073
3077
  getId: () => l,
3074
3078
  getType: () => "calendar",
3075
3079
  isDisable: () => y.value,
3076
3080
  setDisable: (a) => {
3077
- y.value = a, y.value ? K.value = "100-01-01" : K.value = t.maxDate;
3081
+ y.value = a, y.value ? X.value = "100-01-01" : X.value = t.maxDate;
3078
3082
  },
3079
3083
  isVisible: () => c.value,
3080
3084
  setVisible: (a) => {
3081
3085
  c.value = a;
3082
3086
  },
3083
- getSelectedDate: (a, u) => a ? g.value : P.utils.getDateWithFormat(g.value, u ?? P.getDatetimeFormat()),
3087
+ getSelectedDate: (a, u) => a ? g.value : x.utils.getDateWithFormat(g.value, u ?? x.getDatetimeFormat()),
3084
3088
  setSelectedDate: (a) => {
3085
- const u = P.utils.getJSDateObject(a);
3089
+ const u = x.utils.getJSDateObject(a);
3086
3090
  u && (g.value = u);
3087
3091
  },
3088
3092
  getEvents: () => j.value,
3089
3093
  setEvents: (a) => {
3090
3094
  j.value = a;
3091
3095
  },
3092
- getSpecialTime: () => Q.value,
3096
+ getSpecialTime: () => $.value,
3093
3097
  setSpecialTime: (a) => {
3094
- Q.value = a;
3098
+ $.value = a;
3095
3099
  },
3096
3100
  getWeekendColor: () => _.value,
3097
3101
  setWeekendColor: (a) => {
3098
- if (_.value = ue(a), !i.value) return;
3102
+ if (_.value = de(a), !i.value) return;
3099
3103
  const u = i.value.$el;
3100
- u && (C.componentStyle.invertColor ? u.style.setProperty("--vuecal-weekend-back-color", _.value ? Ae(_.value) : null) : u.style.setProperty("--vuecal-weekend-back-color", _.value ? _.value : null), se(i.value.view.id));
3104
+ u && (k.componentStyle.invertColor ? u.style.setProperty("--vuecal-weekend-back-color", _.value ? Le(_.value) : null) : u.style.setProperty("--vuecal-weekend-back-color", _.value ? _.value : null), le(i.value.view.id));
3101
3105
  },
3102
- getWeekendDays: () => B.value,
3106
+ getWeekendDays: () => I.value,
3103
3107
  setWeekendDays: (a) => {
3104
- B.value = a, se(i.value.view.id);
3108
+ I.value = a, le(i.value.view.id);
3105
3109
  },
3106
- isShowTodayColor: () => q.value,
3110
+ isShowTodayColor: () => K.value,
3107
3111
  setShowTodayColor: (a) => {
3108
- if (q.value = a, !i.value) return;
3112
+ if (K.value = a, !i.value) return;
3109
3113
  const u = i.value.$el;
3110
3114
  if (!u) return;
3111
- let f = Ve(X.value, "color");
3112
- (!f || !$e(f)) && (f = "primary"), C.componentStyle.invertColor ? u.style.setProperty("--vuecal-today-back-color", q.value ? R(C.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : C.componentStyle.emptyInvertColor) : u.style.setProperty("--vuecal-today-back-color", q.value ? R(C.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : C.componentStyle.emptyColor);
3115
+ let f = Fe(G.value, "color");
3116
+ (!f || !st(f)) && (f = "primary"), k.componentStyle.invertColor ? u.style.setProperty("--vuecal-today-back-color", K.value ? U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : k.componentStyle.emptyInvertColor) : u.style.setProperty("--vuecal-today-back-color", K.value ? U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : k.componentStyle.emptyColor);
3113
3117
  },
3114
3118
  getSelectedColor: () => O.value,
3115
3119
  setSelectedColor: (a) => {
3116
- if (O.value = ue(a), !i.value) return;
3120
+ if (O.value = de(a), !i.value) return;
3117
3121
  const u = i.value.$el;
3118
3122
  if (!u) return;
3119
- let f = Ve(X.value, "color");
3120
- C.componentStyle.invertColor ? u.style.setProperty("--vuecal-selected-back-color", O.value ? Ae(O.value) : R(C.componentStyle.componentColor[`${f}`].buttonColor, 0.5)) : u.style.setProperty("--vuecal-selected-back-color", O.value ? O.value : R(C.componentStyle.componentColor[`${f}`].buttonColor, 0.5));
3123
+ let f = Fe(G.value, "color");
3124
+ k.componentStyle.invertColor ? u.style.setProperty("--vuecal-selected-back-color", O.value ? Le(O.value) : U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.5)) : u.style.setProperty("--vuecal-selected-back-color", O.value ? O.value : U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.5));
3121
3125
  },
3122
- getDateCellMinHeight: () => ne.value,
3126
+ getDateCellMinHeight: () => re.value,
3123
3127
  setDateCellMinHeight: (a) => {
3124
- ne.value = a, Se(i.value.view.id);
3128
+ re.value = a, Ee(i.value.view.id);
3125
3129
  },
3126
- getDateCellMaxHeight: () => ee.value,
3130
+ getDateCellMaxHeight: () => te.value,
3127
3131
  setDateCellMaxHeight: (a) => {
3128
- ee.value = a, Se(i.value.view.id);
3132
+ te.value = a, Ee(i.value.view.id);
3129
3133
  },
3130
- getDisableDays: () => ve.value,
3134
+ getDisableDays: () => me.value,
3131
3135
  setDisableDays: (a) => {
3132
- ve.value = a;
3136
+ me.value = a;
3133
3137
  },
3134
- getEventsOnMonthView: () => me.value,
3138
+ getEventsOnMonthView: () => ye.value,
3135
3139
  setEventsOnMonthView: (a) => {
3136
- me.value = a;
3140
+ ye.value = a;
3137
3141
  },
3138
- getHideWeekdays: () => ye.value,
3142
+ getHideWeekdays: () => fe.value,
3139
3143
  setHideWeekdays: (a) => {
3140
- ye.value = a;
3144
+ fe.value = a;
3141
3145
  },
3142
- getHideWeekends: () => fe.value,
3146
+ getHideWeekends: () => we.value,
3143
3147
  setHideWeekends: (a) => {
3144
- fe.value = a;
3148
+ we.value = a;
3145
3149
  },
3146
- getLocale: () => we.value,
3150
+ getLocale: () => De.value,
3147
3151
  setLocale: (a) => {
3148
- we.value = a;
3152
+ De.value = a;
3149
3153
  },
3150
3154
  getMaxDate: (a) => {
3151
- if (K.value)
3152
- return a ? y.value ? new Date(100, 0, 1) : P.utils.getJSDateObject(K.value) : y.value ? "100-01-01" : P.utils.getDateWithFormat(K.value, P.getDateFormat());
3155
+ if (X.value)
3156
+ return a ? y.value ? new Date(100, 0, 1) : x.utils.getJSDateObject(X.value) : y.value ? "100-01-01" : x.utils.getDateWithFormat(X.value, x.getDateFormat());
3153
3157
  },
3154
3158
  setMaxDate: (a) => {
3155
- K.value = a;
3159
+ X.value = a;
3156
3160
  },
3157
3161
  getMinDate: (a) => {
3158
- if (te.value)
3159
- return a ? P.utils.getJSDateObject(te.value) : P.utils.getDateWithFormat(te.value, P.getDateFormat());
3162
+ if (ie.value)
3163
+ return a ? x.utils.getJSDateObject(ie.value) : x.utils.getDateWithFormat(ie.value, x.getDateFormat());
3160
3164
  },
3161
3165
  setMinDate: (a) => {
3162
- te.value = a;
3166
+ ie.value = a;
3163
3167
  },
3164
- isStartWeekOnSunday: () => re.value,
3168
+ isStartWeekOnSunday: () => oe.value,
3165
3169
  setStartWeekOnSunday: (a) => {
3166
- re.value = a, se(i.value.view.id);
3170
+ oe.value = a, le(i.value.view.id);
3167
3171
  },
3168
- isShowTimeCell: () => De.value,
3172
+ isShowTimeCell: () => ge.value,
3169
3173
  setShowTimeCell: (a) => {
3170
- De.value = a;
3174
+ ge.value = a;
3171
3175
  },
3172
- getTimeCellHeight: () => ge.value,
3176
+ getTimeCellHeight: () => pe.value,
3173
3177
  setTimeCellHeight: (a) => {
3174
- ge.value = a;
3178
+ pe.value = a;
3175
3179
  },
3176
- getTimeFormat: () => pe.value,
3180
+ getTimeFormat: () => be.value,
3177
3181
  setTimeFormat: (a) => {
3178
- pe.value = a;
3182
+ be.value = a;
3179
3183
  },
3180
- getTimeFrom: () => be.value,
3184
+ getTimeFrom: () => ke.value,
3181
3185
  setTimeFrom: (a) => {
3182
- be.value = a;
3186
+ ke.value = a;
3183
3187
  },
3184
- getTimeStep: () => ke.value,
3188
+ getTimeStep: () => Ce.value,
3185
3189
  setTimeStep: (a) => {
3186
- ke.value = a;
3190
+ Ce.value = a;
3187
3191
  },
3188
- getTimeTo: () => Ce.value,
3192
+ getTimeTo: () => _e.value,
3189
3193
  setTimeTo: (a) => {
3190
- Ce.value = a;
3194
+ _e.value = a;
3191
3195
  },
3192
- isHideTitleBar: () => _e.value,
3196
+ isHideTitleBar: () => Te.value,
3193
3197
  setHideTitleBar: (a) => {
3194
- _e.value = a;
3198
+ Te.value = a;
3195
3199
  },
3196
- isTwelveHour: () => Te.value,
3200
+ isTwelveHour: () => Me.value,
3197
3201
  setTwelveHour: (a) => {
3198
- Te.value = a;
3202
+ Me.value = a;
3199
3203
  },
3200
3204
  getActiveView: () => i.value.view.id,
3201
3205
  setActiveView: (a) => {
3202
3206
  i.value.switchView(a);
3203
3207
  },
3204
- getDisableViews: () => Me.value,
3208
+ getDisableViews: () => Se.value,
3205
3209
  setDisableViews: (a) => {
3206
- if (Me.value = a, a.includes(i.value.view.id)) {
3210
+ if (Se.value = a, a.includes(i.value.view.id)) {
3207
3211
  const u = ["years", "year", "month", "week", "day"].filter((f) => !a.includes(f));
3208
3212
  i.value.switchView(u[0]);
3209
3213
  }
3210
3214
  },
3211
- reload: () => Ht(r)
3212
- }, C.component.calendarList[l] = o.value, e("mounted", o.value));
3213
- }, Ke = () => {
3214
- Ot(r), delete C.component.calendarList[l];
3215
+ reload: () => At(r)
3216
+ }, k.component.calendarList[l] = o.value, N.value = !1, e("mounted", o.value)));
3217
+ }, Ze = () => {
3218
+ if (je.value || N.value) {
3219
+ Ne(r), delete k.component.calendarList[l];
3220
+ return;
3221
+ }
3222
+ je.value = !0, Ne(r), delete k.component.calendarList[l], N.value = !0;
3215
3223
  };
3216
- return gt(qe), pt(Ke), p(n, (a) => {
3217
- ie(), e("responsive-change", a);
3218
- }), p(() => g.value, () => {
3219
- $();
3220
- }), p(() => t.selectedDate, (a) => {
3221
- g.value = P.utils.getJSDateObject(a) ?? /* @__PURE__ */ new Date(), $();
3222
- }), p(() => t.events, (a) => {
3223
- j.value = a;
3224
- }), p(() => t.visible, (a) => {
3224
+ return Ct(Je), _t(() => {
3225
+ Ae.value = !1, Ze();
3226
+ }), b(n, (a) => {
3227
+ je.value || N.value || (se(), e("responsive-change", a));
3228
+ }), b(() => g.value, () => {
3229
+ N.value || ee();
3230
+ }), b(() => t.selectedDate, (a) => {
3231
+ N.value || (g.value = x.utils.getJSDateObject(a) ?? /* @__PURE__ */ new Date(), ee());
3232
+ }), b(() => t.events, (a) => {
3233
+ N.value || (j.value = a);
3234
+ }), b(() => t.visible, (a) => {
3225
3235
  a !== c.value && (c.value = !!a);
3226
- }), p(() => t.disable, (a) => {
3236
+ }), b(() => t.disable, (a) => {
3227
3237
  const u = !!a;
3228
- u !== y.value && (y.value = u, K.value = u ? "100-01-01" : t.maxDate, ie());
3229
- }), p(() => g.value, () => $()), p(() => t.selectedDate, (a) => {
3230
- const u = P.utils.getJSDateObject(a) ?? /* @__PURE__ */ new Date();
3231
- +u != +g.value && (g.value = u, $());
3232
- }), p(() => t.events, (a) => {
3238
+ u !== y.value && (y.value = u, X.value = u ? "100-01-01" : t.maxDate, se());
3239
+ }), b(() => g.value, () => ee()), b(() => t.selectedDate, (a) => {
3240
+ const u = x.utils.getJSDateObject(a) ?? /* @__PURE__ */ new Date();
3241
+ +u != +g.value && (g.value = u, ee());
3242
+ }), b(() => t.events, (a) => {
3233
3243
  a !== j.value && (j.value = a ?? []);
3234
- }), p(() => t.weekendColor, (a) => {
3244
+ }), b(() => t.weekendColor, (a) => {
3235
3245
  var f, W;
3236
- const u = a ? ue(a) : void 0;
3237
- u !== _.value && (_.value = u, ie(), (W = (f = i.value) == null ? void 0 : f.view) != null && W.id && se(i.value.view.id));
3238
- }), p(() => t.weekendDays, (a) => {
3246
+ const u = a ? de(a) : void 0;
3247
+ u !== _.value && (_.value = u, se(), (W = (f = i.value) == null ? void 0 : f.view) != null && W.id && le(i.value.view.id));
3248
+ }), b(() => t.weekendDays, (a) => {
3239
3249
  var u, f;
3240
- a && a !== B.value && (B.value = a, (f = (u = i.value) == null ? void 0 : u.view) != null && f.id && se(i.value.view.id));
3241
- }), p(() => t.selectedColor, (a) => {
3242
- const u = a ? ue(a) : void 0;
3243
- u !== O.value && (O.value = u, ie());
3244
- }), p(() => t.showTodayColor, (a) => {
3250
+ a && a !== I.value && (I.value = a, (f = (u = i.value) == null ? void 0 : u.view) != null && f.id && le(i.value.view.id));
3251
+ }), b(() => t.selectedColor, (a) => {
3252
+ const u = a ? de(a) : void 0;
3253
+ u !== O.value && (O.value = u, se());
3254
+ }), b(() => t.showTodayColor, (a) => {
3245
3255
  const u = !!a;
3246
- u !== q.value && (q.value = u, ie());
3247
- }), p(() => t.specialTime, (a) => {
3248
- a !== Q.value && (Q.value = a ?? {}, $());
3249
- }), p(() => t.dateCellMinHeight, (a) => {
3256
+ u !== K.value && (K.value = u, se());
3257
+ }), b(() => t.specialTime, (a) => {
3258
+ a !== $.value && ($.value = a ?? {}, ee());
3259
+ }), b(() => t.dateCellMinHeight, (a) => {
3250
3260
  var u, f;
3251
- a !== ne.value && (ne.value = a, Se(((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) || de.month));
3252
- }), p(() => t.dateCellMaxHeight, (a) => {
3261
+ a !== re.value && (re.value = a, Ee(((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) || ce.month));
3262
+ }), b(() => t.dateCellMaxHeight, (a) => {
3253
3263
  var u, f;
3254
- a !== ee.value && (ee.value = a, Se(((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) || de.month));
3255
- }), p(() => t.disableDays, (a) => {
3256
- a !== ve.value && (ve.value = a);
3257
- }), p(() => t.eventsOnMonthView, (a) => {
3264
+ a !== te.value && (te.value = a, Ee(((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) || ce.month));
3265
+ }), b(() => t.disableDays, (a) => {
3258
3266
  a !== me.value && (me.value = a);
3259
- }), p(() => t.hideWeekdays, (a) => {
3267
+ }), b(() => t.eventsOnMonthView, (a) => {
3260
3268
  a !== ye.value && (ye.value = a);
3261
- }), p(() => t.hideWeekends, (a) => {
3269
+ }), b(() => t.hideWeekdays, (a) => {
3270
+ a !== fe.value && (fe.value = a);
3271
+ }), b(() => t.hideWeekends, (a) => {
3262
3272
  const u = !!a;
3263
- u !== fe.value && (fe.value = u);
3264
- }), p(() => t.locale, (a) => {
3265
- a && a !== we.value && (we.value = a);
3266
- }), p(() => t.maxDate, (a) => {
3267
- !y.value && a !== K.value && (K.value = a);
3268
- }), p(() => t.minDate, (a) => {
3269
- a !== te.value && (te.value = a);
3270
- }), p(() => t.startWeekOnSunday, (a) => {
3273
+ u !== we.value && (we.value = u);
3274
+ }), b(() => t.locale, (a) => {
3275
+ a && a !== De.value && (De.value = a);
3276
+ }), b(() => t.maxDate, (a) => {
3277
+ !y.value && a !== X.value && (X.value = a);
3278
+ }), b(() => t.minDate, (a) => {
3279
+ a !== ie.value && (ie.value = a);
3280
+ }), b(() => t.startWeekOnSunday, (a) => {
3271
3281
  var f, W;
3272
3282
  const u = !!a;
3273
- u !== re.value && (re.value = u, (W = (f = i.value) == null ? void 0 : f.view) != null && W.id && se(i.value.view.id));
3274
- }), p(() => t.time, (a) => {
3283
+ u !== oe.value && (oe.value = u, (W = (f = i.value) == null ? void 0 : f.view) != null && W.id && le(i.value.view.id));
3284
+ }), b(() => t.time, (a) => {
3275
3285
  const u = !!a;
3276
- u !== De.value && (De.value = u);
3277
- }), p(() => t.timeCellHeight, (a) => {
3278
- a !== ge.value && (ge.value = a);
3279
- }), p(() => t.timeFormat, (a) => {
3280
- a && a !== pe.value && (pe.value = a);
3281
- }), p(() => t.timeFrom, (a) => {
3286
+ u !== ge.value && (ge.value = u);
3287
+ }), b(() => t.timeCellHeight, (a) => {
3288
+ a !== pe.value && (pe.value = a);
3289
+ }), b(() => t.timeFormat, (a) => {
3290
+ a && a !== be.value && (be.value = a);
3291
+ }), b(() => t.timeFrom, (a) => {
3282
3292
  const u = Number(a);
3283
- (a == null || Number.isFinite(u) && u >= 0 && u <= 1440) && a !== be.value && (be.value = a);
3284
- }), p(() => t.timeStep, (a) => {
3293
+ (a == null || Number.isFinite(u) && u >= 0 && u <= 1440) && a !== ke.value && (ke.value = a);
3294
+ }), b(() => t.timeStep, (a) => {
3285
3295
  const u = Number(a);
3286
- (a == null || Number.isFinite(u) && u > 0 && u <= 1440) && a !== ke.value && (ke.value = a);
3287
- }), p(() => t.timeTo, (a) => {
3296
+ (a == null || Number.isFinite(u) && u > 0 && u <= 1440) && a !== Ce.value && (Ce.value = a);
3297
+ }), b(() => t.timeTo, (a) => {
3288
3298
  const u = Number(a);
3289
- (a == null || Number.isFinite(u) && u >= 0 && u <= 1440) && a !== Ce.value && (Ce.value = a);
3290
- }), p(() => t.hideTitleBar, (a) => {
3291
- const u = !!a;
3292
- u !== _e.value && (_e.value = u);
3293
- }), p(() => t.twelveHour, (a) => {
3299
+ (a == null || Number.isFinite(u) && u >= 0 && u <= 1440) && a !== _e.value && (_e.value = a);
3300
+ }), b(() => t.hideTitleBar, (a) => {
3294
3301
  const u = !!a;
3295
3302
  u !== Te.value && (Te.value = u);
3296
- }), p(() => t.activeView, (a) => {
3303
+ }), b(() => t.twelveHour, (a) => {
3304
+ const u = !!a;
3305
+ u !== Me.value && (Me.value = u);
3306
+ }), b(() => t.activeView, (a) => {
3297
3307
  var u, f, W;
3298
- a && a !== ((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) && (Ne.value = a, (W = i.value) == null || W.switchView(a));
3299
- }), p(() => t.disableViews, (a) => {
3300
- if (a !== Me.value && (Me.value = a, i.value && Array.isArray(a) && a.includes(i.value.view.id))) {
3308
+ a && a !== ((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) && (xe.value = a, (W = i.value) == null || W.switchView(a));
3309
+ }), b(() => t.disableViews, (a) => {
3310
+ if (a !== Se.value && (Se.value = a, i.value && Array.isArray(a) && a.includes(i.value.view.id))) {
3301
3311
  const u = ["years", "year", "month", "week", "day"].find((f) => !a.includes(f));
3302
3312
  u && i.value.switchView(u);
3303
3313
  }
3304
- }), p(() => t.class, () => ie()), {
3305
- VueCal: lt,
3314
+ }), b(() => t.class, () => se()), {
3315
+ VueCal: ot,
3306
3316
  attrs: s,
3307
3317
  props: t,
3308
3318
  calendarRef: i,
3309
3319
  visibleClass: w,
3310
3320
  disableClass: A,
3311
- responsiveClassList: X,
3321
+ responsiveClassList: G,
3312
3322
  slotNames: d,
3313
3323
  selectedDate: g,
3314
3324
  events: j,
3315
- disableDays: ve,
3316
- eventsOnMonthView: me,
3317
- hideWeekdays: ye,
3318
- hideWeekends: fe,
3319
- locale: we,
3320
- maxDate: K,
3321
- minDate: te,
3322
- startWeekOnSunday: re,
3323
- time: De,
3324
- timeCellHeight: ge,
3325
- timeFormat: pe,
3326
- timeFrom: be,
3327
- timeStep: ke,
3328
- timeTo: Ce,
3329
- hideTitleBar: _e,
3330
- twelveHour: Te,
3331
- activeView: Ne,
3332
- disableViews: Me,
3333
- onViewChange: dt,
3334
- onCellClick: ct
3325
+ disableDays: me,
3326
+ eventsOnMonthView: ye,
3327
+ hideWeekdays: fe,
3328
+ hideWeekends: we,
3329
+ locale: De,
3330
+ maxDate: X,
3331
+ minDate: ie,
3332
+ startWeekOnSunday: oe,
3333
+ time: ge,
3334
+ timeCellHeight: pe,
3335
+ timeFormat: be,
3336
+ timeFrom: ke,
3337
+ timeStep: Ce,
3338
+ timeTo: _e,
3339
+ hideTitleBar: Te,
3340
+ twelveHour: Me,
3341
+ activeView: xe,
3342
+ disableViews: Se,
3343
+ onViewChange: mt,
3344
+ onCellClick: yt
3335
3345
  };
3336
3346
  }
3337
3347
  });
3338
- function Qi(t, e, s, l, r, i) {
3348
+ function ts(t, e, s, l, r, i) {
3339
3349
  return v(), m("div", {
3340
3350
  class: V([
3341
3351
  "hison-calendar",
@@ -3344,9 +3354,9 @@ function Qi(t, e, s, l, r, i) {
3344
3354
  t.visibleClass,
3345
3355
  t.disableClass
3346
3356
  ]),
3347
- style: z(t.props.style)
3357
+ style: R(t.props.style)
3348
3358
  }, [
3349
- (v(), G(at(t.VueCal), Re({ ref: "calendarRef" }, t.attrs, {
3359
+ (v(), J(ut(t.VueCal), Xe({ ref: "calendarRef" }, t.attrs, {
3350
3360
  "selected-date": t.selectedDate,
3351
3361
  events: t.events,
3352
3362
  "dblclick-to-create": !1,
@@ -3371,17 +3381,17 @@ function Qi(t, e, s, l, r, i) {
3371
3381
  "disable-views": t.disableViews,
3372
3382
  onViewChange: t.onViewChange,
3373
3383
  onCellClick: t.onCellClick
3374
- }), Le({ _: 2 }, [
3375
- N(t.slotNames, (o) => ({
3384
+ }), Ie({ _: 2 }, [
3385
+ B(t.slotNames, (o) => ({
3376
3386
  name: o,
3377
3387
  fn: T((n) => [
3378
- k(t.$slots, o, ze(bt(n)), void 0, !0)
3388
+ C(t.$slots, o, Ke(Tt(n)), void 0, !0)
3379
3389
  ])
3380
3390
  }))
3381
3391
  ]), 1040, ["selected-date", "events", "disable-days", "events-on-month-view", "hide-weekdays", "hide-weekends", "locale", "max-date", "min-date", "start-week-on-sunday", "time", "time-cell-height", "time-format", "time-from", "time-step", "time-to", "hide-title-bar", "twelve-hour", "active-view", "disable-views", "onViewChange", "onCellClick"]))
3382
3392
  ], 6);
3383
3393
  }
3384
- const ss = /* @__PURE__ */ Wt(Zi, [["render", Qi], ["__scopeId", "data-v-ed3de0ad"]]);
3394
+ const ns = /* @__PURE__ */ jt(es, [["render", ts], ["__scopeId", "data-v-15dac12e"]]);
3385
3395
  export {
3386
- ss as default
3396
+ ns as default
3387
3397
  };