@alfadocs/ui-kit 0.70.0 → 0.71.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 (304) hide show
  1. package/dist/_chunks/address-fields-CPbFJ8e8.js +246 -0
  2. package/dist/_chunks/{ai-prompt-input-CuhTo9mh.js → ai-prompt-input-V4DdOeqv.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-B47qRQb5.js → alia-sidebar-DvIUzIX9.js} +107 -106
  4. package/dist/_chunks/{anatomy-scheme-CJB6dI6p.js → anatomy-scheme-CXSk11UJ.js} +2 -2
  5. package/dist/_chunks/{app-frame-BYx1gcV7.js → app-frame-DIEMIC5V.js} +67 -56
  6. package/dist/_chunks/{appointment-card-C06aZqA7.js → appointment-card-DVaeJNVB.js} +82 -98
  7. package/dist/_chunks/{appointment-timeline-BJM0S_Fg.js → appointment-timeline-PJgnrjFb.js} +159 -157
  8. package/dist/_chunks/{appointment-tray-DRRw5ROi.js → appointment-tray-B16QPGbm.js} +2 -2
  9. package/dist/_chunks/{audio-recorder-Cpdk5qpQ.js → audio-recorder-DNDsOLqO.js} +2 -2
  10. package/dist/_chunks/{autocomplete-DOeGouCL.js → autocomplete-BrONKN8l.js} +168 -146
  11. package/dist/_chunks/{bishop-score-DnYWtZa_.js → bishop-score-Cym_TeQY.js} +2 -2
  12. package/dist/_chunks/{booking-DUBI0oqt.js → booking-C7do4vaR.js} +4 -4
  13. package/dist/_chunks/{button-group-Ciq6J4IW.js → button-group-CvEnVzY7.js} +32 -35
  14. package/dist/_chunks/{care-plan-card-C5sTfY9G.js → care-plan-card-DzPDYgtK.js} +3 -3
  15. package/dist/_chunks/{care-plan-entry-card-CXnxGCWA.js → care-plan-entry-card-CEnQy7YP.js} +3 -3
  16. package/dist/_chunks/care-plan-header-DcXFXWit.js +198 -0
  17. package/dist/_chunks/{chat-message-3V54YipB.js → chat-message-DzpcJR-q.js} +25 -23
  18. package/dist/_chunks/city-input-Dkgaak7I.js +169 -0
  19. package/dist/_chunks/clipboard-list-S7s-MXQq.js +25 -0
  20. package/dist/_chunks/{combobox-Clum7gJ1.js → combobox-DnqSF0IH.js} +131 -114
  21. package/dist/_chunks/connection-status-CY1HV8Wg.js +108 -0
  22. package/dist/_chunks/control-room-rail-FAQZrGVL.js +333 -0
  23. package/dist/_chunks/country-select-BwUZQvTa.js +709 -0
  24. package/dist/_chunks/editable-currency-cell-renderer-CGELrkIj.js +410 -0
  25. package/dist/_chunks/{entity-card-9_62gY7l.js → entity-card-DmrgYSEX.js} +4 -4
  26. package/dist/_chunks/entity-summary-CaM1Y-xE.js +291 -0
  27. package/dist/_chunks/field-array-siUZzfYe.js +146 -0
  28. package/dist/_chunks/{field-value-NXYczdpO.js → field-value-3jMM0uDx.js} +2 -2
  29. package/dist/_chunks/{gestational-age-calculator-CF2ISaYQ.js → gestational-age-calculator-DKzEV5Qi.js} +2 -2
  30. package/dist/_chunks/iban-input-B0TWzR1R.js +436 -0
  31. package/dist/_chunks/icon-picker-0B7KhrF1.js +272 -0
  32. package/dist/_chunks/image-cropper-D9jqJy19.js +367 -0
  33. package/dist/_chunks/{link-cell-renderer-CTXqtXV-.js → link-cell-renderer-De_SLjSq.js} +262 -261
  34. package/dist/_chunks/list-checks-BUs75d_o.js +18 -0
  35. package/dist/_chunks/{marketplace-app-shell-Skhfp6vK.js → marketplace-app-shell-BGqkywsi.js} +3 -3
  36. package/dist/_chunks/message-card-DsHFFiL1.js +319 -0
  37. package/dist/_chunks/{message-tray-DwrBLJlf.js → message-tray-C0a6CL1_.js} +172 -135
  38. package/dist/_chunks/{multi-select-BdHHDrRN.js → multi-select-WE4S9FIF.js} +75 -63
  39. package/dist/_chunks/nav-grid-9xphY3FM.js +169 -0
  40. package/dist/_chunks/notes-panel-DXiMfuvp.js +320 -0
  41. package/dist/_chunks/notification-card-BMqNzCIt.js +290 -0
  42. package/dist/_chunks/{notification-tray-AEun6DN2.js → notification-tray-BmUlCx3g.js} +201 -166
  43. package/dist/_chunks/{operator-hero-CR0Rqh4-.js → operator-hero-BO8TqzX2.js} +2 -2
  44. package/dist/_chunks/panel-header-D313n_9-.js +105 -0
  45. package/dist/_chunks/{patient-details-Dlhqb5ig.js → patient-details-DgfTJimE.js} +280 -196
  46. package/dist/_chunks/{patient-search-Be6cLrHR.js → patient-search-CSWQKOSP.js} +2 -2
  47. package/dist/_chunks/{patient-shell-DV3XEtIB.js → patient-shell-BMwsIKlW.js} +3 -3
  48. package/dist/_chunks/{patient-summary-card-WySCMwwA.js → patient-summary-card-D4NdgYJB.js} +27 -12
  49. package/dist/_chunks/{patient-table-CHxf3Oqk.js → patient-table-CERknpd8.js} +3 -3
  50. package/dist/_chunks/{payment-request-card-BcZJwu9z.js → payment-request-card-Blf-MFNY.js} +2 -2
  51. package/dist/_chunks/permission-matrix-Bw5oexUt.js +174 -0
  52. package/dist/_chunks/position-grid-CcvqHaKN.js +169 -0
  53. package/dist/_chunks/postal-code-input-UCOYuRY2.js +192 -0
  54. package/dist/_chunks/{practice-results-C6qDfxos.js → practice-results-El5Z-oVp.js} +2 -2
  55. package/dist/_chunks/{pregnancy-dating-CRVWswD-.js → pregnancy-dating-CunHrOpO.js} +2 -2
  56. package/dist/_chunks/{product-hub-panel-e6pW220e.js → product-hub-panel-DtU7KXxm.js} +257 -217
  57. package/dist/_chunks/province-select-D_TZvix3.js +261 -0
  58. package/dist/_chunks/{public-header.agent-DqkqA-ca.js → public-header.agent-TxmC_x1I.js} +2 -2
  59. package/dist/_chunks/radiograph-panel.agent-tWjN2nHX.js +553 -0
  60. package/dist/_chunks/reviews-panel-DxkSrgMl.js +559 -0
  61. package/dist/_chunks/rich-text-editor-C8tyGjfb.js +2621 -0
  62. package/dist/_chunks/{scroll-area-5wNK0Cyz.js → scroll-area-BZOvUhwQ.js} +2 -2
  63. package/dist/_chunks/{select-DMLG44F5.js → select-KsyRr8WH.js} +114 -102
  64. package/dist/_chunks/{sheet-BxsE7eQm.js → sheet-umkfZjF6.js} +53 -42
  65. package/dist/_chunks/{sidebar-DY9jGjgt.js → sidebar-QCp9wHNP.js} +125 -113
  66. package/dist/_chunks/{tabs-BxcOziCo.js → tabs-CYZVKKDl.js} +2 -2
  67. package/dist/_chunks/task-card-DCdsI0ZT.js +189 -0
  68. package/dist/_chunks/{task-tray-qOEQflu4.js → task-tray-DNVejijD.js} +2 -2
  69. package/dist/_chunks/tasks-panel-C9odmawT.js +757 -0
  70. package/dist/_chunks/token-insert-menu-CFQqTe_n.js +147 -0
  71. package/dist/_chunks/{ai-tools-rail-B5NEghsp.js → tool-rail-BZx0-yIr.js} +152 -139
  72. package/dist/_chunks/{tooth-scheme-BhQoPNBD.js → tooth-scheme-DJZtzfeY.js} +470 -468
  73. package/dist/_chunks/{transcript-panel-3THQX6nJ.js → transcript-panel-CHGHHHdT.js} +95 -83
  74. package/dist/_chunks/{unit-converter-YEpD9evj.js → unit-converter-CwlZbfdn.js} +2 -2
  75. package/dist/_chunks/{workflow-map-Dy8mLCqF.js → workflow-map-M8MBBHQm.js} +106 -118
  76. package/dist/agent-catalog.json +2062 -226
  77. package/dist/agent-i18n/en.json +206 -8
  78. package/dist/components/_shared/option.d.ts +2 -0
  79. package/dist/components/_shared/patient-fields.d.ts +1 -1
  80. package/dist/components/address-fields/address-fields.agent.d.ts +9 -0
  81. package/dist/components/address-fields/address-fields.d.ts +29 -0
  82. package/dist/components/address-fields/index.d.ts +5 -0
  83. package/dist/components/address-fields/index.js +6 -0
  84. package/dist/components/ai-prompt-input/index.js +1 -1
  85. package/dist/components/anatomy-scheme/index.js +1 -1
  86. package/dist/components/app-frame/app-frame.d.ts +2 -2
  87. package/dist/components/app-frame/index.js +1 -1
  88. package/dist/components/appointment-card/index.js +2 -2
  89. package/dist/components/appointment-timeline/index.js +1 -1
  90. package/dist/components/audio-recorder/index.js +1 -1
  91. package/dist/components/autocomplete/autocomplete.d.ts +10 -0
  92. package/dist/components/autocomplete/index.js +1 -1
  93. package/dist/components/bishop-score/index.js +1 -1
  94. package/dist/components/booking/index.js +1 -1
  95. package/dist/components/button-group/index.js +1 -1
  96. package/dist/components/care-plan-card/index.js +1 -1
  97. package/dist/components/care-plan-entry-card/index.js +1 -1
  98. package/dist/components/care-plan-header/care-plan-header.d.ts +16 -5
  99. package/dist/components/care-plan-header/index.js +1 -1
  100. package/dist/components/chat-message/index.js +1 -1
  101. package/dist/components/city-input/city-input.agent.d.ts +8 -0
  102. package/dist/components/city-input/city-input.d.ts +57 -0
  103. package/dist/components/city-input/index.d.ts +5 -0
  104. package/dist/components/city-input/index.js +6 -0
  105. package/dist/components/combobox/combobox.d.ts +17 -0
  106. package/dist/components/combobox/index.js +1 -1
  107. package/dist/components/connection-status/connection-status.agent.d.ts +4 -0
  108. package/dist/components/connection-status/connection-status.d.ts +36 -0
  109. package/dist/components/connection-status/index.d.ts +4 -0
  110. package/dist/components/connection-status/index.js +6 -0
  111. package/dist/components/control-room-rail/control-room-context.d.ts +5 -5
  112. package/dist/components/control-room-rail/control-room-rail.agent.d.ts +4 -0
  113. package/dist/components/control-room-rail/control-room-rail.d.ts +5 -5
  114. package/dist/components/control-room-rail/index.d.ts +1 -0
  115. package/dist/components/control-room-rail/index.js +4 -3
  116. package/dist/components/counter/counter.d.ts +1 -1
  117. package/dist/components/country-select/country-select.agent.d.ts +8 -0
  118. package/dist/components/country-select/country-select.d.ts +51 -0
  119. package/dist/components/country-select/index.d.ts +6 -0
  120. package/dist/components/country-select/index.js +9 -0
  121. package/dist/components/country-select/iso-3166.d.ts +15 -0
  122. package/dist/components/data-table/cell-renderers/reorder-cell-renderer.d.ts +34 -0
  123. package/dist/components/data-table/index.d.ts +2 -0
  124. package/dist/components/data-table/index.js +13 -11
  125. package/dist/components/entity-summary/entity-summary.agent.d.ts +4 -0
  126. package/dist/components/entity-summary/entity-summary.d.ts +53 -4
  127. package/dist/components/entity-summary/index.js +1 -1
  128. package/dist/components/field-array/field-array.agent.d.ts +4 -0
  129. package/dist/components/field-array/field-array.d.ts +45 -0
  130. package/dist/components/field-array/index.d.ts +4 -0
  131. package/dist/components/field-array/index.js +6 -0
  132. package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
  133. package/dist/components/gestational-age-calculator/index.js +1 -1
  134. package/dist/components/iban-input/iban-input.agent.d.ts +4 -0
  135. package/dist/components/iban-input/iban-input.d.ts +51 -0
  136. package/dist/components/iban-input/index.d.ts +5 -0
  137. package/dist/components/iban-input/index.js +13 -0
  138. package/dist/components/iban-input/is-valid-iban.d.ts +31 -0
  139. package/dist/components/icon-picker/icon-picker.agent.d.ts +4 -0
  140. package/dist/components/icon-picker/icon-picker.d.ts +41 -0
  141. package/dist/components/icon-picker/index.d.ts +4 -0
  142. package/dist/components/icon-picker/index.js +6 -0
  143. package/dist/components/image-cropper/crop-geometry.d.ts +30 -0
  144. package/dist/components/image-cropper/image-cropper.agent.d.ts +4 -0
  145. package/dist/components/image-cropper/image-cropper.d.ts +32 -0
  146. package/dist/components/image-cropper/index.d.ts +5 -0
  147. package/dist/components/image-cropper/index.js +11 -0
  148. package/dist/components/index.d.ts +16 -1
  149. package/dist/components/message-card/index.js +1 -1
  150. package/dist/components/message-card/message-card.d.ts +14 -0
  151. package/dist/components/message-tray/index.js +1 -1
  152. package/dist/components/message-tray/message-tray.d.ts +4 -0
  153. package/dist/components/multi-select/index.js +1 -1
  154. package/dist/components/nav-grid/index.d.ts +4 -0
  155. package/dist/components/nav-grid/index.js +7 -0
  156. package/dist/components/nav-grid/nav-grid.agent.d.ts +4 -0
  157. package/dist/components/nav-grid/nav-grid.d.ts +41 -0
  158. package/dist/components/notes-panel/index.js +1 -1
  159. package/dist/components/notes-panel/notes-panel.agent.d.ts +4 -0
  160. package/dist/components/notes-panel/notes-panel.d.ts +30 -0
  161. package/dist/components/notification-card/index.js +1 -1
  162. package/dist/components/notification-card/notification-card.d.ts +15 -0
  163. package/dist/components/notification-tray/index.js +1 -1
  164. package/dist/components/notification-tray/notification-tray.d.ts +4 -0
  165. package/dist/components/operator-hero/index.js +1 -1
  166. package/dist/components/panel-header/index.d.ts +3 -0
  167. package/dist/components/panel-header/index.js +7 -0
  168. package/dist/components/panel-header/panel-header.d.ts +41 -0
  169. package/dist/components/patient-details/index.js +1 -1
  170. package/dist/components/patient-search/index.js +1 -1
  171. package/dist/components/patient-summary-card/index.js +1 -1
  172. package/dist/components/patient-table/index.js +1 -1
  173. package/dist/components/payment-card/index.js +1 -1
  174. package/dist/components/permission-matrix/index.d.ts +4 -0
  175. package/dist/components/permission-matrix/index.js +7 -0
  176. package/dist/components/permission-matrix/permission-matrix.agent.d.ts +4 -0
  177. package/dist/components/permission-matrix/permission-matrix.d.ts +47 -0
  178. package/dist/components/position-grid/index.d.ts +4 -0
  179. package/dist/components/position-grid/index.js +7 -0
  180. package/dist/components/position-grid/position-grid.agent.d.ts +4 -0
  181. package/dist/components/position-grid/position-grid.d.ts +39 -0
  182. package/dist/components/postal-code-input/index.d.ts +5 -0
  183. package/dist/components/postal-code-input/index.js +6 -0
  184. package/dist/components/postal-code-input/postal-code-input.agent.d.ts +8 -0
  185. package/dist/components/postal-code-input/postal-code-input.d.ts +27 -0
  186. package/dist/components/practice-results/index.js +1 -1
  187. package/dist/components/pregnancy-dating/index.js +1 -1
  188. package/dist/components/product-hub-tray/index.js +1 -1
  189. package/dist/components/product-hub-tray/product-hub-tray.d.ts +13 -1
  190. package/dist/components/province-select/index.d.ts +6 -0
  191. package/dist/components/province-select/index.js +7 -0
  192. package/dist/components/province-select/it-provinces.d.ts +8 -0
  193. package/dist/components/province-select/province-select.agent.d.ts +8 -0
  194. package/dist/components/province-select/province-select.d.ts +38 -0
  195. package/dist/components/public-footer/public-footer.d.ts +1 -1
  196. package/dist/components/public-header/index.js +1 -1
  197. package/dist/components/radiograph-panel/index.js +1 -1
  198. package/dist/components/reviews-panel/index.js +1 -1
  199. package/dist/components/rich-text-editor/editor-toolbar.d.ts +17 -0
  200. package/dist/components/rich-text-editor/index.js +1 -1
  201. package/dist/components/scroll-area/index.js +1 -1
  202. package/dist/components/select/index.js +1 -1
  203. package/dist/components/select/select.d.ts +8 -2
  204. package/dist/components/sheet/index.js +1 -1
  205. package/dist/components/sidebar/index.js +1 -1
  206. package/dist/components/skeleton/skeleton.d.ts +1 -1
  207. package/dist/components/tabs/index.js +1 -1
  208. package/dist/components/task-card/index.js +1 -1
  209. package/dist/components/task-card/task-card.d.ts +14 -6
  210. package/dist/components/task-tray/index.js +1 -1
  211. package/dist/components/tasks-panel/index.d.ts +4 -0
  212. package/dist/components/tasks-panel/index.js +6 -0
  213. package/dist/components/tasks-panel/tasks-panel.agent.d.ts +4 -0
  214. package/dist/components/tasks-panel/tasks-panel.d.ts +152 -0
  215. package/dist/components/token-insert-menu/index.d.ts +4 -0
  216. package/dist/components/token-insert-menu/index.js +6 -0
  217. package/dist/components/token-insert-menu/token-insert-menu.agent.d.ts +4 -0
  218. package/dist/components/token-insert-menu/token-insert-menu.d.ts +33 -0
  219. package/dist/components/tool-rail/index.d.ts +4 -0
  220. package/dist/components/tool-rail/index.js +6 -0
  221. package/dist/components/tool-rail/tool-rail.agent.d.ts +4 -0
  222. package/dist/components/{ai-tools-rail/ai-tools-rail.d.ts → tool-rail/tool-rail.d.ts} +29 -12
  223. package/dist/components/tooth-scheme/index.js +1 -1
  224. package/dist/components/tooth-scheme/tooth-scheme.d.ts +9 -0
  225. package/dist/components/transcript-panel/index.js +1 -1
  226. package/dist/components/transcript-panel/transcript-panel.d.ts +2 -2
  227. package/dist/components/unit-converter/index.js +1 -1
  228. package/dist/components/workflow/index.js +1 -1
  229. package/dist/hooks/use-edge-resize.d.ts +2 -2
  230. package/dist/i18n/locales/ar.d.ts +167 -2
  231. package/dist/i18n/locales/ar.js +157 -5
  232. package/dist/i18n/locales/de.d.ts +167 -2
  233. package/dist/i18n/locales/de.js +159 -5
  234. package/dist/i18n/locales/el.d.ts +167 -2
  235. package/dist/i18n/locales/el.js +164 -5
  236. package/dist/i18n/locales/en.d.ts +167 -2
  237. package/dist/i18n/locales/en.js +170 -5
  238. package/dist/i18n/locales/es.d.ts +167 -2
  239. package/dist/i18n/locales/es.js +156 -5
  240. package/dist/i18n/locales/fr.d.ts +167 -2
  241. package/dist/i18n/locales/fr.js +159 -5
  242. package/dist/i18n/locales/hi.d.ts +167 -2
  243. package/dist/i18n/locales/hi.js +155 -5
  244. package/dist/i18n/locales/it.d.ts +167 -2
  245. package/dist/i18n/locales/it.js +159 -5
  246. package/dist/i18n/locales/ja.d.ts +167 -2
  247. package/dist/i18n/locales/ja.js +160 -5
  248. package/dist/i18n/locales/nl.d.ts +167 -2
  249. package/dist/i18n/locales/nl.js +152 -5
  250. package/dist/i18n/locales/pl.d.ts +167 -2
  251. package/dist/i18n/locales/pl.js +160 -5
  252. package/dist/i18n/locales/pt.d.ts +167 -2
  253. package/dist/i18n/locales/pt.js +164 -5
  254. package/dist/i18n/locales/ro.d.ts +167 -2
  255. package/dist/i18n/locales/ro.js +164 -5
  256. package/dist/i18n/locales/ru.d.ts +167 -2
  257. package/dist/i18n/locales/ru.js +157 -5
  258. package/dist/i18n/locales/sq.d.ts +167 -2
  259. package/dist/i18n/locales/sq.js +161 -5
  260. package/dist/i18n/locales/sv.d.ts +167 -2
  261. package/dist/i18n/locales/sv.js +159 -5
  262. package/dist/i18n/locales/tr.d.ts +167 -2
  263. package/dist/i18n/locales/tr.js +157 -5
  264. package/dist/i18n/locales/zh.d.ts +167 -2
  265. package/dist/i18n/locales/zh.js +152 -5
  266. package/dist/index.js +823 -755
  267. package/dist/locales/ar.json +170 -5
  268. package/dist/locales/de.json +170 -5
  269. package/dist/locales/el.json +170 -5
  270. package/dist/locales/en.json +170 -5
  271. package/dist/locales/es.json +170 -5
  272. package/dist/locales/fr.json +170 -5
  273. package/dist/locales/hi.json +170 -5
  274. package/dist/locales/it.json +170 -5
  275. package/dist/locales/ja.json +170 -5
  276. package/dist/locales/nl.json +170 -5
  277. package/dist/locales/pl.json +170 -5
  278. package/dist/locales/pt.json +170 -5
  279. package/dist/locales/ro.json +170 -5
  280. package/dist/locales/ru.json +170 -5
  281. package/dist/locales/sq.json +170 -5
  282. package/dist/locales/sv.json +170 -5
  283. package/dist/locales/tr.json +170 -5
  284. package/dist/locales/zh.json +170 -5
  285. package/dist/patterns/alia-assistant/alia-types.d.ts +9 -0
  286. package/dist/patterns/alia-assistant/index.js +1 -1
  287. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  288. package/dist/patterns/patient-shell/index.js +1 -1
  289. package/dist/tokens.css +9 -1
  290. package/package.json +65 -5
  291. package/dist/_chunks/care-plan-header-BUwqDTtz.js +0 -206
  292. package/dist/_chunks/control-room-rail-Y8ryLYsP.js +0 -229
  293. package/dist/_chunks/editable-currency-cell-renderer-C9twtALM.js +0 -328
  294. package/dist/_chunks/entity-summary-BxRjFh_4.js +0 -138
  295. package/dist/_chunks/message-card-Bx4GmLvf.js +0 -277
  296. package/dist/_chunks/notes-panel-ay8_lPrA.js +0 -158
  297. package/dist/_chunks/notification-card-D2jiKSJJ.js +0 -259
  298. package/dist/_chunks/radiograph-panel.agent-CAX-C3g3.js +0 -558
  299. package/dist/_chunks/reviews-panel-Dq7LMDcH.js +0 -555
  300. package/dist/_chunks/rich-text-editor-DlCqPixb.js +0 -2158
  301. package/dist/_chunks/task-card-BwY9jaV1.js +0 -124
  302. package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +0 -4
  303. package/dist/components/ai-tools-rail/index.d.ts +0 -4
  304. package/dist/components/ai-tools-rail/index.js +0 -6
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as u, Fragment as ve } from "react/jsx-runtime";
2
- import { forwardRef as H, useMemo as q, useRef as z, useCallback as F, useState as ge, useImperativeHandle as be, useEffect as ke } from "react";
3
- import { c as D } from "./index-D2ZczOXr.js";
2
+ import { forwardRef as H, useMemo as F, useRef as z, useCallback as q, useState as ge, useImperativeHandle as be, useEffect as ke } from "react";
3
+ import { c as j } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as M } from "react-i18next";
5
5
  import { C } from "./card-DPmk26CL.js";
6
6
  import { B as ye } from "./badge-DCOqV9mI.js";
@@ -8,11 +8,11 @@ import { a as Z } from "./key-value-pair-BrgbMfbF.js";
8
8
  import { T as xe } from "./timestamp-BV2lC-wV.js";
9
9
  import { I as S } from "./icon-button-LqoiKcUN.js";
10
10
  import { P as U } from "./pencil-CfQX-0Qc.js";
11
- import { c as A } from "./createLucideIcon-CrFbzy84.js";
11
+ import { c as L } from "./createLucideIcon-CrFbzy84.js";
12
12
  import { T as ae } from "./trash-2-rPAKaRgB.js";
13
13
  import { C as Ne } from "./circle-BkqTgYmt.js";
14
14
  import { u as Ce } from "./registry-DvAUVLHh.js";
15
- import { A as O } from "./alert-CHYZ96tR.js";
15
+ import { A as $ } from "./alert-CHYZ96tR.js";
16
16
  import { B as _e } from "./button-DD_0Xdmr.js";
17
17
  import { D as N } from "./dropdown-menu-qrxjymfw.js";
18
18
  import { E } from "./empty-state-BLy7tigq.js";
@@ -25,14 +25,15 @@ import { M as ue } from "./mail-C8irm52s.js";
25
25
  import { C as fe } from "./clock-21AGPWJ5.js";
26
26
  import { C as Se } from "./chevron-up-zOEDrmBB.js";
27
27
  import { C as Me } from "./chevron-down-BX_NP2Yh.js";
28
- import { C as ze } from "./check-DPdL_Sm7.js";
28
+ import { L as ze } from "./list-checks-BUs75d_o.js";
29
+ import { C as Ae } from "./check-DPdL_Sm7.js";
29
30
  /**
30
31
  * @license lucide-react v1.8.0 - ISC
31
32
  *
32
33
  * This source code is licensed under the ISC license.
33
34
  * See the LICENSE file in the root directory of this source tree.
34
35
  */
35
- const Ae = [
36
+ const Ie = [
36
37
  ["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
37
38
  ["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
38
39
  ["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
@@ -41,31 +42,18 @@ const Ae = [
41
42
  ["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
42
43
  ["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
43
44
  ["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
44
- ], Ie = A("circle-dashed", Ae);
45
+ ], Te = L("circle-dashed", Ie);
45
46
  /**
46
47
  * @license lucide-react v1.8.0 - ISC
47
48
  *
48
49
  * This source code is licensed under the ISC license.
49
50
  * See the LICENSE file in the root directory of this source tree.
50
51
  */
51
- const Te = [
52
+ const Ee = [
52
53
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
53
54
  ["line", { x1: "10", x2: "10", y1: "15", y2: "9", key: "c1nkhi" }],
54
55
  ["line", { x1: "14", x2: "14", y1: "15", y2: "9", key: "h65svq" }]
55
- ], je = A("circle-pause", Te);
56
- /**
57
- * @license lucide-react v1.8.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */
62
- const Ee = [
63
- ["path", { d: "M13 5h8", key: "a7qcls" }],
64
- ["path", { d: "M13 12h8", key: "h98zly" }],
65
- ["path", { d: "M13 19h8", key: "c3s6r1" }],
66
- ["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
67
- ["path", { d: "m3 7 2 2 4-4", key: "1obspn" }]
68
- ], De = A("list-checks", Ee);
56
+ ], je = L("circle-pause", Ee);
69
57
  /**
70
58
  * @license lucide-react v1.8.0 - ISC
71
59
  *
@@ -77,27 +65,27 @@ const Le = [
77
65
  ["path", { d: "M6.16 6.16a9 9 0 1 0 12.68 12.68", key: "1x7qb5" }],
78
66
  ["path", { d: "M12 2v4", key: "3427ic" }],
79
67
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
80
- ], Ke = A("power-off", Le);
68
+ ], De = L("power-off", Le);
81
69
  /**
82
70
  * @license lucide-react v1.8.0 - ISC
83
71
  *
84
72
  * This source code is licensed under the ISC license.
85
73
  * See the LICENSE file in the root directory of this source tree.
86
74
  */
87
- const Be = [
75
+ const Ke = [
88
76
  ["path", { d: "M12 2v10", key: "mnfbl" }],
89
77
  ["path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04", key: "obofu9" }]
90
- ], Pe = A("power", Be);
78
+ ], Be = L("power", Ke);
91
79
  /**
92
80
  * @license lucide-react v1.8.0 - ISC
93
81
  *
94
82
  * This source code is licensed under the ISC license.
95
83
  * See the LICENSE file in the root directory of this source tree.
96
84
  */
97
- const Re = [
85
+ const Pe = [
98
86
  ["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
99
87
  ["path", { d: "M12 18h.01", key: "mhygvu" }]
100
- ], me = A("smartphone", Re), We = D("ds:relative ds:w-full", {
88
+ ], me = L("smartphone", Pe), Re = j("ds:relative ds:w-full", {
101
89
  variants: {
102
90
  density: {
103
91
  comfortable: "",
@@ -108,7 +96,7 @@ const Re = [
108
96
  density: "comfortable"
109
97
  }
110
98
  });
111
- function qe(e) {
99
+ function We(e) {
112
100
  switch (e) {
113
101
  case "active":
114
102
  return {
@@ -124,7 +112,7 @@ function qe(e) {
124
112
  default:
125
113
  return {
126
114
  badgeVariant: "neutral",
127
- icon: /* @__PURE__ */ t(Ie, { "aria-hidden": "true" })
115
+ icon: /* @__PURE__ */ t(Te, { "aria-hidden": "true" })
128
116
  };
129
117
  }
130
118
  }
@@ -138,7 +126,7 @@ const Fe = H(
138
126
  onToggleActive: a,
139
127
  className: p
140
128
  }, m) {
141
- const { t: c } = M(), i = qe(s.status), l = s.status === "active", v = r === "compact", h = (w) => (k) => {
129
+ const { t: c } = M(), i = We(s.status), l = s.status === "active", v = r === "compact", h = (w) => (k) => {
142
130
  k.stopPropagation(), w == null || w();
143
131
  }, y = /* @__PURE__ */ t(
144
132
  ye,
@@ -154,7 +142,7 @@ const Fe = H(
154
142
  {
155
143
  ref: m,
156
144
  variant: "default",
157
- className: We({ density: r, className: p }),
145
+ className: Re({ density: r, className: p }),
158
146
  "data-component": "workflow-card",
159
147
  "data-component-id": s.id,
160
148
  children: [
@@ -233,7 +221,7 @@ const Fe = H(
233
221
  a && /* @__PURE__ */ t(
234
222
  S,
235
223
  {
236
- icon: l ? /* @__PURE__ */ t(Ke, {}) : /* @__PURE__ */ t(Pe, {}),
224
+ icon: l ? /* @__PURE__ */ t(De, {}) : /* @__PURE__ */ t(Be, {}),
237
225
  size: "sm",
238
226
  intent: "ghost",
239
227
  "aria-label": c(
@@ -260,7 +248,7 @@ const Fe = H(
260
248
  }
261
249
  );
262
250
  Fe.displayName = "WorkflowCard";
263
- const qt = {
251
+ const Ft = {
264
252
  id: "workflow-card",
265
253
  // Presentational summary card — no agent-facing action or state. Navigation
266
254
  // is owned by the host pattern, so no capability is declared here.
@@ -279,7 +267,7 @@ const qt = {
279
267
  description: "Sourced from the id prop."
280
268
  }
281
269
  }
282
- }, Ft = {
270
+ }, qt = {
283
271
  id: "workflow-map",
284
272
  // Presentational linear visualisation — no agent-facing action or state.
285
273
  capabilities: [],
@@ -301,7 +289,7 @@ const qt = {
301
289
  description: "Stable opaque workflow node id emitted on each step."
302
290
  }
303
291
  }
304
- }, $e = {
292
+ }, qe = {
305
293
  id: "workflow-editor",
306
294
  // `goto_step` focuses a node (navigation). No `expand` capability: the
307
295
  // WorkflowEditorHandle exposes no expand/collapse method to back it.
@@ -429,7 +417,7 @@ function Oe(e, s, r) {
429
417
  const m = ee(ee(e, a.id), p.id), c = r === "up" ? a : p, i = r === "up" ? p : a, l = ((h = o[Math.min(d, n) - 1]) == null ? void 0 : h.id) ?? null, v = V(m, l, c);
430
418
  return V(v, c.id, i);
431
419
  }
432
- const Ve = /* @__PURE__ */ new Set([
420
+ const $e = /* @__PURE__ */ new Set([
433
421
  "dateOfBirth",
434
422
  "date_of_birth",
435
423
  "firstName",
@@ -449,10 +437,10 @@ const Ve = /* @__PURE__ */ new Set([
449
437
  "address",
450
438
  "id"
451
439
  ]);
452
- function He(e) {
453
- return Ve.has(e);
440
+ function Ve(e) {
441
+ return $e.has(e);
454
442
  }
455
- const L = {
443
+ const D = {
456
444
  add_delay: {
457
445
  labelKey: "workflow.action.addDelay",
458
446
  iconName: "Clock"
@@ -481,7 +469,7 @@ const L = {
481
469
  labelKey: "workflow.action.webhook",
482
470
  iconName: "Globe"
483
471
  }
484
- }, Ue = {
472
+ }, He = {
485
473
  Clock: fe,
486
474
  Mail: ue,
487
475
  Smartphone: me,
@@ -494,14 +482,14 @@ function Y({
494
482
  iconName: e,
495
483
  className: s
496
484
  }) {
497
- const r = Ue[e];
485
+ const r = He[e];
498
486
  return /* @__PURE__ */ t(r, { "aria-hidden": "true", className: s ?? "ds:size-4" });
499
487
  }
500
- const Ge = 40, Ye = 60;
488
+ const Ue = 40, Ge = 60;
501
489
  function te(e, s) {
502
490
  return e.length <= s ? e : `${e.slice(0, s - 1)}…`;
503
491
  }
504
- function Je(e, s) {
492
+ function Ye(e, s) {
505
493
  switch (e.kind) {
506
494
  case "add_delay": {
507
495
  const r = e.days ?? 0, o = s("workflow.delay.summary", { count: r });
@@ -509,11 +497,11 @@ function Je(e, s) {
509
497
  }
510
498
  case "send_email": {
511
499
  const r = e.subject ?? "", d = `${s("workflow.action.sendEmail")}: ${r}`;
512
- return { text: te(d, Ge), full: d };
500
+ return { text: te(d, Ue), full: d };
513
501
  }
514
502
  case "send_sms": {
515
503
  const r = e.body ?? "";
516
- return { text: te(r, Ye), full: r };
504
+ return { text: te(r, Ge), full: r };
517
505
  }
518
506
  case "create_task": {
519
507
  const r = e.title ?? "";
@@ -532,7 +520,7 @@ const se = [
532
520
  "ds:w-full",
533
521
  "ds:text-start",
534
522
  "ds:gap-[var(--spacing-sm)]"
535
- ].join(" "), $ = [
523
+ ].join(" "), O = [
536
524
  "ds:block",
537
525
  "ds:self-start",
538
526
  "ds:h-[var(--spacing-md)]",
@@ -540,7 +528,7 @@ const se = [
540
528
  "ds:border-inline-start-[var(--border-width-hairline)]",
541
529
  "ds:border-solid",
542
530
  "ds:border-[color:var(--border)]"
543
- ].join(" "), Qe = [
531
+ ].join(" "), Je = [
544
532
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
545
533
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
546
534
  "ds:rounded-[var(--radius-full)]",
@@ -555,21 +543,21 @@ const se = [
555
543
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
556
544
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
557
545
  "ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
558
- ].join(" "), Xe = [
546
+ ].join(" "), Qe = [
559
547
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
560
548
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
561
549
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
562
550
  "ds:rounded-[var(--radius-lg)]"
563
- ].join(" "), Ze = Object.keys(
564
- L
551
+ ].join(" "), Xe = Object.keys(
552
+ D
565
553
  );
566
554
  let re = 0;
567
- function et() {
555
+ function Ze() {
568
556
  re += 1;
569
557
  const e = Math.random().toString(36).slice(2, 8);
570
558
  return `wf-node-${Date.now()}-${re}-${e}`;
571
559
  }
572
- function tt(e) {
560
+ function et(e) {
573
561
  switch (e) {
574
562
  case "add_delay":
575
563
  return { kind: "add_delay", days: 1 };
@@ -592,13 +580,13 @@ function tt(e) {
592
580
  return { kind: "webhook", url: "", method: "POST" };
593
581
  }
594
582
  }
595
- function st(e = 0) {
596
- const s = z(e), r = F((o) => {
583
+ function tt(e = 0) {
584
+ const s = z(e), r = q((o) => {
597
585
  s.current = o;
598
586
  }, []);
599
587
  return [s, r];
600
588
  }
601
- function rt({
589
+ function st({
602
590
  node: e,
603
591
  position: s,
604
592
  total: r,
@@ -608,7 +596,7 @@ function rt({
608
596
  onMove: a,
609
597
  registerRef: p
610
598
  }) {
611
- const { t: m } = M(), c = L[e.type], i = z(null), [l, v] = st(0), h = F(
599
+ const { t: m } = M(), c = D[e.type], i = z(null), [l, v] = tt(0), h = q(
612
600
  (g) => {
613
601
  var P, R;
614
602
  const _ = (P = i.current) == null ? void 0 : P.querySelectorAll(
@@ -623,10 +611,10 @@ function rt({
623
611
  g.target === g.currentTarget && (g.key === "ArrowRight" || g.key === "ArrowDown") && (g.preventDefault(), h(0));
624
612
  }, x = (g) => {
625
613
  g.key === "ArrowRight" ? (g.preventDefault(), h(l.current + 1)) : g.key === "ArrowLeft" ? (g.preventDefault(), h(l.current - 1)) : g.key === "Home" ? (g.preventDefault(), h(0)) : g.key === "End" && (g.preventDefault(), h(Number.POSITIVE_INFINITY));
626
- }, w = Je(e.settings, m), k = m(c.labelKey), I = s > 0, T = s < r - 1, K = m("workflow.editor.position", {
614
+ }, w = Ye(e.settings, m), k = m(c.labelKey), A = s > 0, I = s < r - 1, K = m("workflow.editor.position", {
627
615
  current: s + 1,
628
616
  total: r
629
- }), j = m("workflow.editor.nodeAriaLabel", {
617
+ }), T = m("workflow.editor.nodeAriaLabel", {
630
618
  type: k,
631
619
  current: s + 1,
632
620
  total: r
@@ -639,9 +627,9 @@ function rt({
639
627
  ref: (g) => p(e.id, g),
640
628
  tabIndex: o ? -1 : 0,
641
629
  onKeyDown: y,
642
- "aria-label": j,
630
+ "aria-label": T,
643
631
  "data-node-id": e.id,
644
- className: Xe,
632
+ className: Qe,
645
633
  children: /* @__PURE__ */ u(C, { variant: "outlined", children: [
646
634
  /* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
647
635
  /* @__PURE__ */ t(
@@ -683,7 +671,7 @@ function rt({
683
671
  icon: /* @__PURE__ */ t(Se, {}),
684
672
  size: "sm",
685
673
  intent: "ghost",
686
- disabled: o || !I,
674
+ disabled: o || !A,
687
675
  tabIndex: -1,
688
676
  "aria-label": m("workflow.editor.moveUp"),
689
677
  onClick: () => a(e.id, "up")
@@ -696,7 +684,7 @@ function rt({
696
684
  icon: /* @__PURE__ */ t(Me, {}),
697
685
  size: "sm",
698
686
  intent: "ghost",
699
- disabled: o || !T,
687
+ disabled: o || !I,
700
688
  tabIndex: -1,
701
689
  "aria-label": m("workflow.editor.moveDown"),
702
690
  onClick: () => a(e.id, "down")
@@ -727,7 +715,7 @@ function rt({
727
715
  children: w.text
728
716
  }
729
717
  ) }) : null,
730
- e.settings.kind === "update_patient_field" && He(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(O, { variant: "error", "data-testid": "workflow-editor-invalid-field", children: m("workflow.editor.invalidField") }) }) : null
718
+ e.settings.kind === "update_patient_field" && Ve(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t($, { variant: "error", "data-testid": "workflow-editor-invalid-field", children: m("workflow.editor.invalidField") }) }) : null
731
719
  ] })
732
720
  }
733
721
  )
@@ -748,7 +736,7 @@ function oe({
748
736
  type: "button",
749
737
  disabled: r,
750
738
  "aria-label": o,
751
- className: Qe,
739
+ className: Je,
752
740
  children: [
753
741
  /* @__PURE__ */ t(ne, { "aria-hidden": "true", className: "ds:size-4" }),
754
742
  d ? null : /* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)]", children: o })
@@ -758,7 +746,7 @@ function oe({
758
746
  /* @__PURE__ */ u(N.Content, { align: "start", sideOffset: 6, children: [
759
747
  /* @__PURE__ */ t(N.Label, { children: n("workflow.editor.addAction") }),
760
748
  e.map((a) => {
761
- const p = L[a];
749
+ const p = D[a];
762
750
  return /* @__PURE__ */ t(
763
751
  N.Item,
764
752
  {
@@ -772,7 +760,7 @@ function oe({
772
760
  ] })
773
761
  ] });
774
762
  }
775
- function ot({ criteria: e, onEdit: s, disabled: r }) {
763
+ function rt({ criteria: e, onEdit: s, disabled: r }) {
776
764
  const { t: o } = M(), d = (e == null ? void 0 : e.ruleCount) ?? 0, n = d > 0 ? o("workflow.editor.criteriaCount", { count: d }) : o("workflow.editor.noCriteria");
777
765
  return /* @__PURE__ */ t(C, { variant: "outlined", children: /* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
778
766
  /* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
@@ -792,7 +780,7 @@ function ot({ criteria: e, onEdit: s, disabled: r }) {
792
780
  ) : null
793
781
  ] }) }) });
794
782
  }
795
- const at = H(
783
+ const ot = H(
796
784
  function({
797
785
  graph: s,
798
786
  onChange: r,
@@ -804,29 +792,29 @@ const at = H(
804
792
  onDeleteNode: m,
805
793
  className: c
806
794
  }, i) {
807
- const { t: l } = M(), v = a ?? Ze, h = q(() => G(s), [s]), y = z(/* @__PURE__ */ new Map()), x = z(null), w = F(
795
+ const { t: l } = M(), v = a ?? Xe, h = F(() => G(s), [s]), y = z(/* @__PURE__ */ new Map()), x = z(null), w = q(
808
796
  (f) => {
809
797
  n || r(f);
810
798
  },
811
799
  [n, r]
812
- ), k = F((f, b) => {
800
+ ), k = q((f, b) => {
813
801
  b ? y.current.set(f, b) : y.current.delete(f);
814
- }, []), [I, T] = ge(null), K = z(null);
815
- K.current = I;
816
- const j = z(null);
817
- be(i, () => j.current, []);
818
- const g = q(
802
+ }, []), [A, I] = ge(null), K = z(null);
803
+ K.current = A;
804
+ const T = z(null);
805
+ be(i, () => T.current, []);
806
+ const g = F(
819
807
  () => ({
820
808
  getTotalSteps: () => h.length,
821
809
  getCurrentStep: () => K.current,
822
810
  gotoStep: (f) => {
823
811
  const b = y.current.get(f);
824
- b && (b.focus(), T(f));
812
+ b && (b.focus(), I(f));
825
813
  }
826
814
  }),
827
815
  [h.length]
828
816
  );
829
- Ce($e, g, void 0), ke(() => {
817
+ Ce(qe, g, void 0), ke(() => {
830
818
  const f = x.current;
831
819
  if (!f) return;
832
820
  const b = y.current.get(f);
@@ -835,9 +823,9 @@ const at = H(
835
823
  const _ = (f, b) => {
836
824
  if (n) return;
837
825
  const W = {
838
- id: et(),
826
+ id: Ze(),
839
827
  type: b,
840
- settings: tt(b)
828
+ settings: et(b)
841
829
  };
842
830
  x.current = W.id, w(V(s, f, W));
843
831
  }, B = (f, b) => {
@@ -846,21 +834,21 @@ const at = H(
846
834
  n || !p || p(f);
847
835
  }, R = (f) => {
848
836
  n || !m || m(f);
849
- }, J = () => n ? /* @__PURE__ */ t(O, { variant: "warning", children: /* @__PURE__ */ t(O.Title, { as: "p", children: l("workflow.editor.activeLock") }) }) : null, Q = () => o || d ? /* @__PURE__ */ u(ve, { children: [
837
+ }, J = () => n ? /* @__PURE__ */ t($, { variant: "warning", children: /* @__PURE__ */ t($.Title, { as: "p", children: l("workflow.editor.activeLock") }) }) : null, Q = () => o || d ? /* @__PURE__ */ u(ve, { children: [
850
838
  /* @__PURE__ */ t(
851
- ot,
839
+ rt,
852
840
  {
853
841
  criteria: o,
854
842
  onEdit: d,
855
843
  disabled: n
856
844
  }
857
845
  ),
858
- /* @__PURE__ */ t("span", { "aria-hidden": "true", className: $ })
846
+ /* @__PURE__ */ t("span", { "aria-hidden": "true", className: O })
859
847
  ] }) : null, X = h.length;
860
848
  return X === 0 ? /* @__PURE__ */ u(
861
849
  "div",
862
850
  {
863
- ref: j,
851
+ ref: T,
864
852
  className: [se, c].filter(Boolean).join(" "),
865
853
  children: [
866
854
  J(),
@@ -926,7 +914,7 @@ const at = H(
926
914
  /* @__PURE__ */ u(N.Content, { align: "center", sideOffset: 6, children: [
927
915
  /* @__PURE__ */ t(N.Label, { children: l("workflow.editor.addAction") }),
928
916
  v.map((f) => {
929
- const b = L[f];
917
+ const b = D[f];
930
918
  return /* @__PURE__ */ t(
931
919
  N.Item,
932
920
  {
@@ -947,7 +935,7 @@ const at = H(
947
935
  ) : /* @__PURE__ */ u(
948
936
  "div",
949
937
  {
950
- ref: j,
938
+ ref: T,
951
939
  "data-component": "workflow-editor",
952
940
  className: [se, c].filter(Boolean).join(" "),
953
941
  children: [
@@ -969,9 +957,9 @@ const at = H(
969
957
  "aria-label": l("workflow.editor.pipeline"),
970
958
  className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col",
971
959
  children: h.map((f, b) => /* @__PURE__ */ u("li", { className: "ds:list-none ds:flex ds:flex-col", children: [
972
- /* @__PURE__ */ t("span", { "aria-hidden": "true", className: $ }),
960
+ /* @__PURE__ */ t("span", { "aria-hidden": "true", className: O }),
973
961
  /* @__PURE__ */ t(
974
- rt,
962
+ st,
975
963
  {
976
964
  node: f,
977
965
  position: b,
@@ -983,7 +971,7 @@ const at = H(
983
971
  registerRef: k
984
972
  }
985
973
  ),
986
- /* @__PURE__ */ t("span", { "aria-hidden": "true", className: $ }),
974
+ /* @__PURE__ */ t("span", { "aria-hidden": "true", className: O }),
987
975
  /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
988
976
  oe,
989
977
  {
@@ -1001,8 +989,8 @@ const at = H(
1001
989
  );
1002
990
  }
1003
991
  );
1004
- at.displayName = "WorkflowEditor";
1005
- const nt = {
992
+ ot.displayName = "WorkflowEditor";
993
+ const at = {
1006
994
  Clock: fe,
1007
995
  Mail: ue,
1008
996
  Smartphone: me,
@@ -1010,7 +998,7 @@ const nt = {
1010
998
  MessageCircle: le,
1011
999
  UserCog: de,
1012
1000
  Globe: ie
1013
- }, it = D(
1001
+ }, nt = j(
1014
1002
  // The map is a list of steps — never a list of meaningful controls.
1015
1003
  // Layout via logical properties only; connectors are sibling spacers
1016
1004
  // styled with border-inline-start / border-block-end (see node/spacer).
@@ -1031,14 +1019,14 @@ const nt = {
1031
1019
  compact: !1
1032
1020
  }
1033
1021
  }
1034
- ), pe = D("ds:flex", {
1022
+ ), pe = j("ds:flex", {
1035
1023
  variants: {
1036
1024
  orientation: {
1037
1025
  vertical: "ds:flex-col ds:items-stretch",
1038
1026
  horizontal: "ds:flex-row ds:items-center"
1039
1027
  }
1040
1028
  }
1041
- }), he = D(
1029
+ }), he = j(
1042
1030
  [
1043
1031
  "ds:relative ds:flex ds:items-center",
1044
1032
  "ds:gap-[var(--spacing-sm)]",
@@ -1084,7 +1072,7 @@ const nt = {
1084
1072
  }
1085
1073
  }
1086
1074
  }
1087
- ), we = D(
1075
+ ), we = j(
1088
1076
  ["ds:block", "ds:border-solid", "ds:border-[color:var(--border)]"].join(" "),
1089
1077
  {
1090
1078
  variants: {
@@ -1133,7 +1121,7 @@ const nt = {
1133
1121
  ]
1134
1122
  }
1135
1123
  );
1136
- function dt(e) {
1124
+ function it(e) {
1137
1125
  switch (e.kind) {
1138
1126
  case "add_delay":
1139
1127
  return typeof e.days == "number" && e.days > 0 ? {
@@ -1162,11 +1150,11 @@ function dt(e) {
1162
1150
  return;
1163
1151
  }
1164
1152
  }
1165
- function lt(e, s) {
1153
+ function dt(e, s) {
1166
1154
  if (e !== void 0)
1167
1155
  return typeof e == "string" ? e : s(e.key, e.options);
1168
1156
  }
1169
- const ct = H(
1157
+ const lt = H(
1170
1158
  function({
1171
1159
  graph: s,
1172
1160
  activeNodeId: r,
@@ -1178,7 +1166,7 @@ const ct = H(
1178
1166
  "aria-label": m,
1179
1167
  ...c
1180
1168
  }, i) {
1181
- const { t: l } = M(), v = q(() => G(s), [s]), h = q(
1169
+ const { t: l } = M(), v = F(() => G(s), [s]), h = F(
1182
1170
  () => r ? v.findIndex((w) => w.id === r) : -1,
1183
1171
  [v, r]
1184
1172
  ), y = m ?? l("workflow.map.label", { count: v.length }), x = (w) => h === -1 ? "neutral" : w === h ? "current" : w < h ? "completed" : "pending";
@@ -1192,11 +1180,11 @@ const ct = H(
1192
1180
  "aria-label": y,
1193
1181
  "data-component": "workflow-map",
1194
1182
  "data-component-id": c.id,
1195
- className: it({ orientation: n, compact: a, className: p }),
1183
+ className: nt({ orientation: n, compact: a, className: p }),
1196
1184
  ...c,
1197
1185
  children: [
1198
1186
  d ? /* @__PURE__ */ t(
1199
- ft,
1187
+ ut,
1200
1188
  {
1201
1189
  orientation: n,
1202
1190
  compact: a,
@@ -1204,15 +1192,15 @@ const ct = H(
1204
1192
  }
1205
1193
  ) : null,
1206
1194
  v.map((w, k) => {
1207
- const I = x(k), T = k === v.length - 1;
1195
+ const A = x(k), I = k === v.length - 1;
1208
1196
  return /* @__PURE__ */ t(
1209
- ut,
1197
+ ct,
1210
1198
  {
1211
1199
  node: w,
1212
- state: I,
1200
+ state: A,
1213
1201
  orientation: n,
1214
1202
  compact: a,
1215
- isLast: T,
1203
+ isLast: I,
1216
1204
  onNodeClick: o
1217
1205
  },
1218
1206
  w.id
@@ -1224,8 +1212,8 @@ const ct = H(
1224
1212
  );
1225
1213
  }
1226
1214
  );
1227
- ct.displayName = "WorkflowMap";
1228
- function ut({
1215
+ lt.displayName = "WorkflowMap";
1216
+ function ct({
1229
1217
  node: e,
1230
1218
  state: s,
1231
1219
  orientation: r,
@@ -1233,7 +1221,7 @@ function ut({
1233
1221
  isLast: d,
1234
1222
  onNodeClick: n
1235
1223
  }) {
1236
- const { t: a } = M(), p = L[e.type], m = nt[p.iconName], c = a(p.labelKey), i = lt(dt(e.settings), a), l = typeof n == "function", v = s === "current", h = s === "completed", y = (k) => {
1224
+ const { t: a } = M(), p = D[e.type], m = at[p.iconName], c = a(p.labelKey), i = dt(it(e.settings), a), l = typeof n == "function", v = s === "current", h = s === "completed", y = (k) => {
1237
1225
  l && (k.preventDefault(), n == null || n(e.id));
1238
1226
  }, x = (k) => {
1239
1227
  l && (k.key === "Enter" || k.key === " ") && (k.preventDefault(), n == null || n(e.id));
@@ -1272,7 +1260,7 @@ function ut({
1272
1260
  "aria-hidden": "true",
1273
1261
  className: "ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:size-[var(--spacing-md)] ds:text-[var(--muted-foreground)]",
1274
1262
  children: h ? /* @__PURE__ */ t(
1275
- ze,
1263
+ Ae,
1276
1264
  {
1277
1265
  className: "ds:size-[var(--spacing-md)] ds:text-[color:var(--success)]",
1278
1266
  "data-testid": "workflow-map-check"
@@ -1306,7 +1294,7 @@ function ut({
1306
1294
  ] })
1307
1295
  );
1308
1296
  }
1309
- function ft({
1297
+ function ut({
1310
1298
  orientation: e,
1311
1299
  compact: s,
1312
1300
  criteria: r
@@ -1329,7 +1317,7 @@ function ft({
1329
1317
  {
1330
1318
  "aria-hidden": "true",
1331
1319
  className: "ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:size-[var(--spacing-md)] ds:text-[var(--muted-foreground)]",
1332
- children: /* @__PURE__ */ t(De, { className: "ds:size-[var(--spacing-md)]" })
1320
+ children: /* @__PURE__ */ t(ze, { className: "ds:size-[var(--spacing-md)]" })
1333
1321
  }
1334
1322
  ),
1335
1323
  /* @__PURE__ */ u("span", { className: "ds:flex ds:flex-col ds:min-w-0 ds:flex-1", children: [
@@ -1351,18 +1339,18 @@ function ft({
1351
1339
  ] });
1352
1340
  }
1353
1341
  export {
1354
- Ve as C,
1342
+ $e as C,
1355
1343
  Fe as W,
1356
- at as a,
1357
- ct as b,
1344
+ ot as a,
1345
+ lt as b,
1358
1346
  V as c,
1359
- qt as d,
1360
- $e as e,
1361
- Ft as f,
1362
- He as i,
1347
+ Ft as d,
1348
+ qe as e,
1349
+ qt as f,
1350
+ Ve as i,
1363
1351
  G as l,
1364
1352
  Oe as m,
1365
1353
  ee as r,
1366
- L as w
1354
+ D as w
1367
1355
  };
1368
- //# sourceMappingURL=workflow-map-Dy8mLCqF.js.map
1356
+ //# sourceMappingURL=workflow-map-M8MBBHQm.js.map