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