@carto/ps-react-ui 4.4.0-chat-ui.5 → 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.
- package/dist/category-DwaeYjpX.js +656 -0
- package/dist/category-DwaeYjpX.js.map +1 -0
- package/dist/change-column-Cidl_M-4.js +1110 -0
- package/dist/change-column-Cidl_M-4.js.map +1 -0
- package/dist/chat.js +622 -673
- package/dist/chat.js.map +1 -1
- package/dist/components.js.map +1 -1
- package/dist/data-zoom-layout-DVYB8mIx.js +29 -0
- package/dist/data-zoom-layout-DVYB8mIx.js.map +1 -0
- package/dist/download-config-C7hf33ip.js +58 -0
- package/dist/download-config-C7hf33ip.js.map +1 -0
- package/dist/echart-CU0KmClP.js +176 -0
- package/dist/echart-CU0KmClP.js.map +1 -0
- package/dist/exports-Cr43OCul.js.map +1 -1
- package/dist/exports-Cx-f6m6U.js +63 -0
- package/dist/exports-Cx-f6m6U.js.map +1 -0
- package/dist/formatter-B9Bxn1k7.js +6 -0
- package/dist/formatter-B9Bxn1k7.js.map +1 -0
- package/dist/formula-DuC0NQLH.js +79 -0
- package/dist/formula-DuC0NQLH.js.map +1 -0
- package/dist/lasso-tool-BYbxrJ-7.js.map +1 -1
- package/dist/markdown-BD1jcknS.js +8326 -0
- package/dist/markdown-BD1jcknS.js.map +1 -0
- package/dist/option-builders-F-c9ELi1.js +122 -0
- package/dist/option-builders-F-c9ELi1.js.map +1 -0
- package/dist/options-CthfUJDz.js +46 -0
- package/dist/options-CthfUJDz.js.map +1 -0
- package/dist/png-item-CS4z1iSH.js +45 -0
- package/dist/png-item-CS4z1iSH.js.map +1 -0
- package/dist/range-l4fNHLEg.js +213 -0
- package/dist/range-l4fNHLEg.js.map +1 -0
- package/dist/resolve-theme-color-BdojIw0K.js +47 -0
- package/dist/resolve-theme-color-BdojIw0K.js.map +1 -0
- package/dist/row-DZSP99LW.js +34 -0
- package/dist/row-DZSP99LW.js.map +1 -0
- package/dist/series-DLNHDWs0.js +90 -0
- package/dist/series-DLNHDWs0.js.map +1 -0
- package/dist/shared-resize-observer-98b1SK1e.js +17 -0
- package/dist/shared-resize-observer-98b1SK1e.js.map +1 -0
- package/dist/smart-tooltip-D4vwQpFf.js.map +1 -1
- package/dist/spread-CngWB5KF.js +68 -0
- package/dist/spread-CngWB5KF.js.map +1 -0
- package/dist/style-DVnT6HC1.js +131 -0
- package/dist/style-DVnT6HC1.js.map +1 -0
- package/dist/styles-cohnxh9F.js +23 -0
- package/dist/styles-cohnxh9F.js.map +1 -0
- package/dist/table-CQCAnDLb.js +388 -0
- package/dist/table-CQCAnDLb.js.map +1 -0
- package/dist/tooltip-BDnrRKrp.js.map +1 -1
- package/dist/transforms-Cdx4fkU5.js +106 -0
- package/dist/transforms-Cdx4fkU5.js.map +1 -0
- package/dist/types/chat/containers/chat-content.d.ts +2 -2
- package/dist/types/chat/containers/styles.d.ts +10 -27
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -3
- package/dist/types/chat/index.d.ts +1 -1
- package/dist/types/chat/types.d.ts +35 -3
- package/dist/types/components/basemaps/basemaps.d.ts +20 -0
- package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +11 -0
- package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +17 -0
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +21 -0
- package/dist/types/components/list-data/list-data.d.ts +16 -0
- package/dist/types/components/measurement-tools/measurement-tools.d.ts +20 -0
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +17 -0
- package/dist/types/components/tooltip/tooltip.d.ts +13 -0
- package/dist/types/components/zoom-controls/zoom-controls.d.ts +16 -0
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/use-widget-ref.d.ts +9 -6
- package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
- package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
- package/dist/types/widgets/actions/brush-toggle/hit-test.test.d.ts +1 -0
- package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
- package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
- package/dist/types/widgets/actions/download/download.d.ts +11 -0
- package/dist/types/widgets/actions/download/exports.d.ts +15 -0
- package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +13 -0
- package/dist/types/widgets/actions/index.d.ts +7 -5
- package/dist/types/widgets/actions/lock-selection/types.d.ts +2 -0
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +8 -2
- package/dist/types/widgets/actions/relative-data/types.d.ts +2 -0
- package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +4 -0
- package/dist/types/widgets/bar/config.d.ts +8 -4
- package/dist/types/widgets/category/category-ui.d.ts +3 -0
- package/dist/types/widgets/category/components/category-bar.d.ts +3 -0
- package/dist/types/widgets/category/components/category-legend.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-multi.d.ts +5 -1
- package/dist/types/widgets/category/components/category-row-other.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-single.d.ts +5 -1
- package/dist/types/widgets/category/config.d.ts +11 -0
- package/dist/types/widgets/category/index.d.ts +10 -2
- package/dist/types/widgets/category/style.d.ts +1 -0
- package/dist/types/widgets/category/types.d.ts +1 -0
- package/dist/types/widgets/echart/echart-ui.d.ts +7 -0
- package/dist/types/widgets/echart/echart.d.ts +6 -0
- package/dist/types/widgets/echart/options.d.ts +7 -0
- package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
- package/dist/types/widgets/echart/types.d.ts +5 -1
- package/dist/types/widgets/echart/utils.d.ts +54 -7
- package/dist/types/widgets/echart/utils.test.d.ts +1 -0
- package/dist/types/widgets/error/error.d.ts +10 -0
- package/dist/types/widgets/formula/components/item.d.ts +3 -0
- package/dist/types/widgets/formula/components/prefix.d.ts +3 -0
- package/dist/types/widgets/formula/components/row.d.ts +3 -0
- package/dist/types/widgets/formula/components/series.d.ts +3 -0
- package/dist/types/widgets/formula/components/suffix.d.ts +3 -0
- package/dist/types/widgets/formula/components/value.d.ts +3 -0
- package/dist/types/widgets/formula/config.d.ts +11 -0
- package/dist/types/widgets/formula/config.test.d.ts +1 -0
- package/dist/types/widgets/formula/formula-ui.d.ts +3 -0
- package/dist/types/widgets/histogram/config.d.ts +18 -2
- package/dist/types/widgets/histogram/index.d.ts +2 -1
- package/dist/types/widgets/histogram/types.d.ts +6 -3
- package/dist/types/widgets/loader/loader.d.ts +22 -0
- package/dist/types/widgets/loader/utils.d.ts +26 -3
- package/dist/types/widgets/markdown/config.d.ts +10 -0
- package/dist/types/widgets/markdown/markdown-ui.d.ts +7 -0
- package/dist/types/widgets/markdown/markdown.d.ts +3 -0
- package/dist/types/widgets/no-data/no-data.d.ts +3 -2
- package/dist/types/widgets/no-data/types.d.ts +5 -1
- package/dist/types/widgets/note/note.d.ts +10 -0
- package/dist/types/widgets/pie/config.d.ts +8 -4
- package/dist/types/widgets/range/components/range-item.d.ts +3 -0
- package/dist/types/widgets/range/config.d.ts +5 -0
- package/dist/types/widgets/range/range-ui.d.ts +3 -0
- package/dist/types/widgets/scatterplot/config.d.ts +7 -3
- package/dist/types/widgets/selection-summary/selection-summary.d.ts +11 -0
- package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +10 -0
- package/dist/types/widgets/spread/components/max-value.d.ts +3 -0
- package/dist/types/widgets/spread/components/min-value.d.ts +3 -0
- package/dist/types/widgets/spread/components/separator.d.ts +3 -0
- package/dist/types/widgets/spread/config.d.ts +11 -0
- package/dist/types/widgets/spread/spread-ui.d.ts +3 -0
- package/dist/types/widgets/stores/index.d.ts +3 -2
- package/dist/types/widgets/stores/types.d.ts +12 -10
- package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
- package/dist/types/widgets/stores/widget-store-branches.test.d.ts +1 -0
- package/dist/types/widgets/stores/widget-store-performance.test.d.ts +1 -0
- package/dist/types/widgets/stores/widget-store.d.ts +48 -27
- package/dist/types/widgets/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets/table/config.d.ts +8 -3
- package/dist/types/widgets/table/config.test.d.ts +1 -0
- package/dist/types/widgets/table/hooks/use-pagination.d.ts +11 -3
- package/dist/types/widgets/table/hooks/use-selection.d.ts +11 -2
- package/dist/types/widgets/table/hooks/use-sort.d.ts +11 -3
- package/dist/types/widgets/table/index.d.ts +6 -2
- package/dist/types/widgets/table/types.d.ts +1 -1
- package/dist/types/widgets/timeseries/config.d.ts +8 -4
- package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
- package/dist/types/widgets/{_shared → utils}/chart-config/index.d.ts +3 -1
- package/dist/types/widgets/{_shared → utils}/chart-config/option-builders.d.ts +41 -9
- package/dist/types/widgets/utils/chart-config/option-builders.test.d.ts +1 -0
- package/dist/types/widgets/utils/formatter.d.ts +2 -0
- package/dist/types/widgets/utils/index.d.ts +7 -0
- package/dist/types/widgets/wrapper/components/actions.d.ts +3 -0
- package/dist/types/widgets/wrapper/components/options.d.ts +3 -0
- package/dist/types/widgets/wrapper/components/title.d.ts +3 -0
- package/dist/types/widgets/wrapper/wrapper-ui.d.ts +14 -0
- package/dist/types/widgets/wrapper/wrapper.d.ts +14 -0
- package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
- package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
- package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
- package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
- package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/change-column/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +33 -0
- package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
- package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
- package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
- package/dist/types/widgets-v2/actions/download/icons.d.ts +12 -0
- package/dist/types/widgets-v2/actions/download/index.d.ts +6 -0
- package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
- package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
- package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
- package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
- package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +59 -0
- package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +48 -0
- package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
- package/dist/types/widgets-v2/actions/index.d.ts +9 -0
- package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
- package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +36 -0
- package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
- package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
- package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
- package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
- package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
- package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
- package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
- package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
- package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
- package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
- package/dist/types/widgets-v2/bar/download.d.ts +24 -0
- package/dist/types/widgets-v2/bar/index.d.ts +4 -0
- package/dist/types/widgets-v2/bar/options.d.ts +43 -0
- package/dist/types/widgets-v2/bar/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
- package/dist/types/widgets-v2/bar/types.d.ts +46 -0
- package/dist/types/widgets-v2/category/category-ui.d.ts +81 -0
- package/dist/types/widgets-v2/category/category.d.ts +48 -0
- package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
- package/dist/types/widgets-v2/category/components/category-legend.d.ts +18 -0
- package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +13 -0
- package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +38 -0
- package/dist/types/widgets-v2/category/download.d.ts +16 -0
- package/dist/types/widgets-v2/category/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/category/index.d.ts +10 -0
- package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
- package/dist/types/widgets-v2/category/style.d.ts +166 -0
- package/dist/types/widgets-v2/category/types.d.ts +53 -0
- package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
- package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
- package/dist/types/widgets-v2/echart/index.d.ts +4 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +1 -0
- package/dist/types/widgets-v2/echart/style.d.ts +6 -0
- package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +51 -0
- package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
- package/dist/types/widgets-v2/formula/download.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
- package/dist/types/widgets-v2/formula/index.d.ts +11 -0
- package/dist/types/widgets-v2/formula/note.d.ts +11 -0
- package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/series.d.ts +16 -0
- package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/formula/style.d.ts +29 -0
- package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/types.d.ts +43 -0
- package/dist/types/widgets-v2/formula/value.d.ts +14 -0
- package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
- package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
- package/dist/types/widgets-v2/histogram/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/histogram/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/types.d.ts +51 -0
- package/dist/types/widgets-v2/index.d.ts +108 -0
- package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
- package/dist/types/widgets-v2/markdown/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +34 -0
- package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
- package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
- package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
- package/dist/types/widgets-v2/note/labels.d.ts +5 -0
- package/dist/types/widgets-v2/note/style.d.ts +26 -0
- package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
- package/dist/types/widgets-v2/pie/download.d.ts +17 -0
- package/dist/types/widgets-v2/pie/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/index.d.ts +4 -0
- package/dist/types/widgets-v2/pie/options.d.ts +35 -0
- package/dist/types/widgets-v2/pie/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/pie/types.d.ts +57 -0
- package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
- package/dist/types/widgets-v2/range/index.d.ts +4 -0
- package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
- package/dist/types/widgets-v2/range/range.d.ts +24 -0
- package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/range/style.d.ts +40 -0
- package/dist/types/widgets-v2/range/types.d.ts +37 -0
- package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
- package/dist/types/widgets-v2/scatterplot/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
- package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
- package/dist/types/widgets-v2/scatterplot/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
- package/dist/types/widgets-v2/scatterplot/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +6 -0
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +22 -0
- package/dist/types/widgets-v2/selection-summary/style.d.ts +23 -0
- package/dist/types/widgets-v2/spread/download.d.ts +15 -0
- package/dist/types/widgets-v2/spread/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/spread/index.d.ts +6 -0
- package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
- package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
- package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
- package/dist/types/widgets-v2/spread/types.d.ts +25 -0
- package/dist/types/widgets-v2/state/labels.d.ts +7 -0
- package/dist/types/widgets-v2/state/labels.test.d.ts +1 -0
- package/dist/types/widgets-v2/state/style.d.ts +19 -0
- package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
- package/dist/types/widgets-v2/stores/index.d.ts +8 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
- package/dist/types/widgets-v2/stores/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/types.d.ts +55 -0
- package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
- package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
- package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
- package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +1 -0
- package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
- package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets-v2/table/download.d.ts +18 -0
- package/dist/types/widgets-v2/table/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
- package/dist/types/widgets-v2/table/helpers.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/index.d.ts +7 -0
- package/dist/types/widgets-v2/table/labels.d.ts +22 -0
- package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
- package/dist/types/widgets-v2/table/style.d.ts +40 -0
- package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
- package/dist/types/widgets-v2/table/table.d.ts +50 -0
- package/dist/types/widgets-v2/table/types.d.ts +48 -0
- package/dist/types/widgets-v2/test-utils.d.ts +52 -0
- package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
- package/dist/types/widgets-v2/timeseries/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/index.d.ts +4 -0
- package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
- package/dist/types/widgets-v2/timeseries/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
- package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
- package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
- package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
- package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
- package/dist/types/widgets-v2/types.d.ts +25 -0
- package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
- package/dist/types/widgets-v2/utils/index.d.ts +3 -0
- package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
- package/dist/types/widgets-v2/utils/merge-options.test.d.ts +1 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.test.d.ts +1 -0
- package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
- package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
- package/dist/types/widgets-v2/wrapper/style.d.ts +111 -0
- package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
- package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +51 -0
- package/dist/use-transform-DXPN3nY7.js +110 -0
- package/dist/use-transform-DXPN3nY7.js.map +1 -0
- package/dist/use-widget-ref-Ddr_SlJJ.js +22 -0
- package/dist/use-widget-ref-Ddr_SlJJ.js.map +1 -0
- package/dist/use-widget-selector-DFl2hW0R.js +12 -0
- package/dist/use-widget-selector-DFl2hW0R.js.map +1 -0
- package/dist/{utils-idmvq0Oa.js → utils-BOhInag6.js} +95 -70
- package/dist/utils-BOhInag6.js.map +1 -0
- package/dist/widget-context-DTGO0Yta.js +13 -0
- package/dist/widget-context-DTGO0Yta.js.map +1 -0
- package/dist/widget-store-Bw5zRUGg.js +261 -0
- package/dist/widget-store-Bw5zRUGg.js.map +1 -0
- package/dist/widget-store-registry-_W4Z4xp-.js +178 -0
- package/dist/widget-store-registry-_W4Z4xp-.js.map +1 -0
- package/dist/widgets/actions.js +1120 -760
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +87 -97
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +247 -236
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js +100 -99
- package/dist/widgets/echart.js.map +1 -1
- package/dist/widgets/error.js +37 -2
- package/dist/widgets/error.js.map +1 -1
- package/dist/widgets/formula.js +78 -67
- package/dist/widgets/formula.js.map +1 -1
- package/dist/widgets/histogram.js +116 -92
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/loader.js +53 -60
- package/dist/widgets/loader.js.map +1 -1
- package/dist/widgets/markdown.js +55 -53
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/no-data.js +58 -2
- package/dist/widgets/no-data.js.map +1 -1
- package/dist/widgets/note.js +121 -2
- package/dist/widgets/note.js.map +1 -1
- package/dist/widgets/pie.js +148 -112
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +147 -144
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +52 -65
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/selection-summary.js.map +1 -1
- package/dist/widgets/skeleton-loader.js +18 -17
- package/dist/widgets/skeleton-loader.js.map +1 -1
- package/dist/widgets/spread.js +108 -90
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/stores.js +5 -2
- package/dist/widgets/stores.js.map +1 -1
- package/dist/widgets/subheader.js +29 -29
- package/dist/widgets/subheader.js.map +1 -1
- package/dist/widgets/table.js +429 -440
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +56 -69
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/toolbar-actions.js +50 -50
- package/dist/widgets/utils.js +34 -0
- package/dist/widgets/utils.js.map +1 -0
- package/dist/widgets/wrapper.js +156 -158
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets-v2/actions.js +43 -0
- package/dist/widgets-v2/actions.js.map +1 -0
- package/dist/widgets-v2/bar.js +331 -0
- package/dist/widgets-v2/bar.js.map +1 -0
- package/dist/widgets-v2/category.js +105 -0
- package/dist/widgets-v2/category.js.map +1 -0
- package/dist/widgets-v2/echart.js +57 -0
- package/dist/widgets-v2/echart.js.map +1 -0
- package/dist/widgets-v2/formula.js +75 -0
- package/dist/widgets-v2/formula.js.map +1 -0
- package/dist/widgets-v2/histogram.js +354 -0
- package/dist/widgets-v2/histogram.js.map +1 -0
- package/dist/widgets-v2/markdown.js +69 -0
- package/dist/widgets-v2/markdown.js.map +1 -0
- package/dist/widgets-v2/pie.js +388 -0
- package/dist/widgets-v2/pie.js.map +1 -0
- package/dist/widgets-v2/range.js +52 -0
- package/dist/widgets-v2/range.js.map +1 -0
- package/dist/widgets-v2/scatterplot.js +412 -0
- package/dist/widgets-v2/scatterplot.js.map +1 -0
- package/dist/widgets-v2/spread.js +73 -0
- package/dist/widgets-v2/spread.js.map +1 -0
- package/dist/widgets-v2/stores.js +42 -0
- package/dist/widgets-v2/stores.js.map +1 -0
- package/dist/widgets-v2/table.js +79 -0
- package/dist/widgets-v2/table.js.map +1 -0
- package/dist/widgets-v2/timeseries.js +359 -0
- package/dist/widgets-v2/timeseries.js.map +1 -0
- package/dist/widgets-v2/utils.js +8 -0
- package/dist/widgets-v2/utils.js.map +1 -0
- package/dist/widgets-v2.js +954 -0
- package/dist/widgets-v2.js.map +1 -0
- package/package.json +84 -13
- package/src/chat/containers/chat-content.test.tsx +260 -6
- package/src/chat/containers/chat-content.tsx +137 -27
- package/src/chat/containers/chat-starter.tsx +2 -2
- package/src/chat/containers/styles.ts +16 -36
- package/src/chat/feedback/chat-tool-code-area.tsx +1 -1
- package/src/chat/feedback/chat-tool-group.tsx +1 -1
- package/src/chat/feedback/chat-tool-trace.tsx +6 -1
- package/src/chat/index.ts +1 -1
- package/src/chat/types.ts +36 -4
- package/src/components/basemaps/basemaps.tsx +20 -0
- package/src/components/geolocation-controls/geolocation-controls.tsx +11 -0
- package/src/components/lasso-tool/chip.test.tsx +176 -0
- package/src/components/lasso-tool/lasso-tool-inline.test.tsx +171 -0
- package/src/components/lasso-tool/lasso-tool-inline.tsx +17 -0
- package/src/components/lasso-tool/lasso-tool.test.tsx +198 -0
- package/src/components/lasso-tool/lasso-tool.tsx +21 -0
- package/src/components/list-data/list-data.test.tsx +73 -0
- package/src/components/list-data/list-data.tsx +16 -0
- package/src/components/measurement-tools/measurement-tools.tsx +20 -0
- package/src/components/no-data-alert/no-data-alert.test.tsx +38 -0
- package/src/components/responsive-drawer/responsive-drawer.test.tsx +68 -0
- package/src/components/smart-tooltip/smart-tooltip.tsx +17 -0
- package/src/components/tooltip/tooltip.tsx +13 -0
- package/src/components/zoom-controls/zoom-controls.tsx +16 -0
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-widget-ref.ts +10 -10
- package/src/widgets/README.md +13 -13
- package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
- package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
- package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
- package/src/widgets/actions/brush-toggle/style.ts +46 -0
- package/src/widgets/actions/brush-toggle/types.ts +78 -0
- package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
- package/src/widgets/actions/change-column/change-column.test.tsx +1 -1
- package/src/widgets/actions/change-column/change-column.tsx +15 -15
- package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
- package/src/widgets/actions/change-column/sortable-column-item.tsx +3 -1
- package/src/widgets/actions/download/download.test.tsx +1 -1
- package/src/widgets/actions/download/download.tsx +15 -3
- package/src/widgets/actions/download/exports.tsx +15 -0
- package/src/widgets/actions/fullscreen/fullscreen.tsx +20 -11
- package/src/widgets/actions/index.ts +21 -2
- package/src/widgets/actions/lock-selection/lock-selection.test.tsx +14 -0
- package/src/widgets/actions/lock-selection/lock-selection.tsx +26 -31
- package/src/widgets/actions/lock-selection/types.ts +2 -0
- package/src/widgets/actions/relative-data/relative-data.test.tsx +276 -1
- package/src/widgets/actions/relative-data/relative-data.tsx +113 -54
- package/src/widgets/actions/relative-data/types.ts +2 -0
- package/src/widgets/actions/searcher/searcher-toggle.tsx +11 -12
- package/src/widgets/actions/searcher/searcher.tsx +39 -42
- package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +4 -4
- package/src/widgets/actions/stack-toggle/stack-toggle.tsx +24 -32
- package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
- package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +62 -80
- package/src/widgets/bar/config.ts +39 -34
- package/src/widgets/bar/style.ts +1 -1
- package/src/widgets/category/category-ui.tsx +41 -34
- package/src/widgets/category/components/category-bar.tsx +3 -0
- package/src/widgets/category/components/category-legend.tsx +3 -0
- package/src/widgets/category/components/category-row-multi.tsx +9 -2
- package/src/widgets/category/components/category-row-other.tsx +3 -0
- package/src/widgets/category/components/category-row-single.tsx +8 -1
- package/src/widgets/category/components/category-rows.test.tsx +213 -0
- package/src/widgets/category/config.ts +11 -0
- package/src/widgets/category/index.ts +13 -14
- package/src/widgets/category/style.ts +1 -0
- package/src/widgets/category/types.ts +1 -0
- package/src/widgets/echart/echart-ui.test.tsx +20 -16
- package/src/widgets/echart/echart-ui.tsx +18 -14
- package/src/widgets/echart/echart.tsx +19 -27
- package/src/widgets/echart/options.ts +8 -4
- package/src/widgets/echart/shared-resize-observer.ts +45 -0
- package/src/widgets/echart/types.ts +5 -1
- package/src/widgets/echart/utils.test.ts +277 -0
- package/src/widgets/echart/utils.ts +94 -21
- package/src/widgets/error/error.tsx +17 -9
- package/src/widgets/formula/components/item.tsx +3 -0
- package/src/widgets/formula/components/prefix.tsx +7 -6
- package/src/widgets/formula/components/row.tsx +7 -4
- package/src/widgets/formula/components/series.tsx +7 -6
- package/src/widgets/formula/components/suffix.tsx +7 -6
- package/src/widgets/formula/components/value.tsx +13 -18
- package/src/widgets/formula/config.test.ts +37 -0
- package/src/widgets/formula/config.ts +11 -0
- package/src/widgets/formula/formula-ui.tsx +4 -1
- package/src/widgets/histogram/config.ts +99 -24
- package/src/widgets/histogram/index.ts +6 -1
- package/src/widgets/histogram/style.ts +1 -1
- package/src/widgets/histogram/types.ts +9 -3
- package/src/widgets/loader/loader.tsx +53 -44
- package/src/widgets/loader/utils.ts +26 -3
- package/src/widgets/markdown/config.ts +10 -0
- package/src/widgets/markdown/markdown-ui.tsx +7 -0
- package/src/widgets/markdown/markdown.tsx +7 -7
- package/src/widgets/no-data/no-data.test.tsx +90 -40
- package/src/widgets/no-data/no-data.tsx +12 -13
- package/src/widgets/no-data/types.ts +5 -1
- package/src/widgets/note/note.tsx +10 -0
- package/src/widgets/pie/config.ts +102 -33
- package/src/widgets/pie/style.ts +1 -1
- package/src/widgets/range/components/range-item.test.tsx +243 -0
- package/src/widgets/range/components/range-item.tsx +25 -20
- package/src/widgets/range/config.ts +5 -0
- package/src/widgets/range/range-ui.tsx +3 -0
- package/src/widgets/scatterplot/config.ts +21 -23
- package/src/widgets/scatterplot/style.ts +1 -1
- package/src/widgets/selection-summary/selection-summary.tsx +11 -0
- package/src/widgets/skeleton-loader/skeleton-loader.tsx +12 -5
- package/src/widgets/spread/components/max-value.tsx +18 -18
- package/src/widgets/spread/components/min-value.tsx +18 -18
- package/src/widgets/spread/components/separator.tsx +3 -0
- package/src/widgets/spread/config.ts +11 -0
- package/src/widgets/spread/spread-ui.tsx +4 -1
- package/src/widgets/stores/index.ts +4 -1
- package/src/widgets/stores/types.ts +12 -18
- package/src/widgets/stores/use-widget-selector.ts +47 -0
- package/src/widgets/stores/widget-store-branches.test.ts +275 -0
- package/src/widgets/stores/widget-store-performance.test.ts +750 -0
- package/src/widgets/stores/widget-store.test.ts +213 -13
- package/src/widgets/stores/widget-store.ts +240 -65
- package/src/widgets/subheader/subheader.tsx +22 -3
- package/src/widgets/table/config.test.ts +65 -0
- package/src/widgets/table/config.ts +8 -4
- package/src/widgets/table/hooks/use-pagination.ts +39 -55
- package/src/widgets/table/hooks/use-selection.ts +31 -26
- package/src/widgets/table/hooks/use-sort.ts +33 -42
- package/src/widgets/table/index.ts +6 -4
- package/src/widgets/table/table-ui.tsx +1 -1
- package/src/widgets/table/types.ts +1 -1
- package/src/widgets/timeseries/config.ts +34 -33
- package/src/widgets/timeseries/style.ts +1 -1
- package/src/widgets/utils/chart-config/download-config.ts +22 -0
- package/src/widgets/{_shared → utils}/chart-config/index.ts +6 -0
- package/src/widgets/utils/chart-config/option-builders.test.ts +332 -0
- package/src/widgets/{_shared → utils}/chart-config/option-builders.ts +79 -13
- package/src/widgets/utils/formatter.ts +2 -0
- package/src/widgets/utils/index.ts +26 -0
- package/src/widgets/wrapper/components/actions.tsx +3 -0
- package/src/widgets/wrapper/components/options.tsx +3 -0
- package/src/widgets/wrapper/components/title.tsx +3 -0
- package/src/widgets/wrapper/wrapper-ui.tsx +26 -13
- package/src/widgets/wrapper/wrapper.tsx +18 -6
- package/src/widgets-v2/PERFORMANCE.md +189 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
- package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
- package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
- package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
- package/src/widgets-v2/actions/change-column/change-column.tsx +180 -0
- package/src/widgets-v2/actions/change-column/index.ts +7 -0
- package/src/widgets-v2/actions/change-column/labels.ts +9 -0
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +56 -0
- package/src/widgets-v2/actions/change-column/style.ts +32 -0
- package/src/widgets-v2/actions/change-column/types.ts +11 -0
- package/src/widgets-v2/actions/download/download.test.tsx +327 -0
- package/src/widgets-v2/actions/download/download.tsx +144 -0
- package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
- package/src/widgets-v2/actions/download/exports.ts +115 -0
- package/src/widgets-v2/actions/download/icons.tsx +26 -0
- package/src/widgets-v2/actions/download/index.ts +13 -0
- package/src/widgets-v2/actions/download/labels.ts +16 -0
- package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
- package/src/widgets-v2/actions/download/png-item.tsx +52 -0
- package/src/widgets-v2/actions/download/style.ts +3 -0
- package/src/widgets-v2/actions/download/types.ts +32 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +150 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +230 -0
- package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
- package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
- package/src/widgets-v2/actions/fullscreen/style.ts +59 -0
- package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
- package/src/widgets-v2/actions/index.ts +82 -0
- package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
- package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +187 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +130 -0
- package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
- package/src/widgets-v2/actions/relative-data/index.ts +3 -0
- package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
- package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
- package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
- package/src/widgets-v2/actions/relative-data/style.ts +11 -0
- package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
- package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
- package/src/widgets-v2/actions/searcher/filter.ts +28 -0
- package/src/widgets-v2/actions/searcher/index.ts +8 -0
- package/src/widgets-v2/actions/searcher/labels.ts +13 -0
- package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
- package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
- package/src/widgets-v2/actions/searcher/searcher.tsx +112 -0
- package/src/widgets-v2/actions/searcher/style.ts +15 -0
- package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
- package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
- package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
- package/src/widgets-v2/bar/download.test.tsx +91 -0
- package/src/widgets-v2/bar/download.tsx +66 -0
- package/src/widgets-v2/bar/index.ts +10 -0
- package/src/widgets-v2/bar/options.test.ts +334 -0
- package/src/widgets-v2/bar/options.ts +332 -0
- package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
- package/src/widgets-v2/bar/skeleton.tsx +69 -0
- package/src/widgets-v2/bar/types.ts +51 -0
- package/src/widgets-v2/category/category-ui.test.tsx +746 -0
- package/src/widgets-v2/category/category-ui.tsx +389 -0
- package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
- package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
- package/src/widgets-v2/category/category.test.tsx +305 -0
- package/src/widgets-v2/category/category.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
- package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
- package/src/widgets-v2/category/components/category-bar.tsx +49 -0
- package/src/widgets-v2/category/components/category-legend.test.tsx +51 -0
- package/src/widgets-v2/category/components/category-legend.tsx +39 -0
- package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
- package/src/widgets-v2/category/components/category-row-other.test.tsx +28 -0
- package/src/widgets-v2/category/components/category-row-other.tsx +33 -0
- package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
- package/src/widgets-v2/category/components/category-row-stacked.test.tsx +244 -0
- package/src/widgets-v2/category/components/category-row-stacked.tsx +99 -0
- package/src/widgets-v2/category/download.test.ts +71 -0
- package/src/widgets-v2/category/download.ts +54 -0
- package/src/widgets-v2/category/index.ts +32 -0
- package/src/widgets-v2/category/skeleton.test.tsx +26 -0
- package/src/widgets-v2/category/skeleton.tsx +74 -0
- package/src/widgets-v2/category/style.ts +290 -0
- package/src/widgets-v2/category/types.ts +59 -0
- package/src/widgets-v2/echart/echart-ui.test.tsx +232 -0
- package/src/widgets-v2/echart/echart-ui.tsx +184 -0
- package/src/widgets-v2/echart/echart.test.tsx +229 -0
- package/src/widgets-v2/echart/echart.tsx +199 -0
- package/src/widgets-v2/echart/index.ts +22 -0
- package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
- package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
- package/src/widgets-v2/echart/style.ts +8 -0
- package/src/widgets-v2/echart/use-chart-selection.test.tsx +118 -0
- package/src/widgets-v2/echart/use-chart-selection.ts +115 -0
- package/src/widgets-v2/formula/delta.tsx +61 -0
- package/src/widgets-v2/formula/download.test.tsx +65 -0
- package/src/widgets-v2/formula/download.tsx +69 -0
- package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
- package/src/widgets-v2/formula/formula-ui.tsx +66 -0
- package/src/widgets-v2/formula/formula.test.tsx +50 -0
- package/src/widgets-v2/formula/formula.tsx +34 -0
- package/src/widgets-v2/formula/index.ts +17 -0
- package/src/widgets-v2/formula/note.tsx +25 -0
- package/src/widgets-v2/formula/prefix.tsx +25 -0
- package/src/widgets-v2/formula/series.tsx +67 -0
- package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
- package/src/widgets-v2/formula/skeleton.tsx +27 -0
- package/src/widgets-v2/formula/style.ts +31 -0
- package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
- package/src/widgets-v2/formula/suffix.tsx +25 -0
- package/src/widgets-v2/formula/types.ts +48 -0
- package/src/widgets-v2/formula/value.tsx +31 -0
- package/src/widgets-v2/histogram/download.test.ts +94 -0
- package/src/widgets-v2/histogram/download.ts +60 -0
- package/src/widgets-v2/histogram/index.ts +10 -0
- package/src/widgets-v2/histogram/options.test.ts +318 -0
- package/src/widgets-v2/histogram/options.ts +338 -0
- package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
- package/src/widgets-v2/histogram/skeleton.tsx +70 -0
- package/src/widgets-v2/histogram/transforms.test.ts +46 -0
- package/src/widgets-v2/histogram/transforms.ts +30 -0
- package/src/widgets-v2/histogram/types.ts +55 -0
- package/src/widgets-v2/index.ts +204 -0
- package/src/widgets-v2/markdown/download.test.ts +66 -0
- package/src/widgets-v2/markdown/download.ts +53 -0
- package/src/widgets-v2/markdown/index.ts +6 -0
- package/src/widgets-v2/markdown/markdown-content.test.tsx +155 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +72 -0
- package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
- package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
- package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
- package/src/widgets-v2/markdown/markdown.tsx +17 -0
- package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
- package/src/widgets-v2/markdown/skeleton.tsx +32 -0
- package/src/widgets-v2/markdown/style.ts +53 -0
- package/src/widgets-v2/markdown/types.ts +4 -0
- package/src/widgets-v2/note/labels.ts +9 -0
- package/src/widgets-v2/note/style.ts +26 -0
- package/src/widgets-v2/note/widget-note.test.tsx +158 -0
- package/src/widgets-v2/note/widget-note.tsx +172 -0
- package/src/widgets-v2/pie/download.test.ts +78 -0
- package/src/widgets-v2/pie/download.ts +55 -0
- package/src/widgets-v2/pie/index.ts +10 -0
- package/src/widgets-v2/pie/options.test.ts +601 -0
- package/src/widgets-v2/pie/options.ts +513 -0
- package/src/widgets-v2/pie/skeleton.test.tsx +17 -0
- package/src/widgets-v2/pie/skeleton.tsx +32 -0
- package/src/widgets-v2/pie/types.ts +62 -0
- package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
- package/src/widgets-v2/provider/widget-provider.tsx +111 -0
- package/src/widgets-v2/range/index.ts +4 -0
- package/src/widgets-v2/range/range-ui.test.tsx +136 -0
- package/src/widgets-v2/range/range-ui.tsx +278 -0
- package/src/widgets-v2/range/range.test.tsx +68 -0
- package/src/widgets-v2/range/range.tsx +52 -0
- package/src/widgets-v2/range/skeleton.test.tsx +17 -0
- package/src/widgets-v2/range/skeleton.tsx +47 -0
- package/src/widgets-v2/range/style.ts +41 -0
- package/src/widgets-v2/range/types.ts +37 -0
- package/src/widgets-v2/scatterplot/download.test.ts +71 -0
- package/src/widgets-v2/scatterplot/download.ts +54 -0
- package/src/widgets-v2/scatterplot/index.ts +11 -0
- package/src/widgets-v2/scatterplot/options.test.ts +411 -0
- package/src/widgets-v2/scatterplot/options.ts +425 -0
- package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
- package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
- package/src/widgets-v2/scatterplot/transforms.test.ts +97 -0
- package/src/widgets-v2/scatterplot/transforms.ts +38 -0
- package/src/widgets-v2/scatterplot/types.ts +59 -0
- package/src/widgets-v2/selection-summary/labels.ts +11 -0
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +53 -0
- package/src/widgets-v2/selection-summary/selection-summary.tsx +62 -0
- package/src/widgets-v2/selection-summary/style.ts +23 -0
- package/src/widgets-v2/spread/download.test.ts +64 -0
- package/src/widgets-v2/spread/download.ts +59 -0
- package/src/widgets-v2/spread/index.ts +6 -0
- package/src/widgets-v2/spread/separator.tsx +11 -0
- package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
- package/src/widgets-v2/spread/skeleton.tsx +38 -0
- package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
- package/src/widgets-v2/spread/spread-ui.tsx +52 -0
- package/src/widgets-v2/spread/spread.test.tsx +50 -0
- package/src/widgets-v2/spread/spread.tsx +31 -0
- package/src/widgets-v2/spread/types.ts +27 -0
- package/src/widgets-v2/state/labels.test.ts +33 -0
- package/src/widgets-v2/state/labels.ts +20 -0
- package/src/widgets-v2/state/style.ts +25 -0
- package/src/widgets-v2/state/widget-state.test.tsx +294 -0
- package/src/widgets-v2/state/widget-state.tsx +184 -0
- package/src/widgets-v2/stores/index.ts +49 -0
- package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
- package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
- package/src/widgets-v2/stores/transforms.test.ts +162 -0
- package/src/widgets-v2/stores/transforms.ts +70 -0
- package/src/widgets-v2/stores/types.ts +64 -0
- package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
- package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
- package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
- package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
- package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
- package/src/widgets-v2/stores/use-transform.ts +158 -0
- package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
- package/src/widgets-v2/stores/widget-context.ts +15 -0
- package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
- package/src/widgets-v2/stores/widget-store-registry.ts +248 -0
- package/src/widgets-v2/subheader/style.ts +12 -0
- package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
- package/src/widgets-v2/subheader/subheader.tsx +16 -0
- package/src/widgets-v2/table/download.test.ts +75 -0
- package/src/widgets-v2/table/download.ts +47 -0
- package/src/widgets-v2/table/helpers.test.ts +214 -0
- package/src/widgets-v2/table/helpers.ts +136 -0
- package/src/widgets-v2/table/index.ts +23 -0
- package/src/widgets-v2/table/labels.tsx +41 -0
- package/src/widgets-v2/table/skeleton.test.tsx +26 -0
- package/src/widgets-v2/table/skeleton.tsx +65 -0
- package/src/widgets-v2/table/style.ts +43 -0
- package/src/widgets-v2/table/table-ui.test.tsx +200 -0
- package/src/widgets-v2/table/table-ui.tsx +364 -0
- package/src/widgets-v2/table/table.test.tsx +119 -0
- package/src/widgets-v2/table/table.tsx +179 -0
- package/src/widgets-v2/table/types.ts +55 -0
- package/src/widgets-v2/test-utils.ts +107 -0
- package/src/widgets-v2/timeseries/download.test.ts +95 -0
- package/src/widgets-v2/timeseries/download.ts +86 -0
- package/src/widgets-v2/timeseries/index.ts +10 -0
- package/src/widgets-v2/timeseries/options.test.ts +394 -0
- package/src/widgets-v2/timeseries/options.ts +348 -0
- package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
- package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
- package/src/widgets-v2/timeseries/types.ts +65 -0
- package/src/widgets-v2/toolbox/labels.ts +9 -0
- package/src/widgets-v2/toolbox/style.ts +33 -0
- package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
- package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
- package/src/widgets-v2/types.ts +25 -0
- package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
- package/src/widgets-v2/utils/index.ts +3 -0
- package/src/widgets-v2/utils/merge-options.test.ts +52 -0
- package/src/widgets-v2/utils/merge-options.ts +50 -0
- package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
- package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
- package/src/widgets-v2/wrapper/index.ts +14 -0
- package/src/widgets-v2/wrapper/labels.ts +11 -0
- package/src/widgets-v2/wrapper/style.ts +134 -0
- package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
- package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
- package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
- package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
- package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +159 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +178 -0
- package/dist/error-CEkRPccv.js +0 -39
- package/dist/error-CEkRPccv.js.map +0 -1
- package/dist/index-BnyeR7Qx.js +0 -6601
- package/dist/index-BnyeR7Qx.js.map +0 -1
- package/dist/no-data-hR3KcJ-_.js +0 -60
- package/dist/no-data-hR3KcJ-_.js.map +0 -1
- package/dist/note-t51drNe0.js +0 -124
- package/dist/note-t51drNe0.js.map +0 -1
- package/dist/options-D9wflre6.js +0 -49
- package/dist/options-D9wflre6.js.map +0 -1
- package/dist/row-DTCV0Ocm.js +0 -35
- package/dist/row-DTCV0Ocm.js.map +0 -1
- package/dist/series-CYNOu2Ju.js +0 -91
- package/dist/series-CYNOu2Ju.js.map +0 -1
- package/dist/styles-CAroD5Rc.js +0 -123
- package/dist/styles-CAroD5Rc.js.map +0 -1
- package/dist/types/hooks/use-debounce.d.ts +0 -19
- package/dist/types/widgets/category/components/index.d.ts +0 -10
- package/dist/types/widgets/index.d.ts +0 -9
- package/dist/types/widgets/table/hooks/index.d.ts +0 -6
- package/dist/use-widget-ref-P-2i0MJG.js +0 -19
- package/dist/use-widget-ref-P-2i0MJG.js.map +0 -1
- package/dist/utils-idmvq0Oa.js.map +0 -1
- package/dist/widget-store-CzDt8oSK.js +0 -163
- package/dist/widget-store-CzDt8oSK.js.map +0 -1
- package/dist/widgets.js +0 -13
- package/dist/widgets.js.map +0 -1
- package/src/hooks/use-debounce.ts +0 -55
- package/src/widgets/_shared/chart-config/option-builders.test.ts +0 -40
- package/src/widgets/category/components/index.ts +0 -14
- package/src/widgets/index.ts +0 -25
- package/src/widgets/table/hooks/index.ts +0 -7
- /package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/index.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
- /package/dist/types/{widgets/_shared/chart-config/option-builders.test.d.ts → widgets-v2/actions/brush-toggle/transforms.test.d.ts} +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/config-factory.ts +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/csv-modifiers.ts +0 -0
- /package/src/widgets/{_shared → utils}/skeleton/index.ts +0 -0
- /package/src/widgets/{_shared → utils}/skeleton/styles.ts +0 -0
package/dist/chat.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c as
|
|
4
|
-
import { styled as
|
|
5
|
-
import { ErrorOutline as
|
|
6
|
-
import { keyframes as
|
|
7
|
-
import { C as
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
10
|
-
function
|
|
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:
|
|
12
|
+
speed: n = 500,
|
|
13
13
|
skipAnimation: r = !1
|
|
14
|
-
} = e, l =
|
|
15
|
-
return
|
|
14
|
+
} = e, l = X(r), [o, d] = N(() => l.current ? t.length : 0);
|
|
15
|
+
return Z(() => {
|
|
16
16
|
if (l.current) {
|
|
17
|
-
|
|
17
|
+
d(t.length);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
if (
|
|
20
|
+
if (o >= t.length)
|
|
21
21
|
return;
|
|
22
|
-
const s = 1e3 /
|
|
23
|
-
let i,
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
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(
|
|
30
|
-
}, [t,
|
|
31
|
-
displayedText: t.slice(0,
|
|
32
|
-
isTyping:
|
|
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
|
|
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
|
-
|
|
42
|
-
const
|
|
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
|
|
235
|
-
const e =
|
|
236
|
-
children:
|
|
234
|
+
function Lt(t) {
|
|
235
|
+
const e = W(11), {
|
|
236
|
+
children: n,
|
|
237
237
|
muted: r,
|
|
238
238
|
topContext: l,
|
|
239
|
-
sx:
|
|
240
|
-
} = t,
|
|
239
|
+
sx: o
|
|
240
|
+
} = t, d = r === void 0 ? !1 : r;
|
|
241
241
|
let s;
|
|
242
|
-
e[0] !== l ? (s = l && /* @__PURE__ */
|
|
243
|
-
const i =
|
|
244
|
-
let
|
|
245
|
-
e[2] !==
|
|
246
|
-
...
|
|
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
|
-
...
|
|
249
|
-
}, e[2] =
|
|
250
|
-
let
|
|
251
|
-
e[5] !==
|
|
252
|
-
let
|
|
253
|
-
return e[8] !== s || e[9] !==
|
|
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
|
-
|
|
256
|
-
] }), e[8] = s, e[9] =
|
|
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 =
|
|
260
|
-
let
|
|
259
|
+
const e = W(6);
|
|
260
|
+
let n, r;
|
|
261
261
|
e[0] !== t ? ({
|
|
262
|
-
className:
|
|
262
|
+
className: n,
|
|
263
263
|
...r
|
|
264
|
-
} = t, e[0] = t, e[1] =
|
|
265
|
-
const l = `PsChat--agent-message ${
|
|
266
|
-
let
|
|
267
|
-
return e[3] !== r || e[4] !== l ? (
|
|
268
|
-
}, Je =
|
|
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
|
-
}) =>
|
|
270
|
+
}) => O.agentMessageContainer(t));
|
|
271
271
|
Je.displayName = "ChatAgentMessage";
|
|
272
|
-
function
|
|
273
|
-
const e =
|
|
274
|
-
errors:
|
|
272
|
+
function $t(t) {
|
|
273
|
+
const e = W(13), {
|
|
274
|
+
errors: n,
|
|
275
275
|
icon: r,
|
|
276
276
|
actions: l,
|
|
277
|
-
sx:
|
|
277
|
+
sx: o
|
|
278
278
|
} = t;
|
|
279
|
-
let
|
|
280
|
-
e[0] !==
|
|
281
|
-
...
|
|
282
|
-
...
|
|
283
|
-
}, e[0] =
|
|
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__ */
|
|
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] !==
|
|
288
|
-
let
|
|
289
|
-
e[6] !== l ? (
|
|
290
|
-
let
|
|
291
|
-
return e[8] !==
|
|
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
|
-
|
|
295
|
-
] }), e[8] =
|
|
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__ */
|
|
299
|
-
e > 0 && /* @__PURE__ */
|
|
300
|
-
/* @__PURE__ */
|
|
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__ */
|
|
304
|
+
return /* @__PURE__ */ c(A, { variant: "subtitle2", color: "error.relatedDark", children: t }, e);
|
|
305
305
|
}
|
|
306
306
|
function et(t) {
|
|
307
|
-
const e =
|
|
308
|
-
let
|
|
307
|
+
const e = W(17);
|
|
308
|
+
let n, r, l, o;
|
|
309
309
|
e[0] !== t ? ({
|
|
310
310
|
label: r,
|
|
311
|
-
color:
|
|
312
|
-
sx:
|
|
311
|
+
color: n,
|
|
312
|
+
sx: o,
|
|
313
313
|
...l
|
|
314
|
-
} = t, e[0] = t, e[1] =
|
|
315
|
-
let
|
|
316
|
-
e[5] !==
|
|
317
|
-
backgroundColor:
|
|
318
|
-
} : void 0, e[5] =
|
|
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] !==
|
|
321
|
-
...
|
|
322
|
-
...
|
|
323
|
-
...
|
|
324
|
-
}, e[7] =
|
|
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__ */
|
|
327
|
-
let
|
|
328
|
-
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
329
|
-
let
|
|
330
|
-
return e[13] !== l || e[14] !== s || e[15] !== i ? (
|
|
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
|
-
|
|
333
|
-
] }), e[13] = l, e[14] = s, e[15] = i, e[16] =
|
|
332
|
+
a
|
|
333
|
+
] }), e[13] = l, e[14] = s, e[15] = i, e[16] = p) : p = e[16], p;
|
|
334
334
|
}
|
|
335
|
-
const tt =
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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: `${
|
|
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: `${
|
|
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 =
|
|
635
|
-
children:
|
|
634
|
+
const e = W(6), {
|
|
635
|
+
children: n,
|
|
636
636
|
duration: r,
|
|
637
637
|
sx: l
|
|
638
|
-
} = t,
|
|
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
|
|
646
|
-
return e[3] !==
|
|
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
|
|
649
|
-
const e =
|
|
650
|
-
size:
|
|
648
|
+
function Rt(t) {
|
|
649
|
+
const e = W(16), {
|
|
650
|
+
size: n,
|
|
651
651
|
labels: r,
|
|
652
652
|
sx: l
|
|
653
|
-
} = t,
|
|
654
|
-
let
|
|
655
|
-
e[0] !== r ? (
|
|
656
|
-
const i =
|
|
657
|
-
let
|
|
658
|
-
e[2] !==
|
|
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:
|
|
661
|
-
height:
|
|
660
|
+
width: o,
|
|
661
|
+
height: o,
|
|
662
662
|
...l
|
|
663
|
-
}, e[2] =
|
|
664
|
-
const
|
|
665
|
-
let
|
|
666
|
-
e[5] !==
|
|
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:
|
|
677
|
-
} }), e[
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
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
|
|
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,13 +715,13 @@ const lt = N`
|
|
|
724
715
|
footerCorner: {
|
|
725
716
|
position: "absolute",
|
|
726
717
|
bottom: "38px",
|
|
727
|
-
right: `max(16px, calc(50% - ${
|
|
718
|
+
right: `max(16px, calc(50% - ${Q / 2}px + 6px))`,
|
|
728
719
|
margin: "0 auto"
|
|
729
720
|
},
|
|
730
721
|
footer: {
|
|
731
|
-
maxWidth:
|
|
722
|
+
maxWidth: Q,
|
|
732
723
|
margin: "0 auto",
|
|
733
|
-
"
|
|
724
|
+
"&.MuiFilledInput-root.MuiInputBase-multiline.MuiInputBase-sizeSmall textarea": {
|
|
734
725
|
resize: "none",
|
|
735
726
|
maxHeight: "10em",
|
|
736
727
|
overflowY: "auto !important",
|
|
@@ -747,7 +738,7 @@ const lt = N`
|
|
|
747
738
|
flex: 1,
|
|
748
739
|
position: "relative",
|
|
749
740
|
mx: "auto",
|
|
750
|
-
maxWidth:
|
|
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
|
-
"
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
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
|
-
},
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
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
|
-
},
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
function
|
|
846
|
-
const e =
|
|
847
|
-
leftSlot:
|
|
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:
|
|
851
|
-
sx:
|
|
878
|
+
onClose: o,
|
|
879
|
+
sx: d
|
|
852
880
|
} = t;
|
|
853
881
|
let s;
|
|
854
|
-
e[0] !==
|
|
855
|
-
...
|
|
856
|
-
...
|
|
857
|
-
}, e[0] =
|
|
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__ */
|
|
860
|
-
let
|
|
861
|
-
e[4] !==
|
|
862
|
-
let
|
|
863
|
-
e[6] !== l || e[7] !==
|
|
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
|
-
|
|
866
|
-
] }), e[6] = l, e[7] =
|
|
867
|
-
let
|
|
868
|
-
return e[9] !==
|
|
869
|
-
|
|
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
|
-
|
|
872
|
-
] }), e[9] =
|
|
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
|
|
876
|
-
const e =
|
|
877
|
-
value:
|
|
903
|
+
function Bt(t) {
|
|
904
|
+
const e = W(35), {
|
|
905
|
+
value: n,
|
|
878
906
|
onChange: r,
|
|
879
907
|
onSend: l,
|
|
880
|
-
onStop:
|
|
881
|
-
isGenerating:
|
|
908
|
+
onStop: o,
|
|
909
|
+
isGenerating: d,
|
|
882
910
|
disabled: s,
|
|
883
911
|
placeholder: i,
|
|
884
|
-
labels:
|
|
885
|
-
caption:
|
|
886
|
-
sx:
|
|
887
|
-
} = t,
|
|
888
|
-
let
|
|
889
|
-
e[0] !==
|
|
890
|
-
const
|
|
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] !==
|
|
893
|
-
const
|
|
894
|
-
let
|
|
895
|
-
e[6] !==
|
|
896
|
-
|
|
897
|
-
}, e[6] =
|
|
898
|
-
const S =
|
|
899
|
-
let
|
|
900
|
-
e[9] !==
|
|
901
|
-
...
|
|
902
|
-
...
|
|
903
|
-
}, e[9] =
|
|
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[
|
|
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] =
|
|
911
|
-
let
|
|
912
|
-
e[14] !== S || e[15] !==
|
|
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] !==
|
|
915
|
-
let
|
|
916
|
-
e[28] !== b ? (
|
|
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] !==
|
|
919
|
-
|
|
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
|
-
|
|
922
|
-
] }), e[30] =
|
|
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
|
|
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
|
|
935
|
-
const e =
|
|
936
|
-
icon:
|
|
962
|
+
function Ft(t) {
|
|
963
|
+
const e = W(40), {
|
|
964
|
+
icon: n,
|
|
937
965
|
title: r,
|
|
938
966
|
description: l,
|
|
939
|
-
items:
|
|
940
|
-
size:
|
|
967
|
+
items: o,
|
|
968
|
+
size: d,
|
|
941
969
|
onSelect: s,
|
|
942
970
|
sx: i
|
|
943
|
-
} = t,
|
|
944
|
-
let
|
|
945
|
-
if (e[0] !== l || e[1] !==
|
|
946
|
-
const
|
|
947
|
-
|
|
948
|
-
const S =
|
|
949
|
-
e[15] !== i || e[16] !== S ? (
|
|
950
|
-
...
|
|
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] =
|
|
954
|
-
const
|
|
955
|
-
e[24] !==
|
|
956
|
-
...
|
|
957
|
-
gap:
|
|
958
|
-
|
|
959
|
-
}, e[24] =
|
|
960
|
-
let
|
|
961
|
-
e[27] !== s ? (
|
|
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
|
-
|
|
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] !==
|
|
966
|
-
let
|
|
967
|
-
return e[33] !==
|
|
968
|
-
|
|
969
|
-
|
|
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] =
|
|
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:
|
|
1005
|
+
color: de[e]
|
|
978
1006
|
} : {
|
|
979
1007
|
label: t.label,
|
|
980
|
-
color: t.color ??
|
|
1008
|
+
color: t.color ?? de[e]
|
|
981
1009
|
};
|
|
982
1010
|
}
|
|
983
|
-
const
|
|
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
|
|
991
|
-
const e =
|
|
992
|
-
rating:
|
|
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
|
|
997
|
-
e[0] !== l ? (
|
|
998
|
-
const
|
|
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] !==
|
|
1001
|
-
const i =
|
|
1002
|
-
let
|
|
1003
|
-
e[5] !==
|
|
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[
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
let
|
|
1012
|
-
e[
|
|
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] !==
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
] }), e[22] =
|
|
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
|
|
1023
|
-
const l = /* @__PURE__ */ new Set(),
|
|
1024
|
-
let
|
|
1025
|
-
for (; (
|
|
1026
|
-
l.add(
|
|
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 >
|
|
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
|
-
}),
|
|
1080
|
+
}), n = r.index + i.length;
|
|
1053
1081
|
}
|
|
1054
|
-
return
|
|
1082
|
+
return n < t.length && e.push(t.slice(n)), e;
|
|
1055
1083
|
}
|
|
1056
1084
|
function ut(t) {
|
|
1057
|
-
const e =
|
|
1058
|
-
open:
|
|
1085
|
+
const e = W(24), {
|
|
1086
|
+
open: n,
|
|
1059
1087
|
onClose: r,
|
|
1060
1088
|
title: l,
|
|
1061
|
-
content:
|
|
1089
|
+
content: o
|
|
1062
1090
|
} = t;
|
|
1063
|
-
let
|
|
1064
|
-
e[0] !==
|
|
1065
|
-
`).map(mt), e[0] =
|
|
1066
|
-
const s =
|
|
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
|
|
1072
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
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[
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
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[
|
|
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[
|
|
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] !==
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
] }), e[19] = r, e[20] =
|
|
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
|
|
1104
|
-
return /* @__PURE__ */
|
|
1105
|
-
t.map(
|
|
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
|
|
1111
|
-
return typeof t == "string" ? t : /* @__PURE__ */
|
|
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
|
-
|
|
1117
|
-
|
|
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:
|
|
1200
|
-
sx:
|
|
1149
|
+
labels: o,
|
|
1150
|
+
sx: d
|
|
1201
1151
|
} = t, s = r === void 0 ? "" : r, i = l === void 0 ? !1 : l;
|
|
1202
|
-
let
|
|
1203
|
-
e[0] !==
|
|
1204
|
-
const
|
|
1205
|
-
let
|
|
1206
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1207
|
-
const D =
|
|
1208
|
-
D &&
|
|
1209
|
-
}, e[2] =
|
|
1210
|
-
const b =
|
|
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 =
|
|
1164
|
+
const D = m.current;
|
|
1215
1165
|
if (!D)
|
|
1216
1166
|
return;
|
|
1217
|
-
const
|
|
1218
|
-
return
|
|
1167
|
+
const M = new ResizeObserver(b);
|
|
1168
|
+
return M.observe(D), () => M.disconnect();
|
|
1219
1169
|
}, e[3] = v) : v = e[3];
|
|
1220
|
-
let
|
|
1221
|
-
e[4] !==
|
|
1222
|
-
const
|
|
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] !==
|
|
1174
|
+
e[6] !== d ? (S = {
|
|
1225
1175
|
...w.codeArea,
|
|
1226
|
-
...
|
|
1227
|
-
}, e[6] =
|
|
1228
|
-
let
|
|
1229
|
-
e[8] !== i ? (
|
|
1230
|
-
let
|
|
1231
|
-
e[10] !==
|
|
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
|
-
...
|
|
1235
|
-
}, e[10] =
|
|
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
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
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] =
|
|
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
|
|
1205
|
+
function ye(t) {
|
|
1256
1206
|
return t.status === "running" ? t.runningLabel ?? fe(t.name) : t.label ?? fe(t.name);
|
|
1257
1207
|
}
|
|
1258
|
-
function
|
|
1259
|
-
const e =
|
|
1260
|
-
status:
|
|
1208
|
+
function ht(t) {
|
|
1209
|
+
const e = W(9), {
|
|
1210
|
+
status: n,
|
|
1261
1211
|
labels: r
|
|
1262
1212
|
} = t;
|
|
1263
|
-
switch (
|
|
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
|
|
1272
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
1275
|
-
const
|
|
1224
|
+
}, color: "success" }), e[1] = o) : o = e[1];
|
|
1225
|
+
const d = r?.success ?? "Success";
|
|
1276
1226
|
let s;
|
|
1277
|
-
return e[2] !==
|
|
1278
|
-
|
|
1279
|
-
/* @__PURE__ */
|
|
1280
|
-
] }), e[2] =
|
|
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
|
|
1290
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
1293
|
-
const
|
|
1242
|
+
}, color: "error" }), e[5] = o) : o = e[5];
|
|
1243
|
+
const d = r?.error ?? "Error";
|
|
1294
1244
|
let s;
|
|
1295
|
-
return e[6] !==
|
|
1296
|
-
|
|
1297
|
-
/* @__PURE__ */
|
|
1298
|
-
] }), e[6] =
|
|
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__ */
|
|
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
|
|
1309
|
-
const e =
|
|
1310
|
-
tool:
|
|
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
|
|
1316
|
-
let
|
|
1317
|
-
e[2] !== i || e[3] !==
|
|
1318
|
-
/* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */
|
|
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] =
|
|
1324
|
-
let
|
|
1325
|
-
e[5] !==
|
|
1326
|
-
/* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1328
|
-
|
|
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] =
|
|
1332
|
-
let
|
|
1333
|
-
e[8] !==
|
|
1334
|
-
let
|
|
1335
|
-
e[10] !==
|
|
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] !==
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
] }), e[13] =
|
|
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] !==
|
|
1343
|
-
/* @__PURE__ */
|
|
1344
|
-
/* @__PURE__ */
|
|
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:
|
|
1347
|
-
}, content:
|
|
1348
|
-
] }), e[16] =
|
|
1349
|
-
let
|
|
1350
|
-
e[22] !==
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */
|
|
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:
|
|
1355
|
-
] }), e[22] =
|
|
1356
|
-
let
|
|
1357
|
-
return e[27] !==
|
|
1358
|
-
|
|
1359
|
-
|
|
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
|
-
|
|
1363
|
-
] }), e[27] =
|
|
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
|
|
1366
|
-
const e =
|
|
1367
|
-
tool:
|
|
1315
|
+
function pe(t) {
|
|
1316
|
+
const e = W(29), {
|
|
1317
|
+
tool: n,
|
|
1368
1318
|
expanded: r,
|
|
1369
1319
|
onExpandedChange: l,
|
|
1370
|
-
labels:
|
|
1371
|
-
sx:
|
|
1320
|
+
labels: o,
|
|
1321
|
+
sx: d
|
|
1372
1322
|
} = t;
|
|
1373
1323
|
let s;
|
|
1374
|
-
e[0] !==
|
|
1375
|
-
const i = s,
|
|
1376
|
-
if (
|
|
1377
|
-
let
|
|
1378
|
-
e[2] !==
|
|
1379
|
-
let
|
|
1380
|
-
return e[4] !==
|
|
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
|
|
1386
|
-
e[9] !==
|
|
1387
|
-
const
|
|
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[
|
|
1395
|
-
|
|
1396
|
-
x
|
|
1397
|
-
|
|
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[
|
|
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[
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
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
|
|
1409
|
-
const
|
|
1357
|
+
function me(t, e) {
|
|
1358
|
+
const n = W(5), [r, l] = N(t);
|
|
1410
1359
|
if (e) {
|
|
1411
|
-
let
|
|
1412
|
-
return
|
|
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
|
|
1415
|
-
return
|
|
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
|
|
1419
|
-
const e =
|
|
1420
|
-
tools:
|
|
1367
|
+
function Mt(t) {
|
|
1368
|
+
const e = W(61), {
|
|
1369
|
+
tools: n,
|
|
1421
1370
|
expanded: r,
|
|
1422
1371
|
onExpandedChange: l,
|
|
1423
|
-
expandedTools:
|
|
1424
|
-
onToolExpandedChange:
|
|
1372
|
+
expandedTools: o,
|
|
1373
|
+
onToolExpandedChange: d,
|
|
1425
1374
|
labels: s,
|
|
1426
1375
|
sx: i
|
|
1427
|
-
} = t,
|
|
1428
|
-
let
|
|
1429
|
-
e[0] !==
|
|
1430
|
-
const
|
|
1431
|
-
let
|
|
1432
|
-
e[2] !== s ? (
|
|
1433
|
-
const
|
|
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] !==
|
|
1436
|
-
const
|
|
1437
|
-
let
|
|
1438
|
-
if (e[6] !==
|
|
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
|
|
1442
|
-
if (
|
|
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] !==
|
|
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
|
|
1448
|
-
e[22] !==
|
|
1449
|
-
const B =
|
|
1450
|
-
let
|
|
1451
|
-
e[25] !== B ? (
|
|
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] =
|
|
1403
|
+
}, e[25] = B, e[26] = R) : R = e[26];
|
|
1455
1404
|
let D;
|
|
1456
|
-
e[27] !==
|
|
1457
|
-
|
|
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
|
-
|
|
1460
|
-
] }), e[27] =
|
|
1461
|
-
const
|
|
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] !==
|
|
1412
|
+
e[30] !== M ? (P = /* @__PURE__ */ c(xe, { sx: {
|
|
1464
1413
|
...w.traceChevron,
|
|
1465
|
-
transform:
|
|
1466
|
-
} }), e[30] =
|
|
1414
|
+
transform: M
|
|
1415
|
+
} }), e[30] = M, e[31] = P) : P = e[31];
|
|
1467
1416
|
let V;
|
|
1468
|
-
e[32] !==
|
|
1469
|
-
|
|
1470
|
-
/* @__PURE__ */
|
|
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] =
|
|
1474
|
-
let
|
|
1475
|
-
e[34] !==
|
|
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] =
|
|
1480
|
-
const
|
|
1481
|
-
let
|
|
1482
|
-
e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
1487
|
-
let
|
|
1488
|
-
e[42] !==
|
|
1489
|
-
const
|
|
1490
|
-
return /* @__PURE__ */
|
|
1491
|
-
/* @__PURE__ */
|
|
1492
|
-
...
|
|
1493
|
-
[F.id]: !
|
|
1494
|
-
}), "aria-expanded":
|
|
1495
|
-
/* @__PURE__ */
|
|
1496
|
-
F.status === "error" && /* @__PURE__ */
|
|
1497
|
-
/* @__PURE__ */
|
|
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:
|
|
1448
|
+
transform: G ? "rotate(90deg)" : "rotate(0deg)"
|
|
1500
1449
|
} })
|
|
1501
1450
|
] }),
|
|
1502
|
-
/* @__PURE__ */
|
|
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] =
|
|
1505
|
-
const
|
|
1506
|
-
let
|
|
1507
|
-
e[
|
|
1508
|
-
let
|
|
1509
|
-
e[
|
|
1510
|
-
let
|
|
1511
|
-
e[
|
|
1512
|
-
...
|
|
1513
|
-
[F.id]: !
|
|
1514
|
-
}) }, F.id), e[
|
|
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
|
-
|
|
1465
|
+
q,
|
|
1466
|
+
_.map(J)
|
|
1518
1467
|
] });
|
|
1519
1468
|
}
|
|
1520
|
-
e[6] =
|
|
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
|
-
|
|
1523
|
-
return S !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? S :
|
|
1471
|
+
T = e[14], S = e[15];
|
|
1472
|
+
return S !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? S : T;
|
|
1524
1473
|
}
|
|
1525
|
-
function
|
|
1474
|
+
function gt(t) {
|
|
1526
1475
|
return t.status !== "running";
|
|
1527
1476
|
}
|
|
1528
|
-
function
|
|
1477
|
+
function xt(t) {
|
|
1529
1478
|
return t.status === "running";
|
|
1530
1479
|
}
|
|
1531
|
-
function
|
|
1480
|
+
function bt(t) {
|
|
1532
1481
|
return t.status === "error";
|
|
1533
1482
|
}
|
|
1534
1483
|
export {
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
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
|
-
|
|
1488
|
+
Wt as ChatActionsContainer,
|
|
1540
1489
|
Je as ChatAgentMessage,
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
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
|
-
|
|
1500
|
+
ue as ChatToolCodeArea,
|
|
1552
1501
|
ut as ChatToolFullViewDialog,
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1502
|
+
Mt as ChatToolGroup,
|
|
1503
|
+
pe as ChatToolTrace,
|
|
1504
|
+
Lt as ChatUserMessage,
|
|
1505
|
+
Et as useTypewriter
|
|
1557
1506
|
};
|
|
1558
1507
|
//# sourceMappingURL=chat.js.map
|