@alfadocs/ui-kit 1.141.0 → 1.143.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/dist/_chunks/{actions-cell-renderer-C-l_ppP6.js → actions-cell-renderer-CPNyF6ye.js} +3 -3
  2. package/dist/_chunks/{ai-credits-notice-BNFcQoXo.js → ai-credits-notice-D_Zm_N2A.js} +2 -2
  3. package/dist/_chunks/{ai-permission-notice-C-xR2_iS.js → ai-permission-notice-CEDEWE2-.js} +19 -11
  4. package/dist/_chunks/{ai-prompt-input-B2QFwuJ1.js → ai-prompt-input-y4-dtQIT.js} +2 -2
  5. package/dist/_chunks/{ai-summary-panel-BhCo2vZF.js → ai-summary-panel-CJVOjr2I.js} +3 -3
  6. package/dist/_chunks/{alia-sidebar-CVBlKur9.js → alia-sidebar-AKz42_XE.js} +3 -3
  7. package/dist/_chunks/{anamnesis-card-sUFT0dpF.js → anamnesis-card-W8ZaDytS.js} +15 -14
  8. package/dist/_chunks/{anamnesis-summary-rows-YJGs2uWD.js → anamnesis-summary-rows-wUl7oXBO.js} +9 -9
  9. package/dist/_chunks/{appointment-card-r0OZm77v.js → appointment-card-HOZrABrQ.js} +3 -3
  10. package/dist/_chunks/{appointment-details-panel.history-DrIMDQYf.js → appointment-details-panel.history-B8R8XfGe.js} +37 -30
  11. package/dist/_chunks/{appointment-peek-BP_ACFz5.js → appointment-peek-BCzekfWh.js} +3 -3
  12. package/dist/_chunks/appointment-timeline-CMc_3C74.js +776 -0
  13. package/dist/_chunks/{appointment-tray-t_ltp-Yi.js → appointment-tray-D8k5YKLU.js} +2 -2
  14. package/dist/_chunks/{audio-recorder-6dUq8I38.js → audio-recorder-DxhCiLqG.js} +2 -2
  15. package/dist/_chunks/{balance-badge-cell-CRStPNDd.js → balance-badge-cell-10BdaOQ8.js} +6 -6
  16. package/dist/_chunks/{bill-line-table-DTqXdBED.js → bill-line-table-qAdmV19W.js} +2 -2
  17. package/dist/_chunks/{bishop-score-M7Fi-ykx.js → bishop-score-DbvfBlBM.js} +2 -2
  18. package/dist/_chunks/{button-group-DuQuuulC.js → button-group-DoKG16Fy.js} +2 -2
  19. package/dist/_chunks/{calculator-dialog-Cg3GjaRf.js → calculator-dialog-BWizCwN5.js} +2 -2
  20. package/dist/_chunks/{calendar-appointment-editor-dialog-CuXpgLCw.js → calendar-appointment-editor-dialog-9kVppi9f.js} +18 -18
  21. package/dist/_chunks/{calendar-editor-discard-host-BcMEgVEq.js → calendar-editor-discard-host-BblBxMqT.js} +5 -5
  22. package/dist/_chunks/{calendar-waiting-list-panel-BNQrUndD.js → calendar-waiting-list-panel-CSFJw5np.js} +6 -6
  23. package/dist/_chunks/{calendar.sheets-DcW8A3DI.js → calendar.sheets-DZh3p8HE.js} +13 -13
  24. package/dist/_chunks/{calls-panel-CJNQm7r8.js → calls-panel-CnjAKFgA.js} +92 -90
  25. package/dist/_chunks/{care-plan-card-CjHq6PLo.js → care-plan-card-CkRqA58O.js} +3 -3
  26. package/dist/_chunks/{care-plan-entry-card-DY1toF6E.js → care-plan-entry-card-DurPuYAP.js} +3 -3
  27. package/dist/_chunks/{care-plan-header-CeFXUDnL.js → care-plan-header-C4i93i8H.js} +2 -2
  28. package/dist/_chunks/{chart-D0EeFWst.js → chart-ChNsJf9_.js} +2 -2
  29. package/dist/_chunks/{chat-message-B4TMeZ2m.js → chat-message-IG9uRq6y.js} +2 -2
  30. package/dist/_chunks/{clinical-note-card-D--IwbZa.js → clinical-note-card-D-9xmRpf.js} +68 -52
  31. package/dist/_chunks/{color-picker-CC8ZfntU.js → color-picker-5FKOk_z1.js} +2 -2
  32. package/dist/_chunks/{communications-panel-DBWM9II9.js → communications-panel-MgAuWYBy.js} +5 -5
  33. package/dist/_chunks/{control-room-rail-DcJpHbp4.js → control-room-rail-DBmNpbDE.js} +2 -2
  34. package/dist/_chunks/{cycle-calculator-Cb66X2Pf.js → cycle-calculator-BUCGfEcy.js} +2 -2
  35. package/dist/_chunks/{dashboard-grid-2uVXEe9e.js → dashboard-grid-D2egA1Zu.js} +2 -2
  36. package/dist/_chunks/{data-grid-tabs-D9Y4DeeH.js → data-grid-tabs-Mbj6bSK2.js} +2 -2
  37. package/dist/_chunks/{data-grid-CRUSZcVT.js → data-grid-tyE2kGfx.js} +5 -5
  38. package/dist/_chunks/{data-table-CnLfOwxg.js → data-table-Huk4CNHs.js} +118 -118
  39. package/dist/_chunks/{data-table-tabs-NYLhD8_Z.js → data-table-tabs-D5ujdK56.js} +2 -2
  40. package/dist/_chunks/{date-picker-BmVBVpVu.js → date-picker-CD-PBzXM.js} +2 -2
  41. package/dist/_chunks/{date-range-panel-CT9Pk-HF.js → date-range-panel-BOgfP_V3.js} +2 -2
  42. package/dist/_chunks/{date-range-picker-2Up_FRrM.js → date-range-picker-Z-hI5Vb7.js} +2 -2
  43. package/dist/_chunks/{date-time-picker-C6b_Vymc.js → date-time-picker-DHza1SEH.js} +2 -2
  44. package/dist/_chunks/{default-tabs-CRbVCDSU.js → default-tabs-ChkVzOL8.js} +7 -7
  45. package/dist/_chunks/dialog-239Geb7Z.js +431 -0
  46. package/dist/_chunks/dialog-container-DHR0byah.js +17 -0
  47. package/dist/_chunks/{document-preview-FTCHXYhk.js → document-preview-x_S8V7VC.js} +3 -3
  48. package/dist/_chunks/{dropdown-menu-DBWaW4pq.js → dropdown-menu-Bm1KALnk.js} +2 -2
  49. package/dist/_chunks/{due-date-calculator-Dlqegxx9.js → due-date-calculator-DpN0Z9p4.js} +2 -2
  50. package/dist/_chunks/{editable-currency-cell-renderer-CZMQ5xRT.js → editable-currency-cell-renderer-C6z6ABN_.js} +2 -2
  51. package/dist/_chunks/{entity-summary-CPUHzyil.js → entity-summary-DgZSdp6d.js} +2 -2
  52. package/dist/_chunks/{face-scheme-Bxt7ZnJn.js → face-scheme-S88jbOzl.js} +3 -3
  53. package/dist/_chunks/{file-manager-Bsccb8Jj.js → file-manager-kdPsJq_k.js} +5 -5
  54. package/dist/_chunks/{gestational-age-calculator-DXSPWG8u.js → gestational-age-calculator-CCDIhSMV.js} +3 -3
  55. package/dist/_chunks/{hcg-doubling-Dqbj6PQj.js → hcg-doubling-BekuksBv.js} +2 -2
  56. package/dist/_chunks/{header-settings-Cu-MKOsO.js → header-settings-CvZ7Qii6.js} +3 -3
  57. package/dist/_chunks/{heatmap-CFPaEKD_.js → heatmap-Cb4JSpv_.js} +3 -3
  58. package/dist/_chunks/{help-me-write-templates-DO6vJeP4.js → help-me-write-templates-C84_4iwX.js} +2 -2
  59. package/dist/_chunks/{hover-card-CuRIA4wN.js → hover-card-CIiPOlyM.js} +2 -2
  60. package/dist/_chunks/{icon-button-group-SmkdVCNx.js → icon-button-group-CLhC7wjU.js} +2 -2
  61. package/dist/_chunks/{icon-picker-BmU6gpZT.js → icon-picker-Ct6n8GTa.js} +2 -2
  62. package/dist/_chunks/{info-tip-B3cn3fY2.js → info-tip-CkH2En-i.js} +2 -2
  63. package/dist/_chunks/{invoice-upload-list-BR6vycF7.js → invoice-upload-list-CZ1B9yWh.js} +4 -4
  64. package/dist/_chunks/{kit-extensions-QddOSnIq.js → kit-extensions-C_oZ7WOq.js} +4 -4
  65. package/dist/_chunks/{link-cell-renderer-hAJplRFF.js → link-cell-renderer-Bt_sl4iP.js} +5 -5
  66. package/dist/_chunks/{locale-picker-C86h8Yt1.js → locale-picker-OrojXX6E.js} +2 -2
  67. package/dist/_chunks/{marketplace-app-shell-dMmxI6MT.js → marketplace-app-shell-DnL187-U.js} +4 -4
  68. package/dist/_chunks/{message-card-Bw_q1qKx.js → message-card-DvBjcZgH.js} +10 -9
  69. package/dist/_chunks/{message-tray-pLGgLmoG.js → message-tray-BHaE254g.js} +3 -3
  70. package/dist/_chunks/{muscle-scheme-BB2eBfww.js → muscle-scheme-vNd8wU7V.js} +2 -2
  71. package/dist/_chunks/{non-modal-tab-exit-j3CPOuE3.js → non-modal-tab-exit-DqJao_E-.js} +2 -1
  72. package/dist/_chunks/{notes-panel-C4HSUudf.js → notes-panel-DCKbuZqS.js} +400 -397
  73. package/dist/_chunks/{notification-card-DRMv2_pW.js → notification-card-CDuzAytQ.js} +11 -10
  74. package/dist/_chunks/{notification-tray-mlCfxNRH.js → notification-tray-CnPV8jDA.js} +3 -3
  75. package/dist/_chunks/{optical-prescription-GzeK_2cf.js → optical-prescription-CWwrW4YQ.js} +2 -2
  76. package/dist/_chunks/{pagination-C7N_NiRN.js → pagination-BpXG5jVk.js} +2 -2
  77. package/dist/_chunks/{parts-BOnDDU3E.js → parts-IFiXO68Y.js} +3 -3
  78. package/dist/_chunks/{patient-account-settings-nSvNKKOL.js → patient-account-settings-BQ9bMsJS.js} +3 -3
  79. package/dist/_chunks/{patient-check-in-resume-Cj2wg_NQ.js → patient-check-in-resume-v5lYhMsh.js} +5 -5
  80. package/dist/_chunks/{patient-details-D0PjzALT.js → patient-details-6uJZ27ZL.js} +2 -2
  81. package/dist/_chunks/{patient-field-row-DlpIModg.js → patient-field-row-D8Cu_MQp.js} +5 -5
  82. package/dist/_chunks/{patient-search-aTFd7p9s.js → patient-search-C6-INPjs.js} +2 -2
  83. package/dist/_chunks/{patient-summary-card-BP_K7g_q.js → patient-summary-card-NYjO0IfN.js} +3 -3
  84. package/dist/_chunks/{pdf-viewer-TRC5jEm5.js → pdf-viewer-C8no312t.js} +2 -2
  85. package/dist/_chunks/{phone-input-DRKcJUi4.js → phone-input-DHiYJZ9v.js} +2 -2
  86. package/dist/_chunks/{popover-CN5IsOeS.js → popover-CkvP3rHZ.js} +2 -2
  87. package/dist/_chunks/{popup-region-qz_5_A0V.js → popup-region-BgZ8oeUB.js} +2 -2
  88. package/dist/_chunks/{portal-details-Cnyqf9kY.js → portal-details-CwX3VNxh.js} +2 -2
  89. package/dist/_chunks/{portal-documents-g109Dl0O.js → portal-documents-BWdXhWpZ.js} +5 -5
  90. package/dist/_chunks/{portal-parts-DgDFuED8.js → portal-parts-DbCMuZVl.js} +3 -3
  91. package/dist/_chunks/{practice-results-DaxGw9_f.js → practice-results-BUEsl2Pj.js} +3 -3
  92. package/dist/_chunks/{pregnancy-dating-a6WIg4oy.js → pregnancy-dating-wc9iCN0f.js} +3 -3
  93. package/dist/_chunks/{prescription-history-Bp_JHhdF.js → prescription-history-DPjqflwJ.js} +9 -9
  94. package/dist/_chunks/{product-hub-panel-K4QbULG7.js → product-hub-panel-DiWjSIR2.js} +3 -3
  95. package/dist/_chunks/{public-header.agent-DaeDfLfy.js → public-header.agent-Dsl9zhA2.js} +2 -2
  96. package/dist/_chunks/{radiograph-panel.agent-88VjqlG7.js → radiograph-panel.agent-CSpr2paU.js} +4 -4
  97. package/dist/_chunks/{recaptcha-widget-iglUBIF3.js → recaptcha-widget-D6RwGg8B.js} +35 -35
  98. package/dist/_chunks/{registration-form-Cs9o6e5q.js → registration-form-BEsIjznv.js} +4 -4
  99. package/dist/_chunks/{reserved.agent-L2ElYPuj.js → reserved.agent-C_pr0bHy.js} +4 -4
  100. package/dist/_chunks/{rich-text-editor-orJ-hPgm.js → rich-text-editor-DoCaj0qc.js} +8 -8
  101. package/dist/_chunks/{row-actions-BF2-uizV.js → row-actions-C6d6vy5z.js} +3 -3
  102. package/dist/_chunks/{saved-view-tabs-DLWm88Eq.js → saved-view-tabs-CVUM3Nqz.js} +2 -2
  103. package/dist/_chunks/{select-Bm8s3q-X.js → select-Bw5FvGJ7.js} +2 -2
  104. package/dist/_chunks/{send-registration-link-form-C1vw6H1M.js → send-registration-link-form-D-NkS__p.js} +3 -3
  105. package/dist/_chunks/{sheet-BdhYeQQT.js → sheet-BIAhwdyS.js} +2 -2
  106. package/dist/_chunks/{sign-document-DDZbmYHu.js → sign-document-BUhWw-7S.js} +2 -2
  107. package/dist/_chunks/{signature-request-D3sLLOM6.js → signature-request-BfKo3vOz.js} +4 -4
  108. package/dist/_chunks/{signing-end-screen-BdhbkPKO.js → signing-end-screen-Pmda6tCH.js} +4 -4
  109. package/dist/_chunks/{step-up-dialog-C2JqJmCA.js → step-up-dialog-C1O8ctoh.js} +2 -2
  110. package/dist/_chunks/{sync-tray-BhnkgXKK.js → sync-tray-BgrO4QjH.js} +56 -54
  111. package/dist/_chunks/{tab-bar-CeC2QOwB.js → tab-bar-C6tPDq9s.js} +2 -2
  112. package/dist/_chunks/{tabs-BXr5XeGq.js → tabs-BOf9OO--.js} +3 -3
  113. package/dist/_chunks/{task-editor-DDVDPKJf.js → task-editor-DNkrLbgK.js} +7 -6
  114. package/dist/_chunks/{tasks-panel-BHXaPNOZ.js → tasks-panel-CDFHAHrN.js} +139 -139
  115. package/dist/_chunks/{theme-toggle-BQDFxvVS.js → theme-toggle-C2LPw3xr.js} +3 -3
  116. package/dist/_chunks/{timeline-DXko0M1t.js → timeline-BzGi_3GQ.js} +2 -2
  117. package/dist/_chunks/timestamp-UMF1llBs.js +113 -0
  118. package/dist/_chunks/{token-insert-menu-BLtfMTJd.js → token-insert-menu-sGtftx4Y.js} +2 -2
  119. package/dist/_chunks/{tool-rail-Kup1b7xI.js → tool-rail-mWmYNRCV.js} +226 -222
  120. package/dist/_chunks/{toolbar-B7UHCMSr.js → toolbar-JTR20W-U.js} +3 -3
  121. package/dist/_chunks/{tooth-scheme-BtnFgugP.js → tooth-scheme-DpgciFU8.js} +2 -2
  122. package/dist/_chunks/{unit-converter-OBhSDXee.js → unit-converter-D1e1wZRE.js} +2 -2
  123. package/dist/_chunks/{use-appointment-details-read-DeQnmmZw.js → use-appointment-details-read-xj0PyEhI.js} +591 -576
  124. package/dist/_chunks/use-resolved-theme-B0f1_oyq.js +32 -0
  125. package/dist/_chunks/{verify-identity-types-C6Bam8v6.js → verify-identity-types-CpeJIc9F.js} +2 -2
  126. package/dist/_chunks/{voice-control-panel-Dc_NFH2R.js → voice-control-panel-DqvvZN2A.js} +4 -4
  127. package/dist/_chunks/{widget-picker-D3T7e8a4.js → widget-picker-Ddl0lDWV.js} +2 -2
  128. package/dist/_chunks/{workflow-map-DaZFP9SJ.js → workflow-map-CwfLHuiD.js} +3 -3
  129. package/dist/_chunks/{workflow-status-CO0mxXs2.js → workflow-status-Cg7yjnye.js} +2 -2
  130. package/dist/_chunks/{workflow-webhook-action-BsGSh3h9.js → workflow-webhook-action-BUWc2txJ.js} +2 -2
  131. package/dist/agent-catalog.json +10 -7
  132. package/dist/agent-i18n/en.json +3 -3
  133. package/dist/appointment-editor-panel/index.js +2 -2
  134. package/dist/browser-support.js +1 -1
  135. package/dist/calendar-action-buttons/index.js +1 -1
  136. package/dist/components/_shared/non-modal-tab-exit.d.ts +1 -0
  137. package/dist/components/ai-credits-notice/index.js +1 -1
  138. package/dist/components/ai-permission-notice/index.js +1 -1
  139. package/dist/components/ai-prompt-input/index.js +1 -1
  140. package/dist/components/ai-summary-panel/index.js +1 -1
  141. package/dist/components/anamnesis-card/index.js +1 -1
  142. package/dist/components/appointment-card/index.js +2 -2
  143. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
  144. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +5 -0
  145. package/dist/components/appointment-details-panel/index.js +1 -1
  146. package/dist/components/appointment-peek/index.js +1 -1
  147. package/dist/components/appointment-timeline/appointment-timeline.d.ts +27 -0
  148. package/dist/components/appointment-timeline/index.js +1 -1
  149. package/dist/components/audio-recorder/index.js +1 -1
  150. package/dist/components/bill-line-table/index.js +1 -1
  151. package/dist/components/bill-table/index.js +1 -1
  152. package/dist/components/bishop-score/index.js +1 -1
  153. package/dist/components/booking/index.js +1 -1
  154. package/dist/components/button-group/index.js +1 -1
  155. package/dist/components/calculator-dialog/index.js +1 -1
  156. package/dist/components/calls-panel/index.js +1 -1
  157. package/dist/components/care-plan-card/index.js +1 -1
  158. package/dist/components/care-plan-entry-card/index.js +1 -1
  159. package/dist/components/care-plan-header/index.js +1 -1
  160. package/dist/components/chart/index.js +1 -1
  161. package/dist/components/chat-message/index.js +1 -1
  162. package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -1
  163. package/dist/components/clinical-note-card/index.js +1 -1
  164. package/dist/components/color-picker/index.js +1 -1
  165. package/dist/components/communications-panel/index.js +1 -1
  166. package/dist/components/control-room-rail/index.js +1 -1
  167. package/dist/components/cycle-calculator/index.js +1 -1
  168. package/dist/components/dashboard-grid/index.js +1 -1
  169. package/dist/components/data-grid/index.js +2 -2
  170. package/dist/components/data-grid-tabs/index.js +1 -1
  171. package/dist/components/data-table/index.js +4 -4
  172. package/dist/components/data-table-tabs/index.js +1 -1
  173. package/dist/components/date-picker/index.js +1 -1
  174. package/dist/components/date-range-picker/index.js +1 -1
  175. package/dist/components/date-time-picker/index.js +1 -1
  176. package/dist/components/dialog/dialog-container.d.ts +27 -0
  177. package/dist/components/dialog/dialog.d.ts +12 -2
  178. package/dist/components/dialog/index.d.ts +3 -1
  179. package/dist/components/dialog/index.js +5 -3
  180. package/dist/components/document-preview/index.js +1 -1
  181. package/dist/components/dropdown-menu/index.js +1 -1
  182. package/dist/components/due-date-calculator/index.js +1 -1
  183. package/dist/components/entity-summary/index.js +1 -1
  184. package/dist/components/face-scheme/index.js +1 -1
  185. package/dist/components/file-manager/index.js +1 -1
  186. package/dist/components/gestational-age-calculator/index.js +1 -1
  187. package/dist/components/hcg-doubling/index.js +1 -1
  188. package/dist/components/header-settings/index.js +1 -1
  189. package/dist/components/heatmap/index.js +1 -1
  190. package/dist/components/hover-card/index.js +1 -1
  191. package/dist/components/icon-button-group/index.js +1 -1
  192. package/dist/components/icon-picker/index.js +1 -1
  193. package/dist/components/info-tip/index.js +1 -1
  194. package/dist/components/invoice-upload-list/index.js +1 -1
  195. package/dist/components/locale-picker/index.js +1 -1
  196. package/dist/components/message-card/index.js +1 -1
  197. package/dist/components/message-tray/index.js +1 -1
  198. package/dist/components/muscle-scheme/index.js +1 -1
  199. package/dist/components/notes-panel/index.js +1 -1
  200. package/dist/components/notes-panel/notes-panel.d.ts +5 -4
  201. package/dist/components/notification-card/index.js +1 -1
  202. package/dist/components/notification-tray/index.js +1 -1
  203. package/dist/components/optical-prescription/index.js +1 -1
  204. package/dist/components/pagination/index.js +1 -1
  205. package/dist/components/patient-details/index.js +1 -1
  206. package/dist/components/patient-search/index.js +1 -1
  207. package/dist/components/patient-summary-card/index.js +1 -1
  208. package/dist/components/patient-table/index.js +1 -1
  209. package/dist/components/pdf-viewer/index.js +1 -1
  210. package/dist/components/phone-input/index.js +1 -1
  211. package/dist/components/popover/index.js +1 -1
  212. package/dist/components/practice-results/index.js +1 -1
  213. package/dist/components/pregnancy-dating/index.js +1 -1
  214. package/dist/components/product-hub-tray/index.js +1 -1
  215. package/dist/components/public-header/index.js +1 -1
  216. package/dist/components/radiograph-panel/index.js +1 -1
  217. package/dist/components/recaptcha-widget/index.js +1 -1
  218. package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +1 -1
  219. package/dist/components/rich-text-editor/index.js +2 -2
  220. package/dist/components/row-actions/index.js +1 -1
  221. package/dist/components/select/index.js +1 -1
  222. package/dist/components/sheet/index.js +1 -1
  223. package/dist/components/sign-document/index.js +1 -1
  224. package/dist/components/skeleton-scheme/index.js +1 -1
  225. package/dist/components/step-up-dialog/index.js +1 -1
  226. package/dist/components/sync-tray/index.js +1 -1
  227. package/dist/components/tab-bar/index.js +1 -1
  228. package/dist/components/tabs/index.js +1 -1
  229. package/dist/components/task-editor/index.js +1 -1
  230. package/dist/components/tasks-panel/index.js +1 -1
  231. package/dist/components/theme-toggle/index.js +1 -1
  232. package/dist/components/timeline/index.js +1 -1
  233. package/dist/components/timestamp/index.js +1 -1
  234. package/dist/components/timestamp/timestamp.d.ts +6 -0
  235. package/dist/components/token-insert-menu/index.js +1 -1
  236. package/dist/components/tool-rail/index.js +1 -1
  237. package/dist/components/tooth-scheme/index.js +1 -1
  238. package/dist/components/unit-converter/index.js +1 -1
  239. package/dist/components/voice-control-panel/index.js +1 -1
  240. package/dist/components/widget-picker/index.js +1 -1
  241. package/dist/components/workflow/index.js +1 -1
  242. package/dist/components/workflow-status/index.js +1 -1
  243. package/dist/core.css +1 -1
  244. package/dist/find-free-slots-panel/index.js +1 -1
  245. package/dist/hooks/index.d.ts +2 -0
  246. package/dist/hooks/index.js +58 -56
  247. package/dist/hooks/use-resolved-theme.d.ts +20 -0
  248. package/dist/i18n/locales/ar.d.ts +5 -0
  249. package/dist/i18n/locales/ar.js +5 -0
  250. package/dist/i18n/locales/de.d.ts +5 -0
  251. package/dist/i18n/locales/de.js +5 -0
  252. package/dist/i18n/locales/el.d.ts +5 -0
  253. package/dist/i18n/locales/el.js +5 -0
  254. package/dist/i18n/locales/en.d.ts +5 -0
  255. package/dist/i18n/locales/en.js +5 -0
  256. package/dist/i18n/locales/es.d.ts +5 -0
  257. package/dist/i18n/locales/es.js +5 -0
  258. package/dist/i18n/locales/fr.d.ts +5 -0
  259. package/dist/i18n/locales/fr.js +5 -0
  260. package/dist/i18n/locales/hi.d.ts +5 -0
  261. package/dist/i18n/locales/hi.js +5 -0
  262. package/dist/i18n/locales/it.d.ts +5 -0
  263. package/dist/i18n/locales/it.js +5 -0
  264. package/dist/i18n/locales/ja.d.ts +5 -0
  265. package/dist/i18n/locales/ja.js +5 -0
  266. package/dist/i18n/locales/nl.d.ts +5 -0
  267. package/dist/i18n/locales/nl.js +5 -0
  268. package/dist/i18n/locales/pl.d.ts +5 -0
  269. package/dist/i18n/locales/pl.js +5 -0
  270. package/dist/i18n/locales/pt.d.ts +5 -0
  271. package/dist/i18n/locales/pt.js +5 -0
  272. package/dist/i18n/locales/ro.d.ts +5 -0
  273. package/dist/i18n/locales/ro.js +5 -0
  274. package/dist/i18n/locales/ru.d.ts +5 -0
  275. package/dist/i18n/locales/ru.js +5 -0
  276. package/dist/i18n/locales/sq.d.ts +5 -0
  277. package/dist/i18n/locales/sq.js +5 -0
  278. package/dist/i18n/locales/sv.d.ts +5 -0
  279. package/dist/i18n/locales/sv.js +5 -0
  280. package/dist/i18n/locales/tr.d.ts +5 -0
  281. package/dist/i18n/locales/tr.js +5 -0
  282. package/dist/i18n/locales/zh.d.ts +5 -0
  283. package/dist/i18n/locales/zh.js +5 -0
  284. package/dist/index.js +949 -947
  285. package/dist/locales/ar.json +5 -0
  286. package/dist/locales/de.json +5 -0
  287. package/dist/locales/el.json +5 -0
  288. package/dist/locales/en.json +5 -0
  289. package/dist/locales/es.json +5 -0
  290. package/dist/locales/fr.json +5 -0
  291. package/dist/locales/hi.json +5 -0
  292. package/dist/locales/it.json +5 -0
  293. package/dist/locales/ja.json +5 -0
  294. package/dist/locales/nl.json +5 -0
  295. package/dist/locales/pl.json +5 -0
  296. package/dist/locales/pt.json +5 -0
  297. package/dist/locales/ro.json +5 -0
  298. package/dist/locales/ru.json +5 -0
  299. package/dist/locales/sq.json +5 -0
  300. package/dist/locales/sv.json +5 -0
  301. package/dist/locales/tr.json +5 -0
  302. package/dist/locales/zh.json +5 -0
  303. package/dist/online-bookings-panel/index.js +1 -1
  304. package/dist/patterns/alia-assistant/index.js +1 -1
  305. package/dist/patterns/anamnesis/index.js +1 -1
  306. package/dist/patterns/calendar/index.js +3 -3
  307. package/dist/patterns/help-me-write-templates/index.js +1 -1
  308. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  309. package/dist/patterns/patient-account-settings/index.js +1 -1
  310. package/dist/patterns/patient-check-in/index.js +1 -1
  311. package/dist/patterns/patient-portal/index.js +2 -2
  312. package/dist/patterns/prescription/index.js +1 -1
  313. package/dist/patterns/registration-form/index.js +1 -1
  314. package/dist/patterns/send-registration-link-form/index.js +1 -1
  315. package/dist/patterns/signature-request/index.js +1 -1
  316. package/dist/patterns/signing/index.js +1 -1
  317. package/dist/patterns/verify-identity/index.js +1 -1
  318. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  319. package/dist/tokens.css +1 -1
  320. package/dist/waiting-list-panel/index.js +2 -2
  321. package/package.json +1 -1
  322. package/dist/_chunks/appointment-timeline-Bs-rTMzi.js +0 -689
  323. package/dist/_chunks/dialog-CVTxyR0v.js +0 -349
  324. package/dist/_chunks/timestamp-DPLDWdxA.js +0 -109
@@ -1,81 +1,81 @@
1
- import { jsxs as v, jsx as e, Fragment as ae } from "react/jsx-runtime";
2
- import { c as ot } from "./index-D2ZczOXr.js";
3
- import { useId as Ze, useRef as R, forwardRef as Xt, useEffect as we, useMemo as yt, useState as H, useCallback as Jt } from "react";
4
- import { useTranslation as X } from "react-i18next";
5
- import { u as Qt } from "./registry-DvAUVLHh.js";
1
+ import { jsxs as v, jsx as e, Fragment as ie } from "react/jsx-runtime";
2
+ import { c as lt } from "./index-D2ZczOXr.js";
3
+ import { useId as je, useRef as R, forwardRef as Zt, useEffect as Ae, useMemo as kt, useState as H, useCallback as en } from "react";
4
+ import { useTranslation as J } from "react-i18next";
5
+ import { u as tn } from "./registry-DvAUVLHh.js";
6
6
  import { u as ue } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
- import { c as Zt } from "./compose-refs-C0k0tdqF.js";
8
- import { g as et } from "./get-error-message-DbFUzuja.js";
9
- import { h as Xe } from "./handled-rejection-C-6Dq0As.js";
10
- import { c as en, a as bt } from "./privacy-mask-C2ZLKrMh.js";
11
- import { A as G } from "./alert-C4WKViaS.js";
7
+ import { c as nn } from "./compose-refs-C0k0tdqF.js";
8
+ import { g as nt } from "./get-error-message-DbFUzuja.js";
9
+ import { h as Ze } from "./handled-rejection-C-6Dq0As.js";
10
+ import { c as an, a as wt } from "./privacy-mask-C2ZLKrMh.js";
11
+ import { A as X } from "./alert-C4WKViaS.js";
12
12
  import { B as C } from "./button-DohK_Ak_.js";
13
- import { I as _t } from "./icon-button-S8_weU3g.js";
14
- import { B as tn } from "./button-group-DuQuuulC.js";
15
- import { D as We } from "./dropdown-menu-DBWaW4pq.js";
16
- import { E as Ht } from "./editable-description-KU56SP4P.js";
17
- import { N as tt } from "./note-timeline-BbjHMhkL.js";
18
- import { P as Mt } from "./panel-header-CbtlTe85.js";
19
- import { P as Je } from "./panel-subview-DCyvn-49.js";
20
- import { P as Ft } from "./patient-summary-card-BP_K7g_q.js";
13
+ import { I as Mt } from "./icon-button-S8_weU3g.js";
14
+ import { B as sn } from "./button-group-DoKG16Fy.js";
15
+ import { D as $e } from "./dropdown-menu-Bm1KALnk.js";
16
+ import { E as Ft } from "./editable-description-KU56SP4P.js";
17
+ import { N as at } from "./note-timeline-BbjHMhkL.js";
18
+ import { P as Wt } from "./panel-header-CbtlTe85.js";
19
+ import { P as et } from "./panel-subview-DCyvn-49.js";
20
+ import { P as Bt } from "./patient-summary-card-NYjO0IfN.js";
21
21
  import { S as pe } from "./section-card-CYfeQ6EQ.js";
22
- import { C as nn, S as ke } from "./skeleton-tTWJpvAq.js";
23
- import { T as an } from "./text-area-COMVJ1yE.js";
24
- import { T as sn } from "./tooltip-uEBdD1-5.js";
25
- import { T as Bt } from "./treatment-receipt-BZzwvsnY.js";
26
- import { a as Qe } from "./whatsapp-button-XbozeDl_.js";
27
- import { W as on, a as rn } from "./workflow-status-CO0mxXs2.js";
28
- import { a as kt, u as ln, i as dn } from "./appointment-workflow-status-S-lx81Yz.js";
29
- import { M as cn, C as wt, A as un } from "./appointment-details-panel.history-DrIMDQYf.js";
30
- import { R as pn, a as St, b as nt, e as mn, g as hn, c as fn, d as gn, h as vn, D as At, f as yn, i as bn, p as kn } from "./appointment-details-panel.identity-C20Y9xNC.js";
22
+ import { C as on, S as Se } from "./skeleton-tTWJpvAq.js";
23
+ import { T as rn } from "./text-area-COMVJ1yE.js";
24
+ import { T as ln } from "./tooltip-uEBdD1-5.js";
25
+ import { T as Ut } from "./treatment-receipt-BZzwvsnY.js";
26
+ import { a as tt } from "./whatsapp-button-XbozeDl_.js";
27
+ import { W as dn, a as cn } from "./workflow-status-Cg7yjnye.js";
28
+ import { a as St, u as un, i as pn } from "./appointment-workflow-status-S-lx81Yz.js";
29
+ import { M as mn, C as At, A as hn } from "./appointment-details-panel.history-B8R8XfGe.js";
30
+ import { R as fn, a as Nt, b as it, e as gn, g as vn, c as yn, d as bn, h as kn, D as Tt, f as wn, i as Sn, p as An } from "./appointment-details-panel.identity-C20Y9xNC.js";
31
31
  import { A as xt } from "./avatar-Dp5apm1d.js";
32
- import { B as Wt } from "./badge-BUk4RjTS.js";
33
- import { C as wn } from "./counter-WsvRuum1.js";
34
- import { D as Ue } from "./description-list-BxzDN9o2.js";
35
- import { T as Nt } from "./timestamp-DPLDWdxA.js";
36
- import { T as Sn } from "./transaction-chip-CkYd-3ky.js";
37
- import { H as Se } from "./hover-card-CuRIA4wN.js";
38
- import { c as Ut } from "./createLucideIcon-DhHxpK9K.js";
39
- import { S as Et } from "./smartphone-C0rFF2if.js";
40
- import { P as An } from "./phone-FceYcIFQ.js";
41
- import { M as xn } from "./mail-BqXVF2zH.js";
42
- import { M as Nn } from "./map-pin-BaY37-Km.js";
43
- import { F as En } from "./file-pen-line-k4uMBM3h.js";
44
- import { C as Tn } from "./contact-round-DiSvB3LP.js";
45
- import { P as Cn } from "./pen-line-D0De5zdl.js";
46
- import { C as In } from "./credit-card-D9XZsHGA.js";
47
- import { H as Dn } from "./heart-pulse-BCppJyN2.js";
48
- import { R as Rn } from "./refresh-cw-DnI0cLFC.js";
49
- import { C as Pn } from "./calendar-days-BGWklvE-.js";
50
- import { C as Ln } from "./clock-Drd4Wtis.js";
51
- import { H as On } from "./hourglass-BEAzW1wE.js";
52
- import { V as $t } from "./video-BheNGvsu.js";
53
- import { A as Tt } from "./armchair-BaLDW6Hz.js";
54
- import { B as _n } from "./building-2-D33bLCWL.js";
55
- import { R as Hn } from "./repeat-CvQa5rZt.js";
56
- import { N as Mn } from "./notebook-pen-CO7HoM-W.js";
57
- import { C as at } from "./clipboard-list-rSzfIYZB.js";
58
- import { U as Fn } from "./user-plus-BtcOLgNU.js";
59
- import { P as Ct } from "./pencil-B1sKKyuT.js";
60
- import { C as Bn } from "./copy-vRpqqHtY.js";
61
- import { P as Wn } from "./plus-DzMQ_c6b.js";
62
- import { S as Un } from "./square-check-big-dj0o8yA3.js";
63
- import { T as $n } from "./trash-2-uumy3fy1.js";
64
- import { H as It } from "./history-CK2JaU2g.js";
65
- import { C as qt } from "./calendar-clock-hbObjfGY.js";
66
- import { C as qn } from "./chevron-down-DWE7GSq9.js";
67
- import { C as zn } from "./camera-VSklPDCv.js";
68
- import { F as Kn } from "./file-BuG1VMAy.js";
69
- import { F as jn } from "./file-text-5yv6r2ls.js";
70
- import { F as Yn } from "./folder-BghC8_S2.js";
71
- import { R as Vn } from "./receipt-euro-B1cLM_TN.js";
32
+ import { B as $t } from "./badge-BUk4RjTS.js";
33
+ import { C as Nn } from "./counter-WsvRuum1.js";
34
+ import { D as qe } from "./description-list-BxzDN9o2.js";
35
+ import { T as Et } from "./timestamp-UMF1llBs.js";
36
+ import { T as Tn } from "./transaction-chip-CkYd-3ky.js";
37
+ import { H as Ne } from "./hover-card-CIiPOlyM.js";
38
+ import { c as qt } from "./createLucideIcon-DhHxpK9K.js";
39
+ import { S as Ct } from "./smartphone-C0rFF2if.js";
40
+ import { P as xn } from "./phone-FceYcIFQ.js";
41
+ import { M as En } from "./mail-BqXVF2zH.js";
42
+ import { M as Cn } from "./map-pin-BaY37-Km.js";
43
+ import { F as In } from "./file-pen-line-k4uMBM3h.js";
44
+ import { C as Dn } from "./contact-round-DiSvB3LP.js";
45
+ import { P as Rn } from "./pen-line-D0De5zdl.js";
46
+ import { C as Pn } from "./credit-card-D9XZsHGA.js";
47
+ import { H as Ln } from "./heart-pulse-BCppJyN2.js";
48
+ import { R as On } from "./refresh-cw-DnI0cLFC.js";
49
+ import { C as _n } from "./calendar-days-BGWklvE-.js";
50
+ import { C as Hn } from "./clock-Drd4Wtis.js";
51
+ import { H as Mn } from "./hourglass-BEAzW1wE.js";
52
+ import { V as zt } from "./video-BheNGvsu.js";
53
+ import { A as It } from "./armchair-BaLDW6Hz.js";
54
+ import { B as Fn } from "./building-2-D33bLCWL.js";
55
+ import { R as Wn } from "./repeat-CvQa5rZt.js";
56
+ import { N as Bn } from "./notebook-pen-CO7HoM-W.js";
57
+ import { C as st } from "./clipboard-list-rSzfIYZB.js";
58
+ import { U as Un } from "./user-plus-BtcOLgNU.js";
59
+ import { P as Dt } from "./pencil-B1sKKyuT.js";
60
+ import { C as $n } from "./copy-vRpqqHtY.js";
61
+ import { P as qn } from "./plus-DzMQ_c6b.js";
62
+ import { S as zn } from "./square-check-big-dj0o8yA3.js";
63
+ import { T as Kn } from "./trash-2-uumy3fy1.js";
64
+ import { H as Rt } from "./history-CK2JaU2g.js";
65
+ import { C as Kt } from "./calendar-clock-hbObjfGY.js";
66
+ import { C as jn } from "./chevron-down-DWE7GSq9.js";
67
+ import { C as Yn } from "./camera-VSklPDCv.js";
68
+ import { F as Vn } from "./file-BuG1VMAy.js";
69
+ import { F as Gn } from "./file-text-5yv6r2ls.js";
70
+ import { F as Xn } from "./folder-BghC8_S2.js";
71
+ import { R as Jn } from "./receipt-euro-B1cLM_TN.js";
72
72
  /**
73
73
  * @license lucide-react v1.22.0 - ISC
74
74
  *
75
75
  * This source code is licensed under the ISC license.
76
76
  * See the LICENSE file in the root directory of this source tree.
77
77
  */
78
- const Gn = [
78
+ const Qn = [
79
79
  ["path", { d: "M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8", key: "1w3rig" }],
80
80
  ["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" }],
81
81
  ["path", { d: "M2 21h20", key: "1nyx9w" }],
@@ -85,20 +85,20 @@ const Gn = [
85
85
  ["path", { d: "M7 4h.01", key: "1bh4kh" }],
86
86
  ["path", { d: "M12 4h.01", key: "1ujb9j" }],
87
87
  ["path", { d: "M17 4h.01", key: "1upcoc" }]
88
- ], Xn = Ut("cake", Gn);
88
+ ], Zn = qt("cake", Qn);
89
89
  /**
90
90
  * @license lucide-react v1.22.0 - ISC
91
91
  *
92
92
  * This source code is licensed under the ISC license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
94
  */
95
- const Jn = [
95
+ const ea = [
96
96
  ["path", { d: "M16 10h2", key: "8sgtl7" }],
97
97
  ["path", { d: "M16 14h2", key: "epxaof" }],
98
98
  ["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
99
99
  ["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
100
100
  ["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
101
- ], Qn = Ut("id-card", Jn), Zn = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', ea = {
101
+ ], ta = qt("id-card", ea), na = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', aa = {
102
102
  id: "appointment-details-panel",
103
103
  // open and close back open_history and close_history; set_value backs
104
104
  // set_status.
@@ -214,7 +214,7 @@ const Jn = [
214
214
  root: {
215
215
  attr: "data-component",
216
216
  value: "appointment-details-panel",
217
- 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 ${Zn}, and its menu item carries the same data-action.`
217
+ 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 ${na}, and its menu item carries the same data-action.`
218
218
  },
219
219
  instanceId: {
220
220
  attr: "data-component-id",
@@ -223,13 +223,13 @@ const Jn = [
223
223
  }
224
224
  }
225
225
  };
226
- function it(t) {
226
+ function ot(t) {
227
227
  const n = document.activeElement;
228
228
  n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
229
229
  }
230
- function Le(t) {
230
+ function He(t) {
231
231
  const n = document.getElementById(t);
232
- n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), it(n);
232
+ n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), ot(n);
233
233
  }
234
234
  const ce = {
235
235
  advancedSignature: "setup-advanced-signature",
@@ -240,7 +240,7 @@ const ce = {
240
240
  unlockPayments: "unlock-payments",
241
241
  carePlan: "open-care-plan"
242
242
  };
243
- function $e(t) {
243
+ function ze(t) {
244
244
  if (t)
245
245
  try {
246
246
  const { protocol: n } = new URL(t, "https://host.invalid");
@@ -249,7 +249,7 @@ function $e(t) {
249
249
  return;
250
250
  }
251
251
  }
252
- const ta = {
252
+ const ia = {
253
253
  SU: 0,
254
254
  MO: 1,
255
255
  TU: 2,
@@ -257,25 +257,25 @@ const ta = {
257
257
  TH: 4,
258
258
  FR: 5,
259
259
  SA: 6
260
- }, na = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], aa = {
260
+ }, sa = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], oa = {
261
261
  daily: "recurrenceEveryDay",
262
262
  weekly: "recurrenceEveryWeek",
263
263
  monthly: "recurrenceEveryMonth",
264
264
  yearly: "recurrenceEveryYear"
265
- }, ia = {
265
+ }, ra = {
266
266
  1: "recurrenceOrdinal1",
267
267
  2: "recurrenceOrdinal2",
268
268
  3: "recurrenceOrdinal3",
269
269
  4: "recurrenceOrdinal4"
270
- }, sa = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
271
- function Dt(t, n) {
272
- const i = new Date(2026, 0, 4 + ta[t]);
270
+ }, la = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
271
+ function Pt(t, n) {
272
+ const i = new Date(2026, 0, 4 + ia[t]);
273
273
  return new Intl.DateTimeFormat(n, { weekday: "long" }).format(i);
274
274
  }
275
- function oa(t, n, i) {
276
- const d = St(n);
275
+ function da(t, n, i) {
276
+ const d = Nt(n);
277
277
  if (!Number.isFinite(d.getTime())) return;
278
- const c = i ? St(i) : void 0, l = c && c.getFullYear() === d.getFullYear();
278
+ const c = i ? Nt(i) : void 0, l = c && c.getFullYear() === d.getFullYear();
279
279
  try {
280
280
  return new Intl.DateTimeFormat(t, {
281
281
  day: "numeric",
@@ -286,26 +286,26 @@ function oa(t, n, i) {
286
286
  return;
287
287
  }
288
288
  }
289
- function ra(t, n, i, d) {
290
- const c = pn[i.frequency];
289
+ function ca(t, n, i, d) {
290
+ const c = fn[i.frequency];
291
291
  if (!c) return;
292
- const l = (b) => `calendarWorkspace.editor.${b}`, u = (b) => `calendarWorkspace.details.${b}`, p = aa[i.frequency], r = p && (i.interval ?? 1) > 1 ? t(l(p), { count: i.interval }) : t(l(c)), a = (i.byDay ?? []).map((b) => sa.exec(b)).filter((b) => b !== null), o = i.frequency === "weekly" ? na.filter(
293
- (b) => a.some(([, m, N]) => !m && N === b)
292
+ const l = (b) => `calendarWorkspace.editor.${b}`, u = (b) => `calendarWorkspace.details.${b}`, p = oa[i.frequency], r = p && (i.interval ?? 1) > 1 ? t(l(p), { count: i.interval }) : t(l(c)), a = (i.byDay ?? []).map((b) => la.exec(b)).filter((b) => b !== null), o = i.frequency === "weekly" ? sa.filter(
293
+ (b) => a.some(([, m, T]) => !m && T === b)
294
294
  ) : [], f = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, b]) => b) : void 0;
295
295
  let y = r;
296
296
  if (o.length > 0)
297
297
  y = t(u("seriesOnDays"), {
298
298
  every: r,
299
299
  days: new Intl.ListFormat(n, { type: "conjunction" }).format(
300
- o.map((b) => Dt(b, n))
300
+ o.map((b) => Pt(b, n))
301
301
  )
302
302
  });
303
303
  else if (f) {
304
- const [, b, m] = f, N = Dt(m, n);
305
- y = b === "-1" ? t(u("seriesOnLast"), { every: r, weekday: N }) : t(u("seriesOnNth"), {
304
+ const [, b, m] = f, T = Pt(m, n);
305
+ y = b === "-1" ? t(u("seriesOnLast"), { every: r, weekday: T }) : t(u("seriesOnNth"), {
306
306
  every: r,
307
- weekday: N,
308
- ordinal: t(l(ia[b]))
307
+ weekday: T,
308
+ ordinal: t(l(ra[b]))
309
309
  });
310
310
  }
311
311
  if (i.count !== void 0)
@@ -313,18 +313,18 @@ function ra(t, n, i, d) {
313
313
  frequency: y,
314
314
  count: i.count
315
315
  });
316
- const k = i.untilIso ? oa(n, i.untilIso, d) : void 0;
316
+ const k = i.untilIso ? da(n, i.untilIso, d) : void 0;
317
317
  return k ? t(u("seriesUntil"), { rule: y, date: k }) : y;
318
318
  }
319
- function st({
319
+ function rt({
320
320
  eyebrow: t,
321
321
  heading: n,
322
322
  facts: i
323
323
  }) {
324
- return /* @__PURE__ */ v(ae, { children: [
325
- /* @__PURE__ */ e(Se.Eyebrow, { children: t }),
326
- /* @__PURE__ */ e(Se.Heading, { children: n }),
327
- 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((d, c) => /* @__PURE__ */ e(
324
+ return /* @__PURE__ */ v(ie, { children: [
325
+ /* @__PURE__ */ e(Ne.Eyebrow, { children: t }),
326
+ /* @__PURE__ */ e(Ne.Heading, { children: n }),
327
+ i && i.length > 0 ? /* @__PURE__ */ e(Ne.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(
328
328
  "li",
329
329
  {
330
330
  className: d.muted ? "ds:text-[color:var(--muted-foreground)]" : void 0,
@@ -334,31 +334,31 @@ function st({
334
334
  )) }) }) : null
335
335
  ] });
336
336
  }
337
- const la = "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)]";
338
- function Rt({
337
+ const ua = "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)]";
338
+ function Lt({
339
339
  id: t,
340
340
  eyebrow: n,
341
341
  heading: i,
342
342
  facts: d,
343
343
  children: c
344
344
  }) {
345
- return /* @__PURE__ */ v(Se, { children: [
346
- /* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: la, children: c }) }),
347
- /* @__PURE__ */ e(Se.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(st, { eyebrow: n, heading: i, facts: d }) })
345
+ return /* @__PURE__ */ v(Ne, { children: [
346
+ /* @__PURE__ */ e(Ne.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: ua, children: c }) }),
347
+ /* @__PURE__ */ e(Ne.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(rt, { eyebrow: n, heading: i, facts: d }) })
348
348
  ] });
349
349
  }
350
- const s = (t) => `calendarWorkspace.details.${t}`, da = {
350
+ const s = (t) => `calendarWorkspace.details.${t}`, pa = {
351
351
  missing: "consentMissing",
352
352
  requested: "consentRequested",
353
353
  signed: "consentSigned"
354
- }, zt = (t) => /* @__PURE__ */ e("a", { href: `tel:${t.replace(/\s/g, "")}`, dir: "ltr", children: t }), Kt = (t) => /* @__PURE__ */ e("a", { href: `mailto:${t}`, dir: "ltr", children: t }), jt = (t, n, i) => new Intl.NumberFormat(t, { style: "currency", currency: i }).format(n);
355
- function qe({
354
+ }, jt = (t) => /* @__PURE__ */ e("a", { href: `tel:${t.replace(/\s/g, "")}`, dir: "ltr", children: t }), Yt = (t) => /* @__PURE__ */ e("a", { href: `mailto:${t}`, dir: "ltr", children: t }), Vt = (t, n, i) => new Intl.NumberFormat(t, { style: "currency", currency: i }).format(n);
355
+ function Ke({
356
356
  href: t,
357
357
  action: n,
358
358
  icon: i,
359
359
  children: d
360
360
  }) {
361
- const c = $e(t);
361
+ const c = ze(t);
362
362
  return c ? /* @__PURE__ */ e(
363
363
  C,
364
364
  {
@@ -371,22 +371,22 @@ function qe({
371
371
  }
372
372
  ) : null;
373
373
  }
374
- function Pt({ rows: t }) {
374
+ function Ot({ rows: t }) {
375
375
  const n = t.filter((i) => !!i);
376
- return n.length === 0 ? null : /* @__PURE__ */ e(Ue, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */ v(
377
- Ue.Row,
376
+ return n.length === 0 ? null : /* @__PURE__ */ e(qe, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */ v(
377
+ qe.Row,
378
378
  {
379
379
  "data-row": i.id,
380
380
  icon: i.icon,
381
381
  children: [
382
- /* @__PURE__ */ e(Ue.Term, { children: i.label }),
383
- /* @__PURE__ */ e(Ue.Detail, { children: i.value })
382
+ /* @__PURE__ */ e(qe.Term, { children: i.label }),
383
+ /* @__PURE__ */ e(qe.Detail, { children: i.value })
384
384
  ]
385
385
  },
386
386
  i.id
387
387
  )) });
388
388
  }
389
- function ca({
389
+ function ma({
390
390
  details: t,
391
391
  locale: n,
392
392
  currency: i,
@@ -397,66 +397,66 @@ function ca({
397
397
  onSignOnDevice: p,
398
398
  onOpenPatient: r
399
399
  }) {
400
- const { t: a } = X("ui"), { patient: o, signing: f, money: y, booking: k } = t;
400
+ const { t: a } = J("ui"), { patient: o, signing: f, money: y, booking: k } = t;
401
401
  if (!o) return null;
402
- const b = (f == null ? void 0 : f.consents) ?? [], m = f && (f.required > 0 || b.length > 0) ? f : void 0, N = ((m == null ? void 0 : m.toComplete) ?? 0) > 0, L = m ? [
402
+ const b = (f == null ? void 0 : f.consents) ?? [], m = f && (f.required > 0 || b.length > 0) ? f : void 0, T = ((m == null ? void 0 : m.toComplete) ?? 0) > 0, L = m ? [
403
403
  {
404
- text: N ? m.requestedVia === "sms" ? a(s("signingRequestedSms")) : m.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
404
+ text: T ? m.requestedVia === "sms" ? a(s("signingRequestedSms")) : m.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
405
405
  },
406
406
  ...m.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
407
- ] : [], P = ((f == null ? void 0 : f.required) ?? 0) > 0 && N, E = !!(l != null && l.advancedSignatureUrl) && ((f == null ? void 0 : f.required) ?? 0) > 0 && !(f != null && f.aesSetUp), M = !!u && P, T = !!p && P, I = o.highlightedAnamnesisCount ?? 0, F = o.expiredAnamnesisCount ?? 0, z = (o.highlightedAnamnesisAnswers ?? []).map((x) => ({
407
+ ] : [], P = ((f == null ? void 0 : f.required) ?? 0) > 0 && T, x = !!(l != null && l.advancedSignatureUrl) && ((f == null ? void 0 : f.required) ?? 0) > 0 && !(f != null && f.aesSetUp), M = !!u && P, E = !!p && P, I = o.highlightedAnamnesisCount ?? 0, F = o.expiredAnamnesisCount ?? 0, z = (o.highlightedAnamnesisAnswers ?? []).map((N) => ({
408
408
  text: [
409
- x.question,
410
- a(s(x.yes ? "anamnesisYes" : "anamnesisNo")),
411
- x.answer,
412
- nt(n, x.interviewIso)
409
+ N.question,
410
+ a(s(N.yes ? "anamnesisYes" : "anamnesisNo")),
411
+ N.answer,
412
+ it(n, N.interviewIso)
413
413
  ].filter(Boolean).join(" · ")
414
- })), ie = mn(o), se = hn(o) || ie, K = b.map((x) => ({
415
- id: `consent-${x.id}`,
416
- label: x.name,
417
- value: a(s(da[x.state]))
418
- })), B = [
414
+ })), Q = gn(o), se = vn(o) || Q, K = b.map((N) => ({
415
+ id: `consent-${N.id}`,
416
+ label: N.name,
417
+ value: a(s(pa[N.state]))
418
+ })), j = [
419
419
  ...o.dobIso ? [
420
420
  {
421
421
  id: "dob",
422
422
  label: a(s("dob")),
423
- icon: /* @__PURE__ */ e(Xn, {}),
424
- value: `${nt(n, o.dobIso)} ${a(
423
+ icon: /* @__PURE__ */ e(Zn, {}),
424
+ value: `${it(n, o.dobIso)} ${a(
425
425
  s("patientAge"),
426
426
  {
427
- n: fn(o.dobIso, d)
427
+ n: yn(o.dobIso, d)
428
428
  }
429
429
  )}`
430
430
  }
431
431
  ] : [],
432
- ...gn(o).map((x, Z) => {
433
- const ee = x.label === "mobile" || x.label === "home" || x.label === "work";
432
+ ...bn(o).map((N, V) => {
433
+ const te = N.label === "mobile" || N.label === "home" || N.label === "work";
434
434
  return {
435
- id: `phone-${Z}`,
436
- label: a(ee ? `calendarWorkspace.print.phoneLabels.${x.label}` : s("phone")),
437
- icon: x.label === "mobile" ? /* @__PURE__ */ e(Et, {}) : /* @__PURE__ */ e(An, {}),
438
- value: zt(x.number)
435
+ id: `phone-${V}`,
436
+ label: a(te ? `calendarWorkspace.print.phoneLabels.${N.label}` : s("phone")),
437
+ icon: N.label === "mobile" ? /* @__PURE__ */ e(Ct, {}) : /* @__PURE__ */ e(xn, {}),
438
+ value: jt(N.number)
439
439
  };
440
440
  }),
441
441
  ...o.email ? [
442
442
  {
443
443
  id: "email",
444
444
  label: a(s("email")),
445
- icon: /* @__PURE__ */ e(xn, {}),
446
- value: Kt(o.email)
445
+ icon: /* @__PURE__ */ e(En, {}),
446
+ value: Yt(o.email)
447
447
  }
448
448
  ] : [],
449
449
  /* P27: hidden patient details leave the address out, and with it the
450
450
  row: no map link and no empty "address" line. */
451
- ...c && ie ? [
451
+ ...c && Q ? [
452
452
  {
453
453
  id: "address",
454
454
  label: a(s("address")),
455
- icon: /* @__PURE__ */ e(Nn, {}),
455
+ icon: /* @__PURE__ */ e(Cn, {}),
456
456
  value: /* @__PURE__ */ e(
457
457
  "a",
458
458
  {
459
- href: vn(o),
459
+ href: kn(o),
460
460
  target: "_blank",
461
461
  rel: "noopener noreferrer",
462
462
  "aria-label": `${a(s("mapsLink"))}: ${se}`,
@@ -465,33 +465,33 @@ function ca({
465
465
  )
466
466
  }
467
467
  ] : []
468
- ], j = (y == null ? void 0 : y.unpaidAmount) ?? 0, Y = (y == null ? void 0 : y.billableAmount) ?? 0, J = (k == null ? void 0 : k.paidOnlineAmount) ?? 0, Q = (x, Z, ee, Ae, me, te) => /* @__PURE__ */ e(
469
- Rt,
468
+ ], W = (y == null ? void 0 : y.unpaidAmount) ?? 0, Y = (y == null ? void 0 : y.billableAmount) ?? 0, Z = (k == null ? void 0 : k.paidOnlineAmount) ?? 0, ee = (N, V, te, Te, xe, me) => /* @__PURE__ */ e(
469
+ Lt,
470
470
  {
471
- id: ee,
471
+ id: te,
472
472
  eyebrow: a(s("hoverBilling")),
473
- heading: a(s(Ae), {
474
- amount: jt(n, Z, i)
473
+ heading: a(s(Te), {
474
+ amount: Vt(n, V, i)
475
475
  }),
476
- facts: [{ text: a(s(me)) }],
476
+ facts: [{ text: a(s(xe)) }],
477
477
  children: /* @__PURE__ */ e(
478
- Sn,
478
+ Tn,
479
479
  {
480
- "data-chip": ee,
481
- state: x,
482
- amount: Z,
480
+ "data-chip": te,
481
+ state: N,
482
+ amount: V,
483
483
  currency: i,
484
484
  locale: n,
485
485
  size: "md",
486
486
  showLabel: !0,
487
- label: te,
487
+ label: me,
488
488
  showIcon: !1
489
489
  }
490
490
  )
491
491
  }
492
492
  );
493
493
  return /* @__PURE__ */ e(
494
- Ft,
494
+ Bt,
495
495
  {
496
496
  "data-card": "patient",
497
497
  name: o.name,
@@ -506,7 +506,7 @@ function ca({
506
506
  flagHover: {
507
507
  ...m ? {
508
508
  unsignedDocuments: /* @__PURE__ */ e(
509
- st,
509
+ rt,
510
510
  {
511
511
  eyebrow: a(s("sectionSigning")),
512
512
  heading: m.toComplete === 1 ? a(s("signingToSignOne")) : a(s("signingToSignMany"), {
@@ -517,7 +517,7 @@ function ca({
517
517
  )
518
518
  } : {},
519
519
  highlightedAnamnesis: /* @__PURE__ */ e(
520
- st,
520
+ rt,
521
521
  {
522
522
  eyebrow: a(s("anamnesisTitle")),
523
523
  heading: a(s("anamnesisHighlighted"), { n: I }),
@@ -525,25 +525,25 @@ function ca({
525
525
  }
526
526
  )
527
527
  },
528
- extraChips: j > 0 || Y > 0 || J > 0 || F > 0 || E || M || T || r ? /* @__PURE__ */ v(ae, { children: [
528
+ extraChips: W > 0 || Y > 0 || Z > 0 || F > 0 || x || M || E || r ? /* @__PURE__ */ v(ie, { children: [
529
529
  /* @__PURE__ */ v("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
530
- j > 0 ? Q(
530
+ W > 0 ? ee(
531
531
  "debt",
532
- j,
532
+ W,
533
533
  "unpaid",
534
534
  "hoverUnpaidHeading",
535
535
  "hoverUnpaidFact"
536
536
  ) : null,
537
- Y > 0 ? Q(
537
+ Y > 0 ? ee(
538
538
  "to-invoice",
539
539
  Y,
540
540
  "billable",
541
541
  "hoverBillableHeading",
542
542
  "hoverBillableFact"
543
543
  ) : null,
544
- J > 0 ? Q(
544
+ Z > 0 ? ee(
545
545
  "settled",
546
- J,
546
+ Z,
547
547
  "paidOnline",
548
548
  "hoverPaidOnlineHeading",
549
549
  "hoverPaidOnlineFact",
@@ -558,19 +558,19 @@ function ca({
558
558
  size: "sm",
559
559
  intent: "outline",
560
560
  "data-action": ce.requestSignature,
561
- startIcon: /* @__PURE__ */ e(En, { "aria-hidden": "true" }),
561
+ startIcon: /* @__PURE__ */ e(In, { "aria-hidden": "true" }),
562
562
  onClick: () => u(t.eventId),
563
563
  children: a(s("signingRequest"))
564
564
  }
565
565
  ) : null,
566
- T ? /* @__PURE__ */ e(
566
+ E ? /* @__PURE__ */ e(
567
567
  C,
568
568
  {
569
569
  size: "sm",
570
570
  intent: "outline",
571
571
  "data-action": ce.signOnDevice,
572
572
  "aria-label": `${a(s("signingRequest"))}: ${a(s("signingOnDevice"))}`,
573
- startIcon: /* @__PURE__ */ e(Et, { "aria-hidden": "true" }),
573
+ startIcon: /* @__PURE__ */ e(Ct, { "aria-hidden": "true" }),
574
574
  onClick: () => p(t.eventId),
575
575
  children: a(s("signingOnDevice"))
576
576
  }
@@ -581,61 +581,61 @@ function ca({
581
581
  size: "sm",
582
582
  intent: "outline",
583
583
  "data-action": ce.openPatient,
584
- startIcon: /* @__PURE__ */ e(Tn, { "aria-hidden": "true" }),
584
+ startIcon: /* @__PURE__ */ e(Dn, { "aria-hidden": "true" }),
585
585
  onClick: () => r(t.eventId),
586
586
  children: a(s("openPatient"))
587
587
  }
588
588
  ) : null,
589
- E && (l != null && l.advancedSignatureUrl) ? /* @__PURE__ */ e(
590
- qe,
589
+ x && (l != null && l.advancedSignatureUrl) ? /* @__PURE__ */ e(
590
+ Ke,
591
591
  {
592
592
  href: l.advancedSignatureUrl,
593
593
  action: ce.advancedSignature,
594
- icon: /* @__PURE__ */ e(Cn, { "aria-hidden": "true" }),
594
+ icon: /* @__PURE__ */ e(Rn, { "aria-hidden": "true" }),
595
595
  children: a(s("aesSetUp"))
596
596
  }
597
597
  ) : null,
598
- l != null && l.unlockPaymentsUrl && (j > 0 || Y > 0) ? /* @__PURE__ */ e(
599
- qe,
598
+ l != null && l.unlockPaymentsUrl && (W > 0 || Y > 0) ? /* @__PURE__ */ e(
599
+ Ke,
600
600
  {
601
601
  href: l.unlockPaymentsUrl,
602
602
  action: ce.unlockPayments,
603
- icon: /* @__PURE__ */ e(In, { "aria-hidden": "true" }),
603
+ icon: /* @__PURE__ */ e(Pn, { "aria-hidden": "true" }),
604
604
  children: a(s("unlockPayments"))
605
605
  }
606
606
  ) : null,
607
607
  F > 0 ? /* @__PURE__ */ e(
608
- Rt,
608
+ Lt,
609
609
  {
610
610
  id: "anamnesisExpired",
611
611
  eyebrow: a(s("anamnesisTitle")),
612
612
  heading: a(s("anamnesisExpired"), { n: F }),
613
613
  facts: [{ text: a(s("hoverAnamnesisExpiredFact")) }],
614
614
  children: /* @__PURE__ */ e(
615
- Wt,
615
+ $t,
616
616
  {
617
617
  "data-chip": "anamnesisExpired",
618
618
  variant: "warning",
619
619
  size: "md",
620
- leading: /* @__PURE__ */ e(Dn, {}),
620
+ leading: /* @__PURE__ */ e(Ln, {}),
621
621
  children: a(s("anamnesisExpired"), { n: F })
622
622
  }
623
623
  )
624
624
  }
625
625
  ) : null,
626
626
  F > 0 && (l != null && l.renewAnamnesisUrl) ? /* @__PURE__ */ e(
627
- qe,
627
+ Ke,
628
628
  {
629
629
  href: l.renewAnamnesisUrl,
630
630
  action: ce.renewAnamnesis,
631
- icon: /* @__PURE__ */ e(Rn, { "aria-hidden": "true" }),
631
+ icon: /* @__PURE__ */ e(On, { "aria-hidden": "true" }),
632
632
  children: a(s("anamnesisRenew"))
633
633
  }
634
634
  ) : null
635
635
  ] }) : void 0,
636
- visibleFieldOrder: [...B, ...K].map((x) => x.id),
637
- sections: B.length > 0 || K.length > 0 ? [
638
- ...B.length > 0 ? [{ id: "contact", heading: a(s("sectionPatient")), fields: B }] : [],
636
+ visibleFieldOrder: [...j, ...K].map((N) => N.id),
637
+ sections: j.length > 0 || K.length > 0 ? [
638
+ ...j.length > 0 ? [{ id: "contact", heading: a(s("sectionPatient")), fields: j }] : [],
639
639
  ...K.length > 0 ? [
640
640
  {
641
641
  id: "consents",
@@ -647,7 +647,7 @@ function ca({
647
647
  }
648
648
  );
649
649
  }
650
- function ua({
650
+ function ha({
651
651
  details: t,
652
652
  locale: n,
653
653
  currency: i,
@@ -657,18 +657,18 @@ function ua({
657
657
  privacy: u = !1,
658
658
  history: p
659
659
  }) {
660
- const { t: r } = X("ui"), { appointment: a, booking: o, patient: f } = t, y = (I) => r(`calendarWorkspace.editor.${I}`), k = new Date(a.startIso), b = new Date(k.getTime() + a.durationMin * 6e4), m = Number.isFinite(k.getTime()), { recurrence: N } = a, L = N && ra(r, n, N, a.startIso), P = o ? [
660
+ const { t: r } = J("ui"), { appointment: a, booking: o, patient: f } = t, y = (I) => r(`calendarWorkspace.editor.${I}`), k = new Date(a.startIso), b = new Date(k.getTime() + a.durationMin * 6e4), m = Number.isFinite(k.getTime()), { recurrence: T } = a, L = T && ca(r, n, T, a.startIso), P = o ? [
661
661
  o.bookedAtIso && {
662
662
  id: "bookedAt",
663
663
  label: r(s("bookedAt")),
664
664
  value: /* @__PURE__ */ e(
665
- Nt,
665
+ Et,
666
666
  {
667
667
  value: o.bookedAtIso,
668
668
  format: "absolute",
669
669
  shape: "bare",
670
670
  locale: n,
671
- absoluteFormat: At
671
+ absoluteFormat: Tt
672
672
  }
673
673
  )
674
674
  },
@@ -680,12 +680,12 @@ function ua({
680
680
  o.phone && {
681
681
  id: "bookingPhone",
682
682
  label: r(s("bookingPhone")),
683
- value: zt(o.phone)
683
+ value: jt(o.phone)
684
684
  },
685
685
  o.email && {
686
686
  id: "bookingEmail",
687
687
  label: r(s("bookingEmail")),
688
- value: Kt(o.email)
688
+ value: Yt(o.email)
689
689
  },
690
690
  o.note && {
691
691
  id: "bookingNote",
@@ -696,10 +696,10 @@ function ua({
696
696
  !f && o.paidOnlineAmount !== void 0 && {
697
697
  id: "paidOnline",
698
698
  label: r(s("paidOnline")),
699
- value: jt(n, o.paidOnlineAmount, i)
699
+ value: Vt(n, o.paidOnlineAmount, i)
700
700
  }
701
- ] : [], E = u ? P.filter((I) => I && I.id === "bookedAt") : P, M = E.some(Boolean), T = o || a.bookedOnline || p == null ? void 0 : p.filter(
702
- (I) => I.kind === "created" && I.actor.trim() !== ""
701
+ ] : [], x = u ? P.filter((I) => I && I.id === "bookedAt") : P, M = x.some(Boolean), E = o || a.bookedOnline || p == null ? void 0 : p.filter(
702
+ (I) => (I.kind === "created" || I.kind === "copied") && I.actor.trim() !== ""
703
703
  ).sort((I, F) => Date.parse(I.atIso) - Date.parse(F.atIso))[0];
704
704
  return /* @__PURE__ */ v(
705
705
  pe,
@@ -710,31 +710,31 @@ function ua({
710
710
  children: [
711
711
  l,
712
712
  /* @__PURE__ */ e(
713
- Pt,
713
+ Ot,
714
714
  {
715
715
  rows: [
716
716
  m && {
717
717
  id: "date",
718
718
  label: y("date"),
719
- icon: /* @__PURE__ */ e(Pn, {}),
720
- value: nt(n, k)
719
+ icon: /* @__PURE__ */ e(_n, {}),
720
+ value: it(n, k)
721
721
  },
722
722
  m && {
723
723
  id: "time",
724
724
  label: r(s("time")),
725
- icon: /* @__PURE__ */ e(Ln, {}),
726
- value: a.allDay ? y("allDay") : yn(n, k, b)
725
+ icon: /* @__PURE__ */ e(Hn, {}),
726
+ value: a.allDay ? y("allDay") : wn(n, k, b)
727
727
  },
728
728
  !a.allDay && {
729
729
  id: "duration",
730
730
  label: y("duration"),
731
- icon: /* @__PURE__ */ e(On, {}),
731
+ icon: /* @__PURE__ */ e(Mn, {}),
732
732
  value: `${a.durationMin} ${y("durationUnit")}`
733
733
  },
734
734
  a.isTelehealth && {
735
735
  id: "type",
736
736
  label: y("type"),
737
- icon: /* @__PURE__ */ e($t, {}),
737
+ icon: /* @__PURE__ */ e(zt, {}),
738
738
  value: y("typeTelehealth")
739
739
  },
740
740
  d && {
@@ -747,30 +747,30 @@ function ua({
747
747
  c && {
748
748
  id: "chair",
749
749
  label: r(s("chair")),
750
- icon: /* @__PURE__ */ e(Tt, {}),
751
- value: /* @__PURE__ */ e(Wt, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Tt, {}), children: c.name })
750
+ icon: /* @__PURE__ */ e(It, {}),
751
+ value: /* @__PURE__ */ e($t, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(It, {}), children: c.name })
752
752
  },
753
753
  a.branchLabel && {
754
754
  id: "branch",
755
755
  label: y("branch"),
756
- icon: /* @__PURE__ */ e(_n, {}),
756
+ icon: /* @__PURE__ */ e(Fn, {}),
757
757
  value: a.branchLabel
758
758
  },
759
- T && {
759
+ E && {
760
760
  id: "createdBy",
761
761
  label: r(s("createdBy")),
762
- icon: /* @__PURE__ */ e(xt, { name: T.actor, size: "xs" }),
762
+ icon: /* @__PURE__ */ e(xt, { name: E.actor, size: "xs" }),
763
763
  value: /* @__PURE__ */ v("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
764
- /* @__PURE__ */ e("span", { children: T.actor }),
764
+ /* @__PURE__ */ e("span", { children: E.actor }),
765
765
  " ",
766
766
  /* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
767
- Nt,
767
+ Et,
768
768
  {
769
- value: T.atIso,
769
+ value: E.atIso,
770
770
  format: "absolute",
771
771
  shape: "bare",
772
772
  locale: n,
773
- absoluteFormat: At
773
+ absoluteFormat: Tt
774
774
  }
775
775
  ) })
776
776
  ] })
@@ -778,7 +778,7 @@ function ua({
778
778
  L && {
779
779
  id: "series",
780
780
  label: r(s("seriesLabel")),
781
- icon: /* @__PURE__ */ e(Hn, {}),
781
+ icon: /* @__PURE__ */ e(Wn, {}),
782
782
  value: L
783
783
  }
784
784
  ]
@@ -791,7 +791,7 @@ function ua({
791
791
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
792
792
  children: [
793
793
  /* @__PURE__ */ e("h4", { className: "ds:m-0 type-label ds:text-[color:var(--muted-foreground)]", children: r(s("sectionBooking")) }),
794
- /* @__PURE__ */ e(Pt, { rows: E })
794
+ /* @__PURE__ */ e(Ot, { rows: x })
795
795
  ]
796
796
  }
797
797
  ) : null
@@ -799,14 +799,14 @@ function ua({
799
799
  }
800
800
  );
801
801
  }
802
- function pa({
802
+ function fa({
803
803
  details: t,
804
804
  locale: n,
805
805
  currency: i,
806
806
  privacy: d = !1,
807
807
  carePlanUrl: c
808
808
  }) {
809
- const { t: l } = X("ui"), { care: u } = t, p = d || u == null ? void 0 : u.plan;
809
+ const { t: l } = J("ui"), { care: u } = t, p = d || u == null ? void 0 : u.plan;
810
810
  return !u || !p && u.lines.length === 0 ? null : /* @__PURE__ */ v(
811
811
  pe,
812
812
  {
@@ -817,7 +817,7 @@ function pa({
817
817
  p ? /* @__PURE__ */ v("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: [
818
818
  /* @__PURE__ */ v("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
819
819
  /* @__PURE__ */ e(
820
- at,
820
+ st,
821
821
  {
822
822
  "aria-hidden": "true",
823
823
  className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
@@ -826,17 +826,17 @@ function pa({
826
826
  p.number ? l(s("planLine"), { number: p.number, name: p.name }) : p.name
827
827
  ] }),
828
828
  c ? /* @__PURE__ */ e(
829
- qe,
829
+ Ke,
830
830
  {
831
831
  href: c,
832
832
  action: ce.carePlan,
833
- icon: /* @__PURE__ */ e(at, { "aria-hidden": "true" }),
833
+ icon: /* @__PURE__ */ e(st, { "aria-hidden": "true" }),
834
834
  children: l(s("openCarePlan"))
835
835
  }
836
836
  ) : null
837
837
  ] }) : null,
838
838
  u.lines.length > 0 ? /* @__PURE__ */ e(
839
- Bt,
839
+ Ut,
840
840
  {
841
841
  lines: u.lines.map(({ entryId: r, careId: a, ...o }) => ({
842
842
  id: r,
@@ -850,17 +850,17 @@ function pa({
850
850
  }
851
851
  );
852
852
  }
853
- const Lt = 3;
854
- function ma({
853
+ const _t = 3;
854
+ function ga({
855
855
  preview: t,
856
856
  onOpenNotes: n,
857
857
  locale: i
858
858
  }) {
859
- const { t: d } = X("ui"), c = Ze(), l = t.status ?? "ready", u = R(!1);
859
+ const { t: d } = J("ui"), c = je(), l = t.status ?? "ready", u = R(!1);
860
860
  ue(() => {
861
- u.current && (l !== "loading" && (u.current = !1), Le(c));
861
+ u.current && (l !== "loading" && (u.current = !1), He(c));
862
862
  }, [l, c]);
863
- const p = t.total ?? (l === "ready" ? t.notes.length : null), r = Math.max(0, (p ?? 0) - Lt), a = r > 0 ? d(s("notesMore"), { n: r }) : d(s("notesPreviewOpen"));
863
+ const p = t.total ?? (l === "ready" ? t.notes.length : null), r = Math.max(0, (p ?? 0) - _t), a = r > 0 ? d(s("notesMore"), { n: r }) : d(s("notesPreviewOpen"));
864
864
  return /* @__PURE__ */ v(
865
865
  pe,
866
866
  {
@@ -870,9 +870,9 @@ function ma({
870
870
  title: p === null ? d("notesPanel.title") : d(s("notesPreviewTitle"), { count: p }),
871
871
  headerAction: n && (p ?? 0) > 0 ? /* @__PURE__ */ v("span", { className: "ds:relative ds:inline-flex", children: [
872
872
  /* @__PURE__ */ e(
873
- _t,
873
+ Mt,
874
874
  {
875
- icon: /* @__PURE__ */ e(Mn, { "aria-hidden": "true" }),
875
+ icon: /* @__PURE__ */ e(Bn, { "aria-hidden": "true" }),
876
876
  intent: "outline",
877
877
  size: "sm",
878
878
  "data-action": "open-patient-notes",
@@ -884,7 +884,7 @@ function ma({
884
884
  r > 0 ? (
885
885
  /* Decorative: the button's name already says the count. */
886
886
  /* @__PURE__ */ e(
887
- wn,
887
+ Nn,
888
888
  {
889
889
  variant: "outline",
890
890
  size: "sm",
@@ -897,9 +897,9 @@ function ma({
897
897
  ) : null
898
898
  ] }) : void 0,
899
899
  children: [
900
- l === "error" ? /* @__PURE__ */ v(G, { variant: "error", children: [
901
- /* @__PURE__ */ e(G.Description, { children: d("notesPanel.loadError") }),
902
- t.onRetry ? /* @__PURE__ */ e(G.Action, { children: /* @__PURE__ */ e(
900
+ l === "error" ? /* @__PURE__ */ v(X, { variant: "error", children: [
901
+ /* @__PURE__ */ e(X.Description, { children: d("notesPanel.loadError") }),
902
+ t.onRetry ? /* @__PURE__ */ e(X.Action, { children: /* @__PURE__ */ e(
903
903
  C,
904
904
  {
905
905
  intent: "secondary",
@@ -912,17 +912,17 @@ function ma({
912
912
  }
913
913
  ) }) : null
914
914
  ] }) : null,
915
- t.notes.length === 0 && l === "loading" ? /* @__PURE__ */ v(ae, { children: [
915
+ t.notes.length === 0 && l === "loading" ? /* @__PURE__ */ v(ie, { children: [
916
916
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: d("notesPanel.loading") }),
917
- /* @__PURE__ */ e(tt, { notes: [], loading: !0, loadingRows: 2 })
917
+ /* @__PURE__ */ e(at, { notes: [], loading: !0, loadingRows: 2 })
918
918
  ] }) : l !== "error" || t.notes.length > 0 ? (
919
919
  /* A note click, or Enter or Space on it, goes straight to that note
920
920
  in the Notes tool; the header button opens the tool at the top. */
921
921
  /* @__PURE__ */ e(
922
- tt,
922
+ at,
923
923
  {
924
924
  notes: t.notes,
925
- maxItems: Lt,
925
+ maxItems: _t,
926
926
  locale: i,
927
927
  "aria-labelledby": c,
928
928
  onNoteActivate: n,
@@ -934,29 +934,29 @@ function ma({
934
934
  }
935
935
  );
936
936
  }
937
- const ha = ot("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), fa = ot(
937
+ const va = lt("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), ya = lt(
938
938
  "ds:flex ds:shrink-0 ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:p-[var(--spacing-sm)]"
939
- ), ga = ot(
939
+ ), ba = lt(
940
940
  "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)]"
941
- ), $ = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", va = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", ya = [
941
+ ), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", ka = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", wa = [
942
942
  "ds:sm:[&_button:has(svg.lucide-ellipsis)]:[min-block-size:var(--accessible-target-floor,0px)]",
943
943
  "ds:[&_button:has(svg.lucide-ellipsis)]:[min-inline-size:var(--accessible-target-floor,auto)]"
944
- ].join(" "), Yt = ["40%", "33%", "50%", "25%"], ba = [
944
+ ].join(" "), Gt = ["40%", "33%", "50%", "25%"], Sa = [
945
945
  "bill",
946
946
  "folder",
947
947
  "template",
948
948
  "empty",
949
949
  "identification",
950
950
  "webcam"
951
- ], ka = {
952
- bill: /* @__PURE__ */ e(Vn, { "aria-hidden": "true" }),
953
- folder: /* @__PURE__ */ e(Yn, { "aria-hidden": "true" }),
954
- template: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
955
- empty: /* @__PURE__ */ e(Kn, { "aria-hidden": "true" }),
956
- identification: /* @__PURE__ */ e(Qn, { "aria-hidden": "true" }),
957
- webcam: /* @__PURE__ */ e(zn, { "aria-hidden": "true" })
951
+ ], Aa = {
952
+ bill: /* @__PURE__ */ e(Jn, { "aria-hidden": "true" }),
953
+ folder: /* @__PURE__ */ e(Xn, { "aria-hidden": "true" }),
954
+ template: /* @__PURE__ */ e(Gn, { "aria-hidden": "true" }),
955
+ empty: /* @__PURE__ */ e(Vn, { "aria-hidden": "true" }),
956
+ identification: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
957
+ webcam: /* @__PURE__ */ e(Yn, { "aria-hidden": "true" })
958
958
  }, S = (t) => `calendarWorkspace.details.${t}`;
959
- function Ot({
959
+ function Ht({
960
960
  children: t,
961
961
  startIcon: n,
962
962
  overflowItems: i,
@@ -966,23 +966,23 @@ function Ot({
966
966
  size: u,
967
967
  hideLabel: p
968
968
  }) {
969
- return /* @__PURE__ */ v(We.Root, { children: [
970
- /* @__PURE__ */ e(sn, { label: t, side: "top", children: /* @__PURE__ */ e(We.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
969
+ return /* @__PURE__ */ v($e.Root, { children: [
970
+ /* @__PURE__ */ e(ln, { label: t, side: "top", children: /* @__PURE__ */ e($e.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
971
971
  C,
972
972
  {
973
973
  intent: c,
974
974
  background: l,
975
975
  size: u,
976
976
  "data-action": d,
977
- className: $,
977
+ className: U,
978
978
  startIcon: n,
979
979
  "aria-haspopup": "menu",
980
- endIcon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
980
+ endIcon: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
981
981
  children: p ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
982
982
  }
983
983
  ) }) }),
984
- /* @__PURE__ */ e(We.Content, { align: "end", children: i.map((r) => /* @__PURE__ */ e(
985
- We.Item,
984
+ /* @__PURE__ */ e($e.Content, { align: "end", children: i.map((r) => /* @__PURE__ */ e(
985
+ $e.Item,
986
986
  {
987
987
  "data-action": r.action,
988
988
  startIcon: r.icon,
@@ -993,9 +993,9 @@ function Ot({
993
993
  )) })
994
994
  ] });
995
995
  }
996
- function wa() {
997
- const { t } = X("ui");
998
- return /* @__PURE__ */ v(ae, { children: [
996
+ function Na() {
997
+ const { t } = J("ui");
998
+ return /* @__PURE__ */ v(ie, { children: [
999
999
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
1000
1000
  /* @__PURE__ */ v(
1001
1001
  "div",
@@ -1004,7 +1004,7 @@ function wa() {
1004
1004
  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",
1005
1005
  children: [
1006
1006
  /* @__PURE__ */ e(
1007
- Ft,
1007
+ Bt,
1008
1008
  {
1009
1009
  name: "",
1010
1010
  loading: !0,
@@ -1013,14 +1013,14 @@ function wa() {
1013
1013
  }
1014
1014
  ),
1015
1015
  /* @__PURE__ */ v(pe, { title: t(S("sectionAppointment")), headingLevel: 3, children: [
1016
- /* @__PURE__ */ e(Ht, { loading: !0, maxLines: 2 }),
1017
- /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: Yt.map((n, i) => /* @__PURE__ */ v(
1016
+ /* @__PURE__ */ e(Ft, { loading: !0, maxLines: 2 }),
1017
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: Gt.map((n, i) => /* @__PURE__ */ v(
1018
1018
  "div",
1019
1019
  {
1020
1020
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1021
1021
  children: [
1022
1022
  /* @__PURE__ */ e(
1023
- ke,
1023
+ Se,
1024
1024
  {
1025
1025
  variant: "rounded",
1026
1026
  stagger: i + 2,
@@ -1030,7 +1030,7 @@ function wa() {
1030
1030
  }
1031
1031
  ),
1032
1032
  /* @__PURE__ */ e(
1033
- ke,
1033
+ Se,
1034
1034
  {
1035
1035
  variant: "text",
1036
1036
  size: "sm",
@@ -1043,8 +1043,8 @@ function wa() {
1043
1043
  n
1044
1044
  )) })
1045
1045
  ] }),
1046
- /* @__PURE__ */ e(pe, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(tt, { notes: [], loading: !0, loadingRows: 2 }) }),
1047
- /* @__PURE__ */ e(pe, { title: t(S("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(Bt, { lines: [], loading: !0 }) })
1046
+ /* @__PURE__ */ e(pe, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(at, { notes: [], loading: !0, loadingRows: 2 }) }),
1047
+ /* @__PURE__ */ e(pe, { title: t(S("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(Ut, { lines: [], loading: !0 }) })
1048
1048
  ]
1049
1049
  }
1050
1050
  ),
@@ -1054,9 +1054,9 @@ function wa() {
1054
1054
  "aria-hidden": "true",
1055
1055
  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)]",
1056
1056
  children: [
1057
- /* @__PURE__ */ e(ke, { variant: "rounded", width: "33%", height: "var(--spacing-xl)" }),
1057
+ /* @__PURE__ */ e(Se, { variant: "rounded", width: "33%", height: "var(--spacing-xl)" }),
1058
1058
  /* @__PURE__ */ e(
1059
- ke,
1059
+ Se,
1060
1060
  {
1061
1061
  variant: "rounded",
1062
1062
  stagger: 1,
@@ -1069,7 +1069,7 @@ function wa() {
1069
1069
  )
1070
1070
  ] });
1071
1071
  }
1072
- function Sa({
1072
+ function Ta({
1073
1073
  history: t,
1074
1074
  locale: n,
1075
1075
  onRetry: i,
@@ -1077,13 +1077,13 @@ function Sa({
1077
1077
  privacy: c
1078
1078
  }) {
1079
1079
  var k;
1080
- const { t: l } = X("ui"), u = t.status ?? (t.entries ? "ready" : "loading"), p = u === "error" ? void 0 : t.entries, r = u === "loading" || u !== "error" && !p, [a, o] = H(!1);
1081
- we(() => o(!0), []);
1080
+ const { t: l } = J("ui"), u = t.status ?? (t.entries ? "ready" : "loading"), p = u === "error" ? void 0 : t.entries, r = u === "loading" || u !== "error" && !p, [a, o] = H(!1);
1081
+ Ae(() => o(!0), []);
1082
1082
  let f = "";
1083
1083
  r ? f = l("common.loading") : p && (f = p.length === 0 ? l(S("historyEmpty")) : l(S("historyLoaded"), { n: p.length }));
1084
1084
  let y;
1085
1085
  return u === "error" ? y = /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1086
- /* @__PURE__ */ e(G, { variant: "error", children: /* @__PURE__ */ e(G.Description, { children: ((k = t.message) == null ? void 0 : k.trim()) || l("emptyState.error.description") }) }),
1086
+ /* @__PURE__ */ e(X, { variant: "error", children: /* @__PURE__ */ e(X.Description, { children: ((k = t.message) == null ? void 0 : k.trim()) || l("emptyState.error.description") }) }),
1087
1087
  i ? /* @__PURE__ */ e(
1088
1088
  C,
1089
1089
  {
@@ -1098,13 +1098,13 @@ function Sa({
1098
1098
  {
1099
1099
  "aria-hidden": "true",
1100
1100
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1101
- children: Yt.slice(0, 3).map((b, m) => /* @__PURE__ */ v(
1101
+ children: Gt.slice(0, 3).map((b, m) => /* @__PURE__ */ v(
1102
1102
  "div",
1103
1103
  {
1104
1104
  className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
1105
1105
  children: [
1106
1106
  /* @__PURE__ */ e(
1107
- ke,
1107
+ Se,
1108
1108
  {
1109
1109
  variant: "circular",
1110
1110
  stagger: m,
@@ -1114,7 +1114,7 @@ function Sa({
1114
1114
  }
1115
1115
  ),
1116
1116
  /* @__PURE__ */ e(
1117
- ke,
1117
+ Se,
1118
1118
  {
1119
1119
  variant: "rounded",
1120
1120
  stagger: m,
@@ -1128,19 +1128,19 @@ function Sa({
1128
1128
  ))
1129
1129
  }
1130
1130
  ) : y = /* @__PURE__ */ e(
1131
- un,
1131
+ hn,
1132
1132
  {
1133
1133
  history: p,
1134
1134
  locale: n,
1135
1135
  noteUnrecordedEdits: d,
1136
1136
  privacy: c
1137
1137
  }
1138
- ), /* @__PURE__ */ v(ae, { children: [
1138
+ ), /* @__PURE__ */ v(ie, { children: [
1139
1139
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: a ? f : "" }),
1140
1140
  y
1141
1141
  ] });
1142
1142
  }
1143
- function Aa({
1143
+ function xa({
1144
1144
  read: t,
1145
1145
  refreshing: n,
1146
1146
  currency: i,
@@ -1151,213 +1151,214 @@ function Aa({
1151
1151
  enter: p,
1152
1152
  live: r,
1153
1153
  statusControl: a,
1154
- patientId: o = ((Oe) => (Oe = t.patient) == null ? void 0 : Oe.id)(),
1154
+ patientId: o = ((Me) => (Me = t.patient) == null ? void 0 : Me.id)(),
1155
1155
  operator: f,
1156
1156
  chair: y,
1157
1157
  privacy: k = !1,
1158
1158
  privacyTitle: b,
1159
1159
  mapsLink: m,
1160
- notesPreview: N,
1160
+ notesPreview: T,
1161
1161
  onOpenNotes: L,
1162
1162
  history: P,
1163
- onOpenHistory: E,
1163
+ onOpenHistory: x,
1164
1164
  noteUnrecordedEdits: M = !1,
1165
- readOnly: T = !1,
1165
+ readOnly: E = !1,
1166
1166
  onStatusChange: I,
1167
- allowedStatuses: F = kt,
1167
+ allowedStatuses: F = St,
1168
1168
  onDescriptionChange: z,
1169
- onAssignPatient: ie,
1170
- onEdit: se,
1171
- onMove: K,
1172
- onCopy: B,
1173
- onDelete: j,
1174
- onJoinTelehealth: Y,
1175
- onWhatsApp: J,
1176
- whatsappUrl: Q,
1177
- onBuyWhatsApp: x,
1178
- createTaskUrl: Z,
1179
- onRequestSignature: ee,
1180
- onSignOnDevice: Ae,
1169
+ descriptionMaxLength: Q,
1170
+ onAssignPatient: se,
1171
+ onEdit: K,
1172
+ onMove: j,
1173
+ onCopy: W,
1174
+ onDelete: Y,
1175
+ onJoinTelehealth: Z,
1176
+ onWhatsApp: ee,
1177
+ whatsappUrl: N,
1178
+ onBuyWhatsApp: V,
1179
+ createTaskUrl: te,
1180
+ onRequestSignature: Te,
1181
+ onSignOnDevice: xe,
1181
1182
  onOpenPatient: me,
1182
- shortcuts: te,
1183
+ shortcuts: he,
1183
1184
  documents: oe
1184
1185
  }) {
1185
- var ft, gt;
1186
- const { t: h } = X("ui"), { eventId: D } = t, [ze] = H(p), he = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== D ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, _e = (N == null ? void 0 : N.patientId) === void 0 || N.patientId === o, fe = N ? _e ? N : o ? { notes: [], status: "loading", total: null } : void 0 : void 0, re = !!z && !T && !k, [xe, ne] = H(!1), [Ne, V] = H(!1), le = xe && w !== void 0, He = Ne && re, Ee = () => {
1187
- le || !w || (ne(!0), E == null || E(D));
1188
- }, Me = R({ history: !1, editor: !1 });
1186
+ var vt, yt;
1187
+ const { t: h } = J("ui"), { eventId: D } = t, [Ye] = H(p), fe = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== D ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Fe = (T == null ? void 0 : T.patientId) === void 0 || T.patientId === o, ge = T ? Fe ? T : o ? { notes: [], status: "loading", total: null } : void 0 : void 0, re = !!z && !E && !k, [Ee, ne] = H(!1), [Ce, G] = H(!1), le = Ee && w !== void 0, We = Ce && re, Ie = () => {
1188
+ le || !w || (ne(!0), x == null || x(D));
1189
+ }, Be = R({ history: !1, editor: !1 });
1189
1190
  ue(() => {
1190
- const g = Me.current;
1191
- Me.current = { history: le, editor: He };
1192
- const be = g.history && w === void 0, vt = g.editor && !re;
1193
- be && ne(!1), vt && V(!1), (be || vt) && Le(u);
1191
+ const g = Be.current;
1192
+ Be.current = { history: le, editor: We };
1193
+ const we = g.history && w === void 0, bt = g.editor && !re;
1194
+ we && ne(!1), bt && G(!1), (we || bt) && He(u);
1194
1195
  });
1195
- const ge = R(null), O = R(!1), Te = (w == null ? void 0 : w.status) ?? (w != null && w.entries ? "ready" : "loading");
1196
+ const ve = R(null), O = R(!1), De = (w == null ? void 0 : w.status) ?? (w != null && w.entries ? "ready" : "loading");
1196
1197
  ue(() => {
1197
- O.current && (Te !== "loading" && (O.current = !1), it(ge.current));
1198
- }, [Te]);
1199
- const [q, Ce] = H(t.appointment.name ?? "");
1200
- we(() => {
1201
- Ce(t.appointment.name ?? "");
1198
+ O.current && (De !== "loading" && (O.current = !1), ot(ve.current));
1199
+ }, [De]);
1200
+ const [$, Re] = H(t.appointment.name ?? "");
1201
+ Ae(() => {
1202
+ Re(t.appointment.name ?? "");
1202
1203
  }, [t.appointment.name]);
1203
- const [Ie, de] = H(""), [ve, De] = H(!1), [A, W] = H(), ye = R(null);
1204
- we(() => {
1205
- Ne && (de(q), W(void 0));
1206
- }, [Ne]);
1207
- const Fe = async () => {
1204
+ const [ye, de] = H(""), [be, Pe] = H(!1), [A, B] = H(), ke = R(null), Le = je(), q = Q !== void 0 && ye.trim().length > Q;
1205
+ Ae(() => {
1206
+ Ce && (de($), B(void 0));
1207
+ }, [Ce]);
1208
+ const Xt = async () => {
1208
1209
  if (!z) return;
1209
- const g = Ie.trim();
1210
- De(!0), W(void 0);
1210
+ const g = ye.trim();
1211
+ Pe(!0), B(void 0);
1211
1212
  try {
1212
- await z(g, D), Ce(g), V(!1);
1213
- } catch (be) {
1214
- W(
1215
- et(be, h(S("descriptionSaveFailed")))
1213
+ await z(g, D), Re(g), G(!1);
1214
+ } catch (we) {
1215
+ B(
1216
+ nt(we, h(S("descriptionSaveFailed")))
1216
1217
  );
1217
1218
  } finally {
1218
- De(!1);
1219
+ Pe(!1);
1219
1220
  }
1220
- }, [U, Ke] = H(t.appointment.status);
1221
- we(() => {
1222
- Ke(t.appointment.status);
1221
+ }, [ae, Ve] = H(t.appointment.status);
1222
+ Ae(() => {
1223
+ Ve(t.appointment.status);
1223
1224
  }, [t.appointment.status]);
1224
- const rt = R(n);
1225
+ const dt = R(n);
1225
1226
  ue(() => {
1226
- const g = rt.current && !n;
1227
- rt.current = n, g && (Ke(t.appointment.status), Ce(t.appointment.name ?? ""));
1227
+ const g = dt.current && !n;
1228
+ dt.current = n, g && (Ve(t.appointment.status), Re(t.appointment.name ?? ""));
1228
1229
  }, [n]);
1229
- const Be = kt.filter(
1230
+ const Ue = St.filter(
1230
1231
  (g) => F.includes(g)
1231
- ), Re = ln(U, {
1232
- statuses: Be,
1232
+ ), Oe = un(ae, {
1233
+ statuses: Ue,
1233
1234
  /* Shown so the control can say it, but not a choice. */
1234
- disabledStatuses: U && !Be.includes(U) ? [U] : []
1235
- }), Pe = !!I && !T && Be.some((g) => g !== U), Vt = async (g) => {
1236
- if (!(!I || !dn(g))) {
1235
+ disabledStatuses: ae && !Ue.includes(ae) ? [ae] : []
1236
+ }), _e = !!I && !E && Ue.some((g) => g !== ae), Jt = async (g) => {
1237
+ if (!(!I || !pn(g))) {
1237
1238
  try {
1238
1239
  await I(g, D);
1239
- } catch (be) {
1240
- throw new Error(et(be, h(S("statusSaveFailed"))));
1240
+ } catch (we) {
1241
+ throw new Error(nt(we, h(S("statusSaveFailed"))));
1241
1242
  }
1242
- Ke(g);
1243
+ Ve(g);
1243
1244
  }
1244
- }, lt = k ? void 0 : Q, dt = ba.filter(
1245
+ }, ct = k ? void 0 : N, ut = Sa.filter(
1245
1246
  (g) => oe == null ? void 0 : oe.kinds.includes(g)
1246
- ), Gt = (((ft = t.care) == null ? void 0 : ft.lines.length) ?? 0) > 0, je = o !== void 0 && o !== "", Ye = h(S("status")), ct = `${Ye}: ${Re.option.label}`, Ve = R(null), ut = R(Pe);
1247
+ ), Qt = (((vt = t.care) == null ? void 0 : vt.lines.length) ?? 0) > 0, Ge = o !== void 0 && o !== "", Xe = h(S("status")), pt = `${Xe}: ${Oe.option.label}`, Je = R(null), mt = R(_e);
1247
1248
  ue(() => {
1248
- const g = ut.current && !Pe;
1249
- ut.current = Pe, g && (Ve.current ? it(Ve.current) : Le(u));
1249
+ const g = mt.current && !_e;
1250
+ mt.current = _e, g && (Je.current ? ot(Je.current) : He(u));
1250
1251
  });
1251
- const pt = Pe ? /* @__PURE__ */ e(
1252
- on,
1252
+ const ht = _e ? /* @__PURE__ */ e(
1253
+ dn,
1253
1254
  {
1254
1255
  ref: a,
1255
- value: Re.value,
1256
- options: Re.options,
1256
+ value: Oe.value,
1257
+ options: Oe.options,
1257
1258
  size: "sm",
1258
- workflowLabel: Ye,
1259
- className: `ds:[&>button]:bg-[color:var(--background)] ${va}`,
1260
- "aria-label": ct,
1261
- onValueChange: Vt
1259
+ workflowLabel: Xe,
1260
+ className: `ds:[&>button]:bg-[color:var(--background)] ${ka}`,
1261
+ "aria-label": pt,
1262
+ onValueChange: Jt
1262
1263
  }
1263
- ) : U ? (
1264
+ ) : ae ? (
1264
1265
  /* Named as the control is, "Status: Confirmed": the small display
1265
1266
  prints the value alone. */
1266
1267
  /* @__PURE__ */ e(
1267
1268
  "div",
1268
1269
  {
1269
- ref: Ve,
1270
+ ref: Je,
1270
1271
  role: "group",
1271
- "aria-label": ct,
1272
+ "aria-label": pt,
1272
1273
  tabIndex: -1,
1273
1274
  "data-status-display": "",
1274
- className: ga(),
1275
+ className: ba(),
1275
1276
  children: /* @__PURE__ */ e(
1276
- rn,
1277
+ cn,
1277
1278
  {
1278
- value: Re.value,
1279
+ value: Oe.value,
1279
1280
  size: "sm",
1280
- workflowLabel: Ye,
1281
- option: Re.option
1281
+ workflowLabel: Xe,
1282
+ option: Oe.option
1282
1283
  }
1283
1284
  )
1284
1285
  }
1285
1286
  )
1286
1287
  ) : null, _ = [];
1287
- !T && ie && !je && _.push([
1288
+ !E && se && !Ge && _.push([
1288
1289
  "assign-patient",
1289
1290
  /* @__PURE__ */ e(
1290
1291
  C,
1291
1292
  {
1292
1293
  intent: "primary",
1293
1294
  "data-action": "assign-patient",
1294
- className: $,
1295
- startIcon: /* @__PURE__ */ e(Fn, { "aria-hidden": "true" }),
1296
- onClick: () => ie(D),
1295
+ className: U,
1296
+ startIcon: /* @__PURE__ */ e(Un, { "aria-hidden": "true" }),
1297
+ onClick: () => se(D),
1297
1298
  children: h("calendarWorkspace.inc1.bookings.assignPatient")
1298
1299
  },
1299
1300
  "assign"
1300
1301
  )
1301
- ]), Y && _.push([
1302
+ ]), Z && _.push([
1302
1303
  "join-telehealth",
1303
1304
  /* @__PURE__ */ e(
1304
1305
  C,
1305
1306
  {
1306
1307
  intent: "primary",
1307
1308
  "data-action": "join-telehealth",
1308
- className: $,
1309
- startIcon: /* @__PURE__ */ e($t, { "aria-hidden": "true" }),
1310
- onClick: () => Y(D),
1309
+ className: U,
1310
+ startIcon: /* @__PURE__ */ e(zt, { "aria-hidden": "true" }),
1311
+ onClick: () => Z(D),
1311
1312
  children: h(S("joinTelehealth"))
1312
1313
  },
1313
1314
  "join"
1314
1315
  )
1315
- ]), !T && se && _.push([
1316
+ ]), !E && K && _.push([
1316
1317
  "edit-appointment",
1317
1318
  /* @__PURE__ */ e(
1318
1319
  C,
1319
1320
  {
1320
1321
  "data-action": "edit-appointment",
1321
- className: $,
1322
- startIcon: /* @__PURE__ */ e(Ct, { "aria-hidden": "true" }),
1323
- onClick: () => se(D),
1322
+ className: U,
1323
+ startIcon: /* @__PURE__ */ e(Dt, { "aria-hidden": "true" }),
1324
+ onClick: () => K(D),
1324
1325
  children: h("calendarWorkspace.editor.editTitle")
1325
1326
  },
1326
1327
  "edit"
1327
1328
  )
1328
- ]), !T && K && _.push([
1329
+ ]), !E && j && _.push([
1329
1330
  "move-appointment",
1330
1331
  /* @__PURE__ */ e(
1331
1332
  C,
1332
1333
  {
1333
1334
  "data-action": "move-appointment",
1334
- className: $,
1335
- startIcon: /* @__PURE__ */ e(cn, { "aria-hidden": "true" }),
1336
- onClick: () => K(D),
1335
+ className: U,
1336
+ startIcon: /* @__PURE__ */ e(mn, { "aria-hidden": "true" }),
1337
+ onClick: () => j(D),
1337
1338
  children: h(S("move"))
1338
1339
  },
1339
1340
  "move"
1340
1341
  )
1341
- ]), !T && B && _.push([
1342
+ ]), !E && W && _.push([
1342
1343
  "copy-appointment",
1343
- Gt ? /* @__PURE__ */ e(
1344
- Ot,
1344
+ Qt ? /* @__PURE__ */ e(
1345
+ Ht,
1345
1346
  {
1346
1347
  "data-action": "copy-appointment",
1347
1348
  "data-overflow-tip": !1,
1348
- startIcon: /* @__PURE__ */ e(wt, { "aria-hidden": "true" }),
1349
+ startIcon: /* @__PURE__ */ e(At, { "aria-hidden": "true" }),
1349
1350
  overflowItems: [
1350
1351
  {
1351
1352
  label: h("calendarWorkspace.editor.duplicateAppointmentOnly"),
1352
- icon: /* @__PURE__ */ e(Bn, { "aria-hidden": "true" }),
1353
+ icon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
1353
1354
  action: "copy-appointment-only",
1354
- onSelect: () => B(!1, D)
1355
+ onSelect: () => W(!1, D)
1355
1356
  },
1356
1357
  {
1357
1358
  label: h("calendarWorkspace.editor.duplicateWithTreatments"),
1358
- icon: /* @__PURE__ */ e(at, { "aria-hidden": "true" }),
1359
+ icon: /* @__PURE__ */ e(st, { "aria-hidden": "true" }),
1359
1360
  action: "copy-appointment-with-treatments",
1360
- onSelect: () => B(!0, D)
1361
+ onSelect: () => W(!0, D)
1361
1362
  }
1362
1363
  ],
1363
1364
  children: h(S("copy"))
@@ -1367,24 +1368,24 @@ function Aa({
1367
1368
  C,
1368
1369
  {
1369
1370
  "data-action": "copy-appointment",
1370
- className: $,
1371
- startIcon: /* @__PURE__ */ e(wt, { "aria-hidden": "true" }),
1372
- onClick: () => B(!1, D),
1371
+ className: U,
1372
+ startIcon: /* @__PURE__ */ e(At, { "aria-hidden": "true" }),
1373
+ onClick: () => W(!1, D),
1373
1374
  children: h(S("copy"))
1374
1375
  },
1375
1376
  "copy"
1376
1377
  )
1377
- ]), oe && dt.length > 0 && _.push([
1378
+ ]), oe && ut.length > 0 && _.push([
1378
1379
  "open-create-document",
1379
1380
  /* @__PURE__ */ e(
1380
- Ot,
1381
+ Ht,
1381
1382
  {
1382
1383
  "data-action": "open-create-document",
1383
1384
  "data-overflow-tip": !1,
1384
- startIcon: /* @__PURE__ */ e(Wn, { "aria-hidden": "true" }),
1385
- overflowItems: dt.map((g) => ({
1385
+ startIcon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
1386
+ overflowItems: ut.map((g) => ({
1386
1387
  label: h(S(`documents.${g}`)),
1387
- icon: ka[g],
1388
+ icon: Aa[g],
1388
1389
  action: `create-document-${g}`,
1389
1390
  onSelect: () => oe.onCreate(g, D)
1390
1391
  })),
@@ -1392,32 +1393,32 @@ function Aa({
1392
1393
  },
1393
1394
  "documents"
1394
1395
  )
1395
- ]), J ? _.push([
1396
+ ]), ee ? _.push([
1396
1397
  "open-whatsapp",
1397
1398
  /* @__PURE__ */ e(
1398
1399
  C,
1399
1400
  {
1400
1401
  "data-action": "open-whatsapp",
1401
- className: $,
1402
- startIcon: /* @__PURE__ */ e(Qe, { "aria-hidden": "true" }),
1403
- onClick: () => J(D),
1402
+ className: U,
1403
+ startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
1404
+ onClick: () => ee(D),
1404
1405
  children: h(S("remindWhatsApp"))
1405
1406
  },
1406
1407
  "whatsapp"
1407
1408
  )
1408
- ]) : $e(lt) ? _.push([
1409
+ ]) : ze(ct) ? _.push([
1409
1410
  "open-whatsapp",
1410
1411
  /* @__PURE__ */ e(
1411
1412
  C,
1412
1413
  {
1413
1414
  asChild: !0,
1414
1415
  "data-action": "open-whatsapp",
1415
- className: $,
1416
- startIcon: /* @__PURE__ */ e(Qe, { "aria-hidden": "true" }),
1416
+ className: U,
1417
+ startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
1417
1418
  children: /* @__PURE__ */ e(
1418
1419
  "a",
1419
1420
  {
1420
- href: $e(lt),
1421
+ href: ze(ct),
1421
1422
  target: "_blank",
1422
1423
  rel: "noopener noreferrer",
1423
1424
  children: h(S("remindWhatsApp"))
@@ -1426,83 +1427,83 @@ function Aa({
1426
1427
  },
1427
1428
  "whatsapp"
1428
1429
  )
1429
- ]) : x && !Q && _.push([
1430
+ ]) : V && !N && _.push([
1430
1431
  "buy-whatsapp",
1431
1432
  /* @__PURE__ */ e(
1432
1433
  C,
1433
1434
  {
1434
1435
  "data-action": "buy-whatsapp",
1435
- className: $,
1436
- startIcon: /* @__PURE__ */ e(Qe, { "aria-hidden": "true" }),
1437
- onClick: () => x(D),
1436
+ className: U,
1437
+ startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
1438
+ onClick: () => V(D),
1438
1439
  children: h(S("buyWhatsApp"))
1439
1440
  },
1440
1441
  "buy-whatsapp"
1441
1442
  )
1442
1443
  ]);
1443
- const mt = $e(Z);
1444
- mt && _.push([
1444
+ const ft = ze(te);
1445
+ ft && _.push([
1445
1446
  "create-task",
1446
1447
  /* @__PURE__ */ e(
1447
1448
  C,
1448
1449
  {
1449
1450
  asChild: !0,
1450
1451
  "data-action": "create-task",
1451
- className: $,
1452
- startIcon: /* @__PURE__ */ e(Un, { "aria-hidden": "true" }),
1453
- children: /* @__PURE__ */ e("a", { href: mt, children: h(S("createTask")) })
1452
+ className: U,
1453
+ startIcon: /* @__PURE__ */ e(zn, { "aria-hidden": "true" }),
1454
+ children: /* @__PURE__ */ e("a", { href: ft, children: h(S("createTask")) })
1454
1455
  },
1455
1456
  "task"
1456
1457
  )
1457
- ]), !T && j && _.push([
1458
+ ]), !E && Y && _.push([
1458
1459
  "delete-appointment",
1459
1460
  /* @__PURE__ */ e(
1460
1461
  C,
1461
1462
  {
1462
1463
  intent: "destructiveOutline",
1463
1464
  "data-action": "delete-appointment",
1464
- className: $,
1465
- startIcon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
1466
- onClick: () => j(D),
1465
+ className: U,
1466
+ startIcon: /* @__PURE__ */ e(Kn, { "aria-hidden": "true" }),
1467
+ onClick: () => Y(D),
1467
1468
  children: h("calendarWorkspace.editor.delete")
1468
1469
  },
1469
1470
  "delete"
1470
1471
  )
1471
1472
  ]);
1472
- const Ge = _.map(([, g]) => g);
1473
+ const Qe = _.map(([, g]) => g);
1473
1474
  r.current = {
1474
- status: U ?? null,
1475
- allowed: Pe ? Be : [],
1475
+ status: ae ?? null,
1476
+ allowed: _e ? Ue : [],
1476
1477
  offered: _.map(([g]) => g),
1477
1478
  historyAvailable: w !== void 0,
1478
1479
  historyOpen: le,
1479
- openHistory: Ee,
1480
+ openHistory: Ie,
1480
1481
  closeHistory: () => ne(!1)
1481
1482
  };
1482
- const ht = h(S("historyBack"));
1483
+ const gt = h(S("historyBack"));
1483
1484
  return /* @__PURE__ */ e(
1484
1485
  "div",
1485
1486
  {
1486
- className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${ze ? nn : ""}`,
1487
- children: /* @__PURE__ */ v(Je.Host, { children: [
1487
+ className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Ye ? on : ""}`,
1488
+ children: /* @__PURE__ */ v(et.Host, { children: [
1488
1489
  /* @__PURE__ */ e(
1489
- Mt,
1490
+ Wt,
1490
1491
  {
1491
1492
  title: l,
1492
1493
  headingId: u,
1493
- icon: /* @__PURE__ */ e(qt, { "aria-hidden": "true" }),
1494
+ icon: /* @__PURE__ */ e(Kt, { "aria-hidden": "true" }),
1494
1495
  sticky: !0,
1495
1496
  divider: !0,
1496
1497
  actions: w ? /* @__PURE__ */ e(
1497
- _t,
1498
+ Mt,
1498
1499
  {
1499
1500
  size: "sm",
1500
1501
  intent: "ghost",
1501
- icon: /* @__PURE__ */ e(It, { "aria-hidden": "true" }),
1502
+ icon: /* @__PURE__ */ e(Rt, { "aria-hidden": "true" }),
1502
1503
  "aria-label": h(S("historyAction")),
1503
1504
  tooltip: h(S("historyAction")),
1504
1505
  "data-action": "open-history",
1505
- onClick: Ee
1506
+ onClick: Ie
1506
1507
  }
1507
1508
  ) : void 0
1508
1509
  }
@@ -1514,42 +1515,42 @@ function Aa({
1514
1515
  "aria-busy": n || void 0,
1515
1516
  className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
1516
1517
  children: /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
1517
- k ? /* @__PURE__ */ e(en, { mask: b }) : t.patient ? /* @__PURE__ */ e(
1518
- ca,
1518
+ k ? /* @__PURE__ */ e(an, { mask: b }) : t.patient ? /* @__PURE__ */ e(
1519
+ ma,
1519
1520
  {
1520
- ...he,
1521
+ ...fe,
1521
1522
  now: d,
1522
1523
  mapsLink: m,
1523
- shortcuts: te,
1524
- onRequestSignature: ee,
1525
- onSignOnDevice: Ae,
1524
+ shortcuts: he,
1525
+ onRequestSignature: Te,
1526
+ onSignOnDevice: xe,
1526
1527
  onOpenPatient: me
1527
1528
  }
1528
1529
  ) : (
1529
1530
  /* No patient card to carry the identity: a patient-less, an
1530
1531
  unassigned or an unresolved booking keeps the strip. */
1531
1532
  /* @__PURE__ */ e(
1532
- bn,
1533
+ Sn,
1533
1534
  {
1534
1535
  name: t.appointment.title.trim() ? t.appointment.title : h(S("patientNotLoaded")),
1535
- unresolved: je,
1536
- status: U,
1536
+ unresolved: Ge,
1537
+ status: ae,
1537
1538
  flags: {
1538
1539
  isTelehealth: t.appointment.isTelehealth,
1539
1540
  isBookedOnline: t.appointment.bookedOnline,
1540
1541
  isRecurring: t.appointment.recurrence !== void 0,
1541
- hasUnassignedPatient: t.appointment.bookedOnline && !je,
1542
+ hasUnassignedPatient: t.appointment.bookedOnline && !Ge,
1542
1543
  hasHighlightedAnamnesis: !1,
1543
- hasBillableAmount: (((gt = t.money) == null ? void 0 : gt.billableAmount) ?? 0) > 0
1544
+ hasBillableAmount: (((yt = t.money) == null ? void 0 : yt.billableAmount) ?? 0) > 0
1544
1545
  },
1545
1546
  locale: c
1546
1547
  }
1547
1548
  )
1548
1549
  ),
1549
1550
  /* @__PURE__ */ e(
1550
- ua,
1551
+ ha,
1551
1552
  {
1552
- ...he,
1553
+ ...fe,
1553
1554
  operator: f,
1554
1555
  chair: y,
1555
1556
  privacy: k,
@@ -1559,80 +1560,80 @@ function Aa({
1559
1560
  so the sub-view can hand focus back to it. An empty
1560
1561
  read-only description prints nothing. Privacy hides the
1561
1562
  text and the pencil. */
1562
- k ? q ? /* @__PURE__ */ e(bt, { block: "description" }) : void 0 : q || z && !T ? /* @__PURE__ */ e(
1563
- Ht,
1563
+ k ? $ ? /* @__PURE__ */ e(wt, { block: "description" }) : void 0 : $ || z && !E ? /* @__PURE__ */ e(
1564
+ Ft,
1564
1565
  {
1565
1566
  "data-block": "description",
1566
1567
  role: "group",
1567
1568
  "aria-label": h("calendarWorkspace.editor.description"),
1568
- value: q,
1569
+ value: $,
1569
1570
  editLabel: h(S("editDescription")),
1570
- onEdit: z && !T ? () => V(!0) : void 0
1571
+ onEdit: z && !E ? () => G(!0) : void 0
1571
1572
  }
1572
1573
  ) : void 0
1573
1574
  )
1574
1575
  }
1575
1576
  ),
1576
- fe && k ? /* @__PURE__ */ e(
1577
+ ge && k ? /* @__PURE__ */ e(
1577
1578
  pe,
1578
1579
  {
1579
1580
  "data-card": "notes",
1580
1581
  title: h("notesPanel.title"),
1581
1582
  headingLevel: 3,
1582
- children: /* @__PURE__ */ e(bt, {})
1583
+ children: /* @__PURE__ */ e(wt, {})
1583
1584
  }
1584
- ) : fe ? /* @__PURE__ */ e(
1585
- ma,
1585
+ ) : ge ? /* @__PURE__ */ e(
1586
+ ga,
1586
1587
  {
1587
- preview: fe,
1588
- onOpenNotes: _e ? L : void 0,
1588
+ preview: ge,
1589
+ onOpenNotes: Fe ? L : void 0,
1589
1590
  locale: c
1590
1591
  }
1591
1592
  ) : null,
1592
1593
  /* @__PURE__ */ e(
1593
- pa,
1594
+ fa,
1594
1595
  {
1595
- ...he,
1596
+ ...fe,
1596
1597
  privacy: k,
1597
- carePlanUrl: te == null ? void 0 : te.carePlanUrl
1598
+ carePlanUrl: he == null ? void 0 : he.carePlanUrl
1598
1599
  }
1599
1600
  )
1600
1601
  ] })
1601
1602
  }
1602
1603
  ),
1603
- pt || Ge.length > 0 ? (
1604
+ ht || Qe.length > 0 ? (
1604
1605
  /* The body scrolls; the status and the actions stay put. The
1605
1606
  status keeps its own segment and never folds. The actions fold
1606
1607
  to icons, then into More, never onto a second line. */
1607
- /* @__PURE__ */ v("div", { className: fa(), children: [
1608
- pt,
1609
- Ge.length > 0 ? /* @__PURE__ */ e(
1610
- tn,
1608
+ /* @__PURE__ */ v("div", { className: ya(), children: [
1609
+ ht,
1610
+ Qe.length > 0 ? /* @__PURE__ */ e(
1611
+ sn,
1611
1612
  {
1612
1613
  label: h(S("actionsLabel")),
1613
1614
  overflow: "menu",
1614
1615
  collapseToIcons: !0,
1615
1616
  background: "surface",
1616
1617
  size: "sm",
1617
- className: `ds:min-w-0 ds:flex-1 ds:text-end ${ya}`,
1618
- children: Ge
1618
+ className: `ds:min-w-0 ds:flex-1 ds:text-end ${wa}`,
1619
+ children: Qe
1619
1620
  }
1620
1621
  ) : null
1621
1622
  ] })
1622
1623
  ) : null,
1623
1624
  w ? /* @__PURE__ */ e(
1624
- Je,
1625
+ et,
1625
1626
  {
1626
- ref: ge,
1627
+ ref: ve,
1627
1628
  open: le,
1628
- icon: /* @__PURE__ */ e(It, { "aria-hidden": "true" }),
1629
+ icon: /* @__PURE__ */ e(Rt, { "aria-hidden": "true" }),
1629
1630
  title: h(S("historyTitle")),
1630
- backLabel: ht,
1631
+ backLabel: gt,
1631
1632
  headingLevel: 3,
1632
1633
  onBack: () => ne(!1),
1633
1634
  "data-details-subview": "history",
1634
1635
  children: /* @__PURE__ */ e("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
1635
- Sa,
1636
+ Ta,
1636
1637
  {
1637
1638
  history: w,
1638
1639
  locale: c,
@@ -1647,25 +1648,25 @@ function Aa({
1647
1648
  }
1648
1649
  ) : null,
1649
1650
  re ? /* @__PURE__ */ e(
1650
- Je,
1651
+ et,
1651
1652
  {
1652
- open: He,
1653
- icon: /* @__PURE__ */ e(Ct, { "aria-hidden": "true" }),
1653
+ open: We,
1654
+ icon: /* @__PURE__ */ e(Dt, { "aria-hidden": "true" }),
1654
1655
  title: h(S("editDescription")),
1655
- backLabel: ht,
1656
+ backLabel: gt,
1656
1657
  headingLevel: 3,
1657
- initialFocusRef: ye,
1658
+ initialFocusRef: ke,
1658
1659
  onBack: () => {
1659
- ve || V(!1);
1660
+ be || G(!1);
1660
1661
  },
1661
1662
  "data-details-subview": "description",
1662
- footer: /* @__PURE__ */ v(ae, { children: [
1663
+ footer: /* @__PURE__ */ v(ie, { children: [
1663
1664
  /* @__PURE__ */ e(
1664
1665
  C,
1665
1666
  {
1666
1667
  intent: "secondary",
1667
- disabled: ve,
1668
- onClick: () => V(!1),
1668
+ disabled: be,
1669
+ onClick: () => G(!1),
1669
1670
  children: h(S("noteCancel"))
1670
1671
  }
1671
1672
  ),
@@ -1674,22 +1675,34 @@ function Aa({
1674
1675
  {
1675
1676
  intent: "primary",
1676
1677
  "data-action": "save-description",
1677
- loading: ve,
1678
- onClick: () => void Fe(),
1678
+ loading: be,
1679
+ disabled: q,
1680
+ onClick: () => void Xt(),
1679
1681
  children: h(S("descriptionSave"))
1680
1682
  }
1681
1683
  )
1682
1684
  ] }),
1683
1685
  children: /* @__PURE__ */ v("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
1684
- A ? /* @__PURE__ */ e(G, { variant: "error", children: /* @__PURE__ */ e(G.Description, { children: A }) }) : null,
1686
+ A || q ? /* @__PURE__ */ e(X, { variant: "error", children: /* @__PURE__ */ e(
1687
+ X.Description,
1688
+ {
1689
+ id: q ? Le : void 0,
1690
+ children: q ? h("calendarWorkspace.editor.descriptionTooLong", {
1691
+ max: Q
1692
+ }) : A
1693
+ }
1694
+ ) }) : null,
1685
1695
  /* @__PURE__ */ e(
1686
- an,
1696
+ rn,
1687
1697
  {
1688
- ref: ye,
1689
- value: Ie,
1698
+ ref: ke,
1699
+ value: ye,
1700
+ tone: q ? "error" : "default",
1690
1701
  minRows: 6,
1691
1702
  autoResize: !0,
1692
1703
  "aria-label": h("calendarWorkspace.editor.description"),
1704
+ "aria-invalid": q || void 0,
1705
+ "aria-describedby": q ? Le : void 0,
1693
1706
  onChange: (g) => de(g.target.value)
1694
1707
  }
1695
1708
  )
@@ -1700,7 +1713,7 @@ function Aa({
1700
1713
  }
1701
1714
  );
1702
1715
  }
1703
- const xa = Xt(function({
1716
+ const Ea = Zt(function({
1704
1717
  state: n,
1705
1718
  onRetry: i,
1706
1719
  patientId: d,
@@ -1716,52 +1729,53 @@ const xa = Xt(function({
1716
1729
  notesPreview: k,
1717
1730
  onOpenNotes: b,
1718
1731
  history: m,
1719
- onOpenHistory: N,
1732
+ onOpenHistory: T,
1720
1733
  noteUnrecordedEdits: L,
1721
1734
  readOnly: P = !1,
1722
- onStatusChange: E,
1735
+ onStatusChange: x,
1723
1736
  allowedStatuses: M,
1724
- onDescriptionChange: T,
1725
- onAssignPatient: I,
1726
- onEdit: F,
1727
- onMove: z,
1728
- onCopy: ie,
1729
- onDelete: se,
1730
- onJoinTelehealth: K,
1731
- onWhatsApp: B,
1732
- whatsappUrl: j,
1733
- onBuyWhatsApp: Y,
1734
- createTaskUrl: J,
1735
- onRequestSignature: Q,
1736
- onSignOnDevice: x,
1737
- onOpenPatient: Z,
1738
- shortcuts: ee,
1739
- documents: Ae,
1737
+ onDescriptionChange: E,
1738
+ descriptionMaxLength: I,
1739
+ onAssignPatient: F,
1740
+ onEdit: z,
1741
+ onMove: Q,
1742
+ onCopy: se,
1743
+ onDelete: K,
1744
+ onJoinTelehealth: j,
1745
+ onWhatsApp: W,
1746
+ whatsappUrl: Y,
1747
+ onBuyWhatsApp: Z,
1748
+ createTaskUrl: ee,
1749
+ onRequestSignature: N,
1750
+ onSignOnDevice: V,
1751
+ onOpenPatient: te,
1752
+ shortcuts: Te,
1753
+ documents: xe,
1740
1754
  id: me,
1741
- className: te,
1755
+ className: he,
1742
1756
  ...oe
1743
- }, Oe) {
1744
- var ve, De;
1745
- const { t: h, i18n: D } = X("ui"), ze = Ze(), he = me ?? ze, w = Ze(), _e = r ?? D.language, fe = !o && (a != null && a.trim()) ? a : h(S("region")), re = n.status === "ready" ? n.read : void 0, xe = n.status === "ready" ? n.read.eventId : n.eventId, ne = R(
1757
+ }, Me) {
1758
+ var be, Pe;
1759
+ const { t: h, i18n: D } = J("ui"), Ye = je(), fe = me ?? Ye, w = je(), Fe = r ?? D.language, ge = !o && (a != null && a.trim()) ? a : h(S("region")), re = n.status === "ready" ? n.read : void 0, Ee = n.status === "ready" ? n.read.eventId : n.eventId, ne = R(
1746
1760
  void 0
1747
- ), Ne = ne.current !== void 0 && ne.current !== "ready";
1748
- we(() => {
1761
+ ), Ce = ne.current !== void 0 && ne.current !== "ready";
1762
+ Ae(() => {
1749
1763
  ne.current = n.status;
1750
1764
  }, [n.status]);
1751
- const V = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), He = yt(() => Zt(Oe, le), [Oe]), Ee = R(!1);
1752
- typeof document < "u" && (Ee.current = ((ve = le.current) == null ? void 0 : ve.contains(document.activeElement)) ?? !1);
1753
- const Me = re ? `ready:${re.eventId}` : n.status, ge = R(!1);
1765
+ const G = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), We = kt(() => nn(Me, le), [Me]), Ie = R(!1);
1766
+ typeof document < "u" && (Ie.current = ((be = le.current) == null ? void 0 : be.contains(document.activeElement)) ?? !1);
1767
+ const Be = re ? `ready:${re.eventId}` : n.status, ve = R(!1);
1754
1768
  ue(() => {
1755
- ge.current ? (n.status !== "loading" && (ge.current = !1), Le(w)) : Ee.current && Le(w);
1756
- }, [Me, w]);
1769
+ ve.current ? (n.status !== "loading" && (ve.current = !1), He(w)) : Ie.current && He(w);
1770
+ }, [Be, w]);
1757
1771
  const O = R(null);
1758
1772
  re || (O.current = null);
1759
- const Te = R(null), q = R({ state: n, eventId: xe, privacy: o, retryOffered: V, onRetry: i });
1760
- q.current = { state: n, eventId: xe, privacy: o, retryOffered: V, onRetry: i };
1761
- const Ce = yt(
1773
+ const De = R(null), $ = R({ state: n, eventId: Ee, privacy: o, retryOffered: G, onRetry: i });
1774
+ $.current = { state: n, eventId: Ee, privacy: o, retryOffered: G, onRetry: i };
1775
+ const Re = kt(
1762
1776
  () => ({
1763
- getEventId: () => q.current.eventId ?? null,
1764
- getLoadStatus: () => q.current.state.status,
1777
+ getEventId: () => $.current.eventId ?? null,
1778
+ getLoadStatus: () => $.current.state.status,
1765
1779
  getAppointmentStatus: () => {
1766
1780
  var A;
1767
1781
  return ((A = O.current) == null ? void 0 : A.status) ?? null;
@@ -1778,7 +1792,7 @@ const xa = Xt(function({
1778
1792
  var A;
1779
1793
  return ((A = O.current) == null ? void 0 : A.historyOpen) ?? !1;
1780
1794
  },
1781
- isPrivacy: () => q.current.privacy,
1795
+ isPrivacy: () => $.current.privacy,
1782
1796
  openHistory: () => {
1783
1797
  var A;
1784
1798
  if (!((A = O.current) != null && A.historyAvailable))
@@ -1790,57 +1804,57 @@ const xa = Xt(function({
1790
1804
  (A = O.current) == null || A.closeHistory();
1791
1805
  },
1792
1806
  setAppointmentStatus: (A) => {
1793
- const W = O.current, ye = Te.current;
1794
- if (!W || !ye || W.allowed.length === 0)
1795
- return Xe(
1807
+ const B = O.current, ke = De.current;
1808
+ if (!B || !ke || B.allowed.length === 0)
1809
+ return Ze(
1796
1810
  new Error("AppointmentDetailsPanel: the status is read-only.")
1797
1811
  );
1798
- if (A === W.status) return Promise.resolve();
1799
- if (!W.allowed.includes(A))
1800
- return Xe(
1812
+ if (A === B.status) return Promise.resolve();
1813
+ if (!B.allowed.includes(A))
1814
+ return Ze(
1801
1815
  new Error(`AppointmentDetailsPanel: "${A}" is not allowed.`)
1802
1816
  );
1803
- const Fe = () => Xe(
1817
+ const Le = () => Ze(
1804
1818
  new Error("AppointmentDetailsPanel: a status save is in flight.")
1805
1819
  );
1806
- if (ye.getIsSaving()) return Fe();
1807
- const U = ye.setValue(A);
1808
- return U === void 0 ? Fe() : U;
1820
+ if (ke.getIsSaving()) return Le();
1821
+ const q = ke.setValue(A);
1822
+ return q === void 0 ? Le() : q;
1809
1823
  },
1810
1824
  retry: () => {
1811
- const { retryOffered: A, onRetry: W } = q.current;
1812
- if (!A || !W)
1825
+ const { retryOffered: A, onRetry: B } = $.current;
1826
+ if (!A || !B)
1813
1827
  throw new Error("AppointmentDetailsPanel: Retry is not offered.");
1814
- W();
1828
+ B();
1815
1829
  }
1816
1830
  }),
1817
1831
  []
1818
1832
  );
1819
- Qt(ea, Ce, he);
1820
- const Ie = /* @__PURE__ */ e(
1821
- Mt,
1833
+ tn(aa, Re, fe);
1834
+ const ye = /* @__PURE__ */ e(
1835
+ Wt,
1822
1836
  {
1823
- title: fe,
1837
+ title: ge,
1824
1838
  headingId: w,
1825
- icon: /* @__PURE__ */ e(qt, { "aria-hidden": "true" }),
1839
+ icon: /* @__PURE__ */ e(Kt, { "aria-hidden": "true" }),
1826
1840
  sticky: !0,
1827
1841
  divider: !0
1828
1842
  }
1829
1843
  );
1830
1844
  let de;
1831
1845
  return n.status === "ready" ? de = /* @__PURE__ */ e(
1832
- Aa,
1846
+ xa,
1833
1847
  {
1834
1848
  read: n.read,
1835
1849
  refreshing: n.refreshing === !0,
1836
1850
  currency: u,
1837
1851
  now: p ?? /* @__PURE__ */ new Date(),
1838
- locale: _e,
1839
- shownTitle: fe,
1852
+ locale: Fe,
1853
+ shownTitle: ge,
1840
1854
  headingId: w,
1841
- enter: Ne,
1855
+ enter: Ce,
1842
1856
  live: O,
1843
- statusControl: Te,
1857
+ statusControl: De,
1844
1858
  patientId: d,
1845
1859
  operator: c,
1846
1860
  chair: l,
@@ -1850,43 +1864,44 @@ const xa = Xt(function({
1850
1864
  notesPreview: k,
1851
1865
  onOpenNotes: b,
1852
1866
  history: m,
1853
- onOpenHistory: N,
1867
+ onOpenHistory: T,
1854
1868
  noteUnrecordedEdits: L,
1855
1869
  readOnly: P,
1856
- onStatusChange: E,
1870
+ onStatusChange: x,
1857
1871
  allowedStatuses: M,
1858
- onDescriptionChange: T,
1859
- onAssignPatient: I,
1860
- onEdit: F,
1861
- onMove: z,
1862
- onCopy: ie,
1863
- onDelete: se,
1864
- onJoinTelehealth: K,
1865
- onWhatsApp: B,
1866
- whatsappUrl: j,
1867
- onBuyWhatsApp: Y,
1868
- createTaskUrl: J,
1869
- onRequestSignature: Q,
1870
- onSignOnDevice: x,
1871
- onOpenPatient: Z,
1872
- shortcuts: ee,
1873
- documents: Ae
1872
+ onDescriptionChange: E,
1873
+ descriptionMaxLength: I,
1874
+ onAssignPatient: F,
1875
+ onEdit: z,
1876
+ onMove: Q,
1877
+ onCopy: se,
1878
+ onDelete: K,
1879
+ onJoinTelehealth: j,
1880
+ onWhatsApp: W,
1881
+ whatsappUrl: Y,
1882
+ onBuyWhatsApp: Z,
1883
+ createTaskUrl: ee,
1884
+ onRequestSignature: N,
1885
+ onSignOnDevice: V,
1886
+ onOpenPatient: te,
1887
+ shortcuts: Te,
1888
+ documents: xe
1874
1889
  },
1875
1890
  n.read.eventId
1876
- ) : n.status === "loading" ? de = /* @__PURE__ */ v(ae, { children: [
1877
- Ie,
1878
- /* @__PURE__ */ e(wa, {})
1879
- ] }) : de = /* @__PURE__ */ v(ae, { children: [
1880
- Ie,
1891
+ ) : n.status === "loading" ? de = /* @__PURE__ */ v(ie, { children: [
1892
+ ye,
1893
+ /* @__PURE__ */ e(Na, {})
1894
+ ] }) : de = /* @__PURE__ */ v(ie, { children: [
1895
+ ye,
1881
1896
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
1882
- /* @__PURE__ */ e(G, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e(G.Description, { children: n.status === "error" ? ((De = n.message) == null ? void 0 : De.trim()) || h("emptyState.error.description") : n.reason }) }),
1883
- V ? /* @__PURE__ */ e(
1897
+ /* @__PURE__ */ e(X, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e(X.Description, { children: n.status === "error" ? ((Pe = n.message) == null ? void 0 : Pe.trim()) || h("emptyState.error.description") : n.reason }) }),
1898
+ G ? /* @__PURE__ */ e(
1884
1899
  C,
1885
1900
  {
1886
1901
  intent: "outline",
1887
1902
  "data-action": "retry-load",
1888
1903
  onClick: () => {
1889
- ge.current = !0, i == null || i();
1904
+ ve.current = !0, i == null || i();
1890
1905
  },
1891
1906
  children: h("emptyState.error.cta")
1892
1907
  }
@@ -1895,72 +1910,72 @@ const xa = Xt(function({
1895
1910
  ] }), /* @__PURE__ */ e(
1896
1911
  "div",
1897
1912
  {
1898
- ref: He,
1913
+ ref: We,
1899
1914
  id: me,
1900
1915
  "data-component": "appointment-details-panel",
1901
- "data-component-id": he,
1902
- "data-event-id": xe,
1916
+ "data-component-id": fe,
1917
+ "data-event-id": Ee,
1903
1918
  "data-status": n.status,
1904
1919
  "aria-busy": n.status === "loading" || void 0,
1905
- className: ha({ className: te }),
1920
+ className: va({ className: he }),
1906
1921
  ...oe,
1907
1922
  children: de
1908
1923
  }
1909
1924
  );
1910
1925
  });
1911
- xa.displayName = "AppointmentDetailsPanel";
1912
- function $i({
1926
+ Ea.displayName = "AppointmentDetailsPanel";
1927
+ function Ki({
1913
1928
  eventId: t,
1914
1929
  load: n,
1915
1930
  reloadKey: i
1916
1931
  }) {
1917
- const { t: d } = X("ui"), c = R("");
1932
+ const { t: d } = J("ui"), c = R("");
1918
1933
  c.current = d("emptyState.error.description");
1919
1934
  const l = R(n);
1920
1935
  ue(() => {
1921
1936
  l.current = n;
1922
1937
  });
1923
1938
  const [u, p] = H(0), [r, a] = H(), o = JSON.stringify([i ?? null, u]), [f, y] = H({ eventId: t, count: 0 }), k = f.eventId === t ? f.count : f.count + 1;
1924
- f.eventId !== t && y({ eventId: t, count: k }), we(() => {
1939
+ f.eventId !== t && y({ eventId: t, count: k }), Ae(() => {
1925
1940
  if (t === null) {
1926
1941
  a(void 0);
1927
1942
  return;
1928
1943
  }
1929
- const L = new AbortController(), P = (E) => {
1930
- L.signal.aborted || a({ eventId: t, selection: k, request: o, value: E });
1944
+ const L = new AbortController(), P = (x) => {
1945
+ L.signal.aborted || a({ eventId: t, selection: k, request: o, value: x });
1931
1946
  };
1932
- return Promise.resolve().then(() => l.current(t, { signal: L.signal })).then((E) => {
1933
- var M, T;
1934
- if (E.status !== "ready") {
1947
+ return Promise.resolve().then(() => l.current(t, { signal: L.signal })).then((x) => {
1948
+ var M, E;
1949
+ if (x.status !== "ready") {
1935
1950
  P({
1936
1951
  status: "refused",
1937
1952
  eventId: t,
1938
- reason: E.reason,
1939
- retryable: E.retryable
1953
+ reason: x.reason,
1954
+ retryable: x.retryable
1940
1955
  });
1941
1956
  return;
1942
1957
  }
1943
- if (((M = E.details) == null ? void 0 : M.eventId) !== t || !kn((T = E.details.appointment) == null ? void 0 : T.startIso))
1958
+ if (((M = x.details) == null ? void 0 : M.eventId) !== t || !An((E = x.details.appointment) == null ? void 0 : E.startIso))
1944
1959
  throw new Error(c.current);
1945
- P({ status: "ready", read: E.details });
1946
- }).catch((E) => {
1960
+ P({ status: "ready", read: x.details });
1961
+ }).catch((x) => {
1947
1962
  P({
1948
1963
  status: "error",
1949
1964
  eventId: t,
1950
- message: et(E, c.current)
1965
+ message: nt(x, c.current)
1951
1966
  });
1952
1967
  }), () => L.abort();
1953
1968
  }, [t, k, o]);
1954
- const b = Jt(() => p((L) => L + 1), []);
1969
+ const b = en(() => p((L) => L + 1), []);
1955
1970
  if (t === null) return { state: null, retry: b };
1956
1971
  const m = (r == null ? void 0 : r.eventId) === t && r.selection === k ? r : void 0;
1957
- let N = { status: "loading", eventId: t };
1958
- return (m == null ? void 0 : m.request) === o ? N = m.value : (m == null ? void 0 : m.value.status) === "ready" && (N = { status: "ready", read: m.value.read, refreshing: !0 }), { state: N, retry: b };
1972
+ let T = { status: "loading", eventId: t };
1973
+ return (m == null ? void 0 : m.request) === o ? T = m.value : (m == null ? void 0 : m.value.status) === "ready" && (T = { status: "ready", read: m.value.read, refreshing: !0 }), { state: T, retry: b };
1959
1974
  }
1960
1975
  export {
1961
- xa as A,
1976
+ Ea as A,
1962
1977
  ce as D,
1963
- ea as a,
1964
- $i as u
1978
+ aa as a,
1979
+ Ki as u
1965
1980
  };
1966
- //# sourceMappingURL=use-appointment-details-read-DeQnmmZw.js.map
1981
+ //# sourceMappingURL=use-appointment-details-read-xj0PyEhI.js.map