@deep-eye/core 1.3.82 → 1.3.84

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 (331) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +1 -1
  3. package/dist/{ChartRenderer-CdMqq77C.js → ChartRenderer-BFYHRt_Q.js} +1 -1
  4. package/dist/{ChartRenderer-D5Z9667V.cjs → ChartRenderer-NUULTbe7.cjs} +1 -1
  5. package/dist/ChatMyFilesArtifacts-BxZqqm8I.cjs +1 -0
  6. package/dist/ChatMyFilesArtifacts-Qkim1200.js +1030 -0
  7. package/dist/chat-token.css +209 -7
  8. package/dist/components/chat/ChatApp.vue.d.ts +41 -7
  9. package/dist/components/chat/ChatApp.vue.d.ts.map +1 -1
  10. package/dist/components/chat/ChatBot.vue.d.ts +3 -3
  11. package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
  12. package/dist/components/chat/addToTask.d.ts +46 -0
  13. package/dist/components/chat/addToTask.d.ts.map +1 -0
  14. package/dist/components/chat/attachmentController.d.ts.map +1 -1
  15. package/dist/components/chat/attachments.d.ts.map +1 -1
  16. package/dist/components/chat/chatAppMyFiles.d.ts +43 -0
  17. package/dist/components/chat/chatAppMyFiles.d.ts.map +1 -0
  18. package/dist/components/chat/chatContext.d.ts +17 -0
  19. package/dist/components/chat/chatContext.d.ts.map +1 -1
  20. package/dist/components/chat/chatFilePicker.d.ts +243 -0
  21. package/dist/components/chat/chatFilePicker.d.ts.map +1 -0
  22. package/dist/components/chat/chatSessionSidebarAssets.d.ts +13 -0
  23. package/dist/components/chat/chatSessionSidebarAssets.d.ts.map +1 -1
  24. package/dist/components/chat/cloudAxios.d.ts +30 -0
  25. package/dist/components/chat/cloudAxios.d.ts.map +1 -0
  26. package/dist/components/chat/cloudConfig.d.ts +95 -8
  27. package/dist/components/chat/cloudConfig.d.ts.map +1 -1
  28. package/dist/components/chat/components/ArtifactPreview.vue.d.ts +6 -0
  29. package/dist/components/chat/components/ArtifactPreview.vue.d.ts.map +1 -1
  30. package/dist/components/chat/components/ChatActionbar.vue.d.ts +2 -2
  31. package/dist/components/chat/components/ChatAttachments.vue.d.ts +8 -1
  32. package/dist/components/chat/components/ChatAttachments.vue.d.ts.map +1 -1
  33. package/dist/components/chat/components/ChatComposerContextBar.vue.d.ts.map +1 -1
  34. package/dist/components/chat/components/ChatFileCard.vue.d.ts +2 -2
  35. package/dist/components/chat/components/ChatFileCard.vue.d.ts.map +1 -1
  36. package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts +56 -0
  37. package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts.map +1 -0
  38. package/dist/components/chat/components/ChatFilePreview.vue.d.ts +41 -2
  39. package/dist/components/chat/components/ChatFilePreview.vue.d.ts.map +1 -1
  40. package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts +9 -2
  41. package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts.map +1 -1
  42. package/dist/components/chat/components/ChatKnowledgeLibraryList.vue.d.ts +32 -0
  43. package/dist/components/chat/components/ChatKnowledgeLibraryList.vue.d.ts.map +1 -0
  44. package/dist/components/chat/components/ChatMessage.vue.d.ts +1 -1
  45. package/dist/components/chat/components/ChatPreviewEmpty.vue.d.ts +53 -0
  46. package/dist/components/chat/components/ChatPreviewEmpty.vue.d.ts.map +1 -0
  47. package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts +87 -0
  48. package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts.map +1 -0
  49. package/dist/components/chat/components/ChatProvider.vue.d.ts +2 -2
  50. package/dist/components/chat/components/ChatProvider.vue.d.ts.map +1 -1
  51. package/dist/components/chat/components/ChatQueue.vue.d.ts.map +1 -1
  52. package/dist/components/chat/components/ChatQuotaDialog.vue.d.ts.map +1 -1
  53. package/dist/components/chat/components/ChatSender.vue.d.ts +18 -1
  54. package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
  55. package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts +1 -1
  56. package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts.map +1 -1
  57. package/dist/components/chat/components/ChatSessionGroupRow.vue.d.ts +3 -0
  58. package/dist/components/chat/components/ChatSessionGroupRow.vue.d.ts.map +1 -1
  59. package/dist/components/chat/components/ChatSessionGroupSection.vue.d.ts +5 -2
  60. package/dist/components/chat/components/ChatSessionGroupSection.vue.d.ts.map +1 -1
  61. package/dist/components/chat/components/ChatSessionPinnedSection.vue.d.ts +3 -0
  62. package/dist/components/chat/components/ChatSessionPinnedSection.vue.d.ts.map +1 -1
  63. package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts +21 -1
  64. package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts.map +1 -1
  65. package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts +1 -1
  66. package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts.map +1 -1
  67. package/dist/components/chat/components/ChatTipMenu.vue.d.ts.map +1 -1
  68. package/dist/components/chat/components/ConversationIndex.vue.d.ts.map +1 -1
  69. package/dist/components/chat/components/ConversationList.vue.d.ts +2 -2
  70. package/dist/components/chat/components/MessageBubble.vue.d.ts +1 -1
  71. package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
  72. package/dist/components/chat/components/OpenFileViewerHost.vue.d.ts +6 -0
  73. package/dist/components/chat/components/OpenFileViewerHost.vue.d.ts.map +1 -1
  74. package/dist/components/chat/components/ProcessStepGroup.vue.d.ts +1 -1
  75. package/dist/components/chat/components/ProcessStepGroup.vue.d.ts.map +1 -1
  76. package/dist/components/chat/components/SubagentRunsPanel.vue.d.ts.map +1 -1
  77. package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts +10 -0
  78. package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts.map +1 -1
  79. package/dist/components/chat/components/document-viewer/bento/BentoRenderer.vue.d.ts +1 -0
  80. package/dist/components/chat/components/document-viewer/bento/BentoRenderer.vue.d.ts.map +1 -1
  81. package/dist/components/chat/components/document-viewer/chromeBridge.d.ts +53 -0
  82. package/dist/components/chat/components/document-viewer/chromeBridge.d.ts.map +1 -0
  83. package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts +1 -0
  84. package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts.map +1 -1
  85. package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts +1 -0
  86. package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts.map +1 -1
  87. package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts.map +1 -1
  88. package/dist/components/chat/components/document-viewer/onlyoffice/OnlyOfficeRenderer.vue.d.ts +9 -3
  89. package/dist/components/chat/components/document-viewer/onlyoffice/OnlyOfficeRenderer.vue.d.ts.map +1 -1
  90. package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeConfig.d.ts +36 -1
  91. package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeConfig.d.ts.map +1 -1
  92. package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeProfile.d.ts +153 -0
  93. package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeProfile.d.ts.map +1 -0
  94. package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts +1 -0
  95. package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts.map +1 -1
  96. package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts +1 -0
  97. package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts.map +1 -1
  98. package/dist/components/chat/components/document-viewer/types.d.ts +18 -0
  99. package/dist/components/chat/components/document-viewer/types.d.ts.map +1 -1
  100. package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts +1 -0
  101. package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts.map +1 -1
  102. package/dist/components/chat/components/files/ArtifactFileMoreButton.vue.d.ts +34 -0
  103. package/dist/components/chat/components/files/ArtifactFileMoreButton.vue.d.ts.map +1 -0
  104. package/dist/components/chat/components/files/ChatArtifactFileRow.vue.d.ts +25 -0
  105. package/dist/components/chat/components/files/ChatArtifactFileRow.vue.d.ts.map +1 -0
  106. package/dist/components/chat/components/files/ChatArtifactPreview.vue.d.ts +31 -0
  107. package/dist/components/chat/components/files/ChatArtifactPreview.vue.d.ts.map +1 -0
  108. package/dist/components/chat/components/files/ChatArtifactsSkeleton.vue.d.ts +17 -0
  109. package/dist/components/chat/components/files/ChatArtifactsSkeleton.vue.d.ts.map +1 -0
  110. package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts +24 -0
  111. package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts.map +1 -0
  112. package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts +49 -0
  113. package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts.map +1 -0
  114. package/dist/components/chat/components/files/ChatMyFilesArtifacts.vue.d.ts +18 -0
  115. package/dist/components/chat/components/files/ChatMyFilesArtifacts.vue.d.ts.map +1 -0
  116. package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts +31 -0
  117. package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts.map +1 -0
  118. package/dist/components/chat/components/files/ChatMyFilesDocEditor.vue.d.ts +44 -0
  119. package/dist/components/chat/components/files/ChatMyFilesDocEditor.vue.d.ts.map +1 -0
  120. package/dist/components/chat/components/files/ChatMyFilesEmptyGuide.vue.d.ts +12 -0
  121. package/dist/components/chat/components/files/ChatMyFilesEmptyGuide.vue.d.ts.map +1 -0
  122. package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts +62 -0
  123. package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts.map +1 -0
  124. package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts +48 -0
  125. package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts.map +1 -0
  126. package/dist/components/chat/components/files/ChatMyFilesKindMenuItemIcon.vue.d.ts +15 -0
  127. package/dist/components/chat/components/files/ChatMyFilesKindMenuItemIcon.vue.d.ts.map +1 -0
  128. package/dist/components/chat/components/files/ChatMyFilesPrompt.vue.d.ts +37 -0
  129. package/dist/components/chat/components/files/ChatMyFilesPrompt.vue.d.ts.map +1 -0
  130. package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts +38 -0
  131. package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts.map +1 -0
  132. package/dist/components/chat/components/files/ChatMyFilesRecent.vue.d.ts +35 -0
  133. package/dist/components/chat/components/files/ChatMyFilesRecent.vue.d.ts.map +1 -0
  134. package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts +37 -0
  135. package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts.map +1 -0
  136. package/dist/components/chat/components/files/ChatMyFilesState.vue.d.ts +29 -0
  137. package/dist/components/chat/components/files/ChatMyFilesState.vue.d.ts.map +1 -0
  138. package/dist/components/chat/components/files/ChatMyFilesStateArt.vue.d.ts +10 -0
  139. package/dist/components/chat/components/files/ChatMyFilesStateArt.vue.d.ts.map +1 -0
  140. package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts +49 -0
  141. package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts.map +1 -0
  142. package/dist/components/chat/components/files/ChatMyFilesTypeMark.vue.d.ts +13 -0
  143. package/dist/components/chat/components/files/ChatMyFilesTypeMark.vue.d.ts.map +1 -0
  144. package/dist/components/chat/components/files/ChatMyFilesUploadDialog.vue.d.ts +32 -0
  145. package/dist/components/chat/components/files/ChatMyFilesUploadDialog.vue.d.ts.map +1 -0
  146. package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts +21 -0
  147. package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts.map +1 -0
  148. package/dist/components/chat/components/files/ChatMyFilesViewer.vue.d.ts +59 -0
  149. package/dist/components/chat/components/files/ChatMyFilesViewer.vue.d.ts.map +1 -0
  150. package/dist/components/chat/components/files/ChatTextReader.vue.d.ts +29 -0
  151. package/dist/components/chat/components/files/ChatTextReader.vue.d.ts.map +1 -0
  152. package/dist/components/chat/components/files/chatArtifactFileActions.d.ts +118 -0
  153. package/dist/components/chat/components/files/chatArtifactFileActions.d.ts.map +1 -0
  154. package/dist/components/chat/components/files/chatFileTransfer.d.ts +141 -0
  155. package/dist/components/chat/components/files/chatFileTransfer.d.ts.map +1 -0
  156. package/dist/components/chat/components/files/chatFileTransferSources.d.ts +32 -0
  157. package/dist/components/chat/components/files/chatFileTransferSources.d.ts.map +1 -0
  158. package/dist/components/chat/components/files/chatMyFilesApi.d.ts +270 -0
  159. package/dist/components/chat/components/files/chatMyFilesApi.d.ts.map +1 -0
  160. package/dist/components/chat/components/files/chatMyFilesModel.d.ts +122 -0
  161. package/dist/components/chat/components/files/chatMyFilesModel.d.ts.map +1 -0
  162. package/dist/components/chat/components/files/chatQuickAddMenu.d.ts +33 -0
  163. package/dist/components/chat/components/files/chatQuickAddMenu.d.ts.map +1 -0
  164. package/dist/components/chat/components/files/chatReviewApi.d.ts +75 -0
  165. package/dist/components/chat/components/files/chatReviewApi.d.ts.map +1 -0
  166. package/dist/components/chat/components/files/index.d.ts +26 -0
  167. package/dist/components/chat/components/files/index.d.ts.map +1 -0
  168. package/dist/components/chat/components/files/myFilesApiUtils.d.ts +9 -0
  169. package/dist/components/chat/components/files/myFilesApiUtils.d.ts.map +1 -0
  170. package/dist/components/chat/components/files/myFilesChunkUpload.d.ts +86 -0
  171. package/dist/components/chat/components/files/myFilesChunkUpload.d.ts.map +1 -0
  172. package/dist/components/chat/components/files/myFilesExpandMemory.d.ts +15 -0
  173. package/dist/components/chat/components/files/myFilesExpandMemory.d.ts.map +1 -0
  174. package/dist/components/chat/components/files/myFilesFilePicker.d.ts +30 -0
  175. package/dist/components/chat/components/files/myFilesFilePicker.d.ts.map +1 -0
  176. package/dist/components/chat/components/files/myFilesFolderModel.d.ts +32 -0
  177. package/dist/components/chat/components/files/myFilesFolderModel.d.ts.map +1 -0
  178. package/dist/components/chat/components/files/myFilesKindMenu.d.ts +19 -0
  179. package/dist/components/chat/components/files/myFilesKindMenu.d.ts.map +1 -0
  180. package/dist/components/chat/components/files/myFilesMarkdown.d.ts +40 -0
  181. package/dist/components/chat/components/files/myFilesMarkdown.d.ts.map +1 -0
  182. package/dist/components/chat/components/files/myFilesPreview.d.ts +52 -0
  183. package/dist/components/chat/components/files/myFilesPreview.d.ts.map +1 -0
  184. package/dist/components/chat/components/files/myFilesRecentVisits.d.ts +22 -0
  185. package/dist/components/chat/components/files/myFilesRecentVisits.d.ts.map +1 -0
  186. package/dist/components/chat/components/files/myFilesRows.d.ts +86 -0
  187. package/dist/components/chat/components/files/myFilesRows.d.ts.map +1 -0
  188. package/dist/components/chat/components/files/myFilesSearch.d.ts +80 -0
  189. package/dist/components/chat/components/files/myFilesSearch.d.ts.map +1 -0
  190. package/dist/components/chat/components/files/myFilesToast.d.ts +31 -0
  191. package/dist/components/chat/components/files/myFilesToast.d.ts.map +1 -0
  192. package/dist/components/chat/components/files/myFilesTransferQueue.d.ts +76 -0
  193. package/dist/components/chat/components/files/myFilesTransferQueue.d.ts.map +1 -0
  194. package/dist/components/chat/components/files/myFilesTree.d.ts +53 -0
  195. package/dist/components/chat/components/files/myFilesTree.d.ts.map +1 -0
  196. package/dist/components/chat/components/files/myFilesUploadPersistence.d.ts +48 -0
  197. package/dist/components/chat/components/files/myFilesUploadPersistence.d.ts.map +1 -0
  198. package/dist/components/chat/components/files/myFilesUploadQueue.d.ts +125 -0
  199. package/dist/components/chat/components/files/myFilesUploadQueue.d.ts.map +1 -0
  200. package/dist/components/chat/components/files/useArtifactNotice.d.ts +17 -0
  201. package/dist/components/chat/components/files/useArtifactNotice.d.ts.map +1 -0
  202. package/dist/components/chat/components/files/useFileTransfer.d.ts +60 -0
  203. package/dist/components/chat/components/files/useFileTransfer.d.ts.map +1 -0
  204. package/dist/components/chat/components/index.d.ts +7 -1
  205. package/dist/components/chat/components/index.d.ts.map +1 -1
  206. package/dist/components/chat/composables/chatApiRequest.d.ts.map +1 -1
  207. package/dist/components/chat/composables/chatHistoryApi.d.ts.map +1 -1
  208. package/dist/components/chat/composables/chatReferenceApi.d.ts.map +1 -1
  209. package/dist/components/chat/composables/chatSessionGroupApi.d.ts.map +1 -1
  210. package/dist/components/chat/composables/chatTtsApi.d.ts.map +1 -1
  211. package/dist/components/chat/composables/fetchModelList.d.ts +2 -2
  212. package/dist/components/chat/composables/fetchModelList.d.ts.map +1 -1
  213. package/dist/components/chat/composables/useChatSkillTipMenu.d.ts +22 -1
  214. package/dist/components/chat/composables/useChatSkillTipMenu.d.ts.map +1 -1
  215. package/dist/components/chat/composables/useChatTipMenu.d.ts +13 -4
  216. package/dist/components/chat/composables/useChatTipMenu.d.ts.map +1 -1
  217. package/dist/components/chat/composer/composerExtensions.d.ts +1 -1
  218. package/dist/components/chat/fileIcons.d.ts +42 -2
  219. package/dist/components/chat/fileIcons.d.ts.map +1 -1
  220. package/dist/components/chat/hydrateHistory.d.ts.map +1 -1
  221. package/dist/components/chat/icons/ChatFileDropIcon.vue.d.ts +6 -0
  222. package/dist/components/chat/icons/ChatFileDropIcon.vue.d.ts.map +1 -1
  223. package/dist/components/chat/icons/ChatTipMenuLocalFileIcon.vue.d.ts +7 -0
  224. package/dist/components/chat/icons/ChatTipMenuLocalFileIcon.vue.d.ts.map +1 -0
  225. package/dist/components/chat/icons/ChatTipMenuMyFilesIcon.vue.d.ts +7 -0
  226. package/dist/components/chat/icons/ChatTipMenuMyFilesIcon.vue.d.ts.map +1 -0
  227. package/dist/components/chat/icons/index.d.ts +3 -1
  228. package/dist/components/chat/icons/index.d.ts.map +1 -1
  229. package/dist/components/chat/icons/tipMenuItemIcons.d.ts +24 -0
  230. package/dist/components/chat/icons/tipMenuItemIcons.d.ts.map +1 -1
  231. package/dist/components/chat/index.d.ts +9 -0
  232. package/dist/components/chat/index.d.ts.map +1 -1
  233. package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts +5 -0
  234. package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -1
  235. package/dist/components/chat/mdoc/ArtifactStack.vue.d.ts.map +1 -1
  236. package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
  237. package/dist/components/chat/mdoc/artifactDownload.d.ts +16 -3
  238. package/dist/components/chat/mdoc/artifactDownload.d.ts.map +1 -1
  239. package/dist/components/chat/mdoc/artifactStack.d.ts +7 -2
  240. package/dist/components/chat/mdoc/artifactStack.d.ts.map +1 -1
  241. package/dist/components/chat/openFileViewer.d.ts +25 -2
  242. package/dist/components/chat/openFileViewer.d.ts.map +1 -1
  243. package/dist/components/chat/previewRenderers.d.ts +14 -0
  244. package/dist/components/chat/previewRenderers.d.ts.map +1 -1
  245. package/dist/components/chat/senderReferenceStack.d.ts +1 -1
  246. package/dist/components/chat/senderReferenceStack.d.ts.map +1 -1
  247. package/dist/components/chat/subagentDisplay.d.ts +4 -18
  248. package/dist/components/chat/subagentDisplay.d.ts.map +1 -1
  249. package/dist/components/chat/types.d.ts +93 -3
  250. package/dist/components/chat/types.d.ts.map +1 -1
  251. package/dist/components/chat/utils/tipMenuBuiltin.d.ts.map +1 -1
  252. package/dist/components/index.d.ts +1 -0
  253. package/dist/components/index.d.ts.map +1 -1
  254. package/dist/components/library/LibraryApp.vue.d.ts +68 -0
  255. package/dist/components/library/LibraryApp.vue.d.ts.map +1 -0
  256. package/dist/components/library/api/libraryApi.d.ts +8 -0
  257. package/dist/components/library/api/libraryApi.d.ts.map +1 -0
  258. package/dist/components/library/api/libraryContract.d.ts +36 -0
  259. package/dist/components/library/api/libraryContract.d.ts.map +1 -0
  260. package/dist/components/library/api/libraryMockApi.d.ts +3 -0
  261. package/dist/components/library/api/libraryMockApi.d.ts.map +1 -0
  262. package/dist/components/library/api/libraryTypes.d.ts +97 -0
  263. package/dist/components/library/api/libraryTypes.d.ts.map +1 -0
  264. package/dist/components/library/components/LibraryDocEditor.vue.d.ts +50 -0
  265. package/dist/components/library/components/LibraryDocEditor.vue.d.ts.map +1 -0
  266. package/dist/components/library/components/LibraryReadonlyPane.vue.d.ts +15 -0
  267. package/dist/components/library/components/LibraryReadonlyPane.vue.d.ts.map +1 -0
  268. package/dist/components/library/components/LibrarySidebar.vue.d.ts +41 -0
  269. package/dist/components/library/components/LibrarySidebar.vue.d.ts.map +1 -0
  270. package/dist/components/library/components/LibraryTreeNode.vue.d.ts +17 -0
  271. package/dist/components/library/components/LibraryTreeNode.vue.d.ts.map +1 -0
  272. package/dist/components/library/composables/useLibraryAutoSave.d.ts +36 -0
  273. package/dist/components/library/composables/useLibraryAutoSave.d.ts.map +1 -0
  274. package/dist/components/library/index.d.ts +14 -0
  275. package/dist/components/library/index.d.ts.map +1 -0
  276. package/dist/components/library/registry/libraryFileTypes.d.ts +42 -0
  277. package/dist/components/library/registry/libraryFileTypes.d.ts.map +1 -0
  278. package/dist/components/skill/index.d.ts +1 -0
  279. package/dist/components/skill/index.d.ts.map +1 -1
  280. package/dist/components/ui/components/UiDialog.vue.d.ts +21 -0
  281. package/dist/components/ui/components/UiDialog.vue.d.ts.map +1 -1
  282. package/dist/components/ui/components/UiDropdown.vue.d.ts +2 -0
  283. package/dist/components/ui/components/UiDropdown.vue.d.ts.map +1 -1
  284. package/dist/components/ui/components/UiEmptyState.vue.d.ts +29 -0
  285. package/dist/components/ui/components/UiEmptyState.vue.d.ts.map +1 -0
  286. package/dist/components/ui/components/UiIconButton.vue.d.ts +45 -0
  287. package/dist/components/ui/components/UiIconButton.vue.d.ts.map +1 -0
  288. package/dist/components/ui/components/UiMenu.vue.d.ts +2 -0
  289. package/dist/components/ui/components/UiMenu.vue.d.ts.map +1 -1
  290. package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts +3 -0
  291. package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts.map +1 -1
  292. package/dist/components/ui/components/UiPopover.vue.d.ts.map +1 -1
  293. package/dist/components/ui/components/UiProgressRing.vue.d.ts +32 -0
  294. package/dist/components/ui/components/UiProgressRing.vue.d.ts.map +1 -0
  295. package/dist/components/ui/components/UiRichEditor.vue.d.ts +55 -0
  296. package/dist/components/ui/components/UiRichEditor.vue.d.ts.map +1 -0
  297. package/dist/components/ui/components/editor/richEditorExtensions.d.ts +13 -0
  298. package/dist/components/ui/components/editor/richEditorExtensions.d.ts.map +1 -0
  299. package/dist/components/ui/components/editor/richEditorPlaceholder.d.ts +6 -0
  300. package/dist/components/ui/components/editor/richEditorPlaceholder.d.ts.map +1 -0
  301. package/dist/components/ui/components/index.d.ts +4 -0
  302. package/dist/components/ui/components/index.d.ts.map +1 -1
  303. package/dist/components/ui/composables/index.d.ts +2 -0
  304. package/dist/components/ui/composables/index.d.ts.map +1 -1
  305. package/dist/components/ui/composables/useBreakpoint.d.ts +43 -0
  306. package/dist/components/ui/composables/useBreakpoint.d.ts.map +1 -0
  307. package/dist/components/ui/composables/useUiDropdown.d.ts +2 -0
  308. package/dist/components/ui/composables/useUiDropdown.d.ts.map +1 -1
  309. package/dist/components/ui/types.d.ts +2 -0
  310. package/dist/components/ui/types.d.ts.map +1 -1
  311. package/dist/{docx-preview-BB0Qv1nC.js → docx-preview-CgF7upUL.js} +1 -1
  312. package/dist/{docx-preview-WRcIosJk.cjs → docx-preview-Dom9DuwY.cjs} +1 -1
  313. package/dist/{index-CWLfFu3e.cjs → index-Ctl5i7Ad.cjs} +1 -1
  314. package/dist/{index-BGQvGRIY.js → index-CxF54XmE.js} +1 -1
  315. package/dist/{index-BrxlMnow.js → index-DaiEgT_d.js} +63651 -53759
  316. package/dist/index-DuVaE24T.cjs +1410 -0
  317. package/dist/index.cjs +1 -1
  318. package/dist/index.js +599 -463
  319. package/dist/{papaparse.min-B0ulAjn8.js → papaparse.min-CpVgW58v.js} +1 -1
  320. package/dist/{papaparse.min-C3FYhYXB.cjs → papaparse.min-Dkpv4aky.cjs} +1 -1
  321. package/dist/shared/cloudApi.d.ts +29 -0
  322. package/dist/shared/cloudApi.d.ts.map +1 -0
  323. package/dist/style.css +2 -2
  324. package/package.json +1 -1
  325. package/dist/components/chat/components/SubagentRunDialog.vue.d.ts +0 -20
  326. package/dist/components/chat/components/SubagentRunDialog.vue.d.ts.map +0 -1
  327. package/dist/components/skill/formatSkillUsageCount.d.ts +0 -3
  328. package/dist/components/skill/formatSkillUsageCount.d.ts.map +0 -1
  329. package/dist/components/skill/quickActionAvatarIcon.d.ts +0 -25
  330. package/dist/components/skill/quickActionAvatarIcon.d.ts.map +0 -1
  331. package/dist/index-BBiUUsrN.cjs +0 -1248
@@ -0,0 +1,1030 @@
1
+ import { defineComponent as be, computed as f, openBlock as i, createElementBlock as d, normalizeClass as U, createElementVNode as s, createVNode as M, withModifiers as Ke, toDisplayString as b, createCommentVNode as T, unref as m, withCtx as se, ref as c, watch as ue, onMounted as st, nextTick as Dt, onBeforeUnmount as Nt, createBlock as P, Teleport as Ht, Transition as Ut, Fragment as de, renderList as fe, normalizeStyle as ce, onUnmounted as Ot, withDirectives as zt, vModelText as Gt, createTextVNode as Ve } from "vue";
2
+ import "@vueuse/core";
3
+ import { c as lt, u as Re, A as nt, a as ot, b as it, d as rt, e as ct, C as Kt, f as Vt, g as ut, _ as Ce, h as ge, i as Zt, j as qt, k as Wt, l as jt, m as Yt, r as Qt, n as Jt, o as Xt, p as ea, q as ta, s as Ze, t as aa, v as sa, w as la, x as na, y as oa, z as ia, B as ra, K as ca, D as qe, E as V, F as We, G as ua, H as da, I as je, J as fa, L as va, M as _a, N as ha, O as Ye, P as Be, Q as ma, R as pa, S as ya, T as wa, U as Qe, V as Je, W as Xe, X as et, Y as ka, Z as ga } from "./index-DaiEgT_d.js";
4
+ const ba = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%2024.0%2024.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M2000,0%20L2000,4212%20L0,4212%20L0,0%20L2000,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-157.0%20-2549.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(145.0%202545.0)'%3e%3cg%20transform='translate(12.0%204.0)'%3e%3cg%20transform='translate(24.0%2024.0)%20rotate(90.0)%20scale(-1.0%201.0)'%3e%3cg%20transform='translate(17.5%209.5)%20rotate(90.00000000000001)'%3e%3cpath%20d='M0,0%20L5,5%20L0,10'%20stroke='currentColor'%20stroke-width='1.8'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Ca = { class: "chat-artifact-row__lead" }, Ta = { class: "chat-artifact-row__name" }, Aa = ["title"], xa = { class: "chat-artifact-row__meta" }, Ia = { class: "chat-artifact-row__cell chat-artifact-row__cell--kind" }, Fa = ["title"], Ma = { class: "chat-artifact-row__cell chat-artifact-row__cell--time" }, Sa = { class: "chat-artifact-row__cell chat-artifact-row__cell--size" }, La = /* @__PURE__ */ be({
5
+ name: "ChatArtifactFileRow",
6
+ __name: "ChatArtifactFileRow",
7
+ props: {
8
+ file: {},
9
+ selected: { type: Boolean },
10
+ actionsDisabled: { type: Boolean, default: !1 },
11
+ showOwner: { type: Boolean, default: !1 }
12
+ },
13
+ emits: ["toggle", "open", "action"],
14
+ setup(r, { emit: B }) {
15
+ const n = r, C = B, k = f(() => lt({ disabled: n.actionsDisabled })), { Menu: y } = Re({
16
+ items: k,
17
+ placement: rt,
18
+ width: it,
19
+ panelClass: ot,
20
+ submenuPanelClass: nt,
21
+ onItemClick: ({ id: p }) => {
22
+ if (p.split(":").at(-1) === "download") {
23
+ if (n.actionsDisabled) return;
24
+ n.file.url && ct(n.file.url, n.file.name);
25
+ return;
26
+ }
27
+ C("action", p);
28
+ }
29
+ }), u = f(
30
+ () => [n.file.kind, n.file.updatedLabel, n.file.sizeLabel].filter(Boolean).join(" · ")
31
+ );
32
+ return (p, v) => (i(), d("div", {
33
+ class: U(["chat-artifact-row", { "is-selected": r.selected, "has-owner": r.showOwner }]),
34
+ onClick: v[3] || (v[3] = (A) => C("toggle"))
35
+ }, [
36
+ s("span", Ca, [
37
+ M(Kt, {
38
+ class: "chat-artifact-row__check",
39
+ checked: r.selected,
40
+ label: r.selected ? "取消选择" : "选择文件",
41
+ onToggle: v[0] || (v[0] = (A) => C("toggle"))
42
+ }, null, 8, ["checked", "label"]),
43
+ M(Vt, {
44
+ ext: r.file.ext,
45
+ name: r.file.name
46
+ }, null, 8, ["ext", "name"])
47
+ ]),
48
+ s("span", Ta, [
49
+ s("button", {
50
+ class: "chat-artifact-row__title",
51
+ type: "button",
52
+ title: r.file.name,
53
+ onClick: v[1] || (v[1] = Ke((A) => C("open"), ["stop"]))
54
+ }, b(r.file.name), 9, Aa),
55
+ s("span", xa, b(u.value), 1)
56
+ ]),
57
+ s("span", Ia, b(r.file.kind), 1),
58
+ r.showOwner ? (i(), d("span", {
59
+ key: 0,
60
+ class: "chat-artifact-row__cell chat-artifact-row__cell--owner",
61
+ title: r.file.owner || ""
62
+ }, b(r.file.owner || "—"), 9, Fa)) : T("", !0),
63
+ s("span", Ma, b(r.file.updatedLabel), 1),
64
+ s("span", Sa, b(r.file.sizeLabel), 1),
65
+ M(m(y), null, {
66
+ default: se(() => [
67
+ M(ut, {
68
+ class: "chat-artifact-row__more",
69
+ "data-testid": "artifact-row-more",
70
+ loading: "lazy",
71
+ decoding: "async",
72
+ onClick: v[2] || (v[2] = Ke(() => {
73
+ }, ["stop"]))
74
+ })
75
+ ]),
76
+ _: 1
77
+ })
78
+ ], 2));
79
+ }
80
+ }), Ea = /* @__PURE__ */ Ce(La, [["__scopeId", "data-v-1c38f09e"]]), Pa = ["aria-label"], Ba = { class: "chat-artifact-preview__body" }, Ra = {
81
+ key: 3,
82
+ class: "chat-artifact-preview__empty"
83
+ }, $a = /* @__PURE__ */ be({
84
+ name: "ChatArtifactPreview",
85
+ __name: "ChatArtifactPreview",
86
+ props: {
87
+ file: {},
88
+ cloud: { default: void 0 },
89
+ actionsDisabled: { type: Boolean, default: !1 },
90
+ onlyofficeProfile: { default: "preview" }
91
+ },
92
+ emits: ["close", "action"],
93
+ setup(r, { emit: B }) {
94
+ const n = r, C = B, k = f(() => lt({ disabled: n.actionsDisabled })), { Menu: y } = Re({
95
+ items: k,
96
+ placement: rt,
97
+ width: it,
98
+ panelClass: ot,
99
+ submenuPanelClass: nt,
100
+ /* 弹框本体 z-index 3000,菜单面板必须盖在它之上。 */
101
+ zIndex: 3100,
102
+ onItemClick: ({ id: h }) => {
103
+ if (h.split(":").at(-1) === "download") {
104
+ D();
105
+ return;
106
+ }
107
+ C("action", h);
108
+ }
109
+ }), u = c(null), p = c(!0);
110
+ let v = 0;
111
+ async function A() {
112
+ const h = ++v;
113
+ if (u.value = null, n.file.url) {
114
+ u.value = { url: n.file.url, previewType: n.file.previewType }, p.value = !1;
115
+ return;
116
+ }
117
+ p.value = !0;
118
+ const j = await aa(n.cloud, n.file);
119
+ h === v && (u.value = j ?? null, p.value = !1);
120
+ }
121
+ const Z = f(() => ge(n.file, u.value ?? void 0)), w = f(() => {
122
+ var h;
123
+ return ((h = u.value) == null ? void 0 : h.url) ?? "";
124
+ }), Te = f(() => Zt(Z.value)), le = f(() => qt(Z.value)), q = c(""), Q = c(0), J = c(!1);
125
+ let ne;
126
+ function ve(h) {
127
+ q.value = h.text, Q.value = h.lines;
128
+ }
129
+ async function Ae() {
130
+ if (q.value) {
131
+ try {
132
+ await navigator.clipboard.writeText(q.value);
133
+ } catch {
134
+ return;
135
+ }
136
+ J.value = !0, clearTimeout(ne), ne = setTimeout(() => {
137
+ J.value = !1;
138
+ }, 1600);
139
+ }
140
+ }
141
+ const xe = f(
142
+ () => [
143
+ n.file.kind,
144
+ le.value && Q.value ? `${Q.value} 行` : "",
145
+ n.file.sizeLabel
146
+ ].filter(Boolean).join(" · ")
147
+ ), X = f(() => Wt(Te.value)), S = f(() => jt(n.file)), x = f(() => !!w.value && !X.value);
148
+ ue(
149
+ () => [n.file.id, n.file.url],
150
+ () => void A()
151
+ );
152
+ const W = c(), L = c();
153
+ let I = null;
154
+ const oe = Yt();
155
+ ue(
156
+ () => n.file.id,
157
+ () => {
158
+ Qt(oe), q.value = "", Q.value = 0, J.value = !1;
159
+ }
160
+ );
161
+ const $ = c(!1), E = c(!1);
162
+ let O = !1;
163
+ function F() {
164
+ O || (O = !0, $.value = !1);
165
+ }
166
+ function ie() {
167
+ O && C("close");
168
+ }
169
+ function D() {
170
+ var j;
171
+ const h = (j = u.value) == null ? void 0 : j.url;
172
+ h && ct(h, n.file.name);
173
+ }
174
+ function N() {
175
+ E.value = !E.value;
176
+ }
177
+ function _e(h) {
178
+ if (h.key === "Escape") {
179
+ if (E.value) {
180
+ E.value = !1;
181
+ return;
182
+ }
183
+ F();
184
+ }
185
+ }
186
+ return st(() => {
187
+ I = document.activeElement instanceof HTMLElement ? document.activeElement : null, $.value = !0, A(), Dt(() => {
188
+ var h;
189
+ return (h = L.value) == null ? void 0 : h.focusClose();
190
+ });
191
+ }), Nt(() => {
192
+ I == null || I.focus(), I = null, clearTimeout(ne);
193
+ }), (h, j) => (i(), P(Ht, { to: "body" }, [
194
+ M(Ut, {
195
+ name: "cap-drawer",
196
+ onAfterLeave: ie
197
+ }, {
198
+ default: se(() => [
199
+ $.value ? (i(), d("div", {
200
+ key: 0,
201
+ class: U(["chat-artifact-preview", { "is-expanded": E.value }]),
202
+ onKeydown: _e
203
+ }, [
204
+ s("div", {
205
+ class: "chat-artifact-preview__backdrop",
206
+ onClick: F
207
+ }),
208
+ s("section", {
209
+ ref_key: "panelRef",
210
+ ref: W,
211
+ class: "chat-artifact-preview__panel",
212
+ role: "dialog",
213
+ "aria-modal": "true",
214
+ "aria-label": `${r.file.name} 预览`
215
+ }, [
216
+ M(Jt, {
217
+ ref_key: "headerRef",
218
+ ref: L,
219
+ class: "chat-artifact-preview__header",
220
+ name: r.file.name,
221
+ ext: r.file.ext,
222
+ meta: xe.value,
223
+ chrome: m(oe),
224
+ "show-download": !!w.value,
225
+ fullscreen: E.value,
226
+ "show-copy": le.value && !!q.value,
227
+ copied: J.value,
228
+ "show-fullscreen": "",
229
+ onDownload: D,
230
+ onCopy: Ae,
231
+ onFullscreen: N,
232
+ onClose: F
233
+ }, {
234
+ actions: se(() => [
235
+ M(m(y), null, {
236
+ default: se(() => [
237
+ M(ut, {
238
+ class: "chat-artifact-preview__more",
239
+ loading: "eager",
240
+ decoding: "async"
241
+ })
242
+ ]),
243
+ _: 1
244
+ })
245
+ ]),
246
+ _: 1
247
+ }, 8, ["name", "ext", "meta", "chrome", "show-download", "fullscreen", "show-copy", "copied"]),
248
+ s("div", Ba, [
249
+ p.value ? (i(), P(Xt, {
250
+ key: 0,
251
+ label: "正在加载文件"
252
+ })) : x.value && le.value ? (i(), P(ea, {
253
+ key: 1,
254
+ src: w.value,
255
+ onLoaded: ve
256
+ }, null, 8, ["src"])) : x.value ? (i(), P(ta, {
257
+ key: 2,
258
+ class: "chat-artifact-preview__viewer",
259
+ resource: Z.value,
260
+ "onlyoffice-profile": r.onlyofficeProfile,
261
+ "screenshot-ask": !1,
262
+ "hide-close": "",
263
+ "hide-download": "",
264
+ "hide-fullscreen": "",
265
+ "hide-sidebar": "",
266
+ "hide-image-controls": ""
267
+ }, null, 8, ["resource", "onlyoffice-profile"])) : (i(), d("div", Ra, [
268
+ X.value ? (i(), P(Ze, {
269
+ key: 0,
270
+ ext: r.file.ext,
271
+ name: r.file.name,
272
+ description: S.value,
273
+ download: !!w.value,
274
+ "secondary-label": w.value ? void 0 : "返回列表",
275
+ onDownload: D,
276
+ onSecondary: F
277
+ }, null, 8, ["ext", "name", "description", "download", "secondary-label"])) : (i(), P(Ze, {
278
+ key: 1,
279
+ title: "暂时无法预览",
280
+ description: "未能获取该文件的预览地址,可稍后重试,或返回列表用其他方式打开。",
281
+ "secondary-label": "返回列表",
282
+ onSecondary: F
283
+ }))
284
+ ]))
285
+ ])
286
+ ], 8, Pa)
287
+ ], 34)) : T("", !0)
288
+ ]),
289
+ _: 1
290
+ })
291
+ ]));
292
+ }
293
+ }), Da = /* @__PURE__ */ Ce($a, [["__scopeId", "data-v-97adc449"]]), Na = {
294
+ class: "art-skeleton",
295
+ "aria-hidden": "true"
296
+ }, Ha = {
297
+ key: 0,
298
+ class: "art-skeleton__group"
299
+ }, Ua = { class: "art-skeleton__task" }, Oa = { class: "art-skeleton__name" }, za = /* @__PURE__ */ be({
300
+ name: "ChatArtifactsSkeleton",
301
+ __name: "ChatArtifactsSkeleton",
302
+ props: {
303
+ blocks: { default: 2 },
304
+ rows: { default: 2 },
305
+ groupHead: { type: Boolean, default: !1 }
306
+ },
307
+ setup(r) {
308
+ const B = ["42%", "54%", "34%", "48%"], n = ["58%", "44%", "66%", "50%"], C = (y) => B[y % B.length], k = (y) => n[y % n.length];
309
+ return (y, u) => (i(), d("div", Na, [
310
+ r.groupHead ? (i(), d("div", Ha, [...u[0] || (u[0] = [
311
+ s("span", { class: "mf-skeleton-row art-skeleton__chevron" }, null, -1),
312
+ s("span", { class: "mf-skeleton-row art-skeleton__group-name" }, null, -1),
313
+ s("span", { class: "mf-skeleton-row art-skeleton__group-count" }, null, -1)
314
+ ])])) : T("", !0),
315
+ (i(!0), d(de, null, fe(r.blocks, (p) => (i(), d("div", {
316
+ key: p,
317
+ class: "art-skeleton__block"
318
+ }, [
319
+ s("div", Ua, [
320
+ u[1] || (u[1] = s("span", { class: "mf-skeleton-row art-skeleton__spark" }, null, -1)),
321
+ s("span", {
322
+ class: "mf-skeleton-row art-skeleton__task-name",
323
+ style: ce({ width: B[(p + 1) % B.length] })
324
+ }, null, 4)
325
+ ]),
326
+ (i(!0), d(de, null, fe(r.rows, (v) => (i(), d("div", {
327
+ key: v,
328
+ class: "art-skeleton__row"
329
+ }, [
330
+ u[3] || (u[3] = s("span", { class: "art-skeleton__lead" }, [
331
+ s("span", { class: "mf-skeleton-row art-skeleton__icon" })
332
+ ], -1)),
333
+ s("span", Oa, [
334
+ s("span", {
335
+ class: "mf-skeleton-row art-skeleton__bar art-skeleton__bar--name",
336
+ style: ce({ width: C(v - 1) })
337
+ }, null, 4),
338
+ u[2] || (u[2] = s("span", { class: "mf-skeleton-row art-skeleton__bar art-skeleton__bar--meta" }, null, -1))
339
+ ]),
340
+ s("span", {
341
+ class: "mf-skeleton-row art-skeleton__cell art-skeleton__cell--kind",
342
+ style: ce({ width: k(v) })
343
+ }, null, 4),
344
+ s("span", {
345
+ class: "mf-skeleton-row art-skeleton__cell art-skeleton__cell--time",
346
+ style: ce({ width: k(v + 1) })
347
+ }, null, 4),
348
+ u[4] || (u[4] = s("span", { class: "mf-skeleton-row art-skeleton__cell art-skeleton__cell--size" }, null, -1)),
349
+ u[5] || (u[5] = s("span", { class: "art-skeleton__cell--action" }, null, -1))
350
+ ]))), 128))
351
+ ]))), 128))
352
+ ]));
353
+ }
354
+ }), tt = /* @__PURE__ */ Ce(za, [["__scopeId", "data-v-6ca80140"]]), Ga = { class: "chat-my-files-artifacts__frame" }, Ka = { class: "chat-my-files-artifacts__toolbar" }, Va = ["src"], Za = {
355
+ class: "chat-my-files-artifacts__filter",
356
+ type: "button"
357
+ }, qa = ["src"], Wa = { class: "chat-my-files-artifacts__search" }, ja = ["src"], Ya = {
358
+ key: 0,
359
+ class: "chat-my-files-artifacts__progress",
360
+ role: "status",
361
+ "aria-label": "正在加载 AI 产物"
362
+ }, Qa = { class: "chat-my-files-artifacts__table" }, Ja = {
363
+ key: 0,
364
+ class: "chat-my-files-artifacts__col chat-my-files-artifacts__col--owner"
365
+ }, Xa = {
366
+ key: 0,
367
+ class: "chat-my-files-artifacts__skeleton",
368
+ "data-testid": "artifact-first-load",
369
+ "aria-busy": "true"
370
+ }, es = ["aria-expanded", "onClick"], ts = ["src"], as = { class: "chat-my-files-artifacts__group-name" }, ss = { class: "chat-my-files-artifacts__group-count" }, ls = ["inert"], ns = { class: "chat-my-files-artifacts__group-clip" }, os = { class: "chat-my-files-artifacts__task-head" }, is = ["src"], rs = ["title"], cs = ["disabled", "aria-busy", "onClick"], us = { class: "chat-my-files-artifacts__sentinel-sheet" }, ds = {
371
+ class: "chat-my-files-artifacts__sr-only",
372
+ role: "status"
373
+ }, fs = ["disabled", "aria-busy"], vs = {
374
+ key: 1,
375
+ class: "chat-my-files-artifacts__bar"
376
+ }, _s = { class: "chat-my-files-artifacts__bar-count" }, ae = 6, hs = 3, at = 400, ms = /* @__PURE__ */ be({
377
+ name: "ChatMyFilesArtifacts",
378
+ __name: "ChatMyFilesArtifacts",
379
+ props: {
380
+ cloud: {},
381
+ actionsDisabled: { type: Boolean }
382
+ },
383
+ emits: ["back", "add-to-task"],
384
+ setup(r, { emit: B }) {
385
+ const n = r, C = B, k = c(""), y = c("全部类型"), u = c("updatedAt"), p = c("desc"), v = c(/* @__PURE__ */ new Set()), A = c(/* @__PURE__ */ new Set()), Z = sa();
386
+ function w(e, t = "info") {
387
+ Z == null || Z(e, t);
388
+ }
389
+ const Te = la(), {
390
+ source: le,
391
+ open: q,
392
+ hint: Q,
393
+ busy: J,
394
+ title: ne,
395
+ request: ve,
396
+ confirm: Ae,
397
+ close: xe
398
+ } = na({
399
+ getCloud: () => n.cloud,
400
+ flash: w,
401
+ sources: () => Te.transferSources.value,
402
+ /* 与「我的资料」页共用同一块任务面板(模块级单例队列)。 */
403
+ board: oa()
404
+ }), X = ia(), S = c([]), x = c(!1), W = c(""), L = c(!1), I = c(/* @__PURE__ */ new Set()), oe = c(1), $ = c(!1), E = c(!1), O = c({});
405
+ let F = 0, ie = 0;
406
+ const D = /* @__PURE__ */ new Map(), N = f(() => x.value && S.value.length === 0);
407
+ function _e() {
408
+ return n.cloud ? S.value : _a;
409
+ }
410
+ function h(e, t) {
411
+ const a = new Set(I.value);
412
+ t ? a.add(e) : a.delete(e), I.value = a;
413
+ }
414
+ function j(e) {
415
+ const t = (e.productCount ?? 0) - e.files.length;
416
+ return t > 0 ? `还有 ${t} 个` : "加载更多";
417
+ }
418
+ async function ee(e = "replace") {
419
+ const t = n.cloud;
420
+ if (!t || e === "append" && x.value) return;
421
+ const a = ++F, l = e === "append" ? oe.value + 1 : 1;
422
+ e === "replace" && G && (R.value = ae, me.clear()), x.value = !0, W.value = "", L.value = e === "append";
423
+ try {
424
+ const o = await ha(t, {
425
+ page: l,
426
+ pageSize: Ye,
427
+ search: k.value.trim()
428
+ });
429
+ if (a !== F) return;
430
+ const _ = Be(S.value);
431
+ S.value = e === "append" ? ma(S.value, o) : o;
432
+ const g = Be(S.value) - _;
433
+ oe.value = l, e === "replace" && (O.value = {}), E.value = !1;
434
+ const K = Be(o) >= Ye;
435
+ $.value = K && (e === "replace" || g > 0);
436
+ } catch (o) {
437
+ if (a !== F) return;
438
+ const _ = o instanceof Error ? o.message : "产物加载失败";
439
+ S.value.length ? e === "append" && (E.value = !0) : W.value = _, w(_, "error");
440
+ } finally {
441
+ a === F && (x.value = !1, L.value = !1, Se());
442
+ }
443
+ }
444
+ function dt() {
445
+ ee("replace");
446
+ }
447
+ async function ft(e) {
448
+ const t = n.cloud;
449
+ if (!t || x.value || I.value.has(e)) return;
450
+ const a = (D.get(e) ?? 0) + 1;
451
+ D.set(e, a);
452
+ const l = F;
453
+ h(e, !0);
454
+ try {
455
+ let o = O.value[e] ?? 1, _ = 0;
456
+ for (; _ < 5; ) {
457
+ _ += 1;
458
+ const g = await pa(t, e, o, ya);
459
+ if (D.get(e) !== a || F !== l) return;
460
+ const K = wa(S.value, e, g);
461
+ if (S.value = K.groups, o += 1, O.value = { ...O.value, [e]: o }, K.added > 0 || !K.hasMore) break;
462
+ }
463
+ } catch (o) {
464
+ if (D.get(e) !== a) return;
465
+ w(o instanceof Error ? o.message : "产物加载失败", "error");
466
+ } finally {
467
+ D.get(e) === a && h(e, !1);
468
+ }
469
+ }
470
+ const vt = ra(qe), { Menu: _t } = Re({
471
+ items: vt,
472
+ placement: "bottom-start",
473
+ width: 140,
474
+ selectedId: y,
475
+ panelClass: ca,
476
+ onItemClick: ({ id: e }) => {
477
+ ht(e) && (y.value = e);
478
+ }
479
+ });
480
+ function ht(e) {
481
+ return qe.includes(e);
482
+ }
483
+ function mt(e) {
484
+ if (!u.value) return e;
485
+ const t = p.value === "asc" ? 1 : -1;
486
+ return [...e].sort((a, l) => u.value === "name" ? a.name.localeCompare(l.name, "zh") * t : (a.updatedAt - l.updatedAt) * t);
487
+ }
488
+ const z = f(() => {
489
+ const e = n.cloud ? "" : k.value.trim().toLowerCase();
490
+ return _e().map((t) => {
491
+ const a = !!e && t.name.toLowerCase().includes(e), l = t.sessions.map((o) => {
492
+ const _ = !!e && o.title.toLowerCase().includes(e), g = mt(
493
+ o.files.filter((K) => {
494
+ const Rt = y.value === "全部类型" || K.kind === y.value, $t = !e || K.name.toLowerCase().includes(e);
495
+ return Rt && (a || _ || $t);
496
+ })
497
+ );
498
+ return { ...o, files: g };
499
+ }).filter((o) => o.files.length > 0 || o.hasMore === !0);
500
+ return {
501
+ ...t,
502
+ taskCount: t.taskCount ?? t.sessions.length,
503
+ sessions: l
504
+ };
505
+ }).filter((t) => t.sessions.length > 0);
506
+ }), pt = f(
507
+ () => z.value.flatMap(
508
+ (e) => e.sessions.flatMap((t) => t.files.map((a) => V(t.id, a.id)))
509
+ )
510
+ ), he = f(
511
+ () => pt.value.filter((e) => A.value.has(e)).length
512
+ ), me = /* @__PURE__ */ new Map(), G = typeof IntersectionObserver < "u", pe = c(null), ye = c(null), R = c(G ? ae : Number.POSITIVE_INFINITY);
513
+ let H = null, Ie = !1, we = 0;
514
+ const $e = f(
515
+ () => z.value.reduce((e, t) => e + t.sessions.length, 0)
516
+ ), Y = f(() => $e.value > R.value), De = f(() => {
517
+ if (!Y.value) return z.value;
518
+ let e = R.value;
519
+ const t = [];
520
+ for (const a of z.value) {
521
+ if (e <= 0) break;
522
+ const l = a.sessions.slice(0, e);
523
+ e -= l.length, t.push({ ...a, sessions: l });
524
+ }
525
+ return t;
526
+ });
527
+ function Ne() {
528
+ !n.cloud || !G || !$.value || x.value || N.value || $e.value - R.value > hs || ee("append");
529
+ }
530
+ let ke = 1;
531
+ function yt() {
532
+ if (ke > 0)
533
+ return ke -= 1, !0;
534
+ const e = pe.value, t = ye.value;
535
+ if (!e || !t) return !1;
536
+ const a = t.getBoundingClientRect(), l = e.getBoundingClientRect();
537
+ return a.top < l.bottom && a.bottom > l.top;
538
+ }
539
+ function He() {
540
+ if (G) {
541
+ if (Y.value) {
542
+ R.value += ae;
543
+ return;
544
+ }
545
+ $.value && !x.value && !N.value && yt() && ee("append");
546
+ }
547
+ }
548
+ function wt() {
549
+ if (Y.value) {
550
+ R.value += ae;
551
+ return;
552
+ }
553
+ ee("append");
554
+ }
555
+ const kt = f(() => !G || E.value), Fe = f(() => Y.value || $.value);
556
+ let Me = 0;
557
+ function Se() {
558
+ !G || Ie || (Ie = !0, window.requestAnimationFrame(() => {
559
+ if (Ie = !1, performance.now() < Me) return;
560
+ const e = ye.value, t = pe.value;
561
+ if (!e || !t) return;
562
+ const a = e.getBoundingClientRect(), l = t.getBoundingClientRect();
563
+ a.top < l.bottom + 240 && a.bottom > l.top - 240 && He();
564
+ }));
565
+ }
566
+ function Ue() {
567
+ window.clearTimeout(we), we = window.setTimeout(() => {
568
+ we = 0, Fe.value && (ke = 1, Se());
569
+ }, at + 40);
570
+ }
571
+ function Oe() {
572
+ if (!G) return;
573
+ H == null || H.disconnect();
574
+ const e = ye.value;
575
+ e && (H = new IntersectionObserver(
576
+ (t) => {
577
+ if (t.some((a) => a.isIntersecting)) {
578
+ if (performance.now() < Me) {
579
+ Ue();
580
+ return;
581
+ }
582
+ ke = 1, He(), Ne();
583
+ }
584
+ },
585
+ { root: pe.value, rootMargin: "240px 0px" }
586
+ ), H.observe(e));
587
+ }
588
+ ue([k, y, u, p], () => {
589
+ G && (R.value = ae);
590
+ }), ue(
591
+ [Y, $, R],
592
+ () => {
593
+ Oe(), Se(), Ne();
594
+ },
595
+ { flush: "post" }
596
+ );
597
+ const re = f(() => !!k.value.trim() || y.value !== "全部类型"), gt = f(() => re.value ? "没有匹配的文件" : "暂无 AI 产物"), bt = f(
598
+ () => re.value ? "换个关键词或切换到「全部类型」试试,也可以清空筛选查看全部产物" : "对话里生成的文件会收在这里,可以再加回任务继续使用"
599
+ ), Ct = f(() => re.value ? "清空筛选" : "返回我的文件"), Tt = f(
600
+ () => !W.value && (N.value || z.value.length > 0)
601
+ ), Le = f(
602
+ () => z.value.some(
603
+ (e) => e.sessions.some((t) => t.files.some((a) => !!a.owner))
604
+ )
605
+ );
606
+ function At() {
607
+ if (!re.value) {
608
+ C("back");
609
+ return;
610
+ }
611
+ k.value = "", y.value = "全部类型";
612
+ }
613
+ function ze(e) {
614
+ if (u.value !== e) {
615
+ u.value = e, p.value = e === "name" ? "asc" : "desc";
616
+ return;
617
+ }
618
+ p.value = p.value === "asc" ? "desc" : "asc";
619
+ }
620
+ function Ge(e) {
621
+ return u.value !== e ? "idle" : p.value === "asc" ? "asc" : "desc";
622
+ }
623
+ function xt(e) {
624
+ var o;
625
+ Me = performance.now() + at;
626
+ const t = new Set(v.value), a = !t.has(e);
627
+ a ? t.add(e) : t.delete(e);
628
+ const l = a ? ((o = De.value.find((_) => _.id === e)) == null ? void 0 : o.sessions.length) ?? 0 : me.get(e) ?? 0;
629
+ a ? me.set(e, l) : me.delete(e), R.value = Math.max(ae, R.value + (a ? l : -l)), v.value = t, Ue();
630
+ }
631
+ function It(e) {
632
+ const t = new Set(A.value);
633
+ t.has(e) ? t.delete(e) : t.add(e), A.value = t;
634
+ }
635
+ const te = c(null), Ft = c("");
636
+ function Mt(e, t) {
637
+ Ft.value = e, te.value = t;
638
+ }
639
+ function St(e) {
640
+ const t = Qe(e);
641
+ if (!t) return;
642
+ const a = te.value;
643
+ if (t === "add-task") {
644
+ if (n.actionsDisabled === !0) return;
645
+ a && Pe([ge(a)]);
646
+ return;
647
+ }
648
+ const l = et(t);
649
+ if (l) {
650
+ if (n.actionsDisabled === !0 || !a) return;
651
+ ve(l, [Je(a)]);
652
+ return;
653
+ }
654
+ const o = Xe(e, {
655
+ unavailable: !!n.cloud,
656
+ disabled: n.actionsDisabled === !0
657
+ });
658
+ if (o) {
659
+ if (o.kind === "unavailable") {
660
+ w(o.notice, "warning");
661
+ return;
662
+ }
663
+ o.kind === "notice" && w(o.notice, "warning");
664
+ }
665
+ }
666
+ function Ee() {
667
+ A.value = /* @__PURE__ */ new Set();
668
+ }
669
+ function Lt(e) {
670
+ for (const t of _e())
671
+ for (const a of t.sessions) {
672
+ const l = a.files.findIndex((o) => V(a.id, o.id) === e);
673
+ if (l >= 0) return { groupId: t.id, session: a, index: l };
674
+ }
675
+ }
676
+ function Et(e, t) {
677
+ const a = Lt(e);
678
+ if (!a) return;
679
+ const l = Qe(t);
680
+ if (!l) return;
681
+ const o = a.session.files[a.index];
682
+ if (!o) return;
683
+ if (l === "add-task") {
684
+ if (n.actionsDisabled === !0) return;
685
+ Pe([ge(o)]);
686
+ return;
687
+ }
688
+ const _ = et(l);
689
+ if (_) {
690
+ if (n.actionsDisabled === !0) return;
691
+ ve(_, [Je(o, a.session)]);
692
+ return;
693
+ }
694
+ const g = Xe(t, {
695
+ unavailable: !!n.cloud,
696
+ disabled: n.actionsDisabled === !0
697
+ });
698
+ if (g) {
699
+ if (g.kind === "unavailable") {
700
+ w(g.notice, "warning");
701
+ return;
702
+ }
703
+ g.kind === "notice" && w(g.notice, "warning");
704
+ }
705
+ }
706
+ function Pe(e) {
707
+ if (e.length !== 0) {
708
+ if (X) {
709
+ X(e);
710
+ return;
711
+ }
712
+ C("add-to-task", e), w(ka["add-task"], "success");
713
+ }
714
+ }
715
+ function Pt() {
716
+ return z.value.flatMap(
717
+ (e) => e.sessions.flatMap(
718
+ (t) => t.files.filter((a) => A.value.has(V(t.id, a.id))).map((a) => ge(a))
719
+ )
720
+ );
721
+ }
722
+ function Bt() {
723
+ if (n.actionsDisabled === !0) return;
724
+ const e = Pt();
725
+ if (e.length !== 0) {
726
+ if (!X) {
727
+ if (n.cloud) {
728
+ w(ga, "warning");
729
+ return;
730
+ }
731
+ w(`已添加 ${he.value} 个文件到任务`, "success"), Ee();
732
+ return;
733
+ }
734
+ Pe(e), Ee();
735
+ }
736
+ }
737
+ return ue(k, () => {
738
+ n.cloud && (window.clearTimeout(ie), ie = window.setTimeout(() => {
739
+ ee("replace");
740
+ }, 300));
741
+ }), st(() => {
742
+ Oe(), n.cloud && ee();
743
+ }), Ot(() => {
744
+ H == null || H.disconnect(), H = null, window.clearTimeout(ie), window.clearTimeout(we);
745
+ }), (e, t) => (i(), d("div", {
746
+ class: U(["chat-my-files-artifacts", { "has-selection": he.value > 0 }])
747
+ }, [
748
+ s("div", Ga, [
749
+ s("header", Ka, [
750
+ s("button", {
751
+ class: "chat-my-files-artifacts__back",
752
+ type: "button",
753
+ onClick: t[0] || (t[0] = (a) => C("back"))
754
+ }, [
755
+ s("img", {
756
+ loading: "eager",
757
+ decoding: "async",
758
+ class: "chat-my-files-artifacts__back-glyph",
759
+ src: m(ba),
760
+ alt: ""
761
+ }, null, 8, Va),
762
+ t[5] || (t[5] = s("span", null, "返回我的文件", -1))
763
+ ]),
764
+ M(m(_t), null, {
765
+ "item-icon": se(({ item: a }) => [
766
+ M(ua, {
767
+ kind: a.id
768
+ }, null, 8, ["kind"])
769
+ ]),
770
+ default: se(() => [
771
+ s("button", Za, [
772
+ s("span", null, b(y.value), 1),
773
+ s("img", {
774
+ loading: "eager",
775
+ decoding: "async",
776
+ class: "chat-my-files-artifacts__filter-glyph",
777
+ src: m(We),
778
+ alt: ""
779
+ }, null, 8, qa)
780
+ ])
781
+ ]),
782
+ _: 1
783
+ }),
784
+ s("label", Wa, [
785
+ s("img", {
786
+ loading: "eager",
787
+ decoding: "async",
788
+ class: "chat-my-files-artifacts__search-glyph",
789
+ src: m(da),
790
+ alt: ""
791
+ }, null, 8, ja),
792
+ zt(s("input", {
793
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => k.value = a),
794
+ type: "search",
795
+ placeholder: "搜索文件、任务或工作空间",
796
+ title: "搜索文件、任务或工作空间"
797
+ }, null, 512), [
798
+ [Gt, k.value]
799
+ ])
800
+ ])
801
+ ]),
802
+ x.value && !L.value && !N.value ? (i(), d("div", Ya)) : T("", !0),
803
+ s("div", Qa, [
804
+ Tt.value ? (i(), d("div", {
805
+ key: 0,
806
+ class: U(["chat-my-files-artifacts__head", { "has-owner": Le.value }])
807
+ }, [
808
+ s("button", {
809
+ class: "chat-my-files-artifacts__sort chat-my-files-artifacts__sort--name",
810
+ type: "button",
811
+ onClick: t[2] || (t[2] = (a) => ze("name"))
812
+ }, [
813
+ t[7] || (t[7] = Ve(" 名称 ", -1)),
814
+ (i(), d("svg", {
815
+ class: U(["chat-my-files-artifacts__sort-glyph", `is-${Ge("name")}`]),
816
+ viewBox: "0 0 20 20",
817
+ "aria-hidden": "true"
818
+ }, [...t[6] || (t[6] = [
819
+ s("path", {
820
+ class: "up",
821
+ d: "M10 3.5 13.5 8H6.5Z"
822
+ }, null, -1),
823
+ s("path", {
824
+ class: "down",
825
+ d: "M10 16.5 6.5 12h7Z"
826
+ }, null, -1)
827
+ ])], 2))
828
+ ]),
829
+ t[10] || (t[10] = s("span", { class: "chat-my-files-artifacts__col chat-my-files-artifacts__col--kind" }, "类型", -1)),
830
+ Le.value ? (i(), d("span", Ja, "更新人")) : T("", !0),
831
+ s("button", {
832
+ class: "chat-my-files-artifacts__sort chat-my-files-artifacts__sort--time",
833
+ type: "button",
834
+ onClick: t[3] || (t[3] = (a) => ze("updatedAt"))
835
+ }, [
836
+ t[9] || (t[9] = Ve(" 更新时间 ", -1)),
837
+ (i(), d("svg", {
838
+ class: U(["chat-my-files-artifacts__sort-glyph", `is-${Ge("updatedAt")}`]),
839
+ viewBox: "0 0 20 20",
840
+ "aria-hidden": "true"
841
+ }, [...t[8] || (t[8] = [
842
+ s("path", {
843
+ class: "up",
844
+ d: "M10 3.5 13.5 8H6.5Z"
845
+ }, null, -1),
846
+ s("path", {
847
+ class: "down",
848
+ d: "M10 16.5 6.5 12h7Z"
849
+ }, null, -1)
850
+ ])], 2))
851
+ ]),
852
+ t[11] || (t[11] = s("span", { class: "chat-my-files-artifacts__col chat-my-files-artifacts__col--size" }, "大小", -1)),
853
+ t[12] || (t[12] = s("span", { class: "chat-my-files-artifacts__col chat-my-files-artifacts__col--action" }, "操作", -1))
854
+ ], 2)) : T("", !0),
855
+ s("div", {
856
+ ref_key: "bodyRef",
857
+ ref: pe,
858
+ class: "chat-my-files-artifacts__body"
859
+ }, [
860
+ N.value ? (i(), d("div", Xa, [
861
+ M(tt, {
862
+ "group-head": "",
863
+ blocks: 2,
864
+ rows: 3
865
+ }),
866
+ t[13] || (t[13] = s("p", {
867
+ class: "chat-my-files-artifacts__sr-only",
868
+ role: "status"
869
+ }, "正在加载 AI 产物", -1))
870
+ ])) : W.value ? (i(), P(je, {
871
+ key: 1,
872
+ class: "chat-my-files-artifacts__state",
873
+ tone: "error",
874
+ variant: "error",
875
+ title: "产物加载失败",
876
+ description: W.value,
877
+ "action-text": "重新加载",
878
+ onAction: dt
879
+ }, null, 8, ["description"])) : z.value.length ? T("", !0) : (i(), P(je, {
880
+ key: 2,
881
+ class: "chat-my-files-artifacts__state",
882
+ variant: re.value ? "search" : "files",
883
+ title: gt.value,
884
+ description: bt.value,
885
+ "action-text": Ct.value,
886
+ onAction: At
887
+ }, null, 8, ["variant", "title", "description", "action-text"])),
888
+ (i(!0), d(de, null, fe(De.value, (a) => (i(), d("section", {
889
+ key: a.id,
890
+ class: "chat-my-files-artifacts__group"
891
+ }, [
892
+ s("button", {
893
+ class: "chat-my-files-artifacts__group-head",
894
+ type: "button",
895
+ "aria-expanded": !v.value.has(a.id),
896
+ onClick: (l) => xt(a.id)
897
+ }, [
898
+ s("img", {
899
+ loading: "lazy",
900
+ decoding: "async",
901
+ class: U(["chat-my-files-artifacts__chevron", { "is-open": !v.value.has(a.id) }]),
902
+ src: m(We),
903
+ alt: ""
904
+ }, null, 10, ts),
905
+ s("span", as, b(a.name), 1),
906
+ s("em", ss, b(a.taskCount) + "个任务", 1)
907
+ ], 8, es),
908
+ s("div", {
909
+ class: U(["chat-my-files-artifacts__group-body", { "is-collapsed": v.value.has(a.id) }]),
910
+ inert: v.value.has(a.id) || void 0
911
+ }, [
912
+ s("div", ns, [
913
+ (i(!0), d(de, null, fe(a.sessions, (l, o) => (i(), d("div", {
914
+ key: l.id,
915
+ class: "chat-my-files-artifacts__task",
916
+ style: ce({ "--mf-stagger": o })
917
+ }, [
918
+ s("div", os, [
919
+ s("img", {
920
+ loading: "lazy",
921
+ decoding: "async",
922
+ class: "chat-my-files-artifacts__spark",
923
+ src: m(fa),
924
+ alt: ""
925
+ }, null, 8, is),
926
+ s("span", {
927
+ title: l.title
928
+ }, b(l.title), 9, rs)
929
+ ]),
930
+ (i(!0), d(de, null, fe(l.files, (_) => (i(), P(Ea, {
931
+ key: m(V)(l.id, _.id),
932
+ file: _,
933
+ selected: A.value.has(m(V)(l.id, _.id)),
934
+ "show-owner": Le.value,
935
+ "actions-disabled": r.actionsDisabled,
936
+ onToggle: (g) => It(m(V)(l.id, _.id)),
937
+ onOpen: (g) => Mt(m(V)(l.id, _.id), _),
938
+ onAction: (g) => Et(m(V)(l.id, _.id), g)
939
+ }, null, 8, ["file", "selected", "show-owner", "actions-disabled", "onToggle", "onOpen", "onAction"]))), 128)),
940
+ r.cloud && l.hasMore ? (i(), d("button", {
941
+ key: 0,
942
+ class: "chat-my-files-artifacts__more",
943
+ type: "button",
944
+ "data-testid": "artifact-file-more",
945
+ disabled: I.value.has(l.id),
946
+ "aria-busy": I.value.has(l.id),
947
+ onClick: (_) => ft(l.id)
948
+ }, b(I.value.has(l.id) ? "加载中" : j(l)), 9, cs)) : T("", !0)
949
+ ], 4))), 128))
950
+ ])
951
+ ], 10, ls)
952
+ ]))), 128)),
953
+ r.cloud && Fe.value && !N.value ? (i(), d("div", {
954
+ key: 3,
955
+ ref_key: "sentinelRef",
956
+ ref: ye,
957
+ class: U(["chat-my-files-artifacts__sentinel", { "is-loading": L.value }])
958
+ }, [
959
+ s("div", us, [
960
+ L.value ? (i(), P(tt, {
961
+ key: 0,
962
+ blocks: 1,
963
+ rows: 1
964
+ })) : T("", !0)
965
+ ])
966
+ ], 2)) : T("", !0),
967
+ s("p", ds, b(L.value ? "正在加载更多 AI 产物" : ""), 1),
968
+ r.cloud && Fe.value && !N.value && kt.value ? (i(), d("button", {
969
+ key: 4,
970
+ class: "chat-my-files-artifacts__sessions-more",
971
+ type: "button",
972
+ "data-testid": "artifact-session-more",
973
+ disabled: x.value && !Y.value,
974
+ "aria-busy": L.value,
975
+ onClick: wt
976
+ }, b(L.value ? "加载中" : E.value ? "重新加载" : Y.value ? "显示更多任务" : "加载更多会话"), 9, fs)) : T("", !0)
977
+ ], 512)
978
+ ]),
979
+ he.value ? (i(), d("footer", vs, [
980
+ s("span", _s, "已选 " + b(he.value) + " 个文件", 1),
981
+ s("button", {
982
+ class: "chat-my-files-artifacts__bar-clear",
983
+ type: "button",
984
+ onClick: Ee
985
+ }, " 取消选择 "),
986
+ s("button", {
987
+ class: "chat-my-files-artifacts__bar-action",
988
+ type: "button",
989
+ onClick: Bt
990
+ }, [...t[14] || (t[14] = [
991
+ s("svg", {
992
+ viewBox: "0 0 24 24",
993
+ "aria-hidden": "true"
994
+ }, [
995
+ s("path", {
996
+ d: "M12 4v16M4 12h16",
997
+ fill: "none",
998
+ stroke: "currentColor",
999
+ "stroke-width": "1.8",
1000
+ "stroke-linecap": "round"
1001
+ })
1002
+ ], -1),
1003
+ s("span", null, "添加到任务", -1)
1004
+ ])])
1005
+ ])) : T("", !0),
1006
+ te.value ? (i(), P(Da, {
1007
+ key: te.value.id,
1008
+ file: te.value,
1009
+ cloud: r.cloud,
1010
+ "actions-disabled": r.actionsDisabled,
1011
+ onClose: t[4] || (t[4] = (a) => te.value = null),
1012
+ onAction: St
1013
+ }, null, 8, ["file", "cloud", "actions-disabled"])) : T("", !0),
1014
+ M(va, {
1015
+ source: m(le),
1016
+ open: m(q),
1017
+ mode: "target",
1018
+ title: m(ne),
1019
+ hint: m(Q),
1020
+ busy: m(J),
1021
+ "onUpdate:open": m(xe),
1022
+ onConfirm: m(Ae)
1023
+ }, null, 8, ["source", "open", "title", "hint", "busy", "onUpdate:open", "onConfirm"])
1024
+ ])
1025
+ ], 2));
1026
+ }
1027
+ }), ks = /* @__PURE__ */ Ce(ms, [["__scopeId", "data-v-8dc1c11f"]]);
1028
+ export {
1029
+ ks as default
1030
+ };