@alfadocs/ui-kit 1.150.0 → 1.151.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/_chunks/{address-autocomplete-_LeOFdM7.js → address-autocomplete-Bt1nwxyn.js} +2 -2
  2. package/dist/_chunks/{address-fields-C4khof4C.js → address-fields-COumFRSX.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-NgxPuAAz.js → agenda-tray-CmfcYQhc.js} +2 -2
  4. package/dist/_chunks/{ai-summary-panel-D-RNe-_n.js → ai-summary-panel-DyAHCqaj.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-Bjuxk8mU.js → alia-sidebar-BqZjnVoF.js} +2 -2
  6. package/dist/_chunks/{anamnesis-card-G0qzw0Oi.js → anamnesis-card-CoiG7vDj.js} +2 -2
  7. package/dist/_chunks/{anamnesis-summary-rows-CE-i9j-s.js → anamnesis-summary-rows-CFpaA1GP.js} +3 -3
  8. package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
  9. package/dist/_chunks/{appointment-card-BPZggqck.js → appointment-card-CCKjbU5y.js} +105 -104
  10. package/dist/_chunks/{appointment-details-panel.history-BO31ZFQp.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
  11. package/dist/_chunks/{appointment-details-panel.identity-C9kWtC6m.js → appointment-details-panel.identity-9hRo85Lx.js} +4 -4
  12. package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
  13. package/dist/_chunks/{appointment-timeline-ynFqcw0S.js → appointment-timeline-B9KRurfc.js} +3 -3
  14. package/dist/_chunks/{appointment-tray-Dx5VDREk.js → appointment-tray-Be3HuEyO.js} +3 -3
  15. package/dist/_chunks/{balance-badge-cell-DiyJQcmA.js → balance-badge-cell-OghXENKK.js} +3 -3
  16. package/dist/_chunks/{bill-line-table-B8Cc2pTH.js → bill-line-table-DxV5_Dmq.js} +2 -2
  17. package/dist/_chunks/{calendar-appointment-editor-dialog-BfoEpFVx.js → calendar-appointment-editor-dialog-B9MtcBvx.js} +337 -334
  18. package/dist/_chunks/{calendar-editor-discard-host-DO506cJu.js → calendar-editor-discard-host-BudLsUZO.js} +3 -3
  19. package/dist/_chunks/{calendar-waiting-list-panel-CyMTv2y3.js → calendar-waiting-list-panel-DukgSOPH.js} +7 -7
  20. package/dist/_chunks/{calendar-workspace.model-X3aXbDTo.js → calendar-workspace.model-BulUpy0I.js} +2 -2
  21. package/dist/_chunks/{calendar.sheets-C8x8kPb4.js → calendar.sheets-OmTiQdCg.js} +8 -8
  22. package/dist/_chunks/{calls-panel-Bpemmnpd.js → calls-panel-eohONLia.js} +3 -3
  23. package/dist/_chunks/code-BfU9G1ZM.js +15 -0
  24. package/dist/_chunks/{communications-panel-Cd0TBEhL.js → communications-panel-CqiFs8BH.js} +3 -3
  25. package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
  26. package/dist/_chunks/control-room-rail-C-3o1e0e.js +456 -0
  27. package/dist/_chunks/{data-grid-CkzbCZSo.js → data-grid-DTAwrOiq.js} +3 -3
  28. package/dist/_chunks/{data-table-DFAYYsSc.js → data-table-CgpHO6EZ.js} +2 -2
  29. package/dist/_chunks/{default-tabs-C45FVzsG.js → default-tabs-CZaDDf1G.js} +4 -4
  30. package/dist/_chunks/{description-list-DA4TgL_I.js → description-list-DaldSpGy.js} +29 -26
  31. package/dist/_chunks/dev-bypass-button-DFcNpCQj.js +24 -0
  32. package/dist/_chunks/{document-preview-Zws6CHhK.js → document-preview-TbwhY_eK.js} +3 -3
  33. package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
  34. package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
  35. package/dist/_chunks/{error-boundary-BQ5mRqEd.js → error-boundary-BDS1XStO.js} +2 -2
  36. package/dist/_chunks/{error-page-CdNGIezW.js → error-page-3gWV-Vmj.js} +2 -2
  37. package/dist/_chunks/{error-page-illustration-BdJLuMdV.js → error-page-illustration-CJCjLk_-.js} +125 -149
  38. package/dist/_chunks/{face-scheme-BC2whb1S.js → face-scheme-DRYGaszs.js} +255 -264
  39. package/dist/_chunks/{feature-preview-switch-PKeLaFry.js → feature-preview-switch-B_8JTya_.js} +2 -2
  40. package/dist/_chunks/{file-manager-DzOCQBAO.js → file-manager-DMvYx-Gq.js} +4 -4
  41. package/dist/_chunks/{folder-CH9PJHou.js → folder-DvNxod7_.js} +3 -3
  42. package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
  43. package/dist/_chunks/{help-me-write-templates-B_wMJ82X.js → help-me-write-templates-VnvlK87x.js} +2 -2
  44. package/dist/_chunks/{info-tip-cCppV1fD.js → info-tip-DkVISvo-.js} +2 -2
  45. package/dist/_chunks/{invoice-upload-list-BReimsvV.js → invoice-upload-list-DutydbjC.js} +3 -3
  46. package/dist/_chunks/{link-cell-renderer-CWLArl5e.js → link-cell-renderer-DTunki79.js} +3 -3
  47. package/dist/_chunks/{login-dev-card-DqUNJcd7.js → login-dev-card-CQz9yhrU.js} +2 -2
  48. package/dist/_chunks/{map-view-n6GiDRWM.js → map-view-B67HXWPR.js} +2 -2
  49. package/dist/_chunks/mark-adrift-LBqHvZwv.js +42 -0
  50. package/dist/_chunks/{marketplace-app-shell-CGA-R-zt.js → marketplace-app-shell-CclaaAvb.js} +3 -3
  51. package/dist/_chunks/{message-tray-Dx2HPcKB.js → message-tray-DysT-DPS.js} +2 -2
  52. package/dist/_chunks/{note-timeline-BbjHMhkL.js → note-timeline-CS5j2OKD.js} +86 -77
  53. package/dist/_chunks/notebook-text-spVSekMN.js +21 -0
  54. package/dist/_chunks/{notes-panel-BguRX8VC.js → notes-panel-d0I3hOEY.js} +162 -173
  55. package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
  56. package/dist/_chunks/{optical-prescription-BzGnlIjq.js → optical-prescription-CAnXavjq.js} +2 -2
  57. package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
  58. package/dist/_chunks/{panel-subview-Om_yZvFG.js → panel-subview-B5hnQwfQ.js} +2 -2
  59. package/dist/_chunks/{patient-account-settings-YKnBzmwE.js → patient-account-settings-DmB_h5fq.js} +3 -3
  60. package/dist/_chunks/{patient-check-in-resume-DERfQbp5.js → patient-check-in-resume-CI54cY8Z.js} +6 -6
  61. package/dist/_chunks/{patient-details-BUD0UbmT.js → patient-details-wFIzTz7N.js} +3 -3
  62. package/dist/_chunks/{patient-field-row-DytaHdGw.js → patient-field-row-BDgfYLgz.js} +2 -2
  63. package/dist/_chunks/{patient-summary-card-7Werxl48.js → patient-summary-card-ZunOre3Q.js} +162 -155
  64. package/dist/_chunks/{payment-request-card-BF3rakTQ.js → payment-request-card-BSSfKrcc.js} +2 -2
  65. package/dist/_chunks/{portal-details-C1QQGPQf.js → portal-details-BZm8UNMx.js} +4 -4
  66. package/dist/_chunks/{portal-documents-CzEuCaqv.js → portal-documents-CBVSCKAB.js} +3 -3
  67. package/dist/_chunks/{portal-parts-BMW4t57s.js → portal-parts-DRfyhL5P.js} +3 -3
  68. package/dist/_chunks/{practice-results-D0TAgL8v.js → practice-results-CqoB5YAv.js} +5 -5
  69. package/dist/_chunks/{prescription-history-CQuJmd4H.js → prescription-history-CxBM3gnm.js} +4 -4
  70. package/dist/_chunks/{privacy-mask-CrjD5PYW.js → privacy-mask-CaLBAxzj.js} +2 -2
  71. package/dist/_chunks/{product-hub-panel-NVpRuJeW.js → product-hub-panel-RJzrDcGp.js} +3 -3
  72. package/dist/_chunks/{public-header.agent-Dzo6ujrE.js → public-header.agent-B2CqVq4s.js} +2 -2
  73. package/dist/_chunks/{radiograph-panel.agent-Kl1M0dtT.js → radiograph-panel.agent-kgCmmgZk.js} +2 -2
  74. package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
  75. package/dist/_chunks/{registry-connection-panel-kdKbGQE6.js → registry-connection-panel-BkPPA3Fj.js} +3 -3
  76. package/dist/_chunks/{reserved.agent-CW0frsMv.js → reserved.agent-C-sMq0pb.js} +4 -4
  77. package/dist/_chunks/{reviews-panel-54AFY6uy.js → reviews-panel-jIz5aP2X.js} +3 -3
  78. package/dist/_chunks/rich-text-editor-DTadvKa7.js +4716 -0
  79. package/dist/_chunks/{scroll-area-CY5SLYNw.js → scroll-area-RQtcKkHf.js} +84 -79
  80. package/dist/_chunks/{sheet-CZDjW9Q-.js → sheet-1LXzej6Q.js} +2 -2
  81. package/dist/_chunks/{sidebar-D5DFYN5K.js → sidebar-BV9JCgS4.js} +2 -2
  82. package/dist/_chunks/{signed-out-frame-CC25CgKo.js → signed-out-frame-CKA8SSbU.js} +2 -2
  83. package/dist/_chunks/{signing-end-screen-Bq6tkFE6.js → signing-end-screen-HXkalppf.js} +2 -2
  84. package/dist/_chunks/{slot-grid-khIpy8Gx.js → slot-grid-DdqeF6PW.js} +2 -2
  85. package/dist/_chunks/{sync-tray-BQD-HuA4.js → sync-tray-CSVGzuur.js} +2 -2
  86. package/dist/_chunks/{task-editor-CIHQQRtP.js → task-editor-aXjGMwYA.js} +4 -4
  87. package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
  88. package/dist/_chunks/{tasks-panel-Bc_odkQN.js → tasks-panel-BdxHb-fX.js} +2 -2
  89. package/dist/_chunks/{tool-rail-CJBtqzMs.js → tool-rail-C_Ay0Gxi.js} +260 -256
  90. package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
  91. package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
  92. package/dist/_chunks/{treatment-receipt-B6m47Jie.js → treatment-receipt-CZQV1NkJ.js} +45 -46
  93. package/dist/_chunks/{use-appointment-details-read-HVHbR0Zl.js → use-appointment-details-read-BR3TQOHx.js} +878 -809
  94. package/dist/_chunks/user-round-DZxRG9zq.js +15 -0
  95. package/dist/_chunks/{week-availability-D0tTll4q.js → week-availability-D00rMjsX.js} +2 -2
  96. package/dist/_chunks/{workflow-map-F7OThorL.js → workflow-map-DLUTUZ27.js} +2 -2
  97. package/dist/agent-catalog.json +1 -1
  98. package/dist/appointment-editor-panel/index.js +3 -3
  99. package/dist/booking-tools-data/index.js +1 -1
  100. package/dist/browser-support.js +1 -1
  101. package/dist/calendar-action-buttons/index.js +1 -1
  102. package/dist/components/_shared/mark-adrift.d.ts +12 -0
  103. package/dist/components/_shared/safe-html.d.ts +6 -0
  104. package/dist/components/_shared/tooth-chip.d.ts +21 -0
  105. package/dist/components/address-autocomplete/index.js +1 -1
  106. package/dist/components/address-fields/index.js +1 -1
  107. package/dist/components/agenda-tray/index.js +1 -1
  108. package/dist/components/ai-summary-panel/index.js +1 -1
  109. package/dist/components/anamnesis-card/index.js +1 -1
  110. package/dist/components/app-frame/index.js +1 -1
  111. package/dist/components/appointment-card/appointment-card.d.ts +5 -1
  112. package/dist/components/appointment-card/index.js +2 -2
  113. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +9 -2
  114. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +9 -2
  115. package/dist/components/appointment-details-panel/description-length.d.ts +18 -0
  116. package/dist/components/appointment-details-panel/index.d.ts +1 -0
  117. package/dist/components/appointment-details-panel/index.js +7 -6
  118. package/dist/components/appointment-peek/index.js +1 -1
  119. package/dist/components/appointment-timeline/index.js +1 -1
  120. package/dist/components/bill-line-table/index.js +1 -1
  121. package/dist/components/bill-table/index.js +1 -1
  122. package/dist/components/booking/index.js +1 -1
  123. package/dist/components/calls-panel/index.js +1 -1
  124. package/dist/components/communications-panel/index.js +1 -1
  125. package/dist/components/connection-status/index.js +1 -1
  126. package/dist/components/control-room-rail/control-room-rail.d.ts +24 -0
  127. package/dist/components/control-room-rail/index.js +1 -1
  128. package/dist/components/data-grid/index.js +2 -2
  129. package/dist/components/data-table/index.js +3 -3
  130. package/dist/components/description-list/index.js +1 -1
  131. package/dist/components/dev-bypass-button/index.js +1 -1
  132. package/dist/components/document-preview/index.js +1 -1
  133. package/dist/components/empty-state/index.js +1 -1
  134. package/dist/components/error-boundary/index.js +1 -1
  135. package/dist/components/face-scheme/index.js +1 -1
  136. package/dist/components/feature-preview-switch/index.js +1 -1
  137. package/dist/components/file-manager/index.js +1 -1
  138. package/dist/components/heatmap/index.js +1 -1
  139. package/dist/components/info-tip/index.js +1 -1
  140. package/dist/components/invoice-upload-list/index.js +1 -1
  141. package/dist/components/map-view/index.js +1 -1
  142. package/dist/components/message-tray/index.js +1 -1
  143. package/dist/components/note-timeline/index.js +1 -1
  144. package/dist/components/note-timeline/note-timeline.d.ts +8 -0
  145. package/dist/components/notes-panel/index.js +1 -1
  146. package/dist/components/notes-panel/notes-panel.d.ts +18 -7
  147. package/dist/components/notification-tray/index.js +1 -1
  148. package/dist/components/optical-prescription/index.js +1 -1
  149. package/dist/components/panel-subview/index.js +1 -1
  150. package/dist/components/patient-details/index.js +1 -1
  151. package/dist/components/patient-summary-card/index.js +1 -1
  152. package/dist/components/patient-table/index.js +1 -1
  153. package/dist/components/payment-card/index.js +1 -1
  154. package/dist/components/practice-results/index.js +1 -1
  155. package/dist/components/product-hub-tray/index.js +1 -1
  156. package/dist/components/public-header/index.js +1 -1
  157. package/dist/components/radiograph-panel/index.js +1 -1
  158. package/dist/components/registry-connection-panel/index.js +1 -1
  159. package/dist/components/reviews-panel/index.js +1 -1
  160. package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -6
  161. package/dist/components/rich-text-editor/index.d.ts +1 -1
  162. package/dist/components/rich-text-editor/index.js +1 -1
  163. package/dist/components/rich-text-editor/link-bar.d.ts +8 -0
  164. package/dist/components/rich-text-editor/rich-text-editor.d.ts +25 -3
  165. package/dist/components/scroll-area/index.js +1 -1
  166. package/dist/components/scroll-area/scroll-area.d.ts +6 -0
  167. package/dist/components/sheet/index.js +1 -1
  168. package/dist/components/sidebar/index.js +1 -1
  169. package/dist/components/slot-grid/index.js +1 -1
  170. package/dist/components/sync-tray/index.js +1 -1
  171. package/dist/components/task-editor/index.js +1 -1
  172. package/dist/components/task-tray/index.js +1 -1
  173. package/dist/components/tasks-panel/index.js +1 -1
  174. package/dist/components/tool-rail/index.js +1 -1
  175. package/dist/components/tool-rail/tool-rail.d.ts +14 -0
  176. package/dist/components/treatment-receipt/index.js +1 -1
  177. package/dist/components/treatment-receipt/treatment-receipt.d.ts +6 -1
  178. package/dist/components/week-availability/index.js +1 -1
  179. package/dist/components/workflow/index.js +1 -1
  180. package/dist/core.css +1 -1
  181. package/dist/find-free-slots-panel/index.js +1 -1
  182. package/dist/host-compat.css +4 -1
  183. package/dist/host-legacy.css +13 -1
  184. package/dist/i18n/locales/ar.d.ts +9 -0
  185. package/dist/i18n/locales/ar.js +11 -2
  186. package/dist/i18n/locales/de.d.ts +9 -0
  187. package/dist/i18n/locales/de.js +11 -2
  188. package/dist/i18n/locales/el.d.ts +9 -0
  189. package/dist/i18n/locales/el.js +11 -2
  190. package/dist/i18n/locales/en.d.ts +9 -0
  191. package/dist/i18n/locales/en.js +10 -1
  192. package/dist/i18n/locales/es.d.ts +9 -0
  193. package/dist/i18n/locales/es.js +11 -2
  194. package/dist/i18n/locales/fr.d.ts +9 -0
  195. package/dist/i18n/locales/fr.js +11 -2
  196. package/dist/i18n/locales/hi.d.ts +9 -0
  197. package/dist/i18n/locales/hi.js +11 -2
  198. package/dist/i18n/locales/it.d.ts +9 -0
  199. package/dist/i18n/locales/it.js +11 -2
  200. package/dist/i18n/locales/ja.d.ts +9 -0
  201. package/dist/i18n/locales/ja.js +11 -2
  202. package/dist/i18n/locales/nl.d.ts +9 -0
  203. package/dist/i18n/locales/nl.js +11 -2
  204. package/dist/i18n/locales/pl.d.ts +9 -0
  205. package/dist/i18n/locales/pl.js +11 -2
  206. package/dist/i18n/locales/pt.d.ts +9 -0
  207. package/dist/i18n/locales/pt.js +11 -2
  208. package/dist/i18n/locales/ro.d.ts +9 -0
  209. package/dist/i18n/locales/ro.js +11 -2
  210. package/dist/i18n/locales/ru.d.ts +9 -0
  211. package/dist/i18n/locales/ru.js +11 -2
  212. package/dist/i18n/locales/sq.d.ts +9 -0
  213. package/dist/i18n/locales/sq.js +11 -2
  214. package/dist/i18n/locales/sv.d.ts +9 -0
  215. package/dist/i18n/locales/sv.js +11 -2
  216. package/dist/i18n/locales/tr.d.ts +9 -0
  217. package/dist/i18n/locales/tr.js +11 -2
  218. package/dist/i18n/locales/zh.d.ts +9 -0
  219. package/dist/i18n/locales/zh.js +11 -2
  220. package/dist/index.js +818 -817
  221. package/dist/locales/ar.json +11 -2
  222. package/dist/locales/de.json +11 -2
  223. package/dist/locales/el.json +11 -2
  224. package/dist/locales/en.json +10 -1
  225. package/dist/locales/es.json +11 -2
  226. package/dist/locales/fr.json +11 -2
  227. package/dist/locales/hi.json +11 -2
  228. package/dist/locales/it.json +11 -2
  229. package/dist/locales/ja.json +11 -2
  230. package/dist/locales/nl.json +11 -2
  231. package/dist/locales/pl.json +11 -2
  232. package/dist/locales/pt.json +11 -2
  233. package/dist/locales/ro.json +11 -2
  234. package/dist/locales/ru.json +11 -2
  235. package/dist/locales/sq.json +11 -2
  236. package/dist/locales/sv.json +11 -2
  237. package/dist/locales/tr.json +11 -2
  238. package/dist/locales/zh.json +11 -2
  239. package/dist/online-bookings-panel/index.js +2 -2
  240. package/dist/patterns/alia-assistant/index.js +1 -1
  241. package/dist/patterns/anamnesis/index.js +1 -1
  242. package/dist/patterns/calendar/index.js +4 -4
  243. package/dist/patterns/error-page/index.js +2 -2
  244. package/dist/patterns/help-me-write-templates/index.js +1 -1
  245. package/dist/patterns/login-form/index.js +1 -1
  246. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  247. package/dist/patterns/patient-account-settings/index.js +1 -1
  248. package/dist/patterns/patient-check-in/index.js +1 -1
  249. package/dist/patterns/patient-portal/index.js +2 -2
  250. package/dist/patterns/prescription/index.js +1 -1
  251. package/dist/patterns/registration-form/index.js +1 -1
  252. package/dist/patterns/signed-out-frame/index.js +1 -1
  253. package/dist/patterns/signing/index.js +1 -1
  254. package/dist/redactor.css +9 -0
  255. package/dist/safe-html/index.js +33 -19
  256. package/dist/tokens.css +61 -52
  257. package/dist/waiting-list-panel/index.js +3 -3
  258. package/package.json +1 -1
  259. package/dist/_chunks/appointment-peek-CGJ6kUvM.js +0 -213
  260. package/dist/_chunks/control-room-rail-4W1MFY-g.js +0 -416
  261. package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
  262. package/dist/_chunks/rich-text-editor-DCQEpaIv.js +0 -4523
  263. /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
@@ -1,83 +1,85 @@
1
- import { jsxs as b, jsx as e, Fragment as se } from "react/jsx-runtime";
2
- import { c as lt } from "./index-D2ZczOXr.js";
3
- import { useId as at, useRef as R, forwardRef as sn, useEffect as Se, useMemo as St, useState as H, useCallback as on } from "react";
4
- import { useTranslation as Z } from "react-i18next";
5
- import { u as rn } from "./registry-DvAUVLHh.js";
1
+ import { jsxs as b, jsx as e, Fragment as oe } from "react/jsx-runtime";
2
+ import { c as ct } from "./index-D2ZczOXr.js";
3
+ import { useId as st, useRef as R, forwardRef as rn, useEffect as we, useMemo as At, useState as H, useCallback as ln } from "react";
4
+ import { useTranslation as te } from "react-i18next";
5
+ import { u as dn } from "./registry-DvAUVLHh.js";
6
6
  import { u as pe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
- import { c as ln } from "./compose-refs-C0k0tdqF.js";
8
- import { g as it } from "./get-error-message-DbFUzuja.js";
9
- import { useSaveOutcomeUnknownMessage as dn, isSaveOutcomeUnknownError as At, SaveOutcomeUnknownError as cn } from "../save-outcome/index.js";
10
- import { h as Ze } from "./handled-rejection-C-6Dq0As.js";
11
- import { c as un, a as xt } from "./privacy-mask-CrjD5PYW.js";
12
- import { A as Q } from "./alert-C4WKViaS.js";
13
- import { B as E } from "./button-Dp4j9ygh.js";
14
- import { I as je } from "./icon-button-u9VMQn3x.js";
15
- import { B as pn } from "./button-group-CHQD8GJ0.js";
16
- import { D as $e } from "./dropdown-menu-Bm1KALnk.js";
17
- import { E as Bt } from "./editable-description-B2F54K4T.js";
18
- import { N as st } from "./note-timeline-BbjHMhkL.js";
19
- import { P as Wt } from "./panel-header-DTc5OFUg.js";
20
- import { P as et } from "./panel-subview-Om_yZvFG.js";
21
- import { P as $t } from "./patient-summary-card-7Werxl48.js";
7
+ import { c as cn } from "./compose-refs-C0k0tdqF.js";
8
+ import { g as ot } from "./get-error-message-DbFUzuja.js";
9
+ import { useSaveOutcomeUnknownMessage as un, isSaveOutcomeUnknownError as Nt, SaveOutcomeUnknownError as pn } from "../save-outcome/index.js";
10
+ import { h as nt } from "./handled-rejection-C-6Dq0As.js";
11
+ import { c as mn, a as xt } from "./privacy-mask-CaLBAxzj.js";
12
+ import { A as ee } from "./alert-C4WKViaS.js";
13
+ import { B as T } from "./button-Dp4j9ygh.js";
14
+ import { I as Ve } from "./icon-button-u9VMQn3x.js";
15
+ import { B as hn } from "./button-group-CHQD8GJ0.js";
16
+ import { D as ze } from "./dropdown-menu-Bm1KALnk.js";
17
+ import { E as Wt } from "./editable-description-B2F54K4T.js";
18
+ import { N as rt } from "./note-timeline-CS5j2OKD.js";
19
+ import { P as $t } from "./panel-header-DTc5OFUg.js";
20
+ import { P as at } from "./panel-subview-B5hnQwfQ.js";
21
+ import { P as qt } from "./patient-summary-card-ZunOre3Q.js";
22
22
  import { S as me } from "./section-card-CYfeQ6EQ.js";
23
- import { C as mn, S as we } from "./skeleton-tTWJpvAq.js";
24
- import { F as hn } from "./form-field-CyHfOVKF.js";
25
- import { T as fn } from "./text-area-DbxGkpzE.js";
26
- import { T as gn } from "./tooltip-uEBdD1-5.js";
27
- import { T as qt } from "./treatment-receipt-B6m47Jie.js";
28
- import { a as tt } from "./whatsapp-button-XbozeDl_.js";
29
- import { W as vn, a as yn } from "./workflow-status-Cg7yjnye.js";
30
- import { a as Nt, u as bn, i as kn } from "./appointment-workflow-status-S-lx81Yz.js";
31
- import { M as wn, C as Tt, A as Sn } from "./appointment-details-panel.history-BO31ZFQp.js";
32
- import { R as An, a as Ct, b as zt, e as xn, g as Nn, h as Tn, c as Cn, d as En, i as In, D as Et, f as Dn, j as Rn, p as Pn } from "./appointment-details-panel.identity-C9kWtC6m.js";
33
- import { A as It } from "./avatar-Dp5apm1d.js";
34
- import { B as Kt } from "./badge-BUk4RjTS.js";
35
- import { C as Ln } from "./counter-WsvRuum1.js";
36
- import { D as qe } from "./description-list-DA4TgL_I.js";
37
- import { T as Dt } from "./timestamp-UMF1llBs.js";
38
- import { T as On } from "./transaction-chip-6jToArJn.js";
39
- import { H as Ae } from "./hover-card-CS8ulBf9.js";
40
- import { c as jt } from "./createLucideIcon-DhHxpK9K.js";
41
- import { S as Rt } from "./smartphone-C0rFF2if.js";
42
- import { P as Fn } from "./phone-FceYcIFQ.js";
43
- import { M as _n } from "./mail-BqXVF2zH.js";
44
- import { M as Hn } from "./map-pin-BaY37-Km.js";
45
- import { F as Mn } from "./file-pen-line-k4uMBM3h.js";
46
- import { P as Un } from "./pen-line-D0De5zdl.js";
47
- import { C as Bn } from "./credit-card-D9XZsHGA.js";
48
- import { H as Wn } from "./heart-pulse-BCppJyN2.js";
49
- import { R as $n } from "./refresh-cw-DnI0cLFC.js";
50
- import { F as Yt, a as qn } from "./folder-CH9PJHou.js";
51
- import { G as zn } from "./globe-sHBW1JN5.js";
52
- import { C as Kn } from "./calendar-days-BGWklvE-.js";
53
- import { C as jn } from "./clock-Drd4Wtis.js";
54
- import { H as Yn } from "./hourglass-BEAzW1wE.js";
55
- import { V as Gt } from "./video-BheNGvsu.js";
56
- import { A as Pt } from "./armchair-BaLDW6Hz.js";
57
- import { B as Gn } from "./building-2-D33bLCWL.js";
58
- import { R as Vn } from "./repeat-CvQa5rZt.js";
59
- import { N as Xn } from "./notebook-pen-CO7HoM-W.js";
60
- import { C as Vt } from "./clipboard-list-rSzfIYZB.js";
61
- import { U as Jn } from "./user-plus-BtcOLgNU.js";
62
- import { P as nt } from "./pencil-B1sKKyuT.js";
63
- import { C as Qn } from "./copy-vRpqqHtY.js";
64
- import { P as Zn } from "./plus-DzMQ_c6b.js";
65
- import { S as ea } from "./square-check-big-dj0o8yA3.js";
66
- import { T as ta } from "./trash-2-uumy3fy1.js";
67
- import { H as Lt } from "./history-CK2JaU2g.js";
68
- import { C as Xt } from "./calendar-clock-hbObjfGY.js";
69
- import { C as na } from "./chevron-down-DWE7GSq9.js";
70
- import { C as aa } from "./camera-VSklPDCv.js";
71
- import { F as ia } from "./file-BuG1VMAy.js";
72
- import { F as sa } from "./file-text-5yv6r2ls.js";
73
- import { R as oa } from "./receipt-euro-B1cLM_TN.js";
23
+ import { C as fn, S as ke } from "./skeleton-tTWJpvAq.js";
24
+ import { F as gn } from "./form-field-CyHfOVKF.js";
25
+ import { T as vn } from "./text-area-DbxGkpzE.js";
26
+ import { T as yn } from "./tooltip-uEBdD1-5.js";
27
+ import { T as zt } from "./treatment-receipt-CZQV1NkJ.js";
28
+ import { a as it } from "./whatsapp-button-XbozeDl_.js";
29
+ import { W as bn, a as kn } from "./workflow-status-Cg7yjnye.js";
30
+ import { a as Ct, u as wn, i as Sn } from "./appointment-workflow-status-S-lx81Yz.js";
31
+ import { M as An, C as Tt, A as Nn } from "./appointment-details-panel.history-FSsTXj1t.js";
32
+ import { R as xn, a as Et, b as Kt, e as Cn, g as Tn, j as En, c as In, d as Dn, h as Rn, D as It, f as Pn, i as Ln, p as On } from "./appointment-details-panel.identity-9hRo85Lx.js";
33
+ import { A as Dt } from "./avatar-Dp5apm1d.js";
34
+ import { B as jt } from "./badge-BUk4RjTS.js";
35
+ import { C as Fn } from "./counter-WsvRuum1.js";
36
+ import { D as Ke } from "./description-list-DaldSpGy.js";
37
+ import { T as Rt } from "./timestamp-UMF1llBs.js";
38
+ import { T as _n } from "./transaction-chip-6jToArJn.js";
39
+ import { H as Se } from "./hover-card-CS8ulBf9.js";
40
+ import { c as Yt } from "./createLucideIcon-DhHxpK9K.js";
41
+ import { U as Hn } from "./user-round-DZxRG9zq.js";
42
+ import { S as Pt } from "./smartphone-C0rFF2if.js";
43
+ import { P as Mn } from "./phone-FceYcIFQ.js";
44
+ import { M as Un } from "./mail-BqXVF2zH.js";
45
+ import { M as Bn } from "./map-pin-BaY37-Km.js";
46
+ import { F as Wn } from "./file-pen-line-k4uMBM3h.js";
47
+ import { P as $n } from "./pen-line-D0De5zdl.js";
48
+ import { C as qn } from "./credit-card-D9XZsHGA.js";
49
+ import { H as zn } from "./heart-pulse-BCppJyN2.js";
50
+ import { R as Kn } from "./refresh-cw-DnI0cLFC.js";
51
+ import { a as Gt, F as jn } from "./folder-DvNxod7_.js";
52
+ import { N as Vt } from "./notebook-text-spVSekMN.js";
53
+ import { C as Yn } from "./calendar-days-BGWklvE-.js";
54
+ import { C as Gn } from "./clock-Drd4Wtis.js";
55
+ import { H as Vn } from "./hourglass-BEAzW1wE.js";
56
+ import { V as Xt } from "./video-BheNGvsu.js";
57
+ import { A as Lt } from "./armchair-BaLDW6Hz.js";
58
+ import { B as Xn } from "./building-2-D33bLCWL.js";
59
+ import { R as Jn } from "./repeat-CvQa5rZt.js";
60
+ import { G as Qn } from "./globe-sHBW1JN5.js";
61
+ import { N as Zn } from "./notebook-pen-CO7HoM-W.js";
62
+ import { C as Jt } from "./clipboard-list-rSzfIYZB.js";
63
+ import { U as ea } from "./user-plus-BtcOLgNU.js";
64
+ import { P as Ot } from "./pencil-B1sKKyuT.js";
65
+ import { C as ta } from "./copy-vRpqqHtY.js";
66
+ import { P as na } from "./plus-DzMQ_c6b.js";
67
+ import { S as aa } from "./square-check-big-dj0o8yA3.js";
68
+ import { T as ia } from "./trash-2-uumy3fy1.js";
69
+ import { H as Ft } from "./history-CK2JaU2g.js";
70
+ import { C as Qt } from "./calendar-clock-hbObjfGY.js";
71
+ import { C as sa } from "./chevron-down-DWE7GSq9.js";
72
+ import { C as oa } from "./camera-VSklPDCv.js";
73
+ import { F as ra } from "./file-BuG1VMAy.js";
74
+ import { F as la } from "./file-text-5yv6r2ls.js";
75
+ import { R as da } from "./receipt-euro-B1cLM_TN.js";
74
76
  /**
75
77
  * @license lucide-react v1.22.0 - ISC
76
78
  *
77
79
  * This source code is licensed under the ISC license.
78
80
  * See the LICENSE file in the root directory of this source tree.
79
81
  */
80
- const ra = [
82
+ const ca = [
81
83
  ["path", { d: "M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8", key: "1w3rig" }],
82
84
  ["path", { d: "M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1", key: "n2jgmb" }],
83
85
  ["path", { d: "M2 21h20", key: "1nyx9w" }],
@@ -87,20 +89,28 @@ const ra = [
87
89
  ["path", { d: "M7 4h.01", key: "1bh4kh" }],
88
90
  ["path", { d: "M12 4h.01", key: "1ujb9j" }],
89
91
  ["path", { d: "M17 4h.01", key: "1upcoc" }]
90
- ], la = jt("cake", ra);
92
+ ], ua = Yt("cake", ca);
91
93
  /**
92
94
  * @license lucide-react v1.22.0 - ISC
93
95
  *
94
96
  * This source code is licensed under the ISC license.
95
97
  * See the LICENSE file in the root directory of this source tree.
96
98
  */
97
- const da = [
99
+ const pa = [
98
100
  ["path", { d: "M16 10h2", key: "8sgtl7" }],
99
101
  ["path", { d: "M16 14h2", key: "epxaof" }],
100
102
  ["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
101
103
  ["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
102
104
  ["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
103
- ], ca = jt("id-card", da), ua = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', pa = {
105
+ ], ma = Yt("id-card", pa);
106
+ function ha(t) {
107
+ const n = t.trim();
108
+ let i = 0;
109
+ for (let r = 0; r < n.length; r += 1)
110
+ i += n.charCodeAt(r) >= 256 ? 6 : 1;
111
+ return i;
112
+ }
113
+ const fa = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', ga = {
104
114
  id: "appointment-details-panel",
105
115
  // open and close back open_history and close_history; set_value backs
106
116
  // set_status.
@@ -216,7 +226,7 @@ const da = [
216
226
  root: {
217
227
  attr: "data-component",
218
228
  value: "appointment-details-panel",
219
- description: `Marks the panel. It also carries data-event-id and data-status. Inside, cards carry data-card (patient, appointment, notes, treatments), footer actions data-action, and the History and description sub-views data-details-subview. An action in offeredActions with no data-action in the footer strip is folded into More: click the panel's ${ua}, and its menu item carries the same data-action.`
229
+ description: `Marks the panel. It also carries data-event-id and data-status. Inside, cards carry data-card (patient, appointment, notes, treatments), footer actions data-action, and the History and description sub-views data-details-subview. An action in offeredActions with no data-action in the footer strip is folded into More: click the panel's ${fa}, and its menu item carries the same data-action.`
220
230
  },
221
231
  instanceId: {
222
232
  attr: "data-component-id",
@@ -225,13 +235,13 @@ const da = [
225
235
  }
226
236
  }
227
237
  };
228
- function ot(t) {
238
+ function lt(t) {
229
239
  const n = document.activeElement;
230
240
  n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
231
241
  }
232
242
  function _e(t) {
233
243
  const n = document.getElementById(t);
234
- n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), ot(n);
244
+ n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), lt(n);
235
245
  }
236
246
  const ue = {
237
247
  advancedSignature: "setup-advanced-signature",
@@ -242,7 +252,7 @@ const ue = {
242
252
  unlockPayments: "unlock-payments",
243
253
  carePlan: "open-care-plan"
244
254
  };
245
- function ze(t) {
255
+ function Ye(t) {
246
256
  if (t)
247
257
  try {
248
258
  const { protocol: n } = new URL(t, "https://host.invalid");
@@ -251,7 +261,7 @@ function ze(t) {
251
261
  return;
252
262
  }
253
263
  }
254
- const ma = {
264
+ const va = {
255
265
  SU: 0,
256
266
  MO: 1,
257
267
  TU: 2,
@@ -259,195 +269,214 @@ const ma = {
259
269
  TH: 4,
260
270
  FR: 5,
261
271
  SA: 6
262
- }, ha = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], fa = {
272
+ }, ya = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], ba = {
263
273
  daily: "recurrenceEveryDay",
264
274
  weekly: "recurrenceEveryWeek",
265
275
  monthly: "recurrenceEveryMonth",
266
276
  yearly: "recurrenceEveryYear"
267
- }, ga = {
277
+ }, ka = {
268
278
  1: "recurrenceOrdinal1",
269
279
  2: "recurrenceOrdinal2",
270
280
  3: "recurrenceOrdinal3",
271
281
  4: "recurrenceOrdinal4"
272
- }, va = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
273
- function Ot(t, n) {
274
- const i = new Date(2026, 0, 4 + ma[t]);
282
+ }, wa = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
283
+ function _t(t, n) {
284
+ const i = new Date(2026, 0, 4 + va[t]);
275
285
  return new Intl.DateTimeFormat(n, { weekday: "long" }).format(i);
276
286
  }
277
- function ya(t, n, i) {
278
- const d = Ct(n);
279
- if (!Number.isFinite(d.getTime())) return;
280
- const c = i ? Ct(i) : void 0, o = c && c.getFullYear() === d.getFullYear();
287
+ function Sa(t, n, i) {
288
+ const r = Et(n);
289
+ if (!Number.isFinite(r.getTime())) return;
290
+ const c = i ? Et(i) : void 0, o = c && c.getFullYear() === r.getFullYear();
281
291
  try {
282
292
  return new Intl.DateTimeFormat(t, {
283
293
  day: "numeric",
284
294
  month: "long",
285
295
  ...o ? {} : { year: "numeric" }
286
- }).format(d);
296
+ }).format(r);
287
297
  } catch {
288
298
  return;
289
299
  }
290
300
  }
291
- function ba(t, n, i, d) {
292
- const c = An[i.frequency];
301
+ function Aa(t, n, i, r) {
302
+ const c = xn[i.frequency];
293
303
  if (!c) return;
294
- const o = (g) => `calendarWorkspace.editor.${g}`, u = (g) => `calendarWorkspace.details.${g}`, h = fa[i.frequency], p = h && (i.interval ?? 1) > 1 ? t(o(h), { count: i.interval }) : t(o(c)), a = (i.byDay ?? []).map((g) => va.exec(g)).filter((g) => g !== null), r = i.frequency === "weekly" ? ha.filter(
295
- (g) => a.some(([, f, N]) => !f && N === g)
296
- ) : [], l = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, g]) => g) : void 0;
297
- let A = p;
298
- if (r.length > 0)
299
- A = t(u("seriesOnDays"), {
300
- every: p,
304
+ const o = (y) => `calendarWorkspace.editor.${y}`, p = (y) => `calendarWorkspace.details.${y}`, f = ba[i.frequency], m = f && (i.interval ?? 1) > 1 ? t(o(f), { count: i.interval }) : t(o(c)), a = (i.byDay ?? []).map((y) => wa.exec(y)).filter((y) => y !== null), l = i.frequency === "weekly" ? ya.filter(
305
+ (y) => a.some(([, g, x]) => !g && x === y)
306
+ ) : [], d = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, y]) => y) : void 0;
307
+ let A = m;
308
+ if (l.length > 0)
309
+ A = t(p("seriesOnDays"), {
310
+ every: m,
301
311
  days: new Intl.ListFormat(n, { type: "conjunction" }).format(
302
- r.map((g) => Ot(g, n))
312
+ l.map((y) => _t(y, n))
303
313
  )
304
314
  });
305
- else if (l) {
306
- const [, g, f] = l, N = Ot(f, n);
307
- A = g === "-1" ? t(u("seriesOnLast"), { every: p, weekday: N }) : t(u("seriesOnNth"), {
308
- every: p,
309
- weekday: N,
310
- ordinal: t(o(ga[g]))
315
+ else if (d) {
316
+ const [, y, g] = d, x = _t(g, n);
317
+ A = y === "-1" ? t(p("seriesOnLast"), { every: m, weekday: x }) : t(p("seriesOnNth"), {
318
+ every: m,
319
+ weekday: x,
320
+ ordinal: t(o(ka[y]))
311
321
  });
312
322
  }
313
323
  if (i.count !== void 0)
314
- return t(u("seriesRule"), {
324
+ return t(p("seriesRule"), {
315
325
  frequency: A,
316
326
  count: i.count
317
327
  });
318
- const v = i.untilIso ? ya(n, i.untilIso, d) : void 0;
319
- return v ? t(u("seriesUntil"), { rule: A, date: v }) : A;
328
+ const v = i.untilIso ? Sa(n, i.untilIso, r) : void 0;
329
+ return v ? t(p("seriesUntil"), { rule: A, date: v }) : A;
320
330
  }
321
- function rt({
331
+ function dt({
322
332
  eyebrow: t,
323
333
  heading: n,
324
334
  facts: i
325
335
  }) {
326
- return /* @__PURE__ */ b(se, { children: [
327
- /* @__PURE__ */ e(Ae.Eyebrow, { children: t }),
328
- /* @__PURE__ */ e(Ae.Heading, { children: n }),
329
- i && i.length > 0 ? /* @__PURE__ */ e(Ae.Body, { children: /* @__PURE__ */ e("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0 type-body-sm", children: i.map((d, c) => /* @__PURE__ */ e(
336
+ return /* @__PURE__ */ b(oe, { children: [
337
+ /* @__PURE__ */ e(Se.Eyebrow, { children: t }),
338
+ /* @__PURE__ */ e(Se.Heading, { children: n }),
339
+ i && i.length > 0 ? /* @__PURE__ */ e(Se.Body, { children: /* @__PURE__ */ e("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0 type-body-sm", children: i.map((r, c) => /* @__PURE__ */ e(
330
340
  "li",
331
341
  {
332
- className: d.muted ? "ds:text-[color:var(--muted-foreground)]" : void 0,
333
- children: d.text
342
+ className: r.muted ? "ds:text-[color:var(--muted-foreground)]" : void 0,
343
+ children: r.text
334
344
  },
335
345
  c
336
346
  )) }) }) : null
337
347
  ] });
338
348
  }
339
- const ka = "ds:inline-flex ds:cursor-pointer ds:rounded-[var(--radius-full)] ds:p-0 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
340
- function Ft({
349
+ const Na = "ds:inline-flex ds:cursor-pointer ds:rounded-[var(--radius-full)] ds:p-0 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
350
+ function Ht({
341
351
  id: t,
342
352
  eyebrow: n,
343
353
  heading: i,
344
- facts: d,
354
+ facts: r,
345
355
  children: c
346
356
  }) {
347
- return /* @__PURE__ */ b(Ae, { children: [
348
- /* @__PURE__ */ e(Ae.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: ka, children: c }) }),
349
- /* @__PURE__ */ e(Ae.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(rt, { eyebrow: n, heading: i, facts: d }) })
357
+ return /* @__PURE__ */ b(Se, { children: [
358
+ /* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: Na, children: c }) }),
359
+ /* @__PURE__ */ e(Se.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(dt, { eyebrow: n, heading: i, facts: r }) })
350
360
  ] });
351
361
  }
352
- const s = (t) => `calendarWorkspace.details.${t}`, wa = {
362
+ const s = (t) => `calendarWorkspace.details.${t}`, xa = {
353
363
  missing: "consentMissing",
354
364
  requested: "consentRequested",
355
365
  signed: "consentSigned"
356
- }, Jt = (t) => /* @__PURE__ */ e("a", { href: `tel:${t.replace(/\s/g, "")}`, dir: "ltr", children: t }), Qt = (t) => /* @__PURE__ */ e("a", { href: `mailto:${t}`, dir: "ltr", children: t }), Zt = (t, n, i) => new Intl.NumberFormat(t, { style: "currency", currency: i }).format(n);
357
- function Ke({
366
+ }, Zt = (t) => /* @__PURE__ */ e("a", { href: `tel:${t.replace(/\s/g, "")}`, dir: "ltr", children: t }), en = (t) => /* @__PURE__ */ e("a", { href: `mailto:${t}`, dir: "ltr", children: t }), tn = (t, n, i) => new Intl.NumberFormat(t, { style: "currency", currency: i }).format(n);
367
+ function Ge({
358
368
  href: t,
359
369
  action: n,
360
370
  icon: i,
361
- iconOnly: d = !1,
371
+ iconOnly: r = !1,
362
372
  children: c
363
373
  }) {
364
- const o = ze(t);
374
+ const o = Ye(t);
365
375
  return o ? /* @__PURE__ */ e(
366
- E,
376
+ T,
367
377
  {
368
378
  asChild: !0,
369
379
  size: "sm",
370
380
  intent: "outline",
371
381
  "data-action": n,
372
382
  startIcon: i,
373
- hideLabel: d,
383
+ hideLabel: r,
374
384
  children: /* @__PURE__ */ e("a", { href: o, children: c })
375
385
  }
376
386
  ) : null;
377
387
  }
378
- function _t({ rows: t }) {
379
- const n = t.filter((i) => !!i);
380
- return n.length === 0 ? null : /* @__PURE__ */ e(qe, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */ b(
381
- qe.Row,
388
+ const Ca = "ds:[--description-list-icon-color:var(--accent)] ds:[--description-list-icon-gap:var(--spacing-md)]";
389
+ function je({
390
+ rows: t,
391
+ stacked: n = !1
392
+ }) {
393
+ const i = t.filter((r) => !!r);
394
+ return i.length === 0 ? null : /* @__PURE__ */ e(
395
+ Ke,
382
396
  {
383
- "data-row": i.id,
384
- icon: i.icon,
385
- children: [
386
- /* @__PURE__ */ e(qe.Term, { children: i.label }),
387
- /* @__PURE__ */ e(qe.Detail, { children: i.value })
388
- ]
389
- },
390
- i.id
391
- )) });
397
+ layout: n ? "stacked" : "inline",
398
+ density: "compact",
399
+ className: Ca,
400
+ children: i.map((r) => /* @__PURE__ */ b(
401
+ Ke.Row,
402
+ {
403
+ "data-row": r.id,
404
+ icon: r.icon,
405
+ children: [
406
+ /* @__PURE__ */ e(Ke.Term, { children: r.label }),
407
+ /* @__PURE__ */ e(Ke.Detail, { children: r.value })
408
+ ]
409
+ },
410
+ r.id
411
+ ))
412
+ }
413
+ );
392
414
  }
393
- function Sa({
415
+ function Ta({
394
416
  details: t,
395
417
  locale: n,
396
418
  currency: i,
397
- now: d,
419
+ now: r,
398
420
  mapsLink: c = !1,
399
421
  shortcuts: o,
400
- onRequestSignature: u,
401
- onSignOnDevice: h,
402
- onOpenPatient: p
422
+ onRequestSignature: p,
423
+ onSignOnDevice: f,
424
+ onOpenPatient: m
403
425
  }) {
404
- const { t: a } = Z("ui"), { patient: r, signing: l, money: A, booking: v } = t;
405
- if (!r) return null;
406
- const g = (l == null ? void 0 : l.consents) ?? [], f = l && (l.required > 0 || g.length > 0) ? l : void 0, N = ((f == null ? void 0 : f.toComplete) ?? 0) > 0, L = f ? [
426
+ const { t: a } = te("ui"), { patient: l, signing: d, money: A, booking: v } = t;
427
+ if (!l) return null;
428
+ const y = (d == null ? void 0 : d.consents) ?? [], g = d && (d.required > 0 || y.length > 0) ? d : void 0, x = ((g == null ? void 0 : g.toComplete) ?? 0) > 0, L = g ? [
407
429
  {
408
- text: N ? f.requestedVia === "sms" ? a(s("signingRequestedSms")) : f.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
430
+ text: x ? g.requestedVia === "sms" ? a(s("signingRequestedSms")) : g.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
409
431
  },
410
- ...f.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
411
- ] : [], P = ((l == null ? void 0 : l.required) ?? 0) > 0 && N, T = !!(o != null && o.advancedSignatureUrl) && ((l == null ? void 0 : l.required) ?? 0) > 0 && !(l != null && l.aesSetUp), M = !!u && P, I = !!h && P, F = r.highlightedAnamnesisCount ?? 0, C = r.expiredAnamnesisCount ?? 0, q = (r.highlightedAnamnesisAnswers ?? []).map((x) => ({
432
+ ...g.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
433
+ ] : [], P = ((d == null ? void 0 : d.required) ?? 0) > 0 && x, C = !!(o != null && o.advancedSignatureUrl) && ((d == null ? void 0 : d.required) ?? 0) > 0 && !(d != null && d.aesSetUp), M = !!p && P, D = !!f && P, _ = l.highlightedAnamnesisCount ?? 0, E = l.expiredAnamnesisCount ?? 0, q = (l.highlightedAnamnesisAnswers ?? []).map((N) => ({
412
434
  text: [
413
- x.question,
414
- a(s(x.yes ? "anamnesisYes" : "anamnesisNo")),
415
- x.answer,
416
- zt(n, x.interviewIso)
435
+ N.question,
436
+ a(s(N.yes ? "anamnesisYes" : "anamnesisNo")),
437
+ N.answer,
438
+ Kt(n, N.interviewIso)
417
439
  ].filter(Boolean).join(" · ")
418
- })), z = xn(r), oe = Nn(r) || z, K = g.map((x) => ({
419
- id: `consent-${x.id}`,
420
- label: x.name,
421
- value: a(s(wa[x.state]))
440
+ })), z = Cn(l), re = Tn(l) || z, K = y.map((N) => ({
441
+ id: `consent-${N.id}`,
442
+ label: N.name,
443
+ value: a(s(xa[N.state]))
422
444
  })), j = [
423
- ...r.dobIso ? [
445
+ ...l.dobIso ? [
424
446
  {
425
447
  id: "dob",
426
448
  label: a(s("dob")),
427
- icon: /* @__PURE__ */ e(la, {}),
428
- value: `${Tn(n, r.dobIso)} ${a(
429
- s("patientAge"),
430
- {
431
- n: Cn(r.dobIso, d)
432
- }
433
- )}`
449
+ icon: /* @__PURE__ */ e(ua, {}),
450
+ value: En(n, l.dobIso)
451
+ },
452
+ /* The age is a fact of its own, not a bracket after the date: its
453
+ own row, label and glyph, with the kit's plural-aware words
454
+ (`AgeChip`). Not that chip's hourglass: in this panel the
455
+ hourglass is the appointment's duration, one card below. */
456
+ {
457
+ id: "age",
458
+ label: a("patientTable.column.age"),
459
+ icon: /* @__PURE__ */ e(Hn, {}),
460
+ value: a("patientField.age", {
461
+ count: In(l.dobIso, r)
462
+ })
434
463
  }
435
464
  ] : [],
436
- ...En(r).map((x, G) => {
437
- const ne = x.label === "mobile" || x.label === "home" || x.label === "work";
465
+ ...Dn(l).map((N, G) => {
466
+ const V = N.label === "mobile" || N.label === "home" || N.label === "work";
438
467
  return {
439
468
  id: `phone-${G}`,
440
- label: a(ne ? `calendarWorkspace.print.phoneLabels.${x.label}` : s("phone")),
441
- icon: x.label === "mobile" ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(Fn, {}),
442
- value: Jt(x.number)
469
+ label: a(V ? `calendarWorkspace.print.phoneLabels.${N.label}` : s("phone")),
470
+ icon: N.label === "mobile" ? /* @__PURE__ */ e(Pt, {}) : /* @__PURE__ */ e(Mn, {}),
471
+ value: Zt(N.number)
443
472
  };
444
473
  }),
445
- ...r.email ? [
474
+ ...l.email ? [
446
475
  {
447
476
  id: "email",
448
477
  label: a(s("email")),
449
- icon: /* @__PURE__ */ e(_n, {}),
450
- value: Qt(r.email)
478
+ icon: /* @__PURE__ */ e(Un, {}),
479
+ value: en(l.email)
451
480
  }
452
481
  ] : [],
453
482
  /* P27: hidden patient details leave the address out, and with it the
@@ -456,113 +485,114 @@ function Sa({
456
485
  {
457
486
  id: "address",
458
487
  label: a(s("address")),
459
- icon: /* @__PURE__ */ e(Hn, {}),
488
+ icon: /* @__PURE__ */ e(Bn, {}),
460
489
  value: /* @__PURE__ */ e(
461
490
  "a",
462
491
  {
463
- href: In(r),
492
+ href: Rn(l),
464
493
  target: "_blank",
465
494
  rel: "noopener noreferrer",
466
- "aria-label": `${a(s("mapsLink"))}: ${oe}`,
467
- children: oe
495
+ "aria-label": `${a(s("mapsLink"))}: ${re}`,
496
+ children: re
468
497
  }
469
498
  )
470
499
  }
471
500
  ] : []
472
- ], U = (A == null ? void 0 : A.unpaidAmount) ?? 0, Y = (A == null ? void 0 : A.billableAmount) ?? 0, ee = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, te = (x, G, ne, xe, Ne, he) => /* @__PURE__ */ e(
473
- Ft,
501
+ ], Y = (A == null ? void 0 : A.unpaidAmount) ?? 0, B = (A == null ? void 0 : A.billableAmount) ?? 0, ne = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, ae = (N, G, V, Ae, Ne, xe) => /* @__PURE__ */ e(
502
+ Ht,
474
503
  {
475
- id: ne,
504
+ id: V,
476
505
  eyebrow: a(s("hoverBilling")),
477
- heading: a(s(xe), {
478
- amount: Zt(n, G, i)
506
+ heading: a(s(Ae), {
507
+ amount: tn(n, G, i)
479
508
  }),
480
509
  facts: [{ text: a(s(Ne)) }],
481
510
  children: /* @__PURE__ */ e(
482
- On,
511
+ _n,
483
512
  {
484
- "data-chip": ne,
485
- state: x,
513
+ "data-chip": V,
514
+ state: N,
486
515
  amount: G,
487
516
  currency: i,
488
517
  locale: n,
489
518
  size: "md",
490
519
  showLabel: !0,
491
- label: he,
520
+ label: xe,
492
521
  showIcon: !1,
493
- tone: x === "to-invoice" ? "neutral" : "state"
522
+ tone: N === "to-invoice" ? "neutral" : "state"
494
523
  }
495
524
  )
496
525
  }
497
526
  );
498
527
  return /* @__PURE__ */ e(
499
- $t,
528
+ qt,
500
529
  {
501
530
  "data-card": "patient",
502
- name: r.name,
503
- avatarUrl: r.avatarSrc,
531
+ name: l.name,
532
+ avatarUrl: l.avatarSrc,
504
533
  locale: n,
505
534
  surface: "elevated",
506
535
  density: "compact",
507
536
  fieldColumns: "single",
508
537
  wrapFieldValues: !0,
538
+ className: "ds:[--key-value-pair-icon-color:var(--accent)]",
509
539
  flags: {
510
- unsignedDocumentsCount: (f == null ? void 0 : f.toComplete) ?? 0,
511
- highlightedAnamnesisCount: F
540
+ unsignedDocumentsCount: (g == null ? void 0 : g.toComplete) ?? 0,
541
+ highlightedAnamnesisCount: _
512
542
  },
513
543
  flagHover: {
514
- ...f ? {
544
+ ...g ? {
515
545
  unsignedDocuments: /* @__PURE__ */ e(
516
- rt,
546
+ dt,
517
547
  {
518
548
  eyebrow: a(s("sectionSigning")),
519
- heading: f.toComplete === 1 ? a(s("signingToSignOne")) : a(s("signingToSignMany"), {
520
- n: f.toComplete
549
+ heading: g.toComplete === 1 ? a(s("signingToSignOne")) : a(s("signingToSignMany"), {
550
+ n: g.toComplete
521
551
  }),
522
552
  facts: L
523
553
  }
524
554
  )
525
555
  } : {},
526
556
  highlightedAnamnesis: /* @__PURE__ */ e(
527
- rt,
557
+ dt,
528
558
  {
529
559
  eyebrow: a(s("anamnesisTitle")),
530
- heading: a(s("anamnesisHighlighted"), { n: F }),
560
+ heading: a(s("anamnesisHighlighted"), { n: _ }),
531
561
  facts: q
532
562
  }
533
563
  )
534
564
  },
535
- actionSlot: p ? /* @__PURE__ */ e(
536
- je,
565
+ actionSlot: m ? /* @__PURE__ */ e(
566
+ Ve,
537
567
  {
538
- icon: /* @__PURE__ */ e(Yt, { "aria-hidden": "true" }),
568
+ icon: /* @__PURE__ */ e(Gt, { "aria-hidden": "true" }),
539
569
  intent: "outline",
540
570
  size: "sm",
541
571
  "data-action": ue.openPatient,
542
572
  "aria-label": a(s("openPatient")),
543
573
  tooltip: a(s("openPatient")),
544
- onClick: () => p(t.eventId)
574
+ onClick: () => m(t.eventId)
545
575
  }
546
576
  ) : void 0,
547
- extraChips: U > 0 || Y > 0 || ee > 0 || C > 0 || T || M || I ? /* @__PURE__ */ b(se, { children: [
577
+ extraChips: Y > 0 || B > 0 || ne > 0 || E > 0 || C || M || D ? /* @__PURE__ */ b(oe, { children: [
548
578
  /* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
549
- U > 0 ? te(
579
+ Y > 0 ? ae(
550
580
  "debt",
551
- U,
581
+ Y,
552
582
  "unpaid",
553
583
  "hoverUnpaidHeading",
554
584
  "hoverUnpaidFact"
555
585
  ) : null,
556
- Y > 0 ? te(
586
+ B > 0 ? ae(
557
587
  "to-invoice",
558
- Y,
588
+ B,
559
589
  "billable",
560
590
  "hoverBillableHeading",
561
591
  "hoverBillableFact"
562
592
  ) : null,
563
- ee > 0 ? te(
593
+ ne > 0 ? ae(
564
594
  "settled",
565
- ee,
595
+ ne,
566
596
  "paidOnline",
567
597
  "hoverPaidOnlineHeading",
568
598
  "hoverPaidOnlineFact",
@@ -572,76 +602,76 @@ function Sa({
572
602
  ) : null
573
603
  ] }),
574
604
  M ? /* @__PURE__ */ e(
575
- E,
605
+ T,
576
606
  {
577
607
  size: "sm",
578
608
  intent: "outline",
579
609
  "data-action": ue.requestSignature,
580
- startIcon: /* @__PURE__ */ e(Mn, { "aria-hidden": "true" }),
581
- onClick: () => u(t.eventId),
610
+ startIcon: /* @__PURE__ */ e(Wn, { "aria-hidden": "true" }),
611
+ onClick: () => p(t.eventId),
582
612
  children: a(s("signingRequest"))
583
613
  }
584
614
  ) : null,
585
- I ? /* @__PURE__ */ e(
586
- E,
615
+ D ? /* @__PURE__ */ e(
616
+ T,
587
617
  {
588
618
  size: "sm",
589
619
  intent: "outline",
590
620
  "data-action": ue.signOnDevice,
591
621
  "aria-label": `${a(s("signingRequest"))}: ${a(s("signingOnDevice"))}`,
592
- startIcon: /* @__PURE__ */ e(Rt, { "aria-hidden": "true" }),
593
- onClick: () => h(t.eventId),
622
+ startIcon: /* @__PURE__ */ e(Pt, { "aria-hidden": "true" }),
623
+ onClick: () => f(t.eventId),
594
624
  children: a(s("signingOnDevice"))
595
625
  }
596
626
  ) : null,
597
- T && (o != null && o.advancedSignatureUrl) ? /* @__PURE__ */ e(
598
- Ke,
627
+ C && (o != null && o.advancedSignatureUrl) ? /* @__PURE__ */ e(
628
+ Ge,
599
629
  {
600
630
  href: o.advancedSignatureUrl,
601
631
  action: ue.advancedSignature,
602
- icon: /* @__PURE__ */ e(Un, { "aria-hidden": "true" }),
632
+ icon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
603
633
  children: a(s("aesSetUp"))
604
634
  }
605
635
  ) : null,
606
- o != null && o.unlockPaymentsUrl && (U > 0 || Y > 0) ? /* @__PURE__ */ e(
607
- Ke,
636
+ o != null && o.unlockPaymentsUrl && (Y > 0 || B > 0) ? /* @__PURE__ */ e(
637
+ Ge,
608
638
  {
609
639
  href: o.unlockPaymentsUrl,
610
640
  action: ue.unlockPayments,
611
- icon: /* @__PURE__ */ e(Bn, { "aria-hidden": "true" }),
641
+ icon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
612
642
  children: a(s("unlockPayments"))
613
643
  }
614
644
  ) : null,
615
- C > 0 ? /* @__PURE__ */ e(
616
- Ft,
645
+ E > 0 ? /* @__PURE__ */ e(
646
+ Ht,
617
647
  {
618
648
  id: "anamnesisExpired",
619
649
  eyebrow: a(s("anamnesisTitle")),
620
- heading: a(s("anamnesisExpired"), { n: C }),
650
+ heading: a(s("anamnesisExpired"), { n: E }),
621
651
  facts: [{ text: a(s("hoverAnamnesisExpiredFact")) }],
622
652
  children: /* @__PURE__ */ e(
623
- Kt,
653
+ jt,
624
654
  {
625
655
  "data-chip": "anamnesisExpired",
626
656
  variant: "warning",
627
657
  size: "md",
628
- leading: /* @__PURE__ */ e(Wn, {}),
629
- children: a(s("anamnesisExpired"), { n: C })
658
+ leading: /* @__PURE__ */ e(zn, {}),
659
+ children: a(s("anamnesisExpired"), { n: E })
630
660
  }
631
661
  )
632
662
  }
633
663
  ) : null,
634
- C > 0 && (o != null && o.renewAnamnesisUrl) ? /* @__PURE__ */ e(
635
- Ke,
664
+ E > 0 && (o != null && o.renewAnamnesisUrl) ? /* @__PURE__ */ e(
665
+ Ge,
636
666
  {
637
667
  href: o.renewAnamnesisUrl,
638
668
  action: ue.renewAnamnesis,
639
- icon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
669
+ icon: /* @__PURE__ */ e(Kn, { "aria-hidden": "true" }),
640
670
  children: a(s("anamnesisRenew"))
641
671
  }
642
672
  ) : null
643
673
  ] }) : void 0,
644
- visibleFieldOrder: [...j, ...K].map((x) => x.id),
674
+ visibleFieldOrder: [...j, ...K].map((N) => N.id),
645
675
  sections: j.length > 0 || K.length > 0 ? [
646
676
  ...j.length > 0 ? [{ id: "contact", heading: a(s("sectionPatient")), fields: j }] : [],
647
677
  ...K.length > 0 ? [
@@ -655,140 +685,145 @@ function Sa({
655
685
  }
656
686
  );
657
687
  }
658
- function Aa({
688
+ function Ea({
659
689
  details: t,
660
690
  locale: n,
661
691
  currency: i,
662
- operator: d,
692
+ operator: r,
663
693
  chair: c,
664
694
  description: o,
665
- headerAction: u,
666
- privacy: h = !1,
667
- history: p
695
+ headerAction: p,
696
+ privacy: f = !1,
697
+ history: m
668
698
  }) {
669
- const { t: a } = Z("ui"), { appointment: r, booking: l, patient: A } = t, v = (C) => a(`calendarWorkspace.editor.${C}`), g = new Date(r.startIso), f = new Date(g.getTime() + r.durationMin * 6e4), N = Number.isFinite(g.getTime()), { recurrence: L } = r, P = L && ba(a, n, L, r.startIso), T = l ? [
670
- l.bookedAtIso && {
699
+ const { t: a } = te("ui"), { appointment: l, booking: d, patient: A } = t, v = (E) => a(`calendarWorkspace.editor.${E}`), y = new Date(l.startIso), g = new Date(y.getTime() + l.durationMin * 6e4), x = Number.isFinite(y.getTime()), { recurrence: L } = l, P = L && Aa(a, n, L, l.startIso), C = d ? [
700
+ d.bookedAtIso && {
671
701
  id: "bookedAt",
672
702
  label: a(s("bookedAt")),
673
703
  value: /* @__PURE__ */ e(
674
- Dt,
704
+ Rt,
675
705
  {
676
- value: l.bookedAtIso,
706
+ value: d.bookedAtIso,
677
707
  format: "absolute",
678
708
  shape: "bare",
679
709
  locale: n,
680
- absoluteFormat: Et
710
+ absoluteFormat: It
681
711
  }
682
712
  )
683
713
  },
684
- l.typedName && {
714
+ d.typedName && {
685
715
  id: "bookingName",
686
716
  label: a(s("bookingName")),
687
- value: l.typedName
717
+ value: d.typedName
688
718
  },
689
- l.phone && {
719
+ d.phone && {
690
720
  id: "bookingPhone",
691
721
  label: a(s("bookingPhone")),
692
- value: Jt(l.phone)
722
+ value: Zt(d.phone)
693
723
  },
694
- l.email && {
724
+ d.email && {
695
725
  id: "bookingEmail",
696
726
  label: a(s("bookingEmail")),
697
- value: Qt(l.email)
727
+ value: en(d.email)
698
728
  },
699
- l.note && {
729
+ d.note && {
700
730
  id: "bookingNote",
701
731
  label: a(s("bookingNote")),
702
- value: l.note
732
+ value: d.note
703
733
  },
704
734
  /* With a patient the amount is a chip on the patient card. */
705
- !A && l.paidOnlineAmount !== void 0 && {
735
+ !A && d.paidOnlineAmount !== void 0 && {
706
736
  id: "paidOnline",
707
737
  label: a(s("paidOnline")),
708
- value: Zt(n, l.paidOnlineAmount, i)
738
+ value: tn(n, d.paidOnlineAmount, i)
709
739
  }
710
- ] : [], M = h ? T.filter((C) => C && C.id === "bookedAt") : T, I = M.some(Boolean), F = l || r.bookedOnline || p == null ? void 0 : p.filter(
711
- (C) => (C.kind === "created" || C.kind === "copied") && C.actor.trim() !== ""
712
- ).sort((C, q) => Date.parse(C.atIso) - Date.parse(q.atIso))[0];
740
+ ] : [], M = f ? C.filter((E) => E && E.id === "bookedAt") : C, D = M.some(Boolean), _ = d || l.bookedOnline || m == null ? void 0 : m.filter(
741
+ (E) => E.kind === "created" && E.actor.trim() !== ""
742
+ ).sort((E, q) => Date.parse(E.atIso) - Date.parse(q.atIso))[0];
713
743
  return /* @__PURE__ */ b(
714
744
  me,
715
745
  {
716
746
  "data-card": "appointment",
717
747
  title: a(s("sectionAppointment")),
718
748
  headingLevel: 3,
719
- headerAction: u,
749
+ headerAction: p,
720
750
  children: [
721
- o,
722
751
  /* @__PURE__ */ e(
723
- _t,
752
+ je,
724
753
  {
754
+ stacked: !0,
725
755
  rows: [
726
- /* First, and in a stronger weight: it is what an online booking
727
- is for, as the old pop-over printed it in bold. */
728
- (l == null ? void 0 : l.reason) && {
729
- id: "bookingReason",
730
- label: a(s("bookingReason")),
731
- icon: /* @__PURE__ */ e(zn, {}),
732
- value: /* @__PURE__ */ e("span", { className: "ds:font-medium", children: l.reason })
733
- },
734
- N && {
756
+ o != null && o !== !1 && {
757
+ id: "description",
758
+ label: v("description"),
759
+ icon: /* @__PURE__ */ e(Vt, {}),
760
+ value: o
761
+ }
762
+ ]
763
+ }
764
+ ),
765
+ /* @__PURE__ */ e(
766
+ je,
767
+ {
768
+ rows: [
769
+ x && {
735
770
  id: "date",
736
771
  label: v("date"),
737
- icon: /* @__PURE__ */ e(Kn, {}),
738
- value: zt(n, g)
772
+ icon: /* @__PURE__ */ e(Yn, {}),
773
+ value: Kt(n, y)
739
774
  },
740
- N && {
775
+ x && {
741
776
  id: "time",
742
777
  label: a(s("time")),
743
- icon: /* @__PURE__ */ e(jn, {}),
744
- value: r.allDay ? v("allDay") : Dn(n, g, f)
778
+ icon: /* @__PURE__ */ e(Gn, {}),
779
+ value: l.allDay ? v("allDay") : Pn(n, y, g)
745
780
  },
746
- !r.allDay && {
781
+ !l.allDay && {
747
782
  id: "duration",
748
783
  label: v("duration"),
749
- icon: /* @__PURE__ */ e(Yn, {}),
750
- value: `${r.durationMin} ${v("durationUnit")}`
784
+ icon: /* @__PURE__ */ e(Vn, {}),
785
+ value: `${l.durationMin} ${v("durationUnit")}`
751
786
  },
752
- r.isTelehealth && {
787
+ l.isTelehealth && {
753
788
  id: "type",
754
789
  label: v("type"),
755
- icon: /* @__PURE__ */ e(Gt, {}),
790
+ icon: /* @__PURE__ */ e(Xt, {}),
756
791
  value: v("typeTelehealth")
757
792
  },
758
- d && {
793
+ r && {
759
794
  id: "operator",
760
795
  label: a(s("operator")),
761
796
  /* A person, as on the grid: the avatar fills the icon slot. */
762
- icon: /* @__PURE__ */ e(It, { name: d.name, src: d.avatarSrc, size: "xs" }),
763
- value: d.name
797
+ icon: /* @__PURE__ */ e(Dt, { name: r.name, src: r.avatarSrc, size: "xs" }),
798
+ value: r.name
764
799
  },
765
800
  c && {
766
801
  id: "chair",
767
802
  label: a(s("chair")),
768
- icon: /* @__PURE__ */ e(Pt, {}),
769
- value: /* @__PURE__ */ e(Kt, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Pt, {}), children: c.name })
803
+ icon: /* @__PURE__ */ e(Lt, {}),
804
+ value: /* @__PURE__ */ e(jt, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Lt, {}), children: c.name })
770
805
  },
771
- r.branchLabel && {
806
+ l.branchLabel && {
772
807
  id: "branch",
773
808
  label: v("branch"),
774
- icon: /* @__PURE__ */ e(Gn, {}),
775
- value: r.branchLabel
809
+ icon: /* @__PURE__ */ e(Xn, {}),
810
+ value: l.branchLabel
776
811
  },
777
- F && {
812
+ _ && {
778
813
  id: "createdBy",
779
814
  label: a(s("createdBy")),
780
- icon: /* @__PURE__ */ e(It, { name: F.actor, size: "xs" }),
815
+ icon: /* @__PURE__ */ e(Dt, { name: _.actor, size: "xs" }),
781
816
  value: /* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
782
- /* @__PURE__ */ e("span", { children: F.actor }),
817
+ /* @__PURE__ */ e("span", { children: _.actor }),
783
818
  " ",
784
819
  /* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
785
- Dt,
820
+ Rt,
786
821
  {
787
- value: F.atIso,
822
+ value: _.atIso,
788
823
  format: "absolute",
789
824
  shape: "bare",
790
825
  locale: n,
791
- absoluteFormat: Et
826
+ absoluteFormat: It
792
827
  }
793
828
  ) })
794
829
  ] })
@@ -796,20 +831,34 @@ function Aa({
796
831
  P && {
797
832
  id: "series",
798
833
  label: a(s("seriesLabel")),
799
- icon: /* @__PURE__ */ e(Vn, {}),
834
+ icon: /* @__PURE__ */ e(Jn, {}),
800
835
  value: P
801
836
  }
802
837
  ]
803
838
  }
804
839
  ),
805
- I ? /* @__PURE__ */ b(
840
+ /* @__PURE__ */ e(
841
+ je,
842
+ {
843
+ stacked: !0,
844
+ rows: [
845
+ (d == null ? void 0 : d.reason) && {
846
+ id: "bookingReason",
847
+ label: a(s("bookingReason")),
848
+ icon: /* @__PURE__ */ e(Qn, {}),
849
+ value: /* @__PURE__ */ e("span", { className: "ds:font-medium", children: d.reason })
850
+ }
851
+ ]
852
+ }
853
+ ),
854
+ D ? /* @__PURE__ */ b(
806
855
  "div",
807
856
  {
808
857
  "data-block": "booking",
809
858
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
810
859
  children: [
811
860
  /* @__PURE__ */ e("h4", { className: "ds:m-0 type-label ds:text-[color:var(--muted-foreground)]", children: a(s("sectionBooking")) }),
812
- /* @__PURE__ */ e(_t, { rows: M })
861
+ /* @__PURE__ */ e(je, { rows: M })
813
862
  ]
814
863
  }
815
864
  ) : null
@@ -817,47 +866,47 @@ function Aa({
817
866
  }
818
867
  );
819
868
  }
820
- function xa({
869
+ function Ia({
821
870
  details: t,
822
871
  locale: n,
823
872
  currency: i,
824
- privacy: d = !1,
873
+ privacy: r = !1,
825
874
  carePlanUrl: c
826
875
  }) {
827
- const { t: o } = Z("ui"), { care: u } = t, h = d || u == null ? void 0 : u.plan;
828
- return !u || !h && u.lines.length === 0 ? null : /* @__PURE__ */ b(
876
+ const { t: o } = te("ui"), { care: p } = t, f = r || p == null ? void 0 : p.plan;
877
+ return !p || !f && p.lines.length === 0 ? null : /* @__PURE__ */ b(
829
878
  me,
830
879
  {
831
880
  "data-card": "treatments",
832
881
  title: o(s("sectionTreatments")),
833
882
  headingLevel: 3,
834
- headerAction: h && c ? /* @__PURE__ */ e(
835
- Ke,
883
+ headerAction: f && c ? /* @__PURE__ */ e(
884
+ Ge,
836
885
  {
837
886
  href: c,
838
887
  action: ue.carePlan,
839
- icon: /* @__PURE__ */ e(Yt, { "aria-hidden": "true" }),
888
+ icon: /* @__PURE__ */ e(Gt, { "aria-hidden": "true" }),
840
889
  iconOnly: !0,
841
890
  children: o(s("openCarePlan"))
842
891
  }
843
892
  ) : void 0,
844
893
  children: [
845
- h ? /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ b("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
894
+ f ? /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ b("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
846
895
  /* @__PURE__ */ e(
847
- Vt,
896
+ Jt,
848
897
  {
849
898
  "aria-hidden": "true",
850
- className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
899
+ className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--accent)]"
851
900
  }
852
901
  ),
853
- h.number ? o(s("planLine"), { number: h.number, name: h.name }) : h.name
902
+ f.number ? o(s("planLine"), { number: f.number, name: f.name }) : f.name
854
903
  ] }) }) : null,
855
- u.lines.length > 0 ? /* @__PURE__ */ e(
856
- qt,
904
+ p.lines.length > 0 ? /* @__PURE__ */ e(
905
+ zt,
857
906
  {
858
- lines: u.lines.map(({ entryId: p, careId: a, ...r }) => ({
859
- id: p,
860
- ...r
907
+ lines: p.lines.map(({ entryId: m, careId: a, ...l }) => ({
908
+ id: m,
909
+ ...l
861
910
  })),
862
911
  locale: n,
863
912
  currency: i
@@ -867,29 +916,29 @@ function xa({
867
916
  }
868
917
  );
869
918
  }
870
- const Ht = 3;
871
- function Na({
919
+ const Mt = 3;
920
+ function Da({
872
921
  preview: t,
873
922
  onOpenNotes: n,
874
923
  locale: i
875
924
  }) {
876
- const { t: d } = Z("ui"), c = at(), o = t.status ?? "ready", u = R(!1);
925
+ const { t: r } = te("ui"), c = st(), o = t.status ?? "ready", p = R(!1);
877
926
  pe(() => {
878
- u.current && (o !== "loading" && (u.current = !1), _e(c));
927
+ p.current && (o !== "loading" && (p.current = !1), _e(c));
879
928
  }, [o, c]);
880
- const h = t.total ?? (o === "ready" ? t.notes.length : null), p = Math.max(0, (h ?? 0) - Ht), a = p > 0 ? d(s("notesMore"), { n: p }) : d(s("notesPreviewOpen"));
929
+ const f = t.total ?? (o === "ready" ? t.notes.length : null), m = Math.max(0, (f ?? 0) - Mt), a = m > 0 ? r(s("notesMore"), { n: m }) : r(s("notesPreviewOpen"));
881
930
  return /* @__PURE__ */ b(
882
931
  me,
883
932
  {
884
933
  "data-card": "notes",
885
934
  headingId: c,
886
935
  headingLevel: 3,
887
- title: h === null ? d("notesPanel.title") : d(s("notesPreviewTitle"), { count: h }),
888
- headerAction: n && (h ?? 0) > 0 ? /* @__PURE__ */ b("span", { className: "ds:relative ds:inline-flex", children: [
936
+ title: f === null ? r("notesPanel.title") : r(s("notesPreviewTitle"), { count: f }),
937
+ headerAction: n && (f ?? 0) > 0 ? /* @__PURE__ */ b("span", { className: "ds:relative ds:inline-flex", children: [
889
938
  /* @__PURE__ */ e(
890
- je,
939
+ Ve,
891
940
  {
892
- icon: /* @__PURE__ */ e(Xn, { "aria-hidden": "true" }),
941
+ icon: /* @__PURE__ */ e(Zn, { "aria-hidden": "true" }),
893
942
  intent: "outline",
894
943
  size: "sm",
895
944
  "data-action": "open-patient-notes",
@@ -898,15 +947,15 @@ function Na({
898
947
  onClick: () => n()
899
948
  }
900
949
  ),
901
- p > 0 ? (
950
+ m > 0 ? (
902
951
  /* Decorative: the button's name already says the count. */
903
952
  /* @__PURE__ */ e(
904
- Ln,
953
+ Fn,
905
954
  {
906
955
  variant: "outline",
907
956
  size: "sm",
908
957
  background: "surface",
909
- count: p,
958
+ count: m,
910
959
  "aria-hidden": "true",
911
960
  className: "ds:pointer-events-none ds:absolute ds:-top-[var(--spacing-2xs)] ds:-end-[var(--spacing-2xs)]"
912
961
  }
@@ -914,36 +963,37 @@ function Na({
914
963
  ) : null
915
964
  ] }) : void 0,
916
965
  children: [
917
- o === "error" ? /* @__PURE__ */ b(Q, { variant: "error", children: [
918
- /* @__PURE__ */ e(Q.Description, { children: d("notesPanel.loadError") }),
919
- t.onRetry ? /* @__PURE__ */ e(Q.Action, { children: /* @__PURE__ */ e(
920
- E,
966
+ o === "error" ? /* @__PURE__ */ b(ee, { variant: "error", children: [
967
+ /* @__PURE__ */ e(ee.Description, { children: r("notesPanel.loadError") }),
968
+ t.onRetry ? /* @__PURE__ */ e(ee.Action, { children: /* @__PURE__ */ e(
969
+ T,
921
970
  {
922
971
  intent: "secondary",
923
972
  size: "sm",
924
973
  onClick: () => {
925
- var r;
926
- u.current = !0, (r = t.onRetry) == null || r.call(t);
974
+ var l;
975
+ p.current = !0, (l = t.onRetry) == null || l.call(t);
927
976
  },
928
- children: d("notesPanel.retry")
977
+ children: r("notesPanel.retry")
929
978
  }
930
979
  ) }) : null
931
980
  ] }) : null,
932
- t.notes.length === 0 && o === "loading" ? /* @__PURE__ */ b(se, { children: [
933
- /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: d("notesPanel.loading") }),
934
- /* @__PURE__ */ e(st, { notes: [], loading: !0, loadingRows: 2 })
981
+ t.notes.length === 0 && o === "loading" ? /* @__PURE__ */ b(oe, { children: [
982
+ /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: r("notesPanel.loading") }),
983
+ /* @__PURE__ */ e(rt, { notes: [], loading: !0, loadingRows: 2 })
935
984
  ] }) : o !== "error" || t.notes.length > 0 ? (
936
985
  /* A note click, or Enter or Space on it, goes straight to that note
937
986
  in the Notes tool; the header button opens the tool at the top. */
938
987
  /* @__PURE__ */ e(
939
- st,
988
+ rt,
940
989
  {
941
990
  notes: t.notes,
942
- maxItems: Ht,
991
+ maxItems: Mt,
992
+ bodyFormat: "plain",
943
993
  locale: i,
944
994
  "aria-labelledby": c,
945
995
  onNoteActivate: n,
946
- emptyState: /* @__PURE__ */ e("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: d(s("notesPreviewEmpty")) })
996
+ emptyState: /* @__PURE__ */ e("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: r(s("notesPreviewEmpty")) })
947
997
  }
948
998
  )
949
999
  ) : null
@@ -951,7 +1001,7 @@ function Na({
951
1001
  }
952
1002
  );
953
1003
  }
954
- const Ta = lt("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Ca = lt(
1004
+ const Ra = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Pa = ct(
955
1005
  [
956
1006
  "ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end",
957
1007
  "ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]",
@@ -960,66 +1010,66 @@ const Ta = lt("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Ca = lt(
960
1010
  "ds:[&>[data-component=workflow-status]>[role=alert]]:order-1",
961
1011
  "ds:[&>[data-component=workflow-status]>[role=alert]]:basis-full"
962
1012
  ].join(" ")
963
- ), Ea = lt(
1013
+ ), La = ct(
964
1014
  "ds:shrink-0 ds:rounded-[var(--radius-md)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
965
- ), W = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", Ia = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", Da = [
1015
+ ), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", Oa = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", Fa = [
966
1016
  "ds:sm:[&_button:has(svg.lucide-ellipsis)]:[min-block-size:var(--accessible-target-floor,0px)]",
967
1017
  "ds:[&_button:has(svg.lucide-ellipsis)]:[min-inline-size:var(--accessible-target-floor,auto)]"
968
- ].join(" "), en = ["40%", "33%", "50%", "25%"], Ra = [
1018
+ ].join(" "), nn = ["40%", "33%", "50%", "25%"], _a = [
969
1019
  "bill",
970
1020
  "folder",
971
1021
  "template",
972
1022
  "empty",
973
1023
  "identification",
974
1024
  "webcam"
975
- ], Pa = {
976
- bill: /* @__PURE__ */ e(oa, { "aria-hidden": "true" }),
977
- folder: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
978
- template: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
979
- empty: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
980
- identification: /* @__PURE__ */ e(ca, { "aria-hidden": "true" }),
981
- webcam: /* @__PURE__ */ e(aa, { "aria-hidden": "true" })
982
- }, w = (t) => `calendarWorkspace.details.${t}`, Mt = (t) => t.trim().length;
983
- function Ut({
1025
+ ], Ut = {
1026
+ bill: /* @__PURE__ */ e(da, { "aria-hidden": "true" }),
1027
+ folder: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
1028
+ template: /* @__PURE__ */ e(la, { "aria-hidden": "true" }),
1029
+ empty: /* @__PURE__ */ e(ra, { "aria-hidden": "true" }),
1030
+ identification: /* @__PURE__ */ e(ma, { "aria-hidden": "true" }),
1031
+ webcam: /* @__PURE__ */ e(oa, { "aria-hidden": "true" })
1032
+ }, k = (t) => `calendarWorkspace.details.${t}`;
1033
+ function Bt({
984
1034
  children: t,
985
1035
  startIcon: n,
986
1036
  overflowItems: i,
987
- "data-action": d,
1037
+ "data-action": r,
988
1038
  intent: c,
989
1039
  background: o,
990
- size: u,
991
- hideLabel: h
1040
+ size: p,
1041
+ hideLabel: f
992
1042
  }) {
993
- return /* @__PURE__ */ b($e.Root, { children: [
994
- /* @__PURE__ */ e(gn, { label: t, side: "top", children: /* @__PURE__ */ e($e.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
995
- E,
1043
+ return /* @__PURE__ */ b(ze.Root, { children: [
1044
+ /* @__PURE__ */ e(yn, { label: t, side: "top", children: /* @__PURE__ */ e(ze.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
1045
+ T,
996
1046
  {
997
1047
  intent: c,
998
1048
  background: o,
999
- size: u,
1000
- "data-action": d,
1001
- className: W,
1049
+ size: p,
1050
+ "data-action": r,
1051
+ className: U,
1002
1052
  startIcon: n,
1003
1053
  "aria-haspopup": "menu",
1004
- endIcon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
1005
- children: h ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
1054
+ endIcon: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
1055
+ children: f ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
1006
1056
  }
1007
1057
  ) }) }),
1008
- /* @__PURE__ */ e($e.Content, { align: "end", children: i.map((p) => /* @__PURE__ */ e(
1009
- $e.Item,
1058
+ /* @__PURE__ */ e(ze.Content, { align: "end", children: i.map((m) => /* @__PURE__ */ e(
1059
+ ze.Item,
1010
1060
  {
1011
- "data-action": p.action,
1012
- startIcon: p.icon,
1013
- onSelect: p.onSelect,
1014
- children: p.label
1061
+ "data-action": m.action,
1062
+ startIcon: m.icon,
1063
+ onSelect: m.onSelect,
1064
+ children: m.label
1015
1065
  },
1016
- p.label
1066
+ m.label
1017
1067
  )) })
1018
1068
  ] });
1019
1069
  }
1020
- function La() {
1021
- const { t } = Z("ui");
1022
- return /* @__PURE__ */ b(se, { children: [
1070
+ function Ha() {
1071
+ const { t } = te("ui");
1072
+ return /* @__PURE__ */ b(oe, { children: [
1023
1073
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
1024
1074
  /* @__PURE__ */ b(
1025
1075
  "div",
@@ -1028,7 +1078,7 @@ function La() {
1028
1078
  className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)] ds:overflow-hidden ds:p-[var(--spacing-md)] ds:[&>*]:shrink-0",
1029
1079
  children: [
1030
1080
  /* @__PURE__ */ e(
1031
- $t,
1081
+ qt,
1032
1082
  {
1033
1083
  name: "",
1034
1084
  loading: !0,
@@ -1036,15 +1086,15 @@ function La() {
1036
1086
  density: "compact"
1037
1087
  }
1038
1088
  ),
1039
- /* @__PURE__ */ b(me, { title: t(w("sectionAppointment")), headingLevel: 3, children: [
1040
- /* @__PURE__ */ e(Bt, { loading: !0, maxLines: 2 }),
1041
- /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: en.map((n, i) => /* @__PURE__ */ b(
1089
+ /* @__PURE__ */ b(me, { title: t(k("sectionAppointment")), headingLevel: 3, children: [
1090
+ /* @__PURE__ */ e(Wt, { loading: !0, maxLines: 2 }),
1091
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: nn.map((n, i) => /* @__PURE__ */ b(
1042
1092
  "div",
1043
1093
  {
1044
1094
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1045
1095
  children: [
1046
1096
  /* @__PURE__ */ e(
1047
- we,
1097
+ ke,
1048
1098
  {
1049
1099
  variant: "rounded",
1050
1100
  stagger: i + 2,
@@ -1054,7 +1104,7 @@ function La() {
1054
1104
  }
1055
1105
  ),
1056
1106
  /* @__PURE__ */ e(
1057
- we,
1107
+ ke,
1058
1108
  {
1059
1109
  variant: "text",
1060
1110
  size: "sm",
@@ -1067,8 +1117,8 @@ function La() {
1067
1117
  n
1068
1118
  )) })
1069
1119
  ] }),
1070
- /* @__PURE__ */ e(me, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(st, { notes: [], loading: !0, loadingRows: 2 }) }),
1071
- /* @__PURE__ */ e(me, { title: t(w("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(qt, { lines: [], loading: !0 }) })
1120
+ /* @__PURE__ */ e(me, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(rt, { notes: [], loading: !0, loadingRows: 2 }) }),
1121
+ /* @__PURE__ */ e(me, { title: t(k("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(zt, { lines: [], loading: !0 }) })
1072
1122
  ]
1073
1123
  }
1074
1124
  ),
@@ -1078,9 +1128,9 @@ function La() {
1078
1128
  "aria-hidden": "true",
1079
1129
  className: "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--border)] ds:p-[var(--spacing-md)]",
1080
1130
  children: [
1081
- /* @__PURE__ */ e(we, { variant: "rounded", width: "33%", height: "var(--spacing-xl)" }),
1131
+ /* @__PURE__ */ e(ke, { variant: "rounded", width: "33%", height: "var(--spacing-xl)" }),
1082
1132
  /* @__PURE__ */ e(
1083
- we,
1133
+ ke,
1084
1134
  {
1085
1135
  variant: "rounded",
1086
1136
  stagger: 1,
@@ -1093,23 +1143,23 @@ function La() {
1093
1143
  )
1094
1144
  ] });
1095
1145
  }
1096
- function Oa({
1146
+ function Ma({
1097
1147
  history: t,
1098
1148
  locale: n,
1099
1149
  onRetry: i,
1100
- noteUnrecordedEdits: d,
1150
+ noteUnrecordedEdits: r,
1101
1151
  privacy: c
1102
1152
  }) {
1103
1153
  var v;
1104
- const { t: o } = Z("ui"), u = t.status ?? (t.entries ? "ready" : "loading"), h = u === "error" ? void 0 : t.entries, p = u === "loading" || u !== "error" && !h, [a, r] = H(!1);
1105
- Se(() => r(!0), []);
1106
- let l = "";
1107
- p ? l = o("common.loading") : h && (l = h.length === 0 ? o(w("historyEmpty")) : o(w("historyLoaded"), { n: h.length }));
1154
+ const { t: o } = te("ui"), p = t.status ?? (t.entries ? "ready" : "loading"), f = p === "error" ? void 0 : t.entries, m = p === "loading" || p !== "error" && !f, [a, l] = H(!1);
1155
+ we(() => l(!0), []);
1156
+ let d = "";
1157
+ m ? d = o("common.loading") : f && (d = f.length === 0 ? o(k("historyEmpty")) : o(k("historyLoaded"), { n: f.length }));
1108
1158
  let A;
1109
- return u === "error" ? A = /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1110
- /* @__PURE__ */ e(Q, { variant: "error", children: /* @__PURE__ */ e(Q.Description, { children: ((v = t.message) == null ? void 0 : v.trim()) || o("emptyState.error.description") }) }),
1159
+ return p === "error" ? A = /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1160
+ /* @__PURE__ */ e(ee, { variant: "error", children: /* @__PURE__ */ e(ee.Description, { children: ((v = t.message) == null ? void 0 : v.trim()) || o("emptyState.error.description") }) }),
1111
1161
  i ? /* @__PURE__ */ e(
1112
- E,
1162
+ T,
1113
1163
  {
1114
1164
  intent: "outline",
1115
1165
  "data-action": "retry-history",
@@ -1117,415 +1167,433 @@ function Oa({
1117
1167
  children: o("emptyState.error.cta")
1118
1168
  }
1119
1169
  ) : null
1120
- ] }) : p || !h ? A = /* @__PURE__ */ e(
1170
+ ] }) : m || !f ? A = /* @__PURE__ */ e(
1121
1171
  "div",
1122
1172
  {
1123
1173
  "aria-hidden": "true",
1124
1174
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1125
- children: en.slice(0, 3).map((g, f) => /* @__PURE__ */ b(
1175
+ children: nn.slice(0, 3).map((y, g) => /* @__PURE__ */ b(
1126
1176
  "div",
1127
1177
  {
1128
1178
  className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
1129
1179
  children: [
1130
1180
  /* @__PURE__ */ e(
1131
- we,
1181
+ ke,
1132
1182
  {
1133
1183
  variant: "circular",
1134
- stagger: f,
1184
+ stagger: g,
1135
1185
  width: "var(--spacing-xl)",
1136
1186
  height: "var(--spacing-xl)",
1137
1187
  className: "ds:shrink-0"
1138
1188
  }
1139
1189
  ),
1140
1190
  /* @__PURE__ */ e(
1141
- we,
1191
+ ke,
1142
1192
  {
1143
1193
  variant: "rounded",
1144
- stagger: f,
1145
- width: g,
1194
+ stagger: g,
1195
+ width: y,
1146
1196
  height: "var(--spacing-2xl)"
1147
1197
  }
1148
1198
  )
1149
1199
  ]
1150
1200
  },
1151
- g
1201
+ y
1152
1202
  ))
1153
1203
  }
1154
1204
  ) : A = /* @__PURE__ */ e(
1155
- Sn,
1205
+ Nn,
1156
1206
  {
1157
- history: h,
1207
+ history: f,
1158
1208
  locale: n,
1159
- noteUnrecordedEdits: d,
1209
+ noteUnrecordedEdits: r,
1160
1210
  privacy: c
1161
1211
  }
1162
- ), /* @__PURE__ */ b(se, { children: [
1163
- /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: a ? l : "" }),
1212
+ ), /* @__PURE__ */ b(oe, { children: [
1213
+ /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: a ? d : "" }),
1164
1214
  A
1165
1215
  ] });
1166
1216
  }
1167
- function Fa({
1217
+ function Ua({
1168
1218
  read: t,
1169
1219
  refreshing: n,
1170
1220
  currency: i,
1171
- now: d,
1221
+ now: r,
1172
1222
  locale: c,
1173
1223
  shownTitle: o,
1174
- headingId: u,
1175
- enter: h,
1176
- live: p,
1224
+ headingId: p,
1225
+ enter: f,
1226
+ live: m,
1177
1227
  statusControl: a,
1178
- patientId: r = ((He) => (He = t.patient) == null ? void 0 : He.id)(),
1179
- operator: l,
1228
+ patientId: l = ((Me) => (Me = t.patient) == null ? void 0 : Me.id)(),
1229
+ operator: d,
1180
1230
  chair: A,
1181
1231
  privacy: v = !1,
1182
- privacyTitle: g,
1183
- mapsLink: f,
1184
- notesPreview: N,
1232
+ privacyTitle: y,
1233
+ mapsLink: g,
1234
+ notesPreview: x,
1185
1235
  onOpenNotes: L,
1186
1236
  history: P,
1187
- onOpenHistory: T,
1237
+ onOpenHistory: C,
1188
1238
  noteUnrecordedEdits: M = !1,
1189
- readOnly: I = !1,
1190
- onStatusChange: F,
1191
- allowedStatuses: C = Nt,
1239
+ readOnly: D = !1,
1240
+ onStatusChange: _,
1241
+ allowedStatuses: E = Ct,
1192
1242
  onDescriptionChange: q,
1193
1243
  descriptionMaxLength: z,
1194
- onAssignPatient: oe,
1195
- onEdit: K,
1196
- onMove: j,
1197
- onCopy: U,
1198
- onDelete: Y,
1199
- onJoinTelehealth: ee,
1200
- onWhatsApp: te,
1201
- whatsappUrl: x,
1202
- onBuyWhatsApp: G,
1203
- createTaskUrl: ne,
1204
- onRequestSignature: xe,
1205
- onSignOnDevice: Ne,
1206
- onOpenPatient: he,
1207
- shortcuts: fe,
1208
- documents: re
1244
+ descriptionMeasureLength: re = ha,
1245
+ onAssignPatient: K,
1246
+ onEdit: j,
1247
+ onMove: Y,
1248
+ onCopy: B,
1249
+ onDelete: ne,
1250
+ onJoinTelehealth: ae,
1251
+ onWhatsApp: N,
1252
+ whatsappUrl: G,
1253
+ onBuyWhatsApp: V,
1254
+ createTaskUrl: Ae,
1255
+ onRequestSignature: Ne,
1256
+ onSignOnDevice: xe,
1257
+ onOpenPatient: He,
1258
+ shortcuts: he,
1259
+ documents: X
1209
1260
  }) {
1210
- var bt, kt;
1211
- const { t: m } = Z("ui"), { eventId: D } = t, [Ye] = H(h), ge = { details: t, locale: c, currency: i }, k = P ? P.eventId !== void 0 && P.eventId !== D ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Me = (N == null ? void 0 : N.patientId) === void 0 || N.patientId === r, ve = N ? Me ? N : r ? { notes: [], status: "loading", total: null } : void 0 : void 0, V = !!q && !I && !v, [Te, ae] = H(!1), [Ce, X] = H(!1), le = Te && k !== void 0, Ue = Ce && V, Ee = () => {
1212
- le || !k || (ae(!0), T == null || T(D));
1213
- }, Be = R({ history: !1, editor: !1 });
1261
+ var kt, wt;
1262
+ const { t: h } = te("ui"), { eventId: I } = t, [Xe] = H(f), fe = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== I ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Ue = (x == null ? void 0 : x.patientId) === void 0 || x.patientId === l, ge = x ? Ue ? x : l ? { notes: [], status: "loading", total: null } : void 0 : void 0, J = !!q && !D && !v, [Ce, ie] = H(!1), [Te, Q] = H(!1), le = Ce && w !== void 0, Be = Te && J, Ee = () => {
1263
+ le || !w || (ie(!0), C == null || C(I));
1264
+ }, We = R({ history: !1, editor: !1 });
1214
1265
  pe(() => {
1215
- const y = Be.current;
1216
- Be.current = { history: le, editor: Ue };
1217
- const J = y.history && k === void 0, wt = y.editor && !V;
1218
- J && ae(!1), wt && X(!1), (J || wt) && _e(u);
1266
+ const u = We.current;
1267
+ We.current = { history: le, editor: Be };
1268
+ const Z = u.history && w === void 0, St = u.editor && !J;
1269
+ Z && ie(!1), St && Q(!1), (Z || St) && _e(p);
1219
1270
  });
1220
- const ye = R(null), O = R(!1), Ie = (k == null ? void 0 : k.status) ?? (k != null && k.entries ? "ready" : "loading");
1271
+ const ve = R(null), O = R(!1), Ie = (w == null ? void 0 : w.status) ?? (w != null && w.entries ? "ready" : "loading");
1221
1272
  pe(() => {
1222
- O.current && (Ie !== "loading" && (O.current = !1), ot(ye.current));
1273
+ O.current && (Ie !== "loading" && (O.current = !1), lt(ve.current));
1223
1274
  }, [Ie]);
1224
1275
  const [$, De] = H(t.appointment.name ?? "");
1225
- Se(() => {
1276
+ we(() => {
1226
1277
  De(t.appointment.name ?? "");
1227
1278
  }, [t.appointment.name]);
1228
- const [be, de] = H(""), [ke, Re] = H(!1), [S, B] = H(), [Pe, ce] = H(!1), Le = dn(), dt = R(null), ct = z !== void 0 && Mt(be) > z;
1229
- Se(() => {
1230
- Ce && (de($), B(void 0), ce(!1));
1231
- }, [Ce]);
1232
- const tn = async () => {
1279
+ const [ye, de] = H(""), [be, Re] = H(!1), [S, W] = H(), [Pe, ce] = H(!1), Le = un(), ut = R(null), pt = z !== void 0 && re(ye) > z;
1280
+ we(() => {
1281
+ Te && (de($), W(void 0), ce(!1));
1282
+ }, [Te]);
1283
+ const an = async () => {
1233
1284
  if (!q) return;
1234
- const y = be.trim();
1235
- Re(!0), B(void 0), ce(!1);
1285
+ const u = ye.trim();
1286
+ Re(!0), W(void 0), ce(!1);
1236
1287
  try {
1237
- await q(y, D), De(y), X(!1);
1238
- } catch (J) {
1239
- At(J) ? ce(!0) : B(
1240
- it(J, m(w("descriptionSaveFailed")))
1288
+ await q(u, I), De(u), Q(!1);
1289
+ } catch (Z) {
1290
+ Nt(Z) ? ce(!0) : W(
1291
+ ot(Z, h(k("descriptionSaveFailed")))
1241
1292
  );
1242
1293
  } finally {
1243
1294
  Re(!1);
1244
1295
  }
1245
- }, [ie, Ge] = H(t.appointment.status);
1246
- Se(() => {
1247
- Ge(t.appointment.status);
1296
+ }, [se, Je] = H(t.appointment.status);
1297
+ we(() => {
1298
+ Je(t.appointment.status);
1248
1299
  }, [t.appointment.status]);
1249
- const ut = R(n);
1300
+ const mt = R(n);
1250
1301
  pe(() => {
1251
- const y = ut.current && !n;
1252
- ut.current = n, y && (Ge(t.appointment.status), De(t.appointment.name ?? ""));
1302
+ const u = mt.current && !n;
1303
+ mt.current = n, u && (Je(t.appointment.status), De(t.appointment.name ?? ""));
1253
1304
  }, [n]);
1254
- const We = Nt.filter(
1255
- (y) => C.includes(y)
1256
- ), Oe = bn(ie, {
1257
- statuses: We,
1305
+ const $e = Ct.filter(
1306
+ (u) => E.includes(u)
1307
+ ), Oe = wn(se, {
1308
+ statuses: $e,
1258
1309
  /* Shown so the control can say it, but not a choice. */
1259
- disabledStatuses: ie && !We.includes(ie) ? [ie] : []
1260
- }), Fe = !!F && !I && We.some((y) => y !== ie), nn = async (y) => {
1261
- if (!(!F || !kn(y))) {
1310
+ disabledStatuses: se && !$e.includes(se) ? [se] : []
1311
+ }), Fe = !!_ && !D && $e.some((u) => u !== se), sn = async (u) => {
1312
+ if (!(!_ || !Sn(u))) {
1262
1313
  try {
1263
- await F(y, D);
1264
- } catch (J) {
1265
- throw At(J) ? new cn(Le, { cause: J }) : new Error(it(J, m(w("statusSaveFailed"))));
1314
+ await _(u, I);
1315
+ } catch (Z) {
1316
+ throw Nt(Z) ? new pn(Le, { cause: Z }) : new Error(ot(Z, h(k("statusSaveFailed"))));
1266
1317
  }
1267
- Ge(y);
1318
+ Je(u);
1268
1319
  }
1269
- }, pt = v ? void 0 : x, mt = Ra.filter(
1270
- (y) => re == null ? void 0 : re.kinds.includes(y)
1271
- ), an = (((bt = t.care) == null ? void 0 : bt.lines.length) ?? 0) > 0, Ve = r !== void 0 && r !== "", Xe = m(w("status")), ht = `${Xe}: ${Oe.option.label}`, Je = R(null), ft = R(Fe);
1320
+ }, ht = v ? void 0 : G, qe = _a.filter(
1321
+ (u) => X == null ? void 0 : X.kinds.includes(u)
1322
+ ), on = (((kt = t.care) == null ? void 0 : kt.lines.length) ?? 0) > 0, Qe = l !== void 0 && l !== "", Ze = h(k("status")), ft = `${Ze}: ${Oe.option.label}`, et = R(null), gt = R(Fe);
1272
1323
  pe(() => {
1273
- const y = ft.current && !Fe;
1274
- ft.current = Fe, y && (Je.current ? ot(Je.current) : _e(u));
1324
+ const u = gt.current && !Fe;
1325
+ gt.current = Fe, u && (et.current ? lt(et.current) : _e(p));
1275
1326
  });
1276
- const gt = Fe ? /* @__PURE__ */ e(
1277
- vn,
1327
+ const vt = Fe ? /* @__PURE__ */ e(
1328
+ bn,
1278
1329
  {
1279
1330
  ref: a,
1280
1331
  value: Oe.value,
1281
1332
  options: Oe.options,
1282
1333
  size: "sm",
1283
- workflowLabel: Xe,
1284
- className: `ds:[&>button]:bg-[color:var(--background)] ${Ia}`,
1285
- "aria-label": ht,
1286
- onValueChange: nn
1334
+ workflowLabel: Ze,
1335
+ className: `ds:[&>button]:bg-[color:var(--background)] ${Oa}`,
1336
+ "aria-label": ft,
1337
+ onValueChange: sn
1287
1338
  }
1288
- ) : ie ? (
1339
+ ) : se ? (
1289
1340
  /* Named as the control is, "Status: Confirmed": the small display
1290
1341
  prints the value alone. */
1291
1342
  /* @__PURE__ */ e(
1292
1343
  "div",
1293
1344
  {
1294
- ref: Je,
1345
+ ref: et,
1295
1346
  role: "group",
1296
- "aria-label": ht,
1347
+ "aria-label": ft,
1297
1348
  tabIndex: -1,
1298
1349
  "data-status-display": "",
1299
- className: Ea(),
1350
+ className: La(),
1300
1351
  children: /* @__PURE__ */ e(
1301
- yn,
1352
+ kn,
1302
1353
  {
1303
1354
  value: Oe.value,
1304
1355
  size: "sm",
1305
- workflowLabel: Xe,
1356
+ workflowLabel: Ze,
1306
1357
  option: Oe.option
1307
1358
  }
1308
1359
  )
1309
1360
  }
1310
1361
  )
1311
- ) : null, _ = [];
1312
- !I && oe && !Ve && _.push([
1362
+ ) : null, F = [];
1363
+ if (!D && K && !Qe && F.push([
1313
1364
  "assign-patient",
1314
1365
  /* @__PURE__ */ e(
1315
- E,
1366
+ T,
1316
1367
  {
1317
1368
  intent: "primary",
1318
1369
  "data-action": "assign-patient",
1319
- className: W,
1320
- startIcon: /* @__PURE__ */ e(Jn, { "aria-hidden": "true" }),
1321
- onClick: () => oe(D),
1322
- children: m("calendarWorkspace.inc1.bookings.assignPatient")
1370
+ className: U,
1371
+ startIcon: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
1372
+ onClick: () => K(I),
1373
+ children: h("calendarWorkspace.inc1.bookings.assignPatient")
1323
1374
  },
1324
1375
  "assign"
1325
1376
  )
1326
- ]), ee && _.push([
1377
+ ]), ae && F.push([
1327
1378
  "join-telehealth",
1328
1379
  /* @__PURE__ */ e(
1329
- E,
1380
+ T,
1330
1381
  {
1331
1382
  intent: "primary",
1332
1383
  "data-action": "join-telehealth",
1333
- className: W,
1334
- startIcon: /* @__PURE__ */ e(Gt, { "aria-hidden": "true" }),
1335
- onClick: () => ee(D),
1336
- children: m(w("joinTelehealth"))
1384
+ className: U,
1385
+ startIcon: /* @__PURE__ */ e(Xt, { "aria-hidden": "true" }),
1386
+ onClick: () => ae(I),
1387
+ children: h(k("joinTelehealth"))
1337
1388
  },
1338
1389
  "join"
1339
1390
  )
1340
- ]), !I && K && _.push([
1391
+ ]), !D && j && F.push([
1341
1392
  "edit-appointment",
1342
1393
  /* @__PURE__ */ e(
1343
- E,
1394
+ T,
1344
1395
  {
1345
1396
  "data-action": "edit-appointment",
1346
- className: W,
1347
- startIcon: /* @__PURE__ */ e(nt, { "aria-hidden": "true" }),
1348
- onClick: () => K(D),
1349
- children: m("calendarWorkspace.editor.editTitle")
1397
+ className: U,
1398
+ startIcon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
1399
+ onClick: () => j(I),
1400
+ children: h("calendarWorkspace.editor.editTitle")
1350
1401
  },
1351
1402
  "edit"
1352
1403
  )
1353
- ]), !I && j && _.push([
1404
+ ]), !D && Y && F.push([
1354
1405
  "move-appointment",
1355
1406
  /* @__PURE__ */ e(
1356
- E,
1407
+ T,
1357
1408
  {
1358
1409
  "data-action": "move-appointment",
1359
- className: W,
1360
- startIcon: /* @__PURE__ */ e(wn, { "aria-hidden": "true" }),
1361
- onClick: () => j(D),
1362
- children: m(w("move"))
1410
+ className: U,
1411
+ startIcon: /* @__PURE__ */ e(An, { "aria-hidden": "true" }),
1412
+ onClick: () => Y(I),
1413
+ children: h(k("move"))
1363
1414
  },
1364
1415
  "move"
1365
1416
  )
1366
- ]), !I && U && _.push([
1417
+ ]), !D && B && F.push([
1367
1418
  "copy-appointment",
1368
- an ? /* @__PURE__ */ e(
1369
- Ut,
1419
+ on ? /* @__PURE__ */ e(
1420
+ Bt,
1370
1421
  {
1371
1422
  "data-action": "copy-appointment",
1372
1423
  "data-overflow-tip": !1,
1373
1424
  startIcon: /* @__PURE__ */ e(Tt, { "aria-hidden": "true" }),
1374
1425
  overflowItems: [
1375
1426
  {
1376
- label: m("calendarWorkspace.editor.duplicateAppointmentOnly"),
1377
- icon: /* @__PURE__ */ e(Qn, { "aria-hidden": "true" }),
1427
+ label: h("calendarWorkspace.editor.duplicateAppointmentOnly"),
1428
+ icon: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
1378
1429
  action: "copy-appointment-only",
1379
- onSelect: () => U(!1, D)
1430
+ onSelect: () => B(!1, I)
1380
1431
  },
1381
1432
  {
1382
- label: m("calendarWorkspace.editor.duplicateWithTreatments"),
1383
- icon: /* @__PURE__ */ e(Vt, { "aria-hidden": "true" }),
1433
+ label: h("calendarWorkspace.editor.duplicateWithTreatments"),
1434
+ icon: /* @__PURE__ */ e(Jt, { "aria-hidden": "true" }),
1384
1435
  action: "copy-appointment-with-treatments",
1385
- onSelect: () => U(!0, D)
1436
+ onSelect: () => B(!0, I)
1386
1437
  }
1387
1438
  ],
1388
- children: m(w("copy"))
1439
+ children: h(k("copy"))
1389
1440
  },
1390
1441
  "copy"
1391
1442
  ) : /* @__PURE__ */ e(
1392
- E,
1443
+ T,
1393
1444
  {
1394
1445
  "data-action": "copy-appointment",
1395
- className: W,
1446
+ className: U,
1396
1447
  startIcon: /* @__PURE__ */ e(Tt, { "aria-hidden": "true" }),
1397
- onClick: () => U(!1, D),
1398
- children: m(w("copy"))
1448
+ onClick: () => B(!1, I),
1449
+ children: h(k("copy"))
1399
1450
  },
1400
1451
  "copy"
1401
1452
  )
1402
- ]), re && mt.length > 0 && _.push([
1453
+ ]), X && qe.length === 1) {
1454
+ const [u] = qe;
1455
+ F.push([
1456
+ `create-document-${u}`,
1457
+ /* @__PURE__ */ e(
1458
+ T,
1459
+ {
1460
+ "data-action": `create-document-${u}`,
1461
+ className: U,
1462
+ startIcon: Ut[u],
1463
+ onClick: () => X.onCreate(u, I),
1464
+ children: h(k(`documents.${u}`))
1465
+ },
1466
+ "documents"
1467
+ )
1468
+ ]);
1469
+ } else X && qe.length > 1 && F.push([
1403
1470
  "open-create-document",
1404
1471
  /* @__PURE__ */ e(
1405
- Ut,
1472
+ Bt,
1406
1473
  {
1407
1474
  "data-action": "open-create-document",
1408
1475
  "data-overflow-tip": !1,
1409
- startIcon: /* @__PURE__ */ e(Zn, { "aria-hidden": "true" }),
1410
- overflowItems: mt.map((y) => ({
1411
- label: m(w(`documents.${y}`)),
1412
- icon: Pa[y],
1413
- action: `create-document-${y}`,
1414
- onSelect: () => re.onCreate(y, D)
1476
+ startIcon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
1477
+ overflowItems: qe.map((u) => ({
1478
+ label: h(k(`documents.${u}`)),
1479
+ icon: Ut[u],
1480
+ action: `create-document-${u}`,
1481
+ onSelect: () => X.onCreate(u, I)
1415
1482
  })),
1416
- children: m(w("documents.label"))
1483
+ children: h(k("documents.label"))
1417
1484
  },
1418
1485
  "documents"
1419
1486
  )
1420
- ]), te ? _.push([
1487
+ ]);
1488
+ N ? F.push([
1421
1489
  "open-whatsapp",
1422
1490
  /* @__PURE__ */ e(
1423
- E,
1491
+ T,
1424
1492
  {
1425
1493
  "data-action": "open-whatsapp",
1426
- className: W,
1427
- startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
1428
- onClick: () => te(D),
1429
- children: m(w("remindWhatsApp"))
1494
+ className: U,
1495
+ startIcon: /* @__PURE__ */ e(it, { "aria-hidden": "true" }),
1496
+ onClick: () => N(I),
1497
+ children: h(k("remindWhatsApp"))
1430
1498
  },
1431
1499
  "whatsapp"
1432
1500
  )
1433
- ]) : ze(pt) ? _.push([
1501
+ ]) : Ye(ht) ? F.push([
1434
1502
  "open-whatsapp",
1435
1503
  /* @__PURE__ */ e(
1436
- E,
1504
+ T,
1437
1505
  {
1438
1506
  asChild: !0,
1439
1507
  "data-action": "open-whatsapp",
1440
- className: W,
1441
- startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
1508
+ className: U,
1509
+ startIcon: /* @__PURE__ */ e(it, { "aria-hidden": "true" }),
1442
1510
  children: /* @__PURE__ */ e(
1443
1511
  "a",
1444
1512
  {
1445
- href: ze(pt),
1513
+ href: Ye(ht),
1446
1514
  target: "_blank",
1447
1515
  rel: "noopener noreferrer",
1448
- children: m(w("remindWhatsApp"))
1516
+ children: h(k("remindWhatsApp"))
1449
1517
  }
1450
1518
  )
1451
1519
  },
1452
1520
  "whatsapp"
1453
1521
  )
1454
- ]) : G && !x && _.push([
1522
+ ]) : V && !G && F.push([
1455
1523
  "buy-whatsapp",
1456
1524
  /* @__PURE__ */ e(
1457
- E,
1525
+ T,
1458
1526
  {
1459
1527
  "data-action": "buy-whatsapp",
1460
- className: W,
1461
- startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
1462
- onClick: () => G(D),
1463
- children: m(w("buyWhatsApp"))
1528
+ className: U,
1529
+ startIcon: /* @__PURE__ */ e(it, { "aria-hidden": "true" }),
1530
+ onClick: () => V(I),
1531
+ children: h(k("buyWhatsApp"))
1464
1532
  },
1465
1533
  "buy-whatsapp"
1466
1534
  )
1467
1535
  ]);
1468
- const vt = ze(ne);
1469
- vt && _.push([
1536
+ const yt = Ye(Ae);
1537
+ yt && F.push([
1470
1538
  "create-task",
1471
1539
  /* @__PURE__ */ e(
1472
- E,
1540
+ T,
1473
1541
  {
1474
1542
  asChild: !0,
1475
1543
  "data-action": "create-task",
1476
- className: W,
1477
- startIcon: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
1478
- children: /* @__PURE__ */ e("a", { href: vt, children: m(w("createTask")) })
1544
+ className: U,
1545
+ startIcon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
1546
+ children: /* @__PURE__ */ e("a", { href: yt, children: h(k("createTask")) })
1479
1547
  },
1480
1548
  "task"
1481
1549
  )
1482
- ]), !I && Y && _.push([
1550
+ ]), !D && ne && F.push([
1483
1551
  "delete-appointment",
1484
1552
  /* @__PURE__ */ e(
1485
- E,
1553
+ T,
1486
1554
  {
1487
1555
  intent: "destructiveOutline",
1488
1556
  "data-action": "delete-appointment",
1489
- className: W,
1490
- startIcon: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
1491
- onClick: () => Y(D),
1492
- children: m("calendarWorkspace.editor.delete")
1557
+ className: U,
1558
+ startIcon: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
1559
+ onClick: () => ne(I),
1560
+ children: h("calendarWorkspace.editor.delete")
1493
1561
  },
1494
1562
  "delete"
1495
1563
  )
1496
1564
  ]);
1497
- const Qe = _.map(([, y]) => y);
1498
- p.current = {
1499
- status: ie ?? null,
1500
- allowed: Fe ? We : [],
1501
- offered: _.map(([y]) => y),
1502
- historyAvailable: k !== void 0,
1565
+ const tt = F.map(([, u]) => u);
1566
+ m.current = {
1567
+ status: se ?? null,
1568
+ allowed: Fe ? $e : [],
1569
+ offered: F.map(([u]) => u),
1570
+ historyAvailable: w !== void 0,
1503
1571
  historyOpen: le,
1504
1572
  openHistory: Ee,
1505
- closeHistory: () => ae(!1)
1573
+ closeHistory: () => ie(!1)
1506
1574
  };
1507
- const yt = m(w("historyBack"));
1575
+ const bt = h(k("historyBack"));
1508
1576
  return /* @__PURE__ */ e(
1509
1577
  "div",
1510
1578
  {
1511
- className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Ye ? mn : ""}`,
1512
- children: /* @__PURE__ */ b(et.Host, { children: [
1579
+ className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Xe ? fn : ""}`,
1580
+ children: /* @__PURE__ */ b(at.Host, { children: [
1513
1581
  /* @__PURE__ */ e(
1514
- Wt,
1582
+ $t,
1515
1583
  {
1516
1584
  title: o,
1517
- headingId: u,
1518
- icon: /* @__PURE__ */ e(Xt, { "aria-hidden": "true" }),
1585
+ headingId: p,
1586
+ icon: /* @__PURE__ */ e(Qt, { "aria-hidden": "true" }),
1519
1587
  sticky: !0,
1520
1588
  divider: !0,
1521
- actions: k ? /* @__PURE__ */ e(
1522
- je,
1589
+ actions: w ? /* @__PURE__ */ e(
1590
+ Ve,
1523
1591
  {
1524
1592
  size: "sm",
1525
1593
  intent: "ghost",
1526
- icon: /* @__PURE__ */ e(Lt, { "aria-hidden": "true" }),
1527
- "aria-label": m(w("historyAction")),
1528
- tooltip: m(w("historyAction")),
1594
+ icon: /* @__PURE__ */ e(Ft, { "aria-hidden": "true" }),
1595
+ "aria-label": h(k("historyAction")),
1596
+ tooltip: h(k("historyAction")),
1529
1597
  "data-action": "open-history",
1530
1598
  onClick: Ee
1531
1599
  }
@@ -1539,212 +1607,210 @@ function Fa({
1539
1607
  "aria-busy": n || void 0,
1540
1608
  className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
1541
1609
  children: /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
1542
- v ? /* @__PURE__ */ e(un, { mask: g }) : t.patient ? /* @__PURE__ */ e(
1543
- Sa,
1610
+ v ? /* @__PURE__ */ e(mn, { mask: y }) : t.patient ? /* @__PURE__ */ e(
1611
+ Ta,
1544
1612
  {
1545
- ...ge,
1546
- now: d,
1547
- mapsLink: f,
1548
- shortcuts: fe,
1549
- onRequestSignature: xe,
1550
- onSignOnDevice: Ne,
1551
- onOpenPatient: he
1613
+ ...fe,
1614
+ now: r,
1615
+ mapsLink: g,
1616
+ shortcuts: he,
1617
+ onRequestSignature: Ne,
1618
+ onSignOnDevice: xe,
1619
+ onOpenPatient: He
1552
1620
  }
1553
1621
  ) : (
1554
1622
  /* No patient card to carry the identity: a patient-less, an
1555
1623
  unassigned or an unresolved booking keeps the strip. */
1556
1624
  /* @__PURE__ */ e(
1557
- Rn,
1625
+ Ln,
1558
1626
  {
1559
- name: t.appointment.title.trim() ? t.appointment.title : m(w("patientNotLoaded")),
1560
- unresolved: Ve,
1561
- status: ie,
1627
+ name: t.appointment.title.trim() ? t.appointment.title : h(k("patientNotLoaded")),
1628
+ unresolved: Qe,
1629
+ status: se,
1562
1630
  flags: {
1563
1631
  isTelehealth: t.appointment.isTelehealth,
1564
1632
  isBookedOnline: t.appointment.bookedOnline,
1565
1633
  isRecurring: t.appointment.recurrence !== void 0,
1566
- hasUnassignedPatient: t.appointment.bookedOnline && !Ve,
1634
+ hasUnassignedPatient: t.appointment.bookedOnline && !Qe,
1567
1635
  hasHighlightedAnamnesis: !1,
1568
- hasBillableAmount: (((kt = t.money) == null ? void 0 : kt.billableAmount) ?? 0) > 0
1636
+ hasBillableAmount: (((wt = t.money) == null ? void 0 : wt.billableAmount) ?? 0) > 0
1569
1637
  },
1570
1638
  locale: c
1571
1639
  }
1572
1640
  )
1573
1641
  ),
1574
1642
  /* @__PURE__ */ e(
1575
- Aa,
1643
+ Ea,
1576
1644
  {
1577
- ...ge,
1578
- operator: l,
1645
+ ...fe,
1646
+ operator: d,
1579
1647
  chair: A,
1580
1648
  privacy: v,
1581
- history: (k == null ? void 0 : k.status) === "error" || k == null ? void 0 : k.entries,
1582
- headerAction: V ? /* @__PURE__ */ e(
1583
- je,
1649
+ history: (w == null ? void 0 : w.status) === "error" || w == null ? void 0 : w.entries,
1650
+ headerAction: J ? /* @__PURE__ */ e(
1651
+ Ve,
1584
1652
  {
1585
- icon: /* @__PURE__ */ e(nt, { "aria-hidden": "true" }),
1653
+ icon: /* @__PURE__ */ e(Vt, { "aria-hidden": "true" }),
1586
1654
  intent: "outline",
1587
1655
  size: "sm",
1588
1656
  "data-action": "edit-description",
1589
- "aria-label": m(w("editDescription")),
1590
- tooltip: m(w("editDescription")),
1591
- onClick: () => X(!0)
1657
+ "aria-label": h(k("editDescription")),
1658
+ tooltip: h(k("editDescription")),
1659
+ onClick: () => Q(!0)
1592
1660
  }
1593
1661
  ) : void 0,
1594
1662
  description: (
1595
1663
  /* An empty read-only description prints nothing. */
1596
- v ? $ ? /* @__PURE__ */ e(xt, { block: "description" }) : void 0 : $ || V ? /* @__PURE__ */ e(
1597
- Bt,
1664
+ v ? $ ? /* @__PURE__ */ e(xt, { block: "description" }) : void 0 : $ || J ? /* @__PURE__ */ e(
1665
+ Wt,
1598
1666
  {
1599
1667
  "data-block": "description",
1600
- role: "group",
1601
- "aria-label": m("calendarWorkspace.editor.description"),
1602
1668
  value: $
1603
1669
  }
1604
1670
  ) : void 0
1605
1671
  )
1606
1672
  }
1607
1673
  ),
1608
- ve && v ? /* @__PURE__ */ e(
1674
+ ge && v ? /* @__PURE__ */ e(
1609
1675
  me,
1610
1676
  {
1611
1677
  "data-card": "notes",
1612
- title: m("notesPanel.title"),
1678
+ title: h("notesPanel.title"),
1613
1679
  headingLevel: 3,
1614
1680
  children: /* @__PURE__ */ e(xt, {})
1615
1681
  }
1616
- ) : ve ? /* @__PURE__ */ e(
1617
- Na,
1682
+ ) : ge ? /* @__PURE__ */ e(
1683
+ Da,
1618
1684
  {
1619
- preview: ve,
1620
- onOpenNotes: Me ? L : void 0,
1685
+ preview: ge,
1686
+ onOpenNotes: Ue ? L : void 0,
1621
1687
  locale: c
1622
1688
  }
1623
1689
  ) : null,
1624
1690
  /* @__PURE__ */ e(
1625
- xa,
1691
+ Ia,
1626
1692
  {
1627
- ...ge,
1693
+ ...fe,
1628
1694
  privacy: v,
1629
- carePlanUrl: fe == null ? void 0 : fe.carePlanUrl
1695
+ carePlanUrl: he == null ? void 0 : he.carePlanUrl
1630
1696
  }
1631
1697
  )
1632
1698
  ] })
1633
1699
  }
1634
1700
  ),
1635
- gt || Qe.length > 0 ? (
1701
+ vt || tt.length > 0 ? (
1636
1702
  /* The body scrolls; the status and the actions stay put. The
1637
1703
  status keeps its own segment and never folds. The actions fold
1638
1704
  to icons, then into More, never onto a second line. Only a
1639
1705
  refused status change adds a line, for its message. */
1640
- /* @__PURE__ */ b("div", { className: Ca(), children: [
1641
- gt,
1642
- Qe.length > 0 ? /* @__PURE__ */ e(
1643
- pn,
1706
+ /* @__PURE__ */ b("div", { className: Pa(), children: [
1707
+ vt,
1708
+ tt.length > 0 ? /* @__PURE__ */ e(
1709
+ hn,
1644
1710
  {
1645
- label: m(w("actionsLabel")),
1711
+ label: h(k("actionsLabel")),
1646
1712
  overflow: "menu",
1647
1713
  collapseToIcons: !0,
1648
1714
  background: "surface",
1649
1715
  size: "sm",
1650
- className: `ds:min-w-0 ds:flex-1 ds:text-end ${Da}`,
1651
- children: Qe
1716
+ className: `ds:min-w-0 ds:flex-1 ds:text-end ${Fa}`,
1717
+ children: tt
1652
1718
  }
1653
1719
  ) : null
1654
1720
  ] })
1655
1721
  ) : null,
1656
- k ? /* @__PURE__ */ e(
1657
- et,
1722
+ w ? /* @__PURE__ */ e(
1723
+ at,
1658
1724
  {
1659
- ref: ye,
1725
+ ref: ve,
1660
1726
  open: le,
1661
- icon: /* @__PURE__ */ e(Lt, { "aria-hidden": "true" }),
1662
- title: m(w("historyTitle")),
1663
- backLabel: yt,
1727
+ icon: /* @__PURE__ */ e(Ft, { "aria-hidden": "true" }),
1728
+ title: h(k("historyTitle")),
1729
+ backLabel: bt,
1664
1730
  headingLevel: 3,
1665
- onBack: () => ae(!1),
1731
+ onBack: () => ie(!1),
1666
1732
  "data-details-subview": "history",
1667
1733
  children: /* @__PURE__ */ e("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
1668
- Oa,
1734
+ Ma,
1669
1735
  {
1670
- history: k,
1736
+ history: w,
1671
1737
  locale: c,
1672
1738
  noteUnrecordedEdits: M,
1673
1739
  privacy: v,
1674
- onRetry: k.onRetry ? () => {
1675
- var y;
1676
- O.current = !0, (y = k.onRetry) == null || y.call(k);
1740
+ onRetry: w.onRetry ? () => {
1741
+ var u;
1742
+ O.current = !0, (u = w.onRetry) == null || u.call(w);
1677
1743
  } : void 0
1678
1744
  }
1679
1745
  ) })
1680
1746
  }
1681
1747
  ) : null,
1682
- V ? /* @__PURE__ */ e(
1683
- et,
1748
+ J ? /* @__PURE__ */ e(
1749
+ at,
1684
1750
  {
1685
- open: Ue,
1686
- icon: /* @__PURE__ */ e(nt, { "aria-hidden": "true" }),
1687
- title: m(w("editDescription")),
1688
- backLabel: yt,
1751
+ open: Be,
1752
+ icon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
1753
+ title: h(k("editDescription")),
1754
+ backLabel: bt,
1689
1755
  headingLevel: 3,
1690
- initialFocusRef: dt,
1756
+ initialFocusRef: ut,
1691
1757
  onBack: () => {
1692
- ke || X(!1);
1758
+ be || Q(!1);
1693
1759
  },
1694
1760
  "data-details-subview": "description",
1695
- footer: /* @__PURE__ */ b(se, { children: [
1761
+ footer: /* @__PURE__ */ b(oe, { children: [
1696
1762
  /* @__PURE__ */ e(
1697
- E,
1763
+ T,
1698
1764
  {
1699
1765
  intent: "secondary",
1700
- disabled: ke,
1701
- onClick: () => X(!1),
1702
- children: m(w("noteCancel"))
1766
+ disabled: be,
1767
+ onClick: () => Q(!1),
1768
+ children: h(k("noteCancel"))
1703
1769
  }
1704
1770
  ),
1705
1771
  /* @__PURE__ */ e(
1706
- E,
1772
+ T,
1707
1773
  {
1708
1774
  intent: "primary",
1709
1775
  "data-action": "save-description",
1710
- loading: ke,
1711
- disabled: ct,
1712
- onClick: () => void tn(),
1713
- children: m(w("descriptionSave"))
1776
+ loading: be,
1777
+ disabled: pt,
1778
+ onClick: () => void an(),
1779
+ children: h(k("descriptionSave"))
1714
1780
  }
1715
1781
  )
1716
1782
  ] }),
1717
1783
  children: /* @__PURE__ */ b("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
1718
1784
  /* @__PURE__ */ e(
1719
- hn,
1785
+ gn,
1720
1786
  {
1721
- label: m("calendarWorkspace.editor.description"),
1722
- error: ct ? m("calendarWorkspace.editor.descriptionTooLong", {
1787
+ label: h("calendarWorkspace.editor.description"),
1788
+ error: pt ? h("calendarWorkspace.editor.descriptionTooLong", {
1723
1789
  max: z
1724
1790
  }) : S,
1725
1791
  children: /* @__PURE__ */ e(
1726
- fn,
1792
+ vn,
1727
1793
  {
1728
- ref: dt,
1729
- value: be,
1794
+ ref: ut,
1795
+ value: ye,
1730
1796
  minRows: 6,
1731
1797
  autoResize: !0,
1732
1798
  softMaxLength: z,
1733
- measureLength: Mt,
1734
- onChange: (y) => {
1735
- de(y.target.value), ce(!1);
1799
+ measureLength: re,
1800
+ onChange: (u) => {
1801
+ de(u.target.value), ce(!1);
1736
1802
  }
1737
1803
  }
1738
1804
  )
1739
1805
  }
1740
1806
  ),
1741
1807
  Pe ? /* @__PURE__ */ e(
1742
- Q,
1808
+ ee,
1743
1809
  {
1744
1810
  variant: "warning",
1745
1811
  announce: "assertive",
1746
1812
  "data-outcome": "unknown",
1747
- children: /* @__PURE__ */ e(Q.Description, { children: Le })
1813
+ children: /* @__PURE__ */ e(ee.Description, { children: Le })
1748
1814
  }
1749
1815
  ) : null
1750
1816
  ] })
@@ -1754,66 +1820,67 @@ function Fa({
1754
1820
  }
1755
1821
  );
1756
1822
  }
1757
- const _a = sn(function({
1823
+ const Ba = rn(function({
1758
1824
  state: n,
1759
1825
  onRetry: i,
1760
- patientId: d,
1826
+ patientId: r,
1761
1827
  operator: c,
1762
1828
  chair: o,
1763
- currency: u = "EUR",
1764
- now: h,
1765
- locale: p,
1829
+ currency: p = "EUR",
1830
+ now: f,
1831
+ locale: m,
1766
1832
  title: a,
1767
- privacy: r = !1,
1768
- privacyTitle: l,
1833
+ privacy: l = !1,
1834
+ privacyTitle: d,
1769
1835
  mapsLink: A,
1770
1836
  notesPreview: v,
1771
- onOpenNotes: g,
1772
- history: f,
1773
- onOpenHistory: N,
1837
+ onOpenNotes: y,
1838
+ history: g,
1839
+ onOpenHistory: x,
1774
1840
  noteUnrecordedEdits: L,
1775
1841
  readOnly: P = !1,
1776
- onStatusChange: T,
1842
+ onStatusChange: C,
1777
1843
  allowedStatuses: M,
1778
- onDescriptionChange: I,
1779
- descriptionMaxLength: F,
1780
- onAssignPatient: C,
1781
- onEdit: q,
1782
- onMove: z,
1783
- onCopy: oe,
1784
- onDelete: K,
1785
- onJoinTelehealth: j,
1786
- onWhatsApp: U,
1787
- whatsappUrl: Y,
1788
- onBuyWhatsApp: ee,
1789
- createTaskUrl: te,
1790
- onRequestSignature: x,
1791
- onSignOnDevice: G,
1792
- onOpenPatient: ne,
1793
- shortcuts: xe,
1794
- documents: Ne,
1795
- id: he,
1796
- className: fe,
1797
- ...re
1798
- }, He) {
1799
- var ke, Re;
1800
- const { t: m, i18n: D } = Z("ui"), Ye = at(), ge = he ?? Ye, k = at(), Me = p ?? D.language, ve = !r && (a != null && a.trim()) ? a : m(w("region")), V = n.status === "ready" ? n.read : void 0, Te = n.status === "ready" ? n.read.eventId : n.eventId, ae = R(
1844
+ onDescriptionChange: D,
1845
+ descriptionMaxLength: _,
1846
+ descriptionMeasureLength: E,
1847
+ onAssignPatient: q,
1848
+ onEdit: z,
1849
+ onMove: re,
1850
+ onCopy: K,
1851
+ onDelete: j,
1852
+ onJoinTelehealth: Y,
1853
+ onWhatsApp: B,
1854
+ whatsappUrl: ne,
1855
+ onBuyWhatsApp: ae,
1856
+ createTaskUrl: N,
1857
+ onRequestSignature: G,
1858
+ onSignOnDevice: V,
1859
+ onOpenPatient: Ae,
1860
+ shortcuts: Ne,
1861
+ documents: xe,
1862
+ id: He,
1863
+ className: he,
1864
+ ...X
1865
+ }, Me) {
1866
+ var be, Re;
1867
+ const { t: h, i18n: I } = te("ui"), Xe = st(), fe = He ?? Xe, w = st(), Ue = m ?? I.language, ge = !l && (a != null && a.trim()) ? a : h(k("region")), J = n.status === "ready" ? n.read : void 0, Ce = n.status === "ready" ? n.read.eventId : n.eventId, ie = R(
1801
1868
  void 0
1802
- ), Ce = ae.current !== void 0 && ae.current !== "ready";
1803
- Se(() => {
1804
- ae.current = n.status;
1869
+ ), Te = ie.current !== void 0 && ie.current !== "ready";
1870
+ we(() => {
1871
+ ie.current = n.status;
1805
1872
  }, [n.status]);
1806
- const X = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), Ue = St(() => ln(He, le), [He]), Ee = R(!1);
1807
- typeof document < "u" && (Ee.current = ((ke = le.current) == null ? void 0 : ke.contains(document.activeElement)) ?? !1);
1808
- const Be = V ? `ready:${V.eventId}` : n.status, ye = R(!1);
1873
+ const Q = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), Be = At(() => cn(Me, le), [Me]), Ee = R(!1);
1874
+ typeof document < "u" && (Ee.current = ((be = le.current) == null ? void 0 : be.contains(document.activeElement)) ?? !1);
1875
+ const We = J ? `ready:${J.eventId}` : n.status, ve = R(!1);
1809
1876
  pe(() => {
1810
- ye.current ? (n.status !== "loading" && (ye.current = !1), _e(k)) : Ee.current && _e(k);
1811
- }, [Be, k]);
1877
+ ve.current ? (n.status !== "loading" && (ve.current = !1), _e(w)) : Ee.current && _e(w);
1878
+ }, [We, w]);
1812
1879
  const O = R(null);
1813
- V || (O.current = null);
1814
- const Ie = R(null), $ = R({ state: n, eventId: Te, privacy: r, retryOffered: X, onRetry: i });
1815
- $.current = { state: n, eventId: Te, privacy: r, retryOffered: X, onRetry: i };
1816
- const De = St(
1880
+ J || (O.current = null);
1881
+ const Ie = R(null), $ = R({ state: n, eventId: Ce, privacy: l, retryOffered: Q, onRetry: i });
1882
+ $.current = { state: n, eventId: Ce, privacy: l, retryOffered: Q, onRetry: i };
1883
+ const De = At(
1817
1884
  () => ({
1818
1885
  getEventId: () => $.current.eventId ?? null,
1819
1886
  getLoadStatus: () => $.current.state.status,
@@ -1845,17 +1912,17 @@ const _a = sn(function({
1845
1912
  (S = O.current) == null || S.closeHistory();
1846
1913
  },
1847
1914
  setAppointmentStatus: (S) => {
1848
- const B = O.current, Pe = Ie.current;
1849
- if (!B || !Pe || B.allowed.length === 0)
1850
- return Ze(
1915
+ const W = O.current, Pe = Ie.current;
1916
+ if (!W || !Pe || W.allowed.length === 0)
1917
+ return nt(
1851
1918
  new Error("AppointmentDetailsPanel: the status is read-only.")
1852
1919
  );
1853
- if (S === B.status) return Promise.resolve();
1854
- if (!B.allowed.includes(S))
1855
- return Ze(
1920
+ if (S === W.status) return Promise.resolve();
1921
+ if (!W.allowed.includes(S))
1922
+ return nt(
1856
1923
  new Error(`AppointmentDetailsPanel: "${S}" is not allowed.`)
1857
1924
  );
1858
- const ce = () => Ze(
1925
+ const ce = () => nt(
1859
1926
  new Error("AppointmentDetailsPanel: a status save is in flight.")
1860
1927
  );
1861
1928
  if (Pe.getIsSaving()) return ce();
@@ -1863,160 +1930,162 @@ const _a = sn(function({
1863
1930
  return Le === void 0 ? ce() : Le;
1864
1931
  },
1865
1932
  retry: () => {
1866
- const { retryOffered: S, onRetry: B } = $.current;
1867
- if (!S || !B)
1933
+ const { retryOffered: S, onRetry: W } = $.current;
1934
+ if (!S || !W)
1868
1935
  throw new Error("AppointmentDetailsPanel: Retry is not offered.");
1869
- B();
1936
+ W();
1870
1937
  }
1871
1938
  }),
1872
1939
  []
1873
1940
  );
1874
- rn(pa, De, ge);
1875
- const be = /* @__PURE__ */ e(
1876
- Wt,
1941
+ dn(ga, De, fe);
1942
+ const ye = /* @__PURE__ */ e(
1943
+ $t,
1877
1944
  {
1878
- title: ve,
1879
- headingId: k,
1880
- icon: /* @__PURE__ */ e(Xt, { "aria-hidden": "true" }),
1945
+ title: ge,
1946
+ headingId: w,
1947
+ icon: /* @__PURE__ */ e(Qt, { "aria-hidden": "true" }),
1881
1948
  sticky: !0,
1882
1949
  divider: !0
1883
1950
  }
1884
1951
  );
1885
1952
  let de;
1886
1953
  return n.status === "ready" ? de = /* @__PURE__ */ e(
1887
- Fa,
1954
+ Ua,
1888
1955
  {
1889
1956
  read: n.read,
1890
1957
  refreshing: n.refreshing === !0,
1891
- currency: u,
1892
- now: h ?? /* @__PURE__ */ new Date(),
1893
- locale: Me,
1894
- shownTitle: ve,
1895
- headingId: k,
1896
- enter: Ce,
1958
+ currency: p,
1959
+ now: f ?? /* @__PURE__ */ new Date(),
1960
+ locale: Ue,
1961
+ shownTitle: ge,
1962
+ headingId: w,
1963
+ enter: Te,
1897
1964
  live: O,
1898
1965
  statusControl: Ie,
1899
- patientId: d,
1966
+ patientId: r,
1900
1967
  operator: c,
1901
1968
  chair: o,
1902
- privacy: r,
1903
- privacyTitle: l,
1969
+ privacy: l,
1970
+ privacyTitle: d,
1904
1971
  mapsLink: A,
1905
1972
  notesPreview: v,
1906
- onOpenNotes: g,
1907
- history: f,
1908
- onOpenHistory: N,
1973
+ onOpenNotes: y,
1974
+ history: g,
1975
+ onOpenHistory: x,
1909
1976
  noteUnrecordedEdits: L,
1910
1977
  readOnly: P,
1911
- onStatusChange: T,
1978
+ onStatusChange: C,
1912
1979
  allowedStatuses: M,
1913
- onDescriptionChange: I,
1914
- descriptionMaxLength: F,
1915
- onAssignPatient: C,
1916
- onEdit: q,
1917
- onMove: z,
1918
- onCopy: oe,
1919
- onDelete: K,
1920
- onJoinTelehealth: j,
1921
- onWhatsApp: U,
1922
- whatsappUrl: Y,
1923
- onBuyWhatsApp: ee,
1924
- createTaskUrl: te,
1925
- onRequestSignature: x,
1926
- onSignOnDevice: G,
1927
- onOpenPatient: ne,
1928
- shortcuts: xe,
1929
- documents: Ne
1980
+ onDescriptionChange: D,
1981
+ descriptionMaxLength: _,
1982
+ descriptionMeasureLength: E,
1983
+ onAssignPatient: q,
1984
+ onEdit: z,
1985
+ onMove: re,
1986
+ onCopy: K,
1987
+ onDelete: j,
1988
+ onJoinTelehealth: Y,
1989
+ onWhatsApp: B,
1990
+ whatsappUrl: ne,
1991
+ onBuyWhatsApp: ae,
1992
+ createTaskUrl: N,
1993
+ onRequestSignature: G,
1994
+ onSignOnDevice: V,
1995
+ onOpenPatient: Ae,
1996
+ shortcuts: Ne,
1997
+ documents: xe
1930
1998
  },
1931
1999
  n.read.eventId
1932
- ) : n.status === "loading" ? de = /* @__PURE__ */ b(se, { children: [
1933
- be,
1934
- /* @__PURE__ */ e(La, {})
1935
- ] }) : de = /* @__PURE__ */ b(se, { children: [
1936
- be,
2000
+ ) : n.status === "loading" ? de = /* @__PURE__ */ b(oe, { children: [
2001
+ ye,
2002
+ /* @__PURE__ */ e(Ha, {})
2003
+ ] }) : de = /* @__PURE__ */ b(oe, { children: [
2004
+ ye,
1937
2005
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
1938
- /* @__PURE__ */ e(Q, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e(Q.Description, { children: n.status === "error" ? ((Re = n.message) == null ? void 0 : Re.trim()) || m("emptyState.error.description") : n.reason }) }),
1939
- X ? /* @__PURE__ */ e(
1940
- E,
2006
+ /* @__PURE__ */ e(ee, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e(ee.Description, { children: n.status === "error" ? ((Re = n.message) == null ? void 0 : Re.trim()) || h("emptyState.error.description") : n.reason }) }),
2007
+ Q ? /* @__PURE__ */ e(
2008
+ T,
1941
2009
  {
1942
2010
  intent: "outline",
1943
2011
  "data-action": "retry-load",
1944
2012
  onClick: () => {
1945
- ye.current = !0, i == null || i();
2013
+ ve.current = !0, i == null || i();
1946
2014
  },
1947
- children: m("emptyState.error.cta")
2015
+ children: h("emptyState.error.cta")
1948
2016
  }
1949
2017
  ) : null
1950
2018
  ] })
1951
2019
  ] }), /* @__PURE__ */ e(
1952
2020
  "div",
1953
2021
  {
1954
- ref: Ue,
1955
- id: he,
2022
+ ref: Be,
2023
+ id: He,
1956
2024
  "data-component": "appointment-details-panel",
1957
- "data-component-id": ge,
1958
- "data-event-id": Te,
2025
+ "data-component-id": fe,
2026
+ "data-event-id": Ce,
1959
2027
  "data-status": n.status,
1960
2028
  "aria-busy": n.status === "loading" || void 0,
1961
- className: Ta({ className: fe }),
1962
- ...re,
2029
+ className: Ra({ className: he }),
2030
+ ...X,
1963
2031
  children: de
1964
2032
  }
1965
2033
  );
1966
2034
  });
1967
- _a.displayName = "AppointmentDetailsPanel";
1968
- function ns({
2035
+ Ba.displayName = "AppointmentDetailsPanel";
2036
+ function ls({
1969
2037
  eventId: t,
1970
2038
  load: n,
1971
2039
  reloadKey: i
1972
2040
  }) {
1973
- const { t: d } = Z("ui"), c = R("");
1974
- c.current = d("emptyState.error.description");
2041
+ const { t: r } = te("ui"), c = R("");
2042
+ c.current = r("emptyState.error.description");
1975
2043
  const o = R(n);
1976
2044
  pe(() => {
1977
2045
  o.current = n;
1978
2046
  });
1979
- const [u, h] = H(0), [p, a] = H(), r = JSON.stringify([i ?? null, u]), [l, A] = H({ eventId: t, count: 0 }), v = l.eventId === t ? l.count : l.count + 1;
1980
- l.eventId !== t && A({ eventId: t, count: v }), Se(() => {
2047
+ const [p, f] = H(0), [m, a] = H(), l = JSON.stringify([i ?? null, p]), [d, A] = H({ eventId: t, count: 0 }), v = d.eventId === t ? d.count : d.count + 1;
2048
+ d.eventId !== t && A({ eventId: t, count: v }), we(() => {
1981
2049
  if (t === null) {
1982
2050
  a(void 0);
1983
2051
  return;
1984
2052
  }
1985
- const L = new AbortController(), P = (T) => {
1986
- L.signal.aborted || a({ eventId: t, selection: v, request: r, value: T });
2053
+ const L = new AbortController(), P = (C) => {
2054
+ L.signal.aborted || a({ eventId: t, selection: v, request: l, value: C });
1987
2055
  };
1988
- return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((T) => {
1989
- var M, I;
1990
- if (T.status !== "ready") {
2056
+ return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((C) => {
2057
+ var M, D;
2058
+ if (C.status !== "ready") {
1991
2059
  P({
1992
2060
  status: "refused",
1993
2061
  eventId: t,
1994
- reason: T.reason,
1995
- retryable: T.retryable
2062
+ reason: C.reason,
2063
+ retryable: C.retryable
1996
2064
  });
1997
2065
  return;
1998
2066
  }
1999
- if (((M = T.details) == null ? void 0 : M.eventId) !== t || !Pn((I = T.details.appointment) == null ? void 0 : I.startIso))
2067
+ if (((M = C.details) == null ? void 0 : M.eventId) !== t || !On((D = C.details.appointment) == null ? void 0 : D.startIso))
2000
2068
  throw new Error(c.current);
2001
- P({ status: "ready", read: T.details });
2002
- }).catch((T) => {
2069
+ P({ status: "ready", read: C.details });
2070
+ }).catch((C) => {
2003
2071
  P({
2004
2072
  status: "error",
2005
2073
  eventId: t,
2006
- message: it(T, c.current)
2074
+ message: ot(C, c.current)
2007
2075
  });
2008
2076
  }), () => L.abort();
2009
- }, [t, v, r]);
2010
- const g = on(() => h((L) => L + 1), []);
2011
- if (t === null) return { state: null, retry: g };
2012
- const f = (p == null ? void 0 : p.eventId) === t && p.selection === v ? p : void 0;
2013
- let N = { status: "loading", eventId: t };
2014
- return (f == null ? void 0 : f.request) === r ? N = f.value : (f == null ? void 0 : f.value.status) === "ready" && (N = { status: "ready", read: f.value.read, refreshing: !0 }), { state: N, retry: g };
2077
+ }, [t, v, l]);
2078
+ const y = ln(() => f((L) => L + 1), []);
2079
+ if (t === null) return { state: null, retry: y };
2080
+ const g = (m == null ? void 0 : m.eventId) === t && m.selection === v ? m : void 0;
2081
+ let x = { status: "loading", eventId: t };
2082
+ return (g == null ? void 0 : g.request) === l ? x = g.value : (g == null ? void 0 : g.value.status) === "ready" && (x = { status: "ready", read: g.value.read, refreshing: !0 }), { state: x, retry: y };
2015
2083
  }
2016
2084
  export {
2017
- _a as A,
2085
+ Ba as A,
2018
2086
  ue as D,
2019
- pa as a,
2020
- ns as u
2087
+ ga as a,
2088
+ ha as s,
2089
+ ls as u
2021
2090
  };
2022
- //# sourceMappingURL=use-appointment-details-read-HVHbR0Zl.js.map
2091
+ //# sourceMappingURL=use-appointment-details-read-BR3TQOHx.js.map