@alfadocs/ui-kit 1.13.0 → 1.14.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 (110) hide show
  1. package/dist/_chunks/actions-cell-renderer-yy03OgRL.js +137 -0
  2. package/dist/_chunks/{balance-badge-cell--iQ_gtmi.js → balance-badge-cell-CgkxYO96.js} +7 -6
  3. package/dist/_chunks/{calendar-B4Gnyu1C.js → calendar-CHT9Rm3M.js} +2 -2
  4. package/dist/_chunks/{calendar-event-card-Bjdbik8G.js → calendar-event-card-BjdHZaqz.js} +18 -14
  5. package/dist/_chunks/calendar-plus-BFrIRE4r.js +19 -0
  6. package/dist/_chunks/calendar-workspace-DI49_t6t.js +7429 -0
  7. package/dist/_chunks/clipboard-list-rSzfIYZB.js +25 -0
  8. package/dist/_chunks/{color-picker-oZ6zYks8.js → color-picker-CU303VjY.js} +4 -2
  9. package/dist/_chunks/data-table-DC5rO3Ty.js +1817 -0
  10. package/dist/_chunks/{field-value-DG8zaZvo.js → field-value-D-vkX9uL.js} +120 -140
  11. package/dist/_chunks/{file-manager-UsD8e_AB.js → file-manager-DJMeB3V8.js} +138 -153
  12. package/dist/_chunks/folder-plus-CutOs4DP.js +22 -0
  13. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  14. package/dist/_chunks/{notes-panel-CymneXtl.js → notes-panel-DYAtlq_i.js} +2 -2
  15. package/dist/_chunks/{patient-details-BQaUzPqp.js → patient-details-BfzvFnxQ.js} +73 -92
  16. package/dist/_chunks/{patient-summary-card-CvDxhbBR.js → patient-summary-card-D5Vfa321.js} +2 -2
  17. package/dist/_chunks/{practice-results-D7ygCj_W.js → practice-results-DL_ExLYE.js} +159 -172
  18. package/dist/_chunks/{rich-text-editor-BDfFtK4H.js → rich-text-editor-DtbcA6s1.js} +2 -2
  19. package/dist/_chunks/signature-CpFNpsVK.js +21 -0
  20. package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-CEiPe-vX.js} +19 -34
  21. package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
  22. package/dist/_chunks/{toast.agent-D1tdg6DS.js → toast-YZz2sBzB.js} +160 -212
  23. package/dist/_chunks/toast.agent-DNQ0JYGv.js +56 -0
  24. package/dist/_chunks/{workflow-map-wcw3t6g4.js → workflow-map-dNzJjBWG.js} +103 -112
  25. package/dist/agent-catalog.json +867 -1
  26. package/dist/agent-i18n/en.json +27 -0
  27. package/dist/components/calendar/index.js +1 -1
  28. package/dist/components/calendar-event-card/index.js +1 -1
  29. package/dist/components/color-picker/index.js +1 -1
  30. package/dist/components/data-table/index.js +39 -38
  31. package/dist/components/file-manager/index.js +1 -1
  32. package/dist/components/index.d.ts +1 -0
  33. package/dist/components/notes-panel/index.js +1 -1
  34. package/dist/components/patient-details/index.js +1 -1
  35. package/dist/components/patient-summary-card/index.js +1 -1
  36. package/dist/components/patient-table/index.js +1 -1
  37. package/dist/components/practice-results/index.js +1 -1
  38. package/dist/components/rich-text-editor/index.js +1 -1
  39. package/dist/components/signature-field/index.js +1 -1
  40. package/dist/components/toast/index.js +7 -6
  41. package/dist/components/workflow/index.js +1 -1
  42. package/dist/i18n/locales/ar.d.ts +680 -0
  43. package/dist/i18n/locales/ar.js +680 -0
  44. package/dist/i18n/locales/de.d.ts +680 -0
  45. package/dist/i18n/locales/de.js +680 -0
  46. package/dist/i18n/locales/el.d.ts +680 -0
  47. package/dist/i18n/locales/el.js +680 -0
  48. package/dist/i18n/locales/en.d.ts +680 -0
  49. package/dist/i18n/locales/en.js +680 -0
  50. package/dist/i18n/locales/es.d.ts +680 -0
  51. package/dist/i18n/locales/es.js +680 -0
  52. package/dist/i18n/locales/fr.d.ts +680 -0
  53. package/dist/i18n/locales/fr.js +680 -0
  54. package/dist/i18n/locales/hi.d.ts +680 -0
  55. package/dist/i18n/locales/hi.js +680 -0
  56. package/dist/i18n/locales/it.d.ts +680 -0
  57. package/dist/i18n/locales/it.js +680 -0
  58. package/dist/i18n/locales/ja.d.ts +680 -0
  59. package/dist/i18n/locales/ja.js +680 -0
  60. package/dist/i18n/locales/nl.d.ts +680 -0
  61. package/dist/i18n/locales/nl.js +680 -0
  62. package/dist/i18n/locales/pl.d.ts +680 -0
  63. package/dist/i18n/locales/pl.js +680 -0
  64. package/dist/i18n/locales/pt.d.ts +680 -0
  65. package/dist/i18n/locales/pt.js +680 -0
  66. package/dist/i18n/locales/ro.d.ts +680 -0
  67. package/dist/i18n/locales/ro.js +680 -0
  68. package/dist/i18n/locales/ru.d.ts +680 -0
  69. package/dist/i18n/locales/ru.js +680 -0
  70. package/dist/i18n/locales/sq.d.ts +680 -0
  71. package/dist/i18n/locales/sq.js +680 -0
  72. package/dist/i18n/locales/sv.d.ts +680 -0
  73. package/dist/i18n/locales/sv.js +680 -0
  74. package/dist/i18n/locales/tr.d.ts +680 -0
  75. package/dist/i18n/locales/tr.js +680 -0
  76. package/dist/i18n/locales/zh.d.ts +680 -0
  77. package/dist/i18n/locales/zh.js +680 -0
  78. package/dist/index.js +821 -803
  79. package/dist/locales/ar.json +680 -0
  80. package/dist/locales/de.json +680 -0
  81. package/dist/locales/el.json +680 -0
  82. package/dist/locales/en.json +680 -0
  83. package/dist/locales/es.json +680 -0
  84. package/dist/locales/fr.json +680 -0
  85. package/dist/locales/hi.json +680 -0
  86. package/dist/locales/it.json +680 -0
  87. package/dist/locales/ja.json +680 -0
  88. package/dist/locales/nl.json +680 -0
  89. package/dist/locales/pl.json +680 -0
  90. package/dist/locales/pt.json +680 -0
  91. package/dist/locales/ro.json +680 -0
  92. package/dist/locales/ru.json +680 -0
  93. package/dist/locales/sq.json +680 -0
  94. package/dist/locales/sv.json +680 -0
  95. package/dist/locales/tr.json +680 -0
  96. package/dist/locales/zh.json +680 -0
  97. package/dist/patterns/calendar/calendar-workspace.d.ts +62 -0
  98. package/dist/patterns/calendar/calendar-workspace.model.d.ts +358 -0
  99. package/dist/patterns/calendar/calendar.data.d.ts +122 -0
  100. package/dist/patterns/calendar/calendar.host.d.ts +10 -0
  101. package/dist/patterns/calendar/calendar.journey.d.ts +119 -0
  102. package/dist/patterns/calendar/calendar.model.d.ts +684 -0
  103. package/dist/patterns/calendar/calendar.preferences.d.ts +74 -0
  104. package/dist/patterns/calendar/calendar.sheets.d.ts +398 -0
  105. package/dist/patterns/calendar/calendar.surface.d.ts +77 -0
  106. package/dist/patterns/calendar/calendar.types.d.ts +413 -0
  107. package/dist/patterns/calendar/index.d.ts +13 -0
  108. package/dist/patterns/calendar/index.js +19 -0
  109. package/package.json +5 -1
  110. package/dist/_chunks/actions-cell-renderer-ReurEy5i.js +0 -1945
@@ -0,0 +1,22 @@
1
+ import { c as e } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const a = [
9
+ ["path", { d: "M12 10v6", key: "1bos4e" }],
10
+ ["path", { d: "M9 13h6", key: "1uhe8q" }],
11
+ [
12
+ "path",
13
+ {
14
+ d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
15
+ key: "1kt360"
16
+ }
17
+ ]
18
+ ], t = e("folder-plus", a);
19
+ export {
20
+ t as F
21
+ };
22
+ //# sourceMappingURL=folder-plus-CutOs4DP.js.map
@@ -0,0 +1,26 @@
1
+ import { c as a } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const e = [
9
+ ["path", { d: "M5 22h14", key: "ehvnwv" }],
10
+ ["path", { d: "M5 2h14", key: "pdyrp9" }],
11
+ [
12
+ "path",
13
+ {
14
+ d: "M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",
15
+ key: "1d314k"
16
+ }
17
+ ],
18
+ [
19
+ "path",
20
+ { d: "M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2", key: "1vvvr6" }
21
+ ]
22
+ ], t = a("hourglass", e);
23
+ export {
24
+ t as H
25
+ };
26
+ //# sourceMappingURL=hourglass-BEAzW1wE.js.map
@@ -4,7 +4,7 @@ import { c as fe } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as me } from "react-i18next";
5
5
  import { u as ge } from "./registry-DvAUVLHh.js";
6
6
  import { C as he } from "./clinical-note-card-BBgFd2nB.js";
7
- import { R as ve } from "./rich-text-editor-BDfFtK4H.js";
7
+ import { R as ve } from "./rich-text-editor-DtbcA6s1.js";
8
8
  import { T as be } from "./text-area-Bt3p7Pt0.js";
9
9
  import { B as ye } from "./button-nJaPh_HC.js";
10
10
  import { C as xe } from "./checkbox-BuZ1u__2.js";
@@ -350,4 +350,4 @@ const Me = oe(
350
350
  export {
351
351
  Me as N
352
352
  };
353
- //# sourceMappingURL=notes-panel-CymneXtl.js.map
353
+ //# sourceMappingURL=notes-panel-DYAtlq_i.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as c, Fragment as ae } from "react/jsx-runtime";
2
- import { forwardRef as se, useId as M, useMemo as ie, Fragment as re, useState as v, useCallback as I } from "react";
2
+ import { forwardRef as se, useId as B, useMemo as ie, Fragment as re, useState as v, useCallback as I } from "react";
3
3
  import { c as H } from "./index-D2ZczOXr.js";
4
- import { useTranslation as C } from "react-i18next";
4
+ import { useTranslation as V } from "react-i18next";
5
5
  import { A as ne } from "./avatar-BNQNhoyL.js";
6
6
  import { I as z } from "./icon-button-DA2CAGHZ.js";
7
7
  import { C as F } from "./card-DPmk26CL.js";
@@ -13,42 +13,23 @@ import { F as ue } from "./fiscal-code-input-B_nYMSEM.js";
13
13
  import { N as me } from "./number-input-Cgu2TtA8.js";
14
14
  import { P as fe } from "./panel-header-D313n_9-.js";
15
15
  import { P as ge } from "./phone-input-BsZIoE36.js";
16
- import { S as ye } from "./select-Bi8zril7.js";
17
- import { S as be } from "./switch-OILsBLWo.js";
16
+ import { S as be } from "./select-Bi8zril7.js";
17
+ import { S as ye } from "./switch-OILsBLWo.js";
18
18
  import { T as he } from "./text-area-Bt3p7Pt0.js";
19
19
  import { T as ve } from "./text-input-CUvCb6ST.js";
20
20
  import { C as xe } from "./country-select-DzbPFktV.js";
21
21
  import { P as Ne } from "./province-select-BBc7s7vR.js";
22
- import { P as Ve } from "./postal-code-input-BznBxVxf.js";
23
- import { C as Ce } from "./city-input-DaQc-Hbj.js";
24
- import { u as ke } from "./registry-DvAUVLHh.js";
25
- import { u as we, F as De, r as Pe, a as Te } from "./field-value-DG8zaZvo.js";
26
- import { c as Fe } from "./createLucideIcon-DhHxpK9K.js";
22
+ import { P as Ce } from "./postal-code-input-BznBxVxf.js";
23
+ import { C as Ve } from "./city-input-DaQc-Hbj.js";
24
+ import { u as we } from "./registry-DvAUVLHh.js";
25
+ import { u as ke, F as De, r as Pe, a as Te } from "./field-value-D-vkX9uL.js";
26
+ import { C as Fe } from "./clipboard-list-rSzfIYZB.js";
27
27
  import { L as Ie } from "./lock-ClAFG1gy.js";
28
28
  import { C as $ } from "./check-DrFSN__t.js";
29
29
  import { X as ze } from "./x-B5YnXwCz.js";
30
30
  import { P as Se } from "./pencil-B1sKKyuT.js";
31
31
  import { C as Ee } from "./copy-vRpqqHtY.js";
32
- /**
33
- * @license lucide-react v1.22.0 - ISC
34
- *
35
- * This source code is licensed under the ISC license.
36
- * See the LICENSE file in the root directory of this source tree.
37
- */
38
- const Oe = [
39
- ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
40
- [
41
- "path",
42
- {
43
- d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
44
- key: "116196"
45
- }
46
- ],
47
- ["path", { d: "M12 11h4", key: "1jrz19" }],
48
- ["path", { d: "M12 16h4", key: "n85exb" }],
49
- ["path", { d: "M8 11h.01", key: "1dfujw" }],
50
- ["path", { d: "M8 16h.01", key: "18s6g9" }]
51
- ], je = Fe("clipboard-list", Oe), Ae = {
32
+ const Oe = {
52
33
  id: "patient-details",
53
34
  // `view_change` backs the view-config actions (show/hide + reorder are both
54
35
  // view reconfigurations); `set_value` backs the single-value `update_field`
@@ -167,7 +148,7 @@ const Oe = [
167
148
  density: "compact"
168
149
  }
169
150
  }
170
- ), q = H("ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", {
151
+ ), M = H("ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", {
171
152
  variants: {
172
153
  density: {
173
154
  comfortable: "ds:p-[var(--spacing-md)]",
@@ -177,7 +158,7 @@ const Oe = [
177
158
  defaultVariants: {
178
159
  density: "compact"
179
160
  }
180
- }), Me = se(
161
+ }), Ae = se(
181
162
  function({
182
163
  title: a,
183
164
  sections: n,
@@ -189,47 +170,47 @@ const Oe = [
189
170
  validate: d,
190
171
  visibleFieldOrder: f,
191
172
  defaultVisibleFieldOrder: s,
192
- onVisibleFieldsChange: y,
193
- loading: k = !1,
194
- emptyState: b,
173
+ onVisibleFieldsChange: b,
174
+ loading: w = !1,
175
+ emptyState: y,
195
176
  patientId: m,
196
177
  id: g,
197
- locale: w,
178
+ locale: k,
198
179
  cogLabel: E,
199
180
  panelTitle: O,
200
181
  "aria-label": x,
201
182
  className: D,
202
183
  ...P
203
184
  }, T) {
204
- const { t: N } = C(), h = M(), {
205
- visible: V,
185
+ const { t: N } = V(), h = B(), {
186
+ visible: C,
206
187
  catalogueIds: U,
207
- setOrder: j,
188
+ setOrder: A,
208
189
  toggleField: W,
209
190
  toggleSection: Y,
210
191
  moveFieldOnto: X,
211
192
  reset: G
212
- } = we(n, {
193
+ } = ke(n, {
213
194
  value: f,
214
195
  defaultValue: s,
215
- onChange: y
196
+ onChange: b
216
197
  }), J = ie(
217
198
  () => ({
218
- getVisibleFieldOrder: () => V,
199
+ getVisibleFieldOrder: () => C,
219
200
  getPatientId: () => m,
220
- setVisibleFields: (p) => j(p),
221
- setFieldOrder: (p) => j(p),
222
- updateField: (p, A) => o ? o(p, A) : Promise.reject(
201
+ setVisibleFields: (p) => A(p),
202
+ setFieldOrder: (p) => A(p),
203
+ updateField: (p, j) => o ? o(p, j) : Promise.reject(
223
204
  new Error("PatientDetails: no onFieldSave handler is wired.")
224
205
  )
225
206
  }),
226
- [V, m, j, o]
207
+ [C, m, A, o]
227
208
  );
228
- ke(Ae, J, g);
229
- const _ = O ?? N("patientDetails.regionLabel", {
209
+ we(Oe, J, g);
210
+ const K = O ?? N("patientDetails.regionLabel", {
230
211
  defaultValue: "Patient details"
231
- }), Q = x ?? _, B = (i == null ? void 0 : i.name) ?? (typeof a == "string" ? a : void 0), Z = !!(i != null && i.src || B), ee = U.some((p) => V.includes(p));
232
- if (k)
212
+ }), Q = x ?? K, _ = (i == null ? void 0 : i.name) ?? (typeof a == "string" ? a : void 0), Z = !!(i != null && i.src || _), ee = U.some((p) => C.includes(p));
213
+ if (w)
233
214
  return /* @__PURE__ */ t(
234
215
  "section",
235
216
  {
@@ -241,15 +222,15 @@ const Oe = [
241
222
  "aria-busy": "true",
242
223
  className: L({ className: D }),
243
224
  ...P,
244
- children: /* @__PURE__ */ t("div", { className: q(), children: /* @__PURE__ */ t(Le, {}) })
225
+ children: /* @__PURE__ */ t("div", { className: M(), children: /* @__PURE__ */ t(Re, {}) })
245
226
  }
246
227
  );
247
- const te = n.length === 0 || !ee, K = /* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
228
+ const te = n.length === 0 || !ee, R = /* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
248
229
  Z ? /* @__PURE__ */ t(
249
230
  ne,
250
231
  {
251
232
  size: "md",
252
- name: B,
233
+ name: _,
253
234
  src: i == null ? void 0 : i.src,
254
235
  className: "ds:shrink-0"
255
236
  }
@@ -274,8 +255,8 @@ const Oe = [
274
255
  /* @__PURE__ */ t(
275
256
  fe,
276
257
  {
277
- title: _,
278
- icon: /* @__PURE__ */ t(je, { "aria-hidden": "true" }),
258
+ title: K,
259
+ icon: /* @__PURE__ */ t(Fe, { "aria-hidden": "true" }),
279
260
  headingId: h,
280
261
  sticky: !0,
281
262
  divider: !0,
@@ -283,7 +264,7 @@ const Oe = [
283
264
  De,
284
265
  {
285
266
  sections: n,
286
- visible: V,
267
+ visible: C,
287
268
  onToggleField: W,
288
269
  onToggleSection: Y,
289
270
  onMoveFieldOnto: X,
@@ -293,23 +274,23 @@ const Oe = [
293
274
  )
294
275
  }
295
276
  ),
296
- /* @__PURE__ */ c("div", { className: q(), children: [
297
- u ? /* @__PURE__ */ t(F, { variant: "elevated", children: /* @__PURE__ */ t(F.Body, { children: K }) }) : K,
298
- te ? /* @__PURE__ */ t("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: b ?? N("patientDetails.empty", {
277
+ /* @__PURE__ */ c("div", { className: M(), children: [
278
+ u ? /* @__PURE__ */ t(F, { variant: "elevated", children: /* @__PURE__ */ t(F.Body, { children: R }) }) : R,
279
+ te ? /* @__PURE__ */ t("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: y ?? N("patientDetails.empty", {
299
280
  defaultValue: "No patient selected."
300
- }) }) : Pe(n, V).filter(({ fields: p }) => p.length > 0).map(({ section: p, fields: A }) => {
301
- const R = /* @__PURE__ */ t(
302
- _e,
281
+ }) }) : Pe(n, C).filter(({ fields: p }) => p.length > 0).map(({ section: p, fields: j }) => {
282
+ const q = /* @__PURE__ */ t(
283
+ je,
303
284
  {
304
285
  section: p,
305
- fields: A,
286
+ fields: j,
306
287
  editable: r,
307
288
  onFieldSave: o,
308
289
  validate: d,
309
- locale: w
290
+ locale: k
310
291
  }
311
292
  );
312
- return u ? /* @__PURE__ */ t(F, { variant: "elevated", children: /* @__PURE__ */ t(F.Body, { children: R }) }, p.id) : /* @__PURE__ */ t(re, { children: R }, p.id);
293
+ return u ? /* @__PURE__ */ t(F, { variant: "elevated", children: /* @__PURE__ */ t(F.Body, { children: q }) }, p.id) : /* @__PURE__ */ t(re, { children: q }, p.id);
313
294
  })
314
295
  ] })
315
296
  ]
@@ -317,8 +298,8 @@ const Oe = [
317
298
  );
318
299
  }
319
300
  );
320
- Me.displayName = "PatientDetails";
321
- function _e({
301
+ Ae.displayName = "PatientDetails";
302
+ function je({
322
303
  section: e,
323
304
  fields: a,
324
305
  editable: n,
@@ -326,7 +307,7 @@ function _e({
326
307
  validate: l,
327
308
  locale: u
328
309
  }) {
329
- const { t: r } = C(), o = M(), d = e.collapsible ?? !0, f = a.length === 0 ? /* @__PURE__ */ t("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: r("patientDetails.section.empty", {
310
+ const { t: r } = V(), o = B(), d = e.collapsible ?? !0, f = a.length === 0 ? /* @__PURE__ */ t("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: r("patientDetails.section.empty", {
330
311
  defaultValue: "No fields shown."
331
312
  }) }) : /* @__PURE__ */ t(
332
313
  S,
@@ -395,20 +376,20 @@ function Be({
395
376
  validate: l,
396
377
  locale: u
397
378
  }) {
398
- const { t: r } = C(), o = M(), d = n && !!e.editable && !!i, [f, s] = v(!1), [y, k] = v(e.editValue), [b, m] = v(null), [g, w] = v(!1), E = I(() => {
399
- k(e.editValue), m(null), s(!0);
379
+ const { t: r } = V(), o = B(), d = n && !!e.editable && !!i, [f, s] = v(!1), [b, w] = v(e.editValue), [y, m] = v(null), [g, k] = v(!1), E = I(() => {
380
+ w(e.editValue), m(null), s(!0);
400
381
  }, [e.editValue]), O = I(() => {
401
382
  s(!1), m(null);
402
383
  }, []), x = I(async () => {
403
384
  if (!i) return;
404
- const N = (l == null ? void 0 : l(e.id, y)) ?? null;
385
+ const N = (l == null ? void 0 : l(e.id, b)) ?? null;
405
386
  if (N) {
406
387
  m(N);
407
388
  return;
408
389
  }
409
- w(!0), m(null);
390
+ k(!0), m(null);
410
391
  try {
411
- await i(e.id, y), s(!1);
392
+ await i(e.id, b), s(!1);
412
393
  } catch (h) {
413
394
  m(
414
395
  h instanceof Error && h.message ? h.message : r("patientDetails.edit.saveFailed", {
@@ -416,9 +397,9 @@ function Be({
416
397
  })
417
398
  );
418
399
  } finally {
419
- w(!1);
400
+ k(!1);
420
401
  }
421
- }, [i, l, e.id, y, r]), D = /* @__PURE__ */ c("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
402
+ }, [i, l, e.id, b, r]), D = /* @__PURE__ */ c("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
422
403
  e.label,
423
404
  e.sensitive ? /* @__PURE__ */ t(
424
405
  Ie,
@@ -435,10 +416,10 @@ function Be({
435
416
  Ke,
436
417
  {
437
418
  field: e,
438
- value: y,
439
- onChange: k,
440
- invalid: !!b,
441
- errorId: b ? o : void 0,
419
+ value: b,
420
+ onChange: w,
421
+ invalid: !!y,
422
+ errorId: y ? o : void 0,
442
423
  locale: u,
443
424
  disabled: g
444
425
  }
@@ -468,13 +449,13 @@ function Be({
468
449
  }
469
450
  )
470
451
  ] }),
471
- b ? /* @__PURE__ */ t(
452
+ y ? /* @__PURE__ */ t(
472
453
  "span",
473
454
  {
474
455
  id: o,
475
456
  role: "alert",
476
457
  className: "type-meta ds:text-[color:var(--destructive)]",
477
- children: b
458
+ children: y
478
459
  }
479
460
  ) : null
480
461
  ] }) : /* @__PURE__ */ c("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
@@ -486,7 +467,7 @@ function Be({
486
467
  children: /* @__PURE__ */ t(Te, { field: e })
487
468
  }
488
469
  ),
489
- e.copyable && e.copyText ? /* @__PURE__ */ t(Re, { text: e.copyText, label: e.label }) : null,
470
+ e.copyable && e.copyText ? /* @__PURE__ */ t(_e, { text: e.copyText, label: e.label }) : null,
490
471
  d ? /* @__PURE__ */ t(
491
472
  z,
492
473
  {
@@ -524,7 +505,7 @@ function Ke({
524
505
  locale: u,
525
506
  disabled: r
526
507
  }) {
527
- const { t: o } = C(), d = i ? "error" : "default";
508
+ const { t: o } = V(), d = i ? "error" : "default";
528
509
  switch (e.editType ?? "text") {
529
510
  case "textarea":
530
511
  return /* @__PURE__ */ t(
@@ -543,7 +524,7 @@ function Ke({
543
524
  );
544
525
  case "select":
545
526
  return /* @__PURE__ */ t(
546
- ye,
527
+ be,
547
528
  {
548
529
  size: "sm",
549
530
  options: e.options ?? [],
@@ -558,7 +539,7 @@ function Ke({
558
539
  );
559
540
  case "boolean":
560
541
  return /* @__PURE__ */ t(
561
- be,
542
+ ye,
562
543
  {
563
544
  label: e.label,
564
545
  checked: a === !0,
@@ -675,7 +656,7 @@ function Ke({
675
656
  );
676
657
  case "postalCode":
677
658
  return /* @__PURE__ */ t(
678
- Ve,
659
+ Ce,
679
660
  {
680
661
  size: "sm",
681
662
  country: "it",
@@ -690,7 +671,7 @@ function Ke({
690
671
  );
691
672
  case "city":
692
673
  return /* @__PURE__ */ t(
693
- Ce,
674
+ Ve,
694
675
  {
695
676
  size: "sm",
696
677
  value: typeof a == "string" ? a : "",
@@ -725,11 +706,11 @@ function Ke({
725
706
  );
726
707
  }
727
708
  }
728
- function Re({
709
+ function _e({
729
710
  text: e,
730
711
  label: a
731
712
  }) {
732
- const { t: n } = C(), [i, l] = v(!1), [u, r] = v(""), o = I(async () => {
713
+ const { t: n } = V(), [i, l] = v(!1), [u, r] = v(""), o = I(async () => {
733
714
  try {
734
715
  await navigator.clipboard.writeText(e), l(!0), r(n("keyValuePair.copied", { defaultValue: "Copied" })), setTimeout(() => {
735
716
  l(!1), r("");
@@ -757,7 +738,7 @@ function Re({
757
738
  /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: u })
758
739
  ] });
759
740
  }
760
- function Le() {
741
+ function Re() {
761
742
  return /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
762
743
  /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
763
744
  /* @__PURE__ */ t("span", { className: "ds:size-10 ds:shrink-0 ds:rounded-full ds:bg-[color:var(--muted)]" }),
@@ -773,7 +754,7 @@ function Le() {
773
754
  ] });
774
755
  }
775
756
  export {
776
- Me as P,
777
- Ae as p
757
+ Ae as P,
758
+ Oe as p
778
759
  };
779
- //# sourceMappingURL=patient-details-BQaUzPqp.js.map
760
+ //# sourceMappingURL=patient-details-BfzvFnxQ.js.map
@@ -11,7 +11,7 @@ import { S as N } from "./skeleton-CZbwyJAA.js";
11
11
  import { T as Z } from "./tag-3wgkwwDB.js";
12
12
  import { T as Te } from "./transaction-chip-DJCstquX.js";
13
13
  import { i as ee } from "./is-safe-url-DkETxeHz.js";
14
- import { u as $e, r as we, a as Ee, F as _e, S as ze, A as De, N as Ge } from "./field-value-DG8zaZvo.js";
14
+ import { u as $e, r as we, a as Ee, F as _e, S as ze, A as De, N as Ge } from "./field-value-D-vkX9uL.js";
15
15
  import { u as Ie } from "./registry-DvAUVLHh.js";
16
16
  import { M as Ue } from "./mail-BqXVF2zH.js";
17
17
  import { P as Be } from "./phone-FceYcIFQ.js";
@@ -451,4 +451,4 @@ export {
451
451
  sa as P,
452
452
  Xe as p
453
453
  };
454
- //# sourceMappingURL=patient-summary-card-CvDxhbBR.js.map
454
+ //# sourceMappingURL=patient-summary-card-D5Vfa321.js.map