@alfadocs/ui-kit 1.137.0 → 1.139.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 (244) hide show
  1. package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
  2. package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
  3. package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
  4. package/dist/_chunks/{appointment-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
  5. package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
  6. package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
  7. package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
  8. package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
  9. package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
  10. package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
  11. package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-D0n_bVsT.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +537 -536
  13. package/dist/_chunks/{calendar-editor-discard-host-1UfmMOEb.js → calendar-editor-discard-host-BcMEgVEq.js} +3 -3
  14. package/dist/_chunks/{calendar-waiting-list-panel-Ckd6tSeu.js → calendar-waiting-list-panel-CkZBAv_E.js} +4 -4
  15. package/dist/_chunks/{calendar-workspace.model-DrOoxY1b.js → calendar-workspace.model-B8yPwuBv.js} +2 -2
  16. package/dist/_chunks/{calendar.sheets-Datc0-IT.js → calendar.sheets-B0jP2Yt0.js} +113 -112
  17. package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
  18. package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
  19. package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
  20. package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
  21. package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
  22. package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
  23. package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
  24. package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
  25. package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
  26. package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
  27. package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
  28. package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
  29. package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
  30. package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
  34. package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
  35. package/dist/_chunks/medication-I6QvOq6k.js +21 -0
  36. package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
  37. package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
  38. package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
  39. package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
  40. package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
  41. package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
  42. package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
  43. package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
  44. package/dist/_chunks/{patient-account-settings-COybehKx.js → patient-account-settings-DfEPHmCh.js} +3 -3
  45. package/dist/_chunks/{patient-check-in-resume-DZnyYDKH.js → patient-check-in-resume-TWs8CPQr.js} +5 -5
  46. package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
  47. package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
  48. package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
  49. package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
  50. package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
  51. package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
  52. package/dist/_chunks/{portal-details-DdzvroYP.js → portal-details-VfeOI4PB.js} +3 -3
  53. package/dist/_chunks/{portal-documents-CNmoYWFc.js → portal-documents-hGHlwmbv.js} +3 -3
  54. package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
  55. package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
  56. package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
  57. package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
  58. package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
  59. package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
  60. package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
  61. package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
  62. package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
  63. package/dist/_chunks/save-Dn8uje3f.js +22 -0
  64. package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
  65. package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
  66. package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
  67. package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
  68. package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
  69. package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
  70. package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
  71. package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
  72. package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
  73. package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
  74. package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
  75. package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
  76. package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
  77. package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
  78. package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
  79. package/dist/agent-catalog.json +456 -2
  80. package/dist/agent-i18n/en.json +53 -0
  81. package/dist/appointment-editor-panel/index.js +2 -2
  82. package/dist/booking-tools-data/index.js +1 -1
  83. package/dist/browser-support.js +1 -1
  84. package/dist/calendar-action-buttons/index.js +1 -1
  85. package/dist/components/_shared/medication.d.ts +28 -0
  86. package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
  87. package/dist/components/_shared/patient-picker.d.ts +7 -0
  88. package/dist/components/address-fields/index.js +1 -1
  89. package/dist/components/ai-prompt-input/index.js +1 -1
  90. package/dist/components/appointment-card/appointment-card.d.ts +5 -2
  91. package/dist/components/appointment-card/index.js +2 -2
  92. package/dist/components/appointment-details-panel/index.js +1 -1
  93. package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
  94. package/dist/components/appointment-timeline/index.js +1 -1
  95. package/dist/components/audio-recorder/index.js +1 -1
  96. package/dist/components/autocomplete/autocomplete.d.ts +50 -0
  97. package/dist/components/autocomplete/index.d.ts +1 -1
  98. package/dist/components/autocomplete/index.js +1 -1
  99. package/dist/components/bill-line-table/index.js +1 -1
  100. package/dist/components/bill-table/index.js +1 -1
  101. package/dist/components/bishop-score/index.js +1 -1
  102. package/dist/components/booking/index.js +1 -1
  103. package/dist/components/calls-panel/index.js +1 -1
  104. package/dist/components/city-input/index.js +1 -1
  105. package/dist/components/combobox/index.js +1 -1
  106. package/dist/components/communications-panel/index.js +1 -1
  107. package/dist/components/country-select/index.js +1 -1
  108. package/dist/components/data-grid/index.js +2 -2
  109. package/dist/components/data-table/index.js +2 -2
  110. package/dist/components/document-preview/index.js +1 -1
  111. package/dist/components/face-scheme/index.js +1 -1
  112. package/dist/components/file-manager/index.js +1 -1
  113. package/dist/components/gestational-age-calculator/index.js +1 -1
  114. package/dist/components/heatmap/index.js +1 -1
  115. package/dist/components/index.d.ts +5 -0
  116. package/dist/components/invoice-upload-list/index.js +1 -1
  117. package/dist/components/medication-line/index.d.ts +6 -0
  118. package/dist/components/medication-line/index.js +7 -0
  119. package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
  120. package/dist/components/medication-line/medication-line.d.ts +40 -0
  121. package/dist/components/medication-search/index.d.ts +6 -0
  122. package/dist/components/medication-search/index.js +10 -0
  123. package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
  124. package/dist/components/medication-search/medication-search.d.ts +49 -0
  125. package/dist/components/multi-select/index.js +1 -1
  126. package/dist/components/muscle-scheme/index.js +1 -1
  127. package/dist/components/notes-panel/index.js +1 -1
  128. package/dist/components/optical-prescription/index.js +1 -1
  129. package/dist/components/patient-details/index.js +1 -1
  130. package/dist/components/patient-search/index.js +1 -1
  131. package/dist/components/patient-summary-card/index.js +1 -1
  132. package/dist/components/patient-table/index.js +1 -1
  133. package/dist/components/phone-input/index.js +1 -1
  134. package/dist/components/pregnancy-dating/index.js +1 -1
  135. package/dist/components/print-sheet/index.d.ts +5 -0
  136. package/dist/components/print-sheet/index.js +6 -0
  137. package/dist/components/print-sheet/print-isolation.d.ts +17 -0
  138. package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
  139. package/dist/components/print-sheet/print-sheet.d.ts +54 -0
  140. package/dist/components/province-select/index.js +1 -1
  141. package/dist/components/rich-text-editor/index.js +2 -2
  142. package/dist/components/search-bar/index.js +1 -1
  143. package/dist/components/select/index.js +1 -1
  144. package/dist/components/skeleton-scheme/index.js +1 -1
  145. package/dist/components/sync-tray/index.d.ts +4 -0
  146. package/dist/components/sync-tray/index.js +7 -0
  147. package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
  148. package/dist/components/sync-tray/sync-tray.d.ts +77 -0
  149. package/dist/components/tabs/index.js +1 -1
  150. package/dist/components/task-editor/index.js +1 -1
  151. package/dist/components/tasks-panel/index.js +1 -1
  152. package/dist/components/unit-converter/index.js +1 -1
  153. package/dist/components/variables-menu/index.js +1 -1
  154. package/dist/components/voice-control-panel/index.js +1 -1
  155. package/dist/core.css +1 -1
  156. package/dist/find-free-slots-panel/index.js +1 -1
  157. package/dist/host-compat.css +13 -1
  158. package/dist/host-legacy.css +16 -0
  159. package/dist/i18n/locales/ar.d.ts +134 -1
  160. package/dist/i18n/locales/ar.js +134 -1
  161. package/dist/i18n/locales/de.d.ts +134 -1
  162. package/dist/i18n/locales/de.js +134 -1
  163. package/dist/i18n/locales/el.d.ts +134 -1
  164. package/dist/i18n/locales/el.js +134 -1
  165. package/dist/i18n/locales/en.d.ts +134 -1
  166. package/dist/i18n/locales/en.js +134 -1
  167. package/dist/i18n/locales/es.d.ts +134 -1
  168. package/dist/i18n/locales/es.js +134 -1
  169. package/dist/i18n/locales/fr.d.ts +134 -1
  170. package/dist/i18n/locales/fr.js +134 -1
  171. package/dist/i18n/locales/hi.d.ts +134 -1
  172. package/dist/i18n/locales/hi.js +134 -1
  173. package/dist/i18n/locales/it.d.ts +134 -1
  174. package/dist/i18n/locales/it.js +134 -1
  175. package/dist/i18n/locales/ja.d.ts +134 -1
  176. package/dist/i18n/locales/ja.js +134 -1
  177. package/dist/i18n/locales/nl.d.ts +134 -1
  178. package/dist/i18n/locales/nl.js +134 -1
  179. package/dist/i18n/locales/pl.d.ts +134 -1
  180. package/dist/i18n/locales/pl.js +134 -1
  181. package/dist/i18n/locales/pt.d.ts +134 -1
  182. package/dist/i18n/locales/pt.js +134 -1
  183. package/dist/i18n/locales/ro.d.ts +134 -1
  184. package/dist/i18n/locales/ro.js +134 -1
  185. package/dist/i18n/locales/ru.d.ts +134 -1
  186. package/dist/i18n/locales/ru.js +134 -1
  187. package/dist/i18n/locales/sq.d.ts +134 -1
  188. package/dist/i18n/locales/sq.js +134 -1
  189. package/dist/i18n/locales/sv.d.ts +134 -1
  190. package/dist/i18n/locales/sv.js +134 -1
  191. package/dist/i18n/locales/tr.d.ts +134 -1
  192. package/dist/i18n/locales/tr.js +134 -1
  193. package/dist/i18n/locales/zh.d.ts +134 -1
  194. package/dist/i18n/locales/zh.js +134 -1
  195. package/dist/index.js +1004 -976
  196. package/dist/locales/ar.json +134 -1
  197. package/dist/locales/de.json +134 -1
  198. package/dist/locales/el.json +134 -1
  199. package/dist/locales/en.json +134 -1
  200. package/dist/locales/es.json +134 -1
  201. package/dist/locales/fr.json +134 -1
  202. package/dist/locales/hi.json +134 -1
  203. package/dist/locales/it.json +134 -1
  204. package/dist/locales/ja.json +134 -1
  205. package/dist/locales/nl.json +134 -1
  206. package/dist/locales/pl.json +134 -1
  207. package/dist/locales/pt.json +134 -1
  208. package/dist/locales/ro.json +134 -1
  209. package/dist/locales/ru.json +134 -1
  210. package/dist/locales/sq.json +134 -1
  211. package/dist/locales/sv.json +134 -1
  212. package/dist/locales/tr.json +134 -1
  213. package/dist/locales/zh.json +134 -1
  214. package/dist/online-bookings-panel/index.js +2 -2
  215. package/dist/patterns/anamnesis/index.js +1 -1
  216. package/dist/patterns/calendar/index.js +4 -4
  217. package/dist/patterns/forgot-password-form/index.js +1 -1
  218. package/dist/patterns/login-form/index.js +1 -1
  219. package/dist/patterns/patient-account-settings/index.js +1 -1
  220. package/dist/patterns/patient-check-in/index.js +1 -1
  221. package/dist/patterns/patient-portal/index.js +2 -2
  222. package/dist/patterns/prescription/index.d.ts +11 -0
  223. package/dist/patterns/prescription/index.js +13 -0
  224. package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
  225. package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
  226. package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
  227. package/dist/patterns/prescription/prescription-history.d.ts +48 -0
  228. package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
  229. package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
  230. package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
  231. package/dist/patterns/prescription/prescription-types.d.ts +97 -0
  232. package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
  233. package/dist/patterns/registration-form/index.js +1 -1
  234. package/dist/patterns/reset-password-form/index.js +1 -1
  235. package/dist/patterns/send-registration-link-form/index.js +1 -1
  236. package/dist/patterns/signature-request/index.js +1 -1
  237. package/dist/tokens.css +1 -1
  238. package/dist/waiting-list-panel/index.js +2 -2
  239. package/package.json +21 -1
  240. package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
  241. package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
  242. package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
  243. package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
  244. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
@@ -1,30 +1,30 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as Na, useMemo as aa, useEffect as wa } from "react";
3
- import { c as ka } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ya } from "react-i18next";
5
- import { A as ea } from "./avatar-Dp5apm1d.js";
6
- import { B as c } from "./badge-BUk4RjTS.js";
7
- import { T as Ca } from "./tag-BNlcEJfE.js";
8
- import { T as za } from "./timestamp-DPLDWdxA.js";
9
- import { T as sa } from "./transaction-chip-CkYd-3ky.js";
10
- import { i as Ta } from "./is-development-CLUAnsU7.js";
11
- import { V as Sa } from "./visually-hidden-BHxEUGyT.js";
12
- import { p as Ma } from "./privacy-mask-text-B8YfzB7L.js";
13
- import { a as Ra } from "./workflow-status-CO0mxXs2.js";
14
- import { i as Aa } from "./is-safe-url-CEy9CEml.js";
15
- import { a as Da, b as Va, c as _a } from "./entity-card-p-LANpYt.js";
16
- import { V as Ia } from "./video-BheNGvsu.js";
17
- import { M as La } from "./map-pin-BaY37-Km.js";
18
- import { E as Pa } from "./eye-off-C_4xkbRP.js";
19
- import { U as Ea } from "./user-x-BJZg4kaP.js";
20
- import { B as Oa } from "./building-2-D33bLCWL.js";
21
- import { S as ra } from "./star-Bf9L2Uot.js";
22
- import { c as oa } from "./createLucideIcon-DhHxpK9K.js";
23
- import { A as Ua } from "./armchair-BaLDW6Hz.js";
24
- import { G as Fa } from "./globe-sHBW1JN5.js";
2
+ import { forwardRef as wa, useMemo as sa, useEffect as ya } from "react";
3
+ import { c as Ca } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as za } from "react-i18next";
5
+ import { A as ra } from "./avatar-Dp5apm1d.js";
6
+ import { B as p } from "./badge-BUk4RjTS.js";
7
+ import { T as Ta } from "./tag-BNlcEJfE.js";
8
+ import { T as Sa } from "./timestamp-DPLDWdxA.js";
9
+ import { T as na } from "./transaction-chip-CkYd-3ky.js";
10
+ import { i as Ma } from "./is-development-CLUAnsU7.js";
11
+ import { V as oa } from "./visually-hidden-BHxEUGyT.js";
12
+ import { p as Ra } from "./privacy-mask-text-B8YfzB7L.js";
13
+ import { a as Aa } from "./workflow-status-CO0mxXs2.js";
14
+ import { i as Da } from "./is-safe-url-CEy9CEml.js";
15
+ import { V as Va } from "./video-BheNGvsu.js";
16
+ import { M as _a } from "./map-pin-BaY37-Km.js";
17
+ import { E as Ia } from "./eye-off-C_4xkbRP.js";
18
+ import { b as La, a as Pa, c as Ea } from "./entity-card-p-LANpYt.js";
19
+ import { U as Oa } from "./user-x-BJZg4kaP.js";
20
+ import { B as Ua } from "./building-2-D33bLCWL.js";
21
+ import { S as ta } from "./star-Bf9L2Uot.js";
22
+ import { c as la } from "./createLucideIcon-DhHxpK9K.js";
23
+ import { A as Fa } from "./armchair-BaLDW6Hz.js";
24
+ import { G as $a } from "./globe-sHBW1JN5.js";
25
25
  import { R as ja } from "./repeat-CvQa5rZt.js";
26
- import { F as $a } from "./file-pen-line-k4uMBM3h.js";
27
- import { C as Ba } from "./chevron-right-I9AeSxH2.js";
26
+ import { F as Ba } from "./file-pen-line-k4uMBM3h.js";
27
+ import { C as Wa } from "./chevron-right-I9AeSxH2.js";
28
28
  /**
29
29
  * @license lucide-react v1.22.0 - ISC
30
30
  *
@@ -42,14 +42,14 @@ const qa = [
42
42
  ],
43
43
  ["path", { d: "M9 14h6", key: "159ibu" }],
44
44
  ["path", { d: "M12 17v-6", key: "1y8rbf" }]
45
- ], Wa = oa("clipboard-plus", qa);
45
+ ], Ga = la("clipboard-plus", qa);
46
46
  /**
47
47
  * @license lucide-react v1.22.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
51
  */
52
- const Ga = [
52
+ const Ha = [
53
53
  [
54
54
  "path",
55
55
  {
@@ -60,7 +60,7 @@ const Ga = [
60
60
  ["path", { d: "M7 11h10", key: "1twpyw" }],
61
61
  ["path", { d: "M7 15h6", key: "d9of3u" }],
62
62
  ["path", { d: "M7 7h8", key: "af5zfr" }]
63
- ], Ha = oa("message-square-text", Ga), Ka = {
63
+ ], Ka = la("message-square-text", Ha), Ya = {
64
64
  "var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
65
65
  "var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
66
66
  "var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
@@ -73,23 +73,23 @@ const Ga = [
73
73
  "var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
74
74
  "var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
75
75
  };
76
- function Ya(a) {
77
- return Ka[_a(a)] ?? "ds:bg-[var(--color-grey-700)]";
78
- }
79
76
  function Xa(a) {
77
+ return Ya[Ea(a)] ?? "ds:bg-[var(--color-grey-700)]";
78
+ }
79
+ function Ja(a) {
80
80
  if (!a) return;
81
81
  const t = new Date(a);
82
82
  if (Number.isNaN(t.getTime())) return;
83
- const u = /* @__PURE__ */ new Date();
84
- let o = u.getFullYear() - t.getFullYear();
85
- const d = u.getMonth() - t.getMonth();
86
- return (d < 0 || d === 0 && u.getDate() < t.getDate()) && o--, o < 0 || o > 130 ? void 0 : o;
83
+ const f = /* @__PURE__ */ new Date();
84
+ let d = f.getFullYear() - t.getFullYear();
85
+ const i = f.getMonth() - t.getMonth();
86
+ return (i < 0 || i === 0 && f.getDate() < t.getDate()) && d--, d < 0 || d > 130 ? void 0 : d;
87
87
  }
88
- const na = {
88
+ const da = {
89
89
  hour: "numeric",
90
90
  minute: "2-digit"
91
91
  };
92
- function Ja(a) {
92
+ function Qa(a) {
93
93
  if (a)
94
94
  try {
95
95
  return new Intl.DateTimeFormat("en", { timeZone: a }).resolvedOptions().timeZone;
@@ -97,7 +97,7 @@ function Ja(a) {
97
97
  return;
98
98
  }
99
99
  }
100
- const Qa = ka(
100
+ const Za = Ca(
101
101
  [
102
102
  "ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
103
103
  "ds:rounded-[var(--radius-md)]",
@@ -161,13 +161,13 @@ const Qa = ka(
161
161
  next: !1
162
162
  }
163
163
  }
164
- ), Za = [
164
+ ), ae = [
165
165
  "ds:min-w-0",
166
166
  "ds:[&>div]:h-auto ds:[&>div]:min-h-8 ds:[&>div]:py-[var(--spacing-2xs)]",
167
167
  "ds:[&_[data-workflow-status-value]]:overflow-visible",
168
168
  "ds:[&_[data-workflow-status-value]]:whitespace-normal",
169
169
  "ds:[&_[data-workflow-status-value]]:break-words"
170
- ].join(" "), ta = [
170
+ ].join(" "), ia = [
171
171
  // Interactive elements need a box to remain keyboard-focusable in browsers.
172
172
  "ds:inline-flex ds:min-w-0",
173
173
  "ds:focus-visible:outline-none",
@@ -178,148 +178,148 @@ const Qa = ka(
178
178
  "ds:focus-visible:after:outline-[color:var(--ring)]",
179
179
  "ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
180
180
  "ds:forced-colors:focus-visible:after:outline-[CanvasText]"
181
- ].join(" "), ae = {
182
- inPractice: La,
183
- telehealth: Ia
184
- }, ee = Na(
181
+ ].join(" "), ee = {
182
+ inPractice: _a,
183
+ telehealth: Va
184
+ }, se = wa(
185
185
  ({
186
186
  item: a,
187
187
  size: t = "sm",
188
- surface: u = "flat",
189
- locale: o,
190
- timeZone: d,
191
- currency: C = "EUR",
192
- showPatient: i = !0,
193
- onActivate: p,
194
- selected: z = !1,
195
- hideDefaultStatus: da = !1,
196
- privacy: l = !1,
197
- privacyTitle: ia,
198
- wrapText: b = !1,
199
- className: la,
200
- ...ca
201
- }, pa) => {
202
- var P, E, O, U, F, j, $, B, q, W, G, H, K, Y, X, J, Q, Z;
203
- const { t: s } = ya("ui"), f = aa(() => Ja(d), [d]), ma = aa(
204
- () => f ? { ...na, timeZone: f } : na,
205
- [f]
188
+ surface: f = "flat",
189
+ locale: d,
190
+ timeZone: i,
191
+ currency: z = "EUR",
192
+ showPatient: l = !0,
193
+ onActivate: m,
194
+ selected: T = !1,
195
+ hideDefaultStatus: ca = !1,
196
+ privacy: c = !1,
197
+ privacyTitle: pa,
198
+ wrapText: g = !1,
199
+ className: S,
200
+ ...ma
201
+ }, ua) => {
202
+ var O, U, F, $, j, B, W, q, G, H, K, Y, X, J, Q, Z, aa, ea;
203
+ const { t: s } = za("ui"), h = sa(() => Qa(i), [i]), fa = sa(
204
+ () => h ? { ...da, timeZone: h } : da,
205
+ [h]
206
206
  );
207
- wa(() => {
208
- d && !f && Ta() && console.warn(
209
- `AppointmentCard: "${d}" is not a time zone this browser knows, so the start time shows in the browser's own zone.`
207
+ ya(() => {
208
+ i && !h && Ma() && console.warn(
209
+ `AppointmentCard: "${i}" is not a time zone this browser knows, so the start time shows in the browser's own zone.`
210
210
  );
211
- }, [d, f]);
212
- const g = !!p, ua = !!a.url && Aa(a.url), fa = !(da && a.state === "confirmed"), x = ((P = a.patient) == null ? void 0 : P.name) ?? s("appointmentCard.noPatient"), m = (E = a.operator) == null ? void 0 : E.name, h = s(`appointmentCard.state.${a.state}`), T = Da(a.state), ga = T.Icon, ha = ((O = a.flags) == null ? void 0 : O.noPatientAssigned) || !a.patient, S = l && i && a.patient !== void 0, M = l ? void 0 : Xa((U = a.patient) == null ? void 0 : U.dobIso), R = ((F = a.practiceName) == null ? void 0 : F.trim()) || void 0, N = t === "md" ? "md" : "sm", va = ae[a.type], A = i ? x : m ?? s("appointmentCard.appointment"), D = S ? s("appointmentCard.itemLabelGeneric", {
211
+ }, [i, h]);
212
+ const v = !!m, ga = !!a.url && Da(a.url), o = a.state ?? void 0, ha = o !== void 0 && !(ca && o === "confirmed"), N = ((O = a.patient) == null ? void 0 : O.name) ?? s("appointmentCard.noPatient"), u = (U = a.operator) == null ? void 0 : U.name, b = s(o ? `appointmentCard.state.${o}` : "workflowStatus.noStatus"), M = Pa(o ?? ""), va = M.Icon, ba = ((F = a.flags) == null ? void 0 : F.noPatientAssigned) || !a.patient, R = c && l && a.patient !== void 0, A = c ? void 0 : Ja(($ = a.patient) == null ? void 0 : $.dobIso), D = ((j = a.practiceName) == null ? void 0 : j.trim()) || void 0, k = t === "md" ? "md" : "sm", xa = ee[a.type], V = l ? N : u ?? s("appointmentCard.appointment"), _ = o ? R ? s("appointmentCard.itemLabelGeneric", {
213
213
  title: s("appointmentPeek.hiddenName"),
214
- state: h
215
- }) : i ? s("appointmentCard.itemLabel", {
216
- patient: x,
217
- state: h
218
- }) : s("appointmentCard.itemLabelGeneric", { title: A, state: h }), w = /* @__PURE__ */ r(
214
+ state: b
215
+ }) : l ? s("appointmentCard.itemLabel", {
216
+ patient: N,
217
+ state: b
218
+ }) : s("appointmentCard.itemLabelGeneric", { title: V, state: b }) : void 0, w = /* @__PURE__ */ r(
219
219
  "span",
220
220
  {
221
- className: (b ? "ds:min-w-0 ds:break-words" : "ds:min-w-0 ds:truncate") + " type-title-item ds:text-[color:var(--foreground)]",
221
+ className: (g ? "ds:min-w-0 ds:break-words" : "ds:min-w-0 ds:truncate") + " type-title-item ds:text-[color:var(--foreground)]",
222
222
  children: [
223
- S ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
224
- /* @__PURE__ */ e(Pa, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
225
- /* @__PURE__ */ e(Sa, { children: s("appointmentPeek.hiddenName") }),
226
- /* @__PURE__ */ e("span", { "aria-hidden": "true", children: Ma(ia) })
227
- ] }) : A,
228
- i && M !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
223
+ R ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
224
+ /* @__PURE__ */ e(Ia, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
225
+ /* @__PURE__ */ e(oa, { children: s("appointmentPeek.hiddenName") }),
226
+ /* @__PURE__ */ e("span", { "aria-hidden": "true", children: Ra(pa) })
227
+ ] }) : V,
228
+ l && A !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
229
229
  "· ",
230
- M
230
+ A
231
231
  ] }) : null
232
232
  ]
233
233
  }
234
234
  );
235
- let v;
236
- g && ua ? v = /* @__PURE__ */ e(
235
+ let x;
236
+ v && ga ? x = /* @__PURE__ */ e(
237
237
  "a",
238
238
  {
239
239
  href: a.url,
240
- "aria-label": D,
240
+ "aria-label": _,
241
241
  "data-action": "open-appointment",
242
- className: ta,
242
+ className: ia,
243
243
  onClick: (n) => {
244
- n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || p == null || p(a);
244
+ n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || m == null || m(a);
245
245
  },
246
246
  children: w
247
247
  }
248
- ) : g ? v = /* @__PURE__ */ e(
248
+ ) : v ? x = /* @__PURE__ */ e(
249
249
  "button",
250
250
  {
251
251
  type: "button",
252
- "aria-label": D,
252
+ "aria-label": _,
253
253
  "data-action": "open-appointment",
254
- className: ta + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
255
- onClick: () => p == null ? void 0 : p(a),
254
+ className: ia + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
255
+ onClick: () => m == null ? void 0 : m(a),
256
256
  children: w
257
257
  }
258
- ) : v = w;
259
- const V = (a.treatments ?? []).map((n, ba) => {
260
- const xa = n.elements && n.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
258
+ ) : x = w;
259
+ const I = (a.treatments ?? []).map((n, Na) => {
260
+ const ka = n.elements && n.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
261
261
  care: n.careName,
262
262
  elements: n.elements.join(", ")
263
263
  }) : n.careName;
264
264
  return /* @__PURE__ */ e(
265
- Ca,
265
+ Ta,
266
266
  {
267
- label: xa,
267
+ label: ka,
268
268
  variant: "neutral",
269
269
  fill: "outline",
270
270
  size: "sm",
271
271
  maxInlineSize: "12rem"
272
272
  },
273
- `${n.careName}-${ba}`
273
+ `${n.careName}-${Na}`
274
274
  );
275
- }), k = (j = a.bookingReason) == null ? void 0 : j.advanceAmountCents, _ = !l && typeof k == "number" && k > 0, y = ($ = a.money) == null ? void 0 : $.unpaidAmountCents, I = !l && typeof y == "number" && y > 0, L = !l && ((B = a.flags) == null ? void 0 : B.highlightedAnamnesis);
275
+ }), y = (B = a.bookingReason) == null ? void 0 : B.advanceAmountCents, L = !c && typeof y == "number" && y > 0, C = (W = a.money) == null ? void 0 : W.unpaidAmountCents, P = !c && typeof C == "number" && C > 0, E = !c && ((q = a.flags) == null ? void 0 : q.highlightedAnamnesis);
276
276
  return /* @__PURE__ */ r(
277
277
  "div",
278
278
  {
279
- ref: pa,
279
+ ref: ua,
280
280
  role: "listitem",
281
281
  "data-component": "appointment-card",
282
282
  "data-component-id": a.id,
283
- "data-state": a.state,
283
+ "data-state": o,
284
284
  "data-type": a.type,
285
- "data-privacy": l ? "masked" : void 0,
286
- "aria-current": z ? "true" : void 0,
287
- className: Qa({
285
+ "data-privacy": c ? "masked" : void 0,
286
+ "aria-current": T ? "true" : void 0,
287
+ className: Za({
288
288
  size: t,
289
- interactive: g,
290
- surface: u,
291
- selected: z,
289
+ interactive: v,
290
+ surface: f,
291
+ selected: T,
292
292
  dimmed: a.dimmed,
293
293
  next: a.next,
294
- className: la
294
+ className: g ? `ds:@container/apptcard ${S ?? ""}`.trim() : S
295
295
  }),
296
- ...ca,
296
+ ...ma,
297
297
  children: [
298
298
  /* @__PURE__ */ r("span", { className: "ds:flex ds:min-w-20 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
299
299
  /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap ds:text-[color:var(--muted-foreground)]", children: [
300
- /* @__PURE__ */ e(va, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
300
+ /* @__PURE__ */ e(xa, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
301
301
  /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s(`appointmentCard.type.${a.type}`) }),
302
302
  /* @__PURE__ */ e(
303
- za,
303
+ Sa,
304
304
  {
305
305
  value: a.startIso,
306
306
  format: "absolute",
307
307
  shape: "bare",
308
- locale: o,
309
- absoluteFormat: ma,
308
+ locale: d,
309
+ absoluteFormat: fa,
310
310
  className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
311
311
  }
312
312
  )
313
313
  ] }),
314
314
  /* @__PURE__ */ e("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: s("appointmentCard.duration", { count: a.durationMin }) })
315
315
  ] }),
316
- m ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
316
+ u ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
317
317
  /* @__PURE__ */ e(
318
- ea,
318
+ ra,
319
319
  {
320
- name: m,
321
- color: Va((q = a.operator) == null ? void 0 : q.colorId),
322
- size: N,
320
+ name: u,
321
+ color: La((G = a.operator) == null ? void 0 : G.colorId),
322
+ size: k,
323
323
  "aria-hidden": "true",
324
324
  role: "presentation",
325
325
  "aria-label": void 0
@@ -329,7 +329,7 @@ const Qa = ka(
329
329
  "span",
330
330
  {
331
331
  "aria-hidden": "true",
332
- className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " + Ya((W = a.operator) == null ? void 0 : W.colorId)
332
+ className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " + Xa((H = a.operator) == null ? void 0 : H.colorId)
333
333
  }
334
334
  )
335
335
  ] }) : null,
@@ -337,32 +337,38 @@ const Qa = ka(
337
337
  /* @__PURE__ */ r(
338
338
  "div",
339
339
  {
340
- className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]" + (b ? " ds:flex-wrap" : ""),
340
+ className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]" + (g ? " ds:flex-wrap" : ""),
341
341
  children: [
342
- /* @__PURE__ */ r("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
343
- i && !l && ((G = a.patient) != null && G.avatarUrl) ? /* @__PURE__ */ e(
344
- ea,
345
- {
346
- name: x,
347
- src: a.patient.avatarUrl,
348
- size: N,
349
- className: "ds:shrink-0",
350
- "aria-hidden": "true",
351
- role: "presentation",
352
- "aria-label": void 0
353
- }
354
- ) : null,
355
- i && ha ? /* @__PURE__ */ e(
356
- "span",
357
- {
358
- className: `ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ${N === "md" ? "ds:size-10" : "ds:size-8"}`,
359
- children: /* @__PURE__ */ e(Ea, { "aria-hidden": "true", className: "ds:size-4" })
360
- }
361
- ) : null,
362
- v
363
- ] }),
342
+ /* @__PURE__ */ r(
343
+ "div",
344
+ {
345
+ className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]" + (g ? " ds:@max-[400px]/apptcard:basis-full" : ""),
346
+ children: [
347
+ l && !c && ((K = a.patient) != null && K.avatarUrl) ? /* @__PURE__ */ e(
348
+ ra,
349
+ {
350
+ name: N,
351
+ src: a.patient.avatarUrl,
352
+ size: k,
353
+ className: "ds:shrink-0",
354
+ "aria-hidden": "true",
355
+ role: "presentation",
356
+ "aria-label": void 0
357
+ }
358
+ ) : null,
359
+ l && ba ? /* @__PURE__ */ e(
360
+ "span",
361
+ {
362
+ className: `ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ${k === "md" ? "ds:size-10" : "ds:size-8"}`,
363
+ children: /* @__PURE__ */ e(Oa, { "aria-hidden": "true", className: "ds:size-4" })
364
+ }
365
+ ) : null,
366
+ x
367
+ ]
368
+ }
369
+ ),
364
370
  a.next ? /* @__PURE__ */ e(
365
- c,
371
+ p,
366
372
  {
367
373
  variant: "accentSoft",
368
374
  size: "sm",
@@ -371,45 +377,45 @@ const Qa = ka(
371
377
  children: s("appointmentCard.next")
372
378
  }
373
379
  ) : null,
374
- fa ? /* @__PURE__ */ e(
375
- Ra,
380
+ ha && o ? /* @__PURE__ */ e(
381
+ Aa,
376
382
  {
377
383
  size: "sm",
378
- value: a.state,
384
+ value: o,
379
385
  option: {
380
- value: a.state,
381
- label: h,
382
- icon: /* @__PURE__ */ e(ga, { "aria-hidden": "true" }),
383
- tone: T.tone
386
+ value: o,
387
+ label: b,
388
+ icon: /* @__PURE__ */ e(va, { "aria-hidden": "true" }),
389
+ tone: M.tone
384
390
  },
385
- className: b ? Za : "ds:shrink-0"
391
+ className: g ? ae : "ds:shrink-0"
386
392
  }
387
393
  ) : null
388
394
  ]
389
395
  }
390
396
  ),
391
397
  a.next ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s("appointmentCard.nextSr") }) : null,
392
- R ? /* @__PURE__ */ r(
398
+ D ? /* @__PURE__ */ r(
393
399
  "span",
394
400
  {
395
401
  "data-slot": "practice",
396
402
  className: "type-meta ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]",
397
403
  children: [
398
- /* @__PURE__ */ e("span", { className: "ds:flex ds:h-[1lh] ds:shrink-0 ds:items-center", children: /* @__PURE__ */ e(Oa, { "aria-hidden": "true", className: "ds:size-3" }) }),
404
+ /* @__PURE__ */ e("span", { className: "ds:flex ds:h-[1lh] ds:shrink-0 ds:items-center", children: /* @__PURE__ */ e(Ua, { "aria-hidden": "true", className: "ds:size-3" }) }),
399
405
  /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s("appointmentCard.practice") }),
400
- /* @__PURE__ */ e("span", { dir: "auto", className: "ds:min-w-0 ds:break-words", children: R })
406
+ /* @__PURE__ */ e("span", { dir: "auto", className: "ds:min-w-0 ds:break-words", children: D })
401
407
  ]
402
408
  }
403
409
  ) : null,
404
- i && m || (H = a.bookingReason) != null && H.specialty || a.firstVisit === "yes" || a.firstVisit === "unknown" || a.bookingNote ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]", children: [
405
- i && m ? /* @__PURE__ */ e("span", { children: m }) : null,
406
- (K = a.bookingReason) != null && K.specialty ? /* @__PURE__ */ e("span", { children: a.bookingReason.specialty }) : null,
410
+ l && u || (Y = a.bookingReason) != null && Y.specialty || a.firstVisit === "yes" || a.firstVisit === "unknown" || a.bookingNote ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]", children: [
411
+ l && u ? /* @__PURE__ */ e("span", { children: u }) : null,
412
+ (X = a.bookingReason) != null && X.specialty ? /* @__PURE__ */ e("span", { children: a.bookingReason.specialty }) : null,
407
413
  a.firstVisit === "yes" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
408
- /* @__PURE__ */ e(ra, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
414
+ /* @__PURE__ */ e(ta, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
409
415
  s("appointmentCard.firstVisit")
410
416
  ] }) : null,
411
417
  a.firstVisit === "unknown" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
412
- /* @__PURE__ */ e(ra, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
418
+ /* @__PURE__ */ e(ta, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
413
419
  s("appointmentCard.firstVisitUnknown")
414
420
  ] }) : null,
415
421
  a.bookingNote ? /* @__PURE__ */ r(
@@ -419,7 +425,7 @@ const Qa = ka(
419
425
  title: s("appointmentCard.hasBookingNote"),
420
426
  children: [
421
427
  /* @__PURE__ */ e(
422
- Ha,
428
+ Ka,
423
429
  {
424
430
  "aria-hidden": "true",
425
431
  className: "ds:size-3 ds:shrink-0"
@@ -430,63 +436,69 @@ const Qa = ka(
430
436
  }
431
437
  ) : null
432
438
  ] }) : null,
433
- (Y = a.bookingReason) != null && Y.description && !l ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
434
- V.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: V }) : null,
435
- a.carePlan || a.chair || (X = a.flags) != null && X.bookedOnline || L || (J = a.flags) != null && J.billable || a.recurring || a.signing || _ || I ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
439
+ (J = a.bookingReason) != null && J.description && !c ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
440
+ I.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: I }) : null,
441
+ a.carePlan || a.chair || (Q = a.flags) != null && Q.bookedOnline || E || (Z = a.flags) != null && Z.billable || a.recurring || a.signing || L || P ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
436
442
  a.carePlan ? /* @__PURE__ */ e(
437
- c,
443
+ p,
438
444
  {
439
445
  variant: "accentSoft",
440
446
  size: "sm",
441
- leading: /* @__PURE__ */ e(Wa, {}),
447
+ leading: /* @__PURE__ */ e(Ga, {}),
442
448
  children: s("appointmentCard.carePlan", {
443
449
  number: a.carePlan.number
444
450
  })
445
451
  }
446
452
  ) : null,
447
- a.chair ? /* @__PURE__ */ e(c, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Ua, {}), children: s("appointmentCard.chair", { chair: a.chair }) }) : null,
448
- (Q = a.flags) != null && Q.bookedOnline ? /* @__PURE__ */ e(c, { variant: "info", size: "sm", leading: /* @__PURE__ */ e(Fa, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
449
- L ? /* @__PURE__ */ e(c, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
450
- a.recurring ? /* @__PURE__ */ e(c, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ja, {}), children: s("appointmentCard.recurring") }) : null,
453
+ a.chair ? /* @__PURE__ */ r(p, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Fa, {}), children: [
454
+ /* @__PURE__ */ r(oa, { children: [
455
+ s("calendarWorkspace.details.chair"),
456
+ " "
457
+ ] }),
458
+ a.chair
459
+ ] }) : null,
460
+ (aa = a.flags) != null && aa.bookedOnline ? /* @__PURE__ */ e(p, { variant: "info", size: "sm", leading: /* @__PURE__ */ e($a, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
461
+ E ? /* @__PURE__ */ e(p, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
462
+ a.recurring ? /* @__PURE__ */ e(p, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ja, {}), children: s("appointmentCard.recurring") }) : null,
451
463
  a.signing ? /* @__PURE__ */ e(
452
- c,
464
+ p,
453
465
  {
454
466
  variant: a.signing.toComplete >= a.signing.required ? "success" : "warning",
455
467
  size: "sm",
456
- leading: /* @__PURE__ */ e($a, {}),
468
+ leading: /* @__PURE__ */ e(Ba, {}),
457
469
  children: s("appointmentCard.signing", {
458
470
  complete: a.signing.toComplete,
459
471
  required: a.signing.required
460
472
  })
461
473
  }
462
474
  ) : null,
463
- (Z = a.flags) != null && Z.billable ? /* @__PURE__ */ e(c, { variant: "success", size: "sm", withDot: !0, children: s("appointmentCard.flag.billable") }) : null,
464
- _ ? /* @__PURE__ */ e(
465
- sa,
475
+ (ea = a.flags) != null && ea.billable ? /* @__PURE__ */ e(p, { variant: "success", size: "sm", withDot: !0, children: s("appointmentCard.flag.billable") }) : null,
476
+ L ? /* @__PURE__ */ e(
477
+ na,
466
478
  {
467
479
  state: "to-invoice",
468
- amount: k / 100,
469
- currency: C,
470
- locale: o,
480
+ amount: y / 100,
481
+ currency: z,
482
+ locale: d,
471
483
  size: "sm",
472
484
  showLabel: !0
473
485
  }
474
486
  ) : null,
475
- I ? /* @__PURE__ */ e(
476
- sa,
487
+ P ? /* @__PURE__ */ e(
488
+ na,
477
489
  {
478
490
  state: "debt",
479
- amount: y / 100,
480
- currency: C,
481
- locale: o,
491
+ amount: C / 100,
492
+ currency: z,
493
+ locale: d,
482
494
  size: "sm",
483
495
  showLabel: !0
484
496
  }
485
497
  ) : null
486
498
  ] }) : null
487
499
  ] }),
488
- g ? /* @__PURE__ */ e(
489
- Ba,
500
+ v ? /* @__PURE__ */ e(
501
+ Wa,
490
502
  {
491
503
  "aria-hidden": "true",
492
504
  className: "ds:size-4 ds:shrink-0 ds:self-center ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180"
@@ -497,8 +509,8 @@ const Qa = ka(
497
509
  );
498
510
  }
499
511
  );
500
- ee.displayName = "AppointmentCard";
512
+ se.displayName = "AppointmentCard";
501
513
  export {
502
- ee as A
514
+ se as A
503
515
  };
504
- //# sourceMappingURL=appointment-card-BT1cMZIX.js.map
516
+ //# sourceMappingURL=appointment-card-CaxFXtSn.js.map