@alfadocs/ui-kit-debug 1.120.0 → 1.122.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 (227) hide show
  1. package/assets/map-pin@2x.png +0 -0
  2. package/assets/map-pin@2x.source.json +5 -0
  3. package/dist/_chunks/addDays-CuE8wLqb.js +9 -0
  4. package/dist/_chunks/addDays-CuE8wLqb.js.map +1 -0
  5. package/dist/_chunks/{anamnesis-summary-rows-BbAREK-3.js → anamnesis-summary-rows-CtcULkvc.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-rows-BbAREK-3.js.map → anamnesis-summary-rows-CtcULkvc.js.map} +1 -1
  7. package/dist/_chunks/{antenatal-schedule-timeline-86YVlMYJ.js → antenatal-schedule-timeline-XHbig8On.js} +3 -3
  8. package/dist/_chunks/{antenatal-schedule-timeline-86YVlMYJ.js.map → antenatal-schedule-timeline-XHbig8On.js.map} +1 -1
  9. package/dist/_chunks/{appointment-timeline-CC7nmBOH.js → appointment-timeline-Czd4PBkF.js} +2 -2
  10. package/dist/_chunks/{appointment-timeline-CC7nmBOH.js.map → appointment-timeline-Czd4PBkF.js.map} +1 -1
  11. package/dist/_chunks/{balance-badge-cell-DPjab0eJ.js → balance-badge-cell-DtxbGJcA.js} +2 -2
  12. package/dist/_chunks/{balance-badge-cell-DPjab0eJ.js.map → balance-badge-cell-DtxbGJcA.js.map} +1 -1
  13. package/dist/_chunks/{bill-line-table-DUMEHnQ4.js → bill-line-table-HrynB7ND.js} +2 -2
  14. package/dist/_chunks/{bill-line-table-DUMEHnQ4.js.map → bill-line-table-HrynB7ND.js.map} +1 -1
  15. package/dist/_chunks/{calendar-appointment-editor-dialog-rw02sXGw.js → calendar-appointment-editor-dialog-CiCmsBCH.js} +5 -5
  16. package/dist/_chunks/{calendar-appointment-editor-dialog-rw02sXGw.js.map → calendar-appointment-editor-dialog-CiCmsBCH.js.map} +1 -1
  17. package/dist/_chunks/{cycle-calculator-C8nWAeTk.js → cycle-calculator-WFhMfJHt.js} +4 -3
  18. package/dist/_chunks/{cycle-calculator-C8nWAeTk.js.map → cycle-calculator-WFhMfJHt.js.map} +1 -1
  19. package/dist/_chunks/{data-grid-Bbf8t4z3.js → data-grid-C71BhGDw.js} +2 -2
  20. package/dist/_chunks/{data-grid-Bbf8t4z3.js.map → data-grid-C71BhGDw.js.map} +1 -1
  21. package/dist/_chunks/{date-picker-DBVTj6lO.js → date-picker-BmVBVpVu.js} +3 -3
  22. package/dist/_chunks/{date-picker-DBVTj6lO.js.map → date-picker-BmVBVpVu.js.map} +1 -1
  23. package/dist/_chunks/{date-picker-variants-J1EeAhIH.js → date-picker-variants-DmfVRNDB.js} +184 -188
  24. package/dist/_chunks/date-picker-variants-DmfVRNDB.js.map +1 -0
  25. package/dist/_chunks/{date-range-panel-CT6nXjRM.js → date-range-panel-CT9Pk-HF.js} +2 -2
  26. package/dist/_chunks/{date-range-panel-CT6nXjRM.js.map → date-range-panel-CT9Pk-HF.js.map} +1 -1
  27. package/dist/_chunks/{date-range-picker-PTRpDkXT.js → date-range-picker-2Up_FRrM.js} +40 -39
  28. package/dist/_chunks/{date-range-picker-PTRpDkXT.js.map → date-range-picker-2Up_FRrM.js.map} +1 -1
  29. package/dist/_chunks/{date-time-picker-CJnqiQoT.js → date-time-picker-C6b_Vymc.js} +2 -2
  30. package/dist/_chunks/{date-time-picker-CJnqiQoT.js.map → date-time-picker-C6b_Vymc.js.map} +1 -1
  31. package/dist/_chunks/{default-tabs-Cxkw1Ws0.js → default-tabs-RvCI5uN0.js} +3 -3
  32. package/dist/_chunks/{default-tabs-Cxkw1Ws0.js.map → default-tabs-RvCI5uN0.js.map} +1 -1
  33. package/dist/_chunks/{due-date-calculator-c1NJPw9F.js → due-date-calculator-CALlODZe.js} +4 -4
  34. package/dist/_chunks/{due-date-calculator-c1NJPw9F.js.map → due-date-calculator-CALlODZe.js.map} +1 -1
  35. package/dist/_chunks/{gestational-age-calculator-Cg4Gq42R.js → gestational-age-calculator-mB6brTlp.js} +5 -5
  36. package/dist/_chunks/{gestational-age-calculator-Cg4Gq42R.js.map → gestational-age-calculator-mB6brTlp.js.map} +1 -1
  37. package/dist/_chunks/{hcg-doubling-BjTa_77t.js → hcg-doubling-Dhdt3Jyd.js} +3 -3
  38. package/dist/_chunks/{hcg-doubling-BjTa_77t.js.map → hcg-doubling-Dhdt3Jyd.js.map} +1 -1
  39. package/dist/_chunks/{invoice-upload-list-CsFsRgbt.js → invoice-upload-list-C95s5Q7m.js} +3 -3
  40. package/dist/_chunks/{invoice-upload-list-CsFsRgbt.js.map → invoice-upload-list-C95s5Q7m.js.map} +1 -1
  41. package/dist/_chunks/{kit-extensions-C3oL0WTp.js → kit-extensions-DUaIYyMD.js} +4 -4
  42. package/dist/_chunks/{kit-extensions-C3oL0WTp.js.map → kit-extensions-DUaIYyMD.js.map} +1 -1
  43. package/dist/_chunks/{link-cell-renderer-NFNGdAGt.js → link-cell-renderer-BEaLczk2.js} +2 -2
  44. package/dist/_chunks/{link-cell-renderer-NFNGdAGt.js.map → link-cell-renderer-BEaLczk2.js.map} +1 -1
  45. package/dist/_chunks/{map-view-h6ngp2xi.js → map-view-QWdQLHi9.js} +543 -495
  46. package/dist/_chunks/map-view-QWdQLHi9.js.map +1 -0
  47. package/dist/_chunks/{parse-BLBWPIgE.js → parse-BFur8Byx.js} +2 -2
  48. package/dist/_chunks/{parse-BLBWPIgE.js.map → parse-BFur8Byx.js.map} +1 -1
  49. package/dist/_chunks/{patient-details-C4dHR4iu.js → patient-details-Cba9HQj_.js} +2 -2
  50. package/dist/_chunks/{patient-details-C4dHR4iu.js.map → patient-details-Cba9HQj_.js.map} +1 -1
  51. package/dist/_chunks/{patient-field-row-0QP8KCVp.js → patient-field-row-CtDihADs.js} +2 -2
  52. package/dist/_chunks/{patient-field-row-0QP8KCVp.js.map → patient-field-row-CtDihADs.js.map} +1 -1
  53. package/dist/_chunks/{patient-summary-card-x0-AhCyC.js → patient-summary-card-DnLdbtsw.js} +2 -2
  54. package/dist/_chunks/{patient-summary-card-x0-AhCyC.js.map → patient-summary-card-DnLdbtsw.js.map} +1 -1
  55. package/dist/_chunks/practice-results-BCLqPdgn.js +2683 -0
  56. package/dist/_chunks/practice-results-BCLqPdgn.js.map +1 -0
  57. package/dist/_chunks/{pregnancy-dating-BO6diQMZ.js → pregnancy-dating-BNI32qNw.js} +5 -5
  58. package/dist/_chunks/{pregnancy-dating-BO6diQMZ.js.map → pregnancy-dating-BNI32qNw.js.map} +1 -1
  59. package/dist/_chunks/{radiograph-panel.agent-Dcv16n7u.js → radiograph-panel.agent-B-r3BoqU.js} +3 -3
  60. package/dist/_chunks/{radiograph-panel.agent-Dcv16n7u.js.map → radiograph-panel.agent-B-r3BoqU.js.map} +1 -1
  61. package/dist/_chunks/{registration-form-CMXefBnC.js → registration-form-CwbhtKcy.js} +180 -165
  62. package/dist/_chunks/registration-form-CwbhtKcy.js.map +1 -0
  63. package/dist/_chunks/{reserved.agent-DRSZ8UcL.js → reserved.agent-CCwsOb3M.js} +8 -7
  64. package/dist/_chunks/{reserved.agent-DRSZ8UcL.js.map → reserved.agent-CCwsOb3M.js.map} +1 -1
  65. package/dist/_chunks/{send-registration-link-form-DuZQuKnI.js → send-registration-link-form-BjkXr0TD.js} +3 -3
  66. package/dist/_chunks/{send-registration-link-form-DuZQuKnI.js.map → send-registration-link-form-BjkXr0TD.js.map} +1 -1
  67. package/dist/_chunks/{slot-grid-b4eZXokb.js → slot-grid-DEZRB4Yb.js} +234 -207
  68. package/dist/_chunks/slot-grid-DEZRB4Yb.js.map +1 -0
  69. package/dist/_chunks/subDays-DC99JK7a.js +8 -0
  70. package/dist/_chunks/{subDays-Bsoy023P.js.map → subDays-DC99JK7a.js.map} +1 -1
  71. package/dist/_chunks/{task-editor-Czcx9B-3.js → task-editor-C05yx7JJ.js} +2 -2
  72. package/dist/_chunks/{task-editor-Czcx9B-3.js.map → task-editor-C05yx7JJ.js.map} +1 -1
  73. package/dist/_chunks/{toolbar-DoKcoE2q.js → toolbar-Dznu_Dou.js} +2 -2
  74. package/dist/_chunks/{toolbar-DoKcoE2q.js.map → toolbar-Dznu_Dou.js.map} +1 -1
  75. package/dist/_chunks/{use-appointment-details-read-B-SXnszJ.js → use-appointment-details-read-Bm408XzX.js} +2 -2
  76. package/dist/_chunks/{use-appointment-details-read-B-SXnszJ.js.map → use-appointment-details-read-Bm408XzX.js.map} +1 -1
  77. package/dist/_chunks/{workflow-webhook-action-dgUjv9T7.js → workflow-webhook-action-Cae02r_4.js} +264 -289
  78. package/dist/_chunks/workflow-webhook-action-Cae02r_4.js.map +1 -0
  79. package/dist/agent-catalog.json +3 -11
  80. package/dist/agent-i18n/en.json +1 -2
  81. package/dist/browser-support.js +1 -1
  82. package/dist/components/appointment-details-panel/index.js +1 -1
  83. package/dist/components/appointment-timeline/index.js +1 -1
  84. package/dist/components/bill-line-table/index.js +1 -1
  85. package/dist/components/bill-table/index.js +1 -1
  86. package/dist/components/booking/index.js +1 -1
  87. package/dist/components/cycle-calculator/index.js +1 -1
  88. package/dist/components/data-grid/index.js +2 -2
  89. package/dist/components/data-table/index.js +1 -1
  90. package/dist/components/date-picker/index.js +1 -1
  91. package/dist/components/date-range-picker/index.js +1 -1
  92. package/dist/components/date-time-picker/index.js +1 -1
  93. package/dist/components/due-date-calculator/index.js +2 -2
  94. package/dist/components/gestational-age-calculator/index.js +1 -1
  95. package/dist/components/hcg-doubling/index.js +1 -1
  96. package/dist/components/invoice-upload-list/index.js +1 -1
  97. package/dist/components/map-view/index.d.ts +1 -1
  98. package/dist/components/map-view/index.d.ts.map +1 -1
  99. package/dist/components/map-view/index.js +1 -1
  100. package/dist/components/map-view/map-view.d.ts +18 -0
  101. package/dist/components/map-view/map-view.d.ts.map +1 -1
  102. package/dist/components/patient-details/index.js +1 -1
  103. package/dist/components/patient-summary-card/index.js +1 -1
  104. package/dist/components/patient-table/index.js +1 -1
  105. package/dist/components/practice-results/index.js +1 -1
  106. package/dist/components/practice-results/practice-results-slot-card.d.ts +38 -0
  107. package/dist/components/practice-results/practice-results-slot-card.d.ts.map +1 -0
  108. package/dist/components/practice-results/practice-results.d.ts +32 -2
  109. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  110. package/dist/components/pregnancy-dating/index.js +1 -1
  111. package/dist/components/radiograph-panel/index.js +1 -1
  112. package/dist/components/rich-text-editor/index.js +1 -1
  113. package/dist/components/slot-grid/index.js +1 -1
  114. package/dist/components/slot-grid/slot-grid.d.ts +19 -0
  115. package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
  116. package/dist/components/task-editor/index.js +1 -1
  117. package/dist/core.css +1 -1
  118. package/dist/host-compat.css +9 -1
  119. package/dist/i18n/locales/ar.d.ts +7 -5
  120. package/dist/i18n/locales/ar.d.ts.map +1 -1
  121. package/dist/i18n/locales/ar.js +8 -6
  122. package/dist/i18n/locales/ar.js.map +1 -1
  123. package/dist/i18n/locales/de.d.ts +7 -5
  124. package/dist/i18n/locales/de.d.ts.map +1 -1
  125. package/dist/i18n/locales/de.js +8 -6
  126. package/dist/i18n/locales/de.js.map +1 -1
  127. package/dist/i18n/locales/el.d.ts +7 -5
  128. package/dist/i18n/locales/el.d.ts.map +1 -1
  129. package/dist/i18n/locales/el.js +8 -6
  130. package/dist/i18n/locales/el.js.map +1 -1
  131. package/dist/i18n/locales/en.d.ts +7 -5
  132. package/dist/i18n/locales/en.d.ts.map +1 -1
  133. package/dist/i18n/locales/en.js +7 -5
  134. package/dist/i18n/locales/en.js.map +1 -1
  135. package/dist/i18n/locales/es.d.ts +7 -5
  136. package/dist/i18n/locales/es.d.ts.map +1 -1
  137. package/dist/i18n/locales/es.js +8 -6
  138. package/dist/i18n/locales/es.js.map +1 -1
  139. package/dist/i18n/locales/fr.d.ts +7 -5
  140. package/dist/i18n/locales/fr.d.ts.map +1 -1
  141. package/dist/i18n/locales/fr.js +8 -6
  142. package/dist/i18n/locales/fr.js.map +1 -1
  143. package/dist/i18n/locales/hi.d.ts +7 -5
  144. package/dist/i18n/locales/hi.d.ts.map +1 -1
  145. package/dist/i18n/locales/hi.js +8 -6
  146. package/dist/i18n/locales/hi.js.map +1 -1
  147. package/dist/i18n/locales/it.d.ts +7 -5
  148. package/dist/i18n/locales/it.d.ts.map +1 -1
  149. package/dist/i18n/locales/it.js +8 -6
  150. package/dist/i18n/locales/it.js.map +1 -1
  151. package/dist/i18n/locales/ja.d.ts +7 -5
  152. package/dist/i18n/locales/ja.d.ts.map +1 -1
  153. package/dist/i18n/locales/ja.js +8 -6
  154. package/dist/i18n/locales/ja.js.map +1 -1
  155. package/dist/i18n/locales/nl.d.ts +7 -5
  156. package/dist/i18n/locales/nl.d.ts.map +1 -1
  157. package/dist/i18n/locales/nl.js +8 -6
  158. package/dist/i18n/locales/nl.js.map +1 -1
  159. package/dist/i18n/locales/pl.d.ts +7 -5
  160. package/dist/i18n/locales/pl.d.ts.map +1 -1
  161. package/dist/i18n/locales/pl.js +8 -6
  162. package/dist/i18n/locales/pl.js.map +1 -1
  163. package/dist/i18n/locales/pt.d.ts +7 -5
  164. package/dist/i18n/locales/pt.d.ts.map +1 -1
  165. package/dist/i18n/locales/pt.js +8 -6
  166. package/dist/i18n/locales/pt.js.map +1 -1
  167. package/dist/i18n/locales/ro.d.ts +7 -5
  168. package/dist/i18n/locales/ro.d.ts.map +1 -1
  169. package/dist/i18n/locales/ro.js +8 -6
  170. package/dist/i18n/locales/ro.js.map +1 -1
  171. package/dist/i18n/locales/ru.d.ts +7 -5
  172. package/dist/i18n/locales/ru.d.ts.map +1 -1
  173. package/dist/i18n/locales/ru.js +8 -6
  174. package/dist/i18n/locales/ru.js.map +1 -1
  175. package/dist/i18n/locales/sq.d.ts +7 -5
  176. package/dist/i18n/locales/sq.d.ts.map +1 -1
  177. package/dist/i18n/locales/sq.js +8 -6
  178. package/dist/i18n/locales/sq.js.map +1 -1
  179. package/dist/i18n/locales/sv.d.ts +7 -5
  180. package/dist/i18n/locales/sv.d.ts.map +1 -1
  181. package/dist/i18n/locales/sv.js +8 -6
  182. package/dist/i18n/locales/sv.js.map +1 -1
  183. package/dist/i18n/locales/tr.d.ts +7 -5
  184. package/dist/i18n/locales/tr.d.ts.map +1 -1
  185. package/dist/i18n/locales/tr.js +8 -6
  186. package/dist/i18n/locales/tr.js.map +1 -1
  187. package/dist/i18n/locales/zh.d.ts +7 -5
  188. package/dist/i18n/locales/zh.d.ts.map +1 -1
  189. package/dist/i18n/locales/zh.js +8 -6
  190. package/dist/i18n/locales/zh.js.map +1 -1
  191. package/dist/index.js +32 -32
  192. package/dist/locales/ar.json +8 -6
  193. package/dist/locales/de.json +8 -6
  194. package/dist/locales/el.json +8 -6
  195. package/dist/locales/en.json +7 -5
  196. package/dist/locales/es.json +8 -6
  197. package/dist/locales/fr.json +8 -6
  198. package/dist/locales/hi.json +8 -6
  199. package/dist/locales/it.json +8 -6
  200. package/dist/locales/ja.json +8 -6
  201. package/dist/locales/nl.json +8 -6
  202. package/dist/locales/pl.json +8 -6
  203. package/dist/locales/pt.json +8 -6
  204. package/dist/locales/ro.json +8 -6
  205. package/dist/locales/ru.json +8 -6
  206. package/dist/locales/sq.json +8 -6
  207. package/dist/locales/sv.json +8 -6
  208. package/dist/locales/tr.json +8 -6
  209. package/dist/locales/zh.json +8 -6
  210. package/dist/patterns/anamnesis/index.js +1 -1
  211. package/dist/patterns/calendar/index.js +1 -1
  212. package/dist/patterns/registration-form/index.js +1 -1
  213. package/dist/patterns/send-registration-link-form/index.js +1 -1
  214. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  215. package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts.map +1 -1
  216. package/dist/tokens.css +1 -1
  217. package/package.json +1 -1
  218. package/dist/_chunks/date-picker-variants-J1EeAhIH.js.map +0 -1
  219. package/dist/_chunks/key-round-DIgsnJSg.js +0 -21
  220. package/dist/_chunks/key-round-DIgsnJSg.js.map +0 -1
  221. package/dist/_chunks/map-view-h6ngp2xi.js.map +0 -1
  222. package/dist/_chunks/practice-results-yCresv86.js +0 -2326
  223. package/dist/_chunks/practice-results-yCresv86.js.map +0 -1
  224. package/dist/_chunks/registration-form-CMXefBnC.js.map +0 -1
  225. package/dist/_chunks/slot-grid-b4eZXokb.js.map +0 -1
  226. package/dist/_chunks/subDays-Bsoy023P.js +0 -8
  227. package/dist/_chunks/workflow-webhook-action-dgUjv9T7.js.map +0 -1
@@ -1,35 +1,34 @@
1
1
  import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as Ht, useId as N, useRef as i, useState as u, useEffect as C, useCallback as _t } from "react";
3
- import { useTranslation as Ye } from "react-i18next";
2
+ import { forwardRef as Pt, useId as C, useRef as i, useState as m, useEffect as A, useCallback as Mt } from "react";
3
+ import { useTranslation as ze } from "react-i18next";
4
4
  import { c as h } from "./index-D2ZczOXr.js";
5
- import { C as Ue } from "./code-block-BTsCXVGI.js";
5
+ import { C as _e } from "./code-block-BTsCXVGI.js";
6
6
  import { A as k } from "./accordion-Ch3xp0mX.js";
7
7
  import { A as U } from "./alert-C4WKViaS.js";
8
- import { B as Kt } from "./badge-BUk4RjTS.js";
9
- import { B as ue } from "./button-DohK_Ak_.js";
10
- import { I as $t } from "./icon-button-S8_weU3g.js";
11
- import { C as Ge } from "./card-n6W6LW-N.js";
12
- import { C as Xt } from "./checkbox-DV4sNDeB.js";
13
- import { F as zt } from "./field-array-CA-gn526.js";
14
- import { F as G } from "./form-field-CyHfOVKF.js";
15
- import { P as Ut } from "./password-input-SJGHFdOO.js";
16
- import { T as me } from "./text-input-B6iAgCr3.js";
17
- import { T as Gt } from "./token-insert-menu-BrK5NQIq.js";
18
- import { u as Qe } from "./use-copy-to-clipboard-Cyfc_dlv.js";
19
- import { u as Jt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
20
- import { K as Yt } from "./key-round-DIgsnJSg.js";
21
- import { C as Ze } from "./check-DrFSN__t.js";
22
- import { C as he } from "./circle-alert-rGDZ73Wh.js";
23
- import { C as Ve } from "./copy-vRpqqHtY.js";
24
- import { S as Qt } from "./send-C5kDJ-Mz.js";
25
- const Mo = [
8
+ import { B as jt } from "./badge-BUk4RjTS.js";
9
+ import { B as $e } from "./button-DohK_Ak_.js";
10
+ import { I as qt } from "./icon-button-S8_weU3g.js";
11
+ import { C as Xe } from "./card-n6W6LW-N.js";
12
+ import { C as Ht } from "./checkbox-DV4sNDeB.js";
13
+ import { F as _t } from "./field-array-CA-gn526.js";
14
+ import { F as J } from "./form-field-CyHfOVKF.js";
15
+ import { P as $t } from "./password-input-SJGHFdOO.js";
16
+ import { T as ue } from "./text-input-B6iAgCr3.js";
17
+ import { T as Xt } from "./token-insert-menu-BrK5NQIq.js";
18
+ import { u as Ue } from "./use-copy-to-clipboard-Cyfc_dlv.js";
19
+ import { u as Kt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
20
+ import { C as Je } from "./check-DrFSN__t.js";
21
+ import { C as ke } from "./circle-alert-rGDZ73Wh.js";
22
+ import { C as Ge } from "./copy-vRpqqHtY.js";
23
+ import { S as zt } from "./send-C5kDJ-Mz.js";
24
+ const To = [
26
25
  "url",
27
26
  "secret",
28
27
  "legalBasisConfirmed",
29
28
  "parameters"
30
- ], Zt = h(
29
+ ], Ut = h(
31
30
  "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-lg)] ds:text-start ds:text-[var(--foreground)]"
32
- ), Vt = h(
31
+ ), Jt = h(
33
32
  "ds:m-0 ds:grid ds:gap-x-[var(--spacing-xl)] ds:gap-y-[var(--spacing-md)]",
34
33
  {
35
34
  variants: {
@@ -41,59 +40,54 @@ const Mo = [
41
40
  },
42
41
  defaultVariants: { columns: 1 }
43
42
  }
44
- ), fe = h(
43
+ ), me = h(
45
44
  "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
46
- ), pe = h("type-title-item ds:text-foreground"), eo = h(
45
+ ), fe = h("type-title-item ds:text-foreground"), Gt = h(
47
46
  "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]"
48
- ), x = h("type-body-sm ds:text-muted-foreground"), to = h(
47
+ ), W = h("type-body-sm ds:text-muted-foreground"), Yt = h(
49
48
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive"
50
- ), oo = h(
49
+ ), Qt = h(
51
50
  "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2"
52
- ), no = "https://", ro = 2048, so = 720, ke = {
51
+ ), Zt = "https://", Vt = 2048, eo = 720, pe = {
53
52
  salutation: "[[TITOLO]]",
54
53
  firstName: "[[NOME]]",
55
54
  lastName: "[[COGNOME]]"
56
- }, et = "wf12-e345-a67", ao = {
55
+ }, Ye = "wf12-e345-a67", to = {
57
56
  sentAt: "2026-10-12T09:00:00+02:00",
58
- idempotencyKey: et,
57
+ idempotencyKey: Ye,
59
58
  practiceId: 1234,
60
59
  workflowId: 12,
61
60
  workflowActionId: 67,
62
61
  workflowEnrollmentId: 345,
63
62
  patientId: 5678
64
- }, co = [
63
+ }, oo = [
65
64
  "Content-Type: application/json",
66
- `X-AlfaDocs-Idempotency-Key: ${et}`,
65
+ `X-AlfaDocs-Idempotency-Key: ${Ye}`,
67
66
  "X-AlfaDocs-Request-Timestamp: 1791788400000",
68
67
  "X-AlfaDocs-Signature: sha256=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
69
68
  ].join(`
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(
69
+ `), Qe = (s) => s === null ? "" : String(s), he = (s) => s.original !== void 0 && s.name === s.original.name && s.value === Qe(s.original.value), no = (s) => s.flatMap((a) => a.original !== void 0 && he(a) ? [[a.original.name, a.original.value]] : a.name.trim() === "" ? [] : [[a.name, a.value]]), ro = (s) => s.length === 0 ? "" : `{${s.map(
71
70
  ([a, w]) => `${JSON.stringify(a)}:${JSON.stringify(w)}`
72
- ).join(",")}}`, uo = () => {
73
- const s = new Uint8Array(32);
74
- return globalThis.crypto.getRandomValues(s), Array.from(s, (a) => a.toString(16).padStart(2, "0")).join(
75
- ""
76
- );
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;
78
- function mo({ name: s, description: a, onCopied: w }) {
79
- const { t: l } = Ye("ui"), p = N(), { status: L, copy: I } = Qe(), v = L === "copied", D = L === "error";
71
+ ).join(",")}}`, Ke = (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;
72
+ function so({ name: s, description: a, onCopied: w }) {
73
+ const { t: l } = ze("ui"), p = C(), { status: L, copy: x } = Ue(), v = L === "copied", S = L === "error";
80
74
  return /* @__PURE__ */ d("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
81
75
  /* @__PURE__ */ d("dt", { className: "ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
82
- /* @__PURE__ */ n("code", { dir: "ltr", className: eo(), children: s }),
76
+ /* @__PURE__ */ n("code", { dir: "ltr", className: Gt(), children: s }),
83
77
  /* @__PURE__ */ n(
84
- $t,
78
+ qt,
85
79
  {
86
- icon: v ? /* @__PURE__ */ n(Ze, {}) : D ? /* @__PURE__ */ n(he, {}) : /* @__PURE__ */ n(Ve, {}),
80
+ icon: v ? /* @__PURE__ */ n(Je, {}) : S ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(Ge, {}),
87
81
  size: "sm",
88
82
  intent: "ghost",
89
83
  "aria-label": l("keyValuePair.copy", { label: s }),
90
84
  "aria-describedby": p,
91
85
  "data-action": "copy-field",
92
86
  "data-copied": v ? "true" : void 0,
93
- onClick: () => void I(s).then(w)
87
+ onClick: () => void x(s).then(w)
94
88
  }
95
89
  ),
96
- v ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "type-body-sm ds:text-success", children: l("copyField.copied") }) : D ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "type-body-sm ds:text-destructive", children: l("copyField.copyFailed") }) : null
90
+ v ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "type-body-sm ds:text-success", children: l("copyField.copied") }) : S ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "type-body-sm ds:text-destructive", children: l("copyField.copyFailed") }) : null
97
91
  ] }),
98
92
  /* @__PURE__ */ n(
99
93
  "dd",
@@ -105,7 +99,7 @@ function mo({ name: s, description: a, onCopied: w }) {
105
99
  )
106
100
  ] });
107
101
  }
108
- const fo = Ht(
102
+ const ao = Pt(
109
103
  ({
110
104
  children: s,
111
105
  initialValues: a,
@@ -113,13 +107,13 @@ const fo = Ht(
113
107
  errors: l,
114
108
  fieldNames: p,
115
109
  placeholders: L,
116
- onSendTest: I,
110
+ onSendTest: x,
117
111
  onValueChange: v,
118
- layout: D = "two-column",
119
- className: ot,
120
- ...nt
121
- }, E) => {
122
- const { t: o } = Ye("ui"), rt = [
112
+ layout: S = "two-column",
113
+ className: Ze,
114
+ ...Ve
115
+ }, N) => {
116
+ const { t: o } = ze("ui"), et = [
123
117
  ["patientId", o("workflowWebhookAction.sent.patientId")],
124
118
  ["practiceId", o("workflowWebhookAction.sent.practiceId")],
125
119
  ["workflowId", o("workflowWebhookAction.sent.workflowId")],
@@ -131,7 +125,7 @@ const fo = Ht(
131
125
  ["sentAt", o("workflowWebhookAction.sent.sentAt")],
132
126
  ["idempotencyKey", o("workflowWebhookAction.sent.idempotencyKey")],
133
127
  ["parameters", o("workflowWebhookAction.sent.parameters")]
134
- ], st = [
128
+ ], tt = [
135
129
  ["X-AlfaDocs-Signature", o("workflowWebhookAction.headers.signature")],
136
130
  [
137
131
  "X-AlfaDocs-Request-Timestamp",
@@ -141,72 +135,72 @@ const fo = Ht(
141
135
  "X-AlfaDocs-Idempotency-Key",
142
136
  o("workflowWebhookAction.headers.idempotency")
143
137
  ]
144
- ], be = N(), ge = N(), ve = N(), ye = N(), Ae = N(), R = L ?? [
138
+ ], we = C(), be = C(), ge = C(), ve = C(), ye = C(), I = L ?? [
145
139
  {
146
- value: ke.salutation,
140
+ value: pe.salutation,
147
141
  label: o("workflowWebhookAction.variableSalutation")
148
142
  },
149
143
  {
150
- value: ke.firstName,
144
+ value: pe.firstName,
151
145
  label: o("workflowWebhookAction.variableFirstName")
152
146
  },
153
147
  {
154
- value: ke.lastName,
148
+ value: pe.lastName,
155
149
  label: o("workflowWebhookAction.variableLastName")
156
150
  }
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}`,
151
+ ], D = i(0), ot = () => (D.current += 1, `parameter-${D.current}`), [y, nt] = m(() => (a == null ? void 0 : a.url) ?? ""), [f, rt] = m(""), [b, G] = m(
152
+ () => Object.entries((a == null ? void 0 : a.parameters) ?? {}).map(([e, t]) => (D.current += 1, {
153
+ key: `parameter-${D.current}`,
160
154
  name: e,
161
- value: tt(t),
155
+ value: Qe(t),
162
156
  original: { name: e, value: t }
163
157
  }))
164
- ), [O, it] = u(
158
+ ), [E, st] = m(
165
159
  () => (a == null ? void 0 : a.legalBasisConfirmed) ?? !1
166
- ), [dt, Y] = u(
160
+ ), [at, Y] = m(
167
161
  () => Object.keys((a == null ? void 0 : a.parameters) ?? {}).length > 0 || !!(l != null && l.parameters)
168
- ), [ut, mt] = u({}), [Q, ft] = u(!1), [T, xe] = u(() => l ?? {}), [pt, Ne] = u(""), [kt, ht] = u(!1), [wt, bt] = u(
162
+ ), [ct, lt] = m({}), [Q, it] = m(!1), [O, Ae] = m(() => l ?? {}), [dt, We] = m(""), [ut, mt] = m(!1), [ft, pt] = m(
169
163
  () => Object.values(l ?? {}).some(Boolean)
170
- ), Ie = i(l);
171
- C(() => {
172
- l !== Ie.current && (Ie.current = l, xe(l ?? {}), l != null && l.parameters && Y(!0), bt(Object.values(l ?? {}).some(Boolean)), W(Je(l)));
164
+ ), Ce = i(l);
165
+ A(() => {
166
+ l !== Ce.current && (Ce.current = l, Ae(l ?? {}), l != null && l.parameters && Y(!0), pt(Object.values(l ?? {}).some(Boolean)), F(Ke(l)));
173
167
  }, [l]);
174
- const B = (e) => mt(
168
+ const R = (e) => lt(
175
169
  (t) => t[e] ? t : { ...t, [e]: !0 }
176
- ), A = (e) => xe(
170
+ ), T = (e) => Ae(
177
171
  (t) => t[e] ? { ...t, [e]: void 0 } : t
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);
179
- C(() => {
172
+ ), P = i(null), xe = i(null), M = i(null), Ne = i(null), Ie = i(null), Ee = i(null), Z = i(/* @__PURE__ */ new Map()), j = i(/* @__PURE__ */ new Map()), V = i(/* @__PURE__ */ new Set()), ee = i(null);
173
+ A(() => {
180
174
  var t;
181
175
  const e = ee.current;
182
- e && (ee.current = null, (t = q.current.get(e.key)) == null || t.setSelectionRange(e.position, e.position));
176
+ e && (ee.current = null, (t = j.current.get(e.key)) == null || t.setSelectionRange(e.position, e.position));
183
177
  });
184
- const [gt, vt] = u(!1);
185
- Jt(() => {
186
- const e = M.current;
178
+ const [kt, ht] = m(!1);
179
+ Kt(() => {
180
+ const e = P.current;
187
181
  if (!e) return;
188
- const t = () => vt(
189
- e.getBoundingClientRect().width >= so
182
+ const t = () => ht(
183
+ e.getBoundingClientRect().width >= eo
190
184
  );
191
185
  if (t(), typeof ResizeObserver > "u") return;
192
186
  const r = new ResizeObserver(t);
193
187
  return r.observe(e), () => r.disconnect();
194
188
  }, []);
195
- const te = D === "two-column" && gt, yt = _t(
189
+ const te = S === "two-column" && kt, wt = Mt(
196
190
  (e) => {
197
- M.current = e, typeof E == "function" ? E(e) : E && (E.current = e);
191
+ P.current = e, typeof N == "function" ? N(e) : N && (N.current = e);
198
192
  },
199
- [E]
200
- ), F = (e) => {
201
- Ne("");
193
+ [N]
194
+ ), q = (e) => {
195
+ We("");
202
196
  let t = 0;
203
197
  const r = () => {
204
- var m;
205
- if (((m = Be.current) == null ? void 0 : m.closest('[aria-hidden="true"]')) && t < 60) {
198
+ var u;
199
+ if (((u = Ee.current) == null ? void 0 : u.closest('[aria-hidden="true"]')) && t < 60) {
206
200
  t += 1, window.requestAnimationFrame(r);
207
201
  return;
208
202
  }
209
- Ne(e);
203
+ We(e);
210
204
  };
211
205
  window.requestAnimationFrame(r);
212
206
  }, oe = () => {
@@ -218,18 +212,18 @@ const fo = Ht(
218
212
  } catch {
219
213
  return o("workflowWebhookAction.urlInvalid");
220
214
  }
221
- if (!e.startsWith(no)) return o("workflowWebhookAction.urlHttps");
215
+ if (!e.startsWith(Zt)) return o("workflowWebhookAction.urlHttps");
222
216
  if (t.hostname === "") return o("workflowWebhookAction.urlInvalid");
223
217
  if (t.username !== "" || t.password !== "")
224
218
  return o("workflowWebhookAction.urlCredentials");
225
- }, ne = () => f.trim() === "" && !w ? o("workflowWebhookAction.secretRequired") : void 0, At = () => {
219
+ }, ne = () => f.trim() === "" && !w ? o("workflowWebhookAction.secretRequired") : void 0, bt = () => {
226
220
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
227
221
  for (const r of b) {
228
- const c = we(r) ? r.name : r.name.trim() === "" ? null : r.name;
222
+ const c = he(r) ? r.name : r.name.trim() === "" ? null : r.name;
229
223
  c !== null && t.set(c, (t.get(c) ?? 0) + 1);
230
224
  }
231
225
  for (const r of b)
232
- if (!we(r)) {
226
+ if (!he(r)) {
233
227
  if (r.name.trim() === "") {
234
228
  r.value !== "" && e.set(
235
229
  r.key,
@@ -243,111 +237,107 @@ const fo = Ht(
243
237
  );
244
238
  }
245
239
  return e;
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 = () => {
240
+ }, Oe = () => E ? void 0 : o("workflowWebhookAction.legalBasisRequired"), re = (e) => Q || ct[e] === !0, Re = bt(), gt = O.url ?? (re("url") ? oe() : void 0), vt = O.secret ?? (re("secret") ? ne() : void 0), H = O.legalBasisConfirmed ?? (Q ? Oe() : void 0), yt = (e) => re(`parameter:${e}`) ? Re.get(e) : void 0, _ = !Q && !ft && !ut, Te = () => {
247
241
  if (oe()) return { kind: "url" };
248
242
  if (ne()) return { kind: "secret" };
249
- if (Fe()) return { kind: "legal" };
250
- const e = b.find((t) => Se.has(t.key));
243
+ if (Oe()) return { kind: "legal" };
244
+ const e = b.find((t) => Re.has(t.key));
251
245
  return e ? { kind: "parameter", key: e.key } : void 0;
252
- }, De = i(Le);
253
- De.current = Le;
254
- const [K, W] = u(
255
- () => Je(l)
246
+ }, Fe = i(Te);
247
+ Fe.current = Te;
248
+ const [$, F] = m(
249
+ () => Ke(l)
256
250
  );
257
- C(() => {
258
- if (!K) return;
251
+ A(() => {
252
+ if (!$) return;
259
253
  const e = (() => {
260
254
  var t;
261
- switch (K.kind) {
255
+ switch ($.kind) {
262
256
  case "url":
263
- return Ee.current;
257
+ return xe.current;
264
258
  case "secret":
265
- return j.current;
259
+ return M.current;
266
260
  case "legal":
267
- return Te.current;
268
- case "copy":
269
- return Re.current;
261
+ return Ie.current;
270
262
  case "parametersError":
271
- return Oe.current;
263
+ return Ne.current;
272
264
  case "add":
273
- return (t = M.current) == null ? void 0 : t.querySelector(
265
+ return (t = P.current) == null ? void 0 : t.querySelector(
274
266
  '[data-slot="parameters"] [data-component="field-array"] > button'
275
267
  );
276
268
  case "parameter":
277
- return Z.current.get(K.key);
269
+ return Z.current.get($.key);
278
270
  }
279
271
  })();
280
272
  e == null || e.focus();
281
- }, [K]), C(() => {
273
+ }, [$]), A(() => {
282
274
  var r;
283
- const e = (r = M.current) == null ? void 0 : r.closest("form");
275
+ const e = (r = P.current) == null ? void 0 : r.closest("form");
284
276
  if (!e) return;
285
277
  const t = (c) => {
286
- const m = De.current();
287
- m && (c.preventDefault(), ft(!0), m.kind === "parameter" && Y(!0), W({ ...m }));
278
+ const u = Fe.current();
279
+ u && (c.preventDefault(), it(!0), u.kind === "parameter" && Y(!0), F({ ...u }));
288
280
  };
289
281
  return e.addEventListener("submit", t), () => e.removeEventListener("submit", t);
290
282
  }, []);
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);
296
- C(() => {
283
+ const g = no(b), se = ro(g), X = i(v);
284
+ X.current = v;
285
+ const Be = i(g);
286
+ Be.current = g;
287
+ const Le = i(!1);
288
+ A(() => {
297
289
  var e;
298
- if (!Me.current) {
299
- Me.current = !0;
290
+ if (!Le.current) {
291
+ Le.current = !0;
300
292
  return;
301
293
  }
302
- (e = $.current) == null || e.call($, {
294
+ (e = X.current) == null || e.call(X, {
303
295
  url: y,
304
296
  secret: f,
305
- parameters: Object.fromEntries(Pe.current),
306
- legalBasisConfirmed: O
297
+ parameters: Object.fromEntries(Be.current),
298
+ legalBasisConfirmed: E
307
299
  });
308
- }, [y, f, se, O]);
300
+ }, [y, f, se, E]);
309
301
  const {
310
- status: je,
311
- copiedValue: Nt,
312
- copy: It,
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 () => {
302
+ status: Se,
303
+ copiedValue: At,
304
+ copy: Wt,
305
+ reset: Ct
306
+ } = Ue(), ae = Se === "copied" && At === f, De = Se === "error", [Pe, ce] = m({ kind: "idle" }), B = i(0), xt = async () => {
317
307
  var r;
318
- if (!I) return;
308
+ if (!x) return;
319
309
  const e = oe() ? "url" : ne() ? "secret" : null;
320
310
  if (e) {
321
- B("url"), B("secret"), ht(!0), W({ kind: e });
311
+ R("url"), R("secret"), mt(!0), F({ kind: e });
322
312
  return;
323
313
  }
324
- S.current += 1;
325
- const t = S.current;
314
+ B.current += 1;
315
+ const t = B.current;
326
316
  ce({ kind: "sending" });
327
317
  try {
328
- const c = await I({
318
+ const c = await x({
329
319
  url: y.trim(),
330
- secret: ((r = j.current) == null ? void 0 : r.value) ?? f,
320
+ secret: ((r = M.current) == null ? void 0 : r.value) ?? f,
331
321
  parameters: Object.fromEntries(g),
332
- legalBasisConfirmed: O
322
+ legalBasisConfirmed: E
333
323
  });
334
- t === S.current && Ke({ kind: "done", result: c });
324
+ t === B.current && Me({ kind: "done", result: c });
335
325
  } catch {
336
- t === S.current && Ke({ kind: "failed" });
326
+ t === B.current && Me({ kind: "failed" });
337
327
  }
338
- }, Ke = (e) => {
328
+ }, Me = (e) => {
339
329
  ce(e);
340
- const t = Xe(e);
341
- t && F(t.text);
342
- }, X = `${y}
330
+ const t = qe(e);
331
+ t && q(t.text);
332
+ }, K = `${y}
343
333
  ${f}
344
- ${se}`, $e = i(X);
345
- C(() => {
346
- X !== $e.current && ($e.current = X, S.current += 1, ce(
334
+ ${se}`, je = i(K);
335
+ A(() => {
336
+ K !== je.current && (je.current = K, B.current += 1, ce(
347
337
  (e) => e.kind === "idle" ? e : { kind: "idle" }
348
338
  ));
349
- }, [X]);
350
- const Xe = (e) => {
339
+ }, [K]);
340
+ const qe = (e) => {
351
341
  if (e.kind === "failed")
352
342
  return { ok: !1, text: o("workflowWebhookAction.testFailed") };
353
343
  if (e.kind !== "done") return null;
@@ -363,98 +353,98 @@ ${se}`, $e = i(X);
363
353
  status: t.status
364
354
  })
365
355
  };
366
- }, Ot = async () => {
356
+ }, Nt = async () => {
367
357
  var t;
368
- const e = await It(((t = j.current) == null ? void 0 : t.value) ?? f);
369
- F(o(e ? "copyField.copySuccess" : "copyField.copyFailed"));
358
+ const e = await Wt(((t = M.current) == null ? void 0 : t.value) ?? f);
359
+ q(o(e ? "copyField.copySuccess" : "copyField.copyFailed"));
370
360
  }, le = (e, t) => {
371
- J(
361
+ G(
372
362
  (r) => r.map((c) => c.key === e ? { ...c, ...t } : c)
373
- ), A("parameters");
374
- }, Tt = () => {
375
- const e = at();
376
- J((t) => [...t, { key: e, name: "", value: "" }]), W({ kind: "parameter", key: e });
377
- }, Bt = (e) => {
378
- const t = b.filter((m, de) => de !== e), r = b[e];
379
- r && (Z.current.delete(r.key), q.current.delete(r.key), V.current.delete(r.key)), J(t), A("parameters");
363
+ ), T("parameters");
364
+ }, It = () => {
365
+ const e = ot();
366
+ G((t) => [...t, { key: e, name: "", value: "" }]), F({ kind: "parameter", key: e });
367
+ }, Et = (e) => {
368
+ const t = b.filter((u, de) => de !== e), r = b[e];
369
+ r && (Z.current.delete(r.key), j.current.delete(r.key), V.current.delete(r.key)), G(t), T("parameters");
380
370
  const c = t[e] ?? t[e - 1];
381
- W(
371
+ F(
382
372
  c ? { kind: "parameter", key: c.key } : { kind: "add" }
383
373
  );
384
- }, Ft = (e, t) => {
385
- var ze;
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;
389
- F(
374
+ }, Ot = (e, t) => {
375
+ var He;
376
+ const r = j.current.get(e.key), c = r !== void 0 && V.current.has(e.key), u = c ? r.selectionStart ?? e.value.length : e.value.length, de = c ? r.selectionEnd ?? u : u, Lt = e.value.slice(0, u) + t + e.value.slice(de);
377
+ ee.current = { key: e.key, position: u + t.length }, le(e.key, { value: Lt });
378
+ const St = (He = I.find((Dt) => Dt.value === t)) == null ? void 0 : He.label;
379
+ q(
390
380
  o("workflowWebhookAction.placeholderInserted", {
391
- detail: jt ?? t
381
+ detail: St ?? t
392
382
  })
393
383
  );
394
- }, St = (e) => F(o(e ? "copyField.copySuccess" : "copyField.copyFailed")), ie = (e, t, r = 2) => /* @__PURE__ */ n(
384
+ }, Rt = (e) => q(o(e ? "copyField.copySuccess" : "copyField.copyFailed")), ie = (e, t, r = 2) => /* @__PURE__ */ n(
395
385
  "dl",
396
386
  {
397
387
  "aria-labelledby": e,
398
- className: Vt({
388
+ className: Jt({
399
389
  columns: te ? r : 1
400
390
  }),
401
- children: t.map(([c, m]) => /* @__PURE__ */ n(
402
- mo,
391
+ children: t.map(([c, u]) => /* @__PURE__ */ n(
392
+ so,
403
393
  {
404
394
  name: c,
405
- description: m,
406
- onCopied: St
395
+ description: u,
396
+ onCopied: Rt
407
397
  },
408
398
  c
409
399
  ))
410
400
  }
411
- ), Lt = JSON.stringify(
412
- { ...ao, parameters: Object.fromEntries(g) },
401
+ ), Tt = JSON.stringify(
402
+ { ...to, parameters: Object.fromEntries(g) },
413
403
  null,
414
404
  2
415
- ), Dt = /* @__PURE__ */ d(
405
+ ), Ft = /* @__PURE__ */ d(
416
406
  "div",
417
407
  {
418
408
  "data-columns": te ? 2 : 1,
419
409
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xl)]",
420
410
  children: [
421
- /* @__PURE__ */ d("div", { className: fe(), children: [
422
- /* @__PURE__ */ n("h4", { id: ge, className: pe(), children: o("workflowWebhookAction.bodyHeading") }),
423
- /* @__PURE__ */ n("p", { className: x(), children: o("workflowWebhookAction.sentDescription") }),
411
+ /* @__PURE__ */ d("div", { className: me(), children: [
412
+ /* @__PURE__ */ n("h4", { id: be, className: fe(), children: o("workflowWebhookAction.bodyHeading") }),
413
+ /* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.sentDescription") }),
424
414
  /* @__PURE__ */ n(
425
- Ue,
415
+ _e,
426
416
  {
427
417
  language: "json",
428
- code: Lt,
418
+ code: Tt,
429
419
  copyLabel: o("workflowWebhookAction.copyBody")
430
420
  }
431
421
  ),
432
- ie(ge, rt)
422
+ ie(be, et)
433
423
  ] }),
434
- /* @__PURE__ */ d("div", { className: fe(), children: [
435
- /* @__PURE__ */ n("h4", { id: ve, className: pe(), children: o("workflowWebhookAction.headersHeading") }),
436
- /* @__PURE__ */ n("p", { className: x(), children: o("workflowWebhookAction.headersDescription") }),
424
+ /* @__PURE__ */ d("div", { className: me(), children: [
425
+ /* @__PURE__ */ n("h4", { id: ge, className: fe(), children: o("workflowWebhookAction.headersHeading") }),
426
+ /* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.headersDescription") }),
437
427
  /* @__PURE__ */ n(
438
- Ue,
428
+ _e,
439
429
  {
440
430
  language: "http",
441
- code: co,
431
+ code: oo,
442
432
  copyLabel: o("workflowWebhookAction.copyHeaders")
443
433
  }
444
434
  ),
445
- ie(ve, st)
435
+ ie(ge, tt)
446
436
  ] })
447
437
  ]
448
438
  }
449
- ), z = p !== void 0, Pt = o(lt ? "workflowWebhookAction.generatedNotice" : w ? "workflowWebhookAction.secretSavedDescription" : "workflowWebhookAction.secretDescription");
439
+ ), z = p !== void 0, Bt = o(w ? "workflowWebhookAction.secretSavedDescription" : "workflowWebhookAction.secretDescription");
450
440
  return /* @__PURE__ */ d(
451
441
  "div",
452
442
  {
453
- ref: yt,
454
- ...nt,
443
+ ref: wt,
444
+ ...Ve,
455
445
  "data-component": "workflow-webhook-action",
456
446
  "data-layout": te ? "two-column" : "one-column",
457
- className: Zt({ className: ot }),
447
+ className: Ut({ className: Ze }),
458
448
  children: [
459
449
  s ? /* @__PURE__ */ n(
460
450
  "div",
@@ -464,33 +454,33 @@ ${se}`, $e = i(X);
464
454
  children: s
465
455
  }
466
456
  ) : null,
467
- /* @__PURE__ */ n("p", { className: x(), children: o("workflowWebhookAction.intro") }),
457
+ /* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.intro") }),
468
458
  /* @__PURE__ */ n(
469
- G,
459
+ J,
470
460
  {
471
461
  label: o("workflowWebhookAction.url"),
472
462
  description: o("workflowWebhookAction.urlDescription"),
473
463
  required: !0,
474
- error: Wt,
464
+ error: gt,
475
465
  announceError: _,
476
466
  "data-field": "url",
477
467
  children: /* @__PURE__ */ n(
478
- me,
468
+ ue,
479
469
  {
480
- ref: Ee,
470
+ ref: xe,
481
471
  name: z ? p.url : void 0,
482
472
  dir: "ltr",
483
473
  inputMode: "url",
484
474
  autoComplete: "off",
485
475
  spellCheck: !1,
486
- maxLength: ro,
476
+ maxLength: Vt,
487
477
  placeholder: "https://",
488
478
  value: y,
489
479
  onChange: (e) => {
490
- ct(e.target.value), A("url");
480
+ nt(e.target.value), T("url");
491
481
  },
492
482
  onBlur: (e) => {
493
- e.target.value !== "" && B("url");
483
+ e.target.value !== "" && R("url");
494
484
  }
495
485
  }
496
486
  )
@@ -503,88 +493,73 @@ ${se}`, $e = i(X);
503
493
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
504
494
  children: [
505
495
  /* @__PURE__ */ n(
506
- G,
496
+ J,
507
497
  {
508
498
  label: o("workflowWebhookAction.secret"),
509
- description: Pt,
499
+ description: Bt,
510
500
  ...w ? { optional: !0 } : { required: !0 },
511
- error: Ct,
501
+ error: vt,
512
502
  announceError: _,
513
503
  children: /* @__PURE__ */ n(
514
- Ut,
504
+ $t,
515
505
  {
516
- ref: j,
506
+ ref: M,
517
507
  name: z ? p.secret : "",
518
508
  dir: "ltr",
519
509
  autoComplete: "new-password",
520
510
  spellCheck: !1,
521
511
  value: f,
522
512
  onChange: (e) => {
523
- We(e.target.value), Ce(!1), qe(), A("secret");
513
+ rt(e.target.value), Ct(), T("secret");
524
514
  },
525
515
  onBlur: (e) => {
526
- e.target.value !== "" && B("secret");
516
+ e.target.value !== "" && R("secret");
527
517
  }
528
518
  }
529
519
  )
530
520
  }
531
521
  ),
532
- /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)]", children: [
533
- /* @__PURE__ */ n(
534
- ue,
535
- {
536
- type: "button",
537
- intent: "outline",
538
- size: "sm",
539
- startIcon: /* @__PURE__ */ n(Yt, {}),
540
- "data-action": "generate-secret",
541
- onClick: Et,
542
- children: o("workflowWebhookAction.generate")
543
- }
544
- ),
545
- /* @__PURE__ */ n(
546
- ue,
547
- {
548
- ref: Re,
549
- type: "button",
550
- intent: "outline",
551
- size: "sm",
552
- disabled: f === "",
553
- startIcon: ae ? /* @__PURE__ */ n(Ze, {}) : He ? /* @__PURE__ */ n(he, {}) : /* @__PURE__ */ n(Ve, {}),
554
- "data-action": "copy-secret",
555
- "data-copied": ae ? "true" : void 0,
556
- onClick: () => void Ot(),
557
- children: o(ae ? "copyField.copied" : He ? "copyField.copyFailed" : "workflowWebhookAction.copySecret")
558
- }
559
- )
560
- ] })
522
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ n(
523
+ $e,
524
+ {
525
+ type: "button",
526
+ intent: "outline",
527
+ size: "sm",
528
+ disabled: f === "",
529
+ startIcon: ae ? /* @__PURE__ */ n(Je, {}) : De ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(Ge, {}),
530
+ "data-action": "copy-secret",
531
+ "data-copied": ae ? "true" : void 0,
532
+ onClick: () => void Nt(),
533
+ children: o(ae ? "copyField.copied" : De ? "copyField.copyFailed" : "workflowWebhookAction.copySecret")
534
+ }
535
+ ) })
561
536
  ]
562
537
  }
563
538
  ),
564
- I ? /* @__PURE__ */ d(
539
+ x ? /* @__PURE__ */ d(
565
540
  "div",
566
541
  {
567
542
  "data-slot": "send-test",
568
543
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
569
544
  children: [
570
- /* @__PURE__ */ n("p", { id: Ae, className: x(), children: o("workflowWebhookAction.testDescription") }),
545
+ /* @__PURE__ */ n("p", { id: ye, className: W(), children: o("workflowWebhookAction.testDescription") }),
571
546
  /* @__PURE__ */ n(
572
- ue,
547
+ $e,
573
548
  {
574
549
  type: "button",
575
550
  intent: "outline",
576
551
  size: "sm",
577
- startIcon: /* @__PURE__ */ n(Qt, {}),
578
- loading: _e.kind === "sending",
579
- "aria-describedby": Ae,
552
+ startIcon: /* @__PURE__ */ n(zt, {}),
553
+ loading: Pe.kind === "sending",
554
+ "aria-describedby": ye,
580
555
  className: "ds:self-start",
581
556
  "data-action": "send-test",
582
- onClick: () => void Rt(),
557
+ onClick: () => void xt(),
583
558
  children: o("workflowWebhookAction.sendTest")
584
559
  }
585
560
  ),
586
561
  (() => {
587
- const e = Xe(_e);
562
+ const e = qe(Pe);
588
563
  return e ? /* @__PURE__ */ n(
589
564
  U,
590
565
  {
@@ -606,31 +581,31 @@ ${se}`, $e = i(X);
606
581
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
607
582
  children: [
608
583
  /* @__PURE__ */ n(
609
- Xt,
584
+ Ht,
610
585
  {
611
- ref: Te,
586
+ ref: Ie,
612
587
  name: z ? p.legalBasisConfirmed : void 0,
613
588
  value: "1",
614
- checked: O,
589
+ checked: E,
615
590
  onCheckedChange: (e) => {
616
- it(e === !0), A("legalBasisConfirmed");
591
+ st(e === !0), T("legalBasisConfirmed");
617
592
  },
618
593
  "aria-required": "true",
619
594
  "aria-invalid": H ? !0 : void 0,
620
- "aria-describedby": H ? be : void 0,
595
+ "aria-describedby": H ? we : void 0,
621
596
  label: o("workflowWebhookAction.legalBasis")
622
597
  }
623
598
  ),
624
599
  H ? /* @__PURE__ */ d(
625
600
  "p",
626
601
  {
627
- id: be,
602
+ id: we,
628
603
  role: _ ? "alert" : void 0,
629
604
  "data-slot": "error",
630
- className: to(),
605
+ className: Yt(),
631
606
  children: [
632
607
  /* @__PURE__ */ n(
633
- he,
608
+ ke,
634
609
  {
635
610
  "aria-hidden": "true",
636
611
  className: "ds:size-4 ds:shrink-0"
@@ -651,34 +626,34 @@ ${se}`, $e = i(X);
651
626
  value: se
652
627
  }
653
628
  ) : null,
654
- /* @__PURE__ */ n("div", { "data-field": "parameters", "data-slot": "parameters", children: /* @__PURE__ */ n(Ge, { variant: "elevated", children: /* @__PURE__ */ n(
629
+ /* @__PURE__ */ n("div", { "data-field": "parameters", "data-slot": "parameters", children: /* @__PURE__ */ n(Xe, { variant: "elevated", children: /* @__PURE__ */ n(
655
630
  k,
656
631
  {
657
632
  type: "single",
658
633
  collapsible: !0,
659
- value: dt ? "advanced" : "",
634
+ value: at ? "advanced" : "",
660
635
  onValueChange: (e) => Y(e === "advanced"),
661
636
  children: /* @__PURE__ */ d(k.Item, { value: "advanced", children: [
662
637
  /* @__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: [
663
638
  /* @__PURE__ */ n("span", { children: o("workflowWebhookAction.advanced") }),
664
- g.length > 0 ? /* @__PURE__ */ n(Kt, { variant: "neutral", size: "md", children: o("workflowWebhookAction.parameterCount", {
639
+ g.length > 0 ? /* @__PURE__ */ n(jt, { variant: "neutral", size: "md", children: o("workflowWebhookAction.parameterCount", {
665
640
  total: g.length
666
641
  }) }) : null
667
642
  ] }) }),
668
643
  /* @__PURE__ */ n(k.Content, { children: /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
669
- /* @__PURE__ */ n("p", { className: x(), children: o("workflowWebhookAction.advancedDescription") }),
670
- T.parameters ? /* @__PURE__ */ n(
644
+ /* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.advancedDescription") }),
645
+ O.parameters ? /* @__PURE__ */ n(
671
646
  "div",
672
647
  {
673
- ref: Oe,
648
+ ref: Ne,
674
649
  tabIndex: -1,
675
650
  "data-slot": "error",
676
651
  className: "ds:outline-none",
677
- children: /* @__PURE__ */ n(U, { variant: "error", announce: "off", children: /* @__PURE__ */ n(U.Description, { children: T.parameters }) })
652
+ children: /* @__PURE__ */ n(U, { variant: "error", announce: "off", children: /* @__PURE__ */ n(U.Description, { children: O.parameters }) })
678
653
  }
679
654
  ) : null,
680
655
  /* @__PURE__ */ n(
681
- zt,
656
+ _t,
682
657
  {
683
658
  legend: o("workflowWebhookAction.parametersLegend"),
684
659
  items: b,
@@ -686,22 +661,22 @@ ${se}`, $e = i(X);
686
661
  removeItemLabel: (e) => o("workflowWebhookAction.removeParameter", {
687
662
  number: e + 1
688
663
  }),
689
- onAdd: Tt,
690
- onRemove: Bt,
664
+ onAdd: It,
665
+ onRemove: Et,
691
666
  renderItem: (e, t) => /* @__PURE__ */ d(
692
667
  "div",
693
668
  {
694
669
  "data-parameter-id": e.key,
695
- className: oo(),
670
+ className: Qt(),
696
671
  children: [
697
672
  /* @__PURE__ */ n(
698
- G,
673
+ J,
699
674
  {
700
675
  label: o("workflowWebhookAction.parameterName"),
701
- error: xt(e.key),
676
+ error: yt(e.key),
702
677
  announceError: _,
703
678
  children: /* @__PURE__ */ n(
704
- me,
679
+ ue,
705
680
  {
706
681
  ref: (r) => {
707
682
  r && Z.current.set(e.key, r);
@@ -715,20 +690,20 @@ ${se}`, $e = i(X);
715
690
  spellCheck: !1,
716
691
  value: e.name,
717
692
  onChange: (r) => le(e.key, { name: r.target.value }),
718
- onBlur: () => B(`parameter:${e.key}`)
693
+ onBlur: () => R(`parameter:${e.key}`)
719
694
  }
720
695
  )
721
696
  }
722
697
  ),
723
698
  /* @__PURE__ */ n(
724
- G,
699
+ J,
725
700
  {
726
701
  label: o("workflowWebhookAction.parameterValue"),
727
702
  children: /* @__PURE__ */ n(
728
- me,
703
+ ue,
729
704
  {
730
705
  ref: (r) => {
731
- r && q.current.set(e.key, r);
706
+ r && j.current.set(e.key, r);
732
707
  },
733
708
  "aria-label": o(
734
709
  "workflowWebhookAction.parameterValueOf",
@@ -745,17 +720,17 @@ ${se}`, $e = i(X);
745
720
  )
746
721
  }
747
722
  ),
748
- R.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:sm:col-span-2", children: /* @__PURE__ */ n(
749
- Gt,
723
+ I.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:sm:col-span-2", children: /* @__PURE__ */ n(
724
+ Xt,
750
725
  {
751
- tokens: R.map((r) => ({
726
+ tokens: I.map((r) => ({
752
727
  value: r.value,
753
728
  label: r.label
754
729
  })),
755
730
  triggerLabel: o(
756
731
  "workflowWebhookAction.insertDetail"
757
732
  ),
758
- onInsert: (r) => Ft(e, r)
733
+ onInsert: (r) => Ot(e, r)
759
734
  }
760
735
  ) }) : null
761
736
  ]
@@ -763,19 +738,19 @@ ${se}`, $e = i(X);
763
738
  )
764
739
  }
765
740
  ),
766
- R.length > 0 ? /* @__PURE__ */ d("div", { className: fe(), children: [
741
+ I.length > 0 ? /* @__PURE__ */ d("div", { className: me(), children: [
767
742
  /* @__PURE__ */ n(
768
743
  "h4",
769
744
  {
770
- id: ye,
771
- className: pe(),
745
+ id: ve,
746
+ className: fe(),
772
747
  children: o("workflowWebhookAction.variablesHeading")
773
748
  }
774
749
  ),
775
- /* @__PURE__ */ n("p", { className: x(), children: o("workflowWebhookAction.variablesDescription") }),
750
+ /* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.variablesDescription") }),
776
751
  ie(
777
- ye,
778
- R.map(
752
+ ve,
753
+ I.map(
779
754
  (e) => [e.value, e.label]
780
755
  ),
781
756
  3
@@ -785,18 +760,18 @@ ${se}`, $e = i(X);
785
760
  ] })
786
761
  }
787
762
  ) }) }),
788
- /* @__PURE__ */ n("div", { "data-slot": "reference", children: /* @__PURE__ */ n(Ge, { variant: "elevated", children: /* @__PURE__ */ n(k, { type: "single", collapsible: !0, children: /* @__PURE__ */ d(k.Item, { value: "reference", children: [
763
+ /* @__PURE__ */ n("div", { "data-slot": "reference", children: /* @__PURE__ */ n(Xe, { variant: "elevated", children: /* @__PURE__ */ n(k, { type: "single", collapsible: !0, children: /* @__PURE__ */ d(k.Item, { value: "reference", children: [
789
764
  /* @__PURE__ */ n(k.Trigger, { "data-action": "toggle-reference", children: /* @__PURE__ */ n("span", { children: o("workflowWebhookAction.sentHeading") }) }),
790
- /* @__PURE__ */ n(k.Content, { children: Dt })
765
+ /* @__PURE__ */ n(k.Content, { children: Ft })
791
766
  ] }) }) }) }),
792
767
  /* @__PURE__ */ n(
793
768
  "span",
794
769
  {
795
- ref: Be,
770
+ ref: Ee,
796
771
  role: "status",
797
772
  "aria-live": "polite",
798
773
  className: "ds:sr-only",
799
- children: pt
774
+ children: dt
800
775
  }
801
776
  )
802
777
  ]
@@ -804,9 +779,9 @@ ${se}`, $e = i(X);
804
779
  );
805
780
  }
806
781
  );
807
- fo.displayName = "WorkflowWebhookAction";
782
+ ao.displayName = "WorkflowWebhookAction";
808
783
  export {
809
- Mo as W,
810
- fo as a
784
+ To as W,
785
+ ao as a
811
786
  };
812
- //# sourceMappingURL=workflow-webhook-action-dgUjv9T7.js.map
787
+ //# sourceMappingURL=workflow-webhook-action-Cae02r_4.js.map