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