@alfadocs/ui-kit-debug 1.78.0 → 1.79.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 (199) hide show
  1. package/dist/_chunks/{address-fields-BUPRs3n-.js → address-fields-GnoSkvh6.js} +2 -2
  2. package/dist/_chunks/{address-fields-BUPRs3n-.js.map → address-fields-GnoSkvh6.js.map} +1 -1
  3. package/dist/_chunks/{anamnesis-summary-rows-vNDyE5HW.js → anamnesis-summary-rows-lONg-zja.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-vNDyE5HW.js.map → anamnesis-summary-rows-lONg-zja.js.map} +1 -1
  5. package/dist/_chunks/{bishop-score-CdbU9Nl4.js → bishop-score-C5di6oAV.js} +2 -2
  6. package/dist/_chunks/{bishop-score-CdbU9Nl4.js.map → bishop-score-C5di6oAV.js.map} +1 -1
  7. package/dist/_chunks/{bmi-calculator-DnfiDh4Q.js → bmi-calculator-BIExHBZV.js} +2 -2
  8. package/dist/_chunks/{bmi-calculator-DnfiDh4Q.js.map → bmi-calculator-BIExHBZV.js.map} +1 -1
  9. package/dist/_chunks/{booking-Cz_QjIJe.js → booking-BV2s2J3C.js} +3 -3
  10. package/dist/_chunks/{booking-Cz_QjIJe.js.map → booking-BV2s2J3C.js.map} +1 -1
  11. package/dist/_chunks/{calendar-appointment-editor-dialog-cvUpUjj-.js → calendar-appointment-editor-dialog-DhTTWgXw.js} +3 -3
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-cvUpUjj-.js.map → calendar-appointment-editor-dialog-DhTTWgXw.js.map} +1 -1
  13. package/dist/_chunks/{cycle-calculator-HO3s5InI.js → cycle-calculator-CQkjVSD2.js} +2 -2
  14. package/dist/_chunks/{cycle-calculator-HO3s5InI.js.map → cycle-calculator-CQkjVSD2.js.map} +1 -1
  15. package/dist/_chunks/{due-date-calculator-CDWTSblh.js → due-date-calculator-NjTlmoFK.js} +2 -2
  16. package/dist/_chunks/{due-date-calculator-CDWTSblh.js.map → due-date-calculator-NjTlmoFK.js.map} +1 -1
  17. package/dist/_chunks/{fetal-weight-CrtBFJl-.js → fetal-weight-Brl3n4LN.js} +2 -2
  18. package/dist/_chunks/{fetal-weight-CrtBFJl-.js.map → fetal-weight-Brl3n4LN.js.map} +1 -1
  19. package/dist/_chunks/{forgot-password-form-BSOZVrZG.js → forgot-password-form-BQPvDS7i.js} +2 -2
  20. package/dist/_chunks/{forgot-password-form-BSOZVrZG.js.map → forgot-password-form-BQPvDS7i.js.map} +1 -1
  21. package/dist/_chunks/form-field-CyHfOVKF.js +185 -0
  22. package/dist/_chunks/form-field-CyHfOVKF.js.map +1 -0
  23. package/dist/_chunks/{gestational-age-calculator-CTHeJJdb.js → gestational-age-calculator-Dr9hdDta.js} +2 -2
  24. package/dist/_chunks/{gestational-age-calculator-CTHeJJdb.js.map → gestational-age-calculator-Dr9hdDta.js.map} +1 -1
  25. package/dist/_chunks/{hcg-doubling-BBk-a33g.js → hcg-doubling-K41Wy7LB.js} +2 -2
  26. package/dist/_chunks/{hcg-doubling-BBk-a33g.js.map → hcg-doubling-K41Wy7LB.js.map} +1 -1
  27. package/dist/_chunks/{help-me-write-templates-Ds1FY-WY.js → help-me-write-templates-BJSf24xS.js} +2 -2
  28. package/dist/_chunks/{help-me-write-templates-Ds1FY-WY.js.map → help-me-write-templates-BJSf24xS.js.map} +1 -1
  29. package/dist/_chunks/key-round-DIgsnJSg.js +21 -0
  30. package/dist/_chunks/key-round-DIgsnJSg.js.map +1 -0
  31. package/dist/_chunks/{kit-extensions-sNTZWkoo.js → kit-extensions-a0G4COFH.js} +6 -6
  32. package/dist/_chunks/{kit-extensions-sNTZWkoo.js.map → kit-extensions-a0G4COFH.js.map} +1 -1
  33. package/dist/_chunks/login-dev-card-CvLHj-_N.js +353 -0
  34. package/dist/_chunks/login-dev-card-CvLHj-_N.js.map +1 -0
  35. package/dist/_chunks/{pregnancy-dating-JBAUbM40.js → pregnancy-dating-BHvfDxz4.js} +2 -2
  36. package/dist/_chunks/{pregnancy-dating-JBAUbM40.js.map → pregnancy-dating-BHvfDxz4.js.map} +1 -1
  37. package/dist/_chunks/{pregnancy-weight-gain--Bqv6AWu.js → pregnancy-weight-gain-BeQRxwdP.js} +2 -2
  38. package/dist/_chunks/{pregnancy-weight-gain--Bqv6AWu.js.map → pregnancy-weight-gain-BeQRxwdP.js.map} +1 -1
  39. package/dist/_chunks/{radiograph-panel.agent-DQh2SX8G.js → radiograph-panel.agent-BQ95uFCd.js} +2 -2
  40. package/dist/_chunks/{radiograph-panel.agent-DQh2SX8G.js.map → radiograph-panel.agent-BQ95uFCd.js.map} +1 -1
  41. package/dist/_chunks/registration-form-CNBfUduG.js +1337 -0
  42. package/dist/_chunks/registration-form-CNBfUduG.js.map +1 -0
  43. package/dist/_chunks/reset-password-form-Cf9QPEJu.js +367 -0
  44. package/dist/_chunks/reset-password-form-Cf9QPEJu.js.map +1 -0
  45. package/dist/_chunks/{send-registration-link-form-__DWY62q.js → send-registration-link-form-vTn1HxjA.js} +2 -2
  46. package/dist/_chunks/{send-registration-link-form-__DWY62q.js.map → send-registration-link-form-vTn1HxjA.js.map} +1 -1
  47. package/dist/_chunks/{task-editor-CRhfwP9T.js → task-editor-Cpw-NmND.js} +2 -2
  48. package/dist/_chunks/{task-editor-CRhfwP9T.js.map → task-editor-Cpw-NmND.js.map} +1 -1
  49. package/dist/_chunks/{unit-converter-D59L-gkf.js → unit-converter-BH5ueIhT.js} +2 -2
  50. package/dist/_chunks/{unit-converter-D59L-gkf.js.map → unit-converter-BH5ueIhT.js.map} +1 -1
  51. package/dist/_chunks/{voice-control-panel-DQJwe6_Q.js → voice-control-panel-BziKE-KK.js} +2 -2
  52. package/dist/_chunks/{voice-control-panel-DQJwe6_Q.js.map → voice-control-panel-BziKE-KK.js.map} +1 -1
  53. package/dist/_chunks/{workflow-webhook-action-BvVPZVpG.js → workflow-webhook-action-DulCpCRz.js} +96 -111
  54. package/dist/_chunks/workflow-webhook-action-DulCpCRz.js.map +1 -0
  55. package/dist/agent-catalog.json +89 -3
  56. package/dist/agent-i18n/en.json +11 -2
  57. package/dist/components/address-fields/index.js +1 -1
  58. package/dist/components/bishop-score/index.js +1 -1
  59. package/dist/components/bmi-calculator/index.js +1 -1
  60. package/dist/components/booking/index.js +1 -1
  61. package/dist/components/cycle-calculator/index.js +1 -1
  62. package/dist/components/due-date-calculator/index.js +1 -1
  63. package/dist/components/fetal-weight/index.js +1 -1
  64. package/dist/components/form-field/form-field.d.ts +6 -0
  65. package/dist/components/form-field/form-field.d.ts.map +1 -1
  66. package/dist/components/form-field/index.js +1 -1
  67. package/dist/components/gestational-age-calculator/index.js +1 -1
  68. package/dist/components/hcg-doubling/index.js +1 -1
  69. package/dist/components/index.d.ts +1 -0
  70. package/dist/components/index.d.ts.map +1 -1
  71. package/dist/components/pregnancy-dating/index.js +1 -1
  72. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  73. package/dist/components/radiograph-panel/index.js +1 -1
  74. package/dist/components/rich-text-editor/index.js +1 -1
  75. package/dist/components/task-editor/index.js +1 -1
  76. package/dist/components/unit-converter/index.js +1 -1
  77. package/dist/components/voice-control-panel/index.js +1 -1
  78. package/dist/i18n/locales/ar.d.ts +26 -0
  79. package/dist/i18n/locales/ar.d.ts.map +1 -1
  80. package/dist/i18n/locales/ar.js +27 -1
  81. package/dist/i18n/locales/ar.js.map +1 -1
  82. package/dist/i18n/locales/de.d.ts +26 -0
  83. package/dist/i18n/locales/de.d.ts.map +1 -1
  84. package/dist/i18n/locales/de.js +27 -1
  85. package/dist/i18n/locales/de.js.map +1 -1
  86. package/dist/i18n/locales/el.d.ts +26 -0
  87. package/dist/i18n/locales/el.d.ts.map +1 -1
  88. package/dist/i18n/locales/el.js +27 -1
  89. package/dist/i18n/locales/el.js.map +1 -1
  90. package/dist/i18n/locales/en.d.ts +26 -0
  91. package/dist/i18n/locales/en.d.ts.map +1 -1
  92. package/dist/i18n/locales/en.js +26 -0
  93. package/dist/i18n/locales/en.js.map +1 -1
  94. package/dist/i18n/locales/es.d.ts +26 -0
  95. package/dist/i18n/locales/es.d.ts.map +1 -1
  96. package/dist/i18n/locales/es.js +27 -1
  97. package/dist/i18n/locales/es.js.map +1 -1
  98. package/dist/i18n/locales/fr.d.ts +26 -0
  99. package/dist/i18n/locales/fr.d.ts.map +1 -1
  100. package/dist/i18n/locales/fr.js +27 -1
  101. package/dist/i18n/locales/fr.js.map +1 -1
  102. package/dist/i18n/locales/hi.d.ts +26 -0
  103. package/dist/i18n/locales/hi.d.ts.map +1 -1
  104. package/dist/i18n/locales/hi.js +27 -1
  105. package/dist/i18n/locales/hi.js.map +1 -1
  106. package/dist/i18n/locales/it.d.ts +26 -0
  107. package/dist/i18n/locales/it.d.ts.map +1 -1
  108. package/dist/i18n/locales/it.js +27 -1
  109. package/dist/i18n/locales/it.js.map +1 -1
  110. package/dist/i18n/locales/ja.d.ts +26 -0
  111. package/dist/i18n/locales/ja.d.ts.map +1 -1
  112. package/dist/i18n/locales/ja.js +27 -1
  113. package/dist/i18n/locales/ja.js.map +1 -1
  114. package/dist/i18n/locales/nl.d.ts +26 -0
  115. package/dist/i18n/locales/nl.d.ts.map +1 -1
  116. package/dist/i18n/locales/nl.js +27 -1
  117. package/dist/i18n/locales/nl.js.map +1 -1
  118. package/dist/i18n/locales/pl.d.ts +26 -0
  119. package/dist/i18n/locales/pl.d.ts.map +1 -1
  120. package/dist/i18n/locales/pl.js +27 -1
  121. package/dist/i18n/locales/pl.js.map +1 -1
  122. package/dist/i18n/locales/pt.d.ts +26 -0
  123. package/dist/i18n/locales/pt.d.ts.map +1 -1
  124. package/dist/i18n/locales/pt.js +27 -1
  125. package/dist/i18n/locales/pt.js.map +1 -1
  126. package/dist/i18n/locales/ro.d.ts +26 -0
  127. package/dist/i18n/locales/ro.d.ts.map +1 -1
  128. package/dist/i18n/locales/ro.js +27 -1
  129. package/dist/i18n/locales/ro.js.map +1 -1
  130. package/dist/i18n/locales/ru.d.ts +26 -0
  131. package/dist/i18n/locales/ru.d.ts.map +1 -1
  132. package/dist/i18n/locales/ru.js +27 -1
  133. package/dist/i18n/locales/ru.js.map +1 -1
  134. package/dist/i18n/locales/sq.d.ts +26 -0
  135. package/dist/i18n/locales/sq.d.ts.map +1 -1
  136. package/dist/i18n/locales/sq.js +27 -1
  137. package/dist/i18n/locales/sq.js.map +1 -1
  138. package/dist/i18n/locales/sv.d.ts +26 -0
  139. package/dist/i18n/locales/sv.d.ts.map +1 -1
  140. package/dist/i18n/locales/sv.js +27 -1
  141. package/dist/i18n/locales/sv.js.map +1 -1
  142. package/dist/i18n/locales/tr.d.ts +26 -0
  143. package/dist/i18n/locales/tr.d.ts.map +1 -1
  144. package/dist/i18n/locales/tr.js +27 -1
  145. package/dist/i18n/locales/tr.js.map +1 -1
  146. package/dist/i18n/locales/zh.d.ts +26 -0
  147. package/dist/i18n/locales/zh.d.ts.map +1 -1
  148. package/dist/i18n/locales/zh.js +27 -1
  149. package/dist/i18n/locales/zh.js.map +1 -1
  150. package/dist/index.js +89 -86
  151. package/dist/index.js.map +1 -1
  152. package/dist/locales/ar.json +27 -1
  153. package/dist/locales/de.json +27 -1
  154. package/dist/locales/el.json +27 -1
  155. package/dist/locales/en.json +26 -0
  156. package/dist/locales/es.json +27 -1
  157. package/dist/locales/fr.json +27 -1
  158. package/dist/locales/hi.json +27 -1
  159. package/dist/locales/it.json +27 -1
  160. package/dist/locales/ja.json +27 -1
  161. package/dist/locales/nl.json +27 -1
  162. package/dist/locales/pl.json +27 -1
  163. package/dist/locales/pt.json +27 -1
  164. package/dist/locales/ro.json +27 -1
  165. package/dist/locales/ru.json +27 -1
  166. package/dist/locales/sq.json +27 -1
  167. package/dist/locales/sv.json +27 -1
  168. package/dist/locales/tr.json +27 -1
  169. package/dist/locales/zh.json +27 -1
  170. package/dist/patterns/_shared/password-policy.d.ts +3 -0
  171. package/dist/patterns/_shared/password-policy.d.ts.map +1 -0
  172. package/dist/patterns/anamnesis/index.js +1 -1
  173. package/dist/patterns/calendar/index.js +1 -1
  174. package/dist/patterns/forgot-password-form/index.js +1 -1
  175. package/dist/patterns/help-me-write-templates/index.js +1 -1
  176. package/dist/patterns/login-form/index.js +1 -1
  177. package/dist/patterns/login-form/login-form.d.ts +24 -7
  178. package/dist/patterns/login-form/login-form.d.ts.map +1 -1
  179. package/dist/patterns/registration-form/index.d.ts +1 -1
  180. package/dist/patterns/registration-form/index.d.ts.map +1 -1
  181. package/dist/patterns/registration-form/index.js +1 -1
  182. package/dist/patterns/registration-form/registration-form.d.ts +27 -0
  183. package/dist/patterns/registration-form/registration-form.d.ts.map +1 -1
  184. package/dist/patterns/reset-password-form/index.d.ts +3 -0
  185. package/dist/patterns/reset-password-form/index.d.ts.map +1 -0
  186. package/dist/patterns/reset-password-form/index.js +6 -0
  187. package/dist/patterns/reset-password-form/index.js.map +1 -0
  188. package/dist/patterns/reset-password-form/reset-password-form.d.ts +108 -0
  189. package/dist/patterns/reset-password-form/reset-password-form.d.ts.map +1 -0
  190. package/dist/patterns/send-registration-link-form/index.js +1 -1
  191. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  192. package/package.json +5 -1
  193. package/dist/_chunks/form-field-Ani72sVY.js +0 -176
  194. package/dist/_chunks/form-field-Ani72sVY.js.map +0 -1
  195. package/dist/_chunks/login-dev-card-DRxTPkE9.js +0 -332
  196. package/dist/_chunks/login-dev-card-DRxTPkE9.js.map +0 -1
  197. package/dist/_chunks/registration-form-xORq2s4p.js +0 -1310
  198. package/dist/_chunks/registration-form-xORq2s4p.js.map +0 -1
  199. package/dist/_chunks/workflow-webhook-action-BvVPZVpG.js.map +0 -1
@@ -1,50 +1,35 @@
1
1
  import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as qt, useId as N, useRef as i, useState as u, useEffect as C, useCallback as Ht } from "react";
2
+ import { forwardRef as Ht, useId as N, useRef as i, useState as u, useEffect as C, useCallback as _t } from "react";
3
3
  import { useTranslation as Ye } from "react-i18next";
4
4
  import { c as h } from "./index-D2ZczOXr.js";
5
5
  import { C as Ue } from "./code-block-BTsCXVGI.js";
6
6
  import { A as k } from "./accordion-Ch3xp0mX.js";
7
7
  import { A as U } from "./alert-9kEwDza3.js";
8
- import { B as $t } from "./badge-BUk4RjTS.js";
8
+ import { B as Kt } from "./badge-BUk4RjTS.js";
9
9
  import { B as ue } from "./button-DohK_Ak_.js";
10
- import { I as Kt } from "./icon-button-S8_weU3g.js";
10
+ import { I as $t } from "./icon-button-S8_weU3g.js";
11
11
  import { C as Ge } from "./card-BA4Ig_kn.js";
12
12
  import { C as Xt } from "./checkbox-BjDv-r3o.js";
13
13
  import { F as zt } from "./field-array-CA-gn526.js";
14
- import { F as G } from "./form-field-Ani72sVY.js";
14
+ import { F as G } from "./form-field-CyHfOVKF.js";
15
15
  import { P as Ut } from "./password-input-BokZ_rnT.js";
16
16
  import { T as me } from "./text-input-CaG9ApoE.js";
17
17
  import { T as Gt } from "./token-insert-menu-DtAnBd0x.js";
18
18
  import { u as Qe } from "./use-copy-to-clipboard-Cyfc_dlv.js";
19
19
  import { u as Jt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
20
- import { c as Yt } from "./createLucideIcon-DhHxpK9K.js";
20
+ import { K as Yt } from "./key-round-DIgsnJSg.js";
21
21
  import { C as Ze } from "./check-DrFSN__t.js";
22
22
  import { C as he } from "./circle-alert-rGDZ73Wh.js";
23
23
  import { C as Ve } from "./copy-vRpqqHtY.js";
24
24
  import { S as Qt } from "./send-C5kDJ-Mz.js";
25
- /**
26
- * @license lucide-react v1.22.0 - ISC
27
- *
28
- * This source code is licensed under the ISC license.
29
- * See the LICENSE file in the root directory of this source tree.
30
- */
31
- const Zt = [
32
- [
33
- "path",
34
- {
35
- d: "M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",
36
- key: "1s6t7t"
37
- }
38
- ],
39
- ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
40
- ], Vt = Yt("key-round", Zt), jo = [
25
+ const Mo = [
41
26
  "url",
42
27
  "secret",
43
28
  "legalBasisConfirmed",
44
29
  "parameters"
45
- ], eo = h(
30
+ ], Zt = h(
46
31
  "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-lg)] ds:text-start ds:text-[var(--foreground)]"
47
- ), to = h(
32
+ ), Vt = h(
48
33
  "ds:m-0 ds:grid ds:gap-x-[var(--spacing-xl)] ds:gap-y-[var(--spacing-md)]",
49
34
  {
50
35
  variants: {
@@ -58,17 +43,17 @@ const Zt = [
58
43
  }
59
44
  ), fe = h(
60
45
  "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
61
- ), pe = h("type-title-item ds:text-foreground"), oo = h(
46
+ ), pe = h("type-title-item ds:text-foreground"), eo = h(
62
47
  "ds:min-w-0 ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:font-mono type-body-sm ds:text-foreground ds:[overflow-wrap:anywhere]"
63
- ), x = h("type-body-sm ds:text-muted-foreground"), no = h(
48
+ ), x = h("type-body-sm ds:text-muted-foreground"), to = h(
64
49
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive"
65
- ), ro = h(
50
+ ), oo = h(
66
51
  "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2"
67
- ), so = "https://", ao = 2048, co = 720, ke = {
52
+ ), no = "https://", ro = 2048, so = 720, ke = {
68
53
  salutation: "[[TITOLO]]",
69
54
  firstName: "[[NOME]]",
70
55
  lastName: "[[COGNOME]]"
71
- }, et = "wf12-e345-a67", lo = {
56
+ }, et = "wf12-e345-a67", ao = {
72
57
  sentAt: "2026-10-12T09:00:00+02:00",
73
58
  idempotencyKey: et,
74
59
  practiceId: 1234,
@@ -76,27 +61,27 @@ const Zt = [
76
61
  workflowActionId: 67,
77
62
  workflowEnrollmentId: 345,
78
63
  patientId: 5678
79
- }, io = [
64
+ }, co = [
80
65
  "Content-Type: application/json",
81
66
  `X-AlfaDocs-Idempotency-Key: ${et}`,
82
67
  "X-AlfaDocs-Request-Timestamp: 1791788400000",
83
68
  "X-AlfaDocs-Signature: sha256=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
84
69
  ].join(`
85
- `), tt = (s) => s === null ? "" : String(s), we = (s) => s.original !== void 0 && s.name === s.original.name && s.value === tt(s.original.value), uo = (s) => s.flatMap((a) => a.original !== void 0 && we(a) ? [[a.original.name, a.original.value]] : a.name.trim() === "" ? [] : [[a.name, a.value]]), mo = (s) => s.length === 0 ? "" : `{${s.map(
70
+ `), tt = (s) => s === null ? "" : String(s), we = (s) => s.original !== void 0 && s.name === s.original.name && s.value === tt(s.original.value), lo = (s) => s.flatMap((a) => a.original !== void 0 && we(a) ? [[a.original.name, a.original.value]] : a.name.trim() === "" ? [] : [[a.name, a.value]]), io = (s) => s.length === 0 ? "" : `{${s.map(
86
71
  ([a, w]) => `${JSON.stringify(a)}:${JSON.stringify(w)}`
87
- ).join(",")}}`, fo = () => {
72
+ ).join(",")}}`, uo = () => {
88
73
  const s = new Uint8Array(32);
89
74
  return globalThis.crypto.getRandomValues(s), Array.from(s, (a) => a.toString(16).padStart(2, "0")).join(
90
75
  ""
91
76
  );
92
77
  }, Je = (s) => s != null && s.url ? { kind: "url" } : s != null && s.secret ? { kind: "secret" } : s != null && s.legalBasisConfirmed ? { kind: "legal" } : s != null && s.parameters ? { kind: "parametersError" } : null;
93
- function po({ name: s, description: a, onCopied: w }) {
78
+ function mo({ name: s, description: a, onCopied: w }) {
94
79
  const { t: l } = Ye("ui"), p = N(), { status: L, copy: I } = Qe(), v = L === "copied", D = L === "error";
95
80
  return /* @__PURE__ */ d("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
96
81
  /* @__PURE__ */ d("dt", { className: "ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
97
- /* @__PURE__ */ n("code", { dir: "ltr", className: oo(), children: s }),
82
+ /* @__PURE__ */ n("code", { dir: "ltr", className: eo(), children: s }),
98
83
  /* @__PURE__ */ n(
99
- Kt,
84
+ $t,
100
85
  {
101
86
  icon: v ? /* @__PURE__ */ n(Ze, {}) : D ? /* @__PURE__ */ n(he, {}) : /* @__PURE__ */ n(Ve, {}),
102
87
  size: "sm",
@@ -120,7 +105,7 @@ function po({ name: s, description: a, onCopied: w }) {
120
105
  )
121
106
  ] });
122
107
  }
123
- const ko = qt(
108
+ const fo = Ht(
124
109
  ({
125
110
  children: s,
126
111
  initialValues: a,
@@ -169,9 +154,9 @@ const ko = qt(
169
154
  value: ke.lastName,
170
155
  label: o("workflowWebhookAction.variableLastName")
171
156
  }
172
- ], M = i(0), at = () => (M.current += 1, `parameter-${M.current}`), [y, ct] = u(() => (a == null ? void 0 : a.url) ?? ""), [f, We] = u(""), [lt, Ce] = u(!1), [b, J] = u(
173
- () => Object.entries((a == null ? void 0 : a.parameters) ?? {}).map(([e, t]) => (M.current += 1, {
174
- key: `parameter-${M.current}`,
157
+ ], P = i(0), at = () => (P.current += 1, `parameter-${P.current}`), [y, ct] = u(() => (a == null ? void 0 : a.url) ?? ""), [f, We] = u(""), [lt, Ce] = u(!1), [b, J] = u(
158
+ () => Object.entries((a == null ? void 0 : a.parameters) ?? {}).map(([e, t]) => (P.current += 1, {
159
+ key: `parameter-${P.current}`,
175
160
  name: e,
176
161
  value: tt(t),
177
162
  original: { name: e, value: t }
@@ -190,26 +175,26 @@ const ko = qt(
190
175
  (t) => t[e] ? t : { ...t, [e]: !0 }
191
176
  ), A = (e) => xe(
192
177
  (t) => t[e] ? { ...t, [e]: void 0 } : t
193
- ), P = i(null), Ee = i(null), _ = i(null), Re = i(null), Oe = i(null), Te = i(null), Be = i(null), Z = i(/* @__PURE__ */ new Map()), j = i(/* @__PURE__ */ new Map()), V = i(/* @__PURE__ */ new Set()), ee = i(null);
178
+ ), M = i(null), Ee = i(null), j = i(null), Re = i(null), Oe = i(null), Te = i(null), Be = i(null), Z = i(/* @__PURE__ */ new Map()), q = i(/* @__PURE__ */ new Map()), V = i(/* @__PURE__ */ new Set()), ee = i(null);
194
179
  C(() => {
195
180
  var t;
196
181
  const e = ee.current;
197
- e && (ee.current = null, (t = j.current.get(e.key)) == null || t.setSelectionRange(e.position, e.position));
182
+ e && (ee.current = null, (t = q.current.get(e.key)) == null || t.setSelectionRange(e.position, e.position));
198
183
  });
199
184
  const [gt, vt] = u(!1);
200
185
  Jt(() => {
201
- const e = P.current;
186
+ const e = M.current;
202
187
  if (!e) return;
203
188
  const t = () => vt(
204
- e.getBoundingClientRect().width >= co
189
+ e.getBoundingClientRect().width >= so
205
190
  );
206
191
  if (t(), typeof ResizeObserver > "u") return;
207
192
  const r = new ResizeObserver(t);
208
193
  return r.observe(e), () => r.disconnect();
209
194
  }, []);
210
- const te = D === "two-column" && gt, yt = Ht(
195
+ const te = D === "two-column" && gt, yt = _t(
211
196
  (e) => {
212
- P.current = e, typeof E == "function" ? E(e) : E && (E.current = e);
197
+ M.current = e, typeof E == "function" ? E(e) : E && (E.current = e);
213
198
  },
214
199
  [E]
215
200
  ), F = (e) => {
@@ -233,7 +218,7 @@ const ko = qt(
233
218
  } catch {
234
219
  return o("workflowWebhookAction.urlInvalid");
235
220
  }
236
- if (!e.startsWith(so)) return o("workflowWebhookAction.urlHttps");
221
+ if (!e.startsWith(no)) return o("workflowWebhookAction.urlHttps");
237
222
  if (t.hostname === "") return o("workflowWebhookAction.urlInvalid");
238
223
  if (t.username !== "" || t.password !== "")
239
224
  return o("workflowWebhookAction.urlCredentials");
@@ -258,7 +243,7 @@ const ko = qt(
258
243
  );
259
244
  }
260
245
  return e;
261
- }, Fe = () => O ? void 0 : o("workflowWebhookAction.legalBasisRequired"), re = (e) => Q || ut[e] === !0, Se = At(), Wt = T.url ?? (re("url") ? oe() : void 0), Ct = T.secret ?? (re("secret") ? ne() : void 0), q = T.legalBasisConfirmed ?? (Q ? Fe() : void 0), xt = (e) => re(`parameter:${e}`) ? Se.get(e) : void 0, H = !Q && !wt && !kt, Le = () => {
246
+ }, Fe = () => O ? void 0 : o("workflowWebhookAction.legalBasisRequired"), re = (e) => Q || ut[e] === !0, Se = At(), Wt = T.url ?? (re("url") ? oe() : void 0), Ct = T.secret ?? (re("secret") ? ne() : void 0), H = T.legalBasisConfirmed ?? (Q ? Fe() : void 0), xt = (e) => re(`parameter:${e}`) ? Se.get(e) : void 0, _ = !Q && !wt && !kt, Le = () => {
262
247
  if (oe()) return { kind: "url" };
263
248
  if (ne()) return { kind: "secret" };
264
249
  if (Fe()) return { kind: "legal" };
@@ -266,18 +251,18 @@ const ko = qt(
266
251
  return e ? { kind: "parameter", key: e.key } : void 0;
267
252
  }, De = i(Le);
268
253
  De.current = Le;
269
- const [$, W] = u(
254
+ const [K, W] = u(
270
255
  () => Je(l)
271
256
  );
272
257
  C(() => {
273
- if (!$) return;
258
+ if (!K) return;
274
259
  const e = (() => {
275
260
  var t;
276
- switch ($.kind) {
261
+ switch (K.kind) {
277
262
  case "url":
278
263
  return Ee.current;
279
264
  case "secret":
280
- return _.current;
265
+ return j.current;
281
266
  case "legal":
282
267
  return Te.current;
283
268
  case "copy":
@@ -285,17 +270,17 @@ const ko = qt(
285
270
  case "parametersError":
286
271
  return Oe.current;
287
272
  case "add":
288
- return (t = P.current) == null ? void 0 : t.querySelector(
273
+ return (t = M.current) == null ? void 0 : t.querySelector(
289
274
  '[data-slot="parameters"] [data-component="field-array"] > button'
290
275
  );
291
276
  case "parameter":
292
- return Z.current.get($.key);
277
+ return Z.current.get(K.key);
293
278
  }
294
279
  })();
295
280
  e == null || e.focus();
296
- }, [$]), C(() => {
281
+ }, [K]), C(() => {
297
282
  var r;
298
- const e = (r = P.current) == null ? void 0 : r.closest("form");
283
+ const e = (r = M.current) == null ? void 0 : r.closest("form");
299
284
  if (!e) return;
300
285
  const t = (c) => {
301
286
  const m = De.current();
@@ -303,32 +288,32 @@ const ko = qt(
303
288
  };
304
289
  return e.addEventListener("submit", t), () => e.removeEventListener("submit", t);
305
290
  }, []);
306
- const g = uo(b), se = mo(g), K = i(v);
307
- K.current = v;
308
- const Me = i(g);
309
- Me.current = g;
310
- const Pe = i(!1);
291
+ const g = lo(b), se = io(g), $ = i(v);
292
+ $.current = v;
293
+ const Pe = i(g);
294
+ Pe.current = g;
295
+ const Me = i(!1);
311
296
  C(() => {
312
297
  var e;
313
- if (!Pe.current) {
314
- Pe.current = !0;
298
+ if (!Me.current) {
299
+ Me.current = !0;
315
300
  return;
316
301
  }
317
- (e = K.current) == null || e.call(K, {
302
+ (e = $.current) == null || e.call($, {
318
303
  url: y,
319
304
  secret: f,
320
- parameters: Object.fromEntries(Me.current),
305
+ parameters: Object.fromEntries(Pe.current),
321
306
  legalBasisConfirmed: O
322
307
  });
323
308
  }, [y, f, se, O]);
324
309
  const {
325
- status: _e,
310
+ status: je,
326
311
  copiedValue: Nt,
327
312
  copy: It,
328
- reset: je
329
- } = Qe(), ae = _e === "copied" && Nt === f, qe = _e === "error", Et = () => {
330
- je(), We(fo()), Ce(!0), A("secret"), F(o("workflowWebhookAction.secretGenerated")), W({ kind: "copy" });
331
- }, [He, ce] = u({ kind: "idle" }), S = i(0), Rt = async () => {
313
+ reset: qe
314
+ } = Qe(), ae = je === "copied" && Nt === f, He = je === "error", Et = () => {
315
+ qe(), We(uo()), Ce(!0), A("secret"), F(o("workflowWebhookAction.secretGenerated")), W({ kind: "copy" });
316
+ }, [_e, ce] = u({ kind: "idle" }), S = i(0), Rt = async () => {
332
317
  var r;
333
318
  if (!I) return;
334
319
  const e = oe() ? "url" : ne() ? "secret" : null;
@@ -342,23 +327,23 @@ const ko = qt(
342
327
  try {
343
328
  const c = await I({
344
329
  url: y.trim(),
345
- secret: ((r = _.current) == null ? void 0 : r.value) ?? f,
330
+ secret: ((r = j.current) == null ? void 0 : r.value) ?? f,
346
331
  parameters: Object.fromEntries(g),
347
332
  legalBasisConfirmed: O
348
333
  });
349
- t === S.current && $e({ kind: "done", result: c });
334
+ t === S.current && Ke({ kind: "done", result: c });
350
335
  } catch {
351
- t === S.current && $e({ kind: "failed" });
336
+ t === S.current && Ke({ kind: "failed" });
352
337
  }
353
- }, $e = (e) => {
338
+ }, Ke = (e) => {
354
339
  ce(e);
355
340
  const t = Xe(e);
356
341
  t && F(t.text);
357
342
  }, X = `${y}
358
343
  ${f}
359
- ${se}`, Ke = i(X);
344
+ ${se}`, $e = i(X);
360
345
  C(() => {
361
- X !== Ke.current && (Ke.current = X, S.current += 1, ce(
346
+ X !== $e.current && ($e.current = X, S.current += 1, ce(
362
347
  (e) => e.kind === "idle" ? e : { kind: "idle" }
363
348
  ));
364
349
  }, [X]);
@@ -380,7 +365,7 @@ ${se}`, Ke = i(X);
380
365
  };
381
366
  }, Ot = async () => {
382
367
  var t;
383
- const e = await It(((t = _.current) == null ? void 0 : t.value) ?? f);
368
+ const e = await It(((t = j.current) == null ? void 0 : t.value) ?? f);
384
369
  F(o(e ? "copyField.copySuccess" : "copyField.copyFailed"));
385
370
  }, le = (e, t) => {
386
371
  J(
@@ -391,30 +376,30 @@ ${se}`, Ke = i(X);
391
376
  J((t) => [...t, { key: e, name: "", value: "" }]), W({ kind: "parameter", key: e });
392
377
  }, Bt = (e) => {
393
378
  const t = b.filter((m, de) => de !== e), r = b[e];
394
- r && (Z.current.delete(r.key), j.current.delete(r.key), V.current.delete(r.key)), J(t), A("parameters");
379
+ r && (Z.current.delete(r.key), q.current.delete(r.key), V.current.delete(r.key)), J(t), A("parameters");
395
380
  const c = t[e] ?? t[e - 1];
396
381
  W(
397
382
  c ? { kind: "parameter", key: c.key } : { kind: "add" }
398
383
  );
399
384
  }, Ft = (e, t) => {
400
385
  var ze;
401
- const r = j.current.get(e.key), c = r !== void 0 && V.current.has(e.key), m = c ? r.selectionStart ?? e.value.length : e.value.length, de = c ? r.selectionEnd ?? m : m, Pt = e.value.slice(0, m) + t + e.value.slice(de);
402
- ee.current = { key: e.key, position: m + t.length }, le(e.key, { value: Pt });
403
- const _t = (ze = R.find((jt) => jt.value === t)) == null ? void 0 : ze.label;
386
+ const r = q.current.get(e.key), c = r !== void 0 && V.current.has(e.key), m = c ? r.selectionStart ?? e.value.length : e.value.length, de = c ? r.selectionEnd ?? m : m, Mt = e.value.slice(0, m) + t + e.value.slice(de);
387
+ ee.current = { key: e.key, position: m + t.length }, le(e.key, { value: Mt });
388
+ const jt = (ze = R.find((qt) => qt.value === t)) == null ? void 0 : ze.label;
404
389
  F(
405
390
  o("workflowWebhookAction.placeholderInserted", {
406
- detail: _t ?? t
391
+ detail: jt ?? t
407
392
  })
408
393
  );
409
394
  }, St = (e) => F(o(e ? "copyField.copySuccess" : "copyField.copyFailed")), ie = (e, t, r = 2) => /* @__PURE__ */ n(
410
395
  "dl",
411
396
  {
412
397
  "aria-labelledby": e,
413
- className: to({
398
+ className: Vt({
414
399
  columns: te ? r : 1
415
400
  }),
416
401
  children: t.map(([c, m]) => /* @__PURE__ */ n(
417
- po,
402
+ mo,
418
403
  {
419
404
  name: c,
420
405
  description: m,
@@ -424,7 +409,7 @@ ${se}`, Ke = i(X);
424
409
  ))
425
410
  }
426
411
  ), Lt = JSON.stringify(
427
- { ...lo, parameters: Object.fromEntries(g) },
412
+ { ...ao, parameters: Object.fromEntries(g) },
428
413
  null,
429
414
  2
430
415
  ), Dt = /* @__PURE__ */ d(
@@ -453,7 +438,7 @@ ${se}`, Ke = i(X);
453
438
  Ue,
454
439
  {
455
440
  language: "http",
456
- code: io,
441
+ code: co,
457
442
  copyLabel: o("workflowWebhookAction.copyHeaders")
458
443
  }
459
444
  ),
@@ -461,7 +446,7 @@ ${se}`, Ke = i(X);
461
446
  ] })
462
447
  ]
463
448
  }
464
- ), z = p !== void 0, Mt = o(lt ? "workflowWebhookAction.generatedNotice" : w ? "workflowWebhookAction.secretSavedDescription" : "workflowWebhookAction.secretDescription");
449
+ ), z = p !== void 0, Pt = o(lt ? "workflowWebhookAction.generatedNotice" : w ? "workflowWebhookAction.secretSavedDescription" : "workflowWebhookAction.secretDescription");
465
450
  return /* @__PURE__ */ d(
466
451
  "div",
467
452
  {
@@ -469,7 +454,7 @@ ${se}`, Ke = i(X);
469
454
  ...nt,
470
455
  "data-component": "workflow-webhook-action",
471
456
  "data-layout": te ? "two-column" : "one-column",
472
- className: eo({ className: ot }),
457
+ className: Zt({ className: ot }),
473
458
  children: [
474
459
  s ? /* @__PURE__ */ n(
475
460
  "div",
@@ -487,7 +472,7 @@ ${se}`, Ke = i(X);
487
472
  description: o("workflowWebhookAction.urlDescription"),
488
473
  required: !0,
489
474
  error: Wt,
490
- announceError: H,
475
+ announceError: _,
491
476
  "data-field": "url",
492
477
  children: /* @__PURE__ */ n(
493
478
  me,
@@ -498,7 +483,7 @@ ${se}`, Ke = i(X);
498
483
  inputMode: "url",
499
484
  autoComplete: "off",
500
485
  spellCheck: !1,
501
- maxLength: ao,
486
+ maxLength: ro,
502
487
  placeholder: "https://",
503
488
  value: y,
504
489
  onChange: (e) => {
@@ -521,21 +506,21 @@ ${se}`, Ke = i(X);
521
506
  G,
522
507
  {
523
508
  label: o("workflowWebhookAction.secret"),
524
- description: Mt,
509
+ description: Pt,
525
510
  ...w ? { optional: !0 } : { required: !0 },
526
511
  error: Ct,
527
- announceError: H,
512
+ announceError: _,
528
513
  children: /* @__PURE__ */ n(
529
514
  Ut,
530
515
  {
531
- ref: _,
516
+ ref: j,
532
517
  name: z ? p.secret : "",
533
518
  dir: "ltr",
534
519
  autoComplete: "new-password",
535
520
  spellCheck: !1,
536
521
  value: f,
537
522
  onChange: (e) => {
538
- We(e.target.value), Ce(!1), je(), A("secret");
523
+ We(e.target.value), Ce(!1), qe(), A("secret");
539
524
  },
540
525
  onBlur: (e) => {
541
526
  e.target.value !== "" && B("secret");
@@ -551,7 +536,7 @@ ${se}`, Ke = i(X);
551
536
  type: "button",
552
537
  intent: "outline",
553
538
  size: "sm",
554
- startIcon: /* @__PURE__ */ n(Vt, {}),
539
+ startIcon: /* @__PURE__ */ n(Yt, {}),
555
540
  "data-action": "generate-secret",
556
541
  onClick: Et,
557
542
  children: o("workflowWebhookAction.generate")
@@ -565,11 +550,11 @@ ${se}`, Ke = i(X);
565
550
  intent: "outline",
566
551
  size: "sm",
567
552
  disabled: f === "",
568
- startIcon: ae ? /* @__PURE__ */ n(Ze, {}) : qe ? /* @__PURE__ */ n(he, {}) : /* @__PURE__ */ n(Ve, {}),
553
+ startIcon: ae ? /* @__PURE__ */ n(Ze, {}) : He ? /* @__PURE__ */ n(he, {}) : /* @__PURE__ */ n(Ve, {}),
569
554
  "data-action": "copy-secret",
570
555
  "data-copied": ae ? "true" : void 0,
571
556
  onClick: () => void Ot(),
572
- children: o(ae ? "copyField.copied" : qe ? "copyField.copyFailed" : "workflowWebhookAction.copySecret")
557
+ children: o(ae ? "copyField.copied" : He ? "copyField.copyFailed" : "workflowWebhookAction.copySecret")
573
558
  }
574
559
  )
575
560
  ] })
@@ -590,7 +575,7 @@ ${se}`, Ke = i(X);
590
575
  intent: "outline",
591
576
  size: "sm",
592
577
  startIcon: /* @__PURE__ */ n(Qt, {}),
593
- loading: He.kind === "sending",
578
+ loading: _e.kind === "sending",
594
579
  "aria-describedby": Ae,
595
580
  className: "ds:self-start",
596
581
  "data-action": "send-test",
@@ -599,7 +584,7 @@ ${se}`, Ke = i(X);
599
584
  }
600
585
  ),
601
586
  (() => {
602
- const e = Xe(He);
587
+ const e = Xe(_e);
603
588
  return e ? /* @__PURE__ */ n(
604
589
  U,
605
590
  {
@@ -631,18 +616,18 @@ ${se}`, Ke = i(X);
631
616
  it(e === !0), A("legalBasisConfirmed");
632
617
  },
633
618
  "aria-required": "true",
634
- "aria-invalid": q ? !0 : void 0,
635
- "aria-describedby": q ? be : void 0,
619
+ "aria-invalid": H ? !0 : void 0,
620
+ "aria-describedby": H ? be : void 0,
636
621
  label: o("workflowWebhookAction.legalBasis")
637
622
  }
638
623
  ),
639
- q ? /* @__PURE__ */ d(
624
+ H ? /* @__PURE__ */ d(
640
625
  "p",
641
626
  {
642
627
  id: be,
643
- role: H ? "alert" : void 0,
628
+ role: _ ? "alert" : void 0,
644
629
  "data-slot": "error",
645
- className: no(),
630
+ className: to(),
646
631
  children: [
647
632
  /* @__PURE__ */ n(
648
633
  he,
@@ -651,7 +636,7 @@ ${se}`, Ke = i(X);
651
636
  className: "ds:size-4 ds:shrink-0"
652
637
  }
653
638
  ),
654
- /* @__PURE__ */ n("span", { children: q })
639
+ /* @__PURE__ */ n("span", { children: H })
655
640
  ]
656
641
  }
657
642
  ) : null
@@ -676,7 +661,7 @@ ${se}`, Ke = i(X);
676
661
  children: /* @__PURE__ */ d(k.Item, { value: "advanced", children: [
677
662
  /* @__PURE__ */ n(k.Trigger, { "data-action": "toggle-advanced", children: /* @__PURE__ */ d("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
678
663
  /* @__PURE__ */ n("span", { children: o("workflowWebhookAction.advanced") }),
679
- g.length > 0 ? /* @__PURE__ */ n($t, { variant: "neutral", size: "md", children: o("workflowWebhookAction.parameterCount", {
664
+ g.length > 0 ? /* @__PURE__ */ n(Kt, { variant: "neutral", size: "md", children: o("workflowWebhookAction.parameterCount", {
680
665
  total: g.length
681
666
  }) }) : null
682
667
  ] }) }),
@@ -707,14 +692,14 @@ ${se}`, Ke = i(X);
707
692
  "div",
708
693
  {
709
694
  "data-parameter-id": e.key,
710
- className: ro(),
695
+ className: oo(),
711
696
  children: [
712
697
  /* @__PURE__ */ n(
713
698
  G,
714
699
  {
715
700
  label: o("workflowWebhookAction.parameterName"),
716
701
  error: xt(e.key),
717
- announceError: H,
702
+ announceError: _,
718
703
  children: /* @__PURE__ */ n(
719
704
  me,
720
705
  {
@@ -743,7 +728,7 @@ ${se}`, Ke = i(X);
743
728
  me,
744
729
  {
745
730
  ref: (r) => {
746
- r && j.current.set(e.key, r);
731
+ r && q.current.set(e.key, r);
747
732
  },
748
733
  "aria-label": o(
749
734
  "workflowWebhookAction.parameterValueOf",
@@ -819,9 +804,9 @@ ${se}`, Ke = i(X);
819
804
  );
820
805
  }
821
806
  );
822
- ko.displayName = "WorkflowWebhookAction";
807
+ fo.displayName = "WorkflowWebhookAction";
823
808
  export {
824
- jo as W,
825
- ko as a
809
+ Mo as W,
810
+ fo as a
826
811
  };
827
- //# sourceMappingURL=workflow-webhook-action-BvVPZVpG.js.map
812
+ //# sourceMappingURL=workflow-webhook-action-DulCpCRz.js.map