@alfadocs/ui-kit-debug 1.49.1 → 1.50.0

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 (136) 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/{booking-BF9pVa2n.js → booking-Cdzd8kyY.js} +1515 -1400
  4. package/dist/_chunks/booking-Cdzd8kyY.js.map +1 -0
  5. package/dist/_chunks/calendar-event-card-DplPh1wv.js +600 -0
  6. package/dist/_chunks/calendar-event-card-DplPh1wv.js.map +1 -0
  7. package/dist/_chunks/{calendar-workspace-iwyXajja.js → calendar-workspace-CWRH4x15.js} +3937 -3829
  8. package/dist/_chunks/calendar-workspace-CWRH4x15.js.map +1 -0
  9. package/dist/_chunks/{calendar-Bt44KMNO.js → calendar-zpE9qTM4.js} +437 -399
  10. package/dist/_chunks/calendar-zpE9qTM4.js.map +1 -0
  11. package/dist/agent-catalog.json +2 -2
  12. package/dist/agent-i18n/en.json +1 -1
  13. package/dist/components/appointment-peek/appointment-peek.d.ts +2 -0
  14. package/dist/components/appointment-peek/appointment-peek.d.ts.map +1 -1
  15. package/dist/components/appointment-peek/index.js +1 -1
  16. package/dist/components/booking/booking-types.d.ts +36 -0
  17. package/dist/components/booking/booking-types.d.ts.map +1 -1
  18. package/dist/components/booking/booking.d.ts +1 -1
  19. package/dist/components/booking/booking.d.ts.map +1 -1
  20. package/dist/components/booking/details-form.d.ts +8 -2
  21. package/dist/components/booking/details-form.d.ts.map +1 -1
  22. package/dist/components/booking/index.d.ts +1 -1
  23. package/dist/components/booking/index.d.ts.map +1 -1
  24. package/dist/components/booking/index.js +1 -1
  25. package/dist/components/booking/linkify.d.ts +11 -0
  26. package/dist/components/booking/linkify.d.ts.map +1 -0
  27. package/dist/components/calendar/calendar.d.ts +15 -0
  28. package/dist/components/calendar/calendar.d.ts.map +1 -1
  29. package/dist/components/calendar/index.js +1 -1
  30. package/dist/components/calendar-event-card/calendar-event-card.d.ts +46 -4
  31. package/dist/components/calendar-event-card/calendar-event-card.d.ts.map +1 -1
  32. package/dist/components/calendar-event-card/index.js +1 -1
  33. package/dist/i18n/locales/ar.d.ts +12 -0
  34. package/dist/i18n/locales/ar.d.ts.map +1 -1
  35. package/dist/i18n/locales/ar.js +12 -0
  36. package/dist/i18n/locales/ar.js.map +1 -1
  37. package/dist/i18n/locales/de.d.ts +12 -0
  38. package/dist/i18n/locales/de.d.ts.map +1 -1
  39. package/dist/i18n/locales/de.js +12 -0
  40. package/dist/i18n/locales/de.js.map +1 -1
  41. package/dist/i18n/locales/el.d.ts +12 -0
  42. package/dist/i18n/locales/el.d.ts.map +1 -1
  43. package/dist/i18n/locales/el.js +12 -0
  44. package/dist/i18n/locales/el.js.map +1 -1
  45. package/dist/i18n/locales/en.d.ts +12 -0
  46. package/dist/i18n/locales/en.d.ts.map +1 -1
  47. package/dist/i18n/locales/en.js +12 -0
  48. package/dist/i18n/locales/en.js.map +1 -1
  49. package/dist/i18n/locales/es.d.ts +12 -0
  50. package/dist/i18n/locales/es.d.ts.map +1 -1
  51. package/dist/i18n/locales/es.js +12 -0
  52. package/dist/i18n/locales/es.js.map +1 -1
  53. package/dist/i18n/locales/fr.d.ts +12 -0
  54. package/dist/i18n/locales/fr.d.ts.map +1 -1
  55. package/dist/i18n/locales/fr.js +12 -0
  56. package/dist/i18n/locales/fr.js.map +1 -1
  57. package/dist/i18n/locales/hi.d.ts +12 -0
  58. package/dist/i18n/locales/hi.d.ts.map +1 -1
  59. package/dist/i18n/locales/hi.js +12 -0
  60. package/dist/i18n/locales/hi.js.map +1 -1
  61. package/dist/i18n/locales/it.d.ts +12 -0
  62. package/dist/i18n/locales/it.d.ts.map +1 -1
  63. package/dist/i18n/locales/it.js +12 -0
  64. package/dist/i18n/locales/it.js.map +1 -1
  65. package/dist/i18n/locales/ja.d.ts +12 -0
  66. package/dist/i18n/locales/ja.d.ts.map +1 -1
  67. package/dist/i18n/locales/ja.js +12 -0
  68. package/dist/i18n/locales/ja.js.map +1 -1
  69. package/dist/i18n/locales/nl.d.ts +12 -0
  70. package/dist/i18n/locales/nl.d.ts.map +1 -1
  71. package/dist/i18n/locales/nl.js +12 -0
  72. package/dist/i18n/locales/nl.js.map +1 -1
  73. package/dist/i18n/locales/pl.d.ts +12 -0
  74. package/dist/i18n/locales/pl.d.ts.map +1 -1
  75. package/dist/i18n/locales/pl.js +12 -0
  76. package/dist/i18n/locales/pl.js.map +1 -1
  77. package/dist/i18n/locales/pt.d.ts +12 -0
  78. package/dist/i18n/locales/pt.d.ts.map +1 -1
  79. package/dist/i18n/locales/pt.js +12 -0
  80. package/dist/i18n/locales/pt.js.map +1 -1
  81. package/dist/i18n/locales/ro.d.ts +12 -0
  82. package/dist/i18n/locales/ro.d.ts.map +1 -1
  83. package/dist/i18n/locales/ro.js +12 -0
  84. package/dist/i18n/locales/ro.js.map +1 -1
  85. package/dist/i18n/locales/ru.d.ts +12 -0
  86. package/dist/i18n/locales/ru.d.ts.map +1 -1
  87. package/dist/i18n/locales/ru.js +12 -0
  88. package/dist/i18n/locales/ru.js.map +1 -1
  89. package/dist/i18n/locales/sq.d.ts +12 -0
  90. package/dist/i18n/locales/sq.d.ts.map +1 -1
  91. package/dist/i18n/locales/sq.js +12 -0
  92. package/dist/i18n/locales/sq.js.map +1 -1
  93. package/dist/i18n/locales/sv.d.ts +12 -0
  94. package/dist/i18n/locales/sv.d.ts.map +1 -1
  95. package/dist/i18n/locales/sv.js +12 -0
  96. package/dist/i18n/locales/sv.js.map +1 -1
  97. package/dist/i18n/locales/tr.d.ts +12 -0
  98. package/dist/i18n/locales/tr.d.ts.map +1 -1
  99. package/dist/i18n/locales/tr.js +12 -0
  100. package/dist/i18n/locales/tr.js.map +1 -1
  101. package/dist/i18n/locales/zh.d.ts +12 -0
  102. package/dist/i18n/locales/zh.d.ts.map +1 -1
  103. package/dist/i18n/locales/zh.js +12 -0
  104. package/dist/i18n/locales/zh.js.map +1 -1
  105. package/dist/index.js +5 -5
  106. package/dist/locales/ar.json +12 -0
  107. package/dist/locales/de.json +12 -0
  108. package/dist/locales/el.json +12 -0
  109. package/dist/locales/en.json +12 -0
  110. package/dist/locales/es.json +12 -0
  111. package/dist/locales/fr.json +12 -0
  112. package/dist/locales/hi.json +12 -0
  113. package/dist/locales/it.json +12 -0
  114. package/dist/locales/ja.json +12 -0
  115. package/dist/locales/nl.json +12 -0
  116. package/dist/locales/pl.json +12 -0
  117. package/dist/locales/pt.json +12 -0
  118. package/dist/locales/ro.json +12 -0
  119. package/dist/locales/ru.json +12 -0
  120. package/dist/locales/sq.json +12 -0
  121. package/dist/locales/sv.json +12 -0
  122. package/dist/locales/tr.json +12 -0
  123. package/dist/locales/zh.json +12 -0
  124. package/dist/patterns/calendar/calendar.model.d.ts +7 -1
  125. package/dist/patterns/calendar/calendar.model.d.ts.map +1 -1
  126. package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
  127. package/dist/patterns/calendar/index.js +1 -1
  128. package/dist/tokens.css +45 -42
  129. package/package.json +1 -1
  130. package/dist/_chunks/appointment-peek-BDiCIBb-.js +0 -115
  131. package/dist/_chunks/appointment-peek-BDiCIBb-.js.map +0 -1
  132. package/dist/_chunks/booking-BF9pVa2n.js.map +0 -1
  133. package/dist/_chunks/calendar-Bt44KMNO.js.map +0 -1
  134. package/dist/_chunks/calendar-event-card-BUbKBPv_.js +0 -403
  135. package/dist/_chunks/calendar-event-card-BUbKBPv_.js.map +0 -1
  136. 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 E, 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-DplPh1wv.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
+ }, Rr = [
216
224
  { weekday: "short", day: "numeric", month: "short" },
217
225
  { hour: "numeric", minute: "2-digit" }
218
- ], Ar = {
226
+ ], Er = {
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: Rr },
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, Nr = {
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: [
345
- /* @__PURE__ */ R("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
346
- /* @__PURE__ */ o(
370
+ ].filter(Boolean).join(" "), w = ["ds:flex-1 ds:text-center", y].filter(Boolean).join(" ");
371
+ return /* @__PURE__ */ E("div", { ref: I, className: _, children: [
372
+ /* @__PURE__ */ E("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
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
453
  loadingDates: Re,
426
- slotMinTime: rt,
427
- slotMaxTime: nt,
428
- slotDuration: it,
454
+ slotMinTime: at,
455
+ slotMaxTime: st,
456
+ slotDuration: ot,
429
457
  snapDuration: Ee,
430
- showTime: at = !0,
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
469
  resourceLabelVariant: Ne = "text",
442
- verticalResourceLabels: fe = !1,
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), R = 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 (R.current && (clearTimeout(R.current), R.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
+ R.current = setTimeout(() => {
622
+ a.classList.remove("calendar-event-focused"), O.current === a && (O.current = null), R.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
+ R.current && (clearTimeout(R.current), R.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,8 @@ 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,
657
687
  privacyModeTitle: e.privacyModeTitle,
658
688
  isBookedOnline: e.isBookedOnline ?? !1,
659
689
  hasUnassignedPatient: e.hasUnassignedPatient ?? !1,
@@ -672,24 +702,24 @@ const Ue = $e(
672
702
  }
673
703
  })),
674
704
  [s]
675
- ), Ct = u(
705
+ ), kt = u(
676
706
  () => ({
677
707
  year: "numeric",
678
708
  month: "long"
679
709
  }),
680
710
  []
681
- ), wt = u(
711
+ ), It = u(
682
712
  () => ({
683
713
  weekday: "short"
684
714
  }),
685
715
  []
686
- ), At = u(
716
+ ), St = u(
687
717
  () => ({
688
718
  hour: "numeric",
689
719
  minute: "2-digit"
690
720
  }),
691
721
  []
692
- ), kt = u(
722
+ ), Rt = u(
693
723
  () => ({
694
724
  hour: "2-digit",
695
725
  minute: "2-digit",
@@ -698,78 +728,78 @@ const Ue = $e(
698
728
  hour12: !1
699
729
  }),
700
730
  []
701
- ), E = u(
731
+ ), N = u(
702
732
  () => new Set(Re ?? []),
703
733
  [Re]
704
- ), pe = p(E);
705
- pe.current = E;
706
- const ve = p(!1), It = g(
734
+ ), pe = v(N);
735
+ pe.current = N;
736
+ const ve = v(!1), Et = g(
707
737
  (e) => {
708
- const t = new Intl.DateTimeFormat(S, {
738
+ const t = new Intl.DateTimeFormat(k, {
709
739
  weekday: "short"
710
740
  }).format(e.date);
711
741
  if (e.view.type === "dayGridMonth" || e.view.type.startsWith("list"))
712
742
  return t;
713
- const r = new Intl.DateTimeFormat(S, {
743
+ const r = new Intl.DateTimeFormat(k, {
714
744
  day: "numeric"
715
745
  }).format(e.date);
716
- 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(
746
+ return /* @__PURE__ */ E("span", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)]", children: [
747
+ /* @__PURE__ */ d("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: t }),
748
+ /* @__PURE__ */ d(
719
749
  "span",
720
750
  {
721
751
  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
752
  children: r
723
753
  }
724
754
  ),
725
- E.has(F(e.date)) ? /* @__PURE__ */ o(br, { children: f("calendar.loadingDay") }) : null
755
+ N.has(z(e.date)) ? /* @__PURE__ */ d(wr, { children: m("calendar.loadingDay") }) : null
726
756
  ] });
727
757
  },
728
- [S, E, f]
729
- ), ze = u(
730
- () => typeof q == "number" ? { minutes: q } : q,
731
- [q]
758
+ [k, N, m]
759
+ ), Fe = u(
760
+ () => typeof $ == "number" ? { minutes: $ } : $,
761
+ [$]
732
762
  ), he = u(
733
763
  () => B ? B.split(/\s+/).filter(Boolean) : void 0,
734
764
  [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(
765
+ ), Nt = u(() => {
766
+ if (q !== void 0)
767
+ return q === "chairs" ? m("calendar.resourceLabel.chairs") : q === "operators" ? m("calendar.resourceLabel.operators") : q;
768
+ }, [q, m]), se = u(
769
+ () => Gr(o, ce),
770
+ [o, ce]
771
+ ), W = v(se);
772
+ W.current = se;
773
+ const ge = v(!1), Pt = g(
744
774
  (e) => {
745
- const t = E.has(F(e.date)) ? [Sr] : [], r = z.current;
775
+ const t = N.has(z(e.date)) ? [Lr] : [], r = W.current;
746
776
  if (!r.active || !e.view.type.startsWith("resourceTimeGrid"))
747
777
  return t;
748
778
  const i = e.resource;
749
779
  return i != null && i.id && r.hiddenCells.has(
750
- `${i.id}:${F(e.date)}`
751
- ) ? [...t, De] : t;
780
+ `${i.id}:${z(e.date)}`
781
+ ) ? [...t, xe] : t;
752
782
  },
753
- [E]
754
- ), Et = g(
783
+ [N]
784
+ ), Lt = g(
755
785
  (e) => {
756
- const t = z.current;
786
+ const t = W.current;
757
787
  if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
758
788
  return [];
759
789
  const r = e.date ?? e.view.currentStart;
760
790
  return t.hiddenCells.has(
761
- `${e.resource.id}:${F(r)}`
762
- ) ? [De] : [];
791
+ `${e.resource.id}:${z(r)}`
792
+ ) ? [xe] : [];
763
793
  },
764
794
  []
765
- ), Nt = g(
795
+ ), Gt = g(
766
796
  (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] : [];
797
+ const t = W.current;
798
+ return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(z(e.date)) ?? 0) >= t.resourceCount ? [xe] : [];
769
799
  },
770
800
  []
771
- ), Pt = g((e) => {
772
- const t = z.current;
801
+ ), Bt = g((e) => {
802
+ const t = W.current;
773
803
  if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
774
804
  return;
775
805
  const r = e.el;
@@ -778,10 +808,10 @@ const Ue = $e(
778
808
  if (!i) return;
779
809
  const a = t.hiddenCountByDate.get(i) ?? 0, l = Math.max(1, t.resourceCount - a);
780
810
  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;
811
+ }, []), K = g(() => {
812
+ const e = S.current;
813
+ if (!e || !Me.current.startsWith("resourceTimeGrid")) return;
814
+ const t = W.current;
785
815
  !t.active && !ge.current || (e.querySelectorAll(
786
816
  "th.fc-col-header-cell.fc-day[data-date]"
787
817
  ).forEach((r) => {
@@ -790,20 +820,20 @@ const Ue = $e(
790
820
  const a = t.active ? t.hiddenCountByDate.get(i) ?? 0 : 0, l = Math.max(1, t.resourceCount - a);
791
821
  r.colSpan !== l && (r.colSpan = l);
792
822
  }), ge.current = t.active);
793
- }, []), K = g(() => {
794
- const e = k.current;
823
+ }, []), U = g(() => {
824
+ const e = S.current;
795
825
  if (!e) return;
796
826
  const t = pe.current;
797
827
  t.size === 0 && !ve.current || (e.querySelectorAll("td.fc-day[data-date]").forEach((r) => {
798
828
  const i = r.getAttribute("data-date");
799
829
  i && t.has(i) ? r.setAttribute("aria-busy", "true") : r.removeAttribute("aria-busy");
800
830
  }), 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);
831
+ }, []), Mt = g((e) => {
832
+ pe.current.has(z(e.date)) && (e.el.setAttribute("aria-busy", "true"), ve.current = !0);
803
833
  }, []);
804
834
  h(() => {
805
835
  }, [s, se]);
806
- const N = (e) => {
836
+ const P = (e) => {
807
837
  const t = e.extendedProps ?? {};
808
838
  return {
809
839
  id: e.id,
@@ -817,6 +847,8 @@ const Ue = $e(
817
847
  textColor: t.textColor,
818
848
  borderColor: t.borderColor,
819
849
  suffix: t.suffix,
850
+ shortTitle: t.shortTitle,
851
+ contextLabel: t.contextLabel,
820
852
  privacyModeTitle: t.privacyModeTitle,
821
853
  isBookedOnline: t.isBookedOnline,
822
854
  hasUnassignedPatient: t.hasUnassignedPatient,
@@ -834,97 +866,98 @@ const Ue = $e(
834
866
  operatorId: t.operatorId,
835
867
  optionCount: t.optionCount
836
868
  };
837
- }, Bt = u(() => {
869
+ }, Ot = u(() => {
838
870
  if (y)
839
871
  return (e) => {
840
- var r, i;
872
+ var r, i, a;
841
873
  if (!e.event.start) return;
842
874
  const t = e.oldEvent.start;
843
875
  if (t && (y({
844
- event: N(e.event),
876
+ event: P(e.event),
845
877
  oldStart: t,
846
878
  newStart: e.event.start,
847
879
  oldResourceId: (r = e.oldResource) == null ? void 0 : r.id,
848
880
  newResourceId: (i = e.newResource) == null ? void 0 : i.id,
849
881
  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
882
+ }), A.current)) {
883
+ const l = e.event.extendedProps ?? {}, p = b ? ((a = l.privacyModeTitle) == null ? void 0 : a.trim()) || "•••" : e.event.title;
884
+ A.current.textContent = m("calendar.eventMoved", {
885
+ title: p
854
886
  });
855
887
  }
856
888
  };
857
- }, [y, b, f]), Mt = u(() => {
858
- if (A)
889
+ }, [y, b, m]), Ft = u(() => {
890
+ if (I)
859
891
  return (e) => {
892
+ var a;
860
893
  if (!e.event.end) return;
861
894
  const t = e.oldEvent.end;
862
895
  if (!t)
863
896
  return;
864
897
  const r = e.event.end, i = e.event.start ?? e.oldEvent.start ?? t;
865
- if (A({
866
- event: N(e.event),
898
+ if (I({
899
+ event: P(e.event),
867
900
  oldEnd: t,
868
901
  newEnd: r,
869
902
  revert: e.revert
870
- }), w.current) {
871
- const a = Math.round(
903
+ }), A.current) {
904
+ const l = Math.round(
872
905
  (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
906
+ ), p = e.event.extendedProps ?? {}, T = b ? ((a = p.privacyModeTitle) == null ? void 0 : a.trim()) || "•••" : e.event.title;
907
+ A.current.textContent = m("calendar.eventResized", {
908
+ title: T,
909
+ duration: l
877
910
  });
878
911
  }
879
912
  };
880
- }, [A, b, f]), Lt = u(() => {
913
+ }, [I, b, m]), Wt = u(() => {
881
914
  if (D)
882
915
  return (e) => {
883
- e.event.start && (Ge.current = e.jsEvent, D(N(e.event), {
916
+ e.event.start && (Le.current = e.jsEvent, D(P(e.event), {
884
917
  el: e.el,
885
918
  jsEvent: e.jsEvent
886
919
  }));
887
920
  };
888
- }, [D]), Ot = u(() => {
889
- if (j)
921
+ }, [D]), zt = u(() => {
922
+ if (_)
890
923
  return (e) => {
891
924
  if (!e.event.start || e.event.display === "background") return;
892
925
  const t = e.event.extendedProps ?? {};
893
- t.isDraft || t.detailsPending || j(N(e.event), {
926
+ t.isDraft || t.detailsPending || _(P(e.event), {
894
927
  el: e.el,
895
928
  jsEvent: e.jsEvent
896
929
  });
897
930
  };
898
- }, [j]), zt = u(() => {
899
- if (_)
931
+ }, [_]), jt = u(() => {
932
+ if (V)
900
933
  return (e) => {
901
- e.event.start && e.event.display !== "background" && _(N(e.event));
934
+ e.event.start && e.event.display !== "background" && V(P(e.event));
902
935
  };
903
- }, [_]), Ft = u(() => {
904
- if (P)
936
+ }, [V]), _t = u(() => {
937
+ if (L)
905
938
  return (e) => {
906
939
  var t;
907
- P({
940
+ L({
908
941
  start: e.start,
909
942
  end: e.end,
910
943
  allDay: e.allDay,
911
944
  resourceId: (t = e.resource) == null ? void 0 : t.id
912
945
  });
913
946
  };
914
- }, [P]), Wt = u(() => {
915
- if (x)
947
+ }, [L]), Vt = u(() => {
948
+ if (w)
916
949
  return (e) => {
917
950
  var r;
918
951
  const t = ie.current.id;
919
- t !== 0 && Me.current === t || (t !== 0 && (Be.current = t), x({
952
+ t !== 0 && Be.current === t || (t !== 0 && (Ge.current = t), w({
920
953
  date: e.date,
921
954
  allDay: e.allDay,
922
955
  resourceId: (r = e.resource) == null ? void 0 : r.id
923
956
  }));
924
957
  };
925
- }, [x]), jt = g(
958
+ }, [w]), Ht = g(
926
959
  (e) => {
927
- Tt(e.view.title), Dt(e.view.type), G == null || G({
960
+ wt(e.view.title), Ct(e.view.type), G == null || G({
928
961
  view: c,
929
962
  internalView: e.view.type,
930
963
  start: e.start,
@@ -933,27 +966,27 @@ const Ue = $e(
933
966
  tick, which fires before fcRef is guaranteed to be assigned. */
934
967
  currentDate: e.view.calendar.getDate(),
935
968
  title: e.view.title
936
- }), $(), K();
969
+ }), K(), U();
937
970
  },
938
- [G, c, $, K]
939
- ), _t = u(() => Ir(S), [S]), Vt = u(
971
+ [G, c, K, U]
972
+ ), qt = u(() => Pr(k), [k]), $t = u(
940
973
  () => [
941
- ir,
942
- ar,
943
- sr,
944
- ur,
945
- or,
946
974
  dr,
947
975
  lr,
948
- cr
976
+ cr,
977
+ vr,
978
+ ur,
979
+ mr,
980
+ fr,
981
+ pr
949
982
  ],
950
983
  []
951
- ), Ht = u(
952
- () => be(c, V),
953
- [c, V]
984
+ ), Kt = u(
985
+ () => be(c, H),
986
+ [c, H]
954
987
  );
955
988
  h(() => {
956
- const e = k.current;
989
+ const e = S.current;
957
990
  if (!e) return;
958
991
  const t = (r) => {
959
992
  ie.current = {
@@ -964,11 +997,11 @@ const Ue = $e(
964
997
  };
965
998
  return e.addEventListener("pointerdown", t, !0), () => e.removeEventListener("pointerdown", t, !0);
966
999
  }, []), h(() => {
967
- const e = k.current;
968
- if (!e || !O.startsWith("resourceTimeGrid") || !x && !D) return;
1000
+ const e = S.current;
1001
+ if (!e || !F.startsWith("resourceTimeGrid") || !w && !D) return;
969
1002
  const t = (r) => {
970
1003
  var X;
971
- if (r === Ge.current) return;
1004
+ if (r === Le.current) return;
972
1005
  const i = r.target;
973
1006
  if (!(i instanceof Element) || i.closest(
974
1007
  ".fc-more-link, a[data-navlink], .fc-popover, .fc-event-mirror"
@@ -979,31 +1012,31 @@ const Ue = $e(
979
1012
  return;
980
1013
  const l = i.closest("td.fc-daygrid-day[data-date]");
981
1014
  if (!l) return;
982
- const v = i.closest("[data-event-id]");
983
- if (v) {
1015
+ const p = i.closest("[data-event-id]");
1016
+ if (p) {
984
1017
  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;
1018
+ 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
1019
  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 });
1020
+ const ze = oe.extendedProps ?? {};
1021
+ if (ze.isInternal || ze.isDraft) return;
1022
+ const ir = i.closest(".fc-event") ?? p;
1023
+ D(P(oe), { el: ir, jsEvent: r });
991
1024
  return;
992
1025
  }
993
- if (!x || a.id !== 0 && Be.current === a.id)
1026
+ if (!w || a.id !== 0 && Ge.current === a.id)
994
1027
  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({
1028
+ const T = l.getAttribute("data-date");
1029
+ if (!T) return;
1030
+ const Y = /* @__PURE__ */ new Date(`${T}T00:00:00`);
1031
+ Number.isNaN(Y.getTime()) || (a.id !== 0 && (Be.current = a.id), w({
999
1032
  date: Y,
1000
1033
  allDay: !0,
1001
1034
  resourceId: l.getAttribute("data-resource-id") ?? void 0
1002
1035
  }));
1003
1036
  };
1004
1037
  return e.addEventListener("click", t), () => e.removeEventListener("click", t);
1005
- }, [O, x, D]);
1006
- const qt = g(
1038
+ }, [F, w, D]);
1039
+ const Ut = g(
1007
1040
  (e) => {
1008
1041
  const t = e.resource.extendedProps, r = e.resource.title, i = t.color, a = t.shortTitleTextColor, l = i || a ? {
1009
1042
  ...i ? { "--resource-color": i } : {},
@@ -1011,15 +1044,15 @@ const Ue = $e(
1011
1044
  "--resource-initials-text-color": a
1012
1045
  } : {}
1013
1046
  } : void 0;
1014
- return Ne === "chip" && !ue ? /* @__PURE__ */ o(
1015
- yr,
1047
+ return Ne === "chip" && !ue ? /* @__PURE__ */ d(
1048
+ Dr,
1016
1049
  {
1017
1050
  label: r,
1018
1051
  color: i,
1019
- orientation: fe ? "vertical" : "horizontal"
1052
+ orientation: me ? "vertical" : "horizontal"
1020
1053
  }
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(
1054
+ ) : 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__ */ E("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1055
+ /* @__PURE__ */ d(
1023
1056
  "span",
1024
1057
  {
1025
1058
  className: "resource-dot ds:[background-color:var(--resource-color)]",
@@ -1027,12 +1060,12 @@ const Ue = $e(
1027
1060
  "aria-hidden": "true"
1028
1061
  }
1029
1062
  ),
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 }) });
1063
+ /* @__PURE__ */ d("span", { className: "ds:truncate ds:text-start", children: r })
1064
+ ] })) : /* @__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
1065
  },
1033
- [ue, Ne, fe]
1034
- ), Fe = u(
1035
- () => d == null ? void 0 : d.map((e) => ({
1066
+ [ue, Ne, me]
1067
+ ), We = u(
1068
+ () => o == null ? void 0 : o.map((e) => ({
1036
1069
  id: e.id,
1037
1070
  title: e.title,
1038
1071
  sequenceNumber: e.sequenceNumber,
@@ -1044,37 +1077,38 @@ const Ue = $e(
1044
1077
  sequenceNumber: e.sequenceNumber
1045
1078
  }
1046
1079
  })),
1047
- [d]
1080
+ [o]
1048
1081
  );
1049
1082
  h(() => {
1050
- $();
1051
- const e = requestAnimationFrame($);
1052
- return () => cancelAnimationFrame(e);
1053
- }, [se, Fe, O, $]), h(() => {
1054
1083
  K();
1055
1084
  const e = requestAnimationFrame(K);
1056
1085
  return () => cancelAnimationFrame(e);
1057
- }, [E, O, K]);
1058
- const $t = g(() => {
1086
+ }, [se, We, F, K]), h(() => {
1087
+ U();
1088
+ const e = requestAnimationFrame(U);
1089
+ return () => cancelAnimationFrame(e);
1090
+ }, [N, F, U]);
1091
+ const Yt = g(() => {
1059
1092
  var e, t;
1060
1093
  (t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.today();
1061
- }, []), Kt = g(() => {
1094
+ }, []), Xt = g(() => {
1062
1095
  var e, t;
1063
1096
  (t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.prev();
1064
- }, []), Ut = g(() => {
1097
+ }, []), Jt = g(() => {
1065
1098
  var e, t;
1066
1099
  (t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.next();
1067
- }, []), Yt = u(
1100
+ }, []), Zt = u(
1068
1101
  () => s.some((e) => e.isDraft),
1069
1102
  [s]
1070
- ), Xt = [
1103
+ ), Qt = [
1071
1104
  "fc-theme-alfadocs",
1072
- vt ? "calendar-zebra-rows" : null,
1073
- fe ? "calendar-vertical-resource-labels" : null,
1074
- mt ? "calendar-availability-mode" : null,
1105
+ Ar({ density: rt }),
1106
+ yt ? "calendar-zebra-rows" : null,
1107
+ me ? "calendar-vertical-resource-labels" : null,
1108
+ ht ? "calendar-availability-mode" : null,
1075
1109
  /* Composing: derived from the events themselves rather than a prop,
1076
1110
  so the dim can never disagree with what is on the grid. */
1077
- Yt ? "calendar-composing-mode" : null,
1111
+ Zt ? "calendar-composing-mode" : null,
1078
1112
  "ds:bg-background ds:text-foreground",
1079
1113
  /* The radius clips the table's square corners; the frame is this
1080
1114
  border, not FullCalendar's. `clip`, not `hidden`: a scroll container
@@ -1084,11 +1118,11 @@ const Ue = $e(
1084
1118
  which scrolls the date header away; FullCalendar's own value is
1085
1119
  visible. Important, as the host rule is unlayered. */
1086
1120
  "ds:[&_.fc-view]:!overflow-visible ds:[&_.fc-view>table]:!overflow-visible",
1087
- Ze
1088
- ].filter(Boolean).join(" "), Jt = re || ne ? {
1121
+ et
1122
+ ].filter(Boolean).join(" "), er = re || ne ? {
1089
1123
  ...re ? { "--calendar-mode-bg": re } : {},
1090
1124
  ...ne ? { "--calendar-mode-fg": ne } : {}
1091
- } : void 0, Zt = te !== "default" ? et ?? f(kr[te]) : "", Qt = [
1125
+ } : void 0, tr = te !== "default" ? nt ?? m(Nr[te]) : "", rr = [
1092
1126
  "ds:sticky ds:top-0 ds:z-10",
1093
1127
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1094
1128
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
@@ -1098,7 +1132,7 @@ const Ue = $e(
1098
1132
  doesn't supply a hex. */
1099
1133
  re ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
1100
1134
  ne ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
1101
- ].filter(Boolean).join(" "), er = [
1135
+ ].filter(Boolean).join(" "), nr = [
1102
1136
  "ds:inline-flex ds:items-center ds:justify-center",
1103
1137
  "ds:min-h-[var(--min-target-size)]",
1104
1138
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
@@ -1113,97 +1147,97 @@ const Ue = $e(
1113
1147
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1114
1148
  "ds:motion-reduce:transition-none"
1115
1149
  ].join(" ");
1116
- return /* @__PURE__ */ R(
1150
+ return /* @__PURE__ */ E(
1117
1151
  "div",
1118
1152
  {
1119
- ref: k,
1120
- className: Xt,
1153
+ ref: S,
1154
+ className: Qt,
1121
1155
  role: "region",
1122
- "aria-label": f("calendar.ariaLabel"),
1156
+ "aria-label": m("calendar.ariaLabel"),
1123
1157
  "data-component": "calendar",
1124
1158
  "data-component-id": n,
1125
1159
  "data-mode": te,
1126
1160
  children: [
1127
- /* @__PURE__ */ o(
1161
+ /* @__PURE__ */ d(
1128
1162
  "div",
1129
1163
  {
1130
- ref: w,
1164
+ ref: A,
1131
1165
  "aria-live": "polite",
1132
1166
  "aria-atomic": "true",
1133
1167
  className: ["ds:sr-only", B].filter(Boolean).join(" ")
1134
1168
  }
1135
1169
  ),
1136
- tt,
1137
- te !== "default" ? /* @__PURE__ */ R(
1170
+ it,
1171
+ te !== "default" ? /* @__PURE__ */ E(
1138
1172
  "div",
1139
1173
  {
1140
- className: Qt,
1141
- style: Jt,
1174
+ className: rr,
1175
+ style: er,
1142
1176
  role: "status",
1143
1177
  "data-calendar-mode-banner": "",
1144
1178
  children: [
1145
- /* @__PURE__ */ o(
1179
+ /* @__PURE__ */ d(
1146
1180
  "span",
1147
1181
  {
1148
1182
  className: ["ds:flex-1 ds:text-start", B].filter(Boolean).join(" "),
1149
- children: Zt
1183
+ children: tr
1150
1184
  }
1151
1185
  ),
1152
- Ie ? /* @__PURE__ */ o(
1186
+ Ie ? /* @__PURE__ */ d(
1153
1187
  "button",
1154
1188
  {
1155
1189
  type: "button",
1156
1190
  onClick: Ie,
1157
- className: er,
1158
- children: f("calendar.modeBanner.cancel")
1191
+ className: nr,
1192
+ children: m("calendar.modeBanner.cancel")
1159
1193
  }
1160
1194
  ) : null
1161
1195
  ]
1162
1196
  }
1163
1197
  ) : null,
1164
- ut !== !1 ? /* @__PURE__ */ o(
1165
- Ce,
1198
+ pt !== !1 ? /* @__PURE__ */ d(
1199
+ we,
1166
1200
  {
1167
- title: bt,
1168
- onToday: $t,
1169
- onPrev: Kt,
1170
- onNext: Ut,
1171
- end: ft,
1201
+ title: Dt,
1202
+ onToday: Yt,
1203
+ onPrev: Xt,
1204
+ onNext: Jt,
1205
+ end: vt,
1172
1206
  maskClassName: B
1173
1207
  }
1174
1208
  ) : null,
1175
- /* @__PURE__ */ o(
1176
- nr,
1209
+ /* @__PURE__ */ d(
1210
+ or,
1177
1211
  {
1178
1212
  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,
1213
+ plugins: $t,
1214
+ schedulerLicenseKey: ft,
1215
+ initialView: Kt,
1216
+ views: Er,
1217
+ initialDate: f,
1218
+ locale: k,
1219
+ direction: Tt,
1220
+ firstDay: qt,
1187
1221
  editable: ee,
1188
- eventDurationEditable: ee === !1 ? !1 : Ye ?? ee,
1222
+ eventDurationEditable: ee === !1 ? !1 : Je ?? ee,
1189
1223
  selectable: Ae,
1190
- selectMirror: Xe ?? Ae,
1224
+ selectMirror: Ze ?? Ae,
1191
1225
  ...ke === void 0 ? {} : { unselectAuto: ke },
1192
1226
  droppable: ee,
1193
- dayMaxEvents: lt,
1194
- height: Je,
1227
+ dayMaxEvents: mt,
1228
+ height: Qe,
1195
1229
  expandRows: !0,
1196
- events: xt,
1197
- resources: Fe,
1230
+ events: At,
1231
+ resources: We,
1198
1232
  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,
1233
+ resourceLabelContent: Ut,
1234
+ resourceAreaWidth: gt,
1235
+ resourceAreaHeaderContent: Nt,
1236
+ dayCellClassNames: Pt,
1237
+ dayCellDidMount: Mt,
1238
+ dayHeaderClassNames: Gt,
1239
+ resourceLabelClassNames: Lt,
1240
+ dayHeaderDidMount: Bt,
1207
1241
  ...he ? { slotLaneClassNames: he } : {},
1208
1242
  eventClassNames: (e) => {
1209
1243
  var t;
@@ -1214,84 +1248,88 @@ const Ue = $e(
1214
1248
  ];
1215
1249
  },
1216
1250
  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",
1251
+ allDayText: m("calendar.allDay"),
1252
+ noEventsText: m("calendar.noEvents"),
1253
+ titleFormat: kt,
1254
+ dayHeaderFormat: It,
1255
+ dayHeaderContent: Et,
1256
+ eventTimeFormat: St,
1257
+ slotLabelFormat: Rt,
1258
+ slotMinTime: at ?? "00:00:00",
1259
+ slotMaxTime: st ?? "24:00:00",
1260
+ slotDuration: ot ?? "00:30:00",
1227
1261
  ...Ee ? { snapDuration: Ee } : {},
1228
1262
  slotLabelInterval: "01:00:00",
1229
- ...ze !== void 0 ? { defaultTimedEventDuration: ze } : {},
1263
+ ...Fe !== void 0 ? { defaultTimedEventDuration: Fe } : {},
1230
1264
  hiddenDays: Se,
1231
1265
  datesAboveResources: ce,
1232
- slotEventOverlap: st,
1233
- stickyHeaderDates: ot,
1234
- nowIndicator: dt,
1266
+ slotEventOverlap: lt,
1267
+ stickyHeaderDates: ct,
1268
+ nowIndicator: ut,
1235
1269
  eventLongPressDelay: ae ? 0 : 1e3,
1236
1270
  eventDragMinDistance: ae ? 0 : Te,
1237
1271
  eventContent: (e) => {
1238
- var r;
1272
+ var r, i;
1239
1273
  const t = e.event.extendedProps ?? {};
1240
1274
  if (t.isInternal) {
1241
1275
  if (e.event.title && Q) {
1242
- const i = typeof t.optionCount == "number" ? f("calendarWorkspace.findSlots.freeOptions", {
1276
+ const a = typeof t.optionCount == "number" ? m("calendarWorkspace.findSlots.freeOptions", {
1243
1277
  count: t.optionCount
1244
- }) : void 0, a = i ? [
1278
+ }) : void 0, l = a ? [
1245
1279
  e.event.title,
1246
- qe(e, S),
1247
- i
1248
- ].filter(Boolean).join(", ") : e.event.title, l = /* @__PURE__ */ o(
1249
- gr,
1280
+ $e(e, k),
1281
+ a
1282
+ ].filter(Boolean).join(", ") : e.event.title, p = /* @__PURE__ */ d(
1283
+ xr,
1250
1284
  {
1251
1285
  type: "button",
1252
1286
  intent: "ghost",
1253
1287
  size: "sm",
1254
1288
  "data-event-id": e.event.id,
1255
- "aria-label": a,
1289
+ "aria-label": l,
1256
1290
  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
1291
+ onClick: (T) => {
1292
+ T.stopPropagation(), Q(P(e.event), {
1293
+ el: T.currentTarget,
1294
+ jsEvent: T.nativeEvent
1261
1295
  });
1262
1296
  },
1263
- children: /* @__PURE__ */ R(
1297
+ children: /* @__PURE__ */ E(
1264
1298
  "span",
1265
1299
  {
1266
1300
  className: "calendar-bg-event-label",
1267
1301
  "aria-hidden": "true",
1268
1302
  children: [
1269
- /* @__PURE__ */ o(_e, { size: 12, "aria-hidden": "true" }),
1303
+ /* @__PURE__ */ d(_e, { size: 12, "aria-hidden": "true" }),
1270
1304
  e.event.title
1271
1305
  ]
1272
1306
  }
1273
1307
  )
1274
1308
  }
1275
1309
  );
1276
- return i ? /* @__PURE__ */ o(je, { label: i, children: l }) : l;
1310
+ return a ? /* @__PURE__ */ d(je, { label: a, children: p }) : p;
1277
1311
  }
1278
- return e.event.title ? /* @__PURE__ */ R("span", { className: "calendar-bg-event-label", children: [
1279
- /* @__PURE__ */ o(_e, { size: 12, "aria-hidden": "true" }),
1312
+ return e.event.title ? /* @__PURE__ */ E("span", { className: "calendar-bg-event-label", children: [
1313
+ /* @__PURE__ */ d(_e, { size: 12, "aria-hidden": "true" }),
1280
1314
  e.event.title
1281
1315
  ] }) : !0;
1282
1316
  }
1283
- return /* @__PURE__ */ o(
1284
- vr,
1317
+ return /* @__PURE__ */ d(
1318
+ br,
1285
1319
  {
1286
1320
  eventId: e.event.id,
1287
- title: b ? t.privacyModeTitle ?? "•••" : e.event.title,
1321
+ title: b ? ((r = t.privacyModeTitle) == null ? void 0 : r.trim()) || "•••" : e.event.title,
1322
+ shortTitle: b ? void 0 : t.shortTitle,
1323
+ contextLabel: t.contextLabel,
1324
+ startText: Mr(e.event.start, k),
1325
+ layout: e.event.allDay || e.view.type.startsWith("dayGrid") ? "month" : e.view.type.startsWith("list") || e.view.type.toLowerCase().includes("timeline") ? "flow" : "grid",
1288
1326
  privacyMasked: b,
1289
1327
  suffix: t.suffix,
1290
- rangeText: qe(e, S),
1291
- showTime: at,
1328
+ rangeText: $e(e, k),
1329
+ showTime: dt,
1292
1330
  allDay: e.event.allDay,
1293
1331
  status: t.status,
1294
- colorStyle: Qe,
1332
+ colorStyle: tt,
1295
1333
  backgroundColor: t.backgroundColor,
1296
1334
  textColor: t.textColor,
1297
1335
  borderColor: t.borderColor,
@@ -1304,23 +1342,23 @@ const Ue = $e(
1304
1342
  isTask: t.isTask,
1305
1343
  isDraft: t.isDraft,
1306
1344
  detailsPending: t.detailsPending,
1307
- resourceLabel: t.resourceId ? (r = (d ?? []).find((i) => i.id === t.resourceId)) == null ? void 0 : r.title : void 0
1345
+ resourceLabel: t.resourceId ? (i = (o ?? []).find((a) => a.id === t.resourceId)) == null ? void 0 : i.title : void 0
1308
1346
  }
1309
1347
  );
1310
1348
  },
1311
- eventClick: Lt,
1312
- eventMouseEnter: Ot,
1313
- eventMouseLeave: zt,
1314
- eventDrop: Bt,
1315
- eventResize: Mt,
1316
- eventDragStart: W,
1349
+ eventClick: Wt,
1350
+ eventMouseEnter: zt,
1351
+ eventMouseLeave: jt,
1352
+ eventDrop: Ot,
1353
+ eventResize: Ft,
1354
+ eventDragStart: j,
1317
1355
  eventResizeStart: Z,
1318
- select: Ft,
1319
- dateClick: Wt,
1320
- datesSet: jt,
1321
- ...we ? {
1356
+ select: _t,
1357
+ dateClick: Vt,
1358
+ datesSet: Ht,
1359
+ ...Ce ? {
1322
1360
  navLinks: !0,
1323
- navLinkDayClick: (e, t) => we(e, t)
1361
+ navLinkDayClick: (e, t) => Ce(e, t)
1324
1362
  } : {}
1325
1363
  }
1326
1364
  )
@@ -1329,12 +1367,12 @@ const Ue = $e(
1329
1367
  );
1330
1368
  }
1331
1369
  );
1332
- Ue.displayName = "Calendar";
1333
- const Gr = Ue;
1334
- Gr.Toolbar = Ce;
1370
+ Xe.displayName = "Calendar";
1371
+ const Wr = Xe;
1372
+ Wr.Toolbar = we;
1335
1373
  export {
1336
- Gr as C,
1337
- Tr as c,
1374
+ Wr as C,
1375
+ Cr as c,
1338
1376
  be as r
1339
1377
  };
1340
- //# sourceMappingURL=calendar-Bt44KMNO.js.map
1378
+ //# sourceMappingURL=calendar-zpE9qTM4.js.map