@alfadocs/ui-kit 0.31.4 → 0.31.6

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 (101) hide show
  1. package/dist/_chunks/{agenda-card-UJA6Arbs.js → agenda-card-DtGlQde1.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-1fAxNOMz.js → agenda-tray-CXmlwt2K.js} +2 -2
  3. package/dist/_chunks/{badge-CptERaHx.js → badge-B9Cr6iEB.js} +30 -21
  4. package/dist/_chunks/{benefit-card-CLPNpiQE.js → benefit-card-B86DH-PE.js} +14 -10
  5. package/dist/_chunks/{card-DKTMLVrw.js → card-CNri9ssR.js} +43 -37
  6. package/dist/_chunks/{contact-card-DYbp--s-.js → contact-card-Dos7Tley.js} +2 -2
  7. package/dist/_chunks/{editable-currency-cell-renderer-BpicmolK.js → editable-currency-cell-renderer-YvTwkFrD.js} +2 -2
  8. package/dist/_chunks/key-value-pair-CYE7NSpM.js +134 -0
  9. package/dist/_chunks/message-circle-C23eicgb.js +20 -0
  10. package/dist/_chunks/operator-hero-BsjE-kJF.js +171 -0
  11. package/dist/_chunks/{patient-search-hFiYbqcl.js → patient-search-CSDru7QW.js} +2 -2
  12. package/dist/_chunks/practice-profile-card-C2_2ZH_G.js +297 -0
  13. package/dist/_chunks/{practice-results-dOlljaAK.js → practice-results-VqbCUO1b.js} +225 -269
  14. package/dist/_chunks/{reviews-panel-yanuBZs-.js → reviews-panel-Cjys8G8K.js} +2 -2
  15. package/dist/_chunks/shield-check-BhHyReu8.js +52 -0
  16. package/dist/_chunks/{timeline-D0Wo7v_o.js → timeline-BZC7qGdy.js} +2 -2
  17. package/dist/_chunks/{workflow-map-BSvQS3be.js → workflow-map-DfpjDZHK.js} +93 -107
  18. package/dist/agent-catalog.json +55 -1
  19. package/dist/components/agenda-card/index.js +1 -1
  20. package/dist/components/agenda-tray/index.js +1 -1
  21. package/dist/components/badge/badge.d.ts +1 -1
  22. package/dist/components/badge/index.js +1 -1
  23. package/dist/components/benefit-card/index.js +1 -1
  24. package/dist/components/card/index.js +1 -1
  25. package/dist/components/contact-card/index.js +1 -1
  26. package/dist/components/data-table/index.js +1 -1
  27. package/dist/components/index.d.ts +2 -0
  28. package/dist/components/key-value-pair/index.d.ts +2 -2
  29. package/dist/components/key-value-pair/index.js +3 -2
  30. package/dist/components/key-value-pair/key-value-pair.d.ts +10 -0
  31. package/dist/components/operator-hero/index.d.ts +4 -0
  32. package/dist/components/operator-hero/index.js +6 -0
  33. package/dist/components/operator-hero/operator-hero.agent.d.ts +4 -0
  34. package/dist/components/operator-hero/operator-hero.d.ts +64 -0
  35. package/dist/components/patient-search/index.js +1 -1
  36. package/dist/components/practice-profile-card/index.d.ts +4 -0
  37. package/dist/components/practice-profile-card/index.js +8 -0
  38. package/dist/components/practice-profile-card/practice-profile-card.agent.d.ts +4 -0
  39. package/dist/components/practice-profile-card/practice-profile-card.d.ts +115 -0
  40. package/dist/components/practice-results/index.js +1 -1
  41. package/dist/components/reviews-panel/index.js +1 -1
  42. package/dist/components/timeline/index.js +1 -1
  43. package/dist/components/workflow/index.js +1 -1
  44. package/dist/i18n/locales/ar.d.ts +23 -0
  45. package/dist/i18n/locales/ar.js +23 -0
  46. package/dist/i18n/locales/de.d.ts +23 -0
  47. package/dist/i18n/locales/de.js +23 -0
  48. package/dist/i18n/locales/el.d.ts +23 -0
  49. package/dist/i18n/locales/el.js +23 -0
  50. package/dist/i18n/locales/en.d.ts +23 -0
  51. package/dist/i18n/locales/en.js +23 -0
  52. package/dist/i18n/locales/es.d.ts +23 -0
  53. package/dist/i18n/locales/es.js +23 -0
  54. package/dist/i18n/locales/fr.d.ts +23 -0
  55. package/dist/i18n/locales/fr.js +23 -0
  56. package/dist/i18n/locales/hi.d.ts +23 -0
  57. package/dist/i18n/locales/hi.js +23 -0
  58. package/dist/i18n/locales/it.d.ts +23 -0
  59. package/dist/i18n/locales/it.js +23 -0
  60. package/dist/i18n/locales/ja.d.ts +23 -0
  61. package/dist/i18n/locales/ja.js +23 -0
  62. package/dist/i18n/locales/nl.d.ts +23 -0
  63. package/dist/i18n/locales/nl.js +23 -0
  64. package/dist/i18n/locales/pl.d.ts +23 -0
  65. package/dist/i18n/locales/pl.js +23 -0
  66. package/dist/i18n/locales/pt.d.ts +23 -0
  67. package/dist/i18n/locales/pt.js +23 -0
  68. package/dist/i18n/locales/ro.d.ts +23 -0
  69. package/dist/i18n/locales/ro.js +23 -0
  70. package/dist/i18n/locales/ru.d.ts +23 -0
  71. package/dist/i18n/locales/ru.js +23 -0
  72. package/dist/i18n/locales/sq.d.ts +23 -0
  73. package/dist/i18n/locales/sq.js +23 -0
  74. package/dist/i18n/locales/sv.d.ts +23 -0
  75. package/dist/i18n/locales/sv.js +23 -0
  76. package/dist/i18n/locales/tr.d.ts +23 -0
  77. package/dist/i18n/locales/tr.js +23 -0
  78. package/dist/i18n/locales/zh.d.ts +23 -0
  79. package/dist/i18n/locales/zh.js +23 -0
  80. package/dist/index.js +400 -391
  81. package/dist/locales/ar.json +23 -0
  82. package/dist/locales/de.json +23 -0
  83. package/dist/locales/el.json +23 -0
  84. package/dist/locales/en.json +23 -0
  85. package/dist/locales/es.json +23 -0
  86. package/dist/locales/fr.json +23 -0
  87. package/dist/locales/hi.json +23 -0
  88. package/dist/locales/it.json +23 -0
  89. package/dist/locales/ja.json +23 -0
  90. package/dist/locales/nl.json +23 -0
  91. package/dist/locales/pl.json +23 -0
  92. package/dist/locales/pt.json +23 -0
  93. package/dist/locales/ro.json +23 -0
  94. package/dist/locales/ru.json +23 -0
  95. package/dist/locales/sq.json +23 -0
  96. package/dist/locales/sv.json +23 -0
  97. package/dist/locales/tr.json +23 -0
  98. package/dist/locales/zh.json +23 -0
  99. package/dist/tokens.css +1 -1
  100. package/package.json +9 -1
  101. package/dist/_chunks/key-value-pair-C8DaR3Xs.js +0 -98
@@ -4,7 +4,7 @@ import { c as K } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as E } from "react-i18next";
5
5
  import { u as W } from "./registry-nPAVE19X.js";
6
6
  import { R as N } from "./rating-BRD7O74e.js";
7
- import { C as A } from "./card-DKTMLVrw.js";
7
+ import { C as A } from "./card-CNri9ssR.js";
8
8
  import { C as X, b as Y, a as Z } from "./collapsible-CERONory.js";
9
9
  import { D as l } from "./description-list-BEbK2g93.js";
10
10
  import { E as ee } from "./empty-state-BLy7tigq.js";
@@ -530,4 +530,4 @@ export {
530
530
  oe as R,
531
531
  re as r
532
532
  };
533
- //# sourceMappingURL=reviews-panel-yanuBZs-.js.map
533
+ //# sourceMappingURL=reviews-panel-Cjys8G8K.js.map
@@ -0,0 +1,52 @@
1
+ import { c as a } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.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
+ [
10
+ "path",
11
+ {
12
+ d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",
13
+ key: "mvr1a0"
14
+ }
15
+ ]
16
+ ], d = a("heart", e);
17
+ /**
18
+ * @license lucide-react v1.8.0 - ISC
19
+ *
20
+ * This source code is licensed under the ISC license.
21
+ * See the LICENSE file in the root directory of this source tree.
22
+ */
23
+ const t = [
24
+ ["path", { d: "m5 8 6 6", key: "1wu5hv" }],
25
+ ["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
26
+ ["path", { d: "M2 5h12", key: "or177f" }],
27
+ ["path", { d: "M7 2h1", key: "1t2jsx" }],
28
+ ["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
29
+ ["path", { d: "M14 18h6", key: "1m8k6r" }]
30
+ ], h = a("languages", t);
31
+ /**
32
+ * @license lucide-react v1.8.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */
37
+ const c = [
38
+ [
39
+ "path",
40
+ {
41
+ d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
42
+ key: "oel41y"
43
+ }
44
+ ],
45
+ ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
46
+ ], n = a("shield-check", c);
47
+ export {
48
+ d as H,
49
+ h as L,
50
+ n as S
51
+ };
52
+ //# sourceMappingURL=shield-check-BhHyReu8.js.map
@@ -3,7 +3,7 @@ import { forwardRef as m, useMemo as p, useRef as w, useState as V, useCallback
3
3
  import { c as b } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as A } from "react-i18next";
5
5
  import { A as P } from "./avatar-BNQNhoyL.js";
6
- import { C as N } from "./card-DKTMLVrw.js";
6
+ import { C as N } from "./card-CNri9ssR.js";
7
7
  import { T as B } from "./timestamp-BV2lC-wV.js";
8
8
  import { u as H } from "./registry-nPAVE19X.js";
9
9
  import { C as q } from "./circle-BkqTgYmt.js";
@@ -283,4 +283,4 @@ export {
283
283
  le as T,
284
284
  K as t
285
285
  };
286
- //# sourceMappingURL=timeline-D0Wo7v_o.js.map
286
+ //# sourceMappingURL=timeline-BZC7qGdy.js.map
@@ -1,10 +1,10 @@
1
1
  import { jsx as t, jsxs as u, Fragment as ve } from "react/jsx-runtime";
2
- import { forwardRef as O, useMemo as R, useRef as j, useCallback as W, useState as ge, useImperativeHandle as ke, useEffect as ye } from "react";
2
+ import { forwardRef as O, useMemo as W, useRef as j, useCallback as $, useState as ge, useImperativeHandle as ke, useEffect as ye } from "react";
3
3
  import { c as L } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as z } from "react-i18next";
5
- import { C } from "./card-DKTMLVrw.js";
6
- import { B as be } from "./badge-CptERaHx.js";
7
- import { K as Z } from "./key-value-pair-C8DaR3Xs.js";
5
+ import { C } from "./card-CNri9ssR.js";
6
+ import { B as be } from "./badge-B9Cr6iEB.js";
7
+ import { a as Z } from "./key-value-pair-CYE7NSpM.js";
8
8
  import { T as xe } from "./timestamp-BV2lC-wV.js";
9
9
  import { I as S } from "./icon-button-CKEOrN37.js";
10
10
  import { c as _ } from "./createLucideIcon-CrFbzy84.js";
@@ -16,9 +16,10 @@ import { D as N } from "./dropdown-menu-BC5ZdOMo.js";
16
16
  import { E } from "./empty-state-BLy7tigq.js";
17
17
  import { P as ae } from "./plus-CYKNmfuA.js";
18
18
  import { G as ne } from "./globe-BkEFMNSg.js";
19
- import { S as de } from "./square-check-big-Jr-0202D.js";
20
- import { M as ie } from "./mail-C8irm52s.js";
21
- import { C as le } from "./clock-21AGPWJ5.js";
19
+ import { M as de } from "./message-circle-C23eicgb.js";
20
+ import { S as ie } from "./square-check-big-Jr-0202D.js";
21
+ import { M as le } from "./mail-C8irm52s.js";
22
+ import { C as ce } from "./clock-21AGPWJ5.js";
22
23
  import { C as Me } from "./chevron-up-zOEDrmBB.js";
23
24
  import { C as Se } from "./chevron-down-BX_NP2Yh.js";
24
25
  import { C as ze } from "./check-DPdL_Sm7.js";
@@ -69,21 +70,6 @@ const Ee = [
69
70
  * See the LICENSE file in the root directory of this source tree.
70
71
  */
71
72
  const De = [
72
- [
73
- "path",
74
- {
75
- d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
76
- key: "1sd12s"
77
- }
78
- ]
79
- ], ce = _("message-circle", De);
80
- /**
81
- * @license lucide-react v1.8.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */
86
- const Ke = [
87
73
  [
88
74
  "path",
89
75
  {
@@ -92,29 +78,29 @@ const Ke = [
92
78
  }
93
79
  ],
94
80
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
95
- ], U = _("pencil", Ke);
81
+ ], U = _("pencil", De);
96
82
  /**
97
83
  * @license lucide-react v1.8.0 - ISC
98
84
  *
99
85
  * This source code is licensed under the ISC license.
100
86
  * See the LICENSE file in the root directory of this source tree.
101
87
  */
102
- const Be = [
88
+ const Ke = [
103
89
  ["path", { d: "M18.36 6.64A9 9 0 0 1 20.77 15", key: "dxknvb" }],
104
90
  ["path", { d: "M6.16 6.16a9 9 0 1 0 12.68 12.68", key: "1x7qb5" }],
105
91
  ["path", { d: "M12 2v4", key: "3427ic" }],
106
92
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
107
- ], qe = _("power-off", Be);
93
+ ], Be = _("power-off", Ke);
108
94
  /**
109
95
  * @license lucide-react v1.8.0 - ISC
110
96
  *
111
97
  * This source code is licensed under the ISC license.
112
98
  * See the LICENSE file in the root directory of this source tree.
113
99
  */
114
- const Pe = [
100
+ const qe = [
115
101
  ["path", { d: "M12 2v10", key: "mnfbl" }],
116
102
  ["path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04", key: "obofu9" }]
117
- ], $e = _("power", Pe);
103
+ ], Pe = _("power", qe);
118
104
  /**
119
105
  * @license lucide-react v1.8.0 - ISC
120
106
  *
@@ -144,7 +130,7 @@ const We = [
144
130
  * This source code is licensed under the ISC license.
145
131
  * See the LICENSE file in the root directory of this source tree.
146
132
  */
147
- const Fe = [
133
+ const $e = [
148
134
  ["path", { d: "M10 15H6a4 4 0 0 0-4 4v2", key: "1nfge6" }],
149
135
  ["path", { d: "m14.305 16.53.923-.382", key: "1itpsq" }],
150
136
  ["path", { d: "m15.228 13.852-.923-.383", key: "eplpkm" }],
@@ -156,7 +142,7 @@ const Fe = [
156
142
  ["path", { d: "m20.772 16.148.924.383", key: "1g6xey" }],
157
143
  ["circle", { cx: "18", cy: "15", r: "3", key: "gjjjvw" }],
158
144
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
159
- ], me = _("user-cog", Fe), Ve = L("ds:relative ds:w-full", {
145
+ ], me = _("user-cog", $e), Fe = L("ds:relative ds:w-full", {
160
146
  variants: {
161
147
  density: {
162
148
  comfortable: "",
@@ -167,7 +153,7 @@ const Fe = [
167
153
  density: "comfortable"
168
154
  }
169
155
  });
170
- function He(e) {
156
+ function Ve(e) {
171
157
  switch (e) {
172
158
  case "active":
173
159
  return {
@@ -187,7 +173,7 @@ function He(e) {
187
173
  };
188
174
  }
189
175
  }
190
- const Oe = O(
176
+ const He = O(
191
177
  function({
192
178
  workflow: s,
193
179
  density: r = "comfortable",
@@ -197,7 +183,7 @@ const Oe = O(
197
183
  onToggleActive: a,
198
184
  className: p
199
185
  }, m) {
200
- const { t: c } = z(), d = He(s.status), l = s.status === "active", v = r === "compact", h = (w) => (y) => {
186
+ const { t: c } = z(), d = Ve(s.status), l = s.status === "active", v = r === "compact", h = (w) => (y) => {
201
187
  y.stopPropagation(), w == null || w();
202
188
  }, b = /* @__PURE__ */ t(
203
189
  be,
@@ -213,7 +199,7 @@ const Oe = O(
213
199
  {
214
200
  ref: m,
215
201
  variant: "default",
216
- className: Ve({ density: r, className: p }),
202
+ className: Fe({ density: r, className: p }),
217
203
  "data-component": "workflow-card",
218
204
  "data-component-id": s.id,
219
205
  children: [
@@ -292,7 +278,7 @@ const Oe = O(
292
278
  a && /* @__PURE__ */ t(
293
279
  S,
294
280
  {
295
- icon: l ? /* @__PURE__ */ t(qe, {}) : /* @__PURE__ */ t($e, {}),
281
+ icon: l ? /* @__PURE__ */ t(Be, {}) : /* @__PURE__ */ t(Pe, {}),
296
282
  size: "sm",
297
283
  intent: "ghost",
298
284
  "aria-label": c(
@@ -318,8 +304,8 @@ const Oe = O(
318
304
  );
319
305
  }
320
306
  );
321
- Oe.displayName = "WorkflowCard";
322
- const Rt = {
307
+ He.displayName = "WorkflowCard";
308
+ const Wt = {
323
309
  id: "workflow-card",
324
310
  capabilities: ["navigate"],
325
311
  state: {},
@@ -336,7 +322,7 @@ const Rt = {
336
322
  description: "Sourced from the id prop."
337
323
  }
338
324
  }
339
- }, Wt = {
325
+ }, $t = {
340
326
  id: "workflow-map",
341
327
  capabilities: ["navigate"],
342
328
  state: {},
@@ -357,7 +343,7 @@ const Rt = {
357
343
  description: "Stable opaque workflow node id emitted on each step."
358
344
  }
359
345
  }
360
- }, Ue = {
346
+ }, Oe = {
361
347
  id: "workflow-editor",
362
348
  capabilities: ["navigate", "expand"],
363
349
  state: {
@@ -466,7 +452,7 @@ function ee(e, s) {
466
452
  edges: n
467
453
  };
468
454
  }
469
- function Ge(e, s, r) {
455
+ function Ue(e, s, r) {
470
456
  var h;
471
457
  const o = G(e), i = o.findIndex((b) => b.id === s);
472
458
  if (i === -1) return e;
@@ -477,7 +463,7 @@ function Ge(e, s, r) {
477
463
  const m = ee(ee(e, a.id), p.id), c = r === "up" ? a : p, d = r === "up" ? p : a, l = ((h = o[Math.min(i, n) - 1]) == null ? void 0 : h.id) ?? null, v = H(m, l, c);
478
464
  return H(v, c.id, d);
479
465
  }
480
- const Ye = /* @__PURE__ */ new Set([
466
+ const Ge = /* @__PURE__ */ new Set([
481
467
  "dateOfBirth",
482
468
  "date_of_birth",
483
469
  "firstName",
@@ -497,8 +483,8 @@ const Ye = /* @__PURE__ */ new Set([
497
483
  "address",
498
484
  "id"
499
485
  ]);
500
- function Je(e) {
501
- return Ye.has(e);
486
+ function Ye(e) {
487
+ return Ge.has(e);
502
488
  }
503
489
  const D = {
504
490
  add_delay: {
@@ -529,12 +515,12 @@ const D = {
529
515
  labelKey: "workflow.action.webhook",
530
516
  iconName: "Globe"
531
517
  }
532
- }, Qe = {
533
- Clock: le,
534
- Mail: ie,
518
+ }, Je = {
519
+ Clock: ce,
520
+ Mail: le,
535
521
  Smartphone: ue,
536
- CheckSquare: de,
537
- MessageCircle: ce,
522
+ CheckSquare: ie,
523
+ MessageCircle: de,
538
524
  UserCog: me,
539
525
  Globe: ne
540
526
  };
@@ -542,14 +528,14 @@ function Y({
542
528
  iconName: e,
543
529
  className: s
544
530
  }) {
545
- const r = Qe[e];
531
+ const r = Je[e];
546
532
  return /* @__PURE__ */ t(r, { "aria-hidden": "true", className: s ?? "ds:size-4" });
547
533
  }
548
- const Xe = 40, Ze = 60;
534
+ const Qe = 40, Xe = 60;
549
535
  function te(e, s) {
550
536
  return e.length <= s ? e : `${e.slice(0, s - 1)}…`;
551
537
  }
552
- function et(e, s) {
538
+ function Ze(e, s) {
553
539
  switch (e.kind) {
554
540
  case "add_delay": {
555
541
  const r = e.days ?? 0, o = s("workflow.delay.summary", { count: r });
@@ -557,11 +543,11 @@ function et(e, s) {
557
543
  }
558
544
  case "send_email": {
559
545
  const r = e.subject ?? "", i = `${s("workflow.action.sendEmail")}: ${r}`;
560
- return { text: te(i, Xe), full: i };
546
+ return { text: te(i, Qe), full: i };
561
547
  }
562
548
  case "send_sms": {
563
549
  const r = e.body ?? "";
564
- return { text: te(r, Ze), full: r };
550
+ return { text: te(r, Xe), full: r };
565
551
  }
566
552
  case "create_task": {
567
553
  const r = e.title ?? "";
@@ -588,7 +574,7 @@ const se = [
588
574
  "ds:border-inline-start-[var(--border-width-hairline)]",
589
575
  "ds:border-solid",
590
576
  "ds:border-[color:var(--border)]"
591
- ].join(" "), tt = [
577
+ ].join(" "), et = [
592
578
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
593
579
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
594
580
  "ds:rounded-[var(--radius-full)]",
@@ -603,21 +589,21 @@ const se = [
603
589
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
604
590
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
605
591
  "ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
606
- ].join(" "), st = [
592
+ ].join(" "), tt = [
607
593
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
608
594
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
609
595
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
610
596
  "ds:rounded-[var(--radius-lg)]"
611
- ].join(" "), rt = Object.keys(
597
+ ].join(" "), st = Object.keys(
612
598
  D
613
599
  );
614
600
  let re = 0;
615
- function ot() {
601
+ function rt() {
616
602
  re += 1;
617
603
  const e = Math.random().toString(36).slice(2, 8);
618
604
  return `wf-node-${Date.now()}-${re}-${e}`;
619
605
  }
620
- function at(e) {
606
+ function ot(e) {
621
607
  switch (e) {
622
608
  case "add_delay":
623
609
  return { kind: "add_delay", days: 1 };
@@ -640,13 +626,13 @@ function at(e) {
640
626
  return { kind: "webhook", url: "", method: "POST" };
641
627
  }
642
628
  }
643
- function nt(e = 0) {
644
- const s = j(e), r = W((o) => {
629
+ function at(e = 0) {
630
+ const s = j(e), r = $((o) => {
645
631
  s.current = o;
646
632
  }, []);
647
633
  return [s, r];
648
634
  }
649
- function dt({
635
+ function nt({
650
636
  node: e,
651
637
  position: s,
652
638
  total: r,
@@ -656,7 +642,7 @@ function dt({
656
642
  onMove: a,
657
643
  registerRef: p
658
644
  }) {
659
- const { t: m } = z(), c = D[e.type], d = j(null), [l, v] = nt(0), h = W(
645
+ const { t: m } = z(), c = D[e.type], d = j(null), [l, v] = at(0), h = $(
660
646
  (g) => {
661
647
  var q, P;
662
648
  const M = (q = d.current) == null ? void 0 : q.querySelectorAll(
@@ -671,7 +657,7 @@ function dt({
671
657
  g.target === g.currentTarget && (g.key === "ArrowRight" || g.key === "ArrowDown") && (g.preventDefault(), h(0));
672
658
  }, x = (g) => {
673
659
  g.key === "ArrowRight" ? (g.preventDefault(), h(l.current + 1)) : g.key === "ArrowLeft" ? (g.preventDefault(), h(l.current - 1)) : g.key === "Home" ? (g.preventDefault(), h(0)) : g.key === "End" && (g.preventDefault(), h(Number.POSITIVE_INFINITY));
674
- }, w = et(e.settings, m), y = m(c.labelKey), A = s > 0, I = s < r - 1, K = m("workflow.editor.position", {
660
+ }, w = Ze(e.settings, m), y = m(c.labelKey), A = s > 0, I = s < r - 1, K = m("workflow.editor.position", {
675
661
  current: s + 1,
676
662
  total: r
677
663
  }), T = m("workflow.editor.nodeAriaLabel", {
@@ -689,7 +675,7 @@ function dt({
689
675
  onKeyDown: b,
690
676
  "aria-label": T,
691
677
  "data-node-id": e.id,
692
- className: st,
678
+ className: tt,
693
679
  children: /* @__PURE__ */ u(C, { variant: "outlined", children: [
694
680
  /* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
695
681
  /* @__PURE__ */ t(
@@ -775,7 +761,7 @@ function dt({
775
761
  children: w.text
776
762
  }
777
763
  ) }) : null,
778
- e.settings.kind === "update_patient_field" && Je(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(V, { variant: "error", "data-testid": "workflow-editor-invalid-field", children: m("workflow.editor.invalidField") }) }) : null
764
+ e.settings.kind === "update_patient_field" && Ye(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(V, { variant: "error", "data-testid": "workflow-editor-invalid-field", children: m("workflow.editor.invalidField") }) }) : null
779
765
  ] })
780
766
  }
781
767
  )
@@ -796,7 +782,7 @@ function oe({
796
782
  type: "button",
797
783
  disabled: r,
798
784
  "aria-label": o,
799
- className: tt,
785
+ className: et,
800
786
  children: [
801
787
  /* @__PURE__ */ t(ae, { "aria-hidden": "true", className: "ds:size-4" }),
802
788
  i ? null : /* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)]", children: o })
@@ -820,7 +806,7 @@ function oe({
820
806
  ] })
821
807
  ] });
822
808
  }
823
- function it({ criteria: e, onEdit: s, disabled: r }) {
809
+ function dt({ criteria: e, onEdit: s, disabled: r }) {
824
810
  const { t: o } = z(), i = (e == null ? void 0 : e.ruleCount) ?? 0, n = i > 0 ? o("workflow.editor.criteriaCount", { count: i }) : o("workflow.editor.noCriteria");
825
811
  return /* @__PURE__ */ t(C, { variant: "outlined", children: /* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
826
812
  /* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
@@ -840,7 +826,7 @@ function it({ criteria: e, onEdit: s, disabled: r }) {
840
826
  ) : null
841
827
  ] }) }) });
842
828
  }
843
- const lt = O(
829
+ const it = O(
844
830
  function({
845
831
  graph: s,
846
832
  onChange: r,
@@ -852,18 +838,18 @@ const lt = O(
852
838
  onDeleteNode: m,
853
839
  className: c
854
840
  }, d) {
855
- const { t: l } = z(), v = a ?? rt, h = R(() => G(s), [s]), b = j(/* @__PURE__ */ new Map()), x = j(null), w = W(
841
+ const { t: l } = z(), v = a ?? st, h = W(() => G(s), [s]), b = j(/* @__PURE__ */ new Map()), x = j(null), w = $(
856
842
  (f) => {
857
843
  n || r(f);
858
844
  },
859
845
  [n, r]
860
- ), y = W((f, k) => {
846
+ ), y = $((f, k) => {
861
847
  k ? b.current.set(f, k) : b.current.delete(f);
862
848
  }, []), [A, I] = ge(null), K = j(null);
863
849
  K.current = A;
864
850
  const T = j(null);
865
851
  ke(d, () => T.current, []);
866
- const g = R(
852
+ const g = W(
867
853
  () => ({
868
854
  getTotalSteps: () => h.length,
869
855
  getCurrentStep: () => K.current,
@@ -874,7 +860,7 @@ const lt = O(
874
860
  }),
875
861
  [h.length]
876
862
  );
877
- Ce(Ue, g, void 0), ye(() => {
863
+ Ce(Oe, g, void 0), ye(() => {
878
864
  const f = x.current;
879
865
  if (!f) return;
880
866
  const k = b.current.get(f);
@@ -882,21 +868,21 @@ const lt = O(
882
868
  });
883
869
  const M = (f, k) => {
884
870
  if (n) return;
885
- const $ = {
886
- id: ot(),
871
+ const R = {
872
+ id: rt(),
887
873
  type: k,
888
- settings: at(k)
874
+ settings: ot(k)
889
875
  };
890
- x.current = $.id, w(H(s, f, $));
876
+ x.current = R.id, w(H(s, f, R));
891
877
  }, B = (f, k) => {
892
- n || (x.current = f, w(Ge(s, f, k)));
878
+ n || (x.current = f, w(Ue(s, f, k)));
893
879
  }, q = (f) => {
894
880
  n || !p || p(f);
895
881
  }, P = (f) => {
896
882
  n || !m || m(f);
897
883
  }, J = () => n ? /* @__PURE__ */ t(V, { variant: "warning", children: /* @__PURE__ */ t(V.Title, { as: "p", children: l("workflow.editor.activeLock") }) }) : null, Q = () => o || i ? /* @__PURE__ */ u(ve, { children: [
898
884
  /* @__PURE__ */ t(
899
- it,
885
+ dt,
900
886
  {
901
887
  criteria: o,
902
888
  onEdit: i,
@@ -1019,7 +1005,7 @@ const lt = O(
1019
1005
  children: h.map((f, k) => /* @__PURE__ */ u("li", { className: "ds:list-none ds:flex ds:flex-col", children: [
1020
1006
  /* @__PURE__ */ t("span", { "aria-hidden": "true", className: F }),
1021
1007
  /* @__PURE__ */ t(
1022
- dt,
1008
+ nt,
1023
1009
  {
1024
1010
  node: f,
1025
1011
  position: k,
@@ -1038,7 +1024,7 @@ const lt = O(
1038
1024
  availableActions: v,
1039
1025
  disabled: n,
1040
1026
  label: l("workflow.editor.addActionAfter"),
1041
- onSelect: ($) => M(f.id, $)
1027
+ onSelect: (R) => M(f.id, R)
1042
1028
  }
1043
1029
  ) })
1044
1030
  ] }, f.id))
@@ -1049,16 +1035,16 @@ const lt = O(
1049
1035
  );
1050
1036
  }
1051
1037
  );
1052
- lt.displayName = "WorkflowEditor";
1053
- const ct = {
1054
- Clock: le,
1055
- Mail: ie,
1038
+ it.displayName = "WorkflowEditor";
1039
+ const lt = {
1040
+ Clock: ce,
1041
+ Mail: le,
1056
1042
  Smartphone: ue,
1057
- CheckSquare: de,
1058
- MessageCircle: ce,
1043
+ CheckSquare: ie,
1044
+ MessageCircle: de,
1059
1045
  UserCog: me,
1060
1046
  Globe: ne
1061
- }, ut = L(
1047
+ }, ct = L(
1062
1048
  // The map is a list of steps — never a list of meaningful controls.
1063
1049
  // Layout via logical properties only; connectors are sibling spacers
1064
1050
  // styled with border-inline-start / border-block-end (see node/spacer).
@@ -1180,7 +1166,7 @@ const ct = {
1180
1166
  ]
1181
1167
  }
1182
1168
  );
1183
- function ft(e) {
1169
+ function ut(e) {
1184
1170
  switch (e.kind) {
1185
1171
  case "add_delay":
1186
1172
  return typeof e.days == "number" && e.days > 0 ? {
@@ -1209,11 +1195,11 @@ function ft(e) {
1209
1195
  return;
1210
1196
  }
1211
1197
  }
1212
- function mt(e, s) {
1198
+ function ft(e, s) {
1213
1199
  if (e !== void 0)
1214
1200
  return typeof e == "string" ? e : s(e.key, e.options);
1215
1201
  }
1216
- const pt = O(
1202
+ const mt = O(
1217
1203
  function({
1218
1204
  graph: s,
1219
1205
  activeNodeId: r,
@@ -1225,7 +1211,7 @@ const pt = O(
1225
1211
  "aria-label": m,
1226
1212
  ...c
1227
1213
  }, d) {
1228
- const { t: l } = z(), v = R(() => G(s), [s]), h = R(
1214
+ const { t: l } = z(), v = W(() => G(s), [s]), h = W(
1229
1215
  () => r ? v.findIndex((w) => w.id === r) : -1,
1230
1216
  [v, r]
1231
1217
  ), b = m ?? l("workflow.map.label", { count: v.length }), x = (w) => h === -1 ? "neutral" : w === h ? "current" : w < h ? "completed" : "pending";
@@ -1239,11 +1225,11 @@ const pt = O(
1239
1225
  "aria-label": b,
1240
1226
  "data-component": "workflow-map",
1241
1227
  "data-component-id": c.id,
1242
- className: ut({ orientation: n, compact: a, className: p }),
1228
+ className: ct({ orientation: n, compact: a, className: p }),
1243
1229
  ...c,
1244
1230
  children: [
1245
1231
  i ? /* @__PURE__ */ t(
1246
- wt,
1232
+ ht,
1247
1233
  {
1248
1234
  orientation: n,
1249
1235
  compact: a,
@@ -1253,7 +1239,7 @@ const pt = O(
1253
1239
  v.map((w, y) => {
1254
1240
  const A = x(y), I = y === v.length - 1;
1255
1241
  return /* @__PURE__ */ t(
1256
- ht,
1242
+ pt,
1257
1243
  {
1258
1244
  node: w,
1259
1245
  state: A,
@@ -1271,8 +1257,8 @@ const pt = O(
1271
1257
  );
1272
1258
  }
1273
1259
  );
1274
- pt.displayName = "WorkflowMap";
1275
- function ht({
1260
+ mt.displayName = "WorkflowMap";
1261
+ function pt({
1276
1262
  node: e,
1277
1263
  state: s,
1278
1264
  orientation: r,
@@ -1280,7 +1266,7 @@ function ht({
1280
1266
  isLast: i,
1281
1267
  onNodeClick: n
1282
1268
  }) {
1283
- const { t: a } = z(), p = D[e.type], m = ct[p.iconName], c = a(p.labelKey), d = mt(ft(e.settings), a), l = typeof n == "function", v = s === "current", h = s === "completed", b = (y) => {
1269
+ const { t: a } = z(), p = D[e.type], m = lt[p.iconName], c = a(p.labelKey), d = ft(ut(e.settings), a), l = typeof n == "function", v = s === "current", h = s === "completed", b = (y) => {
1284
1270
  l && (y.preventDefault(), n == null || n(e.id));
1285
1271
  }, x = (y) => {
1286
1272
  l && (y.key === "Enter" || y.key === " ") && (y.preventDefault(), n == null || n(e.id));
@@ -1353,7 +1339,7 @@ function ht({
1353
1339
  ] })
1354
1340
  );
1355
1341
  }
1356
- function wt({
1342
+ function ht({
1357
1343
  orientation: e,
1358
1344
  compact: s,
1359
1345
  criteria: r
@@ -1398,18 +1384,18 @@ function wt({
1398
1384
  ] });
1399
1385
  }
1400
1386
  export {
1401
- Ye as C,
1402
- Oe as W,
1403
- lt as a,
1404
- pt as b,
1387
+ Ge as C,
1388
+ He as W,
1389
+ it as a,
1390
+ mt as b,
1405
1391
  H as c,
1406
- Rt as d,
1407
- Ue as e,
1408
- Wt as f,
1409
- Je as i,
1392
+ Wt as d,
1393
+ Oe as e,
1394
+ $t as f,
1395
+ Ye as i,
1410
1396
  G as l,
1411
- Ge as m,
1397
+ Ue as m,
1412
1398
  ee as r,
1413
1399
  D as w
1414
1400
  };
1415
- //# sourceMappingURL=workflow-map-BSvQS3be.js.map
1401
+ //# sourceMappingURL=workflow-map-DfpjDZHK.js.map