@carto/ps-react-ui 4.4.0-chat-ui.6 → 4.4.0-chat-ui.7

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 (910) hide show
  1. package/dist/category-DwaeYjpX.js +656 -0
  2. package/dist/category-DwaeYjpX.js.map +1 -0
  3. package/dist/change-column-Cidl_M-4.js +1110 -0
  4. package/dist/change-column-Cidl_M-4.js.map +1 -0
  5. package/dist/chat.js +621 -672
  6. package/dist/chat.js.map +1 -1
  7. package/dist/components.js.map +1 -1
  8. package/dist/data-zoom-layout-DVYB8mIx.js +29 -0
  9. package/dist/data-zoom-layout-DVYB8mIx.js.map +1 -0
  10. package/dist/download-config-C7hf33ip.js +58 -0
  11. package/dist/download-config-C7hf33ip.js.map +1 -0
  12. package/dist/echart-CU0KmClP.js +176 -0
  13. package/dist/echart-CU0KmClP.js.map +1 -0
  14. package/dist/exports-Cr43OCul.js.map +1 -1
  15. package/dist/exports-Cx-f6m6U.js +63 -0
  16. package/dist/exports-Cx-f6m6U.js.map +1 -0
  17. package/dist/formatter-B9Bxn1k7.js +6 -0
  18. package/dist/formatter-B9Bxn1k7.js.map +1 -0
  19. package/dist/formula-DuC0NQLH.js +79 -0
  20. package/dist/formula-DuC0NQLH.js.map +1 -0
  21. package/dist/lasso-tool-BYbxrJ-7.js.map +1 -1
  22. package/dist/markdown-BD1jcknS.js +8326 -0
  23. package/dist/markdown-BD1jcknS.js.map +1 -0
  24. package/dist/option-builders-F-c9ELi1.js +122 -0
  25. package/dist/option-builders-F-c9ELi1.js.map +1 -0
  26. package/dist/options-CthfUJDz.js +46 -0
  27. package/dist/options-CthfUJDz.js.map +1 -0
  28. package/dist/png-item-CS4z1iSH.js +45 -0
  29. package/dist/png-item-CS4z1iSH.js.map +1 -0
  30. package/dist/range-l4fNHLEg.js +213 -0
  31. package/dist/range-l4fNHLEg.js.map +1 -0
  32. package/dist/resolve-theme-color-BdojIw0K.js +47 -0
  33. package/dist/resolve-theme-color-BdojIw0K.js.map +1 -0
  34. package/dist/row-DZSP99LW.js +34 -0
  35. package/dist/row-DZSP99LW.js.map +1 -0
  36. package/dist/series-DLNHDWs0.js +90 -0
  37. package/dist/series-DLNHDWs0.js.map +1 -0
  38. package/dist/shared-resize-observer-98b1SK1e.js +17 -0
  39. package/dist/shared-resize-observer-98b1SK1e.js.map +1 -0
  40. package/dist/smart-tooltip-D4vwQpFf.js.map +1 -1
  41. package/dist/spread-CngWB5KF.js +68 -0
  42. package/dist/spread-CngWB5KF.js.map +1 -0
  43. package/dist/style-DVnT6HC1.js +131 -0
  44. package/dist/style-DVnT6HC1.js.map +1 -0
  45. package/dist/styles-cohnxh9F.js +23 -0
  46. package/dist/styles-cohnxh9F.js.map +1 -0
  47. package/dist/table-CQCAnDLb.js +388 -0
  48. package/dist/table-CQCAnDLb.js.map +1 -0
  49. package/dist/tooltip-BDnrRKrp.js.map +1 -1
  50. package/dist/transforms-Cdx4fkU5.js +106 -0
  51. package/dist/transforms-Cdx4fkU5.js.map +1 -0
  52. package/dist/types/chat/containers/chat-content.d.ts +2 -2
  53. package/dist/types/chat/containers/styles.d.ts +9 -26
  54. package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -3
  55. package/dist/types/chat/index.d.ts +1 -1
  56. package/dist/types/chat/types.d.ts +35 -3
  57. package/dist/types/components/basemaps/basemaps.d.ts +20 -0
  58. package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +11 -0
  59. package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +17 -0
  60. package/dist/types/components/lasso-tool/lasso-tool.d.ts +21 -0
  61. package/dist/types/components/list-data/list-data.d.ts +16 -0
  62. package/dist/types/components/measurement-tools/measurement-tools.d.ts +20 -0
  63. package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +17 -0
  64. package/dist/types/components/tooltip/tooltip.d.ts +13 -0
  65. package/dist/types/components/zoom-controls/zoom-controls.d.ts +16 -0
  66. package/dist/types/hooks/index.d.ts +0 -1
  67. package/dist/types/hooks/use-widget-ref.d.ts +9 -6
  68. package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
  69. package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
  70. package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
  71. package/dist/types/widgets/actions/brush-toggle/hit-test.test.d.ts +1 -0
  72. package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
  73. package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
  74. package/dist/types/widgets/actions/download/download.d.ts +11 -0
  75. package/dist/types/widgets/actions/download/exports.d.ts +15 -0
  76. package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +13 -0
  77. package/dist/types/widgets/actions/index.d.ts +7 -5
  78. package/dist/types/widgets/actions/lock-selection/types.d.ts +2 -0
  79. package/dist/types/widgets/actions/relative-data/relative-data.d.ts +8 -2
  80. package/dist/types/widgets/actions/relative-data/types.d.ts +2 -0
  81. package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +4 -0
  82. package/dist/types/widgets/bar/config.d.ts +8 -4
  83. package/dist/types/widgets/category/category-ui.d.ts +3 -0
  84. package/dist/types/widgets/category/components/category-bar.d.ts +3 -0
  85. package/dist/types/widgets/category/components/category-legend.d.ts +3 -0
  86. package/dist/types/widgets/category/components/category-row-multi.d.ts +5 -1
  87. package/dist/types/widgets/category/components/category-row-other.d.ts +3 -0
  88. package/dist/types/widgets/category/components/category-row-single.d.ts +5 -1
  89. package/dist/types/widgets/category/config.d.ts +11 -0
  90. package/dist/types/widgets/category/index.d.ts +10 -2
  91. package/dist/types/widgets/category/style.d.ts +1 -0
  92. package/dist/types/widgets/category/types.d.ts +1 -0
  93. package/dist/types/widgets/echart/echart-ui.d.ts +7 -0
  94. package/dist/types/widgets/echart/echart.d.ts +6 -0
  95. package/dist/types/widgets/echart/options.d.ts +7 -0
  96. package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
  97. package/dist/types/widgets/echart/types.d.ts +5 -1
  98. package/dist/types/widgets/echart/utils.d.ts +54 -7
  99. package/dist/types/widgets/echart/utils.test.d.ts +1 -0
  100. package/dist/types/widgets/error/error.d.ts +10 -0
  101. package/dist/types/widgets/formula/components/item.d.ts +3 -0
  102. package/dist/types/widgets/formula/components/prefix.d.ts +3 -0
  103. package/dist/types/widgets/formula/components/row.d.ts +3 -0
  104. package/dist/types/widgets/formula/components/series.d.ts +3 -0
  105. package/dist/types/widgets/formula/components/suffix.d.ts +3 -0
  106. package/dist/types/widgets/formula/components/value.d.ts +3 -0
  107. package/dist/types/widgets/formula/config.d.ts +11 -0
  108. package/dist/types/widgets/formula/config.test.d.ts +1 -0
  109. package/dist/types/widgets/formula/formula-ui.d.ts +3 -0
  110. package/dist/types/widgets/histogram/config.d.ts +18 -2
  111. package/dist/types/widgets/histogram/index.d.ts +2 -1
  112. package/dist/types/widgets/histogram/types.d.ts +6 -3
  113. package/dist/types/widgets/loader/loader.d.ts +22 -0
  114. package/dist/types/widgets/loader/utils.d.ts +26 -3
  115. package/dist/types/widgets/markdown/config.d.ts +10 -0
  116. package/dist/types/widgets/markdown/markdown-ui.d.ts +7 -0
  117. package/dist/types/widgets/markdown/markdown.d.ts +3 -0
  118. package/dist/types/widgets/no-data/no-data.d.ts +3 -2
  119. package/dist/types/widgets/no-data/types.d.ts +5 -1
  120. package/dist/types/widgets/note/note.d.ts +10 -0
  121. package/dist/types/widgets/pie/config.d.ts +8 -4
  122. package/dist/types/widgets/range/components/range-item.d.ts +3 -0
  123. package/dist/types/widgets/range/config.d.ts +5 -0
  124. package/dist/types/widgets/range/range-ui.d.ts +3 -0
  125. package/dist/types/widgets/scatterplot/config.d.ts +7 -3
  126. package/dist/types/widgets/selection-summary/selection-summary.d.ts +11 -0
  127. package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +10 -0
  128. package/dist/types/widgets/spread/components/max-value.d.ts +3 -0
  129. package/dist/types/widgets/spread/components/min-value.d.ts +3 -0
  130. package/dist/types/widgets/spread/components/separator.d.ts +3 -0
  131. package/dist/types/widgets/spread/config.d.ts +11 -0
  132. package/dist/types/widgets/spread/spread-ui.d.ts +3 -0
  133. package/dist/types/widgets/stores/index.d.ts +3 -2
  134. package/dist/types/widgets/stores/types.d.ts +12 -10
  135. package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
  136. package/dist/types/widgets/stores/widget-store-branches.test.d.ts +1 -0
  137. package/dist/types/widgets/stores/widget-store-performance.test.d.ts +1 -0
  138. package/dist/types/widgets/stores/widget-store.d.ts +48 -27
  139. package/dist/types/widgets/subheader/subheader.d.ts +11 -0
  140. package/dist/types/widgets/table/config.d.ts +8 -3
  141. package/dist/types/widgets/table/config.test.d.ts +1 -0
  142. package/dist/types/widgets/table/hooks/use-pagination.d.ts +11 -3
  143. package/dist/types/widgets/table/hooks/use-selection.d.ts +11 -2
  144. package/dist/types/widgets/table/hooks/use-sort.d.ts +11 -3
  145. package/dist/types/widgets/table/index.d.ts +6 -2
  146. package/dist/types/widgets/table/types.d.ts +1 -1
  147. package/dist/types/widgets/timeseries/config.d.ts +8 -4
  148. package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
  149. package/dist/types/widgets/{_shared → utils}/chart-config/index.d.ts +3 -1
  150. package/dist/types/widgets/{_shared → utils}/chart-config/option-builders.d.ts +41 -9
  151. package/dist/types/widgets/utils/chart-config/option-builders.test.d.ts +1 -0
  152. package/dist/types/widgets/utils/formatter.d.ts +2 -0
  153. package/dist/types/widgets/utils/index.d.ts +7 -0
  154. package/dist/types/widgets/wrapper/components/actions.d.ts +3 -0
  155. package/dist/types/widgets/wrapper/components/options.d.ts +3 -0
  156. package/dist/types/widgets/wrapper/components/title.d.ts +3 -0
  157. package/dist/types/widgets/wrapper/wrapper-ui.d.ts +14 -0
  158. package/dist/types/widgets/wrapper/wrapper.d.ts +14 -0
  159. package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
  160. package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
  161. package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
  162. package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
  163. package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
  164. package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
  165. package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
  166. package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
  167. package/dist/types/widgets-v2/actions/change-column/labels.d.ts +5 -0
  168. package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
  169. package/dist/types/widgets-v2/actions/change-column/style.d.ts +33 -0
  170. package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
  171. package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
  172. package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
  173. package/dist/types/widgets-v2/actions/download/icons.d.ts +12 -0
  174. package/dist/types/widgets-v2/actions/download/index.d.ts +6 -0
  175. package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
  176. package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
  177. package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
  178. package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
  179. package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +59 -0
  180. package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
  181. package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
  182. package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +48 -0
  183. package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
  184. package/dist/types/widgets-v2/actions/index.d.ts +9 -0
  185. package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
  186. package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
  187. package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +36 -0
  188. package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
  189. package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
  190. package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
  191. package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
  192. package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
  193. package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
  194. package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
  195. package/dist/types/widgets-v2/actions/relative-data/transforms.test.d.ts +1 -0
  196. package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
  197. package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
  198. package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
  199. package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
  200. package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
  201. package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
  202. package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
  203. package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
  204. package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
  205. package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
  206. package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
  207. package/dist/types/widgets-v2/actions/stack-toggle/transforms.test.d.ts +1 -0
  208. package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
  209. package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
  210. package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
  211. package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
  212. package/dist/types/widgets-v2/actions/zoom-toggle/transforms.test.d.ts +1 -0
  213. package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
  214. package/dist/types/widgets-v2/bar/download.d.ts +24 -0
  215. package/dist/types/widgets-v2/bar/index.d.ts +4 -0
  216. package/dist/types/widgets-v2/bar/options.d.ts +43 -0
  217. package/dist/types/widgets-v2/bar/options.test.d.ts +1 -0
  218. package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
  219. package/dist/types/widgets-v2/bar/types.d.ts +46 -0
  220. package/dist/types/widgets-v2/category/category-ui.d.ts +81 -0
  221. package/dist/types/widgets-v2/category/category.d.ts +48 -0
  222. package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
  223. package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
  224. package/dist/types/widgets-v2/category/components/category-legend.d.ts +18 -0
  225. package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
  226. package/dist/types/widgets-v2/category/components/category-row-other.d.ts +13 -0
  227. package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
  228. package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +38 -0
  229. package/dist/types/widgets-v2/category/download.d.ts +16 -0
  230. package/dist/types/widgets-v2/category/download.test.d.ts +1 -0
  231. package/dist/types/widgets-v2/category/index.d.ts +10 -0
  232. package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
  233. package/dist/types/widgets-v2/category/style.d.ts +166 -0
  234. package/dist/types/widgets-v2/category/types.d.ts +53 -0
  235. package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
  236. package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
  237. package/dist/types/widgets-v2/echart/index.d.ts +4 -0
  238. package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
  239. package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +1 -0
  240. package/dist/types/widgets-v2/echart/style.d.ts +6 -0
  241. package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +51 -0
  242. package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
  243. package/dist/types/widgets-v2/formula/download.d.ts +20 -0
  244. package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
  245. package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
  246. package/dist/types/widgets-v2/formula/index.d.ts +11 -0
  247. package/dist/types/widgets-v2/formula/note.d.ts +11 -0
  248. package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
  249. package/dist/types/widgets-v2/formula/series.d.ts +16 -0
  250. package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
  251. package/dist/types/widgets-v2/formula/style.d.ts +29 -0
  252. package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
  253. package/dist/types/widgets-v2/formula/types.d.ts +43 -0
  254. package/dist/types/widgets-v2/formula/value.d.ts +14 -0
  255. package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
  256. package/dist/types/widgets-v2/histogram/download.test.d.ts +1 -0
  257. package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
  258. package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
  259. package/dist/types/widgets-v2/histogram/options.test.d.ts +1 -0
  260. package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
  261. package/dist/types/widgets-v2/histogram/transforms.d.ts +17 -0
  262. package/dist/types/widgets-v2/histogram/transforms.test.d.ts +1 -0
  263. package/dist/types/widgets-v2/histogram/types.d.ts +51 -0
  264. package/dist/types/widgets-v2/index.d.ts +108 -0
  265. package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
  266. package/dist/types/widgets-v2/markdown/download.test.d.ts +1 -0
  267. package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
  268. package/dist/types/widgets-v2/markdown/markdown-content.d.ts +34 -0
  269. package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
  270. package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
  271. package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
  272. package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
  273. package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
  274. package/dist/types/widgets-v2/note/labels.d.ts +5 -0
  275. package/dist/types/widgets-v2/note/style.d.ts +26 -0
  276. package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
  277. package/dist/types/widgets-v2/pie/download.d.ts +17 -0
  278. package/dist/types/widgets-v2/pie/download.test.d.ts +1 -0
  279. package/dist/types/widgets-v2/pie/index.d.ts +4 -0
  280. package/dist/types/widgets-v2/pie/options.d.ts +35 -0
  281. package/dist/types/widgets-v2/pie/options.test.d.ts +1 -0
  282. package/dist/types/widgets-v2/pie/skeleton.d.ts +4 -0
  283. package/dist/types/widgets-v2/pie/types.d.ts +57 -0
  284. package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
  285. package/dist/types/widgets-v2/range/index.d.ts +4 -0
  286. package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
  287. package/dist/types/widgets-v2/range/range.d.ts +24 -0
  288. package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
  289. package/dist/types/widgets-v2/range/style.d.ts +40 -0
  290. package/dist/types/widgets-v2/range/types.d.ts +37 -0
  291. package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
  292. package/dist/types/widgets-v2/scatterplot/download.test.d.ts +1 -0
  293. package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
  294. package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
  295. package/dist/types/widgets-v2/scatterplot/options.test.d.ts +1 -0
  296. package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
  297. package/dist/types/widgets-v2/scatterplot/transforms.d.ts +17 -0
  298. package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +1 -0
  299. package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
  300. package/dist/types/widgets-v2/selection-summary/labels.d.ts +6 -0
  301. package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +22 -0
  302. package/dist/types/widgets-v2/selection-summary/style.d.ts +23 -0
  303. package/dist/types/widgets-v2/spread/download.d.ts +15 -0
  304. package/dist/types/widgets-v2/spread/download.test.d.ts +1 -0
  305. package/dist/types/widgets-v2/spread/index.d.ts +6 -0
  306. package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
  307. package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
  308. package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
  309. package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
  310. package/dist/types/widgets-v2/spread/types.d.ts +25 -0
  311. package/dist/types/widgets-v2/state/labels.d.ts +7 -0
  312. package/dist/types/widgets-v2/state/labels.test.d.ts +1 -0
  313. package/dist/types/widgets-v2/state/style.d.ts +19 -0
  314. package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
  315. package/dist/types/widgets-v2/stores/index.d.ts +8 -0
  316. package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
  317. package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +1 -0
  318. package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
  319. package/dist/types/widgets-v2/stores/transforms.test.d.ts +1 -0
  320. package/dist/types/widgets-v2/stores/types.d.ts +55 -0
  321. package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
  322. package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
  323. package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
  324. package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
  325. package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
  326. package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +1 -0
  327. package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
  328. package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
  329. package/dist/types/widgets-v2/table/download.d.ts +18 -0
  330. package/dist/types/widgets-v2/table/download.test.d.ts +1 -0
  331. package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
  332. package/dist/types/widgets-v2/table/helpers.test.d.ts +1 -0
  333. package/dist/types/widgets-v2/table/index.d.ts +7 -0
  334. package/dist/types/widgets-v2/table/labels.d.ts +22 -0
  335. package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
  336. package/dist/types/widgets-v2/table/style.d.ts +40 -0
  337. package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
  338. package/dist/types/widgets-v2/table/table.d.ts +50 -0
  339. package/dist/types/widgets-v2/table/types.d.ts +48 -0
  340. package/dist/types/widgets-v2/test-utils.d.ts +52 -0
  341. package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
  342. package/dist/types/widgets-v2/timeseries/download.test.d.ts +1 -0
  343. package/dist/types/widgets-v2/timeseries/index.d.ts +4 -0
  344. package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
  345. package/dist/types/widgets-v2/timeseries/options.test.d.ts +1 -0
  346. package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
  347. package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
  348. package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
  349. package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
  350. package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
  351. package/dist/types/widgets-v2/types.d.ts +25 -0
  352. package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
  353. package/dist/types/widgets-v2/utils/index.d.ts +3 -0
  354. package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
  355. package/dist/types/widgets-v2/utils/merge-options.test.d.ts +1 -0
  356. package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
  357. package/dist/types/widgets-v2/utils/resolve-theme-color.test.d.ts +1 -0
  358. package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
  359. package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
  360. package/dist/types/widgets-v2/wrapper/style.d.ts +111 -0
  361. package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
  362. package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
  363. package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +51 -0
  364. package/dist/use-transform-DXPN3nY7.js +110 -0
  365. package/dist/use-transform-DXPN3nY7.js.map +1 -0
  366. package/dist/use-widget-ref-Ddr_SlJJ.js +22 -0
  367. package/dist/use-widget-ref-Ddr_SlJJ.js.map +1 -0
  368. package/dist/use-widget-selector-DFl2hW0R.js +12 -0
  369. package/dist/use-widget-selector-DFl2hW0R.js.map +1 -0
  370. package/dist/{utils-idmvq0Oa.js → utils-BOhInag6.js} +95 -70
  371. package/dist/utils-BOhInag6.js.map +1 -0
  372. package/dist/widget-context-DTGO0Yta.js +13 -0
  373. package/dist/widget-context-DTGO0Yta.js.map +1 -0
  374. package/dist/widget-store-Bw5zRUGg.js +261 -0
  375. package/dist/widget-store-Bw5zRUGg.js.map +1 -0
  376. package/dist/widget-store-registry-_W4Z4xp-.js +178 -0
  377. package/dist/widget-store-registry-_W4Z4xp-.js.map +1 -0
  378. package/dist/widgets/actions.js +1120 -760
  379. package/dist/widgets/actions.js.map +1 -1
  380. package/dist/widgets/bar.js +87 -97
  381. package/dist/widgets/bar.js.map +1 -1
  382. package/dist/widgets/category.js +247 -236
  383. package/dist/widgets/category.js.map +1 -1
  384. package/dist/widgets/echart.js +100 -99
  385. package/dist/widgets/echart.js.map +1 -1
  386. package/dist/widgets/error.js +37 -2
  387. package/dist/widgets/error.js.map +1 -1
  388. package/dist/widgets/formula.js +78 -67
  389. package/dist/widgets/formula.js.map +1 -1
  390. package/dist/widgets/histogram.js +116 -92
  391. package/dist/widgets/histogram.js.map +1 -1
  392. package/dist/widgets/loader.js +53 -60
  393. package/dist/widgets/loader.js.map +1 -1
  394. package/dist/widgets/markdown.js +55 -53
  395. package/dist/widgets/markdown.js.map +1 -1
  396. package/dist/widgets/no-data.js +58 -2
  397. package/dist/widgets/no-data.js.map +1 -1
  398. package/dist/widgets/note.js +121 -2
  399. package/dist/widgets/note.js.map +1 -1
  400. package/dist/widgets/pie.js +148 -112
  401. package/dist/widgets/pie.js.map +1 -1
  402. package/dist/widgets/range.js +147 -144
  403. package/dist/widgets/range.js.map +1 -1
  404. package/dist/widgets/scatterplot.js +52 -65
  405. package/dist/widgets/scatterplot.js.map +1 -1
  406. package/dist/widgets/selection-summary.js.map +1 -1
  407. package/dist/widgets/skeleton-loader.js +18 -17
  408. package/dist/widgets/skeleton-loader.js.map +1 -1
  409. package/dist/widgets/spread.js +108 -90
  410. package/dist/widgets/spread.js.map +1 -1
  411. package/dist/widgets/stores.js +5 -2
  412. package/dist/widgets/stores.js.map +1 -1
  413. package/dist/widgets/subheader.js +29 -29
  414. package/dist/widgets/subheader.js.map +1 -1
  415. package/dist/widgets/table.js +429 -440
  416. package/dist/widgets/table.js.map +1 -1
  417. package/dist/widgets/timeseries.js +56 -69
  418. package/dist/widgets/timeseries.js.map +1 -1
  419. package/dist/widgets/toolbar-actions.js +50 -50
  420. package/dist/widgets/utils.js +34 -0
  421. package/dist/widgets/utils.js.map +1 -0
  422. package/dist/widgets/wrapper.js +156 -158
  423. package/dist/widgets/wrapper.js.map +1 -1
  424. package/dist/widgets-v2/actions.js +43 -0
  425. package/dist/widgets-v2/actions.js.map +1 -0
  426. package/dist/widgets-v2/bar.js +331 -0
  427. package/dist/widgets-v2/bar.js.map +1 -0
  428. package/dist/widgets-v2/category.js +105 -0
  429. package/dist/widgets-v2/category.js.map +1 -0
  430. package/dist/widgets-v2/echart.js +57 -0
  431. package/dist/widgets-v2/echart.js.map +1 -0
  432. package/dist/widgets-v2/formula.js +75 -0
  433. package/dist/widgets-v2/formula.js.map +1 -0
  434. package/dist/widgets-v2/histogram.js +354 -0
  435. package/dist/widgets-v2/histogram.js.map +1 -0
  436. package/dist/widgets-v2/markdown.js +69 -0
  437. package/dist/widgets-v2/markdown.js.map +1 -0
  438. package/dist/widgets-v2/pie.js +388 -0
  439. package/dist/widgets-v2/pie.js.map +1 -0
  440. package/dist/widgets-v2/range.js +52 -0
  441. package/dist/widgets-v2/range.js.map +1 -0
  442. package/dist/widgets-v2/scatterplot.js +412 -0
  443. package/dist/widgets-v2/scatterplot.js.map +1 -0
  444. package/dist/widgets-v2/spread.js +73 -0
  445. package/dist/widgets-v2/spread.js.map +1 -0
  446. package/dist/widgets-v2/stores.js +42 -0
  447. package/dist/widgets-v2/stores.js.map +1 -0
  448. package/dist/widgets-v2/table.js +79 -0
  449. package/dist/widgets-v2/table.js.map +1 -0
  450. package/dist/widgets-v2/timeseries.js +359 -0
  451. package/dist/widgets-v2/timeseries.js.map +1 -0
  452. package/dist/widgets-v2/utils.js +8 -0
  453. package/dist/widgets-v2/utils.js.map +1 -0
  454. package/dist/widgets-v2.js +954 -0
  455. package/dist/widgets-v2.js.map +1 -0
  456. package/package.json +82 -11
  457. package/src/chat/containers/chat-content.test.tsx +260 -6
  458. package/src/chat/containers/chat-content.tsx +137 -27
  459. package/src/chat/containers/chat-starter.tsx +2 -2
  460. package/src/chat/containers/styles.ts +9 -30
  461. package/src/chat/feedback/chat-tool-code-area.tsx +1 -1
  462. package/src/chat/feedback/chat-tool-group.tsx +1 -1
  463. package/src/chat/feedback/chat-tool-trace.tsx +6 -1
  464. package/src/chat/index.ts +1 -1
  465. package/src/chat/types.ts +36 -4
  466. package/src/components/basemaps/basemaps.tsx +20 -0
  467. package/src/components/geolocation-controls/geolocation-controls.tsx +11 -0
  468. package/src/components/lasso-tool/chip.test.tsx +176 -0
  469. package/src/components/lasso-tool/lasso-tool-inline.test.tsx +171 -0
  470. package/src/components/lasso-tool/lasso-tool-inline.tsx +17 -0
  471. package/src/components/lasso-tool/lasso-tool.test.tsx +198 -0
  472. package/src/components/lasso-tool/lasso-tool.tsx +21 -0
  473. package/src/components/list-data/list-data.test.tsx +73 -0
  474. package/src/components/list-data/list-data.tsx +16 -0
  475. package/src/components/measurement-tools/measurement-tools.tsx +20 -0
  476. package/src/components/no-data-alert/no-data-alert.test.tsx +38 -0
  477. package/src/components/responsive-drawer/responsive-drawer.test.tsx +68 -0
  478. package/src/components/smart-tooltip/smart-tooltip.tsx +17 -0
  479. package/src/components/tooltip/tooltip.tsx +13 -0
  480. package/src/components/zoom-controls/zoom-controls.tsx +16 -0
  481. package/src/hooks/index.ts +0 -1
  482. package/src/hooks/use-widget-ref.ts +10 -10
  483. package/src/widgets/README.md +13 -13
  484. package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
  485. package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
  486. package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
  487. package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
  488. package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
  489. package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
  490. package/src/widgets/actions/brush-toggle/style.ts +46 -0
  491. package/src/widgets/actions/brush-toggle/types.ts +78 -0
  492. package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
  493. package/src/widgets/actions/change-column/change-column.test.tsx +1 -1
  494. package/src/widgets/actions/change-column/change-column.tsx +15 -15
  495. package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
  496. package/src/widgets/actions/change-column/sortable-column-item.tsx +3 -1
  497. package/src/widgets/actions/download/download.test.tsx +1 -1
  498. package/src/widgets/actions/download/download.tsx +15 -3
  499. package/src/widgets/actions/download/exports.tsx +15 -0
  500. package/src/widgets/actions/fullscreen/fullscreen.tsx +20 -11
  501. package/src/widgets/actions/index.ts +21 -2
  502. package/src/widgets/actions/lock-selection/lock-selection.test.tsx +14 -0
  503. package/src/widgets/actions/lock-selection/lock-selection.tsx +26 -31
  504. package/src/widgets/actions/lock-selection/types.ts +2 -0
  505. package/src/widgets/actions/relative-data/relative-data.test.tsx +276 -1
  506. package/src/widgets/actions/relative-data/relative-data.tsx +113 -54
  507. package/src/widgets/actions/relative-data/types.ts +2 -0
  508. package/src/widgets/actions/searcher/searcher-toggle.tsx +11 -12
  509. package/src/widgets/actions/searcher/searcher.tsx +39 -42
  510. package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +4 -4
  511. package/src/widgets/actions/stack-toggle/stack-toggle.tsx +24 -32
  512. package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
  513. package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +62 -80
  514. package/src/widgets/bar/config.ts +39 -34
  515. package/src/widgets/bar/style.ts +1 -1
  516. package/src/widgets/category/category-ui.tsx +41 -34
  517. package/src/widgets/category/components/category-bar.tsx +3 -0
  518. package/src/widgets/category/components/category-legend.tsx +3 -0
  519. package/src/widgets/category/components/category-row-multi.tsx +9 -2
  520. package/src/widgets/category/components/category-row-other.tsx +3 -0
  521. package/src/widgets/category/components/category-row-single.tsx +8 -1
  522. package/src/widgets/category/components/category-rows.test.tsx +213 -0
  523. package/src/widgets/category/config.ts +11 -0
  524. package/src/widgets/category/index.ts +13 -14
  525. package/src/widgets/category/style.ts +1 -0
  526. package/src/widgets/category/types.ts +1 -0
  527. package/src/widgets/echart/echart-ui.test.tsx +20 -16
  528. package/src/widgets/echart/echart-ui.tsx +18 -14
  529. package/src/widgets/echart/echart.tsx +19 -27
  530. package/src/widgets/echart/options.ts +8 -4
  531. package/src/widgets/echart/shared-resize-observer.ts +45 -0
  532. package/src/widgets/echart/types.ts +5 -1
  533. package/src/widgets/echart/utils.test.ts +277 -0
  534. package/src/widgets/echart/utils.ts +94 -21
  535. package/src/widgets/error/error.tsx +17 -9
  536. package/src/widgets/formula/components/item.tsx +3 -0
  537. package/src/widgets/formula/components/prefix.tsx +7 -6
  538. package/src/widgets/formula/components/row.tsx +7 -4
  539. package/src/widgets/formula/components/series.tsx +7 -6
  540. package/src/widgets/formula/components/suffix.tsx +7 -6
  541. package/src/widgets/formula/components/value.tsx +13 -18
  542. package/src/widgets/formula/config.test.ts +37 -0
  543. package/src/widgets/formula/config.ts +11 -0
  544. package/src/widgets/formula/formula-ui.tsx +4 -1
  545. package/src/widgets/histogram/config.ts +99 -24
  546. package/src/widgets/histogram/index.ts +6 -1
  547. package/src/widgets/histogram/style.ts +1 -1
  548. package/src/widgets/histogram/types.ts +9 -3
  549. package/src/widgets/loader/loader.tsx +53 -44
  550. package/src/widgets/loader/utils.ts +26 -3
  551. package/src/widgets/markdown/config.ts +10 -0
  552. package/src/widgets/markdown/markdown-ui.tsx +7 -0
  553. package/src/widgets/markdown/markdown.tsx +7 -7
  554. package/src/widgets/no-data/no-data.test.tsx +90 -40
  555. package/src/widgets/no-data/no-data.tsx +12 -13
  556. package/src/widgets/no-data/types.ts +5 -1
  557. package/src/widgets/note/note.tsx +10 -0
  558. package/src/widgets/pie/config.ts +102 -33
  559. package/src/widgets/pie/style.ts +1 -1
  560. package/src/widgets/range/components/range-item.test.tsx +243 -0
  561. package/src/widgets/range/components/range-item.tsx +25 -20
  562. package/src/widgets/range/config.ts +5 -0
  563. package/src/widgets/range/range-ui.tsx +3 -0
  564. package/src/widgets/scatterplot/config.ts +21 -23
  565. package/src/widgets/scatterplot/style.ts +1 -1
  566. package/src/widgets/selection-summary/selection-summary.tsx +11 -0
  567. package/src/widgets/skeleton-loader/skeleton-loader.tsx +12 -5
  568. package/src/widgets/spread/components/max-value.tsx +18 -18
  569. package/src/widgets/spread/components/min-value.tsx +18 -18
  570. package/src/widgets/spread/components/separator.tsx +3 -0
  571. package/src/widgets/spread/config.ts +11 -0
  572. package/src/widgets/spread/spread-ui.tsx +4 -1
  573. package/src/widgets/stores/index.ts +4 -1
  574. package/src/widgets/stores/types.ts +12 -18
  575. package/src/widgets/stores/use-widget-selector.ts +47 -0
  576. package/src/widgets/stores/widget-store-branches.test.ts +275 -0
  577. package/src/widgets/stores/widget-store-performance.test.ts +750 -0
  578. package/src/widgets/stores/widget-store.test.ts +213 -13
  579. package/src/widgets/stores/widget-store.ts +240 -65
  580. package/src/widgets/subheader/subheader.tsx +22 -3
  581. package/src/widgets/table/config.test.ts +65 -0
  582. package/src/widgets/table/config.ts +8 -4
  583. package/src/widgets/table/hooks/use-pagination.ts +39 -55
  584. package/src/widgets/table/hooks/use-selection.ts +31 -26
  585. package/src/widgets/table/hooks/use-sort.ts +33 -42
  586. package/src/widgets/table/index.ts +6 -4
  587. package/src/widgets/table/table-ui.tsx +1 -1
  588. package/src/widgets/table/types.ts +1 -1
  589. package/src/widgets/timeseries/config.ts +34 -33
  590. package/src/widgets/timeseries/style.ts +1 -1
  591. package/src/widgets/utils/chart-config/download-config.ts +22 -0
  592. package/src/widgets/{_shared → utils}/chart-config/index.ts +6 -0
  593. package/src/widgets/utils/chart-config/option-builders.test.ts +332 -0
  594. package/src/widgets/{_shared → utils}/chart-config/option-builders.ts +79 -13
  595. package/src/widgets/utils/formatter.ts +2 -0
  596. package/src/widgets/utils/index.ts +26 -0
  597. package/src/widgets/wrapper/components/actions.tsx +3 -0
  598. package/src/widgets/wrapper/components/options.tsx +3 -0
  599. package/src/widgets/wrapper/components/title.tsx +3 -0
  600. package/src/widgets/wrapper/wrapper-ui.tsx +26 -13
  601. package/src/widgets/wrapper/wrapper.tsx +18 -6
  602. package/src/widgets-v2/PERFORMANCE.md +189 -0
  603. package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
  604. package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
  605. package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
  606. package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
  607. package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
  608. package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
  609. package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
  610. package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
  611. package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
  612. package/src/widgets-v2/actions/change-column/change-column.tsx +180 -0
  613. package/src/widgets-v2/actions/change-column/index.ts +7 -0
  614. package/src/widgets-v2/actions/change-column/labels.ts +9 -0
  615. package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +56 -0
  616. package/src/widgets-v2/actions/change-column/style.ts +32 -0
  617. package/src/widgets-v2/actions/change-column/types.ts +11 -0
  618. package/src/widgets-v2/actions/download/download.test.tsx +327 -0
  619. package/src/widgets-v2/actions/download/download.tsx +144 -0
  620. package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
  621. package/src/widgets-v2/actions/download/exports.ts +115 -0
  622. package/src/widgets-v2/actions/download/icons.tsx +26 -0
  623. package/src/widgets-v2/actions/download/index.ts +13 -0
  624. package/src/widgets-v2/actions/download/labels.ts +16 -0
  625. package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
  626. package/src/widgets-v2/actions/download/png-item.tsx +52 -0
  627. package/src/widgets-v2/actions/download/style.ts +3 -0
  628. package/src/widgets-v2/actions/download/types.ts +32 -0
  629. package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +150 -0
  630. package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +230 -0
  631. package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
  632. package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
  633. package/src/widgets-v2/actions/fullscreen/style.ts +59 -0
  634. package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
  635. package/src/widgets-v2/actions/index.ts +82 -0
  636. package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
  637. package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
  638. package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +187 -0
  639. package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +130 -0
  640. package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
  641. package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
  642. package/src/widgets-v2/actions/relative-data/index.ts +3 -0
  643. package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
  644. package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
  645. package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
  646. package/src/widgets-v2/actions/relative-data/style.ts +11 -0
  647. package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
  648. package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
  649. package/src/widgets-v2/actions/searcher/filter.ts +28 -0
  650. package/src/widgets-v2/actions/searcher/index.ts +8 -0
  651. package/src/widgets-v2/actions/searcher/labels.ts +13 -0
  652. package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
  653. package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
  654. package/src/widgets-v2/actions/searcher/searcher.tsx +112 -0
  655. package/src/widgets-v2/actions/searcher/style.ts +15 -0
  656. package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
  657. package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
  658. package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
  659. package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
  660. package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
  661. package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
  662. package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
  663. package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
  664. package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
  665. package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
  666. package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
  667. package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
  668. package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
  669. package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
  670. package/src/widgets-v2/bar/download.test.tsx +91 -0
  671. package/src/widgets-v2/bar/download.tsx +66 -0
  672. package/src/widgets-v2/bar/index.ts +10 -0
  673. package/src/widgets-v2/bar/options.test.ts +334 -0
  674. package/src/widgets-v2/bar/options.ts +332 -0
  675. package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
  676. package/src/widgets-v2/bar/skeleton.tsx +69 -0
  677. package/src/widgets-v2/bar/types.ts +51 -0
  678. package/src/widgets-v2/category/category-ui.test.tsx +746 -0
  679. package/src/widgets-v2/category/category-ui.tsx +389 -0
  680. package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
  681. package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
  682. package/src/widgets-v2/category/category.test.tsx +305 -0
  683. package/src/widgets-v2/category/category.tsx +121 -0
  684. package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
  685. package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
  686. package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
  687. package/src/widgets-v2/category/components/category-bar.tsx +49 -0
  688. package/src/widgets-v2/category/components/category-legend.test.tsx +51 -0
  689. package/src/widgets-v2/category/components/category-legend.tsx +39 -0
  690. package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
  691. package/src/widgets-v2/category/components/category-row-other.test.tsx +28 -0
  692. package/src/widgets-v2/category/components/category-row-other.tsx +33 -0
  693. package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
  694. package/src/widgets-v2/category/components/category-row-stacked.test.tsx +244 -0
  695. package/src/widgets-v2/category/components/category-row-stacked.tsx +99 -0
  696. package/src/widgets-v2/category/download.test.ts +71 -0
  697. package/src/widgets-v2/category/download.ts +54 -0
  698. package/src/widgets-v2/category/index.ts +32 -0
  699. package/src/widgets-v2/category/skeleton.test.tsx +26 -0
  700. package/src/widgets-v2/category/skeleton.tsx +74 -0
  701. package/src/widgets-v2/category/style.ts +290 -0
  702. package/src/widgets-v2/category/types.ts +59 -0
  703. package/src/widgets-v2/echart/echart-ui.test.tsx +232 -0
  704. package/src/widgets-v2/echart/echart-ui.tsx +184 -0
  705. package/src/widgets-v2/echart/echart.test.tsx +229 -0
  706. package/src/widgets-v2/echart/echart.tsx +199 -0
  707. package/src/widgets-v2/echart/index.ts +22 -0
  708. package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
  709. package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
  710. package/src/widgets-v2/echart/style.ts +8 -0
  711. package/src/widgets-v2/echart/use-chart-selection.test.tsx +118 -0
  712. package/src/widgets-v2/echart/use-chart-selection.ts +115 -0
  713. package/src/widgets-v2/formula/delta.tsx +61 -0
  714. package/src/widgets-v2/formula/download.test.tsx +65 -0
  715. package/src/widgets-v2/formula/download.tsx +69 -0
  716. package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
  717. package/src/widgets-v2/formula/formula-ui.tsx +66 -0
  718. package/src/widgets-v2/formula/formula.test.tsx +50 -0
  719. package/src/widgets-v2/formula/formula.tsx +34 -0
  720. package/src/widgets-v2/formula/index.ts +17 -0
  721. package/src/widgets-v2/formula/note.tsx +25 -0
  722. package/src/widgets-v2/formula/prefix.tsx +25 -0
  723. package/src/widgets-v2/formula/series.tsx +67 -0
  724. package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
  725. package/src/widgets-v2/formula/skeleton.tsx +27 -0
  726. package/src/widgets-v2/formula/style.ts +31 -0
  727. package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
  728. package/src/widgets-v2/formula/suffix.tsx +25 -0
  729. package/src/widgets-v2/formula/types.ts +48 -0
  730. package/src/widgets-v2/formula/value.tsx +31 -0
  731. package/src/widgets-v2/histogram/download.test.ts +94 -0
  732. package/src/widgets-v2/histogram/download.ts +60 -0
  733. package/src/widgets-v2/histogram/index.ts +10 -0
  734. package/src/widgets-v2/histogram/options.test.ts +318 -0
  735. package/src/widgets-v2/histogram/options.ts +338 -0
  736. package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
  737. package/src/widgets-v2/histogram/skeleton.tsx +70 -0
  738. package/src/widgets-v2/histogram/transforms.test.ts +46 -0
  739. package/src/widgets-v2/histogram/transforms.ts +30 -0
  740. package/src/widgets-v2/histogram/types.ts +55 -0
  741. package/src/widgets-v2/index.ts +204 -0
  742. package/src/widgets-v2/markdown/download.test.ts +66 -0
  743. package/src/widgets-v2/markdown/download.ts +53 -0
  744. package/src/widgets-v2/markdown/index.ts +6 -0
  745. package/src/widgets-v2/markdown/markdown-content.test.tsx +155 -0
  746. package/src/widgets-v2/markdown/markdown-content.tsx +72 -0
  747. package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
  748. package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
  749. package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
  750. package/src/widgets-v2/markdown/markdown.tsx +17 -0
  751. package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
  752. package/src/widgets-v2/markdown/skeleton.tsx +32 -0
  753. package/src/widgets-v2/markdown/style.ts +53 -0
  754. package/src/widgets-v2/markdown/types.ts +4 -0
  755. package/src/widgets-v2/note/labels.ts +9 -0
  756. package/src/widgets-v2/note/style.ts +26 -0
  757. package/src/widgets-v2/note/widget-note.test.tsx +158 -0
  758. package/src/widgets-v2/note/widget-note.tsx +172 -0
  759. package/src/widgets-v2/pie/download.test.ts +78 -0
  760. package/src/widgets-v2/pie/download.ts +55 -0
  761. package/src/widgets-v2/pie/index.ts +10 -0
  762. package/src/widgets-v2/pie/options.test.ts +601 -0
  763. package/src/widgets-v2/pie/options.ts +513 -0
  764. package/src/widgets-v2/pie/skeleton.test.tsx +17 -0
  765. package/src/widgets-v2/pie/skeleton.tsx +32 -0
  766. package/src/widgets-v2/pie/types.ts +62 -0
  767. package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
  768. package/src/widgets-v2/provider/widget-provider.tsx +111 -0
  769. package/src/widgets-v2/range/index.ts +4 -0
  770. package/src/widgets-v2/range/range-ui.test.tsx +136 -0
  771. package/src/widgets-v2/range/range-ui.tsx +278 -0
  772. package/src/widgets-v2/range/range.test.tsx +68 -0
  773. package/src/widgets-v2/range/range.tsx +52 -0
  774. package/src/widgets-v2/range/skeleton.test.tsx +17 -0
  775. package/src/widgets-v2/range/skeleton.tsx +47 -0
  776. package/src/widgets-v2/range/style.ts +41 -0
  777. package/src/widgets-v2/range/types.ts +37 -0
  778. package/src/widgets-v2/scatterplot/download.test.ts +71 -0
  779. package/src/widgets-v2/scatterplot/download.ts +54 -0
  780. package/src/widgets-v2/scatterplot/index.ts +11 -0
  781. package/src/widgets-v2/scatterplot/options.test.ts +411 -0
  782. package/src/widgets-v2/scatterplot/options.ts +425 -0
  783. package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
  784. package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
  785. package/src/widgets-v2/scatterplot/transforms.test.ts +97 -0
  786. package/src/widgets-v2/scatterplot/transforms.ts +38 -0
  787. package/src/widgets-v2/scatterplot/types.ts +59 -0
  788. package/src/widgets-v2/selection-summary/labels.ts +11 -0
  789. package/src/widgets-v2/selection-summary/selection-summary.test.tsx +53 -0
  790. package/src/widgets-v2/selection-summary/selection-summary.tsx +62 -0
  791. package/src/widgets-v2/selection-summary/style.ts +23 -0
  792. package/src/widgets-v2/spread/download.test.ts +64 -0
  793. package/src/widgets-v2/spread/download.ts +59 -0
  794. package/src/widgets-v2/spread/index.ts +6 -0
  795. package/src/widgets-v2/spread/separator.tsx +11 -0
  796. package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
  797. package/src/widgets-v2/spread/skeleton.tsx +38 -0
  798. package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
  799. package/src/widgets-v2/spread/spread-ui.tsx +52 -0
  800. package/src/widgets-v2/spread/spread.test.tsx +50 -0
  801. package/src/widgets-v2/spread/spread.tsx +31 -0
  802. package/src/widgets-v2/spread/types.ts +27 -0
  803. package/src/widgets-v2/state/labels.test.ts +33 -0
  804. package/src/widgets-v2/state/labels.ts +20 -0
  805. package/src/widgets-v2/state/style.ts +25 -0
  806. package/src/widgets-v2/state/widget-state.test.tsx +294 -0
  807. package/src/widgets-v2/state/widget-state.tsx +184 -0
  808. package/src/widgets-v2/stores/index.ts +49 -0
  809. package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
  810. package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
  811. package/src/widgets-v2/stores/transforms.test.ts +162 -0
  812. package/src/widgets-v2/stores/transforms.ts +70 -0
  813. package/src/widgets-v2/stores/types.ts +64 -0
  814. package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
  815. package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
  816. package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
  817. package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
  818. package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
  819. package/src/widgets-v2/stores/use-transform.ts +158 -0
  820. package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
  821. package/src/widgets-v2/stores/widget-context.ts +15 -0
  822. package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
  823. package/src/widgets-v2/stores/widget-store-registry.ts +248 -0
  824. package/src/widgets-v2/subheader/style.ts +12 -0
  825. package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
  826. package/src/widgets-v2/subheader/subheader.tsx +16 -0
  827. package/src/widgets-v2/table/download.test.ts +75 -0
  828. package/src/widgets-v2/table/download.ts +47 -0
  829. package/src/widgets-v2/table/helpers.test.ts +214 -0
  830. package/src/widgets-v2/table/helpers.ts +136 -0
  831. package/src/widgets-v2/table/index.ts +23 -0
  832. package/src/widgets-v2/table/labels.tsx +41 -0
  833. package/src/widgets-v2/table/skeleton.test.tsx +26 -0
  834. package/src/widgets-v2/table/skeleton.tsx +65 -0
  835. package/src/widgets-v2/table/style.ts +43 -0
  836. package/src/widgets-v2/table/table-ui.test.tsx +200 -0
  837. package/src/widgets-v2/table/table-ui.tsx +364 -0
  838. package/src/widgets-v2/table/table.test.tsx +119 -0
  839. package/src/widgets-v2/table/table.tsx +179 -0
  840. package/src/widgets-v2/table/types.ts +55 -0
  841. package/src/widgets-v2/test-utils.ts +107 -0
  842. package/src/widgets-v2/timeseries/download.test.ts +95 -0
  843. package/src/widgets-v2/timeseries/download.ts +86 -0
  844. package/src/widgets-v2/timeseries/index.ts +10 -0
  845. package/src/widgets-v2/timeseries/options.test.ts +394 -0
  846. package/src/widgets-v2/timeseries/options.ts +348 -0
  847. package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
  848. package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
  849. package/src/widgets-v2/timeseries/types.ts +65 -0
  850. package/src/widgets-v2/toolbox/labels.ts +9 -0
  851. package/src/widgets-v2/toolbox/style.ts +33 -0
  852. package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
  853. package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
  854. package/src/widgets-v2/types.ts +25 -0
  855. package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
  856. package/src/widgets-v2/utils/index.ts +3 -0
  857. package/src/widgets-v2/utils/merge-options.test.ts +52 -0
  858. package/src/widgets-v2/utils/merge-options.ts +50 -0
  859. package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
  860. package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
  861. package/src/widgets-v2/wrapper/index.ts +14 -0
  862. package/src/widgets-v2/wrapper/labels.ts +11 -0
  863. package/src/widgets-v2/wrapper/style.ts +134 -0
  864. package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
  865. package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
  866. package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
  867. package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
  868. package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +159 -0
  869. package/src/widgets-v2/wrapper/widget-wrapper.tsx +178 -0
  870. package/dist/error-CEkRPccv.js +0 -39
  871. package/dist/error-CEkRPccv.js.map +0 -1
  872. package/dist/index-BnyeR7Qx.js +0 -6601
  873. package/dist/index-BnyeR7Qx.js.map +0 -1
  874. package/dist/no-data-hR3KcJ-_.js +0 -60
  875. package/dist/no-data-hR3KcJ-_.js.map +0 -1
  876. package/dist/note-t51drNe0.js +0 -124
  877. package/dist/note-t51drNe0.js.map +0 -1
  878. package/dist/options-D9wflre6.js +0 -49
  879. package/dist/options-D9wflre6.js.map +0 -1
  880. package/dist/row-DTCV0Ocm.js +0 -35
  881. package/dist/row-DTCV0Ocm.js.map +0 -1
  882. package/dist/series-CYNOu2Ju.js +0 -91
  883. package/dist/series-CYNOu2Ju.js.map +0 -1
  884. package/dist/styles-CAroD5Rc.js +0 -123
  885. package/dist/styles-CAroD5Rc.js.map +0 -1
  886. package/dist/types/hooks/use-debounce.d.ts +0 -19
  887. package/dist/types/widgets/category/components/index.d.ts +0 -10
  888. package/dist/types/widgets/index.d.ts +0 -9
  889. package/dist/types/widgets/table/hooks/index.d.ts +0 -6
  890. package/dist/use-widget-ref-P-2i0MJG.js +0 -19
  891. package/dist/use-widget-ref-P-2i0MJG.js.map +0 -1
  892. package/dist/utils-idmvq0Oa.js.map +0 -1
  893. package/dist/widget-store-CzDt8oSK.js +0 -163
  894. package/dist/widget-store-CzDt8oSK.js.map +0 -1
  895. package/dist/widgets.js +0 -13
  896. package/dist/widgets.js.map +0 -1
  897. package/src/hooks/use-debounce.ts +0 -55
  898. package/src/widgets/_shared/chart-config/option-builders.test.ts +0 -40
  899. package/src/widgets/category/components/index.ts +0 -14
  900. package/src/widgets/index.ts +0 -25
  901. package/src/widgets/table/hooks/index.ts +0 -7
  902. /package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +0 -0
  903. /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
  904. /package/dist/types/widgets/{_shared → utils}/skeleton/index.d.ts +0 -0
  905. /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
  906. /package/dist/types/{widgets/_shared/chart-config/option-builders.test.d.ts → widgets-v2/actions/brush-toggle/transforms.test.d.ts} +0 -0
  907. /package/src/widgets/{_shared → utils}/chart-config/config-factory.ts +0 -0
  908. /package/src/widgets/{_shared → utils}/chart-config/csv-modifiers.ts +0 -0
  909. /package/src/widgets/{_shared → utils}/skeleton/index.ts +0 -0
  910. /package/src/widgets/{_shared → utils}/skeleton/styles.ts +0 -0
package/dist/chat.js CHANGED
@@ -1,45 +1,45 @@
1
- import { useRef as se, useState as Q, useEffect as ge, forwardRef as ae } from "react";
2
- import { jsx as a, jsxs as T, Fragment as ke } from "react/jsx-runtime";
3
- import { c as z } from "react/compiler-runtime";
4
- import { styled as ce, Typography as _, Box as y, Link as Se, ButtonBase as _e, Fab as Ae, IconButton as O, FilledInput as Ie, FormHelperText as $e, FormControl as Re, DialogTitle as Ee, DialogContent as Le, Dialog as De, createSvgIcon as de, Tooltip as ze, Button as le, Collapse as ie, CircularProgress as Be } from "@mui/material";
5
- import { ErrorOutline as xe, ArrowUpward as Fe, KeyboardArrowDown as Me, Close as be, StopCircleOutlined as We, ArrowUpwardOutlined as He, ThumbUp as Oe, ThumbUpOutlined as Pe, ThumbDown as Ve, ThumbDownOutlined as Ue, ArrowRight as ye, Error as je, CheckCircle as Ne, ChevronRight as Ge } from "@mui/icons-material";
6
- import { keyframes as N } from "@mui/material/styles";
7
- import { C as Xe } from "./copy-button-DGL1tyli.js";
8
- import { a as Ye } from "./index-BnyeR7Qx.js";
9
- const J = 768, Wt = 300, Ht = 100, Ke = 126;
10
- function Ot(t, e = {}) {
1
+ import { useRef as X, useState as N, useEffect as Z, forwardRef as ve, useImperativeHandle as Te } from "react";
2
+ import { jsx as c, jsxs as k, Fragment as we } from "react/jsx-runtime";
3
+ import { c as W } from "react/compiler-runtime";
4
+ import { styled as ae, Typography as A, Box as C, Link as ke, ButtonBase as Se, Fab as Ae, IconButton as H, FilledInput as _e, FormHelperText as Ie, FormControl as Ee, DialogTitle as Le, DialogContent as $e, Dialog as Re, Tooltip as De, Button as ie, Collapse as se, CircularProgress as Be } from "@mui/material";
5
+ import { ErrorOutline as he, ArrowUpward as Fe, KeyboardArrowDown as We, Close as ge, StopCircleOutlined as ze, ArrowUpwardOutlined as Me, ThumbUp as Oe, ThumbUpOutlined as He, ThumbDown as Pe, ThumbDownOutlined as Ve, ArrowRight as xe, Error as je, CheckCircle as Ue, ChevronRight as Ne } from "@mui/icons-material";
6
+ import { keyframes as ce } from "@mui/material/styles";
7
+ import { C as Ge } from "./copy-button-DGL1tyli.js";
8
+ import { OpenDiagonallyRight as Xe, McpTool as Ye } from "@carto/meridian-ds/custom-icons";
9
+ const Q = 768, _t = 300, It = 100, Ke = 126;
10
+ function Et(t, e = {}) {
11
11
  const {
12
- speed: o = 500,
12
+ speed: n = 500,
13
13
  skipAnimation: r = !1
14
- } = e, l = se(r), [n, u] = Q(() => l.current ? t.length : 0);
15
- return ge(() => {
14
+ } = e, l = X(r), [o, d] = N(() => l.current ? t.length : 0);
15
+ return Z(() => {
16
16
  if (l.current) {
17
- u(t.length);
17
+ d(t.length);
18
18
  return;
19
19
  }
20
- if (n >= t.length)
20
+ if (o >= t.length)
21
21
  return;
22
- const s = 1e3 / o;
23
- let i, c = null;
24
- function d(g) {
25
- c ??= g;
26
- const m = g - c, p = Math.floor(m / s);
27
- p > 0 && (c = g, u((f) => Math.min(f + p, t.length))), i = requestAnimationFrame(d);
22
+ const s = 1e3 / n;
23
+ let i, a = null;
24
+ function p(m) {
25
+ a ??= m;
26
+ const g = m - a, x = Math.floor(g / s);
27
+ x > 0 && (a = m, d((h) => Math.min(h + x, t.length))), i = requestAnimationFrame(p);
28
28
  }
29
- return i = requestAnimationFrame(d), () => cancelAnimationFrame(i);
30
- }, [t, n, o]), {
31
- displayedText: t.slice(0, n),
32
- isTyping: n < t.length
29
+ return i = requestAnimationFrame(p), () => cancelAnimationFrame(i);
30
+ }, [t, o, n]), {
31
+ displayedText: t.slice(0, o),
32
+ isTyping: o < t.length
33
33
  };
34
34
  }
35
- const Ce = ce(_)(() => ({
35
+ const be = ae(A)(() => ({
36
36
  whiteSpace: "pre-wrap",
37
37
  overflowX: "clip",
38
38
  overflowWrap: "break-word",
39
39
  maxWidth: "100%"
40
40
  }));
41
- Ce.displayName = "ChatMessageOverflow";
42
- const H = {
41
+ be.displayName = "ChatMessageOverflow";
42
+ const O = {
43
43
  agentMessageContainer: (t) => ({
44
44
  width: "100%",
45
45
  display: "flex",
@@ -231,120 +231,120 @@ const H = {
231
231
  }
232
232
  }
233
233
  };
234
- function Pt(t) {
235
- const e = z(11), {
236
- children: o,
234
+ function Lt(t) {
235
+ const e = W(11), {
236
+ children: n,
237
237
  muted: r,
238
238
  topContext: l,
239
- sx: n
240
- } = t, u = r === void 0 ? !1 : r;
239
+ sx: o
240
+ } = t, d = r === void 0 ? !1 : r;
241
241
  let s;
242
- e[0] !== l ? (s = l && /* @__PURE__ */ a(y, { sx: H.userMessageTop, children: l }), e[0] = l, e[1] = s) : s = e[1];
243
- const i = u ? H.muted : void 0;
244
- let c;
245
- e[2] !== n || e[3] !== i ? (c = {
246
- ...H.userMessage,
242
+ e[0] !== l ? (s = l && /* @__PURE__ */ c(C, { sx: O.userMessageTop, children: l }), e[0] = l, e[1] = s) : s = e[1];
243
+ const i = d ? O.muted : void 0;
244
+ let a;
245
+ e[2] !== o || e[3] !== i ? (a = {
246
+ ...O.userMessage,
247
247
  ...i,
248
- ...n
249
- }, e[2] = n, e[3] = i, e[4] = c) : c = e[4];
250
- let d;
251
- e[5] !== o || e[6] !== c ? (d = /* @__PURE__ */ a(Ce, { className: "PsChat--user-message-inner", variant: "body2", sx: c, children: o }), e[5] = o, e[6] = c, e[7] = d) : d = e[7];
252
- let g;
253
- return e[8] !== s || e[9] !== d ? (g = /* @__PURE__ */ T(y, { className: "PsChat--user-message", sx: H.userMessageContainer, children: [
248
+ ...o
249
+ }, e[2] = o, e[3] = i, e[4] = a) : a = e[4];
250
+ let p;
251
+ e[5] !== n || e[6] !== a ? (p = /* @__PURE__ */ c(be, { className: "PsChat--user-message-inner", variant: "body2", sx: a, children: n }), e[5] = n, e[6] = a, e[7] = p) : p = e[7];
252
+ let m;
253
+ return e[8] !== s || e[9] !== p ? (m = /* @__PURE__ */ k(C, { className: "PsChat--user-message", sx: O.userMessageContainer, children: [
254
254
  s,
255
- d
256
- ] }), e[8] = s, e[9] = d, e[10] = g) : g = e[10], g;
255
+ p
256
+ ] }), e[8] = s, e[9] = p, e[10] = m) : m = e[10], m;
257
257
  }
258
258
  const qe = (t) => {
259
- const e = z(6);
260
- let o, r;
259
+ const e = W(6);
260
+ let n, r;
261
261
  e[0] !== t ? ({
262
- className: o,
262
+ className: n,
263
263
  ...r
264
- } = t, e[0] = t, e[1] = o, e[2] = r) : (o = e[1], r = e[2]);
265
- const l = `PsChat--agent-message ${o ?? ""}`;
266
- let n;
267
- return e[3] !== r || e[4] !== l ? (n = /* @__PURE__ */ a(y, { className: l, ...r }), e[3] = r, e[4] = l, e[5] = n) : n = e[5], n;
268
- }, Je = ce(qe)(({
264
+ } = t, e[0] = t, e[1] = n, e[2] = r) : (n = e[1], r = e[2]);
265
+ const l = `PsChat--agent-message ${n ?? ""}`;
266
+ let o;
267
+ return e[3] !== r || e[4] !== l ? (o = /* @__PURE__ */ c(C, { className: l, ...r }), e[3] = r, e[4] = l, e[5] = o) : o = e[5], o;
268
+ }, Je = ae(qe)(({
269
269
  theme: t
270
- }) => H.agentMessageContainer(t));
270
+ }) => O.agentMessageContainer(t));
271
271
  Je.displayName = "ChatAgentMessage";
272
- function Vt(t) {
273
- const e = z(13), {
274
- errors: o,
272
+ function $t(t) {
273
+ const e = W(13), {
274
+ errors: n,
275
275
  icon: r,
276
276
  actions: l,
277
- sx: n
277
+ sx: o
278
278
  } = t;
279
- let u;
280
- e[0] !== n ? (u = {
281
- ...H.errorMessage,
282
- ...n
283
- }, e[0] = n, e[1] = u) : u = e[1];
279
+ let d;
280
+ e[0] !== o ? (d = {
281
+ ...O.errorMessage,
282
+ ...o
283
+ }, e[0] = o, e[1] = d) : d = e[1];
284
284
  let s;
285
- e[2] !== r ? (s = r ?? /* @__PURE__ */ a(xe, { fontSize: "medium", color: "error" }), e[2] = r, e[3] = s) : s = e[3];
285
+ e[2] !== r ? (s = r ?? /* @__PURE__ */ c(he, { fontSize: "medium", color: "error" }), e[2] = r, e[3] = s) : s = e[3];
286
286
  let i;
287
- e[4] !== o ? (i = o.map(Ze), e[4] = o, e[5] = i) : i = e[5];
288
- let c;
289
- e[6] !== l ? (c = l?.length ? /* @__PURE__ */ a(y, { sx: H.errorActions, children: (l ?? []).map(Qe) }) : null, e[6] = l, e[7] = c) : c = e[7];
290
- let d;
291
- return e[8] !== u || e[9] !== s || e[10] !== i || e[11] !== c ? (d = /* @__PURE__ */ T(y, { sx: u, children: [
287
+ e[4] !== n ? (i = n.map(Ze), e[4] = n, e[5] = i) : i = e[5];
288
+ let a;
289
+ e[6] !== l ? (a = l?.length ? /* @__PURE__ */ c(C, { sx: O.errorActions, children: (l ?? []).map(Qe) }) : null, e[6] = l, e[7] = a) : a = e[7];
290
+ let p;
291
+ return e[8] !== d || e[9] !== s || e[10] !== i || e[11] !== a ? (p = /* @__PURE__ */ k(C, { sx: d, children: [
292
292
  s,
293
293
  i,
294
- c
295
- ] }), e[8] = u, e[9] = s, e[10] = i, e[11] = c, e[12] = d) : d = e[12], d;
294
+ a
295
+ ] }), e[8] = d, e[9] = s, e[10] = i, e[11] = a, e[12] = p) : p = e[12], p;
296
296
  }
297
297
  function Qe(t, e) {
298
- return /* @__PURE__ */ T("span", { children: [
299
- e > 0 && /* @__PURE__ */ a(_, { component: "span", variant: "body2", sx: H.errorActionSeparator, children: "·" }),
300
- /* @__PURE__ */ a(Se, { component: "button", variant: "body2", onClick: t.onClick, sx: H.errorAction, children: t.label })
298
+ return /* @__PURE__ */ k("span", { children: [
299
+ e > 0 && /* @__PURE__ */ c(A, { component: "span", variant: "body2", sx: O.errorActionSeparator, children: "·" }),
300
+ /* @__PURE__ */ c(ke, { component: "button", variant: "body2", onClick: t.onClick, sx: O.errorAction, children: t.label })
301
301
  ] }, e);
302
302
  }
303
303
  function Ze(t, e) {
304
- return /* @__PURE__ */ a(_, { variant: "subtitle2", color: "error.relatedDark", children: t }, e);
304
+ return /* @__PURE__ */ c(A, { variant: "subtitle2", color: "error.relatedDark", children: t }, e);
305
305
  }
306
306
  function et(t) {
307
- const e = z(17);
308
- let o, r, l, n;
307
+ const e = W(17);
308
+ let n, r, l, o;
309
309
  e[0] !== t ? ({
310
310
  label: r,
311
- color: o,
312
- sx: n,
311
+ color: n,
312
+ sx: o,
313
313
  ...l
314
- } = t, e[0] = t, e[1] = o, e[2] = r, e[3] = l, e[4] = n) : (o = e[1], r = e[2], l = e[3], n = e[4]);
315
- let u;
316
- e[5] !== o ? (u = o ? {
317
- backgroundColor: o
318
- } : void 0, e[5] = o, e[6] = u) : u = e[6];
314
+ } = t, e[0] = t, e[1] = n, e[2] = r, e[3] = l, e[4] = o) : (n = e[1], r = e[2], l = e[3], o = e[4]);
315
+ let d;
316
+ e[5] !== n ? (d = n ? {
317
+ backgroundColor: n
318
+ } : void 0, e[5] = n, e[6] = d) : d = e[6];
319
319
  let s;
320
- e[7] !== n || e[8] !== u ? (s = {
321
- ...H.suggestionButton,
322
- ...u,
323
- ...n
324
- }, e[7] = n, e[8] = u, e[9] = s) : s = e[9];
320
+ e[7] !== o || e[8] !== d ? (s = {
321
+ ...O.suggestionButton,
322
+ ...d,
323
+ ...o
324
+ }, e[7] = o, e[8] = d, e[9] = s) : s = e[9];
325
325
  let i;
326
- e[10] !== r ? (i = /* @__PURE__ */ a(_, { color: "inherit", variant: "body2", children: r }), e[10] = r, e[11] = i) : i = e[11];
327
- let c;
328
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Fe, {}), e[12] = c) : c = e[12];
329
- let d;
330
- return e[13] !== l || e[14] !== s || e[15] !== i ? (d = /* @__PURE__ */ T(_e, { sx: s, ...l, children: [
326
+ e[10] !== r ? (i = /* @__PURE__ */ c(A, { color: "inherit", variant: "body2", children: r }), e[10] = r, e[11] = i) : i = e[11];
327
+ let a;
328
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ c(Fe, {}), e[12] = a) : a = e[12];
329
+ let p;
330
+ return e[13] !== l || e[14] !== s || e[15] !== i ? (p = /* @__PURE__ */ k(Se, { sx: s, ...l, children: [
331
331
  i,
332
- c
333
- ] }), e[13] = l, e[14] = s, e[15] = i, e[16] = d) : d = e[16], d;
332
+ a
333
+ ] }), e[13] = l, e[14] = s, e[15] = i, e[16] = p) : p = e[16], p;
334
334
  }
335
- const tt = N`
335
+ const tt = ce`
336
336
  0% {
337
337
  background-position: 150% 0;
338
338
  }
339
339
  100% {
340
340
  background-position: -50% 0;
341
341
  }
342
- `, ot = N`
342
+ `, nt = ce`
343
343
  0% { transform: scale(0.68); opacity: 0.7; }
344
344
  40% { transform: scale(1); opacity: 1; }
345
345
  80% { transform: scale(0.6); opacity: 0.65; }
346
346
  100% { transform: scale(0.68); opacity: 0.7; }
347
- `, nt = N`
347
+ `, ot = ce`
348
348
  0% { transform: scale(1); }
349
349
  40% { transform: scale(0.75); }
350
350
  80% { transform: scale(1.125); }
@@ -386,7 +386,7 @@ const tt = N`
386
386
  backgroundColor: ({
387
387
  palette: t
388
388
  }) => t.action.disabled,
389
- animation: `${ot} 1s ease-in-out infinite`
389
+ animation: `${nt} 1s ease-in-out infinite`
390
390
  },
391
391
  loaderInnerCircle: {
392
392
  position: "absolute",
@@ -396,7 +396,7 @@ const tt = N`
396
396
  backgroundColor: ({
397
397
  palette: t
398
398
  }) => t.text.primary,
399
- animation: `${nt} 1s ease-in-out infinite`
399
+ animation: `${ot} 1s ease-in-out infinite`
400
400
  },
401
401
  // --- Tool Trace styles ---
402
402
  traceHeader: {
@@ -631,66 +631,57 @@ const tt = N`
631
631
  }
632
632
  };
633
633
  function rt(t) {
634
- const e = z(6), {
635
- children: o,
634
+ const e = W(6), {
635
+ children: n,
636
636
  duration: r,
637
637
  sx: l
638
- } = t, n = o === void 0 ? "Thinking..." : o, s = `${(r === void 0 ? 2e3 : r) / 1e3}s`;
638
+ } = t, o = n === void 0 ? "Thinking..." : n, s = `${(r === void 0 ? 2e3 : r) / 1e3}s`;
639
639
  let i;
640
640
  e[0] !== s || e[1] !== l ? (i = {
641
641
  ...w.thinking,
642
642
  animationDuration: s,
643
643
  ...l
644
644
  }, e[0] = s, e[1] = l, e[2] = i) : i = e[2];
645
- let c;
646
- return e[3] !== n || e[4] !== i ? (c = /* @__PURE__ */ a(_, { variant: "body2", sx: i, children: n }), e[3] = n, e[4] = i, e[5] = c) : c = e[5], c;
645
+ let a;
646
+ return e[3] !== o || e[4] !== i ? (a = /* @__PURE__ */ c(A, { variant: "body2", sx: i, children: o }), e[3] = o, e[4] = i, e[5] = a) : a = e[5], a;
647
647
  }
648
- function Ut(t) {
649
- const e = z(16), {
650
- size: o,
648
+ function Rt(t) {
649
+ const e = W(16), {
650
+ size: n,
651
651
  labels: r,
652
652
  sx: l
653
- } = t, n = o === void 0 ? 24 : o;
654
- let u;
655
- e[0] !== r ? (u = r === void 0 ? {} : r, e[0] = r, e[1] = u) : u = e[1];
656
- const i = u.loading ?? "Loading";
657
- let c;
658
- e[2] !== n || e[3] !== l ? (c = {
653
+ } = t, o = n === void 0 ? 24 : n;
654
+ let d;
655
+ e[0] !== r ? (d = r === void 0 ? {} : r, e[0] = r, e[1] = d) : d = e[1];
656
+ const i = d.loading ?? "Loading";
657
+ let a;
658
+ e[2] !== o || e[3] !== l ? (a = {
659
659
  ...w.loader,
660
- width: n,
661
- height: n,
660
+ width: o,
661
+ height: o,
662
662
  ...l
663
- }, e[2] = n, e[3] = l, e[4] = c) : c = e[4];
664
- const d = n * 0.75, g = n * 0.75;
665
- let m;
666
- e[5] !== d || e[6] !== g ? (m = /* @__PURE__ */ a(y, { component: "span", sx: {
663
+ }, e[2] = o, e[3] = l, e[4] = a) : a = e[4];
664
+ const p = o * 0.75, m = o * 0.75;
665
+ let g;
666
+ e[5] !== p || e[6] !== m ? (g = /* @__PURE__ */ c(C, { component: "span", sx: {
667
667
  ...w.loaderOuterCircle,
668
- width: d,
669
- height: g
670
- } }), e[5] = d, e[6] = g, e[7] = m) : m = e[7];
671
- const p = n * 0.32, f = n * 0.32;
672
- let x;
673
- e[8] !== f || e[9] !== p ? (x = /* @__PURE__ */ a(y, { component: "span", sx: {
674
- ...w.loaderInnerCircle,
675
668
  width: p,
676
- height: f
677
- } }), e[8] = f, e[9] = p, e[10] = x) : x = e[10];
678
- let h;
679
- return e[11] !== x || e[12] !== i || e[13] !== c || e[14] !== m ? (h = /* @__PURE__ */ T(y, { role: "status", "aria-busy": !0, "aria-label": i, sx: c, children: [
680
- m,
681
- x
682
- ] }), e[11] = x, e[12] = i, e[13] = c, e[14] = m, e[15] = h) : h = e[15], h;
669
+ height: m
670
+ } }), e[5] = p, e[6] = m, e[7] = g) : g = e[7];
671
+ const x = o * 0.32, h = o * 0.32;
672
+ let u;
673
+ e[8] !== h || e[9] !== x ? (u = /* @__PURE__ */ c(C, { component: "span", sx: {
674
+ ...w.loaderInnerCircle,
675
+ width: x,
676
+ height: h
677
+ } }), e[8] = h, e[9] = x, e[10] = u) : u = e[10];
678
+ let f;
679
+ return e[11] !== u || e[12] !== i || e[13] !== a || e[14] !== g ? (f = /* @__PURE__ */ k(C, { role: "status", "aria-busy": !0, "aria-label": i, sx: a, children: [
680
+ g,
681
+ u
682
+ ] }), e[11] = u, e[12] = i, e[13] = a, e[14] = g, e[15] = f) : f = e[15], f;
683
683
  }
684
- const lt = N`
685
- 0% { border-top-color: transparent; border-bottom-color: var(--chat-border-color) }
686
- 0.1% { border-top-color: var(--chat-border-color); border-bottom-color: var(--chat-border-color) }
687
- 99.9% { border-top-color: var(--chat-border-color); border-bottom-color: var(--chat-border-color) }
688
- 100% { border-top-color: var(--chat-border-color); border-bottom-color: transparent }
689
- `, it = N`
690
- 0% { opacity: 1; pointer-events: auto }
691
- 95% { opacity: 1; pointer-events: auto }
692
- 100% { opacity: 0; pointer-events: none }
693
- `, M = {
684
+ const z = {
694
685
  header: {
695
686
  display: "flex",
696
687
  alignItems: "center",
@@ -724,11 +715,11 @@ const lt = N`
724
715
  footerCorner: {
725
716
  position: "absolute",
726
717
  bottom: "38px",
727
- right: `max(16px, calc(50% - ${J / 2}px + 6px))`,
718
+ right: `max(16px, calc(50% - ${Q / 2}px + 6px))`,
728
719
  margin: "0 auto"
729
720
  },
730
721
  footer: {
731
- maxWidth: J,
722
+ maxWidth: Q,
732
723
  margin: "0 auto",
733
724
  "&.MuiFilledInput-root.MuiInputBase-multiline.MuiInputBase-sizeSmall textarea": {
734
725
  resize: "none",
@@ -747,7 +738,7 @@ const lt = N`
747
738
  flex: 1,
748
739
  position: "relative",
749
740
  mx: "auto",
750
- maxWidth: J,
741
+ maxWidth: Q,
751
742
  width: "100%",
752
743
  maxHeight: "100%",
753
744
  pt: 1,
@@ -755,15 +746,14 @@ const lt = N`
755
746
  px: 2,
756
747
  display: "flex",
757
748
  flexDirection: "column",
758
- "--chat-border-color": ({
759
- palette: t
760
- }) => t.divider,
761
- borderTop: "1px solid transparent",
762
- borderBottom: "1px solid transparent",
763
- "@supports (animation-timeline: scroll())": {
764
- animation: `${lt} linear both`,
765
- animationTimeline: "scroll(self)"
766
- }
749
+ borderTopWidth: "1px",
750
+ borderTopStyle: "solid",
751
+ borderBottomWidth: "1px",
752
+ borderBottomStyle: "solid"
753
+ },
754
+ sentinel: {
755
+ height: "1px",
756
+ flexShrink: 0
767
757
  },
768
758
  jumpToLatestWrapper: {
769
759
  position: "sticky",
@@ -776,15 +766,7 @@ const lt = N`
776
766
  zIndex: 1
777
767
  },
778
768
  jumpToLatest: {
779
- opacity: 0,
780
- pointerEvents: "none",
781
- "@supports (animation-timeline: scroll())": {
782
- animation: `${it} linear both`,
783
- animationTimeline: "scroll(nearest)"
784
- },
785
- "@supports not (animation-timeline: scroll())": {
786
- display: "none"
787
- }
769
+ transition: "opacity 0.2s"
788
770
  },
789
771
  starter: {
790
772
  display: "flex",
@@ -795,7 +777,7 @@ const lt = N`
795
777
  spacing: t
796
778
  }) => t(3),
797
779
  textAlign: "center",
798
- maxWidth: J,
780
+ maxWidth: Q,
799
781
  margin: "0 auto"
800
782
  },
801
783
  starterItems: {
@@ -808,120 +790,166 @@ const lt = N`
808
790
  starterItemsTwoCol: {
809
791
  gridTemplateColumns: "repeat(2, 1fr)"
810
792
  }
811
- };
812
- function jt(t) {
813
- const e = z(12), {
814
- children: o,
815
- labels: r,
816
- sx: l
817
- } = t;
818
- let n;
819
- e[0] !== r ? (n = r === void 0 ? {} : r, e[0] = r, e[1] = n) : n = e[1];
820
- const u = n, s = se(null);
821
- let i;
822
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = () => {
823
- s.current?.scrollTo({
824
- top: s.current.scrollHeight,
793
+ }, lt = 32, it = ve(function({
794
+ children: e,
795
+ autoScroll: n = !0,
796
+ labels: r = {},
797
+ sx: l
798
+ }, o) {
799
+ const d = X(null), s = X(null), i = X(null), [a, p] = N(!0), [m, g] = N(!0), x = () => {
800
+ d.current?.scrollTo({
801
+ top: d.current.scrollHeight,
825
802
  behavior: "smooth"
826
803
  });
827
- }, e[2] = i) : i = e[2];
828
- const c = i;
829
- let d;
830
- e[3] !== l ? (d = {
831
- ...M.content,
804
+ }, h = () => {
805
+ d.current?.scrollTo({
806
+ top: 0,
807
+ behavior: "smooth"
808
+ });
809
+ };
810
+ return Te(o, () => ({
811
+ scrollToBottom: x,
812
+ scrollToTop: h,
813
+ isAtBottom: m,
814
+ isAtTop: a
815
+ }), [m, a]), Z(() => {
816
+ const u = d.current, f = s.current, b = i.current;
817
+ if (!u || !f || !b) return;
818
+ const v = new IntersectionObserver(([T]) => p(T?.isIntersecting ?? !0), {
819
+ root: u
820
+ }), y = new IntersectionObserver(([T]) => g(T?.isIntersecting ?? !0), {
821
+ root: u
822
+ });
823
+ return v.observe(f), y.observe(b), () => {
824
+ v.disconnect(), y.disconnect();
825
+ };
826
+ }, []), Z(() => {
827
+ if (!n) return;
828
+ const u = d.current;
829
+ if (!u) return;
830
+ let f = u.scrollHeight, b = null;
831
+ const v = () => {
832
+ b = null;
833
+ const T = u.scrollHeight;
834
+ if (T > f) {
835
+ const S = T - f;
836
+ T - u.scrollTop - u.clientHeight <= S + lt && u.scrollTo({
837
+ top: T,
838
+ behavior: "smooth"
839
+ });
840
+ }
841
+ f = T;
842
+ }, y = new MutationObserver(() => {
843
+ b ??= requestAnimationFrame(v);
844
+ });
845
+ return y.observe(u, {
846
+ childList: !0,
847
+ subtree: !0,
848
+ characterData: !0
849
+ }), () => {
850
+ y.disconnect(), b !== null && cancelAnimationFrame(b);
851
+ };
852
+ }, [n]), /* @__PURE__ */ k(C, { ref: d, sx: {
853
+ ...z.content,
854
+ borderTopColor: ({
855
+ palette: u
856
+ }) => a ? "transparent" : u.divider,
857
+ borderBottomColor: ({
858
+ palette: u
859
+ }) => m ? "transparent" : u.divider,
832
860
  ...l
833
- }, e[3] = l, e[4] = d) : d = e[4];
834
- const g = u.jumpToLatest ?? "Jump to latest";
835
- let m;
836
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(Me, {}), e[5] = m) : m = e[5];
837
- let p;
838
- e[6] !== g ? (p = /* @__PURE__ */ a(y, { sx: M.jumpToLatestWrapper, children: /* @__PURE__ */ a(Ae, { size: "small", onClick: c, "aria-label": g, sx: M.jumpToLatest, children: m }) }), e[6] = g, e[7] = p) : p = e[7];
839
- let f;
840
- return e[8] !== o || e[9] !== d || e[10] !== p ? (f = /* @__PURE__ */ T(y, { ref: s, sx: d, children: [
841
- o,
842
- p
843
- ] }), e[8] = o, e[9] = d, e[10] = p, e[11] = f) : f = e[11], f;
844
- }
845
- function Nt(t) {
846
- const e = z(14), {
847
- leftSlot: o,
861
+ }, children: [
862
+ /* @__PURE__ */ c(C, { ref: s, sx: z.sentinel, "aria-hidden": !0 }),
863
+ e,
864
+ /* @__PURE__ */ c(C, { ref: i, sx: z.sentinel, "aria-hidden": !0 }),
865
+ /* @__PURE__ */ c(C, { sx: z.jumpToLatestWrapper, children: /* @__PURE__ */ c(Ae, { size: "small", onClick: x, "aria-label": r.jumpToLatest ?? "Jump to latest", sx: {
866
+ ...z.jumpToLatest,
867
+ opacity: m ? 0 : 1,
868
+ pointerEvents: m ? "none" : "auto"
869
+ }, children: /* @__PURE__ */ c(We, {}) }) })
870
+ ] });
871
+ });
872
+ it.displayName = "ChatContent";
873
+ function Dt(t) {
874
+ const e = W(14), {
875
+ leftSlot: n,
848
876
  title: r,
849
877
  rightSlot: l,
850
- onClose: n,
851
- sx: u
878
+ onClose: o,
879
+ sx: d
852
880
  } = t;
853
881
  let s;
854
- e[0] !== u ? (s = {
855
- ...M.header,
856
- ...u
857
- }, e[0] = u, e[1] = s) : s = e[1];
882
+ e[0] !== d ? (s = {
883
+ ...z.header,
884
+ ...d
885
+ }, e[0] = d, e[1] = s) : s = e[1];
858
886
  let i;
859
- e[2] !== r ? (i = /* @__PURE__ */ a(_, { variant: "subtitle2", sx: M.headerTitle, children: r }), e[2] = r, e[3] = i) : i = e[3];
860
- let c;
861
- e[4] !== n ? (c = n && /* @__PURE__ */ a(O, { size: "medium", onClick: n, "aria-label": "Close", children: /* @__PURE__ */ a(be, {}) }), e[4] = n, e[5] = c) : c = e[5];
862
- let d;
863
- e[6] !== l || e[7] !== c ? (d = /* @__PURE__ */ T(y, { sx: M.headerActions, children: [
887
+ e[2] !== r ? (i = /* @__PURE__ */ c(A, { variant: "subtitle2", sx: z.headerTitle, children: r }), e[2] = r, e[3] = i) : i = e[3];
888
+ let a;
889
+ e[4] !== o ? (a = o && /* @__PURE__ */ c(H, { size: "medium", onClick: o, "aria-label": "Close", children: /* @__PURE__ */ c(ge, {}) }), e[4] = o, e[5] = a) : a = e[5];
890
+ let p;
891
+ e[6] !== l || e[7] !== a ? (p = /* @__PURE__ */ k(C, { sx: z.headerActions, children: [
864
892
  l,
865
- c
866
- ] }), e[6] = l, e[7] = c, e[8] = d) : d = e[8];
867
- let g;
868
- return e[9] !== o || e[10] !== s || e[11] !== i || e[12] !== d ? (g = /* @__PURE__ */ T(y, { sx: s, children: [
869
- o,
893
+ a
894
+ ] }), e[6] = l, e[7] = a, e[8] = p) : p = e[8];
895
+ let m;
896
+ return e[9] !== n || e[10] !== s || e[11] !== i || e[12] !== p ? (m = /* @__PURE__ */ k(C, { sx: s, children: [
897
+ n,
870
898
  i,
871
- d
872
- ] }), e[9] = o, e[10] = s, e[11] = i, e[12] = d, e[13] = g) : g = e[13], g;
899
+ p
900
+ ] }), e[9] = n, e[10] = s, e[11] = i, e[12] = p, e[13] = m) : m = e[13], m;
873
901
  }
874
902
  const st = "Responses are AI generated. Please verify key information.";
875
- function Gt(t) {
876
- const e = z(35), {
877
- value: o,
903
+ function Bt(t) {
904
+ const e = W(35), {
905
+ value: n,
878
906
  onChange: r,
879
907
  onSend: l,
880
- onStop: n,
881
- isGenerating: u,
908
+ onStop: o,
909
+ isGenerating: d,
882
910
  disabled: s,
883
911
  placeholder: i,
884
- labels: c,
885
- caption: d,
886
- sx: g
887
- } = t, m = u === void 0 ? !1 : u, p = s === void 0 ? !1 : s, f = i === void 0 ? "Type a message..." : i;
888
- let x;
889
- e[0] !== c ? (x = c === void 0 ? {} : c, e[0] = c, e[1] = x) : x = e[1];
890
- const h = x, b = d === void 0 ? st : d;
912
+ labels: a,
913
+ caption: p,
914
+ sx: m
915
+ } = t, g = d === void 0 ? !1 : d, x = s === void 0 ? !1 : s, h = i === void 0 ? "Type a message..." : i;
916
+ let u;
917
+ e[0] !== a ? (u = a === void 0 ? {} : a, e[0] = a, e[1] = u) : u = e[1];
918
+ const f = u, b = p === void 0 ? st : p;
891
919
  let v;
892
- e[2] !== p || e[3] !== m || e[4] !== o ? (v = o.trim() && !p && !m, e[2] = p, e[3] = m, e[4] = o, e[5] = v) : v = e[5];
893
- const C = v;
894
- let k;
895
- e[6] !== C || e[7] !== l ? (k = (W) => {
896
- W.key === "Enter" && !W.shiftKey && (W.preventDefault(), C && l());
897
- }, e[6] = C, e[7] = l, e[8] = k) : k = e[8];
898
- const S = k;
899
- let I;
900
- e[9] !== g ? (I = {
901
- ...M.footerWrapper,
902
- ...g
903
- }, e[9] = g, e[10] = I) : I = e[10];
920
+ e[2] !== x || e[3] !== g || e[4] !== n ? (v = n.trim() && !x && !g, e[2] = x, e[3] = g, e[4] = n, e[5] = v) : v = e[5];
921
+ const y = v;
922
+ let T;
923
+ e[6] !== y || e[7] !== l ? (T = (M) => {
924
+ M.key === "Enter" && !M.shiftKey && (M.preventDefault(), y && l());
925
+ }, e[6] = y, e[7] = l, e[8] = T) : T = e[8];
926
+ const S = T;
927
+ let _;
928
+ e[9] !== m ? (_ = {
929
+ ...z.footerWrapper,
930
+ ...m
931
+ }, e[9] = m, e[10] = _) : _ = e[10];
932
+ let E;
933
+ e[11] !== r ? (E = (M) => r(M.target.value), e[11] = r, e[12] = E) : E = e[12];
934
+ const L = x || g;
904
935
  let $;
905
- e[11] !== r ? ($ = (W) => r(W.target.value), e[11] = r, e[12] = $) : $ = e[12];
906
- const R = p || m;
907
- let A;
908
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
936
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
909
937
  minHeight: 0
910
- }, e[13] = A) : A = e[13];
911
- let E;
912
- e[14] !== S || e[15] !== f || e[16] !== $ || e[17] !== R || e[18] !== o ? (E = /* @__PURE__ */ a(Ie, { multiline: !0, value: o, onChange: $, onKeyDown: S, placeholder: f, disabled: R, sx: M.footer, style: A, fullWidth: !0, size: "small" }), e[14] = S, e[15] = f, e[16] = $, e[17] = R, e[18] = o, e[19] = E) : E = e[19];
938
+ }, e[13] = $) : $ = e[13];
939
+ let I;
940
+ e[14] !== S || e[15] !== h || e[16] !== E || e[17] !== L || e[18] !== n ? (I = /* @__PURE__ */ c(_e, { multiline: !0, value: n, onChange: E, onKeyDown: S, placeholder: h, disabled: L, sx: z.footer, style: $, fullWidth: !0, size: "small" }), e[14] = S, e[15] = h, e[16] = E, e[17] = L, e[18] = n, e[19] = I) : I = e[19];
913
941
  let B;
914
- e[20] !== C || e[21] !== p || e[22] !== m || e[23] !== h.send || e[24] !== h.stop || e[25] !== l || e[26] !== n ? (B = /* @__PURE__ */ a(y, { sx: M.footerCorner, children: m && n ? /* @__PURE__ */ a(O, { size: "small", onClick: n, disabled: p, "aria-label": h.stop ?? "Stop", children: /* @__PURE__ */ a(We, {}) }) : /* @__PURE__ */ a(O, { size: "small", variant: "contained", onClick: l, disabled: !C, "aria-label": h.send ?? "Send", children: /* @__PURE__ */ a(He, {}) }) }), e[20] = C, e[21] = p, e[22] = m, e[23] = h.send, e[24] = h.stop, e[25] = l, e[26] = n, e[27] = B) : B = e[27];
915
- let L;
916
- e[28] !== b ? (L = b ? /* @__PURE__ */ a($e, { sx: M.footerCaption, children: b }) : null, e[28] = b, e[29] = L) : L = e[29];
942
+ e[20] !== y || e[21] !== x || e[22] !== g || e[23] !== f.send || e[24] !== f.stop || e[25] !== l || e[26] !== o ? (B = /* @__PURE__ */ c(C, { sx: z.footerCorner, children: g && o ? /* @__PURE__ */ c(H, { size: "small", onClick: o, disabled: x, "aria-label": f.stop ?? "Stop", children: /* @__PURE__ */ c(ze, {}) }) : /* @__PURE__ */ c(H, { size: "small", variant: "contained", onClick: l, disabled: !y, "aria-label": f.send ?? "Send", children: /* @__PURE__ */ c(Me, {}) }) }), e[20] = y, e[21] = x, e[22] = g, e[23] = f.send, e[24] = f.stop, e[25] = l, e[26] = o, e[27] = B) : B = e[27];
943
+ let R;
944
+ e[28] !== b ? (R = b ? /* @__PURE__ */ c(Ie, { sx: z.footerCaption, children: b }) : null, e[28] = b, e[29] = R) : R = e[29];
917
945
  let D;
918
- return e[30] !== E || e[31] !== B || e[32] !== L || e[33] !== I ? (D = /* @__PURE__ */ T(Re, { fullWidth: !0, sx: I, children: [
919
- E,
946
+ return e[30] !== I || e[31] !== B || e[32] !== R || e[33] !== _ ? (D = /* @__PURE__ */ k(Ee, { fullWidth: !0, sx: _, children: [
947
+ I,
920
948
  B,
921
- L
922
- ] }), e[30] = E, e[31] = B, e[32] = L, e[33] = I, e[34] = D) : D = e[34], D;
949
+ R
950
+ ] }), e[30] = I, e[31] = B, e[32] = R, e[33] = _, e[34] = D) : D = e[34], D;
923
951
  }
924
- const ue = [
952
+ const de = [
925
953
  "#C9DB7440",
926
954
  // pastel green
927
955
  "#FE88B140",
@@ -931,105 +959,105 @@ const ue = [
931
959
  "#F6CF7140"
932
960
  // pastel yellow
933
961
  ];
934
- function Xt(t) {
935
- const e = z(40), {
936
- icon: o,
962
+ function Ft(t) {
963
+ const e = W(40), {
964
+ icon: n,
937
965
  title: r,
938
966
  description: l,
939
- items: n,
940
- size: u,
967
+ items: o,
968
+ size: d,
941
969
  onSelect: s,
942
970
  sx: i
943
- } = t, c = u === void 0 ? "small" : u;
944
- let d, g, m, p, f, x, h, b;
945
- if (e[0] !== l || e[1] !== o || e[2] !== n || e[3] !== s || e[4] !== c || e[5] !== i || e[6] !== r) {
946
- const k = n.map(at);
947
- g = y;
948
- const S = c === "small" ? 1 : 2;
949
- e[15] !== i || e[16] !== S ? (f = {
950
- ...M.starter,
971
+ } = t, a = d === void 0 ? "small" : d;
972
+ let p, m, g, x, h, u, f, b;
973
+ if (e[0] !== l || e[1] !== n || e[2] !== o || e[3] !== s || e[4] !== a || e[5] !== i || e[6] !== r) {
974
+ const T = o.map(at);
975
+ m = C;
976
+ const S = a === "small" ? 1 : 2;
977
+ e[15] !== i || e[16] !== S ? (h = {
978
+ ...z.starter,
951
979
  gap: S,
952
980
  ...i
953
- }, e[15] = i, e[16] = S, e[17] = f) : f = e[17], x = o, e[18] !== c || e[19] !== r ? (h = r && /* @__PURE__ */ a(_, { variant: c === "small" ? "h6" : "h5", children: r }), e[18] = c, e[19] = r, e[20] = h) : h = e[20], e[21] !== l || e[22] !== c ? (b = l && /* @__PURE__ */ a(_, { variant: c === "small" ? "body2" : "body1", color: "text.secondary", children: l }), e[21] = l, e[22] = c, e[23] = b) : b = e[23], d = y;
954
- const I = c === "small" ? 1 : 2, $ = n.length > 2 ? M.starterItemsTwoCol : void 0;
955
- e[24] !== $ || e[25] !== I ? (m = {
956
- ...M.starterItems,
957
- gap: I,
958
- ...$
959
- }, e[24] = $, e[25] = I, e[26] = m) : m = e[26];
960
- let R;
961
- e[27] !== s ? (R = (A) => /* @__PURE__ */ a(et, { label: A.label, onClick: () => s?.(A.label), color: A.color }, A.label), e[27] = s, e[28] = R) : R = e[28], p = k.map(R), e[0] = l, e[1] = o, e[2] = n, e[3] = s, e[4] = c, e[5] = i, e[6] = r, e[7] = d, e[8] = g, e[9] = m, e[10] = p, e[11] = f, e[12] = x, e[13] = h, e[14] = b;
981
+ }, e[15] = i, e[16] = S, e[17] = h) : h = e[17], u = n, e[18] !== a || e[19] !== r ? (f = r && /* @__PURE__ */ c(A, { variant: a === "small" ? "h6" : "h5", children: r }), e[18] = a, e[19] = r, e[20] = f) : f = e[20], e[21] !== l || e[22] !== a ? (b = l && /* @__PURE__ */ c(A, { variant: a === "small" ? "body2" : "body1", color: "text.secondary", children: l }), e[21] = l, e[22] = a, e[23] = b) : b = e[23], p = C;
982
+ const _ = a === "small" ? 1 : 2, E = o.length > 2 ? z.starterItemsTwoCol : void 0;
983
+ e[24] !== E || e[25] !== _ ? (g = {
984
+ ...z.starterItems,
985
+ gap: _,
986
+ ...E
987
+ }, e[24] = E, e[25] = _, e[26] = g) : g = e[26];
988
+ let L;
989
+ e[27] !== s ? (L = ($, I) => /* @__PURE__ */ c(et, { label: $.label, onClick: () => s?.($.label), color: $.color }, I), e[27] = s, e[28] = L) : L = e[28], x = T.map(L), e[0] = l, e[1] = n, e[2] = o, e[3] = s, e[4] = a, e[5] = i, e[6] = r, e[7] = p, e[8] = m, e[9] = g, e[10] = x, e[11] = h, e[12] = u, e[13] = f, e[14] = b;
962
990
  } else
963
- d = e[7], g = e[8], m = e[9], p = e[10], f = e[11], x = e[12], h = e[13], b = e[14];
991
+ p = e[7], m = e[8], g = e[9], x = e[10], h = e[11], u = e[12], f = e[13], b = e[14];
964
992
  let v;
965
- e[29] !== d || e[30] !== m || e[31] !== p ? (v = /* @__PURE__ */ a(d, { sx: m, children: p }), e[29] = d, e[30] = m, e[31] = p, e[32] = v) : v = e[32];
966
- let C;
967
- return e[33] !== g || e[34] !== f || e[35] !== x || e[36] !== h || e[37] !== b || e[38] !== v ? (C = /* @__PURE__ */ T(g, { sx: f, children: [
968
- x,
969
- h,
993
+ e[29] !== p || e[30] !== g || e[31] !== x ? (v = /* @__PURE__ */ c(p, { sx: g, children: x }), e[29] = p, e[30] = g, e[31] = x, e[32] = v) : v = e[32];
994
+ let y;
995
+ return e[33] !== m || e[34] !== h || e[35] !== u || e[36] !== f || e[37] !== b || e[38] !== v ? (y = /* @__PURE__ */ k(m, { sx: h, children: [
996
+ u,
997
+ f,
970
998
  b,
971
999
  v
972
- ] }), e[33] = g, e[34] = f, e[35] = x, e[36] = h, e[37] = b, e[38] = v, e[39] = C) : C = e[39], C;
1000
+ ] }), e[33] = m, e[34] = h, e[35] = u, e[36] = f, e[37] = b, e[38] = v, e[39] = y) : y = e[39], y;
973
1001
  }
974
1002
  function at(t, e) {
975
1003
  return typeof t == "string" ? {
976
1004
  label: t,
977
- color: ue[e]
1005
+ color: de[e]
978
1006
  } : {
979
1007
  label: t.label,
980
- color: t.color ?? ue[e]
1008
+ color: t.color ?? de[e]
981
1009
  };
982
1010
  }
983
- const Yt = ce(y)(({
1011
+ const Wt = ae(C)(({
984
1012
  theme: t
985
1013
  }) => ({
986
1014
  display: "flex",
987
1015
  alignItems: "center",
988
1016
  gap: t.spacing(0.5)
989
1017
  }));
990
- function Kt(t) {
991
- const e = z(25), {
992
- rating: o,
1018
+ function zt(t) {
1019
+ const e = W(25), {
1020
+ rating: n,
993
1021
  onRatingChange: r,
994
1022
  labels: l
995
1023
  } = t;
996
- let n;
997
- e[0] !== l ? (n = l === void 0 ? {} : l, e[0] = l, e[1] = n) : n = e[1];
998
- const u = n;
1024
+ let o;
1025
+ e[0] !== l ? (o = l === void 0 ? {} : l, e[0] = l, e[1] = o) : o = e[1];
1026
+ const d = o;
999
1027
  let s;
1000
- e[2] !== r || e[3] !== o ? (s = () => r?.(o === "up" ? null : "up"), e[2] = r, e[3] = o, e[4] = s) : s = e[4];
1001
- const i = u.thumbUp ?? "Thumbs up", c = o === "up" ? "primary" : void 0;
1002
- let d;
1003
- e[5] !== o ? (d = o === "up" ? /* @__PURE__ */ a(Oe, { fontSize: "small" }) : /* @__PURE__ */ a(Pe, { fontSize: "small" }), e[5] = o, e[6] = d) : d = e[6];
1004
- let g;
1005
- e[7] !== s || e[8] !== i || e[9] !== c || e[10] !== d ? (g = /* @__PURE__ */ a(O, { size: "small", onClick: s, "aria-label": i, color: c, children: d }), e[7] = s, e[8] = i, e[9] = c, e[10] = d, e[11] = g) : g = e[11];
1028
+ e[2] !== r || e[3] !== n ? (s = () => r?.(n === "up" ? null : "up"), e[2] = r, e[3] = n, e[4] = s) : s = e[4];
1029
+ const i = d.thumbUp ?? "Thumbs up", a = n === "up" ? "primary" : void 0;
1030
+ let p;
1031
+ e[5] !== n ? (p = n === "up" ? /* @__PURE__ */ c(Oe, { fontSize: "small" }) : /* @__PURE__ */ c(He, { fontSize: "small" }), e[5] = n, e[6] = p) : p = e[6];
1006
1032
  let m;
1007
- e[12] !== r || e[13] !== o ? (m = () => r?.(o === "down" ? null : "down"), e[12] = r, e[13] = o, e[14] = m) : m = e[14];
1008
- const p = u.thumbDown ?? "Thumbs down", f = o === "down" ? "primary" : void 0;
1009
- let x;
1010
- e[15] !== o ? (x = o === "down" ? /* @__PURE__ */ a(Ve, { fontSize: "small" }) : /* @__PURE__ */ a(Ue, { fontSize: "small" }), e[15] = o, e[16] = x) : x = e[16];
1011
- let h;
1012
- e[17] !== f || e[18] !== x || e[19] !== m || e[20] !== p ? (h = /* @__PURE__ */ a(O, { size: "small", onClick: m, "aria-label": p, color: f, children: x }), e[17] = f, e[18] = x, e[19] = m, e[20] = p, e[21] = h) : h = e[21];
1033
+ e[7] !== s || e[8] !== i || e[9] !== a || e[10] !== p ? (m = /* @__PURE__ */ c(H, { size: "small", onClick: s, "aria-label": i, color: a, children: p }), e[7] = s, e[8] = i, e[9] = a, e[10] = p, e[11] = m) : m = e[11];
1034
+ let g;
1035
+ e[12] !== r || e[13] !== n ? (g = () => r?.(n === "down" ? null : "down"), e[12] = r, e[13] = n, e[14] = g) : g = e[14];
1036
+ const x = d.thumbDown ?? "Thumbs down", h = n === "down" ? "primary" : void 0;
1037
+ let u;
1038
+ e[15] !== n ? (u = n === "down" ? /* @__PURE__ */ c(Pe, { fontSize: "small" }) : /* @__PURE__ */ c(Ve, { fontSize: "small" }), e[15] = n, e[16] = u) : u = e[16];
1039
+ let f;
1040
+ e[17] !== h || e[18] !== u || e[19] !== g || e[20] !== x ? (f = /* @__PURE__ */ c(H, { size: "small", onClick: g, "aria-label": x, color: h, children: u }), e[17] = h, e[18] = u, e[19] = g, e[20] = x, e[21] = f) : f = e[21];
1013
1041
  let b;
1014
- return e[22] !== h || e[23] !== g ? (b = /* @__PURE__ */ T(ke, { children: [
1015
- g,
1016
- h
1017
- ] }), e[22] = h, e[23] = g, e[24] = b) : b = e[24], b;
1042
+ return e[22] !== f || e[23] !== m ? (b = /* @__PURE__ */ k(we, { children: [
1043
+ m,
1044
+ f
1045
+ ] }), e[22] = f, e[23] = m, e[24] = b) : b = e[24], b;
1018
1046
  }
1019
1047
  const ct = /^-?\d/;
1020
1048
  function dt(t) {
1021
1049
  const e = [];
1022
- let o = 0, r;
1023
- const l = /* @__PURE__ */ new Set(), n = /("(?:[^"\\]|\\.)*")\s*:/g;
1024
- let u;
1025
- for (; (u = n.exec(t)) !== null; )
1026
- l.add(u.index);
1050
+ let n = 0, r;
1051
+ const l = /* @__PURE__ */ new Set(), o = /("(?:[^"\\]|\\.)*")\s*:/g;
1052
+ let d;
1053
+ for (; (d = o.exec(t)) !== null; )
1054
+ l.add(d.index);
1027
1055
  const s = (
1028
1056
  // eslint-disable-next-line no-useless-escape
1029
1057
  /"(?:[^"\\]|\\.)*"|\b(?:true|false)\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|[{}\[\]:,]/g
1030
1058
  );
1031
1059
  for (; (r = s.exec(t)) !== null; ) {
1032
- r.index > o && e.push(t.slice(o, r.index));
1060
+ r.index > n && e.push(t.slice(n, r.index));
1033
1061
  const i = r[0];
1034
1062
  i.startsWith('"') ? l.has(r.index) ? e.push({
1035
1063
  type: "key",
@@ -1049,218 +1077,140 @@ function dt(t) {
1049
1077
  }) : e.push({
1050
1078
  type: "punctuation",
1051
1079
  value: i
1052
- }), o = r.index + i.length;
1080
+ }), n = r.index + i.length;
1053
1081
  }
1054
- return o < t.length && e.push(t.slice(o)), e;
1082
+ return n < t.length && e.push(t.slice(n)), e;
1055
1083
  }
1056
1084
  function ut(t) {
1057
- const e = z(24), {
1058
- open: o,
1085
+ const e = W(24), {
1086
+ open: n,
1059
1087
  onClose: r,
1060
1088
  title: l,
1061
- content: n
1089
+ content: o
1062
1090
  } = t;
1063
- let u;
1064
- e[0] !== n ? (u = n.split(`
1065
- `).map(mt), e[0] = n, e[1] = u) : u = e[1];
1066
- const s = u;
1091
+ let d;
1092
+ e[0] !== o ? (d = o.split(`
1093
+ `).map(mt), e[0] = o, e[1] = d) : d = e[1];
1094
+ const s = d;
1067
1095
  let i;
1068
1096
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
1069
1097
  sx: w.fullViewPaper
1070
1098
  }, e[2] = i) : i = e[2];
1071
- let c;
1072
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
1099
+ let a;
1100
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
1073
1101
  display: "flex",
1074
1102
  alignItems: "center",
1075
1103
  gap: 0.5
1076
- }, e[3] = c) : c = e[3];
1077
- let d;
1078
- e[4] !== n ? (d = /* @__PURE__ */ a(Xe, { copyText: n, "aria-label": "Copy content" }), e[4] = n, e[5] = d) : d = e[5];
1079
- let g;
1080
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(be, {}), e[6] = g) : g = e[6];
1081
- let m;
1082
- e[7] !== r ? (m = /* @__PURE__ */ a(O, { onClick: r, "aria-label": "close", children: g }), e[7] = r, e[8] = m) : m = e[8];
1104
+ }, e[3] = a) : a = e[3];
1083
1105
  let p;
1084
- e[9] !== d || e[10] !== m ? (p = /* @__PURE__ */ T(y, { sx: c, children: [
1085
- d,
1086
- m
1087
- ] }), e[9] = d, e[10] = m, e[11] = p) : p = e[11];
1088
- let f;
1089
- e[12] !== p || e[13] !== l ? (f = /* @__PURE__ */ T(Ee, { sx: w.fullViewTitle, children: [
1090
- l,
1091
- p
1092
- ] }), e[12] = p, e[13] = l, e[14] = f) : f = e[14];
1106
+ e[4] !== o ? (p = /* @__PURE__ */ c(Ge, { copyText: o, "aria-label": "Copy content" }), e[4] = o, e[5] = p) : p = e[5];
1107
+ let m;
1108
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ c(ge, {}), e[6] = m) : m = e[6];
1109
+ let g;
1110
+ e[7] !== r ? (g = /* @__PURE__ */ c(H, { onClick: r, "aria-label": "close", children: m }), e[7] = r, e[8] = g) : g = e[8];
1093
1111
  let x;
1094
- e[15] !== s ? (x = s.map(pt), e[15] = s, e[16] = x) : x = e[16];
1112
+ e[9] !== p || e[10] !== g ? (x = /* @__PURE__ */ k(C, { sx: a, children: [
1113
+ p,
1114
+ g
1115
+ ] }), e[9] = p, e[10] = g, e[11] = x) : x = e[11];
1095
1116
  let h;
1096
- e[17] !== x ? (h = /* @__PURE__ */ a(Le, { sx: w.fullViewDialogContent, children: /* @__PURE__ */ a(y, { component: "pre", sx: w.fullViewPre, children: x }) }), e[17] = x, e[18] = h) : h = e[18];
1117
+ e[12] !== x || e[13] !== l ? (h = /* @__PURE__ */ k(Le, { sx: w.fullViewTitle, children: [
1118
+ l,
1119
+ x
1120
+ ] }), e[12] = x, e[13] = l, e[14] = h) : h = e[14];
1121
+ let u;
1122
+ e[15] !== s ? (u = s.map(ft), e[15] = s, e[16] = u) : u = e[16];
1123
+ let f;
1124
+ e[17] !== u ? (f = /* @__PURE__ */ c($e, { sx: w.fullViewDialogContent, children: /* @__PURE__ */ c(C, { component: "pre", sx: w.fullViewPre, children: u }) }), e[17] = u, e[18] = f) : f = e[18];
1097
1125
  let b;
1098
- return e[19] !== r || e[20] !== o || e[21] !== h || e[22] !== f ? (b = /* @__PURE__ */ T(De, { open: o, onClose: r, sx: w.fullViewDialog, PaperProps: i, fullScreen: !0, children: [
1099
- f,
1100
- h
1101
- ] }), e[19] = r, e[20] = o, e[21] = h, e[22] = f, e[23] = b) : b = e[23], b;
1126
+ return e[19] !== r || e[20] !== n || e[21] !== f || e[22] !== h ? (b = /* @__PURE__ */ k(Re, { open: n, onClose: r, sx: w.fullViewDialog, PaperProps: i, fullScreen: !0, children: [
1127
+ h,
1128
+ f
1129
+ ] }), e[19] = r, e[20] = n, e[21] = f, e[22] = h, e[23] = b) : b = e[23], b;
1102
1130
  }
1103
- function pt(t, e) {
1104
- return /* @__PURE__ */ T(y, { component: "span", sx: w.fullViewLine, children: [
1105
- t.map(ft),
1131
+ function ft(t, e) {
1132
+ return /* @__PURE__ */ k(C, { component: "span", sx: w.fullViewLine, children: [
1133
+ t.map(pt),
1106
1134
  `
1107
1135
  `
1108
1136
  ] }, e);
1109
1137
  }
1110
- function ft(t, e) {
1111
- return typeof t == "string" ? t : /* @__PURE__ */ a(y, { component: "span", sx: w[`syntaxToken_${t.type}`], children: t.value }, e);
1138
+ function pt(t, e) {
1139
+ return typeof t == "string" ? t : /* @__PURE__ */ c(C, { component: "span", sx: w[`syntaxToken_${t.type}`], children: t.value }, e);
1112
1140
  }
1113
1141
  function mt(t) {
1114
1142
  return dt(t);
1115
1143
  }
1116
- const ht = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1117
- "path",
1118
- {
1119
- fill: "currentColor",
1120
- fillRule: "evenodd",
1121
- d: "M12.01 11.83 15.18 15l1.41-1.41L12.01 9l-4.59 4.59L8.84 15z",
1122
- clipRule: "evenodd"
1123
- }
1124
- ) }), gt = de(ht(), "ArrowUp");
1125
- function xt({ width: t, height: e, sx: o, ...r }, l) {
1126
- return /* @__PURE__ */ a(
1127
- gt,
1128
- {
1129
- ref: l,
1130
- viewBox: "0 0 24 24",
1131
- sx: {
1132
- width: t,
1133
- height: e || t,
1134
- ...o
1135
- },
1136
- ...r
1137
- }
1138
- );
1139
- }
1140
- const bt = ae(xt);
1141
- bt.displayName = "ArrowUp";
1142
- const yt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1143
- "path",
1144
- {
1145
- fill: "currentColor",
1146
- fillRule: "evenodd",
1147
- d: "m6.121 19.293 2.877-2.877V19H11v-6l-6 .007v1.994l2.584.001-2.877 2.877zM13 11l6-.007V8.999h-2.585l2.878-2.878-1.414-1.414L15 7.585V5H13z",
1148
- clipRule: "evenodd"
1149
- }
1150
- ) }), Ct = de(yt(), "CloseDiagonallyRight");
1151
- function vt({ width: t, height: e, sx: o, ...r }, l) {
1152
- return /* @__PURE__ */ a(
1153
- Ct,
1154
- {
1155
- ref: l,
1156
- viewBox: "0 0 24 24",
1157
- sx: {
1158
- width: t,
1159
- height: e || t,
1160
- ...o
1161
- },
1162
- ...r
1163
- }
1164
- );
1165
- }
1166
- const wt = ae(vt);
1167
- wt.displayName = "CloseDiagonallyRight";
1168
- const Tt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1169
- "path",
1170
- {
1171
- fill: "currentColor",
1172
- fillRule: "evenodd",
1173
- d: "m14.121 11.293 2.877-2.877V11H19V5l-6 .007v1.994l2.584.001-2.877 2.877zM5 19l6-.007v-1.994H8.415l2.878-2.878-1.414-1.414L7 15.585V13H5z",
1174
- clipRule: "evenodd"
1175
- }
1176
- ) }), kt = de(Tt(), "OpenDiagonallyRight");
1177
- function St({ width: t, height: e, sx: o, ...r }, l) {
1178
- return /* @__PURE__ */ a(
1179
- kt,
1180
- {
1181
- ref: l,
1182
- viewBox: "0 0 24 24",
1183
- sx: {
1184
- width: t,
1185
- height: e || t,
1186
- ...o
1187
- },
1188
- ...r
1189
- }
1190
- );
1191
- }
1192
- const ve = ae(St);
1193
- ve.displayName = "OpenDiagonallyRight";
1194
- function pe(t) {
1195
- const e = z(28), {
1196
- content: o,
1144
+ function ue(t) {
1145
+ const e = W(28), {
1146
+ content: n,
1197
1147
  title: r,
1198
1148
  isError: l,
1199
- labels: n,
1200
- sx: u
1149
+ labels: o,
1150
+ sx: d
1201
1151
  } = t, s = r === void 0 ? "" : r, i = l === void 0 ? !1 : l;
1202
- let c;
1203
- e[0] !== n ? (c = n === void 0 ? {} : n, e[0] = n, e[1] = c) : c = e[1];
1204
- const d = c, g = se(null), [m, p] = Q(!1), [f, x] = Q(!1);
1205
- let h;
1206
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
1207
- const D = g.current;
1208
- D && p(D.scrollHeight > D.clientHeight);
1209
- }, e[2] = h) : h = e[2];
1210
- const b = h;
1152
+ let a;
1153
+ e[0] !== o ? (a = o === void 0 ? {} : o, e[0] = o, e[1] = a) : a = e[1];
1154
+ const p = a, m = X(null), [g, x] = N(!1), [h, u] = N(!1);
1155
+ let f;
1156
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => {
1157
+ const D = m.current;
1158
+ D && x(D.scrollHeight > D.clientHeight);
1159
+ }, e[2] = f) : f = e[2];
1160
+ const b = f;
1211
1161
  let v;
1212
1162
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
1213
1163
  b();
1214
- const D = g.current;
1164
+ const D = m.current;
1215
1165
  if (!D)
1216
1166
  return;
1217
- const W = new ResizeObserver(b);
1218
- return W.observe(D), () => W.disconnect();
1167
+ const M = new ResizeObserver(b);
1168
+ return M.observe(D), () => M.disconnect();
1219
1169
  }, e[3] = v) : v = e[3];
1220
- let C;
1221
- e[4] !== o ? (C = [b, o], e[4] = o, e[5] = C) : C = e[5], ge(v, C);
1222
- const k = d.fullView ?? "Full view";
1170
+ let y;
1171
+ e[4] !== n ? (y = [b, n], e[4] = n, e[5] = y) : y = e[5], Z(v, y);
1172
+ const T = p.fullView ?? "Full view";
1223
1173
  let S;
1224
- e[6] !== u ? (S = {
1174
+ e[6] !== d ? (S = {
1225
1175
  ...w.codeArea,
1226
- ...u
1227
- }, e[6] = u, e[7] = S) : S = e[7];
1228
- let I;
1229
- e[8] !== i ? (I = i ? w.codeAreaPreError : {}, e[8] = i, e[9] = I) : I = e[9];
1230
- let $;
1231
- e[10] !== I ? ($ = {
1176
+ ...d
1177
+ }, e[6] = d, e[7] = S) : S = e[7];
1178
+ let _;
1179
+ e[8] !== i ? (_ = i ? w.codeAreaPreError : {}, e[8] = i, e[9] = _) : _ = e[9];
1180
+ let E;
1181
+ e[10] !== _ ? (E = {
1232
1182
  ...w.codeAreaPre,
1233
1183
  maxHeight: Ke,
1234
- ...I
1235
- }, e[10] = I, e[11] = $) : $ = e[11];
1236
- let R;
1237
- e[12] !== o || e[13] !== $ ? (R = /* @__PURE__ */ a(y, { component: "pre", ref: g, sx: $, children: o }), e[12] = o, e[13] = $, e[14] = R) : R = e[14];
1238
- let A;
1239
- e[15] !== k || e[16] !== m ? (A = m && /* @__PURE__ */ a(ze, { title: k, children: /* @__PURE__ */ a(O, { size: "small", onClick: () => x(!0), sx: w.codeAreaFullViewButton, children: /* @__PURE__ */ a(ve, {}) }) }), e[15] = k, e[16] = m, e[17] = A) : A = e[17];
1240
- let E;
1241
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => x(!1), e[18] = E) : E = e[18];
1242
- let B;
1243
- e[19] !== o || e[20] !== f || e[21] !== s ? (B = /* @__PURE__ */ a(ut, { open: f, onClose: E, title: s, content: o }), e[19] = o, e[20] = f, e[21] = s, e[22] = B) : B = e[22];
1184
+ ..._
1185
+ }, e[10] = _, e[11] = E) : E = e[11];
1244
1186
  let L;
1245
- return e[23] !== R || e[24] !== A || e[25] !== B || e[26] !== S ? (L = /* @__PURE__ */ T(y, { sx: S, children: [
1246
- R,
1247
- A,
1187
+ e[12] !== n || e[13] !== E ? (L = /* @__PURE__ */ c(C, { component: "pre", ref: m, sx: E, children: n }), e[12] = n, e[13] = E, e[14] = L) : L = e[14];
1188
+ let $;
1189
+ e[15] !== T || e[16] !== g ? ($ = g && /* @__PURE__ */ c(De, { title: T, children: /* @__PURE__ */ c(H, { size: "small", onClick: () => u(!0), sx: w.codeAreaFullViewButton, children: /* @__PURE__ */ c(Xe, {}) }) }), e[15] = T, e[16] = g, e[17] = $) : $ = e[17];
1190
+ let I;
1191
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => u(!1), e[18] = I) : I = e[18];
1192
+ let B;
1193
+ e[19] !== n || e[20] !== h || e[21] !== s ? (B = /* @__PURE__ */ c(ut, { open: h, onClose: I, title: s, content: n }), e[19] = n, e[20] = h, e[21] = s, e[22] = B) : B = e[22];
1194
+ let R;
1195
+ return e[23] !== L || e[24] !== $ || e[25] !== B || e[26] !== S ? (R = /* @__PURE__ */ k(C, { sx: S, children: [
1196
+ L,
1197
+ $,
1248
1198
  B
1249
- ] }), e[23] = R, e[24] = A, e[25] = B, e[26] = S, e[27] = L) : L = e[27], L;
1199
+ ] }), e[23] = L, e[24] = $, e[25] = B, e[26] = S, e[27] = R) : R = e[27], R;
1250
1200
  }
1251
1201
  function fe(t) {
1252
1202
  const e = t.replace(/_/g, " ");
1253
1203
  return e.charAt(0).toUpperCase() + e.slice(1);
1254
1204
  }
1255
- function we(t) {
1205
+ function ye(t) {
1256
1206
  return t.status === "running" ? t.runningLabel ?? fe(t.name) : t.label ?? fe(t.name);
1257
1207
  }
1258
- function _t(t) {
1259
- const e = z(9), {
1260
- status: o,
1208
+ function ht(t) {
1209
+ const e = W(9), {
1210
+ status: n,
1261
1211
  labels: r
1262
1212
  } = t;
1263
- switch (o) {
1213
+ switch (n) {
1264
1214
  case "complete": {
1265
1215
  let l;
1266
1216
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
@@ -1268,16 +1218,16 @@ function _t(t) {
1268
1218
  alignItems: "center",
1269
1219
  gap: 0.5
1270
1220
  }, e[0] = l) : l = e[0];
1271
- let n;
1272
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ a(Ne, { sx: {
1221
+ let o;
1222
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(Ue, { sx: {
1273
1223
  fontSize: 12
1274
- }, color: "success" }), e[1] = n) : n = e[1];
1275
- const u = r?.success ?? "Success";
1224
+ }, color: "success" }), e[1] = o) : o = e[1];
1225
+ const d = r?.success ?? "Success";
1276
1226
  let s;
1277
- return e[2] !== u ? (s = /* @__PURE__ */ T(y, { sx: l, children: [
1278
- n,
1279
- /* @__PURE__ */ a(_, { variant: "caption", children: u })
1280
- ] }), e[2] = u, e[3] = s) : s = e[3], s;
1227
+ return e[2] !== d ? (s = /* @__PURE__ */ k(C, { sx: l, children: [
1228
+ o,
1229
+ /* @__PURE__ */ c(A, { variant: "caption", children: d })
1230
+ ] }), e[2] = d, e[3] = s) : s = e[3], s;
1281
1231
  }
1282
1232
  case "error": {
1283
1233
  let l;
@@ -1286,273 +1236,272 @@ function _t(t) {
1286
1236
  alignItems: "center",
1287
1237
  gap: 0.5
1288
1238
  }, e[4] = l) : l = e[4];
1289
- let n;
1290
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ a(je, { sx: {
1239
+ let o;
1240
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(je, { sx: {
1291
1241
  fontSize: 12
1292
- }, color: "error" }), e[5] = n) : n = e[5];
1293
- const u = r?.error ?? "Error";
1242
+ }, color: "error" }), e[5] = o) : o = e[5];
1243
+ const d = r?.error ?? "Error";
1294
1244
  let s;
1295
- return e[6] !== u ? (s = /* @__PURE__ */ T(y, { sx: l, children: [
1296
- n,
1297
- /* @__PURE__ */ a(_, { variant: "code3", children: u })
1298
- ] }), e[6] = u, e[7] = s) : s = e[7], s;
1245
+ return e[6] !== d ? (s = /* @__PURE__ */ k(C, { sx: l, children: [
1246
+ o,
1247
+ /* @__PURE__ */ c(A, { variant: "code3", children: d })
1248
+ ] }), e[6] = d, e[7] = s) : s = e[7], s;
1299
1249
  }
1300
1250
  case "running": {
1301
1251
  let l;
1302
- return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ a(Be, { size: 14 }), e[8] = l) : l = e[8], l;
1252
+ return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ c(Be, { size: 14 }), e[8] = l) : l = e[8], l;
1303
1253
  }
1304
1254
  default:
1305
1255
  return null;
1306
1256
  }
1307
1257
  }
1308
- function Te(t) {
1309
- const e = z(33), {
1310
- tool: o,
1258
+ function Ce(t) {
1259
+ const e = W(33), {
1260
+ tool: n,
1311
1261
  labels: r
1312
1262
  } = t;
1313
1263
  let l;
1314
1264
  e[0] !== r ? (l = r === void 0 ? {} : r, e[0] = r, e[1] = l) : l = e[1];
1315
- const n = l, u = o.status === "error", s = n.toolExecuted ?? "Tool executed", i = n.reference ?? "Reference:", c = n.duration ?? "Duration:", d = n.status ?? "Status:", g = n.inputArguments ?? "Input arguments:", m = n.output ?? "Output:";
1316
- let p;
1317
- e[2] !== i || e[3] !== o.reference ? (p = o.reference && /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1318
- /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: i }),
1319
- /* @__PURE__ */ T(y, { sx: w.traceReference, children: [
1320
- /* @__PURE__ */ a(Ye, { color: "success" }),
1321
- /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, children: o.reference })
1265
+ const o = l, d = n.status === "error", s = o.toolExecuted ?? "Tool executed", i = o.reference ?? "Reference:", a = o.duration ?? "Duration:", p = o.status ?? "Status:", m = o.inputArguments ?? "Input arguments:", g = o.output ?? "Output:";
1266
+ let x;
1267
+ e[2] !== i || e[3] !== n.reference ? (x = n.reference && /* @__PURE__ */ k(C, { sx: w.traceField, children: [
1268
+ /* @__PURE__ */ c(A, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: i }),
1269
+ /* @__PURE__ */ k(C, { sx: w.traceReference, children: [
1270
+ /* @__PURE__ */ c(Ye, { color: "success" }),
1271
+ /* @__PURE__ */ c(A, { variant: "code3", fontWeight: 600, children: n.reference })
1322
1272
  ] })
1323
- ] }), e[2] = i, e[3] = o.reference, e[4] = p) : p = e[4];
1324
- let f;
1325
- e[5] !== c || e[6] !== o.duration ? (f = o.duration != null && /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1326
- /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: c }),
1327
- /* @__PURE__ */ T(_, { variant: "code3", children: [
1328
- o.duration,
1273
+ ] }), e[2] = i, e[3] = n.reference, e[4] = x) : x = e[4];
1274
+ let h;
1275
+ e[5] !== a || e[6] !== n.duration ? (h = n.duration != null && /* @__PURE__ */ k(C, { sx: w.traceField, children: [
1276
+ /* @__PURE__ */ c(A, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: a }),
1277
+ /* @__PURE__ */ k(A, { variant: "code3", children: [
1278
+ n.duration,
1329
1279
  "s"
1330
1280
  ] })
1331
- ] }), e[5] = c, e[6] = o.duration, e[7] = f) : f = e[7];
1332
- let x;
1333
- e[8] !== d ? (x = /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: d }), e[8] = d, e[9] = x) : x = e[9];
1334
- let h;
1335
- e[10] !== n || e[11] !== o.status ? (h = /* @__PURE__ */ a(_t, { status: o.status, labels: n }), e[10] = n, e[11] = o.status, e[12] = h) : h = e[12];
1281
+ ] }), e[5] = a, e[6] = n.duration, e[7] = h) : h = e[7];
1282
+ let u;
1283
+ e[8] !== p ? (u = /* @__PURE__ */ c(A, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: p }), e[8] = p, e[9] = u) : u = e[9];
1284
+ let f;
1285
+ e[10] !== o || e[11] !== n.status ? (f = /* @__PURE__ */ c(ht, { status: n.status, labels: o }), e[10] = o, e[11] = n.status, e[12] = f) : f = e[12];
1336
1286
  let b;
1337
- e[13] !== x || e[14] !== h ? (b = /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1338
- x,
1339
- h
1340
- ] }), e[13] = x, e[14] = h, e[15] = b) : b = e[15];
1287
+ e[13] !== u || e[14] !== f ? (b = /* @__PURE__ */ k(C, { sx: w.traceField, children: [
1288
+ u,
1289
+ f
1290
+ ] }), e[13] = u, e[14] = f, e[15] = b) : b = e[15];
1341
1291
  let v;
1342
- e[16] !== g || e[17] !== u || e[18] !== o.inputArguments || e[19] !== o.output || e[20] !== s ? (v = o.inputArguments && /* @__PURE__ */ T(y, { children: [
1343
- /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: g }),
1344
- /* @__PURE__ */ a(pe, { sx: {
1292
+ e[16] !== m || e[17] !== d || e[18] !== n.inputArguments || e[19] !== n.output || e[20] !== s ? (v = n.inputArguments && /* @__PURE__ */ k(C, { children: [
1293
+ /* @__PURE__ */ c(A, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: m }),
1294
+ /* @__PURE__ */ c(ue, { sx: {
1345
1295
  mt: 0.5,
1346
- mb: o.output ? 1.5 : 0
1347
- }, content: o.inputArguments, title: `${s}: ${g}`, isError: u })
1348
- ] }), e[16] = g, e[17] = u, e[18] = o.inputArguments, e[19] = o.output, e[20] = s, e[21] = v) : v = e[21];
1349
- let C;
1350
- e[22] !== u || e[23] !== m || e[24] !== o.output || e[25] !== s ? (C = o.output && /* @__PURE__ */ T(y, { children: [
1351
- /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: m }),
1352
- /* @__PURE__ */ a(pe, { sx: {
1296
+ mb: n.output ? 1.5 : 0
1297
+ }, content: n.inputArguments, title: `${s}: ${m}`, isError: d })
1298
+ ] }), e[16] = m, e[17] = d, e[18] = n.inputArguments, e[19] = n.output, e[20] = s, e[21] = v) : v = e[21];
1299
+ let y;
1300
+ e[22] !== d || e[23] !== g || e[24] !== n.output || e[25] !== s ? (y = n.output && /* @__PURE__ */ k(C, { children: [
1301
+ /* @__PURE__ */ c(A, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: g }),
1302
+ /* @__PURE__ */ c(ue, { sx: {
1353
1303
  mt: 0.5
1354
- }, content: o.output, title: `${s}: ${m}`, isError: u })
1355
- ] }), e[22] = u, e[23] = m, e[24] = o.output, e[25] = s, e[26] = C) : C = e[26];
1356
- let k;
1357
- return e[27] !== p || e[28] !== f || e[29] !== b || e[30] !== v || e[31] !== C ? (k = /* @__PURE__ */ T(y, { children: [
1358
- p,
1359
- f,
1304
+ }, content: n.output, title: `${s}: ${g}`, isError: d })
1305
+ ] }), e[22] = d, e[23] = g, e[24] = n.output, e[25] = s, e[26] = y) : y = e[26];
1306
+ let T;
1307
+ return e[27] !== x || e[28] !== h || e[29] !== b || e[30] !== v || e[31] !== y ? (T = /* @__PURE__ */ k(C, { children: [
1308
+ x,
1309
+ h,
1360
1310
  b,
1361
1311
  v,
1362
- C
1363
- ] }), e[27] = p, e[28] = f, e[29] = b, e[30] = v, e[31] = C, e[32] = k) : k = e[32], k;
1312
+ y
1313
+ ] }), e[27] = x, e[28] = h, e[29] = b, e[30] = v, e[31] = y, e[32] = T) : T = e[32], T;
1364
1314
  }
1365
- function me(t) {
1366
- const e = z(29), {
1367
- tool: o,
1315
+ function pe(t) {
1316
+ const e = W(29), {
1317
+ tool: n,
1368
1318
  expanded: r,
1369
1319
  onExpandedChange: l,
1370
- labels: n,
1371
- sx: u
1320
+ labels: o,
1321
+ sx: d
1372
1322
  } = t;
1373
1323
  let s;
1374
- e[0] !== n ? (s = n === void 0 ? {} : n, e[0] = n, e[1] = s) : s = e[1];
1375
- const i = s, c = o.status === "running", d = i.toolExecuted ?? "Tool executed";
1376
- if (c) {
1377
- let k;
1378
- e[2] !== o ? (k = we(o), e[2] = o, e[3] = k) : k = e[3];
1379
- let S;
1380
- return e[4] !== k ? (S = /* @__PURE__ */ a(rt, { children: k }), e[4] = k, e[5] = S) : S = e[5], S;
1324
+ e[0] !== o ? (s = o === void 0 ? {} : o, e[0] = o, e[1] = s) : s = e[1];
1325
+ const i = s, a = n.status === "running", p = i.toolExecuted ?? "Tool executed";
1326
+ if (a) {
1327
+ let y;
1328
+ e[2] !== n ? (y = ye(n), e[2] = n, e[3] = y) : y = e[3];
1329
+ let T;
1330
+ return e[4] !== y ? (T = /* @__PURE__ */ c(rt, { children: y }), e[4] = y, e[5] = T) : T = e[5], T;
1381
1331
  }
1382
- const g = `PsChat--tool-trace ${o.name}`;
1383
1332
  let m;
1384
1333
  e[6] !== r || e[7] !== l ? (m = () => l?.(!r), e[6] = r, e[7] = l, e[8] = m) : m = e[8];
1385
- let p;
1386
- e[9] !== d ? (p = /* @__PURE__ */ a(_, { variant: "caption", fontWeight: 600, color: "text.secondary", children: d }), e[9] = d, e[10] = p) : p = e[10];
1387
- const f = r ? "rotate(90deg)" : "rotate(0deg)";
1388
- let x;
1389
- e[11] !== f ? (x = /* @__PURE__ */ a(ye, { sx: {
1390
- ...w.traceChevron,
1391
- transform: f
1392
- } }), e[11] = f, e[12] = x) : x = e[12];
1334
+ let g;
1335
+ e[9] !== p ? (g = /* @__PURE__ */ c(A, { variant: "caption", fontWeight: 600, color: "text.secondary", children: p }), e[9] = p, e[10] = g) : g = e[10];
1336
+ const x = r ? "rotate(90deg)" : "rotate(0deg)";
1393
1337
  let h;
1394
- e[13] !== r || e[14] !== m || e[15] !== p || e[16] !== x ? (h = /* @__PURE__ */ T(le, { size: "small", variant: "text", onClick: m, "aria-expanded": r, sx: w.traceHeader, children: [
1395
- p,
1396
- x
1397
- ] }), e[13] = r, e[14] = m, e[15] = p, e[16] = x, e[17] = h) : h = e[17];
1338
+ e[11] !== x ? (h = /* @__PURE__ */ c(xe, { sx: {
1339
+ ...w.traceChevron,
1340
+ transform: x
1341
+ } }), e[11] = x, e[12] = h) : h = e[12];
1342
+ let u;
1343
+ e[13] !== r || e[14] !== m || e[15] !== g || e[16] !== h ? (u = /* @__PURE__ */ k(ie, { size: "small", variant: "text", onClick: m, "aria-expanded": r, sx: w.traceHeader, children: [
1344
+ g,
1345
+ h
1346
+ ] }), e[13] = r, e[14] = m, e[15] = g, e[16] = h, e[17] = u) : u = e[17];
1347
+ let f;
1348
+ e[18] !== i || e[19] !== n ? (f = /* @__PURE__ */ c(C, { sx: w.traceDetailsWrapper, children: /* @__PURE__ */ c(Ce, { tool: n, labels: i }) }), e[18] = i, e[19] = n, e[20] = f) : f = e[20];
1398
1349
  let b;
1399
- e[18] !== i || e[19] !== o ? (b = /* @__PURE__ */ a(y, { sx: w.traceDetailsWrapper, children: /* @__PURE__ */ a(Te, { tool: o, labels: i }) }), e[18] = i, e[19] = o, e[20] = b) : b = e[20];
1350
+ e[21] !== r || e[22] !== f ? (b = /* @__PURE__ */ c(se, { in: r, unmountOnExit: !0, children: f }), e[21] = r, e[22] = f, e[23] = b) : b = e[23];
1400
1351
  let v;
1401
- e[21] !== r || e[22] !== b ? (v = /* @__PURE__ */ a(ie, { in: r, unmountOnExit: !0, children: b }), e[21] = r, e[22] = b, e[23] = v) : v = e[23];
1402
- let C;
1403
- return e[24] !== u || e[25] !== v || e[26] !== g || e[27] !== h ? (C = /* @__PURE__ */ T(y, { width: "100%", sx: u, className: g, children: [
1404
- h,
1405
- v
1406
- ] }), e[24] = u, e[25] = v, e[26] = g, e[27] = h, e[28] = C) : C = e[28], C;
1352
+ return e[24] !== d || e[25] !== u || e[26] !== b || e[27] !== n.name ? (v = /* @__PURE__ */ k(C, { width: "100%", sx: d, "data-tool": n.name, className: "PsChat--tool-trace", children: [
1353
+ u,
1354
+ b
1355
+ ] }), e[24] = d, e[25] = u, e[26] = b, e[27] = n.name, e[28] = v) : v = e[28], v;
1407
1356
  }
1408
- function he(t, e) {
1409
- const o = z(5), [r, l] = Q(t);
1357
+ function me(t, e) {
1358
+ const n = W(5), [r, l] = N(t);
1410
1359
  if (e) {
1411
- let n;
1412
- return o[0] !== e || o[1] !== t ? (n = [t, e], o[0] = e, o[1] = t, o[2] = n) : n = o[2], n;
1360
+ let o;
1361
+ return n[0] !== e || n[1] !== t ? (o = [t, e], n[0] = e, n[1] = t, n[2] = o) : o = n[2], o;
1413
1362
  } else {
1414
- let n;
1415
- return o[3] !== r ? (n = [r, l], o[3] = r, o[4] = n) : n = o[4], n;
1363
+ let o;
1364
+ return n[3] !== r ? (o = [r, l], n[3] = r, n[4] = o) : o = n[4], o;
1416
1365
  }
1417
1366
  }
1418
- function qt(t) {
1419
- const e = z(62), {
1420
- tools: o,
1367
+ function Mt(t) {
1368
+ const e = W(61), {
1369
+ tools: n,
1421
1370
  expanded: r,
1422
1371
  onExpandedChange: l,
1423
- expandedTools: n,
1424
- onToolExpandedChange: u,
1372
+ expandedTools: o,
1373
+ onToolExpandedChange: d,
1425
1374
  labels: s,
1426
1375
  sx: i
1427
- } = t, c = r === void 0 ? !1 : r;
1428
- let d;
1429
- e[0] !== n ? (d = n === void 0 ? {} : n, e[0] = n, e[1] = d) : d = e[1];
1430
- const g = d;
1431
- let m;
1432
- e[2] !== s ? (m = s === void 0 ? {} : s, e[2] = s, e[3] = m) : m = e[3];
1433
- const p = m, [f, x] = he(c, l), [h, b] = he(g, u);
1376
+ } = t, a = r === void 0 ? !1 : r;
1377
+ let p;
1378
+ e[0] !== o ? (p = o === void 0 ? {} : o, e[0] = o, e[1] = p) : p = e[1];
1379
+ const m = p;
1380
+ let g;
1381
+ e[2] !== s ? (g = s === void 0 ? {} : s, e[2] = s, e[3] = g) : g = e[3];
1382
+ const x = g, [h, u] = me(a, l), [f, b] = me(m, d);
1434
1383
  let v;
1435
- e[4] !== o ? (v = o.filter($t), e[4] = o, e[5] = v) : v = e[5];
1436
- const C = v.length;
1437
- let k, S;
1438
- if (e[6] !== f || e[7] !== h || e[8] !== p || e[9] !== C || e[10] !== x || e[11] !== b || e[12] !== i || e[13] !== o) {
1384
+ e[4] !== n ? (v = n.filter(bt), e[4] = n, e[5] = v) : v = e[5];
1385
+ const y = v.length;
1386
+ let T, S;
1387
+ if (e[6] !== h || e[7] !== f || e[8] !== x || e[9] !== y || e[10] !== u || e[11] !== b || e[12] !== i || e[13] !== n) {
1439
1388
  S = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
1440
1389
  e: {
1441
- const I = o.filter(It), $ = o.filter(At), R = p.toolsUsed ?? "tools used", A = p.error ?? "Error";
1442
- if (o.length === 1) {
1390
+ const _ = n.filter(xt), E = n.filter(gt), L = x.toolsUsed ?? "tools used", $ = x.error ?? "Error";
1391
+ if (n.length === 1) {
1443
1392
  let F;
1444
- e[16] !== f || e[17] !== p || e[18] !== x || e[19] !== i || e[20] !== o[0] ? (F = /* @__PURE__ */ a(me, { tool: o[0], expanded: f, onExpandedChange: x, labels: p, sx: i }), e[16] = f, e[17] = p, e[18] = x, e[19] = i, e[20] = o[0], e[21] = F) : F = e[21], S = F;
1393
+ e[16] !== h || e[17] !== x || e[18] !== u || e[19] !== i || e[20] !== n[0] ? (F = /* @__PURE__ */ c(pe, { tool: n[0], expanded: h, onExpandedChange: u, labels: x, sx: i }), e[16] = h, e[17] = x, e[18] = u, e[19] = i, e[20] = n[0], e[21] = F) : F = e[21], S = F;
1445
1394
  break e;
1446
1395
  }
1447
- let E;
1448
- e[22] !== f || e[23] !== x ? (E = () => x(!f), e[22] = f, e[23] = x, e[24] = E) : E = e[24];
1449
- const B = C > 0 ? 0.5 : 0;
1450
- let L;
1451
- e[25] !== B ? (L = {
1396
+ let I;
1397
+ e[22] !== h || e[23] !== u ? (I = () => u(!h), e[22] = h, e[23] = u, e[24] = I) : I = e[24];
1398
+ const B = y > 0 ? 0.5 : 0;
1399
+ let R;
1400
+ e[25] !== B ? (R = {
1452
1401
  ...w.traceHeader,
1453
1402
  pr: B
1454
- }, e[25] = B, e[26] = L) : L = e[26];
1403
+ }, e[25] = B, e[26] = R) : R = e[26];
1455
1404
  let D;
1456
- e[27] !== o.length || e[28] !== R ? (D = /* @__PURE__ */ T(_, { variant: "caption", fontWeight: 600, color: "text.secondary", children: [
1457
- o.length,
1405
+ e[27] !== n.length || e[28] !== L ? (D = /* @__PURE__ */ k(A, { variant: "caption", fontWeight: 600, color: "text.secondary", children: [
1406
+ n.length,
1458
1407
  " ",
1459
- R
1460
- ] }), e[27] = o.length, e[28] = R, e[29] = D) : D = e[29];
1461
- const W = f ? "rotate(90deg)" : "rotate(0deg)";
1408
+ L
1409
+ ] }), e[27] = n.length, e[28] = L, e[29] = D) : D = e[29];
1410
+ const M = h ? "rotate(90deg)" : "rotate(0deg)";
1462
1411
  let P;
1463
- e[30] !== W ? (P = /* @__PURE__ */ a(ye, { sx: {
1412
+ e[30] !== M ? (P = /* @__PURE__ */ c(xe, { sx: {
1464
1413
  ...w.traceChevron,
1465
- transform: W
1466
- } }), e[30] = W, e[31] = P) : P = e[31];
1414
+ transform: M
1415
+ } }), e[30] = M, e[31] = P) : P = e[31];
1467
1416
  let V;
1468
- e[32] !== C ? (V = C > 0 && /* @__PURE__ */ T(_, { variant: "code3", sx: w.errorBadge, children: [
1469
- C,
1470
- /* @__PURE__ */ a(xe, { sx: {
1417
+ e[32] !== y ? (V = y > 0 && /* @__PURE__ */ k(A, { variant: "code3", sx: w.errorBadge, children: [
1418
+ y,
1419
+ /* @__PURE__ */ c(he, { sx: {
1471
1420
  fontSize: 12
1472
1421
  }, color: "error" })
1473
- ] }), e[32] = C, e[33] = V) : V = e[33];
1474
- let G;
1475
- e[34] !== f || e[35] !== L || e[36] !== D || e[37] !== P || e[38] !== V || e[39] !== E ? (G = /* @__PURE__ */ T(le, { size: "small", variant: "text", onClick: E, "aria-expanded": f, sx: L, children: [
1422
+ ] }), e[32] = y, e[33] = V) : V = e[33];
1423
+ let Y;
1424
+ e[34] !== h || e[35] !== R || e[36] !== D || e[37] !== P || e[38] !== V || e[39] !== I ? (Y = /* @__PURE__ */ k(ie, { size: "small", variant: "text", onClick: I, "aria-expanded": h, sx: R, children: [
1476
1425
  D,
1477
1426
  P,
1478
1427
  V
1479
- ] }), e[34] = f, e[35] = L, e[36] = D, e[37] = P, e[38] = V, e[39] = E, e[40] = G) : G = e[40];
1480
- const Z = ie, ee = f, te = !0, oe = y, ne = "ul";
1481
- let U;
1482
- e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
1428
+ ] }), e[34] = h, e[35] = R, e[36] = D, e[37] = P, e[38] = V, e[39] = I, e[40] = Y) : Y = e[40];
1429
+ const ee = se, te = h, ne = !0, oe = C, re = "ul";
1430
+ let j;
1431
+ e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
1483
1432
  ...w.traceDetailsWrapper,
1484
1433
  p: 0,
1485
1434
  listStyle: "none"
1486
- }, e[41] = U) : U = e[41];
1487
- let X;
1488
- e[42] !== A || e[43] !== f || e[44] !== h || e[45] !== p || e[46] !== b ? (X = (F) => {
1489
- const q = h[F.id] ?? !1;
1490
- return /* @__PURE__ */ T(y, { component: "li", sx: w.groupListItem, "aria-expanded": q, children: [
1491
- /* @__PURE__ */ T(le, { variant: "text", color: "inherit", fullWidth: !0, onClick: () => b({
1492
- ...h,
1493
- [F.id]: !q
1494
- }), "aria-expanded": q, sx: w.groupHeader, children: [
1495
- /* @__PURE__ */ a(_, { flexGrow: 1, flexShrink: 0, variant: "caption", color: "text.secondary", children: we(F) }),
1496
- F.status === "error" && /* @__PURE__ */ a(_, { variant: "code3", color: "error.main", children: A }),
1497
- /* @__PURE__ */ a(Ge, { sx: {
1435
+ }, e[41] = j) : j = e[41];
1436
+ let K;
1437
+ e[42] !== $ || e[43] !== f || e[44] !== x || e[45] !== b ? (K = (F) => {
1438
+ const G = f[F.id] ?? !1;
1439
+ return /* @__PURE__ */ k(C, { component: "li", sx: w.groupListItem, "aria-expanded": G, children: [
1440
+ /* @__PURE__ */ k(ie, { variant: "text", color: "inherit", fullWidth: !0, onClick: () => b({
1441
+ ...f,
1442
+ [F.id]: !G
1443
+ }), "aria-expanded": G, sx: w.groupHeader, children: [
1444
+ /* @__PURE__ */ c(A, { flexGrow: 1, flexShrink: 0, variant: "caption", color: "text.secondary", children: ye(F) }),
1445
+ F.status === "error" && /* @__PURE__ */ c(A, { variant: "code3", color: "error.main", children: $ }),
1446
+ /* @__PURE__ */ c(Ne, { sx: {
1498
1447
  ...w.traceChevron,
1499
- transform: f ? "rotate(90deg)" : "rotate(0deg)"
1448
+ transform: G ? "rotate(90deg)" : "rotate(0deg)"
1500
1449
  } })
1501
1450
  ] }),
1502
- /* @__PURE__ */ a(ie, { in: q, unmountOnExit: !0, children: /* @__PURE__ */ a(y, { px: 1.5, py: 1, children: /* @__PURE__ */ a(Te, { tool: F, labels: p }) }) })
1451
+ /* @__PURE__ */ c(se, { in: G, unmountOnExit: !0, children: /* @__PURE__ */ c(C, { px: 1.5, py: 1, children: /* @__PURE__ */ c(Ce, { tool: F, labels: x }) }) })
1503
1452
  ] }, F.id);
1504
- }, e[42] = A, e[43] = f, e[44] = h, e[45] = p, e[46] = b, e[47] = X) : X = e[47];
1505
- const re = $.map(X);
1506
- let j;
1507
- e[48] !== oe || e[49] !== ne || e[50] !== U || e[51] !== re ? (j = /* @__PURE__ */ a(oe, { component: ne, sx: U, children: re }), e[48] = oe, e[49] = ne, e[50] = U, e[51] = re, e[52] = j) : j = e[52];
1508
- let Y;
1509
- e[53] !== Z || e[54] !== ee || e[55] !== te || e[56] !== j ? (Y = /* @__PURE__ */ a(Z, { in: ee, unmountOnExit: te, children: j }), e[53] = Z, e[54] = ee, e[55] = te, e[56] = j, e[57] = Y) : Y = e[57];
1510
- let K;
1511
- e[58] !== h || e[59] !== p || e[60] !== b ? (K = (F) => /* @__PURE__ */ a(me, { tool: F, labels: p, expanded: h[F.id], onExpandedChange: () => b({
1512
- ...h,
1513
- [F.id]: !h[F.id]
1514
- }) }, F.id), e[58] = h, e[59] = p, e[60] = b, e[61] = K) : K = e[61], k = /* @__PURE__ */ T(y, { width: "100%", sx: i, className: "PsChat--tool-group", children: [
1515
- G,
1453
+ }, e[42] = $, e[43] = f, e[44] = x, e[45] = b, e[46] = K) : K = e[46];
1454
+ const le = E.map(K);
1455
+ let U;
1456
+ e[47] !== oe || e[48] !== re || e[49] !== j || e[50] !== le ? (U = /* @__PURE__ */ c(oe, { component: re, sx: j, children: le }), e[47] = oe, e[48] = re, e[49] = j, e[50] = le, e[51] = U) : U = e[51];
1457
+ let q;
1458
+ e[52] !== ee || e[53] !== te || e[54] !== ne || e[55] !== U ? (q = /* @__PURE__ */ c(ee, { in: te, unmountOnExit: ne, children: U }), e[52] = ee, e[53] = te, e[54] = ne, e[55] = U, e[56] = q) : q = e[56];
1459
+ let J;
1460
+ e[57] !== f || e[58] !== x || e[59] !== b ? (J = (F) => /* @__PURE__ */ c(pe, { tool: F, labels: x, expanded: f[F.id], onExpandedChange: () => b({
1461
+ ...f,
1462
+ [F.id]: !f[F.id]
1463
+ }) }, F.id), e[57] = f, e[58] = x, e[59] = b, e[60] = J) : J = e[60], T = /* @__PURE__ */ k(C, { width: "100%", sx: i, className: "PsChat--tool-group", children: [
1516
1464
  Y,
1517
- I.map(K)
1465
+ q,
1466
+ _.map(J)
1518
1467
  ] });
1519
1468
  }
1520
- e[6] = f, e[7] = h, e[8] = p, e[9] = C, e[10] = x, e[11] = b, e[12] = i, e[13] = o, e[14] = k, e[15] = S;
1469
+ e[6] = h, e[7] = f, e[8] = x, e[9] = y, e[10] = u, e[11] = b, e[12] = i, e[13] = n, e[14] = T, e[15] = S;
1521
1470
  } else
1522
- k = e[14], S = e[15];
1523
- return S !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? S : k;
1471
+ T = e[14], S = e[15];
1472
+ return S !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? S : T;
1524
1473
  }
1525
- function At(t) {
1474
+ function gt(t) {
1526
1475
  return t.status !== "running";
1527
1476
  }
1528
- function It(t) {
1477
+ function xt(t) {
1529
1478
  return t.status === "running";
1530
1479
  }
1531
- function $t(t) {
1480
+ function bt(t) {
1532
1481
  return t.status === "error";
1533
1482
  }
1534
1483
  export {
1535
- Ht as CHAT_DIVIDER_DELAY,
1536
- J as CHAT_MAX_WIDTH,
1537
- Wt as CHAT_SCROLL_DELAY,
1484
+ It as CHAT_DIVIDER_DELAY,
1485
+ Q as CHAT_MAX_WIDTH,
1486
+ _t as CHAT_SCROLL_DELAY,
1538
1487
  Ke as CHAT_TOOL_CODE_AREA_MAX_HEIGHT,
1539
- Yt as ChatActionsContainer,
1488
+ Wt as ChatActionsContainer,
1540
1489
  Je as ChatAgentMessage,
1541
- jt as ChatContent,
1542
- Vt as ChatErrorMessage,
1543
- Gt as ChatFooter,
1544
- Nt as ChatHeader,
1545
- Ut as ChatLoader,
1546
- Ce as ChatMessageOverflow,
1547
- Kt as ChatRatingAction,
1548
- Xt as ChatStarter,
1490
+ it as ChatContent,
1491
+ $t as ChatErrorMessage,
1492
+ Bt as ChatFooter,
1493
+ Dt as ChatHeader,
1494
+ Rt as ChatLoader,
1495
+ be as ChatMessageOverflow,
1496
+ zt as ChatRatingAction,
1497
+ Ft as ChatStarter,
1549
1498
  et as ChatSuggestionButton,
1550
1499
  rt as ChatThinking,
1551
- pe as ChatToolCodeArea,
1500
+ ue as ChatToolCodeArea,
1552
1501
  ut as ChatToolFullViewDialog,
1553
- qt as ChatToolGroup,
1554
- me as ChatToolTrace,
1555
- Pt as ChatUserMessage,
1556
- Ot as useTypewriter
1502
+ Mt as ChatToolGroup,
1503
+ pe as ChatToolTrace,
1504
+ Lt as ChatUserMessage,
1505
+ Et as useTypewriter
1557
1506
  };
1558
1507
  //# sourceMappingURL=chat.js.map