@glodon-aiot/agent-cli-ui 2.4.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/README.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/es/AgentClientUI.mjs +155 -0
- package/dist/es/Dialog/AgentChat/index.mjs +757 -0
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +92 -0
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +142 -0
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +90 -0
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +31 -0
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +14 -0
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +355 -0
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/think.svg.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +46 -0
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +68 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +69 -0
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +89 -0
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +48 -0
- package/dist/es/Dialog/PromptManager/PromptList/access/empty.svg.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +128 -0
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +130 -0
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +96 -0
- package/dist/es/Dialog/Recommend/index.mjs +60 -0
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/tip.svg.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +65 -0
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +64 -0
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +232 -0
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +197 -0
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +48 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +142 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +120 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +44 -0
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +94 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +86 -0
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +43 -0
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +51 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +368 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +67 -0
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +128 -0
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileCard/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/FileCard/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/FileCard/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/FileItem/index.mjs +85 -0
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +25 -0
- package/dist/es/Footer/index.mjs +18 -0
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/Iconfont/index.mjs +12 -0
- package/dist/es/InputProgress/index.mjs +39 -0
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +219 -0
- package/dist/es/QuillEditor/style.less.mjs +4 -0
- package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/_nodeUtil.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/index4.mjs +4 -0
- package/dist/es/_virtual/isBuffer.mjs +4 -0
- package/dist/es/_virtual/jsx-runtime.mjs +7 -0
- package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/es/_virtual/minio-zj.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/assets/brand.svg.mjs +4 -0
- package/dist/es/assets/icon.svg.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +44 -0
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +16 -0
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/Code/index.mjs +69 -0
- package/dist/es/components/Markdown/Image/index.mjs +26 -0
- package/dist/es/components/Markdown/index.mjs +48 -0
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +26 -0
- package/dist/es/constant.mjs +96 -0
- package/dist/es/context.mjs +7 -0
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/es/font/gos-font.js +64 -0
- package/dist/es/images/empty.svg +40 -0
- 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 +43 -0
- package/dist/es/index.mjs +325 -0
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +25 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@glodon-aiot/minio/dist/minio-zj.mjs +26485 -0
- package/dist/es/node_modules/@socket.io/component-emitter/lib/esm/index.mjs +54 -0
- package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
- package/dist/es/node_modules/base64-js/index.mjs +47 -0
- package/dist/es/node_modules/buffer/index.mjs +927 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/has-cors.mjs +9 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseqs.mjs +18 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseuri.mjs +24 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/yeast.mjs +19 -0
- package/dist/es/node_modules/engine.io-client/build/esm/globalThis.browser.mjs +4 -0
- package/dist/es/node_modules/engine.io-client/build/esm/socket.mjs +317 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transport.mjs +113 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/index.mjs +11 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/polling.mjs +273 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.mjs +8 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket.mjs +87 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/webtransport.mjs +52 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.mjs +21 -0
- package/dist/es/node_modules/engine.io-client/build/esm/util.mjs +23 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/commons.mjs +21 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.mjs +14 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/decodePacket.browser.mjs +39 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/encodePacket.browser.mjs +28 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/index.mjs +105 -0
- package/dist/es/node_modules/ieee754/index.mjs +28 -0
- package/dist/es/node_modules/js-base64/base64.mjs +31 -0
- package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
- package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Map.mjs +6 -0
- package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
- package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
- package/dist/es/node_modules/lodash/_apply.mjs +17 -0
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
- package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
- package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
- package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
- package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
- package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
- package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
- package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
- package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
- package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
- package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
- package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
- package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
- package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
- package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
- package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
- package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
- package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
- package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
- package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
- package/dist/es/node_modules/lodash/_root.mjs +5 -0
- package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
- package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
- package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
- package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
- package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/es/node_modules/lodash/constant.mjs +9 -0
- package/dist/es/node_modules/lodash/debounce.mjs +57 -0
- package/dist/es/node_modules/lodash/eq.mjs +7 -0
- package/dist/es/node_modules/lodash/identity.mjs +7 -0
- package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/isArray.mjs +4 -0
- package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
- package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
- package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
- package/dist/es/node_modules/lodash/isLength.mjs +8 -0
- package/dist/es/node_modules/lodash/isObject.mjs +8 -0
- package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
- package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
- package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/merge.mjs +10 -0
- package/dist/es/node_modules/lodash/now.mjs +7 -0
- package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
- package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
- package/dist/es/node_modules/object-assign/index.mjs +34 -0
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
- package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
- package/dist/es/node_modules/socket.io-client/build/esm/contrib/backo2.mjs +26 -0
- package/dist/es/node_modules/socket.io-client/build/esm/index.mjs +25 -0
- package/dist/es/node_modules/socket.io-client/build/esm/manager.mjs +242 -0
- package/dist/es/node_modules/socket.io-client/build/esm/on.mjs +8 -0
- package/dist/es/node_modules/socket.io-client/build/esm/socket.mjs +608 -0
- package/dist/es/node_modules/socket.io-client/build/esm/url.mjs +19 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/binary.mjs +52 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/index.mjs +203 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/is-binary.mjs +26 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +15 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/agent-cli-sdk/src/AgentSession.mjs +243 -0
- package/dist/es/packages/agent-cli-sdk/src/BotClient.mjs +242 -0
- package/dist/es/packages/agent-cli-sdk/src/Config.mjs +34 -0
- package/dist/es/packages/agent-cli-sdk/src/DialogSession.mjs +281 -0
- package/dist/es/packages/agent-cli-sdk/src/EventBus.mjs +64 -0
- package/dist/es/packages/agent-cli-sdk/src/Logger.mjs +31 -0
- package/dist/es/packages/agent-cli-sdk/src/PayloadTypes.mjs +4 -0
- package/dist/es/packages/agent-cli-sdk/src/Session.mjs +527 -0
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/fetch.mjs +112 -0
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/parse.mjs +97 -0
- package/dist/es/packages/agent-cli-sdk/src/api/index.mjs +48 -0
- package/dist/es/packages/agent-cli-sdk/src/utils.mjs +11 -0
- package/dist/es/packages/apis/dist/es/aecpilot/cosntant.mjs +5 -0
- package/dist/es/packages/apis/dist/es/aecpilot/model.mjs +9 -0
- package/dist/es/packages/apis/dist/es/aecpilotui/index.mjs +8 -0
- package/dist/es/packages/apis/dist/es/agentcliui/index.mjs +414 -0
- package/dist/es/packages/apis/dist/es/base/index.mjs +154 -0
- package/dist/es/packages/apis/dist/es/cvforce/index.mjs +431 -0
- package/dist/es/packages/apis/dist/es/cvforce/model.mjs +6 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/fetch.mjs +106 -0
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/parse.mjs +97 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/es/types.mjs +4 -0
- package/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/utils/index.mjs +33 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/lib/font/gos-font.js +64 -0
- package/dist/lib/images/empty.svg +40 -0
- 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 +43 -0
- package/dist/lib/index.js +169 -0
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +25 -0
- package/dist/lib/robots.txt +3 -0
- package/dist/src/AgentClientUI.d.ts +4 -0
- package/dist/src/ConnectToNetwork/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +17 -0
- package/dist/src/Dialog/ChatEmptyView/index.d.ts +6 -0
- package/dist/src/Dialog/ConnectToNetwork/index.d.ts +13 -0
- package/dist/src/Dialog/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/FilePreview/index.d.ts +20 -0
- package/dist/src/Dialog/Greeting/index.d.ts +7 -0
- package/dist/src/Dialog/HistoryContent/index.d.ts +5 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +17 -0
- package/dist/src/Dialog/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/Dialog/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/Dialog/KnowledgeList/index.d.ts +13 -0
- package/dist/src/Dialog/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/PromptSetting/index.d.ts +14 -0
- package/dist/src/Dialog/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/Dialog/Recommend/index.d.ts +14 -0
- package/dist/src/Dialog/ReferCollapse/index.d.ts +8 -0
- package/dist/src/Dialog/SearchReference/index.d.ts +7 -0
- package/dist/src/Dialog/SessionAction/index.d.ts +11 -0
- package/dist/src/Dialog/SessionList/index.d.ts +20 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/UploadFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadFiles/index.d.ts +21 -0
- package/dist/src/Dialog/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +9 -0
- package/dist/src/FileCard/index.d.ts +21 -0
- package/dist/src/FileItem/index.d.ts +11 -0
- package/dist/src/Footer/FooterWarning.d.ts +8 -0
- package/dist/src/Footer/index.d.ts +7 -0
- package/dist/src/Greeting/index.d.ts +7 -0
- package/dist/src/Iconfont/font_4108228_8te6zfkclqu.d.ts +0 -0
- package/dist/src/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/Iconfont/index.d.ts +3 -0
- package/dist/src/InputProgress/index.d.ts +7 -0
- package/dist/src/QuillEditor/index.d.ts +19 -0
- package/dist/src/components/Copy/index.d.ts +5 -0
- package/dist/src/components/Header/index.d.ts +6 -0
- package/dist/src/components/JsonDisplay/index.d.ts +6 -0
- package/dist/src/components/Markdown/Code/index.d.ts +3 -0
- package/dist/src/components/Markdown/Image/index.d.ts +3 -0
- package/dist/src/components/Markdown/index.d.ts +6 -0
- package/dist/src/components/PDFViewer/index.d.ts +7 -0
- package/dist/src/components/WebLink/index.d.ts +7 -0
- package/dist/src/constant.d.ts +11 -0
- package/dist/src/context.d.ts +5 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/types.d.ts +183 -0
- package/dist/src/utils/clipboard.d.ts +11 -0
- package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
- package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/utils/index.d.ts +17 -0
- package/package.json +138 -0
package/README.git.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
git 使用文档 | [组件库使用文档](./README.lib.md)
|
|
2
|
+
|
|
3
|
+
## 模板工程使用:
|
|
4
|
+
|
|
5
|
+
### 模板代码拉取与安装
|
|
6
|
+
|
|
7
|
+
`git clone https://geek.glodon.com/scm/gos/aiot-standard-frontend.git`,克隆代码。
|
|
8
|
+
|
|
9
|
+
`yarn install`,安装项目所有依赖。
|
|
10
|
+
|
|
11
|
+
yarn 安装可参考:https://blog.csdn.net/qq_45112637/article/details/125543953
|
|
12
|
+
|
|
13
|
+
`yarn start`,运行模板项目。
|
|
14
|
+
|
|
15
|
+
### 贡献代码
|
|
16
|
+
|
|
17
|
+
`git switch master`,切换分支 master。
|
|
18
|
+
|
|
19
|
+
`git pull`,获取 master 最新代码。
|
|
20
|
+
|
|
21
|
+
`git switch –c feature/xxx`,在 master 分支下创建并切换到新分支 feature/xxx。
|
|
22
|
+
|
|
23
|
+
在新分支编写代码。
|
|
24
|
+
|
|
25
|
+
`git add .`,把所有文件修改添加到暂存区。
|
|
26
|
+
|
|
27
|
+
`git commit -m "备注信息"`,将暂存区内容添加到本地仓库。
|
|
28
|
+
|
|
29
|
+
`git push`,把本地仓库的更新推到远程仓库。
|
|
30
|
+
|
|
31
|
+
分支代码完成后提 PR,将分支`feature/xxx`merge 到 develop 分支。
|
|
32
|
+
|
|
33
|
+
- 若有冲突,`git switch feature/xxx`切换到该分支,然后`git pull origin develop`,手动解决冲突之后再次提交代码。
|
|
34
|
+
- 没有冲突且测试没有问题,再提 PR,将 develop 分支 merge 到 master 分支。
|
|
35
|
+
|
|
36
|
+
### 更换远程仓库
|
|
37
|
+
|
|
38
|
+
**可向自己的代码仓库提交代码,不要在模板项目上提交代码哦~**
|
|
39
|
+
|
|
40
|
+
关联远程库例子:`git remote add origin git@server-name:path/repo-name.git`,可参考https://www.liaoxuefeng.com/wiki/896043488029600/898732864121440。
|
|
41
|
+
|
|
42
|
+
`git add .`,把所有文件修改添加到暂存区。
|
|
43
|
+
|
|
44
|
+
`git commit -m "备注信息"`,将暂存区内容添加到本地仓库。
|
|
45
|
+
|
|
46
|
+
`git push`,把本地仓库的更新推到远程仓库。
|
|
47
|
+
|
|
48
|
+
## 代码提交规范:
|
|
49
|
+
|
|
50
|
+
[@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional)
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
{
|
|
54
|
+
'build': 打包
|
|
55
|
+
'chore': 性能,
|
|
56
|
+
'ci': 脚手架/工程化,
|
|
57
|
+
'docs': 文档,
|
|
58
|
+
'feat' : 新功能,
|
|
59
|
+
'fix': 修改bug,
|
|
60
|
+
'perf': 性能优化,
|
|
61
|
+
'refactor': 重构,
|
|
62
|
+
'revert': 回退,
|
|
63
|
+
'style': 样式,
|
|
64
|
+
'test': 单元测试
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
举个例子
|
|
69
|
+
```
|
|
70
|
+
git commit -m "fix: some bug"
|
|
71
|
+
|
|
72
|
+
git commit -m "feat: some feautre"
|
|
73
|
+
```
|
package/README.lib.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
[git 使用文档](./README.git.md) | 组件库使用文档
|
|
2
|
+
|
|
3
|
+
## 组件库使用文档
|
|
4
|
+
|
|
5
|
+
### 项目结构
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
sdk/
|
|
9
|
+
|-.husky
|
|
10
|
+
|-.storybook
|
|
11
|
+
|-dist/
|
|
12
|
+
|-example/
|
|
13
|
+
|-App.tsx
|
|
14
|
+
|-main.tsx
|
|
15
|
+
|-node_modules/
|
|
16
|
+
|-packages/
|
|
17
|
+
|-api/
|
|
18
|
+
|-common
|
|
19
|
+
|-base.api.ts
|
|
20
|
+
|-base.model.ts
|
|
21
|
+
|-panorama
|
|
22
|
+
|-index.ts
|
|
23
|
+
|-model.ts
|
|
24
|
+
|-index.ts
|
|
25
|
+
|-react-biz-components/
|
|
26
|
+
|-PanoramaMap
|
|
27
|
+
|-index.ts
|
|
28
|
+
|-style.less
|
|
29
|
+
|-react-components/
|
|
30
|
+
|-Button
|
|
31
|
+
|-index.ts
|
|
32
|
+
|-style.less
|
|
33
|
+
|-index.tsx
|
|
34
|
+
|-public/
|
|
35
|
+
|-stories/
|
|
36
|
+
|-Button/
|
|
37
|
+
|-Button.stories.tsx
|
|
38
|
+
|-package.json
|
|
39
|
+
|-index.html
|
|
40
|
+
|-vite.config
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
| 目录/文件 | 作用介绍 |
|
|
44
|
+
| ---------- | --------------------------- |
|
|
45
|
+
| .storybook | 文档预览服务的配置文件 |
|
|
46
|
+
| dist | 打包文件,上传到 npm 上的包 |
|
|
47
|
+
| example | 开发组件挂在在 root |
|
|
48
|
+
| packages | 需要开发的组件 |
|
|
49
|
+
| stories | 需要生成预览文档的组件 |
|
|
50
|
+
|
|
51
|
+
#### 组件开发
|
|
52
|
+
|
|
53
|
+
1、项目启动: `npm run dev`
|
|
54
|
+
|
|
55
|
+
2、预览:`http://localhost:3000`
|
|
56
|
+
|
|
57
|
+
3、App.tsx 中引入 packages 中开发的组件,example 中示例如下:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
import React from 'react';
|
|
61
|
+
import { Button } from '../packages/index';
|
|
62
|
+
const Test = () => {
|
|
63
|
+
return (
|
|
64
|
+
<div>
|
|
65
|
+
<Button label="按钮" primary></Button>
|
|
66
|
+
</div>
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export default Test;
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 组件发布
|
|
74
|
+
|
|
75
|
+
1、执行`npm run build`打包文件
|
|
76
|
+
|
|
77
|
+
2、命令行使用`npm login`登录 npm
|
|
78
|
+
|
|
79
|
+
3、使用`npm publish`发布
|
|
80
|
+
|
|
81
|
+
package.json 上定义的基础入口信息和类型声明
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
{
|
|
85
|
+
"name": "aiot-panorama-jssdk",
|
|
86
|
+
"private": false,
|
|
87
|
+
"version": "0.0.2",
|
|
88
|
+
"description": "React components",
|
|
89
|
+
"type": "module",
|
|
90
|
+
"keywords": [
|
|
91
|
+
"react",
|
|
92
|
+
"react-component"
|
|
93
|
+
],
|
|
94
|
+
"files": [
|
|
95
|
+
"dist"
|
|
96
|
+
],
|
|
97
|
+
"main": "./dist/aiot-panorama-jssdk.umd.cjs",
|
|
98
|
+
"module": "./dist/aiot-panorama-jssdk.js",
|
|
99
|
+
"typings": "./dist/index.d.ts",
|
|
100
|
+
"exports": {
|
|
101
|
+
".": {
|
|
102
|
+
"import": "./dist/aiot-panorama-jssdk.js",
|
|
103
|
+
"require": "./dist/aiot-panorama-jssdk.umd.cjs"
|
|
104
|
+
},
|
|
105
|
+
"./style.css": "./dist/style.css"
|
|
106
|
+
},
|
|
107
|
+
"repository": "",
|
|
108
|
+
"author": "gspace",
|
|
109
|
+
"license": "MIT"
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 组件使用
|
|
114
|
+
|
|
115
|
+
#### 安装
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
yarn add aiot-panorama-jssdk
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### 使用
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
import { Button } from 'aiot-panorama-jssdk';
|
|
125
|
+
import "aiot-panorama-jssdk/style.css"
|
|
126
|
+
|
|
127
|
+
<Button label="按钮" primary></Button>
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
附:
|
|
132
|
+
|
|
133
|
+
[storybook 中文使用文档](https://storybook.js.org/tutorials/design-systems-for-developers/react/zh-CN/document/)
|
|
134
|
+
|
|
135
|
+
[storybook 英文使用文档](https://storybook.js.org/docs/react/get-started/introduction)
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
var X = Object.defineProperty, Y = Object.defineProperties;
|
|
2
|
+
var Z = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var _ = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var k = (t, i, e) => i in t ? X(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e, c = (t, i) => {
|
|
6
|
+
for (var e in i || (i = {}))
|
|
7
|
+
_.call(i, e) && k(t, e, i[e]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var e of R(i))
|
|
10
|
+
B.call(i, e) && k(t, e, i[e]);
|
|
11
|
+
return t;
|
|
12
|
+
}, h = (t, i) => Y(t, Z(i));
|
|
13
|
+
import { jsx as s, jsxs as x } from "./_virtual/jsx-runtime.mjs";
|
|
14
|
+
import z from "./node_modules/antd/es/locale/zh_CN.mjs";
|
|
15
|
+
import { useRef as ee, useState as r, useEffect as f } from "react";
|
|
16
|
+
import "./style.less.mjs";
|
|
17
|
+
import { AgentClientProvider as oe } from "./context.mjs";
|
|
18
|
+
import { Resizable as te } from "react-resizable";
|
|
19
|
+
import ie from "./Dialog/index.mjs";
|
|
20
|
+
import { configure as ne } from "./packages/agent-cli-sdk/src/Config.mjs";
|
|
21
|
+
import se from "./packages/agent-cli-sdk/src/BotClient.mjs";
|
|
22
|
+
import "axios";
|
|
23
|
+
import "./node_modules/@glodon-aiot/minio/dist/minio-zj.mjs";
|
|
24
|
+
import "dayjs";
|
|
25
|
+
import "./packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs";
|
|
26
|
+
import "./packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs";
|
|
27
|
+
import "./packages/apis/dist/es/agentcliui/index.mjs";
|
|
28
|
+
import "./packages/apis/dist/es/aecpilotui/index.mjs";
|
|
29
|
+
import { JWT as le } from "./utils/index.mjs";
|
|
30
|
+
import { ConfigProvider as A, Spin as re, Button as U } from "antd";
|
|
31
|
+
const Pe = (t) => {
|
|
32
|
+
const {
|
|
33
|
+
mode: i = "float",
|
|
34
|
+
className: e,
|
|
35
|
+
triggerButton: l,
|
|
36
|
+
size: o,
|
|
37
|
+
resizable: ae,
|
|
38
|
+
theme: $,
|
|
39
|
+
logo: de,
|
|
40
|
+
icon: g,
|
|
41
|
+
rId: u,
|
|
42
|
+
greeting: me,
|
|
43
|
+
// 历史会话列表是否可见
|
|
44
|
+
history: pe,
|
|
45
|
+
service: ce,
|
|
46
|
+
docViewerUrl: W,
|
|
47
|
+
token: d,
|
|
48
|
+
debug: j,
|
|
49
|
+
env: D,
|
|
50
|
+
plugins: L,
|
|
51
|
+
footer: P,
|
|
52
|
+
defaultInput: T,
|
|
53
|
+
onComment: E,
|
|
54
|
+
onSessionLoad: H,
|
|
55
|
+
onSessionUnload: J,
|
|
56
|
+
onMessage: M,
|
|
57
|
+
bodyStyle: b,
|
|
58
|
+
features: he,
|
|
59
|
+
apiUrl: O,
|
|
60
|
+
sessionId: V
|
|
61
|
+
} = t, C = ee(null), [q, fe] = r(!1), [w, F] = r(), [a, G] = r(), [n, v] = r(o), [N, I] = r(t.open), [K, Q] = r(0);
|
|
62
|
+
f(() => {
|
|
63
|
+
if (!d)
|
|
64
|
+
return;
|
|
65
|
+
const p = le(d);
|
|
66
|
+
F(p.rid), ne({
|
|
67
|
+
debug: j,
|
|
68
|
+
env: D,
|
|
69
|
+
apiRoot: O
|
|
70
|
+
});
|
|
71
|
+
const m = new se(d, {
|
|
72
|
+
plugins: L
|
|
73
|
+
});
|
|
74
|
+
G(m);
|
|
75
|
+
}, [d]), A.config({
|
|
76
|
+
theme: $
|
|
77
|
+
}), f(() => {
|
|
78
|
+
u && (a == null || a.reloadSession().then((p) => {
|
|
79
|
+
Q((m) => m + 1);
|
|
80
|
+
}));
|
|
81
|
+
}, [u]), f(() => {
|
|
82
|
+
o && v(o);
|
|
83
|
+
}, [o]);
|
|
84
|
+
const S = (p, {
|
|
85
|
+
element: m,
|
|
86
|
+
size: y
|
|
87
|
+
}) => {
|
|
88
|
+
v({
|
|
89
|
+
width: Number(y.width),
|
|
90
|
+
height: y.height
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
return /* @__PURE__ */ s(A, {
|
|
94
|
+
locale: z,
|
|
95
|
+
children: /* @__PURE__ */ x(oe, {
|
|
96
|
+
value: h(c({}, t), {
|
|
97
|
+
popupContainer: C,
|
|
98
|
+
agentClient: a,
|
|
99
|
+
depId: K,
|
|
100
|
+
footer: P,
|
|
101
|
+
defaultInput: T,
|
|
102
|
+
onComment: E,
|
|
103
|
+
onSessionLoad: H,
|
|
104
|
+
onSessionUnload: J,
|
|
105
|
+
onMessage: M,
|
|
106
|
+
bodyStyle: b
|
|
107
|
+
}),
|
|
108
|
+
children: [/* @__PURE__ */ s(te, {
|
|
109
|
+
height: n == null ? void 0 : n.height,
|
|
110
|
+
width: n == null ? void 0 : n.width,
|
|
111
|
+
maxConstraints: [document.body.clientWidth - 45],
|
|
112
|
+
minConstraints: [Number(o == null ? void 0 : o.minWidth)],
|
|
113
|
+
onResize: S,
|
|
114
|
+
handle: /* @__PURE__ */ s("span", {
|
|
115
|
+
className: "resize-handle-ew"
|
|
116
|
+
}),
|
|
117
|
+
resizeHandles: e == "float" ? ["w"] : [],
|
|
118
|
+
children: /* @__PURE__ */ x("div", {
|
|
119
|
+
id: "dialog-modal",
|
|
120
|
+
className: `dialog-modal ${e} ${N ? "opened" : "closed"}`,
|
|
121
|
+
style: h(c({}, o), {
|
|
122
|
+
width: e == "float" ? n == null ? void 0 : n.width : o == null ? void 0 : o.width,
|
|
123
|
+
height: e === "float" ? n == null ? void 0 : n.height : o == null ? void 0 : o.height
|
|
124
|
+
}),
|
|
125
|
+
ref: C,
|
|
126
|
+
children: [q ? /* @__PURE__ */ s("div", {
|
|
127
|
+
className: "loading",
|
|
128
|
+
children: /* @__PURE__ */ s(re, {})
|
|
129
|
+
}) : w && a ? /* @__PURE__ */ s(ie, {
|
|
130
|
+
appId: w,
|
|
131
|
+
docViewerUrl: W,
|
|
132
|
+
bodyStyle: b,
|
|
133
|
+
sessionId: V
|
|
134
|
+
}) : null, (l == null ? void 0 : l.visible) && /* @__PURE__ */ s(U, {
|
|
135
|
+
className: "trigger-btn close-btn",
|
|
136
|
+
icon: /* @__PURE__ */ s("img", {
|
|
137
|
+
src: g
|
|
138
|
+
}),
|
|
139
|
+
onClick: () => I(!1)
|
|
140
|
+
})]
|
|
141
|
+
})
|
|
142
|
+
}), (l == null ? void 0 : l.visible) && !N && /* @__PURE__ */ s(U, {
|
|
143
|
+
className: `${e}-trigger-btn open-btn`,
|
|
144
|
+
style: l.style,
|
|
145
|
+
icon: /* @__PURE__ */ s("img", {
|
|
146
|
+
src: g
|
|
147
|
+
}),
|
|
148
|
+
onClick: () => I(!0)
|
|
149
|
+
})]
|
|
150
|
+
})
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
export {
|
|
154
|
+
Pe as default
|
|
155
|
+
};
|