@alfadocs/ui-kit-debug 1.25.1-calendar.13 → 1.25.1-calendar.15

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 (123) hide show
  1. package/dist/_chunks/{calendar-0d05p1It.js → calendar-K2lLzn4x.js} +469 -440
  2. package/dist/_chunks/calendar-K2lLzn4x.js.map +1 -0
  3. package/dist/_chunks/{calendar-event-card-66CEEWU6.js → calendar-event-card-DSh-69HT.js} +130 -122
  4. package/dist/_chunks/calendar-event-card-DSh-69HT.js.map +1 -0
  5. package/dist/_chunks/{calendar-workspace-irqUg_dW.js → calendar-workspace-W3qldtxu.js} +3483 -3372
  6. package/dist/_chunks/calendar-workspace-W3qldtxu.js.map +1 -0
  7. package/dist/agent-catalog.json +2 -2
  8. package/dist/components/calendar/calendar.d.ts +21 -0
  9. package/dist/components/calendar/calendar.d.ts.map +1 -1
  10. package/dist/components/calendar/index.js +1 -1
  11. package/dist/components/calendar-event-card/calendar-event-card.d.ts +9 -0
  12. package/dist/components/calendar-event-card/calendar-event-card.d.ts.map +1 -1
  13. package/dist/components/calendar-event-card/index.js +1 -1
  14. package/dist/i18n/locales/ar.d.ts +4 -0
  15. package/dist/i18n/locales/ar.d.ts.map +1 -1
  16. package/dist/i18n/locales/ar.js +6 -2
  17. package/dist/i18n/locales/ar.js.map +1 -1
  18. package/dist/i18n/locales/de.d.ts +4 -0
  19. package/dist/i18n/locales/de.d.ts.map +1 -1
  20. package/dist/i18n/locales/de.js +6 -2
  21. package/dist/i18n/locales/de.js.map +1 -1
  22. package/dist/i18n/locales/el.d.ts +4 -0
  23. package/dist/i18n/locales/el.d.ts.map +1 -1
  24. package/dist/i18n/locales/el.js +6 -2
  25. package/dist/i18n/locales/el.js.map +1 -1
  26. package/dist/i18n/locales/en.d.ts +4 -0
  27. package/dist/i18n/locales/en.d.ts.map +1 -1
  28. package/dist/i18n/locales/en.js +6 -2
  29. package/dist/i18n/locales/en.js.map +1 -1
  30. package/dist/i18n/locales/es.d.ts +4 -0
  31. package/dist/i18n/locales/es.d.ts.map +1 -1
  32. package/dist/i18n/locales/es.js +6 -2
  33. package/dist/i18n/locales/es.js.map +1 -1
  34. package/dist/i18n/locales/fr.d.ts +4 -0
  35. package/dist/i18n/locales/fr.d.ts.map +1 -1
  36. package/dist/i18n/locales/fr.js +6 -2
  37. package/dist/i18n/locales/fr.js.map +1 -1
  38. package/dist/i18n/locales/hi.d.ts +4 -0
  39. package/dist/i18n/locales/hi.d.ts.map +1 -1
  40. package/dist/i18n/locales/hi.js +6 -2
  41. package/dist/i18n/locales/hi.js.map +1 -1
  42. package/dist/i18n/locales/it.d.ts +4 -0
  43. package/dist/i18n/locales/it.d.ts.map +1 -1
  44. package/dist/i18n/locales/it.js +6 -2
  45. package/dist/i18n/locales/it.js.map +1 -1
  46. package/dist/i18n/locales/ja.d.ts +4 -0
  47. package/dist/i18n/locales/ja.d.ts.map +1 -1
  48. package/dist/i18n/locales/ja.js +6 -2
  49. package/dist/i18n/locales/ja.js.map +1 -1
  50. package/dist/i18n/locales/nl.d.ts +4 -0
  51. package/dist/i18n/locales/nl.d.ts.map +1 -1
  52. package/dist/i18n/locales/nl.js +6 -2
  53. package/dist/i18n/locales/nl.js.map +1 -1
  54. package/dist/i18n/locales/pl.d.ts +4 -0
  55. package/dist/i18n/locales/pl.d.ts.map +1 -1
  56. package/dist/i18n/locales/pl.js +6 -2
  57. package/dist/i18n/locales/pl.js.map +1 -1
  58. package/dist/i18n/locales/pt.d.ts +4 -0
  59. package/dist/i18n/locales/pt.d.ts.map +1 -1
  60. package/dist/i18n/locales/pt.js +6 -2
  61. package/dist/i18n/locales/pt.js.map +1 -1
  62. package/dist/i18n/locales/ro.d.ts +4 -0
  63. package/dist/i18n/locales/ro.d.ts.map +1 -1
  64. package/dist/i18n/locales/ro.js +6 -2
  65. package/dist/i18n/locales/ro.js.map +1 -1
  66. package/dist/i18n/locales/ru.d.ts +4 -0
  67. package/dist/i18n/locales/ru.d.ts.map +1 -1
  68. package/dist/i18n/locales/ru.js +6 -2
  69. package/dist/i18n/locales/ru.js.map +1 -1
  70. package/dist/i18n/locales/sq.d.ts +4 -0
  71. package/dist/i18n/locales/sq.d.ts.map +1 -1
  72. package/dist/i18n/locales/sq.js +6 -2
  73. package/dist/i18n/locales/sq.js.map +1 -1
  74. package/dist/i18n/locales/sv.d.ts +4 -0
  75. package/dist/i18n/locales/sv.d.ts.map +1 -1
  76. package/dist/i18n/locales/sv.js +6 -2
  77. package/dist/i18n/locales/sv.js.map +1 -1
  78. package/dist/i18n/locales/tr.d.ts +4 -0
  79. package/dist/i18n/locales/tr.d.ts.map +1 -1
  80. package/dist/i18n/locales/tr.js +6 -2
  81. package/dist/i18n/locales/tr.js.map +1 -1
  82. package/dist/i18n/locales/zh.d.ts +4 -0
  83. package/dist/i18n/locales/zh.d.ts.map +1 -1
  84. package/dist/i18n/locales/zh.js +6 -2
  85. package/dist/i18n/locales/zh.js.map +1 -1
  86. package/dist/index.js +3 -3
  87. package/dist/locales/ar.json +6 -2
  88. package/dist/locales/de.json +6 -2
  89. package/dist/locales/el.json +6 -2
  90. package/dist/locales/en.json +6 -2
  91. package/dist/locales/es.json +6 -2
  92. package/dist/locales/fr.json +6 -2
  93. package/dist/locales/hi.json +6 -2
  94. package/dist/locales/it.json +6 -2
  95. package/dist/locales/ja.json +6 -2
  96. package/dist/locales/nl.json +6 -2
  97. package/dist/locales/pl.json +6 -2
  98. package/dist/locales/pt.json +6 -2
  99. package/dist/locales/ro.json +6 -2
  100. package/dist/locales/ru.json +6 -2
  101. package/dist/locales/sq.json +6 -2
  102. package/dist/locales/sv.json +6 -2
  103. package/dist/locales/tr.json +6 -2
  104. package/dist/locales/zh.json +6 -2
  105. package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
  106. package/dist/patterns/calendar/calendar-workspace.model.d.ts +5 -1
  107. package/dist/patterns/calendar/calendar-workspace.model.d.ts.map +1 -1
  108. package/dist/patterns/calendar/calendar.data.d.ts +37 -1
  109. package/dist/patterns/calendar/calendar.data.d.ts.map +1 -1
  110. package/dist/patterns/calendar/calendar.model.d.ts +9 -3
  111. package/dist/patterns/calendar/calendar.model.d.ts.map +1 -1
  112. package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
  113. package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
  114. package/dist/patterns/calendar/calendar.types.d.ts +24 -0
  115. package/dist/patterns/calendar/calendar.types.d.ts.map +1 -1
  116. package/dist/patterns/calendar/index.d.ts +2 -2
  117. package/dist/patterns/calendar/index.d.ts.map +1 -1
  118. package/dist/patterns/calendar/index.js +1 -1
  119. package/dist/tokens.css +5 -1
  120. package/package.json +1 -1
  121. package/dist/_chunks/calendar-0d05p1It.js.map +0 -1
  122. package/dist/_chunks/calendar-event-card-66CEEWU6.js.map +0 -1
  123. package/dist/_chunks/calendar-workspace-irqUg_dW.js.map +0 -1
@@ -1,25 +1,26 @@
1
- import { jsxs as E, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as Le, useRef as p, useEffect as v, useState as se, useMemo as u, useImperativeHandle as $t, useCallback as g } from "react";
3
- import { useTranslation as ye } from "react-i18next";
4
- import Kt from "@fullcalendar/react";
5
- import Ut from "@fullcalendar/daygrid";
6
- import Yt from "@fullcalendar/timegrid";
7
- import Xt from "@fullcalendar/list";
8
- import Jt from "@fullcalendar/resource";
9
- import Zt from "@fullcalendar/resource-timegrid";
10
- import Qt from "@fullcalendar/resource-timeline";
11
- import er from "@fullcalendar/timeline";
12
- import tr from "@fullcalendar/interaction";
13
- import { u as rr } from "./use-prefers-reduced-motion-BMwIQRjB.js";
14
- import { u as nr } from "./registry-DvAUVLHh.js";
15
- import { w as ir, C as ar } from "./calendar-event-card-66CEEWU6.js";
16
- import { A as sr } from "./avatar-BNQNhoyL.js";
17
- import { R as or } from "./resource-chip-DYTG0IQQ.js";
18
- import { T as dr } from "./tooltip-DvmfrNvB.js";
19
- import { C as cr } from "./check-DrFSN__t.js";
20
- import { C as Be } from "./chevron-right-I9AeSxH2.js";
21
- import { C as Oe } from "./chevron-left-B8cOyH-V.js";
22
- const lr = {
1
+ import { jsxs as P, jsx as d } from "react/jsx-runtime";
2
+ import { forwardRef as _e, useRef as p, useEffect as v, useState as ce, useMemo as u, useImperativeHandle as Zt, useCallback as h } from "react";
3
+ import { useTranslation as Ce } from "react-i18next";
4
+ import Qt from "@fullcalendar/react";
5
+ import er from "@fullcalendar/daygrid";
6
+ import tr from "@fullcalendar/timegrid";
7
+ import rr from "@fullcalendar/list";
8
+ import nr from "@fullcalendar/resource";
9
+ import ir from "@fullcalendar/resource-timegrid";
10
+ import ar from "@fullcalendar/resource-timeline";
11
+ import sr from "@fullcalendar/timeline";
12
+ import or from "@fullcalendar/interaction";
13
+ import { u as dr } from "./use-prefers-reduced-motion-BMwIQRjB.js";
14
+ import { u as cr } from "./registry-DvAUVLHh.js";
15
+ import { w as lr, C as ur } from "./calendar-event-card-DSh-69HT.js";
16
+ import { A as mr } from "./avatar-BNQNhoyL.js";
17
+ import { R as fr } from "./resource-chip-DYTG0IQQ.js";
18
+ import { T as pr } from "./tooltip-DvmfrNvB.js";
19
+ import { V as vr } from "./visually-hidden-BHxEUGyT.js";
20
+ import { C as hr } from "./check-DrFSN__t.js";
21
+ import { C as We } from "./chevron-right-I9AeSxH2.js";
22
+ import { C as je } from "./chevron-left-B8cOyH-V.js";
23
+ const gr = {
23
24
  id: "calendar",
24
25
  capabilities: ["view_change", "range_navigate", "pick"],
25
26
  state: {
@@ -171,10 +172,10 @@ const lr = {
171
172
  },
172
173
  item: {
173
174
  attr: "data-event-id",
174
- description: 'Emitted on every rendered FullCalendar event by the kit event renderer. Used by focusEvent. Cards also carry data-kind="task"|"draft"|"appointment" and data-status for classification.'
175
+ description: 'Emitted on every rendered FullCalendar event by the kit event renderer. Used by focusEvent. Cards also carry data-kind="task"|"draft"|"pending-details"|"appointment" and data-status for classification.'
175
176
  }
176
177
  }
177
- }, ur = {
178
+ }, yr = {
178
179
  vertical: {
179
180
  Day: "resourceTimeGridDay",
180
181
  ThreeDays: "resourceTimeGridThreeDays",
@@ -185,35 +186,35 @@ const lr = {
185
186
  ThreeDays: "resourceTimelineThreeDays",
186
187
  Week: "resourceTimelineWeek"
187
188
  }
188
- }, mr = /* @__PURE__ */ new Set([
189
+ }, br = /* @__PURE__ */ new Set([
189
190
  "dayGridMonth",
190
191
  "timeGridWeek",
191
192
  "timeGridThreeDays",
192
193
  "timeGridDay",
193
194
  "listWeek"
194
- ]), fr = {
195
+ ]), Tr = {
195
196
  timeGridDay: "timelineDay",
196
197
  timeGridThreeDays: "timelineThreeDays",
197
198
  timeGridWeek: "timelineWeek"
198
199
  };
199
- function pe(n, s = "vertical") {
200
- if (mr.has(n))
201
- return s === "horizontal" ? fr[n] ?? n : n;
202
- const d = n.replace(/^resourceTimeGrid/, "").replace(
200
+ function Te(n, s = "vertical") {
201
+ if (br.has(n))
202
+ return s === "horizontal" ? Tr[n] ?? n : n;
203
+ const c = n.replace(/^resourceTimeGrid/, "").replace(
203
204
  /(Chair|Operator)$/,
204
205
  ""
205
206
  );
206
- return ur[s][d];
207
+ return yr[s][c];
207
208
  }
208
- const ae = {
209
+ const de = {
209
210
  weekday: "long",
210
211
  day: "numeric",
211
212
  month: "long",
212
213
  year: "numeric"
213
- }, pr = [
214
+ }, Dr = [
214
215
  { weekday: "short", day: "numeric", month: "short" },
215
216
  { hour: "numeric", minute: "2-digit" }
216
- ], vr = {
217
+ ], xr = {
217
218
  resourceTimeGridThreeDays: {
218
219
  type: "resourceTimeGrid",
219
220
  duration: { days: 3 }
@@ -232,17 +233,17 @@ const ae = {
232
233
  type: "timeline",
233
234
  duration: { days: 3 }
234
235
  },
235
- timeline: { slotLabelFormat: pr },
236
- timeGridDay: { titleFormat: ae },
237
- resourceTimeGridDay: { titleFormat: ae },
238
- timelineDay: { titleFormat: ae },
239
- resourceTimelineDay: { titleFormat: ae }
240
- }, ve = 5, hr = {
236
+ timeline: { slotLabelFormat: Dr },
237
+ timeGridDay: { titleFormat: de },
238
+ resourceTimeGridDay: { titleFormat: de },
239
+ timelineDay: { titleFormat: de },
240
+ resourceTimelineDay: { titleFormat: de }
241
+ }, De = 5, Cr = {
241
242
  create: "calendar.modeBanner.create",
242
243
  move: "calendar.modeBanner.move",
243
244
  copy: "calendar.modeBanner.copy"
244
245
  };
245
- function gr(n) {
246
+ function wr(n) {
246
247
  try {
247
248
  const s = new Intl.Locale(n), o = typeof s.getWeekInfo == "function" ? s.getWeekInfo() : s.weekInfo;
248
249
  if (o && typeof o.firstDay == "number")
@@ -251,61 +252,61 @@ function gr(n) {
251
252
  }
252
253
  return n.startsWith("en-US") || n.startsWith("he") || n.startsWith("ar-SA") ? 0 : 1;
253
254
  }
254
- const he = "calendar-col-hidden";
255
- function ge(n) {
256
- const s = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), d = String(n.getDate()).padStart(2, "0");
257
- return `${s}-${o}-${d}`;
255
+ const xe = "calendar-col-hidden", Ar = "calendar-col-loading";
256
+ function F(n) {
257
+ const s = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), c = String(n.getDate()).padStart(2, "0");
258
+ return `${s}-${o}-${c}`;
258
259
  }
259
- function yr(n, s) {
260
- const o = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map(), f = (n == null ? void 0 : n.length) ?? 0;
260
+ function kr(n, s) {
261
+ const o = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map(), f = (n == null ? void 0 : n.length) ?? 0;
261
262
  if (n && s) {
262
263
  for (const T of n)
263
264
  if (T.hiddenDates)
264
- for (const h of T.hiddenDates) {
265
- const k = `${T.id}:${h}`;
266
- o.has(k) || (o.add(k), d.set(h, (d.get(h) ?? 0) + 1));
265
+ for (const g of T.hiddenDates) {
266
+ const A = `${T.id}:${g}`;
267
+ o.has(A) || (o.add(A), c.set(g, (c.get(g) ?? 0) + 1));
267
268
  }
268
269
  }
269
270
  return {
270
271
  hiddenCells: o,
271
- hiddenCountByDate: d,
272
+ hiddenCountByDate: c,
272
273
  resourceCount: f,
273
274
  active: o.size > 0
274
275
  };
275
276
  }
276
- function br() {
277
- const { i18n: n } = ye(), [s, o] = se(() => {
277
+ function Ir() {
278
+ const { i18n: n } = Ce(), [s, o] = ce(() => {
278
279
  if (typeof document > "u") return !1;
279
- const d = document.documentElement.getAttribute("dir"), f = typeof n.dir == "function" ? n.dir() : "ltr";
280
- return d === "rtl" || f === "rtl";
280
+ const c = document.documentElement.getAttribute("dir"), f = typeof n.dir == "function" ? n.dir() : "ltr";
281
+ return c === "rtl" || f === "rtl";
281
282
  });
282
283
  return v(() => {
283
284
  if (typeof document > "u") return;
284
- const d = new MutationObserver(() => {
285
+ const c = new MutationObserver(() => {
285
286
  const f = document.documentElement.getAttribute("dir"), T = typeof n.dir == "function" ? n.dir() : "ltr";
286
287
  o(f === "rtl" || T === "rtl");
287
288
  });
288
- return d.observe(document.documentElement, {
289
+ return c.observe(document.documentElement, {
289
290
  attributes: !0,
290
291
  attributeFilter: ["dir", "lang"]
291
- }), () => d.disconnect();
292
+ }), () => c.disconnect();
292
293
  }, [n]), s;
293
294
  }
294
- function Tr(n, s) {
295
- const o = n.event.start, d = n.event.end ?? n.event.start;
296
- if (!(!o || !d))
295
+ function Sr(n, s) {
296
+ const o = n.event.start, c = n.event.end ?? n.event.start;
297
+ if (!(!o || !c))
297
298
  try {
298
299
  const f = new Intl.DateTimeFormat(s, {
299
300
  hour: "2-digit",
300
301
  minute: "2-digit",
301
302
  hour12: !1
302
303
  });
303
- return typeof f.formatRange == "function" ? f.formatRange(o, d) : `${f.format(o)} – ${f.format(d)}`;
304
+ return typeof f.formatRange == "function" ? f.formatRange(o, c) : `${f.format(o)} – ${f.format(c)}`;
304
305
  } catch {
305
306
  return;
306
307
  }
307
308
  }
308
- const We = [
309
+ const Ve = [
309
310
  "ds:inline-flex ds:items-center ds:justify-center",
310
311
  "ds:min-h-[var(--min-target-size)]",
311
312
  "ds:bg-[var(--background)] ds:text-[var(--foreground)]",
@@ -318,15 +319,15 @@ const We = [
318
319
  "ds:focus-visible:outline-[var(--ring)]",
319
320
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
320
321
  "ds:motion-reduce:transition-none"
321
- ].join(" "), xr = [
322
- We,
322
+ ].join(" "), Rr = [
323
+ Ve,
323
324
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
324
- ].join(" "), Dr = [
325
- We,
325
+ ].join(" "), Er = [
326
+ Ve,
326
327
  "ds:min-w-[var(--min-target-size)]"
327
- ].join(" "), be = Le(
328
- ({ title: n, onToday: s, onPrev: o, onNext: d, end: f, className: T, maskClassName: h }, k) => {
329
- const { t: O } = ye(), Y = br(), x = Y ? Be : Oe, L = Y ? Oe : Be, W = [
328
+ ].join(" "), we = _e(
329
+ ({ title: n, onToday: s, onPrev: o, onNext: c, end: f, className: T, maskClassName: g }, A) => {
330
+ const { t: z } = Ce(), Z = Ir(), D = Z ? We : je, W = Z ? je : We, j = [
330
331
  "ds:calendar-toolbar",
331
332
  "ds:sticky ds:top-0 ds:z-20",
332
333
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
@@ -335,145 +336,146 @@ const We = [
335
336
  "ds:bg-[var(--background)]",
336
337
  "ds:border-b ds:border-[var(--border)]",
337
338
  T
338
- ].filter(Boolean).join(" "), F = [xr, h].filter(Boolean).join(" "), A = [Dr, h].filter(Boolean).join(" "), D = [
339
+ ].filter(Boolean).join(" "), _ = [Rr, g].filter(Boolean).join(" "), S = [Er, g].filter(Boolean).join(" "), x = [
339
340
  "ds:flex-1 ds:text-center ds:truncate type-title-card",
340
- h
341
- ].filter(Boolean).join(" "), X = ["ds:flex-1 ds:text-center", h].filter(Boolean).join(" ");
342
- return /* @__PURE__ */ E("div", { ref: k, className: W, children: [
343
- /* @__PURE__ */ E("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
344
- /* @__PURE__ */ l(
341
+ g
342
+ ].filter(Boolean).join(" "), Q = ["ds:flex-1 ds:text-center", g].filter(Boolean).join(" ");
343
+ return /* @__PURE__ */ P("div", { ref: A, className: j, children: [
344
+ /* @__PURE__ */ P("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
345
+ /* @__PURE__ */ d(
345
346
  "button",
346
347
  {
347
348
  type: "button",
348
349
  onClick: s,
349
- className: F,
350
- children: O("calendar.today")
350
+ className: _,
351
+ children: z("calendar.today")
351
352
  }
352
353
  ),
353
- /* @__PURE__ */ l(
354
+ /* @__PURE__ */ d(
354
355
  "button",
355
356
  {
356
357
  type: "button",
357
358
  onClick: o,
358
- "aria-label": O("calendar.previousPeriod"),
359
- className: A,
360
- children: /* @__PURE__ */ l(x, { size: 16, "aria-hidden": "true" })
359
+ "aria-label": z("calendar.previousPeriod"),
360
+ className: S,
361
+ children: /* @__PURE__ */ d(D, { size: 16, "aria-hidden": "true" })
361
362
  }
362
363
  ),
363
- /* @__PURE__ */ l(
364
+ /* @__PURE__ */ d(
364
365
  "button",
365
366
  {
366
367
  type: "button",
367
- onClick: d,
368
- "aria-label": O("calendar.nextPeriod"),
369
- className: A,
370
- children: /* @__PURE__ */ l(L, { size: 16, "aria-hidden": "true" })
368
+ onClick: c,
369
+ "aria-label": z("calendar.nextPeriod"),
370
+ className: S,
371
+ children: /* @__PURE__ */ d(W, { size: 16, "aria-hidden": "true" })
371
372
  }
372
373
  )
373
374
  ] }),
374
- n ? /* @__PURE__ */ l("h2", { "aria-live": "polite", className: D, children: n }) : (
375
+ n ? /* @__PURE__ */ d("h2", { "aria-live": "polite", className: x, children: n }) : (
375
376
  /* Keep the centering slot stable even before the first
376
377
  `datesSet` populates the title — an empty <h2> would trip
377
378
  axe's `empty-heading` rule, so we substitute a decorative
378
379
  spacer that matches the h2's flex sizing. Once `title` is
379
380
  non-empty the h2 renders in the same slot. */
380
- /* @__PURE__ */ l("div", { "aria-hidden": "true", className: X })
381
+ /* @__PURE__ */ d("div", { "aria-hidden": "true", className: Q })
381
382
  ),
382
- f ? /* @__PURE__ */ l("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
383
+ f ? /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
383
384
  ] });
384
385
  }
385
386
  );
386
- be.displayName = "Calendar.Toolbar";
387
- const Fe = Le(
387
+ we.displayName = "Calendar.Toolbar";
388
+ const He = _e(
388
389
  ({
389
390
  id: n,
390
391
  events: s,
391
392
  resources: o,
392
- view: d = "dayGridMonth",
393
+ view: c = "dayGridMonth",
393
394
  initialDate: f,
394
395
  locale: T,
395
- onEventDrop: h,
396
- onEventResize: k,
397
- onEventDragStart: O,
398
- onEventResizeStart: Y,
399
- onEventClick: x,
400
- onEventMouseEnter: L,
401
- onEventMouseLeave: W,
402
- onDateSelect: F,
403
- onDatesSet: A,
404
- onDateClick: D,
405
- onNavLinkDayClick: X,
406
- editable: J = !1,
407
- eventDurationEditable: ze,
408
- selectable: Te = !1,
409
- selectMirror: je,
410
- unselectAuto: xe,
411
- height: _e,
412
- className: Ve,
396
+ onEventDrop: g,
397
+ onEventResize: A,
398
+ onEventDragStart: z,
399
+ onEventResizeStart: Z,
400
+ onEventClick: D,
401
+ onEventMouseEnter: W,
402
+ onEventMouseLeave: j,
403
+ onDateSelect: _,
404
+ onDatesSet: S,
405
+ onDateClick: x,
406
+ onNavLinkDayClick: Q,
407
+ editable: ee = !1,
408
+ eventDurationEditable: qe,
409
+ selectable: Ae = !1,
410
+ selectMirror: $e,
411
+ unselectAuto: ke,
412
+ height: Ke,
413
+ className: Ue,
413
414
  privacyMode: y = !1,
414
- eventColorStyle: He = "solid",
415
- mode: Z = "default",
416
- modeLabel: qe,
417
- modeBannerColor: Q,
418
- modeBannerTextColor: ee,
419
- onModeCancel: De,
420
- alertBanner: $e,
421
- hiddenDays: we,
422
- slotMinTime: Ke,
423
- slotMaxTime: Ue,
424
- slotDuration: Ye,
425
- snapDuration: Ce,
426
- showTime: Xe = !0,
427
- datesAboveResources: oe = !0,
428
- slotEventOverlap: Je = !1,
429
- stickyHeaderDates: Ze = !0,
430
- nowIndicator: Qe = !0,
431
- dayMaxEvents: et = !0,
432
- schedulerLicenseKey: tt = void 0,
433
- toolbar: rt = !0,
434
- toolbarEnd: nt,
435
- resourceLayout: z = "vertical",
436
- showResourceInitials: de = !1,
437
- resourceLabelVariant: ke = "text",
438
- verticalResourceLabels: ce = !1,
439
- selectedEventId: Ie,
440
- availabilityMode: it = !1,
441
- resourceAreaWidth: at,
442
- resourceAreaHeader: j,
443
- defaultTimedEventDuration: _,
444
- zebraRows: st = !1,
415
+ eventColorStyle: Ye = "solid",
416
+ mode: te = "default",
417
+ modeLabel: Xe,
418
+ modeBannerColor: re,
419
+ modeBannerTextColor: ne,
420
+ onModeCancel: Ie,
421
+ alertBanner: Je,
422
+ hiddenDays: Se,
423
+ loadingDates: Re,
424
+ slotMinTime: Ze,
425
+ slotMaxTime: Qe,
426
+ slotDuration: et,
427
+ snapDuration: Ee,
428
+ showTime: tt = !0,
429
+ datesAboveResources: le = !0,
430
+ slotEventOverlap: rt = !1,
431
+ stickyHeaderDates: nt = !0,
432
+ nowIndicator: it = !0,
433
+ dayMaxEvents: at = !0,
434
+ schedulerLicenseKey: st = void 0,
435
+ toolbar: ot = !0,
436
+ toolbarEnd: dt,
437
+ resourceLayout: V = "vertical",
438
+ showResourceInitials: ue = !1,
439
+ resourceLabelVariant: Pe = "text",
440
+ verticalResourceLabels: me = !1,
441
+ selectedEventId: Ne,
442
+ availabilityMode: ct = !1,
443
+ resourceAreaWidth: lt,
444
+ resourceAreaHeader: H,
445
+ defaultTimedEventDuration: q,
446
+ zebraRows: ut = !1,
445
447
  maskClassName: N
446
- }, ot) => {
447
- const { t: m, i18n: P } = ye(), w = p(null), R = p(null), C = p(null), I = p(null), G = p(null), Ae = p(null), te = p({
448
+ }, mt) => {
449
+ const { t: m, i18n: G } = Ce(), C = p(null), k = p(null), w = p(null), I = p(null), M = p(null), Ge = p(null), ie = p({
448
450
  id: 0,
449
451
  x: 0,
450
452
  y: 0
451
- }), Re = p(0), Se = p(0), S = T ?? P.language ?? "en";
453
+ }), Me = p(0), Be = p(0), R = T ?? G.language ?? "en";
452
454
  v(() => {
453
- }, [we]), v(() => {
454
- }, [_]);
455
- const [dt, ct] = se(() => {
455
+ }, [Se]), v(() => {
456
+ }, [q]);
457
+ const [ft, pt] = ce(() => {
456
458
  if (typeof document > "u") return "ltr";
457
- const e = document.documentElement.getAttribute("dir"), t = typeof P.dir == "function" ? P.dir() : "ltr";
459
+ const e = document.documentElement.getAttribute("dir"), t = typeof G.dir == "function" ? G.dir() : "ltr";
458
460
  return e === "rtl" || t === "rtl" ? "rtl" : "ltr";
459
461
  });
460
462
  v(() => {
461
463
  if (typeof document > "u") return;
462
464
  const e = new MutationObserver(() => {
463
- const t = document.documentElement.getAttribute("dir"), r = typeof P.dir == "function" ? P.dir() : "ltr";
464
- ct(t === "rtl" || r === "rtl" ? "rtl" : "ltr");
465
+ const t = document.documentElement.getAttribute("dir"), r = typeof G.dir == "function" ? G.dir() : "ltr";
466
+ pt(t === "rtl" || r === "rtl" ? "rtl" : "ltr");
465
467
  });
466
468
  return e.observe(document.documentElement, {
467
469
  attributes: !0,
468
470
  attributeFilter: ["dir", "lang"]
469
471
  }), () => e.disconnect();
470
- }, [P]), v(() => {
472
+ }, [G]), v(() => {
471
473
  if (typeof document > "u") return;
472
474
  let e;
473
475
  const t = new MutationObserver(() => {
474
476
  clearTimeout(e), e = setTimeout(() => {
475
477
  var i;
476
- const r = (i = w.current) == null ? void 0 : i.getApi();
478
+ const r = (i = C.current) == null ? void 0 : i.getApi();
477
479
  r && typeof r.render == "function" && r.render();
478
480
  }, 50);
479
481
  });
@@ -484,15 +486,15 @@ const Fe = Le(
484
486
  clearTimeout(e), t.disconnect();
485
487
  };
486
488
  }, []), v(() => {
487
- const e = R.current;
489
+ const e = k.current;
488
490
  if (!e || typeof ResizeObserver > "u") return;
489
491
  let t = 0, r = e.getBoundingClientRect().width;
490
492
  const i = new ResizeObserver((a) => {
491
- var q, $;
492
- const c = a[0], b = (($ = (q = c == null ? void 0 : c.borderBoxSize) == null ? void 0 : q[0]) == null ? void 0 : $.inlineSize) ?? (c == null ? void 0 : c.contentRect.width) ?? e.getBoundingClientRect().width;
493
+ var U, Y;
494
+ const l = a[0], b = ((Y = (U = l == null ? void 0 : l.borderBoxSize) == null ? void 0 : U[0]) == null ? void 0 : Y.inlineSize) ?? (l == null ? void 0 : l.contentRect.width) ?? e.getBoundingClientRect().width;
493
495
  b !== r && (r = b, cancelAnimationFrame(t), t = requestAnimationFrame(() => {
494
- var K, U;
495
- (U = (K = w.current) == null ? void 0 : K.getApi()) == null || U.updateSize();
496
+ var X, J;
497
+ (J = (X = C.current) == null ? void 0 : X.getApi()) == null || J.updateSize();
496
498
  }));
497
499
  });
498
500
  return i.observe(e), () => {
@@ -500,7 +502,7 @@ const Fe = Le(
500
502
  };
501
503
  }, []), v(() => {
502
504
  if (typeof document > "u") return;
503
- const e = R.current;
505
+ const e = k.current;
504
506
  if (!e) return;
505
507
  const t = () => {
506
508
  e.querySelectorAll(
@@ -524,19 +526,19 @@ const Fe = Le(
524
526
  attributeFilter: ["aria-hidden"]
525
527
  }), () => r.disconnect();
526
528
  }, [m]);
527
- const re = rr(), [lt, ut] = se(""), [V, mt] = se(
528
- () => pe(d, z)
529
- ), Ee = p(V);
530
- Ee.current = V;
531
- const le = u(() => {
529
+ const ae = dr(), [vt, ht] = ce(""), [B, gt] = ce(
530
+ () => Te(c, V)
531
+ ), Le = p(B);
532
+ Le.current = B;
533
+ const fe = u(() => {
532
534
  const e = () => {
533
535
  var t;
534
- return (t = w.current) == null ? void 0 : t.getApi();
536
+ return (t = C.current) == null ? void 0 : t.getApi();
535
537
  };
536
538
  return {
537
539
  getApi: () => {
538
540
  var t;
539
- return (t = w.current) == null ? void 0 : t.getApi();
541
+ return (t = C.current) == null ? void 0 : t.getApi();
540
542
  },
541
543
  today: () => {
542
544
  var t;
@@ -557,7 +559,7 @@ const Fe = Le(
557
559
  changeView: (t) => {
558
560
  var r;
559
561
  (r = e()) == null || r.changeView(
560
- pe(t, z)
562
+ Te(t, V)
561
563
  );
562
564
  },
563
565
  getTitle: () => {
@@ -573,41 +575,41 @@ const Fe = Le(
573
575
  return (t = e()) == null ? void 0 : t.getDate();
574
576
  },
575
577
  focusEvent: (t) => {
576
- const r = R.current;
578
+ const r = k.current;
577
579
  if (!r) return;
578
580
  const i = `[data-event-id="${CSS.escape(t)}"]`, a = r.querySelector(i);
579
581
  if (a) {
580
- if (I.current && (clearTimeout(I.current), I.current = null), G.current && G.current !== a && G.current.classList.remove("calendar-event-focused"), a.scrollIntoView({
581
- behavior: re ? "auto" : "smooth",
582
+ if (I.current && (clearTimeout(I.current), I.current = null), M.current && M.current !== a && M.current.classList.remove("calendar-event-focused"), a.scrollIntoView({
583
+ behavior: ae ? "auto" : "smooth",
582
584
  block: "center"
583
- }), a.classList.add("calendar-event-focused"), G.current = a, C.current) {
584
- const c = a.getAttribute("aria-label") ?? t, b = y ? "•••" : c;
585
- C.current.textContent = m("calendar.focusedEvent", {
585
+ }), a.classList.add("calendar-event-focused"), M.current = a, w.current) {
586
+ const l = a.getAttribute("aria-label") ?? t, b = y ? "•••" : l;
587
+ w.current.textContent = m("calendar.focusedEvent", {
586
588
  title: b
587
589
  });
588
590
  }
589
591
  I.current = setTimeout(() => {
590
- a.classList.remove("calendar-event-focused"), G.current === a && (G.current = null), I.current = null;
592
+ a.classList.remove("calendar-event-focused"), M.current === a && (M.current = null), I.current = null;
591
593
  }, 3e3);
592
594
  }
593
595
  }
594
596
  };
595
- }, [re, y, m, z]);
596
- $t(ot, () => le, [le]), nr(lr, le, n), v(
597
+ }, [ae, y, m, V]);
598
+ Zt(mt, () => fe, [fe]), cr(gr, fe, n), v(
597
599
  () => () => {
598
600
  I.current && (clearTimeout(I.current), I.current = null);
599
601
  },
600
602
  []
601
603
  );
602
- const Ne = p(!0);
604
+ const Oe = p(!0);
603
605
  v(() => {
604
- if (Ne.current) {
605
- Ne.current = !1;
606
+ if (Oe.current) {
607
+ Oe.current = !1;
606
608
  return;
607
609
  }
608
- C.current && (C.current.textContent = m(y ? "calendar.privacyModeOn" : "calendar.privacyModeOff"));
610
+ w.current && (w.current.textContent = m(y ? "calendar.privacyModeOn" : "calendar.privacyModeOff"));
609
611
  }, [y, m]);
610
- const ft = u(
612
+ const yt = u(
611
613
  () => s.map((e) => ({
612
614
  id: e.id,
613
615
  title: e.title,
@@ -630,6 +632,9 @@ const Fe = Le(
630
632
  IS how they pick the slot, so it stays editable even on a
631
633
  read-only calendar. The consumer's own `editable` still wins. */
632
634
  ...e.isDraft ? { editable: !0 } : {},
635
+ /* A block whose owner is still loading cannot be moved, by drag
636
+ or by resource (Scheduler reads that option separately). */
637
+ ...e.detailsPending ? { editable: !1, resourceEditable: !1 } : {},
633
638
  /* Scheduler separately falls back to the global editable option
634
639
  for resource moves. A pinned event must refuse those too. */
635
640
  ...e.editable !== void 0 ? { editable: e.editable, resourceEditable: e.editable } : {},
@@ -658,29 +663,30 @@ const Fe = Le(
658
663
  isInternal: e.isInternal ?? !1,
659
664
  isTask: e.isTask ?? !1,
660
665
  isDraft: e.isDraft ?? !1,
666
+ detailsPending: e.detailsPending ?? !1,
661
667
  patientId: e.patientId,
662
668
  operatorId: e.operatorId
663
669
  }
664
670
  })),
665
671
  [s]
666
- ), pt = u(
672
+ ), bt = u(
667
673
  () => ({
668
674
  year: "numeric",
669
675
  month: "long"
670
676
  }),
671
677
  []
672
- ), vt = u(
678
+ ), Tt = u(
673
679
  () => ({
674
680
  weekday: "short"
675
681
  }),
676
682
  []
677
- ), ht = u(
683
+ ), Dt = u(
678
684
  () => ({
679
685
  hour: "numeric",
680
686
  minute: "2-digit"
681
687
  }),
682
688
  []
683
- ), gt = u(
689
+ ), xt = u(
684
690
  () => ({
685
691
  hour: "2-digit",
686
692
  minute: "2-digit",
@@ -689,96 +695,112 @@ const Fe = Le(
689
695
  hour12: !1
690
696
  }),
691
697
  []
692
- ), yt = g(
698
+ ), E = u(
699
+ () => new Set(Re ?? []),
700
+ [Re]
701
+ ), pe = p(E);
702
+ pe.current = E;
703
+ const ve = p(!1), Ct = h(
693
704
  (e) => {
694
- const t = new Intl.DateTimeFormat(S, {
705
+ const t = new Intl.DateTimeFormat(R, {
695
706
  weekday: "short"
696
707
  }).format(e.date);
697
708
  if (e.view.type === "dayGridMonth" || e.view.type.startsWith("list"))
698
709
  return t;
699
- const r = new Intl.DateTimeFormat(S, {
710
+ const r = new Intl.DateTimeFormat(R, {
700
711
  day: "numeric"
701
712
  }).format(e.date);
702
- return /* @__PURE__ */ E("span", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)]", children: [
703
- /* @__PURE__ */ l("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: t }),
704
- /* @__PURE__ */ l(
713
+ return /* @__PURE__ */ P("span", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)]", children: [
714
+ /* @__PURE__ */ d("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: t }),
715
+ /* @__PURE__ */ d(
705
716
  "span",
706
717
  {
707
718
  className: e.isToday ? "ds:flex ds:size-7 ds:items-center ds:justify-center ds:rounded-full ds:bg-[var(--primary)] ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:leading-none ds:text-[color:var(--primary-foreground)]" : "ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:leading-none",
708
719
  children: r
709
720
  }
710
- )
721
+ ),
722
+ E.has(F(e.date)) ? /* @__PURE__ */ d(vr, { children: m("calendar.loadingDay") }) : null
711
723
  ] });
712
724
  },
713
- [S]
714
- ), Pe = u(
715
- () => typeof _ == "number" ? { minutes: _ } : _,
716
- [_]
717
- ), ue = u(
725
+ [R, E, m]
726
+ ), Fe = u(
727
+ () => typeof q == "number" ? { minutes: q } : q,
728
+ [q]
729
+ ), he = u(
718
730
  () => N ? N.split(/\s+/).filter(Boolean) : void 0,
719
731
  [N]
720
- ), bt = u(() => {
721
- if (j !== void 0)
722
- return j === "chairs" ? m("calendar.resourceLabel.chairs") : j === "operators" ? m("calendar.resourceLabel.operators") : j;
723
- }, [j, m]), ne = u(
724
- () => yr(o, oe),
725
- [o, oe]
726
- ), M = p(ne);
727
- M.current = ne;
728
- const me = p(!1), Tt = g(
732
+ ), wt = u(() => {
733
+ if (H !== void 0)
734
+ return H === "chairs" ? m("calendar.resourceLabel.chairs") : H === "operators" ? m("calendar.resourceLabel.operators") : H;
735
+ }, [H, m]), se = u(
736
+ () => kr(o, le),
737
+ [o, le]
738
+ ), L = p(se);
739
+ L.current = se;
740
+ const ge = p(!1), At = h(
729
741
  (e) => {
730
- const t = M.current;
731
- if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
732
- return [];
733
- const r = e.resource;
734
- return r != null && r.id ? t.hiddenCells.has(
735
- `${r.id}:${ge(e.date)}`
736
- ) ? [he] : [] : [];
742
+ const t = E.has(F(e.date)) ? [Ar] : [], r = L.current;
743
+ if (!r.active || !e.view.type.startsWith("resourceTimeGrid"))
744
+ return t;
745
+ const i = e.resource;
746
+ return i != null && i.id && r.hiddenCells.has(
747
+ `${i.id}:${F(e.date)}`
748
+ ) ? [...t, xe] : t;
737
749
  },
738
- []
739
- ), xt = g(
750
+ [E]
751
+ ), kt = h(
740
752
  (e) => {
741
- const t = M.current;
753
+ const t = L.current;
742
754
  if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
743
755
  return [];
744
756
  const r = e.date ?? e.view.currentStart;
745
757
  return t.hiddenCells.has(
746
- `${e.resource.id}:${ge(r)}`
747
- ) ? [he] : [];
758
+ `${e.resource.id}:${F(r)}`
759
+ ) ? [xe] : [];
748
760
  },
749
761
  []
750
- ), Dt = g(
762
+ ), It = h(
751
763
  (e) => {
752
- const t = M.current;
753
- return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(ge(e.date)) ?? 0) >= t.resourceCount ? [he] : [];
764
+ const t = L.current;
765
+ return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(F(e.date)) ?? 0) >= t.resourceCount ? [xe] : [];
754
766
  },
755
767
  []
756
- ), wt = g((e) => {
757
- const t = M.current;
768
+ ), St = h((e) => {
769
+ const t = L.current;
758
770
  if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
759
771
  return;
760
772
  const r = e.el;
761
773
  if (!(r instanceof HTMLTableCellElement) || !r.classList.contains("fc-day")) return;
762
774
  const i = r.getAttribute("data-date");
763
775
  if (!i) return;
764
- const a = t.hiddenCountByDate.get(i) ?? 0, c = Math.max(1, t.resourceCount - a);
765
- r.colSpan !== c && (r.colSpan = c, me.current = !0);
766
- }, []), H = g(() => {
767
- const e = R.current;
768
- if (!e || !Ee.current.startsWith("resourceTimeGrid")) return;
769
- const t = M.current;
770
- !t.active && !me.current || (e.querySelectorAll(
776
+ const a = t.hiddenCountByDate.get(i) ?? 0, l = Math.max(1, t.resourceCount - a);
777
+ r.colSpan !== l && (r.colSpan = l, ge.current = !0);
778
+ }, []), $ = h(() => {
779
+ const e = k.current;
780
+ if (!e || !Le.current.startsWith("resourceTimeGrid")) return;
781
+ const t = L.current;
782
+ !t.active && !ge.current || (e.querySelectorAll(
771
783
  "th.fc-col-header-cell.fc-day[data-date]"
772
784
  ).forEach((r) => {
773
785
  const i = r.getAttribute("data-date");
774
786
  if (!i) return;
775
- const a = t.active ? t.hiddenCountByDate.get(i) ?? 0 : 0, c = Math.max(1, t.resourceCount - a);
776
- r.colSpan !== c && (r.colSpan = c);
777
- }), me.current = t.active);
787
+ const a = t.active ? t.hiddenCountByDate.get(i) ?? 0 : 0, l = Math.max(1, t.resourceCount - a);
788
+ r.colSpan !== l && (r.colSpan = l);
789
+ }), ge.current = t.active);
790
+ }, []), K = h(() => {
791
+ const e = k.current;
792
+ if (!e) return;
793
+ const t = pe.current;
794
+ t.size === 0 && !ve.current || (e.querySelectorAll("td.fc-day[data-date]").forEach((r) => {
795
+ const i = r.getAttribute("data-date");
796
+ i && t.has(i) ? r.setAttribute("aria-busy", "true") : r.removeAttribute("aria-busy");
797
+ }), ve.current = t.size > 0);
798
+ }, []), Rt = h((e) => {
799
+ pe.current.has(F(e.date)) && (e.el.setAttribute("aria-busy", "true"), ve.current = !0);
778
800
  }, []);
779
801
  v(() => {
780
- }, [s, ne]);
781
- const B = (e) => {
802
+ }, [s, se]);
803
+ const O = (e) => {
782
804
  const t = e.extendedProps ?? {};
783
805
  return {
784
806
  id: e.id,
@@ -807,97 +829,98 @@ const Fe = Le(
807
829
  patientId: t.patientId,
808
830
  operatorId: t.operatorId
809
831
  };
810
- }, Ct = u(() => {
811
- if (h)
832
+ }, Et = u(() => {
833
+ if (g)
812
834
  return (e) => {
813
835
  var r, i;
814
836
  if (!e.event.start) return;
815
837
  const t = e.oldEvent.start;
816
- if (t && (h({
817
- event: B(e.event),
838
+ if (t && (g({
839
+ event: O(e.event),
818
840
  oldStart: t,
819
841
  newStart: e.event.start,
820
842
  oldResourceId: (r = e.oldResource) == null ? void 0 : r.id,
821
843
  newResourceId: (i = e.newResource) == null ? void 0 : i.id,
822
844
  revert: e.revert
823
- }), C.current)) {
824
- const a = e.event.extendedProps ?? {}, c = y ? a.privacyModeTitle ?? "•••" : e.event.title;
825
- C.current.textContent = m("calendar.eventMoved", {
826
- title: c
845
+ }), w.current)) {
846
+ const a = e.event.extendedProps ?? {}, l = y ? a.privacyModeTitle ?? "•••" : e.event.title;
847
+ w.current.textContent = m("calendar.eventMoved", {
848
+ title: l
827
849
  });
828
850
  }
829
851
  };
830
- }, [h, y, m]), kt = u(() => {
831
- if (k)
852
+ }, [g, y, m]), Pt = u(() => {
853
+ if (A)
832
854
  return (e) => {
833
855
  if (!e.event.end) return;
834
856
  const t = e.oldEvent.end;
835
857
  if (!t)
836
858
  return;
837
859
  const r = e.event.end, i = e.event.start ?? e.oldEvent.start ?? t;
838
- if (k({
839
- event: B(e.event),
860
+ if (A({
861
+ event: O(e.event),
840
862
  oldEnd: t,
841
863
  newEnd: r,
842
864
  revert: e.revert
843
- }), C.current) {
865
+ }), w.current) {
844
866
  const a = Math.round(
845
867
  (r.getTime() - i.getTime()) / 6e4
846
- ), c = e.event.extendedProps ?? {}, b = y ? c.privacyModeTitle ?? "•••" : e.event.title;
847
- C.current.textContent = m("calendar.eventResized", {
868
+ ), l = e.event.extendedProps ?? {}, b = y ? l.privacyModeTitle ?? "•••" : e.event.title;
869
+ w.current.textContent = m("calendar.eventResized", {
848
870
  title: b,
849
871
  duration: a
850
872
  });
851
873
  }
852
874
  };
853
- }, [k, y, m]), It = u(() => {
854
- if (x)
875
+ }, [A, y, m]), Nt = u(() => {
876
+ if (D)
855
877
  return (e) => {
856
- e.event.start && (Ae.current = e.jsEvent, x(B(e.event), {
878
+ !e.event.start || (e.event.extendedProps ?? {}).detailsPending || (Ge.current = e.jsEvent, D(O(e.event), {
857
879
  el: e.el,
858
880
  jsEvent: e.jsEvent
859
881
  }));
860
882
  };
861
- }, [x]), At = u(() => {
862
- if (L)
883
+ }, [D]), Gt = u(() => {
884
+ if (W)
863
885
  return (e) => {
864
- var t;
865
- e.event.start && e.event.display !== "background" && ((t = e.event.extendedProps) != null && t.isDraft || L(B(e.event), {
886
+ if (!e.event.start || e.event.display === "background") return;
887
+ const t = e.event.extendedProps ?? {};
888
+ t.isDraft || t.detailsPending || W(O(e.event), {
866
889
  el: e.el,
867
890
  jsEvent: e.jsEvent
868
- }));
891
+ });
869
892
  };
870
- }, [L]), Rt = u(() => {
871
- if (W)
893
+ }, [W]), Mt = u(() => {
894
+ if (j)
872
895
  return (e) => {
873
- e.event.start && e.event.display !== "background" && W(B(e.event));
896
+ e.event.start && e.event.display !== "background" && j(O(e.event));
874
897
  };
875
- }, [W]), St = u(() => {
876
- if (F)
898
+ }, [j]), Bt = u(() => {
899
+ if (_)
877
900
  return (e) => {
878
901
  var t;
879
- F({
902
+ _({
880
903
  start: e.start,
881
904
  end: e.end,
882
905
  allDay: e.allDay,
883
906
  resourceId: (t = e.resource) == null ? void 0 : t.id
884
907
  });
885
908
  };
886
- }, [F]), Et = u(() => {
887
- if (D)
909
+ }, [_]), Lt = u(() => {
910
+ if (x)
888
911
  return (e) => {
889
912
  var r;
890
- const t = te.current.id;
891
- t !== 0 && Se.current === t || (t !== 0 && (Re.current = t), D({
913
+ const t = ie.current.id;
914
+ t !== 0 && Be.current === t || (t !== 0 && (Me.current = t), x({
892
915
  date: e.date,
893
916
  allDay: e.allDay,
894
917
  resourceId: (r = e.resource) == null ? void 0 : r.id
895
918
  }));
896
919
  };
897
- }, [D]), Nt = g(
920
+ }, [x]), Ot = h(
898
921
  (e) => {
899
- ut(e.view.title), mt(e.view.type), A == null || A({
900
- view: d,
922
+ ht(e.view.title), gt(e.view.type), S == null || S({
923
+ view: c,
901
924
  internalView: e.view.type,
902
925
  start: e.start,
903
926
  end: e.end,
@@ -905,105 +928,105 @@ const Fe = Le(
905
928
  tick, which fires before fcRef is guaranteed to be assigned. */
906
929
  currentDate: e.view.calendar.getDate(),
907
930
  title: e.view.title
908
- }), H();
931
+ }), $(), K();
909
932
  },
910
- [A, d, H]
911
- ), Pt = u(() => gr(S), [S]), Gt = u(
933
+ [S, c, $, K]
934
+ ), Ft = u(() => wr(R), [R]), zt = u(
912
935
  () => [
913
- Ut,
914
- Yt,
915
- Xt,
936
+ er,
916
937
  tr,
917
- Jt,
918
- Zt,
919
- Qt,
920
- er
938
+ rr,
939
+ or,
940
+ nr,
941
+ ir,
942
+ ar,
943
+ sr
921
944
  ],
922
945
  []
923
- ), Mt = u(
924
- () => pe(d, z),
925
- [d, z]
946
+ ), Wt = u(
947
+ () => Te(c, V),
948
+ [c, V]
926
949
  );
927
950
  v(() => {
928
- const e = R.current;
951
+ const e = k.current;
929
952
  if (!e) return;
930
953
  const t = (r) => {
931
- te.current = {
932
- id: te.current.id + 1,
954
+ ie.current = {
955
+ id: ie.current.id + 1,
933
956
  x: r.clientX,
934
957
  y: r.clientY
935
958
  };
936
959
  };
937
960
  return e.addEventListener("pointerdown", t, !0), () => e.removeEventListener("pointerdown", t, !0);
938
961
  }, []), v(() => {
939
- const e = R.current;
940
- if (!e || !V.startsWith("resourceTimeGrid") || !D && !x) return;
962
+ const e = k.current;
963
+ if (!e || !B.startsWith("resourceTimeGrid") || !x && !D) return;
941
964
  const t = (r) => {
942
- var K;
943
- if (r === Ae.current) return;
965
+ var X;
966
+ if (r === Ge.current) return;
944
967
  const i = r.target;
945
968
  if (!(i instanceof Element) || i.closest(
946
969
  ".fc-more-link, a[data-navlink], .fc-popover, .fc-event-mirror"
947
970
  ))
948
971
  return;
949
- const a = te.current;
950
- if (a.id !== 0 && (Math.abs(r.clientX - a.x) > ve || Math.abs(r.clientY - a.y) > ve))
972
+ const a = ie.current;
973
+ if (a.id !== 0 && (Math.abs(r.clientX - a.x) > De || Math.abs(r.clientY - a.y) > De))
951
974
  return;
952
- const c = i.closest("td.fc-daygrid-day[data-date]");
953
- if (!c) return;
975
+ const l = i.closest("td.fc-daygrid-day[data-date]");
976
+ if (!l) return;
954
977
  const b = i.closest("[data-event-id]");
955
978
  if (b) {
956
- if (!x) return;
957
- const U = b.getAttribute("data-event-id"), fe = (K = w.current) == null ? void 0 : K.getApi(), ie = U ? fe == null ? void 0 : fe.getEventById(U) : null;
958
- if (!ie || !ie.start) return;
959
- const Me = ie.extendedProps ?? {};
960
- if (Me.isInternal || Me.isDraft) return;
961
- const qt = i.closest(".fc-event") ?? b;
962
- x(B(ie), { el: qt, jsEvent: r });
979
+ if (!D) return;
980
+ const J = b.getAttribute("data-event-id"), ye = (X = C.current) == null ? void 0 : X.getApi(), oe = J ? ye == null ? void 0 : ye.getEventById(J) : null;
981
+ if (!oe || !oe.start) return;
982
+ const be = oe.extendedProps ?? {};
983
+ if (be.isInternal || be.isDraft || be.detailsPending) return;
984
+ const Jt = i.closest(".fc-event") ?? b;
985
+ D(O(oe), { el: Jt, jsEvent: r });
963
986
  return;
964
987
  }
965
- if (!D || a.id !== 0 && Re.current === a.id)
988
+ if (!x || a.id !== 0 && Me.current === a.id)
966
989
  return;
967
- const q = c.getAttribute("data-date");
968
- if (!q) return;
969
- const $ = /* @__PURE__ */ new Date(`${q}T00:00:00`);
970
- Number.isNaN($.getTime()) || (a.id !== 0 && (Se.current = a.id), D({
971
- date: $,
990
+ const U = l.getAttribute("data-date");
991
+ if (!U) return;
992
+ const Y = /* @__PURE__ */ new Date(`${U}T00:00:00`);
993
+ Number.isNaN(Y.getTime()) || (a.id !== 0 && (Be.current = a.id), x({
994
+ date: Y,
972
995
  allDay: !0,
973
- resourceId: c.getAttribute("data-resource-id") ?? void 0
996
+ resourceId: l.getAttribute("data-resource-id") ?? void 0
974
997
  }));
975
998
  };
976
999
  return e.addEventListener("click", t), () => e.removeEventListener("click", t);
977
- }, [V, D, x]);
978
- const Bt = g(
1000
+ }, [B, x, D]);
1001
+ const jt = h(
979
1002
  (e) => {
980
- const t = e.resource.extendedProps, r = e.resource.title, i = t.color, a = t.shortTitleTextColor, c = i || a ? {
1003
+ const t = e.resource.extendedProps, r = e.resource.title, i = t.color, a = t.shortTitleTextColor, l = i || a ? {
981
1004
  ...i ? { "--resource-color": i } : {},
982
1005
  ...a ? {
983
1006
  "--resource-initials-text-color": a
984
1007
  } : {}
985
1008
  } : void 0;
986
- return ke === "chip" && !de ? /* @__PURE__ */ l(
987
- or,
1009
+ return Pe === "chip" && !ue ? /* @__PURE__ */ d(
1010
+ fr,
988
1011
  {
989
1012
  label: r,
990
1013
  color: i,
991
- orientation: ce ? "vertical" : "horizontal"
1014
+ orientation: me ? "vertical" : "horizontal"
992
1015
  }
993
- ) : de ? /* @__PURE__ */ l(dr, { label: r, children: /* @__PURE__ */ l(sr, { size: "sm", name: r, src: t.avatarSrc }) }) : i ? (i && a && ir(i, a, `resource ${e.resource.id}`), /* @__PURE__ */ E("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
994
- /* @__PURE__ */ l(
1016
+ ) : ue ? /* @__PURE__ */ d(pr, { label: r, children: /* @__PURE__ */ d(mr, { size: "sm", name: r, src: t.avatarSrc }) }) : i ? (i && a && lr(i, a, `resource ${e.resource.id}`), /* @__PURE__ */ P("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1017
+ /* @__PURE__ */ d(
995
1018
  "span",
996
1019
  {
997
1020
  className: "resource-dot ds:[background-color:var(--resource-color)]",
998
- style: c,
1021
+ style: l,
999
1022
  "aria-hidden": "true"
1000
1023
  }
1001
1024
  ),
1002
- /* @__PURE__ */ l("span", { className: "ds:truncate ds:text-start", children: r })
1003
- ] })) : /* @__PURE__ */ l("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ l("span", { className: "ds:truncate ds:text-start", children: r }) });
1025
+ /* @__PURE__ */ d("span", { className: "ds:truncate ds:text-start", children: r })
1026
+ ] })) : /* @__PURE__ */ d("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ d("span", { className: "ds:truncate ds:text-start", children: r }) });
1004
1027
  },
1005
- [de, ke, ce]
1006
- ), Ge = u(
1028
+ [ue, Pe, me]
1029
+ ), ze = u(
1007
1030
  () => o == null ? void 0 : o.map((e) => ({
1008
1031
  id: e.id,
1009
1032
  title: e.title,
@@ -1019,30 +1042,34 @@ const Fe = Le(
1019
1042
  [o]
1020
1043
  );
1021
1044
  v(() => {
1022
- H();
1023
- const e = requestAnimationFrame(H);
1045
+ $();
1046
+ const e = requestAnimationFrame($);
1024
1047
  return () => cancelAnimationFrame(e);
1025
- }, [ne, Ge, V, H]);
1026
- const Ot = g(() => {
1048
+ }, [se, ze, B, $]), v(() => {
1049
+ K();
1050
+ const e = requestAnimationFrame(K);
1051
+ return () => cancelAnimationFrame(e);
1052
+ }, [E, B, K]);
1053
+ const _t = h(() => {
1027
1054
  var e, t;
1028
- (t = (e = w.current) == null ? void 0 : e.getApi()) == null || t.today();
1029
- }, []), Lt = g(() => {
1055
+ (t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.today();
1056
+ }, []), Vt = h(() => {
1030
1057
  var e, t;
1031
- (t = (e = w.current) == null ? void 0 : e.getApi()) == null || t.prev();
1032
- }, []), Wt = g(() => {
1058
+ (t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.prev();
1059
+ }, []), Ht = h(() => {
1033
1060
  var e, t;
1034
- (t = (e = w.current) == null ? void 0 : e.getApi()) == null || t.next();
1035
- }, []), Ft = u(
1061
+ (t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.next();
1062
+ }, []), qt = u(
1036
1063
  () => s.some((e) => e.isDraft),
1037
1064
  [s]
1038
- ), zt = [
1065
+ ), $t = [
1039
1066
  "fc-theme-alfadocs",
1040
- st ? "calendar-zebra-rows" : null,
1041
- ce ? "calendar-vertical-resource-labels" : null,
1042
- it ? "calendar-availability-mode" : null,
1067
+ ut ? "calendar-zebra-rows" : null,
1068
+ me ? "calendar-vertical-resource-labels" : null,
1069
+ ct ? "calendar-availability-mode" : null,
1043
1070
  /* Composing: derived from the events themselves rather than a prop,
1044
1071
  so the dim can never disagree with what is on the grid. */
1045
- Ft ? "calendar-composing-mode" : null,
1072
+ qt ? "calendar-composing-mode" : null,
1046
1073
  "ds:bg-background ds:text-foreground",
1047
1074
  /* The radius has to CLIP, not just round the box. FullCalendar draws the
1048
1075
  grid as a table with its own border, and that border squares off the
@@ -1059,11 +1086,11 @@ const Fe = Le(
1059
1086
  box, so the bridge zeroes FullCalendar's outer borders and this
1060
1087
  border follows the radius instead. */
1061
1088
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:overflow-clip",
1062
- Ve
1063
- ].filter(Boolean).join(" "), jt = Q || ee ? {
1064
- ...Q ? { "--calendar-mode-bg": Q } : {},
1065
- ...ee ? { "--calendar-mode-fg": ee } : {}
1066
- } : void 0, _t = Z !== "default" ? qe ?? m(hr[Z]) : "", Vt = [
1089
+ Ue
1090
+ ].filter(Boolean).join(" "), Kt = re || ne ? {
1091
+ ...re ? { "--calendar-mode-bg": re } : {},
1092
+ ...ne ? { "--calendar-mode-fg": ne } : {}
1093
+ } : void 0, Ut = te !== "default" ? Xe ?? m(Cr[te]) : "", Yt = [
1067
1094
  "ds:sticky ds:top-0 ds:z-10",
1068
1095
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1069
1096
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
@@ -1071,9 +1098,9 @@ const Fe = Le(
1071
1098
  /* Caller-supplied colours flow through CSS custom properties set
1072
1099
  in `modeBannerStyle`; fallback tokens apply when the caller
1073
1100
  doesn't supply a hex. */
1074
- Q ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
1075
- ee ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
1076
- ].filter(Boolean).join(" "), Ht = [
1101
+ re ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
1102
+ ne ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
1103
+ ].filter(Boolean).join(" "), Xt = [
1077
1104
  "ds:inline-flex ds:items-center ds:justify-center",
1078
1105
  "ds:min-h-[var(--min-target-size)]",
1079
1106
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
@@ -1088,143 +1115,144 @@ const Fe = Le(
1088
1115
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1089
1116
  "ds:motion-reduce:transition-none"
1090
1117
  ].join(" ");
1091
- return /* @__PURE__ */ E(
1118
+ return /* @__PURE__ */ P(
1092
1119
  "div",
1093
1120
  {
1094
- ref: R,
1095
- className: zt,
1121
+ ref: k,
1122
+ className: $t,
1096
1123
  role: "region",
1097
1124
  "aria-label": m("calendar.ariaLabel"),
1098
1125
  "data-component": "calendar",
1099
1126
  "data-component-id": n,
1100
- "data-mode": Z,
1127
+ "data-mode": te,
1101
1128
  children: [
1102
- /* @__PURE__ */ l(
1129
+ /* @__PURE__ */ d(
1103
1130
  "div",
1104
1131
  {
1105
- ref: C,
1132
+ ref: w,
1106
1133
  "aria-live": "polite",
1107
1134
  "aria-atomic": "true",
1108
1135
  className: ["ds:sr-only", N].filter(Boolean).join(" ")
1109
1136
  }
1110
1137
  ),
1111
- $e,
1112
- Z !== "default" ? /* @__PURE__ */ E(
1138
+ Je,
1139
+ te !== "default" ? /* @__PURE__ */ P(
1113
1140
  "div",
1114
1141
  {
1115
- className: Vt,
1116
- style: jt,
1142
+ className: Yt,
1143
+ style: Kt,
1117
1144
  role: "status",
1118
1145
  children: [
1119
- /* @__PURE__ */ l(
1146
+ /* @__PURE__ */ d(
1120
1147
  "span",
1121
1148
  {
1122
1149
  className: ["ds:flex-1 ds:text-start", N].filter(Boolean).join(" "),
1123
- children: _t
1150
+ children: Ut
1124
1151
  }
1125
1152
  ),
1126
- De ? /* @__PURE__ */ l(
1153
+ Ie ? /* @__PURE__ */ d(
1127
1154
  "button",
1128
1155
  {
1129
1156
  type: "button",
1130
- onClick: De,
1131
- className: Ht,
1157
+ onClick: Ie,
1158
+ className: Xt,
1132
1159
  children: m("calendar.modeBanner.cancel")
1133
1160
  }
1134
1161
  ) : null
1135
1162
  ]
1136
1163
  }
1137
1164
  ) : null,
1138
- rt !== !1 ? /* @__PURE__ */ l(
1139
- be,
1165
+ ot !== !1 ? /* @__PURE__ */ d(
1166
+ we,
1140
1167
  {
1141
- title: lt,
1142
- onToday: Ot,
1143
- onPrev: Lt,
1144
- onNext: Wt,
1145
- end: nt,
1168
+ title: vt,
1169
+ onToday: _t,
1170
+ onPrev: Vt,
1171
+ onNext: Ht,
1172
+ end: dt,
1146
1173
  maskClassName: N
1147
1174
  }
1148
1175
  ) : null,
1149
- /* @__PURE__ */ l(
1150
- Kt,
1176
+ /* @__PURE__ */ d(
1177
+ Qt,
1151
1178
  {
1152
- ref: w,
1153
- plugins: Gt,
1154
- schedulerLicenseKey: tt,
1155
- initialView: Mt,
1156
- views: vr,
1179
+ ref: C,
1180
+ plugins: zt,
1181
+ schedulerLicenseKey: st,
1182
+ initialView: Wt,
1183
+ views: xr,
1157
1184
  initialDate: f,
1158
- locale: S,
1159
- direction: dt,
1160
- firstDay: Pt,
1161
- editable: J,
1162
- eventDurationEditable: J === !1 ? !1 : ze ?? J,
1163
- selectable: Te,
1164
- selectMirror: je ?? Te,
1165
- ...xe === void 0 ? {} : { unselectAuto: xe },
1166
- droppable: J,
1167
- dayMaxEvents: et,
1168
- height: _e,
1185
+ locale: R,
1186
+ direction: ft,
1187
+ firstDay: Ft,
1188
+ editable: ee,
1189
+ eventDurationEditable: ee === !1 ? !1 : qe ?? ee,
1190
+ selectable: Ae,
1191
+ selectMirror: $e ?? Ae,
1192
+ ...ke === void 0 ? {} : { unselectAuto: ke },
1193
+ droppable: ee,
1194
+ dayMaxEvents: at,
1195
+ height: Ke,
1169
1196
  expandRows: !0,
1170
- events: ft,
1171
- resources: Ge,
1197
+ events: yt,
1198
+ resources: ze,
1172
1199
  resourceOrder: "sequenceNumber",
1173
- resourceLabelContent: Bt,
1174
- resourceAreaWidth: at,
1175
- resourceAreaHeaderContent: bt,
1176
- dayCellClassNames: Tt,
1177
- dayHeaderClassNames: Dt,
1178
- resourceLabelClassNames: xt,
1179
- dayHeaderDidMount: wt,
1180
- ...ue ? { slotLaneClassNames: ue } : {},
1200
+ resourceLabelContent: jt,
1201
+ resourceAreaWidth: lt,
1202
+ resourceAreaHeaderContent: wt,
1203
+ dayCellClassNames: At,
1204
+ dayCellDidMount: Rt,
1205
+ dayHeaderClassNames: It,
1206
+ resourceLabelClassNames: kt,
1207
+ dayHeaderDidMount: St,
1208
+ ...he ? { slotLaneClassNames: he } : {},
1181
1209
  eventClassNames: (e) => {
1182
1210
  var t;
1183
1211
  return [
1184
- ...ue ?? [],
1185
- ...Ie && e.event.id === Ie ? ["calendar-event-selected"] : [],
1212
+ ...he ?? [],
1213
+ ...Ne && e.event.id === Ne ? ["calendar-event-selected"] : [],
1186
1214
  ...(t = e.event.extendedProps) != null && t.isDraft ? ["calendar-event-draft"] : []
1187
1215
  ];
1188
1216
  },
1189
1217
  headerToolbar: !1,
1190
1218
  allDayText: m("calendar.allDay"),
1191
1219
  noEventsText: m("calendar.noEvents"),
1192
- titleFormat: pt,
1193
- dayHeaderFormat: vt,
1194
- dayHeaderContent: yt,
1195
- eventTimeFormat: ht,
1196
- slotLabelFormat: gt,
1197
- slotMinTime: Ke ?? "00:00:00",
1198
- slotMaxTime: Ue ?? "24:00:00",
1199
- slotDuration: Ye ?? "00:30:00",
1200
- ...Ce ? { snapDuration: Ce } : {},
1220
+ titleFormat: bt,
1221
+ dayHeaderFormat: Tt,
1222
+ dayHeaderContent: Ct,
1223
+ eventTimeFormat: Dt,
1224
+ slotLabelFormat: xt,
1225
+ slotMinTime: Ze ?? "00:00:00",
1226
+ slotMaxTime: Qe ?? "24:00:00",
1227
+ slotDuration: et ?? "00:30:00",
1228
+ ...Ee ? { snapDuration: Ee } : {},
1201
1229
  slotLabelInterval: "01:00:00",
1202
- ...Pe !== void 0 ? { defaultTimedEventDuration: Pe } : {},
1203
- hiddenDays: we,
1204
- datesAboveResources: oe,
1205
- slotEventOverlap: Je,
1206
- stickyHeaderDates: Ze,
1207
- nowIndicator: Qe,
1208
- eventLongPressDelay: re ? 0 : 1e3,
1209
- eventDragMinDistance: re ? 0 : ve,
1230
+ ...Fe !== void 0 ? { defaultTimedEventDuration: Fe } : {},
1231
+ hiddenDays: Se,
1232
+ datesAboveResources: le,
1233
+ slotEventOverlap: rt,
1234
+ stickyHeaderDates: nt,
1235
+ nowIndicator: it,
1236
+ eventLongPressDelay: ae ? 0 : 1e3,
1237
+ eventDragMinDistance: ae ? 0 : De,
1210
1238
  eventContent: (e) => {
1211
1239
  var r;
1212
1240
  const t = e.event.extendedProps ?? {};
1213
- return t.isInternal ? e.event.title ? /* @__PURE__ */ E("span", { className: "calendar-bg-event-label", children: [
1214
- /* @__PURE__ */ l(cr, { size: 12, "aria-hidden": "true" }),
1241
+ return t.isInternal ? e.event.title ? /* @__PURE__ */ P("span", { className: "calendar-bg-event-label", children: [
1242
+ /* @__PURE__ */ d(hr, { size: 12, "aria-hidden": "true" }),
1215
1243
  e.event.title
1216
- ] }) : !0 : /* @__PURE__ */ l(
1217
- ar,
1244
+ ] }) : !0 : /* @__PURE__ */ d(
1245
+ ur,
1218
1246
  {
1219
1247
  eventId: e.event.id,
1220
1248
  title: y ? t.privacyModeTitle ?? "•••" : e.event.title,
1221
1249
  privacyMasked: y,
1222
1250
  suffix: t.suffix,
1223
- rangeText: Tr(e, S),
1224
- showTime: Xe,
1251
+ rangeText: Sr(e, R),
1252
+ showTime: tt,
1225
1253
  allDay: e.event.allDay,
1226
1254
  status: t.status,
1227
- colorStyle: He,
1255
+ colorStyle: Ye,
1228
1256
  backgroundColor: t.backgroundColor,
1229
1257
  textColor: t.textColor,
1230
1258
  borderColor: t.borderColor,
@@ -1236,23 +1264,24 @@ const Fe = Le(
1236
1264
  isRecurring: t.isRecurring,
1237
1265
  isTask: t.isTask,
1238
1266
  isDraft: t.isDraft,
1267
+ detailsPending: t.detailsPending,
1239
1268
  resourceLabel: t.resourceId ? (r = (o ?? []).find((i) => i.id === t.resourceId)) == null ? void 0 : r.title : void 0
1240
1269
  }
1241
1270
  );
1242
1271
  },
1243
- eventClick: It,
1244
- eventMouseEnter: At,
1245
- eventMouseLeave: Rt,
1246
- eventDrop: Ct,
1247
- eventResize: kt,
1248
- eventDragStart: O,
1249
- eventResizeStart: Y,
1250
- select: St,
1251
- dateClick: Et,
1252
- datesSet: Nt,
1253
- ...X ? {
1272
+ eventClick: Nt,
1273
+ eventMouseEnter: Gt,
1274
+ eventMouseLeave: Mt,
1275
+ eventDrop: Et,
1276
+ eventResize: Pt,
1277
+ eventDragStart: z,
1278
+ eventResizeStart: Z,
1279
+ select: Bt,
1280
+ dateClick: Lt,
1281
+ datesSet: Ot,
1282
+ ...Q ? {
1254
1283
  navLinks: !0,
1255
- navLinkDayClick: (e, t) => X(e, t)
1284
+ navLinkDayClick: (e, t) => Q(e, t)
1256
1285
  } : {}
1257
1286
  }
1258
1287
  )
@@ -1261,12 +1290,12 @@ const Fe = Le(
1261
1290
  );
1262
1291
  }
1263
1292
  );
1264
- Fe.displayName = "Calendar";
1265
- const wr = Fe;
1266
- wr.Toolbar = be;
1293
+ He.displayName = "Calendar";
1294
+ const Pr = He;
1295
+ Pr.Toolbar = we;
1267
1296
  export {
1268
- wr as C,
1269
- lr as c,
1270
- pe as r
1297
+ Pr as C,
1298
+ gr as c,
1299
+ Te as r
1271
1300
  };
1272
- //# sourceMappingURL=calendar-0d05p1It.js.map
1301
+ //# sourceMappingURL=calendar-K2lLzn4x.js.map