@alfadocs/ui-kit 1.67.0 → 1.69.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 (307) hide show
  1. package/dist/_chunks/{address-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
  4. package/dist/_chunks/{ai-credits-exhausted-notice-DfAgfZDF.js → ai-credits-exhausted-notice-Bg8NpW2K.js} +2 -2
  5. package/dist/_chunks/{ai-permission-notice-qsdm4Sx4.js → ai-permission-notice-C00i6VhY.js} +2 -2
  6. package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
  7. package/dist/_chunks/{alert-DjsJMGRE.js → alert-9kEwDza3.js} +122 -112
  8. package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-DEMMoefU.js} +4 -4
  9. package/dist/_chunks/{anamnesis-card-CsUBOG32.js → anamnesis-card-Bey9qQu4.js} +2 -2
  10. package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
  11. package/dist/_chunks/{anamnesis-summary-rows-BQ_EokKz.js → anamnesis-summary-rows-rNwSrNWZ.js} +393 -389
  12. package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
  13. package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-CpcqB8oO.js} +3 -3
  14. package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
  15. package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
  16. package/dist/_chunks/{audio-recorder-B11RR-rC.js → audio-recorder-4Ll0pwYK.js} +3 -3
  17. package/dist/_chunks/{auth-form-parts-DwUTH6YN.js → auth-form-parts-B40zvD-a.js} +2 -2
  18. package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
  19. package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
  20. package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
  21. package/dist/_chunks/{booking-tTVxKPQY.js → booking-B1pDbERi.js} +377 -335
  22. package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
  23. package/dist/_chunks/{calendar-workspace-MRrzcxAy.js → calendar-workspace-Ct8_454k.js} +18 -18
  24. package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-C2VXQMoB.js} +3 -3
  25. package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
  26. package/dist/_chunks/{code-block-vwEv1jEa.js → code-block-RSKdF3E-.js} +35 -35
  27. package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
  28. package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
  29. package/dist/_chunks/{connection-status--wYsgreh.js → connection-status-BOZC5QU5.js} +2 -2
  30. package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
  31. package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
  32. package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
  33. package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
  34. package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
  35. package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
  36. package/dist/_chunks/{description-list-Q8640NHu.js → description-list-DQQ2OA_t.js} +68 -66
  37. package/dist/_chunks/{document-preview-VyQOjFVL.js → document-preview-513f3iPn.js} +4 -4
  38. package/dist/_chunks/{document-scanner-CXH_GYh4.js → document-scanner-Bd3wbzpI.js} +2 -2
  39. package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
  40. package/dist/_chunks/{entity-summary-Bj-Wxq7Y.js → entity-summary-C2B8yNmc.js} +4 -4
  41. package/dist/_chunks/{error-summary-PUE5Zxp9.js → error-summary-mGxIyDAY.js} +2 -2
  42. package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
  43. package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
  44. package/dist/_chunks/{forgot-password-form-CPOfRE0C.js → forgot-password-form-Dqi7R-NL.js} +4 -4
  45. package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
  46. package/dist/_chunks/{freemium-paywall-6DO7noHX.js → freemium-paywall-C73C8Rgd.js} +2 -2
  47. package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
  48. package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
  49. package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
  50. package/dist/_chunks/{help-me-write-templates-Bw3Q58x-.js → help-me-write-templates-5WkUfvc_.js} +3 -3
  51. package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
  52. package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
  53. package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
  54. package/dist/_chunks/{login-dev-card-A-CL3mjt.js → login-dev-card-vEL-o5wq.js} +3 -3
  55. package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
  56. package/dist/_chunks/{marketplace-app-shell-DtSX8sYb.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
  57. package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
  58. package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
  59. package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
  60. package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
  61. package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
  62. package/dist/_chunks/{notes-panel-IdsmqRFC.js → notes-panel-BXN46XkF.js} +6 -6
  63. package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
  64. package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
  65. package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
  66. package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-D5c7FBlT.js} +526 -510
  67. package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
  68. package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
  69. package/dist/_chunks/{patient-details-C-EWQTms.js → patient-details-qWOsn1MX.js} +5 -5
  70. package/dist/_chunks/{patient-field-row-lY-Tb5Mo.js → patient-field-row-CAl5ydtX.js} +5 -5
  71. package/dist/_chunks/{patient-search-DpAKidZ5.js → patient-search-BADdx3M1.js} +2 -2
  72. package/dist/_chunks/{patient-summary-card-Bpto_VCD.js → patient-summary-card-BhuRh9AE.js} +4 -4
  73. package/dist/_chunks/{payment-automation-upsell-BQ307qEX.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
  74. package/dist/_chunks/{payment-form-XKtinW8r.js → payment-form-PBuh8PIa.js} +2 -2
  75. package/dist/_chunks/{payment-request-card-0DjQgVgX.js → payment-request-card-bysjRZrP.js} +2 -2
  76. package/dist/_chunks/{pdf-viewer-BvoVMjH4.js → pdf-viewer-gAsNUsA8.js} +2 -2
  77. package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
  78. package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
  79. package/dist/_chunks/{practice-results-BrUDDMXC.js → practice-results-BzThnpnm.js} +328 -298
  80. package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
  81. package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
  82. package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
  83. package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
  84. package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
  85. package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
  86. package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
  87. package/dist/_chunks/{registration-form-BxwqUZzk.js → registration-form-1B0PTDal.js} +4 -4
  88. package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-sbsVmmCA.js} +30 -8
  89. package/dist/_chunks/{rich-text-editor-aCIoptbg.js → rich-text-editor-56dSsyZI.js} +3 -3
  90. package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
  91. package/dist/_chunks/{sign-document-D1P1nUQA.js → sign-document-BiOTs1P4.js} +2 -2
  92. package/dist/_chunks/{signature-request-3u6TvRt2.js → signature-request-DAmNj_uq.js} +5 -5
  93. package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
  94. package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
  95. package/dist/_chunks/{streaming-text-zFViGexf.js → streaming-text-DbqKTsmj.js} +2 -2
  96. package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
  97. package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
  98. package/dist/_chunks/{task-editor-Bb5MMcid.js → task-editor-BomyxGoZ.js} +8 -8
  99. package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
  100. package/dist/_chunks/{tasks-panel-BOb57Ysw.js → tasks-panel-ATz9JDy8.js} +6 -6
  101. package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
  102. package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
  103. package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
  104. package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
  105. package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
  106. package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
  107. package/dist/_chunks/{use-appointment-details-read-CVSPoP5j.js → use-appointment-details-read-1gjZuup4.js} +13 -13
  108. package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
  109. package/dist/_chunks/{voice-control-panel-BJIEbDq6.js → voice-control-panel-B8Lrk0C4.js} +4 -4
  110. package/dist/_chunks/{warning-stack-BdY-0bd3.js → warning-stack-BhHUmRiD.js} +2 -2
  111. package/dist/_chunks/{workflow-map-CYbRD9ek.js → workflow-map-ln4_OG8A.js} +2 -2
  112. package/dist/_chunks/workflow-webhook-action-Ct8tFYi7.js +691 -0
  113. package/dist/agent-catalog.json +271 -4
  114. package/dist/agent-i18n/en.json +34 -1
  115. package/dist/components/_shared/code-block.d.ts +6 -0
  116. package/dist/components/_shared/format-number.d.ts +20 -0
  117. package/dist/components/_shared/length-token.d.ts +12 -0
  118. package/dist/components/_shared/option.d.ts +1 -0
  119. package/dist/components/address-fields/index.js +1 -1
  120. package/dist/components/agenda-card/index.js +1 -1
  121. package/dist/components/agenda-tray/index.js +1 -1
  122. package/dist/components/ai-credits-notice/index.js +1 -1
  123. package/dist/components/ai-permission-notice/index.js +1 -1
  124. package/dist/components/ai-prompt-input/index.js +1 -1
  125. package/dist/components/alert/alert.d.ts +26 -0
  126. package/dist/components/alert/index.js +1 -1
  127. package/dist/components/anamnesis-card/index.js +1 -1
  128. package/dist/components/anamnesis-summary-card/index.js +1 -1
  129. package/dist/components/appointment-card/index.js +2 -2
  130. package/dist/components/appointment-details-panel/index.js +1 -1
  131. package/dist/components/appointment-peek/index.js +1 -1
  132. package/dist/components/appointment-timeline/index.js +1 -1
  133. package/dist/components/audio-recorder/index.js +1 -1
  134. package/dist/components/avatar/avatar.d.ts +2 -0
  135. package/dist/components/avatar/index.js +1 -1
  136. package/dist/components/bishop-score/index.js +1 -1
  137. package/dist/components/booking/index.js +1 -1
  138. package/dist/components/calendar/index.js +1 -1
  139. package/dist/components/chat-message/index.js +1 -1
  140. package/dist/components/clinical-note-card/index.js +1 -1
  141. package/dist/components/color-picker/index.js +1 -1
  142. package/dist/components/combobox/index.js +1 -1
  143. package/dist/components/connection-status/index.js +1 -1
  144. package/dist/components/contact-profile-card/index.js +1 -1
  145. package/dist/components/control-room-rail/index.js +1 -1
  146. package/dist/components/country-select/index.js +1 -1
  147. package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
  148. package/dist/components/dashboard-grid/index.js +1 -1
  149. package/dist/components/data-table/index.js +2 -2
  150. package/dist/components/dependent-selector/index.js +1 -1
  151. package/dist/components/description-list/index.js +1 -1
  152. package/dist/components/document-preview/index.js +1 -1
  153. package/dist/components/document-scanner/index.js +1 -1
  154. package/dist/components/editable-description/index.js +1 -1
  155. package/dist/components/entity-summary/index.js +1 -1
  156. package/dist/components/error-summary/index.js +1 -1
  157. package/dist/components/face-scheme/index.js +1 -1
  158. package/dist/components/file-manager/index.js +1 -1
  159. package/dist/components/freemium-paywall/index.js +1 -1
  160. package/dist/components/gestational-age-calculator/index.js +1 -1
  161. package/dist/components/header-settings/index.js +1 -1
  162. package/dist/components/heatmap/index.js +1 -1
  163. package/dist/components/index.d.ts +5 -2
  164. package/dist/components/map-view/index.d.ts +1 -1
  165. package/dist/components/map-view/index.js +1 -1
  166. package/dist/components/map-view/map-view.d.ts +51 -0
  167. package/dist/components/message-card/index.js +1 -1
  168. package/dist/components/message-tray/index.js +1 -1
  169. package/dist/components/multi-select/index.js +1 -1
  170. package/dist/components/muscle-scheme/index.js +1 -1
  171. package/dist/components/note-timeline/index.js +1 -1
  172. package/dist/components/notes-panel/index.js +1 -1
  173. package/dist/components/notice-group/index.d.ts +3 -0
  174. package/dist/components/notice-group/index.js +6 -0
  175. package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
  176. package/dist/components/notice-group/notice-group.d.ts +43 -0
  177. package/dist/components/notification-tray/index.js +1 -1
  178. package/dist/components/operator-hero/index.js +1 -1
  179. package/dist/components/optical-prescription/index.js +1 -1
  180. package/dist/components/optical-prescription/optical-prescription-data.d.ts +8 -8
  181. package/dist/components/panel-header/index.js +1 -1
  182. package/dist/components/panel-header/panel-header.d.ts +10 -0
  183. package/dist/components/panel-subview/index.js +1 -1
  184. package/dist/components/patient-details/index.js +1 -1
  185. package/dist/components/patient-search/index.js +1 -1
  186. package/dist/components/patient-summary-card/index.js +1 -1
  187. package/dist/components/patient-table/index.js +1 -1
  188. package/dist/components/payment-card/index.js +1 -1
  189. package/dist/components/payment-form/index.js +1 -1
  190. package/dist/components/pdf-viewer/index.js +1 -1
  191. package/dist/components/periodontal-risk-chart/index.js +1 -1
  192. package/dist/components/practice-profile-hero/index.js +1 -1
  193. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +4 -1
  194. package/dist/components/practice-results/index.js +1 -1
  195. package/dist/components/practice-results/practice-results.d.ts +10 -2
  196. package/dist/components/pregnancy-dating/index.js +1 -1
  197. package/dist/components/product-hub-tray/index.js +1 -1
  198. package/dist/components/progress-notice/index.d.ts +3 -0
  199. package/dist/components/progress-notice/index.js +6 -0
  200. package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
  201. package/dist/components/progress-notice/progress-notice.d.ts +81 -0
  202. package/dist/components/province-select/index.js +1 -1
  203. package/dist/components/radiograph-panel/index.js +1 -1
  204. package/dist/components/rating/index.js +1 -1
  205. package/dist/components/reviews-panel/index.js +1 -1
  206. package/dist/components/rich-text-editor/index.js +2 -2
  207. package/dist/components/select/index.js +1 -1
  208. package/dist/components/select/select.d.ts +6 -0
  209. package/dist/components/sign-document/index.js +1 -1
  210. package/dist/components/skeleton/index.d.ts +1 -1
  211. package/dist/components/skeleton/index.js +1 -1
  212. package/dist/components/skeleton/skeleton.d.ts +41 -1
  213. package/dist/components/skeleton-scheme/index.js +1 -1
  214. package/dist/components/slot-grid/index.js +1 -1
  215. package/dist/components/streaming-text/index.js +1 -1
  216. package/dist/components/tabs/index.js +1 -1
  217. package/dist/components/task-card/index.js +1 -1
  218. package/dist/components/task-editor/index.js +1 -1
  219. package/dist/components/task-tray/index.js +1 -1
  220. package/dist/components/tasks-panel/index.js +1 -1
  221. package/dist/components/theme-toggle/index.js +1 -1
  222. package/dist/components/timeline/index.js +1 -1
  223. package/dist/components/tool-rail/index.js +1 -1
  224. package/dist/components/transcript-panel/index.js +1 -1
  225. package/dist/components/treatment-receipt/index.js +1 -1
  226. package/dist/components/unit-converter/index.js +1 -1
  227. package/dist/components/voice-control-panel/index.js +1 -1
  228. package/dist/components/warning-stack/index.js +1 -1
  229. package/dist/components/workflow/index.js +1 -1
  230. package/dist/hooks/index.d.ts +1 -0
  231. package/dist/hooks/index.js +81 -76
  232. package/dist/hooks/use-dismissed.d.ts +58 -0
  233. package/dist/i18n/locales/ar.d.ts +77 -0
  234. package/dist/i18n/locales/ar.js +77 -0
  235. package/dist/i18n/locales/de.d.ts +77 -0
  236. package/dist/i18n/locales/de.js +77 -0
  237. package/dist/i18n/locales/el.d.ts +77 -0
  238. package/dist/i18n/locales/el.js +77 -0
  239. package/dist/i18n/locales/en.d.ts +77 -0
  240. package/dist/i18n/locales/en.js +77 -0
  241. package/dist/i18n/locales/es.d.ts +77 -0
  242. package/dist/i18n/locales/es.js +77 -0
  243. package/dist/i18n/locales/fr.d.ts +77 -0
  244. package/dist/i18n/locales/fr.js +77 -0
  245. package/dist/i18n/locales/hi.d.ts +77 -0
  246. package/dist/i18n/locales/hi.js +77 -0
  247. package/dist/i18n/locales/it.d.ts +77 -0
  248. package/dist/i18n/locales/it.js +77 -0
  249. package/dist/i18n/locales/ja.d.ts +77 -0
  250. package/dist/i18n/locales/ja.js +77 -0
  251. package/dist/i18n/locales/nl.d.ts +77 -0
  252. package/dist/i18n/locales/nl.js +77 -0
  253. package/dist/i18n/locales/pl.d.ts +77 -0
  254. package/dist/i18n/locales/pl.js +77 -0
  255. package/dist/i18n/locales/pt.d.ts +77 -0
  256. package/dist/i18n/locales/pt.js +77 -0
  257. package/dist/i18n/locales/ro.d.ts +77 -0
  258. package/dist/i18n/locales/ro.js +77 -0
  259. package/dist/i18n/locales/ru.d.ts +77 -0
  260. package/dist/i18n/locales/ru.js +77 -0
  261. package/dist/i18n/locales/sq.d.ts +77 -0
  262. package/dist/i18n/locales/sq.js +77 -0
  263. package/dist/i18n/locales/sv.d.ts +77 -0
  264. package/dist/i18n/locales/sv.js +77 -0
  265. package/dist/i18n/locales/tr.d.ts +77 -0
  266. package/dist/i18n/locales/tr.js +77 -0
  267. package/dist/i18n/locales/zh.d.ts +77 -0
  268. package/dist/i18n/locales/zh.js +77 -0
  269. package/dist/index.js +1197 -1183
  270. package/dist/locales/ar.json +77 -0
  271. package/dist/locales/de.json +77 -0
  272. package/dist/locales/el.json +77 -0
  273. package/dist/locales/en.json +77 -0
  274. package/dist/locales/es.json +77 -0
  275. package/dist/locales/fr.json +77 -0
  276. package/dist/locales/hi.json +77 -0
  277. package/dist/locales/it.json +77 -0
  278. package/dist/locales/ja.json +77 -0
  279. package/dist/locales/nl.json +77 -0
  280. package/dist/locales/pl.json +77 -0
  281. package/dist/locales/pt.json +77 -0
  282. package/dist/locales/ro.json +77 -0
  283. package/dist/locales/ru.json +77 -0
  284. package/dist/locales/sq.json +77 -0
  285. package/dist/locales/sv.json +77 -0
  286. package/dist/locales/tr.json +77 -0
  287. package/dist/locales/zh.json +77 -0
  288. package/dist/patterns/alia-assistant/index.js +1 -1
  289. package/dist/patterns/anamnesis/index.js +1 -1
  290. package/dist/patterns/calendar/index.js +1 -1
  291. package/dist/patterns/forgot-password-form/index.js +1 -1
  292. package/dist/patterns/help-me-write-templates/index.js +2 -2
  293. package/dist/patterns/login-form/index.js +1 -1
  294. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  295. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  296. package/dist/patterns/registration-form/index.js +1 -1
  297. package/dist/patterns/signature-request/index.js +1 -1
  298. package/dist/patterns/workflow-webhook-action/index.d.ts +3 -0
  299. package/dist/patterns/workflow-webhook-action/index.js +6 -0
  300. package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts +93 -0
  301. package/dist/tokens.css +1 -1
  302. package/package.json +13 -1
  303. package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
  304. package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
  305. package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
  306. package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
  307. package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
@@ -0,0 +1,691 @@
1
+ import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as It, useId as ee, useRef as i, useState as u, useEffect as I, useCallback as Nt } from "react";
3
+ import { useTranslation as Me } from "react-i18next";
4
+ import { c as h } from "./index-D2ZczOXr.js";
5
+ import { C as Fe } from "./code-block-RSKdF3E-.js";
6
+ import { A as k } from "./accordion-Ch3xp0mX.js";
7
+ import { A as Se } from "./alert-9kEwDza3.js";
8
+ import { B as Et } from "./badge-BUk4RjTS.js";
9
+ import { B as Oe } from "./button-D-MQxsA_.js";
10
+ import { I as Rt } from "./icon-button-C_1TgRiK.js";
11
+ import { C as Le } from "./card-BA4Ig_kn.js";
12
+ import { C as Bt } from "./checkbox-BjDv-r3o.js";
13
+ import { F as Ft } from "./field-array-BJYc1xSu.js";
14
+ import { F as _ } from "./form-field-Ani72sVY.js";
15
+ import { P as St } from "./password-input-BokZ_rnT.js";
16
+ import { T as te } from "./text-input-CaG9ApoE.js";
17
+ import { T as Ot } from "./token-insert-menu-CQvV4u1m.js";
18
+ import { u as _e } from "./use-copy-to-clipboard-Cyfc_dlv.js";
19
+ import { u as Lt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
20
+ import { c as Tt } from "./createLucideIcon-DhHxpK9K.js";
21
+ import { C as qe } from "./check-DrFSN__t.js";
22
+ import { C as oe } from "./circle-alert-rGDZ73Wh.js";
23
+ import { C as je } from "./copy-vRpqqHtY.js";
24
+ /**
25
+ * @license lucide-react v1.22.0 - ISC
26
+ *
27
+ * This source code is licensed under the ISC license.
28
+ * See the LICENSE file in the root directory of this source tree.
29
+ */
30
+ const Dt = [
31
+ [
32
+ "path",
33
+ {
34
+ 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",
35
+ key: "1s6t7t"
36
+ }
37
+ ],
38
+ ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
39
+ ], Pt = Tt("key-round", Dt), Wo = [
40
+ "url",
41
+ "secret",
42
+ "legalBasisConfirmed",
43
+ "parameters"
44
+ ], Mt = h(
45
+ "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-lg)] ds:text-start ds:text-[var(--foreground)]"
46
+ ), _t = h(
47
+ "ds:m-0 ds:grid ds:gap-x-[var(--spacing-xl)] ds:gap-y-[var(--spacing-md)]",
48
+ {
49
+ variants: {
50
+ twoColumns: {
51
+ true: "ds:grid-cols-2",
52
+ false: "ds:grid-cols-1"
53
+ }
54
+ },
55
+ defaultVariants: { twoColumns: !1 }
56
+ }
57
+ ), Te = h(
58
+ "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
59
+ ), De = h("type-title-item ds:text-foreground"), qt = h(
60
+ "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]"
61
+ ), q = h("type-body-sm ds:text-muted-foreground"), jt = h(
62
+ "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive"
63
+ ), Ht = h(
64
+ "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2"
65
+ ), Kt = "https://", Xt = 2048, zt = 720, He = "wf12-e345-a67", $t = {
66
+ sentAt: "2026-10-12T09:00:00+02:00",
67
+ idempotencyKey: He,
68
+ practiceId: 1234,
69
+ workflowId: 12,
70
+ workflowActionId: 67,
71
+ workflowEnrollmentId: 345,
72
+ patientId: 5678
73
+ }, Ut = [
74
+ "Content-Type: application/json",
75
+ `X-AlfaDocs-Idempotency-Key: ${He}`,
76
+ "X-AlfaDocs-Request-Timestamp: 1791788400000",
77
+ "X-AlfaDocs-Signature: sha256=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
78
+ ].join(`
79
+ `), Ke = (a) => a === null ? "" : String(a), ne = (a) => a.original !== void 0 && a.name === a.original.name && a.value === Ke(a.original.value), Jt = (a) => a.flatMap((s) => s.original !== void 0 && ne(s) ? [[s.original.name, s.original.value]] : s.name.trim() === "" ? [] : [[s.name, s.value]]), Gt = (a) => a.length === 0 ? "" : `{${a.map(
80
+ ([s, w]) => `${JSON.stringify(s)}:${JSON.stringify(w)}`
81
+ ).join(",")}}`, Yt = () => {
82
+ const a = new Uint8Array(32);
83
+ return globalThis.crypto.getRandomValues(a), Array.from(a, (s) => s.toString(16).padStart(2, "0")).join(
84
+ ""
85
+ );
86
+ }, Pe = (a) => a != null && a.url ? { kind: "url" } : a != null && a.secret ? { kind: "secret" } : a != null && a.legalBasisConfirmed ? { kind: "legal" } : a != null && a.parameters ? { kind: "parametersError" } : null;
87
+ function Qt({ name: a, description: s, onCopied: w }) {
88
+ const { t: c } = Me("ui"), { status: p, copy: f } = _e(), b = p === "copied", N = p === "error";
89
+ return /* @__PURE__ */ d("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
90
+ /* @__PURE__ */ d("dt", { className: "ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
91
+ /* @__PURE__ */ o("code", { dir: "ltr", className: qt(), children: a }),
92
+ /* @__PURE__ */ o(
93
+ Rt,
94
+ {
95
+ icon: b ? /* @__PURE__ */ o(qe, {}) : N ? /* @__PURE__ */ o(oe, {}) : /* @__PURE__ */ o(je, {}),
96
+ size: "sm",
97
+ intent: "ghost",
98
+ "aria-label": c("keyValuePair.copy", { label: a }),
99
+ "data-action": "copy-field",
100
+ "data-copied": b ? "true" : void 0,
101
+ onClick: () => void f(a).then(w)
102
+ }
103
+ ),
104
+ b ? /* @__PURE__ */ o("span", { "aria-hidden": "true", className: "type-body-sm ds:text-success", children: c("copyField.copied") }) : N ? /* @__PURE__ */ o("span", { "aria-hidden": "true", className: "type-body-sm ds:text-destructive", children: c("copyField.copyFailed") }) : null
105
+ ] }),
106
+ /* @__PURE__ */ o("dd", { className: "ds:m-0 type-body-sm ds:text-muted-foreground", children: s })
107
+ ] });
108
+ }
109
+ const Zt = It(
110
+ ({
111
+ children: a,
112
+ initialValues: s,
113
+ hasSavedSecret: w = !1,
114
+ errors: c,
115
+ fieldNames: p,
116
+ placeholders: f,
117
+ onValueChange: b,
118
+ layout: N = "two-column",
119
+ className: Xe,
120
+ ...ze
121
+ }, W) => {
122
+ const { t: n } = Me("ui"), $e = [
123
+ ["patientId", n("workflowWebhookAction.sent.patientId")],
124
+ ["practiceId", n("workflowWebhookAction.sent.practiceId")],
125
+ ["workflowId", n("workflowWebhookAction.sent.workflowId")],
126
+ ["workflowActionId", n("workflowWebhookAction.sent.workflowActionId")],
127
+ [
128
+ "workflowEnrollmentId",
129
+ n("workflowWebhookAction.sent.workflowEnrollmentId")
130
+ ],
131
+ ["sentAt", n("workflowWebhookAction.sent.sentAt")],
132
+ ["idempotencyKey", n("workflowWebhookAction.sent.idempotencyKey")],
133
+ ["parameters", n("workflowWebhookAction.sent.parameters")]
134
+ ], Ue = [
135
+ ["X-AlfaDocs-Signature", n("workflowWebhookAction.headers.signature")],
136
+ [
137
+ "X-AlfaDocs-Request-Timestamp",
138
+ n("workflowWebhookAction.headers.timestamp")
139
+ ],
140
+ [
141
+ "X-AlfaDocs-Idempotency-Key",
142
+ n("workflowWebhookAction.headers.idempotency")
143
+ ]
144
+ ], re = ee(), ae = ee(), se = ee(), E = i(0), Je = () => (E.current += 1, `parameter-${E.current}`), [R, Ge] = u(() => (s == null ? void 0 : s.url) ?? ""), [g, ce] = u(""), [Ye, le] = u(!1), [v, j] = u(
145
+ () => Object.entries((s == null ? void 0 : s.parameters) ?? {}).map(([e, t]) => (E.current += 1, {
146
+ key: `parameter-${E.current}`,
147
+ name: e,
148
+ value: Ke(t),
149
+ original: { name: e, value: t }
150
+ }))
151
+ ), [B, Qe] = u(
152
+ () => (s == null ? void 0 : s.legalBasisConfirmed) ?? !1
153
+ ), [Ze, H] = u(
154
+ () => Object.keys((s == null ? void 0 : s.parameters) ?? {}).length > 0 || !!(c != null && c.parameters)
155
+ ), [Ve, et] = u({}), [K, tt] = u(!1), [C, ie] = u(() => c ?? {}), [ot, de] = u(""), [nt, rt] = u(
156
+ () => Object.values(c ?? {}).some(Boolean)
157
+ ), ue = i(c);
158
+ I(() => {
159
+ c !== ue.current && (ue.current = c, ie(c ?? {}), c != null && c.parameters && H(!0), rt(Object.values(c ?? {}).some(Boolean)), x(Pe(c)));
160
+ }, [c]);
161
+ const X = (e) => et(
162
+ (t) => t[e] ? t : { ...t, [e]: !0 }
163
+ ), y = (e) => ie(
164
+ (t) => t[e] ? { ...t, [e]: void 0 } : t
165
+ ), F = i(null), me = i(null), z = i(null), pe = i(null), fe = i(null), ke = i(null), he = i(null), $ = i(/* @__PURE__ */ new Map()), S = i(/* @__PURE__ */ new Map()), U = i(/* @__PURE__ */ new Set()), J = i(null);
166
+ I(() => {
167
+ var t;
168
+ const e = J.current;
169
+ e && (J.current = null, (t = S.current.get(e.key)) == null || t.setSelectionRange(e.position, e.position));
170
+ });
171
+ const [at, st] = u(!1);
172
+ Lt(() => {
173
+ const e = F.current;
174
+ if (!e) return;
175
+ const t = () => st(
176
+ e.getBoundingClientRect().width >= zt
177
+ );
178
+ if (t(), typeof ResizeObserver > "u") return;
179
+ const r = new ResizeObserver(t);
180
+ return r.observe(e), () => r.disconnect();
181
+ }, []);
182
+ const G = N === "two-column" && at, ct = Nt(
183
+ (e) => {
184
+ F.current = e, typeof W == "function" ? W(e) : W && (W.current = e);
185
+ },
186
+ [W]
187
+ ), O = (e) => {
188
+ de("");
189
+ let t = 0;
190
+ const r = () => {
191
+ var m;
192
+ if (((m = he.current) == null ? void 0 : m.closest('[aria-hidden="true"]')) && t < 60) {
193
+ t += 1, window.requestAnimationFrame(r);
194
+ return;
195
+ }
196
+ de(e);
197
+ };
198
+ window.requestAnimationFrame(r);
199
+ }, we = () => {
200
+ const e = R.trim();
201
+ if (e === "") return n("workflowWebhookAction.urlRequired");
202
+ let t;
203
+ try {
204
+ t = new URL(e);
205
+ } catch {
206
+ return n("workflowWebhookAction.urlInvalid");
207
+ }
208
+ if (!e.startsWith(Kt)) return n("workflowWebhookAction.urlHttps");
209
+ if (t.hostname === "") return n("workflowWebhookAction.urlInvalid");
210
+ if (t.username !== "" || t.password !== "")
211
+ return n("workflowWebhookAction.urlCredentials");
212
+ }, ge = () => g.trim() === "" && !w ? n("workflowWebhookAction.secretRequired") : void 0, lt = () => {
213
+ const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
214
+ for (const r of v) {
215
+ const l = ne(r) ? r.name : r.name.trim() === "" ? null : r.name;
216
+ l !== null && t.set(l, (t.get(l) ?? 0) + 1);
217
+ }
218
+ for (const r of v)
219
+ if (!ne(r)) {
220
+ if (r.name.trim() === "") {
221
+ r.value !== "" && e.set(
222
+ r.key,
223
+ n("workflowWebhookAction.parameterNameRequired")
224
+ );
225
+ continue;
226
+ }
227
+ (t.get(r.name) ?? 0) > 1 && e.set(
228
+ r.key,
229
+ n("workflowWebhookAction.parameterNameDuplicate")
230
+ );
231
+ }
232
+ return e;
233
+ }, ve = () => B ? void 0 : n("workflowWebhookAction.legalBasisRequired"), Y = (e) => K || Ve[e] === !0, be = lt(), it = C.url ?? (Y("url") ? we() : void 0), dt = C.secret ?? (Y("secret") ? ge() : void 0), L = C.legalBasisConfirmed ?? (K ? ve() : void 0), ut = (e) => Y(`parameter:${e}`) ? be.get(e) : void 0, T = !K && !nt, ye = () => {
234
+ if (we()) return { kind: "url" };
235
+ if (ge()) return { kind: "secret" };
236
+ if (ve()) return { kind: "legal" };
237
+ const e = v.find((t) => be.has(t.key));
238
+ return e ? { kind: "parameter", key: e.key } : void 0;
239
+ }, Ae = i(ye);
240
+ Ae.current = ye;
241
+ const [D, x] = u(
242
+ () => Pe(c)
243
+ );
244
+ I(() => {
245
+ if (!D) return;
246
+ const e = (() => {
247
+ var t;
248
+ switch (D.kind) {
249
+ case "url":
250
+ return me.current;
251
+ case "secret":
252
+ return z.current;
253
+ case "legal":
254
+ return ke.current;
255
+ case "copy":
256
+ return pe.current;
257
+ case "parametersError":
258
+ return fe.current;
259
+ case "add":
260
+ return (t = F.current) == null ? void 0 : t.querySelector(
261
+ '[data-slot="parameters"] [data-component="field-array"] > button'
262
+ );
263
+ case "parameter":
264
+ return $.current.get(D.key);
265
+ }
266
+ })();
267
+ e == null || e.focus();
268
+ }, [D]), I(() => {
269
+ var r;
270
+ const e = (r = F.current) == null ? void 0 : r.closest("form");
271
+ if (!e) return;
272
+ const t = (l) => {
273
+ const m = Ae.current();
274
+ m && (l.preventDefault(), tt(!0), m.kind === "parameter" && H(!0), x({ ...m }));
275
+ };
276
+ return e.addEventListener("submit", t), () => e.removeEventListener("submit", t);
277
+ }, []);
278
+ const A = Jt(v), We = Gt(A), P = i(b);
279
+ P.current = b;
280
+ const Ce = i(A);
281
+ Ce.current = A;
282
+ const xe = i(!1);
283
+ I(() => {
284
+ var e;
285
+ if (!xe.current) {
286
+ xe.current = !0;
287
+ return;
288
+ }
289
+ (e = P.current) == null || e.call(P, {
290
+ url: R,
291
+ secret: g,
292
+ parameters: Object.fromEntries(Ce.current),
293
+ legalBasisConfirmed: B
294
+ });
295
+ }, [R, g, We, B]);
296
+ const {
297
+ status: Ie,
298
+ copiedValue: mt,
299
+ copy: pt,
300
+ reset: Ne
301
+ } = _e(), Q = Ie === "copied" && mt === g, Ee = Ie === "error", ft = () => {
302
+ Ne(), ce(Yt()), le(!0), y("secret"), O(n("workflowWebhookAction.secretGenerated")), x({ kind: "copy" });
303
+ }, kt = async () => {
304
+ var t;
305
+ const e = await pt(((t = z.current) == null ? void 0 : t.value) ?? g);
306
+ O(n(e ? "copyField.copySuccess" : "copyField.copyFailed"));
307
+ }, Z = (e, t) => {
308
+ j(
309
+ (r) => r.map((l) => l.key === e ? { ...l, ...t } : l)
310
+ ), y("parameters");
311
+ }, ht = () => {
312
+ const e = Je();
313
+ j((t) => [...t, { key: e, name: "", value: "" }]), x({ kind: "parameter", key: e });
314
+ }, wt = (e) => {
315
+ const t = v.filter((m, V) => V !== e), r = v[e];
316
+ r && ($.current.delete(r.key), S.current.delete(r.key), U.current.delete(r.key)), j(t), y("parameters");
317
+ const l = t[e] ?? t[e - 1];
318
+ x(
319
+ l ? { kind: "parameter", key: l.key } : { kind: "add" }
320
+ );
321
+ }, gt = (e, t) => {
322
+ var Be;
323
+ const r = S.current.get(e.key), l = r !== void 0 && U.current.has(e.key), m = l ? r.selectionStart ?? e.value.length : e.value.length, V = l ? r.selectionEnd ?? m : m, Wt = e.value.slice(0, m) + t + e.value.slice(V);
324
+ J.current = { key: e.key, position: m + t.length }, Z(e.key, { value: Wt });
325
+ const Ct = (Be = f == null ? void 0 : f.find((xt) => xt.value === t)) == null ? void 0 : Be.label;
326
+ O(
327
+ n("workflowWebhookAction.placeholderInserted", {
328
+ detail: Ct ?? t
329
+ })
330
+ );
331
+ }, vt = (e) => O(n(e ? "copyField.copySuccess" : "copyField.copyFailed")), Re = (e, t) => /* @__PURE__ */ o(
332
+ "dl",
333
+ {
334
+ "aria-labelledby": e,
335
+ className: _t({ twoColumns: G }),
336
+ children: t.map(([r, l]) => /* @__PURE__ */ o(
337
+ Qt,
338
+ {
339
+ name: r,
340
+ description: l,
341
+ onCopied: vt
342
+ },
343
+ r
344
+ ))
345
+ }
346
+ ), bt = JSON.stringify(
347
+ { ...$t, parameters: Object.fromEntries(A) },
348
+ null,
349
+ 2
350
+ ), yt = /* @__PURE__ */ d(
351
+ "div",
352
+ {
353
+ "data-columns": G ? 2 : 1,
354
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xl)]",
355
+ children: [
356
+ /* @__PURE__ */ d("div", { className: Te(), children: [
357
+ /* @__PURE__ */ o("h4", { id: ae, className: De(), children: n("workflowWebhookAction.bodyHeading") }),
358
+ /* @__PURE__ */ o("p", { className: q(), children: n("workflowWebhookAction.sentDescription") }),
359
+ /* @__PURE__ */ o(
360
+ Fe,
361
+ {
362
+ language: "json",
363
+ code: bt,
364
+ copyLabel: n("workflowWebhookAction.copyBody")
365
+ }
366
+ ),
367
+ Re(ae, $e)
368
+ ] }),
369
+ /* @__PURE__ */ d("div", { className: Te(), children: [
370
+ /* @__PURE__ */ o("h4", { id: se, className: De(), children: n("workflowWebhookAction.headersHeading") }),
371
+ /* @__PURE__ */ o("p", { className: q(), children: n("workflowWebhookAction.headersDescription") }),
372
+ /* @__PURE__ */ o(
373
+ Fe,
374
+ {
375
+ language: "http",
376
+ code: Ut,
377
+ copyLabel: n("workflowWebhookAction.copyHeaders")
378
+ }
379
+ ),
380
+ Re(se, Ue)
381
+ ] })
382
+ ]
383
+ }
384
+ ), M = p !== void 0, At = n(Ye ? "workflowWebhookAction.generatedNotice" : w ? "workflowWebhookAction.secretSavedDescription" : "workflowWebhookAction.secretDescription");
385
+ return /* @__PURE__ */ d(
386
+ "div",
387
+ {
388
+ ref: ct,
389
+ ...ze,
390
+ "data-component": "workflow-webhook-action",
391
+ "data-layout": G ? "two-column" : "one-column",
392
+ className: Mt({ className: Xe }),
393
+ children: [
394
+ a ? /* @__PURE__ */ o(
395
+ "div",
396
+ {
397
+ "data-slot": "host-content",
398
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
399
+ children: a
400
+ }
401
+ ) : null,
402
+ /* @__PURE__ */ o("p", { className: q(), children: n("workflowWebhookAction.intro") }),
403
+ /* @__PURE__ */ o(
404
+ _,
405
+ {
406
+ label: n("workflowWebhookAction.url"),
407
+ description: n("workflowWebhookAction.urlDescription"),
408
+ required: !0,
409
+ error: it,
410
+ announceError: T,
411
+ "data-field": "url",
412
+ children: /* @__PURE__ */ o(
413
+ te,
414
+ {
415
+ ref: me,
416
+ name: M ? p.url : void 0,
417
+ dir: "ltr",
418
+ inputMode: "url",
419
+ autoComplete: "off",
420
+ spellCheck: !1,
421
+ maxLength: Xt,
422
+ placeholder: "https://",
423
+ value: R,
424
+ onChange: (e) => {
425
+ Ge(e.target.value), y("url");
426
+ },
427
+ onBlur: (e) => {
428
+ e.target.value !== "" && X("url");
429
+ }
430
+ }
431
+ )
432
+ }
433
+ ),
434
+ /* @__PURE__ */ d(
435
+ "div",
436
+ {
437
+ "data-field": "secret",
438
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
439
+ children: [
440
+ /* @__PURE__ */ o(
441
+ _,
442
+ {
443
+ label: n("workflowWebhookAction.secret"),
444
+ description: At,
445
+ ...w ? { optional: !0 } : { required: !0 },
446
+ error: dt,
447
+ announceError: T,
448
+ children: /* @__PURE__ */ o(
449
+ St,
450
+ {
451
+ ref: z,
452
+ name: M ? p.secret : "",
453
+ dir: "ltr",
454
+ autoComplete: "new-password",
455
+ spellCheck: !1,
456
+ value: g,
457
+ onChange: (e) => {
458
+ ce(e.target.value), le(!1), Ne(), y("secret");
459
+ },
460
+ onBlur: (e) => {
461
+ e.target.value !== "" && X("secret");
462
+ }
463
+ }
464
+ )
465
+ }
466
+ ),
467
+ /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)]", children: [
468
+ /* @__PURE__ */ o(
469
+ Oe,
470
+ {
471
+ type: "button",
472
+ intent: "outline",
473
+ size: "sm",
474
+ startIcon: /* @__PURE__ */ o(Pt, {}),
475
+ "data-action": "generate-secret",
476
+ onClick: ft,
477
+ children: n("workflowWebhookAction.generate")
478
+ }
479
+ ),
480
+ /* @__PURE__ */ o(
481
+ Oe,
482
+ {
483
+ ref: pe,
484
+ type: "button",
485
+ intent: "outline",
486
+ size: "sm",
487
+ disabled: g === "",
488
+ startIcon: Q ? /* @__PURE__ */ o(qe, {}) : Ee ? /* @__PURE__ */ o(oe, {}) : /* @__PURE__ */ o(je, {}),
489
+ "data-action": "copy-secret",
490
+ "data-copied": Q ? "true" : void 0,
491
+ onClick: () => void kt(),
492
+ children: n(Q ? "copyField.copied" : Ee ? "copyField.copyFailed" : "workflowWebhookAction.copySecret")
493
+ }
494
+ )
495
+ ] })
496
+ ]
497
+ }
498
+ ),
499
+ /* @__PURE__ */ d(
500
+ "div",
501
+ {
502
+ "data-field": "legalBasisConfirmed",
503
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
504
+ children: [
505
+ /* @__PURE__ */ o(
506
+ Bt,
507
+ {
508
+ ref: ke,
509
+ name: M ? p.legalBasisConfirmed : void 0,
510
+ value: "1",
511
+ checked: B,
512
+ onCheckedChange: (e) => {
513
+ Qe(e === !0), y("legalBasisConfirmed");
514
+ },
515
+ "aria-required": "true",
516
+ "aria-invalid": L ? !0 : void 0,
517
+ "aria-describedby": L ? re : void 0,
518
+ label: n("workflowWebhookAction.legalBasis")
519
+ }
520
+ ),
521
+ L ? /* @__PURE__ */ d(
522
+ "p",
523
+ {
524
+ id: re,
525
+ role: T ? "alert" : void 0,
526
+ "data-slot": "error",
527
+ className: jt(),
528
+ children: [
529
+ /* @__PURE__ */ o(
530
+ oe,
531
+ {
532
+ "aria-hidden": "true",
533
+ className: "ds:size-4 ds:shrink-0"
534
+ }
535
+ ),
536
+ /* @__PURE__ */ o("span", { children: L })
537
+ ]
538
+ }
539
+ ) : null
540
+ ]
541
+ }
542
+ ),
543
+ M ? /* @__PURE__ */ o(
544
+ "input",
545
+ {
546
+ type: "hidden",
547
+ name: p.parameters,
548
+ value: We
549
+ }
550
+ ) : null,
551
+ /* @__PURE__ */ o("div", { "data-field": "parameters", "data-slot": "parameters", children: /* @__PURE__ */ o(Le, { variant: "elevated", children: /* @__PURE__ */ o(
552
+ k,
553
+ {
554
+ type: "single",
555
+ collapsible: !0,
556
+ value: Ze ? "advanced" : "",
557
+ onValueChange: (e) => H(e === "advanced"),
558
+ children: /* @__PURE__ */ d(k.Item, { value: "advanced", children: [
559
+ /* @__PURE__ */ o(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: [
560
+ /* @__PURE__ */ o("span", { children: n("workflowWebhookAction.advanced") }),
561
+ A.length > 0 ? /* @__PURE__ */ o(Et, { variant: "neutral", size: "md", children: n("workflowWebhookAction.parameterCount", {
562
+ total: A.length
563
+ }) }) : null
564
+ ] }) }),
565
+ /* @__PURE__ */ o(k.Content, { children: /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
566
+ /* @__PURE__ */ o("p", { className: q(), children: n("workflowWebhookAction.advancedDescription") }),
567
+ C.parameters ? /* @__PURE__ */ o(
568
+ "div",
569
+ {
570
+ ref: fe,
571
+ tabIndex: -1,
572
+ "data-slot": "error",
573
+ className: "ds:outline-none",
574
+ children: /* @__PURE__ */ o(Se, { variant: "error", announce: "off", children: /* @__PURE__ */ o(Se.Description, { children: C.parameters }) })
575
+ }
576
+ ) : null,
577
+ /* @__PURE__ */ o(
578
+ Ft,
579
+ {
580
+ legend: n("workflowWebhookAction.parametersLegend"),
581
+ items: v,
582
+ addLabel: n("workflowWebhookAction.addParameter"),
583
+ removeItemLabel: (e) => n("workflowWebhookAction.removeParameter", {
584
+ number: e + 1
585
+ }),
586
+ onAdd: ht,
587
+ onRemove: wt,
588
+ renderItem: (e, t) => /* @__PURE__ */ d(
589
+ "div",
590
+ {
591
+ "data-parameter-id": e.key,
592
+ className: Ht(),
593
+ children: [
594
+ /* @__PURE__ */ o(
595
+ _,
596
+ {
597
+ label: n("workflowWebhookAction.parameterName"),
598
+ error: ut(e.key),
599
+ announceError: T,
600
+ children: /* @__PURE__ */ o(
601
+ te,
602
+ {
603
+ ref: (r) => {
604
+ r && $.current.set(e.key, r);
605
+ },
606
+ "aria-label": n(
607
+ "workflowWebhookAction.parameterNameOf",
608
+ { number: t + 1 }
609
+ ),
610
+ dir: "auto",
611
+ autoComplete: "off",
612
+ spellCheck: !1,
613
+ value: e.name,
614
+ onChange: (r) => Z(e.key, { name: r.target.value }),
615
+ onBlur: () => X(`parameter:${e.key}`)
616
+ }
617
+ )
618
+ }
619
+ ),
620
+ /* @__PURE__ */ o(
621
+ _,
622
+ {
623
+ label: n("workflowWebhookAction.parameterValue"),
624
+ children: /* @__PURE__ */ o(
625
+ te,
626
+ {
627
+ ref: (r) => {
628
+ r && S.current.set(e.key, r);
629
+ },
630
+ "aria-label": n(
631
+ "workflowWebhookAction.parameterValueOf",
632
+ { number: t + 1 }
633
+ ),
634
+ dir: "auto",
635
+ autoComplete: "off",
636
+ value: e.value,
637
+ onChange: (r) => Z(e.key, {
638
+ value: r.target.value
639
+ }),
640
+ onFocus: () => U.current.add(e.key)
641
+ }
642
+ )
643
+ }
644
+ ),
645
+ f && f.length > 0 ? /* @__PURE__ */ o("div", { className: "ds:sm:col-span-2", children: /* @__PURE__ */ o(
646
+ Ot,
647
+ {
648
+ tokens: f.map((r) => ({
649
+ value: r.value,
650
+ label: r.label
651
+ })),
652
+ triggerLabel: n(
653
+ "workflowWebhookAction.insertDetail"
654
+ ),
655
+ onInsert: (r) => gt(e, r)
656
+ }
657
+ ) }) : null
658
+ ]
659
+ }
660
+ )
661
+ }
662
+ )
663
+ ] }) })
664
+ ] })
665
+ }
666
+ ) }) }),
667
+ /* @__PURE__ */ o("div", { "data-slot": "reference", children: /* @__PURE__ */ o(Le, { variant: "elevated", children: /* @__PURE__ */ o(k, { type: "single", collapsible: !0, children: /* @__PURE__ */ d(k.Item, { value: "reference", children: [
668
+ /* @__PURE__ */ o(k.Trigger, { "data-action": "toggle-reference", children: /* @__PURE__ */ o("span", { children: n("workflowWebhookAction.sentHeading") }) }),
669
+ /* @__PURE__ */ o(k.Content, { children: yt })
670
+ ] }) }) }) }),
671
+ /* @__PURE__ */ o(
672
+ "span",
673
+ {
674
+ ref: he,
675
+ role: "status",
676
+ "aria-live": "polite",
677
+ className: "ds:sr-only",
678
+ children: ot
679
+ }
680
+ )
681
+ ]
682
+ }
683
+ );
684
+ }
685
+ );
686
+ Zt.displayName = "WorkflowWebhookAction";
687
+ export {
688
+ Wo as W,
689
+ Zt as a
690
+ };
691
+ //# sourceMappingURL=workflow-webhook-action-Ct8tFYi7.js.map