@vertesia/ui 1.2.0 → 1.4.0-dev.20260615.042549Z

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 (3718) hide show
  1. package/README.md +72 -0
  2. package/lib/core/components/Avatar.d.ts +16 -0
  3. package/lib/core/components/Avatar.d.ts.map +1 -0
  4. package/lib/core/components/Avatar.js +38 -0
  5. package/lib/core/components/Avatar.js.map +1 -0
  6. package/lib/core/components/Center.d.ts +8 -0
  7. package/lib/core/components/Center.d.ts.map +1 -0
  8. package/lib/core/components/Center.js +6 -0
  9. package/lib/core/components/Center.js.map +1 -0
  10. package/lib/core/components/ComboBox.d.ts +134 -0
  11. package/lib/core/components/ComboBox.d.ts.map +1 -0
  12. package/lib/core/components/ComboBox.js +385 -0
  13. package/lib/core/components/ComboBox.js.map +1 -0
  14. package/lib/core/components/Divider.d.ts +6 -0
  15. package/lib/core/components/Divider.d.ts.map +1 -0
  16. package/lib/core/components/Divider.js +6 -0
  17. package/lib/core/components/Divider.js.map +1 -0
  18. package/lib/core/components/EmptyCollection.d.ts +9 -0
  19. package/lib/core/components/EmptyCollection.d.ts.map +1 -0
  20. package/lib/core/components/EmptyCollection.js +7 -0
  21. package/lib/core/components/EmptyCollection.js.map +1 -0
  22. package/lib/core/components/FileUpload.d.ts +29 -0
  23. package/lib/core/components/FileUpload.d.ts.map +1 -0
  24. package/lib/core/components/FileUpload.js +131 -0
  25. package/lib/core/components/FileUpload.js.map +1 -0
  26. package/lib/core/components/FormItem.d.ts +30 -0
  27. package/lib/core/components/FormItem.d.ts.map +1 -0
  28. package/lib/core/components/FormItem.js +64 -0
  29. package/lib/core/components/FormItem.js.map +1 -0
  30. package/lib/core/components/InputList.d.ts +14 -0
  31. package/lib/core/components/InputList.d.ts.map +1 -0
  32. package/lib/core/components/InputList.js +75 -0
  33. package/lib/core/components/InputList.js.map +1 -0
  34. package/lib/core/components/Link.d.ts +7 -0
  35. package/lib/core/components/Link.d.ts.map +1 -0
  36. package/lib/core/components/Link.js +13 -0
  37. package/lib/core/components/Link.js.map +1 -0
  38. package/lib/core/components/MenuList.d.ts +14 -0
  39. package/lib/core/components/MenuList.d.ts.map +1 -0
  40. package/lib/core/components/MenuList.js +20 -0
  41. package/lib/core/components/MenuList.js.map +1 -0
  42. package/lib/core/components/NumberInput.d.ts +16 -0
  43. package/lib/core/components/NumberInput.d.ts.map +1 -0
  44. package/lib/core/components/NumberInput.js +48 -0
  45. package/lib/core/components/NumberInput.js.map +1 -0
  46. package/lib/core/components/Overlay.d.ts +25 -0
  47. package/lib/core/components/Overlay.d.ts.map +1 -0
  48. package/lib/core/components/Overlay.js +67 -0
  49. package/lib/core/components/Overlay.js.map +1 -0
  50. package/lib/core/components/Portal.d.ts +6 -0
  51. package/lib/core/components/Portal.d.ts.map +1 -0
  52. package/lib/core/components/Portal.js +29 -0
  53. package/lib/core/components/Portal.js.map +1 -0
  54. package/lib/core/components/SelectList.d.ts +19 -0
  55. package/lib/core/components/SelectList.d.ts.map +1 -0
  56. package/lib/core/components/SelectList.js +54 -0
  57. package/lib/core/components/SelectList.js.map +1 -0
  58. package/lib/core/components/SidePanel.d.ts +16 -0
  59. package/lib/core/components/SidePanel.d.ts.map +1 -0
  60. package/lib/core/components/SidePanel.js +48 -0
  61. package/lib/core/components/SidePanel.js.map +1 -0
  62. package/lib/core/components/Spinner.d.ts +7 -0
  63. package/lib/core/components/Spinner.d.ts.map +1 -0
  64. package/lib/core/components/Spinner.js +25 -0
  65. package/lib/core/components/Spinner.js.map +1 -0
  66. package/lib/core/components/TagsInput.d.ts +16 -0
  67. package/lib/core/components/TagsInput.d.ts.map +1 -0
  68. package/lib/core/components/TagsInput.js +199 -0
  69. package/lib/core/components/TagsInput.js.map +1 -0
  70. package/lib/core/components/index.d.ts +27 -0
  71. package/lib/core/components/index.d.ts.map +1 -0
  72. package/lib/core/components/index.js +23 -0
  73. package/lib/core/components/index.js.map +1 -0
  74. package/lib/core/components/libs/utils.d.ts +3 -0
  75. package/lib/core/components/libs/utils.d.ts.map +1 -0
  76. package/lib/core/components/libs/utils.js +6 -0
  77. package/lib/core/components/libs/utils.js.map +1 -0
  78. package/lib/core/components/libs/visuallyHidden.d.ts +7 -0
  79. package/lib/core/components/libs/visuallyHidden.d.ts.map +1 -0
  80. package/lib/core/components/libs/visuallyHidden.js +16 -0
  81. package/lib/core/components/libs/visuallyHidden.js.map +1 -0
  82. package/lib/core/components/popup/Popup.d.ts +26 -0
  83. package/lib/core/components/popup/Popup.d.ts.map +1 -0
  84. package/lib/core/components/popup/Popup.js +70 -0
  85. package/lib/core/components/popup/Popup.js.map +1 -0
  86. package/lib/core/components/popup/PopupController.d.ts +41 -0
  87. package/lib/core/components/popup/PopupController.d.ts.map +1 -0
  88. package/lib/core/components/popup/PopupController.js +153 -0
  89. package/lib/core/components/popup/PopupController.js.map +1 -0
  90. package/lib/core/components/popup/index.d.ts +4 -0
  91. package/lib/core/components/popup/index.d.ts.map +1 -0
  92. package/lib/core/components/popup/index.js +4 -0
  93. package/lib/core/components/popup/index.js.map +1 -0
  94. package/lib/core/components/popup/position.d.ts.map +1 -0
  95. package/lib/core/components/popup/position.js +240 -0
  96. package/lib/core/components/popup/position.js.map +1 -0
  97. package/lib/core/components/popup/utils.d.ts.map +1 -0
  98. package/lib/core/components/popup/utils.js +75 -0
  99. package/lib/core/components/popup/utils.js.map +1 -0
  100. package/lib/core/components/shadcn/LanguageSwitcher.d.ts +8 -0
  101. package/lib/core/components/shadcn/LanguageSwitcher.d.ts.map +1 -0
  102. package/lib/core/components/shadcn/LanguageSwitcher.js +36 -0
  103. package/lib/core/components/shadcn/LanguageSwitcher.js.map +1 -0
  104. package/lib/core/components/shadcn/MessageBox.d.ts +38 -0
  105. package/lib/core/components/shadcn/MessageBox.d.ts.map +1 -0
  106. package/lib/core/components/shadcn/MessageBox.js +67 -0
  107. package/lib/core/components/shadcn/MessageBox.js.map +1 -0
  108. package/lib/core/components/shadcn/Panel.d.ts +17 -0
  109. package/lib/core/components/shadcn/Panel.d.ts.map +1 -0
  110. package/lib/core/components/shadcn/Panel.js +21 -0
  111. package/lib/core/components/shadcn/Panel.js.map +1 -0
  112. package/lib/core/components/shadcn/badge.d.ts +21 -0
  113. package/lib/core/components/shadcn/badge.d.ts.map +1 -0
  114. package/lib/core/components/shadcn/badge.js +64 -0
  115. package/lib/core/components/shadcn/badge.js.map +1 -0
  116. package/lib/core/components/shadcn/breadcrumb.d.ts +15 -0
  117. package/lib/core/components/shadcn/breadcrumb.d.ts.map +1 -0
  118. package/lib/core/components/shadcn/breadcrumb.js +52 -0
  119. package/lib/core/components/shadcn/breadcrumb.js.map +1 -0
  120. package/lib/core/components/shadcn/button.d.ts +38 -0
  121. package/lib/core/components/shadcn/button.d.ts.map +1 -0
  122. package/lib/core/components/shadcn/button.js +106 -0
  123. package/lib/core/components/shadcn/button.js.map +1 -0
  124. package/lib/core/components/shadcn/calendar.d.ts +11 -0
  125. package/lib/core/components/shadcn/calendar.d.ts.map +1 -0
  126. package/lib/core/components/shadcn/calendar.js +13 -0
  127. package/lib/core/components/shadcn/calendar.js.map +1 -0
  128. package/lib/core/components/shadcn/card.d.ts +9 -0
  129. package/lib/core/components/shadcn/card.d.ts.map +1 -0
  130. package/lib/core/components/shadcn/card.js +17 -0
  131. package/lib/core/components/shadcn/card.js.map +1 -0
  132. package/lib/core/components/shadcn/checkbox.d.ts +5 -0
  133. package/lib/core/components/shadcn/checkbox.d.ts.map +1 -0
  134. package/lib/core/components/shadcn/checkbox.js +9 -0
  135. package/lib/core/components/shadcn/checkbox.js.map +1 -0
  136. package/lib/core/components/shadcn/collaspible.d.ts +6 -0
  137. package/lib/core/components/shadcn/collaspible.d.ts.map +1 -0
  138. package/lib/core/components/shadcn/collaspible.js +13 -0
  139. package/lib/core/components/shadcn/collaspible.js.map +1 -0
  140. package/lib/core/components/shadcn/command.d.ts +17 -0
  141. package/lib/core/components/shadcn/command.d.ts.map +1 -0
  142. package/lib/core/components/shadcn/command.js +29 -0
  143. package/lib/core/components/shadcn/command.js.map +1 -0
  144. package/lib/core/components/shadcn/dropdown.d.ts +52 -0
  145. package/lib/core/components/shadcn/dropdown.d.ts.map +1 -0
  146. package/lib/core/components/shadcn/dropdown.js +92 -0
  147. package/lib/core/components/shadcn/dropdown.js.map +1 -0
  148. package/lib/core/components/shadcn/filters/DynamicLabel.d.ts +9 -0
  149. package/lib/core/components/shadcn/filters/DynamicLabel.d.ts.map +1 -0
  150. package/lib/core/components/shadcn/filters/DynamicLabel.js +38 -0
  151. package/lib/core/components/shadcn/filters/DynamicLabel.js.map +1 -0
  152. package/lib/core/components/shadcn/filters/animateChangeInHeight.d.ts.map +1 -0
  153. package/lib/core/components/shadcn/filters/animateChangeInHeight.js +23 -0
  154. package/lib/core/components/shadcn/filters/animateChangeInHeight.js.map +1 -0
  155. package/lib/core/components/shadcn/filters/comboBox/DateCombobox.d.ts +6 -0
  156. package/lib/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +1 -0
  157. package/lib/core/components/shadcn/filters/comboBox/DateCombobox.js +130 -0
  158. package/lib/core/components/shadcn/filters/comboBox/DateCombobox.js.map +1 -0
  159. package/lib/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts +10 -0
  160. package/lib/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +1 -0
  161. package/lib/core/components/shadcn/filters/comboBox/SelectCombobox.js +53 -0
  162. package/lib/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +1 -0
  163. package/lib/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts +6 -0
  164. package/lib/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts.map +1 -0
  165. package/lib/core/components/shadcn/filters/comboBox/StringListCombobox.js +27 -0
  166. package/lib/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +1 -0
  167. package/lib/core/components/shadcn/filters/comboBox/TextCombobox.d.ts +6 -0
  168. package/lib/core/components/shadcn/filters/comboBox/TextCombobox.d.ts.map +1 -0
  169. package/lib/core/components/shadcn/filters/comboBox/TextCombobox.js +28 -0
  170. package/lib/core/components/shadcn/filters/comboBox/TextCombobox.js.map +1 -0
  171. package/lib/core/components/shadcn/filters/comboBox/comboBox.d.ts +5 -0
  172. package/lib/core/components/shadcn/filters/comboBox/comboBox.d.ts.map +1 -0
  173. package/lib/core/components/shadcn/filters/comboBox/comboBox.js +5 -0
  174. package/lib/core/components/shadcn/filters/comboBox/comboBox.js.map +1 -0
  175. package/lib/core/components/shadcn/filters/filter/SelectFilter.d.ts +12 -0
  176. package/lib/core/components/shadcn/filters/filter/SelectFilter.d.ts.map +1 -0
  177. package/lib/core/components/shadcn/filters/filter/SelectFilter.js +102 -0
  178. package/lib/core/components/shadcn/filters/filter/SelectFilter.js.map +1 -0
  179. package/lib/core/components/shadcn/filters/filter/StringListFilter.d.ts +11 -0
  180. package/lib/core/components/shadcn/filters/filter/StringListFilter.d.ts.map +1 -0
  181. package/lib/core/components/shadcn/filters/filter/StringListFilter.js +24 -0
  182. package/lib/core/components/shadcn/filters/filter/StringListFilter.js.map +1 -0
  183. package/lib/core/components/shadcn/filters/filter/TextFilter.d.ts +13 -0
  184. package/lib/core/components/shadcn/filters/filter/TextFilter.d.ts.map +1 -0
  185. package/lib/core/components/shadcn/filters/filter/TextFilter.js +21 -0
  186. package/lib/core/components/shadcn/filters/filter/TextFilter.js.map +1 -0
  187. package/lib/core/components/shadcn/filters/filter/dateFilter.d.ts +14 -0
  188. package/lib/core/components/shadcn/filters/filter/dateFilter.d.ts.map +1 -0
  189. package/lib/core/components/shadcn/filters/filter/dateFilter.js +163 -0
  190. package/lib/core/components/shadcn/filters/filter/dateFilter.js.map +1 -0
  191. package/lib/core/components/shadcn/filters/filter-styles.d.ts.map +1 -0
  192. package/lib/core/components/shadcn/filters/filter-styles.js.map +1 -0
  193. package/lib/core/components/shadcn/filters/filterBar.d.ts +21 -0
  194. package/lib/core/components/shadcn/filters/filterBar.d.ts.map +1 -0
  195. package/lib/core/components/shadcn/filters/filterBar.js +259 -0
  196. package/lib/core/components/shadcn/filters/filterBar.js.map +1 -0
  197. package/lib/core/components/shadcn/filters/filters.d.ts +10 -0
  198. package/lib/core/components/shadcn/filters/filters.d.ts.map +1 -0
  199. package/lib/core/components/shadcn/filters/filters.js +63 -0
  200. package/lib/core/components/shadcn/filters/filters.js.map +1 -0
  201. package/lib/core/components/shadcn/filters/index.d.ts.map +1 -0
  202. package/lib/core/components/shadcn/filters/index.js.map +1 -0
  203. package/lib/core/components/shadcn/filters/types.d.ts +35 -0
  204. package/lib/core/components/shadcn/filters/types.d.ts.map +1 -0
  205. package/lib/core/components/shadcn/filters/types.js.map +1 -0
  206. package/lib/core/components/shadcn/heading.d.ts +6 -0
  207. package/lib/core/components/shadcn/heading.d.ts.map +1 -0
  208. package/lib/core/components/shadcn/heading.js +17 -0
  209. package/lib/core/components/shadcn/heading.js.map +1 -0
  210. package/lib/core/components/shadcn/index.d.ts +31 -0
  211. package/lib/core/components/shadcn/index.d.ts.map +1 -0
  212. package/lib/core/components/shadcn/index.js +31 -0
  213. package/lib/core/components/shadcn/index.js.map +1 -0
  214. package/lib/core/components/shadcn/input.d.ts +23 -0
  215. package/lib/core/components/shadcn/input.d.ts.map +1 -0
  216. package/lib/core/components/shadcn/input.js +43 -0
  217. package/lib/core/components/shadcn/input.js.map +1 -0
  218. package/lib/core/components/shadcn/label.d.ts +10 -0
  219. package/lib/core/components/shadcn/label.d.ts.map +1 -0
  220. package/lib/core/components/shadcn/label.js +10 -0
  221. package/lib/core/components/shadcn/label.js.map +1 -0
  222. package/lib/core/components/shadcn/modal/ConfirmModal.d.ts +12 -0
  223. package/lib/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -0
  224. package/lib/core/components/shadcn/modal/ConfirmModal.js +12 -0
  225. package/lib/core/components/shadcn/modal/ConfirmModal.js.map +1 -0
  226. package/lib/core/components/shadcn/modal/DeleteModal.d.ts +11 -0
  227. package/lib/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -0
  228. package/lib/core/components/shadcn/modal/DeleteModal.js +34 -0
  229. package/lib/core/components/shadcn/modal/DeleteModal.js.map +1 -0
  230. package/lib/core/components/shadcn/modal/dialog.d.ts +41 -0
  231. package/lib/core/components/shadcn/modal/dialog.d.ts.map +1 -0
  232. package/lib/core/components/shadcn/modal/dialog.js +82 -0
  233. package/lib/core/components/shadcn/modal/dialog.js.map +1 -0
  234. package/lib/core/components/shadcn/modal/index.d.ts +4 -0
  235. package/lib/core/components/shadcn/modal/index.d.ts.map +1 -0
  236. package/lib/core/components/shadcn/modal/index.js +4 -0
  237. package/lib/core/components/shadcn/modal/index.js.map +1 -0
  238. package/lib/core/components/shadcn/popover.d.ts +32 -0
  239. package/lib/core/components/shadcn/popover.d.ts.map +1 -0
  240. package/lib/core/components/shadcn/popover.js +56 -0
  241. package/lib/core/components/shadcn/popover.js.map +1 -0
  242. package/lib/core/components/shadcn/radioGroup.d.ts +24 -0
  243. package/lib/core/components/shadcn/radioGroup.d.ts.map +1 -0
  244. package/lib/core/components/shadcn/radioGroup.js +30 -0
  245. package/lib/core/components/shadcn/radioGroup.js.map +1 -0
  246. package/lib/core/components/shadcn/resizeable.d.ts +13 -0
  247. package/lib/core/components/shadcn/resizeable.d.ts.map +1 -0
  248. package/lib/core/components/shadcn/resizeable.js +18 -0
  249. package/lib/core/components/shadcn/resizeable.js.map +1 -0
  250. package/lib/core/components/shadcn/selectBox.d.ts +51 -0
  251. package/lib/core/components/shadcn/selectBox.d.ts.map +1 -0
  252. package/lib/core/components/shadcn/selectBox.js +182 -0
  253. package/lib/core/components/shadcn/selectBox.js.map +1 -0
  254. package/lib/core/components/shadcn/separator.d.ts +6 -0
  255. package/lib/core/components/shadcn/separator.d.ts.map +1 -0
  256. package/lib/core/components/shadcn/separator.js +8 -0
  257. package/lib/core/components/shadcn/separator.js.map +1 -0
  258. package/lib/core/components/shadcn/slider.d.ts +10 -0
  259. package/lib/core/components/shadcn/slider.d.ts.map +1 -0
  260. package/lib/core/components/shadcn/slider.js +13 -0
  261. package/lib/core/components/shadcn/slider.js.map +1 -0
  262. package/lib/core/components/shadcn/switch.d.ts +13 -0
  263. package/lib/core/components/shadcn/switch.d.ts.map +1 -0
  264. package/lib/core/components/shadcn/switch.js +20 -0
  265. package/lib/core/components/shadcn/switch.js.map +1 -0
  266. package/lib/core/components/shadcn/tabs.d.ts +49 -0
  267. package/lib/core/components/shadcn/tabs.d.ts.map +1 -0
  268. package/lib/core/components/shadcn/tabs.js +140 -0
  269. package/lib/core/components/shadcn/tabs.js.map +1 -0
  270. package/lib/core/components/shadcn/text.d.ts +11 -0
  271. package/lib/core/components/shadcn/text.d.ts.map +1 -0
  272. package/lib/core/components/shadcn/text.js +30 -0
  273. package/lib/core/components/shadcn/text.js.map +1 -0
  274. package/lib/core/components/shadcn/textarea.d.ts +8 -0
  275. package/lib/core/components/shadcn/textarea.d.ts.map +1 -0
  276. package/lib/core/components/shadcn/textarea.js +35 -0
  277. package/lib/core/components/shadcn/textarea.js.map +1 -0
  278. package/lib/core/components/shadcn/theme/ThemeProvider.d.ts +15 -0
  279. package/lib/core/components/shadcn/theme/ThemeProvider.d.ts.map +1 -0
  280. package/lib/core/components/shadcn/theme/ThemeProvider.js +36 -0
  281. package/lib/core/components/shadcn/theme/ThemeProvider.js.map +1 -0
  282. package/lib/core/components/shadcn/theme/ThemeSwitcher.d.ts +16 -0
  283. package/lib/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +1 -0
  284. package/lib/core/components/shadcn/theme/ThemeSwitcher.js +15 -0
  285. package/lib/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -0
  286. package/lib/core/components/shadcn/tooltip.d.ts +21 -0
  287. package/lib/core/components/shadcn/tooltip.d.ts.map +1 -0
  288. package/lib/core/components/shadcn/tooltip.js +38 -0
  289. package/lib/core/components/shadcn/tooltip.js.map +1 -0
  290. package/lib/core/components/styles.d.ts.map +1 -0
  291. package/lib/core/components/styles.js +10 -0
  292. package/lib/core/components/styles.js.map +1 -0
  293. package/lib/core/components/table/index.d.ts +43 -0
  294. package/lib/core/components/table/index.d.ts.map +1 -0
  295. package/lib/core/components/table/index.js +43 -0
  296. package/lib/core/components/table/index.js.map +1 -0
  297. package/lib/core/components/toast/NotificationPanel.d.ts +8 -0
  298. package/lib/core/components/toast/NotificationPanel.d.ts.map +1 -0
  299. package/lib/core/components/toast/NotificationPanel.js +41 -0
  300. package/lib/core/components/toast/NotificationPanel.js.map +1 -0
  301. package/lib/core/components/toast/ToastContext.d.ts +6 -0
  302. package/lib/core/components/toast/ToastContext.d.ts.map +1 -0
  303. package/lib/core/components/toast/ToastContext.js +7 -0
  304. package/lib/core/components/toast/ToastContext.js.map +1 -0
  305. package/lib/core/components/toast/ToastProps.d.ts.map +1 -0
  306. package/lib/core/components/toast/ToastProps.js.map +1 -0
  307. package/lib/core/components/toast/ToastProvider.d.ts +6 -0
  308. package/lib/core/components/toast/ToastProvider.d.ts.map +1 -0
  309. package/lib/core/components/toast/ToastProvider.js +19 -0
  310. package/lib/core/components/toast/ToastProvider.js.map +1 -0
  311. package/lib/core/components/toast/index.d.ts +3 -0
  312. package/lib/core/components/toast/index.d.ts.map +1 -0
  313. package/lib/core/components/toast/index.js +3 -0
  314. package/lib/core/components/toast/index.js.map +1 -0
  315. package/lib/core/hooks/CompositeState.d.ts +137 -0
  316. package/lib/core/hooks/CompositeState.d.ts.map +1 -0
  317. package/lib/core/hooks/CompositeState.js +256 -0
  318. package/lib/core/hooks/CompositeState.js.map +1 -0
  319. package/lib/core/hooks/PortalContainerProvider.d.ts +8 -0
  320. package/lib/core/hooks/PortalContainerProvider.d.ts.map +1 -0
  321. package/lib/core/hooks/PortalContainerProvider.js +50 -0
  322. package/lib/core/hooks/PortalContainerProvider.js.map +1 -0
  323. package/lib/core/hooks/SharedState.d.ts +10 -0
  324. package/lib/core/hooks/SharedState.d.ts.map +1 -0
  325. package/lib/core/hooks/SharedState.js +64 -0
  326. package/lib/core/hooks/SharedState.js.map +1 -0
  327. package/lib/core/hooks/index.d.ts +16 -0
  328. package/lib/core/hooks/index.d.ts.map +1 -0
  329. package/lib/core/hooks/index.js +16 -0
  330. package/lib/core/hooks/index.js.map +1 -0
  331. package/lib/core/hooks/useClickOutside.d.ts.map +1 -0
  332. package/lib/core/hooks/useClickOutside.js +30 -0
  333. package/lib/core/hooks/useClickOutside.js.map +1 -0
  334. package/lib/core/hooks/useCopyToClipboard.d.ts.map +1 -0
  335. package/lib/core/hooks/useCopyToClipboard.js.map +1 -0
  336. package/lib/core/hooks/useDarkMode.d.ts.map +1 -0
  337. package/lib/core/hooks/useDarkMode.js +11 -0
  338. package/lib/core/hooks/useDarkMode.js.map +1 -0
  339. package/lib/core/hooks/useDebounce.d.ts.map +1 -0
  340. package/lib/core/hooks/useDebounce.js +14 -0
  341. package/lib/core/hooks/useDebounce.js.map +1 -0
  342. package/lib/core/hooks/useEventSource.d.ts +11 -0
  343. package/lib/core/hooks/useEventSource.d.ts.map +1 -0
  344. package/lib/core/hooks/useEventSource.js +56 -0
  345. package/lib/core/hooks/useEventSource.js.map +1 -0
  346. package/lib/core/hooks/useFetch.d.ts +24 -0
  347. package/lib/core/hooks/useFetch.d.ts.map +1 -0
  348. package/lib/core/hooks/useFetch.js +54 -0
  349. package/lib/core/hooks/useFetch.js.map +1 -0
  350. package/lib/core/hooks/useFlag.d.ts.map +1 -0
  351. package/lib/core/hooks/useFlag.js +13 -0
  352. package/lib/core/hooks/useFlag.js.map +1 -0
  353. package/lib/core/hooks/useIntersectionObserver.d.ts +14 -0
  354. package/lib/core/hooks/useIntersectionObserver.d.ts.map +1 -0
  355. package/lib/core/hooks/useIntersectionObserver.js +40 -0
  356. package/lib/core/hooks/useIntersectionObserver.js.map +1 -0
  357. package/lib/core/hooks/useIsFistRendering.d.ts.map +1 -0
  358. package/lib/core/hooks/useIsFistRendering.js +16 -0
  359. package/lib/core/hooks/useIsFistRendering.js.map +1 -0
  360. package/lib/core/hooks/useSafeLayoutEffect.d.ts +4 -0
  361. package/lib/core/hooks/useSafeLayoutEffect.d.ts.map +1 -0
  362. package/lib/core/hooks/useSafeLayoutEffect.js +4 -0
  363. package/lib/core/hooks/useSafeLayoutEffect.js.map +1 -0
  364. package/lib/core/hooks/useScrollableSearch.d.ts +82 -0
  365. package/lib/core/hooks/useScrollableSearch.d.ts.map +1 -0
  366. package/lib/core/hooks/useScrollableSearch.js +95 -0
  367. package/lib/core/hooks/useScrollableSearch.js.map +1 -0
  368. package/lib/core/hooks/useSharedValue.d.ts +12 -0
  369. package/lib/core/hooks/useSharedValue.d.ts.map +1 -0
  370. package/lib/core/hooks/useSharedValue.js +21 -0
  371. package/lib/core/hooks/useSharedValue.js.map +1 -0
  372. package/lib/core/index.d.ts +4 -0
  373. package/lib/core/index.d.ts.map +1 -0
  374. package/lib/core/index.js +4 -0
  375. package/lib/core/index.js.map +1 -0
  376. package/lib/core/utils/a11y.d.ts +16 -0
  377. package/lib/core/utils/a11y.d.ts.map +1 -0
  378. package/lib/core/utils/a11y.js +22 -0
  379. package/lib/core/utils/a11y.js.map +1 -0
  380. package/lib/core/utils/cn.d.ts +3 -0
  381. package/lib/core/utils/cn.d.ts.map +1 -0
  382. package/lib/core/utils/cn.js +6 -0
  383. package/lib/core/utils/cn.js.map +1 -0
  384. package/lib/core/utils/errorMessage.d.ts +2 -0
  385. package/lib/core/utils/errorMessage.d.ts.map +1 -0
  386. package/lib/core/utils/errorMessage.js +16 -0
  387. package/lib/core/utils/errorMessage.js.map +1 -0
  388. package/lib/core/utils/index.d.ts +5 -0
  389. package/lib/core/utils/index.d.ts.map +1 -0
  390. package/lib/core/utils/index.js +5 -0
  391. package/lib/core/utils/index.js.map +1 -0
  392. package/lib/core/utils/textarea.d.ts +7 -0
  393. package/lib/core/utils/textarea.d.ts.map +1 -0
  394. package/lib/core/utils/textarea.js +16 -0
  395. package/lib/core/utils/textarea.js.map +1 -0
  396. package/lib/env/index.d.ts +106 -0
  397. package/lib/env/index.d.ts.map +1 -0
  398. package/lib/env/index.js +91 -0
  399. package/lib/env/index.js.map +1 -0
  400. package/lib/features/activity-doc/ActivityDoc.d.ts +14 -0
  401. package/lib/features/activity-doc/ActivityDoc.d.ts.map +1 -0
  402. package/lib/features/activity-doc/ActivityDoc.js +68 -0
  403. package/lib/features/activity-doc/ActivityDoc.js.map +1 -0
  404. package/lib/features/activity-doc/index.d.ts +2 -0
  405. package/lib/features/activity-doc/index.d.ts.map +1 -0
  406. package/lib/features/activity-doc/index.js +2 -0
  407. package/lib/features/activity-doc/index.js.map +1 -0
  408. package/lib/features/agent/PayloadBuilder.d.ts +119 -0
  409. package/lib/features/agent/PayloadBuilder.d.ts.map +1 -0
  410. package/lib/features/agent/PayloadBuilder.js +457 -0
  411. package/lib/features/agent/PayloadBuilder.js.map +1 -0
  412. package/lib/features/agent/chat/AgentChart.d.ts +34 -0
  413. package/lib/features/agent/chat/AgentChart.d.ts.map +1 -0
  414. package/lib/features/agent/chat/AgentChart.js +26 -0
  415. package/lib/features/agent/chat/AgentChart.js.map +1 -0
  416. package/lib/features/agent/chat/AgentChatFixtureReplay.d.ts +34 -0
  417. package/lib/features/agent/chat/AgentChatFixtureReplay.d.ts.map +1 -0
  418. package/lib/features/agent/chat/AgentChatFixtureReplay.js +125 -0
  419. package/lib/features/agent/chat/AgentChatFixtureReplay.js.map +1 -0
  420. package/lib/features/agent/chat/AgentChatPlaybackControls.d.ts +10 -0
  421. package/lib/features/agent/chat/AgentChatPlaybackControls.d.ts.map +1 -0
  422. package/lib/features/agent/chat/AgentChatPlaybackControls.js +87 -0
  423. package/lib/features/agent/chat/AgentChatPlaybackControls.js.map +1 -0
  424. package/lib/features/agent/chat/AgentRequestInputOverlay.d.ts +10 -0
  425. package/lib/features/agent/chat/AgentRequestInputOverlay.d.ts.map +1 -0
  426. package/lib/features/agent/chat/AgentRequestInputOverlay.js +18 -0
  427. package/lib/features/agent/chat/AgentRequestInputOverlay.js.map +1 -0
  428. package/lib/features/agent/chat/AgentRightPanel.d.ts +45 -0
  429. package/lib/features/agent/chat/AgentRightPanel.d.ts.map +1 -0
  430. package/lib/features/agent/chat/AgentRightPanel.js +224 -0
  431. package/lib/features/agent/chat/AgentRightPanel.js.map +1 -0
  432. package/lib/features/agent/chat/AnimatedThinkingDots.d.ts +38 -0
  433. package/lib/features/agent/chat/AnimatedThinkingDots.d.ts.map +1 -0
  434. package/lib/features/agent/chat/AnimatedThinkingDots.js +242 -0
  435. package/lib/features/agent/chat/AnimatedThinkingDots.js.map +1 -0
  436. package/lib/features/agent/chat/ArtifactsTab.d.ts +9 -0
  437. package/lib/features/agent/chat/ArtifactsTab.d.ts.map +1 -0
  438. package/lib/features/agent/chat/ArtifactsTab.js +159 -0
  439. package/lib/features/agent/chat/ArtifactsTab.js.map +1 -0
  440. package/lib/features/agent/chat/AskUserWidget.d.ts +88 -0
  441. package/lib/features/agent/chat/AskUserWidget.d.ts.map +1 -0
  442. package/lib/features/agent/chat/AskUserWidget.js +133 -0
  443. package/lib/features/agent/chat/AskUserWidget.js.map +1 -0
  444. package/lib/features/agent/chat/BrowserUseWidget.d.ts +24 -0
  445. package/lib/features/agent/chat/BrowserUseWidget.d.ts.map +1 -0
  446. package/lib/features/agent/chat/BrowserUseWidget.js +122 -0
  447. package/lib/features/agent/chat/BrowserUseWidget.js.map +1 -0
  448. package/lib/features/agent/chat/DocumentPanel.d.ts +16 -0
  449. package/lib/features/agent/chat/DocumentPanel.d.ts.map +1 -0
  450. package/lib/features/agent/chat/DocumentPanel.js +53 -0
  451. package/lib/features/agent/chat/DocumentPanel.js.map +1 -0
  452. package/lib/features/agent/chat/DocumentTabBar.d.ts +9 -0
  453. package/lib/features/agent/chat/DocumentTabBar.d.ts.map +1 -0
  454. package/lib/features/agent/chat/DocumentTabBar.js +9 -0
  455. package/lib/features/agent/chat/DocumentTabBar.js.map +1 -0
  456. package/lib/features/agent/chat/ImageLightbox.d.ts +18 -0
  457. package/lib/features/agent/chat/ImageLightbox.d.ts.map +1 -0
  458. package/lib/features/agent/chat/ImageLightbox.js +37 -0
  459. package/lib/features/agent/chat/ImageLightbox.js.map +1 -0
  460. package/lib/features/agent/chat/JumpingDots.d.ts +7 -0
  461. package/lib/features/agent/chat/JumpingDots.d.ts.map +1 -0
  462. package/lib/features/agent/chat/JumpingDots.js +6 -0
  463. package/lib/features/agent/chat/JumpingDots.js.map +1 -0
  464. package/lib/features/agent/chat/ModernAgentConversation.d.ts +169 -0
  465. package/lib/features/agent/chat/ModernAgentConversation.d.ts.map +1 -0
  466. package/lib/features/agent/chat/ModernAgentConversation.js +1147 -0
  467. package/lib/features/agent/chat/ModernAgentConversation.js.map +1 -0
  468. package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +86 -0
  469. package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -0
  470. package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +1574 -0
  471. package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -0
  472. package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.d.ts +38 -0
  473. package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.d.ts.map +1 -0
  474. package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.js +201 -0
  475. package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.js.map +1 -0
  476. package/lib/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts +26 -0
  477. package/lib/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -0
  478. package/lib/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +88 -0
  479. package/lib/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -0
  480. package/lib/features/agent/chat/ModernAgentOutput/Header.d.ts +45 -0
  481. package/lib/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -0
  482. package/lib/features/agent/chat/ModernAgentOutput/Header.js +103 -0
  483. package/lib/features/agent/chat/ModernAgentOutput/Header.js.map +1 -0
  484. package/lib/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +11 -0
  485. package/lib/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts.map +1 -0
  486. package/lib/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +30 -0
  487. package/lib/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +1 -0
  488. package/lib/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +18 -0
  489. package/lib/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -0
  490. package/lib/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +80 -0
  491. package/lib/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -0
  492. package/lib/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +70 -0
  493. package/lib/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -0
  494. package/lib/features/agent/chat/ModernAgentOutput/MessageInput.js +296 -0
  495. package/lib/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -0
  496. package/lib/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +60 -0
  497. package/lib/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -0
  498. package/lib/features/agent/chat/ModernAgentOutput/MessageItem.js +383 -0
  499. package/lib/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -0
  500. package/lib/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +15 -0
  501. package/lib/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts.map +1 -0
  502. package/lib/features/agent/chat/ModernAgentOutput/MessagesContainer.js +21 -0
  503. package/lib/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +1 -0
  504. package/lib/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +9 -0
  505. package/lib/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +1 -0
  506. package/lib/features/agent/chat/ModernAgentOutput/PlanPanel.js +66 -0
  507. package/lib/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -0
  508. package/lib/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +11 -0
  509. package/lib/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts.map +1 -0
  510. package/lib/features/agent/chat/ModernAgentOutput/SlideInPanel.js +24 -0
  511. package/lib/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +1 -0
  512. package/lib/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +9 -0
  513. package/lib/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts.map +1 -0
  514. package/lib/features/agent/chat/ModernAgentOutput/SlidingMessages.js +52 -0
  515. package/lib/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +1 -0
  516. package/lib/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +10 -0
  517. package/lib/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +1 -0
  518. package/lib/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +85 -0
  519. package/lib/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -0
  520. package/lib/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +9 -0
  521. package/lib/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts.map +1 -0
  522. package/lib/features/agent/chat/ModernAgentOutput/StackedMessages.js +13 -0
  523. package/lib/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +1 -0
  524. package/lib/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +38 -0
  525. package/lib/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -0
  526. package/lib/features/agent/chat/ModernAgentOutput/StreamingMessage.js +203 -0
  527. package/lib/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -0
  528. package/lib/features/agent/chat/ModernAgentOutput/SummaryConversation.d.ts +24 -0
  529. package/lib/features/agent/chat/ModernAgentOutput/SummaryConversation.d.ts.map +1 -0
  530. package/lib/features/agent/chat/ModernAgentOutput/SummaryConversation.js +332 -0
  531. package/lib/features/agent/chat/ModernAgentOutput/SummaryConversation.js.map +1 -0
  532. package/lib/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +34 -0
  533. package/lib/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +1 -0
  534. package/lib/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +643 -0
  535. package/lib/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -0
  536. package/lib/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +22 -0
  537. package/lib/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +1 -0
  538. package/lib/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +95 -0
  539. package/lib/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -0
  540. package/lib/features/agent/chat/ModernAgentOutput/processContentForMarkdown.d.ts +3 -0
  541. package/lib/features/agent/chat/ModernAgentOutput/processContentForMarkdown.d.ts.map +1 -0
  542. package/lib/features/agent/chat/ModernAgentOutput/processContentForMarkdown.js +123 -0
  543. package/lib/features/agent/chat/ModernAgentOutput/processContentForMarkdown.js.map +1 -0
  544. package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.d.ts +13 -0
  545. package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.d.ts.map +1 -0
  546. package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.js +69 -0
  547. package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.js.map +1 -0
  548. package/lib/features/agent/chat/ModernAgentOutput/utils.d.ts +147 -0
  549. package/lib/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -0
  550. package/lib/features/agent/chat/ModernAgentOutput/utils.js +634 -0
  551. package/lib/features/agent/chat/ModernAgentOutput/utils.js.map +1 -0
  552. package/lib/features/agent/chat/ProposalCodeBlockHandler.d.ts +9 -0
  553. package/lib/features/agent/chat/ProposalCodeBlockHandler.d.ts.map +1 -0
  554. package/lib/features/agent/chat/ProposalCodeBlockHandler.js +55 -0
  555. package/lib/features/agent/chat/ProposalCodeBlockHandler.js.map +1 -0
  556. package/lib/features/agent/chat/SkillWidgetProvider.d.ts +11 -0
  557. package/lib/features/agent/chat/SkillWidgetProvider.d.ts.map +1 -0
  558. package/lib/features/agent/chat/SkillWidgetProvider.js +156 -0
  559. package/lib/features/agent/chat/SkillWidgetProvider.js.map +1 -0
  560. package/lib/features/agent/chat/SlidingThinkingIndicator.d.ts +18 -0
  561. package/lib/features/agent/chat/SlidingThinkingIndicator.d.ts.map +1 -0
  562. package/lib/features/agent/chat/SlidingThinkingIndicator.js +269 -0
  563. package/lib/features/agent/chat/SlidingThinkingIndicator.js.map +1 -0
  564. package/lib/features/agent/chat/VegaLiteChart.d.ts +52 -0
  565. package/lib/features/agent/chat/VegaLiteChart.d.ts.map +1 -0
  566. package/lib/features/agent/chat/VegaLiteChart.js +813 -0
  567. package/lib/features/agent/chat/VegaLiteChart.js.map +1 -0
  568. package/lib/features/agent/chat/WaitingMessages.d.ts.map +1 -0
  569. package/lib/features/agent/chat/WaitingMessages.js +60 -0
  570. package/lib/features/agent/chat/WaitingMessages.js.map +1 -0
  571. package/lib/features/agent/chat/hooks/useAgentPlans.d.ts +22 -0
  572. package/lib/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -0
  573. package/lib/features/agent/chat/hooks/useAgentPlans.js +139 -0
  574. package/lib/features/agent/chat/hooks/useAgentPlans.js.map +1 -0
  575. package/lib/features/agent/chat/hooks/useAgentStream.d.ts +50 -0
  576. package/lib/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -0
  577. package/lib/features/agent/chat/hooks/useAgentStream.js +289 -0
  578. package/lib/features/agent/chat/hooks/useAgentStream.js.map +1 -0
  579. package/lib/features/agent/chat/hooks/useArtifacts.d.ts +25 -0
  580. package/lib/features/agent/chat/hooks/useArtifacts.d.ts.map +1 -0
  581. package/lib/features/agent/chat/hooks/useArtifacts.js +122 -0
  582. package/lib/features/agent/chat/hooks/useArtifacts.js.map +1 -0
  583. package/lib/features/agent/chat/hooks/useDocumentPanel.d.ts +23 -0
  584. package/lib/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -0
  585. package/lib/features/agent/chat/hooks/useDocumentPanel.js +155 -0
  586. package/lib/features/agent/chat/hooks/useDocumentPanel.js.map +1 -0
  587. package/lib/features/agent/chat/hooks/useFileProcessing.d.ts +28 -0
  588. package/lib/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -0
  589. package/lib/features/agent/chat/hooks/useFileProcessing.js +177 -0
  590. package/lib/features/agent/chat/hooks/useFileProcessing.js.map +1 -0
  591. package/lib/features/agent/chat/index.d.ts +24 -0
  592. package/lib/features/agent/chat/index.d.ts.map +1 -0
  593. package/lib/features/agent/chat/index.js +21 -0
  594. package/lib/features/agent/chat/index.js.map +1 -0
  595. package/lib/features/agent/chat/playback.d.ts +21 -0
  596. package/lib/features/agent/chat/playback.d.ts.map +1 -0
  597. package/lib/features/agent/chat/playback.js +72 -0
  598. package/lib/features/agent/chat/playback.js.map +1 -0
  599. package/lib/features/agent/chat/types/document.d.ts.map +1 -0
  600. package/lib/features/agent/chat/types/document.js.map +1 -0
  601. package/lib/features/agent/chat/useArtifactUrlCache.d.ts +34 -0
  602. package/lib/features/agent/chat/useArtifactUrlCache.d.ts.map +1 -0
  603. package/lib/features/agent/chat/useArtifactUrlCache.js +72 -0
  604. package/lib/features/agent/chat/useArtifactUrlCache.js.map +1 -0
  605. package/lib/features/agent/chat/workstreams.d.ts +30 -0
  606. package/lib/features/agent/chat/workstreams.d.ts.map +1 -0
  607. package/lib/features/agent/chat/workstreams.js +136 -0
  608. package/lib/features/agent/chat/workstreams.js.map +1 -0
  609. package/lib/features/agent/index.d.ts +3 -0
  610. package/lib/features/agent/index.d.ts.map +1 -0
  611. package/lib/features/agent/index.js +3 -0
  612. package/lib/features/agent/index.js.map +1 -0
  613. package/lib/features/document-viewer/UniversalDocumentViewer.d.ts +73 -0
  614. package/lib/features/document-viewer/UniversalDocumentViewer.d.ts.map +1 -0
  615. package/lib/features/document-viewer/UniversalDocumentViewer.js +415 -0
  616. package/lib/features/document-viewer/UniversalDocumentViewer.js.map +1 -0
  617. package/lib/features/document-viewer/index.d.ts +2 -0
  618. package/lib/features/document-viewer/index.d.ts.map +1 -0
  619. package/lib/features/document-viewer/index.js +2 -0
  620. package/lib/features/document-viewer/index.js.map +1 -0
  621. package/lib/features/errors/PanelErrorBoundary.d.ts +5 -0
  622. package/lib/features/errors/PanelErrorBoundary.d.ts.map +1 -0
  623. package/lib/features/errors/PanelErrorBoundary.js +13 -0
  624. package/lib/features/errors/PanelErrorBoundary.js.map +1 -0
  625. package/lib/features/errors/RowErrorBoundary.d.ts +8 -0
  626. package/lib/features/errors/RowErrorBoundary.d.ts.map +1 -0
  627. package/lib/features/errors/RowErrorBoundary.js +10 -0
  628. package/lib/features/errors/RowErrorBoundary.js.map +1 -0
  629. package/lib/features/errors/VertesiaErrorBoundary.d.ts +12 -0
  630. package/lib/features/errors/VertesiaErrorBoundary.d.ts.map +1 -0
  631. package/lib/features/errors/VertesiaErrorBoundary.js +16 -0
  632. package/lib/features/errors/VertesiaErrorBoundary.js.map +1 -0
  633. package/lib/features/errors/WidgetErrorBoundary.d.ts +5 -0
  634. package/lib/features/errors/WidgetErrorBoundary.d.ts.map +1 -0
  635. package/lib/features/errors/WidgetErrorBoundary.js +11 -0
  636. package/lib/features/errors/WidgetErrorBoundary.js.map +1 -0
  637. package/lib/features/errors/index.d.ts +5 -0
  638. package/lib/features/errors/index.d.ts.map +1 -0
  639. package/lib/features/errors/index.js +5 -0
  640. package/lib/features/errors/index.js.map +1 -0
  641. package/lib/features/facets/AgentRunnerFacetsNav.d.ts +19 -0
  642. package/lib/features/facets/AgentRunnerFacetsNav.d.ts.map +1 -0
  643. package/lib/features/facets/AgentRunnerFacetsNav.js +85 -0
  644. package/lib/features/facets/AgentRunnerFacetsNav.js.map +1 -0
  645. package/lib/features/facets/CollectionsFacetsNav.d.ts +15 -0
  646. package/lib/features/facets/CollectionsFacetsNav.d.ts.map +1 -0
  647. package/lib/features/facets/CollectionsFacetsNav.js +74 -0
  648. package/lib/features/facets/CollectionsFacetsNav.js.map +1 -0
  649. package/lib/features/facets/DocumentsFacetsNav.d.ts +12 -0
  650. package/lib/features/facets/DocumentsFacetsNav.d.ts.map +1 -0
  651. package/lib/features/facets/DocumentsFacetsNav.js +137 -0
  652. package/lib/features/facets/DocumentsFacetsNav.js.map +1 -0
  653. package/lib/features/facets/EnvironmentFacet.d.ts +11 -0
  654. package/lib/features/facets/EnvironmentFacet.d.ts.map +1 -0
  655. package/lib/features/facets/EnvironmentFacet.js +42 -0
  656. package/lib/features/facets/EnvironmentFacet.js.map +1 -0
  657. package/lib/features/facets/InteractionsFacetsNav.d.ts +13 -0
  658. package/lib/features/facets/InteractionsFacetsNav.d.ts.map +1 -0
  659. package/lib/features/facets/InteractionsFacetsNav.js +73 -0
  660. package/lib/features/facets/InteractionsFacetsNav.js.map +1 -0
  661. package/lib/features/facets/ProcessDefinitionsFacetsNav.d.ts +19 -0
  662. package/lib/features/facets/ProcessDefinitionsFacetsNav.d.ts.map +1 -0
  663. package/lib/features/facets/ProcessDefinitionsFacetsNav.js +21 -0
  664. package/lib/features/facets/ProcessDefinitionsFacetsNav.js.map +1 -0
  665. package/lib/features/facets/ProcessRunsFacetsNav.d.ts +22 -0
  666. package/lib/features/facets/ProcessRunsFacetsNav.d.ts.map +1 -0
  667. package/lib/features/facets/ProcessRunsFacetsNav.js +25 -0
  668. package/lib/features/facets/ProcessRunsFacetsNav.js.map +1 -0
  669. package/lib/features/facets/PromptsFacetsNav.d.ts +16 -0
  670. package/lib/features/facets/PromptsFacetsNav.d.ts.map +1 -0
  671. package/lib/features/facets/PromptsFacetsNav.js +65 -0
  672. package/lib/features/facets/PromptsFacetsNav.js.map +1 -0
  673. package/lib/features/facets/RunsFacetsNav.d.ts +24 -0
  674. package/lib/features/facets/RunsFacetsNav.d.ts.map +1 -0
  675. package/lib/features/facets/RunsFacetsNav.js +147 -0
  676. package/lib/features/facets/RunsFacetsNav.js.map +1 -0
  677. package/lib/features/facets/WorkflowDefinitionsFacetsNav.d.ts +20 -0
  678. package/lib/features/facets/WorkflowDefinitionsFacetsNav.d.ts.map +1 -0
  679. package/lib/features/facets/WorkflowDefinitionsFacetsNav.js +21 -0
  680. package/lib/features/facets/WorkflowDefinitionsFacetsNav.js.map +1 -0
  681. package/lib/features/facets/WorkflowExecutionsFacetsNav.d.ts +15 -0
  682. package/lib/features/facets/WorkflowExecutionsFacetsNav.d.ts.map +1 -0
  683. package/lib/features/facets/WorkflowExecutionsFacetsNav.js +103 -0
  684. package/lib/features/facets/WorkflowExecutionsFacetsNav.js.map +1 -0
  685. package/lib/features/facets/WorkflowRulesFacetsNav.d.ts +20 -0
  686. package/lib/features/facets/WorkflowRulesFacetsNav.d.ts.map +1 -0
  687. package/lib/features/facets/WorkflowRulesFacetsNav.js +19 -0
  688. package/lib/features/facets/WorkflowRulesFacetsNav.js.map +1 -0
  689. package/lib/features/facets/index.d.ts +21 -0
  690. package/lib/features/facets/index.d.ts.map +1 -0
  691. package/lib/features/facets/index.js +21 -0
  692. package/lib/features/facets/index.js.map +1 -0
  693. package/lib/features/facets/utils/SearchInterface.d.ts +20 -0
  694. package/lib/features/facets/utils/SearchInterface.d.ts.map +1 -0
  695. package/lib/features/facets/utils/SearchInterface.js +20 -0
  696. package/lib/features/facets/utils/SearchInterface.js.map +1 -0
  697. package/lib/features/facets/utils/StringFacet.d.ts +12 -0
  698. package/lib/features/facets/utils/StringFacet.d.ts.map +1 -0
  699. package/lib/features/facets/utils/StringFacet.js +12 -0
  700. package/lib/features/facets/utils/StringFacet.js.map +1 -0
  701. package/lib/features/facets/utils/StringListFacet.d.ts +12 -0
  702. package/lib/features/facets/utils/StringListFacet.d.ts.map +1 -0
  703. package/lib/features/facets/utils/StringListFacet.js +11 -0
  704. package/lib/features/facets/utils/StringListFacet.js.map +1 -0
  705. package/lib/features/facets/utils/TypeFacet.d.ts +17 -0
  706. package/lib/features/facets/utils/TypeFacet.d.ts.map +1 -0
  707. package/lib/features/facets/utils/TypeFacet.js +42 -0
  708. package/lib/features/facets/utils/TypeFacet.js.map +1 -0
  709. package/lib/features/facets/utils/VEnvironmentFacet.d.ts +12 -0
  710. package/lib/features/facets/utils/VEnvironmentFacet.d.ts.map +1 -0
  711. package/lib/features/facets/utils/VEnvironmentFacet.js +25 -0
  712. package/lib/features/facets/utils/VEnvironmentFacet.js.map +1 -0
  713. package/lib/features/facets/utils/VInteractionFacet.d.ts +15 -0
  714. package/lib/features/facets/utils/VInteractionFacet.d.ts.map +1 -0
  715. package/lib/features/facets/utils/VInteractionFacet.js +45 -0
  716. package/lib/features/facets/utils/VInteractionFacet.js.map +1 -0
  717. package/lib/features/facets/utils/VStringFacet.d.ts +20 -0
  718. package/lib/features/facets/utils/VStringFacet.d.ts.map +1 -0
  719. package/lib/features/facets/utils/VStringFacet.js +20 -0
  720. package/lib/features/facets/utils/VStringFacet.js.map +1 -0
  721. package/lib/features/facets/utils/VTypeFacet.d.ts +12 -0
  722. package/lib/features/facets/utils/VTypeFacet.d.ts.map +1 -0
  723. package/lib/features/facets/utils/VTypeFacet.js +61 -0
  724. package/lib/features/facets/utils/VTypeFacet.js.map +1 -0
  725. package/lib/features/facets/utils/VUserFacet.d.ts +11 -0
  726. package/lib/features/facets/utils/VUserFacet.d.ts.map +1 -0
  727. package/lib/features/facets/utils/VUserFacet.js +31 -0
  728. package/lib/features/facets/utils/VUserFacet.js.map +1 -0
  729. package/lib/features/facets/utils/utils.d.ts +4 -0
  730. package/lib/features/facets/utils/utils.d.ts.map +1 -0
  731. package/lib/features/facets/utils/utils.js.map +1 -0
  732. package/lib/features/index.d.ts +15 -0
  733. package/lib/features/index.d.ts.map +1 -0
  734. package/lib/features/index.js +15 -0
  735. package/lib/features/index.js.map +1 -0
  736. package/lib/features/layout/GenericPageNavHeader.d.ts +19 -0
  737. package/lib/features/layout/GenericPageNavHeader.d.ts.map +1 -0
  738. package/lib/features/layout/GenericPageNavHeader.js +89 -0
  739. package/lib/features/layout/GenericPageNavHeader.js.map +1 -0
  740. package/lib/features/layout/NotFoundView.d.ts +2 -0
  741. package/lib/features/layout/NotFoundView.d.ts.map +1 -0
  742. package/lib/features/layout/NotFoundView.js +7 -0
  743. package/lib/features/layout/NotFoundView.js.map +1 -0
  744. package/lib/features/layout/index.d.ts +3 -0
  745. package/lib/features/layout/index.d.ts.map +1 -0
  746. package/lib/features/layout/index.js +3 -0
  747. package/lib/features/layout/index.js.map +1 -0
  748. package/lib/features/magic-pdf/AnnotatedImageSlider.d.ts +13 -0
  749. package/lib/features/magic-pdf/AnnotatedImageSlider.d.ts.map +1 -0
  750. package/lib/features/magic-pdf/AnnotatedImageSlider.js +277 -0
  751. package/lib/features/magic-pdf/AnnotatedImageSlider.js.map +1 -0
  752. package/lib/features/magic-pdf/DownloadPopover.d.ts +7 -0
  753. package/lib/features/magic-pdf/DownloadPopover.d.ts.map +1 -0
  754. package/lib/features/magic-pdf/DownloadPopover.js +29 -0
  755. package/lib/features/magic-pdf/DownloadPopover.js.map +1 -0
  756. package/lib/features/magic-pdf/ExtractedContentView.d.ts +8 -0
  757. package/lib/features/magic-pdf/ExtractedContentView.d.ts.map +1 -0
  758. package/lib/features/magic-pdf/ExtractedContentView.js +79 -0
  759. package/lib/features/magic-pdf/ExtractedContentView.js.map +1 -0
  760. package/lib/features/magic-pdf/MagicPdfProvider.d.ts +58 -0
  761. package/lib/features/magic-pdf/MagicPdfProvider.d.ts.map +1 -0
  762. package/lib/features/magic-pdf/MagicPdfProvider.js +241 -0
  763. package/lib/features/magic-pdf/MagicPdfProvider.js.map +1 -0
  764. package/lib/features/magic-pdf/MagicPdfView.d.ts +7 -0
  765. package/lib/features/magic-pdf/MagicPdfView.d.ts.map +1 -0
  766. package/lib/features/magic-pdf/MagicPdfView.js +64 -0
  767. package/lib/features/magic-pdf/MagicPdfView.js.map +1 -0
  768. package/lib/features/magic-pdf/index.d.ts +2 -0
  769. package/lib/features/magic-pdf/index.d.ts.map +1 -0
  770. package/lib/features/magic-pdf/index.js +2 -0
  771. package/lib/features/magic-pdf/index.js.map +1 -0
  772. package/lib/features/magic-pdf/types.d.ts +2 -0
  773. package/lib/features/magic-pdf/types.d.ts.map +1 -0
  774. package/lib/features/magic-pdf/types.js.map +1 -0
  775. package/lib/features/media-viewer/AudioPanel.d.ts +18 -0
  776. package/lib/features/media-viewer/AudioPanel.d.ts.map +1 -0
  777. package/lib/features/media-viewer/AudioPanel.js +77 -0
  778. package/lib/features/media-viewer/AudioPanel.js.map +1 -0
  779. package/lib/features/media-viewer/ImagePanel.d.ts +18 -0
  780. package/lib/features/media-viewer/ImagePanel.d.ts.map +1 -0
  781. package/lib/features/media-viewer/ImagePanel.js +74 -0
  782. package/lib/features/media-viewer/ImagePanel.js.map +1 -0
  783. package/lib/features/media-viewer/VideoPanel.d.ts +18 -0
  784. package/lib/features/media-viewer/VideoPanel.d.ts.map +1 -0
  785. package/lib/features/media-viewer/VideoPanel.js +89 -0
  786. package/lib/features/media-viewer/VideoPanel.js.map +1 -0
  787. package/lib/features/media-viewer/formats.d.ts +11 -0
  788. package/lib/features/media-viewer/formats.d.ts.map +1 -0
  789. package/lib/features/media-viewer/formats.js +34 -0
  790. package/lib/features/media-viewer/formats.js.map +1 -0
  791. package/lib/features/media-viewer/index.d.ts +5 -0
  792. package/lib/features/media-viewer/index.d.ts.map +1 -0
  793. package/lib/features/media-viewer/index.js +5 -0
  794. package/lib/features/media-viewer/index.js.map +1 -0
  795. package/lib/features/oauth/OAuthProviderConnectButton.d.ts +11 -0
  796. package/lib/features/oauth/OAuthProviderConnectButton.d.ts.map +1 -0
  797. package/lib/features/oauth/OAuthProviderConnectButton.js +85 -0
  798. package/lib/features/oauth/OAuthProviderConnectButton.js.map +1 -0
  799. package/lib/features/oauth/RemoteMcpConnectionButton.d.ts +25 -0
  800. package/lib/features/oauth/RemoteMcpConnectionButton.d.ts.map +1 -0
  801. package/lib/features/oauth/RemoteMcpConnectionButton.js +119 -0
  802. package/lib/features/oauth/RemoteMcpConnectionButton.js.map +1 -0
  803. package/lib/features/oauth/index.d.ts.map +1 -0
  804. package/lib/features/oauth/index.js.map +1 -0
  805. package/lib/features/oauth/useOAuthPopup.d.ts.map +1 -0
  806. package/lib/features/oauth/useOAuthPopup.js.map +1 -0
  807. package/lib/features/pdf-viewer/PdfPageRenderer.d.ts +83 -0
  808. package/lib/features/pdf-viewer/PdfPageRenderer.d.ts.map +1 -0
  809. package/lib/features/pdf-viewer/PdfPageRenderer.js +259 -0
  810. package/lib/features/pdf-viewer/PdfPageRenderer.js.map +1 -0
  811. package/lib/features/pdf-viewer/PdfPageSlider.d.ts +29 -0
  812. package/lib/features/pdf-viewer/PdfPageSlider.d.ts.map +1 -0
  813. package/lib/features/pdf-viewer/PdfPageSlider.js +274 -0
  814. package/lib/features/pdf-viewer/PdfPageSlider.js.map +1 -0
  815. package/lib/features/pdf-viewer/SimplePdfViewer.d.ts +19 -0
  816. package/lib/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -0
  817. package/lib/features/pdf-viewer/SimplePdfViewer.js +74 -0
  818. package/lib/features/pdf-viewer/SimplePdfViewer.js.map +1 -0
  819. package/lib/features/pdf-viewer/index.d.ts.map +1 -0
  820. package/lib/features/pdf-viewer/index.js.map +1 -0
  821. package/lib/features/permissions/SecureButton.d.ts +8 -0
  822. package/lib/features/permissions/SecureButton.d.ts.map +1 -0
  823. package/lib/features/permissions/SecureButton.js +12 -0
  824. package/lib/features/permissions/SecureButton.js.map +1 -0
  825. package/lib/features/permissions/SecureSidebarItem.d.ts +8 -0
  826. package/lib/features/permissions/SecureSidebarItem.d.ts.map +1 -0
  827. package/lib/features/permissions/SecureSidebarItem.js +14 -0
  828. package/lib/features/permissions/SecureSidebarItem.js.map +1 -0
  829. package/lib/features/permissions/UserPermissionsProvider.d.ts +20 -0
  830. package/lib/features/permissions/UserPermissionsProvider.d.ts.map +1 -0
  831. package/lib/features/permissions/UserPermissionsProvider.js +98 -0
  832. package/lib/features/permissions/UserPermissionsProvider.js.map +1 -0
  833. package/lib/features/permissions/helpers.d.ts +5 -0
  834. package/lib/features/permissions/helpers.d.ts.map +1 -0
  835. package/lib/features/permissions/helpers.js.map +1 -0
  836. package/lib/features/permissions/index.d.ts +5 -0
  837. package/lib/features/permissions/index.d.ts.map +1 -0
  838. package/lib/features/permissions/index.js +5 -0
  839. package/lib/features/permissions/index.js.map +1 -0
  840. package/lib/features/store/collections/BrowseCollectionView.d.ts +7 -0
  841. package/lib/features/store/collections/BrowseCollectionView.d.ts.map +1 -0
  842. package/lib/features/store/collections/BrowseCollectionView.js +48 -0
  843. package/lib/features/store/collections/BrowseCollectionView.js.map +1 -0
  844. package/lib/features/store/collections/CollectionsTable.d.ts +5 -0
  845. package/lib/features/store/collections/CollectionsTable.d.ts.map +1 -0
  846. package/lib/features/store/collections/CollectionsTable.js +65 -0
  847. package/lib/features/store/collections/CollectionsTable.js.map +1 -0
  848. package/lib/features/store/collections/CreateCollection.d.ts +13 -0
  849. package/lib/features/store/collections/CreateCollection.d.ts.map +1 -0
  850. package/lib/features/store/collections/CreateCollection.js +89 -0
  851. package/lib/features/store/collections/CreateCollection.js.map +1 -0
  852. package/lib/features/store/collections/EditCollectionView.d.ts +8 -0
  853. package/lib/features/store/collections/EditCollectionView.d.ts.map +1 -0
  854. package/lib/features/store/collections/EditCollectionView.js +228 -0
  855. package/lib/features/store/collections/EditCollectionView.js.map +1 -0
  856. package/lib/features/store/collections/SelectCollection.d.ts +20 -0
  857. package/lib/features/store/collections/SelectCollection.d.ts.map +1 -0
  858. package/lib/features/store/collections/SelectCollection.js +134 -0
  859. package/lib/features/store/collections/SelectCollection.js.map +1 -0
  860. package/lib/features/store/collections/SharedPropsEditor.d.ts +7 -0
  861. package/lib/features/store/collections/SharedPropsEditor.d.ts.map +1 -0
  862. package/lib/features/store/collections/SharedPropsEditor.js +44 -0
  863. package/lib/features/store/collections/SharedPropsEditor.js.map +1 -0
  864. package/lib/features/store/collections/SyncMemberHeadsToggle.d.ts +7 -0
  865. package/lib/features/store/collections/SyncMemberHeadsToggle.d.ts.map +1 -0
  866. package/lib/features/store/collections/SyncMemberHeadsToggle.js +41 -0
  867. package/lib/features/store/collections/SyncMemberHeadsToggle.js.map +1 -0
  868. package/lib/features/store/collections/index.d.ts +8 -0
  869. package/lib/features/store/collections/index.d.ts.map +1 -0
  870. package/lib/features/store/collections/index.js +8 -0
  871. package/lib/features/store/collections/index.js.map +1 -0
  872. package/lib/features/store/index.d.ts +4 -0
  873. package/lib/features/store/index.d.ts.map +1 -0
  874. package/lib/features/store/index.js +4 -0
  875. package/lib/features/store/index.js.map +1 -0
  876. package/lib/features/store/objects/DocumentPreviewPanel.d.ts +8 -0
  877. package/lib/features/store/objects/DocumentPreviewPanel.d.ts.map +1 -0
  878. package/lib/features/store/objects/DocumentPreviewPanel.js +146 -0
  879. package/lib/features/store/objects/DocumentPreviewPanel.js.map +1 -0
  880. package/lib/features/store/objects/DocumentSearchResults.d.ts +20 -0
  881. package/lib/features/store/objects/DocumentSearchResults.d.ts.map +1 -0
  882. package/lib/features/store/objects/DocumentSearchResults.js +251 -0
  883. package/lib/features/store/objects/DocumentSearchResults.js.map +1 -0
  884. package/lib/features/store/objects/DocumentSelectionProvider.d.ts +33 -0
  885. package/lib/features/store/objects/DocumentSelectionProvider.d.ts.map +1 -0
  886. package/lib/features/store/objects/DocumentSelectionProvider.js +81 -0
  887. package/lib/features/store/objects/DocumentSelectionProvider.js.map +1 -0
  888. package/lib/features/store/objects/DocumentTable.d.ts +25 -0
  889. package/lib/features/store/objects/DocumentTable.d.ts.map +1 -0
  890. package/lib/features/store/objects/DocumentTable.js +281 -0
  891. package/lib/features/store/objects/DocumentTable.js.map +1 -0
  892. package/lib/features/store/objects/ExportPropertiesModal.d.ts +12 -0
  893. package/lib/features/store/objects/ExportPropertiesModal.d.ts.map +1 -0
  894. package/lib/features/store/objects/ExportPropertiesModal.js +31 -0
  895. package/lib/features/store/objects/ExportPropertiesModal.js.map +1 -0
  896. package/lib/features/store/objects/components/ContentDispositionButton.d.ts +9 -0
  897. package/lib/features/store/objects/components/ContentDispositionButton.d.ts.map +1 -0
  898. package/lib/features/store/objects/components/ContentDispositionButton.js +31 -0
  899. package/lib/features/store/objects/components/ContentDispositionButton.js.map +1 -0
  900. package/lib/features/store/objects/components/ContentOverview.d.ts +10 -0
  901. package/lib/features/store/objects/components/ContentOverview.d.ts.map +1 -0
  902. package/lib/features/store/objects/components/ContentOverview.js +433 -0
  903. package/lib/features/store/objects/components/ContentOverview.js.map +1 -0
  904. package/lib/features/store/objects/components/DocumentIcon.d.ts +19 -0
  905. package/lib/features/store/objects/components/DocumentIcon.d.ts.map +1 -0
  906. package/lib/features/store/objects/components/DocumentIcon.js +37 -0
  907. package/lib/features/store/objects/components/DocumentIcon.js.map +1 -0
  908. package/lib/features/store/objects/components/DocumentInput.d.ts +8 -0
  909. package/lib/features/store/objects/components/DocumentInput.d.ts.map +1 -0
  910. package/lib/features/store/objects/components/DocumentInput.js +52 -0
  911. package/lib/features/store/objects/components/DocumentInput.js.map +1 -0
  912. package/lib/features/store/objects/components/PropertiesEditorModal.d.ts +9 -0
  913. package/lib/features/store/objects/components/PropertiesEditorModal.d.ts.map +1 -0
  914. package/lib/features/store/objects/components/PropertiesEditorModal.js +161 -0
  915. package/lib/features/store/objects/components/PropertiesEditorModal.js.map +1 -0
  916. package/lib/features/store/objects/components/SaveVersionConfirmModal.d.ts +9 -0
  917. package/lib/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +1 -0
  918. package/lib/features/store/objects/components/SaveVersionConfirmModal.js +58 -0
  919. package/lib/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -0
  920. package/lib/features/store/objects/components/SelectDocument.d.ts +11 -0
  921. package/lib/features/store/objects/components/SelectDocument.d.ts.map +1 -0
  922. package/lib/features/store/objects/components/SelectDocument.js +55 -0
  923. package/lib/features/store/objects/components/SelectDocument.js.map +1 -0
  924. package/lib/features/store/objects/components/SelectDocumentModal.d.ts +9 -0
  925. package/lib/features/store/objects/components/SelectDocumentModal.d.ts.map +1 -0
  926. package/lib/features/store/objects/components/SelectDocumentModal.js +7 -0
  927. package/lib/features/store/objects/components/SelectDocumentModal.js.map +1 -0
  928. package/lib/features/store/objects/components/TextEditorPanel.d.ts +10 -0
  929. package/lib/features/store/objects/components/TextEditorPanel.d.ts.map +1 -0
  930. package/lib/features/store/objects/components/TextEditorPanel.js +99 -0
  931. package/lib/features/store/objects/components/TextEditorPanel.js.map +1 -0
  932. package/lib/features/store/objects/components/VectorSearchWidget.d.ts +12 -0
  933. package/lib/features/store/objects/components/VectorSearchWidget.d.ts.map +1 -0
  934. package/lib/features/store/objects/components/VectorSearchWidget.js +101 -0
  935. package/lib/features/store/objects/components/VectorSearchWidget.js.map +1 -0
  936. package/lib/features/store/objects/components/index.d.ts +10 -0
  937. package/lib/features/store/objects/components/index.d.ts.map +1 -0
  938. package/lib/features/store/objects/components/index.js +10 -0
  939. package/lib/features/store/objects/components/index.js.map +1 -0
  940. package/lib/features/store/objects/components/useContentPanelHooks.d.ts +30 -0
  941. package/lib/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -0
  942. package/lib/features/store/objects/components/useContentPanelHooks.js +193 -0
  943. package/lib/features/store/objects/components/useContentPanelHooks.js.map +1 -0
  944. package/lib/features/store/objects/components/useDownloadFile.d.ts +39 -0
  945. package/lib/features/store/objects/components/useDownloadFile.d.ts.map +1 -0
  946. package/lib/features/store/objects/components/useDownloadFile.js +196 -0
  947. package/lib/features/store/objects/components/useDownloadFile.js.map +1 -0
  948. package/lib/features/store/objects/index.d.ts +11 -0
  949. package/lib/features/store/objects/index.d.ts.map +1 -0
  950. package/lib/features/store/objects/index.js +11 -0
  951. package/lib/features/store/objects/index.js.map +1 -0
  952. package/lib/features/store/objects/layout/DocumentTableColumn.d.ts +18 -0
  953. package/lib/features/store/objects/layout/DocumentTableColumn.d.ts.map +1 -0
  954. package/lib/features/store/objects/layout/DocumentTableColumn.js +95 -0
  955. package/lib/features/store/objects/layout/DocumentTableColumn.js.map +1 -0
  956. package/lib/features/store/objects/layout/documentLayout.d.ts +21 -0
  957. package/lib/features/store/objects/layout/documentLayout.d.ts.map +1 -0
  958. package/lib/features/store/objects/layout/documentLayout.js +18 -0
  959. package/lib/features/store/objects/layout/documentLayout.js.map +1 -0
  960. package/lib/features/store/objects/layout/index.d.ts +3 -0
  961. package/lib/features/store/objects/layout/index.d.ts.map +1 -0
  962. package/lib/features/store/objects/layout/index.js +3 -0
  963. package/lib/features/store/objects/layout/index.js.map +1 -0
  964. package/lib/features/store/objects/layout/renderers.d.ts +3 -0
  965. package/lib/features/store/objects/layout/renderers.d.ts.map +1 -0
  966. package/lib/features/store/objects/layout/renderers.js +198 -0
  967. package/lib/features/store/objects/layout/renderers.js.map +1 -0
  968. package/lib/features/store/objects/search/DocumentSearchContext.d.ts +53 -0
  969. package/lib/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -0
  970. package/lib/features/store/objects/search/DocumentSearchContext.js +190 -0
  971. package/lib/features/store/objects/search/DocumentSearchContext.js.map +1 -0
  972. package/lib/features/store/objects/search/DocumentSearchProvider.d.ts +14 -0
  973. package/lib/features/store/objects/search/DocumentSearchProvider.d.ts.map +1 -0
  974. package/lib/features/store/objects/search/DocumentSearchProvider.js +42 -0
  975. package/lib/features/store/objects/search/DocumentSearchProvider.js.map +1 -0
  976. package/lib/features/store/objects/search/index.d.ts +3 -0
  977. package/lib/features/store/objects/search/index.d.ts.map +1 -0
  978. package/lib/features/store/objects/search/index.js +3 -0
  979. package/lib/features/store/objects/search/index.js.map +1 -0
  980. package/lib/features/store/objects/selection/ObjectsActionContext.d.ts +9 -0
  981. package/lib/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -0
  982. package/lib/features/store/objects/selection/ObjectsActionContext.js +70 -0
  983. package/lib/features/store/objects/selection/ObjectsActionContext.js.map +1 -0
  984. package/lib/features/store/objects/selection/ObjectsActionContextClass.d.ts +16 -0
  985. package/lib/features/store/objects/selection/ObjectsActionContextClass.d.ts.map +1 -0
  986. package/lib/features/store/objects/selection/ObjectsActionContextClass.js +50 -0
  987. package/lib/features/store/objects/selection/ObjectsActionContextClass.js.map +1 -0
  988. package/lib/features/store/objects/selection/ObjectsActionHooks.d.ts +7 -0
  989. package/lib/features/store/objects/selection/ObjectsActionHooks.d.ts.map +1 -0
  990. package/lib/features/store/objects/selection/ObjectsActionHooks.js +27 -0
  991. package/lib/features/store/objects/selection/ObjectsActionHooks.js.map +1 -0
  992. package/lib/features/store/objects/selection/ObjectsActionSpec.d.ts +32 -0
  993. package/lib/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -0
  994. package/lib/features/store/objects/selection/ObjectsActionSpec.js.map +1 -0
  995. package/lib/features/store/objects/selection/SelectionActions.d.ts +14 -0
  996. package/lib/features/store/objects/selection/SelectionActions.d.ts.map +1 -0
  997. package/lib/features/store/objects/selection/SelectionActions.js +96 -0
  998. package/lib/features/store/objects/selection/SelectionActions.js.map +1 -0
  999. package/lib/features/store/objects/selection/actions/AddToCollectionAction.d.ts +4 -0
  1000. package/lib/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +1 -0
  1001. package/lib/features/store/objects/selection/actions/AddToCollectionAction.js +88 -0
  1002. package/lib/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -0
  1003. package/lib/features/store/objects/selection/actions/ChangeTypeAction.d.ts +4 -0
  1004. package/lib/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +1 -0
  1005. package/lib/features/store/objects/selection/actions/ChangeTypeAction.js +59 -0
  1006. package/lib/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -0
  1007. package/lib/features/store/objects/selection/actions/ConfirmAction.d.ts +16 -0
  1008. package/lib/features/store/objects/selection/actions/ConfirmAction.d.ts.map +1 -0
  1009. package/lib/features/store/objects/selection/actions/ConfirmAction.js +32 -0
  1010. package/lib/features/store/objects/selection/actions/ConfirmAction.js.map +1 -0
  1011. package/lib/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +5 -0
  1012. package/lib/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +1 -0
  1013. package/lib/features/store/objects/selection/actions/DeleteObjectsAction.js +99 -0
  1014. package/lib/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -0
  1015. package/lib/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +4 -0
  1016. package/lib/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +1 -0
  1017. package/lib/features/store/objects/selection/actions/ExportPropertiesAction.js +115 -0
  1018. package/lib/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -0
  1019. package/lib/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +4 -0
  1020. package/lib/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +1 -0
  1021. package/lib/features/store/objects/selection/actions/RemoveFromCollectionAction.js +79 -0
  1022. package/lib/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -0
  1023. package/lib/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +4 -0
  1024. package/lib/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +1 -0
  1025. package/lib/features/store/objects/selection/actions/StartWorkflowComponent.js +77 -0
  1026. package/lib/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -0
  1027. package/lib/features/store/objects/selection/actions/index.d.ts +8 -0
  1028. package/lib/features/store/objects/selection/actions/index.d.ts.map +1 -0
  1029. package/lib/features/store/objects/selection/actions/index.js +8 -0
  1030. package/lib/features/store/objects/selection/actions/index.js.map +1 -0
  1031. package/lib/features/store/objects/selection/index.d.ts +5 -0
  1032. package/lib/features/store/objects/selection/index.d.ts.map +1 -0
  1033. package/lib/features/store/objects/selection/index.js +5 -0
  1034. package/lib/features/store/objects/selection/index.js.map +1 -0
  1035. package/lib/features/store/objects/upload/DocumentUploadModal.d.ts +39 -0
  1036. package/lib/features/store/objects/upload/DocumentUploadModal.d.ts.map +1 -0
  1037. package/lib/features/store/objects/upload/DocumentUploadModal.js +525 -0
  1038. package/lib/features/store/objects/upload/DocumentUploadModal.js.map +1 -0
  1039. package/lib/features/store/objects/upload/index.d.ts +4 -0
  1040. package/lib/features/store/objects/upload/index.d.ts.map +1 -0
  1041. package/lib/features/store/objects/upload/index.js +4 -0
  1042. package/lib/features/store/objects/upload/index.js.map +1 -0
  1043. package/lib/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +30 -0
  1044. package/lib/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -0
  1045. package/lib/features/store/objects/upload/useSmartFileUploadProcessing.js +207 -0
  1046. package/lib/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -0
  1047. package/lib/features/store/objects/upload/useUploadHandler.d.ts +50 -0
  1048. package/lib/features/store/objects/upload/useUploadHandler.d.ts.map +1 -0
  1049. package/lib/features/store/objects/upload/useUploadHandler.js +232 -0
  1050. package/lib/features/store/objects/upload/useUploadHandler.js.map +1 -0
  1051. package/lib/features/store/types/ContentObjectTypesSearch.d.ts +6 -0
  1052. package/lib/features/store/types/ContentObjectTypesSearch.d.ts.map +1 -0
  1053. package/lib/features/store/types/ContentObjectTypesSearch.js +83 -0
  1054. package/lib/features/store/types/ContentObjectTypesSearch.js.map +1 -0
  1055. package/lib/features/store/types/ContentObjectTypesTable.d.ts +8 -0
  1056. package/lib/features/store/types/ContentObjectTypesTable.d.ts.map +1 -0
  1057. package/lib/features/store/types/ContentObjectTypesTable.js +13 -0
  1058. package/lib/features/store/types/ContentObjectTypesTable.js.map +1 -0
  1059. package/lib/features/store/types/CreateOrUpdateTypeModal.d.ts +16 -0
  1060. package/lib/features/store/types/CreateOrUpdateTypeModal.d.ts.map +1 -0
  1061. package/lib/features/store/types/CreateOrUpdateTypeModal.js +25 -0
  1062. package/lib/features/store/types/CreateOrUpdateTypeModal.js.map +1 -0
  1063. package/lib/features/store/types/ObjectSchemaEditor.d.ts +9 -0
  1064. package/lib/features/store/types/ObjectSchemaEditor.d.ts.map +1 -0
  1065. package/lib/features/store/types/ObjectSchemaEditor.js +106 -0
  1066. package/lib/features/store/types/ObjectSchemaEditor.js.map +1 -0
  1067. package/lib/features/store/types/SelectContentType.d.ts +11 -0
  1068. package/lib/features/store/types/SelectContentType.d.ts.map +1 -0
  1069. package/lib/features/store/types/SelectContentType.js +45 -0
  1070. package/lib/features/store/types/SelectContentType.js.map +1 -0
  1071. package/lib/features/store/types/SelectContentTypeModal.d.ts +33 -0
  1072. package/lib/features/store/types/SelectContentTypeModal.d.ts.map +1 -0
  1073. package/lib/features/store/types/SelectContentTypeModal.js +32 -0
  1074. package/lib/features/store/types/SelectContentTypeModal.js.map +1 -0
  1075. package/lib/features/store/types/TableLayoutEditor.d.ts +10 -0
  1076. package/lib/features/store/types/TableLayoutEditor.d.ts.map +1 -0
  1077. package/lib/features/store/types/TableLayoutEditor.js +82 -0
  1078. package/lib/features/store/types/TableLayoutEditor.js.map +1 -0
  1079. package/lib/features/store/types/TypeRegistry.d.ts +10 -0
  1080. package/lib/features/store/types/TypeRegistry.d.ts.map +1 -0
  1081. package/lib/features/store/types/TypeRegistry.js.map +1 -0
  1082. package/lib/features/store/types/TypeRegistryProvider.d.ts +15 -0
  1083. package/lib/features/store/types/TypeRegistryProvider.d.ts.map +1 -0
  1084. package/lib/features/store/types/TypeRegistryProvider.js +57 -0
  1085. package/lib/features/store/types/TypeRegistryProvider.js.map +1 -0
  1086. package/lib/features/store/types/index.d.ts +11 -0
  1087. package/lib/features/store/types/index.d.ts.map +1 -0
  1088. package/lib/features/store/types/index.js +11 -0
  1089. package/lib/features/store/types/index.js.map +1 -0
  1090. package/lib/features/store/types/search/ObjectTypeSearchContext.d.ts +36 -0
  1091. package/lib/features/store/types/search/ObjectTypeSearchContext.d.ts.map +1 -0
  1092. package/lib/features/store/types/search/ObjectTypeSearchContext.js +102 -0
  1093. package/lib/features/store/types/search/ObjectTypeSearchContext.js.map +1 -0
  1094. package/lib/features/store/types/search/ObjectTypeSearchProvider.d.ts +11 -0
  1095. package/lib/features/store/types/search/ObjectTypeSearchProvider.d.ts.map +1 -0
  1096. package/lib/features/store/types/search/ObjectTypeSearchProvider.js +15 -0
  1097. package/lib/features/store/types/search/ObjectTypeSearchProvider.js.map +1 -0
  1098. package/lib/features/store/types/search/index.d.ts +3 -0
  1099. package/lib/features/store/types/search/index.d.ts.map +1 -0
  1100. package/lib/features/store/types/search/index.js +3 -0
  1101. package/lib/features/store/types/search/index.js.map +1 -0
  1102. package/lib/features/user/UserAvatar.d.ts +9 -0
  1103. package/lib/features/user/UserAvatar.d.ts.map +1 -0
  1104. package/lib/features/user/UserAvatar.js +21 -0
  1105. package/lib/features/user/UserAvatar.js.map +1 -0
  1106. package/lib/features/user/UserInfo.d.ts +60 -0
  1107. package/lib/features/user/UserInfo.d.ts.map +1 -0
  1108. package/lib/features/user/UserInfo.js +229 -0
  1109. package/lib/features/user/UserInfo.js.map +1 -0
  1110. package/lib/features/user/index.d.ts +3 -0
  1111. package/lib/features/user/index.d.ts.map +1 -0
  1112. package/lib/features/user/index.js +3 -0
  1113. package/lib/features/user/index.js.map +1 -0
  1114. package/lib/features/utils/index.d.ts +6 -0
  1115. package/lib/features/utils/index.d.ts.map +1 -0
  1116. package/lib/features/utils/index.js +6 -0
  1117. package/lib/features/utils/index.js.map +1 -0
  1118. package/lib/features/utils/mimeType.d.ts.map +1 -0
  1119. package/lib/features/utils/mimeType.js.map +1 -0
  1120. package/lib/features/utils/print.d.ts.map +1 -0
  1121. package/lib/features/utils/print.js +182 -0
  1122. package/lib/features/utils/print.js.map +1 -0
  1123. package/lib/features/utils/rendition.d.ts +4 -0
  1124. package/lib/features/utils/rendition.d.ts.map +1 -0
  1125. package/lib/features/utils/rendition.js +65 -0
  1126. package/lib/features/utils/rendition.js.map +1 -0
  1127. package/lib/features/utils/text.d.ts.map +1 -0
  1128. package/lib/features/utils/text.js +10 -0
  1129. package/lib/features/utils/text.js.map +1 -0
  1130. package/lib/features/utils/workflowStatus.d.ts +10 -0
  1131. package/lib/features/utils/workflowStatus.d.ts.map +1 -0
  1132. package/lib/features/utils/workflowStatus.js +43 -0
  1133. package/lib/features/utils/workflowStatus.js.map +1 -0
  1134. package/lib/i18n/LanguageProvider.d.ts +16 -0
  1135. package/lib/i18n/LanguageProvider.d.ts.map +1 -0
  1136. package/lib/i18n/LanguageProvider.js +48 -0
  1137. package/lib/i18n/LanguageProvider.js.map +1 -0
  1138. package/lib/i18n/index.d.ts +28 -0
  1139. package/lib/i18n/index.d.ts.map +1 -0
  1140. package/lib/i18n/index.js +46 -0
  1141. package/lib/i18n/index.js.map +1 -0
  1142. package/lib/i18n/instance.d.ts.map +1 -0
  1143. package/lib/i18n/instance.js.map +1 -0
  1144. package/lib/i18n/locales/ar.json +733 -0
  1145. package/lib/i18n/locales/de.json +689 -0
  1146. package/lib/i18n/locales/en.json +704 -0
  1147. package/lib/i18n/locales/es.json +700 -0
  1148. package/lib/i18n/locales/fr.json +700 -0
  1149. package/lib/i18n/locales/it.json +700 -0
  1150. package/lib/i18n/locales/ja.json +689 -0
  1151. package/lib/i18n/locales/ko.json +689 -0
  1152. package/lib/i18n/locales/pt.json +700 -0
  1153. package/lib/i18n/locales/ru.json +711 -0
  1154. package/lib/i18n/locales/tr.json +689 -0
  1155. package/lib/i18n/locales/zh-TW.json +689 -0
  1156. package/lib/i18n/locales/zh.json +689 -0
  1157. package/lib/i18n/rtl.d.ts +27 -0
  1158. package/lib/i18n/rtl.d.ts.map +1 -0
  1159. package/lib/i18n/rtl.js +54 -0
  1160. package/lib/i18n/rtl.js.map +1 -0
  1161. package/lib/i18n/useLocaleFormat.d.ts +29 -0
  1162. package/lib/i18n/useLocaleFormat.d.ts.map +1 -0
  1163. package/lib/i18n/useLocaleFormat.js +79 -0
  1164. package/lib/i18n/useLocaleFormat.js.map +1 -0
  1165. package/lib/layout/AppLayout.d.ts +13 -0
  1166. package/lib/layout/AppLayout.d.ts.map +1 -0
  1167. package/lib/layout/AppLayout.js +47 -0
  1168. package/lib/layout/AppLayout.js.map +1 -0
  1169. package/lib/layout/ErrorPage.d.ts +9 -0
  1170. package/lib/layout/ErrorPage.d.ts.map +1 -0
  1171. package/lib/layout/ErrorPage.js +6 -0
  1172. package/lib/layout/ErrorPage.js.map +1 -0
  1173. package/lib/layout/FullHeightLayout.d.ts +27 -0
  1174. package/lib/layout/FullHeightLayout.d.ts.map +1 -0
  1175. package/lib/layout/FullHeightLayout.js +24 -0
  1176. package/lib/layout/FullHeightLayout.js.map +1 -0
  1177. package/lib/layout/Navbar.d.ts +33 -0
  1178. package/lib/layout/Navbar.d.ts.map +1 -0
  1179. package/lib/layout/Navbar.js +42 -0
  1180. package/lib/layout/Navbar.js.map +1 -0
  1181. package/lib/layout/RegionTag.d.ts +4 -0
  1182. package/lib/layout/RegionTag.d.ts.map +1 -0
  1183. package/lib/layout/RegionTag.js.map +1 -0
  1184. package/lib/layout/Sidebar.d.ts +35 -0
  1185. package/lib/layout/Sidebar.d.ts.map +1 -0
  1186. package/lib/layout/Sidebar.js +47 -0
  1187. package/lib/layout/Sidebar.js.map +1 -0
  1188. package/lib/layout/SidebarContext.d.ts.map +1 -0
  1189. package/lib/layout/SidebarContext.js +10 -0
  1190. package/lib/layout/SidebarContext.js.map +1 -0
  1191. package/lib/layout/TitleBar.d.ts +6 -0
  1192. package/lib/layout/TitleBar.d.ts.map +1 -0
  1193. package/lib/layout/TitleBar.js +5 -0
  1194. package/lib/layout/TitleBar.js.map +1 -0
  1195. package/lib/layout/index.d.ts +9 -0
  1196. package/lib/layout/index.d.ts.map +1 -0
  1197. package/lib/layout/index.js +9 -0
  1198. package/lib/layout/index.js.map +1 -0
  1199. package/lib/router/FixLinks.d.ts +7 -0
  1200. package/lib/router/FixLinks.d.ts.map +1 -0
  1201. package/lib/router/FixLinks.js +23 -0
  1202. package/lib/router/FixLinks.js.map +1 -0
  1203. package/lib/router/HistoryNavigator.d.ts +68 -0
  1204. package/lib/router/HistoryNavigator.d.ts.map +1 -0
  1205. package/lib/router/HistoryNavigator.js +220 -0
  1206. package/lib/router/HistoryNavigator.js.map +1 -0
  1207. package/lib/router/Nav.d.ts +43 -0
  1208. package/lib/router/Nav.d.ts.map +1 -0
  1209. package/lib/router/Nav.js +37 -0
  1210. package/lib/router/Nav.js.map +1 -0
  1211. package/lib/router/NestedNavigationContext.d.ts +9 -0
  1212. package/lib/router/NestedNavigationContext.d.ts.map +1 -0
  1213. package/lib/router/NestedNavigationContext.js +23 -0
  1214. package/lib/router/NestedNavigationContext.js.map +1 -0
  1215. package/lib/router/NestedRouterProvider.d.ts +14 -0
  1216. package/lib/router/NestedRouterProvider.d.ts.map +1 -0
  1217. package/lib/router/NestedRouterProvider.js +52 -0
  1218. package/lib/router/NestedRouterProvider.js.map +1 -0
  1219. package/lib/router/PathMatcher.d.ts +36 -0
  1220. package/lib/router/PathMatcher.d.ts.map +1 -0
  1221. package/lib/router/PathMatcher.js +158 -0
  1222. package/lib/router/PathMatcher.js.map +1 -0
  1223. package/lib/router/PathWithParams.d.ts.map +1 -0
  1224. package/lib/router/PathWithParams.js +34 -0
  1225. package/lib/router/PathWithParams.js.map +1 -0
  1226. package/lib/router/Route404.d.ts +4 -0
  1227. package/lib/router/Route404.d.ts.map +1 -0
  1228. package/lib/router/Route404.js +18 -0
  1229. package/lib/router/Route404.js.map +1 -0
  1230. package/lib/router/RouteComponent.d.ts +6 -0
  1231. package/lib/router/RouteComponent.d.ts.map +1 -0
  1232. package/lib/router/RouteComponent.js +32 -0
  1233. package/lib/router/RouteComponent.js.map +1 -0
  1234. package/lib/router/Router.d.ts +81 -0
  1235. package/lib/router/Router.d.ts.map +1 -0
  1236. package/lib/router/Router.js +183 -0
  1237. package/lib/router/Router.js.map +1 -0
  1238. package/lib/router/RouterProvider.d.ts +15 -0
  1239. package/lib/router/RouterProvider.d.ts.map +1 -0
  1240. package/lib/router/RouterProvider.js +40 -0
  1241. package/lib/router/RouterProvider.js.map +1 -0
  1242. package/lib/router/index.d.ts +11 -0
  1243. package/lib/router/index.d.ts.map +1 -0
  1244. package/lib/router/index.js +11 -0
  1245. package/lib/router/index.js.map +1 -0
  1246. package/lib/router/path.d.ts.map +1 -0
  1247. package/lib/router/path.js +140 -0
  1248. package/lib/router/path.js.map +1 -0
  1249. package/lib/session/UserSession.d.ts +46 -0
  1250. package/lib/session/UserSession.d.ts.map +1 -0
  1251. package/lib/session/UserSession.js +248 -0
  1252. package/lib/session/UserSession.js.map +1 -0
  1253. package/lib/session/UserSessionProvider.d.ts +8 -0
  1254. package/lib/session/UserSessionProvider.d.ts.map +1 -0
  1255. package/lib/session/UserSessionProvider.js +252 -0
  1256. package/lib/session/UserSessionProvider.js.map +1 -0
  1257. package/lib/session/auth/composable.d.ts +38 -0
  1258. package/lib/session/auth/composable.d.ts.map +1 -0
  1259. package/lib/session/auth/composable.js +325 -0
  1260. package/lib/session/auth/composable.js.map +1 -0
  1261. package/lib/session/auth/domainRouting.d.ts.map +1 -0
  1262. package/lib/session/auth/domainRouting.js.map +1 -0
  1263. package/lib/session/auth/firebase.d.ts +10 -0
  1264. package/lib/session/auth/firebase.d.ts.map +1 -0
  1265. package/lib/session/auth/firebase.js +160 -0
  1266. package/lib/session/auth/firebase.js.map +1 -0
  1267. package/lib/session/auth/useAuthState.d.ts.map +1 -0
  1268. package/lib/session/auth/useAuthState.js +46 -0
  1269. package/lib/session/auth/useAuthState.js.map +1 -0
  1270. package/lib/session/auth/useCurrentTenant.d.ts.map +1 -0
  1271. package/lib/session/auth/useCurrentTenant.js +64 -0
  1272. package/lib/session/auth/useCurrentTenant.js.map +1 -0
  1273. package/lib/session/constants.d.ts.map +1 -0
  1274. package/lib/session/constants.js.map +1 -0
  1275. package/lib/session/index.d.ts +8 -0
  1276. package/lib/session/index.d.ts.map +1 -0
  1277. package/lib/session/index.js +8 -0
  1278. package/lib/session/index.js.map +1 -0
  1279. package/lib/session/useUXTracking.d.ts +6 -0
  1280. package/lib/session/useUXTracking.d.ts.map +1 -0
  1281. package/lib/session/useUXTracking.js +29 -0
  1282. package/lib/session/useUXTracking.js.map +1 -0
  1283. package/lib/shell/SplashScreen.d.ts +7 -0
  1284. package/lib/shell/SplashScreen.d.ts.map +1 -0
  1285. package/lib/shell/SplashScreen.js +28 -0
  1286. package/lib/shell/SplashScreen.js.map +1 -0
  1287. package/lib/shell/VertesiaShell.d.ts +16 -0
  1288. package/lib/shell/VertesiaShell.d.ts.map +1 -0
  1289. package/lib/shell/VertesiaShell.js +11 -0
  1290. package/lib/shell/VertesiaShell.js.map +1 -0
  1291. package/lib/shell/apps/AppInstallationProvider.d.ts +12 -0
  1292. package/lib/shell/apps/AppInstallationProvider.d.ts.map +1 -0
  1293. package/lib/shell/apps/AppInstallationProvider.js +13 -0
  1294. package/lib/shell/apps/AppInstallationProvider.js.map +1 -0
  1295. package/lib/shell/apps/AppProjectSelector.d.ts +12 -0
  1296. package/lib/shell/apps/AppProjectSelector.d.ts.map +1 -0
  1297. package/lib/shell/apps/AppProjectSelector.js +36 -0
  1298. package/lib/shell/apps/AppProjectSelector.js.map +1 -0
  1299. package/lib/shell/apps/StandaloneApp.d.ts +23 -0
  1300. package/lib/shell/apps/StandaloneApp.d.ts.map +1 -0
  1301. package/lib/shell/apps/StandaloneApp.js +90 -0
  1302. package/lib/shell/apps/StandaloneApp.js.map +1 -0
  1303. package/lib/shell/apps/index.d.ts +4 -0
  1304. package/lib/shell/apps/index.d.ts.map +1 -0
  1305. package/lib/shell/apps/index.js +4 -0
  1306. package/lib/shell/apps/index.js.map +1 -0
  1307. package/lib/shell/index.d.ts +8 -0
  1308. package/lib/shell/index.d.ts.map +1 -0
  1309. package/lib/shell/index.js +8 -0
  1310. package/lib/shell/index.js.map +1 -0
  1311. package/lib/shell/login/InviteAcceptModal.d.ts +2 -0
  1312. package/lib/shell/login/InviteAcceptModal.d.ts.map +1 -0
  1313. package/lib/shell/login/InviteAcceptModal.js +69 -0
  1314. package/lib/shell/login/InviteAcceptModal.js.map +1 -0
  1315. package/lib/shell/login/PreviewIcon.d.ts +6 -0
  1316. package/lib/shell/login/PreviewIcon.d.ts.map +1 -0
  1317. package/lib/shell/login/PreviewIcon.js +23 -0
  1318. package/lib/shell/login/PreviewIcon.js.map +1 -0
  1319. package/lib/shell/login/SignInAuthPending.d.ts +8 -0
  1320. package/lib/shell/login/SignInAuthPending.d.ts.map +1 -0
  1321. package/lib/shell/login/SignInAuthPending.js +14 -0
  1322. package/lib/shell/login/SignInAuthPending.js.map +1 -0
  1323. package/lib/shell/login/SignInEmailStep.d.ts +9 -0
  1324. package/lib/shell/login/SignInEmailStep.d.ts.map +1 -0
  1325. package/lib/shell/login/SignInEmailStep.js +46 -0
  1326. package/lib/shell/login/SignInEmailStep.js.map +1 -0
  1327. package/lib/shell/login/SignInIcons.d.ts +14 -0
  1328. package/lib/shell/login/SignInIcons.d.ts.map +1 -0
  1329. package/lib/shell/login/SignInIcons.js +26 -0
  1330. package/lib/shell/login/SignInIcons.js.map +1 -0
  1331. package/lib/shell/login/SignInModal.d.ts +7 -0
  1332. package/lib/shell/login/SignInModal.d.ts.map +1 -0
  1333. package/lib/shell/login/SignInModal.js +7 -0
  1334. package/lib/shell/login/SignInModal.js.map +1 -0
  1335. package/lib/shell/login/SignInPrimitives.d.ts +140 -0
  1336. package/lib/shell/login/SignInPrimitives.d.ts.map +1 -0
  1337. package/lib/shell/login/SignInPrimitives.js +119 -0
  1338. package/lib/shell/login/SignInPrimitives.js.map +1 -0
  1339. package/lib/shell/login/SignInProvidersStep.d.ts +10 -0
  1340. package/lib/shell/login/SignInProvidersStep.d.ts.map +1 -0
  1341. package/lib/shell/login/SignInProvidersStep.js +14 -0
  1342. package/lib/shell/login/SignInProvidersStep.js.map +1 -0
  1343. package/lib/shell/login/SignInReturningStep.d.ts +10 -0
  1344. package/lib/shell/login/SignInReturningStep.d.ts.map +1 -0
  1345. package/lib/shell/login/SignInReturningStep.js +21 -0
  1346. package/lib/shell/login/SignInReturningStep.js.map +1 -0
  1347. package/lib/shell/login/SignInTenantBlockedStep.d.ts +9 -0
  1348. package/lib/shell/login/SignInTenantBlockedStep.d.ts.map +1 -0
  1349. package/lib/shell/login/SignInTenantBlockedStep.js +17 -0
  1350. package/lib/shell/login/SignInTenantBlockedStep.js.map +1 -0
  1351. package/lib/shell/login/SignInTenantStep.d.ts +11 -0
  1352. package/lib/shell/login/SignInTenantStep.d.ts.map +1 -0
  1353. package/lib/shell/login/SignInTenantStep.js +24 -0
  1354. package/lib/shell/login/SignInTenantStep.js.map +1 -0
  1355. package/lib/shell/login/SignInWithProviderButton.d.ts +13 -0
  1356. package/lib/shell/login/SignInWithProviderButton.d.ts.map +1 -0
  1357. package/lib/shell/login/SignInWithProviderButton.js +23 -0
  1358. package/lib/shell/login/SignInWithProviderButton.js.map +1 -0
  1359. package/lib/shell/login/SigninScreen.d.ts +11 -0
  1360. package/lib/shell/login/SigninScreen.d.ts.map +1 -0
  1361. package/lib/shell/login/SigninScreen.js +155 -0
  1362. package/lib/shell/login/SigninScreen.js.map +1 -0
  1363. package/lib/shell/login/SignupForm.d.ts +8 -0
  1364. package/lib/shell/login/SignupForm.d.ts.map +1 -0
  1365. package/lib/shell/login/SignupForm.js +91 -0
  1366. package/lib/shell/login/SignupForm.js.map +1 -0
  1367. package/lib/shell/login/TerminalLogin.d.ts +2 -0
  1368. package/lib/shell/login/TerminalLogin.d.ts.map +1 -0
  1369. package/lib/shell/login/TerminalLogin.js +216 -0
  1370. package/lib/shell/login/TerminalLogin.js.map +1 -0
  1371. package/lib/shell/login/UserInfo.d.ts +6 -0
  1372. package/lib/shell/login/UserInfo.d.ts.map +1 -0
  1373. package/lib/shell/login/UserInfo.js +44 -0
  1374. package/lib/shell/login/UserInfo.js.map +1 -0
  1375. package/lib/shell/login/UserSessionMenu.d.ts +9 -0
  1376. package/lib/shell/login/UserSessionMenu.d.ts.map +1 -0
  1377. package/lib/shell/login/UserSessionMenu.js +36 -0
  1378. package/lib/shell/login/UserSessionMenu.js.map +1 -0
  1379. package/lib/shell/login/signInUtils.d.ts +45 -0
  1380. package/lib/shell/login/signInUtils.d.ts.map +1 -0
  1381. package/lib/shell/login/signInUtils.js +205 -0
  1382. package/lib/shell/login/signInUtils.js.map +1 -0
  1383. package/lib/shell/utils.d.ts.map +1 -0
  1384. package/lib/shell/utils.js +8 -0
  1385. package/lib/shell/utils.js.map +1 -0
  1386. package/lib/vertesia-ui-core.js +1 -1
  1387. package/lib/vertesia-ui-core.js.map +1 -1
  1388. package/lib/vertesia-ui-env.js +1 -1
  1389. package/lib/vertesia-ui-env.js.map +1 -1
  1390. package/lib/vertesia-ui-features.js +1 -1
  1391. package/lib/vertesia-ui-features.js.map +1 -1
  1392. package/lib/vertesia-ui-i18n.js +1 -1
  1393. package/lib/vertesia-ui-i18n.js.map +1 -1
  1394. package/lib/vertesia-ui-layout.js +1 -1
  1395. package/lib/vertesia-ui-layout.js.map +1 -1
  1396. package/lib/vertesia-ui-router.js +1 -1
  1397. package/lib/vertesia-ui-router.js.map +1 -1
  1398. package/lib/vertesia-ui-session.js +1 -1
  1399. package/lib/vertesia-ui-session.js.map +1 -1
  1400. package/lib/vertesia-ui-shell.js +1 -1
  1401. package/lib/vertesia-ui-shell.js.map +1 -1
  1402. package/lib/vertesia-ui-widgets.js +1 -1
  1403. package/lib/vertesia-ui-widgets.js.map +1 -1
  1404. package/lib/widgets/Progress.d.ts +6 -0
  1405. package/lib/widgets/Progress.d.ts.map +1 -0
  1406. package/lib/widgets/Progress.js.map +1 -0
  1407. package/lib/widgets/SvgIcon.d.ts +7 -0
  1408. package/lib/widgets/SvgIcon.d.ts.map +1 -0
  1409. package/lib/widgets/SvgIcon.js +36 -0
  1410. package/lib/widgets/SvgIcon.js.map +1 -0
  1411. package/lib/widgets/form/Form.d.ts +22 -0
  1412. package/lib/widgets/form/Form.d.ts.map +1 -0
  1413. package/lib/widgets/form/Form.js +105 -0
  1414. package/lib/widgets/form/Form.js.map +1 -0
  1415. package/lib/widgets/form/FormContext.d.ts +21 -0
  1416. package/lib/widgets/form/FormContext.d.ts.map +1 -0
  1417. package/lib/widgets/form/FormContext.js +31 -0
  1418. package/lib/widgets/form/FormContext.js.map +1 -0
  1419. package/lib/widgets/form/ManagedObject.d.ts +81 -0
  1420. package/lib/widgets/form/ManagedObject.d.ts.map +1 -0
  1421. package/lib/widgets/form/ManagedObject.js +284 -0
  1422. package/lib/widgets/form/ManagedObject.js.map +1 -0
  1423. package/lib/widgets/form/fields.d.ts +16 -0
  1424. package/lib/widgets/form/fields.d.ts.map +1 -0
  1425. package/lib/widgets/form/fields.js +12 -0
  1426. package/lib/widgets/form/fields.js.map +1 -0
  1427. package/lib/widgets/form/index.d.ts +7 -0
  1428. package/lib/widgets/form/index.d.ts.map +1 -0
  1429. package/lib/widgets/form/index.js +7 -0
  1430. package/lib/widgets/form/index.js.map +1 -0
  1431. package/lib/widgets/form/inputs.d.ts +8 -0
  1432. package/lib/widgets/form/inputs.d.ts.map +1 -0
  1433. package/lib/widgets/form/inputs.js +38 -0
  1434. package/lib/widgets/form/inputs.js.map +1 -0
  1435. package/lib/widgets/form/schema.d.ts +47 -0
  1436. package/lib/widgets/form/schema.d.ts.map +1 -0
  1437. package/lib/widgets/form/schema.js +204 -0
  1438. package/lib/widgets/form/schema.js.map +1 -0
  1439. package/lib/widgets/index.d.ts +11 -0
  1440. package/lib/widgets/index.d.ts.map +1 -0
  1441. package/lib/widgets/index.js +11 -0
  1442. package/lib/widgets/index.js.map +1 -0
  1443. package/lib/widgets/json-view/JSONCode.d.ts +7 -0
  1444. package/lib/widgets/json-view/JSONCode.d.ts.map +1 -0
  1445. package/lib/widgets/json-view/JSONCode.js +53 -0
  1446. package/lib/widgets/json-view/JSONCode.js.map +1 -0
  1447. package/lib/widgets/json-view/JSONDisplay.d.ts +7 -0
  1448. package/lib/widgets/json-view/JSONDisplay.d.ts.map +1 -0
  1449. package/lib/widgets/json-view/JSONDisplay.js +27 -0
  1450. package/lib/widgets/json-view/JSONDisplay.js.map +1 -0
  1451. package/lib/widgets/json-view/JSONEditor.d.ts +28 -0
  1452. package/lib/widgets/json-view/JSONEditor.d.ts.map +1 -0
  1453. package/lib/widgets/json-view/JSONEditor.js +53 -0
  1454. package/lib/widgets/json-view/JSONEditor.js.map +1 -0
  1455. package/lib/widgets/json-view/JSONSwitcher.d.ts +6 -0
  1456. package/lib/widgets/json-view/JSONSwitcher.d.ts.map +1 -0
  1457. package/lib/widgets/json-view/JSONSwitcher.js +6 -0
  1458. package/lib/widgets/json-view/JSONSwitcher.js.map +1 -0
  1459. package/lib/widgets/json-view/JSONTable.d.ts +8 -0
  1460. package/lib/widgets/json-view/JSONTable.d.ts.map +1 -0
  1461. package/lib/widgets/json-view/JSONTable.js +36 -0
  1462. package/lib/widgets/json-view/JSONTable.js.map +1 -0
  1463. package/lib/widgets/json-view/JSONView.d.ts +7 -0
  1464. package/lib/widgets/json-view/JSONView.d.ts.map +1 -0
  1465. package/lib/widgets/json-view/JSONView.js +117 -0
  1466. package/lib/widgets/json-view/JSONView.js.map +1 -0
  1467. package/lib/widgets/json-view/index.d.ts +8 -0
  1468. package/lib/widgets/json-view/index.d.ts.map +1 -0
  1469. package/lib/widgets/json-view/index.js +7 -0
  1470. package/lib/widgets/json-view/index.js.map +1 -0
  1471. package/lib/widgets/json-view/types.d.ts.map +1 -0
  1472. package/lib/widgets/json-view/types.js.map +1 -0
  1473. package/lib/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -0
  1474. package/lib/widgets/markdown/ArtifactContentRenderer.js +230 -0
  1475. package/lib/widgets/markdown/ArtifactContentRenderer.js.map +1 -0
  1476. package/lib/widgets/markdown/CodeBlockContext.d.ts +21 -0
  1477. package/lib/widgets/markdown/CodeBlockContext.d.ts.map +1 -0
  1478. package/lib/widgets/markdown/CodeBlockContext.js.map +1 -0
  1479. package/lib/widgets/markdown/CodeBlockPlaceholder.d.ts +42 -0
  1480. package/lib/widgets/markdown/CodeBlockPlaceholder.d.ts.map +1 -0
  1481. package/lib/widgets/markdown/CodeBlockPlaceholder.js +57 -0
  1482. package/lib/widgets/markdown/CodeBlockPlaceholder.js.map +1 -0
  1483. package/lib/widgets/markdown/CodeBlockRendering.d.ts +23 -0
  1484. package/lib/widgets/markdown/CodeBlockRendering.d.ts.map +1 -0
  1485. package/lib/widgets/markdown/CodeBlockRendering.js +38 -0
  1486. package/lib/widgets/markdown/CodeBlockRendering.js.map +1 -0
  1487. package/lib/widgets/markdown/MarkdownFigure.d.ts +15 -0
  1488. package/lib/widgets/markdown/MarkdownFigure.d.ts.map +1 -0
  1489. package/lib/widgets/markdown/MarkdownFigure.js +40 -0
  1490. package/lib/widgets/markdown/MarkdownFigure.js.map +1 -0
  1491. package/lib/widgets/markdown/MarkdownImage.d.ts +16 -0
  1492. package/lib/widgets/markdown/MarkdownImage.d.ts.map +1 -0
  1493. package/lib/widgets/markdown/MarkdownImage.js +41 -0
  1494. package/lib/widgets/markdown/MarkdownImage.js.map +1 -0
  1495. package/lib/widgets/markdown/MarkdownLink.d.ts +17 -0
  1496. package/lib/widgets/markdown/MarkdownLink.d.ts.map +1 -0
  1497. package/lib/widgets/markdown/MarkdownLink.js +46 -0
  1498. package/lib/widgets/markdown/MarkdownLink.js.map +1 -0
  1499. package/lib/widgets/markdown/MarkdownRenderer.d.ts +30 -0
  1500. package/lib/widgets/markdown/MarkdownRenderer.d.ts.map +1 -0
  1501. package/lib/widgets/markdown/MarkdownRenderer.js +162 -0
  1502. package/lib/widgets/markdown/MarkdownRenderer.js.map +1 -0
  1503. package/lib/widgets/markdown/MermaidDiagram.d.ts +28 -0
  1504. package/lib/widgets/markdown/MermaidDiagram.d.ts.map +1 -0
  1505. package/lib/widgets/markdown/MermaidDiagram.js +150 -0
  1506. package/lib/widgets/markdown/MermaidDiagram.js.map +1 -0
  1507. package/lib/widgets/markdown/codeBlockHandlers.d.ts +58 -0
  1508. package/lib/widgets/markdown/codeBlockHandlers.d.ts.map +1 -0
  1509. package/lib/widgets/markdown/codeBlockHandlers.js +285 -0
  1510. package/lib/widgets/markdown/codeBlockHandlers.js.map +1 -0
  1511. package/lib/widgets/markdown/index.d.ts +13 -0
  1512. package/lib/widgets/markdown/index.d.ts.map +1 -0
  1513. package/lib/widgets/markdown/index.js +13 -0
  1514. package/lib/widgets/markdown/index.js.map +1 -0
  1515. package/lib/widgets/markdown/normalizeCustomSchemeLinks.d.ts.map +1 -0
  1516. package/lib/widgets/markdown/normalizeCustomSchemeLinks.js +70 -0
  1517. package/lib/widgets/markdown/normalizeCustomSchemeLinks.js.map +1 -0
  1518. package/lib/widgets/markdown/normalizeDirectives.d.ts.map +1 -0
  1519. package/lib/widgets/markdown/normalizeDirectives.js +58 -0
  1520. package/lib/widgets/markdown/normalizeDirectives.js.map +1 -0
  1521. package/lib/widgets/markdown/preprocessMathDelimiters.d.ts.map +1 -0
  1522. package/lib/widgets/markdown/preprocessMathDelimiters.js +222 -0
  1523. package/lib/widgets/markdown/preprocessMathDelimiters.js.map +1 -0
  1524. package/lib/widgets/markdown/remarkDirectiveHandler.d.ts +15 -0
  1525. package/lib/widgets/markdown/remarkDirectiveHandler.d.ts.map +1 -0
  1526. package/lib/widgets/markdown/remarkDirectiveHandler.js +96 -0
  1527. package/lib/widgets/markdown/remarkDirectiveHandler.js.map +1 -0
  1528. package/lib/widgets/markdown/useArtifactContent.d.ts.map +1 -0
  1529. package/lib/widgets/markdown/useArtifactContent.js +173 -0
  1530. package/lib/widgets/markdown/useArtifactContent.js.map +1 -0
  1531. package/lib/widgets/markdown/useResolvedUrl.d.ts.map +1 -0
  1532. package/lib/widgets/markdown/useResolvedUrl.js +181 -0
  1533. package/lib/widgets/markdown/useResolvedUrl.js.map +1 -0
  1534. package/lib/widgets/monacoEditor/MonacoEditor.d.ts +41 -0
  1535. package/lib/widgets/monacoEditor/MonacoEditor.d.ts.map +1 -0
  1536. package/lib/widgets/monacoEditor/MonacoEditor.js +168 -0
  1537. package/lib/widgets/monacoEditor/MonacoEditor.js.map +1 -0
  1538. package/lib/widgets/monacoEditor/foldingProviders.d.ts.map +1 -0
  1539. package/lib/widgets/monacoEditor/foldingProviders.js +138 -0
  1540. package/lib/widgets/monacoEditor/foldingProviders.js.map +1 -0
  1541. package/lib/widgets/monacoEditor/index.d.ts +3 -0
  1542. package/lib/widgets/monacoEditor/index.d.ts.map +1 -0
  1543. package/lib/widgets/monacoEditor/index.js +2 -0
  1544. package/lib/widgets/monacoEditor/index.js.map +1 -0
  1545. package/lib/widgets/properties/PropertiesView.d.ts +11 -0
  1546. package/lib/widgets/properties/PropertiesView.d.ts.map +1 -0
  1547. package/lib/widgets/properties/PropertiesView.js +7 -0
  1548. package/lib/widgets/properties/PropertiesView.js.map +1 -0
  1549. package/lib/widgets/properties/index.d.ts +2 -0
  1550. package/lib/widgets/properties/index.d.ts.map +1 -0
  1551. package/lib/widgets/properties/index.js +2 -0
  1552. package/lib/widgets/properties/index.js.map +1 -0
  1553. package/lib/widgets/schema-editor/ManagedSchema.d.ts +75 -0
  1554. package/lib/widgets/schema-editor/ManagedSchema.d.ts.map +1 -0
  1555. package/lib/widgets/schema-editor/ManagedSchema.js +303 -0
  1556. package/lib/widgets/schema-editor/ManagedSchema.js.map +1 -0
  1557. package/lib/widgets/schema-editor/editor/Editable.d.ts +40 -0
  1558. package/lib/widgets/schema-editor/editor/Editable.d.ts.map +1 -0
  1559. package/lib/widgets/schema-editor/editor/Editable.js +109 -0
  1560. package/lib/widgets/schema-editor/editor/Editable.js.map +1 -0
  1561. package/lib/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +8 -0
  1562. package/lib/widgets/schema-editor/editor/EditableSchemaProperty.d.ts.map +1 -0
  1563. package/lib/widgets/schema-editor/editor/EditableSchemaProperty.js +8 -0
  1564. package/lib/widgets/schema-editor/editor/EditableSchemaProperty.js.map +1 -0
  1565. package/lib/widgets/schema-editor/editor/PropertyEditor.d.ts +6 -0
  1566. package/lib/widgets/schema-editor/editor/PropertyEditor.d.ts.map +1 -0
  1567. package/lib/widgets/schema-editor/editor/PropertyEditor.js +85 -0
  1568. package/lib/widgets/schema-editor/editor/PropertyEditor.js.map +1 -0
  1569. package/lib/widgets/schema-editor/editor/PropertyViewer.d.ts +4 -0
  1570. package/lib/widgets/schema-editor/editor/PropertyViewer.d.ts.map +1 -0
  1571. package/lib/widgets/schema-editor/editor/PropertyViewer.js +7 -0
  1572. package/lib/widgets/schema-editor/editor/PropertyViewer.js.map +1 -0
  1573. package/lib/widgets/schema-editor/editor/SchemaContext.d.ts +4 -0
  1574. package/lib/widgets/schema-editor/editor/SchemaContext.d.ts.map +1 -0
  1575. package/lib/widgets/schema-editor/editor/SchemaContext.js +9 -0
  1576. package/lib/widgets/schema-editor/editor/SchemaContext.js.map +1 -0
  1577. package/lib/widgets/schema-editor/editor/SchemaEditor.d.ts +9 -0
  1578. package/lib/widgets/schema-editor/editor/SchemaEditor.d.ts.map +1 -0
  1579. package/lib/widgets/schema-editor/editor/SchemaEditor.js +81 -0
  1580. package/lib/widgets/schema-editor/editor/SchemaEditor.js.map +1 -0
  1581. package/lib/widgets/schema-editor/index.d.ts +7 -0
  1582. package/lib/widgets/schema-editor/index.d.ts.map +1 -0
  1583. package/lib/widgets/schema-editor/index.js +7 -0
  1584. package/lib/widgets/schema-editor/index.js.map +1 -0
  1585. package/lib/widgets/schema-editor/json-schema4-utils.d.ts +16 -0
  1586. package/lib/widgets/schema-editor/json-schema4-utils.d.ts.map +1 -0
  1587. package/lib/widgets/schema-editor/json-schema4-utils.js +188 -0
  1588. package/lib/widgets/schema-editor/json-schema4-utils.js.map +1 -0
  1589. package/lib/widgets/schema-editor/type-signature.d.ts.map +1 -0
  1590. package/lib/widgets/schema-editor/type-signature.js.map +1 -0
  1591. package/lib/widgets/upload/DropZone.d.ts +41 -0
  1592. package/lib/widgets/upload/DropZone.d.ts.map +1 -0
  1593. package/lib/widgets/upload/DropZone.js +181 -0
  1594. package/lib/widgets/upload/DropZone.js.map +1 -0
  1595. package/lib/widgets/upload/UploadResultCategory.d.ts +26 -0
  1596. package/lib/widgets/upload/UploadResultCategory.d.ts.map +1 -0
  1597. package/lib/widgets/upload/UploadResultCategory.js +22 -0
  1598. package/lib/widgets/upload/UploadResultCategory.js.map +1 -0
  1599. package/lib/widgets/upload/UploadSummary.d.ts +38 -0
  1600. package/lib/widgets/upload/UploadSummary.d.ts.map +1 -0
  1601. package/lib/widgets/upload/UploadSummary.js +32 -0
  1602. package/lib/widgets/upload/UploadSummary.js.map +1 -0
  1603. package/lib/widgets/upload/index.d.ts.map +1 -0
  1604. package/lib/widgets/upload/index.js.map +1 -0
  1605. package/lib/widgets/xml-viewer/components/Attributes/index.d.ts +6 -0
  1606. package/lib/widgets/xml-viewer/components/Attributes/index.d.ts.map +1 -0
  1607. package/lib/widgets/xml-viewer/components/Attributes/index.js.map +1 -0
  1608. package/lib/widgets/xml-viewer/components/CDataTag/index.d.ts +8 -0
  1609. package/lib/widgets/xml-viewer/components/CDataTag/index.d.ts.map +1 -0
  1610. package/lib/widgets/xml-viewer/components/CDataTag/index.js.map +1 -0
  1611. package/lib/widgets/xml-viewer/components/CollapseIcon/index.d.ts.map +1 -0
  1612. package/lib/widgets/xml-viewer/components/CollapseIcon/index.js +11 -0
  1613. package/lib/widgets/xml-viewer/components/CollapseIcon/index.js.map +1 -0
  1614. package/lib/widgets/xml-viewer/components/CommentTag/index.d.ts +9 -0
  1615. package/lib/widgets/xml-viewer/components/CommentTag/index.d.ts.map +1 -0
  1616. package/lib/widgets/xml-viewer/components/CommentTag/index.js.map +1 -0
  1617. package/lib/widgets/xml-viewer/components/DeclarationTag/index.d.ts +8 -0
  1618. package/lib/widgets/xml-viewer/components/DeclarationTag/index.d.ts.map +1 -0
  1619. package/lib/widgets/xml-viewer/components/DeclarationTag/index.js.map +1 -0
  1620. package/lib/widgets/xml-viewer/components/Elements/index.d.ts +8 -0
  1621. package/lib/widgets/xml-viewer/components/Elements/index.d.ts.map +1 -0
  1622. package/lib/widgets/xml-viewer/components/Elements/index.js.map +1 -0
  1623. package/lib/widgets/xml-viewer/components/InvalidXml/index.d.ts +2 -0
  1624. package/lib/widgets/xml-viewer/components/InvalidXml/index.d.ts.map +1 -0
  1625. package/lib/widgets/xml-viewer/components/InvalidXml/index.js.map +1 -0
  1626. package/lib/widgets/xml-viewer/components/Tag/index.d.ts +13 -0
  1627. package/lib/widgets/xml-viewer/components/Tag/index.d.ts.map +1 -0
  1628. package/lib/widgets/xml-viewer/components/Tag/index.js.map +1 -0
  1629. package/lib/widgets/xml-viewer/components/TextElement/index.d.ts +8 -0
  1630. package/lib/widgets/xml-viewer/components/TextElement/index.d.ts.map +1 -0
  1631. package/lib/widgets/xml-viewer/components/TextElement/index.js.map +1 -0
  1632. package/lib/widgets/xml-viewer/components/XMLViewer.d.ts +3 -0
  1633. package/lib/widgets/xml-viewer/components/XMLViewer.d.ts.map +1 -0
  1634. package/lib/widgets/xml-viewer/components/XMLViewer.js.map +1 -0
  1635. package/lib/widgets/xml-viewer/components/types.d.ts.map +1 -0
  1636. package/lib/widgets/xml-viewer/components/types.js.map +1 -0
  1637. package/lib/widgets/xml-viewer/constants/index.d.ts.map +1 -0
  1638. package/lib/widgets/xml-viewer/constants/index.js.map +1 -0
  1639. package/lib/widgets/xml-viewer/context/xml-viewer-context.d.ts +4 -0
  1640. package/lib/widgets/xml-viewer/context/xml-viewer-context.d.ts.map +1 -0
  1641. package/lib/widgets/xml-viewer/context/xml-viewer-context.js.map +1 -0
  1642. package/lib/widgets/xml-viewer/helpers/index.d.ts +13 -0
  1643. package/lib/widgets/xml-viewer/helpers/index.d.ts.map +1 -0
  1644. package/lib/widgets/xml-viewer/helpers/index.js +38 -0
  1645. package/lib/widgets/xml-viewer/helpers/index.js.map +1 -0
  1646. package/lib/widgets/xml-viewer/hooks/useCollapsible.d.ts.map +1 -0
  1647. package/lib/widgets/xml-viewer/hooks/useCollapsible.js.map +1 -0
  1648. package/lib/widgets/xml-viewer/hooks/useXMLViewer.d.ts.map +1 -0
  1649. package/lib/widgets/xml-viewer/hooks/useXMLViewer.js +33 -0
  1650. package/lib/widgets/xml-viewer/hooks/useXMLViewer.js.map +1 -0
  1651. package/lib/widgets/xml-viewer/index.d.ts +3 -0
  1652. package/lib/widgets/xml-viewer/index.d.ts.map +1 -0
  1653. package/lib/widgets/xml-viewer/index.js +3 -0
  1654. package/lib/widgets/xml-viewer/index.js.map +1 -0
  1655. package/lib/widgets/xml-viewer/types/index.d.ts +16 -0
  1656. package/lib/widgets/xml-viewer/types/index.d.ts.map +1 -0
  1657. package/lib/widgets/xml-viewer/types/index.js.map +1 -0
  1658. package/llms.txt +387 -484
  1659. package/package.json +96 -126
  1660. package/src/__tests__/a11y.test.tsx +398 -0
  1661. package/src/__tests__/axe-helper.ts +23 -0
  1662. package/src/__tests__/contrast.test.ts +165 -0
  1663. package/src/__tests__/setup.ts +74 -0
  1664. package/src/__tests__/test-modules.d.ts +13 -0
  1665. package/src/__tests__/test-utils.tsx +15 -0
  1666. package/src/__tests__/tsconfig.json +19 -0
  1667. package/src/__tests__/vitest-axe.d.ts +20 -0
  1668. package/src/core/components/Avatar.tsx +38 -29
  1669. package/src/core/components/Center.tsx +5 -7
  1670. package/src/core/components/ComboBox.tsx +167 -83
  1671. package/src/core/components/Divider.tsx +2 -5
  1672. package/src/core/components/EmptyCollection.tsx +5 -6
  1673. package/src/core/components/FileUpload.tsx +54 -21
  1674. package/src/core/components/FormItem.tsx +125 -16
  1675. package/src/core/components/InputList.tsx +63 -36
  1676. package/src/core/components/Link.tsx +8 -5
  1677. package/src/core/components/MenuList.tsx +29 -24
  1678. package/src/core/components/NumberInput.tsx +52 -41
  1679. package/src/core/components/Overlay.tsx +86 -77
  1680. package/src/core/components/Portal.tsx +7 -7
  1681. package/src/core/components/SelectList.tsx +44 -26
  1682. package/src/core/components/SidePanel.tsx +45 -20
  1683. package/src/core/components/Spinner.tsx +34 -21
  1684. package/src/core/components/TagsInput.tsx +54 -48
  1685. package/src/core/components/index.ts +28 -27
  1686. package/src/core/components/libs/utils.tsx +4 -4
  1687. package/src/core/components/libs/visuallyHidden.tsx +12 -12
  1688. package/src/core/components/popup/Popup.tsx +60 -29
  1689. package/src/core/components/popup/PopupController.ts +36 -37
  1690. package/src/core/components/popup/index.ts +3 -3
  1691. package/src/core/components/popup/position.ts +56 -34
  1692. package/src/core/components/popup/utils.ts +5 -3
  1693. package/src/core/components/shadcn/LanguageSwitcher.tsx +61 -0
  1694. package/src/core/components/shadcn/MessageBox.tsx +119 -57
  1695. package/src/core/components/shadcn/Panel.tsx +89 -40
  1696. package/src/core/components/shadcn/badge.tsx +74 -92
  1697. package/src/core/components/shadcn/breadcrumb.tsx +158 -180
  1698. package/src/core/components/shadcn/button.tsx +188 -143
  1699. package/src/core/components/shadcn/calendar.tsx +13 -23
  1700. package/src/core/components/shadcn/card.tsx +41 -76
  1701. package/src/core/components/shadcn/checkbox.tsx +20 -22
  1702. package/src/core/components/shadcn/collaspible.tsx +8 -24
  1703. package/src/core/components/shadcn/command.tsx +124 -157
  1704. package/src/core/components/shadcn/dropdown.tsx +283 -290
  1705. package/src/core/components/shadcn/filters/DynamicLabel.tsx +36 -35
  1706. package/src/core/components/shadcn/filters/animateChangeInHeight.tsx +5 -8
  1707. package/src/core/components/shadcn/filters/comboBox/DateCombobox.tsx +28 -36
  1708. package/src/core/components/shadcn/filters/comboBox/SelectCombobox.tsx +41 -37
  1709. package/src/core/components/shadcn/filters/comboBox/StringListCombobox.tsx +13 -22
  1710. package/src/core/components/shadcn/filters/comboBox/TextCombobox.tsx +12 -14
  1711. package/src/core/components/shadcn/filters/comboBox/comboBox.tsx +2 -2
  1712. package/src/core/components/shadcn/filters/filter/SelectFilter.tsx +143 -139
  1713. package/src/core/components/shadcn/filters/filter/StringListFilter.tsx +48 -48
  1714. package/src/core/components/shadcn/filters/filter/TextFilter.tsx +56 -60
  1715. package/src/core/components/shadcn/filters/filter/dateFilter.tsx +235 -228
  1716. package/src/core/components/shadcn/filters/filter-styles.ts +1 -1
  1717. package/src/core/components/shadcn/filters/filterBar.tsx +347 -329
  1718. package/src/core/components/shadcn/filters/filters.tsx +62 -63
  1719. package/src/core/components/shadcn/filters/types.ts +25 -25
  1720. package/src/core/components/shadcn/heading.tsx +15 -15
  1721. package/src/core/components/shadcn/index.ts +23 -22
  1722. package/src/core/components/shadcn/input.tsx +80 -76
  1723. package/src/core/components/shadcn/label.tsx +20 -25
  1724. package/src/core/components/shadcn/modal/ConfirmModal.tsx +21 -30
  1725. package/src/core/components/shadcn/modal/DeleteModal.tsx +16 -12
  1726. package/src/core/components/shadcn/modal/dialog.tsx +73 -97
  1727. package/src/core/components/shadcn/modal/index.ts +3 -3
  1728. package/src/core/components/shadcn/popover.tsx +96 -93
  1729. package/src/core/components/shadcn/radioGroup.tsx +80 -81
  1730. package/src/core/components/shadcn/resizeable.tsx +46 -44
  1731. package/src/core/components/shadcn/selectBox.tsx +216 -121
  1732. package/src/core/components/shadcn/separator.tsx +15 -19
  1733. package/src/core/components/shadcn/slider.test.tsx +14 -0
  1734. package/src/core/components/shadcn/slider.tsx +78 -0
  1735. package/src/core/components/shadcn/switch.tsx +55 -48
  1736. package/src/core/components/shadcn/tabs.tsx +316 -292
  1737. package/src/core/components/shadcn/text.tsx +24 -24
  1738. package/src/core/components/shadcn/textarea.tsx +55 -55
  1739. package/src/core/components/shadcn/theme/ThemeProvider.tsx +52 -58
  1740. package/src/core/components/shadcn/theme/ThemeSwitcher.tsx +45 -31
  1741. package/src/core/components/shadcn/tooltip.tsx +85 -69
  1742. package/src/core/components/styles.ts +7 -6
  1743. package/src/core/components/table/index.tsx +90 -31
  1744. package/src/core/components/toast/NotificationPanel.tsx +31 -31
  1745. package/src/core/components/toast/ToastContext.ts +3 -3
  1746. package/src/core/components/toast/ToastProps.ts +1 -1
  1747. package/src/core/components/toast/ToastProvider.tsx +20 -13
  1748. package/src/core/components/toast/index.ts +2 -2
  1749. package/src/core/hooks/CompositeState.tsx +28 -33
  1750. package/src/core/hooks/PortalContainerProvider.tsx +8 -14
  1751. package/src/core/hooks/SharedState.tsx +9 -9
  1752. package/src/core/hooks/index.ts +15 -15
  1753. package/src/core/hooks/useClickOutside.tsx +11 -7
  1754. package/src/core/hooks/useCopyToClipboard.tsx +21 -21
  1755. package/src/core/hooks/useDarkMode.ts +2 -2
  1756. package/src/core/hooks/useDebounce.tsx +1 -1
  1757. package/src/core/hooks/useEventSource.ts +40 -14
  1758. package/src/core/hooks/useFetch.ts +41 -27
  1759. package/src/core/hooks/useFlag.tsx +4 -4
  1760. package/src/core/hooks/useIntersectionObserver.tsx +22 -13
  1761. package/src/core/hooks/useIsFistRendering.ts +5 -4
  1762. package/src/core/hooks/useSafeLayoutEffect.ts +3 -3
  1763. package/src/core/hooks/useScrollableSearch.tsx +64 -47
  1764. package/src/core/hooks/useSharedValue.ts +3 -5
  1765. package/src/core/index.ts +3 -3
  1766. package/src/core/utils/a11y.ts +23 -0
  1767. package/src/core/utils/cn.ts +4 -4
  1768. package/src/core/utils/errorMessage.ts +20 -0
  1769. package/src/core/utils/index.ts +4 -1
  1770. package/src/core/utils/textarea.ts +15 -0
  1771. package/src/css/base.css +24 -24
  1772. package/src/css/color.css +129 -131
  1773. package/src/css/custom-tooltips.css +54 -47
  1774. package/src/css/theme.css +82 -84
  1775. package/src/css/typography.css +8 -7
  1776. package/src/css/utilities.css +137 -67
  1777. package/src/env/index.ts +65 -42
  1778. package/src/features/activity-doc/ActivityDoc.tsx +77 -71
  1779. package/src/features/activity-doc/index.ts +1 -1
  1780. package/src/features/agent/PayloadBuilder.tsx +98 -55
  1781. package/src/features/agent/chat/AgentChart.tsx +50 -42
  1782. package/src/features/agent/chat/AgentChatFixtureReplay.test.tsx +124 -0
  1783. package/src/features/agent/chat/AgentChatFixtureReplay.tsx +248 -0
  1784. package/src/features/agent/chat/AgentChatPlaybackControls.test.tsx +96 -0
  1785. package/src/features/agent/chat/AgentChatPlaybackControls.tsx +215 -0
  1786. package/src/features/agent/chat/AgentRequestInputOverlay.tsx +59 -0
  1787. package/src/features/agent/chat/AgentRightPanel.tsx +409 -185
  1788. package/src/features/agent/chat/AnimatedThinkingDots.tsx +91 -82
  1789. package/src/features/agent/chat/ArtifactsTab.tsx +347 -110
  1790. package/src/features/agent/chat/AskUserWidget.tsx +221 -51
  1791. package/src/features/agent/chat/BrowserUseWidget.tsx +255 -0
  1792. package/src/features/agent/chat/DocumentPanel.tsx +35 -41
  1793. package/src/features/agent/chat/DocumentTabBar.tsx +7 -4
  1794. package/src/features/agent/chat/ImageLightbox.tsx +30 -14
  1795. package/src/features/agent/chat/JumpingDots.tsx +15 -6
  1796. package/src/features/agent/chat/ModernAgentConversation.test.tsx +679 -0
  1797. package/src/features/agent/chat/ModernAgentConversation.tsx +1239 -722
  1798. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.test.tsx +946 -0
  1799. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +2244 -343
  1800. package/src/features/agent/chat/ModernAgentOutput/AttachmentPreview.tsx +437 -0
  1801. package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +67 -65
  1802. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +239 -134
  1803. package/src/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.tsx +18 -14
  1804. package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +197 -242
  1805. package/src/features/agent/chat/ModernAgentOutput/MessageInput.test.tsx +211 -0
  1806. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +394 -268
  1807. package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +435 -291
  1808. package/src/features/agent/chat/ModernAgentOutput/MessagesContainer.tsx +12 -13
  1809. package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +27 -23
  1810. package/src/features/agent/chat/ModernAgentOutput/SlideInPanel.tsx +24 -22
  1811. package/src/features/agent/chat/ModernAgentOutput/SlidingMessages.tsx +18 -21
  1812. package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +53 -49
  1813. package/src/features/agent/chat/ModernAgentOutput/StackedMessages.tsx +9 -9
  1814. package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +42 -38
  1815. package/src/features/agent/chat/ModernAgentOutput/SummaryConversation.ts +421 -0
  1816. package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +518 -271
  1817. package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +124 -146
  1818. package/src/features/agent/chat/ModernAgentOutput/processContentForMarkdown.test.ts +48 -0
  1819. package/src/features/agent/chat/ModernAgentOutput/processContentForMarkdown.ts +158 -0
  1820. package/src/features/agent/chat/ModernAgentOutput/requestInputMessages.ts +81 -0
  1821. package/src/features/agent/chat/ModernAgentOutput/utils.test.ts +1232 -88
  1822. package/src/features/agent/chat/ModernAgentOutput/utils.ts +190 -154
  1823. package/src/features/agent/chat/ModernAgentOutput/with-types.d.ts +7 -7
  1824. package/src/features/agent/chat/ProposalCodeBlockHandler.tsx +89 -0
  1825. package/src/features/agent/chat/SkillWidgetProvider.tsx +72 -58
  1826. package/src/features/agent/chat/SlidingThinkingIndicator.tsx +173 -165
  1827. package/src/features/agent/chat/VegaLiteChart.tsx +631 -557
  1828. package/src/features/agent/chat/WaitingMessages.ts +50 -50
  1829. package/src/features/agent/chat/applyParameterValues.test.ts +67 -69
  1830. package/src/features/agent/chat/hooks/useAgentPlans.ts +22 -27
  1831. package/src/features/agent/chat/hooks/useAgentStream.test.tsx +250 -0
  1832. package/src/features/agent/chat/hooks/useAgentStream.ts +185 -125
  1833. package/src/features/agent/chat/hooks/useArtifacts.ts +41 -16
  1834. package/src/features/agent/chat/hooks/useDocumentPanel.ts +11 -13
  1835. package/src/features/agent/chat/hooks/useFileProcessing.test.tsx +121 -0
  1836. package/src/features/agent/chat/hooks/useFileProcessing.ts +173 -72
  1837. package/src/features/agent/chat/index.ts +58 -27
  1838. package/src/features/agent/chat/playback.test.ts +70 -0
  1839. package/src/features/agent/chat/playback.ts +93 -0
  1840. package/src/features/agent/chat/useArtifactUrlCache.tsx +25 -27
  1841. package/src/features/agent/chat/workstreams.ts +182 -0
  1842. package/src/features/agent/index.ts +2 -2
  1843. package/src/features/document-viewer/UniversalDocumentViewer.test.tsx +123 -0
  1844. package/src/features/document-viewer/UniversalDocumentViewer.tsx +746 -0
  1845. package/src/features/document-viewer/index.ts +1 -0
  1846. package/src/features/errors/PanelErrorBoundary.tsx +13 -19
  1847. package/src/features/errors/RowErrorBoundary.tsx +8 -12
  1848. package/src/features/errors/VertesiaErrorBoundary.tsx +8 -7
  1849. package/src/features/errors/WidgetErrorBoundary.tsx +8 -16
  1850. package/src/features/errors/index.ts +4 -4
  1851. package/src/features/facets/AgentRunnerFacetsNav.tsx +56 -59
  1852. package/src/features/facets/CollectionsFacetsNav.tsx +24 -35
  1853. package/src/features/facets/DocumentsFacetsNav.tsx +36 -44
  1854. package/src/features/facets/EnvironmentFacet.tsx +38 -20
  1855. package/src/features/facets/InteractionsFacetsNav.tsx +18 -31
  1856. package/src/features/facets/ProcessDefinitionsFacetsNav.tsx +51 -0
  1857. package/src/features/facets/ProcessRunsFacetsNav.tsx +64 -0
  1858. package/src/features/facets/PromptsFacetsNav.tsx +22 -33
  1859. package/src/features/facets/RunsFacetsNav.tsx +52 -60
  1860. package/src/features/facets/WorkflowDefinitionsFacetsNav.tsx +51 -0
  1861. package/src/features/facets/WorkflowExecutionsFacetsNav.tsx +28 -42
  1862. package/src/features/facets/WorkflowRulesFacetsNav.tsx +49 -0
  1863. package/src/features/facets/index.ts +32 -18
  1864. package/src/features/facets/utils/SearchInterface.tsx +32 -3
  1865. package/src/features/facets/utils/StringFacet.tsx +16 -5
  1866. package/src/features/facets/utils/StringListFacet.tsx +5 -6
  1867. package/src/features/facets/utils/TypeFacet.tsx +30 -19
  1868. package/src/features/facets/utils/VEnvironmentFacet.tsx +9 -9
  1869. package/src/features/facets/utils/VInteractionFacet.tsx +18 -17
  1870. package/src/features/facets/utils/VStringFacet.tsx +19 -8
  1871. package/src/features/facets/utils/VTypeFacet.tsx +15 -15
  1872. package/src/features/facets/utils/VUserFacet.tsx +6 -6
  1873. package/src/features/facets/utils/utils.tsx +2 -2
  1874. package/src/features/index.ts +14 -12
  1875. package/src/features/layout/GenericPageNavHeader.tsx +73 -53
  1876. package/src/features/layout/NotFoundView.tsx +4 -7
  1877. package/src/features/layout/index.ts +2 -2
  1878. package/src/features/magic-pdf/AnnotatedImageSlider.tsx +59 -44
  1879. package/src/features/magic-pdf/DownloadPopover.tsx +29 -34
  1880. package/src/features/magic-pdf/ExtractedContentView.tsx +14 -21
  1881. package/src/features/magic-pdf/MagicPdfProvider.tsx +30 -45
  1882. package/src/features/magic-pdf/MagicPdfView.tsx +42 -55
  1883. package/src/features/magic-pdf/index.ts +1 -1
  1884. package/src/features/magic-pdf/types.ts +1 -1
  1885. package/src/features/media-viewer/AudioPanel.tsx +118 -0
  1886. package/src/features/media-viewer/ImagePanel.tsx +96 -0
  1887. package/src/features/media-viewer/VideoPanel.tsx +131 -0
  1888. package/src/features/media-viewer/formats.ts +38 -0
  1889. package/src/features/media-viewer/index.ts +4 -0
  1890. package/src/features/oauth/OAuthProviderConnectButton.tsx +6 -16
  1891. package/src/features/oauth/RemoteMcpConnectionButton.tsx +14 -23
  1892. package/src/features/oauth/useOAuthPopup.ts +1 -1
  1893. package/src/features/pdf-viewer/PdfPageRenderer.tsx +50 -72
  1894. package/src/features/pdf-viewer/PdfPageSlider.tsx +78 -80
  1895. package/src/features/pdf-viewer/SimplePdfViewer.tsx +22 -18
  1896. package/src/features/permissions/SecureButton.tsx +9 -8
  1897. package/src/features/permissions/SecureSidebarItem.tsx +4 -7
  1898. package/src/features/permissions/UserPermissionsProvider.tsx +70 -51
  1899. package/src/features/permissions/helpers.ts +8 -5
  1900. package/src/features/permissions/index.ts +4 -4
  1901. package/src/features/store/collections/BrowseCollectionView.tsx +25 -23
  1902. package/src/features/store/collections/CollectionsTable.tsx +50 -41
  1903. package/src/features/store/collections/CreateCollection.tsx +61 -31
  1904. package/src/features/store/collections/EditCollectionView.tsx +202 -80
  1905. package/src/features/store/collections/SelectCollection.tsx +120 -116
  1906. package/src/features/store/collections/SharedPropsEditor.tsx +38 -29
  1907. package/src/features/store/collections/SyncMemberHeadsToggle.tsx +28 -26
  1908. package/src/features/store/collections/index.ts +7 -7
  1909. package/src/features/store/index.ts +3 -3
  1910. package/src/features/store/objects/DocumentPreviewPanel.tsx +348 -376
  1911. package/src/features/store/objects/DocumentSearchResults.tsx +194 -117
  1912. package/src/features/store/objects/DocumentSelectionProvider.tsx +15 -10
  1913. package/src/features/store/objects/DocumentTable.tsx +51 -45
  1914. package/src/features/store/objects/ExportPropertiesModal.tsx +24 -26
  1915. package/src/features/store/objects/components/ContentDispositionButton.tsx +22 -27
  1916. package/src/features/store/objects/components/ContentOverview.tsx +411 -592
  1917. package/src/features/store/objects/components/DocumentIcon.tsx +95 -91
  1918. package/src/features/store/objects/components/DocumentInput.tsx +33 -26
  1919. package/src/features/store/objects/components/PropertiesEditorModal.tsx +58 -60
  1920. package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +49 -37
  1921. package/src/features/store/objects/components/SelectDocument.test.tsx +87 -0
  1922. package/src/features/store/objects/components/SelectDocument.tsx +50 -54
  1923. package/src/features/store/objects/components/SelectDocumentModal.tsx +7 -7
  1924. package/src/features/store/objects/components/TextEditorPanel.tsx +26 -22
  1925. package/src/features/store/objects/components/VectorSearchWidget.test.tsx +41 -0
  1926. package/src/features/store/objects/components/VectorSearchWidget.tsx +94 -37
  1927. package/src/features/store/objects/components/index.ts +9 -9
  1928. package/src/features/store/objects/components/useContentPanelHooks.ts +24 -19
  1929. package/src/features/store/objects/components/useDownloadFile.ts +141 -126
  1930. package/src/features/store/objects/index.ts +10 -10
  1931. package/src/features/store/objects/layout/DocumentTableColumn.tsx +28 -12
  1932. package/src/features/store/objects/layout/documentLayout.tsx +86 -43
  1933. package/src/features/store/objects/layout/index.ts +2 -2
  1934. package/src/features/store/objects/layout/renderers.tsx +107 -73
  1935. package/src/features/store/objects/search/DocumentSearchContext.test.ts +49 -0
  1936. package/src/features/store/objects/search/DocumentSearchContext.ts +63 -46
  1937. package/src/features/store/objects/search/DocumentSearchProvider.tsx +23 -16
  1938. package/src/features/store/objects/search/index.ts +2 -2
  1939. package/src/features/store/objects/selection/ObjectsActionContext.tsx +28 -21
  1940. package/src/features/store/objects/selection/ObjectsActionContextClass.ts +9 -11
  1941. package/src/features/store/objects/selection/ObjectsActionHooks.ts +5 -5
  1942. package/src/features/store/objects/selection/ObjectsActionSpec.ts +16 -16
  1943. package/src/features/store/objects/selection/SelectionActions.tsx +111 -51
  1944. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +68 -43
  1945. package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +36 -32
  1946. package/src/features/store/objects/selection/actions/ConfirmAction.tsx +27 -20
  1947. package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +57 -46
  1948. package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +60 -65
  1949. package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +42 -33
  1950. package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +9 -10
  1951. package/src/features/store/objects/selection/actions/index.ts +7 -7
  1952. package/src/features/store/objects/selection/index.ts +4 -4
  1953. package/src/features/store/objects/upload/DocumentUploadModal.tsx +189 -183
  1954. package/src/features/store/objects/upload/index.ts +3 -3
  1955. package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +139 -132
  1956. package/src/features/store/objects/upload/useUploadHandler.ts +41 -41
  1957. package/src/features/store/types/ContentObjectTypesSearch.tsx +89 -65
  1958. package/src/features/store/types/ContentObjectTypesTable.tsx +19 -18
  1959. package/src/features/store/types/CreateOrUpdateTypeModal.tsx +26 -16
  1960. package/src/features/store/types/ObjectSchemaEditor.tsx +72 -62
  1961. package/src/features/store/types/SelectContentType.tsx +22 -16
  1962. package/src/features/store/types/SelectContentTypeModal.tsx +23 -33
  1963. package/src/features/store/types/TableLayoutEditor.tsx +54 -41
  1964. package/src/features/store/types/TypeRegistry.ts +2 -3
  1965. package/src/features/store/types/TypeRegistryProvider.tsx +76 -73
  1966. package/src/features/store/types/index.ts +10 -10
  1967. package/src/features/store/types/search/ObjectTypeSearchContext.tsx +39 -33
  1968. package/src/features/store/types/search/ObjectTypeSearchProvider.tsx +7 -8
  1969. package/src/features/store/types/search/index.ts +2 -2
  1970. package/src/features/user/UserAvatar.tsx +21 -17
  1971. package/src/features/user/UserInfo.test.tsx +88 -0
  1972. package/src/features/user/UserInfo.tsx +196 -110
  1973. package/src/features/user/index.ts +2 -2
  1974. package/src/features/utils/index.ts +5 -5
  1975. package/src/features/utils/mimeType.ts +10 -10
  1976. package/src/features/utils/print.ts +14 -12
  1977. package/src/features/utils/rendition.ts +68 -81
  1978. package/src/features/utils/text.ts +4 -4
  1979. package/src/features/utils/workflowStatus.ts +14 -14
  1980. package/src/i18n/LanguageProvider.test.tsx +172 -0
  1981. package/src/i18n/LanguageProvider.tsx +77 -0
  1982. package/src/i18n/index.tsx +30 -7
  1983. package/src/i18n/locales/ar.json +77 -21
  1984. package/src/i18n/locales/de.json +77 -21
  1985. package/src/i18n/locales/en.json +95 -24
  1986. package/src/i18n/locales/es.json +79 -23
  1987. package/src/i18n/locales/fr.json +77 -21
  1988. package/src/i18n/locales/it.json +79 -23
  1989. package/src/i18n/locales/ja.json +77 -21
  1990. package/src/i18n/locales/ko.json +77 -21
  1991. package/src/i18n/locales/pt.json +79 -23
  1992. package/src/i18n/locales/ru.json +77 -21
  1993. package/src/i18n/locales/tr.json +77 -21
  1994. package/src/i18n/locales/zh-TW.json +77 -21
  1995. package/src/i18n/locales/zh.json +77 -21
  1996. package/src/i18n/rtl.test.ts +74 -0
  1997. package/src/i18n/rtl.ts +55 -0
  1998. package/src/i18n/useLocaleFormat.test.tsx +176 -0
  1999. package/src/i18n/useLocaleFormat.ts +106 -0
  2000. package/src/layout/AppLayout.tsx +80 -70
  2001. package/src/layout/ErrorPage.tsx +32 -0
  2002. package/src/layout/FullHeightLayout.tsx +16 -70
  2003. package/src/layout/Navbar.tsx +48 -50
  2004. package/src/layout/RegionTag.tsx +1 -5
  2005. package/src/layout/Sidebar.tsx +79 -67
  2006. package/src/layout/SidebarContext.ts +1 -1
  2007. package/src/layout/TitleBar.tsx +1 -2
  2008. package/src/layout/index.ts +8 -7
  2009. package/src/router/FixLinks.tsx +11 -9
  2010. package/src/router/HistoryNavigator.ts +55 -32
  2011. package/src/router/Nav.tsx +36 -10
  2012. package/src/router/NestedNavigationContext.tsx +23 -22
  2013. package/src/router/NestedRouterProvider.tsx +52 -46
  2014. package/src/router/PathMatcher.ts +42 -36
  2015. package/src/router/PathWithParams.ts +1 -2
  2016. package/src/router/Route404.tsx +6 -6
  2017. package/src/router/RouteComponent.tsx +7 -9
  2018. package/src/router/Router.tsx +32 -22
  2019. package/src/router/RouterProvider.tsx +24 -22
  2020. package/src/router/index.ts +10 -10
  2021. package/src/router/path.ts +4 -3
  2022. package/src/session/UserSession.ts +96 -64
  2023. package/src/session/UserSessionProvider.tsx +173 -87
  2024. package/src/session/auth/composable.test.ts +79 -0
  2025. package/src/session/auth/composable.ts +108 -33
  2026. package/src/session/auth/domainRouting.test.ts +8 -8
  2027. package/src/session/auth/firebase.ts +25 -24
  2028. package/src/session/auth/useAuthState.ts +5 -8
  2029. package/src/session/auth/useCurrentTenant.ts +10 -11
  2030. package/src/session/constants.ts +1 -1
  2031. package/src/session/index.ts +7 -7
  2032. package/src/session/useUXTracking.tsx +11 -15
  2033. package/src/shell/SplashScreen.tsx +22 -13
  2034. package/src/shell/VertesiaShell.tsx +38 -16
  2035. package/src/shell/apps/AppInstallationProvider.tsx +10 -11
  2036. package/src/shell/apps/AppProjectSelector.tsx +34 -20
  2037. package/src/shell/apps/StandaloneApp.tsx +40 -37
  2038. package/src/shell/apps/index.ts +3 -3
  2039. package/src/shell/index.tsx +5 -5
  2040. package/src/shell/login/InviteAcceptModal.tsx +65 -56
  2041. package/src/shell/login/PreviewIcon.tsx +3 -6
  2042. package/src/shell/login/SignInAuthPending.tsx +43 -0
  2043. package/src/shell/login/SignInEmailStep.tsx +83 -0
  2044. package/src/shell/login/SignInIcons.tsx +66 -0
  2045. package/src/shell/login/SignInModal.tsx +10 -14
  2046. package/src/shell/login/SignInPrimitives.tsx +414 -0
  2047. package/src/shell/login/SignInProvidersStep.tsx +50 -0
  2048. package/src/shell/login/SignInReturningStep.tsx +90 -0
  2049. package/src/shell/login/SignInTenantBlockedStep.tsx +41 -0
  2050. package/src/shell/login/SignInTenantStep.tsx +78 -0
  2051. package/src/shell/login/SignInWithProviderButton.tsx +40 -0
  2052. package/src/shell/login/SigninScreen.tsx +231 -134
  2053. package/src/shell/login/SignupForm.tsx +28 -33
  2054. package/src/shell/login/TerminalLogin.tsx +188 -156
  2055. package/src/shell/login/UserInfo.tsx +41 -26
  2056. package/src/shell/login/UserSessionMenu.tsx +50 -35
  2057. package/src/shell/login/signInUtils.test.ts +41 -0
  2058. package/src/shell/login/signInUtils.ts +241 -0
  2059. package/src/shell/utils.tsx +5 -5
  2060. package/src/widgets/Progress.tsx +2 -2
  2061. package/src/widgets/SvgIcon.tsx +4 -4
  2062. package/src/widgets/form/Form.tsx +71 -59
  2063. package/src/widgets/form/FormContext.ts +9 -7
  2064. package/src/widgets/form/ManagedObject.ts +50 -40
  2065. package/src/widgets/form/fields.tsx +3 -11
  2066. package/src/widgets/form/index.ts +6 -6
  2067. package/src/widgets/form/inputs.tsx +55 -35
  2068. package/src/widgets/form/schema.ts +22 -15
  2069. package/src/widgets/index.ts +10 -10
  2070. package/src/widgets/json-view/JSONCode.test.tsx +52 -0
  2071. package/src/widgets/json-view/JSONCode.tsx +64 -19
  2072. package/src/widgets/json-view/JSONDisplay.tsx +30 -14
  2073. package/src/widgets/json-view/JSONEditor.tsx +89 -0
  2074. package/src/widgets/json-view/JSONSwitcher.tsx +13 -5
  2075. package/src/widgets/json-view/JSONTable.tsx +80 -0
  2076. package/src/widgets/json-view/JSONView.tsx +122 -82
  2077. package/src/widgets/json-view/index.ts +7 -5
  2078. package/src/widgets/markdown/ArtifactContentRenderer.tsx +20 -36
  2079. package/src/widgets/markdown/CodeBlockContext.tsx +1 -1
  2080. package/src/widgets/markdown/CodeBlockPlaceholder.test.tsx +2 -2
  2081. package/src/widgets/markdown/CodeBlockPlaceholder.tsx +21 -19
  2082. package/src/widgets/markdown/CodeBlockRendering.tsx +3 -8
  2083. package/src/widgets/markdown/MarkdownFigure.tsx +5 -21
  2084. package/src/widgets/markdown/MarkdownImage.tsx +7 -29
  2085. package/src/widgets/markdown/MarkdownLink.tsx +7 -30
  2086. package/src/widgets/markdown/MarkdownRenderer.tsx +45 -42
  2087. package/src/widgets/markdown/MermaidDiagram.test.ts +40 -0
  2088. package/src/widgets/markdown/MermaidDiagram.tsx +9 -8
  2089. package/src/widgets/markdown/codeBlockHandlers.test.tsx +12 -15
  2090. package/src/widgets/markdown/codeBlockHandlers.tsx +40 -155
  2091. package/src/widgets/markdown/index.ts +23 -14
  2092. package/src/widgets/markdown/normalizeCustomSchemeLinks.test.ts +21 -6
  2093. package/src/widgets/markdown/normalizeCustomSchemeLinks.ts +9 -16
  2094. package/src/widgets/markdown/normalizeDirectives.test.ts +57 -0
  2095. package/src/widgets/markdown/normalizeDirectives.ts +24 -14
  2096. package/src/widgets/markdown/preprocessMathDelimiters.test.ts +59 -54
  2097. package/src/widgets/markdown/preprocessMathDelimiters.ts +36 -32
  2098. package/src/widgets/markdown/remarkDirectiveHandler.ts +10 -12
  2099. package/src/widgets/markdown/useArtifactContent.ts +9 -22
  2100. package/src/widgets/markdown/useResolvedUrl.test.ts +25 -2
  2101. package/src/widgets/markdown/useResolvedUrl.ts +25 -24
  2102. package/src/widgets/monacoEditor/MonacoEditor.tsx +93 -81
  2103. package/src/widgets/monacoEditor/foldingProviders.ts +33 -7
  2104. package/src/widgets/monacoEditor/index.ts +2 -3
  2105. package/src/widgets/properties/PropertiesView.tsx +19 -25
  2106. package/src/widgets/properties/index.ts +1 -1
  2107. package/src/widgets/schema-editor/ManagedSchema.ts +47 -39
  2108. package/src/widgets/schema-editor/editor/Editable.tsx +94 -74
  2109. package/src/widgets/schema-editor/editor/EditableSchemaProperty.tsx +4 -4
  2110. package/src/widgets/schema-editor/editor/PropertyEditor.tsx +49 -34
  2111. package/src/widgets/schema-editor/editor/PropertyViewer.tsx +6 -9
  2112. package/src/widgets/schema-editor/editor/SchemaContext.tsx +9 -6
  2113. package/src/widgets/schema-editor/editor/SchemaEditor.test.ts +5 -5
  2114. package/src/widgets/schema-editor/editor/SchemaEditor.tsx +56 -50
  2115. package/src/widgets/schema-editor/index.ts +6 -6
  2116. package/src/widgets/schema-editor/json-schema4-utils.ts +36 -34
  2117. package/src/widgets/schema-editor/type-signature.ts +16 -18
  2118. package/src/widgets/upload/DropZone.tsx +68 -47
  2119. package/src/widgets/upload/UploadResultCategory.tsx +24 -20
  2120. package/src/widgets/upload/UploadSummary.tsx +24 -24
  2121. package/src/widgets/upload/index.ts +1 -1
  2122. package/src/widgets/xml-viewer/components/Attributes/index.tsx +17 -17
  2123. package/src/widgets/xml-viewer/components/CDataTag/index.tsx +13 -13
  2124. package/src/widgets/xml-viewer/components/CollapseIcon/index.tsx +20 -22
  2125. package/src/widgets/xml-viewer/components/CommentTag/index.tsx +20 -20
  2126. package/src/widgets/xml-viewer/components/DeclarationTag/index.tsx +14 -14
  2127. package/src/widgets/xml-viewer/components/Elements/index.tsx +67 -67
  2128. package/src/widgets/xml-viewer/components/InvalidXml/index.tsx +1 -1
  2129. package/src/widgets/xml-viewer/components/Tag/index.tsx +36 -35
  2130. package/src/widgets/xml-viewer/components/TextElement/index.tsx +20 -19
  2131. package/src/widgets/xml-viewer/components/XMLViewer.tsx +50 -50
  2132. package/src/widgets/xml-viewer/components/types.ts +99 -99
  2133. package/src/widgets/xml-viewer/constants/index.ts +16 -16
  2134. package/src/widgets/xml-viewer/context/xml-viewer-context.ts +4 -4
  2135. package/src/widgets/xml-viewer/helpers/index.ts +32 -34
  2136. package/src/widgets/xml-viewer/hooks/useCollapsible.ts +18 -20
  2137. package/src/widgets/xml-viewer/hooks/useXMLViewer.ts +25 -23
  2138. package/src/widgets/xml-viewer/index.ts +1 -1
  2139. package/src/widgets/xml-viewer/types/index.ts +6 -6
  2140. package/tsconfig.dist.json +3 -2
  2141. package/lib/esm/core/components/Avatar.js +0 -31
  2142. package/lib/esm/core/components/Avatar.js.map +0 -1
  2143. package/lib/esm/core/components/Center.js +0 -6
  2144. package/lib/esm/core/components/Center.js.map +0 -1
  2145. package/lib/esm/core/components/ComboBox.js +0 -355
  2146. package/lib/esm/core/components/ComboBox.js.map +0 -1
  2147. package/lib/esm/core/components/Divider.js +0 -6
  2148. package/lib/esm/core/components/Divider.js.map +0 -1
  2149. package/lib/esm/core/components/EmptyCollection.js +0 -7
  2150. package/lib/esm/core/components/EmptyCollection.js.map +0 -1
  2151. package/lib/esm/core/components/FileUpload.js +0 -119
  2152. package/lib/esm/core/components/FileUpload.js.map +0 -1
  2153. package/lib/esm/core/components/FormItem.js +0 -9
  2154. package/lib/esm/core/components/FormItem.js.map +0 -1
  2155. package/lib/esm/core/components/InputList.js +0 -61
  2156. package/lib/esm/core/components/InputList.js.map +0 -1
  2157. package/lib/esm/core/components/Link.js +0 -13
  2158. package/lib/esm/core/components/Link.js.map +0 -1
  2159. package/lib/esm/core/components/MenuList.js +0 -20
  2160. package/lib/esm/core/components/MenuList.js.map +0 -1
  2161. package/lib/esm/core/components/NumberInput.js +0 -43
  2162. package/lib/esm/core/components/NumberInput.js.map +0 -1
  2163. package/lib/esm/core/components/Overlay.js +0 -57
  2164. package/lib/esm/core/components/Overlay.js.map +0 -1
  2165. package/lib/esm/core/components/Portal.js +0 -28
  2166. package/lib/esm/core/components/Portal.js.map +0 -1
  2167. package/lib/esm/core/components/SelectList.js +0 -54
  2168. package/lib/esm/core/components/SelectList.js.map +0 -1
  2169. package/lib/esm/core/components/SidePanel.js +0 -39
  2170. package/lib/esm/core/components/SidePanel.js.map +0 -1
  2171. package/lib/esm/core/components/Spinner.js +0 -18
  2172. package/lib/esm/core/components/Spinner.js.map +0 -1
  2173. package/lib/esm/core/components/TagsInput.js +0 -194
  2174. package/lib/esm/core/components/TagsInput.js.map +0 -1
  2175. package/lib/esm/core/components/index.js +0 -23
  2176. package/lib/esm/core/components/index.js.map +0 -1
  2177. package/lib/esm/core/components/libs/utils.js +0 -6
  2178. package/lib/esm/core/components/libs/utils.js.map +0 -1
  2179. package/lib/esm/core/components/libs/visuallyHidden.js +0 -16
  2180. package/lib/esm/core/components/libs/visuallyHidden.js.map +0 -1
  2181. package/lib/esm/core/components/popup/Popup.js +0 -60
  2182. package/lib/esm/core/components/popup/Popup.js.map +0 -1
  2183. package/lib/esm/core/components/popup/PopupController.js +0 -149
  2184. package/lib/esm/core/components/popup/PopupController.js.map +0 -1
  2185. package/lib/esm/core/components/popup/index.js +0 -4
  2186. package/lib/esm/core/components/popup/index.js.map +0 -1
  2187. package/lib/esm/core/components/popup/position.js +0 -221
  2188. package/lib/esm/core/components/popup/position.js.map +0 -1
  2189. package/lib/esm/core/components/popup/utils.js +0 -74
  2190. package/lib/esm/core/components/popup/utils.js.map +0 -1
  2191. package/lib/esm/core/components/shadcn/MessageBox.js +0 -66
  2192. package/lib/esm/core/components/shadcn/MessageBox.js.map +0 -1
  2193. package/lib/esm/core/components/shadcn/Panel.js +0 -13
  2194. package/lib/esm/core/components/shadcn/Panel.js.map +0 -1
  2195. package/lib/esm/core/components/shadcn/badge.js +0 -62
  2196. package/lib/esm/core/components/shadcn/badge.js.map +0 -1
  2197. package/lib/esm/core/components/shadcn/breadcrumb.js +0 -55
  2198. package/lib/esm/core/components/shadcn/breadcrumb.js.map +0 -1
  2199. package/lib/esm/core/components/shadcn/button.js +0 -78
  2200. package/lib/esm/core/components/shadcn/button.js.map +0 -1
  2201. package/lib/esm/core/components/shadcn/calendar.js +0 -13
  2202. package/lib/esm/core/components/shadcn/calendar.js.map +0 -1
  2203. package/lib/esm/core/components/shadcn/card.js +0 -17
  2204. package/lib/esm/core/components/shadcn/card.js.map +0 -1
  2205. package/lib/esm/core/components/shadcn/checkbox.js +0 -9
  2206. package/lib/esm/core/components/shadcn/checkbox.js.map +0 -1
  2207. package/lib/esm/core/components/shadcn/collaspible.js +0 -13
  2208. package/lib/esm/core/components/shadcn/collaspible.js.map +0 -1
  2209. package/lib/esm/core/components/shadcn/command.js +0 -29
  2210. package/lib/esm/core/components/shadcn/command.js.map +0 -1
  2211. package/lib/esm/core/components/shadcn/dropdown.js +0 -86
  2212. package/lib/esm/core/components/shadcn/dropdown.js.map +0 -1
  2213. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +0 -38
  2214. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +0 -1
  2215. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js +0 -23
  2216. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js.map +0 -1
  2217. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +0 -131
  2218. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +0 -1
  2219. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +0 -49
  2220. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +0 -1
  2221. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +0 -23
  2222. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +0 -1
  2223. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js +0 -28
  2224. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js.map +0 -1
  2225. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js +0 -5
  2226. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js.map +0 -1
  2227. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js +0 -98
  2228. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js.map +0 -1
  2229. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +0 -24
  2230. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +0 -1
  2231. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js +0 -21
  2232. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js.map +0 -1
  2233. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +0 -163
  2234. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +0 -1
  2235. package/lib/esm/core/components/shadcn/filters/filter-styles.js.map +0 -1
  2236. package/lib/esm/core/components/shadcn/filters/filterBar.js +0 -237
  2237. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +0 -1
  2238. package/lib/esm/core/components/shadcn/filters/filters.js +0 -57
  2239. package/lib/esm/core/components/shadcn/filters/filters.js.map +0 -1
  2240. package/lib/esm/core/components/shadcn/filters/index.js.map +0 -1
  2241. package/lib/esm/core/components/shadcn/filters/types.js.map +0 -1
  2242. package/lib/esm/core/components/shadcn/heading.js +0 -17
  2243. package/lib/esm/core/components/shadcn/heading.js.map +0 -1
  2244. package/lib/esm/core/components/shadcn/index.js +0 -29
  2245. package/lib/esm/core/components/shadcn/index.js.map +0 -1
  2246. package/lib/esm/core/components/shadcn/input.js +0 -41
  2247. package/lib/esm/core/components/shadcn/input.js.map +0 -1
  2248. package/lib/esm/core/components/shadcn/label.js +0 -10
  2249. package/lib/esm/core/components/shadcn/label.js.map +0 -1
  2250. package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +0 -12
  2251. package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +0 -1
  2252. package/lib/esm/core/components/shadcn/modal/DeleteModal.js +0 -30
  2253. package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +0 -1
  2254. package/lib/esm/core/components/shadcn/modal/dialog.js +0 -78
  2255. package/lib/esm/core/components/shadcn/modal/dialog.js.map +0 -1
  2256. package/lib/esm/core/components/shadcn/modal/index.js +0 -4
  2257. package/lib/esm/core/components/shadcn/modal/index.js.map +0 -1
  2258. package/lib/esm/core/components/shadcn/popover.js +0 -56
  2259. package/lib/esm/core/components/shadcn/popover.js.map +0 -1
  2260. package/lib/esm/core/components/shadcn/radioGroup.js +0 -28
  2261. package/lib/esm/core/components/shadcn/radioGroup.js.map +0 -1
  2262. package/lib/esm/core/components/shadcn/resizeable.js +0 -15
  2263. package/lib/esm/core/components/shadcn/resizeable.js.map +0 -1
  2264. package/lib/esm/core/components/shadcn/selectBox.js +0 -156
  2265. package/lib/esm/core/components/shadcn/selectBox.js.map +0 -1
  2266. package/lib/esm/core/components/shadcn/separator.js +0 -8
  2267. package/lib/esm/core/components/shadcn/separator.js.map +0 -1
  2268. package/lib/esm/core/components/shadcn/switch.js +0 -18
  2269. package/lib/esm/core/components/shadcn/switch.js.map +0 -1
  2270. package/lib/esm/core/components/shadcn/tabs.js +0 -134
  2271. package/lib/esm/core/components/shadcn/tabs.js.map +0 -1
  2272. package/lib/esm/core/components/shadcn/text.js +0 -30
  2273. package/lib/esm/core/components/shadcn/text.js.map +0 -1
  2274. package/lib/esm/core/components/shadcn/textarea.js +0 -35
  2275. package/lib/esm/core/components/shadcn/textarea.js.map +0 -1
  2276. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js +0 -39
  2277. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js.map +0 -1
  2278. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +0 -15
  2279. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +0 -1
  2280. package/lib/esm/core/components/shadcn/tooltip.js +0 -34
  2281. package/lib/esm/core/components/shadcn/tooltip.js.map +0 -1
  2282. package/lib/esm/core/components/styles.js +0 -10
  2283. package/lib/esm/core/components/styles.js.map +0 -1
  2284. package/lib/esm/core/components/table/index.js +0 -24
  2285. package/lib/esm/core/components/table/index.js.map +0 -1
  2286. package/lib/esm/core/components/toast/NotificationPanel.js +0 -43
  2287. package/lib/esm/core/components/toast/NotificationPanel.js.map +0 -1
  2288. package/lib/esm/core/components/toast/ToastContext.js +0 -7
  2289. package/lib/esm/core/components/toast/ToastContext.js.map +0 -1
  2290. package/lib/esm/core/components/toast/ToastProps.js.map +0 -1
  2291. package/lib/esm/core/components/toast/ToastProvider.js +0 -13
  2292. package/lib/esm/core/components/toast/ToastProvider.js.map +0 -1
  2293. package/lib/esm/core/components/toast/index.js +0 -3
  2294. package/lib/esm/core/components/toast/index.js.map +0 -1
  2295. package/lib/esm/core/hooks/CompositeState.js +0 -256
  2296. package/lib/esm/core/hooks/CompositeState.js.map +0 -1
  2297. package/lib/esm/core/hooks/PortalContainerProvider.js +0 -50
  2298. package/lib/esm/core/hooks/PortalContainerProvider.js.map +0 -1
  2299. package/lib/esm/core/hooks/SharedState.js +0 -64
  2300. package/lib/esm/core/hooks/SharedState.js.map +0 -1
  2301. package/lib/esm/core/hooks/index.js +0 -16
  2302. package/lib/esm/core/hooks/index.js.map +0 -1
  2303. package/lib/esm/core/hooks/useClickOutside.js +0 -29
  2304. package/lib/esm/core/hooks/useClickOutside.js.map +0 -1
  2305. package/lib/esm/core/hooks/useCopyToClipboard.js.map +0 -1
  2306. package/lib/esm/core/hooks/useDarkMode.js +0 -11
  2307. package/lib/esm/core/hooks/useDarkMode.js.map +0 -1
  2308. package/lib/esm/core/hooks/useDebounce.js +0 -14
  2309. package/lib/esm/core/hooks/useDebounce.js.map +0 -1
  2310. package/lib/esm/core/hooks/useEventSource.js +0 -31
  2311. package/lib/esm/core/hooks/useEventSource.js.map +0 -1
  2312. package/lib/esm/core/hooks/useFetch.js +0 -40
  2313. package/lib/esm/core/hooks/useFetch.js.map +0 -1
  2314. package/lib/esm/core/hooks/useFlag.js +0 -13
  2315. package/lib/esm/core/hooks/useFlag.js.map +0 -1
  2316. package/lib/esm/core/hooks/useIntersectionObserver.js +0 -34
  2317. package/lib/esm/core/hooks/useIntersectionObserver.js.map +0 -1
  2318. package/lib/esm/core/hooks/useIsFistRendering.js +0 -14
  2319. package/lib/esm/core/hooks/useIsFistRendering.js.map +0 -1
  2320. package/lib/esm/core/hooks/useSafeLayoutEffect.js +0 -4
  2321. package/lib/esm/core/hooks/useSafeLayoutEffect.js.map +0 -1
  2322. package/lib/esm/core/hooks/useScrollableSearch.js +0 -92
  2323. package/lib/esm/core/hooks/useScrollableSearch.js.map +0 -1
  2324. package/lib/esm/core/hooks/useSharedValue.js +0 -21
  2325. package/lib/esm/core/hooks/useSharedValue.js.map +0 -1
  2326. package/lib/esm/core/index.js +0 -4
  2327. package/lib/esm/core/index.js.map +0 -1
  2328. package/lib/esm/core/utils/cn.js +0 -6
  2329. package/lib/esm/core/utils/cn.js.map +0 -1
  2330. package/lib/esm/core/utils/index.js +0 -2
  2331. package/lib/esm/core/utils/index.js.map +0 -1
  2332. package/lib/esm/env/index.js +0 -85
  2333. package/lib/esm/env/index.js.map +0 -1
  2334. package/lib/esm/features/activity-doc/ActivityDoc.js +0 -71
  2335. package/lib/esm/features/activity-doc/ActivityDoc.js.map +0 -1
  2336. package/lib/esm/features/activity-doc/index.js +0 -2
  2337. package/lib/esm/features/activity-doc/index.js.map +0 -1
  2338. package/lib/esm/features/agent/PayloadBuilder.js +0 -421
  2339. package/lib/esm/features/agent/PayloadBuilder.js.map +0 -1
  2340. package/lib/esm/features/agent/chat/AgentChart.js +0 -26
  2341. package/lib/esm/features/agent/chat/AgentChart.js.map +0 -1
  2342. package/lib/esm/features/agent/chat/AgentRightPanel.js +0 -169
  2343. package/lib/esm/features/agent/chat/AgentRightPanel.js.map +0 -1
  2344. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +0 -243
  2345. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +0 -1
  2346. package/lib/esm/features/agent/chat/ArtifactsTab.js +0 -69
  2347. package/lib/esm/features/agent/chat/ArtifactsTab.js.map +0 -1
  2348. package/lib/esm/features/agent/chat/AskUserWidget.js +0 -116
  2349. package/lib/esm/features/agent/chat/AskUserWidget.js.map +0 -1
  2350. package/lib/esm/features/agent/chat/DocumentPanel.js +0 -52
  2351. package/lib/esm/features/agent/chat/DocumentPanel.js.map +0 -1
  2352. package/lib/esm/features/agent/chat/DocumentTabBar.js +0 -9
  2353. package/lib/esm/features/agent/chat/DocumentTabBar.js.map +0 -1
  2354. package/lib/esm/features/agent/chat/ImageLightbox.js +0 -35
  2355. package/lib/esm/features/agent/chat/ImageLightbox.js.map +0 -1
  2356. package/lib/esm/features/agent/chat/JumpingDots.js +0 -6
  2357. package/lib/esm/features/agent/chat/JumpingDots.js.map +0 -1
  2358. package/lib/esm/features/agent/chat/ModernAgentConversation.js +0 -878
  2359. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +0 -1
  2360. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +0 -488
  2361. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +0 -1
  2362. package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +0 -90
  2363. package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +0 -1
  2364. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +0 -114
  2365. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +0 -1
  2366. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +0 -29
  2367. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +0 -1
  2368. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +0 -94
  2369. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +0 -1
  2370. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +0 -202
  2371. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +0 -1
  2372. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +0 -322
  2373. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +0 -1
  2374. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +0 -20
  2375. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +0 -1
  2376. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +0 -65
  2377. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +0 -1
  2378. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +0 -23
  2379. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +0 -1
  2380. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +0 -52
  2381. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +0 -1
  2382. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +0 -84
  2383. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +0 -1
  2384. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +0 -13
  2385. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +0 -1
  2386. package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +0 -203
  2387. package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +0 -1
  2388. package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +0 -556
  2389. package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +0 -1
  2390. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +0 -108
  2391. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +0 -1
  2392. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +0 -614
  2393. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +0 -1
  2394. package/lib/esm/features/agent/chat/SkillWidgetProvider.js +0 -145
  2395. package/lib/esm/features/agent/chat/SkillWidgetProvider.js.map +0 -1
  2396. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +0 -262
  2397. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +0 -1
  2398. package/lib/esm/features/agent/chat/VegaLiteChart.js +0 -793
  2399. package/lib/esm/features/agent/chat/VegaLiteChart.js.map +0 -1
  2400. package/lib/esm/features/agent/chat/WaitingMessages.js +0 -60
  2401. package/lib/esm/features/agent/chat/WaitingMessages.js.map +0 -1
  2402. package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +0 -141
  2403. package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +0 -1
  2404. package/lib/esm/features/agent/chat/hooks/useAgentStream.js +0 -243
  2405. package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +0 -1
  2406. package/lib/esm/features/agent/chat/hooks/useArtifacts.js +0 -108
  2407. package/lib/esm/features/agent/chat/hooks/useArtifacts.js.map +0 -1
  2408. package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +0 -155
  2409. package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +0 -1
  2410. package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +0 -92
  2411. package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +0 -1
  2412. package/lib/esm/features/agent/chat/index.js +0 -18
  2413. package/lib/esm/features/agent/chat/index.js.map +0 -1
  2414. package/lib/esm/features/agent/chat/types/document.js.map +0 -1
  2415. package/lib/esm/features/agent/chat/useArtifactUrlCache.js +0 -62
  2416. package/lib/esm/features/agent/chat/useArtifactUrlCache.js.map +0 -1
  2417. package/lib/esm/features/agent/index.js +0 -3
  2418. package/lib/esm/features/agent/index.js.map +0 -1
  2419. package/lib/esm/features/errors/PanelErrorBoundary.js +0 -13
  2420. package/lib/esm/features/errors/PanelErrorBoundary.js.map +0 -1
  2421. package/lib/esm/features/errors/RowErrorBoundary.js +0 -9
  2422. package/lib/esm/features/errors/RowErrorBoundary.js.map +0 -1
  2423. package/lib/esm/features/errors/VertesiaErrorBoundary.js +0 -15
  2424. package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +0 -1
  2425. package/lib/esm/features/errors/WidgetErrorBoundary.js +0 -11
  2426. package/lib/esm/features/errors/WidgetErrorBoundary.js.map +0 -1
  2427. package/lib/esm/features/errors/index.js +0 -5
  2428. package/lib/esm/features/errors/index.js.map +0 -1
  2429. package/lib/esm/features/facets/AgentRunnerFacetsNav.js +0 -98
  2430. package/lib/esm/features/facets/AgentRunnerFacetsNav.js.map +0 -1
  2431. package/lib/esm/features/facets/CollectionsFacetsNav.js +0 -89
  2432. package/lib/esm/features/facets/CollectionsFacetsNav.js.map +0 -1
  2433. package/lib/esm/features/facets/DocumentsFacetsNav.js +0 -151
  2434. package/lib/esm/features/facets/DocumentsFacetsNav.js.map +0 -1
  2435. package/lib/esm/features/facets/EnvironmentFacet.js +0 -39
  2436. package/lib/esm/features/facets/EnvironmentFacet.js.map +0 -1
  2437. package/lib/esm/features/facets/InteractionsFacetsNav.js +0 -88
  2438. package/lib/esm/features/facets/InteractionsFacetsNav.js.map +0 -1
  2439. package/lib/esm/features/facets/PromptsFacetsNav.js +0 -80
  2440. package/lib/esm/features/facets/PromptsFacetsNav.js.map +0 -1
  2441. package/lib/esm/features/facets/RunsFacetsNav.js +0 -164
  2442. package/lib/esm/features/facets/RunsFacetsNav.js.map +0 -1
  2443. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js +0 -119
  2444. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js.map +0 -1
  2445. package/lib/esm/features/facets/index.js +0 -17
  2446. package/lib/esm/features/facets/index.js.map +0 -1
  2447. package/lib/esm/features/facets/utils/SearchInterface.js +0 -2
  2448. package/lib/esm/features/facets/utils/SearchInterface.js.map +0 -1
  2449. package/lib/esm/features/facets/utils/StringFacet.js +0 -12
  2450. package/lib/esm/features/facets/utils/StringFacet.js.map +0 -1
  2451. package/lib/esm/features/facets/utils/StringListFacet.js +0 -11
  2452. package/lib/esm/features/facets/utils/StringListFacet.js.map +0 -1
  2453. package/lib/esm/features/facets/utils/TypeFacet.js +0 -42
  2454. package/lib/esm/features/facets/utils/TypeFacet.js.map +0 -1
  2455. package/lib/esm/features/facets/utils/VEnvironmentFacet.js +0 -25
  2456. package/lib/esm/features/facets/utils/VEnvironmentFacet.js.map +0 -1
  2457. package/lib/esm/features/facets/utils/VInteractionFacet.js +0 -45
  2458. package/lib/esm/features/facets/utils/VInteractionFacet.js.map +0 -1
  2459. package/lib/esm/features/facets/utils/VStringFacet.js +0 -20
  2460. package/lib/esm/features/facets/utils/VStringFacet.js.map +0 -1
  2461. package/lib/esm/features/facets/utils/VTypeFacet.js +0 -61
  2462. package/lib/esm/features/facets/utils/VTypeFacet.js.map +0 -1
  2463. package/lib/esm/features/facets/utils/VUserFacet.js +0 -31
  2464. package/lib/esm/features/facets/utils/VUserFacet.js.map +0 -1
  2465. package/lib/esm/features/facets/utils/utils.js.map +0 -1
  2466. package/lib/esm/features/index.js +0 -13
  2467. package/lib/esm/features/index.js.map +0 -1
  2468. package/lib/esm/features/layout/GenericPageNavHeader.js +0 -86
  2469. package/lib/esm/features/layout/GenericPageNavHeader.js.map +0 -1
  2470. package/lib/esm/features/layout/NotFoundView.js +0 -7
  2471. package/lib/esm/features/layout/NotFoundView.js.map +0 -1
  2472. package/lib/esm/features/layout/index.js +0 -3
  2473. package/lib/esm/features/layout/index.js.map +0 -1
  2474. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +0 -272
  2475. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +0 -1
  2476. package/lib/esm/features/magic-pdf/DownloadPopover.js +0 -29
  2477. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +0 -1
  2478. package/lib/esm/features/magic-pdf/ExtractedContentView.js +0 -77
  2479. package/lib/esm/features/magic-pdf/ExtractedContentView.js.map +0 -1
  2480. package/lib/esm/features/magic-pdf/MagicPdfProvider.js +0 -242
  2481. package/lib/esm/features/magic-pdf/MagicPdfProvider.js.map +0 -1
  2482. package/lib/esm/features/magic-pdf/MagicPdfView.js +0 -64
  2483. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +0 -1
  2484. package/lib/esm/features/magic-pdf/index.js +0 -2
  2485. package/lib/esm/features/magic-pdf/index.js.map +0 -1
  2486. package/lib/esm/features/magic-pdf/types.js.map +0 -1
  2487. package/lib/esm/features/oauth/OAuthProviderConnectButton.js +0 -85
  2488. package/lib/esm/features/oauth/OAuthProviderConnectButton.js.map +0 -1
  2489. package/lib/esm/features/oauth/RemoteMcpConnectionButton.js +0 -119
  2490. package/lib/esm/features/oauth/RemoteMcpConnectionButton.js.map +0 -1
  2491. package/lib/esm/features/oauth/index.js.map +0 -1
  2492. package/lib/esm/features/oauth/useOAuthPopup.js.map +0 -1
  2493. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js +0 -261
  2494. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js.map +0 -1
  2495. package/lib/esm/features/pdf-viewer/PdfPageSlider.js +0 -280
  2496. package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +0 -1
  2497. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +0 -73
  2498. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +0 -1
  2499. package/lib/esm/features/pdf-viewer/index.js.map +0 -1
  2500. package/lib/esm/features/permissions/SecureButton.js +0 -13
  2501. package/lib/esm/features/permissions/SecureButton.js.map +0 -1
  2502. package/lib/esm/features/permissions/SecureSidebarItem.js +0 -14
  2503. package/lib/esm/features/permissions/SecureSidebarItem.js.map +0 -1
  2504. package/lib/esm/features/permissions/UserPermissionsProvider.js +0 -89
  2505. package/lib/esm/features/permissions/UserPermissionsProvider.js.map +0 -1
  2506. package/lib/esm/features/permissions/helpers.js.map +0 -1
  2507. package/lib/esm/features/permissions/index.js +0 -5
  2508. package/lib/esm/features/permissions/index.js.map +0 -1
  2509. package/lib/esm/features/store/collections/BrowseCollectionView.js +0 -48
  2510. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +0 -1
  2511. package/lib/esm/features/store/collections/CollectionsTable.js +0 -71
  2512. package/lib/esm/features/store/collections/CollectionsTable.js.map +0 -1
  2513. package/lib/esm/features/store/collections/CreateCollection.js +0 -90
  2514. package/lib/esm/features/store/collections/CreateCollection.js.map +0 -1
  2515. package/lib/esm/features/store/collections/EditCollectionView.js +0 -192
  2516. package/lib/esm/features/store/collections/EditCollectionView.js.map +0 -1
  2517. package/lib/esm/features/store/collections/SelectCollection.js +0 -134
  2518. package/lib/esm/features/store/collections/SelectCollection.js.map +0 -1
  2519. package/lib/esm/features/store/collections/SharedPropsEditor.js +0 -41
  2520. package/lib/esm/features/store/collections/SharedPropsEditor.js.map +0 -1
  2521. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +0 -37
  2522. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +0 -1
  2523. package/lib/esm/features/store/collections/index.js +0 -8
  2524. package/lib/esm/features/store/collections/index.js.map +0 -1
  2525. package/lib/esm/features/store/index.js +0 -4
  2526. package/lib/esm/features/store/index.js.map +0 -1
  2527. package/lib/esm/features/store/objects/DocumentPreviewPanel.js +0 -149
  2528. package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +0 -1
  2529. package/lib/esm/features/store/objects/DocumentSearchResults.js +0 -216
  2530. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +0 -1
  2531. package/lib/esm/features/store/objects/DocumentSelectionProvider.js +0 -81
  2532. package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +0 -1
  2533. package/lib/esm/features/store/objects/DocumentTable.js +0 -281
  2534. package/lib/esm/features/store/objects/DocumentTable.js.map +0 -1
  2535. package/lib/esm/features/store/objects/ExportPropertiesModal.js +0 -34
  2536. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +0 -1
  2537. package/lib/esm/features/store/objects/components/ContentDispositionButton.js +0 -33
  2538. package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +0 -1
  2539. package/lib/esm/features/store/objects/components/ContentOverview.js +0 -555
  2540. package/lib/esm/features/store/objects/components/ContentOverview.js.map +0 -1
  2541. package/lib/esm/features/store/objects/components/DocumentIcon.js +0 -34
  2542. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +0 -1
  2543. package/lib/esm/features/store/objects/components/DocumentInput.js +0 -51
  2544. package/lib/esm/features/store/objects/components/DocumentInput.js.map +0 -1
  2545. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +0 -159
  2546. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +0 -1
  2547. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +0 -50
  2548. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +0 -1
  2549. package/lib/esm/features/store/objects/components/SelectDocument.js +0 -58
  2550. package/lib/esm/features/store/objects/components/SelectDocument.js.map +0 -1
  2551. package/lib/esm/features/store/objects/components/SelectDocumentModal.js +0 -7
  2552. package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +0 -1
  2553. package/lib/esm/features/store/objects/components/TextEditorPanel.js +0 -97
  2554. package/lib/esm/features/store/objects/components/TextEditorPanel.js.map +0 -1
  2555. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +0 -92
  2556. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +0 -1
  2557. package/lib/esm/features/store/objects/components/index.js +0 -10
  2558. package/lib/esm/features/store/objects/components/index.js.map +0 -1
  2559. package/lib/esm/features/store/objects/components/useContentPanelHooks.js +0 -191
  2560. package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +0 -1
  2561. package/lib/esm/features/store/objects/components/useDownloadFile.js +0 -194
  2562. package/lib/esm/features/store/objects/components/useDownloadFile.js.map +0 -1
  2563. package/lib/esm/features/store/objects/index.js +0 -11
  2564. package/lib/esm/features/store/objects/index.js.map +0 -1
  2565. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +0 -86
  2566. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +0 -1
  2567. package/lib/esm/features/store/objects/layout/documentLayout.js +0 -19
  2568. package/lib/esm/features/store/objects/layout/documentLayout.js.map +0 -1
  2569. package/lib/esm/features/store/objects/layout/index.js +0 -3
  2570. package/lib/esm/features/store/objects/layout/index.js.map +0 -1
  2571. package/lib/esm/features/store/objects/layout/renderers.js +0 -166
  2572. package/lib/esm/features/store/objects/layout/renderers.js.map +0 -1
  2573. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +0 -181
  2574. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +0 -1
  2575. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +0 -42
  2576. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +0 -1
  2577. package/lib/esm/features/store/objects/search/index.js +0 -3
  2578. package/lib/esm/features/store/objects/search/index.js.map +0 -1
  2579. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +0 -63
  2580. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +0 -1
  2581. package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js +0 -50
  2582. package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js.map +0 -1
  2583. package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js +0 -27
  2584. package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js.map +0 -1
  2585. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +0 -1
  2586. package/lib/esm/features/store/objects/selection/SelectionActions.js +0 -71
  2587. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +0 -1
  2588. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +0 -86
  2589. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +0 -1
  2590. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +0 -57
  2591. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +0 -1
  2592. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +0 -32
  2593. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +0 -1
  2594. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +0 -85
  2595. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +0 -1
  2596. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +0 -119
  2597. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +0 -1
  2598. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +0 -68
  2599. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +0 -1
  2600. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +0 -78
  2601. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +0 -1
  2602. package/lib/esm/features/store/objects/selection/actions/index.js +0 -8
  2603. package/lib/esm/features/store/objects/selection/actions/index.js.map +0 -1
  2604. package/lib/esm/features/store/objects/selection/index.js +0 -5
  2605. package/lib/esm/features/store/objects/selection/index.js.map +0 -1
  2606. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +0 -520
  2607. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +0 -1
  2608. package/lib/esm/features/store/objects/upload/index.js +0 -4
  2609. package/lib/esm/features/store/objects/upload/index.js.map +0 -1
  2610. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +0 -204
  2611. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +0 -1
  2612. package/lib/esm/features/store/objects/upload/useUploadHandler.js +0 -232
  2613. package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +0 -1
  2614. package/lib/esm/features/store/types/ContentObjectTypesSearch.js +0 -84
  2615. package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +0 -1
  2616. package/lib/esm/features/store/types/ContentObjectTypesTable.js +0 -13
  2617. package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +0 -1
  2618. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +0 -25
  2619. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +0 -1
  2620. package/lib/esm/features/store/types/ObjectSchemaEditor.js +0 -104
  2621. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +0 -1
  2622. package/lib/esm/features/store/types/SelectContentType.js +0 -45
  2623. package/lib/esm/features/store/types/SelectContentType.js.map +0 -1
  2624. package/lib/esm/features/store/types/SelectContentTypeModal.js +0 -32
  2625. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +0 -1
  2626. package/lib/esm/features/store/types/TableLayoutEditor.js +0 -78
  2627. package/lib/esm/features/store/types/TableLayoutEditor.js.map +0 -1
  2628. package/lib/esm/features/store/types/TypeRegistry.js.map +0 -1
  2629. package/lib/esm/features/store/types/TypeRegistryProvider.js +0 -53
  2630. package/lib/esm/features/store/types/TypeRegistryProvider.js.map +0 -1
  2631. package/lib/esm/features/store/types/index.js +0 -11
  2632. package/lib/esm/features/store/types/index.js.map +0 -1
  2633. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +0 -98
  2634. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +0 -1
  2635. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +0 -15
  2636. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +0 -1
  2637. package/lib/esm/features/store/types/search/index.js +0 -3
  2638. package/lib/esm/features/store/types/search/index.js.map +0 -1
  2639. package/lib/esm/features/user/UserAvatar.js +0 -18
  2640. package/lib/esm/features/user/UserAvatar.js.map +0 -1
  2641. package/lib/esm/features/user/UserInfo.js +0 -198
  2642. package/lib/esm/features/user/UserInfo.js.map +0 -1
  2643. package/lib/esm/features/user/index.js +0 -3
  2644. package/lib/esm/features/user/index.js.map +0 -1
  2645. package/lib/esm/features/utils/index.js +0 -6
  2646. package/lib/esm/features/utils/index.js.map +0 -1
  2647. package/lib/esm/features/utils/mimeType.js.map +0 -1
  2648. package/lib/esm/features/utils/print.js +0 -180
  2649. package/lib/esm/features/utils/print.js.map +0 -1
  2650. package/lib/esm/features/utils/rendition.js +0 -67
  2651. package/lib/esm/features/utils/rendition.js.map +0 -1
  2652. package/lib/esm/features/utils/text.js +0 -10
  2653. package/lib/esm/features/utils/text.js.map +0 -1
  2654. package/lib/esm/features/utils/workflowStatus.js +0 -43
  2655. package/lib/esm/features/utils/workflowStatus.js.map +0 -1
  2656. package/lib/esm/i18n/index.js +0 -31
  2657. package/lib/esm/i18n/index.js.map +0 -1
  2658. package/lib/esm/i18n/instance.js.map +0 -1
  2659. package/lib/esm/i18n/locales/ar.json +0 -677
  2660. package/lib/esm/i18n/locales/de.json +0 -633
  2661. package/lib/esm/i18n/locales/en.json +0 -633
  2662. package/lib/esm/i18n/locales/es.json +0 -644
  2663. package/lib/esm/i18n/locales/fr.json +0 -644
  2664. package/lib/esm/i18n/locales/it.json +0 -644
  2665. package/lib/esm/i18n/locales/ja.json +0 -633
  2666. package/lib/esm/i18n/locales/ko.json +0 -633
  2667. package/lib/esm/i18n/locales/pt.json +0 -644
  2668. package/lib/esm/i18n/locales/ru.json +0 -655
  2669. package/lib/esm/i18n/locales/tr.json +0 -633
  2670. package/lib/esm/i18n/locales/zh-TW.json +0 -633
  2671. package/lib/esm/i18n/locales/zh.json +0 -633
  2672. package/lib/esm/layout/AppLayout.js +0 -45
  2673. package/lib/esm/layout/AppLayout.js.map +0 -1
  2674. package/lib/esm/layout/FullHeightLayout.js +0 -24
  2675. package/lib/esm/layout/FullHeightLayout.js.map +0 -1
  2676. package/lib/esm/layout/Navbar.js +0 -42
  2677. package/lib/esm/layout/Navbar.js.map +0 -1
  2678. package/lib/esm/layout/RegionTag.js.map +0 -1
  2679. package/lib/esm/layout/Sidebar.js +0 -45
  2680. package/lib/esm/layout/Sidebar.js.map +0 -1
  2681. package/lib/esm/layout/SidebarContext.js +0 -10
  2682. package/lib/esm/layout/SidebarContext.js.map +0 -1
  2683. package/lib/esm/layout/TitleBar.js +0 -5
  2684. package/lib/esm/layout/TitleBar.js.map +0 -1
  2685. package/lib/esm/layout/index.js +0 -8
  2686. package/lib/esm/layout/index.js.map +0 -1
  2687. package/lib/esm/router/FixLinks.js +0 -23
  2688. package/lib/esm/router/FixLinks.js.map +0 -1
  2689. package/lib/esm/router/HistoryNavigator.js +0 -198
  2690. package/lib/esm/router/HistoryNavigator.js.map +0 -1
  2691. package/lib/esm/router/Nav.js +0 -28
  2692. package/lib/esm/router/Nav.js.map +0 -1
  2693. package/lib/esm/router/NestedNavigationContext.js +0 -23
  2694. package/lib/esm/router/NestedNavigationContext.js.map +0 -1
  2695. package/lib/esm/router/NestedRouterProvider.js +0 -46
  2696. package/lib/esm/router/NestedRouterProvider.js.map +0 -1
  2697. package/lib/esm/router/PathMatcher.js +0 -159
  2698. package/lib/esm/router/PathMatcher.js.map +0 -1
  2699. package/lib/esm/router/PathWithParams.js +0 -34
  2700. package/lib/esm/router/PathWithParams.js.map +0 -1
  2701. package/lib/esm/router/Route404.js +0 -18
  2702. package/lib/esm/router/Route404.js.map +0 -1
  2703. package/lib/esm/router/RouteComponent.js +0 -32
  2704. package/lib/esm/router/RouteComponent.js.map +0 -1
  2705. package/lib/esm/router/Router.js +0 -176
  2706. package/lib/esm/router/Router.js.map +0 -1
  2707. package/lib/esm/router/RouterProvider.js +0 -41
  2708. package/lib/esm/router/RouterProvider.js.map +0 -1
  2709. package/lib/esm/router/index.js +0 -11
  2710. package/lib/esm/router/index.js.map +0 -1
  2711. package/lib/esm/router/path.js +0 -140
  2712. package/lib/esm/router/path.js.map +0 -1
  2713. package/lib/esm/session/UserSession.js +0 -221
  2714. package/lib/esm/session/UserSession.js.map +0 -1
  2715. package/lib/esm/session/UserSessionProvider.js +0 -189
  2716. package/lib/esm/session/UserSessionProvider.js.map +0 -1
  2717. package/lib/esm/session/auth/composable.js +0 -273
  2718. package/lib/esm/session/auth/composable.js.map +0 -1
  2719. package/lib/esm/session/auth/domainRouting.js.map +0 -1
  2720. package/lib/esm/session/auth/firebase.js +0 -158
  2721. package/lib/esm/session/auth/firebase.js.map +0 -1
  2722. package/lib/esm/session/auth/useAuthState.js +0 -46
  2723. package/lib/esm/session/auth/useAuthState.js.map +0 -1
  2724. package/lib/esm/session/auth/useCurrentTenant.js +0 -65
  2725. package/lib/esm/session/auth/useCurrentTenant.js.map +0 -1
  2726. package/lib/esm/session/constants.js.map +0 -1
  2727. package/lib/esm/session/index.js +0 -8
  2728. package/lib/esm/session/index.js.map +0 -1
  2729. package/lib/esm/session/useUXTracking.js +0 -29
  2730. package/lib/esm/session/useUXTracking.js.map +0 -1
  2731. package/lib/esm/shell/SplashScreen.js +0 -22
  2732. package/lib/esm/shell/SplashScreen.js.map +0 -1
  2733. package/lib/esm/shell/VertesiaShell.js +0 -10
  2734. package/lib/esm/shell/VertesiaShell.js.map +0 -1
  2735. package/lib/esm/shell/apps/AppInstallationProvider.js +0 -13
  2736. package/lib/esm/shell/apps/AppInstallationProvider.js.map +0 -1
  2737. package/lib/esm/shell/apps/AppProjectSelector.js +0 -36
  2738. package/lib/esm/shell/apps/AppProjectSelector.js.map +0 -1
  2739. package/lib/esm/shell/apps/StandaloneApp.js +0 -90
  2740. package/lib/esm/shell/apps/StandaloneApp.js.map +0 -1
  2741. package/lib/esm/shell/apps/index.js +0 -4
  2742. package/lib/esm/shell/apps/index.js.map +0 -1
  2743. package/lib/esm/shell/index.js +0 -8
  2744. package/lib/esm/shell/index.js.map +0 -1
  2745. package/lib/esm/shell/login/EnterpriseSigninButton.js +0 -86
  2746. package/lib/esm/shell/login/EnterpriseSigninButton.js.map +0 -1
  2747. package/lib/esm/shell/login/GitHubSignInButton.js +0 -20
  2748. package/lib/esm/shell/login/GitHubSignInButton.js.map +0 -1
  2749. package/lib/esm/shell/login/GoogleSignInButton.js +0 -27
  2750. package/lib/esm/shell/login/GoogleSignInButton.js.map +0 -1
  2751. package/lib/esm/shell/login/InviteAcceptModal.js +0 -66
  2752. package/lib/esm/shell/login/InviteAcceptModal.js.map +0 -1
  2753. package/lib/esm/shell/login/MicrosoftSigninButton.js +0 -17
  2754. package/lib/esm/shell/login/MicrosoftSigninButton.js.map +0 -1
  2755. package/lib/esm/shell/login/PreviewIcon.js +0 -23
  2756. package/lib/esm/shell/login/PreviewIcon.js.map +0 -1
  2757. package/lib/esm/shell/login/SignInModal.js +0 -9
  2758. package/lib/esm/shell/login/SignInModal.js.map +0 -1
  2759. package/lib/esm/shell/login/SigninScreen.js +0 -68
  2760. package/lib/esm/shell/login/SigninScreen.js.map +0 -1
  2761. package/lib/esm/shell/login/SignupForm.js +0 -93
  2762. package/lib/esm/shell/login/SignupForm.js.map +0 -1
  2763. package/lib/esm/shell/login/TerminalLogin.js +0 -215
  2764. package/lib/esm/shell/login/TerminalLogin.js.map +0 -1
  2765. package/lib/esm/shell/login/UserInfo.js +0 -43
  2766. package/lib/esm/shell/login/UserInfo.js.map +0 -1
  2767. package/lib/esm/shell/login/UserSessionMenu.js +0 -36
  2768. package/lib/esm/shell/login/UserSessionMenu.js.map +0 -1
  2769. package/lib/esm/shell/utils.js +0 -6
  2770. package/lib/esm/shell/utils.js.map +0 -1
  2771. package/lib/esm/widgets/Progress.js.map +0 -1
  2772. package/lib/esm/widgets/SvgIcon.js +0 -36
  2773. package/lib/esm/widgets/SvgIcon.js.map +0 -1
  2774. package/lib/esm/widgets/form/Form.js +0 -100
  2775. package/lib/esm/widgets/form/Form.js.map +0 -1
  2776. package/lib/esm/widgets/form/FormContext.js +0 -31
  2777. package/lib/esm/widgets/form/FormContext.js.map +0 -1
  2778. package/lib/esm/widgets/form/ManagedObject.js +0 -287
  2779. package/lib/esm/widgets/form/ManagedObject.js.map +0 -1
  2780. package/lib/esm/widgets/form/fields.js +0 -12
  2781. package/lib/esm/widgets/form/fields.js.map +0 -1
  2782. package/lib/esm/widgets/form/index.js +0 -7
  2783. package/lib/esm/widgets/form/index.js.map +0 -1
  2784. package/lib/esm/widgets/form/inputs.js +0 -38
  2785. package/lib/esm/widgets/form/inputs.js.map +0 -1
  2786. package/lib/esm/widgets/form/schema.js +0 -199
  2787. package/lib/esm/widgets/form/schema.js.map +0 -1
  2788. package/lib/esm/widgets/index.js +0 -11
  2789. package/lib/esm/widgets/index.js.map +0 -1
  2790. package/lib/esm/widgets/json-view/JSONCode.js +0 -22
  2791. package/lib/esm/widgets/json-view/JSONCode.js.map +0 -1
  2792. package/lib/esm/widgets/json-view/JSONDisplay.js +0 -14
  2793. package/lib/esm/widgets/json-view/JSONDisplay.js.map +0 -1
  2794. package/lib/esm/widgets/json-view/JSONSwitcher.js +0 -6
  2795. package/lib/esm/widgets/json-view/JSONSwitcher.js.map +0 -1
  2796. package/lib/esm/widgets/json-view/JSONView.js +0 -106
  2797. package/lib/esm/widgets/json-view/JSONView.js.map +0 -1
  2798. package/lib/esm/widgets/json-view/index.js +0 -5
  2799. package/lib/esm/widgets/json-view/index.js.map +0 -1
  2800. package/lib/esm/widgets/json-view/types.js.map +0 -1
  2801. package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +0 -229
  2802. package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +0 -1
  2803. package/lib/esm/widgets/markdown/CodeBlockContext.js.map +0 -1
  2804. package/lib/esm/widgets/markdown/CodeBlockPlaceholder.js +0 -56
  2805. package/lib/esm/widgets/markdown/CodeBlockPlaceholder.js.map +0 -1
  2806. package/lib/esm/widgets/markdown/CodeBlockPlaceholder.test.js +0 -50
  2807. package/lib/esm/widgets/markdown/CodeBlockPlaceholder.test.js.map +0 -1
  2808. package/lib/esm/widgets/markdown/CodeBlockRendering.js +0 -38
  2809. package/lib/esm/widgets/markdown/CodeBlockRendering.js.map +0 -1
  2810. package/lib/esm/widgets/markdown/MarkdownFigure.js +0 -40
  2811. package/lib/esm/widgets/markdown/MarkdownFigure.js.map +0 -1
  2812. package/lib/esm/widgets/markdown/MarkdownImage.js +0 -41
  2813. package/lib/esm/widgets/markdown/MarkdownImage.js.map +0 -1
  2814. package/lib/esm/widgets/markdown/MarkdownLink.js +0 -46
  2815. package/lib/esm/widgets/markdown/MarkdownLink.js.map +0 -1
  2816. package/lib/esm/widgets/markdown/MarkdownRenderer.js +0 -163
  2817. package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +0 -1
  2818. package/lib/esm/widgets/markdown/MermaidDiagram.js +0 -148
  2819. package/lib/esm/widgets/markdown/MermaidDiagram.js.map +0 -1
  2820. package/lib/esm/widgets/markdown/codeBlockHandlers.js +0 -329
  2821. package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +0 -1
  2822. package/lib/esm/widgets/markdown/codeBlockHandlers.test.js +0 -179
  2823. package/lib/esm/widgets/markdown/codeBlockHandlers.test.js.map +0 -1
  2824. package/lib/esm/widgets/markdown/index.js +0 -13
  2825. package/lib/esm/widgets/markdown/index.js.map +0 -1
  2826. package/lib/esm/widgets/markdown/normalizeCustomSchemeLinks.js +0 -77
  2827. package/lib/esm/widgets/markdown/normalizeCustomSchemeLinks.js.map +0 -1
  2828. package/lib/esm/widgets/markdown/normalizeDirectives.js +0 -45
  2829. package/lib/esm/widgets/markdown/normalizeDirectives.js.map +0 -1
  2830. package/lib/esm/widgets/markdown/preprocessMathDelimiters.js +0 -226
  2831. package/lib/esm/widgets/markdown/preprocessMathDelimiters.js.map +0 -1
  2832. package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +0 -95
  2833. package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +0 -1
  2834. package/lib/esm/widgets/markdown/useArtifactContent.js +0 -174
  2835. package/lib/esm/widgets/markdown/useArtifactContent.js.map +0 -1
  2836. package/lib/esm/widgets/markdown/useResolvedUrl.js +0 -175
  2837. package/lib/esm/widgets/markdown/useResolvedUrl.js.map +0 -1
  2838. package/lib/esm/widgets/monacoEditor/MonacoEditor.js +0 -169
  2839. package/lib/esm/widgets/monacoEditor/MonacoEditor.js.map +0 -1
  2840. package/lib/esm/widgets/monacoEditor/foldingProviders.js +0 -132
  2841. package/lib/esm/widgets/monacoEditor/foldingProviders.js.map +0 -1
  2842. package/lib/esm/widgets/monacoEditor/index.js +0 -2
  2843. package/lib/esm/widgets/monacoEditor/index.js.map +0 -1
  2844. package/lib/esm/widgets/properties/PropertiesView.js +0 -8
  2845. package/lib/esm/widgets/properties/PropertiesView.js.map +0 -1
  2846. package/lib/esm/widgets/properties/index.js +0 -2
  2847. package/lib/esm/widgets/properties/index.js.map +0 -1
  2848. package/lib/esm/widgets/schema-editor/ManagedSchema.js +0 -301
  2849. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +0 -1
  2850. package/lib/esm/widgets/schema-editor/editor/Editable.js +0 -110
  2851. package/lib/esm/widgets/schema-editor/editor/Editable.js.map +0 -1
  2852. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js +0 -8
  2853. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js.map +0 -1
  2854. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +0 -85
  2855. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +0 -1
  2856. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +0 -7
  2857. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +0 -1
  2858. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js +0 -9
  2859. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js.map +0 -1
  2860. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +0 -86
  2861. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +0 -1
  2862. package/lib/esm/widgets/schema-editor/index.js +0 -7
  2863. package/lib/esm/widgets/schema-editor/index.js.map +0 -1
  2864. package/lib/esm/widgets/schema-editor/json-schema4-utils.js +0 -188
  2865. package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +0 -1
  2866. package/lib/esm/widgets/schema-editor/type-signature.js.map +0 -1
  2867. package/lib/esm/widgets/upload/DropZone.js +0 -173
  2868. package/lib/esm/widgets/upload/DropZone.js.map +0 -1
  2869. package/lib/esm/widgets/upload/UploadResultCategory.js +0 -21
  2870. package/lib/esm/widgets/upload/UploadResultCategory.js.map +0 -1
  2871. package/lib/esm/widgets/upload/UploadSummary.js +0 -32
  2872. package/lib/esm/widgets/upload/UploadSummary.js.map +0 -1
  2873. package/lib/esm/widgets/upload/index.js.map +0 -1
  2874. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js.map +0 -1
  2875. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js.map +0 -1
  2876. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js +0 -11
  2877. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js.map +0 -1
  2878. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js.map +0 -1
  2879. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js.map +0 -1
  2880. package/lib/esm/widgets/xml-viewer/components/Elements/index.js.map +0 -1
  2881. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js.map +0 -1
  2882. package/lib/esm/widgets/xml-viewer/components/Tag/index.js.map +0 -1
  2883. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js.map +0 -1
  2884. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js.map +0 -1
  2885. package/lib/esm/widgets/xml-viewer/components/types.js.map +0 -1
  2886. package/lib/esm/widgets/xml-viewer/constants/index.js.map +0 -1
  2887. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js.map +0 -1
  2888. package/lib/esm/widgets/xml-viewer/helpers/index.js +0 -40
  2889. package/lib/esm/widgets/xml-viewer/helpers/index.js.map +0 -1
  2890. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js.map +0 -1
  2891. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js +0 -31
  2892. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js.map +0 -1
  2893. package/lib/esm/widgets/xml-viewer/index.js +0 -3
  2894. package/lib/esm/widgets/xml-viewer/index.js.map +0 -1
  2895. package/lib/esm/widgets/xml-viewer/types/index.js.map +0 -1
  2896. package/lib/tsconfig.tsbuildinfo +0 -1
  2897. package/lib/types/core/components/Avatar.d.ts +0 -16
  2898. package/lib/types/core/components/Avatar.d.ts.map +0 -1
  2899. package/lib/types/core/components/Center.d.ts +0 -8
  2900. package/lib/types/core/components/Center.d.ts.map +0 -1
  2901. package/lib/types/core/components/ComboBox.d.ts +0 -134
  2902. package/lib/types/core/components/ComboBox.d.ts.map +0 -1
  2903. package/lib/types/core/components/Divider.d.ts +0 -6
  2904. package/lib/types/core/components/Divider.d.ts.map +0 -1
  2905. package/lib/types/core/components/EmptyCollection.d.ts +0 -9
  2906. package/lib/types/core/components/EmptyCollection.d.ts.map +0 -1
  2907. package/lib/types/core/components/FileUpload.d.ts +0 -29
  2908. package/lib/types/core/components/FileUpload.d.ts.map +0 -1
  2909. package/lib/types/core/components/FormItem.d.ts +0 -16
  2910. package/lib/types/core/components/FormItem.d.ts.map +0 -1
  2911. package/lib/types/core/components/InputList.d.ts +0 -12
  2912. package/lib/types/core/components/InputList.d.ts.map +0 -1
  2913. package/lib/types/core/components/Link.d.ts +0 -7
  2914. package/lib/types/core/components/Link.d.ts.map +0 -1
  2915. package/lib/types/core/components/MenuList.d.ts +0 -14
  2916. package/lib/types/core/components/MenuList.d.ts.map +0 -1
  2917. package/lib/types/core/components/NumberInput.d.ts +0 -16
  2918. package/lib/types/core/components/NumberInput.d.ts.map +0 -1
  2919. package/lib/types/core/components/Overlay.d.ts +0 -25
  2920. package/lib/types/core/components/Overlay.d.ts.map +0 -1
  2921. package/lib/types/core/components/Portal.d.ts +0 -6
  2922. package/lib/types/core/components/Portal.d.ts.map +0 -1
  2923. package/lib/types/core/components/SelectList.d.ts +0 -19
  2924. package/lib/types/core/components/SelectList.d.ts.map +0 -1
  2925. package/lib/types/core/components/SidePanel.d.ts +0 -16
  2926. package/lib/types/core/components/SidePanel.d.ts.map +0 -1
  2927. package/lib/types/core/components/Spinner.d.ts +0 -7
  2928. package/lib/types/core/components/Spinner.d.ts.map +0 -1
  2929. package/lib/types/core/components/TagsInput.d.ts +0 -16
  2930. package/lib/types/core/components/TagsInput.d.ts.map +0 -1
  2931. package/lib/types/core/components/index.d.ts +0 -27
  2932. package/lib/types/core/components/index.d.ts.map +0 -1
  2933. package/lib/types/core/components/libs/utils.d.ts +0 -3
  2934. package/lib/types/core/components/libs/utils.d.ts.map +0 -1
  2935. package/lib/types/core/components/libs/visuallyHidden.d.ts +0 -7
  2936. package/lib/types/core/components/libs/visuallyHidden.d.ts.map +0 -1
  2937. package/lib/types/core/components/popup/Popup.d.ts +0 -26
  2938. package/lib/types/core/components/popup/Popup.d.ts.map +0 -1
  2939. package/lib/types/core/components/popup/PopupController.d.ts +0 -41
  2940. package/lib/types/core/components/popup/PopupController.d.ts.map +0 -1
  2941. package/lib/types/core/components/popup/index.d.ts +0 -4
  2942. package/lib/types/core/components/popup/index.d.ts.map +0 -1
  2943. package/lib/types/core/components/popup/position.d.ts.map +0 -1
  2944. package/lib/types/core/components/popup/utils.d.ts.map +0 -1
  2945. package/lib/types/core/components/shadcn/MessageBox.d.ts +0 -36
  2946. package/lib/types/core/components/shadcn/MessageBox.d.ts.map +0 -1
  2947. package/lib/types/core/components/shadcn/Panel.d.ts +0 -13
  2948. package/lib/types/core/components/shadcn/Panel.d.ts.map +0 -1
  2949. package/lib/types/core/components/shadcn/badge.d.ts +0 -21
  2950. package/lib/types/core/components/shadcn/badge.d.ts.map +0 -1
  2951. package/lib/types/core/components/shadcn/breadcrumb.d.ts +0 -15
  2952. package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +0 -1
  2953. package/lib/types/core/components/shadcn/button.d.ts +0 -27
  2954. package/lib/types/core/components/shadcn/button.d.ts.map +0 -1
  2955. package/lib/types/core/components/shadcn/calendar.d.ts +0 -11
  2956. package/lib/types/core/components/shadcn/calendar.d.ts.map +0 -1
  2957. package/lib/types/core/components/shadcn/card.d.ts +0 -9
  2958. package/lib/types/core/components/shadcn/card.d.ts.map +0 -1
  2959. package/lib/types/core/components/shadcn/checkbox.d.ts +0 -5
  2960. package/lib/types/core/components/shadcn/checkbox.d.ts.map +0 -1
  2961. package/lib/types/core/components/shadcn/collaspible.d.ts +0 -6
  2962. package/lib/types/core/components/shadcn/collaspible.d.ts.map +0 -1
  2963. package/lib/types/core/components/shadcn/command.d.ts +0 -17
  2964. package/lib/types/core/components/shadcn/command.d.ts.map +0 -1
  2965. package/lib/types/core/components/shadcn/dropdown.d.ts +0 -52
  2966. package/lib/types/core/components/shadcn/dropdown.d.ts.map +0 -1
  2967. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +0 -9
  2968. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts.map +0 -1
  2969. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts.map +0 -1
  2970. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts +0 -6
  2971. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +0 -1
  2972. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts +0 -10
  2973. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +0 -1
  2974. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts +0 -6
  2975. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts.map +0 -1
  2976. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts +0 -6
  2977. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts.map +0 -1
  2978. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts +0 -5
  2979. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts.map +0 -1
  2980. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts +0 -12
  2981. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts.map +0 -1
  2982. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts +0 -11
  2983. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts.map +0 -1
  2984. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts +0 -13
  2985. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts.map +0 -1
  2986. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts +0 -14
  2987. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +0 -1
  2988. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts.map +0 -1
  2989. package/lib/types/core/components/shadcn/filters/filterBar.d.ts +0 -21
  2990. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +0 -1
  2991. package/lib/types/core/components/shadcn/filters/filters.d.ts +0 -10
  2992. package/lib/types/core/components/shadcn/filters/filters.d.ts.map +0 -1
  2993. package/lib/types/core/components/shadcn/filters/index.d.ts.map +0 -1
  2994. package/lib/types/core/components/shadcn/filters/types.d.ts +0 -35
  2995. package/lib/types/core/components/shadcn/filters/types.d.ts.map +0 -1
  2996. package/lib/types/core/components/shadcn/heading.d.ts +0 -6
  2997. package/lib/types/core/components/shadcn/heading.d.ts.map +0 -1
  2998. package/lib/types/core/components/shadcn/index.d.ts +0 -29
  2999. package/lib/types/core/components/shadcn/index.d.ts.map +0 -1
  3000. package/lib/types/core/components/shadcn/input.d.ts +0 -17
  3001. package/lib/types/core/components/shadcn/input.d.ts.map +0 -1
  3002. package/lib/types/core/components/shadcn/label.d.ts +0 -10
  3003. package/lib/types/core/components/shadcn/label.d.ts.map +0 -1
  3004. package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts +0 -12
  3005. package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +0 -1
  3006. package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts +0 -11
  3007. package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +0 -1
  3008. package/lib/types/core/components/shadcn/modal/dialog.d.ts +0 -41
  3009. package/lib/types/core/components/shadcn/modal/dialog.d.ts.map +0 -1
  3010. package/lib/types/core/components/shadcn/modal/index.d.ts +0 -4
  3011. package/lib/types/core/components/shadcn/modal/index.d.ts.map +0 -1
  3012. package/lib/types/core/components/shadcn/popover.d.ts +0 -32
  3013. package/lib/types/core/components/shadcn/popover.d.ts.map +0 -1
  3014. package/lib/types/core/components/shadcn/radioGroup.d.ts +0 -26
  3015. package/lib/types/core/components/shadcn/radioGroup.d.ts.map +0 -1
  3016. package/lib/types/core/components/shadcn/resizeable.d.ts +0 -9
  3017. package/lib/types/core/components/shadcn/resizeable.d.ts.map +0 -1
  3018. package/lib/types/core/components/shadcn/selectBox.d.ts +0 -40
  3019. package/lib/types/core/components/shadcn/selectBox.d.ts.map +0 -1
  3020. package/lib/types/core/components/shadcn/separator.d.ts +0 -6
  3021. package/lib/types/core/components/shadcn/separator.d.ts.map +0 -1
  3022. package/lib/types/core/components/shadcn/switch.d.ts +0 -12
  3023. package/lib/types/core/components/shadcn/switch.d.ts.map +0 -1
  3024. package/lib/types/core/components/shadcn/tabs.d.ts +0 -49
  3025. package/lib/types/core/components/shadcn/tabs.d.ts.map +0 -1
  3026. package/lib/types/core/components/shadcn/text.d.ts +0 -11
  3027. package/lib/types/core/components/shadcn/text.d.ts.map +0 -1
  3028. package/lib/types/core/components/shadcn/textarea.d.ts +0 -8
  3029. package/lib/types/core/components/shadcn/textarea.d.ts.map +0 -1
  3030. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts +0 -15
  3031. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts.map +0 -1
  3032. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +0 -16
  3033. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +0 -1
  3034. package/lib/types/core/components/shadcn/tooltip.d.ts +0 -21
  3035. package/lib/types/core/components/shadcn/tooltip.d.ts.map +0 -1
  3036. package/lib/types/core/components/styles.d.ts.map +0 -1
  3037. package/lib/types/core/components/table/index.d.ts +0 -19
  3038. package/lib/types/core/components/table/index.d.ts.map +0 -1
  3039. package/lib/types/core/components/toast/NotificationPanel.d.ts +0 -8
  3040. package/lib/types/core/components/toast/NotificationPanel.d.ts.map +0 -1
  3041. package/lib/types/core/components/toast/ToastContext.d.ts +0 -6
  3042. package/lib/types/core/components/toast/ToastContext.d.ts.map +0 -1
  3043. package/lib/types/core/components/toast/ToastProps.d.ts.map +0 -1
  3044. package/lib/types/core/components/toast/ToastProvider.d.ts +0 -6
  3045. package/lib/types/core/components/toast/ToastProvider.d.ts.map +0 -1
  3046. package/lib/types/core/components/toast/index.d.ts +0 -3
  3047. package/lib/types/core/components/toast/index.d.ts.map +0 -1
  3048. package/lib/types/core/hooks/CompositeState.d.ts +0 -137
  3049. package/lib/types/core/hooks/CompositeState.d.ts.map +0 -1
  3050. package/lib/types/core/hooks/PortalContainerProvider.d.ts +0 -8
  3051. package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +0 -1
  3052. package/lib/types/core/hooks/SharedState.d.ts +0 -10
  3053. package/lib/types/core/hooks/SharedState.d.ts.map +0 -1
  3054. package/lib/types/core/hooks/index.d.ts +0 -16
  3055. package/lib/types/core/hooks/index.d.ts.map +0 -1
  3056. package/lib/types/core/hooks/useClickOutside.d.ts.map +0 -1
  3057. package/lib/types/core/hooks/useCopyToClipboard.d.ts.map +0 -1
  3058. package/lib/types/core/hooks/useDarkMode.d.ts.map +0 -1
  3059. package/lib/types/core/hooks/useDebounce.d.ts.map +0 -1
  3060. package/lib/types/core/hooks/useEventSource.d.ts +0 -2
  3061. package/lib/types/core/hooks/useEventSource.d.ts.map +0 -1
  3062. package/lib/types/core/hooks/useFetch.d.ts +0 -24
  3063. package/lib/types/core/hooks/useFetch.d.ts.map +0 -1
  3064. package/lib/types/core/hooks/useFlag.d.ts.map +0 -1
  3065. package/lib/types/core/hooks/useIntersectionObserver.d.ts +0 -14
  3066. package/lib/types/core/hooks/useIntersectionObserver.d.ts.map +0 -1
  3067. package/lib/types/core/hooks/useIsFistRendering.d.ts.map +0 -1
  3068. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts +0 -4
  3069. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts.map +0 -1
  3070. package/lib/types/core/hooks/useScrollableSearch.d.ts +0 -82
  3071. package/lib/types/core/hooks/useScrollableSearch.d.ts.map +0 -1
  3072. package/lib/types/core/hooks/useSharedValue.d.ts +0 -12
  3073. package/lib/types/core/hooks/useSharedValue.d.ts.map +0 -1
  3074. package/lib/types/core/index.d.ts +0 -4
  3075. package/lib/types/core/index.d.ts.map +0 -1
  3076. package/lib/types/core/utils/cn.d.ts +0 -3
  3077. package/lib/types/core/utils/cn.d.ts.map +0 -1
  3078. package/lib/types/core/utils/index.d.ts +0 -2
  3079. package/lib/types/core/utils/index.d.ts.map +0 -1
  3080. package/lib/types/env/index.d.ts +0 -85
  3081. package/lib/types/env/index.d.ts.map +0 -1
  3082. package/lib/types/features/activity-doc/ActivityDoc.d.ts +0 -14
  3083. package/lib/types/features/activity-doc/ActivityDoc.d.ts.map +0 -1
  3084. package/lib/types/features/activity-doc/index.d.ts +0 -2
  3085. package/lib/types/features/activity-doc/index.d.ts.map +0 -1
  3086. package/lib/types/features/agent/PayloadBuilder.d.ts +0 -120
  3087. package/lib/types/features/agent/PayloadBuilder.d.ts.map +0 -1
  3088. package/lib/types/features/agent/chat/AgentChart.d.ts +0 -34
  3089. package/lib/types/features/agent/chat/AgentChart.d.ts.map +0 -1
  3090. package/lib/types/features/agent/chat/AgentRightPanel.d.ts +0 -55
  3091. package/lib/types/features/agent/chat/AgentRightPanel.d.ts.map +0 -1
  3092. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +0 -38
  3093. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts.map +0 -1
  3094. package/lib/types/features/agent/chat/ArtifactsTab.d.ts +0 -9
  3095. package/lib/types/features/agent/chat/ArtifactsTab.d.ts.map +0 -1
  3096. package/lib/types/features/agent/chat/AskUserWidget.d.ts +0 -84
  3097. package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +0 -1
  3098. package/lib/types/features/agent/chat/DocumentPanel.d.ts +0 -16
  3099. package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +0 -1
  3100. package/lib/types/features/agent/chat/DocumentTabBar.d.ts +0 -9
  3101. package/lib/types/features/agent/chat/DocumentTabBar.d.ts.map +0 -1
  3102. package/lib/types/features/agent/chat/ImageLightbox.d.ts +0 -18
  3103. package/lib/types/features/agent/chat/ImageLightbox.d.ts.map +0 -1
  3104. package/lib/types/features/agent/chat/JumpingDots.d.ts +0 -7
  3105. package/lib/types/features/agent/chat/JumpingDots.d.ts.map +0 -1
  3106. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +0 -147
  3107. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +0 -1
  3108. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +0 -68
  3109. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +0 -1
  3110. package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts +0 -26
  3111. package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +0 -1
  3112. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +0 -33
  3113. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +0 -1
  3114. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +0 -11
  3115. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts.map +0 -1
  3116. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +0 -18
  3117. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +0 -1
  3118. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +0 -62
  3119. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +0 -1
  3120. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +0 -58
  3121. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +0 -1
  3122. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +0 -15
  3123. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts.map +0 -1
  3124. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +0 -9
  3125. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +0 -1
  3126. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +0 -11
  3127. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts.map +0 -1
  3128. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +0 -8
  3129. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts.map +0 -1
  3130. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +0 -10
  3131. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +0 -1
  3132. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +0 -8
  3133. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts.map +0 -1
  3134. package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +0 -38
  3135. package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +0 -1
  3136. package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +0 -34
  3137. package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +0 -1
  3138. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +0 -22
  3139. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +0 -1
  3140. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +0 -139
  3141. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +0 -1
  3142. package/lib/types/features/agent/chat/SkillWidgetProvider.d.ts +0 -11
  3143. package/lib/types/features/agent/chat/SkillWidgetProvider.d.ts.map +0 -1
  3144. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +0 -18
  3145. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +0 -1
  3146. package/lib/types/features/agent/chat/VegaLiteChart.d.ts +0 -18
  3147. package/lib/types/features/agent/chat/VegaLiteChart.d.ts.map +0 -1
  3148. package/lib/types/features/agent/chat/WaitingMessages.d.ts.map +0 -1
  3149. package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts +0 -22
  3150. package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +0 -1
  3151. package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +0 -44
  3152. package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +0 -1
  3153. package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts +0 -18
  3154. package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts.map +0 -1
  3155. package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts +0 -23
  3156. package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +0 -1
  3157. package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +0 -27
  3158. package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +0 -1
  3159. package/lib/types/features/agent/chat/index.d.ts +0 -21
  3160. package/lib/types/features/agent/chat/index.d.ts.map +0 -1
  3161. package/lib/types/features/agent/chat/types/document.d.ts.map +0 -1
  3162. package/lib/types/features/agent/chat/useArtifactUrlCache.d.ts +0 -28
  3163. package/lib/types/features/agent/chat/useArtifactUrlCache.d.ts.map +0 -1
  3164. package/lib/types/features/agent/index.d.ts +0 -3
  3165. package/lib/types/features/agent/index.d.ts.map +0 -1
  3166. package/lib/types/features/errors/PanelErrorBoundary.d.ts +0 -5
  3167. package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +0 -1
  3168. package/lib/types/features/errors/RowErrorBoundary.d.ts +0 -8
  3169. package/lib/types/features/errors/RowErrorBoundary.d.ts.map +0 -1
  3170. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +0 -12
  3171. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts.map +0 -1
  3172. package/lib/types/features/errors/WidgetErrorBoundary.d.ts +0 -5
  3173. package/lib/types/features/errors/WidgetErrorBoundary.d.ts.map +0 -1
  3174. package/lib/types/features/errors/index.d.ts +0 -5
  3175. package/lib/types/features/errors/index.d.ts.map +0 -1
  3176. package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts +0 -17
  3177. package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts.map +0 -1
  3178. package/lib/types/features/facets/CollectionsFacetsNav.d.ts +0 -14
  3179. package/lib/types/features/facets/CollectionsFacetsNav.d.ts.map +0 -1
  3180. package/lib/types/features/facets/DocumentsFacetsNav.d.ts +0 -12
  3181. package/lib/types/features/facets/DocumentsFacetsNav.d.ts.map +0 -1
  3182. package/lib/types/features/facets/EnvironmentFacet.d.ts +0 -10
  3183. package/lib/types/features/facets/EnvironmentFacet.d.ts.map +0 -1
  3184. package/lib/types/features/facets/InteractionsFacetsNav.d.ts +0 -13
  3185. package/lib/types/features/facets/InteractionsFacetsNav.d.ts.map +0 -1
  3186. package/lib/types/features/facets/PromptsFacetsNav.d.ts +0 -15
  3187. package/lib/types/features/facets/PromptsFacetsNav.d.ts.map +0 -1
  3188. package/lib/types/features/facets/RunsFacetsNav.d.ts +0 -22
  3189. package/lib/types/features/facets/RunsFacetsNav.d.ts.map +0 -1
  3190. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts +0 -14
  3191. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts.map +0 -1
  3192. package/lib/types/features/facets/index.d.ts +0 -17
  3193. package/lib/types/features/facets/index.d.ts.map +0 -1
  3194. package/lib/types/features/facets/utils/SearchInterface.d.ts +0 -16
  3195. package/lib/types/features/facets/utils/SearchInterface.d.ts.map +0 -1
  3196. package/lib/types/features/facets/utils/StringFacet.d.ts +0 -11
  3197. package/lib/types/features/facets/utils/StringFacet.d.ts.map +0 -1
  3198. package/lib/types/features/facets/utils/StringListFacet.d.ts +0 -11
  3199. package/lib/types/features/facets/utils/StringListFacet.d.ts.map +0 -1
  3200. package/lib/types/features/facets/utils/TypeFacet.d.ts +0 -16
  3201. package/lib/types/features/facets/utils/TypeFacet.d.ts.map +0 -1
  3202. package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts +0 -12
  3203. package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts.map +0 -1
  3204. package/lib/types/features/facets/utils/VInteractionFacet.d.ts +0 -15
  3205. package/lib/types/features/facets/utils/VInteractionFacet.d.ts.map +0 -1
  3206. package/lib/types/features/facets/utils/VStringFacet.d.ts +0 -21
  3207. package/lib/types/features/facets/utils/VStringFacet.d.ts.map +0 -1
  3208. package/lib/types/features/facets/utils/VTypeFacet.d.ts +0 -12
  3209. package/lib/types/features/facets/utils/VTypeFacet.d.ts.map +0 -1
  3210. package/lib/types/features/facets/utils/VUserFacet.d.ts +0 -11
  3211. package/lib/types/features/facets/utils/VUserFacet.d.ts.map +0 -1
  3212. package/lib/types/features/facets/utils/utils.d.ts +0 -4
  3213. package/lib/types/features/facets/utils/utils.d.ts.map +0 -1
  3214. package/lib/types/features/index.d.ts +0 -13
  3215. package/lib/types/features/index.d.ts.map +0 -1
  3216. package/lib/types/features/layout/GenericPageNavHeader.d.ts +0 -14
  3217. package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +0 -1
  3218. package/lib/types/features/layout/NotFoundView.d.ts +0 -5
  3219. package/lib/types/features/layout/NotFoundView.d.ts.map +0 -1
  3220. package/lib/types/features/layout/index.d.ts +0 -3
  3221. package/lib/types/features/layout/index.d.ts.map +0 -1
  3222. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts +0 -13
  3223. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +0 -1
  3224. package/lib/types/features/magic-pdf/DownloadPopover.d.ts +0 -7
  3225. package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +0 -1
  3226. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts +0 -8
  3227. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts.map +0 -1
  3228. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts +0 -58
  3229. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts.map +0 -1
  3230. package/lib/types/features/magic-pdf/MagicPdfView.d.ts +0 -7
  3231. package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +0 -1
  3232. package/lib/types/features/magic-pdf/index.d.ts +0 -2
  3233. package/lib/types/features/magic-pdf/index.d.ts.map +0 -1
  3234. package/lib/types/features/magic-pdf/types.d.ts +0 -2
  3235. package/lib/types/features/magic-pdf/types.d.ts.map +0 -1
  3236. package/lib/types/features/oauth/OAuthProviderConnectButton.d.ts +0 -11
  3237. package/lib/types/features/oauth/OAuthProviderConnectButton.d.ts.map +0 -1
  3238. package/lib/types/features/oauth/RemoteMcpConnectionButton.d.ts +0 -25
  3239. package/lib/types/features/oauth/RemoteMcpConnectionButton.d.ts.map +0 -1
  3240. package/lib/types/features/oauth/index.d.ts.map +0 -1
  3241. package/lib/types/features/oauth/useOAuthPopup.d.ts.map +0 -1
  3242. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts +0 -83
  3243. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts.map +0 -1
  3244. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts +0 -29
  3245. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +0 -1
  3246. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts +0 -19
  3247. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +0 -1
  3248. package/lib/types/features/pdf-viewer/index.d.ts.map +0 -1
  3249. package/lib/types/features/permissions/SecureButton.d.ts +0 -8
  3250. package/lib/types/features/permissions/SecureButton.d.ts.map +0 -1
  3251. package/lib/types/features/permissions/SecureSidebarItem.d.ts +0 -8
  3252. package/lib/types/features/permissions/SecureSidebarItem.d.ts.map +0 -1
  3253. package/lib/types/features/permissions/UserPermissionsProvider.d.ts +0 -21
  3254. package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +0 -1
  3255. package/lib/types/features/permissions/helpers.d.ts +0 -5
  3256. package/lib/types/features/permissions/helpers.d.ts.map +0 -1
  3257. package/lib/types/features/permissions/index.d.ts +0 -5
  3258. package/lib/types/features/permissions/index.d.ts.map +0 -1
  3259. package/lib/types/features/store/collections/BrowseCollectionView.d.ts +0 -7
  3260. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +0 -1
  3261. package/lib/types/features/store/collections/CollectionsTable.d.ts +0 -10
  3262. package/lib/types/features/store/collections/CollectionsTable.d.ts.map +0 -1
  3263. package/lib/types/features/store/collections/CreateCollection.d.ts +0 -13
  3264. package/lib/types/features/store/collections/CreateCollection.d.ts.map +0 -1
  3265. package/lib/types/features/store/collections/EditCollectionView.d.ts +0 -8
  3266. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +0 -1
  3267. package/lib/types/features/store/collections/SelectCollection.d.ts +0 -20
  3268. package/lib/types/features/store/collections/SelectCollection.d.ts.map +0 -1
  3269. package/lib/types/features/store/collections/SharedPropsEditor.d.ts +0 -7
  3270. package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +0 -1
  3271. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts +0 -7
  3272. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +0 -1
  3273. package/lib/types/features/store/collections/index.d.ts +0 -8
  3274. package/lib/types/features/store/collections/index.d.ts.map +0 -1
  3275. package/lib/types/features/store/index.d.ts +0 -4
  3276. package/lib/types/features/store/index.d.ts.map +0 -1
  3277. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +0 -8
  3278. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +0 -1
  3279. package/lib/types/features/store/objects/DocumentSearchResults.d.ts +0 -20
  3280. package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +0 -1
  3281. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +0 -33
  3282. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts.map +0 -1
  3283. package/lib/types/features/store/objects/DocumentTable.d.ts +0 -25
  3284. package/lib/types/features/store/objects/DocumentTable.d.ts.map +0 -1
  3285. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +0 -12
  3286. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +0 -1
  3287. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +0 -9
  3288. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +0 -1
  3289. package/lib/types/features/store/objects/components/ContentOverview.d.ts +0 -9
  3290. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +0 -1
  3291. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +0 -19
  3292. package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +0 -1
  3293. package/lib/types/features/store/objects/components/DocumentInput.d.ts +0 -8
  3294. package/lib/types/features/store/objects/components/DocumentInput.d.ts.map +0 -1
  3295. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +0 -9
  3296. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +0 -1
  3297. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +0 -9
  3298. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +0 -1
  3299. package/lib/types/features/store/objects/components/SelectDocument.d.ts +0 -11
  3300. package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +0 -1
  3301. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +0 -9
  3302. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts.map +0 -1
  3303. package/lib/types/features/store/objects/components/TextEditorPanel.d.ts +0 -10
  3304. package/lib/types/features/store/objects/components/TextEditorPanel.d.ts.map +0 -1
  3305. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +0 -12
  3306. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +0 -1
  3307. package/lib/types/features/store/objects/components/index.d.ts +0 -10
  3308. package/lib/types/features/store/objects/components/index.d.ts.map +0 -1
  3309. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts +0 -30
  3310. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +0 -1
  3311. package/lib/types/features/store/objects/components/useDownloadFile.d.ts +0 -35
  3312. package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +0 -1
  3313. package/lib/types/features/store/objects/index.d.ts +0 -11
  3314. package/lib/types/features/store/objects/index.d.ts.map +0 -1
  3315. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +0 -18
  3316. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts.map +0 -1
  3317. package/lib/types/features/store/objects/layout/documentLayout.d.ts +0 -21
  3318. package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +0 -1
  3319. package/lib/types/features/store/objects/layout/index.d.ts +0 -3
  3320. package/lib/types/features/store/objects/layout/index.d.ts.map +0 -1
  3321. package/lib/types/features/store/objects/layout/renderers.d.ts +0 -3
  3322. package/lib/types/features/store/objects/layout/renderers.d.ts.map +0 -1
  3323. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +0 -52
  3324. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +0 -1
  3325. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +0 -14
  3326. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +0 -1
  3327. package/lib/types/features/store/objects/search/index.d.ts +0 -3
  3328. package/lib/types/features/store/objects/search/index.d.ts.map +0 -1
  3329. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +0 -9
  3330. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +0 -1
  3331. package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts +0 -16
  3332. package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts.map +0 -1
  3333. package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts +0 -7
  3334. package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts.map +0 -1
  3335. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +0 -32
  3336. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +0 -1
  3337. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +0 -11
  3338. package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +0 -1
  3339. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +0 -4
  3340. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +0 -1
  3341. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +0 -4
  3342. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +0 -1
  3343. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +0 -16
  3344. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +0 -1
  3345. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +0 -5
  3346. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +0 -1
  3347. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +0 -4
  3348. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +0 -1
  3349. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +0 -4
  3350. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +0 -1
  3351. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +0 -4
  3352. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +0 -1
  3353. package/lib/types/features/store/objects/selection/actions/index.d.ts +0 -8
  3354. package/lib/types/features/store/objects/selection/actions/index.d.ts.map +0 -1
  3355. package/lib/types/features/store/objects/selection/index.d.ts +0 -5
  3356. package/lib/types/features/store/objects/selection/index.d.ts.map +0 -1
  3357. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +0 -39
  3358. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +0 -1
  3359. package/lib/types/features/store/objects/upload/index.d.ts +0 -4
  3360. package/lib/types/features/store/objects/upload/index.d.ts.map +0 -1
  3361. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +0 -30
  3362. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +0 -1
  3363. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +0 -50
  3364. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +0 -1
  3365. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +0 -6
  3366. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +0 -1
  3367. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +0 -8
  3368. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +0 -1
  3369. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +0 -16
  3370. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +0 -1
  3371. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +0 -9
  3372. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +0 -1
  3373. package/lib/types/features/store/types/SelectContentType.d.ts +0 -11
  3374. package/lib/types/features/store/types/SelectContentType.d.ts.map +0 -1
  3375. package/lib/types/features/store/types/SelectContentTypeModal.d.ts +0 -33
  3376. package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +0 -1
  3377. package/lib/types/features/store/types/TableLayoutEditor.d.ts +0 -10
  3378. package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +0 -1
  3379. package/lib/types/features/store/types/TypeRegistry.d.ts +0 -10
  3380. package/lib/types/features/store/types/TypeRegistry.d.ts.map +0 -1
  3381. package/lib/types/features/store/types/TypeRegistryProvider.d.ts +0 -15
  3382. package/lib/types/features/store/types/TypeRegistryProvider.d.ts.map +0 -1
  3383. package/lib/types/features/store/types/index.d.ts +0 -11
  3384. package/lib/types/features/store/types/index.d.ts.map +0 -1
  3385. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +0 -36
  3386. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts.map +0 -1
  3387. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +0 -11
  3388. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts.map +0 -1
  3389. package/lib/types/features/store/types/search/index.d.ts +0 -3
  3390. package/lib/types/features/store/types/search/index.d.ts.map +0 -1
  3391. package/lib/types/features/user/UserAvatar.d.ts +0 -9
  3392. package/lib/types/features/user/UserAvatar.d.ts.map +0 -1
  3393. package/lib/types/features/user/UserInfo.d.ts +0 -60
  3394. package/lib/types/features/user/UserInfo.d.ts.map +0 -1
  3395. package/lib/types/features/user/index.d.ts +0 -3
  3396. package/lib/types/features/user/index.d.ts.map +0 -1
  3397. package/lib/types/features/utils/index.d.ts +0 -6
  3398. package/lib/types/features/utils/index.d.ts.map +0 -1
  3399. package/lib/types/features/utils/mimeType.d.ts.map +0 -1
  3400. package/lib/types/features/utils/print.d.ts.map +0 -1
  3401. package/lib/types/features/utils/rendition.d.ts +0 -4
  3402. package/lib/types/features/utils/rendition.d.ts.map +0 -1
  3403. package/lib/types/features/utils/text.d.ts.map +0 -1
  3404. package/lib/types/features/utils/workflowStatus.d.ts +0 -10
  3405. package/lib/types/features/utils/workflowStatus.d.ts.map +0 -1
  3406. package/lib/types/i18n/index.d.ts +0 -14
  3407. package/lib/types/i18n/index.d.ts.map +0 -1
  3408. package/lib/types/i18n/instance.d.ts.map +0 -1
  3409. package/lib/types/layout/AppLayout.d.ts +0 -13
  3410. package/lib/types/layout/AppLayout.d.ts.map +0 -1
  3411. package/lib/types/layout/FullHeightLayout.d.ts +0 -31
  3412. package/lib/types/layout/FullHeightLayout.d.ts.map +0 -1
  3413. package/lib/types/layout/Navbar.d.ts +0 -33
  3414. package/lib/types/layout/Navbar.d.ts.map +0 -1
  3415. package/lib/types/layout/RegionTag.d.ts +0 -4
  3416. package/lib/types/layout/RegionTag.d.ts.map +0 -1
  3417. package/lib/types/layout/Sidebar.d.ts +0 -34
  3418. package/lib/types/layout/Sidebar.d.ts.map +0 -1
  3419. package/lib/types/layout/SidebarContext.d.ts.map +0 -1
  3420. package/lib/types/layout/TitleBar.d.ts +0 -6
  3421. package/lib/types/layout/TitleBar.d.ts.map +0 -1
  3422. package/lib/types/layout/index.d.ts +0 -8
  3423. package/lib/types/layout/index.d.ts.map +0 -1
  3424. package/lib/types/router/FixLinks.d.ts +0 -7
  3425. package/lib/types/router/FixLinks.d.ts.map +0 -1
  3426. package/lib/types/router/HistoryNavigator.d.ts +0 -59
  3427. package/lib/types/router/HistoryNavigator.d.ts.map +0 -1
  3428. package/lib/types/router/Nav.d.ts +0 -39
  3429. package/lib/types/router/Nav.d.ts.map +0 -1
  3430. package/lib/types/router/NestedNavigationContext.d.ts +0 -9
  3431. package/lib/types/router/NestedNavigationContext.d.ts.map +0 -1
  3432. package/lib/types/router/NestedRouterProvider.d.ts +0 -14
  3433. package/lib/types/router/NestedRouterProvider.d.ts.map +0 -1
  3434. package/lib/types/router/PathMatcher.d.ts +0 -36
  3435. package/lib/types/router/PathMatcher.d.ts.map +0 -1
  3436. package/lib/types/router/PathWithParams.d.ts.map +0 -1
  3437. package/lib/types/router/Route404.d.ts +0 -4
  3438. package/lib/types/router/Route404.d.ts.map +0 -1
  3439. package/lib/types/router/RouteComponent.d.ts +0 -6
  3440. package/lib/types/router/RouteComponent.d.ts.map +0 -1
  3441. package/lib/types/router/Router.d.ts +0 -76
  3442. package/lib/types/router/Router.d.ts.map +0 -1
  3443. package/lib/types/router/RouterProvider.d.ts +0 -15
  3444. package/lib/types/router/RouterProvider.d.ts.map +0 -1
  3445. package/lib/types/router/index.d.ts +0 -11
  3446. package/lib/types/router/index.d.ts.map +0 -1
  3447. package/lib/types/router/path.d.ts.map +0 -1
  3448. package/lib/types/session/UserSession.d.ts +0 -37
  3449. package/lib/types/session/UserSession.d.ts.map +0 -1
  3450. package/lib/types/session/UserSessionProvider.d.ts +0 -7
  3451. package/lib/types/session/UserSessionProvider.d.ts.map +0 -1
  3452. package/lib/types/session/auth/composable.d.ts +0 -30
  3453. package/lib/types/session/auth/composable.d.ts.map +0 -1
  3454. package/lib/types/session/auth/domainRouting.d.ts.map +0 -1
  3455. package/lib/types/session/auth/firebase.d.ts +0 -10
  3456. package/lib/types/session/auth/firebase.d.ts.map +0 -1
  3457. package/lib/types/session/auth/useAuthState.d.ts.map +0 -1
  3458. package/lib/types/session/auth/useCurrentTenant.d.ts.map +0 -1
  3459. package/lib/types/session/constants.d.ts.map +0 -1
  3460. package/lib/types/session/index.d.ts +0 -8
  3461. package/lib/types/session/index.d.ts.map +0 -1
  3462. package/lib/types/session/useUXTracking.d.ts +0 -6
  3463. package/lib/types/session/useUXTracking.d.ts.map +0 -1
  3464. package/lib/types/shell/SplashScreen.d.ts +0 -7
  3465. package/lib/types/shell/SplashScreen.d.ts.map +0 -1
  3466. package/lib/types/shell/VertesiaShell.d.ts +0 -10
  3467. package/lib/types/shell/VertesiaShell.d.ts.map +0 -1
  3468. package/lib/types/shell/apps/AppInstallationProvider.d.ts +0 -12
  3469. package/lib/types/shell/apps/AppInstallationProvider.d.ts.map +0 -1
  3470. package/lib/types/shell/apps/AppProjectSelector.d.ts +0 -12
  3471. package/lib/types/shell/apps/AppProjectSelector.d.ts.map +0 -1
  3472. package/lib/types/shell/apps/StandaloneApp.d.ts +0 -23
  3473. package/lib/types/shell/apps/StandaloneApp.d.ts.map +0 -1
  3474. package/lib/types/shell/apps/index.d.ts +0 -4
  3475. package/lib/types/shell/apps/index.d.ts.map +0 -1
  3476. package/lib/types/shell/index.d.ts +0 -8
  3477. package/lib/types/shell/index.d.ts.map +0 -1
  3478. package/lib/types/shell/login/EnterpriseSigninButton.d.ts +0 -6
  3479. package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +0 -1
  3480. package/lib/types/shell/login/GitHubSignInButton.d.ts +0 -6
  3481. package/lib/types/shell/login/GitHubSignInButton.d.ts.map +0 -1
  3482. package/lib/types/shell/login/GoogleSignInButton.d.ts +0 -6
  3483. package/lib/types/shell/login/GoogleSignInButton.d.ts.map +0 -1
  3484. package/lib/types/shell/login/InviteAcceptModal.d.ts +0 -2
  3485. package/lib/types/shell/login/InviteAcceptModal.d.ts.map +0 -1
  3486. package/lib/types/shell/login/MicrosoftSigninButton.d.ts +0 -6
  3487. package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +0 -1
  3488. package/lib/types/shell/login/PreviewIcon.d.ts +0 -6
  3489. package/lib/types/shell/login/PreviewIcon.d.ts.map +0 -1
  3490. package/lib/types/shell/login/SignInModal.d.ts +0 -7
  3491. package/lib/types/shell/login/SignInModal.d.ts.map +0 -1
  3492. package/lib/types/shell/login/SigninScreen.d.ts +0 -9
  3493. package/lib/types/shell/login/SigninScreen.d.ts.map +0 -1
  3494. package/lib/types/shell/login/SignupForm.d.ts +0 -8
  3495. package/lib/types/shell/login/SignupForm.d.ts.map +0 -1
  3496. package/lib/types/shell/login/TerminalLogin.d.ts +0 -2
  3497. package/lib/types/shell/login/TerminalLogin.d.ts.map +0 -1
  3498. package/lib/types/shell/login/UserInfo.d.ts +0 -6
  3499. package/lib/types/shell/login/UserInfo.d.ts.map +0 -1
  3500. package/lib/types/shell/login/UserSessionMenu.d.ts +0 -9
  3501. package/lib/types/shell/login/UserSessionMenu.d.ts.map +0 -1
  3502. package/lib/types/shell/utils.d.ts.map +0 -1
  3503. package/lib/types/widgets/Progress.d.ts +0 -6
  3504. package/lib/types/widgets/Progress.d.ts.map +0 -1
  3505. package/lib/types/widgets/SvgIcon.d.ts +0 -7
  3506. package/lib/types/widgets/SvgIcon.d.ts.map +0 -1
  3507. package/lib/types/widgets/form/Form.d.ts +0 -22
  3508. package/lib/types/widgets/form/Form.d.ts.map +0 -1
  3509. package/lib/types/widgets/form/FormContext.d.ts +0 -20
  3510. package/lib/types/widgets/form/FormContext.d.ts.map +0 -1
  3511. package/lib/types/widgets/form/ManagedObject.d.ts +0 -82
  3512. package/lib/types/widgets/form/ManagedObject.d.ts.map +0 -1
  3513. package/lib/types/widgets/form/fields.d.ts +0 -16
  3514. package/lib/types/widgets/form/fields.d.ts.map +0 -1
  3515. package/lib/types/widgets/form/index.d.ts +0 -7
  3516. package/lib/types/widgets/form/index.d.ts.map +0 -1
  3517. package/lib/types/widgets/form/inputs.d.ts +0 -8
  3518. package/lib/types/widgets/form/inputs.d.ts.map +0 -1
  3519. package/lib/types/widgets/form/schema.d.ts +0 -47
  3520. package/lib/types/widgets/form/schema.d.ts.map +0 -1
  3521. package/lib/types/widgets/index.d.ts +0 -11
  3522. package/lib/types/widgets/index.d.ts.map +0 -1
  3523. package/lib/types/widgets/json-view/JSONCode.d.ts +0 -5
  3524. package/lib/types/widgets/json-view/JSONCode.d.ts.map +0 -1
  3525. package/lib/types/widgets/json-view/JSONDisplay.d.ts +0 -8
  3526. package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +0 -1
  3527. package/lib/types/widgets/json-view/JSONSwitcher.d.ts +0 -6
  3528. package/lib/types/widgets/json-view/JSONSwitcher.d.ts.map +0 -1
  3529. package/lib/types/widgets/json-view/JSONView.d.ts +0 -7
  3530. package/lib/types/widgets/json-view/JSONView.d.ts.map +0 -1
  3531. package/lib/types/widgets/json-view/index.d.ts +0 -6
  3532. package/lib/types/widgets/json-view/index.d.ts.map +0 -1
  3533. package/lib/types/widgets/json-view/types.d.ts.map +0 -1
  3534. package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +0 -1
  3535. package/lib/types/widgets/markdown/CodeBlockContext.d.ts +0 -21
  3536. package/lib/types/widgets/markdown/CodeBlockContext.d.ts.map +0 -1
  3537. package/lib/types/widgets/markdown/CodeBlockPlaceholder.d.ts +0 -42
  3538. package/lib/types/widgets/markdown/CodeBlockPlaceholder.d.ts.map +0 -1
  3539. package/lib/types/widgets/markdown/CodeBlockPlaceholder.test.d.ts +0 -2
  3540. package/lib/types/widgets/markdown/CodeBlockPlaceholder.test.d.ts.map +0 -1
  3541. package/lib/types/widgets/markdown/CodeBlockRendering.d.ts +0 -23
  3542. package/lib/types/widgets/markdown/CodeBlockRendering.d.ts.map +0 -1
  3543. package/lib/types/widgets/markdown/MarkdownFigure.d.ts +0 -15
  3544. package/lib/types/widgets/markdown/MarkdownFigure.d.ts.map +0 -1
  3545. package/lib/types/widgets/markdown/MarkdownImage.d.ts +0 -16
  3546. package/lib/types/widgets/markdown/MarkdownImage.d.ts.map +0 -1
  3547. package/lib/types/widgets/markdown/MarkdownLink.d.ts +0 -17
  3548. package/lib/types/widgets/markdown/MarkdownLink.d.ts.map +0 -1
  3549. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts +0 -26
  3550. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +0 -1
  3551. package/lib/types/widgets/markdown/MermaidDiagram.d.ts +0 -23
  3552. package/lib/types/widgets/markdown/MermaidDiagram.d.ts.map +0 -1
  3553. package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +0 -57
  3554. package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +0 -1
  3555. package/lib/types/widgets/markdown/codeBlockHandlers.test.d.ts +0 -2
  3556. package/lib/types/widgets/markdown/codeBlockHandlers.test.d.ts.map +0 -1
  3557. package/lib/types/widgets/markdown/index.d.ts +0 -13
  3558. package/lib/types/widgets/markdown/index.d.ts.map +0 -1
  3559. package/lib/types/widgets/markdown/normalizeCustomSchemeLinks.d.ts.map +0 -1
  3560. package/lib/types/widgets/markdown/normalizeDirectives.d.ts.map +0 -1
  3561. package/lib/types/widgets/markdown/preprocessMathDelimiters.d.ts.map +0 -1
  3562. package/lib/types/widgets/markdown/remarkDirectiveHandler.d.ts +0 -2
  3563. package/lib/types/widgets/markdown/remarkDirectiveHandler.d.ts.map +0 -1
  3564. package/lib/types/widgets/markdown/useArtifactContent.d.ts.map +0 -1
  3565. package/lib/types/widgets/markdown/useResolvedUrl.d.ts.map +0 -1
  3566. package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts +0 -40
  3567. package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts.map +0 -1
  3568. package/lib/types/widgets/monacoEditor/foldingProviders.d.ts.map +0 -1
  3569. package/lib/types/widgets/monacoEditor/index.d.ts +0 -3
  3570. package/lib/types/widgets/monacoEditor/index.d.ts.map +0 -1
  3571. package/lib/types/widgets/properties/PropertiesView.d.ts +0 -11
  3572. package/lib/types/widgets/properties/PropertiesView.d.ts.map +0 -1
  3573. package/lib/types/widgets/properties/index.d.ts +0 -2
  3574. package/lib/types/widgets/properties/index.d.ts.map +0 -1
  3575. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +0 -75
  3576. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +0 -1
  3577. package/lib/types/widgets/schema-editor/editor/Editable.d.ts +0 -40
  3578. package/lib/types/widgets/schema-editor/editor/Editable.d.ts.map +0 -1
  3579. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +0 -8
  3580. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts.map +0 -1
  3581. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts +0 -5
  3582. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +0 -1
  3583. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts +0 -4
  3584. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts.map +0 -1
  3585. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts +0 -3
  3586. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts.map +0 -1
  3587. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts +0 -9
  3588. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +0 -1
  3589. package/lib/types/widgets/schema-editor/index.d.ts +0 -7
  3590. package/lib/types/widgets/schema-editor/index.d.ts.map +0 -1
  3591. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts +0 -16
  3592. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts.map +0 -1
  3593. package/lib/types/widgets/schema-editor/type-signature.d.ts.map +0 -1
  3594. package/lib/types/widgets/upload/DropZone.d.ts +0 -41
  3595. package/lib/types/widgets/upload/DropZone.d.ts.map +0 -1
  3596. package/lib/types/widgets/upload/UploadResultCategory.d.ts +0 -26
  3597. package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +0 -1
  3598. package/lib/types/widgets/upload/UploadSummary.d.ts +0 -38
  3599. package/lib/types/widgets/upload/UploadSummary.d.ts.map +0 -1
  3600. package/lib/types/widgets/upload/index.d.ts.map +0 -1
  3601. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts +0 -6
  3602. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts.map +0 -1
  3603. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts +0 -8
  3604. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts.map +0 -1
  3605. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts.map +0 -1
  3606. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts +0 -9
  3607. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts.map +0 -1
  3608. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts +0 -8
  3609. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts.map +0 -1
  3610. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts +0 -8
  3611. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts.map +0 -1
  3612. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts +0 -2
  3613. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts.map +0 -1
  3614. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts +0 -13
  3615. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts.map +0 -1
  3616. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts +0 -8
  3617. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts.map +0 -1
  3618. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts +0 -3
  3619. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts.map +0 -1
  3620. package/lib/types/widgets/xml-viewer/components/types.d.ts.map +0 -1
  3621. package/lib/types/widgets/xml-viewer/constants/index.d.ts.map +0 -1
  3622. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts +0 -4
  3623. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts.map +0 -1
  3624. package/lib/types/widgets/xml-viewer/helpers/index.d.ts +0 -13
  3625. package/lib/types/widgets/xml-viewer/helpers/index.d.ts.map +0 -1
  3626. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts.map +0 -1
  3627. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts.map +0 -1
  3628. package/lib/types/widgets/xml-viewer/index.d.ts +0 -3
  3629. package/lib/types/widgets/xml-viewer/index.d.ts.map +0 -1
  3630. package/lib/types/widgets/xml-viewer/types/index.d.ts +0 -16
  3631. package/lib/types/widgets/xml-viewer/types/index.d.ts.map +0 -1
  3632. package/src/shell/login/EnterpriseSigninButton.tsx +0 -111
  3633. package/src/shell/login/GitHubSignInButton.tsx +0 -36
  3634. package/src/shell/login/GoogleSignInButton.tsx +0 -38
  3635. package/src/shell/login/MicrosoftSigninButton.tsx +0 -28
  3636. /package/lib/{types/core → core}/components/popup/position.d.ts +0 -0
  3637. /package/lib/{types/core → core}/components/popup/utils.d.ts +0 -0
  3638. /package/lib/{types/core → core}/components/shadcn/filters/animateChangeInHeight.d.ts +0 -0
  3639. /package/lib/{types/core → core}/components/shadcn/filters/filter-styles.d.ts +0 -0
  3640. /package/lib/{esm/core → core}/components/shadcn/filters/filter-styles.js +0 -0
  3641. /package/lib/{types/core → core}/components/shadcn/filters/index.d.ts +0 -0
  3642. /package/lib/{esm/core → core}/components/shadcn/filters/index.js +0 -0
  3643. /package/lib/{esm/core → core}/components/shadcn/filters/types.js +0 -0
  3644. /package/lib/{types/core → core}/components/styles.d.ts +0 -0
  3645. /package/lib/{types/core → core}/components/toast/ToastProps.d.ts +0 -0
  3646. /package/lib/{esm/core → core}/components/toast/ToastProps.js +0 -0
  3647. /package/lib/{types/core → core}/hooks/useClickOutside.d.ts +0 -0
  3648. /package/lib/{types/core → core}/hooks/useCopyToClipboard.d.ts +0 -0
  3649. /package/lib/{esm/core → core}/hooks/useCopyToClipboard.js +0 -0
  3650. /package/lib/{types/core → core}/hooks/useDarkMode.d.ts +0 -0
  3651. /package/lib/{types/core → core}/hooks/useDebounce.d.ts +0 -0
  3652. /package/lib/{types/core → core}/hooks/useFlag.d.ts +0 -0
  3653. /package/lib/{types/core → core}/hooks/useIsFistRendering.d.ts +0 -0
  3654. /package/lib/{types/features → features}/agent/chat/WaitingMessages.d.ts +0 -0
  3655. /package/lib/{types/features → features}/agent/chat/types/document.d.ts +0 -0
  3656. /package/lib/{esm/features → features}/agent/chat/types/document.js +0 -0
  3657. /package/lib/{esm/features → features}/facets/utils/utils.js +0 -0
  3658. /package/lib/{esm/features → features}/magic-pdf/types.js +0 -0
  3659. /package/lib/{types/features → features}/oauth/index.d.ts +0 -0
  3660. /package/lib/{esm/features → features}/oauth/index.js +0 -0
  3661. /package/lib/{types/features → features}/oauth/useOAuthPopup.d.ts +0 -0
  3662. /package/lib/{esm/features → features}/oauth/useOAuthPopup.js +0 -0
  3663. /package/lib/{types/features → features}/pdf-viewer/index.d.ts +0 -0
  3664. /package/lib/{esm/features → features}/pdf-viewer/index.js +0 -0
  3665. /package/lib/{esm/features → features}/permissions/helpers.js +0 -0
  3666. /package/lib/{esm/features → features}/store/objects/selection/ObjectsActionSpec.js +0 -0
  3667. /package/lib/{esm/features → features}/store/types/TypeRegistry.js +0 -0
  3668. /package/lib/{types/features → features}/utils/mimeType.d.ts +0 -0
  3669. /package/lib/{esm/features → features}/utils/mimeType.js +0 -0
  3670. /package/lib/{types/features → features}/utils/print.d.ts +0 -0
  3671. /package/lib/{types/features → features}/utils/text.d.ts +0 -0
  3672. /package/lib/{types/i18n → i18n}/instance.d.ts +0 -0
  3673. /package/lib/{esm/i18n → i18n}/instance.js +0 -0
  3674. /package/lib/{esm/layout → layout}/RegionTag.js +0 -0
  3675. /package/lib/{types/layout → layout}/SidebarContext.d.ts +0 -0
  3676. /package/lib/{types/router → router}/PathWithParams.d.ts +0 -0
  3677. /package/lib/{types/router → router}/path.d.ts +0 -0
  3678. /package/lib/{types/session → session}/auth/domainRouting.d.ts +0 -0
  3679. /package/lib/{esm/session → session}/auth/domainRouting.js +0 -0
  3680. /package/lib/{types/session → session}/auth/useAuthState.d.ts +0 -0
  3681. /package/lib/{types/session → session}/auth/useCurrentTenant.d.ts +0 -0
  3682. /package/lib/{types/session → session}/constants.d.ts +0 -0
  3683. /package/lib/{esm/session → session}/constants.js +0 -0
  3684. /package/lib/{types/shell → shell}/utils.d.ts +0 -0
  3685. /package/lib/{esm/widgets → widgets}/Progress.js +0 -0
  3686. /package/lib/{types/widgets → widgets}/json-view/types.d.ts +0 -0
  3687. /package/lib/{esm/widgets → widgets}/json-view/types.js +0 -0
  3688. /package/lib/{types/widgets → widgets}/markdown/ArtifactContentRenderer.d.ts +0 -0
  3689. /package/lib/{esm/widgets → widgets}/markdown/CodeBlockContext.js +0 -0
  3690. /package/lib/{types/widgets → widgets}/markdown/normalizeCustomSchemeLinks.d.ts +0 -0
  3691. /package/lib/{types/widgets → widgets}/markdown/normalizeDirectives.d.ts +0 -0
  3692. /package/lib/{types/widgets → widgets}/markdown/preprocessMathDelimiters.d.ts +0 -0
  3693. /package/lib/{types/widgets → widgets}/markdown/useArtifactContent.d.ts +0 -0
  3694. /package/lib/{types/widgets → widgets}/markdown/useResolvedUrl.d.ts +0 -0
  3695. /package/lib/{types/widgets → widgets}/monacoEditor/foldingProviders.d.ts +0 -0
  3696. /package/lib/{types/widgets → widgets}/schema-editor/type-signature.d.ts +0 -0
  3697. /package/lib/{esm/widgets → widgets}/schema-editor/type-signature.js +0 -0
  3698. /package/lib/{types/widgets → widgets}/upload/index.d.ts +0 -0
  3699. /package/lib/{esm/widgets → widgets}/upload/index.js +0 -0
  3700. /package/lib/{esm/widgets → widgets}/xml-viewer/components/Attributes/index.js +0 -0
  3701. /package/lib/{esm/widgets → widgets}/xml-viewer/components/CDataTag/index.js +0 -0
  3702. /package/lib/{types/widgets → widgets}/xml-viewer/components/CollapseIcon/index.d.ts +0 -0
  3703. /package/lib/{esm/widgets → widgets}/xml-viewer/components/CommentTag/index.js +0 -0
  3704. /package/lib/{esm/widgets → widgets}/xml-viewer/components/DeclarationTag/index.js +0 -0
  3705. /package/lib/{esm/widgets → widgets}/xml-viewer/components/Elements/index.js +0 -0
  3706. /package/lib/{esm/widgets → widgets}/xml-viewer/components/InvalidXml/index.js +0 -0
  3707. /package/lib/{esm/widgets → widgets}/xml-viewer/components/Tag/index.js +0 -0
  3708. /package/lib/{esm/widgets → widgets}/xml-viewer/components/TextElement/index.js +0 -0
  3709. /package/lib/{esm/widgets → widgets}/xml-viewer/components/XMLViewer.js +0 -0
  3710. /package/lib/{types/widgets → widgets}/xml-viewer/components/types.d.ts +0 -0
  3711. /package/lib/{esm/widgets → widgets}/xml-viewer/components/types.js +0 -0
  3712. /package/lib/{types/widgets → widgets}/xml-viewer/constants/index.d.ts +0 -0
  3713. /package/lib/{esm/widgets → widgets}/xml-viewer/constants/index.js +0 -0
  3714. /package/lib/{esm/widgets → widgets}/xml-viewer/context/xml-viewer-context.js +0 -0
  3715. /package/lib/{types/widgets → widgets}/xml-viewer/hooks/useCollapsible.d.ts +0 -0
  3716. /package/lib/{esm/widgets → widgets}/xml-viewer/hooks/useCollapsible.js +0 -0
  3717. /package/lib/{types/widgets → widgets}/xml-viewer/hooks/useXMLViewer.d.ts +0 -0
  3718. /package/lib/{esm/widgets → widgets}/xml-viewer/types/index.js +0 -0
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{clsx as a}from"clsx";import{AnimatePresence as r,motion as i}from"motion/react";import*as s from"react";import l,{useMemo as c,useState as d,createContext as u,useContext as p,useRef as m,useCallback as g,memo as h,useEffect as f,Component as v,useSyncExternalStore as y,forwardRef as b}from"react";import*as w from"@radix-ui/react-dialog";import{Loader2 as x,Check as C,Copy as k,Download as T,Minimize2 as N,Maximize2 as S,X as D,ExternalLink as P,ChevronDown as A,ChevronRight as F,CopyIcon as z,CheckCircle as I,AlertCircle as E,Layers as j,MessageSquare as _,HelpCircle as R,Send as O,XCircle as L,TableProperties as U,LayoutGrid as M,ChevronsUp as V,ChevronsDown as W,Minus as q,Plus as B,Maximize as $,Image as G,ScanSearch as K,AlertTriangle as H,SquarePen as J,FileSearch as Y,CheckIcon as Q,Eye as Z,Users2 as X,Users as ee,RefreshCw as te,UploadIcon as oe,CheckCircleIcon as ne,AlertCircleIcon as ae,FileIcon as re,XCircleIcon as ie,FolderIcon as se,Info as le,ChevronsUpDown as ce,FileText as de,Settings as ue,Search as pe,FolderClosed as me,Trash2 as ge,EllipsisVertical as he,Bot as fe,RefreshCcw as ve,User as ye,Clock as be,ClipboardList as we,XIcon as xe,InfoIcon as Ce,DownloadCloudIcon as ke,GitFork as Te,MoreVertical as Ne,HelpCircleIcon as Se,FileTextIcon as De,PaperclipIcon as Pe,StopCircleIcon as Ae,SendIcon as Fe,Activity as ze,Circle as Ie,ChevronDownIcon as Ee,ExternalLinkIcon as je,Loader2Icon as _e,PackageIcon as Re,RefreshCwIcon as Oe,ChevronRightIcon as Le,FolderOpenIcon as Ue,LayoutListIcon as Me,ClipboardCopyIcon as Ve,Cpu as We,CheckCircle2 as qe,ShieldAlertIcon as Be}from"lucide-react";import $e from"papaparse";import{VegaEmbed as Ge}from"react-vega";import{twMerge as Ke}from"tailwind-merge";import{initReactI18next as He,useTranslation as Je}from"react-i18next";import Ye from"i18next";import{useUserSession as Qe}from"@vertesia/ui/session";import{cn as Ze,useToast as Xe,Button as et,Center as tt,VTooltip as ot,Popover as nt,PopoverTrigger as at,PopoverContent as rt,useFetch as it,ErrorBox as st,ResizablePanelGroup as lt,ResizablePanel as ct,ResizableHandle as dt,Spinner as ut,Modal as pt,ModalTitle as mt,ModalBody as gt,RadioGroup as ht,FormItem as ft,Input as vt,ModalFooter as yt,RadioGroupAdapter as bt,useTheme as wt,Portal as xt,Card as Ct,Separator as kt,CardContent as Tt,SelectBox as Nt,InputList as St,Badge as Dt,Avatar as Pt,Table as At,FilterProvider as Ft,FilterBtn as zt,FilterBar as It,FilterClear as Et,useIsInModal as jt,THead as _t,TBody as Rt,SharedState as Ot,useWatchSharedState as Lt,MessageBox as Ut,useIntersectionObserver as Mt,useFlag as Vt,Styles as Wt,Checkbox as qt,NumberInput as Bt,SidePanel as $t,Divider as Gt,Textarea as Kt,Switch as Ht,TR as Jt,EmptyCollection as Yt,ConfirmModal as Qt,useDebounce as Zt,Panel as Xt,Command as eo,CommandInput as to,CommandEmpty as oo,CommandGroup as no,CommandItem as ao,TagsInput as ro,DialogDescription as io,Heading as so,Tabs as lo,TabsBar as co,TabsPanel as uo,SelectList as po,Dropdown as mo,MenuItem as go,MenuGroup as ho,Breadcrumbs as fo}from"@vertesia/ui/core";import{AgentMessageType as vo,PDF_RENDITION_NAME as yo,ImageRenditionFormat as bo,WorkflowExecutionStatus as wo,MarkdownRenditionFormat as xo,ContentObjectStatus as Co,ContentNature as ko,Permission as To,POSTER_RENDITION_NAME as No,AUDIO_RENDITION_NAME as So,InteractionStatus as Do,PrincipalType as Po,SearchTypes as Ao,SupportedEmbeddingTypes as Fo,getContentTypeRefId as zo,AgentSearchScope as Io,mergeInCodePromptSchemas as Eo,supportsToolUse as jo,FileProcessingStatus as _o,normalizeToolCollection as Ro}from"@vertesia/common";import{FusionFragmentHandler as Oo,FusionFragmentProvider as Lo}from"@vertesia/fusion-ux";import Uo from"dayjs";import{useNavigate as Mo,NavLink as Vo}from"@vertesia/ui/router";import{MarkdownRenderer as Wo,XMLViewer as qo,JSONCode as Bo,MonacoEditor as $o,JSONDisplay as Go,Progress as Ko,DropZone as Ho,UploadSummary as Jo,useSchema as Yo,SchemaEditor as Qo,ManagedObject as Zo,GeneratedForm as Xo,CodeBlockRendererProvider as en}from"@vertesia/ui/widgets";import{useUITranslation as tn}from"@vertesia/ui/i18n";import{pdfjs as on,Document as nn,Page as an}from"react-pdf";import rn from"dayjs/plugin/localizedFormat";import sn from"dayjs/plugin/relativeTime";import{Md5 as ln}from"ts-md5";import{UserInfo as cn,SyncMemberHeadsToggle as dn,SharedPropsEditor as un}from"@vertesia/ui/features";import pn,{Ajv as mn}from"ajv";import{ErrorBoundary as gn}from"react-error-boundary";import{capitalize as hn}from"lodash-es";import{SidebarItem as fn}from"@vertesia/ui/layout";import"react-dom";import*as vn from"@radix-ui/react-tooltip";import{cva as yn}from"class-variance-authority";import"framer-motion";import{Slot as bn}from"@radix-ui/react-slot";import*as wn from"@radix-ui/react-separator";import*as xn from"@radix-ui/react-popover";import{Command as Cn}from"cmdk";import*as kn from"@radix-ui/react-tabs";import*as Tn from"@radix-ui/react-label";import*as Nn from"@radix-ui/react-checkbox";import"react-calendar";import"react-resizable-panels";import"@radix-ui/react-switch";import"@radix-ui/react-radio-group";import"@radix-ui/react-collapsible";import"@radix-ui/react-dropdown-menu";function Sn({children:t,secondary:o=!1}){return e("span",{className:o?"bg-secondary text-primary":"text-foreground bg-muted",children:t})}function Dn(e){return e?"array"===e.name?Dn(e.innerType):e:void 0}function Pn({property:o}){return t("div",{className:"flex items-center gap-x-2",children:[e("div",{className:"font-semibold text-gray-600",children:o.name}),o.optional&&e(Sn,{children:"optional"}),e(Sn,{children:o.type.value})]})}function An({activities:t}){return e("div",{className:"flex flex-col gap-y-4 divide-y divide-gray-200",children:t.map(t=>e(zn,{activity:t},t.name))})}function Fn({code:o,children:n}){return t("div",{className:"flex gap-2 items-center border-b border-b-gray-200 mb-2",children:[e("div",{className:"text-lg font-medium text-gray-900 py-2 ",children:n}),o&&e("div",{children:e(Sn,{children:o})})]})}function zn({activity:o,headingClass:n,headingRef:a}){return t("div",{className:n,id:o.name,ref:a,children:[e("div",{className:"text-xl font-semibold pt-8",children:o.title}),e("div",{className:"pb-4",children:e(Sn,{children:o.name})}),o.doc&&e("div",{className:"text-gray-700 pb-2",children:o.doc}),t("div",{className:"pb-4",children:[e(Fn,{code:o.paramsType,children:"Parameters"}),e("div",{className:"divide-y divide-gray-100",children:o.params.map(t=>e(In,{property:t},t.name))})]}),t("div",{className:"pb-4",children:[e(Fn,{children:"Returns"}),e("div",{children:o.returnType?o.returnType.value:"void"})]})]})}function In({property:o,className:a}){const r=c(()=>{const t=Dn(o.type.innerType)??o.type;return"object"===t.name&&t.members?e(jn,{members:t.members}):"enum"===t.name&&t.enum?e(En,{values:t.enum}):null},[o.type.innerType]);return t("div",{className:n("py-2",a),children:[e(Pn,{property:o}),o.doc&&e("div",{className:"text-gray-700 text-sm pt-2",children:o.doc}),r&&e("div",{className:"my-2 overflow-hidden",children:r})]})}function En({values:t}){return e("div",{className:"flex flex-wrap items-center gap-2",children:t.map((t,o)=>e(Sn,{secondary:!0,children:t},o))})}function jn({members:o}){return e(Rn,{className:"rounded-md border border-gray-200",button:o=>t("div",{className:"px-4 py-2 flex items-center gap-x-2 text-sm font-medium hover:text-blue-600",children:[e(On,{isOpen:o}),e("div",o?{children:"Hide child properties"}:{children:"Show child properties"})]}),body:e(_n,{properties:o})})}function _n({properties:t}){return e("div",{className:"border-l-2 border-l-blue-200 flex flex-col divide-y divide-gray-100 border-t border-t-gray-200",children:t.map(t=>e(In,{property:t,className:"px-4 py-2"},t.name))})}function Rn({button:o,body:a,className:s,isInitiallyOpen:l}){const[c,u]=d(l||!1);return t("div",{className:n(c?"block":"inline-block",s),children:[e("button",{className:"p-0 m-0 bg-transparent",onClick:()=>u(!c),children:e(r,{children:o(c)})}),e(r,{children:c&&e(i.div,{className:"overflow-hidden",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeOut"},children:a})})]})}function On({isOpen:t}){return e(r,{propagate:!0,mode:"wait",children:e(i.div,{className:"font-mono font-semibold text-gray-400 text-lg",initial:{rotate:0},animate:{rotate:t?45:0},transition:{duration:.2},children:"+"},"closeIcon")})}function Ln(...e){return Ke(a(e))}const Un="vertesia.ui",Mn=Ye.createInstance();function Vn(){return Je(Un,{i18n:Mn})}Mn.use(He).init({resources:{ar:{[Un]:{"agent.activeWorkstreams_zero":"لا يوجد لدى الوكيل مسارات عمل نشطة","agent.activeWorkstreams_one":"لدى الوكيل مسار عمل نشط واحد قيد التشغيل","agent.activeWorkstreams_two":"لدى الوكيل مساران نشطان قيد التشغيل","agent.activeWorkstreams_few":"لدى الوكيل {{count}} مسارات عمل نشطة قيد التشغيل","agent.activeWorkstreams_many":"لدى الوكيل {{count}} مسار عمل نشط قيد التشغيل","agent.activeWorkstreams_other":"لدى الوكيل {{count}} مسار عمل نشط قيد التشغيل","agent.agentConversation":"محادثة الوكيل","agent.agentInterrupted":"تم إيقاف الوكيل","agent.agentPlan":"خطة الوكيل","agent.agentProcessing":"الوكيل يعالج، يمكنك المتابعة بعد الانتهاء...","agent.agentRunIdCopied":"تم نسخ معرف تشغيل الوكيل","agent.agentStarted":"تم بدء الوكيل","agent.agentWorking":"الوكيل يعمل... (Esc Esc للإيقاف)","agent.agentWorkingStop":"الوكيل يعمل... اضغط Esc مرتين أو انقر إيقاف للمقاطعة","agent.allMessages":"جميع الرسائل","agent.artifacts":"المخرجات","agent.askAnything":"اسأل أي شيء... (اسحب أو الصق الملفات)","agent.batch":"دفعة","agent.canceled":"","agent.cancelWorkflow":"إلغاء سير العمل","agent.clickToEnlarge":"انقر للتكبير","agent.cloneConversation":"استنساخ المحادثة","agent.close":"إغلاق","agent.closeFullscreen":"إغلاق ملء الشاشة","agent.completed":"مكتمل","agent.continueConversation":"متابعة المحادثة","agent.conversationCloned":"تم استنساخ المحادثة","agent.conversationContinued":"تمت متابعة المحادثة","agent.copied":"تم النسخ","agent.copiedAllToolCalls":"تم نسخ جميع استدعاءات الأدوات إلى الحافظة","agent.copiedBatchDetails":"تم نسخ تفاصيل الدفعة إلى الحافظة","agent.copiedToClipboard":"تم النسخ إلى الحافظة","agent.copy":"نسخ","agent.copyAgentRunId":"نسخ معرف تشغيل الوكيل","agent.copyAllToolCalls":"نسخ جميع استدعاءات الأدوات","agent.copyBatchDetails":"نسخ تفاصيل الدفعة","agent.copyMessage":"نسخ الرسالة","agent.copyRunId":"نسخ معرّف التشغيل","agent.copyToClipboard":"نسخ إلى الحافظة","agent.copyWorkflowRunId":"نسخ معرف تشغيل سير العمل","agent.dashboard":"لوحة المعلومات","agent.details":"تفاصيل","agent.document":"مستند","agent.documentAttachments":"مرفقات المستند","agent.documentAttachmentsDescription":"مستندات من المتجر مرفقة بهذه الرسالة. يمكن للوكيل استرجاعها بالمعرف في أي وقت، أو إعادة إرفاقها لتضمين المحتوى مباشرة.","agent.documents":"المستندات","agent.download":"تحميل","agent.downloadConversation":"تحميل المحادثة","agent.dropFilesToUpload":"أسقط الملفات للرفع","agent.elapsed":"{{seconds}}ث مضت","agent.enlargedView":"عرض مكبّر","agent.enterMessage":"أدخل رسالة لبدء محادثة","agent.enterToSend":"Enter للإرسال • Shift+Enter لسطر جديد","agent.error":"خطأ","agent.errorStarting":"خطأ في بدء سير العمل","agent.exit":"خروج","agent.exitFullscreen":"الخروج من ملء الشاشة","agent.export":"تصدير","agent.exportAsPdf":"تصدير كـ PDF","agent.exportAsPng":"تصدير كـ PNG","agent.exportAsWord":"تصدير كـ Word","agent.exporting":"جارٍ التصدير...","agent.exportMessage":"تصدير الرسالة","agent.failedToCancelWorkflow":"فشل إلغاء سير العمل","agent.failedToCloneConversation":"فشل استنساخ المحادثة","agent.failedToContinueConversation":"فشل متابعة المحادثة","agent.failedToDownload":"فشل تنزيل المحادثة","agent.failedToInterrupt":"فشل الإيقاف","agent.failedToLoadDocument":"فشل تحميل المستند","agent.failedToSend":"فشل إرسال الرسالة","agent.filesProcessing":"لا تزال الملفات قيد المعالجة","agent.filesStagedCount_zero":"لا توجد ملفات مُعدّة","agent.filesStagedCount_one":"ملف واحد مُعدّ - سيتم رفعه عند بدء المحادثة","agent.filesStagedCount_two":"ملفان مُعدّان - سيتم رفعهما عند بدء المحادثة","agent.filesStagedCount_few":"{{count}} ملفات مُعدّة - سيتم رفعها عند بدء المحادثة","agent.filesStagedCount_many":"{{count}} ملفًا مُعدًّا - سيتم رفعها عند بدء المحادثة","agent.filesStagedCount_other":"{{count}} ملف مُعدّ - سيتم رفعها عند بدء المحادثة","agent.filesUploadedDescription":"الملفات المرفوعة في هذه المحادثة تظل متاحة طوال الوقت. يمكن للوكيل الوصول إليها في أي وقت.","agent.fullscreen":"ملء الشاشة","agent.hideDetails":"إخفاء التفاصيل","agent.hideSidebar":"إخفاء الشريط الجانبي","agent.hideThinkingDetails":"إخفاء تفاصيل التفكير","agent.inProgress":"قيد التنفيذ","agent.linkObject":"ربط كائن","agent.loadingArtifacts":"جارٍ تحميل المخرجات...","agent.loadingDocument":"جارٍ تحميل المستند...","agent.main":"الرئيسي","agent.mainWorkstream":"تدفق العمل الرئيسي","agent.moreActions":"المزيد من الإجراءات","agent.newerPlan":"خطة أحدث","agent.no":"لا","agent.noActiveWorkstreams":"لا توجد تدفقات عمل نشطة","agent.noAgentRunning":"لا يوجد وكيل قيد التشغيل حالياً","agent.noArtifactsYet":"لا توجد مخرجات بعد","agent.noContentAvailable":"لا يوجد محتوى متاح","agent.noContentToExport":"لا يوجد محتوى للتصدير","agent.noConversationContent":"لا يوجد محتوى محادثة متاح للتصدير","agent.noDocumentsOpen":"لا توجد مستندات مفتوحة","agent.noFilesUploadedYet":"لم يتم رفع أي ملفات","agent.noMessagesInWorkstream":"لا توجد رسائل في هذا التدفق بعد...","agent.noPlanAvailable":"لا توجد خطة متاحة","agent.noPlanDetected":"لم يتم اكتشاف أي خطة بعد","agent.olderPlan":"خطة أقدم","agent.openDocument":"فتح المستند","agent.openInNewTab":"فتح في علامة تبويب جديدة","agent.payload":"الحمولة","agent.pdfExportFailed":"فشل تصدير PDF","agent.pdfExportReady":"تصدير PDF جاهز","agent.pending":"معلق","agent.plan":"خطة","agent.planProgress":"تقدم الخطة","agent.plansWillAppear":"ستظهر الخطط هنا عندما يقوم الوكيل بإنشاء واحدة","agent.printDialogDescription":"استخدم مربع حوار الطباعة في متصفحك للحفظ كـ PDF","agent.processing":"جارٍ المعالجة...","agent.ready":"جاهز","agent.refresh":"تحديث","agent.remaining":"{{seconds}}ث متبقية","agent.retry":"إعادة المحاولة","agent.runIdCopied":"تم نسخ معرّف التشغيل","agent.searchDocuments":"البحث في المستندات","agent.selectInteraction":"اختر تفاعلاً وانقر ابدأ لتشغيل الوكيل","agent.send":"إرسال","agent.showAllMessages":"عرض جميع الرسائل","agent.showDetails":"عرض التفاصيل","agent.showSidebar":"عرض الشريط الجانبي","agent.staged":"مُعدّ","agent.startAgent":"بدء الوكيل","agent.startingAgent":"جارٍ بدء الوكيل...","agent.startingAgentUploading":"جارٍ بدء الوكيل ورفع الملفات...","agent.startNewConversation":"بدء محادثة جديدة","agent.stepByStepPlan":"خطة خطوة بخطوة","agent.stop":"إيقاف","agent.stopAgent":"إيقاف الوكيل","agent.submitSelection":"إرسال الاختيار","agent.submitSelectionCount_zero":"إرسال الاختيار ({{count}})","agent.submitSelectionCount_one":"إرسال الاختيار ({{count}})","agent.submitSelectionCount_two":"إرسال الاختيار ({{count}})","agent.submitSelectionCount_few":"إرسال الاختيار ({{count}})","agent.submitSelectionCount_many":"إرسال الاختيار ({{count}})","agent.submitSelectionCount_other":"إرسال الاختيار ({{count}})","agent.summary":"ملخص","agent.taskProgress":"تقدم المهام","agent.toggleRightSidebar":"تبديل الشريط الجانبي الأيمن","agent.typeNewInstructions":"اكتب رسالتك لإعطاء تعليمات جديدة","agent.typeQuestionBelow":"اكتب سؤالك أدناه واضغط Enter أو انقر {{buttonText}} للبدء","agent.typeYourMessage":"اكتب رسالتك...","agent.typeYourResponse":"اكتب ردك...","agent.unableToOpenPrint":"تعذر فتح معاينة الطباعة","agent.unknownError":"خطأ غير معروف","agent.unknownTime":"وقت غير معروف","agent.upload":"رفع","agent.uploadedFiles":"الملفات المرفوعة","agent.uploadFailed":"فشل الرفع","agent.uploading":"جارٍ الرفع...","agent.uploads":"المرفوعات","agent.waitForFiles":"انتظر حتى تنتهي معالجة الملفات","agent.waitForFilesProcessing":"يرجى الانتظار حتى تنتهي معالجة جميع الملفات قبل الإرسال","agent.waiting":"في الانتظار...","agent.waitingForAgentResponse":"في انتظار رد الوكيل...","agent.workflowCancelled":"تم إلغاء سير العمل","agent.workflowRunIdCopied":"تم نسخ معرف تشغيل سير العمل","agent.working":"جارٍ العمل...","agent.workstreams":"تدفقات العمل","agent.yes":"نعم","auth.continueWithEnterprise":"المتابعة مع SSO المؤسسي","auth.continueWithGithub":"المتابعة مع GitHub","auth.continueWithGoogle":"المتابعة مع Google","auth.continueWithMicrosoft":"المتابعة مع Microsoft","auth.enterEnterpriseEmail":"أدخل بريدك الإلكتروني المؤسسي","auth.error":"خطأ: {{message}}","auth.firstTimeDetails":"سنطرح عليك بضعة أسئلة فقط وستكون جاهزاً.","auth.firstTimeMessage":"أول مرة هنا؟ لا مشكلة، يمكنك التجربة مجاناً!","auth.goBack":"العودة","auth.invalidEmail":"عنوان بريد إلكتروني غير صالح","auth.logInOrSignUp":"تسجيل الدخول أو إنشاء حساب","auth.needToMakeChange":"هل تحتاج إلى إجراء تغيير؟","auth.or":"أو","auth.privacyPolicy":"سياسة الخصوصية","auth.signInError":"عذراً، لم نتمكن من تسجيل دخولك.","auth.signInErrorContact":"يرجى المحاولة مرة أخرى أو التواصل مع","auth.signInErrorPersists":"إذا استمرت المشكلة.","auth.tenantNotFound":"لم يتم العثور على المؤسسة","auth.termsOfService":"شروط الخدمة","errors.failedToLoadTenantConfig":"فشل في تحميل إعدادات المستأجر","errors.somethingWentWrong":"عذراً، حدث خطأ ما...","errors.teamNotifiedLine1":"تم إبلاغ فريقنا وسيعمل بسرعة على حل المشكلة.","errors.teamNotifiedLine2":"إذا كنت ترغب في التصعيد أو التواصل معنا، يرجى مراسلتنا على","filter.clearAll":"مسح الكل","filter.filter":"تصفية","filter.filterBy":"تصفية حسب {{view}}","filter.filterPlaceholder":"تصفية...","filter.from":"من:","filter.noAvailableFilters":"لا توجد عوامل تصفية متاحة","filter.noMatchingFilters":"لا توجد عوامل تصفية مطابقة","filter.noResultsFound":"لم يتم العثور على نتائج.","filter.selectRange":"اختر نطاقاً","filter.to":"إلى:","form.filter":"تصفية...","layout.pageNotFound":"الصفحة غير موجودة","layout.search":"بحث","layout.searchPlaceholder":"بحث...","login.accept":"قبول","login.reject":"رفض","login.reviewInvites":"مراجعة الدعوات","login.terminal.account":"الحساب","login.terminal.accountRequired":"الحساب مطلوب","login.terminal.accountRequiredDesc":"يرجى اختيار حساب لتفويض العميل للوصول إلى خوادم ComposablePrompts","login.terminal.authorizeClient":"تفويض العميل","login.terminal.authPayloadCopied":"تم نسخ حمولة المصادقة","login.terminal.authPayloadCopiedSuccess":"يمكنك إغلاق هذه الصفحة. من المفترض أن CLI قد تلقى الرمز.","login.terminal.authPayloadCopiedWithError":"يمكنك لصق الحمولة في الطرفية. ملاحظة: لم يتلقَّ CLI الرمز. حدث خطأ: {{error}}","login.terminal.browserPermissionNote":"ملاحظة: إذا طلب متصفحك إذناً للوصول إلى شبكتك المحلية، يرجى السماح بذلك. هذا مطلوب لإرسال رمز التفويض إلى أداة CLI. وإلا ستحتاج إلى نسخ/لصق الرمز يدوياً في طرفيتك.","login.terminal.chooseAccountProject":"يجب اختيار الحساب والمشروع المستهدفين لوصول العميل.","login.terminal.clientAuthenticated":"تم مصادقة العميل. يمكنك إغلاق هذه الصفحة.","login.terminal.clientWantsAuth":"يريد تطبيق عميل الحصول على تفويض للوصول إلى خوادم composable prompt باسمك.","login.terminal.copyAuthPayload":"نسخ حمولة المصادقة","login.terminal.envLocalDev":"تطوير محلي","login.terminal.envProduction":"إنتاج","login.terminal.envStaging":"تجريبي","login.terminal.errorAuthorizingClient":"خطأ في تفويض العميل","login.terminal.errorLoadingProjects":"خطأ في تحميل المشاريع","login.terminal.failedToGetToken":"فشل الحصول على رمز composable","login.terminal.failedToSendToken":"فشل إرسال رمز التفويض إلى أداة CLI","login.terminal.failedToSendTokenDesc":'قد يحدث هذا بسبب فحوصات الأمان في Safari. الخطأ هو "{{error}}"',"login.terminal.invalidRequest":"طلب غير صالح","login.terminal.invalidRequestDesc":"يجب استدعاء هذه الصفحة من عميل طرفية للمصادقة مع خوادم ComposablePrompts","login.terminal.profileName":"اسم الملف الشخصي","login.terminal.profileNameNote":"أيضاً، أدخل اسم ملف شخصي سيُستخدم لحفظ التفويض في إعدادات العميل.","login.terminal.profileRequired":"الملف الشخصي مطلوب","login.terminal.profileRequiredDesc":"يرجى إدخال اسم ملف شخصي لحفظ تفويض العميل","login.terminal.project":"المشروع","login.terminal.projectRequired":"المشروع مطلوب","login.terminal.projectRequiredDesc":"يرجى اختيار مشروع لتفويض العميل للوصول إلى خوادم ComposablePrompts","login.terminal.selectAccount":"اختر حساباً","login.terminal.selectProject":"اختر مشروعاً","mcpOAuth.authenticate":"المصادقة","mcpOAuth.authenticating":"جارٍ المصادقة...","mcpOAuth.connect":"اتصال","mcpOAuth.connected":"متصل","mcpOAuth.connecting":"جارٍ الاتصال...","mcpOAuth.disconnect":"قطع الاتصال","mcpOAuth.notConnected":"غير متصل","misc.copiedToClipboard":"تم النسخ إلى الحافظة","misc.copy":"نسخ","misc.failedToCopy":"فشل النسخ","misc.noData":"لا توجد بيانات للعرض","misc.tableView":"عرض جدول","misc.thumbnailView":"عرض مصغرات","modal.cancel":"إلغاء","modal.confirm":"تأكيد","modal.delete.error":"حدث خطأ أثناء حذف الكائن","modal.delete.failed":"فشل الحذف","modal.delete.succeeded":"تم الحذف بنجاح","modal.save":"حفظ","modal.saveChanges":"حفظ التغييرات","modal.saveVersion.createDescription":"إنشاء مراجعة جديدة مع تغييرات الخصائص هذه مع الحفاظ على الأصل.","modal.saveVersion.createNew":"إنشاء نسخة جديدة","modal.saveVersion.createWithFileDescription":"إنشاء مراجعة جديدة مع الملف البديل مع الحفاظ على الأصل.","modal.saveVersion.howToSave":"كيف تريد حفظ هذه التغييرات؟","modal.saveVersion.replaceFile":"أنت على وشك استبدال ملف المحتوى بـ:","modal.saveVersion.updateCurrent":"تحديث النسخة الحالية","modal.saveVersion.updateDescription":"تعديل الخصائص مباشرة في المراجعة الحالية.","modal.saveVersion.updateWithFileDescription":"استبدال ملف المحتوى وتعديل الخصائص مباشرة في المراجعة الحالية.","modal.saveVersion.versionLabel":"تسمية النسخة (اختياري)","modal.saveVersion.versionLabelDescription":"تسمية اختيارية للنسخة الجديدة.","modal.saveVersion.versionLabelPlaceholder":"مثال: v1.2، معتمد، بعد المراجعة","oauthProvider.authenticate":"مصادقة","oauthProvider.authenticating":"جارٍ المصادقة...","oauthProvider.connected":"متصل","oauthProvider.disconnect":"قطع الاتصال","pdf.close":"إغلاق","pdf.closeFullscreen":"إغلاق ملء الشاشة","pdf.download":"تحميل","pdf.failedToLoadViewer":"فشل في تحميل عارض PDF","pdf.fetchingDocumentFailed":"فشل في جلب المستند","pdf.fitToWidth":"ملاءمة العرض","pdf.fullscreen":"ملء الشاشة","pdf.instrumentedImages":"صور مشروحة","pdf.nextPage":"الصفحة التالية","pdf.noPdfAvailable":"لا يوجد PDF متاح","pdf.originalImages":"الصور الأصلية","pdf.page":"صفحة","pdf.pageOf":"صفحة {{pageNumber}} / {{totalPages}}","pdf.previousPage":"الصفحة السابقة","pdf.zoomIn":"تكبير","pdf.zoomOut":"تصغير","shell.accessDenied":"تم رفض الوصول","shell.applicationNotRegistered":"التطبيق غير مسجل","shell.organization":"المؤسسة","shell.selectOrganization":"اختر مؤسسة","shell.selectProject":"اختر مشروعاً","signup.accountType":"نوع الحساب","signup.activelyExploring":"استكشاف نشط لنماذج LLM في مشروع","signup.alreadyUsing":"استخدام نماذج LLM في الإنتاج بالفعل","signup.company":"شركة","signup.companyDescription":"لشركة أو مؤسسة.","signup.companyName":"اسم الشركة","signup.companySize":"حجم الشركة","signup.companyWebsite":"موقع الشركة الإلكتروني","signup.justTesting":"اختبار أو تقييم نماذج LLM فقط","signup.migratingLLMs":"الانتقال إلى نماذج LLM مختلفة","signup.other":"أخرى","signup.personal":"شخصي","signup.personalDescription":"للاستخدام الشخصي أو لفريق صغير.","signup.pleaseEnterOrgName":"يرجى إدخال اسم المؤسسة","signup.pleaseSelectAccountType":"يرجى اختيار نوع الحساب","signup.pleaseSelectCompanySize":"يرجى اختيار حجم الشركة","signup.projectMaturity":"نضج المشروع","signup.selectCompanySize":"اختر حجم الشركة","signup.selectProjectMaturity":"اختر نضج المشروع","signup.signUp":"إنشاء حساب","signup.size1001to5000":"1001-5000 موظف","signup.size101to1000":"101-1000 موظف","signup.size11to100":"11-100 موظف","signup.size1to10":"1-10 موظفين","signup.size5000plus":"+5000 موظف","signup.welcomeMessage":"مرحباً بك في Vertesia، {{name}} ({{email}}).\nأخبرنا قليلاً عن نفسك وستكون جاهزاً للانطلاق.\nلا حاجة لبطاقة ائتمان.","signup.wrongAccountGoBack":"حساب خاطئ، العودة","store.actions.addToCollection":"إضافة إلى مجموعة","store.actions.addToCollectionBody":"أضف الكائنات المحددة إلى مجموعة موجودة أو أنشئ مجموعة جديدة.","store.actions.addToCollectionButton":"إضافة إلى مجموعة","store.actions.addToCollectionDesc":"إضافة مستندات إلى مجموعة","store.actions.addToCollectionFailure":"فشل الإضافة إلى المجموعة","store.actions.addToCollectionFailureDesc":"فشل إضافة الكائنات المحددة إلى المجموعة","store.actions.addToCollectionSuccess":"نجاح الإضافة إلى المجموعة","store.actions.addToCollectionSuccessDesc_zero":"لم يُضَف أي كائن إلى المجموعة","store.actions.addToCollectionSuccessDesc_one":"تمت إضافة {{count}} كائن إلى المجموعة","store.actions.addToCollectionSuccessDesc_two":"تمت إضافة {{count}} كائنَين إلى المجموعة","store.actions.addToCollectionSuccessDesc_few":"تمت إضافة {{count}} كائنات إلى المجموعة","store.actions.addToCollectionSuccessDesc_many":"تمت إضافة {{count}} كائنًا إلى المجموعة","store.actions.addToCollectionSuccessDesc_other":"تمت إضافة {{count}} كائن إلى المجموعة","store.actions.addToCollectionTitle":"إضافة إلى مجموعة","store.actions.areYouSure":"هل أنت متأكد؟","store.actions.cannotRemoveNoCollection":"لا يمكن إزالة الكائنات: لم يتم تحديد مجموعة","store.actions.changeContentType":"تغيير نوع المحتوى","store.actions.changeContentTypeDesc":"تغيير نوع المحتوى للمستندات المحددة","store.actions.changeType":"تغيير النوع","store.actions.chooseExistingCollections":"اختر من المجموعات الموجودة","store.actions.chooseWorkflowRule":"اختر قاعدة سير عمل للبدء:","store.actions.confirmDeleteAll":"هل أنت متأكد من حذف جميع الكائنات المحددة؟ لا يمكن التراجع عن هذا الإجراء.","store.actions.confirmDeleteSelected":"هل أنت متأكد من حذف الكائنات المحددة؟\nهذا ليس إزالة من المجموعات.","store.actions.createNew":"إنشاء جديد","store.actions.delete":"حذف","store.actions.deleteObjects":"حذف الكائنات","store.actions.deleteTheSelectedObjects":"حذف الكائنات المحددة","store.actions.errorChangingType":"خطأ في تغيير النوع","store.actions.errorDeletingObjects":"خطأ في حذف الكائنات","store.actions.errorExportProperties":"خطأ في تصدير الخصائص","store.actions.errorRemovingObjects":"خطأ في إزالة الكائنات من المجموعة","store.actions.errorStartingWorkflow":"خطأ في بدء سير العمل","store.actions.exportAllObjectProperties":"تصدير جميع خصائص الكائنات","store.actions.exportProperties":"تصدير الخصائص","store.actions.noCollectionContext":"لا يوجد سياق مجموعة","store.actions.noObjectsSelected":"لم يتم تحديد كائنات","store.actions.pleaseSelectObjectsToDelete":"يرجى تحديد كائنات للحذف","store.actions.pleaseSelectObjectsToRemove":"يرجى تحديد كائنات لإزالتها من المجموعة","store.actions.selectCollection":"اختر مجموعة","store.actions.startWorkflow":"بدء سير العمل","store.actions.startWorkflowByRule":"بدء سير عمل بقاعدة","store.actions.startWorkflowDesc":"بدء سير عمل على الكائنات المحددة","store.actions.workflowStarted":"تم بدء سير العمل","store.allowedContentTypes":"أنواع المحتوى المسموح بها","store.allowedContentTypesOptionalDescription":"اختر اختيارياً أنواع المحتوى التي يمكن إضافتها إلى المجموعة. إذا لم يتم التعيين، فسيتم السماح بجميع أنواع المحتوى.","store.allowedContentTypesSelectDescription":"اختر أنواع المحتوى التي يمكن إضافتها إلى المجموعة. إذا لم يتم التعيين، فسيتم السماح بجميع أنواع المحتوى.","store.areYouSureDeleteCollection":"هل أنت متأكد من حذف هذه المجموعة؟ لا يمكن التراجع عن هذا الإجراء.","store.audioFormatRequired":"يتطلب صيغة MP3 أو M4A أو OGG أو WAV أو WebM","store.automaticTypeDetection":"الكشف التلقائي عن النوع","store.automaticTypeDetectionDescription":"سيقوم Vertesia بتحليل المحتوى واختيار النوع الأنسب. يُوصى بهذا لمعظم عمليات الرفع ويضمن المعالجة المثلى.","store.cancelEdit":"إلغاء","store.chooseAFormat":"اختر صيغة","store.chooseContentType":"اختر نوع محتوى...","store.chooseContentTypes":"اختر أنواع المحتوى...","store.chooseWhatToExport":"اختر ما تريد تصديره","store.clearSelection":"مسح الاختيار","store.close":"إغلاق","store.collectionCreated":"تم إنشاء المجموعة","store.collectionDeleted":"تم حذف المجموعة","store.collectionFetchFailed":"فشل جلب المجموعة","store.collectionPropertiesUpdated":"تم تحديث خصائص المجموعة","store.collectionsSelected_zero":"لم يتم تحديد أي مجموعة","store.collectionsSelected_one":"تم تحديد {{count}} مجموعة","store.collectionsSelected_two":"تم تحديد {{count}} مجموعتَين","store.collectionsSelected_few":"تم تحديد {{count}} مجموعات","store.collectionsSelected_many":"تم تحديد {{count}} مجموعة","store.collectionsSelected_other":"تم تحديد {{count}} مجموعة","store.collectionUpdated":"تم تحديث المجموعة","store.collectionUpdatedSuccess":"تم تحديث المجموعة بنجاح","store.configuration":"الإعدادات","store.confirmSelection":"تأكيد الاختيار","store.contentCopied":"تم نسخ {{type}}","store.contentExported":"تم تصدير المحتوى","store.contentType":"نوع المحتوى","store.convertingToPdf":"جارٍ التحويل إلى PDF...","store.copyFailed":"فشل النسخ","store.createACollection":"إنشاء مجموعة","store.createCollection":"إنشاء مجموعة","store.created":"تاريخ الإنشاء","store.createdBy":"أنشأه","store.createType":"إنشاء نوع","store.deleteCollection":"حذف المجموعة","store.documentExported":"تم تصدير المستند","store.documentInformation":"معلومات المستند","store.documentListRefreshed":"تم تحديث قائمة المستندات","store.documentListRefreshedDesc":"تم تحديث قائمة المستندات بملفاتك المرفوعة.","store.documentPreview":"معاينة المستند","store.downloadFailed":"فشل التحميل","store.dynamicCollection":"مجموعة ديناميكية","store.dynamicCollectionDescription":"جلب المحتوى ديناميكياً للمجموعة بناءً على استعلام. إذا لم يتم التفعيل، يجب إضافة المحتوى من قبل المستخدمين أو الوكلاء.","store.editingGenericDocument":"تحرير خصائص مستند عام","store.editJson":"تحرير JSON","store.editProperties":"تحرير الخصائص","store.editSchema":"تحرير المخطط","store.editText":"تحرير النص","store.embeddings":"التضمينات","store.enableSyncMemberHeads":"تفعيل مزامنة رؤوس الأعضاء","store.error":"خطأ","store.errorCheckingDuplicates":"حدث خطأ أثناء التحقق من الملفات المكررة","store.errorCreatingType":"خطأ في إنشاء النوع","store.errorInUploadProcessingCheck":"خطأ في فحص معالجة رفع الملفات","store.errorProcessingFiles":"خطأ في معالجة الملفات","store.errorSavingText":"فشل في حفظ النص","store.errorSavingTextDefault":"حدث خطأ أثناء حفظ محتوى النص.","store.errorUpdatingProperties":"خطأ في تحديث الخصائص","store.errorUpdatingPropertiesDefault":"حدث خطأ أثناء تحديث الخصائص.","store.exportFailed":"فشل التصدير","store.exportInProgress":"التصدير قيد التنفيذ","store.failedToConvertToPdf":"فشل التحويل إلى PDF","store.failedToCopy":"فشل نسخ {{type}} إلى الحافظة","store.failedToCreateCollection":"فشل إنشاء المجموعة","store.failedToDeleteCollection":"فشل حذف المجموعة","store.failedToDownloadFile":"فشل تحميل الملف","store.failedToDownloadPdf":"فشل تحميل ملف PDF","store.failedToExportContent":"فشل تصدير المحتوى","store.failedToExportDocument":"فشل تصدير المستند","store.failedToFetchRoleMappings":"فشل جلب تعيينات الأدوار","store.failedToFetchTypes":"فشل جلب أنواع الكائنات","store.failedToFetchWorkflows":"فشل جلب سير العمل","store.failedToGetDownloadUrl":"فشل الحصول على رابط التحميل","store.failedToLoadDocument":"فشل تحميل المستند","store.failedToLoadType":"فشل تحميل النوع","store.failedToUpdateCollection":"فشل تحديث المجموعة","store.failedToUpdateCollectionProperties":"فشل تحديث خصائص المجموعة","store.failedToUpdateSchema":"فشل تحديث المخطط","store.failedToUpdateSharedProperties":"فشل تحديث الخصائص المشتركة","store.failedToUpdateSkipHeadSync":"فشل تحديث إعداد تخطي مزامنة الرؤوس","store.failedToUpdateTableLayout":"فشل تحديث تخطيط الجدول","store.filesAnalyzedTitle":"تم تحليل الملفات","store.filesReadyToProcess":"الملفات جاهزة للمعالجة","store.filterByName":"تصفية بالاسم","store.fullText":"النص الكامل","store.fullView":"العرض الكامل","store.getStartedCollections":"ابدأ بإنشاء مجموعة جديدة.","store.getStartedTypes":"ابدأ بإنشاء نوع جديد.","store.id":"المعرف","store.invalidJson":"JSON غير صالح","store.invalidJsonSchema":"مخطط JSON غير صالح","store.invalidQueryJson":"استعلام JSON غير صالح","store.invalidTableLayout":"تخطيط جدول غير صالح","store.isChunkable":"قابل للتجزئة","store.limit":"الحد","store.loadingDocument":"جارٍ تحميل المستند...","store.loadingProcessingStatus":"جارٍ تحميل حالة المعالجة...","store.na":"غير متوفر","store.name":"الاسم","store.newCollections":"مجموعات جديدة","store.newVersionCreated":"تم إنشاء نسخة جديدة","store.newVersionCreatedDesc":"تم إنشاء نسخة جديدة بخصائص محدّثة.","store.noAudioRendition":"لا يتوفر إصدار صوتي متوافق مع الويب","store.noCollections":"لا توجد مجموعات","store.noCollectionsAvailable":"لا توجد مجموعات متاحة.","store.noCollectionsFound":"لم يتم العثور على مجموعات.","store.noFilesSelected":"لم يتم اختيار ملفات","store.none":"لا شيء","store.noObjectsDragAndDrop":"لا توجد كائنات. اسحب وأفلت المستندات أو الصور هنا لإنشاء كائنات محتوى.","store.noPreviewAvailable":"لا تتوفر معاينة لهذا النوع من المستندات.","store.noProjectSelected":"لم يتم اختيار مشروع","store.noPropertiesAvailable":"لا توجد خصائص متاحة لهذا المستند.","store.noPropertiesDefined":"لم يتم تعريف خصائص","store.noTranscriptAvailable":"لا يتوفر نص مكتوب","store.noType":"بدون نوع","store.noValidFilesSelected":"لم يتم اختيار ملفات صالحة","store.noVideoRendition":"لا يتوفر إصدار فيديو متوافق مع الويب","store.openFullDocument":"فتح المستند الكامل","store.openFullDocumentView":"فتح العرض الكامل للمستند","store.optional":"(اختياري)","store.pdfConversionFailed":"فشل تحويل PDF","store.pdfPreviewFullView":"معاينة مستند PDF متاحة في العرض الكامل.","store.pleaseFixJsonSyntax":"يرجى إصلاح أخطاء بناء JSON قبل الحفظ.","store.pleaseProvideName":"يرجى تقديم اسم للمجموعة","store.pleaseSelectValidFiles":"يرجى اختيار ملفات ذات محتوى صالح.","store.pleaseWait":"يرجى الانتظار","store.preview":"معاينة","store.previewProperties":"معاينة الخصائص","store.processingFailedFor":"فشلت المعالجة لـ {{name}}","store.processingFiles":"جارٍ معالجة الملفات","store.properties":"الخصائص","store.propertiesUpdated":"تم تحديث الخصائص","store.propertiesUpdatedDesc":"تم تحديث خصائص الكائن بنجاح.","store.query":"استعلام","store.queryDescription":"حدد الاستعلام لجلب المحتوى ديناميكياً للمجموعة.","store.refresh":"تحديث","store.renderingDocument":"جارٍ عرض مستندك...","store.saveChanges":"حفظ التغييرات","store.saveText":"حفظ","store.schemaEditor":"محرر المخطط","store.schemaUpdated":"تم تحديث المخطط","store.schemaUpdatedSuccess":"تم تحديث المخطط بنجاح","store.search":"بحث","store.searchCollections":"البحث في المجموعات","store.searchFailed":"فشل البحث","store.searching":"جارٍ البحث...","store.searchPlaceholder":"اكتب ما تبحث عنه، أو اختر عامل تصفية","store.searchTypes":"البحث في الأنواع","store.selectACollection":"اختر مجموعة","store.selectContentType":"اختر نوع المحتوى","store.selectContentTypeAuto":"اختر نوع محتوى أو اتركه فارغاً للكشف التلقائي","store.selectContentTypeLabel":"اختر نوع محتوى","store.selectPropertiesToShare":"اختر الخصائص للمشاركة","store.semanticChunking":"التجزئة الدلالية","store.semanticSearch":"البحث الدلالي","store.semanticSearchSettings":"إعدادات البحث الدلالي","store.sharedProperties":"الخصائص المشتركة","store.sharedPropertiesDescription":"أضف خصائص لمشاركتها بين جميع أعضاء المجموعة. تتطلب هذه الميزة تفعيل مزامنة الخصائص المشتركة في المشروع.","store.showingFirst128K":"عرض أول 128 ألف حرف فقط","store.size":"الحجم","store.staticCollection":"مجموعة ثابتة","store.strictMode":"الوضع الصارم","store.successfullyCopied":"تم نسخ {{type}} إلى الحافظة بنجاح","store.successfullyExportedTo":"تم التصدير بنجاح إلى {{format}}","store.syncMemberHeads":"مزامنة رؤوس الأعضاء","store.syncMemberHeadsDescription":"عند إنشاء إصدار HEAD جديد لعضو، سيتم تحديث المجموعة للإشارة إلى HEAD الجديد.","store.tableLayout":"تخطيط الجدول","store.tableLayoutDescription":"حدد تخطيطاً مخصصاً لعرض المجموعة في الجداول.","store.tableLayoutUpdated":"تم تحديث تخطيط الجدول","store.tableLayoutUpdatedDesc":"تم تحديث تخطيط الجدول بنجاح","store.textConflict":"تم تعديل المستند في مكان آخر. يرجى التحديث والمحاولة مرة أخرى.","store.textSaved":"تم حفظ محتوى النص","store.typeCreated":"تم إنشاء النوع","store.typeDescription":"اختر اختيارياً نوع محتوى لتعيين خصائص وبيانات مخصصة للمجموعة.","store.typeSelectDescription":"اختر نوع محتوى لتعيين خصائص وبيانات مخصصة للمجموعة.","store.unknown":"غير معروف","store.unsavedChanges":"تغييرات غير محفوظة","store.updated":"تاريخ التحديث","store.updatedAt":"تاريخ التحديث","store.updatedBy":"حدّثه","store.updatedSharedProperties":"تم تحديث الخصائص المشتركة","store.updatedSkipHeadSync":"تم تحديث إعداد تخطي مزامنة الرؤوس","store.upload":"رفع","store.uploadComplete":"اكتمل الرفع","store.uploadIssues":"مشاكل الرفع","store.validationFailed":"فشل التحقق","store.videoFormatRequired":"يتطلب صيغة MP4 أو WebM","store.viewAsPdf":"عرض كـ PDF","store.viewAudio":"عرض الصوت","store.viewImage":"عرض الصورة","store.viewingNewVersion":"عرض النسخة الجديدة","store.viewingNewVersionDefault":"يتم الآن عرض النسخة الجديدة","store.viewingVersionLabel":"يتم الآن عرض النسخة '{{label}}'","store.viewInJsonFormat":"عرض بصيغة JSON","store.viewPdf":"عرض PDF","store.viewText":"عرض النص","store.viewTranscript":"عرض النص المكتوب","store.viewVideo":"عرض الفيديو","theme.dark":"داكن","theme.label":"المظهر","theme.light":"فاتح","theme.system":"النظام","type.description":"الوصف","type.name":"الاسم","type.nameRequired":"الاسم مطلوب","type.type":"النوع","upload.allFilesExist_zero":"لا توجد ملفات موجودة مسبقًا","upload.allFilesExist_one":"{{count}} ملف موجود مسبقًا","upload.allFilesExist_two":"{{count}} ملفَان موجودان مسبقًا","upload.allFilesExist_few":"{{count}} ملفات موجودة مسبقًا","upload.allFilesExist_many":"{{count}} ملفًا موجودًا مسبقًا","upload.allFilesExist_other":"{{count}} ملف موجود مسبقًا","upload.analyzingFiles":"جارٍ تحليل الملفات...","upload.checkingForDuplicates":"جارٍ التحقق من التكرارات والتحديثات","upload.collectionLabel":"المجموعة:","upload.contentTypeTooltip":"اختر نوع محتوى لتطبيقه على الملفات المرفوعة. إذا تُرك فارغاً، سيكتشف Vertesia النوع تلقائياً بناءً على محتوى الملف.","upload.continue":"متابعة","upload.dragAndDrop":"اسحب وأفلت الملفات هنا أو انقر للاختيار","upload.errorAnalyzingFiles":"حدث خطأ أثناء تحليل الملفات","upload.failedToUpload":"فشل الرفع","upload.fileAnalysisResults":"نتائج تحليل الملفات","upload.filesAnalyzed":"تم تحليل الملفات","upload.filesProcessed_zero":"لم تتم معالجة أي ملفات","upload.filesProcessed_one":"تمت معالجة ملف واحد","upload.filesProcessed_two":"تمت معالجة ملفين","upload.filesProcessed_few":"تمت معالجة {{count}} ملفات","upload.filesProcessed_many":"تمت معالجة {{count}} ملفًا","upload.filesProcessed_other":"تمت معالجة {{count}} ملف","upload.filesReadyToProcess_zero":"لا توجد ملفات جاهزة للمعالجة","upload.filesReadyToProcess_one":"ملف واحد جاهز للمعالجة","upload.filesReadyToProcess_two":"ملفان جاهزان للمعالجة","upload.filesReadyToProcess_few":"{{count}} ملفات جاهزة للمعالجة","upload.filesReadyToProcess_many":"{{count}} ملفًا جاهزًا للمعالجة","upload.filesReadyToProcess_other":"{{count}} ملف جاهز للمعالجة","upload.filesToSkip_zero":"لا توجد ملفات للتخطي.","upload.filesToSkip_one":"ملف واحد موجود بالفعل في النظام وسيتم تخطيه.","upload.filesToSkip_two":"ملفان موجودان بالفعل في النظام وسيتم تخطيهما.","upload.filesToSkip_few":"{{count}} ملفات موجودة بالفعل في النظام وسيتم تخطيها.","upload.filesToSkip_many":"{{count}} ملفًا موجودًا بالفعل في النظام وسيتم تخطيه.","upload.filesToSkip_other":"{{count}} ملف موجود بالفعل في النظام وسيتم تخطيه.","upload.folderLabel":"المجلد:","upload.inCollection":" في المجموعة '{{collection}}'","upload.inFolder":" في المجلد '{{location}}'","upload.new":"جديد","upload.noFilesToProcess":"لا توجد ملفات للمعالجة.","upload.noItems":"لا توجد عناصر للعرض","upload.preparingFiles_zero":"جاري التحضير للرفع...","upload.preparingFiles_one":"جاري التحضير لرفع ملف واحد...","upload.preparingFiles_two":"جاري التحضير لرفع ملفين...","upload.preparingFiles_few":"جاري التحضير لرفع {{count}} ملفات...","upload.preparingFiles_many":"جاري التحضير لرفع {{count}} ملفًا...","upload.preparingFiles_other":"جاري التحضير لرفع {{count}} ملف...","upload.preparingFolder_zero":"جاري التحضير للرفع...","upload.preparingFolder_one":"جاري التحضير لرفع مجلد واحد يحتوي على {{fileCount}} ملفات...","upload.preparingFolder_two":"جاري التحضير لرفع مجلدين يحتويان على {{fileCount}} ملفات...","upload.preparingFolder_few":"جاري التحضير لرفع {{folderCount}} مجلدات تحتوي على {{fileCount}} ملفات...","upload.preparingFolder_many":"جاري التحضير لرفع {{folderCount}} مجلدًا يحتوي على {{fileCount}} ملفات...","upload.preparingFolder_other":"جاري التحضير لرفع {{folderCount}} مجلد يحتوي على {{fileCount}} ملفات...","upload.processedCount":"تمت معالجة {{processed}}/{{total}} ملف...","upload.processingFilesAction":"معالجة الملفات ({{action}})","upload.selectFiles":"اختيار ملفات","upload.selectFolder":"اختيار مجلد","upload.skip":"تخطي","upload.skippedAlreadyExisted":"تم التخطي (موجود بالفعل)","upload.successfullyUpdated":"تم التحديث بنجاح","upload.successfullyUploaded":"تم الرفع بنجاح","upload.update":"تحديث","upload.uploadComplete":"اكتمل الرفع","upload.uploadFiles":"رفع الملفات","upload.uploadingFiles":"جارٍ رفع الملفات","upload.uploadLocation":"موقع الرفع:","upload.uploadMore":"رفع المزيد","upload.uploadProcessInterrupted":"تم مقاطعة عملية الرفع","upload.useAutoDetection":"استخدام الكشف التلقائي عن النوع","upload.useTypeName":"استخدام {{typeName}}","user.account":"الحساب:","user.agentOnBehalfOf":"وكيل بالنيابة عن","user.agentOnBehalfOfApiKey":"وكيل بالنيابة عن مفتاح API","user.allProjectMembers":"جميع أعضاء المشروع","user.allProjectMembersDescription":"كل عضو في هذا المشروع لديه هذا الإذن.","user.appVersion":"إصدار التطبيق","user.environment":"البيئة","user.failedToFetchApiKey":"فشل جلب مفتاح API","user.failedToFetchGroup":"فشل جلب المجموعة","user.failedToFetchUser":"فشل جلب المستخدم","user.groupId":"معرف المجموعة: {{id}}","user.key":"المفتاح:","user.organizationId":"معرف المؤسسة","user.organizationRoles":"أدوار المؤسسة","user.privateKey":"المفتاح الخاص","user.project":"المشروع:","user.projectId":"معرف المشروع","user.projectRoles":"أدوار المشروع","user.schedule":"جدولة {{title}}","user.sdkVersion":"إصدار SDK","user.server":"الخادم","user.serviceAccount":"حساب الخدمة","user.serviceAccountDescription":"يُستخدم هذا المستخدم بواسطة الروبوتات مثل عمال سير العمل.","user.store":"المتجر","user.systemUser":"مستخدم النظام","user.systemUserDescription":"يُستخدم مستخدم النظام لتهيئة الكائنات المدمجة.","user.tenantId":"معرف المستأجر","user.unknown":"غير معروف","user.unknownUser":"مستخدم غير معروف","user.unknownUserDescription":"معلومات المستخدم غير متاحة.","user.unnamedGroup":"مجموعة بدون اسم","user.user":"مستخدم","user.userId":"معرف المستخدم","widgets.schema.editDescription":"تحرير الوصف","widgets.schema.invalidPropertyDeclaration":"إعلان خاصية غير صالح"}},de:{[Un]:{"agent.activeWorkstreams_one":"Agent hat {{count}} aktiven Arbeitsablauf","agent.activeWorkstreams_other":"Agent hat {{count}} aktive Arbeitsabläufe","agent.agentConversation":"Agent-Konversation","agent.agentInterrupted":"Agent unterbrochen","agent.agentPlan":"Agentenplan","agent.agentProcessing":"Agent verarbeitet, Sie können fortfahren, sobald er fertig ist...","agent.agentRunIdCopied":"Agent-Ausführungs-ID kopiert","agent.agentStarted":"Agent gestartet","agent.agentWorking":"Agent arbeitet... (Esc Esc zum Stoppen)","agent.agentWorkingStop":"Agent arbeitet... Drücken Sie zweimal Esc oder klicken Sie auf Stoppen zum Unterbrechen","agent.allMessages":"Alle Nachrichten","agent.artifacts":"Artefakte","agent.askAnything":"Fragen Sie etwas... (Dateien ablegen oder einfügen)","agent.batch":"Stapel","agent.canceled":"","agent.cancelWorkflow":"Workflow abbrechen","agent.clickToEnlarge":"Zum Vergrößern klicken","agent.cloneConversation":"Konversation klonen","agent.close":"Schließen","agent.closeFullscreen":"Vollbild schließen","agent.completed":"Abgeschlossen","agent.continueConversation":"Konversation fortsetzen","agent.conversationCloned":"Konversation geklont","agent.conversationContinued":"Konversation fortgesetzt","agent.copied":"Kopiert","agent.copiedAllToolCalls":"Alle Tool-Aufrufe in die Zwischenablage kopiert","agent.copiedBatchDetails":"Stapeldetails in die Zwischenablage kopiert","agent.copiedToClipboard":"In die Zwischenablage kopiert","agent.copy":"Kopieren","agent.copyAgentRunId":"Agent-Ausführungs-ID kopieren","agent.copyAllToolCalls":"Alle Tool-Aufrufe kopieren","agent.copyBatchDetails":"Stapeldetails kopieren","agent.copyMessage":"Nachricht kopieren","agent.copyRunId":"Ausführungs-ID kopieren","agent.copyToClipboard":"In die Zwischenablage kopieren","agent.copyWorkflowRunId":"Workflow-Ausführungs-ID kopieren","agent.dashboard":"Dashboard","agent.details":"Details","agent.document":"Dokument","agent.documentAttachments":"Dokumentanhänge","agent.documentAttachmentsDescription":"Dokumente aus dem Store, die an diese Nachricht angehängt sind. Der Agent kann sie jederzeit per ID abrufen oder erneut anhängen, um den Inhalt direkt einzuschließen.","agent.documents":"Dokumente","agent.download":"Herunterladen","agent.downloadConversation":"Konversation herunterladen","agent.dropFilesToUpload":"Dateien zum Hochladen ablegen","agent.elapsed":"{{seconds}}s vergangen","agent.enlargedView":"Vergrößerte Ansicht","agent.enterMessage":"Geben Sie eine Nachricht ein, um eine Konversation zu starten","agent.enterToSend":"Enter zum Senden • Umschalt+Enter für neue Zeile","agent.error":"Fehler","agent.errorStarting":"Fehler beim Starten des Workflows","agent.exit":"Beenden","agent.exitFullscreen":"Vollbild beenden","agent.export":"Exportieren","agent.exportAsPdf":"Als PDF exportieren","agent.exportAsPng":"Als PNG exportieren","agent.exportAsWord":"Als Word exportieren","agent.exporting":"Exportiere...","agent.exportMessage":"Nachricht exportieren","agent.failedToCancelWorkflow":"Workflow konnte nicht abgebrochen werden","agent.failedToCloneConversation":"Konversation konnte nicht geklont werden","agent.failedToContinueConversation":"Konversation konnte nicht fortgesetzt werden","agent.failedToDownload":"Konversation konnte nicht heruntergeladen werden","agent.failedToInterrupt":"Unterbrechung fehlgeschlagen","agent.failedToLoadDocument":"Dokument konnte nicht geladen werden","agent.failedToSend":"Nachricht konnte nicht gesendet werden","agent.filesProcessing":"Dateien werden noch verarbeitet","agent.filesStagedCount_one":"{{count}} Datei bereitgestellt - wird beim Start der Konversation hochgeladen","agent.filesStagedCount_other":"{{count}} Dateien bereitgestellt - werden beim Start der Konversation hochgeladen","agent.filesUploadedDescription":"Hochgeladene Dateien in dieser Konversation bleiben durchgehend verfügbar. Der Agent kann jederzeit darauf zugreifen.","agent.fullscreen":"Vollbild","agent.hideDetails":"Details ausblenden","agent.hideSidebar":"Seitenleiste ausblenden","agent.hideThinkingDetails":"Denkdetails ausblenden","agent.inProgress":"In Bearbeitung","agent.linkObject":"Objekt verknüpfen","agent.loadingArtifacts":"Artefakte werden geladen...","agent.loadingDocument":"Dokument wird geladen...","agent.main":"Haupt","agent.mainWorkstream":"Haupt-Workstream","agent.moreActions":"Weitere Aktionen","agent.newerPlan":"Neuerer Plan","agent.no":"Nein","agent.noActiveWorkstreams":"Keine aktiven Workstreams","agent.noAgentRunning":"Kein Agent wird derzeit ausgeführt","agent.noArtifactsYet":"Noch keine Artefakte","agent.noContentAvailable":"Kein Inhalt verfügbar","agent.noContentToExport":"Kein Inhalt zum Exportieren","agent.noConversationContent":"Kein Konversationsinhalt zum Exportieren verfügbar","agent.noDocumentsOpen":"Keine Dokumente geöffnet","agent.noFilesUploadedYet":"Noch keine Dateien hochgeladen","agent.noMessagesInWorkstream":"Noch keine Nachrichten in diesem Arbeitsbereich...","agent.noPlanAvailable":"Kein Plan verfügbar","agent.noPlanDetected":"Noch kein Plan erkannt","agent.olderPlan":"Älterer Plan","agent.openDocument":"Dokument öffnen","agent.openInNewTab":"In neuem Tab öffnen","agent.payload":"Nutzdaten","agent.pdfExportFailed":"PDF-Export fehlgeschlagen","agent.pdfExportReady":"PDF-Export bereit","agent.pending":"Ausstehend","agent.plan":"Plan","agent.planProgress":"Planfortschritt","agent.plansWillAppear":"Pläne erscheinen hier, wenn der Agent einen erstellt","agent.printDialogDescription":"Verwenden Sie den Druckdialog Ihres Browsers, um als PDF zu speichern","agent.processing":"Verarbeitung...","agent.ready":"Bereit","agent.refresh":"Aktualisieren","agent.remaining":"{{seconds}}s verbleibend","agent.retry":"Erneut versuchen","agent.runIdCopied":"Ausführungs-ID kopiert","agent.searchDocuments":"Dokumente suchen","agent.selectInteraction":"Wählen Sie eine Interaktion aus und klicken Sie auf Starten, um einen Agenten zu starten","agent.send":"Senden","agent.showAllMessages":"Alle Nachrichten anzeigen","agent.showDetails":"Details anzeigen","agent.showSidebar":"Seitenleiste anzeigen","agent.staged":"Bereitgestellt","agent.startAgent":"Agent starten","agent.startingAgent":"Agent wird gestartet...","agent.startingAgentUploading":"Agent wird gestartet und Dateien hochgeladen...","agent.startNewConversation":"Neue Konversation starten","agent.stepByStepPlan":"Schritt-für-Schritt-Plan","agent.stop":"Stoppen","agent.stopAgent":"Agent stoppen","agent.submitSelection":"Auswahl senden","agent.submitSelectionCount_one":"Auswahl senden ({{count}})","agent.submitSelectionCount_other":"Auswahl senden ({{count}})","agent.summary":"Zusammenfassung","agent.taskProgress":"Aufgabenfortschritt","agent.toggleRightSidebar":"Rechte Seitenleiste umschalten","agent.typeNewInstructions":"Geben Sie Ihre Nachricht ein, um neue Anweisungen zu geben","agent.typeQuestionBelow":"Geben Sie Ihre Frage unten ein und drücken Sie Enter oder klicken Sie auf {{buttonText}}, um zu beginnen","agent.typeYourMessage":"Geben Sie Ihre Nachricht ein...","agent.typeYourResponse":"Geben Sie Ihre Antwort ein...","agent.unableToOpenPrint":"Druckvorschau konnte nicht geöffnet werden","agent.unknownError":"Unbekannter Fehler","agent.unknownTime":"Unbekannte Zeit","agent.upload":"Hochladen","agent.uploadedFiles":"Hochgeladene Dateien","agent.uploadFailed":"Upload fehlgeschlagen","agent.uploading":"Wird hochgeladen...","agent.uploads":"Uploads","agent.waitForFiles":"Warten Sie, bis die Dateien fertig verarbeitet sind","agent.waitForFilesProcessing":"Bitte warten Sie, bis alle Dateien verarbeitet sind, bevor Sie senden","agent.waiting":"Warten...","agent.waitingForAgentResponse":"Warte auf Antwort des Agenten...","agent.workflowCancelled":"Workflow abgebrochen","agent.workflowRunIdCopied":"Workflow-Ausführungs-ID kopiert","agent.working":"Arbeitet...","agent.workstreams":"Workstreams","agent.yes":"Ja","auth.continueWithEnterprise":"Weiter mit Enterprise SSO","auth.continueWithGithub":"Weiter mit GitHub","auth.continueWithGoogle":"Weiter mit Google","auth.continueWithMicrosoft":"Weiter mit Microsoft","auth.enterEnterpriseEmail":"Geben Sie Ihre Unternehmens-E-Mail ein","auth.error":"Fehler: {{message}}","auth.firstTimeDetails":"Wir stellen Ihnen nur ein paar Fragen und schon kann es losgehen.","auth.firstTimeMessage":"Zum ersten Mal hier? Kein Problem, es ist kostenlos zum Ausprobieren!","auth.goBack":"Zurück","auth.invalidEmail":"Ungültige E-Mail-Adresse","auth.logInOrSignUp":"Anmelden oder Registrieren","auth.needToMakeChange":"Möchten Sie etwas ändern?","auth.or":"ODER","auth.privacyPolicy":"Datenschutzrichtlinie","auth.signInError":"Entschuldigung, wir konnten Sie nicht anmelden.","auth.signInErrorContact":"Bitte versuchen Sie es erneut oder kontaktieren Sie","auth.signInErrorPersists":"wenn das Problem weiterhin besteht.","auth.tenantNotFound":"Organisation nicht gefunden","auth.termsOfService":"Nutzungsbedingungen","errors.failedToLoadTenantConfig":"Mandantenkonfiguration konnte nicht geladen werden","errors.somethingWentWrong":"Entschuldigung, etwas ist schiefgelaufen...","errors.teamNotifiedLine1":"Unser Team wurde benachrichtigt und arbeitet schnell an einer Lösung.","errors.teamNotifiedLine2":"Wenn Sie eskalieren oder uns einfach kontaktieren möchten, senden Sie uns bitte eine E-Mail an","filter.clearAll":"Alle löschen","filter.filter":"Filter","filter.filterBy":"Filtern nach {{view}}","filter.filterPlaceholder":"Filtern...","filter.from":"Von:","filter.noAvailableFilters":"Keine verfügbaren Filter","filter.noMatchingFilters":"Keine passenden Filter","filter.noResultsFound":"Keine Ergebnisse gefunden.","filter.selectRange":"Bereich auswählen","filter.to":"Bis:","form.filter":"Filtern...","layout.pageNotFound":"Seite nicht gefunden","layout.search":"Suche","layout.searchPlaceholder":"Suchen...","login.accept":"Akzeptieren","login.reject":"Ablehnen","login.reviewInvites":"Einladungen überprüfen","login.terminal.account":"Konto","login.terminal.accountRequired":"Konto ist erforderlich","login.terminal.accountRequiredDesc":"Bitte wählen Sie ein Konto aus, um den Client für den Zugriff auf die ComposablePrompts-Server zu autorisieren","login.terminal.authorizeClient":"Client autorisieren","login.terminal.authPayloadCopied":"Authentifizierungsdaten kopiert","login.terminal.authPayloadCopiedSuccess":"Sie können diese Seite schließen. Das CLI sollte das Token erhalten haben.","login.terminal.authPayloadCopiedWithError":"Sie können die Daten im Terminal einfügen. Hinweis: Das CLI hat das Token nicht erhalten. Ein Fehler ist aufgetreten: {{error}}","login.terminal.browserPermissionNote":"Hinweis: Wenn Ihr Browser nach der Erlaubnis fragt, auf Ihr lokales Netzwerk zuzugreifen, erlauben Sie dies bitte. Dies ist erforderlich, um das Autorisierungstoken an das CLI-Tool zurückzusenden. Andernfalls müssen Sie das Token manuell in Ihr Terminal kopieren/einfügen.","login.terminal.chooseAccountProject":"Sie müssen das Zielkonto und Projekt für den Client-Zugriff auswählen.","login.terminal.clientAuthenticated":"Der Client ist authentifiziert. Sie können diese Seite schließen.","login.terminal.clientWantsAuth":"Eine Client-Anwendung möchte die Autorisierung zum Zugriff auf die ComposablePrompts-Server in Ihrem Namen.","login.terminal.copyAuthPayload":"Authentifizierungsdaten kopieren","login.terminal.envLocalDev":"Lokale Entwicklung","login.terminal.envProduction":"Produktion","login.terminal.envStaging":"Staging","login.terminal.errorAuthorizingClient":"Fehler bei der Client-Autorisierung","login.terminal.errorLoadingProjects":"Fehler beim Laden der Projekte","login.terminal.failedToGetToken":"Composable-Token konnte nicht abgerufen werden","login.terminal.failedToSendToken":"Autorisierungstoken konnte nicht an das CLI-Tool gesendet werden","login.terminal.failedToSendTokenDesc":'Dies kann aufgrund von Sicherheitsprüfungen in Safari passieren. Der Fehler ist "{{error}}"',"login.terminal.invalidRequest":"Ungültige Anfrage","login.terminal.invalidRequestDesc":"Diese Seite sollte von einem Terminal-Client aufgerufen werden, um sich bei den ComposablePrompts-Servern zu authentifizieren","login.terminal.profileName":"Profilname","login.terminal.profileNameNote":"Geben Sie außerdem einen Profilnamen ein, der zum Speichern der Autorisierung in Ihrer Client-Konfiguration verwendet wird.","login.terminal.profileRequired":"Profil ist erforderlich","login.terminal.profileRequiredDesc":"Bitte geben Sie einen Profilnamen ein, um die Client-Autorisierung zu speichern","login.terminal.project":"Projekt","login.terminal.projectRequired":"Projekt ist erforderlich","login.terminal.projectRequiredDesc":"Bitte wählen Sie ein Projekt aus, um den Client für den Zugriff auf die ComposablePrompts-Server zu autorisieren","login.terminal.selectAccount":"Konto auswählen","login.terminal.selectProject":"Projekt auswählen","mcpOAuth.authenticate":"Authentifizieren","mcpOAuth.authenticating":"Authentifizierung läuft...","mcpOAuth.connect":"Verbinden","mcpOAuth.connected":"Verbunden","mcpOAuth.connecting":"Verbindung wird hergestellt...","mcpOAuth.disconnect":"Trennen","mcpOAuth.notConnected":"Nicht verbunden","misc.copiedToClipboard":"In die Zwischenablage kopiert","misc.copy":"Kopieren","misc.failedToCopy":"Kopieren fehlgeschlagen","misc.noData":"Keine Daten zum Anzeigen","misc.tableView":"Tabellenansicht","misc.thumbnailView":"Miniaturansicht","modal.cancel":"Abbrechen","modal.confirm":"Bestätigen","modal.delete.error":"Beim Löschen des Objekts ist ein Fehler aufgetreten","modal.delete.failed":"Löschen fehlgeschlagen","modal.delete.succeeded":"Erfolgreich gelöscht","modal.save":"Speichern","modal.saveChanges":"Änderungen speichern","modal.saveVersion.createDescription":"Eine neue Revision mit diesen Eigenschaftsänderungen erstellen und das Original beibehalten.","modal.saveVersion.createNew":"Neue Version erstellen","modal.saveVersion.createWithFileDescription":"Eine neue Revision mit der Ersatzdatei erstellen und das Original beibehalten.","modal.saveVersion.howToSave":"Wie möchten Sie diese Änderungen speichern?","modal.saveVersion.replaceFile":"Sie sind dabei, die Inhaltsdatei zu ersetzen mit:","modal.saveVersion.updateCurrent":"Aktuelle Version aktualisieren","modal.saveVersion.updateDescription":"Eigenschaften direkt in der aktuellen Revision ändern.","modal.saveVersion.updateWithFileDescription":"Inhaltsdatei ersetzen und Eigenschaften direkt in der aktuellen Revision ändern.","modal.saveVersion.versionLabel":"Versionsbezeichnung (Optional)","modal.saveVersion.versionLabelDescription":"Optionale Bezeichnung für die neue Version.","modal.saveVersion.versionLabelPlaceholder":"z.B. v1.2, genehmigt, nach Überprüfung","oauthProvider.authenticate":"Authentifizieren","oauthProvider.authenticating":"Authentifizierung läuft...","oauthProvider.connected":"Verbunden","oauthProvider.disconnect":"Trennen","pdf.close":"Schließen","pdf.closeFullscreen":"Vollbild schließen","pdf.download":"Herunterladen","pdf.failedToLoadViewer":"PDF-Viewer konnte nicht geladen werden","pdf.fetchingDocumentFailed":"Dokument konnte nicht abgerufen werden","pdf.fitToWidth":"An Breite anpassen","pdf.fullscreen":"Vollbild","pdf.instrumentedImages":"Instrumentierte Bilder","pdf.nextPage":"Nächste Seite","pdf.noPdfAvailable":"Kein PDF verfügbar","pdf.originalImages":"Originalbilder","pdf.page":"Seite","pdf.pageOf":"Seite {{pageNumber}} / {{totalPages}}","pdf.previousPage":"Vorherige Seite","pdf.zoomIn":"Vergrößern","pdf.zoomOut":"Verkleinern","shell.accessDenied":"Zugriff verweigert","shell.applicationNotRegistered":"Anwendung nicht registriert","shell.organization":"Organisation","shell.selectOrganization":"Organisation auswählen","shell.selectProject":"Projekt auswählen","signup.accountType":"Kontotyp","signup.activelyExploring":"Aktive Erforschung von LLMs in einem Projekt","signup.alreadyUsing":"LLMs bereits in Produktion","signup.company":"Unternehmen","signup.companyDescription":"Für ein Unternehmen oder eine Organisation.","signup.companyName":"Firmenname","signup.companySize":"Unternehmensgröße","signup.companyWebsite":"Firmenwebsite","signup.justTesting":"LLMs nur testen oder evaluieren","signup.migratingLLMs":"Migration zu anderen LLMs","signup.other":"Sonstiges","signup.personal":"Persönlich","signup.personalDescription":"Für den persönlichen Gebrauch oder ein kleines Team.","signup.pleaseEnterOrgName":"Bitte geben Sie einen Organisationsnamen ein","signup.pleaseSelectAccountType":"Bitte wählen Sie einen Kontotyp","signup.pleaseSelectCompanySize":"Bitte wählen Sie eine Unternehmensgröße","signup.projectMaturity":"Projektreifegrad","signup.selectCompanySize":"Unternehmensgröße auswählen","signup.selectProjectMaturity":"Projektreifegrad auswählen","signup.signUp":"Registrieren","signup.size1001to5000":"1001-5000 Mitarbeiter","signup.size101to1000":"101-1000 Mitarbeiter","signup.size11to100":"11-100 Mitarbeiter","signup.size1to10":"1-10 Mitarbeiter","signup.size5000plus":"5000+ Mitarbeiter","signup.welcomeMessage":"Willkommen bei Vertesia, {{name}} ({{email}}).\nBitte erzählen Sie uns ein wenig über sich und schon kann es losgehen.\nKeine Kreditkarte erforderlich.","signup.wrongAccountGoBack":"Falsches Konto, zurück","store.actions.addToCollection":"Zur Sammlung hinzufügen","store.actions.addToCollectionBody":"Die ausgewählten Objekte zu einer bestehenden Sammlung hinzufügen oder eine neue erstellen.","store.actions.addToCollectionButton":"Zur Sammlung hinzufügen","store.actions.addToCollectionDesc":"Dokumente zu einer Sammlung hinzufügen","store.actions.addToCollectionFailure":"Fehler beim Hinzufügen zur Sammlung","store.actions.addToCollectionFailureDesc":"Die ausgewählten Objekte konnten nicht zur Sammlung hinzugefügt werden","store.actions.addToCollectionSuccess":"Erfolgreich zur Sammlung hinzugefügt","store.actions.addToCollectionSuccessDesc_one":"{{count}} Objekt zur Sammlung hinzugefügt","store.actions.addToCollectionSuccessDesc_other":"{{count}} Objekte zur Sammlung hinzugefügt","store.actions.addToCollectionTitle":"Zu einer Sammlung hinzufügen","store.actions.areYouSure":"Sind Sie sicher?","store.actions.cannotRemoveNoCollection":"Objekte können nicht entfernt werden: keine Sammlung angegeben","store.actions.changeContentType":"Inhaltstyp ändern","store.actions.changeContentTypeDesc":"Den Inhaltstyp der ausgewählten Dokumente ändern","store.actions.changeType":"Typ ändern","store.actions.chooseExistingCollections":"Aus bestehenden Sammlungen auswählen","store.actions.chooseWorkflowRule":"Wählen Sie eine Workflow-Regel zum Starten:","store.actions.confirmDeleteAll":"Sind Sie sicher, dass Sie alle ausgewählten Objekte löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.","store.actions.confirmDeleteSelected":"Sind Sie sicher, dass Sie die ausgewählten Objekte löschen möchten?\nDies ist kein Entfernen aus Sammlungen.","store.actions.createNew":"Neu erstellen","store.actions.delete":"Löschen","store.actions.deleteObjects":"Objekte löschen","store.actions.deleteTheSelectedObjects":"Die ausgewählten Objekte löschen","store.actions.errorChangingType":"Fehler beim Ändern des Typs","store.actions.errorDeletingObjects":"Fehler beim Löschen der Objekte","store.actions.errorExportProperties":"Fehler beim Exportieren der Eigenschaften","store.actions.errorRemovingObjects":"Fehler beim Entfernen der Objekte aus der Sammlung","store.actions.errorStartingWorkflow":"Fehler beim Starten des Workflows","store.actions.exportAllObjectProperties":"Alle Objekteigenschaften exportieren","store.actions.exportProperties":"Eigenschaften exportieren","store.actions.noCollectionContext":"Kein Sammlungskontext","store.actions.noObjectsSelected":"Keine Objekte ausgewählt","store.actions.pleaseSelectObjectsToDelete":"Bitte wählen Sie Objekte zum Löschen aus","store.actions.pleaseSelectObjectsToRemove":"Bitte wählen Sie Objekte zum Entfernen aus der Sammlung aus","store.actions.selectCollection":"Sammlung auswählen","store.actions.startWorkflow":"Workflow starten","store.actions.startWorkflowByRule":"Workflow nach Regel starten","store.actions.startWorkflowDesc":"Einen Workflow für die ausgewählten Objekte starten","store.actions.workflowStarted":"Workflow gestartet","store.allowedContentTypes":"Erlaubte Inhaltstypen","store.allowedContentTypesOptionalDescription":"Wählen Sie optional aus, welche Inhaltstypen zur Sammlung hinzugefügt werden können. Wenn nicht festgelegt, sind alle Inhaltstypen erlaubt.","store.allowedContentTypesSelectDescription":"Wählen Sie aus, welche Inhaltstypen zur Sammlung hinzugefügt werden können. Wenn nicht festgelegt, sind alle Inhaltstypen erlaubt.","store.areYouSureDeleteCollection":"Sind Sie sicher, dass Sie diese Sammlung löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.","store.audioFormatRequired":"MP3, M4A, OGG, WAV oder WebM Format erforderlich","store.automaticTypeDetection":"Automatische Typerkennung","store.automaticTypeDetectionDescription":"Vertesia analysiert den Inhalt und wählt den am besten geeigneten Typ aus. Dies wird für die meisten Uploads empfohlen und gewährleistet eine optimale Verarbeitung.","store.cancelEdit":"Abbrechen","store.chooseAFormat":"Format auswählen","store.chooseContentType":"Inhaltstyp auswählen...","store.chooseContentTypes":"Inhaltstypen auswählen...","store.chooseWhatToExport":"Auswählen, was exportiert werden soll","store.clearSelection":"Auswahl löschen","store.close":"Schließen","store.collectionCreated":"Sammlung erstellt","store.collectionDeleted":"Sammlung gelöscht","store.collectionFetchFailed":"Sammlung konnte nicht abgerufen werden","store.collectionPropertiesUpdated":"Sammlungseigenschaften aktualisiert","store.collectionsSelected_one":"{{count}} Sammlung ausgewählt","store.collectionsSelected_other":"{{count}} Sammlungen ausgewählt","store.collectionUpdated":"Sammlung aktualisiert","store.collectionUpdatedSuccess":"Sammlung wurde erfolgreich aktualisiert","store.configuration":"Konfiguration","store.confirmSelection":"Auswahl bestätigen","store.contentCopied":"{{type}} kopiert","store.contentExported":"Inhalt exportiert","store.contentType":"Inhaltstyp","store.convertingToPdf":"Konvertierung zu PDF...","store.copyFailed":"Kopieren fehlgeschlagen","store.createACollection":"Sammlung erstellen","store.createCollection":"Sammlung erstellen","store.created":"Erstellt","store.createdBy":"Erstellt von","store.createType":"Typ erstellen","store.deleteCollection":"Sammlung löschen","store.documentExported":"Dokument exportiert","store.documentInformation":"Dokumentinformationen","store.documentListRefreshed":"Dokumentliste aktualisiert","store.documentListRefreshedDesc":"Die Dokumentliste wurde mit Ihren hochgeladenen Dateien aktualisiert.","store.documentPreview":"Dokumentvorschau","store.downloadFailed":"Download fehlgeschlagen","store.dynamicCollection":"Dynamische Sammlung","store.dynamicCollectionDescription":"Inhalte dynamisch basierend auf einer Abfrage für die Sammlung abrufen. Wenn nicht aktiviert, müssen Inhalte von Benutzern oder Agenten hinzugefügt werden.","store.editingGenericDocument":"Bearbeitung der Eigenschaften für generisches Dokument","store.editJson":"JSON bearbeiten","store.editProperties":"Eigenschaften bearbeiten","store.editSchema":"Schema bearbeiten","store.editText":"Text bearbeiten","store.embeddings":"Einbettungen","store.enableSyncMemberHeads":"Synchronisierung der Mitglieder-Heads aktivieren","store.error":"Fehler","store.errorCheckingDuplicates":"Beim Prüfen auf doppelte Dateien ist ein Fehler aufgetreten","store.errorCreatingType":"Fehler beim Erstellen des Typs","store.errorInUploadProcessingCheck":"Fehler bei der Überprüfung der Dateiverarbeitung","store.errorProcessingFiles":"Fehler beim Verarbeiten der Dateien","store.errorSavingText":"Fehler beim Speichern des Textes","store.errorSavingTextDefault":"Beim Speichern des Textinhalts ist ein Fehler aufgetreten.","store.errorUpdatingProperties":"Fehler beim Aktualisieren der Eigenschaften","store.errorUpdatingPropertiesDefault":"Beim Aktualisieren der Eigenschaften ist ein Fehler aufgetreten.","store.exportFailed":"Export fehlgeschlagen","store.exportInProgress":"EXPORT WIRD DURCHGEFÜHRT","store.failedToConvertToPdf":"Konvertierung zu PDF fehlgeschlagen","store.failedToCopy":"{{type}} konnte nicht in die Zwischenablage kopiert werden","store.failedToCreateCollection":"Sammlung konnte nicht erstellt werden","store.failedToDeleteCollection":"Sammlung konnte nicht gelöscht werden","store.failedToDownloadFile":"Datei konnte nicht heruntergeladen werden","store.failedToDownloadPdf":"PDF-Datei konnte nicht heruntergeladen werden","store.failedToExportContent":"Inhalt konnte nicht exportiert werden","store.failedToExportDocument":"Dokument konnte nicht exportiert werden","store.failedToFetchRoleMappings":"Rollenzuordnungen konnten nicht abgerufen werden","store.failedToFetchTypes":"ObjectTypes konnten nicht abgerufen werden","store.failedToFetchWorkflows":"Workflows konnten nicht abgerufen werden","store.failedToGetDownloadUrl":"Download-URL konnte nicht abgerufen werden","store.failedToLoadDocument":"Dokument konnte nicht geladen werden","store.failedToLoadType":"Typ konnte nicht geladen werden","store.failedToUpdateCollection":"Sammlung konnte nicht aktualisiert werden","store.failedToUpdateCollectionProperties":"Sammlungseigenschaften konnten nicht aktualisiert werden","store.failedToUpdateSchema":"Schema konnte nicht aktualisiert werden","store.failedToUpdateSharedProperties":"Gemeinsame Eigenschaften konnten nicht aktualisiert werden","store.failedToUpdateSkipHeadSync":"Head-Synchronisierungseinstellung konnte nicht aktualisiert werden","store.failedToUpdateTableLayout":"Tabellenlayout konnte nicht aktualisiert werden","store.filesAnalyzedTitle":"Dateien analysiert","store.filesReadyToProcess":"Dateien bereit zur Verarbeitung","store.filterByName":"Nach Name filtern","store.fullText":"Volltext","store.fullView":"Vollansicht","store.getStartedCollections":"Beginnen Sie mit dem Erstellen einer neuen Sammlung.","store.getStartedTypes":"Beginnen Sie mit dem Erstellen eines neuen Typs.","store.id":"ID","store.invalidJson":"Ungültiges JSON","store.invalidJsonSchema":"Ungültiges JSON-Schema","store.invalidQueryJson":"Ungültiges Abfrage-JSON","store.invalidTableLayout":"Ungültiges Tabellenlayout","store.isChunkable":"Ist teilbar","store.limit":"Limit","store.loadingDocument":"Dokument wird geladen...","store.loadingProcessingStatus":"Verarbeitungsstatus wird geladen...","store.na":"N/V","store.name":"Name","store.newCollections":"Neue Sammlungen","store.newVersionCreated":"Neue Version erstellt","store.newVersionCreatedDesc":"Eine neue Version mit aktualisierten Eigenschaften wurde erstellt.","store.noAudioRendition":"Keine webkompatible Audio-Wiedergabe verfügbar","store.noCollections":"Keine Sammlungen","store.noCollectionsAvailable":"Keine Sammlungen verfügbar.","store.noCollectionsFound":"Keine Sammlungen gefunden.","store.noFilesSelected":"Keine Dateien ausgewählt","store.none":"Keine","store.noObjectsDragAndDrop":"Keine Objekte. Ziehen Sie einfach Dokumente oder Bilder hierher, um Inhaltsobjekte zu erstellen.","store.noPreviewAvailable":"Keine Vorschau für diesen Dokumenttyp verfügbar.","store.noProjectSelected":"Kein Projekt ausgewählt","store.noPropertiesAvailable":"Keine Eigenschaften für dieses Dokument verfügbar.","store.noPropertiesDefined":"Keine Eigenschaften definiert","store.noTranscriptAvailable":"Kein Transkript verfügbar","store.noType":"Kein Typ","store.noValidFilesSelected":"Keine gültigen Dateien ausgewählt","store.noVideoRendition":"Keine webkompatible Video-Wiedergabe verfügbar","store.openFullDocument":"Vollständiges Dokument öffnen","store.openFullDocumentView":"Vollständige Dokumentansicht öffnen","store.optional":"(Optional)","store.pdfConversionFailed":"PDF-Konvertierung fehlgeschlagen","store.pdfPreviewFullView":"PDF-Dokumentvorschau ist in der Vollansicht verfügbar.","store.pleaseFixJsonSyntax":"Bitte beheben Sie die JSON-Syntaxfehler vor dem Speichern.","store.pleaseProvideName":"Bitte geben Sie einen Namen für die Sammlung an","store.pleaseSelectValidFiles":"Bitte wählen Sie Dateien mit gültigem Inhalt aus.","store.pleaseWait":"BITTE WARTEN","store.preview":"Vorschau","store.previewProperties":"Eigenschaften-Vorschau","store.processingFailedFor":"Verarbeitung fehlgeschlagen für {{name}}","store.processingFiles":"Dateien werden verarbeitet","store.properties":"Eigenschaften","store.propertiesUpdated":"Eigenschaften aktualisiert","store.propertiesUpdatedDesc":"Die Objekteigenschaften wurden erfolgreich aktualisiert.","store.query":"Abfrage","store.queryDescription":"Definieren Sie die Abfrage, um Inhalte dynamisch für die Sammlung abzurufen.","store.refresh":"Aktualisieren","store.renderingDocument":"Ihr Dokument wird gerendert...","store.saveChanges":"Änderungen speichern","store.saveText":"Speichern","store.schemaEditor":"Schema-Editor","store.schemaUpdated":"Schema aktualisiert","store.schemaUpdatedSuccess":"Das Schema wurde erfolgreich aktualisiert","store.search":"Suche","store.searchCollections":"Sammlungen durchsuchen","store.searchFailed":"Suche fehlgeschlagen","store.searching":"Suche...","store.searchPlaceholder":"Geben Sie ein, wonach Sie suchen, oder wählen Sie einen Filter","store.searchTypes":"Typen suchen","store.selectACollection":"Sammlung auswählen","store.selectContentType":"Inhaltstyp auswählen","store.selectContentTypeAuto":"Inhaltstyp auswählen oder leer lassen für automatische Erkennung","store.selectContentTypeLabel":"Inhaltstyp auswählen","store.selectPropertiesToShare":"Zu teilende Eigenschaften auswählen","store.semanticChunking":"Semantische Aufteilung","store.semanticSearch":"Semantische Suche","store.semanticSearchSettings":"Einstellungen für semantische Suche","store.sharedProperties":"Gemeinsame Eigenschaften","store.sharedPropertiesDescription":"Eigenschaften hinzufügen, die über alle Mitglieder der Sammlung geteilt werden. Diese Funktion erfordert die Aktivierung der gemeinsamen Eigenschaftssynchronisierung im Projekt.","store.showingFirst128K":"Zeigt nur die ersten 128K Zeichen","store.size":"Größe","store.staticCollection":"Statische Sammlung","store.strictMode":"Strikter Modus","store.successfullyCopied":"{{type}} erfolgreich in die Zwischenablage kopiert","store.successfullyExportedTo":"Erfolgreich nach {{format}} exportiert","store.syncMemberHeads":"Mitglieder-Heads synchronisieren","store.syncMemberHeadsDescription":"Wenn eine neue HEAD-Version eines Mitglieds erstellt wird, wird die Sammlung aktualisiert, um auf den neuen HEAD zu verweisen.","store.tableLayout":"Tabellenlayout","store.tableLayoutDescription":"Definieren Sie ein benutzerdefiniertes Layout für die Anzeige der Sammlung in Tabellen.","store.tableLayoutUpdated":"Tabellenlayout aktualisiert","store.tableLayoutUpdatedDesc":"Das Tabellenlayout wurde erfolgreich aktualisiert","store.textConflict":"Das Dokument wurde anderweitig geändert. Bitte aktualisieren und erneut versuchen.","store.textSaved":"Textinhalt gespeichert","store.typeCreated":"Typ erstellt","store.typeDescription":"Wählen Sie optional einen Inhaltstyp, um der Sammlung benutzerdefinierte Eigenschaften und Daten zuzuweisen.","store.typeSelectDescription":"Wählen Sie einen Inhaltstyp, um der Sammlung benutzerdefinierte Eigenschaften und Daten zuzuweisen.","store.unknown":"Unbekannt","store.unsavedChanges":"Nicht gespeicherte Änderungen","store.updated":"Aktualisiert","store.updatedAt":"Aktualisiert am","store.updatedBy":"Aktualisiert von","store.updatedSharedProperties":"Gemeinsame Eigenschaften aktualisiert","store.updatedSkipHeadSync":"Head-Synchronisierungseinstellung aktualisiert","store.upload":"Hochladen","store.uploadComplete":"Upload abgeschlossen","store.uploadIssues":"Upload-Probleme","store.validationFailed":"Validierung fehlgeschlagen","store.videoFormatRequired":"MP4 oder WebM Format erforderlich","store.viewAsPdf":"Als PDF anzeigen","store.viewAudio":"Audio anzeigen","store.viewImage":"Bild anzeigen","store.viewingNewVersion":"Neue Version wird angezeigt","store.viewingNewVersionDefault":"Die neue Version wird jetzt angezeigt","store.viewingVersionLabel":"Version '{{label}}' wird jetzt angezeigt","store.viewInJsonFormat":"Im JSON-Format anzeigen","store.viewPdf":"PDF anzeigen","store.viewText":"Text anzeigen","store.viewTranscript":"Transkript anzeigen","store.viewVideo":"Video anzeigen","theme.dark":"Dunkel","theme.label":"Design","theme.light":"Hell","theme.system":"System","type.description":"Beschreibung","type.name":"Name","type.nameRequired":"Name ist erforderlich","type.type":"Typ","upload.allFilesExist_one":"{{count}} Datei existiert bereits","upload.allFilesExist_other":"{{count}} Dateien existieren bereits","upload.analyzingFiles":"Dateien werden analysiert...","upload.checkingForDuplicates":"Überprüfung auf Duplikate und Aktualisierungen","upload.collectionLabel":"Sammlung:","upload.contentTypeTooltip":"Wählen Sie einen Inhaltstyp für die hochgeladenen Dateien. Wenn leer gelassen, erkennt Vertesia den Typ automatisch basierend auf dem Dateiinhalt.","upload.continue":"Fortfahren","upload.dragAndDrop":"Dateien hierher ziehen und ablegen oder klicken zum Auswählen","upload.errorAnalyzingFiles":"Beim Analysieren der Dateien ist ein Fehler aufgetreten","upload.failedToUpload":"Hochladen fehlgeschlagen","upload.fileAnalysisResults":"Dateianalyseergebnisse","upload.filesAnalyzed":"Dateien analysiert","upload.filesProcessed_one":"{{count}} Datei verarbeitet","upload.filesProcessed_other":"{{count}} Dateien verarbeitet","upload.filesReadyToProcess_one":"{{count}} Datei ist bereit zur Verarbeitung","upload.filesReadyToProcess_other":"{{count}} Dateien sind bereit zur Verarbeitung","upload.filesToSkip_one":"{{count}} Datei ist bereits im System und wird übersprungen.","upload.filesToSkip_other":"{{count}} Dateien sind bereits im System und werden übersprungen.","upload.folderLabel":"Ordner:","upload.inCollection":" in Sammlung '{{collection}}'","upload.inFolder":" in Ordner '{{location}}'","upload.new":"Neu","upload.noFilesToProcess":"Keine Dateien zu verarbeiten.","upload.noItems":"Keine Elemente zum Anzeigen","upload.preparingFiles_one":"{{count}} Datei wird vorbereitet...","upload.preparingFiles_other":"{{count}} Dateien werden vorbereitet...","upload.preparingFolder_one":"1 Ordner mit {{fileCount}} Dateien wird vorbereitet...","upload.preparingFolder_other":"{{folderCount}} Ordner mit {{fileCount}} Dateien werden vorbereitet...","upload.processedCount":"{{processed}}/{{total}} Dateien verarbeitet...","upload.processingFilesAction":"Dateien verarbeiten ({{action}})","upload.selectFiles":"Dateien auswählen","upload.selectFolder":"Ordner auswählen","upload.skip":"Überspringen","upload.skippedAlreadyExisted":"Übersprungen (bereits vorhanden)","upload.successfullyUpdated":"Erfolgreich aktualisiert","upload.successfullyUploaded":"Erfolgreich hochgeladen","upload.update":"Aktualisieren","upload.uploadComplete":"Upload abgeschlossen","upload.uploadFiles":"Dateien hochladen","upload.uploadingFiles":"Dateien werden hochgeladen","upload.uploadLocation":"Upload-Speicherort:","upload.uploadMore":"Weitere hochladen","upload.uploadProcessInterrupted":"Upload-Vorgang unterbrochen","upload.useAutoDetection":"Automatische Typerkennung verwenden","upload.useTypeName":"{{typeName}} verwenden","user.account":"Konto:","user.agentOnBehalfOf":"Agent im Auftrag von","user.agentOnBehalfOfApiKey":"Agent im Auftrag von API-Schlüssel","user.allProjectMembers":"Alle Projektmitglieder","user.allProjectMembersDescription":"Jedes Mitglied dieses Projekts hat diese Berechtigung.","user.appVersion":"App-Version","user.environment":"Umgebung","user.failedToFetchApiKey":"API-Schlüssel konnte nicht abgerufen werden","user.failedToFetchGroup":"Gruppe konnte nicht abgerufen werden","user.failedToFetchUser":"Benutzer konnte nicht abgerufen werden","user.groupId":"Gruppen-ID: {{id}}","user.key":"Schlüssel:","user.organizationId":"Organisations-ID","user.organizationRoles":"Organisationsrollen","user.privateKey":"Privater Schlüssel","user.project":"Projekt:","user.projectId":"Projekt-ID","user.projectRoles":"Projektrollen","user.schedule":"Zeitplan {{title}}","user.sdkVersion":"SDK-Version","user.server":"Server","user.serviceAccount":"Dienstkonto","user.serviceAccountDescription":"Dieser Benutzer wird von Robotern wie Workflow-Workern verwendet.","user.store":"Speicher","user.systemUser":"Systembenutzer","user.systemUserDescription":"Der Systembenutzer wird zur Initialisierung integrierter Objekte verwendet.","user.tenantId":"Mandanten-ID","user.unknown":"Unbekannt","user.unknownUser":"Unbekannter Benutzer","user.unknownUserDescription":"Benutzerinformationen sind nicht verfügbar.","user.unnamedGroup":"Unbenannte Gruppe","user.user":"Benutzer","user.userId":"Benutzer-ID","widgets.schema.editDescription":"Beschreibung bearbeiten","widgets.schema.invalidPropertyDeclaration":"Ungültige Eigenschaftsdeklaration"}},en:{[Un]:{"agent.activeWorkstreams_one":"Agent has {{count}} active workstream running","agent.activeWorkstreams_other":"Agent has {{count}} active workstreams running","agent.agentConversation":"Agent Conversation","agent.agentInterrupted":"Agent Interrupted","agent.agentPlan":"Agent Plan","agent.agentProcessing":"Agent is processing, you can continue once it completes...","agent.agentRunIdCopied":"Agent Run ID copied","agent.agentStarted":"Agent started","agent.agentWorking":"Agent is working... (Esc Esc to stop)","agent.agentWorkingStop":"Agent is working... Press Esc twice or click Stop to interrupt","agent.allMessages":"All Messages","agent.artifacts":"Artifacts","agent.askAnything":"Ask anything... (drop or paste files)","agent.batch":"Batch","agent.canceled":"Canceled","agent.cancelWorkflow":"Cancel Workflow","agent.clickToEnlarge":"Click to enlarge","agent.cloneConversation":"Clone Conversation","agent.close":"Close","agent.closeFullscreen":"Close fullscreen","agent.completed":"Completed","agent.continueConversation":"Continue Conversation","agent.conversationCloned":"Conversation cloned","agent.conversationContinued":"Conversation continued","agent.copied":"Copied","agent.copiedAllToolCalls":"Copied all tool calls to clipboard","agent.copiedBatchDetails":"Copied batch details to clipboard","agent.copiedToClipboard":"Copied to clipboard","agent.copy":"Copy","agent.copyAgentRunId":"Copy Agent Run ID","agent.copyAllToolCalls":"Copy all tool calls","agent.copyBatchDetails":"Copy batch details","agent.copyMessage":"Copy message","agent.copyRunId":"Copy Run ID","agent.copyToClipboard":"Copy to clipboard","agent.copyWorkflowRunId":"Copy Workflow Run ID","agent.dashboard":"Dashboard","agent.details":"Details","agent.document":"Document","agent.documentAttachments":"Document Attachments","agent.documentAttachmentsDescription":"Documents from the store attached to this message. The agent can re-fetch them by ID anytime, or re-attach to include content directly.","agent.documents":"Documents","agent.download":"Download","agent.downloadConversation":"Download Conversation","agent.dropFilesToUpload":"Drop files to upload","agent.elapsed":"{{seconds}}s elapsed","agent.enlargedView":"Enlarged view","agent.enterMessage":"Enter a message to start a conversation","agent.enterToSend":"Enter to send • Shift+Enter for new line","agent.error":"Error","agent.errorStarting":"Error starting workflow","agent.exit":"Exit","agent.exitFullscreen":"Exit fullscreen","agent.export":"Export","agent.exportAsPdf":"Export as PDF","agent.exportAsPng":"Export as PNG","agent.exportAsWord":"Export as Word","agent.exporting":"Exporting...","agent.exportMessage":"Export message","agent.failedToCancelWorkflow":"Failed to cancel workflow","agent.failedToCloneConversation":"Failed to clone conversation","agent.failedToContinueConversation":"Failed to continue conversation","agent.failedToDownload":"Failed to download conversation","agent.failedToInterrupt":"Failed to Interrupt","agent.failedToLoadDocument":"Failed to load document","agent.failedToSend":"Failed to Send Message","agent.filesProcessing":"Files Still Processing","agent.filesStagedCount_one":"{{count}} file staged - will upload when conversation starts","agent.filesStagedCount_other":"{{count}} files staged - will upload when conversation starts","agent.filesUploadedDescription":"Files uploaded to this conversation remain available throughout. The agent can access them anytime.","agent.fullscreen":"Fullscreen","agent.hideDetails":"Hide details","agent.hideSidebar":"Hide Sidebar","agent.hideThinkingDetails":"Hide thinking details","agent.inProgress":"In Progress","agent.linkObject":"Link Object","agent.loadingArtifacts":"Loading artifacts...","agent.loadingDocument":"Loading document...","agent.main":"Main","agent.mainWorkstream":"Main Workstream","agent.moreActions":"More actions","agent.newerPlan":"Newer Plan","agent.no":"No","agent.noActiveWorkstreams":"No active workstreams","agent.noAgentRunning":"No agent currently running","agent.noArtifactsYet":"No artifacts yet","agent.noContentAvailable":"No content available","agent.noContentToExport":"No content to export","agent.noConversationContent":"No conversation content available to export","agent.noDocumentsOpen":"No documents open","agent.noFilesUploadedYet":"No files uploaded yet","agent.noMessagesInWorkstream":"No messages in this workstream yet...","agent.noPlanAvailable":"No plan available","agent.noPlanDetected":"No plan has been detected yet","agent.olderPlan":"Older Plan","agent.openDocument":"Open document","agent.openInNewTab":"Open in new tab","agent.payload":"Payload","agent.pdfExportFailed":"PDF export failed","agent.pdfExportReady":"PDF export ready","agent.pending":"Pending","agent.plan":"Plan","agent.planProgress":"Plan Progress","agent.plansWillAppear":"Plans will appear here when the agent creates one","agent.printDialogDescription":"Use your browser's Print dialog to save as PDF","agent.processing":"Processing...","agent.ready":"Ready","agent.refresh":"Refresh","agent.remaining":"{{seconds}}s remaining","agent.retry":"Retry","agent.runIdCopied":"Run ID copied","agent.searchDocuments":"Search Documents","agent.selectInteraction":"Select an interaction and click Start to start an agent","agent.send":"Send","agent.showAllMessages":"Show all messages","agent.showDetails":"Show details","agent.showSidebar":"Show Sidebar","agent.staged":"Staged","agent.startAgent":"Start Agent","agent.startingAgent":"Starting agent...","agent.startingAgentUploading":"Starting agent and uploading files...","agent.startNewConversation":"Start New Conversation","agent.stepByStepPlan":"Step-by-Step Plan","agent.stop":"Stop","agent.stopAgent":"Stop the agent","agent.submitSelection":"Submit Selection","agent.submitSelectionCount_one":"Submit Selection ({{count}})","agent.submitSelectionCount_other":"Submit Selection ({{count}})","agent.summary":"Summary","agent.taskProgress":"Task Progress","agent.toggleRightSidebar":"Toggle right sidebar","agent.typeNewInstructions":"Type your message to give new instructions","agent.typeQuestionBelow":"Type your question below and press Enter or click {{buttonText}} to begin","agent.typeYourMessage":"Type your message...","agent.typeYourResponse":"Type your response...","agent.unableToOpenPrint":"Unable to open print preview","agent.unknownError":"Unknown error","agent.unknownTime":"Unknown time","agent.upload":"Upload","agent.uploadedFiles":"Uploaded Files","agent.uploadFailed":"Upload Failed","agent.uploading":"Uploading...","agent.uploads":"Uploads","agent.waitForFiles":"Wait for files to finish processing","agent.waitForFilesProcessing":"Please wait for all files to finish processing before sending","agent.waiting":"Waiting...","agent.waitingForAgentResponse":"Waiting for agent response...","agent.workflowCancelled":"Workflow cancelled","agent.workflowRunIdCopied":"Workflow Run ID copied","agent.working":"Working...","agent.workstreams":"Workstreams","agent.yes":"Yes","auth.continueWithEnterprise":"Continue with Enterprise SSO","auth.continueWithGithub":"Continue with GitHub","auth.continueWithGoogle":"Continue with Google","auth.continueWithMicrosoft":"Continue with Microsoft","auth.enterEnterpriseEmail":"Enter your enterprise email","auth.error":"Error: {{message}}","auth.firstTimeDetails":"We'll just ask you a couple of questions next and you'll be on your way.","auth.firstTimeMessage":"First time here? No problem, it's free to try!","auth.goBack":"Go back","auth.invalidEmail":"Invalid email address","auth.logInOrSignUp":"Log in or Sign up","auth.needToMakeChange":"Need to make a change?","auth.or":"OR","auth.privacyPolicy":"Privacy Policy","auth.signInError":"Sorry, we have not been able to sign you in.","auth.signInErrorContact":"Please try again or contact","auth.signInErrorPersists":"if it persists.","auth.tenantNotFound":"Tenant not found","auth.termsOfService":"Terms of Service","errors.failedToLoadTenantConfig":"Failed to load tenant configuration","errors.somethingWentWrong":"Sorry, something went wrong...","errors.teamNotifiedLine1":"Our team has been notified and will be quickly working on resolving it.","errors.teamNotifiedLine2":"If you'd like to escalate or simply contact us, please email us at","filter.clearAll":"Clear All","filter.filter":"Filter","filter.filterBy":"Filter by {{view}}","filter.filterPlaceholder":"Filter...","filter.from":"From:","filter.noAvailableFilters":"No available filters","filter.noMatchingFilters":"No matching filters","filter.noResultsFound":"No results found.","filter.selectRange":"Select range","filter.to":"To:","form.filter":"Filter...","layout.pageNotFound":"Page Not Found","layout.search":"Search","layout.searchPlaceholder":"Search...","login.accept":"Accept","login.reject":"Reject","login.reviewInvites":"Review Invites","login.terminal.account":"Account","login.terminal.accountRequired":"Account is required","login.terminal.accountRequiredDesc":"Please select an account to authorize the client to access the ComposablePrompts servers","login.terminal.authorizeClient":"Authorize Client","login.terminal.authPayloadCopied":"Authentication Payload copied","login.terminal.authPayloadCopiedSuccess":"You can close this page. The CLI should have received the token.","login.terminal.authPayloadCopiedWithError":"You can paste the payload in the terminal. Note: The CLI did not receive the token. An error occured: {{error}}","login.terminal.browserPermissionNote":"Note: If your browser asks for permission to access your local network, please allow it. This is required to send the authorization token back to the CLI tool. If not, you will need to copy/paste the token manually in your terminal.","login.terminal.chooseAccountProject":"You must choose the target account and project for the client to access.","login.terminal.clientAuthenticated":"The client is authenticated. You can close this page.","login.terminal.clientWantsAuth":"A client app wants authorization to access the composable prompt servers in your name.","login.terminal.copyAuthPayload":"Copy the Authentication Payload","login.terminal.envLocalDev":"Local Dev","login.terminal.envProduction":"Production","login.terminal.envStaging":"Staging","login.terminal.errorAuthorizingClient":"Error authorizing client","login.terminal.errorLoadingProjects":"Error loading projects","login.terminal.failedToGetToken":"Failed to get composable token","login.terminal.failedToSendToken":"Failed to send the authorization token to the cli tool","login.terminal.failedToSendTokenDesc":'This can happen due to security checks on Safari. The error is "{{error}}"',"login.terminal.invalidRequest":"Invalid request","login.terminal.invalidRequestDesc":"This page should be called by a terminal client to authenticate against the ComposablePrompts servers","login.terminal.profileName":"Profile Name","login.terminal.profileNameNote":"Also, enter a profile name that will be used to save the authorization in your client configuration.","login.terminal.profileRequired":"Profile is required","login.terminal.profileRequiredDesc":"Please enter a profile name to save the client authorization","login.terminal.project":"Project","login.terminal.projectRequired":"Project is required","login.terminal.projectRequiredDesc":"Please select a project to authorize the client to access the ComposablePrompts servers","login.terminal.selectAccount":"Select Account","login.terminal.selectProject":"Select Project","mcpOAuth.authenticate":"Authenticate","mcpOAuth.authenticating":"Authenticating...","mcpOAuth.connect":"Connect","mcpOAuth.connected":"Connected","mcpOAuth.connecting":"Connecting...","mcpOAuth.disconnect":"Disconnect","mcpOAuth.notConnected":"Not connected","misc.copiedToClipboard":"Copied to clipboard","misc.copy":"Copy","misc.failedToCopy":"Failed to copy","misc.noData":"No Data to display","misc.tableView":"Table View","misc.thumbnailView":"Thumbnail View","modal.cancel":"Cancel","modal.confirm":"Confirm","modal.delete.error":"An error occurred while deleting the object","modal.delete.failed":"Failed to delete","modal.delete.succeeded":"Delete succeeded","modal.save":"Save","modal.saveChanges":"Save Changes","modal.saveVersion.createDescription":"Create a new revision with these property changes while preserving the original.","modal.saveVersion.createNew":"Create new version","modal.saveVersion.createWithFileDescription":"Create a new revision with the replacement file while preserving the original.","modal.saveVersion.howToSave":"How would you like to save these changes?","modal.saveVersion.replaceFile":"You're about to replace the content file with:","modal.saveVersion.updateCurrent":"Update current version","modal.saveVersion.updateDescription":"Modify the properties directly in the current revision.","modal.saveVersion.updateWithFileDescription":"Replace the content file and modify properties directly in the current revision.","modal.saveVersion.versionLabel":"Version Label (Optional)","modal.saveVersion.versionLabelDescription":"Optional label for the new version.","modal.saveVersion.versionLabelPlaceholder":"e.g., v1.2, approved, post-review","oauthProvider.authenticate":"Authenticate","oauthProvider.authenticating":"Authenticating...","oauthProvider.connected":"Connected","oauthProvider.disconnect":"Disconnect","pdf.close":"Close","pdf.closeFullscreen":"Close fullscreen","pdf.download":"Download","pdf.failedToLoadViewer":"Failed to load PDF viewer","pdf.fetchingDocumentFailed":"Fetching document failed","pdf.fitToWidth":"Fit to width","pdf.fullscreen":"Fullscreen","pdf.instrumentedImages":"Instrumented images","pdf.nextPage":"Next page","pdf.noPdfAvailable":"No PDF available","pdf.originalImages":"Original images","pdf.page":"Page","pdf.pageOf":"Page {{pageNumber}} / {{totalPages}}","pdf.previousPage":"Previous page","pdf.zoomIn":"Zoom in","pdf.zoomOut":"Zoom out","shell.accessDenied":"Access Denied","shell.applicationNotRegistered":"Application not registered","shell.organization":"Organization","shell.selectOrganization":"Select Organization","shell.selectProject":"Select Project","signup.accountType":"Account Type","signup.activelyExploring":"Actively Exploring LLMs on a Project","signup.alreadyUsing":"Already Using LLMs in Production","signup.company":"Company","signup.companyDescription":"For a company or organization.","signup.companyName":"Company Name","signup.companySize":"Company Size","signup.companyWebsite":"Company Website","signup.justTesting":"Just Testing or Evaluating LLMs","signup.migratingLLMs":"Migrating to different LLMs","signup.other":"Other","signup.personal":"Personal","signup.personalDescription":"For personal use, or for a small team.","signup.pleaseEnterOrgName":"Please enter an organization name","signup.pleaseSelectAccountType":"Please select an account type","signup.pleaseSelectCompanySize":"Please select a company size","signup.projectMaturity":"Project Maturity","signup.selectCompanySize":"Select Company Size","signup.selectProjectMaturity":"Select Project Maturity","signup.signUp":"Sign Up","signup.size1001to5000":"1001-5000 employees","signup.size101to1000":"101-1000 employees","signup.size11to100":"11-100 employees","signup.size1to10":"1-10 employees","signup.size5000plus":"5000+ employees","signup.welcomeMessage":"Welcome to Vertesia, {{name}} ({{email}}).\nPlease tell us a little bit about yourself and you'll be on your way.\nNo credit card is required.","signup.wrongAccountGoBack":"Wrong account, go back","store.actions.addToCollection":"Add to Collection","store.actions.addToCollectionBody":"Add the selected objects to an existing collection or create a new one.","store.actions.addToCollectionButton":"Add to Collection","store.actions.addToCollectionDesc":"Add documents to a collection","store.actions.addToCollectionFailure":"Add to collection failure","store.actions.addToCollectionFailureDesc":"Failed to add the selected objects to the collection","store.actions.addToCollectionSuccess":"Add to collection success","store.actions.addToCollectionSuccessDesc_one":"{{count}} object added to collection","store.actions.addToCollectionSuccessDesc_other":"{{count}} objects added to collection","store.actions.addToCollectionTitle":"Add to a Collection","store.actions.areYouSure":"Are you sure?","store.actions.cannotRemoveNoCollection":"Cannot remove objects: no collection specified","store.actions.changeContentType":"Change Content Type","store.actions.changeContentTypeDesc":"Change the Content Type of the selected documents","store.actions.changeType":"Change Type","store.actions.chooseExistingCollections":"Choose from existing collections","store.actions.chooseWorkflowRule":"Choose a workflow rule to start:","store.actions.confirmDeleteAll":"Are you sure you want to delete all the selected objects? This action cannot be undone.","store.actions.confirmDeleteSelected":"Are you sure you want to delete the selected objects?\nThis is not removable from collections.","store.actions.createNew":"Create new","store.actions.delete":"Delete","store.actions.deleteObjects":"Delete Objects","store.actions.deleteTheSelectedObjects":"Delete the selected objects","store.actions.errorChangingType":"Error changing type","store.actions.errorDeletingObjects":"Error deleting objects","store.actions.errorExportProperties":"Error Export Properties","store.actions.errorRemovingObjects":"Error removing objects from collection","store.actions.errorStartingWorkflow":"Error starting workflow","store.actions.exportAllObjectProperties":"Export all Object Properties","store.actions.exportProperties":"Export Properties","store.actions.noCollectionContext":"No collection context","store.actions.noObjectsSelected":"No objects selected","store.actions.pleaseSelectObjectsToDelete":"Please select objects to delete","store.actions.pleaseSelectObjectsToRemove":"Please select objects to remove from collection","store.actions.selectCollection":"Select Collection","store.actions.startWorkflow":"Start Workflow","store.actions.startWorkflowByRule":"Start a Workflow by Rule","store.actions.startWorkflowDesc":"Start a workflow on the selected objects","store.actions.workflowStarted":"Workflow started","store.allowedContentTypes":"Allowed Content Types","store.allowedContentTypesOptionalDescription":"Optionally select which content types can be added to the collection. If not set, then all content types are allowed.","store.allowedContentTypesSelectDescription":"Select which content types can be added to the collection. If not set, then all content types are allowed.","store.areYouSureDeleteCollection":"Are you sure you want to delete this collection? This action cannot be undone.","store.audioFormatRequired":"MP3, M4A, OGG, WAV, or WebM format required","store.automaticTypeDetection":"Automatic Type Detection","store.automaticTypeDetectionDescription":"Vertesia will analyze the content and select the most appropriate type. This is recommended for most uploads and ensures optimal processing.","store.cancelEdit":"Cancel","store.chooseAFormat":"Choose a format","store.chooseContentType":"Choose a Content Type...","store.chooseContentTypes":"Choose Content Types...","store.chooseWhatToExport":"Choose what to export","store.clearSelection":"Clear search text","store.close":"Close","store.collectionCreated":"Collection created","store.collectionDeleted":"Collection deleted","store.collectionFetchFailed":"Collection fetch failed","store.collectionPropertiesUpdated":"Collection properties updated","store.collectionsSelected_one":"{{count}} collection selected","store.collectionsSelected_other":"{{count}} collections selected","store.collectionUpdated":"Collection updated","store.collectionUpdatedSuccess":"Collection has been updated successfully","store.configuration":"Configuration","store.confirmSelection":"Confirm selection","store.contentCopied":"{{type}} copied","store.contentExported":"Content exported","store.contentType":"Content Type","store.convertingToPdf":"Converting to PDF...","store.copyFailed":"Copy failed","store.createACollection":"Create a Collection","store.createCollection":"Create Collection","store.created":"Created","store.createdBy":"Created By","store.createType":"Create Type","store.deleteCollection":"Delete Collection","store.documentExported":"Document exported","store.documentInformation":"Document Information","store.documentListRefreshed":"Document list refreshed","store.documentListRefreshedDesc":"The document list has been updated with your uploaded files.","store.documentPreview":"Document Preview","store.downloadFailed":"Download failed","store.dynamicCollection":"Dynamic Collection","store.dynamicCollectionDescription":"Dynamically fetch content for the collection based on a query. If not enabled, then content must be added by users or agents.","store.editingGenericDocument":"Editing properties for generic document","store.editJson":"Edit Json","store.editProperties":"Edit Properties","store.editSchema":"Edit Schema","store.editText":"Edit text","store.embeddings":"Embeddings","store.enableSyncMemberHeads":"Enable synchronizing member heads","store.error":"Error","store.errorCheckingDuplicates":"There was an error checking for duplicate files","store.errorCreatingType":"Error creating type","store.errorInUploadProcessingCheck":"Error in file upload processing check","store.errorProcessingFiles":"Error processing files","store.errorSavingText":"Failed to save text","store.errorSavingTextDefault":"An error occurred while saving text content.","store.errorUpdatingProperties":"Error updating properties","store.errorUpdatingPropertiesDefault":"An error occurred while updating the properties.","store.exportFailed":"Export failed","store.exportInProgress":"EXPORT IS IN PROGRESS","store.failedToConvertToPdf":"Failed to convert to PDF","store.failedToCopy":"Failed to copy {{type}} to clipboard","store.failedToCreateCollection":"Failed to create collection","store.failedToDeleteCollection":"Failed to delete collection","store.failedToDownloadFile":"Failed to download file","store.failedToDownloadPdf":"Failed to download the PDF file","store.failedToExportContent":"Failed to export content","store.failedToExportDocument":"Failed to export document","store.failedToFetchRoleMappings":"Failed to fetch role mappings","store.failedToFetchTypes":"Failed to fetch ObjectTypes","store.failedToFetchWorkflows":"Failed to fetch workflows","store.failedToGetDownloadUrl":"Failed to get download URL","store.failedToLoadDocument":"Failed to load document","store.failedToLoadType":"Failed to load type","store.failedToUpdateCollection":"Failed to update collection","store.failedToUpdateCollectionProperties":"Failed to update collection properties","store.failedToUpdateSchema":"Failed to update schema","store.failedToUpdateSharedProperties":"Failed to update shared properties","store.failedToUpdateSkipHeadSync":"Failed to update skip head sync","store.failedToUpdateTableLayout":"Failed to update table layout","store.filesAnalyzedTitle":"Files analyzed","store.filesReadyToProcess":"Files ready to process","store.filterByName":"Filter by Name","store.fullText":"Full Text","store.fullView":"Full View","store.getStartedCollections":"Get started by creating a new Collections.","store.getStartedTypes":"Get started by creating a new Type.","store.id":"ID","store.invalidJson":"Invalid JSON","store.invalidJsonSchema":"Invalid JSON Schema","store.invalidQueryJson":"Invalid Query JSON","store.invalidTableLayout":"Invalid Table Layout","store.isChunkable":"Is Chunkable","store.limit":"Limit","store.loadingDocument":"Loading document...","store.loadingProcessingStatus":"Loading processing status...","store.na":"N/A","store.name":"Name","store.newCollections":"New Collections","store.newVersionCreated":"New version created","store.newVersionCreatedDesc":"A new version with updated properties has been created.","store.noAudioRendition":"No web-compatible audio rendition available","store.noCollections":"No Collections","store.noCollectionsAvailable":"No collections available.","store.noCollectionsFound":"No collections found.","store.noFilesSelected":"No files selected","store.none":"None","store.noObjectsDragAndDrop":"No objects. Just drag and drop documents or images here to create content objects.","store.noPreviewAvailable":"No preview available for this document type.","store.noProjectSelected":"No project selected","store.noPropertiesAvailable":"No properties available for this document.","store.noPropertiesDefined":"No properties defined","store.noTranscriptAvailable":"No transcript available","store.noType":"No Type","store.noValidFilesSelected":"No valid files selected","store.noVideoRendition":"No web-compatible video rendition available","store.openFullDocument":"Open Full Document","store.openFullDocumentView":"Open Full Document View","store.optional":"(Optional)","store.pdfConversionFailed":"PDF conversion failed","store.pdfPreviewFullView":"PDF document preview is available in full view.","store.pleaseFixJsonSyntax":"Please fix the JSON syntax errors before saving.","store.pleaseProvideName":"Please provide a name for the collection","store.pleaseSelectValidFiles":"Please select files with valid content.","store.pleaseWait":"PLEASE WAIT","store.preview":"Preview","store.previewProperties":"Preview properties","store.processingFailedFor":"Processing failed for {{name}}","store.processingFiles":"Processing files","store.properties":"Properties","store.propertiesUpdated":"Properties updated","store.propertiesUpdatedDesc":"The object properties have been updated successfully.","store.query":"Query","store.queryDescription":"Define the query to dynamically fetch content for the collection.","store.refresh":"Refresh","store.renderingDocument":"Rendering your document...","store.saveChanges":"Save Changes","store.saveText":"Save","store.schemaEditor":"Schema Editor","store.schemaUpdated":"Schema updated","store.schemaUpdatedSuccess":"The schema has been updated successfully","store.search":"Search","store.searchCollections":"Search collections","store.searchFailed":"Search failed","store.searching":"Searching...","store.searchPlaceholder":"Type what you are looking for, or select a filter","store.searchTypes":"Search Types","store.selectACollection":"Select a collection","store.selectContentType":"Select Content Type","store.selectContentTypeAuto":"Select a content type or leave empty for automatic detection","store.selectContentTypeLabel":"Select a content type","store.selectPropertiesToShare":"Select properties to share","store.semanticChunking":"Semantic Chunking","store.semanticSearch":"Semantic search","store.semanticSearchSettings":"Semantic search settings","store.sharedProperties":"Shared Properties","store.sharedPropertiesDescription":"Add properties to share across all members in the collection. This feature requires to enable shared property synchronization on the project.","store.showingFirst128K":"Showing first 128K characters only","store.size":"Size","store.staticCollection":"Static Collection","store.strictMode":"Strict Mode","store.successfullyCopied":"Successfully copied {{type}} to clipboard","store.successfullyExportedTo":"Successfully exported to {{format}}","store.syncMemberHeads":"Synchronize Member Heads","store.syncMemberHeadsDescription":"When a new HEAD version of a member is created the collection will be updated to point to the new HEAD.","store.tableLayout":"Table Layout","store.tableLayoutDescription":"Define a custom layout for displaying the collection in tables.","store.tableLayoutUpdated":"Table Layout updated","store.tableLayoutUpdatedDesc":"The table layout has been updated successfully","store.textConflict":"The document was modified elsewhere. Please refresh and try again.","store.textSaved":"Text content saved","store.typeCreated":"Type created","store.typeDescription":"Optionally select a content type to assign custom properties and data to the collection.","store.typeSelectDescription":"Select a content type to assign custom properties and data to the collection.","store.unknown":"Unknown","store.unsavedChanges":"Unsaved changes","store.updated":"Updated","store.updatedAt":"Updated At","store.updatedBy":"Updated By","store.updatedSharedProperties":"Updated shared properties","store.updatedSkipHeadSync":"Updated skip head sync setting","store.upload":"Upload","store.uploadComplete":"Upload Complete","store.uploadIssues":"Upload Issues","store.validationFailed":"Validation failed","store.videoFormatRequired":"MP4 or WebM format required","store.viewAsPdf":"View as PDF","store.viewAudio":"View Audio","store.viewImage":"View Image","store.viewingNewVersion":"Viewing New Version","store.viewingNewVersionDefault":"Now viewing the new version","store.viewingVersionLabel":"Now viewing version '{{label}}'","store.viewInJsonFormat":"View in JSON format","store.viewPdf":"View PDF","store.viewText":"View Text","store.viewTranscript":"View Transcript","store.viewVideo":"View Video","theme.dark":"Dark","theme.label":"Theme","theme.light":"Light","theme.system":"System","type.description":"Description","type.name":"Name","type.nameRequired":"Name is required","type.type":"Type","upload.allFilesExist_one":"{{count}} file already exists","upload.allFilesExist_other":"{{count}} files already exist","upload.analyzingFiles":"Analyzing files...","upload.checkingForDuplicates":"Checking for duplicates and updates","upload.collectionLabel":"Collection:","upload.contentTypeTooltip":"Select a content type to apply to the uploaded files. If left empty, Vertesia will automatically detect the type based on file content.","upload.continue":"Continue","upload.dragAndDrop":"Drag and drop files here or click to select","upload.errorAnalyzingFiles":"There was an error analyzing the files","upload.failedToUpload":"Failed to Upload","upload.fileAnalysisResults":"File Analysis Results","upload.filesAnalyzed":"Files analyzed","upload.filesProcessed_one":"{{count}} file processed","upload.filesProcessed_other":"{{count}} files processed","upload.filesReadyToProcess_one":"{{count}} file is ready to process","upload.filesReadyToProcess_other":"{{count}} files are ready to process","upload.filesToSkip_one":"{{count}} file is already in the system and will be skipped.","upload.filesToSkip_other":"{{count}} files are already in the system and will be skipped.","upload.folderLabel":"Folder:","upload.inCollection":" in collection '{{collection}}'","upload.inFolder":" in folder '{{location}}'","upload.new":"New","upload.noFilesToProcess":"No files to process.","upload.noItems":"No items to display","upload.preparingFiles_one":"Preparing to upload {{count}} file...","upload.preparingFiles_other":"Preparing to upload {{count}} files...","upload.preparingFolder_one":"Preparing to upload 1 folder with {{fileCount}} files...","upload.preparingFolder_other":"Preparing to upload {{folderCount}} folders with {{fileCount}} files...","upload.processedCount":"Processed {{processed}}/{{total}} files...","upload.processingFilesAction":"Processing files ({{action}})","upload.selectFiles":"Select Files","upload.selectFolder":"Select Folder","upload.skip":"Skip","upload.skippedAlreadyExisted":"Skipped (Already Existed)","upload.successfullyUpdated":"Successfully Updated","upload.successfullyUploaded":"Successfully Uploaded","upload.update":"Update","upload.uploadComplete":"Upload Complete","upload.uploadFiles":"Upload Files","upload.uploadingFiles":"Uploading Files","upload.uploadLocation":"Upload Location:","upload.uploadMore":"Upload More","upload.uploadProcessInterrupted":"Upload process interrupted","upload.useAutoDetection":"Use Automatic Type Detection","upload.useTypeName":"Use {{typeName}}","user.account":"Account:","user.agentOnBehalfOf":"Agent on behalf of","user.agentOnBehalfOfApiKey":"Agent on behalf of API key","user.allProjectMembers":"All Project Members","user.allProjectMembersDescription":"Every member of this project has this permission.","user.appVersion":"App Version","user.environment":"Environment","user.failedToFetchApiKey":"Failed to fetch the apikey","user.failedToFetchGroup":"Failed to fetch group","user.failedToFetchUser":"Failed to fetch user","user.groupId":"Group ID: {{id}}","user.key":"Key:","user.organizationId":"Organization ID","user.organizationRoles":"Organization Roles","user.privateKey":"Private Key","user.project":"Project:","user.projectId":"Project ID","user.projectRoles":"Project Roles","user.schedule":"Schedule {{title}}","user.sdkVersion":"SDK Version","user.server":"Server","user.serviceAccount":"Service Account","user.serviceAccountDescription":"This user is used by robots like workflow workers.","user.store":"Store","user.systemUser":"System User","user.systemUserDescription":"The system user is used to initialize built-in objects.","user.tenantId":"Tenant ID","user.unknown":"unknown","user.unknownUser":"Unknown User","user.unknownUserDescription":"User information is not available.","user.unnamedGroup":"Unnamed Group","user.user":"User","user.userId":"User ID","widgets.schema.editDescription":"Edit description","widgets.schema.invalidPropertyDeclaration":"Invalid property declaration"}},es:{[Un]:{"agent.activeWorkstreams_one":"El agente tiene {{count}} flujo de trabajo activo en ejecución","agent.activeWorkstreams_many":"El agente tiene {{count}} flujos de trabajo activos en ejecución","agent.activeWorkstreams_other":"El agente tiene {{count}} flujos de trabajo activos en ejecución","agent.agentConversation":"Conversación con el agente","agent.agentInterrupted":"Agente interrumpido","agent.agentPlan":"Plan del agente","agent.agentProcessing":"El agente está procesando, podrás continuar una vez que termine...","agent.agentRunIdCopied":"ID de ejecución del agente copiado","agent.agentStarted":"Agente iniciado","agent.agentWorking":"El agente está trabajando... (Esc Esc para detener)","agent.agentWorkingStop":"El agente está trabajando... Presiona Esc dos veces o haz clic en Detener para interrumpir","agent.allMessages":"Todos los mensajes","agent.artifacts":"Artefactos","agent.askAnything":"Pregunta lo que quieras... (arrastra o pega archivos)","agent.batch":"Lote","agent.canceled":"","agent.cancelWorkflow":"Cancelar flujo de trabajo","agent.clickToEnlarge":"Clic para ampliar","agent.cloneConversation":"Clonar conversación","agent.close":"Cerrar","agent.closeFullscreen":"Cerrar pantalla completa","agent.completed":"Completado","agent.continueConversation":"Continuar conversación","agent.conversationCloned":"Conversación clonada","agent.conversationContinued":"Conversación continuada","agent.copied":"Copiado","agent.copiedAllToolCalls":"Todas las llamadas de herramientas copiadas al portapapeles","agent.copiedBatchDetails":"Detalles del lote copiados al portapapeles","agent.copiedToClipboard":"Copiado al portapapeles","agent.copy":"Copiar","agent.copyAgentRunId":"Copiar ID de ejecución del agente","agent.copyAllToolCalls":"Copiar todas las llamadas de herramientas","agent.copyBatchDetails":"Copiar detalles del lote","agent.copyMessage":"Copiar mensaje","agent.copyRunId":"Copiar ID de ejecución","agent.copyToClipboard":"Copiar al portapapeles","agent.copyWorkflowRunId":"Copiar ID de ejecución del flujo de trabajo","agent.dashboard":"Panel de control","agent.details":"Detalles","agent.document":"Documento","agent.documentAttachments":"Archivos adjuntos","agent.documentAttachmentsDescription":"Documentos de la tienda adjuntos a este mensaje. El agente puede recuperarlos por ID en cualquier momento, o volver a adjuntarlos para incluir el contenido directamente.","agent.documents":"Documentos","agent.download":"Descargar","agent.downloadConversation":"Descargar conversación","agent.dropFilesToUpload":"Suelta archivos para subir","agent.elapsed":"{{seconds}}s transcurridos","agent.enlargedView":"Vista ampliada","agent.enterMessage":"Escribe un mensaje para iniciar una conversación","agent.enterToSend":"Enter para enviar • Shift+Enter para nueva línea","agent.error":"Error","agent.errorStarting":"Error al iniciar el flujo de trabajo","agent.exit":"Salir","agent.exitFullscreen":"Salir de pantalla completa","agent.export":"Exportar","agent.exportAsPdf":"Exportar como PDF","agent.exportAsPng":"Exportar como PNG","agent.exportAsWord":"Exportar como Word","agent.exporting":"Exportando...","agent.exportMessage":"Exportar mensaje","agent.failedToCancelWorkflow":"Error al cancelar el flujo de trabajo","agent.failedToCloneConversation":"Error al clonar la conversación","agent.failedToContinueConversation":"Error al continuar la conversación","agent.failedToDownload":"Error al descargar la conversación","agent.failedToInterrupt":"Error al interrumpir","agent.failedToLoadDocument":"Error al cargar el documento","agent.failedToSend":"Error al enviar el mensaje","agent.filesProcessing":"Archivos aún en procesamiento","agent.filesStagedCount_one":"{{count}} archivo preparado - se subirá cuando la conversación comience","agent.filesStagedCount_many":"{{count}} archivos preparados - se subirán cuando la conversación comience","agent.filesStagedCount_other":"{{count}} archivos preparados - se subirán cuando la conversación comience","agent.filesUploadedDescription":"Los archivos subidos a esta conversación permanecen disponibles en todo momento. El agente puede acceder a ellos en cualquier momento.","agent.fullscreen":"Pantalla completa","agent.hideDetails":"Ocultar detalles","agent.hideSidebar":"Ocultar panel","agent.hideThinkingDetails":"Ocultar detalles de pensamiento","agent.inProgress":"En progreso","agent.linkObject":"Vincular objeto","agent.loadingArtifacts":"Cargando artefactos...","agent.loadingDocument":"Cargando documento...","agent.main":"Principal","agent.mainWorkstream":"Flujo principal","agent.moreActions":"Más acciones","agent.newerPlan":"Plan más reciente","agent.no":"No","agent.noActiveWorkstreams":"Sin flujos activos","agent.noAgentRunning":"Ningún agente en ejecución actualmente","agent.noArtifactsYet":"Sin artefactos aún","agent.noContentAvailable":"No hay contenido disponible","agent.noContentToExport":"Sin contenido para exportar","agent.noConversationContent":"No hay contenido de conversación disponible para exportar","agent.noDocumentsOpen":"Sin documentos abiertos","agent.noFilesUploadedYet":"Sin archivos subidos","agent.noMessagesInWorkstream":"No hay mensajes en este flujo de trabajo aún...","agent.noPlanAvailable":"Sin plan disponible","agent.noPlanDetected":"Aún no se ha detectado ningún plan","agent.olderPlan":"Plan anterior","agent.openDocument":"Abrir documento","agent.openInNewTab":"Abrir en nueva pestaña","agent.payload":"Payload","agent.pdfExportFailed":"Error en la exportación PDF","agent.pdfExportReady":"Exportación PDF lista","agent.pending":"Pendiente","agent.plan":"Plan","agent.planProgress":"Progreso del plan","agent.plansWillAppear":"Los planes aparecerán aquí cuando el agente cree uno","agent.printDialogDescription":"Use el diálogo de impresión de su navegador para guardar como PDF","agent.processing":"Procesando...","agent.ready":"Listo","agent.refresh":"Actualizar","agent.remaining":"{{seconds}}s restantes","agent.retry":"Reintentar","agent.runIdCopied":"ID de ejecución copiado","agent.searchDocuments":"Buscar documentos","agent.selectInteraction":"Selecciona una interacción y haz clic en Iniciar para iniciar un agente","agent.send":"Enviar","agent.showAllMessages":"Mostrar todos los mensajes","agent.showDetails":"Mostrar detalles","agent.showSidebar":"Mostrar panel","agent.staged":"Preparado","agent.startAgent":"Iniciar agente","agent.startingAgent":"Iniciando agente...","agent.startingAgentUploading":"Iniciando agente y subiendo archivos...","agent.startNewConversation":"Iniciar nueva conversación","agent.stepByStepPlan":"Plan paso a paso","agent.stop":"Detener","agent.stopAgent":"Detener el agente","agent.submitSelection":"Enviar selección","agent.submitSelectionCount_one":"Enviar selección ({{count}})","agent.submitSelectionCount_many":"Enviar selección ({{count}})","agent.submitSelectionCount_other":"Enviar selección ({{count}})","agent.summary":"Resumen","agent.taskProgress":"Progreso de tareas","agent.toggleRightSidebar":"Alternar panel lateral","agent.typeNewInstructions":"Escribe tu mensaje para dar nuevas instrucciones","agent.typeQuestionBelow":"Escribe tu pregunta abajo y presiona Enter o haz clic en {{buttonText}} para comenzar","agent.typeYourMessage":"Escribe tu mensaje...","agent.typeYourResponse":"Escribe tu respuesta...","agent.unableToOpenPrint":"No se pudo abrir la vista previa de impresión","agent.unknownError":"Error desconocido","agent.unknownTime":"Hora desconocida","agent.upload":"Subir","agent.uploadedFiles":"Archivos subidos","agent.uploadFailed":"Error al subir","agent.uploading":"Subiendo...","agent.uploads":"Subidas","agent.waitForFiles":"Espera a que los archivos terminen de procesarse","agent.waitForFilesProcessing":"Por favor, espera a que todos los archivos terminen de procesarse antes de enviar","agent.waiting":"Esperando...","agent.waitingForAgentResponse":"Esperando respuesta del agente...","agent.workflowCancelled":"Flujo de trabajo cancelado","agent.workflowRunIdCopied":"ID de ejecución del flujo de trabajo copiado","agent.working":"Trabajando...","agent.workstreams":"Flujos de trabajo","agent.yes":"Sí","auth.continueWithEnterprise":"Continuar con SSO empresarial","auth.continueWithGithub":"Continuar con GitHub","auth.continueWithGoogle":"Continuar con Google","auth.continueWithMicrosoft":"Continuar con Microsoft","auth.enterEnterpriseEmail":"Ingresa tu correo empresarial","auth.error":"Error: {{message}}","auth.firstTimeDetails":"Solo te haremos un par de preguntas y estarás listo.","auth.firstTimeMessage":"¿Primera vez aquí? ¡No hay problema, es gratis para probar!","auth.goBack":"Volver","auth.invalidEmail":"Dirección de correo inválida","auth.logInOrSignUp":"Iniciar sesión o registrarse","auth.needToMakeChange":"¿Necesitas hacer un cambio?","auth.or":"O","auth.privacyPolicy":"Política de privacidad","auth.signInError":"Lo sentimos, no hemos podido iniciar tu sesión.","auth.signInErrorContact":"Por favor, intenta de nuevo o contacta a","auth.signInErrorPersists":"si el problema persiste.","auth.tenantNotFound":"Organización no encontrada","auth.termsOfService":"Términos de servicio","errors.failedToLoadTenantConfig":"Error al cargar la configuración del tenant","errors.somethingWentWrong":"Lo sentimos, algo salió mal...","errors.teamNotifiedLine1":"Nuestro equipo ha sido notificado y trabajará rápidamente en resolverlo.","errors.teamNotifiedLine2":"Si deseas escalar o simplemente contactarnos, envíanos un correo a","filter.clearAll":"Limpiar todo","filter.filter":"Filtrar","filter.filterBy":"Filtrar por {{view}}","filter.filterPlaceholder":"Filtrar...","filter.from":"Desde:","filter.noAvailableFilters":"No hay filtros disponibles","filter.noMatchingFilters":"No hay filtros coincidentes","filter.noResultsFound":"No se encontraron resultados.","filter.selectRange":"Seleccionar rango","filter.to":"Hasta:","form.filter":"Filtrar...","layout.pageNotFound":"Página no encontrada","layout.search":"Buscar","layout.searchPlaceholder":"Buscar...","login.accept":"Aceptar","login.reject":"Rechazar","login.reviewInvites":"Revisar invitaciones","login.terminal.account":"Cuenta","login.terminal.accountRequired":"La cuenta es obligatoria","login.terminal.accountRequiredDesc":"Por favor, selecciona una cuenta para autorizar al cliente a acceder a los servidores ComposablePrompts","login.terminal.authorizeClient":"Autorizar cliente","login.terminal.authPayloadCopied":"Payload de autenticación copiado","login.terminal.authPayloadCopiedSuccess":"Puedes cerrar esta página. El CLI debería haber recibido el token.","login.terminal.authPayloadCopiedWithError":"Puedes pegar el payload en el terminal. Nota: el CLI no recibió el token. Ocurrió un error: {{error}}","login.terminal.browserPermissionNote":"Nota: si tu navegador solicita permiso para acceder a tu red local, por favor permítelo. Esto es necesario para enviar el token de autorización de vuelta al CLI. Si no, tendrás que copiar/pegar el token manualmente en tu terminal.","login.terminal.chooseAccountProject":"Debes elegir la cuenta y el proyecto de destino para el acceso del cliente.","login.terminal.clientAuthenticated":"El cliente está autenticado. Puedes cerrar esta página.","login.terminal.clientWantsAuth":"Una aplicación cliente desea autorización para acceder a los servidores ComposablePrompts en tu nombre.","login.terminal.copyAuthPayload":"Copiar el payload de autenticación","login.terminal.envLocalDev":"Dev local","login.terminal.envProduction":"Producción","login.terminal.envStaging":"Staging","login.terminal.errorAuthorizingClient":"Error al autorizar al cliente","login.terminal.errorLoadingProjects":"Error al cargar los proyectos","login.terminal.failedToGetToken":"Error al obtener el token composable","login.terminal.failedToSendToken":"Error al enviar el token de autorización al CLI","login.terminal.failedToSendTokenDesc":'Esto puede ocurrir debido a verificaciones de seguridad en Safari. El error es "{{error}}"',"login.terminal.invalidRequest":"Solicitud inválida","login.terminal.invalidRequestDesc":"Esta página debe ser llamada por un cliente de terminal para autenticarse contra los servidores ComposablePrompts","login.terminal.profileName":"Nombre del perfil","login.terminal.profileNameNote":"Además, ingresa un nombre de perfil que se usará para guardar la autorización en la configuración de tu cliente.","login.terminal.profileRequired":"El perfil es obligatorio","login.terminal.profileRequiredDesc":"Por favor, ingresa un nombre de perfil para guardar la autorización del cliente","login.terminal.project":"Proyecto","login.terminal.projectRequired":"El proyecto es obligatorio","login.terminal.projectRequiredDesc":"Por favor, selecciona un proyecto para autorizar al cliente a acceder a los servidores ComposablePrompts","login.terminal.selectAccount":"Seleccionar cuenta","login.terminal.selectProject":"Seleccionar proyecto","mcpOAuth.authenticate":"Autenticar","mcpOAuth.authenticating":"Autenticando...","mcpOAuth.connect":"Conectar","mcpOAuth.connected":"Conectado","mcpOAuth.connecting":"Conectando...","mcpOAuth.disconnect":"Desconectar","mcpOAuth.notConnected":"No conectado","misc.copiedToClipboard":"Copiado al portapapeles","misc.copy":"Copiar","misc.failedToCopy":"Error al copiar","misc.noData":"No hay datos para mostrar","misc.tableView":"Vista de tabla","misc.thumbnailView":"Vista de miniaturas","modal.cancel":"Cancelar","modal.confirm":"Confirmar","modal.delete.error":"Ocurrió un error al eliminar el objeto","modal.delete.failed":"Error al eliminar","modal.delete.succeeded":"Eliminación exitosa","modal.save":"Guardar","modal.saveChanges":"Guardar cambios","modal.saveVersion.createDescription":"Crear una nueva revisión con estos cambios de propiedades conservando el original.","modal.saveVersion.createNew":"Crear nueva versión","modal.saveVersion.createWithFileDescription":"Crear una nueva revisión con el archivo de reemplazo conservando el original.","modal.saveVersion.howToSave":"¿Cómo deseas guardar estos cambios?","modal.saveVersion.replaceFile":"Estás a punto de reemplazar el archivo de contenido con:","modal.saveVersion.updateCurrent":"Actualizar versión actual","modal.saveVersion.updateDescription":"Modificar las propiedades directamente en la revisión actual.","modal.saveVersion.updateWithFileDescription":"Reemplazar el archivo de contenido y modificar las propiedades directamente en la revisión actual.","modal.saveVersion.versionLabel":"Etiqueta de versión (Opcional)","modal.saveVersion.versionLabelDescription":"Etiqueta opcional para la nueva versión.","modal.saveVersion.versionLabelPlaceholder":"ej., v1.2, aprobado, post-revisión","oauthProvider.authenticate":"Autenticar","oauthProvider.authenticating":"Autenticando...","oauthProvider.connected":"Conectado","oauthProvider.disconnect":"Desconectar","pdf.close":"Cerrar","pdf.closeFullscreen":"Cerrar pantalla completa","pdf.download":"Descargar","pdf.failedToLoadViewer":"Error al cargar el visor PDF","pdf.fetchingDocumentFailed":"Error al obtener el documento","pdf.fitToWidth":"Ajustar al ancho","pdf.fullscreen":"Pantalla completa","pdf.instrumentedImages":"Imágenes instrumentadas","pdf.nextPage":"Página siguiente","pdf.noPdfAvailable":"No hay PDF disponible","pdf.originalImages":"Imágenes originales","pdf.page":"Página","pdf.pageOf":"Página {{pageNumber}} / {{totalPages}}","pdf.previousPage":"Página anterior","pdf.zoomIn":"Acercar","pdf.zoomOut":"Alejar","shell.accessDenied":"Acceso denegado","shell.applicationNotRegistered":"Aplicación no registrada","shell.organization":"Organización","shell.selectOrganization":"Seleccionar organización","shell.selectProject":"Seleccionar proyecto","signup.accountType":"Tipo de cuenta","signup.activelyExploring":"Explorando activamente LLM en un proyecto","signup.alreadyUsing":"Ya usando LLM en producción","signup.company":"Empresa","signup.companyDescription":"Para una empresa u organización.","signup.companyName":"Nombre de la empresa","signup.companySize":"Tamaño de la empresa","signup.companyWebsite":"Sitio web de la empresa","signup.justTesting":"Solo probando o evaluando LLM","signup.migratingLLMs":"Migrando a diferentes LLM","signup.other":"Otro","signup.personal":"Personal","signup.personalDescription":"Para uso personal o un equipo pequeño.","signup.pleaseEnterOrgName":"Por favor, ingresa un nombre de organización","signup.pleaseSelectAccountType":"Por favor, selecciona un tipo de cuenta","signup.pleaseSelectCompanySize":"Por favor, selecciona un tamaño de empresa","signup.projectMaturity":"Madurez del proyecto","signup.selectCompanySize":"Seleccionar tamaño de empresa","signup.selectProjectMaturity":"Seleccionar madurez del proyecto","signup.signUp":"Registrarse","signup.size1001to5000":"1001-5000 empleados","signup.size101to1000":"101-1000 empleados","signup.size11to100":"11-100 empleados","signup.size1to10":"1-10 empleados","signup.size5000plus":"5000+ empleados","signup.welcomeMessage":"Bienvenido a Vertesia, {{name}} ({{email}}).\nCuéntanos un poco sobre ti y estarás listo.\nNo se requiere tarjeta de crédito.","signup.wrongAccountGoBack":"Cuenta incorrecta, volver atrás","store.actions.addToCollection":"Agregar a colección","store.actions.addToCollectionBody":"Agregar los objetos seleccionados a una colección existente o crear una nueva.","store.actions.addToCollectionButton":"Agregar a colección","store.actions.addToCollectionDesc":"Agregar documentos a una colección","store.actions.addToCollectionFailure":"Error al agregar a la colección","store.actions.addToCollectionFailureDesc":"Error al agregar los objetos seleccionados a la colección","store.actions.addToCollectionSuccess":"Agregado a la colección exitosamente","store.actions.addToCollectionSuccessDesc_one":"{{count}} objeto añadido a la colección","store.actions.addToCollectionSuccessDesc_many":"{{count}} objetos añadidos a la colección","store.actions.addToCollectionSuccessDesc_other":"{{count}} objetos añadidos a la colección","store.actions.addToCollectionTitle":"Agregar a una colección","store.actions.areYouSure":"¿Estás seguro?","store.actions.cannotRemoveNoCollection":"No se pueden eliminar objetos: no se especificó ninguna colección","store.actions.changeContentType":"Cambiar tipo de contenido","store.actions.changeContentTypeDesc":"Cambiar el tipo de contenido de los documentos seleccionados","store.actions.changeType":"Cambiar tipo","store.actions.chooseExistingCollections":"Elegir de colecciones existentes","store.actions.chooseWorkflowRule":"Elige una regla de flujo de trabajo para iniciar:","store.actions.confirmDeleteAll":"¿Estás seguro de que quieres eliminar todos los objetos seleccionados? Esta acción no se puede deshacer.","store.actions.confirmDeleteSelected":"¿Estás seguro de que quieres eliminar los objetos seleccionados?\nEsto no los elimina de las colecciones.","store.actions.createNew":"Crear nuevo","store.actions.delete":"Eliminar","store.actions.deleteObjects":"Eliminar objetos","store.actions.deleteTheSelectedObjects":"Eliminar los objetos seleccionados","store.actions.errorChangingType":"Error al cambiar el tipo","store.actions.errorDeletingObjects":"Error al eliminar objetos","store.actions.errorExportProperties":"Error al exportar propiedades","store.actions.errorRemovingObjects":"Error al eliminar objetos de la colección","store.actions.errorStartingWorkflow":"Error al iniciar el flujo de trabajo","store.actions.exportAllObjectProperties":"Exportar todas las propiedades de los objetos","store.actions.exportProperties":"Exportar propiedades","store.actions.noCollectionContext":"Sin contexto de colección","store.actions.noObjectsSelected":"No hay objetos seleccionados","store.actions.pleaseSelectObjectsToDelete":"Por favor, selecciona objetos para eliminar","store.actions.pleaseSelectObjectsToRemove":"Por favor, selecciona objetos para eliminar de la colección","store.actions.selectCollection":"Seleccionar colección","store.actions.startWorkflow":"Iniciar flujo de trabajo","store.actions.startWorkflowByRule":"Iniciar un flujo de trabajo por regla","store.actions.startWorkflowDesc":"Iniciar un flujo de trabajo en los objetos seleccionados","store.actions.workflowStarted":"Flujo de trabajo iniciado","store.allowedContentTypes":"Tipos de contenido permitidos","store.allowedContentTypesOptionalDescription":"Opcionalmente selecciona qué tipos de contenido pueden agregarse a la colección. Si no se define, todos los tipos de contenido están permitidos.","store.allowedContentTypesSelectDescription":"Selecciona qué tipos de contenido pueden agregarse a la colección. Si no se define, todos los tipos de contenido están permitidos.","store.areYouSureDeleteCollection":"¿Estás seguro de que quieres eliminar esta colección? Esta acción no se puede deshacer.","store.audioFormatRequired":"Formato MP3, M4A, OGG, WAV o WebM requerido","store.automaticTypeDetection":"Detección automática de tipo","store.automaticTypeDetectionDescription":"Vertesia analizará el contenido y seleccionará el tipo más apropiado. Esto es recomendado para la mayoría de las subidas y asegura un procesamiento óptimo.","store.cancelEdit":"Cancelar","store.chooseAFormat":"Elegir un formato","store.chooseContentType":"Elegir un tipo de contenido...","store.chooseContentTypes":"Elegir tipos de contenido...","store.chooseWhatToExport":"Elegir qué exportar","store.clearSelection":"Limpiar selección","store.close":"Cerrar","store.collectionCreated":"Colección creada","store.collectionDeleted":"Colección eliminada","store.collectionFetchFailed":"Error al obtener la colección","store.collectionPropertiesUpdated":"Propiedades de la colección actualizadas","store.collectionsSelected_one":"{{count}} colección seleccionada","store.collectionsSelected_many":"{{count}} colecciones seleccionadas","store.collectionsSelected_other":"{{count}} colecciones seleccionadas","store.collectionUpdated":"Colección actualizada","store.collectionUpdatedSuccess":"La colección se ha actualizado correctamente","store.configuration":"Configuración","store.confirmSelection":"Confirmar selección","store.contentCopied":"{{type}} copiado","store.contentExported":"Contenido exportado","store.contentType":"Tipo de contenido","store.convertingToPdf":"Convirtiendo a PDF...","store.copyFailed":"Error al copiar","store.createACollection":"Crear una colección","store.createCollection":"Crear colección","store.created":"Creado","store.createdBy":"Creado por","store.createType":"Crear tipo","store.deleteCollection":"Eliminar colección","store.documentExported":"Documento exportado","store.documentInformation":"Información del documento","store.documentListRefreshed":"Lista de documentos actualizada","store.documentListRefreshedDesc":"La lista de documentos se ha actualizado con tus archivos subidos.","store.documentPreview":"Vista previa del documento","store.downloadFailed":"Error en la descarga","store.dynamicCollection":"Colección dinámica","store.dynamicCollectionDescription":"Obtener dinámicamente el contenido de la colección basándose en una consulta. Si no está habilitado, el contenido debe ser añadido por usuarios o agentes.","store.editingGenericDocument":"Editando propiedades de documento genérico","store.editJson":"Editar JSON","store.editProperties":"Editar propiedades","store.editSchema":"Editar esquema","store.editText":"Editar texto","store.embeddings":"Embeddings","store.enableSyncMemberHeads":"Habilitar sincronización de versiones de miembros","store.error":"Error","store.errorCheckingDuplicates":"Hubo un error al verificar archivos duplicados","store.errorCreatingType":"Error al crear el tipo","store.errorInUploadProcessingCheck":"Error en la verificación del procesamiento de archivos","store.errorProcessingFiles":"Error al procesar archivos","store.errorSavingText":"Error al guardar el texto","store.errorSavingTextDefault":"Se produjo un error al guardar el contenido de texto.","store.errorUpdatingProperties":"Error al actualizar las propiedades","store.errorUpdatingPropertiesDefault":"Ocurrió un error al actualizar las propiedades.","store.exportFailed":"Error en la exportación","store.exportInProgress":"EXPORTACIÓN EN PROGRESO","store.failedToConvertToPdf":"Error al convertir a PDF","store.failedToCopy":"Error al copiar {{type}} al portapapeles","store.failedToCreateCollection":"Error al crear la colección","store.failedToDeleteCollection":"Error al eliminar la colección","store.failedToDownloadFile":"Error al descargar el archivo","store.failedToDownloadPdf":"Error al descargar el archivo PDF","store.failedToExportContent":"Error al exportar el contenido","store.failedToExportDocument":"Error al exportar el documento","store.failedToFetchRoleMappings":"Error al obtener los mapeos de roles","store.failedToFetchTypes":"Error al obtener los tipos de objetos","store.failedToFetchWorkflows":"Error al obtener los flujos de trabajo","store.failedToGetDownloadUrl":"Error al obtener la URL de descarga","store.failedToLoadDocument":"Error al cargar el documento","store.failedToLoadType":"Error al cargar el tipo","store.failedToUpdateCollection":"Error al actualizar la colección","store.failedToUpdateCollectionProperties":"Error al actualizar las propiedades de la colección","store.failedToUpdateSchema":"Error al actualizar el esquema","store.failedToUpdateSharedProperties":"Error al actualizar las propiedades compartidas","store.failedToUpdateSkipHeadSync":"Error al actualizar la sincronización de versiones","store.failedToUpdateTableLayout":"Error al actualizar la disposición de tabla","store.filesAnalyzedTitle":"Archivos analizados","store.filesReadyToProcess":"Archivos listos para procesar","store.filterByName":"Filtrar por nombre","store.fullText":"Texto completo","store.fullView":"Vista completa","store.getStartedCollections":"Comienza creando una nueva colección.","store.getStartedTypes":"Comienza creando un nuevo tipo.","store.id":"ID","store.invalidJson":"JSON inválido","store.invalidJsonSchema":"Esquema JSON inválido","store.invalidQueryJson":"JSON de consulta inválido","store.invalidTableLayout":"Disposición de tabla inválida","store.isChunkable":"Es fragmentable","store.limit":"Límite","store.loadingDocument":"Cargando documento...","store.loadingProcessingStatus":"Cargando estado de procesamiento...","store.na":"N/A","store.name":"Nombre","store.newCollections":"Nuevas colecciones","store.newVersionCreated":"Nueva versión creada","store.newVersionCreatedDesc":"Se ha creado una nueva versión con las propiedades actualizadas.","store.noAudioRendition":"No hay representación de audio compatible con web disponible","store.noCollections":"Sin colecciones","store.noCollectionsAvailable":"No hay colecciones disponibles.","store.noCollectionsFound":"No se encontraron colecciones.","store.noFilesSelected":"No hay archivos seleccionados","store.none":"Ninguno","store.noObjectsDragAndDrop":"Sin objetos. Arrastra y suelta documentos o imágenes aquí para crear objetos de contenido.","store.noPreviewAvailable":"No hay vista previa disponible para este tipo de documento.","store.noProjectSelected":"No hay proyecto seleccionado","store.noPropertiesAvailable":"No hay propiedades disponibles para este documento.","store.noPropertiesDefined":"No hay propiedades definidas","store.noTranscriptAvailable":"No hay transcripción disponible","store.noType":"Sin tipo","store.noValidFilesSelected":"No hay archivos válidos seleccionados","store.noVideoRendition":"No hay representación de video compatible con web disponible","store.openFullDocument":"Abrir documento completo","store.openFullDocumentView":"Abrir vista completa del documento","store.optional":"(Opcional)","store.pdfConversionFailed":"Error en la conversión PDF","store.pdfPreviewFullView":"La vista previa del documento PDF está disponible en vista completa.","store.pleaseFixJsonSyntax":"Por favor, corrige los errores de sintaxis JSON antes de guardar.","store.pleaseProvideName":"Por favor, proporciona un nombre para la colección","store.pleaseSelectValidFiles":"Por favor, selecciona archivos con contenido válido.","store.pleaseWait":"POR FAVOR ESPERA","store.preview":"Vista previa","store.previewProperties":"Vista previa de propiedades","store.processingFailedFor":"El procesamiento falló para {{name}}","store.processingFiles":"Procesando archivos","store.properties":"Propiedades","store.propertiesUpdated":"Propiedades actualizadas","store.propertiesUpdatedDesc":"Las propiedades del objeto se han actualizado correctamente.","store.query":"Consulta","store.queryDescription":"Define la consulta para obtener dinámicamente el contenido de la colección.","store.refresh":"Actualizar","store.renderingDocument":"Renderizando tu documento...","store.saveChanges":"Guardar cambios","store.saveText":"Guardar","store.schemaEditor":"Editor de esquema","store.schemaUpdated":"Esquema actualizado","store.schemaUpdatedSuccess":"El esquema se ha actualizado correctamente","store.search":"Buscar","store.searchCollections":"Buscar colecciones","store.searchFailed":"Error en la búsqueda","store.searching":"Buscando...","store.searchPlaceholder":"Escribe lo que buscas, o selecciona un filtro","store.searchTypes":"Buscar tipos","store.selectACollection":"Seleccionar una colección","store.selectContentType":"Seleccionar tipo de contenido","store.selectContentTypeAuto":"Selecciona un tipo de contenido o déjalo vacío para detección automática","store.selectContentTypeLabel":"Selecciona un tipo de contenido","store.selectPropertiesToShare":"Seleccionar propiedades a compartir","store.semanticChunking":"Fragmentación semántica","store.semanticSearch":"Búsqueda semántica","store.semanticSearchSettings":"Configuración de búsqueda semántica","store.sharedProperties":"Propiedades compartidas","store.sharedPropertiesDescription":"Agrega propiedades para compartir entre todos los miembros de la colección. Esta función requiere habilitar la sincronización de propiedades compartidas en el proyecto.","store.showingFirst128K":"Mostrando solo los primeros 128K caracteres","store.size":"Tamaño","store.staticCollection":"Colección estática","store.strictMode":"Modo estricto","store.successfullyCopied":"{{type}} copiado al portapapeles exitosamente","store.successfullyExportedTo":"Exportado exitosamente a {{format}}","store.syncMemberHeads":"Sincronizar versiones de miembros","store.syncMemberHeadsDescription":"Cuando se crea una nueva versión HEAD de un miembro, la colección se actualizará para apuntar a la nueva versión HEAD.","store.tableLayout":"Disposición de tabla","store.tableLayoutDescription":"Define una disposición personalizada para mostrar la colección en tablas.","store.tableLayoutUpdated":"Disposición de tabla actualizada","store.tableLayoutUpdatedDesc":"La disposición de tabla se ha actualizado correctamente","store.textConflict":"El documento fue modificado en otro lugar. Por favor, actualice e intente de nuevo.","store.textSaved":"Contenido de texto guardado","store.typeCreated":"Tipo creado","store.typeDescription":"Opcionalmente selecciona un tipo de contenido para asignar propiedades y datos personalizados a la colección.","store.typeSelectDescription":"Selecciona un tipo de contenido para asignar propiedades y datos personalizados a la colección.","store.unknown":"Desconocido","store.unsavedChanges":"Cambios sin guardar","store.updated":"Actualizado","store.updatedAt":"Actualizado el","store.updatedBy":"Actualizado por","store.updatedSharedProperties":"Propiedades compartidas actualizadas","store.updatedSkipHeadSync":"Configuración de sincronización de versiones actualizada","store.upload":"Subir","store.uploadComplete":"Subida completada","store.uploadIssues":"Problemas de subida","store.validationFailed":"Error de validación","store.videoFormatRequired":"Formato MP4 o WebM requerido","store.viewAsPdf":"Ver como PDF","store.viewAudio":"Ver audio","store.viewImage":"Ver imagen","store.viewingNewVersion":"Viendo nueva versión","store.viewingNewVersionDefault":"Ahora viendo la nueva versión","store.viewingVersionLabel":"Ahora viendo la versión '{{label}}'","store.viewInJsonFormat":"Ver en formato JSON","store.viewPdf":"Ver PDF","store.viewText":"Ver texto","store.viewTranscript":"Ver transcripción","store.viewVideo":"Ver video","theme.dark":"Oscuro","theme.label":"Tema","theme.light":"Claro","theme.system":"Sistema","type.description":"Descripción","type.name":"Nombre","type.nameRequired":"El nombre es obligatorio","type.type":"Tipo","upload.allFilesExist_one":"{{count}} archivo ya existe","upload.allFilesExist_many":"{{count}} archivos ya existen","upload.allFilesExist_other":"{{count}} archivos ya existen","upload.analyzingFiles":"Analizando archivos...","upload.checkingForDuplicates":"Verificando duplicados y actualizaciones","upload.collectionLabel":"Colección:","upload.contentTypeTooltip":"Selecciona un tipo de contenido para aplicar a los archivos subidos. Si se deja vacío, Vertesia detectará automáticamente el tipo según el contenido del archivo.","upload.continue":"Continuar","upload.dragAndDrop":"Arrastra y suelta archivos aquí o haz clic para seleccionar","upload.errorAnalyzingFiles":"Hubo un error al analizar los archivos","upload.failedToUpload":"Error al subir","upload.fileAnalysisResults":"Resultados del análisis de archivos","upload.filesAnalyzed":"Archivos analizados","upload.filesProcessed_one":"{{count}} archivo procesado","upload.filesProcessed_many":"{{count}} archivos procesados","upload.filesProcessed_other":"{{count}} archivos procesados","upload.filesReadyToProcess_one":"{{count}} archivo está listo para procesar","upload.filesReadyToProcess_many":"","upload.filesReadyToProcess_other":"{{count}} archivos están listos para procesar","upload.filesToSkip_one":"{{count}} archivo ya está en el sistema y será omitido.","upload.filesToSkip_many":"","upload.filesToSkip_other":"{{count}} archivos ya están en el sistema y serán omitidos.","upload.folderLabel":"Carpeta:","upload.inCollection":" en la colección '{{collection}}'","upload.inFolder":" en la carpeta '{{location}}'","upload.new":"Nuevo","upload.noFilesToProcess":"No hay archivos para procesar.","upload.noItems":"No hay elementos para mostrar","upload.preparingFiles_one":"Preparando para subir {{count}} archivo...","upload.preparingFiles_many":"Preparando para subir {{count}} archivos...","upload.preparingFiles_other":"Preparando para subir {{count}} archivos...","upload.preparingFolder_one":"Preparando para subir 1 carpeta con {{fileCount}} archivos...","upload.preparingFolder_many":"Preparando para subir {{folderCount}} carpetas con {{fileCount}} archivos...","upload.preparingFolder_other":"Preparando para subir {{folderCount}} carpetas con {{fileCount}} archivos...","upload.processedCount":"{{processed}}/{{total}} archivos procesados...","upload.processingFilesAction":"Procesando archivos ({{action}})","upload.selectFiles":"Seleccionar archivos","upload.selectFolder":"Seleccionar carpeta","upload.skip":"Omitir","upload.skippedAlreadyExisted":"Omitido (ya existía)","upload.successfullyUpdated":"Actualizado exitosamente","upload.successfullyUploaded":"Subido exitosamente","upload.update":"Actualizar","upload.uploadComplete":"Subida completada","upload.uploadFiles":"Subir archivos","upload.uploadingFiles":"Subiendo archivos","upload.uploadLocation":"Ubicación de subida:","upload.uploadMore":"Subir más","upload.uploadProcessInterrupted":"Proceso de subida interrumpido","upload.useAutoDetection":"Usar detección automática de tipo","upload.useTypeName":"Usar {{typeName}}","user.account":"Cuenta:","user.agentOnBehalfOf":"Agente en nombre de","user.agentOnBehalfOfApiKey":"Agente en nombre de la clave API","user.allProjectMembers":"Todos los miembros del proyecto","user.allProjectMembersDescription":"Todos los miembros de este proyecto tienen este permiso.","user.appVersion":"Versión de la aplicación","user.environment":"Entorno","user.failedToFetchApiKey":"Error al obtener la clave API","user.failedToFetchGroup":"Error al obtener el grupo","user.failedToFetchUser":"Error al obtener el usuario","user.groupId":"ID del grupo: {{id}}","user.key":"Clave:","user.organizationId":"ID de la organización","user.organizationRoles":"Roles en la organización","user.privateKey":"Clave privada","user.project":"Proyecto:","user.projectId":"ID del proyecto","user.projectRoles":"Roles en el proyecto","user.schedule":"Programar {{title}}","user.sdkVersion":"Versión del SDK","user.server":"Servidor","user.serviceAccount":"Cuenta de servicio","user.serviceAccountDescription":"Este usuario es utilizado por robots como los workers de flujo de trabajo.","user.store":"Store","user.systemUser":"Usuario del sistema","user.systemUserDescription":"El usuario del sistema se utiliza para inicializar objetos integrados.","user.tenantId":"ID del tenant","user.unknown":"desconocido","user.unknownUser":"Usuario desconocido","user.unknownUserDescription":"La información del usuario no está disponible.","user.unnamedGroup":"Grupo sin nombre","user.user":"Usuario","user.userId":"ID de usuario","widgets.schema.editDescription":"Editar descripción","widgets.schema.invalidPropertyDeclaration":"Declaración de propiedad inválida"}},fr:{[Un]:{"agent.activeWorkstreams_one":"L'agent a {{count}} flux de travail actif en cours","agent.activeWorkstreams_many":"L'agent a {{count}} flux de travail actifs en cours","agent.activeWorkstreams_other":"L'agent a {{count}} flux de travail actifs en cours","agent.agentConversation":"Conversation avec l'agent","agent.agentInterrupted":"Agent interrompu","agent.agentPlan":"Plan de l'agent","agent.agentProcessing":"L'agent est en cours de traitement, vous pourrez continuer une fois terminé...","agent.agentRunIdCopied":"ID d'exécution de l'agent copié","agent.agentStarted":"Agent démarré","agent.agentWorking":"L'agent travaille... (Échap Échap pour arrêter)","agent.agentWorkingStop":"L'agent travaille... Appuyez deux fois sur Échap ou cliquez sur Arrêter pour interrompre","agent.allMessages":"Tous les messages","agent.artifacts":"Artefacts","agent.askAnything":"Posez une question... (glissez ou collez des fichiers)","agent.batch":"Lot","agent.canceled":"","agent.cancelWorkflow":"Annuler le workflow","agent.clickToEnlarge":"Cliquer pour agrandir","agent.cloneConversation":"Cloner la conversation","agent.close":"Fermer","agent.closeFullscreen":"Fermer le plein écran","agent.completed":"Terminé","agent.continueConversation":"Continuer la conversation","agent.conversationCloned":"Conversation clonée","agent.conversationContinued":"Conversation poursuivie","agent.copied":"Copié","agent.copiedAllToolCalls":"Tous les appels d'outils copiés dans le presse-papiers","agent.copiedBatchDetails":"Détails du lot copiés dans le presse-papiers","agent.copiedToClipboard":"Copié dans le presse-papiers","agent.copy":"Copier","agent.copyAgentRunId":"Copier l'ID d'exécution de l'agent","agent.copyAllToolCalls":"Copier tous les appels d'outils","agent.copyBatchDetails":"Copier les détails du lot","agent.copyMessage":"Copier le message","agent.copyRunId":"Copier l'ID d'exécution","agent.copyToClipboard":"Copier dans le presse-papiers","agent.copyWorkflowRunId":"Copier l'ID d'exécution du workflow","agent.dashboard":"Tableau de bord","agent.details":"Détails","agent.document":"Document","agent.documentAttachments":"Pièces jointes","agent.documentAttachmentsDescription":"Documents du store attachés à ce message. L'agent peut les récupérer par ID à tout moment, ou les rattacher pour inclure le contenu directement.","agent.documents":"Documents","agent.download":"Télécharger","agent.downloadConversation":"Télécharger la conversation","agent.dropFilesToUpload":"Déposez des fichiers pour les envoyer","agent.elapsed":"{{seconds}}s écoulées","agent.enlargedView":"Vue agrandie","agent.enterMessage":"Saisissez un message pour démarrer une conversation","agent.enterToSend":"Entrée pour envoyer • Maj+Entrée pour nouvelle ligne","agent.error":"Erreur","agent.errorStarting":"Erreur lors du démarrage du workflow","agent.exit":"Quitter","agent.exitFullscreen":"Quitter le plein écran","agent.export":"Exporter","agent.exportAsPdf":"Exporter en PDF","agent.exportAsPng":"Exporter en PNG","agent.exportAsWord":"Exporter en Word","agent.exporting":"Exportation...","agent.exportMessage":"Exporter le message","agent.failedToCancelWorkflow":"Échec de l'annulation du workflow","agent.failedToCloneConversation":"Échec du clonage de la conversation","agent.failedToContinueConversation":"Échec de la poursuite de la conversation","agent.failedToDownload":"Échec du téléchargement de la conversation","agent.failedToInterrupt":"Échec de l'interruption","agent.failedToLoadDocument":"Échec du chargement du document","agent.failedToSend":"Échec de l'envoi du message","agent.filesProcessing":"Fichiers en cours de traitement","agent.filesStagedCount_one":"{{count}} fichier en attente - sera importé au début de la conversation","agent.filesStagedCount_many":"{{count}} fichiers en attente - seront importés au début de la conversation","agent.filesStagedCount_other":"{{count}} fichiers en attente - seront importés au début de la conversation","agent.filesUploadedDescription":"Les fichiers téléversés dans cette conversation restent disponibles tout au long. L'agent peut y accéder à tout moment.","agent.fullscreen":"Plein écran","agent.hideDetails":"Masquer les détails","agent.hideSidebar":"Masquer le panneau","agent.hideThinkingDetails":"Masquer les détails de réflexion","agent.inProgress":"En cours","agent.linkObject":"Lier un objet","agent.loadingArtifacts":"Chargement des artefacts...","agent.loadingDocument":"Chargement du document...","agent.main":"Principal","agent.mainWorkstream":"Flux principal","agent.moreActions":"Plus d'actions","agent.newerPlan":"Plan plus récent","agent.no":"Non","agent.noActiveWorkstreams":"Aucun flux actif","agent.noAgentRunning":"Aucun agent en cours d'exécution","agent.noArtifactsYet":"Aucun artefact","agent.noContentAvailable":"Aucun contenu disponible","agent.noContentToExport":"Aucun contenu à exporter","agent.noConversationContent":"Aucun contenu de conversation disponible pour l'export","agent.noDocumentsOpen":"Aucun document ouvert","agent.noFilesUploadedYet":"Aucun fichier envoyé","agent.noMessagesInWorkstream":"Aucun message dans ce flux de travail pour le moment...","agent.noPlanAvailable":"Aucun plan disponible","agent.noPlanDetected":"Aucun plan détecté pour le moment","agent.olderPlan":"Plan précédent","agent.openDocument":"Ouvrir le document","agent.openInNewTab":"Ouvrir dans un nouvel onglet","agent.payload":"Payload","agent.pdfExportFailed":"Échec de l'export PDF","agent.pdfExportReady":"Export PDF prêt","agent.pending":"En attente","agent.plan":"Plan","agent.planProgress":"Progression du plan","agent.plansWillAppear":"Les plans apparaîtront ici lorsque l'agent en créera un","agent.printDialogDescription":"Utilisez la boîte de dialogue d'impression de votre navigateur pour enregistrer en PDF","agent.processing":"Traitement en cours...","agent.ready":"Prêt","agent.refresh":"Actualiser","agent.remaining":"{{seconds}}s restantes","agent.retry":"Réessayer","agent.runIdCopied":"ID d'exécution copié","agent.searchDocuments":"Rechercher des documents","agent.selectInteraction":"Sélectionnez une interaction et cliquez sur Démarrer pour lancer un agent","agent.send":"Envoyer","agent.showAllMessages":"Afficher tous les messages","agent.showDetails":"Afficher les détails","agent.showSidebar":"Afficher le panneau","agent.staged":"En attente","agent.startAgent":"Démarrer l'agent","agent.startingAgent":"Démarrage de l'agent...","agent.startingAgentUploading":"Démarrage de l'agent et téléversement des fichiers...","agent.startNewConversation":"Nouvelle conversation","agent.stepByStepPlan":"Plan étape par étape","agent.stop":"Arrêter","agent.stopAgent":"Arrêter l'agent","agent.submitSelection":"Valider la sélection","agent.submitSelectionCount_one":"Valider la sélection ({{count}})","agent.submitSelectionCount_many":"Valider la sélection ({{count}})","agent.submitSelectionCount_other":"Valider la sélection ({{count}})","agent.summary":"Résumé","agent.taskProgress":"Progression des tâches","agent.toggleRightSidebar":"Basculer le panneau latéral","agent.typeNewInstructions":"Saisissez votre message pour donner de nouvelles instructions","agent.typeQuestionBelow":"Saisissez votre question ci-dessous et appuyez sur Entrée ou cliquez sur {{buttonText}} pour commencer","agent.typeYourMessage":"Saisissez votre message...","agent.typeYourResponse":"Saisissez votre réponse...","agent.unableToOpenPrint":"Impossible d'ouvrir l'aperçu d'impression","agent.unknownError":"Erreur inconnue","agent.unknownTime":"Heure inconnue","agent.upload":"Importer","agent.uploadedFiles":"Fichiers envoyés","agent.uploadFailed":"Échec de l'envoi","agent.uploading":"Envoi en cours...","agent.uploads":"Envois","agent.waitForFiles":"Attendez la fin du traitement des fichiers","agent.waitForFilesProcessing":"Veuillez attendre la fin du traitement de tous les fichiers avant d'envoyer","agent.waiting":"En attente...","agent.waitingForAgentResponse":"En attente de la réponse de l'agent...","agent.workflowCancelled":"Workflow annulé","agent.workflowRunIdCopied":"ID d'exécution du workflow copié","agent.working":"En cours...","agent.workstreams":"Flux de travail","agent.yes":"Oui","auth.continueWithEnterprise":"Continuer avec SSO Entreprise","auth.continueWithGithub":"Continuer avec GitHub","auth.continueWithGoogle":"Continuer avec Google","auth.continueWithMicrosoft":"Continuer avec Microsoft","auth.enterEnterpriseEmail":"Entrez votre email professionnel","auth.error":"Erreur : {{message}}","auth.firstTimeDetails":"Nous vous poserons quelques questions et vous serez prêt.","auth.firstTimeMessage":"Première visite ? Pas de souci, c'est gratuit à essayer !","auth.goBack":"Retour","auth.invalidEmail":"Adresse email invalide","auth.logInOrSignUp":"Se connecter ou s'inscrire","auth.needToMakeChange":"Besoin de modifier ?","auth.or":"OU","auth.privacyPolicy":"Politique de confidentialité","auth.signInError":"Désolé, nous n'avons pas pu vous connecter.","auth.signInErrorContact":"Veuillez réessayer ou contacter","auth.signInErrorPersists":"si le problème persiste.","auth.tenantNotFound":"Organisation introuvable","auth.termsOfService":"Conditions d'utilisation","errors.failedToLoadTenantConfig":"Échec du chargement de la configuration du tenant","errors.somethingWentWrong":"Désolé, une erreur est survenue...","errors.teamNotifiedLine1":"Notre équipe a été informée et travaillera rapidement à la résolution du problème.","errors.teamNotifiedLine2":"Si vous souhaitez escalader ou simplement nous contacter, veuillez nous envoyer un e-mail à","filter.clearAll":"Tout effacer","filter.filter":"Filtrer","filter.filterBy":"Filtrer par {{view}}","filter.filterPlaceholder":"Filtrer...","filter.from":"De :","filter.noAvailableFilters":"Aucun filtre disponible","filter.noMatchingFilters":"Aucun filtre correspondant","filter.noResultsFound":"Aucun résultat trouvé.","filter.selectRange":"Sélectionner une plage","filter.to":"À :","form.filter":"Filtrer...","layout.pageNotFound":"Page non trouvée","layout.search":"Rechercher","layout.searchPlaceholder":"Rechercher...","login.accept":"Accepter","login.reject":"Refuser","login.reviewInvites":"Examiner les invitations","login.terminal.account":"Compte","login.terminal.accountRequired":"Le compte est requis","login.terminal.accountRequiredDesc":"Veuillez sélectionner un compte pour autoriser le client à accéder aux serveurs ComposablePrompts","login.terminal.authorizeClient":"Autoriser le client","login.terminal.authPayloadCopied":"Payload d'authentification copié","login.terminal.authPayloadCopiedSuccess":"Vous pouvez fermer cette page. Le CLI devrait avoir reçu le jeton.","login.terminal.authPayloadCopiedWithError":"Vous pouvez coller le payload dans le terminal. Note : le CLI n'a pas reçu le jeton. Une erreur est survenue : {{error}}","login.terminal.browserPermissionNote":"Note : si votre navigateur demande l'autorisation d'accéder à votre réseau local, veuillez l'accepter. Cela est nécessaire pour envoyer le jeton d'autorisation au CLI. Sinon, vous devrez copier/coller le jeton manuellement dans votre terminal.","login.terminal.chooseAccountProject":"Vous devez choisir le compte et le projet cibles pour l'accès du client.","login.terminal.clientAuthenticated":"Le client est authentifié. Vous pouvez fermer cette page.","login.terminal.clientWantsAuth":"Une application cliente souhaite une autorisation pour accéder aux serveurs ComposablePrompts en votre nom.","login.terminal.copyAuthPayload":"Copier le payload d'authentification","login.terminal.envLocalDev":"Dev local","login.terminal.envProduction":"Production","login.terminal.envStaging":"Staging","login.terminal.errorAuthorizingClient":"Erreur lors de l'autorisation du client","login.terminal.errorLoadingProjects":"Erreur lors du chargement des projets","login.terminal.failedToGetToken":"Échec de l'obtention du jeton composable","login.terminal.failedToSendToken":"Échec de l'envoi du jeton d'autorisation au CLI","login.terminal.failedToSendTokenDesc":'Cela peut se produire en raison des vérifications de sécurité sur Safari. L\'erreur est "{{error}}"',"login.terminal.invalidRequest":"Requête invalide","login.terminal.invalidRequestDesc":"Cette page doit être appelée par un client terminal pour s'authentifier auprès des serveurs ComposablePrompts","login.terminal.profileName":"Nom du profil","login.terminal.profileNameNote":"Entrez également un nom de profil qui sera utilisé pour sauvegarder l'autorisation dans la configuration de votre client.","login.terminal.profileRequired":"Le profil est requis","login.terminal.profileRequiredDesc":"Veuillez saisir un nom de profil pour sauvegarder l'autorisation du client","login.terminal.project":"Projet","login.terminal.projectRequired":"Le projet est requis","login.terminal.projectRequiredDesc":"Veuillez sélectionner un projet pour autoriser le client à accéder aux serveurs ComposablePrompts","login.terminal.selectAccount":"Sélectionner un compte","login.terminal.selectProject":"Sélectionner un projet","mcpOAuth.authenticate":"S'authentifier","mcpOAuth.authenticating":"Authentification en cours...","mcpOAuth.connect":"Connecter","mcpOAuth.connected":"Connecté","mcpOAuth.connecting":"Connexion en cours...","mcpOAuth.disconnect":"Déconnecter","mcpOAuth.notConnected":"Non connecté","misc.copiedToClipboard":"Copié dans le presse-papiers","misc.copy":"Copier","misc.failedToCopy":"Échec de la copie","misc.noData":"Aucune donnée à afficher","misc.tableView":"Vue tableau","misc.thumbnailView":"Vue miniatures","modal.cancel":"Annuler","modal.confirm":"Confirmer","modal.delete.error":"Une erreur est survenue lors de la suppression de l'objet","modal.delete.failed":"Échec de la suppression","modal.delete.succeeded":"Suppression réussie","modal.save":"Enregistrer","modal.saveChanges":"Enregistrer les modifications","modal.saveVersion.createDescription":"Créer une nouvelle révision avec ces modifications de propriétés tout en préservant l'original.","modal.saveVersion.createNew":"Créer une nouvelle version","modal.saveVersion.createWithFileDescription":"Créer une nouvelle révision avec le fichier de remplacement tout en préservant l'original.","modal.saveVersion.howToSave":"Comment souhaitez-vous enregistrer ces modifications ?","modal.saveVersion.replaceFile":"Vous êtes sur le point de remplacer le fichier avec :","modal.saveVersion.updateCurrent":"Mettre à jour la version actuelle","modal.saveVersion.updateDescription":"Modifier les propriétés directement dans la révision actuelle.","modal.saveVersion.updateWithFileDescription":"Remplacer le fichier et modifier les propriétés directement dans la révision actuelle.","modal.saveVersion.versionLabel":"Libellé de version (Optionnel)","modal.saveVersion.versionLabelDescription":"Libellé optionnel pour la nouvelle version.","modal.saveVersion.versionLabelPlaceholder":"ex. v1.2, approuvé, post-revue","oauthProvider.authenticate":"S'authentifier","oauthProvider.authenticating":"Authentification en cours...","oauthProvider.connected":"Connecté","oauthProvider.disconnect":"Déconnecter","pdf.close":"Fermer","pdf.closeFullscreen":"Fermer le plein écran","pdf.download":"Télécharger","pdf.failedToLoadViewer":"Échec du chargement du visualiseur PDF","pdf.fetchingDocumentFailed":"Échec de la récupération du document","pdf.fitToWidth":"Ajuster à la largeur","pdf.fullscreen":"Plein écran","pdf.instrumentedImages":"Images instrumentées","pdf.nextPage":"Page suivante","pdf.noPdfAvailable":"Aucun PDF disponible","pdf.originalImages":"Images originales","pdf.page":"Page","pdf.pageOf":"Page {{pageNumber}} / {{totalPages}}","pdf.previousPage":"Page précédente","pdf.zoomIn":"Zoom avant","pdf.zoomOut":"Zoom arrière","shell.accessDenied":"Accès refusé","shell.applicationNotRegistered":"Application non enregistrée","shell.organization":"Organisation","shell.selectOrganization":"Sélectionner l'organisation","shell.selectProject":"Sélectionner le projet","signup.accountType":"Type de compte","signup.activelyExploring":"Exploration active des LLM sur un projet","signup.alreadyUsing":"Utilisation des LLM en production","signup.company":"Entreprise","signup.companyDescription":"Pour une entreprise ou une organisation.","signup.companyName":"Nom de l'entreprise","signup.companySize":"Taille de l'entreprise","signup.companyWebsite":"Site web de l'entreprise","signup.justTesting":"Test ou évaluation des LLM","signup.migratingLLMs":"Migration vers d'autres LLM","signup.other":"Autre","signup.personal":"Personnel","signup.personalDescription":"Pour un usage personnel ou une petite équipe.","signup.pleaseEnterOrgName":"Veuillez saisir un nom d'organisation","signup.pleaseSelectAccountType":"Veuillez sélectionner un type de compte","signup.pleaseSelectCompanySize":"Veuillez sélectionner une taille d'entreprise","signup.projectMaturity":"Maturité du projet","signup.selectCompanySize":"Sélectionner la taille de l'entreprise","signup.selectProjectMaturity":"Sélectionner la maturité du projet","signup.signUp":"S'inscrire","signup.size1001to5000":"1001-5000 employés","signup.size101to1000":"101-1000 employés","signup.size11to100":"11-100 employés","signup.size1to10":"1-10 employés","signup.size5000plus":"5000+ employés","signup.welcomeMessage":"Bienvenue sur Vertesia, {{name}} ({{email}}).\nVeuillez nous en dire un peu plus sur vous et vous serez prêt.\nAucune carte de crédit n'est requise.","signup.wrongAccountGoBack":"Mauvais compte, revenir en arrière","store.actions.addToCollection":"Ajouter à la collection","store.actions.addToCollectionBody":"Ajouter les objets sélectionnés à une collection existante ou en créer une nouvelle.","store.actions.addToCollectionButton":"Ajouter à la collection","store.actions.addToCollectionDesc":"Ajouter des documents à une collection","store.actions.addToCollectionFailure":"Échec de l'ajout à la collection","store.actions.addToCollectionFailureDesc":"Échec de l'ajout des objets sélectionnés à la collection","store.actions.addToCollectionSuccess":"Ajout à la collection réussi","store.actions.addToCollectionSuccessDesc_one":"{{count}} objet ajouté à la collection","store.actions.addToCollectionSuccessDesc_many":"{{count}} objets ajoutés à la collection","store.actions.addToCollectionSuccessDesc_other":"{{count}} objets ajoutés à la collection","store.actions.addToCollectionTitle":"Ajouter à une collection","store.actions.areYouSure":"Êtes-vous sûr ?","store.actions.cannotRemoveNoCollection":"Impossible de retirer les objets : aucune collection spécifiée","store.actions.changeContentType":"Changer le type de contenu","store.actions.changeContentTypeDesc":"Changer le type de contenu des documents sélectionnés","store.actions.changeType":"Changer le type","store.actions.chooseExistingCollections":"Choisir parmi les collections existantes","store.actions.chooseWorkflowRule":"Choisissez une règle de workflow à démarrer :","store.actions.confirmDeleteAll":"Êtes-vous sûr de vouloir supprimer tous les objets sélectionnés ? Cette action est irréversible.","store.actions.confirmDeleteSelected":"Êtes-vous sûr de vouloir supprimer les objets sélectionnés ?\nCela ne les retire pas des collections.","store.actions.createNew":"Créer nouveau","store.actions.delete":"Supprimer","store.actions.deleteObjects":"Supprimer les objets","store.actions.deleteTheSelectedObjects":"Supprimer les objets sélectionnés","store.actions.errorChangingType":"Erreur lors du changement de type","store.actions.errorDeletingObjects":"Erreur lors de la suppression des objets","store.actions.errorExportProperties":"Erreur lors de l'export des propriétés","store.actions.errorRemovingObjects":"Erreur lors du retrait des objets de la collection","store.actions.errorStartingWorkflow":"Erreur lors du démarrage du workflow","store.actions.exportAllObjectProperties":"Exporter toutes les propriétés des objets","store.actions.exportProperties":"Exporter les propriétés","store.actions.noCollectionContext":"Aucun contexte de collection","store.actions.noObjectsSelected":"Aucun objet sélectionné","store.actions.pleaseSelectObjectsToDelete":"Veuillez sélectionner des objets à supprimer","store.actions.pleaseSelectObjectsToRemove":"Veuillez sélectionner des objets à retirer de la collection","store.actions.selectCollection":"Sélectionner une collection","store.actions.startWorkflow":"Démarrer un workflow","store.actions.startWorkflowByRule":"Démarrer un workflow par règle","store.actions.startWorkflowDesc":"Démarrer un workflow sur les objets sélectionnés","store.actions.workflowStarted":"Workflow démarré","store.allowedContentTypes":"Types de contenu autorisés","store.allowedContentTypesOptionalDescription":"Sélectionnez optionnellement les types de contenu pouvant être ajoutés à la collection. Si non défini, tous les types de contenu sont autorisés.","store.allowedContentTypesSelectDescription":"Sélectionnez les types de contenu pouvant être ajoutés à la collection. Si non défini, tous les types de contenu sont autorisés.","store.areYouSureDeleteCollection":"Êtes-vous sûr de vouloir supprimer cette collection ? Cette action est irréversible.","store.audioFormatRequired":"Format MP3, M4A, OGG, WAV ou WebM requis","store.automaticTypeDetection":"Détection automatique du type","store.automaticTypeDetectionDescription":"Vertesia analysera le contenu et sélectionnera le type le plus approprié. Ceci est recommandé pour la plupart des imports et garantit un traitement optimal.","store.cancelEdit":"Annuler","store.chooseAFormat":"Choisir un format","store.chooseContentType":"Choisir un type de contenu...","store.chooseContentTypes":"Choisir des types de contenu...","store.chooseWhatToExport":"Choisir quoi exporter","store.clearSelection":"Effacer la sélection","store.close":"Fermer","store.collectionCreated":"Collection créée","store.collectionDeleted":"Collection supprimée","store.collectionFetchFailed":"Échec de la récupération de la collection","store.collectionPropertiesUpdated":"Propriétés de la collection mises à jour","store.collectionsSelected_one":"{{count}} collection sélectionnée","store.collectionsSelected_many":"{{count}} collections sélectionnées","store.collectionsSelected_other":"{{count}} collections sélectionnées","store.collectionUpdated":"Collection mise à jour","store.collectionUpdatedSuccess":"La collection a été mise à jour avec succès","store.configuration":"Configuration","store.confirmSelection":"Confirmer la sélection","store.contentCopied":"{{type}} copié","store.contentExported":"Contenu exporté","store.contentType":"Type de contenu","store.convertingToPdf":"Conversion en PDF...","store.copyFailed":"Échec de la copie","store.createACollection":"Créer une collection","store.createCollection":"Créer une collection","store.created":"Créé","store.createdBy":"Créé par","store.createType":"Créer un type","store.deleteCollection":"Supprimer la collection","store.documentExported":"Document exporté","store.documentInformation":"Informations du document","store.documentListRefreshed":"Liste des documents actualisée","store.documentListRefreshedDesc":"La liste des documents a été mise à jour avec vos fichiers envoyés.","store.documentPreview":"Aperçu du document","store.downloadFailed":"Échec du téléchargement","store.dynamicCollection":"Collection dynamique","store.dynamicCollectionDescription":"Récupérer dynamiquement le contenu de la collection à partir d'une requête. Si non activé, le contenu doit être ajouté par des utilisateurs ou des agents.","store.editingGenericDocument":"Modification des propriétés d'un document générique","store.editJson":"Modifier le JSON","store.editProperties":"Modifier les propriétés","store.editSchema":"Modifier le schéma","store.editText":"Modifier le texte","store.embeddings":"Embeddings","store.enableSyncMemberHeads":"Activer la synchronisation des versions membres","store.error":"Erreur","store.errorCheckingDuplicates":"Une erreur est survenue lors de la vérification des doublons","store.errorCreatingType":"Erreur lors de la création du type","store.errorInUploadProcessingCheck":"Erreur lors de la vérification du traitement des fichiers","store.errorProcessingFiles":"Erreur lors du traitement des fichiers","store.errorSavingText":"Échec de l'enregistrement du texte","store.errorSavingTextDefault":"Une erreur est survenue lors de l'enregistrement du contenu textuel.","store.errorUpdatingProperties":"Erreur lors de la mise à jour des propriétés","store.errorUpdatingPropertiesDefault":"Une erreur est survenue lors de la mise à jour des propriétés.","store.exportFailed":"Échec de l'export","store.exportInProgress":"EXPORT EN COURS","store.failedToConvertToPdf":"Échec de la conversion en PDF","store.failedToCopy":"Échec de la copie de {{type}} dans le presse-papiers","store.failedToCreateCollection":"Échec de la création de la collection","store.failedToDeleteCollection":"Échec de la suppression de la collection","store.failedToDownloadFile":"Échec du téléchargement du fichier","store.failedToDownloadPdf":"Échec du téléchargement du fichier PDF","store.failedToExportContent":"Échec de l'export du contenu","store.failedToExportDocument":"Échec de l'export du document","store.failedToFetchRoleMappings":"Échec de la récupération des rôles","store.failedToFetchTypes":"Échec de la récupération des types d'objets","store.failedToFetchWorkflows":"Échec de la récupération des workflows","store.failedToGetDownloadUrl":"Échec de l'obtention de l'URL de téléchargement","store.failedToLoadDocument":"Échec du chargement du document","store.failedToLoadType":"Échec du chargement du type","store.failedToUpdateCollection":"Échec de la mise à jour de la collection","store.failedToUpdateCollectionProperties":"Échec de la mise à jour des propriétés de la collection","store.failedToUpdateSchema":"Échec de la mise à jour du schéma","store.failedToUpdateSharedProperties":"Échec de la mise à jour des propriétés partagées","store.failedToUpdateSkipHeadSync":"Échec de la mise à jour de la synchronisation des versions","store.failedToUpdateTableLayout":"Échec de la mise à jour de la disposition du tableau","store.filesAnalyzedTitle":"Fichiers analysés","store.filesReadyToProcess":"Fichiers prêts à traiter","store.filterByName":"Filtrer par nom","store.fullText":"Texte intégral","store.fullView":"Vue complète","store.getStartedCollections":"Commencez par créer une nouvelle collection.","store.getStartedTypes":"Commencez par créer un nouveau type.","store.id":"ID","store.invalidJson":"JSON invalide","store.invalidJsonSchema":"Schéma JSON invalide","store.invalidQueryJson":"JSON de requête invalide","store.invalidTableLayout":"Disposition de tableau invalide","store.isChunkable":"Est découpable","store.limit":"Limite","store.loadingDocument":"Chargement du document...","store.loadingProcessingStatus":"Chargement de l'état de traitement...","store.na":"N/A","store.name":"Nom","store.newCollections":"Nouvelles collections","store.newVersionCreated":"Nouvelle version créée","store.newVersionCreatedDesc":"Une nouvelle version avec les propriétés mises à jour a été créée.","store.noAudioRendition":"Aucun rendu audio compatible web disponible","store.noCollections":"Aucune collection","store.noCollectionsAvailable":"Aucune collection disponible.","store.noCollectionsFound":"Aucune collection trouvée.","store.noFilesSelected":"Aucun fichier sélectionné","store.none":"Aucun","store.noObjectsDragAndDrop":"Aucun objet. Glissez-déposez des documents ou images ici pour créer des objets de contenu.","store.noPreviewAvailable":"Aucun aperçu disponible pour ce type de document.","store.noProjectSelected":"Aucun projet sélectionné","store.noPropertiesAvailable":"Aucune propriété disponible pour ce document.","store.noPropertiesDefined":"Aucune propriété définie","store.noTranscriptAvailable":"Aucune transcription disponible","store.noType":"Aucun type","store.noValidFilesSelected":"Aucun fichier valide sélectionné","store.noVideoRendition":"Aucun rendu vidéo compatible web disponible","store.openFullDocument":"Ouvrir le document complet","store.openFullDocumentView":"Ouvrir la vue complète du document","store.optional":"(Optionnel)","store.pdfConversionFailed":"Échec de la conversion PDF","store.pdfPreviewFullView":"L'aperçu du document PDF est disponible en vue complète.","store.pleaseFixJsonSyntax":"Veuillez corriger les erreurs de syntaxe JSON avant d'enregistrer.","store.pleaseProvideName":"Veuillez fournir un nom pour la collection","store.pleaseSelectValidFiles":"Veuillez sélectionner des fichiers avec un contenu valide.","store.pleaseWait":"VEUILLEZ PATIENTER","store.preview":"Aperçu","store.previewProperties":"Aperçu des propriétés","store.processingFailedFor":"Le traitement a échoué pour {{name}}","store.processingFiles":"Traitement des fichiers","store.properties":"Propriétés","store.propertiesUpdated":"Propriétés mises à jour","store.propertiesUpdatedDesc":"Les propriétés de l'objet ont été mises à jour avec succès.","store.query":"Requête","store.queryDescription":"Définissez la requête pour récupérer dynamiquement le contenu de la collection.","store.refresh":"Actualiser","store.renderingDocument":"Rendu de votre document...","store.saveChanges":"Enregistrer les modifications","store.saveText":"Enregistrer","store.schemaEditor":"Éditeur de schéma","store.schemaUpdated":"Schéma mis à jour","store.schemaUpdatedSuccess":"Le schéma a été mis à jour avec succès","store.search":"Rechercher","store.searchCollections":"Rechercher des collections","store.searchFailed":"Échec de la recherche","store.searching":"Recherche...","store.searchPlaceholder":"Tapez ce que vous recherchez, ou sélectionnez un filtre","store.searchTypes":"Rechercher des types","store.selectACollection":"Sélectionner une collection","store.selectContentType":"Sélectionner le type de contenu","store.selectContentTypeAuto":"Sélectionnez un type de contenu ou laissez vide pour la détection automatique","store.selectContentTypeLabel":"Sélectionnez un type de contenu","store.selectPropertiesToShare":"Sélectionner les propriétés à partager","store.semanticChunking":"Découpage sémantique","store.semanticSearch":"Recherche sémantique","store.semanticSearchSettings":"Paramètres de recherche sémantique","store.sharedProperties":"Propriétés partagées","store.sharedPropertiesDescription":"Ajoutez des propriétés à partager entre tous les membres de la collection. Cette fonctionnalité nécessite d'activer la synchronisation des propriétés partagées sur le projet.","store.showingFirst128K":"Affichage des 128K premiers caractères uniquement","store.size":"Taille","store.staticCollection":"Collection statique","store.strictMode":"Mode strict","store.successfullyCopied":"{{type}} copié dans le presse-papiers avec succès","store.successfullyExportedTo":"Exporté avec succès au format {{format}}","store.syncMemberHeads":"Synchroniser les versions membres","store.syncMemberHeadsDescription":"Lorsqu'une nouvelle version HEAD d'un membre est créée, la collection sera mise à jour pour pointer vers la nouvelle version HEAD.","store.tableLayout":"Disposition du tableau","store.tableLayoutDescription":"Définissez une disposition personnalisée pour l'affichage de la collection dans les tableaux.","store.tableLayoutUpdated":"Disposition du tableau mise à jour","store.tableLayoutUpdatedDesc":"La disposition du tableau a été mise à jour avec succès","store.textConflict":"Le document a été modifié ailleurs. Veuillez rafraîchir et réessayer.","store.textSaved":"Contenu textuel enregistré","store.typeCreated":"Type créé","store.typeDescription":"Sélectionnez optionnellement un type de contenu pour attribuer des propriétés et données personnalisées à la collection.","store.typeSelectDescription":"Sélectionnez un type de contenu pour attribuer des propriétés et données personnalisées à la collection.","store.unknown":"Inconnu","store.unsavedChanges":"Modifications non enregistrées","store.updated":"Mis à jour","store.updatedAt":"Mis à jour le","store.updatedBy":"Mis à jour par","store.updatedSharedProperties":"Propriétés partagées mises à jour","store.updatedSkipHeadSync":"Paramètre de synchronisation des versions mis à jour","store.upload":"Importer","store.uploadComplete":"Import terminé","store.uploadIssues":"Problèmes d'import","store.validationFailed":"Échec de la validation","store.videoFormatRequired":"Format MP4 ou WebM requis","store.viewAsPdf":"Voir en PDF","store.viewAudio":"Voir l'audio","store.viewImage":"Voir l'image","store.viewingNewVersion":"Affichage de la nouvelle version","store.viewingNewVersionDefault":"Affichage de la nouvelle version","store.viewingVersionLabel":"Affichage de la version '{{label}}'","store.viewInJsonFormat":"Voir au format JSON","store.viewPdf":"Voir le PDF","store.viewText":"Voir le texte","store.viewTranscript":"Voir la transcription","store.viewVideo":"Voir la vidéo","theme.dark":"Sombre","theme.label":"Thème","theme.light":"Clair","theme.system":"Système","type.description":"Description","type.name":"Nom","type.nameRequired":"Le nom est requis","type.type":"Type","upload.allFilesExist_one":"{{count}} fichier existe déjà","upload.allFilesExist_many":"{{count}} fichiers existent déjà","upload.allFilesExist_other":"{{count}} fichiers existent déjà","upload.analyzingFiles":"Analyse des fichiers...","upload.checkingForDuplicates":"Vérification des doublons et mises à jour","upload.collectionLabel":"Collection :","upload.contentTypeTooltip":"Sélectionnez un type de contenu à appliquer aux fichiers importés. Si laissé vide, Vertesia détectera automatiquement le type en fonction du contenu du fichier.","upload.continue":"Continuer","upload.dragAndDrop":"Glissez-déposez des fichiers ici ou cliquez pour sélectionner","upload.errorAnalyzingFiles":"Une erreur est survenue lors de l'analyse des fichiers","upload.failedToUpload":"Échec de l'import","upload.fileAnalysisResults":"Résultats de l'analyse des fichiers","upload.filesAnalyzed":"Fichiers analysés","upload.filesProcessed_one":"{{count}} fichier traité","upload.filesProcessed_many":"{{count}} fichiers traités","upload.filesProcessed_other":"{{count}} fichiers traités","upload.filesReadyToProcess_one":"{{count}} fichier est prêt à être traité","upload.filesReadyToProcess_many":"{{count}} fichiers sont prêts à être traités","upload.filesReadyToProcess_other":"{{count}} fichiers sont prêts à être traités","upload.filesToSkip_one":"{{count}} fichier existe déjà dans le système et sera ignoré.","upload.filesToSkip_many":"{{count}} fichiers existent déjà dans le système et seront ignorés.","upload.filesToSkip_other":"{{count}} fichiers existent déjà dans le système et seront ignorés.","upload.folderLabel":"Dossier :","upload.inCollection":" dans la collection '{{collection}}'","upload.inFolder":" dans le dossier '{{location}}'","upload.new":"Nouveau","upload.noFilesToProcess":"Aucun fichier à traiter.","upload.noItems":"Aucun élément à afficher","upload.preparingFiles_one":"Préparation de l'import de {{count}} fichier...","upload.preparingFiles_many":"Préparation de l'import de {{count}} fichiers...","upload.preparingFiles_other":"Préparation de l'import de {{count}} fichiers...","upload.preparingFolder_one":"Préparation de l'import d'1 dossier avec {{fileCount}} fichiers...","upload.preparingFolder_many":"Préparation de l'import de {{folderCount}} dossiers avec {{fileCount}} fichiers...","upload.preparingFolder_other":"Préparation de l'import de {{folderCount}} dossiers avec {{fileCount}} fichiers...","upload.processedCount":"{{processed}}/{{total}} fichiers traités...","upload.processingFilesAction":"Traitement des fichiers ({{action}})","upload.selectFiles":"Sélectionner des fichiers","upload.selectFolder":"Sélectionner un dossier","upload.skip":"Ignorer","upload.skippedAlreadyExisted":"Ignoré (existait déjà)","upload.successfullyUpdated":"Mis à jour avec succès","upload.successfullyUploaded":"Importé avec succès","upload.update":"Mettre à jour","upload.uploadComplete":"Import terminé","upload.uploadFiles":"Importer des fichiers","upload.uploadingFiles":"Import en cours","upload.uploadLocation":"Emplacement d'import :","upload.uploadMore":"Importer plus","upload.uploadProcessInterrupted":"Processus d'import interrompu","upload.useAutoDetection":"Utiliser la détection automatique","upload.useTypeName":"Utiliser {{typeName}}","user.account":"Compte :","user.agentOnBehalfOf":"Agent au nom de","user.agentOnBehalfOfApiKey":"Agent au nom de la clé API","user.allProjectMembers":"Tous les membres du projet","user.allProjectMembersDescription":"Chaque membre de ce projet dispose de cette autorisation.","user.appVersion":"Version de l'application","user.environment":"Environnement","user.failedToFetchApiKey":"Échec de la récupération de la clé API","user.failedToFetchGroup":"Échec de la récupération du groupe","user.failedToFetchUser":"Échec de la récupération de l'utilisateur","user.groupId":"ID du groupe : {{id}}","user.key":"Clé :","user.organizationId":"ID de l'organisation","user.organizationRoles":"Rôles dans l'organisation","user.privateKey":"Clé privée","user.project":"Projet :","user.projectId":"ID du projet","user.projectRoles":"Rôles dans le projet","user.schedule":"Planifier {{title}}","user.sdkVersion":"Version du SDK","user.server":"Serveur","user.serviceAccount":"Compte de service","user.serviceAccountDescription":"Cet utilisateur est utilisé par les robots comme les workers de workflow.","user.store":"Store","user.systemUser":"Utilisateur système","user.systemUserDescription":"L'utilisateur système est utilisé pour initialiser les objets intégrés.","user.tenantId":"ID du tenant","user.unknown":"inconnu","user.unknownUser":"Utilisateur inconnu","user.unknownUserDescription":"Les informations de l'utilisateur ne sont pas disponibles.","user.unnamedGroup":"Groupe sans nom","user.user":"Utilisateur","user.userId":"ID utilisateur","widgets.schema.editDescription":"Modifier la description","widgets.schema.invalidPropertyDeclaration":"Déclaration de propriété invalide"}},it:{[Un]:{"agent.activeWorkstreams_one":"L'agente ha {{count}} flusso di lavoro attivo in esecuzione","agent.activeWorkstreams_many":"L'agente ha {{count}} flussi di lavoro attivi in esecuzione","agent.activeWorkstreams_other":"L'agente ha {{count}} flussi di lavoro attivi in esecuzione","agent.agentConversation":"Conversazione con l'agente","agent.agentInterrupted":"Agente interrotto","agent.agentPlan":"Piano dell'agente","agent.agentProcessing":"L'agente sta elaborando, potrai continuare una volta completato...","agent.agentRunIdCopied":"ID esecuzione agente copiato","agent.agentStarted":"Agente avviato","agent.agentWorking":"L'agente sta lavorando... (Esc Esc per fermare)","agent.agentWorkingStop":"L'agente sta lavorando... Premi Esc due volte o clicca Ferma per interrompere","agent.allMessages":"Tutti i messaggi","agent.artifacts":"Artefatti","agent.askAnything":"Chiedi qualsiasi cosa... (trascina o incolla file)","agent.batch":"Batch","agent.canceled":"","agent.cancelWorkflow":"Annulla flusso di lavoro","agent.clickToEnlarge":"Clicca per ingrandire","agent.cloneConversation":"Clona conversazione","agent.close":"Chiudi","agent.closeFullscreen":"Chiudi schermo intero","agent.completed":"Completato","agent.continueConversation":"Continua conversazione","agent.conversationCloned":"Conversazione clonata","agent.conversationContinued":"Conversazione continuata","agent.copied":"Copiato","agent.copiedAllToolCalls":"Tutte le chiamate degli strumenti copiate negli appunti","agent.copiedBatchDetails":"Dettagli del batch copiati negli appunti","agent.copiedToClipboard":"Copiato negli appunti","agent.copy":"Copia","agent.copyAgentRunId":"Copia ID esecuzione agente","agent.copyAllToolCalls":"Copia tutte le chiamate degli strumenti","agent.copyBatchDetails":"Copia dettagli del batch","agent.copyMessage":"Copia messaggio","agent.copyRunId":"Copia ID esecuzione","agent.copyToClipboard":"Copia negli appunti","agent.copyWorkflowRunId":"Copia ID esecuzione workflow","agent.dashboard":"Dashboard","agent.details":"Dettagli","agent.document":"Documento","agent.documentAttachments":"Allegati documento","agent.documentAttachmentsDescription":"Documenti dallo store allegati a questo messaggio. L'agente può recuperarli per ID in qualsiasi momento, o riallegarli per includere il contenuto direttamente.","agent.documents":"Documenti","agent.download":"Scarica","agent.downloadConversation":"Scarica conversazione","agent.dropFilesToUpload":"Trascina i file per caricarli","agent.elapsed":"{{seconds}}s trascorsi","agent.enlargedView":"Vista ingrandita","agent.enterMessage":"Inserisci un messaggio per iniziare una conversazione","agent.enterToSend":"Invio per inviare • Shift+Invio per nuova riga","agent.error":"Errore","agent.errorStarting":"Errore durante l'avvio del flusso di lavoro","agent.exit":"Esci","agent.exitFullscreen":"Esci da schermo intero","agent.export":"Esporta","agent.exportAsPdf":"Esporta come PDF","agent.exportAsPng":"Esporta come PNG","agent.exportAsWord":"Esporta come Word","agent.exporting":"Esportazione...","agent.exportMessage":"Esporta messaggio","agent.failedToCancelWorkflow":"Impossibile annullare il flusso di lavoro","agent.failedToCloneConversation":"Impossibile clonare la conversazione","agent.failedToContinueConversation":"Impossibile continuare la conversazione","agent.failedToDownload":"Impossibile scaricare la conversazione","agent.failedToInterrupt":"Impossibile interrompere","agent.failedToLoadDocument":"Impossibile caricare il documento","agent.failedToSend":"Impossibile inviare il messaggio","agent.filesProcessing":"File ancora in elaborazione","agent.filesStagedCount_one":"{{count}} file in attesa - verrà caricato all'inizio della conversazione","agent.filesStagedCount_many":"{{count}} file in attesa - verranno caricati all'inizio della conversazione","agent.filesStagedCount_other":"{{count}} file in attesa - verranno caricati all'inizio della conversazione","agent.filesUploadedDescription":"I file caricati in questa conversazione rimangono disponibili durante tutta la conversazione. L'agente può accedervi in qualsiasi momento.","agent.fullscreen":"Schermo intero","agent.hideDetails":"Nascondi dettagli","agent.hideSidebar":"Nascondi pannello","agent.hideThinkingDetails":"Nascondi dettagli di pensiero","agent.inProgress":"In corso","agent.linkObject":"Collega oggetto","agent.loadingArtifacts":"Caricamento artefatti...","agent.loadingDocument":"Caricamento documento...","agent.main":"Principale","agent.mainWorkstream":"Flusso principale","agent.moreActions":"Altre azioni","agent.newerPlan":"Piano più recente","agent.no":"No","agent.noActiveWorkstreams":"Nessun flusso attivo","agent.noAgentRunning":"Nessun agente attualmente in esecuzione","agent.noArtifactsYet":"Nessun artefatto","agent.noContentAvailable":"Nessun contenuto disponibile","agent.noContentToExport":"Nessun contenuto da esportare","agent.noConversationContent":"Nessun contenuto della conversazione disponibile per l'esportazione","agent.noDocumentsOpen":"Nessun documento aperto","agent.noFilesUploadedYet":"Nessun file caricato","agent.noMessagesInWorkstream":"Nessun messaggio in questo flusso di lavoro ancora...","agent.noPlanAvailable":"Nessun piano disponibile","agent.noPlanDetected":"Nessun piano rilevato","agent.olderPlan":"Piano precedente","agent.openDocument":"Apri documento","agent.openInNewTab":"Apri in nuova scheda","agent.payload":"Payload","agent.pdfExportFailed":"Esportazione PDF fallita","agent.pdfExportReady":"Esportazione PDF pronta","agent.pending":"In attesa","agent.plan":"Piano","agent.planProgress":"Progresso del piano","agent.plansWillAppear":"I piani appariranno qui quando l'agente ne creerà uno","agent.printDialogDescription":"Usa la finestra di dialogo di stampa del tuo browser per salvare come PDF","agent.processing":"Elaborazione...","agent.ready":"Pronto","agent.refresh":"Aggiorna","agent.remaining":"{{seconds}}s rimanenti","agent.retry":"Riprova","agent.runIdCopied":"ID esecuzione copiato","agent.searchDocuments":"Cerca documenti","agent.selectInteraction":"Seleziona un'interazione e clicca Avvia per avviare un agente","agent.send":"Invia","agent.showAllMessages":"Mostra tutti i messaggi","agent.showDetails":"Mostra dettagli","agent.showSidebar":"Mostra pannello","agent.staged":"In attesa","agent.startAgent":"Avvia agente","agent.startingAgent":"Avvio dell'agente...","agent.startingAgentUploading":"Avvio dell'agente e caricamento dei file...","agent.startNewConversation":"Inizia nuova conversazione","agent.stepByStepPlan":"Piano passo per passo","agent.stop":"Ferma","agent.stopAgent":"Ferma l'agente","agent.submitSelection":"Invia selezione","agent.submitSelectionCount_one":"Invia selezione ({{count}})","agent.submitSelectionCount_many":"Invia selezione ({{count}})","agent.submitSelectionCount_other":"Invia selezione ({{count}})","agent.summary":"Riepilogo","agent.taskProgress":"Progresso attività","agent.toggleRightSidebar":"Alterna pannello laterale","agent.typeNewInstructions":"Scrivi il tuo messaggio per dare nuove istruzioni","agent.typeQuestionBelow":"Scrivi la tua domanda qui sotto e premi Invio o clicca {{buttonText}} per iniziare","agent.typeYourMessage":"Scrivi il tuo messaggio...","agent.typeYourResponse":"Scrivi la tua risposta...","agent.unableToOpenPrint":"Impossibile aprire l'anteprima di stampa","agent.unknownError":"Errore sconosciuto","agent.unknownTime":"Ora sconosciuta","agent.upload":"Carica","agent.uploadedFiles":"File caricati","agent.uploadFailed":"Caricamento fallito","agent.uploading":"Caricamento...","agent.uploads":"Caricamenti","agent.waitForFiles":"Attendi il completamento dell'elaborazione dei file","agent.waitForFilesProcessing":"Attendi che tutti i file siano elaborati prima di inviare","agent.waiting":"In attesa...","agent.waitingForAgentResponse":"In attesa della risposta dell'agente...","agent.workflowCancelled":"Flusso di lavoro annullato","agent.workflowRunIdCopied":"ID esecuzione workflow copiato","agent.working":"In lavorazione...","agent.workstreams":"Flussi di lavoro","agent.yes":"Sì","auth.continueWithEnterprise":"Continua con SSO aziendale","auth.continueWithGithub":"Continua con GitHub","auth.continueWithGoogle":"Continua con Google","auth.continueWithMicrosoft":"Continua con Microsoft","auth.enterEnterpriseEmail":"Inserisci la tua email aziendale","auth.error":"Errore: {{message}}","auth.firstTimeDetails":"Ti faremo solo un paio di domande e sarai pronto.","auth.firstTimeMessage":"Prima volta qui? Nessun problema, è gratis da provare!","auth.goBack":"Torna indietro","auth.invalidEmail":"Indirizzo email non valido","auth.logInOrSignUp":"Accedi o Registrati","auth.needToMakeChange":"Hai bisogno di apportare una modifica?","auth.or":"OPPURE","auth.privacyPolicy":"Informativa sulla privacy","auth.signInError":"Ci dispiace, non siamo riusciti a effettuare l'accesso.","auth.signInErrorContact":"Per favore riprova o contatta","auth.signInErrorPersists":"se il problema persiste.","auth.tenantNotFound":"Organizzazione non trovata","auth.termsOfService":"Termini di servizio","errors.failedToLoadTenantConfig":"Impossibile caricare la configurazione del tenant","errors.somethingWentWrong":"Spiacenti, qualcosa è andato storto...","errors.teamNotifiedLine1":"Il nostro team è stato avvisato e risolverà rapidamente il problema.","errors.teamNotifiedLine2":"Se desideri segnalare il problema o semplicemente contattarci, inviaci un'email a","filter.clearAll":"Cancella tutto","filter.filter":"Filtro","filter.filterBy":"Filtra per {{view}}","filter.filterPlaceholder":"Filtra...","filter.from":"Da:","filter.noAvailableFilters":"Nessun filtro disponibile","filter.noMatchingFilters":"Nessun filtro corrispondente","filter.noResultsFound":"Nessun risultato trovato.","filter.selectRange":"Seleziona intervallo","filter.to":"A:","form.filter":"Filtra...","layout.pageNotFound":"Pagina non trovata","layout.search":"Cerca","layout.searchPlaceholder":"Cerca...","login.accept":"Accetta","login.reject":"Rifiuta","login.reviewInvites":"Rivedi inviti","login.terminal.account":"Account","login.terminal.accountRequired":"L'account è obbligatorio","login.terminal.accountRequiredDesc":"Seleziona un account per autorizzare il client ad accedere ai server ComposablePrompts","login.terminal.authorizeClient":"Autorizza client","login.terminal.authPayloadCopied":"Dati di autenticazione copiati","login.terminal.authPayloadCopiedSuccess":"Puoi chiudere questa pagina. Il CLI dovrebbe aver ricevuto il token.","login.terminal.authPayloadCopiedWithError":"Puoi incollare i dati nel terminale. Nota: il CLI non ha ricevuto il token. Si è verificato un errore: {{error}}","login.terminal.browserPermissionNote":"Nota: se il browser chiede il permesso di accedere alla rete locale, consenti. Questo è necessario per inviare il token di autorizzazione al CLI. In caso contrario, dovrai copiare/incollare il token manualmente nel terminale.","login.terminal.chooseAccountProject":"Devi scegliere l'account e il progetto di destinazione per l'accesso del client.","login.terminal.clientAuthenticated":"Il client è autenticato. Puoi chiudere questa pagina.","login.terminal.clientWantsAuth":"Un'app client richiede l'autorizzazione per accedere ai server ComposablePrompts a tuo nome.","login.terminal.copyAuthPayload":"Copia i dati di autenticazione","login.terminal.envLocalDev":"Sviluppo locale","login.terminal.envProduction":"Produzione","login.terminal.envStaging":"Staging","login.terminal.errorAuthorizingClient":"Errore nell'autorizzazione del client","login.terminal.errorLoadingProjects":"Errore nel caricamento dei progetti","login.terminal.failedToGetToken":"Impossibile ottenere il token composable","login.terminal.failedToSendToken":"Impossibile inviare il token di autorizzazione al CLI","login.terminal.failedToSendTokenDesc":'Questo può accadere a causa dei controlli di sicurezza di Safari. L\'errore è "{{error}}"',"login.terminal.invalidRequest":"Richiesta non valida","login.terminal.invalidRequestDesc":"Questa pagina deve essere richiamata da un client terminale per autenticarsi sui server ComposablePrompts","login.terminal.profileName":"Nome profilo","login.terminal.profileNameNote":"Inserisci anche un nome profilo che verrà usato per salvare l'autorizzazione nella configurazione del client.","login.terminal.profileRequired":"Il profilo è obbligatorio","login.terminal.profileRequiredDesc":"Inserisci un nome profilo per salvare l'autorizzazione del client","login.terminal.project":"Progetto","login.terminal.projectRequired":"Il progetto è obbligatorio","login.terminal.projectRequiredDesc":"Seleziona un progetto per autorizzare il client ad accedere ai server ComposablePrompts","login.terminal.selectAccount":"Seleziona account","login.terminal.selectProject":"Seleziona progetto","mcpOAuth.authenticate":"Autenticare","mcpOAuth.authenticating":"Autenticazione in corso...","mcpOAuth.connect":"Connetti","mcpOAuth.connected":"Connesso","mcpOAuth.connecting":"Connessione in corso...","mcpOAuth.disconnect":"Disconnetti","mcpOAuth.notConnected":"Non connesso","misc.copiedToClipboard":"Copiato negli appunti","misc.copy":"Copia","misc.failedToCopy":"Copia fallita","misc.noData":"Nessun dato da visualizzare","misc.tableView":"Vista tabella","misc.thumbnailView":"Vista miniature","modal.cancel":"Annulla","modal.confirm":"Conferma","modal.delete.error":"Si è verificato un errore durante l'eliminazione dell'oggetto","modal.delete.failed":"Eliminazione fallita","modal.delete.succeeded":"Eliminazione riuscita","modal.save":"Salva","modal.saveChanges":"Salva modifiche","modal.saveVersion.createDescription":"Crea una nuova revisione con queste modifiche alle proprietà preservando l'originale.","modal.saveVersion.createNew":"Crea nuova versione","modal.saveVersion.createWithFileDescription":"Crea una nuova revisione con il file sostitutivo preservando l'originale.","modal.saveVersion.howToSave":"Come vuoi salvare queste modifiche?","modal.saveVersion.replaceFile":"Stai per sostituire il file di contenuto con:","modal.saveVersion.updateCurrent":"Aggiorna versione corrente","modal.saveVersion.updateDescription":"Modifica le proprietà direttamente nella revisione corrente.","modal.saveVersion.updateWithFileDescription":"Sostituisci il file di contenuto e modifica le proprietà direttamente nella revisione corrente.","modal.saveVersion.versionLabel":"Etichetta versione (Facoltativo)","modal.saveVersion.versionLabelDescription":"Etichetta facoltativa per la nuova versione.","modal.saveVersion.versionLabelPlaceholder":"es., v1.2, approvato, post-revisione","oauthProvider.authenticate":"Autenticati","oauthProvider.authenticating":"Autenticazione in corso...","oauthProvider.connected":"Connesso","oauthProvider.disconnect":"Disconnetti","pdf.close":"Chiudi","pdf.closeFullscreen":"Chiudi schermo intero","pdf.download":"Scarica","pdf.failedToLoadViewer":"Impossibile caricare il visualizzatore PDF","pdf.fetchingDocumentFailed":"Impossibile recuperare il documento","pdf.fitToWidth":"Adatta alla larghezza","pdf.fullscreen":"Schermo intero","pdf.instrumentedImages":"Immagini strumentate","pdf.nextPage":"Pagina successiva","pdf.noPdfAvailable":"Nessun PDF disponibile","pdf.originalImages":"Immagini originali","pdf.page":"Pagina","pdf.pageOf":"Pagina {{pageNumber}} / {{totalPages}}","pdf.previousPage":"Pagina precedente","pdf.zoomIn":"Ingrandisci","pdf.zoomOut":"Riduci","shell.accessDenied":"Accesso negato","shell.applicationNotRegistered":"Applicazione non registrata","shell.organization":"Organizzazione","shell.selectOrganization":"Seleziona organizzazione","shell.selectProject":"Seleziona progetto","signup.accountType":"Tipo di account","signup.activelyExploring":"Esplorazione attiva di LLM in un progetto","signup.alreadyUsing":"LLM già in produzione","signup.company":"Azienda","signup.companyDescription":"Per un'azienda o un'organizzazione.","signup.companyName":"Nome azienda","signup.companySize":"Dimensione azienda","signup.companyWebsite":"Sito web aziendale","signup.justTesting":"Solo test o valutazione di LLM","signup.migratingLLMs":"Migrazione a LLM diversi","signup.other":"Altro","signup.personal":"Personale","signup.personalDescription":"Per uso personale o per un piccolo team.","signup.pleaseEnterOrgName":"Inserisci un nome per l'organizzazione","signup.pleaseSelectAccountType":"Seleziona un tipo di account","signup.pleaseSelectCompanySize":"Seleziona una dimensione aziendale","signup.projectMaturity":"Maturità del progetto","signup.selectCompanySize":"Seleziona dimensione azienda","signup.selectProjectMaturity":"Seleziona maturità del progetto","signup.signUp":"Registrati","signup.size1001to5000":"1001-5000 dipendenti","signup.size101to1000":"101-1000 dipendenti","signup.size11to100":"11-100 dipendenti","signup.size1to10":"1-10 dipendenti","signup.size5000plus":"5000+ dipendenti","signup.welcomeMessage":"Benvenuto su Vertesia, {{name}} ({{email}}).\nRaccontaci un po' di te e sarai pronto per iniziare.\nNessuna carta di credito richiesta.","signup.wrongAccountGoBack":"Account sbagliato, torna indietro","store.actions.addToCollection":"Aggiungi alla collezione","store.actions.addToCollectionBody":"Aggiungi gli oggetti selezionati a una collezione esistente o creane una nuova.","store.actions.addToCollectionButton":"Aggiungi alla collezione","store.actions.addToCollectionDesc":"Aggiungi documenti a una collezione","store.actions.addToCollectionFailure":"Errore nell'aggiunta alla collezione","store.actions.addToCollectionFailureDesc":"Impossibile aggiungere gli oggetti selezionati alla collezione","store.actions.addToCollectionSuccess":"Aggiunta alla collezione riuscita","store.actions.addToCollectionSuccessDesc_one":"{{count}} oggetto aggiunto alla collezione","store.actions.addToCollectionSuccessDesc_many":"{{count}} oggetti aggiunti alla collezione","store.actions.addToCollectionSuccessDesc_other":"{{count}} oggetti aggiunti alla collezione","store.actions.addToCollectionTitle":"Aggiungi a una collezione","store.actions.areYouSure":"Sei sicuro?","store.actions.cannotRemoveNoCollection":"Impossibile rimuovere gli oggetti: nessuna collezione specificata","store.actions.changeContentType":"Cambia tipo di contenuto","store.actions.changeContentTypeDesc":"Cambia il tipo di contenuto dei documenti selezionati","store.actions.changeType":"Cambia tipo","store.actions.chooseExistingCollections":"Scegli tra le collezioni esistenti","store.actions.chooseWorkflowRule":"Scegli una regola di flusso di lavoro da avviare:","store.actions.confirmDeleteAll":"Sei sicuro di voler eliminare tutti gli oggetti selezionati? Questa azione non può essere annullata.","store.actions.confirmDeleteSelected":"Sei sicuro di voler eliminare gli oggetti selezionati?\nQuesta non è una rimozione dalle collezioni.","store.actions.createNew":"Crea nuovo","store.actions.delete":"Elimina","store.actions.deleteObjects":"Elimina oggetti","store.actions.deleteTheSelectedObjects":"Elimina gli oggetti selezionati","store.actions.errorChangingType":"Errore nel cambio del tipo","store.actions.errorDeletingObjects":"Errore nell'eliminazione degli oggetti","store.actions.errorExportProperties":"Errore nell'esportazione delle proprietà","store.actions.errorRemovingObjects":"Errore nella rimozione degli oggetti dalla collezione","store.actions.errorStartingWorkflow":"Errore nell'avvio del flusso di lavoro","store.actions.exportAllObjectProperties":"Esporta tutte le proprietà degli oggetti","store.actions.exportProperties":"Esporta proprietà","store.actions.noCollectionContext":"Nessun contesto di collezione","store.actions.noObjectsSelected":"Nessun oggetto selezionato","store.actions.pleaseSelectObjectsToDelete":"Seleziona gli oggetti da eliminare","store.actions.pleaseSelectObjectsToRemove":"Seleziona gli oggetti da rimuovere dalla collezione","store.actions.selectCollection":"Seleziona collezione","store.actions.startWorkflow":"Avvia flusso di lavoro","store.actions.startWorkflowByRule":"Avvia flusso di lavoro per regola","store.actions.startWorkflowDesc":"Avvia un flusso di lavoro sugli oggetti selezionati","store.actions.workflowStarted":"Flusso di lavoro avviato","store.allowedContentTypes":"Tipi di contenuto consentiti","store.allowedContentTypesOptionalDescription":"Seleziona facoltativamente quali tipi di contenuto possono essere aggiunti alla collezione. Se non impostato, tutti i tipi di contenuto sono consentiti.","store.allowedContentTypesSelectDescription":"Seleziona quali tipi di contenuto possono essere aggiunti alla collezione. Se non impostato, tutti i tipi di contenuto sono consentiti.","store.areYouSureDeleteCollection":"Sei sicuro di voler eliminare questa collezione? Questa azione non può essere annullata.","store.audioFormatRequired":"Formato MP3, M4A, OGG, WAV o WebM richiesto","store.automaticTypeDetection":"Rilevamento automatico del tipo","store.automaticTypeDetectionDescription":"Vertesia analizzerà il contenuto e selezionerà il tipo più appropriato. Consigliato per la maggior parte dei caricamenti e garantisce un'elaborazione ottimale.","store.cancelEdit":"Annulla","store.chooseAFormat":"Scegli un formato","store.chooseContentType":"Scegli un tipo di contenuto...","store.chooseContentTypes":"Scegli tipi di contenuto...","store.chooseWhatToExport":"Scegli cosa esportare","store.clearSelection":"Cancella selezione","store.close":"Chiudi","store.collectionCreated":"Collezione creata","store.collectionDeleted":"Collezione eliminata","store.collectionFetchFailed":"Recupero della collezione fallito","store.collectionPropertiesUpdated":"Proprietà della collezione aggiornate","store.collectionsSelected_one":"{{count}} collezione selezionata","store.collectionsSelected_many":"{{count}} collezioni selezionate","store.collectionsSelected_other":"{{count}} collezioni selezionate","store.collectionUpdated":"Collezione aggiornata","store.collectionUpdatedSuccess":"La collezione è stata aggiornata con successo","store.configuration":"Configurazione","store.confirmSelection":"Conferma selezione","store.contentCopied":"{{type}} copiato","store.contentExported":"Contenuto esportato","store.contentType":"Tipo di contenuto","store.convertingToPdf":"Conversione in PDF...","store.copyFailed":"Copia fallita","store.createACollection":"Crea una collezione","store.createCollection":"Crea collezione","store.created":"Creato","store.createdBy":"Creato da","store.createType":"Crea tipo","store.deleteCollection":"Elimina collezione","store.documentExported":"Documento esportato","store.documentInformation":"Informazioni documento","store.documentListRefreshed":"Lista documenti aggiornata","store.documentListRefreshedDesc":"La lista dei documenti è stata aggiornata con i file caricati.","store.documentPreview":"Anteprima documento","store.downloadFailed":"Download fallito","store.dynamicCollection":"Collezione dinamica","store.dynamicCollectionDescription":"Recupera dinamicamente i contenuti per la collezione basandoti su una query. Se non abilitato, i contenuti devono essere aggiunti da utenti o agenti.","store.editingGenericDocument":"Modifica proprietà per documento generico","store.editJson":"Modifica JSON","store.editProperties":"Modifica proprietà","store.editSchema":"Modifica schema","store.editText":"Modifica testo","store.embeddings":"Embedding","store.enableSyncMemberHeads":"Abilita la sincronizzazione degli head dei membri","store.error":"Errore","store.errorCheckingDuplicates":"Si è verificato un errore durante il controllo dei file duplicati","store.errorCreatingType":"Errore nella creazione del tipo","store.errorInUploadProcessingCheck":"Errore nel controllo dell'elaborazione del caricamento","store.errorProcessingFiles":"Errore nell'elaborazione dei file","store.errorSavingText":"Errore nel salvataggio del testo","store.errorSavingTextDefault":"Si è verificato un errore durante il salvataggio del contenuto testuale.","store.errorUpdatingProperties":"Errore nell'aggiornamento delle proprietà","store.errorUpdatingPropertiesDefault":"Si è verificato un errore durante l'aggiornamento delle proprietà.","store.exportFailed":"Esportazione fallita","store.exportInProgress":"ESPORTAZIONE IN CORSO","store.failedToConvertToPdf":"Impossibile convertire in PDF","store.failedToCopy":"Impossibile copiare {{type}} negli appunti","store.failedToCreateCollection":"Impossibile creare la collezione","store.failedToDeleteCollection":"Impossibile eliminare la collezione","store.failedToDownloadFile":"Impossibile scaricare il file","store.failedToDownloadPdf":"Impossibile scaricare il file PDF","store.failedToExportContent":"Impossibile esportare il contenuto","store.failedToExportDocument":"Impossibile esportare il documento","store.failedToFetchRoleMappings":"Impossibile recuperare le mappature dei ruoli","store.failedToFetchTypes":"Impossibile recuperare gli ObjectTypes","store.failedToFetchWorkflows":"Impossibile recuperare i flussi di lavoro","store.failedToGetDownloadUrl":"Impossibile ottenere l'URL di download","store.failedToLoadDocument":"Impossibile caricare il documento","store.failedToLoadType":"Impossibile caricare il tipo","store.failedToUpdateCollection":"Impossibile aggiornare la collezione","store.failedToUpdateCollectionProperties":"Impossibile aggiornare le proprietà della collezione","store.failedToUpdateSchema":"Impossibile aggiornare lo schema","store.failedToUpdateSharedProperties":"Impossibile aggiornare le proprietà condivise","store.failedToUpdateSkipHeadSync":"Impossibile aggiornare l'impostazione di sincronizzazione head","store.failedToUpdateTableLayout":"Impossibile aggiornare il layout della tabella","store.filesAnalyzedTitle":"File analizzati","store.filesReadyToProcess":"File pronti per l'elaborazione","store.filterByName":"Filtra per nome","store.fullText":"Testo completo","store.fullView":"Vista completa","store.getStartedCollections":"Inizia creando una nuova collezione.","store.getStartedTypes":"Inizia creando un nuovo tipo.","store.id":"ID","store.invalidJson":"JSON non valido","store.invalidJsonSchema":"Schema JSON non valido","store.invalidQueryJson":"Query JSON non valida","store.invalidTableLayout":"Layout tabella non valido","store.isChunkable":"È suddivisibile","store.limit":"Limite","store.loadingDocument":"Caricamento documento...","store.loadingProcessingStatus":"Caricamento stato di elaborazione...","store.na":"N/D","store.name":"Nome","store.newCollections":"Nuove collezioni","store.newVersionCreated":"Nuova versione creata","store.newVersionCreatedDesc":"Una nuova versione con proprietà aggiornate è stata creata.","store.noAudioRendition":"Nessuna riproduzione audio compatibile con il web disponibile","store.noCollections":"Nessuna collezione","store.noCollectionsAvailable":"Nessuna collezione disponibile.","store.noCollectionsFound":"Nessuna collezione trovata.","store.noFilesSelected":"Nessun file selezionato","store.none":"Nessuno","store.noObjectsDragAndDrop":"Nessun oggetto. Trascina e rilascia documenti o immagini qui per creare oggetti di contenuto.","store.noPreviewAvailable":"Nessuna anteprima disponibile per questo tipo di documento.","store.noProjectSelected":"Nessun progetto selezionato","store.noPropertiesAvailable":"Nessuna proprietà disponibile per questo documento.","store.noPropertiesDefined":"Nessuna proprietà definita","store.noTranscriptAvailable":"Nessuna trascrizione disponibile","store.noType":"Nessun tipo","store.noValidFilesSelected":"Nessun file valido selezionato","store.noVideoRendition":"Nessuna riproduzione video compatibile con il web disponibile","store.openFullDocument":"Apri documento completo","store.openFullDocumentView":"Apri vista documento completo","store.optional":"(Facoltativo)","store.pdfConversionFailed":"Conversione PDF fallita","store.pdfPreviewFullView":"L'anteprima del documento PDF è disponibile nella vista completa.","store.pleaseFixJsonSyntax":"Correggi gli errori di sintassi JSON prima di salvare.","store.pleaseProvideName":"Inserisci un nome per la collezione","store.pleaseSelectValidFiles":"Seleziona file con contenuto valido.","store.pleaseWait":"ATTENDERE","store.preview":"Anteprima","store.previewProperties":"Anteprima proprietà","store.processingFailedFor":"Elaborazione fallita per {{name}}","store.processingFiles":"Elaborazione file","store.properties":"Proprietà","store.propertiesUpdated":"Proprietà aggiornate","store.propertiesUpdatedDesc":"Le proprietà dell'oggetto sono state aggiornate con successo.","store.query":"Query","store.queryDescription":"Definisci la query per recuperare dinamicamente i contenuti della collezione.","store.refresh":"Aggiorna","store.renderingDocument":"Rendering del documento...","store.saveChanges":"Salva modifiche","store.saveText":"Salva","store.schemaEditor":"Editor schema","store.schemaUpdated":"Schema aggiornato","store.schemaUpdatedSuccess":"Lo schema è stato aggiornato con successo","store.search":"Cerca","store.searchCollections":"Cerca collezioni","store.searchFailed":"Ricerca fallita","store.searching":"Ricerca...","store.searchPlaceholder":"Scrivi cosa stai cercando o seleziona un filtro","store.searchTypes":"Cerca tipi","store.selectACollection":"Seleziona una collezione","store.selectContentType":"Seleziona tipo di contenuto","store.selectContentTypeAuto":"Seleziona un tipo di contenuto o lascia vuoto per il rilevamento automatico","store.selectContentTypeLabel":"Seleziona un tipo di contenuto","store.selectPropertiesToShare":"Seleziona le proprietà da condividere","store.semanticChunking":"Suddivisione semantica","store.semanticSearch":"Ricerca semantica","store.semanticSearchSettings":"Impostazioni ricerca semantica","store.sharedProperties":"Proprietà condivise","store.sharedPropertiesDescription":"Aggiungi proprietà da condividere tra tutti i membri della collezione. Questa funzione richiede l'abilitazione della sincronizzazione delle proprietà condivise nel progetto.","store.showingFirst128K":"Mostra solo i primi 128K caratteri","store.size":"Dimensione","store.staticCollection":"Collezione statica","store.strictMode":"Modalità rigorosa","store.successfullyCopied":"{{type}} copiato con successo negli appunti","store.successfullyExportedTo":"Esportato con successo in {{format}}","store.syncMemberHeads":"Sincronizza head dei membri","store.syncMemberHeadsDescription":"Quando viene creata una nuova versione HEAD di un membro, la collezione verrà aggiornata per puntare al nuovo HEAD.","store.tableLayout":"Layout tabella","store.tableLayoutDescription":"Definisci un layout personalizzato per la visualizzazione della collezione nelle tabelle.","store.tableLayoutUpdated":"Layout tabella aggiornato","store.tableLayoutUpdatedDesc":"Il layout della tabella è stato aggiornato con successo","store.textConflict":"Il documento è stato modificato altrove. Aggiorna e riprova.","store.textSaved":"Contenuto testuale salvato","store.typeCreated":"Tipo creato","store.typeDescription":"Seleziona facoltativamente un tipo di contenuto per assegnare proprietà e dati personalizzati alla collezione.","store.typeSelectDescription":"Seleziona un tipo di contenuto per assegnare proprietà e dati personalizzati alla collezione.","store.unknown":"Sconosciuto","store.unsavedChanges":"Modifiche non salvate","store.updated":"Aggiornato","store.updatedAt":"Aggiornato il","store.updatedBy":"Aggiornato da","store.updatedSharedProperties":"Proprietà condivise aggiornate","store.updatedSkipHeadSync":"Impostazione sincronizzazione head aggiornata","store.upload":"Carica","store.uploadComplete":"Caricamento completato","store.uploadIssues":"Problemi di caricamento","store.validationFailed":"Validazione fallita","store.videoFormatRequired":"Formato MP4 o WebM richiesto","store.viewAsPdf":"Visualizza come PDF","store.viewAudio":"Visualizza audio","store.viewImage":"Visualizza immagine","store.viewingNewVersion":"Visualizzazione nuova versione","store.viewingNewVersionDefault":"Ora visualizzi la nuova versione","store.viewingVersionLabel":"Ora visualizzi la versione '{{label}}'","store.viewInJsonFormat":"Visualizza in formato JSON","store.viewPdf":"Visualizza PDF","store.viewText":"Visualizza testo","store.viewTranscript":"Visualizza trascrizione","store.viewVideo":"Visualizza video","theme.dark":"Scuro","theme.label":"Tema","theme.light":"Chiaro","theme.system":"Sistema","type.description":"Descrizione","type.name":"Nome","type.nameRequired":"Il nome è obbligatorio","type.type":"Tipo","upload.allFilesExist_one":"{{count}} file esiste già","upload.allFilesExist_many":"{{count}} file esistono già","upload.allFilesExist_other":"{{count}} file esistono già","upload.analyzingFiles":"Analisi dei file...","upload.checkingForDuplicates":"Controllo duplicati e aggiornamenti","upload.collectionLabel":"Collezione:","upload.contentTypeTooltip":"Seleziona un tipo di contenuto da applicare ai file caricati. Se lasciato vuoto, Vertesia rileverà automaticamente il tipo in base al contenuto del file.","upload.continue":"Continua","upload.dragAndDrop":"Trascina e rilascia i file qui o clicca per selezionare","upload.errorAnalyzingFiles":"Si è verificato un errore durante l'analisi dei file","upload.failedToUpload":"Caricamento fallito","upload.fileAnalysisResults":"Risultati dell'analisi dei file","upload.filesAnalyzed":"File analizzati","upload.filesProcessed_one":"{{count}} file elaborato","upload.filesProcessed_many":"{{count}} file elaborati","upload.filesProcessed_other":"{{count}} file elaborati","upload.filesReadyToProcess_one":"{{count}} file è pronto per l'elaborazione","upload.filesReadyToProcess_many":"","upload.filesReadyToProcess_other":"{{count}} file sono pronti per l'elaborazione","upload.filesToSkip_one":"{{count}} file è già nel sistema e verrà saltato.","upload.filesToSkip_many":"","upload.filesToSkip_other":"{{count}} file sono già nel sistema e verranno saltati.","upload.folderLabel":"Cartella:","upload.inCollection":" nella collezione '{{collection}}'","upload.inFolder":" nella cartella '{{location}}'","upload.new":"Nuovo","upload.noFilesToProcess":"Nessun file da elaborare.","upload.noItems":"Nessun elemento da visualizzare","upload.preparingFiles_one":"Preparazione al caricamento di {{count}} file...","upload.preparingFiles_many":"Preparazione al caricamento di {{count}} file...","upload.preparingFiles_other":"Preparazione al caricamento di {{count}} file...","upload.preparingFolder_one":"Preparazione al caricamento di 1 cartella con {{fileCount}} file...","upload.preparingFolder_many":"Preparazione al caricamento di {{folderCount}} cartelle con {{fileCount}} file...","upload.preparingFolder_other":"Preparazione al caricamento di {{folderCount}} cartelle con {{fileCount}} file...","upload.processedCount":"{{processed}}/{{total}} file elaborati...","upload.processingFilesAction":"Elaborazione file ({{action}})","upload.selectFiles":"Seleziona file","upload.selectFolder":"Seleziona cartella","upload.skip":"Salta","upload.skippedAlreadyExisted":"Saltato (già esistente)","upload.successfullyUpdated":"Aggiornato con successo","upload.successfullyUploaded":"Caricato con successo","upload.update":"Aggiorna","upload.uploadComplete":"Caricamento completato","upload.uploadFiles":"Carica file","upload.uploadingFiles":"Caricamento file","upload.uploadLocation":"Posizione di caricamento:","upload.uploadMore":"Carica altri","upload.uploadProcessInterrupted":"Processo di caricamento interrotto","upload.useAutoDetection":"Usa rilevamento automatico del tipo","upload.useTypeName":"Usa {{typeName}}","user.account":"Account:","user.agentOnBehalfOf":"Agente per conto di","user.agentOnBehalfOfApiKey":"Agente per conto di chiave API","user.allProjectMembers":"Tutti i membri del progetto","user.allProjectMembersDescription":"Tutti i membri di questo progetto hanno questa autorizzazione.","user.appVersion":"Versione app","user.environment":"Ambiente","user.failedToFetchApiKey":"Impossibile recuperare la chiave API","user.failedToFetchGroup":"Impossibile recuperare il gruppo","user.failedToFetchUser":"Impossibile recuperare l'utente","user.groupId":"ID gruppo: {{id}}","user.key":"Chiave:","user.organizationId":"ID organizzazione","user.organizationRoles":"Ruoli organizzazione","user.privateKey":"Chiave privata","user.project":"Progetto:","user.projectId":"ID progetto","user.projectRoles":"Ruoli progetto","user.schedule":"Pianificazione {{title}}","user.sdkVersion":"Versione SDK","user.server":"Server","user.serviceAccount":"Account di servizio","user.serviceAccountDescription":"Questo utente è utilizzato da robot come i worker dei flussi di lavoro.","user.store":"Archivio","user.systemUser":"Utente di sistema","user.systemUserDescription":"L'utente di sistema viene utilizzato per inizializzare gli oggetti integrati.","user.tenantId":"ID tenant","user.unknown":"Sconosciuto","user.unknownUser":"Utente sconosciuto","user.unknownUserDescription":"Le informazioni dell'utente non sono disponibili.","user.unnamedGroup":"Gruppo senza nome","user.user":"Utente","user.userId":"ID utente","widgets.schema.editDescription":"Modifica descrizione","widgets.schema.invalidPropertyDeclaration":"Dichiarazione di proprietà non valida"}},ja:{[Un]:{"agent.activeWorkstreams_one":"エージェントは{{count}}つのアクティブなワークストリームを実行中","agent.activeWorkstreams_other":"エージェントは{{count}}つのアクティブなワークストリームを実行中","agent.agentConversation":"エージェント会話","agent.agentInterrupted":"エージェントが中断されました","agent.agentPlan":"エージェントプラン","agent.agentProcessing":"エージェントが処理中です。完了後に続行できます...","agent.agentRunIdCopied":"エージェント実行IDをコピーしました","agent.agentStarted":"エージェントが開始しました","agent.agentWorking":"エージェントが作業中... (Esc Escで停止)","agent.agentWorkingStop":"エージェントが作業中... Escを2回押すか停止をクリックして中断","agent.allMessages":"すべてのメッセージ","agent.artifacts":"アーティファクト","agent.askAnything":"何でも聞いてください... (ファイルをドロップまたは貼り付け)","agent.batch":"バッチ","agent.canceled":"","agent.cancelWorkflow":"ワークフローをキャンセル","agent.clickToEnlarge":"クリックして拡大","agent.cloneConversation":"会話を複製","agent.close":"閉じる","agent.closeFullscreen":"フルスクリーンを閉じる","agent.completed":"完了","agent.continueConversation":"会話を続ける","agent.conversationCloned":"会話が複製されました","agent.conversationContinued":"会話が続行されました","agent.copied":"コピー済み","agent.copiedAllToolCalls":"すべてのツール呼び出しをクリップボードにコピーしました","agent.copiedBatchDetails":"バッチの詳細をクリップボードにコピーしました","agent.copiedToClipboard":"クリップボードにコピーしました","agent.copy":"コピー","agent.copyAgentRunId":"エージェント実行IDをコピー","agent.copyAllToolCalls":"すべてのツール呼び出しをコピー","agent.copyBatchDetails":"バッチの詳細をコピー","agent.copyMessage":"メッセージをコピー","agent.copyRunId":"実行 ID をコピー","agent.copyToClipboard":"クリップボードにコピー","agent.copyWorkflowRunId":"ワークフロー実行IDをコピー","agent.dashboard":"ダッシュボード","agent.details":"詳細","agent.document":"ドキュメント","agent.documentAttachments":"添付ドキュメント","agent.documentAttachmentsDescription":"ストアからのドキュメントがこのメッセージに添付されています。エージェントはいつでもIDで再取得したり、再添付してコンテンツを直接含めることができます。","agent.documents":"ドキュメント","agent.download":"ダウンロード","agent.downloadConversation":"会話をダウンロード","agent.dropFilesToUpload":"ファイルをドロップしてアップロード","agent.elapsed":"{{seconds}}秒経過","agent.enlargedView":"拡大表示","agent.enterMessage":"メッセージを入力して会話を開始","agent.enterToSend":"Enterで送信 / Shift+Enterで改行","agent.error":"エラー","agent.errorStarting":"ワークフローの開始エラー","agent.exit":"終了","agent.exitFullscreen":"フルスクリーンを終了","agent.export":"エクスポート","agent.exportAsPdf":"PDFとしてエクスポート","agent.exportAsPng":"PNGとしてエクスポート","agent.exportAsWord":"Wordとしてエクスポート","agent.exporting":"エクスポート中...","agent.exportMessage":"メッセージをエクスポート","agent.failedToCancelWorkflow":"ワークフローのキャンセルに失敗しました","agent.failedToCloneConversation":"会話の複製に失敗しました","agent.failedToContinueConversation":"会話の続行に失敗しました","agent.failedToDownload":"会話のダウンロードに失敗しました","agent.failedToInterrupt":"中断に失敗しました","agent.failedToLoadDocument":"ドキュメントの読み込みに失敗しました","agent.failedToSend":"メッセージの送信に失敗しました","agent.filesProcessing":"ファイルを処理中","agent.filesStagedCount_one":"{{count}}個のファイルがステージ済み - 会話開始時にアップロードされます","agent.filesStagedCount_other":"{{count}}個のファイルがステージ済み - 会話開始時にアップロードされます","agent.filesUploadedDescription":"この会話にアップロードされたファイルは常に利用可能です。エージェントはいつでもアクセスできます。","agent.fullscreen":"フルスクリーン","agent.hideDetails":"詳細を非表示","agent.hideSidebar":"サイドバーを非表示","agent.hideThinkingDetails":"思考の詳細を非表示","agent.inProgress":"進行中","agent.linkObject":"オブジェクトをリンク","agent.loadingArtifacts":"アーティファクトを読み込み中...","agent.loadingDocument":"ドキュメントを読み込み中...","agent.main":"メイン","agent.mainWorkstream":"メインワークストリーム","agent.moreActions":"その他のアクション","agent.newerPlan":"新しいプラン","agent.no":"いいえ","agent.noActiveWorkstreams":"アクティブなワークストリームなし","agent.noAgentRunning":"現在実行中のエージェントはありません","agent.noArtifactsYet":"アーティファクトはまだありません","agent.noContentAvailable":"利用可能なコンテンツがありません","agent.noContentToExport":"エクスポートするコンテンツがありません","agent.noConversationContent":"エクスポートできる会話内容がありません","agent.noDocumentsOpen":"開いているドキュメントなし","agent.noFilesUploadedYet":"アップロードされたファイルなし","agent.noMessagesInWorkstream":"このワークストリームにはまだメッセージがありません...","agent.noPlanAvailable":"利用可能なプランなし","agent.noPlanDetected":"まだプランが検出されていません","agent.olderPlan":"古いプラン","agent.openDocument":"ドキュメントを開く","agent.openInNewTab":"新しいタブで開く","agent.payload":"ペイロード","agent.pdfExportFailed":"PDFエクスポートに失敗しました","agent.pdfExportReady":"PDFエクスポートの準備ができました","agent.pending":"保留中","agent.plan":"プラン","agent.planProgress":"プランの進捗","agent.plansWillAppear":"エージェントがプランを作成するとここに表示されます","agent.printDialogDescription":"ブラウザの印刷ダイアログを使用してPDFとして保存してください","agent.processing":"処理中...","agent.ready":"準備完了","agent.refresh":"更新","agent.remaining":"残り{{seconds}}秒","agent.retry":"再試行","agent.runIdCopied":"実行 ID をコピーしました","agent.searchDocuments":"ドキュメントを検索","agent.selectInteraction":"インタラクションを選択して開始をクリックしてエージェントを起動","agent.send":"送信","agent.showAllMessages":"すべてのメッセージを表示","agent.showDetails":"詳細を表示","agent.showSidebar":"サイドバーを表示","agent.staged":"ステージ済み","agent.startAgent":"エージェントを開始","agent.startingAgent":"エージェントを起動中...","agent.startingAgentUploading":"エージェントを起動してファイルをアップロード中...","agent.startNewConversation":"新しい会話を開始","agent.stepByStepPlan":"ステップバイステッププラン","agent.stop":"停止","agent.stopAgent":"エージェントを停止","agent.submitSelection":"選択を送信","agent.submitSelectionCount_one":"選択を送信({{count}})","agent.submitSelectionCount_other":"選択を送信({{count}})","agent.summary":"概要","agent.taskProgress":"タスクの進捗","agent.toggleRightSidebar":"右サイドバーの切り替え","agent.typeNewInstructions":"新しい指示を入力してください","agent.typeQuestionBelow":"下に質問を入力してEnterを押すか{{buttonText}}をクリックして開始","agent.typeYourMessage":"メッセージを入力...","agent.typeYourResponse":"回答を入力...","agent.unableToOpenPrint":"印刷プレビューを開けません","agent.unknownError":"不明なエラー","agent.unknownTime":"不明な時刻","agent.upload":"アップロード","agent.uploadedFiles":"アップロードされたファイル","agent.uploadFailed":"アップロード失敗","agent.uploading":"アップロード中...","agent.uploads":"アップロード","agent.waitForFiles":"ファイルの処理完了を待ってください","agent.waitForFilesProcessing":"送信前にすべてのファイルの処理が完了するまでお待ちください","agent.waiting":"待機中...","agent.waitingForAgentResponse":"エージェントの応答を待っています...","agent.workflowCancelled":"ワークフローがキャンセルされました","agent.workflowRunIdCopied":"ワークフロー実行IDをコピーしました","agent.working":"作業中...","agent.workstreams":"ワークストリーム","agent.yes":"はい","auth.continueWithEnterprise":"エンタープライズSSOで続ける","auth.continueWithGithub":"GitHubで続ける","auth.continueWithGoogle":"Googleで続ける","auth.continueWithMicrosoft":"Microsoftで続ける","auth.enterEnterpriseEmail":"企業メールアドレスを入力","auth.error":"エラー:{{message}}","auth.firstTimeDetails":"いくつかの質問にお答えいただくだけで、すぐに始められます。","auth.firstTimeMessage":"初めてですか?問題ありません、無料でお試しいただけます!","auth.goBack":"戻る","auth.invalidEmail":"無効なメールアドレス","auth.logInOrSignUp":"ログインまたはサインアップ","auth.needToMakeChange":"変更が必要ですか?","auth.or":"または","auth.privacyPolicy":"プライバシーポリシー","auth.signInError":"申し訳ありませんが、サインインできませんでした。","auth.signInErrorContact":"もう一度お試しいただくか、お問い合わせください","auth.signInErrorPersists":"問題が続く場合。","auth.tenantNotFound":"テナントが見つかりません","auth.termsOfService":"利用規約","errors.failedToLoadTenantConfig":"テナント設定の読み込みに失敗しました","errors.somethingWentWrong":"申し訳ありません、問題が発生しました...","errors.teamNotifiedLine1":"チームに通知され、迅速に解決に取り組みます。","errors.teamNotifiedLine2":"問題をエスカレーションしたい場合や、お問い合わせは以下のメールアドレスまでご連絡ください:","filter.clearAll":"すべてクリア","filter.filter":"フィルター","filter.filterBy":"{{view}}でフィルター","filter.filterPlaceholder":"フィルター...","filter.from":"開始:","filter.noAvailableFilters":"利用可能なフィルターがありません","filter.noMatchingFilters":"一致するフィルターがありません","filter.noResultsFound":"結果が見つかりません。","filter.selectRange":"範囲を選択","filter.to":"終了:","form.filter":"フィルター...","layout.pageNotFound":"ページが見つかりません","layout.search":"検索","layout.searchPlaceholder":"検索...","login.accept":"承認","login.reject":"拒否","login.reviewInvites":"招待を確認","login.terminal.account":"アカウント","login.terminal.accountRequired":"アカウントは必須です","login.terminal.accountRequiredDesc":"ComposablePromptsサーバーへのアクセスをクライアントに許可するアカウントを選択してください","login.terminal.authorizeClient":"クライアントを承認","login.terminal.authPayloadCopied":"認証情報がコピーされました","login.terminal.authPayloadCopiedSuccess":"このページを閉じることができます。CLIがトークンを受信したはずです。","login.terminal.authPayloadCopiedWithError":"認証情報をターミナルに貼り付けることができます。注意:CLIがトークンを受信しませんでした。エラーが発生しました:{{error}}","login.terminal.browserPermissionNote":"注意:ブラウザがローカルネットワークへのアクセス許可を求めた場合は、許可してください。これはCLIツールに認証トークンを送り返すために必要です。許可しない場合は、ターミナルにトークンを手動でコピー/ペーストする必要があります。","login.terminal.chooseAccountProject":"クライアントがアクセスする対象のアカウントとプロジェクトを選択する必要があります。","login.terminal.clientAuthenticated":"クライアントが認証されました。このページを閉じることができます。","login.terminal.clientWantsAuth":"クライアントアプリがあなたの名前でComposablePromptsサーバーへのアクセスを許可することを要求しています。","login.terminal.copyAuthPayload":"認証情報をコピー","login.terminal.envLocalDev":"ローカル開発","login.terminal.envProduction":"本番環境","login.terminal.envStaging":"ステージング","login.terminal.errorAuthorizingClient":"クライアントの承認エラー","login.terminal.errorLoadingProjects":"プロジェクトの読み込みエラー","login.terminal.failedToGetToken":"Composableトークンの取得に失敗しました","login.terminal.failedToSendToken":"CLIツールへの認証トークンの送信に失敗しました","login.terminal.failedToSendTokenDesc":'これはSafariのセキュリティチェックが原因の可能性があります。エラーは"{{error}}"です',"login.terminal.invalidRequest":"無効なリクエスト","login.terminal.invalidRequestDesc":"このページはComposablePromptsサーバーへの認証のためにターミナルクライアントから呼び出される必要があります","login.terminal.profileName":"プロファイル名","login.terminal.profileNameNote":"また、クライアント設定に認証を保存するためのプロファイル名を入力してください。","login.terminal.profileRequired":"プロファイルは必須です","login.terminal.profileRequiredDesc":"クライアント認証を保存するためのプロファイル名を入力してください","login.terminal.project":"プロジェクト","login.terminal.projectRequired":"プロジェクトは必須です","login.terminal.projectRequiredDesc":"ComposablePromptsサーバーへのアクセスをクライアントに許可するプロジェクトを選択してください","login.terminal.selectAccount":"アカウントを選択","login.terminal.selectProject":"プロジェクトを選択","mcpOAuth.authenticate":"認証","mcpOAuth.authenticating":"認証中...","mcpOAuth.connect":"接続","mcpOAuth.connected":"接続済み","mcpOAuth.connecting":"接続中...","mcpOAuth.disconnect":"切断","mcpOAuth.notConnected":"未接続","misc.copiedToClipboard":"クリップボードにコピーしました","misc.copy":"コピー","misc.failedToCopy":"コピーに失敗しました","misc.noData":"表示するデータがありません","misc.tableView":"テーブル表示","misc.thumbnailView":"サムネイル表示","modal.cancel":"キャンセル","modal.confirm":"確認","modal.delete.error":"オブジェクトの削除中にエラーが発生しました","modal.delete.failed":"削除に失敗しました","modal.delete.succeeded":"削除に成功しました","modal.save":"保存","modal.saveChanges":"変更を保存","modal.saveVersion.createDescription":"これらのプロパティ変更で新しいリビジョンを作成し、元のファイルを保持します。","modal.saveVersion.createNew":"新しいバージョンを作成","modal.saveVersion.createWithFileDescription":"置換ファイルで新しいリビジョンを作成し、元のファイルを保持します。","modal.saveVersion.howToSave":"これらの変更をどのように保存しますか?","modal.saveVersion.replaceFile":"コンテンツファイルを次のものに置き換えようとしています:","modal.saveVersion.updateCurrent":"現在のバージョンを更新","modal.saveVersion.updateDescription":"現在のリビジョンで直接プロパティを変更します。","modal.saveVersion.updateWithFileDescription":"コンテンツファイルを置き換え、現在のリビジョンで直接プロパティを変更します。","modal.saveVersion.versionLabel":"バージョンラベル(任意)","modal.saveVersion.versionLabelDescription":"新しいバージョンの任意のラベル。","modal.saveVersion.versionLabelPlaceholder":"例: v1.2, 承認済み, レビュー後","oauthProvider.authenticate":"認証","oauthProvider.authenticating":"認証中...","oauthProvider.connected":"接続済み","oauthProvider.disconnect":"切断","pdf.close":"閉じる","pdf.closeFullscreen":"フルスクリーンを閉じる","pdf.download":"ダウンロード","pdf.failedToLoadViewer":"PDFビューアの読み込みに失敗しました","pdf.fetchingDocumentFailed":"ドキュメントの取得に失敗しました","pdf.fitToWidth":"幅に合わせる","pdf.fullscreen":"フルスクリーン","pdf.instrumentedImages":"注釈付き画像","pdf.nextPage":"次のページ","pdf.noPdfAvailable":"PDFがありません","pdf.originalImages":"オリジナル画像","pdf.page":"ページ","pdf.pageOf":"ページ {{pageNumber}} / {{totalPages}}","pdf.previousPage":"前のページ","pdf.zoomIn":"ズームイン","pdf.zoomOut":"ズームアウト","shell.accessDenied":"アクセスが拒否されました","shell.applicationNotRegistered":"アプリケーションが登録されていません","shell.organization":"組織","shell.selectOrganization":"組織を選択","shell.selectProject":"プロジェクトを選択","signup.accountType":"アカウントタイプ","signup.activelyExploring":"LLMプロジェクトを積極的に検討中","signup.alreadyUsing":"本番環境でLLMを使用中","signup.company":"企業","signup.companyDescription":"企業または組織向け。","signup.companyName":"会社名","signup.companySize":"会社規模","signup.companyWebsite":"会社ウェブサイト","signup.justTesting":"LLMのテストまたは評価中","signup.migratingLLMs":"別のLLMへ移行中","signup.other":"その他","signup.personal":"個人","signup.personalDescription":"個人利用または小規模チーム向け。","signup.pleaseEnterOrgName":"組織名を入力してください","signup.pleaseSelectAccountType":"アカウントタイプを選択してください","signup.pleaseSelectCompanySize":"会社規模を選択してください","signup.projectMaturity":"プロジェクト成熟度","signup.selectCompanySize":"会社規模を選択","signup.selectProjectMaturity":"プロジェクト成熟度を選択","signup.signUp":"サインアップ","signup.size1001to5000":"1001〜5000名","signup.size101to1000":"101〜1000名","signup.size11to100":"11〜100名","signup.size1to10":"1〜10名","signup.size5000plus":"5000名以上","signup.welcomeMessage":"Vertesiaへようこそ、{{name}}({{email}})。\n簡単な質問にお答えいただければ、すぐに始められます。\nクレジットカードは不要です。","signup.wrongAccountGoBack":"アカウントが違います、戻る","store.actions.addToCollection":"コレクションに追加","store.actions.addToCollectionBody":"選択したオブジェクトを既存のコレクションに追加するか、新しいコレクションを作成します。","store.actions.addToCollectionButton":"コレクションに追加","store.actions.addToCollectionDesc":"ドキュメントをコレクションに追加","store.actions.addToCollectionFailure":"コレクションへの追加に失敗","store.actions.addToCollectionFailureDesc":"選択したオブジェクトをコレクションに追加できませんでした","store.actions.addToCollectionSuccess":"コレクションへの追加に成功","store.actions.addToCollectionSuccessDesc_one":"{{count}} 件のオブジェクトをコレクションに追加しました","store.actions.addToCollectionSuccessDesc_other":"{{count}} 件のオブジェクトをコレクションに追加しました","store.actions.addToCollectionTitle":"コレクションに追加","store.actions.areYouSure":"よろしいですか?","store.actions.cannotRemoveNoCollection":"オブジェクトを削除できません:コレクションが指定されていません","store.actions.changeContentType":"コンテンツタイプを変更","store.actions.changeContentTypeDesc":"選択したドキュメントのコンテンツタイプを変更","store.actions.changeType":"タイプを変更","store.actions.chooseExistingCollections":"既存のコレクションから選択","store.actions.chooseWorkflowRule":"開始するワークフロールールを選択:","store.actions.confirmDeleteAll":"選択したすべてのオブジェクトを削除してもよろしいですか?この操作は取り消せません。","store.actions.confirmDeleteSelected":"選択したオブジェクトを削除してもよろしいですか?\nこれはコレクションからの削除ではありません。","store.actions.createNew":"新規作成","store.actions.delete":"削除","store.actions.deleteObjects":"オブジェクトを削除","store.actions.deleteTheSelectedObjects":"選択したオブジェクトを削除","store.actions.errorChangingType":"タイプの変更エラー","store.actions.errorDeletingObjects":"オブジェクトの削除エラー","store.actions.errorExportProperties":"プロパティのエクスポートエラー","store.actions.errorRemovingObjects":"コレクションからのオブジェクト削除エラー","store.actions.errorStartingWorkflow":"ワークフローの開始エラー","store.actions.exportAllObjectProperties":"すべてのオブジェクトプロパティをエクスポート","store.actions.exportProperties":"プロパティをエクスポート","store.actions.noCollectionContext":"コレクションコンテキストがありません","store.actions.noObjectsSelected":"オブジェクトが選択されていません","store.actions.pleaseSelectObjectsToDelete":"削除するオブジェクトを選択してください","store.actions.pleaseSelectObjectsToRemove":"コレクションから削除するオブジェクトを選択してください","store.actions.selectCollection":"コレクションを選択","store.actions.startWorkflow":"ワークフローを開始","store.actions.startWorkflowByRule":"ルールによるワークフロー開始","store.actions.startWorkflowDesc":"選択したオブジェクトでワークフローを開始","store.actions.workflowStarted":"ワークフローが開始されました","store.allowedContentTypes":"許可されたコンテンツタイプ","store.allowedContentTypesOptionalDescription":"コレクションに追加できるコンテンツタイプを選択できます。設定しない場合、すべてのコンテンツタイプが許可されます。","store.allowedContentTypesSelectDescription":"コレクションに追加できるコンテンツタイプを選択してください。設定しない場合、すべてのコンテンツタイプが許可されます。","store.areYouSureDeleteCollection":"このコレクションを削除してもよろしいですか?この操作は取り消せません。","store.audioFormatRequired":"MP3、M4A、OGG、WAV、またはWebM形式が必要です","store.automaticTypeDetection":"自動タイプ検出","store.automaticTypeDetectionDescription":"Vertesiaがコンテンツを分析し、最適なタイプを選択します。最適な処理のため、ほとんどのアップロードで推奨されます。","store.cancelEdit":"キャンセル","store.chooseAFormat":"形式を選択","store.chooseContentType":"コンテンツタイプを選択...","store.chooseContentTypes":"コンテンツタイプを選択...","store.chooseWhatToExport":"エクスポートする内容を選択","store.clearSelection":"選択をクリア","store.close":"閉じる","store.collectionCreated":"コレクションが作成されました","store.collectionDeleted":"コレクションが削除されました","store.collectionFetchFailed":"コレクションの取得に失敗しました","store.collectionPropertiesUpdated":"コレクションのプロパティが更新されました","store.collectionsSelected_one":"{{count}} 件のコレクションが選択されています","store.collectionsSelected_other":"{{count}} 件のコレクションが選択されています","store.collectionUpdated":"コレクションが更新されました","store.collectionUpdatedSuccess":"コレクションが正常に更新されました","store.configuration":"設定","store.confirmSelection":"選択を確認","store.contentCopied":"{{type}}がコピーされました","store.contentExported":"コンテンツがエクスポートされました","store.contentType":"コンテンツタイプ","store.convertingToPdf":"PDFに変換中...","store.copyFailed":"コピーに失敗しました","store.createACollection":"コレクションを作成","store.createCollection":"コレクションを作成","store.created":"作成日時","store.createdBy":"作成者","store.createType":"タイプを作成","store.deleteCollection":"コレクションを削除","store.documentExported":"ドキュメントがエクスポートされました","store.documentInformation":"ドキュメント情報","store.documentListRefreshed":"ドキュメントリストが更新されました","store.documentListRefreshedDesc":"ドキュメントリストがアップロードしたファイルで更新されました。","store.documentPreview":"ドキュメントプレビュー","store.downloadFailed":"ダウンロードに失敗しました","store.dynamicCollection":"動的コレクション","store.dynamicCollectionDescription":"クエリに基づいてコレクションのコンテンツを動的に取得します。有効でない場合、コンテンツはユーザーまたはエージェントが追加する必要があります。","store.editingGenericDocument":"汎用ドキュメントのプロパティを編集中","store.editJson":"JSONを編集","store.editProperties":"プロパティを編集","store.editSchema":"スキーマを編集","store.editText":"テキストを編集","store.embeddings":"エンベディング","store.enableSyncMemberHeads":"メンバーHEAD同期を有効にする","store.error":"エラー","store.errorCheckingDuplicates":"重複ファイルのチェック中にエラーが発生しました","store.errorCreatingType":"タイプの作成エラー","store.errorInUploadProcessingCheck":"ファイルアップロード処理チェックでエラーが発生しました","store.errorProcessingFiles":"ファイルの処理中にエラーが発生しました","store.errorSavingText":"テキストの保存に失敗しました","store.errorSavingTextDefault":"テキストコンテンツの保存中にエラーが発生しました。","store.errorUpdatingProperties":"プロパティの更新中にエラーが発生しました","store.errorUpdatingPropertiesDefault":"プロパティの更新中にエラーが発生しました。","store.exportFailed":"エクスポートに失敗しました","store.exportInProgress":"エクスポート中","store.failedToConvertToPdf":"PDFへの変換に失敗しました","store.failedToCopy":"{{type}}のクリップボードへのコピーに失敗しました","store.failedToCreateCollection":"コレクションの作成に失敗しました","store.failedToDeleteCollection":"コレクションの削除に失敗しました","store.failedToDownloadFile":"ファイルのダウンロードに失敗しました","store.failedToDownloadPdf":"PDFファイルのダウンロードに失敗しました","store.failedToExportContent":"コンテンツのエクスポートに失敗しました","store.failedToExportDocument":"ドキュメントのエクスポートに失敗しました","store.failedToFetchRoleMappings":"ロールマッピングの取得に失敗しました","store.failedToFetchTypes":"オブジェクトタイプの取得に失敗しました","store.failedToFetchWorkflows":"ワークフローの取得に失敗しました","store.failedToGetDownloadUrl":"ダウンロードURLの取得に失敗しました","store.failedToLoadDocument":"ドキュメントの読み込みに失敗しました","store.failedToLoadType":"タイプの読み込みに失敗しました","store.failedToUpdateCollection":"コレクションの更新に失敗しました","store.failedToUpdateCollectionProperties":"コレクションプロパティの更新に失敗しました","store.failedToUpdateSchema":"スキーマの更新に失敗しました","store.failedToUpdateSharedProperties":"共有プロパティの更新に失敗しました","store.failedToUpdateSkipHeadSync":"HEAD同期スキップの更新に失敗しました","store.failedToUpdateTableLayout":"テーブルレイアウトの更新に失敗しました","store.filesAnalyzedTitle":"ファイル分析完了","store.filesReadyToProcess":"ファイルの処理準備ができました","store.filterByName":"名前でフィルター","store.fullText":"全文","store.fullView":"フルビュー","store.getStartedCollections":"新しいコレクションを作成して始めましょう。","store.getStartedTypes":"新しいタイプを作成して始めましょう。","store.id":"ID","store.invalidJson":"無効なJSON","store.invalidJsonSchema":"無効なJSON Schema","store.invalidQueryJson":"無効なクエリJSON","store.invalidTableLayout":"無効なテーブルレイアウト","store.isChunkable":"チャンク可能","store.limit":"制限","store.loadingDocument":"ドキュメントを読み込み中...","store.loadingProcessingStatus":"処理状況を読み込み中...","store.na":"N/A","store.name":"名前","store.newCollections":"新規コレクション","store.newVersionCreated":"新しいバージョンが作成されました","store.newVersionCreatedDesc":"更新されたプロパティで新しいバージョンが作成されました。","store.noAudioRendition":"Web互換のオーディオレンディションがありません","store.noCollections":"コレクションなし","store.noCollectionsAvailable":"利用可能なコレクションがありません。","store.noCollectionsFound":"コレクションが見つかりません。","store.noFilesSelected":"ファイルが選択されていません","store.none":"なし","store.noObjectsDragAndDrop":"オブジェクトがありません。ドキュメントや画像をここにドラッグ&ドロップしてコンテンツオブジェクトを作成してください。","store.noPreviewAvailable":"このドキュメントタイプのプレビューはありません。","store.noProjectSelected":"プロジェクトが選択されていません","store.noPropertiesAvailable":"このドキュメントのプロパティはありません。","store.noPropertiesDefined":"プロパティが定義されていません","store.noTranscriptAvailable":"利用可能なトランスクリプトがありません","store.noType":"タイプなし","store.noValidFilesSelected":"有効なファイルが選択されていません","store.noVideoRendition":"Web互換のビデオレンディションがありません","store.openFullDocument":"完全なドキュメントを開く","store.openFullDocumentView":"完全なドキュメントビューを開く","store.optional":"(任意)","store.pdfConversionFailed":"PDF変換に失敗しました","store.pdfPreviewFullView":"PDFドキュメントのプレビューはフルビューで利用可能です。","store.pleaseFixJsonSyntax":"保存する前にJSON構文エラーを修正してください。","store.pleaseProvideName":"コレクションの名前を入力してください","store.pleaseSelectValidFiles":"有効なコンテンツのファイルを選択してください。","store.pleaseWait":"お待ちください","store.preview":"プレビュー","store.previewProperties":"プロパティをプレビュー","store.processingFailedFor":"{{name}}の処理に失敗しました","store.processingFiles":"ファイルを処理中","store.properties":"プロパティ","store.propertiesUpdated":"プロパティが更新されました","store.propertiesUpdatedDesc":"オブジェクトプロパティが正常に更新されました。","store.query":"クエリ","store.queryDescription":"コレクションのコンテンツを動的に取得するクエリを定義します。","store.refresh":"更新","store.renderingDocument":"ドキュメントをレンダリング中...","store.saveChanges":"変更を保存","store.saveText":"保存","store.schemaEditor":"スキーマエディター","store.schemaUpdated":"スキーマが更新されました","store.schemaUpdatedSuccess":"スキーマが正常に更新されました","store.search":"検索","store.searchCollections":"コレクションを検索","store.searchFailed":"検索に失敗しました","store.searching":"検索中...","store.searchPlaceholder":"検索内容を入力するか、フィルターを選択してください","store.searchTypes":"タイプを検索","store.selectACollection":"コレクションを選択","store.selectContentType":"コンテンツタイプを選択","store.selectContentTypeAuto":"コンテンツタイプを選択するか、空のままにすると自動検出されます","store.selectContentTypeLabel":"コンテンツタイプを選択","store.selectPropertiesToShare":"共有するプロパティを選択","store.semanticChunking":"セマンティックチャンキング","store.semanticSearch":"セマンティック検索","store.semanticSearchSettings":"セマンティック検索設定","store.sharedProperties":"共有プロパティ","store.sharedPropertiesDescription":"コレクション内のすべてのメンバー間で共有するプロパティを追加します。この機能にはプロジェクトで共有プロパティ同期を有効にする必要があります。","store.showingFirst128K":"最初の128K文字のみ表示","store.size":"サイズ","store.staticCollection":"静的コレクション","store.strictMode":"厳格モード","store.successfullyCopied":"{{type}}をクリップボードに正常にコピーしました","store.successfullyExportedTo":"{{format}}に正常にエクスポートしました","store.syncMemberHeads":"メンバーHEADを同期","store.syncMemberHeadsDescription":"メンバーの新しいHEADバージョンが作成されると、コレクションは新しいHEADを指すように更新されます。","store.tableLayout":"テーブルレイアウト","store.tableLayoutDescription":"テーブルでのコレクション表示用のカスタムレイアウトを定義します。","store.tableLayoutUpdated":"テーブルレイアウトが更新されました","store.tableLayoutUpdatedDesc":"テーブルレイアウトが正常に更新されました","store.textConflict":"ドキュメントが別の場所で変更されました。更新して再試行してください。","store.textSaved":"テキストコンテンツを保存しました","store.typeCreated":"タイプが作成されました","store.typeDescription":"コレクションにカスタムプロパティとデータを割り当てるコンテンツタイプを選択できます。","store.typeSelectDescription":"コレクションにカスタムプロパティとデータを割り当てるコンテンツタイプを選択してください。","store.unknown":"不明","store.unsavedChanges":"未保存の変更","store.updated":"更新日時","store.updatedAt":"更新日時","store.updatedBy":"更新者","store.updatedSharedProperties":"共有プロパティを更新しました","store.updatedSkipHeadSync":"HEAD同期スキップ設定を更新しました","store.upload":"アップロード","store.uploadComplete":"アップロード完了","store.uploadIssues":"アップロードの問題","store.validationFailed":"バリデーション失敗","store.videoFormatRequired":"MP4またはWebM形式が必要です","store.viewAsPdf":"PDFとして表示","store.viewAudio":"オーディオを表示","store.viewImage":"画像を表示","store.viewingNewVersion":"新しいバージョンを表示中","store.viewingNewVersionDefault":"新しいバージョンを表示中","store.viewingVersionLabel":"バージョン'{{label}}'を表示中","store.viewInJsonFormat":"JSON形式で表示","store.viewPdf":"PDFを表示","store.viewText":"テキストを表示","store.viewTranscript":"トランスクリプトを表示","store.viewVideo":"ビデオを表示","theme.dark":"ダーク","theme.label":"テーマ","theme.light":"ライト","theme.system":"システム","type.description":"説明","type.name":"名前","type.nameRequired":"名前は必須です","type.type":"タイプ","upload.allFilesExist_one":"{{count}} 件のファイルは既に存在します","upload.allFilesExist_other":"{{count}} 件のファイルは既に存在します","upload.analyzingFiles":"ファイルを分析中...","upload.checkingForDuplicates":"重複とアップデートを確認中","upload.collectionLabel":"コレクション:","upload.contentTypeTooltip":"アップロードするファイルに適用するコンテンツタイプを選択してください。空のままにすると、Vertesiaがファイル内容に基づいて自動的にタイプを検出します。","upload.continue":"続行","upload.dragAndDrop":"ファイルをここにドラッグ&ドロップするか、クリックして選択","upload.errorAnalyzingFiles":"ファイルの分析中にエラーが発生しました","upload.failedToUpload":"アップロード失敗","upload.fileAnalysisResults":"ファイル分析結果","upload.filesAnalyzed":"ファイル分析完了","upload.filesProcessed_one":"{{count}}個のファイルを処理済み","upload.filesProcessed_other":"{{count}}個のファイルを処理済み","upload.filesReadyToProcess_one":"{{count}}個のファイルが処理可能です","upload.filesReadyToProcess_other":"{{count}}個のファイルが処理可能です","upload.filesToSkip_one":"{{count}}個のファイルはシステムに既に存在するため、スキップされます。","upload.filesToSkip_other":"{{count}}個のファイルはシステムに既に存在するため、スキップされます。","upload.folderLabel":"フォルダ:","upload.inCollection":"コレクション '{{collection}}' 内","upload.inFolder":"フォルダ '{{location}}' 内","upload.new":"新規","upload.noFilesToProcess":"処理するファイルがありません。","upload.noItems":"表示する項目がありません","upload.preparingFiles_one":"{{count}}個のファイルのアップロードを準備中...","upload.preparingFiles_other":"{{count}}個のファイルのアップロードを準備中...","upload.preparingFolder_one":"1つのフォルダ({{fileCount}}ファイル)のアップロードを準備中...","upload.preparingFolder_other":"{{folderCount}}個のフォルダ({{fileCount}}ファイル)のアップロードを準備中...","upload.processedCount":"{{processed}}/{{total}}個のファイルを処理済み...","upload.processingFilesAction":"ファイルを処理中({{action}})","upload.selectFiles":"ファイルを選択","upload.selectFolder":"フォルダを選択","upload.skip":"スキップ","upload.skippedAlreadyExisted":"スキップ(既に存在)","upload.successfullyUpdated":"更新成功","upload.successfullyUploaded":"アップロード成功","upload.update":"更新","upload.uploadComplete":"アップロード完了","upload.uploadFiles":"ファイルをアップロード","upload.uploadingFiles":"ファイルをアップロード中","upload.uploadLocation":"アップロード先:","upload.uploadMore":"さらにアップロード","upload.uploadProcessInterrupted":"アップロード処理が中断されました","upload.useAutoDetection":"自動タイプ検出を使用","upload.useTypeName":"{{typeName}}を使用","user.account":"アカウント:","user.agentOnBehalfOf":"代理エージェント","user.agentOnBehalfOfApiKey":"APIキーの代理エージェント","user.allProjectMembers":"すべてのプロジェクトメンバー","user.allProjectMembersDescription":"このプロジェクトのすべてのメンバーがこの権限を持っています。","user.appVersion":"アプリバージョン","user.environment":"環境","user.failedToFetchApiKey":"APIキーの取得に失敗しました","user.failedToFetchGroup":"グループの取得に失敗しました","user.failedToFetchUser":"ユーザーの取得に失敗しました","user.groupId":"グループID:{{id}}","user.key":"キー:","user.organizationId":"組織ID","user.organizationRoles":"組織ロール","user.privateKey":"秘密鍵","user.project":"プロジェクト:","user.projectId":"プロジェクトID","user.projectRoles":"プロジェクトロール","user.schedule":"{{title}}をスケジュール","user.sdkVersion":"SDKバージョン","user.server":"サーバー","user.serviceAccount":"サービスアカウント","user.serviceAccountDescription":"このユーザーはワークフローワーカーなどのロボットが使用します。","user.store":"ストア","user.systemUser":"システムユーザー","user.systemUserDescription":"システムユーザーは組み込みオブジェクトの初期化に使用されます。","user.tenantId":"テナントID","user.unknown":"不明","user.unknownUser":"不明なユーザー","user.unknownUserDescription":"ユーザー情報は利用できません。","user.unnamedGroup":"名前なしグループ","user.user":"ユーザー","user.userId":"ユーザーID","widgets.schema.editDescription":"説明を編集","widgets.schema.invalidPropertyDeclaration":"無効なプロパティ宣言"}},ko:{[Un]:{"agent.activeWorkstreams_one":"에이전트가 {{count}}개의 활성 워크스트림을 실행 중","agent.activeWorkstreams_other":"에이전트가 {{count}}개의 활성 워크스트림을 실행 중","agent.agentConversation":"에이전트 대화","agent.agentInterrupted":"에이전트가 중단되었습니다","agent.agentPlan":"에이전트 계획","agent.agentProcessing":"에이전트가 처리 중입니다. 완료되면 계속할 수 있습니다...","agent.agentRunIdCopied":"에이전트 실행 ID가 복사되었습니다","agent.agentStarted":"에이전트가 시작되었습니다","agent.agentWorking":"에이전트가 작업 중... (Esc Esc로 중지)","agent.agentWorkingStop":"에이전트가 작업 중... Esc를 두 번 누르거나 중지를 클릭하여 중단","agent.allMessages":"모든 메시지","agent.artifacts":"아티팩트","agent.askAnything":"무엇이든 물어보세요... (파일 드롭 또는 붙여넣기)","agent.batch":"배치","agent.canceled":"","agent.cancelWorkflow":"워크플로 취소","agent.clickToEnlarge":"클릭하여 확대","agent.cloneConversation":"대화 복제","agent.close":"닫기","agent.closeFullscreen":"전체 화면 닫기","agent.completed":"완료","agent.continueConversation":"대화 계속하기","agent.conversationCloned":"대화가 복제되었습니다","agent.conversationContinued":"대화가 계속되었습니다","agent.copied":"복사됨","agent.copiedAllToolCalls":"모든 도구 호출이 클립보드에 복사되었습니다","agent.copiedBatchDetails":"배치 세부정보가 클립보드에 복사되었습니다","agent.copiedToClipboard":"클립보드에 복사되었습니다","agent.copy":"복사","agent.copyAgentRunId":"에이전트 실행 ID 복사","agent.copyAllToolCalls":"모든 도구 호출 복사","agent.copyBatchDetails":"배치 세부정보 복사","agent.copyMessage":"메시지 복사","agent.copyRunId":"실행 ID 복사","agent.copyToClipboard":"클립보드에 복사","agent.copyWorkflowRunId":"워크플로우 실행 ID 복사","agent.dashboard":"대시보드","agent.details":"세부정보","agent.document":"문서","agent.documentAttachments":"문서 첨부파일","agent.documentAttachmentsDescription":"이 메시지에 첨부된 스토어의 문서입니다. 에이전트는 언제든지 ID로 다시 가져오거나 다시 첨부하여 콘텐츠를 직접 포함할 수 있습니다.","agent.documents":"문서","agent.download":"다운로드","agent.downloadConversation":"대화 다운로드","agent.dropFilesToUpload":"파일을 끌어다 놓아 업로드","agent.elapsed":"{{seconds}}초 경과","agent.enlargedView":"확대 보기","agent.enterMessage":"메시지를 입력하여 대화를 시작하세요","agent.enterToSend":"Enter로 전송 / Shift+Enter로 줄 바꿈","agent.error":"오류","agent.errorStarting":"워크플로 시작 오류","agent.exit":"종료","agent.exitFullscreen":"전체 화면 종료","agent.export":"내보내기","agent.exportAsPdf":"PDF로 내보내기","agent.exportAsPng":"PNG로 내보내기","agent.exportAsWord":"Word로 내보내기","agent.exporting":"내보내는 중...","agent.exportMessage":"메시지 내보내기","agent.failedToCancelWorkflow":"워크플로 취소 실패","agent.failedToCloneConversation":"대화 복제 실패","agent.failedToContinueConversation":"대화 계속하기 실패","agent.failedToDownload":"대화 다운로드에 실패했습니다","agent.failedToInterrupt":"중단에 실패했습니다","agent.failedToLoadDocument":"문서 로드 실패","agent.failedToSend":"메시지 전송에 실패했습니다","agent.filesProcessing":"파일 처리 중","agent.filesStagedCount_one":"{{count}}개의 파일이 준비됨 - 대화 시작 시 업로드됩니다","agent.filesStagedCount_other":"{{count}}개의 파일이 준비됨 - 대화 시작 시 업로드됩니다","agent.filesUploadedDescription":"이 대화에 업로드된 파일은 계속 사용할 수 있습니다. 에이전트는 언제든지 액세스할 수 있습니다.","agent.fullscreen":"전체 화면","agent.hideDetails":"세부정보 숨기기","agent.hideSidebar":"사이드바 숨기기","agent.hideThinkingDetails":"사고 세부정보 숨기기","agent.inProgress":"진행 중","agent.linkObject":"객체 연결","agent.loadingArtifacts":"아티팩트 로드 중...","agent.loadingDocument":"문서 로드 중...","agent.main":"메인","agent.mainWorkstream":"메인 워크스트림","agent.moreActions":"추가 작업","agent.newerPlan":"최신 계획","agent.no":"아니오","agent.noActiveWorkstreams":"활성 워크스트림 없음","agent.noAgentRunning":"현재 실행 중인 에이전트가 없습니다","agent.noArtifactsYet":"아직 아티팩트 없음","agent.noContentAvailable":"사용 가능한 콘텐츠 없음","agent.noContentToExport":"내보낼 콘텐츠가 없습니다","agent.noConversationContent":"내보낼 대화 내용이 없습니다","agent.noDocumentsOpen":"열린 문서 없음","agent.noFilesUploadedYet":"업로드된 파일 없음","agent.noMessagesInWorkstream":"이 워크스트림에 아직 메시지가 없습니다...","agent.noPlanAvailable":"사용 가능한 계획 없음","agent.noPlanDetected":"아직 계획이 감지되지 않았습니다","agent.olderPlan":"이전 계획","agent.openDocument":"문서 열기","agent.openInNewTab":"새 탭에서 열기","agent.payload":"페이로드","agent.pdfExportFailed":"PDF 내보내기 실패","agent.pdfExportReady":"PDF 내보내기 준비 완료","agent.pending":"대기 중","agent.plan":"계획","agent.planProgress":"계획 진행률","agent.plansWillAppear":"에이전트가 계획을 생성하면 여기에 표시됩니다","agent.printDialogDescription":"브라우저의 인쇄 대화 상자를 사용하여 PDF로 저장하세요","agent.processing":"처리 중...","agent.ready":"준비 완료","agent.refresh":"새로고침","agent.remaining":"{{seconds}}초 남음","agent.retry":"재시도","agent.runIdCopied":"실행 ID가 복사되었습니다","agent.searchDocuments":"문서 검색","agent.selectInteraction":"인터랙션을 선택하고 시작을 클릭하여 에이전트를 시작하세요","agent.send":"보내기","agent.showAllMessages":"모든 메시지 표시","agent.showDetails":"세부정보 표시","agent.showSidebar":"사이드바 표시","agent.staged":"준비됨","agent.startAgent":"에이전트 시작","agent.startingAgent":"에이전트 시작 중...","agent.startingAgentUploading":"에이전트 시작 및 파일 업로드 중...","agent.startNewConversation":"새 대화 시작","agent.stepByStepPlan":"단계별 계획","agent.stop":"중지","agent.stopAgent":"에이전트 중지","agent.submitSelection":"선택 제출","agent.submitSelectionCount_one":"선택 제출({{count}})","agent.submitSelectionCount_other":"선택 제출({{count}})","agent.summary":"요약","agent.taskProgress":"작업 진행률","agent.toggleRightSidebar":"오른쪽 사이드바 전환","agent.typeNewInstructions":"새로운 지시사항을 입력하세요","agent.typeQuestionBelow":"아래에 질문을 입력하고 Enter를 누르거나 {{buttonText}}를 클릭하여 시작하세요","agent.typeYourMessage":"메시지를 입력하세요...","agent.typeYourResponse":"응답을 입력하세요...","agent.unableToOpenPrint":"인쇄 미리보기를 열 수 없습니다","agent.unknownError":"알 수 없는 오류","agent.unknownTime":"알 수 없는 시간","agent.upload":"업로드","agent.uploadedFiles":"업로드된 파일","agent.uploadFailed":"업로드 실패","agent.uploading":"업로드 중...","agent.uploads":"업로드","agent.waitForFiles":"파일 처리가 완료될 때까지 기다려 주세요","agent.waitForFilesProcessing":"전송 전에 모든 파일 처리가 완료될 때까지 기다려 주세요","agent.waiting":"대기 중...","agent.waitingForAgentResponse":"에이전트 응답 대기 중...","agent.workflowCancelled":"워크플로가 취소되었습니다","agent.workflowRunIdCopied":"워크플로우 실행 ID가 복사되었습니다","agent.working":"작업 중...","agent.workstreams":"워크스트림","agent.yes":"예","auth.continueWithEnterprise":"기업 SSO로 계속","auth.continueWithGithub":"GitHub으로 계속","auth.continueWithGoogle":"Google로 계속","auth.continueWithMicrosoft":"Microsoft로 계속","auth.enterEnterpriseEmail":"기업 이메일을 입력하세요","auth.error":"오류: {{message}}","auth.firstTimeDetails":"몇 가지 질문만 드리면 바로 시작할 수 있습니다.","auth.firstTimeMessage":"처음이신가요? 걱정 마세요, 무료로 체험할 수 있습니다!","auth.goBack":"돌아가기","auth.invalidEmail":"유효하지 않은 이메일 주소","auth.logInOrSignUp":"로그인 또는 가입","auth.needToMakeChange":"변경이 필요하신가요?","auth.or":"또는","auth.privacyPolicy":"개인정보 처리방침","auth.signInError":"죄송합니다. 로그인할 수 없습니다.","auth.signInErrorContact":"다시 시도하거나 문의해 주세요","auth.signInErrorPersists":"문제가 계속되는 경우.","auth.tenantNotFound":"테넌트를 찾을 수 없음","auth.termsOfService":"서비스 약관","errors.failedToLoadTenantConfig":"테넌트 설정을 로드하지 못했습니다","errors.somethingWentWrong":"죄송합니다. 문제가 발생했습니다...","errors.teamNotifiedLine1":"팀에 알림이 전달되었으며, 빠르게 해결하겠습니다.","errors.teamNotifiedLine2":"문제를 보고하거나 문의하시려면 다음 이메일로 연락해 주세요:","filter.clearAll":"모두 지우기","filter.filter":"필터","filter.filterBy":"{{view}}로 필터","filter.filterPlaceholder":"필터...","filter.from":"시작:","filter.noAvailableFilters":"사용 가능한 필터가 없습니다","filter.noMatchingFilters":"일치하는 필터가 없습니다","filter.noResultsFound":"결과를 찾을 수 없습니다.","filter.selectRange":"범위 선택","filter.to":"끝:","form.filter":"필터...","layout.pageNotFound":"페이지를 찾을 수 없음","layout.search":"검색","layout.searchPlaceholder":"검색...","login.accept":"수락","login.reject":"거부","login.reviewInvites":"초대 검토","login.terminal.account":"계정","login.terminal.accountRequired":"계정은 필수입니다","login.terminal.accountRequiredDesc":"ComposablePrompts 서버에 대한 클라이언트 접근을 허가할 계정을 선택해 주세요","login.terminal.authorizeClient":"클라이언트 승인","login.terminal.authPayloadCopied":"인증 정보가 복사되었습니다","login.terminal.authPayloadCopiedSuccess":"이 페이지를 닫을 수 있습니다. CLI가 토큰을 수신했을 것입니다.","login.terminal.authPayloadCopiedWithError":"인증 정보를 터미널에 붙여넣을 수 있습니다. 참고: CLI가 토큰을 수신하지 못했습니다. 오류가 발생했습니다: {{error}}","login.terminal.browserPermissionNote":"참고: 브라우저에서 로컬 네트워크 접근 권한을 요청하면 허용해 주세요. 이는 CLI 도구로 인증 토큰을 다시 보내는 데 필요합니다. 허용하지 않으면 터미널에 토큰을 수동으로 복사/붙여넣기해야 합니다.","login.terminal.chooseAccountProject":"클라이언트가 접근할 대상 계정과 프로젝트를 선택해야 합니다.","login.terminal.clientAuthenticated":"클라이언트가 인증되었습니다. 이 페이지를 닫을 수 있습니다.","login.terminal.clientWantsAuth":"클라이언트 앱이 귀하의 이름으로 ComposablePrompts 서버에 접근하는 것을 허가 요청하고 있습니다.","login.terminal.copyAuthPayload":"인증 정보 복사","login.terminal.envLocalDev":"로컬 개발","login.terminal.envProduction":"프로덕션","login.terminal.envStaging":"스테이징","login.terminal.errorAuthorizingClient":"클라이언트 승인 오류","login.terminal.errorLoadingProjects":"프로젝트 로드 오류","login.terminal.failedToGetToken":"Composable 토큰 가져오기 실패","login.terminal.failedToSendToken":"CLI 도구로 인증 토큰 전송 실패","login.terminal.failedToSendTokenDesc":'이는 Safari의 보안 검사로 인한 것일 수 있습니다. 오류는 "{{error}}"입니다',"login.terminal.invalidRequest":"유효하지 않은 요청","login.terminal.invalidRequestDesc":"이 페이지는 ComposablePrompts 서버 인증을 위해 터미널 클라이언트에서 호출되어야 합니다","login.terminal.profileName":"프로필 이름","login.terminal.profileNameNote":"또한 클라이언트 설정에 인증을 저장하기 위한 프로필 이름을 입력하세요.","login.terminal.profileRequired":"프로필은 필수입니다","login.terminal.profileRequiredDesc":"클라이언트 인증을 저장할 프로필 이름을 입력해 주세요","login.terminal.project":"프로젝트","login.terminal.projectRequired":"프로젝트는 필수입니다","login.terminal.projectRequiredDesc":"ComposablePrompts 서버에 대한 클라이언트 접근을 허가할 프로젝트를 선택해 주세요","login.terminal.selectAccount":"계정 선택","login.terminal.selectProject":"프로젝트 선택","mcpOAuth.authenticate":"인증","mcpOAuth.authenticating":"인증 중...","mcpOAuth.connect":"연결","mcpOAuth.connected":"연결됨","mcpOAuth.connecting":"연결 중...","mcpOAuth.disconnect":"연결 해제","mcpOAuth.notConnected":"연결되지 않음","misc.copiedToClipboard":"클립보드에 복사되었습니다","misc.copy":"복사","misc.failedToCopy":"복사 실패","misc.noData":"표시할 데이터가 없습니다","misc.tableView":"테이블 보기","misc.thumbnailView":"썸네일 보기","modal.cancel":"취소","modal.confirm":"확인","modal.delete.error":"객체를 삭제하는 중 오류가 발생했습니다","modal.delete.failed":"삭제 실패","modal.delete.succeeded":"삭제 성공","modal.save":"저장","modal.saveChanges":"변경 사항 저장","modal.saveVersion.createDescription":"이 속성 변경으로 새 리비전을 만들고 원본을 보존합니다.","modal.saveVersion.createNew":"새 버전 만들기","modal.saveVersion.createWithFileDescription":"교체 파일로 새 리비전을 만들고 원본을 보존합니다.","modal.saveVersion.howToSave":"이 변경 사항을 어떻게 저장하시겠습니까?","modal.saveVersion.replaceFile":"콘텐츠 파일을 다음으로 교체하려고 합니다:","modal.saveVersion.updateCurrent":"현재 버전 업데이트","modal.saveVersion.updateDescription":"현재 리비전에서 직접 속성을 수정합니다.","modal.saveVersion.updateWithFileDescription":"콘텐츠 파일을 교체하고 현재 리비전에서 직접 속성을 수정합니다.","modal.saveVersion.versionLabel":"버전 라벨 (선택사항)","modal.saveVersion.versionLabelDescription":"새 버전의 선택적 라벨.","modal.saveVersion.versionLabelPlaceholder":"예: v1.2, 승인됨, 검토 후","oauthProvider.authenticate":"인증","oauthProvider.authenticating":"인증 중...","oauthProvider.connected":"연결됨","oauthProvider.disconnect":"연결 해제","pdf.close":"닫기","pdf.closeFullscreen":"전체 화면 닫기","pdf.download":"다운로드","pdf.failedToLoadViewer":"PDF 뷰어를 로드하지 못했습니다","pdf.fetchingDocumentFailed":"문서를 가져오지 못했습니다","pdf.fitToWidth":"너비에 맞추기","pdf.fullscreen":"전체 화면","pdf.instrumentedImages":"주석 이미지","pdf.nextPage":"다음 페이지","pdf.noPdfAvailable":"사용 가능한 PDF가 없습니다","pdf.originalImages":"원본 이미지","pdf.page":"페이지","pdf.pageOf":"페이지 {{pageNumber}} / {{totalPages}}","pdf.previousPage":"이전 페이지","pdf.zoomIn":"확대","pdf.zoomOut":"축소","shell.accessDenied":"접근이 거부되었습니다","shell.applicationNotRegistered":"애플리케이션이 등록되지 않았습니다","shell.organization":"조직","shell.selectOrganization":"조직 선택","shell.selectProject":"프로젝트 선택","signup.accountType":"계정 유형","signup.activelyExploring":"LLM 프로젝트를 적극적으로 탐색 중","signup.alreadyUsing":"프로덕션 환경에서 LLM 사용 중","signup.company":"회사","signup.companyDescription":"회사 또는 조직용.","signup.companyName":"회사명","signup.companySize":"회사 규모","signup.companyWebsite":"회사 웹사이트","signup.justTesting":"LLM 테스트 또는 평가 중","signup.migratingLLMs":"다른 LLM으로 마이그레이션 중","signup.other":"기타","signup.personal":"개인","signup.personalDescription":"개인 사용 또는 소규모 팀용.","signup.pleaseEnterOrgName":"조직 이름을 입력해 주세요","signup.pleaseSelectAccountType":"계정 유형을 선택해 주세요","signup.pleaseSelectCompanySize":"회사 규모를 선택해 주세요","signup.projectMaturity":"프로젝트 성숙도","signup.selectCompanySize":"회사 규모 선택","signup.selectProjectMaturity":"프로젝트 성숙도 선택","signup.signUp":"가입","signup.size1001to5000":"1001~5000명","signup.size101to1000":"101~1000명","signup.size11to100":"11~100명","signup.size1to10":"1~10명","signup.size5000plus":"5000명 이상","signup.welcomeMessage":"Vertesia에 오신 것을 환영합니다, {{name}} ({{email}}).\n간단한 질문에 답해 주시면 바로 시작할 수 있습니다.\n신용카드가 필요하지 않습니다.","signup.wrongAccountGoBack":"잘못된 계정입니다, 돌아가기","store.actions.addToCollection":"컬렉션에 추가","store.actions.addToCollectionBody":"선택한 객체를 기존 컬렉션에 추가하거나 새 컬렉션을 만듭니다.","store.actions.addToCollectionButton":"컬렉션에 추가","store.actions.addToCollectionDesc":"문서를 컬렉션에 추가","store.actions.addToCollectionFailure":"컬렉션 추가 실패","store.actions.addToCollectionFailureDesc":"선택한 객체를 컬렉션에 추가하지 못했습니다","store.actions.addToCollectionSuccess":"컬렉션 추가 성공","store.actions.addToCollectionSuccessDesc_one":"{{count}}개의 객체가 컬렉션에 추가되었습니다","store.actions.addToCollectionSuccessDesc_other":"{{count}}개의 객체가 컬렉션에 추가되었습니다","store.actions.addToCollectionTitle":"컬렉션에 추가","store.actions.areYouSure":"확실합니까?","store.actions.cannotRemoveNoCollection":"객체를 제거할 수 없습니다: 컬렉션이 지정되지 않았습니다","store.actions.changeContentType":"콘텐츠 유형 변경","store.actions.changeContentTypeDesc":"선택한 문서의 콘텐츠 유형 변경","store.actions.changeType":"유형 변경","store.actions.chooseExistingCollections":"기존 컬렉션에서 선택","store.actions.chooseWorkflowRule":"시작할 워크플로 규칙을 선택하세요:","store.actions.confirmDeleteAll":"선택한 모든 객체를 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.","store.actions.confirmDeleteSelected":"선택한 객체를 삭제하시겠습니까?\n이것은 컬렉션에서 제거하는 것이 아닙니다.","store.actions.createNew":"새로 만들기","store.actions.delete":"삭제","store.actions.deleteObjects":"객체 삭제","store.actions.deleteTheSelectedObjects":"선택한 객체 삭제","store.actions.errorChangingType":"유형 변경 오류","store.actions.errorDeletingObjects":"객체 삭제 오류","store.actions.errorExportProperties":"속성 내보내기 오류","store.actions.errorRemovingObjects":"컬렉션에서 객체 제거 오류","store.actions.errorStartingWorkflow":"워크플로 시작 오류","store.actions.exportAllObjectProperties":"모든 객체 속성 내보내기","store.actions.exportProperties":"속성 내보내기","store.actions.noCollectionContext":"컬렉션 컨텍스트가 없습니다","store.actions.noObjectsSelected":"선택된 객체가 없습니다","store.actions.pleaseSelectObjectsToDelete":"삭제할 객체를 선택해 주세요","store.actions.pleaseSelectObjectsToRemove":"컬렉션에서 제거할 객체를 선택해 주세요","store.actions.selectCollection":"컬렉션 선택","store.actions.startWorkflow":"워크플로 시작","store.actions.startWorkflowByRule":"규칙으로 워크플로 시작","store.actions.startWorkflowDesc":"선택한 객체에 대해 워크플로 시작","store.actions.workflowStarted":"워크플로가 시작되었습니다","store.allowedContentTypes":"허용된 콘텐츠 유형","store.allowedContentTypesOptionalDescription":"컬렉션에 추가할 수 있는 콘텐츠 유형을 선택할 수 있습니다. 설정하지 않으면 모든 콘텐츠 유형이 허용됩니다.","store.allowedContentTypesSelectDescription":"컬렉션에 추가할 수 있는 콘텐츠 유형을 선택하세요. 설정하지 않으면 모든 콘텐츠 유형이 허용됩니다.","store.areYouSureDeleteCollection":"이 컬렉션을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.","store.audioFormatRequired":"MP3, M4A, OGG, WAV 또는 WebM 형식이 필요합니다","store.automaticTypeDetection":"자동 유형 감지","store.automaticTypeDetectionDescription":"Vertesia가 콘텐츠를 분석하여 가장 적합한 유형을 선택합니다. 최적의 처리를 위해 대부분의 업로드에 권장됩니다.","store.cancelEdit":"취소","store.chooseAFormat":"형식 선택","store.chooseContentType":"콘텐츠 유형 선택...","store.chooseContentTypes":"콘텐츠 유형 선택...","store.chooseWhatToExport":"내보낼 항목 선택","store.clearSelection":"선택 해제","store.close":"닫기","store.collectionCreated":"컬렉션이 생성되었습니다","store.collectionDeleted":"컬렉션이 삭제되었습니다","store.collectionFetchFailed":"컬렉션 가져오기 실패","store.collectionPropertiesUpdated":"컬렉션 속성이 업데이트되었습니다","store.collectionsSelected_one":"{{count}}개의 컬렉션이 선택되었습니다","store.collectionsSelected_other":"{{count}}개의 컬렉션이 선택되었습니다","store.collectionUpdated":"컬렉션이 업데이트되었습니다","store.collectionUpdatedSuccess":"컬렉션이 성공적으로 업데이트되었습니다","store.configuration":"설정","store.confirmSelection":"선택 확인","store.contentCopied":"{{type}}가 복사되었습니다","store.contentExported":"콘텐츠가 내보내기되었습니다","store.contentType":"콘텐츠 유형","store.convertingToPdf":"PDF로 변환 중...","store.copyFailed":"복사 실패","store.createACollection":"컬렉션 만들기","store.createCollection":"컬렉션 만들기","store.created":"생성일","store.createdBy":"생성자","store.createType":"유형 만들기","store.deleteCollection":"컬렉션 삭제","store.documentExported":"문서가 내보내기되었습니다","store.documentInformation":"문서 정보","store.documentListRefreshed":"문서 목록이 새로고침되었습니다","store.documentListRefreshedDesc":"문서 목록이 업로드한 파일로 업데이트되었습니다.","store.documentPreview":"문서 미리보기","store.downloadFailed":"다운로드 실패","store.dynamicCollection":"동적 컬렉션","store.dynamicCollectionDescription":"쿼리를 기반으로 컬렉션 콘텐츠를 동적으로 가져옵니다. 활성화하지 않으면 사용자 또는 에이전트가 콘텐츠를 추가해야 합니다.","store.editingGenericDocument":"일반 문서 속성 편집 중","store.editJson":"JSON 편집","store.editProperties":"속성 편집","store.editSchema":"스키마 편집","store.editText":"텍스트 편집","store.embeddings":"임베딩","store.enableSyncMemberHeads":"멤버 HEAD 동기화 활성화","store.error":"오류","store.errorCheckingDuplicates":"중복 파일 확인 중 오류가 발생했습니다","store.errorCreatingType":"유형 생성 오류","store.errorInUploadProcessingCheck":"파일 업로드 처리 확인 중 오류가 발생했습니다","store.errorProcessingFiles":"파일 처리 중 오류가 발생했습니다","store.errorSavingText":"텍스트 저장 실패","store.errorSavingTextDefault":"텍스트 콘텐츠를 저장하는 중 오류가 발생했습니다.","store.errorUpdatingProperties":"속성 업데이트 중 오류가 발생했습니다","store.errorUpdatingPropertiesDefault":"속성을 업데이트하는 중 오류가 발생했습니다.","store.exportFailed":"내보내기 실패","store.exportInProgress":"내보내기 진행 중","store.failedToConvertToPdf":"PDF로 변환 실패","store.failedToCopy":"{{type}}을(를) 클립보드에 복사 실패","store.failedToCreateCollection":"컬렉션 생성 실패","store.failedToDeleteCollection":"컬렉션 삭제 실패","store.failedToDownloadFile":"파일 다운로드 실패","store.failedToDownloadPdf":"PDF 파일 다운로드 실패","store.failedToExportContent":"콘텐츠 내보내기 실패","store.failedToExportDocument":"문서 내보내기 실패","store.failedToFetchRoleMappings":"역할 매핑 가져오기 실패","store.failedToFetchTypes":"객체 유형 가져오기 실패","store.failedToFetchWorkflows":"워크플로 가져오기 실패","store.failedToGetDownloadUrl":"다운로드 URL 가져오기 실패","store.failedToLoadDocument":"문서 로드 실패","store.failedToLoadType":"유형 로드 실패","store.failedToUpdateCollection":"컬렉션 업데이트 실패","store.failedToUpdateCollectionProperties":"컬렉션 속성 업데이트 실패","store.failedToUpdateSchema":"스키마 업데이트 실패","store.failedToUpdateSharedProperties":"공유 속성 업데이트 실패","store.failedToUpdateSkipHeadSync":"HEAD 동기화 건너뛰기 업데이트 실패","store.failedToUpdateTableLayout":"테이블 레이아웃 업데이트 실패","store.filesAnalyzedTitle":"파일 분석 완료","store.filesReadyToProcess":"파일 처리 준비 완료","store.filterByName":"이름으로 필터","store.fullText":"전문","store.fullView":"전체 보기","store.getStartedCollections":"새 컬렉션을 만들어 시작하세요.","store.getStartedTypes":"새 유형을 만들어 시작하세요.","store.id":"ID","store.invalidJson":"유효하지 않은 JSON","store.invalidJsonSchema":"유효하지 않은 JSON Schema","store.invalidQueryJson":"유효하지 않은 쿼리 JSON","store.invalidTableLayout":"유효하지 않은 테이블 레이아웃","store.isChunkable":"청크 가능","store.limit":"제한","store.loadingDocument":"문서 로드 중...","store.loadingProcessingStatus":"처리 상태 로드 중...","store.na":"N/A","store.name":"이름","store.newCollections":"새 컬렉션","store.newVersionCreated":"새 버전이 생성되었습니다","store.newVersionCreatedDesc":"업데이트된 속성으로 새 버전이 생성되었습니다.","store.noAudioRendition":"웹 호환 오디오 렌디션이 없습니다","store.noCollections":"컬렉션 없음","store.noCollectionsAvailable":"사용 가능한 컬렉션이 없습니다.","store.noCollectionsFound":"컬렉션을 찾을 수 없습니다.","store.noFilesSelected":"선택된 파일이 없습니다","store.none":"없음","store.noObjectsDragAndDrop":"객체가 없습니다. 문서나 이미지를 여기에 끌어다 놓아 콘텐츠 객체를 만드세요.","store.noPreviewAvailable":"이 문서 유형에 대한 미리보기가 없습니다.","store.noProjectSelected":"프로젝트가 선택되지 않았습니다","store.noPropertiesAvailable":"이 문서에 대한 속성이 없습니다.","store.noPropertiesDefined":"정의된 속성이 없습니다","store.noTranscriptAvailable":"사용 가능한 트랜스크립트가 없습니다","store.noType":"유형 없음","store.noValidFilesSelected":"유효한 파일이 선택되지 않았습니다","store.noVideoRendition":"웹 호환 비디오 렌디션이 없습니다","store.openFullDocument":"전체 문서 열기","store.openFullDocumentView":"전체 문서 보기 열기","store.optional":"(선택사항)","store.pdfConversionFailed":"PDF 변환 실패","store.pdfPreviewFullView":"PDF 문서 미리보기는 전체 보기에서 사용 가능합니다.","store.pleaseFixJsonSyntax":"저장하기 전에 JSON 구문 오류를 수정해 주세요.","store.pleaseProvideName":"컬렉션 이름을 입력해 주세요","store.pleaseSelectValidFiles":"유효한 콘텐츠의 파일을 선택해 주세요.","store.pleaseWait":"잠시 기다려 주세요","store.preview":"미리보기","store.previewProperties":"속성 미리보기","store.processingFailedFor":"{{name}} 처리 실패","store.processingFiles":"파일 처리 중","store.properties":"속성","store.propertiesUpdated":"속성이 업데이트되었습니다","store.propertiesUpdatedDesc":"객체 속성이 성공적으로 업데이트되었습니다.","store.query":"쿼리","store.queryDescription":"컬렉션 콘텐츠를 동적으로 가져올 쿼리를 정의합니다.","store.refresh":"새로고침","store.renderingDocument":"문서 렌더링 중...","store.saveChanges":"변경 사항 저장","store.saveText":"저장","store.schemaEditor":"스키마 편집기","store.schemaUpdated":"스키마가 업데이트되었습니다","store.schemaUpdatedSuccess":"스키마가 성공적으로 업데이트되었습니다","store.search":"검색","store.searchCollections":"컬렉션 검색","store.searchFailed":"검색 실패","store.searching":"검색 중...","store.searchPlaceholder":"찾고 있는 내용을 입력하거나 필터를 선택하세요","store.searchTypes":"유형 검색","store.selectACollection":"컬렉션 선택","store.selectContentType":"콘텐츠 유형 선택","store.selectContentTypeAuto":"콘텐츠 유형을 선택하거나, 비워두면 자동 감지됩니다","store.selectContentTypeLabel":"콘텐츠 유형 선택","store.selectPropertiesToShare":"공유할 속성 선택","store.semanticChunking":"시맨틱 청킹","store.semanticSearch":"시맨틱 검색","store.semanticSearchSettings":"시맨틱 검색 설정","store.sharedProperties":"공유 속성","store.sharedPropertiesDescription":"컬렉션의 모든 멤버 간에 공유할 속성을 추가합니다. 이 기능을 사용하려면 프로젝트에서 공유 속성 동기화를 활성화해야 합니다.","store.showingFirst128K":"처음 128K 문자만 표시","store.size":"크기","store.staticCollection":"정적 컬렉션","store.strictMode":"엄격 모드","store.successfullyCopied":"{{type}}을(를) 클립보드에 성공적으로 복사했습니다","store.successfullyExportedTo":"{{format}}(으)로 성공적으로 내보냈습니다","store.syncMemberHeads":"멤버 HEAD 동기화","store.syncMemberHeadsDescription":"멤버의 새 HEAD 버전이 생성되면 컬렉션이 새 HEAD를 가리키도록 업데이트됩니다.","store.tableLayout":"테이블 레이아웃","store.tableLayoutDescription":"테이블에서 컬렉션을 표시하기 위한 사용자 정의 레이아웃을 정의합니다.","store.tableLayoutUpdated":"테이블 레이아웃이 업데이트되었습니다","store.tableLayoutUpdatedDesc":"테이블 레이아웃이 성공적으로 업데이트되었습니다","store.textConflict":"문서가 다른 곳에서 수정되었습니다. 새로고침 후 다시 시도해 주세요.","store.textSaved":"텍스트 콘텐츠가 저장되었습니다","store.typeCreated":"유형이 생성되었습니다","store.typeDescription":"컬렉션에 사용자 정의 속성과 데이터를 할당할 콘텐츠 유형을 선택할 수 있습니다.","store.typeSelectDescription":"컬렉션에 사용자 정의 속성과 데이터를 할당할 콘텐츠 유형을 선택하세요.","store.unknown":"알 수 없음","store.unsavedChanges":"저장되지 않은 변경 사항","store.updated":"수정일","store.updatedAt":"수정일","store.updatedBy":"수정자","store.updatedSharedProperties":"공유 속성이 업데이트되었습니다","store.updatedSkipHeadSync":"HEAD 동기화 건너뛰기 설정이 업데이트되었습니다","store.upload":"업로드","store.uploadComplete":"업로드 완료","store.uploadIssues":"업로드 문제","store.validationFailed":"유효성 검사 실패","store.videoFormatRequired":"MP4 또는 WebM 형식이 필요합니다","store.viewAsPdf":"PDF로 보기","store.viewAudio":"오디오 보기","store.viewImage":"이미지 보기","store.viewingNewVersion":"새 버전 보기 중","store.viewingNewVersionDefault":"새 버전을 보고 있습니다","store.viewingVersionLabel":"버전 '{{label}}'을(를) 보고 있습니다","store.viewInJsonFormat":"JSON 형식으로 보기","store.viewPdf":"PDF 보기","store.viewText":"텍스트 보기","store.viewTranscript":"트랜스크립트 보기","store.viewVideo":"비디오 보기","theme.dark":"다크","theme.label":"테마","theme.light":"라이트","theme.system":"시스템","type.description":"설명","type.name":"이름","type.nameRequired":"이름은 필수입니다","type.type":"유형","upload.allFilesExist_one":"{{count}}개의 파일이 이미 존재합니다","upload.allFilesExist_other":"{{count}}개의 파일이 이미 존재합니다","upload.analyzingFiles":"파일 분석 중...","upload.checkingForDuplicates":"중복 및 업데이트 확인 중","upload.collectionLabel":"컬렉션:","upload.contentTypeTooltip":"업로드할 파일에 적용할 콘텐츠 유형을 선택하세요. 비워두면 Vertesia가 파일 내용에 따라 자동으로 유형을 감지합니다.","upload.continue":"계속","upload.dragAndDrop":"파일을 여기에 끌어다 놓거나 클릭하여 선택","upload.errorAnalyzingFiles":"파일 분석 중 오류가 발생했습니다","upload.failedToUpload":"업로드 실패","upload.fileAnalysisResults":"파일 분석 결과","upload.filesAnalyzed":"파일 분석 완료","upload.filesProcessed_one":"{{count}}개 파일 처리됨","upload.filesProcessed_other":"{{count}}개 파일 처리됨","upload.filesReadyToProcess_one":"{{count}}개의 파일이 처리 준비됨","upload.filesReadyToProcess_other":"{{count}}개의 파일이 처리 준비됨","upload.filesToSkip_one":"{{count}}개의 파일이 시스템에 이미 존재하여 건너뜁니다.","upload.filesToSkip_other":"{{count}}개의 파일이 시스템에 이미 존재하여 건너뜁니다.","upload.folderLabel":"폴더:","upload.inCollection":" 컬렉션 '{{collection}}'에","upload.inFolder":" 폴더 '{{location}}'에","upload.new":"새로 만들기","upload.noFilesToProcess":"처리할 파일이 없습니다.","upload.noItems":"표시할 항목이 없습니다","upload.preparingFiles_one":"{{count}}개 파일 업로드 준비 중...","upload.preparingFiles_other":"{{count}}개 파일 업로드 준비 중...","upload.preparingFolder_one":"{{fileCount}}개 파일이 포함된 1개 폴더 업로드 준비 중...","upload.preparingFolder_other":"{{fileCount}}개 파일이 포함된 {{folderCount}}개 폴더 업로드 준비 중...","upload.processedCount":"{{processed}}/{{total}}개 파일 처리됨...","upload.processingFilesAction":"파일 처리 중 ({{action}})","upload.selectFiles":"파일 선택","upload.selectFolder":"폴더 선택","upload.skip":"건너뛰기","upload.skippedAlreadyExisted":"건너뜀 (이미 존재)","upload.successfullyUpdated":"업데이트 성공","upload.successfullyUploaded":"업로드 성공","upload.update":"업데이트","upload.uploadComplete":"업로드 완료","upload.uploadFiles":"파일 업로드","upload.uploadingFiles":"파일 업로드 중","upload.uploadLocation":"업로드 위치:","upload.uploadMore":"추가 업로드","upload.uploadProcessInterrupted":"업로드 프로세스가 중단되었습니다","upload.useAutoDetection":"자동 유형 감지 사용","upload.useTypeName":"{{typeName}} 사용","user.account":"계정:","user.agentOnBehalfOf":"에이전트 대리","user.agentOnBehalfOfApiKey":"API 키 에이전트 대리","user.allProjectMembers":"모든 프로젝트 멤버","user.allProjectMembersDescription":"이 프로젝트의 모든 멤버가 이 권한을 가지고 있습니다.","user.appVersion":"앱 버전","user.environment":"환경","user.failedToFetchApiKey":"API 키 가져오기 실패","user.failedToFetchGroup":"그룹 가져오기 실패","user.failedToFetchUser":"사용자 가져오기 실패","user.groupId":"그룹 ID: {{id}}","user.key":"키:","user.organizationId":"조직 ID","user.organizationRoles":"조직 역할","user.privateKey":"개인 키","user.project":"프로젝트:","user.projectId":"프로젝트 ID","user.projectRoles":"프로젝트 역할","user.schedule":"{{title}} 예약","user.sdkVersion":"SDK 버전","user.server":"서버","user.serviceAccount":"서비스 계정","user.serviceAccountDescription":"이 사용자는 워크플로 워커 등의 로봇이 사용합니다.","user.store":"스토어","user.systemUser":"시스템 사용자","user.systemUserDescription":"시스템 사용자는 내장 객체를 초기화하는 데 사용됩니다.","user.tenantId":"테넌트 ID","user.unknown":"알 수 없음","user.unknownUser":"알 수 없는 사용자","user.unknownUserDescription":"사용자 정보를 사용할 수 없습니다.","user.unnamedGroup":"이름 없는 그룹","user.user":"사용자","user.userId":"사용자 ID","widgets.schema.editDescription":"설명 편집","widgets.schema.invalidPropertyDeclaration":"유효하지 않은 속성 선언"}},pt:{[Un]:{"agent.activeWorkstreams_one":"O agente tem {{count}} fluxo de trabalho ativo em execução","agent.activeWorkstreams_many":"O agente tem {{count}} fluxos de trabalho ativos em execução","agent.activeWorkstreams_other":"O agente tem {{count}} fluxos de trabalho ativos em execução","agent.agentConversation":"Conversa com o agente","agent.agentInterrupted":"Agente interrompido","agent.agentPlan":"Plano do agente","agent.agentProcessing":"O agente está processando, você poderá continuar quando terminar...","agent.agentRunIdCopied":"ID de execução do agente copiado","agent.agentStarted":"Agente iniciado","agent.agentWorking":"O agente está trabalhando... (Esc Esc para parar)","agent.agentWorkingStop":"O agente está trabalhando... Pressione Esc duas vezes ou clique em Parar para interromper","agent.allMessages":"Todas as mensagens","agent.artifacts":"Artefatos","agent.askAnything":"Pergunte qualquer coisa... (arraste ou cole arquivos)","agent.batch":"Lote","agent.canceled":"","agent.cancelWorkflow":"Cancelar fluxo de trabalho","agent.clickToEnlarge":"Clique para ampliar","agent.cloneConversation":"Clonar conversa","agent.close":"Fechar","agent.closeFullscreen":"Fechar tela cheia","agent.completed":"Concluído","agent.continueConversation":"Continuar conversa","agent.conversationCloned":"Conversa clonada","agent.conversationContinued":"Conversa continuada","agent.copied":"Copiado","agent.copiedAllToolCalls":"Todas as chamadas de ferramentas copiadas para a área de transferência","agent.copiedBatchDetails":"Detalhes do lote copiados para a área de transferência","agent.copiedToClipboard":"Copiado para a área de transferência","agent.copy":"Copiar","agent.copyAgentRunId":"Copiar ID de execução do agente","agent.copyAllToolCalls":"Copiar todas as chamadas de ferramentas","agent.copyBatchDetails":"Copiar detalhes do lote","agent.copyMessage":"Copiar mensagem","agent.copyRunId":"Copiar ID de execução","agent.copyToClipboard":"Copiar para a área de transferência","agent.copyWorkflowRunId":"Copiar ID de execução do fluxo de trabalho","agent.dashboard":"Painel","agent.details":"Detalhes","agent.document":"Documento","agent.documentAttachments":"Anexos de documentos","agent.documentAttachmentsDescription":"Documentos da loja anexados a esta mensagem. O agente pode recuperá-los por ID a qualquer momento, ou reanexá-los para incluir o conteúdo diretamente.","agent.documents":"Documentos","agent.download":"Baixar","agent.downloadConversation":"Baixar conversa","agent.dropFilesToUpload":"Solte arquivos para enviar","agent.elapsed":"{{seconds}}s decorridos","agent.enlargedView":"Vista ampliada","agent.enterMessage":"Digite uma mensagem para iniciar uma conversa","agent.enterToSend":"Enter para enviar • Shift+Enter para nova linha","agent.error":"Erro","agent.errorStarting":"Erro ao iniciar o fluxo de trabalho","agent.exit":"Sair","agent.exitFullscreen":"Sair da tela cheia","agent.export":"Exportar","agent.exportAsPdf":"Exportar como PDF","agent.exportAsPng":"Exportar como PNG","agent.exportAsWord":"Exportar como Word","agent.exporting":"Exportando...","agent.exportMessage":"Exportar mensagem","agent.failedToCancelWorkflow":"Falha ao cancelar fluxo de trabalho","agent.failedToCloneConversation":"Falha ao clonar conversa","agent.failedToContinueConversation":"Falha ao continuar conversa","agent.failedToDownload":"Falha ao baixar a conversa","agent.failedToInterrupt":"Falha ao interromper","agent.failedToLoadDocument":"Falha ao carregar documento","agent.failedToSend":"Falha ao enviar a mensagem","agent.filesProcessing":"Arquivos ainda em processamento","agent.filesStagedCount_one":"{{count}} arquivo preparado - será enviado quando a conversa iniciar","agent.filesStagedCount_many":"{{count}} arquivos preparados - serão enviados quando a conversa iniciar","agent.filesStagedCount_other":"{{count}} arquivos preparados - serão enviados quando a conversa iniciar","agent.filesUploadedDescription":"Os arquivos enviados nesta conversa permanecem disponíveis o tempo todo. O agente pode acessá-los a qualquer momento.","agent.fullscreen":"Tela cheia","agent.hideDetails":"Ocultar detalhes","agent.hideSidebar":"Ocultar painel","agent.hideThinkingDetails":"Ocultar detalhes de pensamento","agent.inProgress":"Em andamento","agent.linkObject":"Vincular objeto","agent.loadingArtifacts":"Carregando artefatos...","agent.loadingDocument":"Carregando documento...","agent.main":"Principal","agent.mainWorkstream":"Fluxo principal","agent.moreActions":"Mais ações","agent.newerPlan":"Plano mais recente","agent.no":"Não","agent.noActiveWorkstreams":"Sem fluxos ativos","agent.noAgentRunning":"Nenhum agente em execução no momento","agent.noArtifactsYet":"Sem artefatos ainda","agent.noContentAvailable":"Nenhum conteúdo disponível","agent.noContentToExport":"Nenhum conteúdo para exportar","agent.noConversationContent":"Nenhum conteúdo de conversa disponível para exportar","agent.noDocumentsOpen":"Sem documentos abertos","agent.noFilesUploadedYet":"Sem arquivos enviados","agent.noMessagesInWorkstream":"Nenhuma mensagem neste fluxo de trabalho ainda...","agent.noPlanAvailable":"Sem plano disponível","agent.noPlanDetected":"Nenhum plano detectado ainda","agent.olderPlan":"Plano anterior","agent.openDocument":"Abrir documento","agent.openInNewTab":"Abrir em nova aba","agent.payload":"Payload","agent.pdfExportFailed":"Falha na exportação PDF","agent.pdfExportReady":"Exportação PDF pronta","agent.pending":"Pendente","agent.plan":"Plano","agent.planProgress":"Progresso do plano","agent.plansWillAppear":"Os planos aparecerão aqui quando o agente criar um","agent.printDialogDescription":"Use a caixa de diálogo de impressão do seu navegador para salvar como PDF","agent.processing":"Processando...","agent.ready":"Pronto","agent.refresh":"Atualizar","agent.remaining":"{{seconds}}s restantes","agent.retry":"Tentar novamente","agent.runIdCopied":"ID de execução copiado","agent.searchDocuments":"Pesquisar documentos","agent.selectInteraction":"Selecione uma interação e clique em Iniciar para iniciar um agente","agent.send":"Enviar","agent.showAllMessages":"Mostrar todas as mensagens","agent.showDetails":"Mostrar detalhes","agent.showSidebar":"Mostrar painel","agent.staged":"Preparado","agent.startAgent":"Iniciar agente","agent.startingAgent":"Iniciando agente...","agent.startingAgentUploading":"Iniciando agente e enviando arquivos...","agent.startNewConversation":"Iniciar nova conversa","agent.stepByStepPlan":"Plano passo a passo","agent.stop":"Parar","agent.stopAgent":"Parar o agente","agent.submitSelection":"Enviar seleção","agent.submitSelectionCount_one":"Enviar seleção ({{count}})","agent.submitSelectionCount_many":"Enviar seleção ({{count}})","agent.submitSelectionCount_other":"Enviar seleção ({{count}})","agent.summary":"Resumo","agent.taskProgress":"Progresso das tarefas","agent.toggleRightSidebar":"Alternar painel lateral","agent.typeNewInstructions":"Digite sua mensagem para dar novas instruções","agent.typeQuestionBelow":"Digite sua pergunta abaixo e pressione Enter ou clique em {{buttonText}} para começar","agent.typeYourMessage":"Digite sua mensagem...","agent.typeYourResponse":"Digite sua resposta...","agent.unableToOpenPrint":"Não foi possível abrir a visualização de impressão","agent.unknownError":"Erro desconhecido","agent.unknownTime":"Hora desconhecida","agent.upload":"Enviar","agent.uploadedFiles":"Arquivos enviados","agent.uploadFailed":"Falha no envio","agent.uploading":"Enviando...","agent.uploads":"Envios","agent.waitForFiles":"Aguarde o término do processamento dos arquivos","agent.waitForFilesProcessing":"Por favor, aguarde todos os arquivos terminarem de processar antes de enviar","agent.waiting":"Aguardando...","agent.waitingForAgentResponse":"Aguardando resposta do agente...","agent.workflowCancelled":"Fluxo de trabalho cancelado","agent.workflowRunIdCopied":"ID de execução do fluxo de trabalho copiado","agent.working":"Trabalhando...","agent.workstreams":"Fluxos de trabalho","agent.yes":"Sim","auth.continueWithEnterprise":"Continuar com SSO empresarial","auth.continueWithGithub":"Continuar com GitHub","auth.continueWithGoogle":"Continuar com Google","auth.continueWithMicrosoft":"Continuar com Microsoft","auth.enterEnterpriseEmail":"Digite seu e-mail empresarial","auth.error":"Erro: {{message}}","auth.firstTimeDetails":"Vamos fazer apenas algumas perguntas e você estará pronto.","auth.firstTimeMessage":"Primeira vez aqui? Sem problemas, é grátis para experimentar!","auth.goBack":"Voltar","auth.invalidEmail":"Endereço de e-mail inválido","auth.logInOrSignUp":"Entrar ou Cadastrar-se","auth.needToMakeChange":"Precisa fazer uma alteração?","auth.or":"OU","auth.privacyPolicy":"Política de Privacidade","auth.signInError":"Desculpe, não conseguimos fazer seu login.","auth.signInErrorContact":"Por favor, tente novamente ou entre em contato com","auth.signInErrorPersists":"se o problema persistir.","auth.tenantNotFound":"Organização não encontrada","auth.termsOfService":"Termos de Serviço","errors.failedToLoadTenantConfig":"Falha ao carregar a configuração do tenant","errors.somethingWentWrong":"Desculpe, algo deu errado...","errors.teamNotifiedLine1":"Nossa equipe foi notificada e trabalhará rapidamente para resolver o problema.","errors.teamNotifiedLine2":"Se você deseja escalar ou simplesmente entrar em contato conosco, envie um e-mail para","filter.clearAll":"Limpar tudo","filter.filter":"Filtrar","filter.filterBy":"Filtrar por {{view}}","filter.filterPlaceholder":"Filtrar...","filter.from":"De:","filter.noAvailableFilters":"Nenhum filtro disponível","filter.noMatchingFilters":"Nenhum filtro correspondente","filter.noResultsFound":"Nenhum resultado encontrado.","filter.selectRange":"Selecionar intervalo","filter.to":"Até:","form.filter":"Filtrar...","layout.pageNotFound":"Página não encontrada","layout.search":"Pesquisar","layout.searchPlaceholder":"Pesquisar...","login.accept":"Aceitar","login.reject":"Rejeitar","login.reviewInvites":"Revisar convites","login.terminal.account":"Conta","login.terminal.accountRequired":"A conta é obrigatória","login.terminal.accountRequiredDesc":"Por favor, selecione uma conta para autorizar o cliente a acessar os servidores ComposablePrompts","login.terminal.authorizeClient":"Autorizar cliente","login.terminal.authPayloadCopied":"Payload de autenticação copiado","login.terminal.authPayloadCopiedSuccess":"Você pode fechar esta página. O CLI deveria ter recebido o token.","login.terminal.authPayloadCopiedWithError":"Você pode colar o payload no terminal. Nota: o CLI não recebeu o token. Ocorreu um erro: {{error}}","login.terminal.browserPermissionNote":"Nota: se o seu navegador solicitar permissão para acessar sua rede local, por favor permita. Isso é necessário para enviar o token de autorização de volta ao CLI. Caso contrário, você precisará copiar/colar o token manualmente no seu terminal.","login.terminal.chooseAccountProject":"Você deve escolher a conta e o projeto de destino para o acesso do cliente.","login.terminal.clientAuthenticated":"O cliente está autenticado. Você pode fechar esta página.","login.terminal.clientWantsAuth":"Um aplicativo cliente deseja autorização para acessar os servidores ComposablePrompts em seu nome.","login.terminal.copyAuthPayload":"Copiar o payload de autenticação","login.terminal.envLocalDev":"Dev local","login.terminal.envProduction":"Produção","login.terminal.envStaging":"Staging","login.terminal.errorAuthorizingClient":"Erro ao autorizar o cliente","login.terminal.errorLoadingProjects":"Erro ao carregar os projetos","login.terminal.failedToGetToken":"Falha ao obter o token composable","login.terminal.failedToSendToken":"Falha ao enviar o token de autorização ao CLI","login.terminal.failedToSendTokenDesc":'Isso pode ocorrer devido a verificações de segurança no Safari. O erro é "{{error}}"',"login.terminal.invalidRequest":"Solicitação inválida","login.terminal.invalidRequestDesc":"Esta página deve ser chamada por um cliente de terminal para se autenticar nos servidores ComposablePrompts","login.terminal.profileName":"Nome do perfil","login.terminal.profileNameNote":"Além disso, insira um nome de perfil que será usado para salvar a autorização na configuração do seu cliente.","login.terminal.profileRequired":"O perfil é obrigatório","login.terminal.profileRequiredDesc":"Por favor, insira um nome de perfil para salvar a autorização do cliente","login.terminal.project":"Projeto","login.terminal.projectRequired":"O projeto é obrigatório","login.terminal.projectRequiredDesc":"Por favor, selecione um projeto para autorizar o cliente a acessar os servidores ComposablePrompts","login.terminal.selectAccount":"Selecionar conta","login.terminal.selectProject":"Selecionar projeto","mcpOAuth.authenticate":"Autenticar","mcpOAuth.authenticating":"Autenticando...","mcpOAuth.connect":"Conectar","mcpOAuth.connected":"Conectado","mcpOAuth.connecting":"Conectando...","mcpOAuth.disconnect":"Desconectar","mcpOAuth.notConnected":"Não conectado","misc.copiedToClipboard":"Copiado para a área de transferência","misc.copy":"Copiar","misc.failedToCopy":"Falha ao copiar","misc.noData":"Nenhum dado para exibir","misc.tableView":"Visualização em tabela","misc.thumbnailView":"Visualização em miniaturas","modal.cancel":"Cancelar","modal.confirm":"Confirmar","modal.delete.error":"Ocorreu um erro ao excluir o objeto","modal.delete.failed":"Falha ao excluir","modal.delete.succeeded":"Exclusão bem-sucedida","modal.save":"Salvar","modal.saveChanges":"Salvar alterações","modal.saveVersion.createDescription":"Criar uma nova revisão com essas alterações de propriedades, preservando o original.","modal.saveVersion.createNew":"Criar nova versão","modal.saveVersion.createWithFileDescription":"Criar uma nova revisão com o arquivo substituto, preservando o original.","modal.saveVersion.howToSave":"Como você gostaria de salvar essas alterações?","modal.saveVersion.replaceFile":"Você está prestes a substituir o arquivo de conteúdo por:","modal.saveVersion.updateCurrent":"Atualizar versão atual","modal.saveVersion.updateDescription":"Modificar as propriedades diretamente na revisão atual.","modal.saveVersion.updateWithFileDescription":"Substituir o arquivo de conteúdo e modificar as propriedades diretamente na revisão atual.","modal.saveVersion.versionLabel":"Rótulo da versão (Opcional)","modal.saveVersion.versionLabelDescription":"Rótulo opcional para a nova versão.","modal.saveVersion.versionLabelPlaceholder":"ex., v1.2, aprovado, pós-revisão","oauthProvider.authenticate":"Autenticar","oauthProvider.authenticating":"Autenticando...","oauthProvider.connected":"Conectado","oauthProvider.disconnect":"Desconectar","pdf.close":"Fechar","pdf.closeFullscreen":"Fechar tela cheia","pdf.download":"Baixar","pdf.failedToLoadViewer":"Falha ao carregar o visualizador de PDF","pdf.fetchingDocumentFailed":"Falha ao buscar o documento","pdf.fitToWidth":"Ajustar à largura","pdf.fullscreen":"Tela cheia","pdf.instrumentedImages":"Imagens instrumentadas","pdf.nextPage":"Próxima página","pdf.noPdfAvailable":"Nenhum PDF disponível","pdf.originalImages":"Imagens originais","pdf.page":"Página","pdf.pageOf":"Página {{pageNumber}} / {{totalPages}}","pdf.previousPage":"Página anterior","pdf.zoomIn":"Ampliar","pdf.zoomOut":"Reduzir","shell.accessDenied":"Acesso negado","shell.applicationNotRegistered":"Aplicativo não registrado","shell.organization":"Organização","shell.selectOrganization":"Selecionar organização","shell.selectProject":"Selecionar projeto","signup.accountType":"Tipo de conta","signup.activelyExploring":"Explorando ativamente LLM em um projeto","signup.alreadyUsing":"Já usando LLM em produção","signup.company":"Empresa","signup.companyDescription":"Para uma empresa ou organização.","signup.companyName":"Nome da empresa","signup.companySize":"Tamanho da empresa","signup.companyWebsite":"Site da empresa","signup.justTesting":"Apenas testando ou avaliando LLM","signup.migratingLLMs":"Migrando para diferentes LLM","signup.other":"Outro","signup.personal":"Pessoal","signup.personalDescription":"Para uso pessoal ou uma pequena equipe.","signup.pleaseEnterOrgName":"Por favor, insira um nome de organização","signup.pleaseSelectAccountType":"Por favor, selecione um tipo de conta","signup.pleaseSelectCompanySize":"Por favor, selecione um tamanho de empresa","signup.projectMaturity":"Maturidade do projeto","signup.selectCompanySize":"Selecionar tamanho da empresa","signup.selectProjectMaturity":"Selecionar maturidade do projeto","signup.signUp":"Cadastrar-se","signup.size1001to5000":"1001-5000 funcionários","signup.size101to1000":"101-1000 funcionários","signup.size11to100":"11-100 funcionários","signup.size1to10":"1-10 funcionários","signup.size5000plus":"5000+ funcionários","signup.welcomeMessage":"Bem-vindo ao Vertesia, {{name}} ({{email}}).\nConte-nos um pouco sobre você e estará pronto.\nNão é necessário cartão de crédito.","signup.wrongAccountGoBack":"Conta errada, voltar","store.actions.addToCollection":"Adicionar à coleção","store.actions.addToCollectionBody":"Adicionar os objetos selecionados a uma coleção existente ou criar uma nova.","store.actions.addToCollectionButton":"Adicionar à coleção","store.actions.addToCollectionDesc":"Adicionar documentos a uma coleção","store.actions.addToCollectionFailure":"Falha ao adicionar à coleção","store.actions.addToCollectionFailureDesc":"Falha ao adicionar os objetos selecionados à coleção","store.actions.addToCollectionSuccess":"Adicionado à coleção com sucesso","store.actions.addToCollectionSuccessDesc_one":"{{count}} objeto adicionado à coleção","store.actions.addToCollectionSuccessDesc_many":"{{count}} objetos adicionados à coleção","store.actions.addToCollectionSuccessDesc_other":"{{count}} objetos adicionados à coleção","store.actions.addToCollectionTitle":"Adicionar a uma coleção","store.actions.areYouSure":"Tem certeza?","store.actions.cannotRemoveNoCollection":"Não é possível remover objetos: nenhuma coleção especificada","store.actions.changeContentType":"Alterar tipo de conteúdo","store.actions.changeContentTypeDesc":"Alterar o tipo de conteúdo dos documentos selecionados","store.actions.changeType":"Alterar tipo","store.actions.chooseExistingCollections":"Escolher de coleções existentes","store.actions.chooseWorkflowRule":"Escolha uma regra de fluxo de trabalho para iniciar:","store.actions.confirmDeleteAll":"Tem certeza de que deseja excluir todos os objetos selecionados? Esta ação não pode ser desfeita.","store.actions.confirmDeleteSelected":"Tem certeza de que deseja excluir os objetos selecionados?\nIsso não os remove das coleções.","store.actions.createNew":"Criar novo","store.actions.delete":"Excluir","store.actions.deleteObjects":"Excluir objetos","store.actions.deleteTheSelectedObjects":"Excluir os objetos selecionados","store.actions.errorChangingType":"Erro ao alterar o tipo","store.actions.errorDeletingObjects":"Erro ao excluir objetos","store.actions.errorExportProperties":"Erro ao exportar propriedades","store.actions.errorRemovingObjects":"Erro ao remover objetos da coleção","store.actions.errorStartingWorkflow":"Erro ao iniciar o fluxo de trabalho","store.actions.exportAllObjectProperties":"Exportar todas as propriedades dos objetos","store.actions.exportProperties":"Exportar propriedades","store.actions.noCollectionContext":"Sem contexto de coleção","store.actions.noObjectsSelected":"Nenhum objeto selecionado","store.actions.pleaseSelectObjectsToDelete":"Por favor, selecione objetos para excluir","store.actions.pleaseSelectObjectsToRemove":"Por favor, selecione objetos para remover da coleção","store.actions.selectCollection":"Selecionar coleção","store.actions.startWorkflow":"Iniciar fluxo de trabalho","store.actions.startWorkflowByRule":"Iniciar um fluxo de trabalho por regra","store.actions.startWorkflowDesc":"Iniciar um fluxo de trabalho nos objetos selecionados","store.actions.workflowStarted":"Fluxo de trabalho iniciado","store.allowedContentTypes":"Tipos de conteúdo permitidos","store.allowedContentTypesOptionalDescription":"Opcionalmente selecione quais tipos de conteúdo podem ser adicionados à coleção. Se não definido, todos os tipos de conteúdo são permitidos.","store.allowedContentTypesSelectDescription":"Selecione quais tipos de conteúdo podem ser adicionados à coleção. Se não definido, todos os tipos de conteúdo são permitidos.","store.areYouSureDeleteCollection":"Tem certeza de que deseja excluir esta coleção? Esta ação não pode ser desfeita.","store.audioFormatRequired":"Formato MP3, M4A, OGG, WAV ou WebM necessário","store.automaticTypeDetection":"Detecção automática de tipo","store.automaticTypeDetectionDescription":"Vertesia analisará o conteúdo e selecionará o tipo mais apropriado. Isto é recomendado para a maioria dos envios e garante um processamento ideal.","store.cancelEdit":"Cancelar","store.chooseAFormat":"Escolher um formato","store.chooseContentType":"Escolher um tipo de conteúdo...","store.chooseContentTypes":"Escolher tipos de conteúdo...","store.chooseWhatToExport":"Escolher o que exportar","store.clearSelection":"Limpar seleção","store.close":"Fechar","store.collectionCreated":"Coleção criada","store.collectionDeleted":"Coleção excluída","store.collectionFetchFailed":"Falha ao obter a coleção","store.collectionPropertiesUpdated":"Propriedades da coleção atualizadas","store.collectionsSelected_one":"{{count}} coleção selecionada","store.collectionsSelected_many":"{{count}} coleções selecionadas","store.collectionsSelected_other":"{{count}} coleções selecionadas","store.collectionUpdated":"Coleção atualizada","store.collectionUpdatedSuccess":"A coleção foi atualizada com sucesso","store.configuration":"Configuração","store.confirmSelection":"Confirmar seleção","store.contentCopied":"{{type}} copiado","store.contentExported":"Conteúdo exportado","store.contentType":"Tipo de conteúdo","store.convertingToPdf":"Convertendo para PDF...","store.copyFailed":"Falha ao copiar","store.createACollection":"Criar uma coleção","store.createCollection":"Criar coleção","store.created":"Criado","store.createdBy":"Criado por","store.createType":"Criar tipo","store.deleteCollection":"Excluir coleção","store.documentExported":"Documento exportado","store.documentInformation":"Informações do documento","store.documentListRefreshed":"Lista de documentos atualizada","store.documentListRefreshedDesc":"A lista de documentos foi atualizada com seus arquivos enviados.","store.documentPreview":"Pré-visualização do documento","store.downloadFailed":"Falha no download","store.dynamicCollection":"Coleção dinâmica","store.dynamicCollectionDescription":"Obter dinamicamente o conteúdo da coleção com base em uma consulta. Se não habilitado, o conteúdo deve ser adicionado por usuários ou agentes.","store.editingGenericDocument":"Editando propriedades de documento genérico","store.editJson":"Editar JSON","store.editProperties":"Editar propriedades","store.editSchema":"Editar esquema","store.editText":"Editar texto","store.embeddings":"Embeddings","store.enableSyncMemberHeads":"Habilitar sincronização de versões dos membros","store.error":"Erro","store.errorCheckingDuplicates":"Houve um erro ao verificar arquivos duplicados","store.errorCreatingType":"Erro ao criar o tipo","store.errorInUploadProcessingCheck":"Erro na verificação do processamento de arquivos","store.errorProcessingFiles":"Erro ao processar arquivos","store.errorSavingText":"Falha ao salvar o texto","store.errorSavingTextDefault":"Ocorreu um erro ao salvar o conteúdo de texto.","store.errorUpdatingProperties":"Erro ao atualizar as propriedades","store.errorUpdatingPropertiesDefault":"Ocorreu um erro ao atualizar as propriedades.","store.exportFailed":"Falha na exportação","store.exportInProgress":"EXPORTAÇÃO EM ANDAMENTO","store.failedToConvertToPdf":"Falha ao converter para PDF","store.failedToCopy":"Falha ao copiar {{type}} para a área de transferência","store.failedToCreateCollection":"Falha ao criar a coleção","store.failedToDeleteCollection":"Falha ao excluir a coleção","store.failedToDownloadFile":"Falha ao baixar o arquivo","store.failedToDownloadPdf":"Falha ao baixar o arquivo PDF","store.failedToExportContent":"Falha ao exportar o conteúdo","store.failedToExportDocument":"Falha ao exportar o documento","store.failedToFetchRoleMappings":"Falha ao obter os mapeamentos de funções","store.failedToFetchTypes":"Falha ao obter os tipos de objetos","store.failedToFetchWorkflows":"Falha ao obter os fluxos de trabalho","store.failedToGetDownloadUrl":"Falha ao obter a URL de download","store.failedToLoadDocument":"Falha ao carregar o documento","store.failedToLoadType":"Falha ao carregar o tipo","store.failedToUpdateCollection":"Falha ao atualizar a coleção","store.failedToUpdateCollectionProperties":"Falha ao atualizar as propriedades da coleção","store.failedToUpdateSchema":"Falha ao atualizar o esquema","store.failedToUpdateSharedProperties":"Falha ao atualizar as propriedades compartilhadas","store.failedToUpdateSkipHeadSync":"Falha ao atualizar a sincronização de versões","store.failedToUpdateTableLayout":"Falha ao atualizar o layout de tabela","store.filesAnalyzedTitle":"Arquivos analisados","store.filesReadyToProcess":"Arquivos prontos para processar","store.filterByName":"Filtrar por nome","store.fullText":"Texto completo","store.fullView":"Vista completa","store.getStartedCollections":"Comece criando uma nova coleção.","store.getStartedTypes":"Comece criando um novo tipo.","store.id":"ID","store.invalidJson":"JSON inválido","store.invalidJsonSchema":"Esquema JSON inválido","store.invalidQueryJson":"JSON de consulta inválido","store.invalidTableLayout":"Layout de tabela inválido","store.isChunkable":"É fragmentável","store.limit":"Limite","store.loadingDocument":"Carregando documento...","store.loadingProcessingStatus":"Carregando status de processamento...","store.na":"N/A","store.name":"Nome","store.newCollections":"Novas coleções","store.newVersionCreated":"Nova versão criada","store.newVersionCreatedDesc":"Uma nova versão com as propriedades atualizadas foi criada.","store.noAudioRendition":"Nenhuma representação de áudio compatível com web disponível","store.noCollections":"Sem coleções","store.noCollectionsAvailable":"Nenhuma coleção disponível.","store.noCollectionsFound":"Nenhuma coleção encontrada.","store.noFilesSelected":"Nenhum arquivo selecionado","store.none":"Nenhum","store.noObjectsDragAndDrop":"Sem objetos. Arraste e solte documentos ou imagens aqui para criar objetos de conteúdo.","store.noPreviewAvailable":"Sem pré-visualização disponível para este tipo de documento.","store.noProjectSelected":"Nenhum projeto selecionado","store.noPropertiesAvailable":"Sem propriedades disponíveis para este documento.","store.noPropertiesDefined":"Nenhuma propriedade definida","store.noTranscriptAvailable":"Nenhuma transcrição disponível","store.noType":"Sem tipo","store.noValidFilesSelected":"Nenhum arquivo válido selecionado","store.noVideoRendition":"Nenhuma representação de vídeo compatível com web disponível","store.openFullDocument":"Abrir documento completo","store.openFullDocumentView":"Abrir vista completa do documento","store.optional":"(Opcional)","store.pdfConversionFailed":"Falha na conversão PDF","store.pdfPreviewFullView":"A pré-visualização do documento PDF está disponível na vista completa.","store.pleaseFixJsonSyntax":"Por favor, corrija os erros de sintaxe JSON antes de salvar.","store.pleaseProvideName":"Por favor, forneça um nome para a coleção","store.pleaseSelectValidFiles":"Por favor, selecione arquivos com conteúdo válido.","store.pleaseWait":"POR FAVOR AGUARDE","store.preview":"Pré-visualização","store.previewProperties":"Pré-visualizar propriedades","store.processingFailedFor":"O processamento falhou para {{name}}","store.processingFiles":"Processando arquivos","store.properties":"Propriedades","store.propertiesUpdated":"Propriedades atualizadas","store.propertiesUpdatedDesc":"As propriedades do objeto foram atualizadas com sucesso.","store.query":"Consulta","store.queryDescription":"Defina a consulta para obter dinamicamente o conteúdo da coleção.","store.refresh":"Atualizar","store.renderingDocument":"Renderizando seu documento...","store.saveChanges":"Salvar alterações","store.saveText":"Salvar","store.schemaEditor":"Editor de esquema","store.schemaUpdated":"Esquema atualizado","store.schemaUpdatedSuccess":"O esquema foi atualizado com sucesso","store.search":"Pesquisar","store.searchCollections":"Pesquisar coleções","store.searchFailed":"Falha na pesquisa","store.searching":"Pesquisando...","store.searchPlaceholder":"Digite o que procura, ou selecione um filtro","store.searchTypes":"Pesquisar tipos","store.selectACollection":"Selecionar uma coleção","store.selectContentType":"Selecionar tipo de conteúdo","store.selectContentTypeAuto":"Selecione um tipo de conteúdo ou deixe vazio para detecção automática","store.selectContentTypeLabel":"Selecione um tipo de conteúdo","store.selectPropertiesToShare":"Selecionar propriedades para compartilhar","store.semanticChunking":"Fragmentação semântica","store.semanticSearch":"Pesquisa semântica","store.semanticSearchSettings":"Configurações de pesquisa semântica","store.sharedProperties":"Propriedades compartilhadas","store.sharedPropertiesDescription":"Adicione propriedades para compartilhar entre todos os membros da coleção. Este recurso requer a habilitação da sincronização de propriedades compartilhadas no projeto.","store.showingFirst128K":"Mostrando apenas os primeiros 128K caracteres","store.size":"Tamanho","store.staticCollection":"Coleção estática","store.strictMode":"Modo estrito","store.successfullyCopied":"{{type}} copiado para a área de transferência com sucesso","store.successfullyExportedTo":"Exportado com sucesso para {{format}}","store.syncMemberHeads":"Sincronizar versões dos membros","store.syncMemberHeadsDescription":"Quando uma nova versão HEAD de um membro é criada, a coleção será atualizada para apontar para a nova versão HEAD.","store.tableLayout":"Layout de tabela","store.tableLayoutDescription":"Defina um layout personalizado para exibir a coleção em tabelas.","store.tableLayoutUpdated":"Layout de tabela atualizado","store.tableLayoutUpdatedDesc":"O layout de tabela foi atualizado com sucesso","store.textConflict":"O documento foi modificado em outro lugar. Por favor, atualize e tente novamente.","store.textSaved":"Conteúdo de texto salvo","store.typeCreated":"Tipo criado","store.typeDescription":"Opcionalmente selecione um tipo de conteúdo para atribuir propriedades e dados personalizados à coleção.","store.typeSelectDescription":"Selecione um tipo de conteúdo para atribuir propriedades e dados personalizados à coleção.","store.unknown":"Desconhecido","store.unsavedChanges":"Alterações não salvas","store.updated":"Atualizado","store.updatedAt":"Atualizado em","store.updatedBy":"Atualizado por","store.updatedSharedProperties":"Propriedades compartilhadas atualizadas","store.updatedSkipHeadSync":"Configuração de sincronização de versões atualizada","store.upload":"Enviar","store.uploadComplete":"Envio concluído","store.uploadIssues":"Problemas de envio","store.validationFailed":"Falha na validação","store.videoFormatRequired":"Formato MP4 ou WebM necessário","store.viewAsPdf":"Ver como PDF","store.viewAudio":"Ver áudio","store.viewImage":"Ver imagem","store.viewingNewVersion":"Visualizando nova versão","store.viewingNewVersionDefault":"Agora visualizando a nova versão","store.viewingVersionLabel":"Agora visualizando a versão '{{label}}'","store.viewInJsonFormat":"Ver em formato JSON","store.viewPdf":"Ver PDF","store.viewText":"Ver texto","store.viewTranscript":"Ver transcrição","store.viewVideo":"Ver vídeo","theme.dark":"Escuro","theme.label":"Tema","theme.light":"Claro","theme.system":"Sistema","type.description":"Descrição","type.name":"Nome","type.nameRequired":"O nome é obrigatório","type.type":"Tipo","upload.allFilesExist_one":"{{count}} arquivo já existe","upload.allFilesExist_many":"{{count}} arquivos já existem","upload.allFilesExist_other":"{{count}} arquivos já existem","upload.analyzingFiles":"Analisando arquivos...","upload.checkingForDuplicates":"Verificando duplicatas e atualizações","upload.collectionLabel":"Coleção:","upload.contentTypeTooltip":"Selecione um tipo de conteúdo para aplicar aos arquivos enviados. Se deixado vazio, Vertesia detectará automaticamente o tipo com base no conteúdo do arquivo.","upload.continue":"Continuar","upload.dragAndDrop":"Arraste e solte arquivos aqui ou clique para selecionar","upload.errorAnalyzingFiles":"Houve um erro ao analisar os arquivos","upload.failedToUpload":"Falha ao enviar","upload.fileAnalysisResults":"Resultados da análise de arquivos","upload.filesAnalyzed":"Arquivos analisados","upload.filesProcessed_one":"{{count}} arquivo processado","upload.filesProcessed_many":"{{count}} arquivos processados","upload.filesProcessed_other":"{{count}} arquivos processados","upload.filesReadyToProcess_one":"{{count}} arquivo está pronto para processar","upload.filesReadyToProcess_many":"","upload.filesReadyToProcess_other":"{{count}} arquivos estão prontos para processar","upload.filesToSkip_one":"{{count}} arquivo já está no sistema e será ignorado.","upload.filesToSkip_many":"","upload.filesToSkip_other":"{{count}} arquivos já estão no sistema e serão ignorados.","upload.folderLabel":"Pasta:","upload.inCollection":" na coleção '{{collection}}'","upload.inFolder":" na pasta '{{location}}'","upload.new":"Novo","upload.noFilesToProcess":"Nenhum arquivo para processar.","upload.noItems":"Nenhum item para exibir","upload.preparingFiles_one":"Preparando para enviar {{count}} arquivo...","upload.preparingFiles_many":"Preparando para enviar {{count}} arquivos...","upload.preparingFiles_other":"Preparando para enviar {{count}} arquivos...","upload.preparingFolder_one":"Preparando para enviar 1 pasta com {{fileCount}} arquivos...","upload.preparingFolder_many":"Preparando para enviar {{folderCount}} pastas com {{fileCount}} arquivos...","upload.preparingFolder_other":"Preparando para enviar {{folderCount}} pastas com {{fileCount}} arquivos...","upload.processedCount":"{{processed}}/{{total}} arquivos processados...","upload.processingFilesAction":"Processando arquivos ({{action}})","upload.selectFiles":"Selecionar arquivos","upload.selectFolder":"Selecionar pasta","upload.skip":"Ignorar","upload.skippedAlreadyExisted":"Ignorado (já existia)","upload.successfullyUpdated":"Atualizado com sucesso","upload.successfullyUploaded":"Enviado com sucesso","upload.update":"Atualizar","upload.uploadComplete":"Envio concluído","upload.uploadFiles":"Enviar arquivos","upload.uploadingFiles":"Enviando arquivos","upload.uploadLocation":"Local de envio:","upload.uploadMore":"Enviar mais","upload.uploadProcessInterrupted":"Processo de envio interrompido","upload.useAutoDetection":"Usar detecção automática de tipo","upload.useTypeName":"Usar {{typeName}}","user.account":"Conta:","user.agentOnBehalfOf":"Agente em nome de","user.agentOnBehalfOfApiKey":"Agente em nome da chave API","user.allProjectMembers":"Todos os membros do projeto","user.allProjectMembersDescription":"Todos os membros deste projeto têm esta permissão.","user.appVersion":"Versão do aplicativo","user.environment":"Ambiente","user.failedToFetchApiKey":"Falha ao obter a chave API","user.failedToFetchGroup":"Falha ao obter o grupo","user.failedToFetchUser":"Falha ao obter o usuário","user.groupId":"ID do grupo: {{id}}","user.key":"Chave:","user.organizationId":"ID da organização","user.organizationRoles":"Funções na organização","user.privateKey":"Chave privada","user.project":"Projeto:","user.projectId":"ID do projeto","user.projectRoles":"Funções no projeto","user.schedule":"Agendar {{title}}","user.sdkVersion":"Versão do SDK","user.server":"Servidor","user.serviceAccount":"Conta de serviço","user.serviceAccountDescription":"Este usuário é utilizado por robôs como os workers de fluxo de trabalho.","user.store":"Store","user.systemUser":"Usuário do sistema","user.systemUserDescription":"O usuário do sistema é utilizado para inicializar objetos integrados.","user.tenantId":"ID do tenant","user.unknown":"desconhecido","user.unknownUser":"Usuário desconhecido","user.unknownUserDescription":"As informações do usuário não estão disponíveis.","user.unnamedGroup":"Grupo sem nome","user.user":"Usuário","user.userId":"ID do usuário","widgets.schema.editDescription":"Editar descrição","widgets.schema.invalidPropertyDeclaration":"Declaração de propriedade inválida"}},ru:{[Un]:{"agent.activeWorkstreams_one":"У агента {{count}} активный рабочий поток","agent.activeWorkstreams_few":"У агента {{count}} активных рабочих потока","agent.activeWorkstreams_many":"У агента {{count}} активных рабочих потоков","agent.activeWorkstreams_other":"У агента {{count}} активных рабочих потоков","agent.agentConversation":"Разговор с агентом","agent.agentInterrupted":"Агент прерван","agent.agentPlan":"План агента","agent.agentProcessing":"Агент обрабатывает, вы сможете продолжить после завершения...","agent.agentRunIdCopied":"ID запуска агента скопирован","agent.agentStarted":"Агент запущен","agent.agentWorking":"Агент работает... (Esc Esc для остановки)","agent.agentWorkingStop":"Агент работает... Нажмите Esc дважды или нажмите Стоп для прерывания","agent.allMessages":"Все сообщения","agent.artifacts":"Артефакты","agent.askAnything":"Спросите что угодно... (перетащите или вставьте файлы)","agent.batch":"Пакет","agent.canceled":"","agent.cancelWorkflow":"Отменить рабочий процесс","agent.clickToEnlarge":"Нажмите для увеличения","agent.cloneConversation":"Клонировать разговор","agent.close":"Закрыть","agent.closeFullscreen":"Закрыть полноэкранный режим","agent.completed":"Завершено","agent.continueConversation":"Продолжить разговор","agent.conversationCloned":"Разговор клонирован","agent.conversationContinued":"Разговор продолжен","agent.copied":"Скопировано","agent.copiedAllToolCalls":"Все вызовы инструментов скопированы в буфер обмена","agent.copiedBatchDetails":"Детали пакета скопированы в буфер обмена","agent.copiedToClipboard":"Скопировано в буфер обмена","agent.copy":"Копировать","agent.copyAgentRunId":"Копировать ID запуска агента","agent.copyAllToolCalls":"Копировать все вызовы инструментов","agent.copyBatchDetails":"Копировать детали пакета","agent.copyMessage":"Копировать сообщение","agent.copyRunId":"Копировать ID запуска","agent.copyToClipboard":"Копировать в буфер обмена","agent.copyWorkflowRunId":"Копировать ID запуска воркфлоу","agent.dashboard":"Панель управления","agent.details":"Детали","agent.document":"Документ","agent.documentAttachments":"Вложения документов","agent.documentAttachmentsDescription":"Документы из хранилища, прикрепленные к этому сообщению. Агент может повторно получить их по ID в любое время или повторно прикрепить для включения содержимого напрямую.","agent.documents":"Документы","agent.download":"Скачать","agent.downloadConversation":"Скачать разговор","agent.dropFilesToUpload":"Перетащите файлы для загрузки","agent.elapsed":"{{seconds}}с прошло","agent.enlargedView":"Увеличенный вид","agent.enterMessage":"Введите сообщение, чтобы начать разговор","agent.enterToSend":"Enter для отправки • Shift+Enter для новой строки","agent.error":"Ошибка","agent.errorStarting":"Ошибка запуска рабочего процесса","agent.exit":"Выход","agent.exitFullscreen":"Выйти из полноэкранного режима","agent.export":"Экспорт","agent.exportAsPdf":"Экспорт в PDF","agent.exportAsPng":"Экспорт в PNG","agent.exportAsWord":"Экспорт в Word","agent.exporting":"Экспорт...","agent.exportMessage":"Экспорт сообщения","agent.failedToCancelWorkflow":"Не удалось отменить рабочий процесс","agent.failedToCloneConversation":"Не удалось клонировать разговор","agent.failedToContinueConversation":"Не удалось продолжить разговор","agent.failedToDownload":"Не удалось скачать разговор","agent.failedToInterrupt":"Не удалось прервать","agent.failedToLoadDocument":"Не удалось загрузить документ","agent.failedToSend":"Не удалось отправить сообщение","agent.filesProcessing":"Файлы ещё обрабатываются","agent.filesStagedCount_one":"{{count}} файл подготовлен - будет загружен при начале разговора","agent.filesStagedCount_few":"{{count}} файла подготовлены - будут загружены при начале разговора","agent.filesStagedCount_many":"{{count}} файлов подготовлено - будут загружены при начале разговора","agent.filesStagedCount_other":"{{count}} файлов подготовлено - будут загружены при начале разговора","agent.filesUploadedDescription":"Файлы, загруженные в эту беседу, остаются доступными на протяжении всего разговора. Агент может получить к ним доступ в любое время.","agent.fullscreen":"Полноэкранный режим","agent.hideDetails":"Скрыть детали","agent.hideSidebar":"Скрыть боковую панель","agent.hideThinkingDetails":"Скрыть детали размышлений","agent.inProgress":"В процессе","agent.linkObject":"Связать объект","agent.loadingArtifacts":"Загрузка артефактов...","agent.loadingDocument":"Загрузка документа...","agent.main":"Основной","agent.mainWorkstream":"Основной поток","agent.moreActions":"Дополнительные действия","agent.newerPlan":"Более новый план","agent.no":"Нет","agent.noActiveWorkstreams":"Нет активных потоков","agent.noAgentRunning":"Нет активного агента","agent.noArtifactsYet":"Артефактов пока нет","agent.noContentAvailable":"Нет доступного содержимого","agent.noContentToExport":"Нет содержимого для экспорта","agent.noConversationContent":"Нет содержимого разговора для экспорта","agent.noDocumentsOpen":"Нет открытых документов","agent.noFilesUploadedYet":"Файлы не загружены","agent.noMessagesInWorkstream":"Пока нет сообщений в этом рабочем потоке...","agent.noPlanAvailable":"План недоступен","agent.noPlanDetected":"План пока не обнаружен","agent.olderPlan":"Более старый план","agent.openDocument":"Открыть документ","agent.openInNewTab":"Открыть в новой вкладке","agent.payload":"Полезная нагрузка","agent.pdfExportFailed":"Ошибка экспорта PDF","agent.pdfExportReady":"Экспорт PDF готов","agent.pending":"Ожидание","agent.plan":"План","agent.planProgress":"Прогресс плана","agent.plansWillAppear":"Планы появятся здесь, когда агент создаст один","agent.printDialogDescription":"Используйте диалог печати браузера для сохранения в PDF","agent.processing":"Обработка...","agent.ready":"Готов","agent.refresh":"Обновить","agent.remaining":"{{seconds}}с осталось","agent.retry":"Повторить","agent.runIdCopied":"ID запуска скопирован","agent.searchDocuments":"Поиск документов","agent.selectInteraction":"Выберите взаимодействие и нажмите Запустить, чтобы запустить агента","agent.send":"Отправить","agent.showAllMessages":"Показать все сообщения","agent.showDetails":"Показать детали","agent.showSidebar":"Показать боковую панель","agent.staged":"Подготовлено","agent.startAgent":"Запустить агента","agent.startingAgent":"Запуск агента...","agent.startingAgentUploading":"Запуск агента и загрузка файлов...","agent.startNewConversation":"Начать новый разговор","agent.stepByStepPlan":"Пошаговый план","agent.stop":"Стоп","agent.stopAgent":"Остановить агента","agent.submitSelection":"Отправить выбор","agent.submitSelectionCount_one":"Отправить выбор ({{count}})","agent.submitSelectionCount_few":"Отправить выбор ({{count}})","agent.submitSelectionCount_many":"Отправить выбор ({{count}})","agent.submitSelectionCount_other":"Отправить выбор ({{count}})","agent.summary":"Сводка","agent.taskProgress":"Прогресс задач","agent.toggleRightSidebar":"Переключить правую панель","agent.typeNewInstructions":"Введите сообщение, чтобы дать новые инструкции","agent.typeQuestionBelow":"Введите ваш вопрос ниже и нажмите Enter или нажмите {{buttonText}}, чтобы начать","agent.typeYourMessage":"Введите сообщение...","agent.typeYourResponse":"Введите ваш ответ...","agent.unableToOpenPrint":"Не удалось открыть предпросмотр печати","agent.unknownError":"Неизвестная ошибка","agent.unknownTime":"Неизвестное время","agent.upload":"Загрузить","agent.uploadedFiles":"Загруженные файлы","agent.uploadFailed":"Ошибка загрузки","agent.uploading":"Загрузка...","agent.uploads":"Загрузки","agent.waitForFiles":"Дождитесь завершения обработки файлов","agent.waitForFilesProcessing":"Пожалуйста, дождитесь завершения обработки всех файлов перед отправкой","agent.waiting":"Ожидание...","agent.waitingForAgentResponse":"Ожидание ответа агента...","agent.workflowCancelled":"Рабочий процесс отменён","agent.workflowRunIdCopied":"ID запуска воркфлоу скопирован","agent.working":"Работает...","agent.workstreams":"Рабочие потоки","agent.yes":"Да","auth.continueWithEnterprise":"Продолжить с корпоративным SSO","auth.continueWithGithub":"Продолжить с GitHub","auth.continueWithGoogle":"Продолжить с Google","auth.continueWithMicrosoft":"Продолжить с Microsoft","auth.enterEnterpriseEmail":"Введите корпоративную почту","auth.error":"Ошибка: {{message}}","auth.firstTimeDetails":"Мы зададим пару вопросов, и вы сможете начать.","auth.firstTimeMessage":"Впервые здесь? Не проблема, можно попробовать бесплатно!","auth.goBack":"Назад","auth.invalidEmail":"Недействительный адрес электронной почты","auth.logInOrSignUp":"Войти или Зарегистрироваться","auth.needToMakeChange":"Нужно что-то изменить?","auth.or":"ИЛИ","auth.privacyPolicy":"Политика конфиденциальности","auth.signInError":"Извините, не удалось выполнить вход.","auth.signInErrorContact":"Пожалуйста, попробуйте снова или свяжитесь с","auth.signInErrorPersists":"если проблема сохраняется.","auth.tenantNotFound":"Организация не найдена","auth.termsOfService":"Условия использования","errors.failedToLoadTenantConfig":"Не удалось загрузить конфигурацию тенанта","errors.somethingWentWrong":"Извините, что-то пошло не так...","errors.teamNotifiedLine1":"Наша команда была уведомлена и быстро работает над решением проблемы.","errors.teamNotifiedLine2":"Если вы хотите сообщить о проблеме или просто связаться с нами, отправьте нам письмо на","filter.clearAll":"Очистить все","filter.filter":"Фильтр","filter.filterBy":"Фильтр по {{view}}","filter.filterPlaceholder":"Фильтр...","filter.from":"От:","filter.noAvailableFilters":"Нет доступных фильтров","filter.noMatchingFilters":"Нет подходящих фильтров","filter.noResultsFound":"Результаты не найдены.","filter.selectRange":"Выбрать диапазон","filter.to":"До:","form.filter":"Фильтр...","layout.pageNotFound":"Страница не найдена","layout.search":"Поиск","layout.searchPlaceholder":"Поиск...","login.accept":"Принять","login.reject":"Отклонить","login.reviewInvites":"Просмотреть приглашения","login.terminal.account":"Аккаунт","login.terminal.accountRequired":"Аккаунт обязателен","login.terminal.accountRequiredDesc":"Пожалуйста, выберите аккаунт для авторизации клиента на серверах ComposablePrompts","login.terminal.authorizeClient":"Авторизовать клиент","login.terminal.authPayloadCopied":"Данные аутентификации скопированы","login.terminal.authPayloadCopiedSuccess":"Вы можете закрыть эту страницу. CLI должен был получить токен.","login.terminal.authPayloadCopiedWithError":"Вы можете вставить данные в терминал. Примечание: CLI не получил токен. Произошла ошибка: {{error}}","login.terminal.browserPermissionNote":"Примечание: если браузер запрашивает разрешение на доступ к локальной сети, разрешите его. Это необходимо для отправки токена авторизации обратно в CLI. В противном случае вам придётся вручную скопировать/вставить токен в терминал.","login.terminal.chooseAccountProject":"Вы должны выбрать целевой аккаунт и проект для доступа клиента.","login.terminal.clientAuthenticated":"Клиент аутентифицирован. Вы можете закрыть эту страницу.","login.terminal.clientWantsAuth":"Клиентское приложение запрашивает авторизацию для доступа к серверам ComposablePrompts от вашего имени.","login.terminal.copyAuthPayload":"Скопировать данные аутентификации","login.terminal.envLocalDev":"Локальная разработка","login.terminal.envProduction":"Продакшен","login.terminal.envStaging":"Стейджинг","login.terminal.errorAuthorizingClient":"Ошибка авторизации клиента","login.terminal.errorLoadingProjects":"Ошибка загрузки проектов","login.terminal.failedToGetToken":"Не удалось получить токен composable","login.terminal.failedToSendToken":"Не удалось отправить токен авторизации в CLI","login.terminal.failedToSendTokenDesc":'Это может произойти из-за проверок безопасности Safari. Ошибка: "{{error}}"',"login.terminal.invalidRequest":"Недействительный запрос","login.terminal.invalidRequestDesc":"Эта страница должна вызываться терминальным клиентом для аутентификации на серверах ComposablePrompts","login.terminal.profileName":"Имя профиля","login.terminal.profileNameNote":"Также введите имя профиля, которое будет использоваться для сохранения авторизации в конфигурации клиента.","login.terminal.profileRequired":"Профиль обязателен","login.terminal.profileRequiredDesc":"Пожалуйста, введите имя профиля для сохранения авторизации клиента","login.terminal.project":"Проект","login.terminal.projectRequired":"Проект обязателен","login.terminal.projectRequiredDesc":"Пожалуйста, выберите проект для авторизации клиента на серверах ComposablePrompts","login.terminal.selectAccount":"Выберите аккаунт","login.terminal.selectProject":"Выберите проект","mcpOAuth.authenticate":"Аутентифицироваться","mcpOAuth.authenticating":"Аутентификация...","mcpOAuth.connect":"Подключить","mcpOAuth.connected":"Подключено","mcpOAuth.connecting":"Подключение...","mcpOAuth.disconnect":"Отключить","mcpOAuth.notConnected":"Не подключено","misc.copiedToClipboard":"Скопировано в буфер обмена","misc.copy":"Копировать","misc.failedToCopy":"Не удалось скопировать","misc.noData":"Нет данных для отображения","misc.tableView":"Табличный вид","misc.thumbnailView":"Миниатюры","modal.cancel":"Отмена","modal.confirm":"Подтвердить","modal.delete.error":"Произошла ошибка при удалении объекта","modal.delete.failed":"Не удалось удалить","modal.delete.succeeded":"Удаление выполнено","modal.save":"Сохранить","modal.saveChanges":"Сохранить изменения","modal.saveVersion.createDescription":"Создать новую ревизию с этими изменениями свойств, сохранив оригинал.","modal.saveVersion.createNew":"Создать новую версию","modal.saveVersion.createWithFileDescription":"Создать новую ревизию с файлом замены, сохранив оригинал.","modal.saveVersion.howToSave":"Как вы хотите сохранить эти изменения?","modal.saveVersion.replaceFile":"Вы собираетесь заменить файл содержимого на:","modal.saveVersion.updateCurrent":"Обновить текущую версию","modal.saveVersion.updateDescription":"Изменить свойства непосредственно в текущей ревизии.","modal.saveVersion.updateWithFileDescription":"Заменить файл содержимого и изменить свойства непосредственно в текущей ревизии.","modal.saveVersion.versionLabel":"Метка версии (Необязательно)","modal.saveVersion.versionLabelDescription":"Необязательная метка для новой версии.","modal.saveVersion.versionLabelPlaceholder":"напр., v1.2, утверждено, после проверки","oauthProvider.authenticate":"Аутентификация","oauthProvider.authenticating":"Аутентификация...","oauthProvider.connected":"Подключено","oauthProvider.disconnect":"Отключить","pdf.close":"Закрыть","pdf.closeFullscreen":"Закрыть полноэкранный режим","pdf.download":"Скачать","pdf.failedToLoadViewer":"Не удалось загрузить просмотрщик PDF","pdf.fetchingDocumentFailed":"Не удалось получить документ","pdf.fitToWidth":"По ширине","pdf.fullscreen":"Полный экран","pdf.instrumentedImages":"Размеченные изображения","pdf.nextPage":"Следующая страница","pdf.noPdfAvailable":"PDF недоступен","pdf.originalImages":"Оригинальные изображения","pdf.page":"Страница","pdf.pageOf":"Страница {{pageNumber}} / {{totalPages}}","pdf.previousPage":"Предыдущая страница","pdf.zoomIn":"Увеличить","pdf.zoomOut":"Уменьшить","shell.accessDenied":"Доступ запрещён","shell.applicationNotRegistered":"Приложение не зарегистрировано","shell.organization":"Организация","shell.selectOrganization":"Выберите организацию","shell.selectProject":"Выберите проект","signup.accountType":"Тип аккаунта","signup.activelyExploring":"Активное изучение LLM в проекте","signup.alreadyUsing":"Уже используем LLM в продакшене","signup.company":"Компания","signup.companyDescription":"Для компании или организации.","signup.companyName":"Название компании","signup.companySize":"Размер компании","signup.companyWebsite":"Сайт компании","signup.justTesting":"Только тестирование или оценка LLM","signup.migratingLLMs":"Миграция на другие LLM","signup.other":"Другое","signup.personal":"Личный","signup.personalDescription":"Для личного использования или небольшой команды.","signup.pleaseEnterOrgName":"Пожалуйста, введите название организации","signup.pleaseSelectAccountType":"Пожалуйста, выберите тип аккаунта","signup.pleaseSelectCompanySize":"Пожалуйста, выберите размер компании","signup.projectMaturity":"Зрелость проекта","signup.selectCompanySize":"Выберите размер компании","signup.selectProjectMaturity":"Выберите зрелость проекта","signup.signUp":"Регистрация","signup.size1001to5000":"1001-5000 сотрудников","signup.size101to1000":"101-1000 сотрудников","signup.size11to100":"11-100 сотрудников","signup.size1to10":"1-10 сотрудников","signup.size5000plus":"5000+ сотрудников","signup.welcomeMessage":"Добро пожаловать в Vertesia, {{name}} ({{email}}).\nРасскажите немного о себе, и вы сможете начать.\nКредитная карта не требуется.","signup.wrongAccountGoBack":"Неправильный аккаунт, вернуться","store.actions.addToCollection":"Добавить в коллекцию","store.actions.addToCollectionBody":"Добавить выбранные объекты в существующую коллекцию или создать новую.","store.actions.addToCollectionButton":"Добавить в коллекцию","store.actions.addToCollectionDesc":"Добавить документы в коллекцию","store.actions.addToCollectionFailure":"Ошибка добавления в коллекцию","store.actions.addToCollectionFailureDesc":"Не удалось добавить выбранные объекты в коллекцию","store.actions.addToCollectionSuccess":"Успешно добавлено в коллекцию","store.actions.addToCollectionSuccessDesc_one":"{{count}} объект добавлен в коллекцию","store.actions.addToCollectionSuccessDesc_few":"{{count}} объекта добавлено в коллекцию","store.actions.addToCollectionSuccessDesc_many":"{{count}} объектов добавлено в коллекцию","store.actions.addToCollectionSuccessDesc_other":"{{count}} объектов добавлено в коллекцию","store.actions.addToCollectionTitle":"Добавить в коллекцию","store.actions.areYouSure":"Вы уверены?","store.actions.cannotRemoveNoCollection":"Невозможно удалить объекты: коллекция не указана","store.actions.changeContentType":"Изменить тип контента","store.actions.changeContentTypeDesc":"Изменить тип контента выбранных документов","store.actions.changeType":"Изменить тип","store.actions.chooseExistingCollections":"Выбрать из существующих коллекций","store.actions.chooseWorkflowRule":"Выберите правило рабочего процесса для запуска:","store.actions.confirmDeleteAll":"Вы уверены, что хотите удалить все выбранные объекты? Это действие нельзя отменить.","store.actions.confirmDeleteSelected":"Вы уверены, что хотите удалить выбранные объекты?\nЭто не удаление из коллекций.","store.actions.createNew":"Создать новый","store.actions.delete":"Удалить","store.actions.deleteObjects":"Удалить объекты","store.actions.deleteTheSelectedObjects":"Удалить выбранные объекты","store.actions.errorChangingType":"Ошибка изменения типа","store.actions.errorDeletingObjects":"Ошибка удаления объектов","store.actions.errorExportProperties":"Ошибка экспорта свойств","store.actions.errorRemovingObjects":"Ошибка удаления объектов из коллекции","store.actions.errorStartingWorkflow":"Ошибка запуска рабочего процесса","store.actions.exportAllObjectProperties":"Экспортировать все свойства объектов","store.actions.exportProperties":"Экспортировать свойства","store.actions.noCollectionContext":"Нет контекста коллекции","store.actions.noObjectsSelected":"Объекты не выбраны","store.actions.pleaseSelectObjectsToDelete":"Пожалуйста, выберите объекты для удаления","store.actions.pleaseSelectObjectsToRemove":"Пожалуйста, выберите объекты для удаления из коллекции","store.actions.selectCollection":"Выбрать коллекцию","store.actions.startWorkflow":"Запустить рабочий процесс","store.actions.startWorkflowByRule":"Запустить рабочий процесс по правилу","store.actions.startWorkflowDesc":"Запустить рабочий процесс для выбранных объектов","store.actions.workflowStarted":"Рабочий процесс запущен","store.allowedContentTypes":"Допустимые типы контента","store.allowedContentTypesOptionalDescription":"Дополнительно выберите, какие типы контента можно добавлять в коллекцию. Если не указано, допускаются все типы контента.","store.allowedContentTypesSelectDescription":"Выберите, какие типы контента можно добавлять в коллекцию. Если не указано, допускаются все типы контента.","store.areYouSureDeleteCollection":"Вы уверены, что хотите удалить эту коллекцию? Это действие нельзя отменить.","store.audioFormatRequired":"Требуется формат MP3, M4A, OGG, WAV или WebM","store.automaticTypeDetection":"Автоматическое определение типа","store.automaticTypeDetectionDescription":"Vertesia проанализирует содержимое и выберет наиболее подходящий тип. Рекомендуется для большинства загрузок и обеспечивает оптимальную обработку.","store.cancelEdit":"Отмена","store.chooseAFormat":"Выберите формат","store.chooseContentType":"Выберите тип контента...","store.chooseContentTypes":"Выберите типы контента...","store.chooseWhatToExport":"Выберите, что экспортировать","store.clearSelection":"Очистить выбор","store.close":"Закрыть","store.collectionCreated":"Коллекция создана","store.collectionDeleted":"Коллекция удалена","store.collectionFetchFailed":"Не удалось получить коллекцию","store.collectionPropertiesUpdated":"Свойства коллекции обновлены","store.collectionsSelected_one":"{{count}} коллекция выбрана","store.collectionsSelected_few":"{{count}} коллекции выбрано","store.collectionsSelected_many":"{{count}} коллекций выбрано","store.collectionsSelected_other":"{{count}} коллекций выбрано","store.collectionUpdated":"Коллекция обновлена","store.collectionUpdatedSuccess":"Коллекция успешно обновлена","store.configuration":"Конфигурация","store.confirmSelection":"Подтвердить выбор","store.contentCopied":"{{type}} скопировано","store.contentExported":"Контент экспортирован","store.contentType":"Тип контента","store.convertingToPdf":"Конвертация в PDF...","store.copyFailed":"Не удалось скопировать","store.createACollection":"Создать коллекцию","store.createCollection":"Создать коллекцию","store.created":"Создано","store.createdBy":"Создано","store.createType":"Создать тип","store.deleteCollection":"Удалить коллекцию","store.documentExported":"Документ экспортирован","store.documentInformation":"Информация о документе","store.documentListRefreshed":"Список документов обновлён","store.documentListRefreshedDesc":"Список документов обновлён загруженными файлами.","store.documentPreview":"Предпросмотр документа","store.downloadFailed":"Ошибка скачивания","store.dynamicCollection":"Динамическая коллекция","store.dynamicCollectionDescription":"Динамически получать контент для коллекции на основе запроса. Если не включено, контент должен добавляться пользователями или агентами.","store.editingGenericDocument":"Редактирование свойств общего документа","store.editJson":"Редактировать JSON","store.editProperties":"Редактировать свойства","store.editSchema":"Редактировать схему","store.editText":"Редактировать текст","store.embeddings":"Эмбеддинги","store.enableSyncMemberHeads":"Включить синхронизацию заголовков участников","store.error":"Ошибка","store.errorCheckingDuplicates":"Произошла ошибка при проверке дублирующихся файлов","store.errorCreatingType":"Ошибка создания типа","store.errorInUploadProcessingCheck":"Ошибка при проверке обработки загрузки","store.errorProcessingFiles":"Ошибка обработки файлов","store.errorSavingText":"Не удалось сохранить текст","store.errorSavingTextDefault":"Произошла ошибка при сохранении текстового содержимого.","store.errorUpdatingProperties":"Ошибка обновления свойств","store.errorUpdatingPropertiesDefault":"Произошла ошибка при обновлении свойств.","store.exportFailed":"Ошибка экспорта","store.exportInProgress":"ВЫПОЛНЯЕТСЯ ЭКСПОРТ","store.failedToConvertToPdf":"Не удалось сконвертировать в PDF","store.failedToCopy":"Не удалось скопировать {{type}} в буфер обмена","store.failedToCreateCollection":"Не удалось создать коллекцию","store.failedToDeleteCollection":"Не удалось удалить коллекцию","store.failedToDownloadFile":"Не удалось скачать файл","store.failedToDownloadPdf":"Не удалось скачать PDF-файл","store.failedToExportContent":"Не удалось экспортировать контент","store.failedToExportDocument":"Не удалось экспортировать документ","store.failedToFetchRoleMappings":"Не удалось получить сопоставления ролей","store.failedToFetchTypes":"Не удалось получить ObjectTypes","store.failedToFetchWorkflows":"Не удалось получить рабочие процессы","store.failedToGetDownloadUrl":"Не удалось получить URL для скачивания","store.failedToLoadDocument":"Не удалось загрузить документ","store.failedToLoadType":"Не удалось загрузить тип","store.failedToUpdateCollection":"Не удалось обновить коллекцию","store.failedToUpdateCollectionProperties":"Не удалось обновить свойства коллекции","store.failedToUpdateSchema":"Не удалось обновить схему","store.failedToUpdateSharedProperties":"Не удалось обновить общие свойства","store.failedToUpdateSkipHeadSync":"Не удалось обновить настройку синхронизации заголовков","store.failedToUpdateTableLayout":"Не удалось обновить макет таблицы","store.filesAnalyzedTitle":"Файлы проанализированы","store.filesReadyToProcess":"Файлы готовы к обработке","store.filterByName":"Фильтр по имени","store.fullText":"Полный текст","store.fullView":"Полный вид","store.getStartedCollections":"Начните с создания новой коллекции.","store.getStartedTypes":"Начните с создания нового типа.","store.id":"ID","store.invalidJson":"Недопустимый JSON","store.invalidJsonSchema":"Недопустимая JSON-схема","store.invalidQueryJson":"Недопустимый JSON запроса","store.invalidTableLayout":"Недопустимый макет таблицы","store.isChunkable":"Делится на части","store.limit":"Лимит","store.loadingDocument":"Загрузка документа...","store.loadingProcessingStatus":"Загрузка статуса обработки...","store.na":"Н/Д","store.name":"Имя","store.newCollections":"Новые коллекции","store.newVersionCreated":"Новая версия создана","store.newVersionCreatedDesc":"Новая версия с обновлёнными свойствами создана.","store.noAudioRendition":"Нет веб-совместимой аудио-версии","store.noCollections":"Нет коллекций","store.noCollectionsAvailable":"Нет доступных коллекций.","store.noCollectionsFound":"Коллекции не найдены.","store.noFilesSelected":"Файлы не выбраны","store.none":"Нет","store.noObjectsDragAndDrop":"Нет объектов. Просто перетащите документы или изображения сюда для создания объектов контента.","store.noPreviewAvailable":"Предпросмотр для этого типа документа недоступен.","store.noProjectSelected":"Проект не выбран","store.noPropertiesAvailable":"Нет доступных свойств для этого документа.","store.noPropertiesDefined":"Свойства не определены","store.noTranscriptAvailable":"Транскрипция недоступна","store.noType":"Без типа","store.noValidFilesSelected":"Нет допустимых выбранных файлов","store.noVideoRendition":"Нет веб-совместимой видео-версии","store.openFullDocument":"Открыть полный документ","store.openFullDocumentView":"Открыть полный вид документа","store.optional":"(Необязательно)","store.pdfConversionFailed":"Конвертация PDF не удалась","store.pdfPreviewFullView":"Предпросмотр PDF-документа доступен в полном виде.","store.pleaseFixJsonSyntax":"Пожалуйста, исправьте синтаксические ошибки JSON перед сохранением.","store.pleaseProvideName":"Пожалуйста, укажите название коллекции","store.pleaseSelectValidFiles":"Пожалуйста, выберите файлы с допустимым содержимым.","store.pleaseWait":"ПОЖАЛУЙСТА, ПОДОЖДИТЕ","store.preview":"Предпросмотр","store.previewProperties":"Предпросмотр свойств","store.processingFailedFor":"Обработка не удалась для {{name}}","store.processingFiles":"Обработка файлов","store.properties":"Свойства","store.propertiesUpdated":"Свойства обновлены","store.propertiesUpdatedDesc":"Свойства объекта успешно обновлены.","store.query":"Запрос","store.queryDescription":"Определите запрос для динамического получения контента коллекции.","store.refresh":"Обновить","store.renderingDocument":"Рендеринг документа...","store.saveChanges":"Сохранить изменения","store.saveText":"Сохранить","store.schemaEditor":"Редактор схемы","store.schemaUpdated":"Схема обновлена","store.schemaUpdatedSuccess":"Схема успешно обновлена","store.search":"Поиск","store.searchCollections":"Поиск коллекций","store.searchFailed":"Ошибка поиска","store.searching":"Поиск...","store.searchPlaceholder":"Введите, что вы ищете, или выберите фильтр","store.searchTypes":"Поиск типов","store.selectACollection":"Выберите коллекцию","store.selectContentType":"Выберите тип контента","store.selectContentTypeAuto":"Выберите тип контента или оставьте пустым для автоматического определения","store.selectContentTypeLabel":"Выберите тип контента","store.selectPropertiesToShare":"Выберите свойства для общего доступа","store.semanticChunking":"Семантическое разбиение","store.semanticSearch":"Семантический поиск","store.semanticSearchSettings":"Настройки семантического поиска","store.sharedProperties":"Общие свойства","store.sharedPropertiesDescription":"Добавьте свойства для общего доступа между всеми участниками коллекции. Эта функция требует включения синхронизации общих свойств в проекте.","store.showingFirst128K":"Показаны только первые 128K символов","store.size":"Размер","store.staticCollection":"Статическая коллекция","store.strictMode":"Строгий режим","store.successfullyCopied":"{{type}} успешно скопировано в буфер обмена","store.successfullyExportedTo":"Успешно экспортировано в {{format}}","store.syncMemberHeads":"Синхронизировать заголовки участников","store.syncMemberHeadsDescription":"При создании новой HEAD-версии участника коллекция будет обновлена для указания на новый HEAD.","store.tableLayout":"Макет таблицы","store.tableLayoutDescription":"Определите пользовательский макет для отображения коллекции в таблицах.","store.tableLayoutUpdated":"Макет таблицы обновлён","store.tableLayoutUpdatedDesc":"Макет таблицы успешно обновлён","store.textConflict":"Документ был изменён в другом месте. Обновите страницу и попробуйте снова.","store.textSaved":"Текстовое содержимое сохранено","store.typeCreated":"Тип создан","store.typeDescription":"Дополнительно выберите тип контента для назначения пользовательских свойств и данных коллекции.","store.typeSelectDescription":"Выберите тип контента для назначения пользовательских свойств и данных коллекции.","store.unknown":"Неизвестно","store.unsavedChanges":"Несохранённые изменения","store.updated":"Обновлено","store.updatedAt":"Обновлено","store.updatedBy":"Обновлено","store.updatedSharedProperties":"Общие свойства обновлены","store.updatedSkipHeadSync":"Настройка синхронизации заголовков обновлена","store.upload":"Загрузить","store.uploadComplete":"Загрузка завершена","store.uploadIssues":"Проблемы загрузки","store.validationFailed":"Проверка не пройдена","store.videoFormatRequired":"Требуется формат MP4 или WebM","store.viewAsPdf":"Просмотр как PDF","store.viewAudio":"Просмотр аудио","store.viewImage":"Просмотр изображения","store.viewingNewVersion":"Просмотр новой версии","store.viewingNewVersionDefault":"Сейчас отображается новая версия","store.viewingVersionLabel":"Сейчас отображается версия '{{label}}'","store.viewInJsonFormat":"Просмотр в формате JSON","store.viewPdf":"Просмотр PDF","store.viewText":"Просмотр текста","store.viewTranscript":"Просмотр транскрипции","store.viewVideo":"Просмотр видео","theme.dark":"Тёмная","theme.label":"Тема","theme.light":"Светлая","theme.system":"Система","type.description":"Описание","type.name":"Имя","type.nameRequired":"Имя обязательно","type.type":"Тип","upload.allFilesExist_one":"{{count}} файл уже существует","upload.allFilesExist_few":"{{count}} файла уже существуют","upload.allFilesExist_many":"{{count}} файлов уже существуют","upload.allFilesExist_other":"{{count}} файлов уже существуют","upload.analyzingFiles":"Анализ файлов...","upload.checkingForDuplicates":"Проверка на дубликаты и обновления","upload.collectionLabel":"Коллекция:","upload.contentTypeTooltip":"Выберите тип контента для загружаемых файлов. Если оставить пустым, Vertesia автоматически определит тип на основе содержимого файла.","upload.continue":"Продолжить","upload.dragAndDrop":"Перетащите файлы сюда или нажмите для выбора","upload.errorAnalyzingFiles":"Произошла ошибка при анализе файлов","upload.failedToUpload":"Ошибка загрузки","upload.fileAnalysisResults":"Результаты анализа файлов","upload.filesAnalyzed":"Файлы проанализированы","upload.filesProcessed_one":"{{count}} файл обработан","upload.filesProcessed_few":"{{count}} файла обработано","upload.filesProcessed_many":"{{count}} файлов обработано","upload.filesProcessed_other":"{{count}} файлов обработано","upload.filesReadyToProcess_one":"{{count}} файл готов к обработке","upload.filesReadyToProcess_few":"{{count}} файла готовы к обработке","upload.filesReadyToProcess_many":"{{count}} файлов готовы к обработке","upload.filesReadyToProcess_other":"{{count}} файлов готовы к обработке","upload.filesToSkip_one":"{{count}} файл уже в системе и будет пропущен.","upload.filesToSkip_few":"{{count}} файла уже в системе и будут пропущены.","upload.filesToSkip_many":"{{count}} файлов уже в системе и будут пропущены.","upload.filesToSkip_other":"{{count}} файлов уже в системе и будут пропущены.","upload.folderLabel":"Папка:","upload.inCollection":" в коллекции '{{collection}}'","upload.inFolder":" в папке '{{location}}'","upload.new":"Новый","upload.noFilesToProcess":"Нет файлов для обработки.","upload.noItems":"Нет элементов для отображения","upload.preparingFiles_one":"Подготовка к загрузке {{count}} файла...","upload.preparingFiles_few":"Подготовка к загрузке {{count}} файлов...","upload.preparingFiles_many":"Подготовка к загрузке {{count}} файлов...","upload.preparingFiles_other":"Подготовка к загрузке {{count}} файлов...","upload.preparingFolder_one":"Подготовка к загрузке 1 папки с {{fileCount}} файлами...","upload.preparingFolder_few":"Подготовка к загрузке {{folderCount}} папок с {{fileCount}} файлами...","upload.preparingFolder_many":"Подготовка к загрузке {{folderCount}} папок с {{fileCount}} файлами...","upload.preparingFolder_other":"Подготовка к загрузке {{folderCount}} папок с {{fileCount}} файлами...","upload.processedCount":"Обработано {{processed}}/{{total}} файлов...","upload.processingFilesAction":"Обработка файлов ({{action}})","upload.selectFiles":"Выбрать файлы","upload.selectFolder":"Выбрать папку","upload.skip":"Пропустить","upload.skippedAlreadyExisted":"Пропущено (уже существует)","upload.successfullyUpdated":"Успешно обновлено","upload.successfullyUploaded":"Успешно загружено","upload.update":"Обновить","upload.uploadComplete":"Загрузка завершена","upload.uploadFiles":"Загрузить файлы","upload.uploadingFiles":"Загрузка файлов","upload.uploadLocation":"Место загрузки:","upload.uploadMore":"Загрузить ещё","upload.uploadProcessInterrupted":"Процесс загрузки прерван","upload.useAutoDetection":"Использовать автоматическое определение типа","upload.useTypeName":"Использовать {{typeName}}","user.account":"Аккаунт:","user.agentOnBehalfOf":"Агент от имени","user.agentOnBehalfOfApiKey":"Агент от имени API-ключа","user.allProjectMembers":"Все участники проекта","user.allProjectMembersDescription":"Каждый участник этого проекта имеет это разрешение.","user.appVersion":"Версия приложения","user.environment":"Окружение","user.failedToFetchApiKey":"Не удалось получить API-ключ","user.failedToFetchGroup":"Не удалось получить группу","user.failedToFetchUser":"Не удалось получить пользователя","user.groupId":"ID группы: {{id}}","user.key":"Ключ:","user.organizationId":"ID организации","user.organizationRoles":"Роли в организации","user.privateKey":"Закрытый ключ","user.project":"Проект:","user.projectId":"ID проекта","user.projectRoles":"Роли в проекте","user.schedule":"Расписание {{title}}","user.sdkVersion":"Версия SDK","user.server":"Сервер","user.serviceAccount":"Сервисный аккаунт","user.serviceAccountDescription":"Этот пользователь используется роботами, такими как воркеры рабочих процессов.","user.store":"Хранилище","user.systemUser":"Системный пользователь","user.systemUserDescription":"Системный пользователь используется для инициализации встроенных объектов.","user.tenantId":"ID тенанта","user.unknown":"неизвестно","user.unknownUser":"Неизвестный пользователь","user.unknownUserDescription":"Информация о пользователе недоступна.","user.unnamedGroup":"Группа без названия","user.user":"Пользователь","user.userId":"ID пользователя","widgets.schema.editDescription":"Редактировать описание","widgets.schema.invalidPropertyDeclaration":"Недопустимое объявление свойства"}},tr:{[Un]:{"agent.activeWorkstreams_one":"Ajanın {{count}} aktif iş akışı çalışıyor","agent.activeWorkstreams_other":"Ajanın {{count}} aktif iş akışı çalışıyor","agent.agentConversation":"Ajan Konuşması","agent.agentInterrupted":"Ajan Durduruldu","agent.agentPlan":"Ajan planı","agent.agentProcessing":"Ajan işliyor, tamamlandığında devam edebilirsiniz...","agent.agentRunIdCopied":"Ajan çalıştırma ID'si kopyalandı","agent.agentStarted":"Ajan başlatıldı","agent.agentWorking":"Ajan çalışıyor... (Esc Esc durdurmak için)","agent.agentWorkingStop":"Ajan çalışıyor... Durdurmak için Esc'ye iki kez basın veya Durdur'a tıklayın","agent.allMessages":"Tüm mesajlar","agent.artifacts":"Yapılar","agent.askAnything":"Bir şey sorun... (dosya sürükleyin veya yapıştırın)","agent.batch":"Toplu","agent.canceled":"","agent.cancelWorkflow":"İş akışını iptal et","agent.clickToEnlarge":"Büyütmek için tıklayın","agent.cloneConversation":"Konuşmayı klonla","agent.close":"Kapat","agent.closeFullscreen":"Tam ekranı kapat","agent.completed":"Tamamlandı","agent.continueConversation":"Konuşmayı sürdür","agent.conversationCloned":"Konuşma klonlandı","agent.conversationContinued":"Konuşma sürdürüldü","agent.copied":"Kopyalandı","agent.copiedAllToolCalls":"Tüm araç çağrıları panoya kopyalandı","agent.copiedBatchDetails":"Toplu ayrıntılar panoya kopyalandı","agent.copiedToClipboard":"Panoya kopyalandı","agent.copy":"Kopyala","agent.copyAgentRunId":"Ajan çalışma kimliğini kopyala","agent.copyAllToolCalls":"Tüm araç çağrılarını kopyala","agent.copyBatchDetails":"Toplu ayrıntıları kopyala","agent.copyMessage":"Mesajı kopyala","agent.copyRunId":"Çalıştırma Kimliğini Kopyala","agent.copyToClipboard":"Panoya kopyala","agent.copyWorkflowRunId":"İş akışı çalışma kimliğini kopyala","agent.dashboard":"Gösterge paneli","agent.details":"Ayrıntılar","agent.document":"Belge","agent.documentAttachments":"Belge ekleri","agent.documentAttachmentsDescription":"Bu mesaja eklenmiş mağaza belgeleri. Ajan bunları istediği zaman ID ile yeniden alabilir veya içeriği doğrudan dahil etmek için yeniden ekleyebilir.","agent.documents":"Belgeler","agent.download":"İndir","agent.downloadConversation":"Konuşmayı indir","agent.dropFilesToUpload":"Yüklemek için dosyaları bırakın","agent.elapsed":"{{seconds}}sn geçti","agent.enlargedView":"Büyütülmüş görünüm","agent.enterMessage":"Konuşma başlatmak için bir mesaj girin","agent.enterToSend":"Göndermek için Enter • Yeni satır için Shift+Enter","agent.error":"Hata","agent.errorStarting":"İş akışı başlatılırken hata oluştu","agent.exit":"Çıkış","agent.exitFullscreen":"Tam ekrandan çık","agent.export":"Dışa aktar","agent.exportAsPdf":"PDF olarak dışa aktar","agent.exportAsPng":"PNG olarak dışa aktar","agent.exportAsWord":"Word olarak dışa aktar","agent.exporting":"Dışa aktarılıyor...","agent.exportMessage":"Mesajı dışa aktar","agent.failedToCancelWorkflow":"İş akışı iptal edilemedi","agent.failedToCloneConversation":"Konuşma klonlanamadı","agent.failedToContinueConversation":"Konuşma sürdürülemedi","agent.failedToDownload":"Konuşma indirilemedi","agent.failedToInterrupt":"Durdurulamadı","agent.failedToLoadDocument":"Belge yüklenemedi","agent.failedToSend":"Mesaj gönderilemedi","agent.filesProcessing":"Dosyalar hâlâ işleniyor","agent.filesStagedCount_one":"{{count}} dosya hazırlandı - konuşma başladığında yüklenecek","agent.filesStagedCount_other":"{{count}} dosya hazırlandı - konuşma başladığında yüklenecek","agent.filesUploadedDescription":"Bu sohbete yüklenen dosyalar sürekli olarak kullanılabilir durumda kalır. Ajan bunlara istediği zaman erişebilir.","agent.fullscreen":"Tam ekran","agent.hideDetails":"Ayrıntıları gizle","agent.hideSidebar":"Kenar çubuğunu gizle","agent.hideThinkingDetails":"Düşünme ayrıntılarını gizle","agent.inProgress":"Devam ediyor","agent.linkObject":"Nesne bağla","agent.loadingArtifacts":"Yapılar yükleniyor...","agent.loadingDocument":"Belge yükleniyor...","agent.main":"Ana","agent.mainWorkstream":"Ana iş akışı","agent.moreActions":"Daha fazla eylem","agent.newerPlan":"Daha yeni plan","agent.no":"Hayır","agent.noActiveWorkstreams":"Aktif iş akışı yok","agent.noAgentRunning":"Şu anda çalışan ajan yok","agent.noArtifactsYet":"Henüz yapı yok","agent.noContentAvailable":"Kullanılabilir içerik yok","agent.noContentToExport":"Dışa aktarılacak içerik yok","agent.noConversationContent":"Dışa aktarılacak konuşma içeriği yok","agent.noDocumentsOpen":"Açık belge yok","agent.noFilesUploadedYet":"Yüklenen dosya yok","agent.noMessagesInWorkstream":"Bu iş akışında henüz mesaj yok...","agent.noPlanAvailable":"Plan mevcut değil","agent.noPlanDetected":"Henüz bir plan algılanmadı","agent.olderPlan":"Daha eski plan","agent.openDocument":"Belgeyi aç","agent.openInNewTab":"Yeni sekmede aç","agent.payload":"Yük","agent.pdfExportFailed":"PDF dışa aktarma başarısız","agent.pdfExportReady":"PDF dışa aktarma hazır","agent.pending":"Beklemede","agent.plan":"Plan","agent.planProgress":"Plan ilerlemesi","agent.plansWillAppear":"Ajan bir plan oluşturduğunda burada görünecek","agent.printDialogDescription":"PDF olarak kaydetmek için tarayıcınızın yazdırma iletişim kutusunu kullanın","agent.processing":"İşleniyor...","agent.ready":"Hazır","agent.refresh":"Yenile","agent.remaining":"{{seconds}}sn kaldı","agent.retry":"Tekrar dene","agent.runIdCopied":"Çalıştırma kimliği kopyalandı","agent.searchDocuments":"Belgeleri ara","agent.selectInteraction":"Bir etkileşim seçin ve ajanı başlatmak için Başlat'a tıklayın","agent.send":"Gönder","agent.showAllMessages":"Tüm mesajları göster","agent.showDetails":"Ayrıntıları göster","agent.showSidebar":"Kenar çubuğunu göster","agent.staged":"Hazırlandı","agent.startAgent":"Ajanı başlat","agent.startingAgent":"Ajan başlatılıyor...","agent.startingAgentUploading":"Ajan başlatılıyor ve dosyalar yükleniyor...","agent.startNewConversation":"Yeni konuşma başlat","agent.stepByStepPlan":"Adım adım plan","agent.stop":"Durdur","agent.stopAgent":"Ajanı durdur","agent.submitSelection":"Seçimi gönder","agent.submitSelectionCount_one":"Seçimi gönder ({{count}})","agent.submitSelectionCount_other":"Seçimi gönder ({{count}})","agent.summary":"Özet","agent.taskProgress":"Görev ilerlemesi","agent.toggleRightSidebar":"Sağ kenar çubuğunu aç/kapat","agent.typeNewInstructions":"Yeni talimatlar vermek için mesajınızı yazın","agent.typeQuestionBelow":"Sorunuzu aşağıya yazın ve başlamak için Enter'a basın veya {{buttonText}} tıklayın","agent.typeYourMessage":"Mesajınızı yazın...","agent.typeYourResponse":"Yanıtınızı yazın...","agent.unableToOpenPrint":"Yazdırma önizlemesi açılamadı","agent.unknownError":"Bilinmeyen hata","agent.unknownTime":"Bilinmeyen zaman","agent.upload":"Yükle","agent.uploadedFiles":"Yüklenen dosyalar","agent.uploadFailed":"Yükleme başarısız","agent.uploading":"Yükleniyor...","agent.uploads":"Yüklemeler","agent.waitForFiles":"Dosyaların işlenmesini bekleyin","agent.waitForFilesProcessing":"Göndermeden önce tüm dosyaların işlenmesini bekleyin","agent.waiting":"Bekleniyor...","agent.waitingForAgentResponse":"Ajan yanıtı bekleniyor...","agent.workflowCancelled":"İş akışı iptal edildi","agent.workflowRunIdCopied":"İş akışı çalıştırma ID'si kopyalandı","agent.working":"Çalışıyor...","agent.workstreams":"İş akışları","agent.yes":"Evet","auth.continueWithEnterprise":"Kurumsal SSO ile devam et","auth.continueWithGithub":"GitHub ile devam et","auth.continueWithGoogle":"Google ile devam et","auth.continueWithMicrosoft":"Microsoft ile devam et","auth.enterEnterpriseEmail":"Kurumsal e-postanızı girin","auth.error":"Hata: {{message}}","auth.firstTimeDetails":"Sadece birkaç soru soracağız ve hazır olacaksınız.","auth.firstTimeMessage":"İlk kez mi buradasınız? Sorun değil, ücretsiz deneyebilirsiniz!","auth.goBack":"Geri dön","auth.invalidEmail":"Geçersiz e-posta adresi","auth.logInOrSignUp":"Giriş yap veya Kayıt ol","auth.needToMakeChange":"Değişiklik yapmanız mı gerekiyor?","auth.or":"VEYA","auth.privacyPolicy":"Gizlilik Politikası","auth.signInError":"Üzgünüz, oturumunuzu açamadık.","auth.signInErrorContact":"Lütfen tekrar deneyin veya iletişime geçin","auth.signInErrorPersists":"sorun devam ederse.","auth.tenantNotFound":"Kuruluş bulunamadı","auth.termsOfService":"Hizmet Şartları","errors.failedToLoadTenantConfig":"Kiracı yapılandırması yüklenemedi","errors.somethingWentWrong":"Üzgünüz, bir şeyler ters gitti...","errors.teamNotifiedLine1":"Ekibimiz bilgilendirildi ve sorunu hızla çözmeye çalışacaktır.","errors.teamNotifiedLine2":"Konuyu iletmek veya bizimle iletişime geçmek isterseniz, lütfen bize şu adresten e-posta gönderin:","filter.clearAll":"Tümünü Temizle","filter.filter":"Filtre","filter.filterBy":"{{view}} ile filtrele","filter.filterPlaceholder":"Filtrele...","filter.from":"Başlangıç:","filter.noAvailableFilters":"Kullanılabilir filtre yok","filter.noMatchingFilters":"Eşleşen filtre yok","filter.noResultsFound":"Sonuç bulunamadı.","filter.selectRange":"Aralık seçin","filter.to":"Bitiş:","form.filter":"Filtrele...","layout.pageNotFound":"Sayfa Bulunamadı","layout.search":"Ara","layout.searchPlaceholder":"Ara...","login.accept":"Kabul Et","login.reject":"Reddet","login.reviewInvites":"Davetleri İncele","login.terminal.account":"Hesap","login.terminal.accountRequired":"Hesap gereklidir","login.terminal.accountRequiredDesc":"İstemcinin ComposablePrompts sunucularına erişmesi için lütfen bir hesap seçin","login.terminal.authorizeClient":"İstemciyi Yetkilendir","login.terminal.authPayloadCopied":"Kimlik doğrulama yükü kopyalandı","login.terminal.authPayloadCopiedSuccess":"Bu sayfayı kapatabilirsiniz. CLI tokenı almış olmalıdır.","login.terminal.authPayloadCopiedWithError":"Yükü terminale yapıştırabilirsiniz. Not: CLI tokenı almadı. Bir hata oluştu: {{error}}","login.terminal.browserPermissionNote":"Not: Tarayıcınız yerel ağınıza erişim izni isterse lütfen izin verin. Bu, yetkilendirme tokenını CLI aracına geri göndermek için gereklidir. Aksi takdirde tokenı terminalinize elle kopyalayıp yapıştırmanız gerekecektir.","login.terminal.chooseAccountProject":"İstemcinin erişeceği hedef hesap ve projeyi seçmelisiniz.","login.terminal.clientAuthenticated":"İstemci kimlik doğrulandı. Bu sayfayı kapatabilirsiniz.","login.terminal.clientWantsAuth":"Bir istemci uygulama sizin adınıza composable prompt sunucularına erişim yetkisi istiyor.","login.terminal.copyAuthPayload":"Kimlik Doğrulama Yükünü Kopyala","login.terminal.envLocalDev":"Yerel Geliştirme","login.terminal.envProduction":"Üretim","login.terminal.envStaging":"Hazırlık","login.terminal.errorAuthorizingClient":"İstemci yetkilendirme hatası","login.terminal.errorLoadingProjects":"Projeler yüklenirken hata oluştu","login.terminal.failedToGetToken":"Composable tokenı alınamadı","login.terminal.failedToSendToken":"Yetkilendirme tokenı CLI aracına gönderilemedi","login.terminal.failedToSendTokenDesc":'Bu, Safari\'deki güvenlik kontrolleri nedeniyle olabilir. Hata: "{{error}}"',"login.terminal.invalidRequest":"Geçersiz istek","login.terminal.invalidRequestDesc":"Bu sayfa, ComposablePrompts sunucularına kimlik doğrulaması yapmak için bir terminal istemcisi tarafından çağrılmalıdır","login.terminal.profileName":"Profil Adı","login.terminal.profileNameNote":"Ayrıca istemci yapılandırmanıza yetkilendirmeyi kaydetmek için kullanılacak bir profil adı girin.","login.terminal.profileRequired":"Profil gereklidir","login.terminal.profileRequiredDesc":"İstemci yetkilendirmesini kaydetmek için lütfen bir profil adı girin","login.terminal.project":"Proje","login.terminal.projectRequired":"Proje gereklidir","login.terminal.projectRequiredDesc":"İstemcinin ComposablePrompts sunucularına erişmesi için lütfen bir proje seçin","login.terminal.selectAccount":"Hesap Seçin","login.terminal.selectProject":"Proje Seçin","mcpOAuth.authenticate":"Kimlik Doğrula","mcpOAuth.authenticating":"Kimlik Doğrulanıyor...","mcpOAuth.connect":"Bağlan","mcpOAuth.connected":"Bağlandı","mcpOAuth.connecting":"Bağlanıyor...","mcpOAuth.disconnect":"Bağlantıyı Kes","mcpOAuth.notConnected":"Bağlı Değil","misc.copiedToClipboard":"Panoya kopyalandı","misc.copy":"Kopyala","misc.failedToCopy":"Kopyalama başarısız","misc.noData":"Görüntülenecek veri yok","misc.tableView":"Tablo görünümü","misc.thumbnailView":"Küçük resim görünümü","modal.cancel":"İptal","modal.confirm":"Onayla","modal.delete.error":"Nesne silinirken bir hata oluştu","modal.delete.failed":"Silme başarısız","modal.delete.succeeded":"Silme başarılı","modal.save":"Kaydet","modal.saveChanges":"Değişiklikleri kaydet","modal.saveVersion.createDescription":"Bu özellik değişiklikleriyle yeni bir revizyon oluşturun, orijinali koruyun.","modal.saveVersion.createNew":"Yeni sürüm oluştur","modal.saveVersion.createWithFileDescription":"Değiştirme dosyasıyla yeni bir revizyon oluşturun, orijinali koruyun.","modal.saveVersion.howToSave":"Bu değişiklikleri nasıl kaydetmek istersiniz?","modal.saveVersion.replaceFile":"İçerik dosyasını şununla değiştirmek üzeresiniz:","modal.saveVersion.updateCurrent":"Mevcut sürümü güncelle","modal.saveVersion.updateDescription":"Mevcut revizyonda özellikleri doğrudan düzenleyin.","modal.saveVersion.updateWithFileDescription":"İçerik dosyasını değiştirin ve mevcut revizyonda özellikleri doğrudan düzenleyin.","modal.saveVersion.versionLabel":"Sürüm etiketi (İsteğe bağlı)","modal.saveVersion.versionLabelDescription":"Yeni sürüm için isteğe bağlı etiket.","modal.saveVersion.versionLabelPlaceholder":"örn., v1.2, onaylandı, inceleme sonrası","oauthProvider.authenticate":"Kimlik Doğrula","oauthProvider.authenticating":"Kimlik doğrulanıyor...","oauthProvider.connected":"Bağlandı","oauthProvider.disconnect":"Bağlantıyı Kes","pdf.close":"Kapat","pdf.closeFullscreen":"Tam ekranı kapat","pdf.download":"İndir","pdf.failedToLoadViewer":"PDF görüntüleyici yüklenemedi","pdf.fetchingDocumentFailed":"Belge alınamadı","pdf.fitToWidth":"Genişliğe sığdır","pdf.fullscreen":"Tam ekran","pdf.instrumentedImages":"İşaretlenmiş görüntüler","pdf.nextPage":"Sonraki sayfa","pdf.noPdfAvailable":"PDF mevcut değil","pdf.originalImages":"Orijinal görüntüler","pdf.page":"Sayfa","pdf.pageOf":"Sayfa {{pageNumber}} / {{totalPages}}","pdf.previousPage":"Önceki sayfa","pdf.zoomIn":"Yakınlaştır","pdf.zoomOut":"Uzaklaştır","shell.accessDenied":"Erişim Reddedildi","shell.applicationNotRegistered":"Uygulama kayıtlı değil","shell.organization":"Kuruluş","shell.selectOrganization":"Kuruluş Seçin","shell.selectProject":"Proje Seçin","signup.accountType":"Hesap Türü","signup.activelyExploring":"Bir Projede LLM'leri Aktif Olarak Keşfetme","signup.alreadyUsing":"Üretimde Zaten LLM Kullanıyor","signup.company":"Şirket","signup.companyDescription":"Bir şirket veya kuruluş için.","signup.companyName":"Şirket Adı","signup.companySize":"Şirket Büyüklüğü","signup.companyWebsite":"Şirket Web Sitesi","signup.justTesting":"LLM'leri Test Etme veya Değerlendirme Aşamasında","signup.migratingLLMs":"Farklı LLM'lere Geçiş Yapıyor","signup.other":"Diğer","signup.personal":"Kişisel","signup.personalDescription":"Kişisel kullanım veya küçük bir ekip için.","signup.pleaseEnterOrgName":"Lütfen bir kuruluş adı girin","signup.pleaseSelectAccountType":"Lütfen bir hesap türü seçin","signup.pleaseSelectCompanySize":"Lütfen bir şirket büyüklüğü seçin","signup.projectMaturity":"Proje Olgunluğu","signup.selectCompanySize":"Şirket Büyüklüğü Seçin","signup.selectProjectMaturity":"Proje Olgunluğu Seçin","signup.signUp":"Kaydol","signup.size1001to5000":"1001-5000 çalışan","signup.size101to1000":"101-1000 çalışan","signup.size11to100":"11-100 çalışan","signup.size1to10":"1-10 çalışan","signup.size5000plus":"5000+ çalışan","signup.welcomeMessage":"Vertesia'ya hoş geldiniz, {{name}} ({{email}}).\nLütfen kendiniz hakkında biraz bilgi verin ve hemen başlayın.\nKredi kartı gerekmez.","signup.wrongAccountGoBack":"Yanlış hesap, geri dön","store.actions.addToCollection":"Koleksiyona Ekle","store.actions.addToCollectionBody":"Seçili nesneleri mevcut bir koleksiyona ekleyin veya yeni bir tane oluşturun.","store.actions.addToCollectionButton":"Koleksiyona Ekle","store.actions.addToCollectionDesc":"Belgeleri bir koleksiyona ekle","store.actions.addToCollectionFailure":"Koleksiyona ekleme başarısız","store.actions.addToCollectionFailureDesc":"Seçili nesneler koleksiyona eklenemedi","store.actions.addToCollectionSuccess":"Koleksiyona ekleme başarılı","store.actions.addToCollectionSuccessDesc_one":"{{count}} nesne koleksiyona eklendi","store.actions.addToCollectionSuccessDesc_other":"{{count}} nesne koleksiyona eklendi","store.actions.addToCollectionTitle":"Bir Koleksiyona Ekle","store.actions.areYouSure":"Emin misiniz?","store.actions.cannotRemoveNoCollection":"Nesneler kaldırılamıyor: koleksiyon belirtilmedi","store.actions.changeContentType":"İçerik Türünü Değiştir","store.actions.changeContentTypeDesc":"Seçili belgelerin İçerik Türünü değiştirin","store.actions.changeType":"Türü Değiştir","store.actions.chooseExistingCollections":"Mevcut koleksiyonlardan seçin","store.actions.chooseWorkflowRule":"Başlatılacak bir iş akışı kuralı seçin:","store.actions.confirmDeleteAll":"Seçili tüm nesneleri silmek istediğinizden emin misiniz? Bu işlem geri alınamaz.","store.actions.confirmDeleteSelected":"Seçili nesneleri silmek istediğinizden emin misiniz?\nBu, koleksiyonlardan kaldırma işlemi değildir.","store.actions.createNew":"Yeni oluştur","store.actions.delete":"Sil","store.actions.deleteObjects":"Nesneleri Sil","store.actions.deleteTheSelectedObjects":"Seçili nesneleri sil","store.actions.errorChangingType":"Tür değiştirme hatası","store.actions.errorDeletingObjects":"Nesneler silinirken hata oluştu","store.actions.errorExportProperties":"Özellikleri Dışa Aktarma Hatası","store.actions.errorRemovingObjects":"Nesneler koleksiyondan kaldırılırken hata oluştu","store.actions.errorStartingWorkflow":"İş akışı başlatılırken hata oluştu","store.actions.exportAllObjectProperties":"Tüm Nesne Özelliklerini Dışa Aktar","store.actions.exportProperties":"Özellikleri Dışa Aktar","store.actions.noCollectionContext":"Koleksiyon bağlamı yok","store.actions.noObjectsSelected":"Nesne seçilmedi","store.actions.pleaseSelectObjectsToDelete":"Lütfen silinecek nesneleri seçin","store.actions.pleaseSelectObjectsToRemove":"Lütfen koleksiyondan kaldırılacak nesneleri seçin","store.actions.selectCollection":"Koleksiyon Seçin","store.actions.startWorkflow":"İş Akışı Başlat","store.actions.startWorkflowByRule":"Kurala Göre İş Akışı Başlat","store.actions.startWorkflowDesc":"Seçili nesneler üzerinde bir iş akışı başlat","store.actions.workflowStarted":"İş akışı başlatıldı","store.allowedContentTypes":"İzin Verilen İçerik Türleri","store.allowedContentTypesOptionalDescription":"İsteğe bağlı olarak koleksiyona eklenebilecek içerik türlerini seçin. Ayarlanmamışsa tüm içerik türlerine izin verilir.","store.allowedContentTypesSelectDescription":"Koleksiyona eklenebilecek içerik türlerini seçin. Ayarlanmamışsa tüm içerik türlerine izin verilir.","store.areYouSureDeleteCollection":"Bu koleksiyonu silmek istediğinizden emin misiniz? Bu işlem geri alınamaz.","store.audioFormatRequired":"MP3, M4A, OGG, WAV veya WebM formatı gereklidir","store.automaticTypeDetection":"Otomatik Tür Algılama","store.automaticTypeDetectionDescription":"Vertesia içeriği analiz ederek en uygun türü seçecektir. Bu, çoğu yükleme için önerilir ve en iyi işlemeyi sağlar.","store.cancelEdit":"İptal","store.chooseAFormat":"Bir format seçin","store.chooseContentType":"Bir İçerik Türü Seçin...","store.chooseContentTypes":"İçerik Türleri Seçin...","store.chooseWhatToExport":"Dışa aktarılacak olanı seçin","store.clearSelection":"Seçimi temizle","store.close":"Kapat","store.collectionCreated":"Koleksiyon oluşturuldu","store.collectionDeleted":"Koleksiyon silindi","store.collectionFetchFailed":"Koleksiyon getirme başarısız","store.collectionPropertiesUpdated":"Koleksiyon özellikleri güncellendi","store.collectionsSelected_one":"{{count}} koleksiyon seçildi","store.collectionsSelected_other":"{{count}} koleksiyon seçildi","store.collectionUpdated":"Koleksiyon güncellendi","store.collectionUpdatedSuccess":"Koleksiyon başarıyla güncellendi","store.configuration":"Yapılandırma","store.confirmSelection":"Seçimi onayla","store.contentCopied":"{{type}} kopyalandı","store.contentExported":"İçerik dışa aktarıldı","store.contentType":"İçerik Türü","store.convertingToPdf":"PDF'ye dönüştürülüyor...","store.copyFailed":"Kopyalama başarısız","store.createACollection":"Bir Koleksiyon Oluştur","store.createCollection":"Koleksiyon Oluştur","store.created":"Oluşturulma","store.createdBy":"Oluşturan","store.createType":"Tür Oluştur","store.deleteCollection":"Koleksiyonu Sil","store.documentExported":"Belge dışa aktarıldı","store.documentInformation":"Belge Bilgisi","store.documentListRefreshed":"Belge listesi yenilendi","store.documentListRefreshedDesc":"Belge listesi yüklenen dosyalarınızla güncellendi.","store.documentPreview":"Belge Önizleme","store.downloadFailed":"İndirme başarısız","store.dynamicCollection":"Dinamik Koleksiyon","store.dynamicCollectionDescription":"Bir sorguya dayalı olarak koleksiyon için dinamik olarak içerik getirin. Etkinleştirilmezse içerik kullanıcılar veya ajanlar tarafından eklenmelidir.","store.editingGenericDocument":"Genel belge özellikleri düzenleniyor","store.editJson":"JSON Düzenle","store.editProperties":"Özellikleri Düzenle","store.editSchema":"Şema Düzenle","store.editText":"Metni düzenle","store.embeddings":"Gömüler","store.enableSyncMemberHeads":"Üye başlıklarını senkronize etmeyi etkinleştir","store.error":"Hata","store.errorCheckingDuplicates":"Yinelenen dosyalar kontrol edilirken bir hata oluştu","store.errorCreatingType":"Tür oluşturma hatası","store.errorInUploadProcessingCheck":"Dosya yükleme işleme kontrolünde hata","store.errorProcessingFiles":"Dosyalar işlenirken hata oluştu","store.errorSavingText":"Metin kaydedilemedi","store.errorSavingTextDefault":"Metin içeriği kaydedilirken bir hata oluştu.","store.errorUpdatingProperties":"Özellikler güncellenirken hata oluştu","store.errorUpdatingPropertiesDefault":"Özellikler güncellenirken bir hata oluştu.","store.exportFailed":"Dışa aktarma başarısız","store.exportInProgress":"DIŞA AKTARMA DEVAM EDİYOR","store.failedToConvertToPdf":"PDF'ye dönüştürülemedi","store.failedToCopy":"{{type}} panoya kopyalanamadı","store.failedToCreateCollection":"Koleksiyon oluşturulamadı","store.failedToDeleteCollection":"Koleksiyon silinemedi","store.failedToDownloadFile":"Dosya indirilemedi","store.failedToDownloadPdf":"PDF dosyası indirilemedi","store.failedToExportContent":"İçerik dışa aktarılamadı","store.failedToExportDocument":"Belge dışa aktarılamadı","store.failedToFetchRoleMappings":"Rol eşlemeleri getirilemedi","store.failedToFetchTypes":"ObjectType'lar getirilemedi","store.failedToFetchWorkflows":"İş akışları getirilemedi","store.failedToGetDownloadUrl":"İndirme URL'si alınamadı","store.failedToLoadDocument":"Belge yüklenemedi","store.failedToLoadType":"Tür yüklenemedi","store.failedToUpdateCollection":"Koleksiyon güncellenemedi","store.failedToUpdateCollectionProperties":"Koleksiyon özellikleri güncellenemedi","store.failedToUpdateSchema":"Şema güncellenemedi","store.failedToUpdateSharedProperties":"Paylaşılan özellikler güncellenemedi","store.failedToUpdateSkipHeadSync":"Başlık senkronizasyonu atlama ayarı güncellenemedi","store.failedToUpdateTableLayout":"Tablo düzeni güncellenemedi","store.filesAnalyzedTitle":"Dosyalar analiz edildi","store.filesReadyToProcess":"Dosyalar işlenmeye hazır","store.filterByName":"Ada Göre Filtrele","store.fullText":"Tam Metin","store.fullView":"Tam Görünüm","store.getStartedCollections":"Yeni bir Koleksiyon oluşturarak başlayın.","store.getStartedTypes":"Yeni bir Tür oluşturarak başlayın.","store.id":"ID","store.invalidJson":"Geçersiz JSON","store.invalidJsonSchema":"Geçersiz JSON Şeması","store.invalidQueryJson":"Geçersiz Sorgu JSON","store.invalidTableLayout":"Geçersiz Tablo Düzeni","store.isChunkable":"Parçalanabilir","store.limit":"Sınır","store.loadingDocument":"Belge yükleniyor...","store.loadingProcessingStatus":"İşleme durumu yükleniyor...","store.na":"Yok","store.name":"Ad","store.newCollections":"Yeni Koleksiyonlar","store.newVersionCreated":"Yeni sürüm oluşturuldu","store.newVersionCreatedDesc":"Güncellenmiş özelliklerle yeni bir sürüm oluşturuldu.","store.noAudioRendition":"Web uyumlu ses sürümü mevcut değil","store.noCollections":"Koleksiyon Yok","store.noCollectionsAvailable":"Kullanılabilir koleksiyon yok.","store.noCollectionsFound":"Koleksiyon bulunamadı.","store.noFilesSelected":"Dosya seçilmedi","store.none":"Hiçbiri","store.noObjectsDragAndDrop":"Nesne yok. İçerik nesneleri oluşturmak için belgeleri veya resimleri buraya sürükleyip bırakın.","store.noPreviewAvailable":"Bu belge türü için önizleme mevcut değil.","store.noProjectSelected":"Proje seçilmedi","store.noPropertiesAvailable":"Bu belge için kullanılabilir özellik yok.","store.noPropertiesDefined":"Tanımlı özellik yok","store.noTranscriptAvailable":"Transkript mevcut değil","store.noType":"Tür Yok","store.noValidFilesSelected":"Geçerli dosya seçilmedi","store.noVideoRendition":"Web uyumlu video sürümü mevcut değil","store.openFullDocument":"Tam Belgeyi Aç","store.openFullDocumentView":"Tam Belge Görünümünü Aç","store.optional":"(İsteğe bağlı)","store.pdfConversionFailed":"PDF dönüştürme başarısız","store.pdfPreviewFullView":"PDF belge önizlemesi tam görünümde kullanılabilir.","store.pleaseFixJsonSyntax":"Lütfen kaydetmeden önce JSON sözdizimi hatalarını düzeltin.","store.pleaseProvideName":"Lütfen koleksiyon için bir ad girin","store.pleaseSelectValidFiles":"Lütfen geçerli içeriğe sahip dosyalar seçin.","store.pleaseWait":"LÜTFEN BEKLEYİN","store.preview":"Önizleme","store.previewProperties":"Özellikleri önizle","store.processingFailedFor":"{{name}} için işleme başarısız","store.processingFiles":"Dosyalar işleniyor","store.properties":"Özellikler","store.propertiesUpdated":"Özellikler güncellendi","store.propertiesUpdatedDesc":"Nesne özellikleri başarıyla güncellendi.","store.query":"Sorgu","store.queryDescription":"Koleksiyon için dinamik olarak içerik getirmek üzere sorguyu tanımlayın.","store.refresh":"Yenile","store.renderingDocument":"Belgeniz oluşturuluyor...","store.saveChanges":"Değişiklikleri Kaydet","store.saveText":"Kaydet","store.schemaEditor":"Şema Düzenleyici","store.schemaUpdated":"Şema güncellendi","store.schemaUpdatedSuccess":"Şema başarıyla güncellendi","store.search":"Ara","store.searchCollections":"Koleksiyonları ara","store.searchFailed":"Arama başarısız","store.searching":"Aranıyor...","store.searchPlaceholder":"Aradığınızı yazın veya bir filtre seçin","store.searchTypes":"Türleri Ara","store.selectACollection":"Bir koleksiyon seçin","store.selectContentType":"İçerik Türü Seçin","store.selectContentTypeAuto":"Bir içerik türü seçin veya otomatik algılama için boş bırakın","store.selectContentTypeLabel":"Bir içerik türü seçin","store.selectPropertiesToShare":"Paylaşılacak özellikleri seçin","store.semanticChunking":"Semantik Parçalama","store.semanticSearch":"Semantik arama","store.semanticSearchSettings":"Semantik arama ayarları","store.sharedProperties":"Paylaşılan Özellikler","store.sharedPropertiesDescription":"Koleksiyondaki tüm üyeler arasında paylaşılacak özellikler ekleyin. Bu özellik, projede paylaşılan özellik senkronizasyonunun etkinleştirilmesini gerektirir.","store.showingFirst128K":"Yalnızca ilk 128K karakter gösteriliyor","store.size":"Boyut","store.staticCollection":"Statik Koleksiyon","store.strictMode":"Katı Mod","store.successfullyCopied":"{{type}} panoya başarıyla kopyalandı","store.successfullyExportedTo":"{{format}} olarak başarıyla dışa aktarıldı","store.syncMemberHeads":"Üye Başlıklarını Senkronize Et","store.syncMemberHeadsDescription":"Bir üyenin yeni HEAD sürümü oluşturulduğunda koleksiyon yeni HEAD'i gösterecek şekilde güncellenir.","store.tableLayout":"Tablo Düzeni","store.tableLayoutDescription":"Koleksiyonun tablolarda görüntülenmesi için özel bir düzen tanımlayın.","store.tableLayoutUpdated":"Tablo Düzeni güncellendi","store.tableLayoutUpdatedDesc":"Tablo düzeni başarıyla güncellendi","store.textConflict":"Belge başka bir yerde değiştirildi. Lütfen yenileyip tekrar deneyin.","store.textSaved":"Metin içeriği kaydedildi","store.typeCreated":"Tür oluşturuldu","store.typeDescription":"İsteğe bağlı olarak koleksiyona özel özellikler ve veriler atamak için bir içerik türü seçin.","store.typeSelectDescription":"Koleksiyona özel özellikler ve veriler atamak için bir içerik türü seçin.","store.unknown":"Bilinmeyen","store.unsavedChanges":"Kaydedilmemiş değişiklikler","store.updated":"Güncelleme","store.updatedAt":"Güncellenme Tarihi","store.updatedBy":"Güncelleyen","store.updatedSharedProperties":"Paylaşılan özellikler güncellendi","store.updatedSkipHeadSync":"Başlık senkronizasyonu atlama ayarı güncellendi","store.upload":"Yükle","store.uploadComplete":"Yükleme Tamamlandı","store.uploadIssues":"Yükleme Sorunları","store.validationFailed":"Doğrulama başarısız","store.videoFormatRequired":"MP4 veya WebM formatı gereklidir","store.viewAsPdf":"PDF olarak görüntüle","store.viewAudio":"Sesi Görüntüle","store.viewImage":"Resmi Görüntüle","store.viewingNewVersion":"Yeni Sürüm Görüntüleniyor","store.viewingNewVersionDefault":"Şimdi yeni sürüm görüntüleniyor","store.viewingVersionLabel":"Şimdi '{{label}}' sürümü görüntüleniyor","store.viewInJsonFormat":"JSON formatında görüntüle","store.viewPdf":"PDF Görüntüle","store.viewText":"Metni Görüntüle","store.viewTranscript":"Transkripti Görüntüle","store.viewVideo":"Videoyu Görüntüle","theme.dark":"Koyu","theme.label":"Tema","theme.light":"Açık","theme.system":"Sistem","type.description":"Açıklama","type.name":"Ad","type.nameRequired":"Ad gereklidir","type.type":"Tür","upload.allFilesExist_one":"{{count}} dosya zaten mevcut","upload.allFilesExist_other":"{{count}} dosya zaten mevcut","upload.analyzingFiles":"Dosyalar analiz ediliyor...","upload.checkingForDuplicates":"Yinelenler ve güncellemeler kontrol ediliyor","upload.collectionLabel":"Koleksiyon:","upload.contentTypeTooltip":"Yüklenen dosyalara uygulanacak bir içerik türü seçin. Boş bırakılırsa Vertesia dosya içeriğine göre türü otomatik algılar.","upload.continue":"Devam","upload.dragAndDrop":"Dosyaları sürükleyip bırakın veya seçmek için tıklayın","upload.errorAnalyzingFiles":"Dosyalar analiz edilirken bir hata oluştu","upload.failedToUpload":"Yükleme başarısız","upload.fileAnalysisResults":"Dosya Analiz Sonuçları","upload.filesAnalyzed":"Dosyalar analiz edildi","upload.filesProcessed_one":"{{count}} dosya işlendi","upload.filesProcessed_other":"{{count}} dosya işlendi","upload.filesReadyToProcess_one":"{{count}} dosya işlenmeye hazır","upload.filesReadyToProcess_other":"{{count}} dosya işlenmeye hazır","upload.filesToSkip_one":"{{count}} dosya sistemde zaten mevcut ve atlanacak.","upload.filesToSkip_other":"{{count}} dosya sistemde zaten mevcut ve atlanacak.","upload.folderLabel":"Klasör:","upload.inCollection":" '{{collection}}' koleksiyonunda","upload.inFolder":" '{{location}}' klasöründe","upload.new":"Yeni","upload.noFilesToProcess":"İşlenecek dosya yok.","upload.noItems":"Görüntülenecek öğe yok","upload.preparingFiles_one":"{{count}} dosya yüklenmeye hazırlanıyor...","upload.preparingFiles_other":"{{count}} dosya yüklenmeye hazırlanıyor...","upload.preparingFolder_one":"{{fileCount}} dosya içeren 1 klasör yüklenmeye hazırlanıyor...","upload.preparingFolder_other":"{{fileCount}} dosya içeren {{folderCount}} klasör yüklenmeye hazırlanıyor...","upload.processedCount":"{{processed}}/{{total}} dosya işlendi...","upload.processingFilesAction":"Dosyalar işleniyor ({{action}})","upload.selectFiles":"Dosya Seç","upload.selectFolder":"Klasör seç","upload.skip":"Atla","upload.skippedAlreadyExisted":"Atlandı (zaten mevcut)","upload.successfullyUpdated":"Başarıyla güncellendi","upload.successfullyUploaded":"Başarıyla yüklendi","upload.update":"Güncelle","upload.uploadComplete":"Yükleme Tamamlandı","upload.uploadFiles":"Dosya yükle","upload.uploadingFiles":"Dosyalar Yükleniyor","upload.uploadLocation":"Yükleme Konumu:","upload.uploadMore":"Daha Fazla Yükle","upload.uploadProcessInterrupted":"Yükleme işlemi kesildi","upload.useAutoDetection":"Otomatik Tür Algılama Kullan","upload.useTypeName":"{{typeName}} Kullan","user.account":"Hesap:","user.agentOnBehalfOf":"Adına hareket eden ajan","user.agentOnBehalfOfApiKey":"API anahtarı adına hareket eden ajan","user.allProjectMembers":"Tüm Proje Üyeleri","user.allProjectMembersDescription":"Bu projenin her üyesi bu izne sahiptir.","user.appVersion":"Uygulama Sürümü","user.environment":"Ortam","user.failedToFetchApiKey":"API anahtarı getirilemedi","user.failedToFetchGroup":"Grup getirilemedi","user.failedToFetchUser":"Kullanıcı getirilemedi","user.groupId":"Grup ID: {{id}}","user.key":"Anahtar:","user.organizationId":"Kuruluş ID","user.organizationRoles":"Kuruluş Rolleri","user.privateKey":"Özel Anahtar","user.project":"Proje:","user.projectId":"Proje ID","user.projectRoles":"Proje Rolleri","user.schedule":"{{title}} Zamanla","user.sdkVersion":"SDK Sürümü","user.server":"Sunucu","user.serviceAccount":"Hizmet Hesabı","user.serviceAccountDescription":"Bu kullanıcı, iş akışı işçileri gibi robotlar tarafından kullanılır.","user.store":"Depo","user.systemUser":"Sistem Kullanıcısı","user.systemUserDescription":"Sistem kullanıcısı, yerleşik nesneleri başlatmak için kullanılır.","user.tenantId":"Kiracı ID","user.unknown":"bilinmeyen","user.unknownUser":"Bilinmeyen Kullanıcı","user.unknownUserDescription":"Kullanıcı bilgisi mevcut değil.","user.unnamedGroup":"Adsız Grup","user.user":"Kullanıcı","user.userId":"Kullanıcı ID","widgets.schema.editDescription":"Açıklamayı düzenle","widgets.schema.invalidPropertyDeclaration":"Geçersiz özellik bildirimi"}},zh:{[Un]:{"agent.activeWorkstreams_one":"代理有{{count}}个活跃的工作流正在运行","agent.activeWorkstreams_other":"代理有{{count}}个活跃的工作流正在运行","agent.agentConversation":"代理对话","agent.agentInterrupted":"代理已中断","agent.agentPlan":"代理计划","agent.agentProcessing":"代理正在处理中,完成后即可继续...","agent.agentRunIdCopied":"已复制代理运行ID","agent.agentStarted":"代理已启动","agent.agentWorking":"代理工作中...(按两次Esc停止)","agent.agentWorkingStop":"代理工作中...按两次Esc或点击停止来中断","agent.allMessages":"所有消息","agent.artifacts":"产物","agent.askAnything":"随便问...(拖放或粘贴文件)","agent.batch":"批次","agent.canceled":"","agent.cancelWorkflow":"取消工作流","agent.clickToEnlarge":"点击放大","agent.cloneConversation":"克隆对话","agent.close":"关闭","agent.closeFullscreen":"关闭全屏","agent.completed":"已完成","agent.continueConversation":"继续对话","agent.conversationCloned":"对话已克隆","agent.conversationContinued":"对话已继续","agent.copied":"已复制","agent.copiedAllToolCalls":"所有工具调用已复制到剪贴板","agent.copiedBatchDetails":"批次详情已复制到剪贴板","agent.copiedToClipboard":"已复制到剪贴板","agent.copy":"复制","agent.copyAgentRunId":"复制代理运行ID","agent.copyAllToolCalls":"复制所有工具调用","agent.copyBatchDetails":"复制批次详情","agent.copyMessage":"复制消息","agent.copyRunId":"复制运行 ID","agent.copyToClipboard":"复制到剪贴板","agent.copyWorkflowRunId":"复制工作流运行ID","agent.dashboard":"仪表板","agent.details":"详情","agent.document":"文档","agent.documentAttachments":"文档附件","agent.documentAttachmentsDescription":"来自存储的文档已附加到此消息。代理可以随时通过 ID 重新获取它们,或重新附加以直接包含内容。","agent.documents":"文档","agent.download":"下载","agent.downloadConversation":"下载对话","agent.dropFilesToUpload":"拖放文件上传","agent.elapsed":"已过{{seconds}}秒","agent.enlargedView":"放大视图","agent.enterMessage":"输入消息以开始对话","agent.enterToSend":"Enter发送 / Shift+Enter换行","agent.error":"错误","agent.errorStarting":"启动工作流时出错","agent.exit":"退出","agent.exitFullscreen":"退出全屏","agent.export":"导出","agent.exportAsPdf":"导出为PDF","agent.exportAsPng":"导出为 PNG","agent.exportAsWord":"导出为 Word","agent.exporting":"正在导出...","agent.exportMessage":"导出消息","agent.failedToCancelWorkflow":"取消工作流失败","agent.failedToCloneConversation":"克隆对话失败","agent.failedToContinueConversation":"继续对话失败","agent.failedToDownload":"下载对话失败","agent.failedToInterrupt":"中断失败","agent.failedToLoadDocument":"加载文档失败","agent.failedToSend":"发送消息失败","agent.filesProcessing":"文件处理中","agent.filesStagedCount_one":"{{count}}个文件已暂存 - 对话开始时将上传","agent.filesStagedCount_other":"{{count}}个文件已暂存 - 对话开始时将上传","agent.filesUploadedDescription":"上传到此对话的文件始终可用。代理可以随时访问它们。","agent.fullscreen":"全屏","agent.hideDetails":"隐藏详情","agent.hideSidebar":"隐藏侧边栏","agent.hideThinkingDetails":"隐藏思考详情","agent.inProgress":"进行中","agent.linkObject":"关联对象","agent.loadingArtifacts":"正在加载产物...","agent.loadingDocument":"正在加载文档...","agent.main":"主要","agent.mainWorkstream":"主工作流","agent.moreActions":"更多操作","agent.newerPlan":"较新的计划","agent.no":"否","agent.noActiveWorkstreams":"没有活跃的工作流","agent.noAgentRunning":"当前没有正在运行的代理","agent.noArtifactsYet":"暂无产物","agent.noContentAvailable":"无可用内容","agent.noContentToExport":"没有可导出的内容","agent.noConversationContent":"没有可导出的对话内容","agent.noDocumentsOpen":"没有打开的文档","agent.noFilesUploadedYet":"暂无上传文件","agent.noMessagesInWorkstream":"此工作流中暂无消息...","agent.noPlanAvailable":"暂无计划","agent.noPlanDetected":"尚未检测到计划","agent.olderPlan":"较旧的计划","agent.openDocument":"打开文档","agent.openInNewTab":"在新标签页中打开","agent.payload":"载荷","agent.pdfExportFailed":"PDF导出失败","agent.pdfExportReady":"PDF导出已就绪","agent.pending":"待处理","agent.plan":"计划","agent.planProgress":"计划进度","agent.plansWillAppear":"当代理创建计划时,将在此处显示","agent.printDialogDescription":"使用浏览器的打印对话框保存为 PDF","agent.processing":"处理中...","agent.ready":"就绪","agent.refresh":"刷新","agent.remaining":"剩余{{seconds}}秒","agent.retry":"重试","agent.runIdCopied":"运行 ID 已复制","agent.searchDocuments":"搜索文档","agent.selectInteraction":"选择一个交互并点击开始以启动代理","agent.send":"发送","agent.showAllMessages":"显示所有消息","agent.showDetails":"显示详情","agent.showSidebar":"显示侧边栏","agent.staged":"已暂存","agent.startAgent":"启动代理","agent.startingAgent":"正在启动代理...","agent.startingAgentUploading":"正在启动代理并上传文件...","agent.startNewConversation":"开始新对话","agent.stepByStepPlan":"分步计划","agent.stop":"停止","agent.stopAgent":"停止代理","agent.submitSelection":"提交选择","agent.submitSelectionCount_one":"提交选择({{count}})","agent.submitSelectionCount_other":"提交选择({{count}})","agent.summary":"摘要","agent.taskProgress":"任务进度","agent.toggleRightSidebar":"切换右侧边栏","agent.typeNewInstructions":"输入新的指示","agent.typeQuestionBelow":"在下方输入问题并按Enter或点击{{buttonText}}开始","agent.typeYourMessage":"输入消息...","agent.typeYourResponse":"输入您的回复...","agent.unableToOpenPrint":"无法打开打印预览","agent.unknownError":"未知错误","agent.unknownTime":"未知时间","agent.upload":"上传","agent.uploadedFiles":"已上传文件","agent.uploadFailed":"上传失败","agent.uploading":"上传中...","agent.uploads":"上传","agent.waitForFiles":"请等待文件处理完成","agent.waitForFilesProcessing":"请等待所有文件处理完成后再发送","agent.waiting":"等待中...","agent.waitingForAgentResponse":"等待代理响应...","agent.workflowCancelled":"工作流已取消","agent.workflowRunIdCopied":"已复制工作流运行ID","agent.working":"工作中...","agent.workstreams":"工作流","agent.yes":"是","auth.continueWithEnterprise":"使用企业SSO继续","auth.continueWithGithub":"使用GitHub继续","auth.continueWithGoogle":"使用Google继续","auth.continueWithMicrosoft":"使用Microsoft继续","auth.enterEnterpriseEmail":"输入您的企业邮箱","auth.error":"错误:{{message}}","auth.firstTimeDetails":"我们只需要问您几个问题,就可以开始了。","auth.firstTimeMessage":"第一次来?没问题,免费试用!","auth.goBack":"返回","auth.invalidEmail":"无效的邮箱地址","auth.logInOrSignUp":"登录或注册","auth.needToMakeChange":"需要修改?","auth.or":"或","auth.privacyPolicy":"隐私政策","auth.signInError":"抱歉,我们无法完成您的登录。","auth.signInErrorContact":"请重试或联系","auth.signInErrorPersists":"如果问题持续存在。","auth.tenantNotFound":"未找到租户","auth.termsOfService":"服务条款","errors.failedToLoadTenantConfig":"加载租户配置失败","errors.somethingWentWrong":"抱歉,出了点问题...","errors.teamNotifiedLine1":"我们的团队已收到通知,将尽快解决。","errors.teamNotifiedLine2":"如果您想反馈问题或联系我们,请发送邮件至","filter.clearAll":"清除全部","filter.filter":"筛选","filter.filterBy":"按{{view}}筛选","filter.filterPlaceholder":"筛选...","filter.from":"从:","filter.noAvailableFilters":"没有可用的筛选条件","filter.noMatchingFilters":"没有匹配的筛选条件","filter.noResultsFound":"未找到结果。","filter.selectRange":"选择范围","filter.to":"至:","form.filter":"筛选...","layout.pageNotFound":"页面未找到","layout.search":"搜索","layout.searchPlaceholder":"搜索...","login.accept":"接受","login.reject":"拒绝","login.reviewInvites":"查看邀请","login.terminal.account":"账户","login.terminal.accountRequired":"账户为必填项","login.terminal.accountRequiredDesc":"请选择一个账户以授权客户端访问ComposablePrompts服务器","login.terminal.authorizeClient":"授权客户端","login.terminal.authPayloadCopied":"认证信息已复制","login.terminal.authPayloadCopiedSuccess":"您可以关闭此页面。CLI应已接收到令牌。","login.terminal.authPayloadCopiedWithError":"您可以将认证信息粘贴到终端中。注意:CLI未接收到令牌。发生错误:{{error}}","login.terminal.browserPermissionNote":"注意:如果浏览器要求访问本地网络的权限,请允许。这是将授权令牌发回CLI工具所必需的。否则,您需要手动将令牌复制/粘贴到终端中。","login.terminal.chooseAccountProject":"您必须选择客户端要访问的目标账户和项目。","login.terminal.clientAuthenticated":"客户端已认证。您可以关闭此页面。","login.terminal.clientWantsAuth":"一个客户端应用请求授权以您的名义访问ComposablePrompts服务器。","login.terminal.copyAuthPayload":"复制认证信息","login.terminal.envLocalDev":"本地开发","login.terminal.envProduction":"生产环境","login.terminal.envStaging":"预发布环境","login.terminal.errorAuthorizingClient":"授权客户端时出错","login.terminal.errorLoadingProjects":"加载项目时出错","login.terminal.failedToGetToken":"获取Composable令牌失败","login.terminal.failedToSendToken":"发送授权令牌至CLI工具失败","login.terminal.failedToSendTokenDesc":'这可能是由于Safari的安全检查导致的。错误为"{{error}}"',"login.terminal.invalidRequest":"无效的请求","login.terminal.invalidRequestDesc":"此页面应由终端客户端调用以认证ComposablePrompts服务器","login.terminal.profileName":"配置文件名称","login.terminal.profileNameNote":"此外,输入一个配置文件名称,用于将授权保存到客户端配置中。","login.terminal.profileRequired":"配置文件为必填项","login.terminal.profileRequiredDesc":"请输入配置文件名称以保存客户端授权","login.terminal.project":"项目","login.terminal.projectRequired":"项目为必填项","login.terminal.projectRequiredDesc":"请选择一个项目以授权客户端访问ComposablePrompts服务器","login.terminal.selectAccount":"选择账户","login.terminal.selectProject":"选择项目","mcpOAuth.authenticate":"身份验证","mcpOAuth.authenticating":"正在验证身份...","mcpOAuth.connect":"连接","mcpOAuth.connected":"已连接","mcpOAuth.connecting":"正在连接...","mcpOAuth.disconnect":"断开连接","mcpOAuth.notConnected":"未连接","misc.copiedToClipboard":"已复制到剪贴板","misc.copy":"复制","misc.failedToCopy":"复制失败","misc.noData":"没有可显示的数据","misc.tableView":"表格视图","misc.thumbnailView":"缩略图视图","modal.cancel":"取消","modal.confirm":"确认","modal.delete.error":"删除对象时发生错误","modal.delete.failed":"删除失败","modal.delete.succeeded":"删除成功","modal.save":"保存","modal.saveChanges":"保存更改","modal.saveVersion.createDescription":"使用这些属性更改创建新修订版,同时保留原始版本。","modal.saveVersion.createNew":"创建新版本","modal.saveVersion.createWithFileDescription":"使用替换文件创建新修订版,同时保留原始版本。","modal.saveVersion.howToSave":"您想如何保存这些更改?","modal.saveVersion.replaceFile":"您即将用以下内容替换内容文件:","modal.saveVersion.updateCurrent":"更新当前版本","modal.saveVersion.updateDescription":"直接在当前修订版中修改属性。","modal.saveVersion.updateWithFileDescription":"替换内容文件并直接在当前修订版中修改属性。","modal.saveVersion.versionLabel":"版本标签(可选)","modal.saveVersion.versionLabelDescription":"新版本的可选标签。","modal.saveVersion.versionLabelPlaceholder":"例如 v1.2、已批准、审核后","oauthProvider.authenticate":"认证","oauthProvider.authenticating":"正在认证...","oauthProvider.connected":"已连接","oauthProvider.disconnect":"断开连接","pdf.close":"关闭","pdf.closeFullscreen":"关闭全屏","pdf.download":"下载","pdf.failedToLoadViewer":"加载PDF查看器失败","pdf.fetchingDocumentFailed":"获取文档失败","pdf.fitToWidth":"适应宽度","pdf.fullscreen":"全屏","pdf.instrumentedImages":"标注图像","pdf.nextPage":"下一页","pdf.noPdfAvailable":"没有可用的PDF","pdf.originalImages":"原始图像","pdf.page":"页","pdf.pageOf":"第 {{pageNumber}} 页 / 共 {{totalPages}} 页","pdf.previousPage":"上一页","pdf.zoomIn":"放大","pdf.zoomOut":"缩小","shell.accessDenied":"访问被拒绝","shell.applicationNotRegistered":"应用未注册","shell.organization":"组织","shell.selectOrganization":"选择组织","shell.selectProject":"选择项目","signup.accountType":"账户类型","signup.activelyExploring":"正在积极探索LLM项目","signup.alreadyUsing":"已在生产环境中使用LLM","signup.company":"公司","signup.companyDescription":"适用于公司或组织。","signup.companyName":"公司名称","signup.companySize":"公司规模","signup.companyWebsite":"公司网站","signup.justTesting":"仅在测试或评估LLM","signup.migratingLLMs":"正在迁移到其他LLM","signup.other":"其他","signup.personal":"个人","signup.personalDescription":"适用于个人使用或小型团队。","signup.pleaseEnterOrgName":"请输入组织名称","signup.pleaseSelectAccountType":"请选择账户类型","signup.pleaseSelectCompanySize":"请选择公司规模","signup.projectMaturity":"项目成熟度","signup.selectCompanySize":"选择公司规模","signup.selectProjectMaturity":"选择项目成熟度","signup.signUp":"注册","signup.size1001to5000":"1001-5000名员工","signup.size101to1000":"101-1000名员工","signup.size11to100":"11-100名员工","signup.size1to10":"1-10名员工","signup.size5000plus":"5000+名员工","signup.welcomeMessage":"欢迎来到Vertesia,{{name}}({{email}})。\n请告诉我们一些关于您的信息,就可以开始了。\n无需信用卡。","signup.wrongAccountGoBack":"账户有误,返回","store.actions.addToCollection":"添加到集合","store.actions.addToCollectionBody":"将选中的对象添加到现有集合或创建新集合。","store.actions.addToCollectionButton":"添加到集合","store.actions.addToCollectionDesc":"将文档添加到集合","store.actions.addToCollectionFailure":"添加到集合失败","store.actions.addToCollectionFailureDesc":"无法将选中的对象添加到集合","store.actions.addToCollectionSuccess":"添加到集合成功","store.actions.addToCollectionSuccessDesc_one":"已将 {{count}} 个对象添加到集合","store.actions.addToCollectionSuccessDesc_other":"已将 {{count}} 个对象添加到集合","store.actions.addToCollectionTitle":"添加到集合","store.actions.areYouSure":"确定吗?","store.actions.cannotRemoveNoCollection":"无法移除对象:未指定集合","store.actions.changeContentType":"更改内容类型","store.actions.changeContentTypeDesc":"更改选中文档的内容类型","store.actions.changeType":"更改类型","store.actions.chooseExistingCollections":"从现有集合中选择","store.actions.chooseWorkflowRule":"选择要启动的工作流规则:","store.actions.confirmDeleteAll":"确定要删除所有选中的对象吗?此操作无法撤销。","store.actions.confirmDeleteSelected":"确定要删除选中的对象吗?\n这不是从集合中移除。","store.actions.createNew":"新建","store.actions.delete":"删除","store.actions.deleteObjects":"删除对象","store.actions.deleteTheSelectedObjects":"删除选中的对象","store.actions.errorChangingType":"更改类型时出错","store.actions.errorDeletingObjects":"删除对象时出错","store.actions.errorExportProperties":"导出属性时出错","store.actions.errorRemovingObjects":"从集合中移除对象时出错","store.actions.errorStartingWorkflow":"启动工作流时出错","store.actions.exportAllObjectProperties":"导出所有对象属性","store.actions.exportProperties":"导出属性","store.actions.noCollectionContext":"没有集合上下文","store.actions.noObjectsSelected":"未选择任何对象","store.actions.pleaseSelectObjectsToDelete":"请选择要删除的对象","store.actions.pleaseSelectObjectsToRemove":"请选择要从集合中移除的对象","store.actions.selectCollection":"选择集合","store.actions.startWorkflow":"启动工作流","store.actions.startWorkflowByRule":"按规则启动工作流","store.actions.startWorkflowDesc":"对选中的对象启动工作流","store.actions.workflowStarted":"工作流已启动","store.allowedContentTypes":"允许的内容类型","store.allowedContentTypesOptionalDescription":"可选择限定可添加到集合中的内容类型。如果未设置,则允许所有内容类型。","store.allowedContentTypesSelectDescription":"选择可添加到集合中的内容类型。如果未设置,则允许所有内容类型。","store.areYouSureDeleteCollection":"确定要删除此集合吗?此操作无法撤销。","store.audioFormatRequired":"需要MP3、M4A、OGG、WAV或WebM格式","store.automaticTypeDetection":"自动类型检测","store.automaticTypeDetectionDescription":"Vertesia将分析内容并选择最合适的类型。建议大多数上传使用此功能,以确保最佳处理效果。","store.cancelEdit":"取消","store.chooseAFormat":"选择格式","store.chooseContentType":"选择内容类型...","store.chooseContentTypes":"选择内容类型...","store.chooseWhatToExport":"选择要导出的内容","store.clearSelection":"清除选择","store.close":"关闭","store.collectionCreated":"集合已创建","store.collectionDeleted":"集合已删除","store.collectionFetchFailed":"获取集合失败","store.collectionPropertiesUpdated":"集合属性已更新","store.collectionsSelected_one":"已选择 {{count}} 个集合","store.collectionsSelected_other":"已选择 {{count}} 个集合","store.collectionUpdated":"集合已更新","store.collectionUpdatedSuccess":"集合已成功更新","store.configuration":"配置","store.confirmSelection":"确认选择","store.contentCopied":"{{type}}已复制","store.contentExported":"内容已导出","store.contentType":"内容类型","store.convertingToPdf":"正在转换为PDF...","store.copyFailed":"复制失败","store.createACollection":"创建集合","store.createCollection":"创建集合","store.created":"创建时间","store.createdBy":"创建者","store.createType":"创建类型","store.deleteCollection":"删除集合","store.documentExported":"文档已导出","store.documentInformation":"文档信息","store.documentListRefreshed":"文档列表已刷新","store.documentListRefreshedDesc":"文档列表已更新为您上传的文件。","store.documentPreview":"文档预览","store.downloadFailed":"下载失败","store.dynamicCollection":"动态集合","store.dynamicCollectionDescription":"基于查询动态获取集合内容。如果未启用,则内容必须由用户或代理添加。","store.editingGenericDocument":"编辑通用文档属性","store.editJson":"编辑JSON","store.editProperties":"编辑属性","store.editSchema":"编辑模式","store.editText":"编辑文本","store.embeddings":"嵌入向量","store.enableSyncMemberHeads":"启用同步成员HEAD","store.error":"错误","store.errorCheckingDuplicates":"检查重复文件时出错","store.errorCreatingType":"创建类型时出错","store.errorInUploadProcessingCheck":"文件上传处理检查出错","store.errorProcessingFiles":"处理文件时出错","store.errorSavingText":"保存文本失败","store.errorSavingTextDefault":"保存文本内容时发生错误。","store.errorUpdatingProperties":"更新属性时出错","store.errorUpdatingPropertiesDefault":"更新属性时发生错误。","store.exportFailed":"导出失败","store.exportInProgress":"导出进行中","store.failedToConvertToPdf":"转换为PDF失败","store.failedToCopy":"复制{{type}}到剪贴板失败","store.failedToCreateCollection":"创建集合失败","store.failedToDeleteCollection":"删除集合失败","store.failedToDownloadFile":"下载文件失败","store.failedToDownloadPdf":"下载PDF文件失败","store.failedToExportContent":"导出内容失败","store.failedToExportDocument":"导出文档失败","store.failedToFetchRoleMappings":"获取角色映射失败","store.failedToFetchTypes":"获取对象类型失败","store.failedToFetchWorkflows":"获取工作流失败","store.failedToGetDownloadUrl":"获取下载URL失败","store.failedToLoadDocument":"加载文档失败","store.failedToLoadType":"加载类型失败","store.failedToUpdateCollection":"更新集合失败","store.failedToUpdateCollectionProperties":"更新集合属性失败","store.failedToUpdateSchema":"更新模式失败","store.failedToUpdateSharedProperties":"更新共享属性失败","store.failedToUpdateSkipHeadSync":"更新跳过HEAD同步失败","store.failedToUpdateTableLayout":"更新表格布局失败","store.filesAnalyzedTitle":"文件分析完成","store.filesReadyToProcess":"文件已准备好处理","store.filterByName":"按名称筛选","store.fullText":"全文","store.fullView":"完整视图","store.getStartedCollections":"创建一个新的集合以开始。","store.getStartedTypes":"创建一个新的类型以开始。","store.id":"ID","store.invalidJson":"无效的JSON","store.invalidJsonSchema":"无效的JSON Schema","store.invalidQueryJson":"无效的查询JSON","store.invalidTableLayout":"无效的表格布局","store.isChunkable":"可分块","store.limit":"限制","store.loadingDocument":"正在加载文档...","store.loadingProcessingStatus":"正在加载处理状态...","store.na":"N/A","store.name":"名称","store.newCollections":"新建集合","store.newVersionCreated":"新版本已创建","store.newVersionCreatedDesc":"已创建一个包含更新属性的新版本。","store.noAudioRendition":"没有可用的Web兼容音频格式","store.noCollections":"没有集合","store.noCollectionsAvailable":"没有可用的集合。","store.noCollectionsFound":"未找到集合。","store.noFilesSelected":"未选择文件","store.none":"无","store.noObjectsDragAndDrop":"没有对象。只需将文档或图片拖放到此处即可创建内容对象。","store.noPreviewAvailable":"此文档类型没有可用的预览。","store.noProjectSelected":"未选择项目","store.noPropertiesAvailable":"此文档没有可用的属性。","store.noPropertiesDefined":"未定义属性","store.noTranscriptAvailable":"没有可用的转录","store.noType":"无类型","store.noValidFilesSelected":"未选择有效文件","store.noVideoRendition":"没有可用的Web兼容视频格式","store.openFullDocument":"打开完整文档","store.openFullDocumentView":"打开完整文档视图","store.optional":"(可选)","store.pdfConversionFailed":"PDF转换失败","store.pdfPreviewFullView":"PDF文档预览在完整视图中可用。","store.pleaseFixJsonSyntax":"请在保存前修复JSON语法错误。","store.pleaseProvideName":"请为集合提供名称","store.pleaseSelectValidFiles":"请选择内容有效的文件。","store.pleaseWait":"请等待","store.preview":"预览","store.previewProperties":"预览属性","store.processingFailedFor":"{{name}}处理失败","store.processingFiles":"正在处理文件","store.properties":"属性","store.propertiesUpdated":"属性已更新","store.propertiesUpdatedDesc":"对象属性已成功更新。","store.query":"查询","store.queryDescription":"定义查询以动态获取集合内容。","store.refresh":"刷新","store.renderingDocument":"正在渲染文档...","store.saveChanges":"保存更改","store.saveText":"保存","store.schemaEditor":"模式编辑器","store.schemaUpdated":"模式已更新","store.schemaUpdatedSuccess":"模式已成功更新","store.search":"搜索","store.searchCollections":"搜索集合","store.searchFailed":"搜索失败","store.searching":"搜索中...","store.searchPlaceholder":"输入您要查找的内容,或选择筛选条件","store.searchTypes":"搜索类型","store.selectACollection":"选择一个集合","store.selectContentType":"选择内容类型","store.selectContentTypeAuto":"选择内容类型,或留空以自动检测","store.selectContentTypeLabel":"选择内容类型","store.selectPropertiesToShare":"选择要共享的属性","store.semanticChunking":"语义分块","store.semanticSearch":"语义搜索","store.semanticSearchSettings":"语义搜索设置","store.sharedProperties":"共享属性","store.sharedPropertiesDescription":"添加要在集合中所有成员之间共享的属性。此功能需要在项目中启用共享属性同步。","store.showingFirst128K":"仅显示前128K个字符","store.size":"大小","store.staticCollection":"静态集合","store.strictMode":"严格模式","store.successfullyCopied":"已成功复制{{type}}到剪贴板","store.successfullyExportedTo":"已成功导出为{{format}}","store.syncMemberHeads":"同步成员HEAD","store.syncMemberHeadsDescription":"当成员的新HEAD版本被创建时,集合将更新为指向新的HEAD。","store.tableLayout":"表格布局","store.tableLayoutDescription":"定义用于在表格中显示集合的自定义布局。","store.tableLayoutUpdated":"表格布局已更新","store.tableLayoutUpdatedDesc":"表格布局已成功更新","store.textConflict":"文档已在其他地方被修改。请刷新后重试。","store.textSaved":"文本内容已保存","store.typeCreated":"类型已创建","store.typeDescription":"可选择内容类型以为集合分配自定义属性和数据。","store.typeSelectDescription":"选择内容类型以为集合分配自定义属性和数据。","store.unknown":"未知","store.unsavedChanges":"未保存的更改","store.updated":"更新时间","store.updatedAt":"更新时间","store.updatedBy":"更新者","store.updatedSharedProperties":"已更新共享属性","store.updatedSkipHeadSync":"已更新跳过HEAD同步设置","store.upload":"上传","store.uploadComplete":"上传完成","store.uploadIssues":"上传问题","store.validationFailed":"验证失败","store.videoFormatRequired":"需要MP4或WebM格式","store.viewAsPdf":"以PDF查看","store.viewAudio":"查看音频","store.viewImage":"查看图片","store.viewingNewVersion":"正在查看新版本","store.viewingNewVersionDefault":"正在查看新版本","store.viewingVersionLabel":"正在查看版本'{{label}}'","store.viewInJsonFormat":"以JSON格式查看","store.viewPdf":"查看PDF","store.viewText":"查看文本","store.viewTranscript":"查看转录","store.viewVideo":"查看视频","theme.dark":"深色","theme.label":"主题","theme.light":"浅色","theme.system":"系统","type.description":"描述","type.name":"名称","type.nameRequired":"名称为必填项","type.type":"类型","upload.allFilesExist_one":"{{count}} 个文件已存在","upload.allFilesExist_other":"{{count}} 个文件已存在","upload.analyzingFiles":"正在分析文件...","upload.checkingForDuplicates":"正在检查重复项和更新","upload.collectionLabel":"集合:","upload.contentTypeTooltip":"选择要应用于上传文件的内容类型。如果留空,Vertesia将根据文件内容自动检测类型。","upload.continue":"继续","upload.dragAndDrop":"将文件拖放到此处或点击选择","upload.errorAnalyzingFiles":"分析文件时出错","upload.failedToUpload":"上传失败","upload.fileAnalysisResults":"文件分析结果","upload.filesAnalyzed":"文件分析完成","upload.filesProcessed_one":"已处理{{count}}个文件","upload.filesProcessed_other":"已处理{{count}}个文件","upload.filesReadyToProcess_one":"{{count}}个文件已准备好处理","upload.filesReadyToProcess_other":"{{count}}个文件已准备好处理","upload.filesToSkip_one":"{{count}}个文件已存在于系统中,将被跳过。","upload.filesToSkip_other":"{{count}}个文件已存在于系统中,将被跳过。","upload.folderLabel":"文件夹:","upload.inCollection":"在集合'{{collection}}'中","upload.inFolder":"在文件夹'{{location}}'中","upload.new":"新建","upload.noFilesToProcess":"没有可处理的文件。","upload.noItems":"没有可显示的项目","upload.preparingFiles_one":"正在准备上传{{count}}个文件...","upload.preparingFiles_other":"正在准备上传{{count}}个文件...","upload.preparingFolder_one":"正在准备上传1个文件夹,包含{{fileCount}}个文件...","upload.preparingFolder_other":"正在准备上传{{folderCount}}个文件夹,包含{{fileCount}}个文件...","upload.processedCount":"已处理{{processed}}/{{total}}个文件...","upload.processingFilesAction":"正在处理文件({{action}})","upload.selectFiles":"选择文件","upload.selectFolder":"选择文件夹","upload.skip":"跳过","upload.skippedAlreadyExisted":"已跳过(已存在)","upload.successfullyUpdated":"更新成功","upload.successfullyUploaded":"上传成功","upload.update":"更新","upload.uploadComplete":"上传完成","upload.uploadFiles":"上传文件","upload.uploadingFiles":"正在上传文件","upload.uploadLocation":"上传位置:","upload.uploadMore":"上传更多","upload.uploadProcessInterrupted":"上传过程已中断","upload.useAutoDetection":"使用自动类型检测","upload.useTypeName":"使用{{typeName}}","user.account":"账户:","user.agentOnBehalfOf":"代理代表","user.agentOnBehalfOfApiKey":"代理代表API密钥","user.allProjectMembers":"所有项目成员","user.allProjectMembersDescription":"此项目的每个成员都拥有此权限。","user.appVersion":"应用版本","user.environment":"环境","user.failedToFetchApiKey":"获取API密钥失败","user.failedToFetchGroup":"获取群组失败","user.failedToFetchUser":"获取用户失败","user.groupId":"群组ID:{{id}}","user.key":"密钥:","user.organizationId":"组织ID","user.organizationRoles":"组织角色","user.privateKey":"私钥","user.project":"项目:","user.projectId":"项目ID","user.projectRoles":"项目角色","user.schedule":"计划{{title}}","user.sdkVersion":"SDK版本","user.server":"服务器","user.serviceAccount":"服务账户","user.serviceAccountDescription":"此用户由工作流工作器等机器人使用。","user.store":"存储","user.systemUser":"系统用户","user.systemUserDescription":"系统用户用于初始化内置对象。","user.tenantId":"租户ID","user.unknown":"未知","user.unknownUser":"未知用户","user.unknownUserDescription":"用户信息不可用。","user.unnamedGroup":"未命名群组","user.user":"用户","user.userId":"用户ID","widgets.schema.editDescription":"编辑描述","widgets.schema.invalidPropertyDeclaration":"无效的属性声明"}},"zh-TW":{[Un]:{"agent.activeWorkstreams_one":"代理有{{count}}個活躍的工作流正在運行","agent.activeWorkstreams_other":"代理有{{count}}個活躍的工作流正在運行","agent.agentConversation":"代理對話","agent.agentInterrupted":"代理已中斷","agent.agentPlan":"代理計劃","agent.agentProcessing":"代理正在處理中,完成後即可繼續...","agent.agentRunIdCopied":"已複製代理程式執行ID","agent.agentStarted":"代理已啟動","agent.agentWorking":"代理工作中...(按兩次Esc停止)","agent.agentWorkingStop":"代理工作中...按兩次Esc或點擊停止來中斷","agent.allMessages":"所有訊息","agent.artifacts":"產物","agent.askAnything":"隨便問...(拖放或貼上檔案)","agent.batch":"批次","agent.canceled":"","agent.cancelWorkflow":"取消工作流程","agent.clickToEnlarge":"點擊放大","agent.cloneConversation":"複製對話","agent.close":"關閉","agent.closeFullscreen":"關閉全螢幕","agent.completed":"已完成","agent.continueConversation":"繼續對話","agent.conversationCloned":"對話已複製","agent.conversationContinued":"對話已繼續","agent.copied":"已複製","agent.copiedAllToolCalls":"所有工具呼叫已複製到剪貼簿","agent.copiedBatchDetails":"批次詳情已複製到剪貼簿","agent.copiedToClipboard":"已複製到剪貼簿","agent.copy":"複製","agent.copyAgentRunId":"複製代理程式執行ID","agent.copyAllToolCalls":"複製所有工具呼叫","agent.copyBatchDetails":"複製批次詳情","agent.copyMessage":"複製訊息","agent.copyRunId":"複製執行 ID","agent.copyToClipboard":"複製到剪貼簿","agent.copyWorkflowRunId":"複製工作流程執行ID","agent.dashboard":"儀表板","agent.details":"詳情","agent.document":"文件","agent.documentAttachments":"文件附件","agent.documentAttachmentsDescription":"來自存儲的文件已附加到此訊息。代理可以隨時透過 ID 重新取得它們,或重新附加以直接包含內容。","agent.documents":"文件","agent.download":"下載","agent.downloadConversation":"下載對話","agent.dropFilesToUpload":"拖放檔案上傳","agent.elapsed":"已過{{seconds}}秒","agent.enlargedView":"放大檢視","agent.enterMessage":"輸入訊息以開始對話","agent.enterToSend":"Enter傳送 / Shift+Enter換行","agent.error":"錯誤","agent.errorStarting":"啟動工作流時出錯","agent.exit":"退出","agent.exitFullscreen":"退出全螢幕","agent.export":"匯出","agent.exportAsPdf":"匯出為PDF","agent.exportAsPng":"匯出為 PNG","agent.exportAsWord":"匯出為 Word","agent.exporting":"正在匯出...","agent.exportMessage":"匯出訊息","agent.failedToCancelWorkflow":"取消工作流程失敗","agent.failedToCloneConversation":"複製對話失敗","agent.failedToContinueConversation":"繼續對話失敗","agent.failedToDownload":"下載對話失敗","agent.failedToInterrupt":"中斷失敗","agent.failedToLoadDocument":"載入文件失敗","agent.failedToSend":"傳送訊息失敗","agent.filesProcessing":"檔案處理中","agent.filesStagedCount_one":"{{count}}個檔案已暫存 - 對話開始時將上傳","agent.filesStagedCount_other":"{{count}}個檔案已暫存 - 對話開始時將上傳","agent.filesUploadedDescription":"上傳到此對話的檔案始終可用。代理可以隨時存取它們。","agent.fullscreen":"全螢幕","agent.hideDetails":"隱藏詳情","agent.hideSidebar":"隱藏側邊欄","agent.hideThinkingDetails":"隱藏思考詳情","agent.inProgress":"進行中","agent.linkObject":"關聯物件","agent.loadingArtifacts":"正在載入產物...","agent.loadingDocument":"正在載入文件...","agent.main":"主要","agent.mainWorkstream":"主工作流","agent.moreActions":"更多操作","agent.newerPlan":"較新的計劃","agent.no":"否","agent.noActiveWorkstreams":"沒有活躍的工作流","agent.noAgentRunning":"目前沒有正在運行的代理","agent.noArtifactsYet":"暫無產物","agent.noContentAvailable":"無可用內容","agent.noContentToExport":"沒有可匯出的內容","agent.noConversationContent":"沒有可匯出的對話內容","agent.noDocumentsOpen":"沒有開啟的文件","agent.noFilesUploadedYet":"暫無上傳檔案","agent.noMessagesInWorkstream":"此工作流程中暫無訊息...","agent.noPlanAvailable":"暫無計劃","agent.noPlanDetected":"尚未偵測到計劃","agent.olderPlan":"較舊的計劃","agent.openDocument":"開啟文件","agent.openInNewTab":"在新分頁中開啟","agent.payload":"載荷","agent.pdfExportFailed":"PDF匯出失敗","agent.pdfExportReady":"PDF匯出已就緒","agent.pending":"待處理","agent.plan":"計劃","agent.planProgress":"計劃進度","agent.plansWillAppear":"當代理建立計劃時,將在此處顯示","agent.printDialogDescription":"使用瀏覽器的列印對話框儲存為 PDF","agent.processing":"處理中...","agent.ready":"就緒","agent.refresh":"重新整理","agent.remaining":"剩餘{{seconds}}秒","agent.retry":"重試","agent.runIdCopied":"執行 ID 已複製","agent.searchDocuments":"搜尋文件","agent.selectInteraction":"選擇一個互動並點擊開始以啟動代理","agent.send":"傳送","agent.showAllMessages":"顯示所有訊息","agent.showDetails":"顯示詳情","agent.showSidebar":"顯示側邊欄","agent.staged":"已暫存","agent.startAgent":"啟動代理","agent.startingAgent":"正在啟動代理...","agent.startingAgentUploading":"正在啟動代理並上傳檔案...","agent.startNewConversation":"開始新對話","agent.stepByStepPlan":"逐步計劃","agent.stop":"停止","agent.stopAgent":"停止代理","agent.submitSelection":"提交選擇","agent.submitSelectionCount_one":"提交選擇({{count}})","agent.submitSelectionCount_other":"提交選擇({{count}})","agent.summary":"摘要","agent.taskProgress":"任務進度","agent.toggleRightSidebar":"切換右側邊欄","agent.typeNewInstructions":"輸入新的指示","agent.typeQuestionBelow":"在下方輸入問題並按Enter或點擊{{buttonText}}開始","agent.typeYourMessage":"輸入訊息...","agent.typeYourResponse":"輸入您的回覆...","agent.unableToOpenPrint":"無法開啟列印預覽","agent.unknownError":"未知錯誤","agent.unknownTime":"未知時間","agent.upload":"上傳","agent.uploadedFiles":"已上傳檔案","agent.uploadFailed":"上傳失敗","agent.uploading":"上傳中...","agent.uploads":"上傳","agent.waitForFiles":"請等待檔案處理完成","agent.waitForFilesProcessing":"請等待所有檔案處理完成後再傳送","agent.waiting":"等待中...","agent.waitingForAgentResponse":"等待代理回應...","agent.workflowCancelled":"工作流程已取消","agent.workflowRunIdCopied":"已複製工作流程執行ID","agent.working":"工作中...","agent.workstreams":"工作流","agent.yes":"是","auth.continueWithEnterprise":"使用企業SSO繼續","auth.continueWithGithub":"使用GitHub繼續","auth.continueWithGoogle":"使用Google繼續","auth.continueWithMicrosoft":"使用Microsoft繼續","auth.enterEnterpriseEmail":"輸入您的企業信箱","auth.error":"錯誤:{{message}}","auth.firstTimeDetails":"我們只需要問您幾個問題,就可以開始了。","auth.firstTimeMessage":"第一次來?沒問題,免費試用!","auth.goBack":"返回","auth.invalidEmail":"無效的信箱地址","auth.logInOrSignUp":"登入或註冊","auth.needToMakeChange":"需要修改?","auth.or":"或","auth.privacyPolicy":"隱私政策","auth.signInError":"抱歉,我們無法完成您的登入。","auth.signInErrorContact":"請重試或聯繫","auth.signInErrorPersists":"如果問題持續存在。","auth.tenantNotFound":"未找到租戶","auth.termsOfService":"服務條款","errors.failedToLoadTenantConfig":"載入租戶設定失敗","errors.somethingWentWrong":"抱歉,出了點問題...","errors.teamNotifiedLine1":"我們的團隊已收到通知,將儘快解決。","errors.teamNotifiedLine2":"如果您想反映問題或聯繫我們,請發送郵件至","filter.clearAll":"清除全部","filter.filter":"篩選","filter.filterBy":"按{{view}}篩選","filter.filterPlaceholder":"篩選...","filter.from":"從:","filter.noAvailableFilters":"沒有可用的篩選條件","filter.noMatchingFilters":"沒有匹配的篩選條件","filter.noResultsFound":"未找到結果。","filter.selectRange":"選擇範圍","filter.to":"至:","form.filter":"篩選...","layout.pageNotFound":"頁面未找到","layout.search":"搜尋","layout.searchPlaceholder":"搜尋...","login.accept":"接受","login.reject":"拒絕","login.reviewInvites":"查看邀請","login.terminal.account":"帳戶","login.terminal.accountRequired":"帳戶為必填項","login.terminal.accountRequiredDesc":"請選擇一個帳戶以授權客戶端存取ComposablePrompts伺服器","login.terminal.authorizeClient":"授權客戶端","login.terminal.authPayloadCopied":"認證資訊已複製","login.terminal.authPayloadCopiedSuccess":"您可以關閉此頁面。CLI應已接收到權杖。","login.terminal.authPayloadCopiedWithError":"您可以將認證資訊貼到終端中。注意:CLI未接收到權杖。發生錯誤:{{error}}","login.terminal.browserPermissionNote":"注意:如果瀏覽器要求存取本地網路的權限,請允許。這是將授權權杖傳回CLI工具所必需的。否則,您需要手動將權杖複製/貼上到終端中。","login.terminal.chooseAccountProject":"您必須選擇客戶端要存取的目標帳戶和專案。","login.terminal.clientAuthenticated":"客戶端已認證。您可以關閉此頁面。","login.terminal.clientWantsAuth":"一個客戶端應用程式請求授權以您的名義存取ComposablePrompts伺服器。","login.terminal.copyAuthPayload":"複製認證資訊","login.terminal.envLocalDev":"本地開發","login.terminal.envProduction":"生產環境","login.terminal.envStaging":"預發布環境","login.terminal.errorAuthorizingClient":"授權客戶端時出錯","login.terminal.errorLoadingProjects":"載入專案時出錯","login.terminal.failedToGetToken":"取得Composable權杖失敗","login.terminal.failedToSendToken":"傳送授權權杖至CLI工具失敗","login.terminal.failedToSendTokenDesc":'這可能是由於Safari的安全檢查導致的。錯誤為"{{error}}"',"login.terminal.invalidRequest":"無效的請求","login.terminal.invalidRequestDesc":"此頁面應由終端客戶端呼叫以認證ComposablePrompts伺服器","login.terminal.profileName":"設定檔名稱","login.terminal.profileNameNote":"此外,輸入一個設定檔名稱,用於將授權儲存到客戶端設定中。","login.terminal.profileRequired":"設定檔為必填項","login.terminal.profileRequiredDesc":"請輸入設定檔名稱以儲存客戶端授權","login.terminal.project":"專案","login.terminal.projectRequired":"專案為必填項","login.terminal.projectRequiredDesc":"請選擇一個專案以授權客戶端存取ComposablePrompts伺服器","login.terminal.selectAccount":"選擇帳戶","login.terminal.selectProject":"選擇專案","mcpOAuth.authenticate":"身份驗證","mcpOAuth.authenticating":"正在驗證身份...","mcpOAuth.connect":"連接","mcpOAuth.connected":"已連接","mcpOAuth.connecting":"正在連接...","mcpOAuth.disconnect":"中斷連接","mcpOAuth.notConnected":"未連接","misc.copiedToClipboard":"已複製到剪貼簿","misc.copy":"複製","misc.failedToCopy":"複製失敗","misc.noData":"沒有可顯示的資料","misc.tableView":"表格檢視","misc.thumbnailView":"縮圖檢視","modal.cancel":"取消","modal.confirm":"確認","modal.delete.error":"刪除物件時發生錯誤","modal.delete.failed":"刪除失敗","modal.delete.succeeded":"刪除成功","modal.save":"儲存","modal.saveChanges":"儲存變更","modal.saveVersion.createDescription":"使用這些屬性變更建立新修訂版,同時保留原始版本。","modal.saveVersion.createNew":"建立新版本","modal.saveVersion.createWithFileDescription":"使用替換檔案建立新修訂版,同時保留原始版本。","modal.saveVersion.howToSave":"您想如何儲存這些變更?","modal.saveVersion.replaceFile":"您即將用以下內容替換內容檔案:","modal.saveVersion.updateCurrent":"更新目前版本","modal.saveVersion.updateDescription":"直接在目前修訂版中修改屬性。","modal.saveVersion.updateWithFileDescription":"替換內容檔案並直接在目前修訂版中修改屬性。","modal.saveVersion.versionLabel":"版本標籤(選填)","modal.saveVersion.versionLabelDescription":"新版本的選填標籤。","modal.saveVersion.versionLabelPlaceholder":"例如 v1.2、已核准、審核後","oauthProvider.authenticate":"驗證","oauthProvider.authenticating":"正在驗證...","oauthProvider.connected":"已連線","oauthProvider.disconnect":"中斷連線","pdf.close":"關閉","pdf.closeFullscreen":"關閉全螢幕","pdf.download":"下載","pdf.failedToLoadViewer":"載入PDF檢視器失敗","pdf.fetchingDocumentFailed":"取得文件失敗","pdf.fitToWidth":"適應寬度","pdf.fullscreen":"全螢幕","pdf.instrumentedImages":"標註圖像","pdf.nextPage":"下一頁","pdf.noPdfAvailable":"沒有可用的PDF","pdf.originalImages":"原始圖像","pdf.page":"頁","pdf.pageOf":"第 {{pageNumber}} 頁 / 共 {{totalPages}} 頁","pdf.previousPage":"上一頁","pdf.zoomIn":"放大","pdf.zoomOut":"縮小","shell.accessDenied":"存取被拒絕","shell.applicationNotRegistered":"應用程式未註冊","shell.organization":"組織","shell.selectOrganization":"選擇組織","shell.selectProject":"選擇專案","signup.accountType":"帳戶類型","signup.activelyExploring":"正在積極探索LLM專案","signup.alreadyUsing":"已在生產環境中使用LLM","signup.company":"公司","signup.companyDescription":"適用於公司或組織。","signup.companyName":"公司名稱","signup.companySize":"公司規模","signup.companyWebsite":"公司網站","signup.justTesting":"僅在測試或評估LLM","signup.migratingLLMs":"正在遷移到其他LLM","signup.other":"其他","signup.personal":"個人","signup.personalDescription":"適用於個人使用或小型團隊。","signup.pleaseEnterOrgName":"請輸入組織名稱","signup.pleaseSelectAccountType":"請選擇帳戶類型","signup.pleaseSelectCompanySize":"請選擇公司規模","signup.projectMaturity":"專案成熟度","signup.selectCompanySize":"選擇公司規模","signup.selectProjectMaturity":"選擇專案成熟度","signup.signUp":"註冊","signup.size1001to5000":"1001-5000名員工","signup.size101to1000":"101-1000名員工","signup.size11to100":"11-100名員工","signup.size1to10":"1-10名員工","signup.size5000plus":"5000+名員工","signup.welcomeMessage":"歡迎來到Vertesia,{{name}}({{email}})。\n請告訴我們一些關於您的資訊,就可以開始了。\n無需信用卡。","signup.wrongAccountGoBack":"帳戶有誤,返回","store.actions.addToCollection":"新增到集合","store.actions.addToCollectionBody":"將選中的物件新增到現有集合或建立新集合。","store.actions.addToCollectionButton":"新增到集合","store.actions.addToCollectionDesc":"將文件新增到集合","store.actions.addToCollectionFailure":"新增到集合失敗","store.actions.addToCollectionFailureDesc":"無法將選中的物件新增到集合","store.actions.addToCollectionSuccess":"新增到集合成功","store.actions.addToCollectionSuccessDesc_one":"已將 {{count}} 個物件新增至集合","store.actions.addToCollectionSuccessDesc_other":"已將 {{count}} 個物件新增至集合","store.actions.addToCollectionTitle":"新增到集合","store.actions.areYouSure":"確定嗎?","store.actions.cannotRemoveNoCollection":"無法移除物件:未指定集合","store.actions.changeContentType":"變更內容類型","store.actions.changeContentTypeDesc":"變更選中文件的內容類型","store.actions.changeType":"變更類型","store.actions.chooseExistingCollections":"從現有集合中選擇","store.actions.chooseWorkflowRule":"選擇要啟動的工作流程規則:","store.actions.confirmDeleteAll":"確定要刪除所有選中的物件嗎?此操作無法復原。","store.actions.confirmDeleteSelected":"確定要刪除選中的物件嗎?\n這不是從集合中移除。","store.actions.createNew":"新建","store.actions.delete":"刪除","store.actions.deleteObjects":"刪除物件","store.actions.deleteTheSelectedObjects":"刪除選中的物件","store.actions.errorChangingType":"變更類型時出錯","store.actions.errorDeletingObjects":"刪除物件時出錯","store.actions.errorExportProperties":"匯出屬性時出錯","store.actions.errorRemovingObjects":"從集合中移除物件時出錯","store.actions.errorStartingWorkflow":"啟動工作流程時出錯","store.actions.exportAllObjectProperties":"匯出所有物件屬性","store.actions.exportProperties":"匯出屬性","store.actions.noCollectionContext":"沒有集合上下文","store.actions.noObjectsSelected":"未選擇任何物件","store.actions.pleaseSelectObjectsToDelete":"請選擇要刪除的物件","store.actions.pleaseSelectObjectsToRemove":"請選擇要從集合中移除的物件","store.actions.selectCollection":"選擇集合","store.actions.startWorkflow":"啟動工作流程","store.actions.startWorkflowByRule":"按規則啟動工作流程","store.actions.startWorkflowDesc":"對選中的物件啟動工作流程","store.actions.workflowStarted":"工作流程已啟動","store.allowedContentTypes":"允許的內容類型","store.allowedContentTypesOptionalDescription":"可選擇限定可新增到集合中的內容類型。如果未設定,則允許所有內容類型。","store.allowedContentTypesSelectDescription":"選擇可新增到集合中的內容類型。如果未設定,則允許所有內容類型。","store.areYouSureDeleteCollection":"確定要刪除此集合嗎?此操作無法復原。","store.audioFormatRequired":"需要MP3、M4A、OGG、WAV或WebM格式","store.automaticTypeDetection":"自動類型偵測","store.automaticTypeDetectionDescription":"Vertesia將分析內容並選擇最合適的類型。建議大多數上傳使用此功能,以確保最佳處理效果。","store.cancelEdit":"取消","store.chooseAFormat":"選擇格式","store.chooseContentType":"選擇內容類型...","store.chooseContentTypes":"選擇內容類型...","store.chooseWhatToExport":"選擇要匯出的內容","store.clearSelection":"清除選擇","store.close":"關閉","store.collectionCreated":"集合已建立","store.collectionDeleted":"集合已刪除","store.collectionFetchFailed":"取得集合失敗","store.collectionPropertiesUpdated":"集合屬性已更新","store.collectionsSelected_one":"已選取 {{count}} 個集合","store.collectionsSelected_other":"已選取 {{count}} 個集合","store.collectionUpdated":"集合已更新","store.collectionUpdatedSuccess":"集合已成功更新","store.configuration":"設定","store.confirmSelection":"確認選擇","store.contentCopied":"{{type}}已複製","store.contentExported":"內容已匯出","store.contentType":"內容類型","store.convertingToPdf":"正在轉換為PDF...","store.copyFailed":"複製失敗","store.createACollection":"建立集合","store.createCollection":"建立集合","store.created":"建立時間","store.createdBy":"建立者","store.createType":"建立類型","store.deleteCollection":"刪除集合","store.documentExported":"文件已匯出","store.documentInformation":"文件資訊","store.documentListRefreshed":"文件列表已重新整理","store.documentListRefreshedDesc":"文件列表已更新為您上傳的檔案。","store.documentPreview":"文件預覽","store.downloadFailed":"下載失敗","store.dynamicCollection":"動態集合","store.dynamicCollectionDescription":"根據查詢動態取得集合內容。如果未啟用,則內容必須由使用者或代理新增。","store.editingGenericDocument":"編輯通用文件屬性","store.editJson":"編輯JSON","store.editProperties":"編輯屬性","store.editSchema":"編輯結構","store.editText":"編輯文字","store.embeddings":"嵌入向量","store.enableSyncMemberHeads":"啟用同步成員HEAD","store.error":"錯誤","store.errorCheckingDuplicates":"檢查重複檔案時出錯","store.errorCreatingType":"建立類型時出錯","store.errorInUploadProcessingCheck":"檔案上傳處理檢查出錯","store.errorProcessingFiles":"處理檔案時出錯","store.errorSavingText":"儲存文字失敗","store.errorSavingTextDefault":"儲存文字內容時發生錯誤。","store.errorUpdatingProperties":"更新屬性時出錯","store.errorUpdatingPropertiesDefault":"更新屬性時發生錯誤。","store.exportFailed":"匯出失敗","store.exportInProgress":"匯出進行中","store.failedToConvertToPdf":"轉換為PDF失敗","store.failedToCopy":"複製{{type}}到剪貼簿失敗","store.failedToCreateCollection":"建立集合失敗","store.failedToDeleteCollection":"刪除集合失敗","store.failedToDownloadFile":"下載檔案失敗","store.failedToDownloadPdf":"下載PDF檔案失敗","store.failedToExportContent":"匯出內容失敗","store.failedToExportDocument":"匯出文件失敗","store.failedToFetchRoleMappings":"取得角色對應失敗","store.failedToFetchTypes":"取得物件類型失敗","store.failedToFetchWorkflows":"取得工作流程失敗","store.failedToGetDownloadUrl":"取得下載URL失敗","store.failedToLoadDocument":"載入文件失敗","store.failedToLoadType":"載入類型失敗","store.failedToUpdateCollection":"更新集合失敗","store.failedToUpdateCollectionProperties":"更新集合屬性失敗","store.failedToUpdateSchema":"更新結構失敗","store.failedToUpdateSharedProperties":"更新共享屬性失敗","store.failedToUpdateSkipHeadSync":"更新略過HEAD同步失敗","store.failedToUpdateTableLayout":"更新表格佈局失敗","store.filesAnalyzedTitle":"檔案分析完成","store.filesReadyToProcess":"檔案已準備好處理","store.filterByName":"按名稱篩選","store.fullText":"全文","store.fullView":"完整檢視","store.getStartedCollections":"建立一個新的集合以開始。","store.getStartedTypes":"建立一個新的類型以開始。","store.id":"ID","store.invalidJson":"無效的JSON","store.invalidJsonSchema":"無效的JSON Schema","store.invalidQueryJson":"無效的查詢JSON","store.invalidTableLayout":"無效的表格佈局","store.isChunkable":"可分塊","store.limit":"限制","store.loadingDocument":"正在載入文件...","store.loadingProcessingStatus":"正在載入處理狀態...","store.na":"N/A","store.name":"名稱","store.newCollections":"新建集合","store.newVersionCreated":"新版本已建立","store.newVersionCreatedDesc":"已建立一個包含更新屬性的新版本。","store.noAudioRendition":"沒有可用的Web相容音訊格式","store.noCollections":"沒有集合","store.noCollectionsAvailable":"沒有可用的集合。","store.noCollectionsFound":"未找到集合。","store.noFilesSelected":"未選擇檔案","store.none":"無","store.noObjectsDragAndDrop":"沒有物件。只需將文件或圖片拖放到此處即可建立內容物件。","store.noPreviewAvailable":"此文件類型沒有可用的預覽。","store.noProjectSelected":"未選擇專案","store.noPropertiesAvailable":"此文件沒有可用的屬性。","store.noPropertiesDefined":"未定義屬性","store.noTranscriptAvailable":"沒有可用的轉錄","store.noType":"無類型","store.noValidFilesSelected":"未選擇有效檔案","store.noVideoRendition":"沒有可用的Web相容影片格式","store.openFullDocument":"開啟完整文件","store.openFullDocumentView":"開啟完整文件檢視","store.optional":"(選填)","store.pdfConversionFailed":"PDF轉換失敗","store.pdfPreviewFullView":"PDF文件預覽在完整檢視中可用。","store.pleaseFixJsonSyntax":"請在儲存前修復JSON語法錯誤。","store.pleaseProvideName":"請為集合提供名稱","store.pleaseSelectValidFiles":"請選擇內容有效的檔案。","store.pleaseWait":"請等待","store.preview":"預覽","store.previewProperties":"預覽屬性","store.processingFailedFor":"{{name}}處理失敗","store.processingFiles":"正在處理檔案","store.properties":"屬性","store.propertiesUpdated":"屬性已更新","store.propertiesUpdatedDesc":"物件屬性已成功更新。","store.query":"查詢","store.queryDescription":"定義查詢以動態取得集合內容。","store.refresh":"重新整理","store.renderingDocument":"正在渲染文件...","store.saveChanges":"儲存變更","store.saveText":"儲存","store.schemaEditor":"結構編輯器","store.schemaUpdated":"結構已更新","store.schemaUpdatedSuccess":"結構已成功更新","store.search":"搜尋","store.searchCollections":"搜尋集合","store.searchFailed":"搜尋失敗","store.searching":"搜尋中...","store.searchPlaceholder":"輸入您要尋找的內容,或選擇篩選條件","store.searchTypes":"搜尋類型","store.selectACollection":"選擇一個集合","store.selectContentType":"選擇內容類型","store.selectContentTypeAuto":"選擇內容類型,或留空以自動偵測","store.selectContentTypeLabel":"選擇內容類型","store.selectPropertiesToShare":"選擇要共享的屬性","store.semanticChunking":"語意分塊","store.semanticSearch":"語意搜尋","store.semanticSearchSettings":"語意搜尋設定","store.sharedProperties":"共享屬性","store.sharedPropertiesDescription":"新增要在集合中所有成員之間共享的屬性。此功能需要在專案中啟用共享屬性同步。","store.showingFirst128K":"僅顯示前128K個字元","store.size":"大小","store.staticCollection":"靜態集合","store.strictMode":"嚴格模式","store.successfullyCopied":"已成功複製{{type}}到剪貼簿","store.successfullyExportedTo":"已成功匯出為{{format}}","store.syncMemberHeads":"同步成員HEAD","store.syncMemberHeadsDescription":"當成員的新HEAD版本被建立時,集合將更新為指向新的HEAD。","store.tableLayout":"表格佈局","store.tableLayoutDescription":"定義用於在表格中顯示集合的自訂佈局。","store.tableLayoutUpdated":"表格佈局已更新","store.tableLayoutUpdatedDesc":"表格佈局已成功更新","store.textConflict":"文件已在其他地方被修改。請重新整理後再試。","store.textSaved":"文字內容已儲存","store.typeCreated":"類型已建立","store.typeDescription":"可選擇內容類型以為集合指派自訂屬性和資料。","store.typeSelectDescription":"選擇內容類型以為集合指派自訂屬性和資料。","store.unknown":"未知","store.unsavedChanges":"未儲存的變更","store.updated":"更新時間","store.updatedAt":"更新時間","store.updatedBy":"更新者","store.updatedSharedProperties":"已更新共享屬性","store.updatedSkipHeadSync":"已更新略過HEAD同步設定","store.upload":"上傳","store.uploadComplete":"上傳完成","store.uploadIssues":"上傳問題","store.validationFailed":"驗證失敗","store.videoFormatRequired":"需要MP4或WebM格式","store.viewAsPdf":"以PDF檢視","store.viewAudio":"檢視音訊","store.viewImage":"檢視圖片","store.viewingNewVersion":"正在檢視新版本","store.viewingNewVersionDefault":"正在檢視新版本","store.viewingVersionLabel":"正在檢視版本'{{label}}'","store.viewInJsonFormat":"以JSON格式檢視","store.viewPdf":"檢視PDF","store.viewText":"檢視文字","store.viewTranscript":"檢視轉錄","store.viewVideo":"檢視影片","theme.dark":"深色","theme.label":"主題","theme.light":"淺色","theme.system":"系統","type.description":"描述","type.name":"名稱","type.nameRequired":"名稱為必填項","type.type":"類型","upload.allFilesExist_one":"{{count}} 個檔案已存在","upload.allFilesExist_other":"{{count}} 個檔案已存在","upload.analyzingFiles":"正在分析檔案...","upload.checkingForDuplicates":"正在檢查重複項和更新","upload.collectionLabel":"集合:","upload.contentTypeTooltip":"選擇要套用於上傳檔案的內容類型。如果留空,Vertesia將根據檔案內容自動偵測類型。","upload.continue":"繼續","upload.dragAndDrop":"將檔案拖放到此處或點擊選擇","upload.errorAnalyzingFiles":"分析檔案時出錯","upload.failedToUpload":"上傳失敗","upload.fileAnalysisResults":"檔案分析結果","upload.filesAnalyzed":"檔案分析完成","upload.filesProcessed_one":"已處理{{count}}個檔案","upload.filesProcessed_other":"已處理{{count}}個檔案","upload.filesReadyToProcess_one":"{{count}}個檔案已準備好處理","upload.filesReadyToProcess_other":"{{count}}個檔案已準備好處理","upload.filesToSkip_one":"{{count}}個檔案已存在於系統中,將被略過。","upload.filesToSkip_other":"{{count}}個檔案已存在於系統中,將被略過。","upload.folderLabel":"資料夾:","upload.inCollection":"在集合'{{collection}}'中","upload.inFolder":"在資料夾'{{location}}'中","upload.new":"新增","upload.noFilesToProcess":"沒有可處理的檔案。","upload.noItems":"沒有可顯示的項目","upload.preparingFiles_one":"正在準備上傳{{count}}個檔案...","upload.preparingFiles_other":"正在準備上傳{{count}}個檔案...","upload.preparingFolder_one":"正在準備上傳1個資料夾,包含{{fileCount}}個檔案...","upload.preparingFolder_other":"正在準備上傳{{folderCount}}個資料夾,包含{{fileCount}}個檔案...","upload.processedCount":"已處理{{processed}}/{{total}}個檔案...","upload.processingFilesAction":"正在處理檔案({{action}})","upload.selectFiles":"選擇檔案","upload.selectFolder":"選擇資料夾","upload.skip":"略過","upload.skippedAlreadyExisted":"已略過(已存在)","upload.successfullyUpdated":"更新成功","upload.successfullyUploaded":"上傳成功","upload.update":"更新","upload.uploadComplete":"上傳完成","upload.uploadFiles":"上傳檔案","upload.uploadingFiles":"正在上傳檔案","upload.uploadLocation":"上傳位置:","upload.uploadMore":"上傳更多","upload.uploadProcessInterrupted":"上傳過程已中斷","upload.useAutoDetection":"使用自動類型偵測","upload.useTypeName":"使用{{typeName}}","user.account":"帳戶:","user.agentOnBehalfOf":"代理代表","user.agentOnBehalfOfApiKey":"代理代表API金鑰","user.allProjectMembers":"所有專案成員","user.allProjectMembersDescription":"此專案的每個成員都擁有此權限。","user.appVersion":"應用版本","user.environment":"環境","user.failedToFetchApiKey":"取得API金鑰失敗","user.failedToFetchGroup":"取得群組失敗","user.failedToFetchUser":"取得使用者失敗","user.groupId":"群組ID:{{id}}","user.key":"金鑰:","user.organizationId":"組織ID","user.organizationRoles":"組織角色","user.privateKey":"私鑰","user.project":"專案:","user.projectId":"專案ID","user.projectRoles":"專案角色","user.schedule":"排程{{title}}","user.sdkVersion":"SDK版本","user.server":"伺服器","user.serviceAccount":"服務帳戶","user.serviceAccountDescription":"此使用者由工作流程工作器等機器人使用。","user.store":"儲存庫","user.systemUser":"系統使用者","user.systemUserDescription":"系統使用者用於初始化內建物件。","user.tenantId":"租戶ID","user.unknown":"未知","user.unknownUser":"未知使用者","user.unknownUserDescription":"使用者資訊不可用。","user.unnamedGroup":"未命名群組","user.user":"使用者","user.userId":"使用者ID","widgets.schema.editDescription":"編輯描述","widgets.schema.invalidPropertyDeclaration":"無效的屬性宣告"}}},fallbackLng:"en",ns:[Un],defaultNS:Un,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Wn=u(null);function qn({children:t}){const o=m(new Map),n=m(new Map),a=g(e=>o.current.get(e),[]),r=g((e,t)=>{o.current.set(e,t)},[]),i=g(async(e,t)=>{const a=o.current.get(e);if(a)return a;const r=n.current.get(e);if(r)return r;const i=t().then(t=>(o.current.set(e,t),n.current.delete(e),t)).catch(t=>{throw n.current.delete(e),t});return n.current.set(e,i),i},[]),s=l.useMemo(()=>({getUrl:a,setUrl:r,getOrFetch:i}),[a,r,i]);return e(Wn.Provider,{value:s,children:t})}function Bn(){return p(Wn)}function $n(e,t,o="inline"){return`artifact:${e}:${t}:${o}`}function Gn(e){return`file:${e}`}function Kn({error:o,chartTitle:n}){return e("div",{className:"flex items-center justify-center h-full bg-red-50 dark:bg-red-950 rounded-md p-4",children:t("div",{className:"text-center",children:[t("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:["Cannot render ",n||"Vega-Lite"," chart"]}),e("p",{className:"text-xs text-red-500 dark:text-red-500 mt-1 max-w-xs truncate",children:o})]})})}function Hn({isOpen:o,onClose:n,title:a,description:r,children:i}){const{t:s}=Vn();return e(w.Root,{open:o,onOpenChange:e=>!e&&n(),children:t(w.Portal,{children:[e(w.Overlay,{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm transition-all duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),t(w.Content,{className:"fixed inset-2 sm:inset-4 z-50 flex flex-col bg-white dark:bg-gray-900 rounded-xl shadow-2xl transition-all duration-300 ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-98 data-[state=open]:zoom-in-98 data-[state=closed]:slide-out-to-bottom-2 data-[state=open]:slide-in-from-bottom-2",onEscapeKeyDown:n,children:[e(w.Close,{asChild:!0,children:e("button",{onClick:n,className:"absolute top-3 right-3 z-10 p-2 rounded-lg bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors duration-150 shadow-sm","aria-label":s("agent.closeFullscreen"),children:e(D,{className:"w-5 h-5 text-gray-600 dark:text-gray-300"})})}),e("div",{className:"flex-1 overflow-auto p-4 sm:p-6 animate-in fade-in-0 duration-500 delay-150",children:i}),e("div",{className:"flex items-center justify-between px-4 sm:px-6 py-3 border-t border-gray-200 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-800/50 rounded-b-xl",children:t("div",{className:"flex flex-col",children:[e(w.Title,{className:"text-base font-semibold text-gray-900 dark:text-gray-100",children:a||s("agent.dashboard")}),r&&e(w.Description,{className:"text-sm text-gray-500 dark:text-gray-400 mt-0.5",children:r})]})})]})]})})}const Jn={categorical:["#6366f1","#8b5cf6","#ec4899","#f43f5e","#f97316","#eab308","#22c55e","#14b8a6","#06b6d4","#3b82f6"],blues:["#dbeafe","#93c5fd","#3b82f6","#1d4ed8","#1e3a8a"],purples:["#f3e8ff","#c4b5fd","#8b5cf6","#6d28d9","#4c1d95"],diverging:["#ef4444","#fca5a5","#fef3c7","#86efac","#22c55e"]};function Yn(e,t){if(!e||!e.encoding)return!1;for(const o of t)for(const t of Object.values(e.encoding))if(t&&"object"==typeof t&&t.field===o)return!0;if(Array.isArray(e.layer))for(const o of e.layer)if(Yn(o,t))return!0;return!1}function Qn(e,t){if(!e)return!1;const o=e=>{if(!e)return!1;const o=e.color?.field;return o&&t.includes(o)};if(o(e.encoding))return!0;if(Array.isArray(e.layer))for(const t of e.layer)if(o(t.encoding))return!0;return!1}function Zn(e,t=[]){const o=[];if(!e||"object"!=typeof e)return o;if(e.data&&"object"==typeof e.data){const n=e.data.url;"string"==typeof n&&n.startsWith("artifact:")&&o.push({path:[...t,"data"],artifactPath:n.replace(/^artifact:/,"").trim()})}const n=["layer","vconcat","hconcat","concat","spec","repeat","facet"];for(const a of n)if(a in e){const n=e[a];Array.isArray(n)?n.forEach((e,n)=>{o.push(...Zn(e,[...t,a,String(n)]))}):"object"==typeof n&&null!==n&&o.push(...Zn(n,[...t,a]))}return o}const Xn=h(function({spec:n,artifactRunId:a}){const{t:r}=Vn(),{title:i,description:s,spec:l,options:u}=n,[p,h]=d(!1),[v,y]=d(!1),[b,w]=d(null),[D,P]=d(!1),A=m(null),F=m(null),z=m(null),{client:I}=Qe(),E=Bn(),j=m(I);j.current=I;const _=m(E);_.current=E;const[R,O]=d(null),[L,U]=d(!1),[M,V]=d(null),W=u?.mode||"chart",q="dashboard"===W,B=u?.enableFullscreen??q,$=u?.height||function(e,t){if("chart"===t)return 280;let o=1;if(e.vconcat)o=Array.isArray(e.vconcat)?e.vconcat.length:1;else if(e.concat){const t=e.columns||2,n=Array.isArray(e.concat)?e.concat.length:1;o=Math.ceil(n/t)}else e.facet&&(o=2);return Math.max(500,280*o+40)}(l,W);f(()=>{const e=Zn(l);if(0===e.length)return O(l),U(!1),void V(null);a?console.info("[VegaLiteChart] resolving artifacts with runId:",a,e.map(e=>e.artifactPath)):console.warn("[VegaLiteChart] artifact references found but artifactRunId is missing!",{references:e.map(e=>e.artifactPath),artifactRunId:a});let t=!1;U(!0),V(null);return(async()=>{const o=new Map,n=j.current,r=_.current;for(const i of e)try{const e=i.path.join(".");let t;if(a&&!i.artifactPath.startsWith("agents/")){const e=$n(a,i.artifactPath,"inline");if(r)t=await r.getOrFetch(e,async()=>(await n.files.getArtifactDownloadUrl(a,i.artifactPath,"inline")).url);else{t=(await n.files.getArtifactDownloadUrl(a,i.artifactPath,"inline")).url}}else{const e=Gn(i.artifactPath);if(r)t=await r.getOrFetch(e,async()=>(await n.files.getDownloadUrl(i.artifactPath)).url);else{t=(await n.files.getDownloadUrl(i.artifactPath)).url}}const s=await fetch(t);if(!s.ok)throw new Error(`Failed to fetch artifact data: ${s.statusText}`);let l;if(i.artifactPath.toLowerCase().endsWith(".csv")){const e=await s.text();l=$e.parse(e,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}).data}else{const e=await s.json();l=Array.isArray(e)?e:[e]}o.set(e,l)}catch(e){return console.error(`Failed to resolve artifact: ${i.artifactPath}`,e),void(t||V(`Failed to load data from artifact: ${i.artifactPath}`))}if(!t){const e=function(e,t){const o=JSON.parse(JSON.stringify(e));for(const[e,n]of t){const t=e.split(".");let a=o;for(let e=0;e<t.length-1&&void 0!==a[t[e]];e++)a=a[t[e]];const r=t[t.length-1];a[r]&&"object"==typeof a[r]&&(delete a[r].url,a[r].values=n)}return o}(l,o);O(e),U(!1)}})(),()=>{t=!0}},[l,a]);const[G,K]=d(!1),H=m(!1);f(()=>{const e=()=>{const e=document.documentElement.classList.contains("dark");e!==H.current&&(H.current=e,K(e))};e();const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]);const[J,Y]=d(0),Q=m(0);f(()=>{if(!z.current)return;let e;const t=new ResizeObserver(t=>{clearTimeout(e),e=setTimeout(()=>{const e=t[0]?.contentRect.width;e&&e!==Q.current&&(Q.current=e,Y(e))},100)});t.observe(z.current);const o=z.current.clientWidth;return Q.current=o,Y(o),()=>{clearTimeout(e),t.disconnect()}},[]);const Z=c(()=>Zn(l).length>0,[l]),X=c(()=>{if(Z&&!R)return null;let e=R||l;return e?(u?.parameterValues&&(e=function(e,t){if(!t||0===Object.keys(t).length)return e;const o=JSON.parse(JSON.stringify(e)),n=e=>{for(const o of e)o&&"object"==typeof o&&o.name&&o.name in t&&(o.value=t[o.name])};Array.isArray(o.params)&&n(o.params);const a=e=>{if(Array.isArray(e))for(const t of e)if(t&&Array.isArray(t.params)&&n(t.params),t.vconcat&&a(t.vconcat),t.hconcat&&a(t.hconcat),t.concat&&a(t.concat),Array.isArray(t.layer))for(const e of t.layer)e&&Array.isArray(e.params)&&n(e.params)};if(o.vconcat&&a(o.vconcat),o.hconcat&&a(o.hconcat),o.concat&&a(o.concat),Array.isArray(o.layer))for(const e of o.layer)e&&Array.isArray(e.params)&&n(e.params);return o}(e,u.parameterValues)),function(e){const t=JSON.parse(JSON.stringify(e)),o=["vconcat","hconcat","concat"];if(!o.some(e=>Array.isArray(t[e])))return t;const n=[];if(Array.isArray(t.params))for(const e of t.params)e&&"object"==typeof e&&e.name&&e.select&&n.push({name:e.name,param:e});if(0===n.length)return t;for(const{name:e,param:a}of n){const n=a.select?.fields||[],r="legend"===a.select?.bind;let i=null;for(const e of o)if(Array.isArray(t[e])){i=t[e];break}if(!i||0===i.length)continue;let s=0;for(let e=0;e<i.length;e++){const t=i[e];if(Yn(t,n)||r&&Qn(t,n)){s=e;break}}const l=i[s];l.params||(l.params=[]),l.params.push(a),t.params=t.params.filter(t=>t.name!==e)}return Array.isArray(t.params)&&0===t.params.length&&delete t.params,t}(e)):null},[R,l,Z,u?.parameterValues]),ee=g((e,t)=>{if(!e||"object"!=typeof e)return e;if(e.hconcat&&Array.isArray(e.hconcat)){const o=e.hconcat.length,n=(e.spacing??10)*(o-1),a=Math.floor((t-n)/o);return{...e,hconcat:e.hconcat.map(e=>ee(e,a))}}if(e.vconcat&&Array.isArray(e.vconcat))return{...e,vconcat:e.vconcat.map(e=>ee(e,t))};if(e.concat&&Array.isArray(e.concat)){const o=e.columns??e.concat.length,n=(e.spacing??10)*(o-1),a=Math.floor((t-n)/o);return{...e,concat:e.concat.map(e=>ee(e,a))}}const o=e.width;return"container"===o||"number"==typeof o&&o>t?{...e,width:t}:e},[]),te=g((e,t=!1)=>{if(!X)return null;const o=function(e){const t={background:"transparent",view:{stroke:"transparent"},range:{category:Jn.categorical,diverging:Jn.diverging,heatmap:Jn.purples,ramp:Jn.blues},mark:{tooltip:!0},bar:{tooltip:!0,cornerRadiusTopLeft:4,cornerRadiusTopRight:4},line:{tooltip:!0,strokeWidth:2.5,strokeCap:"round"},point:{tooltip:!0,size:60,filled:!0},area:{tooltip:!0,fillOpacity:.7,line:!0},rect:{tooltip:!0,cornerRadius:2},arc:{tooltip:!0,cornerRadius:4},circle:{tooltip:!0,size:80}};return e?{...t,axis:{labelColor:"#a1a1aa",titleColor:"#e4e4e7",gridColor:"#3f3f46",domainColor:"#52525b",tickColor:"#52525b",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,titleFontWeight:500},legend:{labelColor:"#a1a1aa",titleColor:"#e4e4e7",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,symbolSize:100},title:{color:"#fafafa",font:"Inter, system-ui, sans-serif",fontSize:14,fontWeight:600}}:{...t,axis:{labelColor:"#71717a",titleColor:"#3f3f46",gridColor:"#e4e4e7",domainColor:"#d4d4d8",tickColor:"#d4d4d8",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,titleFontWeight:500},legend:{labelColor:"#71717a",titleColor:"#3f3f46",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,symbolSize:100},title:{color:"#18181b",font:"Inter, system-ui, sans-serif",fontSize:14,fontWeight:600}}}(G),n=t?"undefined"!=typeof window?Math.min(window.innerWidth-80,1400):1200:J>0?J-24:500,a="vconcat"in X||"hconcat"in X||"concat"in X,r=a?{type:"pad",contains:"padding"}:{type:"fit",contains:"padding"};let s=X;a&&n&&(s=ee(X,n));const l=s.width,c=a?void 0:"container"===l?n:l??n,{width:d,...u}=s;return{$schema:"https://vega.github.io/schema/vega-lite/v6.json",...!a&&c?{width:c}:{},height:t?void 0:e,autosize:r,...a?s:u,...i&&!X.title?{title:i}:{},config:{...o,...X.config}}},[X,i,G,J,ee]),oe=g(async()=>{const e=D?F.current:A.current;if(e&&!v)try{(await e.toCanvas(2)).toBlob(async e=>{e&&(await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),y(!0),setTimeout(()=>y(!1),2e3))},"image/png")}catch(e){console.error("Failed to copy chart:",e)}},[v,D]),ne=g(async()=>{const e=D?F.current:A.current;if(e&&!p){h(!0);try{const t=await e.toImageURL("png",2),o=document.createElement("a");o.download=`${i||"chart"}.png`,o.href=t,o.click()}catch(e){console.error("Failed to export chart:",e)}finally{h(!1)}}},[i,p,D]),ae=g(e=>{A.current=e,w(null)},[]),re=g(e=>{F.current=e},[]),ie=g(e=>{console.error("Vega-Lite rendering error:",e),w(e instanceof Error?e.message:"Unknown error")},[]),se=g(()=>{P(e=>!e)},[]);f(()=>{w(null)},[l]);const le=({className:o})=>t("div",{className:Ln("flex items-center gap-2",o),children:[t("button",{onClick:oe,disabled:v,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 flex items-center gap-1",title:r("agent.copyToClipboard"),children:[e(v?C:k,{className:"w-3 h-3"}),r(v?"agent.copied":"agent.copy")]}),t("button",{onClick:ne,disabled:p,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1",title:r("agent.exportAsPng"),children:[e(T,{className:"w-3 h-3"}),r(p?"agent.exporting":"agent.export")]}),B&&t("button",{onClick:se,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors flex items-center gap-1",title:r(D?"agent.exitFullscreen":"agent.fullscreen"),children:[e(D?N:S,{className:"w-3 h-3"}),r(D?"agent.exit":"agent.fullscreen")]})]});if(L||Z&&!R)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:i||"Chart"})}),e("div",{className:"flex items-center justify-center bg-gray-50 dark:bg-gray-800 rounded",style:{width:"100%",height:$},children:t("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[e(x,{className:"w-5 h-5 animate-spin"}),e("span",{className:"text-sm",children:"Loading data from artifacts..."})]})})]})});if(M)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:i||"Chart"})}),e("div",{style:{width:"100%",height:$},children:e(Kn,{error:M,chartTitle:i})})]})});if(b)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:i||"Chart"})}),e("div",{style:{width:"100%",height:$},children:e(Kn,{error:b,chartTitle:i})})]})});const ce=te($),de=te(0,!0);return ce?("undefined"!=typeof window&&localStorage.getItem("DEBUG_VEGA_RENDERS")&&console.log("VegaLite rendering with spec:",{title:i,hasData:!!ce.data?.values,dataLength:ce.data?.values?.length}),t(o,{children:[e("div",{className:Ln("bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",q&&"border-2"),children:t("div",{className:"flex flex-col gap-2 p-3",children:[t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center gap-2",children:[e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:i||(q?"Dashboard":"Chart")}),q&&e("span",{className:"text-xs px-2 py-0.5 rounded-full bg-indigo-100 dark:bg-indigo-900 text-indigo-700 dark:text-indigo-300",children:"Interactive"})]}),e(le,{})]}),s&&e("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s}),e("div",{ref:z,className:"bg-white dark:bg-gray-900 rounded overflow-hidden",style:{width:"100%",height:$,minWidth:0},children:e(Ge,{spec:ce,onEmbed:e=>ae(e.view),onError:ie,options:{renderer:u?.renderer||"canvas",actions:!1}})})]})}),t(Hn,{isOpen:D,onClose:()=>P(!1),title:i||(q?"Dashboard":"Chart"),description:s,children:[e("div",{className:"w-full h-full min-h-[calc(100vh-200px)]",children:de&&e(Ge,{spec:de,onEmbed:e=>re(e.view),onError:ie,options:{renderer:u?.renderer||"canvas",actions:!1}})}),e("div",{className:"absolute bottom-6 right-6",children:e(le,{className:"bg-white dark:bg-gray-800 rounded-lg shadow-lg p-2 border border-gray-200 dark:border-gray-700"})})]})]})):null},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec)&&e.artifactRunId===t.artifactRunId);function ea(e){return"vega-lite"===e.library&&"object"==typeof e.spec}function ta(e){return"recharts"===e.library||void 0===e.library}const oa=h(function({spec:o,artifactRunId:n}){return ea(o)?e(Xn,{spec:o,artifactRunId:n}):function(e){return"string"==typeof e.$schema&&e.$schema.includes("vega")}(o)?e(Xn,{spec:{library:"vega-lite",spec:o},artifactRunId:n}):t("div",{className:"my-5 rounded-lg border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200",children:["Recharts chart rendering has been retired. Use a Vega-Lite chart spec (",e("code",{children:'library: "vega-lite"'})," with ",e("code",{children:"spec"}),")."]})},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec)&&e.artifactRunId===t.artifactRunId);function na({className:o,inline:n=!1,color:a="blue"}){const r={blue:"from-blue-400 to-indigo-500 dark:from-blue-500 dark:to-indigo-400",purple:"from-purple-400 to-violet-500 dark:from-purple-500 dark:to-violet-400",teal:"from-teal-400 to-emerald-500 dark:from-teal-500 dark:to-emerald-400",green:"from-green-400 to-emerald-500 dark:from-green-500 dark:to-emerald-400",amber:"from-amber-400 to-orange-500 dark:from-amber-500 dark:to-orange-400"}[a];return t("div",{className:Ze("flex items-center gap-1.5",n?"inline-flex":"",o),children:[e("div",{className:`w-2 h-2 bg-gradient-to-r ${r} rounded-full animate-[bounce_1.2s_ease-in-out_infinite]`}),e("div",{className:`w-2 h-2 bg-gradient-to-r ${r} rounded-full animate-[bounce_1.2s_ease-in-out_0.2s_infinite]`}),e("div",{className:`w-2 h-2 bg-gradient-to-r ${r} rounded-full animate-[bounce_1.2s_ease-in-out_0.4s_infinite]`})]})}function aa({className:o,size:n="md",color:a="blue"}){const r={blue:"bg-blue-500 dark:bg-blue-400",purple:"bg-purple-500 dark:bg-purple-400",teal:"bg-teal-500 dark:bg-teal-400",green:"bg-green-500 dark:bg-green-400",amber:"bg-amber-500 dark:bg-amber-400"};return t("span",{className:Ze("relative flex",o),children:[e("span",{className:Ze("animate-ping absolute inline-flex h-full w-full rounded-full opacity-60",r[a])}),e("span",{className:Ze("animate-pulse absolute inline-flex h-[80%] w-[80%] rounded-full opacity-80",r[a]),style:{left:"10%",top:"10%",animationDuration:"2s"}}),e("span",{className:Ze("relative inline-flex rounded-full",r[a],{sm:"w-3 h-3",md:"w-5 h-5",lg:"w-7 h-7"}[n])})]})}function ra({className:t,color:o="blue"}){const[n,a]=d(".");return f(()=>{const e=setInterval(()=>{a(e=>"."===e?"..":".."===e?"...":".")},500);return()=>clearInterval(e)},[]),e("span",{className:Ze({blue:"text-blue-600 dark:text-blue-400",purple:"text-purple-600 dark:text-purple-400",teal:"text-teal-600 dark:text-teal-400",green:"text-green-600 dark:text-green-400",amber:"text-amber-600 dark:text-amber-400"}[o],"font-bold",t),children:n})}function ia({message:o,className:n,color:a="blue"}){const r={blue:{dot:"bg-blue-500 dark:bg-blue-400",text:"text-blue-700 dark:text-blue-300"},purple:{dot:"bg-purple-500 dark:bg-purple-400",text:"text-purple-700 dark:text-purple-300"},teal:{dot:"bg-teal-500 dark:bg-teal-400",text:"text-teal-700 dark:text-teal-300"},green:{dot:"bg-green-500 dark:bg-green-400",text:"text-green-700 dark:text-green-300"},amber:{dot:"bg-amber-500 dark:bg-amber-400",text:"text-amber-700 dark:text-amber-300"}};return t("div",{className:Ze("flex items-center gap-2 py-1",n),children:[t("div",{className:"flex space-x-1",children:[e("div",{className:`w-1.5 h-1.5 ${r[a].dot} rounded-full animate-bounce`}),e("div",{className:`w-1.5 h-1.5 ${r[a].dot} rounded-full animate-bounce`,style:{animationDelay:"0.2s"}}),e("div",{className:`w-1.5 h-1.5 ${r[a].dot} rounded-full animate-bounce`,style:{animationDelay:"0.4s"}})]}),e("div",{className:`${r[a].text} font-medium text-xs`,children:o})]})}function sa({className:o,color:n="blue",width:a="md",message:r}){const[i,s]=d(15),[l,c]=d("increasing"),[u,p]=d(.4),g=m(null),h=m(!0);f(()=>{const e=g.current;if(!e)return;const t=new IntersectionObserver(([e])=>{h.current=e.isIntersecting},{threshold:0});return t.observe(e),()=>t.disconnect()},[]);return f(()=>{let e,t=Date.now();const o=()=>{if(!h.current)return void(e=requestAnimationFrame(o));const n=Date.now(),a=n-t;t=n,s(e=>{const t=u*(a/16);let o="increasing"===l?e+t:e-t;return o>=85?(c("decreasing"),p(.3+.2*Math.random()),85):o<=15?(c("increasing"),p(.3+.2*Math.random()),15):(Math.random()>.99&&p(e=>Math.max(.2,Math.min(.5,e+(.1*Math.random()-.05)))),o)}),e=requestAnimationFrame(o)};return e=requestAnimationFrame(o),()=>{cancelAnimationFrame(e)}},[l,u]),t("div",{ref:g,className:Ze("flex flex-col gap-1",o),children:[r&&e("div",{className:`text-xs font-medium ${{blue:"text-blue-700 dark:text-blue-300",purple:"text-purple-700 dark:text-purple-300",teal:"text-teal-700 dark:text-teal-300",green:"text-green-700 dark:text-green-300",amber:"text-amber-700 dark:text-amber-300"}[n]} mb-1`,children:r}),e("div",{className:Ze("h-1.5 rounded-full overflow-hidden shadow-inner",{blue:"bg-blue-200 dark:bg-blue-900/30",purple:"bg-purple-200 dark:bg-purple-900/30",teal:"bg-teal-200 dark:bg-teal-900/30",green:"bg-green-200 dark:bg-green-900/30",amber:"bg-amber-200 dark:bg-amber-900/30"}[n],{sm:"w-24",md:"w-32",lg:"w-48",xl:"w-64",full:"w-full"}[a]),children:e("div",{className:Ze("h-full rounded-full",{blue:"bg-gradient-to-r from-blue-400 to-blue-500 dark:from-blue-500 dark:to-blue-400",purple:"bg-gradient-to-r from-purple-400 to-purple-500 dark:from-purple-500 dark:to-purple-400",teal:"bg-gradient-to-r from-teal-400 to-teal-500 dark:from-teal-500 dark:to-teal-400",green:"bg-gradient-to-r from-green-400 to-green-500 dark:from-green-500 dark:to-green-400",amber:"bg-gradient-to-r from-amber-400 to-amber-500 dark:from-amber-500 dark:to-amber-400"}[n]),style:{width:`${i}%`,transition:"width 150ms cubic-bezier(0.4, 0.0, 0.2, 1)"}})})]})}function la({className:t,color:o="blue",size:n="md"}){const[a,r]=d(Array(7).fill(50)),i=m(null),s=m(!0);f(()=>{const e=i.current;if(!e)return;const t=new IntersectionObserver(([e])=>{s.current=e.isIntersecting},{threshold:0});return t.observe(e),()=>t.disconnect()},[]);const l={sm:{width:"w-16",height:"h-4",barWidth:"w-0.5",gap:"gap-[2px]"},md:{width:"w-20",height:"h-5",barWidth:"w-1",gap:"gap-[3px]"},lg:{width:"w-24",height:"h-6",barWidth:"w-1.5",gap:"gap-1"}},c={blue:"bg-gradient-to-b from-blue-400 to-blue-500 dark:from-blue-400 dark:to-blue-500",purple:"bg-gradient-to-b from-purple-400 to-purple-500 dark:from-purple-400 dark:to-purple-500",teal:"bg-gradient-to-b from-teal-400 to-teal-500 dark:from-teal-400 dark:to-teal-500",green:"bg-gradient-to-b from-green-400 to-green-500 dark:from-green-400 dark:to-green-500",amber:"bg-gradient-to-b from-amber-400 to-amber-500 dark:from-amber-400 dark:to-amber-500"};return f(()=>{let e;const t=[1.2,1,1.5,.8,1.3,.9,1.1],o=[0,.5,1,1.5,2,2.5,3];let n=0;const a=()=>{if(!s.current)return void(e=requestAnimationFrame(a));n+=.02;const i=Array(7).fill(0).map((e,a)=>10+40*(Math.sin(n*t[a]+o[a])+1));r(i),e=requestAnimationFrame(a)};return e=requestAnimationFrame(a),()=>{cancelAnimationFrame(e)}},[]),e("div",{ref:i,className:Ze("flex items-end justify-center",l[n].width,l[n].height,l[n].gap,t),children:a.map((t,a)=>e("div",{className:Ze(l[n].barWidth,"rounded-full transform-gpu",c[o]),style:{height:`${t}%`,transition:"height 100ms cubic-bezier(0.4, 0.0, 0.2, 1)",opacity:.9}},a))})}function ca({className:o,inline:n=!1}){return t("div",{className:Ze("flex items-center gap-1",n?"inline-flex":"",o),children:[e("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-[jumping_1s_infinite_ease-in-out] hover:bg-blue-600",style:{transform:"translateY(0)",animationRange:"0px -8px"}}),e("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-[jumping_1s_0.3s_infinite_ease-in-out] hover:bg-blue-600",style:{transform:"translateY(0)",animationRange:"0px -8px"}}),e("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-[jumping_1s_0.6s_infinite_ease-in-out] hover:bg-blue-600",style:{transform:"translateY(0)",animationRange:"0px -8px"}})]})}const da=u(null);function ua(){const e=p(da);return e||{openImage:e=>window.open(e,"_blank"),closeImage:()=>{}}}function pa({children:o}){const[n,a]=d(null),r=g((e,t)=>{a({src:e,alt:t})},[]),i=g(()=>{a(null)},[]),{t:s}=Vn();return t(da.Provider,{value:{openImage:r,closeImage:i},children:[o,n&&e("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 backdrop-blur-sm",onClick:i,children:t("div",{className:"relative max-w-[90vw] max-h-[90vh]",children:[e("img",{src:n.src,alt:n.alt||s("agent.enlargedView"),className:"max-w-full max-h-[90vh] object-contain rounded-lg shadow-2xl"}),e("button",{className:"absolute top-2 right-2 text-white bg-black/50 rounded-full p-2 hover:bg-black/70 transition-colors",onClick:i,title:s("agent.close"),children:e(D,{className:"size-6"})}),e("a",{href:n.src,target:"_blank",rel:"noopener noreferrer",className:"absolute bottom-2 right-2 text-white bg-black/50 rounded-full p-2 hover:bg-black/70 transition-colors",onClick:e=>e.stopPropagation(),title:s("agent.openInNewTab"),children:e(P,{className:"size-5"})})]})})]})}const ma=h(function({message:o,batchData:n,isRunning:a=!1,className:r,headerClassName:i,senderClassName:s,progressBarClassName:l,itemListClassName:c,itemClassName:u,summaryClassName:p}){const[m,g]=d(!1),h=Xe(),{t:f}=Vn(),{tool_name:v,total:y,completed:b,succeeded:w,failed:C,items:k,started_at:T,completed_at:N}=n,S=y>0?b/y*100:0,D=C>0,P=b===y&&!a,_=a||!P?"running":C===y?"error":C>0?"warning":"completed",R=((N?N-T:Date.now()-T)/1e3).toFixed(1);return t("div",{className:Ze("border-l-4 shadow-md overflow-hidden bg-white dark:bg-gray-900 mb-5","completed"===_?"border-l-success":"error"===_?"border-l-destructive":"warning"===_?"border-l-attention":"border-l-blue-500",r),children:[t("div",{className:Ze("flex items-center justify-between px-4 py-2 border-b border-gray-100/80 dark:border-gray-800/80 bg-blue-50/50 dark:bg-blue-900/10 cursor-pointer",i),onClick:()=>g(!m),children:[t("div",{className:"flex items-center gap-2",children:[a||!P?e(aa,{size:"sm",color:"blue"}):"completed"===_?e(I,{className:"size-4 text-success"}):"error"===_||"warning"===_?e(E,{className:"size-4 text-destructive"}):e(j,{className:"size-4 text-purple-600"}),e("span",{className:Ze("text-xs font-medium text-muted",s),children:f("agent.batch")}),e("span",{className:"text-xs text-blue-600 dark:text-blue-400 font-medium",children:v}),t("span",{className:"text-xs text-muted",children:[b,"/",y]}),e(m?A:F,{className:"size-3 text-muted"})]}),t("div",{className:"flex items-center gap-2",children:[t("span",{className:"text-xs text-muted",children:[R,"s"]}),e("span",{className:"text-xs text-muted",children:Uo(T).format("HH:mm:ss")}),e(et,{variant:"ghost",size:"xs",onClick:e=>{e.stopPropagation(),(()=>{const e=JSON.stringify(n,null,2);navigator.clipboard.writeText(e).then(()=>{h({status:"success",title:f("agent.copiedBatchDetails"),duration:2e3})})})()},className:"text-muted",title:f("agent.copyBatchDetails"),children:e(z,{className:"size-3"})})]})]}),e("div",{className:Ze("px-4 py-2 bg-gray-50/50 dark:bg-gray-800/30",l),children:t("div",{className:"flex items-center gap-3",children:[e("div",{className:"flex-1 h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:e("div",{className:`h-full ${D?"bg-attention":P?"bg-success":"bg-blue-500"} transition-all duration-300 ease-out`,style:{width:`${S}%`}})}),t("div",{className:"flex items-center gap-2 text-xs",children:[w>0&&t("span",{className:"text-success flex items-center gap-1",children:[e(I,{className:"size-3"}),w]}),C>0&&t("span",{className:"text-destructive flex items-center gap-1",children:[e(E,{className:"size-3"}),C]}),a&&b<y&&t("span",{className:"text-blue-500 flex items-center gap-1",children:[e(x,{className:"size-3 animate-spin"}),y-b]})]})]})}),m&&k.length>0&&e("div",{className:Ze("max-h-64 overflow-y-auto",c),children:k.map(o=>t("div",{className:Ze("flex items-center gap-2 px-4 py-1.5 text-xs border-b border-gray-100 dark:border-gray-800 last:border-b-0 hover:bg-gray-50 dark:hover:bg-gray-800/50",u),children:[t("div",{className:"w-4 flex-shrink-0",children:["success"===o.status&&e(I,{className:"size-3 text-success"}),"error"===o.status&&e(E,{className:"size-3 text-destructive"}),"running"===o.status&&e(x,{className:"size-3 text-blue-500 animate-spin"}),"pending"===o.status&&e("div",{className:"size-3 rounded-full border border-gray-300 dark:border-gray-600"})]}),e("span",{className:"font-mono text-muted w-24 truncate flex-shrink-0",title:o.id,children:o.id}),e("span",{className:"text-muted truncate flex-1",title:o.message,children:o.message||("pending"===o.status?f("agent.waiting"):"")}),void 0!==o.duration_ms&&t("span",{className:"text-muted flex-shrink-0",children:[(o.duration_ms/1e3).toFixed(1),"s"]})]},o.id))}),!m&&o.message&&e("div",{className:Ze("px-4 py-2 text-xs text-muted",p),children:o.message})]})},(e,t)=>e.isRunning===t.isRunning&&(e.batchData.completed===t.batchData.completed&&(e.batchData.succeeded===t.batchData.succeeded&&e.batchData.failed===t.batchData.failed))),ga={default:{border:"border-l-attention",bg:"bg-amber-50 dark:bg-amber-900/20",icon:"text-attention"},warning:{border:"border-l-destructive",bg:"bg-red-50 dark:bg-red-900/20",icon:"text-destructive"},info:{border:"border-l-info",bg:"bg-blue-50 dark:bg-blue-900/20",icon:"text-info"},success:{border:"border-l-success",bg:"bg-green-50 dark:bg-green-900/20",icon:"text-success"}},ha={default:R,warning:E,info:_,success:I};function fa({question:o,description:n,options:a,onSelect:r,onMultiSelect:i,onSubmit:s,allowFreeResponse:c=!1,multiSelect:d=!1,placeholder:u,isLoading:p=!1,icon:m,variant:g="default",hideIcon:h=!1,hideBorder:f=!1,className:v,cardClassName:y,headerClassName:b,iconClassName:w,questionClassName:x,descriptionClassName:C,optionsClassName:k,buttonClassName:T,inputContainerClassName:N,inputClassName:S,submitButtonClassName:D}){const{t:P}=tn(),A=u??P("agent.typeYourResponse"),[F,z]=l.useState(""),[I,E]=l.useState(new Set),j=l.useRef(null),_=ga[g],R=ha[g],L=()=>{F.trim()&&s&&(s(F.trim()),z(""))},U=f?"":`border-l-4 ${_.border}`;return e("div",{className:`my-4 font-sans ${v||""}`,children:t("div",{className:`${U} ${_.bg} rounded-r-lg shadow-sm ${y||""}`,children:[e("div",{className:`px-4 py-3 ${b||""}`,children:t("div",{className:"flex items-start gap-3",children:[!h&&e("div",{className:`flex-shrink-0 mt-0.5 ${_.icon} ${w||""}`,children:m||e(R,{className:"size-5"})}),t("div",{className:"flex-1 min-w-0",children:[e("div",{className:`prose prose-sm dark:prose-invert max-w-none text-gray-900 dark:text-gray-100 ${x||""}`,children:e(Wo,{children:o})}),n&&e("p",{className:`mt-1 text-sm text-gray-600 dark:text-gray-400 ${C||""}`,children:n})]})]})}),a&&a.length>0&&e("div",{className:`px-4 pb-3 pt-1 ${k||""}`,children:d?t("div",{className:"space-y-2",children:[a.map(o=>t("label",{className:`flex items-start gap-3 px-4 py-3 rounded-lg cursor-pointer transition-colors\n ${I.has(o.id)?"bg-blue-50 dark:bg-blue-900/30 border border-blue-300 dark:border-blue-700":"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700"}\n ${p?"opacity-50 cursor-not-allowed":""}`,children:[e("input",{type:"checkbox",checked:I.has(o.id),onChange:()=>{return e=o.id,void E(t=>{const o=new Set(t);return o.has(e)?o.delete(e):o.add(e),o});var e},disabled:p,className:"mt-0.5 w-4 h-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700"}),t("div",{className:"flex-1 overflow-hidden",children:[t("div",{className:"flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-gray-100 break-words",children:[o.icon,e("span",{className:"break-words",children:o.label})]}),o.description&&e("div",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400 break-words whitespace-pre-wrap",children:o.description})]})]},o.id)),e("div",{className:"pt-2",children:t(et,{size:"sm",onClick:()=>{I.size>0&&i&&(i(Array.from(I)),E(new Set))},disabled:p||0===I.size,className:"flex items-center gap-2",children:[e(O,{className:"size-4"}),I.size>0?P("agent.submitSelectionCount",{count:I.size}):P("agent.submitSelection")]})})]}):e("div",{className:"flex flex-col gap-2 w-full",children:a.map(o=>e("button",{onClick:()=>r?.(o.id),disabled:p,className:`w-full text-left px-4 py-3 rounded-lg border border-gray-200 dark:border-gray-700\n bg-white dark:bg-gray-800\n hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600\n focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1\n transition-colors\n ${p?"opacity-50 cursor-not-allowed":"cursor-pointer"}\n ${T||""}`,children:t("div",{className:"flex items-start gap-3",children:[o.icon&&e("span",{className:"flex-shrink-0 mt-0.5 text-gray-500 dark:text-gray-400",children:o.icon}),t("div",{className:"flex-1 overflow-hidden",children:[e("div",{className:"font-medium text-sm text-gray-900 dark:text-gray-100 break-words",children:o.label}),o.description&&e("div",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400 break-words whitespace-pre-wrap",children:o.description})]})]})},o.id))})}),c&&e("div",{className:`px-4 pb-3 pt-1 ${N||""}`,children:t("div",{className:"flex gap-2",children:[e("input",{ref:j,type:"text",value:F,onChange:e=>z(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),L())},placeholder:A,disabled:p,className:`flex-1 px-3 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-800 focus:ring-2 focus:ring-blue-500 focus:border-transparent ${S||""}`}),e(et,{size:"sm",onClick:L,disabled:p||!F.trim(),className:D,children:p?"...":P("agent.send")})]})})]})})}function va({question:t,description:o,onConfirm:n,onCancel:a,confirmLabel:r,cancelLabel:i,isLoading:s=!1,variant:l="default",className:c}){const{t:d}=tn(),u=r??d("agent.yes"),p=i??d("agent.no");return e(fa,{question:t,description:o,variant:l,isLoading:s,className:c,options:[{id:"confirm",label:u,icon:e(I,{className:"size-4"})},{id:"cancel",label:p,icon:e(L,{className:"size-4"})}],onSelect:e=>{"confirm"===e?n():a()}})}const ya=["Brewing some code magic...","Doing the robot dance...","Cooking up something good...","Working my gears...","Parsing the possibilities...","Crunching the numbers...","Connecting the digital dots...","Processing at maximum capacity...","Searching through my circuits...","Running advanced algorithms...","Computing optimal solutions...","Loading brilliance.exe...","Scanning the knowledge base...","Optimizing response protocols...","Having a quick brainstorm...","Thinking cap firmly on...","Pondering the digital universe...","Consulting my silicon wisdom...","Untangling the logic knots...","Assembling clever responses...","Mixing thoughtful ingredients...","Polishing the perfect answer...","Taking a momentary mind sprint...","Connecting virtual synapses...","Baking fresh ideas...","Stirring the thought pot...","Simmering solutions slowly...","Whipping up a smart response...","Adding a dash of intelligence...","Preparing a gourmet answer...","Growing brilliant ideas...","Cultivating the perfect response...","Gathering digital nectar...","Planting seeds of solutions...","Exploring the data landscape...","Mapping the solution path...","Navigating through possibilities...","Charting the course to answers...","Embarking on a thought expedition...","Sketching out concepts...","Painting with digital brushstrokes...","Composing my response symphony...","Crafting precision answers...","Weaving threads of information...","Just a moment of processing...","Taking a quick thinking break...","Almost there, final touches...","Putting the pieces together...","Making progress, hold tight..."];function ba(e,t){const o="number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime(),n=e.findIndex(e=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())>o);-1===n?e.push(t):e.splice(n,0,t)}const wa=[vo.COMPLETE,vo.IDLE,vo.REQUEST_INPUT,vo.TERMINATED];function xa(e){return"number"==typeof e?e:new Date(e).getTime()}function Ca(e){return e.workstream_id?(e.type===vo.COMPLETE&&console.log("[getWorkstreamId] COMPLETE message with workstream_id:",e.workstream_id),e.workstream_id):(e.type===vo.COMPLETE&&console.log("[getWorkstreamId] COMPLETE message without workstream_id, defaulting to 'main'"),"main")}async function ka(e,t){return e.agents.getArtifactUrl(t,"conversation.json").then(e=>e.url)}function Ta(e){if("string"!=typeof e)return;return e.replace(/\r\n/g,"\n").trim()||void 0}function Na(e){return Ta(e.message)}function Sa(e,t){if(Ca(e)!==Ca(t))return!1;const o=Na(e),n=Na(t);if(!o||o!==n)return!1;const a=xa(e.timestamp);return!(xa(t.timestamp)-a>1e4)&&(e.type===vo.ANSWER&&(t.type===vo.COMPLETE||t.type===vo.IDLE)||(!(e.type!==vo.THOUGHT||t.type!==vo.ANSWER&&t.type!==vo.COMPLETE&&t.type!==vo.IDLE||!e.details?.streamed&&!t.details?.streamed)||!(e.type!==t.type||!e.details?.streamed&&!t.details?.streamed||t.type!==vo.THOUGHT&&t.type!==vo.ANSWER&&t.type!==vo.COMPLETE&&t.type!==vo.IDLE)))}function Da(e){const t=e.details;return e.type===vo.THOUGHT&&"tool_preamble"===t?.display_role}function Pa(e){if(function(e){return e.type===vo.THOUGHT&&!!e.details?.tool}(e))return!0;if(e.type!==vo.THOUGHT)return!1;const t=e.details;return!!Da(e)||!!(Array.isArray(t?.tools)&&t.tools.length>0)}function Aa(e){return e.details?.tool_run_id}function Fa(e){return e.details?.tool_iteration}function za(e){return e.details?.tool_status}function Ia(e){const t=e.details?.activity_group_id;if("string"==typeof t&&""!==t.trim())return t}function Ea(e,t,o){const n=new Map,a=new Map,r=new Map,i=[];for(const t of e){const e=Ia(t);if(t.type===vo.REQUEST_INPUT||t.type===vo.BATCH_PROGRESS)i.push(t);else if(e)n.has(e)||n.set(e,{messages:[],firstTimestamp:xa(t.timestamp)}),n.get(e)?.messages.push(t);else if(Pa(t)){const e=Fa(t),o=Aa(t);void 0!==e?(a.has(e)||a.set(e,{messages:[],firstTimestamp:xa(t.timestamp)}),a.get(e)?.messages.push(t)):o?(r.has(o)||r.set(o,{messages:[],firstTimestamp:xa(t.timestamp)}),r.get(o)?.messages.push(t)):i.push(t)}else i.push(t)}const s=[];n.forEach((e,t)=>{s.push({kind:"activity_group",activityGroupId:t,messages:e.messages,timestamp:e.firstTimestamp})}),a.forEach((e,t)=>{s.push({kind:"iteration_group",iteration:t,messages:e.messages,timestamp:e.firstTimestamp})}),r.forEach((e,t)=>{s.push({kind:"tool_run",toolRunId:t,messages:e.messages,timestamp:e.firstTimestamp})});for(const e of i)s.push({kind:"message",message:e,timestamp:xa(e.timestamp)});t.forEach((t,n)=>{if(t.text&&!function(e,t){const o=Ta(e.text);if(!o)return!1;const n=e.workstreamId||"main";return t.some(t=>!(xa(t.timestamp)<e.startTimestamp||Ca(t)!==n||(!e.activityId||t.details?.activity_id!==e.activityId)&&(t.type!==vo.THOUGHT&&t.type!==vo.ANSWER&&t.type!==vo.COMPLETE&&t.type!==vo.IDLE||!t.details?.streamed||Na(t)!==o)))}(t,e)){if(o&&"all"!==o){const e=t.workstreamId||"main";if(o!==e)return}s.push({kind:"streaming",streamingId:n,data:t,timestamp:t.startTimestamp})}}),s.sort((e,t)=>{const o="streaming"===e.kind&&!e.data.isComplete,n="streaming"===t.kind&&!t.data.isComplete;return o&&!n?1:n&&!o?-1:e.timestamp-t.timestamp});const l=[];let c=[];const d=()=>{c.length>0&&(1!==c.length||Da(c[0])?l.push({type:"tool_group",messages:c,firstTimestamp:xa(c[0].timestamp)}):l.push({type:"single",message:c[0]}),c=[])};for(const e of s)if("streaming"===e.kind)d(),l.push({type:"streaming",streamingId:e.streamingId,text:e.data.text,workstreamId:e.data.workstreamId,startTimestamp:e.data.startTimestamp,isComplete:e.data.isComplete});else if("activity_group"===e.kind){d();const t=[...e.messages].sort((e,t)=>xa(e.timestamp)-xa(t.timestamp)),o=t.reduce((e,t)=>za(t)||e,void 0);l.push({type:"tool_group",messages:t,firstTimestamp:e.timestamp,toolRunId:e.activityGroupId,toolStatus:o})}else if("iteration_group"===e.kind){d();const t=[...e.messages].sort((e,t)=>xa(e.timestamp)-xa(t.timestamp)),o=t.reduce((e,t)=>za(t)||e,void 0);l.push({type:"tool_group",messages:t,firstTimestamp:e.timestamp,toolStatus:o})}else if("tool_run"===e.kind){d();const t=[...e.messages].sort((e,t)=>xa(e.timestamp)-xa(t.timestamp)),o=t.reduce((e,t)=>za(t)||e,void 0);l.push({type:"tool_group",messages:t,firstTimestamp:e.timestamp,toolRunId:e.toolRunId,toolStatus:o})}else Pa(e.message)?c.push(e.message):(d(),l.push({type:"single",message:e.message}));return d(),l}function ja(e,t){const o={error:4,warning:3,running:2,completed:1};return(e?o[e]:0)>=(t?o[t]:0)?e??t:t}function _a(e){const t=[];let o=null;const n=()=>{o&&(t.push({type:"tool_group",messages:o.messages,firstTimestamp:o.firstTimestamp,toolRunId:o.toolRunId,toolStatus:o.toolStatus}),o=null)};for(const a of e)"tool_group"===a.type?o?(o.messages=[...o.messages,...a.messages],o.toolStatus=ja(o.toolStatus,a.toolStatus),!o.toolRunId&&a.toolRunId&&(o.toolRunId=a.toolRunId)):o={messages:[...a.messages],firstTimestamp:a.firstTimestamp,toolRunId:a.toolRunId,toolStatus:a.toolStatus}:(n(),t.push(a));return n(),t}const Ra="vertesia.content_store.lastDisplayedView";function Oa({onUpdate:t}){const{t:o}=tn(),[n,a]=d("grid"===localStorage.getItem(Ra)),r=()=>{localStorage.setItem(Ra,"grid"),a(!0),t(!0)},i=()=>{localStorage.setItem(Ra,"table"),a(!1),t(!1)};return e(et,{variant:"outline",onClick:()=>{n?i():r()},alt:o(n?"misc.tableView":"misc.thumbnailView"),children:e(n?U:M,{})})}function La({className:t,size:o="md"}){return e("div",{className:`flex items-center justify-center ${t||""}`,children:e(x,{className:`${{sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8"}[o]} animate-spin text-muted-foreground`})})}function Ua({pdfUrl:o,pageNumber:n,width:a,className:r,renderTextLayer:i=!1,renderAnnotationLayer:s=!1,onLoadSuccess:l,onError:c}){const[u,p]=d(!0),[m,g]=d(null);return m?e("div",{className:`flex items-center justify-center text-destructive text-sm ${r||""}`,children:"Failed to load PDF"}):t("div",{className:r,children:[u&&e(La,{className:"py-4",size:"md"}),e(nn,{file:o,onLoadSuccess:({numPages:e})=>{p(!1),l?.(e)},onLoadError:e=>{p(!1),g(e),c?.(e)},loading:null,children:e(an,{pageNumber:n,width:a,renderTextLayer:i,renderAnnotationLayer:s,loading:e(La,{className:"py-4",size:"sm"})})})]})}Oa.LAST_DISPLAYED_VIEW=Ra,on.GlobalWorkerOptions.workerSrc=`//unpkg.com/pdfjs-dist@${on.version}/build/pdf.worker.min.mjs`;const Ma=u(null);function Va({pdfUrl:t,urlLoading:o=!1,children:n,onLoadSuccess:a}){const[r,i]=d(0),[s,l]=d(!0),[c,u]=d(null),[p,m]=d(null),g={pdfUrl:t,numPages:r,loading:o||!t||s,error:c,pageDimensions:p};return c?e("div",{className:"flex items-center justify-center text-destructive text-sm py-4",children:"Failed to load PDF"}):e(Ma.Provider,{value:g,children:t?e(nn,{file:t,onLoadSuccess:async e=>{i(e.numPages),a?.(e.numPages);try{const t=(await e.getPage(1)).getViewport({scale:1});m({width:t.width,height:t.height,aspectRatio:t.width/t.height})}catch(e){console.error("Failed to get page dimensions:",e)}l(!1)},onLoadError:e=>{l(!1),u(e)},loading:e(La,{className:"py-4",size:"md"}),children:n((t,o)=>e(an,{pageNumber:t,width:o,renderTextLayer:!1,renderAnnotationLayer:!1,loading:e(La,{className:"py-4",size:"sm"})},t))}):e(La,{className:"py-4",size:"md"})})}function Wa(){return p(Ma)}const qa=210/297;function Ba({pageNumber:t,width:o,className:n}){const a=Wa(),r=a?.pageDimensions?.aspectRatio??qa,i=o?Math.round(o/r):200;return e("div",a?.loading?{className:`flex items-center justify-center bg-muted ${n||""}`,style:{height:i,width:o||"100%"},children:e(La,{size:"md"})}:{className:n,children:e(an,{pageNumber:t,width:o,renderTextLayer:!1,renderAnnotationLayer:!1,loading:e(La,{className:"py-4",size:"sm"})})})}function $a({pageNumber:t,width:o,isSelected:n,onSelect:a,renderThumbnail:r,aspectRatio:i=qa,rootMargin:s="200px 0px"}){const l=m(null),[c,u]=d(!1);f(()=>{const e=l.current;if(!e)return;const t=new IntersectionObserver(e=>{const t=e[0];t?.isIntersecting&&u(!0)},{rootMargin:s,threshold:0});return t.observe(e),()=>t.disconnect()},[s]);const p=o?Math.round(o/i):200,g=c?e(an,{pageNumber:t,width:o,renderTextLayer:!1,renderAnnotationLayer:!1,loading:e("div",{className:"flex items-center justify-center bg-muted",style:{height:p},children:e(La,{size:"sm"})})}):e("div",{className:"flex items-center justify-center bg-muted",style:{height:p,width:o||"100%"},children:e("span",{className:"text-muted-foreground text-xs",children:t})});return e("div",{ref:l,children:r({pageNumber:t,isSelected:n,pageElement:g,onSelect:a})})}function Ga({pdfUrl:n,urlLoading:a=!1,pageCount:r,currentPage:i,thumbnailWidth:s,onPageSelect:l,renderThumbnail:c,scrollContainerRef:u,onAspectRatioChange:p,onItemHeightChange:h,calculateItemHeight:v,onPageCountChange:y}){const[b,w]=d(null),[x,C]=d({start:0,end:Math.min(15,r)}),[k,T]=d(null),N=m(null),S=g(e=>{w(e)},[]),D=g(async e=>{y?.(e.numPages);try{const t=(await e.getPage(1)).getViewport({scale:1}),o=t.width/t.height;T(o),p?.(o)}catch(e){console.error("Failed to get page dimensions:",e),T(qa),p?.(qa)}},[p,y]),P=k??qa,A=s?Math.round(s/P):200,F=v?v(A):A+16+24+8;f(()=>{F>0&&null!==k&&h?.(F)},[F,k,h]);if(f(()=>{const e=u?.current||function(e){if(!e)return null;let t=e.parentElement;for(;t;){const e=window.getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)return t;t=t.parentElement}return null}(N.current);if(!e)return;const t=()=>{const t=e.scrollTop,o=e.clientHeight,n=Math.floor(t/F),a=Math.ceil((t+o)/F),i=Math.max(0,n-5),s=Math.min(r,a+5);C(e=>e.start!==i||e.end!==s?{start:i,end:s}:e)};return t(),e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[F,r,u]),b)return e("div",{className:"flex items-center justify-center text-destructive text-sm py-4",children:"Failed to load PDF"});if(a||!n)return e(La,{className:"py-4",size:"md"});const z=x.start*F,I=(r-x.end)*F,E=null!==k;return e("div",{ref:N,children:e(nn,{file:n,onLoadSuccess:D,onLoadError:S,loading:e(La,{className:"py-4",size:"md"}),children:E?t(o,{children:[z>0&&e("div",{style:{height:z}}),Array.from({length:x.end-x.start},(t,o)=>{const n=x.start+o+1;return e("div",{"data-page-index":n-1,style:{height:F,overflow:"hidden"},children:e($a,{pageNumber:n,width:s,isSelected:n===i,onSelect:()=>l(n),renderThumbnail:c,aspectRatio:P})},n)}),I>0&&e("div",{style:{height:I}})]}):e(La,{className:"py-4",size:"md"})})})}function Ka({pdfUrl:o,pageNumber:n,width:a,height:r,className:i,renderTextLayer:s=!1,renderAnnotationLayer:l=!1,onPageChange:c}){const[u,p]=d(0),[m,g]=d(!0),[h,v]=d(null);f(()=>{u>0&&c?.(n,u)},[n,u,c]);return h?e("div",{className:`flex items-center justify-center text-destructive ${i||""}`,children:t("span",{children:["Failed to load PDF: ",h.message]})}):t("div",{className:i,children:[m&&e(La,{className:"py-8",size:"lg"}),e(nn,{file:o,onLoadSuccess:({numPages:e})=>{p(e),g(!1)},onLoadError:e=>{g(!1),v(e)},loading:null,children:e(an,{pageNumber:Math.min(n,u||1),width:a,height:r,renderTextLayer:s,renderAnnotationLayer:l,loading:e(La,{className:"py-8",size:"md"})})})]})}const Ha=210/297,Ja=[50,75,100,125,150,200,300];function Ya({pdfUrl:a,pdfUrlLoading:r=!1,pageCount:i,currentPage:s,onChange:l,onPageCountChange:c,className:u,compact:p=!1,headerExtra:h}){const{t:v}=Vn(),y=m(null),b=m(null),[w,x]=d(void 0),[C,k]=d(100),[T,N]=d(Ha),[S,D]=d(null),P=m(null),A=w?Math.round(w*C/100):void 0,F=g(()=>{let e=Ja.findIndex(e=>e>=C);-1===e&&(e=Ja.length-1);const t=Math.min(e+1,Ja.length-1);k(Ja[t])},[C]),z=g(()=>{let e=Ja.findIndex(e=>e>=C);-1===e&&(e=Ja.length-1);const t=Math.max(e-1,0);k(Ja[t])},[C]),I=g(()=>{k(100)},[]),E=g(e=>e+(p?28:48),[p]),j=(e,t)=>{const o=e?Math.round(e/t):200;return E(o)};f(()=>{const e=b.current;if(!e)return;let t=null;const o=()=>e.clientWidth-16-16-4,n=()=>{const t=o();if(t<=0)return;const n=P.current;if(n&&n>0){const o=e.scrollTop,a=Math.round(o/n),r=j(t,T),i=a*r;x(t),requestAnimationFrame(()=>{e.scrollTo({top:i,behavior:"instant"})}),P.current=r}else x(t),P.current=j(t,T)},a=o();a>0&&(x(a),P.current=j(a,T));const r=new ResizeObserver(()=>{t&&clearTimeout(t),t=setTimeout(n,150)});return r.observe(e),()=>{t&&clearTimeout(t),r.disconnect()}},[T]);const _=m(!1),R=m(null),O=m(C);f(()=>{O.current!==C&&(O.current=C,R.current={targetPage:s},_.current=!0)},[C,s]),f(()=>{const e=b.current,t=R.current;if(t&&e&&S){R.current=null;const o=(t.targetPage-1)*S;requestAnimationFrame(()=>{e.scrollTo({top:o,behavior:"instant"}),requestAnimationFrame(()=>{_.current=!1})})}},[S]);const L=m(!1);f(()=>{const e=b.current;if(e&&S&&!L.current)if(s>1){L.current=!0,_.current=!0;const t=(s-1)*S;e.scrollTo({top:t,behavior:"instant"}),requestAnimationFrame(()=>{_.current=!1})}else L.current=!0},[S,s]);const U=m(s);f(()=>{const e=b.current;if(e&&S&&U.current!==s){U.current=s,_.current=!0;const t=(s-1)*S;e.scrollTo({top:t,behavior:"instant"}),requestAnimationFrame(()=>{_.current=!1})}},[s,S]),f(()=>{const e=b.current;if(!e||!S)return;let t=null;const o=()=>{_.current||(t&&clearTimeout(t),t=setTimeout(()=>{const t=e.scrollTop,o=Math.round(t/S)+1,n=Math.max(1,Math.min(o,i));n!==s&&(U.current=n,l(n))},50))};return e.addEventListener("scroll",o,{passive:!0}),()=>{t&&clearTimeout(t),e.removeEventListener("scroll",o)}},[S,i,s,l]);return t("div",{ref:y,className:n("flex flex-col items-stretch",p?"gap-y-1":"gap-y-2",u),children:[t("div",{className:n("relative flex items-center justify-center px-2",p?"h-6":"h-9"),children:[e(et,{variant:"ghost",size:"xs",onClick:()=>{s>1&&l(s-1)},alt:v("pdf.previousPage"),children:e(V,{className:"size-4"})}),t("div",{className:"absolute left-2 flex items-center gap-x-1",children:[e(Za,{zoom:C,onZoomIn:F,onZoomOut:z,onFitToView:I,canZoomIn:C<Ja[Ja.length-1],canZoomOut:C>Ja[0]}),h&&t(o,{children:[e("div",{className:"w-px h-4 bg-border mx-1"}),h]})]}),e("div",{className:"absolute right-2",children:e(Qa,{currentPage:s,totalPages:i,onChange:l})})]}),e("div",{ref:b,className:n("flex flex-col items-center flex-1 overflow-y-auto px-2",p?"gap-1":"gap-2"),children:e(Ga,{pdfUrl:a,urlLoading:r,pageCount:i,currentPage:s,thumbnailWidth:A,onPageSelect:l,onPageCountChange:c,scrollContainerRef:b,onAspectRatioChange:N,onItemHeightChange:D,calculateItemHeight:E,renderThumbnail:({pageNumber:o,isSelected:a,pageElement:r,onSelect:i})=>t("div",{className:n("hover:bg-muted rounded-md w-full",p?"p-1":"p-2"),children:[e("div",{className:n("relative border-[2px] cursor-pointer overflow-hidden",a?"border-primary":"border-border"),onClick:i,children:r}),e(tt,{className:n("text-muted-foreground font-semibold",p?"text-xs pt-0.5":"text-sm pt-1"),children:o})]},o)})}),e("div",{className:n("flex items-center justify-center",p?"h-6":"h-9"),children:e(et,{variant:"ghost",size:"xs",onClick:()=>{s<i&&l(s+1)},alt:v("pdf.nextPage"),children:e(W,{className:"size-4"})})})]})}function Qa({currentPage:o,totalPages:n,onChange:a}){const{t:r}=Vn(),i=m(null),[s,l]=d(String(o));f(()=>{l(String(o))},[o]);const c=()=>{const e=parseInt(s,10);!isNaN(e)&&e>=1&&e<=n?a(e):l(String(o))};return t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e("span",{children:r("pdf.page")}),e("input",{ref:i,type:"text",value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key?(c(),i.current?.blur()):"Escape"===e.key&&(l(String(o)),i.current?.blur())},onBlur:()=>{c()},className:"w-8 h-5 text-center text-xs px-1 py-0 bg-background border border-border rounded focus:outline-none focus:border-primary"}),t("span",{children:["/ ",n]})]})}function Za({zoom:o,onZoomIn:a,onZoomOut:r,onFitToView:i,canZoomIn:s,canZoomOut:l}){const{t:c}=Vn();return t("div",{className:"flex items-center gap-x-0.5",children:[e(ot,{description:c("pdf.zoomOut"),placement:"bottom",size:"xs",children:e("button",{className:n("p-1 rounded cursor-pointer transition-colors",l?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40 cursor-not-allowed"),onClick:r,disabled:!l,children:e(q,{className:"size-4"})})}),t("span",{className:"text-xs text-muted-foreground min-w-[32px] text-center",children:[o,"%"]}),e(ot,{description:c("pdf.zoomIn"),placement:"bottom",size:"xs",children:e("button",{className:n("p-1 rounded cursor-pointer transition-colors",s?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40 cursor-not-allowed"),onClick:a,disabled:!s,children:e(B,{className:"size-4"})})}),e(ot,{description:c("pdf.fitToWidth"),placement:"bottom",size:"xs",children:e("button",{className:n("p-1 rounded cursor-pointer transition-colors",100!==o?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40"),onClick:i,children:e($,{className:"size-4"})})})]})}const Xa="magic-pdf";var er;!function(e){e.original="original",e.instrumented="instrumented"}(er||(er={}));class tr{client;objectId;totalPages;cache=new Map;pending=new Map;constructor(e,t,o){this.client=e,this.objectId=t,this.totalPages=o}getCacheKey(e,t){return`${t}-${e}`}async getPageImageUrl(e,t){const o=this.getCacheKey(e,t),n=this.cache.get(o);if(n)return n;const a=this.pending.get(o);if(a)return a;const r=this.fetchImageUrl(e,t);this.pending.set(o,r);try{const e=await r;return this.cache.set(o,e),e}finally{this.pending.delete(o)}}async fetchImageUrl(e,t){const o=this.getImagePath(e,t);return(await this.client.files.getDownloadUrl(o)).url}getImagePath(e,t){const o=`${Xa}/${this.objectId}/pages`;switch(t){case er.original:return`${o}/page-${e}.original.jpg`;case er.instrumented:return`${o}/page-${e}.instrumented.jpg`}}}class or{client;objectId;totalPages;cache=new Map;pending=new Map;constructor(e,t,o){this.client=e,this.objectId=t,this.totalPages=o}async getPageLayout(e){const t=this.cache.get(e);if(void 0!==t)return t;const o=this.pending.get(e);if(o)return o;const n=this.fetchPageLayout(e);this.pending.set(e,n);try{const t=await n;return this.cache.set(e,t),t}finally{this.pending.delete(e)}}async fetchPageLayout(e){const t=`${Xa}/${this.objectId}/pages/page-${e}.layout.json`,o=await this.client.files.getDownloadUrl(t),n=await fetch(o.url,{method:"GET"});if(!n.ok)throw new Error("Failed to fetch json layout: "+n.statusText);return n.text()}}class nr{totalPages;pages=[];constructor(e){this.totalPages=e}initFromContent(e){this.pages=function(e,t){const o=new Array(t).fill(""),n=/<!--\s*\{\s*"page"\s*:\s*(\d+)\s*\}\s*-->/g,a=[];let r;for(;null!==(r=n.exec(e));)a.push({page:parseInt(r[1],10),index:r.index+r[0].length});for(let n=0;n<a.length;n++){const r=a[n],i=r.page-1;if(i<0||i>=t)continue;const s=r.index,l=e.slice(s).match(/<!--\s*\{\s*"page"\s*:\s*\d+\s*\}\s*-->/),c=l?s+l.index:e.length;let d=e.slice(s,c).trim();d=d.replace(/\n---\s*$/,"").trim(),o[i]=d}return o}(e,this.totalPages)}async loadUrls(e,t){}async getPageMarkdown(e){const t=e-1;return t<0||t>=this.pages.length?"":this.pages[t]}}const ar=u(void 0);function rr({children:t,object:o}){const{client:n}=Qe(),a=o.metadata.page_count||10,r="markdown"===o.metadata?.content_processor?.type,[i,s]=d(()=>{const e=new nr(a);r&&o.text&&e.initFromContent(o.text);const t=o.text?lr(o.text):"";return{count:a,layoutProvider:new or(n,o.id,a),markdownProvider:e,imageProvider:new tr(n,o.id,a),xml:t,xmlPages:o.text?sr(t):[],pdfUrl:"",pdfUrlLoading:!0}});return f(()=>{if(r){const e=o.metadata,t=e?.renditions?.find(e=>e.name===yo),a="application/pdf"===o.content?.type,r=t?.content?.source||(a?o.content?.source:void 0);r?n.store.objects.getDownloadUrl(r,void 0,"inline").then(e=>{s(t=>({...t,pdfUrl:e.url,pdfUrlLoading:!1}))}).catch(e=>{console.warn("Failed to get PDF URL:",e),s(e=>({...e,pdfUrlLoading:!1}))}):s(e=>({...e,pdfUrlLoading:!1}))}else s(e=>({...e,pdfUrlLoading:!1}))},[o.id,n,r,a]),e(ar.Provider,{value:i,children:t})}function ir(){const e=l.useContext(ar);if(!e)throw new Error("useMagicPdfContext must be used within a MagicPdfProvider");return e}function sr(e){const t=(new DOMParser).parseFromString(lr(e),"text/xml").getElementsByTagName("page"),o=new XMLSerializer;return Array.from(t).map(e=>o.serializeToString(e))}function lr(e){return e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"").replace(/<\?xml.*?\?>/g,"")}const cr=[50,75,100,125,150,200,300],dr=11/8.5;function ur({className:o,currentPage:a,onChange:r}){const{t:i}=Vn(),[s,l]=d(er.instrumented),[c,u]=d(dr),[p,h]=d(new Map),[v,y]=d(100),b=m(new Set),w=m(null),x=m(null),C=m(!1),{imageProvider:k,count:T}=ir(),N=g(()=>{let e=cr.findIndex(e=>e>=v);-1===e&&(e=cr.length-1);const t=Math.min(e+1,cr.length-1);y(cr[t])},[v]),S=g(()=>{let e=cr.findIndex(e=>e>=v);-1===e&&(e=cr.length-1);const t=Math.max(e-1,0);y(cr[t])},[v]),D=g(()=>{y(100)},[]);f(()=>{k.getPageImageUrl(1,s).then(e=>{const t=new window.Image;t.onload=()=>{t.width>0&&t.height>0&&u(t.height/t.width)},t.src=e}).catch(()=>{})},[k,s]);const P=m(s);f(()=>{let e=!1;P.current!==s&&(P.current=s,b.current=new Set,h(new Map));const t=function(e,t){const o=[e];let n=1;for(;o.length<t;){const a=e+n,r=e-n;a<=t&&o.push(a),r>=1&&o.push(r),n++}return o}(a,T);return t.forEach(t=>(async t=>{if(!e&&!b.current.has(t))try{const o=await k.getPageImageUrl(t,s);e||(b.current.add(t),h(e=>new Map(e).set(t,o)))}catch{}})(t)),()=>{e=!0}},[a,T,s,k]);const A=m(v);f(()=>{if(A.current!==v&&x.current){A.current=v,C.current=!0;const e=x.current.querySelector(`[data-page="${a}"]`);e?requestAnimationFrame(()=>{e.scrollIntoView({behavior:"instant",block:"center"}),requestAnimationFrame(()=>{C.current=!1})}):C.current=!1}},[v,a]);const F=m(a);f(()=>{if(F.current!==a&&x.current){F.current=a,C.current=!0;const e=x.current.querySelector(`[data-page="${a}"]`);e&&e.scrollIntoView({behavior:"instant",block:"nearest"}),requestAnimationFrame(()=>{C.current=!1})}},[a]),f(()=>{const e=x.current;if(!e)return;let t=null;const o=()=>{C.current||(t&&clearTimeout(t),t=setTimeout(()=>{const t=e.getBoundingClientRect(),o=t.top+t.height/2;let n=a,i=1/0;for(let t=1;t<=T;t++){const a=e.querySelector(`[data-page="${t}"]`);if(a){const e=a.getBoundingClientRect(),r=e.top+e.height/2,s=Math.abs(r-o);s<i&&(i=s,n=t)}}n!==a&&(F.current=n,r(n))},50))};return e.addEventListener("scroll",o,{passive:!0}),()=>{t&&clearTimeout(t),e.removeEventListener("scroll",o)}},[T,a,r]);return t("div",{ref:w,className:n("flex flex-col items-stretch gap-y-2",o),children:[t("div",{className:"relative flex items-center justify-center px-2 h-9",children:[e(et,{variant:"ghost",size:"xs",onClick:()=>{a>1&&r(a-1)},alt:i("pdf.previousPage"),children:e(V,{className:"size-4"})}),t("div",{className:"absolute left-2 flex items-center gap-x-1",children:[e(pr,{type:er.original,currentType:s,onClick:()=>l(er.original),icon:e(G,{className:"size-4"}),tooltip:i("pdf.originalImages")}),e(pr,{type:er.instrumented,currentType:s,onClick:()=>l(er.instrumented),icon:e(K,{className:"size-4"}),tooltip:i("pdf.instrumentedImages")}),e("div",{className:"w-px h-4 bg-border mx-1"}),e(mr,{zoom:v,onZoomIn:N,onZoomOut:S,onFitToView:D,canZoomIn:v<cr[cr.length-1],canZoomOut:v>cr[0]})]}),e("div",{className:"absolute right-2",children:e(hr,{currentPage:a,totalPages:T,onChange:r})})]}),e("div",{ref:x,className:"flex flex-col items-center gap-2 flex-1 overflow-y-auto px-2",children:Array.from({length:T},(t,o)=>e(gr,{currentPage:a,pageNumber:o+1,aspectRatio:c,zoom:v,url:p.get(o+1),onSelect:()=>r(o+1)},o))}),e("div",{className:"flex items-center justify-center h-9",children:e(et,{variant:"ghost",size:"xs",onClick:()=>{a<T&&r(a+1)},alt:i("pdf.nextPage"),children:e(W,{className:"size-4"})})})]})}function pr({type:t,currentType:o,onClick:a,icon:r,tooltip:i}){return e(ot,{description:i,placement:"bottom",size:"xs",children:e("button",{className:n("p-1 rounded cursor-pointer transition-colors",t===o?"text-primary bg-primary/10":"text-muted-foreground hover:text-foreground hover:bg-muted"),onClick:a,children:r})})}function mr({zoom:o,onZoomIn:a,onZoomOut:r,onFitToView:i,canZoomIn:s,canZoomOut:l}){const{t:c}=Vn();return t("div",{className:"flex items-center gap-x-0.5",children:[e(ot,{description:c("pdf.zoomOut"),placement:"bottom",size:"xs",children:e("button",{className:n("p-1 rounded cursor-pointer transition-colors",l?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40 cursor-not-allowed"),onClick:r,disabled:!l,children:e(q,{className:"size-4"})})}),t("span",{className:"text-xs text-muted-foreground min-w-[32px] text-center",children:[o,"%"]}),e(ot,{description:c("pdf.zoomIn"),placement:"bottom",size:"xs",children:e("button",{className:n("p-1 rounded cursor-pointer transition-colors",s?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40 cursor-not-allowed"),onClick:a,disabled:!s,children:e(B,{className:"size-4"})})}),e(ot,{description:c("pdf.fitToWidth"),placement:"bottom",size:"xs",children:e("button",{className:n("p-1 rounded cursor-pointer transition-colors",100!==o?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40"),onClick:i,children:e($,{className:"size-4"})})})]})}function gr({pageNumber:o,currentPage:a,aspectRatio:r,zoom:i,url:s,onSelect:l}){return t("div",{className:"p-2 hover:bg-muted rounded-md flex flex-col items-center","data-page":o,style:{width:`${i}%`},children:[e("div",{className:n("relative border-[2px] cursor-pointer overflow-hidden flex items-center justify-center bg-muted/50 w-full",o===a?"border-primary":"border-border"),style:{aspectRatio:`1 / ${r}`},onClick:l,children:s?e("img",{src:s,alt:`Page ${o}`,className:"w-full"}):e(x,{className:"w-6 h-6 animate-spin text-muted-foreground"})}),e(tt,{className:"text-sm text-muted-foreground pt-1 font-semibold",children:o})]})}function hr({currentPage:o,totalPages:n,onChange:a}){const{t:r}=Vn(),i=m(null),[s,l]=d(String(o));f(()=>{l(String(o))},[o]);const c=()=>{const e=parseInt(s,10);!isNaN(e)&&e>=1&&e<=n?a(e):l(String(o))};return t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e("span",{children:r("pdf.page")}),e("input",{ref:i,type:"text",value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key?(c(),i.current?.blur()):"Escape"===e.key&&(l(String(o)),i.current?.blur())},onBlur:()=>{c()},className:"w-8 h-5 text-center text-xs px-1 py-0 bg-background border border-border rounded focus:outline-none focus:border-primary"}),t("span",{children:["/ ",n]})]})}function fr({object:o}){const{t:n}=Vn(),{client:a}=Qe(),r=e=>{(function(e,t,o){return e.files.getDownloadUrl(`${Xa}/${t}/${o}`).then(e=>e.url)})(a,o.id,e).then(e=>window.open(e,"_blank"))},i="p-2 cursor-pointer hover:bg-muted text-left text-sm";return"markdown"===(()=>{if("document"===o.metadata?.type){const e=o.metadata;return e.content_processor?.type||"xml"}return"xml"})()?e(et,{variant:"ghost",size:"xs",onClick:()=>r("document.md"),alt:n("pdf.download"),children:e(T,{className:"size-4"})}):t(nt,{children:[e(at,{children:e(et,{variant:"ghost",size:"xs",alt:n("pdf.download"),children:e(T,{className:"size-4"})})}),e(rt,{align:"start",className:"p-0 w-auto",children:t("div",{className:"min-w-[200px] flex flex-col divide-y divide-border",children:[e("button",{className:i,onClick:()=>r("annotated.pdf"),children:"annotated.pdf"}),e("button",{className:i,onClick:()=>r("document.xml"),children:"document.xml"}),e("button",{className:i,onClick:()=>r("analyzed-pages.json"),children:"analyzed-pages.json"})]})})]})}function vr({className:t}){return e("div",{className:`flex items-center justify-center ${t||""}`,children:e(x,{className:"w-6 h-6 animate-spin text-gray-400"})})}function yr({viewType:t,pageNumber:o}){switch(t){case"json":return e(wr,{pageNumber:o});case"markdown":return e(xr,{pageNumber:o});default:return e(br,{pageNumber:o})}}function br({pageNumber:t}){const{xmlPages:o}=ir();return e("div",{className:"px-4 py-2",children:e(qo,{xml:o[t-1],collapsible:!0})})}function wr({pageNumber:t}){const[o,n]=d(null),[a,r]=d(!0),[i,s]=d(null),{layoutProvider:l}=ir();return f(()=>{r(!0),s(null),l.getPageLayout(t).then(e=>{n(e?JSON.parse(e):null),r(!1)}).catch(e=>{console.error(e),s(e.message||"Failed to load layout"),r(!1)})},[t,l]),a?e("div",{className:"px-4 py-8",children:e(vr,{})}):i?e("div",{className:"px-4 py-2 text-red-500 text-sm",children:i}):o?e(Bo,{className:"w-full",data:o}):null}function xr({pageNumber:o}){const[n,a]=d(null),[r,i]=d(!0),[s,l]=d(null),{markdownProvider:c}=ir();return f(()=>{i(!0),l(null),c.getPageMarkdown(o).then(e=>{a(e),i(!1)}).catch(e=>{console.error(e),l(e.message||"Failed to load markdown"),i(!1)})},[o,c]),r?t("div",{className:"h-full flex flex-col items-center justify-center gap-2",children:[e(vr,{}),e("span",{className:"text-sm text-muted-foreground",children:"Loading..."})]}):e("div",s?{className:"px-4 py-2 text-red-500 text-sm",children:s}:{className:"px-4 py-2 prose prose-sm max-w-none dark:prose-invert",children:n?e(Wo,{children:n}):e("div",{children:"No markdown content available"})})}class Cr extends v{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("PDF View error:",e,t)}render(){return this.state.hasError?e("div",{className:"fixed inset-0 bg-background z-50 flex items-center justify-center",children:t("div",{className:"flex flex-col items-center gap-4 p-8 max-w-md",children:[e(st,{title:Mn.t("pdf.failedToLoadViewer",{ns:Un}),children:this.state.error?.message||"An unexpected error occurred"}),this.props.onClose&&e(et,{variant:"outline",onClick:this.props.onClose,children:"Close"})]})}):this.props.children}}function kr({objectId:o,onClose:n}){const{t:a}=Vn(),{client:r}=Qe(),{data:i,error:s}=it(()=>r.store.objects.retrieve(o,"+text"),[o]);return s?e("div",{className:"fixed inset-0 bg-background z-50 flex items-center justify-center",children:t("div",{className:"flex flex-col items-center gap-4 p-8 max-w-md",children:[e(st,{title:a("pdf.fetchingDocumentFailed"),children:s.message}),n&&e(et,{variant:"outline",onClick:n,children:"Close"})]})}):i?e(Cr,{onClose:n,children:e("div",{className:"fixed inset-0 bg-background z-50 flex items-center justify-center",children:e(rr,{object:i,children:e(Tr,{object:i,onClose:n})})})}):t("div",{className:"fixed inset-0 bg-background z-50 flex flex-col",children:[e("div",{className:"flex h-9 items-center justify-end shrink-0 bg-sidebar px-2 border-b border-sidebar-border",children:n&&e(et,{variant:"ghost",size:"xs",onClick:n,alt:a("pdf.close"),children:e(D,{className:"size-4"})})}),e("div",{className:"flex-1 flex items-center justify-center",children:e("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})})]})}function Tr({object:o,onClose:n}){const{t:a}=Vn(),{count:r,pdfUrl:i,pdfUrlLoading:s}=ir(),[l,c]=d(1),u=(()=>{if("document"===o.metadata?.type){const e=o.metadata,t=e.content_processor?.type;if("markdown"===t)return"markdown"}return"xml"})();return t(lt,"xml"===u?{direction:"horizontal",className:"absolute inset-0",children:[e(ct,{defaultSize:50,minSize:20,maxSize:80,className:"bg-muted",children:e(ur,{className:"h-full",currentPage:l,onChange:c})}),e(dt,{className:"w-[4px] bg-border cursor-ew-resize"}),t(ct,{defaultSize:50,minSize:20,className:"flex flex-col",children:[t("div",{className:"flex h-9 items-center justify-between shrink-0 bg-sidebar px-2 border-b border-sidebar-border",children:[e("div",{className:"flex items-center gap-x-2",children:e(fr,{object:o})}),e("span",{className:"text-xs text-muted-foreground",children:a("pdf.pageOf",{pageNumber:l,totalPages:r})}),e("div",{className:"flex items-center gap-x-2",children:!!n&&e(et,{variant:"ghost",size:"xs",onClick:n,alt:a("pdf.close"),children:e(D,{className:"size-4"})})})]}),e("div",{className:"flex-1 overflow-auto px-2",children:e(yr,{pageNumber:l,viewType:"xml"})})]})]}:{direction:"horizontal",className:"absolute inset-0",children:[e(ct,{defaultSize:50,minSize:20,maxSize:80,className:"bg-muted",children:e(Ya,{pdfUrl:i,pdfUrlLoading:s,pageCount:r,className:"h-full",currentPage:l,onChange:c})}),e(dt,{className:"w-[4px] bg-border cursor-ew-resize"}),t(ct,{defaultSize:50,minSize:20,className:"flex flex-col",children:[t("div",{className:"flex h-9 items-center justify-between shrink-0 bg-sidebar px-2 border-b border-sidebar-border",children:[e("div",{className:"flex items-center gap-x-2",children:e(fr,{object:o})}),e("span",{className:"text-xs text-muted-foreground",children:a("pdf.pageOf",{pageNumber:l,totalPages:r})}),e("div",{className:"flex items-center gap-x-2",children:!!n&&e(et,{variant:"ghost",size:"xs",onClick:n,alt:a("pdf.close"),children:e(D,{className:"size-4"})})})]}),e("div",{className:"flex-1 overflow-auto px-2",children:e(yr,{pageNumber:l,viewType:"markdown"})})]})]})}function Nr({object:o,url:n,source:a,className:r}){const{t:i}=Vn(),{client:s}=Qe(),[l,c]=d(1),[u,p]=d(n||""),[m,g]=d(!n),[h,v]=d(0),[y,b]=d(!1);f(()=>{if(n)return p(n),void g(!1);const e=a||o?.content?.source;e?(g(!0),s.files.getDownloadUrl(e).then(e=>{p(e.url)}).catch(e=>{console.error("Failed to get PDF URL:",e)}).finally(()=>{g(!1)})):g(!1)},[n,a,o?.content?.source,s]),f(()=>{const e=o?.metadata,t=e?.pages||e?.page_count||0;t>0&&v(t)},[o?.metadata]);const w=e=>{v(e)};return m?e("div",{className:"flex items-center justify-center h-full",children:e(ut,{size:"lg"})}):u?y?t("div",{className:"fixed inset-0 bg-background z-50 flex flex-col overflow-hidden",children:[e("div",{className:"flex h-9 items-center justify-end shrink-0 bg-sidebar px-2 border-b border-sidebar-border",children:e(et,{variant:"ghost",size:"xs",onClick:()=>b(!1),alt:i("pdf.closeFullscreen"),children:e(D,{className:"size-4"})})}),e(Ya,{pdfUrl:u,pdfUrlLoading:m,pageCount:h||100,currentPage:l,onChange:c,onPageCountChange:w,className:"flex-1 min-h-0"})]}):e("div",{className:"relative h-full flex flex-col",children:e(Ya,{pdfUrl:u,pdfUrlLoading:m,pageCount:h||100,currentPage:l,onChange:c,onPageCountChange:w,className:r,compact:!0,headerExtra:e(ot,{description:i("pdf.fullscreen"),placement:"bottom",size:"xs",children:e("button",{className:"p-1 rounded cursor-pointer transition-colors text-muted-foreground hover:text-foreground hover:bg-muted",onClick:()=>b(!0),children:e(S,{className:"size-4"})})})})}):e("div",{className:"flex items-center justify-center h-full text-muted",children:i("pdf.noPdfAvailable")})}function Sr(...e){const t=Array.from(e);return t.__AnyOf__=!0,t}function Dr(...e){return Array.from(e)}function Pr(e){return!0===e.__AnyOf__}class Ar{system_roles;roles;permissions;constructor(e,t){if(!e.authToken)throw new Error("No auth token found in user session");this.system_roles=t;const o=new Set(e.authToken.account_roles||[]);if(e.authToken.project_roles)for(const t of e.authToken.project_roles)o.add(t);this.roles=o;const n={};for(const e of t)n[e.name]=e.permissions;const a=new Set;for(const e of o){const t=n[e];if(t)for(const e of t)a.add(e)}this.permissions=a}hasPermission(e){if("string"==typeof e)return this.permissions.has(e);if(Pr(e))return e.some(e=>this.permissions.has(e));for(const t of e)if(!this.permissions.has(t))return!1;return!0}}const Fr=u(void 0);function zr(){const e=p(Fr);if(!e)throw new Error("UserPermissionContext cannot be used outside UserPermissionProvider");return e}function Ir({children:t}){const{t:o}=Vn(),n=Qe(),{data:a,error:r,isLoading:i}=it(()=>n.user?n.client.iam.roles.list():Promise.resolve(void 0),[n.user]),s=c(()=>n.authToken&&a&&!i?new Ar(n,a):void 0,[n,a,i]);return r?e(st,{title:o("store.failedToFetchRoleMappings"),children:r.message}):s&&e(Fr.Provider,{value:s,children:t})}function Er({permission:t,isDisabled:o,title:n,children:a,...r}){return zr().hasPermission(t)||(o=!0,n="You do not have permission to perform this action"),e(et,{isDisabled:o,title:n,...r,children:a})}function jr(e,t=7){return e?"~"+e.slice(-t):""}function _r(e,t){return e.length>t?e.substring(0,t)+"...":e}const Rr="text/csv",Or="image/",Lr="application/pdf",Ur="video/",Mr=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.ms-powerpoint"],Vr=e=>e===Rr||Rr.includes(e),Wr=e=>e.startsWith(Or)||Or.includes(e),qr=e=>e===Lr||Lr.includes(e),Br=e=>e.startsWith(Ur)||Ur.includes(e),$r=e=>Mr.includes(e),Gr=import.meta.env,Kr={max_hw:Gr?.VITE_RENDITION_HW||256,format:bo.jpeg,generate_if_missing:!0},Hr="vertesia.content_store.renditionId";async function Jr(e,t,o,n,a){if(!t?.content?.type||!(Wr(t.content.type)||Br(t.content.type)||qr(t.content.type)))return void a("No preview available");a("Preparing preview...");const r=(new Date).getTime()/1e3,i=localStorage.getItem(`${Hr}_${t.id}_${Kr.max_hw}`),s=localStorage.getItem(`${Hr}_${t.id}_${Kr.max_hw}_time`);if(i?.length&&s&&Math.abs(r-parseInt(s))<=900)return o(i),n(`${t.name} Rendition`),a("ready"),i;a("Preparing preview..."),e.objects.getRendition(t.id,Kr).then(r=>{if("generating"===r.status)a("Preparing preview..."),o(""),n(""),setTimeout(()=>Jr(e,t,o,n,a),6e4);else{if("failed"===r.status)return a("No preview available"),o(""),void n("");{if(!r?.renditions?.length)return a("No preview available"),o(""),void n("");const e=r.renditions[0];localStorage.setItem(`${Hr}_${t.id}_${Kr.max_hw}`,e),localStorage.setItem(`${Hr}_${t.id}_${Kr.max_hw}_time`,((new Date).getTime()/1e3).toString()),o(e),n(`${t.name} Rendition`),a("ready"),console.log(`Rendition for document ${t.id} retrieved successfully: ${e}`)}}}).catch(e=>{a("No preview available"),console.warn("Failed to retrieve rendition:",e),o(""),n("")})}function Yr(e,t){if("undefined"==typeof window||"undefined"==typeof document)return!1;const o=document.createElement("iframe");o.style.position="fixed",o.style.right="0",o.style.bottom="0",o.style.width="0",o.style.height="0",o.style.border="0",o.style.visibility="hidden",document.body.appendChild(o);const n=o.contentWindow;if(!n)return o.parentNode?.removeChild(o),!1;const a=n.document;a.open(),a.write(`<!doctype html><html><head><title>${t}</title></head><body></body></html>`),a.close(),a.title=t;document.querySelectorAll('link[rel="stylesheet"], style').forEach(e=>{a.head.appendChild(e.cloneNode(!0))});const r=a.createElement("style");return r.textContent='\n@media print {\n body {\n margin: 24px;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;\n font-size: 14px;\n line-height: 1.5;\n color: #111827;\n background-color: #ffffff;\n }\n\n .vprose {\n max-width: 800px;\n margin: 0 auto;\n }\n\n .vprose h1 {\n font-size: 24px;\n font-weight: 700;\n margin: 1.5rem 0 0.75rem;\n }\n\n .vprose h2 {\n font-size: 20px;\n font-weight: 600;\n margin: 1.25rem 0 0.75rem;\n }\n\n .vprose h3 {\n font-size: 18px;\n font-weight: 600;\n margin: 1rem 0 0.5rem;\n }\n\n .vprose p {\n margin: 0 0 0.5rem;\n }\n\n .vprose ul,\n .vprose ol {\n margin: 0.5rem 0 0.5rem 1.5rem;\n padding: 0;\n }\n\n .vprose li {\n margin: 0.25rem 0;\n }\n\n .vprose table {\n width: 100%;\n border-collapse: collapse;\n margin: 1rem 0;\n }\n\n .vprose th,\n .vprose td {\n border: 1px solid #d1d5db;\n padding: 0.5rem 0.75rem;\n vertical-align: top;\n }\n\n .vprose thead th {\n background-color: #f3f4f6;\n font-weight: 600;\n }\n\n .vprose pre,\n .vprose code {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n font-size: 12px;\n }\n\n .vprose pre {\n padding: 0.75rem;\n border-radius: 4px;\n border: 1px solid #e5e7eb;\n background-color: #f9fafb;\n white-space: pre-wrap;\n word-break: break-word;\n }\n\n /* Hide chart action buttons when printing */\n .chart-actions {\n display: none !important;\n }\n\n /* Hide interactive elements in agent conversation when printing */\n .print-hidden,\n [class*="print:hidden"],\n button[title="Copy message"],\n button[title="Copy to clipboard"],\n button[title="Export as PNG"],\n .message-actions {\n display: none !important;\n }\n\n /* Prevent page breaks inside elements */\n .vprose table,\n .vprose pre,\n .vprose blockquote,\n .vprose figure,\n .vprose img,\n [class*="chart"],\n [class*="Chart"] {\n break-inside: avoid;\n page-break-inside: avoid;\n }\n\n /* Keep headings with following content */\n .vprose h1,\n .vprose h2,\n .vprose h3,\n .vprose h4,\n .vprose h5,\n .vprose h6 {\n break-after: avoid;\n page-break-after: avoid;\n }\n\n /* Keep list items together when possible */\n .vprose li {\n break-inside: avoid;\n page-break-inside: avoid;\n }\n}\n',a.head.appendChild(r),a.body.innerHTML=e.innerHTML,n.focus(),n.print(),setTimeout(()=>{o.parentNode?.removeChild(o)},1e3),!0}function Qr(e){switch(e){case wo.RUNNING:return"text-info";case wo.COMPLETED:return"text-success";case wo.FAILED:return"text-destructive";case wo.TERMINATED:case wo.CANCELED:return"text-attention";default:return"text-muted"}}function Zr(e){switch(e){case wo.RUNNING:return"Running";case wo.COMPLETED:return"Completed";case wo.FAILED:return"Failed";case wo.CONTINUED_AS_NEW:return"Continued As New";case wo.TERMINATED:return"Terminated";case wo.TIMED_OUT:return"Timed Out";case wo.CANCELED:return"Canceled";default:return"Unknown"}}class Xr extends bt{idOf(e){return e.id}labelOf(e){return e.label}descriptionOf(e){return e.description}selectedClassName(e){return"border-3 border-primary"}}function ei({isOpen:o,onClose:n,onConfirm:a,isLoading:r,uploadedFileName:i}){const{t:s}=tn(),l=[{id:"update",label:s("modal.saveVersion.updateCurrent"),description:s(i?"modal.saveVersion.updateWithFileDescription":"modal.saveVersion.updateDescription")},{id:"new-version",label:s("modal.saveVersion.createNew"),description:s(i?"modal.saveVersion.createWithFileDescription":"modal.saveVersion.createDescription")}],c=i?l[1]:l[0],[u,p]=d(c),[m,g]=d(""),h=new Xr;f(()=>{o&&(p(c),g(""))},[o,i]);const v="new-version"===u?.id;return t(pt,{isOpen:o,onClose:n,className:"sm:max-w-md",children:[e(mt,{children:s("modal.saveChanges")}),e(gt,{children:t("div",{className:"space-y-4",children:[i&&e("div",{className:"mb-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-md",children:t("p",{className:"text-sm text-blue-700 dark:text-blue-300 font-medium",children:[s("modal.saveVersion.replaceFile")," ",e("span",{className:"font-bold",children:i})]})}),e("p",{className:"text-sm text-mixer-muted/5",children:s("modal.saveVersion.howToSave")}),e(ht,{adapter:h,options:l,selected:u,onSelect:e=>{p(e)}}),v&&e(ft,{label:s("modal.saveVersion.versionLabel"),description:s("modal.saveVersion.versionLabelDescription"),className:"mt-3 pl-8",children:e(vt,{value:m,onChange:g,placeholder:s("modal.saveVersion.versionLabelPlaceholder"),className:"w-full"})})]})}),t(yt,{children:[e(et,{variant:"secondary",onClick:n,disabled:r,children:s("modal.cancel")}),e(et,{variant:"primary",onClick:async()=>{await a(v,v?m:void 0)},isLoading:r,children:s("modal.save")})]})]})}function ti({isOpen:n,onClose:a,object:r,refetch:i}){const{client:s,store:l}=Qe(),c=Xe(),{t:u}=Vn(),{theme:p}=wt(),g=Mo(),[h,v]=d(!1),[y,b]=d(""),[w,x]=d(!1),[C,k]=d(null),T=m(void 0),[N,S]=d(null),[D,P]=d(null);f(()=>{n&&(b(JSON.stringify(r.properties||{},null,2)),r.type?.id&&async function(e){try{const t=await l.types.retrieve(e);t.object_schema&&S(t.object_schema)}catch(e){console.error("Failed to fetch JSON schema:",e)}}(r.type.id))},[n,r]);return t(o,{children:[t(pt,{isOpen:n,onClose:a,className:"sm:max-w-[90%] md:max-w-[80%] lg:max-w-[75%] xl:max-w-[70%]",children:[e(mt,{children:u("store.editProperties")}),t(gt,{children:[t("div",{className:"mb-2 text-sm text-gray-500",children:[r.type?.name?t("span",{children:["Editing properties for object type: ",e("strong",{children:r.type.name})]}):e("span",{children:u("store.editingGenericDocument")}),N&&e("span",{className:"ml-2 text-green-600",children:"(JSON schema validation enabled)"})]}),e("div",{className:"h-[75vh] border rounded-md overflow-hidden",children:e($o,{value:y,language:"json",editorRef:T,onChange:e=>{return t=e.state.doc.toString(),void b(t);var t},beforeMount:e=>{N&&e.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"http://myserver/object-schema.json",fileMatch:["*"],schema:N}]})},theme:"dark"===p?"vs-dark":"vs"})})]}),t(yt,{children:[e(et,{variant:"secondary",onClick:a,children:"Cancel"}),e(et,{variant:"primary",onClick:function(){if(!T.current)return;const e=T.current.getValue();try{const t=JSON.parse(e);k(t),x(!0)}catch(e){c({status:"error",title:u("store.invalidJson"),description:u("store.pleaseFixJsonSyntax"),duration:5e3})}},children:"Save Changes"})]})]}),e(ei,{isOpen:w,onClose:function(){x(!1)},onConfirm:async function(e,t){try{v(!0);const o=C||JSON.parse(y);if(e){const e=await s.objects.update(r.id,{properties:o},{createRevision:!0,revisionLabel:t});e.id!==r.id&&P(e.id),c({status:"success",title:u("store.newVersionCreated"),description:u("store.newVersionCreatedDesc"),duration:2e3}),x(!1),a(),e.id!==r.id&&setTimeout(()=>{g(`/objects/${e.id}`),c({status:"info",title:u("store.viewingNewVersion"),description:t?u("store.viewingVersionLabel",{label:t}):u("store.viewingNewVersionDefault"),duration:3e3})},100)}else await l.objects.update(r.id,{properties:o}),c({status:"success",title:u("store.propertiesUpdated"),description:u("store.propertiesUpdatedDesc"),duration:2e3}),i&&await i(),x(!1),a()}catch(e){c({status:"error",title:u("store.errorUpdatingProperties"),description:e.message||u("store.errorUpdatingPropertiesDefault"),duration:5e3}),v(!1)}},isLoading:h})]})}function oi({object:n,text:a,onClose:r,onSaved:i}){const{store:s}=Qe(),l=Xe(),{t:c}=Vn(),{theme:u}=wt(),p=Mo(),h=m(void 0),[f,v]=d(!1),[y,b]=d(!1),[w,x]=d(!1),C=function(e){switch(e){case"text/markdown":return"markdown";case"application/json":return"json";case"application/xml":case"text/xml":return"xml";default:return"plaintext"}}(n.content?.type),k=g(()=>{f||v(!0)},[f]);return t(o,{children:[t("div",{className:"flex items-center gap-2 px-2 py-1 shrink-0",children:[f&&e("span",{className:"text-xs text-attention",children:c("store.unsavedChanges")}),e("div",{className:"flex-1"}),e(et,{variant:"ghost",size:"sm",onClick:r,disabled:y,children:c("store.cancelEdit")}),e(et,{variant:"outline",size:"sm",onClick:function(){h.current&&x(!0)},disabled:!f,isLoading:y,children:c("store.saveText")})]}),e("div",{className:"flex-1 min-h-0 border rounded-md overflow-hidden mx-2 mb-2",children:e($o,{value:a,language:C,editorRef:h,onChange:k,theme:"dark"===u?"vs-dark":"vs",options:{wordWrap:"on",minimap:{enabled:!1},lineNumbers:"on",scrollBeyondLastLine:!1}})}),e(ei,{isOpen:w,onClose:()=>x(!1),onConfirm:async function(e,t){if(!h.current)return;const o=h.current.getValue(),a=n.content?.type||"text/plain",d=n.content?.name||"content.txt";try{b(!0);const u=new Blob([o],{type:a}),m=new File([u],d,{type:a}),g=await s.objects.update(n.id,{content:m},{createRevision:e,revisionLabel:t,ifMatch:n.content?.etag});l({status:"success",title:c("store.textSaved"),duration:2e3}),x(!1),e&&g.id!==n.id?(r(),setTimeout(()=>{p(`/objects/${g.id}`)},100)):i()}catch(e){const t=412===e?.status||e?.message?.includes("412");l({status:"error",title:c("store.errorSavingText"),description:t?c("store.textConflict"):e.message||c("store.errorSavingTextDefault"),duration:5e3})}finally{b(!1)}},isLoading:y})]})}const ni=131072;function ai({client:e,toast:t}){const o=Mn.getFixedT(null,Un),[n,a]=d(!1),r=g(async(n,r)=>{if(n){a(!0);try{ri((await e.files.getDownloadUrlWithOptions({file:n,name:r})).url,r)}catch(e){t({status:"error",title:o("store.downloadFailed"),description:e instanceof Error?e.message:o("store.failedToGetDownloadUrl"),duration:5e3})}finally{a(!1)}}},[e,t]),i=g((e,t)=>{e&&ri(e,t)},[]),s=g(async(t,o)=>{const n="store"in e?e.store:e,a=await n.rendering.render(t);if(a.download_url)ri(a.download_url,o);else{if(!a.file_uri)throw new Error("No download URL or file URI in response");ri((await e.files.getDownloadUrlWithOptions({file:a.file_uri,name:o})).url,o)}},[e]);return{downloadFromContentSource:r,downloadFromUrl:i,renderDocument:g(async(e,n)=>{a(!0);try{const a=`${n.title||"document"}.${n.format}`;await s({object_id:e,format:n.format,title:n.title,pandoc_options:n.pandocOptions},a),t({status:"success",title:o("store.documentExported"),description:o("store.successfullyExportedTo",{format:n.format.toUpperCase()}),duration:2e3})}catch(e){t({status:"error",title:o("store.exportFailed"),description:e instanceof Error?e.message:o("store.failedToExportDocument"),duration:5e3})}finally{a(!1)}},[s,t]),renderContent:g(async(e,n)=>{a(!0);try{const a=`${n.title||"export"}.${n.format}`;await s({content:e,format:n.format,title:n.title,artifact_run_id:n.artifactRunId,pandoc_options:n.pandocOptions},a),t({status:"success",title:o("store.contentExported"),description:o("store.successfullyExportedTo",{format:n.format.toUpperCase()}),duration:2e3})}catch(e){t({status:"error",title:o("store.exportFailed"),description:e instanceof Error?e.message:o("store.failedToExportContent"),duration:5e3})}finally{a(!1)}},[s,t]),isDownloading:n}}function ri(e,t){fetch(e).then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}`);return e.blob()}).then(o=>{const n=URL.createObjectURL(o),a=document.createElement("a");a.href=n,a.download=t||ii(e),a.style.display="none",document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),URL.revokeObjectURL(n)},100)}).catch(()=>{const o=document.createElement("a");o.href=e,o.download=t||ii(e),o.target="_blank",o.rel="noopener noreferrer",o.style.display="none",document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o)},100)})}function ii(e){try{const t=new URL(e).pathname.split("/");return t[t.length-1]||"download"}catch{return"download"}}const si=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/svg+xml"],li=["video/mp4","video/webm"],ci=["audio/mp4","audio/m4a","audio/x-m4a","audio/mpeg","audio/ogg","audio/wav","audio/webm"];function di(e){return e===Co.created||e===Co.processing}function ui(e){return e.metadata?.content_processor?.type}function pi(e){return e?"h-full overflow-auto":"hidden"}var mi;function gi({object:n,loadText:a,refetch:r}){const i=Xe(),{t:s}=Vn(),l=async(e,t)=>{try{await navigator.clipboard.writeText(e),i({status:"success",title:s("store.contentCopied",{type:s("text"===t?"store.contentType":"store.properties")}),description:s("store.successfullyCopied",{type:t}),duration:2e3})}catch(e){console.error(`Failed to copy ${t}:`,e),i({status:"error",title:s("store.copyFailed"),description:s("store.failedToCopy",{type:t}),duration:5e3})}};return e(o,{children:t(lt,{direction:"horizontal",className:"h-full",children:[e(ct,{className:"min-w-[100px]",children:e(hi,{object:n,refetch:r??(()=>Promise.resolve()),handleCopyContent:l})}),e(dt,{withHandle:!0}),e(ct,{className:"min-w-[100px]",children:e(fi,{object:n,loadText:a??!1,handleCopyContent:l,refetch:r})})]})})}function hi({object:n,refetch:a,handleCopyContent:r}){const{t:i}=Vn(),[s,l]=d(!1),[c,u]=d(!1);return t(o,{children:[t("div",{className:"flex flex-col h-full",children:[t("div",{className:"flex justify-between items-center px-2",children:[t("div",{className:"flex items-center gap-1 bg-muted mb-2 p-1 rounded",children:[e(et,{variant:""+(s?"ghost":"primary"),size:"sm",alt:i("store.previewProperties"),onClick:()=>l(!s),children:"Properties"}),e(et,{variant:""+(s?"primary":"ghost"),size:"sm",alt:i("store.viewInJsonFormat"),onClick:()=>l(!s),children:"JSON"})]}),t("div",{className:"flex items-center gap-2",children:[n.properties&&e(et,{variant:"ghost",size:"sm",title:"Copy properties",onClick:()=>r(JSON.stringify(n.properties,null,2),"properties"),children:e(k,{className:"size-4"})}),e(et,{variant:"ghost",size:"sm",onClick:()=>{u(!0)},title:"Edit properties",className:"flex items-center gap-2",children:e(J,{className:"size-4"})})]})]}),n.properties?e("div",{className:"flex-1 min-h-0 px-2",children:e(Go,{value:n.properties,viewCode:s})}):e("div",{className:"flex-1 min-h-0 px-2",children:e("div",{children:i("store.noPropertiesDefined")})})]}),e(ti,{isOpen:c,onClose:()=>{u(!1)},object:n,refetch:a})]})}function fi({object:o,loadText:n,handleCopyContent:a,refetch:r}){const{t:i}=Vn(),s=o?.metadata?.type===ko.Image,l=o?.metadata?.type===ko.Video,c=o?.metadata?.type===ko.Audio,u="application/pdf"===o?.content?.type,p=!!o?.content?.type&&$r(o.content.type),h=di(o?.status),v=!(!o.transcript||!l&&!c),y=o.metadata,b=y?.renditions?.find(e=>e.name===yo),[w,x]=d(l?mi.Video:c?mi.Audio:s?mi.Image:mi.Text),[C,k]=d(w===mi.Pdf);f(()=>{w===mi.Pdf&&k(!0)},[w]);const[T,N]=d(!1),S=!(!o.content?.source||!o.content?.type||h||o.is_locked||!1===o.user_permissions?.can_write||!o.content.type.startsWith("text/")&&"application/json"!==o.content.type&&"application/xml"!==o.content.type),{fullText:D,displayText:P,isLoading:A,isCropped:F,loadText:z}=function(e,t,o=!1){const{store:n}=Qe(),[a,r]=d(t),[i,s]=d(()=>t&&t.length>ni?t.substring(0,ni):t),[l,c]=d(!1),[u,p]=d(()=>!!t&&t.length>ni),m=g(()=>{c(!0),n.objects.getObjectText(e).then(e=>{r(e.text),e.text&&e.text.length>ni?(s(e.text.substring(0,ni)),p(!0)):(s(e.text),p(!1))}).catch(e=>{console.error("Failed to load text",e),r(void 0),s(void 0),p(!1)}).finally(()=>{c(!1)})},[e,n]);return f(()=>{t&&t.length>ni?(r(t),s(t.substring(0,ni)),p(!0)):(r(t),s(t),p(!1)),o&&!t&&m()},[e,t,o,m]),{fullText:a,displayText:i,isLoading:l,isCropped:u,loadText:m}}(o.id,o.text,n),I=(u||p)&&h&&(w===mi.Text||w===mi.Pdf),{progress:E,status:j,outputFormat:_,isComplete:R}=function(e,t){const{client:o}=Qe(),[n,a]=d({isComplete:!1});return f(()=>{if(!t)return;let n,r=!1;const i=(e,t,o,n)=>{a(a=>{const r=JSON.stringify(a.progress??null),i=JSON.stringify(e??null);return a.status===t&&a.outputFormat===o&&a.isComplete===n&&r===i?a:{progress:e,status:t,outputFormat:o,isComplete:n}})};return function t(){r||o.objects.analyze(e).getStatus().then(e=>{const o=e.output_format??e.progress?.output_format;e.status===wo.RUNNING?(i(e.progress,e.status,o,!1),r||(n=setTimeout(t,2e3))):i(e.progress,e.status,o,!0)}).catch(()=>{r||(n=setTimeout(t,1e4))})}(),()=>{r=!0,n&&clearTimeout(n)}},[t,e,o]),{progress:n.progress,status:n.status,outputFormat:n.outputFormat,isComplete:n.isComplete}}(o.id,I),{pdfUrl:O,isConverting:L,error:U,triggerConversion:M}=function(e,t){const{client:o}=Qe(),n=Mn.getFixedT(null,Un),[a,r]=d(),[i,s]=d(!1),[l,c]=d(),u=g(async()=>{if(!t||i)return;s(!0),c(void 0);const a=async t=>{try{const i=await o.objects.getRendition(e,{format:xo.pdf,generate_if_missing:t,sign_url:!0,block_on_generation:!1});"generating"===i.status?setTimeout(()=>a(!1),5e3):"found"===i.status&&i.renditions?.length?(r(i.renditions[0]),s(!1)):"failed"===i.status&&(c(n("store.pdfConversionFailed")),s(!1))}catch(e){console.error("Failed to convert Office document to PDF:",e),c(n("store.failedToConvertToPdf")),s(!1)}};await a(!0)},[e,t,i,o]);return{pdfUrl:a,isConverting:i,error:l,triggerConversion:u}}(o.id,p);f(()=>{R&&j===wo.COMPLETED&&z()},[R,j,z]);const V=(u||p)&&h&&!R&&j===wo.RUNNING,W=w===mi.Pdf&&!V,q=V&&(w===mi.Text||w===mi.Pdf),B=C&&!V,$=m(null);return t("div",{className:"flex flex-col h-full",children:[t("div",{className:"flex justify-between items-center px-2 shrink-0",children:[t("div",{className:"flex items-center gap-2 mb-2",children:[t("div",{className:"flex items-center gap-1 bg-muted p-1 rounded",children:[s&&e(et,{variant:w===mi.Image?"primary":"ghost",size:"sm",alt:i("store.viewImage"),onClick:()=>x(mi.Image),children:"Image"}),l&&e(et,{variant:w===mi.Video?"primary":"ghost",size:"sm",alt:i("store.viewVideo"),onClick:()=>x(mi.Video),children:"Video"}),c&&e(et,{variant:w===mi.Audio?"primary":"ghost",size:"sm",alt:i("store.viewAudio"),onClick:()=>x(mi.Audio),children:"Audio"}),v&&e(et,{variant:w===mi.Transcript?"primary":"ghost",size:"sm",alt:i("store.viewTranscript"),onClick:()=>x(mi.Transcript),children:"Transcript"}),e(et,{variant:w===mi.Text?"primary":"ghost",size:"sm",alt:i("store.viewText"),onClick:()=>x(mi.Text),children:"Text"}),u&&e(et,{variant:w===mi.Pdf?"primary":"ghost",size:"sm",alt:i("store.viewPdf"),onClick:()=>x(mi.Pdf),children:"PDF"}),p&&e(et,{variant:w===mi.Pdf?"primary":"ghost",size:"sm",alt:i("store.viewAsPdf"),onClick:()=>{x(mi.Pdf),b||O||L||M()},disabled:L,children:L?e(ut,{size:"sm"}):"PDF"})]}),e(Ti,{object:o})]}),w===mi.Text&&!V&&!T&&e(vi,{object:o,text:P,fullText:D,handleCopyContent:a,textContainerRef:$,isEditing:T,onToggleEdit:()=>N(!0),canEdit:S}),w===mi.Pdf&&p&&(b||O)&&e(Ni,{object:o,pdfRendition:b,officePdfUrl:O})]}),w===mi.Image&&e("div",{className:pi(!0),children:e(bi,{object:o})}),w===mi.Video&&e("div",{className:pi(!0),children:e(wi,{object:o})}),w===mi.Audio&&e("div",{className:pi(!0),children:e(xi,{object:o})}),v&&w===mi.Transcript&&e("div",{className:pi(!0),children:e(ki,{object:o,handleCopyContent:a})}),u&&B&&e("div",{className:pi(W),children:e(Si,{object:o})}),p&&B&&e("div",{className:pi(W),children:e(Di,{pdfRendition:b,officePdfUrl:O,officePdfConverting:L,officePdfError:U,onConvert:M})}),q&&e("div",{className:pi(!0),children:e(Pi,{progress:E,status:j,outputFormat:_})}),w===mi.Text&&!V&&A&&e("div",{className:pi(!0),children:e("div",{className:"flex justify-center items-center flex-1",children:e(ut,{size:"lg"})})}),w===mi.Text&&!V&&!A&&e("div",{className:pi(!0),children:e(yi,{object:o,text:P,isTextCropped:F,textContainerRef:$})}),T&&w===mi.Text&&null!=D&&e(oi,{object:o,text:D,onClose:()=>N(!1),onSaved:()=>{N(!1),z(),r?.()}})]})}function vi({object:n,text:a,fullText:r,handleCopyContent:i,onToggleEdit:s,canEdit:l}){const{client:c}=Qe(),d=Xe(),{t:u}=Vn(),p=n.content,{renderDocument:m,isDownloading:g}=ai({client:c,toast:d}),h=p&&p.type&&"text/markdown"===p.type,f=ui(n),v=async e=>{g||(d({status:"info",title:`Preparing ${e.toUpperCase()}`,description:u("store.renderingDocument"),duration:2e3}),await m(n.id,{format:e,title:n.name||"document"}))};return e(o,{children:e("div",{className:"h-[41px] text-lg font-semibold flex justify-between items-center px-2",children:t("div",{className:"flex items-center gap-2",children:[r&&t(o,{children:[e(et,{variant:"ghost",size:"sm",title:"Copy text",onClick:()=>i(r,"text"),children:e(k,{className:"size-4"})}),l&&s&&e(Er,{permission:To.content_write,variant:"ghost",size:"sm",onClick:s,title:u("store.editText"),className:"flex items-center gap-2",children:e(J,{className:"size-4"})}),e(et,{variant:"ghost",size:"sm",title:"Download text",onClick:e=>{if(e.preventDefault(),e.stopPropagation(),!r)return;let t="txt",o="text/plain";"xml"===f?(t="xml",o="text/xml"):("markdown"===f||h)&&(t="md",o="text/markdown");const a=new Blob([r],{type:o}),i=URL.createObjectURL(a),s=`${n.name||"document"}.${t}`,l=document.createElement("a");l.href=i,l.download=s,l.style.display="none",setTimeout(()=>{l.click(),URL.revokeObjectURL(i)},0)},children:e(T,{className:"size-4"})})]}),h&&a&&t(o,{children:[t(et,{variant:"ghost",size:"sm",onClick:()=>v(xo.docx),disabled:g,className:"flex items-center gap-2",children:[g?e(ut,{size:"sm"}):e(T,{className:"size-4"}),"DOCX"]}),t(et,{variant:"ghost",size:"sm",onClick:()=>v(xo.pdf),disabled:g,className:"flex items-center gap-2",children:[g?e(ut,{size:"sm"}):e(T,{className:"size-4"}),"PDF"]})]})]})})})}!function(e){e.Text="text",e.Image="image",e.Video="video",e.Audio="audio",e.Pdf="pdf",e.Transcript="transcript"}(mi||(mi={}));const yi=h(({object:n,text:a,isTextCropped:r,textContainerRef:i})=>{const{t:s}=Vn(),l=n.content,c=di(n?.status),d="xml"===ui(n),u=l&&l.type&&("text/markdown"===l.type||"text/plain"===l.type),p=!d&&(u||function(e){return!!e&&(e.includes("\n# ")||e.includes("\n## ")||e.includes("\n### ")||e.includes("\n* ")||e.includes("\n- ")||e.includes("\n+ ")||e.includes("![")||e.includes("]("))}(a));return a?t(o,{children:[r&&e("div",{className:"px-2 py-2 bg-attention/10 border-l-4 border-attention mx-2 mb-2 rounded",children:t("div",{className:"flex items-center gap-2 text-attention",children:[e(H,{className:"size-4"}),e("span",{className:"text-sm font-semibold",children:s("store.showingFirst128K")})]})}),e("div",{className:"max-w-7xl px-2 h-full overflow-auto",ref:i,children:d?e("div",{className:"px-4 py-2",children:e(qo,{xml:a,collapsible:!0})}):p?e("div",{className:"vprose prose-sm p-1",children:e(Wo,{components:{a:({node:t,...o})=>{const n=o.href||"";return n.includes("/store/objects/")?e(Vo,{topLevelNav:!0,href:n,className:"text-info",children:o.children}):e("a",{...o,target:"_blank",rel:"noopener noreferrer"})},p:({node:t,...o})=>e("p",{...o,className:"my-0"}),pre:({node:t,...o})=>e("pre",{...o,className:"my-2 p-2 rounded"}),code:({node:t,className:o,children:n,...a})=>{const r=/language-(\w+)/.exec(o||"");return e("code",{...a,className:r?"text-muted":"px-1.5 py-0.5 rounded",children:n})},h1:({node:t,...o})=>e("h1",{...o,className:"font-bold text-2xl my-2"}),h2:({node:t,...o})=>e("h2",{...o,className:"font-bold text-xl my-2"}),h3:({node:t,...o})=>e("h3",{...o,className:"font-bold text-lg my-2"}),li:({node:t,...o})=>e("li",{...o})},children:a})}):e("pre",{className:"text-wrap bg-muted text-muted p-2",children:a})})]}):e("div",{className:"px-2",children:e("div",{children:c?"Extracting content...":"No content"})})});function bi({object:t}){const{client:o}=Qe(),[n,a]=d(),r=t.content,i=t.metadata&&t.metadata.type===ko.Image;return f(()=>{if(i){a(void 0);(async()=>{const e=r?.type&&si.includes(r.type);try{const n=await o.objects.getRendition(t.id,{format:bo.jpeg,generate_if_missing:!1,sign_url:!0});if("found"===n.status&&n.renditions?.length)a(n.renditions[0]);else if(e){const e=await o.files.getDownloadUrl(t.content.source);a(e.url)}}catch(n){if(e){const e=await o.files.getDownloadUrl(t.content.source);a(e.url)}}})()}},[t.id,i,r?.type,r?.source,o]),e("div",{className:"mb-4 px-2",children:n?e("img",{src:n,alt:t.name,className:"w-full object-contain"}):e(ut,{size:"md"})})}function wi({object:o}){const{t:n}=Vn(),{client:a}=Qe(),[r,i]=d(),[s,l]=d(),[c,u]=d(!0),p=o.content,m=o.metadata?.type===ko.Video,g=o.metadata,h=g?.renditions||[],v=h.find(e=>"video/mp4"===e.content.type)||h.find(e=>"video/webm"===e.content.type),y=p?.type&&li.includes(p.type),b=h.find(e=>e.name===No);return f(()=>{i(void 0),l(void 0),u(!0)},[o.id]),f(()=>{(async()=>{if(b?.content?.source)try{const e=await a.files.getDownloadUrl(b.content.source);l(e.url)}catch(e){console.error("Failed to load poster image",e)}})()},[b,a]),f(()=>{if(m&&(v?.content?.source||y)){(async()=>{try{let e;v?.content?.source?e=await a.files.getDownloadUrl(v.content.source):y&&p?.source&&(e=await a.files.getDownloadUrl(p.source)),e&&i(e.url)}catch(e){console.error("Failed to get video URL",e)}finally{u(!1)}})()}else u(!1)},[m,v,y,p?.source,a]),e("div",{className:"mb-4 px-2 w-full h-full",children:v||y?c?e("div",{className:"flex justify-center items-center h-[400px]",children:e(ut,{size:"md"})}):r?e("video",{src:r,poster:s,controls:!0,className:"w-full h-full object-contain",children:"Your browser does not support the video tag."}):e("div",{className:"flex justify-center items-center h-[400px] text-muted",children:"Failed to load video"}):e("div",{className:"flex justify-center items-center h-[400px] text-muted",children:t("div",{className:"text-center",children:[e("p",{children:n("store.noVideoRendition")}),e("p",{className:"text-sm mt-2",children:n("store.videoFormatRequired")})]})})})}function xi({object:o}){const{t:n}=Vn(),{client:a}=Qe(),[r,i]=d(),[s,l]=d(!0),c=o.content,u=o.metadata?.type===ko.Audio,p=o.metadata,m=(p?.renditions||[]).find(e=>e.name===So),g=c?.type&&ci.includes(c.type);return f(()=>{i(void 0),l(!0)},[o.id]),f(()=>{if(u&&(m?.content?.source||g)){(async()=>{try{let e;m?.content?.source?e=await a.files.getDownloadUrl(m.content.source):g&&c?.source&&(e=await a.files.getDownloadUrl(c.source)),e&&i(e.url)}catch(e){console.error("Failed to get audio URL",e)}finally{l(!1)}})()}else l(!1)},[u,m,g,c?.source,a]),e("div",{className:"mb-4 px-2",children:m||g?s?e("div",{className:"flex justify-center items-center h-[200px]",children:e(ut,{size:"md"})}):r?t("div",{className:"flex flex-col items-center gap-4",children:[e("audio",{src:r,controls:!0,className:"w-full max-w-2xl",children:"Your browser does not support the audio tag."}),p?.duration&&t("div",{className:"text-sm text-muted",children:["Duration: ",Ci(p.duration)]})]}):e("div",{className:"flex justify-center items-center h-[200px] text-muted",children:"Failed to load audio"}):e("div",{className:"flex justify-center items-center h-[200px] text-muted",children:t("div",{className:"text-center",children:[e("p",{children:n("store.noAudioRendition")}),e("p",{className:"text-sm mt-2",children:n("store.audioFormatRequired")})]})})})}function Ci(e){const t=Math.floor(e/3600),o=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${o.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${o}:${n.toString().padStart(2,"0")}`}function ki({object:o,handleCopyContent:n}){const{t:a}=Vn(),r=o.transcript,i=r?.text,s=r?.segments,l=i||(s?s.map(e=>e.text).join(" "):""),c=e=>{const t=Math.floor(e/3600),o=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${o.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${o}:${n.toString().padStart(2,"0")}`};return t("div",{className:"flex flex-col h-full",children:[e("div",{className:"flex justify-end items-center px-2 mb-2",children:l&&e(et,{variant:"ghost",size:"sm",title:"Copy transcript",onClick:()=>n(l,"text"),children:e(k,{className:"size-4"})})}),e("div",{className:"h-full} overflow-auto px-2",children:s&&s.length>0?e("div",{className:"space-y-2",children:s.map((o,n)=>t("div",{className:"flex gap-3 text-sm",children:[t("span",{className:"text-muted font-mono text-xs shrink-0 pt-0.5",children:[c(o.start),o.end&&` - ${c(o.end)}`]}),e("span",{className:"flex-1",children:o.text})]},n))}):i?e("pre",{className:"text-wrap bg-muted text-muted p-2 whitespace-pre-wrap",children:i}):e("div",{className:"text-muted",children:a("store.noTranscriptAvailable")})})]})}function Ti({object:n}){const[a,r]=d(!1),i=ui(n);return"xml"===i||"markdown"===i?t(o,{children:[e(et,{variant:"ghost",size:"sm",onClick:()=>r(!0),title:"Side by side view",children:e(Y,{className:"size-4"})}),a&&e(xt,{children:e(kr,{objectId:n.id,onClose:()=>r(!1)})})]}):null}function Ni({object:t,pdfRendition:o,officePdfUrl:n}){const{client:a}=Qe(),r=Xe(),{t:i}=Vn(),[s,l]=d(!1);return e("div",{className:"flex items-center gap-2",children:e(et,{variant:"ghost",size:"sm",onClick:async()=>{l(!0);try{let e=n;if(!e&&o?.content?.source){e=(await a.files.getDownloadUrl(o.content.source,`${t.name||"document"}.pdf`,"attachment")).url}e&&window.open(e,"_blank")}catch(e){console.error("Failed to download PDF:",e),r({status:"error",title:i("store.downloadFailed"),description:i("store.failedToDownloadPdf"),duration:5e3})}finally{l(!1)}},disabled:s,title:"Download PDF",children:s?e(ut,{size:"sm"}):e(T,{className:"size-4"})})})}function Si({object:t}){return e("div",{className:"h-full",children:e(Nr,{object:t,className:"h-full"})})}function Di({pdfRendition:o,officePdfUrl:n,officePdfConverting:a,officePdfError:r,onConvert:i}){const{t:s}=Vn();return a?t("div",{className:"flex flex-col justify-center items-center flex-1 gap-2",children:[e(ut,{size:"lg"}),e("span",{className:"text-muted",children:s("store.convertingToPdf")})]}):r?t("div",{className:"flex flex-col justify-center items-center flex-1 gap-2 text-destructive",children:[e(H,{className:"size-8"}),e("span",{children:r})]}):e("div",o?.content?.source?{className:"h-full",children:e(Nr,{source:o.content.source,className:"h-full"})}:n?{className:"h-full",children:e(Nr,{url:n,className:"h-full"})}:{className:"flex flex-col justify-center items-center flex-1 gap-2",children:e(et,{onClick:i,children:"Convert to PDF"})})}function Pi({progress:n,status:a,outputFormat:r}){const{t:i}=Vn(),s=Qr(a),l=Zr(a),c="xml"===r,d=null==n?.percent||isNaN(n.percent)?0:n.percent;return t("div",{className:"px-4 py-4",children:[n&&t("div",{className:"space-y-2",children:[t("div",{className:"flex flex-col gap-1",children:[e(Ai,{name:c?"Analyze Layouts":"Analyze Page",progress:n.pages}),c&&t(o,{children:[e(Ai,{name:"Extract Tables",progress:n.tables}),e(Ai,{name:"Describe Images",progress:n.images}),e(Ai,{name:"Process Visually",progress:n.visuals})]})]}),t("div",{className:"pt-2 text-sm text-muted",children:["Progress: ",d,"%",e("span",{className:"px-2",children:"•"}),e("span",{className:s,children:l}),n.started_at&&t(o,{children:[e("span",{className:"px-2",children:"•"}),t("span",{children:[((Date.now()-n.started_at)/1e3).toFixed(0)," sec. elapsed"]})]})]}),e(Ko,{percent:d})]}),!n&&t("div",{className:"flex items-center gap-2 text-muted",children:[e(ut,{size:"sm"}),e("span",{children:i("store.loadingProcessingStatus")})]})]})}function Ai({name:e,progress:o}){return t("div",{className:"flex gap-2 text-sm",children:[t("span",{className:"text-muted min-w-36",children:[e,":"]}),t("span",{children:[o.processed," of ",o.total]})]})}function Fi({isLoading:o=!1,counts:n=6}){return o?e("div",{className:"flex flex-wrap gap-2 justify-between",children:Array(n).fill(0).map((o,n)=>e("div",{className:"w-[15vw] animate-pulse",children:t(Ct,{className:"relative flex flex-col border h-fit",children:[e("div",{className:"h-48 bg-muted rounded-t-xl flex items-center justify-center text-muted",children:" "}),e(kt,{className:"bg-muted h-[2px]"}),t(Tt,{className:"p-2 flex flex-col",children:[t("div",{className:"flex flex-col overflow-hidden",children:[e("div",{className:"h-5 bg-muted rounded w-3/4 mb-2"}),e("div",{className:"h-4 bg-muted rounded w-1/2"})]}),e("div",{className:"text-xs text-muted w-full flex justify-end mt-2",children:e("div",{className:"h-3 bg-muted rounded w-1/4"})})]})]})},n))}):null}function zi({selection:o,document:n,onSelectionChange:a,onRowClick:r,highlightRow:i,previewObject:s,selectedObject:l}){const{client:c}=Qe(),[u,p]=d(void 0),[m,g]=d(void 0),[h,v]=d(void 0);f(()=>{n?.content&&Jr(c,n,p,g,v)},[n]);const y=i?.(n);return t(Ct,{className:`relative flex flex-col border h-fit w-full ${l?.id===n.id?"border-attention border-4":""} ${y?"border-blue-400 dark:border-blue-500 bg-blue-50/50 dark:bg-blue-900/20":""}`,onClick:()=>r&&r(n),children:[y&&e("div",{className:"absolute top-2 right-8 z-10",children:e(Q,{className:"size-4 text-blue-600 dark:text-blue-400"})}),o&&e("div",{className:"absolute top-2 left-2 z-10 flex flex-col items-center gap-1",children:e("input",{checked:o.isSelected(n.id),type:"checkbox",onChange:e=>{e.stopPropagation(),a(n,e)},onClick:e=>e.stopPropagation()})}),e("div",{className:"absolute top-1 right-1 z-10 flex flex-col items-center",children:e(et,{variant:"ghost",size:"sm",title:"Preivew Object",onClick:e=>{e.stopPropagation(),s?.(n.id)},children:e(Z,{className:"size-4 "+("ready"===h?"text-muted":"text-white")})})}),u&&"ready"==h?e("img",{src:u,alt:m,className:"w-auto h-48 object-cover rounded-t-xl"}):e("div",{className:"h-48 bg-gray-700 rounded-t-xl flex items-center justify-center text-muted",children:h}),e(kt,{className:"bg-gray-200 h-[2px]"}),t(Tt,{className:"p-2 flex flex-col",children:[t("div",{className:"flex flex-col overflow-hidden",children:[e(ot,{placement:"top",description:n.properties?.title??n.name,children:e("h3",{className:"text-start font-medium leading-none truncate",children:n.properties?.title??n.name})}),n?.type?.name?e(ot,{placement:"bottom",size:"xs",description:n?.type?.name,children:e("p",{className:"text-start text-xs text-muted truncate",children:n?.type?.name})}):e("p",{className:"text-xs text-muted",children:" "})]}),n.score&&t("div",{className:"text-xs text-muted w-full flex justify-end",children:["Score: ",n.score.toFixed(4)??"-"]})]})]})}function Ii(e){return`${e._id} (${e.count})`}function Ei(e){return`${e.name} (${e.count})`}function ji({search:t,buckets:o,name:n,placeholder:a,className:r}){const i=t.getFilterValue(n),s=o?.find(e=>JSON.stringify(e._id)===JSON.stringify(i));return e(Nt,{filterBy:"_id",className:r,isClearable:!0,optionLabel:Ii,options:o,value:s,onChange:e=>{t.setFilterValue(n,e?._id)},by:"_id",placeholder:a})}function _i({search:t,name:o,placeholder:n,className:a}){const[r,i]=d([]);return f(()=>{t.setFilterValue(o,r)},[r]),e(St,{className:a,value:r,onChange:i,placeholder:n})}class Ri{types;map={};constructor(e){this.types=e,e.sort((e,t)=>e.name.localeCompare(t.name));for(const t of e)this.map[t.id]=t}getType(e){return this.map[e]}getTypeLayout(e){const t=this.map[e];return t?t.table_layout:void 0}getTypeName(e){const t=this.map[e];return t?t.name:void 0}}const Oi=u({registry:void 0,isLoading:!1,load:()=>Promise.resolve(),reload:()=>Promise.resolve()});function Li({children:t}){const{store:o,project:n}=Qe(),[a,r]=d(),[i,s]=d(!1),l=m(!1),c=g(async()=>{if(n&&!l.current){l.current=!0,s(!0);try{const e=await o.types.catalog.list({layout:!0});r(new Ri(e))}catch(e){console.error("Failed to fetch types",e)}finally{s(!1),l.current=!1}}},[o,n]),u=g(async()=>(l.current=!1,c()),[c]);return f(()=>{r(void 0),l.current=!1},[n]),e(Oi.Provider,{value:{registry:a,isLoading:i,load:c,reload:u},children:t})}function Ui(){const e=p(Oi);return f(()=>{e.registry||e.isLoading||e.load()},[e.registry,e.isLoading]),e}function Mi(e){return`${e.name} (${e.count})`}function Vi({search:t,buckets:o,placeholder:n="Filter by Type",className:a}){const[r,i]=d([]),{registry:s}=Ui(),l=t.getFilterValue("type");f(()=>{if(s){const e=o.map(e=>{let t;return null==e._id?(e._id="Document",t="Document"):(t=s.getTypeName(e._id),t||(console.warn("Content Object Type not found",e._id),t=e._id)),{...e,name:t}});e.sort((e,t)=>e.name.localeCompare(t.name)),i(e)}},[o,s]);const c=r?.find(e=>e._id===l);return e(Nt,{filterBy:"name",className:a,isClearable:!0,optionLabel:Mi,options:r,value:c,onChange:e=>{t.setFilterValue("type",e?._id)},by:"_id",placeholder:n})}function Wi({buckets:o,name:n,placeholder:a}){const r=o.map(e=>({label:`(${e.count})`,value:e._id}));return{name:n,placeholder:a||`${n.charAt(0).toUpperCase()+n.slice(1)}`,options:r,type:"select",labelRenderer:n=>{const a=o.find(e=>e._id===n),r=a?.name||n;let i="success";if(a?.status)switch(a.status){case Do.published:i="success";break;case Do.archived:i="destructive";break;case Do.code:i="info"}const s=a?.version&&a?.status?`v${a.version} ${a.status!=Do.unknown?a.status:""}`:a?.status||(a?.version?`v${a.version}`:"");return t("div",{className:"w-full flex items-center justify-between",children:[t("div",{className:"flex flex-row flex-wrap items-center gap-2 min-w-0 flex-1",children:[e("span",{className:"text-sm truncate",children:r}),s&&e(Dt,{variant:i,className:"text-xs w-fit",children:s})]}),(a?.count??0)>0&&t("span",{className:"ml-2 text-xs shrink-0",children:["(",a.count,")"]})]})},filterBy:(e,t)=>{const n=o.find(t=>t._id===e);return(n?.name||e).toLowerCase().includes(t.toLowerCase())}}}function qi({buckets:e,name:t,placeholder:o,type:n,multiple:a}){return function({buckets:e,name:t,placeholder:o,type:n="select",multiple:a=!1}){return{name:t,options:e.map(e=>({label:Ii(e),value:e._id})),type:n,multiple:a,placeholder:`${o??`${t.charAt(0).toUpperCase()+t.slice(1)}`}`,allowCreate:!1}}({buckets:e,name:t,placeholder:o,type:n,multiple:a})}function Bi({buckets:o,typeRegistry:n,type:a="select",multiple:r=!1}){const i=new Map;n||console.warn("Type names cannot be resolved"),o.forEach(e=>{let t,o=e._id;null==e._id?(o="Document",t="Document"):(t=n?.getTypeName(e._id),t||(console.warn("Content Object Type not found",e._id),t=e._id)),i.set(o,{name:t,count:e.count})});return{name:"types",placeholder:"Types",type:a,multiple:r,options:o.map(e=>{const t=e._id,o=t||"Document",n=i.get(o);return{value:t,label:n?`${n.name} (${n.count})`:`Unknown (${e.count})`}}),labelRenderer:o=>{const n=i.get(o);return n?t("div",{className:"w-full flex items-center",children:[e("span",{className:"text-sm truncate",children:n.name}),t("span",{className:"ml-2 text-xs",children:["(",n.count,")"]})]}):(console.warn(`Type data not found for ${o}`),o)},filterBy:(e,t)=>{const o=i.get(e);return o?o.name.toLowerCase().includes(t.toLowerCase()):(console.warn(`Type name not found for ${e}`),!1)}}}const $i={},Gi={},Ki={};function Hi(e,t,o){let n=e[t];return n||(n=o().catch(o=>{throw delete e[t],o}),e[t]=n),n}function Ji(e){const{client:t}=Qe();return it(()=>Hi($i,e,()=>t.users.retrieve(e)),[e])}function Yi(e){const{client:t}=Qe();return it(()=>Hi(Gi,e,()=>t.iam.groups.retrieve(e)),[e])}function Qi(e){const{client:t}=Qe();return it(()=>Hi(Ki,e,()=>t.apikeys.retrieve(e)),[e])}function Zi(){return e("div",{className:"size-8"})}function Xi({showTitle:o=!1,size:n="md"}){const{t:a}=Vn();return e(ds,{title:a("user.systemUser"),description:a("user.systemUserDescription"),children:t("div",{className:"flex gap-2 items-center",children:[e(Pt,{src:"/icon.svg",size:n}),o&&e("div",{className:"text-sm font-semibold pl-2",children:a("user.systemUser")})]})})}function es({showTitle:o=!1,size:n="md"}){const{t:a}=Vn();return e(ds,{title:a("user.allProjectMembers"),description:a("user.allProjectMembersDescription"),children:t("div",{className:"flex gap-2 items-center",children:[e(X,{className:"size-4",size:n}),o&&e("div",{className:"text-sm font-semibold pl-2",children:a("user.allProjectMembers")})]})})}function ts({accountId:n,showTitle:a=!1,size:r="md"}){const{t:i}=Vn(),s=n.split(":")[0],l=n.split(":")[1],c=t(o,{children:[e("div",{children:i("user.serviceAccountDescription")}),t("div",{className:"text-muted text-sm",children:[e("span",{className:"font-semibold",children:"Type:"})," ",s]}),t("div",{className:"text-muted text-sm",children:[e("span",{className:"font-semibold",children:"ID:"})," ",l]})]});return e(ds,{title:i("user.serviceAccount"),description:c,children:t("div",{className:"flex flex-row items-center gap-2",children:[e(Pt,{src:"/cloud.svg",name:"SA",color:"bg-amber-500",className:"px-[5px] text-white",size:r}),a&&t("div",{className:"text-sm font-semibold pl-2 truncate",children:[i("user.serviceAccount")," : ~",l.slice(-6)]})]})})}function os({email:n,showTitle:a=!1,size:r="md"}){const{t:i}=Vn(),s=t(o,{children:[e("div",{children:i("user.serviceAccountDescription")}),t("div",{className:"text-muted text-sm",children:[e("span",{className:"font-semibold",children:"Email:"})," ",n]})]});return e(ds,{title:"Email Agent",description:s,children:t("div",{className:"flex items-center gap-2",children:[t("div",{className:"flex items-center -space-x-2",children:[e(Pt,{src:"/cloud.svg",color:"bg-amber-500",className:"px-[5px] text-white border-2 border-white dark:border-gray-800",size:r}),e(Pt,{name:n,size:r,className:"border-2 border-white dark:border-gray-800"})]}),a&&t("div",{className:"text-sm font-semibold truncate",children:[i("user.agentOnBehalfOf")," : ",n]})]})})}function ns({agentId:n,onBehalfOfType:a,onBehalfOfId:r,showTitle:i=!1,size:s="md",isScheduleAgent:l=!1}){const{t:c}=Vn(),d="user"===a&&r,u="apikey"===a&&r,p=Ji(r||""),m=Qi(r||""),g=d?p.data:void 0,h=u?m.data:void 0,f=n.slice(-6),v=g?c("user.agentOnBehalfOf"):h?c("user.agentOnBehalfOfApiKey"):c("user.serviceAccount")+`~${f}`,y=l?c("user.schedule",{title:v}):v,b=t("div",{className:"space-y-2",children:[g&&e(o,{children:t("div",{className:"flex items-center gap-2",children:[e(Pt,{src:g.picture,name:g.name,size:"sm"}),t("div",{children:[e("div",{className:"font-medium",children:g.name||g.email}),g.email&&g.name&&e("div",{className:"text-xs text-muted",children:g.email})]})]})}),h&&e(o,{children:t("div",{children:[e("div",{className:"font-medium",children:h.name}),t("div",{className:"text-xs text-muted-foreground",children:["Key ID: ",h.id]})]})}),!g&&!h&&t(o,{children:[e("div",{children:c("user.serviceAccountDescription")}),t("div",{className:"text-gray-800 dark:text-gray-500 text-sm",children:[e("span",{className:"font-semibold",children:"ID:"})," ",n]})]})]});return e(ds,{title:y,description:b,children:t("div",{className:"flex items-center gap-2",children:[t("div",{className:"flex items-center -space-x-2",children:[e(Pt,{src:"/cloud.svg",color:"bg-amber-500",className:"px-[5px] text-white border-2 border-white dark:border-gray-800",size:s}),g&&e(Pt,{src:g.picture,name:g.name,size:s,className:"border-2 border-white dark:border-gray-800"}),h&&e(Pt,{name:"API",color:"bg-gray-400",size:s,className:"border-2 border-white dark:border-gray-800"})]}),i&&e("div",{className:"text-sm font-semibold truncate",children:g?`Agent (${g.name||g.email})`:h?`Agent (${h.name})`:v})]})})}function as({title:t="Error",error:o,showTitle:n=!1,size:a="md"}){return e(is,{title:t,message:"string"==typeof o?o:o.message,color:"bg-red-500",showTitle:n,size:a})}function rs({userRef:t,showTitle:o=!1,size:n="md"}){const{t:a}=Vn();if(!t)return e(is,{title:a("user.unknownUser"),message:a("user.unknownUserDescription"),showTitle:o,size:n});const r=t.split(":"),i=r[0];switch(i){case Po.User:return e(ls,{userId:r[1],showTitle:o,size:n});case Po.Group:return e(ss,{userId:r[1],showTitle:o,size:n});case"system":return e(Xi,{showTitle:o,size:n});case Po.ServiceAccount:return e(ts,{accountId:r.slice(1).join(":"),showTitle:o,size:n});case Po.Agent:{let t,a,i;return"agent"===r[1]?(t=r.slice(2,5).join(":"),a=r[5],i=r[6]):(t=r.slice(1,4).join(":"),a=r[4],i=r[5]),e(ns,{agentId:t,onBehalfOfType:a,onBehalfOfId:i,showTitle:o,size:n})}case Po.Schedule:{const t="agent"===r[2]?r.slice(3,6).join(":"):"unknown-agent",a=r[6],i=r[7];return e(ns,{agentId:t,onBehalfOfType:a,onBehalfOfId:i,showTitle:o,size:n,isScheduleAgent:!0})}case"email":return e(os,{email:r[1],showTitle:o,size:n});case Po.ApiKey:return e(cs,{keyId:r[1],size:n,showTitle:o});case"project":if("*"===r[1])return e(es,{showTitle:o,size:n});break;default:return e(as,{title:a("user.unknownUser"),error:`Invalid user ref type: ${i}`,showTitle:o,size:n})}}function is({title:o,message:n,color:a,size:r="md",showTitle:i=!1}){return e(ds,{title:o,description:n,children:t("div",{className:"flex flex-row items-center gap-2",children:[e(Pt,{color:a,size:r}),i&&e("div",{className:"text-sm font-semibold pl-1",children:o})]})})}function ss({userId:o,showTitle:n=!1,size:a="md"}){const{t:r}=Vn(),{data:i,error:s}=Yi(o);if(s)return e(as,{title:r("user.failedToFetchGroup"),error:s,showTitle:n,size:a});if(!i)return e(Zi,{});const l=t("div",{className:"space-y-1",children:[i.description&&e("div",{className:"text-sm",children:i.description}),e("div",{className:"text-xs text-muted-foreground",children:r("user.groupId",{id:i.id})}),i.tags&&i.tags.length>0&&e("div",{className:"flex flex-wrap gap-1",children:i.tags.map(t=>e("span",{className:"px-1.5 py-0.5 bg-muted rounded text-xs",children:t},t))})]});return e(ds,{title:i.name||r("user.unnamedGroup"),description:l,children:t("div",{className:"flex flex-row items-center gap-2",children:[e(ee,{className:"size-6 text-indigo-500",size:a}),n&&e("div",{className:"text-sm font-semibold pl-2",children:i.name||r("user.unnamedGroup")})]})})}function ls({userId:o,showTitle:n=!1,size:a="md"}){const{t:r}=Vn(),{data:i,error:s}=Ji(o);if(s)return e(as,{title:r("user.failedToFetchUser"),error:s,showTitle:n,size:a});if(!i)return e(Zi,{});const l=e("div",{className:"truncate",title:i.email,children:i.email});return e(ds,{title:i.name||i.email||i.username||r("user.unknown"),description:l,children:t("div",{className:"flex flex-row items-center gap-2",children:[e(Pt,{src:i.picture,name:i.name,color:"bg-indigo-500",size:a}),n&&e("div",{className:"text-sm font-semibold pl-2",children:i.name||i.email||i.username||r("user.unknown")})]})})}function cs({keyId:o,showTitle:n=!1,size:a="md"}){const{t:r}=Vn(),{data:i,error:s}=Qi(o);if(s)return e(as,{title:r("user.failedToFetchApiKey"),error:s,showTitle:n,size:a});if(!i)return e(Zi,{});const l=r("user.privateKey"),c=e(Pt,{name:"PK",color:"bg-pink-500",size:a}),d=t(At,{className:"dark:bg-gray-800 dark:text-gray-200 table-fixed w-full",children:[t("tr",{children:[e("td",{className:"font-semibold w-20",children:r("user.key")}),e("td",{className:"truncate max-w-0",children:i?.name})]}),t("tr",{children:[e("td",{className:"font-semibold w-20",children:r("user.account")}),e("td",{className:"truncate max-w-0",children:i?.account})]}),t("tr",{children:[e("td",{className:"font-semibold w-20",children:r("user.project")}),e("td",{className:"truncate max-w-0",children:i?.project.name})]})]});return e(ds,{title:l,description:d,children:t("div",{className:"flex flex-row items-center gap-2",children:[c,n&&e("div",{className:"text-sm font-semibold",children:i?.name||i?.account||i?.project.name||r("user.unknown")})]})})}function ds({title:o,description:n,children:a}){return t(nt,{hover:!0,children:[e(at,{className:"cursor-pointer flex items-center inline-block",children:e("div",{children:a})}),e(rt,{align:"center",sideOffset:8,side:"right",children:t("div",{className:"flex flex-col gap-1 rounded-md shadow-md p-2",children:[e("div",{className:"text-md font-semibold",children:o}),n]})})]})}function us({buckets:o,name:n,placeholder:a}){return function({buckets:o,name:n,placeholder:a}){const r=o.map(e=>({value:e._id,label:`(${e.count})`}));return{name:n,placeholder:a||`${n.charAt(0).toUpperCase()+n.slice(1)}`,options:r,labelRenderer:n=>{if("Unknown User"===n||!n){const e=o.find(e=>e._id===n);return`Unknown User (${e?.count||0})`}const a=o.find(e=>e._id===n);return t("div",{className:"flex items-center w-full gap-2",children:[e("div",{className:"flex-1 min-w-0 flex items-center truncate",children:e(rs,{userRef:n,showTitle:!0,size:"sm"})}),t("span",{className:"text-muted-foreground flex-shrink-0",children:["(",a?.count||0,")"]})]})}}}({buckets:o,name:n,placeholder:a})}function ps({search:t,buckets:o,placeholder:n="All Environments",className:a}){const{client:r}=Qe(),[i,s]=d([]),l=t.getFilterValue("environment");f(()=>{if(r){const e=o.map(async e=>{let t;return await r.environments.retrieve(e._id).then(e=>{t=e.name}).catch(()=>{t=`${e._id} (deleted)`}),t||(t=e._id),{...e,name:t}});Promise.all(e).then(e=>{e.sort((e,t)=>e.name.localeCompare(t.name)),s(e)})}},[o,r]);const c=i?.find(e=>e._id===l);return e(Nt,{filterBy:"name",className:a,isClearable:!0,optionLabel:Ei,options:i,value:c,onChange:e=>{t.setFilterValue("environment",e?._id)},by:"_id",placeholder:n})}function ms(o){const n=[];if(n.push({name:"run_ids",placeholder:"Run ID",type:"text",multiple:!1}),o.interactions){const e=Wi({buckets:o.interactions||[],name:"interaction",placeholder:"Interactions"});n.push(e)}if(o.environments){const a=function({buckets:o,name:n}){const a=o.map(e=>({label:`(${e.count})`,value:e._id}));return{name:"environment",placeholder:n.charAt(0).toUpperCase()+n.slice(1),options:a,type:"select",labelRenderer:n=>{const a=o.find(e=>e._id===n);return t("div",{className:"w-full flex items-center",children:[e("span",{className:"text-sm truncate",children:a?.name||n}),t("span",{className:"ml-2 text-xs",children:["(",a?.count||0,")"]})]})},filterBy:(e,t)=>{const n=o.find(t=>t._id===e);return(n?.name||e).toLowerCase().includes(t.toLowerCase())}}}({buckets:o.environments||[],name:"environments"});n.push(a)}if(n.push({name:"tags",placeholder:"Tags",type:"stringList",multiple:!0}),o.models){const e=qi({buckets:o.models||[],name:"model"});n.push(e)}if(o.statuses){const e=qi({buckets:o.statuses||[],name:"status"});n.push(e)}if(o.finish_reason){const e=qi({buckets:o.finish_reason.map(e=>({...e,_id:null===e._id?"none":e._id})),name:"finish_reason",placeholder:"Finish Reason"});n.push(e)}if(o.created_by){const e=us({buckets:o.created_by||[],name:"created_by",placeholder:"Created By"});n.push(e)}n.push({name:"start",placeholder:"Date After",type:"date",multiple:!1});n.push({name:"end",placeholder:"Date Before",type:"date",multiple:!1});n.push({name:"workflow_run_ids",placeholder:"Workflow Run ID",type:"text",multiple:!1});return n.push({name:"workflow_ids",placeholder:"Workflow ID",type:"text",multiple:!1}),n}function gs(e){return t=>{0!==t.length?(e.clearFilters(!1,!1),t.forEach(t=>{if(t.value&&t.value.length>0){const o=t.name;let n;n="stringList"===t.type?t.value.map(e=>"string"==typeof e?e:e.value):t.multiple?Array.isArray(t.value)?t.value.map(e=>"object"==typeof e&&e.value?e.value:e):["object"==typeof t.value&&t.value.value?t.value.value:t.value]:Array.isArray(t.value)&&t.value[0]&&"object"==typeof t.value[0]?t.value[0].value:Array.isArray(t.value)&&t.value[0]?t.value[0]:t.value,"run_ids"!==o&&"workflow_run_ids"!==o&&"workflow_ids"!==o||Array.isArray(n)||(n=[n]),e.query[o]=n}}),e.search()):e.clearFilters(!0,!1)}}function hs({facets:o,search:n,actions:a,selectionCount:r}){const[i,s]=d([]),l=ms(o),c=gs(n);return e(Ft,{filterGroups:l,filters:i,setFilters:e=>{const t="function"==typeof e?e(i):e;s(t),c(t)},children:t("div",{className:"gap-2 items-center w-full",children:[t("div",{className:"flex justify-between mb-1",children:[e(zt,{}),t("div",{className:"flex justify-end",children:[!r&&e("div",{className:"flex items-center justify-between px-2 py-1",children:e("div",{className:"text-sm text-muted",children:n.initialized?`${n.totalCount} calls`:"Loading calls..."})}),a&&a.length>0?e("div",{className:"flex items-center gap-2 mb-1 mr-2",children:a.map((t,o)=>e("div",{children:t},o))}):null,e(et,{onClick:()=>{n.search()},variant:"outline",title:"Refresh",children:e(te,{className:"size-5"})})]})]}),i.length>0&&t("div",{className:"flex items-center gap-2 mb-1",children:[e(It,{}),e(Et,{})]})]})})}function fs(e){const t=[];if(t.push({placeholder:"Workflow Name or Workflow Run ID",name:"name",type:"text",options:[]}),e.status){const o=qi({buckets:e.status||[],name:"status",placeholder:"Status"});t.push(o)}if(e.initiated_by){const o=us({buckets:e.initiated_by||[],name:"initiated_by",placeholder:"Initiated By"});t.push(o)}t.push({name:"start",placeholder:"Date After",type:"date",multiple:!1});t.push({name:"end",placeholder:"Date Before",type:"date",multiple:!1});return t.push({name:"has_reported_errors",placeholder:"Has Reported Errors",type:"select",multiple:!1,options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]}),t}function vs(e){return t=>{0!==t.length?(e.clearFilters(!1),t.forEach(t=>{if(t.value&&t.value.length>0){const o=t.name;let n;if(n="stringList"===t.type?t.value.map(e=>"string"==typeof e?e:e.value):t.multiple?Array.isArray(t.value)?t.value.map(e=>"object"==typeof e&&e.value?e.value:e):["object"==typeof t.value&&t.value.value?t.value.value:t.value]:Array.isArray(t.value)&&t.value[0]&&"object"==typeof t.value[0]?t.value[0].value:Array.isArray(t.value)&&t.value[0]?t.value[0]:t.value,"name"===o)e.query.search_term=n,e.query.name=n;else if("has_reported_errors"===o){const t=Array.isArray(n)?n[0]:n;"true"!==t&&"false"!==t||(e.query[o]="true"===t)}else e.query[o]=n}}),e.search()):e.clearFilters()}}function ys({facets:o,search:n}){const[a,r]=d([]),i=fs(o),s=vs(n);return e(Ft,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;r(t),s(t)},children:t("div",{className:"flex gap-2 items-center",children:[e(zt,{}),e(It,{}),e(Et,{})]})})}function bs(e){return Array.isArray(e)?e:[]}function ws(e){const{registry:t}=Ui(),o=[];if(o.push({placeholder:"ID",name:"id",type:"text",options:[]}),o.push({placeholder:"Name",name:"name",type:"text",options:[]}),e.type){const n=Bi({buckets:bs(e.type),typeRegistry:t,type:"select",multiple:!0});o.push(n)}if(e.status){const t=qi({buckets:bs(e.status),name:"status",placeholder:"Status",type:"select",multiple:!0});o.push(t)}return e.tags&&o.push({name:"tags",placeholder:"Tags",type:"stringList",options:bs(e.tags).map(e=>({label:e._id,value:e._id}))}),o.push({name:"created_at",placeholder:"Created Date",type:"date",multiple:!0,options:[]}),o.push({name:"updated_at",placeholder:"Updated Date",type:"date",multiple:!0,options:[]}),o}function xs(e){return t=>{0!==t.length?(e.clearFilters(!1),t.forEach(t=>{if(t.value&&t.value.length>0){const o=t.name;let n;if("date"===t.type&&t.multiple){if(Array.isArray(t.value)&&t.value.length>0)if(1===t.value.length){const e="object"==typeof t.value[0]?t.value[0].value:t.value[0];n={gte:e,lte:e}}else if(2===t.value.length){n={gte:"object"==typeof t.value[0]?t.value[0].value:t.value[0],lte:"object"==typeof t.value[1]?t.value[1].value:t.value[1]}}}else if(t.multiple)if(Array.isArray(t.value))n=t.value.map(e=>"object"==typeof e&&e.value?e.value:e);else{n=["object"==typeof t.value&&t.value.value?t.value.value:t.value]}else n=Array.isArray(t.value)&&t.value[0]&&"object"==typeof t.value[0]?t.value[0].value:Array.isArray(t.value)&&t.value[0]?t.value[0]:t.value;"name"===o?e.query.name=n:"id"===o?e.query.id=n:e.query[o]=n}}),e.search()):e.clearFilters()}}function Cs({facets:o,search:n}){const[a,r]=d([]),i=ws(o),s=xs(n),l=jt();return e(Ft,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;r(t),s(t)},inModal:l,children:t("div",{className:"flex gap-2 items-center",children:[e(zt,{}),e(It,{}),e(Et,{})]})})}function ks(e){const t=[];t.push({name:"name",placeholder:"Name",type:"text",multiple:!1});t.push({name:"prompt",placeholder:"Prompt Name",type:"text",multiple:!1});t.push({name:"model",placeholder:"Model",type:"text",multiple:!1});return t.push({name:"tags",placeholder:"Tags",type:"stringList",multiple:!0}),t}function Ts(e){return t=>{0!==t.length?(e.clearFilters(!1,!1),t.forEach(t=>{if(t.value&&t.value.length>0){const o=t.name;let n;n="stringList"===t.type?t.value.map(e=>"string"==typeof e?e:e.value):t.multiple?Array.isArray(t.value)?t.value.map(e=>"object"==typeof e&&e.value?e.value:e):["object"==typeof t.value&&t.value.value?t.value.value:t.value]:Array.isArray(t.value)&&t.value[0]&&"object"==typeof t.value[0]?t.value[0].value:Array.isArray(t.value)&&t.value[0]?t.value[0]:t.value,e.query[o]=n}}),e.search(!0)):e.clearFilters(!0,!0)}}function Ns({facets:o,search:n}){const[a,r]=d([]),i=ks(),s=Ts(n);return e(Ft,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;r(t),s(t)},children:t("div",{className:"flex gap-2 items-center",children:[e(zt,{}),e(It,{}),e(Et,{})]})})}function Ss(e){const t=[];if(t.push({name:"name",placeholder:"Name",type:"text",multiple:!1}),e.role&&e.role.length>0){const o={name:"role",placeholder:"Role",type:"select",options:e.role.map(e=>({label:e._id,value:e._id,count:e.count}))};t.push(o)}return t}function Ds(e){return t=>{0!==t.length?(e.clearFilters(!1,!1),t.forEach(t=>{if(t.value&&t.value.length>0){const o=t.name;let n;n="stringList"===t.type?t.value.map(e=>"string"==typeof e?e:e.value):t.multiple?Array.isArray(t.value)?t.value.map(e=>"object"==typeof e&&e.value?e.value:e):["object"==typeof t.value&&t.value.value?t.value.value:t.value]:Array.isArray(t.value)&&t.value[0]&&"object"==typeof t.value[0]?t.value[0].value:Array.isArray(t.value)&&t.value[0]?t.value[0]:t.value,e.query[o]=n}}),e.search()):e.clearFilters(!0,!1)}}function Ps({facets:o,search:n}){const[a,r]=d([]),i=Ss(o),s=Ds(n);return e(Ft,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;r(t),s(t)},children:t("div",{className:"flex gap-2 items-center",children:[e(zt,{}),e(It,{}),e(Et,{})]})})}function As(e){const{registry:t}=Ui(),o=[];if(o.push({name:"name",placeholder:"Name",type:"text",multiple:!1}),t){const e=t.types.map(e=>({label:e.name,value:e.id})),n={name:"types",placeholder:"Type",type:"select",multiple:!0,options:e,filterBy:(t,o)=>{const n=e.find(e=>e.value===t);return n?.label?.toLowerCase().includes(o.toLowerCase())??!1}};o.push(n)}return o}function Fs(e){return t=>{0!==t.length?(e.clearFilters(!1),t.forEach(t=>{if(t.value&&t.value.length>0){const o=t.name;let n;n="stringList"===t.type?t.value.map(e=>"string"==typeof e?e:e.value):t.multiple?Array.isArray(t.value)?t.value.map(e=>"object"==typeof e&&e.value?e.value:e):["object"==typeof t.value&&t.value.value?t.value.value:t.value]:Array.isArray(t.value)&&t.value[0]&&"object"==typeof t.value[0]?t.value[0].value:Array.isArray(t.value)&&t.value[0]?t.value[0]:t.value,e.query[o]=n}}),e.search()):e.clearFilters(!0)}}function zs({facets:o,search:n}){const[a,r]=d([]),i=As(),s=Fs(n);return e(Ft,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;r(t),s(t)},children:t("div",{className:"flex gap-2 items-center",children:[e(zt,{}),e(It,{}),e(Et,{})]})})}function Is(e){const t=[];return t.push({name:"id",placeholder:"Agent Run ID",type:"text",multiple:!1}),t.push(Wi({buckets:e.interactions||[],name:"interaction",placeholder:"Interaction"})),t.push(qi({buckets:e.statuses||[],name:"status",placeholder:"Status"})),t.push(us({buckets:e.initiated_by||[],name:"initiated_by",placeholder:"Initiated By"})),t.push({name:"start",placeholder:"Started After",type:"date",multiple:!1}),t.push({name:"end",placeholder:"Started Before",type:"date",multiple:!1}),t}function Es(e){return t=>{e.clearFilters(!1,!1),t.forEach(t=>{if(t.value&&t.value.length>0){const o=t.name;let n;n=t.multiple?Array.isArray(t.value)?t.value.map(e=>"object"==typeof e&&e.value?e.value:e):["object"==typeof t.value&&t.value.value?t.value.value:t.value]:Array.isArray(t.value)&&t.value[0]&&"object"==typeof t.value[0]?t.value[0].value:Array.isArray(t.value)&&t.value[0]?t.value[0]:t.value,e.query[o]=n}}),e.search()}}function js({facets:o,search:n,selectionCount:a,actions:r}){const[i,s]=d([]),l=m(!1),u=m("undefined"!=typeof window&&Boolean(new URLSearchParams(window.location.search).get("filters"))),p=Is(o),g=c(()=>Es(n),[n]);f(()=>{l.current?u.current?u.current=!1:g(i):l.current=!0},[i,g]);return e(Ft,{filterGroups:p,filters:i,setFilters:s,children:t("div",{className:"gap-2 items-center w-full",children:[t("div",{className:"flex justify-between mb-1",children:[e(zt,{}),t("div",{className:"flex justify-end",children:[!a&&e("div",{className:"flex items-center justify-between px-2 py-1",children:e("div",{className:"text-sm text-muted-foreground",children:n.initialized?`${n.totalCount} agent runs`:"Loading agent runs..."})}),r&&r.length>0?e("div",{className:"flex items-center gap-2 mb-1 mr-2",children:r.map((t,o)=>e("div",{children:t},o))}):null,e(et,{onClick:()=>{n.search()},variant:"outline",title:"Refresh",children:e(te,{className:"size-5"})})]})]}),i.length>0&&t("div",{className:"flex items-center gap-2 mb-1",children:[e(It,{}),e(Et,{})]})]})})}class _s{object;objects;setState;collectionId;singleSelection=!1;constructor(e,t,o,n){this.object=e,this.objects=o,this.setState=n,this.singleSelection=0===Object.keys(this.objects).length,this.collectionId=t}isSingleSelection(){return this.singleSelection}hasSelection(){return void 0!==this.object||0!==this.size()}size(){return Object.keys(this.objects).length}getObjectIds(){return Object.keys(this.objects)}getObjectId(){return this.object?.id}clone(){return new _s(this.object,this.collectionId,this.objects,this.setState)}add(e){this.objects[e.id]=e,this.singleSelection=0===Object.keys(this.objects).length,this.setState(this.clone())}remove(e){delete this.objects[e],this.singleSelection=0===Object.keys(this.objects).length,this.setState(this.clone())}addAll(e){for(const t of e)this.objects[t.id]=t;this.setState(this.clone())}isSelected(e){return void 0!==this.objects[e]}removeAll(){this.objects={},this.singleSelection=!0,this.setState(this.clone())}}const Rs=u(void 0);function Os(){const e=p(Rs);if(!e)throw new Error("useObjectSelection must be used within a ObjectSelectionProvider");return e}function Ls(){return p(Rs)}function Us({value:t,collectionId:o,children:n}){const[a,r]=d();return f(()=>{const e=new _s(t,o,{},r);r(e)},[t]),a&&e(Rs.Provider,{value:a,children:n})}Uo.extend(sn),Uo.extend(rn);const Ms={string(t,o){let n=[];if(t){const e=t.get("slice");e&&n.push(t=>t.slice(parseInt(e)));const o=t.get("max_length");o&&n.push(e=>e.slice(0,parseInt(o))),t.has("upper")&&n.push(e=>e.toUpperCase()),t.has("lower")&&n.push(e=>e.toLowerCase()),t.has("capitalize")&&n.push(e=>e[0].toUpperCase()+e.substring(1)),t.has("ellipsis")&&n.push(e=>e+"...")}return(t,o)=>{let a;if(t){if(a=String(t),n.length>0)for(const e of n)a=e(a)}else a="";return e("td",{children:a},o)}},fileSize:(t,o)=>(t,o)=>{let n="";if(t){const e=Number(t);if(isNaN(e))n=String(t);else{const t=["Bytes","KB","MB","GB","TB"];if(0===e)n="0 Bytes";else{const o=Math.floor(Math.log(e)/Math.log(1024));n=`${(e/Math.pow(1024,o)).toFixed(2)} ${t[o]}`}}}return e("td",{children:n},o)},number(t,o){let n,a;t&&(n=t.get("currency")||void 0,a=t.get("decimals")||void 0);const r=a?parseInt(a):2;return(t,o)=>{let a=new Intl.NumberFormat("en-US",{style:n?"currency":"decimal",currency:n,maximumFractionDigits:r}).format(t);return e("td",{children:a},o)}},objectId(o,n){let a=[],r=!1;if(o){const e=o.get("slice");e&&(r=!0,a.push(t=>t.slice(parseInt(e))))}return(o,i)=>{const s=a.reduce((e,t)=>t(e),o.id);return t("td",{className:"flex justify-between items-center gap-2",children:[r?"~":"",s,e(et,{variant:"ghost",alt:"Preview Object",onClick:e=>{e.stopPropagation(),n?.(o.id)},children:e(Z,{className:"size-4"})})]},i)}},objectName(t,o){let n="title";return t&&(n=t.get("title")||"title"),(t,o)=>e("td",{children:t.properties?.[n]||t.name||jr(t.id)},o)},objectLink(o,n){const a=[];return a.push(e=>e.slice(-7)),(o,r)=>{const i=a.reduce((e,t)=>t(e),o.id);return t("td",{className:"flex justify-between items-center gap-2 max-w-48",children:["~",i,e(et,{variant:"ghost",alt:"Preview Object",onClick:e=>{e.stopPropagation(),n?.(o.id)},children:e(Z,{className:"size-4"})})]},r)}},typeLink:(t,o)=>(t,o)=>e("td",{children:t?.name||"n/a"},o),revision:(o,n)=>(o,n)=>{const a=o?.revision;return e("td",a?{children:t("div",{className:"flex flex-col gap-0.5",children:[a.root&&t("div",{className:"flex items-center gap-1",children:[t("span",{className:"text-xs text-muted font-mono",children:["root: ~",a.root.slice(-7)]}),e("a",{href:`/store/objects/${a.root}`,onClick:e=>e.stopPropagation(),children:e(P,{className:"size-3 text-muted"})})]}),a.label&&t("span",{className:"text-xs text-muted",children:["label: ",a.label]})]})}:{},n)},date(t,o){let n="format",a="LLL";if(t){const e=t.get("localized");if(e)a=e;else{const e=t.get("relative");e&&(n=e,a=void 0)}}return(t,o)=>e("td",{children:Uo(t)[n](a)},o)}},Vs=Ms.string();function Ws(e,t){let o=e;if(!o)return;if(!t.length)return o;const n=t.length-1;for(let e=0;e<n;e++)if(o=o[t[e]],!o)return;return o[t[n]]}function qs(e){return e&&"."!==e?e.split("."):[]}class Bs{layout;renderer=Vs;path;fallbackPath;previewObject;constructor(e,t){if(this.layout=e,this.path=qs(e.field||""),this.fallbackPath=e.fallback?qs(e.fallback):void 0,this.previewObject=t,e.render)this.renderer=(e,t)=>null;else{const t=e.type||"string",o=t.indexOf("?");if(o>0){const e=t.substring(0,o),n=new URLSearchParams(t.substring(o+1));this.renderer=Ms[e](n)}else this.renderer=Ms[t]()}}get name(){return this.layout.name}resolveValue(e){let t=Ws(e,this.path);return void 0===t&&this.fallbackPath&&(t=Ws(e,this.fallbackPath)),void 0===t&&(t=this.layout.default),t}render(t,o){if(this.layout.render)return e("td",{className:"whitespace-nowrap px-3 py-4 text-sm",children:this.layout.render(t)},o);const n=this.layout.type||"string",a=n.indexOf("?")>0?n.substring(0,n.indexOf("?")):n;if(("objectId"===a||"objectLink"===a)&&this.previewObject){const e=n.indexOf("?"),r=e>0?new URLSearchParams(n.substring(e+1)):void 0;return Ms[a](r,e=>{this.previewObject(t.id)})(t,o)}return this.renderer(this.resolveValue(t),o)}}function $s({objects:o,selection:n,isLoading:a,columns:r,onRowClick:i,highlightRow:s,selectedObject:l,toggleAll:c,onSelectionChange:d}){const{t:u}=Vn();return t(At,{className:"w-full",children:[e(_t,{children:t("tr",{children:[n&&e("th",{children:e("input",{type:"checkbox",onChange:c})}),r.map(t=>e("th",{children:t.name},t.name))]})}),t(Rt,{isLoading:a,columns:r.length+1,children:[o?.map(o=>{const a=s?.(o);return t("tr",{className:`cursor-pointer hover:bg-muted group ${l?.id===o.id?"bg-muted":""} ${a?"bg-blue-50 dark:bg-blue-900/20":""}`,onClick:()=>{i&&i(o)},children:[n&&e("td",{onClick:e=>e.stopPropagation(),children:e("input",{checked:n.isSelected(o.id),type:"checkbox",className:""+(n.isSelected(o.id)?"":"hidden group-hover:block"),onChange:e=>d(o,e)})}),r.map((e,t)=>e.render(o,t)),e("td",{className:"w-8 text-center",children:a&&e(Q,{className:"size-4 text-blue-600 dark:text-blue-400 inline-block"})})]},o.id)}),0===o.length&&e("tr",{children:e("td",{colSpan:r.length+(n?1:0),className:"text-center",children:u("store.noObjectsDragAndDrop")})})]})]})}function Gs({objects:n,selection:a,isLoading:r,onSelectionChange:i,onRowClick:s,highlightRow:l,previewObject:c,selectedObject:d}){return t(o,{children:[e(Fi,{isLoading:r}),e("div",{className:"w-full gap-2 grid xs:grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6 @xs:grid-cols-1 @sm:grid-cols-2 @md:grid-cols-3 @lg:grid-cols-4",children:n.map(t=>e(zi,{document:t,selection:a,onSelectionChange:i,onRowClick:s,highlightRow:l,previewObject:c,selectedObject:d},t.id))})]})}class Ks{client;limit;collectionId;facets=new Ot({});result=new Ot({objects:[],isLoading:!1});facetSpecs=[];query={};constructor(e,t=100){this.client=e,this.limit=t}withFacets(e){return this.facetSpecs=e,this}get objects(){return this.result.value.objects}get error(){return this.result.value.error}get isRunning(){return this.result.value.isLoading}get hasMore(){return this.result.value.hasMore||!1}getFilterValue(e){return this.query[e]}setFilterValue(e,t){this.query[e]=t,this.search()}setDefaultKeys(e){}clearFilters(e=!0){const{parent:t,full_text:o,vector:n,weights:a,score_aggregation:r,dynamic_scaling:i,limit:s,all_revisions:l}=this.query;this.query={parent:t,...void 0!==o&&{full_text:o},...void 0!==n&&{vector:n},...void 0!==a&&{weights:a},...void 0!==r&&{score_aggregation:r},...void 0!==i&&{dynamic_scaling:i},...void 0!==s&&{limit:s},...void 0!==l&&{all_revisions:l}},e&&this.search()}getFacetBuckets(e){const t=this.facets.value[e];return Array.isArray(t)?t:[]}resetFacets(){this.query={}}reset(e=!1){this.result.value={objects:[],isLoading:e,hasMore:!0}}_updateRunningState(e){const t=this.result.value;this.result.value={objects:t.objects,isLoading:e,error:t.error,hasMore:t.hasMore}}_searchRequest(e,t,o,n=!0){const a={limit:t,offset:o,query:e,facets:n?this.facetSpecs:void 0};return this.collectionId?this.client.collections.searchMembers(this.collectionId,a):this.client.objects.search(a)}_facetsRequest(){const e={facets:this.facetSpecs,query:this.query};return this.collectionId?this.client.collections.computeFacets(this.collectionId,e):this.client.objects.computeFacets(e)}computeFacets(e){this._facetsRequest().then(e=>{this.facets.value=e})}_search(e=!1,t=!1){if(this.isRunning&&e)return Promise.resolve(!1);this.result.value={isLoading:!0,objects:e?this.objects:[],hasMore:!e||this.result.value.hasMore};const o=this.limit,n=e?this.objects.length:0;return this._searchRequest(this.query,o,n,!t).then(async n=>{const a=n.results||[],r=n.facets||{};return this.result.value={isLoading:!1,objects:e?this.objects.concat(a):a,hasMore:a.length===o},!t&&r&&Object.keys(r).length>0&&(this.facets.value=r),!0}).catch(e=>{if(404===e?.status)return this.result.value={isLoading:!1,objects:[],hasMore:!1},!1;throw this.result.value={error:e,isLoading:!1,objects:this.objects,hasMore:this.result.value.hasMore},e})}search(e=!1){return this.isRunning&&this.objects.length>0?Promise.resolve(!1):this._search(!1,e)}loadMore(e=!1){return this.isRunning||!this.hasMore||this.query.vector?Promise.resolve(!1):(this.objects.length>0&&(e=!0),this._search(!0,e))}}const Hs=u(void 0);function Js(){return p(Hs)}function Ys(){return Lt(Js().facets)}function Qs(){const e=Js();return{...Lt(e.result),search:e}}function Zs(){const e=Js();return Lt(e.facets).total}var Xs;async function el(e){try{const t=await e.arrayBuffer(),o=new ln;o.appendByteArray(new Uint8Array(t));const n=o.end();return n?.toString()}catch(e){return void console.error("Error calculating file hash:",e)}}function tl(){const{client:e}=Qe(),t=Xe(),o=Mn.getFixedT(null,Un);return{checkDocumentProcessing:async(n,a,r)=>{try{console.log(`Preparing metadata for ${n.length} files...`);const t=await async function(e,t){const o=[];for(let n=0;n<e.length;n+=5){const a=e.slice(n,n+5),r=await Promise.all(a.map(async e=>{let o=t||"/";if(e.webkitRelativePath){const n=e.webkitRelativePath.split("/");if(n.length>1){const e=n.slice(0,-1).join("/");o=t?`${t}/${e}`:e}}return{file:e,hash:await el(e),name:e.name,size:e.size,location:o}}));o.push(...r)}return o}(n,a),o=async()=>{const o=t.map(e=>e.hash).filter(Boolean);if(0===o.length)return;const n={"content.etag":{$in:o}};let a;if(r){const t={query:{match:n},select:"id content.etag"};a=(await e.store.collections.searchMembers(r,t)).results}else{const t={query:n,select:"id content.etag"};a=await e.store.objects.find(t)}for(const e of a){const o=t.find(t=>t.hash===e.content?.etag);o&&(o.existingId=e.id,o.action=Xs.SKIP)}},i=async()=>{const o=t.filter(e=>e.action!==Xs.SKIP),n=o.map(e=>e.location),a=Array.from(new Set(n)),i=[];for(const t of a){const n={"content.name":{$in:o.filter(e=>e.location===t).map(e=>e.name)},location:t||"/"};if(r){const t=e.store.collections.searchMembers(r,{query:{match:n},select:"id content.name location"}).then(e=>e.results);i.push(t)}else{const t=e.store.objects.find({query:n,select:"id content.name location"});i.push(t)}}const s=(await Promise.all(i)).flat();console.log(`Found ${s.length} document to update`,s);for(const e of s){const o=t.find(t=>t.name===e.content?.name&&(t.location?t.location===e.location:"/"===e.location));o&&(o.existingId=e.id,o.action=Xs.UPDATE)}console.log(`Reconciled ${t.filter(e=>e.action===Xs.UPDATE).length}`)};return await o(),await i(),t.forEach(e=>{e.action||(e.action=Xs.CREATE)}),console.log("Document processing check results:",{totalFiles:n.length,toCreate:t.filter(e=>e.action===Xs.CREATE).length,toUpdate:t.filter(e=>e.action===Xs.UPDATE).length,toSkip:t.filter(e=>e.action===Xs.SKIP).length}),t}catch(e){throw t({title:o("store.errorInUploadProcessingCheck"),status:"error",description:e.message}),console.log("Error in file upload processing check",e),new Error("Error in file upload processing check: "+e.message,{cause:e})}}}}function ol({isOpen:n,onClose:a,files:r,collectionId:i,selectedFolder:s,title:l,children:u,onUploadComplete:p,hideFileSelection:m=!1,showTypeSelectionOnly:g=!1,allowFolders:h=!0}){const{client:v}=Qe(),{registry:y}=Ui(),b=Xe(),{t:w}=Vn(),x=l??w("upload.uploadFiles"),[C,k]=d([]),[T,N]=d([]),[S,D]=d(!1),[P,A]=d(null),[F,z]=d([]),[I,E]=d(!1),[j,_]=d(!1),[R,O]=d(0),[L,U]=d(Date.now()),[M,V]=d(void 0),[W,q]=d(null),[B,$]=d(x),[G,K]=d("");f(()=>{i&&v.store.collections.retrieve(i).then(V)},[i]),f(()=>{I?($(w("upload.uploadingFiles")),K(`${Math.round(R)}% complete`)):j?($(w("upload.uploadComplete")),K("")):S?($(w("upload.fileAnalysisResults")),K(`${C.length} file${1!==C.length?"s":""}`)):C.length>0?($(x),K(w("upload.checkingForDuplicates"))):($(x),K(""))},[I,j,S,x,R,C.length,w]);const H=()=>M||s?t(Ut,{className:"mb-4",status:"default",icon:e(se,{className:"size-5"}),children:[e("div",{className:"flex items-center",children:e("span",{className:"font-medium",children:w("upload.uploadLocation")})}),t("div",{className:"text-sm mt-1",children:[M&&t("div",{className:"flex items-center",children:[e("span",{className:"mr-1",children:w("upload.collectionLabel")}),e("span",{className:"font-medium",children:M.name})]}),s&&t("div",{className:"flex items-center mt-1",children:[e("span",{className:"mr-1",children:w("upload.folderLabel")}),e("span",{className:"font-medium",children:s})]})]})]}):null,[J,Y]=d({toCreate:0,toUpdate:0,toSkip:0}),{checkDocumentProcessing:Q}=tl(),Z=c(()=>y?.types||[],[y?.types]);f(()=>{n&&(N([]),D(!1),A(null),z([]),E(!1),_(!1),O(0),Y({toCreate:0,toUpdate:0,toSkip:0}),q(null),$(x),K(""),r&&r.length>0?(k(r),te(r)):k([]),U(Date.now()))},[n,r]);const X=()=>{k([]),N([]),D(!1),A(null),z([]),E(!1),_(!1),O(0),Y({toCreate:0,toUpdate:0,toSkip:0}),q(null),$(x),K(""),U(Date.now()),a()},ee=e=>{e&&e.length>0&&(k(e),te(e))},te=async e=>{if(e.length)try{console.log(`Processing ${e.length} files to determine required actions...`);const t=await Q(e,s,i);N(t);const o=t.filter(e=>e.action===Xs.CREATE).length,n=t.filter(e=>e.action===Xs.UPDATE).length,a=t.filter(e=>e.action===Xs.SKIP).length;Y({toCreate:o,toUpdate:n,toSkip:a}),b({title:w("upload.filesAnalyzed"),description:`${e.length} file(s): ${o} new, ${n} to update, ${a} to skip`,status:"info",duration:4e3}),D(!0)}catch(e){console.error("Error processing files:",e),b({title:w("agent.error"),description:w("upload.errorAnalyzingFiles"),status:"error",duration:5e3})}},ce=async()=>{if(!T.length)return;const e=P?.id||null,t=T.map(e=>({file:e.file,status:"pending",progress:0,action:e.action===Xs.CREATE?"create":e.action===Xs.UPDATE?"update":"skip"}));z(t),E(!0),_(!1);const o=T.filter(e=>e.action===Xs.SKIP),n=T.filter(e=>e.action===Xs.UPDATE),a=T.filter(e=>e.action===Xs.CREATE),r={success:!0,objectIds:[],uploadedFiles:[],skippedFiles:[],failedFiles:[]};for(const t of o)t.existingId&&(r.objectIds.push(t.existingId),r.skippedFiles.push({id:t.existingId,name:t.name,type:e,status:"skipped",location:t.location}),z(e=>e.map(e=>e.file===t.file?{...e,status:"success",progress:100,id:t.existingId}:e)));const s=async(t,o)=>{const n=[];for(let e=0;e<t.length;e+=50)n.push(t.slice(e,e+50));for(let a=0;a<n.length;a++){const s=n[a];if(console.log(`Processing ${o} batch ${a+1}/${n.length} (${s.length} files)`),t.length>50){const e=50*a;b({title:w("upload.processingFilesAction",{action:o}),description:w("upload.processedCount",{processed:e,total:t.length}),status:"info",duration:2e3})}let l=0;await Promise.all(s.map(async t=>{try{if(z(e=>e.map(e=>e.file===t.file?{...e,status:"uploading",progress:20}:e)),"update"===o&&t.existingId)await v.store.objects.update(t.existingId,{type:e||void 0,content:t.file,location:t.location,name:t.name},{createRevision:!0,revisionLabel:"upload on "+(new Date).toISOString()}),z(e=>e.map(e=>e.file===t.file?{...e,status:"success",progress:100,id:t.existingId}:e)),r.objectIds.push(t.existingId),r.uploadedFiles.push({id:t.existingId,name:t.name,type:e,status:"updated",location:t.location});else{const o=await v.store.objects.create({type:e||void 0,content:t.file,location:t.location||t.file.webkitRelativePath||t.name},{collection_id:i});z(e=>e.map(e=>e.file===t.file?{...e,status:"success",progress:100,id:o.id}:e)),r.objectIds.push(o.id),r.uploadedFiles.push({id:o.id,name:t.name,type:e,status:"created",location:t.location})}}catch(o){console.error(`Failed to process file ${t.name}:`,o),z(e=>e.map(e=>e.file===t.file?{...e,status:"error",progress:100,message:o.message||"Unknown error"}:e)),r.failedFiles.push({name:t.name,error:o.message||"Unknown error",status:"failed",location:t.location,type:e}),r.success=!1}l++,l%5!=0&&l!==s.length||z(e=>{const t=e.filter(e=>"success"===e.status||"error"===e.status).length,o=e.length,n=o>0?Math.round(t/o*100):0;return O(n),e})}))}};n.length>0&&await s(n,"update"),a.length>0&&await s(a,"create"),z(e=>{const t=e.filter(e=>"pending"===e.status).map(e=>({...e,status:"error",progress:100,message:w("upload.uploadProcessInterrupted")}));return t.length>0?(t.forEach(e=>{r.failedFiles.push({name:e.file.name,error:w("upload.uploadProcessInterrupted"),status:"failed",type:P?.id||null})}),r.success=!1,e.map(e=>"pending"===e.status?{...e,status:"error",progress:100,message:w("upload.uploadProcessInterrupted")}:e)):e}),E(!1),_(!0);const l=r.uploadedFiles.filter(e=>"created"===e.status).length,c=r.uploadedFiles.filter(e=>"updated"===e.status).length,d=r.skippedFiles.length,u=r.failedFiles.length;let p="";l>0&&(p+=`${l} file${1!==l?"s":""} uploaded`),c>0&&(p+=p?", ":"",p+=`${c} file${1!==c?"s":""} updated`),d>0&&(p+=p?", ":"",p+=`${d} file${1!==d?"s":""} skipped`),u>0&&(p+=p?", ":"",p+=`${u} file${1!==u?"s":""} failed`),b({title:w("upload.uploadComplete"),description:p,status:u>0?"warning":"success",duration:5e3}),q(r)},de=()=>t("div",{className:"mb-4",children:[t("label",{className:"block text-sm font-medium mb-2",children:[w("store.contentType")," ",e("span",{className:"text-muted font-normal",children:w("store.optional")}),e(ot,{description:w("upload.contentTypeTooltip"),placement:"top",size:"xs",children:e(le,{className:"size-3 ml-2"})})]}),e(Nt,{options:Z,value:P,optionLabel:e=>e?e.name:w("store.selectContentTypeLabel"),placeholder:w("store.selectContentTypeAuto"),onChange:e=>A(void 0===e?null:e),filterBy:"name",isClearable:!0}),P?e(o,{}):e("div",{className:"p-2 rounded-md",children:t("div",{className:"flex items-center text-attention",children:[e(ne,{className:"size-4 mr-1"}),w("store.automaticTypeDetection"),e(ot,{description:w("store.automaticTypeDetectionDescription"),placement:"top",size:"xs",children:e(le,{className:"size-3 ml-2"})})]})})]});return t(pt,{isOpen:n,onClose:X,className:"mx-auto",disableCloseOnClickOutside:!0,children:[e(mt,{description:G,children:B}),g?t(gt,{children:[u,H(),de()]}):0!==C.length||m?I||j?I?t(gt,{children:[H(),e("div",{className:"mb-4",children:e("div",{className:"h-2 bg-muted/20 rounded-full overflow-hidden",children:e("div",{className:"h-full bg-primary rounded-full",style:{width:`${R}%`}})})}),e("div",{className:"max-h-96 overflow-y-auto",children:F.map((o,n)=>t("div",{className:"flex items-center py-2 border-b border-border last:border-b-0",children:[t("div",{className:"mr-3",children:["pending"===o.status&&e(re,{className:"size-5 text-muted"}),"uploading"===o.status&&e(ut,{size:"sm"}),"success"===o.status&&e(ne,{className:"size-5 text-success"}),"error"===o.status&&e(ie,{className:"size-5 text-destructive"})]}),t("div",{className:"flex-1 min-w-0",children:[e("div",{className:"truncate font-medium",children:o.file.name}),t("div",{className:"text-xs text-muted",children:["pending"===o.status&&w("agent.waiting"),"uploading"===o.status&&w("agent.uploading"),"success"===o.status&&("create"===o.action?w("store.created"):"update"===o.action?w("store.updated"):w("upload.skip")),"error"===o.status&&o.message]})]})]},`${o.file.name}-${n}`))})]}):e(gt,{children:t("div",{className:"mb-4",children:[H(),e(Jo,{files:F.map(e=>{let t;return t="success"===e.status?"create"===e.action?"success":"update"===e.action?"updated":"skipped":"failed",{name:e.file.name,status:t,error:"error"===e.status?e.message:void 0}}),location:s||void 0,collection:M?.name})]})}):e(gt,{children:S?t(o,{children:[H(),e("div",{className:"mb-4",children:e("div",{className:"p-4 rounded-md mb-4",children:t("div",{className:"grid grid-cols-3 gap-4",children:[t("div",{className:"flex flex-col items-center",children:[t("div",{className:"flex items-center gap-2",children:[e(oe,{className:"size-5 text-primary"}),e("span",{className:"font-medium",children:w("upload.new")})]}),e("div",{className:"text-2xl font-semibold",children:J.toCreate})]}),t("div",{className:"flex flex-col items-center",children:[t("div",{className:"flex items-center gap-2",children:[e(ne,{className:"size-5 text-success"}),e("span",{className:"font-medium",children:w("upload.update")})]}),e("div",{className:"text-2xl font-semibold",children:J.toUpdate})]}),t("div",{className:"flex flex-col items-center",children:[t("div",{className:"flex items-center gap-2",children:[e(ae,{className:"size-5 text-mixer-attention/40"}),e("span",{className:"font-medium",children:w("upload.skip")})]}),e("div",{className:"text-2xl font-semibold",children:J.toSkip})]})]})})}),de(),e(Ut,{className:"mb-4",status:"info",children:J.toCreate+J.toUpdate>0?t("div",{className:"space-y-1",children:[e("p",{children:w("upload.filesReadyToProcess",{count:J.toCreate+J.toUpdate})}),e("p",{children:J.toSkip>0&&w("upload.filesToSkip",{count:J.toSkip})})]}):J.toSkip>0?e("span",{children:w("upload.allFilesExist",{count:J.toSkip})}):e("span",{children:w("upload.noFilesToProcess")})})]}):t("div",{className:"flex flex-col items-center justify-center py-4",children:[e(ut,{size:"lg",className:"mb-4"}),e("div",{className:"text-lg font-medium",children:w("upload.analyzingFiles")})]})}):t(gt,{className:"flex flex-col items-center justify-center p-8",children:[H(),e(Ho,{onDrop:ee,message:w("upload.dragAndDrop"),buttonLabel:w("upload.selectFiles"),className:"w-full h-64",allowFolders:h}),u]}),(()=>{if(g)return t(yt,{children:[e(et,{variant:"ghost",onClick:X,children:w("modal.cancel")}),e(et,{onClick:()=>{p&&p({success:!0,objectIds:[],uploadedFiles:[{name:"type-selection",type:P?.id||null,status:"created"}],skippedFiles:[],failedFiles:[]}),X()},children:P?w("upload.useTypeName",{typeName:P.name}):w("upload.useAutoDetection")})]});if(0===C.length&&!m)return e(yt,{children:e(et,{variant:"ghost",onClick:X,children:w("modal.cancel")})});if(!I&&!j){const o=S;return t(yt,{children:[e(et,{variant:"ghost",onClick:X,children:w("modal.cancel")}),e(et,{disabled:!o,onClick:ce,children:J.toCreate+J.toUpdate>0?w("agent.upload"):w("upload.continue")})]})}return I?e(yt,{children:e(et,{variant:"ghost",disabled:!0,children:w("agent.uploading")})}):t(yt,{children:[e(et,{variant:"ghost",onClick:()=>{k([]),N([]),D(!1),A(null),z([]),E(!1),_(!1),O(0),Y({toCreate:0,toUpdate:0,toSkip:0})},children:w("upload.uploadMore")}),e(et,{onClick:()=>{p&&W&&p(W),X()},children:w("agent.close")})]})})()]},L)}function nl(e){const t="function"==typeof e?e:e.onUploadDone,{client:o,project:n,store:a}=Qe(),r=Js(),i=Xe(),s=Mn.getFixedT(null,Un),{checkDocumentProcessing:l}=tl();return async(e,c,d)=>{const u={success:!1,objectIds:[],uploadedFiles:[],skippedFiles:[],failedFiles:[]};if(!n)return i({status:"error",title:s("store.noProjectSelected"),duration:3e3}),u;if(!e||0===e.length)return i({status:"warning",title:s("store.noFilesSelected"),duration:3e3}),u;const p=Array.from(e).filter(e=>e.size>0);if(0===p.length)return i({status:"error",title:s("store.noValidFilesSelected"),description:s("store.pleaseSelectValidFiles"),duration:5e3}),u;const m=[],g=[],h=[];console.log(`Processing ${p.length} files with smart file processing...`);const f=await l(p,null,d),v=f.filter(e=>e.action===Xs.CREATE).length,y=f.filter(e=>e.action===Xs.UPDATE).length,b=f.filter(e=>e.action===Xs.SKIP).length;i({title:s("store.filesAnalyzedTitle"),description:`${p.length} file(s): ${v} new, ${y} to update, ${b} to skip`,status:"info",duration:4e3});for(const e of f.filter(e=>e.action===Xs.SKIP&&e.existingId))m.push({id:e.existingId,name:e.name,type:c,status:"skipped",location:e.location});const w=f.filter(e=>(e.action===Xs.CREATE||e.action===Xs.UPDATE)&&e.file);if(w.length>0){console.log(`Processing ${w.length} files (${w.filter(e=>e.action===Xs.CREATE).length} create, ${w.filter(e=>e.action===Xs.UPDATE).length} update)...`);const e=50,t=[];for(let o=0;o<w.length;o+=e)t.push(w.slice(o,o+e));for(let n=0;n<t.length;n++){const r=t[n],l=n*e;console.log(`Processing batch ${n+1}/${t.length} (${r.length} files)`),w.length>e&&i({title:s("store.processingFiles"),description:`Processed ${l}/${w.length} files...`,status:"info",duration:2e3});const p=await Promise.all(r.map(async e=>{try{if(e.action===Xs.UPDATE&&e.existingId){const t=await o.store.objects.update(e.existingId,{type:c||void 0,content:e.file,location:e.location,name:e.name},{createRevision:!0,revisionLabel:"upload on "+(new Date).toISOString()});return g.push({id:e.existingId,name:e.name,type:c,status:"updated",location:e.location}),u.objectIds.push(e.existingId),{success:!0,id:t.id,name:e.name,action:"update"}}{const t=d?{collection_id:d}:void 0,o=await a.objects.create({type:c||void 0,content:e.file,location:e.location||e.file.webkitRelativePath||e.name},t);g.push({id:o.id,name:e.name,type:c,status:"created",location:e.location})}}catch(t){console.error(`Failed to process file ${e.name}:`,t),h.push({name:e.name,error:t.message||"Unknown error",status:"failed",location:e.location,type:c}),i({status:"error",title:s("store.processingFailedFor",{name:e.name}),description:t.message,duration:4e3})}})),m=g.filter(e=>"created"===e.status),f=g.filter(e=>"updated"===e.status),v=g.filter(e=>"failed"===e.status);console.log(`Batch ${n+1} results:`,{creates:m,updates:f,failures:v,total:p.length})}}const x=g.filter(e=>"created"===e.status).length,C=g.filter(e=>"updated"===e.status).length,k=g.filter(e=>"failed"===e.status).length,T=g.filter(e=>"skipped"===e.status).length;t&&(console.log("Upload complete:",{totalObjectIds:u.objectIds.length,uploadedFiles:x,updatedFiles:C,skippedFiles:T,failedFiles:k}),await t(u.objectIds));let N="";return x>0&&(N+=`${x} file${1!==x?"s":""} uploaded`),C>0&&(N+=N?", ":"",N+=`${C} file${1!==C?"s":""} updated`),T>0&&(N+=N?", ":"",N+=`${T} file${1!==T?"s":""} skipped (already existed)`),k>0&&(N+=N?", ":"",N+=`${k} file${1!==k?"s":""} failed`),N&&i({status:k>0?"warning":"success",title:N,duration:4e3}),r.search(),u}}!function(e){e.CREATE="create",e.SKIP="skip",e.UPDATE="update"}(Xs||(Xs={}));const al=[{name:"ID",field:"id",type:"objectId?slice=-7"},{name:"Name",field:".",type:"objectName"},{name:"Type",field:"type.name",type:"string"},{name:"Status",field:"status",type:"string"},{name:"Updated At",field:"updated_at",type:"date"}];function rl({isGridView:t=!1,onUpload:o,collectionId:n,...a}){return o?e(il,{...a,onUpload:o,isGridView:t,collectionId:n}):e(sl,{...a,isGridView:t})}function il({isGridView:o,onUpload:a,collectionId:r,skipTypeModal:i=!1,...s}){const[l,c]=d(!1),[u,p]=d([]),[m,g]=d(!1),[h,f]=d(null),[v,y]=d(!1),b=Js(),w=Xe(),{t:x}=Vn(),{checkDocumentProcessing:C}=tl(),k=async(e,t)=>{console.log("Files dropped on ObjectTable:",e.length,t),c(!0);try{if(r){const t=await C(e,null,r);f(t);const o=t.filter(e=>"create"===e.action).length,n=t.filter(e=>"update"===e.action).length,a=t.filter(e=>"skip"===e.action).length;w({title:x("store.filesReadyToProcess"),description:`${e.length} file(s): ${o} new, ${n} to update, ${a} to skip`,status:"info",duration:4e3})}else f(null)}catch(e){console.error("Error processing files:",e),w({title:x("store.errorProcessingFiles"),description:x("store.errorCheckingDuplicates"),status:"error",duration:4e3}),f(null)}finally{if(c(!1),p(e),g(!1),i){console.log("Skipping type modal and calling onUpload directly",{filesLength:e.length,processedFilesLength:h?.length});const t=a(e,null,r);t&&"object"==typeof t&&(t.processedFiles=h)}else console.log("Setting typeSelectionOpen to true",{filesLength:e.length}),y(!0)}},T=e=>{const t=[...u];p([]),f(null),y(!1),t.length>0&&void 0!==e&&(c(!0),console.log("Starting upload with",{typeId:e,filesCount:t.length,hasProcessingResults:!!h,collectionId:r}),a(t,e,r).finally(()=>{c(!1),b.search()}))},N=e=>{e.preventDefault(),e.stopPropagation(),g(!0)};return t("div",{className:"min-h-[400px] relative",onDragOver:N,onDragEnter:N,onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),e.currentTarget.contains(e.relatedTarget)||g(!1)},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),g(!1),e.dataTransfer.items){const t=[];for(let o=0;o<e.dataTransfer.items.length;o++){const n=e.dataTransfer.items[o];if("file"===n.kind){const e=n.getAsFile();e&&t.push(e)}}if(t.length>0){const e={count:t.length,message:`Preparing to upload ${t.length} file${1===t.length?"":"s"}...`};k(t,e)}}},children:[e("div",{className:n("bg-white dark:bg-gray-800 opacity-40 absolute inset-0 z-50 flex justify-center items-center",l?"block":"hidden"),children:e(ut,{size:"xl"})}),e(sl,{...s,isGridView:o}),e("div",{className:n("absolute inset-0 pointer-events-none",m?"z-40":"-z-10"),children:e("div",{className:"w-full h-full relative",children:e(Ho,{onDrop:k,message:"Drop files or folders here to upload",className:n("absolute inset-0 bg-white/90 dark:bg-gray-800/90 pointer-events-auto",m?"flex":"hidden"),buttonLabel:"Select Files or Folders",allowFolders:!0})})}),e(ol,{isOpen:v&&u.length>0,onClose:()=>{p([]),f(null),y(!1),T(void 0)},files:u,collectionId:r,selectedFolder:null,title:"Upload Files",onUploadComplete:e=>{if(e){if(e.failedFiles&&e.failedFiles.length>0&&w({title:x("store.uploadIssues"),description:`${e.failedFiles.length} file(s) failed to upload`,status:"warning",duration:5e3}),e.success){const t=e.uploadedFiles.filter(e=>"created"===e.status).length,o=e.uploadedFiles.filter(e=>"updated"===e.status).length,n=e.skippedFiles.length;(t>0||o>0)&&w({title:x("store.uploadComplete"),description:`${t>0?`${t} created`:""}${t>0&&o>0?", ":""}${o>0?`${o} updated`:""}${n>0?`, ${n} skipped`:""}`,status:"success",duration:5e3})}b.search()}p([]),f(null),y(!1),e&&e.success&&e.objectIds.length>0?T(null):T(void 0)}})]})}function sl({objects:t,layout:o=al,isLoading:n,onRowClick:a,onSelectionChange:r,highlightRow:i,previewObject:s,selectedObject:l,isGridView:d}){const u=Ls(),p=(e,o)=>{if(u){const n=o.nativeEvent.shiftKey;if(o.target.checked){if(u.add(e),n){const o=t.findIndex(t=>t.id===e.id),n=function(e,t,o){for(let n=t-1;n>=0;n--)if(o.isSelected(e[n].id))return n;return-1}(t,o,u);if(n>-1&&n<o-1){const e=[];for(let a=n+1;a<o;a++)e.push(t[a]);u.addAll(e)}else{const e=function(e,t,o){const n=e.length;for(let a=t+1;a<n;a++)if(o.isSelected(e[a].id))return a;return-1}(t,o,u);if(e>-1&&e>o+1){const n=[];for(let a=o+1;a<e;a++)n.push(t[a]);u.addAll(n)}}}}else u.remove(e.id);r&&r(u)}},m=e=>{if(u){e.target.checked?u.addAll(t):u.removeAll()}},g=c(()=>{const e=o.length>0?o:al;return console.log("Using layout with columns:",e.map(e=>e.name).join(", ")),e.map(e=>new Bs(e,s))},[o,s]);return e(d?Gs:$s,{objects:t,isLoading:n,columns:g,onRowClick:a,highlightRow:i,previewObject:s,selectedObject:l,selection:u,toggleAll:m,onSelectionChange:p})}function ll({children:t,limit:o,parent:n,typeId:a,facets:r,name:i,collectionId:s}){const{store:l}=Qe(),d=c(()=>{let e;r?e=r:(e=[{name:"status",field:"status"},{name:"location",field:"location"}],a||e.unshift({name:"type",field:"type"}));const t=new Ks(l,o).withFacets(e);return t.collectionId=s,t.query.type=a,t.query.parent=n,t.query.name=i,s&&(t.query.all_revisions=!0),t},[a,o,s]);return e(Hs.Provider,{value:d,children:t})}const cl=[{name:"Name",field:"properties.title",type:"string",fallback:"name"},{name:"Type",field:"type.name",type:"string"},{name:"Status",field:"status",type:"string"},{name:"Created At",field:"created_at",type:"date"}];function dl({onChange:t,selectedIds:o}){return e(ll,{children:e(ul,{onRowClick:e=>{t(e||void 0)},selectedIds:o})})}function ul({onRowClick:o,selectedIds:n}){const{t:r}=Vn(),i=g(e=>!!n?.has(e.id),[n]),[s,l]=d(!1),[c,u]=d("grid"===localStorage.getItem("vertesia.content_store.lastDisplayedView")),{search:p,isLoading:h,error:v,objects:y,hasMore:b}=Qs(),w=m(null);Mt(w,()=>{s&&b&&!h&&(l(!1),p.loadMore(!0).finally(()=>{l(!0)}))},{threshold:.1,deps:[s,b,h]}),f(()=>{p.search().finally(()=>{l(!0)})},[]);const x=Ys(),C=Js();return v?e(st,{title:r("store.searchFailed"),children:v.message}):t("div",{className:"flex flex-col gap-2 h-full w-full",children:[t("div",{className:"flex justify-between items-center flex-shrink-0",children:[e(Cs,{facets:x,search:C}),t("div",{className:"flex items-center gap-2",children:[e(et,{variant:"outline",onClick:()=>{l(!1),p.search().then(()=>l(!0))},alt:"Refresh",children:e(te,{size:16})}),e(Oa,{onUpdate:u})]})]}),t("div",{className:"@container flex-1 overflow-y-auto",children:[e(rl,{objects:y||[],isLoading:!1,layout:cl,onRowClick:o,highlightRow:n?.size?i:void 0,isGridView:c}),e("div",{ref:w,className:"h-4 w-full"}),e("div",{className:a("bg-white dark:bg-gray-800 opacity-80 absolute inset-0 z-50 flex justify-center items-center rounded",h?"block":"hidden"),children:e(ut,{size:"xl"})})]})]})}function pl({isOpen:o,onClose:n}){return t(pt,{onClose:()=>n(),isOpen:!!o,className:"min-w-[60vw]",children:[e(mt,{children:"Select Content"}),e(gt,{className:"pt-0 overflow-y-auto max-h-[80vh] min-h-[80vh]",children:o&&e(dl,{onChange:n})})]})}const ml=/store:([a-f0-9]+)/;function gl({object:o}){const{client:a}=Qe(),{off:r,on:i,isOn:s}=Vt(),[l,c]=d(null!=o.value?String(o.value):""),[u,p]=d(void 0),m=()=>{c(""),o.value="",p(void 0)};return f(()=>{if(!l||u)return;const e=l.match(ml);e&&a.objects.get(e[1]).then(e=>{p(e)}).catch(()=>{m()})},[l]),t("div",{children:[t("div",{className:"relative",children:[e("input",{value:l,onChange:e=>{const t=e.target.value;c(t),o.value=t},className:n(Wt.INPUT,"pr-10 w-full")}),u&&e("div",{className:"absolute inset-y-0 right-10 flex items-center justify-center ",children:e(et,{onClick:m,variant:"unstyled",className:"hover:text-red-500 hover:bg-gray-100 dark:hover:bg-gray-600",children:e(D,{className:"size-5"})})}),e("div",{className:"absolute inset-y-0 right-0 flex items-center justify-center",children:e(et,{onClick:i,variant:"unstyled",className:"hover:bg-gray-100 dark:hover:bg-gray-600",children:e(ce,{className:"size-5"})})}),e(pl,{value:l,isOpen:s,onClose:e=>{if(e){const t="store:"+e.id;c(t),p(e||void 0),o.value=t}r()}})]}),u&&e("div",{className:"p-1 semibold text-sm text-gray-600 dark:text-slate-300",children:u.properties?.title||u.name})]})}function hl({objectId:o,isOpen:n,onClose:a}){const r=Mo(),{client:i,store:s}=Qe(),[l,c]=d(null),[u,p]=d(!1),[m,g]=d(!1),[h,v]=d(),[y,b]=d(),[w,x]=d("preview"),{t:C}=Vn(),k=Xe();f(()=>{o&&n?(p(!0),s.objects.retrieve(o,"+embeddings").then(e=>{c(e),e.text?v(e.text):N(e.id);const t=e.content;t&&t.source&&t.type&&t.type.startsWith("image/")&&P(e)}).catch(e=>{console.error("Error loading object:",e),k({title:C("agent.error"),description:C("store.failedToLoadDocument"),status:"error",duration:3e3})}).finally(()=>{p(!1)})):(c(null),v(void 0),b(void 0))},[o,n,s.objects]);const N=async e=>{g(!0);try{const t=await s.objects.getObjectText(e);v(t.text)}catch(e){console.error("Error loading text:",e)}finally{g(!1)}},P=async e=>{try{"found"===(await i.objects.getRendition(e.id,{format:bo.jpeg,generate_if_missing:!1})).status&&console.log("Found rendition");const t=await i.files.getDownloadUrl(e.content.source);b(t.url)}catch(e){console.error("Error loading image:",e)}},A=()=>{l&&(r(`/legal/objects/${l.id}`),a())},z=h&&(h.startsWith("#")||h.includes("\n#")||h.includes("\n*")),I=l?.content?.type&&l.content.type.startsWith("image/"),E="application/pdf"===l?.content?.type;return n?t("div",{className:"fixed inset-y-0 right-0 w-2/5 dark:bg-slate-900 shadow-xl z-50 flex flex-col transition-transform duration-300 transform "+(n?"translate-x-0":"translate-x-full"),children:[t("div",{className:"flex items-center justify-between px-4 py-3 border-b dark:border-gray-700 bg-gradient-to-r from-indigo-50 to-gray-50 dark:from-gray-800 dark:to-gray-900",children:[t("div",{className:"flex items-center",children:[e(de,{className:"h-5 w-5 text-indigo-600 mr-2"}),e("h2",{className:"text-lg font-semibold text-gray-800 dark:text-gray-200 truncate",children:u?C("store.loadingDocument"):l?.name||C("store.documentPreview")})]}),t("div",{className:"flex items-center space-x-2",children:[t(et,{variant:"ghost",size:"sm",onClick:A,className:"flex items-center gap-1 text-indigo-600 hover:text-indigo-800",children:[e(S,{className:"h-4 w-4"}),e("span",{children:C("store.fullView")})]}),e(et,{variant:"ghost",size:"sm",onClick:a,className:"flex items-center text-gray-600 hover:text-gray-800 dark:text-gray-300 dark:hover:text-gray-100",children:e(D,{className:"h-5 w-5"})})]})]}),u?e("div",{className:"flex-1 flex items-center justify-center",children:t("div",{className:"text-center",children:[e(ut,{size:"lg",className:"text-indigo-600 dark:text-indigo-400 mb-2"}),e("p",{className:"text-gray-600 dark:text-gray-400",children:C("store.loadingDocument")})]})}):t("div",{className:"flex-1 flex flex-col h-full",children:[e("div",{className:"border-b",children:t("div",{className:"flex px-4",children:[e("button",{className:"py-2 px-4 font-medium border-b-2 "+("preview"===w?"border-indigo-600 text-indigo-700 dark:text-indigo-300":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"),onClick:()=>x("preview"),children:t("div",{className:"flex items-center gap-1",children:[e(M,{className:"h-4 w-4"}),e("span",{children:C("store.preview")})]})}),e("button",{className:"py-2 px-4 font-medium border-b-2 "+("properties"===w?"border-indigo-600 text-indigo-700 dark:text-indigo-300":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"),onClick:()=>x("properties"),children:t("div",{className:"flex items-center gap-1",children:[e(le,{className:"h-4 w-4"}),e("span",{children:C("store.properties")})]})})]})}),t("div",{className:"flex-1 overflow-auto p-4",children:["preview"===w&&t("div",{className:"h-full",children:[m?e("div",{className:"flex items-center justify-center h-40",children:e(ut,{size:"md",className:"text-indigo-600 dark:text-indigo-400"})}):h?e("div",{className:"shadow rounded-md p-4 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:z?e("div",{className:"prose prose-sm max-w-none prose-p:my-2 prose-pre:bg-gray-800 prose-pre:my-2 prose-headings:text-indigo-700 dark:prose-invert dark:prose-headings:text-indigo-300",children:e(Wo,{children:h})}):e("pre",{className:"text-wrap whitespace-pre-wrap dark:text-gray-200",children:h})}):null,I&&e("div",{className:"mt-4",children:e("div",y?{className:"border border-gray-200 dark:border-gray-700 rounded-md p-2 bg-white dark:bg-gray-800",children:e("img",{src:y,alt:l?.name,className:"mx-auto max-h-[70vh] object-contain"})}:{className:"flex items-center justify-center h-40",children:e(ut,{size:"md",className:"text-indigo-600 dark:text-indigo-400"})})}),E&&t("div",{className:"flex flex-col items-center justify-center h-64 border border-gray-200 dark:border-gray-700 rounded-md p-4 bg-gray-50 dark:bg-gray-800",children:[e(de,{className:"h-16 w-16 text-indigo-300 dark:text-indigo-400 mb-4"}),e("p",{className:"text-gray-600 dark:text-gray-400 text-center mb-4",children:C("store.pdfPreviewFullView")}),e(et,{onClick:A,className:"bg-indigo-600 hover:bg-indigo-700 text-white",children:C("store.openFullDocumentView")})]}),!I&&!h&&!E&&!m&&t("div",{className:"flex flex-col items-center justify-center h-64 border border-gray-200 dark:border-gray-700 rounded-md p-4 bg-gray-50 dark:bg-gray-800",children:[e(de,{className:"h-16 w-16 text-gray-300 dark:text-gray-600 mb-4"}),e("p",{className:"text-gray-600 dark:text-gray-400 text-center",children:C("store.noPreviewAvailable")})]})]}),"properties"===w&&l&&t("div",{className:"h-full",children:[l.properties?e("div",{className:"shadow rounded-md p-4 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:e(Go,{value:l.properties})}):t("div",{className:"flex flex-col items-center justify-center h-64 border border-gray-200 dark:border-gray-700 rounded-md p-4 bg-gray-50 dark:bg-gray-800",children:[e(le,{className:"h-16 w-16 text-gray-300 dark:text-gray-600 mb-4"}),e("p",{className:"text-gray-600 dark:text-gray-400 text-center",children:C("store.noPropertiesAvailable")})]}),t("div",{className:"mt-4",children:[e("h3",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:C("store.documentInformation")}),e("div",{className:"shadow rounded-md p-4 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:t("div",{className:"grid grid-cols-2 gap-y-2 gap-x-4 text-sm",children:[e("div",{className:"text-gray-500 dark:text-gray-400",children:C("store.id")}),e("div",{className:"font-medium dark:text-gray-200",children:l.id}),e("div",{className:"text-gray-500 dark:text-gray-400",children:C("store.contentType")}),e("div",{className:"font-medium dark:text-gray-200",children:l.type?.name||C("store.unknown")}),e("div",{className:"text-gray-500 dark:text-gray-400",children:C("store.contentType")}),e("div",{className:"font-medium dark:text-gray-200",children:l.content?.type||C("store.na")}),e("div",{className:"text-gray-500",children:C("store.size")}),e("div",{className:"font-medium",children:l.content&&"size"in l.content?fl(l.content.size):C("store.unknown")}),e("div",{className:"text-gray-500",children:C("store.created")}),e("div",{className:"font-medium",children:l.created_at?new Date(l.created_at).toLocaleString():C("store.na")}),e("div",{className:"text-gray-500",children:C("store.updated")}),e("div",{className:"font-medium",children:l.updated_at?new Date(l.updated_at).toLocaleString():C("store.na")})]})})]})]})]})]}),t("div",{className:"flex items-center justify-between p-4 border-t bg-gray-50 dark:bg-gray-800 dark:border-gray-700",children:[e("div",{children:l?.content?.source&&t(et,{onClick:()=>{l?.content?.source&&i.files.getDownloadUrl(l.content.source).then(e=>{window.open(e.url,"_blank")}).catch(e=>{console.error("Error getting download URL:",e),k({title:C("agent.error"),description:C("store.failedToDownloadFile"),status:"error",duration:3e3})})},variant:"outline",className:"text-indigo-600 border-indigo-300 hover:bg-indigo-50",children:[e(T,{className:"h-4 w-4 mr-2"}),C("pdf.download")]})}),t(et,{onClick:A,className:"bg-indigo-600 hover:bg-indigo-700 text-white",children:[C("store.openFullDocument"),e(F,{className:"h-4 w-4 ml-2"})]})]})]}):null}function fl(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][t]}const vl=Object.values(Ao),yl=Object.values(Fo);function bl({onChange:o,isLoading:n,refresh:a,searchTypes:r}){const{client:i,project:s}=Qe(),{t:l}=Vn(),c=Xe(),[u,p]=d(void 0),[m,g]=d(void 0),h=!(!s||!m?.embeddings.text&&!m?.embeddings.image),[v,y]=d(void 0),[b,w]=d(!1),[x,C]=d(r||vl),[k,T]=d(100);f(()=>{r&&C(r)},[r]);const N={};let S=!1,D=!1;x.forEach(e=>{e===Ao.full_text?S=!0:D=!0,yl.includes(e)&&(N[e]=!0)}),f(()=>{p(void 0),y(void 0)},[a]),f(()=>{s&&i.projects.retrieve(s.id).then(e=>{g(e.configuration)})},[s]),f(()=>{v&&c({title:v,status:"success",duration:2e3})},[v]),f(()=>{u&&0!==u.length||o(void 0)},[u]);const P=()=>{if(!h||!u)return;o({vector:D?{text:u,config:N}:void 0,full_text:S?u:void 0,limit:k}),y("Searching...")},A=e=>t=>{C(t?t=>Array.from(new Set([...t,e])):t=>t.filter(t=>t!==e))};return t("div",{className:"flex gap-1 items-center",children:[e(vt,{placeholder:l("store.searchPlaceholder"),value:u,onChange:p,onKeyDown:e=>{"Enter"===e.key&&P()},className:"min-w-[200px]"}),e(et,{variant:"ghost",onClick:()=>w(!0),alt:l("store.semanticSearchSettings"),className:"ml-1",children:e(ue,{size:18})}),t(pt,{isOpen:b,onClose:()=>w(!1),children:[e(mt,{children:l("store.searchTypes")}),e(gt,{children:t("div",{className:"flex flex-col gap-2",children:[t("label",{className:"flex items-center gap-2",children:[e(qt,{checked:x.includes(Ao.full_text),onCheckedChange:A(Ao.full_text)}),e("span",{children:l("store.fullText")})]}),e("div",{className:"font-semibold mt-2 mb-1",children:l("store.embeddings")}),yl.map(o=>t("label",{className:"flex items-center gap-2",children:[e(qt,{checked:x.includes(o),onCheckedChange:A(o)}),e("span",{children:o.charAt(0).toUpperCase()+o.slice(1)})]},o)),t("div",{className:"mt-3",children:[e("span",{className:"mr-2",children:l("store.limit")}),e(Bt,{type:"number",min:1,value:k,onChange:e=>T(Number(e??100)),style:{width:80}})]})]})}),e(yt,{children:e(et,{variant:"outline",onClick:()=>w(!1),children:l("store.close")})})]}),e(et,{variant:"secondary",isLoading:n,onClick:P,isDisabled:!h,alt:l("store.semanticSearch"),children:l("store.search")})]})}const wl=[{name:"ID",field:"id",type:"objectId?slice=-7"},{name:"Name",field:".",type:"objectName"},{name:"Type",field:"type.name",type:"string"},{name:"Status",field:"status",type:"string"},{name:"Updated At",field:"updated_at",type:"date"}];function xl({onUploadDone:t=async()=>{},layout:o}){const n=Js(),a=Xe(),{t:r}=Vn(),i=nl(async e=>{await t(e),setTimeout(()=>{console.log("Delayed refresh after upload to ensure backend consistency"),n.search().then(()=>{a({title:r("store.documentListRefreshed"),description:r("store.documentListRefreshedDesc"),status:"info",duration:3e3})}).catch(e=>{console.error("Failed to refresh search results:",e)})},1e3)});return e(Cl,{layout:o,onUpload:(e,t)=>{const o=n.collectionId;return i(e,t,o)}})}function Cl({layout:o,onUpload:n,allowFilter:a=!0,allowSearch:r=!0}){const{t:i}=Vn(),s=Js(),[l,c]=d(!1),[u,p]=d(null),{registry:g}=Ui(),{search:h,isLoading:v,error:y,objects:b,hasMore:w}=Qs(),[x,C]=d(g?o||(k=g,((T=h.query.type)?k.getTypeLayout(T):wl)??wl):wl);var k,T;f(()=>{o&&C(o)},[o]);const[N,S]=d(0),[D,P]=d(0),[A,F]=d("grid"===localStorage.getItem(Oa.LAST_DISPLAYED_VIEW)),[z,I]=d([]),E=m(null),j=m(null);f(()=>{l||0!==b.length||(P(0),h._updateRunningState(!0),h.search().then(()=>{c(!0)}).catch(e=>{console.error("Initial search failed:",e),h._updateRunningState(!1)}))},[]),f(()=>{b.length<D&&P(b.length)},[b.length,D]),Mt(E,()=>{l&&b.length>0&&b.length!=D&&(c(!1),h.loadMore().finally(()=>{P(b.length),c(!0)}))},{deps:[l,b.length]});const _=Ys(),R=Js(),O=ws(_),L=xs(R),U=new URL(window.location.href),M=U.searchParams.get("filters");if(M)try{const e=M.split(";"),t=e.filter(e=>{const[t]=e.split(":"),o=decodeURIComponent(t);return"start"!==o&&"end"!==o});if(t.length!==e.length){const e=t.length>0?t.join(";"):"";e?U.searchParams.set("filters",e):U.searchParams.delete("filters"),window.history.replaceState(window.history.state||{},"",U.toString())}}catch(y){console.error("Failed to clean start/end filters from URL:",y)}const V=Mo();return t("div",{className:"flex flex-col gap-y-2 flex-1 min-h-0 ",children:[e(Tl,{object:u,onClose:()=>p(null)}),y&&e(st,{title:i("store.error"),children:y.message}),e(kl,{isLoading:v,refreshTrigger:N,allowFilter:a,allowSearch:r,filterGroups:O,filters:z,handleFilterChange:e=>{const t="function"==typeof e?e(z):e;I(t),L(t)},handleVectorSearch:e=>{if(e&&e.vector){if(h.query.vector=e.vector,h.query.full_text=e.full_text,h.query.weights=e.weights,h.query.score_aggregation=e.score_aggregation,h.query.dynamic_scaling=e.dynamic_scaling,void 0!==e.limit&&(h.limit=e.limit,h.query.limit=e.limit),!x.find(e=>"Search Score"===e.name)){const e=[...x,{name:"Search Score",field:"score",render:e=>e.score?.toFixed(4)||"0.0000"}];C(e)}h.search().then(()=>c(!0))}else e&&e.full_text?(h.query.full_text=e.full_text,void 0!==e.limit&&(h.limit=e.limit,h.query.limit=e.limit),h.search().then(()=>c(!0))):void 0===e&&l&&(delete h.query.vector,delete h.query.full_text,h.search().then(()=>c(!0)))},handleRefetch:()=>{h.search().then(()=>c(!0))},setIsGridView:F}),e("div",{className:"flex flex-col w-full flex-1 min-h-0 border rounded-md mb-2",children:t("div",{ref:j,className:"flex-1 min-h-0 overflow-y-auto",children:[e(rl,{objects:b,isLoading:!b.length&&v,layout:x,onRowClick:e=>{V(`/objects/${e.id}`)},previewObject:e=>{const t=b.find(t=>t.id===e)||null;p(t)},selectedObject:u,onUpload:n,isGridView:A,collectionId:s.collectionId}),e("div",w?{ref:E,className:"w-full flex justify-center",children:e(ut,{size:"xl"})}:{className:"text-muted text-center text-sm py-1",children:`All ${b.length} objects loaded.`})]})})]})}function kl(o){const{t:n}=Vn(),{isLoading:a,refreshTrigger:r,allowFilter:i,allowSearch:s,filterGroups:l,filters:c,handleFilterChange:d,handleVectorSearch:u,handleRefetch:p,setIsGridView:m}=o;return t("div",{className:"sticky top-0 z-10 bg-background py-2 flex justify-between items-center",children:[i?e(Ft,{filterGroups:l,filters:c,setFilters:d,children:t("div",{children:[e("div",{className:"flex flex-row gap-4 items-center justify-between w-full",children:t("div",{className:"flex gap-2 items-center w-2/3",children:[s&&e(bl,{onChange:u,isLoading:a,refresh:r,className:"w-full"}),e(zt,{})]})}),t("div",{className:"flex gap-2 items-center pt-2",children:[e(It,{}),e(Et,{})]})]})}):e("div",{className:"flex flex-row gap-4 items-center justify-between w-full",children:e("div",{className:"flex gap-2 items-center w-2/3",children:s&&e(bl,{onChange:u,isLoading:a,refresh:r})})}),t("div",{className:"flex gap-1 items-center",children:[e(et,{variant:"outline",onClick:p,alt:n("store.refresh"),children:e(te,{size:16})}),e(Oa,{onUpdate:m})]})]})}function Tl({object:o,onClose:n}){const{store:a}=Qe(),r=Xe(),i=Mo(),{downloadFromContentSource:s}=ai({client:a,toast:r}),l=o?.content?.source;return o?t($t,{title:o.properties?.title||o.name,isOpen:!0,onClose:n,children:[t("div",{className:"flex items-center gap-x-2",children:[e(et,{variant:"ghost",size:"sm",title:"Open Object",onClick:()=>i(`/objects/${o.id}`),children:e(P,{className:"size-4"})}),l&&e(et,{variant:"ghost",size:"sm",title:"Download",onClick:()=>s(l,o.name||o.content?.name),children:e(T,{className:"size-4"})})]}),e(Gt,{className:"my-2"}),e("div",{className:"pt-2",children:e(gi,{object:o,loadText:!0},o.id)})]}):null}var Nl;function Sl({isExporting:o,isOpen:n,onClose:a}){return t(pt,{onClose:()=>a(void 0),isOpen:n,children:[e(mt,{children:"Export Object Properties"}),t(gt,{children:[!o&&e(Dl,{onClose:a}),o&&e(Pl,{})]})]})}function Dl({onClose:o}){const{t:n}=Vn(),[a,r]=d(void 0),[i,s]=d(void 0),l=["Export selected objects","Export all objects"];return t(gt,{className:"min-h-[104px] pt-0 flex flex-col gap-y-4",children:[e("div",{className:"h-1/3",children:e(Nt,{options:l,value:i,onChange:s,placeholder:n("store.chooseWhatToExport"),className:"h-full w-full text-sm",filterBy:"name",isClearable:!0})}),t("div",{className:"h-1/2 flex flex-col gap-y-8 content-between",children:[e(Nt,{options:Object.values(Nl),value:a,onChange:r,placeholder:n("store.chooseAFormat"),className:"h-full w-full text-sm",filterBy:"name",isClearable:!0}),e(et,{className:"w-full",isDisabled:!a||!i,onClick:()=>{o(a,i==l[1])},children:n("store.actions.exportProperties")})]})]})}function Pl({}){const{t:o}=Vn();return e(gt,{className:"min-h-[84px] pt-0",children:t("div",{className:"h-full grid flex-col gap-y-2 content-between justify-items-center",children:[t("div",{className:"text-sm flex flex-col gap-x-2",children:[e("p",{children:o("store.exportInProgress")}),e("p",{className:"pt-2 grid justify-items-center",children:o("store.pleaseWait")})]}),e(ut,{size:"lg"})]})})}!function(e){e.CSV="CSV",e.JSON="JSON"}(Nl||(Nl={}));const Al=[{name:"ID",field:"id",type:"objectId?slice=-7"},{name:"Name",field:".",type:"objectName"},{name:"Revision",field:".",type:"revision"},{name:"Type",field:"type.name",type:"string"},{name:"Status",field:"status",type:"string"},{name:"Updated At",field:"updated_at",type:"date"}];function Fl({collection:t}){const o=Xe(),{client:n}=Qe(),{registry:a}=Ui(),r=function(e,t){let o=e.table_layout;if(o&&o.length>0)return o;e.type&&t&&(o=t?.getTypeLayout(zo(e.type)));return o&&o.length>0?o:Al}(t,a);return t.dynamic?e(Cl,{layout:r}):e(xl,{onUploadDone:async e=>{e.length>0&&await n.store.collections.addMembers(t.id,e).catch(e=>{o({title:"Failed to add objects to collection",description:e.message,status:"error"})})},layout:r})}function zl({className:o,defaultValue:n,onChange:a,isClearable:r,multiple:i}){const{t:s}=Vn(),{registry:l}=Ui(),[c,u]=d(!1),p=o=>null===o?s("store.none"):t("div",{children:[e("div",{className:"text-sm",children:o.name}),e("div",{className:"text-xs text-muted truncate",children:o.description})]}),[m,g]=d(),[h,v]=d([]);f(()=>{if(!c&&(u(!0),l&&n)){if(i&&Array.isArray(n)){const e=l.types.filter(e=>n.includes(e.id));v(e)}const e=l.types.find(e=>e.id===n);e&&g(e)}},[l,n,i]);const y=e=>{v(e),a(e)};return e("div",i?{className:"flex flex-col gap-4 content-between",children:e(Nt,{options:l?.types||[],value:h,onChange:y,placeholder:s("store.chooseContentTypes"),optionLabel:p,className:o||"text-sm bg-background",filterBy:"name",isClearable:r||!1,multiple:!0})}:{className:"flex flex-col gap-4 content-between",children:e(Nt,{options:l?.types||[],value:m,onChange:e=>{g(e||void 0),a(e)},placeholder:s("store.chooseContentType"),optionLabel:p,className:o||"text-sm bg-background",filterBy:"name",isClearable:r||!1})})}function Il({onClose:n,redirect:a=!0,onAddToCollection:r}){const i=Mo(),s=Xe(),{t:l}=Vn(),[c,u]=d(!1),{client:p}=Qe(),[m,g]=d({dynamic:!1,name:"",description:""});function h(e,t){g({...m,[e]:t})}return t(o,{children:[e(gt,{children:t("form",{onSubmit:e=>e.preventDefault(),children:[e(ft,{label:l("type.name"),required:!0,children:e(vt,{type:"text",value:m.name||"",onChange:e=>h("name",e)})}),e(ft,{label:l("type.description"),className:"mt-2",children:e(Kt,{value:m.description||"",onChange:e=>h("description",e.target.value)})}),e(ft,{label:l("store.dynamicCollection"),className:"mt-2",direction:"row",description:l("store.dynamicCollectionDescription"),children:e(Ht,{value:m.dynamic||!1,onChange:e=>h("dynamic",e)})}),!m.dynamic&&e(ft,{label:l("store.allowedContentTypes"),className:"mt-4",description:l("store.allowedContentTypesOptionalDescription"),children:e(zl,{defaultValue:m.allowed_types||null,onChange:e=>{Array.isArray(e)?h("allowed_types",e.map(e=>e.id)):h("allowed_types",e?[e.id]:[])},isClearable:!0,multiple:!0})}),e(ft,{label:l("store.contentType"),className:"mt-2",description:l("store.typeDescription"),children:e(zl,{defaultValue:m.type||null,onChange:e=>{Array.isArray(e)?h("type",e.length>0?e[0].id:null):h("type",e?.id||null)},isClearable:!0})})]})}),e(yt,{children:e(et,{isDisabled:c,onClick:()=>{m?.name&&m.name.trim()?(m.name=m.name.trim(),m.description&&(m.description=m.description.trim()),null==m.dynamic&&(m.dynamic=!1),u(!0),p.store.collections.create(m).then(e=>{n(),s({title:l("store.collectionCreated"),description:`Collection "${e.name}" created successfully`,status:"success",duration:3e3}),a&&i(`/collections/${e.id}`),r&&r(e.id)}).catch(e=>{s({title:l("store.failedToCreateCollection"),description:e.message,status:"error",duration:5e3})}).finally(()=>u(!1))):s({title:l("type.nameRequired"),description:l("store.pleaseProvideName"),status:"error",duration:5e3})},children:l("store.createCollection")})})]})}function El({isOpen:o,onClose:n}){const{t:a}=Vn();return t(pt,{onClose:n,isOpen:o,children:[e(mt,{children:a("store.createACollection")}),e(Il,{onClose:n})]})}function jl({}){const{client:n}=Qe(),a=Xe(),{t:r}=Vn(),[i,s]=d(),[l,c]=d(!0),[u,p]=d(!1),{data:m,error:g,refetch:h}=it(()=>n.store.collections.search({}),[]);if(f(()=>{(m||g)&&c(!1)},[m,g]),g)return e(st,{title:r("store.collectionFetchFailed"),children:g.message});return t(o,{children:[m&&(m.length>0?t(At,{className:"w-full",children:[e("thead",{children:t("tr",{children:[e("th",{children:r("type.name")}),e("th",{children:r("type.type")}),e("th",{children:r("store.created")}),e("th",{})]})}),e(Rt,{columns:4,isLoading:l,children:m.map(o=>t(Jt,{children:[e("td",{children:t("div",{className:"flex items-center gap-2",children:[Rl(o.dynamic),e(Vo,{href:`/collections/${o.id}`,children:o.name})]})}),e("td",{children:o.type?.name||"-"}),e("td",{children:Uo(o.created_at).fromNow()}),e("td",{className:"text-right",children:e(et,{variant:"destructive",size:"sm",onClick:()=>s(o.id),children:e(ge,{className:"size-4"})})})]},o.id))})]}):e(Yt,{title:r("store.noCollections"),buttonLabel:r("store.newCollections"),onClick:()=>p(!0),children:r("store.getStartedCollections")})),e(El,{isOpen:u,onClose:()=>p(!1)}),e(Qt,{isOpen:!!i,title:r("store.deleteCollection"),content:r("store.areYouSureDeleteCollection"),onConfirm:async()=>{if(i)try{await n.store.collections.delete(i),a({title:r("store.collectionDeleted"),status:"success",duration:3e3}),h()}catch(e){console.error("Failed to delete collection:",e),a({title:r("store.failedToDeleteCollection"),description:e.message||"An error occurred",status:"error",duration:5e3})}finally{s(void 0)}},onCancel:()=>s(void 0)})]})}function _l({isDynamic:t}){const{t:o}=Vn(),n=o(t?"store.dynamicCollection":"store.staticCollection"),a=e(t?pe:me,{className:"size-5"});return e(ot,{description:n,className:"mr-2",children:a})}function Rl(t){return e(_l,{isDynamic:t})}function Ol({objects:o,isLoading:n}){const{t:a}=Vn(),r=Mo();return t(At,{className:"w-full",children:[e(_t,{children:t("tr",{children:[e("th",{children:a("store.name")}),e("th",{children:a("store.strictMode")}),e("th",{children:a("store.semanticChunking")}),e("th",{children:a("store.updatedAt")})]})}),e(Rt,{isLoading:n&&(!o||0===o.length),columns:4,children:o?.map(o=>t("tr",{onClick:()=>r(`/types/${o.id}`),className:"cursor-pointer hover:bg-muted",children:[e("td",{children:o.name}),e("td",{children:o.strict_mode?"Yes":"No"}),e("td",{children:o.is_chunkable?"Yes":"No"}),e("td",{children:Uo(o.updated_at).fromNow()})]},o.id))})]})}Uo.extend(sn),Uo.extend(sn);class Ll{client;limit;result=new Ot({objects:[],isLoading:!1});query={};constructor(e,t=100){this.client=e,this.limit=t}get objects(){return this.result.value.objects}get error(){return this.result.value.error}get isRunning(){return this.result.value.isLoading}getFilterValue(e){return this.query[e]}setFilterValue(e,t){this.query[e]=t,this.search()}reset(e=!1){this.result.value={objects:[],isLoading:e}}_updateRunningState(e){const t=this.result.value;this.result.value={objects:t.objects,isLoading:e,error:t.error}}async _search(e=!1){if(this.isRunning)return Promise.resolve(!1);this.result.value={isLoading:!0,objects:e?this.objects:[]};const t=this.limit,o=this.objects.length;return this.client.types.list({limit:t,offset:o,query:this.query}).then(async e=>(this.result.value={isLoading:!1,objects:this.objects.concat(e)},!0)).catch(e=>{throw this.result.value={error:e,isLoading:!1,objects:this.objects},e})}search(){return this.isRunning?Promise.resolve(!1):this._search(!1)}loadMore(){return this.isRunning?Promise.resolve(!1):this._search(!0)}}const Ul=u(void 0);function Ml(){return p(Ul)}function Vl(){const e=Ml();return{...Lt(e.result),search:e}}function Wl(){return Ml().objects.length}function ql({title:o,isOpen:n,onClose:a,okLabel:r,initialPayload:i,isLoading:s}){const{t:l}=tn(),c=Xe(),[u,p]=d(i?.name),[m,g]=d(i?.description),h=i?.strict_mode??!1;return t(pt,{isOpen:n,onClose:()=>a(),children:[e(mt,{children:o}),e(gt,{className:"pt-0",children:t("div",{className:"h-full flex flex-col gap-4 content-between",children:[t("div",{children:[e("label",{className:"block text-sm font-medium text-muted",children:l("type.name")}),e(vt,{value:u,onChange:p})]}),t("div",{children:[e("label",{className:"block text-sm font-medium text-muted",children:l("type.description")}),e(Kt,{value:m,onChange:e=>g(e.target.value),minLines:5})]})]})}),e(yt,{children:t("div",{className:"flex justify-end gap-4",children:[e(et,{variant:"secondary",onClick:()=>a(),children:l("modal.cancel")}),e(et,{variant:"primary",onClick:()=>(()=>{if(!u)return void c({status:"error",title:l("type.nameRequired"),duration:5e3});a({name:u,description:m,strict_mode:h}).then(()=>a())})(),isLoading:s,children:r})]})})]})}var Bl;function $l({isDirty:n=!1}){const{store:a}=Qe(),{reload:r}=Ui(),{t:i}=Vn(),s=Xe(),[l,c]=d(!1),{search:u,isLoading:p,error:g,objects:h}=Vl(),[v,y]=d(""),b=Zt(v,500),w=m(null);Mt(w,()=>{l&&u.loadMore()},{deps:[l]}),f(()=>{u.search().then(()=>c(!0))},[]),f(()=>{u.query.name=v,u.search().then(()=>c(!0))},[b]);const[x,C]=d(void 0);f(()=>{u.query.chunkable=x?"Yes"==x:void 0,u.search().then(()=>c(!0))},[x]),f(()=>{n&&l&&u.search().then(()=>c(!0))},[n]);const[k,T]=d(!1);if(g)return e(st,{title:i("store.failedToFetchTypes"),children:g.message});return t("div",{className:"flex flex-col flex-1 min-h-0",children:[t("div",{className:"flex flex-shrink-0 gap-4",children:[e(vt,{placeholder:i("store.filterByName"),value:v,onChange:y}),e(Nt,{className:"w-60",isClearable:!0,options:Object.values(Bl),value:x,onChange:e=>{C(e)},placeholder:i("store.isChunkable")})]}),e("div",{className:"flex flex-col w-full flex-1 min-h-0 border rounded-md my-2",children:t("div",{className:"flex-1 min-h-0 overflow-y-auto",children:[p||0!==h?.length?t(o,{children:[e(Ol,{objects:h,isLoading:p}),e("div",{ref:w,className:"h-4 w-full"})]}):e(Yt,{title:i("store.noType"),buttonLabel:i("store.createType"),onClick:()=>{T(!0)},children:i("store.getStartedTypes")}),e(ql,{okLabel:"Create",title:i("store.createType"),isOpen:k,onClose:async e=>e?a.types.create(e).then(async()=>{s({status:"success",title:i("store.typeCreated"),duration:2e3}),r(),u.search().then(()=>c(!0))}).catch(e=>{s({status:"error",title:i("store.errorCreatingType"),description:e.message,duration:5e3})}):(T(!1),Promise.resolve())})]})})]})}function Gl({objectType:o,onSchemaUpdate:n,readonly:a=!1}){const{store:r}=Qe(),{t:i}=Vn(),s=Xe(),{theme:l}=wt(),[u,p]=d(!1),g=Yo(o.object_schema),h=m(void 0),[f,v]=d(!1),y=c(()=>function(e){if(!e)return"";return JSON.stringify(e,null,2)}(g.schema),[g]),b=()=>{if(h.current){const e=h.current.getValue();try{const t=function(e){if(!e?.trim())return;return JSON.parse(e.trim())}(e);Kl(t),g.replaceSchema(t)}catch(e){return s({status:"error",title:i("store.invalidJsonSchema"),description:e.message,duration:5e3}),!1}}return!0},w=t("div",{className:"flex gap-2 items-center",children:[e("div",{className:"text-base font-semibold",children:i("store.schemaEditor")}),!a&&e("div",{children:e(et,{variant:"outline",size:"sm",onClick:()=>{f&&!b()||v(e=>!e)},children:i(f?"store.editSchema":"store.editJson")})})]});return e(Xt,{title:w,className:"bg-background! h-full",action:a?void 0:e(et,{isLoading:u,variant:"outline",size:"sm",onClick:()=>{f&&!b()||(p(!0),r.types.update(o.id,{object_schema:g.schema}).then(()=>{n(g),s({status:"success",title:i("store.schemaUpdated"),description:i("store.schemaUpdatedSuccess"),duration:2e3})}).catch(e=>{s({status:"error",title:i("store.failedToUpdateSchema"),description:e.message,duration:5e3})}).finally(()=>{p(!1)}))},children:i("modal.saveChanges")}),children:f?e($o,{value:y,language:"json",editorRef:h,theme:"dark"===l?"vs-dark":"vs",options:{readOnly:a}}):e(Qo,{schema:g,readonly:a})})}!function(e){e.true="Yes",e.false="No"}(Bl||(Bl={}));const Kl=e=>{try{new mn({strict:!1}).compile(e)}catch(e){throw new Error(`Invalid JSON Schema definition: ${e.message}`,{cause:e})}};function Hl({children:t,limit:o,name:n,chunkable:a}){const{store:r}=Qe(),i=c(()=>{const e=new Ll(r,o);return e.query.name=n,e.query.chunkable=a,e},[o]);return e(Ul.Provider,{value:i,children:t})}function Jl({isOpen:o,onClose:n,title:a,children:r,initialSelectedType:i=null,allowNone:s=!0}){const{t:l}=Vn(),c=a??l("store.selectContentType"),{registry:u}=Ui(),[p,m]=d(i),g=u?.types||[],h=()=>{n(void 0)};return t(pt,{isOpen:o,onClose:h,className:"w-full max-w-xl mx-auto",children:[e(mt,{children:c}),t(gt,{children:[r,t("div",{className:"mb-4 mt-4",children:[t("label",{className:"block text-sm font-medium mb-2",children:[l("store.contentType")," ",s&&e("span",{className:"text-gray-500 font-normal",children:l("store.optional")})]}),e(Nt,s?{options:g,value:p,optionLabel:e=>e?e.name:l("store.selectContentTypeLabel"),placeholder:l("store.selectContentTypeAuto"),onChange:e=>m(e||null),filterBy:"name",isClearable:!0}:{options:g,value:p,optionLabel:e=>e?e.name:l("store.selectContentTypeLabel"),placeholder:l("store.selectContentTypeLabel"),onChange:e=>m(e||null),filterBy:"name"})]}),!p&&t("div",{className:"flex items-center text-attention",children:[e(ne,{className:"size-4 mr-1"}),l("store.automaticTypeDetection"),e(ot,{description:l("store.automaticTypeDetectionDescription"),placement:"top",size:"xs",children:e(le,{className:"size-3 ml-2"})})]})]}),t(yt,{children:[e(et,{variant:"ghost",onClick:h,alt:l("modal.cancel"),children:l("modal.cancel")}),e(et,{onClick:()=>{n(p?.id??null),m(null)},alt:l("store.confirmSelection"),children:l("modal.confirm")})]})]})}function Yl({objectType:t,onLayoutUpdate:o,readonly:n=!1}){const a=Xe(),{theme:r}=wt(),{t:i}=Vn(),[s,l]=d(!1),{store:u}=Qe(),p=m(void 0),g=c(()=>Ql(t.table_layout),[t.table_layout]),h=(e,t)=>{a({status:"error",title:e,description:t,duration:5e3})};return e(Xt,{title:"Table Layout Editor",className:"bg-background! h-full",action:n?void 0:e(et,{isLoading:s,variant:"outline",size:"sm",onClick:()=>{if(!p.current)return;const e=p.current.getValue();let n;if(e)try{n=JSON.parse(e)}catch(e){return h("Invalid JSON",e.message)}else n=null;return Array.isArray(n)?n.some(e=>!e||!e.name||!e.field)?h("Invalid JSON","A table layout entry must contain the following properties:] {field, name, converter?}"):(l(!0),void u.types.update(t.id,{table_layout:n}).then(e=>{a({status:"success",title:i("store.tableLayoutUpdated"),description:i("store.tableLayoutUpdatedDesc"),duration:2e3}),o(e.table_layout)}).catch(e=>{a({status:"error",title:i("store.failedToUpdateTableLayout"),description:e.message,duration:5e3})}).finally(()=>{l(!1)})):h("Invalid JSON","The table layout must be an array")},children:i("store.saveChanges")}),children:e("div",{className:"h-full",children:e($o,{value:g,language:"json",editorRef:p,theme:"dark"===r?"vs-dark":"vs",options:{readOnly:n}})})})}function Ql(e){return e?JSON.stringify(e,null,2):"[\n\n]"}function Zl({refetch:n,collection:a}){const{t:r}=Vn(),i=a.type?zo(a.type):void 0,s=m(void 0),l=Xe(),{theme:u}=wt(),{client:g}=Qe(),h=p(Hs),[f,v]=d(!1),[y,b]=d({name:a.name,description:a.description||"",query:a.query?JSON.stringify(a.query,null,2):"",tags:a.tags||[],type:a.type?zo(a.type):"",allowed_types:a.allowed_types||[]}),w=c(()=>Ql(a.table_layout),[a.table_layout]),x=(e,t)=>{b({...y,[e]:t})};return t("div",{className:"flex flex-col gap-4 py-2",children:[t(Xt,{title:r("store.configuration"),action:e(et,{size:"lg",isDisabled:f,onClick:()=>{let e;try{e=y.query?JSON.parse(y.query):void 0}catch(e){return void l({title:r("store.invalidQueryJson"),description:e.message,status:"error",duration:5e3})}const t={name:y.name,description:y.description,query:e,tags:y.tags,type:y.type,allowed_types:y.allowed_types};let o;if(t.name||(o=r("type.nameRequired")),t.type||(t.type=null),o)l({title:r("store.validationFailed"),description:o,status:"error",duration:5e3});else{if(s.current){const e=s.current.getValue();if(e)try{t.table_layout=JSON.parse(e)}catch(e){return void l({title:r("store.invalidTableLayout"),description:e.message,status:"error",duration:5e3})}else t.table_layout=null}v(!0),g.store.collections.update(a.id,t).then(()=>{n(),a.dynamic&&h&&(h.reset(),h.search()),l({title:r("store.collectionUpdated"),description:r("store.collectionUpdatedSuccess"),status:"success",duration:3e3})}).catch(e=>{l({title:r("store.failedToUpdateCollection"),description:e.message,status:"error",duration:5e3})}).finally(()=>{v(!1)})}},children:r("modal.save")}),children:[t("div",{className:"flex justify-between mb-2",children:[t("div",{className:"w-1/2 gap-2 flex flex-col",children:[e("div",{className:"text-sm font-medium mb-1",children:r("store.createdBy")}),t("div",{className:"gap-2 flex items-center",children:[e(cn,{userRef:a.created_by,showTitle:!0}),t("span",{children:["at ",Uo(a.created_at).format("YYYY-MM-DD HH:mm:ss")]})]})]}),t("div",{className:"w-1/2 gap-2 flex flex-col",children:[e("div",{className:"text-sm font-medium mb-1",children:r("store.updatedBy")}),t("div",{className:"gap-2 flex items-center",children:[e(cn,{userRef:a.updated_by,showTitle:!0}),t("span",{children:["at ",Uo(a.updated_at).format("YYYY-MM-DD HH:mm:ss")]})]})]})]}),e(ft,{label:r("type.name"),required:!0,children:e(vt,{value:y.name,onChange:e=>x("name",e)})}),e(ft,{label:r("type.description"),children:e(Kt,{value:y.description,onChange:e=>x("description",e.target.value)})}),!a.dynamic&&e(ft,{label:r("store.allowedContentTypes"),description:r("store.allowedContentTypesSelectDescription"),children:e(zl,{defaultValue:y.allowed_types||null,onChange:e=>{Array.isArray(e)?x("allowed_types",e.map(e=>e.id)):x("allowed_types",e?[e.id]:[])},isClearable:!0,multiple:!0})}),a.dynamic&&e(ft,{label:r("store.query"),description:r("store.queryDescription"),children:e(Kt,{className:Wt.INPUT,minLines:1,maxLines:12,value:y.query,onChange:e=>x("query",e.target.value)})}),e(ft,{label:r("store.tableLayout"),description:r("store.tableLayoutDescription"),className:"h-[200px]",children:e($o,{className:"border-1 rounded-md border-border",value:w,language:"json",editorRef:s,theme:"dark"===u?"vs-dark":"vs"})}),e(ft,{label:r("store.contentType"),description:r("store.typeSelectDescription"),children:e(zl,{defaultValue:y.type||null,onChange:e=>{Array.isArray(e)?x("type",e.length>0?e[0].id:null):x("type",e?.id||null)},isClearable:!0})})]}),i&&e(Xl,{typeId:i,collection:a}),!a.dynamic&&t(o,{children:[e(dn,{collection:a}),e(un,{collection:a})]})]})}function Xl({typeId:t,collection:o}){const{t:n}=Vn(),[a,r]=d({}),i=Xe(),{client:s}=Qe(),[l,u]=d(!1),{data:p,error:m}=it(()=>s.store.types.catalog.resolve(t),[t]),g=p?.object_schema||{},h=c(()=>new Zo(g,o.properties||{}),[g,o.properties]);if(m)return e(st,{title:n("store.failedToLoadType"),children:m.message});if(!p)return null;return e(Xt,{title:n("store.properties"),action:e(et,{size:"lg",isLoading:l,type:"submit",onClick:()=>(e=>{if(!e||!Object.keys(e).length)return;const t={properties:e||{}};u(!0),s.store.collections.update(o.id,t).then(()=>{i({title:n("store.collectionPropertiesUpdated"),description:n("store.collectionUpdatedSuccess"),status:"success",duration:3e3})}).catch(e=>{i({title:n("store.failedToUpdateCollectionProperties"),description:e.message,status:"error",duration:5e3})}).finally(()=>{u(!1)})})(a),children:n("modal.save")}),children:e(Xo,{object:h,onChange:e=>{e instanceof Zo&&r(e.value)}})})}function ec({onChange:o,value:n,disabled:a=!1,placeholder:r,searchPlaceholder:i,filterOut:s,allowDynamic:l=!0,multiple:u=!1}){const{client:p}=Qe(),{t:m}=Vn(),h=r??m("store.selectACollection"),f=i??m("store.searchCollections"),[v,y]=d(""),[b,w]=d(!1),[x,k]=d(!1),T=Zt(v,300),N=g(async e=>{w(!0);const t=e.trim(),o=await p.store.collections.search({dynamic:!!l&&void 0,name:x&&t||void 0});return w(!1),!x&&o.length>=1e3&&k(!0),s&&s.length>0?o.filter(e=>!s.includes(e.id)):o},[p,l,s,x]),{data:S,error:P}=it(()=>N(x?T:""),[x?T:"",N]),A=c(()=>S?u&&Array.isArray(n)?S.filter(e=>n.includes(e.id)):u||"string"!=typeof n?u?[]:void 0:S.find(e=>e.id===n):u?[]:void 0,[S,n,u]),F=g(e=>{if(u){const t=Array.isArray(n)?n:[];if(t.includes(e.id)){const n=t.filter(t=>t!==e.id),a=S?.filter(e=>n.includes(e.id))||[];o(n,a)}else{const n=[...t,e.id],a=S?.filter(e=>n.includes(e.id))||[];o(n,a)}}else o(e.id,e)},[o,n,S,u]),z=g(()=>{o(void 0,void 0)},[o]),I=g(e=>{y(e)},[]),E=v.trim().length>0,j=c(()=>{if(!S)return[];if(x)return S;if(!E)return S;const e=v.toLowerCase();return S.filter(t=>t.name.toLowerCase().includes(e))},[S,x,E,v]),_=u?Array.isArray(A)&&A.length>0:!!A;if(P)return e(st,{title:m("store.collectionFetchFailed"),children:P.message});return t(nt,{children:[e(at,{asChild:!0,children:t(et,{variant:"outline",role:"combobox","aria-haspopup":"listbox",className:Ze("w-full justify-between min-w-0"),disabled:a,children:[e("span",{className:"truncate flex-1 text-left min-w-0",children:u&&Array.isArray(A)&&A.length>0?1===A.length?A[0].name:m("store.collectionsSelected",{count:A.length}):u||!A||Array.isArray(A)?h:A.name}),_?e("span",{role:"button","aria-label":"Clear selection",className:"ml-2 shrink-0 opacity-50 hover:opacity-100 hover:text-destructive cursor-pointer",onClick:e=>{e.stopPropagation(),z()},children:e(D,{className:"h-4 w-4"})}):e(ce,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e(rt,{className:"mt-2 mb-2 w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:t(eo,{shouldFilter:!1,children:[t("div",{className:"flex justify-between items-center border-b px-3","cmdk-input-wrapper":"",children:[e(to,{placeholder:f,value:v,onValueChange:I,className:"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),b&&e("div",{className:"mr-2 h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"})]}),e(oo,{children:m(b?"store.searching":E?"store.noCollectionsFound":"store.noCollectionsAvailable")}),t(no,{className:"max-h-[300px] overflow-auto",children:[_&&!E&&e(ao,{value:"__clear__",onSelect:z,className:"text-destructive",children:"Remove collection selection(s)"}),E&&e(ao,{value:"__clear_search__",onSelect:()=>y(""),className:"text-muted",children:m("store.clearSelection")}),j.map(o=>{const a=u&&Array.isArray(n)?n.includes(o.id):n===o.id;return t(ao,{value:o.id,onSelect:()=>F(o),className:"flex items-center justify-between",children:[e("span",{className:"truncate",children:o.name}),a&&e(C,{className:"ml-2 h-4 w-4 shrink-0"})]},o.id)})]})]})})]})}function tc({collection:t}){const{client:o}=Qe(),{t:n}=Vn(),[a,r]=d(void 0),[i,s]=d(t.shared_properties||[]),l=Xe();f(()=>{t.type?.id&&o.store.types.retrieve(t.type.id).then(r)},[t.type?.id]);const c=a?Object.keys(a.object_schema?.properties||{}):[];return e(Xt,{title:n("store.sharedProperties"),description:n("store.sharedPropertiesDescription"),action:e(et,{size:"lg",isLoading:!1,onClick:()=>{o.store.collections.update(t.id,{shared_properties:i}).then(()=>{l({title:n("store.updatedSharedProperties"),status:"success"})}).catch(e=>{l({title:n("store.failedToUpdateSharedProperties"),description:e.message,status:"error"})})},children:n("modal.save")}),children:e("div",{className:"",children:e(ro,{value:i,onChange:e=>{s(e)},options:c,placeholder:n("store.selectPropertiesToShare")})})})}function oc({collection:t}){const{client:o}=Qe(),{t:n}=Vn(),[a,r]=d(t.skip_head_sync??!1),[i,s]=d(!1),l=Xe();return e(Xt,{title:n("store.syncMemberHeads"),description:n("store.syncMemberHeadsDescription"),children:e(Ht,{disabled:i,value:!a,onChange:e=>{const a=!e;s(!0),o.store.collections.update(t.id,{skip_head_sync:a}).then(()=>{l({title:n("store.updatedSkipHeadSync"),status:"success"}),r(a)}).catch(e=>{l({title:n("store.failedToUpdateSkipHeadSync"),description:e.message,status:"error"})}).finally(()=>{s(!1)})},children:n("store.enableSyncMemberHeads")})})}const nc=u(void 0);function ac(){const e=p(nc);if(!e)throw new Error("You cannot use useActionContext outside an ActionProvider");return e}function rc(e,t){const o=ac();return f(()=>o.registerCallback(e,t),[o,e,t]),o}function ic({action:t,objectIds:o}){const[n,a]=d(!1),r=g(()=>(o.length>0&&a(!0),Promise.resolve(!0)),[o]);return rc(t.id,r),n&&e(xt,{children:e(cc,{objectIds:o,isOpen:n,onClose:()=>{a(!1)}})})}const sc=Mn.getFixedT(null,Un),lc={id:"addToCollection",name:sc("store.actions.addToCollection"),description:sc("store.actions.addToCollectionDesc"),confirm:!1,component:ic};function cc({isOpen:o,onClose:n,objectIds:a}){const{t:r}=Vn();return t(pt,{isOpen:o,onClose:n,className:"max-w-lg w-full min-w-0 overflow-hidden",children:[e(mt,{className:"flex flex-col min-w-0 overflow-hidden",children:r("store.actions.addToCollectionTitle")}),e(io,{className:"min-w-0 overflow-hidden",children:r("store.actions.addToCollectionBody")}),e("div",{className:"min-w-0 max-w-full overflow-hidden",children:e(dc,{onClose:n,objectIds:a})})]})}function dc({onClose:o,objectIds:n}){const{t:a}=Vn(),r=Xe(),{client:i}=Qe(),[s,l]=d(),c=({collectionId:e})=>{e&&n?.length&&i.store.collections.addMembers(e,n).then(()=>{r({title:a("store.actions.addToCollectionSuccess"),status:"success",description:a("store.actions.addToCollectionSuccessDesc",{count:n.length}),duration:3e3}),o()}).catch(()=>{r({title:a("store.actions.addToCollectionFailure"),status:"error",description:a("store.actions.addToCollectionFailureDesc"),duration:5e3})})},u=[{name:"select",label:a("store.actions.selectCollection"),content:t("div",{className:"p-4 min-w-0 max-w-full overflow-hidden",children:[e(so,{level:5,children:a("store.actions.chooseExistingCollections")}),e(gt,{className:"min-w-0 max-w-full overflow-hidden",children:e("div",{className:"mb-4 min-w-0 max-w-full overflow-hidden",children:e(ec,{onChange:(e,t)=>{"string"==typeof e||void 0===e?l(e):Array.isArray(e)&&e.length>0?l(e[0]):l(void 0)},value:s})})}),e(yt,{children:e(et,{isDisabled:!s,onClick:()=>s&&c({collectionId:s}),children:a("store.actions.addToCollectionButton")})})]})},{name:"create",label:a("store.actions.createNew"),content:e("div",{className:"p-4",children:e(Il,{onClose:o,onAddToCollection:e=>c({collectionId:e}),redirect:!1})})}];return t(lo,{defaultValue:"select",tabs:u,fullWidth:!0,children:[e(co,{}),e(uo,{})]})}function uc({action:o,objectIds:n,children:a}){const{t:r}=Vn(),{store:i}=Qe(),s=Xe(),[l,c]=d(!1),u=g(()=>(c(!0),Promise.resolve(!0)),[]);rc(o.id,u);return t("div",{children:[a,e(Jl,{isOpen:l,onClose:e=>{c(!1),void 0!==e&&i.runOperation({name:"change_type",ids:n,params:{typeId:e}}).then(e=>{s({status:"success",title:r("store.actions.changeType"),description:`Change the type of ${n.length} objects is ${"in_progress"===e.status?"in progress":"completed"}`,duration:2e3})}).catch(e=>{s({status:"error",title:r("store.actions.errorChangingType"),description:e.message,duration:5e3})})},title:"Change Content Type",confirmLabel:"Change Type",children:t("p",{className:"pt-2 text-xs",children:["Note: This action will raise the ",e("code",{children:"change_type"})," event and will trigger the standard intake workflows which may reset the object properties."]})})]})}const pc=Mn.getFixedT(null,Un),mc={id:"changeType",name:pc("store.actions.changeContentType"),description:pc("store.actions.changeContentTypeDesc"),confirm:!1,component:uc};function gc({action:n,callback:a,children:r}){const{t:i}=Vn(),[s,l]=d(!1),c=n.confirmationText||`Are you sure you want to ${n.name}?`,u=g(e=>n.confirm?(l(!0),Promise.resolve(!0)):a(e),[n.confirm,a]),p=rc(n.id,u);return t(o,{children:[r,e(Qt,{onConfirm:()=>{l(!1),a({...p.params,action:n})},onCancel:()=>l(!1),title:i("store.actions.areYouSure"),content:c,isOpen:s})]})}function hc({action:t,objectIds:o,children:n}){const{t:a}=Vn(),r=ac(),i=Xe(),{client:s}=Qe(),l=Js(),c=Mo(),d=g(()=>o&&o.length?s.store.objects.delete(o).then(e=>{const t=e.deleted>1?"s":"";if(i({status:"success",title:`${e.deleted} object${t} deleted`,duration:2e3}),e.failed.length>0&&i({status:"warning",title:`${e.failed.length} object(s) could not be deleted`,duration:3e3}),l){r.params?.selection?.removeAll();const e=JSON.parse(JSON.stringify(l.facets));o.length===e._value.total&&l.resetFacets(),l.search()}else c("/objects")}).catch(e=>{i({status:"error",title:a("store.actions.errorDeletingObjects"),description:e.message,duration:5e3})}):(i({status:"error",title:a("store.actions.noObjectsSelected"),description:a("store.actions.pleaseSelectObjectsToDelete"),duration:3e3}),Promise.resolve(!1)),[o]);return e(gc,{action:t,callback:d,children:n})}const fc=Mn.getFixedT(null,Un),vc={id:"delete",name:fc("store.actions.delete"),description:fc("store.actions.deleteTheSelectedObjects"),confirm:!0,confirmationText:fc("store.actions.confirmDeleteAll"),component:hc,destructive:!0},yc={id:"deleteFromCollections",name:fc("store.actions.deleteObjects"),description:fc("store.actions.deleteTheSelectedObjects"),confirm:!0,confirmationText:fc("store.actions.confirmDeleteSelected"),component:hc,destructive:!0};function bc({action:t,objectIds:o}){const{t:n}=Vn(),{store:a}=Qe(),r=Xe(),[i,s]=d(!1),[l,c]=d(!1),u=g(()=>(s(!0),Promise.resolve(!0)),[]),p=rc(t.id,u);return e(Sl,{isExporting:l,isOpen:i,onClose:(e,t)=>{if(e&&(t||o.length>0)){c(!0);const i=p.params?.search?.query||{},l=p.params?.search?.result?.value?.objects?.map(e=>e.id)||void 0,d=async e=>a.objects.list({query:{parent:e}}).then(e=>e.map(e=>e.id)),u=async()=>t?l?i.vector?l:[]:0===o.length?[]:(await d(o[0])).concat(o):o,m=p.params?.type?.id??i.type,g=p.params?.type?.table_layout??void 0;u().then(l=>{a.objects.exportProperties({objectIds:l,type:e,query:t&&!i.vector?{...i,type:m}:{type:m},table_layout:g}).then(a=>{let i;if(e===Nl.CSV)i=new Blob([a.data],{type:a.type});else if(e===Nl.JSON)i=new Blob([JSON.stringify(a.data)],{type:a.type});else{const e=a.data;i=new Blob([new Uint8Array(e.data)],{type:a.type})}const s=window.URL.createObjectURL(i),l=document.createElement("a");l.download=a.name,l.href=s,l.click(),r({status:"success",title:n("store.actions.exportProperties"),description:t?"Export the properties of all objects completed":`Export the properties of ${o.length} object${o.length>1?"s":""} is completed`,duration:2e3})}).catch(e=>{r({status:"error",title:n("store.actions.errorExportProperties"),description:e.message,duration:5e3})}).finally(()=>{c(!1),s(!1)})})}else s(!1),r({status:"error",title:n("store.actions.errorExportProperties"),description:"No objects selected for export",duration:5e3})}})}const wc=Mn.getFixedT(null,Un),xc={id:"exportProperties",name:wc("store.actions.exportProperties"),description:wc("store.actions.exportAllObjectProperties"),confirm:!1,component:bc};function Cc({action:t,objectIds:o,collectionId:n}){const{t:a}=Vn(),r=ac(),i=Xe(),{client:s}=Qe(),l=Js(),c=g(()=>o&&o.length?n?s.store.collections.deleteMembers(n,o).then(()=>{const e=o.length>1?"s":"";i({status:"success",title:`${o.length} object${e} removed from collection`,description:"Objects have been removed from the collection",duration:2e3}),l&&(r.params?.selection?.removeAll(),l.search())}).catch(e=>{i({status:"error",title:a("store.actions.errorRemovingObjects"),description:e.message,duration:5e3})}):(i({status:"error",title:a("store.actions.noCollectionContext"),description:a("store.actions.cannotRemoveNoCollection"),duration:3e3}),Promise.resolve(!1)):(i({status:"error",title:a("store.actions.noObjectsSelected"),description:a("store.actions.pleaseSelectObjectsToRemove"),duration:3e3}),Promise.resolve(!1)),[o,n]);return e(gc,{action:t,callback:c})}const kc=Mn.getFixedT(null,Un),Tc={id:"removeFromCollection",name:kc("store.actions.removeFromCollection"),description:kc("store.actions.removeFromCollectionDesc"),confirm:!0,confirmationText:kc("store.actions.confirmRemoveFromCollection"),component:Cc,destructive:!0};function Nc({action:t,objectIds:o,collectionId:n}){const{t:a}=Vn(),r=Xe(),{client:i}=Qe(),[s,l]=d(!1),c=g(()=>(l(!0),Promise.resolve(!0)),[]);return rc(t.id,c),e(Pc,{isOpen:s,onClose:e=>{if(l(!1),e)return i.store.workflows.rules.execute(e,o,{collection_id:n}).then(()=>{r({title:a("store.actions.workflowStarted"),status:"success",duration:3e3})}).catch(e=>{r({title:a("store.actions.errorStartingWorkflow"),status:"error",description:e.message,duration:9e3})})}})}const Sc=Mn.getFixedT(null,Un),Dc={id:"startWorkflow",name:Sc("store.actions.startWorkflow"),description:Sc("store.actions.startWorkflowDesc"),confirm:!1,hideInList:!0,component:Nc};function Pc({isOpen:o,onClose:n}){const{t:a}=Vn();return t(pt,{onClose:()=>n(void 0),isOpen:o,className:"",children:[e(mt,{children:a("store.actions.startWorkflowByRule")}),e(Fc,{onClose:n})]})}function Ac(o){return{label:t("div",{children:[e("div",{children:o.name}),e("div",{className:"text-sm text-muted",children:o.description})]}),reverse:!0}}function Fc({onClose:o}){const{t:n}=Vn(),[a,r]=d(void 0),i=ac();return t("div",{children:[t(gt,{children:[e("div",{className:"pb-2",children:n("store.actions.chooseWorkflowRule")}),e("div",{className:"max-h-[420px] overflow-y-scroll border-border border rounded-md",children:e(po,{options:i.wfRules,optionLayout:Ac,onChange:e=>{r(e)},value:a})})]}),t(yt,{children:[e(et,{variant:"secondary",onClick:()=>o(),children:"Cancel"}),e(et,{onClick:()=>{a&&o(a.id)},isDisabled:!a,children:"Start"})]})]})}class zc{params;allActions=[];wfRules=[];callbacks={};startWorkflow;constructor(e){this.params=e}get actions(){return!!this.params.selection?.collectionId?this.allActions.filter(e=>"addToCollection"!==e.id&&"delete"!==e.id):this.allActions.filter(e=>"removeFromCollection"!==e.id&&"deleteFromCollections"!==e.id)}registerCallback(e,t){return this.callbacks[e]=t,()=>{delete this.callbacks[e]}}unregisterCallback(e){delete this.callbacks[e]}findAction(e){let t=this.allActions.find(t=>t.id===e);return t||(t=this.wfRules.find(t=>t.id===e)),t}async run(e){const t=this.findAction(e);if(!t)throw new Error(`Action ${e} not found`);const o={...this.params,action:t},n=this.callbacks[e];if(n)return n(o);throw new Error("No action callback set")}}const Ic=[xc,mc,Dc,lc,vc,Tc,yc];function Ec({children:o,type:n}){const{t:a}=Vn(),r=Os(),i=Xe(),{client:s}=Qe(),l=Js(),{data:d,error:u}=it(()=>s.workflows.rules.list().then(e=>e.map(e=>({id:e.id,name:e.name,description:e.description,confirm:!1,isWorkflow:!0,component:Nc})).sort((e,t)=>e.name.localeCompare(t.name))),[]),p=c(()=>{const e=new zc({selection:r,toast:i,client:s,search:l,type:n});return e.allActions=Ic,e.wfRules=d,e},[r,d,n]);return u?e(st,{title:a("store.failedToFetchWorkflows"),children:u.message}):p&&t(nc.Provider,{value:p,children:[e(jc,{}),o]})}function jc(){const t=ac(),o=t.params.selection,n=o.getObjectId(),a=o.isSingleSelection()&&n?[n]:o.getObjectIds();return e("div",{style:{display:"none"},children:t.allActions.map(t=>e(t.component,{action:t,objectIds:a,collectionId:o.collectionId},t.id))})}function _c({type:o}){const n=Os(),a=n.size(),r=a>1?"s":"",i=n?.hasSelection(),s=n?.isSingleSelection();return e(Ec,{type:o,children:t("div",{className:"flex items-center gap-x-2",children:[i&&!s&&t("div",{className:"flex items-center gap-x-1 shrink-0",children:[t("div",{className:"text-sm nowrap",children:[a," document",r," selected"]}),e(et,{title:"Clear selection",variant:"ghost",onClick:()=>{n?.removeAll()},children:e(D,{className:"size-4"})})]}),e(Mc,{selection:n,children:e(et,{variant:"ghost",alt:"More action",size:"sm",children:e(he,{size:16})})}),i&&e(Rc,{selection:n})]})})}function Rc({}){return e(Lc,{})}function Oc({collectionId:n,allowFolders:a=!0}){const{t:r}=Vn(),[i,s]=d([]),[l,c]=d(!1);return t(o,{children:[e(et,{onClick:()=>c(!0),children:r("store.upload")}),e(ol,{collectionId:n??"",isOpen:l,onClose:()=>{c(!1),s([])},files:i,title:"Upload Files",onUploadComplete:e=>{e&&e.success&&s([])},allowFolders:a})]})}function Lc(){const t=ac(),{t:o}=Vn();return t.params.selection.hasSelection()&&e(et,{onClick:()=>t.run(Dc.id),children:o("store.actions.startWorkflow")})}function Uc(e){return{label:e.name,className:n("flex-1 px-2 py-2 hover:bg-accent nowrap",e.destructive?"text-destructive":"")}}function Mc({selection:o,children:n}){const a=ac();return t(nt,{hover:!0,children:[e(at,{children:n}),e(rt,{className:"p-0 w-50",align:"end",sideOffset:6,children:e(Vc,{executeAction:e=>{a.run(e.id)},selection:o})})]})}function Vc({executeAction:t,selection:o}){const n=ac(),a=o?.hasSelection()?n.actions.filter(e=>!e.hideInList):[xc];return e("div",{className:"rounded-md shadow-md py-2",children:e("div",{className:"px-1 text-sm",children:e(po,{options:a,optionLayout:Uc,onChange:e=>{t(e)},noCheck:!0})})})}const Wc=["className","cardClassName","headerClassName","contentClassName","timestampClassName","senderClassName","iconClassName","detailsClassName","artifactsClassName","proseClassName"];function qc(e,t,...o){const n={};for(const a of Wc)n[a]=Ze(e[a],t[a],...o.map(e=>e?.[a]));return n}const Bc={Ready:"agent.ready",Error:"agent.error"},$c={[vo.ANSWER]:{borderColor:"border-l-info",iconColor:"text-info",sender:"Agent",Icon:fe},[vo.COMPLETE]:{borderColor:"border-l-success",iconColor:"text-success",sender:"Completed",Icon:I},[vo.IDLE]:{borderColor:"border-l-info",iconColor:"text-info",sender:"Ready",Icon:be},[vo.REQUEST_INPUT]:{borderColor:"border-l-attention",iconColor:"text-attention",sender:"Input",Icon:ye},[vo.QUESTION]:{borderColor:"border-l-muted",iconColor:"text-muted",sender:"User",Icon:ye},[vo.THOUGHT]:{borderColor:"border-l-purple-500",iconColor:"text-purple-600 dark:text-purple-400",sender:"Agent",Icon:fe},[vo.ERROR]:{borderColor:"border-l-destructive",iconColor:"text-destructive",sender:"Error",Icon:E},[vo.UPDATE]:{borderColor:"border-l-success",iconColor:"text-success",sender:"Update",Icon:le},[vo.PLAN]:{borderColor:"border-l-attention",iconColor:"text-attention",sender:"Plan",Icon:_},[vo.TERMINATED]:{borderColor:"border-l-muted",iconColor:"text-muted",sender:"Terminated",Icon:I},[vo.WARNING]:{borderColor:"border-l-attention",iconColor:"text-attention",sender:"Warning",Icon:E},[vo.SYSTEM]:{borderColor:"border-l-muted",iconColor:"text-muted",sender:"System",Icon:le},[vo.STREAMING_CHUNK]:{borderColor:"border-l-info",iconColor:"text-info",sender:"Agent",Icon:fe},[vo.BATCH_PROGRESS]:{borderColor:"border-l-blue-500",iconColor:"text-blue-600 dark:text-blue-400",sender:"Batch",Icon:j},[vo.RESTARTING]:{borderColor:"border-l-attention",iconColor:"text-attention",sender:"Restarting",Icon:ve},default:{borderColor:"border-l-muted",iconColor:"text-muted",sender:"Agent",Icon:fe}};const Gc=h(function({message:o,showPulsatingCircle:n=!1,onSendMessage:a,className:r,cardClassName:i,headerClassName:s,contentClassName:l,timestampClassName:u,senderClassName:p,iconClassName:g,detailsClassName:h,artifactsClassName:v,proseClassName:y,messageStyleOverrides:b,StoreLinkComponent:w,CollectionLinkComponent:x}){const[C,k]=d(!1),{t:N}=Vn(),{client:S}=Qe(),D=Xe(),P=Bn(),{openImage:A}=ua(),F=m(S);F.current=S;const I=m(P);I.current=P;const{renderContent:E,isDownloading:j}=ai({client:S,toast:D}),_=c(()=>{const e=$c[o.type]||$c.default,t=b?.default,n=b?.[o.type];return{...e,...t,...n,...qc(e,{className:r,cardClassName:i,headerClassName:s,contentClassName:l,timestampClassName:u,senderClassName:p,iconClassName:g,detailsClassName:h,artifactsClassName:v,proseClassName:y},t,n)}},[o.type,b,r,i,s,l,u,p,g,h,v,y]),R=c(()=>{let e="";if(o.message&&(e="object"==typeof o.message?JSON.stringify(o.message,null,2):o.message.trim?o.message.trim():String(o.message)),"string"==typeof e&&e.includes("%thinking_message%")){const t=Math.floor(Math.random()*ya.length);e=e.replace(/%thinking_message%/g,ya[t])}return e},[o.message]),O=c(()=>R?function(e,t,o){if("string"!=typeof e)return e;if(t===vo.THOUGHT||"string"==typeof o&&(o.toLowerCase().includes("thinking about")||o.toLowerCase().includes("i'm thinking")||o.toLowerCase().includes("💭"))){let t=e;return/\d+\.\s+.+/.test(t)&&(t=t.replace(/(\d+\.\s+.+?)(?=\s+\d+\.\s+|$)/g,"$1\n\n"),t=t.replace(/(\d+\.\s+.+\n)([^\d\n][^:])/g,"$1 $2")),t.includes(":")&&!t.includes("\n\n")&&(t=t.replace(/\b(First|Next|Then|Finally|Lastly|Additionally|Step \d+):\s+/gi,"\n\n$&")),t.includes(" - ")&&(t=t.replace(/\s+-\s+/g,"\n- ")),t}return/\d+\.\s+.+/.test(e)&&!e.includes("\n\n")?e.replace(/(\d+\.\s+.+?)(?=\s+\d+\.\s+|$)/g,"$1\n\n"):e}(R,o.type,"string"==typeof o.message?o.message:void 0):"",[R,o.type,o.message]),L=async e=>{const t="string"==typeof R?R:"";if(!t.trim())return void D({status:"error",title:N("agent.noContentToExport"),duration:2e3});const n=`Message ${Uo(o.timestamp).format("YYYY-MM-DD HH-mm-ss")}`;await E(t,{format:e,title:n,artifactRunId:B})},U="string"==typeof R&&R.trim().length>0,M=c(()=>({a:({node:t,ref:o,...n})=>{const a=n.href||"";if(a.includes("/store/objects")){if(w){const t=a.split("/store/objects/")[1]||"";return e(w,{href:a,documentId:t,children:n.children})}return e(Vo,{href:a,topLevelNav:!0,children:n.children})}if(a.includes("/store/collections")){if(x){const t=a.split("/store/collections/")[1]||"";return e(x,{href:a,collectionId:t,children:n.children})}return e(Vo,{href:a,topLevelNav:!0,children:n.children})}return e("a",{...n,target:"_blank",rel:"noopener noreferrer"})},img:({node:t,ref:o,...n})=>e("img",{...n,className:"max-w-full h-auto rounded-lg shadow-md my-3 cursor-pointer hover:shadow-lg transition-shadow",loading:"lazy",onClick:()=>n.src&&A(n.src,n.alt)})}),[A,w,x]),V=t=>{if("object"==typeof t)return e("pre",{className:"text-xs font-mono whitespace-pre-wrap overflow-x-auto bg-gray-100 dark:bg-gray-800 p-2 rounded text-gray-700",children:JSON.stringify(t,null,2)});const n=o.workflow_run_id;return!n&&"string"==typeof t&&t.includes("artifact:")&&console.warn("[MessageItem] message contains artifact references but workflow_run_id is missing!",{type:o.type,workflow_run_id:o.workflow_run_id,hasArtifact:t.includes("artifact:")}),e("div",{className:Ze("vprose prose prose-slate dark:prose-invert prose-p:leading-relaxed prose-p:my-3 prose-headings:font-semibold prose-headings:tracking-normal prose-headings:mt-6 prose-headings:mb-3 prose-h1:text-xl prose-h2:text-lg prose-h3:text-base prose-li:my-1 prose-ul:my-3 prose-ol:my-3 prose-table:my-5 prose-pre:my-4 prose-hr:my-6 max-w-none text-[15px] break-words",_.proseClassName),style:{overflowWrap:"anywhere"},children:e(Wo,{artifactRunId:n,onProposalSelect:e=>a?.(e),onProposalSubmit:e=>a?.(e),components:M,children:t})})},[W,q]=d([]),B=o.workflow_run_id,$=o.details,G=$?.outputFiles??$?.files,K=Array.isArray(G)?G.join(","):"";f(()=>{(async()=>{if(!B||!Array.isArray(G)||0===G.length)return void q([]);const e=F.current,t=I.current;try{const o=await Promise.all(G.map(async o=>{if("string"!=typeof o||!o.trim())return null;const n=o.trim(),a=n.startsWith("artifact:")?n.slice(9):n,r=a.split(".").pop()?.toLowerCase()||"",i=new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]).has(r),s=i?"inline":"attachment";try{const o=$n(B,a,s);let r;if(t)r=await t.getOrFetch(o,async()=>(await e.files.getArtifactDownloadUrl(B,a,s)).url);else{r=(await e.files.getArtifactDownloadUrl(B,a,s)).url}return{displayName:n,artifactPath:a,url:r,isImage:i}}catch(e){return console.error(`Failed to resolve artifact URL for ${a}`,e),null}}));q(o.filter(e=>!!e))}catch(e){console.error("Error loading artifact URLs from message details",e),q([])}})()},[B,K]);const H=Ca(o),{Icon:J}=_;return e("div",{className:Ze("w-full max-w-full",_.className),children:t("div",{className:Ze("border-l-4 bg-white dark:bg-gray-900 mb-4 w-full max-w-full overflow-hidden",_.borderColor,_.cardClassName),"data-workstream-id":H,children:[t("div",{className:Ze("flex items-center justify-between px-4 py-1.5",_.headerClassName),children:[t("div",{className:"flex items-center gap-1.5",children:[e("div",{className:Ze(n?"animate-fadeIn":"",_.iconClassName),children:n?e(aa,{size:"sm",color:"blue"}):e(J,{className:`size-4 ${_.iconColor}`})}),e("span",{className:Ze("text-xs font-medium text-muted",_.senderClassName),children:Bc[_.sender]?N(Bc[_.sender]):_.sender}),"main"!==H&&"all"!==H&&e(Dt,{variant:"default",className:"text-xs text-muted ml-1",children:H})]}),t("div",{className:"flex items-center gap-1.5 print:hidden",children:[e("span",{className:Ze("text-[11px] text-muted/70",_.timestampClassName),children:Uo(o.timestamp).format("HH:mm:ss")}),e(et,{variant:"ghost",size:"xs",onClick:()=>{const e=R||"",t="string"==typeof o.details?o.details:o.details?JSON.stringify(o.details,null,2):"",n=[e,t?"\n\nDetails:\n"+t:""].join("").trim();navigator.clipboard.writeText(n).then(()=>{D({status:"success",title:N("agent.copiedToClipboard"),duration:2e3})})},className:"text-muted/50 hover:text-muted h-5 w-5 p-0",title:N("agent.copyMessage"),children:e(z,{className:"size-3"})}),U&&t(mo,{trigger:e(et,{variant:"ghost",size:"xs",className:"text-muted/50 hover:text-muted h-5 w-5 p-0",title:N("agent.exportMessage"),disabled:j,children:e(T,{className:"size-3 "+(j?"animate-pulse":"")})}),children:[e(go,{onClick:()=>L(xo.pdf),children:N("agent.exportAsPdf")}),e(go,{onClick:()=>L(xo.docx),children:N("agent.exportAsWord")})]})]})]}),t("div",{className:Ze("px-4 pb-3 bg-white dark:bg-gray-900 overflow-hidden",_.contentClassName),children:[o.type===vo.REQUEST_INPUT&&o.details?.ux?(()=>{const t=o.details.ux;return e(fa,{question:"string"==typeof R?R:"",options:t.options,variant:t.variant,multiSelect:t.multiSelect,onSelect:e=>a?.(e),onMultiSelect:e=>a?.(e.join(", ")),hideBorder:!0})})():R&&e("div",{className:"message-content break-words w-full",style:{overflowWrap:"anywhere",wordBreak:"break-word"},children:V(O||R)}),W.length>0&&t("div",{className:Ze("mt-3 text-xs",_.artifactsClassName),children:[e("div",{className:"font-medium text-muted mb-1",children:"Artifacts"}),W.some(e=>e.isImage)&&e("div",{className:"mb-2 flex flex-wrap gap-3",children:W.filter(e=>e.isImage).map(({displayName:o,artifactPath:n,url:a})=>t("div",{className:"max-w-xs cursor-pointer",onClick:()=>A(a,o),children:[e("img",{src:a,alt:o,className:"max-w-full h-auto rounded-lg shadow-sm hover:shadow-md transition-shadow"}),e("div",{className:"mt-1 text-[11px] text-muted truncate",children:o})]},`${n}-preview`))}),e("div",{className:"flex flex-wrap gap-2 print:hidden",children:W.map(({displayName:t,artifactPath:o,url:n})=>e(et,{variant:"outline",size:"xs",className:"px-2 py-1 text-xs",onClick:()=>window.open(n,"_blank"),title:o,children:t},o+n))})]}),o.details&&t("div",{className:Ze("mt-2 print:hidden",_.detailsClassName),children:[t("button",{onClick:()=>k(!C),className:"text-[11px] text-muted flex items-center",children:[N(C?"agent.hideDetails":"agent.showDetails"),e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 ml-1 transition-transform "+(C?"rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),C&&e("div",{className:"mt-1 p-1.5 bg-muted border border-mixer-muted/40 rounded text-sm",children:"string"==typeof o.details?V(o.details):e("pre",{className:"text-xs font-mono whitespace-pre-wrap overflow-x-auto bg-muted p-2 rounded text-muted",children:JSON.stringify(o.details,null,2)})})]})]})]})})},(e,t)=>e.message.timestamp===t.message.timestamp&&e.showPulsatingCircle===t.showPulsatingCircle&&e.onSendMessage===t.onSendMessage&&e.messageStyleOverrides===t.messageStyleOverrides&&Wc.every(o=>e[o]===t[o]));const Kc=l.memo(function({text:o,workstreamId:n,artifactRunId:a,revealSpeed:r=300,isComplete:i=!1,timestamp:s,className:l,cardClassName:u,headerClassName:p,contentClassName:h,proseClassName:v,senderClassName:y,iconClassName:b}){const{t:w}=Vn(),[x,C]=d(0),[k,T]=d(""),N=m(null),S=m(o.length),D=m(0),P=m(s||Date.now()),A=m(o),F=m(0),I=m(performance.now()),E=m(r),j=m(0);f(()=>{const e=performance.now(),t=o.length-F.current,n=e-I.current;if(t>0&&n>30){const e=t/n*1e3,o=.2;E.current=E.current*(1-o)+e*o,E.current=Math.max(50,Math.min(2e3,E.current))}F.current=o.length,I.current=e},[o.length]),S.current=o.length,A.current=o;const _=g(()=>{let e=performance.now();const t=o=>{const n=o-e;e=o;const a=S.current-D.current;if(a<=0)return j.current=0,void(N.current=null);let r;if(i)r=Math.max(500,2*E.current);else if(a<20)r=.85*E.current;else if(a<100)r=E.current;else if(a<500){const e=(a-100)/400;r=E.current*(1+.5*e)}else r=2*E.current;const s=r*n/1e3+j.current,l=Math.floor(s);j.current=s-l,l>0&&(D.current=Math.min(D.current+l,S.current),C(D.current)),N.current=requestAnimationFrame(t)};N.current=requestAnimationFrame(t)},[i]);f(()=>(o.length>D.current&&!N.current&&_(),()=>{N.current&&(cancelAnimationFrame(N.current),N.current=null)}),[o.length,_]),f(()=>{i&&D.current<o.length&&(N.current&&(cancelAnimationFrame(N.current),N.current=null),_())},[i,o.length,_]);const R=m(null),O=m(0);f(()=>{(x>=S.current||i)&&(T(A.current.slice(0,x)),O.current=x)},[x,i]);const L=x<o.length&&!i;f(()=>{if(L)return R.current||(R.current=window.setInterval(()=>{const e=D.current;e>O.current&&(T(A.current.slice(0,e)),O.current=e)},33)),()=>{R.current&&(clearInterval(R.current),R.current=null)};R.current&&(clearInterval(R.current),R.current=null)},[L]);const U=Xe(),M=c(()=>Uo(P.current).format("HH:mm:ss"),[]),V=x<o.length,W=c(()=>{const e=k||o.slice(0,x);return V?e+"│":e},[k,o,x,V]);return o?e("div",{className:Ze("w-full max-w-full",l),children:t("div",{className:Ze("border-l-4 bg-white dark:bg-gray-900 mb-4 border-l-purple-500 w-full max-w-full overflow-hidden",u),"data-workstream-id":n,children:[t("div",{className:Ze("flex items-center justify-between px-4 py-1.5",p),children:[t("div",{className:"flex items-center gap-1.5",children:[e("div",{className:Ze("animate-fadeIn",b),children:V?e("span",{className:"size-2 rounded-full bg-blue-500 animate-pulse inline-block"}):e(fe,{className:"size-4 text-purple-600 dark:text-purple-400"})}),e("span",{className:Ze("text-xs font-medium text-muted",y),children:"Agent"}),n&&"main"!==n&&t("span",{className:"text-xs text-muted",children:["• Task ",n]})]}),t("div",{className:"flex items-center gap-2 text-muted",children:[e("span",{className:"text-[11px]",children:M}),e(et,{variant:"ghost",size:"xs",onClick:()=>{navigator.clipboard.writeText(o).then(()=>{U({status:"success",title:w("agent.copiedToClipboard"),duration:2e3})})},className:"size-6 p-0 hover:bg-gray-100 dark:hover:bg-gray-800",title:w("agent.copyMessage"),children:e(z,{className:"size-3"})})]})]}),t("div",{className:Ze("px-3 pb-2 streaming-content",V&&"streaming-active",h),children:[e("div",{className:Ze("vprose prose prose-slate dark:prose-invert prose-p:leading-relaxed prose-p:my-3 prose-headings:font-semibold prose-headings:tracking-normal prose-headings:mt-6 prose-headings:mb-3 prose-h1:text-xl prose-h2:text-lg prose-h3:text-base prose-li:my-1 prose-ul:my-3 prose-ol:my-3 prose-table:my-5 prose-pre:my-4 prose-hr:my-6 max-w-none text-[15px] break-words",v),style:{overflowWrap:"anywhere"},children:e(Wo,{artifactRunId:a,children:W})}),e("style",{children:"\n /* Ensure inline elements flow properly */\n .streaming-content p:last-child,\n .streaming-content li:last-child {\n display: inline;\n }\n /* Soft fade at reveal edge */\n .streaming-active .vprose {\n mask-image: linear-gradient(to right, black 97%, transparent 100%);\n -webkit-mask-image: linear-gradient(to right, black 97%, transparent 100%);\n }\n "})]})]})}):null}),Hc=new Set(["tool","tool_run_id","activity_group_id","event_class","tool_iteration","tool_status","tools","streamed","files","outputFiles","display_role","observation"]);function Jc(e){return e?Object.entries(e).filter(([e,t])=>!Hc.has(e)&&null!=t&&""!==t):[]}function Yc(e){return e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase())}function Qc(e){switch(e){case"completed":return"bg-green-50 dark:bg-green-900/30 text-green-700 dark:text-green-300 border-green-200 dark:border-green-800";case"running":return"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 border-blue-200 dark:border-blue-800";case"error":return"bg-red-50 dark:bg-red-900/30 text-red-700 dark:text-red-300 border-red-200 dark:border-red-800";case"warning":return"bg-yellow-50 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300 border-yellow-200 dark:border-yellow-800";default:return""}}const Zc=e=>/\.(png|jpg|jpeg|gif|webp|svg)(\?|$)/i.test(e);function Xc({files:o,className:n}){const{t:a}=Vn(),{openImage:r}=ua();return o&&0!==o.length?e("div",{className:Ze("mt-2 flex flex-wrap gap-2",n),children:o.map((o,n)=>{const i=o.split("/").pop()?.split("?")[0]||"file";return Zc(o)?e("div",{className:"cursor-pointer",onClick:()=>r(o,i),title:a("agent.clickToEnlarge"),children:e("img",{src:o,alt:i,className:"max-w-[300px] max-h-[200px] rounded border hover:opacity-80 transition-opacity hover:shadow-lg"})},n):t("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 px-2 py-1 bg-muted rounded text-xs hover:bg-muted/80",children:["📎 ",i]},n)})}):null}const ed=e=>{if(!e)return;const t=e.files??e.outputFiles;return Array.isArray(t)?t:void 0},td=e=>{const t=e.details;return e.type===vo.THOUGHT&&"tool_preamble"===t?.display_role},od=e=>{const t=e.details;if(td(e))return"assistant";if(t?.tool)return t.tool;switch(e.type){case vo.UPDATE:return"update";case vo.WARNING:return"warning";case vo.ERROR:return"error";case vo.SYSTEM:return"system";default:return"activity"}},nd=e=>td(e)?"text-[10px] px-1.5 py-0.5 rounded-md bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-gray-700 font-medium":"text-[10px] px-1.5 py-0.5 rounded-md bg-purple-50 dark:bg-purple-900/30 text-purple-700 dark:text-purple-300 border border-purple-200 dark:border-purple-800 font-medium";function ad({message:o,isExpanded:n,onToggle:a,artifactRunId:r,classNames:i={}}){const{t:s}=Vn(),[l,c]=d([]),u=Xe(),{client:p}=Qe(),g=Bn(),h=m(p);h.current=p;const v=m(g);v.current=g;const y=o.details,b=od(o),w=nd(o),x=ed(y),C="string"==typeof o.message?o.message:"";f(()=>{if(!x||0===x.length||!r)return void c([]);let e=!1;return(async()=>{const t=h.current,o=v.current,n=await Promise.all(x.map(async e=>{if(!e||"string"!=typeof e)return null;if(e.startsWith("http://")||e.startsWith("https://"))return e;const n=e.startsWith("artifact:")?e.slice(9):e,a=n.split(".").pop()?.toLowerCase()||"",i=new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]).has(a)?"inline":"attachment";try{const e=$n(r,n,i);if(o)return await o.getOrFetch(e,async()=>(await t.files.getArtifactDownloadUrl(r,n,i)).url);return(await t.files.getArtifactDownloadUrl(r,n,i)).url}catch(e){return console.error(`Failed to resolve artifact URL for ${n}`,e),null}}));e||c(n.filter(e=>!!e))})(),()=>{e=!0}},[x,r]);const k=l.filter(e=>Zc(e)),T=l.filter(e=>!Zc(e));return t("div",{className:Ze("border-b border-gray-100 dark:border-gray-800 last:border-b-0",i.itemClassName),children:[t("div",{className:Ze("flex items-start justify-between px-3 py-2 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors",i.itemHeaderClassName),onClick:a,children:[t("div",{className:"flex items-start gap-2 flex-1 min-w-0",children:[e("div",{className:"flex-shrink-0 pt-0.5",children:e(n?A:F,{className:"size-3 text-muted"})}),e("div",{className:"flex-1 min-w-0",children:C?e("span",{className:"text-xs text-foreground line-clamp-2",children:C}):t("span",{className:"text-xs text-muted italic",children:["Activity: ",b]})})]}),t("div",{className:"flex items-center gap-2 flex-shrink-0",children:[!n&&e("span",{className:Ze(w,i.toolBadgeClassName),children:b}),e(et,{variant:"ghost",size:"xs",onClick:e=>{e.stopPropagation(),(()=>{const e=[C,y?"\n\nDetails:\n"+JSON.stringify(y,null,2):""].join("").trim();navigator.clipboard.writeText(e).then(()=>{u({status:"success",title:s("agent.copiedToClipboard"),duration:2e3})})})()},className:"text-muted opacity-0 group-hover:opacity-100 transition-opacity",title:s("agent.copyMessage"),children:e(z,{className:"size-3"})})]})]}),k.length>0&&e("div",{className:"px-3 pb-1.5",children:e(Xc,{files:k})}),n&&(()=>{const n=y?.tool_status,a=Jc(y);return t("div",{className:Ze("px-4 py-2 bg-gray-50/50 dark:bg-gray-800/30",i.itemContentClassName),children:[t("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[e("span",{className:Ze(w,i.toolBadgeClassName),children:b}),n&&e("span",{className:Ze("text-[10px] px-1.5 py-0.5 rounded-md border font-medium",Qc(n)),children:n}),e("span",{className:"text-[10px] text-muted/70",children:Uo(o.timestamp).format("HH:mm:ss")})]}),a.length>0&&e("div",{className:"mb-2 space-y-0.5",children:a.map(([o,n])=>t("div",{className:"flex gap-1.5 text-xs",children:[t("span",{className:"text-muted font-medium flex-shrink-0",children:[Yc(o),":"]}),e("span",{className:"text-foreground break-all",children:"object"==typeof n?JSON.stringify(n):String(n)})]},o))}),(()=>{const t=y?.observation;return t&&t!==C?e("div",{className:"vprose prose prose-slate dark:prose-invert prose-p:leading-relaxed prose-p:my-1.5 max-w-none text-sm",children:e(Wo,{artifactRunId:r,children:t})}):null})(),T.length>0&&e(Xc,{files:T})]})})()]})}function rd({files:t,artifactRunId:o}){const[n,a]=d([]),{client:r}=Qe(),i=Bn(),s=m(r);s.current=r;const l=m(i);return l.current=i,f(()=>{if(!t||0===t.length||!o)return void a([]);let e=!1;return(async()=>{const n=s.current,r=l.current,i=await Promise.all(t.map(async e=>{if(!e||"string"!=typeof e)return null;const t=e.startsWith("artifact:")?e.slice(9):e,a=t.split(".").pop()?.toLowerCase()||"";if(new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]).has(a))return null;if(t.startsWith("http://")||t.startsWith("https://"))return t;try{const e=$n(o,t,"attachment");if(r)return await r.getOrFetch(e,async()=>(await n.files.getArtifactDownloadUrl(o,t,"attachment")).url);return(await n.files.getArtifactDownloadUrl(o,t,"attachment")).url}catch(e){return console.error(`Failed to resolve artifact URL for ${t}`,e),null}}));e||a(i.filter(e=>!!e))})(),()=>{e=!0}},[t,o]),0===n.length?null:e("div",{className:"pl-4 pr-2 pb-1.5",children:e(Xc,{files:n})})}function id({messages:t,artifactRunId:o}){const[n,a]=d([]),{client:r}=Qe(),i=Bn(),s=m(r);s.current=r;const l=m(i);return l.current=i,f(()=>{if(!o||0===t.length)return void a([]);const e=t[t.length-1].details,n=ed(e);if(!n||0===n.length)return void a([]);let r=!1;return(async()=>{const e=s.current,t=l.current,i=await Promise.all(n.map(async n=>{if(!n||"string"!=typeof n)return null;const a=n.startsWith("artifact:")?n.slice(9):n,r=a.split(".").pop()?.toLowerCase()||"";if(!new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]).has(r))return null;if(a.startsWith("http://")||a.startsWith("https://"))return a;try{const n=$n(o,a,"inline");if(t)return await t.getOrFetch(n,async()=>(await e.files.getArtifactDownloadUrl(o,a,"inline")).url);return(await e.files.getArtifactDownloadUrl(o,a,"inline")).url}catch(e){return console.error(`Failed to resolve artifact URL for ${a}`,e),null}}));r||a(i.filter(e=>!!e))})(),()=>{r=!0}},[t,o]),0===n.length?null:e("div",{className:"px-3 py-1.5 border-b border-gray-100 dark:border-gray-800",children:e(Xc,{files:n})})}const sd=h(function({messages:n,showPulsatingCircle:a=!1,toolRunId:r,toolStatus:i,preambleText:s,preambleMessage:l,rootClassName:c,headerClassName:u,senderClassName:p,toolSummaryClassName:g,toolBadgeClassName:h,itemClassName:v,itemHeaderClassName:y,itemContentClassName:b}){const w=function(e){const t=new Map,o=[];for(const n of e){const e=n.details?.tool_run_id;e?(t.has(e)||t.set(e,[]),t.get(e)?.push(n)):o.push(n)}for(const[e,n]of t){if(n.length<=1){o.push(...n);continue}n.sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime()));const e=n[n.length-1],t=n.find(e=>"running"===e.details?.tool_status);if(!t||e.message&&""!==e.message.trim()||!t.message)o.push(e);else{const n={...e,message:t.message};o.push(n)}}return o.sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),o}(n),[x,C]=d(!0),[k,T]=d(new Set),[N,S]=d(new Set),D=m(w.length),{t:P}=Vn(),j=Xe(),_=w.find(e=>e.workflow_run_id)?.workflow_run_id??w[0]?.workflow_run_id;f(()=>{const e=D.current,t=w.length;if(t>e){const o=new Set;for(let n=e;n<t;n++)o.add(n);S(o);const n=setTimeout(()=>{S(new Set)},500);return D.current=t,()=>clearTimeout(n)}D.current=t},[w.length]);const R=w[0],O=w[w.length-1],L=R.timestamp,U=O.timestamp,M=w.map(e=>od(e)),V=1===new Set(M).size?`${w.length}× ${M[0]}`:`${w.length} activity updates`,W=e=>{T(t=>{const o=new Set(t);return o.has(e)?o.delete(e):o.add(e),o})};return t("div",{className:Ze("border-l-4 overflow-hidden bg-white dark:bg-gray-900 mb-4","completed"===i?"border-l-success":"error"===i?"border-l-destructive":"warning"===i?"border-l-attention":"border-l-purple-500",c),children:[t("div",{className:Ze("flex items-center justify-between px-4 py-1.5 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors",u),onClick:()=>C(!x),children:[t("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[a?e(aa,{size:"sm",color:"blue"}):"running"===i?e("span",{className:"size-2 rounded-full bg-blue-500 inline-block"}):"completed"===i?e(I,{className:"size-4 text-success"}):"error"===i?e(E,{className:"size-4 text-destructive"}):"warning"===i?e(H,{className:"size-4 text-attention"}):e(fe,{className:"size-4 text-purple-600 dark:text-purple-400"}),s?e("span",{className:Ze("text-xs text-foreground line-clamp-2 flex-1 min-w-0",g),children:s}):t(o,{children:[e("span",{className:Ze("text-xs font-medium text-muted",p),children:"Agent"}),e("span",{className:Ze("text-xs text-purple-600 dark:text-purple-400 font-medium",g),children:V})]}),e(x?F:A,{className:"size-3 text-muted flex-shrink-0"})]}),t("div",{className:"flex items-center gap-1 flex-shrink-0",children:[s&&e("span",{className:Ze("text-[10px] text-purple-600 dark:text-purple-400 font-medium",g),children:V}),t("span",{className:"text-[11px] text-muted/70",children:[Uo(L).format("HH:mm:ss"),w.length>1&&` - ${Uo(U).format("HH:mm:ss")}`]}),e(et,{variant:"ghost",size:"xs",onClick:e=>{e.stopPropagation(),(()=>{const e=w.map(e=>{const t=e.details;return`[${od(e)}] ${e.message||""}\n${t?JSON.stringify(t,null,2):""}`}).join("\n\n---\n\n");navigator.clipboard.writeText(e).then(()=>{j({status:"success",title:P("agent.copiedAllToolCalls"),duration:2e3})})})()},className:"text-muted/50 hover:text-muted h-5 w-5 p-0",title:P("agent.copyAllToolCalls"),children:e(z,{className:"size-3"})})]})]}),e(id,{messages:w,artifactRunId:_}),x&&e("div",{className:"px-3 py-0.5 space-y-0",children:w.map((o,n)=>{const a=o.details,r=od(o),i=nd(o),s="string"==typeof o.message?o.message:"",l=N.has(n),c=k.has(n),d=ed(a);return t("div",{className:Ze("border-b border-gray-100 dark:border-gray-800 last:border-b-0",v),style:{opacity:l?0:1,transform:l?"translateX(-10px)":"translateX(0)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",transitionDelay:100*(n-(w.length-N.size))+"ms",animation:l?"slideInFade 0.4s ease-out forwards":"none",animationDelay:100*(n-(w.length-N.size))+"ms"},children:[t("div",{className:Ze("flex items-start gap-2 py-1.5 text-xs cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800/50",y),onClick:()=>W(n),title:s,children:[e("div",{className:"flex-shrink-0 pt-0.5",children:e(c?A:F,{className:"size-3 text-muted"})}),e("div",{className:"flex-1 min-w-0",children:s?e("span",{className:"text-foreground line-clamp-2",children:s}):t("span",{className:"text-muted italic",children:["Activity: ",r]})}),!c&&e("span",{className:Ze(i,"flex-shrink-0",h),children:r})]}),e(rd,{files:d,artifactRunId:_}),c&&(()=>{const n=a?.tool_status,l=Jc(a);return t("div",{className:Ze("pl-5 pr-3 pb-2 text-sm",b),children:[t("div",{className:"flex items-center gap-2 mb-1.5 flex-wrap",children:[e("span",{className:Ze(i,h),children:r}),n&&e("span",{className:Ze("text-[10px] px-1.5 py-0.5 rounded-md border font-medium",Qc(n)),children:n}),e("span",{className:"text-[10px] text-muted/70",children:Uo(o.timestamp).format("HH:mm:ss")})]}),l.length>0&&e("div",{className:"mb-1.5 space-y-0.5",children:l.map(([o,n])=>t("div",{className:"flex gap-1.5 text-xs",children:[t("span",{className:"text-muted font-medium flex-shrink-0",children:[Yc(o),":"]}),e("span",{className:"text-foreground break-all",children:"object"==typeof n?JSON.stringify(n):String(n)})]},o))}),(()=>{const t=a?.observation;return t&&t!==s?e("div",{className:"vprose prose prose-slate dark:prose-invert prose-p:leading-relaxed prose-p:my-1.5 max-w-none text-sm",children:e(Wo,{artifactRunId:_,children:t})}):null})()]})})()]},`${o.timestamp}-${n}`)})}),e("style",{children:"\n @keyframes slideInFade {\n from {\n opacity: 0;\n transform: translateX(-10px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n "}),!x&&e("div",{className:"group",children:w.map((t,o)=>e(ad,{message:t,isExpanded:k.has(o),onToggle:()=>W(o),artifactRunId:_,classNames:{toolBadgeClassName:h,itemClassName:v,itemHeaderClassName:y,itemContentClassName:b}},`${t.timestamp}-${o}`))})]})},(e,t)=>e.messages.length===t.messages.length&&(e.showPulsatingCircle===t.showPulsatingCircle&&(e.toolRunId===t.toolRunId&&(e.toolStatus===t.toolStatus&&(e.preambleText===t.preambleText&&(e.rootClassName===t.rootClassName&&(e.headerClassName===t.headerClassName&&(e.senderClassName===t.senderClassName&&(e.toolSummaryClassName===t.toolSummaryClassName&&(e.toolBadgeClassName===t.toolBadgeClassName&&(e.itemClassName===t.itemClassName&&(e.itemHeaderClassName===t.itemHeaderClassName&&(e.itemContentClassName===t.itemContentClassName&&(e.messages[0]?.timestamp===t.messages[0]?.timestamp&&e.messages[e.messages.length-1]?.timestamp===t.messages[t.messages.length-1]?.timestamp))))))))))))));function ld({workstreams:o,activeWorkstream:n,onSelectWorkstream:a,count:r,completionStatus:i}){const{t:s}=Vn(),l=new Map;l.set("all",s("agent.allMessages")),l.set("main",s("agent.main")),o.forEach((e,t)=>{"all"!==t&&"main"!==t&&"research_france"!==t&&"statistics"!==t&&l.set(t,e)}),o=l;const c=Array.from(o.entries()).sort(([e],[t])=>"all"===e?-1:"all"===t?1:"main"===e?-1:"main"===t?1:e.localeCompare(t)),d=c.length>2;return e("div",d?{className:"flex overflow-x-auto space-x-1 mb-1 bg-muted border-b border-muted/20 sticky top-0 z-10",children:c.map(([o,s])=>t("button",{className:Ze("px-2 py-1 text-xs font-medium whitespace-nowrap transition-colors flex items-center gap-1.5",n===o?"bg-info text-info border-b-2 border-info":"text-muted hover:bg-muted border-b-2 border-transparent"),onClick:()=>a(o),title:s.length>20?s:void 0,children:[s.length>20?s.substring(0,18)+"...":s,r&&r.has(o)&&r.get(o)>0&&t("div",{className:"flex items-center space-x-1",children:[e("span",{className:Ze("inline-flex items-center justify-center p-1 text-xs rounded-full",n===o?"bg-info text-info":"bg-muted text-muted"),children:r.get(o)}),i&&"all"!==o&&(i.get(o)?e(I,{className:"size-3 text-success"}):e(be,{className:"size-3 text-attention"}))]})]},o))}:{className:"py-0.5"})}function cd(e,t){return"all"===t?[...e]:"main"===t?e.filter(e=>"main"===Ca(e)):e.filter(e=>Ca(e)===t)}const dd=new Set([vo.QUESTION,vo.COMPLETE,vo.IDLE,vo.TERMINATED,vo.ERROR,vo.REQUEST_INPUT,vo.BATCH_PROGRESS]);function ud(e){const t=e.map(e=>({...e}));for(let e=1;e<t.length;e++){const o=t[e],n=t[e-1];if("tool_group"!==o.type)continue;if("single"!==n.type||n._consumed)continue;const a=n.message,r="string"==typeof a.message?a.message.trim():"";if(!r)continue;a.details?.tool||a.details?.tools||(dd.has(a.type)||(o.preambleText=r,o.preambleMessage=a,n._consumed=!0))}return t.filter(e=>!e._consumed)}const pd=(e,t)=>e.includes("%thinking_message%")?e.replace(/%thinking_message%/g,ya[t]):e,md=e=>e.type===vo.BATCH_PROGRESS&&!!e.details?.batch_id;class gd extends v{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error("Message render error:",e),{hasError:!0,error:e}}componentDidUpdate(e){this.state.hasError&&e.children!==this.props.children&&this.setState({hasError:!1,error:void 0})}render(){return this.state.hasError?t("div",{className:"border-l-4 border-l-destructive bg-destructive/10 px-4 py-2 my-2 rounded-r",children:[e("p",{className:"text-sm text-destructive font-medium",children:Mn.getFixedT(null,Un)("agent.failedToRenderMessage")}),e("p",{className:"text-xs text-muted mt-1 truncate",children:this.state.error?.message||"Unknown error"})]}):this.props.children}}const hd=(e,t)=>{if(e.type!==t.type)return!1;if(e.message!==t.message)return!1;const o=e.details,n=t.details;if("completed"!==o?.tool_status||"completed"!==n?.tool_status)return!1;const a="number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime();return("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())-a<2e3},fd=l.memo(function({messages:n,bottomRef:a,viewMode:r="stacked",isCompleted:i=!1,streamingMessages:s=new Map,onSendMessage:u,thinkingMessageIndex:p=0,messageItemClassNames:h,messageStyleOverrides:v,toolCallGroupClassNames:y,hideToolCallsInViewMode:b,streamingMessageClassNames:w,batchProgressPanelClassNames:x,artifactRunId:C,hideWorkstreamTabs:k,workingIndicatorClassName:T,messageListClassName:N,StoreLinkComponent:S,CollectionLinkComponent:D,prependFriendlyMessage:P,hiddenMessageTypes:A}){C||console.warn("[AllMessagesMixed] artifactRunId prop is missing!");const{t:F}=Vn(),z=m(null),[I,E]=d("all"),j=m(0),_=m(null),R=m(!1),O=m(!1),L=s.size>0;f(()=>{const e=z.current;if(!e)return;const t=()=>{if(O.current)return;const{scrollTop:t,scrollHeight:o,clientHeight:n}=e,a=o-t-n;R.current=a>80};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[]);const U=c(()=>{let e=0;return s.forEach(t=>{e+=t.text?.length||0}),Math.floor(e/200)},[s]),M=g(()=>{a.current&&(O.current=!0,a.current.scrollIntoView({behavior:L?"instant":"smooth"}),j.current=Date.now(),requestAnimationFrame(()=>{O.current=!1})),_.current=null},[a,L]);f(()=>{if(R.current)return;const e=Date.now()-j.current;if(e>=100)M();else if(null===_.current){const t=100-e;_.current=window.setTimeout(M,t)}return()=>{null!==_.current&&(clearTimeout(_.current),_.current=null)}},[n.length,s.size,U,M]);const V=l.useMemo(()=>{const e=[...A?.length?n.filter(e=>!A.includes(e.type)):n].sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),t=[];for(const o of e){const e=t[t.length-1];e&&Sa(e,o)||(e&&hd(e,o)||t.push(o))}return t},[n,A]),W=l.useMemo(()=>{const e=function(e){const t=new Map,o=Mn.getFixedT(null,Un);return t.set("all",o("agent.allMessages")),t.set("main",o("agent.main")),e.forEach(e=>{e.workstream_id&&"main"!==e.workstream_id&&"all"!==e.workstream_id&&!t.has(e.workstream_id)&&(t.set(e.workstream_id,e.workstream_id),console.log(`Found workstream: ${e.workstream_id}`))}),t.size<=2&&!t.has("main")&&t.set("main",o("agent.main")),console.log("Final workstreams map:",t),t}(V);return e},[V]),q=l.useMemo(()=>{const e=new Map;e.set("all",V.length);const t=cd(V,"main");return e.set("main",t.length),V.forEach(t=>{const o=Ca(t);"main"!==o&&e.set(o,(e.get(o)||0)+1)}),e},[V]),B=l.useMemo(()=>"all"===I?V:cd(V,I),[V,I]),{importantMessages:$,recentThinking:G}=l.useMemo(()=>function(e,t,o){const n=e.reduce((e,t)=>t.type!==vo.QUESTION?e:Math.max(e,xa(t.timestamp)),-1/0),a=e.filter(e=>e.type===vo.ANSWER||e.type===vo.QUESTION||e.type===vo.COMPLETE||e.type===vo.IDLE||e.type===vo.REQUEST_INPUT||e.type===vo.TERMINATED||e.type===vo.ERROR||e.type===vo.THOUGHT&&(e.details?.tool||e.details?.tools||e.details?.streamed||"tool_preamble"===e.details?.display_role)),r=a.reduce((e,t)=>Math.max(e,xa(t.timestamp)),-1/0);return{importantMessages:a,recentThinking:t||o?[]:e.filter(e=>e.type===vo.UPDATE||e.type===vo.PLAN||e.type===vo.THOUGHT&&!e.details?.tool&&!e.details?.tools&&!e.details?.streamed&&"tool_preamble"!==e.details?.display_role).filter(e=>{const t=xa(e.timestamp);return!(Number.isFinite(n)&&t<n||Number.isFinite(r)&&t<r)}).slice(-1)}}(B,i,s.size>0),[B,i,s.size]),{completeStreaming:K,incompleteStreaming:H}=l.useMemo(()=>{const e=new Map,t=[],o=B.length>0?Math.max(...B.map(e=>"number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())):-1/0;return s.forEach((n,a)=>{if(I&&"all"!==I){const e=n.workstreamId||"main";if(I!==e)return}n.startTimestamp<=o?e.set(a,n):n.text&&t.push({id:a,data:n})}),{completeStreaming:e,incompleteStreaming:t}},[s,I,B]),J=l.useMemo(()=>ud(_a(Ea(B,K,I))),[B,K,I]),Y=l.useMemo(()=>ud(_a(Ea($,K,I))),[$,K,I]),Q=c(()=>!i&&(s.size>0||G.length>0||!B.some(e=>e.type===vo.COMPLETE||e.type===vo.IDLE||e.type===vo.TERMINATED)),[i,s.size,G.length,B]),Z=c(()=>{const e=new Map,t=new Map;V.forEach(e=>{const o=Ca(e);t.has(o)||t.set(o,[]),t.get(o)?.push(e)});for(const[o,n]of t.entries())if(n.length>0){const t=n.some(e=>{if([vo.COMPLETE,vo.IDLE,vo.REQUEST_INPUT,vo.TERMINATED].includes(e.type))return!0;if(e.type===vo.UPDATE&&e.details){const t=e.details;return"completed"===t.workstream_event||"completed"===t.status||"canceled"===t.status}return!1});e.set(o,t)}return e},[V]);return t("div",{ref:z,tabIndex:0,className:"flex-1 min-h-0 h-full w-full max-w-full overflow-y-auto overflow-x-hidden px-1.5 sm:px-2.5 lg:px-3 flex flex-col relative focus:outline-none","data-testid":"all-messages-mixed",children:[e("style",{children:"\n /* Better vertical rhythm for markdown */\n .vprose > * + * {\n margin-top: 0.625rem;\n }\n .vprose > h1 + *,\n .vprose > h2 + *,\n .vprose > h3 + * {\n margin-top: 0.375rem;\n }\n /* Tables need more separation and better styling */\n .vprose table {\n margin-top: 0.875rem;\n margin-bottom: 0.875rem;\n border-collapse: collapse;\n width: 100%;\n }\n .vprose th,\n .vprose td {\n padding: 0.5rem 0.625rem;\n border: 1px solid var(--gray-6, #e5e7eb);\n text-align: left;\n }\n .vprose thead th {\n background-color: var(--gray-3, #f3f4f6);\n font-weight: 600;\n color: var(--gray-11, #6b7280);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n }\n .vprose tbody tr:hover {\n background-color: var(--gray-2, #f9fafb);\n }\n /* Dark mode table styles */\n .dark .vprose th,\n .dark .vprose td {\n border-color: var(--gray-7, #374151);\n }\n .dark .vprose thead th {\n background-color: var(--gray-4, #1f2937);\n color: var(--gray-11, #9ca3af);\n }\n .dark .vprose tbody tr:hover {\n background-color: var(--gray-3, #111827);\n }\n /* Horizontal rules as section dividers */\n .vprose hr {\n margin-top: 1rem;\n margin-bottom: 1rem;\n border-color: var(--gray-5, #d1d5db);\n }\n /* Better blockquote styling */\n .vprose blockquote {\n margin-top: 0.875rem;\n margin-bottom: 0.875rem;\n padding-left: 1rem;\n border-left-width: 3px;\n border-left-color: var(--gray-6, #d1d5db);\n color: var(--gray-11, #6b7280);\n }\n /* Code blocks */\n .vprose pre {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n padding: 0.75rem;\n border-radius: 0.5rem;\n overflow-x: auto;\n background-color: var(--color-muted-background, #f3f4f6);\n color: var(--color-foreground, #1f2937);\n }\n .vprose pre code {\n color: inherit;\n }\n .dark .vprose pre {\n color: var(--color-foreground, #f9fafb);\n }\n "}),e("div",{className:Ze("sticky top-0 z-10",k&&"hidden"),children:e(ld,{workstreams:W,activeWorkstream:I,onSelectWorkstream:E,count:q,completionStatus:Z})}),0===B.length?e("div",{className:"flex items-center justify-center h-full text-center py-8",children:e("div",{className:"flex items-center px-3 py-2 text-sm text-muted",children:F("all"===I?"agent.waitingForAgentResponse":"agent.noMessagesInWorkstream")})}):t("div",{className:Ze("flex-1 flex flex-col justify-start pb-4 space-y-2 w-full max-w-full",N),children:[P&&e(Gc,{...h,messageStyleOverrides:v,message:{type:vo.QUESTION,message:P,timestamp:B[0]?.timestamp??Date.now(),workflow_run_id:"",workstream_id:"main"}},P),t(o,"stacked"===r?{children:[J.map((t,o)=>{const n=o===J.length-1;if("tool_group"===t.type){const a=t.messages[t.messages.length-1],s="completed"===t.toolStatus||"error"===t.toolStatus||"warning"===t.toolStatus,l=!i&&n&&!wa.includes(a.type)&&!s;return b?.includes(r)?null:e(gd,{children:e(sd,{messages:t.messages,showPulsatingCircle:l,toolRunId:t.toolRunId,toolStatus:t.toolStatus,preambleText:t.preambleText,preambleMessage:t.preambleMessage,...y})},`group-${t.toolRunId||t.firstTimestamp}-${o}`)}if("streaming"===t.type)return e(Kc,{text:t.text,workstreamId:t.workstreamId,isComplete:t.isComplete,timestamp:t.startTimestamp,artifactRunId:C,...w},`streaming-${t.streamingId}-${o}`);{const a=t.message,r=!i&&n&&!wa.includes(a.type);return md(a)?e(gd,{children:e(ma,{message:a,batchData:a.details,isRunning:!a.details.completed_at,...x})},`batch-${a.details.batch_id}-${a.timestamp}-${o}`):e(gd,{children:e(Gc,{message:a,showPulsatingCircle:r,onSendMessage:u,...h,messageStyleOverrides:v,StoreLinkComponent:S,CollectionLinkComponent:D})},`${a.timestamp}-${o}`)}}),H.map(({id:t,data:o})=>e(Kc,{text:o.text,workstreamId:o.workstreamId,isComplete:o.isComplete,timestamp:o.startTimestamp,artifactRunId:C,...w},`streaming-incomplete-${t}`)),Q&&0===H.length&&t("div",{className:Ze("flex items-center gap-2 pl-3 py-1.5 border-l-2 border-l-purple-500",T),children:[e(aa,{size:"sm",color:"blue"}),e("span",{className:"text-xs text-muted",children:F("agent.working")})]})]}:{children:[Y.map((t,o)=>{const n=o===Y.length-1;if("tool_group"===t.type){const a=t.messages[t.messages.length-1],s="completed"===t.toolStatus||"error"===t.toolStatus||"warning"===t.toolStatus,l=!i&&0===G.length&&n&&!wa.includes(a.type)&&!s;return b?.includes(r)?null:e(gd,{children:e(sd,{messages:t.messages,showPulsatingCircle:l,toolRunId:t.toolRunId,toolStatus:t.toolStatus,preambleText:t.preambleText,preambleMessage:t.preambleMessage,...y})},`group-${t.toolRunId||t.firstTimestamp}-${o}`)}if("streaming"===t.type)return e(Kc,{text:t.text,workstreamId:t.workstreamId,isComplete:t.isComplete,timestamp:t.startTimestamp,artifactRunId:C,...w},`streaming-${t.streamingId}-${o}`);{const a=t.message,r=!i&&0===G.length&&n&&!wa.includes(a.type);return md(a)?e(gd,{children:e(ma,{message:a,batchData:a.details,isRunning:!a.details.completed_at,...x})},`batch-${a.details.batch_id}-${a.timestamp}-${o}`):e(gd,{children:e(Gc,{message:a,showPulsatingCircle:r,onSendMessage:u,...h,messageStyleOverrides:v,StoreLinkComponent:S,CollectionLinkComponent:D})},`${a.timestamp}-${o}`)}}),G.map((t,o)=>e(Kc,{text:pd(t.message||"",p),workstreamId:Ca(t),isComplete:o<G.length-1,timestamp:t.timestamp,artifactRunId:C,...w},`thinking-${t.timestamp}-${o}`)),H.map(({id:t,data:o})=>e(Kc,{text:o.text,workstreamId:o.workstreamId,isComplete:o.isComplete,timestamp:o.startTimestamp,artifactRunId:C,...w},`streaming-incomplete-${t}`)),Q&&0===G.length&&0===H.length&&t("div",{className:Ze("flex items-center gap-2 pl-3 py-1.5 border-l-2 border-l-purple-500",T),children:[e(aa,{size:"sm",color:"blue"}),e("span",{className:"text-xs text-muted",children:F("agent.working")})]})]}),e("div",{ref:a,className:"h-2"})]})]})});class vd{_listeners=new Set;snapshot;constructor(e){this.snapshot=new yd(e,this)}subscribe=e=>(this._listeners.add(e),()=>{this._listeners.delete(e)});getSnapshot=()=>this.snapshot;notify(){this._listeners.forEach(e=>e())}}class yd{vertesia;_interactive=!0;_debug_mode=!1;_non_blocking_subagents=!0;_checkpoint_tokens;_visibility;_user_channels;_collection;_start=!1;_preserveRunValues=!1;_interaction;_environment;_model="";_model_options;_tool_names=[];_data;_mode="start";_scheduledWorkflowConfig;_interactionParamsSchema;_schemaVersion=0;_inputValidator;_store;constructor(e,t){this.vertesia=e,this._store=t}onStateChanged(){const e=this.clone();this._store.snapshot=e,this._store.notify()}clone(){const e=new yd(this.vertesia,this._store);return e._interactionParamsSchema=this._interactionParamsSchema,e._schemaVersion=this._schemaVersion,e._interaction=this._interaction,e._data=this._data,e._environment=this._environment,e._model=this._model,e._model_options=this._model_options?{...this._model_options}:void 0,e._tool_names=[...this._tool_names],e._interactive=this._interactive,e._debug_mode=this._debug_mode,e._non_blocking_subagents=this._non_blocking_subagents,e._checkpoint_tokens=this._checkpoint_tokens,e._visibility=this._visibility,e._user_channels=this._user_channels?[...this._user_channels]:void 0,e._inputValidator=this._inputValidator,e._start=this._start,e._collection=this._collection,e._preserveRunValues=this._preserveRunValues,e._mode=this._mode,e._scheduledWorkflowConfig=this._scheduledWorkflowConfig,e}set mode(e){e!==this._mode&&(this._mode=e,"schedule"!==e||this._scheduledWorkflowConfig||(this._scheduledWorkflowConfig={name:"",description:"",cron_expression:"0 9 * * *",timezone:"UTC"}),this.onStateChanged())}get mode(){return this._mode}set scheduledWorkflowConfig(e){this._scheduledWorkflowConfig=e,this.onStateChanged()}get scheduledWorkflowConfig(){return this._scheduledWorkflowConfig}updateScheduledWorkflowConfig(e){this._scheduledWorkflowConfig={...this._scheduledWorkflowConfig,...e},this.onStateChanged()}get interactive(){return this._interactive}set interactive(e){e!==this._interactive&&(this._interactive=e,this.onStateChanged())}get debug_mode(){return this._debug_mode}set debug_mode(e){e!==this._debug_mode&&(this._debug_mode=e,this.onStateChanged())}get non_blocking_subagents(){return this._non_blocking_subagents}set non_blocking_subagents(e){e!==this._non_blocking_subagents&&(this._non_blocking_subagents=e,this.onStateChanged())}get checkpoint_tokens(){return this._checkpoint_tokens}set checkpoint_tokens(e){e!==this._checkpoint_tokens&&(this._checkpoint_tokens=e,this.onStateChanged())}get visibility(){return this._visibility}set visibility(e){e!==this._visibility&&(this._visibility=e,this.onStateChanged())}get user_channels(){return this._user_channels}set user_channels(e){this._user_channels=e,this.onStateChanged()}get collection(){return this._collection}set collection(e){e!==this._collection&&(this._collection=e,this.onStateChanged())}get search_scope(){return this._collection?Io.Collection:void 0}async restoreConversation(e){let t=e.interaction;if(e.version){/^[a-fA-F0-9]{24}$/.test(t)||(t=`${t}@${e.version}`)}const o=await this.vertesia.interactions.catalog.resolve(t),n=o.runtime?.environment||e.config?.environment,a=e.config?.model,r=await(n?this.vertesia.environments.retrieve(n).catch(()=>{}):Promise.resolve(void 0));this._data=e.data,this.interaction=o,null!=e.interactionParamsSchema&&(this.interactionParamsSchema=e.interactionParamsSchema),this._tool_names=e.tool_names||[],this._interactive=e.interactive,this._debug_mode=e.debug_mode??!1,this._non_blocking_subagents=e.non_blocking_subagents??!0,this._checkpoint_tokens=e.checkpoint_tokens,this._user_channels=e.user_channels,this._model_options=e.config?.model_options,this.collection=e.collection_id??void 0,this.environment=r,a&&(this._model=a),this.onStateChanged()}get interaction(){return this._interaction}set interaction(e){if(e?.id!==this._interaction?.id){if(this._interaction=e,this.interactionParamsSchema=e?Eo(e.prompts):void 0,this._inputValidator=void 0,e&&!this._preserveRunValues&&(this._model_options=e.model_options,e.runtime?.environment)){const t=e.runtime.environment;this.vertesia.environments.retrieve(t).then(e=>this.environment=e)}this.onStateChanged()}}get environment(){return this._environment}set environment(e){if(e?.id!==this._environment?.id){if(this._environment=e,!this._preserveRunValues){const t=this.interaction?.runtime?.model;t&&e&&jo(t,e.provider)?this._model=t:this._model=e?.default_model&&jo(e.default_model,e.provider)?e.default_model:""}this.onStateChanged()}}get model(){return this._model}set model(e){e!==this._model&&(this._model=e||"",this.onStateChanged())}get model_options(){return this._model_options}set model_options(e){this._model_options=e,this.onStateChanged()}get tool_names(){return this._tool_names}set tool_names(e){this._tool_names=e,this.onStateChanged()}get data(){return this._data}set data(e){this._data=e,this.onStateChanged()}set run(e){console.log("run",e),this.onStateChanged()}set start(e){this._start!==e&&(this._start=e,this.onStateChanged())}markStarted(){this.start=!0}setMode(e){this.mode=e}setInteraction(e){this.interaction=e}setEnvironment(e){this.environment=e}setModel(e){this.model=e}setModelOptions(e){this.model_options=e}setToolNames(e){this.tool_names=e}setCollection(e){this.collection=e}setInteractive(e){this.interactive=e}setDebugMode(e){this.debug_mode=e}setUserChannels(e){this.user_channels=e}setCheckpointTokens(e){this.checkpoint_tokens=e}setVisibility(e){this.visibility=e}setData(e){this.data=e}setPreserveRunValues(e){this.preserveRunValues=e}get start(){return this._start}get preserveRunValues(){return this._preserveRunValues}set preserveRunValues(e){this._preserveRunValues=e}get schemaVersion(){return this._schemaVersion}get interactionParamsSchema(){return this._interactionParamsSchema}set interactionParamsSchema(e){this._interactionParamsSchema!==e&&(this._interactionParamsSchema=e,this._schemaVersion+=1,e&&(this._data=this.initializeBooleanDefaults(this._data||{},e)),this.onStateChanged())}initializeBooleanDefaults(e,t){if(!t.properties)return e;const o={...e};for(const[e,n]of Object.entries(t.properties)){const t=n;"boolean"===t.type&&void 0===o[e]?o[e]=!1:"object"===t.type&&t.properties&&(o[e]=this.initializeBooleanDefaults(o[e]||{},t))}return o}reset(){if(this._start=!1,this._interactive=!0,this._debug_mode=!1,this._non_blocking_subagents=!0,this._checkpoint_tokens=void 0,this._visibility=void 0,this._user_channels=void 0,this._collection=void 0,this._preserveRunValues=!1,this._model="",this._model_options=void 0,this._environment=void 0,this._tool_names=[],this._interaction=void 0,this._data=void 0,this._interactionParamsSchema=null,this._inputValidator=void 0,this.model=void 0,this.environment=void 0,this.onStateChanged(),location.hash){const e=window.location.origin+window.location.pathname+window.location.search;history.replaceState(null,"",e),location.hash=""}}validateInput(){if(!this._interactionParamsSchema)return{isValid:!0};if(!this._inputValidator||this._inputValidator.schema!==this._interactionParamsSchema){const e=new pn({strict:!1});this._inputValidator={validate:e.compile(this._interactionParamsSchema),schema:this._interactionParamsSchema}}const e=this._data||{};if(!this._inputValidator.validate(e)){return{isValid:!1,errorMessage:this._inputValidator.validate.errors?this._inputValidator.validate.errors.map(e=>`${e.instancePath}: ${e.message}`).join(", "):"Invalid payload data"}}return{isValid:!0}}}const bd=u(void 0);function wd({children:t}){const{client:o}=Qe(),[n]=d(()=>new vd(o)),a=y(n.subscribe,n.getSnapshot);return e(bd.Provider,{value:a,children:t})}function xd(){const e=p(bd);if(!e)throw new Error("usePayloadBuilder must be used within a PayloadProvider");return e}function Cd({title:o,isTerminal:n=!1,onClose:a,isModal:r,agentRunId:i,workflowRunId:s,viewMode:l,onViewModeChange:c,showPlanPanel:d,hasPlan:u=!1,showPlanButton:p=!0,onTogglePlanPanel:m,onDownload:g,resetWorkflow:h,onExportPdf:f,onShowDetails:v,onRestart:y,onClone:b,isReceivingChunks:w=!1,className:x}){const{t:C}=Vn(),k=kd(i,y);return e(wd,{children:t("div",{className:Ze("flex flex-wrap items-end justify-between py-1.5 px-2 border-b shadow-sm flex-shrink-0",x),children:[t("div",{className:"flex flex-wrap items-center space-x-2",children:[t("div",{className:"flex items-center space-x-1",children:[e(fe,{className:"size-5 text-muted"}),e("span",{className:"font-medium",children:o})]}),t("span",{className:"text-xs text-muted ml-1 flex items-center gap-1.5",children:["(Agent Run ID: ",i,")",e("span",{className:Ze("w-2 h-2 rounded-full transition-colors duration-200",w?"bg-purple-500 shadow-[0_0_6px_2px_rgba(168,85,247,0.6)]":"bg-gray-400")})]})]}),t("div",{className:"flex justify-end items-center space-x-2 ml-auto",children:[t("div",{className:"flex items-center space-x-1 bg-muted rounded p-0.5 mt-2 lg:mt-0",children:[e(et,{variant:"stacked"===l?"outline":"ghost",size:"xs",onClick:()=>c("stacked"),children:C("agent.details")}),e(et,{variant:"sliding"===l?"outline":"ghost",size:"xs",onClick:()=>c("sliding"),children:C("agent.summary")})]}),p&&t("div",{className:"relative",children:[u&&!d&&e("span",{className:"absolute -top-1 -right-1 w-2.5 h-2.5 bg-primary rounded-full border border-border z-10"}),t(et,{size:"sm",variant:d?"primary":"secondary",onClick:m,className:"transition-all duration-200 rounded-md",title:C("agent.toggleRightSidebar"),children:[e(we,{className:"size-4 mr-1.5"}),e("span",{className:"font-medium text-xs",children:C(d?"agent.hideSidebar":"agent.showSidebar")})]})]}),y&&n&&t(et,{size:"sm",variant:"secondary",onClick:k,className:"transition-all duration-200 rounded-md",title:C("agent.continueConversation"),children:[e(ve,{className:"size-4 mr-1.5"}),e("span",{className:"font-medium text-xs",children:C("agent.continueConversation")})]}),e(Td,{agentRunId:i,workflowRunId:s,isModal:r,isTerminal:n,onClose:a,onDownload:g,resetWorkflow:h,onExportPdf:f,onShowDetails:v,onRestart:y,onClone:b}),a&&!r&&e(et,{size:"xs",variant:"ghost",onClick:a,children:e(xe,{className:"size-4"})})]})]})})}function kd(e,t){const{t:o}=Vn(),n=Xe(),{client:a}=Qe();return async()=>{try{const r=await a.agents.restart(e);n({status:"success",title:o("agent.conversationContinued"),duration:2e3}),t?.(r)}catch(e){n({status:"error",title:o("agent.failedToContinueConversation"),duration:2e3})}}}function Td({agentRunId:o,workflowRunId:n,isModal:a,isTerminal:r,onClose:i,onDownload:s,resetWorkflow:l,onExportPdf:c,onShowDetails:d,onRestart:u,onClone:p}){const{t:m}=Vn(),g=Xe(),{client:h}=Qe(),f=xd(),v=kd(o,u);return e(mo,{align:"right",trigger:e(et,{size:"xs",variant:"ghost",title:m("agent.moreActions"),children:e(Ne,{className:"size-4"})}),children:t(ho,{label:"Actions",children:[a&&t(go,{onClick:()=>{return e=`/store/agent-runner/${o}`,window.open(e,"_blank"),e;var e},children:[e(P,{className:"size-3.5 text-muted"})," ",m("agent.openInNewTab")]}),t(go,{onClick:()=>{navigator.clipboard.writeText(o),g({status:"success",title:m("agent.agentRunIdCopied"),duration:2e3})},children:[e(z,{className:"size-3.5 text-muted"})," ",m("agent.copyAgentRunId")]}),t(go,{onClick:()=>{navigator.clipboard.writeText(n),g({status:"success",title:m("agent.workflowRunIdCopied"),duration:2e3})},children:[e(z,{className:"size-3.5 text-muted"})," ",m("agent.copyWorkflowRunId")]}),d&&t(go,{onClick:d,children:[e(Ce,{className:"size-3.5 text-muted"})," ",m("agent.details")]}),t(go,{onClick:()=>{s?s():ka(h,o).then(e=>window.open(e,"_blank"))},children:[e(ke,{className:"size-3.5 text-muted"})," ",m("agent.downloadConversation")]}),c&&t(go,{onClick:c,children:[e(ke,{className:"size-3.5 text-muted"})," ",m("agent.exportAsPdf")]}),i&&a&&t(go,{onClick:i,children:[e(xe,{className:"size-3.5 text-muted"})," ",m("agent.close")]}),u&&r&&t(go,{onClick:v,children:[e(ve,{className:"size-3.5 text-muted"})," ",m("agent.continueConversation")]}),p&&t(go,{onClick:async()=>{try{const e=await h.agents.fork(o);g({status:"success",title:m("agent.conversationCloned"),duration:2e3}),p?.(e)}catch(e){g({status:"error",title:m("agent.failedToCloneConversation"),duration:2e3})}},children:[e(Te,{className:"size-3.5 text-muted"})," ",m("agent.cloneConversation")]}),!r&&t(go,{onClick:async()=>{try{return await h.agents.terminate(o,"cancel"),g({status:"success",title:m("agent.workflowCancelled"),duration:2e3}),f.reset(),l?.(),!0}catch(e){return g({status:"error",title:m("agent.failedToCancelWorkflow"),duration:2e3}),!1}},variant:"destructive",children:[e(xe,{className:"size-3.5"})," ",m("agent.cancelWorkflow")]})]})})}function Nd({onSend:o,onStop:n,disabled:a=!1,isSending:r=!1,isStopping:i=!1,isStreaming:s=!1,isCompleted:l=!1,activeTaskCount:c=0,placeholder:u,onFilesSelected:p,uploadedFiles:h=[],onRemoveFile:v,acceptedFileTypes:y,maxFiles:b=5,processingFiles:w,hasProcessingFiles:x=!1,renderDocumentSearch:C,selectedDocuments:k=[],onRemoveDocument:T,hideObjectLinking:N=!1,hideFileUpload:S=!1,className:D}){const{t:P}=Vn(),A=u??P("agent.typeYourMessage"),F=m(null),z=m(null),[I,E]=d(""),[j,_]=d(!1),[R,O]=d(!1),[L,U]=d(!1);f(()=>{!a&&l&&F.current?.focus()},[a,l]);const M=g(e=>{if(!p)return;const t=Array.from(e),o=b-h.length,n=t.slice(0,o);n.length>0&&p(n)},[p,b,h.length]),V=g(e=>{e.preventDefault(),e.stopPropagation(),p&&U(!0)},[p]),W=g(e=>{e.preventDefault(),e.stopPropagation(),U(!1)},[]),q=g(e=>{e.preventDefault(),e.stopPropagation(),U(!1),e.dataTransfer?.files&&e.dataTransfer.files.length>0&&M(e.dataTransfer.files)},[M]),B=g(e=>{if(!p)return;const t=e.clipboardData?.items;if(!t)return;const o=[];for(let e=0;e<t.length;e++){const n=t[e];if("file"===n.kind){const e=n.getAsFile();if(e)if(!n.type.startsWith("image/")||e.name&&"image.png"!==e.name)o.push(e);else{const t=n.type.split("/")[1]||"png",a=new File([e],`pasted-image-${Date.now()}.${t}`,{type:e.type});o.push(a)}}}o.length>0&&M(o)},[p,M]),$=g(e=>{e.target.files&&e.target.files.length>0&&(M(e.target.files),e.target.value="")},[M]),G=g(()=>{z.current?.click()},[]),K=g(()=>O(!1),[]),H=g(e=>O(!1),[]),J=()=>{const e=I.trim();!e||a||r||(o(e),E(""))},Y=()=>{n&&!i&&n()},Q=m(0),Z=g(()=>{const e=F.current;e&&(e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,200)}px`)},[]);f(()=>{Z()},[I,Z]);return t("div",{className:Ze("p-3 border-t border-muted flex-shrink-0 transition-all fixed lg:sticky bottom-0 left-0 right-0 lg:left-auto lg:right-auto w-full bg-background z-10",L&&"bg-blue-50 dark:bg-blue-900/20 border-blue-400",D),style:{minHeight:"120px"},onDragOver:V,onDragLeave:W,onDrop:q,children:[L&&e("div",{className:"absolute inset-0 flex items-center justify-center bg-blue-100/80 dark:bg-blue-900/40 rounded-lg z-10 pointer-events-none",children:t("div",{className:"text-blue-600 dark:text-blue-400 font-medium flex items-center gap-2",children:[e(oe,{className:"size-5"}),P("agent.dropFilesToUpload")]})}),p&&e("input",{ref:z,type:"file",multiple:!0,accept:y,onChange:$,className:"hidden"}),!S&&(h.length>0||w&&w.size>0)&&e("div",{className:"flex flex-col gap-2 mb-3",children:t("div",{children:[t("div",{className:"flex items-center gap-1 mb-1",children:[e("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400",children:P("agent.uploadedFiles")}),e(ot,{description:P("agent.filesUploadedDescription"),placement:"top",size:"md",children:e(Se,{className:"size-3 text-gray-400 dark:text-gray-500"})})]}),t("div",{className:"flex flex-wrap gap-2",children:[w&&Array.from(w.values()).map(o=>t("div",{className:Ze("flex items-center gap-1.5 px-2 py-1 rounded-md text-sm",o.status===_o.ERROR?"bg-destructive/10 text-destructive":o.status===_o.READY?"bg-success/10 text-success":"bg-attention/10 text-attention"),children:[e(De,{className:Ze("size-3.5",(o.status===_o.UPLOADING||o.status===_o.PROCESSING)&&"animate-pulse")}),e("span",{className:"max-w-[120px] truncate",children:o.name}),e("span",{className:"text-xs opacity-70",children:o.status===_o.UPLOADING?P("agent.uploading"):o.status===_o.PROCESSING?P("agent.processing"):o.status===_o.ERROR?P("agent.error"):o.status===_o.READY?P("agent.ready"):o.status})]},o.id)),h.map(o=>t("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-success/10 text-success rounded-md text-sm",children:[e(De,{className:"size-3.5"}),e("span",{className:"max-w-[120px] truncate",children:o.name}),v&&e("button",{onClick:()=>v(o.id),className:"ml-1 p-0.5 hover:bg-success/20 rounded",children:e(xe,{className:"size-3"})})]},o.id))]})]})}),k.length>0&&t("div",{className:"mb-3",children:[t("div",{className:"flex items-center gap-1 mb-1",children:[e("span",{className:"text-xs font-medium text-blue-600 dark:text-blue-400",children:P("agent.documentAttachments")}),e(ot,{description:P("agent.documentAttachmentsDescription"),placement:"top",size:"md",children:e(Se,{className:"size-3 text-blue-400 dark:text-blue-500"})})]}),e("div",{className:"flex flex-wrap gap-2",children:k.map(o=>t("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-blue-100 dark:bg-blue-900/30 rounded-md text-sm text-blue-700 dark:text-blue-300",children:[e(De,{className:"size-3.5"}),e("span",{className:"max-w-[120px] truncate",children:o.name}),T&&e("button",{onClick:()=>T(o.id),className:"ml-1 p-0.5 hover:bg-blue-200 dark:hover:bg-blue-800 rounded",children:e(xe,{className:"size-3"})})]},o.id))})]}),(p||C)&&t("div",{className:"flex gap-2 mb-2",children:[p&&t(et,{variant:"outline",size:"sm",onClick:G,disabled:a||h.length>=b,className:"text-xs",children:[e(oe,{className:"size-3.5 mr-1.5"}),P("agent.upload")]}),C&&t(et,{variant:"outline",size:"sm",onClick:()=>O(!0),disabled:a,className:"text-xs",children:[e(De,{className:"size-3.5 mr-1.5"}),P("agent.searchDocuments"),k.length>0&&e("span",{className:"ml-1.5 inline-flex items-center justify-center px-1.5 py-0.5 text-[10px] font-medium rounded-full bg-blue-600 text-white",children:k.length})]})]}),t("div",{className:"flex items-end space-x-2",children:[t("div",{className:"flex flex-1 items-end space-x-1",children:[e(Kt,{ref:F,value:I,onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){e.preventDefault();I.trim().length>0&&J()}if("Escape"===e.key&&s&&n){const e=Date.now();e-Q.current<500?(Y(),Q.current=0):Q.current=e}},onChange:e=>E(e.target.value),onPaste:B,disabled:a,placeholder:s?P("agent.agentWorking"):p?P("agent.askAnything"):A,rows:2,style:{minHeight:"60px",maxHeight:"200px"}}),!N&&e(et,{variant:"ghost",className:"rounded-full",disabled:!l,onClick:()=>_(!0),alt:P("agent.linkObject"),children:e(Pe,{className:"size-4"})})]}),s&&n&&!I.trim()?t(et,{onClick:Y,disabled:i,className:"px-4 py-2.5 bg-red-600 hover:bg-red-700 text-white",title:P("agent.stopAgent"),children:[i?e(ut,{size:"sm",className:"mr-2"}):e(Ae,{className:"size-4 mr-2"})," ",e("span",{children:P("agent.stop")})]}):t(et,{onClick:J,disabled:a||r||!I.trim()||x,className:"px-4 py-2.5",title:x?P("agent.waitForFiles"):void 0,children:[r?e(ut,{size:"sm",className:"mr-2"}):e(Fe,{className:"size-4 mr-2"}),e("span",{children:P(x?"agent.processing":"agent.send")})]})]}),e("div",{className:"text-xs text-muted mt-2 text-center",children:c>0?t("div",{className:"flex items-center justify-center",children:[e(ze,{className:"h-3 w-3 mr-1 text-attention"}),e("span",{children:P("agent.activeWorkstreams",{count:c})})]}):P(s?"agent.agentWorkingStop":a?"agent.agentProcessing":"agent.enterToSend")}),t(pt,{isOpen:j,onClose:()=>_(!1),className:"min-w-[60vw]",children:[e(mt,{children:P("agent.linkObject")}),e(gt,{className:"pb-6",children:e(dl,{onChange:e=>{const t=`[${e.properties?.title||e.name||"Object"}](store:${e.id})`,o=I||"",n=F.current?.selectionStart||o.length,a=o.substring(0,n)+t+o.substring(n);E(a),_(!1),setTimeout(()=>{if(F.current){F.current.focus();const e=n+t.length;F.current.setSelectionRange(e,e)}},100)}})})]}),C?.({isOpen:R,onClose:K,onSelect:H})]})}const Sd=h(function({code:t}){const o=c(()=>{try{const e=JSON.parse(t);return"vega-lite"===e?.library&&e?.spec&&"object"==typeof e.spec?e:"string"==typeof e?.$schema&&e.$schema.includes("vega")?{library:"vega-lite",spec:e}:null}catch{return null}},[t]);return o?e(Xn,{spec:o}):null}),Dd=h(function({code:t}){const o=c(()=>{try{return{library:"vega-lite",spec:JSON.parse(t)}}catch{return null}},[t]);return o?e(Xn,{spec:o}):null}),Pd={chart:Sd,"vega-lite":Dd,vegalite:Dd,"fusion-fragment":Oo};function Ad({url:t,code:o}){const[n,a]=d(null);return f(()=>{import(t).then(e=>{a(()=>e.default)}).catch(e=>{console.error("Failed to load remote widget component from ",t,e)})},[t]),n?e(n,{code:o}):null}function Fd({children:t}){const{client:o}=Qe(),[n,a]=d(Pd);return f(()=>{(async function(t){const o=await t.apps.getInstalledApps("tools"),n=new Set;for(const e of o){if(e.manifest.tool_collections&&e.manifest.tool_collections.length>0)for(const t of e.manifest.tool_collections||[]){const e=Ro(t).url;if(e.startsWith("http://")||e.startsWith("https://")){const t=e.indexOf("/api/");if(t>0){const o=e.substring(0,t);n.add(o+"/api/widgets")}}}e.manifest.endpoint&&e.manifest.capabilities?.includes("tools")&&n.add(new URL("/api/widgets",e.manifest.endpoint).toString())}const a=await Promise.all(Array.from(n).map(t=>fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch widgets: ${e.status} ${e.statusText}`);return e.json()}).then(t=>{const o=[],n=t.widgets;for(const[t,a]of Object.entries(n))o.push({name:t,component:t=>e(Ad,{url:a.url,code:t.code})});return o}).catch(()=>(console.error("Failed to fetch skill widgets from ",t),null)))),r={};for(const e of a.flat())e&&(r[e.name]=e.component);return r})(o).then(e=>{a({...Pd,...e})})},[]),e(en,{components:n,children:t})}const zd=l.memo(function({plan:n,workstreamStatus:a,isOpen:r,onClose:i,plans:s=[],activePlanIndex:l=0,onChangePlan:c=()=>{}}){const{t:d}=Vn();return r?e("div",{className:"h-full overflow-hidden",children:t("div",{className:"p-3 overflow-y-auto h-full",children:[t("div",{className:"mb-3 p-2 bg-info rounded-md border border-info",children:[e("div",{className:"text-xs font-medium text-info mb-1",children:d("agent.taskProgress")}),e("div",{className:"flex items-center gap-2",children:(()=>{const r=n.plan||[],i=r.length;let s=0;i>0&&r.forEach(e=>{if(e&&e.id){const t=e.id.toString();"completed"===a.get(t)&&s++}});const l=i>0?Math.round(s/i*100):0;return t(o,{children:[e("div",{className:"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2.5",children:e("div",{className:"bg-info h-2.5 rounded-full transition-all duration-300",style:{width:`${l}%`}})}),e("span",{className:"text-xs text-foreground font-medium whitespace-nowrap",children:i>0?`${s}/${i}`:"0/0"})]})})()})]}),s.length>1&&t("div",{className:"mb-3 flex items-center justify-between",children:[e(et,{variant:"ghost",onClick:()=>c(Math.min(s.length-1,l+1)),disabled:l>=s.length-1,children:d("agent.olderPlan")}),e("div",{className:"text-xs text-muted",children:s[l]?.timestamp?new Date(s[l].timestamp).toLocaleTimeString():d("agent.unknownTime")}),e(et,{variant:"ghost",onClick:()=>c(Math.max(0,l-1)),disabled:l<=0,children:d("agent.newerPlan")})]}),t("div",{className:"rounded-md border border-muted/30",children:[e("div",{className:"p-2 border-b border-muted/30 bg-muted",children:e("div",{className:"font-medium text-xs",children:d("agent.stepByStepPlan")})}),e("div",{className:"divide-y divide-muted/20 max-h-[calc(100vh-350px)] overflow-y-auto",children:n.plan&&n.plan.length>0?n.plan.map((o,n)=>{const r=o.id?o.id.toString():`task-${n}`,i=o.goal||`Task ${n+1}`;let s=o.status||"pending";a.has(r)&&(s=a.get(r));let l=Ie,c="text-muted";return"in_progress"===s?(l=be,c="text-info"):"completed"===s&&(l=I,c="text-success"),t("div",{className:"flex p-3 my-1",children:[e("div",{className:"mr-2 mt-0.5 flex-shrink-0 text-muted",children:r}),t("div",{className:"w-full",children:[e("div",{className:"text-sm font-medium mb-2 text-muted",children:i}),t("div",{className:"mt-1 flex justify-end items-center",children:[e("div",{className:`mr-2 mt-0.5 flex-shrink-0 ${c}`,children:e(l,{className:"size-3.5"})}),e(Dt,{variant:"completed"===s?"success":"in_progress"===s?"info":"default",children:d("completed"===s?"agent.completed":"in_progress"===s?"agent.inProgress":"agent.pending")})]})]})]},n)}):t("div",{className:"p-3 text-center text-muted italic",children:[e(E,{className:"size-4 mx-auto mb-2 text-attention"}),e("p",{className:"text-xs",children:d("agent.noPlanDetected")}),e("p",{className:"text-xs mt-1",children:d("agent.plansWillAppear")})]})})]}),(()=>{const o=new Set((n.plan||[]).filter(e=>e&&e.id).map(e=>e.id.toString())),r=Array.from(a.entries()).filter(([e])=>"main"!==e&&!o.has(e));return r.length>0?t("div",{className:"mt-3 rounded-md border border-gray-200 dark:border-gray-800",children:[e("div",{className:"p-2 border-b border-gray-200 dark:border-gray-800 bg-gray-50 dark:bg-gray-900/50",children:e("div",{className:"font-medium text-xs",children:d("agent.workstreams")})}),e("div",{className:"p-3",children:e("div",{className:"grid grid-cols-1 gap-2",children:r.map(([o,n])=>{let a=Ie,r="text-gray-400",i="bg-gray-100 dark:bg-gray-800",s=d("agent.pending");return"in_progress"===n?(a=be,r="text-info",i="bg-info/20",s=d("agent.inProgress")):"completed"===n&&(a=I,r="text-success",i="bg-success/20",s=d("agent.completed")),t("div",{className:Ze("flex items-center p-1.5 rounded",i),children:[e("div",{className:`mr-1.5 ${r}`,children:e(a,{className:"h-3.5 w-3.5"})}),e("div",{className:"flex-1",children:e("span",{className:"text-xs font-medium text-gray-800 dark:text-gray-300",children:o})}),e("span",{className:"text-xs font-medium",children:s})]},o)})})})]}):null})()]})}):null});function Id({documents:t,activeId:o,onSelect:n}){return 0===t.length?null:e("div",{className:"flex items-center gap-1 px-2 py-1.5",children:e(mo,{align:"right",trigger:e(et,{variant:"ghost",size:"xs",title:"All opened documents",className:"flex items-center gap-1.5 max-w-[220px] text-xs h-7 px-2",children:e(Ee,{className:"size-3 shrink-0"})}),children:t.map(t=>e(go,{onClick:()=>n(t.id),className:t.id===o?"font-medium":"",children:e("span",{className:"truncate max-w-[200px]",children:t.title})},t.id))})})}const Ed=l.memo(function({isOpen:o,documents:n,activeDocumentId:a,onSelectDocument:r,onCloseDocument:i,onUpdateDocumentTitle:s,refreshKey:l,runId:c}){const{client:u}=Qe(),{t:p}=Vn(),[m,h]=d(null),[v,y]=d(!1),[b,w]=d(null),[x,C]=d(null),k=g(async e=>{y(!0),w(null);try{const[t,o]=await Promise.all([u.store.objects.getObjectText(e),u.store.objects.retrieve(e)]);h(t.text??null);const n=o.name;C(n),n&&s?.(e,n)}catch(e){const t=e instanceof Error?e.message:p("agent.failedToLoadDocument");w(t),h(null)}finally{y(!1)}},[u,s]);return f(()=>{a&&o&&k(a)},[a,l,o,k]),o&&0!==n.length?t("div",{className:"h-full shadow-xl border border-muted/20 overflow-hidden flex flex-col",children:[t("div",{className:"flex items-center justify-between px-3 py-2 border-b border-muted/20 shrink-0",children:[t("div",{className:"flex items-center gap-2 min-w-0",children:[e(De,{className:"size-4 text-muted shrink-0"}),e("h3",{className:"font-bold text-sm truncate",children:x||p("agent.document")})]}),t("div",{className:"flex items-center gap-1",children:[e(Id,{documents:n,activeId:a,onSelect:r}),a&&e(Vo,{href:`/store/objects/${a}#overview`,topLevelNav:!0,className:"inline-flex items-center justify-center rounded-md text-sm font-medium h-8 w-8 hover:bg-muted/20 text-muted hover:text-foreground",children:e(ot,{description:p("agent.openDocument"),placement:"top",size:"xs",children:e(je,{className:"size-4"})})}),e(et,{variant:"ghost",size:"sm",onClick:()=>a&&i(a),title:p("agent.close"),children:e(D,{className:"size-4"})})]})]}),e("div",{className:"flex-1 overflow-y-auto px-4 py-4",children:v?t("div",{className:"flex items-center justify-center py-12",children:[e(_e,{className:"size-5 animate-spin text-muted"}),e("span",{className:"ml-2 text-sm text-muted",children:p("agent.loadingDocument")})]}):b?e("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive text-sm",children:b}):m?e("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:e(Wo,{artifactRunId:c,children:m})}):t("div",{className:"flex flex-col items-center justify-center py-12 text-muted",children:[e(De,{className:"size-8 mb-2"}),e("span",{className:"text-sm",children:p("agent.noContentAvailable")})]})})]}):null}),jd=[/conversation\.json$/,/-conversation\.json$/,/^tools\.json$/];function _d(e,t,o=0){const[n,a]=d([]),[r,i]=d(!1),[s,l]=d(null),[u,p]=d(0),h=m(0),v=g(async()=>{if(!t)return;const o=++h.current;i(!0),l(null);try{const n=await e.files.listArtifacts(t);if(o!==h.current)return;const r=n.map(e=>function(e,t){const o=`agents/${t}/`,n=e.indexOf(o);return-1!==n?e.slice(n+o.length):e.split("/").pop()??e}(e,t)).filter(e=>e&&!function(e){const t=e.split("/").pop()??e;return jd.some(e=>e.test(t))}(e));a(r)}catch(e){if(o!==h.current)return;l(e instanceof Error?e.message:"Failed to list artifacts"),a([])}finally{o===h.current&&i(!1)}},[e,t]);f(()=>{v()},[v,o,u]);const y=c(()=>function(e){const t={children:[]};for(const o of e){const e=o.split("/");let n=t,a="";for(let t=0;t<e.length;t++){const o=e[t];a=a?`${a}/${o}`:o;const r=t===e.length-1;let i=n.children.find(e=>e.name===o);i||(i={name:o,path:a,isDirectory:!r,children:[]},n.children.push(i)),n=i}}const o=e=>{e.children.sort((e,t)=>e.isDirectory!==t.isDirectory?e.isDirectory?-1:1:e.name.localeCompare(t.name)),e.children.forEach(o)};return o(t),t.children}(n),[n]),b=g(()=>{p(e=>e+1)},[]);return{tree:y,flatFiles:n,isLoading:r,error:s,refresh:b}}function Rd({node:o,depth:n,runId:a,onDownload:r,downloadingPath:i}){const[s,l]=d(!0);if(o.isDirectory)return t("div",{children:[t("button",{className:"flex items-center gap-1.5 w-full text-left py-1 px-1 rounded hover:bg-muted/30 text-sm",style:{paddingLeft:16*n+4+"px"},onClick:()=>l(e=>!e),children:[e(s?Ee:Le,{className:"size-3.5 shrink-0 text-muted"}),e(s?Ue:se,{className:"size-4 shrink-0 text-info"}),e("span",{className:"truncate font-medium",children:(c=o.name,c.replace(/[_-]/g," ").replace(/\b\w/g,e=>e.toUpperCase()))})]}),s&&o.children.map(t=>e(Rd,{node:t,depth:n+1,runId:a,onDownload:r,downloadingPath:i},t.path))]});var c;const u=i===o.path;return t("button",{className:"flex items-center gap-1.5 w-full text-left py-1 px-1 rounded hover:bg-muted/30 text-sm",style:{paddingLeft:16*n+4+"px"},onClick:()=>r(o.path),disabled:u,children:[u?e(_e,{className:"size-3.5 shrink-0 animate-spin text-info"}):e("span",{className:"size-3.5 shrink-0"}),e(re,{className:"size-4 shrink-0 text-muted"}),e("span",{className:"truncate",children:o.name})]})}const Od=l.memo(function({runId:o,refreshKey:n=0}){const{t:a}=Vn(),{client:r}=Qe(),{tree:i,flatFiles:s,isLoading:l,error:c,refresh:u}=_d(r,o,n),[p,m]=d(null),h=g(async e=>{if(!o)return;m(e);const t=window.open("","_blank");try{const{url:n}=await r.files.getArtifactDownloadUrl(o,e,"attachment");t&&(t.location.href=n)}catch(e){console.error("Failed to get artifact download URL:",e),t?.close()}finally{m(null)}},[r,o]);return o?l&&0===s.length?t("div",{className:"flex flex-col items-center justify-center py-8 text-muted",children:[e(_e,{className:"size-6 animate-spin mb-2"}),e("span",{className:"text-sm",children:a("agent.loadingArtifacts")})]}):c?t("div",{className:"flex flex-col items-center justify-center py-8 text-muted",children:[e("span",{className:"text-sm text-destructive mb-2",children:c}),t(et,{variant:"ghost",size:"sm",onClick:u,children:[e(Oe,{className:"size-3.5 mr-1.5"}),a("agent.retry")]})]}):0===s.length?t("div",{className:"flex flex-col items-center justify-center py-8 text-muted",children:[e(Re,{className:"size-8 mb-2"}),e("span",{className:"text-sm",children:a("agent.noArtifactsYet")}),t(et,{variant:"ghost",size:"sm",className:"mt-2",onClick:u,children:[e(Oe,{className:"size-3.5 mr-1.5"}),a("agent.refresh")]})]}):t("div",{className:"flex flex-col h-full",children:[t("div",{className:"flex items-center justify-between px-3 py-2 border-b text-xs text-muted",children:[t("span",{children:[s.length," file",1!==s.length?"s":""]}),e(et,{variant:"ghost",size:"sm",onClick:u,disabled:l,className:"h-6 w-6 p-0",children:e(Oe,{className:"size-3.5 "+(l?"animate-spin":"")})})]}),e("div",{className:"flex-1 overflow-y-auto p-2",children:i.map(t=>e(Rd,{node:t,depth:0,runId:o,onDownload:h,downloadingPath:p},t.path))})]}):t("div",{className:"flex flex-col items-center justify-center py-8 text-muted",children:[e(Re,{className:"size-8 mb-2"}),e("span",{className:"text-sm",children:"No run selected"})]})});function Ld({files:o}){const{t:n}=Vn(),a=c(()=>o?Array.from(o.values()):[],[o]),r=t=>{switch(t){case _o.UPLOADING:case _o.PROCESSING:return e(_e,{className:"size-4 animate-spin text-info"});case _o.READY:return e(ne,{className:"size-4 text-success"});case _o.ERROR:return e(ie,{className:"size-4 text-destructive"});default:return e(De,{className:"size-4 text-muted"})}},i=t=>{switch(t){case _o.UPLOADING:return e(Dt,{variant:"info",children:n("agent.uploading")});case _o.PROCESSING:return e(Dt,{variant:"info",children:n("agent.processing")});case _o.READY:return e(Dt,{variant:"success",children:n("agent.ready")});case _o.ERROR:return e(Dt,{variant:"destructive",children:n("agent.error")});default:return null}};return e("div",{className:"p-3",children:0===a.length?e("div",{className:"text-sm text-muted text-center py-8",children:n("agent.noFilesUploadedYet")}):e("div",{className:"space-y-2",children:a.map(o=>t("div",{className:"flex items-start gap-2 p-2 border border-muted rounded-md",children:[e("div",{className:"mt-0.5",children:r(o.status)}),t("div",{className:"flex-1 min-w-0",children:[t("div",{className:"flex items-center justify-between gap-2",children:[e("span",{className:"text-sm font-medium truncate",children:o.name}),i(o.status)]}),o.error&&e("div",{className:"text-xs text-destructive mt-1",children:o.error})]})]},o.id))})})}function Ud({workstreams:n,messages:a}){const{t:r}=Vn(),{client:i}=Qe(),s=Xe(),l=g(e=>{navigator.clipboard.writeText(e),s({status:"success",title:r("agent.runIdCopied"),duration:2e3})},[s]),c=g(async e=>{try{const t=await ka(i,e);t&&window.open(t,"_blank")}catch{s({status:"error",title:r("agent.failedToDownload")})}},[i,s]);return 0===n.length?t("div",{className:"flex flex-col items-center justify-center py-8 text-muted",children:[e(Me,{className:"size-8 mb-2"}),e("span",{className:"text-sm",children:r("agent.noActiveWorkstreams")})]}):e("div",{className:"p-3 space-y-2",children:n.map(n=>{const a="running"===n.status||"canceling"===n.status,i=Math.round(n.elapsed_ms/1e3),s=Math.round(n.remaining_ms/1e3),d=n.deadline_ms>0?Math.min(100,Math.round(n.elapsed_ms/n.deadline_ms*100)):0,u="running"===n.status?e(Dt,{variant:"info",children:n.phase||"running"}):"canceling"===n.status?e(Dt,{variant:"attention",children:"canceling"}):"completed"===n.status?e(Dt,{variant:"done",children:r("agent.completed")}):e(Dt,{variant:"destructive",children:r("agent.canceled")});return t("div",{className:"p-3 border rounded-md space-y-2",children:[t("div",{className:"flex items-center justify-between",children:[e("span",{className:"text-sm font-medium truncate",children:n.workstream_id}),u]}),a&&t(o,{children:[e("div",{className:"w-full h-1.5 bg-muted rounded-full overflow-hidden",children:e("div",{className:"h-full bg-info rounded-full transition-all duration-500",style:{width:`${d}%`}})}),t("div",{className:"flex justify-between text-xs text-muted",children:[e("span",{children:r("agent.elapsed",{seconds:i})}),e("span",{children:r("agent.remaining",{seconds:s})})]})]}),n.child_workflow_run_id&&t("div",{className:"flex gap-1 pt-1 border-t border-muted",children:[t(et,{variant:"ghost",size:"sm",className:"text-xs h-7 px-2 text-muted hover:text-foreground",onClick:()=>l(n.child_workflow_run_id),children:[e(Ve,{className:"size-3 mr-1"}),r("agent.copyRunId")]}),t(et,{variant:"ghost",size:"sm",className:"text-xs h-7 px-2 text-muted hover:text-foreground",onClick:()=>c(n.child_workflow_run_id),children:[e(ke,{className:"size-3 mr-1"}),r("agent.download")]})]})]},n.launch_id)})})}const Md=l.memo(function({plan:o,workstreamStatus:n,plans:a=[],activePlanIndex:r=0,onChangePlan:i,showPlan:s,activeWorkstreams:l=[],messages:c=[],hideWorkstreams:u=!1,openDocuments:p=[],activeDocumentId:m,onSelectDocument:g,onCloseDocument:h,onUpdateDocumentTitle:f,docRefreshKey:v=0,runId:y,processingFiles:b,showArtifacts:w=!1,artifactRefreshKey:x=0,payloadContent:C,conversationContent:k,onClose:T,defaultTab:N,activeTab:S,onTabChange:D}){const{t:P}=Vn(),[A,F]=d(N||"plan"),z=S??A,I=!u&&l.length>0,E=p.length>0,j=!!b&&b.size>0,_=s&&o,R={name:"conversation",label:"Conversation",content:k?e("div",{className:"flex flex-col h-full min-h-0",children:k}):null,is_allowed:!!k},O=[...k?[R]:[],{name:"plan",label:_?t("span",{className:"flex items-center gap-1",children:[P("agent.plan")," ",e("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-info"})]}):P("agent.plan"),content:o?e(zd,{plan:o,workstreamStatus:n||new Map,isOpen:!0,onClose:T,plans:a,activePlanIndex:r,onChangePlan:i}):e("div",{className:"flex flex-col items-center justify-center py-8 text-muted",children:e("span",{className:"text-sm",children:P("agent.noPlanAvailable")})}),is_allowed:!0},{name:"workstreams",label:I?t("span",{className:"flex items-center gap-1",children:[P("agent.workstreams")," ",e("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-[10px] rounded-full bg-info text-info",children:l.length})]}):P("agent.workstreams"),content:e(Ud,{workstreams:l,messages:c,runId:y}),is_allowed:!u},{name:"documents",label:E?t("span",{className:"flex items-center gap-1",children:[P("agent.documents")," ",e("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-[10px] rounded-full bg-info text-info",children:p.length})]}):P("agent.documents"),content:p.length>0&&g&&h?e(Ed,{isOpen:!0,documents:p,activeDocumentId:m??null,onSelectDocument:g,onCloseDocument:h,onUpdateDocumentTitle:f,refreshKey:v,runId:y}):t("div",{className:"flex flex-col items-center justify-center py-8 text-muted",children:[e(De,{className:"size-8 mb-2"}),e("span",{className:"text-sm",children:P("agent.noDocumentsOpen")})]}),is_allowed:!0},{name:"uploads",label:j?t("span",{className:"flex items-center gap-1",children:[P("agent.uploads")," ",e("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-info"})]}):P("agent.uploads"),content:e(Ld,{files:b}),is_allowed:!0},{name:"artifacts",label:P("agent.artifacts"),content:e(Od,{runId:y,refreshKey:x}),is_allowed:w},{name:"payload",label:P("agent.payload"),content:C?e("div",{className:"overflow-y-auto",children:C}):null,is_allowed:!!C}];return t(lo,{tabs:O,current:z,onTabChange:e=>{F(e),D?.(e)},fullHeight:!0,className:"px-0",children:[t("div",{className:"flex items-center border-b shrink-0 px-1",children:[e("div",{className:"flex-1 overflow-x-auto",children:e(co,{className:"border-b-0 mb-0 min-w-max"})}),!k&&e(et,{variant:"ghost",size:"sm",className:"shrink-0 ml-1",onClick:T,children:e(xe,{className:"size-4"})})]}),e(uo,{className:"pt-0"})]})});function Vd(e,t){const[o,n]=d([]),[a,r]=d(!1),[i,s]=d(null),[l,c]=d(null),[u,p]=d(new Map),[h,v]=d(new Map),y=m(new Map),b=m(null),[w,x]=d(!1),C=m(null),k=g(()=>{const e=b.current;e&&("raf"===e.mode?cancelAnimationFrame(e.id):clearTimeout(e.id),b.current=null)},[]),T=g(()=>{y.current.size>0&&(v(new Map(y.current)),x(!0),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>x(!1),50)),b.current=null},[]);f(()=>{r(!function(e){if(!e.length)return!0;const t=e.filter(e=>"main"===Ca(e));if(0===t.length){const t=e[e.length-1];return!wa.includes(t.type)}const o=t[t.length-1];return!wa.includes(o.type)}(o))},[o]),f(()=>{console.debug("[useAgentStream] effect:start",{agentRunId:t}),n([]),s(null),c(null),v(new Map),p(new Map);const o=new AbortController;return e.agents.getInternals(t).then(e=>{o.signal.aborted||(s(e.status?.toUpperCase()??null),c(e.first_workflow_run_id??null))}).catch(e=>{o.signal.aborted||console.error("Failed to check agent run status:",e)}),e.agents.streamMessages(t,e=>{if(o.signal.aborted)return;if(e.type===vo.STREAMING_CHUNK){const t=e.details,o=t?.activity_id||t?.streaming_id;if(!o)return;const n=y.current.get(o)||{text:"",workstreamId:e.workstream_id,startTimestamp:Date.now(),activityId:t?.activity_id},a=n.text+(e.message||"");return y.current.set(o,{text:a,workstreamId:e.workstream_id,isComplete:t.is_final,startTimestamp:n.startTimestamp,activityId:t?.activity_id}),void(null===b.current&&(document.hidden?b.current={mode:"timeout",id:window.setTimeout(T,16)}:b.current={mode:"raf",id:requestAnimationFrame(T)}))}if(e.type===vo.SYSTEM){const t=e.details;if("file_processing"===t?.system_type&&t.files)return void p(e=>{const o=new Map(e);for(const e of t.files)o.set(e.id,e);return o})}if((e.type===vo.THOUGHT||e.type===vo.ANSWER)&&e.details?.activity_id){const t=e.details.activity_id;y.current.delete(t),v(e=>{if(e.has(t)){const o=new Map(e);return o.delete(t),o}return e})}e.type!==vo.COMPLETE&&e.type!==vo.IDLE||y.current.size>0&&T();const t=!!e.message,a=[vo.COMPLETE,vo.IDLE,vo.TERMINATED,vo.REQUEST_INPUT].includes(e.type);(t||a)&&n(t=>{if(t.find(t=>t.timestamp===e.timestamp))return t;if(e.type===vo.QUESTION&&!e.details?._optimistic){const o=t.filter(e=>!(e.type===vo.QUESTION&&e.details?._optimistic));return ba(o,e),[...o]}return ba(t,e),[...t]})},void 0,o.signal).catch(e=>{o.signal.aborted||console.error("Failed to stream agent messages:",e)}),()=>{console.debug("[useAgentStream] effect:cleanup",{agentRunId:t}),o.abort(),n([]),k(),y.current.clear(),C.current&&(clearTimeout(C.current),C.current=null)}},[t,e.agents,T,k]),f(()=>{const e=()=>{!document.hidden&&y.current.size>0&&(k(),T())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[T,k]);const N=g(e=>{n(t=>{const o=[...t,e];return o.sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),o})},[]),S=g(e=>{n(t=>t.filter(t=>!e(t)))},[]);return{messages:o,streamingMessages:h,isCompleted:a,debugChunkFlash:w,addOptimisticMessage:N,removeOptimisticMessages:S,agentRunStatus:i,workflowRunId:l,serverFileUpdates:u}}function Wd(e){if("string"==typeof e&&e.trim().length>0)return e}function qd(e,t){const o=Wd(e.revision_root_id)||Wd(e.revision_root)||Wd(e.root_document_id)||Wd(e.root_id);if(o)return o;const n=e.revision_info;if(n&&"object"==typeof n){const e=Wd(n.root);if(e)return e}return t}function Bd(e,t){return e.revisionRootId&&t.revisionRootId?e.revisionRootId===t.revisionRootId:t.revisionRootId?e.id===t.revisionRootId:e.revisionRootId?e.revisionRootId===t.id:e.id===t.id}function $d(t){const{agentRunId:o,startWorkflow:n}=t;return o?e(Fd,{children:e(Hd,{...t,agentRunId:o})}):n?e(Kd,{...t}):e(Gd,{})}function Gd(){const{t:o}=Vn();return t(Ut,{status:"info",icon:e(fe,{className:"size-16 text-muted mb-4"}),children:[e("div",{className:"text-base font-medium text-muted",children:o("agent.noAgentRunning")}),e("div",{className:"mt-3 text-sm text-muted",children:o("agent.selectInteraction")})]})}function Kd({initialMessage:o,startWorkflow:n,onClose:a,isModal:r=!1,fullWidth:i=!1,placeholder:s,startButtonText:l,title:c,getAttachedDocs:u,onAttachmentsSent:p,acceptedFileTypes:h,maxFiles:v=5}){const{t:y}=Vn(),b=s??y("agent.typeYourMessage"),w=l??y("agent.startAgent"),x=c??y("agent.startNewConversation"),{client:C}=Qe(),[k,T]=d(""),[N,S]=d(!1),[D,P]=d(null),A=Xe(),F=m(null),z=m(null),[I,E]=d([]),[j,_]=d(!1),R=m(0),O=g(e=>{e.preventDefault(),e.stopPropagation(),R.current++,e.dataTransfer?.types?.includes("Files")&&_(!0)},[]),L=g(e=>{e.preventDefault(),e.stopPropagation()},[]),U=g(e=>{e.preventDefault(),e.stopPropagation(),R.current--,0===R.current&&_(!1)},[]),M=g(e=>{if(e.preventDefault(),e.stopPropagation(),R.current=0,_(!1),e.dataTransfer?.files&&e.dataTransfer.files.length>0){const t=Array.from(e.dataTransfer.files);E(e=>[...e,...t].slice(0,v))}},[v]),V=g(e=>{if(e.target.files&&e.target.files.length>0){const t=Array.from(e.target.files);E(e=>[...e,...t].slice(0,v))}e.target.value=""},[v]),W=g(e=>{E(t=>t.filter((t,o)=>o!==e))},[]);f(()=>{F.current&&F.current.focus()},[]);const q=async()=>{if(!n)return;const e=k.trim();if(e&&!N){S(!0);try{sessionStorage.removeItem("plan-panel-shown"),A({title:I.length>0?y("agent.startingAgentUploading"):y("agent.startingAgent"),status:"info",duration:3e3});const t=u?.()||[];let o=e;if(t.length>0&&!/store:\S+/.test(e)){o=[e,"","Attachments:",...t.map(e=>`[${e.name}](/store/objects/${e.id})`)].join("\n")}if(I.length>0){const e=I.map(e=>e.name).join(", ");o=[o,"",`[System: ${I.length} file(s) are being uploaded: ${e}. Please wait for the "Files Ready" notification before processing them.]`].join("\n")}const a=await n(o);if(a){const e=a.agent_run_id,t=[];if(I.length>0){for(const o of I)try{const n=`files/${o.name}`;await C.agents.uploadArtifact(e,n,o),await C.agents.sendSignal(e,"FileUploaded",{id:`file-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,name:o.name,content_type:o.type||"application/octet-stream",reference:`artifact:${n}`,artifact_path:n}),t.push(o.name)}catch(e){console.error(`Failed to upload staged file ${o.name}:`,e)}if(t.length>0)try{await C.agents.sendSignal(e,"UserInput",{message:`[Files Ready] All ${t.length} file(s) have been uploaded and are now available: ${t.join(", ")}. You can now process them.`,metadata:{type:"files_ready",files:t}})}catch(e){console.error("Failed to send files ready signal:",e)}E([])}p?.(),P(e),T(""),A({title:y("agent.agentStarted"),status:"success",duration:3e3})}}catch(e){A({title:y("agent.errorStarting"),status:"error",duration:3e3,description:e instanceof Error?e.message:y("agent.unknownError")})}finally{S(!1)}}},B=g(()=>{const e=F.current;e&&(e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,200)}px`)},[]);return f(()=>{B()},[k,B]),D?e(Hd,{onClose:a,isModal:r,initialMessage:o,placeholder:s,agentRunId:D,title:c}):e("div",{className:"flex flex-col h-full bg-background items-center",children:t("div",{className:Ze("flex flex-col h-full w-full overflow-hidden border-0 relative",i?"":"max-w-4xl"),onDragEnter:O,onDragOver:L,onDragLeave:U,onDrop:M,children:[j&&e("div",{className:"absolute inset-0 flex items-center justify-center bg-info-background z-50 pointer-events-none rounded-lg",children:t("div",{className:"text-info font-medium flex items-center gap-2 text-lg",children:[e(oe,{className:"size-6"}),"Drop files to stage for upload"]})}),e("input",{ref:z,type:"file",multiple:!0,accept:h,onChange:V,className:"hidden"}),t("div",{className:"flex items-center justify-between py-2 px-3 border-b border-border bg-background",children:[t("div",{className:"flex items-center space-x-2",children:[e("div",{className:"p-1",children:e(We,{className:"size-3.5 text-muted"})}),e("span",{className:"font-medium text-sm text-foreground",children:x})]}),a&&!r&&e(et,{size:"xs",variant:"ghost",onClick:a,title:y("agent.close"),className:"text-muted hover:text-foreground",children:e(xe,{className:"size-4"})})]}),e("div",{className:"flex-1 overflow-y-auto bg-background flex flex-col items-center justify-end",children:t("div",{className:"w-full px-4 py-6",children:[o&&e("div",{className:"px-4 py-3 mb-4 bg-info-background border-l-2 border-info text-info",children:o}),t("div",{className:"bg-card p-4 border-l-2 border-info",children:[e("div",{className:"text-base text-foreground font-medium",children:y("agent.enterMessage")}),e("div",{className:"mt-3 text-sm text-muted",children:y("agent.typeQuestionBelow",{buttonText:w})})]})]})}),t("div",{className:"py-3 px-3 border-t border-border bg-background",children:[I.length>0&&e("div",{className:"flex flex-wrap gap-2 mb-3",children:I.map((o,n)=>t("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-attention/10 text-attention rounded-md text-sm",children:[e(De,{className:"size-3.5"}),e("span",{className:"max-w-[120px] truncate",children:o.name}),e("span",{className:"text-xs opacity-70",children:y("agent.staged")}),e("button",{onClick:()=>W(n),className:"ml-1 p-0.5 hover:bg-attention/20 rounded",children:e(xe,{className:"size-3"})})]},`${o.name}-${n}`))}),e("div",{className:"flex gap-2 mb-2",children:t(et,{variant:"outline",size:"sm",onClick:()=>z.current?.click(),disabled:N||I.length>=v,className:"text-xs",children:[e(oe,{className:"size-3.5 mr-1.5"}),y("agent.upload")]})}),t("div",{className:"flex items-end gap-2",children:[e("textarea",{ref:F,value:k,onChange:e=>T(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),q())},placeholder:b,disabled:N,rows:2,className:"flex-1 py-2.5 px-3 text-sm border border-border bg-background text-foreground focus:border-ring focus:outline-none focus:ring-1 focus:ring-ring rounded-md resize-none overflow-hidden",style:{minHeight:"60px",maxHeight:"200px"}}),t(et,{onClick:q,disabled:!k.trim()||N,className:"px-3 py-2.5 text-xs rounded-md transition-colors",children:[N?e(ut,{size:"sm",className:"mr-1.5"}):e(Fe,{className:"size-3.5 mr-1.5"}),w]})]}),e("div",{className:"text-xs text-muted mt-2 text-center",children:I.length>0?y("agent.filesStagedCount",{count:I.length}):y("agent.enterToSend")})]})]})})}function Hd({agentRunId:n,title:a,interactive:r=!0,onClose:i,isModal:s=!1,fullWidth:l=!1,placeholder:u,resetWorkflow:p,onRestart:h,onClone:v,onShowDetails:y,uploadedFiles:b,onRemoveFile:w,acceptedFileTypes:x,maxFiles:C,renderDocumentSearch:k,selectedDocuments:T,onRemoveDocument:N,hideObjectLinking:S,hideHeader:D,hideMessageInput:P,hidePlanPanel:A,hideWorkstreamTabs:F,showRightPanel:z=!0,hideFileUpload:I,showArtifacts:E=!1,hideDocumentPanel:j,hiddenMessageTypes:_,getAttachedDocs:R,onAttachmentsSent:O,isUploading:L=!1,getMessageContext:U,className:M,inputContainerClassName:V,inputClassName:W,fusionData:q,fileUploadRef:B,onProcessingFilesChange:$,processingFiles:G,onPlansChange:K,onWorkstreamStatusChange:H,viewMode:J,onViewModeChange:Y,onShowInputChange:Q,stopRef:Z,onStoppingChange:X,messageItemClassNames:ee,messageStyleOverrides:te,toolCallGroupClassNames:ne,hideToolCallsInViewMode:ae,streamingMessageClassNames:re,batchProgressPanelClassNames:ie,workingIndicatorClassName:se,messageListClassName:le,StoreLinkComponent:ce,CollectionLinkComponent:de,prependFriendlyMessage:ue,payloadContent:pe,conversationContent:me,conversationTab:ge=!1}){const{t:he}=Vn(),{client:fe}=Qe(),ve=Xe(),ye=m(`mac-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`),{messages:be,streamingMessages:we,isCompleted:xe,debugChunkFlash:Ce,addOptimisticMessage:ke,removeOptimisticMessages:Te,agentRunStatus:Ne,workflowRunId:Se,serverFileUpdates:De}=Vd(fe,n),{plans:Pe,activePlanIndex:Ae,setActivePlanIndex:Fe,workstreamStatusMap:ze,showInput:Ie,showSlidingPanel:Ee,setShowSlidingPanel:je}=function(e,t,o=!1){const[n,a]=d([]),[r,i]=d(0),[s,l]=d(new Map),[c,u]=d(t),[p,h]=d(!o),v=m(-1),y=m(new Set);f(()=>{0===e.length&&(a([]),i(0),l(new Map),h(!o),v.current=-1,y.current.clear())},[0===e.length,o]),f(()=>{if(0===e.length)return;const t=v.current+1;if(t>=e.length)return void b(e);let o=!1;const n=[],r=[];for(let a=t;a<e.length;a++){const t=e[a];if(t.type===vo.PLAN)try{let e=null;if(t.details&&"object"==typeof t.details&&t.details.plan&&Array.isArray(t.details.plan)&&(e={plan:t.details.plan}),e){const a="number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime();if(!y.current.has(a)){y.current.add(a),o=!0,n.push({plan:e,timestamp:a});const t=new Map;t.set("main","in_progress"),Array.isArray(e.plan)&&e.plan.forEach(e=>{if(e&&"object"==typeof e&&e.id){const o=e.id.toString();t.set(o,e.status||"pending")}}),r.push({timestamp:a,statusMap:t})}}}catch(e){console.error("Failed to parse plan from message:",e)}}v.current=e.length-1,o&&n.length>0&&(a(e=>[...[...n].reverse(),...e]),i(0),h(!0),r.length>0&&l(e=>{const t=new Map(e);for(const e of r)t.set(e.timestamp,e.statusMap);return t})),b(e)},[e,t]),f(()=>{if(1===n.length&&!p&&!sessionStorage.getItem("plan-panel-shown")){const e=setTimeout(()=>{h(!0),sessionStorage.setItem("plan-panel-shown","true")},500);return()=>clearTimeout(e)}},[n.length,p]);const b=g(e=>{const o=e[e.length-1];o&&(o.type===vo.TERMINATED?u(!1):u(!!t||o.type===vo.REQUEST_INPUT))},[t]);return{plans:n,activePlanIndex:r,setActivePlanIndex:i,workstreamStatusMap:s,showInput:c,showSlidingPanel:p,setShowSlidingPanel:h}}(be,r,s),{openDocuments:_e,activeDocumentId:Re,isDocPanelOpen:Oe,docRefreshKey:Le,closeDocPanel:Ue,closeDocument:Me,selectDocument:Ve,openDocInPanel:We,updateDocumentTitle:qe}=function(e){const[t,o]=d([]),[n,a]=d(null),[r,i]=d(!1),[s,l]=d(0),c=m(-1);return f(()=>{0===e.length&&(o([]),a(null),i(!1),l(0),c.current=-1)},[0===e.length]),f(()=>{const t=c.current+1;if(!(t>=e.length)){for(let n=t;n<e.length;n++){const t=e[n];if(t.type===vo.UPDATE&&t.details){const e=t.details;if("document_created"===e.event_class||"document_updated"===e.event_class){const t=Wd(e.document_id),n=Wd(e.updated_document_id)||t,r=e.title;if(n){const s={id:n,title:r||"Document",revisionRootId:qd(e,t||n)};o(e=>{const t=e.findIndex(e=>Bd(e,s));if(t<0)return[...e,s];const o=e[t];if(o.id===s.id&&o.title===s.title&&o.revisionRootId===s.revisionRootId)return e;const n=[...e];return n[t]=s,n}),a(s.id),i(!0),"document_updated"===e.event_class&&l(e=>e+1)}}}}c.current=e.length-1}},[e]),{openDocuments:t,activeDocumentId:n,isDocPanelOpen:r,docRefreshKey:s,closeDocPanel:g(()=>{i(!1)},[]),closeDocument:g(e=>{o(t=>{const o=t.filter(t=>t.id!==e);return 0===o.length?(i(!1),a(null)):a(t=>t===e?o[0].id:t),o})},[]),selectDocument:g(e=>{a(e)},[]),openDocInPanel:g(e=>{o(t=>t.some(t=>t.id===e)?t:[...t,{id:e,title:"Document",revisionRootId:e}]),a(e),i(!0)},[]),updateDocumentTitle:g((e,t)=>{o(o=>o.map(o=>o.id===e?{...o,title:t}:o))},[])}}(be),{processingFiles:Be,hasProcessingFiles:$e,handleFileUpload:Ge}=function(e,t,o,n){const a=Mn.getFixedT(null,Un),[r,i]=d(new Map);f(()=>{i(new Map)},[t]);const s=c(()=>{const e=new Map(r);return o.forEach((t,o)=>{e.set(o,t)}),e},[r,o]),l=c(()=>Array.from(s.values()).some(e=>e.status===_o.UPLOADING||e.status===_o.PROCESSING),[s]),u=g(async o=>{for(const r of o){const o=`file-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,s=`files/${r.name}`,l={id:o,name:r.name,content_type:r.type||"application/octet-stream",size:r.size,status:_o.UPLOADING,started_at:Date.now()};i(e=>new Map(e).set(o,l));try{await e.agents.uploadArtifact(t,s,r),i(e=>{const t=new Map(e),n=t.get(o);return n&&(n.status=_o.PROCESSING,n.artifact_path=s,n.reference=`artifact:${s}`),t}),await e.agents.sendSignal(t,"FileUploaded",{id:o,name:r.name,content_type:r.type||"application/octet-stream",reference:`artifact:${s}`,artifact_path:s})}catch(e){i(t=>{const n=new Map(t),a=n.get(o);return a&&(a.status=_o.ERROR,a.error=e instanceof Error?e.message:"Upload failed",a.completed_at=Date.now()),n}),n({status:"error",title:a("agent.uploadFailed"),description:e instanceof Error?e.message:"Failed to upload file",duration:3e3})}}},[e,t,n]);return{processingFiles:s,hasProcessingFiles:l,handleFileUpload:u}}(fe,n,De,ve),Ke=m(null),He=m(null),Je=m(null),[Ye,tt]=d(!1),[ot,nt]=d("sliding"),at=J??ot,rt=g(e=>{Y?Y(e):nt(e)},[Y]),[it,st]=d(!1),[lt,ct]=d(0),[dt,ut]=d(!1),[ht,ft]=d([]),[vt,bt]=d([]),wt=m(!1),xt=m(0),Ct=m(Ye);Ct.current=Ye;const kt=m($e);kt.current=$e;const Tt=c(()=>{const e=be.filter(e=>"main"===(e.workstream_id||"main"));return e[e.length-1]},[be]),Nt=c(()=>Tt?.type===vo.TERMINATED?"TERMINATED":Tt?.type!==vo.COMPLETE||Ne&&"RUNNING"!==Ne?Ne:"COMPLETED",[Tt,Ne]),St=c(()=>{const e=Nt?.toUpperCase();return"COMPLETED"===e||"FAILED"===e||"CANCELED"===e||"CANCELLED"===e||"TERMINATED"===e||"TIMED_OUT"===e},[Nt]);console.debug("[ModernAgentConversation] render",{agentRunId:n,instanceId:ye.current,messageCount:be.length,activeWorkstreams:ht.length}),f(()=>(console.debug("[ModernAgentConversation] mount",{agentRunId:n,instanceId:ye.current}),()=>{console.debug("[ModernAgentConversation] unmount",{agentRunId:n,instanceId:ye.current})}),[n]);const Dt=c(()=>{const e=Pe[Ae]||{plan:{plan:[]},timestamp:0},t=ze.get(e.timestamp)||new Map;return{plan:e.plan,workstreamStatus:t}},[Pe,Ae,ze]),Pt=c(()=>[...ht.map(e=>({workstream_id:e.workstream_id,launch_id:e.launch_id,elapsed_ms:e.elapsed_ms,deadline_ms:e.deadline_ms,remaining_ms:Math.max(0,e.deadline_ms-e.elapsed_ms),status:e.status,phase:e.latest_progress?.phase,child_workflow_id:e.child_workflow_id,child_workflow_run_id:e.child_workflow_run_id})),...vt.map(e=>({workstream_id:e.workstream_id,launch_id:e.launch_id,elapsed_ms:0,deadline_ms:0,remaining_ms:0,status:e.status}))],[ht,vt]),At=g(()=>{je(e=>(e||sessionStorage.setItem("plan-panel-shown","true"),!e))},[je]),Ft=g(e=>{Fe(e)},[Fe]),[zt,It]=d(me||ge?"conversation":"plan"),[Et,jt]=d(400),[_t,Rt]=d(!1),Ot=z&&(Ee||Oe||!F&&Pt.length>0||!!me||ge);f(()=>{!Ot&&_t&&Rt(!1)},[Ot,_t]),f(()=>{if(!_t)return;const e=e=>{const t=Je.current;if(!t)return;const o=t.getBoundingClientRect(),n=Math.max(300,o.width-420),a=o.right-e.clientX,r=Math.min(Math.max(a,300),n);jt(r)},t=()=>{Rt(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),document.body.style.cursor="col-resize",document.body.style.userSelect="none",()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),document.body.style.cursor="",document.body.style.userSelect=""}},[_t]);const Lt=g(()=>{je(!1),Ue()},[je,Ue]),Mt=g(({href:t,documentId:o,children:n})=>e("a",{href:t,className:"text-info underline cursor-pointer hover:text-info/80",onClick:e=>{e.preventDefault(),e.stopPropagation(),We(o),It("documents")},children:n}),[We,It]),Vt=ce??Mt;f(()=>{if(!xe){const e=setInterval(()=>{ct(()=>Math.floor(Math.random()*(ya.length-1)))},4e3);return()=>clearInterval(e)}},[xe]),f(()=>(B&&(B.current=Ge),()=>{B&&(B.current=null)}),[B,Ge]),f(()=>{$?.(Be)},[Be,$]),f(()=>{K?.(Pe,Ae)},[Pe,Ae,K]),f(()=>{H?.(ze)},[ze,H]),f(()=>{if(!(!xe||ht.length>0))return void ft(e=>0===e.length?e:[]);let e=!1;const t=async()=>{try{const t=await fe.agents.getActiveWorkstreams(n);if(e)return;ft(t.running??[]);const o=t.completed??[];bt(o.map(e=>({launch_id:e.launch_id,workstream_id:e.workstream_id,status:"canceled"===e.status?"canceled":"completed"}))),wt.current=!1}catch(t){if(e)return;ft([]),wt.current||(console.warn("Failed to fetch active workstreams:",t),wt.current=!0)}};t();const o=window.setInterval(t,1e4);return()=>{e=!0,window.clearInterval(o)}},[fe.agents,n,xe,ht.length]);const Wt=m(!1);f(()=>{Pt.length>0&&!Wt.current&&(Wt.current=!0,It("workstreams"))},[Pt.length]),f(()=>{0!==be.length&&(Ie?Nt&&"RUNNING"!==Nt?Q?.(!1):null!==Nt&&Q?.(!0):Q?.(!1))},[Ie,Nt,be.length,Q]);const qt=g(e=>{const t=e.trim();if(!t||Ct.current)return;if(kt.current)return void ve({status:"warning",title:he("agent.filesProcessing"),description:he("agent.waitForFilesProcessing"),duration:3e3});tt(!0);const o=R?.()||[],a=U?.()||{};let r=t;if(o.length>0&&!/store:\S+/.test(t)){r=[t,"","Attachments:",...o.map(e=>`[${e.name}](/store/objects/${e.id})`)].join("\n")}const i=`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,s={timestamp:Date.now(),workflow_run_id:n,type:vo.QUESTION,message:r,workstream_id:"main",details:{_optimistic:!0,_messageId:i}};ke(s);const l={...o.length>0?{attached_docs:o.map(e=>e.id)}:{},...a,_messageId:i};fe.agents.sendSignal(n,"UserInput",{message:r,metadata:l}).then(()=>{O?.()}).catch(e=>{Te(e=>e.details?._messageId===i),ve({status:"error",title:he("agent.failedToSend"),description:e instanceof Error?e.message:he("agent.unknownError"),duration:3e3})}).finally(()=>{tt(!1)})},[n,fe,ve,R,U,O,ke,Te]),Bt=g(e=>{e.preventDefault(),e.stopPropagation(),xt.current++,e.dataTransfer?.types?.includes("Files")&&ut(!0)},[]),$t=g(e=>{e.preventDefault(),e.stopPropagation()},[]),Gt=g(e=>{e.preventDefault(),e.stopPropagation(),xt.current--,0===xt.current&&ut(!1)},[]),Kt=g(e=>{if(e.preventDefault(),e.stopPropagation(),xt.current=0,ut(!1),e.dataTransfer?.files&&e.dataTransfer.files.length>0){const t=Array.from(e.dataTransfer.files);Ge(t)}},[Ge]),Ht=g(async()=>{if(!it){st(!0);try{await fe.agents.sendSignal(n,"Stop",{message:"User requested stop"}),ve({status:"info",title:he("agent.agentInterrupted"),description:he("agent.typeNewInstructions"),duration:3e3})}catch(e){ve({status:"error",title:he("agent.failedToInterrupt"),description:e instanceof Error?e.message:he("agent.unknownError"),duration:3e3})}finally{st(!1)}}},[it,fe,n,ve]);f(()=>(Z&&(Z.current=xe?null:Ht),()=>{Z&&(Z.current=null)}),[Z,xe,Ht]),f(()=>{X?.(it)},[it,X]);const Jt=a||he("agent.agentConversation"),[Yt,Qt]=d(!1),Zt=c(()=>be.filter(e=>{if(e.type===vo.COMPLETE)return!0;if(e.type===vo.THOUGHT){const t=e.details;return"completed"===t?.tool_status}return!1}).length,[be]),Xt=c(()=>Dt.plan.plan?.reduce((e,t)=>(t.id&&t.goal&&e.set(t.id.toString(),t.goal),e),new Map),[Dt.plan]),eo=t("div",{ref:He,className:Ze("flex flex-col min-h-0 min-w-0 border-0",ge?"flex-1 h-full":Ot?"w-full flex-1 min-h-[50vh]":l?"flex-1 w-full":"flex-1 mx-auto "+(s?"":"max-w-4xl")),children:[!D&&e("div",{className:"flex-shrink-0",children:e(Cd,{title:Jt,isCompleted:xe,isTerminal:St,onClose:i,isModal:s,agentRunId:n,workflowRunId:Se||"",viewMode:at,onViewModeChange:rt,showPlanPanel:z&&Ee,hasPlan:z&&Pe.length>0,showPlanButton:z&&!ge,onTogglePlanPanel:At,onDownload:async()=>{try{const e=await ka(fe,n);e&&window.open(e,"_blank")}catch(e){console.error("Failed to download conversation",e),ve({status:"error",title:he("agent.failedToDownload"),duration:3e3})}},resetWorkflow:p,onRestart:h,onClone:v,onShowDetails:y,onExportPdf:()=>{He.current?Qt(!0):ve({status:"error",title:he("agent.pdfExportFailed"),description:he("agent.noConversationContent"),duration:3e3})},isReceivingChunks:Ce})}),0!==be.length||xe?e(fd,{messages:be,bottomRef:Ke,isCompleted:xe,plan:Dt.plan,workstreamStatus:Dt.workstreamStatus,showPlanPanel:z&&Ee,onTogglePlanPanel:At,plans:Pe,activePlanIndex:Ae,onChangePlan:Ft,taskLabels:Xt,streamingMessages:we,onSendMessage:qt,thinkingMessageIndex:lt,messageItemClassNames:ee,messageStyleOverrides:te,toolCallGroupClassNames:ne,hideToolCallsInViewMode:ae,streamingMessageClassNames:re,batchProgressPanelClassNames:ie,artifactRunId:n,viewMode:at,hideWorkstreamTabs:F,workingIndicatorClassName:se,messageListClassName:le,StoreLinkComponent:Vt,CollectionLinkComponent:de,prependFriendlyMessage:ue,hiddenMessageTypes:_}):e("div",{className:"flex-1 flex flex-col items-center justify-center h-full text-center py-6",children:t("div",{className:"p-5 max-w-md border border-info rounded-lg shadow-sm",children:[t("div",{className:"flex items-center space-x-3 mb-3",children:[e(aa,{size:"sm",color:"blue"}),e("div",{className:"text-sm text-muted font-medium",children:ya[lt]})]}),e("div",{className:"mt-4 flex justify-center",children:e(na,{color:"blue",className:"mt-1"})})]})}),!P&&e("div",{className:"flex-shrink-0",style:{paddingBottom:"env(safe-area-inset-bottom, 0px)"},children:Nt&&"RUNNING"!==Nt?t(Ut,{status:"COMPLETED"===Nt?"success":"done",icon:null,className:"m-2",children:["This Workflow is ",Nt]}):Ie&&e(Nd,{onSend:qt,onStop:Ht,disabled:L,isSending:Ye||L,isStopping:it,isStreaming:!xe,isCompleted:xe,activeTaskCount:(()=>{if(ht.length>0)return ht.filter(e=>"running"===e.status).length;if(!be.length)return 0;const e=new Map;be.forEach(t=>{const o=Ca(t);"main"!==o&&"all"!==o&&(e.has(o)||e.set(o,[]),e.get(o)?.push(t))});let t=0;for(const[o,n]of e.entries())if(n.length>0){const e=n[n.length-1];[vo.COMPLETE,vo.IDLE].includes(e.type)||t++}return t})(),placeholder:u??"Type your message...",onFilesSelected:Ge,uploadedFiles:b,onRemoveFile:w,acceptedFileTypes:x,maxFiles:C,processingFiles:Be,hasProcessingFiles:$e,renderDocumentSearch:k,selectedDocuments:T,onRemoveDocument:N,hideObjectLinking:S,hideFileUpload:I,className:V,inputClassName:W})})]}),to=e(qn,{children:e(pa,{children:t("div",{ref:Je,className:Ze("flex flex-col lg:flex-row gap-2 w-full h-full relative overflow-hidden",dt&&"ring-2 ring-blue-400 ring-inset",M),onDragEnter:Bt,onDragOver:$t,onDragLeave:Gt,onDrop:Kt,children:[dt&&e("div",{className:"absolute inset-0 flex items-center justify-center bg-blue-100/80 dark:bg-blue-900/40 z-50 pointer-events-none rounded-lg",children:t("div",{className:"text-blue-600 dark:text-blue-400 font-medium flex items-center gap-2 text-lg",children:[e(oe,{className:"size-6"}),"Drop files to upload"]})}),!ge&&eo,Ot&&t(o,{children:[!ge&&e("div",{className:"hidden lg:block lg:w-1 lg:shrink-0 cursor-col-resize bg-border/70 hover:bg-border transition-colors",onMouseDown:()=>Rt(!0),role:"separator","aria-orientation":"vertical","aria-label":"Resize right panel"}),e("div",{className:ge?"w-full h-full overflow-auto":"w-full lg:w-[var(--agent-right-panel-width)] lg:shrink-0 min-h-[50vh] lg:h-full border-t lg:border-t-0 lg:border-l",style:ge?void 0:{"--agent-right-panel-width":`${Et}px`},children:e(Md,{plan:Dt.plan,workstreamStatus:Dt.workstreamStatus,plans:Pe,activePlanIndex:Ae,onChangePlan:Ft,showPlan:!A&&Ee,activeWorkstreams:Pt,hideWorkstreams:F,openDocuments:_e,activeDocumentId:Re,onSelectDocument:Ve,onCloseDocument:Me,onUpdateDocumentTitle:qe,docRefreshKey:Le,runId:n,processingFiles:G??Be,showArtifacts:E,artifactRefreshKey:Zt,messages:be,payloadContent:pe,conversationContent:ge?eo:me,onClose:Lt,defaultTab:zt,activeTab:zt,onTabChange:It})})]}),t(pt,{isOpen:Yt,onClose:()=>Qt(!1),children:[e(mt,{children:"Export conversation as PDF"}),t(gt,{children:[e("p",{className:"mb-2",children:"This will open your browser's print dialog with the current conversation."}),e("p",{className:"text-sm text-muted",children:'To save a PDF, choose "Save as PDF" or a similar option in the print dialog.'})]}),t(yt,{align:"right",children:[e(et,{variant:"ghost",size:"sm",onClick:()=>Qt(!1),children:"Cancel"}),e(et,{size:"sm",onClick:()=>{if(!He.current)return void ve({status:"error",title:he("agent.pdfExportFailed"),description:he("agent.noConversationContent"),duration:3e3});const e=`${Jt} - ${n}`,t=function(e,t){if("undefined"==typeof window||"undefined"==typeof document)return!1;const o=document.createElement("iframe");o.style.position="fixed",o.style.right="0",o.style.bottom="0",o.style.width="0",o.style.height="0",o.style.border="0",o.style.visibility="hidden",document.body.appendChild(o);const n=o.contentWindow;if(!n)return o.parentNode?.removeChild(o),!1;const a=n.document;return a.open(),a.write(`<!doctype html><html><head><title>${t}</title></head><body></body></html>`),a.close(),a.title=t,document.querySelectorAll('link[rel="stylesheet"], style').forEach(e=>{a.head.appendChild(e.cloneNode(!0))}),a.body.innerHTML=e.innerHTML,n.focus(),n.print(),setTimeout(()=>{o.parentNode?.removeChild(o)},1e3),!0}(He.current,e);t?(ve({status:"success",title:he("agent.pdfExportReady"),description:he("agent.printDialogDescription"),duration:4e3}),Qt(!1)):ve({status:"error",title:he("agent.pdfExportFailed"),description:he("agent.unableToOpenPrint"),duration:4e3})},children:"Open print dialog"})]})]})]})})});return q?e(Lo,{data:q,sendMessage:qt,ChartComponent:Xn,artifactRunId:n,children:to}):to}function Jd({messages:t}){const o=l.useMemo(()=>[...t].sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),[t]);return e("div",{className:"flex flex-col overflow-y-auto space-y-6 py-4",children:o.map((t,o)=>e(Gc,{message:t,showPulsatingCircle:!1},`${t.timestamp}-${o}`))})}function Yd({messages:t,bottomRef:o,className:n,messagesClassName:a,emptyClassName:r}){const i=l.useRef(null);f(()=>{o.current&&o.current.scrollIntoView({behavior:"smooth"})},[t,o]);const s=l.useMemo(()=>[...t].sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),[t]);return e("div",{ref:i,className:`flex-1 min-h-0 h-full overflow-y-auto py-4 px-4 sm:px-6 lg:px-8 bg-white flex flex-col ${n||""}`,"data-testid":"messages-container",children:0===s.length?e("div",{className:`flex items-center justify-center h-full text-center py-8 ${r||""}`,children:e("div",{className:"flex items-center px-4 py-3 text-gray-500",children:"Waiting for agent response..."})}):e("div",{className:`flex-1 flex flex-col justify-start h-full min-h-0 ${a||""}`,children:e(Jd,{messages:s,isCompleted:!1})})})}function Qd({children:t,fallback:o}){return Zd?e(Zd,{fallback:o,children:t}):e(gn,{FallbackComponent:o,children:t})}let Zd=null;function Xd(e){Zd=e}function eu({children:t}){return e(Qd,{fallback:tu,children:t})}function tu({error:o}){const{t:n}=Vn();return t(Ut,{status:"error",title:n("errors.somethingWentWrong"),children:[t("div",{className:"mb-4",children:[n("errors.teamNotifiedLine1")," ",n("errors.teamNotifiedLine2")," ",e("a",{className:"text-info",href:"mailto:support@vertesiahq.com",children:"support@vertesiahq.com"}),"."]}),o?.message&&e("code",{className:"w-full mt-4 text-sm text-muted break-words",children:o.message})]})}function ou({children:t}){return e(Qd,{fallback:nu,children:t})}function nu({error:o}){return e("tr",{children:t("td",{colSpan:100,children:[e("span",{className:"text-xs",children:" Cannot display row"}),e("br",{}),e("span",{className:"bg-gray-400",children:o?.message})]})})}function au({children:t}){return e(Qd,{fallback:ru,children:t})}function ru({error:o}){return console.log("WidgetError",o),t("div",{className:"text-sm",children:["Sorry, this area cannot be loaded or rendered.",o?.message&&e("pre",{children:o.message})]})}const iu=/^[a-f0-9]{24}$|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^(?=.*\d)(?=.*[a-zA-Z])[a-zA-Z0-9_-]{8,}$/i;function su(e){return iu.test(e)}function lu({className:o,children:a,title:r,description:i,actions:s,breadcrumbs:l,useDynamicBreadcrumbs:c=!0}){const d=Mo();function u(e){return e.replace(/[-_]/g," ").split(" ").map(e=>hn(e)).join(" ")}const p=e=>{if(e?.title)return e.title;const t=e?.href||"";if(!t)return"Page";const o=t.split("#")[0].split("?")[0].split("/").filter(e=>e.length>0);return o.length>=1?u(o[o.length-1]):"Page"},m=(()=>{const e=[];if(c&&"undefined"!=typeof window){const t=window.history.state?.historyChain;if(t)t.forEach((o,n)=>{const a=t.length-n;e.push({label:p(o),href:o.href,onClick:()=>d(o.href,{stepsBack:a})})});else{const t=window.location.pathname.split("/").filter(e=>e.length>0);for(let o=0;o<t.length;o++)if(su(t[o])){const n="/"+t.slice(0,o).join("/");e.push({label:u(t[o-1]||n),href:n,onClick:()=>d(n,{isBasePathNested:!1})})}}}return l&&l.length>0&&l.forEach(t=>{const o=t.props?.children||t;e.push(t?.props?.href?{href:t?.props?.href,label:o,onClick:()=>d(t.props.href,{replace:t.props.clearBreadcrumbs})}:{label:o})}),e})();return t("div",{className:n("pb-0 pl-4 pr-2 py-2 flex flex-col",o),children:[t("div",{className:"flex items-start gap-4",children:[t("div",{className:"w-full flex place-content-between h-auto min-h-8 flex-col items-start justify-center",children:[t("nav",{className:"flex-1 flex justify-start text-sm",children:[m.length>0&&e(fo,{path:m,separator:e(F,{className:"size-3.5"}),maxItems:4}),i&&e(ot,{description:i,children:e(le,{className:"size-4 text-muted ml-4"})})]}),r&&e("div",{className:"flex gap-2 items-center",children:e("h1",{className:"text-xl font-semibold break-all",children:r})})]}),e("div",{className:"flex gap-x-2 shrink-0",children:s})]}),a&&e("div",{className:"w-full flex items-center",children:a})]})}function cu({}){const{t:o}=Vn();return t("div",{className:"text-center pt-32",children:[e("h1",{className:"text-3xl font-bold text-red-500",children:"404"}),e("p",{className:"text-2xl",children:o("layout.pageNotFound")})]})}function du({permission:t,...o}){return zr().hasPermission(t)?e(fn,{...o}):null}function uu({user:o}){return t("div",{className:"flex items-center",children:[e("div",{className:"w-9 h-9",children:(()=>{if(o.picture)return e("img",{className:"inline-block h-9 w-9 rounded-full",src:o.picture,alt:o.name});{const t=o.name.split(" ").map(e=>e[0]).join("");return e("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-indigo-600",children:e("span",{className:"text-sm font-medium leading-none text-white",children:t})})}})()}),t("div",{className:"ml-3",children:[e("p",{className:"text-sm font-medium text-gray-700 dark:text-slate-50 group-hover:text-gray-900",children:o.name??"Deleted User"}),e("p",{className:"text-xs font-medium text-gray-500 dark:text-slate-300 group-hover:text-gray-700",children:o.email??"Deleted User"})]})]})}u(void 0);class pu{filter(e,t){const o=t.toLowerCase();return e.filter(e=>this.valueOf(e).toLowerCase().includes(o))}renderOption(e){return this.valueOf(e)}findById(e,t){return e.find(e=>this.idOf(e)===t)}createItem(e){return null}}class mu extends pu{valueOf(e){return String(e)}idOf(e){return String(e)}static instance=new mu}class gu extends mu{createItem(e){return e}static instance=new gu}const hu=l.createContext(void 0);function fu(){return l.useContext(hu)}s.forwardRef(({className:t,sideOffset:o=4,side:n="top",...a},r)=>{const i=fu();return e(vn.Portal,{container:i,children:e(vn.Content,{ref:r,sideOffset:o,side:n,style:{zIndex:100},className:Ln("max-w-[90vw]","z-50 overflow-hidden rounded-md bg-tooltips border border-border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})})}).displayName=vn.Content.displayName,yn("inline-flex items-center rounded-md px-2 py-1 text-xs font-medium",{variants:{variant:{default:"text-foreground bg-muted",secondary:"bg-secondary text-primary",destructive:"bg-destructive text-destructive",attention:"bg-attention text-attention",success:"bg-success text-success",info:"bg-info text-info",done:"bg-done text-done"}},defaultVariants:{variant:"default"}}),yn("inline-flex items-center gap-x-1.5 rounded-md px-2 py-1 text-xs font-medium ring-1 ring-inset ring-border",{variants:{variant:{default:"",success:"",destructive:"",attention:"",done:"",info:""}},defaultVariants:{variant:"default"}}),yn("h-1.5 w-1.5",{variants:{variant:{default:"fill-foreground",success:"fill-success",destructive:"fill-destructive",attention:"fill-attention",done:"fill-done",info:"fill-info"}},defaultVariants:{variant:"default"}});const vu=yn("",{variants:{size:{xs:"rounded py-1 text-xs rounded-xs",sm:"rounded text-xs rounded-sm",md:"rounded-md py-2 text-sm",lg:"rounded-md text-base",xl:"rounded-md py-2.5 text-lg"},variant:{default:"flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 ring-inset focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",unstyled:"block m-0 p-0 w-full border-0 focus:outline-hidden focus:ring-0 bg-transparent",noPadding:"block rounded-md border-0 bg-background shadow-2xs ring-1 ring-inset ring-ring placeholder:text-muted-foreground focus:ring-2 focus:ring-inset focus:ring-ring ring-offset-background",legacy:"py-1.5 block rounded-md border-0 bg-background shadow-2xs ring-1 ring-inset ring-ring placeholder:text-muted-foreground focus:ring-2 focus:ring-inset focus:ring-ring ring-offset-background"}},defaultVariants:{size:"md",variant:"default"}});s.forwardRef(({className:o,type:n,size:a="md",variant:r="default",clearable:i=!0,onChange:s,value:l,...c},d)=>t("div",{className:"w-full relative inline-block [&:hover_.clear-button]:opacity-100",children:[e("input",{type:n,className:Ln(vu({size:a,variant:r}),o,i&&l?"pr-8":""),ref:d,value:null==l?"":l,onChange:e=>{s&&s(e.target.value)},...c}),i&&l&&!c.readOnly&&!c.disabled&&e(et,{variant:"link",size:"icon",type:"button",onClick:()=>{s&&s("")},className:"clear-button opacity-0 transition-opacity duration-200\n absolute top-1/2 -translate-y-1/2 text-muted !hover:text-destructive cursor-pointer\n flex items-center justify-center size-6 rounded right-2",alt:"Clear input",children:e(D,{size:16})})]})).displayName="Input",b(function(t,o){const{current:a,children:r,className:i,href:s="#",onClick:l,...c}=t;return e("li",{className:n(i,a?"bg-muted":"","w-full p-2 pl-3 text-sm leading-6 font-semibold hover:bg-muted"),children:e("a",{ref:o,href:s,onClick:e=>{l?(e.preventDefault(),l(e)):"#"===s&&e.preventDefault()},className:"w-full flex items-center gap-x-3",...c,children:r})})});const yu={INPUT:"rounded-md text-sm flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 ring-inset focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 py-1.5"};function bu(e){return null==e||isNaN(e)?"":e.toString()}l.forwardRef(({value:t,onChange:o,className:a,noScroll:r=!1,noSpinners:i=!1,...s},c)=>{const[d,u]=l.useState(bu(t));return f(()=>{if(null==t||!isNaN(t)){const e=bu(t);u(e)}},[t]),e("input",{onWheel:r?e=>{e.target.blur()}:s.onWheel,type:"number",value:d,onChange:e=>{const t=e.target.value;if(u(t),""===t)o&&o(void 0,t);else{const e=parseFloat(t);o&&o(e,t)}},className:n(a,yu.INPUT,{"no-spinners":i},i&&"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"),ref:c,...s})});const wu=yn("hover:cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{destructive:"bg-destructive dark:bg-destructive/10 text-destructive ring-1 ring-inset ring-destructive-muted/50 dark:ring-destructive-muted/50 shadow-xs hover:bg-destructive/50",outline:"border border-input bg-background shadow-xs hover:bg-muted ring-inset",secondary:"bg-primary/5 dark:bg-primary/10 text-primary shadow-xs hover:bg-primary/10 dark:hover:bg-primary/20 ring-inset",ghost:"hover:bg-muted/50 dark:hover:bg-muted/20 ring-inset",link:"text-foreground underline-offset-4 hover:underline ring-inset",primary:"bg-primary text-white shadow-xs hover:bg-primary/90 ring-inset",unstyled:""},size:{xs:"h-7 rounded px-2 py-1 text-xs gap-x-1",sm:"h-8 rounded px-3 text-xs",md:"h-9 rounded-md px-4 py-2",lg:"h-10 rounded-md px-3",xl:"rounded-md px-3.5 py-2.5 text-sm gap-x-2",icon:"p-0 m-0 rounded-full"}},defaultVariants:{variant:"primary",size:"md"}}),xu=s.forwardRef(({className:o,variant:a,size:r,asChild:i=!1,alt:s,isDisabled:l,isLoading:c,title:d,onClick:u,type:p,...m},g)=>{const h=t(i?bn:"button",{className:n(Ln(wu({variant:a,size:r})),o),disabled:l||c||m.disabled,ref:g,onClick:u,type:p,autoFocus:!1,...m,children:[c&&e(x,{className:"animate-spin"}),m.children]});return s||d?e(ot,{description:s||d,asChild:!0,className:"cursor-pointer",size:"xs",placement:"top",children:h}):h});xu.displayName="Button";const Cu=s.forwardRef(({size:t,content:o,toast:n,className:a,alt:r,...i},s)=>{const[l,c]=d(!1),u=Mn.getFixedT(null,Un);return e(xu,{ref:s,className:Ln(a),variant:"unstyled",size:t||"sm",onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(o).then(()=>{c(!0),setTimeout(()=>c(!1),2e3),n&&n.toast&&n.toast({status:"success",title:n.message||u("misc.copiedToClipboard"),duration:2e3})}).catch(e=>{console.error("Failed to copy text: ",e),n&&n.toast&&n.toast({status:"error",title:u("misc.failedToCopy"),duration:2e3})})},...i,alt:r??u("misc.copy"),children:l?e(C,{className:"text-success"}):e(z,{className:"size-4"})})});Cu.displayName="CopyButton";u({theme:"system",setTheme:()=>null});s.forwardRef(({className:t,...o},n)=>e("div",{ref:n,className:Ln("rounded-xl border bg-card text-card-foreground shadow",t),...o})).displayName="Card";s.forwardRef(({className:t,...o},n)=>e("div",{ref:n,className:Ln("flex flex-col p-6",t),...o})).displayName="CardHeader";s.forwardRef(({className:t,...o},n)=>e("div",{ref:n,className:Ln("font-semibold leading-none tracking-tight",t),...o})).displayName="CardTitle";s.forwardRef(({className:t,...o},n)=>e("div",{ref:n,className:Ln("text-sm text-muted-foreground",t),...o})).displayName="CardDescription";s.forwardRef(({className:t,...o},n)=>e("div",{ref:n,className:Ln("p-6 pt-0",t),...o})).displayName="CardContent";s.forwardRef(({className:t,...o},n)=>e("div",{ref:n,className:Ln("flex items-center p-6 pt-0",t),...o})).displayName="CardFooter",u(!1);const ku=w.Portal,Tu=s.forwardRef(({className:t,...o},n)=>e(w.Overlay,{ref:n,className:Ln("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o}));Tu.displayName=w.Overlay.displayName;s.forwardRef(({className:o,children:n,...a},r)=>{const i=fu();return t(ku,{container:i,children:[e(Tu,{}),e(w.Content,{ref:r,autoFocus:!1,onOpenAutoFocus:e=>{e.preventDefault()},className:Ln("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",o),...a,children:n})]})}).displayName=w.Content.displayName;s.forwardRef(({className:t,...o},n)=>e(w.Description,{ref:n,className:Ln("text-sm text-muted",t),...o})).displayName=w.Description.displayName;s.forwardRef(({className:t,...o},n)=>e(w.Title,{ref:n,className:Ln("text-lg font-semibold leading-none tracking-tight",t),...o})).displayName=w.Title.displayName,u(()=>{});s.forwardRef(({className:t,orientation:o="horizontal",decorative:n=!0,...a},r)=>e(wn.Root,{ref:r,decorative:n,orientation:o,className:Ln("shrink-0 bg-border","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",t),...a})).displayName=wn.Root.displayName;const Nu=s.createContext(null);function Su(e=!1,t=()=>{},o){e&&t("enter"===o)}s.forwardRef(({children:t,...o},n)=>{const a=s.useContext(Nu);if(!a)throw new Error("PopoverTrigger must be used within a Popover");const{setOpen:r,hover:i,click:l}=a;return e(xn.Trigger,{ref:n,asChild:!0,onMouseEnter:()=>Su(i,r,"enter"),onMouseLeave:()=>Su(i,r,"leave"),onClick:()=>{l&&r(e=>!e)},...o,children:t})}).displayName=xn.Trigger.displayName;s.forwardRef(({className:t,align:o="center",side:n="bottom",...a},r)=>{const i=s.useContext(Nu);if(!i)throw new Error("PopoverContent must be used within a Popover");const{setOpen:l,hover:c}=i,d=fu();return e(xn.Portal,{container:d,children:e(xn.Content,{ref:r,align:o,side:n,onMouseEnter:()=>Su(c,l,"enter"),onMouseLeave:()=>Su(c,l,"leave"),className:Ln("z-50 w-72 rounded-md border-popover bg-popover text-popover-foreground ring-1 ring-gray-200 dark:ring-slate-700 shadow-md focus:outline-none animate-in","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})})}).displayName=xn.Content.displayName;xn.Close.displayName=xn.Close.displayName;s.forwardRef(({className:t,...o},n)=>e(Cn,{ref:n,className:Ln("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...o})).displayName=Cn.displayName;s.forwardRef(({className:o,...n},a)=>t("div",{className:"flex items-center px-3 border-b","cmdk-input-wrapper":"",children:[e(pe,{className:"opacity-50 size-4 shrink-0"}),e(Cn.Input,{ref:a,className:Ln("focus:ring-0","border-0 flex h-8 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",o),...n})]})).displayName=Cn.Input.displayName;s.forwardRef(({className:t,...o},n)=>e(Cn.List,{ref:n,className:Ln("overflow-y-auto overflow-x-hidden",t),...o})).displayName=Cn.List.displayName;s.forwardRef((t,o)=>e(Cn.Empty,{ref:o,className:"py-2 text-sm text-center",...t})).displayName=Cn.Empty.displayName;s.forwardRef(({className:t,...o},n)=>e(Cn.Group,{ref:n,className:Ln("overflow-y-auto overflow-x-hidden p-1 text-foreground","[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...o})).displayName=Cn.Group.displayName;s.forwardRef(({className:t,...o},n)=>e(Cn.Separator,{ref:n,className:Ln("-mx-1 h-px bg-border",t),...o})).displayName=Cn.Separator.displayName;s.forwardRef(({className:t,...o},n)=>e(Cn.Item,{ref:n,className:Ln("hover:bg-muted cursor-pointer relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...o})).displayName=Cn.Item.displayName;const Du=s.createContext({size:void 0,tabs:void 0,current:void 0,setTab:void 0,responsive:!1,variant:"tabs",updateHash:!0});s.forwardRef(({className:t,size:o,variant:n="tabs",...a},r)=>e(Du.Provider,{value:{size:o,variant:n},children:e(kn.List,{ref:r,className:Ln("tabs"===n?"border-b -mb-px flex space-x-4":"flex space-x-2 p-1 rounded-md",t),...a})})).displayName=kn.List.displayName;s.forwardRef(({className:t,href:o,variant:n="tabs",...a},r)=>{const{size:i}=s.useContext(Du),l=s.useCallback(e=>{if(o){e.preventDefault();const t=window.history.state;window.history.pushState(t,"",o)}a.onClick&&a.onClick(e)},[o,a.onClick]);return e(kn.Trigger,{ref:r,className:Ln("tabs"===n?Ln("border-b-2 px-2 py-1.5 text-sm font-medium whitespace-nowrap cursor-pointer","border-transparent text-muted-foreground hover:border-border hover:text-foreground","data-[state=active]:border-primary data-[state=active]:text-primary","disabled:pointer-events-none disabled:opacity-50"):Ln("px-3 py-1.5 text-sm font-medium whitespace-nowrap cursor-pointer rounded-sm transition-colors","tborder border-input bg-muted shadow-xs hover:bg-muted ring-inset","data-[state=active]:bg-primary data-[state=active]:text-white data-[state=active]:shadow-sm","disabled:pointer-events-none disabled:opacity-50"),t,i?`w-1/${i}`:""),onClick:l,...a})}).displayName=kn.Trigger.displayName;s.forwardRef(({className:t,...o},n)=>e(kn.Content,{ref:n,className:Ln("focus-visible:outline-none","flex-1 overflow-y-auto min-h-0 pt-2 pb-4",t),...o})).displayName=kn.Content.displayName;const Pu=yn("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");s.forwardRef(({className:o,required:n,...a},r)=>t(Tn.Root,{ref:r,className:Ln(Pu(),o),...a,children:[a.children,n&&e("span",{className:"text-destructive-foreground ml-1",children:"*"})]})).displayName=Tn.Root.displayName;s.forwardRef(({...t},o)=>e("nav",{ref:o,"aria-label":"breadcrumb",...t})).displayName="Breadcrumb";s.forwardRef(({className:t,...o},n)=>e("ol",{ref:n,className:Ln("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted sm:gap-2.5",t),...o})).displayName="BreadcrumbList";s.forwardRef(({className:t,...o},n)=>e("li",{ref:n,className:Ln("inline-flex items-center gap-1.5 text-muted",t),...o})).displayName="BreadcrumbItem";s.forwardRef(({asChild:t,className:o,...n},a)=>e("a",{ref:a,className:Ln("transition-colors hover:text-muted",o),...n})).displayName="BreadcrumbLink";s.forwardRef(({className:t,href:o,onClick:n,...a},r)=>e(xu,{variant:"ghost",size:"md",ref:r,className:Ln("p-0! hover:underline! hover:bg-background!",t),onClick:e=>{e.preventDefault(),n&&n(e)},...a})).displayName="BreadcrumbButton";s.forwardRef(({className:t,...o},n)=>e("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:Ln("font-normal text-foreground",t),...o})).displayName="BreadcrumbPage";var Au;s.forwardRef(({className:t,...o},n)=>e(Nn.Root,{ref:n,className:Ln("peer size-4 shrink-0 rounded-sm border border-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-white",t),...o,children:e(Nn.Indicator,{className:Ln("flex items-center justify-center text-current"),children:e(C,{className:"size-4"})})})).displayName=Nn.Root.displayName,l.createContext({}),function(e){e.IS="is",e.IS_NOT="is_not",e.CONTAINS="contains",e.BEFORE="before",e.AFTER="after",e.IS_ANY_OF="is_any_of"}(Au||(Au={}));b(({className:t,level:o=3,...n},a)=>e(`h${o}`,{ref:a,className:Ln({h1:"text-2xl font-medium tracking-tight",h2:"text-xl font-medium tracking-tight",h3:"text-lg font-medium",h4:"text-base font-medium",h5:"text-sm font-medium",h6:"text-xs font-medium"}[`h${o}`],"mb-2",t),...n})).displayName="Heading";const Fu=yn("text-foreground",{variants:{size:{xl:"text-base md:text-lg leading-relaxed",lg:"text-base leading-relaxed",default:"text-sm leading-normal",sm:"text-sm leading-normal",xs:"text-xs leading-normal"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold"}},defaultVariants:{size:"default",weight:"normal"}});function zu({size:a,className:r}){const i=function(e){switch(e){case"xs":return"size-2";case"sm":return"size-3";case"md":return"size-4";case"lg":return"size-5";case"xl":return"size-7";case"2xl":return"size-10";default:throw new Error("Unexpected size: "+e)}}(a||"md");return e(o,{children:t("svg",{className:n("animate-[spin_0.8s_linear_infinite] text-indigo-500",i,r),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})}function Iu({onComplete:e,onError:t}){const o=m(null),n=m(e),a=m(t);f(()=>{n.current=e,a.current=t},[e,t]),f(()=>()=>{o.current&&(o.current(),o.current=null)},[]);return{openOAuthPopup:e=>{o.current&&(o.current(),o.current=null);const t=window.screenX+(window.outerWidth-600)/2,r=window.screenY+(window.outerHeight-700)/2,i=window.open(e,"oauth_popup",`width=600,height=700,left=${t},top=${r},popup=yes`);let s=!1,l=null;const c=new BroadcastChannel("oauth-callback");c.addEventListener("message",e=>{var t;"object"==typeof(t=e.data)&&null!==t&&"type"in t&&"oauth-complete"===t.type&&"success"in t&&"boolean"==typeof t.success&&(s=!0,c.close(),l&&clearInterval(l),n.current(),!e.data.success&&e.data.error&&a.current?.(e.data.error),o.current=null)}),i&&(l=setInterval(()=>{i.closed&&(l&&clearInterval(l),c.close(),s||n.current(),o.current=null)},1e3)),o.current=()=>{c.close(),l&&clearInterval(l)}}}}function Eu({oauthProviderId:n,onAuthChange:a}){const{client:r}=Qe(),{t:i}=Vn(),[s,l]=d(null),[c,u]=d(!0),[p,m]=d(!1),[h,v]=d(!1),y=g(async()=>{try{u(!0);const e=await r.oauthProviders.getStatus(n);l(e)}catch(e){console.error("Failed to load OAuth provider status:",e)}finally{u(!1)}},[r,n]);f(()=>{y()},[y]);const{openOAuthPopup:b}=Iu({onComplete:()=>{m(!1),y(),a?.()},onError:e=>{console.error("OAuth provider auth failed:",e),m(!1)}}),w=async()=>{if(!h)try{v(!0),await r.oauthProviders.disconnect(n),await y(),a?.()}catch(e){console.error("Failed to disconnect OAuth provider:",e)}finally{v(!1)}};return c?e(zu,{className:"size-4"}):s?.authenticated?t("div",{className:"flex items-center gap-2",children:[t("div",{className:"flex items-center gap-1 text-success text-sm",children:[e(qe,{className:"size-4"}),e("span",{children:i("oauthProvider.connected")})]}),e(xu,{variant:"outline",size:"sm",onClick:w,disabled:h,children:h?e(zu,{className:"size-3"}):i("oauthProvider.disconnect")})]}):e(xu,{variant:"outline",size:"sm",onClick:async()=>{if(!p)try{m(!0);const e=await r.oauthProviders.authorize(n);e.authorization_url&&b(e.authorization_url)}catch(e){console.error("Failed to authorize OAuth provider:",e),m(!1)}},disabled:p,children:t(o,p?{children:[e(zu,{className:"size-4"}),e("span",{children:i("oauthProvider.authenticating")})]}:{children:[e(P,{className:"size-4 mr-1"}),e("span",{children:i("oauthProvider.authenticate")})]})})}function ju({appId:n,collectionId:a,collectionName:r,authenticated:i,onAuthChange:s,onError:l,variant:c="default",showLabel:u=!1,showDisconnect:p=!1,readOnly:m=!1}){const{client:h}=Qe(),{t:v}=Vn(),[y,b]=d(null),[w,x]=d(void 0===i),[C,k]=d(!1),[T,N]=d(!1),S=i??y?.authenticated??!1,D=r??a,A=g(async()=>{if(void 0===i)try{x(!0);const e=await h.remoteMcpConnections.getCollectionStatus(n,a);b(e)}catch(e){console.error("[RemoteMcpConnectionButton] Failed to load OAuth status:",e)}finally{x(!1)}else x(!1)},[h,n,a,i]);f(()=>{A()},[A]);const{openOAuthPopup:F}=Iu({onComplete:()=>{k(!1),A(),s?.()},onError:e=>{console.error("OAuth failed:",e),k(!1)}}),z=async()=>{try{k(!0),l?.(null);const e=await h.remoteMcpConnections.authorize(n,a);e.connected?(k(!1),await A(),s?.()):e.authorization_url?F(e.authorization_url):(l?.(`${D}: Authorization URL not provided by server`),k(!1))}catch(e){console.error("Failed to authorize:",e);const t=(e instanceof Error?e.original_message??e.message:"Failed to connect").replace(/^[A-Za-z\s]+:\s/,"");l?.(`${D}: ${t}`),k(!1)}},I=async()=>{try{N(!0),await h.remoteMcpConnections.disconnect(n,a),await A(),s?.()}catch(e){console.error("Failed to disconnect:",e)}finally{N(!1)}};return w?e("div",{className:"flex items-center gap-2 text-sm",children:e(zu,{className:"size-4"})}):"full"===c?t("div",S?{className:"flex items-center gap-2",children:[u&&t("span",{className:"font-medium text-sm text-foreground",children:[D,":"]}),t("div",{className:"flex items-center gap-1 text-success text-sm",children:[e(qe,{className:"size-4"}),e("span",{children:v("mcpOAuth.connected")})]}),p&&e(xu,{variant:"ghost",size:"sm",onClick:I,disabled:T,children:T?e(zu,{className:"size-4"}):v("mcpOAuth.disconnect")})]}:{className:"flex items-center gap-2 text-sm",children:[u&&t("span",{className:"font-medium text-foreground",children:[D,":"]}),e(xu,{variant:"ghost",size:"sm",onClick:z,disabled:C,children:t(o,C?{children:[e(zu,{className:"size-4"}),e("span",{children:v("mcpOAuth.authenticating")})]}:{children:[e(Be,{className:"size-4"}),e("span",{children:v("mcpOAuth.authenticate")})]})})]}):S?t("div","compact"===c?{className:"flex items-center gap-2",children:[u&&t("span",{className:"font-medium text-xs text-foreground",children:[D,":"]}),t("div",{className:"flex items-center gap-1 text-success",children:[e(qe,{className:"size-3"}),e("span",{className:"text-xs",children:v("mcpOAuth.connected")})]}),!m&&p&&e(xu,{variant:"ghost",size:"sm",onClick:I,disabled:T,className:"h-6 px-2 text-xs",children:T?e(zu,{className:"size-3"}):v("mcpOAuth.disconnect")})]}:{className:"flex items-center gap-1 text-success",children:[e(qe,{className:"size-4"}),e("span",{className:"text-sm",children:v("mcpOAuth.connected")})]}):"compact"===c?t("div",m?{className:"flex items-center gap-2",children:[u&&t("span",{className:"font-medium text-xs text-foreground",children:[r,":"]}),e("div",{className:"flex items-center gap-1 text-muted",children:e("span",{className:"text-xs",children:v("mcpOAuth.notConnected")})})]}:{className:"flex items-center gap-2",children:[u&&t("span",{className:"font-medium text-xs text-foreground",children:[D,":"]}),e(xu,{variant:"outline",size:"sm",onClick:z,disabled:C,className:"h-6 px-2 text-xs",children:t(o,C?{children:[e(zu,{className:"size-3"}),e("span",{children:v("mcpOAuth.connecting")})]}:{children:[e(P,{className:"size-3 mr-1"}),e("span",{children:v("mcpOAuth.connect")})]})})]}):e(xu,{variant:"outline",size:"sm",onClick:z,disabled:C,children:t(o,C?{children:[e(zu,{className:"size-4"}),e("span",{children:v("mcpOAuth.connecting")})]}:{children:[e(P,{className:"size-4 mr-1"}),e("span",{children:v("mcpOAuth.connect")})]})})}b(({className:t,size:o,weight:n,...a},r)=>e("p",{ref:r,className:Ln(Fu({size:o,weight:n,className:t})),...a})).displayName="Text",s.createContext(!1);export{An as ActivitiesDoc,zn as ActivityDoc,lc as AddToCollectionAction,ic as AddToCollectionActionComponent,oa as AgentChart,js as AgentRunnerFacetsNav,Dr as AllOf,na as AnimatedThinkingDots,Sr as AnyOf,cs as ApiKeyAvatar,fa as AskUserWidget,Fl as BrowseCollectionView,mc as ChangeTypeAction,uc as ChangeTypeActionComponent,_l as CollectionIcon,zs as CollectionsFacetsNav,jl as CollectionsTable,va as ConfirmationWidget,Oa as ContentDispositionButton,$l as ContentObjectTypesSearch,Ol as ContentObjectTypesTable,gi as ContentOverview,Il as CreateCollectionForm,El as CreateCollectionModal,ql as CreateOrUpdateTypeModal,vc as DeleteObjectsAction,hc as DeleteObjectsActionComponent,yc as DeleteObjectsFromCollectionsAction,Gs as DocumentGridView,zi as DocumentIcon,Fi as DocumentIconSkeleton,gl as DocumentInput,hl as DocumentPreviewPanel,Ks as DocumentSearch,ll as DocumentSearchProvider,Cl as DocumentSearchResults,xl as DocumentSearchResultsWithDropZone,_s as DocumentSelection,Us as DocumentSelectionProvider,rl as DocumentTable,Bs as DocumentTableColumn,$s as DocumentTableView,ol as DocumentUploadModal,Cs as DocumentsFacetsNav,Zl as EditCollectionView,ps as EnvironmentFacet,xc as ExportPropertiesAction,bc as ExportPropertiesComponent,Sl as ExportPropertiesModal,Nl as ExportTypes,Xs as FileUploadAction,lu as GenericPageNavHeader,Cd as Header,Ns as InteractionsFacetsNav,ca as JumpingDots,$c as MESSAGE_STYLES,kr as MagicPdfView,Gc as MessageItem,Yd as MessagesContainer,$d as ModernAgentConversation,cu as NotFoundView,Eu as OAuthProviderConnectButton,Gl as ObjectSchemaEditor,Ll as ObjectTypeSearch,Ul as ObjectTypeSearchContext,Hl as ObjectTypeSearchProvider,Ec as ObjectsActionContextProvider,eu as PanelErrorBoundary,yd as PayloadBuilder,wd as PayloadBuilderProvider,vd as PayloadBuilderStore,bd as PayloadContext,Ka as PdfDocumentRenderer,Ua as PdfPageRenderer,Ya as PdfPageSlider,Ga as PdfThumbnailList,Ps as PromptsFacetsNav,ti as PropertiesEditorModal,aa as PulsatingCircle,ia as PulsingMessageLoader,ju as RemoteMcpConnectionButton,Tc as RemoveFromCollectionAction,Cc as RemoveFromCollectionActionComponent,ou as RowErrorBoundary,hs as RunsFacetsNav,ei as SaveVersionConfirmModal,Hs as SearchContext,Er as SecureButton,du as SecureSidebarItem,ec as SelectCollection,zl as SelectContentType,Jl as SelectContentTypeModal,dl as SelectDocument,pl as SelectDocumentModal,_c as SelectionActions,Va as SharedPdfProvider,tc as SharedPropsEditor,Ba as SimplePdfPage,Nr as SimplePdfViewer,Fd as SkillWidgetProvider,Dc as StartWorkflowAction,Nc as StartWorkflowComponent,Kc as StreamingMessage,ji as StringFacet,_i as StringListFacet,oc as SyncMemberHeadsToggle,Yl as TableLayoutEditor,sa as ThinkingBar,ya as ThinkingMessages,Vi as TypeFacet,Ri as TypeRegistry,Li as TypeRegistryProvider,ra as TypedDots,Oc as UploadObjectsButton,uu as UserAvatar,rs as UserInfo,Ir as UserPermissionProvider,Ar as UserPermissions,Fr as UserPermissionsContext,Wi as VInteractionFacet,qi as VStringFacet,Bi as VTypeFacet,us as VUserFacet,Xn as VegaLiteChart,Qd as VertesiaErrorBoundary,la as WavyThinking,au as WidgetErrorBoundary,ys as WorkflowExecutionsFacetsNav,Rl as collectionIcon,Es as createAgentRunnerFilterHandler,Qr as getWorkflowStatusColor,Zr as getWorkflowStatusName,Pr as isAnyOf,Vr as isCsv,Wr as isImage,qr as isPdf,$r as isPreviewableAsPdf,ta as isRechartsSpec,ea as isVegaLiteSpec,Br as isVideo,Yr as printElementToPdf,Jr as retrieveRendition,Xd as setErrorBoundaryComponent,jr as shortId,_r as shortenString,Ql as stringifyTableLayout,Is as useAgentRunnerFilterGroups,As as useCollectionsFilterGroups,Fs as useCollectionsFilterHandler,ws as useDocumentFilterGroups,xs as useDocumentFilterHandler,Js as useDocumentSearch,Zs as useDocumentSearchCount,Os as useDocumentSelection,nl as useDocumentUploadHandler,ai as useDownloadFile,Qi as useFetchApiKeyInfo,Yi as useFetchGroupInfo,Ji as useFetchUserInfo,ks as useInteractionsFilterGroups,Ts as useInteractionsFilterHandler,Iu as useOAuthPopup,Ls as useOptionalDocumentSelection,xd as usePayloadBuilder,Ss as usePromptsFilterGroups,Ds as usePromptsFilterHandler,ms as useRunsFilterGroups,gs as useRunsFilterHandler,Ml as useSearch,Wl as useSearchCount,Wa as useSharedPdf,tl as useSmartFileUploadProcessing,Ui as useTypeRegistry,zr as useUserPermissions,Ys as useWatchDocumentSearchFacets,Qs as useWatchDocumentSearchResult,Vl as useWatchSearchResult,fs as useWorkflowExecutionsFilterGroups,vs as useWorkflowExecutionsFilterHandler};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{Button as r,Input as a,cn as s,Slider as i,onActivateKey as o,useToast as l,Badge as c,Dropdown as d,MenuItem as m,Center as u,Spinner as p,VTooltip as h,ErrorBox as f,Switch as g,Modal as x,ModalTitle as v,ModalBody as b,Tabs as y,TabsPanel as w,DropdownMenu as N,DropdownMenuTrigger as k,DropdownMenuContent as C,DropdownMenuItem as _,MenuGroup as S,Avatar as T,Table as I,useFetch as z,errorMessage as j,Popover as R,PopoverTrigger as P,PopoverContent as A,FilterProvider as D,FilterBtn as $,FilterBar as E,FilterClear as L,useIsInModal as F,SelectBox as O,InputList as M,Card as U,Separator as W,CardContent as V,THead as B,TBody as q,SharedState as H,useWatchSharedState as G,MessageBox as J,ModalFooter as K,useIntersectionObserver as Y,Textarea as Q,insertNewlineAtCursor as Z,Breadcrumbs as X,ResizablePanelGroup as ee,ResizablePanel as te,ResizableHandle as ne,RadioGroup as re,FormItem as ae,RadioGroupAdapter as se,useTheme as ie,Portal as oe,Checkbox as le,Label as ce,NumberInput as de,SidePanel as me,Divider as ue,TR as pe,EmptyCollection as he,ConfirmModal as fe,useDebounce as ge,Panel as xe,TagsInput as ve,Styles as be,Command as ye,CommandInput as we,CommandEmpty as Ne,CommandGroup as ke,CommandItem as Ce,useFlag as _e,DialogDescription as Se,Heading as Te,TabsBar as Ie,SelectList as ze}from"@vertesia/ui/core";import je,{clsx as Re}from"clsx";import{AnimatePresence as Pe,motion as Ae}from"motion/react";import*as De from"react";import $e,{useMemo as Ee,useState as Le,createContext as Fe,useContext as Oe,useRef as Me,useCallback as Ue,memo as We,useEffect as Ve,useId as Be,Component as qe,useSyncExternalStore as He,forwardRef as Ge}from"react";import*as Je from"@radix-ui/react-dialog";import{useUITranslation as Ke,i18nInstance as Ye,NAMESPACE as Qe}from"@vertesia/ui/i18n";import{useUserSession as Ze,UserSessionContext as Xe}from"@vertesia/ui/session";import{Loader2 as et,Check as tt,Copy as nt,Download as rt,Minimize2 as at,Maximize2 as st,X as it,ChevronsLeft as ot,ChevronLeft as lt,ChevronRight as ct,ChevronsRight as dt,Radio as mt,Code as ut,FileText as pt,Table as ht,Link as ft,Image as gt,MessageSquare as xt,GitBranch as vt,BarChart3 as bt,CheckCircle as yt,AlertCircle as wt,HelpCircle as Nt,Send as kt,XCircle as Ct,ExternalLink as _t,XIcon as St,ImageIcon as Tt,FileTextIcon as It,ChevronDown as zt,CopyIcon as jt,Layers as Rt,Bot as Pt,RefreshCcw as At,Info as Dt,User as $t,Clock as Et,AlertTriangle as Lt,Terminal as Ft,Wrench as Ot,Brain as Mt,Pencil as Ut,Search as Wt,DownloadCloudIcon as Vt,Pause as Bt,Play as qt,ChevronsUp as Ht,ChevronsDown as Gt,Minus as Jt,Plus as Kt,Maximize as Yt,Loader2Icon as Qt,AlertCircleIcon as Zt,FileIcon as Xt,PackageIcon as en,RefreshCwIcon as tn,ChevronDownIcon as nn,ChevronRightIcon as rn,FolderOpenIcon as an,FolderIcon as sn,EyeIcon as on,DownloadIcon as ln,MonitorIcon as cn,ExternalLinkIcon as dn,ClipboardList as mn,Circle as un,LayoutListIcon as pn,ClipboardCopyIcon as hn,ChevronsUpDownIcon as fn,CheckIcon as gn,XCircleIcon as xn,CheckCircleIcon as vn,Rows3 as bn,MessageSquareText as yn,Rewind as wn,InfoIcon as Nn,GitFork as kn,MoreVertical as Cn,Users2 as _n,Users as Sn,RefreshCw as Tn,Eye as In,UploadIcon as zn,TableProperties as jn,LayoutGrid as Rn,PaperclipIcon as Pn,PlusIcon as An,Activity as Dn,SquareIcon as $n,ArrowUpIcon as En,Cpu as Ln,ScanSearch as Fn,CheckCircle2 as On,ShieldAlertIcon as Mn,SquarePen as Un,FileSearch as Wn,Settings as Vn,FolderClosed as Bn,Trash2 as qn,ChevronsUpDown as Hn,EllipsisVertical as Gn}from"lucide-react";import Jn from"papaparse";import{VegaEmbed as Kn}from"react-vega";import{twMerge as Yn}from"tailwind-merge";import{AgentMessageType as Qn,MarkdownRenditionFormat as Zn,FileProcessingStatus as Xn,AgentSearchScope as er,mergeInCodePromptSchemas as tr,supportsToolUse as nr,InteractionStatus as rr,PrincipalType as ar,ImageRenditionFormat as sr,WorkflowExecutionStatus as ir,normalizeToolCollection as or,PDF_RENDITION_NAME as lr,AUDIO_RENDITION_NAME as cr,ContentNature as dr,POSTER_RENDITION_NAME as mr,getPermissionsForRoles as ur,listRoles as pr,ContentObjectStatus as hr,Permission as fr,SearchTypes as gr,SupportedEmbeddingTypes as xr,getContentTypeRefId as vr,SecurityLevelLabels as br}from"@vertesia/common";import yr,{defaultUrlTransform as wr}from"react-markdown";import Nr from"rehype-katex";import{remarkDefinitionList as kr,defListHastHandlers as Cr}from"remark-definition-list";import _r from"remark-directive";import Sr from"remark-gfm";import Tr from"remark-github-blockquote-alert";import Ir from"remark-math";import zr from"remark-supersub";import{visit as jr,SKIP as Rr}from"unist-util-visit";import{FusionFragmentProvider as Pr,FusionFragmentHandler as Ar}from"@vertesia/fusion-ux";import Dr from"dompurify";import $r from"mermaid";import Er from"dayjs";import{useRouterContext as Lr,NavLink as Fr,useNavigate as Or}from"@vertesia/ui/router";import{MarkdownRenderer as Mr,XMLViewer as Ur,DropZone as Wr,UploadSummary as Vr,useCodeBlockContext as Br,isIncompleteJson as qr,CodeBlockPlaceholder as Hr,CodeBlockErrorBoundary as Gr,CodeBlockRendererProvider as Jr,JSONCode as Kr,MonacoEditor as Yr,JSONDisplay as Qr,Progress as Zr,useSchema as Xr,SchemaEditor as ea,ManagedObject as ta,GeneratedForm as na}from"@vertesia/ui/widgets";import{pdfjs as ra,Document as aa,Page as sa}from"react-pdf";import ia,{Ajv as oa}from"ajv";import la from"dayjs/plugin/localizedFormat";import ca from"dayjs/plugin/relativeTime";import{Md5 as da}from"ts-md5";import{ErrorBoundary as ma}from"react-error-boundary";import{capitalize as ua}from"lodash-es";import"react-dom";import{Slot as pa}from"@radix-ui/react-slot";import{cva as ha}from"class-variance-authority";import*as fa from"@radix-ui/react-tooltip";import"@vertesia/ui/env";import"framer-motion";import*as ga from"@radix-ui/react-checkbox";import"@radix-ui/react-collapsible";import{Command as xa}from"cmdk";import"@radix-ui/react-dropdown-menu";import"react-calendar";import*as va from"@radix-ui/react-popover";import*as ba from"@radix-ui/react-label";import"@radix-ui/react-radio-group";import"react-resizable-panels";import*as ya from"@radix-ui/react-separator";import*as wa from"@radix-ui/react-slider";import"@radix-ui/react-switch";import*as Na from"@radix-ui/react-tabs";import{SidebarItem as ka}from"@vertesia/ui/layout";function Ca({children:t,secondary:n=!1}){return e("span",{className:n?"bg-secondary text-primary":"text-foreground bg-muted",children:t})}function _a(e){return e?"array"===e.name?_a(e.innerType):e:void 0}function Sa({property:n}){return t("div",{className:"flex items-center gap-x-2",children:[e("div",{className:"font-semibold text-gray-600",children:n.name}),n.optional&&e(Ca,{children:"optional"}),e(Ca,{children:n.type.value})]})}function Ta({activities:t}){return e("div",{className:"flex flex-col gap-y-4 divide-y divide-gray-200",children:t.map(t=>e(za,{activity:t},t.name))})}function Ia({code:n,children:r}){return t("div",{className:"flex gap-2 items-center border-b border-b-gray-200 mb-2",children:[e("div",{className:"text-lg font-medium text-gray-900 py-2 ",children:r}),n&&e("div",{children:e(Ca,{children:n})})]})}function za({activity:n,headingClass:r,headingRef:a}){return t("div",{className:r,id:n.name,ref:a,children:[e("div",{className:"text-xl font-semibold pt-8",children:n.title}),e("div",{className:"pb-4",children:e(Ca,{children:n.name})}),n.doc&&e("div",{className:"text-gray-700 pb-2",children:n.doc}),t("div",{className:"pb-4",children:[e(Ia,{code:n.paramsType,children:"Parameters"}),e("div",{className:"divide-y divide-gray-100",children:n.params.map(t=>e(ja,{property:t},t.name))})]}),t("div",{className:"pb-4",children:[e(Ia,{children:"Returns"}),e("div",{children:n.returnType?n.returnType.value:"void"})]})]})}function ja({property:n,className:r}){const a=Ee(()=>{const t=_a(n.type.innerType)??n.type;return"object"===t.name&&t.members?e(Pa,{members:t.members}):"enum"===t.name&&t.enum?e(Ra,{values:t.enum}):null},[n.type]);return t("div",{className:je("py-2",r),children:[e(Sa,{property:n}),n.doc&&e("div",{className:"text-gray-700 text-sm pt-2",children:n.doc}),a&&e("div",{className:"my-2 overflow-hidden",children:a})]})}function Ra({values:t}){return e("div",{className:"flex flex-wrap items-center gap-2",children:t.map(t=>e(Ca,{secondary:!0,children:t},t))})}function Pa({members:n}){return e(Da,{className:"rounded-md border border-gray-200",button:n=>t("div",{className:"px-4 py-2 flex items-center gap-x-2 text-sm font-medium hover:text-blue-600",children:[e($a,{isOpen:n}),e("div",n?{children:"Hide child properties"}:{children:"Show child properties"})]}),body:e(Aa,{properties:n})})}function Aa({properties:t}){return e("div",{className:"border-s-2 border-s-blue-200 flex flex-col divide-y divide-gray-100 border-t border-t-gray-200",children:t.map(t=>e(ja,{property:t,className:"px-4 py-2"},t.name))})}function Da({button:n,body:a,className:s,isInitiallyOpen:i}){const[o,l]=Le(i||!1);return t("div",{className:je(o?"block":"inline-block",s),children:[e(r,{variant:"unstyled",className:"p-0 m-0 bg-transparent",onClick:()=>l(!o),children:e(Pe,{children:n(o)})}),e(Pe,{children:o&&e(Ae.div,{className:"overflow-hidden",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeOut"},children:a})})]})}function $a({isOpen:t}){return e(Pe,{propagate:!0,mode:"wait",children:e(Ae.div,{className:"font-mono font-semibold text-gray-400 text-lg",initial:{rotate:0},animate:{rotate:t?45:0},transition:{duration:.2},children:"+"},"closeIcon")})}function Ea(...e){return Yn(Re(e))}const La=Fe(null);function Fa({children:t}){const n=Me(new Map),r=Me(new Map),a=Ue(e=>n.current.get(e),[]),s=Ue((e,t)=>{n.current.set(e,t)},[]),i=Ue(async(e,t)=>{const a=n.current.get(e);if(a)return a;const s=r.current.get(e);if(s)return s;const i=t().then(t=>(n.current.set(e,t),r.current.delete(e),t)).catch(t=>{throw r.current.delete(e),t});return r.current.set(e,i),i},[]),o=$e.useMemo(()=>({getUrl:a,setUrl:s,getOrFetch:i}),[a,s,i]);return e(La.Provider,{value:o,children:t})}function Oa(){return Oe(La)}function Ma(e){return e.startsWith("agents/")||e.startsWith("documents/")}function Ua(e,t,n="inline"){return`artifact:${e}:${t}:${n}`}function Wa(e){return`file:${e}`}function Va({error:n,chartTitle:r}){return e("div",{className:"flex items-center justify-center h-full bg-red-50 dark:bg-red-950 rounded-md p-4",children:t("div",{className:"text-center",children:[t("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:["Cannot render ",r||"Vega-Lite"," chart"]}),e("p",{className:"text-xs text-red-500 dark:text-red-500 mt-1 max-w-xs truncate",children:n})]})})}function Ba({isOpen:n,onClose:a,title:s,description:i,children:o}){const{t:l}=Ke();return e(Je.Root,{open:n,onOpenChange:e=>!e&&a(),children:t(Je.Portal,{children:[e(Je.Overlay,{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm transition-all duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),t(Je.Content,{className:"fixed inset-2 sm:inset-4 z-50 flex flex-col bg-white dark:bg-gray-900 rounded-xl shadow-2xl transition-all duration-300 ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-98 data-[state=open]:zoom-in-98 data-[state=closed]:slide-out-to-bottom-2 data-[state=open]:slide-in-from-bottom-2",onEscapeKeyDown:a,children:[e(Je.Close,{asChild:!0,children:e(r,{variant:"unstyled",onClick:a,className:"absolute top-3 end-3 z-10 p-2 rounded-lg bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors duration-150 shadow-sm","aria-label":l("agent.closeFullscreen"),children:e(it,{className:"w-5 h-5 text-gray-600 dark:text-gray-300"})})}),e("div",{className:"flex-1 overflow-auto p-4 sm:p-6 animate-in fade-in-0 duration-500 delay-150",children:o}),e("div",{className:"flex items-center justify-between px-4 sm:px-6 py-3 border-t border-gray-200 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-800/50 rounded-b-xl",children:t("div",{className:"flex flex-col",children:[e(Je.Title,{className:"text-base font-semibold text-gray-900 dark:text-gray-100",children:s||l("agent.dashboard")}),i&&e(Je.Description,{className:"text-sm text-gray-500 dark:text-gray-400 mt-0.5",children:i})]})})]})]})})}const qa={categorical:["#6366f1","#8b5cf6","#ec4899","#f43f5e","#f97316","#eab308","#22c55e","#14b8a6","#06b6d4","#3b82f6"],blues:["#dbeafe","#93c5fd","#3b82f6","#1d4ed8","#1e3a8a"],purples:["#f3e8ff","#c4b5fd","#8b5cf6","#6d28d9","#4c1d95"],diverging:["#ef4444","#fca5a5","#fef3c7","#86efac","#22c55e"]};function Ha(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Ga(e){return Ha(e)}function Ja(e,t){if(!e?.encoding)return!1;for(const n of t)for(const t of Object.values(e.encoding))if(t.field===n)return!0;if(Array.isArray(e.layer))for(const n of e.layer)if(Ja(n,t))return!0;return!1}function Ka(e,t){if(!e)return!1;const n=e=>{if(!e)return!1;const n=e.color?.field;return!!n&&t.includes(n)};if(n(e.encoding))return!0;if(Array.isArray(e.layer))for(const t of e.layer)if(n(t.encoding))return!0;return!1}function Ya(e,t=[]){const n=[];if(!e||"object"!=typeof e)return n;if(e.data&&"object"==typeof e.data){const r=e.data.url;"string"==typeof r&&r.startsWith("artifact:")&&n.push({path:[...t,"data"],artifactPath:r.replace(/^artifact:/,"").trim()})}const r=["layer","vconcat","hconcat","concat","spec","repeat","facet"];for(const a of r)if(a in e){const r=e[a];Array.isArray(r)?r.forEach((e,r)=>{Ga(e)&&n.push(...Ya(e,[...t,a,String(r)]))}):Ga(r)&&n.push(...Ya(r,[...t,a]))}return n}const Qa=We(function({spec:a,artifactRunId:s}){const{t:i}=Ke(),{title:o,description:l,options:c}=a,d=a.spec,[m,u]=Le(!1),[p,h]=Le(!1),[f,g]=Le(null),[x,v]=Le(!1),b=Me(null),y=Me(null),w=Me(null),{client:N}=Ze(),k=Oa(),C=Me(N);C.current=N;const _=Me(k);_.current=k;const[S,T]=Le(null),[I,z]=Le(!1),[j,R]=Le(null),P=c?.mode||"chart",A="dashboard"===P,D=c?.enableFullscreen??A,$=c?.height||function(e,t){if("chart"===t)return 280;let n=1;if(e.vconcat)n=Array.isArray(e.vconcat)?e.vconcat.length:1;else if(e.concat){const t=e.columns||2,r=Array.isArray(e.concat)?e.concat.length:1;n=Math.ceil(r/t)}else e.facet&&(n=2);return Math.max(500,280*n+40)}(d,P);Ve(()=>{const e=Ya(d);if(0===e.length)return T(d),z(!1),void R(null);s?console.info("[VegaLiteChart] resolving artifacts with runId:",s,e.map(e=>e.artifactPath)):console.warn("[VegaLiteChart] artifact references found but artifactRunId is missing!",{references:e.map(e=>e.artifactPath),artifactRunId:s});let t=!1;z(!0),R(null);return(async()=>{const n=new Map,r=C.current,a=_.current;for(const i of e)try{const e=i.path.join(".");let t;if(s&&!Ma(i.artifactPath)){const e=Ua(s,i.artifactPath,"inline");if(a)t=await a.getOrFetch(e,async()=>(await r.files.getArtifactDownloadUrl(s,i.artifactPath,"inline")).url);else{t=(await r.files.getArtifactDownloadUrl(s,i.artifactPath,"inline")).url}}else{const e=Wa(i.artifactPath);if(a)t=await a.getOrFetch(e,async()=>(await r.files.getDownloadUrl(i.artifactPath)).url);else{t=(await r.files.getDownloadUrl(i.artifactPath)).url}}const o=await fetch(t);if(!o.ok)throw new Error(`Failed to fetch artifact data: ${o.statusText}`);let l;if(i.artifactPath.toLowerCase().endsWith(".csv")){const e=await o.text();l=Jn.parse(e,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}).data}else{const e=await o.json();l=Array.isArray(e)?e:[e]}n.set(e,l)}catch(e){return console.error(`Failed to resolve artifact: ${i.artifactPath}`,e),void(t||R(`Failed to load data from artifact: ${i.artifactPath}`))}if(!t){const e=function(e,t){const n=JSON.parse(JSON.stringify(e));for(const[e,r]of t){const t=e.split(".");let a=n;for(let e=0;e<t.length-1;e++){const n=a[t[e]];if(!Ha(n))break;a=n}const s=a[t[t.length-1]];Ha(s)&&(delete s.url,s.values=r)}return n}(d,n);T(e),z(!1)}})(),()=>{t=!0}},[d,s]);const[E,L]=Le(!1),F=Me(!1);Ve(()=>{const e=()=>{const e=document.documentElement.classList.contains("dark");e!==F.current&&(F.current=e,L(e))};e();const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]);const[O,M]=Le(0),U=Me(0);Ve(()=>{if(!w.current)return;let e;const t=new ResizeObserver(t=>{clearTimeout(e),e=setTimeout(()=>{const e=t[0]?.contentRect.width;e&&e!==U.current&&(U.current=e,M(e))},100)});t.observe(w.current);const n=w.current.clientWidth;return U.current=n,M(n),()=>{clearTimeout(e),t.disconnect()}},[]);const W=Ee(()=>Ya(d).length>0,[d]),V=Ee(()=>{if(W&&!S)return null;let e=S||d;return e?(c?.parameterValues&&(e=function(e,t){if(!t||0===Object.keys(t).length)return e;const n=JSON.parse(JSON.stringify(e)),r=e=>{for(const n of e)n.name&&n.name in t&&(n.value=t[n.name])};Array.isArray(n.params)&&r(n.params);const a=e=>{if(Array.isArray(e))for(const t of e)if(Array.isArray(t.params)&&r(t.params),t.vconcat&&a(t.vconcat),t.hconcat&&a(t.hconcat),t.concat&&a(t.concat),Array.isArray(t.layer))for(const e of t.layer)Array.isArray(e.params)&&r(e.params)};if(n.vconcat&&a(n.vconcat),n.hconcat&&a(n.hconcat),n.concat&&a(n.concat),Array.isArray(n.layer))for(const e of n.layer)e&&Array.isArray(e.params)&&r(e.params);return n}(e,c.parameterValues)),function(e){const t=JSON.parse(JSON.stringify(e)),n=["vconcat","hconcat","concat"];if(!n.some(e=>Array.isArray(t[e])))return t;const r=[];if(Array.isArray(t.params))for(const e of t.params)e&&"object"==typeof e&&e.name&&e.select&&r.push({name:e.name,param:e});if(0===r.length)return t;for(const{name:e,param:a}of r){const r=a.select?.fields||[],s="legend"===a.select?.bind;let i=null;for(const e of n)if(Array.isArray(t[e])){i=t[e];break}if(!i||0===i.length)continue;let o=0;for(let e=0;e<i.length;e++){const t=i[e];if(Ja(t,r)||s&&Ka(t,r)){o=e;break}}const l=i[o];l.params||(l.params=[]),l.params.push(a);const c=t.params??[];t.params=c.filter(t=>t.name!==e)}return Array.isArray(t.params)&&0===t.params.length&&delete t.params,t}(e)):null},[S,d,W,c?.parameterValues]),B=Ue((e,t)=>{if(!e||"object"!=typeof e)return e;if(e.hconcat&&Array.isArray(e.hconcat)){const n=e.hconcat.length,r=(e.spacing??10)*(n-1),a=Math.floor((t-r)/n);return{...e,hconcat:e.hconcat.map(e=>B(e,a))}}if(e.vconcat&&Array.isArray(e.vconcat))return{...e,vconcat:e.vconcat.map(e=>B(e,t))};if(e.concat&&Array.isArray(e.concat)){const n=e.columns??e.concat.length,r=(e.spacing??10)*(n-1),a=Math.floor((t-r)/n);return{...e,concat:e.concat.map(e=>B(e,a))}}const n=e.width;return"container"===n||"number"==typeof n&&n>t?{...e,width:t}:e},[]),q=Ue((e,t=!1)=>{if(!V)return null;const n=function(e){const t={background:"transparent",view:{stroke:"transparent"},range:{category:qa.categorical,diverging:qa.diverging,heatmap:qa.purples,ramp:qa.blues},mark:{tooltip:!0},bar:{tooltip:!0,cornerRadiusTopLeft:4,cornerRadiusTopRight:4},line:{tooltip:!0,strokeWidth:2.5,strokeCap:"round"},point:{tooltip:!0,size:60,filled:!0},area:{tooltip:!0,fillOpacity:.7,line:!0},rect:{tooltip:!0,cornerRadius:2},arc:{tooltip:!0,cornerRadius:4},circle:{tooltip:!0,size:80}};return e?{...t,axis:{labelColor:"#a1a1aa",titleColor:"#e4e4e7",gridColor:"#3f3f46",domainColor:"#52525b",tickColor:"#52525b",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,titleFontWeight:500},legend:{labelColor:"#a1a1aa",titleColor:"#e4e4e7",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,symbolSize:100},title:{color:"#fafafa",font:"Inter, system-ui, sans-serif",fontSize:14,fontWeight:600}}:{...t,axis:{labelColor:"#71717a",titleColor:"#3f3f46",gridColor:"#e4e4e7",domainColor:"#d4d4d8",tickColor:"#d4d4d8",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,titleFontWeight:500},legend:{labelColor:"#71717a",titleColor:"#3f3f46",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,symbolSize:100},title:{color:"#18181b",font:"Inter, system-ui, sans-serif",fontSize:14,fontWeight:600}}}(E),r=t?"undefined"!=typeof window?Math.min(window.innerWidth-80,1400):1200:O>0?O-24:500,a="vconcat"in V||"hconcat"in V||"concat"in V,s=a?{type:"pad",contains:"padding"}:{type:"fit",contains:"padding"};let i=V;a&&r&&(i=B(V,r));const l=i.width,c=a?void 0:"container"===l?r:l??r,{width:d,...m}=i;return{$schema:"https://vega.github.io/schema/vega-lite/v6.json",...!a&&c?{width:c}:{},height:t?void 0:e,autosize:s,...a?i:m,...o&&!V.title?{title:o}:{},config:{...n,...V.config}}},[V,o,E,O,B]),H=Ue(async()=>{const e=x?y.current:b.current;if(e&&!p)try{(await e.toCanvas(2)).toBlob(async e=>{e&&(await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),h(!0),setTimeout(()=>h(!1),2e3))},"image/png")}catch(e){console.error("Failed to copy chart:",e)}},[p,x]),G=Ue(async()=>{const e=x?y.current:b.current;if(e&&!m){u(!0);try{const t=await e.toImageURL("png",2),n=document.createElement("a");n.download=`${o||"chart"}.png`,n.href=t,n.click()}catch(e){console.error("Failed to export chart:",e)}finally{u(!1)}}},[o,m,x]),J=Ue(e=>{b.current=e,g(null)},[]),K=Ue(e=>{y.current=e},[]),Y=Ue(e=>{console.error("Vega-Lite rendering error:",e),g(e instanceof Error?e.message:"Unknown error")},[]),Q=Ue(()=>{v(e=>!e)},[]);Ve(()=>{g(null)},[d]);const Z=({className:n})=>t("div",{className:Ea("flex items-center gap-2",n),children:[t(r,{variant:"unstyled",onClick:H,disabled:p,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 flex items-center gap-1",title:i("agent.copyToClipboard"),children:[e(p?tt:nt,{className:"w-3 h-3"}),i(p?"agent.copied":"agent.copy")]}),t(r,{variant:"unstyled",onClick:G,disabled:m,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1",title:i("agent.exportAsPng"),children:[e(rt,{className:"w-3 h-3"}),i(m?"agent.exporting":"agent.export")]}),D&&t(r,{variant:"unstyled",onClick:Q,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors flex items-center gap-1",title:i(x?"agent.exitFullscreen":"agent.fullscreen"),children:[e(x?at:st,{className:"w-3 h-3"}),i(x?"agent.exit":"agent.fullscreen")]})]});if(I||W&&!S)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:o||"Chart"})}),e("div",{className:"flex items-center justify-center bg-gray-50 dark:bg-gray-800 rounded",style:{width:"100%",height:$},children:t("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[e(et,{className:"w-5 h-5 animate-spin"}),e("span",{className:"text-sm",children:"Loading data from artifacts..."})]})})]})});if(j)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:o||"Chart"})}),e("div",{style:{width:"100%",height:$},children:e(Va,{error:j,chartTitle:o})})]})});if(f)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:o||"Chart"})}),e("div",{style:{width:"100%",height:$},children:e(Va,{error:f,chartTitle:o})})]})});const X=q($),ee=q(0,!0);return X?("undefined"!=typeof window&&localStorage.getItem("DEBUG_VEGA_RENDERS")&&console.log("VegaLite rendering with spec:",{title:o,hasData:!!X.data?.values,dataLength:X.data?.values?.length}),t(n,{children:[e("div",{className:Ea("bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",A&&"border-2"),children:t("div",{className:"flex flex-col gap-2 p-3",children:[t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center gap-2",children:[e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:o||(A?"Dashboard":"Chart")}),A&&e("span",{className:"text-xs px-2 py-0.5 rounded-full bg-indigo-100 dark:bg-indigo-900 text-indigo-700 dark:text-indigo-300",children:"Interactive"})]}),e(Z,{})]}),l&&e("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:l}),e("div",{ref:w,className:"bg-white dark:bg-gray-900 rounded overflow-hidden",style:{width:"100%",height:$,minWidth:0},children:e(Kn,{spec:X,onEmbed:e=>J(e.view),onError:Y,options:{renderer:c?.renderer||"canvas",actions:!1}})})]})}),t(Ba,{isOpen:x,onClose:()=>v(!1),title:o||(A?"Dashboard":"Chart"),description:l,children:[e("div",{className:"w-full h-full min-h-[calc(100vh-200px)]",children:ee&&e(Kn,{spec:ee,onEmbed:e=>K(e.view),onError:Y,options:{renderer:c?.renderer||"canvas",actions:!1}})}),e("div",{className:"absolute bottom-6 end-6",children:e(Z,{className:"bg-white dark:bg-gray-800 rounded-lg shadow-lg p-2 border border-gray-200 dark:border-gray-700"})})]})]})):null},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec)&&e.artifactRunId===t.artifactRunId);function Za(e){return"vega-lite"===e.library&&"object"==typeof e.spec}function Xa(e){return"recharts"===e.library||void 0===e.library}const es=We(function({spec:n,artifactRunId:r}){return Za(n)?e(Qa,{spec:n,artifactRunId:r}):function(e){return"string"==typeof e.$schema&&e.$schema.includes("vega")}(n)?e(Qa,{spec:{library:"vega-lite",spec:n},artifactRunId:r}):t("div",{className:"my-5 rounded-lg border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200",children:["Recharts chart rendering has been retired. Use a Vega-Lite chart spec (",e("code",{children:'library: "vega-lite"'})," with ",e("code",{children:"spec"}),")."]})},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec)&&e.artifactRunId===t.artifactRunId);function ts(e,t){return"live"===e?e:0===t?"live":Math.min(Math.max(e,0),t-1)}function ns(e,t){return 0===t?-1:"live"===e?t-1:Math.min(Math.max(e,0),t-1)}function rs(e,t){if(0===e.length)return null;const n="live"===t?e.length:ns(t,e.length);for(let t=Math.min(n-1,e.length-1);t>=0;t--)if(e[t].type===Qn.QUESTION)return t;return null}function as(e,t){if(0===e.length||"live"===t)return null;for(let n=ns(t,e.length)+1;n<e.length;n++)if(e[n].type===Qn.QUESTION)return n;return"live"}function ss(e,t,n){const r=n?ts(t,e.length):"live",a=ns(r,e.length),s=!n||"live"===r,i=s?e:e.slice(0,a+1);return{cursor:r,cursorIndex:a,isLive:s,renderedMessageCount:i.length,displayedMessages:i}}function is(){return"undefined"!=typeof window}function os(){if(!is())return!1;const e=new URLSearchParams(window.location.search),t=function(e){const t=e.indexOf("?");return-1===t?new URLSearchParams:new URLSearchParams(e.slice(t+1))}(window.location.hash),n=e.get("agentChatPlayback")??t.get("agentChatPlayback");return"1"===n||"true"===n}const ls=is,cs=os;function ds({cursor:n,messages:o,onChangeCursor:l,className:c}){const{t:d}=Ke(),m=o.length,u="live"===n,p=ns(n,m),h=m>0&&(u||p>0),f=!u&&m>0,g=m>0&&(u||p>0),x=!u&&m>0&&p<m-1,v=0===m?0:p+1,[b,y]=Le(String(v));Ve(()=>{y(String(v))},[v]);const w=(e,t=!1)=>{if(0===m)return void y("0");const n=Number.parseInt(e,10);if(!Number.isFinite(n))return void(t&&y(String(v)));const r=Math.min(Math.max(n,1),m);y(String(r)),l(r-1)},N=m>1,k=N?1:0,C=Math.max(1,m),_="size-7 rounded-lg text-muted hover:text-foreground disabled:opacity-35",S=`${Math.max(3,String(m).length+1)}ch`;return t("div",{className:s("inline-flex max-w-full flex-col gap-1 rounded-xl border border-border/70 bg-background/95 px-2 py-1 text-sm leading-none text-muted shadow-lg shadow-black/10 backdrop-blur",c),"data-testid":"agent-test-playback-controls","data-playback-cursor":n,"data-live-message-count":m,"data-rendered-message-count":u?m:p+1,children:[t("div",{className:"flex max-w-full items-center gap-1",children:[e("span",{className:"ms-2 me-1 font-medium leading-none text-foreground/80",children:d("agent.rewind.label")}),e(r,{type:"button",variant:"ghost",size:"icon","aria-label":d("agent.rewind.jumpToStart"),title:d("agent.rewind.jumpToStart"),disabled:!g,onClick:()=>{0!==m&&l(0)},className:_,children:e(ot,{className:"size-4"})}),e(r,{type:"button",variant:"ghost",size:"icon","aria-label":d("agent.rewind.previousMessage"),title:d("agent.rewind.previousMessage"),disabled:!h,onClick:()=>{0!==m&&l("live"!==n?Math.max(0,p-1):m-1)},className:_,children:e(lt,{className:"size-4"})}),t("span",{className:"inline-flex min-w-16 items-center justify-center gap-0.5 px-1 font-medium leading-none tabular-nums text-foreground/80","data-testid":"agent-test-playback-position",children:[e(a,{type:"text",variant:"unstyled",size:"sm",clearable:!1,inputMode:"numeric",pattern:"[0-9]*",value:b,"aria-label":d("agent.rewind.positionInput"),disabled:0===m,onChange:e=>{const t=e.replace(/\D/g,"");y(t)},onBlur:e=>w(e.currentTarget.value,!0),onKeyDown:e=>{"Enter"===e.key&&(w(e.currentTarget.value,!0),e.currentTarget.blur())},style:{width:S},className:"h-7 w-auto rounded-md border border-transparent bg-transparent px-1 text-center text-sm font-medium leading-none tabular-nums text-foreground outline-none transition-colors hover:border-border focus:border-ring focus:bg-muted/30 disabled:opacity-50"}),e("span",{"aria-hidden":"true",className:"text-muted",children:"/"}),e("span",{className:"text-muted",children:m})]}),e(r,{type:"button",variant:"ghost",size:"icon","aria-label":d("agent.rewind.nextMessage"),title:d("agent.rewind.nextMessage"),disabled:!f,onClick:()=>{0!==m&&"live"!==n&&l(p>=m-1?"live":p+1)},className:_,children:e(ct,{className:"size-4"})}),e(r,{type:"button",variant:"ghost",size:"icon","aria-label":d("agent.rewind.jumpToLatest"),title:d("agent.rewind.jumpToLatest"),disabled:!x,onClick:()=>{0!==m&&l(m-1)},className:_,children:e(dt,{className:"size-4"})}),e(r,{type:"button",variant:u?"secondary":"ghost",size:"icon","aria-label":d("agent.rewind.jumpToLive"),title:d("agent.rewind.jumpToLive"),disabled:u,onClick:()=>l("live"),className:s(_,u&&"bg-muted text-foreground"),children:e(mt,{className:"size-4"})})]}),e("div",{className:"px-2 pb-1",children:e(i,{min:k,max:C,step:1,value:[v],"aria-label":d("agent.rewind.positionInput"),disabled:!N,onValueChange:([e])=>(e=>{0!==m&&w(e)})(String(e)),className:"h-2"})})]})}const ms=$e.createContext({});function us({children:t,artifactRunId:n,onProposalSelect:r,onProposalSubmit:a,MarkdownRenderer:s}){const i=Ee(()=>({artifactRunId:n,onProposalSelect:r,onProposalSubmit:a,MarkdownRenderer:s}),[n,r,a,s]);return e(ms.Provider,{value:i,children:t})}function ps(){return $e.useContext(ms)}const hs=Fe(null);const fs={chart:{icon:bt,label:"chart",defaultHeight:200},mermaid:{icon:vt,label:"diagram",defaultHeight:150},proposal:{icon:xt,label:"options",defaultHeight:100},code:{icon:ut,label:"code",defaultHeight:80},image:{icon:gt,label:"image",defaultHeight:150},link:{icon:ft,label:"link",defaultHeight:24},expand:{icon:rt,label:"content",defaultHeight:100},table:{icon:ht,label:"table",defaultHeight:150},markdown:{icon:pt,label:"content",defaultHeight:100},"fusion-fragment":{icon:ut,label:"fragment",defaultHeight:150}};function gs({type:n,error:a,onRetry:s,message:i,height:o}){const l=fs[n],c=o??l.defaultHeight,d="link"===n;if(a)return t("div",{className:"flex items-center gap-2 rounded border border-destructive/30 bg-destructive/5 text-destructive "+(d?"inline-flex px-2 py-1 text-sm":"p-4"),style:d?void 0:{minHeight:c},children:[t("span",{className:"text-destructive",children:["Failed to load ",l.label]}),s&&e(r,{variant:"unstyled",onClick:s,className:"ms-2 rounded bg-destructive/10 px-2 py-1 text-xs hover:bg-destructive/20 transition-colors text-destructive",children:"Retry"})]});const m=l.icon;return d?t("span",{className:"inline-flex items-center gap-1 text-muted animate-pulse",children:[e(m,{className:"h-3 w-3"}),e("span",{children:i||`Loading ${l.label}...`})]}):t("div",{className:"flex flex-col items-center justify-center gap-3 rounded border border-border bg-muted/30 animate-pulse",style:{minHeight:c},children:[e(m,{className:"h-8 w-8 text-muted"}),e("span",{className:"text-sm text-muted",children:i||`Loading ${l.label}...`}),e("div",{className:"flex gap-1",children:[...Array(3)].map((t,n)=>e("div",{className:"h-2 w-2 rounded-full bg-muted animate-bounce",style:{animationDelay:150*n+"ms"}},n))})]})}class xs extends $e.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`CodeBlock rendering error (${this.props.type}):`,e,t),this.props.onError?.(e)}handleRetry=()=>{this.setState({hasError:!1,error:void 0})};render(){if(this.state.hasError){const{type:n,fallbackCode:r}=this.props;return t("div",{className:"space-y-2",children:[e(gs,{type:n,error:this.state.error?.message||"Rendering failed",onRetry:this.handleRetry}),r&&t("details",{className:"text-sm",children:[e("summary",{className:"cursor-pointer text-muted hover:text-foreground",children:"Show raw content"}),e("pre",{className:"mt-2 overflow-x-auto rounded bg-muted/50 p-2 text-xs",children:e("code",{children:r})})]})]})}return this.props.children}}function vs(e){if("object"!=typeof e||null===e)return null;const t=e;return"vega-lite"===t.library&&"spec"in t&&"object"==typeof t.spec&&null!==t.spec?t:"string"==typeof t.$schema&&t.$schema.includes("vega")?{library:"vega-lite",spec:t}:null}function bs({content:n}){const{headers:r,rows:a}=Ee(()=>{if(!Array.isArray(n)||0===n.length)return{headers:[],rows:[]};const e=n[0];if("object"!=typeof e||null===e)return{headers:[],rows:[]};const t=Object.keys(e),r=n.map(e=>t.map(t=>{const n=e[t];return null==n?"":"object"==typeof n?JSON.stringify(n):String(n)}));return{headers:t,rows:r}},[n]);return 0===r.length?e(gs,{type:"table",error:"No table data found"}):t("div",{className:"overflow-x-auto",children:[t("table",{className:"min-w-full text-sm border-collapse",children:[e("thead",{children:e("tr",{className:"border-b",children:r.map((t,n)=>e("th",{className:"px-3 py-2 text-start font-medium text-muted",children:t},n))})}),e("tbody",{children:a.slice(0,100).map((t,n)=>e("tr",{className:"border-b border-muted/20",children:t.map((t,n)=>e("td",{className:"px-3 py-2",children:t},n))},n))})]}),a.length>100&&t("div",{className:"text-sm text-muted py-2",children:["Showing 100 of ",a.length," rows"]})]})}function ys({content:t,path:n}){const r=n.split(".").pop()?.toLowerCase()||"",a="string"==typeof t?t:JSON.stringify(t,null,2);return e("pre",{className:"overflow-x-auto p-3 bg-muted/10 rounded text-sm",children:e("code",{className:`language-${r}`,children:a})})}function ws(e){return Dr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["use"],FORBID_TAGS:["foreignObject"]})}function Ns(e){return e.replace(/<svg([^>]*)>/i,(e,t)=>{let n=t;if(!/viewBox/i.test(n)){const e=/\swidth\s*=\s*["']?(\d+(?:\.\d+)?)/i.exec(n),t=/\sheight\s*=\s*["']?(\d+(?:\.\d+)?)/i.exec(n);e&&t&&(n+=` viewBox="0 0 ${e[1]} ${t[1]}"`)}return n=n.replace(/\swidth\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i,"").replace(/\sheight\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i,""),/style="/i.test(n)?n=n.replace(/style="([^"]*)"/i,(e,t)=>`style="${t};width:100%;height:auto;display:block;max-width:100%;"`):n+=' style="width:100%;height:auto;display:block;max-width:100%;"',/preserveAspectRatio=/i.test(n)||(n+=' preserveAspectRatio="xMidYMid meet"'),`<svg${n}>`})}function ks({content:t}){const n=Ee(()=>{const e="string"==typeof t?t.trim():"";return e?Ns(ws(e)):null},[t]);return n?e("div",{style:{margin:"16px 0",width:"100%",overflowX:"auto"},dangerouslySetInnerHTML:{__html:n}}):e(gs,{type:"expand",error:"Empty mockup"})}function Cs({content:t,path:n}){const r="string"==typeof t?t:"",a=n.split("/").pop()||"Artifact image";return e("img",{src:r,alt:a,className:"max-w-full h-auto rounded",loading:"lazy"})}function _s({content:t,renderType:n,path:r,runId:a,contentType:s}){const{MarkdownRenderer:i}=ps(),o=Ee(()=>"auto"!==n?n:function(e,t,n){const r=t.split(".").pop()?.toLowerCase();if("svg"===r)return"mockup";if(["png","jpg","jpeg","gif","webp"].includes(r||""))return"image";if("md"===r)return"markdown";if("csv"===r)return"table";if("json"===n&&"object"==typeof e&&null!==e){const t=e;if("string"==typeof t.$schema&&t.$schema.includes("vega"))return"vega-lite";if("vega-lite"===t.library&&"spec"in t)return"vega-lite";if("template"in t&&"data"in t)return"fusion-fragment";if(Array.isArray(e)&&e.length>0&&"object"==typeof e[0])return"table"}return"code"}(t,r,s),[t,r,s,n]);switch(o){case"chart":{const n=vs(t);return n?e(xs,{type:"chart",fallbackCode:JSON.stringify(t,null,2),children:e(Qa,{spec:n,artifactRunId:a})}):e(gs,{type:"chart",error:"Only Vega-Lite charts are supported. Recharts rendering has been retired."})}case"vega-lite":{const n=vs(t);return n?e(xs,{type:"chart",fallbackCode:JSON.stringify(t,null,2),children:e(Qa,{spec:n,artifactRunId:a})}):e(gs,{type:"chart",error:"Invalid Vega-Lite specification"})}case"fusion-fragment":{const n=t;return console.log("[ArtifactContentRenderer] fusion-fragment:",{hasTemplate:!!n.template,hasData:!!n.data,runId:a,hasVegaLiteChart:!!Qa}),n.template&&n.data?e(xs,{type:"fusion-fragment",fallbackCode:JSON.stringify(t,null,2),children:e(Pr,{data:n.data,ChartComponent:Qa,artifactRunId:a,children:e(Ar,{code:JSON.stringify(n.template),data:n.data})})}):e(xs,{type:"fusion-fragment",fallbackCode:JSON.stringify(t,null,2),children:e(Ar,{code:JSON.stringify(t)})})}case"table":return e(xs,{type:"table",fallbackCode:JSON.stringify(t,null,2),children:e(bs,{content:t})});case"markdown":{const n="string"==typeof t?t:String(t);return e(xs,{type:"markdown",fallbackCode:n,children:i?e(i,{artifactRunId:a,children:n}):e("pre",{className:"overflow-x-auto p-3 bg-muted/10 rounded text-sm",children:e("code",{children:n})})})}case"mockup":return e(xs,{type:"expand",fallbackCode:"string"==typeof t?t:r,children:e(ks,{content:t})});case"image":return e(xs,{type:"image",fallbackCode:r,children:e(Cs,{content:t,path:r})});default:return e(ys,{content:t,path:r})}}const Ss='Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';function Ts({code:t,className:n}){const r=Me(null),[a,s]=Le(null),[i,o]=Le(null),l=Be().replace(/:/g,"_");return Ve(()=>{let e=!1;return(async()=>{if(!t.trim())return s(null),void o(null);try{o(null);const n=`mermaid-${l}-${Date.now()}`,r=function(e){const t=e.trim();let n="",r=!1,a=!1;for(let e=0;e<t.length;e++){const s=t[e],i=e>0?t[e-1]:"";if('"'!==s||a||"\\"===i)if("'"!==s||r||"\\"===i){if((r||a)&&"\\"===s){let r=e;for(;"\\"===t[r];)r++;if("n"===t[r]){n+="<br/>",e=r;continue}}n+=s}else a=!a,n+=s;else r=!r,n+=s}return n}(t),{svg:a}=await $r.render(n,r),i=function(e){return e.replace(/<svg([^<>]*)>/i,(e,t)=>{let n=t.replace(/\swidth="[^"]*"/i,"").replace(/\sheight="[^"]*"/i,"");return/style="/i.test(n)?n=n.replace(/style="([^"]*)"/i,(e,t)=>`style="${t};width:100%;height:auto;display:block;max-width:100%;"`):n+=' style="width:100%;height:auto;display:block;max-width:100%;"',/preserveAspectRatio=/i.test(n)||(n+=' preserveAspectRatio="xMidYMid meet"'),`<svg${n}>`})}(a);e||s(i)}catch(t){if(!e){const e=t instanceof Error?t.message:"Failed to render mermaid diagram";o(e),s(null)}}})(),()=>{e=!0}},[t,l]),i?null:e("div",a?{ref:r,className:`my-4 w-full overflow-x-auto [&_svg]:mx-auto [&_svg]:w-full [&_svg]:h-auto [&_svg]:max-w-full ${n||""}`,dangerouslySetInnerHTML:{__html:a}}:{className:`my-4 p-4 bg-gray-50 dark:bg-gray-800 rounded-lg animate-pulse ${n||""}`,children:e("div",{className:"h-32 bg-gray-200 dark:bg-gray-700 rounded"})})}function Is(e){const t=e.trim();if(t.length<2)return!0;if(!t.startsWith("{"))return!1;try{return JSON.parse(t),!1}catch(e){const n=["unexpected end","unterminated string","expected","unexpected token"],r=(e instanceof Error?e.message:"").toLowerCase();if(n.some(e=>r.includes(e))){let e=0,n=0,r=!1,a=!1;for(const s of t)a?a=!1:"\\"!==s?'"'!==s?r||("{"===s?e++:"}"===s?e--:"["===s?n++:"]"===s&&n--):r=!r:a=!0;return e>0||n>0||r}return!1}}function zs(e){try{let t=e.trim();const n=t.indexOf("{"),r=t.lastIndexOf("}");return-1!==n&&r>n&&(t=t.slice(n,r+1)),JSON.parse(t)}catch{return null}}function js({code:t}){const{artifactRunId:n}=ps();n||console.warn("[VegaLiteCodeBlockHandler] artifactRunId is missing from CodeBlockContext");const r=Ee(()=>Is(t),[t]),a=Ee(()=>{if(r)return null;const e=zs(t);return e?{library:"vega-lite",spec:e}:null},[t,r]);return r?e(gs,{type:"chart",message:"Loading chart..."}):a?e(xs,{type:"chart",fallbackCode:t,children:e(Qa,{spec:a,artifactRunId:n})}):e(gs,{type:"chart",error:"Invalid Vega-Lite specification"})}function Rs({code:t}){const{artifactRunId:n}=ps();n||console.warn("[ChartCodeBlockHandler] artifactRunId is missing from CodeBlockContext");const r=Ee(()=>Is(t),[t]),a=Ee(()=>{if(r)return null;const e=zs(t);if(!e)return null;const n=function(e){const t="string"==typeof e.$schema&&e.$schema.includes("vega"),n="vega-lite"===e.library&&"spec"in e;return t||n?"vega-lite":null}(e);return n?"vega-lite"===e.library&&"spec"in e&&"object"==typeof e.spec?e:{library:"vega-lite",spec:e}:null},[t,r]);return r?e(gs,{type:"chart",message:"Loading chart..."}):a?e(xs,{type:"chart",fallbackCode:t,children:e(Qa,{spec:a,artifactRunId:n})}):e(gs,{type:"chart",error:"Invalid Vega-Lite chart specification"})}function Ps({code:t}){const n=t.trim();return n?e(xs,{type:"mermaid",fallbackCode:t,children:e(Ts,{code:n})}):e(gs,{type:"mermaid",error:"Empty diagram"})}function As({code:t}){const n=Ee(()=>{const e=t.trim();return e?Ns(ws(e)):null},[t]);return n?e(xs,{type:"code",fallbackCode:t,children:e("div",{style:{margin:"16px 0",width:"100%",overflowX:"auto"},dangerouslySetInnerHTML:{__html:n}})}):e(gs,{type:"code",error:"Empty mockup"})}function Ds({code:t,language:n}){const{artifactRunId:r}=ps(),a=t.trim(),s=Ee(()=>{if(!n?.includes(":"))return"auto";const e=n.split(":")[1];return["chart","vega-lite","table","markdown","fusion-fragment","mockup","code","image","auto"].includes(e)?e:"auto"},[n]),{data:i,isLoading:o,error:l,contentType:c}=function({runId:e,path:t,parseJson:n=!0}){const{client:r}=Ze(),a=Oa(),s=Me(r);s.current=r;const i=Me(a);i.current=a;const[o,l]=Le({data:void 0,rawContent:void 0,isLoading:!0,error:void 0,contentType:void 0}),c=Ue(async()=>{if(!e)return void l({data:void 0,rawContent:void 0,isLoading:!1,error:"No run ID provided",contentType:void 0});if(!t)return void l({data:void 0,rawContent:void 0,isLoading:!1,error:"No artifact path provided",contentType:void 0});l(e=>({...e,isLoading:!0,error:void 0}));const r=s.current,a=i.current,o=function(e){const t=e.split(".").pop()?.toLowerCase();switch(t){case"json":return"json";case"md":case"txt":case"csv":case"yaml":case"yml":default:return"text";case"png":case"jpg":case"jpeg":case"gif":case"webp":case"pdf":return"binary"}}(t);try{const s=Ua(e,t,"inline");let i;i=a?await a.getOrFetch(s,async()=>(await r.files.getArtifactDownloadUrl(e,t,"inline")).url):(await r.files.getArtifactDownloadUrl(e,t,"inline")).url;const c=await fetch(i);if(!c.ok)throw new Error(`Failed to fetch artifact: ${c.status} ${c.statusText}`);if("binary"===o)return void l({data:i,rawContent:void 0,isLoading:!1,error:void 0,contentType:o});const d=await c.text();let m;if(n&&"json"===o)try{m=JSON.parse(d)}catch{m=d}else m=d;l({data:m,rawContent:d,isLoading:!1,error:void 0,contentType:o})}catch(e){const n=e instanceof Error?e.message:"Failed to fetch artifact";console.error("Failed to fetch artifact content:",t,e),l({data:void 0,rawContent:void 0,isLoading:!1,error:n,contentType:o})}},[e,t,n]);Ve(()=>{c()},[c]);const d=Ue(()=>{l({data:void 0,rawContent:void 0,isLoading:!0,error:void 0,contentType:void 0}),c()},[c]);return{data:o.data,rawContent:o.rawContent,isLoading:o.isLoading,error:o.error,contentType:o.contentType,retry:d}}({runId:r,path:a});return r?o?e(gs,{type:"expand",message:`Loading ${a}...`}):l?e(gs,{type:"expand",error:`Failed to load artifact: ${l}`}):void 0===i?e(gs,{type:"expand",error:"No content found in artifact"}):e(_s,{content:i,renderType:s,path:a,runId:r,contentType:c}):e(gs,{type:"expand",error:"No artifact run ID available"})}function $s(e){return e.trim().replace(/^\/+/,"")}function Es(e){return e.startsWith("artifact:")?{scheme:"artifact",path:e.slice(9).trim()}:e.startsWith("image:")?{scheme:"image",path:e.slice(6).trim()}:e.startsWith("store:")?{scheme:"store",path:$s(e.slice(6))}:e.startsWith("document:")?{scheme:"document",path:$s(e.slice(9))}:e.startsWith("collection:")?{scheme:"collection",path:$s(e.slice(11))}:{scheme:"standard",path:e}}function Ls(e,t){switch(e){case"store":case"document":return t?`/store/objects/${t}`:null;case"collection":return t?`/store/collections/${t}`:null;default:return null}}function Fs({rawUrl:e,artifactRunId:t,disposition:n="inline"}){const{client:r}=Ze(),a=Oa(),s=Me(r);s.current=r;const i=Me(a);i.current=a;const{scheme:o,path:l}=Es(e),c=Ls(o,l),[d,m]=Le(()=>{if(c)return{url:c,isLoading:!1,error:void 0};if("standard"===o)return{url:e,isLoading:!1,error:void 0};if(a&&("artifact"===o||"image"===o)){let e;e="artifact"===o&&t&&!Ma(l)?Ua(t,l,n):Wa(l);const r=a.getUrl(e);if(r)return{url:r,isLoading:!1,error:void 0}}return{url:void 0,isLoading:!0,error:void 0}}),u=Ue(async()=>{if(c||"standard"===o)return;if("artifact"!==o&&"image"!==o)return void m({url:void 0,isLoading:!1,error:`Unknown scheme: ${o}`});m(e=>({...e,isLoading:!0,error:void 0}));const e=s.current,r=i.current;try{let a;if("artifact"===o)if(t&&!Ma(l)){const s=Ua(t,l,n);if(r)a=await r.getOrFetch(s,async()=>(await e.files.getArtifactDownloadUrl(t,l,n)).url);else{a=(await e.files.getArtifactDownloadUrl(t,l,n)).url}}else{const t=Wa(l);if(r)a=await r.getOrFetch(t,async()=>(await e.files.getDownloadUrl(l)).url);else{a=(await e.files.getDownloadUrl(l)).url}}else{const t=Wa(l);if(r)a=await r.getOrFetch(t,async()=>(await e.files.getDownloadUrl(l)).url);else{a=(await e.files.getDownloadUrl(l)).url}}m({url:a,isLoading:!1,error:void 0})}catch(e){const t=e instanceof Error?e.message:"Failed to resolve URL";console.error("Failed to resolve URL:",l,e),m({url:void 0,isLoading:!1,error:t})}},[o,l,t,n,c]);Ve(()=>{if(d.url&&!d.error)return;let e=!1;return e||(async()=>{await u()})(),()=>{e=!0}},[u,d.url,d.error]);const p=Ue(()=>{m({url:void 0,isLoading:!0,error:void 0}),u()},[u]);return{url:d.url,isLoading:d.isLoading,error:d.error,scheme:o,retry:p}}function Os({src:n,alt:r,caption:a,className:s,artifactRunId:i}){const o=n||"",{scheme:l}=Es(o);return"standard"===l?t("figure",{className:"my-4",children:[e("img",{src:n,alt:r,className:s}),e("figcaption",{className:"mt-2 text-sm text-muted text-center italic",children:a})]}):e(Ms,{rawSrc:o,alt:r,caption:a,artifactRunId:i,className:s})}function Ms({rawSrc:n,alt:r,caption:a,artifactRunId:s,className:i}){const{url:o,isLoading:l,error:c,retry:d}=Fs({rawUrl:n,artifactRunId:s,disposition:"inline"});return l?e(gs,{type:"image",message:r?`Loading ${r}...`:void 0}):c?e(gs,{type:"image",error:c,onRetry:d}):o?t("figure",{className:"my-4",children:[e("img",{src:o,alt:r,className:i}),e("figcaption",{className:"mt-2 text-sm text-muted text-center italic",children:a})]}):null}function Us({node:t,src:n,alt:r,className:a,artifactRunId:s,ExistingImg:i,...o}){const l=n||"",{scheme:c}=Es(l);return"standard"===c?"function"==typeof i?e(i,{node:t,src:n,alt:r,...o}):e("img",{src:n,alt:r,className:a,...o}):e(Ws,{rawSrc:l,alt:r,artifactRunId:s,className:a,rest:o})}function Ws({rawSrc:t,alt:n,artifactRunId:r,className:a,rest:s}){const{url:i,isLoading:o,error:l,retry:c}=Fs({rawUrl:t,artifactRunId:r,disposition:"inline"});return o?e(gs,{type:"image",message:n?`Loading ${n}...`:void 0}):l?e(gs,{type:"image",error:l,onRetry:c}):i?e("img",{src:i,alt:n,className:a,...s}):null}function Vs({node:t,href:n,children:r,className:a,artifactRunId:s,ExistingLink:i,...o}){const l=n||"",{scheme:c,path:d}=Es(l),m=Ls(c,d);return m?"function"==typeof i?e(i,{node:t,href:m,...o,children:r}):e("a",{href:m,...o,className:a,target:"_blank",rel:"noopener noreferrer",children:r}):"standard"===c?"function"==typeof i?e(i,{node:t,href:n,...o,children:r}):e("a",{href:n,...o,className:a,target:"_blank",rel:"noopener noreferrer",children:r}):e(Bs,{rawHref:l,artifactRunId:s,className:a,rest:o,children:r})}function Bs({rawHref:t,artifactRunId:n,className:r,children:a,rest:s}){const{url:i,isLoading:o,error:l,retry:c}=Fs({rawUrl:t,artifactRunId:n,disposition:"attachment"});return o?e("span",{className:"inline-flex items-center gap-1 text-muted",children:e(gs,{type:"link"})}):l?e("span",{className:"inline-flex items-center gap-1",children:e(gs,{type:"link",error:l,onRetry:c})}):e("a",{href:i||"#",...s,className:r,target:"_blank",rel:"noopener noreferrer",children:a})}$r.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:Ss,suppressErrorRendering:!0,flowchart:{htmlLabels:!0,useMaxWidth:!0,nodeSpacing:40,rankSpacing:50,padding:12},sequence:{useMaxWidth:!0},themeVariables:{fontFamily:Ss}});const qs=["artifact:","image:","store:","document://","collection:"],Hs=/(!?\[[^[\]\n]*\]\()((?:artifact:|image:|store:|document:\/\/|collection:)[^)[\n]+)(\))/g,Gs=/`[^`\n]*`/g,Js=/(^|\n)(`{3,}|~{3,})[^\n]*\n[\s\S]*?\n\2(?=\n|$)/g,Ks=/\s+("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\([^)]*\))\s*$/;function Ys(e){return qs.some(t=>e.startsWith(t))}function Qs(e){return e.replace(Hs,(e,t,n,r)=>`${t}${function(e){const t=e.trim();if(t.startsWith("<")){const n=t.indexOf(">");if(n>0&&Ys(t.slice(1,n).trim()))return e}const n=t.match(Ks),r=n?.index??-1,a=(r>=0?t.slice(0,r):t).trim(),s=r>=0?t.slice(r):"";return Ys(a)?`<${a}>${s}`:e}(n)}${r}`)}function Zs(e){let t="",n=0;for(const r of e.matchAll(Gs))t+=Qs(e.slice(n,r.index)),t+=r[0],n=r.index+r[0].length;return t+=Qs(e.slice(n)),t}const Xs=/^([ \t]*):::([^\n]*?):::[ \t]*$/gm,ei=/^\w+/;const ti=/(^|\n)(`{3,}|~{3,})[^\n]*\n[\s\S]*?\n\2(?=\n|$)/g,ni=/`[^`\n]*`/g,ri=/\\\$/g,ai=/\\[^\s]/,si=/[{}]/,ii=/[_^][\w{]/,oi=/^[a-zA-Z]$/,li=/^[a-zA-Z]\s*=/,ci=/^\s/,di=/\s$/,mi=/[+*/-]$/,ui=/\^[+-]$/;function pi(e){return ai.test(e)||si.test(e)||ii.test(e)||oi.test(e)||li.test(e)}function hi(e){return!!ci.test(e)||(!!di.test(e)||!(!mi.test(e)||ui.test(e)))}function fi(e,t,n){const r=e.slice(t+1,n);return 0===r.length||r.includes("\n")?null:r}function gi(e){const t=function(e){const t=[];for(let n=0;n<e.length;n++)"$"===e[n]&&(n>0&&"\\"===e[n-1]||(n+1<e.length&&"$"===e[n+1]?n++:n>0&&"$"===e[n-1]&&(n<2||"\\"!==e[n-2])||t.push(n)));return t}(e);if(t.length<2)return e;const n=new Set,r=new Set,a=new Array(t.length-1);for(let n=0;n<t.length-1;n++)a[n]=fi(e,t[n],t[n+1]);const s=[];for(let e=0;e<t.length-1;e++){if(n.has(e))continue;const r=a[e];null!==r&&pi(r)&&(n.add(e),n.add(e+1),s.push([t[e],t[e+1]]))}let i=0;for(;i<t.length;){if(n.has(i)){i++;continue}let e=i+1;for(;e<t.length&&n.has(e);)e++;if(e>=t.length)break;if(e>i+1){r.add(t[i]),i++;continue}const s=a[i];null!==s?(hi(s)&&(r.add(t[i]),r.add(t[e])),n.add(i),n.add(e),i=e+1):i++}for(let e=0;e<t.length;e++)n.has(e)||e+1<t.length&&n.has(e+1)&&r.add(t[e]);if(0===r.size&&0===s.length)return e;const o=[];let l=0;const c=Array.from(r).sort((e,t)=>e-t);let d=0,m=0;for(;d<c.length||m<s.length;){const t=d<c.length?c[d]:1/0;if(t<(m<s.length?s[m][0]:1/0))t>l&&o.push(e.slice(l,t)),o.push("\\$"),l=t+1,d++;else{const[t,n]=s[m];t>l&&o.push(e.slice(l,t));const r=e.slice(t,n+1);for(o.push(r.replace(ri,"\\text{\\textdollar}")),l=n+1;d<c.length&&c[d]<=n;)d++;m++}}return l<e.length&&o.push(e.slice(l)),o.join("")}function xi(e){const t=[];let n=0;for(const r of e.matchAll(ni))t.push(gi(e.slice(n,r.index))),t.push(r[0]),n=r.index+r[0].length;return t.push(gi(e.slice(n))),t.join("")}const vi={note:"md-callout-info",tip:"md-callout-info",warning:"md-callout-attention",important:"md-callout-attention",caution:"md-callout-destructive"},bi={note:"Note",tip:"Tip",warning:"Warning",important:"Important",caution:"Caution"};function yi(){return e=>{jr(e,e=>{if("containerDirective"!==e.type&&"leafDirective"!==e.type&&"textDirective"!==e.type)return;const t=e;t.data||(t.data={});const n=t.data,r=t.attributes||{},a=t.name;if("pagebreak"===a)return n.hName="hr",void(n.hProperties={className:"md-pagebreak"});if("columns"===a)return n.hName="div",void(n.hProperties={className:"md-columns"});if("column"===a){n.hName="div";const e={className:"md-column"};return r.width&&(e.style=`flex-basis:${r.width};flex-grow:0;flex-shrink:0`),void(n.hProperties=e)}if(a in vi){n.hName="div",n.hProperties={className:`md-callout ${vi[a]}`,"data-callout-type":a};const e=bi[a];if(e&&t.children){const n={type:"paragraph",data:{hName:"p",hProperties:{className:"md-callout-title"}},children:[{type:"text",value:e}]};t.children.unshift(n)}return}n.hName="div",n.hProperties={className:`md-${a}`,...Object.fromEntries(Object.entries(r).filter(([e])=>"class"!==e))},r.class&&(n.hProperties.className+=` ${r.class}`)})}}const wi=["artifact:","image:","store:","document:","document://","collection:"];function Ni(e){return wi.some(t=>e.startsWith(t))?e:wr(e)}function ki(){return e=>{jr(e,"html",(e,t,n)=>{const r=e,a=n;if("string"==typeof r.value&&/<!--[\s\S]*?-->/.test(r.value)&&a?.children&&"number"==typeof t)return a.children.splice(t,1),[Rr,t]})}}const Ci={chart:Rs,"vega-lite":js,vegalite:js,mermaid:Ps,mockup:As,svg:As};function _i({children:t,components:n,remarkPlugins:r=[],removeComments:a=!0,artifactRunId:s,className:i,codeClassName:o,inlineCodeClassName:l,linkClassName:c,imageClassName:d,onProposalSelect:m,onProposalSubmit:u}){const p=Oe(hs),h=$e.useMemo(()=>{return e=function(e){if(!e||!qs.some(t=>e.includes(t)))return e;let t="",n=0;for(const r of e.matchAll(Js))t+=Zs(e.slice(n,r.index)),t+=r[0],n=r.index+r[0].length;return t+=Zs(e.slice(n)),t}(function(e){if(!e?.includes("$"))return e;const t=[];let n=0;for(const r of e.matchAll(ti))t.push(xi(e.slice(n,r.index))),t.push(r[0]),n=r.index+r[0].length;return t.push(xi(e.slice(n))),t.join("")}(t)),e?.includes(":::")?e.replace(Xs,(e,t,n)=>{const r=n.trim(),a=ei.exec(r);if(!a)return e;const s=a[0],i=r.slice(s.length).trim();return i?`${t}:::${s}\n${t}${i}\n${t}:::`:`${t}::${s}`}):e;var e},[t]),f=$e.useMemo(()=>{const e=[Sr,_r,yi,Tr,kr,zr,Ir,...r];return a&&e.push(ki),e},[r,a]),g=$e.useMemo(()=>[Nr],[]),x=$e.useMemo(()=>({handlers:{...Cr}}),[]),v=$e.useMemo(()=>{const t=n||{},r=t.code,a=t.a,i=t.img;return{...t,code:({node:t,className:n,children:a,...s})=>{const i=/language-([\w-]+)/.exec(n||""),c=!i,d=i?i[1]:"";if(!c&&d){if(p){const t=p.getComponent(d);if(t){const n=String(a||"").trim();return e(t,{code:n,language:d})}}if(function(e){return e?.startsWith("expand")??!1}(d)){const t=String(a||"").trim();return e(Ds,{code:t,language:d})}const t=Ci[d];if(t){const n=String(a||"").trim();return e(t,{code:n,language:d})}}if("function"==typeof r)return e(r,{node:t,className:n,...s,children:a});return e("code",{...s,className:c?`px-1.5 py-0.5 rounded ${l||""}`:` ${o||""}`,children:a})},a:t=>{const{node:n,href:r,children:i,...o}=t;return e(Vs,{node:n,href:r,className:c,artifactRunId:s,ExistingLink:"function"==typeof a?a:void 0,...o,children:i})},img:t=>{const{node:n,src:r,alt:a,title:o,...l}=t;return o?e(Os,{src:r,alt:a,caption:o,className:d,artifactRunId:s}):e(Us,{node:n,src:r,alt:a,className:d,artifactRunId:s,ExistingImg:"function"==typeof i?i:void 0,...l})}}},[n,s,p,o,l,c,d]),b=e(us,{artifactRunId:s,onProposalSelect:m,onProposalSubmit:u,MarkdownRenderer:_i,children:e(yr,{remarkPlugins:f,rehypePlugins:g,remarkRehypeOptions:x,components:v,urlTransform:Ni,children:h})});return e("div",i?{className:`md-content ${i}`,children:b}:{className:"md-content",children:b})}const Si={default:{border:"border-s-attention",bg:"bg-amber-50 dark:bg-amber-900/20",icon:"text-attention"},warning:{border:"border-s-destructive",bg:"bg-red-50 dark:bg-red-900/20",icon:"text-destructive"},info:{border:"border-s-info",bg:"bg-blue-50 dark:bg-blue-900/20",icon:"text-info"},success:{border:"border-s-success",bg:"bg-green-50 dark:bg-green-900/20",icon:"text-success"}},Ti={default:Nt,warning:wt,info:xt,success:yt};function Ii({question:a,description:i,options:o,onSelect:l,onMultiSelect:c,onSubmit:d,allowFreeResponse:m=!1,multiSelect:u=!1,placeholder:p,isLoading:h=!1,icon:f,variant:g="default",hideIcon:x=!1,hideBorder:v=!1,compact:b=!1,answered:y=!1,className:w,cardClassName:N,headerClassName:k,iconClassName:C,questionClassName:_,descriptionClassName:S,optionsClassName:T,buttonClassName:I,inputContainerClassName:z,inputClassName:j,submitButtonClassName:R}){const{t:P}=Ke(),A=p??P("agent.typeYourResponse"),[D,$]=$e.useState(""),[E,L]=$e.useState(new Set),F=$e.useRef(null),O=Si[g],M=Ti[g],U=e=>{L(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},W=()=>{E.size>0&&c&&(c(Array.from(E)),L(new Set))},V=()=>{D.trim()&&d&&(d(D.trim()),$(""))},B=e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),V())},q=v?"":`border-s-4 ${O.border}`;if(b){const c=f||e(M,{className:"size-4"}),d=e("div",{className:s("agent-ask-question text-sm leading-6 text-foreground/85",_),children:e(_i,{children:a})});return y?t("div",{className:s("my-1.5 font-sans",w),children:[d,i&&e("p",{className:s("mt-1 text-xs leading-5 text-muted",S),children:i})]}):e("div",{className:s("my-2 font-sans",w),children:t("div",{className:s("rounded-lg border border-border bg-background/60 shadow-none",N),children:[e("div",{className:s("px-3 py-2",k),children:t("div",{className:"flex items-start gap-2.5",children:[!x&&e("div",{className:s("mt-1 flex-shrink-0 text-attention",C),children:c}),t("div",{className:"min-w-0 flex-1",children:[d,i&&e("p",{className:s("mt-1 text-xs leading-5 text-muted",S),children:i})]})]})}),o&&o.length>0&&e("div",{className:s("flex flex-col gap-1.5 px-3 pb-3 pt-0",T),children:u?t(n,{children:[o.map(n=>{const r=E.has(n.id);return t("label",{className:s("flex cursor-pointer items-start gap-2.5 rounded-md border px-3 py-2 text-start transition-colors",r?"border-info/60 bg-info/10":"border-border bg-background/70 hover:bg-mixer-muted/15",h&&"cursor-not-allowed opacity-50",I),children:[e("input",{type:"checkbox",checked:r,onChange:()=>U(n.id),disabled:h,className:"mt-1 size-4 rounded border-border bg-background text-info focus:ring-info"}),t("span",{className:"min-w-0 flex-1",children:[t("span",{className:"flex items-center gap-2 text-sm font-medium leading-5 text-foreground",children:[n.icon,e("span",{className:"break-words",children:n.label})]}),n.description&&e("span",{className:"mt-0.5 block break-words text-xs leading-5 text-muted",children:n.description})]})]},n.id)}),e("div",{className:"pt-1",children:t(r,{size:"sm",onClick:W,disabled:h||0===E.size,className:"inline-flex items-center gap-2",children:[e(kt,{className:"size-4"}),E.size>0?P("agent.submitSelectionCount",{count:E.size}):P("agent.submitSelection")]})})]}):o.map(n=>t("button",{type:"button",onClick:()=>l?.(n.id),disabled:h,className:s("flex w-full cursor-pointer items-start gap-2.5 rounded-md border border-border bg-background/70 px-3 py-2 text-start transition-colors","hover:bg-mixer-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",h&&"cursor-not-allowed opacity-50",I),children:[e("span",{className:"mt-1 size-4 flex-shrink-0 rounded-full border border-border","aria-hidden":"true"}),t("span",{className:"min-w-0 flex-1",children:[t("span",{className:"flex items-center gap-2 text-sm font-medium leading-5 text-foreground",children:[n.icon,e("span",{className:"break-words",children:n.label})]}),n.description&&e("span",{className:"mt-0.5 block break-words text-xs leading-5 text-muted",children:n.description})]})]},n.id))}),m&&e("div",{className:s("px-3 pb-3 pt-0",z),children:t("div",{className:"flex gap-2",children:[e("input",{ref:F,type:"text",value:D,onChange:e=>$(e.target.value),onKeyDown:B,placeholder:A,disabled:h,className:s("min-w-0 flex-1 rounded-md border border-border bg-background/70 px-3 py-2 text-sm text-foreground focus:border-transparent focus:ring-2 focus:ring-ring",j)}),e(r,{size:"sm",onClick:V,disabled:h||!D.trim(),className:R,children:h?"...":P("agent.send")})]})})]})})}return e("div",{className:`my-4 font-sans ${w||""}`,children:t("div",{className:`${q} ${O.bg} rounded-e-lg shadow-sm ${N||""}`,children:[e("div",{className:`px-4 py-3 ${k||""}`,children:t("div",{className:"flex items-start gap-3",children:[!x&&e("div",{className:`flex-shrink-0 mt-0.5 ${O.icon} ${C||""}`,children:f||e(M,{className:"size-5"})}),t("div",{className:"flex-1 min-w-0",children:[e("div",{className:`prose prose-sm dark:prose-invert max-w-none text-gray-900 dark:text-gray-100 ${_||""}`,children:e(_i,{children:a})}),i&&e("p",{className:`mt-1 text-sm text-gray-600 dark:text-gray-400 ${S||""}`,children:i})]})]})}),o&&o.length>0&&e("div",{className:`px-4 pb-3 pt-1 ${T||""}`,children:u?t("div",{className:"space-y-2",children:[o.map(n=>t("label",{className:`flex items-start gap-3 px-4 py-3 rounded-lg cursor-pointer transition-colors\n ${E.has(n.id)?"bg-blue-50 dark:bg-blue-900/30 border border-blue-300 dark:border-blue-700":"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700"}\n ${h?"opacity-50 cursor-not-allowed":""}`,children:[e("input",{type:"checkbox",checked:E.has(n.id),onChange:()=>U(n.id),disabled:h,className:"mt-0.5 w-4 h-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700"}),t("div",{className:"flex-1 overflow-hidden",children:[t("div",{className:"flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-gray-100 break-words",children:[n.icon,e("span",{className:"break-words",children:n.label})]}),n.description&&e("div",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400 break-words whitespace-pre-wrap",children:n.description})]})]},n.id)),e("div",{className:"pt-2",children:t(r,{size:"sm",onClick:W,disabled:h||0===E.size,className:"flex items-center gap-2",children:[e(kt,{className:"size-4"}),E.size>0?P("agent.submitSelectionCount",{count:E.size}):P("agent.submitSelection")]})})]}):e("div",{className:"flex flex-col gap-2 w-full",children:o.map(n=>e(r,{variant:"unstyled",onClick:()=>l?.(n.id),disabled:h,className:`w-full h-auto whitespace-normal text-start px-4 py-3 rounded-lg border border-gray-200 dark:border-gray-700\n bg-white dark:bg-gray-800\n hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600\n focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1\n transition-colors\n ${h?"opacity-50 cursor-not-allowed":"cursor-pointer"}\n ${I||""}`,children:t("div",{className:"flex items-start gap-3",children:[n.icon&&e("span",{className:"flex-shrink-0 mt-0.5 text-gray-500 dark:text-gray-400",children:n.icon}),t("div",{className:"flex-1 overflow-hidden",children:[e("div",{className:"font-medium text-sm text-gray-900 dark:text-gray-100 break-words text-center",children:n.label}),n.description&&e("div",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400 break-words whitespace-pre-wrap",children:n.description})]})]})},n.id))})}),m&&e("div",{className:`px-4 pb-3 pt-1 ${z||""}`,children:t("div",{className:"flex gap-2",children:[e("input",{ref:F,type:"text",value:D,onChange:e=>$(e.target.value),onKeyDown:B,placeholder:A,disabled:h,className:`flex-1 px-3 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-800 focus:ring-2 focus:ring-blue-500 focus:border-transparent ${j||""}`}),e(r,{size:"sm",onClick:V,disabled:h||!D.trim(),className:R,children:h?"...":P("agent.send")})]})})]})})}function zi({question:t,description:n,onConfirm:r,onCancel:a,confirmLabel:s,cancelLabel:i,isLoading:o=!1,variant:l="default",className:c}){const{t:d}=Ke(),m=s??d("agent.yes"),u=i??d("agent.no");return e(Ii,{question:t,description:n,variant:l,isLoading:o,className:c,options:[{id:"confirm",label:m,icon:e(yt,{className:"size-4"})},{id:"cancel",label:u,icon:e(Ct,{className:"size-4"})}],onSelect:e=>{"confirm"===e?r():a()}})}function ji(e,t){const n="number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime(),r=e.findIndex(e=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())>n);-1===r?e.push(t):e.splice(r,0,t)}const Ri=[Qn.COMPLETE,Qn.IDLE,Qn.REQUEST_INPUT,Qn.TERMINATED];function Pi(e){if(!e.length)return!0;const t=e.filter(e=>"main"===Di(e));if(0===t.length){const t=e[e.length-1];return!Ri.includes(t.type)}const n=t[t.length-1];return!Ri.includes(n.type)}function Ai(e){return"number"==typeof e?e:new Date(e).getTime()}function Di(e){return e.workstream_id?e.workstream_id:"main"}async function $i(e,t){return e.agents.getArtifactUrl(t,"conversation.json").then(e=>e.url)}function Ei(e){if("string"!=typeof e)return;return e.replace(/\r\n/g,"\n").trim()||void 0}function Li(e){return Ei(e.message)}function Fi(e,t){const n=Ei(e.text);if(!n)return!1;const r=e.workstreamId||"main";return t.some(t=>!(Ai(t.timestamp)<e.startTimestamp)&&(Di(t)===r&&(e.activityId&&t.details?.activity_id===e.activityId?"thinking"!==t.details?.display_role&&(!Mi(t)&&!t.details?.tool_status):(t.type===Qn.THOUGHT||t.type===Qn.ANSWER||t.type===Qn.COMPLETE||t.type===Qn.IDLE)&&(!!t.details?.streamed&&Li(t)===n))))}function Oi(e,t){if(Di(e)!==Di(t))return!1;const n=Li(e),r=Li(t);if(!n||n!==r)return!1;const a=Ai(e.timestamp);return!(Ai(t.timestamp)-a>1e4)&&(e.type===Qn.ANSWER&&(t.type===Qn.COMPLETE||t.type===Qn.IDLE)||(!(e.type!==Qn.THOUGHT||t.type!==Qn.ANSWER&&t.type!==Qn.COMPLETE&&t.type!==Qn.IDLE||!e.details?.streamed&&!t.details?.streamed)||!(e.type!==t.type||!e.details?.streamed&&!t.details?.streamed||t.type!==Qn.THOUGHT&&t.type!==Qn.ANSWER&&t.type!==Qn.COMPLETE&&t.type!==Qn.IDLE)))}function Mi(e){return e.type===Qn.THOUGHT&&!!e.details?.tool}function Ui(e){const t=e.details;return e.type===Qn.THOUGHT&&("tool_preamble"===t?.display_role||"think"===t?.tool)}function Wi(e){if(Ui(e))return!1;if(Mi(e))return!0;if(e.type!==Qn.THOUGHT)return!1;const t=e.details;return!!(Array.isArray(t?.tools)&&t.tools.length>0)}function Vi(e){return e.details?.tool_run_id}function Bi(e){return e.details?.tool_iteration}function qi(e){return e.details?.tool_status}function Hi(e){const t=e.details?.activity_group_id;if("string"==typeof t&&""!==t.trim())return t}function Gi(e,t){return t??e}function Ji(e){return e.message?"object"==typeof e.message?JSON.stringify(e.message,null,2):String(e.message).trim():""}function Ki(e){const t=e.details;return e.type===Qn.REQUEST_INPUT&&!!t?.ux}function Yi(e){const t=e.details;return[t?.request_id,t?.requestId,t?.activity_id,t?.activityId,t?.tool_run_id,t?.toolRunId,e.timestamp,Ji(e)].filter(e=>"string"==typeof e||"number"==typeof e).map(String).join("|")}function Qi(e){const t=new Set;return e.forEach((n,r)=>{if(n.type!==Qn.REQUEST_INPUT)return;const a=Di(n);for(let s=r+1;s<e.length;s+=1){const r=e[s];if(Di(r)===a){if(r.type===Qn.REQUEST_INPUT)break;if(r.type===Qn.QUESTION){t.add(Yi(n));break}}}}),t}function Zi(e,t){return e.type===Qn.REQUEST_INPUT&&t.has(Yi(e))}function Xi(e,t="main"){const n=Qi(e);for(let r=e.length-1;r>=0;r-=1){const a=e[r];if(Ki(a)&&(Di(a)===t&&!Zi(a,n)))return a}}function eo({message:t,onSendMessage:n,isLoading:r=!1,disabled:a=!1,className:i}){if(!t)return null;const o=t.details.ux,l=o.options??[],c=a||r||!n,d=e=>{c||n?.(e)};return e("div",{className:s("flex-shrink-0 border-t border-border/70 bg-background/95 backdrop-blur","fixed bottom-0 end-0 start-0 z-20 lg:sticky lg:start-auto lg:end-auto","pb-safe-area",i),"data-agent-request-input-overlay":!0,children:e("div",{className:"mx-auto w-full max-w-3xl px-3 py-3",children:e(Ii,{question:Ji(t),options:l,variant:o.variant,multiSelect:o.multiSelect,allowFreeResponse:0===l.length,onSelect:d,onMultiSelect:e=>d(e.join(", ")),onSubmit:d,hideBorder:!0,compact:!0,isLoading:c,className:"my-0",cardClassName:"bg-background/80 shadow-lg shadow-black/5 dark:shadow-none"})})})}function to({className:n,inline:r=!1,color:a="blue"}){const i={blue:"from-blue-400 to-indigo-500 dark:from-blue-500 dark:to-indigo-400",purple:"from-purple-400 to-violet-500 dark:from-purple-500 dark:to-violet-400",teal:"from-teal-400 to-emerald-500 dark:from-teal-500 dark:to-emerald-400",green:"from-green-400 to-emerald-500 dark:from-green-500 dark:to-emerald-400",amber:"from-amber-400 to-orange-500 dark:from-amber-500 dark:to-orange-400"}[a];return t("div",{className:s("flex items-center gap-1.5",r?"inline-flex":"",n),children:[e("div",{className:`w-2 h-2 bg-gradient-to-r ${i} rounded-full animate-[bounce_1.2s_ease-in-out_infinite]`}),e("div",{className:`w-2 h-2 bg-gradient-to-r ${i} rounded-full animate-[bounce_1.2s_ease-in-out_0.2s_infinite]`}),e("div",{className:`w-2 h-2 bg-gradient-to-r ${i} rounded-full animate-[bounce_1.2s_ease-in-out_0.4s_infinite]`})]})}function no({className:n,size:r="md",color:a="blue"}){const i={blue:"bg-blue-500 dark:bg-blue-400",purple:"bg-purple-500 dark:bg-purple-400",teal:"bg-teal-500 dark:bg-teal-400",green:"bg-green-500 dark:bg-green-400",amber:"bg-amber-500 dark:bg-amber-400"};return t("span",{className:s("relative flex",n),children:[e("span",{className:s("animate-ping absolute inline-flex h-full w-full rounded-full opacity-60",i[a])}),e("span",{className:s("animate-pulse absolute inline-flex h-[80%] w-[80%] rounded-full opacity-80",i[a]),style:{left:"10%",top:"10%",animationDuration:"2s"}}),e("span",{className:s("relative inline-flex rounded-full",i[a],{sm:"w-3 h-3",md:"w-5 h-5",lg:"w-7 h-7"}[r])})]})}function ro({className:t,color:n="blue"}){const[r,a]=Le(".");return Ve(()=>{const e=setInterval(()=>{a(e=>"."===e?"..":".."===e?"...":".")},500);return()=>clearInterval(e)},[]),e("span",{className:s({blue:"text-blue-600 dark:text-blue-400",purple:"text-purple-600 dark:text-purple-400",teal:"text-teal-600 dark:text-teal-400",green:"text-green-600 dark:text-green-400",amber:"text-amber-600 dark:text-amber-400"}[n],"font-bold",t),children:r})}function ao({message:n,className:r,color:a="blue"}){const i={blue:{dot:"bg-blue-500 dark:bg-blue-400",text:"text-blue-700 dark:text-blue-300"},purple:{dot:"bg-purple-500 dark:bg-purple-400",text:"text-purple-700 dark:text-purple-300"},teal:{dot:"bg-teal-500 dark:bg-teal-400",text:"text-teal-700 dark:text-teal-300"},green:{dot:"bg-green-500 dark:bg-green-400",text:"text-green-700 dark:text-green-300"},amber:{dot:"bg-amber-500 dark:bg-amber-400",text:"text-amber-700 dark:text-amber-300"}};return t("div",{className:s("flex items-center gap-2 py-1",r),children:[t("div",{className:"flex space-x-1",children:[e("div",{className:`w-1.5 h-1.5 ${i[a].dot} rounded-full animate-bounce`}),e("div",{className:`w-1.5 h-1.5 ${i[a].dot} rounded-full animate-bounce`,style:{animationDelay:"0.2s"}}),e("div",{className:`w-1.5 h-1.5 ${i[a].dot} rounded-full animate-bounce`,style:{animationDelay:"0.4s"}})]}),e("div",{className:`${i[a].text} font-medium text-xs`,children:n})]})}function so({className:n,color:r="blue",width:a="md",message:i}){const[o,l]=Le(15),[c,d]=Le("increasing"),[m,u]=Le(.4),p=Me(null),h=Me(!0);Ve(()=>{const e=p.current;if(!e)return;const t=new IntersectionObserver(([e])=>{h.current=e.isIntersecting},{threshold:0});return t.observe(e),()=>t.disconnect()},[]);return Ve(()=>{let e,t=Date.now();const n=()=>{if(!h.current)return void(e=requestAnimationFrame(n));const r=Date.now(),a=r-t;t=r,l(e=>{const t=m*(a/16),n="increasing"===c?e+t:e-t;return n>=85?(d("decreasing"),u(.3+.2*Math.random()),85):n<=15?(d("increasing"),u(.3+.2*Math.random()),15):(Math.random()>.99&&u(e=>Math.max(.2,Math.min(.5,e+(.1*Math.random()-.05)))),n)}),e=requestAnimationFrame(n)};return e=requestAnimationFrame(n),()=>{cancelAnimationFrame(e)}},[c,m]),t("div",{ref:p,className:s("flex flex-col gap-1",n),children:[i&&e("div",{className:`text-xs font-medium ${{blue:"text-blue-700 dark:text-blue-300",purple:"text-purple-700 dark:text-purple-300",teal:"text-teal-700 dark:text-teal-300",green:"text-green-700 dark:text-green-300",amber:"text-amber-700 dark:text-amber-300"}[r]} mb-1`,children:i}),e("div",{className:s("h-1.5 rounded-full overflow-hidden shadow-inner",{blue:"bg-blue-200 dark:bg-blue-900/30",purple:"bg-purple-200 dark:bg-purple-900/30",teal:"bg-teal-200 dark:bg-teal-900/30",green:"bg-green-200 dark:bg-green-900/30",amber:"bg-amber-200 dark:bg-amber-900/30"}[r],{sm:"w-24",md:"w-32",lg:"w-48",xl:"w-64",full:"w-full"}[a]),children:e("div",{className:s("h-full rounded-full",{blue:"bg-gradient-to-r from-blue-400 to-blue-500 dark:from-blue-500 dark:to-blue-400",purple:"bg-gradient-to-r from-purple-400 to-purple-500 dark:from-purple-500 dark:to-purple-400",teal:"bg-gradient-to-r from-teal-400 to-teal-500 dark:from-teal-500 dark:to-teal-400",green:"bg-gradient-to-r from-green-400 to-green-500 dark:from-green-500 dark:to-green-400",amber:"bg-gradient-to-r from-amber-400 to-amber-500 dark:from-amber-500 dark:to-amber-400"}[r]),style:{width:`${o}%`,transition:"width 150ms cubic-bezier(0.4, 0.0, 0.2, 1)"}})})]})}function io({className:t,color:n="blue",size:r="md"}){const[a,i]=Le(Array(7).fill(50)),o=Me(null),l=Me(!0);Ve(()=>{const e=o.current;if(!e)return;const t=new IntersectionObserver(([e])=>{l.current=e.isIntersecting},{threshold:0});return t.observe(e),()=>t.disconnect()},[]);const c={sm:{width:"w-16",height:"h-4",barWidth:"w-0.5",gap:"gap-[2px]"},md:{width:"w-20",height:"h-5",barWidth:"w-1",gap:"gap-[3px]"},lg:{width:"w-24",height:"h-6",barWidth:"w-1.5",gap:"gap-1"}},d={blue:"bg-gradient-to-b from-blue-400 to-blue-500 dark:from-blue-400 dark:to-blue-500",purple:"bg-gradient-to-b from-purple-400 to-purple-500 dark:from-purple-400 dark:to-purple-500",teal:"bg-gradient-to-b from-teal-400 to-teal-500 dark:from-teal-400 dark:to-teal-500",green:"bg-gradient-to-b from-green-400 to-green-500 dark:from-green-400 dark:to-green-500",amber:"bg-gradient-to-b from-amber-400 to-amber-500 dark:from-amber-400 dark:to-amber-500"};return Ve(()=>{let e;const t=[1.2,1,1.5,.8,1.3,.9,1.1],n=[0,.5,1,1.5,2,2.5,3];let r=0;const a=()=>{if(!l.current)return void(e=requestAnimationFrame(a));r+=.02;const s=Array(7).fill(0).map((e,a)=>10+40*(Math.sin(r*t[a]+n[a])+1));i(s),e=requestAnimationFrame(a)};return e=requestAnimationFrame(a),()=>{cancelAnimationFrame(e)}},[]),e("div",{ref:o,className:s("flex items-end justify-center",c[r].width,c[r].height,c[r].gap,t),children:a.map((t,a)=>e("div",{className:s(c[r].barWidth,"rounded-full transform-gpu",d[n]),style:{height:`${t}%`,transition:"height 100ms cubic-bezier(0.4, 0.0, 0.2, 1)",opacity:.9}},a))})}const oo=["Brewing some code magic...","Doing the robot dance...","Cooking up something good...","Working my gears...","Parsing the possibilities...","Crunching the numbers...","Connecting the digital dots...","Processing at maximum capacity...","Searching through my circuits...","Running advanced algorithms...","Computing optimal solutions...","Loading brilliance.exe...","Scanning the knowledge base...","Optimizing response protocols...","Having a quick brainstorm...","Thinking cap firmly on...","Pondering the digital universe...","Consulting my silicon wisdom...","Untangling the logic knots...","Assembling clever responses...","Mixing thoughtful ingredients...","Polishing the perfect answer...","Taking a momentary mind sprint...","Connecting virtual synapses...","Baking fresh ideas...","Stirring the thought pot...","Simmering solutions slowly...","Whipping up a smart response...","Adding a dash of intelligence...","Preparing a gourmet answer...","Growing brilliant ideas...","Cultivating the perfect response...","Gathering digital nectar...","Planting seeds of solutions...","Exploring the data landscape...","Mapping the solution path...","Navigating through possibilities...","Charting the course to answers...","Embarking on a thought expedition...","Sketching out concepts...","Painting with digital brushstrokes...","Composing my response symphony...","Crafting precision answers...","Weaving threads of information...","Just a moment of processing...","Taking a quick thinking break...","Almost there, final touches...","Putting the pieces together...","Making progress, hold tight..."];function lo(e){const t=e.replace(/^workstream[:_-]?/i,"").replace(/^sys:/i,"").replace(/[-_:]?[0-9a-f]{8}-[0-9a-f-]{12,}$/i,"").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").replace(/[:_-]+/g," ").trim();return t?t.split(/\s+/).map(e=>{const t=e.toLowerCase();return"qa"===t?"QA":"ui"===t?"UI":"api"===t?"API":"url"===t?"URL":t.charAt(0).toUpperCase()+t.slice(1)}).join(" "):e}function co(e,t){const n=t?lo(t):"",r=lo(e);if(!n)return r;if(function(e){return/[0-9a-f]{8}-[0-9a-f-]{12,}/i.test(e)}(e))return n;const a=n.toLowerCase().replace(/\s+/g,"");return r.toLowerCase().replace(/\s+/g,"").startsWith(a)?n:r}function mo(e,t){return function(e){if("string"!=typeof e)return!1;const t=e.trim().toLowerCase();return Boolean(t&&"main"!==t&&"all"!==t)}(t)&&function(e){const t=e.trim();if(!t||!/^[{[]/.test(t))return!1;try{return JSON.parse(t),!0}catch{return!1}}(e)}function uo(e){if(!mo(function(e){return e.message?"object"==typeof e.message?JSON.stringify(e.message,null,2):String(e.message).trim():""}(e),e.workstream_id))return!1;if(e.type!==Qn.ANSWER&&e.type!==Qn.COMPLETE)return!1;const t=e.details?.event_class;return"user_content"===t||!0===e.details?.streamed}function po(e){switch(e){case"running":return"bg-info";case"canceling":return"bg-attention";case"completed":return"bg-success";case"canceled":case"failed":case"timeout":return"bg-destructive"}}function ho(e){const t=e.details,n=t?.status;return"running"===n||"canceling"===n||"completed"===n||"canceled"===n||"failed"===n||"timeout"===n?n:"completed"===t?.workstream_event?"completed":void 0}function fo(e){const t=e.details;if("launched"!==t?.workstream_event)return null;const n="string"==typeof t.workstream_id?t.workstream_id:"string"==typeof e.workstream_id?e.workstream_id:"";return n&&"main"!==n&&"all"!==n?{workstreamId:n,launchId:"string"==typeof t.launch_id?t.launch_id:void 0,kind:"string"==typeof t.kind?t.kind:void 0,interaction:"string"==typeof t.interaction?t.interaction:void 0,childWorkflowId:"string"==typeof t.child_workflow_id?t.child_workflow_id:void 0,childWorkflowRunId:"string"==typeof t.child_workflow_run_id?t.child_workflow_run_id:void 0}:null}const go=Fe(null);function xo(){const e=Oe(go);return e||{openImage:e=>window.open(e,"_blank"),closeImage:()=>{}}}function vo({children:n}){const[a,s]=Le(null),i=Ue((e,t)=>{s({src:e,alt:t})},[]),l=Ue(()=>{s(null)},[]),{t:c}=Ke();return t(go.Provider,{value:{openImage:i,closeImage:l},children:[n,a&&e("div",{role:"button",tabIndex:-1,"aria-label":c("agent.close"),className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 backdrop-blur-sm",onClick:l,onKeyDown:o(l),children:t("div",{className:"relative max-w-[90vw] max-h-[90vh]",children:[e("img",{src:a.src,alt:a.alt||c("agent.enlargedView"),className:"max-w-full max-h-[90vh] object-contain rounded-lg shadow-2xl"}),e(r,{variant:"unstyled",className:"absolute top-2 end-2 text-white bg-black/50 rounded-full p-2 hover:bg-black/70 transition-colors",onClick:l,title:c("agent.close"),"aria-label":c("agent.close"),children:e(it,{className:"size-6"})}),e("a",{href:a.src,target:"_blank",rel:"noopener noreferrer",className:"absolute bottom-2 end-2 text-white bg-black/50 rounded-full p-2 hover:bg-black/70 transition-colors",onClick:e=>e.stopPropagation(),title:c("agent.openInNewTab"),children:e(_t,{className:"size-5"})})]})})]})}const bo=new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]),yo=new Set(["css","csv","html","js","json","jsx","log","md","mjs","sql","ts","tsx","txt","xml","yaml","yml"]);function wo(e){const t=e?.split(/[?#]/)[0]??"";return t.includes(".")?(t.split(".").pop()??"").toLowerCase():""}function No({item:t,children:r,StoreLinkComponent:a,CollectionLinkComponent:s}){const i=t.href;if(!i)return e(n,{children:r});if(function(e){return Boolean(e?.includes("/store/objects/")||e?.startsWith("store:")||e?.startsWith("document:"))}(i)){const t=function(e){const t=e.split("/store/objects/")[1];return t?t.split(/[?#]/)[0]:e.replace(/^store:/,"").replace(/^document:(?:\/\/)?/,"").split(/[?#]/)[0]}(i);return a?e(a,{href:i,documentId:t,children:r}):e("a",{href:i.startsWith("store:")||i.startsWith("document:")?`/store/objects/${t}`:i,children:r})}if(function(e){return Boolean(e?.includes("/store/collections/")||e?.startsWith("collection:"))}(i)){const t=function(e){return e.split("/store/collections/")[1]||e.replace(/^collection:/,"")}(i);return s?e(s,{href:i,collectionId:t,children:r}):e("a",{href:i.startsWith("collection:")?`/store/collections/${t}`:i,children:r})}return/^https?:\/\//.test(i)||i.startsWith("/")?e("a",{href:i,target:i.startsWith("/")?void 0:"_blank",rel:"noopener noreferrer",children:r}):e(n,{children:r})}function ko({item:n,artifactRunId:a,variant:i,onRemove:o,StoreLinkComponent:l,CollectionLinkComponent:c}){const{t:d}=Ke(),m=Oe(Xe),u=Oa(),{openImage:p}=xo(),h=function(e){return e.artifactPath?e.artifactPath:e.href?.startsWith("artifact:")?e.href.slice(9):void 0}(n),f=function(e){return!!e.contentType?.toLowerCase().startsWith("image/")||bo.has(wo(e.artifactPath||e.href||e.name))}(n),g=f&&!function(e){const t=e.contentType?.toLowerCase()??"";return!!t.startsWith("text/")||!("application/json"!==t&&!t.includes("xml"))||yo.has(wo(e.artifactPath||e.href||e.name))}(n),[x,v]=Le(n.previewUrl);Ve(()=>{v(n.previewUrl)},[n.previewUrl]),Ve(()=>{if(!g||n.previewUrl||!a||!h||!m?.client)return;let e=!1;const t=Ua(a,h,"inline");return(async()=>{const n=u?await u.getOrFetch(t,async()=>(await m.client.files.getArtifactDownloadUrl(a,h,"inline")).url):(await m.client.files.getArtifactDownloadUrl(a,h,"inline")).url;e||v(n)})().catch(()=>{e||v(void 0)}),()=>{e=!0}},[h,a,n.previewUrl,m?.client,g,u]);const b={attention:"bg-attention/15 text-attention",destructive:"bg-destructive/15 text-destructive",info:"bg-info/15 text-info",muted:"bg-muted text-muted",success:"bg-success/15 text-success"}[n.statusTone??"muted"],y=Boolean(o&&!1!==n.removable),w=e=>{e.stopPropagation(),e.preventDefault(),o?.(n.id)},N=y?e(r,{variant:"unstyled",size:"none","aria-label":d("agent.removeFile",{name:n.name}),onClick:w,className:s("absolute -end-1.5 -top-1.5 inline-flex size-5 items-center justify-center rounded-full","border border-border bg-background text-muted shadow-sm transition-colors hover:text-foreground"),children:e(St,{className:"size-3","aria-hidden":"true"})}):null,k=y?e(r,{variant:"unstyled",size:"none","aria-label":d("agent.removeFile",{name:n.name}),onClick:w,className:s("-me-1 inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted","transition-colors hover:bg-mixer-muted/30 hover:text-foreground"),children:e(St,{className:"size-3.5","aria-hidden":"true"})}):null;if(g&&x)return t("div",{className:"relative inline-flex flex-col gap-1",children:[e(r,{type:"button",variant:"unstyled",onClick:()=>p(x,n.name),"aria-label":n.name,className:s("group overflow-hidden rounded-xl border border-border/70 bg-mixer-muted/20 p-0 shadow-sm","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","composer"===i?"size-16":"size-24"),children:e("img",{src:x,alt:n.name,className:"h-full w-full object-cover transition-transform group-hover:scale-[1.02]"})}),n.statusLabel?e("span",{className:s("absolute bottom-1 start-1 max-w-[calc(100%-0.5rem)] truncate rounded px-1.5 py-0.5","text-[10px] font-medium shadow-sm",b),children:n.statusLabel}):null,N]});const C=e(f?Tt:It,{className:"size-3.5 shrink-0 text-muted","aria-hidden":"true"}),_=t("span",{className:"inline-flex min-w-0 max-w-full items-center gap-1.5",children:[C,e("span",{className:s("truncate","composer"===i?"max-w-[14rem]":"max-w-[16rem]"),children:n.name}),n.statusLabel?e("span",{className:s("shrink-0 rounded px-1.5 py-0.5 text-[10px] font-medium",b),children:n.statusLabel}):null]});if("composer"===i)return t("span",{className:s("inline-flex min-h-8 max-w-full items-center gap-1 rounded-xl border border-border/60","bg-mixer-muted/15 px-2.5 py-1 text-sm text-foreground/80 transition-colors",n.href&&"hover:bg-mixer-muted/25"),children:[e(No,{item:n,StoreLinkComponent:l,CollectionLinkComponent:c,children:_}),k]});const S=e("span",{className:s("inline-flex max-w-full items-center gap-1.5 rounded-md border border-border/60 bg-mixer-muted/15","px-2.5 py-1.5 text-xs text-foreground/80 transition-colors",n.href&&"hover:bg-mixer-muted/25"),children:_});return t("span",{className:"relative inline-flex max-w-full",children:[e(No,{item:n,StoreLinkComponent:l,CollectionLinkComponent:c,children:S}),N]})}function Co({items:t,artifactRunId:n,className:r,align:a="start",variant:i="message",onRemove:o,StoreLinkComponent:l,CollectionLinkComponent:c}){return 0===t.length?null:e("div",{className:s("flex flex-wrap gap-2","end"===a&&"justify-end",r),children:t.map(t=>e(ko,{item:t,artifactRunId:n,variant:i,onRemove:o,StoreLinkComponent:l,CollectionLinkComponent:c},t.id))})}const _o=/^\s*(?:\*\*)?(attachments|uploaded artifacts):(?:\*\*)?\s*$/i,So=/^\s*(?:[-*]\s*)?\[([^\]]+)]\(([^)]+)\)(?:\s+\((.*)\))?\s*$/;function To(e){const t=e.split(/\r?\n/),n=[],r=[];let a=!1;for(const e of t){const t=e.trim();if(_o.test(t)){a=!0;continue}if(!a){n.push(e);continue}if(!t)continue;const s=So.exec(t);if(!s){a=!1,n.push(e);continue}const[,i,o,l]=s,c=o.startsWith("artifact:")?o.slice(9):void 0;r.push({id:`${o}-${r.length}`,name:i,href:o,artifactPath:c,contentType:l?.toLowerCase().includes("image")?"image/*":void 0})}return{body:n.join("\n").trim(),attachments:r}}const Io=We(function({message:n,batchData:a,isRunning:i=!1,className:c,headerClassName:d,senderClassName:m,progressBarClassName:u,itemListClassName:p,itemClassName:h,summaryClassName:f}){const[g,x]=Le(!1),v=l(),{t:b}=Ke(),{tool_name:y,total:w,completed:N,succeeded:k,failed:C,items:_,started_at:S,completed_at:T}=a,I=w>0?N/w*100:0,z=C>0,j=N===w&&!i,R=i||!j?"running":C===w?"error":C>0?"warning":"completed",P=((T?T-S:Date.now()-S)/1e3).toFixed(1);return t("div",{className:s("border-s-4 shadow-md overflow-hidden bg-white dark:bg-gray-900 mb-5","completed"===R?"border-s-success":"error"===R?"border-s-destructive":"warning"===R?"border-s-attention":"border-s-blue-500",c),children:[t("div",{role:"button",tabIndex:0,"aria-expanded":g,className:s("flex items-center justify-between px-4 py-2 border-b border-gray-100/80 dark:border-gray-800/80 bg-blue-50/50 dark:bg-blue-900/10 cursor-pointer",d),onClick:()=>x(!g),onKeyDown:o(()=>x(!g)),children:[t("div",{className:"flex items-center gap-2",children:[i||!j?e(no,{size:"sm",color:"blue"}):"completed"===R?e(yt,{className:"size-4 text-success"}):"error"===R||"warning"===R?e(wt,{className:"size-4 text-destructive"}):e(Rt,{className:"size-4 text-purple-600"}),e("span",{className:s("text-xs font-medium text-muted",m),children:b("agent.batch")}),e("span",{className:"text-xs text-blue-600 dark:text-blue-400 font-medium",children:y}),t("span",{className:"text-xs text-muted",children:[N,"/",w]}),g?e(zt,{className:"size-3 text-muted"}):e(ct,{className:"size-3 text-muted cn-rtl-flip"})]}),t("div",{className:"flex items-center gap-2",children:[t("span",{className:"text-xs text-muted",children:[P,"s"]}),e("span",{className:"text-xs text-muted",children:Er(S).format("HH:mm:ss")}),e(r,{variant:"ghost",size:"xs",onClick:e=>{e.stopPropagation(),(()=>{const e=JSON.stringify(a,null,2);navigator.clipboard.writeText(e).then(()=>{v({status:"success",title:b("agent.copiedBatchDetails"),duration:2e3})})})()},className:"text-muted",title:b("agent.copyBatchDetails"),children:e(jt,{className:"size-3"})})]})]}),e("div",{className:s("px-4 py-2 bg-gray-50/50 dark:bg-gray-800/30",u),children:t("div",{className:"flex items-center gap-3",children:[e("div",{className:"flex-1 h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:e("div",{className:`h-full ${z?"bg-attention":j?"bg-success":"bg-blue-500"} transition-all duration-300 ease-out`,style:{width:`${I}%`}})}),t("div",{className:"flex items-center gap-2 text-xs",children:[k>0&&t("span",{className:"text-success flex items-center gap-1",children:[e(yt,{className:"size-3"}),k]}),C>0&&t("span",{className:"text-destructive flex items-center gap-1",children:[e(wt,{className:"size-3"}),C]}),i&&N<w&&t("span",{className:"text-blue-500 flex items-center gap-1",children:[e(et,{className:"size-3 animate-spin"}),w-N]})]})]})}),g&&_.length>0&&e("div",{className:s("max-h-64 overflow-y-auto",p),children:_.map(n=>t("div",{className:s("flex items-center gap-2 px-4 py-1.5 text-xs border-b border-gray-100 dark:border-gray-800 last:border-b-0 hover:bg-gray-50 dark:hover:bg-gray-800/50",h),children:[t("div",{className:"w-4 flex-shrink-0",children:["success"===n.status&&e(yt,{className:"size-3 text-success"}),"error"===n.status&&e(wt,{className:"size-3 text-destructive"}),"running"===n.status&&e(et,{className:"size-3 text-blue-500 animate-spin"}),"pending"===n.status&&e("div",{className:"size-3 rounded-full border border-gray-300 dark:border-gray-600"})]}),e("span",{className:"font-mono text-muted w-24 truncate flex-shrink-0",title:n.id,children:n.id}),e("span",{className:"text-muted truncate flex-1",title:n.message,children:n.message||("pending"===n.status?b("agent.waiting"):"")}),void 0!==n.duration_ms&&t("span",{className:"text-muted flex-shrink-0",children:[(n.duration_ms/1e3).toFixed(1),"s"]})]},n.id))}),!g&&n.message&&e("div",{className:s("px-4 py-2 text-xs text-muted",f),children:n.message})]})},(e,t)=>e.isRunning===t.isRunning&&(e.batchData.completed===t.batchData.completed&&(e.batchData.succeeded===t.batchData.succeeded&&e.batchData.failed===t.batchData.failed)));function zo({client:e,toast:t}){const n=Ye.getFixedT(null,Qe),[r,a]=Le(!1),s=Ue(async(r,s)=>{if(r){a(!0);try{jo((await e.files.getDownloadUrlWithOptions({file:r,name:s})).url,s)}catch(e){t({status:"error",title:n("store.downloadFailed"),description:e instanceof Error?e.message:n("store.failedToGetDownloadUrl"),duration:5e3})}finally{a(!1)}}},[e,t,n]),i=Ue((e,t)=>{e&&jo(e,t)},[]),o=Ue(async(t,n)=>{const r="store"in e?e.store:e,a=await r.rendering.render(t);if(a.download_url)jo(a.download_url,n);else{if(!a.file_uri)throw new Error("No download URL or file URI in response");jo((await e.files.getDownloadUrlWithOptions({file:a.file_uri,name:n})).url,n)}},[e]);return{downloadFromContentSource:s,downloadFromUrl:i,renderDocument:Ue(async(e,r)=>{a(!0);try{const a=`${r.title||"document"}.${r.format}`;await o({object_id:e,format:r.format,title:r.title,pandoc_options:r.pandocOptions,use_default_template:r.useDefaultTemplate,template_path:r.templateObjectId?`store:${r.templateObjectId}`:void 0},a),t({status:"success",title:n("store.documentExported"),description:n("store.successfullyExportedTo",{format:r.format.toUpperCase()}),duration:2e3})}catch(e){t({status:"error",title:n("store.exportFailed"),description:e instanceof Error?e.message:n("store.failedToExportDocument"),duration:5e3})}finally{a(!1)}},[o,t,n]),renderContent:Ue(async(e,r)=>{a(!0);try{const a=`${r.title||"export"}.${r.format}`;await o({content:e,format:r.format,title:r.title,artifact_run_id:r.artifactRunId,pandoc_options:r.pandocOptions},a),t({status:"success",title:n("store.contentExported"),description:n("store.successfullyExportedTo",{format:r.format.toUpperCase()}),duration:2e3})}catch(e){t({status:"error",title:n("store.exportFailed"),description:e instanceof Error?e.message:n("store.failedToExportContent"),duration:5e3})}finally{a(!1)}},[o,t,n]),isDownloading:r}}function jo(e,t){fetch(e).then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}`);return e.blob()}).then(n=>{const r=URL.createObjectURL(n),a=document.createElement("a");a.href=r,a.download=t||Ro(e),a.style.display="none",document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),URL.revokeObjectURL(r)},100)}).catch(()=>{const n=document.createElement("a");n.href=e,n.download=t||Ro(e),n.target="_blank",n.rel="noopener noreferrer",n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n)},100)})}function Ro(e){try{const t=new URL(e).pathname.split("/");return t[t.length-1]||"download"}catch{return"download"}}function Po(e){return void 0!==e&&e>="0"&&e<="9"}function Ao(e){return" "===e||"\t"===e}function Do(e,t){if(t>0&&Po(e[t-1]))return;let n=t;for(;Po(e[n]);)n++;if(n===t||"."!==e[n])return;n++;const r=n;for(;Ao(e[n]);)n++;return n>r&&(void 0!==(a=e[n])&&" "!==a&&"\t"!==a&&"\n"!==a&&"\r"!==a)?n:void 0;var a}function $o(e,t){for(let n=t;n<e.length;n++)if(void 0!==Do(e,n))return n;return-1}function Eo(e){const t=$o(e,0);if(-1===t)return e;let n=e.slice(0,t),r=t;for(;-1!==r;){const t=$o(e,Do(e,r)??r+1);if(-1===t){n+=e.slice(r),n+="\n\n";break}let a=t;for(;a>r&&Ao(e[a-1]);)a--;n+=e.slice(r,a),n+="\n\n",r=t}return n}function Lo(e){if(!e.includes("\n"))return e;const t=e.split("\n");let n=!1;return t.map(e=>{const t=n&&e.length>=2&&!Po(e[0])&&":"!==e[1]?` ${e}`:e;return n=function(e){let t=0;for(;Ao(e[t]);)t++;return void 0!==Do(e,t)}(e),t}).join("\n")}const Fo=["className","cardClassName","headerClassName","contentClassName","timestampClassName","senderClassName","iconClassName","detailsClassName","artifactsClassName","proseClassName"];function Oo(e,t,...n){const r={};for(const a of Fo)r[a]=s(e[a],t[a],...n.map(e=>e?.[a]));return r}const Mo={Ready:"agent.ready",Error:"agent.error"},Uo={[Qn.ANSWER]:{borderColor:"border-s-info",iconColor:"text-info",sender:"Agent",Icon:Pt},[Qn.COMPLETE]:{borderColor:"border-s-success",iconColor:"text-success",sender:"Completed",Icon:yt},[Qn.IDLE]:{borderColor:"border-s-info",iconColor:"text-info",sender:"Ready",Icon:Et},[Qn.REQUEST_INPUT]:{borderColor:"border-s-attention",iconColor:"text-attention",sender:"Input",Icon:$t},[Qn.QUESTION]:{borderColor:"border-s-muted",iconColor:"text-muted",sender:"User",Icon:$t},[Qn.THOUGHT]:{borderColor:"border-s-purple-500",iconColor:"text-purple-600 dark:text-purple-400",sender:"Agent",Icon:Pt},[Qn.ERROR]:{borderColor:"border-s-destructive",iconColor:"text-destructive",sender:"Error",Icon:wt},[Qn.UPDATE]:{borderColor:"border-s-success",iconColor:"text-success",sender:"Update",Icon:Dt},[Qn.PLAN]:{borderColor:"border-s-attention",iconColor:"text-attention",sender:"Plan",Icon:xt},[Qn.TERMINATED]:{borderColor:"border-s-muted",iconColor:"text-muted",sender:"Terminated",Icon:yt},[Qn.WARNING]:{borderColor:"border-s-attention",iconColor:"text-attention",sender:"Warning",Icon:wt},[Qn.SYSTEM]:{borderColor:"border-s-muted",iconColor:"text-muted",sender:"System",Icon:Dt},[Qn.STREAMING_CHUNK]:{borderColor:"border-s-info",iconColor:"text-info",sender:"Agent",Icon:Pt},[Qn.BATCH_PROGRESS]:{borderColor:"border-s-blue-500",iconColor:"text-blue-600 dark:text-blue-400",sender:"Batch",Icon:Rt},[Qn.RESTARTING]:{borderColor:"border-s-attention",iconColor:"text-attention",sender:"Restarting",Icon:At},default:{borderColor:"border-s-muted",iconColor:"text-muted",sender:"Agent",Icon:Pt}};const Wo=We(function({message:n,showPulsatingCircle:a=!1,onSendMessage:i,requestInputAnswered:o=!1,className:u,cardClassName:p,headerClassName:h,contentClassName:f,timestampClassName:g,senderClassName:x,iconClassName:v,detailsClassName:b,artifactsClassName:y,proseClassName:w,messageStyleOverrides:N,StoreLinkComponent:k,CollectionLinkComponent:C}){const[_,S]=Le(!1),{t:T}=Ke(),{client:I}=Ze(),z=l(),j=Oa(),{openImage:R}=xo(),{router:P}=Lr(),A=Me(I);A.current=I;const D=Me(j);D.current=j;const{renderContent:$,isDownloading:E}=zo({client:I,toast:z}),L=Ee(()=>{const e=Uo[n.type]||Uo.default,t=N?.default,r=N?.[n.type];return{...e,...t,...r,...Oo(e,{className:u,cardClassName:p,headerClassName:h,contentClassName:f,timestampClassName:g,senderClassName:x,iconClassName:v,detailsClassName:b,artifactsClassName:y,proseClassName:w},t,r)}},[n.type,N,u,p,h,f,g,x,v,b,y,w]),F=Ee(()=>{let e="";if(n.message&&(e="object"==typeof n.message?JSON.stringify(n.message,null,2):n.message.trim?n.message.trim():String(n.message)),"string"==typeof e&&e.includes("%thinking_message%")){const t=Math.floor(Math.random()*oo.length);e=e.replace(/%thinking_message%/g,oo[t])}return e},[n.message]),O=Ee(()=>n.type===Qn.QUESTION?To(F):null,[F,n.type]),M=O?.body??F,U=O?.attachments??[],W=Ee(()=>M?function(e,t,n){if("string"!=typeof e)return e;if(t===Qn.THOUGHT||"string"==typeof n&&(n.toLowerCase().includes("thinking about")||n.toLowerCase().includes("i'm thinking")||n.toLowerCase().includes("💭"))){let t=e;return t=Lo(Eo(t)),t.includes(":")&&!t.includes("\n\n")&&(t=t.replace(/\b(First|Next|Then|Finally|Lastly|Additionally|Step \d+):\s+/gi,"\n\n$&")),t.includes(" - ")&&(t=t.replace(/(^|\S)\s+-\s+/g,"$1\n- ")),t}return e.includes("\n\n")?e:Eo(e)}(M,n.type,"string"==typeof n.message?n.message:void 0):"",[M,n.type,n.message]),V=async e=>{const t="string"==typeof F?F:"";if(!t.trim())return void z({status:"error",title:T("agent.noContentToExport"),duration:2e3});const r=`Message ${Er(n.timestamp).format("YYYY-MM-DD HH-mm-ss")}`;await $(t,{format:e,title:r,artifactRunId:K})},B="string"==typeof F&&F.trim().length>0,q=Ee(()=>({a:({node:t,ref:n,...r})=>{const a=r.href||"",s=a.startsWith("/")?P.getTopRouter().navigator.addStickyParams(a):a;if(a.includes("/store/objects")){if(k){const t=a.split("/store/objects/")[1]||"";return e(k,{href:s,documentId:t,children:r.children})}return e(Fr,{href:s,topLevelNav:!0,children:r.children})}if(a.includes("/store/collections")){if(C){const t=a.split("/store/collections/")[1]||"";return e(C,{href:s,collectionId:t,children:r.children})}return e(Fr,{href:s,topLevelNav:!0,children:r.children})}return e("a",{...r,target:"_blank",rel:"noopener noreferrer"})},img:({node:t,ref:n,...a})=>e(r,{variant:"unstyled",className:"block p-0",onClick:()=>a.src&&R(a.src,a.alt),"aria-label":a.alt||a.src||"image",children:e("img",{...a,alt:a.alt??"",className:"max-w-full h-auto rounded-lg shadow-md my-3 cursor-pointer hover:shadow-lg transition-shadow",loading:"lazy"})})}),[R,k,C,P]),H=t=>{if("object"==typeof t)return e("pre",{className:"text-xs font-mono whitespace-pre-wrap overflow-x-auto bg-gray-100 dark:bg-gray-800 p-2 rounded text-gray-700",children:JSON.stringify(t,null,2)});const r=n.workflow_run_id;return!r&&"string"==typeof t&&t.includes("artifact:")&&console.warn("[MessageItem] message contains artifact references but workflow_run_id is missing!",{type:n.type,workflow_run_id:n.workflow_run_id,hasArtifact:t.includes("artifact:")}),e("div",{className:s("vprose prose prose-slate dark:prose-invert prose-p:leading-relaxed prose-p:my-3 prose-headings:font-semibold prose-headings:tracking-normal prose-headings:mt-6 prose-headings:mb-3 prose-h1:text-xl prose-h2:text-lg prose-h3:text-base prose-li:my-1 prose-ul:my-3 prose-ol:my-3 prose-table:my-5 prose-pre:my-4 prose-hr:my-6 max-w-none text-[15px] break-words",L.proseClassName),style:{overflowWrap:"anywhere"},children:e(Mr,{artifactRunId:r,onProposalSelect:e=>i?.(e),onProposalSubmit:e=>i?.(e),components:q,children:t})})},[G,J]=Le([]),K=n.workflow_run_id,Y=n.details,Q=Y?.outputFiles??Y?.files;Ve(()=>{(async()=>{if(!K||!Array.isArray(Q)||0===Q.length)return void J([]);const e=A.current,t=D.current;try{const n=await Promise.all(Q.map(async n=>{if("string"!=typeof n||!n.trim())return null;const r=n.trim(),a=r.startsWith("artifact:")?r.slice(9):r,s=a.split(".").pop()?.toLowerCase()||"",i=new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]).has(s),o=i?"inline":"attachment";try{const n=Ua(K,a,o);let s;if(t)s=await t.getOrFetch(n,async()=>(await e.files.getArtifactDownloadUrl(K,a,o)).url);else{s=(await e.files.getArtifactDownloadUrl(K,a,o)).url}return{displayName:r,artifactPath:a,url:s,isImage:i}}catch(e){return console.error(`Failed to resolve artifact URL for ${a}`,e),null}}));J(n.filter(e=>!!e))}catch(e){console.error("Error loading artifact URLs from message details",e),J([])}})()},[K,Q]);const Z=Di(n),{Icon:X}=L;return e("div",{className:s("w-full max-w-full",L.className),children:t("div",{className:s("border-s-4 bg-white dark:bg-gray-900 mb-4 w-full max-w-full overflow-hidden",L.borderColor,L.cardClassName),"data-workstream-id":Z,children:[t("div",{className:s("flex items-center justify-between px-4 py-1.5",L.headerClassName),children:[t("div",{className:"flex items-center gap-1.5",children:[e("div",{className:s(a?"animate-fadeIn":"",L.iconClassName),children:a?e(no,{size:"sm",color:"blue"}):e(X,{className:`size-4 ${L.iconColor}`})}),e("span",{className:s("text-xs font-medium text-muted",L.senderClassName),children:Mo[L.sender]?T(Mo[L.sender]):L.sender}),"main"!==Z&&"all"!==Z&&e(c,{variant:"default",className:"text-xs text-muted ms-1",children:Z})]}),t("div",{className:"flex items-center gap-1.5 print:hidden",children:[e("span",{className:s("text-[11px] text-muted/70",L.timestampClassName),children:Er(n.timestamp).format("HH:mm:ss")}),e(r,{variant:"ghost",size:"xs",onClick:()=>{const e=F||"",t="string"==typeof n.details?n.details:n.details?JSON.stringify(n.details,null,2):"",r=[e,t?`\n\nDetails:\n${t}`:""].join("").trim();navigator.clipboard.writeText(r).then(()=>{z({status:"success",title:T("agent.copiedToClipboard"),duration:2e3})})},className:"text-muted/50 hover:text-muted h-5 w-5 p-0",title:T("agent.copyMessage"),children:e(jt,{className:"size-3"})}),B&&t(d,{trigger:e(r,{variant:"ghost",size:"xs",className:"text-muted/50 hover:text-muted h-5 w-5 p-0",title:T("agent.exportMessage"),disabled:E,children:e(rt,{className:"size-3 "+(E?"animate-pulse":"")})}),children:[e(m,{onClick:()=>V(Zn.pdf),children:T("agent.exportAsPdf")}),e(m,{onClick:()=>V(Zn.docx),children:T("agent.exportAsWord")})]})]})]}),t("div",{className:s("px-4 pb-3 bg-white dark:bg-gray-900 overflow-hidden",L.contentClassName),children:[n.type===Qn.REQUEST_INPUT&&n.details?.ux?(()=>{const t=n.details.ux;return e(Ii,{question:"string"==typeof F?F:"",options:t.options,variant:t.variant,multiSelect:t.multiSelect,onSelect:e=>i?.(e),onMultiSelect:e=>i?.(e.join(", ")),hideBorder:!0,compact:!0,answered:o})})():M&&e("div",{className:"message-content break-words w-full",style:{overflowWrap:"anywhere",wordBreak:"break-word"},children:H(W||M)}),U.length>0&&e(Co,{items:U,artifactRunId:K,variant:"message",className:s(M&&"mt-3"),StoreLinkComponent:k,CollectionLinkComponent:C}),G.length>0&&t("div",{className:s("mt-3 text-xs",L.artifactsClassName),children:[e("div",{className:"font-medium text-muted mb-1",children:"Artifacts"}),G.some(e=>e.isImage)&&e("div",{className:"mb-2 flex flex-wrap gap-3",children:G.filter(e=>e.isImage).map(({displayName:n,artifactPath:a,url:s})=>t(r,{variant:"unstyled",className:"max-w-xs cursor-pointer text-start p-0",onClick:()=>R(s,n),"aria-label":n,children:[e("img",{src:s,alt:n,className:"max-w-full h-auto rounded-lg shadow-sm hover:shadow-md transition-shadow"}),e("div",{className:"mt-1 text-[11px] text-muted truncate",children:n})]},`${a}-preview`))}),e("div",{className:"flex flex-wrap gap-2 print:hidden",children:G.map(({displayName:t,artifactPath:n,url:a})=>e(r,{variant:"outline",size:"xs",className:"px-2 py-1 text-xs",onClick:()=>window.open(a,"_blank"),title:n,children:t},n+a))})]}),n.details&&t("div",{className:s("mt-2 print:hidden",L.detailsClassName),children:[t(r,{variant:"unstyled",onClick:()=>S(!_),className:"text-[11px] text-muted flex items-center",children:[T(_?"agent.hideDetails":"agent.showDetails"),e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 ms-1 transition-transform "+(_?"rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),_&&e("div",{className:"mt-1 p-1.5 bg-muted border border-mixer-muted/40 rounded text-sm",children:"string"==typeof n.details?H(n.details):e("pre",{className:"text-xs font-mono whitespace-pre-wrap overflow-x-auto bg-muted p-2 rounded text-muted",children:JSON.stringify(n.details,null,2)})})]})]})]})})},(e,t)=>e.message.timestamp===t.message.timestamp&&e.message.type===t.message.type&&e.message.message===t.message.message&&e.message.details===t.message.details&&e.message.workstream_id===t.message.workstream_id&&e.message.workflow_run_id===t.message.workflow_run_id&&e.showPulsatingCircle===t.showPulsatingCircle&&e.onSendMessage===t.onSendMessage&&e.requestInputAnswered===t.requestInputAnswered&&e.messageStyleOverrides===t.messageStyleOverrides&&Fo.every(n=>e[n]===t[n]));const Vo=$e.memo(function({text:n,workstreamId:a,artifactRunId:i,revealSpeed:o=300,isComplete:c=!1,timestamp:d,className:m,cardClassName:u,headerClassName:p,contentClassName:h,proseClassName:f,senderClassName:g,iconClassName:x}){const{t:v}=Ke(),[b,y]=Le(0),[w,N]=Le(""),k=Me(null),C=Me(n.length),_=Me(0),S=Me(d||Date.now()),T=Me(n),I=Me(0),z=Me(performance.now()),j=Me(o),R=Me(0);Ve(()=>{const e=performance.now(),t=n.length-I.current,r=e-z.current;if(t>0&&r>30){const e=t/r*1e3,n=.2;j.current=j.current*(1-n)+e*n,j.current=Math.max(50,Math.min(2e3,j.current))}I.current=n.length,z.current=e},[n.length]),C.current=n.length,T.current=n;const P=Ue(()=>{let e=performance.now();const t=n=>{const r=n-e;e=n;const a=C.current-_.current;if(a<=0)return R.current=0,void(k.current=null);let s;if(c)s=Math.max(500,2*j.current);else if(a<20)s=.85*j.current;else if(a<100)s=j.current;else if(a<500){const e=(a-100)/400;s=j.current*(1+.5*e)}else s=2*j.current;const i=s*r/1e3+R.current,o=Math.floor(i);R.current=i-o,o>0&&(_.current=Math.min(_.current+o,C.current),y(_.current)),k.current=requestAnimationFrame(t)};k.current=requestAnimationFrame(t)},[c]);Ve(()=>(n.length>_.current&&!k.current&&P(),()=>{k.current&&(cancelAnimationFrame(k.current),k.current=null)}),[n.length,P]),Ve(()=>{c&&_.current<n.length&&(k.current&&(cancelAnimationFrame(k.current),k.current=null),P())},[c,n.length,P]);const A=Me(null),D=Me(0);Ve(()=>{(b>=C.current||c)&&(N(T.current.slice(0,b)),D.current=b)},[b,c]);const $=b<n.length&&!c;Ve(()=>{if($)return A.current||(A.current=window.setInterval(()=>{const e=_.current;e>D.current&&(N(T.current.slice(0,e)),D.current=e)},33)),()=>{A.current&&(clearInterval(A.current),A.current=null)};A.current&&(clearInterval(A.current),A.current=null)},[$]);const E=l(),L=Ee(()=>Er(S.current).format("HH:mm:ss"),[]),F=b<n.length,O=Ee(()=>{const e=w||n.slice(0,b);return F?e+"│":e},[w,n,b,F]);return n?e("div",{className:s("w-full max-w-full",m),children:t("div",{className:s("border-s-4 bg-white dark:bg-gray-900 mb-4 border-s-purple-500 w-full max-w-full overflow-hidden",u),"data-workstream-id":a,children:[t("div",{className:s("flex items-center justify-between px-4 py-1.5",p),children:[t("div",{className:"flex items-center gap-1.5",children:[e("div",{className:s("animate-fadeIn",x),children:F?e("span",{className:"size-2 rounded-full bg-blue-500 animate-pulse inline-block"}):e(Pt,{className:"size-4 text-purple-600 dark:text-purple-400"})}),e("span",{className:s("text-xs font-medium text-muted",g),children:"Agent"}),a&&"main"!==a&&t("span",{className:"text-xs text-muted",children:["• Task ",a]})]}),t("div",{className:"flex items-center gap-2 text-muted",children:[e("span",{className:"text-[11px]",children:L}),e(r,{variant:"ghost",size:"xs",onClick:()=>{navigator.clipboard.writeText(n).then(()=>{E({status:"success",title:v("agent.copiedToClipboard"),duration:2e3})})},className:"size-6 p-0 hover:bg-gray-100 dark:hover:bg-gray-800",title:v("agent.copyMessage"),children:e(jt,{className:"size-3"})})]})]}),t("div",{className:s("px-3 pb-2 streaming-content",F&&"streaming-active",h),children:[e("div",{className:s("vprose prose prose-slate dark:prose-invert prose-p:leading-relaxed prose-p:my-3 prose-headings:font-semibold prose-headings:tracking-normal prose-headings:mt-6 prose-headings:mb-3 prose-h1:text-xl prose-h2:text-lg prose-h3:text-base prose-li:my-1 prose-ul:my-3 prose-ol:my-3 prose-table:my-5 prose-pre:my-4 prose-hr:my-6 max-w-none text-[15px] break-words",f),style:{overflowWrap:"anywhere"},children:e(Mr,{artifactRunId:i,children:O})}),e("style",{children:"\n /* Ensure inline elements flow properly */\n .streaming-content p:last-child,\n .streaming-content li:last-child {\n display: inline;\n }\n /* Soft fade at reveal edge */\n .streaming-active .vprose {\n mask-image: linear-gradient(to right, black 97%, transparent 100%);\n -webkit-mask-image: linear-gradient(to right, black 97%, transparent 100%);\n }\n "})]})]})}):null});function Bo(e){return e.message?"object"==typeof e.message?JSON.stringify(e.message,null,2):String(e.message).trim():""}function qo(e){return e.type===Qn.THOUGHT&&"thinking"===e.details?.display_role}function Ho(e){if(qo(e))return!0;if(e.type!==Qn.WARNING)return!1;const t=e.details,n=Bo(e).replace(/^[^A-Za-z0-9]+/,"").toLowerCase();return"number"==typeof t?.attempt&&"number"==typeof t?.maxAttempts&&"number"==typeof t?.estimatedBackoffSeconds&&"string"==typeof t?.activityId&&(n.startsWith("retrying operation")||n.startsWith("retrying checkpoint operation"))}function Go(e){if("number"==typeof e)return e;if(!e)return-1/0;const t=new Date(e).getTime();return Number.isFinite(t)?t:-1/0}function Jo(e,t){const n=e.details?.[t];if("string"!=typeof n)return;const r=n.trim();return r||void 0}function Ko(e){if(uo(e))return!1;const t=Bo(e);return!(!t||function(e){const t=e.replace(/\s+/g," ").trim().toLowerCase();return"thinking"===t||"thinking..."===t||"working"===t||"working..."===t||"waiting"===t||"waiting..."===t}(t))&&(e.type===Qn.ANSWER||!Ui(e)&&(e.type===Qn.THOUGHT&&Boolean(e.details?.streamed)))}function Yo(e){if(e.type!==Qn.ERROR&&e.type!==Qn.WARNING)return!1;const t=e.details;return Boolean(t?.tool||t?.tool_status||t?.tool_run_id||t?.activity_group_id||t?.tool_event)}function Qo(e){return!uo(e)&&(e.type===Qn.QUESTION||Boolean(fo(e))||Ko(e)||e.type===Qn.REQUEST_INPUT||e.type===Qn.TERMINATED||(e.type===Qn.ERROR||e.type===Qn.WARNING)&&!Yo(e)&&!Ho(e))}function Zo(e){const t=e.details?.tool_status;return"running"===t||"completed"===t||"error"===t||"warning"===t?t:e.type===Qn.ERROR?"error":e.type===Qn.WARNING?"warning":void 0}function Xo(e,t){return Wi(e)&&!qo(e)&&t.length>0&&t.every(qo)}function el(e){return!uo(e)&&(!Ko(e)&&(!fo(e)&&(!!Ho(e)||(!!Yo(e)||(!!Ui(e)||(!!Wi(e)||(e.type===Qn.UPDATE||e.type===Qn.PLAN||e.type===Qn.THOUGHT&&!e.details?.streamed)))))))}function tl(e,t,n=function(e){return e.reduce((e,t)=>Math.max(e,Go(t.timestamp)),-1/0)}(e)){const r=[];let a=[];const s=(e,t)=>{if(0===a.length)return;const s=function(e,t,n){if(!e.some(Ho))return e;if(!t)return e.filter(e=>!Ho(e));let r=-1,a=-1;return e.forEach((e,t)=>{Ho(e)?a=t:r=t}),e.filter((e,t)=>!Ho(e)||t===a&&t>r&&Go(e.timestamp)>=n)}(a,e,n);if(0===s.length)return void(a=[]);const i=s[0],o=s[s.length-1],l=function(e,t){for(let n=e.length-1;n>=0;n--){const r=Zo(e[n]);if("error"===r||"warning"===r)return r;if(r)return t?"running":"completed"}return t?"running":"completed"}(s,e);r.push({type:"work",id:e?`${i.timestamp}-active`:`${i.timestamp}-${o.timestamp}-${s.length}`,messages:s,isActive:e,status:l,startTimestamp:i.timestamp,endTimestamp:t?.timestamp??o.timestamp}),a=[]};for(const t of e)if(t.type!==Qn.COMPLETE&&t.type!==Qn.IDLE)if(el(t)){if(Xo(t,a)){const e=r[r.length-1];if("work"===e?.type&&!e.isActive){r.pop(),a=[...e.messages,t];continue}}a.push(t)}else Qo(t)&&(s(!1,t),r.push({type:"message",message:t}));else s(!1,t);return s(!t),r}function nl(e,t){if(0===t.size)return e;const n=e.find(e=>e.workflow_run_id)?.workflow_run_id??"",r=[];return t.forEach((t,a)=>{const s=t.text.trim();if(!s||Fi(t,e))return;if(mo(s,t.workstreamId))return;const i=function(e,t){if(e.activityId){const n=t.find(t=>Wi(t)&&(Jo(t,"activity_id")===e.activityId||Jo(t,"activity_group_id")===e.activityId));if(n)return n;const r=t.find(t=>Jo(t,"activity_id")===e.activityId&&Jo(t,"activity_group_id"))?.details?.activity_group_id;if("string"==typeof r){const e=t.find(e=>Wi(e)&&Jo(e,"activity_group_id")===r);if(e)return e}}if(e.isComplete)return;const n=Go(e.startTimestamp);if(!Number.isFinite(n))return;const r=[...t].filter(e=>Go(e.timestamp)>=n).sort((e,t)=>Go(e.timestamp)-Go(t.timestamp));for(const e of r){if(Go(e.timestamp)-n>6e4)return;if(Wi(e))return e;if(Qo(e))return}}(t,e),o=i?Jo(i,"activity_group_id"):void 0;r.push({timestamp:t.startTimestamp,workflow_run_id:n,type:i?Qn.THOUGHT:Qn.ANSWER,message:s,workstream_id:t.workstreamId,details:{activity_id:t.activityId,activity_group_id:o,display_role:i?"tool_preamble":void 0,source:"streaming_summary",streamed:!0,streaming_id:a,tools:i?.details?.tool?[i.details.tool]:void 0}})}),0===r.length?e:[...e,...r].sort((e,t)=>Go(e.timestamp)-Go(t.timestamp))}const rl=new Set(["tool","tool_event","tool_run_id","tool_use_id","activity_group_id","event_class","tool_iteration","tool_status","message_to_human","tools","streamed","files","outputFiles","display_role","observation","progress_messages","browseruse","browser_use"]);function al(e){return e?Object.entries(e).filter(([e,t])=>!rl.has(e)&&null!=t&&""!==t):[]}function sl(e){return e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase())}function il(e){const t=e?.progress_messages;return Array.isArray(t)?t.flatMap(e=>{if(!e||"object"!=typeof e)return[];const t=e,n="string"==typeof t.message?t.message.trim():"";if(!n)return[];return[{message:n,status:"string"==typeof t.status?t.status:void 0,timestamp:"number"==typeof t.timestamp||"string"==typeof t.timestamp?t.timestamp:void 0}]}):[]}function ol(e){return["progress",e.timestamp??"no-time",e.status??"status",e.message].join(":")}function ll(e){const t=e.details,n="string"==typeof t?.tool_run_id?t.tool_run_id:void 0;if(n)return`tool-run:${n}`;const r="string"==typeof t?.activity_group_id?t.activity_group_id:void 0,a="string"==typeof t?.tool_use_id?t.tool_use_id:void 0;return r||a?`tool:${r??"no-activity"}:${a??"no-use"}`:["message",e.workstream_id??"main",e.type,e.timestamp,hl(e)].join(":")}function cl(e){switch(e){case"completed":return"bg-green-50 dark:bg-green-900/30 text-green-700 dark:text-green-300 border-green-200 dark:border-green-800";case"running":return"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 border-blue-200 dark:border-blue-800";case"error":return"bg-red-50 dark:bg-red-900/30 text-red-700 dark:text-red-300 border-red-200 dark:border-red-800";case"warning":return"bg-yellow-50 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300 border-yellow-200 dark:border-yellow-800";default:return""}}const dl=e=>/\.(png|jpg|jpeg|gif|webp|svg)(\?|$)/i.test(e);function ml({files:n,className:a}){const{t:i}=Ke(),{openImage:o}=xo();return n&&0!==n.length?e("div",{className:s("mt-2 flex flex-wrap gap-2",a),children:n.map((n,a)=>{const s=n.split("/").pop()?.split("?")[0]||"file";return dl(n)?e(r,{variant:"unstyled",className:"cursor-pointer p-0",onClick:()=>o(n,s),title:i("agent.clickToEnlarge"),"aria-label":s,children:e("img",{src:n,alt:s,className:"max-w-[300px] max-h-[200px] rounded border hover:opacity-80 transition-opacity hover:shadow-lg"})},a):t("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 px-2 py-1 bg-muted rounded text-xs hover:bg-muted/80",children:["📎 ",s]},a)})}):null}const ul=e=>{if(!e)return;const t=e.files??e.outputFiles;return Array.isArray(t)?t:void 0},pl=e=>{const t=e.details;return e.type===Qn.THOUGHT&&"tool_preamble"===t?.display_role},hl=e=>{const t=e.details;if(pl(e))return"assistant";if(t?.tool)return t.tool;switch(e.type){case Qn.UPDATE:return"update";case Qn.WARNING:return"warning";case Qn.ERROR:return"error";case Qn.SYSTEM:return"system";default:return"activity"}},fl=e=>pl(e)?"text-[10px] px-1.5 py-0.5 rounded-md bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-gray-700 font-medium":"text-[10px] px-1.5 py-0.5 rounded-md bg-purple-50 dark:bg-purple-900/30 text-purple-700 dark:text-purple-300 border border-purple-200 dark:border-purple-800 font-medium";function gl({message:n,isExpanded:a,onToggle:i,artifactRunId:c,classNames:d={}}){const{t:m}=Ke(),[u,p]=Le([]),h=l(),{client:f}=Ze(),g=Oa(),x=Me(f);x.current=f;const v=Me(g);v.current=g;const b=n.details,y=hl(n),w=fl(n),N=ul(b),k="string"==typeof n.message?n.message:"";Ve(()=>{if(!N||0===N.length||!c)return void p([]);let e=!1;return(async()=>{const t=x.current,n=v.current,r=await Promise.all(N.map(async e=>{if(!e||"string"!=typeof e)return null;if(e.startsWith("http://")||e.startsWith("https://"))return e;const r=e.startsWith("artifact:")?e.slice(9):e,a=r.split(".").pop()?.toLowerCase()||"",s=new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]).has(a)?"inline":"attachment";try{const e=Ua(c,r,s);if(n)return await n.getOrFetch(e,async()=>(await t.files.getArtifactDownloadUrl(c,r,s)).url);return(await t.files.getArtifactDownloadUrl(c,r,s)).url}catch(e){return console.error(`Failed to resolve artifact URL for ${r}`,e),null}}));e||p(r.filter(e=>!!e))})(),()=>{e=!0}},[N,c]);const C=u.filter(e=>dl(e)),_=u.filter(e=>!dl(e));return t("div",{className:s("border-b border-gray-100 dark:border-gray-800 last:border-b-0",d.itemClassName),children:[t("div",{role:"button",tabIndex:0,className:s("flex items-start justify-between px-3 py-2 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors",d.itemHeaderClassName),onClick:i,onKeyDown:o(i),children:[t("div",{className:"flex items-start gap-2 flex-1 min-w-0",children:[e("div",{className:"flex-shrink-0 pt-0.5",children:a?e(zt,{className:"size-3 text-muted"}):e(ct,{className:"size-3 text-muted cn-rtl-flip"})}),e("div",{className:"flex-1 min-w-0",children:k?e("span",{className:"text-xs text-foreground line-clamp-2",children:k}):t("span",{className:"text-xs text-muted italic",children:["Activity: ",y]})})]}),t("div",{className:"flex items-center gap-2 flex-shrink-0",children:[!a&&e("span",{className:s(w,d.toolBadgeClassName),children:y}),e(r,{variant:"ghost",size:"xs",onClick:e=>{e.stopPropagation(),(()=>{const e=[k,b?`\n\nDetails:\n${JSON.stringify(b,null,2)}`:""].join("").trim();navigator.clipboard.writeText(e).then(()=>{h({status:"success",title:m("agent.copiedToClipboard"),duration:2e3})})})()},className:"text-muted opacity-0 group-hover:opacity-100 transition-opacity",title:m("agent.copyMessage"),children:e(jt,{className:"size-3"})})]})]}),C.length>0&&e("div",{className:"px-3 pb-1.5",children:e(ml,{files:C})}),a&&(()=>{const r=b?.tool_status,a=al(b),i=il(b);return t("div",{className:s("px-4 py-2 bg-gray-50/50 dark:bg-gray-800/30",d.itemContentClassName),children:[t("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[e("span",{className:s(w,d.toolBadgeClassName),children:y}),r&&e("span",{className:s("text-[10px] px-1.5 py-0.5 rounded-md border font-medium",cl(r)),children:r}),e("span",{className:"text-[10px] text-muted/70",children:Er(n.timestamp).format("HH:mm:ss")})]}),a.length>0&&e("div",{className:"mb-2 space-y-0.5",children:a.map(([n,r])=>t("div",{className:"flex gap-1.5 text-xs",children:[t("span",{className:"text-muted font-medium flex-shrink-0",children:[sl(n),":"]}),e("span",{className:"text-foreground break-all",children:"object"==typeof r?JSON.stringify(r):String(r)})]},n))}),i.length>0&&t("div",{className:"mb-2 space-y-1",children:[e("div",{className:"text-[10px] uppercase tracking-wide text-muted/70 font-medium",children:m("agent.progress")}),i.map(n=>t("div",{className:"text-xs text-muted",children:[n.timestamp&&e("span",{className:"me-1 text-muted/60",children:Er(n.timestamp).format("HH:mm:ss")}),e("span",{children:n.message})]},ol(n)))]}),(()=>{const t="string"==typeof b?.observation?b.observation:void 0;return t&&t!==k?e("div",{className:"vprose prose prose-slate dark:prose-invert prose-p:leading-relaxed prose-p:my-1.5 max-w-none text-sm",children:e(Mr,{artifactRunId:c,children:t})}):null})(),_.length>0&&e(ml,{files:_})]})})()]})}function xl({files:t,artifactRunId:n}){const[r,a]=Le([]),{client:s}=Ze(),i=Oa(),o=Me(s);o.current=s;const l=Me(i);return l.current=i,Ve(()=>{if(!t||0===t.length||!n)return void a([]);let e=!1;return(async()=>{const r=o.current,s=l.current,i=await Promise.all(t.map(async e=>{if(!e||"string"!=typeof e)return null;const t=e.startsWith("artifact:")?e.slice(9):e,a=t.split(".").pop()?.toLowerCase()||"";if(new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]).has(a))return null;if(t.startsWith("http://")||t.startsWith("https://"))return t;try{const e=Ua(n,t,"attachment");if(s)return await s.getOrFetch(e,async()=>(await r.files.getArtifactDownloadUrl(n,t,"attachment")).url);return(await r.files.getArtifactDownloadUrl(n,t,"attachment")).url}catch(e){return console.error(`Failed to resolve artifact URL for ${t}`,e),null}}));e||a(i.filter(e=>!!e))})(),()=>{e=!0}},[t,n]),0===r.length?null:e("div",{className:"ps-4 pe-2 pb-1.5",children:e(ml,{files:r})})}function vl({messages:t,artifactRunId:n}){const[r,a]=Le([]),{client:s}=Ze(),i=Oa(),o=Me(s);o.current=s;const l=Me(i);return l.current=i,Ve(()=>{if(!n||0===t.length)return void a([]);const e=t[t.length-1].details,r=ul(e);if(!r||0===r.length)return void a([]);let s=!1;return(async()=>{const e=o.current,t=l.current,i=await Promise.all(r.map(async r=>{if(!r||"string"!=typeof r)return null;const a=r.startsWith("artifact:")?r.slice(9):r,s=a.split(".").pop()?.toLowerCase()||"";if(!new Set(["png","jpg","jpeg","gif","webp","bmp","svg"]).has(s))return null;if(a.startsWith("http://")||a.startsWith("https://"))return a;try{const r=Ua(n,a,"inline");if(t)return await t.getOrFetch(r,async()=>(await e.files.getArtifactDownloadUrl(n,a,"inline")).url);return(await e.files.getArtifactDownloadUrl(n,a,"inline")).url}catch(e){return console.error(`Failed to resolve artifact URL for ${a}`,e),null}}));s||a(i.filter(e=>!!e))})(),()=>{s=!0}},[t,n]),0===r.length?null:e("div",{className:"px-3 py-1.5 border-b border-gray-100 dark:border-gray-800",children:e(ml,{files:r})})}const bl=We(function({messages:a,showPulsatingCircle:i=!1,toolRunId:c,toolStatus:d,preambleText:m,preambleMessage:u,rootClassName:p,headerClassName:h,senderClassName:f,toolSummaryClassName:g,toolBadgeClassName:x,itemClassName:v,itemHeaderClassName:b,itemContentClassName:y}){const w=Ee(()=>function(e){const t=new Map,n=[];for(const r of e){const e=r.details?.tool_run_id;e?(t.has(e)||t.set(e,[]),t.get(e)?.push(r)):n.push(r)}for(const[e,r]of t){if(r.length<=1){n.push(...r);continue}r.sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime()));const e=r[r.length-1],t=r.find(e=>"started"===e.details?.tool_event),a=r.find(e=>"running"===e.details?.tool_status),s=t??a??r.find(e=>e.message?.trim()),i=("string"==typeof s?.details?.message_to_human?s.details.message_to_human:void 0)||s?.message||e.message,o=r.filter(e=>"progress"===e.details?.tool_event&&e.message?.trim()).map(e=>({message:e.message.trim(),status:e.details?.tool_status,timestamp:e.timestamp})),l={};for(const e of r)Object.assign(l,e.details);o.length>0&&(l.progress_messages=o),n.push({...e,message:i,details:l})}return n.sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),n}(a),[a]),N=Ee(()=>w.map(ll),[w]),[k,C]=Le(!0),[_,S]=Le(new Set),[T,I]=Le(new Set),z=Me(N),{t:j}=Ke(),R=l(),P=w.find(e=>e.workflow_run_id)?.workflow_run_id??w[0]?.workflow_run_id;Ve(()=>{const e=z.current,t=new Set(e),n=N.filter(e=>!t.has(e));if(n.length>0){I(new Set(n));const e=setTimeout(()=>{I(new Set)},500);return z.current=N,()=>clearTimeout(e)}z.current=N},[N]);const A=w[0],D=w[w.length-1],$=A.timestamp,E=D.timestamp,L=w.map(e=>hl(e)),F=1===new Set(L).size?`${w.length}× ${L[0]}`:`${w.length} activity updates`,O=e=>{S(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})};return t("div",{className:s("border-s-4 overflow-hidden bg-white dark:bg-gray-900 mb-4","completed"===d?"border-s-success":"error"===d?"border-s-destructive":"warning"===d?"border-s-attention":"border-s-purple-500",p),children:[t("div",{role:"button",tabIndex:0,"aria-expanded":!k,className:s("flex items-center justify-between px-4 py-1.5 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors",h),onClick:()=>C(!k),onKeyDown:o(()=>C(!k)),children:[t("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[i?e(no,{size:"sm",color:"blue"}):"running"===d?e("span",{className:"size-2 rounded-full bg-blue-500 inline-block"}):"completed"===d?e(yt,{className:"size-4 text-success"}):"error"===d?e(wt,{className:"size-4 text-destructive"}):"warning"===d?e(Lt,{className:"size-4 text-attention"}):e(Pt,{className:"size-4 text-purple-600 dark:text-purple-400"}),m?e("span",{className:s("text-xs text-foreground line-clamp-2 flex-1 min-w-0",g),children:m}):t(n,{children:[e("span",{className:s("text-xs font-medium text-muted",f),children:"Agent"}),e("span",{className:s("text-xs text-purple-600 dark:text-purple-400 font-medium",g),children:F})]}),k?e(ct,{className:"size-3 text-muted flex-shrink-0 cn-rtl-flip"}):e(zt,{className:"size-3 text-muted flex-shrink-0"})]}),t("div",{className:"flex items-center gap-1 flex-shrink-0",children:[m&&e("span",{className:s("text-[10px] text-purple-600 dark:text-purple-400 font-medium",g),children:F}),t("span",{className:"text-[11px] text-muted/70",children:[Er($).format("HH:mm:ss"),w.length>1&&` - ${Er(E).format("HH:mm:ss")}`]}),e(r,{variant:"ghost",size:"xs",onClick:e=>{e.stopPropagation(),(()=>{const e=w.map(e=>{const t=e.details;return`[${hl(e)}] ${e.message||""}\n${t?JSON.stringify(t,null,2):""}`}).join("\n\n---\n\n");navigator.clipboard.writeText(e).then(()=>{R({status:"success",title:j("agent.copiedAllToolCalls"),duration:2e3})})})()},className:"text-muted/50 hover:text-muted h-5 w-5 p-0",title:j("agent.copyAllToolCalls"),children:e(jt,{className:"size-3"})})]})]}),e(vl,{messages:w,artifactRunId:P}),k&&e("div",{className:"px-3 py-0.5 space-y-0",children:w.map((n,r)=>{const a=N[r]??ll(n),i=n.details,l=hl(n),c=fl(n),d="string"==typeof n.message?n.message:"",m=T.has(a),u=_.has(a),p=ul(i);return t("div",{className:s("border-b border-gray-100 dark:border-gray-800 last:border-b-0",v),style:{opacity:m?0:1,transform:m?"translateX(-10px)":"translateX(0)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",transitionDelay:100*(r-(w.length-T.size))+"ms",animation:m?"slideInFade 0.4s ease-out forwards":"none",animationDelay:100*(r-(w.length-T.size))+"ms"},children:[t("div",{role:"button",tabIndex:0,"aria-expanded":u,className:s("flex items-start gap-2 py-1.5 text-xs cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800/50",b),onClick:()=>O(a),onKeyDown:o(()=>O(a)),title:d,children:[e("div",{className:"flex-shrink-0 pt-0.5",children:u?e(zt,{className:"size-3 text-muted"}):e(ct,{className:"size-3 text-muted cn-rtl-flip"})}),e("div",{className:"flex-1 min-w-0",children:d?e("span",{className:"text-foreground line-clamp-2",children:d}):t("span",{className:"text-muted italic",children:["Activity: ",l]})}),!u&&e("span",{className:s(c,"flex-shrink-0",x),children:l})]}),e(xl,{files:p,artifactRunId:P}),u&&(()=>{const r=i?.tool_status,a=al(i),o=il(i);return t("div",{className:s("ps-5 pe-3 pb-2 text-sm",y),children:[t("div",{className:"flex items-center gap-2 mb-1.5 flex-wrap",children:[e("span",{className:s(c,x),children:l}),r&&e("span",{className:s("text-[10px] px-1.5 py-0.5 rounded-md border font-medium",cl(r)),children:r}),e("span",{className:"text-[10px] text-muted/70",children:Er(n.timestamp).format("HH:mm:ss")})]}),a.length>0&&e("div",{className:"mb-1.5 space-y-0.5",children:a.map(([n,r])=>t("div",{className:"flex gap-1.5 text-xs",children:[t("span",{className:"text-muted font-medium flex-shrink-0",children:[sl(n),":"]}),e("span",{className:"text-foreground break-all",children:"object"==typeof r?JSON.stringify(r):String(r)})]},n))}),o.length>0&&t("div",{className:"mb-1.5 space-y-1",children:[e("div",{className:"text-[10px] uppercase tracking-wide text-muted/70 font-medium",children:j("agent.progress")}),o.map(n=>t("div",{className:"text-xs text-muted",children:[n.timestamp&&e("span",{className:"me-1 text-muted/60",children:Er(n.timestamp).format("HH:mm:ss")}),e("span",{children:n.message})]},ol(n)))]}),(()=>{const t="string"==typeof i?.observation?i.observation:void 0;return t&&t!==d?e("div",{className:"vprose prose prose-slate dark:prose-invert prose-p:leading-relaxed prose-p:my-1.5 max-w-none text-sm",children:e(Mr,{artifactRunId:P,children:t})}):null})()]})})()]},a)})}),e("style",{children:"\n @keyframes slideInFade {\n from {\n opacity: 0;\n transform: translateX(-10px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n "}),!k&&e("div",{className:"group",children:w.map((t,n)=>{const r=N[n]??ll(t);return e(gl,{message:t,isExpanded:_.has(r),onToggle:()=>O(r),artifactRunId:P,classNames:{toolBadgeClassName:x,itemClassName:v,itemHeaderClassName:b,itemContentClassName:y}},r)})})]})},(e,t)=>e.messages.length===t.messages.length&&(e.showPulsatingCircle===t.showPulsatingCircle&&(e.toolRunId===t.toolRunId&&(e.toolStatus===t.toolStatus&&(e.preambleText===t.preambleText&&(e.rootClassName===t.rootClassName&&(e.headerClassName===t.headerClassName&&(e.senderClassName===t.senderClassName&&(e.toolSummaryClassName===t.toolSummaryClassName&&(e.toolBadgeClassName===t.toolBadgeClassName&&(e.itemClassName===t.itemClassName&&(e.itemHeaderClassName===t.itemHeaderClassName&&(e.itemContentClassName===t.itemContentClassName&&e.messages.every((e,n)=>{return r=e,a=t.messages[n],r.timestamp===a.timestamp&&r.type===a.type&&r.message===a.message&&r.details===a.details&&r.workstream_id===a.workstream_id&&r.workflow_run_id===a.workflow_run_id;var r,a}))))))))))))));function yl({workstreams:n,activeWorkstream:a,onSelectWorkstream:i,count:o,completionStatus:l}){const{t:c}=Ke(),d=new Map;d.set("all",c("agent.allMessages")),d.set("main",c("agent.main")),n.forEach((e,t)=>{"all"!==t&&"main"!==t&&"research_france"!==t&&"statistics"!==t&&d.set(t,e)}),n=d;const m=Array.from(n.entries()).sort(([e],[t])=>"all"===e?-1:"all"===t?1:"main"===e?-1:"main"===t?1:e.localeCompare(t)),u=m.length>2;return e("div",u?{className:"flex overflow-x-auto space-x-1 mb-1 bg-muted border-b border-muted/20 sticky top-0 z-10",children:m.map(([n,c])=>t(r,{variant:"unstyled",className:s("px-2 py-1 text-xs font-medium whitespace-nowrap transition-colors flex items-center gap-1.5",a===n?"bg-info text-info border-b-2 border-info":"text-muted hover:bg-muted border-b-2 border-transparent"),onClick:()=>i(n),title:c.length>20?c:void 0,children:[c.length>20?`${c.substring(0,18)}...`:c,o?.has(n)&&o.get(n)>0&&t("div",{className:"flex items-center space-x-1",children:[e("span",{className:s("inline-flex items-center justify-center p-1 text-xs rounded-full",a===n?"bg-info text-info":"bg-muted text-muted"),children:o.get(n)}),l&&"all"!==n&&(l.get(n)?e(yt,{className:"size-3 text-success"}):e(Et,{className:"size-3 text-attention"}))]})]},n))}:{className:"py-0.5"})}function wl(e,t){return"all"===t?[...e]:"main"===t?e.filter(e=>"main"===Di(e)):e.filter(e=>Di(e)===t)}const Nl=e=>e.type===Qn.BATCH_PROGRESS&&!!e.details?.batch_id;function kl(e){if(null==e||""===e)return Date.now();const t="number"==typeof e?e:new Date(e).getTime();return Number.isFinite(t)?t:Date.now()}function Cl(e){const t=Date.now()-kl(e);return Math.max(0,Math.round(t/1e3))}function _l(e,t){const n=kl(t)-kl(e);return Math.max(0,Math.round(n/1e3))}function Sl(e){if(e<60)return`${e}s`;const t=Math.floor(e/60),n=e%60;return n>0?`${t}m ${n}s`:`${t}m`}function Tl(e){return e.message?"object"==typeof e.message?JSON.stringify(e.message,null,2):String(e.message).trim():""}function Il({message:n,details:r}){const{t:a}=Ke(),s=co(r.workstreamId,r.interaction),i=r.interaction?lo(r.interaction):"",o=i&&i!==s?i:void 0;return e("div",{className:"mx-auto w-full max-w-3xl px-1","data-workstream-id":r.workstreamId,children:t("div",{className:"flex items-start gap-3 border-b border-border/70 py-2 text-sm text-muted",children:[e(Pt,{className:"mt-0.5 size-4 shrink-0 text-muted","aria-hidden":"true"}),t("div",{className:"min-w-0 flex-1",children:[t("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[e("span",{className:"font-medium text-muted",children:a("agent.workstreams")}),e("span",{className:"min-w-0 truncate text-foreground/85",children:s})]}),o&&e("div",{className:"mt-0.5 truncate text-xs text-muted/75",children:o}),e("span",{className:"sr-only",children:Tl(n)})]})]})})}const zl=["agent-markdown vprose prose max-w-none break-words text-sm leading-6 text-foreground/80","prose-p:my-2 prose-p:leading-6 prose-li:my-0.5 prose-pre:my-3 prose-headings:tracking-normal","prose-headings:text-foreground prose-strong:text-foreground prose-code:text-foreground","prose-a:text-foreground prose-a:underline prose-a:decoration-muted prose-a:underline-offset-4","[&_p]:text-foreground/80 [&_li]:text-foreground/80 [&_li::marker]:text-muted"].join(" "),jl=/\[[^\]]+\]\((?:\/store\/(?:objects|collections)\/|store:|document:|document:\/\/|collection:)[^)]+\)/,Rl={table:function({node:n,className:r,children:a,...s}){const i=function(e){const t=Dl(e),n=Math.max(0,...t.map(e=>e.length));if(n<=1)return[];const r=function(e){const t=Dl(e),n=function(e){return Al(e,"tbody").flatMap(e=>Al(e,"tr").map(e=>Al(e,"td").map(e=>Pl(e).replace(/\s+/g," ").trim())))}(e),r=Math.max(0,...t.map(e=>e.length));if(r<=1)return new Set;const a=new Set;for(let e=0;e<r;e+=1){const t=n.map(t=>t[e]||"").map(e=>e.trim()).filter(Boolean);if(0===t.length)continue;const r=t.map(e=>e.length),s=Math.max(...r),i=r.reduce((e,t)=>e+t,0)/r.length,o=t.some(e=>/\S{12,}/.test(e));s<=16&&i<=10&&!o&&a.add(e)}if(a.size>=r)return new Set;return a}(e),a=Array.from({length:n},(e,n)=>{if(r.has(n))return 8;const a=t.map(e=>e[n]||"").map(e=>e.trim()).filter(Boolean);if(0===a.length)return 18;const s=a.map(e=>e.length),i=Math.max(...s),o=s.reduce((e,t)=>e+t,0)/s.length,l=function(e){return e.reduce((e,t)=>{const n=t.match(/\S+/g)||[];return Math.max(e,...n.map(e=>e.length))},0)}(a);return c=.7*o+.25*i+.45*l,d=18,m=90,Math.min(m,Math.max(d,c));var c,d,m}),s=a.reduce((e,t)=>e+t,0);return s<=0?[]:a.map((e,t)=>{const n=`${(e/s*100).toFixed(3)}%`;return{key:`agent-markdown-table-column-${t}`,compact:r.has(t),width:n}})}(n);return t("table",{...s,className:r,children:[i.length>0?e("colgroup",{children:i.map(t=>e("col",{className:t.compact?"agent-markdown-table-compact-col":void 0,style:{"--agent-markdown-table-column-width":t.width}},t.key))}):null,a]})}};function Pl(e){if(!e||"object"!=typeof e)return"";const t=e;return"string"==typeof t.value?t.value:Array.isArray(t.children)?t.children.map(Pl).join(""):""}function Al(e,t){if(!e||"object"!=typeof e)return[];const n=e.children;return Array.isArray(n)?n.filter(e=>{if(!e||"object"!=typeof e)return!1;const n=e;return t?n.tagName===t:"string"==typeof n.tagName}):[]}function Dl(e){return Al(e).filter(e=>"thead"===e.tagName||"tbody"===e.tagName).flatMap(e=>Al(e,"tr").map(e=>Al(e).filter(e=>"th"===e.tagName||"td"===e.tagName).map(e=>Pl(e).replace(/\s+/g," ").trim())))}function $l(e){if(null==e||"boolean"==typeof e)return 0;if("string"==typeof e||"number"==typeof e)return String(e).length;if(Array.isArray(e))return e.reduce((e,t)=>e+$l(t),0);if($e.isValidElement(e)){return $l(e.props.children)}return 0}function El(e,t){const[n,r]=Le(()=>Cl(e));return Ve(()=>{if(!t)return void r(Cl(e));const n=()=>r(Cl(e));n();const a=window.setInterval(n,1e3);return()=>window.clearInterval(a)},[t,e]),n}function Ll({children:n,workstreamId:r,className:a,artifactRunId:i,markdownComponents:o}){const{t:l}=Ke(),[c,d]=Le(!1),m=Ee(()=>$l(n),[n])>520,u="string"==typeof n||"number"==typeof n,p=u?String(n):"",h="string"==typeof n&&jl.test(n);return Ve(()=>{!m&&c&&d(!1)},[c,m]),e("div",{className:"mx-auto flex w-full max-w-3xl justify-end px-1",children:t("div",{className:s("max-w-[min(44rem,82%)] rounded-[1.35rem] bg-mixer-muted/35 px-4 py-2.5","text-sm font-normal leading-6 text-foreground/90 shadow-sm shadow-black/5 dark:bg-mixer-muted/15 dark:text-foreground/88 dark:shadow-none","break-words [overflow-wrap:anywhere]",a),"data-workstream-id":r,children:[e("div",{className:s(u&&!h&&"whitespace-pre-wrap",m&&!c&&"max-h-72 overflow-hidden [mask-image:linear-gradient(to_bottom,black_76%,transparent_100%)]"),children:h?e(Mr,{artifactRunId:i,components:o,className:s("agent-markdown vprose prose max-w-none break-words text-sm leading-6 text-foreground/90","prose-p:my-0 prose-p:leading-6 prose-a:text-foreground prose-a:underline prose-a:decoration-muted prose-a:underline-offset-4","[&_p+_p]:mt-2"),children:p}):n}),m&&t("button",{type:"button","aria-expanded":c,className:"mt-2 inline-flex items-center gap-1 text-sm font-medium text-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>d(e=>!e),children:[l(c?"agent.showLess":"agent.showMore"),e(zt,{className:s("size-4 transition-transform",c&&"rotate-180"),"aria-hidden":"true"})]})]})})}function Fl({message:r,onSendMessage:a,requestInputAnswered:i=!1,StoreLinkComponent:o,CollectionLinkComponent:l}){const c=Tl(r),d=fo(r),m=Di(r),u=r.workflow_run_id,p=Ee(()=>r.type===Qn.QUESTION?To(c):null,[c,r.type]),h=Ee(()=>({...Rl,a:({node:t,ref:n,...r})=>{const a=r.href||"";if(a.includes("/store/objects")){const t=a.split("/store/objects/")[1]||"";return o?e(o,{href:a,documentId:t,children:r.children}):e(Fr,{href:a,topLevelNav:!0,children:r.children})}if(a.includes("/store/collections")){const t=a.split("/store/collections/")[1]||"";return l?e(l,{href:a,collectionId:t,children:r.children}):e(Fr,{href:a,topLevelNav:!0,children:r.children})}return e("a",{...r,target:"_blank",rel:"noopener noreferrer"})}}),[o,l]);if(d)return e(Il,{message:r,details:d});if(r.type===Qn.QUESTION){const r=p?.body??c,a=p?.attachments??[];return t(n,{children:[a.length>0&&e("div",{className:"mx-auto flex w-full max-w-3xl justify-end px-1",children:e(Co,{items:a,artifactRunId:u,align:"end",variant:"message",StoreLinkComponent:o,CollectionLinkComponent:l})}),r&&e(Ll,{workstreamId:m,artifactRunId:u,markdownComponents:h,children:r})]})}const f=r.details;if(r.type===Qn.REQUEST_INPUT&&f?.ux){const t=f.ux;return e("div",{className:"mx-auto w-full max-w-3xl px-1",children:e(Ii,{question:c,options:t.options,variant:t.variant,multiSelect:t.multiSelect,onSelect:e=>a?.(e),onMultiSelect:e=>a?.(e.join(", ")),hideBorder:!0,compact:!0,answered:i})})}const g=r.type===Qn.ERROR||r.type===Qn.WARNING;return t("div",{className:"mx-auto w-full max-w-3xl px-1","data-workstream-id":m,children:[g&&e("div",{className:"mb-2 text-xs font-medium text-destructive",children:r.type===Qn.WARNING?"Warning":"Error"}),c&&e("div",{className:s(zl,g&&"rounded-lg border border-destructive/20 bg-destructive/5 px-3 py-2"),style:{overflowWrap:"anywhere"},children:e(Mr,{artifactRunId:u,onProposalSelect:e=>a?.(e),onProposalSubmit:e=>a?.(e),components:h,children:c})})]})}function Ol(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function Ml(e){return null!=e&&("string"==typeof e?e.trim().length>0:Array.isArray(e)?e.length>0:"object"!=typeof e||Object.keys(e).length>0)}function Ul(e){return null!=e&&!1!==e&&("string"!=typeof e||e.trim().length>0)}function Wl(e,t){const n=e&&Ol(e)?e.title:void 0;return"string"==typeof n&&n.trim()?n:t.replace(/[_-]+/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\b\w/g,e=>e.toUpperCase())}function Vl(e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Bl(t){return null==t||""===t?e("span",{className:"text-muted",children:"Not provided"}):"boolean"==typeof t?t?"Yes":"No":"number"==typeof t?String(t):"string"==typeof t?e("span",{className:"whitespace-pre-wrap",children:t}):Array.isArray(t)&&t.every(e=>"object"!=typeof e||null===e)?t.map(e=>Vl(e)).join(", "):e("pre",{className:"max-h-40 overflow-auto whitespace-pre-wrap rounded-md bg-background/55 px-2 py-1.5 font-mono text-[12px] leading-relaxed text-foreground/80",children:Vl(t)})}function ql(n,r,a){if(!Ml(n))return null;if(!Ol(n))return Bl(n);const s=function(e){if(!e||!Ol(e))return{};const t=e.properties;return Ol(t)?t:{}}(r),i=[...Object.keys(s),...Object.keys(n).filter(e=>!(e in s))].map(e=>({key:e,label:Wl(s[e],e),value:n[e]})).filter(e=>Ml(e.value));return 0===i.length?null:t("div",{className:"space-y-2 text-start",children:[a?e("div",{className:"text-xs font-medium uppercase tracking-normal text-muted",children:a}):null,e("dl",{className:"space-y-2",children:i.map(n=>t("div",{className:"grid gap-1 sm:grid-cols-[minmax(7rem,32%)_1fr] sm:gap-3",children:[e("dt",{className:"text-xs font-medium text-muted",children:n.label}),e("dd",{className:"min-w-0 break-words text-sm text-foreground",children:Bl(n.value)})]},n.key))})]})}function Hl({data:t,schema:n,title:r,template:a,prependFriendlyMessage:s,timestamp:i,isSummaryView:o,messageItemClassNames:l,messageStyleOverrides:c,StoreLinkComponent:d,CollectionLinkComponent:m}){const u=s?.trim()||("string"==typeof t?t.trim():""),p=a?.({data:t??s,schema:n,title:r});if(!Ul(p)&&u){const t={type:Qn.QUESTION,message:u,timestamp:kl(i),workflow_run_id:"",workstream_id:"main"};return o?e(Fl,{message:t,StoreLinkComponent:d,CollectionLinkComponent:m}):e(Wo,{...l,messageStyleOverrides:c,message:t})}const h=Ul(p)?p:ql(t,n,r);return Ul(h)?e(Ll,{className:"py-3",children:h}):null}function Gl({label:n,timestamp:r,className:a}){const i=function(e=!0){const[t,n]=Le(0);return Ve(()=>{if(!e)return;const t=window.setInterval(()=>{n(()=>Math.floor(Math.random()*oo.length))},4e3);return()=>window.clearInterval(t)},[e]),t}(),o=El(r,!0);return e("div",{className:s("mx-auto w-full max-w-3xl px-1",a),children:t("div",{className:"border-b border-border/70 pb-4 text-sm text-muted",children:[t("div",{className:"flex items-center gap-3",children:[e(no,{size:"sm",color:"blue"}),t("div",{className:"min-w-0",children:[t("div",{children:[e("span",{className:"font-medium",children:n}),t("span",{className:"ms-2 text-muted/75",children:["for ",Sl(o)]})]}),e("div",{className:"mt-1 truncate text-muted/80",children:oo[i]})]})]}),e("div",{className:"mt-3 ps-6",children:e(to,{color:"blue"})})]})})}const Jl=new Set(["account_id","activity_group_id","activity_id","channel_id","collection_id","document_id","display_role","event_class","id","object_id","project_id","run_id","streamed","tenant_id","thread_id","tool","tool_event","tool_iteration","tool_run_id","tool_use_id","tool_status","tools","message_to_human","progress_messages","workflow_run_id"]);function Kl(e){return Ol(e.details)?e.details:{}}function Yl(e){const t=[];if("string"==typeof e.tool&&e.tool.trim()&&t.push(e.tool.trim()),Array.isArray(e.tools))for(const n of e.tools)if("string"==typeof n&&n.trim())t.push(n.trim());else if(Ol(n)){const e="string"==typeof n.name?n.name:n.tool;"string"==typeof e&&e.trim()&&t.push(e.trim())}return t}const Ql=["query","path","file","file_name","fileName","filename","name","title","artifact","artifact_path","url","command"];function Zl(e){for(const t of Ql){const n=e[t];if("string"==typeof n&&n.trim())return{key:t,value:n.trim()};if("number"==typeof n||"boolean"==typeof n)return{key:t,value:String(n)}}}function Xl(e){switch(e){case"search":return"Search";case"read":return"Read";case"edit":return"Edit";case"command":return"Bash";case"skill":return"Skill";case"discover":default:return"Tool";case"think":return"Thought"}}function ec(e,t=160){const n=e.replace(/\s+/g," ").trim();return n.length>t?`${n.slice(0,t-1)}...`:n}const tc=["batch_id","activity_group_id","activity_id","tool_run_id","tool_use_id","streaming_id","chunk_index","tool_iteration","tool_event"];function nc(e,t="message"){const n=function(e){for(const t of tc){const n=e[t];if("string"==typeof n&&n.trim())return`${t}:${n.trim()}`;if("number"==typeof n||"boolean"==typeof n)return`${t}:${n}`}}(Kl(e)),r=ec(Tl(e),96);return[t,e.workstream_id||"main",e.workflow_run_id,e.timestamp,e.type,n??r].filter(Boolean).join(":")}function rc(e){if("single"===e.type)return nc(e.message);if("streaming"===e.type)return`streaming:${e.streamingId}:${e.startTimestamp}:${e.workstreamId||"main"}`;const t=e.messages[0],n=e.messages[e.messages.length-1],r=t?nc(t,"first"):e.firstTimestamp,a=n?nc(n,"last"):e.firstTimestamp;return["group",e.toolRunId,e.firstTimestamp,r,a].filter(Boolean).join(":")}function ac(e){const t=Vl(e).trim();return t.length>2400?`${t.slice(0,2400)}\n...`:t}function sc(e,t,n,r){if(null!=n&&""!==n&&!(Array.isArray(n)&&0===n.length||Ol(n)&&0===Object.keys(n).length))return{key:e,label:t,value:n,tone:r}}function ic(e){const t=Kl(e),n=new Set,r=[],a=Zl(t),s=(e,a,s)=>{for(const i of a){const a=sc(i,e,t[i],s);if(a)return n.add(i),void r.push(a)}};s("Query",["query"]),s("Input",["input","params","arguments","args"]),s("Output",["output","stdout","result","results","content","result_summary","observation","display_message"]),s("Files",["files","outputFiles"]),s("Error",["error","stderr"],"error"),a&&n.add(a.key);const i=function(e,t){const n=Object.entries(e).reduce((e,[n,r])=>(Jl.has(n)||t.has(n)||null==r||""===r||(e[n]=r),e),{});return Object.keys(n).length>0?n:void 0}(t,n);return 0===r.length&&i&&r.push({key:"details",label:"Details",value:i}),r}function oc(e,t){const n=Tl(e),r=Kl(e),a=function(e){const t=Kl(e),n=Yl(t).join(" ").toLowerCase(),r="string"==typeof t.tool?t.tool.toLowerCase():"",a=Tl(e).toLowerCase(),s=`${n} ${a}`;if(Ui(e))return"think";if(r.startsWith("learn_")||s.includes("learn_")||/\bskill\b/.test(a))return"skill";if("discover_tools"===r)return"discover";if(e.type===Qn.THOUGHT&&!r)return"think";const i=r||s;return i.includes("search")||i.includes("web")||i.includes("fetch")?"search":i.includes("read")||i.includes("document")||i.includes("file")?"read":i.includes("edit")||i.includes("write")||i.includes("patch")||i.includes("create")?"edit":i.includes("bash")||i.includes("shell")||i.includes("command")||i.includes("terminal")?"command":e.type===Qn.THOUGHT&&0===n.length?"think":"tool"}(e),s=Yl(r),i=function(e){const t=Zl(e);if(t)return t.value;const n=e.files??e.outputFiles;return Array.isArray(n)&&n.length>0?n.map(e=>Vl(e)).join(", "):void 0}(r),o="string"==typeof r.command&&r.command.trim()?r.command.trim():void 0,l=s[0]?s[0].replace(/[_-]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,e=>e.toUpperCase()):function(e){const t=e.details,n=t?.tool||"",r=Array.isArray(t?.tools)?t.tools.map(e=>"string"==typeof e?e:e.name||e.tool||"").filter(Boolean):[],a=[n,...r].join(" ").toLowerCase(),s=n.toLowerCase(),i="string"==typeof e.message?e.message.trim():"";return"tool_preamble"===t?.display_role?a.includes("search")||a.includes("web")||a.includes("fetch")?"Preparing search":r.length>0?"Preparing tools":"Thinking":s.includes("search")?"Searching":s.includes("fetch")||s.includes("web")?"Searching the web":s.includes("read")||s.includes("document")?"Reading":s.includes("edit")||s.includes("write")||s.includes("create")?"Editing":s.includes("bash")||s.includes("shell")||s.includes("command")?"Running command":i||"Using tool"}(e);const c="think"===a?n||l:ec("command"===a?n||o||l:i||n||l),d=n?"think"===a?n:ec(n,420):void 0,m=d&&d!==c;if(c||m)return{key:`${e.timestamp}-${r.activity_id||r.tool_run_id||t}`,kind:a,label:Xl(a),title:c,command:o,text:m?d:void 0,status:r.tool_status,sections:ic(e)}}function lc(e){const t=new Set,n=[];return function(e){const t=new Map,n=[];e.forEach((e,r)=>{const a=Kl(e);if(Ui(e))return void n.push({index:r,message:e});const s="string"==typeof a.activity_group_id&&a.activity_group_id.trim()?a.activity_group_id:void 0,i="string"==typeof a.tool_run_id&&a.tool_run_id.trim()?a.tool_run_id:void 0,o=s?`activity:${s}`:i?`run:${i}`:void 0;if(!o)return void n.push({index:r,message:e});const l=t.get(o);l?l.messages.push(e):t.set(o,{index:r,messages:[e]})});const r=Array.from(t.values()).map(({index:e,messages:t})=>{const n=[...t].sort((e,t)=>kl(e.timestamp)-kl(t.timestamp)),r=n[n.length-1],a=n.find(e=>"started"===Kl(e).tool_event),s=n.find(e=>Tl(e)),i=n.findLast(e=>Tl(e).startsWith("$ ")),o=n.findLast(e=>(e.type===Qn.ERROR||e.type===Qn.WARNING)&&Tl(e)),l={};for(const e of n)Object.assign(l,Kl(e));o&&void 0===l.error&&void 0===l.stderr&&(l.error=Tl(o)),i&&void 0===l.command&&(l.command=Tl(i));const c="string"==typeof a?.details?.message_to_human?a.details.message_to_human:"";return{index:e,message:{...r,message:c||(s?s.message:r.message),details:l}}});return[...n,...r].sort((e,t)=>e.index-t.index).map(({message:e})=>e)}(e).forEach((e,r)=>{const a=oc(e,r);if(!a)return;const s=`${a.kind}:${a.label}:${a.title}:${a.text??""}`;t.has(s)||(t.add(s),n.push(a))}),n}function cc({kind:t,status:n}){if("error"===n||"warning"===n)return e(Lt,{className:"size-3.5"});switch(t){case"search":return e(Wt,{className:"size-3.5"});case"read":return e(pt,{className:"size-3.5"});case"edit":return e(Ut,{className:"size-3.5"});case"command":return e(Ft,{className:"size-3.5"});case"skill":case"think":return e(Mt,{className:"size-3.5"});default:return e(Ot,{className:"size-3.5"})}}function dc({section:n}){const r=n.value,a="string"==typeof r||"number"==typeof r||"boolean"==typeof r,i="Files"===n.label&&Array.isArray(r),o="Output"===n.label;if(i){const t=Array.from(new Set(r.map(e=>Vl(e))));return e("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:t.map(t=>e("span",{className:"rounded-md bg-mixer-muted/15 px-1.5 py-0.5 font-mono text-[11px] text-muted",children:ec(t,64)},t))})}const l=s("text-xs font-medium","error"===n.tone?"text-destructive":"text-muted"),c=a&&!String(r).includes("\n")&&String(r).length<180?e("div",{className:s("break-words text-xs","error"===n.tone?"text-destructive":"text-foreground/75"),children:String(r)}):e("pre",{className:s("max-h-52 overflow-auto whitespace-pre-wrap rounded-lg px-3 py-2 font-mono text-[11px] leading-relaxed","error"===n.tone?"bg-destructive/5 text-destructive":"bg-mixer-muted/10 text-foreground/75"),children:ac(r)});return t("div",{className:"mt-2",children:[o?null:e("div",{className:s("mb-1",l),children:n.label}),c]})}function mc(e){return"command"===e.kind?"Shell":e.label}function uc(e){if("command"!==e.kind)return e.title;const t=e.command||e.title;return t.trim().startsWith("$")?t:`$ ${t}`}function pc({item:n}){const r=function(e){const t=[mc(e),uc(e)];e.text&&t.push(e.text);for(const n of e.sections)t.push(`${n.label}\n${ac(n.value)}`);return t.filter(Boolean).join("\n\n")}(n),a="command"===n.kind&&n.command?uc(n):void 0,i=a||0!==n.sections.length?void 0:n.text,[o,l]=Le("idle"),c=Me(void 0);Ve(()=>()=>{void 0!==c.current&&window.clearTimeout(c.current)},[]);return t("div",{className:"relative mt-2 rounded-lg border border-border/70 bg-mixer-muted/10 p-3 shadow-sm",children:[e("div",{className:"absolute end-2 top-2",children:e("button",{type:"button",className:s("inline-flex size-7 shrink-0 items-center justify-center rounded-md text-muted opacity-70 transition","hover:bg-mixer-muted/20 hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","copied"===o&&"text-success opacity-100","failed"===o&&"text-destructive opacity-100"),onClick:()=>{(async function(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}if("undefined"==typeof document)return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.insetInlineStart="-9999px",t.style.top="0",document.body.appendChild(t);try{return t.focus(),t.select(),document.execCommand("copy")}catch{return!1}finally{t.remove()}})(r).then(e=>{l(e?"copied":"failed"),void 0!==c.current&&window.clearTimeout(c.current),c.current=window.setTimeout(()=>l("idle"),2e3)})},"aria-label":"Copy tool details",title:"Copy tool details",children:e("copied"===o?yt:jt,{className:"size-4"})})}),t("div",{className:"pe-7",children:[a?e("pre",{className:"mb-3 whitespace-pre-wrap break-words font-mono text-sm leading-6 text-foreground/85",children:a}):null,i?e("div",{className:"mb-3 break-words text-sm leading-6 text-foreground/75",children:i}):null,n.sections.length>0?e("div",{className:"space-y-3",children:n.sections.map(t=>e(dc,{section:t},t.key))}):null]}),"failed"===o?e("div",{className:"mt-3 text-xs text-destructive",children:"Copy failed"}):null]})}function hc({item:n}){const r="error"===n.status||"warning"===n.status,a=Boolean(n.command||n.text||n.sections.length),[i,o]=Le(!1);return t("div",{className:"min-w-0",children:[t("button",{type:"button",className:s("grid w-full grid-cols-[1.5rem_1fr_auto] gap-2 text-start outline-none transition-colors","focus-visible:text-foreground focus-visible:underline focus-visible:underline-offset-4",a?"cursor-pointer hover:text-foreground":"cursor-default"),onClick:()=>a&&o(e=>!e),"aria-expanded":a?i:void 0,disabled:!a,children:[e("span",{className:s("flex size-5 items-center justify-center pt-0.5",r?"text-attention":"text-muted"),children:e(cc,{kind:n.kind,status:n.status})}),t("span",{className:"flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[e("span",{className:"text-sm font-medium text-muted",children:n.label}),e("span",{className:"min-w-0 break-words text-sm text-muted",children:n.title})]}),a?e(zt,{className:s("mt-0.5 size-4 shrink-0 text-muted opacity-50 transition-transform",!i&&"-rotate-90"),"aria-hidden":"true"}):null]}),a&&i?e("div",{className:"mt-1",children:e(pc,{item:n})}):null]})}function fc({item:t,artifactRunId:n}){const r=t.text??t.title;return e("div",{className:"min-w-0 py-1 text-sm leading-6 text-foreground/85",children:e("div",{className:zl,style:{overflowWrap:"anywhere"},children:e(Mr,{artifactRunId:n,components:Rl,children:r})})})}function gc({items:t,artifactRunId:n}){return e("div",{className:"mt-3",children:e("div",{className:"space-y-3",children:t.map(t=>"think"===t.kind?e(fc,{item:t,artifactRunId:n},t.key):e(hc,{item:t},t.key))})})}function xc({text:t,artifactRunId:n,workstreamId:r}){return e("div",{className:"mx-auto w-full max-w-3xl px-1","data-workstream-id":r,children:e("div",{className:zl,style:{overflowWrap:"anywhere"},children:e(Mr,{artifactRunId:n,components:Rl,children:t})})})}function vc({label:n,status:r,timestamp:a,durationSeconds:i,showElapsed:o,details:l,emptyDetailsLabel:c,defaultExpanded:d=!1,className:m,artifactRunId:u}){const[p,h]=Le(d),f=El(a,o&&void 0===i),g=i??f,x=o&&void 0!==a,v="error"===r||"warning"===r,b=Ee(()=>lc(l??[]),[l]),y=b.length>0||Boolean(c);return e("div",{className:s("mx-auto w-full max-w-3xl px-1",m),children:t("div",{className:s("border-b border-border/70 pb-3 text-sm",v?"text-attention":"text-muted"),children:[t("button",{type:"button",className:s("inline-flex max-w-full items-center gap-2 text-start outline-none","focus-visible:text-foreground focus-visible:underline focus-visible:underline-offset-4",y?"cursor-pointer hover:text-foreground":"cursor-default"),onClick:()=>y&&h(e=>!e),"aria-expanded":y?p:void 0,disabled:!y,children:[e("span",{className:"min-w-0 truncate font-medium",children:n}),x?t("span",{className:"shrink-0 text-muted/75",children:["for ",Sl(g)]}):null,y?e(p?zt:ct,{className:"size-4 shrink-0 opacity-50"}):null]}),y&&p?b.length>0?e(gc,{items:b,artifactRunId:u}):t("div",{className:"mt-3 flex items-center gap-2 text-sm text-muted",children:[e(Ft,{className:"size-4 opacity-70","aria-hidden":"true"}),e("span",{children:c})]}):null]})})}function bc({children:n,status:r}){const a="error"===r?"bg-destructive":"warning"===r?"bg-attention":"completed"===r?"bg-success":"bg-muted";return t("div",{className:"relative ps-7",children:[e("div",{className:"absolute start-2 top-0 bottom-0 w-px bg-border"}),e("div",{className:s("absolute start-[5px] top-4 size-2.5 rounded-full ring-4 ring-background",a)}),n]})}class yc extends qe{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error("Message render error:",e),{hasError:!0,error:e}}componentDidUpdate(e){this.state.hasError&&e.children!==this.props.children&&this.setState({hasError:!1,error:void 0})}render(){return this.state.hasError?t("div",{className:"border-s-4 border-s-destructive bg-destructive/10 px-4 py-2 my-2 rounded-e",children:[e("p",{className:"text-sm text-destructive font-medium",children:Ye.getFixedT(null,Qe)("agent.failedToRenderMessage")}),e("p",{className:"text-xs text-muted mt-1 truncate",children:this.state.error?.message||"Unknown error"})]}):this.props.children}}const wc=(e,t)=>{if(e.type!==t.type)return!1;if(e.message!==t.message)return!1;const n=e.details,r=t.details;if("completed"!==n?.tool_status||"completed"!==r?.tool_status)return!1;const a="number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime();return("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())-a<2e3},Nc=$e.memo(function({messages:r,bottomRef:a,viewMode:i="stacked",isCompleted:o=!1,streamingMessages:l=new Map,onSendMessage:c,messageItemClassNames:d,messageStyleOverrides:m,toolCallGroupClassNames:u,hideToolCallsInViewMode:p,streamingMessageClassNames:h,batchProgressPanelClassNames:f,artifactRunId:g,hideWorkstreamTabs:x,workingIndicatorClassName:v,messageListClassName:b,StoreLinkComponent:y,CollectionLinkComponent:w,prependFriendlyMessage:N,initialRequestData:k,initialRequestSchema:C,initialRequestTitle:_,initialRequestTemplate:S,hiddenMessageTypes:T,disableAutoScroll:I=!1,renderRequestInputControls:z=!0}){g||console.warn("[AllMessagesMixed] artifactRunId prop is missing!");const{t:j}=Ke(),R=Me(null),[P,A]=Le("all"),D=Me(0),$=Me(null),E=Me(!1),L=Me(!1),F=l.size>0,O="sliding"===i;Ve(()=>{const e=R.current;if(!e)return;const t=()=>{if(L.current)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e,a=n-t-r;E.current=a>80};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[]);const M=Ee(()=>{let e=0;return l.forEach(t=>{e+=t.text?.length||0}),Math.floor(e/200)},[l]),U=Ue(()=>{a.current&&(L.current=!0,a.current.scrollIntoView({behavior:F?"instant":"smooth"}),D.current=Date.now(),requestAnimationFrame(()=>{L.current=!1})),$.current=null},[a,F]);Ve(()=>{if(r.length,l.size,I)return;if(E.current)return;const e=Date.now()-D.current;if(e>=100)U();else if(null===$.current){const t=100-e;$.current=window.setTimeout(U,t)}return()=>{null!==$.current&&(clearTimeout($.current),$.current=null)}},[r.length,l.size,M,U,I]);const W=$e.useMemo(()=>{const e=[...T?.length?r.filter(e=>!T.includes(e.type)):r].sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),t=[];for(const n of e){const e=t[t.length-1];e&&Oi(e,n)||(e&&wc(e,n)||t.push(n))}return t},[r,T]),V=$e.useMemo(()=>{const e=function(e){const t=new Map,n=Ye.getFixedT(null,Qe);return t.set("all",n("agent.allMessages")),t.set("main",n("agent.main")),e.forEach(e=>{e.workstream_id&&"main"!==e.workstream_id&&"all"!==e.workstream_id&&!t.has(e.workstream_id)&&t.set(e.workstream_id,e.workstream_id)}),t}(W);return e},[W]),B=$e.useMemo(()=>{const e=new Map;e.set("all",W.length);const t=wl(W,"main");return e.set("main",t.length),W.forEach(t=>{const n=Di(t);"main"!==n&&e.set(n,(e.get(n)||0)+1)}),e},[W]),q=$e.useMemo(()=>"all"===P?W:wl(W,P),[W,P]),H=$e.useMemo(()=>Qi(q),[q]),G=$e.useMemo(()=>{if(z)return;const e=Xi(q);return e?Yi(e):void 0},[q,z]),J=$e.useCallback(e=>e.type===Qn.REQUEST_INPUT&&G===Yi(e),[G]),K=Me(Date.now()),Y=Boolean(N?.trim())||Ml(k)||void 0!==S,Q=Ee(()=>q.some(e=>e.type===Qn.QUESTION),[q]),Z=Y&&!Q,X=Ee(()=>q.reduce((e,t)=>Math.max(e,kl(t.timestamp)),-1/0),[q]),ee=Ee(()=>q.reduce((e,t)=>qo(t)?e:Math.max(e,kl(t.timestamp)),-1/0),[q]),te=Ee(()=>!function(e){const t=e.filter(e=>"main"===Di(e)),n=t[t.length-1]??e[e.length-1];return n?.type===Qn.QUESTION}(q)&&(o||!Pi(q)),[q,o]),{completeStreaming:ne,incompleteStreaming:re}=$e.useMemo(()=>{const e=new Map,t=[];return l.forEach((n,r)=>{if(P&&"all"!==P){const e=n.workstreamId||"main";if(P!==e)return}n.startTimestamp<=ee?e.set(r,n):n.text&&t.push({id:r,data:n})}),{completeStreaming:e,incompleteStreaming:t}},[l,P,ee]),ae=$e.useMemo(()=>nl(q,ne),[q,ne]),se=Ee(()=>{if(re.some(({data:e})=>e.text.trim().length>0))return Number.POSITIVE_INFINITY;const e=re.reduce((e,{data:t})=>Math.max(e,t.startTimestamp),-1/0);return Math.max(X,e)},[re,X]),ie=$e.useMemo(()=>tl(ae,te,se),[ae,te,se]),oe=$e.useMemo(()=>function(e){const t=[];let n=null;const r=()=>{n&&(t.push({type:"tool_group",messages:n.messages,firstTimestamp:n.firstTimestamp,toolRunId:n.toolRunId,toolStatus:n.toolStatus,preambleText:n.preambleText,preambleMessage:n.preambleMessage}),n=null)};for(const a of e)"tool_group"===a.type?n?(n.messages=[...n.messages,...a.messages],n.toolStatus=Gi(n.toolStatus,a.toolStatus),!n.toolRunId&&a.toolRunId&&(n.toolRunId=a.toolRunId),!n.preambleMessage&&a.preambleMessage&&(n.preambleMessage=a.preambleMessage,n.preambleText=a.preambleText)):n={messages:[...a.messages],firstTimestamp:a.firstTimestamp,toolRunId:a.toolRunId,toolStatus:a.toolStatus,preambleText:a.preambleText,preambleMessage:a.preambleMessage}:(r(),t.push(a));return r(),t}(function(e,t,n){const r=new Map,a=new Map,s=new Map,i=[];for(const t of e){const e=Hi(t);if(t.type===Qn.REQUEST_INPUT||t.type===Qn.BATCH_PROGRESS)i.push(t);else if(Ui(t))i.push(t);else if(e)r.has(e)||r.set(e,{messages:[],firstTimestamp:Ai(t.timestamp)}),r.get(e)?.messages.push(t);else if(Wi(t)){const e=Bi(t),n=Vi(t);void 0!==e?(a.has(e)||a.set(e,{messages:[],firstTimestamp:Ai(t.timestamp)}),a.get(e)?.messages.push(t)):n?(s.has(n)||s.set(n,{messages:[],firstTimestamp:Ai(t.timestamp)}),s.get(n)?.messages.push(t)):i.push(t)}else i.push(t)}const o=[];r.forEach((e,t)=>{o.push({kind:"activity_group",activityGroupId:t,messages:e.messages,timestamp:e.firstTimestamp})}),a.forEach((e,t)=>{o.push({kind:"iteration_group",iteration:t,messages:e.messages,timestamp:e.firstTimestamp})}),s.forEach((e,t)=>{o.push({kind:"tool_run",toolRunId:t,messages:e.messages,timestamp:e.firstTimestamp})});for(const e of i)o.push({kind:"message",message:e,timestamp:Ai(e.timestamp)});t.forEach((t,r)=>{if(t.text&&!Fi(t,e)){if(n&&"all"!==n){const e=t.workstreamId||"main";if(n!==e)return}o.push({kind:"streaming",streamingId:r,data:t,timestamp:t.startTimestamp})}}),o.sort((e,t)=>{const n="streaming"===e.kind&&!e.data.isComplete,r="streaming"===t.kind&&!t.data.isComplete;return n&&!r?1:r&&!n?-1:e.timestamp-t.timestamp});const l=[];let c=[];const d=()=>{c.length>0&&(1!==c.length||Ui(c[0])?l.push({type:"tool_group",messages:c,firstTimestamp:Ai(c[0].timestamp)}):l.push({type:"single",message:c[0]}),c=[])};for(const e of o)if("streaming"===e.kind)d(),l.push({type:"streaming",streamingId:e.streamingId,text:e.data.text,workstreamId:e.data.workstreamId,startTimestamp:e.data.startTimestamp,isComplete:e.data.isComplete});else if("activity_group"===e.kind){d();const t=[...e.messages].sort((e,t)=>Ai(e.timestamp)-Ai(t.timestamp)),n=t.reduce((e,t)=>qi(t)||e,void 0);l.push({type:"tool_group",messages:t,firstTimestamp:e.timestamp,toolRunId:e.activityGroupId,toolStatus:n})}else if("iteration_group"===e.kind){d();const t=[...e.messages].sort((e,t)=>Ai(e.timestamp)-Ai(t.timestamp)),n=t.reduce((e,t)=>qi(t)||e,void 0);l.push({type:"tool_group",messages:t,firstTimestamp:e.timestamp,toolStatus:n})}else if("tool_run"===e.kind){d();const t=[...e.messages].sort((e,t)=>Ai(e.timestamp)-Ai(t.timestamp)),n=t.reduce((e,t)=>qi(t)||e,void 0);l.push({type:"tool_group",messages:t,firstTimestamp:e.timestamp,toolRunId:e.toolRunId,toolStatus:n})}else Wi(e.message)?c.push(e.message):(d(),l.push({type:"single",message:e.message}));return d(),l}(q,ne,P)),[q,ne,P]),le=Ee(()=>!te,[te]),ce=function(e,t,n){if(!t||n)return!1;if(e.some(e=>"work"===e.type&&e.isActive))return!1;const r=e[e.length-1];return!!r&&("work"===r.type||r.message.type===Qn.QUESTION)}(ie,le,re.length>0),de=function(e){const t=e[e.length-1];return!!t&&"message"===t.type&&t.message.type===Qn.QUESTION&&1===e.length}(ie)?j("agent.preparing"):j("agent.working"),me=0===q.length&&Y&&le&&0===re.length,ue=Ee(()=>function(e,t,n){const r=e[e.length-1];return r?"work"===r.type?r.endTimestamp??r.startTimestamp:r.message.timestamp??n:t.reduce((e,t)=>{const n=Go(t.timestamp);return!Number.isFinite(n)||n>=e.ms?e:{timestamp:t.timestamp,ms:n}},{ms:Number.POSITIVE_INFINITY}).timestamp??n}(ie,ae,K.current),[ie,ae]),pe=Me(ue),he=Me(!1),fe=Ee(()=>{if(!ce)return ue;const e=kl(ue),t=kl(pe.current);return!he.current||e<t?ue:pe.current},[ue,ce]);Ve(()=>{pe.current=fe,he.current=ce},[fe,ce]);const ge=Ee(()=>{const e=new Map,t=new Map;W.forEach(e=>{const n=Di(e);t.has(n)||t.set(n,[]),t.get(n)?.push(e)});for(const[n,r]of t.entries())if(r.length>0){const t=r.some(e=>{if([Qn.COMPLETE,Qn.IDLE,Qn.REQUEST_INPUT,Qn.TERMINATED].includes(e.type))return!0;if(e.type===Qn.UPDATE&&e.details){const t=e.details;return"completed"===t.workstream_event||"completed"===t.status||"canceled"===t.status}return!1});e.set(n,t)}return e},[W]);return t("div",{ref:R,tabIndex:0,className:"flex-1 min-h-0 h-full w-full max-w-full overflow-y-auto overflow-x-hidden px-1.5 sm:px-2.5 lg:px-3 flex flex-col relative focus:outline-none","data-testid":"all-messages-mixed","data-message-count":r.length,"data-streaming-count":l.size,"data-view-mode":i,children:[e("style",{children:"\n /* Better vertical rhythm for markdown */\n .vprose > * + * {\n margin-top: 0.625rem;\n }\n .vprose > h1 + *,\n .vprose > h2 + *,\n .vprose > h3 + * {\n margin-top: 0.375rem;\n }\n /* Tables should read like part of the conversation, not a separate app grid. */\n .vprose table {\n margin-top: 0.875rem;\n margin-bottom: 0.875rem;\n border-collapse: collapse;\n width: 100%;\n background: transparent;\n }\n .vprose th,\n .vprose td {\n padding: 0.5rem 0.625rem;\n border: 0;\n border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);\n background: transparent;\n text-align: left;\n }\n .vprose thead th {\n background: transparent;\n font-weight: 600;\n color: var(--muted);\n font-size: 0.75rem;\n text-transform: none;\n letter-spacing: 0;\n }\n .vprose tbody tr:hover {\n background: transparent;\n }\n /* Dark mode table styles */\n .dark .vprose th,\n .dark .vprose td {\n border-color: color-mix(in oklch, var(--border) 70%, transparent);\n }\n .dark .vprose thead th {\n background: transparent;\n color: var(--muted);\n }\n .dark .vprose tbody tr:hover {\n background: transparent;\n }\n /* Horizontal rules as section dividers */\n .vprose hr {\n margin-top: 1rem;\n margin-bottom: 1rem;\n border-color: var(--gray-5, #d1d5db);\n }\n /* Better blockquote styling */\n .vprose blockquote {\n margin-top: 0.875rem;\n margin-bottom: 0.875rem;\n padding-left: 1rem;\n border-left-width: 3px;\n border-left-color: var(--gray-6, #d1d5db);\n color: var(--gray-11, #6b7280);\n }\n /* Code blocks */\n .vprose pre {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n padding: 0.75rem;\n border-radius: 0.5rem;\n overflow-x: auto;\n background-color: var(--color-muted-background, #f3f4f6);\n color: var(--color-foreground, #1f2937);\n }\n .vprose pre code {\n color: inherit;\n }\n .dark .vprose pre {\n color: var(--color-foreground, #f9fafb);\n }\n\n /* Summary chat markdown: keep structure, but match the app's quieter conversation surface. */\n .agent-markdown {\n color: color-mix(in oklch, var(--foreground) 78%, transparent);\n font-size: 0.875rem;\n line-height: 1.625;\n overflow-x: auto;\n }\n .agent-markdown > * + * {\n margin-top: 0.65rem;\n }\n .agent-markdown p {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n }\n .agent-markdown h1,\n .agent-markdown h2,\n .agent-markdown h3,\n .agent-markdown h4 {\n margin-top: 1.2rem;\n margin-bottom: 0.45rem;\n color: var(--foreground);\n font-weight: 650;\n letter-spacing: 0;\n line-height: 1.3;\n }\n .agent-markdown h1 {\n font-size: 1.2rem;\n }\n .agent-markdown h2 {\n font-size: 1.05rem;\n }\n .agent-markdown h3,\n .agent-markdown h4 {\n font-size: 0.95rem;\n }\n .agent-markdown h1:first-child,\n .agent-markdown h2:first-child,\n .agent-markdown h3:first-child,\n .agent-markdown h4:first-child {\n margin-top: 0;\n }\n .agent-markdown hr {\n margin: 1.15rem 0;\n border: 0;\n border-top: 1px solid var(--border);\n opacity: 0.65;\n }\n .agent-markdown ul,\n .agent-markdown ol {\n margin-top: 0.55rem;\n margin-bottom: 0.55rem;\n padding-left: 1.25rem;\n }\n .agent-markdown li {\n margin-top: 0.2rem;\n margin-bottom: 0.2rem;\n padding-left: 0.1rem;\n color: inherit;\n }\n .agent-markdown li::marker {\n color: var(--muted);\n }\n .agent-markdown strong {\n color: var(--foreground);\n font-weight: 600;\n }\n .agent-markdown em {\n color: color-mix(in oklch, var(--foreground) 72%, transparent);\n }\n .agent-markdown a {\n color: var(--foreground);\n text-decoration-color: var(--muted);\n text-underline-offset: 3px;\n }\n .agent-markdown blockquote {\n margin-top: 0.85rem;\n margin-bottom: 0.85rem;\n padding-left: 0.875rem;\n border-left: 2px solid var(--border);\n color: var(--muted);\n font-style: normal;\n }\n .agent-markdown :not(pre) > code {\n border: 1px solid var(--border);\n border-radius: 0.375rem;\n background: var(--muted-background);\n color: var(--foreground);\n padding: 0.1rem 0.35rem;\n font-size: 0.8125em;\n font-weight: 500;\n }\n .agent-markdown pre {\n margin-top: 0.85rem;\n margin-bottom: 0.85rem;\n max-height: 32rem;\n overflow: auto;\n border: 1px solid var(--border);\n border-radius: 0.75rem;\n background: var(--muted-background);\n color: var(--foreground);\n padding: 0.875rem;\n font-size: 0.8125rem;\n line-height: 1.55;\n }\n .agent-markdown pre code {\n border: 0;\n background: transparent;\n color: inherit;\n padding: 0;\n font-size: inherit;\n }\n .agent-markdown table {\n display: table;\n width: 100%;\n max-width: 100%;\n margin: 0.9rem 0 1rem;\n border: 0;\n border-collapse: collapse;\n border-spacing: 0;\n font-size: 0.8125rem;\n table-layout: fixed;\n background: transparent;\n }\n .agent-markdown thead {\n background: transparent;\n }\n .agent-markdown th,\n .agent-markdown td {\n border: 0;\n border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);\n background: transparent;\n padding: 0.55rem 0.75rem;\n text-align: left;\n vertical-align: top;\n overflow-wrap: anywhere;\n word-break: normal;\n white-space: normal;\n }\n .agent-markdown th {\n color: var(--muted);\n font-size: 0.75rem;\n font-weight: 600;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n }\n .agent-markdown td {\n color: inherit;\n }\n .agent-markdown th + th,\n .agent-markdown td + td {\n padding-inline-start: 1.75rem;\n }\n .agent-markdown th:first-child,\n .agent-markdown td:first-child {\n min-width: 0;\n width: auto;\n white-space: normal;\n }\n .agent-markdown col {\n width: var(--agent-markdown-table-column-width);\n }\n .agent-markdown .agent-markdown-table-compact-col {\n width: clamp(4.75rem, var(--agent-markdown-table-column-width), 7rem);\n }\n .agent-markdown tr:last-child td {\n border-bottom: 0;\n }\n .agent-markdown tbody tr:nth-child(even) {\n background: transparent;\n }\n .agent-markdown tbody tr:hover {\n background: transparent;\n }\n "}),"stacked"===i&&e("div",{className:s("sticky top-0 z-10",x&&"hidden"),children:e(yl,{workstreams:V,activeWorkstream:P,onSelectWorkstream:A,count:B,completionStatus:ge})}),0!==q.length||Y||O&&ce?t("div",{className:s("flex-1 flex flex-col justify-start w-full max-w-full",O?"gap-6 px-2 py-6 sm:px-4":"gap-3 pb-4",b),children:[Z&&e(Hl,{data:k,schema:C,title:_,template:S,prependFriendlyMessage:N,timestamp:q[0]?.timestamp??Date.now(),isSummaryView:O,messageItemClassNames:d,messageStyleOverrides:m,StoreLinkComponent:y,CollectionLinkComponent:w},"initial-request"),me&&e(Gl,{label:de,timestamp:fe,className:v}),t(n,"stacked"===i?{children:[oe.map((t,n)=>{const r=n===oe.length-1;if("tool_group"===t.type){const n=t.messages[t.messages.length-1],a="completed"===t.toolStatus||"error"===t.toolStatus||"warning"===t.toolStatus,l=!o&&r&&!Ri.includes(n.type)&&!a;return p?.includes(i)?null:e(bc,{status:t.toolStatus,children:e(yc,{children:e(bl,{...u,messages:t.messages,showPulsatingCircle:l,toolRunId:t.toolRunId,toolStatus:t.toolStatus,preambleText:t.preambleText,preambleMessage:t.preambleMessage,rootClassName:s("rounded-lg border border-border bg-background/60 shadow-none",u?.rootClassName),headerClassName:s("px-3 py-2",u?.headerClassName),itemHeaderClassName:s("hover:bg-mixer-muted/20",u?.itemHeaderClassName)})})},rc(t))}if("streaming"===t.type)return e(bc,{children:e(Vo,{...h,text:t.text,workstreamId:t.workstreamId,isComplete:t.isComplete,timestamp:t.startTimestamp,artifactRunId:g,cardClassName:s("rounded-lg border border-border bg-background/60 shadow-none",h?.cardClassName)})},rc(t));{const n=t.message;if(J(n))return null;const a=!o&&r&&!Ri.includes(n.type);return Nl(n)?e(yc,{children:e(Io,{message:n,batchData:n.details,isRunning:!n.details.completed_at,...f})},`batch-${n.details.batch_id}-${n.timestamp}`):e(bc,{status:"message",children:e(yc,{children:e(Wo,{...d,message:n,showPulsatingCircle:a,onSendMessage:c,requestInputAnswered:Zi(n,H),cardClassName:s("rounded-lg border border-border bg-background/60 shadow-none",d?.cardClassName),headerClassName:s("px-3 py-2",d?.headerClassName),contentClassName:s("bg-transparent",d?.contentClassName),messageStyleOverrides:m,StoreLinkComponent:y,CollectionLinkComponent:w})})},nc(n))}}),re.map(({id:t,data:n})=>e(bc,{children:e(Vo,{...h,text:n.text,workstreamId:n.workstreamId,isComplete:n.isComplete,timestamp:n.startTimestamp,artifactRunId:g,cardClassName:s("rounded-lg border border-border bg-background/60 shadow-none",h?.cardClassName)})},`streaming-incomplete-${t}`)),le&&0===re.length&&!me&&e(bc,{children:t("div",{className:s("flex items-center gap-2 py-2 text-sm text-muted",v),children:[e(no,{size:"sm",color:"blue"}),e("span",{children:j("agent.working")})]})})]}:{children:[ie.map(t=>{if("work"===t.type){if(p?.includes(i))return null;const a=function(e){return e.length>0&&e.every(Ho)}(t.messages);return e(vc,{label:(n=t.status,r=t.isActive,function(e,t){return"error"===e?"Work needs attention":"warning"===e?"Work had warnings":t?"Working":"Worked"}(n,r)),status:t.status,timestamp:t.startTimestamp,durationSeconds:t.isActive?void 0:_l(t.startTimestamp,t.endTimestamp),showElapsed:!0,details:a?void 0:t.messages,defaultExpanded:t.isActive&&!a,className:v},`work-${t.id}-${t.isActive?"active":"done"}-${t.status}`)}var n,r;const a=t.message;return J(a)?null:Nl(a)?e(yc,{children:e(Io,{message:a,batchData:a.details,isRunning:!a.details.completed_at,...f})},nc(a,"batch")):e(yc,{children:e(Fl,{message:a,onSendMessage:c,requestInputAnswered:Zi(a,H),StoreLinkComponent:y,CollectionLinkComponent:w})},nc(a,"summary"))}),re.map(({id:t,data:n})=>e(xc,{text:n.text,workstreamId:n.workstreamId,artifactRunId:g},`streaming-incomplete-${t}`)),ce&&!me&&e(vc,{label:de,status:"running",timestamp:fe,showElapsed:!0,className:v})]}),e("div",{ref:a,className:"h-2"})]}):"all"===P&&le&&0===re.length?e("div",{className:"flex-1 px-2 py-6 sm:px-4",children:e(Gl,{label:j("agent.preparing"),timestamp:K.current,className:v})}):e("div",{className:"flex items-center justify-center h-full text-center py-8",children:e("div",{className:"flex items-center px-3 py-2 text-sm text-muted",children:j("all"===P?"agent.waitingForAgentResponse":"agent.noMessagesInWorkstream")})})]})});function kc(e,t){if(0===t)return"live";if("live"===e)return"live";const n=ns(e,t);return n>=t-1?"live":n+1}function Cc(e){return function(e){let t=0,n=e.length;for(;t<n&&"-"===e[t];)t++;for(;n>t&&"-"===e[n-1];)n--;return e.slice(t,n)}(e.trim().replace(/[^a-z0-9-_]+/gi,"-")).slice(0,80)}function _c({fixture:n,cursor:a,initialCursor:i,onCursorChange:o,autoStepMs:l,repeat:c=1,viewMode:d,className:m,title:u}){const{t:p}=Ke(),h=n.messages,f=i??(h.length>0?0:"live"),[g,x]=Le(()=>ts(f,h.length)),v=a??g,b=d??"sliding",[y,w]=Le(Boolean(l)),[N,k]=Le(0),C=Me(null),_=Ee(()=>ss(h,v,!0),[v,h]),S=_.displayedMessages,T=Ee(()=>{return e=function(e,t){return e?.find(e=>e.cursor===t)}(n.streamingFrames,_.cursor),e?new Map(e.streamingMessages.map((e,t)=>[e.id??e.activityId??`stream-${t}`,e])):new Map;var e},[n.streamingFrames,_.cursor]),I=Ue(e=>{const t=ts(e,h.length);void 0===a&&x(t),o?.(t)},[a,h.length,o]);Ve(()=>{const e=ts(v,h.length);e!==v&&I(e)},[v,h.length,I]),Ve(()=>{if(!l||l<=0||!y)return;const e=window.setInterval(()=>{const e=kc(v,h.length);"live"!==e||"live"!==v?I(e):k(e=>{const t=e+1;return c>0&&t>=c?(w(!1),t):(I(h.length>0?0:"live"),t)})},l);return()=>window.clearInterval(e)},[l,v,y,h.length,c,I]);const z=S.length>0&&!Pi(S),j=Ee(()=>Xi(S),[S]),R=u??n.metadata?.title??p("agent.rewind.fixtureTitle"),P=Ue(()=>{const e={...n,metadata:{...n.metadata,title:R,exported_at:n.metadata?.exported_at??(new Date).toISOString(),message_count:h.length}},t=n.metadata?.agent_run_id??"fixture";!function(e,t){const n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"}),r=URL.createObjectURL(n),a=document.createElement("a");a.href=r,a.download=e,document.body.appendChild(a),a.click(),a.remove(),URL.revokeObjectURL(r)}(`${Cc(R)||"agent-chat"}-${Cc(t)}.json`,e)},[n,h.length,R]),A=Ue(()=>{I(kc(_.cursor,h.length))},[h.length,_.cursor,I]);return t("div",{className:s("flex h-full min-h-0 w-full flex-col bg-background text-foreground",m),"data-agent-test-playback-enabled":!0,"data-agent-playback-cursor":_.cursor,"data-agent-live-message-count":h.length,"data-agent-rendered-message-count":_.renderedMessageCount,"data-agent-replay-playing":y||void 0,"data-agent-replay-loop":N,children:[t("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b border-border px-3 py-2",children:[t("div",{className:"min-w-0",children:[e("div",{className:"truncate text-sm font-medium",children:R}),e("div",{className:"text-xs text-muted",children:p("agent.rewind.fixtureMeta",{messageCount:h.length,loops:N})})]}),t("div",{className:"flex items-center gap-2",children:[t(r,{type:"button",variant:"secondary",size:"sm",onClick:P,children:[e(Vt,{className:"size-4"}),e("span",{className:"ms-1.5",children:p("agent.rewind.exportFixture")})]}),l&&l>0&&t(r,{type:"button",variant:"secondary",size:"sm",onClick:()=>w(e=>!e),children:[e(y?Bt:qt,{className:"size-4"}),e("span",{className:"ms-1.5",children:p(y?"agent.rewind.pause":"agent.rewind.resume")})]})]})]}),e(ds,{cursor:_.cursor,messages:h,onChangeCursor:I}),e(Nc,{messages:S,isCompleted:z,streamingMessages:T,bottomRef:C,artifactRunId:n.metadata?.agent_run_id??"agent-chat-fixture",viewMode:b,renderRequestInputControls:!j}),j&&e(eo,{message:j,onSendMessage:A,isLoading:!1})]})}function Sc({className:n,inline:r=!1}){return t("div",{className:s("flex items-center gap-1",r?"inline-flex":"",n),children:[e("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-[jumping_1s_infinite_ease-in-out] hover:bg-blue-600",style:{transform:"translateY(0)",animationRange:"0px -8px"}}),e("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-[jumping_1s_0.3s_infinite_ease-in-out] hover:bg-blue-600",style:{transform:"translateY(0)",animationRange:"0px -8px"}}),e("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-[jumping_1s_0.6s_infinite_ease-in-out] hover:bg-blue-600",style:{transform:"translateY(0)",animationRange:"0px -8px"}})]})}function Tc({className:t,size:n="md"}){return e("div",{className:`flex items-center justify-center ${t||""}`,children:e(et,{className:`${{sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8"}[n]} animate-spin text-muted-foreground`})})}function Ic({pdfUrl:n,pageNumber:r,width:a,className:s,renderTextLayer:i=!1,renderAnnotationLayer:o=!1,onLoadSuccess:l,onError:c}){const[d,m]=Le(!0),[u,p]=Le(null);return u?e("div",{className:`flex items-center justify-center text-destructive text-sm ${s||""}`,children:"Failed to load PDF"}):t("div",{className:s,children:[d&&e(Tc,{className:"py-4",size:"md"}),e(aa,{file:n,onLoadSuccess:({numPages:e})=>{m(!1),l?.(e)},onLoadError:e=>{m(!1),p(e),c?.(e)},loading:null,children:e(sa,{pageNumber:r,width:a,renderTextLayer:i,renderAnnotationLayer:o,loading:e(Tc,{className:"py-4",size:"sm"})})})]})}ra.GlobalWorkerOptions.workerSrc=`//unpkg.com/pdfjs-dist@${ra.version}/build/pdf.worker.min.mjs`;const zc=Fe(null);function jc({pdfUrl:t,urlLoading:n=!1,children:r,onLoadSuccess:a}){const[s,i]=Le(0),[o,l]=Le(!0),[c,d]=Le(null),[m,u]=Le(null),p={pdfUrl:t,numPages:s,loading:n||!t||o,error:c,pageDimensions:m};return c?e("div",{className:"flex items-center justify-center text-destructive text-sm py-4",children:"Failed to load PDF"}):e(zc.Provider,{value:p,children:t?e(aa,{file:t,onLoadSuccess:async e=>{i(e.numPages),a?.(e.numPages);try{const t=(await e.getPage(1)).getViewport({scale:1});u({width:t.width,height:t.height,aspectRatio:t.width/t.height})}catch(e){console.error("Failed to get page dimensions:",e)}l(!1)},onLoadError:e=>{l(!1),d(e)},loading:e(Tc,{className:"py-4",size:"md"}),children:r((t,n)=>e(sa,{pageNumber:t,width:n,renderTextLayer:!1,renderAnnotationLayer:!1,loading:e(Tc,{className:"py-4",size:"sm"})},t))}):e(Tc,{className:"py-4",size:"md"})})}function Rc(){return Oe(zc)}const Pc=210/297;function Ac({pageNumber:t,width:n,className:r}){const a=Rc(),s=a?.pageDimensions?.aspectRatio??Pc,i=n?Math.round(n/s):200;return e("div",a?.loading?{className:`flex items-center justify-center bg-muted ${r||""}`,style:{height:i,width:n||"100%"},children:e(Tc,{size:"md"})}:{className:r,children:e(sa,{pageNumber:t,width:n,renderTextLayer:!1,renderAnnotationLayer:!1,loading:e(Tc,{className:"py-4",size:"sm"})})})}function Dc({pageNumber:t,width:n,isSelected:r,onSelect:a,renderThumbnail:s,aspectRatio:i=Pc,rootMargin:o="200px 0px"}){const l=Me(null),[c,d]=Le(!1);Ve(()=>{const e=l.current;if(!e)return;const t=new IntersectionObserver(e=>{const t=e[0];t?.isIntersecting&&d(!0)},{rootMargin:o,threshold:0});return t.observe(e),()=>t.disconnect()},[o]);const m=n?Math.round(n/i):200,u=c?e(sa,{pageNumber:t,width:n,renderTextLayer:!1,renderAnnotationLayer:!1,loading:e("div",{className:"flex items-center justify-center bg-muted",style:{height:m},children:e(Tc,{size:"sm"})})}):e("div",{className:"flex items-center justify-center bg-muted",style:{height:m,width:n||"100%"},children:e("span",{className:"text-muted-foreground text-xs",children:t})});return e("div",{ref:l,children:s({pageNumber:t,isSelected:r,pageElement:u,onSelect:a})})}function $c({pdfUrl:r,urlLoading:a=!1,pageCount:s,currentPage:i,thumbnailWidth:o,onPageSelect:l,renderThumbnail:c,scrollContainerRef:d,onAspectRatioChange:m,onItemHeightChange:u,calculateItemHeight:p,onPageCountChange:h}){const[f,g]=Le(null),[x,v]=Le({start:0,end:Math.min(15,s)}),[b,y]=Le(null),w=Me(null),N=Ue(e=>{g(e)},[]),k=Ue(async e=>{h?.(e.numPages);try{const t=(await e.getPage(1)).getViewport({scale:1}),n=t.width/t.height;y(n),m?.(n)}catch(e){console.error("Failed to get page dimensions:",e),y(Pc),m?.(Pc)}},[m,h]),C=b??Pc,_=o?Math.round(o/C):200,S=p?p(_):_+16+24+8;Ve(()=>{S>0&&null!==b&&u?.(S)},[S,b,u]);if(Ve(()=>{const e=d?.current||function(e){if(!e)return null;let t=e.parentElement;for(;t;){const e=window.getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)return t;t=t.parentElement}return null}(w.current);if(!e)return;const t=()=>{const t=e.scrollTop,n=e.clientHeight,r=Math.floor(t/S),a=Math.ceil((t+n)/S),i=Math.max(0,r-5),o=Math.min(s,a+5);v(e=>e.start!==i||e.end!==o?{start:i,end:o}:e)};return t(),e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[S,s,d]),f)return e("div",{className:"flex items-center justify-center text-destructive text-sm py-4",children:"Failed to load PDF"});if(a||!r)return e(Tc,{className:"py-4",size:"md"});const T=x.start*S,I=(s-x.end)*S,z=null!==b;return e("div",{ref:w,children:e(aa,{file:r,onLoadSuccess:k,onLoadError:N,loading:e(Tc,{className:"py-4",size:"md"}),children:z?t(n,{children:[T>0&&e("div",{style:{height:T}}),Array.from({length:x.end-x.start},(t,n)=>{const r=x.start+n+1;return e("div",{"data-page-index":r-1,style:{height:S,overflow:"hidden"},children:e(Dc,{pageNumber:r,width:o,isSelected:r===i,onSelect:()=>l(r),renderThumbnail:c,aspectRatio:C})},r)}),I>0&&e("div",{style:{height:I}})]}):e(Tc,{className:"py-4",size:"md"})})})}function Ec({pdfUrl:n,pageNumber:r,width:a,height:s,className:i,renderTextLayer:o=!1,renderAnnotationLayer:l=!1,onPageChange:c}){const[d,m]=Le(0),[u,p]=Le(!0),[h,f]=Le(null);Ve(()=>{d>0&&c?.(r,d)},[r,d,c]);return h?e("div",{className:`flex items-center justify-center text-destructive ${i||""}`,children:t("span",{children:["Failed to load PDF: ",h.message]})}):t("div",{className:i,children:[u&&e(Tc,{className:"py-8",size:"lg"}),e(aa,{file:n,onLoadSuccess:({numPages:e})=>{m(e),p(!1)},onLoadError:e=>{p(!1),f(e)},loading:null,children:e(sa,{pageNumber:Math.min(r,d||1),width:a,height:s,renderTextLayer:o,renderAnnotationLayer:l,loading:e(Tc,{className:"py-8",size:"md"})})})]})}const Lc=210/297,Fc=[50,75,100,125,150,200,300];function Oc({pdfUrl:a,pdfUrlLoading:s=!1,pageCount:i,currentPage:o,onChange:l,onPageCountChange:c,className:d,compact:m=!1,headerExtra:p}){const{t:h}=Ke(),f=Me(null),g=Me(null),[x,v]=Le(void 0),[b,y]=Le(100),[w,N]=Le(Lc),[k,C]=Le(null),_=Me(null),S=x?Math.round(x*b/100):void 0,T=Ue(()=>{let e=Fc.findIndex(e=>e>=b);-1===e&&(e=Fc.length-1);const t=Math.min(e+1,Fc.length-1);y(Fc[t])},[b]),I=Ue(()=>{let e=Fc.findIndex(e=>e>=b);-1===e&&(e=Fc.length-1);const t=Math.max(e-1,0);y(Fc[t])},[b]),z=Ue(()=>{y(100)},[]),j=Ue(e=>e+(m?28:48),[m]),R=Ue((e,t)=>{const n=e?Math.round(e/t):200;return j(n)},[j]);Ve(()=>{const e=g.current;if(!e)return;let t=null;const n=()=>e.clientWidth-16-16-4,r=()=>{const t=n();if(t<=0)return;const r=_.current;if(r&&r>0){const n=e.scrollTop,a=Math.round(n/r),s=R(t,w),i=a*s;v(t),requestAnimationFrame(()=>{e.scrollTo({top:i,behavior:"instant"})}),_.current=s}else v(t),_.current=R(t,w)},a=n();a>0&&(v(a),_.current=R(a,w));const s=new ResizeObserver(()=>{t&&clearTimeout(t),t=setTimeout(r,150)});return s.observe(e),()=>{t&&clearTimeout(t),s.disconnect()}},[w,R]);const P=Me(!1),A=Me(null),D=Me(b);Ve(()=>{D.current!==b&&(D.current=b,A.current={targetPage:o},P.current=!0)},[b,o]),Ve(()=>{const e=g.current,t=A.current;if(t&&e&&k){A.current=null;const n=(t.targetPage-1)*k;requestAnimationFrame(()=>{e.scrollTo({top:n,behavior:"instant"}),requestAnimationFrame(()=>{P.current=!1})})}},[k]);const $=Me(!1);Ve(()=>{const e=g.current;if(e&&k&&!$.current)if(o>1){$.current=!0,P.current=!0;const t=(o-1)*k;e.scrollTo({top:t,behavior:"instant"}),requestAnimationFrame(()=>{P.current=!1})}else $.current=!0},[k,o]);const E=Me(o);Ve(()=>{const e=g.current;if(e&&k&&E.current!==o){E.current=o,P.current=!0;const t=(o-1)*k;e.scrollTo({top:t,behavior:"instant"}),requestAnimationFrame(()=>{P.current=!1})}},[o,k]),Ve(()=>{const e=g.current;if(!e||!k)return;let t=null;const n=()=>{P.current||(t&&clearTimeout(t),t=setTimeout(()=>{const t=e.scrollTop,n=Math.round(t/k)+1,r=Math.max(1,Math.min(n,i));r!==o&&(E.current=r,l(r))},50))};return e.addEventListener("scroll",n,{passive:!0}),()=>{t&&clearTimeout(t),e.removeEventListener("scroll",n)}},[k,i,o,l]);return t("div",{ref:f,className:je("flex flex-col items-stretch",m?"gap-y-1":"gap-y-2",d),children:[t("div",{className:je("relative flex items-center justify-center px-2",m?"h-6":"h-9"),children:[e(r,{variant:"ghost",size:"xs",onClick:()=>{o>1&&l(o-1)},alt:h("pdf.previousPage"),children:e(Ht,{className:"size-4"})}),t("div",{className:"absolute start-2 flex items-center gap-x-1",children:[e(Uc,{zoom:b,onZoomIn:T,onZoomOut:I,onFitToView:z,canZoomIn:b<Fc[Fc.length-1],canZoomOut:b>Fc[0]}),p&&t(n,{children:[e("div",{className:"w-px h-4 bg-border mx-1"}),p]})]}),e("div",{className:"absolute end-2",children:e(Mc,{currentPage:o,totalPages:i,onChange:l})})]}),e("div",{ref:g,className:je("flex flex-col items-center flex-1 overflow-y-auto px-2",m?"gap-1":"gap-2"),children:e($c,{pdfUrl:a,urlLoading:s,pageCount:i,currentPage:o,thumbnailWidth:S,onPageSelect:l,onPageCountChange:c,scrollContainerRef:g,onAspectRatioChange:N,onItemHeightChange:C,calculateItemHeight:j,renderThumbnail:({pageNumber:n,isSelected:a,pageElement:s,onSelect:i})=>t("div",{className:je("hover:bg-muted rounded-md w-full",m?"p-1":"p-2"),children:[e(r,{variant:"unstyled",size:"none","aria-pressed":a,"aria-label":`Page ${n}`,className:je("relative border-[2px] cursor-pointer overflow-hidden",a?"border-primary":"border-border"),onClick:i,children:s}),e(u,{className:je("text-muted-foreground font-semibold",m?"text-xs pt-0.5":"text-sm pt-1"),children:n})]},n)})}),e("div",{className:je("flex items-center justify-center",m?"h-6":"h-9"),children:e(r,{variant:"ghost",size:"xs",onClick:()=>{o<i&&l(o+1)},alt:h("pdf.nextPage"),children:e(Gt,{className:"size-4"})})})]})}function Mc({currentPage:n,totalPages:r,onChange:a}){const{t:s}=Ke(),i=Me(null),[o,l]=Le(String(n));Ve(()=>{l(String(n))},[n]);const c=()=>{const e=parseInt(o,10);!Number.isNaN(e)&&e>=1&&e<=r?a(e):l(String(n))};return t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e("span",{children:s("pdf.page")}),e("input",{ref:i,type:"text",value:o,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key?(c(),i.current?.blur()):"Escape"===e.key&&(l(String(n)),i.current?.blur())},onBlur:()=>{c()},className:"w-8 h-5 text-center text-xs px-1 py-0 bg-background border border-border rounded focus:outline-none focus:border-primary"}),t("span",{children:["/ ",r]})]})}function Uc({zoom:n,onZoomIn:a,onZoomOut:s,onFitToView:i,canZoomIn:o,canZoomOut:l}){const{t:c}=Ke();return t("div",{className:"flex items-center gap-x-0.5",children:[e(r,{variant:"ghost",size:"xs",onClick:s,isDisabled:!l,alt:c("pdf.zoomOut"),children:e(Jt,{})}),t("span",{className:"text-xs text-muted-foreground min-w-[32px] text-center",children:[n,"%"]}),e(r,{variant:"ghost",size:"xs",onClick:a,isDisabled:!o,alt:c("pdf.zoomIn"),children:e(Kt,{})}),e(r,{variant:"ghost",size:"xs",onClick:i,alt:c("pdf.fitToWidth"),className:100===n?"text-muted-foreground/40":void 0,children:e(Yt,{})})]})}function Wc({object:n,url:a,source:s,className:i}){const{t:o}=Ke(),{client:l}=Ze(),[c,d]=Le(1),[m,u]=Le(a||""),[f,g]=Le(!a),[x,v]=Le(0),[b,y]=Le(!1);Ve(()=>{if(a)return u(a),void g(!1);const e=s||n?.content?.source;e?(g(!0),l.files.getDownloadUrl(e).then(e=>{u(e.url)}).catch(e=>{console.error("Failed to get PDF URL:",e)}).finally(()=>{g(!1)})):g(!1)},[a,s,n?.content?.source,l]),Ve(()=>{const e=n?.metadata,t=e?.pages||e?.page_count||0;t>0&&v(t)},[n?.metadata]);const w=e=>{v(e)};return f?e("div",{className:"flex items-center justify-center h-full",children:e(p,{size:"lg"})}):m?b?t("div",{className:"fixed inset-0 bg-background z-50 flex flex-col overflow-hidden",children:[e("div",{className:"flex h-9 items-center justify-end shrink-0 bg-sidebar px-2 border-b border-sidebar-border",children:e(r,{variant:"ghost",size:"xs",onClick:()=>y(!1),alt:o("pdf.closeFullscreen"),children:e(it,{className:"size-4"})})}),e(Oc,{pdfUrl:m,pdfUrlLoading:f,pageCount:x||100,currentPage:c,onChange:d,onPageCountChange:w,className:"flex-1 min-h-0"})]}):e("div",{className:"relative h-full flex flex-col",children:e(Oc,{pdfUrl:m,pdfUrlLoading:f,pageCount:x||100,currentPage:c,onChange:d,onPageCountChange:w,className:i,compact:!0,headerExtra:e(h,{description:o("pdf.fullscreen"),placement:"bottom",size:"xs",children:e(r,{variant:"unstyled",className:"p-1 rounded cursor-pointer transition-colors text-muted-foreground hover:text-foreground hover:bg-muted",onClick:()=>y(!0),"aria-label":o("pdf.fullscreen"),children:e(st,{className:"size-4"})})})})}):e("div",{className:"flex items-center justify-center h-full text-muted",children:o("pdf.noPdfAvailable")})}function Vc(e){return e.fileName||e.title||e.artifact?.path.split("/").pop()||e.sourcePath?.split("/").pop()||"Document"}function Bc(e){return"application/pdf"===e.contentType||"pdf"===e.extension}function qc(e){return["md","markdown"].includes(e.extension)||["text/markdown","text/x-markdown"].includes(e.contentType||"")}function Hc(e){return e.contentType?.startsWith("image/")||["png","jpg","jpeg","gif","webp","svg"].includes(e.extension)}function Gc(e){return"text/html"===e.contentType||["html","htm"].includes(e.extension)}function Jc(e){return["application/xml","text/xml"].includes(e.contentType||"")||"xml"===e.extension}function Kc(e){return e.contentType?.startsWith("text/")||["css","csv","json","txt","tsx","ts","jsx","js","xml","yaml","yml"].includes(e.extension)}function Yc(e){return["doc","docx","ppt","pptx"].includes(e.extension)||["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"].includes(e.contentType||"")}function Qc({content:t,extension:n}){return e("pre",{className:"h-full overflow-auto rounded-md bg-muted/10 p-3 text-xs leading-5",children:e("code",{className:n?`language-${n}`:void 0,children:t||""})})}function Zc({message:n}){return t("div",{className:"flex h-full min-h-64 flex-col items-center justify-center gap-2 text-muted",children:[e(Xt,{className:"size-8"}),e("span",{className:"text-sm",children:n})]})}function Xc(e,t){return e.includes(".")?e.replace(/\.[^/.]+$/,t):`${e}${t}`}function ed(e){return e.split("/").pop()||e}function td(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}function nd(e){return"number"==typeof e&&Number.isFinite(e)?e:void 0}function rd(e){if(void 0!==e)return e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(e<1e4?1:0)} s`}function ad(e){return Array.isArray(e)?e.length:0}function sd({metadata:n}){if(!n)return null;const r=nd(n.timings_ms?.total_before_cleanup),a=ad(n.console_errors)+ad(n.page_errors)+ad(n.failed_requests)+ad(n.bad_responses);return t("div",{className:"grid gap-2 border-b p-3 text-xs",children:[t("div",{className:"flex flex-wrap items-center gap-2",children:[void 0!==n.ok&&e(c,{variant:n.ok?"success":"destructive",children:n.ok?"render ok":"render failed"}),void 0!==n.dependencies_reused&&t(c,{variant:n.dependencies_reused?"info":"secondary",children:["deps ",n.dependencies_reused?"reused":"installed"]}),n.status&&t(c,{variant:"secondary",children:["HTTP ",n.status]}),a>0&&t(c,{variant:"attention",children:[a," browser issue(s)"]})]}),t("div",{className:"grid gap-1 text-muted sm:grid-cols-2",children:[n.viewport?.width&&n.viewport.height&&t("div",{children:["Viewport ",n.viewport.width," x ",n.viewport.height]}),rd(r)&&t("div",{children:["Total ",rd(r)]}),n.rendered_at&&t("div",{children:["Rendered ",new Date(n.rendered_at).toLocaleString()]}),n.title&&t("div",{className:"truncate",children:["Title ",n.title]})]}),"string"==typeof n.error&&e("div",{className:"text-destructive",children:n.error})]})}function id({context:n}){const{client:r}=Ze(),a=n.source.artifact,s=a?.path||n.source.sourcePath,i=!!a,o=n.content||"",[l,d]=Le({isLoading:!1}),m=Ue(async(e,t)=>{if(a){return(await r.files.getArtifactDownloadUrl(a.runId,e,t)).url}return(await r.files.getDownloadUrl(e,ed(e),t)).url},[a,r]);return Ve(()=>{if(!s)return void d({isLoading:!1,previewError:"No source path is available for this TSX artifact."});const e=s;let t=!1;const n=Xc(e,".png"),r=Xc(e,".render.json");return async function(){let a,s;d({isLoading:!0});let o,l,c=n;try{const t=await m(r,"inline");a=function(e){try{const t=td(JSON.parse(e));if(!t)return;const n=td(t.viewport);return{ok:"boolean"==typeof t.ok?t.ok:void 0,source_artifact:"string"==typeof t.source_artifact?t.source_artifact:void 0,screenshot_artifact:"string"==typeof t.screenshot_artifact?t.screenshot_artifact:void 0,rendered_at:"string"==typeof t.rendered_at?t.rendered_at:void 0,viewport:n?{width:nd(n.width),height:nd(n.height)}:void 0,dependencies_reused:"boolean"==typeof t.dependencies_reused?t.dependencies_reused:void 0,status:nd(t.status),title:"string"==typeof t.title?t.title:void 0,console_errors:Array.isArray(t.console_errors)?t.console_errors:void 0,page_errors:Array.isArray(t.page_errors)?t.page_errors:void 0,failed_requests:Array.isArray(t.failed_requests)?t.failed_requests:void 0,bad_responses:Array.isArray(t.bad_responses)?t.bad_responses:void 0,timings_ms:td(t.timings_ms),error:t.error}}catch{return}}(await async function(e,t){const n=await fetch(e);if(!n.ok)throw new Error(`Failed to load ${t}: ${n.statusText}`);return n.text()}(t,ed(r))),c=function({metadata:e,sourcePath:t,fallbackPath:n,artifactMode:r}){const a=e?.screenshot_artifact?.replace(/^\/+/,"");if(!a)return n;if(r)return a;const s=e?.source_artifact?.replace(/^\/+/,""),i=t.replace(/^\/+/,"");if(s&&i.endsWith(s)){const e=i.slice(0,-s.length).replace(/\/+$/,"");return e?`${e}/${a}`:a}const o=i.includes("/")?i.slice(0,i.lastIndexOf("/")+1):"";return o?`${o}${ed(a)}`:n}({metadata:a,sourcePath:e,fallbackPath:n,artifactMode:i})}catch(e){s=e instanceof Error?e.message:"Render metadata is not available"}try{o=await m(c,"inline")}catch(e){l=e instanceof Error?e.message:"Sandbox render image is not available"}t||d({isLoading:!1,imageUrl:o,metadata:a,metadataError:s,previewError:l})}(),()=>{t=!0}},[i,m,s]),t("div",{className:"flex h-full min-h-0 flex-col",children:[t("div",{className:"flex min-h-10 flex-wrap items-center gap-2 border-b px-3 py-2 text-sm",children:[e(Tt,{className:"size-4 text-info"}),e("span",{className:"font-medium",children:"Sandbox render"}),l.isLoading?e(c,{variant:"secondary",children:"loading"}):l.imageUrl?e(c,{variant:"success",children:"PNG preview"}):e(c,{variant:"attention",children:"source only"}),l.metadata?.rendered_at&&e("span",{className:"text-xs text-muted",children:new Date(l.metadata.rendered_at).toLocaleString()})]}),l.isLoading?t("div",{className:"flex h-full min-h-64 items-center justify-center gap-2 text-muted",children:[e(Qt,{className:"size-5 animate-spin"}),e("span",{className:"text-sm",children:"Loading sandbox render..."})]}):l.imageUrl?t("div",{className:"grid min-h-0 flex-1 xl:grid-cols-[minmax(0,1fr)_minmax(24rem,0.7fr)]",children:[e("div",{className:"flex min-h-0 items-center justify-center overflow-auto bg-muted/10 p-3",children:e("img",{src:l.imageUrl,alt:`${n.fileName} sandbox render`,className:"max-h-full max-w-full rounded-md object-contain"})}),t("div",{className:"min-h-0 overflow-auto border-t xl:border-s xl:border-t-0",children:[e(sd,{metadata:l.metadata}),e("div",{className:"p-3",children:e(Qc,{content:o,extension:n.extension})})]})]}):t("div",{className:"grid min-h-0 flex-1 grid-rows-[auto_minmax(0,1fr)]",children:[t("div",{className:"border-b px-3 py-2 text-xs text-muted",children:["No sandbox-rendered PNG was found for this TSX artifact. Showing the source without executing it in Studio.",l.previewError&&t("span",{className:"ms-1",children:["Preview lookup: ",l.previewError]}),!l.previewError&&l.metadataError&&t("span",{className:"ms-1",children:["Metadata lookup: ",l.metadataError]})]}),t("div",{className:"min-h-0 overflow-auto p-3",children:[e(sd,{metadata:l.metadata}),e(Qc,{content:o,extension:n.extension})]})]})]})}function od({source:n,className:a,bodyClassName:i,renderers:o=[],converters:l=[],resolveUrl:c,loadText:d,createRendition:m,markdownComponents:u,showHeader:p=!0,onDownload:h}){const{client:f}=Ze(),g=Ee(()=>Vc(n),[n]),x=Ee(()=>function(e){const t=e.split("?")[0]||e;return t.includes(".")&&t.split(".").pop()?.toLowerCase()||""}(g),[g]),[v,b]=Le(n.url),[y,w]=Le(n.content),[N,k]=Le(null),[C,_]=Le(!1),[S,T]=Le(null),[I,z]=Le(0),j=[n.id,n.title,n.fileName,n.contentType,n.url,n.sourcePath,n.content,n.artifact?.runId,n.artifact?.path].join("\0"),R=Ue(async(e,t)=>{if(e.url)return e.url;if(e.artifact){return(await f.files.getArtifactDownloadUrl(e.artifact.runId,e.artifact.path,t)).url}if(e.sourcePath){return(await f.files.getDownloadUrl(e.sourcePath,e.fileName,t)).url}return""},[f]),P=c||R,A=Ue(async e=>{if(void 0!==e.content)return e.content;const t=await P(e,"inline");if(!t)return"";const n=await fetch(t);if(!n.ok)throw new Error(`Failed to load ${Vc(e)}: ${n.statusText}`);return n.text()},[P]),D=d||A,$={source:n,fileName:g,extension:x,contentType:n.contentType||N?.contentType,url:N?.url||v,content:N?.content||y,isLoading:C,error:S,reload:()=>z(e=>e+1)},E=o.find(e=>e.canRender($)),L=!E&&(qc($)||Gc($)||Jc($)||Kc($)),F=!E&&(Bc($)||Hc($)),O={source:n,fileName:g,extension:x,contentType:n.contentType,target:"pdf"},M=E||$.url?void 0:l.find(e=>"pdf"===e.target&&e.canConvert(O)),U=!E&&!$.url&&(Yc($)||!!M)&&(!!M||!!m);Ve(()=>{let e=!1;const t=n;return T(null),b(t.url),w(t.content),k(null),async function(){if(L||F||U){_(!0);try{if(U){const n=M?await M.convert({source:t,fileName:g,extension:x,contentType:t.contentType,target:"pdf"}):await(m?.(t,"pdf"));return void(e||k(n??null))}if(L){const n=await D(t);return void(e||w(n))}if(F){const n=await P(t,"inline");e||b(n)}}catch(t){e||T(t instanceof Error?t.message:"Failed to load document")}finally{e||_(!1)}}}(),()=>{e=!0}},[m,x,g,D,U,L,F,I,P,M,n,j]);const W={...$,url:N?.url||v,content:N?.content||y,contentType:N?.contentType||n.contentType,isLoading:C,error:S};let V;return V=C?t("div",{className:"flex h-full min-h-64 items-center justify-center gap-2 text-muted",children:[e(Qt,{className:"size-5 animate-spin"}),e("span",{className:"text-sm",children:"Loading preview..."})]}):S?t("div",{className:"flex h-full min-h-64 flex-col items-center justify-center gap-2 text-destructive",children:[e(Zt,{className:"size-7"}),e("span",{className:"max-w-xl text-center text-sm",children:S}),e(r,{variant:"outline",size:"sm",onClick:W.reload,children:"Retry"})]}):E?function(t,n){if(t.Component){const r=t.Component;return e(r,{context:n})}return t.render?.(n)??null}(E,W):(Bc(W)||"application/pdf"===N?.contentType)&&W.url?e(Wc,{url:W.url,className:"h-full"}):Hc(W)&&W.url?e("div",{className:"flex h-full min-h-0 items-center justify-center overflow-auto bg-muted/10 p-3",children:e("img",{src:W.url,alt:g,className:"max-h-full max-w-full rounded-md object-contain"})}):qc(W)?e("div",{className:"prose prose-sm dark:prose-invert max-w-none px-5 py-4",children:e(Mr,{artifactRunId:n.artifact?.runId,components:u,children:W.content||""})}):Gc(W)?e("iframe",{title:g,className:"h-full min-h-96 w-full bg-white",sandbox:"",srcDoc:W.content||""}):Jc(W)?e("div",{className:"px-4 py-2",children:e(Ur,{xml:W.content||"",collapsible:!0})}):function(e){return["tsx","jsx"].includes(e.extension)}(W)?e(id,{context:W}):Kc(W)?e(Qc,{content:W.content,extension:x}):!Yc(W)||M||m?e(Zc,{message:"Preview is not available for this file type."}):e(Zc,{message:"This file needs a PDF rendition before it can be previewed."}),t("div",{className:s("flex h-full min-h-0 flex-col overflow-hidden",a),children:[p&&t("div",{className:"flex min-h-10 items-center justify-between gap-3 border-b py-2 ps-3 pe-16",children:[t("div",{className:"min-w-0",children:[e("div",{className:"truncate text-sm font-medium",title:g,children:g}),W.contentType&&e("div",{className:"truncate text-xs text-muted",children:W.contentType})]}),h&&e(r,{variant:"outline",size:"sm",onClick:()=>h(n),children:"Download"})]}),e("div",{className:s("min-h-0 flex-1 overflow-auto",i),children:V})]})}const ld=/(^|\/)(tool-inputs|tool-results|archive)(\/|$)/,cd=/(^|\/)process\/(history|state)(\/|$)/,dd=[/conversation\.json$/,/^conversation-checkpoint-\d+\.json$/,/^tools\.json$/,/^tool-input-refs\.json$/,/^toolu[_-]/i];function md(e,t,n=0,r=!1){const[a,s]=Le([]),[i,o]=Le(!1),[l,c]=Le(null),[d,m]=Le(0),u=Me(0),p=Ue(async()=>{if(!t)return;const n=++u.current;o(!0),c(null);try{const r=await e.files.listArtifacts(t);if(n!==u.current)return;const a=r.map(e=>function(e,t){const n=`agents/${t}/`,r=e.indexOf(n);return-1!==r?e.slice(r+n.length):e.split("/").pop()??e}(e,t)).filter(e=>!!e);s(a)}catch(e){if(n!==u.current)return;c(e instanceof Error?e.message:"Failed to list artifacts"),s([])}finally{n===u.current&&o(!1)}},[e,t]);Ve(()=>{p()},[p,n,d]);const h=Ee(()=>r?a:a.filter(e=>!function(e){if(ld.test(e)||cd.test(e))return!0;const t=e.split("/").pop()??e;return dd.some(e=>e.test(t))}(e)),[a,r]),f=Ee(()=>function(e){const t={children:[]};for(const n of e){const e=n.split("/");let r=t,a="";for(let t=0;t<e.length;t++){const n=e[t];a=a?`${a}/${n}`:n;const s=t===e.length-1;let i=r.children.find(e=>e.name===n);i||(i={name:n,path:a,isDirectory:!s,children:[]},r.children.push(i)),r=i}}const n=e=>{e.children.sort((e,t)=>e.isDirectory!==t.isDirectory?e.isDirectory?-1:1:e.name.localeCompare(t.name)),e.children.forEach(n)};return n(t),t.children}(h),[h]),g=a.length-h.length,x=Ue(()=>{m(e=>e+1)},[]);return{tree:f,flatFiles:h,totalCount:a.length,systemHiddenCount:g,isLoading:i,error:l,refresh:x}}function ud({node:n,depth:a,runId:s,onPreview:i,onDownload:o,downloadingPath:l,forceExpanded:c=!1}){const[d,m]=Le(!1),u=c||d;if(n.isDirectory)return t("div",{className:"min-w-0",children:[t(r,{variant:"unstyled",className:"flex w-full max-w-full items-center justify-start gap-1.5 rounded px-1 py-1 text-start text-sm hover:bg-muted/30",style:{paddingInlineStart:14*a+4+"px"},onClick:()=>m(e=>!e),"aria-expanded":u,children:[u?e(nn,{className:"size-3.5 shrink-0 text-muted"}):e(rn,{className:"size-3.5 shrink-0 text-muted cn-rtl-flip"}),e(u?an:sn,{className:"size-4 shrink-0 text-info"}),e("span",{className:"min-w-0 truncate font-medium",title:n.path,children:(p=n.name,p.replace(/[_-]/g," ").replace(/\b\w/g,e=>e.toUpperCase()))})]}),u&&n.children.map(t=>e(ud,{node:t,depth:a+1,runId:s,onPreview:i,onDownload:o,downloadingPath:l,forceExpanded:c},`${s}:${t.path}`))]});var p;const h=l===n.path;return t("div",{className:"group flex min-w-0 items-center gap-1.5 rounded text-sm hover:bg-muted/30",style:{paddingInlineStart:14*a+4+"px"},children:[t(r,{variant:"unstyled",className:"flex min-w-0 flex-1 items-center justify-start gap-1.5 px-1 py-1 text-start",onClick:()=>i(n.path),title:n.path,children:[e("span",{className:"size-3.5 shrink-0"}),e(Xt,{className:"size-4 shrink-0 text-muted"}),e("span",{className:"min-w-0 truncate",children:n.name})]}),t("div",{className:"flex shrink-0 items-center pe-1 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100",children:[e(r,{variant:"ghost",size:"xs",className:"h-6 w-6 p-0",onClick:()=>i(n.path),"aria-label":"Preview artifact",children:e(on,{className:"size-3.5"})}),e(r,{variant:"ghost",size:"xs",className:"h-6 w-6 p-0",onClick:()=>o(n.path),disabled:h,"aria-label":"Download artifact",children:h?e(Qt,{className:"size-3.5 animate-spin text-info"}):e(ln,{className:"size-3.5"})})]})]})}function pd(e){return e.reduce((e,t)=>t.isDirectory?e+pd(t.children):e+1,0)}function hd(e,t){const n=t.trim().toLocaleLowerCase();return n?e.flatMap(e=>{const t=`${e.name} ${e.path}`.toLocaleLowerCase().includes(n);if(!e.isDirectory)return t?[e]:[];const r=hd(e.children,n);return t?[{...e}]:r.length>0?[{...e,children:r}]:[]}):e}function fd(e){const t=e.split(".").pop()?.toLowerCase();switch(t){case"css":return"text/css";case"gif":return"image/gif";case"htm":case"html":return"text/html";case"jpeg":case"jpg":return"image/jpeg";case"json":return"application/json";case"md":case"markdown":return"text/markdown";case"pdf":return"application/pdf";case"png":return"image/png";case"svg":return"image/svg+xml";case"ts":case"tsx":return"text/typescript";case"txt":return"text/plain";case"webp":return"image/webp";default:return}}function gd({icon:n,children:r,action:a}){return t(u,{className:"h-full min-h-[240px] flex-col text-center text-muted",children:[n,e("span",{className:"text-sm",children:r}),a]})}const xd=$e.memo(function({runId:s,refreshKey:i=0}){const{t:o}=Ke(),{client:l}=Ze(),[c,d]=Le(!1),{tree:m,flatFiles:u,totalCount:p,systemHiddenCount:h,isLoading:y,error:w,refresh:N}=md(l,s,i,c),[k,C]=Le(null),[_,S]=Le(null),[T,I]=Le(""),z=T.trim(),j=Ee(()=>hd(m,z),[m,z]),R=Ee(()=>pd(j),[j]),P=Be(),A=Ue(async e=>{if(s){C(e);try{const{url:t}=await l.files.getArtifactDownloadUrl(s,e,"attachment");!function(e,t){const n=document.createElement("a");n.href=e,n.download=t,n.rel="noopener noreferrer",n.style.display="none",document.body.appendChild(n),n.click(),n.remove()}(t,e.split("/").pop()||"artifact")}catch(e){console.error("Failed to get artifact download URL:",e)}finally{C(null)}}},[l,s]),D=Ue(e=>{S(e)},[]),$=s&&_?{title:_.split("/").pop()||_,fileName:_.split("/").pop()||_,contentType:fd(_),artifact:{runId:s,path:_}}:null;return s?y&&0===p?e(gd,{icon:e(Qt,{className:"mb-2 size-6 animate-spin"}),children:o("agent.loadingArtifacts")}):w?e("div",{className:"flex flex-col items-center justify-center p-4 text-muted w-full",children:t(f,{title:"Fail to load Artifacts",className:"w-full",action:N,actionLabel:t(n,{children:[e(tn,{className:"size-3.5 me-1.5"}),o("agent.retry")]}),children:[e("span",{className:"break-all text-muted",children:w})," ",e("br",{})]})}):0===p?e(gd,{icon:e(en,{className:"mb-2 size-8"}),action:t(r,{variant:"ghost",size:"sm",className:"mt-2",onClick:N,children:[e(tn,{className:"size-3.5 me-1.5"}),o("agent.refresh")]}),children:o("agent.noArtifactsYet")}):t("div",{className:"flex flex-col h-full",children:[t("div",{className:"flex shrink-0 flex-col gap-2 border-b px-3 py-2",children:[t("div",{className:"flex items-center justify-between gap-2 text-xs text-muted",children:[t("span",{children:[z?`${R} of ${u.length} file${1!==u.length?"s":""}`:`${u.length} file${1!==u.length?"s":""}`,!c&&h>0?` · ${h} hidden`:""]}),t("div",{className:"flex items-center gap-1",children:[e(g,{size:"sm",value:c,onChange:d,children:e("span",{className:"text-xs text-muted",children:o("agent.showSystemArtifacts")})}),e(r,{variant:"ghost",size:"sm",onClick:N,disabled:y,className:"h-6 w-6 p-0",children:e(tn,{className:"size-3.5 "+(y?"animate-spin":"")})})]})]}),e("label",{htmlFor:P,className:"sr-only",children:o("form.filter")}),e(a,{id:P,type:"text",role:"searchbox",autoComplete:"off",placeholder:o("store.searchPlaceholder"),value:T,onChange:I,clearable:!0})]}),e("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:j.length>0?e("div",{className:"min-w-0",children:j.map(t=>e(ud,{node:t,depth:0,runId:s,onPreview:D,onDownload:A,downloadingPath:k,forceExpanded:!!z},`${s}:${t.path}`))}):e("div",{className:"px-1 py-6 text-sm text-muted",children:o(!c&&h>0?"agent.onlySystemArtifacts":"agent.noContentAvailable")})}),$&&t(x,{isOpen:!!_,onClose:()=>S(null),size:"xl",className:"h-[90vh] p-0",description:"Artifact preview",children:[e(v,{show:!1,children:$.fileName}),e(b,{className:"h-full max-h-none p-0",children:e(od,{source:$,className:"h-full",onDownload:()=>_&&void A(_)})})]})]}):e(gd,{icon:e(en,{className:"mb-2 size-8"}),children:"No run selected"})});function vd(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function bd(e){if(!vd(e))return;const t=e.browseruse??e.browser_use;if(!vd(t))return;const n={widget:"string"==typeof t.widget?t.widget:void 0,browser_workflow_id:"string"==typeof t.browser_workflow_id?t.browser_workflow_id:void 0,workstream_id:"string"==typeof t.workstream_id?t.workstream_id:void 0,phase:"string"==typeof t.phase?t.phase:void 0,url:"string"==typeof t.url?t.url:void 0,title:"string"==typeof t.title?t.title:void 0,screenshot:"string"==typeof t.screenshot?t.screenshot:void 0,raw_screenshot:"string"==typeof t.raw_screenshot?t.raw_screenshot:void 0,prefer_raw_screenshot:"boolean"==typeof t.prefer_raw_screenshot?t.prefer_raw_screenshot:void 0,updated_at:"number"==typeof t.updated_at?t.updated_at:void 0};return n.widget&&"browseruse"!==n.widget||!(n.url||n.title||n.screenshot||n.raw_screenshot)?void 0:n}function yd(e){return e.replace(/^artifact:\/\//,"").replace(/^artifact:/,"").replace(/^\/+/,"")}function wd(e){return e?e.replace(/_/g," "):"browser"}function Nd({state:n,runId:r,className:a,compact:i}){const{t:o}=Ke(),{client:l}=Ze(),d=Oa(),{openImage:m}=xo(),[u,p]=Le(),h=!1===n.prefer_raw_screenshot?n.screenshot||n.raw_screenshot:n.raw_screenshot||n.screenshot,f=n.title||n.url||o("agent.browserUse"),g=Ee(()=>h&&yd(h).split("/").pop()||o("agent.browserScreenshot"),[h,o]);return Ve(()=>{if(!h)return void p(void 0);if(h.startsWith("http://")||h.startsWith("https://"))return void p(h);if(!r)return void p(void 0);let e=!1;return(async()=>{const t=yd(h);try{const n=Ua(r,t,"inline"),a=d?await d.getOrFetch(n,async()=>(await l.files.getArtifactDownloadUrl(r,t,"inline")).url):(await l.files.getArtifactDownloadUrl(r,t,"inline")).url;e||p(a)}catch(n){console.error(`Failed to resolve browser screenshot ${t}`,n),e||p(void 0)}})(),()=>{e=!0}},[l,r,h,d]),t("div",i?{className:s("overflow-hidden rounded-md border border-border/70 bg-transparent",a),children:[t("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[e(cn,{className:"size-3.5 shrink-0 text-info"}),t("div",{className:"min-w-0 flex-1",children:[t("div",{className:"flex min-w-0 items-center gap-1",children:[e("span",{className:"text-xs font-medium text-foreground",children:o("agent.browserPreview")}),n.phase&&t("span",{className:"truncate text-[11px] capitalize text-muted",children:["· ",wd(n.phase)]})]}),e("div",{className:"truncate text-[11px] text-muted",title:f,children:f})]}),n.url&&e("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",title:o("agent.openInNewTab"),className:s("inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md","text-muted hover:bg-muted hover:text-foreground"),children:e(dn,{className:"size-3"})})]}),h&&(u?e("button",{type:"button",className:"block w-full bg-mixer-muted/20 text-start",onClick:()=>m(u,g),title:o("agent.clickToEnlarge"),children:e("img",{src:u,alt:g,className:"block max-h-32 w-full object-contain"})}):t("div",{className:"flex min-h-16 items-center justify-center gap-2 bg-mixer-muted/20 px-3 py-4 text-xs text-muted",children:[e(Tt,{className:"size-4"}),e("span",{children:o("agent.browserScreenshotPending")})]}))]}:{className:s("overflow-hidden rounded-md border border-muted bg-mixer-muted/10",a),children:[t("div",{className:"flex items-start justify-between gap-2 border-b border-muted px-2.5 py-2",children:[t("div",{className:"flex min-w-0 items-start gap-2",children:[e(cn,{className:"mt-0.5 size-4 shrink-0 text-info"}),t("div",{className:"min-w-0",children:[e("div",{className:"text-xs font-medium text-foreground",children:o("agent.browserUse")}),e("div",{className:"truncate text-xs text-muted",title:f,children:f})]})]}),e(c,{variant:"info",className:"shrink-0 capitalize",children:wd(n.phase)})]}),u?e("button",{type:"button",className:"block w-full bg-mixer-muted/20 text-start",onClick:()=>m(u,g),title:o("agent.clickToEnlarge"),children:e("img",{src:u,alt:g,className:"block max-h-56 w-full object-contain"})}):t("div",{className:"flex min-h-28 items-center justify-center gap-2 bg-mixer-muted/20 px-3 py-6 text-xs text-muted",children:[e(Tt,{className:"size-4"}),e("span",{children:o("agent.browserScreenshotPending")})]}),n.url&&t("div",{className:"flex items-center gap-2 border-t border-muted px-2.5 py-1.5",children:[e("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"min-w-0 flex-1 truncate text-xs text-info hover:underline",title:n.url,children:n.url}),e("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",title:o("agent.openInNewTab"),className:s("inline-flex h-6 shrink-0 items-center justify-center rounded-md px-1.5","text-muted hover:bg-muted hover:text-foreground"),children:e(dn,{className:"size-3"})})]})]})}function kd({documents:t,activeId:n,onSelect:a}){return 0===t.length?null:e("div",{className:"flex items-center gap-1 px-2 py-1.5",children:e(d,{align:"right",trigger:e(r,{variant:"ghost",size:"xs",title:"All opened documents",className:"flex items-center gap-1.5 max-w-[220px] text-xs h-7 px-2",children:e(nn,{className:"size-3 shrink-0"})}),children:t.map(t=>e(m,{onClick:()=>a(t.id),className:t.id===n?"font-medium":"",children:e("span",{className:"truncate max-w-[200px]",children:t.title})},t.id))})})}const Cd=$e.memo(function({isOpen:n,documents:a,activeDocumentId:s,onSelectDocument:i,onCloseDocument:o,onUpdateDocumentTitle:l,refreshKey:c,runId:d}){const{client:m}=Ze(),{t:u}=Ke(),[p,f]=Le(null),[g,x]=Le(!1),[v,b]=Le(null),[y,w]=Le(null),N=Ue(async e=>{x(!0),b(null);try{const[t,n]=await Promise.all([m.store.objects.getObjectText(e),m.store.objects.retrieve(e)]);f(t.text??null);const r=n.name;w(r),r&&l?.(e,r)}catch(e){const t=e instanceof Error?e.message:u("agent.failedToLoadDocument");b(t),f(null)}finally{x(!1)}},[m,l,u]);return Ve(()=>{s&&n&&N(s)},[s,c,n,N]),n&&0!==a.length?t("div",{className:"h-full shadow-xl border border-muted/20 overflow-hidden flex flex-col",children:[t("div",{className:"flex items-center justify-between px-3 py-2 border-b border-muted/20 shrink-0",children:[t("div",{className:"flex items-center gap-2 min-w-0",children:[e(It,{className:"size-4 text-muted shrink-0"}),e("h3",{className:"font-bold text-sm truncate",children:y||u("agent.document")})]}),t("div",{className:"flex items-center gap-1",children:[e(kd,{documents:a,activeId:s,onSelect:i}),s&&e(Fr,{href:`/store/objects/${s}#overview`,topLevelNav:!0,className:"inline-flex items-center justify-center rounded-md text-sm font-medium h-8 w-8 hover:bg-muted/20 text-muted hover:text-foreground",children:e(h,{description:u("agent.openDocument"),placement:"top",size:"xs",children:e(dn,{className:"size-4"})})}),e(r,{variant:"ghost",size:"sm",onClick:()=>s&&o(s),title:u("agent.close"),children:e(it,{className:"size-4"})})]})]}),e("div",{className:"flex-1 overflow-y-auto px-4 py-4",children:g?t("div",{className:"flex items-center justify-center py-12",children:[e(Qt,{className:"size-5 animate-spin text-muted"}),e("span",{className:"ms-2 text-sm text-muted",children:u("agent.loadingDocument")})]}):v?e("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive text-sm",children:v}):p?e("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:e(Mr,{artifactRunId:d,children:p})}):t("div",{className:"flex flex-col items-center justify-center py-12 text-muted",children:[e(It,{className:"size-8 mb-2"}),e("span",{className:"text-sm",children:u("agent.noContentAvailable")})]})})]}):null});const _d=$e.memo(function({plan:n,workstreamStatus:a,isOpen:i,onClose:o,plans:l=[],activePlanIndex:c=0,onChangePlan:d=()=>{}}){const{t:m}=Ke();if(!i)return null;const p=n.plan||[],h=p.length,f=p.reduce((e,t)=>t?.id&&("completed"===a.get(t.id.toString())||"completed"===t.status)?e+1:e,0),g=h>0?Math.round(f/h*100):0,x=l.length>0?l.length-c:1,v=l[c]?.timestamp;return 0===p.length?e("div",{className:"h-full overflow-hidden",children:t(u,{className:"h-full min-h-[240px] flex-col text-center text-muted",children:[e(mn,{className:"mb-2 size-8"}),e("span",{className:"text-sm",children:m("agent.noPlanAvailable")})]})}):e("div",{className:"h-full overflow-hidden",children:t("div",{className:"flex h-full flex-col gap-4 overflow-y-auto px-2 py-3",children:[t("div",{className:"space-y-2",children:[t("div",{className:"flex items-start justify-between gap-3",children:[t("div",{className:"min-w-0",children:[e("div",{className:"text-sm font-medium text-foreground",children:m("agent.taskProgress")}),e("div",{className:"text-xs text-muted",children:m("agent.tasksCompleted",{completed:f,total:h})})]}),l.length>1&&t("div",{className:"flex shrink-0 items-center gap-1 text-xs text-muted",children:[e(r,{variant:"ghost",size:"icon",className:"size-7",onClick:()=>d(Math.min(l.length-1,c+1)),disabled:c>=l.length-1,"aria-label":m("agent.olderPlan"),title:m("agent.olderPlan"),children:e(lt,{className:"size-4","aria-hidden":"true"})}),t("div",{className:"min-w-20 text-center",children:[t("div",{className:"font-medium text-foreground",children:[x,"/",l.length]}),e("div",{className:"truncate",children:v?new Date(v).toLocaleTimeString():m("agent.unknownTime")})]}),e(r,{variant:"ghost",size:"icon",className:"size-7",onClick:()=>d(Math.max(0,c-1)),disabled:c<=0,"aria-label":m("agent.newerPlan"),title:m("agent.newerPlan"),children:e(ct,{className:"size-4","aria-hidden":"true"})})]})]}),e("div",{className:"h-2 overflow-hidden rounded-full bg-mixer-muted/20",role:"progressbar","aria-valuemin":0,"aria-valuemax":h,"aria-valuenow":f,"aria-label":m("agent.taskProgress"),children:e("div",{className:"h-full rounded-full bg-success transition-all duration-300",style:{width:`${g}%`}})})]}),e("ol",{className:"divide-y divide-border/60",children:p.map((n,r)=>{const i=n.id?n.id.toString():`task-${r}`,o=n.goal||`Task ${r+1}`,l=n.id?`task-${n.id.toString()}`:`task-${o}-${n.status||"pending"}`;let c=n.status||"pending";a.has(i)&&(c=a.get(i));let d=un,u="text-muted";"in_progress"===c?(d=Et,u="text-info"):"completed"===c&&(d=yt,u="text-success");const p=m("completed"===c?"agent.completed":"in_progress"===c?"agent.inProgress":"agent.pending");return t("li",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 px-1 py-3",children:[e("span",{className:"mt-0.5 min-w-5 text-center text-xs font-medium tabular-nums text-muted/80",children:i}),e("span",{className:"min-w-0 text-sm leading-5 text-foreground/85",children:o}),t("span",{className:s("flex items-center gap-1.5 text-xs font-medium",u),children:[e(d,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e("span",{children:p})]})]},l)})}),(()=>{const n=new Set(p.filter(e=>e?.id).map(e=>e.id.toString())),r=Array.from(a.entries()).filter(([e])=>"main"!==e&&!n.has(e));return r.length>0?t("div",{className:"mt-1 px-1 py-2",children:[e("div",{className:"mb-2 text-xs font-medium text-muted",children:m("agent.workstreams")}),e("div",{className:"divide-y divide-border/60",children:r.map(([n,r])=>{let a=un,i="text-muted",o=m("agent.pending");return"in_progress"===r?(a=Et,i="text-info",o=m("agent.inProgress")):"completed"===r&&(a=yt,i="text-success",o=m("agent.completed")),t("div",{className:"flex items-center gap-2 py-2",children:[e(a,{className:s("size-3.5 shrink-0",i)}),e("span",{className:"min-w-0 flex-1 truncate text-xs font-medium text-foreground/80",children:n}),e("span",{className:"text-xs font-medium text-muted",children:o})]},n)})})]}):null})()]})})});function Sd({icon:n,children:r}){return t(u,{className:"h-full min-h-[240px] flex-col text-center text-muted",children:[n,e("span",{className:"text-sm",children:r})]})}function Td({files:n}){const{t:r}=Ke(),a=Ee(()=>n?Array.from(n.values()):[],[n]),s=t=>{switch(t){case Xn.UPLOADING:case Xn.PROCESSING:return e(Qt,{className:"size-4 animate-spin text-info"});case Xn.READY:return e(vn,{className:"size-4 text-success"});case Xn.ERROR:return e(xn,{className:"size-4 text-destructive"});default:return e(It,{className:"size-4 text-muted"})}},i=t=>{switch(t){case Xn.UPLOADING:return e(c,{variant:"info",children:r("agent.uploading")});case Xn.PROCESSING:return e(c,{variant:"info",children:r("agent.processing")});case Xn.READY:return e(c,{variant:"success",children:r("agent.ready")});case Xn.ERROR:return e(c,{variant:"destructive",children:r("agent.error")});default:return null}};return e("div",{className:"h-full min-h-0",children:0===a.length?e(Sd,{icon:e(It,{className:"mb-2 size-8"}),children:r("agent.noFilesUploadedYet")}):e("div",{className:"space-y-2 p-2",children:a.map(n=>t("div",{className:"flex items-start gap-2 p-2 border border-muted rounded-md",children:[e("div",{className:"mt-0.5",children:s(n.status)}),t("div",{className:"flex-1 min-w-0",children:[t("div",{className:"flex items-center justify-between gap-2",children:[e("span",{className:"text-sm font-medium truncate",children:n.name}),i(n.status)]}),n.error&&e("div",{className:"text-xs text-destructive mt-1",children:n.error})]})]},n.id))})})}class Id extends $e.Component{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,message:e instanceof Error?e.message:String(e)}}componentDidCatch(e,t){console.error("Agent right panel section failed to render",{error:e,componentStack:t.componentStack})}render(){return this.state.hasError?t("div",{className:s("rounded-md border border-destructive bg-mixer-destructive/10 text-destructive",this.props.compact?"p-2 text-xs":"m-3 p-3 text-sm"),children:[e("div",{className:"font-medium",children:this.props.title}),e("div",{className:"mt-1 text-xs text-muted",children:this.props.description}),this.state.message&&e("div",{className:"mt-1 break-all text-[11px] text-muted",children:this.state.message})]}):this.props.children}}function zd({workstreams:n,messages:a,runId:i}){const{t:o}=Ke(),{client:d}=Ze(),m=l(),u=Ee(()=>function(e){const t=new Map;for(const n of e){const e=bd(n.details);if(!e)continue;const r=e.workstream_id||n.workstream_id||"main",a=e.updated_at??("number"==typeof n.timestamp?n.timestamp:new Date(n.timestamp).getTime()),s=t.get(r);(!s||a>=s.timestamp)&&t.set(r,{state:{...e,workstream_id:r},timestamp:a})}return new Map(Array.from(t.entries()).map(([e,t])=>[e,t.state]))}(a),[a]),p=o("agent.panelRenderErrorDescription"),h=Ue(e=>{navigator.clipboard.writeText(e),m({status:"success",title:o("agent.runIdCopied"),duration:2e3})},[o,m]),f=Ue(async e=>{try{const t=await $i(d,e);t&&window.open(t,"_blank")}catch{m({status:"error",title:o("agent.failedToDownload")})}},[d,o,m]);return 0===n.length?e(Sd,{icon:e(pn,{className:"mb-2 size-8"}),children:o("agent.noActiveParallelTasks")}):t("div",{className:"h-full min-h-0 overflow-y-auto px-2 py-2",children:[e("div",{className:"px-1 pb-2 text-xs text-muted",children:o("agent.parallelWorkDescription")}),e("div",{className:"divide-y divide-border/60",children:n.map(n=>{const a="running"===n.status||"canceling"===n.status,l=Math.round(n.elapsed_ms/1e3),d=Math.max(0,Math.round(n.remaining_ms/1e3)),m=n.deadline_ms>0?Math.min(100,Math.round(n.elapsed_ms/n.deadline_ms*100)):0,g=u.get(n.workstream_id),x=n.deadline_ms>0,v=[n.phase?lo(n.phase):void 0,l>0?o("agent.elapsed",{seconds:l}):void 0,x&&d>0?o("agent.remaining",{seconds:d}):void 0].filter(Boolean),b=(()=>{switch(n.status){case"running":return e(c,{variant:"info",children:o("agent.running")});case"canceling":return e(c,{variant:"attention",children:o("agent.canceling")});case"completed":return e(c,{variant:"done",children:o("agent.completed")});case"failed":return e(c,{variant:"destructive",children:o("agent.failed")});case"timeout":return e(c,{variant:"destructive",children:o("agent.timeout")});case"canceled":return e(c,{variant:"destructive",children:o("agent.canceled")})}})();return e(Id,{title:o("agent.workstreamRenderError"),description:p,compact:!0,children:e("div",{className:"py-3",children:t("div",{className:"flex items-start gap-2",children:[e("span",{className:s("mt-2 size-2 shrink-0 rounded-full",po(n.status)),"aria-hidden":"true"}),t("div",{className:"min-w-0 flex-1",children:[t("div",{className:"flex min-w-0 items-center justify-between gap-2",children:[e("span",{className:"min-w-0 truncate text-sm font-medium text-foreground",title:n.workstream_id,children:lo(n.workstream_id)}),b]}),v.length>0&&e("div",{className:"mt-0.5 truncate text-xs text-muted",children:v.join(" · ")}),a&&x&&e("div",{className:"mt-2 h-1 rounded-full bg-muted",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":m,"aria-valuetext":o("agent.workstreamProgress",{percent:m}),children:e("div",{className:"h-full rounded-full bg-info transition-all duration-500",style:{width:`${m}%`}})}),g&&e(Id,{title:o("agent.browserWidgetRenderError"),description:p,compact:!0,children:e(Nd,{state:g,runId:i,compact:!0,className:"mt-2"})}),n.child_workflow_run_id&&t("div",{className:"mt-2 flex flex-wrap gap-1",children:[t(r,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-muted hover:text-foreground",onClick:()=>h(n.child_workflow_run_id),children:[e(hn,{className:"size-3 me-1"}),o("agent.copyRunId")]}),t(r,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-muted hover:text-foreground",onClick:()=>f(n.child_workflow_run_id),children:[e(Vt,{className:"size-3 me-1"}),o("agent.download")]})]})]})]})})},n.launch_id)})})]})}function jd({tabs:n,activeTab:r,onChange:a,ariaLabel:i}){const[o,l]=Le(!1),c=n.find(e=>e.name===r)??n[0];return t(N,{open:o,onOpenChange:l,children:[e(k,{asChild:!0,children:t("button",{type:"button","aria-label":i,"aria-haspopup":"menu","aria-expanded":o,className:s("inline-flex min-w-40 max-w-56 flex-row items-center justify-between gap-2 rounded-md border border-border bg-transparent px-2.5 py-2 text-start text-inherit","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","hover:bg-muted"),children:[e("span",{className:"min-w-0 flex-1 overflow-hidden text-sm",children:c?.label}),e(fn,{className:"size-4 shrink-0 opacity-50","aria-hidden":"true"})]})}),e(C,{align:"start",className:"z-[1000000] min-w-56 max-w-[min(24rem,calc(100vw-1rem))]",children:n.map(n=>{const s=n.name===r;return t(_,{className:"min-h-9 justify-between gap-3 px-2 py-1.5 text-sm",onSelect:()=>{a(n.name),l(!1)},children:[e("span",{className:"min-w-0 flex-1 overflow-hidden",children:n.label}),s&&e(gn,{className:"size-4 shrink-0","aria-hidden":"true"})]},n.name)})})]})}const Rd=$e.memo(function({plan:n,workstreamStatus:a,plans:s=[],activePlanIndex:i=0,onChangePlan:o,activeWorkstreams:l=[],messages:c=[],hideWorkstreams:d=!1,openDocuments:m=[],activeDocumentId:u,onSelectDocument:p,onCloseDocument:h,onUpdateDocumentTitle:f,docRefreshKey:g=0,runId:x,processingFiles:v,showArtifacts:b=!1,artifactRefreshKey:N=0,payloadContent:k,conversationContent:C,onClose:_,defaultTab:S,activeTab:T,onTabChange:I}){const{t:z}=Ke(),[j,R]=Le(S||"plan"),P=T??j,A=e=>{R(e),I?.(e)},D=!d&&l.length>0,$=m.length>0,E=!!v&&v.size>0,L=Ue((t,n)=>e(Id,{title:z("agent.panelRenderError",{name:t}),description:z("agent.panelRenderErrorDescription"),children:n}),[z]),F={name:"conversation",label:"Conversation",content:C?L("Conversation",e("div",{className:"flex flex-col h-full min-h-0",children:C})):null,is_allowed:!!C},O=[...C?[F]:[],{name:"plan",label:z("agent.plan"),content:L(z("agent.plan"),n?e(_d,{plan:n,workstreamStatus:a||new Map,isOpen:!0,onClose:_,plans:s,activePlanIndex:i,onChangePlan:o}):e(Sd,{icon:e(pn,{className:"mb-2 size-8"}),children:z("agent.noPlanAvailable")})),is_allowed:!0},{name:"workstreams",label:D?t("span",{className:"inline-flex min-w-0 items-center gap-1 whitespace-nowrap",children:[z("agent.workstreams")," ",e("span",{className:"inline-flex shrink-0 items-center justify-center rounded-full bg-info px-1.5 py-0.5 text-[10px] text-info",children:l.length})]}):z("agent.workstreams"),content:L(z("agent.workstreams"),e(zd,{workstreams:l,messages:c,runId:x})),is_allowed:!d},{name:"documents",label:$?t("span",{className:"inline-flex min-w-0 items-center gap-1 whitespace-nowrap",children:[z("agent.documents")," ",e("span",{className:"inline-flex shrink-0 items-center justify-center rounded-full bg-info px-1.5 py-0.5 text-[10px] text-info",children:m.length})]}):z("agent.documents"),content:L(z("agent.documents"),m.length>0&&p&&h?e(Cd,{isOpen:!0,documents:m,activeDocumentId:u??null,onSelectDocument:p,onCloseDocument:h,onUpdateDocumentTitle:f,refreshKey:g,runId:x}):e(Sd,{icon:e(It,{className:"mb-2 size-8"}),children:z("agent.noDocumentsOpen")})),is_allowed:!0},{name:"uploads",label:E?t("span",{className:"inline-flex min-w-0 items-center gap-1 whitespace-nowrap",children:[z("agent.uploads")," ",e("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-info"})]}):z("agent.uploads"),content:L(z("agent.uploads"),e(Td,{files:v})),is_allowed:!0},{name:"artifacts",label:z("agent.artifacts"),content:L(z("agent.artifacts"),e(xd,{runId:x,refreshKey:N})),is_allowed:b},{name:"payload",label:z("agent.payload"),content:k?L(z("agent.payload"),e("div",{className:"overflow-y-auto",children:k})):null,is_allowed:!!k}],M=O.filter(e=>void 0===e.is_allowed||!0===e.is_allowed);return t(y,{tabs:O,current:P,onTabChange:A,fullHeight:!0,className:"px-0",children:[t("div",{className:"flex items-center justify-between shrink-0 px-1 py-1 gap-1",children:[e("div",{className:"min-w-0",children:e(jd,{ariaLabel:z("agent.selectRightPanelSection"),tabs:M,activeTab:P,onChange:A})}),!C&&e(r,{variant:"ghost",size:"sm",className:"shrink-0 ms-1",onClick:_,title:"Close Right Panel",children:e(St,{className:"size-4"})})]}),e(w,{className:"flex-1 min-h-0 pt-0 pb-0"})]})});function Pd(e){if("string"==typeof e&&e.trim().length>0)return e}function Ad(e,t){const n=Pd(e.revision_root_id)||Pd(e.revision_root)||Pd(e.root_document_id)||Pd(e.root_id);if(n)return n;const r=e.revision_info;if(r&&"object"==typeof r){const e=Pd(r.root);if(e)return e}return t}function Dd(e,t){return e.revisionRootId&&t.revisionRootId?e.revisionRootId===t.revisionRootId:t.revisionRootId?e.id===t.revisionRootId:e.revisionRootId?e.revisionRootId===t.id:e.id===t.id}function $d(e){if(function(e){return e.type.startsWith("image/")}(e)&&"undefined"!=typeof URL&&URL.createObjectURL)return URL.createObjectURL(e)}function Ed(e){"undefined"!=typeof URL&&URL.revokeObjectURL&&URL.revokeObjectURL(e)}class Ld{_listeners=new Set;snapshot;constructor(e){this.snapshot=new Fd(e,this)}subscribe=e=>(this._listeners.add(e),()=>{this._listeners.delete(e)});getSnapshot=()=>this.snapshot;notify(){this._listeners.forEach(e=>{e()})}}class Fd{vertesia;_interactive=!0;_debug_mode=!1;_non_blocking_subagents=!0;_checkpoint_tokens;_visibility;_user_channels;_collection;_start=!1;_preserveRunValues=!1;_interaction;_environment;_model="";_model_options;_tool_names=[];_data;_mode="start";_scheduledWorkflowConfig;_interactionParamsSchema;_schemaVersion=0;_inputValidator;_store;constructor(e,t){this.vertesia=e,this._store=t}onStateChanged(){const e=this.clone();this._store.snapshot=e,this._store.notify()}clone(){const e=new Fd(this.vertesia,this._store);return e._interactionParamsSchema=this._interactionParamsSchema,e._schemaVersion=this._schemaVersion,e._interaction=this._interaction,e._data=this._data,e._environment=this._environment,e._model=this._model,e._model_options=this._model_options?{...this._model_options}:void 0,e._tool_names=[...this._tool_names],e._interactive=this._interactive,e._debug_mode=this._debug_mode,e._non_blocking_subagents=this._non_blocking_subagents,e._checkpoint_tokens=this._checkpoint_tokens,e._visibility=this._visibility,e._user_channels=this._user_channels?[...this._user_channels]:void 0,e._inputValidator=this._inputValidator,e._start=this._start,e._collection=this._collection,e._preserveRunValues=this._preserveRunValues,e._mode=this._mode,e._scheduledWorkflowConfig=this._scheduledWorkflowConfig,e}set mode(e){e!==this._mode&&(this._mode=e,"schedule"!==e||this._scheduledWorkflowConfig||(this._scheduledWorkflowConfig={name:"",description:"",cron_expression:"0 9 * * *",timezone:"UTC"}),this.onStateChanged())}get mode(){return this._mode}set scheduledWorkflowConfig(e){this._scheduledWorkflowConfig=e,this.onStateChanged()}get scheduledWorkflowConfig(){return this._scheduledWorkflowConfig}updateScheduledWorkflowConfig(e){this._scheduledWorkflowConfig={...this._scheduledWorkflowConfig,...e},this.onStateChanged()}get interactive(){return this._interactive}set interactive(e){e!==this._interactive&&(this._interactive=e,this.onStateChanged())}get debug_mode(){return this._debug_mode}set debug_mode(e){e!==this._debug_mode&&(this._debug_mode=e,this.onStateChanged())}get non_blocking_subagents(){return this._non_blocking_subagents}set non_blocking_subagents(e){e!==this._non_blocking_subagents&&(this._non_blocking_subagents=e,this.onStateChanged())}get checkpoint_tokens(){return this._checkpoint_tokens}set checkpoint_tokens(e){e!==this._checkpoint_tokens&&(this._checkpoint_tokens=e,this.onStateChanged())}get visibility(){return this._visibility}set visibility(e){e!==this._visibility&&(this._visibility=e,this.onStateChanged())}get user_channels(){return this._user_channels}set user_channels(e){this._user_channels=e,this.onStateChanged()}get collection(){return this._collection}set collection(e){e!==this._collection&&(this._collection=e,this.onStateChanged())}get search_scope(){return this._collection?er.Collection:void 0}async restoreConversation(e){let t=e.interaction;if(e.version){/^[a-fA-F0-9]{24}$/.test(t)||(t=`${t}@${e.version}`)}const n=await this.vertesia.interactions.catalog.resolve(t),r=n.runtime?.environment||e.config?.environment,a=e.config?.model,s=await(r?this.vertesia.environments.retrieve(r).catch(()=>{}):Promise.resolve(void 0));this._data=e.data,this.interaction=n,null!=e.interactionParamsSchema&&(this.interactionParamsSchema=e.interactionParamsSchema),this._tool_names=e.tool_names||[],this._interactive=e.interactive,this._debug_mode=e.debug_mode??!1,this._non_blocking_subagents=e.non_blocking_subagents??!0,this._checkpoint_tokens=e.checkpoint_tokens,this._user_channels=e.user_channels,this._model_options=e.config?.model_options,this.collection=e.collection_id??void 0,this._model_options=e.config?.model_options,this.environment=s,a&&(this._model=a),this.onStateChanged()}get interaction(){return this._interaction}set interaction(e){if(e?.id!==this._interaction?.id){if(this._interaction=e,this.interactionParamsSchema=e?tr(e.prompts):void 0,this._inputValidator=void 0,e&&!this._preserveRunValues&&(this._model_options=e.model_options,e.runtime?.environment)){const t=e.runtime.environment;this.vertesia.environments.retrieve(t).then(e=>this.environment=e)}this.onStateChanged()}}get environment(){return this._environment}set environment(e){if(e?.id!==this._environment?.id){if(this._environment=e,!this._preserveRunValues){const t=this.interaction?.runtime?.model;t&&e&&nr(t,e.provider)?this._model=t:this._model=e?.default_model&&nr(e.default_model,e.provider)?e.default_model:""}this.onStateChanged()}}get model(){return this._model}set model(e){e!==this._model&&(this._model=e||"",this.onStateChanged())}get model_options(){return this._model_options}set model_options(e){JSON.stringify(e)!==JSON.stringify(this._model_options)&&(this._model_options=e,this.onStateChanged())}get tool_names(){return this._tool_names}set tool_names(e){this._tool_names=e,this.onStateChanged()}get data(){return this._data}set data(e){this._data=e,this.onStateChanged()}set run(e){console.log("run",e),this.onStateChanged()}set start(e){this._start!==e&&(this._start=e,this.onStateChanged())}markStarted(){this.start=!0}setMode(e){this.mode=e}setInteraction(e){this.interaction=e}setEnvironment(e){this.environment=e}setModel(e){this.model=e}setModelOptions(e){this.model_options=e}setToolNames(e){this.tool_names=e}setCollection(e){this.collection=e}setInteractive(e){this.interactive=e}setDebugMode(e){this.debug_mode=e}setUserChannels(e){this.user_channels=e}setCheckpointTokens(e){this.checkpoint_tokens=e}setVisibility(e){this.visibility=e}setData(e){this.data=e}setPreserveRunValues(e){this.preserveRunValues=e}get start(){return this._start}get preserveRunValues(){return this._preserveRunValues}set preserveRunValues(e){this._preserveRunValues=e}get schemaVersion(){return this._schemaVersion}get interactionParamsSchema(){return this._interactionParamsSchema}set interactionParamsSchema(e){this._interactionParamsSchema!==e&&(this._interactionParamsSchema=e,this._schemaVersion+=1,e&&(this._data=this.initializeBooleanDefaults(this._data||{},e)),this.onStateChanged())}initializeBooleanDefaults(e,t){if(!t.properties)return e;const n={...e};for(const[e,r]of Object.entries(t.properties)){const t=r;"boolean"===t.type&&void 0===n[e]?n[e]=!1:"object"===t.type&&t.properties&&(n[e]=this.initializeBooleanDefaults(n[e]||{},t))}return n}reset(){if(this._start=!1,this._interactive=!0,this._debug_mode=!1,this._non_blocking_subagents=!0,this._checkpoint_tokens=void 0,this._visibility=void 0,this._user_channels=void 0,this._collection=void 0,this._preserveRunValues=!1,this._model="",this._model_options=void 0,this._environment=void 0,this._tool_names=[],this._interaction=void 0,this._data=void 0,this._interactionParamsSchema=null,this._inputValidator=void 0,this.model=void 0,this.environment=void 0,this.onStateChanged(),location.hash){const e=window.location.origin+window.location.pathname+window.location.search;history.replaceState(null,"",e),location.hash=""}}validateInput(){if(!this._interactionParamsSchema)return{isValid:!0};if(!this._inputValidator||this._inputValidator.schema!==this._interactionParamsSchema){const e=new ia({strict:!1});this._inputValidator={validate:e.compile(this._interactionParamsSchema),schema:this._interactionParamsSchema}}const e=this._data||{};if(!this._inputValidator.validate(e)){return{isValid:!1,errorMessage:this._inputValidator.validate.errors?this._inputValidator.validate.errors.map(e=>`${e.instancePath}: ${e.message}`).join(", "):"Invalid payload data"}}return{isValid:!0}}}const Od=Fe(void 0);function Md({children:t}){const{client:n}=Ze(),[r]=Le(()=>new Ld(n)),a=He(r.subscribe,r.getSnapshot);return e(Od.Provider,{value:a,children:t})}function Ud(){const e=Oe(Od);if(!e)throw new Error("usePayloadBuilder must be used within a PayloadProvider");return e}function Wd({title:n,variant:a="full",isTerminal:i=!1,onClose:o,isModal:l,agentRunId:c,workflowRunId:d,viewMode:m,onViewModeChange:u,showPlanPanel:p,showPlanButton:h=!0,onTogglePlanPanel:f,showPlaybackButton:g=!1,isPlaybackEnabled:x=!1,onTogglePlayback:v,onDownload:b,onExportFixture:y,resetWorkflow:w,onExportPdf:N,onShowDetails:k,allowWorkflowControl:C=!0,onClone:_,isReceivingChunks:S=!1,className:T}){const{t:I}=Ke(),z="compact"===a,j="sliding"===m?"stacked":"sliding",R=I("agent.verbose"),P=I("agent.summary"),A="stacked"===j?R:P,D=t("div",{className:s(z?"flex flex-col items-center gap-1":"flex justify-end items-center gap-2 ms-auto"),children:[z?e(r,{variant:"ghost",size:"icon",onClick:()=>u(j),className:"size-8 rounded-lg",title:A,"aria-label":A,children:e("stacked"===j?bn:yn,{className:"size-4"})}):t("div",{className:"flex items-center gap-1 bg-muted rounded p-0.5 mt-2 lg:mt-0",children:[t(r,{variant:"stacked"===m?"outline":"ghost",size:"xs",onClick:()=>u("stacked"),"aria-pressed":"stacked"===m,className:"gap-1.5",children:[e(bn,{className:"size-3.5"}),R]}),t(r,{variant:"sliding"===m?"outline":"ghost",size:"xs",onClick:()=>u("sliding"),"aria-pressed":"sliding"===m,className:"gap-1.5",children:[e(yn,{className:"size-3.5"}),P]})]}),h&&e("div",{className:"relative",children:t(r,{size:"compact"===a?"icon":"sm",variant:p?"primary":"ghost",onClick:f,className:s("transition-all duration-200 rounded-md","compact"===a&&"size-8 rounded-lg"),title:I("agent.toggleRightSidebar"),children:[e(mn,{className:s("size-4","full"===a&&"me-1.5")}),e("span","full"===a?{className:"font-medium text-xs",children:I(p?"agent.hideSidebar":"agent.showSidebar")}:{className:"sr-only",children:I(p?"agent.hideSidebar":"agent.showSidebar")})]})}),g&&v&&t(r,{type:"button",size:"compact"===a?"icon":"sm",variant:x?"primary":"ghost",onClick:v,"aria-pressed":x,"aria-label":I("agent.rewind.label"),title:I("agent.rewind.label"),className:s("transition-all duration-200 rounded-md","compact"===a&&"size-8 rounded-lg"),children:[e(wn,{className:s("size-4","full"===a&&"me-1.5")}),e("span","full"===a?{className:"font-medium text-xs",children:I("agent.rewind.label")}:{className:"sr-only",children:I("agent.rewind.label")})]}),e(Vd,{compact:z,agentRunId:c,workflowRunId:d,isModal:l,isTerminal:i,onClose:o,onDownload:b,onExportFixture:y,resetWorkflow:w,onExportPdf:N,onShowDetails:k,allowWorkflowControl:C,onClone:_}),o&&!l&&e(r,{size:"xs",variant:"ghost",onClick:o,"aria-label":I("agent.close"),children:e(St,{className:"size-4"})})]});return e(Md,"compact"===a?{children:e("div",{className:s("inline-flex items-center rounded-xl border border-border/70 bg-background/90 p-1 shadow-lg shadow-black/10 backdrop-blur",T),children:D})}:{children:t("div",{className:s("flex flex-wrap items-end justify-between py-1.5 px-2 border-b shadow-sm flex-shrink-0",T),children:[t("div",{className:"flex flex-wrap items-center space-x-2",children:[t("div",{className:"flex items-center space-x-1",children:[e(Pt,{className:"size-5 text-muted"}),e("span",{className:"font-medium",children:n})]}),t("span",{className:"text-xs text-muted ms-1 flex items-center gap-1.5",children:["(Agent Run ID: ",c,")",e("span",{className:s("w-2 h-2 rounded-full transition-colors duration-200",S?"bg-purple-500 shadow-[0_0_6px_2px_rgba(168,85,247,0.6)]":"bg-gray-400")})]})]}),D]})})}function Vd({compact:n=!1,agentRunId:a,workflowRunId:s,isModal:i,isTerminal:o,onClose:c,onDownload:u,onExportFixture:p,resetWorkflow:h,onExportPdf:f,onShowDetails:g,allowWorkflowControl:x=!0,onClone:v}){const{t:b}=Ke(),y=l(),{client:w}=Ze(),N=Ud(),{router:k}=Lr();return e(d,{align:"right",trigger:e(r,{size:n?"icon":"xs",variant:"ghost",title:b("agent.moreActions"),"aria-label":b("agent.moreActions"),className:n?"size-8 rounded-lg":void 0,children:e(Cn,{className:"size-4"})}),children:t(S,{label:"Actions",children:[i&&t(m,{onClick:()=>(e=>{const t=e.startsWith("/")?k.getTopRouter().navigator.addStickyParams(e):e;return window.open(t,"_blank"),t})(`/store/agent-runner/${a}`),children:[e(_t,{className:"size-3.5 text-muted"})," ",b("agent.openInNewTab")]}),t(m,{onClick:()=>{navigator.clipboard.writeText(a),y({status:"success",title:b("agent.agentRunIdCopied"),duration:2e3})},children:[e(jt,{className:"size-3.5 text-muted"})," ",b("agent.copyAgentRunId")]}),t(m,{onClick:()=>{navigator.clipboard.writeText(s),y({status:"success",title:b("agent.workflowRunIdCopied"),duration:2e3})},children:[e(jt,{className:"size-3.5 text-muted"})," ",b("agent.copyWorkflowRunId")]}),g&&t(m,{onClick:g,children:[e(Nn,{className:"size-3.5 text-muted"})," ",b("agent.details")]}),t(m,{onClick:()=>{u?u():$i(w,a).then(e=>window.open(e,"_blank"))},children:[e(Vt,{className:"size-3.5 text-muted"})," ",b("agent.downloadConversation")]}),f&&t(m,{onClick:f,children:[e(Vt,{className:"size-3.5 text-muted"})," ",b("agent.exportAsPdf")]}),p&&t(m,{onClick:p,children:[e(Vt,{className:"size-3.5 text-muted"})," ",b("agent.rewind.exportFixture")]}),c&&i&&t(m,{onClick:c,children:[e(St,{className:"size-3.5 text-muted"})," ",b("agent.close")]}),v&&t(m,{onClick:async()=>{try{const e=await w.agents.fork(a);y({status:"success",title:b("agent.conversationCloned"),duration:2e3}),v?.(e)}catch(e){y({status:"error",title:b("agent.failedToCloneConversation"),duration:2e3})}},children:[e(kn,{className:"size-3.5 text-muted"})," ",b("agent.cloneConversation")]}),x&&!o&&t(m,{onClick:async()=>{try{return await w.agents.terminate(a,"cancel"),y({status:"success",title:b("agent.workflowCancelled"),duration:2e3}),N.reset(),h?.(),!0}catch(e){return y({status:"error",title:b("agent.failedToCancelWorkflow"),duration:2e3}),!1}},variant:"destructive",children:[e(St,{className:"size-3.5"})," ",b("agent.cancelWorkflow")]})]})})}function Bd(e){return function(e){return"object"==typeof e&&null!==e&&"value"in e}(e)?e.value:e}function qd(e){if("stringList"===e.type)return e.value.map(e=>"string"==typeof e?e:Bd(e));if(e.multiple)return e.value.map(Bd);const t=e.value[0];return void 0===t?void 0:Bd(t)}function Hd(e,t,n){e.query[t]=n}function Gd({buckets:n,name:r,placeholder:a}){const s=n.map(e=>({label:`(${e.count})`,value:e._id}));return{name:r,placeholder:a||`${r.charAt(0).toUpperCase()+r.slice(1)}`,options:s,type:"select",labelRenderer:r=>{const a=n.find(e=>e._id===r),s=a?.name||r;let i="success";if(a?.status)switch(a.status){case rr.published:i="success";break;case rr.archived:i="destructive";break;case rr.code:i="info"}const o=a?.version&&a?.status?`v${a.version} ${a.status!==rr.unknown?a.status:""}`:a?.status||(a?.version?`v${a.version}`:"");return t("div",{className:"w-full flex items-center justify-between",children:[t("div",{className:"flex flex-row flex-wrap items-center gap-2 min-w-0 flex-1",children:[e("span",{className:"text-sm truncate",children:s}),o&&e(c,{variant:i,className:"text-xs w-fit",children:o})]}),(a?.count??0)>0&&t("span",{className:"ms-2 text-xs shrink-0",children:["(",a?.count,")"]})]})},filterBy:(e,t)=>{const r=n.find(t=>t._id===e);return(r?.name||e).toLowerCase().includes(t.toLowerCase())}}}function Jd(e){return`${e._id} (${e.count})`}function Kd(e){return`${e.name} (${e.count})`}function Yd({buckets:e,name:t,placeholder:n,type:r,multiple:a}){return function({buckets:e,name:t,placeholder:n,type:r="select",multiple:a=!1}){return{name:t,options:e.map(e=>({label:Jd(e),value:e._id})),type:r,multiple:a,placeholder:`${n??`${t.charAt(0).toUpperCase()+t.slice(1)}`}`,allowCreate:!1}}({buckets:e,name:t,placeholder:n,type:r,multiple:a})}const Qd={},Zd={},Xd={};function em(e){return"object"==typeof e&&null!==e&&"status"in e&&404===e.status}function tm(e,t,n){let r=e[t];return r||(r=n().catch(n=>{throw em(n)||delete e[t],n}),e[t]=r),r}function nm(e){const{client:t}=Ze();return z(()=>tm(Qd,e,()=>t.users.retrieve(e)),{deps:[e],condition:()=>!!e})}function rm(e){const{client:t}=Ze();return z(()=>tm(Zd,e,()=>t.iam.groups.retrieve(e)),{deps:[e],condition:()=>!!e})}function am(e){const{client:t}=Ze();return z(()=>tm(Xd,e,()=>t.apikeys.retrieve(e)),{deps:[e],condition:()=>!!e})}function sm(){return e("div",{className:"size-8"})}function im({showTitle:n=!1,size:r="md"}){const{t:a}=Ke();return e(vm,{title:a("user.systemUser"),description:a("user.systemUserDescription"),children:t("div",{className:"flex gap-2 items-center",children:[e(T,{src:"/icon.svg",size:r}),n&&e("div",{className:"text-sm font-semibold ps-2",children:a("user.systemUser")})]})})}function om({showTitle:n=!1,size:r="md"}){const{t:a}=Ke();return e(vm,{title:a("user.allProjectMembers"),description:a("user.allProjectMembersDescription"),children:t("div",{className:"flex gap-2 items-center",children:[e(_n,{className:"size-4",size:r}),n&&e("div",{className:"text-sm font-semibold ps-2",children:a("user.allProjectMembers")})]})})}function lm({accountId:r,showTitle:a=!1,size:s="md"}){const{t:i}=Ke(),o=r.split(":")[0],l=r.split(":")[1],c=t(n,{children:[e("div",{children:i("user.serviceAccountDescription")}),t("div",{className:"text-muted text-sm",children:[e("span",{className:"font-semibold",children:"Type:"})," ",o]}),t("div",{className:"text-muted text-sm",children:[e("span",{className:"font-semibold",children:"ID:"})," ",l]})]});return e(vm,{title:i("user.serviceAccount"),description:c,children:t("div",{className:"flex flex-row items-center gap-2",children:[e(T,{src:"/cloud.svg",name:"SA",color:"bg-amber-500",className:"px-[5px] text-white",size:s}),a&&t("div",{className:"text-sm font-semibold ps-2 truncate",children:[i("user.serviceAccount")," : ~",l.slice(-6)]})]})})}function cm({email:r,showTitle:a=!1,size:s="md"}){const{t:i}=Ke(),o=t(n,{children:[e("div",{children:i("user.serviceAccountDescription")}),t("div",{className:"text-muted text-sm",children:[e("span",{className:"font-semibold",children:"Email:"})," ",r]})]});return e(vm,{title:"Email Agent",description:o,children:t("div",{className:"flex items-center gap-2",children:[t("div",{className:"flex items-center -space-x-2",children:[e(T,{src:"/cloud.svg",color:"bg-amber-500",className:"px-[5px] text-white border-2 border-white dark:border-gray-800",size:s}),e(T,{name:r,size:s,className:"border-2 border-white dark:border-gray-800"})]}),a&&t("div",{className:"text-sm font-semibold truncate",children:[i("user.agentOnBehalfOf")," : ",r]})]})})}function dm({agentId:r,onBehalfOfType:a,onBehalfOfId:s,showTitle:i=!1,size:o="md",isScheduleAgent:l=!1}){const{t:c}=Ke(),d="user"===a&&s,m="apikey"===a&&s,u=nm(s||""),p=am(s||""),h=d?u.data:void 0,f=m?p.data:void 0,g=r.slice(-6),x=h?c("user.agentOnBehalfOf"):f?c("user.agentOnBehalfOfApiKey"):`${c("user.serviceAccount")}~${g}`,v=l?c("user.schedule",{title:x}):x,b=t("div",{className:"space-y-2",children:[h&&t("div",{className:"flex items-center gap-2",children:[e(T,{src:h.picture,name:h.name,size:"sm"}),t("div",{children:[e("div",{className:"font-medium",children:h.name||h.email}),h.email&&h.name&&e("div",{className:"text-xs text-muted",children:h.email})]})]}),f&&t("div",{children:[e("div",{className:"font-medium",children:f.name}),t("div",{className:"text-xs text-muted-foreground",children:["Key ID: ",f.id]})]}),!h&&!f&&t(n,{children:[e("div",{children:c("user.serviceAccountDescription")}),t("div",{className:"text-gray-800 dark:text-gray-500 text-sm",children:[e("span",{className:"font-semibold",children:"ID:"})," ",r]})]})]});return e(vm,{title:v,description:b,children:t("div",{className:"flex items-center gap-2",children:[t("div",{className:"flex items-center -space-x-2",children:[e(T,{src:"/cloud.svg",color:"bg-amber-500",className:"px-[5px] text-white border-2 border-white dark:border-gray-800",size:o}),h&&e(T,{src:h.picture,name:h.name,size:o,className:"border-2 border-white dark:border-gray-800"}),f&&e(T,{name:"API",color:"bg-gray-400",size:o,className:"border-2 border-white dark:border-gray-800"})]}),i&&e("div",{className:"text-sm font-semibold truncate",children:h?`Agent (${h.name||h.email})`:f?`Agent (${f.name})`:x})]})})}function mm({title:t="Error",error:n,showTitle:r=!1,size:a="md"}){return e(hm,{title:t,message:j(n),color:"bg-red-500",showTitle:r,size:a})}function um({showTitle:t=!1,size:n="md",color:r}){const{t:a}=Ke();return e(hm,{title:a("user.unknownUser"),message:a("user.unknownUserDescription"),color:r,showTitle:t,size:n})}function pm({userRef:t,showTitle:n=!1,size:r="md"}){const{t:a}=Ke();if(!t)return e(hm,{title:a("user.unknownUser"),message:a("user.unknownUserDescription"),showTitle:n,size:r});const s=t.split(":"),i=s[0];switch(i){case ar.User:return e(gm,{userId:s[1],showTitle:n,size:r});case ar.Group:return e(fm,{userId:s[1],showTitle:n,size:r});case"system":return e(im,{showTitle:n,size:r});case ar.ServiceAccount:return e(lm,{accountId:s.slice(1).join(":"),showTitle:n,size:r});case ar.Agent:{let t,a,i;return"agent"===s[1]?(t=s.slice(2,5).join(":"),a=s[5],i=s[6]):(t=s.slice(1,4).join(":"),a=s[4],i=s[5]),e(dm,{agentId:t,onBehalfOfType:a,onBehalfOfId:i,showTitle:n,size:r})}case ar.Schedule:{const t="agent"===s[2]?s.slice(3,6).join(":"):"unknown-agent",a=s[6],i=s[7];return e(dm,{agentId:t,onBehalfOfType:a,onBehalfOfId:i,showTitle:n,size:r,isScheduleAgent:!0})}case"email":return e(cm,{email:s[1],showTitle:n,size:r});case ar.ApiKey:return e(xm,{keyId:s[1],size:r,showTitle:n});case"project":if("*"===s[1])return e(om,{showTitle:n,size:r});break;default:return e(mm,{title:a("user.unknownUser"),error:`Invalid user ref type: ${i}`,showTitle:n,size:r})}}function hm({title:n,message:r,color:a,size:s="md",showTitle:i=!1}){return e(vm,{title:n,description:r,children:t("div",{className:"flex flex-row items-center gap-2",children:[e(T,{color:a,size:s}),i&&e("div",{className:"text-sm font-semibold ps-1",children:n})]})})}function fm({userId:n,showTitle:r=!1,size:a="md"}){const{t:s}=Ke(),{data:i,error:o}=rm(n);if(o)return em(o)?e(um,{showTitle:r,size:a,color:"bg-indigo-500"}):e(mm,{title:s("user.failedToFetchGroup"),error:o,showTitle:r,size:a});if(!i)return e(sm,{});const l=t("div",{className:"space-y-1",children:[i.description&&e("div",{className:"text-sm",children:i.description}),e("div",{className:"text-xs text-muted-foreground",children:s("user.groupId",{id:i.id})}),i.tags&&i.tags.length>0&&e("div",{className:"flex flex-wrap gap-1",children:i.tags.map(t=>e("span",{className:"px-1.5 py-0.5 bg-muted rounded text-xs",children:t},t))})]});return e(vm,{title:i.name||s("user.unnamedGroup"),description:l,children:t("div",{className:"flex flex-row items-center gap-2",children:[e(Sn,{className:"size-6 text-indigo-500",size:a}),r&&e("div",{className:"text-sm font-semibold ps-2",children:i.name||s("user.unnamedGroup")})]})})}function gm({userId:n,showTitle:r=!1,size:a="md"}){const{t:s}=Ke(),{data:i,error:o}=nm(n);if(o)return em(o)?e(um,{showTitle:r,size:a,color:"bg-indigo-500"}):e(mm,{title:s("user.failedToFetchUser"),error:o,showTitle:r,size:a});if(!i)return e(sm,{});const l=e("div",{className:"truncate",title:i.email,children:i.email});return e(vm,{title:i.name||i.email||i.username||s("user.unknown"),description:l,children:t("div",{className:"flex flex-row items-center gap-2",children:[e(T,{src:i.picture,name:i.name,color:"bg-indigo-500",size:a}),r&&e("div",{className:"text-sm font-semibold ps-2",children:i.name||i.email||i.username||s("user.unknown")})]})})}function xm({keyId:n,showTitle:r=!1,size:a="md"}){const{t:s}=Ke(),{data:i,error:o}=am(n);if(o)return em(o)?e(um,{showTitle:r,size:a,color:"bg-pink-500"}):e(mm,{title:s("user.failedToFetchApiKey"),error:o,showTitle:r,size:a});if(!i)return e(sm,{});const l=s("user.privateKey"),c=e(T,{name:"PK",color:"bg-pink-500",size:a}),d=t(I,{className:"dark:bg-gray-800 dark:text-gray-200 table-fixed w-full",children:[t("tr",{children:[e("td",{className:"font-semibold w-20",children:s("user.key")}),e("td",{className:"truncate max-w-0",children:i?.name})]}),t("tr",{children:[e("td",{className:"font-semibold w-20",children:s("user.account")}),e("td",{className:"truncate max-w-0",children:i?.account})]}),t("tr",{children:[e("td",{className:"font-semibold w-20",children:s("user.project")}),e("td",{className:"truncate max-w-0",children:i?.project.name})]})]});return e(vm,{title:l,description:d,children:t("div",{className:"flex flex-row items-center gap-2",children:[c,r&&e("div",{className:"text-sm font-semibold",children:i?.name||i?.account||i?.project.name||s("user.unknown")})]})})}function vm({title:n,description:r,children:a}){return t(R,{hover:!0,children:[e(P,{className:"cursor-pointer flex items-center inline-block",children:e("div",{children:a})}),e(A,{align:"center",sideOffset:8,side:"right",children:t("div",{className:"flex flex-col gap-1 rounded-md shadow-md p-2",children:[e("div",{className:"text-md font-semibold",children:n}),r]})})]})}function bm({buckets:n,name:r,placeholder:a}){return function({buckets:n,name:r,placeholder:a}){const s=n.map(e=>({value:e._id,label:`(${e.count})`}));return{name:r,placeholder:a||`${r.charAt(0).toUpperCase()+r.slice(1)}`,options:s,labelRenderer:r=>{if("Unknown User"===r||!r){const e=n.find(e=>e._id===r);return`Unknown User (${e?.count||0})`}const a=n.find(e=>e._id===r);return t("div",{className:"flex items-center w-full gap-2",children:[e("div",{className:"flex-1 min-w-0 flex items-center truncate",children:e(pm,{userRef:r,showTitle:!0,size:"sm"})}),t("span",{className:"text-muted-foreground flex-shrink-0",children:["(",a?.count||0,")"]})]})}}}({buckets:n,name:r,placeholder:a})}function ym(e){const t=[];return t.push({name:"id",placeholder:"Agent Run ID",type:"text",multiple:!1}),t.push(Gd({buckets:e.interactions||[],name:"interaction",placeholder:"Interaction"})),t.push(Yd({buckets:e.statuses||[],name:"status",placeholder:"Status"})),t.push(bm({buckets:e.initiated_by||[],name:"initiated_by",placeholder:"Initiated By"})),t.push({name:"start",placeholder:"Started After",type:"date",multiple:!1}),t.push({name:"end",placeholder:"Started Before",type:"date",multiple:!1}),t}function wm(e){return t=>{e.clearFilters(!1,!1),t.forEach(t=>{if(t.value&&t.value.length>0){const n=t.name,r=qd(t);Hd(e,n,r)}}),e.search()}}function Nm({facets:n,search:a,selectionCount:s,actions:i}){const[o,l]=Le([]),c=Me(!1),d=Me("undefined"!=typeof window&&Boolean(new URLSearchParams(window.location.search).get("filters"))),m=ym(n),u=Ee(()=>wm(a),[a]);Ve(()=>{c.current?d.current?d.current=!1:u(o):c.current=!0},[o,u]);return e(D,{filterGroups:m,filters:o,setFilters:l,children:t("div",{className:"gap-2 items-center w-full",children:[t("div",{className:"flex justify-between mb-1",children:[e($,{}),t("div",{className:"flex justify-end",children:[!s&&e("div",{className:"flex items-center justify-between px-2 py-1",children:e("div",{className:"text-sm text-muted-foreground",children:a.initialized?`${a.totalCount} agent runs`:"Loading agent runs..."})}),i&&i.length>0?e("div",{className:"flex items-center gap-2 mb-1 me-2",children:i.map((t,n)=>e("div",{children:t},n))}):null,e(r,{onClick:()=>{a.search()},variant:"outline",title:"Refresh",children:e(Tn,{className:"size-5"})})]})]}),o.length>0&&t("div",{className:"flex items-center gap-2 mb-1",children:[e(E,{}),e(L,{})]})]})})}class km{types;map={};constructor(e){this.types=e,e.sort((e,t)=>e.name.localeCompare(t.name));for(const t of e)this.map[t.id]=t}getType(e){return this.map[e]}getTypeLayout(e){const t=this.map[e];return t?t.table_layout:void 0}getTypeName(e){const t=this.map[e];return t?t.name:void 0}}const Cm=Fe({registry:void 0,isLoading:!1,load:()=>Promise.resolve(),reload:()=>Promise.resolve()});function _m({children:t}){const{store:n,project:r}=Ze(),[a,s]=Le(),[i,o]=Le(!1),l=Me(!1),c=Me(r?.id),d=Ue(async()=>{if(r&&!l.current){l.current=!0,o(!0);try{const e=await n.types.catalog.list({layout:!0});s(new km(e))}catch(e){console.error("Failed to fetch types",e)}finally{o(!1),l.current=!1}}},[n,r]),m=Ue(async()=>(l.current=!1,d()),[d]);return Ve(()=>{c.current!==r?.id&&(c.current=r?.id,s(void 0),l.current=!1)}),e(Cm.Provider,{value:{registry:a,isLoading:i,load:d,reload:m},children:t})}function Sm(){const e=Oe(Cm);return Ve(()=>{e.registry||e.isLoading||e.load()},[e.registry,e.isLoading,e.load]),e}function Tm(e){const{registry:t}=Sm(),n=[];if(n.push({name:"name",placeholder:"Name",type:"text",multiple:!1}),t){const e=t.types.map(e=>({label:e.name,value:e.id})),r={name:"types",placeholder:"Type",type:"select",multiple:!0,options:e,filterBy:(t,n)=>{const r=e.find(e=>e.value===t);return r?.label?.toLowerCase().includes(n.toLowerCase())??!1}};n.push(r)}return n}function Im(e){return t=>{0!==t.length?(e.clearFilters(!1),t.forEach(t=>{if(t.value&&t.value.length>0){const n=t.name,r=qd(t);Hd(e,n,r)}}),e.search()):e.clearFilters(!0)}}function zm({facets:n,search:r}){const[a,s]=Le([]),i=Tm(),o=Im(r);return e(D,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;s(t),o(t)},children:t("div",{className:"flex gap-2 items-center",children:[e($,{}),e(E,{}),e(L,{})]})})}function jm({buckets:n,typeRegistry:r,type:a="select",multiple:s=!1}){const i=new Map;r||console.warn("Type names cannot be resolved"),n.forEach(e=>{let t,n=e._id;null==e._id?(n="Document",t="Document"):(t=r?.getTypeName(e._id),t||(console.warn("Content Object Type not found",e._id),t=e._id)),i.set(n,{name:t,count:e.count})});return{name:"types",placeholder:"Types",type:a,multiple:s,options:n.map(e=>{const t=e._id,n=t||"Document",r=i.get(n);return{value:t,label:r?`${r.name} (${r.count})`:`Unknown (${e.count})`}}),labelRenderer:n=>{const r=i.get(n);return r?t("div",{className:"w-full flex items-center",children:[e("span",{className:"text-sm truncate",children:r.name}),t("span",{className:"ms-2 text-xs",children:["(",r.count,")"]})]}):(console.warn(`Type data not found for ${n}`),n)},filterBy:(e,t)=>{const n=i.get(e);return n?n.name.toLowerCase().includes(t.toLowerCase()):(console.warn(`Type name not found for ${e}`),!1)}}}function Rm(e){return Array.isArray(e)?e:[]}function Pm(e){const{registry:t}=Sm(),n=[];if(n.push({placeholder:"ID",name:"id",type:"text",options:[]}),n.push({placeholder:"Name",name:"name",type:"text",options:[]}),e.type){const r=jm({buckets:Rm(e.type),typeRegistry:t,type:"select",multiple:!0});n.push(r)}if(e.status){const t=Yd({buckets:Rm(e.status),name:"status",placeholder:"Status",type:"select",multiple:!0});n.push(t)}return e.tags&&n.push({name:"tags",placeholder:"Tags",type:"stringList",options:Rm(e.tags).map(e=>({label:e._id,value:e._id}))}),n.push({name:"created_at",placeholder:"Created Date",type:"date",multiple:!0,options:[]}),n.push({name:"updated_at",placeholder:"Updated Date",type:"date",multiple:!0,options:[]}),n}function Am(e){return t=>{0!==t.length?(e.clearFilters(!1),t.forEach(t=>{if(t.value&&t.value.length>0){const n=t.name;let r;if("date"===t.type&&t.multiple){if(Array.isArray(t.value)&&t.value.length>0)if(1===t.value.length){const e=Bd(t.value[0]);r={gte:e,lte:e}}else if(2===t.value.length){r={gte:Bd(t.value[0]),lte:Bd(t.value[1])}}}else r=qd(t);Hd(e,"name"===n?"name":"id"===n?"id":n,r)}}),e.search()):e.clearFilters()}}function Dm({facets:n,search:r}){const[a,s]=Le([]),i=Pm(n),o=Am(r),l=F();return e(D,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;s(t),o(t)},inModal:l,children:t("div",{className:"flex gap-2 items-center",children:[e($,{}),e(E,{}),e(L,{})]})})}function $m({search:t,buckets:n,placeholder:r="All Environments",className:a}){const{client:s}=Ze(),[i,o]=Le([]),l=t.getFilterValue("environment");Ve(()=>{if(s){const e=n.map(async e=>{let t;return await s.environments.retrieve(e._id).then(e=>{t=e.name}).catch(()=>{t=`${e._id} (deleted)`}),t||(t=e._id),{...e,name:t}});Promise.all(e).then(e=>{e.sort((e,t)=>e.name.localeCompare(t.name)),o(e)})}},[n,s]);const c=i?.find(e=>e._id===l);return e(O,{filterBy:"name",className:a,isClearable:!0,optionLabel:Kd,options:i,value:c,onChange:e=>{t.setFilterValue("environment",e?._id)},by:"_id",placeholder:r})}function Em(e){const t=[];t.push({name:"name",placeholder:"Name",type:"text",multiple:!1});t.push({name:"prompt",placeholder:"Prompt Name",type:"text",multiple:!1});t.push({name:"model",placeholder:"Model",type:"text",multiple:!1});return t.push({name:"tags",placeholder:"Tags",type:"stringList",multiple:!0}),t}function Lm(e){return t=>{0!==t.length?(e.clearFilters(!1,!1),t.forEach(t=>{if(t.value&&t.value.length>0){const n=t.name,r=qd(t);Hd(e,n,r)}}),e.search(!0)):e.clearFilters(!0,!0)}}function Fm({facets:n,search:r}){const[a,s]=Le([]),i=Em(),o=Lm(r);return e(D,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;s(t),o(t)},children:t("div",{className:"flex gap-2 items-center",children:[e($,{}),e(E,{}),e(L,{})]})})}function Om(e){const t=[];return t.push(Yd({buckets:e.statuses||[],name:"status",placeholder:"Status",multiple:!1})),t.push({name:"name",placeholder:"Name",type:"text",multiple:!1}),t}function Mm({facets:n,filters:r,setFilters:a}){const s=Om(n);return e(D,{filterGroups:s,filters:r,setFilters:a,children:t("div",{className:"flex items-center gap-2",children:[e($,{}),e(E,{}),e(L,{})]})})}function Um(e){const t=[];return t.push(Yd({buckets:e.statuses||[],name:"status",placeholder:"Status",multiple:!0})),t.push(bm({buckets:e.started_by||[],name:"started_by",placeholder:"Started By"})),t.push(Yd({buckets:e.run_type||[],name:"run_type",placeholder:"Mode",multiple:!0})),t.push(Yd({buckets:e.processes||[],name:"process",placeholder:"Process",multiple:!0})),t.push({name:"start",placeholder:"Started After",type:"date",multiple:!1}),t.push({name:"end",placeholder:"Started Before",type:"date",multiple:!1}),t}function Wm({facets:n,filters:r,setFilters:a}){const s=Um(n);return e(D,{filterGroups:s,filters:r,setFilters:a,children:t("div",{className:"flex items-center gap-2",children:[e($,{}),e(E,{}),e(L,{})]})})}function Vm(e){const t=[];if(t.push({name:"name",placeholder:"Name",type:"text",multiple:!1}),e.role&&e.role.length>0){const n={name:"role",placeholder:"Role",type:"select",options:e.role.map(e=>({label:e._id,value:e._id,count:e.count}))};t.push(n)}return t}function Bm(e){return t=>{0!==t.length?(e.clearFilters(!1,!1),t.forEach(t=>{if(t.value&&t.value.length>0){const n=t.name,r=qd(t);Hd(e,n,r)}}),e.search()):e.clearFilters(!0,!1)}}function qm({facets:n,search:r}){const[a,s]=Le([]),i=Vm(n),o=Bm(r);return e(D,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;s(t),o(t)},children:t("div",{className:"flex gap-2 items-center",children:[e($,{}),e(E,{}),e(L,{})]})})}function Hm(n){const r=[];if(r.push({name:"run_ids",placeholder:"Run ID",type:"text",multiple:!1}),n.interactions){const e=Gd({buckets:n.interactions||[],name:"interaction",placeholder:"Interactions"});r.push(e)}if(n.environments){const a=function({buckets:n,name:r}){const a=n.map(e=>({label:`(${e.count})`,value:e._id}));return{name:"environment",placeholder:r.charAt(0).toUpperCase()+r.slice(1),options:a,type:"select",labelRenderer:r=>{const a=n.find(e=>e._id===r);return t("div",{className:"w-full flex items-center",children:[e("span",{className:"text-sm truncate",children:a?.name||r}),t("span",{className:"ms-2 text-xs",children:["(",a?.count||0,")"]})]})},filterBy:(e,t)=>{const r=n.find(t=>t._id===e);return(r?.name||e).toLowerCase().includes(t.toLowerCase())}}}({buckets:n.environments||[],name:"environments"});r.push(a)}if(r.push({name:"tags",placeholder:"Tags",type:"stringList",multiple:!0}),n.models){const e=Yd({buckets:n.models||[],name:"model"});r.push(e)}if(n.statuses){const e=Yd({buckets:n.statuses||[],name:"status"});r.push(e)}if(n.finish_reason){const e=Yd({buckets:n.finish_reason.map(e=>({...e,_id:null===e._id?"none":e._id})),name:"finish_reason",placeholder:"Finish Reason"});r.push(e)}if(n.created_by){const e=bm({buckets:n.created_by||[],name:"created_by",placeholder:"Created By"});r.push(e)}r.push({name:"start",placeholder:"Date After",type:"date",multiple:!1});r.push({name:"end",placeholder:"Date Before",type:"date",multiple:!1});r.push({name:"workflow_run_ids",placeholder:"Workflow Run ID",type:"text",multiple:!1});return r.push({name:"workflow_ids",placeholder:"Workflow ID",type:"text",multiple:!1}),r}function Gm(e){return t=>{0!==t.length?(e.clearFilters(!1,!1),t.forEach(t=>{if(t.value&&t.value.length>0){const n=t.name;let r=qd(t);"run_ids"!==n&&"workflow_run_ids"!==n&&"workflow_ids"!==n||Array.isArray(r)||(r=[r]),Hd(e,n,r)}}),e.search()):e.clearFilters(!0,!1)}}function Jm({facets:n,search:a,actions:s,selectionCount:i}){const[o,l]=Le([]),c=Hm(n),d=Gm(a);return e(D,{filterGroups:c,filters:o,setFilters:e=>{const t="function"==typeof e?e(o):e;l(t),d(t)},children:t("div",{className:"gap-2 items-center w-full",children:[t("div",{className:"flex justify-between mb-1",children:[e($,{}),t("div",{className:"flex justify-end",children:[!i&&e("div",{className:"flex items-center justify-between px-2 py-1",children:e("div",{className:"text-sm text-muted",children:a.initialized?`${a.totalCount} calls`:"Loading calls..."})}),s&&s.length>0?e("div",{className:"flex items-center gap-2 mb-1 me-2",children:s.map((t,n)=>e("div",{children:t},n))}):null,e(r,{onClick:()=>{a.search()},variant:"outline",title:"Refresh",children:e(Tn,{className:"size-5"})})]})]}),o.length>0&&t("div",{className:"flex items-center gap-2 mb-1",children:[e(E,{}),e(L,{})]})]})})}function Km({search:t,buckets:n,name:r,placeholder:a,className:s}){const i=t.getFilterValue(r),o=n?.find(e=>JSON.stringify(e._id)===JSON.stringify(i));return e(O,{filterBy:"_id",className:s,isClearable:!0,optionLabel:Jd,options:n,value:o,onChange:e=>{t.setFilterValue(r,e?._id)},by:"_id",placeholder:a})}function Ym({search:t,name:n,placeholder:r,className:a}){const[s,i]=Le([]);return Ve(()=>{t.setFilterValue(n,s)},[n,t,s]),e(M,{className:a,value:s,onChange:i,placeholder:r})}function Qm(e){return`${e.name} (${e.count})`}function Zm({search:t,buckets:n,placeholder:r="Filter by Type",className:a}){const[s,i]=Le([]),{registry:o}=Sm(),l=t.getFilterValue("type");Ve(()=>{if(o){const e=n.map(e=>{let t;return null==e._id?(e._id="Document",t="Document"):(t=o.getTypeName(e._id),t||(console.warn("Content Object Type not found",e._id),t=e._id)),{...e,name:t}});e.sort((e,t)=>e.name.localeCompare(t.name)),i(e)}},[n,o]);const c=s?.find(e=>e._id===l);return e(O,{filterBy:"name",className:a,isClearable:!0,optionLabel:Qm,options:s,value:c,onChange:e=>{t.setFilterValue("type",e?._id)},by:"_id",placeholder:r})}function Xm(e){const t=[];return t.push(Yd({buckets:e.tags||[],name:"tags",placeholder:"Tags",multiple:!0})),t.push({name:"name",placeholder:"Name",type:"text",multiple:!1}),t}function eu({facets:n,filters:r,setFilters:a}){const s=Xm(n);return e(D,{filterGroups:s,filters:r,setFilters:a,children:t("div",{className:"flex items-center gap-2",children:[e($,{}),e(E,{}),e(L,{})]})})}function tu(e){const t=[];if(t.push({placeholder:"Workflow Name or Workflow Run ID",name:"name",type:"text",options:[]}),e.status){const n=Yd({buckets:e.status||[],name:"status",placeholder:"Status"});t.push(n)}if(e.initiated_by){const n=bm({buckets:e.initiated_by||[],name:"initiated_by",placeholder:"Initiated By"});t.push(n)}t.push({name:"start",placeholder:"Date After",type:"date",multiple:!1});t.push({name:"end",placeholder:"Date Before",type:"date",multiple:!1});return t.push({name:"has_reported_errors",placeholder:"Has Reported Errors",type:"select",multiple:!1,options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]}),t}function nu(e){return t=>{0!==t.length?(e.clearFilters(!1),t.forEach(t=>{if(t.value&&t.value.length>0){const n=t.name,r=qd(t);if("name"===n)Hd(e,"search_term",r),Hd(e,"name",r);else if("has_reported_errors"===n){const t=Array.isArray(r)?r[0]:r;"true"!==t&&"false"!==t||Hd(e,n,"true"===t)}else Hd(e,n,r)}}),e.search()):e.clearFilters()}}function ru({facets:n,search:r}){const[a,s]=Le([]),i=tu(n),o=nu(r);return e(D,{filterGroups:i,filters:a,setFilters:e=>{const t="function"==typeof e?e(a):e;s(t),o(t)},children:t("div",{className:"flex gap-2 items-center",children:[e($,{}),e(E,{}),e(L,{})]})})}function au(e){const t=[];return t.push({name:"name",placeholder:"Name",type:"text",multiple:!1}),t}function su({facets:n,filters:r,setFilters:a}){const s=au();return e(D,{filterGroups:s,filters:r,setFilters:a,children:t("div",{className:"flex items-center gap-2",children:[e($,{}),e(E,{}),e(L,{})]})})}class iu{object;objects;setState;collectionId;singleSelection=!1;constructor(e,t,n,r){this.object=e,this.objects=n,this.setState=r,this.singleSelection=0===Object.keys(this.objects).length,this.collectionId=t}isSingleSelection(){return this.singleSelection}hasSelection(){return void 0!==this.object||0!==this.size()}size(){return Object.keys(this.objects).length}getObjectIds(){return Object.keys(this.objects)}getObjectId(){return this.object?.id}clone(){return new iu(this.object,this.collectionId,this.objects,this.setState)}add(e){this.objects[e.id]=e,this.singleSelection=0===Object.keys(this.objects).length,this.setState(this.clone())}remove(e){delete this.objects[e],this.singleSelection=0===Object.keys(this.objects).length,this.setState(this.clone())}addAll(e){for(const t of e)this.objects[t.id]=t;this.setState(this.clone())}isSelected(e){return void 0!==this.objects[e]}removeAll(){this.objects={},this.singleSelection=!0,this.setState(this.clone())}}const ou=Fe(void 0);function lu(){const e=Oe(ou);if(!e)throw new Error("useObjectSelection must be used within a ObjectSelectionProvider");return e}function cu(){return Oe(ou)}function du({value:t,collectionId:n,children:r}){const[a,s]=Le();return Ve(()=>{const e=new iu(t,n,{},s);s(e)},[n,t]),a&&e(ou.Provider,{value:a,children:r})}const mu="text/csv",uu="image/",pu="application/pdf",hu="video/",fu=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.ms-powerpoint"],gu=e=>e===mu||mu.includes(e),xu=e=>e.startsWith(uu)||uu.includes(e),vu=e=>e===pu||pu.includes(e),bu=e=>e.startsWith(hu)||hu.includes(e),yu=e=>fu.includes(e);function wu(e,t){if("undefined"==typeof window||"undefined"==typeof document)return!1;const n=document.createElement("iframe");n.style.position="fixed",n.style.right="0",n.style.bottom="0",n.style.width="0",n.style.height="0",n.style.border="0",n.style.visibility="hidden",document.body.appendChild(n);const r=n.contentWindow;if(!r)return n.parentNode?.removeChild(n),!1;const a=r.document;a.open(),a.write("<!doctype html><html><head><title></title></head><body></body></html>"),a.close(),a.title=t;document.querySelectorAll('link[rel="stylesheet"], style').forEach(e=>{a.head.appendChild(e.cloneNode(!0))});const s=a.createElement("style");return s.textContent='\n@media print {\n body {\n margin: 24px;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;\n font-size: 14px;\n line-height: 1.5;\n color: #111827;\n background-color: #ffffff;\n }\n\n .vprose {\n max-width: 800px;\n margin: 0 auto;\n }\n\n .vprose h1 {\n font-size: 24px;\n font-weight: 700;\n margin: 1.5rem 0 0.75rem;\n }\n\n .vprose h2 {\n font-size: 20px;\n font-weight: 600;\n margin: 1.25rem 0 0.75rem;\n }\n\n .vprose h3 {\n font-size: 18px;\n font-weight: 600;\n margin: 1rem 0 0.5rem;\n }\n\n .vprose p {\n margin: 0 0 0.5rem;\n }\n\n .vprose ul,\n .vprose ol {\n margin: 0.5rem 0 0.5rem 1.5rem;\n padding: 0;\n }\n\n .vprose li {\n margin: 0.25rem 0;\n }\n\n .vprose table {\n width: 100%;\n border-collapse: collapse;\n margin: 1rem 0;\n }\n\n .vprose th,\n .vprose td {\n border: 1px solid #d1d5db;\n padding: 0.5rem 0.75rem;\n vertical-align: top;\n }\n\n .vprose thead th {\n background-color: #f3f4f6;\n font-weight: 600;\n }\n\n .vprose pre,\n .vprose code {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n font-size: 12px;\n }\n\n .vprose pre {\n padding: 0.75rem;\n border-radius: 4px;\n border: 1px solid #e5e7eb;\n background-color: #f9fafb;\n white-space: pre-wrap;\n word-break: break-word;\n }\n\n /* Hide chart action buttons when printing */\n .chart-actions {\n display: none !important;\n }\n\n /* Hide interactive elements in agent conversation when printing */\n .print-hidden,\n [class*="print:hidden"],\n button[title="Copy message"],\n button[title="Copy to clipboard"],\n button[title="Export as PNG"],\n .message-actions {\n display: none !important;\n }\n\n /* Prevent page breaks inside elements */\n .vprose table,\n .vprose pre,\n .vprose blockquote,\n .vprose figure,\n .vprose img,\n [class*="chart"],\n [class*="Chart"] {\n break-inside: avoid;\n page-break-inside: avoid;\n }\n\n /* Keep headings with following content */\n .vprose h1,\n .vprose h2,\n .vprose h3,\n .vprose h4,\n .vprose h5,\n .vprose h6 {\n break-after: avoid;\n page-break-after: avoid;\n }\n\n /* Keep list items together when possible */\n .vprose li {\n break-inside: avoid;\n page-break-inside: avoid;\n }\n}\n',a.head.appendChild(s),a.body.innerHTML=e.innerHTML,r.focus(),r.print(),setTimeout(()=>{n.parentNode?.removeChild(n)},1e3),!0}const Nu=import.meta.env,ku={max_hw:Nu?.VITE_RENDITION_HW||256,format:sr.jpeg,generate_if_missing:!0},Cu="vertesia.content_store.renditionId";async function _u(e,t,n,r,a){if(!t?.content?.type||!(xu(t.content.type)||bu(t.content.type)||vu(t.content.type)))return void a("No preview available");a("Preparing preview...");const s=Date.now()/1e3,i=localStorage.getItem(`${Cu}_${t.id}_${ku.max_hw}`),o=localStorage.getItem(`${Cu}_${t.id}_${ku.max_hw}_time`);if(i?.length&&o&&Math.abs(s-parseInt(o,10))<=900)return n(i),r(`${t.name} Rendition`),a("ready"),i;a("Preparing preview..."),e.objects.getRendition(t.id,ku).then(s=>{if("generating"===s.status)a("Preparing preview..."),n(""),r(""),setTimeout(()=>_u(e,t,n,r,a),6e4);else{if("failed"===s.status)return a("No preview available"),n(""),void r("");{if(!s?.renditions?.length)return a("No preview available"),n(""),void r("");const e=s.renditions[0];localStorage.setItem(`${Cu}_${t.id}_${ku.max_hw}`,e),localStorage.setItem(`${Cu}_${t.id}_${ku.max_hw}_time`,(Date.now()/1e3).toString()),n(e),r(`${t.name} Rendition`),a("ready"),console.log(`Rendition for document ${t.id} retrieved successfully: ${e}`)}}}).catch(e=>{a("No preview available"),console.warn("Failed to retrieve rendition:",e),n(""),r("")})}function Su(e,t=7){return e?`~${e.slice(-t)}`:""}function Tu(e,t){return e.length>t?`${e.substring(0,t)}...`:e}function Iu(e){switch(e){case ir.RUNNING:return"text-info";case ir.COMPLETED:return"text-success";case ir.FAILED:return"text-destructive";case ir.TERMINATED:case ir.CANCELED:return"text-attention";default:return"text-muted"}}function zu(e){switch(e){case ir.RUNNING:return"Running";case ir.COMPLETED:return"Completed";case ir.FAILED:return"Failed";case ir.CONTINUED_AS_NEW:return"Continued As New";case ir.TERMINATED:return"Terminated";case ir.TIMED_OUT:return"Timed Out";case ir.CANCELED:return"Canceled";default:return"Unknown"}}function ju(e){return"object"==typeof e&&null!==e}function Ru(e,t){if(!ju(e))return;const n=e[t];return"string"==typeof n?n:void 0}function Pu(e){return"string"==typeof e?e:Ru(e,"id")||""}Er.extend(ca),Er.extend(la);const Au={string(t,n){const r=[];if(t){const e=t.get("slice");e&&r.push(t=>t.slice(parseInt(e,10)));const n=t.get("max_length");n&&r.push(e=>e.slice(0,parseInt(n,10))),t.has("upper")&&r.push(e=>e.toUpperCase()),t.has("lower")&&r.push(e=>e.toLowerCase()),t.has("capitalize")&&r.push(e=>e[0].toUpperCase()+e.substring(1)),t.has("ellipsis")&&r.push(e=>`${e}...`)}return(t,n)=>{let a;if(t){if(a=String(t),r.length>0)for(const e of r)a=e(a)}else a="";return e("td",{children:a},n)}},fileSize:(t,n)=>(t,n)=>{let r="";if(t){const e=Number(t);if(Number.isNaN(e))r=String(t);else{const t=["Bytes","KB","MB","GB","TB"];if(0===e)r="0 Bytes";else{const n=Math.floor(Math.log(e)/Math.log(1024));r=`${(e/1024**n).toFixed(2)} ${t[n]}`}}}return e("td",{children:r},n)},number(t,n){let r,a;t&&(r=t.get("currency")||void 0,a=t.get("decimals")||void 0);const s=a?parseInt(a,10):2;return(t,n)=>{const a=Number(t),i=new Intl.NumberFormat("en-US",{style:r?"currency":"decimal",currency:r,maximumFractionDigits:s}).format(Number.isFinite(a)?a:0);return e("td",{children:i},n)}},objectId(n,a){const s=[];let i=!1;if(n){const e=n.get("slice");e&&(i=!0,s.push(t=>t.slice(parseInt(e,10))))}return(n,o)=>{const l=Pu(n),c=s.reduce((e,t)=>t(e),l);return t("td",{className:"flex justify-start items-center gap-2",children:[e(r,{variant:"ghost","aria-label":"Preview Object",title:"Preview Object",onClick:e=>{e.stopPropagation(),a?.(l)},children:e(In,{className:"size-4"})}),i?"~":"",c]},o)}},objectName(t,n){let r="title";return t&&(r=t.get("title")||"title"),(t,n)=>{const a=ju(t)&&ju(t.properties)?t.properties:void 0,s=a?.[r],i=function(e){return null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:String(e)}(s),o=Ru(t,"name"),l=Ru(t,"id");return e("td",{children:i||o||(l?Su(l):"")},n)}},objectLink(n,a){const s=[];return s.push(e=>e.slice(-7)),(n,i)=>{const o=Pu(n),l=s.reduce((e,t)=>t(e),o);return t("td",{className:"flex justify-between items-center gap-2 max-w-48",children:["~",l,e(r,{variant:"ghost",alt:"Preview Object",onClick:e=>{e.stopPropagation(),a?.(o)},children:e(In,{className:"size-4"})})]},i)}},typeLink:(t,n)=>(t,n)=>e("td",{children:Ru(t,"name")||"n/a"},n),revision:(n,r)=>(n,r)=>{const a=ju(n)&&ju(n.revision)?n.revision:void 0;if(!a)return e("td",{},r);const s=Ru(a,"root"),i=Ru(a,"label");return e("td",{children:t("div",{className:"flex flex-col gap-0.5",children:[s&&t("div",{className:"flex items-center gap-1",children:[t("span",{className:"text-xs text-muted font-mono",children:["root: ~",s.slice(-7)]}),e("a",{href:`/store/objects/${s}`,onClick:e=>e.stopPropagation(),children:e(_t,{className:"size-3 text-muted"})})]}),i&&t("span",{className:"text-xs text-muted",children:["label: ",i]})]})},r)},date(t,n){let r="format",a="LLL";if(t){const e=t.get("localized");if(e)a=e;else{const e=t.get("relative");e&&(r=e,a=void 0)}}return(t,n)=>{const s="string"==typeof t||"number"==typeof t||t instanceof Date?t:void 0,i=Er(s),o="fromNow"===r?i.fromNow():"toNow"===r?i.toNow():i.format(a);return e("td",{children:o},n)}}},Du=Au.string();function $u(e){return"object"==typeof e&&null!==e}function Eu(e,t){let n=e;if(!n)return;if(!t.length)return n;const r=t.length-1;for(let e=0;e<r;e++){if(!$u(n))return;if(n=n[t[e]],!n)return}return $u(n)?n[t[r]]:void 0}function Lu(e){return e&&"."!==e?e.split("."):[]}class Fu{layout;renderer=Du;path;fallbackPath;previewObject;constructor(e,t){if(this.layout=e,this.path=Lu(e.field||""),this.fallbackPath=e.fallback?Lu(e.fallback):void 0,this.previewObject=t,e.render)this.renderer=(e,t)=>null;else{const t=e.type||"string",n=t.indexOf("?");if(n>0){const e=t.substring(0,n),r=new URLSearchParams(t.substring(n+1));this.renderer=Au[e](r)}else this.renderer=Au[t]()}}get name(){return this.layout.name}resolveValue(e){let t=Eu(e,this.path);return void 0===t&&this.fallbackPath&&(t=Eu(e,this.fallbackPath)),void 0===t&&(t=this.layout.default),t}render(t,n){if(this.layout.render)return e("td",{className:"whitespace-nowrap px-3 py-4 text-sm",children:this.layout.render(t)},n);const r=this.layout.type||"string",a=r.indexOf("?")>0?r.substring(0,r.indexOf("?")):r;if(("objectId"===a||"objectLink"===a)&&this.previewObject){const e=r.indexOf("?"),s=e>0?new URLSearchParams(r.substring(e+1)):void 0;return Au[a](s,e=>{this.previewObject?.(t.id)})(t,n)}return this.renderer(this.resolveValue(t),n)}}function Ou({isLoading:n=!1,counts:r=6}){return n?e("div",{className:"flex flex-wrap gap-2 justify-between",children:Array(r).fill(0).map((n,r)=>e("div",{className:"w-[15vw] animate-pulse",children:t(U,{className:"relative flex flex-col border h-fit",children:[e("div",{className:"h-48 bg-muted rounded-t-xl flex items-center justify-center text-muted",children:" "}),e(W,{className:"bg-muted h-[2px]"}),t(V,{className:"p-2 flex flex-col",children:[t("div",{className:"flex flex-col overflow-hidden",children:[e("div",{className:"h-5 bg-muted rounded w-3/4 mb-2"}),e("div",{className:"h-4 bg-muted rounded w-1/2"})]}),e("div",{className:"text-xs text-muted w-full flex justify-end mt-2",children:e("div",{className:"h-3 bg-muted rounded w-1/4"})})]})]})},r))}):null}function Mu({selection:n,document:a,onSelectionChange:s,onRowClick:i,highlightRow:o,previewObject:l,selectedObject:c}){const{client:d}=Ze(),[m,u]=Le(void 0),[p,f]=Le(void 0),[g,x]=Le(void 0),v="string"==typeof a.properties?.title?a.properties.title:a.name;Ve(()=>{a?.content&&_u(d,a,u,f,x)},[d,a]);const b=o?.(a);return t(U,{className:`relative flex flex-col border h-fit w-full ${c?.id===a.id?"border-attention border-4":""} ${b?"border-blue-400 dark:border-blue-500 bg-blue-50/50 dark:bg-blue-900/20":""}`,onClick:()=>i?.(a),children:[b&&e("div",{className:"absolute top-2 end-8 z-10",children:e(gn,{className:"size-4 text-blue-600 dark:text-blue-400"})}),n&&e("div",{className:"absolute top-2 start-2 z-10 flex flex-col items-center gap-1",children:e("input",{checked:n.isSelected(a.id),type:"checkbox",onChange:e=>{e.stopPropagation(),s(a,e)},onClick:e=>e.stopPropagation()})}),e("div",{className:"absolute top-1 end-1 z-10 flex flex-col items-center",children:e(r,{variant:"ghost",size:"sm",title:"Preivew Object",onClick:e=>{e.stopPropagation(),l?.(a.id)},children:e(In,{className:"size-4 "+("ready"===g?"text-muted":"text-white")})})}),m&&"ready"===g?e("img",{src:m,alt:p,className:"w-auto h-48 object-cover rounded-t-xl"}):e("div",{className:"h-48 bg-gray-700 rounded-t-xl flex items-center justify-center text-muted",children:g}),e(W,{className:"bg-gray-200 h-[2px]"}),t(V,{className:"p-2 flex flex-col",children:[t("div",{className:"flex flex-col overflow-hidden",children:[e(h,{placement:"top",description:v,children:e("h3",{className:"text-start font-medium leading-none truncate",children:v})}),a?.type?.name?e(h,{placement:"bottom",size:"xs",description:a?.type?.name,children:e("p",{className:"text-start text-xs text-muted truncate",children:a?.type?.name})}):e("p",{className:"text-xs text-muted",children:" "})]}),a.score&&t("div",{className:"text-xs text-muted w-full flex justify-end",children:["Score: ",a.score.toFixed(4)??"-"]})]})]})}function Uu({objects:n,selection:r,isLoading:a,columns:s,onRowClick:i,highlightRow:o,selectedObject:l,toggleAll:c,onSelectionChange:d}){const{t:m}=Ke();return t(I,{className:"w-full",children:[e(B,{children:t("tr",{children:[r&&e("th",{children:e("input",{type:"checkbox",onChange:c})}),s.map(t=>e("th",{children:t.name},t.name))]})}),t(q,{isLoading:a,columns:s.length+1,children:[n?.map(n=>{const a=o?.(n);return t("tr",{className:`cursor-pointer hover:bg-muted group ${l?.id===n.id?"bg-muted":""} ${a?"bg-blue-50 dark:bg-blue-900/20":""}`,onClick:()=>{i?.(n)},children:[r&&e("td",{onClick:e=>e.stopPropagation(),children:e("input",{checked:r.isSelected(n.id),type:"checkbox",className:""+(r.isSelected(n.id)?"":"hidden group-hover:block"),onChange:e=>d(n,e)})}),s.map((e,t)=>e.render(n,t)),e("td",{className:"w-8 text-center",children:a&&e(gn,{className:"size-4 text-blue-600 dark:text-blue-400 inline-block"})})]},n.id)}),0===n.length&&e("tr",{children:e("td",{colSpan:s.length+(r?1:0),className:"text-center",children:m("store.noObjectsDragAndDrop")})})]})]})}function Wu({objects:r,selection:a,isLoading:s,onSelectionChange:i,onRowClick:o,highlightRow:l,previewObject:c,selectedObject:d}){return t(n,{children:[e(Ou,{isLoading:s}),e("div",{className:"w-full gap-2 grid xs:grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6 @xs:grid-cols-1 @sm:grid-cols-2 @md:grid-cols-3 @lg:grid-cols-4",children:r.map(t=>e(Mu,{document:t,selection:a,onSelectionChange:i,onRowClick:o,highlightRow:l,previewObject:c,selectedObject:d},t.id))})]})}class Vu{client;limit;collectionId;facets=new H({});result=new H({objects:[],isLoading:!1});initialized=!1;facetSpecs=[];query={};constructor(e,t=100){this.client=e,this.limit=t}withFacets(e){return this.facetSpecs=e,this}get objects(){return this.result.value.objects}get error(){return this.result.value.error}get isRunning(){return this.result.value.isLoading}get hasMore(){return this.result.value.hasMore||!1}getFilterValue(e){return this.query[e]}setFilterValue(e,t){this.query[e]=t,this.search()}setDefaultKeys(e){}clearFilters(e=!0){const{parent:t,full_text:n,vector:r,weights:a,score_aggregation:s,dynamic_scaling:i,limit:o,all_revisions:l}=this.query;this.query={parent:t,...void 0!==n&&{full_text:n},...void 0!==r&&{vector:r},...void 0!==a&&{weights:a},...void 0!==s&&{score_aggregation:s},...void 0!==i&&{dynamic_scaling:i},...void 0!==o&&{limit:o},...void 0!==l&&{all_revisions:l}},e&&this.search()}getFacetBuckets(e){const t=this.facets.value[e];return Array.isArray(t)?t:[]}resetFacets(){this.query={}}reset(e=!1){this.initialized=!1,this.result.value={objects:[],isLoading:e,hasMore:!0}}_updateRunningState(e){const t=this.result.value;this.result.value={objects:t.objects,isLoading:e,error:t.error,hasMore:t.hasMore}}_searchRequest(e,t,n,r=!0){const a={limit:t,offset:n,query:e,facets:r?this.facetSpecs:void 0};return this.collectionId?this.client.collections.searchMembers(this.collectionId,a):this.client.objects.search(a)}_facetsRequest(){const e={facets:this.facetSpecs,query:this.query};return this.collectionId?this.client.collections.computeFacets(this.collectionId,e):this.client.objects.computeFacets(e)}computeFacets(e){this._facetsRequest().then(e=>{this.facets.value=e})}async _search(e=!1,t=!1){if(this.isRunning&&e)return!1;const n=this.result.value;e||(this.initialized=!0),this.result.value={isLoading:!0,objects:e?this.objects:[],hasMore:!e||this.result.value.hasMore};const r=this.limit,a=e?this.objects.length:0;try{const n=await this._searchRequest(this.query,r,a,!t),s=n.results||[],i=n.facets||{};return this.result.value={isLoading:!1,objects:e?this.objects.concat(s):s,hasMore:s.length===r},!t&&i&&Object.keys(i).length>0&&(this.facets.value=i),!0}catch(e){if("object"==typeof e&&null!==e&&"status"in e&&404===e.status)return this.result.value={isLoading:!1,objects:[],hasMore:!1},!1;const t=e instanceof Error?e:new Error(String(e));return this.result.value={error:t,isLoading:!1,objects:n.objects,hasMore:!1},!1}}search(e=!1){return this.isRunning?Promise.resolve(!1):this._search(!1,e)}loadMore(e=!1){return this.isRunning||!this.hasMore||this.query.vector?Promise.resolve(!1):(this.objects.length>0&&(e=!0),this._search(!0,e))}}const Bu=Fe(void 0);function qu(){return Oe(Bu)}function Hu(){return G(qu().facets)}function Gu(){const e=qu();return{...G(e.result),search:e}}function Ju(){const e=qu();return G(e.facets).total}const Ku=Ye.getFixedT(null,Qe);var Yu;async function Qu(e){try{const t=await e.arrayBuffer(),n=new da;n.appendByteArray(new Uint8Array(t));const r=n.end();return r?.toString()}catch(e){return void console.error("Error calculating file hash:",e)}}function Zu(){const{client:e}=Ze(),t=l();return{checkDocumentProcessing:Ue(async(n,r,a)=>{try{console.log(`Preparing metadata for ${n.length} files...`);const t=await async function(e,t){const n=[];for(let r=0;r<e.length;r+=5){const a=e.slice(r,r+5),s=await Promise.all(a.map(async e=>{let n=t||"/";if(e.webkitRelativePath){const r=e.webkitRelativePath.split("/");if(r.length>1){const e=r.slice(0,-1).join("/");n=t?`${t}/${e}`:e}}return{file:e,hash:await Qu(e),name:e.name,size:e.size,location:n}}));n.push(...s)}return n}(n,r),s=async()=>{const n=t.map(e=>e.hash).filter(Boolean);if(0===n.length)return;const r={"content.etag":{$in:n}};let s;if(a){const t={query:{match:r},select:"id content.etag"};s=(await e.store.collections.searchMembers(a,t)).results}else{const t={query:r,select:"id content.etag"};s=await e.store.objects.find(t)}for(const e of s){const n=t.find(t=>t.hash===e.content?.etag);n&&(n.existingId=e.id,n.action=Yu.SKIP)}},i=async()=>{const n=t.filter(e=>e.action!==Yu.SKIP),r=n.map(e=>e.location),s=Array.from(new Set(r)),i=[];for(const t of s){const r={"content.name":{$in:n.filter(e=>e.location===t).map(e=>e.name)},location:t||"/"};if(a){const t=e.store.collections.searchMembers(a,{query:{match:r},select:"id content.name location"}).then(e=>e.results);i.push(t)}else{const t=e.store.objects.find({query:r,select:"id content.name location"});i.push(t)}}const o=(await Promise.all(i)).flat();console.log(`Found ${o.length} document to update`,o);for(const e of o){const n=t.find(t=>t.name===e.content?.name&&(t.location?t.location===e.location:"/"===e.location));n&&(n.existingId=e.id,n.action=Yu.UPDATE)}console.log(`Reconciled ${t.filter(e=>e.action===Yu.UPDATE).length}`)};return await s(),await i(),t.forEach(e=>{e.action||(e.action=Yu.CREATE)}),console.log("Document processing check results:",{totalFiles:n.length,toCreate:t.filter(e=>e.action===Yu.CREATE).length,toUpdate:t.filter(e=>e.action===Yu.UPDATE).length,toSkip:t.filter(e=>e.action===Yu.SKIP).length}),t}catch(e){throw t({title:Ku("store.errorInUploadProcessingCheck"),status:"error",description:j(e)}),console.log("Error in file upload processing check",e),new Error(`Error in file upload processing check: ${j(e)}`,{cause:e})}},[e,t])}}function Xu({isOpen:a,onClose:s,files:i,collectionId:o,selectedFolder:c,title:d,children:m,onUploadComplete:u,hideFileSelection:f=!1,showTypeSelectionOnly:g=!1,allowFolders:y=!0}){const{client:w}=Ze(),{registry:N}=Sm(),k=l(),{t:C}=Ke(),_=d??C("upload.uploadFiles"),[S,T]=Le([]),[I,z]=Le([]),[R,P]=Le(!1),[A,D]=Le(null),[$,E]=Le([]),[L,F]=Le(!1),[M,U]=Le(!1),[W,V]=Le(0),[B,q]=Le(Date.now()),[H,G]=Le(void 0),[Y,Q]=Le(null),[Z,X]=Le(_),[ee,te]=Le("");Ve(()=>{o&&w.store.collections.retrieve(o).then(G)},[w.store.collections.retrieve,o]),Ve(()=>{L?(X(C("upload.uploadingFiles")),te(`${Math.round(W)}% complete`)):M?(X(C("upload.uploadComplete")),te("")):R?(X(C("upload.fileAnalysisResults")),te(`${S.length} file${1!==S.length?"s":""}`)):S.length>0?(X(_),te(C("upload.checkingForDuplicates"))):(X(_),te(""))},[L,M,R,_,W,S.length,C]);const ne=()=>H||c?t(J,{className:"mb-4",status:"default",icon:e(sn,{className:"size-5"}),children:[e("div",{className:"flex items-center",children:e("span",{className:"font-medium",children:C("upload.uploadLocation")})}),t("div",{className:"text-sm mt-1",children:[H&&t("div",{className:"flex items-center",children:[e("span",{className:"me-1",children:C("upload.collectionLabel")}),e("span",{className:"font-medium",children:H.name})]}),c&&t("div",{className:"flex items-center mt-1",children:[e("span",{className:"me-1",children:C("upload.folderLabel")}),e("span",{className:"font-medium",children:c})]})]})]}):null,[re,ae]=Le({toCreate:0,toUpdate:0,toSkip:0}),{checkDocumentProcessing:se}=Zu(),ie=Ee(()=>N?.types||[],[N?.types]),oe=Ue(async e=>{if(e.length)try{console.log(`Processing ${e.length} files to determine required actions...`);const t=await se(e,c,o);z(t);const n=t.filter(e=>e.action===Yu.CREATE).length,r=t.filter(e=>e.action===Yu.UPDATE).length,a=t.filter(e=>e.action===Yu.SKIP).length;ae({toCreate:n,toUpdate:r,toSkip:a}),k({title:C("upload.filesAnalyzed"),description:`${e.length} file(s): ${n} new, ${r} to update, ${a} to skip`,status:"info",duration:4e3}),P(!0)}catch(e){console.error("Error processing files:",e),k({title:C("agent.error"),description:C("upload.errorAnalyzingFiles"),status:"error",duration:5e3})}},[se,o,c,C,k]);Ve(()=>{a&&(z([]),P(!1),D(null),E([]),F(!1),U(!1),V(0),ae({toCreate:0,toUpdate:0,toSkip:0}),Q(null),X(_),te(""),i&&i.length>0?(T(i),oe(i)):T([]),q(Date.now()))},[a,i,oe,_]);const le=()=>{T([]),z([]),P(!1),D(null),E([]),F(!1),U(!1),V(0),ae({toCreate:0,toUpdate:0,toSkip:0}),Q(null),X(_),te(""),q(Date.now()),s()},ce=e=>{e&&e.length>0&&(T(e),oe(e))},de=async()=>{if(!I.length)return;const e=A?.id||null,t=I.map(e=>({file:e.file,status:"pending",progress:0,action:e.action===Yu.CREATE?"create":e.action===Yu.UPDATE?"update":"skip"}));E(t),F(!0),U(!1);const n=I.filter(e=>e.action===Yu.SKIP),r=I.filter(e=>e.action===Yu.UPDATE),a=I.filter(e=>e.action===Yu.CREATE),s={success:!0,objectIds:[],uploadedFiles:[],skippedFiles:[],failedFiles:[]};for(const t of n)t.existingId&&(s.objectIds.push(t.existingId),s.skippedFiles.push({id:t.existingId,name:t.name,type:e,status:"skipped",location:t.location}),E(e=>e.map(e=>e.file===t.file?{...e,status:"success",progress:100,id:t.existingId}:e)));const i=async(t,n)=>{const r=[];for(let e=0;e<t.length;e+=50)r.push(t.slice(e,e+50));for(let a=0;a<r.length;a++){const i=r[a];if(console.log(`Processing ${n} batch ${a+1}/${r.length} (${i.length} files)`),t.length>50){const e=50*a;k({title:C("upload.processingFilesAction",{action:n}),description:C("upload.processedCount",{processed:e,total:t.length}),status:"info",duration:2e3})}let l=0;await Promise.all(i.map(async t=>{try{if(E(e=>e.map(e=>e.file===t.file?{...e,status:"uploading",progress:20}:e)),"update"===n&&t.existingId)await w.store.objects.update(t.existingId,{type:e||void 0,content:t.file,location:t.location,name:t.name},{createRevision:!0,revisionLabel:`upload on ${(new Date).toISOString()}`}),E(e=>e.map(e=>e.file===t.file?{...e,status:"success",progress:100,id:t.existingId}:e)),s.objectIds.push(t.existingId),s.uploadedFiles.push({id:t.existingId,name:t.name,type:e,status:"updated",location:t.location});else{const n=await w.store.objects.create({type:e||void 0,content:t.file,location:t.location||t.file.webkitRelativePath||t.name},{collection_id:o});E(e=>e.map(e=>e.file===t.file?{...e,status:"success",progress:100,id:n.id}:e)),s.objectIds.push(n.id),s.uploadedFiles.push({id:n.id,name:t.name,type:e,status:"created",location:t.location})}}catch(n){console.error(`Failed to process file ${t.name}:`,n),E(e=>e.map(e=>e.file===t.file?{...e,status:"error",progress:100,message:j(n,"Unknown error")}:e)),s.failedFiles.push({name:t.name,error:j(n,"Unknown error"),status:"failed",location:t.location,type:e}),s.success=!1}l++,l%5!=0&&l!==i.length||E(e=>{const t=e.filter(e=>"success"===e.status||"error"===e.status).length,n=e.length,r=n>0?Math.round(t/n*100):0;return V(r),e})}))}};r.length>0&&await i(r,"update"),a.length>0&&await i(a,"create"),E(e=>{const t=e.filter(e=>"pending"===e.status).map(e=>({...e,status:"error",progress:100,message:C("upload.uploadProcessInterrupted")}));return t.length>0?(t.forEach(e=>{s.failedFiles.push({name:e.file.name,error:C("upload.uploadProcessInterrupted"),status:"failed",type:A?.id||null})}),s.success=!1,e.map(e=>"pending"===e.status?{...e,status:"error",progress:100,message:C("upload.uploadProcessInterrupted")}:e)):e}),F(!1),U(!0);const l=s.uploadedFiles.filter(e=>"created"===e.status).length,c=s.uploadedFiles.filter(e=>"updated"===e.status).length,d=s.skippedFiles.length,m=s.failedFiles.length;let u="";l>0&&(u+=`${l} file${1!==l?"s":""} uploaded`),c>0&&(u+=u?", ":"",u+=`${c} file${1!==c?"s":""} updated`),d>0&&(u+=u?", ":"",u+=`${d} file${1!==d?"s":""} skipped`),m>0&&(u+=u?", ":"",u+=`${m} file${1!==m?"s":""} failed`),k({title:C("upload.uploadComplete"),description:u,status:m>0?"warning":"success",duration:5e3}),Q(s)},me=()=>t("div",{className:"mb-4",children:[t("div",{className:"block text-sm font-medium mb-2",children:[C("store.contentType")," ",e("span",{className:"text-muted font-normal",children:C("store.optional")}),e(h,{description:C("upload.contentTypeTooltip"),placement:"top",size:"xs",children:e(Dt,{className:"size-3 ms-2"})})]}),e(O,{options:ie,value:A,optionLabel:e=>e?e.name:C("store.selectContentTypeLabel"),placeholder:C("store.selectContentTypeAuto"),onChange:e=>D(void 0===e?null:e),filterBy:"name",isClearable:!0}),!A&&e("div",{className:"p-2 rounded-md",children:t("div",{className:"flex items-center text-attention",children:[e(vn,{className:"size-4 me-1"}),C("store.automaticTypeDetection"),e(h,{description:C("store.automaticTypeDetectionDescription"),placement:"top",size:"xs",children:e(Dt,{className:"size-3 ms-2"})})]})})]});return t(x,{isOpen:a,onClose:le,className:"mx-auto",disableCloseOnClickOutside:!0,children:[e(v,{description:ee,children:Z}),g?t(b,{children:[m,ne(),me()]}):0!==S.length||f?L||M?L?t(b,{children:[ne(),e("div",{className:"mb-4",children:e("div",{className:"h-2 bg-muted/20 rounded-full overflow-hidden",children:e("div",{className:"h-full bg-primary rounded-full",style:{width:`${W}%`}})})}),e("div",{className:"max-h-96 overflow-y-auto",children:$.map((n,r)=>t("div",{className:"flex items-center py-2 border-b border-border last:border-b-0",children:[t("div",{className:"me-3",children:["pending"===n.status&&e(Xt,{className:"size-5 text-muted"}),"uploading"===n.status&&e(p,{size:"sm"}),"success"===n.status&&e(vn,{className:"size-5 text-success"}),"error"===n.status&&e(xn,{className:"size-5 text-destructive"})]}),t("div",{className:"flex-1 min-w-0",children:[e("div",{className:"truncate font-medium",children:n.file.name}),t("div",{className:"text-xs text-muted",children:["pending"===n.status&&C("agent.waiting"),"uploading"===n.status&&C("agent.uploading"),"success"===n.status&&("create"===n.action?C("store.created"):"update"===n.action?C("store.updated"):C("upload.skip")),"error"===n.status&&n.message]})]})]},`${n.file.name}-${n.file.size}-${n.file.lastModified}`))})]}):e(b,{children:t("div",{className:"mb-4",children:[ne(),e(Vr,{files:$.map(e=>{let t;return t="success"===e.status?"create"===e.action?"success":"update"===e.action?"updated":"skipped":"failed",{name:e.file.name,status:t,error:"error"===e.status?e.message:void 0}}),location:c||void 0,collection:H?.name})]})}):e(b,{children:R?t(n,{children:[ne(),e("div",{className:"mb-4",children:e("div",{className:"p-4 rounded-md mb-4",children:t("div",{className:"grid grid-cols-3 gap-4",children:[t("div",{className:"flex flex-col items-center",children:[t("div",{className:"flex items-center gap-2",children:[e(zn,{className:"size-5 text-primary"}),e("span",{className:"font-medium",children:C("upload.new")})]}),e("div",{className:"text-2xl font-semibold",children:re.toCreate})]}),t("div",{className:"flex flex-col items-center",children:[t("div",{className:"flex items-center gap-2",children:[e(vn,{className:"size-5 text-success"}),e("span",{className:"font-medium",children:C("upload.update")})]}),e("div",{className:"text-2xl font-semibold",children:re.toUpdate})]}),t("div",{className:"flex flex-col items-center",children:[t("div",{className:"flex items-center gap-2",children:[e(Zt,{className:"size-5 text-mixer-attention/40"}),e("span",{className:"font-medium",children:C("upload.skip")})]}),e("div",{className:"text-2xl font-semibold",children:re.toSkip})]})]})})}),me(),e(J,{className:"mb-4",status:"info",children:re.toCreate+re.toUpdate>0?t("div",{className:"space-y-1",children:[e("p",{children:C("upload.filesReadyToProcess",{count:re.toCreate+re.toUpdate})}),e("p",{children:re.toSkip>0&&C("upload.filesToSkip",{count:re.toSkip})})]}):re.toSkip>0?e("span",{children:C("upload.allFilesExist",{count:re.toSkip})}):e("span",{children:C("upload.noFilesToProcess")})})]}):t("div",{className:"flex flex-col items-center justify-center py-4",children:[e(p,{size:"lg",className:"mb-4"}),e("div",{className:"text-lg font-medium",children:C("upload.analyzingFiles")})]})}):t(b,{className:"flex flex-col items-center justify-center p-8",children:[ne(),e(Wr,{onDrop:ce,message:C("upload.dragAndDrop"),buttonLabel:C("upload.selectFiles"),className:"w-full h-64",allowFolders:y}),m]}),(()=>{if(g)return t(K,{children:[e(r,{variant:"ghost",onClick:le,children:C("modal.cancel")}),e(r,{onClick:()=>{u&&u({success:!0,objectIds:[],uploadedFiles:[{name:"type-selection",type:A?.id||null,status:"created"}],skippedFiles:[],failedFiles:[]}),le()},children:A?C("upload.useTypeName",{typeName:A.name}):C("upload.useAutoDetection")})]});if(0===S.length&&!f)return e(K,{children:e(r,{variant:"ghost",onClick:le,children:C("modal.cancel")})});if(!L&&!M){const n=R;return t(K,{children:[e(r,{variant:"ghost",onClick:le,children:C("modal.cancel")}),e(r,{disabled:!n,onClick:de,children:re.toCreate+re.toUpdate>0?C("agent.upload"):C("upload.continue")})]})}return L?e(K,{children:e(r,{variant:"ghost",disabled:!0,children:C("agent.uploading")})}):t(K,{children:[e(r,{variant:"ghost",onClick:()=>{T([]),z([]),P(!1),D(null),E([]),F(!1),U(!1),V(0),ae({toCreate:0,toUpdate:0,toSkip:0})},children:C("upload.uploadMore")}),e(r,{onClick:()=>{u&&Y&&u(Y),le()},children:C("agent.close")})]})})()]},B)}function ep(e){const t="function"==typeof e?e:e.onUploadDone,{client:n,project:r,store:a}=Ze(),s=qu(),i=l(),o=Ye.getFixedT(null,Qe),{checkDocumentProcessing:c}=Zu();return async(e,l,d)=>{const m={success:!1,objectIds:[],uploadedFiles:[],skippedFiles:[],failedFiles:[]};if(!r)return i({status:"error",title:o("store.noProjectSelected"),duration:3e3}),m;if(!e||0===e.length)return i({status:"warning",title:o("store.noFilesSelected"),duration:3e3}),m;const u=Array.from(e).filter(e=>e.size>0);if(0===u.length)return i({status:"error",title:o("store.noValidFilesSelected"),description:o("store.pleaseSelectValidFiles"),duration:5e3}),m;const p=[],h=[],f=[];console.log(`Processing ${u.length} files with smart file processing...`);const g=await c(u,null,d),x=g.filter(e=>e.action===Yu.CREATE).length,v=g.filter(e=>e.action===Yu.UPDATE).length,b=g.filter(e=>e.action===Yu.SKIP).length;i({title:o("store.filesAnalyzedTitle"),description:`${u.length} file(s): ${x} new, ${v} to update, ${b} to skip`,status:"info",duration:4e3});for(const e of g.filter(e=>e.action===Yu.SKIP&&e.existingId))p.push({id:e.existingId,name:e.name,type:l,status:"skipped",location:e.location});const y=g.filter(e=>(e.action===Yu.CREATE||e.action===Yu.UPDATE)&&e.file);if(y.length>0){console.log(`Processing ${y.length} files (${y.filter(e=>e.action===Yu.CREATE).length} create, ${y.filter(e=>e.action===Yu.UPDATE).length} update)...`);const e=50,t=[];for(let n=0;n<y.length;n+=e)t.push(y.slice(n,n+e));for(let r=0;r<t.length;r++){const s=t[r],c=r*e;console.log(`Processing batch ${r+1}/${t.length} (${s.length} files)`),y.length>e&&i({title:o("store.processingFiles"),description:`Processed ${c}/${y.length} files...`,status:"info",duration:2e3});const u=await Promise.all(s.map(async e=>{try{if(e.action===Yu.UPDATE&&e.existingId){const t=await n.store.objects.update(e.existingId,{type:l||void 0,content:e.file,location:e.location,name:e.name},{createRevision:!0,revisionLabel:`upload on ${(new Date).toISOString()}`});return h.push({id:e.existingId,name:e.name,type:l,status:"updated",location:e.location}),m.objectIds.push(e.existingId),{success:!0,id:t.id,name:e.name,action:"update"}}{const t=d?{collection_id:d}:void 0,n=await a.objects.create({type:l||void 0,content:e.file,location:e.location||e.file.webkitRelativePath||e.name},t);h.push({id:n.id,name:e.name,type:l,status:"created",location:e.location})}}catch(t){console.error(`Failed to process file ${e.name}:`,t),f.push({name:e.name,error:j(t,"Unknown error"),status:"failed",location:e.location,type:l}),i({status:"error",title:o("store.processingFailedFor",{name:e.name}),description:j(t),duration:4e3})}})),p=h.filter(e=>"created"===e.status),g=h.filter(e=>"updated"===e.status),x=h.filter(e=>"failed"===e.status);console.log(`Batch ${r+1} results:`,{creates:p,updates:g,failures:x,total:u.length})}}const w=h.filter(e=>"created"===e.status).length,N=h.filter(e=>"updated"===e.status).length,k=h.filter(e=>"failed"===e.status).length,C=h.filter(e=>"skipped"===e.status).length;t&&(console.log("Upload complete:",{totalObjectIds:m.objectIds.length,uploadedFiles:w,updatedFiles:N,skippedFiles:C,failedFiles:k}),await t(m.objectIds));let _="";return w>0&&(_+=`${w} file${1!==w?"s":""} uploaded`),N>0&&(_+=_?", ":"",_+=`${N} file${1!==N?"s":""} updated`),C>0&&(_+=_?", ":"",_+=`${C} file${1!==C?"s":""} skipped (already existed)`),k>0&&(_+=_?", ":"",_+=`${k} file${1!==k?"s":""} failed`),_&&i({status:k>0?"warning":"success",title:_,duration:4e3}),s.search(),m}}!function(e){e.CREATE="create",e.SKIP="skip",e.UPDATE="update"}(Yu||(Yu={}));const tp=[{name:"ID",field:"id",type:"objectId?slice=-7"},{name:"Name",field:".",type:"objectName"},{name:"Type",field:"type.name",type:"string"},{name:"Status",field:"status",type:"string"},{name:"Updated At",field:"updated_at",type:"date"}];function np({isGridView:t=!1,onUpload:n,collectionId:r,...a}){return n?e(rp,{...a,onUpload:n,isGridView:t,collectionId:r}):e(ap,{...a,isGridView:t})}function rp({isGridView:n,onUpload:r,collectionId:a,skipTypeModal:s=!1,...i}){const[o,c]=Le(!1),[d,m]=Le([]),[u,h]=Le(!1),[f,g]=Le(null),[x,v]=Le(!1),b=qu(),y=l(),{t:w}=Ke(),{checkDocumentProcessing:N}=Zu(),k=async(e,t)=>{console.log("Files dropped on ObjectTable:",e.length,t),c(!0);try{if(a){const t=await N(e,null,a);g(t);const n=t.filter(e=>"create"===e.action).length,r=t.filter(e=>"update"===e.action).length,s=t.filter(e=>"skip"===e.action).length;y({title:w("store.filesReadyToProcess"),description:`${e.length} file(s): ${n} new, ${r} to update, ${s} to skip`,status:"info",duration:4e3})}else g(null)}catch(e){console.error("Error processing files:",e),y({title:w("store.errorProcessingFiles"),description:w("store.errorCheckingDuplicates"),status:"error",duration:4e3}),g(null)}finally{if(c(!1),m(e),h(!1),s){console.log("Skipping type modal and calling onUpload directly",{filesLength:e.length,processedFilesLength:f?.length});const t=r(e,null,a);t&&"object"==typeof t&&(t.processedFiles=f)}else console.log("Setting typeSelectionOpen to true",{filesLength:e.length}),v(!0)}},C=e=>{const t=[...d];m([]),g(null),v(!1),t.length>0&&void 0!==e&&(c(!0),console.log("Starting upload with",{typeId:e,filesCount:t.length,hasProcessingResults:!!f,collectionId:a}),r(t,e,a).finally(()=>{c(!1),b.search()}))},_=e=>{e.preventDefault(),e.stopPropagation(),h(!0)};return t("div",{className:"min-h-[400px] relative",onDragOver:_,onDragEnter:_,onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),e.currentTarget.contains(e.relatedTarget)||h(!1)},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),h(!1),e.dataTransfer.items){const t=[];for(let n=0;n<e.dataTransfer.items.length;n++){const r=e.dataTransfer.items[n];if("file"===r.kind){const e=r.getAsFile();e&&t.push(e)}}if(t.length>0){const e={count:t.length,message:`Preparing to upload ${t.length} file${1===t.length?"":"s"}...`};k(t,e)}}},children:[e("div",{className:je("bg-white dark:bg-gray-800 opacity-40 absolute inset-0 z-50 flex justify-center items-center",o?"block":"hidden"),children:e(p,{size:"xl"})}),e(ap,{...i,isGridView:n}),e("div",{className:je("absolute inset-0 pointer-events-none",u?"z-40":"-z-10"),children:e("div",{className:"w-full h-full relative",children:e(Wr,{onDrop:k,message:"Drop files or folders here to upload",className:je("absolute inset-0 bg-white/90 dark:bg-gray-800/90 pointer-events-auto",u?"flex":"hidden"),buttonLabel:"Select Files or Folders",allowFolders:!0})})}),e(Xu,{isOpen:x&&d.length>0,onClose:()=>{m([]),g(null),v(!1),C(void 0)},files:d,collectionId:a,selectedFolder:null,title:"Upload Files",onUploadComplete:e=>{if(e){if(e.failedFiles&&e.failedFiles.length>0&&y({title:w("store.uploadIssues"),description:`${e.failedFiles.length} file(s) failed to upload`,status:"warning",duration:5e3}),e.success){const t=e.uploadedFiles.filter(e=>"created"===e.status).length,n=e.uploadedFiles.filter(e=>"updated"===e.status).length,r=e.skippedFiles.length;(t>0||n>0)&&y({title:w("store.uploadComplete"),description:`${t>0?`${t} created`:""}${t>0&&n>0?", ":""}${n>0?`${n} updated`:""}${r>0?`, ${r} skipped`:""}`,status:"success",duration:5e3})}b.search()}m([]),g(null),v(!1),e?.success&&e.objectIds.length>0?C(null):C(void 0)}})]})}function ap({objects:t,layout:n=tp,isLoading:r,onRowClick:a,onSelectionChange:s,highlightRow:i,previewObject:o,selectedObject:l,isGridView:c}){const d=cu(),m=(e,n)=>{if(d){const r=n.nativeEvent instanceof MouseEvent&&n.nativeEvent.shiftKey;if(n.target.checked){if(d.add(e),r){const n=t.findIndex(t=>t.id===e.id),r=function(e,t,n){for(let r=t-1;r>=0;r--)if(n.isSelected(e[r].id))return r;return-1}(t,n,d);if(r>-1&&r<n-1){const e=[];for(let a=r+1;a<n;a++)e.push(t[a]);d.addAll(e)}else{const e=function(e,t,n){const r=e.length;for(let a=t+1;a<r;a++)if(n.isSelected(e[a].id))return a;return-1}(t,n,d);if(e>-1&&e>n+1){const r=[];for(let a=n+1;a<e;a++)r.push(t[a]);d.addAll(r)}}}}else d.remove(e.id);s?.(d)}},u=e=>{if(d){e.target.checked?d.addAll(t):d.removeAll()}},p=Ee(()=>{const e=n.length>0?n:tp;return console.log("Using layout with columns:",e.map(e=>e.name).join(", ")),e.map(e=>new Fu(e,o))},[n,o]);return e(c?Wu:Uu,{objects:t,isLoading:r,columns:p,onRowClick:a,highlightRow:i,previewObject:o,selectedObject:l,selection:d,toggleAll:u,onSelectionChange:m})}function sp({children:t,limit:n,parent:r,typeId:a,facets:s,name:i,collectionId:o}){const{store:l}=Ze(),c=Ee(()=>{let e;s?e=s:(e=[{name:"status",field:"status"},{name:"location",field:"location"}],a||e.unshift({name:"type",field:"type"}));const t=new Vu(l,n).withFacets(e);return t.collectionId=o,t.query.type=a,t.query.parent=r,t.query.name=i,o&&(t.query.all_revisions=!0),t},[o,s,n,i,r,l,a]);return e(Bu.Provider,{value:c,children:t})}const ip="vertesia.content_store.lastDisplayedView";function op({onUpdate:t}){const{t:n}=Ke(),[a,s]=Le("grid"===localStorage.getItem(ip)),i=()=>{localStorage.setItem(ip,"grid"),s(!0),t(!0)},o=()=>{localStorage.setItem(ip,"table"),s(!1),t(!1)};return e(r,{variant:"outline",onClick:()=>{a?o():i()},alt:n(a?"misc.tableView":"misc.thumbnailView"),children:e(a?jn:Rn,{})})}op.LAST_DISPLAYED_VIEW=ip;const lp=[{name:"Name",field:"properties.title",type:"string",fallback:"name"},{name:"Type",field:"type.name",type:"string"},{name:"Status",field:"status",type:"string"},{name:"Created At",field:"created_at",type:"date"}];function cp({onChange:t,selectedIds:n}){return e(sp,{children:e(dp,{onRowClick:e=>{t(e||void 0)},selectedIds:n})})}function dp({onRowClick:n,selectedIds:a}){const{t:s}=Ke(),i=Ue(e=>!!a?.has(e.id),[a]),[o,l]=Le(!1),[c,d]=Le("grid"===localStorage.getItem("vertesia.content_store.lastDisplayedView")),{search:m,isLoading:u,error:p,objects:h,hasMore:g}=Gu(),x=Me(null);Y(x,()=>{o&&g&&!u&&(l(!1),m.loadMore(!0).finally(()=>{l(!0)}))},{threshold:.1,deps:[o,g,u]}),Ve(()=>{m.search().finally(()=>{l(!0)})},[m]);const v=Hu(),b=qu();return p?e(f,{title:s("store.searchFailed"),children:p.message}):t("div",{className:"flex flex-col gap-2 h-full w-full",children:[t("div",{className:"flex justify-between items-center flex-shrink-0",children:[e(Dm,{facets:v,search:b}),t("div",{className:"flex items-center gap-2",children:[e(r,{variant:"outline",onClick:()=>{l(!1),m.search().then(()=>l(!0))},"aria-label":"Refresh",children:e(Tn,{size:16})}),e(op,{onUpdate:d})]})]}),t("div",{className:"@container relative flex-1 overflow-y-auto",children:[e(np,{objects:h||[],isLoading:!h.length&&u,layout:lp,onRowClick:n,highlightRow:a?.size?i:void 0,isGridView:c}),e("div",{ref:x,className:"h-4 w-full"})]})]})}function mp({onSend:n,onStop:a,disabled:i=!1,isSending:o=!1,isStopping:l=!1,isStreaming:c=!1,isCompleted:u=!1,activeTaskCount:h=0,activeWorkstreams:f=[],placeholder:g,onFilesSelected:y,uploadedFiles:w=[],onRemoveFile:N,onRemoveProcessingFile:k,acceptedFileTypes:C,maxFiles:_=5,processingFiles:S,artifactRunId:T,hasProcessingFiles:I=!1,renderDocumentSearch:z,selectedDocuments:j=[],onRemoveDocument:R,hideObjectLinking:P=!1,hideFileUpload:A=!1,disableDropZone:D=!1,className:$,inputClassName:E}){const{t:L}=Ke(),F=g??L("agent.typeYourMessage"),O=Me(null),M=Me(null),[U,W]=Le(""),[V,B]=Le(!1),[q,H]=Le(!1),[G,J]=Le(!1),K=Boolean(y&&!A),Y=K&&!D,X=!P||K||Boolean(z),ee=w.length>=_,te=k??N,ne=Ee(()=>f.filter(e=>"running"===e.status||"canceling"===e.status),[f]),re=ne.length||h,ae=ne.slice(0,3),se=Math.max(0,ne.length-ae.length),ie=Ee(()=>{const e=[];if(!A&&S)for(const t of S.values()){const n=t.preview_url,r=t.status===Xn.UPLOADING?L("agent.uploading"):t.status===Xn.PROCESSING?L("agent.processing"):t.status===Xn.ERROR?L("agent.error"):t.status===Xn.READY?L("agent.ready"):t.status;e.push({id:t.id,name:t.name,contentType:t.content_type,artifactPath:t.artifact_path,previewUrl:n,removable:Boolean(te),statusLabel:r,statusTone:t.status===Xn.ERROR?"destructive":t.status===Xn.READY?"success":"attention"})}if(!A)for(const t of w)e.push({id:t.id,name:t.name,contentType:t.type,artifactPath:t.artifact_path,previewUrl:t.previewUrl,removable:Boolean(N),statusLabel:L("agent.ready"),statusTone:"success"});for(const t of j)e.push({id:t.id,name:t.name,href:`/store/objects/${t.id}`,removable:Boolean(R),statusTone:"info"});return e},[te,A,R,N,S,j,L,w]);Ve(()=>{!i&&u&&O.current?.focus()},[i,u]);const oe=Ue(e=>{if(!K||!y)return;const t=Array.from(e),n=_-w.length,r=t.slice(0,n);r.length>0&&y(r)},[K,y,_,w.length]),le=Ue(e=>{e.preventDefault(),e.stopPropagation(),Y&&J(!0)},[Y]),ce=Ue(e=>{e.preventDefault(),e.stopPropagation(),J(!1)},[]),de=Ue(e=>{e.preventDefault(),e.stopPropagation(),J(!1),Y&&e.dataTransfer?.files&&e.dataTransfer.files.length>0&&oe(e.dataTransfer.files)},[Y,oe]),me=Ue(e=>{if(!K)return;const t=e.clipboardData?.items;if(!t)return;const n=[];for(let e=0;e<t.length;e++){const r=t[e];if("file"===r.kind){const e=r.getAsFile();if(e)if(!r.type.startsWith("image/")||e.name&&"image.png"!==e.name)n.push(e);else{const t=r.type.split("/")[1]||"png",a=new File([e],`pasted-image-${Date.now()}.${t}`,{type:e.type});n.push(a)}}}n.length>0&&oe(n)},[K,oe]),ue=Ue(e=>{K&&e.target.files&&e.target.files.length>0&&(oe(e.target.files),e.target.value="")},[K,oe]),pe=Ue(()=>{M.current?.click()},[]),he=Ue(()=>H(!1),[]),fe=Ue(e=>H(!1),[]),ge=()=>{const e=U.trim();!e||i||o||(n(e),W(""))},xe=()=>{a&&!l&&a()},ve=Me(0),be=Ue(()=>{const e=O.current;e&&(e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,200)}px`)},[]);Ve(()=>{be()},[U,be]);return t("div",{className:s("px-3 py-3 flex-shrink-0 transition-all fixed lg:sticky bottom-0 start-0 end-0 lg:start-auto lg:end-auto w-full bg-background/95 backdrop-blur z-10",G&&Y&&"bg-info/10 border-info",$),onDragOver:Y?le:void 0,onDragLeave:Y?ce:void 0,onDrop:Y?de:void 0,children:[G&&Y&&e("div",{className:"absolute inset-0 flex items-center justify-center bg-blue-100/80 dark:bg-blue-900/40 rounded-lg z-10 pointer-events-none",children:t("div",{className:"text-blue-600 dark:text-blue-400 font-medium flex items-center gap-2",children:[e(zn,{className:"size-5"}),L("agent.dropFilesToUpload")]})}),K&&e("input",{ref:M,type:"file",multiple:!0,accept:C,onChange:ue,className:"hidden"}),ne.length>0&&e("div",{className:"mx-auto mb-2 w-full max-w-3xl px-1","data-agent-active-workstreams":!0,children:t("output",{className:"flex flex-col gap-1.5 rounded-2xl border border-border/70 bg-background/95 p-2 text-xs text-muted shadow-lg shadow-black/5","aria-live":"polite",children:[t("div",{className:"flex items-center gap-2 px-1 font-medium",children:[e(Pt,{className:"size-3.5 text-muted","aria-hidden":"true"}),e("span",{children:L("agent.activeWorkstreams",{count:ne.length})})]}),t("div",{className:"flex flex-col gap-0.5",children:[ae.map(n=>{const r=co(n.workstream_id,n.interaction);return t("span",{className:"flex min-w-0 items-center gap-2 rounded-lg px-1 py-1 text-sm text-foreground/80",title:r,children:[e("span",{className:s("size-1.5 shrink-0 rounded-full",po(n.status)),"aria-hidden":"true"}),e("span",{className:"truncate font-medium",children:r}),n.phase&&e("span",{className:"truncate text-xs text-muted/75",children:lo(n.phase)})]},n.launch_id||n.workstream_id)}),se>0&&t("span",{className:"px-1 py-1 text-xs text-muted",children:["+",se]})]})]})}),t("div",{className:"mx-auto flex max-w-3xl flex-col gap-2 rounded-2xl border border-border/70 bg-mixer-muted/15 p-2.5 shadow-lg shadow-black/5",children:[ie.length>0&&e(Co,{items:ie,artifactRunId:T,variant:"composer",onRemove:e=>{S?.has(e)?te?.(e):w.some(t=>t.id===e)?N?.(e):R?.(e)},className:"gap-1.5"}),e("div",{className:"flex min-w-0 flex-1",children:e(Q,{ref:O,value:U,onKeyDown:e=>{if("Enter"===e.key){return e.metaKey||e.ctrlKey||e.altKey||e.shiftKey?void(e.shiftKey||(e.preventDefault(),Z(e.currentTarget,W))):(e.preventDefault(),void(U.trim().length>0&&ge()))}if("Escape"===e.key&&c&&a){const e=Date.now();e-ve.current<500?(xe(),ve.current=0):ve.current=e}},onChange:e=>W(e.target.value),onPaste:me,disabled:i,"aria-label":F,placeholder:c?`${L("agent.agentWorking")} ${L("agent.enterToSend")}`:K?`${L("agent.askAnything")} ${L("agent.enterToSend")}`:`${F} ${L("agent.enterToSend")}`,rows:1,style:{maxHeight:"160px"},className:s("min-h-[44px] resize-none border-0 bg-transparent px-0 py-0 text-sm leading-6 shadow-none focus-visible:ring-0",E)})}),t("div",{className:"flex items-center justify-between gap-3",children:[t("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[X&&t(d,{align:"left",trigger:e(r,{variant:"ghost",size:"icon",className:"size-8 rounded-full text-muted hover:bg-muted","aria-label":L("agent.addAttachment"),children:e(An,{className:"size-4"})}),children:[!P&&t(m,{onClick:()=>B(!0),isDisabled:!u,children:[e(Pn,{className:"size-4"}),L("agent.linkObject")]}),K&&t(m,{onClick:pe,isDisabled:ee,children:[e(zn,{className:"size-4"}),L("agent.upload")]}),z&&t(m,{onClick:()=>H(!0),children:[e(It,{className:"size-4"}),e("span",{children:L("agent.searchDocuments")}),j.length>0&&e("span",{className:"ms-auto inline-flex items-center justify-center rounded-full bg-info/20 px-1.5 py-0.5 text-[10px] font-medium text-info",children:j.length})]})]}),0===ne.length&&re>0&&e("output",{className:"flex min-w-0 flex-wrap items-center gap-1.5","aria-live":"polite",children:t("span",{className:"inline-flex h-8 items-center gap-1 rounded-full px-2 text-xs text-muted",children:[e(Dn,{className:"size-3 text-attention"}),L("agent.activeWorkstreams",{count:re})]})})]}),c&&a&&!U.trim()?e(r,{onClick:xe,disabled:l,variant:"ghost",size:"icon",className:s("size-9 rounded-full border border-border/60 bg-foreground text-background shadow-sm","hover:bg-foreground/90 hover:text-background","disabled:bg-mixer-muted/25 disabled:text-muted disabled:opacity-100","[&_svg]:text-destructive disabled:[&_svg]:text-muted"),title:L("agent.stopAgent"),"aria-label":L("agent.stopAgent"),children:l?e(p,{size:"sm"}):e($n,{className:"size-3 fill-current stroke-current"})}):e(r,{onClick:ge,disabled:i||o||!U.trim()||I,variant:"ghost",size:"icon",className:s("size-9 rounded-full border border-border/60 bg-foreground text-background shadow-sm","hover:bg-foreground/90 hover:text-background","disabled:bg-mixer-muted/25 disabled:text-muted disabled:opacity-100"),title:I?L("agent.waitForFiles"):void 0,"aria-label":L(I?"agent.waitForFiles":"agent.send"),children:o?e(p,{size:"sm"}):e(En,{className:"size-4"})})]})]}),t(x,{isOpen:V,onClose:()=>B(!1),className:"min-w-[60vw]",children:[e(v,{children:L("agent.linkObject")}),e(b,{className:"pb-6",children:e(cp,{onChange:e=>{const t=`[${e.properties?.title||e.name||"Object"}](store:${e.id})`,n=U||"",r=O.current?.selectionStart||n.length,a=n.substring(0,r)+t+n.substring(r);W(a),B(!1),setTimeout(()=>{if(O.current){O.current.focus();const e=r+t.length;O.current.setSelectionRange(e,e)}},100)}})})]}),z?.({isOpen:q,onClose:he,onSelect:fe})]})}function up({code:t}){const{onProposalSelect:n,onProposalSubmit:r}=Br(),a=Ee(()=>qr(t),[t]),s=Ee(()=>{if(a)return null;try{const e=t.trim(),a=JSON.parse(e);if(!a.options||!a.question&&!a.title)return null;const s={question:a.question||a.title||"",description:a.description,options:Array.isArray(a.options)?a.options.map(e=>({id:e.id||e.value||"",label:e.label||"",description:e.description})):void 0,allowFreeResponse:a.allowFreeResponse??a.multiple,variant:a.variant,onSelect:n,onSubmit:r};return s.question&&s.options?.length?s:null}catch{return null}},[t,n,r,a]);return a?e(Hr,{type:"proposal",message:"Loading options..."}):s?e(Gr,{type:"proposal",fallbackCode:t,children:e(Ii,{...s})}):e(Hr,{type:"proposal",error:"Invalid proposal specification"})}const pp=We(function({code:t}){const n=Ee(()=>{try{const e=JSON.parse(t);return"vega-lite"===e?.library&&e?.spec&&"object"==typeof e.spec?e:"string"==typeof e?.$schema&&e.$schema.includes("vega")?{library:"vega-lite",spec:e}:null}catch{return null}},[t]);return n?e(Qa,{spec:n}):null}),hp=We(function({code:t}){const n=Ee(()=>{try{return{library:"vega-lite",spec:JSON.parse(t)}}catch{return null}},[t]);return n?e(Qa,{spec:n}):null}),fp={chart:pp,"vega-lite":hp,vegalite:hp,"fusion-fragment":Ar,proposal:up,askuser:up};function gp({url:t,code:n}){const[r,a]=Le(null);return Ve(()=>{import(t).then(e=>{a(()=>e.default)}).catch(e=>{console.error("Failed to load remote widget component from ",t,e)})},[t]),r?e(r,{code:n}):null}function xp({children:t}){const{client:n}=Ze(),[r,a]=Le(fp);return Ve(()=>{(async function(t){const n=await t.apps.getInstalledApps("tools"),r=new Set;for(const e of n){if(e.manifest.tool_collections&&e.manifest.tool_collections.length>0)for(const t of e.manifest.tool_collections||[]){const e=or(t).url;if(e.startsWith("http://")||e.startsWith("https://")){const t=e.indexOf("/api/");if(t>0){const n=e.substring(0,t);r.add(`${n}/api/widgets`)}}}e.manifest.endpoint&&e.manifest.capabilities?.includes("tools")&&r.add(new URL("/api/widgets",e.manifest.endpoint).toString())}const a=await Promise.all(Array.from(r).map(t=>fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch widgets: ${e.status} ${e.statusText}`);return e.json()}).then(t=>{const n=[],r=t.widgets;for(const[t,a]of Object.entries(r))n.push({name:t,component:t=>e(gp,{url:a.url,code:t.code})});return n}).catch(()=>(console.error("Failed to fetch skill widgets from ",t),null)))),s={};for(const e of a.flat())e&&(s[e.name]=e.component);return s})(n).then(e=>{a({...fp,...e})})},[n]),e(Jr,{components:r,children:t})}const vp=new Map;function bp(e){if("number"==typeof e)return e;if(!e)return Date.now();const t=new Date(e).getTime();return Number.isFinite(t)?t:Date.now()}function yp(e){const t=new Map,n=new Map;for(const r of e){const e=fo(r);if(e&&n.set(e.workstreamId,{launch_id:e.launchId,interaction:e.interaction,child_workflow_id:e.childWorkflowId,child_workflow_run_id:e.childWorkflowRunId}),uo(r))continue;const a=Di(r);"main"!==a&&"all"!==a&&t.set(a,r)}return Array.from(t.entries()).filter(([,e])=>![Qn.COMPLETE,Qn.IDLE].includes(e.type)&&!function(e){const t=ho(e);return"completed"===t||"canceled"===t||"failed"===t||"timeout"===t}(e)).map(([e,t])=>{const r=n.get(e);return{workstream_id:e,launch_id:r?.launch_id??`message-derived:${e}`,interaction:r?.interaction,elapsed_ms:0,deadline_ms:0,remaining_ms:0,status:ho(t)??"running",child_workflow_id:r?.child_workflow_id,child_workflow_run_id:r?.child_workflow_run_id}})}function wp(e){if(e<60)return`${e}s`;const t=Math.floor(e/60),n=e%60;return n>0?`${t}m ${n}s`:`${t}m`}function Np({message:n,startedAt:r}){const{t:a}=Ke(),i=function(e,t=!0){const[n,r]=Le(()=>Math.max(0,Math.floor((Date.now()-bp(e))/1e3)));return Ve(()=>{if(!t)return;const n=()=>{r(Math.max(0,Math.floor((Date.now()-bp(e))/1e3)))};n();const a=window.setInterval(n,1e3);return()=>window.clearInterval(a)},[t,e]),n}(r),o=function(e=!0){const[t,n]=Le(0);return Ve(()=>{if(!e)return;const t=window.setInterval(()=>{n(()=>Math.floor(Math.random()*oo.length))},4e3);return()=>window.clearInterval(t)},[e]),t}();return t("div",{className:"mx-auto flex min-h-full w-full max-w-3xl flex-col justify-end gap-6 px-1 py-8",children:[e("div",{className:"flex w-full justify-end",children:e("div",{className:s("max-w-[min(44rem,82%)] rounded-[1.35rem] bg-mixer-muted/35 px-4 py-2.5","break-words text-sm font-normal leading-6 text-foreground/90 shadow-sm shadow-black/5","dark:bg-mixer-muted/15 dark:text-foreground/88 dark:shadow-none [overflow-wrap:anywhere]"),children:e("div",{className:"whitespace-pre-wrap",children:n})})}),t("div",{className:"border-b border-border/70 pb-4 text-sm text-muted",children:[t("div",{className:"flex items-center gap-3",children:[e(no,{size:"sm",color:"blue"}),t("div",{className:"min-w-0",children:[t("div",{children:[e("span",{className:"font-medium",children:a("agent.preparing")}),t("span",{className:"ms-2 text-muted/75",children:["for ",wp(i)]})]}),e("div",{className:"mt-1 truncate text-muted/80",children:oo[o]})]})]}),e("div",{className:"mt-3 ps-6",children:e(to,{color:"blue"})})]})]})}function kp(e){return function(e){let t=0,n=e.length;for(;t<n&&"-"===e[t];)t++;for(;n>t&&"-"===e[n-1];)n--;return e.slice(t,n)}(e.trim().replace(/[^a-z0-9-_]+/gi,"-")).slice(0,80)}function Cp(t){const{agentRunId:n,startWorkflow:r}=t;return n?e(xp,{children:e(Tp,{...t,agentRunId:n})}):r?e(Sp,{...t}):e(_p,{})}function _p(){const{t:n}=Ke();return t(J,{status:"info",icon:e(Pt,{className:"size-16 text-muted mb-4"}),children:[e("div",{className:"text-base font-medium text-muted",children:n("agent.noAgentRunning")}),e("div",{className:"mt-3 text-sm text-muted",children:n("agent.selectInteraction")})]})}function Sp({initialMessage:n,startWorkflow:a,onClose:i,isModal:o=!1,fullWidth:c=!1,placeholder:d,startButtonText:m,title:u,getAttachedDocs:h,onAttachmentsSent:f,acceptedFileTypes:g,maxFiles:x=5,hideHeader:v=!1,hideFileUpload:b=!1,hideObjectLinking:y,headerVariant:w,inputContainerClassName:N,inputClassName:k,className:C,allowWorkflowControl:_}){const{t:S}=Ke(),T=d??S("agent.typeYourMessage"),I=m??S("agent.startAgent"),z=u??S("agent.startNewConversation"),{client:j}=Ze(),[R,P]=Le(""),[A,D]=Le(!1),[$,E]=Le(null),[L,F]=Le(null),[O,M]=Le(null),U=l(),W=Me(null),V=Me(null),[B,q]=Le([]),H=!b,[G,J]=Le(!1),K=Me(0),Y=Ue(e=>{H&&(e.preventDefault(),e.stopPropagation(),K.current++,e.dataTransfer?.types?.includes("Files")&&J(!0))},[H]),X=Ue(e=>{H&&(e.preventDefault(),e.stopPropagation())},[H]),ee=Ue(e=>{H&&(e.preventDefault(),e.stopPropagation(),K.current--,0===K.current&&J(!1))},[H]),te=Ue(e=>{if(H&&(e.preventDefault(),e.stopPropagation(),K.current=0,J(!1),e.dataTransfer?.files&&e.dataTransfer.files.length>0)){const t=Array.from(e.dataTransfer.files);q(e=>[...e,...t].slice(0,x))}},[x,H]),ne=Ue(e=>{if(e.target.files&&e.target.files.length>0){const t=Array.from(e.target.files);q(e=>[...e,...t].slice(0,x))}e.target.value=""},[x]),re=Ue(e=>{q(t=>t.filter((t,n)=>n!==e))},[]);Ve(()=>{W.current&&W.current.focus()},[]);const ae=async()=>{if(!a)return;const e=R.trim();if(e&&!A){D(!0);try{sessionStorage.removeItem("plan-panel-shown"),U({title:H&&B.length>0?S("agent.startingAgentUploading"):S("agent.startingAgent"),status:"info",duration:3e3});const t=h?.()||[];let n=e;if(t.length>0&&!/store:\S+/.test(e)){n=[e,"","Attachments:",...t.map(e=>`[${e.name}](/store/objects/${e.id})`)].join("\n")}if(H&&B.length>0){const e=B.map(e=>e.name).join(", ");n=[n,"",`[System: ${B.length} file(s) are being uploaded: ${e}. Please wait for the "Files Ready" notification before processing them.]`].join("\n")}F(n),M(Date.now());const r=await a(n);if(r){const e=r.agent_run_id,t=[];if(H&&B.length>0){for(const n of B)try{const r=`files/${n.name}`;await j.agents.uploadArtifact(e,r,n),await j.agents.sendSignal(e,"FileUploaded",{id:`file-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,name:n.name,content_type:n.type||"application/octet-stream",reference:`artifact:${r}`,artifact_path:r}),t.push(n.name)}catch(e){console.error(`Failed to upload staged file ${n.name}:`,e)}if(t.length>0)try{await j.agents.sendSignal(e,"UserInput",{message:`[Files Ready] All ${t.length} file(s) have been uploaded and are now available: ${t.join(", ")}. You can now process them.`,metadata:{type:"files_ready",files:t}})}catch(e){console.error("Failed to send files ready signal:",e)}q([])}f?.(),E(e),P(""),U({title:S("agent.agentStarted"),status:"success",duration:3e3})}}catch(e){F(null),M(null),U({title:S("agent.errorStarting"),status:"error",duration:3e3,description:e instanceof Error?e.message:S("agent.unknownError")})}finally{D(!1)}}},se=Ue(()=>{const e=W.current;e&&(e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,200)}px`)},[]);return Ve(()=>{se()},[R,se]),$?e(Tp,{onClose:i,isModal:o,initialMessage:n,placeholder:d,fullWidth:c,hideHeader:v,headerVariant:w,hideFileUpload:b,hideObjectLinking:y,inputContainerClassName:N,inputClassName:k,className:C,allowWorkflowControl:_,agentRunId:$,title:u,pendingStartMessage:L??void 0,pendingStartTimestamp:O??void 0}):e("div",{className:s("flex h-full flex-col items-center bg-background",C),children:t("div",{className:s("relative flex h-full w-full flex-col overflow-hidden border-0",c?"":"max-w-4xl"),onDragEnter:H?Y:void 0,onDragOver:H?X:void 0,onDragLeave:H?ee:void 0,onDrop:H?te:void 0,children:[H&&G&&e("div",{className:"absolute inset-0 flex items-center justify-center bg-info-background z-50 pointer-events-none rounded-lg",children:t("div",{className:"text-info font-medium flex items-center gap-2 text-lg",children:[e(zn,{className:"size-6"}),"Drop files to stage for upload"]})}),H&&e("input",{ref:V,type:"file",multiple:!0,accept:g,onChange:ne,className:"hidden"}),!v&&t("div",{className:"flex items-center justify-between border-b border-border/60 bg-background px-3 py-2",children:[t("div",{className:"flex items-center gap-2",children:[e("div",{className:"p-1",children:e(Ln,{className:"size-3.5 text-muted"})}),e("span",{className:"text-sm font-medium text-foreground",children:z})]}),i&&!o&&e(r,{size:"xs",variant:"ghost",onClick:i,"aria-label":S("agent.close"),title:S("agent.close"),className:"text-muted hover:text-foreground",children:e(St,{className:"size-4"})})]}),e("div",{className:"flex flex-1 flex-col items-center justify-end overflow-y-auto bg-background px-4",children:L&&O?e(Np,{message:L,startedAt:O}):e("div",{className:"mx-auto flex min-h-full w-full max-w-3xl flex-col justify-end py-8",children:n&&e("div",{className:"text-[15px] leading-relaxed text-foreground/80",children:n})})}),t("div",{className:"shrink-0 bg-background px-4 pb-safe-area-4 pt-2",children:[t("div",{className:s("mx-auto flex max-w-3xl flex-col gap-3 rounded-2xl border border-border/70 bg-mixer-muted/15 p-3 shadow-lg shadow-black/5",N),children:[H&&B.length>0&&e("div",{className:"flex flex-wrap gap-2",children:B.map((n,a)=>t("div",{className:"flex items-center gap-1.5 rounded-md bg-attention/10 px-2 py-1 text-sm text-attention",children:[e(It,{className:"size-3.5"}),e("span",{className:"max-w-[120px] truncate",children:n.name}),e("span",{className:"text-xs opacity-70",children:S("agent.staged")}),e(r,{variant:"unstyled","aria-label":`Remove staged file ${n.name}`,onClick:()=>re(a),className:"ms-1 rounded p-0.5 hover:bg-attention/20",children:e(St,{className:"size-3"})})]},`${n.name}-${n.size}-${n.lastModified}`))}),e(Q,{ref:W,value:R,onChange:e=>P(e.target.value),onKeyDown:e=>{if("Enter"!==e.key)return;if(!(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey))return e.preventDefault(),void ae();e.shiftKey||(e.preventDefault(),Z(e.currentTarget,P))},placeholder:T,disabled:A,rows:2,className:s("min-h-[72px] resize-none overflow-hidden border-0 bg-transparent px-0 py-0 text-sm leading-6 shadow-none focus-visible:ring-0",k),style:{minHeight:"72px",maxHeight:"200px"}}),t("div",{className:"flex items-center justify-between gap-3",children:[e("div",{className:"flex min-w-0 items-center gap-2",children:H&&e(r,{variant:"ghost",size:"icon",onClick:()=>V.current?.click(),disabled:A||B.length>=x,"aria-label":S("agent.upload"),className:"rounded-full text-muted",title:S("agent.upload"),children:e(zn,{className:"size-4"})})}),e(r,{onClick:ae,disabled:!R.trim()||A,variant:"ghost",size:"icon",className:s("size-9 rounded-full border border-border/60 bg-foreground text-background shadow-sm","hover:bg-foreground/90 hover:text-background","disabled:bg-mixer-muted/25 disabled:text-muted disabled:opacity-100"),title:I,"aria-label":I,children:A?e(p,{size:"sm"}):e(En,{className:"size-4"})})]})]}),e("div",{className:"mx-auto mt-2 max-w-3xl text-center text-xs text-muted",children:H&&B.length>0?S("agent.filesStagedCount",{count:B.length}):S("agent.enterToSend")})]})]})})}function Tp({agentRunId:a,title:i,interactive:o=!0,onClose:c,isModal:d=!1,fullWidth:m=!1,placeholder:u,resetWorkflow:p,onRestart:h,onClone:f,onShowDetails:g,allowWorkflowControl:y=!0,uploadedFiles:w,onRemoveFile:N,acceptedFileTypes:k,maxFiles:C,renderDocumentSearch:_,selectedDocuments:S,onRemoveDocument:T,hideObjectLinking:I,hideHeader:z,headerVariant:j="full",hideMessageInput:R,failedAction:P,hidePlanPanel:A,hideWorkstreamTabs:D,showRightPanel:$=!0,hideFileUpload:E,showArtifacts:L=!1,hideDocumentPanel:F,hiddenMessageTypes:O,getAttachedDocs:M,onAttachmentsSent:U,isUploading:W=!1,getMessageContext:V,className:B,inputContainerClassName:q,inputClassName:H,fusionData:G,fileUploadRef:Y,onProcessingFilesChange:Q,processingFiles:Z,onPlansChange:X,onWorkstreamStatusChange:ee,viewMode:te,onViewModeChange:ne,onShowInputChange:re,stopRef:ae,onStoppingChange:se,messageItemClassNames:ie,messageStyleOverrides:oe,toolCallGroupClassNames:le,hideToolCallsInViewMode:ce,streamingMessageClassNames:de,batchProgressPanelClassNames:me,workingIndicatorClassName:ue,messageListClassName:pe,StoreLinkComponent:he,CollectionLinkComponent:fe,prependFriendlyMessage:ge,initialRequestData:xe,initialRequestSchema:ve,initialRequestTitle:be,initialRequestTemplate:ye,payloadContent:we,conversationContent:Ne,conversationTab:ke=!1,pendingStartMessage:Ce,pendingStartTimestamp:_e,enablePlayback:Se,showPlaybackToggle:Te=!0}){const{t:Ie}=Ke(),{client:ze}=Ze(),je=l(),{messages:Re,streamingMessages:Pe,isCompleted:Ae,debugChunkFlash:De,addOptimisticMessage:$e,removeOptimisticMessages:Fe,reconnect:Oe,agentRunStatus:We,workflowRunId:Be,serverFileUpdates:qe}=function(e,t){const[n,r]=Le([]),[a,s]=Le(!1),[i,o]=Le(null),[l,c]=Le(null),[d,m]=Le(new Map),[u,p]=Le(0),h=Ue(()=>p(e=>e+1),[]),f=Me(null),g=Me(0),[x,v]=Le(new Map),b=Me(new Map),y=Me(null),[w,N]=Le(!1),k=Me(null),C=Ue(()=>{const e=y.current;e&&("raf"===e.mode?cancelAnimationFrame(e.id):clearTimeout(e.id),y.current=null)},[]),_=Ue(()=>{b.current.size>0&&(v(new Map(b.current)),N(!0),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>N(!1),50)),y.current=null},[]);Ve(()=>{s(!Pi(n))},[n]),Ve(()=>{const n=f.current!==t;f.current=t,n&&(r([]),o(null),c(null),v(new Map),m(new Map),g.current=0);const a=new AbortController,s=n?void 0:g.current||void 0;return e.agents.getInternals(t).then(e=>{a.signal.aborted||(o(e.status?.toUpperCase()??null),c(e.first_workflow_run_id??null))}).catch(e=>{a.signal.aborted||console.error("Failed to check agent run status:",e)}),e.agents.streamMessages(t,e=>{if(a.signal.aborted)return;if(e.timestamp&&e.timestamp>g.current&&(g.current=e.timestamp),e.type===Qn.STREAMING_CHUNK){const t=e.details,n=t?.activity_id||t?.streaming_id;if(!n)return;const r=b.current.get(n)||{text:"",workstreamId:e.workstream_id,startTimestamp:Date.now(),activityId:t?.activity_id},a=r.text+(e.message||"");return b.current.set(n,{text:a,workstreamId:e.workstream_id,isComplete:t.is_final,startTimestamp:r.startTimestamp,activityId:t?.activity_id}),void(null===y.current&&(document.hidden?y.current={mode:"timeout",id:window.setTimeout(_,16)}:y.current={mode:"raf",id:requestAnimationFrame(_)}))}if(e.type===Qn.SYSTEM){const t=e.details;if("file_processing"===t?.system_type&&t.files)return void m(new Map(t.files.map(e=>[e.id,e])))}if((e.type===Qn.THOUGHT||e.type===Qn.ANSWER)&&e.details?.activity_id){const t=e.details.activity_id;b.current.delete(t),v(e=>{if(e.has(t)){const n=new Map(e);return n.delete(t),n}return e})}e.type!==Qn.COMPLETE&&e.type!==Qn.IDLE||b.current.size>0&&_();const t=!!e.message,n=[Qn.COMPLETE,Qn.IDLE,Qn.TERMINATED,Qn.REQUEST_INPUT].includes(e.type);(t||n)&&r(t=>{if(t.find(t=>t.timestamp===e.timestamp))return t;if(e.type===Qn.QUESTION&&!e.details?._optimistic){const n=t.filter(e=>!(e.type===Qn.QUESTION&&e.details?._optimistic));return ji(n,e),[...n]}return ji(t,e),[...t]})},s,a.signal).then(()=>{if(!a.signal.aborted)return e.agents.getInternals(t).then(e=>{a.signal.aborted||o(e.status?.toUpperCase()??null)}).catch(e=>{a.signal.aborted||console.error("Failed to refresh agent run status on stream end:",e)})}).catch(e=>{a.signal.aborted||console.error("Failed to stream agent messages:",e)}),()=>{a.abort(),C(),b.current.clear(),k.current&&(clearTimeout(k.current),k.current=null)}},[t,u,e.agents,_,C]),Ve(()=>{const e=()=>{!document.hidden&&b.current.size>0&&(C(),_())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[_,C]);const S=Ue(e=>{r(t=>{const n=[...t,e];return n.sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),n})},[]),T=Ue(e=>{r(t=>t.filter(t=>!e(t)))},[]);return{messages:n,streamingMessages:x,isCompleted:a,debugChunkFlash:w,addOptimisticMessage:S,removeOptimisticMessages:T,reconnect:h,agentRunStatus:i,workflowRunId:l,serverFileUpdates:d}}(ze,a),{plans:He,activePlanIndex:Ge,setActivePlanIndex:Je,workstreamStatusMap:Xe,showInput:et,showSlidingPanel:tt,setShowSlidingPanel:nt}=function(e,t,n=!1){const[r,a]=Le([]),[s,i]=Le(0),[o,l]=Le(new Map),[c,d]=Le(t),[m,u]=Le(!n),p=Me(-1),h=Me(new Set);Ve(()=>{0===e.length&&(a([]),i(0),l(new Map),u(!n),p.current=-1,h.current.clear())},[e.length,n]);const f=Ue(e=>{const n=e[e.length-1];n&&(n.type===Qn.TERMINATED?d(!1):d(!!t||n.type===Qn.REQUEST_INPUT))},[t]);return Ve(()=>{if(0===e.length)return;const t=p.current+1;if(t>=e.length)return void f(e);let n=!1;const r=[],s=[];for(let a=t;a<e.length;a++){const t=e[a];if(t.type===Qn.PLAN)try{let e=null;if(t.details&&"object"==typeof t.details&&t.details.plan&&Array.isArray(t.details.plan)&&(e={plan:t.details.plan}),e){const a="number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime();if(!h.current.has(a)){h.current.add(a),n=!0,r.push({plan:e,timestamp:a});const t=new Map;t.set("main","in_progress"),Array.isArray(e.plan)&&e.plan.forEach(e=>{if(e&&"object"==typeof e&&e.id){const n=e.id.toString();t.set(n,e.status||"pending")}}),s.push({timestamp:a,statusMap:t})}}}catch(e){console.error("Failed to parse plan from message:",e)}}p.current=e.length-1,n&&r.length>0&&(a(e=>[...[...r].reverse(),...e]),i(0),u(!0),s.length>0&&l(e=>{const t=new Map(e);for(const e of s)t.set(e.timestamp,e.statusMap);return t})),f(e)},[e,f]),Ve(()=>{if(1===r.length&&!m&&!sessionStorage.getItem("plan-panel-shown")){const e=setTimeout(()=>{u(!0),sessionStorage.setItem("plan-panel-shown","true")},500);return()=>clearTimeout(e)}},[r.length,m]),{plans:r,activePlanIndex:s,setActivePlanIndex:i,workstreamStatusMap:o,showInput:c,showSlidingPanel:m,setShowSlidingPanel:u}}(Re,o,d),{openDocuments:rt,activeDocumentId:at,isDocPanelOpen:st,docRefreshKey:it,closeDocPanel:ot,closeDocument:lt,selectDocument:ct,openDocInPanel:dt,updateDocumentTitle:mt}=function(e){const[t,n]=Le([]),[r,a]=Le(null),[s,i]=Le(!1),[o,l]=Le(0),c=Me(-1);return Ve(()=>{0===e.length&&(n([]),a(null),i(!1),l(0),c.current=-1)},[e.length]),Ve(()=>{const t=c.current+1;if(!(t>=e.length)){for(let r=t;r<e.length;r++){const t=e[r];if(t.type===Qn.UPDATE&&t.details){const e=t.details;if("document_created"===e.event_class||"document_updated"===e.event_class){const t=Pd(e.document_id),r=Pd(e.updated_document_id)||t,s=e.title;if(r){const o={id:r,title:s||"Document",revisionRootId:Ad(e,t||r)};n(e=>{const t=e.findIndex(e=>Dd(e,o));if(t<0)return[...e,o];const n=e[t];if(n.id===o.id&&n.title===o.title&&n.revisionRootId===o.revisionRootId)return e;const r=[...e];return r[t]=o,r}),a(o.id),i(!0),"document_updated"===e.event_class&&l(e=>e+1)}}}}c.current=e.length-1}},[e]),{openDocuments:t,activeDocumentId:r,isDocPanelOpen:s,docRefreshKey:o,closeDocPanel:Ue(()=>{i(!1)},[]),closeDocument:Ue(e=>{n(t=>{const n=t.filter(t=>t.id!==e);return 0===n.length?(i(!1),a(null)):a(t=>t===e?n[0].id:t),n})},[]),selectDocument:Ue(e=>{a(e)},[]),openDocInPanel:Ue(e=>{n(t=>t.some(t=>t.id===e)?t:[...t,{id:e,title:"Document",revisionRootId:e}]),a(e),i(!0)},[]),updateDocumentTitle:Ue((e,t)=>{n(n=>n.map(n=>n.id===e?{...n,title:t}:n))},[])}}(Re),{processingFiles:ut,hasProcessingFiles:pt,handleFileUpload:ht,removeProcessingFile:ft}=function(e,t,n,r){const a=Ye.getFixedT(null,Qe),[s,i]=Le(new Map),[o,l]=Le(new Set),c=Me(new Set),d=Me(new Map),m=Me(t),u=Ue(e=>{const t=d.current.get(e);t&&(Ed(t),d.current.delete(e))},[]);Ve(()=>{if(m.current!==t){m.current=t,d.current.forEach(Ed),d.current.clear(),i(new Map);const e=new Set;c.current=e,l(e)}},[t]),Ve(()=>()=>{d.current.forEach(Ed),d.current.clear()},[]);const p=Ee(()=>{const e=new Map;return s.forEach((t,n)=>{o.has(n)||e.set(n,t)}),n.forEach((t,n)=>{if(!o.has(n)){const r=s.get(n)?.preview_url;e.set(n,r?{...t,preview_url:r}:t)}}),e},[s,o,n]),h=Ee(()=>Array.from(p.values()).some(e=>e.status===Xn.UPLOADING||e.status===Xn.PROCESSING),[p]),f=Ue(async n=>{for(const s of n){const n=`file-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,o=`files/${s.name}`,l=$d(s);l&&d.current.set(n,l);const m={id:n,name:s.name,content_type:s.type||"application/octet-stream",size:s.size,status:Xn.UPLOADING,started_at:Date.now(),preview_url:l};i(e=>new Map(e).set(n,m));try{if(await e.agents.uploadArtifact(t,o,s),i(e=>{const t=new Map(e),r=t.get(n);return r&&(r.status=Xn.PROCESSING,r.artifact_path=o,r.reference=`artifact:${o}`),t}),c.current.has(n))continue;await e.agents.sendSignal(t,"FileUploaded",{id:n,name:s.name,content_type:s.type||"application/octet-stream",reference:`artifact:${o}`,artifact_path:o})}catch(e){if(c.current.has(n))continue;i(t=>{const r=new Map(t),a=r.get(n);return a&&(a.status=Xn.ERROR,a.error=e instanceof Error?e.message:"Upload failed",a.completed_at=Date.now()),r}),r({status:"error",title:a("agent.uploadFailed"),description:e instanceof Error?e.message:"Failed to upload file",duration:3e3})}}},[e,t,r,a]),g=Ue(async n=>{l(e=>{if(e.has(n))return e;const t=new Set(e);return t.add(n),c.current=t,t}),i(e=>{if(!e.has(n))return e;const t=new Map(e);return t.delete(n),t}),u(n);try{await e.agents.sendSignal(t,"FileRemoved",{id:n})}catch(e){r({status:"error",title:a("agent.removeFileFailed"),description:e instanceof Error?e.message:"Failed to remove file",duration:3e3})}},[t,e,u,a,r]);return{processingFiles:p,hasProcessingFiles:h,handleFileUpload:f,removeProcessingFile:g}}(ze,a,qe,je),gt=o&&!E,xt=Ue(e=>{ft(e)},[ft]),vt=Me(null),bt=Me(null),wt=Me(null),[Nt,kt]=Le(!1),[Ct,_t]=Le("sliding"),St=te??Ct,Tt=Ue(e=>{ne?ne(e):_t(e)},[ne]),[It,zt]=Le(!1),[jt,Rt]=Le(!1),[Pt,At]=Le("live"),[Dt,$t]=Le(!1),[Et,Lt]=Le(0),[Ft,Ot]=Le([]),[Mt,Ut]=Le([]),Wt=Me(!1),Vt=Me(0),Bt=Me(!1),qt=Me(Nt);qt.current=Nt;const Ht=Me(pt);Ht.current=pt;const Gt=Ee(()=>{const e=Re.filter(e=>"main"===(e.workstream_id||"main"));return e[e.length-1]},[Re]),Jt=Ee(()=>Gt?.type===Qn.TERMINATED?"TERMINATED":Gt?.type!==Qn.COMPLETE||We&&"RUNNING"!==We?We:"COMPLETED",[Gt,We]),Kt=Ee(()=>{const e=Jt?.toUpperCase();return"COMPLETED"===e||"FAILED"===e||"CANCELED"===e||"CANCELLED"===e||"TERMINATED"===e||"TIMED_OUT"===e},[Jt]),Yt=Ee(()=>Kt&&"FAILED"!==Jt?.toUpperCase()&&!!h,[Kt,Jt,h]),Qt=!R||Yt,Zt=Ee(()=>"FAILED"===Jt?.toUpperCase()||"FAILED"===We?.toUpperCase(),[Jt,We]),Xt=Me(Kt);Xt.current=Kt;const en=Me(Yt);en.current=Yt;const tn=Ee(()=>{const e=He[Ge]||{plan:{plan:[]},timestamp:0},t=Xe.get(e.timestamp)||new Map;return{plan:e.plan,workstreamStatus:t}},[He,Ge,Xe]),nn=Ee(()=>yp(Re),[Re]),rn=Ee(()=>{const e=Ft.length>0?Ft.map(e=>({workstream_id:e.workstream_id,launch_id:e.launch_id,interaction:e.interaction,elapsed_ms:e.elapsed_ms,deadline_ms:e.deadline_ms,remaining_ms:Math.max(0,e.deadline_ms-e.elapsed_ms),status:e.status,phase:e.latest_progress?.phase,child_workflow_id:e.child_workflow_id,child_workflow_run_id:e.child_workflow_run_id})):nn,t=new Set(e.map(e=>e.workstream_id)),n=Mt.filter(e=>!t.has(e.workstream_id)).map(e=>({workstream_id:e.workstream_id,launch_id:e.launch_id,elapsed_ms:0,deadline_ms:0,remaining_ms:0,status:e.status}));return[...e,...n]},[Ft,Mt,nn]),an=Ee(()=>rn.filter(e=>"running"===e.status).length,[rn]),sn=Te&&void 0===Se&&is(),on=Se??(os()||Dt),ln=Ee(()=>ss(Re,Pt,on),[on,Re,Pt]),cn=ln.cursor,dn=ln.isLive,mn=ln.displayedMessages,un=dn?Pe:vp,pn=Ee(()=>Ae||!Pi(Re),[Ae,Re]),hn=!!dn&&pn,fn=Ee(()=>Xi(mn),[mn]),gn=Boolean(fn)&&!Zt,xn=on&&!dn,vn=gn&&!xn,bn=Qt&&!xn,yn=Ue(()=>{$t(e=>!e)},[]),wn=Ue(e=>{const t=ns(cn,Re.length),n=ns(e,Re.length);on&&(n>t||"live"===e&&"live"!==cn)&&(Bt.current=!0,Lt(e=>e+1)),At(e)},[cn,on,Re.length]);Ve(()=>{on?cn!==Pt&&At(cn):"live"!==Pt&&At("live")},[cn,on,Pt]),Ve(()=>{if(!on||!Bt.current)return;Bt.current=!1;const e=window.requestAnimationFrame(()=>{vt.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>window.cancelAnimationFrame(e)},[on,Et]);const Nn=Ue(()=>{nt(e=>(e||sessionStorage.setItem("plan-panel-shown","true"),!e))},[nt]),kn=Ue(e=>{Je(e)},[Je]),[Cn,_n]=Le(Ne||ke?"conversation":"plan"),[Sn,Tn]=Le(400),[In,jn]=Le(!1),Rn=$&&(tt||st||!D&&rn.length>0||!!Ne||ke);Ve(()=>{!Rn&&In&&jn(!1)},[Rn,In]),Ve(()=>{if(!In)return;const e=e=>{const t=wt.current;if(!t)return;const n=t.getBoundingClientRect(),r=Math.max(300,n.width-420),a=n.right-e.clientX,s=Math.min(Math.max(a,300),r);Tn(s)},t=()=>{jn(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),document.body.style.cursor="col-resize",document.body.style.userSelect="none",()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),document.body.style.cursor="",document.body.style.userSelect=""}},[In]);const Pn=Ue(()=>{nt(!1),ot()},[nt,ot]),An=Ue(({href:t,documentId:n,children:r})=>e("a",{href:t,className:"text-info underline cursor-pointer hover:text-info/80",onClick:e=>{e.preventDefault(),e.stopPropagation(),dt(n),_n("documents")},children:r}),[dt]),Dn=he??An;Ve(()=>(Y&&(Y.current=gt?ht:null),()=>{Y&&(Y.current=null)}),[Y,ht,gt]),Ve(()=>{Q?.(ut)},[ut,Q]),Ve(()=>{X?.(He,Ge)},[He,Ge,X]),Ve(()=>{ee?.(Xe)},[Xe,ee]),Ve(()=>{if(!(!pn||Ft.length>0))return void Ot(e=>0===e.length?e:[]);let e=!1;const t=async()=>{try{const t=await ze.agents.getActiveWorkstreams(a);if(e)return;Ot(t.running??[]);const n=t.completed??[];Ut(n.map(e=>({launch_id:e.launch_id,workstream_id:e.workstream_id,status:"canceled"===e.status||"failed"===e.status||"timeout"===e.status?e.status:"completed"}))),Wt.current=!1}catch(t){if(e)return;Ot([]),Wt.current||(console.warn("Failed to fetch active workstreams:",t),Wt.current=!0)}};t();const n=window.setInterval(t,1e4);return()=>{e=!0,window.clearInterval(n)}},[ze.agents,a,pn,Ft.length]),Ve(()=>{0!==Re.length&&(Yt?re?.(!0):et?Jt&&"RUNNING"!==Jt?re?.(!1):null!==Jt&&re?.(!0):re?.(!1))},[et,Jt,Re.length,re,Yt]);const $n=Ue(e=>{const t=e.trim();if(!t||qt.current)return;if(Xt.current&&!en.current)return;if(Ht.current)return void je({status:"warning",title:Ie("agent.filesProcessing"),description:Ie("agent.waitForFilesProcessing"),duration:3e3});kt(!0);const n=M?.()||[],r=V?.()||{};let s=t;if(n.length>0&&!/store:\S+/.test(t)){const e=n.map(e=>`[${e.name}](/store/objects/${e.id})`);s=[t,"","Attachments:",...e].join("\n")}const i=`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,o={timestamp:Date.now(),workflow_run_id:a,type:Qn.QUESTION,message:s,workstream_id:"main",details:{_optimistic:!0,_messageId:i}};$e(o);const l={...n.length>0?{attached_docs:n.map(e=>e.id)}:{},...r,_messageId:i},c=()=>ze.agents.sendSignal(a,"UserInput",{message:s,metadata:l});(Xt.current?ze.agents.restart(a).then(()=>(Oe(),c().then(()=>{U?.()}))):c().then(()=>{U?.()})).catch(e=>{Fe(e=>e.details?._messageId===i),je({status:"error",title:Ie("agent.failedToSend"),description:e instanceof Error?e.message:Ie("agent.unknownError"),duration:3e3})}).finally(()=>{kt(!1)})},[a,ze,je,M,V,U,Oe,$e,Fe,Ie]),En=Ue(e=>{gt&&(e.preventDefault(),e.stopPropagation(),Vt.current++,e.dataTransfer?.types?.includes("Files")&&Rt(!0))},[gt]),Ln=Ue(e=>{gt&&(e.preventDefault(),e.stopPropagation())},[gt]),Fn=Ue(e=>{gt&&(e.preventDefault(),e.stopPropagation(),Vt.current--,0===Vt.current&&Rt(!1))},[gt]),On=Ue(e=>{if(gt&&(e.preventDefault(),e.stopPropagation(),Vt.current=0,Rt(!1),e.dataTransfer?.files&&e.dataTransfer.files.length>0)){const t=Array.from(e.dataTransfer.files);ht(t)}},[ht,gt]),Mn=Ue(async()=>{if(!It){zt(!0);try{await ze.agents.sendSignal(a,"Stop",{message:"User requested stop"}),je({status:"info",title:Ie("agent.agentInterrupted"),description:Ie("agent.typeNewInstructions"),duration:3e3})}catch(e){je({status:"error",title:Ie("agent.failedToInterrupt"),description:e instanceof Error?e.message:Ie("agent.unknownError"),duration:3e3})}finally{zt(!1)}}},[It,ze,a,je,Ie]);Ve(()=>(ae&&(ae.current=y&&!pn?Mn:null),()=>{ae&&(ae.current=null)}),[ae,pn,Mn,y]),Ve(()=>{se?.(It)},[It,se]);const Un=i||Ie("agent.agentConversation"),Wn=async()=>{try{const e=await $i(ze,a);e&&window.open(e,"_blank")}catch(e){console.error("Failed to download conversation",e),je({status:"error",title:Ie("agent.failedToDownload"),duration:3e3})}},Vn=Ue(()=>{const e=(new Date).toISOString(),t=Pe.size>0?[{cursor:"live",streamingMessages:Array.from(Pe,([e,t])=>({id:e,...t}))}]:void 0,n={metadata:{title:Un,agent_run_id:a,exported_at:e,message_count:Re.length},messages:Re,...t?{streamingFrames:t}:{}};!function(e,t){const n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"}),r=URL.createObjectURL(n),a=document.createElement("a");a.href=r,a.download=e,document.body.appendChild(a),a.click(),a.remove(),URL.revokeObjectURL(r)}(`${kp(Un)||"agent-chat"}-${kp(a)}.json`,n),je({status:"success",title:Ie("agent.rewind.fixtureExported"),duration:2e3})},[Un,a,Re,Pe,Ie,je]),[Bn,qn]=Le(!1),Hn=()=>{bt.current?qn(!0):je({status:"error",title:Ie("agent.pdfExportFailed"),description:Ie("agent.noConversationContent"),duration:3e3})},Gn=Ee(()=>Re.filter(e=>{if(e.type===Qn.COMPLETE)return!0;if(e.type===Qn.THOUGHT){const t=e.details;return"completed"===t?.tool_status}return!1}).length,[Re]),Jn=Ee(()=>tn.plan.plan?.reduce((e,t)=>(t.id&&t.goal&&e.set(t.id.toString(),t.goal),e),new Map),[tn.plan]),Kn=t=>e(Wd,{title:Un,variant:t,isCompleted:pn,isTerminal:Kt,onClose:c,isModal:d,agentRunId:a,workflowRunId:Be||"",viewMode:St,onViewModeChange:Tt,showPlanPanel:$&&tt,hasPlan:$&&He.length>0,showPlanButton:$&&!ke,onTogglePlanPanel:Nn,showPlaybackButton:sn,isPlaybackEnabled:on,onTogglePlayback:yn,onDownload:Wn,onExportFixture:Vn,resetWorkflow:p,onClone:f,onShowDetails:g,allowWorkflowControl:y,onExportPdf:Hn,isReceivingChunks:De}),Yn=t("div",{ref:bt,"data-agent-playback-enabled":on||void 0,"data-agent-playback-cursor":on?cn:void 0,"data-agent-live-message-count":Re.length,"data-agent-rendered-message-count":mn.length,className:s("flex flex-col min-h-0 min-w-0 border-0",ke?"flex-1 h-full":Rn?"w-full flex-1 min-h-[50vh]":m?"flex-1 w-full":"flex-1 mx-auto "+(d?"":"max-w-4xl")),children:[!z&&"compact"===j&&e("div",{className:"flex flex-shrink-0 justify-end border-b border-border/60 px-2 py-1 lg:hidden",children:Kn("compact")}),!z&&"compact"!==j&&e("div",{className:"flex-shrink-0",children:Kn(j)}),on&&e("div",{className:"flex flex-shrink-0 justify-end px-2 py-1.5",children:e(ds,{cursor:cn,messages:Re,onChangeCursor:wn})}),0===Re.length&&!pn&&Ce&&_e?e(Np,{message:Ce,startedAt:_e}):e(Nc,{messages:mn,bottomRef:vt,isCompleted:hn,plan:tn.plan,workstreamStatus:tn.workstreamStatus,showPlanPanel:$&&tt,onTogglePlanPanel:Nn,plans:He,activePlanIndex:Ge,onChangePlan:kn,taskLabels:Jn,streamingMessages:un,onSendMessage:dn?$n:void 0,messageItemClassNames:ie,messageStyleOverrides:oe,toolCallGroupClassNames:le,hideToolCallsInViewMode:ce,streamingMessageClassNames:de,batchProgressPanelClassNames:me,artifactRunId:a,viewMode:St,hideWorkstreamTabs:D,workingIndicatorClassName:ue,messageListClassName:pe,StoreLinkComponent:Dn,CollectionLinkComponent:fe,prependFriendlyMessage:ge,initialRequestData:xe,initialRequestSchema:ve,initialRequestTitle:be,initialRequestTemplate:ye,hiddenMessageTypes:O,disableAutoScroll:!dn,renderRequestInputControls:dn&&!vn}),vn?e(eo,{message:fn,onSendMessage:$n,disabled:W||!dn,isLoading:Nt||W}):bn&&e("div",{className:"flex-shrink-0 pb-safe-area",children:Zt?P??e(J,{status:"error",icon:null,className:"m-2",children:"This Workflow is FAILED"}):Jt&&"RUNNING"!==Jt&&!Yt?"sliding"===St&&"COMPLETED"===Jt?e("div",{className:"mx-auto w-full max-w-3xl px-4 py-3 text-sm text-muted",children:t("div",{className:"flex items-center gap-2 border-t border-success/25 pt-3 text-success",children:[e(yt,{className:"size-4"}),e("span",{className:"font-medium",children:"Workflow completed"})]})}):t(J,{status:"COMPLETED"===Jt?"success":"done",icon:null,className:"m-2",children:["This Workflow is ",Jt]}):(et||Yt)&&e(mp,{onSend:$n,onStop:y?Mn:void 0,disabled:W||!dn,isSending:Nt||W,isStopping:It,isStreaming:!pn,isCompleted:pn,activeTaskCount:an,activeWorkstreams:rn,placeholder:u??"Type your message...",onFilesSelected:gt?ht:void 0,uploadedFiles:w,onRemoveFile:N,onRemoveProcessingFile:xt,acceptedFileTypes:k,maxFiles:C,processingFiles:ut,artifactRunId:a,hasProcessingFiles:pt,renderDocumentSearch:_,selectedDocuments:S,onRemoveDocument:T,hideObjectLinking:I,hideFileUpload:!gt,disableDropZone:gt,className:q,inputClassName:H})})]}),Zn=e(Fa,{children:e(vo,{children:t("div",{ref:wt,className:s("flex flex-col lg:flex-row gap-2 w-full h-full relative overflow-hidden",gt&&jt&&"ring-2 ring-blue-400 ring-inset",B),onDragEnter:gt?En:void 0,onDragOver:gt?Ln:void 0,onDragLeave:gt?Fn:void 0,onDrop:gt?On:void 0,children:[gt&&jt&&e("div",{className:"absolute inset-0 flex items-center justify-center bg-blue-100/80 dark:bg-blue-900/40 z-50 pointer-events-none rounded-lg",children:t("div",{className:"text-blue-600 dark:text-blue-400 font-medium flex items-center gap-2 text-lg",children:[e(zn,{className:"size-6"}),"Drop files to upload"]})}),!ke&&Yn,!ke&&"compact"===j&&!z&&e("div",{className:"hidden h-full w-12 shrink-0 items-start justify-center px-1 pt-2 lg:flex",children:Kn("compact")}),Rn&&t(n,{children:[!ke&&e("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize right panel","aria-valuenow":Math.round(Sn),"aria-valuemin":300,"aria-valuetext":`${Math.round(Sn)} pixels`,tabIndex:0,className:"hidden lg:block lg:w-1 lg:shrink-0 cursor-col-resize bg-border/70 hover:bg-border transition-colors",onMouseDown:()=>jn(!0),onKeyDown:e=>{if("ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.preventDefault();const t=e.shiftKey?32:16,n="ArrowLeft"===e.key?t:-t,r=wt.current,a=r?Math.max(300,r.getBoundingClientRect().width-420):900;Tn(e=>Math.min(Math.max(e+n,300),a))}}),e("div",{className:ke?"w-full h-full overflow-auto":"w-full lg:w-[var(--agent-right-panel-width)] lg:shrink-0 min-h-[50vh] lg:h-full border-t lg:border-t-0",style:ke?void 0:{"--agent-right-panel-width":`${Sn}px`},children:e(Rd,{plan:tn.plan,workstreamStatus:tn.workstreamStatus,plans:He,activePlanIndex:Ge,onChangePlan:kn,showPlan:!A&&tt,activeWorkstreams:rn,hideWorkstreams:D,openDocuments:rt,activeDocumentId:at,onSelectDocument:ct,onCloseDocument:lt,onUpdateDocumentTitle:mt,docRefreshKey:it,runId:a,processingFiles:Z??ut,showArtifacts:L,artifactRefreshKey:Gn,messages:Re,payloadContent:we,conversationContent:ke?Yn:Ne,onClose:Pn,defaultTab:Cn,activeTab:Cn,onTabChange:_n})})]}),t(x,{isOpen:Bn,onClose:()=>qn(!1),children:[e(v,{children:"Export conversation as PDF"}),t(b,{children:[e("p",{className:"mb-2",children:"This will open your browser's print dialog with the current conversation."}),e("p",{className:"text-sm text-muted",children:'To save a PDF, choose "Save as PDF" or a similar option in the print dialog.'})]}),t(K,{align:"right",children:[e(r,{variant:"ghost",size:"sm",onClick:()=>qn(!1),children:"Cancel"}),e(r,{size:"sm",onClick:()=>{if(!bt.current)return void je({status:"error",title:Ie("agent.pdfExportFailed"),description:Ie("agent.noConversationContent"),duration:3e3});const e=`${Un} - ${a}`,t=function(e,t){if("undefined"==typeof window||"undefined"==typeof document)return!1;const n=document.createElement("iframe");n.style.position="fixed",n.style.right="0",n.style.bottom="0",n.style.width="0",n.style.height="0",n.style.border="0",n.style.visibility="hidden",document.body.appendChild(n);const r=n.contentWindow;if(!r)return n.parentNode?.removeChild(n),!1;const a=r.document;return a.open(),a.write("<!doctype html><html><head><title></title></head><body></body></html>"),a.close(),a.title=t,document.querySelectorAll('link[rel="stylesheet"], style').forEach(e=>{a.head.appendChild(e.cloneNode(!0))}),a.body.innerHTML=e.innerHTML,r.focus(),r.print(),setTimeout(()=>{n.parentNode?.removeChild(n)},1e3),!0}(bt.current,e);t?(je({status:"success",title:Ie("agent.pdfExportReady"),description:Ie("agent.printDialogDescription"),duration:4e3}),qn(!1)):je({status:"error",title:Ie("agent.pdfExportFailed"),description:Ie("agent.unableToOpenPrint"),duration:4e3})},children:"Open print dialog"})]})]})]})})});return G?e(Pr,{data:G,sendMessage:$n,ChartComponent:Qa,artifactRunId:a,children:Zn}):Zn}function Ip({messages:t}){const n=$e.useMemo(()=>[...t].sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),[t]);return e("div",{className:"flex flex-col overflow-y-auto space-y-6 py-4",children:n.map(t=>e(Wo,{message:t,showPulsatingCircle:!1},`${t.workstream_id??"main"}-${t.timestamp}-${t.type}`))})}function zp({messages:t,bottomRef:n,className:r,messagesClassName:a,emptyClassName:s}){const i=$e.useRef(null);Ve(()=>{n.current&&n.current.scrollIntoView({behavior:"smooth"})},[t,n]);const o=$e.useMemo(()=>[...t].sort((e,t)=>("number"==typeof e.timestamp?e.timestamp:new Date(e.timestamp).getTime())-("number"==typeof t.timestamp?t.timestamp:new Date(t.timestamp).getTime())),[t]);return e("div",{ref:i,className:`flex-1 min-h-0 h-full overflow-y-auto py-4 px-4 sm:px-6 lg:px-8 bg-white flex flex-col ${r||""}`,"data-testid":"messages-container",children:0===o.length?e("div",{className:`flex items-center justify-center h-full text-center py-8 ${s||""}`,children:e("div",{className:"flex items-center px-4 py-3 text-gray-500",children:"Waiting for agent response..."})}):e("div",{className:`flex-1 flex flex-col justify-start h-full min-h-0 ${a||""}`,children:e(Ip,{messages:o,isCompleted:!1})})})}function jp({children:t,fallback:n}){return Rp?e(Rp,{fallback:n,children:t}):e(ma,{FallbackComponent:n,children:t})}let Rp=null;function Pp(e){Rp=e}function Ap({children:t}){return e(jp,{fallback:Dp,children:t})}function Dp({error:n}){const{t:r}=Ke(),a=n instanceof Error?n.message:void 0;return t(J,{status:"error",title:r("errors.somethingWentWrong"),children:[t("div",{className:"mb-4",children:[r("errors.teamNotifiedLine1")," ",r("errors.teamNotifiedLine2")," ",e("a",{className:"text-info",href:"mailto:support@vertesiahq.com",children:"support@vertesiahq.com"}),"."]}),a&&e("code",{className:"w-full mt-4 text-sm text-muted break-words",children:a})]})}function $p({children:t}){return e(jp,{fallback:Ep,children:t})}function Ep({error:n}){const r=n instanceof Error?n.message:void 0;return e("tr",{children:t("td",{colSpan:100,children:[e("span",{className:"text-xs",children:" Cannot display row"}),e("br",{}),e("span",{className:"bg-gray-400",children:r})]})})}function Lp({children:t}){return e(jp,{fallback:Fp,children:t})}function Fp({error:n}){const r=n instanceof Error?n.message:void 0;return console.log("WidgetError",n),t("div",{className:"text-sm",children:["Sorry, this area cannot be loaded or rendered.",r&&e("pre",{children:r})]})}const Op=/^[a-f0-9]{24}$|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^(?=.*\d)(?=.*[a-zA-Z])[a-zA-Z0-9_-]{8,}$/i;function Mp(e){return Op.test(e)}function Up({className:n,children:r,title:a,description:s,actions:i,breadcrumbs:o,useDynamicBreadcrumbs:l=!0}){const c=Or();function d(e){return e.replace(/[-_]/g," ").split(" ").map(e=>ua(e)).join(" ")}const m=e=>{if(e?.title)return e.title;const t=e?.href||"";if(!t)return"Page";const n=t.split("#")[0].split("?")[0].split("/").filter(e=>e.length>0);return n.length>=1?d(n[n.length-1]):"Page"},u=(()=>{const e=[];if(l&&"undefined"!=typeof window){const t=window.history.state,n=t?.historyChain;if(Array.isArray(n))n.forEach((t,r)=>{const a=n.length-r;e.push({label:m(t),href:t.href,onClick:()=>c(t.href,{stepsBack:a})})});else{const t=window.location.pathname.split("/").filter(e=>e.length>0);for(let n=0;n<t.length;n++)if(Mp(t[n])){const r=`/${t.slice(0,n).join("/")}`;e.push({label:d(t[n-1]||r),href:r,onClick:()=>c(r,{isBasePathNested:!1})})}}}return o&&o.length>0&&o.forEach(t=>{const n=t.props?.children||t,r=t.props?.href;e.push(r?{href:r,label:n,onClick:()=>c(r,{replace:t.props.clearBreadcrumbs})}:{label:n})}),e})();return t("div",{className:je("pb-0 ps-4 pe-2 py-2 flex flex-col",n),children:[t("div",{className:"flex items-start gap-4",children:[t("div",{className:"w-full flex place-content-between h-auto min-h-8 flex-col items-start justify-center",children:[t("nav",{className:"flex-1 flex justify-start text-sm",children:[u.length>0&&e(X,{path:u,separator:e(ct,{className:"size-3.5 cn-rtl-flip"}),maxItems:4}),s&&e(h,{description:s,children:e(Dt,{className:"size-4 text-muted ms-4"})})]}),a&&e("div",{className:"flex gap-2 items-center",children:e("h1",{className:"text-xl font-semibold break-all",children:a})})]}),e("div",{className:"flex gap-x-2 shrink-0 items-center",children:i})]}),r&&e("div",{className:"w-full flex items-center",children:r})]})}function Wp(){const{t:n}=Ke();return t("div",{className:"text-center pt-32",children:[e("h1",{className:"text-3xl font-bold text-red-500",children:"404"}),e("p",{className:"text-2xl",children:n("layout.pageNotFound")})]})}const Vp="magic-pdf";var Bp;!function(e){e.original="original",e.instrumented="instrumented"}(Bp||(Bp={}));class qp{client;objectId;totalPages;cache=new Map;pending=new Map;constructor(e,t,n){this.client=e,this.objectId=t,this.totalPages=n}getCacheKey(e,t){return`${t}-${e}`}async getPageImageUrl(e,t){const n=this.getCacheKey(e,t),r=this.cache.get(n);if(r)return r;const a=this.pending.get(n);if(a)return a;const s=this.fetchImageUrl(e,t);this.pending.set(n,s);try{const e=await s;return this.cache.set(n,e),e}finally{this.pending.delete(n)}}async fetchImageUrl(e,t){const n=this.getImagePath(e,t);return(await this.client.files.getDownloadUrl(n)).url}getImagePath(e,t){const n=`${Vp}/${this.objectId}/pages`;switch(t){case Bp.original:return`${n}/page-${e}.original.jpg`;case Bp.instrumented:return`${n}/page-${e}.instrumented.jpg`}}}class Hp{client;objectId;totalPages;cache=new Map;pending=new Map;constructor(e,t,n){this.client=e,this.objectId=t,this.totalPages=n}async getPageLayout(e){const t=this.cache.get(e);if(void 0!==t)return t;const n=this.pending.get(e);if(n)return n;const r=this.fetchPageLayout(e);this.pending.set(e,r);try{const t=await r;return this.cache.set(e,t),t}finally{this.pending.delete(e)}}async fetchPageLayout(e){const t=`${Vp}/${this.objectId}/pages/page-${e}.layout.json`,n=await this.client.files.getDownloadUrl(t),r=await fetch(n.url,{method:"GET"});if(!r.ok)throw new Error(`Failed to fetch json layout: ${r.statusText}`);return r.text()}}class Gp{totalPages;pages=[];constructor(e){this.totalPages=e}initFromContent(e){this.pages=function(e,t){const n=new Array(t).fill(""),r=/<!--\s*\{\s*"page"\s*:\s*(\d+)\s*\}\s*-->/g,a=[];for(const t of e.matchAll(r))a.push({page:parseInt(t[1],10),index:t.index+t[0].length});for(let r=0;r<a.length;r++){const s=a[r],i=s.page-1;if(i<0||i>=t)continue;const o=s.index,l=e.slice(o).match(/<!--\s*\{\s*"page"\s*:\s*\d+\s*\}\s*-->/),c=l?o+l.index:e.length;let d=e.slice(o,c).trim();d=d.replace(/\n---\s*$/,"").trim(),n[i]=d}return n}(e,this.totalPages)}async loadUrls(e,t){}async getPageMarkdown(e){const t=e-1;return t<0||t>=this.pages.length?"":this.pages[t]}}const Jp=Fe(void 0);function Kp({children:t,object:n}){const{client:r}=Ze(),a=n.metadata.page_count||10,s="markdown"===n.metadata?.content_processor?.type,[i,o]=Le(()=>{const e=new Gp(a);s&&n.text&&e.initFromContent(n.text);const t=n.text?Zp(n.text):"";return{count:a,layoutProvider:new Hp(r,n.id,a),markdownProvider:e,imageProvider:new qp(r,n.id,a),xml:t,xmlPages:n.text?Qp(t):[],pdfUrl:"",pdfUrlLoading:!0}});return Ve(()=>{if(s){const e=n.metadata,t=e?.renditions?.find(e=>e.name===lr),a="application/pdf"===n.content?.type,s=t?.content?.source||(a?n.content?.source:void 0);s?r.store.objects.getDownloadUrl(s,void 0,"inline").then(e=>{o(t=>({...t,pdfUrl:e.url,pdfUrlLoading:!1}))}).catch(e=>{console.warn("Failed to get PDF URL:",e),o(e=>({...e,pdfUrlLoading:!1}))}):o(e=>({...e,pdfUrlLoading:!1}))}else o(e=>({...e,pdfUrlLoading:!1}))},[r,s,n.metadata,n.content?.type,n.content?.source]),e(Jp.Provider,{value:i,children:t})}function Yp(){const e=$e.useContext(Jp);if(!e)throw new Error("useMagicPdfContext must be used within a MagicPdfProvider");return e}function Qp(e){const t=(new DOMParser).parseFromString(Zp(e),"text/xml").getElementsByTagName("page"),n=new XMLSerializer;return Array.from(t).map(e=>n.serializeToString(e))}function Zp(e){return e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"").replace(/<\?xml.*?\?>/g,"")}const Xp=[50,75,100,125,150,200,300],eh=11/8.5;function th({className:n,currentPage:a,onChange:s}){const{t:i}=Ke(),[o,l]=Le(Bp.instrumented),[c,d]=Le(eh),[m,u]=Le(new Map),[p,h]=Le(100),f=Me(new Set),g=Me(null),x=Me(null),v=Me(!1),{imageProvider:b,count:y}=Yp(),w=Ue(()=>{let e=Xp.findIndex(e=>e>=p);-1===e&&(e=Xp.length-1);const t=Math.min(e+1,Xp.length-1);h(Xp[t])},[p]),N=Ue(()=>{let e=Xp.findIndex(e=>e>=p);-1===e&&(e=Xp.length-1);const t=Math.max(e-1,0);h(Xp[t])},[p]),k=Ue(()=>{h(100)},[]);Ve(()=>{b.getPageImageUrl(1,o).then(e=>{const t=new window.Image;t.onload=()=>{t.width>0&&t.height>0&&d(t.height/t.width)},t.src=e}).catch(()=>{})},[b,o]);const C=Me(o);Ve(()=>{let e=!1;C.current!==o&&(C.current=o,f.current=new Set,u(new Map));const t=function(e,t){const n=[e];let r=1;for(;n.length<t;){const a=e+r,s=e-r;a<=t&&n.push(a),s>=1&&n.push(s),r++}return n}(a,y);return t.forEach(t=>{(async t=>{if(!e&&!f.current.has(t))try{const n=await b.getPageImageUrl(t,o);e||(f.current.add(t),u(e=>new Map(e).set(t,n)))}catch{}})(t)}),()=>{e=!0}},[a,y,o,b]);const _=Me(p);Ve(()=>{if(_.current!==p&&x.current){_.current=p,v.current=!0;const e=x.current.querySelector(`[data-page="${a}"]`);e?requestAnimationFrame(()=>{e.scrollIntoView({behavior:"instant",block:"center"}),requestAnimationFrame(()=>{v.current=!1})}):v.current=!1}},[p,a]);const S=Me(a);Ve(()=>{if(S.current!==a&&x.current){S.current=a,v.current=!0;const e=x.current.querySelector(`[data-page="${a}"]`);e&&e.scrollIntoView({behavior:"instant",block:"nearest"}),requestAnimationFrame(()=>{v.current=!1})}},[a]),Ve(()=>{const e=x.current;if(!e)return;let t=null;const n=()=>{v.current||(t&&clearTimeout(t),t=setTimeout(()=>{const t=e.getBoundingClientRect(),n=t.top+t.height/2;let r=a,i=1/0;for(let t=1;t<=y;t++){const a=e.querySelector(`[data-page="${t}"]`);if(a){const e=a.getBoundingClientRect(),s=e.top+e.height/2,o=Math.abs(s-n);o<i&&(i=o,r=t)}}r!==a&&(S.current=r,s(r))},50))};return e.addEventListener("scroll",n,{passive:!0}),()=>{t&&clearTimeout(t),e.removeEventListener("scroll",n)}},[y,a,s]);return t("div",{ref:g,className:je("flex flex-col items-stretch gap-y-2",n),children:[t("div",{className:"relative flex items-center justify-center px-2 h-9",children:[e(r,{variant:"ghost",size:"xs",onClick:()=>{a>1&&s(a-1)},alt:i("pdf.previousPage"),children:e(Ht,{className:"size-4"})}),t("div",{className:"absolute start-2 flex items-center gap-x-1",children:[e(nh,{type:Bp.original,currentType:o,onClick:()=>l(Bp.original),icon:e(gt,{className:"size-4"}),tooltip:i("pdf.originalImages")}),e(nh,{type:Bp.instrumented,currentType:o,onClick:()=>l(Bp.instrumented),icon:e(Fn,{className:"size-4"}),tooltip:i("pdf.instrumentedImages")}),e("div",{className:"w-px h-4 bg-border mx-1"}),e(rh,{zoom:p,onZoomIn:w,onZoomOut:N,onFitToView:k,canZoomIn:p<Xp[Xp.length-1],canZoomOut:p>Xp[0]})]}),e("div",{className:"absolute end-2",children:e(sh,{currentPage:a,totalPages:y,onChange:s})})]}),e("div",{ref:x,className:"flex flex-col items-center gap-2 flex-1 overflow-y-auto px-2",children:Array.from({length:y},(t,n)=>e(ah,{currentPage:a,pageNumber:n+1,aspectRatio:c,zoom:p,url:m.get(n+1),onSelect:()=>s(n+1)},n))}),e("div",{className:"flex items-center justify-center h-9",children:e(r,{variant:"ghost",size:"xs",onClick:()=>{a<y&&s(a+1)},alt:i("pdf.nextPage"),children:e(Gt,{className:"size-4"})})})]})}function nh({type:t,currentType:n,onClick:a,icon:s,tooltip:i}){const o=t===n;return e(h,{description:i,placement:"bottom",size:"xs",children:e(r,{variant:"unstyled","aria-label":i,"aria-pressed":o,className:je("p-1 rounded cursor-pointer transition-colors",o?"text-primary bg-primary/10":"text-muted-foreground hover:text-foreground hover:bg-muted"),onClick:a,children:s})})}function rh({zoom:n,onZoomIn:a,onZoomOut:s,onFitToView:i,canZoomIn:o,canZoomOut:l}){const{t:c}=Ke();return t("div",{className:"flex items-center gap-x-0.5",children:[e(h,{description:c("pdf.zoomOut"),placement:"bottom",size:"xs",children:e(r,{variant:"unstyled","aria-label":c("pdf.zoomOut"),className:je("p-1 rounded cursor-pointer transition-colors",l?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40 cursor-not-allowed"),onClick:s,disabled:!l,children:e(Jt,{className:"size-4"})})}),t("span",{className:"text-xs text-muted-foreground min-w-[32px] text-center",children:[n,"%"]}),e(h,{description:c("pdf.zoomIn"),placement:"bottom",size:"xs",children:e(r,{variant:"unstyled","aria-label":c("pdf.zoomIn"),className:je("p-1 rounded cursor-pointer transition-colors",o?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40 cursor-not-allowed"),onClick:a,disabled:!o,children:e(Kt,{className:"size-4"})})}),e(h,{description:c("pdf.fitToWidth"),placement:"bottom",size:"xs",children:e(r,{variant:"unstyled","aria-label":c("pdf.fitToWidth"),className:je("p-1 rounded cursor-pointer transition-colors",100!==n?"text-muted-foreground hover:text-foreground hover:bg-muted":"text-muted-foreground/40"),onClick:i,children:e(Yt,{className:"size-4"})})})]})}function ah({pageNumber:n,currentPage:a,aspectRatio:s,zoom:i,url:o,onSelect:l}){const c=n===a;return t("div",{className:"p-2 hover:bg-muted rounded-md flex flex-col items-center","data-page":n,style:{width:`${i}%`},children:[e(r,{variant:"unstyled",size:"none","aria-pressed":c,"aria-label":`Page ${n}`,className:je("relative border-[2px] cursor-pointer overflow-hidden !flex items-center justify-center bg-muted/50 w-full",c?"border-primary":"border-border"),style:{aspectRatio:`1 / ${s}`},onClick:l,children:o?e("img",{src:o,alt:`Page ${n}`,className:"w-full"}):e(et,{className:"w-6 h-6 animate-spin text-muted-foreground"})}),e(u,{className:"text-sm text-muted-foreground pt-1 font-semibold",children:n})]})}function sh({currentPage:n,totalPages:r,onChange:a}){const{t:s}=Ke(),i=Me(null),[o,l]=Le(String(n));Ve(()=>{l(String(n))},[n]);const c=()=>{const e=parseInt(o,10);!Number.isNaN(e)&&e>=1&&e<=r?a(e):l(String(n))};return t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e("span",{children:s("pdf.page")}),e("input",{ref:i,type:"text",value:o,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key?(c(),i.current?.blur()):"Escape"===e.key&&(l(String(n)),i.current?.blur())},onBlur:()=>{c()},className:"w-8 h-5 text-center text-xs px-1 py-0 bg-background border border-border rounded focus:outline-none focus:border-primary"}),t("span",{children:["/ ",r]})]})}function ih({object:n}){const{t:a}=Ke(),{client:s}=Ze(),i=e=>{(function(e,t,n){return e.files.getDownloadUrl(`${Vp}/${t}/${n}`).then(e=>e.url)})(s,n.id,e).then(e=>window.open(e,"_blank"))},o="p-2 cursor-pointer hover:bg-muted text-start text-sm";return"markdown"===(()=>{if("document"===n.metadata?.type){const e=n.metadata;return e.content_processor?.type||"xml"}return"xml"})()?e(r,{variant:"ghost",size:"xs",onClick:()=>i("document.md"),alt:a("pdf.download"),children:e(rt,{className:"size-4"})}):t(R,{children:[e(P,{children:e(r,{variant:"ghost",size:"xs",alt:a("pdf.download"),children:e(rt,{className:"size-4"})})}),e(A,{align:"start",className:"p-0 w-auto",children:t("div",{className:"min-w-[200px] flex flex-col divide-y divide-border",children:[e(r,{variant:"unstyled",className:o,onClick:()=>i("annotated.pdf"),children:"annotated.pdf"}),e(r,{variant:"unstyled",className:o,onClick:()=>i("document.xml"),children:"document.xml"}),e(r,{variant:"unstyled",className:o,onClick:()=>i("analyzed-pages.json"),children:"analyzed-pages.json"})]})})]})}function oh({className:t}){return e("div",{className:`flex items-center justify-center ${t||""}`,children:e(et,{className:"w-6 h-6 animate-spin text-gray-400"})})}function lh({viewType:t,pageNumber:n}){switch(t){case"json":return e(dh,{pageNumber:n});case"markdown":return e(mh,{pageNumber:n});default:return e(ch,{pageNumber:n})}}function ch({pageNumber:t}){const{xmlPages:n}=Yp();return e("div",{className:"px-4 py-2",children:e(Ur,{xml:n[t-1],collapsible:!0})})}function dh({pageNumber:t}){const[n,r]=Le(null),[a,s]=Le(!0),[i,o]=Le(null),{layoutProvider:l}=Yp();return Ve(()=>{s(!0),o(null),l.getPageLayout(t).then(e=>{r(e?JSON.parse(e):null),s(!1)}).catch(e=>{console.error(e),o(e.message||"Failed to load layout"),s(!1)})},[t,l]),a?e("div",{className:"px-4 py-8",children:e(oh,{})}):i?e("div",{className:"px-4 py-2 text-red-500 text-sm",children:i}):n?e(Kr,{className:"w-full",data:n}):null}function mh({pageNumber:n}){const[r,a]=Le(null),[s,i]=Le(!0),[o,l]=Le(null),{markdownProvider:c}=Yp();return Ve(()=>{i(!0),l(null),c.getPageMarkdown(n).then(e=>{a(e),i(!1)}).catch(e=>{console.error(e),l(e.message||"Failed to load markdown"),i(!1)})},[n,c]),s?t("div",{className:"h-full flex flex-col items-center justify-center gap-2",children:[e(oh,{}),e("span",{className:"text-sm text-muted-foreground",children:"Loading..."})]}):e("div",o?{className:"px-4 py-2 text-red-500 text-sm",children:o}:{className:"px-4 py-2 prose prose-sm max-w-none dark:prose-invert",children:r?e(Mr,{children:r}):e("div",{children:"No markdown content available"})})}class uh extends qe{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("PDF View error:",e,t)}render(){return this.state.hasError?e("div",{className:"fixed inset-0 bg-background z-50 flex items-center justify-center",children:t("div",{className:"flex flex-col items-center gap-4 p-8 max-w-md",children:[e(f,{title:Ye.t("pdf.failedToLoadViewer",{ns:Qe}),children:this.state.error?.message||"An unexpected error occurred"}),this.props.onClose&&e(r,{variant:"outline",onClick:this.props.onClose,children:"Close"})]})}):this.props.children}}function ph({objectId:n,onClose:a}){const{t:s}=Ke(),{client:i}=Ze(),{data:o,error:l}=z(()=>i.store.objects.retrieve(n,"+text"),[n]);return l?e("div",{className:"fixed inset-0 bg-background z-50 flex items-center justify-center",children:t("div",{className:"flex flex-col items-center gap-4 p-8 max-w-md",children:[e(f,{title:s("pdf.fetchingDocumentFailed"),children:j(l)}),a&&e(r,{variant:"outline",onClick:a,children:"Close"})]})}):o?e(uh,{onClose:a,children:e("div",{className:"fixed inset-0 bg-background z-50 flex items-center justify-center",children:e(Kp,{object:o,children:e(hh,{object:o,onClose:a})})})}):t("div",{className:"fixed inset-0 bg-background z-50 flex flex-col",children:[e("div",{className:"flex h-9 items-center justify-end shrink-0 bg-sidebar px-2 border-b border-sidebar-border",children:a&&e(r,{variant:"ghost",size:"xs",onClick:a,alt:s("pdf.close"),children:e(it,{className:"size-4"})})}),e("div",{className:"flex-1 flex items-center justify-center",children:e("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})})]})}function hh({object:n,onClose:a}){const{t:s}=Ke(),{count:i,pdfUrl:o,pdfUrlLoading:l}=Yp(),[c,d]=Le(1),m=(()=>{if("document"===n.metadata?.type){const e=n.metadata,t=e.content_processor?.type;if("markdown"===t)return"markdown"}return"xml"})();return t(ee,"xml"===m?{direction:"horizontal",className:"absolute inset-0",children:[e(te,{defaultSize:50,minSize:20,maxSize:80,className:"bg-muted",children:e(th,{className:"h-full",currentPage:c,onChange:d})}),e(ne,{className:"w-[4px] bg-border cursor-ew-resize"}),t(te,{defaultSize:50,minSize:20,className:"flex flex-col",children:[t("div",{className:"flex h-9 items-center justify-between shrink-0 bg-sidebar px-2 border-b border-sidebar-border",children:[e("div",{className:"flex items-center gap-x-2",children:e(ih,{object:n})}),e("span",{className:"text-xs text-muted-foreground",children:s("pdf.pageOf",{pageNumber:c,totalPages:i})}),e("div",{className:"flex items-center gap-x-2",children:!!a&&e(r,{variant:"ghost",size:"xs",onClick:a,alt:s("pdf.close"),children:e(it,{className:"size-4"})})})]}),e("div",{className:"flex-1 overflow-auto px-2",children:e(lh,{pageNumber:c,viewType:"xml"})})]})]}:{direction:"horizontal",className:"absolute inset-0",children:[e(te,{defaultSize:50,minSize:20,maxSize:80,className:"bg-muted",children:e(Oc,{pdfUrl:o,pdfUrlLoading:l,pageCount:i,className:"h-full",currentPage:c,onChange:d})}),e(ne,{className:"w-[4px] bg-border cursor-ew-resize"}),t(te,{defaultSize:50,minSize:20,className:"flex flex-col",children:[t("div",{className:"flex h-9 items-center justify-between shrink-0 bg-sidebar px-2 border-b border-sidebar-border",children:[e("div",{className:"flex items-center gap-x-2",children:e(ih,{object:n})}),e("span",{className:"text-xs text-muted-foreground",children:s("pdf.pageOf",{pageNumber:c,totalPages:i})}),e("div",{className:"flex items-center gap-x-2",children:!!a&&e(r,{variant:"ghost",size:"xs",onClick:a,alt:s("pdf.close"),children:e(it,{className:"size-4"})})})]}),e("div",{className:"flex-1 overflow-auto px-2",children:e(lh,{pageNumber:c,viewType:"markdown"})})]})]})}const fh=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/svg+xml"],gh=["video/mp4","video/webm"],xh=["audio/mp4","audio/m4a","audio/x-m4a","audio/mpeg","audio/ogg","audio/wav","audio/webm"];function vh(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`:`${n}:${r.toString().padStart(2,"0")}`}function bh({url:n,source:r,object:a,className:s}){const{t:i}=Ke(),{client:o}=Ze(),[l,c]=Le(n),[d,m]=Le(!(n||!r&&!a)),u=a?.metadata,h=(u?.renditions||[]).find(e=>e.name===cr),f=a?.content?.type&&xh.includes(a.content.type),g=!!a&&a.metadata?.type===dr.Audio&&!h&&!f;return Ve(()=>{if(n)return c(n),void m(!1);c(void 0);r||a?(m(!0),(async()=>{try{if(r){const e=await o.files.getDownloadUrl(r);return void c(e.url)}if(!a)return;if(a.metadata?.type!==dr.Audio)return;let e;h?.content?.source?e=await o.files.getDownloadUrl(h.content.source):f&&a.content?.source&&(e=await o.files.getDownloadUrl(a.content.source)),e&&c(e.url)}catch(e){console.error("Failed to get audio URL",e)}finally{m(!1)}})()):m(!1)},[n,r,a,h,f,o]),g?e("div",{className:`flex justify-center items-center h-[200px] text-muted ${s??""}`.trim(),children:t("div",{className:"text-center",children:[e("p",{children:i("store.noAudioRendition")}),e("p",{className:"text-sm mt-2",children:i("store.audioFormatRequired")})]})}):d?e("div",{className:`flex justify-center items-center h-[200px] ${s??""}`.trim(),children:e(p,{size:"md"})}):l?t("div",{className:`flex flex-col items-center gap-4 ${s??""}`.trim(),children:[e("audio",{src:l,controls:!0,className:"w-full max-w-2xl",children:"Your browser does not support the audio tag."}),u?.duration&&t("div",{className:"text-sm text-muted",children:["Duration: ",vh(u.duration)]})]}):e("div",{className:`flex justify-center items-center h-[200px] text-muted ${s??""}`.trim(),children:"Failed to load audio"})}function yh({url:t,source:n,object:r,className:a}){const{client:s}=Ze(),[i,o]=Le(t),[l,c]=Le(!(t||!n&&!r));return Ve(()=>{if(t)return o(t),void c(!1);o(void 0);n||r?(c(!0),(async()=>{try{if(n){const e=await s.files.getDownloadUrl(n);return void o(e.url)}if(!r)return;if(r.metadata?.type!==dr.Image)return;const e=r.content?.type&&fh.includes(r.content.type);try{const e=await s.objects.getRendition(r.id,{format:sr.jpeg,generate_if_missing:!1,sign_url:!0});if("found"===e.status&&e.renditions?.length)return void o(e.renditions[0])}catch{}if(e&&r.content?.source){const e=await s.files.getDownloadUrl(r.content.source);o(e.url)}}finally{c(!1)}})()):c(!1)},[t,n,r,s]),l?e("div",{className:a,children:e(p,{size:"md"})}):i?e("img",{src:i,alt:r?.name,className:`w-full object-contain ${a??""}`.trim()}):null}function wh({url:n,source:r,object:a,className:s}){const{t:i}=Ke(),{client:o}=Ze(),[l,c]=Le(n),[d,m]=Le(),[u,h]=Le(!(n||!r&&!a)),f=a?.metadata,g=f?.renditions||[],x=g.find(e=>"video/mp4"===e.content.type)||g.find(e=>"video/webm"===e.content.type),v=a?.content?.type&&gh.includes(a.content.type),b=g.find(e=>e.name===mr),y=!!a&&a.metadata?.type===dr.Video&&!x&&!v;return Ve(()=>{if(n)return c(n),void h(!1);c(void 0),m(void 0);r||a?(h(!0),(async()=>{try{if(r){const e=await o.files.getDownloadUrl(r);return void c(e.url)}if(!a)return;if(a.metadata?.type!==dr.Video)return;let e;x?.content?.source?e=await o.files.getDownloadUrl(x.content.source):v&&a.content?.source&&(e=await o.files.getDownloadUrl(a.content.source)),e&&c(e.url)}catch(e){console.error("Failed to get video URL",e)}finally{h(!1)}})()):h(!1)},[n,r,a,x,v,o]),Ve(()=>{b?.content?.source&&o.files.getDownloadUrl(b.content.source).then(e=>m(e.url)).catch(e=>console.error("Failed to load poster image",e))},[b,o]),y?e("div",{className:`flex justify-center items-center h-[400px] text-muted ${s??""}`.trim(),children:t("div",{className:"text-center",children:[e("p",{children:i("store.noVideoRendition")}),e("p",{className:"text-sm mt-2",children:i("store.videoFormatRequired")})]})}):u?e("div",{className:`flex justify-center items-center h-[400px] ${s??""}`.trim(),children:e(p,{size:"md"})}):l?e("video",{src:l,poster:d,controls:!0,className:`w-full h-full object-contain ${s??""}`.trim(),children:"Your browser does not support the video tag."}):e("div",{className:`flex justify-center items-center h-[400px] text-muted ${s??""}`.trim(),children:"Failed to load video"})}Fe(void 0);class Nh{filter(e,t){const n=t.toLowerCase();return e.filter(e=>this.valueOf(e).toLowerCase().includes(n))}renderOption(e){return this.valueOf(e)}findById(e,t){return e.find(e=>this.idOf(e)===t)}createItem(e){return null}}class kh extends Nh{valueOf(e){return String(e)}idOf(e){return String(e)}static instance=new kh}class Ch extends kh{createItem(e){return e}static instance=new Ch}const _h=$e.createContext(void 0);function Sh(){return $e.useContext(_h)}const Th=fa.Provider,Ih=fa.Root,zh=fa.Trigger,jh=De.forwardRef(({className:t,sideOffset:n=4,side:r="top",...a},s)=>{const i=Sh();return e(fa.Portal,{container:i,children:e(fa.Content,{ref:s,sideOffset:n,side:r,style:{zIndex:100},className:Ea("max-w-[90vw]","z-50 overflow-hidden rounded-md bg-tooltips border border-border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})})});function Rh({description:n,children:r,size:a="sm",placement:s="top",className:i,asChild:o}){const[l,c]=De.useState(!1),d=De.useRef(!1);return De.useEffect(()=>{const e=()=>{c(!1),d.current=!0,requestAnimationFrame(()=>{d.current=!1})};return window.addEventListener("blur",e),document.addEventListener("visibilitychange",e),()=>{window.removeEventListener("blur",e),document.removeEventListener("visibilitychange",e)}},[]),e(Th,{delayDuration:0,children:t(Ih,{open:l,onOpenChange:e=>{d.current||c(e)},children:[e(zh,{className:"cursor-pointer",asChild:o,children:r}),e(jh,{side:s,className:`px-3 py-1.5 max-w-${a} text-${a} px-3 ${i}`,children:n})]})})}jh.displayName=fa.Content.displayName;const Ph=new Set;function Ah(e,t,n){Ve(()=>{t&&!Ph.has(e)&&(Ph.add(e),console.warn(`[@vertesia/ui] ${e} is deprecated: ${n}`))},[t,n,e])}const Dh=ha("hover:cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{destructive:"bg-destructive dark:bg-destructive/10 text-destructive ring-1 ring-inset ring-destructive-muted/50 dark:ring-destructive-muted/50 shadow-xs hover:bg-destructive/50",outline:"border border-input bg-background shadow-xs hover:bg-muted ring-inset",secondary:"bg-primary/5 dark:bg-primary/10 text-primary shadow-xs hover:bg-primary/10 dark:hover:bg-primary/20 ring-inset",ghost:"hover:bg-muted/50 dark:hover:bg-muted/20 ring-inset",link:"text-foreground underline-offset-4 hover:underline ring-inset",primary:"bg-primary text-white shadow-xs hover:bg-primary/90 ring-inset",unstyled:""},size:{xs:"h-7 rounded px-2 py-1 text-xs gap-x-1",sm:"h-8 rounded px-3 text-xs",md:"h-9 rounded-md px-4 py-2",lg:"h-10 rounded-md px-3",xl:"rounded-md px-3.5 py-2.5 text-sm gap-x-2",icon:"p-0 m-0 rounded-full",none:""}},defaultVariants:{variant:"primary",size:"md"}}),$h=De.forwardRef(({className:r,variant:a,size:s,asChild:i=!1,alt:o,isDisabled:l,isLoading:c,title:d,onClick:m,type:u,...p},h)=>{Ah("Button.alt",void 0!==o,"use aria-label for the accessible name and wrap in <VTooltip> for a visual tooltip. `alt` is forwarded to both for one release.");const f=i?pa:"button",g=i?u:u??"button",x=p["aria-label"]??o,v=i?p.children:t(n,{children:[c&&e(et,{className:"animate-spin"}),p.children]}),b=e(f,{className:je(Ea(Dh({variant:a,size:s})),r),disabled:l||c||p.disabled,ref:h,onClick:m,type:g,autoFocus:!1,...p,"aria-label":x,children:v});return o||d?e(Rh,{description:o||d,asChild:!0,className:"cursor-pointer",size:"xs",placement:"top",children:b}):b});$h.displayName="Button";const Eh=De.forwardRef(({size:t,content:n,toast:r,className:a,alt:s,"aria-label":i,...o},l)=>{const[c,d]=Le(!1),{t:m}=Ke();Ah("CopyButton.alt",void 0!==s,"use aria-label for the accessible name. `alt` is forwarded for one release.");const u=i??s??m("misc.copy");return e($h,{ref:l,className:Ea(a),variant:"unstyled",size:t||"sm",onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(n).then(()=>{d(!0),setTimeout(()=>d(!1),2e3),r?.toast&&r.toast({status:"success",title:r.message||m("misc.copiedToClipboard"),duration:2e3})}).catch(e=>{console.error("Failed to copy text: ",e),r?.toast&&r.toast({status:"error",title:m("misc.failedToCopy"),duration:2e3})})},...o,"aria-label":u,title:u,children:c?e(tt,{className:"text-success"}):e(jt,{className:"size-4"})})});Eh.displayName="CopyButton",ha("inline-flex items-center rounded-md px-2 py-1 text-xs font-medium",{variants:{variant:{default:"text-foreground bg-muted",secondary:"bg-secondary text-primary",destructive:"bg-destructive text-destructive",attention:"bg-attention text-attention",success:"bg-success text-success",info:"bg-info text-info",done:"bg-done text-done"}},defaultVariants:{variant:"default"}}),ha("inline-flex items-center gap-x-1.5 rounded-md px-2 py-1 text-xs font-medium ring-1 ring-inset ring-border",{variants:{variant:{default:"",success:"",destructive:"",attention:"",done:"",info:""}},defaultVariants:{variant:"default"}}),ha("h-1.5 w-1.5",{variants:{variant:{default:"fill-foreground",success:"fill-success",destructive:"fill-destructive",attention:"fill-attention",done:"fill-done",info:"fill-info"}},defaultVariants:{variant:"default"}});const Lh=ha("",{variants:{size:{xs:"rounded py-1 text-xs rounded-xs",sm:"rounded text-xs rounded-sm",md:"rounded-md py-2 text-sm",lg:"rounded-md text-base",xl:"rounded-md py-2.5 text-lg"},variant:{default:"flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 ring-inset focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",unstyled:"block m-0 p-0 w-full border-0 focus:outline-hidden focus:ring-0 bg-transparent",noPadding:"block rounded-md border-0 bg-background shadow-2xs ring-1 ring-inset ring-ring placeholder:text-muted-foreground focus:ring-2 focus:ring-inset focus:ring-ring ring-offset-background",legacy:"py-1.5 block rounded-md border-0 bg-background shadow-2xs ring-1 ring-inset ring-ring placeholder:text-muted-foreground focus:ring-2 focus:ring-inset focus:ring-ring ring-offset-background"}},defaultVariants:{size:"md",variant:"default"}});De.forwardRef(({className:n,type:r,size:a="md",variant:s="default",clearable:i=!0,onChange:o,value:l,invalid:c,...d},m)=>{const u=d["aria-invalid"]??(!!c||void 0);return t("div",{className:"w-full relative inline-block [&:hover_.clear-button]:opacity-100",children:[e("input",{type:r,className:Ea(Lh({size:a,variant:s}),n,i&&l?"pe-8":""),ref:m,value:null==l?"":l,onChange:e=>{o?.(e.target.value)},...d,"aria-invalid":u}),i&&l&&!d.readOnly&&!d.disabled&&e($h,{variant:"link",size:"icon",type:"button",onClick:()=>{o?.("")},className:"clear-button opacity-0 transition-opacity duration-200\n absolute top-1/2 -translate-y-1/2 text-muted !hover:text-destructive cursor-pointer\n flex items-center justify-center size-6 rounded end-2","aria-label":"Clear input",children:e(it,{size:16})})]})}).displayName="Input",Ge(function(t,n){const{current:r,children:a,className:s,href:i="#",onClick:o,...l}=t;return e("li",{className:je(s,r?"bg-muted":"","w-full p-2 ps-3 text-sm leading-6 font-semibold hover:bg-muted"),children:e("a",{ref:n,href:i,onClick:e=>{o?(e.preventDefault(),o(e)):"#"===i&&e.preventDefault()},className:"w-full flex items-center gap-x-3",...l,children:a})})});const Fh={INPUT:"rounded-md text-sm flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 ring-inset focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 py-1.5"};function Oh(e){return null==e||Number.isNaN(e)?"":e.toString()}$e.forwardRef(({value:t,onChange:n,className:r,noScroll:a=!1,noSpinners:s=!1,...i},o)=>{const[l,c]=$e.useState(Oh(t));return Ve(()=>{if(null==t||!Number.isNaN(t)){const e=Oh(t);c(e)}},[t]),e("input",{onWheel:a?e=>{e.currentTarget.blur()}:i.onWheel,type:"number",value:l,onChange:e=>{const t=e.target.value;if(c(t),""===t)n?.(void 0,t);else{const e=parseFloat(t);n?.(e,t)}},className:je(r,Fh.INPUT,{"no-spinners":s},s&&"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"),ref:o,...i})});De.forwardRef(({...t},n)=>e("nav",{ref:n,"aria-label":"breadcrumb",...t})).displayName="Breadcrumb";De.forwardRef(({className:t,...n},r)=>e("ol",{ref:r,className:Ea("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted sm:gap-2.5",t),...n})).displayName="BreadcrumbList";De.forwardRef(({className:t,...n},r)=>e("li",{ref:r,className:Ea("inline-flex items-center gap-1.5 text-muted",t),...n})).displayName="BreadcrumbItem";De.forwardRef(({asChild:t,className:n,...r},a)=>e("a",{ref:a,className:Ea("transition-colors hover:text-muted",n),...r})).displayName="BreadcrumbLink";De.forwardRef(({className:t,href:n,onClick:r,...a},s)=>e($h,{variant:"ghost",size:"md",ref:s,className:Ea("p-0! hover:underline! hover:bg-background!",t),onClick:e=>{e.preventDefault(),r&&r(e)},...a})).displayName="BreadcrumbButton";De.forwardRef(({className:t,...n},r)=>e("span",{ref:r,"aria-current":"page",className:Ea("font-normal text-foreground",t),...n})).displayName="BreadcrumbPage";De.forwardRef(({className:t,...n},r)=>e("div",{ref:r,className:Ea("rounded-xl border bg-card text-card-foreground shadow",t),...n})).displayName="Card";De.forwardRef(({className:t,...n},r)=>e("div",{ref:r,className:Ea("flex flex-col p-6",t),...n})).displayName="CardHeader";De.forwardRef(({className:t,...n},r)=>e("div",{ref:r,className:Ea("font-semibold leading-none tracking-tight",t),...n})).displayName="CardTitle";De.forwardRef(({className:t,...n},r)=>e("div",{ref:r,className:Ea("text-sm text-muted-foreground",t),...n})).displayName="CardDescription";De.forwardRef(({className:t,...n},r)=>e("div",{ref:r,className:Ea("p-6 pt-0",t),...n})).displayName="CardContent";De.forwardRef(({className:t,...n},r)=>e("div",{ref:r,className:Ea("flex items-center p-6 pt-0",t),...n})).displayName="CardFooter";De.forwardRef(({className:t,...n},r)=>e(ga.Root,{ref:r,className:Ea("peer size-4 shrink-0 rounded-sm border border-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-white",t),...n,children:e(ga.Indicator,{className:Ea("flex items-center justify-center text-current"),children:e(tt,{className:"size-4"})})})).displayName=ga.Root.displayName,Fe(!1);const Mh=Je.Portal,Uh=De.forwardRef(({className:t,...n},r)=>e(Je.Overlay,{ref:r,className:Ea("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n}));Uh.displayName=Je.Overlay.displayName;De.forwardRef(({className:n,children:r,...a},s)=>{const i=Sh();return t(Mh,{container:i,children:[e(Uh,{}),e(Je.Content,{ref:s,autoFocus:!1,onOpenAutoFocus:e=>{e.preventDefault()},className:Ea("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...a,children:r})]})}).displayName=Je.Content.displayName;De.forwardRef(({className:t,...n},r)=>e(Je.Description,{ref:r,className:Ea("text-sm text-muted",t),...n})).displayName=Je.Description.displayName;De.forwardRef(({className:t,...n},r)=>e(Je.Title,{ref:r,className:Ea("text-lg font-semibold leading-none tracking-tight",t),...n})).displayName=Je.Title.displayName;De.forwardRef(({className:t,...n},r)=>e(xa,{ref:r,className:Ea("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...n})).displayName=xa.displayName;De.forwardRef(({className:n,...r},a)=>t("div",{className:"flex items-center px-3 border-b","cmdk-input-wrapper":"",children:[e(Wt,{className:"opacity-50 size-4 shrink-0"}),e(xa.Input,{ref:a,className:Ea("focus:ring-0","border-0 flex h-8 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",n),...r})]})).displayName=xa.Input.displayName;De.forwardRef(({className:t,...n},r)=>e(xa.List,{ref:r,className:Ea("overflow-y-auto overflow-x-hidden",t),...n})).displayName=xa.List.displayName;De.forwardRef((t,n)=>e(xa.Empty,{ref:n,className:"py-2 text-sm text-center",...t})).displayName=xa.Empty.displayName;De.forwardRef(({className:t,...n},r)=>e(xa.Group,{ref:r,className:Ea("overflow-y-auto overflow-x-hidden p-1 text-foreground","[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...n})).displayName=xa.Group.displayName;De.forwardRef(({className:t,...n},r)=>e(xa.Separator,{ref:r,className:Ea("-mx-1 h-px bg-border",t),...n})).displayName=xa.Separator.displayName;De.forwardRef(({className:t,...n},r)=>e(xa.Item,{ref:r,className:Ea("hover:bg-muted cursor-pointer relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...n})).displayName=xa.Item.displayName,De.createContext(!1);const Wh=De.createContext(null);function Vh(e=!1,t=()=>{},n){e&&t("enter"===n)}De.forwardRef(({children:t,...n},r)=>{const a=De.useContext(Wh);if(!a)throw new Error("PopoverTrigger must be used within a Popover");const{setOpen:s,hover:i,click:o}=a;return e(va.Trigger,{ref:r,asChild:!0,onMouseEnter:()=>Vh(i,s,"enter"),onMouseLeave:()=>Vh(i,s,"leave"),onClick:()=>{o&&s(e=>!e)},...n,children:t})}).displayName=va.Trigger.displayName;De.forwardRef(({className:t,align:n="center",side:r="bottom",...a},s)=>{const i=De.useContext(Wh);if(!i)throw new Error("PopoverContent must be used within a Popover");const{setOpen:o,hover:l}=i,c=Sh();return e(va.Portal,{container:c,children:e(va.Content,{ref:s,align:n,side:r,onMouseEnter:()=>Vh(l,o,"enter"),onMouseLeave:()=>Vh(l,o,"leave"),className:Ea("z-50 w-72 rounded-md border-popover bg-popover text-popover-foreground ring-1 ring-gray-200 dark:ring-slate-700 shadow-md focus:outline-none animate-in","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})})}).displayName=va.Content.displayName;var Bh;va.Close.displayName=va.Close.displayName,$e.createContext({filters:[],setFilters:()=>{},filterGroups:[]}),function(e){e.IS="is",e.IS_NOT="is_not",e.CONTAINS="contains",e.BEFORE="before",e.AFTER="after",e.IS_ANY_OF="is_any_of"}(Bh||(Bh={}));Ge(({className:t,level:n=3,...r},a)=>e(`h${n}`,{ref:a,className:Ea({h1:"text-2xl font-medium tracking-tight",h2:"text-xl font-medium tracking-tight",h3:"text-lg font-medium",h4:"text-base font-medium",h5:"text-sm font-medium",h6:"text-xs font-medium"}[`h${n}`],"mb-2",t),...r})).displayName="Heading";const qh=ha("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");De.forwardRef(({className:n,required:r,...a},s)=>t(ba.Root,{ref:s,className:Ea(qh(),n),...a,children:[a.children,r&&e("span",{className:"text-destructive-foreground ms-1",children:"*"})]})).displayName=ba.Root.displayName,Fe(()=>{});De.forwardRef(({className:t,orientation:n="horizontal",decorative:r=!0,...a},s)=>e(ya.Root,{ref:s,decorative:r,orientation:n,className:Ea("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",t),...a})).displayName=ya.Root.displayName;De.forwardRef(({className:n,trackClassName:r,rangeClassName:a,thumbClassName:s,value:i,defaultValue:o,min:l=0,max:c=100,"aria-label":d,...m},u)=>{const p=De.useId(),h=Array.isArray(i)?i.length:Array.isArray(o)?o.length:1,f=De.useMemo(()=>Array.from({length:Math.max(1,h)},(e,t)=>`${p}-thumb-${t}`),[p,h]);return t(wa.Root,{ref:u,"data-slot":"slider",value:i,defaultValue:o,min:l,max:c,...m,className:Ea("relative flex w-full touch-none select-none items-center data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",n),children:[e(wa.Track,{"data-slot":"slider-track",className:Ea("relative h-1.5 w-full grow overflow-hidden rounded-full bg-muted data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",r),children:e(wa.Range,{"data-slot":"slider-range",className:Ea("absolute h-full bg-primary data-[orientation=vertical]:w-full",a)})}),f.map(t=>e(wa.Thumb,{"data-slot":"slider-thumb","aria-label":d,className:Ea("block size-3.5 rounded-full border border-primary bg-background shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",s)},t))]})}).displayName=wa.Root.displayName;const Hh=De.createContext({size:void 0,tabs:void 0,current:void 0,setTab:void 0,responsive:!1,variant:"tabs",updateHash:!0});De.forwardRef(({className:t,size:n,variant:r="tabs",...a},s)=>e(Hh.Provider,{value:{size:n,variant:r},children:e(Na.List,{ref:s,className:Ea("tabs"===r?"border-b -mb-px flex space-x-4":"flex space-x-2 p-1 rounded-md",t),...a})})).displayName=Na.List.displayName;De.forwardRef(({className:t,href:n,variant:r="tabs",...a},s)=>{const{size:i}=De.useContext(Hh),o=De.useCallback(e=>{if(n){e.preventDefault();const t=window.history.state;window.history.pushState(t,"",n)}a.onClick&&a.onClick(e)},[n,a.onClick]);return e(Na.Trigger,{ref:s,className:Ea("tabs"===r?Ea("border-b-2 px-2 py-1.5 text-sm font-medium whitespace-nowrap cursor-pointer","border-transparent text-muted-foreground hover:border-border hover:text-foreground","data-[state=active]:border-primary data-[state=active]:text-primary","disabled:pointer-events-none disabled:opacity-50"):Ea("px-3 py-1.5 text-sm font-medium whitespace-nowrap cursor-pointer rounded-sm transition-colors","tborder border-input bg-muted shadow-xs hover:bg-muted ring-inset","data-[state=active]:bg-primary data-[state=active]:text-white data-[state=active]:shadow-sm","disabled:pointer-events-none disabled:opacity-50"),t,i?`w-1/${i}`:""),onClick:o,...a})}).displayName=Na.Trigger.displayName;De.forwardRef(({className:t,...n},r)=>e(Na.Content,{ref:r,className:Ea("focus-visible:outline-none","flex-1 overflow-y-auto min-h-0 pt-2 pb-4",t),...n})).displayName=Na.Content.displayName;const Gh=ha("text-foreground",{variants:{size:{xl:"text-base md:text-lg leading-relaxed",lg:"text-base leading-relaxed",default:"text-sm leading-normal",sm:"text-sm leading-normal",xs:"text-xs leading-normal"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold"}},defaultVariants:{size:"default",weight:"normal"}});Ge(({className:t,size:n,weight:r,...a},s)=>e("p",{ref:s,className:Ea(Gh({size:n,weight:r,className:t})),...a})).displayName="Text";function Jh({size:n,className:r}){const a=function(e){switch(e){case"xs":return"size-2";case"sm":return"size-3";case"md":return"size-4";case"lg":return"size-5";case"xl":return"size-7";case"2xl":return"size-10";default:throw new Error(`Unexpected size: ${e}`)}}(n||"md");return t("svg",{className:je("animate-[spin_0.8s_linear_infinite] text-indigo-500",a,r),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"Loading",children:[e("title",{children:"Loading"}),e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function Kh({onComplete:e,onError:t}){const n=Me(null),r=Me(e),a=Me(t);Ve(()=>{r.current=e,a.current=t},[e,t]),Ve(()=>()=>{n.current&&(n.current(),n.current=null)},[]);return{openOAuthPopup:e=>{n.current&&(n.current(),n.current=null);const t=window.screenX+(window.outerWidth-600)/2,s=window.screenY+(window.outerHeight-700)/2,i=window.open(e,"oauth_popup",`width=600,height=700,left=${t},top=${s},popup=yes`);let o=!1,l=null;const c=new BroadcastChannel("oauth-callback");c.addEventListener("message",e=>{var t;"object"==typeof(t=e.data)&&null!==t&&"type"in t&&"oauth-complete"===t.type&&"success"in t&&"boolean"==typeof t.success&&(o=!0,c.close(),l&&clearInterval(l),r.current(),!e.data.success&&e.data.error&&a.current?.(e.data.error),n.current=null)}),i&&(l=setInterval(()=>{i.closed&&(l&&clearInterval(l),c.close(),o||r.current(),n.current=null)},1e3)),n.current=()=>{c.close(),l&&clearInterval(l)}}}}function Yh({oauthProviderId:r,onAuthChange:a}){const{client:s}=Ze(),{t:i}=Ke(),[o,l]=Le(null),[c,d]=Le(!0),[m,u]=Le(!1),[p,h]=Le(!1),f=Ue(async()=>{try{d(!0);const e=await s.oauthProviders.getStatus(r);l(e)}catch(e){console.error("Failed to load OAuth provider status:",e)}finally{d(!1)}},[s,r]);Ve(()=>{f()},[f]);const{openOAuthPopup:g}=Kh({onComplete:()=>{u(!1),f(),a?.()},onError:e=>{console.error("OAuth provider auth failed:",e),u(!1)}}),x=async()=>{if(!p)try{h(!0),await s.oauthProviders.disconnect(r),await f(),a?.()}catch(e){console.error("Failed to disconnect OAuth provider:",e)}finally{h(!1)}};return c?e(Jh,{className:"size-4"}):o?.authenticated?t("div",{className:"flex items-center gap-2",children:[t("div",{className:"flex items-center gap-1 text-success text-sm",children:[e(On,{className:"size-4"}),e("span",{children:i("oauthProvider.connected")})]}),e($h,{variant:"outline",size:"sm",onClick:x,disabled:p,children:p?e(Jh,{className:"size-3"}):i("oauthProvider.disconnect")})]}):e($h,{variant:"outline",size:"sm",onClick:async()=>{if(!m)try{u(!0);const e=await s.oauthProviders.authorize(r);e.authorization_url&&g(e.authorization_url)}catch(e){console.error("Failed to authorize OAuth provider:",e),u(!1)}},disabled:m,children:t(n,m?{children:[e(Jh,{className:"size-4"}),e("span",{children:i("oauthProvider.authenticating")})]}:{children:[e(_t,{className:"size-4 me-1"}),e("span",{children:i("oauthProvider.authenticate")})]})})}function Qh({appId:r,collectionId:a,collectionName:s,authenticated:i,onAuthChange:o,onError:l,variant:c="default",showLabel:d=!1,showDisconnect:m=!1,readOnly:u=!1}){const{client:p}=Ze(),{t:h}=Ke(),[f,g]=Le(null),[x,v]=Le(void 0===i),[b,y]=Le(!1),[w,N]=Le(!1),k=i??f?.authenticated??!1,C=s??a,_=Ue(async()=>{if(void 0===i)try{v(!0);const e=await p.remoteMcpConnections.getCollectionStatus(r,a);g(e)}catch(e){console.error("[RemoteMcpConnectionButton] Failed to load OAuth status:",e)}finally{v(!1)}else v(!1)},[p,r,a,i]);Ve(()=>{_()},[_]);const{openOAuthPopup:S}=Kh({onComplete:()=>{y(!1),_(),o?.()},onError:e=>{console.error("OAuth failed:",e),y(!1)}}),T=async()=>{try{y(!0),l?.(null);const e=await p.remoteMcpConnections.authorize(r,a);e.connected?(y(!1),await _(),o?.()):e.authorization_url?S(e.authorization_url):(l?.(`${C}: Authorization URL not provided by server`),y(!1))}catch(e){console.error("Failed to authorize:",e);const t=(e instanceof Error?e.original_message??e.message:"Failed to connect").replace(/^[A-Za-z\s]+:\s/,"");l?.(`${C}: ${t}`),y(!1)}},I=async()=>{try{N(!0),await p.remoteMcpConnections.disconnect(r,a),await _(),o?.()}catch(e){console.error("Failed to disconnect:",e)}finally{N(!1)}};return x?e("div",{className:"flex items-center gap-2 text-sm",children:e(Jh,{className:"size-4"})}):"full"===c?t("div",k?{className:"flex items-center gap-2",children:[d&&t("span",{className:"font-medium text-sm text-foreground",children:[C,":"]}),t("div",{className:"flex items-center gap-1 text-success text-sm",children:[e(On,{className:"size-4"}),e("span",{children:h("mcpOAuth.connected")})]}),m&&e($h,{variant:"ghost",size:"sm",onClick:I,disabled:w,children:w?e(Jh,{className:"size-4"}):h("mcpOAuth.disconnect")})]}:{className:"flex items-center gap-2 text-sm",children:[d&&t("span",{className:"font-medium text-foreground",children:[C,":"]}),e($h,{variant:"ghost",size:"sm",onClick:T,disabled:b,children:t(n,b?{children:[e(Jh,{className:"size-4"}),e("span",{children:h("mcpOAuth.authenticating")})]}:{children:[e(Mn,{className:"size-4"}),e("span",{children:h("mcpOAuth.authenticate")})]})})]}):k?t("div","compact"===c?{className:"flex items-center gap-2",children:[d&&t("span",{className:"font-medium text-xs text-foreground",children:[C,":"]}),t("div",{className:"flex items-center gap-1 text-success",children:[e(On,{className:"size-3"}),e("span",{className:"text-xs",children:h("mcpOAuth.connected")})]}),!u&&m&&e($h,{variant:"ghost",size:"sm",onClick:I,disabled:w,className:"h-6 px-2 text-xs",children:w?e(Jh,{className:"size-3"}):h("mcpOAuth.disconnect")})]}:{className:"flex items-center gap-1 text-success",children:[e(On,{className:"size-4"}),e("span",{className:"text-sm",children:h("mcpOAuth.connected")})]}):"compact"===c?t("div",u?{className:"flex items-center gap-2",children:[d&&t("span",{className:"font-medium text-xs text-foreground",children:[s,":"]}),e("div",{className:"flex items-center gap-1 text-muted",children:e("span",{className:"text-xs",children:h("mcpOAuth.notConnected")})})]}:{className:"flex items-center gap-2",children:[d&&t("span",{className:"font-medium text-xs text-foreground",children:[C,":"]}),e($h,{variant:"outline",size:"sm",onClick:T,disabled:b,className:"h-6 px-2 text-xs",children:t(n,b?{children:[e(Jh,{className:"size-3"}),e("span",{children:h("mcpOAuth.connecting")})]}:{children:[e(_t,{className:"size-3 me-1"}),e("span",{children:h("mcpOAuth.connect")})]})})]}):e($h,{variant:"outline",size:"sm",onClick:T,disabled:b,children:t(n,b?{children:[e(Jh,{className:"size-4"}),e("span",{children:h("mcpOAuth.connecting")})]}:{children:[e(_t,{className:"size-4 me-1"}),e("span",{children:h("mcpOAuth.connect")})]})})}function Zh(...e){const t=Array.from(e);return t.__AnyOf__=!0,t}function Xh(...e){return Array.from(e)}function ef(e){return!0===e.__AnyOf__}Fe({theme:"system",setTheme:()=>null});class tf{system_roles;roles;permissions;constructor(e,t=function(){return pr().map(e=>({name:e.name,permissions:Array.from(e.permissions)}))}()){this.system_roles=t;const n=[...e.account_roles||[],...e.project_roles||[]],r=new Set(n);this.roles=r;const a=e.permissions??function(e,t){if(0===t.length)return ur(e);const n=new Map(t.map(e=>[e.name,e.permissions])),r=new Set;for(const t of e)for(const e of n.get(t)??[])r.add(e);return Array.from(r)}(n,t),s=e.type===ar.OAuthAccess?new Set(e.permissions??[]):void 0;this.permissions=new Set(s?a.filter(e=>s.has(e)):a)}hasPermission(e){if("string"==typeof e)return this.permissions.has(e);if(ef(e))return e.some(e=>this.permissions.has(e));for(const t of e)if(!this.permissions.has(t))return!1;return!0}}const nf=Fe(void 0);function rf(){const e=Oe(nf);if(!e)throw new Error("UserPermissionContext cannot be used outside UserPermissionProvider");return e}function af({children:t}){const{t:n}=Ke(),r=Ze(),a=r.authToken,s=Boolean(a&&!a.permissions),{data:i,error:o,isLoading:l}=z(()=>s?r.client.iam.roles.list():Promise.resolve(void 0),[r,s]),c=Ee(()=>{if(a)return a.permissions||!s?new tf(a):i&&!l?new tf(a,i):void 0},[a,i,l,s]);return o?e(f,{title:n("store.failedToFetchRoleMappings"),children:j(o)}):c&&e(nf.Provider,{value:c,children:t})}function sf({permission:t,isDisabled:n,title:a,children:s,...i}){return rf().hasPermission(t)?e(r,{isDisabled:n,title:a,...i,children:s}):null}function of({permission:t,...n}){return rf().hasPermission(t)?e(ka,{...n}):null}class lf extends se{idOf(e){return e.id}labelOf(e){return e.label}descriptionOf(e){return e.description}selectedClassName(e){return"border-3 border-primary"}}function cf({isOpen:n,onClose:s,onConfirm:i,isLoading:o,uploadedFileName:l}){const{t:c}=Ke(),d=Ee(()=>[{id:"update",label:c("modal.saveVersion.updateCurrent"),description:c(l?"modal.saveVersion.updateWithFileDescription":"modal.saveVersion.updateDescription")},{id:"new-version",label:c("modal.saveVersion.createNew"),description:c(l?"modal.saveVersion.createWithFileDescription":"modal.saveVersion.createDescription")}],[c,l]),m=l?d[1]:d[0],[u,p]=Le(m),[h,f]=Le(""),g=new lf;Ve(()=>{n&&(p(m),f(""))},[m,n]);const y="new-version"===u?.id;return t(x,{isOpen:n,onClose:s,className:"sm:max-w-md",children:[e(v,{children:c("modal.saveChanges")}),e(b,{children:t("div",{className:"space-y-4",children:[l&&e("div",{className:"mb-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-md",children:t("p",{className:"text-sm text-blue-700 dark:text-blue-300 font-medium",children:[c("modal.saveVersion.replaceFile")," ",e("span",{className:"font-bold",children:l})]})}),e("p",{className:"text-sm text-mixer-muted/5",children:c("modal.saveVersion.howToSave")}),e(re,{adapter:g,options:d,selected:u,onSelect:e=>{p(e)}}),y&&e(ae,{label:c("modal.saveVersion.versionLabel"),description:c("modal.saveVersion.versionLabelDescription"),className:"mt-3 ps-8",children:e(a,{value:h,onChange:f,placeholder:c("modal.saveVersion.versionLabelPlaceholder"),className:"w-full"})})]})}),t(K,{children:[e(r,{variant:"secondary",onClick:s,disabled:o,children:c("modal.cancel")}),e(r,{variant:"primary",onClick:async()=>{await i(y,y?h:void 0)},isLoading:o,children:c("modal.save")})]})]})}function df({isOpen:a,onClose:s,object:i,refetch:o}){const{client:c,store:d}=Ze(),m=l(),{t:u}=Ke(),{theme:p}=ie(),h=Or(),[f,g]=Le(!1),[y,w]=Le(""),[N,k]=Le(!1),[C,_]=Le(null),S=Me(void 0),[T,I]=Le(null),[z,R]=Le(null),P=Ue(async e=>{try{const t=await d.types.retrieve(e);t.object_schema&&I(t.object_schema)}catch(e){console.error("Failed to fetch JSON schema:",e)}},[d.types]);Ve(()=>{a&&(w(JSON.stringify(i.properties||{},null,2)),i.type?.id&&P(i.type.id))},[a,i,P]);return t(n,{children:[t(x,{isOpen:a,onClose:s,className:"sm:max-w-[90%] md:max-w-[80%] lg:max-w-[75%] xl:max-w-[70%]",children:[e(v,{children:u("store.editProperties")}),t(b,{children:[t("div",{className:"mb-2 text-sm text-gray-500",children:[i.type?.name?t("span",{children:["Editing properties for object type: ",e("strong",{children:i.type.name})]}):e("span",{children:u("store.editingGenericDocument")}),null!==T&&e("span",{className:"ms-2 text-green-600",children:"(JSON schema validation enabled)"})]}),e("div",{className:"h-[75vh] border rounded-md overflow-hidden",children:e(Yr,{value:y,language:"json",editorRef:S,onChange:e=>{return t=e.state.doc.toString(),void w(t);var t},beforeMount:e=>{T&&e.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"http://myserver/object-schema.json",fileMatch:["*"],schema:T}]})},theme:"dark"===p?"vs-dark":"vs"})})]}),t(K,{children:[e(r,{variant:"secondary",onClick:s,children:"Cancel"}),e(r,{variant:"primary",onClick:function(){if(!S.current)return;const e=S.current.getValue();try{const t=JSON.parse(e);_(t),k(!0)}catch{m({status:"error",title:u("store.invalidJson"),description:u("store.pleaseFixJsonSyntax"),duration:5e3})}},children:"Save Changes"})]})]}),e(cf,{isOpen:N,onClose:function(){k(!1)},onConfirm:async function(e,t){try{g(!0);const n=C||JSON.parse(y);if(e){const e=await c.objects.update(i.id,{properties:n},{createRevision:!0,revisionLabel:t});e.id!==i.id&&R(e.id),m({status:"success",title:u("store.newVersionCreated"),description:u("store.newVersionCreatedDesc"),duration:2e3}),k(!1),s(),e.id!==i.id&&setTimeout(()=>{h(`/objects/${e.id}`),m({status:"info",title:u("store.viewingNewVersion"),description:t?u("store.viewingVersionLabel",{label:t}):u("store.viewingNewVersionDefault"),duration:3e3})},100)}else await d.objects.update(i.id,{properties:n}),m({status:"success",title:u("store.propertiesUpdated"),description:u("store.propertiesUpdatedDesc"),duration:2e3}),o&&await o(),k(!1),s()}catch(e){m({status:"error",title:u("store.errorUpdatingProperties"),description:j(e,u("store.errorUpdatingPropertiesDefault")),duration:5e3}),g(!1)}},isLoading:f})]})}function mf({object:a,text:s,onClose:i,onSaved:o}){const{store:c}=Ze(),d=l(),{t:m}=Ke(),{theme:u}=ie(),p=Or(),h=Me(void 0),[f,g]=Le(!1),[x,v]=Le(!1),[b,y]=Le(!1),w=function(e){switch(e){case"text/markdown":return"markdown";case"application/json":return"json";case"application/xml":case"text/xml":return"xml";default:return"plaintext"}}(a.content?.type);console.log("Determined language for Monaco Editor:",w),console.log("TextEditorPanel rendered with object:",a,s);const N=Ue(()=>{f||g(!0)},[f]);return t(n,{children:[t("div",{className:"flex items-center gap-2 px-2 py-1 shrink-0",children:[f&&e("span",{className:"text-xs text-attention",children:m("store.unsavedChanges")}),e("div",{className:"flex-1"}),e(r,{variant:"ghost",size:"sm",onClick:i,disabled:x,children:m("store.cancelEdit")}),e(r,{variant:"secondary",size:"sm",onClick:function(){h.current&&y(!0)},disabled:!f,isLoading:x,children:m("store.saveText")})]}),e("div",{className:"flex-1 min-h-0 border rounded-md overflow-hidden mx-2 mb-2",children:e(Yr,{value:s,language:w,editorRef:h,onChange:N,theme:"dark"===u?"vs-dark":"vs",options:{wordWrap:"on",minimap:{enabled:!1},lineNumbers:"on",scrollBeyondLastLine:!1}})}),e(cf,{isOpen:b,onClose:()=>y(!1),onConfirm:async function(e,t){if(!h.current)return;const n=h.current.getValue(),r=a.content?.type||"text/plain",s=a.content?.name||"content.txt";try{v(!0);const l=new Blob([n],{type:r}),u=new File([l],s,{type:r}),h=await c.objects.update(a.id,{content:u},{createRevision:e,revisionLabel:t,ifMatch:a.content?.etag});d({status:"success",title:m("store.textSaved"),duration:2e3}),y(!1),e&&h.id!==a.id?(i(),setTimeout(()=>{p(`/objects/${h.id}`)},100)):o()}catch(e){const t=j(e,m("store.errorSavingTextDefault")),n=412===("object"==typeof e&&null!==e&&"status"in e?e.status:void 0)||t.includes("412");d({status:"error",title:m("store.errorSavingText"),description:n?m("store.textConflict"):t,duration:5e3})}finally{v(!1)}},isLoading:x})]})}const uf=131072;function pf(e){return e===hr.created||e===hr.processing}function hf(e){return e.metadata?.content_processor?.type}function ff(e){return e?"h-full overflow-auto":"hidden"}var gf;function xf({object:n,loadText:r,refetch:a,canEditProperties:s=!0}){const i=l(),{t:o}=Ke(),c=async(e,t)=>{try{await navigator.clipboard.writeText(e),i({status:"success",title:o("store.contentCopied",{type:o("text"===t?"store.contentType":"store.properties")}),description:o("store.successfullyCopied",{type:t}),duration:2e3})}catch(e){console.error(`Failed to copy ${t}:`,e),i({status:"error",title:o("store.copyFailed"),description:o("store.failedToCopy",{type:t}),duration:5e3})}};return t(ee,{direction:"horizontal",className:"h-full",children:[e(te,{defaultSize:67,className:"min-w-[100px]",children:e(bf,{object:n,loadText:r??!1,handleCopyContent:c,refetch:a})}),e(ne,{withHandle:!0}),e(te,{defaultSize:33,className:"min-w-[100px]",children:e(vf,{object:n,refetch:a??(()=>Promise.resolve()),handleCopyContent:c,canEditProperties:s})})]})}function vf({object:a,refetch:s,handleCopyContent:i,canEditProperties:o}){const{t:l}=Ke(),[c,d]=Le(!1),[m,u]=Le(!1);return t(n,{children:[t("div",{className:"flex flex-col h-full",children:[t("div",{className:"flex justify-between items-center px-2",children:[t("div",{className:"flex items-center gap-1 bg-muted mb-2 p-1 rounded",children:[e(r,{variant:""+(c?"ghost":"primary"),size:"sm",alt:l("store.previewProperties"),onClick:()=>d(!c),children:"Properties"}),e(r,{variant:""+(c?"primary":"ghost"),size:"sm",alt:l("store.viewInJsonFormat"),onClick:()=>d(!c),children:"JSON"})]}),t("div",{className:"flex items-center gap-2",children:[a.properties&&e(r,{variant:"ghost",size:"sm",title:"Copy properties",onClick:()=>i(JSON.stringify(a.properties,null,2),"properties"),children:e(nt,{className:"size-4"})}),o&&e(sf,{permission:fr.content_write,variant:"ghost",size:"sm",onClick:()=>{u(!0)},title:"Edit properties",className:"flex items-center gap-2",children:e(Un,{className:"size-4"})})]})]}),a.properties?e("div",{className:"flex-1 min-h-0 px-2",children:e(Qr,{value:a.properties,viewCode:c})}):e("div",{className:"flex-1 min-h-0 px-2",children:e("div",{children:l("store.noPropertiesDefined")})})]}),e(df,{isOpen:m,onClose:()=>{u(!1)},object:a,refetch:s})]})}function bf({object:n,loadText:a,handleCopyContent:s,refetch:i}){const{client:o}=Ze(),{t:l}=Ke(),c=n?.metadata?.type===dr.Image,d=n?.metadata?.type===dr.Video,m=n?.metadata?.type===dr.Audio,u="application/pdf"===n?.content?.type,h=!!n?.content?.type&&yu(n.content.type),f=pf(n?.status),g=!(!n.transcript||!d&&!m),x=n.metadata,v=x?.renditions?.find(e=>e.name===lr),[b,y]=Le(d?gf.Video:m?gf.Audio:c?gf.Image:gf.Text),[w,N]=Le(b===gf.Pdf);Ve(()=>{b===gf.Pdf&&N(!0)},[b]);const[k,C]=Le(!1),_=!(!n.content?.source||!n.content?.type||f||n.is_locked||!1===n.user_permissions?.can_write||!n.content.type.startsWith("text/")&&"application/json"!==n.content.type&&"application/xml"!==n.content.type),{fullText:S,displayText:T,isLoading:I,isCropped:z,loadText:j}=function(e,t,n=!1){const{store:r}=Ze(),[a,s]=Le(t),[i,o]=Le(()=>t&&t.length>uf?t.substring(0,uf):t),[l,c]=Le(!1),[d,m]=Le(()=>!!t&&t.length>uf),u=Ue(()=>{c(!0),r.objects.getObjectText(e).then(e=>{s(e.text),e.text&&e.text.length>uf?(o(e.text.substring(0,uf)),m(!0)):(o(e.text),m(!1))}).catch(e=>{console.error("Failed to load text",e),s(void 0),o(void 0),m(!1)}).finally(()=>{c(!1)})},[e,r]);return Ve(()=>{t&&t.length>uf?(s(t),o(t.substring(0,uf)),m(!0)):(s(t),o(t),m(!1)),n&&!t&&u()},[t,n,u]),{fullText:a,displayText:i,isLoading:l,isCropped:d,loadText:u}}(n.id,n.text,a),R=(u||h)&&f&&(b===gf.Text||b===gf.Pdf),{progress:P,status:A,outputFormat:D,isComplete:$}=function(e,t){const{client:n}=Ze(),[r,a]=Le({isComplete:!1});return Ve(()=>{if(!t)return;let r,s=!1;const i=(e,t,n,r)=>{a(a=>{const s=JSON.stringify(a.progress??null),i=JSON.stringify(e??null);return a.status===t&&a.outputFormat===n&&a.isComplete===r&&s===i?a:{progress:e,status:t,outputFormat:n,isComplete:r}})};return function t(){s||n.objects.analyze(e).getStatus().then(e=>{const n=e.output_format??e.progress?.output_format;e.status===ir.RUNNING?(i(e.progress,e.status,n,!1),s||(r=setTimeout(t,2e3))):i(e.progress,e.status,n,!0)}).catch(()=>{s||(r=setTimeout(t,1e4))})}(),()=>{s=!0,r&&clearTimeout(r)}},[t,e,n]),{progress:r.progress,status:r.status,outputFormat:r.outputFormat,isComplete:r.isComplete}}(n.id,R),{pdfUrl:E,isConverting:L,error:F}=function(e,t){const{client:n}=Ze(),r=Ye.getFixedT(null,Qe),[a,s]=Le(),[i,o]=Le(!1),[l,c]=Le(),d=Ue(async()=>{if(!t||i)return;o(!0),c(void 0);const a=async t=>{try{const i=await n.objects.getRendition(e,{format:Zn.pdf,generate_if_missing:t,sign_url:!0,block_on_generation:!1});"generating"===i.status?setTimeout(()=>a(!1),5e3):"found"===i.status&&i.renditions?.length?(s(i.renditions[0]),o(!1)):"failed"===i.status&&(c(r("store.pdfConversionFailed")),o(!1))}catch(e){console.error("Failed to convert Office document to PDF:",e),c(r("store.failedToConvertToPdf")),o(!1)}};await a(!0)},[e,t,i,n,r]);return{pdfUrl:a,isConverting:i,error:l,triggerConversion:d}}(n.id,h),O=Ee(()=>[{id:"office-pdf-rendition",target:"pdf",canConvert:({contentType:e,extension:t})=>h||!!e&&yu(e)||["doc","docx","ppt","pptx"].includes(t),convert:async()=>{const e=await o.objects.getRendition(n.id,{format:Zn.pdf,generate_if_missing:!0,sign_url:!0,block_on_generation:!0});return"found"===e.status&&e.renditions?.length?{url:e.renditions[0],contentType:"application/pdf",fileName:`${n.name||"document"}.pdf`}:null}}],[o,h,n.id,n.name]);Ve(()=>{$&&A===ir.COMPLETED&&j()},[$,A,j]);const M=(u||h)&&f&&!$&&A===ir.RUNNING,U=b===gf.Pdf&&!M,W=M&&(b===gf.Text||b===gf.Pdf),V=w&&!M,B=Me(null);return t("div",{className:"flex flex-col h-full",children:[t("div",{className:"flex justify-between items-center px-2 shrink-0",children:[t("div",{className:"flex items-center gap-2 mb-2",children:[t("div",{className:"flex items-center gap-1 bg-muted p-1 rounded",children:[c&&e(r,{variant:b===gf.Image?"primary":"ghost",size:"sm",alt:l("store.viewImage"),onClick:()=>y(gf.Image),children:"Image"}),d&&e(r,{variant:b===gf.Video?"primary":"ghost",size:"sm",alt:l("store.viewVideo"),onClick:()=>y(gf.Video),children:"Video"}),m&&e(r,{variant:b===gf.Audio?"primary":"ghost",size:"sm",alt:l("store.viewAudio"),onClick:()=>y(gf.Audio),children:"Audio"}),g&&e(r,{variant:b===gf.Transcript?"primary":"ghost",size:"sm",alt:l("store.viewTranscript"),onClick:()=>y(gf.Transcript),children:"Transcript"}),e(r,{variant:b===gf.Text?"primary":"ghost",size:"sm",alt:l("store.viewText"),onClick:()=>y(gf.Text),children:"Text"}),u&&e(r,{variant:b===gf.Pdf?"primary":"ghost",size:"sm",alt:l("store.viewPdf"),onClick:()=>y(gf.Pdf),children:"PDF"}),h&&e(r,{variant:b===gf.Pdf?"primary":"ghost",size:"sm",alt:l("store.viewAsPdf"),onClick:()=>{y(gf.Pdf)},disabled:L,children:L?e(p,{size:"sm"}):"PDF"})]}),e(kf,{object:n})]}),b===gf.Text&&!M&&!k&&e(yf,{object:n,text:T,fullText:S,handleCopyContent:s,textContainerRef:B,isEditing:k,onToggleEdit:()=>C(!0),canEdit:_}),b===gf.Pdf&&h&&(v||E)&&e(Cf,{object:n,pdfRendition:v,officePdfUrl:E})]}),b===gf.Image&&e("div",{className:ff(!0),children:e(yh,{object:n})}),b===gf.Video&&e("div",{className:ff(!0),children:e(wh,{object:n})}),b===gf.Audio&&e("div",{className:ff(!0),children:e(bh,{object:n})}),g&&b===gf.Transcript&&e("div",{className:ff(!0),children:e(Nf,{object:n,handleCopyContent:s})}),u&&V&&e("div",{className:ff(U),children:e(_f,{object:n})}),h&&V&&e("div",{className:ff(U),children:e(Sf,{object:n,pdfRendition:v,officePdfUrl:E,converters:O,officePdfConverting:L,officePdfError:F})}),W&&e("div",{className:ff(!0),children:e(Tf,{progress:P,status:A,outputFormat:D})}),b===gf.Text&&!M&&!k&&I&&e("div",{className:ff(!0),children:e("div",{className:"flex justify-center items-center flex-1",children:e(p,{size:"lg"})})}),b===gf.Text&&!M&&!k&&!I&&e("div",{className:ff(!0),children:e(wf,{object:n,text:T,isTextCropped:z,textContainerRef:B})}),k&&b===gf.Text&&null!=S&&e(mf,{object:n,text:S,onClose:()=>C(!1),onSaved:()=>{C(!1),j(),i?.()}})]})}function yf({object:a,text:s,fullText:i,handleCopyContent:o,onToggleEdit:c,canEdit:u}){const{client:h,project:f}=Ze(),g=l(),{t:x}=Ke(),v=a.content,{renderDocument:b,isDownloading:y}=zo({client:h,toast:g}),{data:w}=z(()=>f?h.projects.retrieve(f.id):Promise.resolve(void 0),[f?.id]),N=w?.configuration?.pdf_template_object_id,k=v?.type&&"text/markdown"===v.type,C=hf(a),_=async(e,t)=>{if(y)return;g({status:"info",title:`Preparing ${e.toUpperCase()}`,description:x("store.renderingDocument"),duration:2e3});const n=!1!==t?N:void 0;await b(a.id,{format:e,title:a.name||"document",useDefaultTemplate:t,templateObjectId:n})};return e("div",{className:"h-[41px] text-lg font-semibold flex justify-between items-center px-2",children:t("div",{className:"flex items-center gap-2",children:[i&&t(n,{children:[e(r,{variant:"ghost",size:"sm",title:"Copy text",onClick:()=>o(i,"text"),children:e(nt,{className:"size-4"})}),u&&c&&e(sf,{permission:fr.content_write,variant:"ghost",size:"sm",onClick:c,title:x("store.editText"),className:"flex items-center gap-2",children:e(Un,{className:"size-4"})})]}),y?e(r,{variant:"ghost",size:"sm",disabled:!0,className:"flex items-center gap-2",alt:"download",children:e(p,{size:"sm"})}):t(d,{trigger:e(r,{variant:"ghost",size:"sm",disabled:!s,className:"flex items-center gap-2",alt:"download",children:e(rt,{className:"size-4"})}),children:[i&&e(m,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),!i)return;let t="txt",n="text/plain";"xml"===C?(t="xml",n="text/xml"):("markdown"===C||k)&&(t="md",n="text/markdown");const r=new Blob([i],{type:n}),s=URL.createObjectURL(r),o=`${a.name||"document"}.${t}`,l=document.createElement("a");l.href=s,l.download=o,l.style.display="none",setTimeout(()=>{l.click(),URL.revokeObjectURL(s)},0)},children:t("div",{className:"flex items-center gap-2",children:[e(rt,{className:"size-4"}),"Download Text"]})}),k&&s&&t(n,{children:[e(m,{onClick:()=>_(Zn.docx),children:t("div",{className:"flex items-center gap-2",children:[e(rt,{className:"size-4"}),"Export as DOCX"]})}),e(m,{onClick:()=>_(Zn.pdf,!1),children:t("div",{className:"flex items-center gap-2",children:[e(rt,{className:"size-4"}),"Export as PDF"]})}),e(m,{onClick:()=>_(Zn.pdf),children:t("div",{className:"flex items-center gap-2",children:[e(rt,{className:"size-4"}),"Export as Branded PDF"]})})]})]})]})})}!function(e){e.Text="text",e.Image="image",e.Video="video",e.Audio="audio",e.Pdf="pdf",e.Transcript="transcript"}(gf||(gf={}));const wf=We(({object:r,text:a,isTextCropped:s,textContainerRef:i})=>{const{t:o}=Ke(),l=pf(r?.status),c="xml"===hf(r),d=r.content?.type&&("text/markdown"===r.content.type||"text/plain"===r.content.type),m=!c&&(d||function(e){return!!e&&(e.includes("\n# ")||e.includes("\n## ")||e.includes("\n### ")||e.includes("\n* ")||e.includes("\n- ")||e.includes("\n+ ")||e.includes("![")||e.includes("]("))}(a)),u={id:r.id,title:r.name,fileName:r.content?.name||r.name,contentType:c?"text/xml":m?"text/markdown":r.content?.type,content:a,sourcePath:r.content?.source};return a?t(n,{children:[s&&e("div",{className:"px-2 py-2 bg-attention/10 border-s-4 border-attention mx-2 mb-2 rounded",children:t("div",{className:"flex items-center gap-2 text-attention",children:[e(Lt,{className:"size-4"}),e("span",{className:"text-sm font-semibold",children:o("store.showingFirst128K")})]})}),e("div",{className:"max-w-7xl px-2 h-full overflow-auto",ref:i,children:e(od,{source:u,className:"h-full",bodyClassName:"overflow-auto",markdownComponents:{a:({node:t,...n})=>{const r=n.href||"";return r.includes("/store/objects/")?e(Fr,{topLevelNav:!0,href:r,className:"text-info",children:n.children}):e("a",{...n,target:"_blank",rel:"noopener noreferrer"})},p:({node:t,...n})=>e("p",{...n,className:"my-0"}),pre:({node:t,...n})=>e("pre",{...n,className:"my-2 p-2 rounded"}),code:({node:t,className:n,children:r,...a})=>{const s=/language-(\w+)/.exec(n||"");return e("code",{...a,className:s?"text-muted":"px-1.5 py-0.5 rounded",children:r})},h1:({node:t,...n})=>e("h1",{...n,className:"font-bold text-2xl my-2"}),h2:({node:t,...n})=>e("h2",{...n,className:"font-bold text-xl my-2"}),h3:({node:t,...n})=>e("h3",{...n,className:"font-bold text-lg my-2"}),li:({node:t,...n})=>e("li",{...n})}})})]}):e("div",{className:"px-2",children:e("div",{children:l?"Extracting content...":"No content"})})});function Nf({object:n,handleCopyContent:a}){const{t:s}=Ke(),i=n.transcript,o=i?.text,l=i?.segments,c=o||(l?l.map(e=>e.text).join(" "):""),d=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`:`${n}:${r.toString().padStart(2,"0")}`};return t("div",{className:"flex flex-col h-full",children:[e("div",{className:"flex justify-end items-center px-2 mb-2",children:c&&e(r,{variant:"ghost",size:"sm",title:"Copy transcript",onClick:()=>a(c,"text"),children:e(nt,{className:"size-4"})})}),e("div",{className:"h-full} overflow-auto px-2",children:l&&l.length>0?e("div",{className:"space-y-2",children:l.map((n,r)=>t("div",{className:"flex gap-3 text-sm",children:[t("span",{className:"text-muted font-mono text-xs shrink-0 pt-0.5",children:[d(n.start),n.end&&` - ${d(n.end)}`]}),e("span",{className:"flex-1",children:n.text})]},r))}):o?e("pre",{className:"text-wrap bg-muted text-muted p-2 whitespace-pre-wrap",children:o}):e("div",{className:"text-muted",children:s("store.noTranscriptAvailable")})})]})}function kf({object:a}){const[s,i]=Le(!1),o=hf(a);return"xml"===o||"markdown"===o?t(n,{children:[e(r,{variant:"ghost",size:"sm",onClick:()=>i(!0),title:"Side by side view",children:e(Wn,{className:"size-4"})}),s&&e(oe,{children:e(ph,{objectId:a.id,onClose:()=>i(!1)})})]}):null}function Cf({object:t,pdfRendition:n,officePdfUrl:a}){const{client:s}=Ze(),i=l(),{t:o}=Ke(),[c,d]=Le(!1);return e("div",{className:"flex items-center gap-2",children:e(r,{variant:"ghost",size:"sm",onClick:async()=>{d(!0);try{let e=a;if(!e&&n?.content?.source){e=(await s.files.getDownloadUrl(n.content.source,`${t.name||"document"}.pdf`,"attachment")).url}e&&window.open(e,"_blank")}catch(e){console.error("Failed to download PDF:",e),i({status:"error",title:o("store.downloadFailed"),description:o("store.failedToDownloadPdf"),duration:5e3})}finally{d(!1)}},disabled:c,title:"Download PDF",children:c?e(p,{size:"sm"}):e(rt,{className:"size-4"})})})}function _f({object:t}){const n={id:t.id,title:t.name,fileName:t.content?.name||t.name,contentType:t.content?.type,sourcePath:t.content?.source};return e("div",{className:"h-full",children:e(od,{source:n,className:"h-full"})})}function Sf({object:n,pdfRendition:r,officePdfUrl:a,converters:s,officePdfConverting:i,officePdfError:o}){const{t:l}=Ke();if(i)return t("div",{className:"flex flex-col justify-center items-center flex-1 gap-2",children:[e(p,{size:"lg"}),e("span",{className:"text-muted",children:l("store.convertingToPdf")})]});if(o)return t("div",{className:"flex flex-col justify-center items-center flex-1 gap-2 text-destructive",children:[e(Lt,{className:"size-8"}),e("span",{children:o})]});if(r?.content?.source){const t={id:n.id,title:n.name,fileName:`${n.name||"document"}.pdf`,contentType:"application/pdf",sourcePath:r.content.source};return e("div",{className:"h-full",children:e(od,{source:t,className:"h-full"})})}if(a){const t={id:n.id,title:n.name,fileName:`${n.name||"document"}.pdf`,contentType:"application/pdf",url:a};return e("div",{className:"h-full",children:e(od,{source:t,className:"h-full"})})}const c={id:n.id,title:n.name,fileName:n.content?.name||n.name,contentType:n.content?.type,sourcePath:n.content?.source};return e("div",{className:"h-full",children:e(od,{source:c,converters:s,className:"h-full"})})}function Tf({progress:r,status:a,outputFormat:s}){const{t:i}=Ke(),o=Iu(a),l=zu(a),c="xml"===s,d=null==r?.percent||Number.isNaN(r.percent)?0:r.percent;return t("div",{className:"px-4 py-4",children:[r&&t("div",{className:"space-y-2",children:[t("div",{className:"flex flex-col gap-1",children:[e(If,{name:c?"Analyze Layouts":"Analyze Page",progress:r.pages}),c&&t(n,{children:[e(If,{name:"Extract Tables",progress:r.tables}),e(If,{name:"Describe Images",progress:r.images}),e(If,{name:"Process Visually",progress:r.visuals})]})]}),t("div",{className:"pt-2 text-sm text-muted",children:["Progress: ",d,"%",e("span",{className:"px-2",children:"•"}),e("span",{className:o,children:l}),r.started_at&&t(n,{children:[e("span",{className:"px-2",children:"•"}),t("span",{children:[((Date.now()-r.started_at)/1e3).toFixed(0)," sec. elapsed"]})]})]}),e(Zr,{percent:d})]}),!r&&t("div",{className:"flex items-center gap-2 text-muted",children:[e(p,{size:"sm"}),e("span",{children:i("store.loadingProcessingStatus")})]})]})}function If({name:e,progress:n}){return t("div",{className:"flex gap-2 text-sm",children:[t("span",{className:"text-muted min-w-36",children:[e,":"]}),t("span",{children:[n.processed," of ",n.total]})]})}const zf=Object.values(gr),jf=Object.values(xr);function Rf({onChange:n,isLoading:s,refresh:i,searchTypes:o}){const{client:c,project:d}=Ze(),{t:m}=Ke(),u=l(),[p,h]=Le(void 0),[f,g]=Le(void 0),y=!(!d||!f?.embeddings.text&&!f?.embeddings.image),[w,N]=Le(void 0),k=Me(i),C=Me(void 0),[_,S]=Le(!1),[T,I]=Le(o||zf),[z,j]=Le(100);Ve(()=>{o&&I(o)},[o]);const R={};let P=!1,A=!1;T.forEach(e=>{e===gr.full_text?P=!0:A=!0,jf.includes(e)&&(R[e]=!0)}),Ve(()=>{k.current!==i&&(k.current=i,h(void 0),N(void 0))}),Ve(()=>{d&&c.projects.retrieve(d.id).then(e=>{g(e.configuration)})},[c.projects.retrieve,d]),Ve(()=>{w&&u({title:w,status:"success",duration:2e3})},[w,u]),Ve(()=>{const e=C.current;C.current=p,!e||p&&0!==p.length||n(void 0)},[n,p]);const D=()=>{if(!y||!p)return;n({vector:A?{text:p,config:R}:void 0,full_text:P?p:void 0,limit:z}),N("Searching...")},$=e=>t=>{I(t?t=>Array.from(new Set([...t,e])):t=>t.filter(t=>t!==e))};return t("div",{className:"flex gap-1 items-center",children:[e(a,{placeholder:m("store.searchPlaceholder"),value:p,onChange:h,onKeyDown:e=>{"Enter"===e.key&&D()},className:"min-w-[200px]"}),e(r,{variant:"ghost",onClick:()=>S(!0),alt:m("store.semanticSearchSettings"),className:"ms-1",children:e(Vn,{size:18})}),t(x,{isOpen:_,onClose:()=>S(!1),children:[e(v,{children:m("store.searchTypes")}),e(b,{children:t("div",{className:"flex flex-col gap-2",children:[t("div",{className:"flex items-center gap-2",children:[e(le,{id:"search-type-full_text",checked:T.includes(gr.full_text),onCheckedChange:$(gr.full_text)}),e(ce,{htmlFor:"search-type-full_text",children:m("store.fullText")})]}),e("div",{className:"font-semibold mt-2 mb-1",children:m("store.embeddings")}),jf.map(n=>t("div",{className:"flex items-center gap-2",children:[e(le,{id:`search-type-${n}`,checked:T.includes(n),onCheckedChange:$(n)}),e(ce,{htmlFor:`search-type-${n}`,children:n.charAt(0).toUpperCase()+n.slice(1)})]},n)),t("div",{className:"mt-3",children:[e("span",{className:"me-2",children:m("store.limit")}),e(de,{type:"number",min:1,value:z,onChange:e=>j(Number(e??100)),style:{width:80}})]})]})}),e(K,{children:e(r,{variant:"outline",onClick:()=>S(!1),children:m("store.close")})})]}),e(r,{variant:"secondary",isLoading:s,onClick:D,isDisabled:!y,alt:m("store.semanticSearch"),children:m("store.search")})]})}const Pf=[{name:"ID",field:"id",type:"objectId?slice=-7"},{name:"Name",field:".",type:"objectName"},{name:"Type",field:"type.name",type:"string"},{name:"Status",field:"status",type:"string"},{name:"Updated At",field:"updated_at",type:"date"}];function Af({onUploadDone:t=async()=>{},layout:n}){const r=qu(),a=l(),{t:s}=Ke(),i=ep(Ue(async e=>{await t(e),setTimeout(()=>{console.log("Delayed refresh after upload to ensure backend consistency"),r.search().then(e=>{e&&a({title:s("store.documentListRefreshed"),description:s("store.documentListRefreshedDesc"),status:"info",duration:3e3})}).catch(e=>{console.error("Failed to refresh search results:",e)})},1e3)},[t,r,s,a])),o=Ue((e,t)=>{const n=r.collectionId;return i(e,t,n)},[r,i]);return e(Df,{layout:n,onUpload:o})}function Df({layout:n,onUpload:r,allowFilter:a=!0,allowSearch:s=!0}){const{t:i}=Ke(),o=qu(),[l,c]=Le(!1),[d,m]=Le(null),{registry:u}=Sm(),{search:h,isLoading:g,error:x,objects:v,hasMore:b}=Gu(),[y,w]=Le(u?n||(N=u,((k=h.query.type)?N.getTypeLayout(k):Pf)??Pf):Pf);var N,k;Ve(()=>{n&&w(n)},[n]);const[C,_]=Le(0),[S,T]=Le(0),[I,z]=Le("grid"===localStorage.getItem(op.LAST_DISPLAYED_VIEW)),[j,R]=Le([]),P=Me(null),A=Me(null),D=Ue((e,t)=>{c(!1),e.catch(e=>{console.error(t,e)}).finally(()=>{c(!0)})},[]);Ve(()=>{let e=!1;return h.initialized?(c(!0),()=>{e=!0}):(c(!1),T(0),h.search().catch(t=>{e||console.error("Initial search failed:",t)}).finally(()=>{e||c(!0)}),()=>{e=!0})},[h]),Ve(()=>{v.length<S&&T(v.length)},[v.length,S]),Y(P,()=>{l&&v.length>0&&v.length!==S&&(c(!1),h.loadMore().catch(e=>{console.error("Failed to load more search results:",e)}).finally(()=>{T(v.length),c(!0)}))},{deps:[l,v.length]});const $=Hu(),E=qu(),L=Pm($),F=Am(E),O=new URL(window.location.href),M=O.searchParams.get("filters");if(M)try{const e=M.split(";"),t=e.filter(e=>{const[t]=e.split(":"),n=decodeURIComponent(t);return"start"!==n&&"end"!==n});if(t.length!==e.length){const e=t.length>0?t.join(";"):"";e?O.searchParams.set("filters",e):O.searchParams.delete("filters"),window.history.replaceState(window.history.state||{},"",O.toString())}}catch(x){console.error("Failed to clean start/end filters from URL:",x)}const U=Or();return t("div",{className:"flex flex-col gap-y-2 flex-1 min-h-0 ",children:[e(Ef,{object:d,onClose:()=>m(null)}),x&&e(f,{title:i("store.error"),children:x.message}),e($f,{isLoading:g,refreshTrigger:C,allowFilter:a,allowSearch:s,filterGroups:L,filters:j,handleFilterChange:e=>{const t="function"==typeof e?e(j):e;R(t),F(t)},handleVectorSearch:e=>{if(e?.vector){if(h.query.vector=e.vector,h.query.full_text=e.full_text,h.query.weights=e.weights,h.query.score_aggregation=e.score_aggregation,h.query.dynamic_scaling=e.dynamic_scaling,void 0!==e.limit&&(h.limit=e.limit,h.query.limit=e.limit),!y.find(e=>"Search Score"===e.name)){const e=[...y,{name:"Search Score",field:"score",render:e=>"number"==typeof e.score?e.score.toFixed(4):"0.0000"}];w(e)}D(h.search(),"Vector search failed:")}else e?.full_text?(h.query.full_text=e.full_text,void 0!==e.limit&&(h.limit=e.limit,h.query.limit=e.limit),D(h.search(),"Text search failed:")):void 0===e&&l&&(delete h.query.vector,delete h.query.full_text,D(h.search(),"Search reset failed:"))},handleRefetch:()=>{D(h.search(),"Search refresh failed:")},setIsGridView:z}),e("div",{className:"flex flex-col w-full flex-1 min-h-0 border rounded-md mb-2",children:t("div",{ref:A,className:"flex-1 min-h-0 overflow-y-auto",children:[e(np,{objects:v,isLoading:!v.length&&g,layout:y,onRowClick:e=>{U(`/objects/${e.id}`)},previewObject:e=>{const t=v.find(t=>t.id===e)||null;m(t)},selectedObject:d,onUpload:r,isGridView:I,collectionId:o.collectionId}),e("div",b?{ref:P,className:"w-full flex justify-center",children:e(p,{size:"xl"})}:{className:"text-muted text-center text-sm py-1",children:`All ${v.length} objects loaded.`})]})})]})}function $f(n){const{t:a}=Ke(),{isLoading:s,refreshTrigger:i,allowFilter:o,allowSearch:l,filterGroups:c,filters:d,handleFilterChange:m,handleVectorSearch:u,handleRefetch:p,setIsGridView:f}=n;return t("div",{className:"sticky top-0 z-10 bg-background py-2 flex justify-between items-center",children:[o?e(D,{filterGroups:c,filters:d,setFilters:m,children:t("div",{children:[e("div",{className:"flex flex-row gap-4 items-center justify-between w-full",children:t("div",{className:"flex gap-2 items-center w-2/3",children:[l&&e(Rf,{onChange:u,isLoading:s,refresh:i,className:"w-full"}),e($,{})]})}),t("div",{className:"flex gap-2 items-center pt-2",children:[e(E,{}),e(L,{})]})]})}):e("div",{className:"flex flex-row gap-4 items-center justify-between w-full",children:e("div",{className:"flex gap-2 items-center w-2/3",children:l&&e(Rf,{onChange:u,isLoading:s,refresh:i})})}),t("div",{className:"flex gap-1 items-center",children:[e(h,{description:a("store.refresh"),asChild:!0,size:"xs",placement:"top",children:e(r,{variant:"outline",onClick:p,"aria-label":a("store.refresh"),children:e(Tn,{size:16})})}),e(op,{onUpdate:f})]})]})}function Ef({object:n,onClose:a}){const{store:s}=Ze(),i=l(),o=Or(),{downloadFromContentSource:c}=zo({client:s,toast:i}),d=n?.content?.source,m="string"==typeof n?.properties?.title?n.properties.title:n?.name;return n?t(me,{title:m,isOpen:!0,onClose:a,children:[t("div",{className:"flex items-center gap-x-2",children:[e(r,{variant:"ghost",size:"sm",title:"Open Object",onClick:()=>o(`/objects/${n.id}`),children:e(_t,{className:"size-4"})}),d&&e(r,{variant:"ghost",size:"sm",title:"Download",onClick:()=>c(d,n.name||n.content?.name),children:e(rt,{className:"size-4"})})]}),e(ue,{className:"my-2"}),e("div",{className:"pt-2",children:e(xf,{object:n,loadText:!0},n.id)})]}):null}const Lf=[{name:"ID",field:"id",type:"objectId?slice=-7"},{name:"Name",field:".",type:"objectName"},{name:"Revision",field:".",type:"revision"},{name:"Type",field:"type.name",type:"string"},{name:"Status",field:"status",type:"string"},{name:"Updated At",field:"updated_at",type:"date"}];function Ff({collection:t}){const n=l(),{client:r}=Ze(),{registry:a}=Sm(),s=function(e,t){let n=e.table_layout;if(n&&n.length>0)return n;e.type&&t&&(n=t?.getTypeLayout(vr(e.type)));return n&&n.length>0?n:Lf}(t,a);return e("div",{className:"flex flex-col h-full",children:t.dynamic?e(Df,{layout:s}):e(Af,{onUploadDone:async e=>{e.length>0&&await r.store.collections.addMembers(t.id,e).catch(e=>{n({title:"Failed to add objects to collection",description:e.message,status:"error"})})},layout:s})})}function Of({className:n,defaultValue:r,onChange:a,isClearable:s,multiple:i}){const{t:o}=Ke(),{registry:l}=Sm(),[c,d]=Le(!1),m=n=>null===n?o("store.none"):t("div",{children:[e("div",{className:"text-sm",children:n.name}),e("div",{className:"text-xs text-muted truncate",children:n.description})]}),[u,p]=Le(),[h,f]=Le([]);Ve(()=>{if(!c&&(d(!0),l&&r)){if(i&&Array.isArray(r)){const e=l.types.filter(e=>r.includes(e.id));f(e)}const e=l.types.find(e=>e.id===r);e&&p(e)}},[c,l,r,i]);const g=e=>{f(e),a(e)};return e("div",i?{className:"flex flex-col gap-4 content-between",children:e(O,{options:l?.types||[],value:h,onChange:g,placeholder:o("store.chooseContentTypes"),optionLabel:m,className:n||"text-sm bg-background",filterBy:"name",isClearable:s||!1,multiple:!0})}:{className:"flex flex-col gap-4 content-between",children:e(O,{options:l?.types||[],value:u,onChange:e=>{p(e||void 0),a(e)},placeholder:o("store.chooseContentType"),optionLabel:m,className:n||"text-sm bg-background",filterBy:"name",isClearable:s||!1})})}function Mf({onClose:s,redirect:i=!0,onAddToCollection:o}){const c=Or(),d=l(),{t:m}=Ke(),[u,p]=Le(!1),{client:h}=Ze(),[f,x]=Le({dynamic:!1,name:"",description:""});function v(e,t){x({...f,[e]:t})}return t(n,{children:[e(b,{children:t("form",{onSubmit:e=>e.preventDefault(),children:[e(ae,{label:m("type.name"),required:!0,children:e(a,{type:"text",value:f.name||"",onChange:e=>v("name",e)})}),e(ae,{label:m("type.description"),className:"mt-2",children:e(Q,{value:f.description||"",onChange:e=>v("description",e.target.value)})}),e(ae,{label:m("store.dynamicCollection"),className:"mt-2",direction:"row",description:m("store.dynamicCollectionDescription"),children:e(g,{value:f.dynamic||!1,onChange:e=>v("dynamic",e)})}),!f.dynamic&&e(ae,{label:m("store.allowedContentTypes"),className:"mt-4",description:m("store.allowedContentTypesOptionalDescription"),children:e(Of,{defaultValue:f.allowed_types||null,onChange:e=>{Array.isArray(e)?v("allowed_types",e.map(e=>e.id)):v("allowed_types",e?[e.id]:[])},isClearable:!0,multiple:!0})}),e(ae,{label:m("store.contentType"),className:"mt-2",description:m("store.typeDescription"),children:e(Of,{defaultValue:f.type||null,onChange:e=>{Array.isArray(e)?v("type",e.length>0?e[0].id:null):v("type",e?.id||null)},isClearable:!0})})]})}),e(K,{children:e(r,{isDisabled:u,onClick:()=>{f?.name?.trim()?(f.name=f.name.trim(),f.description&&(f.description=f.description.trim()),null==f.dynamic&&(f.dynamic=!1),p(!0),h.store.collections.create(f).then(e=>{s(),d({title:m("store.collectionCreated"),description:`Collection "${e.name}" created successfully`,status:"success",duration:3e3}),i&&c(`/collections/${e.id}`),o&&o(e.id)}).catch(e=>{d({title:m("store.failedToCreateCollection"),description:e.message,status:"error",duration:5e3})}).finally(()=>p(!1))):d({title:m("type.nameRequired"),description:m("store.pleaseProvideName"),status:"error",duration:5e3})},children:m("store.createCollection")})})]})}function Uf({isOpen:n,onClose:r}){const{t:a}=Ke();return t(x,{onClose:r,isOpen:n,children:[e(v,{children:a("store.createACollection")}),e(Mf,{onClose:r})]})}function Wf(){const{client:a}=Ze(),s=l(),{t:i}=Ke(),[o,c]=Le(),[d,m]=Le(!0),[u,p]=Le(!1),{data:h,error:g,refetch:x}=z(()=>a.store.collections.search({}),[]);if(Ve(()=>{(h||g)&&m(!1)},[h,g]),g)return e(f,{title:i("store.collectionFetchFailed"),children:j(g)});return t(n,{children:[h&&(h.length>0?t(I,{className:"w-full",children:[e("thead",{children:t("tr",{children:[e("th",{children:i("type.name")}),e("th",{children:i("type.type")}),e("th",{children:i("store.created")}),e("th",{})]})}),e(q,{columns:4,isLoading:d,children:h.map(n=>t(pe,{children:[e("td",{children:t("div",{className:"flex items-center gap-2",children:[e(Vf,{isDynamic:n.dynamic}),e(Fr,{href:`/collections/${n.id}`,children:n.name})]})}),e("td",{children:n.type?.name||"-"}),e("td",{children:Er(n.created_at).fromNow()}),e("td",{className:"text-end",children:e(r,{variant:"destructive",size:"sm",onClick:()=>c(n.id),children:e(qn,{className:"size-4"})})})]},n.id))})]}):e(he,{title:i("store.noCollections"),buttonLabel:i("store.newCollections"),onClick:()=>p(!0),children:i("store.getStartedCollections")})),e(Uf,{isOpen:u,onClose:()=>p(!1)}),e(fe,{isOpen:!!o,title:i("store.deleteCollection"),content:i("store.areYouSureDeleteCollection"),onConfirm:async()=>{if(o)try{await a.store.collections.delete(o),s({title:i("store.collectionDeleted"),status:"success",duration:3e3}),x()}catch(e){console.error("Failed to delete collection:",e),s({title:i("store.failedToDeleteCollection"),description:j(e),status:"error",duration:5e3})}finally{c(void 0)}},onCancel:()=>c(void 0)})]})}function Vf({isDynamic:t}){const{t:n}=Ke(),r=n(t?"store.dynamicCollection":"store.staticCollection"),a=e(t?Wt:Bn,{className:"size-5"});return e(h,{description:r,className:"me-2",children:a})}function Bf({objects:n,isLoading:r}){const{t:a}=Ke(),s=Or();return t(I,{className:"w-full",children:[e(B,{children:t("tr",{children:[e("th",{children:a("store.name")}),e("th",{children:a("store.strictMode")}),e("th",{children:a("store.semanticChunking")}),e("th",{children:a("store.updatedAt")})]})}),e(q,{isLoading:r&&(!n||0===n.length),columns:4,children:n?.map(n=>t("tr",{onClick:()=>s(`/types/${n.id}`),className:"cursor-pointer hover:bg-muted",children:[e("td",{children:n.name}),e("td",{children:n.strict_mode?"Yes":"No"}),e("td",{children:n.is_chunkable?"Yes":"No"}),e("td",{children:Er(n.updated_at).fromNow()})]},n.id))})]})}function qf({title:n,isOpen:s,onClose:i,okLabel:o,initialPayload:c,isLoading:d}){const{t:m}=Ke(),u=l(),[p,h]=Le(c?.name),[f,g]=Le(c?.description),y=c?.strict_mode??!1;return t(x,{isOpen:s,onClose:()=>i(),children:[e(v,{children:n}),e(b,{className:"pt-0",children:t("div",{className:"h-full flex flex-col gap-4 content-between",children:[t("div",{children:[e("div",{className:"block text-sm font-medium text-muted",children:m("type.name")}),e(a,{value:p,onChange:h})]}),t("div",{children:[e("div",{className:"block text-sm font-medium text-muted",children:m("type.description")}),e(Q,{value:f,onChange:e=>g(e.target.value),minLines:5})]})]})}),e(K,{children:t("div",{className:"flex justify-end gap-4",children:[e(r,{variant:"secondary",onClick:()=>i(),children:m("modal.cancel")}),e(r,{variant:"primary",onClick:()=>(()=>{if(!p)return void u({status:"error",title:m("type.nameRequired"),duration:5e3});i({name:p,description:f,strict_mode:y}).then(()=>i())})(),isLoading:d,children:o})]})})]})}Er.extend(ca),Er.extend(ca);class Hf{client;limit;result=new H({objects:[],isLoading:!1});query={};constructor(e,t=100){this.client=e,this.limit=t}get objects(){return this.result.value.objects}get error(){return this.result.value.error}get isRunning(){return this.result.value.isLoading}getFilterValue(e){return this.query[e]}setFilterValue(e,t){this.query[e]=t,this.search()}reset(e=!1){this.result.value={objects:[],isLoading:e}}_updateRunningState(e){const t=this.result.value;this.result.value={objects:t.objects,isLoading:e,error:t.error}}async _search(e=!1){if(this.isRunning)return Promise.resolve(!1);this.result.value={isLoading:!0,objects:e?this.objects:[]};const t=this.limit,n=this.objects.length;return this.client.types.list({limit:t,offset:n,query:this.query}).then(async e=>(this.result.value={isLoading:!1,objects:this.objects.concat(e)},!0)).catch(e=>{throw this.result.value={error:e,isLoading:!1,objects:this.objects},e})}search(){return this.isRunning?Promise.resolve(!1):this._search(!1)}loadMore(){return this.isRunning?Promise.resolve(!1):this._search(!0)}}const Gf=Fe(void 0);function Jf(){return Oe(Gf)}function Kf(){const e=Jf();return{...G(e.result),search:e}}function Yf(){return Jf().objects.length}var Qf;function Zf({isDirty:r=!1}){const{store:s}=Ze(),{reload:i}=Sm(),{t:o}=Ke(),c=l(),[d,m]=Le(!1),{search:u,isLoading:p,error:h,objects:g}=Kf(),[x,v]=Le(""),b=ge(x,500),y=Me(null);Y(y,()=>{d&&u.loadMore()},{deps:[d,u]}),Ve(()=>{u.search().then(()=>m(!0))},[u]),Ve(()=>{u.query.name=b,u.search().then(()=>m(!0))},[b,u]);const[w,N]=Le(void 0);Ve(()=>{u.query.chunkable=w?"Yes"===w:void 0,u.search().then(()=>m(!0))},[w,u]),Ve(()=>{r&&d&&u.search().then(()=>m(!0))},[r,d,u]);const[k,C]=Le(!1);if(h)return e(f,{title:o("store.failedToFetchTypes"),children:h.message});return t("div",{className:"flex flex-col flex-1 min-h-0",children:[t("div",{className:"flex flex-shrink-0 gap-4",children:[e(a,{placeholder:o("store.filterByName"),value:x,onChange:v}),e(O,{className:"w-60",isClearable:!0,options:Object.values(Qf),value:w,onChange:e=>{N(e)},placeholder:o("store.isChunkable")})]}),e("div",{className:"flex flex-col w-full flex-1 min-h-0 border rounded-md my-2",children:t("div",{className:"flex-1 min-h-0 overflow-y-auto",children:[p||0!==g?.length?t(n,{children:[e(Bf,{objects:g,isLoading:p}),e("div",{ref:y,className:"h-4 w-full"})]}):e(he,{title:o("store.noType"),buttonLabel:o("store.createType"),onClick:()=>{C(!0)},children:o("store.getStartedTypes")}),e(qf,{okLabel:"Create",title:o("store.createType"),isOpen:k,onClose:async e=>e?s.types.create(e).then(async()=>{c({status:"success",title:o("store.typeCreated"),duration:2e3}),i(),u.search().then(()=>m(!0))}).catch(e=>{c({status:"error",title:o("store.errorCreatingType"),description:e.message,duration:5e3})}):(C(!1),Promise.resolve())})]})})]})}function Xf({objectType:n,onSchemaUpdate:a,readonly:s=!1}){const{store:i}=Ze(),{t:o}=Ke(),c=l(),{theme:d}=ie(),[m,u]=Le(!1),p=Xr(n.object_schema),h=Me(void 0),[f,g]=Le(!1),x=Ee(()=>function(e){if(!e)return"";return JSON.stringify(e,null,2)}(p.schema),[p]),v=()=>{if(h.current){const e=h.current.getValue();try{const t=function(e){if(!e?.trim())return;return JSON.parse(e.trim())}(e);eg(t),p.replaceSchema(t)}catch(e){return c({status:"error",title:o("store.invalidJsonSchema"),description:j(e),duration:5e3}),!1}}return!0},b=t("div",{className:"flex gap-2 items-center",children:[e("div",{className:"text-base font-semibold",children:o("store.schemaEditor")}),!s&&e("div",{children:e(r,{variant:"outline",size:"sm",onClick:()=>{f&&!v()||g(e=>!e)},children:o(f?"store.editSchema":"store.editJson")})})]});return e(xe,{title:b,className:"bg-background! h-full",action:s?void 0:e(r,{isLoading:m,variant:"outline",size:"sm",onClick:()=>{f&&!v()||(u(!0),i.types.update(n.id,{object_schema:p.schema}).then(()=>{a(p),c({status:"success",title:o("store.schemaUpdated"),description:o("store.schemaUpdatedSuccess"),duration:2e3})}).catch(e=>{c({status:"error",title:o("store.failedToUpdateSchema"),description:e.message,duration:5e3})}).finally(()=>{u(!1)}))},children:o("modal.saveChanges")}),children:f?e(Yr,{value:x,language:"json",editorRef:h,theme:"dark"===d?"vs-dark":"vs",options:{readOnly:s}}):e(ea,{schema:p,readonly:s})})}!function(e){e.true="Yes",e.false="No"}(Qf||(Qf={}));const eg=e=>{try{new oa({strict:!1}).compile(e)}catch(e){throw new Error(`Invalid JSON Schema definition: ${j(e)}`,{cause:e})}};function tg({isOpen:n,onClose:a,title:s,children:i,initialSelectedType:o=null,allowNone:l=!0}){const{t:c}=Ke(),d=s??c("store.selectContentType"),{registry:m}=Sm(),[u,p]=Le(o),f=m?.types||[],g=()=>{a(void 0)};return t(x,{isOpen:n,onClose:g,className:"w-full max-w-xl mx-auto",children:[e(v,{children:d}),t(b,{children:[i,t("div",{className:"mb-4 mt-4",children:[t("div",{className:"block text-sm font-medium mb-2",children:[c("store.contentType")," ",l&&e("span",{className:"text-gray-500 font-normal",children:c("store.optional")})]}),e(O,l?{options:f,value:u,optionLabel:e=>e?e.name:c("store.selectContentTypeLabel"),placeholder:c("store.selectContentTypeAuto"),onChange:e=>p(e||null),filterBy:"name",isClearable:!0}:{options:f,value:u,optionLabel:e=>e?e.name:c("store.selectContentTypeLabel"),placeholder:c("store.selectContentTypeLabel"),onChange:e=>p(e||null),filterBy:"name"})]}),!u&&t("div",{className:"flex items-center text-attention",children:[e(vn,{className:"size-4 me-1"}),c("store.automaticTypeDetection"),e(h,{description:c("store.automaticTypeDetectionDescription"),placement:"top",size:"xs",children:e(Dt,{className:"size-3 ms-2"})})]})]}),t(K,{children:[e(r,{variant:"ghost",onClick:g,alt:c("modal.cancel"),children:c("modal.cancel")}),e(r,{onClick:()=>{a(u?.id??null),p(null)},alt:c("store.confirmSelection"),children:c("modal.confirm")})]})]})}function ng({children:t,limit:n,name:r,chunkable:a}){const{store:s}=Ze(),i=Ee(()=>{const e=new Hf(s,n);return e.query.name=r,e.query.chunkable=a,e},[a,n,r,s]);return e(Gf.Provider,{value:i,children:t})}function rg({objectType:t,onLayoutUpdate:n,readonly:a=!1}){const s=l(),{theme:i}=ie(),{t:o}=Ke(),[c,d]=Le(!1),{store:m}=Ze(),u=Me(void 0),p=Ee(()=>ag(t.table_layout),[t.table_layout]),h=(e,t)=>{s({status:"error",title:e,description:t,duration:5e3})};return e(xe,{title:"Table Layout Editor",className:"bg-background! h-full",action:a?void 0:e(r,{isLoading:c,variant:"outline",size:"sm",onClick:()=>{if(!u.current)return;const e=u.current.getValue();let r;if(e)try{r=JSON.parse(e)}catch(e){return h("Invalid JSON",j(e))}else r=null;return Array.isArray(r)?r.some(e=>!e?.name||!e.field)?h("Invalid JSON","A table layout entry must contain the following properties:] {field, name, converter?}"):(d(!0),void m.types.update(t.id,{table_layout:r}).then(e=>{s({status:"success",title:o("store.tableLayoutUpdated"),description:o("store.tableLayoutUpdatedDesc"),duration:2e3}),n(e.table_layout)}).catch(e=>{s({status:"error",title:o("store.failedToUpdateTableLayout"),description:e.message,duration:5e3})}).finally(()=>{d(!1)})):h("Invalid JSON","The table layout must be an array")},children:o("store.saveChanges")}),children:e("div",{className:"h-full",children:e(Yr,{value:p,language:"json",editorRef:u,theme:"dark"===i?"vs-dark":"vs",options:{readOnly:a}})})})}function ag(e){return e?JSON.stringify(e,null,2):"[\n\n]"}function sg({collection:t}){const{client:n}=Ze(),{t:a}=Ke(),[s,i]=Le(void 0),[o,c]=Le(t.shared_properties||[]),d=l();Ve(()=>{t.type?.id&&n.store.types.retrieve(t.type.id).then(i)},[n.store.types.retrieve,t.type?.id]);const m=s?Object.keys(s.object_schema?.properties||{}):[];return e(xe,{title:a("store.sharedProperties"),description:a("store.sharedPropertiesDescription"),action:e(r,{size:"lg",isLoading:!1,onClick:()=>{n.store.collections.update(t.id,{shared_properties:o}).then(()=>{d({title:a("store.updatedSharedProperties"),status:"success"})}).catch(e=>{d({title:a("store.failedToUpdateSharedProperties"),description:e.message,status:"error"})})},children:a("modal.save")}),children:e("div",{className:"",children:e(ve,{value:o,onChange:e=>{c(e)},options:m,placeholder:a("store.selectPropertiesToShare")})})})}function ig({collection:t}){const{client:n}=Ze(),{t:r}=Ke(),[a,s]=Le(t.skip_head_sync??!1),[i,o]=Le(!1),c=l();return e(xe,{title:r("store.syncMemberHeads"),description:r("store.syncMemberHeadsDescription"),children:e(g,{disabled:i,value:!a,onChange:e=>{const a=!e;o(!0),n.store.collections.update(t.id,{skip_head_sync:a}).then(()=>{c({title:r("store.updatedSkipHeadSync"),status:"success"}),s(a)}).catch(e=>{c({title:r("store.failedToUpdateSkipHeadSync"),description:e.message,status:"error"})}).finally(()=>{o(!1)})},children:r("store.enableSyncMemberHeads")})})}function og({refetch:s,collection:i}){const{t:o}=Ke(),d=i.type?vr(i.type):void 0,m=Me(void 0),u=l(),{theme:p}=ie(),{client:h}=Ze(),f=Oe(Bu),[g,x]=Le(!1),[v,b]=Le({name:i.name,description:i.description||"",query:i.query?JSON.stringify(i.query,null,2):"",tags:i.tags||[],type:i.type?vr(i.type):"",allowed_types:i.allowed_types||[],sensitivity:i.sensitivity,compartments:i.compartments||[]}),[y,w]=Le(""),N=Ee(()=>ag(i.table_layout),[i.table_layout]),k=(e,t)=>{b({...v,[e]:t})};return t("div",{className:"flex flex-col gap-4 py-2",children:[t(xe,{title:o("store.configuration"),action:e(r,{size:"lg",isDisabled:g,onClick:()=>{let e;try{const n=v.query?JSON.parse(v.query):void 0;if(void 0!==n&&("object"!=typeof(t=n)||null===t||Array.isArray(t)))throw new Error(o("store.invalidQueryJson"));e=n}catch(e){return void u({title:o("store.invalidQueryJson"),description:j(e),status:"error",duration:5e3})}var t;const n={name:v.name,description:v.description,query:e,tags:v.tags,type:v.type,allowed_types:v.allowed_types,sensitivity:v.sensitivity,compartments:v.compartments};let r;if(n.name||(r=o("type.nameRequired")),n.type||(n.type=null),r)u({title:o("store.validationFailed"),description:r,status:"error",duration:5e3});else{if(m.current){const e=m.current.getValue();if(e)try{n.table_layout=JSON.parse(e)}catch(e){return void u({title:o("store.invalidTableLayout"),description:j(e),status:"error",duration:5e3})}else n.table_layout=null}x(!0),h.store.collections.update(i.id,n).then(()=>{s(),i.dynamic&&f&&(f.reset(),f.search()),u({title:o("store.collectionUpdated"),description:o("store.collectionUpdatedSuccess"),status:"success",duration:3e3})}).catch(e=>{u({title:o("store.failedToUpdateCollection"),description:j(e),status:"error",duration:5e3})}).finally(()=>{x(!1)})}},children:o("modal.save")}),children:[t("div",{className:"flex justify-between mb-2",children:[t("div",{className:"w-1/2 gap-2 flex flex-col",children:[e("div",{className:"text-sm font-medium mb-1",children:o("store.createdBy")}),t("div",{className:"gap-2 flex items-center",children:[e(pm,{userRef:i.created_by,showTitle:!0}),t("span",{children:["at ",Er(i.created_at).format("YYYY-MM-DD HH:mm:ss")]})]})]}),t("div",{className:"w-1/2 gap-2 flex flex-col",children:[e("div",{className:"text-sm font-medium mb-1",children:o("store.updatedBy")}),t("div",{className:"gap-2 flex items-center",children:[e(pm,{userRef:i.updated_by,showTitle:!0}),t("span",{children:["at ",Er(i.updated_at).format("YYYY-MM-DD HH:mm:ss")]})]})]})]}),e(ae,{label:o("type.name"),required:!0,children:e(a,{value:v.name,onChange:e=>k("name",e)})}),e(ae,{label:o("type.description"),children:e(Q,{value:v.description,onChange:e=>k("description",e.target.value)})}),!i.dynamic&&e(ae,{label:o("store.allowedContentTypes"),description:o("store.allowedContentTypesSelectDescription"),children:e(Of,{defaultValue:v.allowed_types||null,onChange:e=>{Array.isArray(e)?k("allowed_types",e.map(e=>e.id)):k("allowed_types",e?[e.id]:[])},isClearable:!0,multiple:!0})}),i.dynamic&&e(ae,{label:o("store.query"),description:o("store.queryDescription"),children:e(Q,{className:be.INPUT,minLines:1,maxLines:12,value:v.query,onChange:e=>k("query",e.target.value)})}),e(ae,{label:o("store.tableLayout"),description:o("store.tableLayoutDescription"),className:"h-[200px]",children:e(Yr,{className:"border-1 rounded-md border-border",value:N,language:"json",editorRef:m,theme:"dark"===p?"vs-dark":"vs"})}),e(ae,{label:o("store.contentType"),description:o("store.typeSelectDescription"),children:e(Of,{defaultValue:v.type||null,onChange:e=>{Array.isArray(e)?k("type",e.length>0?e[0].id:null):k("type",e?.id||null)},isClearable:!0})}),e(ae,{label:"Sensitivity",description:"BLP sensitivity level — propagated to member documents (max across collections)",children:e(O,{options:br.map((e,t)=>({label:`${t} — ${e}`,value:t})),value:void 0!==v.sensitivity?{label:`${v.sensitivity} — ${br[v.sensitivity]??"Unknown"}`,value:v.sensitivity}:void 0,onChange:e=>k("sensitivity",e.value),optionLabel:e=>e.label,by:"value",placeholder:"Not set"})}),t(ae,{label:"Compartments",description:"Security compartments — propagated to member documents (union across collections)",children:[t("div",{className:"flex gap-2",children:[e(a,{value:y,onChange:w,placeholder:"Add a compartment",onKeyDown:e=>{if("Enter"===e.key){e.preventDefault();const t=y.trim();t&&!v.compartments.includes(t)&&(k("compartments",[...v.compartments,t]),w(""))}}}),e(r,{type:"button",variant:"outline",onClick:()=>{const e=y.trim();e&&!v.compartments.includes(e)&&(k("compartments",[...v.compartments,e]),w(""))},children:"Add"})]}),e("div",{className:"flex gap-1 flex-wrap mt-2",children:v.compartments.map(e=>t(c,{variant:"secondary",className:"cursor-pointer",onClick:()=>k("compartments",v.compartments.filter(t=>t!==e)),children:[e," ×"]},e))})]})]}),d&&e(lg,{typeId:d,collection:i}),!i.dynamic&&t(n,{children:[e(ig,{collection:i}),e(sg,{collection:i})]})]})}function lg({typeId:t,collection:n}){const{t:a}=Ke(),[s,i]=Le({}),o=l(),{client:c}=Ze(),[d,m]=Le(!1),{data:u,error:p}=z(()=>c.store.types.catalog.resolve(t),[t]),h=u?.object_schema||{},g=Ee(()=>new ta(h,n.properties||{}),[h,n.properties]);if(p)return e(f,{title:a("store.failedToLoadType"),children:j(p)});if(!u)return null;return e(xe,{title:a("store.properties"),action:e(r,{size:"lg",isLoading:d,type:"submit",onClick:()=>(e=>{if(!e||!Object.keys(e).length)return;const t={properties:e||{}};m(!0),c.store.collections.update(n.id,t).then(()=>{o({title:a("store.collectionPropertiesUpdated"),description:a("store.collectionUpdatedSuccess"),status:"success",duration:3e3})}).catch(e=>{o({title:a("store.failedToUpdateCollectionProperties"),description:j(e),status:"error",duration:5e3})}).finally(()=>{m(!1)})})(s),children:a("modal.save")}),children:e(na,{object:g,onChange:e=>{e instanceof ta&&i(e.value)}})})}function cg({onChange:n,value:a,disabled:i=!1,placeholder:o,searchPlaceholder:l,filterOut:c,allowDynamic:d=!0,multiple:m=!1}){const{client:u}=Ze(),{t:p}=Ke(),h=o??p("store.selectACollection"),g=l??p("store.searchCollections"),[x,v]=Le(""),[b,y]=Le(!1),[w,N]=Le(!1),k=ge(x,300),C=Ue(async e=>{y(!0);const t=e.trim(),n=await u.store.collections.search({dynamic:!!d&&void 0,name:w&&t||void 0});return y(!1),!w&&n.length>=1e3&&N(!0),c&&c.length>0?n.filter(e=>!c.includes(e.id)):n},[u,d,c,w]),{data:_,error:S}=z(()=>C(w?k:""),[w?k:"",C]),T=Ee(()=>_?m&&Array.isArray(a)?_.filter(e=>a.includes(e.id)):m||"string"!=typeof a?m?[]:void 0:_.find(e=>e.id===a):m?[]:void 0,[_,a,m]),I=Ue(e=>{if(m){const t=Array.isArray(a)?a:[];if(t.includes(e.id)){const r=t.filter(t=>t!==e.id),a=_?.filter(e=>r.includes(e.id))||[];n(r,a)}else{const r=[...t,e.id],a=_?.filter(e=>r.includes(e.id))||[];n(r,a)}}else n(e.id,e)},[n,a,_,m]),D=Ue(()=>{n(void 0,void 0)},[n]),$=Ue(e=>{v(e)},[]),E=x.trim().length>0,L=Ee(()=>{if(!_)return[];if(w)return _;if(!E)return _;const e=x.toLowerCase();return _.filter(t=>t.name.toLowerCase().includes(e))},[_,w,E,x]),F=m?Array.isArray(T)&&T.length>0:!!T;if(S)return e(f,{title:p("store.collectionFetchFailed"),children:j(S)});return t(R,{children:[e(P,{asChild:!0,children:t(r,{variant:"outline",role:"combobox","aria-haspopup":"listbox",className:s("w-full justify-between min-w-0"),disabled:i,children:[e("span",{className:"truncate flex-1 text-start min-w-0",children:m&&Array.isArray(T)&&T.length>0?1===T.length?T[0].name:p("store.collectionsSelected",{count:T.length}):m||!T||Array.isArray(T)?h:T.name}),F&&!i?e(r,{variant:"unstyled","aria-label":"Clear selection",className:"ms-2 shrink-0 opacity-50 hover:opacity-100 hover:text-destructive cursor-pointer",onClick:e=>{e.stopPropagation(),D()},children:e(it,{className:"h-4 w-4"})}):e(Hn,{className:"ms-2 h-4 w-4 shrink-0 opacity-50"})]})}),e(A,{className:"mt-2 mb-2 w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:t(ye,{shouldFilter:!1,children:[t("div",{className:"flex justify-between items-center border-b px-3","cmdk-input-wrapper":"",children:[e(we,{placeholder:g,value:x,onValueChange:$,className:"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),b&&e("div",{className:"me-2 h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"})]}),e(Ne,{children:p(b?"store.searching":E?"store.noCollectionsFound":"store.noCollectionsAvailable")}),t(ke,{className:"max-h-[300px] overflow-auto",children:[F&&!E&&e(Ce,{value:"__clear__",onSelect:D,className:"text-destructive",children:"Remove collection selection(s)"}),E&&e(Ce,{value:"__clear_search__",onSelect:()=>v(""),className:"text-muted",children:p("store.clearSelection")}),L.map(n=>{const r=m&&Array.isArray(a)?a.includes(n.id):a===n.id;return t(Ce,{value:n.id,onSelect:()=>I(n),className:"flex items-center justify-between",children:[e("span",{className:"truncate",children:n.name}),r&&e(tt,{className:"ms-2 h-4 w-4 shrink-0"})]},n.id)})]})]})})]})}function dg({isOpen:n,onClose:r}){return t(x,{onClose:()=>r(),isOpen:!!n,className:"min-w-[60vw]",children:[e(v,{children:"Select Content"}),e(b,{className:"pt-0 overflow-y-auto max-h-[80vh] min-h-[80vh]",children:n&&e(cp,{onChange:r})})]})}const mg=/store:([a-f0-9]+)/;function ug({object:n}){const{client:a}=Ze(),{off:s,on:i,isOn:o}=_e(),[l,c]=Le(null!=n.value?String(n.value):""),[d,m]=Le(void 0),u=Ue(()=>{c(""),n.value="",m(void 0)},[n]);return Ve(()=>{if(!l||d)return;const e=l.match(mg);e&&a.objects.retrieve(e[1]).then(e=>{m(e)}).catch(()=>{u()})},[l,a.objects.retrieve,u,d]),t("div",{children:[t("div",{className:"relative",children:[e("input",{value:l,onChange:e=>{const t=e.target.value;c(t),n.value=t},className:je(be.INPUT,"pe-10 w-full")}),d&&e("div",{className:"absolute inset-y-0 end-10 flex items-center justify-center ",children:e(r,{onClick:u,variant:"unstyled",className:"hover:text-red-500 hover:bg-gray-100 dark:hover:bg-gray-600",children:e(it,{className:"size-5"})})}),e("div",{className:"absolute inset-y-0 end-0 flex items-center justify-center",children:e(r,{onClick:i,variant:"unstyled",className:"hover:bg-gray-100 dark:hover:bg-gray-600",children:e(Hn,{className:"size-5"})})}),e(dg,{value:l,isOpen:o,onClose:e=>{if(e){const t=`store:${e.id}`;c(t),m(e||void 0),n.value=t}s()}})]}),d&&e("div",{className:"p-1 semibold text-sm text-gray-600 dark:text-slate-300",children:"string"==typeof d.properties?.title?d.properties.title:d.name})]})}function pg({objectId:n,isOpen:a,onClose:s}){const i=Or(),{client:o,store:c}=Ze(),[d,m]=Le(null),[u,h]=Le(!1),[f,g]=Le(!1),[x,v]=Le(),[b,y]=Le(),[w,N]=Le("preview"),{t:k}=Ke(),C=l(),_=Ue(async e=>{g(!0);try{const t=await c.objects.getObjectText(e);v(t.text)}catch(e){console.error("Error loading text:",e)}finally{g(!1)}},[c.objects]),S=Ue(async e=>{if(e.content?.source)try{"found"===(await o.objects.getRendition(e.id,{format:sr.jpeg,generate_if_missing:!1})).status&&console.log("Found rendition");const t=await o.files.getDownloadUrl(e.content.source);y(t.url)}catch(e){console.error("Error loading image:",e)}},[o.files,o.objects]);Ve(()=>{n&&a?(h(!0),c.objects.retrieve(n,"+embeddings").then(e=>{m(e),e.text?v(e.text):_(e.id);const t=e.content;t?.source&&t.type?.startsWith("image/")&&S(e)}).catch(e=>{console.error("Error loading object:",e),C({title:k("agent.error"),description:k("store.failedToLoadDocument"),status:"error",duration:3e3})}).finally(()=>{h(!1)})):(m(null),v(void 0),y(void 0))},[n,a,c.objects,_,S,k,C]);const T=()=>{d&&(i(`/legal/objects/${d.id}`),s())},I=x&&(x.startsWith("#")||x.includes("\n#")||x.includes("\n*")),z=d?.content?.type?.startsWith("image/"),j="application/pdf"===d?.content?.type;return a?t("div",{className:"fixed inset-y-0 end-0 w-2/5 dark:bg-slate-900 shadow-xl z-50 flex flex-col transition-transform duration-300 transform "+(a?"translate-x-0":"translate-x-full rtl:-translate-x-full"),children:[t("div",{className:"flex items-center justify-between px-4 py-3 border-b dark:border-gray-700 bg-gradient-to-r from-indigo-50 to-gray-50 dark:from-gray-800 dark:to-gray-900",children:[t("div",{className:"flex items-center",children:[e(pt,{className:"h-5 w-5 text-indigo-600 me-2"}),e("h2",{className:"text-lg font-semibold text-gray-800 dark:text-gray-200 truncate",children:u?k("store.loadingDocument"):d?.name||k("store.documentPreview")})]}),t("div",{className:"flex items-center space-x-2",children:[t(r,{variant:"ghost",size:"sm",onClick:T,className:"flex items-center gap-1 text-indigo-600 hover:text-indigo-800",children:[e(st,{className:"h-4 w-4"}),e("span",{children:k("store.fullView")})]}),e(r,{variant:"ghost",size:"sm",onClick:s,className:"flex items-center text-gray-600 hover:text-gray-800 dark:text-gray-300 dark:hover:text-gray-100",children:e(it,{className:"h-5 w-5"})})]})]}),u?e("div",{className:"flex-1 flex items-center justify-center",children:t("div",{className:"text-center",children:[e(p,{size:"lg",className:"text-indigo-600 dark:text-indigo-400 mb-2"}),e("p",{className:"text-gray-600 dark:text-gray-400",children:k("store.loadingDocument")})]})}):t("div",{className:"flex-1 flex flex-col h-full",children:[e("div",{className:"border-b",children:t("div",{className:"flex px-4",children:[e(r,{variant:"unstyled",className:"py-2 px-4 font-medium border-b-2 "+("preview"===w?"border-indigo-600 text-indigo-700 dark:text-indigo-300":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"),onClick:()=>N("preview"),children:t("div",{className:"flex items-center gap-1",children:[e(Rn,{className:"h-4 w-4"}),e("span",{children:k("store.preview")})]})}),e(r,{variant:"unstyled",className:"py-2 px-4 font-medium border-b-2 "+("properties"===w?"border-indigo-600 text-indigo-700 dark:text-indigo-300":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"),onClick:()=>N("properties"),children:t("div",{className:"flex items-center gap-1",children:[e(Dt,{className:"h-4 w-4"}),e("span",{children:k("store.properties")})]})})]})}),t("div",{className:"flex-1 overflow-auto p-4",children:["preview"===w&&t("div",{className:"h-full",children:[f?e("div",{className:"flex items-center justify-center h-40",children:e(p,{size:"md",className:"text-indigo-600 dark:text-indigo-400"})}):x?e("div",{className:"shadow rounded-md p-4 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:I?e("div",{className:"prose prose-sm max-w-none prose-p:my-2 prose-pre:bg-gray-800 prose-pre:my-2 prose-headings:text-indigo-700 dark:prose-invert dark:prose-headings:text-indigo-300",children:e(Mr,{children:x})}):e("pre",{className:"text-wrap whitespace-pre-wrap dark:text-gray-200",children:x})}):null,z&&e("div",{className:"mt-4",children:e("div",b?{className:"border border-gray-200 dark:border-gray-700 rounded-md p-2 bg-white dark:bg-gray-800",children:e("img",{src:b,alt:d?.name,className:"mx-auto max-h-[70vh] object-contain"})}:{className:"flex items-center justify-center h-40",children:e(p,{size:"md",className:"text-indigo-600 dark:text-indigo-400"})})}),j&&t("div",{className:"flex flex-col items-center justify-center h-64 border border-gray-200 dark:border-gray-700 rounded-md p-4 bg-gray-50 dark:bg-gray-800",children:[e(pt,{className:"h-16 w-16 text-indigo-300 dark:text-indigo-400 mb-4"}),e("p",{className:"text-gray-600 dark:text-gray-400 text-center mb-4",children:k("store.pdfPreviewFullView")}),e(r,{onClick:T,className:"bg-indigo-600 hover:bg-indigo-700 text-white",children:k("store.openFullDocumentView")})]}),!z&&!x&&!j&&!f&&t("div",{className:"flex flex-col items-center justify-center h-64 border border-gray-200 dark:border-gray-700 rounded-md p-4 bg-gray-50 dark:bg-gray-800",children:[e(pt,{className:"h-16 w-16 text-gray-300 dark:text-gray-600 mb-4"}),e("p",{className:"text-gray-600 dark:text-gray-400 text-center",children:k("store.noPreviewAvailable")})]})]}),"properties"===w&&d&&t("div",{className:"h-full",children:[d.properties?e("div",{className:"shadow rounded-md p-4 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:e(Qr,{value:d.properties})}):t("div",{className:"flex flex-col items-center justify-center h-64 border border-gray-200 dark:border-gray-700 rounded-md p-4 bg-gray-50 dark:bg-gray-800",children:[e(Dt,{className:"h-16 w-16 text-gray-300 dark:text-gray-600 mb-4"}),e("p",{className:"text-gray-600 dark:text-gray-400 text-center",children:k("store.noPropertiesAvailable")})]}),t("div",{className:"mt-4",children:[e("h3",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:k("store.documentInformation")}),e("div",{className:"shadow rounded-md p-4 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:t("div",{className:"grid grid-cols-2 gap-y-2 gap-x-4 text-sm",children:[e("div",{className:"text-gray-500 dark:text-gray-400",children:k("store.id")}),e("div",{className:"font-medium dark:text-gray-200",children:d.id}),e("div",{className:"text-gray-500 dark:text-gray-400",children:k("store.contentType")}),e("div",{className:"font-medium dark:text-gray-200",children:d.type?.name||k("store.unknown")}),e("div",{className:"text-gray-500 dark:text-gray-400",children:k("store.contentType")}),e("div",{className:"font-medium dark:text-gray-200",children:d.content?.type||k("store.na")}),e("div",{className:"text-gray-500",children:k("store.size")}),e("div",{className:"font-medium",children:d.content&&"size"in d.content?hg(d.content.size):k("store.unknown")}),e("div",{className:"text-gray-500",children:k("store.created")}),e("div",{className:"font-medium",children:d.created_at?new Date(d.created_at).toLocaleString():k("store.na")}),e("div",{className:"text-gray-500",children:k("store.updated")}),e("div",{className:"font-medium",children:d.updated_at?new Date(d.updated_at).toLocaleString():k("store.na")})]})})]})]})]})]}),t("div",{className:"flex items-center justify-between p-4 border-t bg-gray-50 dark:bg-gray-800 dark:border-gray-700",children:[e("div",{children:d?.content?.source&&t(r,{onClick:()=>{d?.content?.source&&o.files.getDownloadUrl(d.content.source).then(e=>{window.open(e.url,"_blank")}).catch(e=>{console.error("Error getting download URL:",e),C({title:k("agent.error"),description:k("store.failedToDownloadFile"),status:"error",duration:3e3})})},variant:"outline",className:"text-indigo-600 border-indigo-300 hover:bg-indigo-50",children:[e(rt,{className:"h-4 w-4 me-2"}),k("pdf.download")]})}),t(r,{onClick:T,className:"bg-indigo-600 hover:bg-indigo-700 text-white",children:[k("store.openFullDocument"),e(ct,{className:"h-4 w-4 ms-2 cn-rtl-flip"})]})]})]}):null}function hg(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**t).toFixed(2))} ${["Bytes","KB","MB","GB","TB"][t]}`}var fg;function gg({isExporting:n,isOpen:r,onClose:a}){return t(x,{onClose:()=>a(void 0),isOpen:r,children:[e(v,{children:"Export Object Properties"}),t(b,{children:[!n&&e(xg,{onClose:a}),n&&e(vg,{})]})]})}function xg({onClose:n}){const{t:a}=Ke(),[s,i]=Le(void 0),[o,l]=Le(void 0),c=["Export selected objects","Export all objects"];return t(b,{className:"min-h-[104px] pt-0 flex flex-col gap-y-4",children:[e("div",{className:"h-1/3",children:e(O,{options:c,value:o,onChange:l,placeholder:a("store.chooseWhatToExport"),className:"h-full w-full text-sm",filterBy:"name",isClearable:!0})}),t("div",{className:"h-1/2 flex flex-col gap-y-8 content-between",children:[e(O,{options:Object.values(fg),value:s,onChange:i,placeholder:a("store.chooseAFormat"),className:"h-full w-full text-sm",filterBy:"name",isClearable:!0}),e(r,{className:"w-full",isDisabled:!s||!o,onClick:()=>{n(s,o===c[1])},children:a("store.actions.exportProperties")})]})]})}function vg(){const{t:n}=Ke();return e(b,{className:"min-h-[84px] pt-0",children:t("div",{className:"h-full grid flex-col gap-y-2 content-between justify-items-center",children:[t("div",{className:"text-sm flex flex-col gap-x-2",children:[e("p",{children:n("store.exportInProgress")}),e("p",{className:"pt-2 grid justify-items-center",children:n("store.pleaseWait")})]}),e(p,{size:"lg"})]})})}!function(e){e.CSV="CSV",e.JSON="JSON"}(fg||(fg={}));const bg=Fe(void 0);function yg(){const e=Oe(bg);if(!e)throw new Error("You cannot use useActionContext outside an ActionProvider");return e}function wg(e,t){const n=yg();return Ve(()=>n.registerCallback(e,t),[n,e,t]),n}function Ng({action:t,objectIds:n}){const[r,a]=Le(!1),s=Ue(()=>(n.length>0&&a(!0),Promise.resolve(!0)),[n]);return wg(t.id,s),r&&e(oe,{children:e(_g,{objectIds:n,isOpen:r,onClose:()=>{a(!1)}})})}const kg=Ye.getFixedT(null,Qe),Cg={id:"addToCollection",name:kg("store.actions.addToCollection"),description:kg("store.actions.addToCollectionDesc"),confirm:!1,component:Ng};function _g({isOpen:n,onClose:r,objectIds:a}){const{t:s}=Ke();return t(x,{isOpen:n,onClose:r,className:"max-w-lg w-full min-w-0 overflow-hidden",children:[e(v,{className:"flex flex-col min-w-0 overflow-hidden",children:s("store.actions.addToCollectionTitle")}),e(Se,{className:"min-w-0 overflow-hidden",children:s("store.actions.addToCollectionBody")}),e("div",{className:"min-w-0 max-w-full overflow-hidden",children:e(Sg,{onClose:r,objectIds:a})})]})}function Sg({onClose:n,objectIds:a}){const{t:s}=Ke(),i=l(),{client:o}=Ze(),[c,d]=Le(),m=({collectionId:e})=>{e&&a?.length&&o.store.collections.addMembers(e,a).then(()=>{i({title:s("store.actions.addToCollectionSuccess"),status:"success",description:s("store.actions.addToCollectionSuccessDesc",{count:a.length}),duration:3e3}),n()}).catch(()=>{i({title:s("store.actions.addToCollectionFailure"),status:"error",description:s("store.actions.addToCollectionFailureDesc"),duration:5e3})})},u=[{name:"select",label:s("store.actions.selectCollection"),content:t("div",{className:"p-4 min-w-0 max-w-full overflow-hidden",children:[e(Te,{level:5,children:s("store.actions.chooseExistingCollections")}),e(b,{className:"min-w-0 max-w-full overflow-hidden",children:e("div",{className:"mb-4 min-w-0 max-w-full overflow-hidden",children:e(cg,{onChange:(e,t)=>{"string"==typeof e||void 0===e?d(e):Array.isArray(e)&&e.length>0?d(e[0]):d(void 0)},value:c})})}),e(K,{children:e(r,{isDisabled:!c,onClick:()=>c&&m({collectionId:c}),children:s("store.actions.addToCollectionButton")})})]})},{name:"create",label:s("store.actions.createNew"),content:e("div",{className:"p-4",children:e(Mf,{onClose:n,onAddToCollection:e=>m({collectionId:e}),redirect:!1})})}];return t(y,{defaultValue:"select",tabs:u,fullWidth:!0,children:[e(Ie,{}),e(w,{})]})}function Tg({action:n,objectIds:r,children:a}){const{t:s}=Ke(),{store:i}=Ze(),o=l(),[c,d]=Le(!1),m=Ue(()=>(d(!0),Promise.resolve(!0)),[]);wg(n.id,m);return t("div",{children:[a,e(tg,{isOpen:c,onClose:e=>{d(!1),void 0!==e&&i.runOperation({name:"change_type",ids:r,params:{typeId:e}}).then(e=>{o({status:"success",title:s("store.actions.changeType"),description:`Change the type of ${r.length} objects is ${"in_progress"===e.status?"in progress":"completed"}`,duration:2e3})}).catch(e=>{o({status:"error",title:s("store.actions.errorChangingType"),description:e.message,duration:5e3})})},title:"Change Content Type",confirmLabel:"Change Type",children:t("p",{className:"pt-2 text-xs",children:["Note: This action will raise the ",e("code",{children:"change_type"})," event and will trigger the standard intake workflows which may reset the object properties."]})})]})}const Ig=Ye.getFixedT(null,Qe),zg={id:"changeType",name:Ig("store.actions.changeContentType"),description:Ig("store.actions.changeContentTypeDesc"),confirm:!1,component:Tg};function jg({action:r,callback:a,children:s}){const{t:i}=Ke(),[o,l]=Le(!1),c=r.confirmationText||`Are you sure you want to ${r.name}?`,d=Ue(e=>r.confirm?(l(!0),Promise.resolve(!0)):a(e),[r.confirm,a]),m=wg(r.id,d);return t(n,{children:[s,e(fe,{onConfirm:()=>{l(!1),a({...m.params,action:r})},onCancel:()=>l(!1),title:i("store.actions.areYouSure"),content:c,isOpen:o})]})}function Rg({action:t,objectIds:n,children:r}){const{t:a}=Ke(),s=yg(),i=l(),{client:o}=Ze(),c=qu(),d=Or(),m=Ue(()=>n?.length?o.store.objects.delete(n).then(e=>{const t=e.deleted>1?"s":"";if(i({status:"success",title:`${e.deleted} object${t} deleted`,duration:2e3}),e.failed.length>0&&i({status:"warning",title:`${e.failed.length} object(s) could not be deleted`,duration:3e3}),c){s.params?.selection?.removeAll();const e=JSON.parse(JSON.stringify(c.facets));n.length===e._value.total&&c.resetFacets(),c.search()}else d("/objects")}).catch(e=>{i({status:"error",title:a("store.actions.errorDeletingObjects"),description:e.message,duration:5e3})}):(i({status:"error",title:a("store.actions.noObjectsSelected"),description:a("store.actions.pleaseSelectObjectsToDelete"),duration:3e3}),Promise.resolve(!1)),[o.store.objects.delete,s.params?.selection?.removeAll,d,n,c,c?.facets,c?.resetFacets,c?.search,a,i]);return e(jg,{action:t,callback:m,children:r})}const Pg=Ye.getFixedT(null,Qe),Ag={id:"delete",name:Pg("store.actions.delete"),description:Pg("store.actions.deleteTheSelectedObjects"),confirm:!0,confirmationText:Pg("store.actions.confirmDeleteAll"),component:Rg,destructive:!0},Dg={id:"deleteFromCollections",name:Pg("store.actions.deleteObjects"),description:Pg("store.actions.deleteTheSelectedObjects"),confirm:!0,confirmationText:Pg("store.actions.confirmDeleteSelected"),component:Rg,destructive:!0};function $g({action:t,objectIds:n}){const{t:r}=Ke(),{store:a}=Ze(),s=l(),[i,o]=Le(!1),[c,d]=Le(!1),m=Ue(()=>(o(!0),Promise.resolve(!0)),[]),u=wg(t.id,m);return e(gg,{isExporting:c,isOpen:i,onClose:(e,t)=>{if(e&&(t||n.length>0)){d(!0);const i=u.params?.search?.query||{},l=u.params?.search?.result?.value?.objects?.map(e=>e.id)||void 0,c=async e=>a.objects.list({query:{parent:e}}).then(e=>e.map(e=>e.id)),m=async()=>t?l?i.vector?l:[]:0===n.length?[]:(await c(n[0])).concat(n):n,p=u.params?.type?.id??i.type,h=u.params?.type?.table_layout??void 0;m().then(l=>{a.objects.exportProperties({objectIds:l,type:e,query:t&&!i.vector?{...i,type:p}:{type:p},table_layout:h}).then(e=>{const a=new Blob([e.data],{type:e.type}),i=window.URL.createObjectURL(a),o=document.createElement("a");o.download=e.name,o.href=i,o.click(),s({status:"success",title:r("store.actions.exportProperties"),description:t?"Export the properties of all objects completed":`Export the properties of ${n.length} object${n.length>1?"s":""} is completed`,duration:2e3})}).catch(e=>{s({status:"error",title:r("store.actions.errorExportProperties"),description:e.message,duration:5e3})}).finally(()=>{d(!1),o(!1)})})}else o(!1),s({status:"error",title:r("store.actions.errorExportProperties"),description:"No objects selected for export",duration:5e3})}})}const Eg=Ye.getFixedT(null,Qe),Lg={id:"exportProperties",name:Eg("store.actions.exportProperties"),description:Eg("store.actions.exportAllObjectProperties"),confirm:!1,component:$g};function Fg({action:t,objectIds:n,collectionId:r}){const{t:a}=Ke(),s=yg(),i=l(),{client:o}=Ze(),c=qu(),d=Ue(()=>n?.length?r?o.store.collections.deleteMembers(r,n).then(()=>{const e=n.length>1?"s":"";i({status:"success",title:`${n.length} object${e} removed from collection`,description:"Objects have been removed from the collection",duration:2e3}),c&&(s.params?.selection?.removeAll(),c.search())}).catch(e=>{i({status:"error",title:a("store.actions.errorRemovingObjects"),description:j(e),duration:5e3})}):(i({status:"error",title:a("store.actions.noCollectionContext"),description:a("store.actions.cannotRemoveNoCollection"),duration:3e3}),Promise.resolve(!1)):(i({status:"error",title:a("store.actions.noObjectsSelected"),description:a("store.actions.pleaseSelectObjectsToRemove"),duration:3e3}),Promise.resolve(!1)),[o.store.collections.deleteMembers,r,s.params?.selection?.removeAll,n,c,c?.search,a,i]);return e(jg,{action:t,callback:d})}const Og=Ye.getFixedT(null,Qe),Mg={id:"removeFromCollection",name:Og("store.actions.removeFromCollection"),description:Og("store.actions.removeFromCollectionDesc"),confirm:!0,confirmationText:Og("store.actions.confirmRemoveFromCollection"),component:Fg,destructive:!0};function Ug({action:t,objectIds:n,collectionId:r}){const{t:a}=Ke(),s=l(),{client:i}=Ze(),[o,c]=Le(!1),d=Ue(()=>(c(!0),Promise.resolve(!0)),[]);return wg(t.id,d),e(Bg,{isOpen:o,onClose:e=>{if(c(!1),e)return i.store.workflows.rules.execute(e,n,{collection_id:r}).then(()=>{s({title:a("store.actions.workflowStarted"),status:"success",duration:3e3})}).catch(e=>{s({title:a("store.actions.errorStartingWorkflow"),status:"error",description:e.message,duration:9e3})})}})}const Wg=Ye.getFixedT(null,Qe),Vg={id:"startWorkflow",name:Wg("store.actions.startWorkflow"),description:Wg("store.actions.startWorkflowDesc"),confirm:!1,hideInList:!0,component:Ug};function Bg({isOpen:n,onClose:r}){const{t:a}=Ke();return t(x,{onClose:()=>r(void 0),isOpen:n,className:"",children:[e(v,{children:a("store.actions.startWorkflowByRule")}),e(Hg,{onClose:r})]})}function qg(n){return{label:t("div",{children:[e("div",{children:n.name}),e("div",{className:"text-sm text-muted",children:n.description})]}),reverse:!0}}function Hg({onClose:n}){const{t:a}=Ke(),[s,i]=Le(void 0),o=yg();return t("div",{children:[t(b,{children:[e("div",{className:"pb-2",children:a("store.actions.chooseWorkflowRule")}),e("div",{className:"max-h-[420px] overflow-y-scroll border-border border rounded-md",children:e(ze,{options:o.wfRules,optionLayout:qg,onChange:e=>{i(e)},value:s})})]}),t(K,{children:[e(r,{variant:"secondary",onClick:()=>n(),children:"Cancel"}),e(r,{onClick:()=>{s&&n(s.id)},isDisabled:!s,children:"Start"})]})]})}class Gg{params;allActions=[];wfRules=[];callbacks={};startWorkflow;constructor(e){this.params=e}get actions(){return!!this.params.selection?.collectionId?this.allActions.filter(e=>"addToCollection"!==e.id&&"delete"!==e.id):this.allActions.filter(e=>"removeFromCollection"!==e.id&&"deleteFromCollections"!==e.id)}registerCallback(e,t){return this.callbacks[e]=t,()=>{delete this.callbacks[e]}}unregisterCallback(e){delete this.callbacks[e]}findAction(e){let t=this.allActions.find(t=>t.id===e);return t||(t=this.wfRules.find(t=>t.id===e)),t}async run(e){const t=this.findAction(e);if(!t)throw new Error(`Action ${e} not found`);const n={...this.params,action:t},r=this.callbacks[e];if(r)return r(n);throw new Error("No action callback set")}}const Jg=[Lg,zg,Vg,Cg,Ag,Mg,Dg];function Kg({children:n,type:r}){const{t:a}=Ke(),s=lu(),i=l(),{client:o}=Ze(),c=qu(),{data:d,error:m}=z(()=>o.workflows.rules.list().then(e=>e.map(e=>({id:e.id,name:e.name,description:e.description,confirm:!1,isWorkflow:!0,component:Ug})).sort((e,t)=>e.name.localeCompare(t.name))),[]),u=Ee(()=>{const e=new Gg({selection:s,toast:i,client:o,search:c,type:r});return e.allActions=Jg,e.wfRules=d,e},[o,c,s,d,i,r]);return m?e(f,{title:a("store.failedToFetchWorkflows"),children:j(m)}):u&&t(bg.Provider,{value:u,children:[e(Yg,{}),n]})}function Yg(){const t=yg(),n=t.params.selection,r=n.getObjectId(),a=n.isSingleSelection()&&r?[r]:n.getObjectIds();return e("div",{style:{display:"none"},children:t.allActions.map(t=>e(t.component,{action:t,objectIds:a,collectionId:n.collectionId},t.id))})}function Qg({type:n,allowMutations:a=!0,allowDelete:s=!0,allowWorkflowRun:i=!0}){const o=lu(),l=o.size(),c=l>1?"s":"",d=o?.hasSelection(),m=o?.isSingleSelection();return e(Kg,{type:n,children:t("div",{className:"flex items-center gap-x-2",children:[d&&!m&&t("div",{className:"flex items-center gap-x-1 shrink-0",children:[t("div",{className:"text-sm nowrap",children:[l," document",c," selected"]}),e(r,{title:"Clear selection",variant:"ghost",onClick:()=>{o?.removeAll()},children:e(it,{className:"size-4"})})]}),e(nx,{selection:o,allowMutations:a,allowDelete:s,allowWorkflowRun:i,children:t=>t.length>0?e(r,{variant:"ghost",alt:"More action",size:"sm",children:e(Gn,{size:16})}):null}),d&&i&&e(Zg,{selection:o})]})})}function Zg(t){return e(ex,{})}function Xg({collectionId:a,allowFolders:s=!0}){const{t:i}=Ke(),[o,l]=Le([]),[c,d]=Le(!1);return t(n,{children:[e(r,{onClick:()=>d(!0),children:i("store.upload")}),e(Xu,{collectionId:a??"",isOpen:c,onClose:()=>{d(!1),l([])},files:o,title:"Upload Files",onUploadComplete:e=>{e?.success&&l([])},allowFolders:s})]})}function ex(){const t=yg(),{t:n}=Ke();return t.params.selection.hasSelection()&&e(r,{onClick:()=>t.run(Vg.id),children:n("store.actions.startWorkflow")})}function tx(e){return{label:e.name,className:je("flex-1 px-2 py-2 hover:bg-accent nowrap",e.destructive?"text-destructive":"")}}function nx({selection:n,children:r,allowMutations:a=!0,allowDelete:s=!0,allowWorkflowRun:i=!0}){const o=yg(),l=function(e,t,n){if(!t?.hasSelection())return[Lg];return e.filter(e=>!e.hideInList&&("startWorkflow"===e.id?n.allowWorkflowRun:"delete"===e.id||"deleteFromCollections"===e.id?n.allowDelete:"changeType"!==e.id&&"addToCollection"!==e.id&&"removeFromCollection"!==e.id||n.allowMutations))}(o.actions,n,{allowMutations:a,allowDelete:s,allowWorkflowRun:i}),c=r(l);return c?t(R,{hover:!0,children:[e(P,{children:c}),e(A,{className:"p-0 w-50",align:"end",sideOffset:6,children:e(rx,{executeAction:e=>{o.run(e.id)},actions:l})})]}):null}function rx({executeAction:t,actions:n}){return e("div",{className:"rounded-md shadow-md py-2",children:e("div",{className:"px-1 text-sm",children:e(ze,{options:n,optionLayout:tx,onChange:e=>{t(e)},noCheck:!0})})})}function ax({user:n}){return t("div",{className:"flex items-center",children:[e("div",{className:"w-9 h-9",children:(()=>{if(n.picture)return e("img",{className:"inline-block h-9 w-9 rounded-full",src:n.picture,alt:n.name});{const t=n.name.split(" ").map(e=>e[0]).join("");return e("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-indigo-600",children:e("span",{className:"text-sm font-medium leading-none text-white",children:t})})}})()}),t("div",{className:"ms-3",children:[e("p",{className:"text-sm font-medium text-gray-700 dark:text-slate-50 group-hover:text-gray-900",children:n.name??"Deleted User"}),e("p",{className:"text-xs font-medium text-gray-500 dark:text-slate-300 group-hover:text-gray-700",children:n.email??"Deleted User"})]})]})}export{Ta as ActivitiesDoc,za as ActivityDoc,Cg as AddToCollectionAction,Ng as AddToCollectionActionComponent,es as AgentChart,_c as AgentChatFixtureReplay,ds as AgentChatPlaybackControls,Nm as AgentRunnerFacetsNav,Xh as AllOf,to as AnimatedThinkingDots,Zh as AnyOf,xm as ApiKeyAvatar,Ii as AskUserWidget,bh as AudioPanel,Ff as BrowseCollectionView,zg as ChangeTypeAction,Tg as ChangeTypeActionComponent,Vf as CollectionIcon,zm as CollectionsFacetsNav,Wf as CollectionsTable,zi as ConfirmationWidget,op as ContentDispositionButton,Zf as ContentObjectTypesSearch,Bf as ContentObjectTypesTable,xf as ContentOverview,Mf as CreateCollectionForm,Uf as CreateCollectionModal,qf as CreateOrUpdateTypeModal,Ag as DeleteObjectsAction,Rg as DeleteObjectsActionComponent,Dg as DeleteObjectsFromCollectionsAction,Wu as DocumentGridView,Mu as DocumentIcon,Ou as DocumentIconSkeleton,ug as DocumentInput,pg as DocumentPreviewPanel,Vu as DocumentSearch,sp as DocumentSearchProvider,Df as DocumentSearchResults,Af as DocumentSearchResultsWithDropZone,iu as DocumentSelection,du as DocumentSelectionProvider,np as DocumentTable,Fu as DocumentTableColumn,Uu as DocumentTableView,Xu as DocumentUploadModal,Dm as DocumentsFacetsNav,og as EditCollectionView,$m as EnvironmentFacet,Lg as ExportPropertiesAction,$g as ExportPropertiesComponent,gg as ExportPropertiesModal,fg as ExportTypes,Yu as FileUploadAction,Up as GenericPageNavHeader,Wd as Header,yh as ImagePanel,Fm as InteractionsFacetsNav,Sc as JumpingDots,Uo as MESSAGE_STYLES,ph as MagicPdfView,Wo as MessageItem,zp as MessagesContainer,Cp as ModernAgentConversation,Wp as NotFoundView,Yh as OAuthProviderConnectButton,Xf as ObjectSchemaEditor,Hf as ObjectTypeSearch,Gf as ObjectTypeSearchContext,ng as ObjectTypeSearchProvider,Kg as ObjectsActionContextProvider,Ap as PanelErrorBoundary,Fd as PayloadBuilder,Md as PayloadBuilderProvider,Ld as PayloadBuilderStore,Od as PayloadContext,Ec as PdfDocumentRenderer,Ic as PdfPageRenderer,Oc as PdfPageSlider,$c as PdfThumbnailList,Mm as ProcessDefinitionsFacetsNav,Wm as ProcessRunsFacetsNav,qm as PromptsFacetsNav,df as PropertiesEditorModal,no as PulsatingCircle,ao as PulsingMessageLoader,Qh as RemoteMcpConnectionButton,Mg as RemoveFromCollectionAction,Fg as RemoveFromCollectionActionComponent,$p as RowErrorBoundary,Jm as RunsFacetsNav,cf as SaveVersionConfirmModal,Bu as SearchContext,sf as SecureButton,of as SecureSidebarItem,cg as SelectCollection,Of as SelectContentType,tg as SelectContentTypeModal,cp as SelectDocument,dg as SelectDocumentModal,Qg as SelectionActions,jc as SharedPdfProvider,sg as SharedPropsEditor,Ac as SimplePdfPage,Wc as SimplePdfViewer,xp as SkillWidgetProvider,Vg as StartWorkflowAction,Ug as StartWorkflowComponent,Vo as StreamingMessage,Km as StringFacet,Ym as StringListFacet,ig as SyncMemberHeadsToggle,rg as TableLayoutEditor,so as ThinkingBar,oo as ThinkingMessages,Zm as TypeFacet,km as TypeRegistry,_m as TypeRegistryProvider,ro as TypedDots,od as UniversalDocumentViewer,Xg as UploadObjectsButton,ax as UserAvatar,pm as UserInfo,af as UserPermissionProvider,tf as UserPermissions,nf as UserPermissionsContext,Gd as VInteractionFacet,Yd as VStringFacet,jm as VTypeFacet,bm as VUserFacet,Qa as VegaLiteChart,jp as VertesiaErrorBoundary,wh as VideoPanel,xh as WEB_SUPPORTED_AUDIO_FORMATS,fh as WEB_SUPPORTED_IMAGE_FORMATS,gh as WEB_SUPPORTED_VIDEO_FORMATS,io as WavyThinking,Lp as WidgetErrorBoundary,eu as WorkflowDefinitionsFacetsNav,ru as WorkflowExecutionsFacetsNav,su as WorkflowRulesFacetsNav,ts as clampPlaybackCursor,wm as createAgentRunnerFilterHandler,ss as createPlaybackState,qd as filterValueToQueryValue,vh as formatDuration,as as getNextUserTurnIndex,ns as getPlaybackCursorIndex,rs as getPreviousUserTurnIndex,Iu as getWorkflowStatusColor,zu as getWorkflowStatusName,is as isAgentChatPlaybackAvailable,os as isAgentChatPlaybackEnabled,ef as isAnyOf,gu as isCsv,xu as isImage,ls as isLocalhostAgentChatPlaybackAvailable,cs as isLocalhostAgentChatPlaybackEnabled,vu as isPdf,yu as isPreviewableAsPdf,Xa as isRechartsSpec,Za as isVegaLiteSpec,bu as isVideo,wu as printElementToPdf,_u as retrieveRendition,Pp as setErrorBoundaryComponent,Hd as setSearchQueryValue,Su as shortId,Tu as shortenString,ag as stringifyTableLayout,Bd as unwrapFilterOptionValue,ym as useAgentRunnerFilterGroups,Tm as useCollectionsFilterGroups,Im as useCollectionsFilterHandler,Pm as useDocumentFilterGroups,Am as useDocumentFilterHandler,qu as useDocumentSearch,Ju as useDocumentSearchCount,lu as useDocumentSelection,ep as useDocumentUploadHandler,zo as useDownloadFile,am as useFetchApiKeyInfo,rm as useFetchGroupInfo,nm as useFetchUserInfo,Em as useInteractionsFilterGroups,Lm as useInteractionsFilterHandler,Kh as useOAuthPopup,cu as useOptionalDocumentSelection,Ud as usePayloadBuilder,Om as useProcessDefinitionsFilterGroups,Um as useProcessRunsFilterGroups,Vm as usePromptsFilterGroups,Bm as usePromptsFilterHandler,Hm as useRunsFilterGroups,Gm as useRunsFilterHandler,Jf as useSearch,Yf as useSearchCount,Rc as useSharedPdf,Zu as useSmartFileUploadProcessing,Sm as useTypeRegistry,rf as useUserPermissions,Hu as useWatchDocumentSearchFacets,Gu as useWatchDocumentSearchResult,Kf as useWatchSearchResult,Xm as useWorkflowDefinitionsFilterGroups,tu as useWorkflowExecutionsFilterGroups,nu as useWorkflowExecutionsFilterHandler,au as useWorkflowRulesFilterGroups};
2
2
  //# sourceMappingURL=vertesia-ui-features.js.map