@alfadocs/ui-kit 1.33.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/_chunks/appointment-card-Bh_CIlc6.js +431 -0
  2. package/dist/_chunks/appointment-timeline-De-Wqdkw.js +449 -0
  3. package/dist/_chunks/{appointment-tray-DCk8gHod.js → appointment-tray-4I9wTAi4.js} +2 -2
  4. package/dist/_chunks/{calendar-workspace-BX-zDyVR.js → calendar-workspace-UywR5gUl.js} +7 -7
  5. package/dist/_chunks/{care-plan-card-CZW476Kg.js → care-plan-card-DHVhBcvs.js} +3 -3
  6. package/dist/_chunks/{care-plan-entry-card-BMUYagEw.js → care-plan-entry-card-Dx6IdTcR.js} +2 -2
  7. package/dist/_chunks/{care-plan-header-B5CBE0zu.js → care-plan-header-UTX5ZD74.js} +2 -2
  8. package/dist/_chunks/{clinical-note-card-D2WTV2CO.js → clinical-note-card-CTRzmqvv.js} +83 -81
  9. package/dist/_chunks/{contact-profile-card-BZqi8Hck.js → contact-profile-card-DSI9uumA.js} +17 -16
  10. package/dist/_chunks/{control-room-rail-iO_BCaq1.js → control-room-rail-5MbhjsxN.js} +2 -2
  11. package/dist/_chunks/{entity-card-DmrgYSEX.js → entity-card-9_62gY7l.js} +4 -4
  12. package/dist/_chunks/format-price-BkMEbeW3.js +47 -0
  13. package/dist/_chunks/{format-price-DNqXPa_q.js → languages-CZqBaPwI.js} +8 -38
  14. package/dist/_chunks/money.agent-Dw55UxUA.js +116 -0
  15. package/dist/_chunks/notes-panel-BjLt-kiP.js +469 -0
  16. package/dist/_chunks/{operator-hero-D7-iiFQ9.js → operator-hero-aG_qyn6g.js} +2 -2
  17. package/dist/_chunks/{payment-request-card-lmKLwsDs.js → payment-request-card-DvEsWEkC.js} +2 -2
  18. package/dist/_chunks/{practice-results-DjEzPgAK.js → practice-results-kayDEorM.js} +15 -14
  19. package/dist/_chunks/{rich-text-editor-CQ7yZdG3.js → rich-text-editor-CCI-Y3DN.js} +3 -5
  20. package/dist/_chunks/{task-card-BUgK6yZT.js → task-card-BalrLkSz.js} +41 -40
  21. package/dist/_chunks/{task-tray-CYG6rj2s.js → task-tray-COo-RlDv.js} +2 -2
  22. package/dist/_chunks/tasks-panel-DLKpSNoE.js +844 -0
  23. package/dist/_chunks/tool-rail-ONaV-Nzz.js +588 -0
  24. package/dist/_chunks/use-check-animation--I3cS00X.js +28 -0
  25. package/dist/_chunks/use-list-reflow-Cw43nxw5.js +100 -0
  26. package/dist/agent-catalog.json +15 -1
  27. package/dist/components/_shared/format-price.d.ts +15 -0
  28. package/dist/components/appointment-card/appointment-card.d.ts +36 -1
  29. package/dist/components/appointment-card/index.js +2 -2
  30. package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
  31. package/dist/components/appointment-timeline/index.js +1 -1
  32. package/dist/components/care-plan-card/index.js +1 -1
  33. package/dist/components/care-plan-entry-card/index.js +1 -1
  34. package/dist/components/care-plan-header/index.js +1 -1
  35. package/dist/components/clinical-note-card/clinical-note-card.d.ts +8 -1
  36. package/dist/components/clinical-note-card/index.js +1 -1
  37. package/dist/components/command-palette/command-palette.d.ts +7 -7
  38. package/dist/components/contact-profile-card/index.js +1 -1
  39. package/dist/components/control-room-rail/index.js +1 -1
  40. package/dist/components/index.d.ts +1 -0
  41. package/dist/components/money/index.d.ts +4 -0
  42. package/dist/components/money/index.js +6 -0
  43. package/dist/components/money/money.agent.d.ts +3 -0
  44. package/dist/components/money/money.d.ts +38 -0
  45. package/dist/components/notes-panel/index.js +1 -1
  46. package/dist/components/notes-panel/notes-panel.d.ts +16 -1
  47. package/dist/components/operator-hero/index.js +1 -1
  48. package/dist/components/payment-card/index.js +1 -1
  49. package/dist/components/practice-results/index.js +1 -1
  50. package/dist/components/rich-text-editor/index.js +1 -1
  51. package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
  52. package/dist/components/task-card/index.js +1 -1
  53. package/dist/components/task-card/task-card.d.ts +11 -3
  54. package/dist/components/task-tray/index.js +1 -1
  55. package/dist/components/tasks-panel/index.js +1 -1
  56. package/dist/components/tasks-panel/tasks-panel.d.ts +1 -1
  57. package/dist/components/tool-rail/index.js +1 -1
  58. package/dist/hooks/index.d.ts +3 -0
  59. package/dist/hooks/index.js +43 -37
  60. package/dist/hooks/use-check-animation.d.ts +53 -0
  61. package/dist/hooks/use-exit-transition.d.ts +48 -0
  62. package/dist/hooks/use-list-reflow.d.ts +47 -0
  63. package/dist/host-compat.css +8 -2
  64. package/dist/i18n/locales/ar.d.ts +10 -0
  65. package/dist/i18n/locales/ar.js +12 -2
  66. package/dist/i18n/locales/de.d.ts +10 -0
  67. package/dist/i18n/locales/de.js +12 -2
  68. package/dist/i18n/locales/el.d.ts +10 -0
  69. package/dist/i18n/locales/el.js +12 -2
  70. package/dist/i18n/locales/en.d.ts +10 -0
  71. package/dist/i18n/locales/en.js +12 -2
  72. package/dist/i18n/locales/es.d.ts +10 -0
  73. package/dist/i18n/locales/es.js +12 -2
  74. package/dist/i18n/locales/fr.d.ts +10 -0
  75. package/dist/i18n/locales/fr.js +12 -2
  76. package/dist/i18n/locales/hi.d.ts +10 -0
  77. package/dist/i18n/locales/hi.js +12 -2
  78. package/dist/i18n/locales/it.d.ts +13 -3
  79. package/dist/i18n/locales/it.js +14 -4
  80. package/dist/i18n/locales/ja.d.ts +10 -0
  81. package/dist/i18n/locales/ja.js +12 -2
  82. package/dist/i18n/locales/nl.d.ts +10 -0
  83. package/dist/i18n/locales/nl.js +12 -2
  84. package/dist/i18n/locales/pl.d.ts +10 -0
  85. package/dist/i18n/locales/pl.js +12 -2
  86. package/dist/i18n/locales/pt.d.ts +10 -0
  87. package/dist/i18n/locales/pt.js +12 -2
  88. package/dist/i18n/locales/ro.d.ts +10 -0
  89. package/dist/i18n/locales/ro.js +12 -2
  90. package/dist/i18n/locales/ru.d.ts +10 -0
  91. package/dist/i18n/locales/ru.js +12 -2
  92. package/dist/i18n/locales/sq.d.ts +10 -0
  93. package/dist/i18n/locales/sq.js +12 -2
  94. package/dist/i18n/locales/sv.d.ts +10 -0
  95. package/dist/i18n/locales/sv.js +12 -2
  96. package/dist/i18n/locales/tr.d.ts +10 -0
  97. package/dist/i18n/locales/tr.js +12 -2
  98. package/dist/i18n/locales/zh.d.ts +10 -0
  99. package/dist/i18n/locales/zh.js +12 -2
  100. package/dist/index.js +919 -916
  101. package/dist/locales/ar.json +12 -2
  102. package/dist/locales/de.json +12 -2
  103. package/dist/locales/el.json +12 -2
  104. package/dist/locales/en.json +12 -2
  105. package/dist/locales/es.json +12 -2
  106. package/dist/locales/fr.json +12 -2
  107. package/dist/locales/hi.json +12 -2
  108. package/dist/locales/it.json +14 -4
  109. package/dist/locales/ja.json +12 -2
  110. package/dist/locales/nl.json +12 -2
  111. package/dist/locales/pl.json +12 -2
  112. package/dist/locales/pt.json +12 -2
  113. package/dist/locales/ro.json +12 -2
  114. package/dist/locales/ru.json +12 -2
  115. package/dist/locales/sq.json +12 -2
  116. package/dist/locales/sv.json +12 -2
  117. package/dist/locales/tr.json +12 -2
  118. package/dist/locales/zh.json +12 -2
  119. package/dist/patterns/calendar/index.js +1 -1
  120. package/dist/tokens.css +2 -1
  121. package/package.json +5 -1
  122. package/dist/_chunks/appointment-card-D-oj_ugh.js +0 -296
  123. package/dist/_chunks/appointment-timeline-CymGHyIP.js +0 -403
  124. package/dist/_chunks/notes-panel-C4G-mhZ9.js +0 -380
  125. package/dist/_chunks/tasks-panel-DQuaVvl5.js +0 -757
  126. package/dist/_chunks/tool-rail-8Scslq3X.js +0 -524
@@ -1,28 +1,28 @@
1
1
  import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
- import { forwardRef as ie, useId as I, useState as A, useMemo as te } from "react";
2
+ import { forwardRef as te, useId as V, useState as $, useMemo as ne } from "react";
3
3
  import { c as P } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ne } from "react-i18next";
5
- import { A as le } from "./avatar-CkDeQOSI.js";
4
+ import { useTranslation as le } from "react-i18next";
5
+ import { A as de } from "./avatar-CkDeQOSI.js";
6
6
  import { B as v } from "./badge-sTusUqZD.js";
7
- import { C as V } from "./card-DPmk26CL.js";
8
- import { L as de } from "./link-CPb_pZPr.js";
9
- import { T as D } from "./timestamp-BV2lC-wV.js";
10
- import { SafeHtml as oe } from "../safe-html/index.js";
11
- import { i as ce } from "./is-safe-url-DkETxeHz.js";
12
- import { u as me } from "./use-clamp-overflow-DQE2kwZ9.js";
13
- import { u as pe } from "./registry-DvAUVLHh.js";
14
- import { S as ue } from "./scan-line-CNseIHQ0.js";
15
- import { L as fe } from "./layers-DcAENmsZ.js";
16
- import { F as O } from "./file-text-5yv6r2ls.js";
17
- import { U as ve } from "./user-B12p7bVF.js";
18
- import { c as W } from "./createLucideIcon-DhHxpK9K.js";
7
+ import { C as D } from "./card-DPmk26CL.js";
8
+ import { L as oe } from "./link-CPb_pZPr.js";
9
+ import { T as O } from "./timestamp-BV2lC-wV.js";
10
+ import { SafeHtml as ce } from "../safe-html/index.js";
11
+ import { i as me } from "./is-safe-url-DkETxeHz.js";
12
+ import { u as pe } from "./use-clamp-overflow-DQE2kwZ9.js";
13
+ import { u as ue } from "./registry-DvAUVLHh.js";
14
+ import { S as fe } from "./scan-line-CNseIHQ0.js";
15
+ import { L as ve } from "./layers-DcAENmsZ.js";
16
+ import { F as U } from "./file-text-5yv6r2ls.js";
17
+ import { U as ge } from "./user-B12p7bVF.js";
18
+ import { c as q } from "./createLucideIcon-DhHxpK9K.js";
19
19
  /**
20
20
  * @license lucide-react v1.22.0 - ISC
21
21
  *
22
22
  * This source code is licensed under the ISC license.
23
23
  * See the LICENSE file in the root directory of this source tree.
24
24
  */
25
- const ge = [
25
+ const he = [
26
26
  [
27
27
  "path",
28
28
  {
@@ -30,14 +30,14 @@ const ge = [
30
30
  key: "1jaruq"
31
31
  }
32
32
  ]
33
- ], U = W("flag", ge);
33
+ ], B = q("flag", he);
34
34
  /**
35
35
  * @license lucide-react v1.22.0 - ISC
36
36
  *
37
37
  * This source code is licensed under the ISC license.
38
38
  * See the LICENSE file in the root directory of this source tree.
39
39
  */
40
- const he = [
40
+ const be = [
41
41
  ["path", { d: "M12 17v5", key: "bb1du9" }],
42
42
  [
43
43
  "path",
@@ -46,7 +46,7 @@ const he = [
46
46
  key: "1nkz8b"
47
47
  }
48
48
  ]
49
- ], B = W("pin", he), be = {
49
+ ], R = q("pin", be), xe = {
50
50
  id: "clinical-note-card",
51
51
  capabilities: [],
52
52
  state: {
@@ -88,12 +88,12 @@ const he = [
88
88
  description: "Sourced from the id prop — addresses a specific note."
89
89
  }
90
90
  }
91
- }, xe = P("ds:w-full ds:text-[color:var(--foreground)]", {
91
+ }, Ne = P("ds:w-full ds:text-[color:var(--foreground)]", {
92
92
  variants: {
93
93
  surface: { flat: "", elevated: "" }
94
94
  },
95
95
  defaultVariants: { surface: "elevated" }
96
- }), Ne = P(
96
+ }), ye = P(
97
97
  [
98
98
  "type-body-sm ds:text-[color:var(--foreground)]",
99
99
  "ds:break-words",
@@ -121,7 +121,7 @@ const he = [
121
121
  },
122
122
  defaultVariants: { truncate: !1 }
123
123
  }
124
- ), ye = [
124
+ ), Ce = [
125
125
  "ds:relative ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
126
126
  "ds:size-7 ds:rounded-[var(--radius-sm)]",
127
127
  'ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""] ds:sm:before:hidden',
@@ -131,7 +131,7 @@ const he = [
131
131
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
132
132
  "ds:transition-[color,background-color] ds:duration-[var(--animation-duration)]",
133
133
  "ds:motion-reduce:transition-none"
134
- ].join(" "), q = [
134
+ ].join(" "), F = [
135
135
  "ds:mt-[var(--spacing-2xs)] ds:inline-flex ds:items-center ds:self-start",
136
136
  "ds:text-[length:var(--font-size-xs)] ds:font-semibold",
137
137
  "ds:underline ds:underline-offset-2 ds:text-[color:var(--primary)] ds:hover:no-underline",
@@ -139,11 +139,11 @@ const he = [
139
139
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
140
140
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
141
141
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
142
- ].join(" "), Ce = P([
143
- q,
142
+ ].join(" "), _e = P([
143
+ F,
144
144
  "ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]"
145
145
  ]);
146
- function R({
146
+ function W({
147
147
  icon: r,
148
148
  pressed: i,
149
149
  label: d,
@@ -158,14 +158,14 @@ function R({
158
158
  "aria-label": d,
159
159
  onClick: u,
160
160
  className: [
161
- ye,
161
+ Ce,
162
162
  i ? t : "ds:text-[color:var(--muted-foreground)] ds:hover:text-[color:var(--foreground)]"
163
163
  ].join(" "),
164
164
  children: r
165
165
  }
166
166
  );
167
167
  }
168
- function $(r) {
168
+ function A(r) {
169
169
  return r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
170
170
  }
171
171
  function L(r) {
@@ -175,17 +175,17 @@ function L(r) {
175
175
  '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'
176
176
  ), i;
177
177
  }
178
- function _e(r) {
178
+ function ke(r) {
179
179
  return r.split(/\n{2,}/).map((d) => {
180
180
  const t = d.split(`
181
181
  `), u = t.every((a) => /^\s*[-*]\s+/.test(a)), n = t.every((a) => /^\s*\d+\.\s+/.test(a));
182
- return u && t.length > 0 ? `<ul>${t.map((l) => l.replace(/^\s*[-*]\s+/, "")).map((l) => `<li>${L($(l))}</li>`).join("")}</ul>` : n && t.length > 0 ? `<ol>${t.map((l) => l.replace(/^\s*\d+\.\s+/, "")).map((l) => `<li>${L($(l))}</li>`).join("")}</ol>` : `<p>${L($(d)).replace(
182
+ return u && t.length > 0 ? `<ul>${t.map((l) => l.replace(/^\s*[-*]\s+/, "")).map((l) => `<li>${L(A(l))}</li>`).join("")}</ul>` : n && t.length > 0 ? `<ol>${t.map((l) => l.replace(/^\s*\d+\.\s+/, "")).map((l) => `<li>${L(A(l))}</li>`).join("")}</ol>` : `<p>${L(A(d)).replace(
183
183
  /\n/g,
184
184
  "<br />"
185
185
  )}</p>`;
186
186
  }).join("");
187
187
  }
188
- const ke = ie(
188
+ const we = te(
189
189
  ({
190
190
  id: r,
191
191
  dateIso: i,
@@ -199,24 +199,25 @@ const ke = ie(
199
199
  contentFormat: _ = "markdown",
200
200
  pinned: o,
201
201
  flagged: c,
202
+ headerActions: H,
202
203
  onTogglePin: h,
203
204
  onToggleFlag: b,
204
205
  truncate: x = !1,
205
- surface: H = "elevated",
206
- "aria-label": F,
207
- className: G,
208
- ...J
209
- }, Q) => {
210
- const { t: s } = ne(), k = I(), w = I(), [g, X] = A(!1), [z, K] = A(!1), [Y, Z] = A(!!n);
211
- Y !== !!n && (Z(!!n), K(!1));
212
- const N = !!n && !z, { ref: T, isOverflowing: ee } = me(
206
+ surface: K = "elevated",
207
+ "aria-label": G,
208
+ className: J,
209
+ ...Q
210
+ }, X) => {
211
+ const { t: s } = le(), k = V(), w = V(), [g, Y] = $(!1), [z, M] = $(!1), [Z, T] = $(!!n);
212
+ Z !== !!n && (T(!!n), M(!1));
213
+ const N = !!n && !z, { ref: ee, isOverflowing: ae } = pe(
213
214
  x && !g && !N
214
- ), ae = x && !N && (ee || g), se = te(
215
- () => _ === "html" ? l : _e(l),
215
+ ), se = x && !N && (ae || g), re = ne(
216
+ () => _ === "html" ? l : ke(l),
216
217
  [l, _]
217
- ), M = F ?? s("clinicalNoteCard.regionLabel");
218
- pe(
219
- be,
218
+ ), S = G ?? s("clinicalNoteCard.regionLabel");
219
+ ue(
220
+ xe,
220
221
  {
221
222
  getNoteId: () => r,
222
223
  isPinned: () => !!o,
@@ -225,7 +226,7 @@ const ke = ie(
225
226
  },
226
227
  r
227
228
  );
228
- const y = (f, E, re, j) => j && ce(j) ? /* @__PURE__ */ e(de, { href: j, intent: "default", startIcon: E, children: f }) : /* @__PURE__ */ e(v, { variant: re, size: "sm", leading: E, children: f });
229
+ const y = (f, I, ie, j) => j && me(j) ? /* @__PURE__ */ e(oe, { href: j, intent: "default", startIcon: I, children: f }) : /* @__PURE__ */ e(v, { variant: ie, size: "sm", leading: I, children: f });
229
230
  let m = null;
230
231
  if (a)
231
232
  switch (a.kind) {
@@ -235,7 +236,7 @@ const ke = ie(
235
236
  {
236
237
  variant: "neutral",
237
238
  size: "sm",
238
- leading: /* @__PURE__ */ e(ve, { "aria-hidden": "true" }),
239
+ leading: /* @__PURE__ */ e(ge, { "aria-hidden": "true" }),
239
240
  children: s("clinicalNoteCard.attachment.patient")
240
241
  }
241
242
  );
@@ -245,7 +246,7 @@ const ke = ie(
245
246
  s("clinicalNoteCard.attachment.carePlan", {
246
247
  number: a.number
247
248
  }),
248
- /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
249
+ /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
249
250
  "info",
250
251
  a.url
251
252
  );
@@ -258,7 +259,7 @@ const ke = ie(
258
259
  }) : s("clinicalNoteCard.attachment.carePlanEntry", {
259
260
  care: a.careName
260
261
  }),
261
- /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
262
+ /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
262
263
  "info",
263
264
  a.url
264
265
  );
@@ -266,7 +267,7 @@ const ke = ie(
266
267
  case "phase":
267
268
  m = y(
268
269
  s("clinicalNoteCard.attachment.phase", { label: a.label }),
269
- /* @__PURE__ */ e(fe, { "aria-hidden": "true" }),
270
+ /* @__PURE__ */ e(ve, { "aria-hidden": "true" }),
270
271
  "neutral",
271
272
  a.url
272
273
  );
@@ -276,16 +277,16 @@ const ke = ie(
276
277
  a.label ? s("clinicalNoteCard.attachment.xrayWithLabel", {
277
278
  label: a.label
278
279
  }) : s("clinicalNoteCard.attachment.xray"),
279
- /* @__PURE__ */ e(ue, { "aria-hidden": "true" }),
280
+ /* @__PURE__ */ e(fe, { "aria-hidden": "true" }),
280
281
  "neutral",
281
282
  a.url
282
283
  );
283
284
  break;
284
285
  }
285
- const S = /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
286
+ const E = /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
286
287
  /* @__PURE__ */ p("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
287
288
  t ? /* @__PURE__ */ e(
288
- le,
289
+ de,
289
290
  {
290
291
  name: t.name,
291
292
  src: t.avatarUrl,
@@ -304,30 +305,30 @@ const ke = ie(
304
305
  className: "type-title-item ds:text-[color:var(--foreground)] ds:truncate",
305
306
  children: t.name
306
307
  }
307
- ) : /* @__PURE__ */ e("span", { id: k, className: "ds:sr-only", children: M }),
308
+ ) : /* @__PURE__ */ e("span", { id: k, className: "ds:sr-only", children: S }),
308
309
  u ? /* @__PURE__ */ e("span", { className: "type-meta ds:text-[color:var(--muted-foreground)] ds:break-words", children: s("clinicalNoteCard.operator", { name: u }) }) : null,
309
310
  /* @__PURE__ */ p("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)] ds:empty:hidden", children: [
310
- i ? /* @__PURE__ */ e(D, { value: i, shape: "bare", size: "sm" }) : null,
311
+ i ? /* @__PURE__ */ e(O, { value: i, shape: "bare", size: "sm" }) : null,
311
312
  d && d !== i ? /* @__PURE__ */ p("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: [
312
313
  s("clinicalNoteCard.added"),
313
314
  " ",
314
- /* @__PURE__ */ e(D, { value: d, shape: "bare", size: "sm" })
315
+ /* @__PURE__ */ e(O, { value: d, shape: "bare", size: "sm" })
315
316
  ] }) : null
316
317
  ] })
317
318
  ] }),
318
- n || C || h || b || o || c ? /* @__PURE__ */ p("span", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
319
+ n || C || H || h || b || o || c ? /* @__PURE__ */ p("span", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
319
320
  n ? /* @__PURE__ */ e(v, { variant: "error", size: "sm", children: s("clinicalNoteCard.deleted") }) : null,
320
321
  C ? /* @__PURE__ */ e(v, { variant: "brand", size: "sm", children: s("clinicalNoteCard.clinical") }) : null,
321
322
  h || b || o || c ? /* @__PURE__ */ p("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
322
323
  h ? /* @__PURE__ */ e(
323
- R,
324
+ W,
324
325
  {
325
326
  pressed: !!o,
326
327
  onToggle: h,
327
328
  label: s(o ? "clinicalNoteCard.unpin" : "clinicalNoteCard.pin"),
328
329
  activeClassName: "ds:text-[color:var(--accent)]",
329
330
  icon: /* @__PURE__ */ e(
330
- B,
331
+ R,
331
332
  {
332
333
  "aria-hidden": "true",
333
334
  className: "ds:size-4",
@@ -340,19 +341,19 @@ const ke = ie(
340
341
  {
341
342
  variant: "accent",
342
343
  size: "sm",
343
- leading: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
344
+ leading: /* @__PURE__ */ e(R, { "aria-hidden": "true" }),
344
345
  children: s("clinicalNoteCard.pinned")
345
346
  }
346
347
  ) : null,
347
348
  b ? /* @__PURE__ */ e(
348
- R,
349
+ W,
349
350
  {
350
351
  pressed: !!c,
351
352
  onToggle: b,
352
353
  label: s(c ? "clinicalNoteCard.unflag" : "clinicalNoteCard.flag"),
353
354
  activeClassName: "ds:text-[color:var(--warning-readable)]",
354
355
  icon: /* @__PURE__ */ e(
355
- U,
356
+ B,
356
357
  {
357
358
  "aria-hidden": "true",
358
359
  className: "ds:size-4",
@@ -365,11 +366,12 @@ const ke = ie(
365
366
  {
366
367
  variant: "warning",
367
368
  size: "sm",
368
- leading: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
369
+ leading: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
369
370
  children: s("clinicalNoteCard.flagged")
370
371
  }
371
372
  ) : null
372
- ] }) : null
373
+ ] }) : null,
374
+ H
373
375
  ] }) : null
374
376
  ] }),
375
377
  n ? /* @__PURE__ */ e(
@@ -378,30 +380,30 @@ const ke = ie(
378
380
  type: "button",
379
381
  "aria-expanded": z,
380
382
  "aria-controls": w,
381
- onClick: () => K((f) => !f),
382
- className: Ce(),
383
+ onClick: () => M((f) => !f),
384
+ className: _e(),
383
385
  children: s(z ? "clinicalNoteCard.hideDeleted" : "clinicalNoteCard.showDeleted")
384
386
  }
385
387
  ) : null,
386
388
  /* @__PURE__ */ e(
387
- oe,
389
+ ce,
388
390
  {
389
- ref: T,
391
+ ref: ee,
390
392
  id: x || n ? w : void 0,
391
393
  hidden: N,
392
- html: N ? "" : se,
394
+ html: N ? "" : re,
393
395
  profile: _ === "html" ? "rich-text" : "markdown",
394
- className: Ne({ truncate: x && !g })
396
+ className: ye({ truncate: x && !g })
395
397
  }
396
398
  ),
397
- ae ? /* @__PURE__ */ e(
399
+ se ? /* @__PURE__ */ e(
398
400
  "button",
399
401
  {
400
402
  type: "button",
401
403
  "aria-expanded": g,
402
404
  "aria-controls": w,
403
- onClick: () => X((f) => !f),
404
- className: q,
405
+ onClick: () => Y((f) => !f),
406
+ className: F,
405
407
  children: s(g ? "clinicalNoteCard.readLess" : "clinicalNoteCard.readMore")
406
408
  }
407
409
  ) : null,
@@ -410,9 +412,9 @@ const ke = ie(
410
412
  return /* @__PURE__ */ e(
411
413
  "div",
412
414
  {
413
- ref: Q,
415
+ ref: X,
414
416
  role: "article",
415
- "aria-label": M,
417
+ "aria-label": S,
416
418
  "aria-labelledby": k,
417
419
  "data-component": "clinical-note-card",
418
420
  "data-component-id": r,
@@ -421,16 +423,16 @@ const ke = ie(
421
423
  "data-deleted": n ? "true" : void 0,
422
424
  "data-attached-to": a == null ? void 0 : a.kind,
423
425
  id: r,
424
- className: xe({ surface: H, className: G }),
425
- ...J,
426
- children: H === "elevated" ? /* @__PURE__ */ e(V, { variant: "elevated", children: /* @__PURE__ */ e(V.Body, { children: S }) }) : S
426
+ className: Ne({ surface: K, className: J }),
427
+ ...Q,
428
+ children: K === "elevated" ? /* @__PURE__ */ e(D, { variant: "elevated", children: /* @__PURE__ */ e(D.Body, { children: E }) }) : E
427
429
  }
428
430
  );
429
431
  }
430
432
  );
431
- ke.displayName = "ClinicalNoteCard";
433
+ we.displayName = "ClinicalNoteCard";
432
434
  export {
433
- ke as C,
434
- be as c
435
+ we as C,
436
+ xe as c
435
437
  };
436
- //# sourceMappingURL=clinical-note-card-D2WTV2CO.js.map
438
+ //# sourceMappingURL=clinical-note-card-CTRzmqvv.js.map
@@ -6,10 +6,11 @@ import { B as b } from "./badge-sTusUqZD.js";
6
6
  import { C as T } from "./card-DPmk26CL.js";
7
7
  import { K as fe, a as ue } from "./key-value-pair-BIBdZBLg.js";
8
8
  import { L as d } from "./link-CPb_pZPr.js";
9
- import { B as F, L as H, f as me } from "./format-price-DNqXPa_q.js";
9
+ import { a as me } from "./format-price-BkMEbeW3.js";
10
10
  import { u as he } from "./registry-DvAUVLHh.js";
11
- import { S as _ } from "./stethoscope-sZXGC43m.js";
12
- import { H as z } from "./heart--qCA4ffe.js";
11
+ import { S as F } from "./stethoscope-sZXGC43m.js";
12
+ import { H } from "./heart--qCA4ffe.js";
13
+ import { B as _, L as z } from "./languages-CZqBaPwI.js";
13
14
  import { S as O } from "./shield-check-DCJALLVh.js";
14
15
  import { G as B } from "./globe-sHBW1JN5.js";
15
16
  import { M as E } from "./mail-BqXVF2zH.js";
@@ -194,7 +195,7 @@ const ke = le(
194
195
  };
195
196
  o.push({
196
197
  key: "languages",
197
- icon: /* @__PURE__ */ e(H, { "aria-hidden": "true" }),
198
+ icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
198
199
  label: t("contactProfileCard.label.languages"),
199
200
  value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(b, { variant: "neutral", children: i(l) }, l)) })
200
201
  });
@@ -206,18 +207,18 @@ const ke = le(
206
207
  value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(b, { variant: "info", children: i }, i)) })
207
208
  }), R && o.push({
208
209
  key: "firstVisitPrice",
209
- icon: /* @__PURE__ */ e(F, { "aria-hidden": "true" }),
210
+ icon: /* @__PURE__ */ e(_, { "aria-hidden": "true" }),
210
211
  label: t("contactProfileCard.label.firstVisitPrice"),
211
212
  value: /* @__PURE__ */ e(b, { variant: "accentSoft", size: "lg", children: R }),
212
213
  alignValue: "end"
213
214
  }), L && o.push({
214
215
  key: "expertForAnxiousPatients",
215
- icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
216
+ icon: /* @__PURE__ */ e(H, { "aria-hidden": "true" }),
216
217
  label: t("contactProfileCard.label.expertForAnxiousPatients"),
217
218
  value: t("contactProfileCard.value.yesShort")
218
219
  }), x && o.push({
219
220
  key: "profession",
220
- icon: /* @__PURE__ */ e(_, { "aria-hidden": "true" }),
221
+ icon: /* @__PURE__ */ e(F, { "aria-hidden": "true" }),
221
222
  label: t("contactProfileCard.label.profession"),
222
223
  value: x
223
224
  }), he(
@@ -282,7 +283,7 @@ const ke = le(
282
283
  }
283
284
  );
284
285
  ke.displayName = "ContactProfileCard";
285
- const Ge = [
286
+ const Le = [
286
287
  "address",
287
288
  "phone",
288
289
  "whatsapp",
@@ -293,22 +294,22 @@ const Ge = [
293
294
  "firstVisitPrice",
294
295
  "expertForAnxiousPatients",
295
296
  "profession"
296
- ], Le = {
297
+ ], je = {
297
298
  address: G,
298
299
  phone: U,
299
300
  whatsapp: K,
300
301
  email: E,
301
302
  website: B,
302
- languages: H,
303
+ languages: z,
303
304
  insurances: O,
304
- firstVisitPrice: F,
305
- expertForAnxiousPatients: z,
306
- profession: _
305
+ firstVisitPrice: _,
306
+ expertForAnxiousPatients: H,
307
+ profession: F
307
308
  };
308
309
  export {
309
- Le as C,
310
- Ge as a,
310
+ je as C,
311
+ Le as a,
311
312
  ke as b,
312
313
  ge as c
313
314
  };
314
- //# sourceMappingURL=contact-profile-card-BZqi8Hck.js.map
315
+ //# sourceMappingURL=contact-profile-card-DSI9uumA.js.map
@@ -3,7 +3,7 @@ import { useState as _, useCallback as g, useMemo as T, useRef as B, useContext
3
3
  import { useTranslation as po } from "react-i18next";
4
4
  import { I as G } from "./icon-button-DA2CAGHZ.js";
5
5
  import { a as fo } from "./panel-header-D313n_9-.js";
6
- import { T as mo } from "./tool-rail-8Scslq3X.js";
6
+ import { T as mo } from "./tool-rail-ONaV-Nzz.js";
7
7
  import { u as go } from "./use-persistent-state-nZwZAnE9.js";
8
8
  import { S as Ro } from "./star-Bf9L2Uot.js";
9
9
  import { X as vo } from "./x-B5YnXwCz.js";
@@ -334,4 +334,4 @@ export {
334
334
  Ho as d,
335
335
  Ko as u
336
336
  };
337
- //# sourceMappingURL=control-room-rail-iO_BCaq1.js.map
337
+ //# sourceMappingURL=control-room-rail-5MbhjsxN.js.map
@@ -79,9 +79,9 @@ function g(r) {
79
79
  }
80
80
  export {
81
81
  u as C,
82
- A as a,
83
- f as b,
84
- g as c,
82
+ g as a,
83
+ A as b,
84
+ f as c,
85
85
  v as e
86
86
  };
87
- //# sourceMappingURL=entity-card-DmrgYSEX.js.map
87
+ //# sourceMappingURL=entity-card-9_62gY7l.js.map
@@ -0,0 +1,47 @@
1
+ const a = /* @__PURE__ */ new Set([
2
+ "BIF",
3
+ "CLP",
4
+ "DJF",
5
+ "GNF",
6
+ "IDR",
7
+ "JPY",
8
+ "KMF",
9
+ "KRW",
10
+ "MGA",
11
+ "PYG",
12
+ "RWF",
13
+ "UGX",
14
+ "VND",
15
+ "VUV",
16
+ "XAF",
17
+ "XOF",
18
+ "XPF"
19
+ ]);
20
+ function s(e, n, o) {
21
+ const r = n.toUpperCase(), t = a.has(r) ? e : e / 100;
22
+ try {
23
+ return new Intl.NumberFormat(o, {
24
+ style: "currency",
25
+ currency: r
26
+ }).format(t);
27
+ } catch {
28
+ return `${a.has(r) ? String(t) : t.toFixed(2)} ${r}`;
29
+ }
30
+ }
31
+ function u(e, n, o, r = {}) {
32
+ const t = n.toUpperCase(), c = a.has(t) ? e : e / 100;
33
+ try {
34
+ return new Intl.NumberFormat(o, {
35
+ style: "currency",
36
+ currency: t,
37
+ ...r
38
+ }).formatToParts(c);
39
+ } catch {
40
+ return null;
41
+ }
42
+ }
43
+ export {
44
+ s as a,
45
+ u as f
46
+ };
47
+ //# sourceMappingURL=format-price-BkMEbeW3.js.map
@@ -1,61 +1,31 @@
1
- import { c as a } from "./createLucideIcon-DhHxpK9K.js";
1
+ import { c as e } from "./createLucideIcon-DhHxpK9K.js";
2
2
  /**
3
3
  * @license lucide-react v1.22.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
7
  */
8
- const h = [
8
+ const t = [
9
9
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
10
10
  ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
11
11
  ["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
12
- ], k = a("banknote", h);
12
+ ], h = e("banknote", t);
13
13
  /**
14
14
  * @license lucide-react v1.22.0 - ISC
15
15
  *
16
16
  * This source code is licensed under the ISC license.
17
17
  * See the LICENSE file in the root directory of this source tree.
18
18
  */
19
- const s = [
19
+ const a = [
20
20
  ["path", { d: "m5 8 6 6", key: "1wu5hv" }],
21
21
  ["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
22
22
  ["path", { d: "M2 5h12", key: "or177f" }],
23
23
  ["path", { d: "M7 2h1", key: "1t2jsx" }],
24
24
  ["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
25
25
  ["path", { d: "M14 18h6", key: "1m8k6r" }]
26
- ], u = a("languages", s), o = /* @__PURE__ */ new Set([
27
- "BIF",
28
- "CLP",
29
- "DJF",
30
- "GNF",
31
- "IDR",
32
- "JPY",
33
- "KMF",
34
- "KRW",
35
- "MGA",
36
- "PYG",
37
- "RWF",
38
- "UGX",
39
- "VND",
40
- "VUV",
41
- "XAF",
42
- "XOF",
43
- "XPF"
44
- ]);
45
- function m(n, c, r) {
46
- const t = c.toUpperCase(), e = o.has(t) ? n : n / 100;
47
- try {
48
- return new Intl.NumberFormat(r, {
49
- style: "currency",
50
- currency: t
51
- }).format(e);
52
- } catch {
53
- return `${o.has(t) ? String(e) : e.toFixed(2)} ${t}`;
54
- }
55
- }
26
+ ], o = e("languages", a);
56
27
  export {
57
- k as B,
58
- u as L,
59
- m as f
28
+ h as B,
29
+ o as L
60
30
  };
61
- //# sourceMappingURL=format-price-DNqXPa_q.js.map
31
+ //# sourceMappingURL=languages-CZqBaPwI.js.map