@alfadocs/ui-kit-debug 1.49.2 → 1.50.1

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