@alfadocs/ui-kit 0.25.1 → 0.25.2

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 (178) hide show
  1. package/dist/_chunks/{agenda-card-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
  3. package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
  4. package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
  5. package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
  6. package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
  7. package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
  8. package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
  9. package/dist/_chunks/booking-CXngC-1u.js +1743 -0
  10. package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-9eOXumpH.js} +113 -142
  11. package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
  12. package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
  13. package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
  14. package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
  15. package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
  16. package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-CeEfEAxh.js} +2 -2
  17. package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
  18. package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
  19. package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
  20. package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
  21. package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
  22. package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
  23. package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
  24. package/dist/_chunks/eye-LHlSU38h.js +21 -0
  25. package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
  26. package/dist/_chunks/{header-DqmKROIY.js → header-B8V_sNPy.js} +2 -2
  27. package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
  28. package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
  29. package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
  30. package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
  31. package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
  32. package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
  33. package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
  34. package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
  35. package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
  36. package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
  37. package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
  38. package/dist/_chunks/patient-shell-Bq8CjRYF.js +173 -0
  39. package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
  40. package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
  41. package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
  42. package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
  43. package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
  44. package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
  45. package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
  46. package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
  47. package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
  48. package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
  49. package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
  50. package/dist/_chunks/{slot-grid-CgpYgBkW.js → slot-grid-DoodeQGZ.js} +4 -4
  51. package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
  52. package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
  53. package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
  54. package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
  55. package/dist/_chunks/stethoscope-B8kpbtjh.js +35 -0
  56. package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
  57. package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
  58. package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
  59. package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
  60. package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
  61. package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
  62. package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
  63. package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
  64. package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
  65. package/dist/agent-catalog.json +56 -51
  66. package/dist/components/agenda-card/index.js +1 -1
  67. package/dist/components/agenda-tray/index.js +1 -1
  68. package/dist/components/ai-prompt-input/index.js +1 -1
  69. package/dist/components/audio-recorder/index.js +1 -1
  70. package/dist/components/autocomplete/index.js +1 -1
  71. package/dist/components/avatar/index.js +1 -1
  72. package/dist/components/benefit-card/index.js +1 -1
  73. package/dist/components/booking/booking.agent.d.ts +4 -0
  74. package/dist/components/booking/booking.d.ts +91 -0
  75. package/dist/components/booking/index.d.ts +4 -0
  76. package/dist/components/booking/index.js +6 -0
  77. package/dist/components/button/index.js +1 -1
  78. package/dist/components/calendar/index.js +1 -1
  79. package/dist/components/card/index.js +1 -1
  80. package/dist/components/carousel/index.js +1 -1
  81. package/dist/components/chat-input/index.js +1 -1
  82. package/dist/components/chat-message/index.js +1 -1
  83. package/dist/components/command-palette/index.js +1 -1
  84. package/dist/components/contact-card/index.js +1 -1
  85. package/dist/components/data-table/index.js +1 -1
  86. package/dist/components/date-picker/index.js +1 -1
  87. package/dist/components/date-range-picker/index.js +1 -1
  88. package/dist/components/date-time-picker/index.js +1 -1
  89. package/dist/components/description-list/index.js +1 -1
  90. package/dist/components/dialog/index.js +1 -1
  91. package/dist/components/empty-state/index.js +1 -1
  92. package/dist/components/freemium-paywall/index.js +1 -1
  93. package/dist/components/header/index.js +1 -1
  94. package/dist/components/header-settings/index.js +16 -15
  95. package/dist/components/icon-button/index.js +1 -1
  96. package/dist/components/index.d.ts +1 -1
  97. package/dist/components/key-value-pair/index.js +1 -1
  98. package/dist/components/locale-picker/index.js +1 -1
  99. package/dist/components/map-view/index.js +1 -1
  100. package/dist/components/matrix-rain/index.js +1 -1
  101. package/dist/components/message-card/index.js +1 -1
  102. package/dist/components/message-tray/index.js +1 -1
  103. package/dist/components/notification-card/index.js +1 -1
  104. package/dist/components/notification-tray/index.js +1 -1
  105. package/dist/components/password-input/index.js +1 -1
  106. package/dist/components/payment-form/index.js +1 -1
  107. package/dist/components/pdf-viewer/index.js +1 -1
  108. package/dist/components/popover/index.js +1 -1
  109. package/dist/components/privacy-lock/index.js +1 -1
  110. package/dist/components/public-header/index.js +1 -1
  111. package/dist/components/recaptcha-widget/index.js +1 -1
  112. package/dist/components/search-bar/index.js +1 -1
  113. package/dist/components/search-input/index.js +1 -1
  114. package/dist/components/sheet/index.js +1 -1
  115. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  116. package/dist/components/slot-grid/index.js +1 -1
  117. package/dist/components/spinner/index.js +1 -1
  118. package/dist/components/stepper-accordion/index.js +4 -3
  119. package/dist/components/task-tray/index.js +1 -1
  120. package/dist/components/theme-toggle/index.js +1 -1
  121. package/dist/components/timeline/index.js +1 -1
  122. package/dist/components/toast/index.js +1 -1
  123. package/dist/components/transcript-panel/index.js +1 -1
  124. package/dist/components/workflow/index.js +1 -1
  125. package/dist/hooks/index.js +1 -1
  126. package/dist/i18n/config.js +1090 -46
  127. package/dist/i18n/locales/ar.d.ts +58 -0
  128. package/dist/i18n/locales/de.d.ts +58 -0
  129. package/dist/i18n/locales/el.d.ts +58 -0
  130. package/dist/i18n/locales/es.d.ts +58 -0
  131. package/dist/i18n/locales/fr.d.ts +58 -0
  132. package/dist/i18n/locales/hi.d.ts +58 -0
  133. package/dist/i18n/locales/ja.d.ts +58 -0
  134. package/dist/i18n/locales/nl.d.ts +58 -0
  135. package/dist/i18n/locales/pl.d.ts +58 -0
  136. package/dist/i18n/locales/pt.d.ts +58 -0
  137. package/dist/i18n/locales/ro.d.ts +58 -0
  138. package/dist/i18n/locales/ru.d.ts +58 -0
  139. package/dist/i18n/locales/sq.d.ts +58 -0
  140. package/dist/i18n/locales/sv.d.ts +58 -0
  141. package/dist/i18n/locales/tr.d.ts +58 -0
  142. package/dist/i18n/locales/zh.d.ts +58 -0
  143. package/dist/i18n/resources.d.ts +116 -0
  144. package/dist/index.js +270 -269
  145. package/dist/locales/ar.json +59 -1
  146. package/dist/locales/de.json +59 -1
  147. package/dist/locales/el.json +59 -1
  148. package/dist/locales/en.json +59 -1
  149. package/dist/locales/es.json +59 -1
  150. package/dist/locales/fr.json +59 -1
  151. package/dist/locales/hi.json +59 -1
  152. package/dist/locales/it.json +59 -1
  153. package/dist/locales/ja.json +59 -1
  154. package/dist/locales/nl.json +59 -1
  155. package/dist/locales/pl.json +59 -1
  156. package/dist/locales/pt.json +59 -1
  157. package/dist/locales/ro.json +59 -1
  158. package/dist/locales/ru.json +59 -1
  159. package/dist/locales/sq.json +59 -1
  160. package/dist/locales/sv.json +59 -1
  161. package/dist/locales/tr.json +59 -1
  162. package/dist/locales/zh.json +59 -1
  163. package/dist/patterns/alia-assistant/index.js +1 -1
  164. package/dist/patterns/patient-shell/index.js +1 -1
  165. package/dist/tokens.css +1 -1
  166. package/package.json +5 -1
  167. package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
  168. package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
  169. package/dist/_chunks/patient-shell-B164drIa.js +0 -173
  170. package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
  171. package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
  172. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
  173. package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
  174. package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
  175. package/dist/components/stepper-calendar/index.d.ts +0 -4
  176. package/dist/components/stepper-calendar/index.js +0 -6
  177. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
  178. package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
@@ -1,5 +1,5 @@
1
1
  import { jsxs as C, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as me, useRef as z, useState as ne, useEffect as B, useMemo as l, useImperativeHandle as Ze, useCallback as V } from "react";
2
+ import { forwardRef as me, useRef as M, useState as ne, useEffect as z, useMemo as l, useImperativeHandle as Ze, useCallback as B } from "react";
3
3
  import { c as Je } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ae } from "react-i18next";
5
5
  import Ye from "@fullcalendar/react";
@@ -15,28 +15,29 @@ import { u as ot } from "./use-prefers-reduced-motion-BMwIQRjB.js";
15
15
  import { u as it } from "./registry-C9nwlNyL.js";
16
16
  import { C as de } from "./chevron-right-BrpYejk0.js";
17
17
  import { C as ce } from "./chevron-left-CX1jqD2M.js";
18
- import { c as _ } from "./createLucideIcon-CrFbzy84.js";
18
+ import { c as V } from "./createLucideIcon-CrFbzy84.js";
19
19
  import { C as dt } from "./check-DPdL_Sm7.js";
20
- import { C as ct } from "./clock-21AGPWJ5.js";
21
- import { G as lt } from "./globe-BkEFMNSg.js";
22
- import { T as ut } from "./triangle-alert-CBPUIzQo.js";
20
+ import { S as ct, H as lt } from "./stethoscope-B8kpbtjh.js";
21
+ import { C as ut } from "./clock-21AGPWJ5.js";
22
+ import { G as mt } from "./globe-BkEFMNSg.js";
23
+ import { T as ft } from "./triangle-alert-CBPUIzQo.js";
23
24
  /**
24
25
  * @license lucide-react v1.8.0 - ISC
25
26
  *
26
27
  * This source code is licensed under the ISC license.
27
28
  * See the LICENSE file in the root directory of this source tree.
28
29
  */
29
- const mt = [
30
+ const vt = [
30
31
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
31
32
  ["path", { d: "M4.929 4.929 19.07 19.071", key: "196cmz" }]
32
- ], ft = _("ban", mt);
33
+ ], pt = V("ban", vt);
33
34
  /**
34
35
  * @license lucide-react v1.8.0 - ISC
35
36
  *
36
37
  * This source code is licensed under the ISC license.
37
38
  * See the LICENSE file in the root directory of this source tree.
38
39
  */
39
- const vt = [
40
+ const gt = [
40
41
  ["path", { d: "M4 10h12", key: "1y6xl8" }],
41
42
  ["path", { d: "M4 14h9", key: "1loblj" }],
42
43
  [
@@ -46,23 +47,7 @@ const vt = [
46
47
  key: "1j6lzo"
47
48
  }
48
49
  ]
49
- ], pt = _("euro", vt);
50
- /**
51
- * @license lucide-react v1.8.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */
56
- const gt = [
57
- [
58
- "path",
59
- {
60
- d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",
61
- key: "mvr1a0"
62
- }
63
- ],
64
- ["path", { d: "M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27", key: "auskq0" }]
65
- ], ht = _("heart-pulse", gt);
50
+ ], ht = V("euro", gt);
66
51
  /**
67
52
  * @license lucide-react v1.8.0 - ISC
68
53
  *
@@ -70,19 +55,6 @@ const gt = [
70
55
  * See the LICENSE file in the root directory of this source tree.
71
56
  */
72
57
  const bt = [
73
- ["path", { d: "M11 2v2", key: "1539x4" }],
74
- ["path", { d: "M5 2v2", key: "1yf1q8" }],
75
- ["path", { d: "M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1", key: "rb5t3r" }],
76
- ["path", { d: "M8 15a6 6 0 0 0 12 0v-3", key: "x18d4x" }],
77
- ["circle", { cx: "20", cy: "10", r: "2", key: "ts1r5v" }]
78
- ], yt = _("stethoscope", bt);
79
- /**
80
- * @license lucide-react v1.8.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */
85
- const xt = [
86
58
  [
87
59
  "path",
88
60
  {
@@ -91,14 +63,14 @@ const xt = [
91
63
  }
92
64
  ],
93
65
  ["path", { d: "M7 10v12", key: "1qc93n" }]
94
- ], Tt = _("thumbs-up", xt);
66
+ ], yt = V("thumbs-up", bt);
95
67
  /**
96
68
  * @license lucide-react v1.8.0 - ISC
97
69
  *
98
70
  * This source code is licensed under the ISC license.
99
71
  * See the LICENSE file in the root directory of this source tree.
100
72
  */
101
- const kt = [
73
+ const xt = [
102
74
  [
103
75
  "path",
104
76
  {
@@ -107,14 +79,14 @@ const kt = [
107
79
  }
108
80
  ],
109
81
  ["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
110
- ], wt = _("video", kt);
82
+ ], Tt = V("video", xt);
111
83
  /**
112
84
  * @license lucide-react v1.8.0 - ISC
113
85
  *
114
86
  * This source code is licensed under the ISC license.
115
87
  * See the LICENSE file in the root directory of this source tree.
116
88
  */
117
- const Ct = [
89
+ const kt = [
118
90
  [
119
91
  "path",
120
92
  {
@@ -122,8 +94,8 @@ const Ct = [
122
94
  key: "1xq2db"
123
95
  }
124
96
  ]
125
- ], Dt = _("zap", Ct);
126
- const Nt = {
97
+ ], wt = V("zap", kt);
98
+ const Ct = {
127
99
  id: "calendar",
128
100
  capabilities: ["view_change", "range_navigate", "pick"],
129
101
  state: {
@@ -218,7 +190,7 @@ const Nt = {
218
190
  description: "Emitted on every rendered FullCalendar event by the kit event renderer. Used by focusEvent."
219
191
  }
220
192
  }
221
- }, At = {
193
+ }, Dt = {
222
194
  vertical: {
223
195
  Day: "resourceTimeGridDay",
224
196
  ThreeDays: "resourceTimeGridThreeDays",
@@ -229,22 +201,22 @@ const Nt = {
229
201
  ThreeDays: "resourceTimelineThreeDays",
230
202
  Week: "resourceTimelineWeek"
231
203
  }
232
- }, It = /* @__PURE__ */ new Set([
204
+ }, Nt = /* @__PURE__ */ new Set([
233
205
  "dayGridMonth",
234
206
  "timeGridWeek",
235
207
  "timeGridDay",
236
208
  "listWeek"
237
209
  ]);
238
210
  function le(r, s = "vertical") {
239
- if (It.has(r))
211
+ if (Nt.has(r))
240
212
  return r;
241
213
  const u = r.replace(/^resourceTimeGrid/, "").replace(
242
214
  /(Chair|Operator)$/,
243
215
  ""
244
216
  );
245
- return At[s][u];
217
+ return Dt[s][u];
246
218
  }
247
- const Mt = {
219
+ const At = {
248
220
  resourceTimeGridThreeDays: {
249
221
  type: "resourceTimeGrid",
250
222
  duration: { days: 3 }
@@ -253,7 +225,7 @@ const Mt = {
253
225
  type: "resourceTimeline",
254
226
  duration: { days: 3 }
255
227
  }
256
- }, Pt = Je(
228
+ }, It = Je(
257
229
  [
258
230
  "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
259
231
  "ds:w-full ds:h-full",
@@ -291,19 +263,19 @@ const Mt = {
291
263
  },
292
264
  defaultVariants: { status: "default" }
293
265
  }
294
- ), _t = {
295
- confirmed: Tt,
296
- waiting: ct,
297
- in_care: yt,
266
+ ), Pt = {
267
+ confirmed: yt,
268
+ waiting: ut,
269
+ in_care: ct,
298
270
  done: dt,
299
- cancelled: ft,
300
- absent: Dt
271
+ cancelled: pt,
272
+ absent: wt
301
273
  }, St = {
302
274
  create: "calendar.modeBanner.create",
303
275
  move: "calendar.modeBanner.move",
304
276
  copy: "calendar.modeBanner.copy"
305
277
  };
306
- function Rt(r) {
278
+ function _t(r) {
307
279
  try {
308
280
  const s = new Intl.Locale(r), d = typeof s.getWeekInfo == "function" ? s.getWeekInfo() : s.weekInfo;
309
281
  if (d && typeof d.firstDay == "number")
@@ -312,13 +284,13 @@ function Rt(r) {
312
284
  }
313
285
  return r.startsWith("en-US") || r.startsWith("he") || r.startsWith("ar-SA") ? 0 : 1;
314
286
  }
315
- function Et() {
287
+ function Rt() {
316
288
  const { i18n: r } = ae(), [s, d] = ne(() => {
317
289
  if (typeof document > "u") return !1;
318
290
  const u = document.documentElement.getAttribute("dir"), h = typeof r.dir == "function" ? r.dir() : "ltr";
319
291
  return u === "rtl" || h === "rtl";
320
292
  });
321
- return B(() => {
293
+ return z(() => {
322
294
  if (typeof document > "u") return;
323
295
  const u = new MutationObserver(() => {
324
296
  const h = document.documentElement.getAttribute("dir"), D = typeof r.dir == "function" ? r.dir() : "ltr";
@@ -330,7 +302,7 @@ function Et() {
330
302
  }), () => u.disconnect();
331
303
  }, [r]), s;
332
304
  }
333
- function zt({
305
+ function Et({
334
306
  arg: r,
335
307
  locale: s,
336
308
  resources: d,
@@ -338,7 +310,7 @@ function zt({
338
310
  privacyMode: h,
339
311
  showTime: D
340
312
  }) {
341
- var H;
313
+ var W;
342
314
  const N = r.event.extendedProps ?? {}, {
343
315
  status: m,
344
316
  backgroundColor: v,
@@ -346,13 +318,13 @@ function zt({
346
318
  suffix: y,
347
319
  privacyModeTitle: A,
348
320
  isBookedOnline: L,
349
- hasUnassignedPatient: $,
350
- hasHighlightedAnamnesis: U,
321
+ hasUnassignedPatient: U,
322
+ hasHighlightedAnamnesis: $,
351
323
  hasBillableAmount: K,
352
324
  isTelehealth: p,
353
325
  resourceId: I
354
- } = N, O = m ? _t[m] : null, x = r.event.start, T = r.event.end ?? r.event.start, j = r.event.allDay;
355
- let M = "";
326
+ } = N, O = m ? Pt[m] : null, x = r.event.start, T = r.event.end ?? r.event.start, j = r.event.allDay;
327
+ let P = "";
356
328
  if (x && T)
357
329
  try {
358
330
  const k = new Intl.DateTimeFormat(s, {
@@ -360,17 +332,17 @@ function zt({
360
332
  minute: "2-digit",
361
333
  hour12: !1
362
334
  });
363
- M = typeof k.formatRange == "function" ? k.formatRange(x, T) : `${k.format(x)} – ${k.format(T)}`;
335
+ P = typeof k.formatRange == "function" ? k.formatRange(x, T) : `${k.format(x)} – ${k.format(T)}`;
364
336
  } catch {
365
- M = "";
337
+ P = "";
366
338
  }
367
- const Z = I ? (H = d.find((k) => k.id === I)) == null ? void 0 : H.title : void 0, J = m ? u[m] : void 0, G = h ? A ?? "•••" : r.event.title, Y = [G, M, Z, J].filter(Boolean).join(", "), Q = v || f ? {
339
+ const Z = I ? (W = d.find((k) => k.id === I)) == null ? void 0 : W.title : void 0, J = m ? u[m] : void 0, G = h ? A ?? "•••" : r.event.title, Y = [G, P, Z, J].filter(Boolean).join(", "), Q = v || f ? {
368
340
  ...v ? { "--calendar-event-bg": v } : {},
369
341
  ...f ? { "--calendar-event-text": f } : {}
370
342
  } : void 0;
371
343
  (v || f) && (`${r.event.id}`, void 0);
372
344
  const X = [
373
- Pt({ status: m ?? "default" }),
345
+ It({ status: m ?? "default" }),
374
346
  L ? "event-booked-online" : null,
375
347
  v ? "ds:[background-color:var(--calendar-event-bg)]" : null,
376
348
  f ? "ds:[color:var(--calendar-event-text)]" : null
@@ -385,18 +357,18 @@ function zt({
385
357
  children: [
386
358
  /* @__PURE__ */ C("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:self-end", children: [
387
359
  O ? /* @__PURE__ */ a(O, { size: 14, "aria-hidden": "true" }) : null,
388
- L ? /* @__PURE__ */ a(lt, { size: 12, "aria-hidden": "true" }) : null,
389
- $ ? /* @__PURE__ */ a(ut, { size: 12, "aria-hidden": "true" }) : null,
390
- U ? /* @__PURE__ */ a(ht, { size: 12, "aria-hidden": "true" }) : null,
391
- K ? /* @__PURE__ */ a(pt, { size: 12, "aria-hidden": "true" }) : null,
392
- p ? /* @__PURE__ */ a(wt, { size: 12, "aria-hidden": "true" }) : null
360
+ L ? /* @__PURE__ */ a(mt, { size: 12, "aria-hidden": "true" }) : null,
361
+ U ? /* @__PURE__ */ a(ft, { size: 12, "aria-hidden": "true" }) : null,
362
+ $ ? /* @__PURE__ */ a(lt, { size: 12, "aria-hidden": "true" }) : null,
363
+ K ? /* @__PURE__ */ a(ht, { size: 12, "aria-hidden": "true" }) : null,
364
+ p ? /* @__PURE__ */ a(Tt, { size: 12, "aria-hidden": "true" }) : null
393
365
  ] }),
394
- D && !j && M ? (
366
+ D && !j && P ? (
395
367
  // No opacity here — composing 70% over saturated bgs (success /
396
368
  // destructive / primary) drops effective contrast below WCAG AA
397
369
  // (≤ 3.82:1 measured). The smaller font-size-xs vs the title's
398
370
  // font-weight-semibold provides sufficient visual hierarchy.
399
- /* @__PURE__ */ a("span", { className: "ds:text-[length:var(--font-size-xs)]", children: M })
371
+ /* @__PURE__ */ a("span", { className: "ds:text-[length:var(--font-size-xs)]", children: P })
400
372
  ) : null,
401
373
  /* @__PURE__ */ a("span", { className: "ds:font-[var(--font-weight-semibold)] ds:truncate ds:text-start", children: G }),
402
374
  y ? /* @__PURE__ */ a("span", { className: "ds:truncate ds:text-start ds:text-[length:var(--font-size-xs)]", children: y }) : null
@@ -417,7 +389,7 @@ const fe = [
417
389
  "ds:focus-visible:outline-[var(--ring)]",
418
390
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
419
391
  "ds:motion-reduce:transition-none"
420
- ].join(" "), Bt = [
392
+ ].join(" "), Mt = [
421
393
  fe,
422
394
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
423
395
  ].join(" "), ue = [
@@ -425,7 +397,7 @@ const fe = [
425
397
  "ds:min-w-[var(--min-target-size)]"
426
398
  ].join(" "), se = me(
427
399
  ({ title: r, onToday: s, onPrev: d, onNext: u, end: h, className: D }, N) => {
428
- const { t: m } = ae(), v = Et(), f = v ? de : ce, y = v ? ce : de, A = [
400
+ const { t: m } = ae(), v = Rt(), f = v ? de : ce, y = v ? ce : de, A = [
429
401
  "ds:calendar-toolbar",
430
402
  "ds:sticky ds:top-0 ds:z-20",
431
403
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
@@ -442,7 +414,7 @@ const fe = [
442
414
  {
443
415
  type: "button",
444
416
  onClick: s,
445
- className: Bt,
417
+ className: Mt,
446
418
  children: m("calendar.today")
447
419
  }
448
420
  ),
@@ -502,8 +474,8 @@ const ve = me(
502
474
  onDateSelect: y,
503
475
  editable: A = !1,
504
476
  eventDurationEditable: L,
505
- selectable: $ = !1,
506
- height: U,
477
+ selectable: U = !1,
478
+ height: $,
507
479
  className: K,
508
480
  privacyMode: p = !1,
509
481
  mode: I = "default",
@@ -511,44 +483,44 @@ const ve = me(
511
483
  modeBannerColor: x,
512
484
  modeBannerTextColor: T,
513
485
  onModeCancel: j,
514
- alertBanner: M,
486
+ alertBanner: P,
515
487
  slotMinTime: Z,
516
488
  slotMaxTime: J,
517
489
  slotDuration: G,
518
490
  showTime: Y = !0,
519
491
  datesAboveResources: Q = !0,
520
492
  slotEventOverlap: X = !1,
521
- stickyHeaderDates: H = !0,
493
+ stickyHeaderDates: W = !0,
522
494
  nowIndicator: k = !0,
523
495
  dayMaxEvents: pe = !0,
524
496
  schedulerLicenseKey: ge = void 0,
525
497
  toolbar: he = !0,
526
498
  toolbarEnd: be,
527
- resourceLayout: W = "vertical",
499
+ resourceLayout: F = "vertical",
528
500
  showResourceInitials: oe = !1
529
501
  }, ye) => {
530
- const { t: o, i18n: S } = ae(), P = z(null), ee = z(null), b = z(null), w = z(null), R = z(null), F = D ?? S.language ?? "en", [xe, Te] = ne(() => {
502
+ const { t: o, i18n: _ } = ae(), S = M(null), ee = M(null), b = M(null), w = M(null), R = M(null), H = D ?? _.language ?? "en", [xe, Te] = ne(() => {
531
503
  if (typeof document > "u") return "ltr";
532
- const e = document.documentElement.getAttribute("dir"), t = typeof S.dir == "function" ? S.dir() : "ltr";
504
+ const e = document.documentElement.getAttribute("dir"), t = typeof _.dir == "function" ? _.dir() : "ltr";
533
505
  return e === "rtl" || t === "rtl" ? "rtl" : "ltr";
534
506
  });
535
- B(() => {
507
+ z(() => {
536
508
  if (typeof document > "u") return;
537
509
  const e = new MutationObserver(() => {
538
- const t = document.documentElement.getAttribute("dir"), n = typeof S.dir == "function" ? S.dir() : "ltr";
510
+ const t = document.documentElement.getAttribute("dir"), n = typeof _.dir == "function" ? _.dir() : "ltr";
539
511
  Te(t === "rtl" || n === "rtl" ? "rtl" : "ltr");
540
512
  });
541
513
  return e.observe(document.documentElement, {
542
514
  attributes: !0,
543
515
  attributeFilter: ["dir", "lang"]
544
516
  }), () => e.disconnect();
545
- }, [S]), B(() => {
517
+ }, [_]), z(() => {
546
518
  if (typeof document > "u") return;
547
519
  let e;
548
520
  const t = new MutationObserver(() => {
549
521
  clearTimeout(e), e = setTimeout(() => {
550
522
  var c;
551
- const n = (c = P.current) == null ? void 0 : c.getApi();
523
+ const n = (c = S.current) == null ? void 0 : c.getApi();
552
524
  n && typeof n.render == "function" && n.render();
553
525
  }, 50);
554
526
  });
@@ -558,7 +530,7 @@ const ve = me(
558
530
  }), () => {
559
531
  clearTimeout(e), t.disconnect();
560
532
  };
561
- }, []), B(() => {
533
+ }, []), z(() => {
562
534
  if (typeof document > "u") return;
563
535
  const e = ee.current;
564
536
  if (!e) return;
@@ -585,12 +557,12 @@ const ve = me(
585
557
  const q = ot(), [ke, we] = ne(""), te = l(() => {
586
558
  const e = () => {
587
559
  var t;
588
- return (t = P.current) == null ? void 0 : t.getApi();
560
+ return (t = S.current) == null ? void 0 : t.getApi();
589
561
  };
590
562
  return {
591
563
  getApi: () => {
592
564
  var t;
593
- return (t = P.current) == null ? void 0 : t.getApi();
565
+ return (t = S.current) == null ? void 0 : t.getApi();
594
566
  },
595
567
  today: () => {
596
568
  var t;
@@ -611,7 +583,7 @@ const ve = me(
611
583
  changeView: (t) => {
612
584
  var n;
613
585
  (n = e()) == null || n.changeView(
614
- le(t, W)
586
+ le(t, F)
615
587
  );
616
588
  },
617
589
  getTitle: () => {
@@ -646,8 +618,8 @@ const ve = me(
646
618
  }
647
619
  }
648
620
  };
649
- }, [q, p, o, W]);
650
- Ze(ye, () => te, [te]), it(Nt, te, r), B(
621
+ }, [q, p, o, F]);
622
+ Ze(ye, () => te, [te]), it(Ct, te, r), z(
651
623
  () => () => {
652
624
  w.current && (clearTimeout(w.current), w.current = null);
653
625
  },
@@ -663,8 +635,8 @@ const ve = me(
663
635
  absent: o("calendar.status.absent")
664
636
  }),
665
637
  [o]
666
- ), ie = z(!0);
667
- B(() => {
638
+ ), ie = M(!0);
639
+ z(() => {
668
640
  if (ie.current) {
669
641
  ie.current = !1;
670
642
  return;
@@ -716,7 +688,7 @@ const ve = me(
716
688
  minute: "2-digit"
717
689
  }),
718
690
  []
719
- ), Me = l(
691
+ ), Pe = l(
720
692
  () => ({
721
693
  hour: "numeric",
722
694
  minute: "2-digit"
@@ -746,7 +718,7 @@ const ve = me(
746
718
  patientId: t.patientId,
747
719
  operatorId: t.operatorId
748
720
  };
749
- }, Pe = l(() => {
721
+ }, Se = l(() => {
750
722
  if (N)
751
723
  return (e) => {
752
724
  if (!e.event.start) return;
@@ -784,12 +756,12 @@ const ve = me(
784
756
  });
785
757
  }
786
758
  };
787
- }, [m, p, o]), Se = l(() => {
759
+ }, [m, p, o]), Re = l(() => {
788
760
  if (f)
789
761
  return (e) => {
790
762
  e.event.start && f(re(e.event));
791
763
  };
792
- }, [f]), Re = l(() => {
764
+ }, [f]), Ee = l(() => {
793
765
  if (y)
794
766
  return (e) => {
795
767
  var t;
@@ -800,9 +772,9 @@ const ve = me(
800
772
  resourceId: (t = e.resource) == null ? void 0 : t.id
801
773
  });
802
774
  };
803
- }, [y]), Ee = V((e) => {
775
+ }, [y]), Me = B((e) => {
804
776
  we(e.view.title);
805
- }, []), ze = l(() => Rt(F), [F]), Be = l(
777
+ }, []), ze = l(() => _t(H), [H]), Be = l(
806
778
  () => [
807
779
  Qe,
808
780
  Xe,
@@ -815,9 +787,9 @@ const ve = me(
815
787
  ],
816
788
  []
817
789
  ), Ve = l(
818
- () => le(u, W),
819
- [u, W]
820
- ), Le = V(
790
+ () => le(u, F),
791
+ [u, F]
792
+ ), Le = B(
821
793
  (e) => {
822
794
  const t = e.resource.extendedProps, n = e.resource.title, c = t.shortTitle, i = t.color, g = t.shortTitleTextColor, E = i || g ? {
823
795
  ...i ? { "--resource-color": i } : {},
@@ -871,24 +843,24 @@ const ve = me(
871
843
  }
872
844
  })),
873
845
  [d]
874
- ), je = V(() => {
846
+ ), je = B(() => {
875
847
  var e, t;
876
- (t = (e = P.current) == null ? void 0 : e.getApi()) == null || t.today();
877
- }, []), Ge = V(() => {
848
+ (t = (e = S.current) == null ? void 0 : e.getApi()) == null || t.today();
849
+ }, []), Ge = B(() => {
878
850
  var e, t;
879
- (t = (e = P.current) == null ? void 0 : e.getApi()) == null || t.prev();
880
- }, []), He = V(() => {
851
+ (t = (e = S.current) == null ? void 0 : e.getApi()) == null || t.prev();
852
+ }, []), We = B(() => {
881
853
  var e, t;
882
- (t = (e = P.current) == null ? void 0 : e.getApi()) == null || t.next();
883
- }, []), We = [
854
+ (t = (e = S.current) == null ? void 0 : e.getApi()) == null || t.next();
855
+ }, []), Fe = [
884
856
  "fc-theme-alfadocs",
885
857
  "ds:bg-background ds:text-foreground",
886
858
  "ds:rounded-[var(--radius-md)]",
887
859
  K
888
- ].filter(Boolean).join(" "), Fe = x || T ? {
860
+ ].filter(Boolean).join(" "), He = x || T ? {
889
861
  ...x ? { "--calendar-mode-bg": x } : {},
890
862
  ...T ? { "--calendar-mode-fg": T } : {}
891
- } : void 0, qe = I !== "default" ? O ?? o(St[I]) : "", $e = [
863
+ } : void 0, qe = I !== "default" ? O ?? o(St[I]) : "", Ue = [
892
864
  "ds:sticky ds:top-0 ds:z-10",
893
865
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
894
866
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
@@ -898,7 +870,7 @@ const ve = me(
898
870
  doesn't supply a hex. */
899
871
  x ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
900
872
  T ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
901
- ].filter(Boolean).join(" "), Ue = [
873
+ ].filter(Boolean).join(" "), $e = [
902
874
  "ds:inline-flex ds:items-center ds:justify-center",
903
875
  "ds:min-h-[var(--min-target-size)]",
904
876
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
@@ -917,7 +889,7 @@ const ve = me(
917
889
  "div",
918
890
  {
919
891
  ref: ee,
920
- className: We,
892
+ className: Fe,
921
893
  role: "region",
922
894
  "aria-label": o("calendar.ariaLabel"),
923
895
  "data-component": "calendar",
@@ -933,12 +905,12 @@ const ve = me(
933
905
  className: "ds:sr-only"
934
906
  }
935
907
  ),
936
- M,
908
+ P,
937
909
  I !== "default" ? /* @__PURE__ */ C(
938
910
  "div",
939
911
  {
940
- className: $e,
941
- style: Fe,
912
+ className: Ue,
913
+ style: He,
942
914
  role: "status",
943
915
  children: [
944
916
  /* @__PURE__ */ a("span", { className: "ds:flex-1 ds:text-start", children: qe }),
@@ -947,7 +919,7 @@ const ve = me(
947
919
  {
948
920
  type: "button",
949
921
  onClick: j,
950
- className: Ue,
922
+ className: $e,
951
923
  children: o("calendar.modeBanner.cancel")
952
924
  }
953
925
  ) : null
@@ -960,28 +932,28 @@ const ve = me(
960
932
  title: ke,
961
933
  onToday: je,
962
934
  onPrev: Ge,
963
- onNext: He,
935
+ onNext: We,
964
936
  end: be
965
937
  }
966
938
  ) : null,
967
939
  /* @__PURE__ */ a(
968
940
  Ye,
969
941
  {
970
- ref: P,
942
+ ref: S,
971
943
  plugins: Be,
972
944
  schedulerLicenseKey: ge,
973
945
  initialView: Ve,
974
- views: Mt,
946
+ views: At,
975
947
  initialDate: h,
976
- locale: F,
948
+ locale: H,
977
949
  direction: xe,
978
950
  firstDay: ze,
979
951
  editable: A,
980
952
  eventDurationEditable: L ?? A,
981
- selectable: $,
953
+ selectable: U,
982
954
  droppable: A,
983
955
  dayMaxEvents: pe,
984
- height: U,
956
+ height: $,
985
957
  events: De,
986
958
  resources: Oe,
987
959
  resourceOrder: "sequenceNumber",
@@ -992,31 +964,31 @@ const ve = me(
992
964
  titleFormat: Ne,
993
965
  dayHeaderFormat: Ae,
994
966
  eventTimeFormat: Ie,
995
- slotLabelFormat: Me,
967
+ slotLabelFormat: Pe,
996
968
  slotMinTime: Z ?? "00:00:00",
997
969
  slotMaxTime: J ?? "24:00:00",
998
970
  slotDuration: G ?? "00:30:00",
999
971
  slotLabelInterval: "01:00:00",
1000
972
  datesAboveResources: Q,
1001
973
  slotEventOverlap: X,
1002
- stickyHeaderDates: H,
974
+ stickyHeaderDates: W,
1003
975
  nowIndicator: k,
1004
976
  eventLongPressDelay: q ? 0 : 1e3,
1005
977
  eventDragMinDistance: q ? 0 : 5,
1006
- eventContent: (e) => zt({
978
+ eventContent: (e) => Et({
1007
979
  arg: e,
1008
- locale: F,
980
+ locale: H,
1009
981
  resources: d ?? [],
1010
982
  statusLabels: Ce,
1011
983
  privacyMode: p,
1012
984
  showTime: Y
1013
985
  }),
1014
- eventClick: Se,
1015
- eventDrop: Pe,
986
+ eventClick: Re,
987
+ eventDrop: Se,
1016
988
  eventResize: _e,
1017
989
  eventResizeStart: v,
1018
- select: Re,
1019
- datesSet: Ee
990
+ select: Ee,
991
+ datesSet: Me
1020
992
  }
1021
993
  )
1022
994
  ]
@@ -1025,12 +997,11 @@ const ve = me(
1025
997
  }
1026
998
  );
1027
999
  ve.displayName = "Calendar";
1028
- const Vt = ve;
1029
- Vt.Toolbar = se;
1000
+ const zt = ve;
1001
+ zt.Toolbar = se;
1030
1002
  export {
1031
- Vt as C,
1032
- Rt as a,
1033
- Nt as c,
1003
+ zt as C,
1004
+ Ct as c,
1034
1005
  le as r
1035
1006
  };
1036
- //# sourceMappingURL=calendar-zy0tUUVG.js.map
1007
+ //# sourceMappingURL=calendar-9eOXumpH.js.map