@alfadocs/ui-kit 1.151.2 → 1.151.4

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 (88) hide show
  1. package/dist/_chunks/accessible-target-B6jk-HLB.js +9 -0
  2. package/dist/_chunks/{anamnesis-summary-rows-CFpaA1GP.js → anamnesis-summary-rows-D8_aTDvP.js} +2 -2
  3. package/dist/_chunks/{balance-badge-cell-OghXENKK.js → balance-badge-cell-BVcRd-3Y.js} +2 -2
  4. package/dist/_chunks/{bill-line-table-DxV5_Dmq.js → bill-line-table-BW4ZgF3K.js} +2 -2
  5. package/dist/_chunks/{calendar-appointment-editor-dialog-B9MtcBvx.js → calendar-appointment-editor-dialog-DQ9LNxY5.js} +7 -7
  6. package/dist/_chunks/{calendar-editor-discard-host-BudLsUZO.js → calendar-editor-discard-host-B0ssYoCI.js} +2 -2
  7. package/dist/_chunks/{calendar-waiting-list-panel-DukgSOPH.js → calendar-waiting-list-panel-41b7gXfF.js} +2 -2
  8. package/dist/_chunks/{calendar.sheets-OmTiQdCg.js → calendar.sheets-4mHB1Og9.js} +3 -3
  9. package/dist/_chunks/{calls-panel-eohONLia.js → calls-panel-DDtKm9Q_.js} +2 -2
  10. package/dist/_chunks/{care-plan-card-DJXNWjKB.js → care-plan-card-DjaWS2dl.js} +2 -2
  11. package/dist/_chunks/{care-plan-entry-card-W5QvNv8m.js → care-plan-entry-card-BiPbwQVq.js} +2 -2
  12. package/dist/_chunks/{clinical-note-card-D-9xmRpf.js → clinical-note-card-Dj4W96Fe.js} +144 -123
  13. package/dist/_chunks/{data-grid-DTAwrOiq.js → data-grid-R96eWG3V.js} +3 -3
  14. package/dist/_chunks/{date-range-panel-B86RANxB.js → date-range-panel-DAOG8tbm.js} +3 -3
  15. package/dist/_chunks/{date-range-picker-Z-hI5Vb7.js → date-range-picker-BEHiWujK.js} +2 -2
  16. package/dist/_chunks/{default-tabs-CZaDDf1G.js → default-tabs-BPZHfvNh.js} +5 -5
  17. package/dist/_chunks/{face-scheme-DRYGaszs.js → face-scheme-DR-X-Njb.js} +265 -256
  18. package/dist/_chunks/{feature-preview-switch-B_8JTya_.js → feature-preview-switch-i68faVMe.js} +2 -2
  19. package/dist/_chunks/{gestational-age-calculator-DrVw8arH.js → gestational-age-calculator--wzG4gKI.js} +2 -2
  20. package/dist/_chunks/{header-settings-BIiYXX9_.js → header-settings-BzpbPgZ-.js} +2 -2
  21. package/dist/_chunks/{invoice-upload-list-DutydbjC.js → invoice-upload-list-BxwgY0um.js} +4 -4
  22. package/dist/_chunks/{kit-extensions-CSPGIdcn.js → kit-extensions-CvBNCrm-.js} +3 -3
  23. package/dist/_chunks/{link-cell-renderer-DTunki79.js → link-cell-renderer-Ci-p1fjn.js} +2 -2
  24. package/dist/_chunks/{marketplace-app-shell-CclaaAvb.js → marketplace-app-shell-CUNBV_h9.js} +2 -2
  25. package/dist/_chunks/{notes-panel-d0I3hOEY.js → notes-panel-D7GCZIp5.js} +4 -4
  26. package/dist/_chunks/{patient-details-wFIzTz7N.js → patient-details-D5YzuSDh.js} +2 -2
  27. package/dist/_chunks/{patient-field-row-BDgfYLgz.js → patient-field-row-DJxgYlCL.js} +2 -2
  28. package/dist/_chunks/{patient-summary-card-ZunOre3Q.js → patient-summary-card-BbNfrKx0.js} +55 -54
  29. package/dist/_chunks/{pregnancy-dating-BEVI6zvu.js → pregnancy-dating-0AG2sB0B.js} +2 -2
  30. package/dist/_chunks/{prescription-history-CxBM3gnm.js → prescription-history-YtPd9cH-.js} +4 -4
  31. package/dist/_chunks/{radiograph-panel.agent-kgCmmgZk.js → radiograph-panel.agent-Dc3mlsUZ.js} +2 -2
  32. package/dist/_chunks/{row-actions-CA938TAd.js → row-actions-Cgs-Yrpp.js} +2 -2
  33. package/dist/_chunks/{signature-request-CfHfAEQt.js → signature-request-mwqwxVF-.js} +2 -2
  34. package/dist/_chunks/{switch-DO6uC4HJ.js → switch-D69iEUUt.js} +33 -29
  35. package/dist/_chunks/{task-editor-aXjGMwYA.js → task-editor-Bfw8Z9wO.js} +2 -2
  36. package/dist/_chunks/{tasks-panel-BdxHb-fX.js → tasks-panel-CGSL8QJJ.js} +2 -2
  37. package/dist/_chunks/{theme-toggle-DAqT_Yxy.js → theme-toggle-PyHaxWRC.js} +2 -2
  38. package/dist/_chunks/{toolbar-B2JJ_XDT.js → toolbar-nP46JFWM.js} +2 -2
  39. package/dist/_chunks/{tooth-scheme-C7xJEzaK.js → tooth-scheme-CwxRL1wg.js} +2 -2
  40. package/dist/_chunks/{use-appointment-details-read-BR3TQOHx.js → use-appointment-details-read-BcBr4JwL.js} +265 -243
  41. package/dist/_chunks/{weekly-hours-editor-pTLyK8tt.js → weekly-hours-editor-Wo4dV_gE.js} +2 -2
  42. package/dist/agent-catalog.json +1 -1
  43. package/dist/appointment-editor-panel/index.js +2 -2
  44. package/dist/browser-support.js +1 -1
  45. package/dist/components/_shared/accessible-target.d.ts +19 -0
  46. package/dist/components/appointment-details-panel/index.js +1 -1
  47. package/dist/components/bill-line-table/index.js +1 -1
  48. package/dist/components/bill-table/index.js +1 -1
  49. package/dist/components/calls-panel/index.js +1 -1
  50. package/dist/components/care-plan-card/index.js +1 -1
  51. package/dist/components/care-plan-entry-card/index.js +1 -1
  52. package/dist/components/clinical-note-card/index.js +1 -1
  53. package/dist/components/data-grid/index.js +2 -2
  54. package/dist/components/data-table/index.js +1 -1
  55. package/dist/components/date-range-picker/index.js +1 -1
  56. package/dist/components/face-scheme/index.js +1 -1
  57. package/dist/components/feature-preview-switch/index.js +1 -1
  58. package/dist/components/gestational-age-calculator/index.js +1 -1
  59. package/dist/components/header-settings/index.js +1 -1
  60. package/dist/components/invoice-upload-list/index.js +1 -1
  61. package/dist/components/notes-panel/index.js +1 -1
  62. package/dist/components/patient-details/index.js +1 -1
  63. package/dist/components/patient-summary-card/index.js +1 -1
  64. package/dist/components/patient-table/index.js +1 -1
  65. package/dist/components/pregnancy-dating/index.js +1 -1
  66. package/dist/components/radiograph-panel/index.js +1 -1
  67. package/dist/components/rich-text-editor/index.js +1 -1
  68. package/dist/components/row-actions/index.js +1 -1
  69. package/dist/components/switch/index.js +1 -1
  70. package/dist/components/task-editor/index.js +1 -1
  71. package/dist/components/tasks-panel/index.js +1 -1
  72. package/dist/components/theme-toggle/index.js +1 -1
  73. package/dist/components/tooth-scheme/index.js +1 -1
  74. package/dist/components/weekly-hours-editor/index.js +1 -1
  75. package/dist/core.css +1 -1
  76. package/dist/find-free-slots-panel/index.js +1 -1
  77. package/dist/index.js +36 -36
  78. package/dist/online-bookings-panel/index.js +1 -1
  79. package/dist/patterns/anamnesis/index.js +1 -1
  80. package/dist/patterns/calendar/index.js +3 -3
  81. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  82. package/dist/patterns/prescription/index.js +1 -1
  83. package/dist/patterns/signature-request/index.js +1 -1
  84. package/dist/tokens.css +1 -1
  85. package/dist/waiting-list-panel/index.js +2 -2
  86. package/package.json +1 -1
  87. package/dist/_chunks/accessible-target-D3j6F-AG.js +0 -7
  88. package/dist/_chunks/user-round-DZxRG9zq.js +0 -15
@@ -1,12 +1,12 @@
1
1
  import { jsxs as b, jsx as e, Fragment as oe } from "react/jsx-runtime";
2
2
  import { c as ct } from "./index-D2ZczOXr.js";
3
- import { useId as st, useRef as R, forwardRef as rn, useEffect as we, useMemo as At, useState as H, useCallback as ln } from "react";
3
+ import { useId as st, useRef as R, forwardRef as rn, useEffect as we, useMemo as Nt, useState as M, useCallback as ln } from "react";
4
4
  import { useTranslation as te } from "react-i18next";
5
5
  import { u as dn } from "./registry-DvAUVLHh.js";
6
6
  import { u as pe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
7
  import { c as cn } from "./compose-refs-C0k0tdqF.js";
8
8
  import { g as ot } from "./get-error-message-DbFUzuja.js";
9
- import { useSaveOutcomeUnknownMessage as un, isSaveOutcomeUnknownError as Nt, SaveOutcomeUnknownError as pn } from "../save-outcome/index.js";
9
+ import { useSaveOutcomeUnknownMessage as un, isSaveOutcomeUnknownError as Ct, SaveOutcomeUnknownError as pn } from "../save-outcome/index.js";
10
10
  import { h as nt } from "./handled-rejection-C-6Dq0As.js";
11
11
  import { c as mn, a as xt } from "./privacy-mask-CaLBAxzj.js";
12
12
  import { A as ee } from "./alert-C4WKViaS.js";
@@ -14,33 +14,33 @@ import { B as T } from "./button-Dp4j9ygh.js";
14
14
  import { I as Ve } from "./icon-button-u9VMQn3x.js";
15
15
  import { B as hn } from "./button-group-CHQD8GJ0.js";
16
16
  import { D as ze } from "./dropdown-menu-Bm1KALnk.js";
17
- import { E as Wt } from "./editable-description-B2F54K4T.js";
17
+ import { E as $t } from "./editable-description-B2F54K4T.js";
18
18
  import { N as rt } from "./note-timeline-CS5j2OKD.js";
19
- import { P as $t } from "./panel-header-DTc5OFUg.js";
19
+ import { P as qt } from "./panel-header-DTc5OFUg.js";
20
20
  import { P as at } from "./panel-subview-B5hnQwfQ.js";
21
- import { P as qt } from "./patient-summary-card-ZunOre3Q.js";
21
+ import { P as zt } from "./patient-summary-card-BbNfrKx0.js";
22
22
  import { S as me } from "./section-card-CYfeQ6EQ.js";
23
23
  import { C as fn, S as ke } from "./skeleton-tTWJpvAq.js";
24
24
  import { F as gn } from "./form-field-CyHfOVKF.js";
25
25
  import { T as vn } from "./text-area-DbxGkpzE.js";
26
26
  import { T as yn } from "./tooltip-uEBdD1-5.js";
27
- import { T as zt } from "./treatment-receipt-CZQV1NkJ.js";
27
+ import { T as Kt } from "./treatment-receipt-CZQV1NkJ.js";
28
28
  import { a as it } from "./whatsapp-button-XbozeDl_.js";
29
29
  import { W as bn, a as kn } from "./workflow-status-Cg7yjnye.js";
30
- import { a as Ct, u as wn, i as Sn } from "./appointment-workflow-status-S-lx81Yz.js";
31
- import { M as An, C as Tt, A as Nn } from "./appointment-details-panel.history-FSsTXj1t.js";
32
- import { R as xn, a as Et, b as Kt, e as Cn, g as Tn, j as En, c as In, d as Dn, h as Rn, D as It, f as Pn, i as Ln, p as On } from "./appointment-details-panel.identity-9hRo85Lx.js";
33
- import { A as Dt } from "./avatar-Dp5apm1d.js";
34
- import { B as jt } from "./badge-BUk4RjTS.js";
35
- import { C as Fn } from "./counter-WsvRuum1.js";
30
+ import { a as Tt, u as wn, i as Sn } from "./appointment-workflow-status-S-lx81Yz.js";
31
+ import { M as An, C as Et, A as Nn } from "./appointment-details-panel.history-FSsTXj1t.js";
32
+ import { R as Cn, a as It, b as jt, e as xn, g as Tn, j as En, c as In, d as Dn, h as Rn, D as Dt, f as Pn, i as Ln, p as On } from "./appointment-details-panel.identity-9hRo85Lx.js";
33
+ import { A as Rt } from "./avatar-Dp5apm1d.js";
34
+ import { B as Yt } from "./badge-BUk4RjTS.js";
35
+ import { C as _n } from "./counter-WsvRuum1.js";
36
36
  import { D as Ke } from "./description-list-DaldSpGy.js";
37
- import { T as Rt } from "./timestamp-UMF1llBs.js";
38
- import { T as _n } from "./transaction-chip-6jToArJn.js";
37
+ import { T as Pt } from "./timestamp-UMF1llBs.js";
38
+ import { T as Fn } from "./transaction-chip-6jToArJn.js";
39
39
  import { H as Se } from "./hover-card-CS8ulBf9.js";
40
- import { c as Yt } from "./createLucideIcon-DhHxpK9K.js";
41
- import { U as Hn } from "./user-round-DZxRG9zq.js";
42
- import { S as Pt } from "./smartphone-C0rFF2if.js";
43
- import { P as Mn } from "./phone-FceYcIFQ.js";
40
+ import { d as Mn } from "./accessible-target-B6jk-HLB.js";
41
+ import { c as ut } from "./createLucideIcon-DhHxpK9K.js";
42
+ import { S as Lt } from "./smartphone-C0rFF2if.js";
43
+ import { P as Hn } from "./phone-FceYcIFQ.js";
44
44
  import { M as Un } from "./mail-BqXVF2zH.js";
45
45
  import { M as Bn } from "./map-pin-BaY37-Km.js";
46
46
  import { F as Wn } from "./file-pen-line-k4uMBM3h.js";
@@ -54,14 +54,14 @@ import { C as Yn } from "./calendar-days-BGWklvE-.js";
54
54
  import { C as Gn } from "./clock-Drd4Wtis.js";
55
55
  import { H as Vn } from "./hourglass-BEAzW1wE.js";
56
56
  import { V as Xt } from "./video-BheNGvsu.js";
57
- import { A as Lt } from "./armchair-BaLDW6Hz.js";
57
+ import { A as Ot } from "./armchair-BaLDW6Hz.js";
58
58
  import { B as Xn } from "./building-2-D33bLCWL.js";
59
59
  import { R as Jn } from "./repeat-CvQa5rZt.js";
60
60
  import { G as Qn } from "./globe-sHBW1JN5.js";
61
61
  import { N as Zn } from "./notebook-pen-CO7HoM-W.js";
62
62
  import { C as Jt } from "./clipboard-list-rSzfIYZB.js";
63
63
  import { U as ea } from "./user-plus-BtcOLgNU.js";
64
- import { P as Ot } from "./pencil-B1sKKyuT.js";
64
+ import { P as _t } from "./pencil-B1sKKyuT.js";
65
65
  import { C as ta } from "./copy-vRpqqHtY.js";
66
66
  import { P as na } from "./plus-DzMQ_c6b.js";
67
67
  import { S as aa } from "./square-check-big-dj0o8yA3.js";
@@ -89,7 +89,7 @@ const ca = [
89
89
  ["path", { d: "M7 4h.01", key: "1bh4kh" }],
90
90
  ["path", { d: "M12 4h.01", key: "1ujb9j" }],
91
91
  ["path", { d: "M17 4h.01", key: "1upcoc" }]
92
- ], ua = Yt("cake", ca);
92
+ ], ua = ut("cake", ca);
93
93
  /**
94
94
  * @license lucide-react v1.22.0 - ISC
95
95
  *
@@ -97,20 +97,33 @@ const ca = [
97
97
  * See the LICENSE file in the root directory of this source tree.
98
98
  */
99
99
  const pa = [
100
+ ["path", { d: "M11 14h1v4", key: "fy54vd" }],
101
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
102
+ ["path", { d: "M3 10h18", key: "8toen8" }],
103
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
104
+ ["rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", key: "12vinp" }]
105
+ ], ma = ut("calendar-1", pa);
106
+ /**
107
+ * @license lucide-react v1.22.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */
112
+ const ha = [
100
113
  ["path", { d: "M16 10h2", key: "8sgtl7" }],
101
114
  ["path", { d: "M16 14h2", key: "epxaof" }],
102
115
  ["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
103
116
  ["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
104
117
  ["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
105
- ], ma = Yt("id-card", pa);
106
- function ha(t) {
118
+ ], fa = ut("id-card", ha);
119
+ function ga(t) {
107
120
  const n = t.trim();
108
121
  let i = 0;
109
122
  for (let r = 0; r < n.length; r += 1)
110
123
  i += n.charCodeAt(r) >= 256 ? 6 : 1;
111
124
  return i;
112
125
  }
113
- const fa = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', ga = {
126
+ const va = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', ya = {
114
127
  id: "appointment-details-panel",
115
128
  // open and close back open_history and close_history; set_value backs
116
129
  // set_status.
@@ -226,7 +239,7 @@ const fa = '[data-component="button-group"] [data-component="icon-button"][aria-
226
239
  root: {
227
240
  attr: "data-component",
228
241
  value: "appointment-details-panel",
229
- 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 ${fa}, and its menu item carries the same data-action.`
242
+ 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 ${va}, and its menu item carries the same data-action.`
230
243
  },
231
244
  instanceId: {
232
245
  attr: "data-component-id",
@@ -239,7 +252,7 @@ function lt(t) {
239
252
  const n = document.activeElement;
240
253
  n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
241
254
  }
242
- function _e(t) {
255
+ function Fe(t) {
243
256
  const n = document.getElementById(t);
244
257
  n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), lt(n);
245
258
  }
@@ -261,7 +274,7 @@ function Ye(t) {
261
274
  return;
262
275
  }
263
276
  }
264
- const va = {
277
+ const ba = {
265
278
  SU: 0,
266
279
  MO: 1,
267
280
  TU: 2,
@@ -269,25 +282,25 @@ const va = {
269
282
  TH: 4,
270
283
  FR: 5,
271
284
  SA: 6
272
- }, ya = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], ba = {
285
+ }, ka = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], wa = {
273
286
  daily: "recurrenceEveryDay",
274
287
  weekly: "recurrenceEveryWeek",
275
288
  monthly: "recurrenceEveryMonth",
276
289
  yearly: "recurrenceEveryYear"
277
- }, ka = {
290
+ }, Sa = {
278
291
  1: "recurrenceOrdinal1",
279
292
  2: "recurrenceOrdinal2",
280
293
  3: "recurrenceOrdinal3",
281
294
  4: "recurrenceOrdinal4"
282
- }, wa = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
283
- function _t(t, n) {
284
- const i = new Date(2026, 0, 4 + va[t]);
295
+ }, Aa = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
296
+ function Mt(t, n) {
297
+ const i = new Date(2026, 0, 4 + ba[t]);
285
298
  return new Intl.DateTimeFormat(n, { weekday: "long" }).format(i);
286
299
  }
287
- function Sa(t, n, i) {
288
- const r = Et(n);
300
+ function Na(t, n, i) {
301
+ const r = It(n);
289
302
  if (!Number.isFinite(r.getTime())) return;
290
- const c = i ? Et(i) : void 0, o = c && c.getFullYear() === r.getFullYear();
303
+ const c = i ? It(i) : void 0, o = c && c.getFullYear() === r.getFullYear();
291
304
  try {
292
305
  return new Intl.DateTimeFormat(t, {
293
306
  day: "numeric",
@@ -298,26 +311,26 @@ function Sa(t, n, i) {
298
311
  return;
299
312
  }
300
313
  }
301
- function Aa(t, n, i, r) {
302
- const c = xn[i.frequency];
314
+ function Ca(t, n, i, r) {
315
+ const c = Cn[i.frequency];
303
316
  if (!c) return;
304
- const o = (y) => `calendarWorkspace.editor.${y}`, p = (y) => `calendarWorkspace.details.${y}`, f = ba[i.frequency], m = f && (i.interval ?? 1) > 1 ? t(o(f), { count: i.interval }) : t(o(c)), a = (i.byDay ?? []).map((y) => wa.exec(y)).filter((y) => y !== null), l = i.frequency === "weekly" ? ya.filter(
305
- (y) => a.some(([, g, x]) => !g && x === y)
317
+ const o = (y) => `calendarWorkspace.editor.${y}`, p = (y) => `calendarWorkspace.details.${y}`, f = wa[i.frequency], m = f && (i.interval ?? 1) > 1 ? t(o(f), { count: i.interval }) : t(o(c)), a = (i.byDay ?? []).map((y) => Aa.exec(y)).filter((y) => y !== null), l = i.frequency === "weekly" ? ka.filter(
318
+ (y) => a.some(([, g, C]) => !g && C === y)
306
319
  ) : [], d = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, y]) => y) : void 0;
307
320
  let A = m;
308
321
  if (l.length > 0)
309
322
  A = t(p("seriesOnDays"), {
310
323
  every: m,
311
324
  days: new Intl.ListFormat(n, { type: "conjunction" }).format(
312
- l.map((y) => _t(y, n))
325
+ l.map((y) => Mt(y, n))
313
326
  )
314
327
  });
315
328
  else if (d) {
316
- const [, y, g] = d, x = _t(g, n);
317
- A = y === "-1" ? t(p("seriesOnLast"), { every: m, weekday: x }) : t(p("seriesOnNth"), {
329
+ const [, y, g] = d, C = Mt(g, n);
330
+ A = y === "-1" ? t(p("seriesOnLast"), { every: m, weekday: C }) : t(p("seriesOnNth"), {
318
331
  every: m,
319
- weekday: x,
320
- ordinal: t(o(ka[y]))
332
+ weekday: C,
333
+ ordinal: t(o(Sa[y]))
321
334
  });
322
335
  }
323
336
  if (i.count !== void 0)
@@ -325,7 +338,7 @@ function Aa(t, n, i, r) {
325
338
  frequency: A,
326
339
  count: i.count
327
340
  });
328
- const v = i.untilIso ? Sa(n, i.untilIso, r) : void 0;
341
+ const v = i.untilIso ? Na(n, i.untilIso, r) : void 0;
329
342
  return v ? t(p("seriesUntil"), { rule: A, date: v }) : A;
330
343
  }
331
344
  function dt({
@@ -346,7 +359,7 @@ function dt({
346
359
  )) }) }) : null
347
360
  ] });
348
361
  }
349
- const Na = "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)]";
362
+ const xa = "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)]";
350
363
  function Ht({
351
364
  id: t,
352
365
  eyebrow: n,
@@ -355,11 +368,19 @@ function Ht({
355
368
  children: c
356
369
  }) {
357
370
  return /* @__PURE__ */ b(Se, { children: [
358
- /* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: Na, children: c }) }),
371
+ /* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
372
+ "button",
373
+ {
374
+ type: "button",
375
+ "data-chip-hover": t,
376
+ className: `${xa} ${Mn}`,
377
+ children: c
378
+ }
379
+ ) }),
359
380
  /* @__PURE__ */ e(Se.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(dt, { eyebrow: n, heading: i, facts: r }) })
360
381
  ] });
361
382
  }
362
- const s = (t) => `calendarWorkspace.details.${t}`, xa = {
383
+ const s = (t) => `calendarWorkspace.details.${t}`, Ta = {
363
384
  missing: "consentMissing",
364
385
  requested: "consentRequested",
365
386
  signed: "consentSigned"
@@ -385,7 +406,7 @@ function Ge({
385
406
  }
386
407
  ) : null;
387
408
  }
388
- const Ca = "ds:[--description-list-icon-color:var(--accent)] ds:[--description-list-icon-gap:var(--spacing-md)]";
409
+ const Ea = "ds:[--description-list-icon-color:var(--accent)] ds:[--description-list-icon-gap:var(--spacing-md)]";
389
410
  function je({
390
411
  rows: t,
391
412
  stacked: n = !1
@@ -396,7 +417,7 @@ function je({
396
417
  {
397
418
  layout: n ? "stacked" : "inline",
398
419
  density: "compact",
399
- className: Ca,
420
+ className: Ea,
400
421
  children: i.map((r) => /* @__PURE__ */ b(
401
422
  Ke.Row,
402
423
  {
@@ -412,7 +433,7 @@ function je({
412
433
  }
413
434
  );
414
435
  }
415
- function Ta({
436
+ function Ia({
416
437
  details: t,
417
438
  locale: n,
418
439
  currency: i,
@@ -425,38 +446,39 @@ function Ta({
425
446
  }) {
426
447
  const { t: a } = te("ui"), { patient: l, signing: d, money: A, booking: v } = t;
427
448
  if (!l) return null;
428
- const y = (d == null ? void 0 : d.consents) ?? [], g = d && (d.required > 0 || y.length > 0) ? d : void 0, x = ((g == null ? void 0 : g.toComplete) ?? 0) > 0, L = g ? [
449
+ const y = (d == null ? void 0 : d.consents) ?? [], g = d && (d.required > 0 || y.length > 0) ? d : void 0, C = ((g == null ? void 0 : g.toComplete) ?? 0) > 0, L = g ? [
429
450
  {
430
- text: x ? g.requestedVia === "sms" ? a(s("signingRequestedSms")) : g.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
451
+ text: C ? g.requestedVia === "sms" ? a(s("signingRequestedSms")) : g.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
431
452
  },
432
453
  ...g.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
433
- ] : [], P = ((d == null ? void 0 : d.required) ?? 0) > 0 && x, C = !!(o != null && o.advancedSignatureUrl) && ((d == null ? void 0 : d.required) ?? 0) > 0 && !(d != null && d.aesSetUp), M = !!p && P, D = !!f && P, _ = l.highlightedAnamnesisCount ?? 0, E = l.expiredAnamnesisCount ?? 0, q = (l.highlightedAnamnesisAnswers ?? []).map((N) => ({
454
+ ] : [], P = ((d == null ? void 0 : d.required) ?? 0) > 0 && C, x = !!(o != null && o.advancedSignatureUrl) && ((d == null ? void 0 : d.required) ?? 0) > 0 && !(d != null && d.aesSetUp), H = !!p && P, D = !!f && P, F = l.highlightedAnamnesisCount ?? 0, E = l.expiredAnamnesisCount ?? 0, q = (l.highlightedAnamnesisAnswers ?? []).map((N) => ({
434
455
  text: [
435
456
  N.question,
436
457
  a(s(N.yes ? "anamnesisYes" : "anamnesisNo")),
437
458
  N.answer,
438
- Kt(n, N.interviewIso)
459
+ jt(n, N.interviewIso)
439
460
  ].filter(Boolean).join(" · ")
440
- })), z = Cn(l), re = Tn(l) || z, K = y.map((N) => ({
461
+ })), z = xn(l), re = Tn(l) || z, K = y.map((N) => ({
441
462
  id: `consent-${N.id}`,
442
463
  label: N.name,
443
- value: a(s(xa[N.state]))
464
+ value: a(s(Ta[N.state]))
444
465
  })), j = [
445
466
  ...l.dobIso ? [
446
467
  {
447
468
  id: "dob",
448
469
  label: a(s("dob")),
449
- icon: /* @__PURE__ */ e(ua, {}),
470
+ icon: /* @__PURE__ */ e(ma, {}),
450
471
  value: En(n, l.dobIso)
451
472
  },
452
473
  /* The age is a fact of its own, not a bracket after the date: its
453
474
  own row, label and glyph, with the kit's plural-aware words
454
- (`AgeChip`). Not that chip's hourglass: in this panel the
475
+ (`AgeChip`). The cake is the age, and the date of birth is a
476
+ calendar day. Not that chip's hourglass: in this panel the
455
477
  hourglass is the appointment's duration, one card below. */
456
478
  {
457
479
  id: "age",
458
480
  label: a("patientTable.column.age"),
459
- icon: /* @__PURE__ */ e(Hn, {}),
481
+ icon: /* @__PURE__ */ e(ua, {}),
460
482
  value: a("patientField.age", {
461
483
  count: In(l.dobIso, r)
462
484
  })
@@ -467,7 +489,7 @@ function Ta({
467
489
  return {
468
490
  id: `phone-${G}`,
469
491
  label: a(V ? `calendarWorkspace.print.phoneLabels.${N.label}` : s("phone")),
470
- icon: N.label === "mobile" ? /* @__PURE__ */ e(Pt, {}) : /* @__PURE__ */ e(Mn, {}),
492
+ icon: N.label === "mobile" ? /* @__PURE__ */ e(Lt, {}) : /* @__PURE__ */ e(Hn, {}),
471
493
  value: Zt(N.number)
472
494
  };
473
495
  }),
@@ -498,7 +520,7 @@ function Ta({
498
520
  )
499
521
  }
500
522
  ] : []
501
- ], Y = (A == null ? void 0 : A.unpaidAmount) ?? 0, B = (A == null ? void 0 : A.billableAmount) ?? 0, ne = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, ae = (N, G, V, Ae, Ne, xe) => /* @__PURE__ */ e(
523
+ ], Y = (A == null ? void 0 : A.unpaidAmount) ?? 0, B = (A == null ? void 0 : A.billableAmount) ?? 0, ne = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, ae = (N, G, V, Ae, Ne, Ce) => /* @__PURE__ */ e(
502
524
  Ht,
503
525
  {
504
526
  id: V,
@@ -508,7 +530,7 @@ function Ta({
508
530
  }),
509
531
  facts: [{ text: a(s(Ne)) }],
510
532
  children: /* @__PURE__ */ e(
511
- _n,
533
+ Fn,
512
534
  {
513
535
  "data-chip": V,
514
536
  state: N,
@@ -517,7 +539,7 @@ function Ta({
517
539
  locale: n,
518
540
  size: "md",
519
541
  showLabel: !0,
520
- label: xe,
542
+ label: Ce,
521
543
  showIcon: !1,
522
544
  tone: N === "to-invoice" ? "neutral" : "state"
523
545
  }
@@ -525,7 +547,7 @@ function Ta({
525
547
  }
526
548
  );
527
549
  return /* @__PURE__ */ e(
528
- qt,
550
+ zt,
529
551
  {
530
552
  "data-card": "patient",
531
553
  name: l.name,
@@ -538,7 +560,7 @@ function Ta({
538
560
  className: "ds:[--key-value-pair-icon-color:var(--accent)]",
539
561
  flags: {
540
562
  unsignedDocumentsCount: (g == null ? void 0 : g.toComplete) ?? 0,
541
- highlightedAnamnesisCount: _
563
+ highlightedAnamnesisCount: F
542
564
  },
543
565
  flagHover: {
544
566
  ...g ? {
@@ -557,7 +579,7 @@ function Ta({
557
579
  dt,
558
580
  {
559
581
  eyebrow: a(s("anamnesisTitle")),
560
- heading: a(s("anamnesisHighlighted"), { n: _ }),
582
+ heading: a(s("anamnesisHighlighted"), { n: F }),
561
583
  facts: q
562
584
  }
563
585
  )
@@ -574,7 +596,7 @@ function Ta({
574
596
  onClick: () => m(t.eventId)
575
597
  }
576
598
  ) : void 0,
577
- extraChips: Y > 0 || B > 0 || ne > 0 || E > 0 || C || M || D ? /* @__PURE__ */ b(oe, { children: [
599
+ extraChips: Y > 0 || B > 0 || ne > 0 || E > 0 || x || H || D ? /* @__PURE__ */ b(oe, { children: [
578
600
  /* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
579
601
  Y > 0 ? ae(
580
602
  "debt",
@@ -601,7 +623,7 @@ function Ta({
601
623
  a(s("paidOnline"))
602
624
  ) : null
603
625
  ] }),
604
- M ? /* @__PURE__ */ e(
626
+ H ? /* @__PURE__ */ e(
605
627
  T,
606
628
  {
607
629
  size: "sm",
@@ -619,12 +641,12 @@ function Ta({
619
641
  intent: "outline",
620
642
  "data-action": ue.signOnDevice,
621
643
  "aria-label": `${a(s("signingRequest"))}: ${a(s("signingOnDevice"))}`,
622
- startIcon: /* @__PURE__ */ e(Pt, { "aria-hidden": "true" }),
644
+ startIcon: /* @__PURE__ */ e(Lt, { "aria-hidden": "true" }),
623
645
  onClick: () => f(t.eventId),
624
646
  children: a(s("signingOnDevice"))
625
647
  }
626
648
  ) : null,
627
- C && (o != null && o.advancedSignatureUrl) ? /* @__PURE__ */ e(
649
+ x && (o != null && o.advancedSignatureUrl) ? /* @__PURE__ */ e(
628
650
  Ge,
629
651
  {
630
652
  href: o.advancedSignatureUrl,
@@ -650,7 +672,7 @@ function Ta({
650
672
  heading: a(s("anamnesisExpired"), { n: E }),
651
673
  facts: [{ text: a(s("hoverAnamnesisExpiredFact")) }],
652
674
  children: /* @__PURE__ */ e(
653
- jt,
675
+ Yt,
654
676
  {
655
677
  "data-chip": "anamnesisExpired",
656
678
  variant: "warning",
@@ -685,7 +707,7 @@ function Ta({
685
707
  }
686
708
  );
687
709
  }
688
- function Ea({
710
+ function Da({
689
711
  details: t,
690
712
  locale: n,
691
713
  currency: i,
@@ -696,18 +718,18 @@ function Ea({
696
718
  privacy: f = !1,
697
719
  history: m
698
720
  }) {
699
- const { t: a } = te("ui"), { appointment: l, booking: d, patient: A } = t, v = (E) => a(`calendarWorkspace.editor.${E}`), y = new Date(l.startIso), g = new Date(y.getTime() + l.durationMin * 6e4), x = Number.isFinite(y.getTime()), { recurrence: L } = l, P = L && Aa(a, n, L, l.startIso), C = d ? [
721
+ const { t: a } = te("ui"), { appointment: l, booking: d, patient: A } = t, v = (E) => a(`calendarWorkspace.editor.${E}`), y = new Date(l.startIso), g = new Date(y.getTime() + l.durationMin * 6e4), C = Number.isFinite(y.getTime()), { recurrence: L } = l, P = L && Ca(a, n, L, l.startIso), x = d ? [
700
722
  d.bookedAtIso && {
701
723
  id: "bookedAt",
702
724
  label: a(s("bookedAt")),
703
725
  value: /* @__PURE__ */ e(
704
- Rt,
726
+ Pt,
705
727
  {
706
728
  value: d.bookedAtIso,
707
729
  format: "absolute",
708
730
  shape: "bare",
709
731
  locale: n,
710
- absoluteFormat: It
732
+ absoluteFormat: Dt
711
733
  }
712
734
  )
713
735
  },
@@ -737,7 +759,7 @@ function Ea({
737
759
  label: a(s("paidOnline")),
738
760
  value: tn(n, d.paidOnlineAmount, i)
739
761
  }
740
- ] : [], M = f ? C.filter((E) => E && E.id === "bookedAt") : C, D = M.some(Boolean), _ = d || l.bookedOnline || m == null ? void 0 : m.filter(
762
+ ] : [], H = f ? x.filter((E) => E && E.id === "bookedAt") : x, D = H.some(Boolean), F = d || l.bookedOnline || m == null ? void 0 : m.filter(
741
763
  (E) => E.kind === "created" && E.actor.trim() !== ""
742
764
  ).sort((E, q) => Date.parse(E.atIso) - Date.parse(q.atIso))[0];
743
765
  return /* @__PURE__ */ b(
@@ -766,13 +788,13 @@ function Ea({
766
788
  je,
767
789
  {
768
790
  rows: [
769
- x && {
791
+ C && {
770
792
  id: "date",
771
793
  label: v("date"),
772
794
  icon: /* @__PURE__ */ e(Yn, {}),
773
- value: Kt(n, y)
795
+ value: jt(n, y)
774
796
  },
775
- x && {
797
+ C && {
776
798
  id: "time",
777
799
  label: a(s("time")),
778
800
  icon: /* @__PURE__ */ e(Gn, {}),
@@ -794,14 +816,14 @@ function Ea({
794
816
  id: "operator",
795
817
  label: a(s("operator")),
796
818
  /* A person, as on the grid: the avatar fills the icon slot. */
797
- icon: /* @__PURE__ */ e(Dt, { name: r.name, src: r.avatarSrc, size: "xs" }),
819
+ icon: /* @__PURE__ */ e(Rt, { name: r.name, src: r.avatarSrc, size: "xs" }),
798
820
  value: r.name
799
821
  },
800
822
  c && {
801
823
  id: "chair",
802
824
  label: a(s("chair")),
803
- icon: /* @__PURE__ */ e(Lt, {}),
804
- value: /* @__PURE__ */ e(jt, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Lt, {}), children: c.name })
825
+ icon: /* @__PURE__ */ e(Ot, {}),
826
+ value: /* @__PURE__ */ e(Yt, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Ot, {}), children: c.name })
805
827
  },
806
828
  l.branchLabel && {
807
829
  id: "branch",
@@ -809,21 +831,21 @@ function Ea({
809
831
  icon: /* @__PURE__ */ e(Xn, {}),
810
832
  value: l.branchLabel
811
833
  },
812
- _ && {
834
+ F && {
813
835
  id: "createdBy",
814
836
  label: a(s("createdBy")),
815
- icon: /* @__PURE__ */ e(Dt, { name: _.actor, size: "xs" }),
837
+ icon: /* @__PURE__ */ e(Rt, { name: F.actor, size: "xs" }),
816
838
  value: /* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
817
- /* @__PURE__ */ e("span", { children: _.actor }),
839
+ /* @__PURE__ */ e("span", { children: F.actor }),
818
840
  " ",
819
841
  /* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
820
- Rt,
842
+ Pt,
821
843
  {
822
- value: _.atIso,
844
+ value: F.atIso,
823
845
  format: "absolute",
824
846
  shape: "bare",
825
847
  locale: n,
826
- absoluteFormat: It
848
+ absoluteFormat: Dt
827
849
  }
828
850
  ) })
829
851
  ] })
@@ -858,7 +880,7 @@ function Ea({
858
880
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
859
881
  children: [
860
882
  /* @__PURE__ */ e("h4", { className: "ds:m-0 type-label ds:text-[color:var(--muted-foreground)]", children: a(s("sectionBooking")) }),
861
- /* @__PURE__ */ e(je, { rows: M })
883
+ /* @__PURE__ */ e(je, { rows: H })
862
884
  ]
863
885
  }
864
886
  ) : null
@@ -866,7 +888,7 @@ function Ea({
866
888
  }
867
889
  );
868
890
  }
869
- function Ia({
891
+ function Ra({
870
892
  details: t,
871
893
  locale: n,
872
894
  currency: i,
@@ -902,7 +924,7 @@ function Ia({
902
924
  f.number ? o(s("planLine"), { number: f.number, name: f.name }) : f.name
903
925
  ] }) }) : null,
904
926
  p.lines.length > 0 ? /* @__PURE__ */ e(
905
- zt,
927
+ Kt,
906
928
  {
907
929
  lines: p.lines.map(({ entryId: m, careId: a, ...l }) => ({
908
930
  id: m,
@@ -916,17 +938,17 @@ function Ia({
916
938
  }
917
939
  );
918
940
  }
919
- const Mt = 3;
920
- function Da({
941
+ const Ut = 3;
942
+ function Pa({
921
943
  preview: t,
922
944
  onOpenNotes: n,
923
945
  locale: i
924
946
  }) {
925
947
  const { t: r } = te("ui"), c = st(), o = t.status ?? "ready", p = R(!1);
926
948
  pe(() => {
927
- p.current && (o !== "loading" && (p.current = !1), _e(c));
949
+ p.current && (o !== "loading" && (p.current = !1), Fe(c));
928
950
  }, [o, c]);
929
- const f = t.total ?? (o === "ready" ? t.notes.length : null), m = Math.max(0, (f ?? 0) - Mt), a = m > 0 ? r(s("notesMore"), { n: m }) : r(s("notesPreviewOpen"));
951
+ const f = t.total ?? (o === "ready" ? t.notes.length : null), m = Math.max(0, (f ?? 0) - Ut), a = m > 0 ? r(s("notesMore"), { n: m }) : r(s("notesPreviewOpen"));
930
952
  return /* @__PURE__ */ b(
931
953
  me,
932
954
  {
@@ -950,7 +972,7 @@ function Da({
950
972
  m > 0 ? (
951
973
  /* Decorative: the button's name already says the count. */
952
974
  /* @__PURE__ */ e(
953
- Fn,
975
+ _n,
954
976
  {
955
977
  variant: "outline",
956
978
  size: "sm",
@@ -988,7 +1010,7 @@ function Da({
988
1010
  rt,
989
1011
  {
990
1012
  notes: t.notes,
991
- maxItems: Mt,
1013
+ maxItems: Ut,
992
1014
  bodyFormat: "plain",
993
1015
  locale: i,
994
1016
  "aria-labelledby": c,
@@ -1001,7 +1023,7 @@ function Da({
1001
1023
  }
1002
1024
  );
1003
1025
  }
1004
- const Ra = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Pa = ct(
1026
+ const La = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Oa = ct(
1005
1027
  [
1006
1028
  "ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end",
1007
1029
  "ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]",
@@ -1010,27 +1032,27 @@ const Ra = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Pa = ct(
1010
1032
  "ds:[&>[data-component=workflow-status]>[role=alert]]:order-1",
1011
1033
  "ds:[&>[data-component=workflow-status]>[role=alert]]:basis-full"
1012
1034
  ].join(" ")
1013
- ), La = ct(
1035
+ ), _a = ct(
1014
1036
  "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)]"
1015
- ), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", Oa = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", Fa = [
1037
+ ), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", Fa = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", Ma = [
1016
1038
  "ds:sm:[&_button:has(svg.lucide-ellipsis)]:[min-block-size:var(--accessible-target-floor,0px)]",
1017
1039
  "ds:[&_button:has(svg.lucide-ellipsis)]:[min-inline-size:var(--accessible-target-floor,auto)]"
1018
- ].join(" "), nn = ["40%", "33%", "50%", "25%"], _a = [
1040
+ ].join(" "), nn = ["40%", "33%", "50%", "25%"], Ha = [
1019
1041
  "bill",
1020
1042
  "folder",
1021
1043
  "template",
1022
1044
  "empty",
1023
1045
  "identification",
1024
1046
  "webcam"
1025
- ], Ut = {
1047
+ ], Bt = {
1026
1048
  bill: /* @__PURE__ */ e(da, { "aria-hidden": "true" }),
1027
1049
  folder: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
1028
1050
  template: /* @__PURE__ */ e(la, { "aria-hidden": "true" }),
1029
1051
  empty: /* @__PURE__ */ e(ra, { "aria-hidden": "true" }),
1030
- identification: /* @__PURE__ */ e(ma, { "aria-hidden": "true" }),
1052
+ identification: /* @__PURE__ */ e(fa, { "aria-hidden": "true" }),
1031
1053
  webcam: /* @__PURE__ */ e(oa, { "aria-hidden": "true" })
1032
1054
  }, k = (t) => `calendarWorkspace.details.${t}`;
1033
- function Bt({
1055
+ function Wt({
1034
1056
  children: t,
1035
1057
  startIcon: n,
1036
1058
  overflowItems: i,
@@ -1067,7 +1089,7 @@ function Bt({
1067
1089
  )) })
1068
1090
  ] });
1069
1091
  }
1070
- function Ha() {
1092
+ function Ua() {
1071
1093
  const { t } = te("ui");
1072
1094
  return /* @__PURE__ */ b(oe, { children: [
1073
1095
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
@@ -1078,7 +1100,7 @@ function Ha() {
1078
1100
  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",
1079
1101
  children: [
1080
1102
  /* @__PURE__ */ e(
1081
- qt,
1103
+ zt,
1082
1104
  {
1083
1105
  name: "",
1084
1106
  loading: !0,
@@ -1087,7 +1109,7 @@ function Ha() {
1087
1109
  }
1088
1110
  ),
1089
1111
  /* @__PURE__ */ b(me, { title: t(k("sectionAppointment")), headingLevel: 3, children: [
1090
- /* @__PURE__ */ e(Wt, { loading: !0, maxLines: 2 }),
1112
+ /* @__PURE__ */ e($t, { loading: !0, maxLines: 2 }),
1091
1113
  /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: nn.map((n, i) => /* @__PURE__ */ b(
1092
1114
  "div",
1093
1115
  {
@@ -1118,7 +1140,7 @@ function Ha() {
1118
1140
  )) })
1119
1141
  ] }),
1120
1142
  /* @__PURE__ */ e(me, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(rt, { notes: [], loading: !0, loadingRows: 2 }) }),
1121
- /* @__PURE__ */ e(me, { title: t(k("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(zt, { lines: [], loading: !0 }) })
1143
+ /* @__PURE__ */ e(me, { title: t(k("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(Kt, { lines: [], loading: !0 }) })
1122
1144
  ]
1123
1145
  }
1124
1146
  ),
@@ -1143,7 +1165,7 @@ function Ha() {
1143
1165
  )
1144
1166
  ] });
1145
1167
  }
1146
- function Ma({
1168
+ function Ba({
1147
1169
  history: t,
1148
1170
  locale: n,
1149
1171
  onRetry: i,
@@ -1151,7 +1173,7 @@ function Ma({
1151
1173
  privacy: c
1152
1174
  }) {
1153
1175
  var v;
1154
- const { t: o } = te("ui"), p = t.status ?? (t.entries ? "ready" : "loading"), f = p === "error" ? void 0 : t.entries, m = p === "loading" || p !== "error" && !f, [a, l] = H(!1);
1176
+ const { t: o } = te("ui"), p = t.status ?? (t.entries ? "ready" : "loading"), f = p === "error" ? void 0 : t.entries, m = p === "loading" || p !== "error" && !f, [a, l] = M(!1);
1155
1177
  we(() => l(!0), []);
1156
1178
  let d = "";
1157
1179
  m ? d = o("common.loading") : f && (d = f.length === 0 ? o(k("historyEmpty")) : o(k("historyLoaded"), { n: f.length }));
@@ -1214,7 +1236,7 @@ function Ma({
1214
1236
  A
1215
1237
  ] });
1216
1238
  }
1217
- function Ua({
1239
+ function Wa({
1218
1240
  read: t,
1219
1241
  refreshing: n,
1220
1242
  currency: i,
@@ -1225,23 +1247,23 @@ function Ua({
1225
1247
  enter: f,
1226
1248
  live: m,
1227
1249
  statusControl: a,
1228
- patientId: l = ((Me) => (Me = t.patient) == null ? void 0 : Me.id)(),
1250
+ patientId: l = ((He) => (He = t.patient) == null ? void 0 : He.id)(),
1229
1251
  operator: d,
1230
1252
  chair: A,
1231
1253
  privacy: v = !1,
1232
1254
  privacyTitle: y,
1233
1255
  mapsLink: g,
1234
- notesPreview: x,
1256
+ notesPreview: C,
1235
1257
  onOpenNotes: L,
1236
1258
  history: P,
1237
- onOpenHistory: C,
1238
- noteUnrecordedEdits: M = !1,
1259
+ onOpenHistory: x,
1260
+ noteUnrecordedEdits: H = !1,
1239
1261
  readOnly: D = !1,
1240
- onStatusChange: _,
1241
- allowedStatuses: E = Ct,
1262
+ onStatusChange: F,
1263
+ allowedStatuses: E = Tt,
1242
1264
  onDescriptionChange: q,
1243
1265
  descriptionMaxLength: z,
1244
- descriptionMeasureLength: re = ha,
1266
+ descriptionMeasureLength: re = ga,
1245
1267
  onAssignPatient: K,
1246
1268
  onEdit: j,
1247
1269
  onMove: Y,
@@ -1253,30 +1275,30 @@ function Ua({
1253
1275
  onBuyWhatsApp: V,
1254
1276
  createTaskUrl: Ae,
1255
1277
  onRequestSignature: Ne,
1256
- onSignOnDevice: xe,
1257
- onOpenPatient: He,
1278
+ onSignOnDevice: Ce,
1279
+ onOpenPatient: Me,
1258
1280
  shortcuts: he,
1259
1281
  documents: X
1260
1282
  }) {
1261
- var kt, wt;
1262
- const { t: h } = te("ui"), { eventId: I } = t, [Xe] = H(f), fe = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== I ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Ue = (x == null ? void 0 : x.patientId) === void 0 || x.patientId === l, ge = x ? Ue ? x : l ? { notes: [], status: "loading", total: null } : void 0 : void 0, J = !!q && !D && !v, [Ce, ie] = H(!1), [Te, Q] = H(!1), le = Ce && w !== void 0, Be = Te && J, Ee = () => {
1263
- le || !w || (ie(!0), C == null || C(I));
1283
+ var wt, St;
1284
+ const { t: h } = te("ui"), { eventId: I } = t, [Xe] = M(f), fe = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== I ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Ue = (C == null ? void 0 : C.patientId) === void 0 || C.patientId === l, ge = C ? Ue ? C : l ? { notes: [], status: "loading", total: null } : void 0 : void 0, J = !!q && !D && !v, [xe, ie] = M(!1), [Te, Q] = M(!1), le = xe && w !== void 0, Be = Te && J, Ee = () => {
1285
+ le || !w || (ie(!0), x == null || x(I));
1264
1286
  }, We = R({ history: !1, editor: !1 });
1265
1287
  pe(() => {
1266
1288
  const u = We.current;
1267
1289
  We.current = { history: le, editor: Be };
1268
- const Z = u.history && w === void 0, St = u.editor && !J;
1269
- Z && ie(!1), St && Q(!1), (Z || St) && _e(p);
1290
+ const Z = u.history && w === void 0, At = u.editor && !J;
1291
+ Z && ie(!1), At && Q(!1), (Z || At) && Fe(p);
1270
1292
  });
1271
1293
  const ve = R(null), O = R(!1), Ie = (w == null ? void 0 : w.status) ?? (w != null && w.entries ? "ready" : "loading");
1272
1294
  pe(() => {
1273
1295
  O.current && (Ie !== "loading" && (O.current = !1), lt(ve.current));
1274
1296
  }, [Ie]);
1275
- const [$, De] = H(t.appointment.name ?? "");
1297
+ const [$, De] = M(t.appointment.name ?? "");
1276
1298
  we(() => {
1277
1299
  De(t.appointment.name ?? "");
1278
1300
  }, [t.appointment.name]);
1279
- const [ye, de] = H(""), [be, Re] = H(!1), [S, W] = H(), [Pe, ce] = H(!1), Le = un(), ut = R(null), pt = z !== void 0 && re(ye) > z;
1301
+ const [ye, de] = M(""), [be, Re] = M(!1), [S, W] = M(), [Pe, ce] = M(!1), Le = un(), pt = R(null), mt = z !== void 0 && re(ye) > z;
1280
1302
  we(() => {
1281
1303
  Te && (de($), W(void 0), ce(!1));
1282
1304
  }, [Te]);
@@ -1287,44 +1309,44 @@ function Ua({
1287
1309
  try {
1288
1310
  await q(u, I), De(u), Q(!1);
1289
1311
  } catch (Z) {
1290
- Nt(Z) ? ce(!0) : W(
1312
+ Ct(Z) ? ce(!0) : W(
1291
1313
  ot(Z, h(k("descriptionSaveFailed")))
1292
1314
  );
1293
1315
  } finally {
1294
1316
  Re(!1);
1295
1317
  }
1296
- }, [se, Je] = H(t.appointment.status);
1318
+ }, [se, Je] = M(t.appointment.status);
1297
1319
  we(() => {
1298
1320
  Je(t.appointment.status);
1299
1321
  }, [t.appointment.status]);
1300
- const mt = R(n);
1322
+ const ht = R(n);
1301
1323
  pe(() => {
1302
- const u = mt.current && !n;
1303
- mt.current = n, u && (Je(t.appointment.status), De(t.appointment.name ?? ""));
1324
+ const u = ht.current && !n;
1325
+ ht.current = n, u && (Je(t.appointment.status), De(t.appointment.name ?? ""));
1304
1326
  }, [n]);
1305
- const $e = Ct.filter(
1327
+ const $e = Tt.filter(
1306
1328
  (u) => E.includes(u)
1307
1329
  ), Oe = wn(se, {
1308
1330
  statuses: $e,
1309
1331
  /* Shown so the control can say it, but not a choice. */
1310
1332
  disabledStatuses: se && !$e.includes(se) ? [se] : []
1311
- }), Fe = !!_ && !D && $e.some((u) => u !== se), sn = async (u) => {
1312
- if (!(!_ || !Sn(u))) {
1333
+ }), _e = !!F && !D && $e.some((u) => u !== se), sn = async (u) => {
1334
+ if (!(!F || !Sn(u))) {
1313
1335
  try {
1314
- await _(u, I);
1336
+ await F(u, I);
1315
1337
  } catch (Z) {
1316
- throw Nt(Z) ? new pn(Le, { cause: Z }) : new Error(ot(Z, h(k("statusSaveFailed"))));
1338
+ throw Ct(Z) ? new pn(Le, { cause: Z }) : new Error(ot(Z, h(k("statusSaveFailed"))));
1317
1339
  }
1318
1340
  Je(u);
1319
1341
  }
1320
- }, ht = v ? void 0 : G, qe = _a.filter(
1342
+ }, ft = v ? void 0 : G, qe = Ha.filter(
1321
1343
  (u) => X == null ? void 0 : X.kinds.includes(u)
1322
- ), on = (((kt = t.care) == null ? void 0 : kt.lines.length) ?? 0) > 0, Qe = l !== void 0 && l !== "", Ze = h(k("status")), ft = `${Ze}: ${Oe.option.label}`, et = R(null), gt = R(Fe);
1344
+ ), on = (((wt = t.care) == null ? void 0 : wt.lines.length) ?? 0) > 0, Qe = l !== void 0 && l !== "", Ze = h(k("status")), gt = `${Ze}: ${Oe.option.label}`, et = R(null), vt = R(_e);
1323
1345
  pe(() => {
1324
- const u = gt.current && !Fe;
1325
- gt.current = Fe, u && (et.current ? lt(et.current) : _e(p));
1346
+ const u = vt.current && !_e;
1347
+ vt.current = _e, u && (et.current ? lt(et.current) : Fe(p));
1326
1348
  });
1327
- const vt = Fe ? /* @__PURE__ */ e(
1349
+ const yt = _e ? /* @__PURE__ */ e(
1328
1350
  bn,
1329
1351
  {
1330
1352
  ref: a,
@@ -1332,8 +1354,8 @@ function Ua({
1332
1354
  options: Oe.options,
1333
1355
  size: "sm",
1334
1356
  workflowLabel: Ze,
1335
- className: `ds:[&>button]:bg-[color:var(--background)] ${Oa}`,
1336
- "aria-label": ft,
1357
+ className: `ds:[&>button]:bg-[color:var(--background)] ${Fa}`,
1358
+ "aria-label": gt,
1337
1359
  onValueChange: sn
1338
1360
  }
1339
1361
  ) : se ? (
@@ -1344,10 +1366,10 @@ function Ua({
1344
1366
  {
1345
1367
  ref: et,
1346
1368
  role: "group",
1347
- "aria-label": ft,
1369
+ "aria-label": gt,
1348
1370
  tabIndex: -1,
1349
1371
  "data-status-display": "",
1350
- className: La(),
1372
+ className: _a(),
1351
1373
  children: /* @__PURE__ */ e(
1352
1374
  kn,
1353
1375
  {
@@ -1359,8 +1381,8 @@ function Ua({
1359
1381
  )
1360
1382
  }
1361
1383
  )
1362
- ) : null, F = [];
1363
- if (!D && K && !Qe && F.push([
1384
+ ) : null, _ = [];
1385
+ if (!D && K && !Qe && _.push([
1364
1386
  "assign-patient",
1365
1387
  /* @__PURE__ */ e(
1366
1388
  T,
@@ -1374,7 +1396,7 @@ function Ua({
1374
1396
  },
1375
1397
  "assign"
1376
1398
  )
1377
- ]), ae && F.push([
1399
+ ]), ae && _.push([
1378
1400
  "join-telehealth",
1379
1401
  /* @__PURE__ */ e(
1380
1402
  T,
@@ -1388,20 +1410,20 @@ function Ua({
1388
1410
  },
1389
1411
  "join"
1390
1412
  )
1391
- ]), !D && j && F.push([
1413
+ ]), !D && j && _.push([
1392
1414
  "edit-appointment",
1393
1415
  /* @__PURE__ */ e(
1394
1416
  T,
1395
1417
  {
1396
1418
  "data-action": "edit-appointment",
1397
1419
  className: U,
1398
- startIcon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
1420
+ startIcon: /* @__PURE__ */ e(_t, { "aria-hidden": "true" }),
1399
1421
  onClick: () => j(I),
1400
1422
  children: h("calendarWorkspace.editor.editTitle")
1401
1423
  },
1402
1424
  "edit"
1403
1425
  )
1404
- ]), !D && Y && F.push([
1426
+ ]), !D && Y && _.push([
1405
1427
  "move-appointment",
1406
1428
  /* @__PURE__ */ e(
1407
1429
  T,
@@ -1414,14 +1436,14 @@ function Ua({
1414
1436
  },
1415
1437
  "move"
1416
1438
  )
1417
- ]), !D && B && F.push([
1439
+ ]), !D && B && _.push([
1418
1440
  "copy-appointment",
1419
1441
  on ? /* @__PURE__ */ e(
1420
- Bt,
1442
+ Wt,
1421
1443
  {
1422
1444
  "data-action": "copy-appointment",
1423
1445
  "data-overflow-tip": !1,
1424
- startIcon: /* @__PURE__ */ e(Tt, { "aria-hidden": "true" }),
1446
+ startIcon: /* @__PURE__ */ e(Et, { "aria-hidden": "true" }),
1425
1447
  overflowItems: [
1426
1448
  {
1427
1449
  label: h("calendarWorkspace.editor.duplicateAppointmentOnly"),
@@ -1444,7 +1466,7 @@ function Ua({
1444
1466
  {
1445
1467
  "data-action": "copy-appointment",
1446
1468
  className: U,
1447
- startIcon: /* @__PURE__ */ e(Tt, { "aria-hidden": "true" }),
1469
+ startIcon: /* @__PURE__ */ e(Et, { "aria-hidden": "true" }),
1448
1470
  onClick: () => B(!1, I),
1449
1471
  children: h(k("copy"))
1450
1472
  },
@@ -1452,31 +1474,31 @@ function Ua({
1452
1474
  )
1453
1475
  ]), X && qe.length === 1) {
1454
1476
  const [u] = qe;
1455
- F.push([
1477
+ _.push([
1456
1478
  `create-document-${u}`,
1457
1479
  /* @__PURE__ */ e(
1458
1480
  T,
1459
1481
  {
1460
1482
  "data-action": `create-document-${u}`,
1461
1483
  className: U,
1462
- startIcon: Ut[u],
1484
+ startIcon: Bt[u],
1463
1485
  onClick: () => X.onCreate(u, I),
1464
1486
  children: h(k(`documents.${u}`))
1465
1487
  },
1466
1488
  "documents"
1467
1489
  )
1468
1490
  ]);
1469
- } else X && qe.length > 1 && F.push([
1491
+ } else X && qe.length > 1 && _.push([
1470
1492
  "open-create-document",
1471
1493
  /* @__PURE__ */ e(
1472
- Bt,
1494
+ Wt,
1473
1495
  {
1474
1496
  "data-action": "open-create-document",
1475
1497
  "data-overflow-tip": !1,
1476
1498
  startIcon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
1477
1499
  overflowItems: qe.map((u) => ({
1478
1500
  label: h(k(`documents.${u}`)),
1479
- icon: Ut[u],
1501
+ icon: Bt[u],
1480
1502
  action: `create-document-${u}`,
1481
1503
  onSelect: () => X.onCreate(u, I)
1482
1504
  })),
@@ -1485,7 +1507,7 @@ function Ua({
1485
1507
  "documents"
1486
1508
  )
1487
1509
  ]);
1488
- N ? F.push([
1510
+ N ? _.push([
1489
1511
  "open-whatsapp",
1490
1512
  /* @__PURE__ */ e(
1491
1513
  T,
@@ -1498,7 +1520,7 @@ function Ua({
1498
1520
  },
1499
1521
  "whatsapp"
1500
1522
  )
1501
- ]) : Ye(ht) ? F.push([
1523
+ ]) : Ye(ft) ? _.push([
1502
1524
  "open-whatsapp",
1503
1525
  /* @__PURE__ */ e(
1504
1526
  T,
@@ -1510,7 +1532,7 @@ function Ua({
1510
1532
  children: /* @__PURE__ */ e(
1511
1533
  "a",
1512
1534
  {
1513
- href: Ye(ht),
1535
+ href: Ye(ft),
1514
1536
  target: "_blank",
1515
1537
  rel: "noopener noreferrer",
1516
1538
  children: h(k("remindWhatsApp"))
@@ -1519,7 +1541,7 @@ function Ua({
1519
1541
  },
1520
1542
  "whatsapp"
1521
1543
  )
1522
- ]) : V && !G && F.push([
1544
+ ]) : V && !G && _.push([
1523
1545
  "buy-whatsapp",
1524
1546
  /* @__PURE__ */ e(
1525
1547
  T,
@@ -1533,8 +1555,8 @@ function Ua({
1533
1555
  "buy-whatsapp"
1534
1556
  )
1535
1557
  ]);
1536
- const yt = Ye(Ae);
1537
- yt && F.push([
1558
+ const bt = Ye(Ae);
1559
+ bt && _.push([
1538
1560
  "create-task",
1539
1561
  /* @__PURE__ */ e(
1540
1562
  T,
@@ -1543,11 +1565,11 @@ function Ua({
1543
1565
  "data-action": "create-task",
1544
1566
  className: U,
1545
1567
  startIcon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
1546
- children: /* @__PURE__ */ e("a", { href: yt, children: h(k("createTask")) })
1568
+ children: /* @__PURE__ */ e("a", { href: bt, children: h(k("createTask")) })
1547
1569
  },
1548
1570
  "task"
1549
1571
  )
1550
- ]), !D && ne && F.push([
1572
+ ]), !D && ne && _.push([
1551
1573
  "delete-appointment",
1552
1574
  /* @__PURE__ */ e(
1553
1575
  T,
@@ -1562,24 +1584,24 @@ function Ua({
1562
1584
  "delete"
1563
1585
  )
1564
1586
  ]);
1565
- const tt = F.map(([, u]) => u);
1587
+ const tt = _.map(([, u]) => u);
1566
1588
  m.current = {
1567
1589
  status: se ?? null,
1568
- allowed: Fe ? $e : [],
1569
- offered: F.map(([u]) => u),
1590
+ allowed: _e ? $e : [],
1591
+ offered: _.map(([u]) => u),
1570
1592
  historyAvailable: w !== void 0,
1571
1593
  historyOpen: le,
1572
1594
  openHistory: Ee,
1573
1595
  closeHistory: () => ie(!1)
1574
1596
  };
1575
- const bt = h(k("historyBack"));
1597
+ const kt = h(k("historyBack"));
1576
1598
  return /* @__PURE__ */ e(
1577
1599
  "div",
1578
1600
  {
1579
1601
  className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Xe ? fn : ""}`,
1580
1602
  children: /* @__PURE__ */ b(at.Host, { children: [
1581
1603
  /* @__PURE__ */ e(
1582
- $t,
1604
+ qt,
1583
1605
  {
1584
1606
  title: o,
1585
1607
  headingId: p,
@@ -1608,15 +1630,15 @@ function Ua({
1608
1630
  className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
1609
1631
  children: /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
1610
1632
  v ? /* @__PURE__ */ e(mn, { mask: y }) : t.patient ? /* @__PURE__ */ e(
1611
- Ta,
1633
+ Ia,
1612
1634
  {
1613
1635
  ...fe,
1614
1636
  now: r,
1615
1637
  mapsLink: g,
1616
1638
  shortcuts: he,
1617
1639
  onRequestSignature: Ne,
1618
- onSignOnDevice: xe,
1619
- onOpenPatient: He
1640
+ onSignOnDevice: Ce,
1641
+ onOpenPatient: Me
1620
1642
  }
1621
1643
  ) : (
1622
1644
  /* No patient card to carry the identity: a patient-less, an
@@ -1633,14 +1655,14 @@ function Ua({
1633
1655
  isRecurring: t.appointment.recurrence !== void 0,
1634
1656
  hasUnassignedPatient: t.appointment.bookedOnline && !Qe,
1635
1657
  hasHighlightedAnamnesis: !1,
1636
- hasBillableAmount: (((wt = t.money) == null ? void 0 : wt.billableAmount) ?? 0) > 0
1658
+ hasBillableAmount: (((St = t.money) == null ? void 0 : St.billableAmount) ?? 0) > 0
1637
1659
  },
1638
1660
  locale: c
1639
1661
  }
1640
1662
  )
1641
1663
  ),
1642
1664
  /* @__PURE__ */ e(
1643
- Ea,
1665
+ Da,
1644
1666
  {
1645
1667
  ...fe,
1646
1668
  operator: d,
@@ -1662,7 +1684,7 @@ function Ua({
1662
1684
  description: (
1663
1685
  /* An empty read-only description prints nothing. */
1664
1686
  v ? $ ? /* @__PURE__ */ e(xt, { block: "description" }) : void 0 : $ || J ? /* @__PURE__ */ e(
1665
- Wt,
1687
+ $t,
1666
1688
  {
1667
1689
  "data-block": "description",
1668
1690
  value: $
@@ -1680,7 +1702,7 @@ function Ua({
1680
1702
  children: /* @__PURE__ */ e(xt, {})
1681
1703
  }
1682
1704
  ) : ge ? /* @__PURE__ */ e(
1683
- Da,
1705
+ Pa,
1684
1706
  {
1685
1707
  preview: ge,
1686
1708
  onOpenNotes: Ue ? L : void 0,
@@ -1688,7 +1710,7 @@ function Ua({
1688
1710
  }
1689
1711
  ) : null,
1690
1712
  /* @__PURE__ */ e(
1691
- Ia,
1713
+ Ra,
1692
1714
  {
1693
1715
  ...fe,
1694
1716
  privacy: v,
@@ -1698,13 +1720,13 @@ function Ua({
1698
1720
  ] })
1699
1721
  }
1700
1722
  ),
1701
- vt || tt.length > 0 ? (
1723
+ yt || tt.length > 0 ? (
1702
1724
  /* The body scrolls; the status and the actions stay put. The
1703
1725
  status keeps its own segment and never folds. The actions fold
1704
1726
  to icons, then into More, never onto a second line. Only a
1705
1727
  refused status change adds a line, for its message. */
1706
- /* @__PURE__ */ b("div", { className: Pa(), children: [
1707
- vt,
1728
+ /* @__PURE__ */ b("div", { className: Oa(), children: [
1729
+ yt,
1708
1730
  tt.length > 0 ? /* @__PURE__ */ e(
1709
1731
  hn,
1710
1732
  {
@@ -1713,7 +1735,7 @@ function Ua({
1713
1735
  collapseToIcons: !0,
1714
1736
  background: "surface",
1715
1737
  size: "sm",
1716
- className: `ds:min-w-0 ds:flex-1 ds:text-end ${Fa}`,
1738
+ className: `ds:min-w-0 ds:flex-1 ds:text-end ${Ma}`,
1717
1739
  children: tt
1718
1740
  }
1719
1741
  ) : null
@@ -1726,16 +1748,16 @@ function Ua({
1726
1748
  open: le,
1727
1749
  icon: /* @__PURE__ */ e(Ft, { "aria-hidden": "true" }),
1728
1750
  title: h(k("historyTitle")),
1729
- backLabel: bt,
1751
+ backLabel: kt,
1730
1752
  headingLevel: 3,
1731
1753
  onBack: () => ie(!1),
1732
1754
  "data-details-subview": "history",
1733
1755
  children: /* @__PURE__ */ e("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
1734
- Ma,
1756
+ Ba,
1735
1757
  {
1736
1758
  history: w,
1737
1759
  locale: c,
1738
- noteUnrecordedEdits: M,
1760
+ noteUnrecordedEdits: H,
1739
1761
  privacy: v,
1740
1762
  onRetry: w.onRetry ? () => {
1741
1763
  var u;
@@ -1749,11 +1771,11 @@ function Ua({
1749
1771
  at,
1750
1772
  {
1751
1773
  open: Be,
1752
- icon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
1774
+ icon: /* @__PURE__ */ e(_t, { "aria-hidden": "true" }),
1753
1775
  title: h(k("editDescription")),
1754
- backLabel: bt,
1776
+ backLabel: kt,
1755
1777
  headingLevel: 3,
1756
- initialFocusRef: ut,
1778
+ initialFocusRef: pt,
1757
1779
  onBack: () => {
1758
1780
  be || Q(!1);
1759
1781
  },
@@ -1774,7 +1796,7 @@ function Ua({
1774
1796
  intent: "primary",
1775
1797
  "data-action": "save-description",
1776
1798
  loading: be,
1777
- disabled: pt,
1799
+ disabled: mt,
1778
1800
  onClick: () => void an(),
1779
1801
  children: h(k("descriptionSave"))
1780
1802
  }
@@ -1785,13 +1807,13 @@ function Ua({
1785
1807
  gn,
1786
1808
  {
1787
1809
  label: h("calendarWorkspace.editor.description"),
1788
- error: pt ? h("calendarWorkspace.editor.descriptionTooLong", {
1810
+ error: mt ? h("calendarWorkspace.editor.descriptionTooLong", {
1789
1811
  max: z
1790
1812
  }) : S,
1791
1813
  children: /* @__PURE__ */ e(
1792
1814
  vn,
1793
1815
  {
1794
- ref: ut,
1816
+ ref: pt,
1795
1817
  value: ye,
1796
1818
  minRows: 6,
1797
1819
  autoResize: !0,
@@ -1820,7 +1842,7 @@ function Ua({
1820
1842
  }
1821
1843
  );
1822
1844
  }
1823
- const Ba = rn(function({
1845
+ const $a = rn(function({
1824
1846
  state: n,
1825
1847
  onRetry: i,
1826
1848
  patientId: r,
@@ -1836,13 +1858,13 @@ const Ba = rn(function({
1836
1858
  notesPreview: v,
1837
1859
  onOpenNotes: y,
1838
1860
  history: g,
1839
- onOpenHistory: x,
1861
+ onOpenHistory: C,
1840
1862
  noteUnrecordedEdits: L,
1841
1863
  readOnly: P = !1,
1842
- onStatusChange: C,
1843
- allowedStatuses: M,
1864
+ onStatusChange: x,
1865
+ allowedStatuses: H,
1844
1866
  onDescriptionChange: D,
1845
- descriptionMaxLength: _,
1867
+ descriptionMaxLength: F,
1846
1868
  descriptionMeasureLength: E,
1847
1869
  onAssignPatient: q,
1848
1870
  onEdit: z,
@@ -1858,29 +1880,29 @@ const Ba = rn(function({
1858
1880
  onSignOnDevice: V,
1859
1881
  onOpenPatient: Ae,
1860
1882
  shortcuts: Ne,
1861
- documents: xe,
1862
- id: He,
1883
+ documents: Ce,
1884
+ id: Me,
1863
1885
  className: he,
1864
1886
  ...X
1865
- }, Me) {
1887
+ }, He) {
1866
1888
  var be, Re;
1867
- const { t: h, i18n: I } = te("ui"), Xe = st(), fe = He ?? Xe, w = st(), Ue = m ?? I.language, ge = !l && (a != null && a.trim()) ? a : h(k("region")), J = n.status === "ready" ? n.read : void 0, Ce = n.status === "ready" ? n.read.eventId : n.eventId, ie = R(
1889
+ const { t: h, i18n: I } = te("ui"), Xe = st(), fe = Me ?? Xe, w = st(), Ue = m ?? I.language, ge = !l && (a != null && a.trim()) ? a : h(k("region")), J = n.status === "ready" ? n.read : void 0, xe = n.status === "ready" ? n.read.eventId : n.eventId, ie = R(
1868
1890
  void 0
1869
1891
  ), Te = ie.current !== void 0 && ie.current !== "ready";
1870
1892
  we(() => {
1871
1893
  ie.current = n.status;
1872
1894
  }, [n.status]);
1873
- const Q = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), Be = At(() => cn(Me, le), [Me]), Ee = R(!1);
1895
+ const Q = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), Be = Nt(() => cn(He, le), [He]), Ee = R(!1);
1874
1896
  typeof document < "u" && (Ee.current = ((be = le.current) == null ? void 0 : be.contains(document.activeElement)) ?? !1);
1875
1897
  const We = J ? `ready:${J.eventId}` : n.status, ve = R(!1);
1876
1898
  pe(() => {
1877
- ve.current ? (n.status !== "loading" && (ve.current = !1), _e(w)) : Ee.current && _e(w);
1899
+ ve.current ? (n.status !== "loading" && (ve.current = !1), Fe(w)) : Ee.current && Fe(w);
1878
1900
  }, [We, w]);
1879
1901
  const O = R(null);
1880
1902
  J || (O.current = null);
1881
- const Ie = R(null), $ = R({ state: n, eventId: Ce, privacy: l, retryOffered: Q, onRetry: i });
1882
- $.current = { state: n, eventId: Ce, privacy: l, retryOffered: Q, onRetry: i };
1883
- const De = At(
1903
+ const Ie = R(null), $ = R({ state: n, eventId: xe, privacy: l, retryOffered: Q, onRetry: i });
1904
+ $.current = { state: n, eventId: xe, privacy: l, retryOffered: Q, onRetry: i };
1905
+ const De = Nt(
1884
1906
  () => ({
1885
1907
  getEventId: () => $.current.eventId ?? null,
1886
1908
  getLoadStatus: () => $.current.state.status,
@@ -1938,9 +1960,9 @@ const Ba = rn(function({
1938
1960
  }),
1939
1961
  []
1940
1962
  );
1941
- dn(ga, De, fe);
1963
+ dn(ya, De, fe);
1942
1964
  const ye = /* @__PURE__ */ e(
1943
- $t,
1965
+ qt,
1944
1966
  {
1945
1967
  title: ge,
1946
1968
  headingId: w,
@@ -1951,7 +1973,7 @@ const Ba = rn(function({
1951
1973
  );
1952
1974
  let de;
1953
1975
  return n.status === "ready" ? de = /* @__PURE__ */ e(
1954
- Ua,
1976
+ Wa,
1955
1977
  {
1956
1978
  read: n.read,
1957
1979
  refreshing: n.refreshing === !0,
@@ -1972,13 +1994,13 @@ const Ba = rn(function({
1972
1994
  notesPreview: v,
1973
1995
  onOpenNotes: y,
1974
1996
  history: g,
1975
- onOpenHistory: x,
1997
+ onOpenHistory: C,
1976
1998
  noteUnrecordedEdits: L,
1977
1999
  readOnly: P,
1978
- onStatusChange: C,
1979
- allowedStatuses: M,
2000
+ onStatusChange: x,
2001
+ allowedStatuses: H,
1980
2002
  onDescriptionChange: D,
1981
- descriptionMaxLength: _,
2003
+ descriptionMaxLength: F,
1982
2004
  descriptionMeasureLength: E,
1983
2005
  onAssignPatient: q,
1984
2006
  onEdit: z,
@@ -1994,12 +2016,12 @@ const Ba = rn(function({
1994
2016
  onSignOnDevice: V,
1995
2017
  onOpenPatient: Ae,
1996
2018
  shortcuts: Ne,
1997
- documents: xe
2019
+ documents: Ce
1998
2020
  },
1999
2021
  n.read.eventId
2000
2022
  ) : n.status === "loading" ? de = /* @__PURE__ */ b(oe, { children: [
2001
2023
  ye,
2002
- /* @__PURE__ */ e(Ha, {})
2024
+ /* @__PURE__ */ e(Ua, {})
2003
2025
  ] }) : de = /* @__PURE__ */ b(oe, { children: [
2004
2026
  ye,
2005
2027
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
@@ -2020,20 +2042,20 @@ const Ba = rn(function({
2020
2042
  "div",
2021
2043
  {
2022
2044
  ref: Be,
2023
- id: He,
2045
+ id: Me,
2024
2046
  "data-component": "appointment-details-panel",
2025
2047
  "data-component-id": fe,
2026
- "data-event-id": Ce,
2048
+ "data-event-id": xe,
2027
2049
  "data-status": n.status,
2028
2050
  "aria-busy": n.status === "loading" || void 0,
2029
- className: Ra({ className: he }),
2051
+ className: La({ className: he }),
2030
2052
  ...X,
2031
2053
  children: de
2032
2054
  }
2033
2055
  );
2034
2056
  });
2035
- Ba.displayName = "AppointmentDetailsPanel";
2036
- function ls({
2057
+ $a.displayName = "AppointmentDetailsPanel";
2058
+ function cs({
2037
2059
  eventId: t,
2038
2060
  load: n,
2039
2061
  reloadKey: i
@@ -2044,48 +2066,48 @@ function ls({
2044
2066
  pe(() => {
2045
2067
  o.current = n;
2046
2068
  });
2047
- const [p, f] = H(0), [m, a] = H(), l = JSON.stringify([i ?? null, p]), [d, A] = H({ eventId: t, count: 0 }), v = d.eventId === t ? d.count : d.count + 1;
2069
+ const [p, f] = M(0), [m, a] = M(), l = JSON.stringify([i ?? null, p]), [d, A] = M({ eventId: t, count: 0 }), v = d.eventId === t ? d.count : d.count + 1;
2048
2070
  d.eventId !== t && A({ eventId: t, count: v }), we(() => {
2049
2071
  if (t === null) {
2050
2072
  a(void 0);
2051
2073
  return;
2052
2074
  }
2053
- const L = new AbortController(), P = (C) => {
2054
- L.signal.aborted || a({ eventId: t, selection: v, request: l, value: C });
2075
+ const L = new AbortController(), P = (x) => {
2076
+ L.signal.aborted || a({ eventId: t, selection: v, request: l, value: x });
2055
2077
  };
2056
- return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((C) => {
2057
- var M, D;
2058
- if (C.status !== "ready") {
2078
+ return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((x) => {
2079
+ var H, D;
2080
+ if (x.status !== "ready") {
2059
2081
  P({
2060
2082
  status: "refused",
2061
2083
  eventId: t,
2062
- reason: C.reason,
2063
- retryable: C.retryable
2084
+ reason: x.reason,
2085
+ retryable: x.retryable
2064
2086
  });
2065
2087
  return;
2066
2088
  }
2067
- if (((M = C.details) == null ? void 0 : M.eventId) !== t || !On((D = C.details.appointment) == null ? void 0 : D.startIso))
2089
+ if (((H = x.details) == null ? void 0 : H.eventId) !== t || !On((D = x.details.appointment) == null ? void 0 : D.startIso))
2068
2090
  throw new Error(c.current);
2069
- P({ status: "ready", read: C.details });
2070
- }).catch((C) => {
2091
+ P({ status: "ready", read: x.details });
2092
+ }).catch((x) => {
2071
2093
  P({
2072
2094
  status: "error",
2073
2095
  eventId: t,
2074
- message: ot(C, c.current)
2096
+ message: ot(x, c.current)
2075
2097
  });
2076
2098
  }), () => L.abort();
2077
2099
  }, [t, v, l]);
2078
2100
  const y = ln(() => f((L) => L + 1), []);
2079
2101
  if (t === null) return { state: null, retry: y };
2080
2102
  const g = (m == null ? void 0 : m.eventId) === t && m.selection === v ? m : void 0;
2081
- let x = { status: "loading", eventId: t };
2082
- return (g == null ? void 0 : g.request) === l ? x = g.value : (g == null ? void 0 : g.value.status) === "ready" && (x = { status: "ready", read: g.value.read, refreshing: !0 }), { state: x, retry: y };
2103
+ let C = { status: "loading", eventId: t };
2104
+ return (g == null ? void 0 : g.request) === l ? C = g.value : (g == null ? void 0 : g.value.status) === "ready" && (C = { status: "ready", read: g.value.read, refreshing: !0 }), { state: C, retry: y };
2083
2105
  }
2084
2106
  export {
2085
- Ba as A,
2107
+ $a as A,
2086
2108
  ue as D,
2087
- ga as a,
2088
- ha as s,
2089
- ls as u
2109
+ ya as a,
2110
+ ga as s,
2111
+ cs as u
2090
2112
  };
2091
- //# sourceMappingURL=use-appointment-details-read-BR3TQOHx.js.map
2113
+ //# sourceMappingURL=use-appointment-details-read-BcBr4JwL.js.map