@8wave/ai-elements 0.95.0 → 0.97.0-beta.2

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 (66) hide show
  1. package/dist/_chunks/{Document-BUoM2Gd0.js → Document-njJL_3oo.js} +2 -2
  2. package/dist/_chunks/Document-njJL_3oo.js.map +1 -0
  3. package/dist/_chunks/{PkToolShowArtifact-CX4u80Vm.js → PkToolShowArtifact-BHGuiacA.js} +2 -2
  4. package/dist/_chunks/PkToolShowArtifact-BHGuiacA.js.map +1 -0
  5. package/dist/_chunks/{PkToolShowSources-B5_-IXvz.js → PkToolShowSources-Bg0QAcmF.js} +2 -2
  6. package/dist/_chunks/{PkToolShowSources-B5_-IXvz.js.map → PkToolShowSources-Bg0QAcmF.js.map} +1 -1
  7. package/dist/_chunks/PkToolShowVideo-DoLoI8_N.js +121 -0
  8. package/dist/_chunks/PkToolShowVideo-DoLoI8_N.js.map +1 -0
  9. package/dist/ai-elements.es.js +22 -13
  10. package/dist/ai-elements.es.js.map +1 -1
  11. package/dist-vue/PkChatbot.js +1 -1
  12. package/dist-vue/PkChatbotMessages.js +1 -1
  13. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  14. package/dist-vue/PkChatbotSteps.js +1 -1
  15. package/dist-vue/PkChatbotViewChat.js +1 -1
  16. package/dist-vue/PkChatbotViewConversations.js +1 -1
  17. package/dist-vue/PkChatbotViewFiles.js +1 -1
  18. package/dist-vue/PkChatbotViewProfile.js +1 -1
  19. package/dist-vue/_chunks/{Document--p4dmaUY.js → Document-q67u4D3u.js} +2 -2
  20. package/dist-vue/_chunks/{Document--p4dmaUY.js.map → Document-q67u4D3u.js.map} +1 -1
  21. package/dist-vue/_chunks/{PkChatbot-DH5-1our.js → PkChatbot-C_eZTz6p.js} +7 -7
  22. package/dist-vue/_chunks/{PkChatbot-DH5-1our.js.map → PkChatbot-C_eZTz6p.js.map} +1 -1
  23. package/dist-vue/_chunks/{PkChatbotMessages-kRAjAYUH.js → PkChatbotMessages-Cbn8okze.js} +6 -5
  24. package/dist-vue/_chunks/PkChatbotMessages-Cbn8okze.js.map +1 -0
  25. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Csp_kQG0.js → PkChatbotStepToolDetail-ldThv0t5.js} +2 -2
  26. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Csp_kQG0.js.map → PkChatbotStepToolDetail-ldThv0t5.js.map} +1 -1
  27. package/dist-vue/_chunks/{PkChatbotSteps-DVQxL0Ti.js → PkChatbotSteps-BhqYCNWy.js} +3 -3
  28. package/dist-vue/_chunks/{PkChatbotSteps-DVQxL0Ti.js.map → PkChatbotSteps-BhqYCNWy.js.map} +1 -1
  29. package/dist-vue/_chunks/{PkChatbotViewChat-CvUQ6zSI.js → PkChatbotViewChat-DhoY_8n8.js} +4 -4
  30. package/dist-vue/_chunks/{PkChatbotViewChat-CvUQ6zSI.js.map → PkChatbotViewChat-DhoY_8n8.js.map} +1 -1
  31. package/dist-vue/_chunks/{PkChatbotViewConversations-DbnJaJw_.js → PkChatbotViewConversations-DS_k_sT_.js} +2 -2
  32. package/dist-vue/_chunks/{PkChatbotViewConversations-DbnJaJw_.js.map → PkChatbotViewConversations-DS_k_sT_.js.map} +1 -1
  33. package/dist-vue/_chunks/{PkChatbotViewFiles-B_HZ-Gjh.js → PkChatbotViewFiles-7dp8BlYW.js} +3 -3
  34. package/dist-vue/_chunks/{PkChatbotViewFiles-B_HZ-Gjh.js.map → PkChatbotViewFiles-7dp8BlYW.js.map} +1 -1
  35. package/dist-vue/_chunks/{PkChatbotViewProfile-BglHN7F5.js → PkChatbotViewProfile-BdFkddeC.js} +2 -2
  36. package/dist-vue/_chunks/{PkChatbotViewProfile-BglHN7F5.js.map → PkChatbotViewProfile-BdFkddeC.js.map} +1 -1
  37. package/dist-vue/_chunks/{PkToolShowArtifact-BCc4qcf0.js → PkToolShowArtifact-B2ilUNT0.js} +2 -2
  38. package/dist-vue/_chunks/PkToolShowArtifact-B2ilUNT0.js.map +1 -0
  39. package/dist-vue/_chunks/{PkToolShowSources-BxKpqH6r.js → PkToolShowSources-BF2-VGSg.js} +2 -2
  40. package/dist-vue/_chunks/{PkToolShowSources-BxKpqH6r.js.map → PkToolShowSources-BF2-VGSg.js.map} +1 -1
  41. package/dist-vue/_chunks/PkToolShowVideo-Ox8rFd7j.js +122 -0
  42. package/dist-vue/_chunks/PkToolShowVideo-Ox8rFd7j.js.map +1 -0
  43. package/dist-vue/_chunks/{constants-D4_mnkiX.js → constants-DtnBK4PW.js} +2 -2
  44. package/dist-vue/_chunks/{constants-D4_mnkiX.js.map → constants-DtnBK4PW.js.map} +1 -1
  45. package/dist-vue/_chunks/{createChatbotApiClient-C7cQhOuG.js → createChatbotApiClient-DvuGurzU.js} +5 -4
  46. package/dist-vue/_chunks/createChatbotApiClient-DvuGurzU.js.map +1 -0
  47. package/dist-vue/_chunks/{useChatbotStore-D6IdQhl-.js → useChatbotStore-C7VyUKXU.js} +2 -2
  48. package/dist-vue/_chunks/{useChatbotStore-D6IdQhl-.js.map → useChatbotStore-C7VyUKXU.js.map} +1 -1
  49. package/dist-vue/_chunks/{utils-CVZaf4tf.js → utils-BMa8jwJS.js} +3 -3
  50. package/dist-vue/_chunks/{utils-CVZaf4tf.js.map → utils-BMa8jwJS.js.map} +1 -1
  51. package/dist-vue/api.js +1 -1
  52. package/dist-vue/composables.js +3 -3
  53. package/dist-vue/index.js +17 -14
  54. package/dist-vue/index.js.map +1 -1
  55. package/dist-vue/locales.js +4 -0
  56. package/dist-vue/packages/components/src/chat/PkToolShowVideo.d.ts +7 -0
  57. package/dist-vue/packages/components/src/chat/constants.d.ts +1 -1
  58. package/dist-vue/packages/models/src/schema/Agent.d.ts +1 -0
  59. package/dist-vue/packages/models/src/schema/constants.d.ts +2 -0
  60. package/dist-vue/style.css +1 -1
  61. package/package.json +1 -1
  62. package/dist/_chunks/Document-BUoM2Gd0.js.map +0 -1
  63. package/dist/_chunks/PkToolShowArtifact-CX4u80Vm.js.map +0 -1
  64. package/dist-vue/_chunks/PkChatbotMessages-kRAjAYUH.js.map +0 -1
  65. package/dist-vue/_chunks/PkToolShowArtifact-BCc4qcf0.js.map +0 -1
  66. package/dist-vue/_chunks/createChatbotApiClient-C7cQhOuG.js.map +0 -1
@@ -93,14 +93,14 @@ function g(t) {
93
93
  if (t.type === "tool-saveUserMemory") return h(n, "content", "query");
94
94
  }
95
95
  function _(r) {
96
- if (e(r)) return r.type.includes("tool-subagent") ? "ri:robot-2-line" : r.type === "tool-runWorker" ? "ri:flow-chart" : r.type === "tool-fetchTeamsChannelHistory" ? "ri:chat-history-line" : r.type.includes("tool-mcp") ? "octicon:mcp-16" : r.type === "tool-retrieveRevisedAnswers" ? "ri:file-edit-line" : r.type === "tool-searchInKnowledgeBase" ? "ri:search-line" : r.type === "tool-expandChunkContext" ? "ri:file-search-line" : r.type === "tool-readDocumentFile" ? "ri:file-text-line" : r.type === "tool-geocode" ? "ri:map-2-line" : r.type === "tool-getWeather" ? "ri:sun-cloudy-line" : r.type === "tool-recallUserMemory" ? "ri:brain-line" : r.type === "tool-saveUserMemory" ? "ri:save-3-line" : r.type === "tool-showWeather" ? "ri:sun-line" : r.type === "tool-showDiagram" ? "ri:flow-chart" : r.type === "tool-showSources" ? "ri:book-2-line" : r.type === "tool-showForm" ? "ri:survey-line" : r.type === "tool-showMultipleChoice" ? "ri:checkbox-multiple-line" : r.type === "tool-showArtifact" ? "ri:file-code-line" : r.type === "tool-showEmail" ? "ri:mail-line" : r.type === "tool-showMessage" ? "ri:chat-1-line" : r.type === "tool-showWebPages" ? "ri:pages-line" : r.type === "tool-showProductList" ? "ri:shopping-bag-line" : r.type === "tool-showContactForm" ? "ri:send-plane-2-line" : r.type === "tool-showCalendarEvent" ? "ri:calendar-event-line" : r.type === "tool-showComparison" ? "ri:scales-line" : r.type === "tool-showLocation" ? "ri:map-pin-line" : r.type === "tool-showQrCode" ? "ri:qr-code-line" : r.type === "tool-showImageGallery" ? "ri:image-line" : r.type === "tool-showSuggestedReply" ? "ri:corner-down-right-line" : r.type === "tool-requestGeolocation" ? "ri:map-pin-user-line" : r.type === "tool-perplexity_search" || r.type === "tool-parallel_search" || r.type === "tool-web_search" || r.type === "tool-google_search" ? "ri:global-line" : "ri:tools-line";
96
+ if (e(r)) return r.type.includes("tool-subagent") ? "ri:robot-2-line" : r.type === "tool-runWorker" ? "ri:flow-chart" : r.type === "tool-fetchTeamsChannelHistory" ? "ri:chat-history-line" : r.type.includes("tool-mcp") ? "octicon:mcp-16" : r.type === "tool-retrieveRevisedAnswers" ? "ri:file-edit-line" : r.type === "tool-searchInKnowledgeBase" ? "ri:search-line" : r.type === "tool-expandChunkContext" ? "ri:file-search-line" : r.type === "tool-readDocumentFile" ? "ri:file-text-line" : r.type === "tool-geocode" ? "ri:map-2-line" : r.type === "tool-getWeather" ? "ri:sun-cloudy-line" : r.type === "tool-recallUserMemory" ? "ri:brain-line" : r.type === "tool-saveUserMemory" ? "ri:save-3-line" : r.type === "tool-showWeather" ? "ri:sun-line" : r.type === "tool-showDiagram" ? "ri:flow-chart" : r.type === "tool-showSources" ? "ri:book-2-line" : r.type === "tool-showForm" ? "ri:survey-line" : r.type === "tool-showMultipleChoice" ? "ri:checkbox-multiple-line" : r.type === "tool-showArtifact" ? "ri:file-code-line" : r.type === "tool-showEmail" ? "ri:mail-line" : r.type === "tool-showMessage" ? "ri:chat-1-line" : r.type === "tool-showWebPages" ? "ri:pages-line" : r.type === "tool-showProductList" ? "ri:shopping-bag-line" : r.type === "tool-showContactForm" ? "ri:send-plane-2-line" : r.type === "tool-showCalendarEvent" ? "ri:calendar-event-line" : r.type === "tool-showComparison" ? "ri:scales-line" : r.type === "tool-showLocation" ? "ri:map-pin-line" : r.type === "tool-showQrCode" ? "ri:qr-code-line" : r.type === "tool-showImageGallery" ? "ri:image-line" : r.type === "tool-showVideo" ? "ri:film-line" : r.type === "tool-showSuggestedReply" ? "ri:corner-down-right-line" : r.type === "tool-requestGeolocation" ? "ri:map-pin-user-line" : r.type === "tool-perplexity_search" || r.type === "tool-parallel_search" || r.type === "tool-web_search" || r.type === "tool-google_search" ? "ri:global-line" : "ri:tools-line";
97
97
  if (t(r)) return "ri:lightbulb-line";
98
98
  if (n(r)) return "ri:double-quotes-r";
99
99
  }
100
100
  function v(n, r) {
101
- return e(r) ? r.type === "tool-runWorker" ? n("messagePart.runWorker") : r.type === "tool-fetchTeamsChannelHistory" ? n("messagePart.fetchTeamsChannelHistory") : r.type === "tool-retrieveRevisedAnswers" ? n("messagePart.revisedAnswers") : r.type === "tool-searchInKnowledgeBase" ? n("messagePart.searchingDocuments") : r.type === "tool-expandChunkContext" ? n("messagePart.expandChunkContext") : r.type === "tool-readDocumentFile" ? n("messagePart.readDocumentFile") : r.type === "tool-geocode" ? n("messagePart.geocode") : r.type === "tool-getWeather" ? n("messagePart.getWeather") : r.type === "tool-recallUserMemory" ? n("messagePart.recallUserMemory") : r.type === "tool-saveUserMemory" ? n("messagePart.saveUserMemory") : r.type === "tool-showWeather" ? n("messagePart.showWeather") : r.type === "tool-showForm" ? n("messagePart.showForm") : r.type === "tool-showDiagram" ? n("messagePart.showDiagram") : r.type === "tool-showSources" ? n("messagePart.showSources") : r.type === "tool-showMultipleChoice" ? n("messagePart.showMultipleChoice") : r.type === "tool-showArtifact" ? n("messagePart.showArtifact") : r.type === "tool-showEmail" ? n("messagePart.showEmail") : r.type === "tool-showMessage" ? n("messagePart.showMessage") : r.type === "tool-showWebPages" ? n("messagePart.showWebPages") : r.type === "tool-showProducts" ? n("messagePart.showProducts") : r.type === "tool-showContactForm" ? n("messagePart.showContactForm") : r.type === "tool-showCalendarEvent" ? n("messagePart.showCalendarEvent") : r.type === "tool-showComparison" ? n("messagePart.showComparison") : r.type === "tool-showLocation" ? n("messagePart.showLocation") : r.type === "tool-showQrCode" ? n("messagePart.showQrCode") : r.type === "tool-showImageGallery" ? n("messagePart.showImageGallery") : r.type === "tool-showSuggestedReply" ? n("messagePart.showSuggestedReply") : r.type === "tool-requestGeolocation" ? n("messagePart.requestGeolocation") : d.includes(r.type) ? n("messagePart.webSearch") : n("messagePart.tool") : t(r) ? n("messagePart.reasoning") : n("messagePart.streaming");
101
+ return e(r) ? r.type === "tool-runWorker" ? n("messagePart.runWorker") : r.type === "tool-fetchTeamsChannelHistory" ? n("messagePart.fetchTeamsChannelHistory") : r.type === "tool-retrieveRevisedAnswers" ? n("messagePart.revisedAnswers") : r.type === "tool-searchInKnowledgeBase" ? n("messagePart.searchingDocuments") : r.type === "tool-expandChunkContext" ? n("messagePart.expandChunkContext") : r.type === "tool-readDocumentFile" ? n("messagePart.readDocumentFile") : r.type === "tool-geocode" ? n("messagePart.geocode") : r.type === "tool-getWeather" ? n("messagePart.getWeather") : r.type === "tool-recallUserMemory" ? n("messagePart.recallUserMemory") : r.type === "tool-saveUserMemory" ? n("messagePart.saveUserMemory") : r.type === "tool-showWeather" ? n("messagePart.showWeather") : r.type === "tool-showForm" ? n("messagePart.showForm") : r.type === "tool-showDiagram" ? n("messagePart.showDiagram") : r.type === "tool-showSources" ? n("messagePart.showSources") : r.type === "tool-showMultipleChoice" ? n("messagePart.showMultipleChoice") : r.type === "tool-showArtifact" ? n("messagePart.showArtifact") : r.type === "tool-showEmail" ? n("messagePart.showEmail") : r.type === "tool-showMessage" ? n("messagePart.showMessage") : r.type === "tool-showWebPages" ? n("messagePart.showWebPages") : r.type === "tool-showProducts" ? n("messagePart.showProducts") : r.type === "tool-showContactForm" ? n("messagePart.showContactForm") : r.type === "tool-showCalendarEvent" ? n("messagePart.showCalendarEvent") : r.type === "tool-showComparison" ? n("messagePart.showComparison") : r.type === "tool-showLocation" ? n("messagePart.showLocation") : r.type === "tool-showQrCode" ? n("messagePart.showQrCode") : r.type === "tool-showImageGallery" ? n("messagePart.showImageGallery") : r.type === "tool-showVideo" ? n("messagePart.showVideo") : r.type === "tool-showSuggestedReply" ? n("messagePart.showSuggestedReply") : r.type === "tool-requestGeolocation" ? n("messagePart.requestGeolocation") : d.includes(r.type) ? n("messagePart.webSearch") : n("messagePart.tool") : t(r) ? n("messagePart.reasoning") : n("messagePart.streaming");
102
102
  }
103
103
  //#endregion
104
104
  export { v as a, o as c, c as d, u as f, a as i, i as l, l as n, g as o, _ as r, p as s, d as t, r as u };
105
105
 
106
- //# sourceMappingURL=utils-CVZaf4tf.js.map
106
+ //# sourceMappingURL=utils-BMa8jwJS.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-CVZaf4tf.js","names":[],"sources":["../../../../packages/components/src/chat/utils.ts"],"sourcesContent":["import type { UIMessage } from 'ai'\nimport {\n isTextPart,\n isFilePart,\n isToolPart,\n isReasoningPart,\n hasPartText,\n hasTextPart,\n getTextPart,\n getMessageText,\n} from 'utils'\n\nexport {\n isTextPart,\n isFilePart,\n isToolPart,\n isReasoningPart,\n hasPartText,\n hasTextPart,\n getTextPart,\n getMessageText,\n}\n\n/**\n * Merges consecutive text parts into a single text part.\n * Claude (and other models) often produce multiple text parts during streaming\n * that should logically be a single block of text.\n */\nexport function mergeConsecutiveTextParts(\n parts: UIMessage['parts'],\n): UIMessage['parts'] {\n const merged: UIMessage['parts'] = []\n for (const part of parts) {\n if (!isTextPart(part)) {\n merged.push(part)\n continue\n }\n const prev = merged[merged.length - 1]\n if (prev && isTextPart(prev)) {\n merged[merged.length - 1] = { ...prev, text: prev.text + part.text }\n } else {\n merged.push(part)\n }\n }\n return merged\n}\n\nexport function isStreamingPart(\n part: UIMessage['parts'][number] | null | undefined,\n): part is Extract<UIMessage['parts'][number], { streaming?: boolean }> {\n if (!part) return false\n if ('state' in part) {\n return part.state === 'streaming' || part.state === 'input-streaming'\n }\n return false\n}\n\nexport function getPartState(\n part: UIMessage['parts'][number] | null | undefined,\n): string | undefined {\n if (!part) return undefined\n if ('state' in part) {\n return part.state\n }\n return undefined\n}\n\nexport function isLoadingState(state?: string): boolean {\n if (!state) return false\n return ['streaming'].includes(state)\n}\n\nexport function getContrast(hexcolor: string = '000000'): 'black' | 'white' {\n let hex = hexcolor.replace('#', '')\n\n // Expand 3-character hex to 6-character (e.g., #ccc -> #cccccc)\n if (hex.length === 3) {\n hex = hex\n .split('')\n .map((char) => char + char)\n .join('')\n }\n\n // WCAG relative luminance\n const r = parseInt(hex.substring(0, 2), 16) / 255\n const g = parseInt(hex.substring(2, 4), 16) / 255\n const b = parseInt(hex.substring(4, 6), 16) / 255\n\n const linearize = (c: number) =>\n c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4\n\n const luminance =\n 0.2126 * linearize(r) + 0.7152 * linearize(g) + 0.0722 * linearize(b)\n\n return luminance > 0.179 ? 'black' : 'white'\n}\n\n/**\n * Resolves the contrast color based on the user's `textColor` preference.\n * Falls back to WCAG auto-detection via `getContrast` when set to `'auto'` or `undefined`.\n */\nexport function resolveContrastColor(\n textColor: 'auto' | 'white' | 'black' | undefined,\n mainColor: string | undefined,\n): 'black' | 'white' {\n if (textColor === 'white' || textColor === 'black') {\n return textColor\n }\n return getContrast(mainColor)\n}\n\n/**\n * Formats a duration in milliseconds using the i18n `seconds` number format\n * (e.g. \"12,4 secondi\" / \"12.4 seconds\"). Returns undefined for durations\n * that would render as \"0 seconds\" (less than 0.05s).\n */\nexport function formatDuration(\n $n: (value: number, format: string) => string,\n ms?: number,\n): string | undefined {\n if (ms === undefined || ms < 50) {\n return undefined\n }\n return $n(ms / 1000, 'seconds')\n}\n\n/**\n * Stringifies a tool payload for the raw fallback view. Returns undefined for\n * empty values so the caller can skip rendering the block entirely.\n */\nexport function stringifyPayload(value: unknown): string | undefined {\n if (value === undefined) {\n return undefined\n }\n if (typeof value === 'string') {\n return value.trim() || undefined\n }\n try {\n const json = JSON.stringify(value, null, 2)\n return json === '{}' || json === '[]' ? undefined : json\n } catch {\n return undefined\n }\n}\n\n// Provider-native web search tool part types\nexport const WEB_SEARCH_TOOL_TYPES = [\n 'tool-perplexity_search',\n 'tool-parallel_search',\n 'tool-web_search',\n 'tool-google_search',\n]\n\n// Tool part types with a dedicated rich rendering in PkChatbotStepToolDetail\nconst RICH_DETAIL_TOOL_TYPES = new Set([\n 'tool-searchInKnowledgeBase',\n 'tool-retrieveRevisedAnswers',\n 'tool-expandChunkContext',\n 'tool-readDocumentFile',\n 'tool-getWeather',\n 'tool-geocode',\n 'tool-recallUserMemory',\n 'tool-saveUserMemory',\n ...WEB_SEARCH_TOOL_TYPES,\n])\n\nexport function hasRichToolDetail(\n part?: UIMessage['parts'][number] | null,\n): boolean {\n return isToolPart(part) && RICH_DETAIL_TOOL_TYPES.has(part.type)\n}\n\nconst asRecord = (value: unknown): Record<string, unknown> | undefined =>\n value && typeof value === 'object' && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : undefined\n\nconst pickString = (\n record: Record<string, unknown> | undefined,\n ...keys: string[]\n): string | undefined => {\n for (const key of keys) {\n const value = record?.[key]\n if (typeof value === 'string' && value.trim()) {\n return value\n }\n }\n return undefined\n}\n\n/**\n * Returns a short inline summary for a tool part (search queries, location,\n * document name, ...) to be shown next to the step label without expanding\n * the step body.\n */\nexport function getToolPartSummary(\n part?: UIMessage['parts'][number] | null,\n): string | undefined {\n if (!isToolPart(part)) {\n return undefined\n }\n const input = asRecord('input' in part ? part.input : undefined)\n const output = asRecord('output' in part ? part.output : undefined)\n if (\n part.type === 'tool-searchInKnowledgeBase' ||\n WEB_SEARCH_TOOL_TYPES.includes(part.type)\n ) {\n const queries = input?.queries\n if (Array.isArray(queries)) {\n const valid = queries.filter(\n (query): query is string =>\n typeof query === 'string' && Boolean(query.trim()),\n )\n return valid.length ? valid.join(' · ') : undefined\n }\n return pickString(input, 'query', 'objective')\n }\n if (part.type === 'tool-retrieveRevisedAnswers') {\n return pickString(input, 'query')\n }\n if (part.type === 'tool-getWeather') {\n return (\n pickString(output, 'location') ?? pickString(input, 'locationName')\n )\n }\n if (part.type === 'tool-geocode') {\n return pickString(input, 'locationName')\n }\n if (part.type === 'tool-expandChunkContext') {\n return pickString(output, 'documentName')\n }\n if (part.type === 'tool-readDocumentFile') {\n return pickString(output, 'name')\n }\n if (part.type === 'tool-recallUserMemory') {\n return pickString(input, 'query')\n }\n if (part.type === 'tool-saveUserMemory') {\n return pickString(input, 'content', 'query')\n }\n return undefined\n}\n\n// Get part icon\nexport function getPartIcon(\n part?: UIMessage['parts'][number] | null,\n): string | undefined {\n if (isToolPart(part)) {\n if (part.type.includes('tool-subagent')) {\n return 'ri:robot-2-line'\n }\n if (part.type === 'tool-runWorker') {\n return 'ri:flow-chart'\n }\n if (part.type === 'tool-fetchTeamsChannelHistory') {\n return 'ri:chat-history-line'\n }\n if (part.type.includes('tool-mcp')) {\n return 'octicon:mcp-16'\n }\n if (part.type === 'tool-retrieveRevisedAnswers') {\n return 'ri:file-edit-line'\n }\n if (part.type === 'tool-searchInKnowledgeBase') {\n return 'ri:search-line'\n }\n if (part.type === 'tool-expandChunkContext') {\n return 'ri:file-search-line'\n }\n if (part.type === 'tool-readDocumentFile') {\n return 'ri:file-text-line'\n }\n if (part.type === 'tool-geocode') {\n return 'ri:map-2-line'\n }\n if (part.type === 'tool-getWeather') {\n return 'ri:sun-cloudy-line'\n }\n if (part.type === 'tool-recallUserMemory') {\n return 'ri:brain-line'\n }\n if (part.type === 'tool-saveUserMemory') {\n return 'ri:save-3-line'\n }\n if (part.type === 'tool-showWeather') {\n return 'ri:sun-line'\n }\n if (part.type === 'tool-showDiagram') {\n return 'ri:flow-chart'\n }\n if (part.type === 'tool-showSources') {\n return 'ri:book-2-line'\n }\n if (part.type === 'tool-showForm') {\n return 'ri:survey-line'\n }\n if (part.type === 'tool-showMultipleChoice') {\n return 'ri:checkbox-multiple-line'\n }\n if (part.type === 'tool-showArtifact') {\n return 'ri:file-code-line'\n }\n if (part.type === 'tool-showEmail') {\n return 'ri:mail-line'\n }\n if (part.type === 'tool-showMessage') {\n return 'ri:chat-1-line'\n }\n if (part.type === 'tool-showWebPages') {\n return 'ri:pages-line'\n }\n if (part.type === 'tool-showProductList') {\n return 'ri:shopping-bag-line'\n }\n if (part.type === 'tool-showContactForm') {\n return 'ri:send-plane-2-line'\n }\n if (part.type === 'tool-showCalendarEvent') {\n return 'ri:calendar-event-line'\n }\n if (part.type === 'tool-showComparison') {\n return 'ri:scales-line'\n }\n if (part.type === 'tool-showLocation') {\n return 'ri:map-pin-line'\n }\n if (part.type === 'tool-showQrCode') {\n return 'ri:qr-code-line'\n }\n if (part.type === 'tool-showImageGallery') {\n return 'ri:image-line'\n }\n if (part.type === 'tool-showSuggestedReply') {\n return 'ri:corner-down-right-line'\n }\n if (part.type === 'tool-requestGeolocation') {\n return 'ri:map-pin-user-line'\n }\n if (\n part.type === 'tool-perplexity_search' ||\n part.type === 'tool-parallel_search' ||\n part.type === 'tool-web_search' ||\n part.type === 'tool-google_search'\n ) {\n return 'ri:global-line'\n }\n return 'ri:tools-line'\n }\n if (isReasoningPart(part)) {\n return 'ri:lightbulb-line'\n }\n if (isTextPart(part)) {\n return 'ri:double-quotes-r'\n }\n return undefined\n}\n\n// Get part label\nexport function getToolPartLabel(\n $t: (key: string) => string,\n part?: UIMessage['parts'][number] | null,\n): string | undefined {\n if (isToolPart(part)) {\n if (part.type === 'tool-runWorker') {\n return $t(`messagePart.runWorker`)\n }\n if (part.type === 'tool-fetchTeamsChannelHistory') {\n return $t(`messagePart.fetchTeamsChannelHistory`)\n }\n if (part.type === 'tool-retrieveRevisedAnswers') {\n return $t(`messagePart.revisedAnswers`)\n }\n if (part.type === 'tool-searchInKnowledgeBase') {\n return $t(`messagePart.searchingDocuments`)\n }\n if (part.type === 'tool-expandChunkContext') {\n return $t(`messagePart.expandChunkContext`)\n }\n if (part.type === 'tool-readDocumentFile') {\n return $t(`messagePart.readDocumentFile`)\n }\n if (part.type === 'tool-geocode') {\n return $t(`messagePart.geocode`)\n }\n if (part.type === 'tool-getWeather') {\n return $t(`messagePart.getWeather`)\n }\n if (part.type === 'tool-recallUserMemory') {\n return $t(`messagePart.recallUserMemory`)\n }\n if (part.type === 'tool-saveUserMemory') {\n return $t(`messagePart.saveUserMemory`)\n }\n if (part.type === 'tool-showWeather') {\n return $t(`messagePart.showWeather`)\n }\n if (part.type === 'tool-showForm') {\n return $t(`messagePart.showForm`)\n }\n if (part.type === 'tool-showDiagram') {\n return $t(`messagePart.showDiagram`)\n }\n if (part.type === 'tool-showSources') {\n return $t(`messagePart.showSources`)\n }\n if (part.type === 'tool-showMultipleChoice') {\n return $t(`messagePart.showMultipleChoice`)\n }\n if (part.type === 'tool-showArtifact') {\n return $t(`messagePart.showArtifact`)\n }\n if (part.type === 'tool-showEmail') {\n return $t(`messagePart.showEmail`)\n }\n if (part.type === 'tool-showMessage') {\n return $t(`messagePart.showMessage`)\n }\n if (part.type === 'tool-showWebPages') {\n return $t(`messagePart.showWebPages`)\n }\n if (part.type === 'tool-showProducts') {\n return $t(`messagePart.showProducts`)\n }\n if (part.type === 'tool-showContactForm') {\n return $t(`messagePart.showContactForm`)\n }\n if (part.type === 'tool-showCalendarEvent') {\n return $t(`messagePart.showCalendarEvent`)\n }\n if (part.type === 'tool-showComparison') {\n return $t(`messagePart.showComparison`)\n }\n if (part.type === 'tool-showLocation') {\n return $t(`messagePart.showLocation`)\n }\n if (part.type === 'tool-showQrCode') {\n return $t(`messagePart.showQrCode`)\n }\n if (part.type === 'tool-showImageGallery') {\n return $t(`messagePart.showImageGallery`)\n }\n if (part.type === 'tool-showSuggestedReply') {\n return $t(`messagePart.showSuggestedReply`)\n }\n if (part.type === 'tool-requestGeolocation') {\n return $t(`messagePart.requestGeolocation`)\n }\n if (WEB_SEARCH_TOOL_TYPES.includes(part.type)) {\n return $t(`messagePart.webSearch`)\n }\n return $t(`messagePart.tool`)\n }\n if (isReasoningPart(part)) {\n return $t(`messagePart.reasoning`)\n }\n return $t(`messagePart.streaming`)\n}\n"],"mappings":";;;AA4BA,SAAgB,EACZ,GACkB;CAClB,IAAM,IAA6B,CAAC;CACpC,KAAK,IAAM,KAAQ,GAAO;EACtB,IAAI,CAAC,EAAW,CAAI,GAAG;G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8B,IAExC,EAAK,SAAS,4BACP,EAAG,gCAAgC,IAE1C,EAAK,SAAS,4BACP,EAAG,gCAAgC,IAE1C,EAAsB,SAAS,EAAK,IAAI,IACjC,EAAG,uBAAuB,IAE9B,EAAG,kBAAkB,IAE5B,EAAgB,CAAI,IACb,EAAG,uBAAuB,IAE9B,EAAG,uBAAuB;AACrC"}
1
+ {"version":3,"file":"utils-BMa8jwJS.js","names":[],"sources":["../../../../packages/components/src/chat/utils.ts"],"sourcesContent":["import type { UIMessage } from 'ai'\nimport {\n isTextPart,\n isFilePart,\n isToolPart,\n isReasoningPart,\n hasPartText,\n hasTextPart,\n getTextPart,\n getMessageText,\n} from 'utils'\n\nexport {\n isTextPart,\n isFilePart,\n isToolPart,\n isReasoningPart,\n hasPartText,\n hasTextPart,\n getTextPart,\n getMessageText,\n}\n\n/**\n * Merges consecutive text parts into a single text part.\n * Claude (and other models) often produce multiple text parts during streaming\n * that should logically be a single block of text.\n */\nexport function mergeConsecutiveTextParts(\n parts: UIMessage['parts'],\n): UIMessage['parts'] {\n const merged: UIMessage['parts'] = []\n for (const part of parts) {\n if (!isTextPart(part)) {\n merged.push(part)\n continue\n }\n const prev = merged[merged.length - 1]\n if (prev && isTextPart(prev)) {\n merged[merged.length - 1] = { ...prev, text: prev.text + part.text }\n } else {\n merged.push(part)\n }\n }\n return merged\n}\n\nexport function isStreamingPart(\n part: UIMessage['parts'][number] | null | undefined,\n): part is Extract<UIMessage['parts'][number], { streaming?: boolean }> {\n if (!part) return false\n if ('state' in part) {\n return part.state === 'streaming' || part.state === 'input-streaming'\n }\n return false\n}\n\nexport function getPartState(\n part: UIMessage['parts'][number] | null | undefined,\n): string | undefined {\n if (!part) return undefined\n if ('state' in part) {\n return part.state\n }\n return undefined\n}\n\nexport function isLoadingState(state?: string): boolean {\n if (!state) return false\n return ['streaming'].includes(state)\n}\n\nexport function getContrast(hexcolor: string = '000000'): 'black' | 'white' {\n let hex = hexcolor.replace('#', '')\n\n // Expand 3-character hex to 6-character (e.g., #ccc -> #cccccc)\n if (hex.length === 3) {\n hex = hex\n .split('')\n .map((char) => char + char)\n .join('')\n }\n\n // WCAG relative luminance\n const r = parseInt(hex.substring(0, 2), 16) / 255\n const g = parseInt(hex.substring(2, 4), 16) / 255\n const b = parseInt(hex.substring(4, 6), 16) / 255\n\n const linearize = (c: number) =>\n c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4\n\n const luminance =\n 0.2126 * linearize(r) + 0.7152 * linearize(g) + 0.0722 * linearize(b)\n\n return luminance > 0.179 ? 'black' : 'white'\n}\n\n/**\n * Resolves the contrast color based on the user's `textColor` preference.\n * Falls back to WCAG auto-detection via `getContrast` when set to `'auto'` or `undefined`.\n */\nexport function resolveContrastColor(\n textColor: 'auto' | 'white' | 'black' | undefined,\n mainColor: string | undefined,\n): 'black' | 'white' {\n if (textColor === 'white' || textColor === 'black') {\n return textColor\n }\n return getContrast(mainColor)\n}\n\n/**\n * Formats a duration in milliseconds using the i18n `seconds` number format\n * (e.g. \"12,4 secondi\" / \"12.4 seconds\"). Returns undefined for durations\n * that would render as \"0 seconds\" (less than 0.05s).\n */\nexport function formatDuration(\n $n: (value: number, format: string) => string,\n ms?: number,\n): string | undefined {\n if (ms === undefined || ms < 50) {\n return undefined\n }\n return $n(ms / 1000, 'seconds')\n}\n\n/**\n * Stringifies a tool payload for the raw fallback view. Returns undefined for\n * empty values so the caller can skip rendering the block entirely.\n */\nexport function stringifyPayload(value: unknown): string | undefined {\n if (value === undefined) {\n return undefined\n }\n if (typeof value === 'string') {\n return value.trim() || undefined\n }\n try {\n const json = JSON.stringify(value, null, 2)\n return json === '{}' || json === '[]' ? undefined : json\n } catch {\n return undefined\n }\n}\n\n// Provider-native web search tool part types\nexport const WEB_SEARCH_TOOL_TYPES = [\n 'tool-perplexity_search',\n 'tool-parallel_search',\n 'tool-web_search',\n 'tool-google_search',\n]\n\n// Tool part types with a dedicated rich rendering in PkChatbotStepToolDetail\nconst RICH_DETAIL_TOOL_TYPES = new Set([\n 'tool-searchInKnowledgeBase',\n 'tool-retrieveRevisedAnswers',\n 'tool-expandChunkContext',\n 'tool-readDocumentFile',\n 'tool-getWeather',\n 'tool-geocode',\n 'tool-recallUserMemory',\n 'tool-saveUserMemory',\n ...WEB_SEARCH_TOOL_TYPES,\n])\n\nexport function hasRichToolDetail(\n part?: UIMessage['parts'][number] | null,\n): boolean {\n return isToolPart(part) && RICH_DETAIL_TOOL_TYPES.has(part.type)\n}\n\nconst asRecord = (value: unknown): Record<string, unknown> | undefined =>\n value && typeof value === 'object' && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : undefined\n\nconst pickString = (\n record: Record<string, unknown> | undefined,\n ...keys: string[]\n): string | undefined => {\n for (const key of keys) {\n const value = record?.[key]\n if (typeof value === 'string' && value.trim()) {\n return value\n }\n }\n return undefined\n}\n\n/**\n * Returns a short inline summary for a tool part (search queries, location,\n * document name, ...) to be shown next to the step label without expanding\n * the step body.\n */\nexport function getToolPartSummary(\n part?: UIMessage['parts'][number] | null,\n): string | undefined {\n if (!isToolPart(part)) {\n return undefined\n }\n const input = asRecord('input' in part ? part.input : undefined)\n const output = asRecord('output' in part ? part.output : undefined)\n if (\n part.type === 'tool-searchInKnowledgeBase' ||\n WEB_SEARCH_TOOL_TYPES.includes(part.type)\n ) {\n const queries = input?.queries\n if (Array.isArray(queries)) {\n const valid = queries.filter(\n (query): query is string =>\n typeof query === 'string' && Boolean(query.trim()),\n )\n return valid.length ? valid.join(' · ') : undefined\n }\n return pickString(input, 'query', 'objective')\n }\n if (part.type === 'tool-retrieveRevisedAnswers') {\n return pickString(input, 'query')\n }\n if (part.type === 'tool-getWeather') {\n return (\n pickString(output, 'location') ?? pickString(input, 'locationName')\n )\n }\n if (part.type === 'tool-geocode') {\n return pickString(input, 'locationName')\n }\n if (part.type === 'tool-expandChunkContext') {\n return pickString(output, 'documentName')\n }\n if (part.type === 'tool-readDocumentFile') {\n return pickString(output, 'name')\n }\n if (part.type === 'tool-recallUserMemory') {\n return pickString(input, 'query')\n }\n if (part.type === 'tool-saveUserMemory') {\n return pickString(input, 'content', 'query')\n }\n return undefined\n}\n\n// Get part icon\nexport function getPartIcon(\n part?: UIMessage['parts'][number] | null,\n): string | undefined {\n if (isToolPart(part)) {\n if (part.type.includes('tool-subagent')) {\n return 'ri:robot-2-line'\n }\n if (part.type === 'tool-runWorker') {\n return 'ri:flow-chart'\n }\n if (part.type === 'tool-fetchTeamsChannelHistory') {\n return 'ri:chat-history-line'\n }\n if (part.type.includes('tool-mcp')) {\n return 'octicon:mcp-16'\n }\n if (part.type === 'tool-retrieveRevisedAnswers') {\n return 'ri:file-edit-line'\n }\n if (part.type === 'tool-searchInKnowledgeBase') {\n return 'ri:search-line'\n }\n if (part.type === 'tool-expandChunkContext') {\n return 'ri:file-search-line'\n }\n if (part.type === 'tool-readDocumentFile') {\n return 'ri:file-text-line'\n }\n if (part.type === 'tool-geocode') {\n return 'ri:map-2-line'\n }\n if (part.type === 'tool-getWeather') {\n return 'ri:sun-cloudy-line'\n }\n if (part.type === 'tool-recallUserMemory') {\n return 'ri:brain-line'\n }\n if (part.type === 'tool-saveUserMemory') {\n return 'ri:save-3-line'\n }\n if (part.type === 'tool-showWeather') {\n return 'ri:sun-line'\n }\n if (part.type === 'tool-showDiagram') {\n return 'ri:flow-chart'\n }\n if (part.type === 'tool-showSources') {\n return 'ri:book-2-line'\n }\n if (part.type === 'tool-showForm') {\n return 'ri:survey-line'\n }\n if (part.type === 'tool-showMultipleChoice') {\n return 'ri:checkbox-multiple-line'\n }\n if (part.type === 'tool-showArtifact') {\n return 'ri:file-code-line'\n }\n if (part.type === 'tool-showEmail') {\n return 'ri:mail-line'\n }\n if (part.type === 'tool-showMessage') {\n return 'ri:chat-1-line'\n }\n if (part.type === 'tool-showWebPages') {\n return 'ri:pages-line'\n }\n if (part.type === 'tool-showProductList') {\n return 'ri:shopping-bag-line'\n }\n if (part.type === 'tool-showContactForm') {\n return 'ri:send-plane-2-line'\n }\n if (part.type === 'tool-showCalendarEvent') {\n return 'ri:calendar-event-line'\n }\n if (part.type === 'tool-showComparison') {\n return 'ri:scales-line'\n }\n if (part.type === 'tool-showLocation') {\n return 'ri:map-pin-line'\n }\n if (part.type === 'tool-showQrCode') {\n return 'ri:qr-code-line'\n }\n if (part.type === 'tool-showImageGallery') {\n return 'ri:image-line'\n }\n if (part.type === 'tool-showVideo') {\n return 'ri:film-line'\n }\n if (part.type === 'tool-showSuggestedReply') {\n return 'ri:corner-down-right-line'\n }\n if (part.type === 'tool-requestGeolocation') {\n return 'ri:map-pin-user-line'\n }\n if (\n part.type === 'tool-perplexity_search' ||\n part.type === 'tool-parallel_search' ||\n part.type === 'tool-web_search' ||\n part.type === 'tool-google_search'\n ) {\n return 'ri:global-line'\n }\n return 'ri:tools-line'\n }\n if (isReasoningPart(part)) {\n return 'ri:lightbulb-line'\n }\n if (isTextPart(part)) {\n return 'ri:double-quotes-r'\n }\n return undefined\n}\n\n// Get part label\nexport function getToolPartLabel(\n $t: (key: string) => string,\n part?: UIMessage['parts'][number] | null,\n): string | undefined {\n if (isToolPart(part)) {\n if (part.type === 'tool-runWorker') {\n return $t(`messagePart.runWorker`)\n }\n if (part.type === 'tool-fetchTeamsChannelHistory') {\n return $t(`messagePart.fetchTeamsChannelHistory`)\n }\n if (part.type === 'tool-retrieveRevisedAnswers') {\n return $t(`messagePart.revisedAnswers`)\n }\n if (part.type === 'tool-searchInKnowledgeBase') {\n return $t(`messagePart.searchingDocuments`)\n }\n if (part.type === 'tool-expandChunkContext') {\n return $t(`messagePart.expandChunkContext`)\n }\n if (part.type === 'tool-readDocumentFile') {\n return $t(`messagePart.readDocumentFile`)\n }\n if (part.type === 'tool-geocode') {\n return $t(`messagePart.geocode`)\n }\n if (part.type === 'tool-getWeather') {\n return $t(`messagePart.getWeather`)\n }\n if (part.type === 'tool-recallUserMemory') {\n return $t(`messagePart.recallUserMemory`)\n }\n if (part.type === 'tool-saveUserMemory') {\n return $t(`messagePart.saveUserMemory`)\n }\n if (part.type === 'tool-showWeather') {\n return $t(`messagePart.showWeather`)\n }\n if (part.type === 'tool-showForm') {\n return $t(`messagePart.showForm`)\n }\n if (part.type === 'tool-showDiagram') {\n return $t(`messagePart.showDiagram`)\n }\n if (part.type === 'tool-showSources') {\n return $t(`messagePart.showSources`)\n }\n if (part.type === 'tool-showMultipleChoice') {\n return $t(`messagePart.showMultipleChoice`)\n }\n if (part.type === 'tool-showArtifact') {\n return $t(`messagePart.showArtifact`)\n }\n if (part.type === 'tool-showEmail') {\n return $t(`messagePart.showEmail`)\n }\n if (part.type === 'tool-showMessage') {\n return $t(`messagePart.showMessage`)\n }\n if (part.type === 'tool-showWebPages') {\n return $t(`messagePart.showWebPages`)\n }\n if (part.type === 'tool-showProducts') {\n return $t(`messagePart.showProducts`)\n }\n if (part.type === 'tool-showContactForm') {\n return $t(`messagePart.showContactForm`)\n }\n if (part.type === 'tool-showCalendarEvent') {\n return $t(`messagePart.showCalendarEvent`)\n }\n if (part.type === 'tool-showComparison') {\n return $t(`messagePart.showComparison`)\n }\n if (part.type === 'tool-showLocation') {\n return $t(`messagePart.showLocation`)\n }\n if (part.type === 'tool-showQrCode') {\n return $t(`messagePart.showQrCode`)\n }\n if (part.type === 'tool-showImageGallery') {\n return $t(`messagePart.showImageGallery`)\n }\n if (part.type === 'tool-showVideo') {\n return $t(`messagePart.showVideo`)\n }\n if (part.type === 'tool-showSuggestedReply') {\n return $t(`messagePart.showSuggestedReply`)\n }\n if (part.type === 'tool-requestGeolocation') {\n return $t(`messagePart.requestGeolocation`)\n }\n if (WEB_SEARCH_TOOL_TYPES.includes(part.type)) {\n return $t(`messagePart.webSearch`)\n }\n return $t(`messagePart.tool`)\n }\n if (isReasoningPart(part)) {\n return $t(`messagePart.reasoning`)\n }\n return $t(`messagePart.streaming`)\n}\n"],"mappings":";;;AA4BA,SAAgB,EACZ,GACkB;CAClB,IAAM,IAA6B,CAAC;CACpC,KAAK,IAAM,KAAQ,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EAAK,SAAS,oBACP,EAAG,wBAAwB,IAElC,EAAK,SAAS,0BACP,EAAG,8BAA8B,IAExC,EAAK,SAAS,mBACP,EAAG,uBAAuB,IAEjC,EAAK,SAAS,4BACP,EAAG,gCAAgC,IAE1C,EAAK,SAAS,4BACP,EAAG,gCAAgC,IAE1C,EAAsB,SAAS,EAAK,IAAI,IACjC,EAAG,uBAAuB,IAE9B,EAAG,kBAAkB,IAE5B,EAAgB,CAAI,IACb,EAAG,uBAAuB,IAE9B,EAAG,uBAAuB;AACrC"}
package/dist-vue/api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/createChatbotApiClient-C7cQhOuG.js";
1
+ import { t as e } from "./_chunks/createChatbotApiClient-DvuGurzU.js";
2
2
  export { e as createChatbotApiClient };
@@ -1,8 +1,8 @@
1
- import { t as e } from "./_chunks/createChatbotApiClient-C7cQhOuG.js";
2
- import { t } from "./_chunks/useChatbotStore-D6IdQhl-.js";
1
+ import { t as e } from "./_chunks/createChatbotApiClient-DvuGurzU.js";
2
+ import { t } from "./_chunks/useChatbotStore-C7VyUKXU.js";
3
3
  import { t as n } from "./_chunks/src-8QXYVWIx.js";
4
4
  import { t as r } from "./_chunks/useLocalizedString-PfaKjIQY.js";
5
- import { d as i } from "./_chunks/utils-CVZaf4tf.js";
5
+ import { d as i } from "./_chunks/utils-BMa8jwJS.js";
6
6
  import { computed as a, getCurrentInstance as o, onBeforeUnmount as s, onMounted as c, ref as l, toValue as u, watch as d } from "vue";
7
7
  import { createAuthClient as f } from "better-auth/vue";
8
8
  import { anonymousClient as p, inferAdditionalFields as m } from "better-auth/client/plugins";
package/dist-vue/index.js CHANGED
@@ -2,22 +2,22 @@ import { t as e } from "./_chunks/rolldown-runtime-Dy4uBu1J.js";
2
2
  import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-DnzUxm2o.js";
3
3
  import { S as i, b as a, g as o, h as s, m as c, n as l, v as u } from "./_chunks/schemas-BsOP_5an.js";
4
4
  import { i as d, r as f } from "./_chunks/Media-BmW9F_3T.js";
5
- import { r as p, s as m } from "./_chunks/constants-D4_mnkiX.js";
6
- import { a as h, c as g, d as _, f as v, i as y, l as b, n as x, o as ee, r as S, s as C, u as te } from "./_chunks/createChatbotApiClient-C7cQhOuG.js";
7
- import { r as w, t as ne } from "./_chunks/Document--p4dmaUY.js";
5
+ import { r as p, s as m } from "./_chunks/constants-DtnBK4PW.js";
6
+ import { a as h, c as g, d as _, f as v, i as y, l as b, n as x, o as ee, r as S, s as C, u as te } from "./_chunks/createChatbotApiClient-DvuGurzU.js";
7
+ import { r as w, t as ne } from "./_chunks/Document-q67u4D3u.js";
8
8
  import { t as re } from "./_chunks/PkChatbotAuth-C0ATmt-9.js";
9
9
  import { t as ie } from "./_chunks/PkChatbotError-B2iob9cQ.js";
10
- import { i as ae, n as oe, r as se, t as ce } from "./_chunks/useChatbotStore-D6IdQhl-.js";
10
+ import { i as ae, n as oe, r as se, t as ce } from "./_chunks/useChatbotStore-C7VyUKXU.js";
11
11
  import "./_chunks/src-8QXYVWIx.js";
12
12
  import { c as le, i as ue, s as de } from "./_chunks/message-RohfrdWS.js";
13
13
  import { n as fe, r as pe, t as me } from "./_chunks/text-CeT0hpJK.js";
14
14
  import { t as he } from "./_chunks/useSafeLocalStorage-BGbMO01p.js";
15
15
  import { t as ge } from "./_chunks/useDialogConfirm-DaoekZdk.js";
16
- import { n as _e, r as ve, t as ye } from "./_chunks/PkChatbotViewConversations-DbnJaJw_.js";
17
- import { n as be, t as xe } from "./_chunks/PkChatbotViewChat-CvUQ6zSI.js";
16
+ import { n as _e, r as ve, t as ye } from "./_chunks/PkChatbotViewConversations-DS_k_sT_.js";
17
+ import { n as be, t as xe } from "./_chunks/PkChatbotViewChat-DhoY_8n8.js";
18
18
  import { t as Se } from "./_chunks/useLocalizedString-PfaKjIQY.js";
19
19
  import { n as Ce, t as we } from "./_chunks/PkRelativeTime-C9zd1ffO.js";
20
- import { r as Te, t as Ee } from "./_chunks/PkToolShowArtifact-BCc4qcf0.js";
20
+ import { r as Te, t as Ee } from "./_chunks/PkToolShowArtifact-B2ilUNT0.js";
21
21
  import { $ as De, A as Oe, Ct as ke, D as Ae, F as je, G as Me, H as Ne, J as Pe, K as Fe, N as T, Q as Ie, S as Le, St as Re, T as ze, Tt as Be, U as Ve, W as E, X as He, _t as Ue, a as We, at as Ge, bt as Ke, ct as qe, dt as Je, et as Ye, f as Xe, gt as Ze, it as Qe, k as $e, l as D, lt as O, mt as et, nt as tt, o as nt, ot as rt, pt as it, q as at, rt as ot, st, tt as ct, u as lt, ut, vt as dt, w as ft, wt as pt, x as mt, xt as ht, yt as gt } from "./_chunks/dist-Bx6hE_Gx.js";
22
22
  import { n as _t } from "./_chunks/dist-DJXrHHCX.js";
23
23
  import { n as vt } from "./_chunks/dist-DAIog0YL.js";
@@ -28,15 +28,15 @@ import { t as Ct } from "./_chunks/PkUrl-CN1kkZiH.js";
28
28
  import { t as wt } from "./_chunks/PkAvatar-CyIgsndA.js";
29
29
  import { t as Tt } from "./_chunks/PkChatbotFeedbackForm-Dhsa1c06.js";
30
30
  import { t as Et } from "./_chunks/PkChatbotFilePreview-DyrszALJ.js";
31
- import { t as Dt } from "./_chunks/PkChatbotMessages-kRAjAYUH.js";
32
- import { n as Ot, t as kt } from "./_chunks/PkChatbotSteps-DVQxL0Ti.js";
33
- import { c as At, r as jt } from "./_chunks/utils-CVZaf4tf.js";
34
- import { t as Mt } from "./_chunks/PkChatbotStepToolDetail-Csp_kQG0.js";
31
+ import { t as Dt } from "./_chunks/PkChatbotMessages-Cbn8okze.js";
32
+ import { n as Ot, t as kt } from "./_chunks/PkChatbotSteps-BhqYCNWy.js";
33
+ import { c as At, r as jt } from "./_chunks/utils-BMa8jwJS.js";
34
+ import { t as Mt } from "./_chunks/PkChatbotStepToolDetail-ldThv0t5.js";
35
35
  import { t as Nt } from "./_chunks/PkChatbotInput-Be3J_Fgz.js";
36
36
  import { t as Pt } from "./_chunks/PkChatbotEmptyState-BGTSWFSS.js";
37
- import { t as Ft } from "./_chunks/PkChatbotViewProfile-BglHN7F5.js";
38
- import { t as It } from "./_chunks/PkChatbot-DH5-1our.js";
39
- import { i as Lt, r as Rt, t as zt } from "./_chunks/PkToolShowSources-BxKpqH6r.js";
37
+ import { t as Ft } from "./_chunks/PkChatbotViewProfile-BdFkddeC.js";
38
+ import { t as It } from "./_chunks/PkChatbot-C_eZTz6p.js";
39
+ import { i as Lt, r as Rt, t as zt } from "./_chunks/PkToolShowSources-BF2-VGSg.js";
40
40
  import { t as Bt } from "./_chunks/PkToolShowEmail-C591LR5N.js";
41
41
  import { t as Vt } from "./_chunks/PkToolShowMessage-CbXERPHI.js";
42
42
  import { t as Ht } from "./_chunks/PkToolShowWebPages-CsACREOH.js";
@@ -14370,6 +14370,8 @@ var yy = /*#__PURE__*/ gy(_y, [["render", vy]]), by = {
14370
14370
  p.gemini31ProPreview,
14371
14371
  p.gemini31FlashLite,
14372
14372
  p.gemini35Flash,
14373
+ p.gemini35FlashLite,
14374
+ p.gemini36Flash,
14373
14375
  p.claudeHaiku45,
14374
14376
  p.claudeSonnet46,
14375
14377
  p.claudeSonnet5,
@@ -15574,6 +15576,7 @@ var yy = /*#__PURE__*/ gy(_y, [["render", vy]]), by = {
15574
15576
  S.ShowComparison,
15575
15577
  S.ShowProductList,
15576
15578
  S.ShowImageGallery,
15579
+ S.ShowVideo,
15577
15580
  S.ShowQrCode,
15578
15581
  S.ShowSuggestedReply,
15579
15582
  S.ShowDiagram