@alfadocs/ui-kit 1.151.3 → 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.
@@ -1,86 +1,85 @@
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
- import { c as mn, a as Ct } from "./privacy-mask-CaLBAxzj.js";
11
+ import { c as mn, a as xt } from "./privacy-mask-CaLBAxzj.js";
12
12
  import { A as ee } from "./alert-C4WKViaS.js";
13
13
  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-BbNfrKx0.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 xt, 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 Cn, a as Et, b as Kt, e as xn, 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 { d as Hn } from "./accessible-target-B6jk-HLB.js";
41
- import { c as Yt } from "./createLucideIcon-DhHxpK9K.js";
42
- import { U as Mn } from "./user-round-DZxRG9zq.js";
43
- import { S as Pt } from "./smartphone-C0rFF2if.js";
44
- import { P as Un } from "./phone-FceYcIFQ.js";
45
- import { M as Bn } from "./mail-BqXVF2zH.js";
46
- import { M as Wn } from "./map-pin-BaY37-Km.js";
47
- import { F as $n } from "./file-pen-line-k4uMBM3h.js";
48
- import { P as qn } from "./pen-line-D0De5zdl.js";
49
- import { C as zn } from "./credit-card-D9XZsHGA.js";
50
- import { H as Kn } from "./heart-pulse-BCppJyN2.js";
51
- import { R as jn } from "./refresh-cw-DnI0cLFC.js";
52
- import { a as Gt, F as Yn } from "./folder-DvNxod7_.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
+ import { M as Un } from "./mail-BqXVF2zH.js";
45
+ import { M as Bn } from "./map-pin-BaY37-Km.js";
46
+ import { F as Wn } from "./file-pen-line-k4uMBM3h.js";
47
+ import { P as $n } from "./pen-line-D0De5zdl.js";
48
+ import { C as qn } from "./credit-card-D9XZsHGA.js";
49
+ import { H as zn } from "./heart-pulse-BCppJyN2.js";
50
+ import { R as Kn } from "./refresh-cw-DnI0cLFC.js";
51
+ import { a as Gt, F as jn } from "./folder-DvNxod7_.js";
53
52
  import { N as Vt } from "./notebook-text-spVSekMN.js";
54
- import { C as Gn } from "./calendar-days-BGWklvE-.js";
55
- import { C as Vn } from "./clock-Drd4Wtis.js";
56
- import { H as Xn } from "./hourglass-BEAzW1wE.js";
53
+ import { C as Yn } from "./calendar-days-BGWklvE-.js";
54
+ import { C as Gn } from "./clock-Drd4Wtis.js";
55
+ import { H as Vn } from "./hourglass-BEAzW1wE.js";
57
56
  import { V as Xt } from "./video-BheNGvsu.js";
58
- import { A as Lt } from "./armchair-BaLDW6Hz.js";
59
- import { B as Jn } from "./building-2-D33bLCWL.js";
60
- import { R as Qn } from "./repeat-CvQa5rZt.js";
61
- import { G as Zn } from "./globe-sHBW1JN5.js";
62
- import { N as ea } from "./notebook-pen-CO7HoM-W.js";
57
+ import { A as Ot } from "./armchair-BaLDW6Hz.js";
58
+ import { B as Xn } from "./building-2-D33bLCWL.js";
59
+ import { R as Jn } from "./repeat-CvQa5rZt.js";
60
+ import { G as Qn } from "./globe-sHBW1JN5.js";
61
+ import { N as Zn } from "./notebook-pen-CO7HoM-W.js";
63
62
  import { C as Jt } from "./clipboard-list-rSzfIYZB.js";
64
- import { U as ta } from "./user-plus-BtcOLgNU.js";
65
- import { P as Ot } from "./pencil-B1sKKyuT.js";
66
- import { C as na } from "./copy-vRpqqHtY.js";
67
- import { P as aa } from "./plus-DzMQ_c6b.js";
68
- import { S as ia } from "./square-check-big-dj0o8yA3.js";
69
- import { T as sa } from "./trash-2-uumy3fy1.js";
63
+ import { U as ea } from "./user-plus-BtcOLgNU.js";
64
+ import { P as _t } from "./pencil-B1sKKyuT.js";
65
+ import { C as ta } from "./copy-vRpqqHtY.js";
66
+ import { P as na } from "./plus-DzMQ_c6b.js";
67
+ import { S as aa } from "./square-check-big-dj0o8yA3.js";
68
+ import { T as ia } from "./trash-2-uumy3fy1.js";
70
69
  import { H as Ft } from "./history-CK2JaU2g.js";
71
70
  import { C as Qt } from "./calendar-clock-hbObjfGY.js";
72
- import { C as oa } from "./chevron-down-DWE7GSq9.js";
73
- import { C as ra } from "./camera-VSklPDCv.js";
74
- import { F as la } from "./file-BuG1VMAy.js";
75
- import { F as da } from "./file-text-5yv6r2ls.js";
76
- import { R as ca } from "./receipt-euro-B1cLM_TN.js";
71
+ import { C as sa } from "./chevron-down-DWE7GSq9.js";
72
+ import { C as oa } from "./camera-VSklPDCv.js";
73
+ import { F as ra } from "./file-BuG1VMAy.js";
74
+ import { F as la } from "./file-text-5yv6r2ls.js";
75
+ import { R as da } from "./receipt-euro-B1cLM_TN.js";
77
76
  /**
78
77
  * @license lucide-react v1.22.0 - ISC
79
78
  *
80
79
  * This source code is licensed under the ISC license.
81
80
  * See the LICENSE file in the root directory of this source tree.
82
81
  */
83
- const ua = [
82
+ const ca = [
84
83
  ["path", { d: "M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8", key: "1w3rig" }],
85
84
  ["path", { d: "M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1", key: "n2jgmb" }],
86
85
  ["path", { d: "M2 21h20", key: "1nyx9w" }],
@@ -90,28 +89,41 @@ const ua = [
90
89
  ["path", { d: "M7 4h.01", key: "1bh4kh" }],
91
90
  ["path", { d: "M12 4h.01", key: "1ujb9j" }],
92
91
  ["path", { d: "M17 4h.01", key: "1upcoc" }]
93
- ], pa = Yt("cake", ua);
92
+ ], ua = ut("cake", ca);
94
93
  /**
95
94
  * @license lucide-react v1.22.0 - ISC
96
95
  *
97
96
  * This source code is licensed under the ISC license.
98
97
  * See the LICENSE file in the root directory of this source tree.
99
98
  */
100
- const ma = [
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 = [
101
113
  ["path", { d: "M16 10h2", key: "8sgtl7" }],
102
114
  ["path", { d: "M16 14h2", key: "epxaof" }],
103
115
  ["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
104
116
  ["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
105
117
  ["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
106
- ], ha = Yt("id-card", ma);
107
- function fa(t) {
118
+ ], fa = ut("id-card", ha);
119
+ function ga(t) {
108
120
  const n = t.trim();
109
121
  let i = 0;
110
122
  for (let r = 0; r < n.length; r += 1)
111
123
  i += n.charCodeAt(r) >= 256 ? 6 : 1;
112
124
  return i;
113
125
  }
114
- const ga = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', va = {
126
+ const va = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', ya = {
115
127
  id: "appointment-details-panel",
116
128
  // open and close back open_history and close_history; set_value backs
117
129
  // set_status.
@@ -227,7 +239,7 @@ const ga = '[data-component="button-group"] [data-component="icon-button"][aria-
227
239
  root: {
228
240
  attr: "data-component",
229
241
  value: "appointment-details-panel",
230
- 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 ${ga}, 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.`
231
243
  },
232
244
  instanceId: {
233
245
  attr: "data-component-id",
@@ -240,7 +252,7 @@ function lt(t) {
240
252
  const n = document.activeElement;
241
253
  n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
242
254
  }
243
- function _e(t) {
255
+ function Fe(t) {
244
256
  const n = document.getElementById(t);
245
257
  n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), lt(n);
246
258
  }
@@ -262,7 +274,7 @@ function Ye(t) {
262
274
  return;
263
275
  }
264
276
  }
265
- const ya = {
277
+ const ba = {
266
278
  SU: 0,
267
279
  MO: 1,
268
280
  TU: 2,
@@ -270,25 +282,25 @@ const ya = {
270
282
  TH: 4,
271
283
  FR: 5,
272
284
  SA: 6
273
- }, ba = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], ka = {
285
+ }, ka = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], wa = {
274
286
  daily: "recurrenceEveryDay",
275
287
  weekly: "recurrenceEveryWeek",
276
288
  monthly: "recurrenceEveryMonth",
277
289
  yearly: "recurrenceEveryYear"
278
- }, wa = {
290
+ }, Sa = {
279
291
  1: "recurrenceOrdinal1",
280
292
  2: "recurrenceOrdinal2",
281
293
  3: "recurrenceOrdinal3",
282
294
  4: "recurrenceOrdinal4"
283
- }, Sa = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
284
- function _t(t, n) {
285
- const i = new Date(2026, 0, 4 + ya[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]);
286
298
  return new Intl.DateTimeFormat(n, { weekday: "long" }).format(i);
287
299
  }
288
- function Aa(t, n, i) {
289
- const r = Et(n);
300
+ function Na(t, n, i) {
301
+ const r = It(n);
290
302
  if (!Number.isFinite(r.getTime())) return;
291
- 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();
292
304
  try {
293
305
  return new Intl.DateTimeFormat(t, {
294
306
  day: "numeric",
@@ -299,10 +311,10 @@ function Aa(t, n, i) {
299
311
  return;
300
312
  }
301
313
  }
302
- function Na(t, n, i, r) {
314
+ function Ca(t, n, i, r) {
303
315
  const c = Cn[i.frequency];
304
316
  if (!c) return;
305
- const o = (y) => `calendarWorkspace.editor.${y}`, p = (y) => `calendarWorkspace.details.${y}`, f = ka[i.frequency], m = f && (i.interval ?? 1) > 1 ? t(o(f), { count: i.interval }) : t(o(c)), a = (i.byDay ?? []).map((y) => Sa.exec(y)).filter((y) => y !== null), l = i.frequency === "weekly" ? ba.filter(
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(
306
318
  (y) => a.some(([, g, C]) => !g && C === y)
307
319
  ) : [], d = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, y]) => y) : void 0;
308
320
  let A = m;
@@ -310,15 +322,15 @@ function Na(t, n, i, r) {
310
322
  A = t(p("seriesOnDays"), {
311
323
  every: m,
312
324
  days: new Intl.ListFormat(n, { type: "conjunction" }).format(
313
- l.map((y) => _t(y, n))
325
+ l.map((y) => Mt(y, n))
314
326
  )
315
327
  });
316
328
  else if (d) {
317
- const [, y, g] = d, C = _t(g, n);
329
+ const [, y, g] = d, C = Mt(g, n);
318
330
  A = y === "-1" ? t(p("seriesOnLast"), { every: m, weekday: C }) : t(p("seriesOnNth"), {
319
331
  every: m,
320
332
  weekday: C,
321
- ordinal: t(o(wa[y]))
333
+ ordinal: t(o(Sa[y]))
322
334
  });
323
335
  }
324
336
  if (i.count !== void 0)
@@ -326,7 +338,7 @@ function Na(t, n, i, r) {
326
338
  frequency: A,
327
339
  count: i.count
328
340
  });
329
- const v = i.untilIso ? Aa(n, i.untilIso, r) : void 0;
341
+ const v = i.untilIso ? Na(n, i.untilIso, r) : void 0;
330
342
  return v ? t(p("seriesUntil"), { rule: A, date: v }) : A;
331
343
  }
332
344
  function dt({
@@ -347,7 +359,7 @@ function dt({
347
359
  )) }) }) : null
348
360
  ] });
349
361
  }
350
- const Ca = "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)]";
351
363
  function Ht({
352
364
  id: t,
353
365
  eyebrow: n,
@@ -361,14 +373,14 @@ function Ht({
361
373
  {
362
374
  type: "button",
363
375
  "data-chip-hover": t,
364
- className: `${Ca} ${Hn}`,
376
+ className: `${xa} ${Mn}`,
365
377
  children: c
366
378
  }
367
379
  ) }),
368
380
  /* @__PURE__ */ e(Se.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(dt, { eyebrow: n, heading: i, facts: r }) })
369
381
  ] });
370
382
  }
371
- const s = (t) => `calendarWorkspace.details.${t}`, xa = {
383
+ const s = (t) => `calendarWorkspace.details.${t}`, Ta = {
372
384
  missing: "consentMissing",
373
385
  requested: "consentRequested",
374
386
  signed: "consentSigned"
@@ -394,7 +406,7 @@ function Ge({
394
406
  }
395
407
  ) : null;
396
408
  }
397
- const Ta = "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)]";
398
410
  function je({
399
411
  rows: t,
400
412
  stacked: n = !1
@@ -405,7 +417,7 @@ function je({
405
417
  {
406
418
  layout: n ? "stacked" : "inline",
407
419
  density: "compact",
408
- className: Ta,
420
+ className: Ea,
409
421
  children: i.map((r) => /* @__PURE__ */ b(
410
422
  Ke.Row,
411
423
  {
@@ -421,7 +433,7 @@ function je({
421
433
  }
422
434
  );
423
435
  }
424
- function Ea({
436
+ function Ia({
425
437
  details: t,
426
438
  locale: n,
427
439
  currency: i,
@@ -439,33 +451,34 @@ function Ea({
439
451
  text: C ? g.requestedVia === "sms" ? a(s("signingRequestedSms")) : g.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
440
452
  },
441
453
  ...g.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
442
- ] : [], 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), 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) => ({
443
455
  text: [
444
456
  N.question,
445
457
  a(s(N.yes ? "anamnesisYes" : "anamnesisNo")),
446
458
  N.answer,
447
- Kt(n, N.interviewIso)
459
+ jt(n, N.interviewIso)
448
460
  ].filter(Boolean).join(" · ")
449
461
  })), z = xn(l), re = Tn(l) || z, K = y.map((N) => ({
450
462
  id: `consent-${N.id}`,
451
463
  label: N.name,
452
- value: a(s(xa[N.state]))
464
+ value: a(s(Ta[N.state]))
453
465
  })), j = [
454
466
  ...l.dobIso ? [
455
467
  {
456
468
  id: "dob",
457
469
  label: a(s("dob")),
458
- icon: /* @__PURE__ */ e(pa, {}),
470
+ icon: /* @__PURE__ */ e(ma, {}),
459
471
  value: En(n, l.dobIso)
460
472
  },
461
473
  /* The age is a fact of its own, not a bracket after the date: its
462
474
  own row, label and glyph, with the kit's plural-aware words
463
- (`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
464
477
  hourglass is the appointment's duration, one card below. */
465
478
  {
466
479
  id: "age",
467
480
  label: a("patientTable.column.age"),
468
- icon: /* @__PURE__ */ e(Mn, {}),
481
+ icon: /* @__PURE__ */ e(ua, {}),
469
482
  value: a("patientField.age", {
470
483
  count: In(l.dobIso, r)
471
484
  })
@@ -476,7 +489,7 @@ function Ea({
476
489
  return {
477
490
  id: `phone-${G}`,
478
491
  label: a(V ? `calendarWorkspace.print.phoneLabels.${N.label}` : s("phone")),
479
- icon: N.label === "mobile" ? /* @__PURE__ */ e(Pt, {}) : /* @__PURE__ */ e(Un, {}),
492
+ icon: N.label === "mobile" ? /* @__PURE__ */ e(Lt, {}) : /* @__PURE__ */ e(Hn, {}),
480
493
  value: Zt(N.number)
481
494
  };
482
495
  }),
@@ -484,7 +497,7 @@ function Ea({
484
497
  {
485
498
  id: "email",
486
499
  label: a(s("email")),
487
- icon: /* @__PURE__ */ e(Bn, {}),
500
+ icon: /* @__PURE__ */ e(Un, {}),
488
501
  value: en(l.email)
489
502
  }
490
503
  ] : [],
@@ -494,7 +507,7 @@ function Ea({
494
507
  {
495
508
  id: "address",
496
509
  label: a(s("address")),
497
- icon: /* @__PURE__ */ e(Wn, {}),
510
+ icon: /* @__PURE__ */ e(Bn, {}),
498
511
  value: /* @__PURE__ */ e(
499
512
  "a",
500
513
  {
@@ -517,7 +530,7 @@ function Ea({
517
530
  }),
518
531
  facts: [{ text: a(s(Ne)) }],
519
532
  children: /* @__PURE__ */ e(
520
- _n,
533
+ Fn,
521
534
  {
522
535
  "data-chip": V,
523
536
  state: N,
@@ -534,7 +547,7 @@ function Ea({
534
547
  }
535
548
  );
536
549
  return /* @__PURE__ */ e(
537
- qt,
550
+ zt,
538
551
  {
539
552
  "data-card": "patient",
540
553
  name: l.name,
@@ -547,7 +560,7 @@ function Ea({
547
560
  className: "ds:[--key-value-pair-icon-color:var(--accent)]",
548
561
  flags: {
549
562
  unsignedDocumentsCount: (g == null ? void 0 : g.toComplete) ?? 0,
550
- highlightedAnamnesisCount: _
563
+ highlightedAnamnesisCount: F
551
564
  },
552
565
  flagHover: {
553
566
  ...g ? {
@@ -566,7 +579,7 @@ function Ea({
566
579
  dt,
567
580
  {
568
581
  eyebrow: a(s("anamnesisTitle")),
569
- heading: a(s("anamnesisHighlighted"), { n: _ }),
582
+ heading: a(s("anamnesisHighlighted"), { n: F }),
570
583
  facts: q
571
584
  }
572
585
  )
@@ -583,7 +596,7 @@ function Ea({
583
596
  onClick: () => m(t.eventId)
584
597
  }
585
598
  ) : void 0,
586
- extraChips: Y > 0 || B > 0 || ne > 0 || E > 0 || x || M || D ? /* @__PURE__ */ b(oe, { children: [
599
+ extraChips: Y > 0 || B > 0 || ne > 0 || E > 0 || x || H || D ? /* @__PURE__ */ b(oe, { children: [
587
600
  /* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
588
601
  Y > 0 ? ae(
589
602
  "debt",
@@ -610,13 +623,13 @@ function Ea({
610
623
  a(s("paidOnline"))
611
624
  ) : null
612
625
  ] }),
613
- M ? /* @__PURE__ */ e(
626
+ H ? /* @__PURE__ */ e(
614
627
  T,
615
628
  {
616
629
  size: "sm",
617
630
  intent: "outline",
618
631
  "data-action": ue.requestSignature,
619
- startIcon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
632
+ startIcon: /* @__PURE__ */ e(Wn, { "aria-hidden": "true" }),
620
633
  onClick: () => p(t.eventId),
621
634
  children: a(s("signingRequest"))
622
635
  }
@@ -628,7 +641,7 @@ function Ea({
628
641
  intent: "outline",
629
642
  "data-action": ue.signOnDevice,
630
643
  "aria-label": `${a(s("signingRequest"))}: ${a(s("signingOnDevice"))}`,
631
- startIcon: /* @__PURE__ */ e(Pt, { "aria-hidden": "true" }),
644
+ startIcon: /* @__PURE__ */ e(Lt, { "aria-hidden": "true" }),
632
645
  onClick: () => f(t.eventId),
633
646
  children: a(s("signingOnDevice"))
634
647
  }
@@ -638,7 +651,7 @@ function Ea({
638
651
  {
639
652
  href: o.advancedSignatureUrl,
640
653
  action: ue.advancedSignature,
641
- icon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
654
+ icon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
642
655
  children: a(s("aesSetUp"))
643
656
  }
644
657
  ) : null,
@@ -647,7 +660,7 @@ function Ea({
647
660
  {
648
661
  href: o.unlockPaymentsUrl,
649
662
  action: ue.unlockPayments,
650
- icon: /* @__PURE__ */ e(zn, { "aria-hidden": "true" }),
663
+ icon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
651
664
  children: a(s("unlockPayments"))
652
665
  }
653
666
  ) : null,
@@ -659,12 +672,12 @@ function Ea({
659
672
  heading: a(s("anamnesisExpired"), { n: E }),
660
673
  facts: [{ text: a(s("hoverAnamnesisExpiredFact")) }],
661
674
  children: /* @__PURE__ */ e(
662
- jt,
675
+ Yt,
663
676
  {
664
677
  "data-chip": "anamnesisExpired",
665
678
  variant: "warning",
666
679
  size: "md",
667
- leading: /* @__PURE__ */ e(Kn, {}),
680
+ leading: /* @__PURE__ */ e(zn, {}),
668
681
  children: a(s("anamnesisExpired"), { n: E })
669
682
  }
670
683
  )
@@ -675,7 +688,7 @@ function Ea({
675
688
  {
676
689
  href: o.renewAnamnesisUrl,
677
690
  action: ue.renewAnamnesis,
678
- icon: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
691
+ icon: /* @__PURE__ */ e(Kn, { "aria-hidden": "true" }),
679
692
  children: a(s("anamnesisRenew"))
680
693
  }
681
694
  ) : null
@@ -694,7 +707,7 @@ function Ea({
694
707
  }
695
708
  );
696
709
  }
697
- function Ia({
710
+ function Da({
698
711
  details: t,
699
712
  locale: n,
700
713
  currency: i,
@@ -705,18 +718,18 @@ function Ia({
705
718
  privacy: f = !1,
706
719
  history: m
707
720
  }) {
708
- 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 && Na(a, n, L, l.startIso), x = 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 ? [
709
722
  d.bookedAtIso && {
710
723
  id: "bookedAt",
711
724
  label: a(s("bookedAt")),
712
725
  value: /* @__PURE__ */ e(
713
- Rt,
726
+ Pt,
714
727
  {
715
728
  value: d.bookedAtIso,
716
729
  format: "absolute",
717
730
  shape: "bare",
718
731
  locale: n,
719
- absoluteFormat: It
732
+ absoluteFormat: Dt
720
733
  }
721
734
  )
722
735
  },
@@ -746,7 +759,7 @@ function Ia({
746
759
  label: a(s("paidOnline")),
747
760
  value: tn(n, d.paidOnlineAmount, i)
748
761
  }
749
- ] : [], M = f ? x.filter((E) => E && E.id === "bookedAt") : x, 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(
750
763
  (E) => E.kind === "created" && E.actor.trim() !== ""
751
764
  ).sort((E, q) => Date.parse(E.atIso) - Date.parse(q.atIso))[0];
752
765
  return /* @__PURE__ */ b(
@@ -778,19 +791,19 @@ function Ia({
778
791
  C && {
779
792
  id: "date",
780
793
  label: v("date"),
781
- icon: /* @__PURE__ */ e(Gn, {}),
782
- value: Kt(n, y)
794
+ icon: /* @__PURE__ */ e(Yn, {}),
795
+ value: jt(n, y)
783
796
  },
784
797
  C && {
785
798
  id: "time",
786
799
  label: a(s("time")),
787
- icon: /* @__PURE__ */ e(Vn, {}),
800
+ icon: /* @__PURE__ */ e(Gn, {}),
788
801
  value: l.allDay ? v("allDay") : Pn(n, y, g)
789
802
  },
790
803
  !l.allDay && {
791
804
  id: "duration",
792
805
  label: v("duration"),
793
- icon: /* @__PURE__ */ e(Xn, {}),
806
+ icon: /* @__PURE__ */ e(Vn, {}),
794
807
  value: `${l.durationMin} ${v("durationUnit")}`
795
808
  },
796
809
  l.isTelehealth && {
@@ -803,36 +816,36 @@ function Ia({
803
816
  id: "operator",
804
817
  label: a(s("operator")),
805
818
  /* A person, as on the grid: the avatar fills the icon slot. */
806
- 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" }),
807
820
  value: r.name
808
821
  },
809
822
  c && {
810
823
  id: "chair",
811
824
  label: a(s("chair")),
812
- icon: /* @__PURE__ */ e(Lt, {}),
813
- 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 })
814
827
  },
815
828
  l.branchLabel && {
816
829
  id: "branch",
817
830
  label: v("branch"),
818
- icon: /* @__PURE__ */ e(Jn, {}),
831
+ icon: /* @__PURE__ */ e(Xn, {}),
819
832
  value: l.branchLabel
820
833
  },
821
- _ && {
834
+ F && {
822
835
  id: "createdBy",
823
836
  label: a(s("createdBy")),
824
- icon: /* @__PURE__ */ e(Dt, { name: _.actor, size: "xs" }),
837
+ icon: /* @__PURE__ */ e(Rt, { name: F.actor, size: "xs" }),
825
838
  value: /* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
826
- /* @__PURE__ */ e("span", { children: _.actor }),
839
+ /* @__PURE__ */ e("span", { children: F.actor }),
827
840
  " ",
828
841
  /* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
829
- Rt,
842
+ Pt,
830
843
  {
831
- value: _.atIso,
844
+ value: F.atIso,
832
845
  format: "absolute",
833
846
  shape: "bare",
834
847
  locale: n,
835
- absoluteFormat: It
848
+ absoluteFormat: Dt
836
849
  }
837
850
  ) })
838
851
  ] })
@@ -840,7 +853,7 @@ function Ia({
840
853
  P && {
841
854
  id: "series",
842
855
  label: a(s("seriesLabel")),
843
- icon: /* @__PURE__ */ e(Qn, {}),
856
+ icon: /* @__PURE__ */ e(Jn, {}),
844
857
  value: P
845
858
  }
846
859
  ]
@@ -854,7 +867,7 @@ function Ia({
854
867
  (d == null ? void 0 : d.reason) && {
855
868
  id: "bookingReason",
856
869
  label: a(s("bookingReason")),
857
- icon: /* @__PURE__ */ e(Zn, {}),
870
+ icon: /* @__PURE__ */ e(Qn, {}),
858
871
  value: /* @__PURE__ */ e("span", { className: "ds:font-medium", children: d.reason })
859
872
  }
860
873
  ]
@@ -867,7 +880,7 @@ function Ia({
867
880
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
868
881
  children: [
869
882
  /* @__PURE__ */ e("h4", { className: "ds:m-0 type-label ds:text-[color:var(--muted-foreground)]", children: a(s("sectionBooking")) }),
870
- /* @__PURE__ */ e(je, { rows: M })
883
+ /* @__PURE__ */ e(je, { rows: H })
871
884
  ]
872
885
  }
873
886
  ) : null
@@ -875,7 +888,7 @@ function Ia({
875
888
  }
876
889
  );
877
890
  }
878
- function Da({
891
+ function Ra({
879
892
  details: t,
880
893
  locale: n,
881
894
  currency: i,
@@ -911,7 +924,7 @@ function Da({
911
924
  f.number ? o(s("planLine"), { number: f.number, name: f.name }) : f.name
912
925
  ] }) }) : null,
913
926
  p.lines.length > 0 ? /* @__PURE__ */ e(
914
- zt,
927
+ Kt,
915
928
  {
916
929
  lines: p.lines.map(({ entryId: m, careId: a, ...l }) => ({
917
930
  id: m,
@@ -925,17 +938,17 @@ function Da({
925
938
  }
926
939
  );
927
940
  }
928
- const Mt = 3;
929
- function Ra({
941
+ const Ut = 3;
942
+ function Pa({
930
943
  preview: t,
931
944
  onOpenNotes: n,
932
945
  locale: i
933
946
  }) {
934
947
  const { t: r } = te("ui"), c = st(), o = t.status ?? "ready", p = R(!1);
935
948
  pe(() => {
936
- p.current && (o !== "loading" && (p.current = !1), _e(c));
949
+ p.current && (o !== "loading" && (p.current = !1), Fe(c));
937
950
  }, [o, c]);
938
- 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"));
939
952
  return /* @__PURE__ */ b(
940
953
  me,
941
954
  {
@@ -947,7 +960,7 @@ function Ra({
947
960
  /* @__PURE__ */ e(
948
961
  Ve,
949
962
  {
950
- icon: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
963
+ icon: /* @__PURE__ */ e(Zn, { "aria-hidden": "true" }),
951
964
  intent: "outline",
952
965
  size: "sm",
953
966
  "data-action": "open-patient-notes",
@@ -959,7 +972,7 @@ function Ra({
959
972
  m > 0 ? (
960
973
  /* Decorative: the button's name already says the count. */
961
974
  /* @__PURE__ */ e(
962
- Fn,
975
+ _n,
963
976
  {
964
977
  variant: "outline",
965
978
  size: "sm",
@@ -997,7 +1010,7 @@ function Ra({
997
1010
  rt,
998
1011
  {
999
1012
  notes: t.notes,
1000
- maxItems: Mt,
1013
+ maxItems: Ut,
1001
1014
  bodyFormat: "plain",
1002
1015
  locale: i,
1003
1016
  "aria-labelledby": c,
@@ -1010,7 +1023,7 @@ function Ra({
1010
1023
  }
1011
1024
  );
1012
1025
  }
1013
- const Pa = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), La = ct(
1026
+ const La = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Oa = ct(
1014
1027
  [
1015
1028
  "ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end",
1016
1029
  "ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]",
@@ -1019,9 +1032,9 @@ const Pa = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), La = ct(
1019
1032
  "ds:[&>[data-component=workflow-status]>[role=alert]]:order-1",
1020
1033
  "ds:[&>[data-component=workflow-status]>[role=alert]]:basis-full"
1021
1034
  ].join(" ")
1022
- ), Oa = ct(
1035
+ ), _a = ct(
1023
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)]"
1024
- ), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", Fa = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", _a = [
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 = [
1025
1038
  "ds:sm:[&_button:has(svg.lucide-ellipsis)]:[min-block-size:var(--accessible-target-floor,0px)]",
1026
1039
  "ds:[&_button:has(svg.lucide-ellipsis)]:[min-inline-size:var(--accessible-target-floor,auto)]"
1027
1040
  ].join(" "), nn = ["40%", "33%", "50%", "25%"], Ha = [
@@ -1031,15 +1044,15 @@ const Pa = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), La = ct(
1031
1044
  "empty",
1032
1045
  "identification",
1033
1046
  "webcam"
1034
- ], Ut = {
1035
- bill: /* @__PURE__ */ e(ca, { "aria-hidden": "true" }),
1036
- folder: /* @__PURE__ */ e(Yn, { "aria-hidden": "true" }),
1037
- template: /* @__PURE__ */ e(da, { "aria-hidden": "true" }),
1038
- empty: /* @__PURE__ */ e(la, { "aria-hidden": "true" }),
1039
- identification: /* @__PURE__ */ e(ha, { "aria-hidden": "true" }),
1040
- webcam: /* @__PURE__ */ e(ra, { "aria-hidden": "true" })
1047
+ ], Bt = {
1048
+ bill: /* @__PURE__ */ e(da, { "aria-hidden": "true" }),
1049
+ folder: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
1050
+ template: /* @__PURE__ */ e(la, { "aria-hidden": "true" }),
1051
+ empty: /* @__PURE__ */ e(ra, { "aria-hidden": "true" }),
1052
+ identification: /* @__PURE__ */ e(fa, { "aria-hidden": "true" }),
1053
+ webcam: /* @__PURE__ */ e(oa, { "aria-hidden": "true" })
1041
1054
  }, k = (t) => `calendarWorkspace.details.${t}`;
1042
- function Bt({
1055
+ function Wt({
1043
1056
  children: t,
1044
1057
  startIcon: n,
1045
1058
  overflowItems: i,
@@ -1060,7 +1073,7 @@ function Bt({
1060
1073
  className: U,
1061
1074
  startIcon: n,
1062
1075
  "aria-haspopup": "menu",
1063
- endIcon: /* @__PURE__ */ e(oa, { "aria-hidden": "true" }),
1076
+ endIcon: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
1064
1077
  children: f ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
1065
1078
  }
1066
1079
  ) }) }),
@@ -1076,7 +1089,7 @@ function Bt({
1076
1089
  )) })
1077
1090
  ] });
1078
1091
  }
1079
- function Ma() {
1092
+ function Ua() {
1080
1093
  const { t } = te("ui");
1081
1094
  return /* @__PURE__ */ b(oe, { children: [
1082
1095
  /* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
@@ -1087,7 +1100,7 @@ function Ma() {
1087
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",
1088
1101
  children: [
1089
1102
  /* @__PURE__ */ e(
1090
- qt,
1103
+ zt,
1091
1104
  {
1092
1105
  name: "",
1093
1106
  loading: !0,
@@ -1096,7 +1109,7 @@ function Ma() {
1096
1109
  }
1097
1110
  ),
1098
1111
  /* @__PURE__ */ b(me, { title: t(k("sectionAppointment")), headingLevel: 3, children: [
1099
- /* @__PURE__ */ e(Wt, { loading: !0, maxLines: 2 }),
1112
+ /* @__PURE__ */ e($t, { loading: !0, maxLines: 2 }),
1100
1113
  /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: nn.map((n, i) => /* @__PURE__ */ b(
1101
1114
  "div",
1102
1115
  {
@@ -1127,7 +1140,7 @@ function Ma() {
1127
1140
  )) })
1128
1141
  ] }),
1129
1142
  /* @__PURE__ */ e(me, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(rt, { notes: [], loading: !0, loadingRows: 2 }) }),
1130
- /* @__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 }) })
1131
1144
  ]
1132
1145
  }
1133
1146
  ),
@@ -1152,7 +1165,7 @@ function Ma() {
1152
1165
  )
1153
1166
  ] });
1154
1167
  }
1155
- function Ua({
1168
+ function Ba({
1156
1169
  history: t,
1157
1170
  locale: n,
1158
1171
  onRetry: i,
@@ -1160,7 +1173,7 @@ function Ua({
1160
1173
  privacy: c
1161
1174
  }) {
1162
1175
  var v;
1163
- 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);
1164
1177
  we(() => l(!0), []);
1165
1178
  let d = "";
1166
1179
  m ? d = o("common.loading") : f && (d = f.length === 0 ? o(k("historyEmpty")) : o(k("historyLoaded"), { n: f.length }));
@@ -1223,7 +1236,7 @@ function Ua({
1223
1236
  A
1224
1237
  ] });
1225
1238
  }
1226
- function Ba({
1239
+ function Wa({
1227
1240
  read: t,
1228
1241
  refreshing: n,
1229
1242
  currency: i,
@@ -1234,7 +1247,7 @@ function Ba({
1234
1247
  enter: f,
1235
1248
  live: m,
1236
1249
  statusControl: a,
1237
- patientId: l = ((Me) => (Me = t.patient) == null ? void 0 : Me.id)(),
1250
+ patientId: l = ((He) => (He = t.patient) == null ? void 0 : He.id)(),
1238
1251
  operator: d,
1239
1252
  chair: A,
1240
1253
  privacy: v = !1,
@@ -1244,13 +1257,13 @@ function Ba({
1244
1257
  onOpenNotes: L,
1245
1258
  history: P,
1246
1259
  onOpenHistory: x,
1247
- noteUnrecordedEdits: M = !1,
1260
+ noteUnrecordedEdits: H = !1,
1248
1261
  readOnly: D = !1,
1249
- onStatusChange: _,
1250
- allowedStatuses: E = xt,
1262
+ onStatusChange: F,
1263
+ allowedStatuses: E = Tt,
1251
1264
  onDescriptionChange: q,
1252
1265
  descriptionMaxLength: z,
1253
- descriptionMeasureLength: re = fa,
1266
+ descriptionMeasureLength: re = ga,
1254
1267
  onAssignPatient: K,
1255
1268
  onEdit: j,
1256
1269
  onMove: Y,
@@ -1263,29 +1276,29 @@ function Ba({
1263
1276
  createTaskUrl: Ae,
1264
1277
  onRequestSignature: Ne,
1265
1278
  onSignOnDevice: Ce,
1266
- onOpenPatient: He,
1279
+ onOpenPatient: Me,
1267
1280
  shortcuts: he,
1268
1281
  documents: X
1269
1282
  }) {
1270
- var kt, wt;
1271
- 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 = (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] = H(!1), [Te, Q] = H(!1), le = xe && w !== void 0, Be = Te && J, Ee = () => {
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 = () => {
1272
1285
  le || !w || (ie(!0), x == null || x(I));
1273
1286
  }, We = R({ history: !1, editor: !1 });
1274
1287
  pe(() => {
1275
1288
  const u = We.current;
1276
1289
  We.current = { history: le, editor: Be };
1277
- const Z = u.history && w === void 0, St = u.editor && !J;
1278
- 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);
1279
1292
  });
1280
1293
  const ve = R(null), O = R(!1), Ie = (w == null ? void 0 : w.status) ?? (w != null && w.entries ? "ready" : "loading");
1281
1294
  pe(() => {
1282
1295
  O.current && (Ie !== "loading" && (O.current = !1), lt(ve.current));
1283
1296
  }, [Ie]);
1284
- const [$, De] = H(t.appointment.name ?? "");
1297
+ const [$, De] = M(t.appointment.name ?? "");
1285
1298
  we(() => {
1286
1299
  De(t.appointment.name ?? "");
1287
1300
  }, [t.appointment.name]);
1288
- 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;
1289
1302
  we(() => {
1290
1303
  Te && (de($), W(void 0), ce(!1));
1291
1304
  }, [Te]);
@@ -1296,44 +1309,44 @@ function Ba({
1296
1309
  try {
1297
1310
  await q(u, I), De(u), Q(!1);
1298
1311
  } catch (Z) {
1299
- Nt(Z) ? ce(!0) : W(
1312
+ Ct(Z) ? ce(!0) : W(
1300
1313
  ot(Z, h(k("descriptionSaveFailed")))
1301
1314
  );
1302
1315
  } finally {
1303
1316
  Re(!1);
1304
1317
  }
1305
- }, [se, Je] = H(t.appointment.status);
1318
+ }, [se, Je] = M(t.appointment.status);
1306
1319
  we(() => {
1307
1320
  Je(t.appointment.status);
1308
1321
  }, [t.appointment.status]);
1309
- const mt = R(n);
1322
+ const ht = R(n);
1310
1323
  pe(() => {
1311
- const u = mt.current && !n;
1312
- 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 ?? ""));
1313
1326
  }, [n]);
1314
- const $e = xt.filter(
1327
+ const $e = Tt.filter(
1315
1328
  (u) => E.includes(u)
1316
1329
  ), Oe = wn(se, {
1317
1330
  statuses: $e,
1318
1331
  /* Shown so the control can say it, but not a choice. */
1319
1332
  disabledStatuses: se && !$e.includes(se) ? [se] : []
1320
- }), Fe = !!_ && !D && $e.some((u) => u !== se), sn = async (u) => {
1321
- if (!(!_ || !Sn(u))) {
1333
+ }), _e = !!F && !D && $e.some((u) => u !== se), sn = async (u) => {
1334
+ if (!(!F || !Sn(u))) {
1322
1335
  try {
1323
- await _(u, I);
1336
+ await F(u, I);
1324
1337
  } catch (Z) {
1325
- 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"))));
1326
1339
  }
1327
1340
  Je(u);
1328
1341
  }
1329
- }, ht = v ? void 0 : G, qe = Ha.filter(
1342
+ }, ft = v ? void 0 : G, qe = Ha.filter(
1330
1343
  (u) => X == null ? void 0 : X.kinds.includes(u)
1331
- ), 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);
1332
1345
  pe(() => {
1333
- const u = gt.current && !Fe;
1334
- 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));
1335
1348
  });
1336
- const vt = Fe ? /* @__PURE__ */ e(
1349
+ const yt = _e ? /* @__PURE__ */ e(
1337
1350
  bn,
1338
1351
  {
1339
1352
  ref: a,
@@ -1342,7 +1355,7 @@ function Ba({
1342
1355
  size: "sm",
1343
1356
  workflowLabel: Ze,
1344
1357
  className: `ds:[&>button]:bg-[color:var(--background)] ${Fa}`,
1345
- "aria-label": ft,
1358
+ "aria-label": gt,
1346
1359
  onValueChange: sn
1347
1360
  }
1348
1361
  ) : se ? (
@@ -1353,10 +1366,10 @@ function Ba({
1353
1366
  {
1354
1367
  ref: et,
1355
1368
  role: "group",
1356
- "aria-label": ft,
1369
+ "aria-label": gt,
1357
1370
  tabIndex: -1,
1358
1371
  "data-status-display": "",
1359
- className: Oa(),
1372
+ className: _a(),
1360
1373
  children: /* @__PURE__ */ e(
1361
1374
  kn,
1362
1375
  {
@@ -1368,8 +1381,8 @@ function Ba({
1368
1381
  )
1369
1382
  }
1370
1383
  )
1371
- ) : null, F = [];
1372
- if (!D && K && !Qe && F.push([
1384
+ ) : null, _ = [];
1385
+ if (!D && K && !Qe && _.push([
1373
1386
  "assign-patient",
1374
1387
  /* @__PURE__ */ e(
1375
1388
  T,
@@ -1377,13 +1390,13 @@ function Ba({
1377
1390
  intent: "primary",
1378
1391
  "data-action": "assign-patient",
1379
1392
  className: U,
1380
- startIcon: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
1393
+ startIcon: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
1381
1394
  onClick: () => K(I),
1382
1395
  children: h("calendarWorkspace.inc1.bookings.assignPatient")
1383
1396
  },
1384
1397
  "assign"
1385
1398
  )
1386
- ]), ae && F.push([
1399
+ ]), ae && _.push([
1387
1400
  "join-telehealth",
1388
1401
  /* @__PURE__ */ e(
1389
1402
  T,
@@ -1397,20 +1410,20 @@ function Ba({
1397
1410
  },
1398
1411
  "join"
1399
1412
  )
1400
- ]), !D && j && F.push([
1413
+ ]), !D && j && _.push([
1401
1414
  "edit-appointment",
1402
1415
  /* @__PURE__ */ e(
1403
1416
  T,
1404
1417
  {
1405
1418
  "data-action": "edit-appointment",
1406
1419
  className: U,
1407
- startIcon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
1420
+ startIcon: /* @__PURE__ */ e(_t, { "aria-hidden": "true" }),
1408
1421
  onClick: () => j(I),
1409
1422
  children: h("calendarWorkspace.editor.editTitle")
1410
1423
  },
1411
1424
  "edit"
1412
1425
  )
1413
- ]), !D && Y && F.push([
1426
+ ]), !D && Y && _.push([
1414
1427
  "move-appointment",
1415
1428
  /* @__PURE__ */ e(
1416
1429
  T,
@@ -1423,18 +1436,18 @@ function Ba({
1423
1436
  },
1424
1437
  "move"
1425
1438
  )
1426
- ]), !D && B && F.push([
1439
+ ]), !D && B && _.push([
1427
1440
  "copy-appointment",
1428
1441
  on ? /* @__PURE__ */ e(
1429
- Bt,
1442
+ Wt,
1430
1443
  {
1431
1444
  "data-action": "copy-appointment",
1432
1445
  "data-overflow-tip": !1,
1433
- startIcon: /* @__PURE__ */ e(Tt, { "aria-hidden": "true" }),
1446
+ startIcon: /* @__PURE__ */ e(Et, { "aria-hidden": "true" }),
1434
1447
  overflowItems: [
1435
1448
  {
1436
1449
  label: h("calendarWorkspace.editor.duplicateAppointmentOnly"),
1437
- icon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
1450
+ icon: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
1438
1451
  action: "copy-appointment-only",
1439
1452
  onSelect: () => B(!1, I)
1440
1453
  },
@@ -1453,7 +1466,7 @@ function Ba({
1453
1466
  {
1454
1467
  "data-action": "copy-appointment",
1455
1468
  className: U,
1456
- startIcon: /* @__PURE__ */ e(Tt, { "aria-hidden": "true" }),
1469
+ startIcon: /* @__PURE__ */ e(Et, { "aria-hidden": "true" }),
1457
1470
  onClick: () => B(!1, I),
1458
1471
  children: h(k("copy"))
1459
1472
  },
@@ -1461,31 +1474,31 @@ function Ba({
1461
1474
  )
1462
1475
  ]), X && qe.length === 1) {
1463
1476
  const [u] = qe;
1464
- F.push([
1477
+ _.push([
1465
1478
  `create-document-${u}`,
1466
1479
  /* @__PURE__ */ e(
1467
1480
  T,
1468
1481
  {
1469
1482
  "data-action": `create-document-${u}`,
1470
1483
  className: U,
1471
- startIcon: Ut[u],
1484
+ startIcon: Bt[u],
1472
1485
  onClick: () => X.onCreate(u, I),
1473
1486
  children: h(k(`documents.${u}`))
1474
1487
  },
1475
1488
  "documents"
1476
1489
  )
1477
1490
  ]);
1478
- } else X && qe.length > 1 && F.push([
1491
+ } else X && qe.length > 1 && _.push([
1479
1492
  "open-create-document",
1480
1493
  /* @__PURE__ */ e(
1481
- Bt,
1494
+ Wt,
1482
1495
  {
1483
1496
  "data-action": "open-create-document",
1484
1497
  "data-overflow-tip": !1,
1485
- startIcon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
1498
+ startIcon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
1486
1499
  overflowItems: qe.map((u) => ({
1487
1500
  label: h(k(`documents.${u}`)),
1488
- icon: Ut[u],
1501
+ icon: Bt[u],
1489
1502
  action: `create-document-${u}`,
1490
1503
  onSelect: () => X.onCreate(u, I)
1491
1504
  })),
@@ -1494,7 +1507,7 @@ function Ba({
1494
1507
  "documents"
1495
1508
  )
1496
1509
  ]);
1497
- N ? F.push([
1510
+ N ? _.push([
1498
1511
  "open-whatsapp",
1499
1512
  /* @__PURE__ */ e(
1500
1513
  T,
@@ -1507,7 +1520,7 @@ function Ba({
1507
1520
  },
1508
1521
  "whatsapp"
1509
1522
  )
1510
- ]) : Ye(ht) ? F.push([
1523
+ ]) : Ye(ft) ? _.push([
1511
1524
  "open-whatsapp",
1512
1525
  /* @__PURE__ */ e(
1513
1526
  T,
@@ -1519,7 +1532,7 @@ function Ba({
1519
1532
  children: /* @__PURE__ */ e(
1520
1533
  "a",
1521
1534
  {
1522
- href: Ye(ht),
1535
+ href: Ye(ft),
1523
1536
  target: "_blank",
1524
1537
  rel: "noopener noreferrer",
1525
1538
  children: h(k("remindWhatsApp"))
@@ -1528,7 +1541,7 @@ function Ba({
1528
1541
  },
1529
1542
  "whatsapp"
1530
1543
  )
1531
- ]) : V && !G && F.push([
1544
+ ]) : V && !G && _.push([
1532
1545
  "buy-whatsapp",
1533
1546
  /* @__PURE__ */ e(
1534
1547
  T,
@@ -1542,8 +1555,8 @@ function Ba({
1542
1555
  "buy-whatsapp"
1543
1556
  )
1544
1557
  ]);
1545
- const yt = Ye(Ae);
1546
- yt && F.push([
1558
+ const bt = Ye(Ae);
1559
+ bt && _.push([
1547
1560
  "create-task",
1548
1561
  /* @__PURE__ */ e(
1549
1562
  T,
@@ -1551,12 +1564,12 @@ function Ba({
1551
1564
  asChild: !0,
1552
1565
  "data-action": "create-task",
1553
1566
  className: U,
1554
- startIcon: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
1555
- children: /* @__PURE__ */ e("a", { href: yt, children: h(k("createTask")) })
1567
+ startIcon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
1568
+ children: /* @__PURE__ */ e("a", { href: bt, children: h(k("createTask")) })
1556
1569
  },
1557
1570
  "task"
1558
1571
  )
1559
- ]), !D && ne && F.push([
1572
+ ]), !D && ne && _.push([
1560
1573
  "delete-appointment",
1561
1574
  /* @__PURE__ */ e(
1562
1575
  T,
@@ -1564,31 +1577,31 @@ function Ba({
1564
1577
  intent: "destructiveOutline",
1565
1578
  "data-action": "delete-appointment",
1566
1579
  className: U,
1567
- startIcon: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
1580
+ startIcon: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
1568
1581
  onClick: () => ne(I),
1569
1582
  children: h("calendarWorkspace.editor.delete")
1570
1583
  },
1571
1584
  "delete"
1572
1585
  )
1573
1586
  ]);
1574
- const tt = F.map(([, u]) => u);
1587
+ const tt = _.map(([, u]) => u);
1575
1588
  m.current = {
1576
1589
  status: se ?? null,
1577
- allowed: Fe ? $e : [],
1578
- offered: F.map(([u]) => u),
1590
+ allowed: _e ? $e : [],
1591
+ offered: _.map(([u]) => u),
1579
1592
  historyAvailable: w !== void 0,
1580
1593
  historyOpen: le,
1581
1594
  openHistory: Ee,
1582
1595
  closeHistory: () => ie(!1)
1583
1596
  };
1584
- const bt = h(k("historyBack"));
1597
+ const kt = h(k("historyBack"));
1585
1598
  return /* @__PURE__ */ e(
1586
1599
  "div",
1587
1600
  {
1588
1601
  className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Xe ? fn : ""}`,
1589
1602
  children: /* @__PURE__ */ b(at.Host, { children: [
1590
1603
  /* @__PURE__ */ e(
1591
- $t,
1604
+ qt,
1592
1605
  {
1593
1606
  title: o,
1594
1607
  headingId: p,
@@ -1617,7 +1630,7 @@ function Ba({
1617
1630
  className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
1618
1631
  children: /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
1619
1632
  v ? /* @__PURE__ */ e(mn, { mask: y }) : t.patient ? /* @__PURE__ */ e(
1620
- Ea,
1633
+ Ia,
1621
1634
  {
1622
1635
  ...fe,
1623
1636
  now: r,
@@ -1625,7 +1638,7 @@ function Ba({
1625
1638
  shortcuts: he,
1626
1639
  onRequestSignature: Ne,
1627
1640
  onSignOnDevice: Ce,
1628
- onOpenPatient: He
1641
+ onOpenPatient: Me
1629
1642
  }
1630
1643
  ) : (
1631
1644
  /* No patient card to carry the identity: a patient-less, an
@@ -1642,14 +1655,14 @@ function Ba({
1642
1655
  isRecurring: t.appointment.recurrence !== void 0,
1643
1656
  hasUnassignedPatient: t.appointment.bookedOnline && !Qe,
1644
1657
  hasHighlightedAnamnesis: !1,
1645
- hasBillableAmount: (((wt = t.money) == null ? void 0 : wt.billableAmount) ?? 0) > 0
1658
+ hasBillableAmount: (((St = t.money) == null ? void 0 : St.billableAmount) ?? 0) > 0
1646
1659
  },
1647
1660
  locale: c
1648
1661
  }
1649
1662
  )
1650
1663
  ),
1651
1664
  /* @__PURE__ */ e(
1652
- Ia,
1665
+ Da,
1653
1666
  {
1654
1667
  ...fe,
1655
1668
  operator: d,
@@ -1670,8 +1683,8 @@ function Ba({
1670
1683
  ) : void 0,
1671
1684
  description: (
1672
1685
  /* An empty read-only description prints nothing. */
1673
- v ? $ ? /* @__PURE__ */ e(Ct, { block: "description" }) : void 0 : $ || J ? /* @__PURE__ */ e(
1674
- Wt,
1686
+ v ? $ ? /* @__PURE__ */ e(xt, { block: "description" }) : void 0 : $ || J ? /* @__PURE__ */ e(
1687
+ $t,
1675
1688
  {
1676
1689
  "data-block": "description",
1677
1690
  value: $
@@ -1686,10 +1699,10 @@ function Ba({
1686
1699
  "data-card": "notes",
1687
1700
  title: h("notesPanel.title"),
1688
1701
  headingLevel: 3,
1689
- children: /* @__PURE__ */ e(Ct, {})
1702
+ children: /* @__PURE__ */ e(xt, {})
1690
1703
  }
1691
1704
  ) : ge ? /* @__PURE__ */ e(
1692
- Ra,
1705
+ Pa,
1693
1706
  {
1694
1707
  preview: ge,
1695
1708
  onOpenNotes: Ue ? L : void 0,
@@ -1697,7 +1710,7 @@ function Ba({
1697
1710
  }
1698
1711
  ) : null,
1699
1712
  /* @__PURE__ */ e(
1700
- Da,
1713
+ Ra,
1701
1714
  {
1702
1715
  ...fe,
1703
1716
  privacy: v,
@@ -1707,13 +1720,13 @@ function Ba({
1707
1720
  ] })
1708
1721
  }
1709
1722
  ),
1710
- vt || tt.length > 0 ? (
1723
+ yt || tt.length > 0 ? (
1711
1724
  /* The body scrolls; the status and the actions stay put. The
1712
1725
  status keeps its own segment and never folds. The actions fold
1713
1726
  to icons, then into More, never onto a second line. Only a
1714
1727
  refused status change adds a line, for its message. */
1715
- /* @__PURE__ */ b("div", { className: La(), children: [
1716
- vt,
1728
+ /* @__PURE__ */ b("div", { className: Oa(), children: [
1729
+ yt,
1717
1730
  tt.length > 0 ? /* @__PURE__ */ e(
1718
1731
  hn,
1719
1732
  {
@@ -1722,7 +1735,7 @@ function Ba({
1722
1735
  collapseToIcons: !0,
1723
1736
  background: "surface",
1724
1737
  size: "sm",
1725
- className: `ds:min-w-0 ds:flex-1 ds:text-end ${_a}`,
1738
+ className: `ds:min-w-0 ds:flex-1 ds:text-end ${Ma}`,
1726
1739
  children: tt
1727
1740
  }
1728
1741
  ) : null
@@ -1735,16 +1748,16 @@ function Ba({
1735
1748
  open: le,
1736
1749
  icon: /* @__PURE__ */ e(Ft, { "aria-hidden": "true" }),
1737
1750
  title: h(k("historyTitle")),
1738
- backLabel: bt,
1751
+ backLabel: kt,
1739
1752
  headingLevel: 3,
1740
1753
  onBack: () => ie(!1),
1741
1754
  "data-details-subview": "history",
1742
1755
  children: /* @__PURE__ */ e("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
1743
- Ua,
1756
+ Ba,
1744
1757
  {
1745
1758
  history: w,
1746
1759
  locale: c,
1747
- noteUnrecordedEdits: M,
1760
+ noteUnrecordedEdits: H,
1748
1761
  privacy: v,
1749
1762
  onRetry: w.onRetry ? () => {
1750
1763
  var u;
@@ -1758,11 +1771,11 @@ function Ba({
1758
1771
  at,
1759
1772
  {
1760
1773
  open: Be,
1761
- icon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
1774
+ icon: /* @__PURE__ */ e(_t, { "aria-hidden": "true" }),
1762
1775
  title: h(k("editDescription")),
1763
- backLabel: bt,
1776
+ backLabel: kt,
1764
1777
  headingLevel: 3,
1765
- initialFocusRef: ut,
1778
+ initialFocusRef: pt,
1766
1779
  onBack: () => {
1767
1780
  be || Q(!1);
1768
1781
  },
@@ -1783,7 +1796,7 @@ function Ba({
1783
1796
  intent: "primary",
1784
1797
  "data-action": "save-description",
1785
1798
  loading: be,
1786
- disabled: pt,
1799
+ disabled: mt,
1787
1800
  onClick: () => void an(),
1788
1801
  children: h(k("descriptionSave"))
1789
1802
  }
@@ -1794,13 +1807,13 @@ function Ba({
1794
1807
  gn,
1795
1808
  {
1796
1809
  label: h("calendarWorkspace.editor.description"),
1797
- error: pt ? h("calendarWorkspace.editor.descriptionTooLong", {
1810
+ error: mt ? h("calendarWorkspace.editor.descriptionTooLong", {
1798
1811
  max: z
1799
1812
  }) : S,
1800
1813
  children: /* @__PURE__ */ e(
1801
1814
  vn,
1802
1815
  {
1803
- ref: ut,
1816
+ ref: pt,
1804
1817
  value: ye,
1805
1818
  minRows: 6,
1806
1819
  autoResize: !0,
@@ -1829,7 +1842,7 @@ function Ba({
1829
1842
  }
1830
1843
  );
1831
1844
  }
1832
- const Wa = rn(function({
1845
+ const $a = rn(function({
1833
1846
  state: n,
1834
1847
  onRetry: i,
1835
1848
  patientId: r,
@@ -1849,9 +1862,9 @@ const Wa = rn(function({
1849
1862
  noteUnrecordedEdits: L,
1850
1863
  readOnly: P = !1,
1851
1864
  onStatusChange: x,
1852
- allowedStatuses: M,
1865
+ allowedStatuses: H,
1853
1866
  onDescriptionChange: D,
1854
- descriptionMaxLength: _,
1867
+ descriptionMaxLength: F,
1855
1868
  descriptionMeasureLength: E,
1856
1869
  onAssignPatient: q,
1857
1870
  onEdit: z,
@@ -1868,28 +1881,28 @@ const Wa = rn(function({
1868
1881
  onOpenPatient: Ae,
1869
1882
  shortcuts: Ne,
1870
1883
  documents: Ce,
1871
- id: He,
1884
+ id: Me,
1872
1885
  className: he,
1873
1886
  ...X
1874
- }, Me) {
1887
+ }, He) {
1875
1888
  var be, Re;
1876
- 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, xe = 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(
1877
1890
  void 0
1878
1891
  ), Te = ie.current !== void 0 && ie.current !== "ready";
1879
1892
  we(() => {
1880
1893
  ie.current = n.status;
1881
1894
  }, [n.status]);
1882
- 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);
1883
1896
  typeof document < "u" && (Ee.current = ((be = le.current) == null ? void 0 : be.contains(document.activeElement)) ?? !1);
1884
1897
  const We = J ? `ready:${J.eventId}` : n.status, ve = R(!1);
1885
1898
  pe(() => {
1886
- 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);
1887
1900
  }, [We, w]);
1888
1901
  const O = R(null);
1889
1902
  J || (O.current = null);
1890
1903
  const Ie = R(null), $ = R({ state: n, eventId: xe, privacy: l, retryOffered: Q, onRetry: i });
1891
1904
  $.current = { state: n, eventId: xe, privacy: l, retryOffered: Q, onRetry: i };
1892
- const De = At(
1905
+ const De = Nt(
1893
1906
  () => ({
1894
1907
  getEventId: () => $.current.eventId ?? null,
1895
1908
  getLoadStatus: () => $.current.state.status,
@@ -1947,9 +1960,9 @@ const Wa = rn(function({
1947
1960
  }),
1948
1961
  []
1949
1962
  );
1950
- dn(va, De, fe);
1963
+ dn(ya, De, fe);
1951
1964
  const ye = /* @__PURE__ */ e(
1952
- $t,
1965
+ qt,
1953
1966
  {
1954
1967
  title: ge,
1955
1968
  headingId: w,
@@ -1960,7 +1973,7 @@ const Wa = rn(function({
1960
1973
  );
1961
1974
  let de;
1962
1975
  return n.status === "ready" ? de = /* @__PURE__ */ e(
1963
- Ba,
1976
+ Wa,
1964
1977
  {
1965
1978
  read: n.read,
1966
1979
  refreshing: n.refreshing === !0,
@@ -1985,9 +1998,9 @@ const Wa = rn(function({
1985
1998
  noteUnrecordedEdits: L,
1986
1999
  readOnly: P,
1987
2000
  onStatusChange: x,
1988
- allowedStatuses: M,
2001
+ allowedStatuses: H,
1989
2002
  onDescriptionChange: D,
1990
- descriptionMaxLength: _,
2003
+ descriptionMaxLength: F,
1991
2004
  descriptionMeasureLength: E,
1992
2005
  onAssignPatient: q,
1993
2006
  onEdit: z,
@@ -2008,7 +2021,7 @@ const Wa = rn(function({
2008
2021
  n.read.eventId
2009
2022
  ) : n.status === "loading" ? de = /* @__PURE__ */ b(oe, { children: [
2010
2023
  ye,
2011
- /* @__PURE__ */ e(Ma, {})
2024
+ /* @__PURE__ */ e(Ua, {})
2012
2025
  ] }) : de = /* @__PURE__ */ b(oe, { children: [
2013
2026
  ye,
2014
2027
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
@@ -2029,19 +2042,19 @@ const Wa = rn(function({
2029
2042
  "div",
2030
2043
  {
2031
2044
  ref: Be,
2032
- id: He,
2045
+ id: Me,
2033
2046
  "data-component": "appointment-details-panel",
2034
2047
  "data-component-id": fe,
2035
2048
  "data-event-id": xe,
2036
2049
  "data-status": n.status,
2037
2050
  "aria-busy": n.status === "loading" || void 0,
2038
- className: Pa({ className: he }),
2051
+ className: La({ className: he }),
2039
2052
  ...X,
2040
2053
  children: de
2041
2054
  }
2042
2055
  );
2043
2056
  });
2044
- Wa.displayName = "AppointmentDetailsPanel";
2057
+ $a.displayName = "AppointmentDetailsPanel";
2045
2058
  function cs({
2046
2059
  eventId: t,
2047
2060
  load: n,
@@ -2053,7 +2066,7 @@ function cs({
2053
2066
  pe(() => {
2054
2067
  o.current = n;
2055
2068
  });
2056
- 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;
2057
2070
  d.eventId !== t && A({ eventId: t, count: v }), we(() => {
2058
2071
  if (t === null) {
2059
2072
  a(void 0);
@@ -2063,7 +2076,7 @@ function cs({
2063
2076
  L.signal.aborted || a({ eventId: t, selection: v, request: l, value: x });
2064
2077
  };
2065
2078
  return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((x) => {
2066
- var M, D;
2079
+ var H, D;
2067
2080
  if (x.status !== "ready") {
2068
2081
  P({
2069
2082
  status: "refused",
@@ -2073,7 +2086,7 @@ function cs({
2073
2086
  });
2074
2087
  return;
2075
2088
  }
2076
- if (((M = x.details) == null ? void 0 : M.eventId) !== t || !On((D = x.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))
2077
2090
  throw new Error(c.current);
2078
2091
  P({ status: "ready", read: x.details });
2079
2092
  }).catch((x) => {
@@ -2091,10 +2104,10 @@ function cs({
2091
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 };
2092
2105
  }
2093
2106
  export {
2094
- Wa as A,
2107
+ $a as A,
2095
2108
  ue as D,
2096
- va as a,
2097
- fa as s,
2109
+ ya as a,
2110
+ ga as s,
2098
2111
  cs as u
2099
2112
  };
2100
- //# sourceMappingURL=use-appointment-details-read-DOPHCTxO.js.map
2113
+ //# sourceMappingURL=use-appointment-details-read-BcBr4JwL.js.map