ezux 1.1.11 → 1.1.13

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 (103) hide show
  1. package/dist/{EzContextMenu-C3eDRS7E.cjs → EzContextMenu-B6HBUjWv.cjs} +1 -1
  2. package/dist/{EzContextMenu-BsHdOgtL.js → EzContextMenu-BSA_B6Pr.js} +1 -1
  3. package/dist/{EzEventModal-FP2rs1pp.js → EzEventModal-BUMp_BFi.js} +6 -6
  4. package/dist/{EzEventModal-DkowH9rh.cjs → EzEventModal-xzHfzi0O.cjs} +1 -1
  5. package/dist/{EzGroupingPanel-DuKrZuqq.js → EzGroupingPanel-BUsIYDRi.js} +5 -5
  6. package/dist/EzGroupingPanel-D0HdSomF.cjs +1 -0
  7. package/dist/{EzSchedulerQuickAdd-s2jtG8vH.js → EzSchedulerQuickAdd-C653LTGh.js} +5 -5
  8. package/dist/{EzSchedulerQuickAdd-BLF22CDh.cjs → EzSchedulerQuickAdd-UnOWCpJd.cjs} +1 -1
  9. package/dist/{EzSchedulerToolbar-CaVVmnjt.cjs → EzSchedulerToolbar-C-5OdRY6.cjs} +1 -1
  10. package/dist/{EzSchedulerToolbar-tz6h80GC.js → EzSchedulerToolbar-CO5jjDQg.js} +15 -15
  11. package/dist/{EzSignature-CPoQLAyS.cjs → EzSignature-BaNesxwC.cjs} +1 -1
  12. package/dist/{EzSignature-D7134EQo.js → EzSignature-D4EYwo9W.js} +2 -2
  13. package/dist/{EzTableEditDialog-3eU6i9cv.js → EzTableEditDialog-Cd948V1C.js} +3 -3
  14. package/dist/{EzTableEditDialog-ftpeOKI_.cjs → EzTableEditDialog-NiOubaMT.cjs} +1 -1
  15. package/dist/{EzTableFooter-BiyI1m1O.cjs → EzTableFooter-CWjfGCjL.cjs} +1 -1
  16. package/dist/{EzTableFooter-DuAaOcLd.js → EzTableFooter-DveD12RC.js} +1 -1
  17. package/dist/{EzTableToolbar-DmAb94U-.js → EzTableToolbar-Bz8UWv6j.js} +50 -54
  18. package/dist/EzTableToolbar-DHE7Bb1R.cjs +1 -0
  19. package/dist/{HighlightText-C0sUEoCH.js → HighlightText-8D6KEyBw.js} +9 -11
  20. package/dist/HighlightText-LtZmzCle.cjs +1 -0
  21. package/dist/{NotificationPanel-xjIHKnlE.js → NotificationPanel-D2Y-_ahk.js} +3 -3
  22. package/dist/NotificationPanel-zLxrtTGf.cjs +1 -0
  23. package/dist/{TooltipWrapper-Bv7F-Gk4.js → TooltipWrapper-BrRTi5EJ.js} +1 -1
  24. package/dist/{TooltipWrapper-CgYlx0Jq.cjs → TooltipWrapper-DWts4bAI.cjs} +1 -1
  25. package/dist/{avatar-BkA_3sri.js → avatar-BeK0E4mn.js} +1 -1
  26. package/dist/{avatar-CJH7L2Or.cjs → avatar-DZAaTK2f.cjs} +1 -1
  27. package/dist/bell-DAz8P0BR.js +14 -0
  28. package/dist/bell-DOX2y38e.cjs +1 -0
  29. package/dist/{calendar-ChRJyGvt.cjs → calendar-BMZ8ddOf.cjs} +1 -1
  30. package/dist/{calendar-CCxXqG5a.js → calendar-Dy3rVMW2.js} +4 -4
  31. package/dist/{checkbox-_Uxyw6xN.cjs → checkbox-B0lGHUyy.cjs} +1 -1
  32. package/dist/{checkbox-DTLp-Oqj.js → checkbox-boJRxICT.js} +1 -1
  33. package/dist/circle-x-Cv7bfIC_.js +9 -0
  34. package/dist/circle-x-DwVXxhXr.cjs +1 -0
  35. package/dist/{date-time-picker-BPwpIWxg.cjs → date-time-picker-DTxHdPgQ.cjs} +1 -1
  36. package/dist/{date-time-picker-B9QBboUX.js → date-time-picker-Dj2eftJI.js} +6 -6
  37. package/dist/ezux.css +1 -1
  38. package/dist/grip-vertical-CSyDKBul.js +12 -0
  39. package/dist/grip-vertical-DZNBW1Dn.cjs +1 -0
  40. package/dist/{index-BmjgUrNF.cjs → index-B3ipEEhH.cjs} +2 -2
  41. package/dist/index-BPPb7bcs.js +3220 -0
  42. package/dist/{index-pr_yrvsV.js → index-BQKw_Vho.js} +4026 -1904
  43. package/dist/{index-B7foCkRR.js → index-C5STgBSy.js} +678 -677
  44. package/dist/{index-CpEN0z3t.js → index-C6NfgycP.js} +357 -357
  45. package/dist/index-D4f2ZdrG.cjs +2 -0
  46. package/dist/index-DUY1SqMo.cjs +1 -0
  47. package/dist/index-c1Zg--dt.cjs +7 -0
  48. package/dist/index.cjs +2 -2
  49. package/dist/index.d.ts +67 -14
  50. package/dist/index.es.js +136 -135
  51. package/dist/{input-D1zXv4Kl.cjs → input-BgM_la4k.cjs} +1 -1
  52. package/dist/{input-DG8ycH6m.js → input-jYQ5VKNR.js} +1 -1
  53. package/dist/{isBefore-DdLSsf0_.js → isBefore-C3Y_wbk3.js} +1 -1
  54. package/dist/{isBefore-BAixcVtb.cjs → isBefore-Cp1ttk6q.cjs} +1 -1
  55. package/dist/kanban.cjs +1 -1
  56. package/dist/kanban.es.js +4 -4
  57. package/dist/{label-Ch1wkGGP.js → label-ClOW9UCt.js} +2 -2
  58. package/dist/{label-DrUloKDN.cjs → label-Dx6oDB-X.cjs} +1 -1
  59. package/dist/layout.cjs +1 -1
  60. package/dist/layout.d.ts +29 -1
  61. package/dist/layout.es.js +3 -3
  62. package/dist/{popover-4Ng-GmwM.cjs → popover-BJq1CKmi.cjs} +1 -1
  63. package/dist/{popover-DstiJFa3.js → popover-Cmlb7w3R.js} +1 -1
  64. package/dist/scheduler.cjs +1 -1
  65. package/dist/scheduler.es.js +5 -5
  66. package/dist/{scroll-area-mGPAChYm.js → scroll-area-9fwpVNxT.js} +1 -1
  67. package/dist/{scroll-area-B_yufXtG.cjs → scroll-area-CwwZSSA4.cjs} +1 -1
  68. package/dist/select-GxA46anr.cjs +1 -0
  69. package/dist/select-mDCun_IR.js +35 -0
  70. package/dist/{settings-HCrwja-A.js → settings-CvyjK75A.js} +14 -14
  71. package/dist/settings-DKPknrt8.cjs +1 -0
  72. package/dist/signature.cjs +1 -1
  73. package/dist/signature.es.js +1 -1
  74. package/dist/{sortable.esm-DDmDbyCC.cjs → sortable.esm-CsRPuXyD.cjs} +1 -1
  75. package/dist/{sortable.esm-eBjUK76c.js → sortable.esm-CzMCDPet.js} +1 -1
  76. package/dist/table.cjs +1 -1
  77. package/dist/table.d.ts +18 -0
  78. package/dist/table.es.js +10 -9
  79. package/dist/theme-vars.css +2 -2
  80. package/dist/{tooltip-CDLAzCi8.cjs → tooltip-B41iztKT.cjs} +1 -1
  81. package/dist/{tooltip-C216fkmP.js → tooltip-BCtrEe0z.js} +1 -1
  82. package/dist/treeview.cjs +1 -2
  83. package/dist/treeview.es.js +558 -543
  84. package/dist/{useInitCoreServices-DSudhSFo.cjs → useInitCoreServices-CwXv2p4S.cjs} +1 -1
  85. package/dist/{useInitCoreServices-BC7QMeLn.js → useInitCoreServices-D1WaWlaI.js} +4 -3
  86. package/dist/{useService-DBnjCLOu.cjs → useService-8OoezWr8.cjs} +1 -1
  87. package/dist/{useService-BKWyN7jJ.js → useService-BUi3uAqE.js} +1 -1
  88. package/dist/{useServiceState-MlrHzngO.cjs → useServiceState-BjpCjUn2.cjs} +1 -1
  89. package/dist/{useServiceState-DWb3cncq.js → useServiceState-VE-viK8b.js} +1 -1
  90. package/package.json +21 -20
  91. package/dist/EzGroupingPanel-Dw4bbefz.cjs +0 -1
  92. package/dist/EzTableToolbar-qlNVxvsL.cjs +0 -1
  93. package/dist/HighlightText-BDclEh_K.cjs +0 -1
  94. package/dist/NotificationPanel-juBrjjOY.cjs +0 -1
  95. package/dist/index-BKsqtcvu.cjs +0 -2
  96. package/dist/index-D2HX-sbl.js +0 -3092
  97. package/dist/index-DEIRrhVY.cjs +0 -1
  98. package/dist/index-DGhcUfqi.cjs +0 -7
  99. package/dist/info-BY2cfl1l.cjs +0 -1
  100. package/dist/info-BuURqzhx.js +0 -14
  101. package/dist/select-BxcAKVaB.cjs +0 -1
  102. package/dist/select-BxiFqo8j.js +0 -35
  103. package/dist/settings-BuS8Pqjb.cjs +0 -1
@@ -1,22 +1,22 @@
1
1
  import { jsx as c, jsxs as w, Fragment as xt } from "react/jsx-runtime";
2
- import qe, { useState as Ie, useEffect as _e, useCallback as je, useMemo as Pe, useRef as Mt, forwardRef as In } from "react";
3
- import { u as ar, B as or, a as ir, c as V, b as sr } from "./useInitCoreServices-BC7QMeLn.js";
2
+ import qe, { useState as Re, useEffect as _e, useCallback as je, useMemo as ze, useRef as Mt, forwardRef as In } from "react";
3
+ import { u as ar, B as or, a as ir, c as V, b as sr } from "./useInitCoreServices-D1WaWlaI.js";
4
4
  import { useStore as cr } from "@tanstack/react-store";
5
5
  import { Store as lr } from "@tanstack/store";
6
- import { u as dr, h as ur, a as Lt, e as fr, d as mr, c as hr, f as gr, i as pr, T as br, Q as wr, b as yr } from "./TooltipWrapper-Bv7F-Gk4.js";
6
+ import { u as dr, h as ur, a as zt, e as fr, d as mr, c as hr, f as gr, i as pr, T as br, Q as wr, b as yr } from "./TooltipWrapper-BrRTi5EJ.js";
7
7
  import { RRule as mn } from "rrule";
8
8
  import { c as xr, g as it, K as vr, T as Sr, M as Er, N as kr } from "./EzErrorBoundary-D4NBadES.js";
9
- import { o as Tr, k as Dr, l as Mr, P as Nr, d as zt, C as _r, E as Rn, u as Cr, c as Pn, D as Ar, m as Or } from "./EzContextMenu-BsHdOgtL.js";
10
- import { u as Ir } from "./useServiceState-DWb3cncq.js";
11
- import { X as Ln, T as Rr, b as Pr, d as Lr, e as zr, B as Vt } from "./tooltip-C216fkmP.js";
12
- import { A as jt, b as qt, a as Qt } from "./avatar-BkA_3sri.js";
9
+ import { o as Tr, k as Dr, l as Mr, P as Nr, d as Ft, C as _r, E as Rn, u as Cr, c as Pn, D as Ar, m as Or } from "./EzContextMenu-BSA_B6Pr.js";
10
+ import { u as Ir } from "./useServiceState-VE-viK8b.js";
11
+ import { X as Ln, T as Rr, b as Pr, d as Lr, e as zr, B as jt } from "./tooltip-BCtrEe0z.js";
12
+ import { A as qt, b as Qt, a as Xt } from "./avatar-BeK0E4mn.js";
13
13
  import { createPortal as Fr } from "react-dom";
14
14
  const Hr = [
15
15
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
16
16
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
17
17
  ], Wr = xr("clock", Hr);
18
18
  function zn(e) {
19
- const [t, n] = Ie(() => typeof window < "u" ? window.matchMedia(e).matches : !1);
19
+ const [t, n] = Re(() => typeof window < "u" ? window.matchMedia(e).matches : !1);
20
20
  return _e(() => {
21
21
  if (typeof window > "u") return;
22
22
  const r = window.matchMedia(e), a = () => n(r.matches);
@@ -26,7 +26,7 @@ function zn(e) {
26
26
  }, [e]), t;
27
27
  }
28
28
  function Zt(e = 6e4) {
29
- const [t, n] = Ie(() => /* @__PURE__ */ new Date());
29
+ const [t, n] = Re(() => /* @__PURE__ */ new Date());
30
30
  return _e(() => {
31
31
  const r = setInterval(() => {
32
32
  n(/* @__PURE__ */ new Date());
@@ -43,7 +43,7 @@ const Br = ({
43
43
  wrap: i = !0,
44
44
  enabled: l = !0
45
45
  }) => {
46
- const [d, f] = Ie(-1), p = je((u) => {
46
+ const [d, m] = Re(-1), p = je((u) => {
47
47
  if (!l || e === 0) return;
48
48
  let s = d;
49
49
  switch (u.key) {
@@ -71,12 +71,12 @@ const Br = ({
71
71
  d !== -1 && r && (r(d), u.preventDefault());
72
72
  break;
73
73
  case "Escape":
74
- a && (a(), u.preventDefault()), f(-1);
74
+ a && (a(), u.preventDefault()), m(-1);
75
75
  break;
76
76
  default:
77
77
  return;
78
78
  }
79
- s !== d && (f(s), n?.(s));
79
+ s !== d && (m(s), n?.(s));
80
80
  }, [d, e, t, n, r, a, i, l]);
81
81
  return _e(() => {
82
82
  if (l)
@@ -85,25 +85,25 @@ const Br = ({
85
85
  /** The current focused index (-1 if none). @group State */
86
86
  selectedIndex: d,
87
87
  /** Manually sets the focused index. @group Methods */
88
- setSelectedIndex: f
88
+ setSelectedIndex: m
89
89
  };
90
90
  }, Fn = 6048e5, Ur = 864e5, Hn = 6e4, yi = 36e5, xi = 1e3, hn = /* @__PURE__ */ Symbol.for("constructDateFrom");
91
- function Fe(e, t) {
91
+ function He(e, t) {
92
92
  return typeof e == "function" ? e(t) : e && typeof e == "object" && hn in e ? e[hn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
93
93
  }
94
94
  function ie(e, t) {
95
- return Fe(t || e, e);
95
+ return He(t || e, e);
96
96
  }
97
97
  function vt(e, t, n) {
98
98
  const r = ie(e, n?.in);
99
- return isNaN(t) ? Fe(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
99
+ return isNaN(t) ? He(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
100
100
  }
101
101
  function Wn(e, t, n) {
102
102
  const r = ie(e, n?.in);
103
- if (isNaN(t)) return Fe(e, NaN);
103
+ if (isNaN(t)) return He(e, NaN);
104
104
  if (!t)
105
105
  return r;
106
- const a = r.getDate(), i = Fe(e, r.getTime());
106
+ const a = r.getDate(), i = He(e, r.getTime());
107
107
  i.setMonth(r.getMonth() + t + 1, 0);
108
108
  const l = i.getDate();
109
109
  return a >= l ? i : (r.setFullYear(
@@ -120,15 +120,15 @@ function st(e, t) {
120
120
  const n = St(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = ie(e, t?.in), i = a.getDay(), l = (i < r ? 7 : 0) + i - r;
121
121
  return a.setDate(a.getDate() - l), a.setHours(0, 0, 0, 0), a;
122
122
  }
123
- function At(e, t) {
123
+ function Ot(e, t) {
124
124
  return st(e, { ...t, weekStartsOn: 1 });
125
125
  }
126
126
  function Bn(e, t) {
127
- const n = ie(e, t?.in), r = n.getFullYear(), a = Fe(n, 0);
127
+ const n = ie(e, t?.in), r = n.getFullYear(), a = He(n, 0);
128
128
  a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
129
- const i = At(a), l = Fe(n, 0);
129
+ const i = Ot(a), l = He(n, 0);
130
130
  l.setFullYear(r, 0, 4), l.setHours(0, 0, 0, 0);
131
- const d = At(l);
131
+ const d = Ot(l);
132
132
  return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
133
133
  }
134
134
  function gn(e) {
@@ -145,28 +145,28 @@ function gn(e) {
145
145
  );
146
146
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
147
147
  }
148
- function Ot(e, ...t) {
149
- const n = Fe.bind(
148
+ function It(e, ...t) {
149
+ const n = He.bind(
150
150
  null,
151
151
  t.find((r) => typeof r == "object")
152
152
  );
153
153
  return t.map(n);
154
154
  }
155
- function Re(e, t) {
155
+ function Le(e, t) {
156
156
  const n = ie(e, t?.in);
157
157
  return n.setHours(0, 0, 0, 0), n;
158
158
  }
159
159
  function Gr(e, t, n) {
160
- const [r, a] = Ot(
160
+ const [r, a] = It(
161
161
  n?.in,
162
162
  e,
163
163
  t
164
- ), i = Re(r), l = Re(a), d = +i - gn(i), f = +l - gn(l);
165
- return Math.round((d - f) / Ur);
164
+ ), i = Le(r), l = Le(a), d = +i - gn(i), m = +l - gn(l);
165
+ return Math.round((d - m) / Ur);
166
166
  }
167
167
  function $r(e, t) {
168
- const n = Bn(e, t), r = Fe(e, 0);
169
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), At(r);
168
+ const n = Bn(e, t), r = He(e, 0);
169
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Ot(r);
170
170
  }
171
171
  function tt(e, t, n) {
172
172
  const r = ie(e, n?.in);
@@ -179,19 +179,19 @@ function Nt(e, t, n) {
179
179
  const [r, a] = [
180
180
  +ie(e.start, n?.in),
181
181
  +ie(e.end, n?.in)
182
- ].sort((d, f) => d - f), [i, l] = [
182
+ ].sort((d, m) => d - m), [i, l] = [
183
183
  +ie(t.start, n?.in),
184
184
  +ie(t.end, n?.in)
185
- ].sort((d, f) => d - f);
185
+ ].sort((d, m) => d - m);
186
186
  return r < l && i < a;
187
187
  }
188
- function we(e, t, n) {
189
- const [r, a] = Ot(
188
+ function ye(e, t, n) {
189
+ const [r, a] = It(
190
190
  n?.in,
191
191
  e,
192
192
  t
193
193
  );
194
- return +Re(r) == +Re(a);
194
+ return +Le(r) == +Le(a);
195
195
  }
196
196
  function Vr(e) {
197
197
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
@@ -212,7 +212,7 @@ function Xr(e, t, n) {
212
212
  const r = Qr(e, t) / Hn;
213
213
  return qr()(r);
214
214
  }
215
- function Ft(e, t) {
215
+ function Ht(e, t) {
216
216
  const n = ie(e, t?.in);
217
217
  return n.setHours(23, 59, 59, 999), n;
218
218
  }
@@ -221,7 +221,7 @@ function pn(e, t) {
221
221
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
222
222
  }
223
223
  function Kr(e, t) {
224
- const [n, r] = Ot(e, t.start, t.end);
224
+ const [n, r] = It(e, t.start, t.end);
225
225
  return { start: n, end: r };
226
226
  }
227
227
  function Jr(e, t) {
@@ -230,10 +230,10 @@ function Jr(e, t) {
230
230
  const i = a ? +n : +r, l = a ? r : n;
231
231
  l.setHours(0, 0, 0, 0);
232
232
  let d = 1;
233
- const f = [];
233
+ const m = [];
234
234
  for (; +l <= i; )
235
- f.push(Fe(n, l)), l.setDate(l.getDate() + d), l.setHours(0, 0, 0, 0);
236
- return a ? f.reverse() : f;
235
+ m.push(He(n, l)), l.setDate(l.getDate() + d), l.setHours(0, 0, 0, 0);
236
+ return a ? m.reverse() : m;
237
237
  }
238
238
  function bn(e, t) {
239
239
  const n = ie(e, t?.in);
@@ -314,7 +314,7 @@ const ea = {
314
314
  const a = ea[e];
315
315
  return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
316
316
  };
317
- function Ht(e) {
317
+ function Wt(e) {
318
318
  return (t = {}) => {
319
319
  const n = t.width ? String(t.width) : e.defaultWidth;
320
320
  return e.formats[n] || e.formats[e.defaultWidth];
@@ -336,15 +336,15 @@ const na = {
336
336
  medium: "{{date}}, {{time}}",
337
337
  short: "{{date}}, {{time}}"
338
338
  }, oa = {
339
- date: Ht({
339
+ date: Wt({
340
340
  formats: na,
341
341
  defaultWidth: "full"
342
342
  }),
343
- time: Ht({
343
+ time: Wt({
344
344
  formats: ra,
345
345
  defaultWidth: "full"
346
346
  }),
347
- dateTime: Ht({
347
+ dateTime: Wt({
348
348
  formats: aa,
349
349
  defaultWidth: "full"
350
350
  })
@@ -527,12 +527,12 @@ function ht(e) {
527
527
  const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = t.match(a);
528
528
  if (!i)
529
529
  return null;
530
- const l = i[0], d = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(d) ? ba(d, (s) => s.test(l)) : (
530
+ const l = i[0], d = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], m = Array.isArray(d) ? ba(d, (s) => s.test(l)) : (
531
531
  // [TODO] -- I challenge you to fix the type
532
532
  pa(d, (s) => s.test(l))
533
533
  );
534
534
  let p;
535
- p = e.valueCallback ? e.valueCallback(f) : f, p = n.valueCallback ? (
535
+ p = e.valueCallback ? e.valueCallback(m) : m, p = n.valueCallback ? (
536
536
  // [TODO] -- I challenge you to fix the type
537
537
  n.valueCallback(p)
538
538
  ) : p;
@@ -683,19 +683,19 @@ function Ia(e, t) {
683
683
  return Gr(n, Zr(n)) + 1;
684
684
  }
685
685
  function Yn(e, t) {
686
- const n = ie(e, t?.in), r = +At(n) - +$r(n);
686
+ const n = ie(e, t?.in), r = +Ot(n) - +$r(n);
687
687
  return Math.round(r / Fn) + 1;
688
688
  }
689
689
  function Gn(e, t) {
690
- const n = ie(e, t?.in), r = n.getFullYear(), a = St(), i = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, l = Fe(t?.in || e, 0);
690
+ const n = ie(e, t?.in), r = n.getFullYear(), a = St(), i = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, l = He(t?.in || e, 0);
691
691
  l.setFullYear(r + 1, 0, i), l.setHours(0, 0, 0, 0);
692
- const d = st(l, t), f = Fe(t?.in || e, 0);
693
- f.setFullYear(r, 0, i), f.setHours(0, 0, 0, 0);
694
- const p = st(f, t);
692
+ const d = st(l, t), m = He(t?.in || e, 0);
693
+ m.setFullYear(r, 0, i), m.setHours(0, 0, 0, 0);
694
+ const p = st(m, t);
695
695
  return +n >= +d ? r + 1 : +n >= +p ? r : r - 1;
696
696
  }
697
697
  function Ra(e, t) {
698
- const n = St(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = Gn(e, t), i = Fe(t?.in || e, 0);
698
+ const n = St(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = Gn(e, t), i = He(t?.in || e, 0);
699
699
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), st(i, t);
700
700
  }
701
701
  function _t(e, t) {
@@ -1362,7 +1362,7 @@ function ue(e, t, n) {
1362
1362
  const r = St(), a = r.locale ?? Oa, i = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, l = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, d = ie(e, n?.in);
1363
1363
  if (!jr(d))
1364
1364
  throw new RangeError("Invalid time value");
1365
- let f = t.match($a).map((u) => {
1365
+ let m = t.match($a).map((u) => {
1366
1366
  const s = u[0];
1367
1367
  if (s === "p" || s === "P") {
1368
1368
  const N = La[s];
@@ -1383,13 +1383,13 @@ function ue(e, t, n) {
1383
1383
  );
1384
1384
  return { isToken: !1, value: u };
1385
1385
  });
1386
- a.localize.preprocessor && (f = a.localize.preprocessor(d, f));
1386
+ a.localize.preprocessor && (m = a.localize.preprocessor(d, m));
1387
1387
  const p = {
1388
1388
  firstWeekContainsDate: i,
1389
1389
  weekStartsOn: l,
1390
1390
  locale: a
1391
1391
  };
1392
- return f.map((u) => {
1392
+ return m.map((u) => {
1393
1393
  if (!u.isToken) return u.value;
1394
1394
  const s = u.value;
1395
1395
  (Ba(s) || Wa(s)) && Ua(s, t, String(e));
@@ -1402,7 +1402,7 @@ function Qa(e) {
1402
1402
  return t ? t[1].replace(ja, "'") : e;
1403
1403
  }
1404
1404
  function Xa(e, t, n) {
1405
- const [r, a] = Ot(
1405
+ const [r, a] = It(
1406
1406
  n?.in,
1407
1407
  e,
1408
1408
  t
@@ -1475,7 +1475,7 @@ const eo = (e) => new lr({
1475
1475
  setIs24Hour: (t) => {
1476
1476
  e.setState((n) => ({ ...n, is24Hour: t }));
1477
1477
  }
1478
- }), be = {
1478
+ }), we = {
1479
1479
  events: /* @__PURE__ */ new Map(),
1480
1480
  resources: /* @__PURE__ */ new Map()
1481
1481
  };
@@ -1504,10 +1504,10 @@ class no {
1504
1504
  * @group Methods
1505
1505
  */
1506
1506
  initializeWithData(t, n = []) {
1507
- be.events.clear(), be.resources.clear(), t.forEach((r) => {
1508
- be.events.set(String(r.id), JSON.parse(JSON.stringify(r)));
1507
+ we.events.clear(), we.resources.clear(), t.forEach((r) => {
1508
+ we.events.set(String(r.id), JSON.parse(JSON.stringify(r)));
1509
1509
  }), n.forEach((r) => {
1510
- be.resources.set(String(r.id), JSON.parse(JSON.stringify(r)));
1510
+ we.resources.set(String(r.id), JSON.parse(JSON.stringify(r)));
1511
1511
  });
1512
1512
  }
1513
1513
  // --- Event Operations ---
@@ -1519,7 +1519,7 @@ class no {
1519
1519
  * @group Methods
1520
1520
  */
1521
1521
  async getEvents(t, n) {
1522
- return await this.simulateLatency(), !t || !n ? Array.from(be.events.values()) : Array.from(be.events.values()).filter((a) => {
1522
+ return await this.simulateLatency(), !t || !n ? Array.from(we.events.values()) : Array.from(we.events.values()).filter((a) => {
1523
1523
  const i = new Date(a.start), l = new Date(a.end);
1524
1524
  return i >= t && i < n || l > t && l <= n || i <= t && l >= n;
1525
1525
  }).map((a) => ({
@@ -1547,7 +1547,7 @@ class no {
1547
1547
  allDay: t.allDay || !1,
1548
1548
  ...t
1549
1549
  };
1550
- return be.events.set(n.id, n), n;
1550
+ return we.events.set(n.id, n), n;
1551
1551
  }
1552
1552
  /**
1553
1553
  * Updates an existing event.
@@ -1558,14 +1558,14 @@ class no {
1558
1558
  async updateEvent(t) {
1559
1559
  console.log("[SchedulerService] Updating event:", t.id, t.start, t.end), await this.simulateLatency();
1560
1560
  const n = String(t.id);
1561
- if (be.events.has(n)) {
1562
- const a = { ...be.events.get(n), ...t, id: n };
1563
- return be.events.set(n, a), console.log("[SchedulerService] Event updated in DB:", a), a;
1564
- } else if (be.events.has(t.id)) {
1565
- const a = { ...be.events.get(t.id), ...t };
1566
- return be.events.set(t.id, a), a;
1561
+ if (we.events.has(n)) {
1562
+ const a = { ...we.events.get(n), ...t, id: n };
1563
+ return we.events.set(n, a), console.log("[SchedulerService] Event updated in DB:", a), a;
1564
+ } else if (we.events.has(t.id)) {
1565
+ const a = { ...we.events.get(t.id), ...t };
1566
+ return we.events.set(t.id, a), a;
1567
1567
  }
1568
- throw console.error("[SchedulerService] Event not found in DB:", t.id, "Keys:", Array.from(be.events.keys())), new Error(`Event with ID ${t.id} not found`);
1568
+ throw console.error("[SchedulerService] Event not found in DB:", t.id, "Keys:", Array.from(we.events.keys())), new Error(`Event with ID ${t.id} not found`);
1569
1569
  }
1570
1570
  /**
1571
1571
  * Deletes an event by ID.
@@ -1576,7 +1576,7 @@ class no {
1576
1576
  async deleteEvent(t) {
1577
1577
  await this.simulateLatency();
1578
1578
  const n = String(t);
1579
- be.events.has(n) ? be.events.delete(n) : be.events.has(t) && be.events.delete(t);
1579
+ we.events.has(n) ? we.events.delete(n) : we.events.has(t) && we.events.delete(t);
1580
1580
  }
1581
1581
  // --- Resource Operations ---
1582
1582
  /**
@@ -1585,7 +1585,7 @@ class no {
1585
1585
  * @group Methods
1586
1586
  */
1587
1587
  async getResources() {
1588
- return await this.simulateLatency(), Array.from(be.resources.values());
1588
+ return await this.simulateLatency(), Array.from(we.resources.values());
1589
1589
  }
1590
1590
  /**
1591
1591
  * Adds a new resource.
@@ -1594,7 +1594,7 @@ class no {
1594
1594
  * @group Methods
1595
1595
  */
1596
1596
  async addResource(t) {
1597
- return await this.simulateLatency(), t.id || (t.id = Math.random().toString(36).substring(2, 9)), be.resources.set(t.id, t), t;
1597
+ return await this.simulateLatency(), t.id || (t.id = Math.random().toString(36).substring(2, 9)), we.resources.set(t.id, t), t;
1598
1598
  }
1599
1599
  simulateLatency() {
1600
1600
  return new Promise((t) => setTimeout(t, 300));
@@ -1609,7 +1609,7 @@ class ro {
1609
1609
  try {
1610
1610
  const l = i.recurrenceRule || i.rrule || "";
1611
1611
  if (!l) return;
1612
- const d = new Date(i.start), f = new Date(i.end), p = mn.parseString(l);
1612
+ const d = new Date(i.start), m = new Date(i.end), p = mn.parseString(l);
1613
1613
  p.dtstart = d;
1614
1614
  const s = new mn(p).between(n, r, !0), N = /* @__PURE__ */ new Set();
1615
1615
  i.exdate && Array.isArray(i.exdate) ? i.exdate.forEach((g) => {
@@ -1620,7 +1620,7 @@ class ro {
1620
1620
  isNaN(h) || N.add(h);
1621
1621
  }), s.forEach((g) => {
1622
1622
  if (N.has(g.getTime())) return;
1623
- const h = f.getTime() - d.getTime();
1623
+ const h = m.getTime() - d.getTime();
1624
1624
  if (isNaN(h)) return;
1625
1625
  const _ = new Date(g.getTime() + h);
1626
1626
  a.push({
@@ -1649,7 +1649,7 @@ const ao = (e, t, n) => {
1649
1649
  serviceRegistry: i = r,
1650
1650
  showWeekend: l = !0,
1651
1651
  recurrenceEngine: d,
1652
- onEventCreate: f,
1652
+ onEventCreate: m,
1653
1653
  onEventChange: p,
1654
1654
  onEventDelete: u
1655
1655
  } = e, s = dr(), N = it(
@@ -1664,17 +1664,17 @@ const ao = (e, t, n) => {
1664
1664
  _e(() => {
1665
1665
  a && a.length > 0 && (N.initializeWithData(a), s.invalidateQueries({ queryKey: ["scheduler-events"] }));
1666
1666
  }, [a, N, s]);
1667
- const h = Pe(() => {
1667
+ const h = ze(() => {
1668
1668
  let k, M;
1669
1669
  if (t === "day" || t === "timeline-day")
1670
- k = Re(n), M = Ft(n);
1670
+ k = Le(n), M = Ht(n);
1671
1671
  else if (t === "month" || t === "timeline-month")
1672
1672
  k = t === "month" ? st(bn(n), { weekStartsOn: 0 }) : bn(n), M = t === "month" ? wn(pn(n), { weekStartsOn: 0 }) : pn(n);
1673
1673
  else if (t === "week" || t === "workweek" || t === "timeline-week") {
1674
1674
  const S = st(n, { weekStartsOn: 0 });
1675
1675
  k = t === "workweek" ? vt(S, 1) : S, M = t === "workweek" ? vt(S, 5) : wn(n, { weekStartsOn: 0 });
1676
1676
  } else
1677
- k = Re(n), M = Ft(n);
1677
+ k = Le(n), M = Ht(n);
1678
1678
  try {
1679
1679
  const S = Jr({ start: k, end: M });
1680
1680
  return l ? S : S.filter((K) => {
@@ -1684,19 +1684,19 @@ const ao = (e, t, n) => {
1684
1684
  } catch {
1685
1685
  return [n];
1686
1686
  }
1687
- }, [t, n, l]), _ = h.length > 0 ? Re(h[0]) : /* @__PURE__ */ new Date(), z = h.length > 0 ? Ft(h[h.length - 1]) : /* @__PURE__ */ new Date(), { data: $ = [] } = ur({
1687
+ }, [t, n, l]), _ = h.length > 0 ? Le(h[0]) : /* @__PURE__ */ new Date(), z = h.length > 0 ? Ht(h[h.length - 1]) : /* @__PURE__ */ new Date(), { data: $ = [] } = ur({
1688
1688
  queryKey: ["scheduler-events", _.toISOString(), z.toISOString()],
1689
1689
  queryFn: () => N.getEvents(_, z),
1690
1690
  // If props.events are provided, we can use them as placeholder,
1691
1691
  // but typically the service.initializeWithData handles the seed.
1692
1692
  placeholderData: a || []
1693
1693
  // staleTime: 5000 // Optional: Cache for 5s
1694
- }), D = Pe(() => h.length === 0 ? [] : g.expandEvents($, _, z), [$, h, g, _, z]), B = Pe(() => h.length ? D.filter(
1694
+ }), D = ze(() => h.length === 0 ? [] : g.expandEvents($, _, z), [$, h, g, _, z]), B = ze(() => h.length ? D.filter(
1695
1695
  (k) => En(k.start, { start: _, end: z }) || En(k.end, { start: _, end: z }) || k.start < _ && k.end > z
1696
- ) : [], [D, h, _, z]), F = Lt({
1696
+ ) : [], [D, h, _, z]), F = zt({
1697
1697
  mutationFn: async (k) => {
1698
1698
  const M = await N.addEvent(k);
1699
- return f && await f(M), M;
1699
+ return m && await m(M), M;
1700
1700
  },
1701
1701
  onMutate: async (k) => {
1702
1702
  const M = ["scheduler-events", _.toISOString(), z.toISOString()];
@@ -1718,7 +1718,7 @@ const ao = (e, t, n) => {
1718
1718
  onSettled: () => {
1719
1719
  s.invalidateQueries({ queryKey: ["scheduler-events"] });
1720
1720
  }
1721
- }), ae = Lt({
1721
+ }), ae = zt({
1722
1722
  mutationFn: async (k) => {
1723
1723
  const M = await N.updateEvent(k);
1724
1724
  return p && await p(M), M;
@@ -1735,7 +1735,7 @@ const ao = (e, t, n) => {
1735
1735
  onSettled: () => {
1736
1736
  s.invalidateQueries({ queryKey: ["scheduler-events"] });
1737
1737
  }
1738
- }), x = Lt({
1738
+ }), x = zt({
1739
1739
  mutationFn: async (k) => (await N.deleteEvent(k), u && await u(k.toString()), k),
1740
1740
  onMutate: async (k) => {
1741
1741
  const M = ["scheduler-events", _.toISOString(), z.toISOString()];
@@ -1762,9 +1762,9 @@ const ao = (e, t, n) => {
1762
1762
  isUpdating: F.isPending || ae.isPending || x.isPending
1763
1763
  };
1764
1764
  }, oo = (e) => {
1765
- const { overscanCount: t = 2, startHour: n = "00:00", endHour: r = "24:00" } = e, a = parseInt(n.split(":")[0], 10), i = parseInt(r.split(":")[0], 10), d = 60 / (e.slotDuration || 30), f = Math.max(1, (i - a) * d), { rowVirtualizer: p, columnVirtualizer: u, parentRef: s } = Tr({
1765
+ const { overscanCount: t = 2, startHour: n = "00:00", endHour: r = "24:00" } = e, a = parseInt(n.split(":")[0], 10), i = parseInt(r.split(":")[0], 10), d = 60 / (e.slotDuration || 30), m = Math.max(1, (i - a) * d), { rowVirtualizer: p, columnVirtualizer: u, parentRef: s } = Tr({
1766
1766
  // Row Config
1767
- rowCount: f,
1767
+ rowCount: m,
1768
1768
  rowHeight: 64,
1769
1769
  // Standard slot height
1770
1770
  overscanCount: t,
@@ -1772,7 +1772,7 @@ const ao = (e, t, n) => {
1772
1772
  prefetchDistance: e.prefetchDistance,
1773
1773
  // Column Config (for Timeline views)
1774
1774
  enableColumnVirtualization: e.view?.startsWith("timeline"),
1775
- columnCount: e.view?.startsWith("timeline") ? f : 0,
1775
+ columnCount: e.view?.startsWith("timeline") ? m : 0,
1776
1776
  columnWidth: 100,
1777
1777
  // Standard column width
1778
1778
  id: e.id,
@@ -1790,15 +1790,15 @@ const ao = (e, t, n) => {
1790
1790
  columnVirtualizer: u
1791
1791
  };
1792
1792
  }, io = (e, t, n, r) => {
1793
- const a = (f) => {
1794
- t(f), r?.(f);
1793
+ const a = (m) => {
1794
+ t(m), r?.(m);
1795
1795
  };
1796
1796
  return { next: () => {
1797
- let f = e;
1798
- n === "day" || n === "timeline-day" ? f = vt(e, 1) : n === "week" || n === "workweek" || n === "timeline-week" ? f = Un(e, 1) : (n === "month" || n === "timeline-month") && (f = Wn(e, 1)), a(f);
1797
+ let m = e;
1798
+ n === "day" || n === "timeline-day" ? m = vt(e, 1) : n === "week" || n === "workweek" || n === "timeline-week" ? m = Un(e, 1) : (n === "month" || n === "timeline-month") && (m = Wn(e, 1)), a(m);
1799
1799
  }, prev: () => {
1800
- let f = e;
1801
- n === "day" || n === "timeline-day" ? f = Ka(e) : n === "week" || n === "workweek" || n === "timeline-week" ? f = Za(e) : (n === "month" || n === "timeline-month") && (f = Ja(e)), a(f);
1800
+ let m = e;
1801
+ n === "day" || n === "timeline-day" ? m = Ka(e) : n === "week" || n === "workweek" || n === "timeline-week" ? m = Za(e) : (n === "month" || n === "timeline-month") && (m = Ja(e)), a(m);
1802
1802
  }, today: () => {
1803
1803
  a(/* @__PURE__ */ new Date());
1804
1804
  } };
@@ -1850,8 +1850,8 @@ class co {
1850
1850
  if (!n || !n.trim()) return t;
1851
1851
  const a = r.matchCase ? n : n.toLowerCase(), i = r.fields || ["title", "description", "location"];
1852
1852
  return t.filter((l) => i.some((d) => {
1853
- const f = l[d];
1854
- return typeof f != "string" ? !1 : r.matchCase ? f.includes(a) : f.toLowerCase().includes(a);
1853
+ const m = l[d];
1854
+ return typeof m != "string" ? !1 : r.matchCase ? m.includes(a) : m.toLowerCase().includes(a);
1855
1855
  }));
1856
1856
  }
1857
1857
  cleanup() {
@@ -1956,7 +1956,7 @@ class fo {
1956
1956
  }
1957
1957
  }
1958
1958
  const mo = (e) => {
1959
- const t = ir(e), { serviceRegistry: n, state: r, api: a } = t, l = Ir("I18nService")?.dir || "ltr", f = e.dir === "auto" || !e.dir ? l : e.dir, p = Pe(() => eo({
1959
+ const t = ir(e), { serviceRegistry: n, state: r, api: a } = t, l = Ir("I18nService")?.dir || "ltr", m = e.dir === "auto" || !e.dir ? l : e.dir, p = ze(() => eo({
1960
1960
  events: e.events || [],
1961
1961
  resources: e.resources || [],
1962
1962
  view: e.view ? e.view.toLowerCase() : "week",
@@ -1964,7 +1964,7 @@ const mo = (e) => {
1964
1964
  selectedDate: e.selectedDate || /* @__PURE__ */ new Date(),
1965
1965
  slotDuration: e.slotDuration || 30,
1966
1966
  is24Hour: e.is24Hour ?? !0
1967
- }), []), u = Pe(() => to(p), [p]), s = cr(p, (H) => H);
1967
+ }), []), u = ze(() => to(p), [p]), s = cr(p, (H) => H);
1968
1968
  _e(() => {
1969
1969
  e.events && u.setEvents(e.events);
1970
1970
  }, [e.events]), _e(() => {
@@ -2011,7 +2011,7 @@ const mo = (e) => {
2011
2011
  u.setCurrentDate,
2012
2012
  N,
2013
2013
  e.onDateChange
2014
- ), [X, ne] = Ie(null), { selectedIndex: Me, setSelectedIndex: fe } = Br({
2014
+ ), [X, ne] = Re(null), { selectedIndex: Me, setSelectedIndex: fe } = Br({
2015
2015
  totalItems: D.length,
2016
2016
  enabled: !0,
2017
2017
  onSelect: (H) => {
@@ -2022,14 +2022,14 @@ const mo = (e) => {
2022
2022
  const R = D[H];
2023
2023
  R && e.onEventClick && e.onEventClick(R);
2024
2024
  }
2025
- }), ve = Pe(() => ({
2025
+ }), ve = ze(() => ({
2026
2026
  showWeekend: e.showWeekend ?? !0,
2027
2027
  timeFormat: e.timeFormat,
2028
2028
  weekRule: e.weekRule || "FirstDay",
2029
2029
  monthsCount: e.monthsCount || 1,
2030
2030
  eventDragArea: e.eventDragArea,
2031
- dir: f || "ltr"
2032
- }), [e.showWeekend, e.timeFormat, e.weekRule, e.monthsCount, e.eventDragArea, f]), se = it(n, "HistoryService", () => new so()), de = it(n, "SearchService", () => new co()), Z = it(n, "TimezoneService", () => new lo()), me = it(n, "AttendeeService", () => new uo()), ee = it(n, "ReminderService", () => new fo());
2031
+ dir: m || "ltr"
2032
+ }), [e.showWeekend, e.timeFormat, e.weekRule, e.monthsCount, e.eventDragArea, m]), se = it(n, "HistoryService", () => new so()), de = it(n, "SearchService", () => new co()), Z = it(n, "TimezoneService", () => new lo()), me = it(n, "AttendeeService", () => new uo()), ee = it(n, "ReminderService", () => new fo());
2033
2033
  return {
2034
2034
  /**
2035
2035
  * Namespaced state properties
@@ -2100,11 +2100,11 @@ const mo = (e) => {
2100
2100
  // --- Base API ---
2101
2101
  baseState: r,
2102
2102
  baseApi: a,
2103
- dir: f
2103
+ dir: m
2104
2104
  };
2105
2105
  }, ho = (e, t, n, r, a, i, l = {}) => {
2106
- const d = Pe(() => {
2107
- const f = fr(a.scrollToIndex), p = pr(
2106
+ const d = ze(() => {
2107
+ const m = fr(a.scrollToIndex), p = pr(
2108
2108
  () => n.getEvents(),
2109
2109
  (g) => n.addEvent(g),
2110
2110
  (g) => n.updateEvent(g),
@@ -2124,7 +2124,7 @@ const mo = (e) => {
2124
2124
  next: a.next,
2125
2125
  prev: a.prev,
2126
2126
  today: a.today,
2127
- ...f,
2127
+ ...m,
2128
2128
  scrollTo: (g, h = 0) => {
2129
2129
  const z = parseInt(g.split(":")[0]) * 60 + h, D = Math.floor(z / 30);
2130
2130
  a.scrollToIndex(D);
@@ -2177,7 +2177,7 @@ const mo = (e) => {
2177
2177
  }, [e, t, r, a, n, l]);
2178
2178
  vr(i, d);
2179
2179
  }, go = ({ resources: e }) => {
2180
- const t = Pe(() => !e || e.length === 0 ? [] : "dataSource" in e[0] ? e.flatMap((a) => a.dataSource) : e, [e]), [n, r] = Ie(t);
2180
+ const t = ze(() => !e || e.length === 0 ? [] : "dataSource" in e[0] ? e.flatMap((a) => a.dataSource) : e, [e]), [n, r] = Re(t);
2181
2181
  return _e(() => {
2182
2182
  r(t);
2183
2183
  }, [t]), { resources: t, internalResources: n, setInternalResources: r };
@@ -2187,12 +2187,12 @@ const mo = (e) => {
2187
2187
  slotDuration: n = 30
2188
2188
  }) => {
2189
2189
  const r = je((i) => {
2190
- const { active: l, over: d, delta: f } = i, p = e.find(
2190
+ const { active: l, over: d, delta: m } = i, p = e.find(
2191
2191
  (s) => s.id === l.id || s.id === (l.data?.current?.eventId || l.data?.current?.id)
2192
2192
  );
2193
2193
  if (!p) return;
2194
2194
  if (l.data?.current?.type?.startsWith("resize-")) {
2195
- const s = l.data.current.type, N = l.data.current, g = N?.orientation || "vertical", h = N?.pixelsPerSlot || 64, _ = g === "vertical" ? f.y : f.x, z = Math.round(_ / h) * n;
2195
+ const s = l.data.current.type, N = l.data.current, g = N?.orientation || "vertical", h = N?.pixelsPerSlot || 64, _ = g === "vertical" ? m.y : m.x, z = Math.round(_ / h) * n;
2196
2196
  if (z === 0) return;
2197
2197
  if (s === "resize-bottom") {
2198
2198
  const $ = new Date(p.end.getTime() + z * 60 * 1e3), D = new Date(p.start.getTime() + n * 60 * 1e3), B = $ < D ? D : $;
@@ -2286,18 +2286,18 @@ const mo = (e) => {
2286
2286
  orientation: i = "vertical",
2287
2287
  resizable: l = !1,
2288
2288
  className: d,
2289
- showTime: f = !0,
2289
+ showTime: m = !0,
2290
2290
  isBlocked: p = !1,
2291
2291
  isPast: u = !1,
2292
2292
  isHighlighted: s = !1,
2293
2293
  slotDuration: N = 30,
2294
2294
  pixelsPerSlot: g
2295
2295
  }) => {
2296
- const h = p || e.isBlock, _ = h || u, { attributes: z, listeners: $, setNodeRef: D, transform: B, isDragging: F } = zt({
2296
+ const h = p || e.isBlock, _ = h || u, { attributes: z, listeners: $, setNodeRef: D, transform: B, isDragging: F } = Ft({
2297
2297
  id: e.id,
2298
2298
  data: e,
2299
2299
  disabled: _
2300
- }), ae = g || (i === "vertical" ? 64 : 80), { attributes: x, listeners: k, setNodeRef: M, transform: S, isDragging: K } = zt({
2300
+ }), ae = g || (i === "vertical" ? 64 : 80), { attributes: x, listeners: k, setNodeRef: M, transform: S, isDragging: K } = Ft({
2301
2301
  id: `resize-bottom-${e.id}`,
2302
2302
  data: {
2303
2303
  type: "resize-bottom",
@@ -2306,7 +2306,7 @@ const mo = (e) => {
2306
2306
  pixelsPerSlot: ae
2307
2307
  },
2308
2308
  disabled: !l || _
2309
- }), { attributes: G, listeners: j, setNodeRef: De, transform: X, isDragging: ne } = zt({
2309
+ }), { attributes: G, listeners: j, setNodeRef: De, transform: X, isDragging: ne } = Ft({
2310
2310
  id: `resize-top-${e.id}`,
2311
2311
  data: {
2312
2312
  type: "resize-top",
@@ -2403,7 +2403,7 @@ const mo = (e) => {
2403
2403
  }
2404
2404
  )
2405
2405
  ] }),
2406
- f && !h && /* @__PURE__ */ w("div", { className: "text-[10px] text-muted-foreground truncate leading-tight", children: [
2406
+ m && !h && /* @__PURE__ */ w("div", { className: "text-[10px] text-muted-foreground truncate leading-tight", children: [
2407
2407
  ue(ve, "h:mm a"),
2408
2408
  " - ",
2409
2409
  ue(se, "h:mm a")
@@ -2460,7 +2460,7 @@ const mo = (e) => {
2460
2460
  onClick: i,
2461
2461
  onDoubleClick: l,
2462
2462
  onMouseDown: d,
2463
- onMouseEnter: f,
2463
+ onMouseEnter: m,
2464
2464
  onContextMenu: p,
2465
2465
  data: u,
2466
2466
  isSelected: s,
@@ -2489,7 +2489,7 @@ const mo = (e) => {
2489
2489
  onClick: i,
2490
2490
  onDoubleClick: l,
2491
2491
  onMouseDown: d,
2492
- onMouseEnter: f,
2492
+ onMouseEnter: m,
2493
2493
  onContextMenu: p,
2494
2494
  children: n
2495
2495
  }
@@ -2504,8 +2504,8 @@ const {
2504
2504
  } = Object;
2505
2505
  let {
2506
2506
  freeze: Ce,
2507
- seal: He,
2508
- create: Xt
2507
+ seal: We,
2508
+ create: Ct
2509
2509
  } = Object, {
2510
2510
  apply: Kt,
2511
2511
  construct: Jt
@@ -2513,7 +2513,7 @@ let {
2513
2513
  Ce || (Ce = function(t) {
2514
2514
  return t;
2515
2515
  });
2516
- He || (He = function(t) {
2516
+ We || (We = function(t) {
2517
2517
  return t;
2518
2518
  });
2519
2519
  Kt || (Kt = function(t, n) {
@@ -2526,7 +2526,7 @@ Jt || (Jt = function(t) {
2526
2526
  r[a - 1] = arguments[a];
2527
2527
  return new t(...r);
2528
2528
  });
2529
- const Tt = Ae(Array.prototype.forEach), ko = Ae(Array.prototype.lastIndexOf), Tn = Ae(Array.prototype.pop), gt = Ae(Array.prototype.push), To = Ae(Array.prototype.splice), Ct = Ae(String.prototype.toLowerCase), Wt = Ae(String.prototype.toString), Bt = Ae(String.prototype.match), pt = Ae(String.prototype.replace), Do = Ae(String.prototype.indexOf), Mo = Ae(String.prototype.trim), Ue = Ae(Object.prototype.hasOwnProperty), Ne = Ae(RegExp.prototype.test), bt = No(TypeError);
2529
+ const Tt = Ae(Array.prototype.forEach), ko = Ae(Array.prototype.lastIndexOf), Tn = Ae(Array.prototype.pop), gt = Ae(Array.prototype.push), To = Ae(Array.prototype.splice), At = Ae(String.prototype.toLowerCase), Bt = Ae(String.prototype.toString), Ut = Ae(String.prototype.match), pt = Ae(String.prototype.replace), Do = Ae(String.prototype.indexOf), Mo = Ae(String.prototype.trim), Pe = Ae(Object.prototype.hasOwnProperty), Ne = Ae(RegExp.prototype.test), bt = No(TypeError);
2530
2530
  function Ae(e) {
2531
2531
  return function(t) {
2532
2532
  t instanceof RegExp && (t.lastIndex = 0);
@@ -2543,7 +2543,7 @@ function No(e) {
2543
2543
  };
2544
2544
  }
2545
2545
  function Q(e, t) {
2546
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ct;
2546
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : At;
2547
2547
  kn && kn(e, null);
2548
2548
  let r = t.length;
2549
2549
  for (; r--; ) {
@@ -2558,13 +2558,13 @@ function Q(e, t) {
2558
2558
  }
2559
2559
  function _o(e) {
2560
2560
  for (let t = 0; t < e.length; t++)
2561
- Ue(e, t) || (e[t] = null);
2561
+ Pe(e, t) || (e[t] = null);
2562
2562
  return e;
2563
2563
  }
2564
2564
  function Ve(e) {
2565
- const t = Xt(null);
2565
+ const t = Ct(null);
2566
2566
  for (const [n, r] of jn(e))
2567
- Ue(e, n) && (Array.isArray(r) ? t[n] = _o(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Ve(r) : t[n] = r);
2567
+ Pe(e, n) && (Array.isArray(r) ? t[n] = _o(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Ve(r) : t[n] = r);
2568
2568
  return t;
2569
2569
  }
2570
2570
  function wt(e, t) {
@@ -2583,13 +2583,13 @@ function wt(e, t) {
2583
2583
  }
2584
2584
  return n;
2585
2585
  }
2586
- const Dn = Ce(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ut = Ce(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Yt = Ce(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Co = Ce(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Gt = Ce(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ao = Ce(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Mn = Ce(["#text"]), Nn = Ce(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = Ce(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), _n = Ce(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Dt = Ce(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Oo = He(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Io = He(/<%[\w\W]*|[\w\W]*%>/gm), Ro = He(/\$\{[\w\W]*/gm), Po = He(/^data-[\-\w.\u00B7-\uFFFF]+$/), Lo = He(/^aria-[\-\w]+$/), qn = He(
2586
+ const Dn = Ce(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Yt = Ce(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Gt = Ce(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Co = Ce(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), $t = Ce(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ao = Ce(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Mn = Ce(["#text"]), Nn = Ce(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Vt = Ce(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), _n = Ce(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Dt = Ce(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Oo = We(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Io = We(/<%[\w\W]*|[\w\W]*%>/gm), Ro = We(/\$\{[\w\W]*/gm), Po = We(/^data-[\-\w.\u00B7-\uFFFF]+$/), Lo = We(/^aria-[\-\w]+$/), qn = We(
2587
2587
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2588
2588
  // eslint-disable-line no-useless-escape
2589
- ), zo = He(/^(?:\w+script|data):/i), Fo = He(
2589
+ ), zo = We(/^(?:\w+script|data):/i), Fo = We(
2590
2590
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
2591
2591
  // eslint-disable-line no-control-regex
2592
- ), Qn = He(/^html$/i), Ho = He(/^[a-z][.\w]*(-[.\w]+)+$/i);
2592
+ ), Qn = We(/^html$/i), Ho = We(/^[a-z][.\w]*(-[.\w]+)+$/i);
2593
2593
  var Cn = /* @__PURE__ */ Object.freeze({
2594
2594
  __proto__: null,
2595
2595
  ARIA_ATTR: Lo,
@@ -2647,7 +2647,7 @@ const yt = {
2647
2647
  function Xn() {
2648
2648
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Wo();
2649
2649
  const t = (A) => Xn(A);
2650
- if (t.version = "3.3.1", t.removed = [], !e || !e.document || e.document.nodeType !== yt.document || !e.Element)
2650
+ if (t.version = "3.3.2", t.removed = [], !e || !e.document || e.document.nodeType !== yt.document || !e.Element)
2651
2651
  return t.isSupported = !1, t;
2652
2652
  let {
2653
2653
  document: n
@@ -2656,13 +2656,13 @@ function Xn() {
2656
2656
  DocumentFragment: i,
2657
2657
  HTMLTemplateElement: l,
2658
2658
  Node: d,
2659
- Element: f,
2659
+ Element: m,
2660
2660
  NodeFilter: p,
2661
2661
  NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap,
2662
2662
  HTMLFormElement: s,
2663
2663
  DOMParser: N,
2664
2664
  trustedTypes: g
2665
- } = e, h = f.prototype, _ = wt(h, "cloneNode"), z = wt(h, "remove"), $ = wt(h, "nextSibling"), D = wt(h, "childNodes"), B = wt(h, "parentNode");
2665
+ } = e, h = m.prototype, _ = wt(h, "cloneNode"), z = wt(h, "remove"), $ = wt(h, "nextSibling"), D = wt(h, "childNodes"), B = wt(h, "parentNode");
2666
2666
  if (typeof l == "function") {
2667
2667
  const A = n.createElement("template");
2668
2668
  A.content && A.content.ownerDocument && (n = A.content.ownerDocument);
@@ -2691,10 +2691,10 @@ function Xn() {
2691
2691
  let {
2692
2692
  IS_ALLOWED_URI: de
2693
2693
  } = Cn, Z = null;
2694
- const me = Q({}, [...Dn, ...Ut, ...Yt, ...Gt, ...Mn]);
2694
+ const me = Q({}, [...Dn, ...Yt, ...Gt, ...$t, ...Mn]);
2695
2695
  let ee = null;
2696
- const H = Q({}, [...Nn, ...$t, ..._n, ...Dt]);
2697
- let R = Object.seal(Xt(null, {
2696
+ const H = Q({}, [...Nn, ...Vt, ..._n, ...Dt]);
2697
+ let R = Object.seal(Ct(null, {
2698
2698
  tagNameCheck: {
2699
2699
  writable: !0,
2700
2700
  configurable: !1,
@@ -2713,8 +2713,8 @@ function Xn() {
2713
2713
  enumerable: !0,
2714
2714
  value: !1
2715
2715
  }
2716
- })), We = null, ye = null;
2717
- const Le = Object.seal(Xt(null, {
2716
+ })), Be = null, he = null;
2717
+ const Oe = Object.seal(Ct(null, {
2718
2718
  tagCheck: {
2719
2719
  writable: !0,
2720
2720
  configurable: !1,
@@ -2728,16 +2728,16 @@ function Xn() {
2728
2728
  value: null
2729
2729
  }
2730
2730
  }));
2731
- let v = !0, U = !0, q = !1, le = !0, oe = !1, Je = !0, Be = !1, Ye = !1, ze = !1, b = !1, O = !1, y = !1, C = !0, E = !1;
2731
+ let v = !0, U = !0, q = !1, le = !0, oe = !1, Je = !0, Ue = !1, Ye = !1, Fe = !1, b = !1, O = !1, y = !1, C = !0, E = !1;
2732
2732
  const I = "user-content-";
2733
2733
  let W = !0, Y = !1, P = {}, L = null;
2734
2734
  const te = Q({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2735
2735
  let J = null;
2736
2736
  const Se = Q({}, ["audio", "video", "img", "source", "image", "track"]);
2737
- let he = null;
2738
- const Ge = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), nt = "http://www.w3.org/1998/Math/MathML", Qe = "http://www.w3.org/2000/svg", ge = "http://www.w3.org/1999/xhtml";
2739
- let Ze = ge, ut = !1, Ee = null;
2740
- const rt = Q({}, [nt, Qe, ge], Wt);
2737
+ let ge = null;
2738
+ const Ge = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), nt = "http://www.w3.org/1998/Math/MathML", Qe = "http://www.w3.org/2000/svg", pe = "http://www.w3.org/1999/xhtml";
2739
+ let Ze = pe, ut = !1, Ee = null;
2740
+ const rt = Q({}, [nt, Qe, pe], Bt);
2741
2741
  let Et = Q({}, ["mi", "mo", "mn", "ms", "mtext"]), kt = Q({}, ["annotation-xml"]);
2742
2742
  const Jn = Q({}, ["title", "style", "font", "a", "script"]);
2743
2743
  let ft = null;
@@ -2745,11 +2745,11 @@ function Xn() {
2745
2745
  let xe = null, ct = null;
2746
2746
  const tr = n.createElement("form"), en = function(o) {
2747
2747
  return o instanceof RegExp || o instanceof Function;
2748
- }, It = function() {
2748
+ }, Rt = function() {
2749
2749
  let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2750
2750
  if (!(ct && ct === o)) {
2751
2751
  if ((!o || typeof o != "object") && (o = {}), o = Ve(o), ft = // eslint-disable-next-line unicorn/prefer-includes
2752
- Zn.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? er : o.PARSER_MEDIA_TYPE, xe = ft === "application/xhtml+xml" ? Wt : Ct, Z = Ue(o, "ALLOWED_TAGS") ? Q({}, o.ALLOWED_TAGS, xe) : me, ee = Ue(o, "ALLOWED_ATTR") ? Q({}, o.ALLOWED_ATTR, xe) : H, Ee = Ue(o, "ALLOWED_NAMESPACES") ? Q({}, o.ALLOWED_NAMESPACES, Wt) : rt, he = Ue(o, "ADD_URI_SAFE_ATTR") ? Q(Ve(Ge), o.ADD_URI_SAFE_ATTR, xe) : Ge, J = Ue(o, "ADD_DATA_URI_TAGS") ? Q(Ve(Se), o.ADD_DATA_URI_TAGS, xe) : Se, L = Ue(o, "FORBID_CONTENTS") ? Q({}, o.FORBID_CONTENTS, xe) : te, We = Ue(o, "FORBID_TAGS") ? Q({}, o.FORBID_TAGS, xe) : Ve({}), ye = Ue(o, "FORBID_ATTR") ? Q({}, o.FORBID_ATTR, xe) : Ve({}), P = Ue(o, "USE_PROFILES") ? o.USE_PROFILES : !1, v = o.ALLOW_ARIA_ATTR !== !1, U = o.ALLOW_DATA_ATTR !== !1, q = o.ALLOW_UNKNOWN_PROTOCOLS || !1, le = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = o.SAFE_FOR_TEMPLATES || !1, Je = o.SAFE_FOR_XML !== !1, Be = o.WHOLE_DOCUMENT || !1, b = o.RETURN_DOM || !1, O = o.RETURN_DOM_FRAGMENT || !1, y = o.RETURN_TRUSTED_TYPE || !1, ze = o.FORCE_BODY || !1, C = o.SANITIZE_DOM !== !1, E = o.SANITIZE_NAMED_PROPS || !1, W = o.KEEP_CONTENT !== !1, Y = o.IN_PLACE || !1, de = o.ALLOWED_URI_REGEXP || qn, Ze = o.NAMESPACE || ge, Et = o.MATHML_TEXT_INTEGRATION_POINTS || Et, kt = o.HTML_INTEGRATION_POINTS || kt, R = o.CUSTOM_ELEMENT_HANDLING || {}, o.CUSTOM_ELEMENT_HANDLING && en(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = o.CUSTOM_ELEMENT_HANDLING.tagNameCheck), o.CUSTOM_ELEMENT_HANDLING && en(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (U = !1), O && (b = !0), P && (Z = Q({}, Mn), ee = [], P.html === !0 && (Q(Z, Dn), Q(ee, Nn)), P.svg === !0 && (Q(Z, Ut), Q(ee, $t), Q(ee, Dt)), P.svgFilters === !0 && (Q(Z, Yt), Q(ee, $t), Q(ee, Dt)), P.mathMl === !0 && (Q(Z, Gt), Q(ee, _n), Q(ee, Dt))), o.ADD_TAGS && (typeof o.ADD_TAGS == "function" ? Le.tagCheck = o.ADD_TAGS : (Z === me && (Z = Ve(Z)), Q(Z, o.ADD_TAGS, xe))), o.ADD_ATTR && (typeof o.ADD_ATTR == "function" ? Le.attributeCheck = o.ADD_ATTR : (ee === H && (ee = Ve(ee)), Q(ee, o.ADD_ATTR, xe))), o.ADD_URI_SAFE_ATTR && Q(he, o.ADD_URI_SAFE_ATTR, xe), o.FORBID_CONTENTS && (L === te && (L = Ve(L)), Q(L, o.FORBID_CONTENTS, xe)), o.ADD_FORBID_CONTENTS && (L === te && (L = Ve(L)), Q(L, o.ADD_FORBID_CONTENTS, xe)), W && (Z["#text"] = !0), Be && Q(Z, ["html", "head", "body"]), Z.table && (Q(Z, ["tbody"]), delete We.tbody), o.TRUSTED_TYPES_POLICY) {
2752
+ Zn.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? er : o.PARSER_MEDIA_TYPE, xe = ft === "application/xhtml+xml" ? Bt : At, Z = Pe(o, "ALLOWED_TAGS") ? Q({}, o.ALLOWED_TAGS, xe) : me, ee = Pe(o, "ALLOWED_ATTR") ? Q({}, o.ALLOWED_ATTR, xe) : H, Ee = Pe(o, "ALLOWED_NAMESPACES") ? Q({}, o.ALLOWED_NAMESPACES, Bt) : rt, ge = Pe(o, "ADD_URI_SAFE_ATTR") ? Q(Ve(Ge), o.ADD_URI_SAFE_ATTR, xe) : Ge, J = Pe(o, "ADD_DATA_URI_TAGS") ? Q(Ve(Se), o.ADD_DATA_URI_TAGS, xe) : Se, L = Pe(o, "FORBID_CONTENTS") ? Q({}, o.FORBID_CONTENTS, xe) : te, Be = Pe(o, "FORBID_TAGS") ? Q({}, o.FORBID_TAGS, xe) : Ve({}), he = Pe(o, "FORBID_ATTR") ? Q({}, o.FORBID_ATTR, xe) : Ve({}), P = Pe(o, "USE_PROFILES") ? o.USE_PROFILES : !1, v = o.ALLOW_ARIA_ATTR !== !1, U = o.ALLOW_DATA_ATTR !== !1, q = o.ALLOW_UNKNOWN_PROTOCOLS || !1, le = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = o.SAFE_FOR_TEMPLATES || !1, Je = o.SAFE_FOR_XML !== !1, Ue = o.WHOLE_DOCUMENT || !1, b = o.RETURN_DOM || !1, O = o.RETURN_DOM_FRAGMENT || !1, y = o.RETURN_TRUSTED_TYPE || !1, Fe = o.FORCE_BODY || !1, C = o.SANITIZE_DOM !== !1, E = o.SANITIZE_NAMED_PROPS || !1, W = o.KEEP_CONTENT !== !1, Y = o.IN_PLACE || !1, de = o.ALLOWED_URI_REGEXP || qn, Ze = o.NAMESPACE || pe, Et = o.MATHML_TEXT_INTEGRATION_POINTS || Et, kt = o.HTML_INTEGRATION_POINTS || kt, R = o.CUSTOM_ELEMENT_HANDLING || {}, o.CUSTOM_ELEMENT_HANDLING && en(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = o.CUSTOM_ELEMENT_HANDLING.tagNameCheck), o.CUSTOM_ELEMENT_HANDLING && en(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (U = !1), O && (b = !0), P && (Z = Q({}, Mn), ee = Ct(null), P.html === !0 && (Q(Z, Dn), Q(ee, Nn)), P.svg === !0 && (Q(Z, Yt), Q(ee, Vt), Q(ee, Dt)), P.svgFilters === !0 && (Q(Z, Gt), Q(ee, Vt), Q(ee, Dt)), P.mathMl === !0 && (Q(Z, $t), Q(ee, _n), Q(ee, Dt))), Pe(o, "ADD_TAGS") || (Oe.tagCheck = null), Pe(o, "ADD_ATTR") || (Oe.attributeCheck = null), o.ADD_TAGS && (typeof o.ADD_TAGS == "function" ? Oe.tagCheck = o.ADD_TAGS : (Z === me && (Z = Ve(Z)), Q(Z, o.ADD_TAGS, xe))), o.ADD_ATTR && (typeof o.ADD_ATTR == "function" ? Oe.attributeCheck = o.ADD_ATTR : (ee === H && (ee = Ve(ee)), Q(ee, o.ADD_ATTR, xe))), o.ADD_URI_SAFE_ATTR && Q(ge, o.ADD_URI_SAFE_ATTR, xe), o.FORBID_CONTENTS && (L === te && (L = Ve(L)), Q(L, o.FORBID_CONTENTS, xe)), o.ADD_FORBID_CONTENTS && (L === te && (L = Ve(L)), Q(L, o.ADD_FORBID_CONTENTS, xe)), W && (Z["#text"] = !0), Ue && Q(Z, ["html", "head", "body"]), Z.table && (Q(Z, ["tbody"]), delete Be.tbody), o.TRUSTED_TYPES_POLICY) {
2753
2753
  if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function")
2754
2754
  throw bt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2755
2755
  if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -2759,14 +2759,14 @@ function Xn() {
2759
2759
  F === void 0 && (F = Bo(g, a)), F !== null && typeof ae == "string" && (ae = F.createHTML(""));
2760
2760
  Ce && Ce(o), ct = o;
2761
2761
  }
2762
- }, tn = Q({}, [...Ut, ...Yt, ...Co]), nn = Q({}, [...Gt, ...Ao]), nr = function(o) {
2763
- let m = B(o);
2764
- (!m || !m.tagName) && (m = {
2762
+ }, tn = Q({}, [...Yt, ...Gt, ...Co]), nn = Q({}, [...$t, ...Ao]), nr = function(o) {
2763
+ let f = B(o);
2764
+ (!f || !f.tagName) && (f = {
2765
2765
  namespaceURI: Ze,
2766
2766
  tagName: "template"
2767
2767
  });
2768
- const T = Ct(o.tagName), ce = Ct(m.tagName);
2769
- return Ee[o.namespaceURI] ? o.namespaceURI === Qe ? m.namespaceURI === ge ? T === "svg" : m.namespaceURI === nt ? T === "svg" && (ce === "annotation-xml" || Et[ce]) : !!tn[T] : o.namespaceURI === nt ? m.namespaceURI === ge ? T === "math" : m.namespaceURI === Qe ? T === "math" && kt[ce] : !!nn[T] : o.namespaceURI === ge ? m.namespaceURI === Qe && !kt[ce] || m.namespaceURI === nt && !Et[ce] ? !1 : !nn[T] && (Jn[T] || !tn[T]) : !!(ft === "application/xhtml+xml" && Ee[o.namespaceURI]) : !1;
2768
+ const T = At(o.tagName), ce = At(f.tagName);
2769
+ return Ee[o.namespaceURI] ? o.namespaceURI === Qe ? f.namespaceURI === pe ? T === "svg" : f.namespaceURI === nt ? T === "svg" && (ce === "annotation-xml" || Et[ce]) : !!tn[T] : o.namespaceURI === nt ? f.namespaceURI === pe ? T === "math" : f.namespaceURI === Qe ? T === "math" && kt[ce] : !!nn[T] : o.namespaceURI === pe ? f.namespaceURI === Qe && !kt[ce] || f.namespaceURI === nt && !Et[ce] ? !1 : !nn[T] && (Jn[T] || !tn[T]) : !!(ft === "application/xhtml+xml" && Ee[o.namespaceURI]) : !1;
2770
2770
  }, $e = function(o) {
2771
2771
  gt(t.removed, {
2772
2772
  element: o
@@ -2776,53 +2776,53 @@ function Xn() {
2776
2776
  } catch {
2777
2777
  z(o);
2778
2778
  }
2779
- }, at = function(o, m) {
2779
+ }, at = function(o, f) {
2780
2780
  try {
2781
2781
  gt(t.removed, {
2782
- attribute: m.getAttributeNode(o),
2783
- from: m
2782
+ attribute: f.getAttributeNode(o),
2783
+ from: f
2784
2784
  });
2785
2785
  } catch {
2786
2786
  gt(t.removed, {
2787
2787
  attribute: null,
2788
- from: m
2788
+ from: f
2789
2789
  });
2790
2790
  }
2791
- if (m.removeAttribute(o), o === "is")
2791
+ if (f.removeAttribute(o), o === "is")
2792
2792
  if (b || O)
2793
2793
  try {
2794
- $e(m);
2794
+ $e(f);
2795
2795
  } catch {
2796
2796
  }
2797
2797
  else
2798
2798
  try {
2799
- m.setAttribute(o, "");
2799
+ f.setAttribute(o, "");
2800
2800
  } catch {
2801
2801
  }
2802
2802
  }, rn = function(o) {
2803
- let m = null, T = null;
2804
- if (ze)
2803
+ let f = null, T = null;
2804
+ if (Fe)
2805
2805
  o = "<remove></remove>" + o;
2806
2806
  else {
2807
- const pe = Bt(o, /^[\r\n\t ]+/);
2808
- T = pe && pe[0];
2807
+ const be = Ut(o, /^[\r\n\t ]+/);
2808
+ T = be && be[0];
2809
2809
  }
2810
- ft === "application/xhtml+xml" && Ze === ge && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
2810
+ ft === "application/xhtml+xml" && Ze === pe && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
2811
2811
  const ce = F ? F.createHTML(o) : o;
2812
- if (Ze === ge)
2812
+ if (Ze === pe)
2813
2813
  try {
2814
- m = new N().parseFromString(ce, ft);
2814
+ f = new N().parseFromString(ce, ft);
2815
2815
  } catch {
2816
2816
  }
2817
- if (!m || !m.documentElement) {
2818
- m = x.createDocument(Ze, "template", null);
2817
+ if (!f || !f.documentElement) {
2818
+ f = x.createDocument(Ze, "template", null);
2819
2819
  try {
2820
- m.documentElement.innerHTML = ut ? ae : ce;
2820
+ f.documentElement.innerHTML = ut ? ae : ce;
2821
2821
  } catch {
2822
2822
  }
2823
2823
  }
2824
- const Te = m.body || m.documentElement;
2825
- return o && T && Te.insertBefore(n.createTextNode(T), Te.childNodes[0] || null), Ze === ge ? S.call(m, Be ? "html" : "body")[0] : Be ? m.documentElement : Te;
2824
+ const Te = f.body || f.documentElement;
2825
+ return o && T && Te.insertBefore(n.createTextNode(T), Te.childNodes[0] || null), Ze === pe ? S.call(f, Ue ? "html" : "body")[0] : Ue ? f.documentElement : Te;
2826
2826
  }, an = function(o) {
2827
2827
  return k.call(
2828
2828
  o.ownerDocument || o,
@@ -2831,19 +2831,19 @@ function Xn() {
2831
2831
  p.SHOW_ELEMENT | p.SHOW_COMMENT | p.SHOW_TEXT | p.SHOW_PROCESSING_INSTRUCTION | p.SHOW_CDATA_SECTION,
2832
2832
  null
2833
2833
  );
2834
- }, Rt = function(o) {
2834
+ }, Pt = function(o) {
2835
2835
  return o instanceof s && (typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || !(o.attributes instanceof u) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function");
2836
2836
  }, on = function(o) {
2837
2837
  return typeof d == "function" && o instanceof d;
2838
2838
  };
2839
- function Xe(A, o, m) {
2839
+ function Xe(A, o, f) {
2840
2840
  Tt(A, (T) => {
2841
- T.call(t, o, m, ct);
2841
+ T.call(t, o, f, ct);
2842
2842
  });
2843
2843
  }
2844
2844
  const sn = function(o) {
2845
- let m = null;
2846
- if (Xe(G.beforeSanitizeElements, o, null), Rt(o))
2845
+ let f = null;
2846
+ if (Xe(G.beforeSanitizeElements, o, null), Pt(o))
2847
2847
  return $e(o), !0;
2848
2848
  const T = xe(o.nodeName);
2849
2849
  if (Xe(G.uponSanitizeElement, o, {
@@ -2851,44 +2851,44 @@ function Xn() {
2851
2851
  allowedTags: Z
2852
2852
  }), Je && o.hasChildNodes() && !on(o.firstElementChild) && Ne(/<[/\w!]/g, o.innerHTML) && Ne(/<[/\w!]/g, o.textContent) || o.nodeType === yt.progressingInstruction || Je && o.nodeType === yt.comment && Ne(/<[/\w]/g, o.data))
2853
2853
  return $e(o), !0;
2854
- if (!(Le.tagCheck instanceof Function && Le.tagCheck(T)) && (!Z[T] || We[T])) {
2855
- if (!We[T] && ln(T) && (R.tagNameCheck instanceof RegExp && Ne(R.tagNameCheck, T) || R.tagNameCheck instanceof Function && R.tagNameCheck(T)))
2854
+ if (!(Oe.tagCheck instanceof Function && Oe.tagCheck(T)) && (!Z[T] || Be[T])) {
2855
+ if (!Be[T] && ln(T) && (R.tagNameCheck instanceof RegExp && Ne(R.tagNameCheck, T) || R.tagNameCheck instanceof Function && R.tagNameCheck(T)))
2856
2856
  return !1;
2857
2857
  if (W && !L[T]) {
2858
2858
  const ce = B(o) || o.parentNode, Te = D(o) || o.childNodes;
2859
2859
  if (Te && ce) {
2860
- const pe = Te.length;
2861
- for (let Oe = pe - 1; Oe >= 0; --Oe) {
2862
- const Ke = _(Te[Oe], !0);
2860
+ const be = Te.length;
2861
+ for (let Ie = be - 1; Ie >= 0; --Ie) {
2862
+ const Ke = _(Te[Ie], !0);
2863
2863
  Ke.__removalCount = (o.__removalCount || 0) + 1, ce.insertBefore(Ke, $(o));
2864
2864
  }
2865
2865
  }
2866
2866
  }
2867
2867
  return $e(o), !0;
2868
2868
  }
2869
- return o instanceof f && !nr(o) || (T === "noscript" || T === "noembed" || T === "noframes") && Ne(/<\/no(script|embed|frames)/i, o.innerHTML) ? ($e(o), !0) : (oe && o.nodeType === yt.text && (m = o.textContent, Tt([j, De, X], (ce) => {
2870
- m = pt(m, ce, " ");
2871
- }), o.textContent !== m && (gt(t.removed, {
2869
+ return o instanceof m && !nr(o) || (T === "noscript" || T === "noembed" || T === "noframes") && Ne(/<\/no(script|embed|frames)/i, o.innerHTML) ? ($e(o), !0) : (oe && o.nodeType === yt.text && (f = o.textContent, Tt([j, De, X], (ce) => {
2870
+ f = pt(f, ce, " ");
2871
+ }), o.textContent !== f && (gt(t.removed, {
2872
2872
  element: o.cloneNode()
2873
- }), o.textContent = m)), Xe(G.afterSanitizeElements, o, null), !1);
2874
- }, cn = function(o, m, T) {
2875
- if (C && (m === "id" || m === "name") && (T in n || T in tr))
2873
+ }), o.textContent = f)), Xe(G.afterSanitizeElements, o, null), !1);
2874
+ }, cn = function(o, f, T) {
2875
+ if (he[f] || C && (f === "id" || f === "name") && (T in n || T in tr))
2876
2876
  return !1;
2877
- if (!(U && !ye[m] && Ne(ne, m))) {
2878
- if (!(v && Ne(Me, m))) {
2879
- if (!(Le.attributeCheck instanceof Function && Le.attributeCheck(m, o))) {
2880
- if (!ee[m] || ye[m]) {
2877
+ if (!(U && !he[f] && Ne(ne, f))) {
2878
+ if (!(v && Ne(Me, f))) {
2879
+ if (!(Oe.attributeCheck instanceof Function && Oe.attributeCheck(f, o))) {
2880
+ if (!ee[f] || he[f]) {
2881
2881
  if (
2882
2882
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2883
2883
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2884
2884
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
2885
- !(ln(o) && (R.tagNameCheck instanceof RegExp && Ne(R.tagNameCheck, o) || R.tagNameCheck instanceof Function && R.tagNameCheck(o)) && (R.attributeNameCheck instanceof RegExp && Ne(R.attributeNameCheck, m) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(m, o)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2885
+ !(ln(o) && (R.tagNameCheck instanceof RegExp && Ne(R.tagNameCheck, o) || R.tagNameCheck instanceof Function && R.tagNameCheck(o)) && (R.attributeNameCheck instanceof RegExp && Ne(R.attributeNameCheck, f) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(f, o)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2886
2886
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2887
- m === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && Ne(R.tagNameCheck, T) || R.tagNameCheck instanceof Function && R.tagNameCheck(T)))
2887
+ f === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && Ne(R.tagNameCheck, T) || R.tagNameCheck instanceof Function && R.tagNameCheck(T)))
2888
2888
  ) return !1;
2889
- } else if (!he[m]) {
2889
+ } else if (!ge[f]) {
2890
2890
  if (!Ne(de, pt(T, ve, ""))) {
2891
- if (!((m === "src" || m === "xlink:href" || m === "href") && o !== "script" && Do(T, "data:") === 0 && J[o])) {
2891
+ if (!((f === "src" || f === "xlink:href" || f === "href") && o !== "script" && Do(T, "data:") === 0 && J[o])) {
2892
2892
  if (!(q && !Ne(fe, pt(T, ve, "")))) {
2893
2893
  if (T)
2894
2894
  return !1;
@@ -2901,13 +2901,13 @@ function Xn() {
2901
2901
  }
2902
2902
  return !0;
2903
2903
  }, ln = function(o) {
2904
- return o !== "annotation-xml" && Bt(o, se);
2904
+ return o !== "annotation-xml" && Ut(o, se);
2905
2905
  }, dn = function(o) {
2906
2906
  Xe(G.beforeSanitizeAttributes, o, null);
2907
2907
  const {
2908
- attributes: m
2908
+ attributes: f
2909
2909
  } = o;
2910
- if (!m || Rt(o))
2910
+ if (!f || Pt(o))
2911
2911
  return;
2912
2912
  const T = {
2913
2913
  attrName: "",
@@ -2916,30 +2916,30 @@ function Xn() {
2916
2916
  allowedAttributes: ee,
2917
2917
  forceKeepAttr: void 0
2918
2918
  };
2919
- let ce = m.length;
2919
+ let ce = f.length;
2920
2920
  for (; ce--; ) {
2921
- const Te = m[ce], {
2922
- name: pe,
2923
- namespaceURI: Oe,
2921
+ const Te = f[ce], {
2922
+ name: be,
2923
+ namespaceURI: Ie,
2924
2924
  value: Ke
2925
- } = Te, lt = xe(pe), Pt = Ke;
2926
- let ke = pe === "value" ? Pt : Mo(Pt);
2927
- if (T.attrName = lt, T.attrValue = ke, T.keepAttr = !0, T.forceKeepAttr = void 0, Xe(G.uponSanitizeAttribute, o, T), ke = T.attrValue, E && (lt === "id" || lt === "name") && (at(pe, o), ke = I + ke), Je && Ne(/((--!?|])>)|<\/(style|title|textarea)/i, ke)) {
2928
- at(pe, o);
2925
+ } = Te, lt = xe(be), Lt = Ke;
2926
+ let ke = be === "value" ? Lt : Mo(Lt);
2927
+ if (T.attrName = lt, T.attrValue = ke, T.keepAttr = !0, T.forceKeepAttr = void 0, Xe(G.uponSanitizeAttribute, o, T), ke = T.attrValue, E && (lt === "id" || lt === "name") && (at(be, o), ke = I + ke), Je && Ne(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, ke)) {
2928
+ at(be, o);
2929
2929
  continue;
2930
2930
  }
2931
- if (lt === "attributename" && Bt(ke, "href")) {
2932
- at(pe, o);
2931
+ if (lt === "attributename" && Ut(ke, "href")) {
2932
+ at(be, o);
2933
2933
  continue;
2934
2934
  }
2935
2935
  if (T.forceKeepAttr)
2936
2936
  continue;
2937
2937
  if (!T.keepAttr) {
2938
- at(pe, o);
2938
+ at(be, o);
2939
2939
  continue;
2940
2940
  }
2941
2941
  if (!le && Ne(/\/>/i, ke)) {
2942
- at(pe, o);
2942
+ at(be, o);
2943
2943
  continue;
2944
2944
  }
2945
2945
  oe && Tt([j, De, X], (fn) => {
@@ -2947,10 +2947,10 @@ function Xn() {
2947
2947
  });
2948
2948
  const un = xe(o.nodeName);
2949
2949
  if (!cn(un, lt, ke)) {
2950
- at(pe, o);
2950
+ at(be, o);
2951
2951
  continue;
2952
2952
  }
2953
- if (F && typeof g == "object" && typeof g.getAttributeType == "function" && !Oe)
2953
+ if (F && typeof g == "object" && typeof g.getAttributeType == "function" && !Ie)
2954
2954
  switch (g.getAttributeType(un, lt)) {
2955
2955
  case "TrustedHTML": {
2956
2956
  ke = F.createHTML(ke);
@@ -2961,23 +2961,23 @@ function Xn() {
2961
2961
  break;
2962
2962
  }
2963
2963
  }
2964
- if (ke !== Pt)
2964
+ if (ke !== Lt)
2965
2965
  try {
2966
- Oe ? o.setAttributeNS(Oe, pe, ke) : o.setAttribute(pe, ke), Rt(o) ? $e(o) : Tn(t.removed);
2966
+ Ie ? o.setAttributeNS(Ie, be, ke) : o.setAttribute(be, ke), Pt(o) ? $e(o) : Tn(t.removed);
2967
2967
  } catch {
2968
- at(pe, o);
2968
+ at(be, o);
2969
2969
  }
2970
2970
  }
2971
2971
  Xe(G.afterSanitizeAttributes, o, null);
2972
2972
  }, rr = function A(o) {
2973
- let m = null;
2973
+ let f = null;
2974
2974
  const T = an(o);
2975
- for (Xe(G.beforeSanitizeShadowDOM, o, null); m = T.nextNode(); )
2976
- Xe(G.uponSanitizeShadowNode, m, null), sn(m), dn(m), m.content instanceof i && A(m.content);
2975
+ for (Xe(G.beforeSanitizeShadowDOM, o, null); f = T.nextNode(); )
2976
+ Xe(G.uponSanitizeShadowNode, f, null), sn(f), dn(f), f.content instanceof i && A(f.content);
2977
2977
  Xe(G.afterSanitizeShadowDOM, o, null);
2978
2978
  };
2979
2979
  return t.sanitize = function(A) {
2980
- let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, T = null, ce = null, Te = null;
2980
+ let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, T = null, ce = null, Te = null;
2981
2981
  if (ut = !A, ut && (A = "<!-->"), typeof A != "string" && !on(A))
2982
2982
  if (typeof A.toString == "function") {
2983
2983
  if (A = A.toString(), typeof A != "string")
@@ -2986,55 +2986,55 @@ function Xn() {
2986
2986
  throw bt("toString is not a function");
2987
2987
  if (!t.isSupported)
2988
2988
  return A;
2989
- if (Ye || It(o), t.removed = [], typeof A == "string" && (Y = !1), Y) {
2989
+ if (Ye || Rt(o), t.removed = [], typeof A == "string" && (Y = !1), Y) {
2990
2990
  if (A.nodeName) {
2991
2991
  const Ke = xe(A.nodeName);
2992
- if (!Z[Ke] || We[Ke])
2992
+ if (!Z[Ke] || Be[Ke])
2993
2993
  throw bt("root node is forbidden and cannot be sanitized in-place");
2994
2994
  }
2995
2995
  } else if (A instanceof d)
2996
- m = rn("<!---->"), T = m.ownerDocument.importNode(A, !0), T.nodeType === yt.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? m = T : m.appendChild(T);
2996
+ f = rn("<!---->"), T = f.ownerDocument.importNode(A, !0), T.nodeType === yt.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? f = T : f.appendChild(T);
2997
2997
  else {
2998
- if (!b && !oe && !Be && // eslint-disable-next-line unicorn/prefer-includes
2998
+ if (!b && !oe && !Ue && // eslint-disable-next-line unicorn/prefer-includes
2999
2999
  A.indexOf("<") === -1)
3000
3000
  return F && y ? F.createHTML(A) : A;
3001
- if (m = rn(A), !m)
3001
+ if (f = rn(A), !f)
3002
3002
  return b ? null : y ? ae : "";
3003
3003
  }
3004
- m && ze && $e(m.firstChild);
3005
- const pe = an(Y ? A : m);
3006
- for (; ce = pe.nextNode(); )
3004
+ f && Fe && $e(f.firstChild);
3005
+ const be = an(Y ? A : f);
3006
+ for (; ce = be.nextNode(); )
3007
3007
  sn(ce), dn(ce), ce.content instanceof i && rr(ce.content);
3008
3008
  if (Y)
3009
3009
  return A;
3010
3010
  if (b) {
3011
3011
  if (O)
3012
- for (Te = M.call(m.ownerDocument); m.firstChild; )
3013
- Te.appendChild(m.firstChild);
3012
+ for (Te = M.call(f.ownerDocument); f.firstChild; )
3013
+ Te.appendChild(f.firstChild);
3014
3014
  else
3015
- Te = m;
3015
+ Te = f;
3016
3016
  return (ee.shadowroot || ee.shadowrootmode) && (Te = K.call(r, Te, !0)), Te;
3017
3017
  }
3018
- let Oe = Be ? m.outerHTML : m.innerHTML;
3019
- return Be && Z["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && Ne(Qn, m.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
3020
- ` + Oe), oe && Tt([j, De, X], (Ke) => {
3021
- Oe = pt(Oe, Ke, " ");
3022
- }), F && y ? F.createHTML(Oe) : Oe;
3018
+ let Ie = Ue ? f.outerHTML : f.innerHTML;
3019
+ return Ue && Z["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && Ne(Qn, f.ownerDocument.doctype.name) && (Ie = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
3020
+ ` + Ie), oe && Tt([j, De, X], (Ke) => {
3021
+ Ie = pt(Ie, Ke, " ");
3022
+ }), F && y ? F.createHTML(Ie) : Ie;
3023
3023
  }, t.setConfig = function() {
3024
3024
  let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3025
- It(A), Ye = !0;
3025
+ Rt(A), Ye = !0;
3026
3026
  }, t.clearConfig = function() {
3027
3027
  ct = null, Ye = !1;
3028
- }, t.isValidAttribute = function(A, o, m) {
3029
- ct || It({});
3028
+ }, t.isValidAttribute = function(A, o, f) {
3029
+ ct || Rt({});
3030
3030
  const T = xe(A), ce = xe(o);
3031
- return cn(T, ce, m);
3031
+ return cn(T, ce, f);
3032
3032
  }, t.addHook = function(A, o) {
3033
3033
  typeof o == "function" && gt(G[A], o);
3034
3034
  }, t.removeHook = function(A, o) {
3035
3035
  if (o !== void 0) {
3036
- const m = ko(G[A], o);
3037
- return m === -1 ? void 0 : To(G[A], m, 1)[0];
3036
+ const f = ko(G[A], o);
3037
+ return f === -1 ? void 0 : To(G[A], f, 1)[0];
3038
3038
  }
3039
3039
  return Tn(G[A]);
3040
3040
  }, t.removeHooks = function(A) {
@@ -3101,7 +3101,7 @@ function Go(e, t = "FirstDay") {
3101
3101
  return _t(e);
3102
3102
  }
3103
3103
  }
3104
- const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3104
+ const $o = (e, t, n, r, a, i, l, d, m, p = !0, u = !1) => {
3105
3105
  let s = 0, N = 0;
3106
3106
  if (p) {
3107
3107
  const $ = a / r, D = $ / l;
@@ -3110,7 +3110,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3110
3110
  const $ = a / r, D = $ / l;
3111
3111
  s = n * a + t * $ + i * D, N = D * 0.98;
3112
3112
  }
3113
- const h = ((e.start.getHours() - d) * 60 + e.start.getMinutes()) / f * 64, z = (e.end.getTime() - e.start.getTime()) / (1e3 * 60) / f * 64;
3113
+ const h = ((e.start.getHours() - d) * 60 + e.start.getMinutes()) / m * 64, z = (e.end.getTime() - e.start.getTime()) / (1e3 * 60) / m * 64;
3114
3114
  return {
3115
3115
  top: `${h}px`,
3116
3116
  height: `${Math.max(z, 24)}px`,
@@ -3141,7 +3141,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3141
3141
  onEventClick: i,
3142
3142
  onEventDoubleClick: l,
3143
3143
  onEventDelete: d,
3144
- scrollRef: f,
3144
+ scrollRef: m,
3145
3145
  onViewChange: p,
3146
3146
  onDateChange: u,
3147
3147
  locale: s,
@@ -3164,8 +3164,8 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3164
3164
  onCellContextMenu: K,
3165
3165
  dir: G
3166
3166
  }) => {
3167
- const j = G === "rtl", De = Zt(), X = parseInt(ae.split(":")[0], 10), [ne, Me] = Ie(null), [fe, ve] = Ie(!1), se = Mt(null), de = (y, C, E) => t.some(
3168
- (W) => (W.isHoliday || W.isFullyBooked) && we(W.start, y)
3167
+ const j = G === "rtl", De = Zt(), X = parseInt(ae.split(":")[0], 10), [ne, Me] = Re(null), [fe, ve] = Re(!1), se = Mt(null), de = (y, C, E) => t.some(
3168
+ (W) => (W.isHoliday || W.isFullyBooked) && ye(W.start, y)
3169
3169
  ) ? !0 : t.some(
3170
3170
  (W) => W.isBlock && // Check resource constraint: applies to specific resource, or globally if neither has resourceId
3171
3171
  (W.resourceId === E || !W.resourceId && !E) && Nt({ start: W.start, end: W.end }, { start: y, end: C })
@@ -3190,23 +3190,23 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3190
3190
  };
3191
3191
  return window.addEventListener("mouseup", y), () => window.removeEventListener("mouseup", y);
3192
3192
  }, [fe, N, g]);
3193
- const ee = zn("(max-width: 768px)"), H = Pe(() => {
3193
+ const ee = zn("(max-width: 768px)"), H = ze(() => {
3194
3194
  let y = a && r.length > 0 ? [...r] : [];
3195
3195
  return (F || a && y.length === 0) && (y.find((C) => C.id === "" || C.id === "unassigned") || y.unshift({ id: "unassigned", name: "Unassigned", type: "Global Inbox", color: "hsl(var(--muted-foreground))" })), y.length > 0 ? y : [{ id: "", name: "" }];
3196
- }, [r, a, F]), R = ee && a && H.length > 1, We = !ee && (H.length > 3 || e.length > 3 && H.length > 1), ye = R || We, U = e.length * H.length * 150, q = {
3197
- width: ye && U > 0 ? `${U}px` : "100%",
3196
+ }, [r, a, F]), R = ee && a && H.length > 1, Be = !ee && (H.length > 3 || e.length > 3 && H.length > 1), he = R || Be, U = e.length * H.length * 150, q = {
3197
+ width: he && U > 0 ? `${U}px` : "100%",
3198
3198
  minWidth: "100%"
3199
- }, le = new Intl.DateTimeFormat(s, { day: "numeric" }), oe = S?.byDate ?? !0, Je = oe ? e : H, Be = oe ? H : e, Ye = Je, ze = Be, b = 100 / Ye.length, O = 100 / ze.length;
3199
+ }, le = new Intl.DateTimeFormat(s, { day: "numeric" }), oe = S?.byDate ?? !0, Je = oe ? e : H, Ue = oe ? H : e, Ye = Je, Fe = Ue, b = 100 / Ye.length, O = 100 / Fe.length;
3200
3200
  return /* @__PURE__ */ w(
3201
3201
  "div",
3202
3202
  {
3203
- ref: f,
3203
+ ref: m,
3204
3204
  "data-testid": "scheduler-scroll-container",
3205
3205
  "data-view": "day-week",
3206
3206
  style: { scrollbarGutter: "stable" },
3207
3207
  className: V(
3208
3208
  "flex-1 flex flex-col min-h-0 relative overflow-auto bg-background select-none border border-border rounded-lg",
3209
- ye && "snap-x snap-mandatory"
3209
+ he && "snap-x snap-mandatory"
3210
3210
  ),
3211
3211
  children: [
3212
3212
  /* @__PURE__ */ w(
@@ -3234,8 +3234,8 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3234
3234
  ]
3235
3235
  }
3236
3236
  ),
3237
- /* @__PURE__ */ c("div", { className: "flex flex-1", style: ye ? { width: "100%" } : void 0, children: Ye.map((y) => {
3238
- const C = oe, E = C ? y : null, I = C ? null : y, W = C && we(E, /* @__PURE__ */ new Date());
3237
+ /* @__PURE__ */ c("div", { className: "flex flex-1", style: he ? { width: "100%" } : void 0, children: Ye.map((y) => {
3238
+ const C = oe, E = C ? y : null, I = C ? null : y, W = C && ye(E, /* @__PURE__ */ new Date());
3239
3239
  return /* @__PURE__ */ w(
3240
3240
  "div",
3241
3241
  {
@@ -3250,7 +3250,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3250
3250
  W && "bg-background"
3251
3251
  ),
3252
3252
  children: C ? (() => {
3253
- const Y = t.find((P) => (P.isHoliday || P.isFullyBooked) && we(P.start, E));
3253
+ const Y = t.find((P) => (P.isHoliday || P.isFullyBooked) && ye(P.start, E));
3254
3254
  return /* @__PURE__ */ w("div", { className: "flex flex-col items-center relative w-full", children: [
3255
3255
  Y?.isHoliday && /* @__PURE__ */ c("span", { className: "absolute -top-1 px-1.5 py-0.5 bg-destructive/10 text-destructive text-[9px] font-black uppercase tracking-tighter rounded-full border border-destructive/20 mb-1 leading-none shadow-sm", children: "Holiday" }),
3256
3256
  Y?.isFullyBooked && /* @__PURE__ */ c("span", { className: "absolute -top-1 px-1.5 py-0.5 bg-warning/10 text-warning-foreground text-[9px] font-black uppercase tracking-tighter rounded-full border border-warning/20 mb-1 leading-none shadow-sm", children: "Fully Booked" }),
@@ -3271,9 +3271,9 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3271
3271
  })() : (
3272
3272
  // Resource Header Logic (New Top Level)
3273
3273
  /* @__PURE__ */ w("div", { className: "flex items-center gap-2 px-2", children: [
3274
- /* @__PURE__ */ w(jt, { className: "h-8 w-8 shadow-sm border border-background", children: [
3275
- I.avatar && /* @__PURE__ */ c(qt, { src: I.avatar }),
3276
- /* @__PURE__ */ c(Qt, { className: "text-xs font-bold", children: I.name?.charAt(0) })
3274
+ /* @__PURE__ */ w(qt, { className: "h-8 w-8 shadow-sm border border-background", children: [
3275
+ I.avatar && /* @__PURE__ */ c(Qt, { src: I.avatar }),
3276
+ /* @__PURE__ */ c(Xt, { className: "text-xs font-bold", children: I.name?.charAt(0) })
3277
3277
  ] }),
3278
3278
  /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
3279
3279
  /* @__PURE__ */ c("span", { className: "text-sm font-bold truncate", children: I.name }),
@@ -3283,23 +3283,23 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3283
3283
  )
3284
3284
  }
3285
3285
  ),
3286
- ze.length > 0 && /* @__PURE__ */ c("div", { className: "flex w-full border-t border-border bg-background h-10 shrink-0", children: ze.map((Y, P) => {
3287
- const L = C ? null : Y, te = C ? Y : null, J = L ? t.find((he) => he.isHoliday && we(he.start, L)) : null, Se = L ? t.find((he) => he.isFullyBooked && we(he.start, L)) : null;
3286
+ Fe.length > 0 && /* @__PURE__ */ c("div", { className: "flex w-full border-t border-border bg-background h-10 shrink-0", children: Fe.map((Y, P) => {
3287
+ const L = C ? null : Y, te = C ? Y : null, J = L ? t.find((ge) => ge.isHoliday && ye(ge.start, L)) : null, Se = L ? t.find((ge) => ge.isFullyBooked && ye(ge.start, L)) : null;
3288
3288
  return /* @__PURE__ */ c(
3289
3289
  "div",
3290
3290
  {
3291
3291
  style: { width: `${O}%` },
3292
3292
  className: V(
3293
3293
  "flex items-center justify-center px-1 border-e border-border/30 last:border-e-0 group",
3294
- ye && "snap-center",
3294
+ he && "snap-center",
3295
3295
  (P % 2 === 0, "bg-background")
3296
3296
  ),
3297
3297
  children: C ? (
3298
3298
  // Secondary: Resource (Existing logic)
3299
3299
  /* @__PURE__ */ w(xt, { children: [
3300
- /* @__PURE__ */ w(jt, { className: "h-4 w-4 me-1 shadow-sm border border-background", children: [
3301
- te.avatar && /* @__PURE__ */ c(qt, { src: te.avatar }),
3302
- /* @__PURE__ */ c(Qt, { className: "text-[7px] font-bold", children: te.name?.charAt(0) })
3300
+ /* @__PURE__ */ w(qt, { className: "h-4 w-4 me-1 shadow-sm border border-background", children: [
3301
+ te.avatar && /* @__PURE__ */ c(Qt, { src: te.avatar }),
3302
+ /* @__PURE__ */ c(Xt, { className: "text-[7px] font-bold", children: te.name?.charAt(0) })
3303
3303
  ] }),
3304
3304
  /* @__PURE__ */ c("span", { className: "text-[9px] font-bold text-muted-foreground truncate group-hover:text-foreground transition-colors", children: te.name })
3305
3305
  ] })
@@ -3368,26 +3368,26 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3368
3368
  /* @__PURE__ */ w("div", { className: "flex flex-1 relative", style: { height: "64px" }, children: [
3369
3369
  /* @__PURE__ */ c("div", { className: "absolute bottom-0 left-0 w-full border-b border-border/40" }),
3370
3370
  /* @__PURE__ */ c("div", { className: "absolute top-1/2 left-0 w-full border-b border-dashed border-border/20 h-px" }),
3371
- Ye.map((Y) => /* @__PURE__ */ c("div", { style: { width: `${b}%` }, className: "h-full flex relative border-e-2 border-foreground/20 last:border-e-0", children: ze.map((P, L) => {
3372
- const te = oe ? Y : P, J = oe ? P : Y, Se = y.index + X, he = te.getDay(), Ge = t.find((Ee) => Ee.isHoliday && we(Ee.start, te)), nt = t.find((Ee) => Ee.isFullyBooked && we(Ee.start, te));
3371
+ Ye.map((Y) => /* @__PURE__ */ c("div", { style: { width: `${b}%` }, className: "h-full flex relative border-e-2 border-foreground/20 last:border-e-0", children: Fe.map((P, L) => {
3372
+ const te = oe ? Y : P, J = oe ? P : Y, Se = y.index + X, ge = te.getDay(), Ge = t.find((Ee) => Ee.isHoliday && ye(Ee.start, te)), nt = t.find((Ee) => Ee.isFullyBooked && ye(Ee.start, te));
3373
3373
  let Qe = !0;
3374
- J.workingHours ? Qe = J.workingHours.days.includes(he) && Se >= J.workingHours.start && Se < J.workingHours.end : Qe = he !== 0 && he !== 6 && Se >= 9 && Se < 17;
3375
- const ge = new Date(new Date(te).setHours(E, I, 0, 0)), Ze = we(te, /* @__PURE__ */ new Date()), ut = !!ne && ne.resourceId === J.id && ge >= ne.start && ge < ne.end;
3374
+ J.workingHours ? Qe = J.workingHours.days.includes(ge) && Se >= J.workingHours.start && Se < J.workingHours.end : Qe = ge !== 0 && ge !== 6 && Se >= 9 && Se < 17;
3375
+ const pe = new Date(new Date(te).setHours(E, I, 0, 0)), Ze = ye(te, /* @__PURE__ */ new Date()), ut = !!ne && ne.resourceId === J.id && pe >= ne.start && pe < ne.end;
3376
3376
  return /* @__PURE__ */ c(
3377
3377
  xo,
3378
3378
  {
3379
- date: ge,
3379
+ date: pe,
3380
3380
  resourceId: J.id,
3381
3381
  isWorkHour: Qe,
3382
3382
  isSelected: ut,
3383
- onMouseDown: () => Z(ge, J.id),
3384
- onMouseEnter: () => me(ge),
3383
+ onMouseDown: () => Z(pe, J.id),
3384
+ onMouseEnter: () => me(pe),
3385
3385
  onDoubleClick: () => {
3386
- const Ee = tt(ge, x);
3387
- de(ge, Ee, J.id) || h?.(ge, J.id);
3386
+ const Ee = tt(pe, x);
3387
+ de(pe, Ee, J.id) || h?.(pe, J.id);
3388
3388
  },
3389
3389
  onContextMenu: (Ee) => {
3390
- Ee.preventDefault(), K?.({ date: ge, x: Ee.clientX, y: Ee.clientY });
3390
+ Ee.preventDefault(), K?.({ date: pe, x: Ee.clientX, y: Ee.clientY });
3391
3391
  },
3392
3392
  style: {
3393
3393
  width: `${O}%`,
@@ -3397,15 +3397,15 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3397
3397
  },
3398
3398
  className: V(
3399
3399
  "border-e border-border/30 relative cursor-pointer hover:bg-primary/5 transition-colors pointer-events-auto",
3400
- L === ze.length - 1 && "border-e-0",
3400
+ L === Fe.length - 1 && "border-e-0",
3401
3401
  // Remove border for last sub-column only
3402
- ye && "snap-center",
3402
+ he && "snap-center",
3403
3403
  Ge && "bg-[repeating-linear-gradient(-45deg,hsl(var(--destructive)/0.05)_0px,hsl(var(--destructive)/0.05)_10px,transparent_10px,transparent_20px)] bg-destructive/[0.02]",
3404
3404
  nt && "bg-[repeating-linear-gradient(-45deg,theme(colors.warning/0.05)_0px,theme(colors.warning/0.05)_10px,transparent_10px,transparent_20px)] bg-warning/[0.02]",
3405
3405
  !Ge && !nt && "bg-background"
3406
3406
  ),
3407
3407
  children: D ? (() => {
3408
- const Ee = { date: ge, resourceId: J.id, isWorkHour: Qe, isToday: Ze }, rt = Yo(D, Ee, B);
3408
+ const Ee = { date: pe, resourceId: J.id, isWorkHour: Qe, isToday: Ze }, rt = Yo(D, Ee, B);
3409
3409
  return rt && typeof rt == "object" && "__html" in rt ? /* @__PURE__ */ c("div", { className: "w-full h-full", dangerouslySetInnerHTML: rt }) : /* @__PURE__ */ c("div", { className: "w-full h-full", children: rt });
3410
3410
  })() : null
3411
3411
  },
@@ -3430,7 +3430,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3430
3430
  children: [
3431
3431
  /* @__PURE__ */ c(Vo, { startHour: X, slotDuration: x, isRtl: j }),
3432
3432
  e.map((y, C) => {
3433
- const E = t.filter((W) => we(y, W.start));
3433
+ const E = t.filter((W) => ye(y, W.start));
3434
3434
  E.sort((W, Y) => W.start.getTime() - Y.start.getTime());
3435
3435
  const I = /* @__PURE__ */ new Map();
3436
3436
  return E.forEach((W) => {
@@ -3457,14 +3457,14 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3457
3457
  const te = [];
3458
3458
  return L.forEach((J) => {
3459
3459
  let Se = !1;
3460
- for (let he = 0; he < te.length; he++)
3461
- if (!te[he].some((Ge) => Nt({ start: Ge.start, end: Ge.end }, { start: J.start, end: J.end }))) {
3462
- te[he].push(J), Se = !0;
3460
+ for (let ge = 0; ge < te.length; ge++)
3461
+ if (!te[ge].some((Ge) => Nt({ start: Ge.start, end: Ge.end }, { start: J.start, end: J.end }))) {
3462
+ te[ge].push(J), Se = !0;
3463
3463
  break;
3464
3464
  }
3465
3465
  Se || te.push([J]);
3466
3466
  }), L.map((J) => {
3467
- const Se = te.findIndex((Ge) => Ge.includes(J)), he = $o(
3467
+ const Se = te.findIndex((Ge) => Ge.includes(J)), ge = $o(
3468
3468
  J,
3469
3469
  C,
3470
3470
  W,
@@ -3481,7 +3481,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3481
3481
  Vn,
3482
3482
  {
3483
3483
  event: J,
3484
- style: he,
3484
+ style: ge,
3485
3485
  onClick: i,
3486
3486
  onDoubleClick: l,
3487
3487
  onDelete: d,
@@ -3518,11 +3518,11 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3518
3518
  // monthsCount = 1,
3519
3519
  dir: d
3520
3520
  }) => {
3521
- const f = d === "rtl", p = (u) => n.filter((s) => we(s.start, u));
3521
+ const m = d === "rtl", p = (u) => n.filter((s) => ye(s.start, u));
3522
3522
  return /* @__PURE__ */ c(Rr, { children: /* @__PURE__ */ w("div", { className: "flex flex-col h-full w-full bg-background rounded-xl border border-border overflow-hidden shadow-sm", children: [
3523
3523
  /* @__PURE__ */ c("div", { className: "grid grid-cols-7 border-b border-border bg-muted/30", children: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"].map((u, s) => /* @__PURE__ */ c("div", { className: "py-3 text-center text-xs font-semibold uppercase text-muted-foreground tracking-widest", children: u }, s)) }),
3524
3524
  /* @__PURE__ */ c("div", { className: "grid grid-cols-7 grid-rows-6 flex-1 min-h-0 bg-muted/20 gap-px", children: t.map((u) => {
3525
- const s = p(u).filter((D) => !D.isBlock), N = Xa(u, e), g = we(u, /* @__PURE__ */ new Date()), h = 4, _ = s.slice(0, h), z = s.length - h, $ = s.length;
3525
+ const s = p(u).filter((D) => !D.isBlock), N = Xa(u, e), g = ye(u, /* @__PURE__ */ new Date()), h = 4, _ = s.slice(0, h), z = s.length - h, $ = s.length;
3526
3526
  return /* @__PURE__ */ w(
3527
3527
  "div",
3528
3528
  {
@@ -3563,7 +3563,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3563
3563
  !N && "opacity-60 grayscale"
3564
3564
  ),
3565
3565
  style: {
3566
- [f ? "borderRight" : "borderLeft"]: `3px solid ${D.color || "oklch(var(--primary))"}`
3566
+ [m ? "borderRight" : "borderLeft"]: `3px solid ${D.color || "oklch(var(--primary))"}`
3567
3567
  },
3568
3568
  children: [
3569
3569
  /* @__PURE__ */ c("div", { className: "flex-1 truncate leading-tight", children: D.title }),
@@ -3623,7 +3623,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3623
3623
  onSlotDoubleClick: i,
3624
3624
  onEventClick: l,
3625
3625
  onEventDelete: d,
3626
- onRangeSelect: f,
3626
+ onRangeSelect: m,
3627
3627
  currentTimeIndicator: p,
3628
3628
  showResourceHeaders: u = !0,
3629
3629
  group: s,
@@ -3635,10 +3635,10 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3635
3635
  scrollRef: $,
3636
3636
  dir: D
3637
3637
  }) => {
3638
- const B = D === "rtl", F = Zt(), ae = g ? parseInt(g.split(":")[0], 10) : 0, x = h ? parseInt(h.split(":")[0], 10) : 24, k = x - ae, [M, S] = Ie(null), [K, G] = Ie(!1), j = Mt(null), De = Mt(null), X = e === "timeline-month", ne = X ? 1440 : _, Me = 60 / ne, fe = X ? 1 : k * Me, ve = t.length * fe, se = X ? 120 : 80, de = ve * se, Z = Pe(() => {
3638
+ const B = D === "rtl", F = Zt(), ae = g ? parseInt(g.split(":")[0], 10) : 0, x = h ? parseInt(h.split(":")[0], 10) : 24, k = x - ae, [M, S] = Re(null), [K, G] = Re(!1), j = Mt(null), De = Mt(null), X = e === "timeline-month", ne = X ? 1440 : _, Me = 60 / ne, fe = X ? 1 : k * Me, ve = t.length * fe, se = X ? 120 : 80, de = ve * se, Z = ze(() => {
3639
3639
  const b = r.length > 0 ? [...r] : [];
3640
3640
  return (N || b.length === 0) && (b.find((O) => O.id === "unassigned") || b.unshift({ id: "unassigned", name: "Unassigned", type: "Global Inbox", color: "hsl(var(--muted-foreground))" })), b;
3641
- }, [r, N]), me = Pe(() => {
3641
+ }, [r, N]), me = ze(() => {
3642
3642
  if (!s || !s.resources || s.resources.length === 0)
3643
3643
  return {
3644
3644
  isGrouped: !1,
@@ -3653,37 +3653,37 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3653
3653
  return O.forEach((C, E) => {
3654
3654
  y.push({ name: E, resources: C });
3655
3655
  }), { isGrouped: !0, groups: y };
3656
- }, [Z, s]), ee = Pe(() => me.groups.flatMap((b) => b.resources), [me]), H = (b) => {
3656
+ }, [Z, s]), ee = ze(() => me.groups.flatMap((b) => b.resources), [me]), H = (b) => {
3657
3657
  if (X)
3658
- return Re(t[b]);
3659
- const O = Math.floor(b / fe), y = b % fe, C = Re(t[O]);
3658
+ return Le(t[b]);
3659
+ const O = Math.floor(b / fe), y = b % fe, C = Le(t[O]);
3660
3660
  return tt(C, ae * 60 + y * ne);
3661
3661
  }, R = (b) => {
3662
3662
  if (X) {
3663
- const I = t.findIndex((W) => we(W, Re(b)));
3663
+ const I = t.findIndex((W) => ye(W, Le(b)));
3664
3664
  return I !== -1 ? I * se : -1;
3665
3665
  }
3666
- const O = Re(b), y = t.findIndex((I) => we(I, O));
3666
+ const O = Le(b), y = t.findIndex((I) => ye(I, O));
3667
3667
  if (y === -1) return -1;
3668
3668
  const E = Xr(b, O) - ae * 60;
3669
3669
  return (y * k * 60 + E) / ne * se;
3670
- }, ye = (() => {
3670
+ }, he = (() => {
3671
3671
  if (X) {
3672
- const y = Re(t[0]), C = Re(t[t.length - 1]);
3672
+ const y = Le(t[0]), C = Le(t[t.length - 1]);
3673
3673
  return F < y || F > C ? null : R(F);
3674
3674
  }
3675
3675
  const b = R(F), O = F.getHours();
3676
3676
  return b === -1 || O < ae || O >= x ? null : b;
3677
- })(), Le = Mt(!1);
3677
+ })(), Oe = Mt(!1);
3678
3678
  _e(() => {
3679
- $?.current && ye !== null && !Le.current && setTimeout(() => {
3680
- $.current && (B ? $.current.scrollLeft = -ye : $.current.scrollLeft = ye, Le.current = !0);
3679
+ $?.current && he !== null && !Oe.current && setTimeout(() => {
3680
+ $.current && (B ? $.current.scrollLeft = -he : $.current.scrollLeft = he, Oe.current = !0);
3681
3681
  }, 50);
3682
- }, [$, ye, e]);
3682
+ }, [$, he, e]);
3683
3683
  const v = (b, O) => {
3684
3684
  const y = H(b);
3685
3685
  if (n.some(
3686
- (I) => (I.isHoliday || I.isFullyBooked) && we(I.start, y)
3686
+ (I) => (I.isHoliday || I.isFullyBooked) && ye(I.start, y)
3687
3687
  )) return;
3688
3688
  G(!0);
3689
3689
  const E = { startSlot: b, endSlot: b, resourceId: O };
@@ -3698,18 +3698,18 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3698
3698
  if (K && j.current) {
3699
3699
  const { startSlot: y, endSlot: C, resourceId: E } = j.current, I = Math.min(y, C), W = Math.max(y, C), Y = H(I), P = H(W + 1);
3700
3700
  n.some(
3701
- (te) => (te.isHoliday || te.isFullyBooked) && we(te.start, Y)
3702
- ) || (f?.(Y, P, E, { x: O.clientX, y: O.clientY }), a?.(Y, E));
3701
+ (te) => (te.isHoliday || te.isFullyBooked) && ye(te.start, Y)
3702
+ ) || (m?.(Y, P, E, { x: O.clientX, y: O.clientY }), a?.(Y, E));
3703
3703
  }
3704
3704
  G(!1), S(null), j.current = null;
3705
3705
  };
3706
3706
  return window.addEventListener("mouseup", b), () => window.removeEventListener("mouseup", b);
3707
- }, [K, f, a, t]);
3707
+ }, [K, m, a, t]);
3708
3708
  const q = (b, O) => {
3709
3709
  if (!M || M.resourceId !== O) return !1;
3710
3710
  const y = Math.min(M.startSlot, M.endSlot), C = Math.max(M.startSlot, M.endSlot);
3711
3711
  return b >= y && b <= C;
3712
- }, { resourceMap: le, maxLevels: oe } = Pe(() => {
3712
+ }, { resourceMap: le, maxLevels: oe } = ze(() => {
3713
3713
  const b = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
3714
3714
  return ee.forEach((y) => {
3715
3715
  b.set(y.id, []), O.set(y.id, 1);
@@ -3761,7 +3761,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3761
3761
  zIndex: 20 + b.level,
3762
3762
  cursor: "pointer"
3763
3763
  };
3764
- }, Be = 40, Ye = 240, ze = u ? me.isGrouped ? Be + Ye : Ye : 0;
3764
+ }, Ue = 40, Ye = 240, Fe = u ? me.isGrouped ? Ue + Ye : Ye : 0;
3765
3765
  return /* @__PURE__ */ w("div", { className: "flex flex-col h-full w-full overflow-hidden border border-border/40 rounded-xl bg-background shadow-sm", children: [
3766
3766
  /* @__PURE__ */ w("div", { className: "flex bg-background z-40 sticky top-0 border-b border-border/40 shadow-[0_1px_2px_rgba(0,0,0,0.03)] items-center", children: [
3767
3767
  u && me.isGrouped && /* @__PURE__ */ c("div", { className: V(
@@ -3805,12 +3805,12 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3805
3805
  onScroll: (b) => {
3806
3806
  De.current && (De.current.scrollLeft = b.currentTarget.scrollLeft);
3807
3807
  },
3808
- children: /* @__PURE__ */ w("div", { className: "relative min-w-max", style: { width: de + ze, minHeight: "100%" }, children: [
3809
- ye !== null && p !== !1 && /* @__PURE__ */ w(
3808
+ children: /* @__PURE__ */ w("div", { className: "relative min-w-max", style: { width: de + Fe, minHeight: "100%" }, children: [
3809
+ he !== null && p !== !1 && /* @__PURE__ */ w(
3810
3810
  "div",
3811
3811
  {
3812
3812
  className: "current-time-indicator z-50 pointer-events-none",
3813
- style: { [B ? "right" : "left"]: `${ye + ze}px`, height: "100%" },
3813
+ style: { [B ? "right" : "left"]: `${he + Fe}px`, height: "100%" },
3814
3814
  children: [
3815
3815
  /* @__PURE__ */ c("div", { className: "absolute top-0 -translate-x-1/2 w-[2px] h-full bg-red-500 shadow-[0_0_8px_rgba(239,68,68,0.6)]" }),
3816
3816
  /* @__PURE__ */ c("div", { className: "absolute top-0 -translate-x-1/2 -mt-1 w-2.5 h-2.5 rounded-full bg-red-500 shadow-md border-2 border-background" })
@@ -3852,9 +3852,9 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3852
3852
  !u && "hidden"
3853
3853
  ),
3854
3854
  children: /* @__PURE__ */ w(xt, { children: [
3855
- /* @__PURE__ */ w(jt, { className: "h-9 w-9 border border-border/60 shadow-sm", children: [
3856
- O.avatar && /* @__PURE__ */ c(qt, { src: O.avatar, alt: O.name, className: "object-cover" }),
3857
- /* @__PURE__ */ c(Qt, { className: "text-xs font-bold bg-primary/5 text-primary", children: O.name.charAt(0) })
3855
+ /* @__PURE__ */ w(qt, { className: "h-9 w-9 border border-border/60 shadow-sm", children: [
3856
+ O.avatar && /* @__PURE__ */ c(Qt, { src: O.avatar, alt: O.name, className: "object-cover" }),
3857
+ /* @__PURE__ */ c(Xt, { className: "text-xs font-bold bg-primary/5 text-primary", children: O.name.charAt(0) })
3858
3858
  ] }),
3859
3859
  /* @__PURE__ */ w("div", { className: "flex flex-col min-w-0", children: [
3860
3860
  /* @__PURE__ */ c("span", { className: "text-[13px] font-semibold truncate text-foreground/90 tracking-tight leading-none mb-1.5", children: O.name }),
@@ -3912,7 +3912,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3912
3912
  onSlotMouseDown: i,
3913
3913
  onSlotMouseEnter: l,
3914
3914
  onSlotDoubleClick: d,
3915
- isSlotSelected: f,
3915
+ isSlotSelected: m,
3916
3916
  resourceMap: p,
3917
3917
  getEventStyle: u,
3918
3918
  onEventClick: s,
@@ -3950,7 +3950,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3950
3950
  if (S >= 0 && S < t) {
3951
3951
  const K = a(S);
3952
3952
  _.some(
3953
- (j) => (j.isHoliday || j.isFullyBooked) && we(j.start, K)
3953
+ (j) => (j.isHoliday || j.isFullyBooked) && ye(j.start, K)
3954
3954
  ) || d?.(K, e.id);
3955
3955
  }
3956
3956
  },
@@ -3966,7 +3966,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3966
3966
  }
3967
3967
  ),
3968
3968
  /* @__PURE__ */ c("div", { className: "absolute inset-0 pointer-events-none flex", children: $.map((x, k) => {
3969
- const M = _.find((K) => K.isHoliday && we(K.start, x)), S = _.find((K) => K.isFullyBooked && we(K.start, x));
3969
+ const M = _.find((K) => K.isHoliday && ye(K.start, x)), S = _.find((K) => K.isFullyBooked && ye(K.start, x));
3970
3970
  return !M && !S ? /* @__PURE__ */ c("div", { style: { width: z * n } }, k) : /* @__PURE__ */ c(
3971
3971
  "div",
3972
3972
  {
@@ -3986,7 +3986,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
3986
3986
  totalSlots: t,
3987
3987
  resourceId: e.id,
3988
3988
  slotWidth: n,
3989
- isSlotSelected: f,
3989
+ isSlotSelected: m,
3990
3990
  isRtl: B
3991
3991
  }
3992
3992
  ),
@@ -4020,7 +4020,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
4020
4020
  let l = null;
4021
4021
  for (let d = 0; d < e; d++)
4022
4022
  r(d, t) ? l ? l.length++ : (l = { start: d, length: 1 }, i.push(l)) : l = null;
4023
- return /* @__PURE__ */ c(xt, { children: i.map((d, f) => /* @__PURE__ */ c(
4023
+ return /* @__PURE__ */ c(xt, { children: i.map((d, m) => /* @__PURE__ */ c(
4024
4024
  "div",
4025
4025
  {
4026
4026
  className: "absolute top-0 bottom-0 bg-primary/20 border-x border-primary/30 z-10 pointer-events-none",
@@ -4029,7 +4029,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
4029
4029
  width: `${d.length * n}px`
4030
4030
  }
4031
4031
  },
4032
- f
4032
+ m
4033
4033
  )) });
4034
4034
  }), Jo = ({
4035
4035
  daysInView: e,
@@ -4041,7 +4041,7 @@ const $o = (e, t, n, r, a, i, l, d, f, p = !0, u = !1) => {
4041
4041
  "data-testid": "scheduler-scroll-container",
4042
4042
  className: "flex flex-col h-full w-full bg-background overflow-y-auto border border-border rounded-lg",
4043
4043
  children: e.map((r) => {
4044
- const a = t.filter((l) => we(l.start, r)).sort((l, d) => l.start.getTime() - d.start.getTime()), i = we(r, /* @__PURE__ */ new Date());
4044
+ const a = t.filter((l) => ye(l.start, r)).sort((l, d) => l.start.getTime() - d.start.getTime()), i = ye(r, /* @__PURE__ */ new Date());
4045
4045
  return /* @__PURE__ */ w("div", { className: "flex flex-col border-b border-border pb-2 last:border-b-0", children: [
4046
4046
  /* @__PURE__ */ w("div", { className: V(
4047
4047
  "flex items-center px-4 py-2 sticky top-0 bg-background/95 backdrop-blur z-10 border-b border-border",
@@ -4089,7 +4089,7 @@ function Zo({
4089
4089
  handleSlotDoubleClick: i,
4090
4090
  handleEventDoubleClick: l,
4091
4091
  handleEventDelete: d,
4092
- parentRef: f,
4092
+ parentRef: m,
4093
4093
  setView: p,
4094
4094
  setCurrentDate: u,
4095
4095
  props: s,
@@ -4116,7 +4116,7 @@ function Zo({
4116
4116
  onSlotDoubleClick: i,
4117
4117
  onEventDoubleClick: l,
4118
4118
  onEventDelete: d,
4119
- scrollRef: f,
4119
+ scrollRef: m,
4120
4120
  onViewChange: p,
4121
4121
  onDateChange: u,
4122
4122
  onRangeSelect: N,
@@ -4180,7 +4180,7 @@ function Zo({
4180
4180
  endHour: s.endHour,
4181
4181
  slotDuration: _,
4182
4182
  is24Hour: z,
4183
- scrollRef: f,
4183
+ scrollRef: m,
4184
4184
  dir: D
4185
4185
  }
4186
4186
  );
@@ -4210,7 +4210,7 @@ const ei = ({
4210
4210
  className: i,
4211
4211
  size: l = "md",
4212
4212
  closeOnBackdropClick: d = !0,
4213
- showCloseButton: f = !0
4213
+ showCloseButton: m = !0
4214
4214
  }) => {
4215
4215
  if (_e(() => {
4216
4216
  if (e)
@@ -4242,10 +4242,10 @@ const ei = ({
4242
4242
  i
4243
4243
  ),
4244
4244
  children: [
4245
- (n || f) && /* @__PURE__ */ w("div", { className: "flex items-center justify-between px-6 py-4 border-b border-border bg-muted/10 shrink-0", children: [
4245
+ (n || m) && /* @__PURE__ */ w("div", { className: "flex items-center justify-between px-6 py-4 border-b border-border bg-muted/10 shrink-0", children: [
4246
4246
  /* @__PURE__ */ c("div", { className: "text-lg font-semibold leading-none tracking-tight", children: n }),
4247
- f && /* @__PURE__ */ w(
4248
- Vt,
4247
+ m && /* @__PURE__ */ w(
4248
+ jt,
4249
4249
  {
4250
4250
  variant: "ghost",
4251
4251
  size: "icon",
@@ -4265,14 +4265,14 @@ const ei = ({
4265
4265
  )
4266
4266
  ] });
4267
4267
  return Fr(u, document.body);
4268
- }, ti = qe.lazy(() => import("./EzEventModal-FP2rs1pp.js").then((e) => ({ default: e.EzEventModal }))), ni = qe.lazy(() => import("./EzSchedulerQuickAdd-s2jtG8vH.js").then((e) => ({ default: e.EzSchedulerQuickAdd }))), ri = qe.lazy(() => import("./EzSchedulerToolbar-tz6h80GC.js").then((e) => e.b).then((e) => ({ default: e.EzSchedulerToolbar }))), ai = new wr(), oi = In((e, t) => (sr(), /* @__PURE__ */ c(yr, { client: ai, children: /* @__PURE__ */ c(Kn, { ...e, ref: t }) })));
4268
+ }, ti = qe.lazy(() => import("./EzEventModal-BUMp_BFi.js").then((e) => ({ default: e.EzEventModal }))), ni = qe.lazy(() => import("./EzSchedulerQuickAdd-C653LTGh.js").then((e) => ({ default: e.EzSchedulerQuickAdd }))), ri = qe.lazy(() => import("./EzSchedulerToolbar-CO5jjDQg.js").then((e) => e.b).then((e) => ({ default: e.EzSchedulerToolbar }))), ai = new wr(), oi = In((e, t) => (sr(), /* @__PURE__ */ c(yr, { client: ai, children: /* @__PURE__ */ c(Kn, { ...e, ref: t }) })));
4269
4269
  oi.displayName = "EzScheduler";
4270
4270
  const Kn = In((e, t) => {
4271
4271
  const n = mo({
4272
4272
  ...e,
4273
4273
  view: e.view || e.defaultView || "Week",
4274
4274
  selectedDate: e.selectedDate ?? e.defaultSelectedDate
4275
- }), { state: r, actions: a, services: i, refs: l, baseApi: d, dir: f } = n, { currentView: p, currentDate: u, viewEvents: s, daysInView: N, slotDuration: g, is24Hour: h } = r, { setView: _, setCurrentDate: z } = a, { rowVirtualizer: $, parentRef: D } = l, { schedulerService: B, serviceRegistry: F } = i, ae = (v) => {
4275
+ }), { state: r, actions: a, services: i, refs: l, baseApi: d, dir: m } = n, { currentView: p, currentDate: u, viewEvents: s, daysInView: N, slotDuration: g, is24Hour: h } = r, { setView: _, setCurrentDate: z } = a, { rowVirtualizer: $, parentRef: D } = l, { schedulerService: B, serviceRegistry: F } = i, ae = (v) => {
4276
4276
  if (!v.start || !v.end) return { hasBlockOverlap: !1, hasRegularOverlap: !1, overlappingEvents: [] };
4277
4277
  const U = s.filter((q) => q.id === v.id || !(q.resourceId === v.resourceId || q.resourceIds?.some((oe) => v.resourceId === oe) || !q.resourceId && !v.resourceId) ? !1 : Nt(
4278
4278
  { start: q.start, end: q.end },
@@ -4317,7 +4317,7 @@ const Kn = In((e, t) => {
4317
4317
  }
4318
4318
  }), { internalResources: S, setInternalResources: K } = go({
4319
4319
  resources: e.resources
4320
- }), [G, j] = Ie({ isOpen: !1, mode: "create" }), [De, X] = Ie(!1), [ne, Me] = Ie(null), [fe, ve] = Ie({ x: 0, y: 0 }), se = qe.useMemo(() => ({
4320
+ }), [G, j] = Re({ isOpen: !1, mode: "create" }), [De, X] = Re(!1), [ne, Me] = Re(null), [fe, ve] = Re({ x: 0, y: 0 }), se = qe.useMemo(() => ({
4321
4321
  ...n.baseApi,
4322
4322
  onExportExcel: e.onExportExcel,
4323
4323
  onExportCSV: e.onExportCSV,
@@ -4376,9 +4376,9 @@ const Kn = In((e, t) => {
4376
4376
  return;
4377
4377
  }
4378
4378
  q && x("regular"), G.mode === "create" ? (await e.onEventCreate?.(v), a.addEvent(v)) : (await e.onEventChange?.(v), a.updateEvent(v)), j((le) => ({ ...le, isOpen: !1 }));
4379
- }, [ee, H] = Ie({ isOpen: !1 }), R = async (v) => {
4379
+ }, [ee, H] = Re({ isOpen: !1 }), R = async (v) => {
4380
4380
  H({ isOpen: !0, eventId: v });
4381
- }, We = async () => {
4381
+ }, Be = async () => {
4382
4382
  const v = ee.eventId;
4383
4383
  if (!v) return;
4384
4384
  const U = s.find((q) => q.id === v);
@@ -4395,20 +4395,20 @@ const Kn = In((e, t) => {
4395
4395
  }
4396
4396
  }
4397
4397
  H({ isOpen: !1 });
4398
- }, ye = (v) => {
4398
+ }, he = (v) => {
4399
4399
  if (!e.allowPastEvents && v.start && v.start < /* @__PURE__ */ new Date()) {
4400
4400
  x("past");
4401
4401
  return;
4402
4402
  }
4403
4403
  a.addEvent(v), e.onEventCreate?.(v), X(!1);
4404
- }, Le = (v, U, q, le) => {
4404
+ }, Oe = (v, U, q, le) => {
4405
4405
  e.showQuickInfoPopup && (Me({ start: v, end: U, resourceId: q }), ve({ x: le?.x || 0, y: le?.y || 0 }), X(!0));
4406
4406
  };
4407
4407
  return /* @__PURE__ */ c(kr, { fallback: /* @__PURE__ */ c(bo, {}), children: /* @__PURE__ */ w(
4408
4408
  "div",
4409
4409
  {
4410
4410
  className: V("ez-scheduler flex flex-col w-full h-full bg-background select-none overflow-hidden", e.className),
4411
- dir: f,
4411
+ dir: m,
4412
4412
  children: [
4413
4413
  e.showHeaderBar !== !1 && /* @__PURE__ */ c(qe.Suspense, { fallback: /* @__PURE__ */ c("div", { className: "h-12 w-full animate-pulse bg-muted/20 rounded-md mb-4" }), children: (() => {
4414
4414
  const v = e.slots?.toolbar;
@@ -4448,7 +4448,7 @@ const Kn = In((e, t) => {
4448
4448
  onExportExcel: je(() => e.onExportExcel?.(s), [e.onExportExcel, s]),
4449
4449
  onExportCSV: je(() => e.onExportCSV?.(s), [e.onExportCSV, s]),
4450
4450
  onExportICS: je(() => e.onExportICS?.(s), [e.onExportICS, s]),
4451
- dir: f,
4451
+ dir: m,
4452
4452
  ...e.slotProps?.toolbar
4453
4453
  }
4454
4454
  ) : /* @__PURE__ */ c(
@@ -4487,7 +4487,7 @@ const Kn = In((e, t) => {
4487
4487
  onExportExcel: je(() => e.onExportExcel?.(s), [e.onExportExcel, s]),
4488
4488
  onExportCSV: je(() => e.onExportCSV?.(s), [e.onExportCSV, s]),
4489
4489
  onExportICS: je(() => e.onExportICS?.(s), [e.onExportICS, s]),
4490
- dir: f
4490
+ dir: m
4491
4491
  }
4492
4492
  );
4493
4493
  })() }),
@@ -4508,13 +4508,13 @@ const Kn = In((e, t) => {
4508
4508
  setView: _,
4509
4509
  setCurrentDate: z,
4510
4510
  props: e,
4511
- handleRangeSelect: Le,
4511
+ handleRangeSelect: Oe,
4512
4512
  currentDate: u,
4513
4513
  showUnassignedLane: e.showUnassignedLane,
4514
4514
  slotDuration: g,
4515
4515
  is24Hour: h,
4516
4516
  setIs24Hour: a.setIs24Hour,
4517
- dir: f
4517
+ dir: m
4518
4518
  }
4519
4519
  ),
4520
4520
  e.isLoading && /* @__PURE__ */ c(yo, {})
@@ -4529,7 +4529,7 @@ const Kn = In((e, t) => {
4529
4529
  end: ne.end,
4530
4530
  resourceId: ne.resourceId,
4531
4531
  resources: S,
4532
- onSave: ye,
4532
+ onSave: he,
4533
4533
  onCancel: () => X(!1),
4534
4534
  onMoreOptions: (U) => {
4535
4535
  X(!1), j({ isOpen: !0, mode: "create", event: U });
@@ -4544,7 +4544,7 @@ const Kn = In((e, t) => {
4544
4544
  end: ne.end,
4545
4545
  resourceId: ne.resourceId,
4546
4546
  resources: S,
4547
- onSave: ye,
4547
+ onSave: he,
4548
4548
  onCancel: () => X(!1),
4549
4549
  onMoreOptions: (U) => {
4550
4550
  X(!1), j({ isOpen: !0, mode: "create", event: U });
@@ -4591,8 +4591,8 @@ const Kn = In((e, t) => {
4591
4591
  onClose: () => H({ isOpen: !1 }),
4592
4592
  title: "Delete Event",
4593
4593
  footer: /* @__PURE__ */ w("div", { className: "flex gap-2", children: [
4594
- /* @__PURE__ */ c(Vt, { variant: "ghost", onClick: () => H({ isOpen: !1 }), children: "Cancel" }),
4595
- /* @__PURE__ */ c(Vt, { variant: "destructive", onClick: We, children: "Delete" })
4594
+ /* @__PURE__ */ c(jt, { variant: "ghost", onClick: () => H({ isOpen: !1 }), children: "Cancel" }),
4595
+ /* @__PURE__ */ c(jt, { variant: "destructive", onClick: Be, children: "Delete" })
4596
4596
  ] }),
4597
4597
  children: /* @__PURE__ */ c("p", { className: "text-sm text-muted-foreground", children: "Are you sure you want to delete this event? This action cannot be undone." })
4598
4598
  }
@@ -4604,41 +4604,41 @@ const Kn = In((e, t) => {
4604
4604
  });
4605
4605
  Kn.displayName = "EzSchedulerInner";
4606
4606
  export {
4607
- gn as A,
4608
- Oa as B,
4607
+ La as A,
4608
+ Ba as B,
4609
4609
  Wr as C,
4610
- La as D,
4610
+ Ua as D,
4611
4611
  oi as E,
4612
- Ba as F,
4613
- Ua as G,
4614
- Wa as H,
4615
- tt as I,
4612
+ Wa as F,
4613
+ jr as G,
4614
+ tt as H,
4615
+ Br as I,
4616
4616
  ei as M,
4617
4617
  no as S,
4618
4618
  bn as a,
4619
4619
  pn as b,
4620
- Fe as c,
4620
+ He as c,
4621
4621
  Jr as d,
4622
4622
  wn as e,
4623
4623
  ue as f,
4624
4624
  Xa as g,
4625
- Re as h,
4626
- we as i,
4625
+ Le as h,
4626
+ ye as i,
4627
4627
  Ja as j,
4628
4628
  Wn as k,
4629
4629
  zn as l,
4630
- Br as m,
4631
- jr as n,
4632
- vt as o,
4633
- St as p,
4634
- yi as q,
4635
- Hn as r,
4630
+ St as m,
4631
+ yi as n,
4632
+ Hn as o,
4633
+ xi as p,
4634
+ Gn as q,
4635
+ Ot as r,
4636
4636
  st as s,
4637
4637
  ie as t,
4638
4638
  mo as u,
4639
- xi as v,
4640
- Gn as w,
4641
- At as x,
4642
- _t as y,
4643
- Yn as z
4639
+ _t as v,
4640
+ Yn as w,
4641
+ vt as x,
4642
+ gn as y,
4643
+ Oa as z
4644
4644
  };