@alfadocs/ui-kit 1.150.0 → 1.151.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/_chunks/{address-autocomplete-_LeOFdM7.js → address-autocomplete-Bt1nwxyn.js} +2 -2
  2. package/dist/_chunks/{address-fields-C4khof4C.js → address-fields-COumFRSX.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-NgxPuAAz.js → agenda-tray-CmfcYQhc.js} +2 -2
  4. package/dist/_chunks/{ai-summary-panel-D-RNe-_n.js → ai-summary-panel-DyAHCqaj.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-Bjuxk8mU.js → alia-sidebar-BqZjnVoF.js} +2 -2
  6. package/dist/_chunks/{anamnesis-card-G0qzw0Oi.js → anamnesis-card-CoiG7vDj.js} +2 -2
  7. package/dist/_chunks/{anamnesis-summary-rows-CE-i9j-s.js → anamnesis-summary-rows-CFpaA1GP.js} +3 -3
  8. package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
  9. package/dist/_chunks/{appointment-card-BPZggqck.js → appointment-card-CCKjbU5y.js} +105 -104
  10. package/dist/_chunks/{appointment-details-panel.history-BO31ZFQp.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
  11. package/dist/_chunks/{appointment-details-panel.identity-C9kWtC6m.js → appointment-details-panel.identity-9hRo85Lx.js} +4 -4
  12. package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
  13. package/dist/_chunks/{appointment-timeline-ynFqcw0S.js → appointment-timeline-B9KRurfc.js} +3 -3
  14. package/dist/_chunks/{appointment-tray-Dx5VDREk.js → appointment-tray-Be3HuEyO.js} +3 -3
  15. package/dist/_chunks/{balance-badge-cell-DiyJQcmA.js → balance-badge-cell-OghXENKK.js} +3 -3
  16. package/dist/_chunks/{bill-line-table-B8Cc2pTH.js → bill-line-table-DxV5_Dmq.js} +2 -2
  17. package/dist/_chunks/{calendar-appointment-editor-dialog-BfoEpFVx.js → calendar-appointment-editor-dialog-B9MtcBvx.js} +337 -334
  18. package/dist/_chunks/{calendar-editor-discard-host-DO506cJu.js → calendar-editor-discard-host-BudLsUZO.js} +3 -3
  19. package/dist/_chunks/{calendar-waiting-list-panel-CyMTv2y3.js → calendar-waiting-list-panel-DukgSOPH.js} +7 -7
  20. package/dist/_chunks/{calendar-workspace.model-X3aXbDTo.js → calendar-workspace.model-BulUpy0I.js} +2 -2
  21. package/dist/_chunks/{calendar.sheets-C8x8kPb4.js → calendar.sheets-OmTiQdCg.js} +8 -8
  22. package/dist/_chunks/{calls-panel-Bpemmnpd.js → calls-panel-eohONLia.js} +3 -3
  23. package/dist/_chunks/code-BfU9G1ZM.js +15 -0
  24. package/dist/_chunks/{communications-panel-Cd0TBEhL.js → communications-panel-CqiFs8BH.js} +3 -3
  25. package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
  26. package/dist/_chunks/control-room-rail-C-3o1e0e.js +456 -0
  27. package/dist/_chunks/{data-grid-CkzbCZSo.js → data-grid-DTAwrOiq.js} +3 -3
  28. package/dist/_chunks/{data-table-DFAYYsSc.js → data-table-CgpHO6EZ.js} +2 -2
  29. package/dist/_chunks/{default-tabs-C45FVzsG.js → default-tabs-CZaDDf1G.js} +4 -4
  30. package/dist/_chunks/{description-list-DA4TgL_I.js → description-list-DaldSpGy.js} +29 -26
  31. package/dist/_chunks/dev-bypass-button-DFcNpCQj.js +24 -0
  32. package/dist/_chunks/{document-preview-Zws6CHhK.js → document-preview-TbwhY_eK.js} +3 -3
  33. package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
  34. package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
  35. package/dist/_chunks/{error-boundary-BQ5mRqEd.js → error-boundary-BDS1XStO.js} +2 -2
  36. package/dist/_chunks/{error-page-CdNGIezW.js → error-page-3gWV-Vmj.js} +2 -2
  37. package/dist/_chunks/{error-page-illustration-BdJLuMdV.js → error-page-illustration-CJCjLk_-.js} +125 -149
  38. package/dist/_chunks/{face-scheme-BC2whb1S.js → face-scheme-DRYGaszs.js} +255 -264
  39. package/dist/_chunks/{feature-preview-switch-PKeLaFry.js → feature-preview-switch-B_8JTya_.js} +2 -2
  40. package/dist/_chunks/{file-manager-DzOCQBAO.js → file-manager-DMvYx-Gq.js} +4 -4
  41. package/dist/_chunks/{folder-CH9PJHou.js → folder-DvNxod7_.js} +3 -3
  42. package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
  43. package/dist/_chunks/{help-me-write-templates-B_wMJ82X.js → help-me-write-templates-VnvlK87x.js} +2 -2
  44. package/dist/_chunks/{info-tip-cCppV1fD.js → info-tip-DkVISvo-.js} +2 -2
  45. package/dist/_chunks/{invoice-upload-list-BReimsvV.js → invoice-upload-list-DutydbjC.js} +3 -3
  46. package/dist/_chunks/{link-cell-renderer-CWLArl5e.js → link-cell-renderer-DTunki79.js} +3 -3
  47. package/dist/_chunks/{login-dev-card-DqUNJcd7.js → login-dev-card-CQz9yhrU.js} +2 -2
  48. package/dist/_chunks/{map-view-n6GiDRWM.js → map-view-B67HXWPR.js} +2 -2
  49. package/dist/_chunks/mark-adrift-LBqHvZwv.js +42 -0
  50. package/dist/_chunks/{marketplace-app-shell-CGA-R-zt.js → marketplace-app-shell-CclaaAvb.js} +3 -3
  51. package/dist/_chunks/{message-tray-Dx2HPcKB.js → message-tray-DysT-DPS.js} +2 -2
  52. package/dist/_chunks/{note-timeline-BbjHMhkL.js → note-timeline-CS5j2OKD.js} +86 -77
  53. package/dist/_chunks/notebook-text-spVSekMN.js +21 -0
  54. package/dist/_chunks/{notes-panel-BguRX8VC.js → notes-panel-d0I3hOEY.js} +162 -173
  55. package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
  56. package/dist/_chunks/{optical-prescription-BzGnlIjq.js → optical-prescription-CAnXavjq.js} +2 -2
  57. package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
  58. package/dist/_chunks/{panel-subview-Om_yZvFG.js → panel-subview-B5hnQwfQ.js} +2 -2
  59. package/dist/_chunks/{patient-account-settings-YKnBzmwE.js → patient-account-settings-DmB_h5fq.js} +3 -3
  60. package/dist/_chunks/{patient-check-in-resume-DERfQbp5.js → patient-check-in-resume-CI54cY8Z.js} +6 -6
  61. package/dist/_chunks/{patient-details-BUD0UbmT.js → patient-details-wFIzTz7N.js} +3 -3
  62. package/dist/_chunks/{patient-field-row-DytaHdGw.js → patient-field-row-BDgfYLgz.js} +2 -2
  63. package/dist/_chunks/{patient-summary-card-7Werxl48.js → patient-summary-card-ZunOre3Q.js} +162 -155
  64. package/dist/_chunks/{payment-request-card-BF3rakTQ.js → payment-request-card-BSSfKrcc.js} +2 -2
  65. package/dist/_chunks/{portal-details-C1QQGPQf.js → portal-details-BZm8UNMx.js} +4 -4
  66. package/dist/_chunks/{portal-documents-CzEuCaqv.js → portal-documents-CBVSCKAB.js} +3 -3
  67. package/dist/_chunks/{portal-parts-BMW4t57s.js → portal-parts-DRfyhL5P.js} +3 -3
  68. package/dist/_chunks/{practice-results-D0TAgL8v.js → practice-results-CqoB5YAv.js} +5 -5
  69. package/dist/_chunks/{prescription-history-CQuJmd4H.js → prescription-history-CxBM3gnm.js} +4 -4
  70. package/dist/_chunks/{privacy-mask-CrjD5PYW.js → privacy-mask-CaLBAxzj.js} +2 -2
  71. package/dist/_chunks/{product-hub-panel-NVpRuJeW.js → product-hub-panel-RJzrDcGp.js} +3 -3
  72. package/dist/_chunks/{public-header.agent-Dzo6ujrE.js → public-header.agent-B2CqVq4s.js} +2 -2
  73. package/dist/_chunks/{radiograph-panel.agent-Kl1M0dtT.js → radiograph-panel.agent-kgCmmgZk.js} +2 -2
  74. package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
  75. package/dist/_chunks/{registry-connection-panel-kdKbGQE6.js → registry-connection-panel-BkPPA3Fj.js} +3 -3
  76. package/dist/_chunks/{reserved.agent-CW0frsMv.js → reserved.agent-C-sMq0pb.js} +4 -4
  77. package/dist/_chunks/{reviews-panel-54AFY6uy.js → reviews-panel-jIz5aP2X.js} +3 -3
  78. package/dist/_chunks/rich-text-editor-DTadvKa7.js +4716 -0
  79. package/dist/_chunks/{scroll-area-CY5SLYNw.js → scroll-area-RQtcKkHf.js} +84 -79
  80. package/dist/_chunks/{sheet-CZDjW9Q-.js → sheet-1LXzej6Q.js} +2 -2
  81. package/dist/_chunks/{sidebar-D5DFYN5K.js → sidebar-BV9JCgS4.js} +2 -2
  82. package/dist/_chunks/{signed-out-frame-CC25CgKo.js → signed-out-frame-CKA8SSbU.js} +2 -2
  83. package/dist/_chunks/{signing-end-screen-Bq6tkFE6.js → signing-end-screen-HXkalppf.js} +2 -2
  84. package/dist/_chunks/{slot-grid-khIpy8Gx.js → slot-grid-DdqeF6PW.js} +2 -2
  85. package/dist/_chunks/{sync-tray-BQD-HuA4.js → sync-tray-CSVGzuur.js} +2 -2
  86. package/dist/_chunks/{task-editor-CIHQQRtP.js → task-editor-aXjGMwYA.js} +4 -4
  87. package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
  88. package/dist/_chunks/{tasks-panel-Bc_odkQN.js → tasks-panel-BdxHb-fX.js} +2 -2
  89. package/dist/_chunks/{tool-rail-CJBtqzMs.js → tool-rail-C_Ay0Gxi.js} +260 -256
  90. package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
  91. package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
  92. package/dist/_chunks/{treatment-receipt-B6m47Jie.js → treatment-receipt-CZQV1NkJ.js} +45 -46
  93. package/dist/_chunks/{use-appointment-details-read-HVHbR0Zl.js → use-appointment-details-read-BR3TQOHx.js} +878 -809
  94. package/dist/_chunks/user-round-DZxRG9zq.js +15 -0
  95. package/dist/_chunks/{week-availability-D0tTll4q.js → week-availability-D00rMjsX.js} +2 -2
  96. package/dist/_chunks/{workflow-map-F7OThorL.js → workflow-map-DLUTUZ27.js} +2 -2
  97. package/dist/agent-catalog.json +1 -1
  98. package/dist/appointment-editor-panel/index.js +3 -3
  99. package/dist/booking-tools-data/index.js +1 -1
  100. package/dist/browser-support.js +1 -1
  101. package/dist/calendar-action-buttons/index.js +1 -1
  102. package/dist/components/_shared/mark-adrift.d.ts +12 -0
  103. package/dist/components/_shared/safe-html.d.ts +6 -0
  104. package/dist/components/_shared/tooth-chip.d.ts +21 -0
  105. package/dist/components/address-autocomplete/index.js +1 -1
  106. package/dist/components/address-fields/index.js +1 -1
  107. package/dist/components/agenda-tray/index.js +1 -1
  108. package/dist/components/ai-summary-panel/index.js +1 -1
  109. package/dist/components/anamnesis-card/index.js +1 -1
  110. package/dist/components/app-frame/index.js +1 -1
  111. package/dist/components/appointment-card/appointment-card.d.ts +5 -1
  112. package/dist/components/appointment-card/index.js +2 -2
  113. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +9 -2
  114. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +9 -2
  115. package/dist/components/appointment-details-panel/description-length.d.ts +18 -0
  116. package/dist/components/appointment-details-panel/index.d.ts +1 -0
  117. package/dist/components/appointment-details-panel/index.js +7 -6
  118. package/dist/components/appointment-peek/index.js +1 -1
  119. package/dist/components/appointment-timeline/index.js +1 -1
  120. package/dist/components/bill-line-table/index.js +1 -1
  121. package/dist/components/bill-table/index.js +1 -1
  122. package/dist/components/booking/index.js +1 -1
  123. package/dist/components/calls-panel/index.js +1 -1
  124. package/dist/components/communications-panel/index.js +1 -1
  125. package/dist/components/connection-status/index.js +1 -1
  126. package/dist/components/control-room-rail/control-room-rail.d.ts +24 -0
  127. package/dist/components/control-room-rail/index.js +1 -1
  128. package/dist/components/data-grid/index.js +2 -2
  129. package/dist/components/data-table/index.js +3 -3
  130. package/dist/components/description-list/index.js +1 -1
  131. package/dist/components/dev-bypass-button/index.js +1 -1
  132. package/dist/components/document-preview/index.js +1 -1
  133. package/dist/components/empty-state/index.js +1 -1
  134. package/dist/components/error-boundary/index.js +1 -1
  135. package/dist/components/face-scheme/index.js +1 -1
  136. package/dist/components/feature-preview-switch/index.js +1 -1
  137. package/dist/components/file-manager/index.js +1 -1
  138. package/dist/components/heatmap/index.js +1 -1
  139. package/dist/components/info-tip/index.js +1 -1
  140. package/dist/components/invoice-upload-list/index.js +1 -1
  141. package/dist/components/map-view/index.js +1 -1
  142. package/dist/components/message-tray/index.js +1 -1
  143. package/dist/components/note-timeline/index.js +1 -1
  144. package/dist/components/note-timeline/note-timeline.d.ts +8 -0
  145. package/dist/components/notes-panel/index.js +1 -1
  146. package/dist/components/notes-panel/notes-panel.d.ts +18 -7
  147. package/dist/components/notification-tray/index.js +1 -1
  148. package/dist/components/optical-prescription/index.js +1 -1
  149. package/dist/components/panel-subview/index.js +1 -1
  150. package/dist/components/patient-details/index.js +1 -1
  151. package/dist/components/patient-summary-card/index.js +1 -1
  152. package/dist/components/patient-table/index.js +1 -1
  153. package/dist/components/payment-card/index.js +1 -1
  154. package/dist/components/practice-results/index.js +1 -1
  155. package/dist/components/product-hub-tray/index.js +1 -1
  156. package/dist/components/public-header/index.js +1 -1
  157. package/dist/components/radiograph-panel/index.js +1 -1
  158. package/dist/components/registry-connection-panel/index.js +1 -1
  159. package/dist/components/reviews-panel/index.js +1 -1
  160. package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -6
  161. package/dist/components/rich-text-editor/index.d.ts +1 -1
  162. package/dist/components/rich-text-editor/index.js +1 -1
  163. package/dist/components/rich-text-editor/link-bar.d.ts +8 -0
  164. package/dist/components/rich-text-editor/rich-text-editor.d.ts +25 -3
  165. package/dist/components/scroll-area/index.js +1 -1
  166. package/dist/components/scroll-area/scroll-area.d.ts +6 -0
  167. package/dist/components/sheet/index.js +1 -1
  168. package/dist/components/sidebar/index.js +1 -1
  169. package/dist/components/slot-grid/index.js +1 -1
  170. package/dist/components/sync-tray/index.js +1 -1
  171. package/dist/components/task-editor/index.js +1 -1
  172. package/dist/components/task-tray/index.js +1 -1
  173. package/dist/components/tasks-panel/index.js +1 -1
  174. package/dist/components/tool-rail/index.js +1 -1
  175. package/dist/components/tool-rail/tool-rail.d.ts +14 -0
  176. package/dist/components/treatment-receipt/index.js +1 -1
  177. package/dist/components/treatment-receipt/treatment-receipt.d.ts +6 -1
  178. package/dist/components/week-availability/index.js +1 -1
  179. package/dist/components/workflow/index.js +1 -1
  180. package/dist/core.css +1 -1
  181. package/dist/find-free-slots-panel/index.js +1 -1
  182. package/dist/host-compat.css +4 -1
  183. package/dist/host-legacy.css +13 -1
  184. package/dist/i18n/locales/ar.d.ts +9 -0
  185. package/dist/i18n/locales/ar.js +11 -2
  186. package/dist/i18n/locales/de.d.ts +9 -0
  187. package/dist/i18n/locales/de.js +11 -2
  188. package/dist/i18n/locales/el.d.ts +9 -0
  189. package/dist/i18n/locales/el.js +11 -2
  190. package/dist/i18n/locales/en.d.ts +9 -0
  191. package/dist/i18n/locales/en.js +10 -1
  192. package/dist/i18n/locales/es.d.ts +9 -0
  193. package/dist/i18n/locales/es.js +11 -2
  194. package/dist/i18n/locales/fr.d.ts +9 -0
  195. package/dist/i18n/locales/fr.js +11 -2
  196. package/dist/i18n/locales/hi.d.ts +9 -0
  197. package/dist/i18n/locales/hi.js +11 -2
  198. package/dist/i18n/locales/it.d.ts +9 -0
  199. package/dist/i18n/locales/it.js +11 -2
  200. package/dist/i18n/locales/ja.d.ts +9 -0
  201. package/dist/i18n/locales/ja.js +11 -2
  202. package/dist/i18n/locales/nl.d.ts +9 -0
  203. package/dist/i18n/locales/nl.js +11 -2
  204. package/dist/i18n/locales/pl.d.ts +9 -0
  205. package/dist/i18n/locales/pl.js +11 -2
  206. package/dist/i18n/locales/pt.d.ts +9 -0
  207. package/dist/i18n/locales/pt.js +11 -2
  208. package/dist/i18n/locales/ro.d.ts +9 -0
  209. package/dist/i18n/locales/ro.js +11 -2
  210. package/dist/i18n/locales/ru.d.ts +9 -0
  211. package/dist/i18n/locales/ru.js +11 -2
  212. package/dist/i18n/locales/sq.d.ts +9 -0
  213. package/dist/i18n/locales/sq.js +11 -2
  214. package/dist/i18n/locales/sv.d.ts +9 -0
  215. package/dist/i18n/locales/sv.js +11 -2
  216. package/dist/i18n/locales/tr.d.ts +9 -0
  217. package/dist/i18n/locales/tr.js +11 -2
  218. package/dist/i18n/locales/zh.d.ts +9 -0
  219. package/dist/i18n/locales/zh.js +11 -2
  220. package/dist/index.js +818 -817
  221. package/dist/locales/ar.json +11 -2
  222. package/dist/locales/de.json +11 -2
  223. package/dist/locales/el.json +11 -2
  224. package/dist/locales/en.json +10 -1
  225. package/dist/locales/es.json +11 -2
  226. package/dist/locales/fr.json +11 -2
  227. package/dist/locales/hi.json +11 -2
  228. package/dist/locales/it.json +11 -2
  229. package/dist/locales/ja.json +11 -2
  230. package/dist/locales/nl.json +11 -2
  231. package/dist/locales/pl.json +11 -2
  232. package/dist/locales/pt.json +11 -2
  233. package/dist/locales/ro.json +11 -2
  234. package/dist/locales/ru.json +11 -2
  235. package/dist/locales/sq.json +11 -2
  236. package/dist/locales/sv.json +11 -2
  237. package/dist/locales/tr.json +11 -2
  238. package/dist/locales/zh.json +11 -2
  239. package/dist/online-bookings-panel/index.js +2 -2
  240. package/dist/patterns/alia-assistant/index.js +1 -1
  241. package/dist/patterns/anamnesis/index.js +1 -1
  242. package/dist/patterns/calendar/index.js +4 -4
  243. package/dist/patterns/error-page/index.js +2 -2
  244. package/dist/patterns/help-me-write-templates/index.js +1 -1
  245. package/dist/patterns/login-form/index.js +1 -1
  246. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  247. package/dist/patterns/patient-account-settings/index.js +1 -1
  248. package/dist/patterns/patient-check-in/index.js +1 -1
  249. package/dist/patterns/patient-portal/index.js +2 -2
  250. package/dist/patterns/prescription/index.js +1 -1
  251. package/dist/patterns/registration-form/index.js +1 -1
  252. package/dist/patterns/signed-out-frame/index.js +1 -1
  253. package/dist/patterns/signing/index.js +1 -1
  254. package/dist/redactor.css +9 -0
  255. package/dist/safe-html/index.js +33 -19
  256. package/dist/tokens.css +61 -52
  257. package/dist/waiting-list-panel/index.js +3 -3
  258. package/package.json +1 -1
  259. package/dist/_chunks/appointment-peek-CGJ6kUvM.js +0 -213
  260. package/dist/_chunks/control-room-rail-4W1MFY-g.js +0 -416
  261. package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
  262. package/dist/_chunks/rich-text-editor-DCQEpaIv.js +0 -4523
  263. /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
@@ -1,32 +1,32 @@
1
1
  import { jsxs as I, jsx as n, Fragment as Sn } from "react/jsx-runtime";
2
- import { useState as _, useMemo as B, useRef as $, useEffect as G, useCallback as m, Fragment as Vs, useLayoutEffect as Qa } from "react";
2
+ import { useState as _, useMemo as B, useRef as $, useEffect as V, useCallback as m, Fragment as Vs, useLayoutEffect as Qa } from "react";
3
3
  import { useTranslation as gt } from "react-i18next";
4
4
  import { u as js } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
5
5
  import { C as Ys, b as Xs, a as Js } from "./collapsible-DVPM46bq.js";
6
- import { A as Zs } from "./appointment-timeline-ynFqcw0S.js";
6
+ import { A as Zs } from "./appointment-timeline-B9KRurfc.js";
7
7
  import { a as Qs } from "./workflow-status-Cg7yjnye.js";
8
8
  import { A as qa, g as ei } from "./avatar-Dp5apm1d.js";
9
9
  import { B as Br } from "./badge-BUk4RjTS.js";
10
10
  import { S as es, C as ti } from "./skeleton-tTWJpvAq.js";
11
11
  import { u as Cr, a as ni, C as As, c as ri, E as Ws } from "./calendar-editor-guard-9fShhNIA.js";
12
- import { ag as ai, ah as si, ai as ii, v as oi, aj as ci, ak as ts, al as ns, S as li, am as rs, an as as, I as vr, W as y, ao as di, u as ra, ap as ss, C as kr, aq as ui, ar as pi, m as Os, as as is, at as mi, au as hi, av as fi, y as os, K as Pr, aw as vi, ax as gi, ay as ki, az as cs, aA as Ci, aB as Ii, aC as bi, aD as ls, aE as yi, aF as Di, aG as Ti, aH as Ni, aI as wi, aJ as Ei, aK as ya, h as Si, aL as Lr, aM as Ls, aN as Ka, aO as $a, aP as xi, M as ds, aQ as us, X as Qr, aR as ga, aS as ea, aT as Ta, aU as Ga, aV as Ai, a7 as ps, aW as Wi, aX as Oi, aY as Li, aZ as Fi, aa as Ra, ab as Bi, b as ms, a_ as Pi, p as Va, O as hs, a$ as _i, R as Fs, b0 as $i, a3 as fs, q as Ri, b1 as Bs, a as ja, c as zi, b2 as Ps, b3 as Hi, b4 as Ui, b5 as Ya, o as Mi, b6 as qi, b7 as Ki, b8 as Gi, b9 as Vi } from "./calendar-workspace.model-X3aXbDTo.js";
12
+ import { ag as ai, ah as si, ai as ii, v as oi, aj as ci, ak as ts, al as ns, S as li, am as rs, an as as, I as vr, W as y, ao as di, u as ra, ap as ss, C as kr, aq as ui, ar as pi, m as Os, as as is, at as mi, au as hi, av as fi, y as os, K as Pr, aw as vi, ax as gi, ay as ki, az as cs, aA as Ci, aB as Ii, aC as bi, aD as ls, aE as yi, aF as Di, aG as Ti, aH as Ni, aI as wi, aJ as Ei, aK as ya, h as Si, aL as Lr, aM as Ls, aN as Ka, aO as $a, aP as xi, M as ds, aQ as us, X as Qr, aR as ga, aS as ea, aT as Ta, aU as Ga, aV as Ai, a7 as ps, aW as Wi, aX as Oi, aY as Li, aZ as Fi, aa as Ra, ab as Bi, b as ms, a_ as Pi, p as Va, O as hs, a$ as _i, R as Fs, b0 as $i, a3 as fs, q as Ri, b1 as Bs, a as ja, c as zi, b2 as Ps, b3 as Ui, b4 as Hi, b5 as Ya, o as Mi, b6 as qi, b7 as Ki, b8 as Gi, b9 as Vi } from "./calendar-workspace.model-BulUpy0I.js";
13
13
  import { S as ji } from "./stethoscope-sZXGC43m.js";
14
14
  import { C as _s } from "./chevron-down-DWE7GSq9.js";
15
15
  import { a as Yi } from "./entity-card-p-LANpYt.js";
16
- import { T as Xi } from "./task-editor-CIHQQRtP.js";
17
- import { C as Ji, u as Na, a as Zi, d as Qi } from "./control-room-rail-4W1MFY-g.js";
18
- import { S as $s } from "./scroll-area-CY5SLYNw.js";
16
+ import { T as Xi } from "./task-editor-aXjGMwYA.js";
17
+ import { C as Ji, u as Na, a as Zi, d as Qi } from "./control-room-rail-C-3o1e0e.js";
18
+ import { S as $s } from "./scroll-area-RQtcKkHf.js";
19
19
  import { A as eo, u as to } from "./app-frame-context-CPszhDDb.js";
20
20
  import { u as no } from "./use-media-query-CcAx5SMM.js";
21
21
  import { c as vs, a as ro, d as hn, b as fn } from "./toast-Cgmh1cvj.js";
22
22
  import { T as za, a as Rs } from "./tooltip-uEBdD1-5.js";
23
- import { d as ao, e as so, f as gs, c as io, r as oo, g as co, u as lo } from "./calendar-editor-discard-host-DO506cJu.js";
24
- import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-HVHbR0Zl.js";
25
- import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Hs } from "./calendar.sheets-C8x8kPb4.js";
23
+ import { d as ao, e as so, f as gs, c as io, r as oo, g as co, u as lo } from "./calendar-editor-discard-host-BudLsUZO.js";
24
+ import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-BR3TQOHx.js";
25
+ import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Us } from "./calendar.sheets-OmTiQdCg.js";
26
26
  import { B as Ve } from "./button-Dp4j9ygh.js";
27
27
  import { D as te } from "./dialog-239Geb7Z.js";
28
28
  import { R as Ja } from "./radio-BZQs6_36.js";
29
- import { R as Us } from "./radio-group-ChIKyeSJ.js";
29
+ import { R as Hs } from "./radio-group-ChIKyeSJ.js";
30
30
  import { V as Da } from "./visually-hidden-BHxEUGyT.js";
31
31
  import { A as xn } from "./alert-C4WKViaS.js";
32
32
  import { C as bo } from "./calendar-DDTWUYnw.js";
@@ -43,12 +43,12 @@ import { D as bs } from "./date-picker-CD-PBzXM.js";
43
43
  import { D as Qt } from "./dropdown-menu-Bm1KALnk.js";
44
44
  import { F as wo } from "./form-field-CyHfOVKF.js";
45
45
  import { P as Tt } from "./popover-C9O7my6h.js";
46
- import { A as Eo } from "./appointment-peek-CGJ6kUvM.js";
46
+ import { A as Eo } from "./appointment-peek-CmQM4wvx.js";
47
47
  import { H as na } from "./hover-card-CS8ulBf9.js";
48
48
  import { CalendarActionButtonGroups as So, ACCESSIBLE_TARGET_SQUARE_CLASS as rr, ACCESSIBLE_TARGET_CLASS as ys } from "../calendar-action-buttons/index.js";
49
- import { f as _r, b as gr, I as xo, s as Ao } from "./appointment-details-panel.identity-C9kWtC6m.js";
49
+ import { f as _r, b as gr, I as xo, s as Ao } from "./appointment-details-panel.identity-9hRo85Lx.js";
50
50
  import { createPortal as Wo } from "react-dom";
51
- import { D as Oo } from "./data-table-DFAYYsSc.js";
51
+ import { D as Oo } from "./data-table-CgpHO6EZ.js";
52
52
  import { E as Lo } from "./eye-off-C_4xkbRP.js";
53
53
  import { E as Fo } from "./eye-BjhN2nYf.js";
54
54
  import { P as Ds } from "./printer-rkK0T1gi.js";
@@ -58,11 +58,11 @@ import { U as Po } from "./user-cog-BTn98Arm.js";
58
58
  import { R as _o } from "./rotate-ccw-BBQnIVTr.js";
59
59
  import { C as $o } from "./chevron-left-B8cOyH-V.js";
60
60
  import { C as Ro } from "./chevron-right-I9AeSxH2.js";
61
- import { W as zo } from "./calendar-waiting-list-panel-CyMTv2y3.js";
62
- import { C as Ho } from "./calendar-days-BGWklvE-.js";
63
- import { C as Ha } from "./calendar-clock-hbObjfGY.js";
64
- import { P as Ia } from "./privacy-mask-CrjD5PYW.js";
65
- import { S as Uo } from "./square-check-big-dj0o8yA3.js";
61
+ import { W as zo } from "./calendar-waiting-list-panel-DukgSOPH.js";
62
+ import { C as Uo } from "./calendar-days-BGWklvE-.js";
63
+ import { C as Ua } from "./calendar-clock-hbObjfGY.js";
64
+ import { P as Ia } from "./privacy-mask-CaLBAxzj.js";
65
+ import { S as Ho } from "./square-check-big-dj0o8yA3.js";
66
66
  import { C as Mo } from "./calendar-plus-BFrIRE4r.js";
67
67
  import { L as qo, C as Ko } from "./list-todo-KWvUhmT_.js";
68
68
  import { H as Ts } from "./hourglass-BEAzW1wE.js";
@@ -77,7 +77,7 @@ function jo(r) {
77
77
  const s = $({ iso: r, wallMs: Date.now() });
78
78
  s.current.iso !== r && (s.current = { iso: r, wallMs: Date.now() });
79
79
  const [, i] = _(0);
80
- G(() => {
80
+ V(() => {
81
81
  var k;
82
82
  let g;
83
83
  const b = () => {
@@ -121,7 +121,7 @@ function Zo({
121
121
  stateSinceByEventId: g,
122
122
  loading: b = !1
123
123
  }) {
124
- const { t: p } = gt("ui"), N = Cr(), [k, l] = _(ai), le = jo(N.nowIso).getTime(), V = ws(N.nowIso), xe = p(
124
+ const { t: p } = gt("ui"), N = Cr(), [k, l] = _(ai), le = jo(N.nowIso).getTime(), j = ws(N.nowIso), xe = p(
125
125
  "calendarWorkspace.details.patientNotLoaded"
126
126
  ), se = B(
127
127
  () => si(
@@ -137,15 +137,15 @@ function Zo({
137
137
  )
138
138
  ),
139
139
  [r, k, i, N, xe, p]
140
- ), U = B(
141
- () => se.filter((x) => ws(x.startIso) === V),
142
- [se, V]
140
+ ), H = B(
141
+ () => se.filter((x) => ws(x.startIso) === j),
142
+ [se, j]
143
143
  ), Be = B(
144
- () => U.filter((x) => x.state === "waiting" || x.state === "in_care").sort((x, Z) => +new Date(x.startIso) - +new Date(Z.startIso)).map((x) => ({
144
+ () => H.filter((x) => x.state === "waiting" || x.state === "in_care").sort((x, Z) => +new Date(x.startIso) - +new Date(Z.startIso)).map((x) => ({
145
145
  item: x,
146
146
  sinceIso: g == null ? void 0 : g[x.id]
147
147
  })),
148
- [U, g]
148
+ [H, g]
149
149
  ), Ne = B(
150
150
  () => new Set(Be.map((x) => x.item.id)),
151
151
  [Be]
@@ -180,7 +180,7 @@ function Zo({
180
180
  )
181
181
  }) }) : null,
182
182
  /* @__PURE__ */ n(Br, { variant: "neutral", size: "sm", children: p("calendarWorkspace.inc1.rail.upcomingSummaryToday", {
183
- n: U.length
183
+ n: H.length
184
184
  }) })
185
185
  ]
186
186
  }
@@ -233,7 +233,7 @@ function Zo({
233
233
  className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-xs)] ds:p-0 ds:pb-[var(--spacing-2xs)]",
234
234
  children: Be.map(({ item: x, sinceIso: Z }) => {
235
235
  var ue;
236
- const he = x.state ?? "waiting", Nt = Yi(he), j = Nt.Icon, K = p(`appointmentCard.state.${he}`), re = Z ? Xo(new Date(Z).getTime(), le, s) : void 0;
236
+ const he = x.state ?? "waiting", Nt = Yi(he), Y = Nt.Icon, K = p(`appointmentCard.state.${he}`), re = Z ? Xo(new Date(Z).getTime(), le, s) : void 0;
237
237
  return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ I(
238
238
  "button",
239
239
  {
@@ -269,7 +269,7 @@ function Zo({
269
269
  elapsed: re
270
270
  }
271
271
  ) : K,
272
- icon: /* @__PURE__ */ n(j, { "aria-hidden": "true" }),
272
+ icon: /* @__PURE__ */ n(Y, { "aria-hidden": "true" }),
273
273
  tone: Nt.tone
274
274
  }
275
275
  }
@@ -391,7 +391,7 @@ function ec({
391
391
  /* @__PURE__ */ n(te.Description, { children: s("calendarWorkspace.details.documentScope.body") })
392
392
  ] }),
393
393
  /* @__PURE__ */ n(te.Body, { children: /* @__PURE__ */ I(
394
- Us,
394
+ Hs,
395
395
  {
396
396
  label: s("calendarWorkspace.details.documentScope.label"),
397
397
  value: i,
@@ -490,10 +490,10 @@ function sc({
490
490
  onMove: l,
491
491
  onCopy: P,
492
492
  onDelete: le,
493
- deleteConfirm: V,
493
+ deleteConfirm: j,
494
494
  onDeleteInitiated: xe,
495
495
  onDocumentCreateClicked: se,
496
- onDetailsActionUsed: U,
496
+ onDetailsActionUsed: H,
497
497
  onStatusChange: Be,
498
498
  onDescriptionChange: Ne,
499
499
  mapsLink: O,
@@ -503,7 +503,7 @@ function sc({
503
503
  locale: J
504
504
  }) {
505
505
  var wt;
506
- const Z = Cr(), { appointment: he } = r, [Nt, j] = _(!1), [K, re] = _(), ue = $(null), it = (w) => (ce) => {
506
+ const Z = Cr(), { appointment: he } = r, [Nt, Y] = _(!1), [K, re] = _(), ue = $(null), it = (w) => (ce) => {
507
507
  const fe = (Vt) => {
508
508
  var Et;
509
509
  return [
@@ -511,7 +511,7 @@ function sc({
511
511
  ].find((oe) => !oe.closest("[inert]"));
512
512
  }, Ye = fe(`[data-action="${w}"]`) ?? fe('button[aria-haspopup="menu"]:has(svg.lucide-ellipsis)');
513
513
  Ye && (ce.preventDefault(), Ye.focus());
514
- }, Ie = (w) => U == null ? void 0 : U({ action: w }), je = (w) => {
514
+ }, Ie = (w) => H == null ? void 0 : H({ action: w }), je = (w) => {
515
515
  const ce = w.target.closest(
516
516
  "a[data-action]"
517
517
  );
@@ -521,7 +521,7 @@ function sc({
521
521
  }, Oe = Z.operators.find((w) => w.id === he.operatorId), en = Z.chairs.find((w) => w.id === he.chairId), Q = i && s ? s : void 0, Te = Q !== void 0 && !S, _e = $(i);
522
522
  _e.current = i;
523
523
  const Bt = !!(i != null && i.onLoad);
524
- return G(() => {
524
+ return V(() => {
525
525
  var ce;
526
526
  const w = _e.current;
527
527
  Te && w && w.notes.length === 0 && w.status !== "loading" && w.complete !== !0 && ((ce = w.onLoad) == null || ce.call(w, "preview"));
@@ -569,7 +569,7 @@ function sc({
569
569
  P(w), Ie("copy");
570
570
  }),
571
571
  onDelete: le && (() => {
572
- xe == null || xe(), j(!0);
572
+ xe == null || xe(), Y(!0);
573
573
  }),
574
574
  onJoinTelehealth: r.onJoinTelehealth && (() => {
575
575
  var w;
@@ -630,9 +630,9 @@ function sc({
630
630
  po,
631
631
  {
632
632
  open: Nt,
633
- onOpenChange: j,
634
- scopes: V == null ? void 0 : V.scopes,
635
- offersCarePlanCleanup: V == null ? void 0 : V.offersCarePlanCleanup,
633
+ onOpenChange: Y,
634
+ scopes: j == null ? void 0 : j.scopes,
635
+ offersCarePlanCleanup: j == null ? void 0 : j.offersCarePlanCleanup,
636
636
  onCloseAutoFocus: it("delete-appointment"),
637
637
  onConfirm: async (w) => {
638
638
  await le(w), Ie("delete");
@@ -650,7 +650,7 @@ function ic({
650
650
  request: v
651
651
  }) {
652
652
  const [g, b] = _(i), p = $(null);
653
- return G(() => {
653
+ return V(() => {
654
654
  var N, k;
655
655
  i && (b(!0), (N = p.current) != null && N.contains(document.activeElement) || (k = p.current) == null || k.focus());
656
656
  }, [i, v]), /* @__PURE__ */ I(Sn, { children: [
@@ -672,7 +672,7 @@ function oc({
672
672
  patientId: r,
673
673
  onChange: s
674
674
  }) {
675
- return G(() => {
675
+ return V(() => {
676
676
  s(r);
677
677
  }, [r, s]), null;
678
678
  }
@@ -778,7 +778,7 @@ const qs = {
778
778
  done: "--calendar-status-done",
779
779
  cancelled: "--calendar-status-cancelled",
780
780
  absent: "--calendar-status-absent"
781
- }, Ks = Object.keys(qs), Ua = (r) => Math.round(r).toString(16).padStart(2, "0");
781
+ }, Ks = Object.keys(qs), Ha = (r) => Math.round(r).toString(16).padStart(2, "0");
782
782
  function uc(r, s) {
783
783
  if (!getComputedStyle(r).getPropertyValue(s).trim())
784
784
  return;
@@ -787,7 +787,7 @@ function uc(r, s) {
787
787
  const v = getComputedStyle(i).color;
788
788
  i.remove();
789
789
  const g = /^rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/.exec(v);
790
- return g ? `#${Ua(+g[1])}${Ua(+g[2])}${Ua(+g[3])}` : void 0;
790
+ return g ? `#${Ha(+g[1])}${Ha(+g[2])}${Ha(+g[3])}` : void 0;
791
791
  }
792
792
  function pc(r) {
793
793
  if (!r || typeof getComputedStyle > "u") return null;
@@ -806,7 +806,7 @@ const mc = [
806
806
  ], hc = (r, s) => r === s || !!r && !!s && Ks.every((i) => r[i] === s[i]);
807
807
  function fc(r, s) {
808
808
  const [i, v] = _(null);
809
- return G(() => {
809
+ return V(() => {
810
810
  const g = s.current;
811
811
  if (!r || !g) return;
812
812
  const b = () => {
@@ -970,13 +970,13 @@ function yc({
970
970
  return (S = ve.data) != null && S.status ? l(li[ve.data.status]) : "";
971
971
  }
972
972
  }), O;
973
- }, [i, p, k, l, N]), V = i === "none" ? 2 : 1, xe = B(
973
+ }, [i, p, k, l, N]), j = i === "none" ? 2 : 1, xe = B(
974
974
  () => ({
975
975
  domLayout: "print",
976
976
  suppressColumnVirtualisation: !0,
977
977
  suppressCellFocus: !0,
978
978
  getRowId: (O) => O.data.id,
979
- getRowHeight: (O) => O.data ? as(O.data, V) : null,
979
+ getRowHeight: (O) => O.data ? as(O.data, j) : null,
980
980
  defaultColDef: {
981
981
  sortable: !1,
982
982
  resizable: !1,
@@ -988,10 +988,10 @@ function yc({
988
988
  headerClass: rs
989
989
  }
990
990
  }),
991
- [V]
991
+ [j]
992
992
  );
993
993
  if (typeof document > "u") return null;
994
- const se = v.length >= N.chairs.length ? k(P("allChairs")) : N.chairs.filter((O) => v.includes(O.id)).map((O) => O.title).join(", "), U = mo(N), Be = g.length >= U.length ? k(P("allOperators")) : U.filter((O) => g.includes(O.id)).map((O) => O.title).join(", "), Ne = (O) => {
994
+ const se = v.length >= N.chairs.length ? k(P("allChairs")) : N.chairs.filter((O) => v.includes(O.id)).map((O) => O.title).join(", "), H = mo(N), Be = g.length >= H.length ? k(P("allOperators")) : H.filter((O) => g.includes(O.id)).map((O) => O.title).join(", "), Ne = (O) => {
995
995
  var ve;
996
996
  switch (O.kind) {
997
997
  case "closed":
@@ -1058,7 +1058,7 @@ function yc({
1058
1058
  gridId: `print-${S}-${J.id}`,
1059
1059
  gridOptions: xe
1060
1060
  },
1061
- J.rows.map((x) => as(x, V)).join(".")
1061
+ J.rows.map((x) => as(x, j)).join(".")
1062
1062
  )
1063
1063
  )
1064
1064
  ]
@@ -1107,10 +1107,10 @@ function Sc({
1107
1107
  onOpenWaitingList: l,
1108
1108
  onAddWaitingEntry: P,
1109
1109
  onOpenOnlineBookings: le,
1110
- onlineBookingsCount: V,
1110
+ onlineBookingsCount: j,
1111
1111
  waitingBadgeCount: xe,
1112
1112
  onVisibleRangeChange: se,
1113
- onRetryLoad: U,
1113
+ onRetryLoad: H,
1114
1114
  selectedEventId: Be,
1115
1115
  gotoRequest: Ne,
1116
1116
  onBookSlot: O,
@@ -1122,7 +1122,7 @@ function Sc({
1122
1122
  readOnly: Z = !1,
1123
1123
  reviewOnlyEventIds: he,
1124
1124
  detailsOnEveryClick: Nt = !1,
1125
- gridHeld: j = !1,
1125
+ gridHeld: Y = !1,
1126
1126
  placement: K = null,
1127
1127
  onPlacementEnd: re,
1128
1128
  createMode: ue = null,
@@ -1147,16 +1147,16 @@ function Sc({
1147
1147
  initialView: jt,
1148
1148
  onNavigate: vn,
1149
1149
  onPeekOpen: tn,
1150
- settingsBridge: He,
1150
+ settingsBridge: Ue,
1151
1151
  settingsOpen: gn = !1,
1152
1152
  onToggleSettings: sr,
1153
- onSettingChanged: Ue,
1153
+ onSettingChanged: He,
1154
1154
  onHoursOpened: kn,
1155
1155
  practiceSettings: St,
1156
1156
  onMoveDropped: xt,
1157
1157
  onPrintUsed: An,
1158
1158
  onJumpToDateUsed: zn,
1159
- calendarArchive: Hn,
1159
+ calendarArchive: Un,
1160
1160
  prompts: Cn
1161
1161
  }) {
1162
1162
  var fa;
@@ -1168,13 +1168,13 @@ function Sc({
1168
1168
  ),
1169
1169
  [_e]
1170
1170
  ), f = Cr(), { t: ot } = gt("ui"), { open: Wn } = ho(), D = (e) => `calendarWorkspace.${e}`, L = (e) => `calendarWorkspace.inc1.${e}`, et = $(null), [ee, ct] = _(null);
1171
- G(() => {
1171
+ V(() => {
1172
1172
  if (!ee) return;
1173
1173
  const e = new MutationObserver(() => {
1174
1174
  ee.el.isConnected || ct(null);
1175
1175
  }), c = ee.el.closest('[data-component="calendar"]');
1176
1176
  return c && e.observe(c, { childList: !0, subtree: !0 }), () => e.disconnect();
1177
- }, [ee]), G(
1177
+ }, [ee]), V(
1178
1178
  () => ct(null),
1179
1179
  [Q, S.resourceKind, S.orientation]
1180
1180
  );
@@ -1213,7 +1213,7 @@ function Sc({
1213
1213
  initialFocus: Te != null && Te.patientId ? "operator" : "patient"
1214
1214
  }), Wn("appointment-editor");
1215
1215
  }, nn = On.length === 1 ? On[0] : void 0, Wt = $(At);
1216
- Wt.current = At, G(() => {
1216
+ Wt.current = At, V(() => {
1217
1217
  nn && !Z && Wt.current(nn);
1218
1218
  }, [nn, Z]);
1219
1219
  const lt = $(null), Yt = fc(
@@ -1252,9 +1252,9 @@ function Sc({
1252
1252
  () => [],
1253
1253
  fi(f),
1254
1254
  w
1255
- ), Me = Hn !== void 0, [or, cr] = _("week"), [Y, Ae] = _(
1255
+ ), Me = Un !== void 0, [or, cr] = _("week"), [X, Ae] = _(
1256
1256
  () => ss(jt)
1257
- ), Pe = Me ? or : Y ?? Ir, qe = m(
1257
+ ), Pe = Me ? or : X ?? Ir, qe = m(
1258
1258
  (e) => {
1259
1259
  if (Me) {
1260
1260
  cr(e);
@@ -1265,7 +1265,7 @@ function Sc({
1265
1265
  [Me, ir]
1266
1266
  ), Ke = Me ? xs : br, Xe = Me ? xs : Fn, It = Z || Me, rn = (e) => en(e(Oe)), [We, tt] = _(
1267
1267
  () => os(f.initialDateIso, f.nowIso)
1268
- ), nt = $(We), [Un, an] = _(We), [sn, Bn] = _(!0), [ut, lr] = _(!1), [Mn, qn] = _(!1), [In, bn] = _(!1), [Pn, Zt] = _(!1), [yn, Dn] = _(
1268
+ ), nt = $(We), [Hn, an] = _(We), [sn, Bn] = _(!0), [ut, lr] = _(!1), [Mn, qn] = _(!1), [In, bn] = _(!1), [Pn, Zt] = _(!1), [yn, Dn] = _(
1269
1269
  () => os(f.initialDateIso, f.nowIso)
1270
1270
  ), [_t, Tn] = _(!1), [dr, ur] = _(""), [M, Le] = _(null), [A, bt] = _(null), [Ot, on] = _(null), [$t, Lt] = _(!1), [ge, Kn] = _(!1), [pr, yt] = _(""), [ke, Rt] = _("this"), _n = $(0), zt = m(
1271
1271
  (e) => {
@@ -1276,13 +1276,13 @@ function Sc({
1276
1276
  ), Gn = m(
1277
1277
  (e, c, h) => fe !== void 0 && Pr(e.patientId, f).assigned && (!c || h === "this"),
1278
1278
  [f, fe]
1279
- ), cn = $(null), [Ht, yr] = _(null), Vn = m((e) => {
1279
+ ), cn = $(null), [Ut, yr] = _(null), Vn = m((e) => {
1280
1280
  const c = cn.current;
1281
1281
  if (!c) return !1;
1282
1282
  const h = e.getTime();
1283
1283
  return h >= c.start && h < c.end;
1284
1284
  }, []);
1285
- G(() => {
1285
+ V(() => {
1286
1286
  var e;
1287
1287
  Ne && !Vn(Ne.date) && ((e = et.current) == null || e.gotoDate(Ne.date));
1288
1288
  }, [Ne, Vn]);
@@ -1300,12 +1300,12 @@ function Sc({
1300
1300
  () => gi(
1301
1301
  r,
1302
1302
  f.inactiveOperatorIds,
1303
- Ht ? {
1304
- start: Ht.start.getTime(),
1305
- end: Ht.end.getTime()
1303
+ Ut ? {
1304
+ start: Ut.start.getTime(),
1305
+ end: Ut.end.getTime()
1306
1306
  } : null
1307
1307
  ),
1308
- [r, Ht, f]
1308
+ [r, Ut, f]
1309
1309
  ), mr = B(
1310
1310
  () => ki({
1311
1311
  operators: f.operators,
@@ -1314,7 +1314,7 @@ function Sc({
1314
1314
  keepIds: jn
1315
1315
  }),
1316
1316
  [ut, jn, f]
1317
- ), Ut = B(
1317
+ ), Ht = B(
1318
1318
  () => cs(Ke, ln),
1319
1319
  [Ke, ln]
1320
1320
  ), Mt = B(
@@ -1322,15 +1322,15 @@ function Sc({
1322
1322
  [Xe, mr]
1323
1323
  ), { loadingDates: Dr, errorDates: Yn } = B(() => {
1324
1324
  const e = f.dayLoadState;
1325
- if (!e || !Ht)
1325
+ if (!e || !Ut)
1326
1326
  return { loadingDates: void 0, errorDates: void 0 };
1327
- const c = [], h = [], T = new Date(Ht.start);
1328
- for (T.setHours(0, 0, 0, 0); T.getTime() < Ht.end.getTime(); ) {
1327
+ const c = [], h = [], T = new Date(Ut.start);
1328
+ for (T.setHours(0, 0, 0, 0); T.getTime() < Ut.end.getTime(); ) {
1329
1329
  const C = vr(T);
1330
1330
  e[C] === "error" ? Ct.includes(T.getDay()) || h.push(C) : e[C] !== "ready" && c.push(C), T.setDate(T.getDate() + 1);
1331
1331
  }
1332
1332
  return { loadingDates: c, errorDates: h };
1333
- }, [f.dayLoadState, Ht, Ct]), $e = Ci(S.window, f), mt = B(() => {
1333
+ }, [f.dayLoadState, Ut, Ct]), $e = Ci(S.window, f), mt = B(() => {
1334
1334
  const e = new Date(yn);
1335
1335
  return e.setHours(0, 0, 0, 0), [e];
1336
1336
  }, [yn]), at = B(
@@ -1339,7 +1339,7 @@ function Sc({
1339
1339
  rows: r,
1340
1340
  days: mt,
1341
1341
  axisKind: z,
1342
- visibleChairIds: Ut,
1342
+ visibleChairIds: Ht,
1343
1343
  visibleOperatorIds: Mt,
1344
1344
  privacy: Oe
1345
1345
  },
@@ -1349,13 +1349,13 @@ function Sc({
1349
1349
  r,
1350
1350
  mt,
1351
1351
  z,
1352
- Ut,
1352
+ Ht,
1353
1353
  Mt,
1354
1354
  Oe,
1355
1355
  f
1356
1356
  ]
1357
1357
  );
1358
- G(() => {
1358
+ V(() => {
1359
1359
  _t && (Tn(!1), window.print());
1360
1360
  }, [_t]);
1361
1361
  const Xn = m(
@@ -1379,7 +1379,7 @@ function Sc({
1379
1379
  [S.showCardContext, z, f.chairs, f.operators]
1380
1380
  ), Jn = B(() => {
1381
1381
  const e = r.filter(
1382
- (R) => (!R.chairId || Ut.includes(R.chairId)) && (!R.operatorId || Mt.includes(R.operatorId))
1382
+ (R) => (!R.chairId || Ht.includes(R.chairId)) && (!R.operatorId || Mt.includes(R.operatorId))
1383
1383
  ).filter((R) => S.showCancelled || R.event.status !== "cancelled").map((R) => ({
1384
1384
  ...R.event,
1385
1385
  ...ls(R, S.colorAssociation, f, Yt),
@@ -1409,7 +1409,7 @@ function Sc({
1409
1409
  axisKind: z,
1410
1410
  rangeStart: c,
1411
1411
  rangeEnd: h,
1412
- visibleChairIds: Ut,
1412
+ visibleChairIds: Ht,
1413
1413
  visibleOperatorIds: Mt,
1414
1414
  columnsHiddenWhenAbsent: T,
1415
1415
  labels: {
@@ -1437,18 +1437,18 @@ function Sc({
1437
1437
  axisKind: z,
1438
1438
  rangeStart: c,
1439
1439
  rangeEnd: h,
1440
- visibleChairIds: Ut,
1440
+ visibleChairIds: Ht,
1441
1441
  visibleOperatorIds: Mt,
1442
1442
  columnsHiddenWhenAbsent: T,
1443
1443
  wholeDayOnly: de
1444
1444
  },
1445
1445
  f
1446
- ), X = [], ye = z === "operator" ? i == null ? void 0 : i.operatorId : i == null ? void 0 : i.chairId;
1446
+ ), G = [], ye = z === "operator" ? i == null ? void 0 : i.operatorId : i == null ? void 0 : i.chairId;
1447
1447
  if (i && !i.editEventId && (z === "none" || ye)) {
1448
1448
  const R = new Date(i.date);
1449
1449
  R.setHours(i.time.hours, i.time.minutes, 0, 0);
1450
1450
  const De = new Date(R.getTime() + i.durationMin * 6e4), Kt = z === "operator" ? i.operatorId : i.chairId, Dt = i.allDay || de;
1451
- X.push({
1451
+ G.push({
1452
1452
  id: Ma,
1453
1453
  title: o(D("actions.newAppointment")),
1454
1454
  start: Dt ? vr(R) : R.toISOString(),
@@ -1466,7 +1466,7 @@ function Sc({
1466
1466
  }
1467
1467
  return [
1468
1468
  ...e,
1469
- ...X,
1469
+ ...G,
1470
1470
  ...W,
1471
1471
  ...E,
1472
1472
  ...C
@@ -1477,7 +1477,7 @@ function Sc({
1477
1477
  z,
1478
1478
  Q,
1479
1479
  rt,
1480
- Ut,
1480
+ Ht,
1481
1481
  Mt,
1482
1482
  We,
1483
1483
  sn,
@@ -1507,11 +1507,11 @@ function Sc({
1507
1507
  o(L("filters.disabledOperator"))
1508
1508
  ),
1509
1509
  ...sn ? { hiddenDates: f.operatorAbsences[e.id] } : {}
1510
- })) : f.chairs.filter((e) => Ut.includes(e.id)).map((e) => ({
1510
+ })) : f.chairs.filter((e) => Ht.includes(e.id)).map((e) => ({
1511
1511
  ...e,
1512
1512
  title: wi(e, S.chairNameDisplay)
1513
1513
  })), Re = K ? r.find((e) => e.event.id === K.eventId) : void 0;
1514
- G(() => {
1514
+ V(() => {
1515
1515
  K && !Re && (re == null || re());
1516
1516
  }, [K, Re, re]);
1517
1517
  const un = K && Re ? K.kind : ue ? "create" : "default", ht = K && Re ? ls(
@@ -1530,7 +1530,7 @@ function Sc({
1530
1530
  }
1531
1531
  it == null || it();
1532
1532
  }, [K, re, it]), Qn = $(0);
1533
- G(() => {
1533
+ V(() => {
1534
1534
  if (!Ie || Ie.tick === Qn.current || !r.some((c) => c.event.id === Ie.eventId)) return;
1535
1535
  Qn.current = Ie.tick;
1536
1536
  const e = window.setTimeout(
@@ -1543,7 +1543,7 @@ function Sc({
1543
1543
  return () => window.clearTimeout(e);
1544
1544
  }, [Ie, r]);
1545
1545
  const Ge = $(0);
1546
- G(() => {
1546
+ V(() => {
1547
1547
  if (!je || je.tick === Ge.current) return;
1548
1548
  Ge.current = je.tick;
1549
1549
  const e = Si(je, {
@@ -1599,7 +1599,7 @@ function Sc({
1599
1599
  if (!(c != null && c.event.detailsPending)) {
1600
1600
  if (Lr(e.patientId) === "") {
1601
1601
  if (!c) return;
1602
- if (j) {
1602
+ if (Y) {
1603
1603
  b({ kind: "appointment", eventId: e.id });
1604
1604
  return;
1605
1605
  }
@@ -1620,7 +1620,7 @@ function Sc({
1620
1620
  f,
1621
1621
  he,
1622
1622
  Nt,
1623
- j
1623
+ Y
1624
1624
  ]
1625
1625
  ), ze = ni(), u = m(
1626
1626
  (e) => {
@@ -1631,7 +1631,7 @@ function Sc({
1631
1631
  Le(null), ze.ask(() => er(e));
1632
1632
  },
1633
1633
  [ze, K, r, er]
1634
- ), H = m(
1634
+ ), U = m(
1635
1635
  (e, c) => {
1636
1636
  e.allDay && Lr(e.patientId) === "" && !$a(e) || (Le({ event: e, el: c.el }), !$a(e) && !e.isTask && (tn == null || tn(e.id)));
1637
1637
  },
@@ -1649,7 +1649,7 @@ function Sc({
1649
1649
  }, ur(e.title);
1650
1650
  const W = `${e.internalView}:${e.start.getTime()}-${e.end.getTime()}`;
1651
1651
  W !== ft.current && (ft.current = W, ct(null), Le(null), yr({ start: e.start, end: e.end }), se(cn.current)), tt(
1652
- (X) => X.getTime() === e.currentDate.getTime() ? X : e.currentDate
1652
+ (G) => G.getTime() === e.currentDate.getTime() ? G : e.currentDate
1653
1653
  );
1654
1654
  },
1655
1655
  [se]
@@ -1674,12 +1674,12 @@ function Sc({
1674
1674
  return s(
1675
1675
  (C) => C.map((W) => {
1676
1676
  if (!T.has(W.event.id)) return W;
1677
- const E = W.event.id === e.eventId, X = E ? e.newStart : new Date(new Date(W.event.start).getTime() + h), ye = E && e.newEnd ? e.newEnd : W.event.end ? new Date(new Date(W.event.end).getTime() + h) : void 0, R = {
1677
+ const E = W.event.id === e.eventId, G = E ? e.newStart : new Date(new Date(W.event.start).getTime() + h), ye = E && e.newEnd ? e.newEnd : W.event.end ? new Date(new Date(W.event.end).getTime() + h) : void 0, R = {
1678
1678
  ...W,
1679
1679
  ...e.resourceId ? z === "operator" ? { operatorId: e.resourceId } : { chairId: e.resourceId } : {},
1680
1680
  event: {
1681
1681
  ...W.event,
1682
- start: X,
1682
+ start: G,
1683
1683
  end: ye
1684
1684
  }
1685
1685
  };
@@ -1758,7 +1758,7 @@ function Sc({
1758
1758
  (e) => {
1759
1759
  var T, C, W;
1760
1760
  if (e.event.id === Ma) {
1761
- const E = new Date(e.newStart), X = e.newResourceId, ye = () => {
1761
+ const E = new Date(e.newStart), G = e.newResourceId, ye = () => {
1762
1762
  var De;
1763
1763
  (De = e.revert) == null || De.call(e), v == null || v({
1764
1764
  date: new Date(
@@ -1768,12 +1768,12 @@ function Sc({
1768
1768
  ),
1769
1769
  /* A Month drop lands on a day, not a slot: keep the time. */
1770
1770
  time: de && i ? i.time : { hours: E.getHours(), minutes: E.getMinutes() },
1771
- ...X && z === "operator" ? { operatorId: X } : {},
1772
- ...X && z === "chair" ? { chairId: X } : {}
1771
+ ...G && z === "operator" ? { operatorId: G } : {},
1772
+ ...G && z === "chair" ? { chairId: G } : {}
1773
1773
  });
1774
1774
  }, R = f.closureOn(
1775
1775
  vr(E),
1776
- z === "operator" ? X : i == null ? void 0 : i.operatorId
1776
+ z === "operator" ? G : i == null ? void 0 : i.operatorId
1777
1777
  );
1778
1778
  if (R) {
1779
1779
  on({
@@ -1823,8 +1823,8 @@ function Sc({
1823
1823
  action: "move",
1824
1824
  onConfirm: E,
1825
1825
  onCancel: () => {
1826
- var X;
1827
- return (X = e.revert) == null ? void 0 : X.call(e);
1826
+ var G;
1827
+ return (G = e.revert) == null ? void 0 : G.call(e);
1828
1828
  }
1829
1829
  });
1830
1830
  return;
@@ -1862,7 +1862,7 @@ function Sc({
1862
1862
  ]
1863
1863
  ), Ea = m(
1864
1864
  (e) => {
1865
- var E, X, ye;
1865
+ var E, G, ye;
1866
1866
  if (e.event.id === Ma) {
1867
1867
  if ((E = e.revert) == null || E.call(e), de || i != null && i.allDay) return;
1868
1868
  g == null || g(
@@ -1871,7 +1871,7 @@ function Sc({
1871
1871
  return;
1872
1872
  }
1873
1873
  if (he != null && he.has(e.event.id)) {
1874
- (X = e.revert) == null || X.call(e);
1874
+ (G = e.revert) == null || G.call(e);
1875
1875
  return;
1876
1876
  }
1877
1877
  if (It) {
@@ -1960,7 +1960,7 @@ function Sc({
1960
1960
  );
1961
1961
  return;
1962
1962
  }
1963
- const X = Ga(
1963
+ const G = Ga(
1964
1964
  r,
1965
1965
  A.event.id,
1966
1966
  ke
@@ -1975,7 +1975,7 @@ function Sc({
1975
1975
  oldStart: A.oldStart,
1976
1976
  newStart: A.newStart,
1977
1977
  newEnd: A.newEnd,
1978
- alsoIds: X
1978
+ alsoIds: G
1979
1979
  },
1980
1980
  ke,
1981
1981
  ye
@@ -2026,10 +2026,10 @@ function Sc({
2026
2026
  re == null || re(!1), hn(o(L("readOnly.changeBlocked")));
2027
2027
  return;
2028
2028
  }
2029
- const E = Re, X = new Date(E.event.start), ye = new Date(e.date);
2029
+ const E = Re, G = new Date(E.event.start), ye = new Date(e.date);
2030
2030
  if (e.allDay && !E.event.allDay && ye.setHours(
2031
- X.getHours(),
2032
- X.getMinutes(),
2031
+ G.getHours(),
2032
+ G.getMinutes(),
2033
2033
  0,
2034
2034
  0
2035
2035
  ), K.kind === "copy") {
@@ -2049,7 +2049,10 @@ function Sc({
2049
2049
  ...(a == null ? void 0 : a.emailReminder) !== void 0 ? { emailReminder: a.emailReminder } : {},
2050
2050
  ...(a == null ? void 0 : a.smsReminder) !== void 0 ? { smsReminder: a.smsReminder } : {}
2051
2051
  }), q = () => {
2052
- t || x(Gt, { kind: "copied" });
2052
+ t || (x(Gt, {
2053
+ kind: "created",
2054
+ copiedFromIso: G.toISOString()
2055
+ }), x(E.event.id, { kind: "copied" }));
2053
2056
  };
2054
2057
  d ? Ze(
2055
2058
  d.then((ne) => {
@@ -2101,13 +2104,13 @@ function Sc({
2101
2104
  ), re == null || re(!0);
2102
2105
  return;
2103
2106
  }
2104
- const R = E.event.end ? new Date(E.event.end).getTime() - X.getTime() : 0, De = E.event.end ? new Date(ye.getTime() + R) : void 0;
2107
+ const R = E.event.end ? new Date(E.event.end).getTime() - G.getTime() : 0, De = E.event.end ? new Date(ye.getTime() + R) : void 0;
2105
2108
  if (ga(E.event) && !zt(E.event)) {
2106
2109
  pn(
2107
2110
  {
2108
2111
  eventId: E.event.id,
2109
2112
  resourceId: e.resourceId,
2110
- oldStart: X,
2113
+ oldStart: G,
2111
2114
  newStart: ye,
2112
2115
  newEnd: De
2113
2116
  },
@@ -2122,7 +2125,7 @@ function Sc({
2122
2125
  resourceId: z === "operator" ? E.operatorId : E.chairId
2123
2126
  },
2124
2127
  kind: "drop",
2125
- oldStart: X,
2128
+ oldStart: G,
2126
2129
  newStart: ye,
2127
2130
  newEnd: De,
2128
2131
  newResourceId: e.resourceId,
@@ -2138,7 +2141,7 @@ function Sc({
2138
2141
  Le(null), hn(o(L("readOnly.createBlocked")));
2139
2142
  return;
2140
2143
  }
2141
- if (Le(null), b(null), j && !ue) {
2144
+ if (Le(null), b(null), Y && !ue) {
2142
2145
  c !== void 0 && ((W = (C = (T = et.current) == null ? void 0 : T.getApi()) == null ? void 0 : C.unselect) == null || W.call(C));
2143
2146
  return;
2144
2147
  }
@@ -2179,7 +2182,7 @@ function Sc({
2179
2182
  Nr,
2180
2183
  zt,
2181
2184
  re,
2182
- j,
2185
+ Y,
2183
2186
  Vt,
2184
2187
  f.metaById,
2185
2188
  Et,
@@ -2188,7 +2191,7 @@ function Sc({
2188
2191
  ]
2189
2192
  ), $r = m(
2190
2193
  (e, c) => {
2191
- const T = (!de || K) && !Z && !(rt && Q) && !(j && !ue && !K) ? f.closureOn(
2194
+ const T = (!de || K) && !Z && !(rt && Q) && !(Y && !ue && !K) ? f.closureOn(
2192
2195
  vr(e.date),
2193
2196
  z === "operator" ? e.resourceId : void 0
2194
2197
  ) : null;
@@ -2205,8 +2208,8 @@ function Sc({
2205
2208
  action: (K == null ? void 0 : K.kind) === "move" ? "move" : "book",
2206
2209
  onConfirm: () => wr(e, c),
2207
2210
  onCancel: () => {
2208
- var W, E, X;
2209
- c !== void 0 && ((X = (E = (W = et.current) == null ? void 0 : W.getApi()) == null ? void 0 : E.unselect) == null || X.call(E));
2211
+ var W, E, G;
2212
+ c !== void 0 && ((G = (E = (W = et.current) == null ? void 0 : W.getApi()) == null ? void 0 : E.unselect) == null || G.call(E));
2210
2213
  }
2211
2214
  });
2212
2215
  },
@@ -2217,7 +2220,7 @@ function Sc({
2217
2220
  Z,
2218
2221
  rt,
2219
2222
  Q,
2220
- j,
2223
+ Y,
2221
2224
  ue,
2222
2225
  f,
2223
2226
  z,
@@ -2248,7 +2251,7 @@ function Sc({
2248
2251
  },
2249
2252
  [qe]
2250
2253
  );
2251
- G(() => {
2254
+ V(() => {
2252
2255
  const e = (c) => {
2253
2256
  const h = $i(c);
2254
2257
  !h || Me && h === "threeDays" || (c.preventDefault(), Rr(h));
@@ -2289,18 +2292,18 @@ function Sc({
2289
2292
  lr(e), !e && Jt(
2290
2293
  (c) => c.filter((h) => !f.inactiveOperatorIds.includes(h))
2291
2294
  );
2292
- }, qt = ca && S.operatorListMode === "flat", Hr = Li(Ke, Xe), Wa = () => {
2295
+ }, qt = ca && S.operatorListMode === "flat", Ur = Li(Ke, Xe), Wa = () => {
2293
2296
  var e;
2294
2297
  (e = Xt.current) == null || e.focus(), Pt([]), Jt([]), lr(!1), Bn(!0);
2295
2298
  }, Er = o(D(`view.${Pe}`)), da = Fi(f), Oa = (e, c) => {
2296
- e === "orientation" && an(nt.current), ie((h) => ({ ...h, ...c })), Ue == null || Ue({ setting: e, section: "personal" });
2299
+ e === "orientation" && an(nt.current), ie((h) => ({ ...h, ...c })), He == null || He({ setting: e, section: "personal" });
2297
2300
  }, La = (e) => {
2298
- Ln(e), Ue == null || Ue({ setting: "hiddenDays", section: "personal" });
2301
+ Ln(e), He == null || He({ setting: "hiddenDays", section: "personal" });
2299
2302
  }, Fa = () => {
2300
- an(nt.current), ie((e) => ({ ...J, resourceKind: e.resourceKind })), Ln([...is]), Ue == null || Ue({ setting: "reset", section: "personal" });
2303
+ an(nt.current), ie((e) => ({ ...J, resourceKind: e.resourceKind })), Ln([...is]), He == null || He({ setting: "reset", section: "personal" });
2301
2304
  };
2302
- G(() => {
2303
- He == null || He.publish({
2305
+ V(() => {
2306
+ Ue == null || Ue.publish({
2304
2307
  display: S,
2305
2308
  onChange: Oa,
2306
2309
  hiddenDays: Ct,
@@ -2314,11 +2317,11 @@ function Sc({
2314
2317
  hasOperatorGroups: ca,
2315
2318
  academyHref: Cn == null ? void 0 : Cn.academyHref,
2316
2319
  practiceSettings: St,
2317
- onPracticeSettingChanged: (e) => Ue == null ? void 0 : Ue({ setting: e, section: "practice" }),
2320
+ onPracticeSettingChanged: (e) => He == null ? void 0 : He({ setting: e, section: "practice" }),
2318
2321
  onHoursOpened: kn
2319
2322
  });
2320
- }), G(() => () => He == null ? void 0 : He.publish(null), [He]);
2321
- const Ur = (e) => /* @__PURE__ */ n(
2323
+ }), V(() => () => Ue == null ? void 0 : Ue.publish(null), [Ue]);
2324
+ const Hr = (e) => /* @__PURE__ */ n(
2322
2325
  ta,
2323
2326
  {
2324
2327
  label: /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
@@ -2366,7 +2369,7 @@ function Sc({
2366
2369
  readOnly: Z,
2367
2370
  availableTools: kt,
2368
2371
  waitingCount: xe,
2369
- toCompleteCount: V,
2372
+ toCompleteCount: j,
2370
2373
  onNewAppointment: N,
2371
2374
  onOpenFindSlots: () => Wn("find-slots"),
2372
2375
  onOpenWaitingList: l,
@@ -2415,7 +2418,7 @@ function Sc({
2415
2418
  {
2416
2419
  type: "button",
2417
2420
  className: rr,
2418
- ref: He == null ? void 0 : He.buttonRef,
2421
+ ref: Ue == null ? void 0 : Ue.buttonRef,
2419
2422
  intent: "outline",
2420
2423
  icon: /* @__PURE__ */ n(Ms, {}),
2421
2424
  "aria-label": o(D("settings.label")),
@@ -2516,7 +2519,7 @@ function Sc({
2516
2519
  /* @__PURE__ */ n(Tt.Heading, { children: o(D("filters.operators")) }),
2517
2520
  /* @__PURE__ */ n(Tt.Description, { children: o(L("filters.everyoneOperators")) }),
2518
2521
  /* @__PURE__ */ I("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)]", children: [
2519
- fr.length === 1 || qt ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: (qt ? zr : fr[0].operators).map(Ur) }) : fr.map((e) => {
2522
+ fr.length === 1 || qt ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: (qt ? zr : fr[0].operators).map(Hr) }) : fr.map((e) => {
2520
2523
  const c = e.operators.map((h) => h.id);
2521
2524
  return /* @__PURE__ */ I(
2522
2525
  "div",
@@ -2538,7 +2541,7 @@ function Sc({
2538
2541
  )
2539
2542
  }
2540
2543
  ),
2541
- /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-md)]", children: e.operators.map(Ur) })
2544
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-md)]", children: e.operators.map(Hr) })
2542
2545
  ]
2543
2546
  },
2544
2547
  e.id
@@ -2565,7 +2568,7 @@ function Sc({
2565
2568
  }
2566
2569
  )
2567
2570
  ] }),
2568
- Hr > 0 ? /* @__PURE__ */ n(
2571
+ Ur > 0 ? /* @__PURE__ */ n(
2569
2572
  Ve,
2570
2573
  {
2571
2574
  type: "button",
@@ -2574,10 +2577,10 @@ function Sc({
2574
2577
  className: `ds:shrink-0 ${ys}`,
2575
2578
  startIcon: /* @__PURE__ */ n(_o, {}),
2576
2579
  "aria-label": o(L("toolbar.resetFiltersCount"), {
2577
- count: Hr
2580
+ count: Ur
2578
2581
  }),
2579
2582
  onClick: Wa,
2580
- children: `${o(L("toolbar.resetFilters"))} · ${Hr}`
2583
+ children: `${o(L("toolbar.resetFilters"))} · ${Ur}`
2581
2584
  }
2582
2585
  ) : null,
2583
2586
  /* @__PURE__ */ I("span", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:flex-nowrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
@@ -2722,21 +2725,21 @@ function Sc({
2722
2725
  if (A) {
2723
2726
  const e = Qe == null ? void 0 : Qe.event.end, c = e ? new Date(
2724
2727
  new Date(e).getTime() + (A.newStart.getTime() - A.oldStart.getTime())
2725
- ) : void 0, h = z === "operator" ? Qe == null ? void 0 : Qe.operatorId : Qe == null ? void 0 : Qe.chairId, T = A.newResourceId ?? A.event.resourceId, C = !!(z !== "none" && T && T !== h), W = (X) => {
2728
+ ) : void 0, h = z === "operator" ? Qe == null ? void 0 : Qe.operatorId : Qe == null ? void 0 : Qe.chairId, T = A.newResourceId ?? A.event.resourceId, C = !!(z !== "none" && T && T !== h), W = (G) => {
2726
2729
  var ye;
2727
2730
  return ((ye = (z === "operator" ? f.operators : f.chairs).find(
2728
- (R) => R.id === X
2731
+ (R) => R.id === G
2729
2732
  )) == null ? void 0 : ye.title) ?? null;
2730
2733
  }, E = !!A.event.allDay;
2731
2734
  Yr = [
2732
2735
  gr(p, A.oldStart),
2733
2736
  E ? null : _r(p, A.oldStart, e),
2734
2737
  C ? W(h) : null
2735
- ].filter((X) => !!X).join(" · "), Xr = [
2738
+ ].filter((G) => !!G).join(" · "), Xr = [
2736
2739
  gr(p, A.newStart),
2737
2740
  E ? null : _r(p, A.newStart, c),
2738
2741
  C ? W(T) : null
2739
- ].filter((X) => !!X).join(" · ");
2742
+ ].filter((G) => !!G).join(" · ");
2740
2743
  }
2741
2744
  return /* @__PURE__ */ I(
2742
2745
  "div",
@@ -2744,7 +2747,7 @@ function Sc({
2744
2747
  ref: lt,
2745
2748
  className: `ds:flex ds:min-h-full ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ${Tc}`,
2746
2749
  children: [
2747
- Hn ? /* @__PURE__ */ n(cc, { archive: Hn }) : null,
2750
+ Un ? /* @__PURE__ */ n(cc, { archive: Un }) : null,
2748
2751
  /* @__PURE__ */ n(
2749
2752
  ao,
2750
2753
  {
@@ -2850,9 +2853,9 @@ function Sc({
2850
2853
  Yn && Yn.length > 0 ? /* @__PURE__ */ n(
2851
2854
  dc,
2852
2855
  {
2853
- onRetry: U ? () => {
2856
+ onRetry: H ? () => {
2854
2857
  var e;
2855
- (e = dt.current) == null || e.focus(), U();
2858
+ (e = dt.current) == null || e.focus(), H();
2856
2859
  } : void 0
2857
2860
  }
2858
2861
  ) : null,
@@ -2880,7 +2883,7 @@ function Sc({
2880
2883
  verticalResourceLabels: we === "Week" && S.orientation === "vertical",
2881
2884
  resourceAreaHeader: z === "operator" ? "operators" : "chairs",
2882
2885
  resourceAreaWidth: "14%",
2883
- initialDate: Un,
2886
+ initialDate: Hn,
2884
2887
  locale: p,
2885
2888
  editable: !It,
2886
2889
  privacyMode: Oe,
@@ -2909,7 +2912,7 @@ function Sc({
2909
2912
  stickyHeaderDates: !0,
2910
2913
  height: "auto",
2911
2914
  onEventClick: u,
2912
- onEventMouseEnter: H,
2915
+ onEventMouseEnter: U,
2913
2916
  onEventMouseLeave: ae,
2914
2917
  onEventDragStart: ae,
2915
2918
  onEventResizeStart: ae,
@@ -2934,7 +2937,7 @@ function Sc({
2934
2937
  sections: at,
2935
2938
  rangeTitle: gr(p, yn),
2936
2939
  axisKind: z,
2937
- visibleChairIds: Ut,
2940
+ visibleChairIds: Ht,
2938
2941
  visibleOperatorIds: Mt,
2939
2942
  privacy: Oe,
2940
2943
  locale: p
@@ -3092,7 +3095,7 @@ function Sc({
3092
3095
  )
3093
3096
  ] }),
3094
3097
  Vr ? /* @__PURE__ */ n(
3095
- Us,
3098
+ Hs,
3096
3099
  {
3097
3100
  label: o(D("moveConfirm.scope")),
3098
3101
  value: ke,
@@ -3255,7 +3258,7 @@ function sa({
3255
3258
  }),
3256
3259
  [r, s, i, v, N, k, p]
3257
3260
  );
3258
- return /* @__PURE__ */ n(Hs, { value: l, children: /* @__PURE__ */ n(Ws, { value: g ?? null, children: b }) });
3261
+ return /* @__PURE__ */ n(Us, { value: l, children: /* @__PURE__ */ n(Ws, { value: g ?? null, children: b }) });
3259
3262
  }
3260
3263
  function Oc({
3261
3264
  details: r,
@@ -3328,10 +3331,10 @@ function Pc({
3328
3331
  selectedRow: l,
3329
3332
  patientRef: P,
3330
3333
  onOpenSheet: le,
3331
- onAnnounce: V,
3334
+ onAnnounce: j,
3332
3335
  editorMode: xe,
3333
3336
  onEditorModeChange: se,
3334
- editorSeed: U,
3337
+ editorSeed: H,
3335
3338
  slotPatch: Be,
3336
3339
  loadAppointmentEditor: Ne,
3337
3340
  loadAppointmentDetails: O,
@@ -3343,7 +3346,7 @@ function Pc({
3343
3346
  mapsLink: Z,
3344
3347
  defaultDurationMin: he,
3345
3348
  noteUnrecordedEdits: Nt,
3346
- recurrence: j,
3349
+ recurrence: Y,
3347
3350
  consentsForCares: K,
3348
3351
  medicalDevicesForCares: re,
3349
3352
  sameDayReminders: ue,
@@ -3368,16 +3371,16 @@ function Pc({
3368
3371
  onStatusChange: jt,
3369
3372
  onDescriptionChange: vn,
3370
3373
  onBookSlotFromFinder: tn,
3371
- onRevealAppointment: He,
3374
+ onRevealAppointment: Ue,
3372
3375
  toolSourceRef: gn,
3373
3376
  onDetailsDocked: sr,
3374
- onRequestSignature: Ue,
3377
+ onRequestSignature: He,
3375
3378
  onRequestSignatureOnDevice: kn,
3376
3379
  onOpenPatient: St,
3377
3380
  onOpenScheduler: xt,
3378
3381
  onSaveAndReturn: An,
3379
3382
  onWaitingListFilterUsed: zn,
3380
- onWaitingListAdvancedFilterToggled: Hn,
3383
+ onWaitingListAdvancedFilterToggled: Un,
3381
3384
  onRemoveWaiting: Cn,
3382
3385
  onOpenEntryForm: o,
3383
3386
  entryForm: kt,
@@ -3410,40 +3413,40 @@ function Pc({
3410
3413
  editorGuard: cr
3411
3414
  }) {
3412
3415
  var Qn, Ge, er, ze;
3413
- const { t: Y } = gt("ui"), Ae = Cr(), { openTool: Pe } = Na(), qe = Gs(V), Ke = xe === "create" ? `create-${U.tick}` : `${(l == null ? void 0 : l.event.id) ?? ""}:${P.id}`, [Xe, It] = _({}), rn = m(
3416
+ const { t: X } = gt("ui"), Ae = Cr(), { openTool: Pe } = Na(), qe = Gs(j), Ke = xe === "create" ? `create-${H.tick}` : `${(l == null ? void 0 : l.event.id) ?? ""}:${P.id}`, [Xe, It] = _({}), rn = m(
3414
3417
  (u) => {
3415
3418
  It(
3416
- (H) => H.key === Ke && H.id === u ? H : { key: Ke, id: u }
3419
+ (U) => U.key === Ke && U.id === u ? U : { key: Ke, id: u }
3417
3420
  );
3418
3421
  },
3419
3422
  [Ke]
3420
- ), We = Xe.key === Ke ? Xe.id : xe === "create" ? (Qn = U.prefill) == null ? void 0 : Qn.patientId : P.id || void 0, tt = v.has(y.notes) && !!We, [nt, Un] = _({ tick: 0 }), an = $(i);
3421
- G(() => {
3423
+ ), We = Xe.key === Ke ? Xe.id : xe === "create" ? (Qn = H.prefill) == null ? void 0 : Qn.patientId : P.id || void 0, tt = v.has(y.notes) && !!We, [nt, Hn] = _({ tick: 0 }), an = $(i);
3424
+ V(() => {
3422
3425
  const u = an.current === y.notes && i !== y.notes;
3423
- an.current = i, Un(
3424
- (H) => H.patientId && (u || H.patientId !== We) ? { tick: H.tick } : H
3426
+ an.current = i, Hn(
3427
+ (U) => U.patientId && (u || U.patientId !== We) ? { tick: U.tick } : U
3425
3428
  );
3426
3429
  }, [i, We]);
3427
3430
  const sn = $(0);
3428
- G(() => () => cancelAnimationFrame(sn.current), []);
3431
+ V(() => () => cancelAnimationFrame(sn.current), []);
3429
3432
  const Bn = $(0);
3430
- G(() => () => cancelAnimationFrame(Bn.current), []);
3433
+ V(() => () => cancelAnimationFrame(Bn.current), []);
3431
3434
  const ut = m(() => {
3432
3435
  k(), cancelAnimationFrame(Bn.current), Bn.current = requestAnimationFrame(() => {
3433
- var H, ae;
3436
+ var U, ae;
3434
3437
  const u = document.activeElement;
3435
- u && u !== document.body && u.isConnected || (ae = (H = s.current) == null ? void 0 : H.querySelector("section[data-active-tool]")) == null || ae.focus();
3438
+ u && u !== document.body && u.isConnected || (ae = (U = s.current) == null ? void 0 : U.querySelector("section[data-active-tool]")) == null || ae.focus();
3436
3439
  });
3437
3440
  }, [k, s]), lr = $(y.appointments), Mn = m(
3438
- (u, H) => {
3439
- !tt || u !== We || (Un((ae) => ({
3441
+ (u, U) => {
3442
+ !tt || u !== We || (Hn((ae) => ({
3440
3443
  patientId: u,
3441
- noteId: H,
3444
+ noteId: U,
3442
3445
  tick: ae.tick + 1
3443
- })), gn.current = "appointment_panel", Pe(y.notes), gn.current = null, V(Y("calendarWorkspace.rail.notes")));
3446
+ })), gn.current = "appointment_panel", Pe(y.notes), gn.current = null, j(X("calendarWorkspace.rail.notes")));
3444
3447
  },
3445
- [tt, We, Pe, V, Y, gn]
3446
- ), qn = B(() => Gi(b), [b]), In = Y(
3448
+ [tt, We, Pe, j, X, gn]
3449
+ ), qn = B(() => Gi(b), [b]), In = X(
3447
3450
  "calendarWorkspace.details.patientNotLoaded"
3448
3451
  ), bn = P.id, Pn = N && l ? ya(l.event, !0) : Va(
3449
3452
  P,
@@ -3466,13 +3469,13 @@ function Pc({
3466
3469
  rows: b,
3467
3470
  submitOnEnter: !0,
3468
3471
  reminderChannels: xc,
3469
- recurrenceExtras: (j == null ? void 0 : j.endDate) !== !1,
3470
- recurrenceSkipClosedDays: (j == null ? void 0 : j.skipClosedDays) !== !1,
3471
- recurrenceSkipClosedDaysDefault: j == null ? void 0 : j.skipClosedDaysDefault,
3472
+ recurrenceExtras: (Y == null ? void 0 : Y.endDate) !== !1,
3473
+ recurrenceSkipClosedDays: (Y == null ? void 0 : Y.skipClosedDays) !== !1,
3474
+ recurrenceSkipClosedDaysDefault: Y == null ? void 0 : Y.skipClosedDaysDefault,
3472
3475
  /* The Custom rule (HTP-4261, PRD 03 rule D1): every N days, weeks,
3473
3476
  months or years, chosen weekdays, the Nth or last weekday. On unless
3474
3477
  the host cannot save `interval` and `byDay`. */
3475
- recurrenceCustom: (j == null ? void 0 : j.custom) !== !1,
3478
+ recurrenceCustom: (Y == null ? void 0 : Y.custom) !== !1,
3476
3479
  /* The platform modal's own rules: an away operator warns and saves,
3477
3480
  reminders and the first-visit question hang off the patient,
3478
3481
  price-list rows carry phases and lock once invoiced, and a
@@ -3516,7 +3519,7 @@ function Pc({
3516
3519
  /* B5: the active operators plus THIS appointment's disabled one,
3517
3520
  never every disabled operator. */
3518
3521
  operatorOptions: l != null && l.operatorId && Ae.inactiveOperatorIds.includes(l.operatorId) ? Ae.operators.filter(
3519
- (H) => H.id === l.operatorId || !Ae.inactiveOperatorIds.includes(H.id)
3522
+ (U) => U.id === l.operatorId || !Ae.inactiveOperatorIds.includes(U.id)
3520
3523
  ) : void 0
3521
3524
  };
3522
3525
  },
@@ -3554,16 +3557,16 @@ function Pc({
3554
3557
  Ae.operatorGroups,
3555
3558
  _e == null ? void 0 : _e.practice,
3556
3559
  _e == null ? void 0 : _e.operators,
3557
- j == null ? void 0 : j.endDate,
3558
- j == null ? void 0 : j.custom,
3559
- j == null ? void 0 : j.skipClosedDays,
3560
- j == null ? void 0 : j.skipClosedDaysDefault
3560
+ Y == null ? void 0 : Y.endDate,
3561
+ Y == null ? void 0 : Y.custom,
3562
+ Y == null ? void 0 : Y.skipClosedDays,
3563
+ Y == null ? void 0 : Y.skipClosedDaysDefault
3561
3564
  ]
3562
3565
  ), ur = B(
3563
3566
  () => ({
3564
3567
  id: y.appointments,
3565
- label: Y("calendarWorkspace.inc1.rail.appointments"),
3566
- icon: /* @__PURE__ */ n(Ho, { "aria-hidden": "true" }),
3568
+ label: X("calendarWorkspace.inc1.rail.appointments"),
3569
+ icon: /* @__PURE__ */ n(Uo, { "aria-hidden": "true" }),
3567
3570
  /* fill: the timeline owns its scroll (day anchoring + edge loads). */
3568
3571
  fill: !0,
3569
3572
  panel: /* @__PURE__ */ n(
@@ -3573,43 +3576,43 @@ function Pc({
3573
3576
  locale: p,
3574
3577
  privacy: N,
3575
3578
  stateSinceByEventId: nn,
3576
- onOpenAppointment: (u) => He(u, "appointments_panel")
3579
+ onOpenAppointment: (u) => Ue(u, "appointments_panel")
3577
3580
  }
3578
3581
  )
3579
3582
  }),
3580
- [b, p, N, nn, He, Y]
3581
- ), M = xe !== "create" && l !== null, Le = M && O !== void 0, A = Le && xe === "edit", bt = Q || !!(l && Wt.has(l.event.id)), [Ot, on] = _(!1), $t = M ? !!(l != null && l.event.isTask) : !!((Ge = U.prefill) != null && Ge.isTask) || Ot, Lt = M ? l == null ? void 0 : l.event.id : (er = U.prefill) != null && er.isTask ? (ze = U.prefill) == null ? void 0 : ze.editEventId : void 0, ge = U.prefill, Kn = B(
3583
+ [b, p, N, nn, Ue, X]
3584
+ ), M = xe !== "create" && l !== null, Le = M && O !== void 0, A = Le && xe === "edit", bt = Q || !!(l && Wt.has(l.event.id)), [Ot, on] = _(!1), $t = M ? !!(l != null && l.event.isTask) : !!((Ge = H.prefill) != null && Ge.isTask) || Ot, Lt = M ? l == null ? void 0 : l.event.id : (er = H.prefill) != null && er.isTask ? (ze = H.prefill) == null ? void 0 : ze.editEventId : void 0, ge = H.prefill, Kn = B(
3582
3585
  () => ge != null && ge.editEventId ? ge : {
3583
3586
  ...ge,
3584
3587
  durationMin: (ge == null ? void 0 : ge.durationMin) ?? he
3585
3588
  },
3586
3589
  [ge, he]
3587
3590
  ), pr = !$t && N && (M ? !Le || A : !!(ge != null && ge.editEventId || ge != null && ge.patientId || ge != null && ge.bookingContact)), yt = $(null), ke = $(null), [Rt, _n] = _(null), zt = l == null ? void 0 : l.event.id;
3588
- G(() => {
3591
+ V(() => {
3589
3592
  _n(null);
3590
3593
  }, [zt]);
3591
- const [Gn, cn] = _(0), Ht = m(
3592
- async (u, H) => {
3593
- await Bt(u, H), yt.current = "saved";
3594
+ const [Gn, cn] = _(0), Ut = m(
3595
+ async (u, U) => {
3596
+ await Bt(u, U), yt.current = "saved";
3594
3597
  },
3595
3598
  [Bt]
3596
3599
  ), yr = m(
3597
- (u, H) => {
3598
- yt.current = "deleted", Promise.resolve(wt(u, H)).catch(
3599
- () => hn(Y("emptyState.error.title"))
3600
+ (u, U) => {
3601
+ yt.current = "deleted", Promise.resolve(wt(u, U)).catch(
3602
+ () => hn(X("emptyState.error.title"))
3600
3603
  );
3601
3604
  },
3602
- [wt, Y]
3605
+ [wt, X]
3603
3606
  ), Vn = m(() => {
3604
3607
  const u = yt.current;
3605
3608
  if (yt.current = null, _n(null), se("details"), u === "deleted") {
3606
3609
  qe();
3607
3610
  return;
3608
3611
  }
3609
- u === "saved" && cn((H) => H + 1), V(
3610
- Y("calendarWorkspace.details.docked", { name: Pn })
3612
+ u === "saved" && cn((U) => U + 1), j(
3613
+ X("calendarWorkspace.details.docked", { name: Pn })
3611
3614
  );
3612
- }, [se, qe, V, Pn, Y]), we = m(() => {
3615
+ }, [se, qe, j, Pn, X]), we = m(() => {
3613
3616
  qe();
3614
3617
  }, [qe]), de = m(() => {
3615
3618
  if (!l) return;
@@ -3625,7 +3628,7 @@ function Pc({
3625
3628
  }, [l, dt, se]), $n = m(
3626
3629
  (u) => {
3627
3630
  var ft;
3628
- const H = P.id || ((ft = u.patient) == null ? void 0 : ft.id), ae = u.series ?? (_t.recurringDeleteScope ? {
3631
+ const U = P.id || ((ft = u.patient) == null ? void 0 : ft.id), ae = u.series ?? (_t.recurringDeleteScope ? {
3629
3632
  scopes: Fs,
3630
3633
  offersCarePlanCleanup: _t.carePlanCleanup
3631
3634
  } : _t.carePlanCleanup ? { offersCarePlanCleanup: !0 } : void 0);
@@ -3653,7 +3656,7 @@ function Pc({
3653
3656
  /* @__PURE__ */ n(
3654
3657
  oc,
3655
3658
  {
3656
- patientId: H,
3659
+ patientId: U,
3657
3660
  onChange: rn
3658
3661
  }
3659
3662
  ),
@@ -3671,8 +3674,8 @@ function Pc({
3671
3674
  ).values()
3672
3675
  ]
3673
3676
  },
3674
- patientId: H,
3675
- notesSeam: H ? Te(H) : void 0,
3677
+ patientId: U,
3678
+ notesSeam: U ? Te(U) : void 0,
3676
3679
  readOnly: bt,
3677
3680
  onAssignPatient: l != null && l.event.isBookedOnline && !z ? void 0 : Nn,
3678
3681
  onOpenPatient: St,
@@ -3741,9 +3744,9 @@ function Pc({
3741
3744
  ce,
3742
3745
  _t,
3743
3746
  Pe,
3744
- V,
3747
+ j,
3745
3748
  s,
3746
- Y,
3749
+ X,
3747
3750
  jt,
3748
3751
  vn,
3749
3752
  Z,
@@ -3752,13 +3755,13 @@ function Pc({
3752
3755
  ]
3753
3756
  ), pt = B(
3754
3757
  () => {
3755
- var u, H, ae, ft;
3758
+ var u, U, ae, ft;
3756
3759
  return {
3757
3760
  id: y.editor,
3758
- label: Y(
3759
- $t ? Lt ? "calendarWorkspace.taskEditor.editTitle" : "calendarWorkspace.taskEditor.title" : M ? "calendarWorkspace.details.region" : (u = U.prefill) != null && u.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
3761
+ label: X(
3762
+ $t ? Lt ? "calendarWorkspace.taskEditor.editTitle" : "calendarWorkspace.taskEditor.title" : M ? "calendarWorkspace.details.region" : (u = H.prefill) != null && u.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
3760
3763
  ),
3761
- icon: $t ? /* @__PURE__ */ n(Uo, { "aria-hidden": "true" }) : M ? /* @__PURE__ */ n(Ha, { "aria-hidden": "true" }) : /* @__PURE__ */ n(Mo, { "aria-hidden": "true" }),
3764
+ icon: $t ? /* @__PURE__ */ n(Ho, { "aria-hidden": "true" }) : M ? /* @__PURE__ */ n(Ua, { "aria-hidden": "true" }) : /* @__PURE__ */ n(Mo, { "aria-hidden": "true" }),
3762
3765
  /* fill: the panel owns its scroll so its save footer stays pinned. */
3763
3766
  fill: !0,
3764
3767
  panel: /* @__PURE__ */ n(
@@ -3767,17 +3770,17 @@ function Pc({
3767
3770
  withheld: pr ? /* @__PURE__ */ n(
3768
3771
  Ia,
3769
3772
  {
3770
- title: Y(
3773
+ title: X(
3771
3774
  M && !A ? "calendarWorkspace.details.region" : M || ge != null && ge.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
3772
3775
  ),
3773
- icon: /* @__PURE__ */ n(Ha, { "aria-hidden": "true" }),
3776
+ icon: /* @__PURE__ */ n(Ua, { "aria-hidden": "true" }),
3774
3777
  onTurnOff: ut
3775
3778
  }
3776
3779
  ) : void 0,
3777
3780
  openNotes: tt ? Mn : void 0,
3778
3781
  editorGuard: cr,
3779
3782
  onOpenSheet: le,
3780
- onAnnounce: V,
3783
+ onAnnounce: j,
3781
3784
  onClose: $t ? we : A ? Vn : void 0,
3782
3785
  details: !$t && Le && l && O ? {
3783
3786
  eventId: l.event.id,
@@ -3795,7 +3798,7 @@ function Pc({
3795
3798
  {
3796
3799
  mode: Lt ? "edit" : "create",
3797
3800
  taskId: Lt,
3798
- initialDate: !Lt && ((H = U.prefill) != null && H.isTask) ? (ae = U.prefill) == null ? void 0 : ae.date : void 0,
3801
+ initialDate: !Lt && ((U = H.prefill) != null && U.isTask) ? (ae = H.prefill) == null ? void 0 : ae.date : void 0,
3799
3802
  onCancel: we,
3800
3803
  onSaved: we,
3801
3804
  onDeleted: we,
@@ -3806,12 +3809,12 @@ function Pc({
3806
3809
  loadTask: br,
3807
3810
  privacy: N
3808
3811
  },
3809
- Lt ? `task-edit-${Lt}` : `task-create-${U.tick}-${Pt}`
3812
+ Lt ? `task-edit-${Lt}` : `task-create-${H.tick}-${Pt}`
3810
3813
  )
3811
3814
  ) : /* @__PURE__ */ n(
3812
3815
  io,
3813
3816
  {
3814
- eventId: M ? l == null ? void 0 : l.event.id : (ft = U.prefill) == null ? void 0 : ft.editEventId,
3817
+ eventId: M ? l == null ? void 0 : l.event.id : (ft = H.prefill) == null ? void 0 : ft.editEventId,
3815
3818
  load: Ne,
3816
3819
  onCancel: A ? Vn : void 0,
3817
3820
  children: (F) => {
@@ -3839,11 +3842,11 @@ function Pc({
3839
3842
  capabilities: F == null ? void 0 : F.capabilities,
3840
3843
  series: F == null ? void 0 : F.series,
3841
3844
  onRecurringScopeChosen: w,
3842
- panelTitle: Y(
3845
+ panelTitle: X(
3843
3846
  A ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.details.region"
3844
3847
  ),
3845
3848
  returnsOnCancel: A,
3846
- headerIcon: /* @__PURE__ */ n(Ha, { "aria-hidden": "true" }),
3849
+ headerIcon: /* @__PURE__ */ n(Ua, { "aria-hidden": "true" }),
3847
3850
  identity: (
3848
3851
  /* The platform popover's identity line: the age beside
3849
3852
  the name, the name a link to the patient folder, and
@@ -3866,7 +3869,7 @@ function Pc({
3866
3869
  patient: Fe,
3867
3870
  locale: p,
3868
3871
  signRequestedVia: x[Ce.event.id] ?? ((Je = Ae.metaById[Ce.event.id]) == null ? void 0 : Je.signRequestedVia),
3869
- onRequestSignature: Ue,
3872
+ onRequestSignature: He,
3870
3873
  onRequestSignatureOnDevice: kn && (() => kn(Ce.event.id)),
3871
3874
  readOnly: bt,
3872
3875
  platform: F ? {
@@ -3879,7 +3882,7 @@ function Pc({
3879
3882
  J[Ce.event.id] ?? []
3880
3883
  ),
3881
3884
  noteUnrecordedEdits: Nt,
3882
- onSave: A ? Ht : Bt,
3885
+ onSave: A ? Ut : Bt,
3883
3886
  onDelete: A ? yr : wt,
3884
3887
  onDeleteInitiated: (En) => Et(En, "editor"),
3885
3888
  onMove: () => fe("editor"),
@@ -3899,11 +3902,11 @@ function Pc({
3899
3902
  slotPatch: Be,
3900
3903
  prefill: F ? {
3901
3904
  ...F.prefill,
3902
- callToAction: ((Ze = U.prefill) == null ? void 0 : Ze.callToAction) ?? F.prefill.callToAction,
3903
- waitingEntryId: ((pn = U.prefill) == null ? void 0 : pn.waitingEntryId) ?? F.prefill.waitingEntryId,
3904
- simpleSave: ((mn = U.prefill) == null ? void 0 : mn.simpleSave) ?? F.prefill.simpleSave,
3905
- bookingContact: ((Rn = U.prefill) == null ? void 0 : Rn.bookingContact) ?? F.prefill.bookingContact,
3906
- initialFocus: (vt = U.prefill) == null ? void 0 : vt.initialFocus
3905
+ callToAction: ((Ze = H.prefill) == null ? void 0 : Ze.callToAction) ?? F.prefill.callToAction,
3906
+ waitingEntryId: ((pn = H.prefill) == null ? void 0 : pn.waitingEntryId) ?? F.prefill.waitingEntryId,
3907
+ simpleSave: ((mn = H.prefill) == null ? void 0 : mn.simpleSave) ?? F.prefill.simpleSave,
3908
+ bookingContact: ((Rn = H.prefill) == null ? void 0 : Rn.bookingContact) ?? F.prefill.bookingContact,
3909
+ initialFocus: (vt = H.prefill) == null ? void 0 : vt.initialFocus
3907
3910
  } : Kn,
3908
3911
  capabilities: F == null ? void 0 : F.capabilities,
3909
3912
  series: F == null ? void 0 : F.series,
@@ -3911,18 +3914,18 @@ function Pc({
3911
3914
  onSave: Bt,
3912
3915
  onDelete: wt,
3913
3916
  onDeleteInitiated: (En) => Et(En, "editor"),
3914
- readOnly: Q || !!((wn = U.prefill) != null && wn.editEventId && Wt.has(
3915
- U.prefill.editEventId
3917
+ readOnly: Q || !!((wn = H.prefill) != null && wn.editEventId && Wt.has(
3918
+ H.prefill.editEventId
3916
3919
  )),
3917
3920
  locale: p,
3918
3921
  scheduleByEntry: qn,
3919
3922
  platform: Dn
3920
3923
  },
3921
- `create-${U.tick}`
3924
+ `create-${H.tick}`
3922
3925
  ) });
3923
3926
  }
3924
3927
  },
3925
- M ? `${A ? "edit" : "details"}-${l == null ? void 0 : l.event.id}` : `create-${U.tick}`
3928
+ M ? `${A ? "edit" : "details"}-${l == null ? void 0 : l.event.id}` : `create-${H.tick}`
3926
3929
  )
3927
3930
  }
3928
3931
  )
@@ -3945,7 +3948,7 @@ function Pc({
3945
3948
  Gn,
3946
3949
  O,
3947
3950
  Vn,
3948
- Ht,
3951
+ Ut,
3949
3952
  yr,
3950
3953
  $n,
3951
3954
  bt,
@@ -3956,15 +3959,15 @@ function Pc({
3956
3959
  l,
3957
3960
  Rt,
3958
3961
  P,
3959
- U,
3962
+ H,
3960
3963
  le,
3961
- V,
3964
+ j,
3962
3965
  Bt,
3963
3966
  wt,
3964
3967
  w,
3965
3968
  fe,
3966
3969
  Ye,
3967
- Ue,
3970
+ He,
3968
3971
  kn,
3969
3972
  St,
3970
3973
  x,
@@ -3975,7 +3978,7 @@ function Pc({
3975
3978
  Dn,
3976
3979
  p,
3977
3980
  qn,
3978
- Y,
3981
+ X,
3979
3982
  $t,
3980
3983
  Lt,
3981
3984
  Pt,
@@ -3989,7 +3992,7 @@ function Pc({
3989
3992
  cr
3990
3993
  ]
3991
3994
  ), [rt, ln] = _({ tick: 0 }), jn = Yt.id !== void 0 && et.some((u) => u.event.id === Yt.id);
3992
- G(() => {
3995
+ V(() => {
3993
3996
  if (i !== y.bookings) {
3994
3997
  ln((u) => u.id ? { tick: u.tick } : u);
3995
3998
  return;
@@ -4014,10 +4017,10 @@ function Pc({
4014
4017
  const mr = B(
4015
4018
  () => ({
4016
4019
  id: y.bookings,
4017
- label: Y("calendarWorkspace.inc1.bookings.title"),
4020
+ label: X("calendarWorkspace.inc1.bookings.title"),
4018
4021
  icon: /* @__PURE__ */ n(qo, { "aria-hidden": "true" }),
4019
4022
  badgeCount: et.length,
4020
- panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: V, children: /* @__PURE__ */ n(
4023
+ panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: j, children: /* @__PURE__ */ n(
4021
4024
  ko,
4022
4025
  {
4023
4026
  bookings: et,
@@ -4029,7 +4032,7 @@ function Pc({
4029
4032
  currentBookingId: rt.id,
4030
4033
  currentBookingKey: rt.tick,
4031
4034
  onRetry: ee == null ? void 0 : ee.onRetry,
4032
- onShowInCalendar: (u) => He(u, "bookings_panel"),
4035
+ onShowInCalendar: (u) => Ue(u, "bookings_panel"),
4033
4036
  resourceKind: L,
4034
4037
  filters: ct,
4035
4038
  onFiltersChange: On,
@@ -4049,15 +4052,15 @@ function Pc({
4049
4052
  p,
4050
4053
  N,
4051
4054
  le,
4052
- V,
4053
- He,
4055
+ j,
4056
+ Ue,
4054
4057
  dt,
4055
- Y
4058
+ X
4056
4059
  ]
4057
- ), Ut = B(
4060
+ ), Ht = B(
4058
4061
  () => ({
4059
4062
  id: y.waitingList,
4060
- label: Y("calendarWorkspace.waitingList.tool"),
4063
+ label: X("calendarWorkspace.waitingList.tool"),
4061
4064
  icon: /* @__PURE__ */ n(Ts, { "aria-hidden": "true" }),
4062
4065
  badgeCount: ve.length,
4063
4066
  /* fill: the panel owns its scroll (its own internal ScrollArea) so
@@ -4071,12 +4074,12 @@ function Pc({
4071
4074
  /* SUB-VIEW, not a dialog: the entry form is a four-field FORM, so
4072
4075
  it docks in the rail like every other panel and the header's
4073
4076
  back arrow returns to the list (the History / Notes idiom). */
4074
- panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: V, children: kt != null && kt.entry && N ? (
4077
+ panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: j, children: kt != null && kt.entry && N ? (
4075
4078
  /* Editing an entry opens its patient and free text in fields. */
4076
4079
  /* @__PURE__ */ n(
4077
4080
  Ia,
4078
4081
  {
4079
- title: Y("calendarWorkspace.waitingList.tool"),
4082
+ title: X("calendarWorkspace.waitingList.tool"),
4080
4083
  icon: /* @__PURE__ */ n(Ts, { "aria-hidden": "true" }),
4081
4084
  onTurnOff: ut
4082
4085
  }
@@ -4102,8 +4105,8 @@ function Pc({
4102
4105
  onOpenPatient: St,
4103
4106
  onFilterUsed: zn,
4104
4107
  onWhatsAppClick: (u) => ar(u.id),
4105
- onAdvancedFilterToggled: Hn,
4106
- onOpenAppointment: (u) => He(u, "waiting_list")
4108
+ onAdvancedFilterToggled: Un,
4109
+ onOpenAppointment: (u) => Ue(u, "waiting_list")
4107
4110
  }
4108
4111
  ) })
4109
4112
  }),
@@ -4119,35 +4122,35 @@ function Pc({
4119
4122
  b,
4120
4123
  p,
4121
4124
  le,
4122
- V,
4125
+ j,
4123
4126
  Xt,
4124
4127
  Cn,
4125
4128
  o,
4126
- He,
4129
+ Ue,
4127
4130
  St,
4128
4131
  zn,
4129
4132
  ar,
4130
- Hn,
4133
+ Un,
4131
4134
  Q,
4132
- Y
4135
+ X
4133
4136
  ]
4134
4137
  ), Mt = B(
4135
4138
  () => ({
4136
4139
  id: y.settings,
4137
- label: Y("calendarWorkspace.settings.title"),
4140
+ label: X("calendarWorkspace.settings.title"),
4138
4141
  icon: /* @__PURE__ */ n(Ms, { "aria-hidden": "true" }),
4139
4142
  panel: /* @__PURE__ */ n(co, { bridge: or })
4140
4143
  }),
4141
- [or, Y]
4144
+ [or, X]
4142
4145
  ), Dr = B(
4143
4146
  () => ({
4144
4147
  id: y.findSlots,
4145
- label: Y("calendarWorkspace.findSlots.tool"),
4148
+ label: X("calendarWorkspace.findSlots.tool"),
4146
4149
  icon: /* @__PURE__ */ n(Ko, { "aria-hidden": "true" }),
4147
4150
  panel: (
4148
4151
  /* Keyed by the seed tick so a waiting-list hand-off re-seeds a
4149
4152
  fresh, prefilled, auto-searched panel. */
4150
- /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: V, children: /* @__PURE__ */ n(
4153
+ /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: j, children: /* @__PURE__ */ n(
4151
4154
  Co,
4152
4155
  {
4153
4156
  rows: b,
@@ -4170,17 +4173,17 @@ function Pc({
4170
4173
  ie,
4171
4174
  L,
4172
4175
  le,
4173
- V,
4176
+ j,
4174
4177
  tn,
4175
4178
  Wn,
4176
4179
  D,
4177
4180
  dr,
4178
4181
  Q,
4179
- Y
4182
+ X
4180
4183
  ]
4181
4184
  ), Yn = B(
4182
4185
  () => Fn.map(
4183
- ({ privacy: u, hold: H, ...ae }) => N && u !== "host" ? {
4186
+ ({ privacy: u, hold: U, ...ae }) => N && u !== "host" ? {
4184
4187
  ...ae,
4185
4188
  header: void 0,
4186
4189
  panel: /* @__PURE__ */ n(
@@ -4206,7 +4209,7 @@ function Pc({
4206
4209
  /* @__PURE__ */ n(
4207
4210
  Ia,
4208
4211
  {
4209
- title: Y("calendarWorkspace.rail.notes"),
4212
+ title: X("calendarWorkspace.rail.notes"),
4210
4213
  icon: /* @__PURE__ */ n(Ns, { "aria-hidden": "true" }),
4211
4214
  onTurnOff: ut
4212
4215
  }
@@ -4222,28 +4225,28 @@ function Pc({
4222
4225
  }
4223
4226
  ) : null
4224
4227
  }
4225
- ) : pt.panel, H = {
4228
+ ) : pt.panel, U = {
4226
4229
  [y.appointments]: ur,
4227
4230
  [y.editor]: { ...pt, panel: u },
4228
4231
  /* Notes keeps its place in the strip with no patient in hand: it is
4229
4232
  disabled and says why, so the icon never appears on a pick. */
4230
4233
  [y.notes]: {
4231
4234
  id: y.notes,
4232
- label: Y("calendarWorkspace.rail.notes"),
4235
+ label: X("calendarWorkspace.rail.notes"),
4233
4236
  icon: /* @__PURE__ */ n(Ns, { "aria-hidden": "true" }),
4234
4237
  fill: !0,
4235
4238
  disabled: !tt,
4236
- disabledReason: tt ? void 0 : Y("calendarWorkspace.rail.notesNeedsPatient"),
4239
+ disabledReason: tt ? void 0 : X("calendarWorkspace.rail.notesNeedsPatient"),
4237
4240
  panel: u
4238
4241
  },
4239
- [y.waitingList]: Ut,
4242
+ [y.waitingList]: Ht,
4240
4243
  [y.bookings]: mr,
4241
4244
  [y.findSlots]: Dr,
4242
4245
  [y.settings]: Mt
4243
4246
  };
4244
4247
  return [
4245
4248
  ...Ps.filter((ae) => v.has(ae)).map(
4246
- (ae) => H[ae]
4249
+ (ae) => U[ae]
4247
4250
  ),
4248
4251
  ...Yn
4249
4252
  ];
@@ -4256,11 +4259,11 @@ function Pc({
4256
4259
  We,
4257
4260
  nt,
4258
4261
  Te,
4259
- Y,
4262
+ X,
4260
4263
  v,
4261
4264
  ur,
4262
4265
  pt,
4263
- Ut,
4266
+ Ht,
4264
4267
  mr,
4265
4268
  Dr,
4266
4269
  Mt,
@@ -4276,18 +4279,18 @@ function Pc({
4276
4279
  }, [mt, Me]);
4277
4280
  const at = m(
4278
4281
  (u) => {
4279
- const H = v.has(u) ? u : y.appointments;
4280
- Pe(H), V(wa(H, Y));
4282
+ const U = v.has(u) ? u : y.appointments;
4283
+ Pe(U), j(wa(U, X));
4281
4284
  },
4282
- [v, Pe, V, Y]
4285
+ [v, Pe, j, X]
4283
4286
  ), Xn = $(!1);
4284
- G(() => {
4287
+ V(() => {
4285
4288
  Xn.current || (Xn.current = !0, qe(!1));
4286
4289
  }, [qe]);
4287
4290
  const Jn = $(g), dn = $(!1);
4288
4291
  dn.current = Fn.some(
4289
4292
  (u) => u.hold === !0 && u.id === i
4290
- ), G(() => {
4293
+ ), V(() => {
4291
4294
  const u = Jn.current;
4292
4295
  if (u !== g && (Jn.current = g, !dn.current)) {
4293
4296
  if (!g) {
@@ -4303,8 +4306,8 @@ function Pc({
4303
4306
  at(y.editor);
4304
4307
  return;
4305
4308
  }
4306
- se("details"), gn.current = "selection", Pe(y.editor), gn.current = null, sr(g.eventId), V(
4307
- Y("calendarWorkspace.details.docked", { name: Pn })
4309
+ se("details"), gn.current = "selection", Pe(y.editor), gn.current = null, sr(g.eventId), j(
4310
+ X("calendarWorkspace.details.docked", { name: Pn })
4308
4311
  );
4309
4312
  }
4310
4313
  }
@@ -4318,42 +4321,42 @@ function Pc({
4318
4321
  at,
4319
4322
  Pe,
4320
4323
  se,
4321
- V,
4322
- Y,
4324
+ j,
4325
+ X,
4323
4326
  gn,
4324
4327
  sr
4325
4328
  ]);
4326
- const Re = $(U.tick);
4327
- G(() => {
4328
- Re.current !== U.tick && (Re.current = U.tick, on(!1), se("create"), at(y.editor));
4329
- }, [U.tick, se, at]);
4329
+ const Re = $(H.tick);
4330
+ V(() => {
4331
+ Re.current !== H.tick && (Re.current = H.tick, on(!1), se("create"), at(y.editor));
4332
+ }, [H.tick, se, at]);
4330
4333
  const un = $(Pt);
4331
- G(() => {
4334
+ V(() => {
4332
4335
  un.current !== Pt && (un.current = Pt, on(!0), se("create"), at(y.editor));
4333
4336
  }, [Pt, se, at]);
4334
4337
  const ht = $((ie == null ? void 0 : ie.tick) ?? 0);
4335
- G(() => {
4338
+ V(() => {
4336
4339
  const u = (ie == null ? void 0 : ie.tick) ?? 0;
4337
4340
  ht.current !== u && (ht.current = u, at(y.findSlots));
4338
4341
  }, [ie == null ? void 0 : ie.tick, at]);
4339
4342
  const Zn = $(lt);
4340
- G(() => {
4343
+ V(() => {
4341
4344
  Zn.current !== lt && (Zn.current = lt, at(y.bookings));
4342
4345
  }, [lt, at]);
4343
4346
  const Tr = $(S);
4344
- G(() => {
4347
+ V(() => {
4345
4348
  Tr.current !== S && (Tr.current = S, at(y.waitingList));
4346
- }, [S, at]), G(() => {
4349
+ }, [S, at]), V(() => {
4347
4350
  if (i !== y.notes) {
4348
4351
  i && (lr.current = i);
4349
4352
  return;
4350
4353
  }
4351
4354
  if (tt) return;
4352
- const u = lr.current, H = Ya(u) && v.has(u) || Jt.has(u) ? u : y.appointments;
4353
- Pe(H), cancelAnimationFrame(sn.current), sn.current = requestAnimationFrame(() => {
4355
+ const u = lr.current, U = Ya(u) && v.has(u) || Jt.has(u) ? u : y.appointments;
4356
+ Pe(U), cancelAnimationFrame(sn.current), sn.current = requestAnimationFrame(() => {
4354
4357
  var ft;
4355
4358
  const ae = s.current;
4356
- ae != null && ae.querySelector(`[data-active-tool="${CSS.escape(H)}"]`) && ((ft = ae.querySelector(`[data-tool-id="${CSS.escape(H)}"]`)) == null || ft.focus());
4359
+ ae != null && ae.querySelector(`[data-active-tool="${CSS.escape(U)}"]`) && ((ft = ae.querySelector(`[data-tool-id="${CSS.escape(U)}"]`)) == null || ft.focus());
4357
4360
  });
4358
4361
  }, [
4359
4362
  i,
@@ -4364,7 +4367,7 @@ function Pc({
4364
4367
  s
4365
4368
  ]);
4366
4369
  const pe = $(null);
4367
- return G(() => {
4370
+ return V(() => {
4368
4371
  if (!i) {
4369
4372
  pe.current = null;
4370
4373
  return;
@@ -4399,10 +4402,10 @@ function _c({
4399
4402
  practiceSettings: l,
4400
4403
  focusAppointmentId: P,
4401
4404
  focusBookingId: le,
4402
- focusBookingKey: V,
4405
+ focusBookingKey: j,
4403
4406
  createParameters: xe,
4404
4407
  freeSlot: se,
4405
- businessHours: U,
4408
+ businessHours: H,
4406
4409
  availableTools: Be,
4407
4410
  schedulerLicenseKey: Ne,
4408
4411
  noteUnrecordedEdits: O = !1,
@@ -4414,7 +4417,7 @@ function _c({
4414
4417
  createPatientFromBooking: Z,
4415
4418
  createPatient: he,
4416
4419
  proposeFirstVisit: Nt,
4417
- preferences: j,
4420
+ preferences: Y,
4418
4421
  onFinderSearchRange: K,
4419
4422
  loadAppointmentEditor: re,
4420
4423
  loadAppointmentDetails: ue,
@@ -4435,16 +4438,16 @@ function _c({
4435
4438
  initialView: Vt,
4436
4439
  onViewChange: Et
4437
4440
  }) {
4438
- const { t: oe, i18n: ar } = gt("ui"), jt = l == null ? void 0 : l.value.patientNotices, vn = jt == null ? void 0 : jt.reminderSms, tn = jt == null ? void 0 : jt.reminderEmail, He = B(
4441
+ const { t: oe, i18n: ar } = gt("ui"), jt = l == null ? void 0 : l.value.patientNotices, vn = jt == null ? void 0 : jt.reminderSms, tn = jt == null ? void 0 : jt.reminderEmail, Ue = B(
4439
4442
  () => vn === void 0 && tn === void 0 ? void 0 : { sms: vn, email: tn },
4440
4443
  [vn, tn]
4441
4444
  ), [gn, sr] = _(
4442
4445
  zi
4443
- ), Ue = Ie ?? gn, kn = je ?? sr, St = p ?? ar.language ?? "en", [xt, An] = _(null), [zn, Hn] = _(null), Cn = $(null), o = (Be ?? Ps).join("|"), kt = B(
4444
- () => Hi(o.split("|")),
4446
+ ), He = Ie ?? gn, kn = je ?? sr, St = p ?? ar.language ?? "en", [xt, An] = _(null), [zn, Un] = _(null), Cn = $(null), o = (Be ?? Ps).join("|"), kt = B(
4447
+ () => Ui(o.split("|")),
4445
4448
  [o]
4446
4449
  ), f = (k == null ? void 0 : k.editAppointment) === !1, ot = B(
4447
- () => Ui(w ?? Wc),
4450
+ () => Hi(w ?? Wc),
4448
4451
  [w]
4449
4452
  ), Wn = ot.tools.some(
4450
4453
  (t) => t.hold === !0 && t.id === xt
@@ -4452,7 +4455,7 @@ function _c({
4452
4455
  () => new Set(ot.tools.map((t) => t.id)),
4453
4456
  [ot]
4454
4457
  ), L = $(/* @__PURE__ */ new Set()), et = ot.rejected.map(({ id: t, reason: a }) => `"${t}" (${a})`).join(", ");
4455
- G(() => {
4458
+ V(() => {
4456
4459
  }, [et]);
4457
4460
  const ee = B(
4458
4461
  () => ({ ...ja, ...N }),
@@ -4464,7 +4467,7 @@ function _c({
4464
4467
  const a = Bs(t);
4465
4468
  return a ? { ...a, ...N } : void 0;
4466
4469
  },
4467
- j
4470
+ Y
4468
4471
  ), At = B(
4469
4472
  () => fe && ct.resourceKind !== "none" ? { ...ct, resourceKind: "none" } : ct,
4470
4473
  [fe, ct]
@@ -4486,7 +4489,7 @@ function _c({
4486
4489
  handleComposeNew: Me,
4487
4490
  handleRemoveWaiting: or,
4488
4491
  handleUpsertWaiting: cr,
4489
- handleOpenBacklog: Y,
4492
+ handleOpenBacklog: X,
4490
4493
  handleVisibleRangeChange: Ae,
4491
4494
  handleDeleteAppointment: Pe,
4492
4495
  handleMoveOccurrence: qe,
@@ -4497,7 +4500,7 @@ function _c({
4497
4500
  handleDescriptionChange: We,
4498
4501
  handleBookSlot: tt,
4499
4502
  handleRevealAppointment: nt,
4500
- handleCreateAppointment: Un,
4503
+ handleCreateAppointment: Hn,
4501
4504
  handleFindSlotsForWaiting: an,
4502
4505
  clearFindSlotsSeed: sn,
4503
4506
  handleBookSlotFromFinder: Bn,
@@ -4580,7 +4583,7 @@ function _c({
4580
4583
  }) : a ? Pe(t, a) : Pe(t);
4581
4584
  },
4582
4585
  [Pe, ke]
4583
- ), Ht = B(
4586
+ ), Ut = B(
4584
4587
  () => Ke ? (t) => {
4585
4588
  const a = ke(t.eventId);
4586
4589
  return Ke(
@@ -4605,7 +4608,7 @@ function _c({
4605
4608
  } : void 0,
4606
4609
  [It, ke]
4607
4610
  ), [we] = _(ri), [de, z] = _(null), Nn = $(null), $n = $(void 0);
4608
- G(() => {
4611
+ V(() => {
4609
4612
  var t;
4610
4613
  $n.current = (t = Nn.current) == null ? void 0 : t.id, Nn.current = null;
4611
4614
  }, [Ct.tick]);
@@ -4625,8 +4628,8 @@ function _c({
4625
4628
  ), jn = m(
4626
4629
  (t) => pt(() => Bn(t)),
4627
4630
  [pt, Bn]
4628
- ), [mr, Ut] = _(0), Mt = m(() => {
4629
- we.ask(() => Ut((t) => t + 1));
4631
+ ), [mr, Ht] = _(0), Mt = m(() => {
4632
+ we.ask(() => Ht((t) => t + 1));
4630
4633
  }, [we]), Dr = B(
4631
4634
  () => rn ? async (t, a) => {
4632
4635
  await rn(t, a, ...Rt(t)), Wt(
@@ -4703,7 +4706,7 @@ function _c({
4703
4706
  () => Zn(!1),
4704
4707
  [Zn]
4705
4708
  );
4706
- G(() => {
4709
+ V(() => {
4707
4710
  var t;
4708
4711
  return un.current && ((t = ht.current) == null || t.call(ht, !0)), () => {
4709
4712
  var a;
@@ -4716,7 +4719,7 @@ function _c({
4716
4719
  Qn.current = Bt;
4717
4720
  const Ge = $("timeGridWeek"), er = m((t) => {
4718
4721
  Ge.current = t;
4719
- }, []), ze = $(null), u = $(null), H = $(null), ae = $(null), ft = $(null), F = m(
4722
+ }, []), ze = $(null), u = $(null), U = $(null), ae = $(null), ft = $(null), F = m(
4720
4723
  (t, a) => {
4721
4724
  var d, q, Ee, ne, me, Se;
4722
4725
  ae.current = t, t === y.settings ? (q = (d = pe.current) == null ? void 0 : d.onSettingsOpened) == null || q.call(d) : Ya(t) ? (ne = (Ee = pe.current) == null ? void 0 : Ee.onToolOpen) == null || ne.call(Ee, {
@@ -4746,7 +4749,7 @@ function _c({
4746
4749
  }),
4747
4750
  [Je, be]
4748
4751
  ), [mn, Rn] = _(null), [vt, wn] = _(null);
4749
- G(() => {
4752
+ V(() => {
4750
4753
  we.ask = (t) => {
4751
4754
  if (!we.dirty) {
4752
4755
  t();
@@ -4781,8 +4784,8 @@ function _c({
4781
4784
  });
4782
4785
  return;
4783
4786
  }
4784
- const ne = H.current;
4785
- if (H.current = null, t === null) {
4787
+ const ne = U.current;
4788
+ if (U.current = null, t === null) {
4786
4789
  requestAnimationFrame(
4787
4790
  () => requestAnimationFrame(
4788
4791
  () => {
@@ -4797,7 +4800,7 @@ function _c({
4797
4800
  return;
4798
4801
  }
4799
4802
  }
4800
- } else t === y.settings && u.current !== y.settings && (H.current = u.current);
4803
+ } else t === y.settings && u.current !== y.settings && (U.current = u.current);
4801
4804
  if (ze.current = null, u.current = t, An(t), ft.current = null, !t) {
4802
4805
  ae.current = null;
4803
4806
  return;
@@ -4808,7 +4811,7 @@ function _c({
4808
4811
  ), ia = m(() => {
4809
4812
  u.current === y.settings ? Ce() : Fe(y.settings);
4810
4813
  }, [Fe, Ce]);
4811
- G(() => {
4814
+ V(() => {
4812
4815
  const t = ft.current;
4813
4816
  !t || t.id !== xt || (ft.current = null, L.current.has(t.id) && F(t.id, t.source));
4814
4817
  }, [xt, F]);
@@ -4817,7 +4820,7 @@ function _c({
4817
4820
  ze.current === "rail" && (ze.current = null);
4818
4821
  }));
4819
4822
  }, []), tr = $(null);
4820
- G(() => {
4823
+ V(() => {
4821
4824
  tr.current = null;
4822
4825
  }, [lt]);
4823
4826
  const Ea = m(
@@ -4880,18 +4883,18 @@ function _c({
4880
4883
  toolId: t
4881
4884
  });
4882
4885
  }, [en]);
4883
- G(() => {
4886
+ V(() => {
4884
4887
  dn && Xn("");
4885
4888
  }, [dn]);
4886
4889
  const [ca, zr] = _("create"), la = m(
4887
4890
  (t) => t === "patient-care-plan" ? null : t === "appointment-details" ? kt.has(y.editor) ? (zr("details"), y.editor) : y.appointments : t === "appointment-editor" ? kt.has(y.editor) ? (zr("create"), y.editor) : y.appointments : t === "backlog" ? kt.has(y.waitingList) ? y.waitingList : y.appointments : kt.has(y.findSlots) ? (sn(), y.findSlots) : y.appointments,
4888
4891
  [sn, kt]
4889
- ), qt = lt ? $e.find((t) => t.event.id === lt.eventId) ?? null : null, Hr = B(
4892
+ ), qt = lt ? $e.find((t) => t.event.id === lt.eventId) ?? null : null, Ur = B(
4890
4893
  () => Pr(qt == null ? void 0 : qt.event.patientId, s),
4891
4894
  [qt, s]
4892
4895
  ), Wa = dt.length, Er = B(
4893
- () => Mi($e, s, i, Ue),
4894
- [$e, s, i, Ue]
4896
+ () => Mi($e, s, i, He),
4897
+ [$e, s, i, He]
4895
4898
  ), [da, Oa] = _(null), La = m(
4896
4899
  async (t, a) => {
4897
4900
  var Se, Jr;
@@ -4900,7 +4903,7 @@ function _c({
4900
4903
  if (f)
4901
4904
  throw new Error(oe("calendarWorkspace.inc1.readOnly.changeBlocked"));
4902
4905
  const d = t.editEventId ? $e.find((nr) => nr.event.id === t.editEventId) : void 0, q = Ta(d), Ee = d ? d.archiveId : $n.current, ne = Ee ? { ...t, archiveId: Ee } : t;
4903
- await (q ? Un(ne) : Un(ne, a)), $n.current = void 0;
4906
+ await (q ? Hn(ne) : Hn(ne, a)), $n.current = void 0;
4904
4907
  try {
4905
4908
  !t.editEventId && t.recurrence && ((Jr = (Se = pe.current) == null ? void 0 : Se.onRecurringCreated) == null || Jr.call(Se, {
4906
4909
  rule: fo(t.recurrence) ? "custom" : "preset",
@@ -4955,7 +4958,7 @@ function _c({
4955
4958
  },
4956
4959
  [
4957
4960
  $e,
4958
- Un,
4961
+ Hn,
4959
4962
  Wt,
4960
4963
  Fn,
4961
4964
  s,
@@ -4981,8 +4984,8 @@ function _c({
4981
4984
  return q.every((me) => !me) ? Ee() : Promise.all(q).then(Ee);
4982
4985
  },
4983
4986
  [$e, cn, oe, f, mt]
4984
- ), [Ur, ua] = _(null), pa = $(null);
4985
- pa.current = Ur;
4987
+ ), [Hr, ua] = _(null), pa = $(null);
4988
+ pa.current = Hr;
4986
4989
  const Ft = m(
4987
4990
  (t, a, d) => {
4988
4991
  var ne, me, Se, Jr;
@@ -5088,16 +5091,16 @@ function _c({
5088
5091
  ), [fa, e] = _(0), c = m(() => {
5089
5092
  e((t) => t + 1);
5090
5093
  }, []), [h, T] = _({ tick: 0 });
5091
- G(() => {
5094
+ V(() => {
5092
5095
  le && (T((t) => ({ tick: t.tick + 1, id: le })), e((t) => t + 1));
5093
- }, [le, V]);
5094
- const [C, W] = _(null), E = $(null), X = m(
5096
+ }, [le, j]);
5097
+ const [C, W] = _(null), E = $(null), G = m(
5095
5098
  (t) => {
5096
- E.current = t ? t.id : "add", W({ entry: t }), Y("waiting");
5099
+ E.current = t ? t.id : "add", W({ entry: t }), X("waiting");
5097
5100
  },
5098
- [Y]
5101
+ [X]
5099
5102
  ), ye = m(() => W(null), []), R = $(C);
5100
- G(() => {
5103
+ V(() => {
5101
5104
  var ne;
5102
5105
  const t = R.current !== null;
5103
5106
  if (R.current = C, !t || C !== null) return;
@@ -5145,7 +5148,7 @@ function _c({
5145
5148
  },
5146
5149
  [an]
5147
5150
  ), Gt = $(!1);
5148
- return G(() => {
5151
+ return V(() => {
5149
5152
  if (!Gt.current) {
5150
5153
  if (Gt.current = !0, P) {
5151
5154
  tr.current = {
@@ -5181,7 +5184,7 @@ function _c({
5181
5184
  /* @__PURE__ */ n(
5182
5185
  Pc,
5183
5186
  {
5184
- onDraftChange: Hn,
5187
+ onDraftChange: Un,
5185
5188
  workspaceRef: Cn,
5186
5189
  activeToolId: xt,
5187
5190
  availableTools: kt,
@@ -5191,7 +5194,7 @@ function _c({
5191
5194
  privacy: dn,
5192
5195
  onPrivacyOff: Tr,
5193
5196
  selectedRow: qt,
5194
- patientRef: Hr,
5197
+ patientRef: Ur,
5195
5198
  onOpenSheet: la,
5196
5199
  onAnnounce: Jn,
5197
5200
  editorMode: ca,
@@ -5215,11 +5218,11 @@ function _c({
5215
5218
  signatureCredits: x,
5216
5219
  createPatientFromBooking: Z,
5217
5220
  createPatient: he,
5218
- defaultReminders: He,
5221
+ defaultReminders: Ue,
5219
5222
  proposeFirstVisit: Nt,
5220
5223
  readOnly: f,
5221
5224
  notesSeamFor: Yn,
5222
- businessHours: U,
5225
+ businessHours: H,
5223
5226
  onSave: La,
5224
5227
  onDelete: Fa,
5225
5228
  onRecurringScopeChosen: hr,
@@ -5243,7 +5246,7 @@ function _c({
5243
5246
  onWaitingListFilterUsed: ma,
5244
5247
  onWaitingListAdvancedFilterToggled: jr,
5245
5248
  onRemoveWaiting: Kt,
5246
- onOpenEntryForm: X,
5249
+ onOpenEntryForm: G,
5247
5250
  entryForm: C,
5248
5251
  onSaveEntry: De,
5249
5252
  onCancelEntry: ye,
@@ -5253,7 +5256,7 @@ function _c({
5253
5256
  gridAxis: At.resourceKind,
5254
5257
  bookings: Er,
5255
5258
  bookingQueue: i,
5256
- backlogFilters: Ue,
5259
+ backlogFilters: He,
5257
5260
  onBacklogFiltersChange: kn,
5258
5261
  waitingListState: v,
5259
5262
  stateSinceByEventId: b,
@@ -5333,7 +5336,7 @@ function _c({
5333
5336
  id: it,
5334
5337
  availableTools: kt,
5335
5338
  schedulerLicenseKey: Ne,
5336
- preferences: j,
5339
+ preferences: Y,
5337
5340
  rows: $e,
5338
5341
  setRows: Wt,
5339
5342
  display: At,
@@ -5345,7 +5348,7 @@ function _c({
5345
5348
  detailsOnEveryClick: ue !== void 0,
5346
5349
  locale: St,
5347
5350
  readOnly: f,
5348
- placement: Ur,
5351
+ placement: Hr,
5349
5352
  onPlacementEnd: xr,
5350
5353
  createMode: Pa,
5351
5354
  onCreateModeEnd: Ar,
@@ -5360,11 +5363,11 @@ function _c({
5360
5363
  ) : rt,
5361
5364
  onComposeTask: A === void 0 ? void 0 : Mt,
5362
5365
  onOpenWaitingList: () => {
5363
- ye(), Y("waiting");
5366
+ ye(), X("waiting");
5364
5367
  },
5365
5368
  onAddWaitingEntry: f ? () => hn(
5366
5369
  oe("calendarWorkspace.inc1.readOnly.waitingBlocked")
5367
- ) : () => X(),
5370
+ ) : () => G(),
5368
5371
  waitingBadgeCount: Wa,
5369
5372
  onOpenOnlineBookings: c,
5370
5373
  onlineBookingsCount: Er.length,
@@ -5378,7 +5381,7 @@ function _c({
5378
5381
  reviewOnlyEventIds: mt,
5379
5382
  onHistory: Fn,
5380
5383
  onMoveOccurrence: Gn,
5381
- onMoveAppointment: Ht,
5384
+ onMoveAppointment: Ut,
5382
5385
  onResizeAppointment: yr,
5383
5386
  onCopyAppointment: Vn,
5384
5387
  onDeleteAppointment: (
@@ -5460,7 +5463,7 @@ function id({
5460
5463
  guard: l,
5461
5464
  requestClose: P,
5462
5465
  discardDialog: le
5463
- } = lo(), V = m(
5466
+ } = lo(), j = m(
5464
5467
  () => P(k),
5465
5468
  [P, k]
5466
5469
  ), xe = B(
@@ -5470,7 +5473,7 @@ function id({
5470
5473
  ), se = B(
5471
5474
  () => ({ ...zc(i), ...g }),
5472
5475
  [i, g]
5473
- ), U = b ?? N(
5476
+ ), H = b ?? N(
5474
5477
  (Ne = p.prefill) != null && Ne.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
5475
5478
  ), Be = /* @__PURE__ */ n(
5476
5479
  Fr,
@@ -5479,7 +5482,7 @@ function id({
5479
5482
  intent: "ghost",
5480
5483
  size: "sm",
5481
5484
  "aria-label": N("common.close", "Close"),
5482
- onClick: V
5485
+ onClick: j
5483
5486
  }
5484
5487
  );
5485
5488
  return /* @__PURE__ */ I(Sn, { children: [
@@ -5487,16 +5490,16 @@ function id({
5487
5490
  te,
5488
5491
  {
5489
5492
  open: r,
5490
- onOpenChange: (O) => O ? s(!0) : V(),
5493
+ onOpenChange: (O) => O ? s(!0) : j(),
5491
5494
  id: v,
5492
5495
  children: /* @__PURE__ */ I(te.Content, { flush: !0, hideCloseButton: !0, "aria-describedby": void 0, children: [
5493
- /* @__PURE__ */ n(te.Title, { asChild: !0, children: /* @__PURE__ */ n("span", { className: "ds:sr-only", children: U }) }),
5496
+ /* @__PURE__ */ n(te.Title, { asChild: !0, children: /* @__PURE__ */ n("span", { className: "ds:sr-only", children: H }) }),
5494
5497
  /* @__PURE__ */ n(
5495
5498
  "div",
5496
5499
  {
5497
5500
  "data-component": "appointment-editor-dialog",
5498
5501
  className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
5499
- children: /* @__PURE__ */ n(Rs, { children: /* @__PURE__ */ n(As, { value: i, children: /* @__PURE__ */ n(Hs, { value: xe, children: /* @__PURE__ */ n(Ws, { value: l, children: /* @__PURE__ */ n(Go, { actions: Be, children: /* @__PURE__ */ n(
5502
+ children: /* @__PURE__ */ n(Rs, { children: /* @__PURE__ */ n(As, { value: i, children: /* @__PURE__ */ n(Us, { value: xe, children: /* @__PURE__ */ n(Ws, { value: l, children: /* @__PURE__ */ n(Go, { actions: Be, children: /* @__PURE__ */ n(
5500
5503
  Xa,
5501
5504
  {
5502
5505
  ...p,
@@ -5520,4 +5523,4 @@ export {
5520
5523
  sd as C,
5521
5524
  ad as i
5522
5525
  };
5523
- //# sourceMappingURL=calendar-appointment-editor-dialog-BfoEpFVx.js.map
5526
+ //# sourceMappingURL=calendar-appointment-editor-dialog-B9MtcBvx.js.map