@alfadocs/ui-kit 1.149.1 → 1.150.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/_chunks/{ai-summary-panel-Cdsve-XN.js → ai-summary-panel-D-RNe-_n.js} +3 -3
  2. package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CE-i9j-s.js} +2 -2
  3. package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
  4. package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-BO31ZFQp.js} +2 -2
  5. package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-C9kWtC6m.js} +90 -78
  6. package/dist/_chunks/appointment-peek-CGJ6kUvM.js +213 -0
  7. package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-ynFqcw0S.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-Dx5VDREk.js} +2 -2
  9. package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-DiyJQcmA.js} +2 -2
  10. package/dist/_chunks/{calendar-appointment-editor-dialog-fQleWmJE.js → calendar-appointment-editor-dialog-BfoEpFVx.js} +360 -356
  11. package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-DO506cJu.js} +4 -4
  12. package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-CyMTv2y3.js} +7 -7
  13. package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-X3aXbDTo.js} +2 -2
  14. package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-C8x8kPb4.js} +10 -10
  15. package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-Bpemmnpd.js} +4 -4
  16. package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
  17. package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
  18. package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-Cd0TBEhL.js} +2 -2
  19. package/dist/_chunks/{control-room-rail-BQvaYowi.js → control-room-rail-4W1MFY-g.js} +3 -3
  20. package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-Zws6CHhK.js} +3 -3
  21. package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
  22. package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
  23. package/dist/_chunks/feature-preview-switch-PKeLaFry.js +75 -0
  24. package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DzOCQBAO.js} +163 -178
  25. package/dist/_chunks/folder-CH9PJHou.js +36 -0
  26. package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-B_wMJ82X.js} +2 -2
  27. package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
  28. package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-BguRX8VC.js} +374 -341
  29. package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-BzGnlIjq.js} +2 -2
  30. package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
  31. package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-Om_yZvFG.js} +2 -2
  32. package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-YKnBzmwE.js} +3 -3
  33. package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-DERfQbp5.js} +5 -5
  34. package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-BUD0UbmT.js} +3 -3
  35. package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-DytaHdGw.js} +201 -200
  36. package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-7Werxl48.js} +126 -139
  37. package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BF3rakTQ.js} +2 -2
  38. package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-C1QQGPQf.js} +3 -3
  39. package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-CzEuCaqv.js} +3 -3
  40. package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-BMW4t57s.js} +2 -2
  41. package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CrjD5PYW.js} +2 -2
  42. package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-Kl1M0dtT.js} +3 -3
  43. package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-kdKbGQE6.js} +3 -3
  44. package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-CW0frsMv.js} +2 -2
  45. package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-54AFY6uy.js} +2 -2
  46. package/dist/_chunks/{rich-text-editor-eGdYDPK2.js → rich-text-editor-DCQEpaIv.js} +1398 -1280
  47. package/dist/_chunks/{task-editor-C-4I2sBa.js → task-editor-CIHQQRtP.js} +5 -5
  48. package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-Bc_odkQN.js} +2 -2
  49. package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
  50. package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-CJBtqzMs.js} +337 -320
  51. package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
  52. package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
  53. package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-B6m47Jie.js} +44 -46
  54. package/dist/_chunks/{use-appointment-details-read-Bl1DHXQ2.js → use-appointment-details-read-HVHbR0Zl.js} +769 -745
  55. package/dist/agent-catalog.json +15 -1
  56. package/dist/appointment-editor-panel/index.js +4 -4
  57. package/dist/booking-tools-data/index.js +1 -1
  58. package/dist/browser-support.js +1 -1
  59. package/dist/calendar-action-buttons/index.js +1 -1
  60. package/dist/components/_shared/appointment-format.d.ts +4 -0
  61. package/dist/components/_shared/patient-field-row.d.ts +5 -1
  62. package/dist/components/ai-summary-panel/index.js +1 -1
  63. package/dist/components/appointment-card/index.js +2 -2
  64. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +5 -2
  65. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
  66. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +3 -0
  67. package/dist/components/appointment-details-panel/index.js +2 -2
  68. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
  69. package/dist/components/appointment-peek/index.js +1 -1
  70. package/dist/components/appointment-timeline/index.js +1 -1
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calls-panel/index.js +1 -1
  73. package/dist/components/care-plan-card/index.js +1 -1
  74. package/dist/components/care-plan-entry-card/index.js +1 -1
  75. package/dist/components/communications-panel/index.js +1 -1
  76. package/dist/components/control-room-rail/index.js +1 -1
  77. package/dist/components/document-preview/index.js +1 -1
  78. package/dist/components/editable-description/editable-description.d.ts +7 -0
  79. package/dist/components/editable-description/index.js +1 -1
  80. package/dist/components/entity-summary/index.js +1 -1
  81. package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
  82. package/dist/components/feature-preview-switch/index.d.ts +2 -0
  83. package/dist/components/feature-preview-switch/index.js +5 -0
  84. package/dist/components/file-manager/index.js +1 -1
  85. package/dist/components/index.d.ts +1 -0
  86. package/dist/components/notes-panel/index.js +1 -1
  87. package/dist/components/notes-panel/notes-panel.d.ts +20 -0
  88. package/dist/components/optical-prescription/index.js +1 -1
  89. package/dist/components/panel-header/index.js +1 -1
  90. package/dist/components/panel-header/panel-header.d.ts +8 -0
  91. package/dist/components/panel-subview/index.js +1 -1
  92. package/dist/components/patient-details/index.js +1 -1
  93. package/dist/components/patient-summary-card/index.js +1 -1
  94. package/dist/components/patient-summary-card/patient-summary-card.d.ts +9 -0
  95. package/dist/components/patient-table/index.js +1 -1
  96. package/dist/components/payment-card/index.js +1 -1
  97. package/dist/components/radiograph-panel/index.js +1 -1
  98. package/dist/components/registry-connection-panel/index.js +1 -1
  99. package/dist/components/reviews-panel/index.js +1 -1
  100. package/dist/components/rich-text-editor/editor-toolbar.d.ts +4 -1
  101. package/dist/components/rich-text-editor/index.js +1 -1
  102. package/dist/components/task-editor/index.js +1 -1
  103. package/dist/components/tasks-panel/index.js +1 -1
  104. package/dist/components/text-area/index.js +1 -1
  105. package/dist/components/text-area/text-area.d.ts +15 -0
  106. package/dist/components/tool-rail/index.js +1 -1
  107. package/dist/components/tool-rail/tool-rail.d.ts +12 -1
  108. package/dist/components/transaction-chip/index.js +1 -1
  109. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  110. package/dist/components/transcript-panel/index.js +1 -1
  111. package/dist/components/treatment-receipt/index.js +1 -1
  112. package/dist/core.css +1 -1
  113. package/dist/find-free-slots-panel/index.js +1 -1
  114. package/dist/host-legacy.css +51 -4
  115. package/dist/i18n/locales/ar.d.ts +9 -0
  116. package/dist/i18n/locales/ar.js +8 -2
  117. package/dist/i18n/locales/de.d.ts +9 -0
  118. package/dist/i18n/locales/de.js +8 -2
  119. package/dist/i18n/locales/el.d.ts +9 -0
  120. package/dist/i18n/locales/el.js +10 -1
  121. package/dist/i18n/locales/en.d.ts +9 -0
  122. package/dist/i18n/locales/en.js +11 -2
  123. package/dist/i18n/locales/es.d.ts +9 -0
  124. package/dist/i18n/locales/es.js +10 -1
  125. package/dist/i18n/locales/fr.d.ts +9 -0
  126. package/dist/i18n/locales/fr.js +10 -1
  127. package/dist/i18n/locales/hi.d.ts +9 -0
  128. package/dist/i18n/locales/hi.js +8 -2
  129. package/dist/i18n/locales/it.d.ts +19 -10
  130. package/dist/i18n/locales/it.js +20 -11
  131. package/dist/i18n/locales/ja.d.ts +9 -0
  132. package/dist/i18n/locales/ja.js +8 -2
  133. package/dist/i18n/locales/nl.d.ts +9 -0
  134. package/dist/i18n/locales/nl.js +8 -2
  135. package/dist/i18n/locales/pl.d.ts +9 -0
  136. package/dist/i18n/locales/pl.js +10 -1
  137. package/dist/i18n/locales/pt.d.ts +9 -0
  138. package/dist/i18n/locales/pt.js +10 -1
  139. package/dist/i18n/locales/ro.d.ts +9 -0
  140. package/dist/i18n/locales/ro.js +10 -1
  141. package/dist/i18n/locales/ru.d.ts +9 -0
  142. package/dist/i18n/locales/ru.js +8 -2
  143. package/dist/i18n/locales/sq.d.ts +9 -0
  144. package/dist/i18n/locales/sq.js +10 -1
  145. package/dist/i18n/locales/sv.d.ts +9 -0
  146. package/dist/i18n/locales/sv.js +8 -2
  147. package/dist/i18n/locales/tr.d.ts +9 -0
  148. package/dist/i18n/locales/tr.js +8 -2
  149. package/dist/i18n/locales/zh.d.ts +9 -0
  150. package/dist/i18n/locales/zh.js +8 -2
  151. package/dist/index.js +775 -773
  152. package/dist/locales/ar.json +10 -1
  153. package/dist/locales/de.json +10 -1
  154. package/dist/locales/el.json +10 -1
  155. package/dist/locales/en.json +11 -2
  156. package/dist/locales/es.json +10 -1
  157. package/dist/locales/fr.json +10 -1
  158. package/dist/locales/hi.json +10 -1
  159. package/dist/locales/it.json +20 -11
  160. package/dist/locales/ja.json +10 -1
  161. package/dist/locales/nl.json +10 -1
  162. package/dist/locales/pl.json +10 -1
  163. package/dist/locales/pt.json +10 -1
  164. package/dist/locales/ro.json +10 -1
  165. package/dist/locales/ru.json +10 -1
  166. package/dist/locales/sq.json +10 -1
  167. package/dist/locales/sv.json +10 -1
  168. package/dist/locales/tr.json +10 -1
  169. package/dist/locales/zh.json +10 -1
  170. package/dist/online-bookings-panel/index.js +2 -2
  171. package/dist/patterns/anamnesis/index.js +1 -1
  172. package/dist/patterns/calendar/index.js +4 -4
  173. package/dist/patterns/help-me-write-templates/index.js +1 -1
  174. package/dist/patterns/patient-account-settings/index.js +1 -1
  175. package/dist/patterns/patient-check-in/index.js +1 -1
  176. package/dist/patterns/patient-portal/index.js +2 -2
  177. package/dist/tokens.css +1 -1
  178. package/dist/waiting-list-panel/index.js +3 -3
  179. package/package.json +5 -1
  180. package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
  181. package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
  182. package/dist/_chunks/folder-BghC8_S2.js +0 -20
  183. package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
@@ -3,26 +3,26 @@ import { useState as _, useMemo as B, useRef as $, useEffect as G, useCallback a
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-CuZW-CGT.js";
6
+ import { A as Zs } from "./appointment-timeline-ynFqcw0S.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-4zmA3BFE.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";
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-C-4I2sBa.js";
17
- import { C as Ji, u as Na, a as Zi, d as Qi } from "./control-room-rail-BQvaYowi.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
18
  import { S as $s } from "./scroll-area-CY5SLYNw.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-DWS_kM-a.js";
24
- import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-Bl1DHXQ2.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-lgAqJB34.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";
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";
@@ -43,10 +43,10 @@ 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-B3raO90X.js";
46
+ import { A as Eo } from "./appointment-peek-CGJ6kUvM.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--_j07UG1.js";
49
+ import { f as _r, b as gr, I as xo, s as Ao } from "./appointment-details-panel.identity-C9kWtC6m.js";
50
50
  import { createPortal as Wo } from "react-dom";
51
51
  import { D as Oo } from "./data-table-DFAYYsSc.js";
52
52
  import { E as Lo } from "./eye-off-C_4xkbRP.js";
@@ -58,16 +58,16 @@ 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-BKBHfBpn.js";
61
+ import { W as zo } from "./calendar-waiting-list-panel-CyMTv2y3.js";
62
62
  import { C as Ho } from "./calendar-days-BGWklvE-.js";
63
63
  import { C as Ha } from "./calendar-clock-hbObjfGY.js";
64
- import { P as Ia } from "./privacy-mask-zVh0ntm0.js";
64
+ import { P as Ia } from "./privacy-mask-CrjD5PYW.js";
65
65
  import { S as Uo } 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";
69
69
  import { N as Ns } from "./notebook-pen-CO7HoM-W.js";
70
- import { a as Go } from "./panel-header-CbtlTe85.js";
70
+ import { a as Go } from "./panel-header-DTc5OFUg.js";
71
71
  import { X as Vo } from "./x-B5YnXwCz.js";
72
72
  function ws(r) {
73
73
  const s = new Date(r), i = `${s.getMonth() + 1}`.padStart(2, "0"), v = `${s.getDate()}`.padStart(2, "0");
@@ -141,7 +141,7 @@ function Zo({
141
141
  () => se.filter((x) => ws(x.startIso) === V),
142
142
  [se, V]
143
143
  ), Be = B(
144
- () => U.filter((x) => x.state === "waiting" || x.state === "in_care").sort((x, J) => +new Date(x.startIso) - +new Date(J.startIso)).map((x) => ({
144
+ () => U.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
  })),
@@ -231,9 +231,9 @@ function Zo({
231
231
  {
232
232
  role: "list",
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
- children: Be.map(({ item: x, sinceIso: J }) => {
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}`), ae = J ? Xo(new Date(J).getTime(), le, s) : void 0;
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;
237
237
  return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ I(
238
238
  "button",
239
239
  {
@@ -262,11 +262,11 @@ function Zo({
262
262
  value: he,
263
263
  option: {
264
264
  value: he,
265
- label: ae ? p(
265
+ label: re ? p(
266
266
  "calendarWorkspace.inc1.rail.upcomingLiveElapsed",
267
267
  {
268
268
  state: K,
269
- elapsed: ae
269
+ elapsed: re
270
270
  }
271
271
  ) : K,
272
272
  icon: /* @__PURE__ */ n(j, { "aria-hidden": "true" }),
@@ -285,7 +285,7 @@ function Zo({
285
285
  )
286
286
  }
287
287
  )
288
- ) : null, X = /* @__PURE__ */ n(
288
+ ) : null, J = /* @__PURE__ */ n(
289
289
  "div",
290
290
  {
291
291
  "aria-hidden": "true",
@@ -317,7 +317,7 @@ function Zo({
317
317
  "data-component": "calendar-upcoming-panel",
318
318
  "aria-busy": b ? "true" : void 0,
319
319
  className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
320
- children: b ? X : /* @__PURE__ */ n(
320
+ children: b ? J : /* @__PURE__ */ n(
321
321
  Zs,
322
322
  {
323
323
  items: ve,
@@ -341,7 +341,7 @@ function Zo({
341
341
  hasMoreEarlier: k.backDays < ts,
342
342
  hasMoreLater: k.forwardDays < ts,
343
343
  onJumpToDate: (x) => l(
344
- (J) => ci(J, N.nowIso, x)
344
+ (Z) => ci(Z, N.nowIso, x)
345
345
  )
346
346
  }
347
347
  )
@@ -500,10 +500,10 @@ function sc({
500
500
  noteUnrecordedEdits: ve,
501
501
  privacy: S = !1,
502
502
  privacyTitle: ie,
503
- locale: X
503
+ locale: J
504
504
  }) {
505
505
  var wt;
506
- const J = Cr(), { appointment: he } = r, [Nt, j] = _(!1), [K, ae] = _(), ue = $(null), st = (w) => (ce) => {
506
+ const Z = Cr(), { appointment: he } = r, [Nt, j] = _(!1), [K, re] = _(), ue = $(null), it = (w) => (ce) => {
507
507
  const fe = (Vt) => {
508
508
  var Et;
509
509
  return [
@@ -518,7 +518,7 @@ function sc({
518
518
  (ce == null ? void 0 : ce.dataset.action) === "create-task" && Ie("task"), (ce == null ? void 0 : ce.dataset.action) === "open-whatsapp" && Ie("whatsapp");
519
519
  const fe = (ce == null ? void 0 : ce.dataset.action) && rc[ce.dataset.action];
520
520
  fe && Ie(fe);
521
- }, Oe = J.operators.find((w) => w.id === he.operatorId), en = J.chairs.find((w) => w.id === he.chairId), Q = i && s ? s : void 0, Te = Q !== void 0 && !S, _e = $(i);
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
524
  return G(() => {
@@ -544,9 +544,9 @@ function sc({
544
544
  patientId: s,
545
545
  operator: Oe ? { name: Oe.title, avatarSrc: Oe.avatarSrc } : void 0,
546
546
  chair: en ? { name: en.title } : void 0,
547
- currency: J.currency ?? "EUR",
548
- now: J.nowIso,
549
- locale: X,
547
+ currency: Z.currency ?? "EUR",
548
+ now: Z.nowIso,
549
+ locale: J,
550
550
  privacy: S,
551
551
  privacyTitle: ie,
552
552
  mapsLink: O,
@@ -604,7 +604,7 @@ function sc({
604
604
  onCreate: (w) => {
605
605
  var ce, fe, Ye;
606
606
  if (se == null || se(w), (fe = (ce = r.documents) == null ? void 0 : ce.seriesScope) != null && fe.kinds.includes(w)) {
607
- ae(w);
607
+ re(w);
608
608
  return;
609
609
  }
610
610
  (Ye = r.documents) == null || Ye.onCreate(w), Ie("document");
@@ -617,12 +617,12 @@ function sc({
617
617
  {
618
618
  open: K !== void 0,
619
619
  onOpenChange: (w) => {
620
- w || ae(void 0);
620
+ w || re(void 0);
621
621
  },
622
- onCloseAutoFocus: st("open-create-document"),
622
+ onCloseAutoFocus: it("open-create-document"),
623
623
  onConfirm: (w) => {
624
624
  var ce;
625
- K && ((ce = r.documents) == null || ce.onCreate(K, { scope: w }), Ie("document")), ae(void 0);
625
+ K && ((ce = r.documents) == null || ce.onCreate(K, { scope: w }), Ie("document")), re(void 0);
626
626
  }
627
627
  }
628
628
  ) : null,
@@ -633,7 +633,7 @@ function sc({
633
633
  onOpenChange: j,
634
634
  scopes: V == null ? void 0 : V.scopes,
635
635
  offersCarePlanCleanup: V == null ? void 0 : V.offersCarePlanCleanup,
636
- onCloseAutoFocus: st("delete-appointment"),
636
+ onCloseAutoFocus: it("delete-appointment"),
637
637
  onConfirm: async (w) => {
638
638
  await le(w), Ie("delete");
639
639
  }
@@ -941,8 +941,8 @@ function yc({
941
941
  valueGetter: (ve) => {
942
942
  var S;
943
943
  return ((S = N.operators.find((ie) => {
944
- var X;
945
- return ie.id === ((X = ve.data) == null ? void 0 : X.operatorId);
944
+ var J;
945
+ return ie.id === ((J = ve.data) == null ? void 0 : J.operatorId);
946
946
  })) == null ? void 0 : S.title) ?? "—";
947
947
  }
948
948
  }) : i === "operator" ? O.push({
@@ -952,8 +952,8 @@ function yc({
952
952
  valueGetter: (ve) => {
953
953
  var S;
954
954
  return ((S = N.chairs.find((ie) => {
955
- var X;
956
- return ie.id === ((X = ve.data) == null ? void 0 : X.chairId);
955
+ var J;
956
+ return ie.id === ((J = ve.data) == null ? void 0 : J.chairId);
957
957
  })) == null ? void 0 : S.title) ?? "—";
958
958
  }
959
959
  }) : O.push({
@@ -1029,7 +1029,7 @@ function yc({
1029
1029
  ] }),
1030
1030
  b ? /* @__PURE__ */ n("p", { className: "type-body-sm", children: k(P("privacyNote")) }) : null,
1031
1031
  r.map((O, ve) => {
1032
- const S = vr(O.date), ie = O.groups.some((X) => X.rows.length > 0);
1032
+ const S = vr(O.date), ie = O.groups.some((J) => J.rows.length > 0);
1033
1033
  return /* @__PURE__ */ I(
1034
1034
  "section",
1035
1035
  {
@@ -1037,13 +1037,13 @@ function yc({
1037
1037
  className: ie && ve > 0 ? "ds:break-before-page" : void 0,
1038
1038
  children: [
1039
1039
  /* @__PURE__ */ n("h2", { className: "type-title-section ds:mt-[var(--spacing-md)]", children: gr(p, O.date) }),
1040
- ie ? O.groups.map((X) => /* @__PURE__ */ I(
1040
+ ie ? O.groups.map((J) => /* @__PURE__ */ I(
1041
1041
  "div",
1042
1042
  {
1043
1043
  className: "ds:mt-[var(--spacing-sm)] ds:break-inside-avoid",
1044
1044
  children: [
1045
- X.kind === "all" ? null : /* @__PURE__ */ n("h3", { className: "type-title-item", children: X.title ?? k(P("noOperator")) }),
1046
- X.rows.length === 0 ? /* @__PURE__ */ n("p", { className: "type-body-sm", children: k(P("noAppointments")) }) : (
1045
+ J.kind === "all" ? null : /* @__PURE__ */ n("h3", { className: "type-title-item", children: J.title ?? k(P("noOperator")) }),
1046
+ J.rows.length === 0 ? /* @__PURE__ */ n("p", { className: "type-body-sm", children: k(P("noAppointments")) }) : (
1047
1047
  /* AG Grid asks for a row's height once, when the node
1048
1048
  is created — a height signature in the key remounts
1049
1049
  the grid when masking or an edit changes a row. */
@@ -1051,36 +1051,36 @@ function yc({
1051
1051
  Oo,
1052
1052
  {
1053
1053
  columnDefs: le,
1054
- rowData: X.rows,
1054
+ rowData: J.rows,
1055
1055
  printMode: !0,
1056
1056
  density: "compact",
1057
1057
  bordered: !0,
1058
- gridId: `print-${S}-${X.id}`,
1058
+ gridId: `print-${S}-${J.id}`,
1059
1059
  gridOptions: xe
1060
1060
  },
1061
- X.rows.map((x) => as(x, V)).join(".")
1061
+ J.rows.map((x) => as(x, V)).join(".")
1062
1062
  )
1063
1063
  )
1064
1064
  ]
1065
1065
  },
1066
- X.id
1066
+ J.id
1067
1067
  )) : /* @__PURE__ */ n("p", { className: "type-body-sm", children: k(P("noAppointments")) }),
1068
1068
  O.tasks.length > 0 ? /* @__PURE__ */ I("div", { className: "type-body-sm ds:mt-[var(--spacing-sm)]", children: [
1069
1069
  /* @__PURE__ */ n("p", { children: k(P("tasks"), { n: O.tasks.length }) }),
1070
- /* @__PURE__ */ n("ul", { className: "ds:m-0 ds:list-none ds:p-0", children: O.tasks.map((X) => /* @__PURE__ */ I("li", { children: [
1071
- X.allDay ? l("calendar.allDay") : _r(p, X.start),
1070
+ /* @__PURE__ */ n("ul", { className: "ds:m-0 ds:list-none ds:p-0", children: O.tasks.map((J) => /* @__PURE__ */ I("li", { children: [
1071
+ J.allDay ? l("calendar.allDay") : _r(p, J.start),
1072
1072
  " ",
1073
1073
  "· ",
1074
- X.title
1075
- ] }, X.id)) })
1074
+ J.title
1075
+ ] }, J.id)) })
1076
1076
  ] }) : null,
1077
- O.notes.map((X) => /* @__PURE__ */ n(
1077
+ O.notes.map((J) => /* @__PURE__ */ n(
1078
1078
  "p",
1079
1079
  {
1080
1080
  className: "type-body-sm",
1081
- children: Ne(X)
1081
+ children: Ne(J)
1082
1082
  },
1083
- `${X.kind}-${X.kind === "absence" ? X.operatorId : ""}`
1083
+ `${J.kind}-${J.kind === "absence" ? J.operatorId : ""}`
1084
1084
  ))
1085
1085
  ]
1086
1086
  },
@@ -1117,16 +1117,16 @@ function Sc({
1117
1117
  onBookSlotFromFinder: ve,
1118
1118
  display: S,
1119
1119
  setDisplay: ie,
1120
- defaultDisplay: X,
1120
+ defaultDisplay: J,
1121
1121
  onHistory: x,
1122
- readOnly: J = !1,
1122
+ readOnly: Z = !1,
1123
1123
  reviewOnlyEventIds: he,
1124
1124
  detailsOnEveryClick: Nt = !1,
1125
1125
  gridHeld: j = !1,
1126
1126
  placement: K = null,
1127
- onPlacementEnd: ae,
1127
+ onPlacementEnd: re,
1128
1128
  createMode: ue = null,
1129
- onCreateModeEnd: st,
1129
+ onCreateModeEnd: it,
1130
1130
  focusScroll: Ie = null,
1131
1131
  saveNotice: je = null,
1132
1132
  privacy: Oe,
@@ -1167,15 +1167,15 @@ function Sc({
1167
1167
  )
1168
1168
  ),
1169
1169
  [_e]
1170
- ), f = Cr(), { t: it } = gt("ui"), { open: Wn } = ho(), D = (e) => `calendarWorkspace.${e}`, L = (e) => `calendarWorkspace.inc1.${e}`, et = $(null), [ee, ot] = _(null);
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
1171
  G(() => {
1172
1172
  if (!ee) return;
1173
1173
  const e = new MutationObserver(() => {
1174
- ee.el.isConnected || ot(null);
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
1177
  }, [ee]), G(
1178
- () => ot(null),
1178
+ () => ct(null),
1179
1179
  [Q, S.resourceKind, S.orientation]
1180
1180
  );
1181
1181
  const On = B(() => {
@@ -1196,10 +1196,10 @@ function Sc({
1196
1196
  (C) => T.delete(h(C)) && C.start.getTime() === e && C.start.getTime() + C.durationMin * 6e4 === c && (!ee.event.resourceId || (S.resourceKind === "operator" ? C.operatorId : C.chairId) === ee.event.resourceId)
1197
1197
  );
1198
1198
  }, [Q, ee, S.resourceKind]), At = (e) => {
1199
- if (J || !ee || Q !== ee.source || !ee.el.isConnected)
1199
+ if (Z || !ee || Q !== ee.source || !ee.el.isConnected)
1200
1200
  return;
1201
1201
  const c = f.cares.find((h) => h.id === e.careId);
1202
- ot(null), ve({
1202
+ ct(null), ve({
1203
1203
  date: e.start,
1204
1204
  time: { hours: e.start.getHours(), minutes: e.start.getMinutes() },
1205
1205
  durationMin: e.durationMin,
@@ -1214,14 +1214,14 @@ function Sc({
1214
1214
  }), Wn("appointment-editor");
1215
1215
  }, nn = On.length === 1 ? On[0] : void 0, Wt = $(At);
1216
1216
  Wt.current = At, G(() => {
1217
- nn && !J && Wt.current(nn);
1218
- }, [nn, J]);
1219
- const ct = $(null), Yt = fc(
1217
+ nn && !Z && Wt.current(nn);
1218
+ }, [nn, Z]);
1219
+ const lt = $(null), Yt = fc(
1220
1220
  S.colorAssociation === "status",
1221
- ct
1222
- ), lt = $(null);
1221
+ lt
1222
+ ), dt = $(null);
1223
1223
  Qa(() => {
1224
- const e = lt.current, c = ct.current;
1224
+ const e = dt.current, c = lt.current;
1225
1225
  if (!(!e || !c))
1226
1226
  return kc(e, c);
1227
1227
  }, []);
@@ -1252,9 +1252,9 @@ function Sc({
1252
1252
  () => [],
1253
1253
  fi(f),
1254
1254
  w
1255
- ), Me = Hn !== void 0, [or, cr] = _("week"), [Z, Ae] = _(
1255
+ ), Me = Hn !== void 0, [or, cr] = _("week"), [Y, Ae] = _(
1256
1256
  () => ss(jt)
1257
- ), Pe = Me ? or : Z ?? Ir, qe = m(
1257
+ ), Pe = Me ? or : Y ?? Ir, qe = m(
1258
1258
  (e) => {
1259
1259
  if (Me) {
1260
1260
  cr(e);
@@ -1263,9 +1263,9 @@ function Sc({
1263
1263
  Ae(void 0), ir(e);
1264
1264
  },
1265
1265
  [Me, ir]
1266
- ), Ke = Me ? xs : br, Xe = Me ? xs : Fn, It = J || Me, rn = (e) => en(e(Oe)), [We, dt] = _(
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
- ), tt = $(We), [Un, an] = _(We), [sn, Bn] = _(!0), [ut, lr] = _(!1), [Mn, qn] = _(!1), [In, bn] = _(!1), [Pn, Zt] = _(!1), [yn, Dn] = _(
1268
+ ), nt = $(We), [Un, 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) => {
@@ -1296,7 +1296,7 @@ function Sc({
1296
1296
  var e;
1297
1297
  (e = pt.current) == null || e.call(pt, Nn);
1298
1298
  }, [Nn]);
1299
- const nt = Q !== null && Q.length > 0, ln = B(() => f.chairs.map((e) => e.id), [f]), jn = B(
1299
+ const rt = Q !== null && Q.length > 0, ln = B(() => f.chairs.map((e) => e.id), [f]), jn = B(
1300
1300
  () => gi(
1301
1301
  r,
1302
1302
  f.inactiveOperatorIds,
@@ -1333,7 +1333,7 @@ function Sc({
1333
1333
  }, [f.dayLoadState, Ht, 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
- }, [yn]), rt = B(
1336
+ }, [yn]), at = B(
1337
1337
  () => Ii(
1338
1338
  {
1339
1339
  rows: r,
@@ -1420,7 +1420,7 @@ function Sc({
1420
1420
  },
1421
1421
  f
1422
1422
  ), W = [];
1423
- if (nt && Q)
1423
+ if (rt && Q)
1424
1424
  for (const R of Di(Q, z))
1425
1425
  W.push({
1426
1426
  id: `avail-${R.key}`,
@@ -1429,10 +1429,10 @@ function Sc({
1429
1429
  end: R.end.toISOString(),
1430
1430
  isInternal: !0,
1431
1431
  optionCount: R.optionCount,
1432
- ...!J && R.slotCount === 1 ? { bookable: !0 } : {},
1432
+ ...!Z && R.slotCount === 1 ? { bookable: !0 } : {},
1433
1433
  ...R.resourceId ? { resourceId: R.resourceId } : {}
1434
1434
  });
1435
- const E = nt ? [] : Ti(
1435
+ const E = rt ? [] : Ti(
1436
1436
  {
1437
1437
  axisKind: z,
1438
1438
  rangeStart: c,
@@ -1443,12 +1443,12 @@ function Sc({
1443
1443
  wholeDayOnly: de
1444
1444
  },
1445
1445
  f
1446
- ), Y = [], ye = z === "operator" ? i == null ? void 0 : i.operatorId : i == null ? void 0 : i.chairId;
1446
+ ), X = [], 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
- Y.push({
1451
+ X.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
- ...Y,
1469
+ ...X,
1470
1470
  ...W,
1471
1471
  ...E,
1472
1472
  ...C
@@ -1476,7 +1476,7 @@ function Sc({
1476
1476
  Xn,
1477
1477
  z,
1478
1478
  Q,
1479
- nt,
1479
+ rt,
1480
1480
  Ut,
1481
1481
  Mt,
1482
1482
  We,
@@ -1489,7 +1489,7 @@ function Sc({
1489
1489
  de,
1490
1490
  It,
1491
1491
  he,
1492
- J,
1492
+ Z,
1493
1493
  o,
1494
1494
  f,
1495
1495
  i,
@@ -1512,8 +1512,8 @@ function Sc({
1512
1512
  title: wi(e, S.chairNameDisplay)
1513
1513
  })), Re = K ? r.find((e) => e.event.id === K.eventId) : void 0;
1514
1514
  G(() => {
1515
- K && !Re && (ae == null || ae());
1516
- }, [K, Re, ae]);
1515
+ K && !Re && (re == null || re());
1516
+ }, [K, Re, re]);
1517
1517
  const un = K && Re ? K.kind : ue ? "create" : "default", ht = K && Re ? ls(
1518
1518
  Re,
1519
1519
  S.colorAssociation,
@@ -1525,11 +1525,11 @@ function Sc({
1525
1525
  name: ue.patientName
1526
1526
  }) : o(L("placement.createBanner")) : void 0, pe = m(() => {
1527
1527
  if (K) {
1528
- ae == null || ae();
1528
+ re == null || re();
1529
1529
  return;
1530
1530
  }
1531
- st == null || st();
1532
- }, [K, ae, st]), Qn = $(0);
1531
+ it == null || it();
1532
+ }, [K, re, it]), Qn = $(0);
1533
1533
  G(() => {
1534
1534
  if (!Ie || Ie.tick === Qn.current || !r.some((c) => c.event.id === Ie.eventId)) return;
1535
1535
  Qn.current = Ie.tick;
@@ -1636,20 +1636,20 @@ function Sc({
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
  },
1638
1638
  [tn]
1639
- ), ne = m(() => Le(null), []), ft = $(""), F = $(null), be = $(vn);
1639
+ ), ae = m(() => Le(null), []), ft = $(""), F = $(null), be = $(vn);
1640
1640
  be.current = vn;
1641
1641
  const Fe = m(
1642
1642
  (e) => {
1643
1643
  var E;
1644
- tt.current = e.currentDate;
1644
+ nt.current = e.currentDate;
1645
1645
  const { view: c, axis: h } = $n.current, T = vr(e.currentDate), C = `${c}|${h ?? ""}|${T}`;
1646
1646
  F.current !== null && F.current !== C && ((E = be.current) == null || E.call(be, { view: c, date: T, ...h ? { axis: h } : {} })), F.current = C, cn.current = {
1647
1647
  start: e.start.getTime(),
1648
1648
  end: e.end.getTime()
1649
1649
  }, ur(e.title);
1650
1650
  const W = `${e.internalView}:${e.start.getTime()}-${e.end.getTime()}`;
1651
- W !== ft.current && (ft.current = W, ot(null), Le(null), yr({ start: e.start, end: e.end }), se(cn.current)), dt(
1652
- (Y) => Y.getTime() === e.currentDate.getTime() ? Y : e.currentDate
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
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, Y = 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, 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 = {
1678
1678
  ...W,
1679
1679
  ...e.resourceId ? z === "operator" ? { operatorId: e.resourceId } : { chairId: e.resourceId } : {},
1680
1680
  event: {
1681
1681
  ...W.event,
1682
- start: Y,
1682
+ start: X,
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), Y = e.newResourceId, ye = () => {
1761
+ const E = new Date(e.newStart), X = 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
- ...Y && z === "operator" ? { operatorId: Y } : {},
1772
- ...Y && z === "chair" ? { chairId: Y } : {}
1771
+ ...X && z === "operator" ? { operatorId: X } : {},
1772
+ ...X && z === "chair" ? { chairId: X } : {}
1773
1773
  });
1774
1774
  }, R = f.closureOn(
1775
1775
  vr(E),
1776
- z === "operator" ? Y : i == null ? void 0 : i.operatorId
1776
+ z === "operator" ? X : i == null ? void 0 : i.operatorId
1777
1777
  );
1778
1778
  if (R) {
1779
1779
  on({
@@ -1795,7 +1795,7 @@ function Sc({
1795
1795
  return;
1796
1796
  }
1797
1797
  if (It) {
1798
- (C = e.revert) == null || C.call(e), J && hn(o(L("readOnly.changeBlocked")));
1798
+ (C = e.revert) == null || C.call(e), Z && hn(o(L("readOnly.changeBlocked")));
1799
1799
  return;
1800
1800
  }
1801
1801
  xt == null || xt(e.event.id);
@@ -1823,8 +1823,8 @@ function Sc({
1823
1823
  action: "move",
1824
1824
  onConfirm: E,
1825
1825
  onCancel: () => {
1826
- var Y;
1827
- return (Y = e.revert) == null ? void 0 : Y.call(e);
1826
+ var X;
1827
+ return (X = e.revert) == null ? void 0 : X.call(e);
1828
1828
  }
1829
1829
  });
1830
1830
  return;
@@ -1852,7 +1852,7 @@ function Sc({
1852
1852
  o,
1853
1853
  p,
1854
1854
  f,
1855
- J,
1855
+ Z,
1856
1856
  It,
1857
1857
  he,
1858
1858
  xt,
@@ -1862,7 +1862,7 @@ function Sc({
1862
1862
  ]
1863
1863
  ), Ea = m(
1864
1864
  (e) => {
1865
- var E, Y, ye;
1865
+ var E, X, 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,11 +1871,11 @@ function Sc({
1871
1871
  return;
1872
1872
  }
1873
1873
  if (he != null && he.has(e.event.id)) {
1874
- (Y = e.revert) == null || Y.call(e);
1874
+ (X = e.revert) == null || X.call(e);
1875
1875
  return;
1876
1876
  }
1877
1877
  if (It) {
1878
- (ye = e.revert) == null || ye.call(e), J && hn(o(L("readOnly.changeBlocked")));
1878
+ (ye = e.revert) == null || ye.call(e), Z && hn(o(L("readOnly.changeBlocked")));
1879
1879
  return;
1880
1880
  }
1881
1881
  const c = e.event.id, h = e.oldEnd, { rollback: T, record: C } = Rn(c, e.newEnd), W = () => {
@@ -1922,7 +1922,7 @@ function Sc({
1922
1922
  Oe,
1923
1923
  x,
1924
1924
  o,
1925
- J,
1925
+ Z,
1926
1926
  It,
1927
1927
  he,
1928
1928
  g,
@@ -1960,7 +1960,7 @@ function Sc({
1960
1960
  );
1961
1961
  return;
1962
1962
  }
1963
- const Y = Ga(
1963
+ const X = 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: Y
1978
+ alsoIds: X
1979
1979
  },
1980
1980
  ke,
1981
1981
  ye
@@ -2011,25 +2011,25 @@ function Sc({
2011
2011
  (e = A == null ? void 0 : A.revert) == null || e.call(A), yt(o(D("moveConfirm.revertReadout"))), bt(null);
2012
2012
  }, [A, o]), hr = m(
2013
2013
  (e) => {
2014
- tt.current = e, an(e), qe("day");
2014
+ nt.current = e, an(e), qe("day");
2015
2015
  },
2016
2016
  [qe]
2017
2017
  ), wr = m(
2018
2018
  (e, c, h) => {
2019
2019
  var T, C, W;
2020
- if (nt && Q) {
2020
+ if (rt && Q) {
2021
2021
  de && hr(e.date), Le(null), b(null);
2022
2022
  return;
2023
2023
  }
2024
2024
  if (K && Re) {
2025
- if (Le(null), J) {
2026
- ae == null || ae(!1), hn(o(L("readOnly.changeBlocked")));
2025
+ if (Le(null), Z) {
2026
+ re == null || re(!1), hn(o(L("readOnly.changeBlocked")));
2027
2027
  return;
2028
2028
  }
2029
- const E = Re, Y = new Date(E.event.start), ye = new Date(e.date);
2029
+ const E = Re, X = new Date(E.event.start), ye = new Date(e.date);
2030
2030
  if (e.allDay && !E.event.allDay && ye.setHours(
2031
- Y.getHours(),
2032
- Y.getMinutes(),
2031
+ X.getHours(),
2032
+ X.getMinutes(),
2033
2033
  0,
2034
2034
  0
2035
2035
  ), K.kind === "copy") {
@@ -2040,7 +2040,7 @@ function Sc({
2040
2040
  Kt,
2041
2041
  K.withTreatments === !0
2042
2042
  );
2043
- s((re) => [...re, Dt]);
2043
+ s((ne) => [...ne, Dt]);
2044
2044
  let Gt = Kt, t = !1;
2045
2045
  const a = f.metaById[E.event.id], d = Vt == null ? void 0 : Vt({
2046
2046
  sourceId: E.event.id,
@@ -2052,14 +2052,14 @@ function Sc({
2052
2052
  t || x(Gt, { kind: "copied" });
2053
2053
  };
2054
2054
  d ? Ze(
2055
- d.then((re) => {
2056
- !re || re.id === Kt || (Gt = re.id, s(
2055
+ d.then((ne) => {
2056
+ !ne || ne.id === Kt || (Gt = ne.id, s(
2057
2057
  (me) => me.map(
2058
- (Se) => Se.event.id === Kt ? { ...Se, event: { ...Se.event, id: re.id } } : Se
2058
+ (Se) => Se.event.id === Kt ? { ...Se, event: { ...Se.event, id: ne.id } } : Se
2059
2059
  )
2060
2060
  ));
2061
2061
  }),
2062
- (re) => re.filter((me) => me.event.id !== Gt),
2062
+ (ne) => ne.filter((me) => me.event.id !== Gt),
2063
2063
  o(L("placement.copyFailed")),
2064
2064
  q
2065
2065
  ) : q();
@@ -2076,7 +2076,7 @@ function Sc({
2076
2076
  fn(o(L("placement.copyUndone")));
2077
2077
  return;
2078
2078
  }
2079
- const re = (me) => me.some((Se) => Se.event.id === Gt) ? me : [
2079
+ const ne = (me) => me.some((Se) => Se.event.id === Gt) ? me : [
2080
2080
  ...me,
2081
2081
  {
2082
2082
  ...Dt,
@@ -2088,7 +2088,7 @@ function Sc({
2088
2088
  new Promise(
2089
2089
  (me) => me(Et(Gt))
2090
2090
  ),
2091
- re,
2091
+ ne,
2092
2092
  "",
2093
2093
  () => fn(o(L("placement.copyUndone")))
2094
2094
  ),
@@ -2098,22 +2098,22 @@ function Sc({
2098
2098
  }
2099
2099
  }
2100
2100
  } : void 0
2101
- ), ae == null || ae(!0);
2101
+ ), re == null || re(!0);
2102
2102
  return;
2103
2103
  }
2104
- const R = E.event.end ? new Date(E.event.end).getTime() - Y.getTime() : 0, De = E.event.end ? new Date(ye.getTime() + R) : void 0;
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;
2105
2105
  if (ga(E.event) && !zt(E.event)) {
2106
2106
  pn(
2107
2107
  {
2108
2108
  eventId: E.event.id,
2109
2109
  resourceId: e.resourceId,
2110
- oldStart: Y,
2110
+ oldStart: X,
2111
2111
  newStart: ye,
2112
2112
  newEnd: De
2113
2113
  },
2114
2114
  "this",
2115
2115
  ba
2116
- ), ae == null || ae(!0);
2116
+ ), re == null || re(!0);
2117
2117
  return;
2118
2118
  }
2119
2119
  yt(""), Rt("this"), Nr(Lr(E.event.patientId)), bt({
@@ -2122,19 +2122,19 @@ function Sc({
2122
2122
  resourceId: z === "operator" ? E.operatorId : E.chairId
2123
2123
  },
2124
2124
  kind: "drop",
2125
- oldStart: Y,
2125
+ oldStart: X,
2126
2126
  newStart: ye,
2127
2127
  newEnd: De,
2128
2128
  newResourceId: e.resourceId,
2129
2129
  ...h ? { closure: h } : {}
2130
- }), ae == null || ae(!0);
2130
+ }), re == null || re(!0);
2131
2131
  return;
2132
2132
  }
2133
2133
  if (de) {
2134
2134
  Le(null), b(null), hr(e.date);
2135
2135
  return;
2136
2136
  }
2137
- if (J) {
2137
+ if (Z) {
2138
2138
  Le(null), hn(o(L("readOnly.createBlocked")));
2139
2139
  return;
2140
2140
  }
@@ -2156,7 +2156,7 @@ function Sc({
2156
2156
  },
2157
2157
  ...z === "chair" && e.resourceId ? { chairId: e.resourceId } : {},
2158
2158
  ...z === "operator" && e.resourceId ? { operatorId: e.resourceId } : {}
2159
- }), ue && (st == null || st());
2159
+ }), ue && (it == null || it());
2160
2160
  },
2161
2161
  [
2162
2162
  z,
@@ -2167,18 +2167,18 @@ function Sc({
2167
2167
  de,
2168
2168
  hr,
2169
2169
  S.defaultDurationMin,
2170
- J,
2170
+ Z,
2171
2171
  Q,
2172
- nt,
2172
+ rt,
2173
2173
  K,
2174
2174
  Re,
2175
2175
  ue,
2176
- st,
2176
+ it,
2177
2177
  s,
2178
2178
  x,
2179
2179
  Nr,
2180
2180
  zt,
2181
- ae,
2181
+ re,
2182
2182
  j,
2183
2183
  Vt,
2184
2184
  f.metaById,
@@ -2188,7 +2188,7 @@ function Sc({
2188
2188
  ]
2189
2189
  ), $r = m(
2190
2190
  (e, c) => {
2191
- const T = (!de || K) && !J && !(nt && Q) && !(j && !ue && !K) ? f.closureOn(
2191
+ const T = (!de || K) && !Z && !(rt && Q) && !(j && !ue && !K) ? f.closureOn(
2192
2192
  vr(e.date),
2193
2193
  z === "operator" ? e.resourceId : void 0
2194
2194
  ) : null;
@@ -2205,8 +2205,8 @@ function Sc({
2205
2205
  action: (K == null ? void 0 : K.kind) === "move" ? "move" : "book",
2206
2206
  onConfirm: () => wr(e, c),
2207
2207
  onCancel: () => {
2208
- var W, E, Y;
2209
- c !== void 0 && ((Y = (E = (W = et.current) == null ? void 0 : W.getApi()) == null ? void 0 : E.unselect) == null || Y.call(E));
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));
2210
2210
  }
2211
2211
  });
2212
2212
  },
@@ -2214,8 +2214,8 @@ function Sc({
2214
2214
  de,
2215
2215
  K,
2216
2216
  Re,
2217
- J,
2218
- nt,
2217
+ Z,
2218
+ rt,
2219
2219
  Q,
2220
2220
  j,
2221
2221
  ue,
@@ -2244,7 +2244,7 @@ function Sc({
2244
2244
  [$r]
2245
2245
  ), Rr = m(
2246
2246
  (e) => {
2247
- an(tt.current), qe(e);
2247
+ an(nt.current), qe(e);
2248
2248
  },
2249
2249
  [qe]
2250
2250
  );
@@ -2257,7 +2257,7 @@ function Sc({
2257
2257
  }, [Rr, Me]);
2258
2258
  const Aa = m(
2259
2259
  (e) => {
2260
- an(tt.current), ie((c) => ({ ...c, resourceKind: e }));
2260
+ an(nt.current), ie((c) => ({ ...c, resourceKind: e }));
2261
2261
  },
2262
2262
  [ie]
2263
2263
  ), fr = B(
@@ -2293,11 +2293,11 @@ function Sc({
2293
2293
  var e;
2294
2294
  (e = Xt.current) == null || e.focus(), Pt([]), Jt([]), lr(!1), Bn(!0);
2295
2295
  }, Er = o(D(`view.${Pe}`)), da = Fi(f), Oa = (e, c) => {
2296
- e === "orientation" && an(tt.current), ie((h) => ({ ...h, ...c })), Ue == null || Ue({ setting: e, section: "personal" });
2296
+ e === "orientation" && an(nt.current), ie((h) => ({ ...h, ...c })), Ue == null || Ue({ setting: e, section: "personal" });
2297
2297
  }, La = (e) => {
2298
2298
  Ln(e), Ue == null || Ue({ setting: "hiddenDays", section: "personal" });
2299
2299
  }, Fa = () => {
2300
- an(tt.current), ie((e) => ({ ...X, resourceKind: e.resourceKind })), Ln([...is]), Ue == null || Ue({ setting: "reset", section: "personal" });
2300
+ an(nt.current), ie((e) => ({ ...J, resourceKind: e.resourceKind })), Ln([...is]), Ue == null || Ue({ setting: "reset", section: "personal" });
2301
2301
  };
2302
2302
  G(() => {
2303
2303
  He == null || He.publish({
@@ -2363,7 +2363,7 @@ function Sc({
2363
2363
  /* @__PURE__ */ n(
2364
2364
  So,
2365
2365
  {
2366
- readOnly: J,
2366
+ readOnly: Z,
2367
2367
  availableTools: kt,
2368
2368
  waitingCount: xe,
2369
2369
  toCompleteCount: V,
@@ -2647,7 +2647,7 @@ function Sc({
2647
2647
  ] })
2648
2648
  ] })
2649
2649
  ] }),
2650
- /* @__PURE__ */ I(Is, { size: "sm", "aria-label": it("calendar.ariaLabel"), children: [
2650
+ /* @__PURE__ */ I(Is, { size: "sm", "aria-label": ot("calendar.ariaLabel"), children: [
2651
2651
  /* @__PURE__ */ n(
2652
2652
  Ve,
2653
2653
  {
@@ -2659,7 +2659,7 @@ function Sc({
2659
2659
  var e;
2660
2660
  return (e = et.current) == null ? void 0 : e.today();
2661
2661
  },
2662
- children: it("calendar.today")
2662
+ children: ot("calendar.today")
2663
2663
  }
2664
2664
  ),
2665
2665
  /* @__PURE__ */ n(
@@ -2671,8 +2671,8 @@ function Sc({
2671
2671
  background: "surface",
2672
2672
  icon: /* @__PURE__ */ n($o, {}),
2673
2673
  flipIconInRtl: !0,
2674
- "aria-label": it("calendar.previousPeriod"),
2675
- tooltip: it("calendar.previousPeriod"),
2674
+ "aria-label": ot("calendar.previousPeriod"),
2675
+ tooltip: ot("calendar.previousPeriod"),
2676
2676
  onClick: () => {
2677
2677
  var e;
2678
2678
  return (e = et.current) == null ? void 0 : e.prev();
@@ -2688,8 +2688,8 @@ function Sc({
2688
2688
  background: "surface",
2689
2689
  icon: /* @__PURE__ */ n(Ro, {}),
2690
2690
  flipIconInRtl: !0,
2691
- "aria-label": it("calendar.nextPeriod"),
2692
- tooltip: it("calendar.nextPeriod"),
2691
+ "aria-label": ot("calendar.nextPeriod"),
2692
+ tooltip: ot("calendar.nextPeriod"),
2693
2693
  onClick: () => {
2694
2694
  var e;
2695
2695
  return (e = et.current) == null ? void 0 : e.next();
@@ -2700,10 +2700,10 @@ function Sc({
2700
2700
  ] })
2701
2701
  ]
2702
2702
  }
2703
- ), Ft = M ? f.metaById[M.event.id] : void 0, at = M ? r.find((e) => e.event.id === M.event.id) : void 0, Mr = ((fa = at == null ? void 0 : at.careLink) == null ? void 0 : fa.kind) === "plan" ? f.carePlanById(at.careLink.planId) : void 0, qr = Pr(M == null ? void 0 : M.event.patientId, f).record, Kr = f.chairs.find(
2704
- (e) => e.id === ((at == null ? void 0 : at.chairId) ?? (Ft == null ? void 0 : Ft.chairId))
2703
+ ), Ft = M ? f.metaById[M.event.id] : void 0, st = M ? r.find((e) => e.event.id === M.event.id) : void 0, Mr = ((fa = st == null ? void 0 : st.careLink) == null ? void 0 : fa.kind) === "plan" ? f.carePlanById(st.careLink.planId) : void 0, qr = Pr(M == null ? void 0 : M.event.patientId, f).record, Kr = f.chairs.find(
2704
+ (e) => e.id === ((st == null ? void 0 : st.chairId) ?? (Ft == null ? void 0 : Ft.chairId))
2705
2705
  ), Sr = f.operators.find(
2706
- (e) => e.id === ((at == null ? void 0 : at.operatorId) ?? (Ft == null ? void 0 : Ft.operatorId) ?? String((M == null ? void 0 : M.event.operatorId) ?? ""))
2706
+ (e) => e.id === ((st == null ? void 0 : st.operatorId) ?? (Ft == null ? void 0 : Ft.operatorId) ?? String((M == null ? void 0 : M.event.operatorId) ?? ""))
2707
2707
  ), Qe = A ? r.find((e) => e.event.id === A.event.id) : void 0, Gr = Pr(A == null ? void 0 : A.event.patientId, f), Ba = A ? zt(A.event) : !1, Vr = Ta(Qe) || Ba, ma = A ? Gn(A.event, Vr, ke) && wn : !1, jr = Gr.assigned ? Oe && A ? (
2708
2708
  /* The dialog sits over the grid: the same mask as the card. */
2709
2709
  ya((Qe == null ? void 0 : Qe.event) ?? A.event, !0)
@@ -2722,26 +2722,26 @@ function Sc({
2722
2722
  if (A) {
2723
2723
  const e = Qe == null ? void 0 : Qe.event.end, c = e ? new Date(
2724
2724
  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 = (Y) => {
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) => {
2726
2726
  var ye;
2727
2727
  return ((ye = (z === "operator" ? f.operators : f.chairs).find(
2728
- (R) => R.id === Y
2728
+ (R) => R.id === X
2729
2729
  )) == null ? void 0 : ye.title) ?? null;
2730
2730
  }, E = !!A.event.allDay;
2731
2731
  Yr = [
2732
2732
  gr(p, A.oldStart),
2733
2733
  E ? null : _r(p, A.oldStart, e),
2734
2734
  C ? W(h) : null
2735
- ].filter((Y) => !!Y).join(" · "), Xr = [
2735
+ ].filter((X) => !!X).join(" · "), Xr = [
2736
2736
  gr(p, A.newStart),
2737
2737
  E ? null : _r(p, A.newStart, c),
2738
2738
  C ? W(T) : null
2739
- ].filter((Y) => !!Y).join(" · ");
2739
+ ].filter((X) => !!X).join(" · ");
2740
2740
  }
2741
2741
  return /* @__PURE__ */ I(
2742
2742
  "div",
2743
2743
  {
2744
- ref: ct,
2744
+ ref: lt,
2745
2745
  className: `ds:flex ds:min-h-full ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ${Tc}`,
2746
2746
  children: [
2747
2747
  Hn ? /* @__PURE__ */ n(cc, { archive: Hn }) : null,
@@ -2751,17 +2751,17 @@ function Sc({
2751
2751
  prompts: Cn,
2752
2752
  restoreFocus: () => {
2753
2753
  var e;
2754
- return (e = lt.current) == null ? void 0 : e.focus();
2754
+ return (e = dt.current) == null ? void 0 : e.focus();
2755
2755
  }
2756
2756
  }
2757
2757
  ),
2758
- ee && On.length > 0 && (J || !nn) ? /* @__PURE__ */ I(
2758
+ ee && On.length > 0 && (Z || !nn) ? /* @__PURE__ */ I(
2759
2759
  Tt,
2760
2760
  {
2761
2761
  modal: !0,
2762
2762
  open: !0,
2763
2763
  onOpenChange: (e) => {
2764
- e || ot(null);
2764
+ e || ct(null);
2765
2765
  },
2766
2766
  children: [
2767
2767
  /* @__PURE__ */ n(Tt.Anchor, { virtualRef: { current: ee.el } }),
@@ -2808,7 +2808,7 @@ function Sc({
2808
2808
  (C) => C.id === e.operatorId
2809
2809
  )) == null ? void 0 : T.title
2810
2810
  ] }),
2811
- J ? null : /* @__PURE__ */ n(
2811
+ Z ? null : /* @__PURE__ */ n(
2812
2812
  Ve,
2813
2813
  {
2814
2814
  intent: "primary",
@@ -2841,7 +2841,7 @@ function Sc({
2841
2841
  /* @__PURE__ */ n(
2842
2842
  "div",
2843
2843
  {
2844
- ref: lt,
2844
+ ref: dt,
2845
2845
  tabIndex: -1,
2846
2846
  className: "ds:@container/calendar-nav ds:sticky ds:top-0 ds:z-20 ds:min-w-0 ds:print:hidden",
2847
2847
  children: pa
@@ -2852,7 +2852,7 @@ function Sc({
2852
2852
  {
2853
2853
  onRetry: U ? () => {
2854
2854
  var e;
2855
- (e = lt.current) == null || e.focus(), U();
2855
+ (e = dt.current) == null || e.focus(), U();
2856
2856
  } : void 0
2857
2857
  }
2858
2858
  ) : null,
@@ -2861,8 +2861,8 @@ function Sc({
2861
2861
  {
2862
2862
  id: wt,
2863
2863
  ref: et,
2864
- onBackgroundEventClick: nt ? (e, c) => {
2865
- Q && e.id.startsWith("avail-") && (Le(null), ot({
2864
+ onBackgroundEventClick: rt ? (e, c) => {
2865
+ Q && e.id.startsWith("avail-") && (Le(null), ct({
2866
2866
  event: e,
2867
2867
  el: c.el,
2868
2868
  source: Q
@@ -2910,16 +2910,16 @@ function Sc({
2910
2910
  height: "auto",
2911
2911
  onEventClick: u,
2912
2912
  onEventMouseEnter: H,
2913
- onEventMouseLeave: ne,
2914
- onEventDragStart: ne,
2915
- onEventResizeStart: ne,
2913
+ onEventMouseLeave: ae,
2914
+ onEventDragStart: ae,
2915
+ onEventResizeStart: ae,
2916
2916
  onEventDrop: tr,
2917
2917
  onEventResize: Ea,
2918
2918
  onDateClick: $r,
2919
- selectable: !J,
2919
+ selectable: !Z,
2920
2920
  unselectAuto: !1,
2921
2921
  onDateSelect: xa,
2922
- availabilityMode: nt,
2922
+ availabilityMode: rt,
2923
2923
  onNavLinkDayClick: de ? hr : void 0,
2924
2924
  onDatesSet: Fe
2925
2925
  },
@@ -2931,7 +2931,7 @@ function Sc({
2931
2931
  /* @__PURE__ */ n(
2932
2932
  yc,
2933
2933
  {
2934
- sections: rt,
2934
+ sections: at,
2935
2935
  rangeTitle: gr(p, yn),
2936
2936
  axisKind: z,
2937
2937
  visibleChairIds: Ut,
@@ -2985,7 +2985,7 @@ function Sc({
2985
2985
  {
2986
2986
  name: M.event.title,
2987
2987
  avatarSrc: qr == null ? void 0 : qr.avatarSrc,
2988
- time: M.event.allDay ? it("calendar.allDay") : _r(
2988
+ time: M.event.allDay ? ot("calendar.allDay") : _r(
2989
2989
  p,
2990
2990
  new Date(M.event.start),
2991
2991
  new Date(M.event.end ?? M.event.start)
@@ -3009,13 +3009,13 @@ function Sc({
3009
3009
  value: Sr.title
3010
3010
  }
3011
3011
  ] : [],
3012
- ...at != null && at.careLink ? [
3012
+ ...st != null && st.careLink ? [
3013
3013
  {
3014
3014
  label: o(D("details.treatments")),
3015
- value: at.careLink.kind === "plan" && Mr ? o(D("details.planLine"), {
3015
+ value: st.careLink.kind === "plan" && Mr ? o(D("details.planLine"), {
3016
3016
  number: Mr.number,
3017
3017
  name: Mr.name
3018
- }) : `${o(D("details.priceListLine"))} · ${f.careEntriesFromLink(at.careLink).map((e) => e.name).join(", ")}`
3018
+ }) : `${o(D("details.priceListLine"))} · ${f.careEntriesFromLink(st.careLink).map((e) => e.name).join(", ")}`
3019
3019
  }
3020
3020
  ] : []
3021
3021
  ],
@@ -3338,16 +3338,16 @@ function Pc({
3338
3338
  waitingList: ve,
3339
3339
  waitingSeedTick: S,
3340
3340
  findSlotsSeed: ie,
3341
- history: X,
3341
+ history: J,
3342
3342
  signRequests: x,
3343
- mapsLink: J,
3343
+ mapsLink: Z,
3344
3344
  defaultDurationMin: he,
3345
3345
  noteUnrecordedEdits: Nt,
3346
3346
  recurrence: j,
3347
3347
  consentsForCares: K,
3348
- medicalDevicesForCares: ae,
3348
+ medicalDevicesForCares: re,
3349
3349
  sameDayReminders: ue,
3350
- signatureCredits: st,
3350
+ signatureCredits: it,
3351
3351
  createPatientFromBooking: Ie,
3352
3352
  createPatient: je,
3353
3353
  defaultReminders: Oe,
@@ -3382,20 +3382,20 @@ function Pc({
3382
3382
  onOpenEntryForm: o,
3383
3383
  entryForm: kt,
3384
3384
  onSaveEntry: f,
3385
- onCancelEntry: it,
3385
+ onCancelEntry: ot,
3386
3386
  onShowAvailability: Wn,
3387
3387
  onFinderSearchRange: D,
3388
3388
  gridAxis: L,
3389
3389
  bookings: et,
3390
3390
  bookingQueue: ee,
3391
- backlogFilters: ot,
3391
+ backlogFilters: ct,
3392
3392
  onBacklogFiltersChange: On,
3393
3393
  waitingListState: At,
3394
3394
  stateSinceByEventId: nn,
3395
3395
  reviewOnlyEventIds: Wt,
3396
- bookingsSeedTick: ct,
3396
+ bookingsSeedTick: lt,
3397
3397
  bookingRequest: Yt,
3398
- onCompleteBooking: lt,
3398
+ onCompleteBooking: dt,
3399
3399
  onPlaceWaiting: Xt,
3400
3400
  onCreateTask: Ir,
3401
3401
  onUpdateTask: ir,
@@ -3410,14 +3410,14 @@ function Pc({
3410
3410
  editorGuard: cr
3411
3411
  }) {
3412
3412
  var Qn, Ge, er, ze;
3413
- const { t: Z } = 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(
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(
3414
3414
  (u) => {
3415
3415
  It(
3416
3416
  (H) => H.key === Ke && H.id === u ? H : { key: Ke, id: u }
3417
3417
  );
3418
3418
  },
3419
3419
  [Ke]
3420
- ), We = Xe.key === Ke ? Xe.id : xe === "create" ? (Qn = U.prefill) == null ? void 0 : Qn.patientId : P.id || void 0, dt = v.has(y.notes) && !!We, [tt, Un] = _({ tick: 0 }), an = $(i);
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
3421
  G(() => {
3422
3422
  const u = an.current === y.notes && i !== y.notes;
3423
3423
  an.current = i, Un(
@@ -3430,20 +3430,20 @@ function Pc({
3430
3430
  G(() => () => cancelAnimationFrame(Bn.current), []);
3431
3431
  const ut = m(() => {
3432
3432
  k(), cancelAnimationFrame(Bn.current), Bn.current = requestAnimationFrame(() => {
3433
- var H, ne;
3433
+ var H, ae;
3434
3434
  const u = document.activeElement;
3435
- u && u !== document.body && u.isConnected || (ne = (H = s.current) == null ? void 0 : H.querySelector("section[data-active-tool]")) == null || ne.focus();
3435
+ u && u !== document.body && u.isConnected || (ae = (H = s.current) == null ? void 0 : H.querySelector("section[data-active-tool]")) == null || ae.focus();
3436
3436
  });
3437
3437
  }, [k, s]), lr = $(y.appointments), Mn = m(
3438
3438
  (u, H) => {
3439
- !dt || u !== We || (Un((ne) => ({
3439
+ !tt || u !== We || (Un((ae) => ({
3440
3440
  patientId: u,
3441
3441
  noteId: H,
3442
- tick: ne.tick + 1
3443
- })), gn.current = "appointment_panel", Pe(y.notes), gn.current = null, V(Z("calendarWorkspace.rail.notes")));
3442
+ tick: ae.tick + 1
3443
+ })), gn.current = "appointment_panel", Pe(y.notes), gn.current = null, V(Y("calendarWorkspace.rail.notes")));
3444
3444
  },
3445
- [dt, We, Pe, V, Z, gn]
3446
- ), qn = B(() => Gi(b), [b]), In = Z(
3445
+ [tt, We, Pe, V, Y, gn]
3446
+ ), qn = B(() => Gi(b), [b]), In = Y(
3447
3447
  "calendarWorkspace.details.patientNotLoaded"
3448
3448
  ), bn = P.id, Pn = N && l ? ya(l.event, !0) : Va(
3449
3449
  P,
@@ -3458,9 +3458,9 @@ function Pc({
3458
3458
  devicesByCare: Zt,
3459
3459
  unsignedRequiredDocs: yn,
3460
3460
  consentsForCares: K,
3461
- medicalDevicesForCares: ae,
3461
+ medicalDevicesForCares: re,
3462
3462
  sameDayReminders: ue,
3463
- signatureCredits: st,
3463
+ signatureCredits: it,
3464
3464
  createPatientFromBooking: Ie,
3465
3465
  createPatient: je,
3466
3466
  rows: b,
@@ -3495,9 +3495,9 @@ function Pc({
3495
3495
  Zt,
3496
3496
  yn,
3497
3497
  K,
3498
- ae,
3498
+ re,
3499
3499
  ue,
3500
- st,
3500
+ it,
3501
3501
  Ie,
3502
3502
  je,
3503
3503
  b,
@@ -3527,11 +3527,11 @@ function Pc({
3527
3527
  return l ? {
3528
3528
  paidOnlineAmount: Ae.paidOnline[l.event.id],
3529
3529
  toCollectAmount: (u = P.record) == null ? void 0 : u.unpaidAmount,
3530
- mapsLink: J,
3530
+ mapsLink: Z,
3531
3531
  bookingPhone: Ae.bookingPhones[l.event.id]
3532
3532
  } : void 0;
3533
3533
  },
3534
- [l, P, J, Ae]
3534
+ [l, P, Z, Ae]
3535
3535
  ), dr = B(
3536
3536
  () => ({
3537
3537
  devicesByCare: Zt,
@@ -3562,7 +3562,7 @@ function Pc({
3562
3562
  ), ur = B(
3563
3563
  () => ({
3564
3564
  id: y.appointments,
3565
- label: Z("calendarWorkspace.inc1.rail.appointments"),
3565
+ label: Y("calendarWorkspace.inc1.rail.appointments"),
3566
3566
  icon: /* @__PURE__ */ n(Ho, { "aria-hidden": "true" }),
3567
3567
  /* fill: the timeline owns its scroll (day anchoring + edge loads). */
3568
3568
  fill: !0,
@@ -3577,7 +3577,7 @@ function Pc({
3577
3577
  }
3578
3578
  )
3579
3579
  }),
3580
- [b, p, N, nn, He, Z]
3580
+ [b, p, N, nn, He, Y]
3581
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(
3582
3582
  () => ge != null && ge.editEventId ? ge : {
3583
3583
  ...ge,
@@ -3596,10 +3596,10 @@ function Pc({
3596
3596
  ), yr = m(
3597
3597
  (u, H) => {
3598
3598
  yt.current = "deleted", Promise.resolve(wt(u, H)).catch(
3599
- () => hn(Z("emptyState.error.title"))
3599
+ () => hn(Y("emptyState.error.title"))
3600
3600
  );
3601
3601
  },
3602
- [wt, Z]
3602
+ [wt, Y]
3603
3603
  ), Vn = m(() => {
3604
3604
  const u = yt.current;
3605
3605
  if (yt.current = null, _n(null), se("details"), u === "deleted") {
@@ -3607,25 +3607,25 @@ function Pc({
3607
3607
  return;
3608
3608
  }
3609
3609
  u === "saved" && cn((H) => H + 1), V(
3610
- Z("calendarWorkspace.details.docked", { name: Pn })
3610
+ Y("calendarWorkspace.details.docked", { name: Pn })
3611
3611
  );
3612
- }, [se, qe, V, Pn, Z]), we = m(() => {
3612
+ }, [se, qe, V, Pn, Y]), we = m(() => {
3613
3613
  qe();
3614
3614
  }, [qe]), de = m(() => {
3615
3615
  if (!l) return;
3616
3616
  const { event: u } = l;
3617
3617
  if (u.hasUnassignedPatient && u.isBookedOnline)
3618
- return lt(l);
3618
+ return dt(l);
3619
3619
  _n(null), yt.current = null, ke.current = { id: u.id, action: "edit-appointment" }, se("edit");
3620
- }, [l, lt, se]), z = !Q && (!ee || ee.canComplete === !0 && !!Ne), Nn = m(() => {
3620
+ }, [l, dt, se]), z = !Q && (!ee || ee.canComplete === !0 && !!Ne), Nn = m(() => {
3621
3621
  if (!l) return;
3622
3622
  const { event: u } = l;
3623
- if (u.isBookedOnline) return lt(l, "patient");
3623
+ if (u.isBookedOnline) return dt(l, "patient");
3624
3624
  _n(u.id), yt.current = null, ke.current = { id: u.id, action: "assign-patient" }, se("edit");
3625
- }, [l, lt, se]), $n = m(
3625
+ }, [l, dt, se]), $n = m(
3626
3626
  (u) => {
3627
3627
  var ft;
3628
- const H = P.id || ((ft = u.patient) == null ? void 0 : ft.id), ne = u.series ?? (_t.recurringDeleteScope ? {
3628
+ const H = P.id || ((ft = u.patient) == null ? void 0 : ft.id), ae = u.series ?? (_t.recurringDeleteScope ? {
3629
3629
  scopes: Fs,
3630
3630
  offersCarePlanCleanup: _t.carePlanCleanup
3631
3631
  } : _t.carePlanCleanup ? { offersCarePlanCleanup: !0 } : void 0);
@@ -3660,12 +3660,12 @@ function Pc({
3660
3660
  /* @__PURE__ */ n(
3661
3661
  sc,
3662
3662
  {
3663
- onOpenNotes: dt ? Mn : void 0,
3663
+ onOpenNotes: tt ? Mn : void 0,
3664
3664
  details: {
3665
3665
  ...u,
3666
3666
  history: [
3667
3667
  ...new Map(
3668
- [...X[u.eventId] ?? [], ...u.history].map(
3668
+ [...J[u.eventId] ?? [], ...u.history].map(
3669
3669
  (F) => [F.id, F]
3670
3670
  )
3671
3671
  ).values()
@@ -3685,7 +3685,7 @@ function Pc({
3685
3685
  onMove: () => fe("panel"),
3686
3686
  onCopy: (F) => Ye(F, "panel"),
3687
3687
  onDelete: async (F) => {
3688
- await wt(u.eventId, F), ne != null && ne.scopes && w({
3688
+ await wt(u.eventId, F), ae != null && ae.scopes && w({
3689
3689
  action: "delete",
3690
3690
  scope: F.scope
3691
3691
  }), qe(), ks(
@@ -3701,11 +3701,11 @@ function Pc({
3701
3701
  }
3702
3702
  );
3703
3703
  },
3704
- deleteConfirm: ne,
3704
+ deleteConfirm: ae,
3705
3705
  onDetailsActionUsed: ce,
3706
3706
  onStatusChange: jt ? (F) => jt(u.eventId, F) : void 0,
3707
3707
  onDescriptionChange: vn ? (F) => vn(u.eventId, F) : void 0,
3708
- mapsLink: J,
3708
+ mapsLink: Z,
3709
3709
  noteUnrecordedEdits: Nt,
3710
3710
  privacy: N,
3711
3711
  privacyTitle: l == null ? void 0 : l.event.privacyModeTitle,
@@ -3721,9 +3721,9 @@ function Pc({
3721
3721
  l == null ? void 0 : l.event.privacyModeTitle,
3722
3722
  P.id,
3723
3723
  rn,
3724
- dt,
3724
+ tt,
3725
3725
  Mn,
3726
- X,
3726
+ J,
3727
3727
  Te,
3728
3728
  bt,
3729
3729
  Nn,
@@ -3743,19 +3743,19 @@ function Pc({
3743
3743
  Pe,
3744
3744
  V,
3745
3745
  s,
3746
- Z,
3746
+ Y,
3747
3747
  jt,
3748
3748
  vn,
3749
- J,
3749
+ Z,
3750
3750
  Nt,
3751
3751
  p
3752
3752
  ]
3753
3753
  ), pt = B(
3754
3754
  () => {
3755
- var u, H, ne, ft;
3755
+ var u, H, ae, ft;
3756
3756
  return {
3757
3757
  id: y.editor,
3758
- label: Z(
3758
+ label: Y(
3759
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"
3760
3760
  ),
3761
3761
  icon: $t ? /* @__PURE__ */ n(Uo, { "aria-hidden": "true" }) : M ? /* @__PURE__ */ n(Ha, { "aria-hidden": "true" }) : /* @__PURE__ */ n(Mo, { "aria-hidden": "true" }),
@@ -3767,14 +3767,14 @@ function Pc({
3767
3767
  withheld: pr ? /* @__PURE__ */ n(
3768
3768
  Ia,
3769
3769
  {
3770
- title: Z(
3770
+ title: Y(
3771
3771
  M && !A ? "calendarWorkspace.details.region" : M || ge != null && ge.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
3772
3772
  ),
3773
3773
  icon: /* @__PURE__ */ n(Ha, { "aria-hidden": "true" }),
3774
3774
  onTurnOff: ut
3775
3775
  }
3776
3776
  ) : void 0,
3777
- openNotes: dt ? Mn : void 0,
3777
+ openNotes: tt ? Mn : void 0,
3778
3778
  editorGuard: cr,
3779
3779
  onOpenSheet: le,
3780
3780
  onAnnounce: V,
@@ -3795,7 +3795,7 @@ function Pc({
3795
3795
  {
3796
3796
  mode: Lt ? "edit" : "create",
3797
3797
  taskId: Lt,
3798
- initialDate: !Lt && ((H = U.prefill) != null && H.isTask) ? (ne = U.prefill) == null ? void 0 : ne.date : void 0,
3798
+ initialDate: !Lt && ((H = U.prefill) != null && H.isTask) ? (ae = U.prefill) == null ? void 0 : ae.date : void 0,
3799
3799
  onCancel: we,
3800
3800
  onSaved: we,
3801
3801
  onDeleted: we,
@@ -3839,7 +3839,7 @@ function Pc({
3839
3839
  capabilities: F == null ? void 0 : F.capabilities,
3840
3840
  series: F == null ? void 0 : F.series,
3841
3841
  onRecurringScopeChosen: w,
3842
- panelTitle: Z(
3842
+ panelTitle: Y(
3843
3843
  A ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.details.region"
3844
3844
  ),
3845
3845
  returnsOnCancel: A,
@@ -3876,7 +3876,7 @@ function Pc({
3876
3876
  }
3877
3877
  ),
3878
3878
  history: Ao(
3879
- X[Ce.event.id] ?? []
3879
+ J[Ce.event.id] ?? []
3880
3880
  ),
3881
3881
  noteUnrecordedEdits: Nt,
3882
3882
  onSave: A ? Ht : Bt,
@@ -3937,7 +3937,7 @@ function Pc({
3937
3937
  ut,
3938
3938
  M,
3939
3939
  Nt,
3940
- dt,
3940
+ tt,
3941
3941
  Mn,
3942
3942
  rn,
3943
3943
  Le,
@@ -3968,14 +3968,14 @@ function Pc({
3968
3968
  kn,
3969
3969
  St,
3970
3970
  x,
3971
- X,
3971
+ J,
3972
3972
  Q,
3973
3973
  Tn,
3974
3974
  _t,
3975
3975
  Dn,
3976
3976
  p,
3977
3977
  qn,
3978
- Z,
3978
+ Y,
3979
3979
  $t,
3980
3980
  Lt,
3981
3981
  Pt,
@@ -3988,13 +3988,13 @@ function Pc({
3988
3988
  N,
3989
3989
  cr
3990
3990
  ]
3991
- ), [nt, ln] = _({ tick: 0 }), jn = Yt.id !== void 0 && et.some((u) => u.event.id === Yt.id);
3991
+ ), [rt, ln] = _({ tick: 0 }), jn = Yt.id !== void 0 && et.some((u) => u.event.id === Yt.id);
3992
3992
  G(() => {
3993
3993
  if (i !== y.bookings) {
3994
3994
  ln((u) => u.id ? { tick: u.tick } : u);
3995
3995
  return;
3996
3996
  }
3997
- if (!(!jn || nt.tick === Yt.tick))
3997
+ if (!(!jn || rt.tick === Yt.tick))
3998
3998
  return ks(
3999
3999
  () => {
4000
4000
  var u;
@@ -4008,13 +4008,13 @@ function Pc({
4008
4008
  i,
4009
4009
  jn,
4010
4010
  Yt,
4011
- nt.tick,
4011
+ rt.tick,
4012
4012
  s
4013
4013
  ]);
4014
4014
  const mr = B(
4015
4015
  () => ({
4016
4016
  id: y.bookings,
4017
- label: Z("calendarWorkspace.inc1.bookings.title"),
4017
+ label: Y("calendarWorkspace.inc1.bookings.title"),
4018
4018
  icon: /* @__PURE__ */ n(qo, { "aria-hidden": "true" }),
4019
4019
  badgeCount: et.length,
4020
4020
  panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: V, children: /* @__PURE__ */ n(
@@ -4026,23 +4026,23 @@ function Pc({
4026
4026
  status: ee == null ? void 0 : ee.status,
4027
4027
  lastSeenIso: ee == null ? void 0 : ee.lastSeenIso,
4028
4028
  createdAtById: ee == null ? void 0 : ee.createdAtById,
4029
- currentBookingId: nt.id,
4030
- currentBookingKey: nt.tick,
4029
+ currentBookingId: rt.id,
4030
+ currentBookingKey: rt.tick,
4031
4031
  onRetry: ee == null ? void 0 : ee.onRetry,
4032
4032
  onShowInCalendar: (u) => He(u, "bookings_panel"),
4033
4033
  resourceKind: L,
4034
- filters: ot,
4034
+ filters: ct,
4035
4035
  onFiltersChange: On,
4036
- onComplete: z ? lt : void 0
4036
+ onComplete: z ? dt : void 0
4037
4037
  }
4038
4038
  ) })
4039
4039
  }),
4040
4040
  [
4041
4041
  et,
4042
4042
  ee,
4043
- nt,
4043
+ rt,
4044
4044
  L,
4045
- ot,
4045
+ ct,
4046
4046
  On,
4047
4047
  Ne,
4048
4048
  Q,
@@ -4051,13 +4051,13 @@ function Pc({
4051
4051
  le,
4052
4052
  V,
4053
4053
  He,
4054
- lt,
4055
- Z
4054
+ dt,
4055
+ Y
4056
4056
  ]
4057
4057
  ), Ut = B(
4058
4058
  () => ({
4059
4059
  id: y.waitingList,
4060
- label: Z("calendarWorkspace.waitingList.tool"),
4060
+ label: Y("calendarWorkspace.waitingList.tool"),
4061
4061
  icon: /* @__PURE__ */ n(Ts, { "aria-hidden": "true" }),
4062
4062
  badgeCount: ve.length,
4063
4063
  /* fill: the panel owns its scroll (its own internal ScrollArea) so
@@ -4076,7 +4076,7 @@ function Pc({
4076
4076
  /* @__PURE__ */ n(
4077
4077
  Ia,
4078
4078
  {
4079
- title: Z("calendarWorkspace.waitingList.tool"),
4079
+ title: Y("calendarWorkspace.waitingList.tool"),
4080
4080
  icon: /* @__PURE__ */ n(Ts, { "aria-hidden": "true" }),
4081
4081
  onTurnOff: ut
4082
4082
  }
@@ -4098,7 +4098,7 @@ function Pc({
4098
4098
  entryForm: kt,
4099
4099
  onSaveEntry: f,
4100
4100
  onCreatePatient: je,
4101
- onCancelEntry: it,
4101
+ onCancelEntry: ot,
4102
4102
  onOpenPatient: St,
4103
4103
  onFilterUsed: zn,
4104
4104
  onWhatsAppClick: (u) => ar(u.id),
@@ -4112,7 +4112,7 @@ function Pc({
4112
4112
  ut,
4113
4113
  kt,
4114
4114
  f,
4115
- it,
4115
+ ot,
4116
4116
  je,
4117
4117
  ve,
4118
4118
  At,
@@ -4129,20 +4129,20 @@ function Pc({
4129
4129
  ar,
4130
4130
  Hn,
4131
4131
  Q,
4132
- Z
4132
+ Y
4133
4133
  ]
4134
4134
  ), Mt = B(
4135
4135
  () => ({
4136
4136
  id: y.settings,
4137
- label: Z("calendarWorkspace.settings.title"),
4137
+ label: Y("calendarWorkspace.settings.title"),
4138
4138
  icon: /* @__PURE__ */ n(Ms, { "aria-hidden": "true" }),
4139
4139
  panel: /* @__PURE__ */ n(co, { bridge: or })
4140
4140
  }),
4141
- [or, Z]
4141
+ [or, Y]
4142
4142
  ), Dr = B(
4143
4143
  () => ({
4144
4144
  id: y.findSlots,
4145
- label: Z("calendarWorkspace.findSlots.tool"),
4145
+ label: Y("calendarWorkspace.findSlots.tool"),
4146
4146
  icon: /* @__PURE__ */ n(Ko, { "aria-hidden": "true" }),
4147
4147
  panel: (
4148
4148
  /* Keyed by the seed tick so a waiting-list hand-off re-seeds a
@@ -4176,22 +4176,22 @@ function Pc({
4176
4176
  D,
4177
4177
  dr,
4178
4178
  Q,
4179
- Z
4179
+ Y
4180
4180
  ]
4181
4181
  ), Yn = B(
4182
4182
  () => Fn.map(
4183
- ({ privacy: u, hold: H, ...ne }) => N && u !== "host" ? {
4184
- ...ne,
4183
+ ({ privacy: u, hold: H, ...ae }) => N && u !== "host" ? {
4184
+ ...ae,
4185
4185
  header: void 0,
4186
4186
  panel: /* @__PURE__ */ n(
4187
4187
  Ia,
4188
4188
  {
4189
- title: ne.label,
4190
- icon: ne.icon,
4189
+ title: ae.label,
4190
+ icon: ae.icon,
4191
4191
  onTurnOff: ut
4192
4192
  }
4193
4193
  )
4194
- } : ne
4194
+ } : ae
4195
4195
  ),
4196
4196
  [Fn, N, ut]
4197
4197
  ), $e = B(() => {
@@ -4200,13 +4200,13 @@ function Pc({
4200
4200
  {
4201
4201
  editor: pt.panel,
4202
4202
  active: i === y.notes,
4203
- request: tt.tick,
4203
+ request: nt.tick,
4204
4204
  notes: We && N ? (
4205
4205
  /* Notes are free text under the patient's name: all withheld. */
4206
4206
  /* @__PURE__ */ n(
4207
4207
  Ia,
4208
4208
  {
4209
- title: Z("calendarWorkspace.rail.notes"),
4209
+ title: Y("calendarWorkspace.rail.notes"),
4210
4210
  icon: /* @__PURE__ */ n(Ns, { "aria-hidden": "true" }),
4211
4211
  onTurnOff: ut
4212
4212
  }
@@ -4217,19 +4217,23 @@ function Pc({
4217
4217
  patientId: We,
4218
4218
  editable: !bt,
4219
4219
  seam: Te(We),
4220
- currentNoteId: tt.patientId === We ? tt.noteId : void 0,
4221
- currentNoteKey: tt.tick
4220
+ currentNoteId: nt.patientId === We ? nt.noteId : void 0,
4221
+ currentNoteKey: nt.tick
4222
4222
  }
4223
4223
  ) : null
4224
4224
  }
4225
4225
  ) : pt.panel, H = {
4226
4226
  [y.appointments]: ur,
4227
4227
  [y.editor]: { ...pt, panel: u },
4228
+ /* Notes keeps its place in the strip with no patient in hand: it is
4229
+ disabled and says why, so the icon never appears on a pick. */
4228
4230
  [y.notes]: {
4229
4231
  id: y.notes,
4230
- label: Z("calendarWorkspace.rail.notes"),
4232
+ label: Y("calendarWorkspace.rail.notes"),
4231
4233
  icon: /* @__PURE__ */ n(Ns, { "aria-hidden": "true" }),
4232
4234
  fill: !0,
4235
+ disabled: !tt,
4236
+ disabledReason: tt ? void 0 : Y("calendarWorkspace.rail.notesNeedsPatient"),
4233
4237
  panel: u
4234
4238
  },
4235
4239
  [y.waitingList]: Ut,
@@ -4238,21 +4242,21 @@ function Pc({
4238
4242
  [y.settings]: Mt
4239
4243
  };
4240
4244
  return [
4241
- ...Ps.filter(
4242
- (ne) => v.has(ne) && (ne !== y.notes || dt)
4243
- ).map((ne) => H[ne]),
4245
+ ...Ps.filter((ae) => v.has(ae)).map(
4246
+ (ae) => H[ae]
4247
+ ),
4244
4248
  ...Yn
4245
4249
  ];
4246
4250
  }, [
4247
4251
  N,
4248
4252
  ut,
4249
- dt,
4253
+ tt,
4250
4254
  bt,
4251
4255
  i,
4252
4256
  We,
4253
- tt,
4257
+ nt,
4254
4258
  Te,
4255
- Z,
4259
+ Y,
4256
4260
  v,
4257
4261
  ur,
4258
4262
  pt,
@@ -4264,18 +4268,18 @@ function Pc({
4264
4268
  ]);
4265
4269
  Qi($e);
4266
4270
  const mt = B(
4267
- () => new Set($e.map((u) => u.id)),
4271
+ () => new Set($e.filter((u) => !u.disabled).map((u) => u.id)),
4268
4272
  [$e]
4269
4273
  );
4270
4274
  js(() => {
4271
4275
  Me.current = mt;
4272
4276
  }, [mt, Me]);
4273
- const rt = m(
4277
+ const at = m(
4274
4278
  (u) => {
4275
4279
  const H = v.has(u) ? u : y.appointments;
4276
- Pe(H), V(wa(H, Z));
4280
+ Pe(H), V(wa(H, Y));
4277
4281
  },
4278
- [v, Pe, V, Z]
4282
+ [v, Pe, V, Y]
4279
4283
  ), Xn = $(!1);
4280
4284
  G(() => {
4281
4285
  Xn.current || (Xn.current = !0, qe(!1));
@@ -4291,16 +4295,16 @@ function Pc({
4291
4295
  return;
4292
4296
  }
4293
4297
  if (Wt.has(g.eventId)) {
4294
- rt(y.bookings);
4298
+ at(y.bookings);
4295
4299
  return;
4296
4300
  }
4297
4301
  if (!(!bn && !O)) {
4298
4302
  if (!v.has(y.editor)) {
4299
- rt(y.editor);
4303
+ at(y.editor);
4300
4304
  return;
4301
4305
  }
4302
4306
  se("details"), gn.current = "selection", Pe(y.editor), gn.current = null, sr(g.eventId), V(
4303
- Z("calendarWorkspace.details.docked", { name: Pn })
4307
+ Y("calendarWorkspace.details.docked", { name: Pn })
4304
4308
  );
4305
4309
  }
4306
4310
  }
@@ -4311,49 +4315,49 @@ function Pc({
4311
4315
  Pn,
4312
4316
  O,
4313
4317
  v,
4314
- rt,
4318
+ at,
4315
4319
  Pe,
4316
4320
  se,
4317
4321
  V,
4318
- Z,
4322
+ Y,
4319
4323
  gn,
4320
4324
  sr
4321
4325
  ]);
4322
4326
  const Re = $(U.tick);
4323
4327
  G(() => {
4324
- Re.current !== U.tick && (Re.current = U.tick, on(!1), se("create"), rt(y.editor));
4325
- }, [U.tick, se, rt]);
4328
+ Re.current !== U.tick && (Re.current = U.tick, on(!1), se("create"), at(y.editor));
4329
+ }, [U.tick, se, at]);
4326
4330
  const un = $(Pt);
4327
4331
  G(() => {
4328
- un.current !== Pt && (un.current = Pt, on(!0), se("create"), rt(y.editor));
4329
- }, [Pt, se, rt]);
4332
+ un.current !== Pt && (un.current = Pt, on(!0), se("create"), at(y.editor));
4333
+ }, [Pt, se, at]);
4330
4334
  const ht = $((ie == null ? void 0 : ie.tick) ?? 0);
4331
4335
  G(() => {
4332
4336
  const u = (ie == null ? void 0 : ie.tick) ?? 0;
4333
- ht.current !== u && (ht.current = u, rt(y.findSlots));
4334
- }, [ie == null ? void 0 : ie.tick, rt]);
4335
- const Zn = $(ct);
4337
+ ht.current !== u && (ht.current = u, at(y.findSlots));
4338
+ }, [ie == null ? void 0 : ie.tick, at]);
4339
+ const Zn = $(lt);
4336
4340
  G(() => {
4337
- Zn.current !== ct && (Zn.current = ct, rt(y.bookings));
4338
- }, [ct, rt]);
4341
+ Zn.current !== lt && (Zn.current = lt, at(y.bookings));
4342
+ }, [lt, at]);
4339
4343
  const Tr = $(S);
4340
4344
  G(() => {
4341
- Tr.current !== S && (Tr.current = S, rt(y.waitingList));
4342
- }, [S, rt]), G(() => {
4345
+ Tr.current !== S && (Tr.current = S, at(y.waitingList));
4346
+ }, [S, at]), G(() => {
4343
4347
  if (i !== y.notes) {
4344
4348
  i && (lr.current = i);
4345
4349
  return;
4346
4350
  }
4347
- if (dt) return;
4351
+ if (tt) return;
4348
4352
  const u = lr.current, H = Ya(u) && v.has(u) || Jt.has(u) ? u : y.appointments;
4349
4353
  Pe(H), cancelAnimationFrame(sn.current), sn.current = requestAnimationFrame(() => {
4350
4354
  var ft;
4351
- const ne = s.current;
4352
- ne != null && ne.querySelector(`[data-active-tool="${CSS.escape(H)}"]`) && ((ft = ne.querySelector(`[data-tool-id="${CSS.escape(H)}"]`)) == null || ft.focus());
4355
+ 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());
4353
4357
  });
4354
4358
  }, [
4355
4359
  i,
4356
- dt,
4360
+ tt,
4357
4361
  v,
4358
4362
  Jt,
4359
4363
  Pe,
@@ -4405,16 +4409,16 @@ function _c({
4405
4409
  recurrence: ve,
4406
4410
  consentsForCares: S,
4407
4411
  medicalDevicesForCares: ie,
4408
- sameDayReminders: X,
4412
+ sameDayReminders: J,
4409
4413
  signatureCredits: x,
4410
- createPatientFromBooking: J,
4414
+ createPatientFromBooking: Z,
4411
4415
  createPatient: he,
4412
4416
  proposeFirstVisit: Nt,
4413
4417
  preferences: j,
4414
4418
  onFinderSearchRange: K,
4415
- loadAppointmentEditor: ae,
4419
+ loadAppointmentEditor: re,
4416
4420
  loadAppointmentDetails: ue,
4417
- id: st,
4421
+ id: it,
4418
4422
  backlogFilters: Ie,
4419
4423
  onBacklogFiltersChange: je,
4420
4424
  persistFavoritesKey: Oe,
@@ -4439,21 +4443,21 @@ function _c({
4439
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(
4440
4444
  () => Hi(o.split("|")),
4441
4445
  [o]
4442
- ), f = (k == null ? void 0 : k.editAppointment) === !1, it = B(
4446
+ ), f = (k == null ? void 0 : k.editAppointment) === !1, ot = B(
4443
4447
  () => Ui(w ?? Wc),
4444
4448
  [w]
4445
- ), Wn = it.tools.some(
4449
+ ), Wn = ot.tools.some(
4446
4450
  (t) => t.hold === !0 && t.id === xt
4447
4451
  ), D = B(
4448
- () => new Set(it.tools.map((t) => t.id)),
4449
- [it]
4450
- ), L = $(/* @__PURE__ */ new Set()), et = it.rejected.map(({ id: t, reason: a }) => `"${t}" (${a})`).join(", ");
4452
+ () => new Set(ot.tools.map((t) => t.id)),
4453
+ [ot]
4454
+ ), L = $(/* @__PURE__ */ new Set()), et = ot.rejected.map(({ id: t, reason: a }) => `"${t}" (${a})`).join(", ");
4451
4455
  G(() => {
4452
4456
  }, [et]);
4453
4457
  const ee = B(
4454
4458
  () => ({ ...ja, ...N }),
4455
4459
  [N]
4456
- ), [ot, On] = ra(
4460
+ ), [ct, On] = ra(
4457
4461
  kr.display,
4458
4462
  () => ({ ...ja, ...N }),
4459
4463
  (t) => {
@@ -4462,14 +4466,14 @@ function _c({
4462
4466
  },
4463
4467
  j
4464
4468
  ), At = B(
4465
- () => fe && ot.resourceKind !== "none" ? { ...ot, resourceKind: "none" } : ot,
4466
- [fe, ot]
4469
+ () => fe && ct.resourceKind !== "none" ? { ...ct, resourceKind: "none" } : ct,
4470
+ [fe, ct]
4467
4471
  ), {
4468
4472
  rows: nn,
4469
4473
  setRows: Wt,
4470
- focus: ct,
4474
+ focus: lt,
4471
4475
  setFocus: Yt,
4472
- waitingList: lt,
4476
+ waitingList: dt,
4473
4477
  setWaitingList: Xt,
4474
4478
  history: Ir,
4475
4479
  signRequests: ir,
@@ -4482,7 +4486,7 @@ function _c({
4482
4486
  handleComposeNew: Me,
4483
4487
  handleRemoveWaiting: or,
4484
4488
  handleUpsertWaiting: cr,
4485
- handleOpenBacklog: Z,
4489
+ handleOpenBacklog: Y,
4486
4490
  handleVisibleRangeChange: Ae,
4487
4491
  handleDeleteAppointment: Pe,
4488
4492
  handleMoveOccurrence: qe,
@@ -4491,8 +4495,8 @@ function _c({
4491
4495
  handleCopyAppointment: It,
4492
4496
  handleStatusChange: rn,
4493
4497
  handleDescriptionChange: We,
4494
- handleBookSlot: dt,
4495
- handleRevealAppointment: tt,
4498
+ handleBookSlot: tt,
4499
+ handleRevealAppointment: nt,
4496
4500
  handleCreateAppointment: Un,
4497
4501
  handleFindSlotsForWaiting: an,
4498
4502
  clearFindSlotsSeed: sn,
@@ -4612,12 +4616,12 @@ function _c({
4612
4616
  });
4613
4617
  },
4614
4618
  [fe, we]
4615
- ), nt = m(
4619
+ ), rt = m(
4616
4620
  () => pt(Me),
4617
4621
  [pt, Me]
4618
4622
  ), ln = m(
4619
- (t) => t.editEventId ? dt(t) : pt(() => dt(t)),
4620
- [pt, dt]
4623
+ (t) => t.editEventId ? tt(t) : pt(() => tt(t)),
4624
+ [pt, tt]
4621
4625
  ), jn = m(
4622
4626
  (t) => pt(() => Bn(t)),
4623
4627
  [pt, Bn]
@@ -4676,15 +4680,15 @@ function _c({
4676
4680
  ]
4677
4681
  ), $e = nn, mt = B(
4678
4682
  () => new Set(
4679
- i && (i.canComplete !== !0 || i.status !== "ready" || !ae) ? [
4683
+ i && (i.canComplete !== !0 || i.status !== "ready" || !re) ? [
4680
4684
  ...i.rows,
4681
4685
  ...$e.filter(
4682
4686
  (t) => t.event.isBookedOnline && (t.event.hasUnassignedPatient || !t.operatorId)
4683
4687
  )
4684
4688
  ].map((t) => t.event.id) : []
4685
4689
  ),
4686
- [i, $e, ae]
4687
- ), [rt, Xn] = _(""), Jn = m((t) => {
4690
+ [i, $e, re]
4691
+ ), [at, Xn] = _(""), Jn = m((t) => {
4688
4692
  Xn(
4689
4693
  (a) => a === t ? `${t}​` : t
4690
4694
  );
@@ -4712,10 +4716,10 @@ function _c({
4712
4716
  Qn.current = Bt;
4713
4717
  const Ge = $("timeGridWeek"), er = m((t) => {
4714
4718
  Ge.current = t;
4715
- }, []), ze = $(null), u = $(null), H = $(null), ne = $(null), ft = $(null), F = m(
4719
+ }, []), ze = $(null), u = $(null), H = $(null), ae = $(null), ft = $(null), F = m(
4716
4720
  (t, a) => {
4717
- var d, q, Ee, re, me, Se;
4718
- ne.current = t, t === y.settings ? (q = (d = pe.current) == null ? void 0 : d.onSettingsOpened) == null || q.call(d) : Ya(t) ? (re = (Ee = pe.current) == null ? void 0 : Ee.onToolOpen) == null || re.call(Ee, {
4721
+ var d, q, Ee, ne, me, Se;
4722
+ 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, {
4719
4723
  toolId: t,
4720
4724
  source: a,
4721
4725
  view: Ge.current
@@ -4777,7 +4781,7 @@ function _c({
4777
4781
  });
4778
4782
  return;
4779
4783
  }
4780
- const re = H.current;
4784
+ const ne = H.current;
4781
4785
  if (H.current = null, t === null) {
4782
4786
  requestAnimationFrame(
4783
4787
  () => requestAnimationFrame(
@@ -4787,18 +4791,18 @@ function _c({
4787
4791
  }
4788
4792
  )
4789
4793
  );
4790
- const me = Ze.current && re === y.appointments;
4791
- if (re && !me && L.current.has(re)) {
4792
- ze.current = null, u.current = re, ne.current = re, An(re), Ya(re) && Jn(wa(re, oe));
4794
+ const me = Ze.current && ne === y.appointments;
4795
+ if (ne && !me && L.current.has(ne)) {
4796
+ ze.current = null, u.current = ne, ae.current = ne, An(ne), Ya(ne) && Jn(wa(ne, oe));
4793
4797
  return;
4794
4798
  }
4795
4799
  }
4796
4800
  } else t === y.settings && u.current !== y.settings && (H.current = u.current);
4797
4801
  if (ze.current = null, u.current = t, An(t), ft.current = null, !t) {
4798
- ne.current = null;
4802
+ ae.current = null;
4799
4803
  return;
4800
4804
  }
4801
- t !== ne.current && (L.current.has(t) ? F(t, a) : ft.current = { id: t, source: a });
4805
+ t !== ae.current && (L.current.has(t) ? F(t, a) : ft.current = { id: t, source: a });
4802
4806
  },
4803
4807
  [F, be, we, Fe, Ce, oe]
4804
4808
  ), ia = m(() => {
@@ -4815,7 +4819,7 @@ function _c({
4815
4819
  }, []), tr = $(null);
4816
4820
  G(() => {
4817
4821
  tr.current = null;
4818
- }, [ct]);
4822
+ }, [lt]);
4819
4823
  const Ea = m(
4820
4824
  (t) => {
4821
4825
  t && (tr.current = { eventId: t.eventId, source: "calendar" }), Yt(t);
@@ -4823,9 +4827,9 @@ function _c({
4823
4827
  [Yt]
4824
4828
  ), Sa = m(
4825
4829
  (t, a) => {
4826
- tr.current = { eventId: t, source: a }, tt(t);
4830
+ tr.current = { eventId: t, source: a }, nt(t);
4827
4831
  },
4828
- [tt]
4832
+ [nt]
4829
4833
  ), oa = m((t) => {
4830
4834
  var d, q;
4831
4835
  const a = tr.current;
@@ -4882,10 +4886,10 @@ function _c({
4882
4886
  const [ca, zr] = _("create"), la = m(
4883
4887
  (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,
4884
4888
  [sn, kt]
4885
- ), qt = ct ? $e.find((t) => t.event.id === ct.eventId) ?? null : null, Hr = B(
4889
+ ), qt = lt ? $e.find((t) => t.event.id === lt.eventId) ?? null : null, Hr = B(
4886
4890
  () => Pr(qt == null ? void 0 : qt.event.patientId, s),
4887
4891
  [qt, s]
4888
- ), Wa = lt.length, Er = B(
4892
+ ), Wa = dt.length, Er = B(
4889
4893
  () => Mi($e, s, i, Ue),
4890
4894
  [$e, s, i, Ue]
4891
4895
  ), [da, Oa] = _(null), La = m(
@@ -4895,8 +4899,8 @@ function _c({
4895
4899
  throw new Error(oe("calendarWorkspace.inc1.readOnly.changeBlocked"));
4896
4900
  if (f)
4897
4901
  throw new Error(oe("calendarWorkspace.inc1.readOnly.changeBlocked"));
4898
- const d = t.editEventId ? $e.find((nr) => nr.event.id === t.editEventId) : void 0, q = Ta(d), Ee = d ? d.archiveId : $n.current, re = Ee ? { ...t, archiveId: Ee } : t;
4899
- await (q ? Un(re) : Un(re, a)), $n.current = void 0;
4902
+ 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;
4900
4904
  try {
4901
4905
  !t.editEventId && t.recurrence && ((Jr = (Se = pe.current) == null ? void 0 : Se.onRecurringCreated) == null || Jr.call(Se, {
4902
4906
  rule: fo(t.recurrence) ? "custom" : "preset",
@@ -4961,13 +4965,13 @@ function _c({
4961
4965
  ]
4962
4966
  ), Fa = m(
4963
4967
  (t, a) => {
4964
- var re;
4968
+ var ne;
4965
4969
  if (mt.has(t)) return;
4966
4970
  if (f) {
4967
4971
  hn(oe("calendarWorkspace.inc1.readOnly.changeBlocked"));
4968
4972
  return;
4969
4973
  }
4970
- const d = (re = $e.find((me) => me.event.id === t)) != null && re.series ? Ga($e, t, (a == null ? void 0 : a.scope) ?? "this") : null, q = d ? d.map((me) => cn(me)) : [cn(t, a)], Ee = () => {
4974
+ const d = (ne = $e.find((me) => me.event.id === t)) != null && ne.series ? Ga($e, t, (a == null ? void 0 : a.scope) ?? "this") : null, q = d ? d.map((me) => cn(me)) : [cn(t, a)], Ee = () => {
4971
4975
  d && d.length > 1 && fn(
4972
4976
  oe("calendarWorkspace.inc1.save.seriesDeleted", {
4973
4977
  count: d.length
@@ -4981,11 +4985,11 @@ function _c({
4981
4985
  pa.current = Ur;
4982
4986
  const Ft = m(
4983
4987
  (t, a, d) => {
4984
- var re, me, Se, Jr;
4988
+ var ne, me, Se, Jr;
4985
4989
  if (!qt || mt.has(qt.event.id)) return;
4986
4990
  ua({ kind: t, eventId: qt.event.id, withTreatments: d });
4987
4991
  const q = qt.event.id, Ee = Ge.current;
4988
- t === "move" ? (me = (re = pe.current) == null ? void 0 : re.onAppointmentMoveInitiated) == null || me.call(re, {
4992
+ t === "move" ? (me = (ne = pe.current) == null ? void 0 : ne.onAppointmentMoveInitiated) == null || me.call(ne, {
4989
4993
  eventId: q,
4990
4994
  surface: a,
4991
4995
  view: Ee
@@ -4997,7 +5001,7 @@ function _c({
4997
5001
  });
4998
5002
  },
4999
5003
  [qt, mt]
5000
- ), at = m(
5004
+ ), st = m(
5001
5005
  (t) => Ft("move", t),
5002
5006
  [Ft]
5003
5007
  ), Mr = m(
@@ -5087,14 +5091,14 @@ function _c({
5087
5091
  G(() => {
5088
5092
  le && (T((t) => ({ tick: t.tick + 1, id: le })), e((t) => t + 1));
5089
5093
  }, [le, V]);
5090
- const [C, W] = _(null), E = $(null), Y = m(
5094
+ const [C, W] = _(null), E = $(null), X = m(
5091
5095
  (t) => {
5092
- E.current = t ? t.id : "add", W({ entry: t }), Z("waiting");
5096
+ E.current = t ? t.id : "add", W({ entry: t }), Y("waiting");
5093
5097
  },
5094
- [Z]
5098
+ [Y]
5095
5099
  ), ye = m(() => W(null), []), R = $(C);
5096
5100
  G(() => {
5097
- var re;
5101
+ var ne;
5098
5102
  const t = R.current !== null;
5099
5103
  if (R.current = C, !t || C !== null) return;
5100
5104
  const a = E.current;
@@ -5103,7 +5107,7 @@ function _c({
5103
5107
  `[data-active-tool="${y.waitingList}"]`
5104
5108
  ), q = document.activeElement;
5105
5109
  if (q && q !== document.body && (d != null && d.contains(q))) return;
5106
- (re = (a && a !== "add" ? d == null ? void 0 : d.querySelector(`[data-entry-edit="${a}"]`) : d == null ? void 0 : d.querySelector("[data-entry-add]")) ?? (d == null ? void 0 : d.querySelector('h2, [tabindex="-1"]'))) == null || re.focus();
5110
+ (ne = (a && a !== "add" ? d == null ? void 0 : d.querySelector(`[data-entry-edit="${a}"]`) : d == null ? void 0 : d.querySelector("[data-entry-add]")) ?? (d == null ? void 0 : d.querySelector('h2, [tabindex="-1"]'))) == null || ne.focus();
5107
5111
  }, [C]);
5108
5112
  const De = m(
5109
5113
  (t) => {
@@ -5120,7 +5124,7 @@ function _c({
5120
5124
  hn(oe("calendarWorkspace.inc1.readOnly.waitingBlocked"));
5121
5125
  return;
5122
5126
  }
5123
- const a = lt.findIndex((d) => d.id === t.id);
5127
+ const a = dt.findIndex((d) => d.id === t.id);
5124
5128
  or(t), fn(oe("calendarWorkspace.inc1.waitingList.removed"), {
5125
5129
  action: {
5126
5130
  label: oe("calendarWorkspace.inc1.waitingList.undo"),
@@ -5134,7 +5138,7 @@ function _c({
5134
5138
  }
5135
5139
  });
5136
5140
  },
5137
- [lt, or, Xt, f, oe]
5141
+ [dt, or, Xt, f, oe]
5138
5142
  ), Dt = m(
5139
5143
  (t) => {
5140
5144
  an(t);
@@ -5147,7 +5151,7 @@ function _c({
5147
5151
  tr.current = {
5148
5152
  eventId: P,
5149
5153
  source: "deep_link"
5150
- }, tt(P), Yr({ tick: 1, eventId: P });
5154
+ }, nt(P), Yr({ tick: 1, eventId: P });
5151
5155
  return;
5152
5156
  }
5153
5157
  if (xe) {
@@ -5164,7 +5168,7 @@ function _c({
5164
5168
  P,
5165
5169
  xe,
5166
5170
  se,
5167
- tt,
5171
+ nt,
5168
5172
  ln
5169
5173
  ]), /* @__PURE__ */ n(eo.Provider, { value: pn, children: /* @__PURE__ */ I(
5170
5174
  "div",
@@ -5173,7 +5177,7 @@ function _c({
5173
5177
  ref: Cn,
5174
5178
  className: "ds:flex ds:h-full ds:min-h-0 ds:w-full ds:items-stretch",
5175
5179
  children: [
5176
- /* @__PURE__ */ n(Da, { "aria-live": "polite", children: rt }),
5180
+ /* @__PURE__ */ n(Da, { "aria-live": "polite", children: at }),
5177
5181
  /* @__PURE__ */ n(
5178
5182
  Pc,
5179
5183
  {
@@ -5181,7 +5185,7 @@ function _c({
5181
5185
  workspaceRef: Cn,
5182
5186
  activeToolId: xt,
5183
5187
  availableTools: kt,
5184
- focus: ct,
5188
+ focus: lt,
5185
5189
  rows: $e,
5186
5190
  locale: St,
5187
5191
  privacy: dn,
@@ -5194,22 +5198,22 @@ function _c({
5194
5198
  onEditorModeChange: zr,
5195
5199
  editorSeed: Ct,
5196
5200
  slotPatch: yt,
5197
- loadAppointmentEditor: ae,
5201
+ loadAppointmentEditor: re,
5198
5202
  loadAppointmentDetails: ue,
5199
- waitingList: lt,
5203
+ waitingList: dt,
5200
5204
  waitingSeedTick: Ln.tick,
5201
5205
  findSlotsSeed: Pt,
5202
5206
  history: Ir,
5203
5207
  signRequests: ir,
5204
- mapsLink: ot.mapsLink,
5205
- defaultDurationMin: ot.defaultDurationMin,
5208
+ mapsLink: ct.mapsLink,
5209
+ defaultDurationMin: ct.defaultDurationMin,
5206
5210
  noteUnrecordedEdits: O,
5207
5211
  recurrence: ve,
5208
5212
  consentsForCares: S,
5209
5213
  medicalDevicesForCares: ie,
5210
- sameDayReminders: X,
5214
+ sameDayReminders: J,
5211
5215
  signatureCredits: x,
5212
- createPatientFromBooking: J,
5216
+ createPatientFromBooking: Z,
5213
5217
  createPatient: he,
5214
5218
  defaultReminders: He,
5215
5219
  proposeFirstVisit: Nt,
@@ -5220,7 +5224,7 @@ function _c({
5220
5224
  onDelete: Fa,
5221
5225
  onRecurringScopeChosen: hr,
5222
5226
  onDetailsActionUsed: wr,
5223
- onMove: at,
5227
+ onMove: st,
5224
5228
  onCopy: Mr,
5225
5229
  onEditOpened: qr,
5226
5230
  onDeleteInitiated: Kr,
@@ -5239,7 +5243,7 @@ function _c({
5239
5243
  onWaitingListFilterUsed: ma,
5240
5244
  onWaitingListAdvancedFilterToggled: jr,
5241
5245
  onRemoveWaiting: Kt,
5242
- onOpenEntryForm: Y,
5246
+ onOpenEntryForm: X,
5243
5247
  entryForm: C,
5244
5248
  onSaveEntry: De,
5245
5249
  onCancelEntry: ye,
@@ -5264,7 +5268,7 @@ function _c({
5264
5268
  onSetTaskDone: on,
5265
5269
  loadTask: $t,
5266
5270
  taskComposeTick: mr,
5267
- extraTools: it.tools,
5271
+ extraTools: ot.tools,
5268
5272
  extraToolIds: D,
5269
5273
  registeredToolIdsRef: L,
5270
5274
  settingsBridge: be,
@@ -5326,7 +5330,7 @@ function _c({
5326
5330
  draftSlot: zn,
5327
5331
  onDraftMoved: (t) => pr(t),
5328
5332
  onDraftResized: (t) => pr({ durationMin: t }),
5329
- id: st,
5333
+ id: it,
5330
5334
  availableTools: kt,
5331
5335
  schedulerLicenseKey: Ne,
5332
5336
  preferences: j,
@@ -5353,20 +5357,20 @@ function _c({
5353
5357
  availabilityContext: lr,
5354
5358
  onComposeNew: f ? () => hn(
5355
5359
  oe("calendarWorkspace.inc1.readOnly.createBlocked")
5356
- ) : nt,
5360
+ ) : rt,
5357
5361
  onComposeTask: A === void 0 ? void 0 : Mt,
5358
5362
  onOpenWaitingList: () => {
5359
- ye(), Z("waiting");
5363
+ ye(), Y("waiting");
5360
5364
  },
5361
5365
  onAddWaitingEntry: f ? () => hn(
5362
5366
  oe("calendarWorkspace.inc1.readOnly.waitingBlocked")
5363
- ) : () => Y(),
5367
+ ) : () => X(),
5364
5368
  waitingBadgeCount: Wa,
5365
5369
  onOpenOnlineBookings: c,
5366
5370
  onlineBookingsCount: Er.length,
5367
5371
  onVisibleRangeChange: Ae,
5368
5372
  onRetryLoad: g,
5369
- selectedEventId: (ct == null ? void 0 : ct.eventId) ?? null,
5373
+ selectedEventId: (lt == null ? void 0 : lt.eventId) ?? null,
5370
5374
  gotoRequest: br,
5371
5375
  onBookSlot: ln,
5372
5376
  gridHeld: Wn,
@@ -5516,4 +5520,4 @@ export {
5516
5520
  sd as C,
5517
5521
  ad as i
5518
5522
  };
5519
- //# sourceMappingURL=calendar-appointment-editor-dialog-fQleWmJE.js.map
5523
+ //# sourceMappingURL=calendar-appointment-editor-dialog-BfoEpFVx.js.map