@alfadocs/ui-kit 1.134.0 → 1.136.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 (205) hide show
  1. package/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
  2. package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
  3. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
  4. package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
  5. package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
  6. package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  8. package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
  9. package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
  10. package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
  11. package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
  12. package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
  13. package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
  14. package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
  15. package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
  16. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  17. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
  18. package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
  19. package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
  20. package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
  21. package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
  22. package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
  23. package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
  24. package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
  25. package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
  26. package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
  27. package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
  28. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  29. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  30. package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
  34. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  35. package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
  36. package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
  37. package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
  38. package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
  39. package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
  40. package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
  41. package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
  42. package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
  43. package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
  44. package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
  45. package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
  46. package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
  47. package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
  48. package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
  49. package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
  50. package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
  51. package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
  52. package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
  53. package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
  54. package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
  55. package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
  56. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  57. package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
  58. package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
  59. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
  60. package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
  61. package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
  62. package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
  63. package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
  64. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  65. package/dist/agent-catalog.json +528 -2
  66. package/dist/agent-i18n/en.json +51 -1
  67. package/dist/browser-support.js +1 -1
  68. package/dist/components/_shared/sms-segments.d.ts +43 -0
  69. package/dist/components/ai-prompt-input/index.js +1 -1
  70. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  71. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
  72. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  73. package/dist/components/ai-summary-panel/index.js +6 -0
  74. package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
  75. package/dist/components/appointment-card/index.js +2 -2
  76. package/dist/components/appointment-details-panel/index.js +1 -1
  77. package/dist/components/appointment-peek/index.js +1 -1
  78. package/dist/components/appointment-timeline/index.js +1 -1
  79. package/dist/components/audio-recorder/index.js +1 -1
  80. package/dist/components/bill-line-table/index.js +1 -1
  81. package/dist/components/bill-table/index.js +1 -1
  82. package/dist/components/bishop-score/index.js +1 -1
  83. package/dist/components/booking/index.js +1 -1
  84. package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
  85. package/dist/components/call-status-chip/index.d.ts +3 -0
  86. package/dist/components/call-status-chip/index.js +5 -0
  87. package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
  88. package/dist/components/calls-panel/calls-panel.d.ts +153 -0
  89. package/dist/components/calls-panel/index.d.ts +4 -0
  90. package/dist/components/calls-panel/index.js +6 -0
  91. package/dist/components/chat-container/chat-container.d.ts +7 -0
  92. package/dist/components/chat-container/index.js +1 -1
  93. package/dist/components/chat-input/chat-input.d.ts +20 -0
  94. package/dist/components/chat-input/index.js +1 -1
  95. package/dist/components/chat-message/index.js +1 -1
  96. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  97. package/dist/components/communications-panel/communications-panel.d.ts +148 -0
  98. package/dist/components/communications-panel/index.d.ts +6 -0
  99. package/dist/components/communications-panel/index.js +7 -0
  100. package/dist/components/data-grid/index.js +2 -2
  101. package/dist/components/data-table/index.js +2 -2
  102. package/dist/components/document-preview/index.js +1 -1
  103. package/dist/components/entity-summary/entity-summary.d.ts +37 -1
  104. package/dist/components/entity-summary/index.js +1 -1
  105. package/dist/components/file-manager/index.js +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/heatmap/index.js +1 -1
  108. package/dist/components/index.d.ts +4 -0
  109. package/dist/components/invoice-upload-list/index.js +1 -1
  110. package/dist/components/muscle-scheme/index.js +1 -1
  111. package/dist/components/notes-panel/index.js +1 -1
  112. package/dist/components/optical-prescription/index.js +1 -1
  113. package/dist/components/patient-details/index.js +1 -1
  114. package/dist/components/patient-summary-card/index.js +1 -1
  115. package/dist/components/patient-table/index.js +1 -1
  116. package/dist/components/pregnancy-dating/index.js +1 -1
  117. package/dist/components/rich-text-editor/index.js +1 -1
  118. package/dist/components/select/index.js +1 -1
  119. package/dist/components/select/select.d.ts +8 -0
  120. package/dist/components/session-countdown/index.js +1 -1
  121. package/dist/components/skeleton-scheme/index.js +1 -1
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/task-editor/index.js +1 -1
  124. package/dist/components/tasks-panel/index.js +1 -1
  125. package/dist/components/unit-converter/index.js +1 -1
  126. package/dist/components/voice-control-panel/index.js +1 -1
  127. package/dist/components/workflow-status/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/host-compat.css +13 -4
  130. package/dist/i18n/locales/ar.d.ts +162 -0
  131. package/dist/i18n/locales/ar.js +163 -0
  132. package/dist/i18n/locales/de.d.ts +162 -0
  133. package/dist/i18n/locales/de.js +163 -0
  134. package/dist/i18n/locales/el.d.ts +162 -0
  135. package/dist/i18n/locales/el.js +163 -0
  136. package/dist/i18n/locales/en.d.ts +162 -0
  137. package/dist/i18n/locales/en.js +163 -0
  138. package/dist/i18n/locales/es.d.ts +162 -0
  139. package/dist/i18n/locales/es.js +163 -0
  140. package/dist/i18n/locales/fr.d.ts +162 -0
  141. package/dist/i18n/locales/fr.js +163 -0
  142. package/dist/i18n/locales/hi.d.ts +162 -0
  143. package/dist/i18n/locales/hi.js +163 -0
  144. package/dist/i18n/locales/it.d.ts +162 -0
  145. package/dist/i18n/locales/it.js +163 -0
  146. package/dist/i18n/locales/ja.d.ts +162 -0
  147. package/dist/i18n/locales/ja.js +163 -0
  148. package/dist/i18n/locales/nl.d.ts +162 -0
  149. package/dist/i18n/locales/nl.js +163 -0
  150. package/dist/i18n/locales/pl.d.ts +162 -0
  151. package/dist/i18n/locales/pl.js +163 -0
  152. package/dist/i18n/locales/pt.d.ts +162 -0
  153. package/dist/i18n/locales/pt.js +163 -0
  154. package/dist/i18n/locales/ro.d.ts +162 -0
  155. package/dist/i18n/locales/ro.js +163 -0
  156. package/dist/i18n/locales/ru.d.ts +162 -0
  157. package/dist/i18n/locales/ru.js +163 -0
  158. package/dist/i18n/locales/sq.d.ts +162 -0
  159. package/dist/i18n/locales/sq.js +163 -0
  160. package/dist/i18n/locales/sv.d.ts +162 -0
  161. package/dist/i18n/locales/sv.js +163 -0
  162. package/dist/i18n/locales/tr.d.ts +162 -0
  163. package/dist/i18n/locales/tr.js +163 -0
  164. package/dist/i18n/locales/zh.d.ts +162 -0
  165. package/dist/i18n/locales/zh.js +163 -0
  166. package/dist/index.js +905 -893
  167. package/dist/locales/ar.json +162 -0
  168. package/dist/locales/de.json +162 -0
  169. package/dist/locales/el.json +162 -0
  170. package/dist/locales/en.json +162 -0
  171. package/dist/locales/es.json +162 -0
  172. package/dist/locales/fr.json +162 -0
  173. package/dist/locales/hi.json +162 -0
  174. package/dist/locales/it.json +162 -0
  175. package/dist/locales/ja.json +162 -0
  176. package/dist/locales/nl.json +162 -0
  177. package/dist/locales/pl.json +162 -0
  178. package/dist/locales/pt.json +162 -0
  179. package/dist/locales/ro.json +162 -0
  180. package/dist/locales/ru.json +162 -0
  181. package/dist/locales/sq.json +162 -0
  182. package/dist/locales/sv.json +162 -0
  183. package/dist/locales/tr.json +162 -0
  184. package/dist/locales/zh.json +162 -0
  185. package/dist/patterns/alia-assistant/index.js +1 -1
  186. package/dist/patterns/anamnesis/index.js +1 -1
  187. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  188. package/dist/patterns/calendar/index.js +1 -1
  189. package/dist/patterns/patient-account-settings/index.js +1 -1
  190. package/dist/patterns/patient-check-in/index.js +1 -1
  191. package/dist/patterns/patient-portal/index.js +2 -2
  192. package/dist/patterns/patient-sign-in/index.js +2 -2
  193. package/dist/patterns/registration-form/index.js +1 -1
  194. package/dist/patterns/signature-request/index.js +1 -1
  195. package/dist/patterns/signing/index.d.ts +1 -0
  196. package/dist/patterns/signing/index.js +1 -1
  197. package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
  198. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  199. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  200. package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
  201. package/dist/tokens.css +1 -1
  202. package/package.json +17 -1
  203. package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
  204. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  205. package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
@@ -1,29 +1,30 @@
1
- import { jsx as e, jsxs as f, Fragment as ie } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as h, Fragment as ie } from "react/jsx-runtime";
2
2
  import { c as vt } from "./index-D2ZczOXr.js";
3
3
  import { useId as ot, useRef as _, forwardRef as ln, useEffect as xe, useMemo as Mt, useState as H, useCallback as cn } from "react";
4
4
  import { useTranslation as B } from "react-i18next";
5
5
  import { u as un } from "./registry-DvAUVLHh.js";
6
6
  import { u as me } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
7
  import { c as mn } from "./compose-refs-C0k0tdqF.js";
8
- import { h as at, g as dt } from "./handled-rejection-6gqCf5vt.js";
8
+ import { g as dt } from "./get-error-message-DbFUzuja.js";
9
+ import { h as at } from "./handled-rejection-C-6Dq0As.js";
9
10
  import { b as pn, P as Lt } from "./privacy-mask-C19dJFMk.js";
10
11
  import { A as $ } from "./alert-C4WKViaS.js";
11
12
  import { B as L } from "./button-DohK_Ak_.js";
12
13
  import { I as Yt } from "./icon-button-S8_weU3g.js";
13
- import { B as hn } from "./button-group-DuQuuulC.js";
14
+ import { B as fn } from "./button-group-DuQuuulC.js";
14
15
  import { D as qe } from "./dropdown-menu-DBWaW4pq.js";
15
16
  import { E as Gt } from "./editable-description-KU56SP4P.js";
16
17
  import { N as lt } from "./note-timeline-BbjHMhkL.js";
17
18
  import { P as Vt } from "./panel-header-CbtlTe85.js";
18
19
  import { P as it } from "./panel-subview-DCyvn-49.js";
19
- import { P as Xt } from "./patient-summary-card-Bl2NknPe.js";
20
+ import { P as Xt } from "./patient-summary-card-K9zaMl1O.js";
20
21
  import { S as pe } from "./section-card-CYfeQ6EQ.js";
21
- import { C as fn, S as we } from "./skeleton-tTWJpvAq.js";
22
+ import { C as hn, S as we } from "./skeleton-tTWJpvAq.js";
22
23
  import { T as gn } from "./text-area-COMVJ1yE.js";
23
24
  import { T as vn } from "./tooltip-uEBdD1-5.js";
24
25
  import { T as Qt } from "./treatment-receipt-BZzwvsnY.js";
25
26
  import { a as st } from "./whatsapp-button-XbozeDl_.js";
26
- import { a as Jt, W as yn } from "./workflow-status-D1WgGVTP.js";
27
+ import { a as Jt, W as yn } from "./workflow-status-CO0mxXs2.js";
27
28
  import { u as yt, a as Ot, i as bn } from "./appointment-workflow-status-S-lx81Yz.js";
28
29
  import { E as kn } from "./empty-state-DwJ5YNzz.js";
29
30
  import { T as Oe } from "./timeline-DXko0M1t.js";
@@ -255,13 +256,13 @@ const ta = [
255
256
  }
256
257
  }
257
258
  };
258
- function ht(t) {
259
+ function ft(t) {
259
260
  const n = document.activeElement;
260
261
  n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
261
262
  }
262
263
  function _e(t) {
263
264
  const n = document.getElementById(t);
264
- n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), ht(n);
265
+ n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), ft(n);
265
266
  }
266
267
  const ue = {
267
268
  advancedSignature: "setup-advanced-signature",
@@ -309,7 +310,7 @@ function ia(t, n, i) {
309
310
  return "";
310
311
  }
311
312
  }
312
- const ft = {
313
+ const ht = {
313
314
  weekday: "short",
314
315
  day: "numeric",
315
316
  month: "short",
@@ -326,11 +327,11 @@ const ra = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})$/;
326
327
  function oa(t) {
327
328
  const n = typeof t == "string" ? ra.exec(t) : null;
328
329
  if (!n) return;
329
- const [i, o, s, d, p, h] = n.slice(1).map(Number), c = /* @__PURE__ */ new Date(0);
330
- if (c.setFullYear(i, o, 0), o < 1 || o > 12 || s < 1 || s > c.getDate() || d > 23 || p > 59 || h > 59)
330
+ const [i, o, s, d, p, f] = n.slice(1).map(Number), c = /* @__PURE__ */ new Date(0);
331
+ if (c.setFullYear(i, o, 0), o < 1 || o > 12 || s < 1 || s > c.getDate() || d > 23 || p > 59 || f > 59)
331
332
  return;
332
333
  const r = /* @__PURE__ */ new Date(0);
333
- return r.setFullYear(i, o - 1, s), r.setHours(d, p, h, 0), r;
334
+ return r.setFullYear(i, o - 1, s), r.setHours(d, p, f, 0), r;
334
335
  }
335
336
  function da(t) {
336
337
  return t.map((n) => {
@@ -359,7 +360,7 @@ function ma(t) {
359
360
  const n = tn(t);
360
361
  return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(n)}`;
361
362
  }
362
- const P = (t) => `calendarWorkspace.details.${t}`, pa = /* @__PURE__ */ new Set(["patient", "care"]), Bt = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i, ha = (t) => {
363
+ const P = (t) => `calendarWorkspace.details.${t}`, pa = /* @__PURE__ */ new Set(["patient", "care"]), Bt = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i, fa = (t) => {
363
364
  switch (t.field) {
364
365
  case "time":
365
366
  return !!(t.fromIso || t.toIso);
@@ -369,9 +370,9 @@ const P = (t) => `calendarWorkspace.details.${t}`, pa = /* @__PURE__ */ new Set(
369
370
  return !!(t.from || t.to);
370
371
  }
371
372
  };
372
- function fa(t) {
373
+ function ha(t) {
373
374
  const n = t.kind === "moved" ? [{ field: "time", fromIso: t.fromIso, toIso: t.toIso }] : t.kind === "resized" ? [{ field: "duration", fromMin: t.fromMin, toMin: t.toMin }] : t.kind === "status" ? [{ field: "status", from: t.from, to: t.to }] : [], i = ("changes" in t ? t.changes ?? [] : []).filter(
374
- ha
375
+ fa
375
376
  ), o = new Set(n.map((s) => s.field));
376
377
  return [
377
378
  ...n,
@@ -385,15 +386,15 @@ function va({
385
386
  noteUnrecordedEdits: i = !1,
386
387
  privacy: o = !1
387
388
  }) {
388
- const { t: s, i18n: d } = B("ui"), { optionFor: p } = yt(null), h = n ?? d.language, c = (a, m) => {
389
+ const { t: s, i18n: d } = B("ui"), { optionFor: p } = yt(null), f = n ?? d.language, c = (a, m) => {
389
390
  try {
390
- return new Intl.DateTimeFormat(h, m).format(
391
+ return new Intl.DateTimeFormat(f, m).format(
391
392
  new Date(a)
392
393
  );
393
394
  } catch {
394
395
  return a;
395
396
  }
396
- }, r = (a) => c(a, ft), l = s(P("history.notSet")), g = (a) => {
397
+ }, r = (a) => c(a, ht), l = s(P("history.notSet")), g = (a) => {
397
398
  switch (a.field) {
398
399
  case "status":
399
400
  return {
@@ -448,9 +449,9 @@ function va({
448
449
  size: "sm"
449
450
  }
450
451
  ) : m(void 0, !1), { from: b, to: A } = g(a);
451
- return /* @__PURE__ */ f("div", { className: "ds:min-w-0", "data-history-change": a.field, children: [
452
+ return /* @__PURE__ */ h("div", { className: "ds:min-w-0", "data-history-change": a.field, children: [
452
453
  /* @__PURE__ */ e("span", { className: "ds:sr-only", children: w(a) }),
453
- /* @__PURE__ */ f(
454
+ /* @__PURE__ */ h(
454
455
  "div",
455
456
  {
456
457
  "aria-hidden": "true",
@@ -492,7 +493,7 @@ function va({
492
493
  icon: /* @__PURE__ */ e(Zt, { size: 16, "aria-hidden": "true" })
493
494
  };
494
495
  }
495
- const m = fa(a), k = o ? m.filter((y) => !pa.has(y.field)) : m, b = new Set(k.map((y) => y.field)), A = [
496
+ const m = ha(a), k = o ? m.filter((y) => !pa.has(y.field)) : m, b = new Set(k.map((y) => y.field)), A = [
496
497
  ...a.kind === "edited" ? a.fields : [],
497
498
  ...m.filter((y) => !b.has(y.field)).map((y) => y.field)
498
499
  ].filter(
@@ -554,13 +555,13 @@ function va({
554
555
  title: s(P(y.title)),
555
556
  type: a.kind === "moved" || a.kind === "resized" ? "info" : a.kind === "status" && (a.to === "cancelled" || a.to === "absent") ? "warning" : "neutral",
556
557
  icon: y.icon,
557
- detail: /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
558
+ detail: /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
558
559
  /* @__PURE__ */ e(
559
560
  "dl",
560
561
  {
561
562
  "aria-label": s(P("history.changesLabel")),
562
563
  className: "ds:m-0 ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:items-baseline ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-xs)]",
563
- children: k.map((M) => /* @__PURE__ */ f("div", { className: "ds:contents", children: [
564
+ children: k.map((M) => /* @__PURE__ */ h("div", { className: "ds:contents", children: [
564
565
  /* @__PURE__ */ e("dt", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: s(P(`history.fields.${M.field}`)) }),
565
566
  /* @__PURE__ */ e("dd", { className: "ds:m-0 ds:min-w-0", children: v(M) })
566
567
  ] }, M.field))
@@ -586,7 +587,7 @@ function va({
586
587
  }
587
588
  ) : /* @__PURE__ */ e(Oe, { order: "newest-first", "aria-label": s(P("historyTitle")), children: da(t).map((a) => {
588
589
  const m = N(a);
589
- return /* @__PURE__ */ f(
590
+ return /* @__PURE__ */ h(
590
591
  Oe.Event,
591
592
  {
592
593
  eventId: a.id,
@@ -601,7 +602,7 @@ function va({
601
602
  description: m.detail,
602
603
  className: "ds:[padding-block-end:0] ds:[&>[data-component=card]]:border-[color:var(--card-border)] ds:[&>[data-component=card]]:shadow-[var(--shadow-card)]",
603
604
  actor: a.actor.trim() ? { name: a.actor } : void 0,
604
- children: /* @__PURE__ */ f("span", { className: "ds:mt-[var(--spacing-sm)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
605
+ children: /* @__PURE__ */ h("span", { className: "ds:mt-[var(--spacing-sm)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
605
606
  /* @__PURE__ */ e(
606
607
  bt,
607
608
  {
@@ -614,7 +615,7 @@ function va({
614
615
  {
615
616
  date: a.atIso,
616
617
  relative: !1,
617
- locale: h
618
+ locale: f
618
619
  }
619
620
  )
620
621
  ] })
@@ -685,17 +686,17 @@ function ka({
685
686
  flags: s,
686
687
  age: d,
687
688
  onOpenPatient: p,
688
- highlightedAnamnesisCount: h = 0,
689
+ highlightedAnamnesisCount: f = 0,
689
690
  expiredAnamnesisCount: c = 0,
690
691
  anamnesisAnswers: r = [],
691
692
  locale: l
692
693
  }) {
693
- const { t: g, i18n: w } = B("ui"), v = (b) => `calendarWorkspace.details.${b}`, { optionFor: N } = yt(o), a = o ? N(o) : void 0, m = h, k = c;
694
- return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:pb-0", children: [
695
- /* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
694
+ const { t: g, i18n: w } = B("ui"), v = (b) => `calendarWorkspace.details.${b}`, { optionFor: N } = yt(o), a = o ? N(o) : void 0, m = f, k = c;
695
+ return /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:pb-0", children: [
696
+ /* @__PURE__ */ h("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
696
697
  /* @__PURE__ */ e(ut, { name: t, src: n }),
697
- /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[min-inline-size:0]", children: [
698
- /* @__PURE__ */ f("span", { className: "ds:flex ds:flex-wrap ds:items-baseline ds:gap-[var(--spacing-2xs)] ds:text-start", children: [
698
+ /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[min-inline-size:0]", children: [
699
+ /* @__PURE__ */ h("span", { className: "ds:flex ds:flex-wrap ds:items-baseline ds:gap-[var(--spacing-2xs)] ds:text-start", children: [
699
700
  p ? /* @__PURE__ */ e(L, { size: "sm", intent: "link", onClick: () => p(), children: t }) : /* @__PURE__ */ e("span", { className: "ds:font-[var(--font-weight-semibold)] ds:truncate", children: t }),
700
701
  d !== void 0 ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: g(v("patientAge"), { n: d }) }) : null
701
702
  ] }),
@@ -712,7 +713,7 @@ function ka({
712
713
  /* @__PURE__ */ e(ba, { event: s })
713
714
  ] })
714
715
  ] }),
715
- m + k > 0 ? /* @__PURE__ */ f(
716
+ m + k > 0 ? /* @__PURE__ */ h(
716
717
  $,
717
718
  {
718
719
  variant: "warning",
@@ -728,7 +729,7 @@ function ka({
728
729
  /* Question · yes or no · answer · interview date, as the
729
730
  platform's details dialog lists them. A list, not a
730
731
  Description, which renders a <p>. */
731
- /* @__PURE__ */ e("ul", { className: "type-body-sm ds:m-0 ds:mt-[var(--spacing-xs)] ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0", children: r.map((b) => /* @__PURE__ */ f("li", { className: "ds:text-start", children: [
732
+ /* @__PURE__ */ e("ul", { className: "type-body-sm ds:m-0 ds:mt-[var(--spacing-xs)] ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0", children: r.map((b) => /* @__PURE__ */ h("li", { className: "ds:text-start", children: [
732
733
  /* @__PURE__ */ e("span", { className: "ds:font-[var(--font-weight-semibold)]", children: b.question }),
733
734
  ` · ${g(v(b.yes ? "anamnesisYes" : "anamnesisNo"))}`,
734
735
  b.answer ? ` · ${b.answer}` : "",
@@ -780,7 +781,7 @@ function Aa(t, n, i) {
780
781
  function Ta(t, n, i, o) {
781
782
  const s = la[i.frequency];
782
783
  if (!s) return;
783
- const d = (N) => `calendarWorkspace.editor.${N}`, p = (N) => `calendarWorkspace.details.${N}`, h = xa[i.frequency], c = h && (i.interval ?? 1) > 1 ? t(d(h), { count: i.interval }) : t(d(s)), r = (i.byDay ?? []).map((N) => Ia.exec(N)).filter((N) => N !== null), l = i.frequency === "weekly" ? Na.filter(
784
+ const d = (N) => `calendarWorkspace.editor.${N}`, p = (N) => `calendarWorkspace.details.${N}`, f = xa[i.frequency], c = f && (i.interval ?? 1) > 1 ? t(d(f), { count: i.interval }) : t(d(s)), r = (i.byDay ?? []).map((N) => Ia.exec(N)).filter((N) => N !== null), l = i.frequency === "weekly" ? Na.filter(
784
785
  (N) => r.some(([, a, m]) => !a && m === N)
785
786
  ) : [], g = i.frequency === "monthly" || i.frequency === "yearly" ? r.find(([, N]) => N) : void 0;
786
787
  let w = c;
@@ -812,7 +813,7 @@ function gt({
812
813
  heading: n,
813
814
  facts: i
814
815
  }) {
815
- return /* @__PURE__ */ f(ie, { children: [
816
+ return /* @__PURE__ */ h(ie, { children: [
816
817
  /* @__PURE__ */ e(Se.Eyebrow, { children: t }),
817
818
  /* @__PURE__ */ e(Se.Heading, { children: n }),
818
819
  i && i.length > 0 ? /* @__PURE__ */ e(Se.Body, { children: /* @__PURE__ */ e("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0 type-body-sm", children: i.map((o, s) => /* @__PURE__ */ e(
@@ -833,7 +834,7 @@ function Ut({
833
834
  facts: o,
834
835
  children: s
835
836
  }) {
836
- return /* @__PURE__ */ f(Se, { children: [
837
+ return /* @__PURE__ */ h(Se, { children: [
837
838
  /* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: Ea, children: s }) }),
838
839
  /* @__PURE__ */ e(Se.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(gt, { eyebrow: n, heading: i, facts: o }) })
839
840
  ] });
@@ -864,7 +865,7 @@ function Ye({
864
865
  }
865
866
  function qt({ rows: t }) {
866
867
  const n = t.filter((i) => !!i);
867
- return n.length === 0 ? null : /* @__PURE__ */ e(je, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */ f(
868
+ return n.length === 0 ? null : /* @__PURE__ */ e(je, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */ h(
868
869
  je.Row,
869
870
  {
870
871
  "data-row": i.id,
@@ -885,7 +886,7 @@ function Ca({
885
886
  mapsLink: s = !1,
886
887
  shortcuts: d,
887
888
  onRequestSignature: p,
888
- onSignOnDevice: h,
889
+ onSignOnDevice: f,
889
890
  onOpenPatient: c
890
891
  }) {
891
892
  const { t: r } = B("ui"), { patient: l, signing: g, money: w, booking: v } = t;
@@ -895,7 +896,7 @@ function Ca({
895
896
  text: m ? a.requestedVia === "sms" ? r(u("signingRequestedSms")) : a.requestedVia === "email" ? r(u("signingRequestedEmail")) : r(u("signingNotRequested")) : r(u("signingAllSigned"))
896
897
  },
897
898
  ...a.aesSetUp ? [] : [{ text: r(u("aesMissing")), muted: !0 }]
898
- ] : [], b = ((g == null ? void 0 : g.required) ?? 0) > 0 && m, A = !!(d != null && d.advancedSignatureUrl) && ((g == null ? void 0 : g.required) ?? 0) > 0 && !(g != null && g.aesSetUp), T = !!p && b, S = !!h && b, y = l.highlightedAnamnesisCount ?? 0, M = l.expiredAnamnesisCount ?? 0, W = (l.highlightedAnamnesisAnswers ?? []).map((R) => ({
899
+ ] : [], b = ((g == null ? void 0 : g.required) ?? 0) > 0 && m, A = !!(d != null && d.advancedSignatureUrl) && ((g == null ? void 0 : g.required) ?? 0) > 0 && !(g != null && g.aesSetUp), T = !!p && b, S = !!f && b, y = l.highlightedAnamnesisCount ?? 0, M = l.expiredAnamnesisCount ?? 0, W = (l.highlightedAnamnesisAnswers ?? []).map((R) => ({
899
900
  text: [
900
901
  R.question,
901
902
  r(u(R.yes ? "anamnesisYes" : "anamnesisNo")),
@@ -956,7 +957,7 @@ function Ca({
956
957
  )
957
958
  }
958
959
  ] : []
959
- ], V = (w == null ? void 0 : w.unpaidAmount) ?? 0, X = (w == null ? void 0 : w.billableAmount) ?? 0, J = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, Z = (R, ee, te, Ie, he, ne) => /* @__PURE__ */ e(
960
+ ], V = (w == null ? void 0 : w.unpaidAmount) ?? 0, X = (w == null ? void 0 : w.billableAmount) ?? 0, J = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, Z = (R, ee, te, Ie, fe, ne) => /* @__PURE__ */ e(
960
961
  Ut,
961
962
  {
962
963
  id: te,
@@ -964,7 +965,7 @@ function Ca({
964
965
  heading: r(u(Ie), {
965
966
  amount: sn(n, ee, i)
966
967
  }),
967
- facts: [{ text: r(u(he)) }],
968
+ facts: [{ text: r(u(fe)) }],
968
969
  children: /* @__PURE__ */ e(
969
970
  Tn,
970
971
  {
@@ -1016,8 +1017,8 @@ function Ca({
1016
1017
  }
1017
1018
  )
1018
1019
  },
1019
- extraChips: V > 0 || X > 0 || J > 0 || M > 0 || A || T || S || c ? /* @__PURE__ */ f(ie, { children: [
1020
- /* @__PURE__ */ f("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1020
+ extraChips: V > 0 || X > 0 || J > 0 || M > 0 || A || T || S || c ? /* @__PURE__ */ h(ie, { children: [
1021
+ /* @__PURE__ */ h("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1021
1022
  V > 0 ? Z(
1022
1023
  "debt",
1023
1024
  V,
@@ -1062,7 +1063,7 @@ function Ca({
1062
1063
  "data-action": ue.signOnDevice,
1063
1064
  "aria-label": `${r(u("signingRequest"))}: ${r(u("signingOnDevice"))}`,
1064
1065
  startIcon: /* @__PURE__ */ e(Ft, { "aria-hidden": "true" }),
1065
- onClick: () => h(t.eventId),
1066
+ onClick: () => f(t.eventId),
1066
1067
  children: r(u("signingOnDevice"))
1067
1068
  }
1068
1069
  ) : null,
@@ -1146,7 +1147,7 @@ function Ra({
1146
1147
  chair: s,
1147
1148
  description: d,
1148
1149
  privacy: p = !1,
1149
- history: h
1150
+ history: f
1150
1151
  }) {
1151
1152
  const { t: c } = B("ui"), { appointment: r, booking: l, patient: g } = t, w = (y) => c(`calendarWorkspace.editor.${y}`), v = new Date(r.startIso), N = new Date(v.getTime() + r.durationMin * 6e4), a = Number.isFinite(v.getTime()), { recurrence: m } = r, k = m && Ta(c, n, m, r.startIso), b = l ? [
1152
1153
  l.bookedAtIso && {
@@ -1159,7 +1160,7 @@ function Ra({
1159
1160
  format: "absolute",
1160
1161
  shape: "bare",
1161
1162
  locale: n,
1162
- absoluteFormat: ft
1163
+ absoluteFormat: ht
1163
1164
  }
1164
1165
  )
1165
1166
  },
@@ -1189,10 +1190,10 @@ function Ra({
1189
1190
  label: c(u("paidOnline")),
1190
1191
  value: sn(n, l.paidOnlineAmount, i)
1191
1192
  }
1192
- ] : [], A = p ? b.filter((y) => y && y.id === "bookedAt") : b, T = A.some(Boolean), S = l || r.bookedOnline || h == null ? void 0 : h.filter(
1193
+ ] : [], A = p ? b.filter((y) => y && y.id === "bookedAt") : b, T = A.some(Boolean), S = l || r.bookedOnline || f == null ? void 0 : f.filter(
1193
1194
  (y) => y.kind === "created" && y.actor.trim() !== ""
1194
1195
  ).sort((y, M) => Date.parse(y.atIso) - Date.parse(M.atIso))[0];
1195
- return /* @__PURE__ */ f(
1196
+ return /* @__PURE__ */ h(
1196
1197
  pe,
1197
1198
  {
1198
1199
  "data-card": "appointment",
@@ -1251,7 +1252,7 @@ function Ra({
1251
1252
  id: "createdBy",
1252
1253
  label: c(u("createdBy")),
1253
1254
  icon: /* @__PURE__ */ e(ut, { name: S.actor, size: "xs" }),
1254
- value: /* @__PURE__ */ f("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
1255
+ value: /* @__PURE__ */ h("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
1255
1256
  /* @__PURE__ */ e("span", { children: S.actor }),
1256
1257
  " ",
1257
1258
  /* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
@@ -1261,7 +1262,7 @@ function Ra({
1261
1262
  format: "absolute",
1262
1263
  shape: "bare",
1263
1264
  locale: n,
1264
- absoluteFormat: ft
1265
+ absoluteFormat: ht
1265
1266
  }
1266
1267
  ) })
1267
1268
  ] })
@@ -1275,7 +1276,7 @@ function Ra({
1275
1276
  ]
1276
1277
  }
1277
1278
  ),
1278
- T ? /* @__PURE__ */ f(
1279
+ T ? /* @__PURE__ */ h(
1279
1280
  "div",
1280
1281
  {
1281
1282
  "data-block": "booking",
@@ -1297,16 +1298,16 @@ function Pa({
1297
1298
  privacy: o = !1,
1298
1299
  carePlanUrl: s
1299
1300
  }) {
1300
- const { t: d } = B("ui"), { care: p } = t, h = o || p == null ? void 0 : p.plan;
1301
- return !p || !h && p.lines.length === 0 ? null : /* @__PURE__ */ f(
1301
+ const { t: d } = B("ui"), { care: p } = t, f = o || p == null ? void 0 : p.plan;
1302
+ return !p || !f && p.lines.length === 0 ? null : /* @__PURE__ */ h(
1302
1303
  pe,
1303
1304
  {
1304
1305
  "data-card": "treatments",
1305
1306
  title: d(u("sectionTreatments")),
1306
1307
  headingLevel: 3,
1307
1308
  children: [
1308
- h ? /* @__PURE__ */ f("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: [
1309
- /* @__PURE__ */ f("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
1309
+ f ? /* @__PURE__ */ h("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: [
1310
+ /* @__PURE__ */ h("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
1310
1311
  /* @__PURE__ */ e(
1311
1312
  mt,
1312
1313
  {
@@ -1314,7 +1315,7 @@ function Pa({
1314
1315
  className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
1315
1316
  }
1316
1317
  ),
1317
- h.number ? d(u("planLine"), { number: h.number, name: h.name }) : h.name
1318
+ f.number ? d(u("planLine"), { number: f.number, name: f.name }) : f.name
1318
1319
  ] }),
1319
1320
  s ? /* @__PURE__ */ e(
1320
1321
  Ye,
@@ -1351,15 +1352,15 @@ function Ma({
1351
1352
  me(() => {
1352
1353
  p.current && (d !== "loading" && (p.current = !1), _e(s));
1353
1354
  }, [d, s]);
1354
- const h = t.total ?? (d === "ready" ? t.notes.length : null), c = Math.max(0, (h ?? 0) - jt), r = c > 0 ? o(u("notesMore"), { n: c }) : o(u("notesPreviewOpen"));
1355
- return /* @__PURE__ */ f(
1355
+ const f = t.total ?? (d === "ready" ? t.notes.length : null), c = Math.max(0, (f ?? 0) - jt), r = c > 0 ? o(u("notesMore"), { n: c }) : o(u("notesPreviewOpen"));
1356
+ return /* @__PURE__ */ h(
1356
1357
  pe,
1357
1358
  {
1358
1359
  "data-card": "notes",
1359
1360
  headingId: s,
1360
1361
  headingLevel: 3,
1361
- title: h === null ? o("notesPanel.title") : o(u("notesPreviewTitle"), { count: h }),
1362
- headerAction: n && (h ?? 0) > 0 ? /* @__PURE__ */ f("span", { className: "ds:relative ds:inline-flex", children: [
1362
+ title: f === null ? o("notesPanel.title") : o(u("notesPreviewTitle"), { count: f }),
1363
+ headerAction: n && (f ?? 0) > 0 ? /* @__PURE__ */ h("span", { className: "ds:relative ds:inline-flex", children: [
1363
1364
  /* @__PURE__ */ e(
1364
1365
  Yt,
1365
1366
  {
@@ -1388,7 +1389,7 @@ function Ma({
1388
1389
  ) : null
1389
1390
  ] }) : void 0,
1390
1391
  children: [
1391
- d === "error" ? /* @__PURE__ */ f($, { variant: "error", children: [
1392
+ d === "error" ? /* @__PURE__ */ h($, { variant: "error", children: [
1392
1393
  /* @__PURE__ */ e($.Description, { children: o("notesPanel.loadError") }),
1393
1394
  t.onRetry ? /* @__PURE__ */ e($.Action, { children: /* @__PURE__ */ e(
1394
1395
  L,
@@ -1403,7 +1404,7 @@ function Ma({
1403
1404
  }
1404
1405
  ) }) : null
1405
1406
  ] }) : null,
1406
- t.notes.length === 0 && d === "loading" ? /* @__PURE__ */ f(ie, { children: [
1407
+ t.notes.length === 0 && d === "loading" ? /* @__PURE__ */ h(ie, { children: [
1407
1408
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: o("notesPanel.loading") }),
1408
1409
  /* @__PURE__ */ e(lt, { notes: [], loading: !0, loadingRows: 2 })
1409
1410
  ] }) : d !== "error" || t.notes.length > 0 ? (
@@ -1455,9 +1456,9 @@ function Kt({
1455
1456
  intent: s,
1456
1457
  background: d,
1457
1458
  size: p,
1458
- hideLabel: h
1459
+ hideLabel: f
1459
1460
  }) {
1460
- return /* @__PURE__ */ f(qe.Root, { children: [
1461
+ return /* @__PURE__ */ h(qe.Root, { children: [
1461
1462
  /* @__PURE__ */ e(vn, { label: t, side: "top", children: /* @__PURE__ */ e(qe.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
1462
1463
  L,
1463
1464
  {
@@ -1469,7 +1470,7 @@ function Kt({
1469
1470
  startIcon: n,
1470
1471
  "aria-haspopup": "menu",
1471
1472
  endIcon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
1472
- children: h ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
1473
+ children: f ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
1473
1474
  }
1474
1475
  ) }) }),
1475
1476
  /* @__PURE__ */ e(qe.Content, { align: "end", children: i.map((c) => /* @__PURE__ */ e(
@@ -1486,9 +1487,9 @@ function Kt({
1486
1487
  }
1487
1488
  function Ba() {
1488
1489
  const { t } = B("ui");
1489
- return /* @__PURE__ */ f(ie, { children: [
1490
+ return /* @__PURE__ */ h(ie, { children: [
1490
1491
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
1491
- /* @__PURE__ */ f(
1492
+ /* @__PURE__ */ h(
1492
1493
  "div",
1493
1494
  {
1494
1495
  "aria-hidden": "true",
@@ -1503,9 +1504,9 @@ function Ba() {
1503
1504
  density: "compact"
1504
1505
  }
1505
1506
  ),
1506
- /* @__PURE__ */ f(pe, { title: t(D("sectionAppointment")), headingLevel: 3, children: [
1507
+ /* @__PURE__ */ h(pe, { title: t(D("sectionAppointment")), headingLevel: 3, children: [
1507
1508
  /* @__PURE__ */ e(Gt, { loading: !0, maxLines: 2 }),
1508
- /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: rn.map((n, i) => /* @__PURE__ */ f(
1509
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: rn.map((n, i) => /* @__PURE__ */ h(
1509
1510
  "div",
1510
1511
  {
1511
1512
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
@@ -1539,7 +1540,7 @@ function Ba() {
1539
1540
  ]
1540
1541
  }
1541
1542
  ),
1542
- /* @__PURE__ */ f(
1543
+ /* @__PURE__ */ h(
1543
1544
  "div",
1544
1545
  {
1545
1546
  "aria-hidden": "true",
@@ -1568,12 +1569,12 @@ function Wa({
1568
1569
  privacy: s
1569
1570
  }) {
1570
1571
  var v;
1571
- const { t: d } = B("ui"), p = t.status ?? (t.entries ? "ready" : "loading"), h = p === "error" ? void 0 : t.entries, c = p === "loading" || p !== "error" && !h, [r, l] = H(!1);
1572
+ const { t: d } = B("ui"), p = t.status ?? (t.entries ? "ready" : "loading"), f = p === "error" ? void 0 : t.entries, c = p === "loading" || p !== "error" && !f, [r, l] = H(!1);
1572
1573
  xe(() => l(!0), []);
1573
1574
  let g = "";
1574
- c ? g = d("common.loading") : h && (g = h.length === 0 ? d(D("historyEmpty")) : d(D("historyLoaded"), { n: h.length }));
1575
+ c ? g = d("common.loading") : f && (g = f.length === 0 ? d(D("historyEmpty")) : d(D("historyLoaded"), { n: f.length }));
1575
1576
  let w;
1576
- return p === "error" ? w = /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1577
+ return p === "error" ? w = /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1577
1578
  /* @__PURE__ */ e($, { variant: "error", children: /* @__PURE__ */ e($.Description, { children: ((v = t.message) == null ? void 0 : v.trim()) || d("emptyState.error.description") }) }),
1578
1579
  i ? /* @__PURE__ */ e(
1579
1580
  L,
@@ -1584,12 +1585,12 @@ function Wa({
1584
1585
  children: d("emptyState.error.cta")
1585
1586
  }
1586
1587
  ) : null
1587
- ] }) : c || !h ? w = /* @__PURE__ */ e(
1588
+ ] }) : c || !f ? w = /* @__PURE__ */ e(
1588
1589
  "div",
1589
1590
  {
1590
1591
  "aria-hidden": "true",
1591
1592
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1592
- children: rn.slice(0, 3).map((N, a) => /* @__PURE__ */ f(
1593
+ children: rn.slice(0, 3).map((N, a) => /* @__PURE__ */ h(
1593
1594
  "div",
1594
1595
  {
1595
1596
  className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
@@ -1621,12 +1622,12 @@ function Wa({
1621
1622
  ) : w = /* @__PURE__ */ e(
1622
1623
  va,
1623
1624
  {
1624
- history: h,
1625
+ history: f,
1625
1626
  locale: n,
1626
1627
  noteUnrecordedEdits: o,
1627
1628
  privacy: s
1628
1629
  }
1629
- ), /* @__PURE__ */ f(ie, { children: [
1630
+ ), /* @__PURE__ */ h(ie, { children: [
1630
1631
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: r ? g : "" }),
1631
1632
  w
1632
1633
  ] });
@@ -1639,7 +1640,7 @@ function Ua({
1639
1640
  locale: s,
1640
1641
  shownTitle: d,
1641
1642
  headingId: p,
1642
- enter: h,
1643
+ enter: f,
1643
1644
  live: c,
1644
1645
  statusControl: r,
1645
1646
  patientId: l = ((ze) => (ze = t.patient) == null ? void 0 : ze.id)(),
@@ -1669,12 +1670,12 @@ function Ua({
1669
1670
  createTaskUrl: ee,
1670
1671
  onRequestSignature: te,
1671
1672
  onSignOnDevice: Ie,
1672
- onOpenPatient: he,
1673
+ onOpenPatient: fe,
1673
1674
  shortcuts: ne,
1674
1675
  documents: oe
1675
1676
  }) {
1676
1677
  var Ct, Rt;
1677
- const { t: x } = B("ui"), { eventId: O } = t, [Qe] = H(h), fe = { details: t, locale: s, currency: i }, E = b ? b.eventId !== void 0 && b.eventId !== O ? { status: "loading" } : b : t.history ? { entries: t.history } : void 0, He = (m == null ? void 0 : m.patientId) === void 0 || m.patientId === l, ge = m ? He ? m : l ? { notes: [], status: "loading", total: null } : void 0 : void 0, de = !!W && !S && !v, [Ae, ae] = H(!1), [Te, Q] = H(!1), le = Ae && E !== void 0, $e = Te && de, Ee = () => {
1678
+ const { t: x } = B("ui"), { eventId: O } = t, [Qe] = H(f), he = { details: t, locale: s, currency: i }, E = b ? b.eventId !== void 0 && b.eventId !== O ? { status: "loading" } : b : t.history ? { entries: t.history } : void 0, He = (m == null ? void 0 : m.patientId) === void 0 || m.patientId === l, ge = m ? He ? m : l ? { notes: [], status: "loading", total: null } : void 0 : void 0, de = !!W && !S && !v, [Ae, ae] = H(!1), [Te, Q] = H(!1), le = Ae && E !== void 0, $e = Te && de, Ee = () => {
1678
1679
  le || !E || (ae(!0), A == null || A(O));
1679
1680
  }, Be = _({ history: !1, editor: !1 });
1680
1681
  me(() => {
@@ -1685,7 +1686,7 @@ function Ua({
1685
1686
  });
1686
1687
  const ve = _(null), F = _(!1), De = (E == null ? void 0 : E.status) ?? (E != null && E.entries ? "ready" : "loading");
1687
1688
  me(() => {
1688
- F.current && (De !== "loading" && (F.current = !1), ht(ve.current));
1689
+ F.current && (De !== "loading" && (F.current = !1), ft(ve.current));
1689
1690
  }, [De]);
1690
1691
  const [Y, Ce] = H(t.appointment.name ?? "");
1691
1692
  xe(() => {
@@ -1737,7 +1738,7 @@ function Ua({
1737
1738
  ), dn = (((Ct = t.care) == null ? void 0 : Ct.lines.length) ?? 0) > 0, Ze = l !== void 0 && l !== "", et = x(D("status")), It = `${et}: ${Me.option.label}`, tt = _(null), At = _(Le);
1738
1739
  me(() => {
1739
1740
  const I = At.current && !Le;
1740
- At.current = Le, I && (tt.current ? ht(tt.current) : _e(p));
1741
+ At.current = Le, I && (tt.current ? ft(tt.current) : _e(p));
1741
1742
  });
1742
1743
  const Tt = Le ? /* @__PURE__ */ e(
1743
1744
  yn,
@@ -1974,8 +1975,8 @@ function Ua({
1974
1975
  return /* @__PURE__ */ e(
1975
1976
  "div",
1976
1977
  {
1977
- className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Qe ? fn : ""}`,
1978
- children: /* @__PURE__ */ f(it.Host, { children: [
1978
+ className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Qe ? hn : ""}`,
1979
+ children: /* @__PURE__ */ h(it.Host, { children: [
1979
1980
  /* @__PURE__ */ e(
1980
1981
  Vt,
1981
1982
  {
@@ -2004,17 +2005,17 @@ function Ua({
2004
2005
  tabIndex: 0,
2005
2006
  "aria-busy": n || void 0,
2006
2007
  className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
2007
- children: /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
2008
+ children: /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
2008
2009
  v ? /* @__PURE__ */ e(pn, { mask: N }) : t.patient ? /* @__PURE__ */ e(
2009
2010
  Ca,
2010
2011
  {
2011
- ...fe,
2012
+ ...he,
2012
2013
  now: o,
2013
2014
  mapsLink: a,
2014
2015
  shortcuts: ne,
2015
2016
  onRequestSignature: te,
2016
2017
  onSignOnDevice: Ie,
2017
- onOpenPatient: he
2018
+ onOpenPatient: fe
2018
2019
  }
2019
2020
  ) : (
2020
2021
  /* No patient card to carry the identity: a patient-less, an
@@ -2040,7 +2041,7 @@ function Ua({
2040
2041
  /* @__PURE__ */ e(
2041
2042
  Ra,
2042
2043
  {
2043
- ...fe,
2044
+ ...he,
2044
2045
  operator: g,
2045
2046
  chair: w,
2046
2047
  privacy: v,
@@ -2083,7 +2084,7 @@ function Ua({
2083
2084
  /* @__PURE__ */ e(
2084
2085
  Pa,
2085
2086
  {
2086
- ...fe,
2087
+ ...he,
2087
2088
  privacy: v,
2088
2089
  carePlanUrl: ne == null ? void 0 : ne.carePlanUrl
2089
2090
  }
@@ -2095,10 +2096,10 @@ function Ua({
2095
2096
  /* The body scrolls; the status and the actions stay put. The
2096
2097
  status keeps its own segment and never folds. The actions fold
2097
2098
  to icons, then into More, never onto a second line. */
2098
- /* @__PURE__ */ f("div", { className: Oa(), children: [
2099
+ /* @__PURE__ */ h("div", { className: Oa(), children: [
2099
2100
  Tt,
2100
2101
  nt.length > 0 ? /* @__PURE__ */ e(
2101
- hn,
2102
+ fn,
2102
2103
  {
2103
2104
  label: x(D("actionsLabel")),
2104
2105
  overflow: "menu",
@@ -2150,7 +2151,7 @@ function Ua({
2150
2151
  ye || Q(!1);
2151
2152
  },
2152
2153
  "data-details-subview": "description",
2153
- footer: /* @__PURE__ */ f(ie, { children: [
2154
+ footer: /* @__PURE__ */ h(ie, { children: [
2154
2155
  /* @__PURE__ */ e(
2155
2156
  L,
2156
2157
  {
@@ -2171,7 +2172,7 @@ function Ua({
2171
2172
  }
2172
2173
  )
2173
2174
  ] }),
2174
- children: /* @__PURE__ */ f("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
2175
+ children: /* @__PURE__ */ h("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
2175
2176
  C ? /* @__PURE__ */ e($, { variant: "error", children: /* @__PURE__ */ e($.Description, { children: C }) }) : null,
2176
2177
  /* @__PURE__ */ e(
2177
2178
  gn,
@@ -2198,7 +2199,7 @@ const qa = ln(function({
2198
2199
  operator: s,
2199
2200
  chair: d,
2200
2201
  currency: p = "EUR",
2201
- now: h,
2202
+ now: f,
2202
2203
  locale: c,
2203
2204
  title: r,
2204
2205
  privacy: l = !1,
@@ -2228,12 +2229,12 @@ const qa = ln(function({
2228
2229
  onOpenPatient: ee,
2229
2230
  shortcuts: te,
2230
2231
  documents: Ie,
2231
- id: he,
2232
+ id: fe,
2232
2233
  className: ne,
2233
2234
  ...oe
2234
2235
  }, ze) {
2235
2236
  var ye, Pe;
2236
- const { t: x, i18n: O } = B("ui"), Qe = ot(), fe = he ?? Qe, E = ot(), He = c ?? O.language, ge = !l && (r != null && r.trim()) ? r : x(D("region")), de = n.status === "ready" ? n.read : void 0, Ae = n.status === "ready" ? n.read.eventId : n.eventId, ae = _(
2237
+ const { t: x, i18n: O } = B("ui"), Qe = ot(), he = fe ?? Qe, E = ot(), He = c ?? O.language, ge = !l && (r != null && r.trim()) ? r : x(D("region")), de = n.status === "ready" ? n.read : void 0, Ae = n.status === "ready" ? n.read.eventId : n.eventId, ae = _(
2237
2238
  void 0
2238
2239
  ), Te = ae.current !== void 0 && ae.current !== "ready";
2239
2240
  xe(() => {
@@ -2307,7 +2308,7 @@ const qa = ln(function({
2307
2308
  }),
2308
2309
  []
2309
2310
  );
2310
- un(aa, Ce, fe);
2311
+ un(aa, Ce, he);
2311
2312
  const Re = /* @__PURE__ */ e(
2312
2313
  Vt,
2313
2314
  {
@@ -2325,7 +2326,7 @@ const qa = ln(function({
2325
2326
  read: n.read,
2326
2327
  refreshing: n.refreshing === !0,
2327
2328
  currency: p,
2328
- now: h ?? /* @__PURE__ */ new Date(),
2329
+ now: f ?? /* @__PURE__ */ new Date(),
2329
2330
  locale: He,
2330
2331
  shownTitle: ge,
2331
2332
  headingId: E,
@@ -2364,12 +2365,12 @@ const qa = ln(function({
2364
2365
  documents: Ie
2365
2366
  },
2366
2367
  n.read.eventId
2367
- ) : n.status === "loading" ? ce = /* @__PURE__ */ f(ie, { children: [
2368
+ ) : n.status === "loading" ? ce = /* @__PURE__ */ h(ie, { children: [
2368
2369
  Re,
2369
2370
  /* @__PURE__ */ e(Ba, {})
2370
- ] }) : ce = /* @__PURE__ */ f(ie, { children: [
2371
+ ] }) : ce = /* @__PURE__ */ h(ie, { children: [
2371
2372
  Re,
2372
- /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
2373
+ /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
2373
2374
  /* @__PURE__ */ e($, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e($.Description, { children: n.status === "error" ? ((Pe = n.message) == null ? void 0 : Pe.trim()) || x("emptyState.error.description") : n.reason }) }),
2374
2375
  Q ? /* @__PURE__ */ e(
2375
2376
  L,
@@ -2387,9 +2388,9 @@ const qa = ln(function({
2387
2388
  "div",
2388
2389
  {
2389
2390
  ref: $e,
2390
- id: he,
2391
+ id: fe,
2391
2392
  "data-component": "appointment-details-panel",
2392
- "data-component-id": fe,
2393
+ "data-component-id": he,
2393
2394
  "data-event-id": Ae,
2394
2395
  "data-status": n.status,
2395
2396
  "aria-busy": n.status === "loading" || void 0,
@@ -2400,7 +2401,7 @@ const qa = ln(function({
2400
2401
  );
2401
2402
  });
2402
2403
  qa.displayName = "AppointmentDetailsPanel";
2403
- function ps({
2404
+ function fs({
2404
2405
  eventId: t,
2405
2406
  load: n,
2406
2407
  reloadKey: i
@@ -2411,7 +2412,7 @@ function ps({
2411
2412
  me(() => {
2412
2413
  d.current = n;
2413
2414
  });
2414
- const [p, h] = H(0), [c, r] = H(), l = JSON.stringify([i ?? null, p]), [g, w] = H({ eventId: t, count: 0 }), v = g.eventId === t ? g.count : g.count + 1;
2415
+ const [p, f] = H(0), [c, r] = H(), l = JSON.stringify([i ?? null, p]), [g, w] = H({ eventId: t, count: 0 }), v = g.eventId === t ? g.count : g.count + 1;
2415
2416
  g.eventId !== t && w({ eventId: t, count: v }), xe(() => {
2416
2417
  if (t === null) {
2417
2418
  r(void 0);
@@ -2442,7 +2443,7 @@ function ps({
2442
2443
  });
2443
2444
  }), () => k.abort();
2444
2445
  }, [t, v, l]);
2445
- const N = cn(() => h((k) => k + 1), []);
2446
+ const N = cn(() => f((k) => k + 1), []);
2446
2447
  if (t === null) return { state: null, retry: N };
2447
2448
  const a = (c == null ? void 0 : c.eventId) === t && c.selection === v ? c : void 0;
2448
2449
  let m = { status: "loading", eventId: t };
@@ -2462,7 +2463,7 @@ export {
2462
2463
  ya as e,
2463
2464
  Ge as f,
2464
2465
  va as g,
2465
- ft as h,
2466
+ ht as h,
2466
2467
  tn as i,
2467
2468
  ua as j,
2468
2469
  ma as k,
@@ -2470,6 +2471,6 @@ export {
2470
2471
  ia as m,
2471
2472
  oa as p,
2472
2473
  da as s,
2473
- ps as u
2474
+ fs as u
2474
2475
  };
2475
- //# sourceMappingURL=use-appointment-details-read-Dzc6fEzG.js.map
2476
+ //# sourceMappingURL=use-appointment-details-read-7J0j1FP7.js.map