@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.
Files changed (402) hide show
  1. package/dist/es/AgentClientUI.mjs +3 -4
  2. package/dist/es/Dialog/AgentChat/index.mjs +141 -141
  3. package/dist/es/Dialog/ConnectToNetwork/index.mjs +2 -3
  4. package/dist/es/Dialog/FileCard/index.mjs +2 -3
  5. package/dist/es/Dialog/FilePreview/index.mjs +2 -3
  6. package/dist/es/Dialog/Greeting/index.mjs +2 -3
  7. package/dist/es/Dialog/HistoryContent/index.mjs +2 -3
  8. package/dist/es/Dialog/HistoryItem/index.mjs +29 -30
  9. package/dist/es/Dialog/KnowledgeDoc/index.mjs +2 -3
  10. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +2 -3
  11. package/dist/es/Dialog/KnowledgeList/index.mjs +21 -22
  12. package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +1 -1
  13. package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +2 -3
  14. package/dist/es/Dialog/PromptManager/index.mjs +2 -3
  15. package/dist/es/Dialog/PromptSetting/index.mjs +2 -3
  16. package/dist/es/Dialog/Recommend/RecommendItem.mjs +3 -4
  17. package/dist/es/Dialog/Recommend/index.mjs +2 -3
  18. package/dist/es/Dialog/ReferCollapse/index.mjs +2 -3
  19. package/dist/es/Dialog/SearchReference/index.mjs +92 -55
  20. package/dist/es/Dialog/SessionAction/index.mjs +4 -5
  21. package/dist/es/Dialog/SessionList/index.mjs +3 -4
  22. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +2 -3
  23. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +2 -3
  24. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +2 -3
  25. package/dist/es/Dialog/SessionListDrawer/index.mjs +2 -3
  26. package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +2 -3
  27. package/dist/es/Dialog/SessionRefer/index.mjs +2 -3
  28. package/dist/es/Dialog/SessionRelated/index.mjs +2 -3
  29. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +2 -3
  30. package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +2 -3
  31. package/dist/es/Dialog/UploadingPrompt/index.mjs +2 -3
  32. package/dist/es/Dialog/index.mjs +57 -58
  33. package/dist/es/FileItem/index.mjs +2 -3
  34. package/dist/es/Footer/FooterWarning.mjs +2 -3
  35. package/dist/es/Footer/index.mjs +2 -3
  36. package/dist/es/Iconfont/index.mjs +2 -2
  37. package/dist/es/InputProgress/index.mjs +2 -3
  38. package/dist/es/QuillEditor/index.mjs +4 -5
  39. package/dist/es/components/Copy/index.mjs +2 -3
  40. package/dist/es/components/JsonDisplay/index.mjs +2 -3
  41. package/dist/es/components/Markdown/ATag/index.mjs +1 -1
  42. package/dist/es/components/Markdown/Code/index.mjs +1 -1
  43. package/dist/es/components/Markdown/Image/index.mjs +20 -21
  44. package/dist/es/components/Markdown/Video/index.mjs +1 -1
  45. package/dist/es/components/Markdown/index.mjs +16 -17
  46. package/dist/es/components/WebLink/index.mjs +1 -1
  47. package/dist/es/constant.mjs +8 -2
  48. package/dist/es/index.mjs +60 -65
  49. package/dist/es/src/style.css +1 -0
  50. package/dist/es/src/style10.css +1 -0
  51. package/dist/es/src/style11.css +1 -0
  52. package/dist/es/src/style12.css +1 -0
  53. package/dist/es/src/style13.css +1 -0
  54. package/dist/es/src/style14.css +1 -0
  55. package/dist/es/src/style15.css +1 -0
  56. package/dist/es/src/style16.css +1 -0
  57. package/dist/es/src/style17.css +1 -0
  58. package/dist/es/src/style18.css +1 -0
  59. package/dist/es/src/style19.css +1 -0
  60. package/dist/es/src/style2.css +1 -0
  61. package/dist/es/src/style20.css +1 -0
  62. package/dist/es/src/style21.css +0 -0
  63. package/dist/es/src/style22.css +1 -0
  64. package/dist/es/src/style23.css +1 -0
  65. package/dist/es/src/style24.css +1 -0
  66. package/dist/es/src/style25.css +1 -0
  67. package/dist/es/src/style26.css +1 -0
  68. package/dist/es/src/style27.css +1 -0
  69. package/dist/es/src/style28.css +1 -0
  70. package/dist/es/src/style29.css +1 -0
  71. package/dist/es/src/style3.css +1 -0
  72. package/dist/es/src/style30.css +1 -0
  73. package/dist/es/src/style31.css +1 -0
  74. package/dist/es/src/style32.css +1 -0
  75. package/dist/es/src/style33.css +1 -0
  76. package/dist/es/src/style4.css +1 -0
  77. package/dist/es/src/style5.css +1 -0
  78. package/dist/es/src/style6.css +1 -0
  79. package/dist/es/src/style7.css +1 -0
  80. package/dist/es/src/style8.css +1 -0
  81. package/dist/es/src/style9.css +1 -0
  82. package/dist/lib/index.css +1 -0
  83. package/dist/lib/index.js +5 -311
  84. package/dist/src/Dialog/SearchReference/index.d.ts +7 -4
  85. package/dist/src/Iconfont/index.d.ts +0 -1
  86. package/dist/src/components/Markdown/ATag/index.d.ts +0 -1
  87. package/dist/src/components/Markdown/Code/index.d.ts +0 -1
  88. package/dist/src/components/Markdown/Image/index.d.ts +0 -1
  89. package/dist/src/components/Markdown/Video/index.d.ts +0 -1
  90. package/dist/src/types.d.ts +11 -2
  91. package/package.json +19 -6
  92. package/dist/es/Dialog/AgentChat/style.less.mjs +0 -4
  93. package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +0 -4
  94. package/dist/es/Dialog/FileCard/style.less.mjs +0 -4
  95. package/dist/es/Dialog/FilePreview/style.less.mjs +0 -4
  96. package/dist/es/Dialog/Greeting/style.less.mjs +0 -4
  97. package/dist/es/Dialog/HistoryContent/style.less.mjs +0 -4
  98. package/dist/es/Dialog/HistoryItem/style.less.mjs +0 -4
  99. package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +0 -4
  100. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +0 -4
  101. package/dist/es/Dialog/KnowledgeList/style.less.mjs +0 -4
  102. package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +0 -4
  103. package/dist/es/Dialog/PromptManager/style.less.mjs +0 -4
  104. package/dist/es/Dialog/PromptSetting/style.less.mjs +0 -4
  105. package/dist/es/Dialog/Recommend/style.less.mjs +0 -4
  106. package/dist/es/Dialog/ReferCollapse/style.less.mjs +0 -4
  107. package/dist/es/Dialog/SearchReference/style.less.mjs +0 -4
  108. package/dist/es/Dialog/SessionAction/style.less.mjs +0 -4
  109. package/dist/es/Dialog/SessionList/style.less.mjs +0 -4
  110. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +0 -4
  111. package/dist/es/Dialog/SessionListDrawer/style.less.mjs +0 -4
  112. package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +0 -4
  113. package/dist/es/Dialog/SessionRefer/style.less.mjs +0 -4
  114. package/dist/es/Dialog/SessionRelated/style.less.mjs +0 -4
  115. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +0 -4
  116. package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +0 -4
  117. package/dist/es/Dialog/UploadingPrompt/style.less.mjs +0 -4
  118. package/dist/es/Dialog/style.less.mjs +0 -4
  119. package/dist/es/FileItem/style.less.mjs +0 -4
  120. package/dist/es/Footer/style.less.mjs +0 -4
  121. package/dist/es/InputProgress/style.less.mjs +0 -4
  122. package/dist/es/QuillEditor/style.less.mjs +0 -4
  123. package/dist/es/_virtual/_cloneBuffer.mjs +0 -4
  124. package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
  125. package/dist/es/_virtual/_nodeUtil.mjs +0 -4
  126. package/dist/es/_virtual/index.mjs +0 -4
  127. package/dist/es/_virtual/isBuffer.mjs +0 -4
  128. package/dist/es/_virtual/jsx-runtime.mjs +0 -7
  129. package/dist/es/_virtual/jsx-runtime2.mjs +0 -4
  130. package/dist/es/_virtual/lib.mjs +0 -4
  131. package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +0 -4
  132. package/dist/es/_virtual/ua-parser.min.mjs +0 -4
  133. package/dist/es/components/Copy/style.less.mjs +0 -4
  134. package/dist/es/components/JsonDisplay/style.less.mjs +0 -4
  135. package/dist/es/components/Markdown/style.less.mjs +0 -4
  136. package/dist/es/favicon.ico +0 -0
  137. package/dist/es/favicon2.ico +0 -0
  138. package/dist/es/font/font_4108228_4w5nlhafpte.js +0 -1
  139. package/dist/es/font/font_4439177_0sppkcnqiqgs.js +0 -1
  140. package/dist/es/font/gos-font.js +0 -64
  141. package/dist/es/images/empty.svg +0 -40
  142. package/dist/es/images/loading.gif +0 -0
  143. package/dist/es/images/logo.png +0 -0
  144. package/dist/es/images/map-example.png +0 -0
  145. package/dist/es/images/sketch.png +0 -0
  146. package/dist/es/index.html +0 -43
  147. package/dist/es/logo192.png +0 -0
  148. package/dist/es/logo512.png +0 -0
  149. package/dist/es/manifest.json +0 -25
  150. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
  151. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
  152. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
  153. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
  154. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
  155. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
  156. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
  157. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
  158. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
  159. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
  160. package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +0 -221
  161. package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +0 -8
  162. package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +0 -19
  163. package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +0 -16
  164. package/dist/es/node_modules/ahooks/es/useSize/index.mjs +0 -34
  165. package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +0 -17
  166. package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +0 -13
  167. package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +0 -27
  168. package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +0 -11
  169. package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +0 -7
  170. package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +0 -13
  171. package/dist/es/node_modules/ahooks/es/utils/index.mjs +0 -12
  172. package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +0 -5
  173. package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +0 -5
  174. package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +0 -5
  175. package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +0 -11
  176. package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +0 -7
  177. package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +0 -8
  178. package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +0 -7
  179. package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +0 -4
  180. package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +0 -23
  181. package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +0 -132
  182. package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +0 -8
  183. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
  184. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +0 -4
  185. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
  186. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -14
  187. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
  188. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -172
  189. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -81
  190. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -5
  191. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +0 -4
  192. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
  193. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -5
  194. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +0 -4
  195. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
  196. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +0 -4
  197. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -4
  198. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
  199. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
  200. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
  201. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
  202. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
  203. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
  204. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
  205. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
  206. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
  207. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -46
  208. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
  209. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
  210. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
  211. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
  212. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
  213. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
  214. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
  215. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
  216. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
  217. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
  218. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
  219. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
  220. package/dist/es/node_modules/classnames/index.mjs +0 -42
  221. package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -13
  222. package/dist/es/node_modules/copy-to-clipboard/index.mjs +0 -46
  223. package/dist/es/node_modules/devlop/lib/default.mjs +0 -5
  224. package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
  225. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +0 -126
  226. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +0 -8
  227. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
  228. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +0 -12
  229. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +0 -61
  230. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +0 -33
  231. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +0 -368
  232. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +0 -6
  233. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +0 -566
  234. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  235. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  236. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +0 -14
  237. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  238. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +0 -28
  239. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +0 -10
  240. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +0 -21
  241. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +0 -15
  242. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +0 -19
  243. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +0 -15
  244. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +0 -16
  245. package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
  246. package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
  247. package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
  248. package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
  249. package/dist/es/node_modules/katex/dist/katex.min.css.mjs +0 -4
  250. package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
  251. package/dist/es/node_modules/lodash/_Hash.mjs +0 -22
  252. package/dist/es/node_modules/lodash/_ListCache.mjs +0 -22
  253. package/dist/es/node_modules/lodash/_Map.mjs +0 -6
  254. package/dist/es/node_modules/lodash/_MapCache.mjs +0 -22
  255. package/dist/es/node_modules/lodash/_Stack.mjs +0 -20
  256. package/dist/es/node_modules/lodash/_Symbol.mjs +0 -5
  257. package/dist/es/node_modules/lodash/_Uint8Array.mjs +0 -5
  258. package/dist/es/node_modules/lodash/_apply.mjs +0 -17
  259. package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +0 -21
  260. package/dist/es/node_modules/lodash/_assignMergeValue.mjs +0 -10
  261. package/dist/es/node_modules/lodash/_assignValue.mjs +0 -11
  262. package/dist/es/node_modules/lodash/_assocIndexOf.mjs +0 -12
  263. package/dist/es/node_modules/lodash/_baseAssignValue.mjs +0 -14
  264. package/dist/es/node_modules/lodash/_baseCreate.mjs +0 -17
  265. package/dist/es/node_modules/lodash/_baseFor.mjs +0 -5
  266. package/dist/es/node_modules/lodash/_baseGetTag.mjs +0 -11
  267. package/dist/es/node_modules/lodash/_baseIsArguments.mjs +0 -10
  268. package/dist/es/node_modules/lodash/_baseIsNative.mjs +0 -15
  269. package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +0 -13
  270. package/dist/es/node_modules/lodash/_baseKeysIn.mjs +0 -16
  271. package/dist/es/node_modules/lodash/_baseMerge.mjs +0 -22
  272. package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +0 -33
  273. package/dist/es/node_modules/lodash/_baseRest.mjs +0 -11
  274. package/dist/es/node_modules/lodash/_baseSetToString.mjs +0 -14
  275. package/dist/es/node_modules/lodash/_baseTimes.mjs +0 -9
  276. package/dist/es/node_modules/lodash/_baseTrim.mjs +0 -9
  277. package/dist/es/node_modules/lodash/_baseUnary.mjs +0 -9
  278. package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +0 -10
  279. package/dist/es/node_modules/lodash/_cloneBuffer.mjs +0 -17
  280. package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +0 -10
  281. package/dist/es/node_modules/lodash/_copyArray.mjs +0 -10
  282. package/dist/es/node_modules/lodash/_copyObject.mjs +0 -16
  283. package/dist/es/node_modules/lodash/_coreJsData.mjs +0 -5
  284. package/dist/es/node_modules/lodash/_createAssigner.mjs +0 -17
  285. package/dist/es/node_modules/lodash/_createBaseFor.mjs +0 -14
  286. package/dist/es/node_modules/lodash/_defineProperty.mjs +0 -11
  287. package/dist/es/node_modules/lodash/_freeGlobal.mjs +0 -5
  288. package/dist/es/node_modules/lodash/_getMapData.mjs +0 -10
  289. package/dist/es/node_modules/lodash/_getNative.mjs +0 -11
  290. package/dist/es/node_modules/lodash/_getPrototype.mjs +0 -5
  291. package/dist/es/node_modules/lodash/_getRawTag.mjs +0 -16
  292. package/dist/es/node_modules/lodash/_getValue.mjs +0 -7
  293. package/dist/es/node_modules/lodash/_hashClear.mjs +0 -9
  294. package/dist/es/node_modules/lodash/_hashDelete.mjs +0 -8
  295. package/dist/es/node_modules/lodash/_hashGet.mjs +0 -14
  296. package/dist/es/node_modules/lodash/_hashHas.mjs +0 -10
  297. package/dist/es/node_modules/lodash/_hashSet.mjs +0 -10
  298. package/dist/es/node_modules/lodash/_initCloneObject.mjs +0 -11
  299. package/dist/es/node_modules/lodash/_isIndex.mjs +0 -9
  300. package/dist/es/node_modules/lodash/_isIterateeCall.mjs +0 -15
  301. package/dist/es/node_modules/lodash/_isKeyable.mjs +0 -8
  302. package/dist/es/node_modules/lodash/_isMasked.mjs +0 -12
  303. package/dist/es/node_modules/lodash/_isPrototype.mjs +0 -9
  304. package/dist/es/node_modules/lodash/_listCacheClear.mjs +0 -7
  305. package/dist/es/node_modules/lodash/_listCacheDelete.mjs +0 -13
  306. package/dist/es/node_modules/lodash/_listCacheGet.mjs +0 -10
  307. package/dist/es/node_modules/lodash/_listCacheHas.mjs +0 -9
  308. package/dist/es/node_modules/lodash/_listCacheSet.mjs +0 -10
  309. package/dist/es/node_modules/lodash/_mapCacheClear.mjs +0 -15
  310. package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +0 -10
  311. package/dist/es/node_modules/lodash/_mapCacheGet.mjs +0 -9
  312. package/dist/es/node_modules/lodash/_mapCacheHas.mjs +0 -9
  313. package/dist/es/node_modules/lodash/_mapCacheSet.mjs +0 -10
  314. package/dist/es/node_modules/lodash/_nativeCreate.mjs +0 -5
  315. package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +0 -11
  316. package/dist/es/node_modules/lodash/_nodeUtil.mjs +0 -17
  317. package/dist/es/node_modules/lodash/_objectToString.mjs +0 -8
  318. package/dist/es/node_modules/lodash/_overArg.mjs +0 -9
  319. package/dist/es/node_modules/lodash/_overRest.mjs +0 -16
  320. package/dist/es/node_modules/lodash/_root.mjs +0 -5
  321. package/dist/es/node_modules/lodash/_safeGet.mjs +0 -8
  322. package/dist/es/node_modules/lodash/_setToString.mjs +0 -6
  323. package/dist/es/node_modules/lodash/_shortOut.mjs +0 -17
  324. package/dist/es/node_modules/lodash/_stackClear.mjs +0 -9
  325. package/dist/es/node_modules/lodash/_stackDelete.mjs +0 -8
  326. package/dist/es/node_modules/lodash/_stackGet.mjs +0 -7
  327. package/dist/es/node_modules/lodash/_stackHas.mjs +0 -7
  328. package/dist/es/node_modules/lodash/_stackSet.mjs +0 -18
  329. package/dist/es/node_modules/lodash/_toSource.mjs +0 -18
  330. package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +0 -10
  331. package/dist/es/node_modules/lodash/constant.mjs +0 -9
  332. package/dist/es/node_modules/lodash/debounce.mjs +0 -57
  333. package/dist/es/node_modules/lodash/eq.mjs +0 -7
  334. package/dist/es/node_modules/lodash/identity.mjs +0 -7
  335. package/dist/es/node_modules/lodash/isArguments.mjs +0 -10
  336. package/dist/es/node_modules/lodash/isArray.mjs +0 -4
  337. package/dist/es/node_modules/lodash/isArrayLike.mjs +0 -10
  338. package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +0 -10
  339. package/dist/es/node_modules/lodash/isBuffer.mjs +0 -12
  340. package/dist/es/node_modules/lodash/isFunction.mjs +0 -13
  341. package/dist/es/node_modules/lodash/isLength.mjs +0 -8
  342. package/dist/es/node_modules/lodash/isObject.mjs +0 -8
  343. package/dist/es/node_modules/lodash/isObjectLike.mjs +0 -7
  344. package/dist/es/node_modules/lodash/isPlainObject.mjs +0 -17
  345. package/dist/es/node_modules/lodash/isSymbol.mjs +0 -10
  346. package/dist/es/node_modules/lodash/isTypedArray.mjs +0 -7
  347. package/dist/es/node_modules/lodash/keysIn.mjs +0 -11
  348. package/dist/es/node_modules/lodash/merge.mjs +0 -10
  349. package/dist/es/node_modules/lodash/now.mjs +0 -7
  350. package/dist/es/node_modules/lodash/stubFalse.mjs +0 -7
  351. package/dist/es/node_modules/lodash/toNumber.mjs +0 -23
  352. package/dist/es/node_modules/lodash/toPlainObject.mjs +0 -10
  353. package/dist/es/node_modules/longest-streak/index.mjs +0 -12
  354. package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
  355. package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
  356. package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
  357. package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
  358. package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
  359. package/dist/es/node_modules/micromark-util-character/index.mjs +0 -10
  360. package/dist/es/node_modules/object-assign/index.mjs +0 -34
  361. package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +0 -18
  362. package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +0 -31
  363. package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +0 -45
  364. package/dist/es/node_modules/react/jsx-runtime.mjs +0 -8
  365. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
  366. package/dist/es/node_modules/react-fast-compare/index.mjs +0 -78
  367. package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +0 -188
  368. package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +0 -4
  369. package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
  370. package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
  371. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +0 -294
  372. package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -7
  373. package/dist/es/node_modules/toggle-selection/index.mjs +0 -25
  374. package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -64
  375. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -120
  376. package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
  377. package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
  378. package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
  379. package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
  380. package/dist/es/node_modules/web-namespaces/index.mjs +0 -11
  381. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +0 -4
  382. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +0 -13
  383. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +0 -9
  384. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +0 -23
  385. package/dist/es/robots.txt +0 -3
  386. package/dist/es/style.less.mjs +0 -4
  387. package/dist/lib/favicon.ico +0 -0
  388. package/dist/lib/favicon2.ico +0 -0
  389. package/dist/lib/font/font_4108228_4w5nlhafpte.js +0 -1
  390. package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +0 -1
  391. package/dist/lib/font/gos-font.js +0 -64
  392. package/dist/lib/images/empty.svg +0 -40
  393. package/dist/lib/images/loading.gif +0 -0
  394. package/dist/lib/images/logo.png +0 -0
  395. package/dist/lib/images/map-example.png +0 -0
  396. package/dist/lib/images/sketch.png +0 -0
  397. package/dist/lib/index.html +0 -43
  398. package/dist/lib/logo192.png +0 -0
  399. package/dist/lib/logo512.png +0 -0
  400. package/dist/lib/manifest.json +0 -25
  401. package/dist/lib/robots.txt +0 -3
  402. /package/dist/es/{Dialog/HistoryItem → assets}/think.svg.mjs +0 -0
@@ -1,18 +1,18 @@
1
- var $t = Object.defineProperty, At = Object.defineProperties;
2
- var Bt = Object.getOwnPropertyDescriptors;
1
+ var Vt = Object.defineProperty, $t = Object.defineProperties;
2
+ var At = Object.getOwnPropertyDescriptors;
3
3
  var Se = Object.getOwnPropertySymbols;
4
- var qt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
5
- var ke = (x, o, m) => o in x ? $t(x, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : x[o] = m, we = (x, o) => {
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
- qt.call(o, m) && ke(x, m, o[m]);
7
+ Bt.call(o, m) && we(x, m, o[m]);
8
8
  if (Se)
9
9
  for (var m of Se(o))
10
- Kt.call(o, m) && ke(x, m, o[m]);
10
+ qt.call(o, m) && we(x, m, o[m]);
11
11
  return x;
12
- }, be = (x, o) => At(x, Bt(o));
13
- var P = (x, o, m) => (ke(x, typeof o != "symbol" ? o + "" : o, m), 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 re = (b) => {
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(re, v);
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 "../../_virtual/jsx-runtime.mjs";
31
- import { memo as Yt, useState as p, useRef as A, useContext as Wt, useEffect as N, useMemo as Qt } from "react";
32
- import "./style.less.mjs";
33
- import { Divider as _t, Spin as Gt, Button as Q, Space as ae, Upload as Xt, Tooltip as Zt, message as R, notification as Jt } from "antd";
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 it from "../HistoryItem/index.mjs";
37
- import ot from "dayjs";
38
- import St from "../../context.mjs";
39
- import { MB as en } from "../../constant.mjs";
40
- import tn from "../FilePreview/index.mjs";
41
- import { getImageExtension as nn } from "../../utils/index.mjs";
42
- import on from "../../QuillEditor/index.mjs";
43
- import sn from "../Recommend/index.mjs";
44
- import ln from "../Greeting/index.mjs";
45
- import an from "../PromptManager/index.mjs";
46
- import rn from "../../Footer/index.mjs";
47
- import { CameraOutlined as tt, PlusOutlined as dn } from "@ant-design/icons";
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 "../../node_modules/ahooks/es/useMemoizedFn/index.mjs";
51
+ import { useMemoizedFn as Ie } from "ahooks";
52
52
  import pn from "../SessionListDrawer/index.mjs";
53
- import hn from "../../node_modules/react-infinite-scroll-component/dist/index.es.mjs";
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
- import st from "../../packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs";
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 = ot(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss"), this.isWaiting = !1, this.messageId = st(), this.isContext = !1, this.actions = [], this.reference = [], this.isSensitive = !1, this.isSuspend = !1, this.comment = {
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 nt = 10, Qn = (x) => {
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: re,
83
+ embeddingService: de,
85
84
  setCurrentSession: v,
86
85
  networkStatus: D,
87
86
  setNetworkStatus: b
88
- } = x, [u, I] = p([]), [lt, J] = p(), [de, Le] = p(), E = A(null), {
87
+ } = x, [u, I] = p([]), [st, J] = p(), [ce, Le] = p(), E = A(null), {
89
88
  service: C,
90
89
  agentClient: L,
91
- depId: at,
92
- footer: rt,
90
+ depId: lt,
91
+ footer: at,
93
92
  transform: c,
94
- defaultInput: ce,
93
+ defaultInput: fe,
95
94
  onMessage: S,
96
95
  onHistoryLoad: Ce,
97
96
  beforeMessageSend: z,
98
- bodyStyle: dt,
97
+ bodyStyle: rt,
99
98
  disabled: H,
100
99
  features: f
101
- } = Wt(St), [Ne, fe] = p(!1), h = A(u), Fe = A(), [ct, ft] = p(0), [G, B] = p(), [q, ee] = p(""), [Te, ue] = p(!1), pe = A(null), [Ee, ut] = p([]), [Pe, K] = p(!1), [Re, pt] = p(!1), [ht, gt] = p(""), [mt, Y] = p(), [te, ne] = p({}), ie = A(null), De = A(null), he = A(null), [He, yt] = p(!1), [vt, kt] = p([]), [wt, oe] = p(!0), [bt, xt] = p(!0), [Me, M] = p(!1), [ge, j] = p(!1), [Oe, It] = p(!1), [F, se] = p(typeof (f == null ? void 0 : f.promptVariables) == "object" ? f.promptVariables.default || [] : []), [Lt, Ct] = p(typeof (f == null ? void 0 : f.knowledges) == "object" && f.knowledges.default || void 0), [Ue, O] = p(!1), [ze, X] = p(!1), [Nt, 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);
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 && Ct(e.knowledges), b(e.netOpen));
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 Ft = () => {
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
- ut(t);
157
+ ft(t);
159
158
  }));
160
- }, [at, o]);
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 || lt;
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 (ge)
172
+ if (me)
174
173
  return R.error("正在回复中");
175
174
  if (Ne)
176
175
  return R.error("等待初始化");
177
- if (!wt)
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)), Tt(y).then(() => {
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 ? Et(r) : me(r);
216
- }), Tt = (t) => new Promise((n, l) => U(void 0, null, function* () {
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
- })), Et = (t) => {
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), me(t, l);
235
+ oe(!0), ye(t, l);
237
236
  }).catch((g) => {
238
237
  throw Error(g);
239
238
  });
240
239
  };
241
240
  N(() => {
242
- if (!de || !e)
241
+ if (!ce || !e)
243
242
  return;
244
- const t = de, n = () => U(void 0, null, function* () {
243
+ const t = ce, n = () => U(void 0, null, function* () {
245
244
  le(!0);
246
245
  const l = q ? `![](${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 && (me(t), Le(void 0));
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
- }, [de, e]);
269
- const me = (t, n) => U(void 0, null, function* () {
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 = Lt;
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 Jt.error({
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
- fe(!1);
328
+ ue(!1);
330
329
  return;
331
330
  }
332
331
  const t = (n) => {
333
- fe(n);
332
+ ue(n);
334
333
  };
335
- return fe(e.frozen), e.addEventListener("frozen", t), () => {
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
- ft(t);
341
+ ct(t);
343
342
  }, [L, C]), N(() => {
344
- ce && Y(ce.text);
345
- }, [ce]);
346
- const Pt = (t) => {
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 * en ? (R.error("图片须小于20M"), !1) : (B(t), !1);
349
- }, Rt = (t) => U(void 0, null, function* () {
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 = nn(n.name);
359
+ const l = tn(n.name);
361
360
  return new Promise((i) => {
362
361
  var s;
363
362
  const a = {
364
- files: [`${st()}.${l}`],
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
- ue(!0), C == null || C.postTicket(a).then((r) => {
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
- ue(!1);
376
+ pe(!1);
378
377
  });
379
378
  }).catch(() => {
380
- ee(""), B(void 0), ue(!1);
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(we({}, n.file), {
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
- }), Dt = () => {
399
+ }), Rt = () => {
401
400
  var t;
402
401
  (t = e == null ? void 0 : e.data) != null && t.id && (M(!1), e.suspend());
403
- }, Ht = (t) => {
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
- }, Mt = () => {
410
+ }, Ht = () => {
412
411
  if (!E.current)
413
412
  return;
414
413
  const t = E.current.scrollTop <= -80;
415
- It(t);
416
- }, Ot = Ie((t) => {
414
+ xt(t);
415
+ }, Mt = Ie((t) => {
417
416
  var n, l;
418
- (n = pe.current) == null || n.update(t), (l = pe.current) == null || l.focus();
419
- }), Ut = Ie((t) => {
417
+ (n = he.current) == null || n.update(t), (l = he.current) == null || l.focus();
418
+ }), Ot = Ie((t) => {
420
419
  Ve(t);
421
- }), zt = Ie(() => {
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 = he.current) == null || n.clear());
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 jt = () => {
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: nt
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
- }, Vt = (t) => U(void 0, null, function* () {
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
- }), ye = () => U(void 0, null, function* () {
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
- ye();
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
- }), ve = Qt(() => {
510
+ }), ke = Wt(() => {
512
511
  var t;
513
- return o.arrange && ((t = o.arrange[0]) != null && t.openingContent) ? /* @__PURE__ */ d(it, {
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: ot(Date.now()).format("YYYY-MM-DD HH:mm:ss"),
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", ve), /* @__PURE__ */ $("div", {
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: dt,
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: Mt,
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: jt,
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 > nt && // 少于一页不展示这个提示
564
- ((Ke = E.current) != null && Ke.scrollTop) && ((Ye = E.current) == null ? void 0 : Ye.scrollTop) < -10 ? /* @__PURE__ */ d(_t, {
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(Gt, {})
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: Ut,
585
- onAgainClick: zt,
586
- onEditClick: Ot
587
- }, t.messageId + n)), !ze && ve]
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(ln, be(we({}, vn), {
591
- children: !!Ee.length && /* @__PURE__ */ d(sn, {
592
- ref: he,
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
- })), ve]
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(xe, {
625
+ icon: /* @__PURE__ */ d(re, {
627
626
  type: "icon-zantinghuida",
628
627
  style: {
629
628
  fontSize: 16
630
629
  }
631
630
  }),
632
- onClick: () => Dt(),
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: () => Ht({
638
+ onClick: () => Dt({
640
639
  behavior: "smooth"
641
640
  }),
642
641
  type: "link",
643
- icon: /* @__PURE__ */ d(xe, {
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(tn, {
656
+ children: /* @__PURE__ */ d(en, {
658
657
  file: G,
659
658
  actions: {
660
- upload: Rt,
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(Xt, {
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: Pt,
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(tt, {
686
+ icon: /* @__PURE__ */ d(rn, {
688
687
  className: "icon-tianjia",
689
688
  style: {
690
689
  fontSize: "22px"
691
690
  }
692
691
  })
693
- }) : /* @__PURE__ */ d(Zt, {
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(tt, {
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
- }), re && (c != null && c.fileUpload) && (o != null && o.id) ? /* @__PURE__ */ d(cn, {
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), ye()) : oe(!1);
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: ge || H,
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
- kt(t);
754
+ vt(t);
755
755
  },
756
- shouldContinue: bt,
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
- }), ye());
762
+ }), ve());
763
763
  }
764
- }) : null, (c == null ? void 0 : c.prompt) && (o == null ? void 0 : o.id) && /* @__PURE__ */ d(an, {
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 ? ht : "",
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) : Nt,
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
- Vt(t);
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 = he.current) == null || n.clear();
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(on, {
803
- ref: pe,
804
- maxLength: ct,
805
- text: mt,
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), gt(l), Re || pt(!0);
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: ge || H,
819
+ disabled: me || H,
820
820
  ghost: !0,
821
- icon: /* @__PURE__ */ d(xe, {
821
+ icon: /* @__PURE__ */ d(re, {
822
822
  style: {
823
823
  fontSize: 22
824
824
  },
825
825
  type: "icon-qingchujiyi"
826
826
  }),
827
- onClick: () => Ft()
827
+ onClick: () => Nt()
828
828
  })
829
829
  })
830
830
  })
831
831
  })]
832
832
  })
833
- }), /* @__PURE__ */ d(rn, {
834
- tips: rt
833
+ }), /* @__PURE__ */ d(an, {
834
+ tips: at
835
835
  }), He && /* @__PURE__ */ d(fn, {
836
836
  isvisible: He,
837
- files: vt,
837
+ files: yt,
838
838
  sessionId: (Ze = e == null ? void 0 : e.data) == null ? void 0 : Ze.id,
839
839
  onClose: (t) => {
840
- yt(!1), xt(!1);
840
+ mt(!1), bt(!1);
841
841
  }
842
842
  })]
843
843
  });