@glodon-aiot/agent-cli-ui 3.1.0-beta.16 → 3.2.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/dist/es/AgentClientUI.mjs +40 -39
  2. package/dist/es/Dialog/AgentChat/index.mjs +283 -264
  3. package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
  4. package/dist/es/Dialog/ConnectToNetwork/index.mjs +19 -18
  5. package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
  6. package/dist/es/Dialog/FileCard/index.mjs +22 -21
  7. package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
  8. package/dist/es/Dialog/FilePreview/index.mjs +14 -13
  9. package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
  10. package/dist/es/Dialog/Greeting/index.mjs +5 -4
  11. package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
  12. package/dist/es/Dialog/HistoryContent/index.mjs +6 -5
  13. package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
  14. package/dist/es/Dialog/HistoryItem/index.mjs +127 -125
  15. package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
  16. package/dist/es/Dialog/KnowledgeDoc/index.mjs +23 -22
  17. package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
  18. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +14 -13
  19. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
  20. package/dist/es/Dialog/KnowledgeList/index.mjs +29 -28
  21. package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
  22. package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +19 -19
  23. package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +17 -16
  24. package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
  25. package/dist/es/Dialog/PromptManager/index.mjs +17 -16
  26. package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
  27. package/dist/es/Dialog/PromptSetting/index.mjs +32 -32
  28. package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
  29. package/dist/es/Dialog/Recommend/RecommendItem.mjs +12 -11
  30. package/dist/es/Dialog/Recommend/index.mjs +23 -23
  31. package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
  32. package/dist/es/Dialog/ReferCollapse/index.mjs +29 -28
  33. package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
  34. package/dist/es/Dialog/SearchReference/index.mjs +13 -12
  35. package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
  36. package/dist/es/Dialog/SessionAction/index.mjs +30 -29
  37. package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
  38. package/dist/es/Dialog/SessionList/index.mjs +51 -51
  39. package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
  40. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +11 -10
  41. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +15 -14
  42. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +48 -47
  43. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
  44. package/dist/es/Dialog/SessionListDrawer/index.mjs +9 -8
  45. package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
  46. package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +26 -25
  47. package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
  48. package/dist/es/Dialog/SessionRefer/index.mjs +21 -20
  49. package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
  50. package/dist/es/Dialog/SessionRelated/index.mjs +18 -17
  51. package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
  52. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +9 -8
  53. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
  54. package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +117 -117
  55. package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
  56. package/dist/es/Dialog/UploadingPrompt/index.mjs +6 -5
  57. package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
  58. package/dist/es/Dialog/index.mjs +58 -57
  59. package/dist/es/Dialog/style.less.mjs +4 -0
  60. package/dist/es/FileItem/index.mjs +23 -22
  61. package/dist/es/FileItem/style.less.mjs +4 -0
  62. package/dist/es/Footer/FooterWarning.mjs +14 -13
  63. package/dist/es/Footer/index.mjs +7 -6
  64. package/dist/es/Footer/style.less.mjs +4 -0
  65. package/dist/es/InputProgress/index.mjs +10 -9
  66. package/dist/es/InputProgress/style.less.mjs +4 -0
  67. package/dist/es/QuillEditor/index.mjs +34 -34
  68. package/dist/es/QuillEditor/style.less.mjs +4 -0
  69. package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
  70. package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
  71. package/dist/es/_virtual/_nodeUtil.mjs +4 -0
  72. package/dist/es/_virtual/index.mjs +4 -0
  73. package/dist/es/_virtual/isBuffer.mjs +4 -0
  74. package/dist/es/_virtual/jsx-runtime.mjs +7 -0
  75. package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
  76. package/dist/es/_virtual/lib.mjs +4 -0
  77. package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
  78. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  79. package/dist/es/components/Copy/index.mjs +21 -20
  80. package/dist/es/components/Copy/style.less.mjs +4 -0
  81. package/dist/es/components/JsonDisplay/index.mjs +5 -4
  82. package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
  83. package/dist/es/components/Markdown/ATag/index.mjs +7 -7
  84. package/dist/es/components/Markdown/Code/index.mjs +33 -33
  85. package/dist/es/components/Markdown/Image/index.mjs +17 -16
  86. package/dist/es/components/Markdown/Video/index.mjs +13 -13
  87. package/dist/es/components/Markdown/index.mjs +36 -35
  88. package/dist/es/components/Markdown/style.less.mjs +4 -0
  89. package/dist/es/components/WebLink/index.mjs +9 -9
  90. package/dist/es/favicon.ico +0 -0
  91. package/dist/es/favicon2.ico +0 -0
  92. package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
  93. package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
  94. package/dist/es/font/gos-font.js +64 -0
  95. package/dist/es/images/empty.svg +40 -0
  96. package/dist/es/images/loading.gif +0 -0
  97. package/dist/es/images/logo.png +0 -0
  98. package/dist/es/images/map-example.png +0 -0
  99. package/dist/es/images/sketch.png +0 -0
  100. package/dist/es/index.html +43 -0
  101. package/dist/es/index.mjs +32 -26
  102. package/dist/es/logo192.png +0 -0
  103. package/dist/es/logo512.png +0 -0
  104. package/dist/es/manifest.json +25 -0
  105. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  106. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  107. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  108. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  109. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  110. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  111. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
  112. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  113. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
  114. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  115. package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
  116. package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
  117. package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
  118. package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
  119. package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
  120. package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
  121. package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
  122. package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
  123. package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
  124. package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
  125. package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
  126. package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
  127. package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
  128. package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
  129. package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
  130. package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
  131. package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
  132. package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
  133. package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
  134. package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
  135. package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
  136. package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
  137. package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
  138. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  139. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
  140. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
  141. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
  142. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  143. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
  144. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
  145. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
  146. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
  147. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  148. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
  149. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
  150. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  151. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
  152. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
  153. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  154. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  155. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  156. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  157. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
  158. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  159. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  160. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  161. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  162. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
  163. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  164. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  165. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  166. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  167. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  168. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  169. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  170. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  171. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  172. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  173. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  174. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  175. package/dist/es/node_modules/classnames/index.mjs +42 -0
  176. package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
  177. package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
  178. package/dist/es/node_modules/devlop/lib/default.mjs +5 -0
  179. package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
  180. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +126 -0
  181. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
  182. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
  183. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
  184. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
  185. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
  186. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
  187. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
  188. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
  189. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  190. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  191. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
  192. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
  193. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
  194. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
  195. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
  196. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
  197. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
  198. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
  199. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
  200. package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
  201. package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
  202. package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
  203. package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
  204. package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
  205. package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
  206. package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
  207. package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
  208. package/dist/es/node_modules/lodash/_Map.mjs +6 -0
  209. package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
  210. package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
  211. package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
  212. package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
  213. package/dist/es/node_modules/lodash/_apply.mjs +17 -0
  214. package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
  215. package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
  216. package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
  217. package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
  218. package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
  219. package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
  220. package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
  221. package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
  222. package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
  223. package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
  224. package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
  225. package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
  226. package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
  227. package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
  228. package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
  229. package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
  230. package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
  231. package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
  232. package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
  233. package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
  234. package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
  235. package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
  236. package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
  237. package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
  238. package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
  239. package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
  240. package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
  241. package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
  242. package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
  243. package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
  244. package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
  245. package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
  246. package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
  247. package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
  248. package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
  249. package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
  250. package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
  251. package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
  252. package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
  253. package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
  254. package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
  255. package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
  256. package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
  257. package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
  258. package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
  259. package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
  260. package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
  261. package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
  262. package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
  263. package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
  264. package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
  265. package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
  266. package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
  267. package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
  268. package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
  269. package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
  270. package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
  271. package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
  272. package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
  273. package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
  274. package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
  275. package/dist/es/node_modules/lodash/_root.mjs +5 -0
  276. package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
  277. package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
  278. package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
  279. package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
  280. package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
  281. package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
  282. package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
  283. package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
  284. package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
  285. package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
  286. package/dist/es/node_modules/lodash/constant.mjs +9 -0
  287. package/dist/es/node_modules/lodash/debounce.mjs +57 -0
  288. package/dist/es/node_modules/lodash/eq.mjs +7 -0
  289. package/dist/es/node_modules/lodash/identity.mjs +7 -0
  290. package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
  291. package/dist/es/node_modules/lodash/isArray.mjs +4 -0
  292. package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
  293. package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
  294. package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
  295. package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
  296. package/dist/es/node_modules/lodash/isLength.mjs +8 -0
  297. package/dist/es/node_modules/lodash/isObject.mjs +8 -0
  298. package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
  299. package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
  300. package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
  301. package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
  302. package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
  303. package/dist/es/node_modules/lodash/merge.mjs +10 -0
  304. package/dist/es/node_modules/lodash/now.mjs +7 -0
  305. package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
  306. package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
  307. package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
  308. package/dist/es/node_modules/longest-streak/index.mjs +12 -0
  309. package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
  310. package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
  311. package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
  312. package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
  313. package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
  314. package/dist/es/node_modules/micromark-util-character/index.mjs +10 -0
  315. package/dist/es/node_modules/object-assign/index.mjs +34 -0
  316. package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
  317. package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
  318. package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
  319. package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
  320. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  321. package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
  322. package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
  323. package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
  324. package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
  325. package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
  326. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
  327. package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
  328. package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
  329. package/dist/es/node_modules/tslib/tslib.es6.mjs +64 -0
  330. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
  331. package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
  332. package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
  333. package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
  334. package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
  335. package/dist/es/node_modules/web-namespaces/index.mjs +11 -0
  336. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
  337. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
  338. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
  339. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +23 -0
  340. package/dist/es/robots.txt +3 -0
  341. package/dist/es/style.less.mjs +4 -0
  342. package/dist/lib/favicon.ico +0 -0
  343. package/dist/lib/favicon2.ico +0 -0
  344. package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
  345. package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
  346. package/dist/lib/font/gos-font.js +64 -0
  347. package/dist/lib/images/empty.svg +40 -0
  348. package/dist/lib/images/loading.gif +0 -0
  349. package/dist/lib/images/logo.png +0 -0
  350. package/dist/lib/images/map-example.png +0 -0
  351. package/dist/lib/images/sketch.png +0 -0
  352. package/dist/lib/index.html +43 -0
  353. package/dist/lib/index.js +311 -5
  354. package/dist/lib/logo192.png +0 -0
  355. package/dist/lib/logo512.png +0 -0
  356. package/dist/lib/manifest.json +25 -0
  357. package/dist/lib/robots.txt +3 -0
  358. package/dist/src/Dialog/HistoryItem/index.d.ts +1 -0
  359. package/dist/src/types.d.ts +1 -1
  360. package/package.json +6 -24
  361. package/dist/es/src/style.css +0 -1
  362. package/dist/es/src/style10.css +0 -1
  363. package/dist/es/src/style11.css +0 -1
  364. package/dist/es/src/style12.css +0 -1
  365. package/dist/es/src/style13.css +0 -1
  366. package/dist/es/src/style14.css +0 -1
  367. package/dist/es/src/style15.css +0 -1
  368. package/dist/es/src/style16.css +0 -1
  369. package/dist/es/src/style17.css +0 -1
  370. package/dist/es/src/style18.css +0 -1
  371. package/dist/es/src/style19.css +0 -1
  372. package/dist/es/src/style2.css +0 -1
  373. package/dist/es/src/style20.css +0 -1
  374. package/dist/es/src/style21.css +0 -1
  375. package/dist/es/src/style22.css +0 -1
  376. package/dist/es/src/style23.css +0 -1
  377. package/dist/es/src/style24.css +0 -0
  378. package/dist/es/src/style25.css +0 -1
  379. package/dist/es/src/style26.css +0 -1
  380. package/dist/es/src/style27.css +0 -1
  381. package/dist/es/src/style28.css +0 -1
  382. package/dist/es/src/style29.css +0 -1
  383. package/dist/es/src/style3.css +0 -1
  384. package/dist/es/src/style30.css +0 -1
  385. package/dist/es/src/style31.css +0 -1
  386. package/dist/es/src/style32.css +0 -1
  387. package/dist/es/src/style33.css +0 -1
  388. package/dist/es/src/style4.css +0 -1
  389. package/dist/es/src/style5.css +0 -1
  390. package/dist/es/src/style6.css +0 -1
  391. package/dist/es/src/style7.css +0 -1
  392. package/dist/es/src/style8.css +0 -1
  393. package/dist/es/src/style9.css +0 -1
  394. package/dist/lib/index.css +0 -1
@@ -2,78 +2,79 @@ var z = (L, P, u) => new Promise((a, C) => {
2
2
  var R = (h) => {
3
3
  try {
4
4
  S(u.next(h));
5
- } catch (N) {
6
- C(N);
5
+ } catch (F) {
6
+ C(F);
7
7
  }
8
- }, A = (h) => {
8
+ }, U = (h) => {
9
9
  try {
10
10
  S(u.throw(h));
11
- } catch (N) {
12
- C(N);
11
+ } catch (F) {
12
+ C(F);
13
13
  }
14
- }, S = (h) => h.done ? a(h.value) : Promise.resolve(h.value).then(R, A);
14
+ }, S = (h) => h.done ? a(h.value) : Promise.resolve(h.value).then(R, U);
15
15
  S((u = u.apply(L, P)).next());
16
16
  });
17
- import { jsx as r, Fragment as ue, jsxs as F } from "react/jsx-runtime";
18
- import { message as p, Upload as W, Button as K, Badge as fe, Spin as pe, Popover as he, Space as me } from "antd";
19
- import { forwardRef as ge, useState as U, useRef as G, useContext as ye, useEffect as w, useImperativeHandle as xe } from "react";
20
- import { LoadingOutlined as Se, CloseCircleFilled as Fe, CloudUploadOutlined as Ne } from "@ant-design/icons";
21
- /* empty css */import we from "lodash/debounce";
22
- import Ce from "../FileCard/index.mjs";
23
- import { IFileOrigin as be } from "@glodon-aiot/apis";
24
- import Ie from "./ClearModal/index.mjs";
25
- import M from "../../Iconfont/index.mjs";
26
- import Ee from "../../context.mjs";
27
- import { isValidImageUrlWithAnyExtension as ze, extractFileName as Ue, FILE_NAME_MAX_LENGTH as X, fileTypes as Ae } from "../../utils/index.mjs";
28
- import { MB as ke } from "../../constant.mjs";
29
- const q = ge((L, P) => {
17
+ import { jsx as r, Fragment as ce, jsxs as N } from "../../_virtual/jsx-runtime.mjs";
18
+ import { message as p, Upload as W, Button as M, Badge as ue, Spin as fe, Popover as pe, Space as he } from "antd";
19
+ import { forwardRef as me, useState as A, useRef as G, useContext as ge, useEffect as w, useImperativeHandle as ye } from "react";
20
+ import { LoadingOutlined as xe, CloseCircleFilled as Se, CloudUploadOutlined as Ne } from "@ant-design/icons";
21
+ import "./style.less.mjs";
22
+ import Fe from "../../node_modules/lodash/debounce.mjs";
23
+ import we from "../FileCard/index.mjs";
24
+ import { IFileOrigin as Ce } from "@glodon-aiot/apis";
25
+ import be from "./ClearModal/index.mjs";
26
+ import j from "../../Iconfont/index.mjs";
27
+ import Ie from "../../context.mjs";
28
+ import { isValidImageUrlWithAnyExtension as Ee, extractFileName as ze, FILE_NAME_MAX_LENGTH as X, fileTypes as Ae } from "../../utils/index.mjs";
29
+ import { MB as Ue } from "../../constant.mjs";
30
+ const ke = me((L, P) => {
30
31
  const {
31
32
  appId: u,
32
33
  sid: a,
33
34
  onStatusChange: C,
34
35
  createSession: R,
35
- disabled: A = !1,
36
+ disabled: U = !1,
36
37
  afterFileAdd: S,
37
38
  afterFileDelete: h,
38
- onFileListChange: N,
39
+ onFileListChange: F,
39
40
  shouldContinue: D = !0,
40
- afterFilesClear: j,
41
- docViewerUrl: J,
42
- isFirstSession: Q
43
- } = L, [i, f] = U([]), c = G(i), [Y, k] = U([]), [Z, T] = U(!1), [b, v] = U(""), I = G(D), [$, B] = U(!1), {
44
- Dragger: ee
41
+ afterFilesClear: K,
42
+ docViewerUrl: q,
43
+ isFirstSession: J
44
+ } = L, [i, f] = A([]), c = G(i), [Q, k] = A([]), [Y, T] = A(!1), [b, v] = A(""), I = G(D), [$, B] = A(!1), {
45
+ Dragger: Z
45
46
  } = W, {
46
47
  service: o,
47
48
  popupContainer: m
48
- } = ye(Ee);
49
+ } = ge(Ie);
49
50
  w(() => {
50
51
  I.current = D;
51
- }, [D]), xe(P, () => ({
52
+ }, [D]), ye(P, () => ({
52
53
  update: H,
53
54
  clear: _
54
55
  })), w(() => {
55
- Q || (k([]), f([]), H());
56
+ J || (k([]), f([]), H());
56
57
  }, [a]);
57
58
  const H = () => a ? new Promise((e, s) => {
58
59
  o == null || o.getApplicationIdSessionKnowledgeFiles(u, a, {
59
60
  enabled: 1
60
- }).then((t) => {
61
- k(t), f(t), ne(t);
61
+ }).then((n) => {
62
+ k(n), f(n), ee(n);
62
63
  }).finally(() => {
63
64
  e();
64
65
  });
65
- }) : Promise.resolve(), ne = (e) => z(void 0, null, function* () {
66
+ }) : Promise.resolve(), ee = (e) => z(void 0, null, function* () {
66
67
  a && (e == null || e.map((s) => z(void 0, null, function* () {
67
- var t;
68
+ var n;
68
69
  try {
69
70
  if (yield o == null ? void 0 : o.checkFileReady(u, a, s.id)) {
70
- const l = [...c.current], g = e.findIndex((d) => d.id === s.id);
71
- g !== -1 && (l[g].status = 2), f(l), S && S(s, a);
71
+ const d = [...c.current], g = e.findIndex((l) => l.id === s.id);
72
+ g !== -1 && (d[g].status = 2), f(d), S && S(s, a);
72
73
  }
73
- } catch (n) {
74
- if (((t = n.cause) == null ? void 0 : t.code) === -101) {
75
- const l = [...c.current], g = e.findIndex((d) => d.id === s.id);
76
- g !== -1 && (l[g].status = 3), f(l);
74
+ } catch (t) {
75
+ if (((n = t.cause) == null ? void 0 : n.code) === -101) {
76
+ const d = [...c.current], g = e.findIndex((l) => l.id === s.id);
77
+ g !== -1 && (d[g].status = 3), f(d);
77
78
  return;
78
79
  }
79
80
  }
@@ -89,15 +90,15 @@ const q = ge((L, P) => {
89
90
  const O = (e) => z(void 0, null, function* () {
90
91
  if (e.size <= 0)
91
92
  return p.error("该文件为空,请重新上传文档"), !1;
92
- if (Ue(e.name).length > X)
93
+ if (ze(e.name).length > X)
93
94
  return p.error(`文件名称不能超过${X}字符`), !1;
94
- if (e.size > 50 * ke)
95
+ if (e.size > 50 * Ue)
95
96
  return p.error(`${e.name}文件大小不能超过 50M`), !1;
96
- if (Ae.some((n) => n === e.type)) {
97
- const n = e;
98
- n.status = 1, f((l) => l.length >= 10 ? l : [...l, n]);
97
+ if (Ae.some((t) => t === e.type)) {
98
+ const t = e;
99
+ t.status = 1, f((d) => d.length >= 10 ? d : [...d, t]);
99
100
  } else
100
- ie("存在文件格式不正确的文件,已自动去除");
101
+ oe("存在文件格式不正确的文件,已自动去除");
101
102
  return !1;
102
103
  });
103
104
  w(() => {
@@ -105,68 +106,68 @@ const q = ge((L, P) => {
105
106
  v("");
106
107
  return;
107
108
  }
108
- const e = i.find((n) => n.status === 1), s = i.find((n) => n.status === 3);
109
- i.every((n) => n.status === 2) ? v("successed") : e ? v("process") : s && v("failed"), N && N(i);
109
+ const e = i.find((t) => t.status === 1), s = i.find((t) => t.status === 3);
110
+ i.every((t) => t.status === 2) ? v("successed") : e ? v("process") : s && v("failed"), F && F(i);
110
111
  }, [i]), w(() => {
111
112
  c.current = i;
112
- const e = i.filter((s) => !Y.includes(s));
113
- se(e), k(i);
113
+ const e = i.filter((s) => !Q.includes(s));
114
+ re(e), k(i);
114
115
  }, [i]);
115
- const te = (e, s, t) => z(void 0, null, function* () {
116
+ const te = (e, s, n) => z(void 0, null, function* () {
116
117
  var g;
117
- const n = [...c.current], l = c.current.findIndex((d) => d === t);
118
- l !== -1 && (n[l].id = s), f(n);
118
+ const t = [...c.current], d = c.current.findIndex((l) => l === n);
119
+ d !== -1 && (t[d].id = s), f(t);
119
120
  try {
120
- const d = yield o == null ? void 0 : o.checkFileReady(u, e, s, () => I.current, void 0, (y) => {
121
- const x = [...c.current], E = c.current.findIndex((ce) => ce === t);
121
+ const l = yield o == null ? void 0 : o.checkFileReady(u, e, s, () => I.current, void 0, (y) => {
122
+ const x = [...c.current], E = c.current.findIndex((le) => le === n);
122
123
  x[E].url = y.url, f(x);
123
124
  });
124
- if (d) {
125
- const y = [...c.current], x = c.current.findIndex((E) => E === t);
126
- x !== -1 && (y[x].status = 2, y[x].url = d.url), f(y), S && S(d, e);
125
+ if (l) {
126
+ const y = [...c.current], x = c.current.findIndex((E) => E === n);
127
+ x !== -1 && (y[x].status = 2, y[x].url = l.url), f(y), S && S(l, e);
127
128
  }
128
- } catch (d) {
129
- if (((g = d.cause) == null ? void 0 : g.code) === -101) {
130
- const y = [...c.current], x = c.current.findIndex((E) => E === t);
129
+ } catch (l) {
130
+ if (((g = l.cause) == null ? void 0 : g.code) === -101) {
131
+ const y = [...c.current], x = c.current.findIndex((E) => E === n);
131
132
  x !== -1 && (y[x].status = 3), f(y);
132
133
  return;
133
134
  }
134
135
  }
135
- }), re = () => a ? Promise.resolve(a) : R(), se = (e) => {
136
- e.length && re().then((s) => {
137
- e == null || e.forEach((t) => {
138
- var n;
139
- I.current = !0, (n = de(s, t)) == null || n.then((l) => {
140
- var d;
141
- if (!l)
136
+ }), ne = () => a ? Promise.resolve(a) : R(), re = (e) => {
137
+ e.length && ne().then((s) => {
138
+ e == null || e.forEach((n) => {
139
+ var t;
140
+ I.current = !0, (t = de(s, n)) == null || t.then((d) => {
141
+ var l;
142
+ if (!d)
142
143
  return;
143
144
  const g = {
144
- url: l,
145
- name: t.name,
146
- size: t.size,
145
+ url: d,
146
+ name: n.name,
147
+ size: n.size,
147
148
  type: 1,
148
- origin: be.AECPILOT
149
+ origin: Ce.AECPILOT
149
150
  };
150
- I.current && ((d = oe(s, g)) == null || d.then((y) => te(s, y, t)));
151
+ I.current && ((l = se(s, g)) == null || l.then((y) => te(s, y, n)));
151
152
  });
152
153
  });
153
154
  });
154
- }, oe = (e, s) => o == null ? void 0 : o.postApplicationIdSessionKnowledgeSessionFile(u, e, s), ie = we((e) => {
155
+ }, se = (e, s) => o == null ? void 0 : o.postApplicationIdSessionKnowledgeSessionFile(u, e, s), oe = Fe((e) => {
155
156
  p.error(e);
156
- }, 300), ae = (e) => {
157
+ }, 300), ie = (e) => {
157
158
  a && e != null && e.id && (o == null || o.delApplicationIdSessionKnowledgeFileId(u, a, e.id).then((s) => {
158
- const t = i.filter((n) => n.id !== e.id);
159
- f(t), p.config({
159
+ const n = i.filter((t) => t.id !== e.id);
160
+ f(n), p.config({
160
161
  getContainer: () => (m == null ? void 0 : m.current) || document.body
161
162
  }), p.success("删除成功"), h && h(e.id);
162
163
  }));
163
- }, le = /* @__PURE__ */ r(ue, {
164
- children: /* @__PURE__ */ F("div", {
164
+ }, ae = /* @__PURE__ */ r(ce, {
165
+ children: /* @__PURE__ */ N("div", {
165
166
  className: "card-title",
166
167
  children: [/* @__PURE__ */ r("span", {
167
168
  className: "name",
168
169
  children: "上传列表"
169
- }), /* @__PURE__ */ F("div", {
170
+ }), /* @__PURE__ */ N("div", {
170
171
  className: "actions",
171
172
  children: [/* @__PURE__ */ r(W, {
172
173
  accept: ".doc, .docx, .pdf",
@@ -176,13 +177,13 @@ const q = ge((L, P) => {
176
177
  margin: 0
177
178
  },
178
179
  multiple: !0,
179
- children: /* @__PURE__ */ r(K, {
180
+ children: /* @__PURE__ */ r(M, {
180
181
  className: "action",
181
182
  type: "link",
182
- disabled: Z,
183
- children: /* @__PURE__ */ F("div", {
183
+ disabled: Y,
184
+ children: /* @__PURE__ */ N("div", {
184
185
  className: "detail",
185
- children: [/* @__PURE__ */ r(M, {
186
+ children: [/* @__PURE__ */ r(j, {
186
187
  type: "icon-tianjia",
187
188
  style: {
188
189
  fontSize: 16
@@ -192,16 +193,16 @@ const q = ge((L, P) => {
192
193
  })]
193
194
  })
194
195
  })
195
- }), /* @__PURE__ */ r(K, {
196
+ }), /* @__PURE__ */ r(M, {
196
197
  className: "action",
197
198
  type: "link",
198
199
  disabled: !i.length,
199
200
  onClick: () => {
200
201
  B(!0);
201
202
  },
202
- children: /* @__PURE__ */ F("div", {
203
+ children: /* @__PURE__ */ N("div", {
203
204
  className: "detail",
204
- children: [/* @__PURE__ */ r(M, {
205
+ children: [/* @__PURE__ */ r(j, {
205
206
  type: "icon-shanchu",
206
207
  style: {
207
208
  fontSize: 16
@@ -218,25 +219,25 @@ const q = ge((L, P) => {
218
219
  throw Error("session is not exist.");
219
220
  return o == null ? void 0 : o.uploadFile(e, s).catch(() => (p.error("服务异常,请稍后再试"), ""));
220
221
  }, V = /* @__PURE__ */ r("div", {
221
- className: `upload-enter ${A ? "disabled" : ""}`,
222
- children: /* @__PURE__ */ r(fe, {
222
+ className: `upload-enter ${U ? "disabled" : ""}`,
223
+ children: /* @__PURE__ */ r(ue, {
223
224
  size: "small",
224
225
  color: "#9C24F2",
225
- count: b === "successed" ? i.length : b === "process" ? /* @__PURE__ */ r(pe, {
226
+ count: b === "successed" ? i.length : b === "process" ? /* @__PURE__ */ r(fe, {
226
227
  className: "file-action file-process",
227
- indicator: /* @__PURE__ */ r(Se, {
228
+ indicator: /* @__PURE__ */ r(xe, {
228
229
  style: {
229
230
  fontSize: 14
230
231
  },
231
232
  spin: !0
232
233
  })
233
- }) : b === "failed" ? /* @__PURE__ */ r(Fe, {
234
+ }) : b === "failed" ? /* @__PURE__ */ r(Se, {
234
235
  style: {
235
236
  color: "#dc4446",
236
237
  fontSize: 14
237
238
  }
238
239
  }) : 0,
239
- children: /* @__PURE__ */ r(M, {
240
+ children: /* @__PURE__ */ r(j, {
240
241
  type: "icon-shangchuanwenjian",
241
242
  style: {
242
243
  fontSize: 24
@@ -247,19 +248,19 @@ const q = ge((L, P) => {
247
248
  const s = c.current;
248
249
  if (!a)
249
250
  return e();
250
- const t = [];
251
- s.filter((n) => n.id).forEach((n) => t.push({
252
- id: n.id,
253
- status: n.status
251
+ const n = [];
252
+ s.filter((t) => t.id).forEach((t) => n.push({
253
+ id: t.id,
254
+ status: t.status
254
255
  })), o == null || o.delApplicationIdSessionKnowledgeFile(u, a, {
255
- files: t
256
+ files: n
256
257
  }).then(() => {
257
- k([]), f([]), c.current = [], j && j(), I.current = !1, e();
258
+ k([]), f([]), c.current = [], K && K(), I.current = !1, e();
258
259
  });
259
260
  });
260
- return /* @__PURE__ */ F("div", {
261
+ return /* @__PURE__ */ N("div", {
261
262
  className: "footer-upload",
262
- children: [A ? V : /* @__PURE__ */ r(he, {
263
+ children: [U ? V : /* @__PURE__ */ r(pe, {
263
264
  overlayClassName: "upload-popover",
264
265
  overlayInnerStyle: {
265
266
  width: 264,
@@ -280,33 +281,33 @@ const q = ge((L, P) => {
280
281
  display: "flex",
281
282
  flexDirection: "column"
282
283
  },
283
- children: i == null ? void 0 : i.map((e, s) => /* @__PURE__ */ r(Ce, {
284
+ children: i == null ? void 0 : i.map((e, s) => /* @__PURE__ */ r(we, {
284
285
  file: e,
285
286
  actions: {
286
287
  preview: () => {
287
288
  if (!(e != null && e.url))
288
289
  return p.error("正在上传中");
289
- if (!ze(e.url))
290
+ if (!Ee(e.url))
290
291
  return p.error("链接格式不正确");
291
- window.open(`${J}#/doc?url=${encodeURIComponent(e == null ? void 0 : e.url)}`);
292
+ window.open(`${q}#/doc?url=${encodeURIComponent(e == null ? void 0 : e.url)}`);
292
293
  },
293
294
  remove: () => {
294
- ae(e);
295
+ ie(e);
295
296
  },
296
297
  download: () => {
297
- a && (o == null || o.getApplicationIdSessionKnowledgeFileId(u, a, e.id).then((t) => {
298
- if (!(t != null && t.url)) {
298
+ a && (o == null || o.getApplicationIdSessionKnowledgeFileId(u, a, e.id).then((n) => {
299
+ if (!(n != null && n.url)) {
299
300
  p.error("下载失败");
300
301
  return;
301
302
  }
302
- const n = document.createElement("a");
303
- n.href = t.url, n.download = t.name || "", n.click();
303
+ const t = document.createElement("a");
304
+ t.href = n.url, t.download = n.name || "", t.click();
304
305
  }));
305
306
  }
306
307
  }
307
308
  }, s))
308
309
  })
309
- }) : /* @__PURE__ */ F(ee, {
310
+ }) : /* @__PURE__ */ N(Z, {
310
311
  name: "file",
311
312
  showUploadList: !1,
312
313
  multiple: !0,
@@ -317,16 +318,16 @@ const q = ge((L, P) => {
317
318
  children: [/* @__PURE__ */ r("span", {
318
319
  className: "file-upload-icon",
319
320
  children: /* @__PURE__ */ r(Ne, {})
320
- }), /* @__PURE__ */ F(me, {
321
+ }), /* @__PURE__ */ N(he, {
321
322
  className: "file-upload-action",
322
- children: ["拖拽文件至此,或者", /* @__PURE__ */ r(K, {
323
+ children: ["拖拽文件至此,或者", /* @__PURE__ */ r(M, {
323
324
  type: "link",
324
325
  style: {
325
326
  padding: 0
326
327
  },
327
328
  children: "上传文件"
328
329
  })]
329
- }), /* @__PURE__ */ F("div", {
330
+ }), /* @__PURE__ */ N("div", {
330
331
  className: "file-upload-desc",
331
332
  children: [/* @__PURE__ */ r("div", {
332
333
  className: "item-upload-desc",
@@ -343,10 +344,10 @@ const q = ge((L, P) => {
343
344
  })]
344
345
  })
345
346
  }),
346
- title: le,
347
+ title: ae,
347
348
  trigger: "click",
348
349
  children: V
349
- }), $ && /* @__PURE__ */ r(Ie, {
350
+ }), $ && /* @__PURE__ */ r(be, {
350
351
  isvisible: $,
351
352
  onClose: (e) => {
352
353
  e === "clear" && _(), B(!1);
@@ -354,8 +355,7 @@ const q = ge((L, P) => {
354
355
  })]
355
356
  });
356
357
  });
357
- q.displayName = "UploadFiles";
358
- const We = q;
358
+ ke.displayName = "UploadFiles";
359
359
  export {
360
- We as default
360
+ ke as default
361
361
  };
@@ -0,0 +1,4 @@
1
+ const t = "";
2
+ export {
3
+ t as default
4
+ };
@@ -1,9 +1,10 @@
1
- import { jsx as e, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as p } from "../../_virtual/jsx-runtime.mjs";
2
2
  import { ExclamationCircleFilled as f } from "@ant-design/icons";
3
3
  import { Modal as u, Button as s } from "antd";
4
4
  import { useContext as h } from "react";
5
- /* empty css */import C from "../../context.mjs";
6
- const g = (r) => {
5
+ import "./style.less.mjs";
6
+ import C from "../../context.mjs";
7
+ const E = (r) => {
7
8
  const {
8
9
  files: a,
9
10
  sessionId: l,
@@ -58,7 +59,7 @@ const g = (r) => {
58
59
  children: "你可以选择后台继续上传,也可以直接离开放弃上传中的文件。"
59
60
  })
60
61
  });
61
- }, N = g;
62
+ };
62
63
  export {
63
- N as default
64
+ E as default
64
65
  };
@@ -0,0 +1,4 @@
1
+ const t = "";
2
+ export {
3
+ t as default
4
+ };
@@ -1,83 +1,84 @@
1
- var $ = Object.defineProperty, q = Object.defineProperties;
2
- var z = Object.getOwnPropertyDescriptors;
3
- var E = Object.getOwnPropertySymbols;
4
- var B = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
- var x = (t, o, s) => o in t ? $(t, o, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[o] = s, j = (t, o) => {
6
- for (var s in o || (o = {}))
7
- B.call(o, s) && x(t, s, o[s]);
8
- if (E)
9
- for (var s of E(o))
10
- F.call(o, s) && x(t, s, o[s]);
1
+ var q = Object.defineProperty, z = Object.defineProperties;
2
+ var B = Object.getOwnPropertyDescriptors;
3
+ var L = Object.getOwnPropertySymbols;
4
+ var F = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
+ var x = (t, n, s) => n in t ? q(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s, j = (t, n) => {
6
+ for (var s in n || (n = {}))
7
+ F.call(n, s) && x(t, s, n[s]);
8
+ if (L)
9
+ for (var s of L(n))
10
+ G.call(n, s) && x(t, s, n[s]);
11
11
  return t;
12
- }, K = (t, o) => q(t, z(o));
13
- var p = (t, o, s) => new Promise((I, w) => {
12
+ }, A = (t, n) => z(t, B(n));
13
+ var p = (t, n, s) => new Promise((I, N) => {
14
14
  var e = (r) => {
15
15
  try {
16
- g(s.next(r));
16
+ u(s.next(r));
17
17
  } catch (h) {
18
- w(h);
18
+ N(h);
19
19
  }
20
20
  }, a = (r) => {
21
21
  try {
22
- g(s.throw(r));
22
+ u(s.throw(r));
23
23
  } catch (h) {
24
- w(h);
24
+ N(h);
25
25
  }
26
- }, g = (r) => r.done ? I(r.value) : Promise.resolve(r.value).then(e, a);
27
- g((s = s.apply(t, o)).next());
26
+ }, u = (r) => r.done ? I(r.value) : Promise.resolve(r.value).then(e, a);
27
+ u((s = s.apply(t, n)).next());
28
28
  });
29
- import { jsx as c, jsxs as R } from "react/jsx-runtime";
30
- import { useState as v, useContext as G, useRef as J, useEffect as y } from "react";
31
- import M from "../context.mjs";
32
- import P from "./AgentChat/index.mjs";
33
- import Q from "./KnowledgeList/index.mjs";
34
- import T from "./SessionList/index.mjs";
35
- /* empty css */const W = (t) => {
29
+ import { jsx as c, jsxs as R } from "../_virtual/jsx-runtime.mjs";
30
+ import { useState as v, useContext as J, useRef as M, useEffect as y } from "react";
31
+ import P from "../context.mjs";
32
+ import Q from "./AgentChat/index.mjs";
33
+ import T from "./KnowledgeList/index.mjs";
34
+ import W from "./SessionList/index.mjs";
35
+ import "./style.less.mjs";
36
+ const re = (t) => {
36
37
  const {
37
- sessionId: o,
38
+ sessionId: n,
38
39
  appId: s,
39
40
  docViewerUrl: I,
40
- bodyStyle: w
41
+ bodyStyle: N
41
42
  } = t, [e, a] = v(), {
42
- service: g,
43
+ service: u,
43
44
  mode: r,
44
45
  showHeader: h,
45
46
  token: X,
46
- agentClient: n,
47
- sider: A,
47
+ agentClient: o,
48
+ sider: H,
48
49
  onSessionLoad: f,
49
50
  onSessionUnload: Y,
50
51
  footer: Z,
51
52
  transform: _,
52
- depId: C,
53
+ depId: $,
53
54
  features: l
54
- } = G(M), [m, D] = v(), S = J(null), [U, H] = v(""), [k, b] = v(), [L, N] = v(!1);
55
+ } = J(P), [m, K] = v(), w = M(null), [U, D] = v(""), [k, b] = v(), [E, S] = v(!1);
55
56
  y(() => {
56
57
  var i;
57
- N(e ? !!((i = e.data) != null && i.netOpen) : typeof (l == null ? void 0 : l.connectNetwork) == "object" && typeof (l == null ? void 0 : l.connectNetwork.default) == "boolean" ? l.connectNetwork.default : !1);
58
+ S(e ? !!((i = e.data) != null && i.netOpen) : typeof (l == null ? void 0 : l.connectNetwork) == "object" && typeof (l == null ? void 0 : l.connectNetwork.default) == "boolean" ? l.connectNetwork.default : !1);
58
59
  }, [e]), y(() => {
59
60
  const i = () => p(void 0, null, function* () {
60
- const d = n == null ? void 0 : n.application;
61
+ const d = o == null ? void 0 : o.application;
61
62
  if (!(d != null && d.id))
62
63
  return;
63
- const u = d == null ? void 0 : d.arrange;
64
- if (!(u != null && u.length))
64
+ const g = d == null ? void 0 : d.arrange;
65
+ if (!(g != null && g.length))
65
66
  return;
66
- const V = u[0].embeddingService;
67
- H(V), D(d);
67
+ const V = g[0].embeddingService;
68
+ D(V), K(d);
68
69
  });
69
- return n == null || n.addEventListener("ready", () => i()), () => {
70
- n == null || n.removeEventListener("ready", i);
70
+ return o == null || o.addEventListener("ready", () => i()), () => {
71
+ o == null || o.removeEventListener("ready", i);
71
72
  };
72
73
  }, []), y(() => {
73
- n && o && (n.ready ? n == null || n.getSessions().then((i) => p(void 0, null, function* () {
74
- a == null || a(i.find((d) => d.id === o));
75
- })) : n.addEventListener("ready", () => p(void 0, null, function* () {
76
- n == null || n.getSessions().then((i) => p(void 0, null, function* () {
77
- a == null || a(i.find((d) => d.id === o));
74
+ o && n && (o.ready ? o == null || o.getSessions().then((i) => p(void 0, null, function* () {
75
+ a == null || a(i.find((d) => d.id === n));
76
+ })) : o.addEventListener("ready", () => p(void 0, null, function* () {
77
+ o == null || o.getSessions().then((i) => p(void 0, null, function* () {
78
+ a == null || a(i.find((d) => d.id === n));
78
79
  }));
79
80
  }), !0));
80
- }, [n, o]), y(() => {
81
+ }, [o, n]), y(() => {
81
82
  if (!e) {
82
83
  f && f({
83
84
  applicationId: s,
@@ -103,7 +104,7 @@ import T from "./SessionList/index.mjs";
103
104
  }, [e]);
104
105
  const O = (i) => {
105
106
  var d;
106
- return (d = S.current) == null ? void 0 : d.create(K(j({}, i), {
107
+ return (d = w.current) == null ? void 0 : d.create(A(j({}, i), {
107
108
  knowledges: k
108
109
  }));
109
110
  };
@@ -113,11 +114,11 @@ import T from "./SessionList/index.mjs";
113
114
  className: "dialog-pannel",
114
115
  children: [/* @__PURE__ */ c("div", {
115
116
  className: "dialog-sider",
116
- children: /* @__PURE__ */ c(T, {
117
- ref: S,
118
- sider: A,
117
+ children: /* @__PURE__ */ c(W, {
118
+ ref: w,
119
+ sider: H,
119
120
  appId: s,
120
- networkStatus: L,
121
+ networkStatus: E,
121
122
  currentSession: e,
122
123
  application: m,
123
124
  setCurrentSession: a,
@@ -130,7 +131,7 @@ import T from "./SessionList/index.mjs";
130
131
  className: "dialog-chat",
131
132
  children: [h && /* @__PURE__ */ c("div", {
132
133
  className: "dialog-chat-header",
133
- children: /* @__PURE__ */ c(Q, {
134
+ children: /* @__PURE__ */ c(T, {
134
135
  setCheckKnowledges: b,
135
136
  application: m,
136
137
  currentSession: e,
@@ -138,9 +139,9 @@ import T from "./SessionList/index.mjs";
138
139
  })
139
140
  }), /* @__PURE__ */ c("div", {
140
141
  className: "dialog-chat-content",
141
- children: (m == null ? void 0 : m.id) && /* @__PURE__ */ c(P, {
142
- setNetworkStatus: N,
143
- networkStatus: L,
142
+ children: (m == null ? void 0 : m.id) && /* @__PURE__ */ c(Q, {
143
+ setNetworkStatus: S,
144
+ networkStatus: E,
144
145
  application: m,
145
146
  currentSession: e,
146
147
  onCreateSession: O,
@@ -153,7 +154,7 @@ import T from "./SessionList/index.mjs";
153
154
  })]
154
155
  })
155
156
  });
156
- }, ce = W;
157
+ };
157
158
  export {
158
- ce as default
159
+ re as default
159
160
  };
@@ -0,0 +1,4 @@
1
+ const t = "";
2
+ export {
3
+ t as default
4
+ };