@glodon-aiot/agent-cli-ui 3.2.2-beta.3 → 3.2.2-beta.4
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/es/AgentClientUI.mjs +3 -4
- package/dist/es/Dialog/AgentChat/index.mjs +141 -141
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +2 -3
- package/dist/es/Dialog/FileCard/index.mjs +2 -3
- package/dist/es/Dialog/FilePreview/index.mjs +2 -3
- package/dist/es/Dialog/Greeting/index.mjs +2 -3
- package/dist/es/Dialog/HistoryContent/index.mjs +2 -3
- package/dist/es/Dialog/HistoryItem/index.mjs +29 -30
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +2 -3
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +2 -3
- package/dist/es/Dialog/KnowledgeList/index.mjs +21 -22
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +1 -1
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +2 -3
- package/dist/es/Dialog/PromptManager/index.mjs +2 -3
- package/dist/es/Dialog/PromptSetting/index.mjs +2 -3
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +3 -4
- package/dist/es/Dialog/Recommend/index.mjs +2 -3
- package/dist/es/Dialog/ReferCollapse/index.mjs +2 -3
- package/dist/es/Dialog/SearchReference/index.mjs +92 -55
- package/dist/es/Dialog/SessionAction/index.mjs +4 -5
- package/dist/es/Dialog/SessionList/index.mjs +3 -4
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +2 -3
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +2 -3
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +2 -3
- package/dist/es/Dialog/SessionListDrawer/index.mjs +2 -3
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +2 -3
- package/dist/es/Dialog/SessionRefer/index.mjs +2 -3
- package/dist/es/Dialog/SessionRelated/index.mjs +2 -3
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +2 -3
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +2 -3
- package/dist/es/Dialog/UploadingPrompt/index.mjs +2 -3
- package/dist/es/Dialog/index.mjs +57 -58
- package/dist/es/FileItem/index.mjs +2 -3
- package/dist/es/Footer/FooterWarning.mjs +2 -3
- package/dist/es/Footer/index.mjs +2 -3
- package/dist/es/Iconfont/index.mjs +2 -2
- package/dist/es/InputProgress/index.mjs +2 -3
- package/dist/es/QuillEditor/index.mjs +4 -5
- package/dist/es/components/Copy/index.mjs +2 -3
- package/dist/es/components/JsonDisplay/index.mjs +2 -3
- package/dist/es/components/Markdown/ATag/index.mjs +1 -1
- package/dist/es/components/Markdown/Code/index.mjs +1 -1
- package/dist/es/components/Markdown/Image/index.mjs +20 -21
- package/dist/es/components/Markdown/Video/index.mjs +1 -1
- package/dist/es/components/Markdown/index.mjs +16 -17
- package/dist/es/components/WebLink/index.mjs +1 -1
- package/dist/es/constant.mjs +8 -2
- package/dist/es/index.mjs +60 -65
- package/dist/es/src/style.css +1 -0
- package/dist/es/src/style10.css +1 -0
- package/dist/es/src/style11.css +1 -0
- package/dist/es/src/style12.css +1 -0
- package/dist/es/src/style13.css +1 -0
- package/dist/es/src/style14.css +1 -0
- package/dist/es/src/style15.css +1 -0
- package/dist/es/src/style16.css +1 -0
- package/dist/es/src/style17.css +1 -0
- package/dist/es/src/style18.css +1 -0
- package/dist/es/src/style19.css +1 -0
- package/dist/es/src/style2.css +1 -0
- package/dist/es/src/style20.css +1 -0
- package/dist/es/src/style21.css +0 -0
- package/dist/es/src/style22.css +1 -0
- package/dist/es/src/style23.css +1 -0
- package/dist/es/src/style24.css +1 -0
- package/dist/es/src/style25.css +1 -0
- package/dist/es/src/style26.css +1 -0
- package/dist/es/src/style27.css +1 -0
- package/dist/es/src/style28.css +1 -0
- package/dist/es/src/style29.css +1 -0
- package/dist/es/src/style3.css +1 -0
- package/dist/es/src/style30.css +1 -0
- package/dist/es/src/style31.css +1 -0
- package/dist/es/src/style32.css +1 -0
- package/dist/es/src/style33.css +1 -0
- package/dist/es/src/style4.css +1 -0
- package/dist/es/src/style5.css +1 -0
- package/dist/es/src/style6.css +1 -0
- package/dist/es/src/style7.css +1 -0
- package/dist/es/src/style8.css +1 -0
- package/dist/es/src/style9.css +1 -0
- package/dist/lib/index.css +1 -0
- package/dist/lib/index.js +5 -311
- package/dist/src/Dialog/SearchReference/index.d.ts +7 -4
- package/dist/src/Iconfont/index.d.ts +0 -1
- package/dist/src/components/Markdown/ATag/index.d.ts +0 -1
- package/dist/src/components/Markdown/Code/index.d.ts +0 -1
- package/dist/src/components/Markdown/Image/index.d.ts +0 -1
- package/dist/src/components/Markdown/Video/index.d.ts +0 -1
- package/dist/src/types.d.ts +11 -2
- package/package.json +19 -6
- package/dist/es/Dialog/AgentChat/style.less.mjs +0 -4
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +0 -4
- package/dist/es/Dialog/FileCard/style.less.mjs +0 -4
- package/dist/es/Dialog/FilePreview/style.less.mjs +0 -4
- package/dist/es/Dialog/Greeting/style.less.mjs +0 -4
- package/dist/es/Dialog/HistoryContent/style.less.mjs +0 -4
- package/dist/es/Dialog/HistoryItem/style.less.mjs +0 -4
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +0 -4
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +0 -4
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +0 -4
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +0 -4
- package/dist/es/Dialog/PromptManager/style.less.mjs +0 -4
- package/dist/es/Dialog/PromptSetting/style.less.mjs +0 -4
- package/dist/es/Dialog/Recommend/style.less.mjs +0 -4
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +0 -4
- package/dist/es/Dialog/SearchReference/style.less.mjs +0 -4
- package/dist/es/Dialog/SessionAction/style.less.mjs +0 -4
- package/dist/es/Dialog/SessionList/style.less.mjs +0 -4
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +0 -4
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +0 -4
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +0 -4
- package/dist/es/Dialog/SessionRefer/style.less.mjs +0 -4
- package/dist/es/Dialog/SessionRelated/style.less.mjs +0 -4
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +0 -4
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +0 -4
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +0 -4
- package/dist/es/Dialog/style.less.mjs +0 -4
- package/dist/es/FileItem/style.less.mjs +0 -4
- package/dist/es/Footer/style.less.mjs +0 -4
- package/dist/es/InputProgress/style.less.mjs +0 -4
- package/dist/es/QuillEditor/style.less.mjs +0 -4
- package/dist/es/_virtual/_cloneBuffer.mjs +0 -4
- package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/es/_virtual/_nodeUtil.mjs +0 -4
- package/dist/es/_virtual/index.mjs +0 -4
- package/dist/es/_virtual/isBuffer.mjs +0 -4
- package/dist/es/_virtual/jsx-runtime.mjs +0 -7
- package/dist/es/_virtual/jsx-runtime2.mjs +0 -4
- package/dist/es/_virtual/lib.mjs +0 -4
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +0 -4
- package/dist/es/_virtual/ua-parser.min.mjs +0 -4
- package/dist/es/components/Copy/style.less.mjs +0 -4
- package/dist/es/components/JsonDisplay/style.less.mjs +0 -4
- package/dist/es/components/Markdown/style.less.mjs +0 -4
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +0 -1
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +0 -1
- package/dist/es/font/gos-font.js +0 -64
- package/dist/es/images/empty.svg +0 -40
- package/dist/es/images/loading.gif +0 -0
- package/dist/es/images/logo.png +0 -0
- package/dist/es/images/map-example.png +0 -0
- package/dist/es/images/sketch.png +0 -0
- package/dist/es/index.html +0 -43
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +0 -25
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
- package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +0 -221
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +0 -8
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +0 -19
- package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +0 -16
- package/dist/es/node_modules/ahooks/es/useSize/index.mjs +0 -34
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +0 -17
- package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +0 -13
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +0 -27
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +0 -11
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +0 -7
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +0 -13
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +0 -12
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +0 -5
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +0 -5
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +0 -5
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +0 -11
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +0 -7
- package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +0 -8
- package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +0 -7
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +0 -4
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +0 -23
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +0 -132
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +0 -8
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -14
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -172
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -81
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -5
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -5
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -46
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
- package/dist/es/node_modules/classnames/index.mjs +0 -42
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -13
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +0 -46
- package/dist/es/node_modules/devlop/lib/default.mjs +0 -5
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +0 -126
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +0 -8
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
- package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
- package/dist/es/node_modules/katex/dist/katex.min.css.mjs +0 -4
- package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
- package/dist/es/node_modules/lodash/_Hash.mjs +0 -22
- package/dist/es/node_modules/lodash/_ListCache.mjs +0 -22
- package/dist/es/node_modules/lodash/_Map.mjs +0 -6
- package/dist/es/node_modules/lodash/_MapCache.mjs +0 -22
- package/dist/es/node_modules/lodash/_Stack.mjs +0 -20
- package/dist/es/node_modules/lodash/_Symbol.mjs +0 -5
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +0 -5
- package/dist/es/node_modules/lodash/_apply.mjs +0 -17
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +0 -21
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +0 -10
- package/dist/es/node_modules/lodash/_assignValue.mjs +0 -11
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +0 -12
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +0 -14
- package/dist/es/node_modules/lodash/_baseCreate.mjs +0 -17
- package/dist/es/node_modules/lodash/_baseFor.mjs +0 -5
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +0 -11
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +0 -10
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +0 -15
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +0 -13
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +0 -16
- package/dist/es/node_modules/lodash/_baseMerge.mjs +0 -22
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +0 -33
- package/dist/es/node_modules/lodash/_baseRest.mjs +0 -11
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +0 -14
- package/dist/es/node_modules/lodash/_baseTimes.mjs +0 -9
- package/dist/es/node_modules/lodash/_baseTrim.mjs +0 -9
- package/dist/es/node_modules/lodash/_baseUnary.mjs +0 -9
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +0 -10
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +0 -17
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +0 -10
- package/dist/es/node_modules/lodash/_copyArray.mjs +0 -10
- package/dist/es/node_modules/lodash/_copyObject.mjs +0 -16
- package/dist/es/node_modules/lodash/_coreJsData.mjs +0 -5
- package/dist/es/node_modules/lodash/_createAssigner.mjs +0 -17
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +0 -14
- package/dist/es/node_modules/lodash/_defineProperty.mjs +0 -11
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +0 -5
- package/dist/es/node_modules/lodash/_getMapData.mjs +0 -10
- package/dist/es/node_modules/lodash/_getNative.mjs +0 -11
- package/dist/es/node_modules/lodash/_getPrototype.mjs +0 -5
- package/dist/es/node_modules/lodash/_getRawTag.mjs +0 -16
- package/dist/es/node_modules/lodash/_getValue.mjs +0 -7
- package/dist/es/node_modules/lodash/_hashClear.mjs +0 -9
- package/dist/es/node_modules/lodash/_hashDelete.mjs +0 -8
- package/dist/es/node_modules/lodash/_hashGet.mjs +0 -14
- package/dist/es/node_modules/lodash/_hashHas.mjs +0 -10
- package/dist/es/node_modules/lodash/_hashSet.mjs +0 -10
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +0 -11
- package/dist/es/node_modules/lodash/_isIndex.mjs +0 -9
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +0 -15
- package/dist/es/node_modules/lodash/_isKeyable.mjs +0 -8
- package/dist/es/node_modules/lodash/_isMasked.mjs +0 -12
- package/dist/es/node_modules/lodash/_isPrototype.mjs +0 -9
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +0 -7
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +0 -13
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +0 -10
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +0 -9
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +0 -10
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +0 -15
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +0 -10
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +0 -9
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +0 -9
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +0 -10
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +0 -5
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +0 -11
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +0 -17
- package/dist/es/node_modules/lodash/_objectToString.mjs +0 -8
- package/dist/es/node_modules/lodash/_overArg.mjs +0 -9
- package/dist/es/node_modules/lodash/_overRest.mjs +0 -16
- package/dist/es/node_modules/lodash/_root.mjs +0 -5
- package/dist/es/node_modules/lodash/_safeGet.mjs +0 -8
- package/dist/es/node_modules/lodash/_setToString.mjs +0 -6
- package/dist/es/node_modules/lodash/_shortOut.mjs +0 -17
- package/dist/es/node_modules/lodash/_stackClear.mjs +0 -9
- package/dist/es/node_modules/lodash/_stackDelete.mjs +0 -8
- package/dist/es/node_modules/lodash/_stackGet.mjs +0 -7
- package/dist/es/node_modules/lodash/_stackHas.mjs +0 -7
- package/dist/es/node_modules/lodash/_stackSet.mjs +0 -18
- package/dist/es/node_modules/lodash/_toSource.mjs +0 -18
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +0 -10
- package/dist/es/node_modules/lodash/constant.mjs +0 -9
- package/dist/es/node_modules/lodash/debounce.mjs +0 -57
- package/dist/es/node_modules/lodash/eq.mjs +0 -7
- package/dist/es/node_modules/lodash/identity.mjs +0 -7
- package/dist/es/node_modules/lodash/isArguments.mjs +0 -10
- package/dist/es/node_modules/lodash/isArray.mjs +0 -4
- package/dist/es/node_modules/lodash/isArrayLike.mjs +0 -10
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +0 -10
- package/dist/es/node_modules/lodash/isBuffer.mjs +0 -12
- package/dist/es/node_modules/lodash/isFunction.mjs +0 -13
- package/dist/es/node_modules/lodash/isLength.mjs +0 -8
- package/dist/es/node_modules/lodash/isObject.mjs +0 -8
- package/dist/es/node_modules/lodash/isObjectLike.mjs +0 -7
- package/dist/es/node_modules/lodash/isPlainObject.mjs +0 -17
- package/dist/es/node_modules/lodash/isSymbol.mjs +0 -10
- package/dist/es/node_modules/lodash/isTypedArray.mjs +0 -7
- package/dist/es/node_modules/lodash/keysIn.mjs +0 -11
- package/dist/es/node_modules/lodash/merge.mjs +0 -10
- package/dist/es/node_modules/lodash/now.mjs +0 -7
- package/dist/es/node_modules/lodash/stubFalse.mjs +0 -7
- package/dist/es/node_modules/lodash/toNumber.mjs +0 -23
- package/dist/es/node_modules/lodash/toPlainObject.mjs +0 -10
- package/dist/es/node_modules/longest-streak/index.mjs +0 -12
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
- package/dist/es/node_modules/micromark-util-character/index.mjs +0 -10
- package/dist/es/node_modules/object-assign/index.mjs +0 -34
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +0 -18
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +0 -31
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +0 -45
- package/dist/es/node_modules/react/jsx-runtime.mjs +0 -8
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
- package/dist/es/node_modules/react-fast-compare/index.mjs +0 -78
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +0 -188
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +0 -4
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
- package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +0 -294
- package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -7
- package/dist/es/node_modules/toggle-selection/index.mjs +0 -25
- package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -64
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -120
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
- package/dist/es/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +0 -4
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +0 -13
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +0 -9
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +0 -23
- package/dist/es/robots.txt +0 -3
- package/dist/es/style.less.mjs +0 -4
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +0 -1
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +0 -1
- package/dist/lib/font/gos-font.js +0 -64
- package/dist/lib/images/empty.svg +0 -40
- package/dist/lib/images/loading.gif +0 -0
- package/dist/lib/images/logo.png +0 -0
- package/dist/lib/images/map-example.png +0 -0
- package/dist/lib/images/sketch.png +0 -0
- package/dist/lib/index.html +0 -43
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +0 -25
- package/dist/lib/robots.txt +0 -3
- /package/dist/es/{Dialog/HistoryItem → assets}/think.svg.mjs +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Vt = Object.defineProperty, $t = Object.defineProperties;
|
|
2
|
+
var At = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Se = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Bt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (x, o, m) => o in x ? Vt(x, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : x[o] = m, be = (x, o) => {
|
|
6
6
|
for (var m in o || (o = {}))
|
|
7
|
-
|
|
7
|
+
Bt.call(o, m) && we(x, m, o[m]);
|
|
8
8
|
if (Se)
|
|
9
9
|
for (var m of Se(o))
|
|
10
|
-
|
|
10
|
+
qt.call(o, m) && we(x, m, o[m]);
|
|
11
11
|
return x;
|
|
12
|
-
},
|
|
13
|
-
var P = (x, o, m) => (
|
|
12
|
+
}, xe = (x, o) => $t(x, At(o));
|
|
13
|
+
var P = (x, o, m) => (we(x, typeof o != "symbol" ? o + "" : o, m), m);
|
|
14
14
|
var U = (x, o, m) => new Promise((e, w) => {
|
|
15
|
-
var
|
|
15
|
+
var de = (b) => {
|
|
16
16
|
try {
|
|
17
17
|
D(m.next(b));
|
|
18
18
|
} catch (u) {
|
|
@@ -24,37 +24,36 @@ var U = (x, o, m) => new Promise((e, w) => {
|
|
|
24
24
|
} catch (u) {
|
|
25
25
|
w(u);
|
|
26
26
|
}
|
|
27
|
-
}, D = (b) => b.done ? e(b.value) : Promise.resolve(b.value).then(
|
|
27
|
+
}, D = (b) => b.done ? e(b.value) : Promise.resolve(b.value).then(de, v);
|
|
28
28
|
D((m = m.apply(x, o)).next());
|
|
29
29
|
});
|
|
30
|
-
import { jsx as d, jsxs as $ } from "
|
|
31
|
-
import { memo as
|
|
32
|
-
import "
|
|
33
|
-
import
|
|
34
|
-
import xe from "../../Iconfont/index.mjs";
|
|
30
|
+
import { jsx as d, jsxs as $ } from "react/jsx-runtime";
|
|
31
|
+
import { memo as Kt, useState as p, useRef as A, useContext as Yt, useEffect as N, useMemo as Wt } from "react";
|
|
32
|
+
/* empty css */import { Divider as Qt, Spin as _t, Button as Q, Space as ae, Upload as Gt, Tooltip as Xt, message as R, notification as Zt } from "antd";
|
|
33
|
+
import re from "../../Iconfont/index.mjs";
|
|
35
34
|
import { IHistoryRole as _, ChatMessageRole as et } from "@glodon-aiot/apis";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
35
|
+
import nt from "../HistoryItem/index.mjs";
|
|
36
|
+
import it from "dayjs";
|
|
37
|
+
import { v4 as ot } from "uuid";
|
|
38
|
+
import Jt from "../../context.mjs";
|
|
39
|
+
import { MB as St } from "../../constant.mjs";
|
|
40
|
+
import en from "../FilePreview/index.mjs";
|
|
41
|
+
import { getImageExtension as tn } from "../../utils/index.mjs";
|
|
42
|
+
import nn from "../../QuillEditor/index.mjs";
|
|
43
|
+
import on from "../Recommend/index.mjs";
|
|
44
|
+
import sn from "../Greeting/index.mjs";
|
|
45
|
+
import ln from "../PromptManager/index.mjs";
|
|
46
|
+
import an from "../../Footer/index.mjs";
|
|
47
|
+
import { CameraOutlined as rn, PlusOutlined as dn } from "@ant-design/icons";
|
|
48
48
|
import cn from "../UploadKnowledgeFiles/index.mjs";
|
|
49
49
|
import fn from "../UploadingPrompt/index.mjs";
|
|
50
50
|
import un from "../PromptSetting/index.mjs";
|
|
51
|
-
import Ie from "
|
|
51
|
+
import { useMemoizedFn as Ie } from "ahooks";
|
|
52
52
|
import pn from "../SessionListDrawer/index.mjs";
|
|
53
|
-
import hn from "
|
|
53
|
+
import hn from "react-infinite-scroll-component";
|
|
54
54
|
import gn from "../ConnectToNetwork/index.mjs";
|
|
55
55
|
import mn from "../../assets/icon.svg.mjs";
|
|
56
|
-
|
|
57
|
-
const yn = Yt(it), vn = {
|
|
56
|
+
const yn = Kt(nt), vn = {
|
|
58
57
|
icon: mn,
|
|
59
58
|
text: "今天我能帮你什么?"
|
|
60
59
|
};
|
|
@@ -69,36 +68,36 @@ class Z {
|
|
|
69
68
|
P(this, "isSensitive");
|
|
70
69
|
P(this, "isSuspend");
|
|
71
70
|
P(this, "comment");
|
|
72
|
-
this.content = o, this.sessionId = m, this.role = e, this.files = w, this.content = o, this.role = e, this.sessionId = m, this.files = w, this.messageTime =
|
|
71
|
+
this.content = o, this.sessionId = m, this.role = e, this.files = w, this.content = o, this.role = e, this.sessionId = m, this.files = w, this.messageTime = it(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss"), this.isWaiting = !1, this.messageId = ot(), this.isContext = !1, this.actions = [], this.reference = [], this.isSensitive = !1, this.isSuspend = !1, this.comment = {
|
|
73
72
|
isAgree: 0
|
|
74
73
|
};
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
|
-
const
|
|
76
|
+
const tt = 10, Qn = (x) => {
|
|
78
77
|
var qe, Ke, Ye, We, Qe, _e, Ge, Xe, Ze;
|
|
79
78
|
const {
|
|
80
79
|
application: o,
|
|
81
80
|
docViewerUrl: m = "",
|
|
82
81
|
currentSession: e,
|
|
83
82
|
onCreateSession: w,
|
|
84
|
-
embeddingService:
|
|
83
|
+
embeddingService: de,
|
|
85
84
|
setCurrentSession: v,
|
|
86
85
|
networkStatus: D,
|
|
87
86
|
setNetworkStatus: b
|
|
88
|
-
} = x, [u, I] = p([]), [
|
|
87
|
+
} = x, [u, I] = p([]), [st, J] = p(), [ce, Le] = p(), E = A(null), {
|
|
89
88
|
service: C,
|
|
90
89
|
agentClient: L,
|
|
91
|
-
depId:
|
|
92
|
-
footer:
|
|
90
|
+
depId: lt,
|
|
91
|
+
footer: at,
|
|
93
92
|
transform: c,
|
|
94
|
-
defaultInput:
|
|
93
|
+
defaultInput: fe,
|
|
95
94
|
onMessage: S,
|
|
96
95
|
onHistoryLoad: Ce,
|
|
97
96
|
beforeMessageSend: z,
|
|
98
|
-
bodyStyle:
|
|
97
|
+
bodyStyle: rt,
|
|
99
98
|
disabled: H,
|
|
100
99
|
features: f
|
|
101
|
-
} =
|
|
100
|
+
} = Yt(Jt), [Ne, ue] = p(!1), h = A(u), Fe = A(), [dt, ct] = p(0), [G, B] = p(), [q, ee] = p(""), [Te, pe] = p(!1), he = A(null), [Ee, ft] = p([]), [Pe, K] = p(!1), [Re, ut] = p(!1), [pt, ht] = p(""), [gt, Y] = p(), [te, ne] = p({}), ie = A(null), De = A(null), ge = A(null), [He, mt] = p(!1), [yt, vt] = p([]), [kt, oe] = p(!0), [wt, bt] = p(!0), [Me, M] = p(!1), [me, j] = p(!1), [Oe, xt] = p(!1), [F, se] = p(typeof (f == null ? void 0 : f.promptVariables) == "object" ? f.promptVariables.default || [] : []), [It, Lt] = p(typeof (f == null ? void 0 : f.knowledges) == "object" && f.knowledges.default || void 0), [Ue, O] = p(!1), [ze, X] = p(!1), [Ct, W] = p(typeof (f == null ? void 0 : f.connectNetwork) == "object" && typeof (f == null ? void 0 : f.connectNetwork.default) == "boolean" ? f.connectNetwork.default : !1), [je, le] = p(!1);
|
|
102
101
|
N(() => {
|
|
103
102
|
var l, i;
|
|
104
103
|
e && (h.current = []), I([]);
|
|
@@ -125,7 +124,7 @@ const nt = 10, Qn = (x) => {
|
|
|
125
124
|
}, [e]), N(() => {
|
|
126
125
|
const t = () => {
|
|
127
126
|
var n;
|
|
128
|
-
(n = e == null ? void 0 : e.data) != null && n.id && (e.promptVariables && se(e.promptVariables.sort((l, i) => l.key.localeCompare(i.key))), e.knowledges &&
|
|
127
|
+
(n = e == null ? void 0 : e.data) != null && n.id && (e.promptVariables && se(e.promptVariables.sort((l, i) => l.key.localeCompare(i.key))), e.knowledges && Lt(e.knowledges), b(e.netOpen));
|
|
129
128
|
};
|
|
130
129
|
return e == null || e.addEventListener("data:updated", t), () => {
|
|
131
130
|
e == null || e.removeEventListener("data:updated", t);
|
|
@@ -141,7 +140,7 @@ const nt = 10, Qn = (x) => {
|
|
|
141
140
|
e == null || e.removeEventListener("error", t);
|
|
142
141
|
};
|
|
143
142
|
}, [e]);
|
|
144
|
-
const
|
|
143
|
+
const Nt = () => {
|
|
145
144
|
var l;
|
|
146
145
|
if (!((l = e == null ? void 0 : e.data) != null && l.id) || !(o != null && o.id))
|
|
147
146
|
return;
|
|
@@ -155,14 +154,14 @@ const nt = 10, Qn = (x) => {
|
|
|
155
154
|
};
|
|
156
155
|
N(() => {
|
|
157
156
|
o != null && o.id && (C == null || C.getRecommendQues(o.id).then((t) => {
|
|
158
|
-
|
|
157
|
+
ft(t);
|
|
159
158
|
}));
|
|
160
|
-
}, [
|
|
159
|
+
}, [lt, o]);
|
|
161
160
|
const Ve = (t) => U(void 0, null, function* () {
|
|
162
161
|
var k, g;
|
|
163
162
|
if (H)
|
|
164
163
|
return R.error("发送功能被禁用");
|
|
165
|
-
const n = t ||
|
|
164
|
+
const n = t || st;
|
|
166
165
|
if (!(n != null && n.trim()))
|
|
167
166
|
return R.error("请输入你想问的");
|
|
168
167
|
if (!(F == null ? void 0 : F.every((y) => !!(y != null && y.value)))) {
|
|
@@ -170,11 +169,11 @@ const nt = 10, Qn = (x) => {
|
|
|
170
169
|
return R.error("变量值不能为空");
|
|
171
170
|
console.error("变量值不能为空", F == null ? void 0 : F.map((y) => !!(y != null && y.value)));
|
|
172
171
|
}
|
|
173
|
-
if (
|
|
172
|
+
if (me)
|
|
174
173
|
return R.error("正在回复中");
|
|
175
174
|
if (Ne)
|
|
176
175
|
return R.error("等待初始化");
|
|
177
|
-
if (!
|
|
176
|
+
if (!kt)
|
|
178
177
|
return R.error("正在解析文件");
|
|
179
178
|
if (Te)
|
|
180
179
|
return R.error("正在上传图片");
|
|
@@ -185,7 +184,7 @@ const nt = 10, Qn = (x) => {
|
|
|
185
184
|
netOpen: D ? 1 : 2
|
|
186
185
|
}).then((y) => {
|
|
187
186
|
var T, V;
|
|
188
|
-
O(!0), b(!!((T = y.data) != null && T.netOpen)), W(!!((V = y.data) != null && V.enableNetOpen)),
|
|
187
|
+
O(!0), b(!!((T = y.data) != null && T.netOpen)), W(!!((V = y.data) != null && V.enableNetOpen)), Ft(y).then(() => {
|
|
189
188
|
v == null || v(y), O(!1), Le(n);
|
|
190
189
|
});
|
|
191
190
|
});
|
|
@@ -212,15 +211,15 @@ ${n}` : n;
|
|
|
212
211
|
if (le(!1), s === !1)
|
|
213
212
|
return;
|
|
214
213
|
let r = n;
|
|
215
|
-
typeof s == "object" && (r = s.content || n), ((g = te[i]) == null ? void 0 : g.length) > 0 ?
|
|
216
|
-
}),
|
|
214
|
+
typeof s == "object" && (r = s.content || n), ((g = te[i]) == null ? void 0 : g.length) > 0 ? Tt(r) : ye(r);
|
|
215
|
+
}), Ft = (t) => new Promise((n, l) => U(void 0, null, function* () {
|
|
217
216
|
const s = (t == null ? void 0 : t.promptVariables).filter((r) => r.key !== "query").map((r) => {
|
|
218
217
|
var g;
|
|
219
218
|
const k = (g = F.find((y) => y.key === r.key)) == null ? void 0 : g.value;
|
|
220
219
|
return r.value = k || "", r;
|
|
221
220
|
});
|
|
222
221
|
se(s.sort((r, k) => r.key.localeCompare(k.key))), yield t == null ? void 0 : t.setPromptVariables(s), n();
|
|
223
|
-
})),
|
|
222
|
+
})), Tt = (t) => {
|
|
224
223
|
var s, r, k;
|
|
225
224
|
if (oe(!1), !((s = e == null ? void 0 : e.data) != null && s.id) || !(o != null && o.id))
|
|
226
225
|
return;
|
|
@@ -233,15 +232,15 @@ ${n}` : n;
|
|
|
233
232
|
}).then((y) => {
|
|
234
233
|
l.push(g);
|
|
235
234
|
}))).then((g) => {
|
|
236
|
-
oe(!0),
|
|
235
|
+
oe(!0), ye(t, l);
|
|
237
236
|
}).catch((g) => {
|
|
238
237
|
throw Error(g);
|
|
239
238
|
});
|
|
240
239
|
};
|
|
241
240
|
N(() => {
|
|
242
|
-
if (!
|
|
241
|
+
if (!ce || !e)
|
|
243
242
|
return;
|
|
244
|
-
const t =
|
|
243
|
+
const t = ce, n = () => U(void 0, null, function* () {
|
|
245
244
|
le(!0);
|
|
246
245
|
const l = q ? `
|
|
247
246
|
${t}` : t;
|
|
@@ -260,13 +259,13 @@ ${t}` : t;
|
|
|
260
259
|
} catch (a) {
|
|
261
260
|
i = !1;
|
|
262
261
|
}
|
|
263
|
-
le(!1), i !== !1 && (
|
|
262
|
+
le(!1), i !== !1 && (ye(t), Le(void 0));
|
|
264
263
|
});
|
|
265
264
|
return e.ready ? n() : e.addEventListener("ready", n, !0), () => {
|
|
266
265
|
e == null || e.removeEventListener("ready", n);
|
|
267
266
|
};
|
|
268
|
-
}, [
|
|
269
|
-
const
|
|
267
|
+
}, [ce, e]);
|
|
268
|
+
const ye = (t, n) => U(void 0, null, function* () {
|
|
270
269
|
var g, y;
|
|
271
270
|
const l = (g = e == null ? void 0 : e.data) == null ? void 0 : g.id;
|
|
272
271
|
if (!l)
|
|
@@ -290,7 +289,7 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
290
289
|
k.formatValues = T, e.setPromptVariables(F);
|
|
291
290
|
}
|
|
292
291
|
if (c != null && c.knowledges) {
|
|
293
|
-
const T =
|
|
292
|
+
const T = It;
|
|
294
293
|
k.knowledges = T, e.setKnowledges(T);
|
|
295
294
|
}
|
|
296
295
|
yield e.send({
|
|
@@ -309,11 +308,11 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
309
308
|
if (!i.sessionId || i.sessionId && i.sessionId !== Fe.current || i.role === _.User)
|
|
310
309
|
return;
|
|
311
310
|
if (i.index === -1 && i.code !== 200 && i.code !== 11915 && (M(!1), j(!1), h.current = h.current.filter((r) => !r.isWaiting), I([...h.current]), h.current = [...h.current], i.content))
|
|
312
|
-
return
|
|
311
|
+
return Zt.error({
|
|
313
312
|
message: i.content
|
|
314
313
|
});
|
|
315
314
|
const a = i.actions || [], s = new Z(i.content, t, _.Robot);
|
|
316
|
-
s.messageId = i.messageId, s.reasoningContent = i.reasoningContent, s.searchReference = i.searchReference, s.thinkingSecs = i.thinkingSecs, s.thinkingStatus = i.thinkingStatus, s.actions = a, s.isLoading = !0, h.current = h.current.filter((r) => !r.isWaiting).filter((r) => !r.isReplying), i.index === void 0 && I([s, ...h.current]), i.code === 11915 && (M(!1), j(!1), s.isLoading = !1, s.content = "请您换个问题问我吧~", s.isSensitive = !0, I([s, ...h.current])), i.index === -2 && (M(!1), j(!1), s.isLoading = !1, s.content = "回答已中止~", s.isSuspend = !0, I([s, ...h.current])), i.index === -1 && (M(!1), j(!1), s.isLoading = !1, s.reference = i.reference, I([s, ...h.current]), o.id && S && S({
|
|
315
|
+
s.messageId = i.messageId, s.reasoningContent = i.reasoningContent, s.searchReference = i.searchReference, s.thinkingSecs = i.thinkingSecs, s.thinkingStatus = i.thinkingStatus, s.actions = a, s.isLoading = !0, s.searchingStatus = i.searchingStatus, h.current = h.current.filter((r) => !r.isWaiting).filter((r) => !r.isReplying), i.index === void 0 && I([s, ...h.current]), i.code === 11915 && (M(!1), j(!1), s.isLoading = !1, s.content = "请您换个问题问我吧~", s.isSensitive = !0, I([s, ...h.current])), i.index === -2 && (M(!1), j(!1), s.isLoading = !1, s.content = "回答已中止~", s.isSuspend = !0, I([s, ...h.current])), i.index === -1 && (M(!1), j(!1), s.isLoading = !1, s.reference = i.reference, I([s, ...h.current]), o.id && S && S({
|
|
317
316
|
applicationId: o.id,
|
|
318
317
|
sessionId: t,
|
|
319
318
|
message: s
|
|
@@ -326,27 +325,27 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
326
325
|
};
|
|
327
326
|
}, [e]), N(() => {
|
|
328
327
|
if (!e) {
|
|
329
|
-
|
|
328
|
+
ue(!1);
|
|
330
329
|
return;
|
|
331
330
|
}
|
|
332
331
|
const t = (n) => {
|
|
333
|
-
|
|
332
|
+
ue(n);
|
|
334
333
|
};
|
|
335
|
-
return
|
|
334
|
+
return ue(e.frozen), e.addEventListener("frozen", t), () => {
|
|
336
335
|
e == null || e.removeEventListener("frozen", t);
|
|
337
336
|
};
|
|
338
337
|
}, [e]), N(() => {
|
|
339
338
|
if (!L)
|
|
340
339
|
return;
|
|
341
340
|
const t = L.questionContextMaxLength || 4e3;
|
|
342
|
-
|
|
341
|
+
ct(t);
|
|
343
342
|
}, [L, C]), N(() => {
|
|
344
|
-
|
|
345
|
-
}, [
|
|
346
|
-
const
|
|
343
|
+
fe && Y(fe.text);
|
|
344
|
+
}, [fe]);
|
|
345
|
+
const Et = (t) => {
|
|
347
346
|
const n = t.size;
|
|
348
|
-
return n <= 0 ? (R.error("该文件为空,请重新上传"), !1) : n > 20 *
|
|
349
|
-
},
|
|
347
|
+
return n <= 0 ? (R.error("该文件为空,请重新上传"), !1) : n > 20 * St ? (R.error("图片须小于20M"), !1) : (B(t), !1);
|
|
348
|
+
}, Pt = (t) => U(void 0, null, function* () {
|
|
350
349
|
var n;
|
|
351
350
|
return B(t), (n = e == null ? void 0 : e.data) != null && n.id ? $e(e, t) : new Promise((l) => {
|
|
352
351
|
O(!0), w == null || w({
|
|
@@ -357,16 +356,16 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
357
356
|
});
|
|
358
357
|
});
|
|
359
358
|
}), $e = (t, n) => {
|
|
360
|
-
const l =
|
|
359
|
+
const l = tn(n.name);
|
|
361
360
|
return new Promise((i) => {
|
|
362
361
|
var s;
|
|
363
362
|
const a = {
|
|
364
|
-
files: [`${
|
|
363
|
+
files: [`${ot()}.${l}`],
|
|
365
364
|
isv: "minio",
|
|
366
365
|
knowledgeId: ((s = t.data) == null ? void 0 : s.id) || "",
|
|
367
366
|
type: 1
|
|
368
367
|
};
|
|
369
|
-
|
|
368
|
+
pe(!0), C == null || C.postTicket(a).then((r) => {
|
|
370
369
|
C.uploadMinioFile(r.minio, n).then(() => {
|
|
371
370
|
var T, V;
|
|
372
371
|
const k = (T = r.minio.endpoints) == null ? void 0 : T[0], g = r.minio.bucket, y = (V = r.minio.fileKeys) == null ? void 0 : V[0];
|
|
@@ -374,10 +373,10 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
374
373
|
}).catch(() => {
|
|
375
374
|
ee(""), B(void 0);
|
|
376
375
|
}).finally(() => {
|
|
377
|
-
|
|
376
|
+
pe(!1);
|
|
378
377
|
});
|
|
379
378
|
}).catch(() => {
|
|
380
|
-
ee(""), B(void 0),
|
|
379
|
+
ee(""), B(void 0), pe(!1);
|
|
381
380
|
});
|
|
382
381
|
});
|
|
383
382
|
};
|
|
@@ -390,17 +389,17 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
390
389
|
const Ae = (t, n) => new Promise((l) => {
|
|
391
390
|
if (!n.file.url || !(o != null && o.id))
|
|
392
391
|
return l();
|
|
393
|
-
const i = be(
|
|
392
|
+
const i = xe(be({}, n.file), {
|
|
394
393
|
type: 1
|
|
395
394
|
});
|
|
396
395
|
console.log("fileParams", i), C == null || C.postApplicationIdSessionKnowledgeSessionFile(o == null ? void 0 : o.id, t, i).finally(() => {
|
|
397
396
|
var a;
|
|
398
397
|
console.log("uploadRef.current?.update"), (a = ie.current) == null || a.update().finally(l);
|
|
399
398
|
});
|
|
400
|
-
}),
|
|
399
|
+
}), Rt = () => {
|
|
401
400
|
var t;
|
|
402
401
|
(t = e == null ? void 0 : e.data) != null && t.id && (M(!1), e.suspend());
|
|
403
|
-
},
|
|
402
|
+
}, Dt = (t) => {
|
|
404
403
|
const n = E.current;
|
|
405
404
|
n && setTimeout(() => {
|
|
406
405
|
n.scrollTo({
|
|
@@ -408,17 +407,17 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
408
407
|
behavior: t == null ? void 0 : t.behavior
|
|
409
408
|
});
|
|
410
409
|
}, t == null ? void 0 : t.ms);
|
|
411
|
-
},
|
|
410
|
+
}, Ht = () => {
|
|
412
411
|
if (!E.current)
|
|
413
412
|
return;
|
|
414
413
|
const t = E.current.scrollTop <= -80;
|
|
415
|
-
|
|
416
|
-
},
|
|
414
|
+
xt(t);
|
|
415
|
+
}, Mt = Ie((t) => {
|
|
417
416
|
var n, l;
|
|
418
|
-
(n =
|
|
419
|
-
}),
|
|
417
|
+
(n = he.current) == null || n.update(t), (l = he.current) == null || l.focus();
|
|
418
|
+
}), Ot = Ie((t) => {
|
|
420
419
|
Ve(t);
|
|
421
|
-
}),
|
|
420
|
+
}), Ut = Ie(() => {
|
|
422
421
|
var n;
|
|
423
422
|
if (!((n = e == null ? void 0 : e.data) != null && n.id))
|
|
424
423
|
return;
|
|
@@ -428,16 +427,16 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
428
427
|
});
|
|
429
428
|
N(() => {
|
|
430
429
|
var t, n;
|
|
431
|
-
Fe.current = (t = e == null ? void 0 : e.data) == null ? void 0 : t.id, !Ue && ((n =
|
|
430
|
+
Fe.current = (t = e == null ? void 0 : e.data) == null ? void 0 : t.id, !Ue && ((n = ge.current) == null || n.clear());
|
|
432
431
|
}, [e]);
|
|
433
|
-
const
|
|
432
|
+
const zt = () => {
|
|
434
433
|
var l;
|
|
435
434
|
if (!((l = e == null ? void 0 : e.data) != null && l.id))
|
|
436
435
|
return;
|
|
437
436
|
const n = u[u.length - 1].messageTime;
|
|
438
437
|
e.fetchMessages({
|
|
439
438
|
endTime: n,
|
|
440
|
-
pageSize:
|
|
439
|
+
pageSize: tt
|
|
441
440
|
}).then((i) => {
|
|
442
441
|
const a = i || [];
|
|
443
442
|
if (!a || !(a != null && a.length)) {
|
|
@@ -446,7 +445,7 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
446
445
|
}
|
|
447
446
|
a.length < 10 ? X(!1) : X(!0), I([...u, ...a.reverse()]);
|
|
448
447
|
});
|
|
449
|
-
},
|
|
448
|
+
}, jt = (t) => U(void 0, null, function* () {
|
|
450
449
|
var n, l;
|
|
451
450
|
if (!((n = e == null ? void 0 : e.data) != null && n.id))
|
|
452
451
|
b(t);
|
|
@@ -455,14 +454,14 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
455
454
|
return;
|
|
456
455
|
b(t);
|
|
457
456
|
}
|
|
458
|
-
}),
|
|
457
|
+
}), ve = () => U(void 0, null, function* () {
|
|
459
458
|
e ? e.fetchData().then((t) => {
|
|
460
459
|
var n;
|
|
461
460
|
(n = e == null ? void 0 : e.data) != null && n.id && (b(t.netOpen), W(t.enableNetOpen));
|
|
462
461
|
}) : (b(!1), W(o.arrange[0].enableNetOpen));
|
|
463
462
|
});
|
|
464
463
|
N(() => {
|
|
465
|
-
|
|
464
|
+
ve();
|
|
466
465
|
}, [e]), N(() => {
|
|
467
466
|
var t, n;
|
|
468
467
|
if (E.current) {
|
|
@@ -508,9 +507,9 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
508
507
|
}).then((t) => {
|
|
509
508
|
var n, l;
|
|
510
509
|
return v == null || v(t), O(!1), b(!!((n = t.data) != null && n.netOpen)), W(!!((l = t.data) != null && l.enableNetOpen)), t;
|
|
511
|
-
}),
|
|
510
|
+
}), ke = Wt(() => {
|
|
512
511
|
var t;
|
|
513
|
-
return o.arrange && ((t = o.arrange[0]) != null && t.openingContent) ? /* @__PURE__ */ d(
|
|
512
|
+
return o.arrange && ((t = o.arrange[0]) != null && t.openingContent) ? /* @__PURE__ */ d(nt, {
|
|
514
513
|
application: o,
|
|
515
514
|
history: {
|
|
516
515
|
role: 1,
|
|
@@ -520,14 +519,14 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
520
519
|
sessionId: "",
|
|
521
520
|
reference: [],
|
|
522
521
|
searchReference: [],
|
|
523
|
-
messageTime:
|
|
522
|
+
messageTime: it(Date.now()).format("YYYY-MM-DD HH:mm:ss"),
|
|
524
523
|
actions: [],
|
|
525
524
|
isLoading: !1
|
|
526
525
|
},
|
|
527
526
|
actions: !!u.length
|
|
528
527
|
}) : null;
|
|
529
528
|
}, [o == null ? void 0 : o.arrange, u]);
|
|
530
|
-
return console.log("openingMessage",
|
|
529
|
+
return console.log("openingMessage", ke), /* @__PURE__ */ $("div", {
|
|
531
530
|
className: "agent-chat",
|
|
532
531
|
children: [(c == null ? void 0 : c.promptVariables) && /* @__PURE__ */ d(un, {
|
|
533
532
|
ref: De,
|
|
@@ -539,7 +538,7 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
539
538
|
}), /* @__PURE__ */ $("div", {
|
|
540
539
|
className: "chat-main",
|
|
541
540
|
id: "chat-main",
|
|
542
|
-
style:
|
|
541
|
+
style: rt,
|
|
543
542
|
children: [/* @__PURE__ */ d("div", {
|
|
544
543
|
className: "chat-main-wrapper",
|
|
545
544
|
id: "scrollableDiv",
|
|
@@ -550,18 +549,18 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
550
549
|
flexDirection: "column-reverse"
|
|
551
550
|
},
|
|
552
551
|
ref: E,
|
|
553
|
-
onScroll:
|
|
552
|
+
onScroll: Ht,
|
|
554
553
|
children: (qe = e == null ? void 0 : e.data) != null && qe.id && (u != null && u.length) ? /* @__PURE__ */ $(hn, {
|
|
555
554
|
dataLength: u.length,
|
|
556
|
-
next:
|
|
555
|
+
next: zt,
|
|
557
556
|
style: {
|
|
558
557
|
display: "flex",
|
|
559
558
|
flexDirection: "column-reverse",
|
|
560
559
|
overflowX: "hidden"
|
|
561
560
|
},
|
|
562
561
|
inverse: !0,
|
|
563
|
-
endMessage: u.length >
|
|
564
|
-
((Ke = E.current) != null && Ke.scrollTop) && ((Ye = E.current) == null ? void 0 : Ye.scrollTop) < -10 ? /* @__PURE__ */ d(
|
|
562
|
+
endMessage: u.length > tt && // 少于一页不展示这个提示
|
|
563
|
+
((Ke = E.current) != null && Ke.scrollTop) && ((Ye = E.current) == null ? void 0 : Ye.scrollTop) < -10 ? /* @__PURE__ */ d(Qt, {
|
|
565
564
|
plain: !0,
|
|
566
565
|
children: "没有更多数据了"
|
|
567
566
|
}) : null,
|
|
@@ -572,7 +571,7 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
572
571
|
textAlign: "center",
|
|
573
572
|
overflow: "hidden"
|
|
574
573
|
},
|
|
575
|
-
children: /* @__PURE__ */ d(
|
|
574
|
+
children: /* @__PURE__ */ d(_t, {})
|
|
576
575
|
}),
|
|
577
576
|
scrollableTarget: "scrollableDiv",
|
|
578
577
|
children: [u.map((t, n) => /* @__PURE__ */ d(yn, {
|
|
@@ -581,15 +580,15 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
581
580
|
history: t,
|
|
582
581
|
docViewerUrl: m,
|
|
583
582
|
isLastHistory: n === 0,
|
|
584
|
-
onRelatedClick:
|
|
585
|
-
onAgainClick:
|
|
586
|
-
onEditClick:
|
|
587
|
-
}, t.messageId + n)), !ze &&
|
|
583
|
+
onRelatedClick: Ot,
|
|
584
|
+
onAgainClick: Ut,
|
|
585
|
+
onEditClick: Mt
|
|
586
|
+
}, t.messageId + n)), !ze && ke]
|
|
588
587
|
}) : /* @__PURE__ */ $("div", {
|
|
589
588
|
className: "main-empty",
|
|
590
|
-
children: [/* @__PURE__ */ d(
|
|
591
|
-
children: !!Ee.length && /* @__PURE__ */ d(
|
|
592
|
-
ref:
|
|
589
|
+
children: [/* @__PURE__ */ d(sn, xe(be({}, vn), {
|
|
590
|
+
children: !!Ee.length && /* @__PURE__ */ d(on, {
|
|
591
|
+
ref: ge,
|
|
593
592
|
sid: (We = e == null ? void 0 : e.data) == null ? void 0 : We.id,
|
|
594
593
|
isRecommendClearing: Pe,
|
|
595
594
|
data: Ee,
|
|
@@ -612,7 +611,7 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
612
611
|
}) : n ? K(!1) : (K(!1), O(!0), Be());
|
|
613
612
|
}
|
|
614
613
|
})
|
|
615
|
-
})),
|
|
614
|
+
})), ke]
|
|
616
615
|
})
|
|
617
616
|
}), Me && /* @__PURE__ */ d("div", {
|
|
618
617
|
className: "session-stop",
|
|
@@ -623,24 +622,24 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
623
622
|
},
|
|
624
623
|
ghost: !0,
|
|
625
624
|
size: "small",
|
|
626
|
-
icon: /* @__PURE__ */ d(
|
|
625
|
+
icon: /* @__PURE__ */ d(re, {
|
|
627
626
|
type: "icon-zantinghuida",
|
|
628
627
|
style: {
|
|
629
628
|
fontSize: 16
|
|
630
629
|
}
|
|
631
630
|
}),
|
|
632
|
-
onClick: () =>
|
|
631
|
+
onClick: () => Rt(),
|
|
633
632
|
children: "停止回答"
|
|
634
633
|
})
|
|
635
634
|
}), Oe && (u == null ? void 0 : u.length) > 0 && /* @__PURE__ */ d("div", {
|
|
636
635
|
className: "back-bottom",
|
|
637
636
|
children: /* @__PURE__ */ d(Q, {
|
|
638
637
|
size: "small",
|
|
639
|
-
onClick: () =>
|
|
638
|
+
onClick: () => Dt({
|
|
640
639
|
behavior: "smooth"
|
|
641
640
|
}),
|
|
642
641
|
type: "link",
|
|
643
|
-
icon: /* @__PURE__ */ d(
|
|
642
|
+
icon: /* @__PURE__ */ d(re, {
|
|
644
643
|
type: "icon-yijianhuidaodibu",
|
|
645
644
|
style: {
|
|
646
645
|
fontSize: 24
|
|
@@ -654,10 +653,10 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
654
653
|
className: "chat-footer-input",
|
|
655
654
|
children: [G && /* @__PURE__ */ d("div", {
|
|
656
655
|
className: "input-files",
|
|
657
|
-
children: /* @__PURE__ */ d(
|
|
656
|
+
children: /* @__PURE__ */ d(en, {
|
|
658
657
|
file: G,
|
|
659
658
|
actions: {
|
|
660
|
-
upload:
|
|
659
|
+
upload: Pt,
|
|
661
660
|
remove: () => {
|
|
662
661
|
B(void 0);
|
|
663
662
|
}
|
|
@@ -668,11 +667,11 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
668
667
|
className: "footer-upload-action",
|
|
669
668
|
onClick: (t) => t.preventDefault(),
|
|
670
669
|
children: [/* @__PURE__ */ $(ae, {
|
|
671
|
-
children: [o.type === 2 && (c == null ? void 0 : c.imageUpload) && /* @__PURE__ */ d(
|
|
670
|
+
children: [o.type === 2 && (c == null ? void 0 : c.imageUpload) && /* @__PURE__ */ d(Gt, {
|
|
672
671
|
disabled: !!G || H,
|
|
673
672
|
accept: ".jpg, .png, .jpeg,.bmp",
|
|
674
673
|
listType: "picture-card",
|
|
675
|
-
beforeUpload:
|
|
674
|
+
beforeUpload: Et,
|
|
676
675
|
className: "footer-upload-picture",
|
|
677
676
|
showUploadList: !1,
|
|
678
677
|
children: G ? /* @__PURE__ */ d(Q, {
|
|
@@ -684,13 +683,13 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
684
683
|
bottom: "-2px"
|
|
685
684
|
},
|
|
686
685
|
disabled: !!G || H,
|
|
687
|
-
icon: /* @__PURE__ */ d(
|
|
686
|
+
icon: /* @__PURE__ */ d(rn, {
|
|
688
687
|
className: "icon-tianjia",
|
|
689
688
|
style: {
|
|
690
689
|
fontSize: "22px"
|
|
691
690
|
}
|
|
692
691
|
})
|
|
693
|
-
}) : /* @__PURE__ */ d(
|
|
692
|
+
}) : /* @__PURE__ */ d(Xt, {
|
|
694
693
|
placement: "topLeft",
|
|
695
694
|
overlayClassName: "footer-upload-tooltip",
|
|
696
695
|
title: /* @__PURE__ */ d("div", {
|
|
@@ -704,7 +703,8 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
704
703
|
position: "relative",
|
|
705
704
|
bottom: "-2px"
|
|
706
705
|
},
|
|
707
|
-
icon: /* @__PURE__ */ d(
|
|
706
|
+
icon: /* @__PURE__ */ d(re, {
|
|
707
|
+
type: "icon-Vector",
|
|
708
708
|
className: "icon-tianjia",
|
|
709
709
|
style: {
|
|
710
710
|
fontSize: "22px"
|
|
@@ -712,13 +712,13 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
712
712
|
})
|
|
713
713
|
})
|
|
714
714
|
})
|
|
715
|
-
}),
|
|
715
|
+
}), de && (c != null && c.fileUpload) && (o != null && o.id) ? /* @__PURE__ */ d(cn, {
|
|
716
716
|
appId: o == null ? void 0 : o.id,
|
|
717
717
|
ref: ie,
|
|
718
718
|
isFirstSession: Ue,
|
|
719
719
|
docViewerUrl: m,
|
|
720
720
|
onStatusChange: (t) => U(void 0, null, function* () {
|
|
721
|
-
t !== "process" ? (oe(!0),
|
|
721
|
+
t !== "process" ? (oe(!0), ve()) : oe(!1);
|
|
722
722
|
}),
|
|
723
723
|
createSession: () => new Promise((t) => {
|
|
724
724
|
O(!0), w == null || w({
|
|
@@ -731,7 +731,7 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
731
731
|
});
|
|
732
732
|
}),
|
|
733
733
|
sid: (Qe = e == null ? void 0 : e.data) == null ? void 0 : Qe.id,
|
|
734
|
-
disabled:
|
|
734
|
+
disabled: me || H,
|
|
735
735
|
afterFileAdd: (t, n) => {
|
|
736
736
|
n && ne((l) => {
|
|
737
737
|
const i = l[n] || [];
|
|
@@ -751,20 +751,20 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
751
751
|
});
|
|
752
752
|
},
|
|
753
753
|
onFileListChange: (t) => {
|
|
754
|
-
|
|
754
|
+
vt(t);
|
|
755
755
|
},
|
|
756
|
-
shouldContinue:
|
|
756
|
+
shouldContinue: wt,
|
|
757
757
|
afterFilesClear: () => {
|
|
758
758
|
var n;
|
|
759
759
|
const t = (n = e == null ? void 0 : e.data) == null ? void 0 : n.id;
|
|
760
760
|
t && (ne({
|
|
761
761
|
[t]: []
|
|
762
|
-
}),
|
|
762
|
+
}), ve());
|
|
763
763
|
}
|
|
764
|
-
}) : null, (c == null ? void 0 : c.prompt) && (o == null ? void 0 : o.id) && /* @__PURE__ */ d(
|
|
764
|
+
}) : null, (c == null ? void 0 : c.prompt) && (o == null ? void 0 : o.id) && /* @__PURE__ */ d(ln, {
|
|
765
765
|
appId: o.id,
|
|
766
766
|
list: [],
|
|
767
|
-
search: Re ?
|
|
767
|
+
search: Re ? pt : "",
|
|
768
768
|
onPromptSelect: (t) => {
|
|
769
769
|
Y(t.context), J(t.context);
|
|
770
770
|
},
|
|
@@ -774,10 +774,10 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
774
774
|
children: [(c == null ? void 0 : c.connectNetwork) && o.type === 0 && ((_e = o.arrange) == null ? void 0 : _e.length) && !!o.arrange[0].enableNetOpen && /* @__PURE__ */ d(gn, {
|
|
775
775
|
sessionId: (Ge = e == null ? void 0 : e.data) == null ? void 0 : Ge.id,
|
|
776
776
|
netStatus: D,
|
|
777
|
-
enable: typeof (f == null ? void 0 : f.connectNetwork) == "object" && typeof (f == null ? void 0 : f.connectNetwork.diabled) == "boolean" ? !(f != null && f.connectNetwork.diabled) :
|
|
777
|
+
enable: typeof (f == null ? void 0 : f.connectNetwork) == "object" && typeof (f == null ? void 0 : f.connectNetwork.diabled) == "boolean" ? !(f != null && f.connectNetwork.diabled) : Ct,
|
|
778
778
|
disabledTip: e ? void 0 : "网络访问已被禁用",
|
|
779
779
|
onNetStatusChange: (t) => {
|
|
780
|
-
|
|
780
|
+
jt(t);
|
|
781
781
|
}
|
|
782
782
|
}), (c == null ? void 0 : c.sessionList) && /* @__PURE__ */ d(pn, {
|
|
783
783
|
currentSessionId: (Xe = e == null ? void 0 : e.data) == null ? void 0 : Xe.id,
|
|
@@ -792,17 +792,17 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
792
792
|
disabled: Me || !e || !u.length || H,
|
|
793
793
|
onClick: () => {
|
|
794
794
|
var t, n;
|
|
795
|
-
v == null || v(void 0), b(!1), (t = De.current) == null || t.clear(), (n =
|
|
795
|
+
v == null || v(void 0), b(!1), (t = De.current) == null || t.clear(), (n = ge.current) == null || n.clear();
|
|
796
796
|
},
|
|
797
797
|
children: "新会话"
|
|
798
798
|
})]
|
|
799
799
|
})]
|
|
800
800
|
}), /* @__PURE__ */ d("div", {
|
|
801
801
|
className: "footer-textarea",
|
|
802
|
-
children: /* @__PURE__ */ d(
|
|
803
|
-
ref:
|
|
804
|
-
maxLength:
|
|
805
|
-
text:
|
|
802
|
+
children: /* @__PURE__ */ d(nn, {
|
|
803
|
+
ref: he,
|
|
804
|
+
maxLength: dt,
|
|
805
|
+
text: gt,
|
|
806
806
|
networkStatus: !1,
|
|
807
807
|
loading: je,
|
|
808
808
|
disabled: Ne || Te || H || je,
|
|
@@ -810,34 +810,34 @@ ${t}` : t, a = new Z(i, l, _.User, n);
|
|
|
810
810
|
onChange: (t, n) => {
|
|
811
811
|
Y(t);
|
|
812
812
|
const l = n.getText().replace(/[\n\s]+$/, "");
|
|
813
|
-
J(l),
|
|
813
|
+
J(l), ht(l), Re || ut(!0);
|
|
814
814
|
},
|
|
815
815
|
clearAction: /* @__PURE__ */ d(ae, {
|
|
816
816
|
size: 0,
|
|
817
817
|
children: /* @__PURE__ */ d(Q, {
|
|
818
818
|
type: "link",
|
|
819
|
-
disabled:
|
|
819
|
+
disabled: me || H,
|
|
820
820
|
ghost: !0,
|
|
821
|
-
icon: /* @__PURE__ */ d(
|
|
821
|
+
icon: /* @__PURE__ */ d(re, {
|
|
822
822
|
style: {
|
|
823
823
|
fontSize: 22
|
|
824
824
|
},
|
|
825
825
|
type: "icon-qingchujiyi"
|
|
826
826
|
}),
|
|
827
|
-
onClick: () =>
|
|
827
|
+
onClick: () => Nt()
|
|
828
828
|
})
|
|
829
829
|
})
|
|
830
830
|
})
|
|
831
831
|
})]
|
|
832
832
|
})
|
|
833
|
-
}), /* @__PURE__ */ d(
|
|
834
|
-
tips:
|
|
833
|
+
}), /* @__PURE__ */ d(an, {
|
|
834
|
+
tips: at
|
|
835
835
|
}), He && /* @__PURE__ */ d(fn, {
|
|
836
836
|
isvisible: He,
|
|
837
|
-
files:
|
|
837
|
+
files: yt,
|
|
838
838
|
sessionId: (Ze = e == null ? void 0 : e.data) == null ? void 0 : Ze.id,
|
|
839
839
|
onClose: (t) => {
|
|
840
|
-
|
|
840
|
+
mt(!1), bt(!1);
|
|
841
841
|
}
|
|
842
842
|
})]
|
|
843
843
|
});
|