{"version":3,"file":"index.mjs","sources":["../../pro-components/chat/index.ts"],"sourcesContent":["import { App } from 'vue';\n\nimport _ChatList from './chat-list';\nimport _ChatItem from './chat-item';\nimport _ChatInput from './chat-input';\nimport _ChatContent from './chat-content';\nimport _ChatReasoning from './chat-reasoning';\nimport _ChatLoading from './chat-loading';\n\nimport _ChatActionbar from './chat-actionbar';\nimport _ChatSender from './chat-sender';\nimport _Attachments from './attachments';\nimport _ChatThinking from './chat-thinking';\nimport _Chatbot from './chatbot';\nimport _ChatMarkdown from './chat-markdown';\nimport { ChatSearchContentComponent, ChatSuggestionContentComponent } from './chatbot';\n\nimport _ChatMessage from './chat-message';\nimport { withInstall } from '@tdesign/shared-utils';\nimport { ToolCallRenderer } from './chat-engine/components/toolcall';\nexport * from './chat-engine';\n\nimport {\n  TdChatProps,\n  TdChatItemProps,\n  TdChatContentProps,\n  TdChatActionProps,\n  TdChatInputProps,\n  TdChatSenderProps,\n  TdChatReasoningProps,\n  TdChatLoadingProps,\n} from './type';\n\nimport './style';\nimport 'tdesign-web-components/lib/style/index.css';\nimport 'tdesign-web-components/lib/chat-message/content/search-content';\nimport 'tdesign-web-components/lib/chat-message/content/suggestion-content';\nimport { TdMarkdownEngine } from 'tdesign-web-components/lib/chat-message';\n\nexport * from './type';\n\nexport type ChatProps = TdChatProps;\nexport type ChatItemProps = TdChatItemProps;\nexport type ChatContentProps = TdChatContentProps;\nexport type ChatActionProps = TdChatActionProps;\nexport type ChatInputProps = TdChatInputProps;\nexport type ChatSenderProps = TdChatSenderProps;\nexport type ChatReasoningProps = TdChatReasoningProps;\nexport type ChatLoadingProps = TdChatLoadingProps;\n\nexport const ChatList = withInstall(_ChatList);\nexport const ChatSender = withInstall(_ChatSender);\nexport const ChatActionbar = withInstall(_ChatActionbar);\nexport const ChatLoading = withInstall(_ChatLoading);\nexport const Attachments = withInstall(_Attachments);\nexport const ChatThinking = withInstall(_ChatThinking, 't-chat-thinking');\nexport const Chatbot = withInstall(_Chatbot, 't-chatbot');\nexport const ChatMessage = withInstall(_ChatMessage, 't-chat-message');\nexport const ChatContent = withInstall(_ChatContent);\nexport const ChatSearchContent = withInstall(ChatSearchContentComponent, 't-chat-search-content');\n\nexport const ChatSuggestionContent = withInstall(ChatSuggestionContentComponent, 't-chat-suggestion-content');\n\nexport const ChatMarkdown = withInstall(_ChatMarkdown, 't-chat-markdown');\n\n// TODO：待下线的组件\nexport const Chat = withInstall(_ChatList); // 兼容历史版本，分别导出ChatList，Chat\nexport const ChatAction = withInstall(_ChatActionbar); // 兼容历史版本，分别导出ChatActionbar，ChatAction\nexport const ChatInput = withInstall(_ChatInput);\nexport const ChatReasoning = withInstall(_ChatReasoning);\nexport const ChatItem = withInstall(_ChatItem);\n\n// 导出 MarkdownEngine\nexport { TdMarkdownEngine as MarkdownEngine };\n\n// 导出 ToolCallRenderer\nexport { ToolCallRenderer };\n\nexport default {\n  install(app: App, config?: Record<string, unknown>) {\n    app.use(Chatbot, config);\n    app.use(ChatList, config);\n    app.use(ChatContent, config);\n    app.use(ChatMarkdown, config);\n    app.use(ChatActionbar, config);\n    app.use(ChatLoading, config);\n    app.use(ChatSender, config);\n    app.use(ChatThinking, config);\n    app.use(ChatMessage, config);\n    app.use(Attachments, config);\n    app.use(ChatSearchContent, config);\n    app.use(ChatSuggestionContent, config);\n    app.use(ChatInput, config);\n    app.use(ChatItem, config);\n    app.use(ChatReasoning, config);\n    app.component('TChat', Chat);\n    app.component('TChatAction', ChatAction);\n  },\n  version: typeof PKG_VERSION === 'undefined' ? '' : PKG_VERSION,\n};\n\nexport {\n  AGUIAdapter,\n  getMessageContentForCopy,\n  isAIMessage,\n  isToolCallContent,\n} from 'tdesign-web-components/lib/chat-engine';\n\nexport type {\n  SSEChunkData,\n  AIMessageContent,\n  ChatRequestParams,\n  ChatMessagesData,\n  ChatServiceConfig,\n} from 'tdesign-web-components/lib/chat-engine';\n"],"names":["ChatList","withInstall","_ChatList","ChatSender","_ChatSender","ChatActionbar","_ChatActionbar","ChatLoading","_ChatLoading","Attachments","_Attachments","ChatThinking","_ChatThinking","Chatbot","_Chatbot","ChatMessage","_ChatMessage","ChatContent","_ChatContent","ChatSearchContent","ChatSearchContentComponent","ChatSuggestionContent","ChatSuggestionContentComponent","ChatMarkdown","_ChatMarkdown","Chat","ChatAction","ChatInput","_ChatInput","ChatReasoning","_ChatReasoning","ChatItem","_ChatItem","install","app","config","use","component","version","PKG_VERSION"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkDaA,QAAA,GAAWC,YAAYC,SAAS,EAAA;IAChCC,UAAA,GAAaF,YAAYG,WAAW,EAAA;IACpCC,aAAA,GAAgBJ,YAAYK,cAAc,EAAA;IAC1CC,WAAA,GAAcN,YAAYO,aAAY,EAAA;IACtCC,WAAA,GAAcR,YAAYS,aAAY,EAAA;AACtC,IAAAC,YAAA,GAAeV,WAAY,CAAAW,aAAA,EAAe,iBAAiB,EAAA;AAC3D,IAAAC,OAAA,GAAUZ,WAAY,CAAAa,SAAA,EAAU,WAAW,EAAA;AAC3C,IAAAC,WAAA,GAAcd,WAAY,CAAAe,YAAA,EAAc,gBAAgB,EAAA;IACxDC,WAAA,GAAchB,YAAYiB,YAAY,EAAA;AACtC,IAAAC,iBAAA,GAAoBlB,WAAY,CAAAmB,0BAAA,EAA4B,uBAAuB,EAAA;AAEnF,IAAAC,qBAAA,GAAwBpB,WAAY,CAAAqB,8BAAA,EAAgC,2BAA2B,EAAA;AAE/F,IAAAC,YAAA,GAAetB,WAAY,CAAAuB,cAAA,EAAe,iBAAiB,EAAA;IAG3DC,IAAA,GAAOxB,YAAYC,SAAS,EAAA;IAC5BwB,UAAA,GAAazB,YAAYK,cAAc,EAAA;IACvCqB,SAAA,GAAY1B,YAAY2B,UAAU,EAAA;IAClCC,aAAA,GAAgB5B,YAAY6B,cAAc,EAAA;IAC1CC,QAAA,GAAW9B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