@8wave/ai-elements 0.122.0-beta.5 → 0.122.0-beta.8

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 (128) hide show
  1. package/dist/_chunks/{Agent-8tYRuiJc.js → Agent-BcmcalNN.js} +2 -1
  2. package/dist/_chunks/{Agent-8tYRuiJc.js.map → Agent-BcmcalNN.js.map} +1 -1
  3. package/dist/_chunks/PkChatbotFilePreview-D5jwgPp8.js.map +1 -1
  4. package/dist/_chunks/{PkStreamingMarkdown-BAiI6n72.js → PkStreamingMarkdown-Dc0R0GHe.js} +22 -16
  5. package/dist/_chunks/PkStreamingMarkdown-Dc0R0GHe.js.map +1 -0
  6. package/dist/_chunks/PkToolChatFile-BsvJIdgo.js +181 -0
  7. package/dist/_chunks/PkToolChatFile-BsvJIdgo.js.map +1 -0
  8. package/dist/_chunks/{PkToolRequestGeolocation-D1n5Gvks.js → PkToolRequestGeolocation-n1W_drCv.js} +2 -2
  9. package/dist/_chunks/{PkToolRequestGeolocation-D1n5Gvks.js.map → PkToolRequestGeolocation-n1W_drCv.js.map} +1 -1
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-2PzVZ_mh.js → PkToolRequestOAuthConnection-DmMeSF2m.js} +2 -2
  11. package/dist/_chunks/{PkToolRequestOAuthConnection-2PzVZ_mh.js.map → PkToolRequestOAuthConnection-DmMeSF2m.js.map} +1 -1
  12. package/dist/_chunks/{PkToolShowArtifact-B2jj0PEo.js → PkToolShowArtifact-BUnSqAWQ.js} +2 -2
  13. package/dist/_chunks/{PkToolShowArtifact-B2jj0PEo.js.map → PkToolShowArtifact-BUnSqAWQ.js.map} +1 -1
  14. package/dist/_chunks/{PkToolShowContactForm-DNJaM53a.js → PkToolShowContactForm-YX1BuolZ.js} +2 -2
  15. package/dist/_chunks/{PkToolShowContactForm-DNJaM53a.js.map → PkToolShowContactForm-YX1BuolZ.js.map} +1 -1
  16. package/dist/_chunks/{PkToolShowForm-Dbua7aMG.js → PkToolShowForm-CkpMsrEo.js} +3 -3
  17. package/dist/_chunks/{PkToolShowForm-Dbua7aMG.js.map → PkToolShowForm-CkpMsrEo.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowImageGallery-nRTnWZUj.js → PkToolShowImageGallery-BnUnjFeU.js} +2 -2
  19. package/dist/_chunks/{PkToolShowImageGallery-nRTnWZUj.js.map → PkToolShowImageGallery-BnUnjFeU.js.map} +1 -1
  20. package/dist/_chunks/{PkToolShowProductList-NMRtT3fT.js → PkToolShowProductList-CPqmqS-Q.js} +2 -2
  21. package/dist/_chunks/{PkToolShowProductList-NMRtT3fT.js.map → PkToolShowProductList-CPqmqS-Q.js.map} +1 -1
  22. package/dist/_chunks/{PkToolShowSources-CFcTbjcM.js → PkToolShowSources-BO1IhnmO.js} +3 -3
  23. package/dist/_chunks/{PkToolShowSources-CFcTbjcM.js.map → PkToolShowSources-BO1IhnmO.js.map} +1 -1
  24. package/dist/_chunks/{PkToolShowSuggestedReply-CeK6mICV.js → PkToolShowSuggestedReply-79UAjTL4.js} +2 -2
  25. package/dist/_chunks/{PkToolShowSuggestedReply-CeK6mICV.js.map → PkToolShowSuggestedReply-79UAjTL4.js.map} +1 -1
  26. package/dist/_chunks/{PkToolShowVideo-BN3AaLy1.js → PkToolShowVideo-DYnH3VIc.js} +2 -2
  27. package/dist/_chunks/{PkToolShowVideo-BN3AaLy1.js.map → PkToolShowVideo-DYnH3VIc.js.map} +1 -1
  28. package/dist/_chunks/{PkToolShowWebPages-DfBR8eAU.js → PkToolShowWebPages-Ci_Yut6X.js} +2 -2
  29. package/dist/_chunks/{PkToolShowWebPages-DfBR8eAU.js.map → PkToolShowWebPages-Ci_Yut6X.js.map} +1 -1
  30. package/dist/_chunks/{chatImagePolicy-C2-Hy63z.js → chatImagePolicy-B5-NwmIR.js} +2 -2
  31. package/dist/_chunks/{chatImagePolicy-C2-Hy63z.js.map → chatImagePolicy-B5-NwmIR.js.map} +1 -1
  32. package/dist/_chunks/{markdown-B-_gMLvu.js → markdown-_sL6w03k.js} +2 -2
  33. package/dist/_chunks/{markdown-B-_gMLvu.js.map → markdown-_sL6w03k.js.map} +1 -1
  34. package/dist/ai-elements.es.js +53 -21
  35. package/dist/ai-elements.es.js.map +1 -1
  36. package/dist-vue/PkChatbot.js +1 -1
  37. package/dist-vue/PkChatbotEmptyState.js +1 -1
  38. package/dist-vue/PkChatbotInput.js +1 -1
  39. package/dist-vue/PkChatbotMessages.js +1 -1
  40. package/dist-vue/PkChatbotStepPayload.js +1 -1
  41. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  42. package/dist-vue/PkChatbotSteps.js +1 -1
  43. package/dist-vue/PkChatbotViewChat.js +1 -1
  44. package/dist-vue/PkChatbotViewConversations.js +1 -1
  45. package/dist-vue/PkChatbotViewFiles.js +1 -1
  46. package/dist-vue/PkChatbotViewProfile.js +1 -1
  47. package/dist-vue/_chunks/{Agent-CYUPbFnK.js → Agent-BWwjGG2f.js} +2 -1
  48. package/dist-vue/_chunks/{Agent-CYUPbFnK.js.map → Agent-BWwjGG2f.js.map} +1 -1
  49. package/dist-vue/_chunks/{Document-BvZ768dH.js → Document-DvRaziIf.js} +2 -2
  50. package/dist-vue/_chunks/{Document-BvZ768dH.js.map → Document-DvRaziIf.js.map} +1 -1
  51. package/dist-vue/_chunks/{PkChatbot-BVw3-kJg.js → PkChatbot-B7JaLUZw.js} +8 -8
  52. package/dist-vue/_chunks/PkChatbot-B7JaLUZw.js.map +1 -0
  53. package/dist-vue/_chunks/{PkChatbotEmptyState-DuLoc_ym.js → PkChatbotEmptyState-B76oD7fB.js} +2 -2
  54. package/dist-vue/_chunks/{PkChatbotEmptyState-DuLoc_ym.js.map → PkChatbotEmptyState-B76oD7fB.js.map} +1 -1
  55. package/dist-vue/_chunks/PkChatbotFilePreview-CzmGvKjI.js.map +1 -1
  56. package/dist-vue/_chunks/{PkChatbotInput-XbH8I-uH.js → PkChatbotInput-BT51V-v4.js} +2 -2
  57. package/dist-vue/_chunks/{PkChatbotInput-XbH8I-uH.js.map → PkChatbotInput-BT51V-v4.js.map} +1 -1
  58. package/dist-vue/_chunks/PkChatbotMessageFeedback-DltXugdR.js.map +1 -1
  59. package/dist-vue/_chunks/{PkChatbotMessages-DcIpivBs.js → PkChatbotMessages-qkodgdDE.js} +17 -17
  60. package/dist-vue/_chunks/{PkChatbotMessages-DcIpivBs.js.map → PkChatbotMessages-qkodgdDE.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkChatbotStepPayload-DXhatUfJ.js → PkChatbotStepPayload-BYChvULZ.js} +2 -2
  62. package/dist-vue/_chunks/PkChatbotStepPayload-BYChvULZ.js.map +1 -0
  63. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Sm5cPUAO.js → PkChatbotStepToolDetail-BysPl2ko.js} +3 -3
  64. package/dist-vue/_chunks/PkChatbotStepToolDetail-BysPl2ko.js.map +1 -0
  65. package/dist-vue/_chunks/{PkChatbotSteps-CWFBX7Rl.js → PkChatbotSteps-p8-SuGGe.js} +5 -5
  66. package/dist-vue/_chunks/{PkChatbotSteps-CWFBX7Rl.js.map → PkChatbotSteps-p8-SuGGe.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkChatbotViewChat-C_dLjNVo.js → PkChatbotViewChat-Djts78Oq.js} +7 -7
  68. package/dist-vue/_chunks/PkChatbotViewChat-Djts78Oq.js.map +1 -0
  69. package/dist-vue/_chunks/{PkChatbotViewConversations-DgOFajfO.js → PkChatbotViewConversations-4ZJF-y5q.js} +3 -3
  70. package/dist-vue/_chunks/{PkChatbotViewConversations-DgOFajfO.js.map → PkChatbotViewConversations-4ZJF-y5q.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkChatbotViewFiles-DyKSUXeX.js → PkChatbotViewFiles-CfPwNcvf.js} +3 -3
  72. package/dist-vue/_chunks/{PkChatbotViewFiles-DyKSUXeX.js.map → PkChatbotViewFiles-CfPwNcvf.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkChatbotViewProfile-BXrOGpjB.js → PkChatbotViewProfile-Dd8EhOx3.js} +2 -2
  74. package/dist-vue/_chunks/{PkChatbotViewProfile-BXrOGpjB.js.map → PkChatbotViewProfile-Dd8EhOx3.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkStreamingMarkdown-B5vQ1ZZ8.js → PkStreamingMarkdown-B-sEx8BP.js} +378 -372
  76. package/dist-vue/_chunks/PkStreamingMarkdown-B-sEx8BP.js.map +1 -0
  77. package/dist-vue/_chunks/PkToolChatFile-s46esp0O.js +179 -0
  78. package/dist-vue/_chunks/PkToolChatFile-s46esp0O.js.map +1 -0
  79. package/dist-vue/_chunks/{PkToolRequestGeolocation-BHqLXZDd.js → PkToolRequestGeolocation-e8vyxTI_.js} +2 -2
  80. package/dist-vue/_chunks/{PkToolRequestGeolocation-BHqLXZDd.js.map → PkToolRequestGeolocation-e8vyxTI_.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-Cg6T3gzF.js → PkToolRequestOAuthConnection-3zLvNF_c.js} +2 -2
  82. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-Cg6T3gzF.js.map → PkToolRequestOAuthConnection-3zLvNF_c.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolShowArtifact-Clvs-28Q.js → PkToolShowArtifact-BRwa5pGY.js} +2 -2
  84. package/dist-vue/_chunks/{PkToolShowArtifact-Clvs-28Q.js.map → PkToolShowArtifact-BRwa5pGY.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolShowContactForm-DA3KYufo.js → PkToolShowContactForm-xHBTmITM.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolShowContactForm-DA3KYufo.js.map → PkToolShowContactForm-xHBTmITM.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowDiagram-DxPuGWin.js → PkToolShowDiagram-DrJs92dg.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolShowDiagram-DxPuGWin.js.map → PkToolShowDiagram-DrJs92dg.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkToolShowForm-DdA2UM-T.js → PkToolShowForm-Fv4iV0VY.js} +4 -4
  90. package/dist-vue/_chunks/{PkToolShowForm-DdA2UM-T.js.map → PkToolShowForm-Fv4iV0VY.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkToolShowImageGallery-B_dA0S6H.js → PkToolShowImageGallery-DD_RGcL6.js} +2 -2
  92. package/dist-vue/_chunks/{PkToolShowImageGallery-B_dA0S6H.js.map → PkToolShowImageGallery-DD_RGcL6.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolShowProductList-ubDejlbK.js → PkToolShowProductList-8UQSQvRr.js} +2 -2
  94. package/dist-vue/_chunks/{PkToolShowProductList-ubDejlbK.js.map → PkToolShowProductList-8UQSQvRr.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkToolShowSources-CRGyOz2J.js → PkToolShowSources-C4rKpypf.js} +3 -3
  96. package/dist-vue/_chunks/{PkToolShowSources-CRGyOz2J.js.map → PkToolShowSources-C4rKpypf.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkToolShowSuggestedReply-zFmhR7Ju.js → PkToolShowSuggestedReply-Bnhgsh4l.js} +2 -2
  98. package/dist-vue/_chunks/{PkToolShowSuggestedReply-zFmhR7Ju.js.map → PkToolShowSuggestedReply-Bnhgsh4l.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkToolShowVideo-LapBUydt.js → PkToolShowVideo-NOwtZPgI.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolShowVideo-LapBUydt.js.map → PkToolShowVideo-NOwtZPgI.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkToolShowWebPages-CSgdDZF6.js → PkToolShowWebPages-DcPboNwp.js} +2 -2
  102. package/dist-vue/_chunks/{PkToolShowWebPages-CSgdDZF6.js.map → PkToolShowWebPages-DcPboNwp.js.map} +1 -1
  103. package/dist-vue/_chunks/{createChatbotApiClient-rGWQSzZY.js → createChatbotApiClient-y6jA42S0.js} +2 -2
  104. package/dist-vue/_chunks/{createChatbotApiClient-rGWQSzZY.js.map → createChatbotApiClient-y6jA42S0.js.map} +1 -1
  105. package/dist-vue/_chunks/{useChatbotStore-BBUPN1Fa.js → useChatbotStore-DCXyql8U.js} +3 -3
  106. package/dist-vue/_chunks/{useChatbotStore-BBUPN1Fa.js.map → useChatbotStore-DCXyql8U.js.map} +1 -1
  107. package/dist-vue/_chunks/{utils-DAJhpoQS.js → utils-DaAIWTtt.js} +2 -2
  108. package/dist-vue/_chunks/{utils-DAJhpoQS.js.map → utils-DaAIWTtt.js.map} +1 -1
  109. package/dist-vue/api.js +1 -1
  110. package/dist-vue/composables.js +36 -4
  111. package/dist-vue/composables.js.map +1 -1
  112. package/dist-vue/index.js +24 -24
  113. package/dist-vue/index.js.map +1 -1
  114. package/dist-vue/locales.js +36 -4
  115. package/dist-vue/packages/components/src/chat/PkToolChatFile.d.ts +3 -1
  116. package/dist-vue/packages/models/src/schema/Agent.d.ts +1 -0
  117. package/dist-vue/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/_chunks/PkStreamingMarkdown-BAiI6n72.js.map +0 -1
  120. package/dist/_chunks/PkToolChatFile-BuA7AOQ8.js +0 -50
  121. package/dist/_chunks/PkToolChatFile-BuA7AOQ8.js.map +0 -1
  122. package/dist-vue/_chunks/PkChatbot-BVw3-kJg.js.map +0 -1
  123. package/dist-vue/_chunks/PkChatbotStepPayload-DXhatUfJ.js.map +0 -1
  124. package/dist-vue/_chunks/PkChatbotStepToolDetail-Sm5cPUAO.js.map +0 -1
  125. package/dist-vue/_chunks/PkChatbotViewChat-C_dLjNVo.js.map +0 -1
  126. package/dist-vue/_chunks/PkStreamingMarkdown-B5vQ1ZZ8.js.map +0 -1
  127. package/dist-vue/_chunks/PkToolChatFile-BC_DO--d.js +0 -49
  128. package/dist-vue/_chunks/PkToolChatFile-BC_DO--d.js.map +0 -1
@@ -1,49 +0,0 @@
1
- import { E as e, M as t } from "./Agent-CYUPbFnK.js";
2
- import { t as n } from "./PkChatbotFilePreview-CzmGvKjI.js";
3
- import { computed as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, openBlock as c, toDisplayString as l } from "vue";
4
- import { useI18n as u } from "vue-i18n";
5
- // ../../packages/components/src/chat/PkToolChatFile.vue?vue&type=script&setup=true&lang.ts
6
- var d = {
7
- key: 0,
8
- class: "pk-tool-chat-file"
9
- }, f = {
10
- key: 0,
11
- class: "text-12 text-word-3 mt-xs mb-0"
12
- }, p = /* @__PURE__ */ s({
13
- __name: "PkToolChatFile",
14
- props: {
15
- part: {},
16
- fileUrl: { type: Function }
17
- },
18
- setup(s) {
19
- let p = /* @__PURE__ */ new Set(["tool-editWordDocument", "tool-createWordDocument"]), m = s, { t: h } = u({ useScope: "global" }), g = r(() => {
20
- let n = m.part;
21
- if (n.state !== "output-available" || !n.output?.storedFileName) return;
22
- let r = n.output;
23
- return p.has(n.type ?? "") ? {
24
- output: r,
25
- mediaType: t,
26
- changed: r.changedParagraphs === void 0 ? void 0 : h("messagePart.editWordDocumentParagraphs", r.changedParagraphs)
27
- } : {
28
- output: r,
29
- mediaType: e,
30
- changed: r.changedCells === void 0 ? void 0 : h("messagePart.editSpreadsheetCells", r.changedCells)
31
- };
32
- });
33
- return (e, t) => g.value ? (c(), a("div", d, [o(n, {
34
- "media-type": g.value.mediaType,
35
- url: s.fileUrl(g.value.output.storedFileName),
36
- filename: g.value.output.filename,
37
- size: g.value.output.sizeBytes,
38
- "show-download": ""
39
- }, null, 8, [
40
- "media-type",
41
- "url",
42
- "filename",
43
- "size"
44
- ]), g.value.changed ? (c(), a("p", f, l(g.value.changed), 1)) : i("", !0)])) : i("", !0);
45
- }
46
- });
47
- export { p as default };
48
-
49
- //# sourceMappingURL=PkToolChatFile-BC_DO--d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PkToolChatFile-BC_DO--d.js","names":["_openBlock","_createElementBlock","_createVNode","PkChatbotFilePreview","_toDisplayString","_createCommentVNode","_sfc_main","SPREADSHEET_MIME_TYPE","WORD_MIME_TYPE","PkChatbotFilePreview_default","_hoisted_1","_hoisted_2","PkToolChatFile_default","defineComponent","WORD_TOOL_PARTS","props","__props","$t","useI18n","file","computed","part","output","openBlock","createElementBlock","createVNode","toDisplayString","createCommentVNode"],"sources":["../../../../packages/components/src/chat/PkToolChatFile.vue","../../../../packages/components/src/chat/PkToolChatFile.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n import { SPREADSHEET_MIME_TYPE, WORD_MIME_TYPE } from 'models'\n import PkChatbotFilePreview from './PkChatbotFilePreview.vue'\n\n /** What the four file tools return that the card shows. */\n type ChatFileOutput = {\n storedFileName: string\n filename?: string\n sizeBytes?: number\n changedCells?: number\n changedParagraphs?: number\n }\n\n /** The tools whose output is a Word document; the others write a spreadsheet. */\n const WORD_TOOL_PARTS = new Set([\n 'tool-editWordDocument',\n 'tool-createWordDocument',\n ])\n\n /**\n * The file a call of `editSpreadsheet`, `editWordDocument`,\n * `createSpreadsheet` or `createWordDocument` wrote, a new version or a\n * new file, to download. Drawn once the call has an output: while it runs,\n * the feed's activity indicator names it, and a refused call is explained\n * by the answer.\n */\n const props = defineProps<{\n part: unknown\n /** The authenticated download URL of a file stored in this chat. */\n fileUrl: (storedFileName: string) => string\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n const file = computed(() => {\n const part = props.part as {\n type?: string\n state?: string\n output?: Partial<ChatFileOutput>\n }\n if (part.state !== 'output-available' || !part.output?.storedFileName) {\n return undefined\n }\n const output = part.output as ChatFileOutput\n // A new file has no count of changes.\n if (WORD_TOOL_PARTS.has(part.type ?? '')) {\n return {\n output,\n mediaType: WORD_MIME_TYPE,\n changed:\n output.changedParagraphs !== undefined\n ? $t(\n 'messagePart.editWordDocumentParagraphs',\n output.changedParagraphs,\n )\n : undefined,\n }\n }\n return {\n output,\n mediaType: SPREADSHEET_MIME_TYPE,\n changed:\n output.changedCells !== undefined\n ? $t(\n 'messagePart.editSpreadsheetCells',\n output.changedCells,\n )\n : undefined,\n }\n })\n</script>\n\n<template>\n <div v-if=\"file\" class=\"pk-tool-chat-file\">\n <PkChatbotFilePreview\n :media-type=\"file.mediaType\"\n :url=\"fileUrl(file.output.storedFileName)\"\n :filename=\"file.output.filename\"\n :size=\"file.output.sizeBytes\"\n show-download />\n <p v-if=\"file.changed\" class=\"text-12 text-word-3 mt-xs mb-0\">\n {{ file.changed }}\n </p>\n </div>\n</template>\n","<script setup lang=\"ts\">\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n import { SPREADSHEET_MIME_TYPE, WORD_MIME_TYPE } from 'models'\n import PkChatbotFilePreview from './PkChatbotFilePreview.vue'\n\n /** What the four file tools return that the card shows. */\n type ChatFileOutput = {\n storedFileName: string\n filename?: string\n sizeBytes?: number\n changedCells?: number\n changedParagraphs?: number\n }\n\n /** The tools whose output is a Word document; the others write a spreadsheet. */\n const WORD_TOOL_PARTS = new Set([\n 'tool-editWordDocument',\n 'tool-createWordDocument',\n ])\n\n /**\n * The file a call of `editSpreadsheet`, `editWordDocument`,\n * `createSpreadsheet` or `createWordDocument` wrote, a new version or a\n * new file, to download. Drawn once the call has an output: while it runs,\n * the feed's activity indicator names it, and a refused call is explained\n * by the answer.\n */\n const props = defineProps<{\n part: unknown\n /** The authenticated download URL of a file stored in this chat. */\n fileUrl: (storedFileName: string) => string\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n const file = computed(() => {\n const part = props.part as {\n type?: string\n state?: string\n output?: Partial<ChatFileOutput>\n }\n if (part.state !== 'output-available' || !part.output?.storedFileName) {\n return undefined\n }\n const output = part.output as ChatFileOutput\n // A new file has no count of changes.\n if (WORD_TOOL_PARTS.has(part.type ?? '')) {\n return {\n output,\n mediaType: WORD_MIME_TYPE,\n changed:\n output.changedParagraphs !== undefined\n ? $t(\n 'messagePart.editWordDocumentParagraphs',\n output.changedParagraphs,\n )\n : undefined,\n }\n }\n return {\n output,\n mediaType: SPREADSHEET_MIME_TYPE,\n changed:\n output.changedCells !== undefined\n ? $t(\n 'messagePart.editSpreadsheetCells',\n output.changedCells,\n )\n : undefined,\n }\n })\n</script>\n\n<template>\n <div v-if=\"file\" class=\"pk-tool-chat-file\">\n <PkChatbotFilePreview\n :media-type=\"file.mediaType\"\n :url=\"fileUrl(file.output.storedFileName)\"\n :filename=\"file.output.filename\"\n :size=\"file.output.sizeBytes\"\n show-download />\n <p v-if=\"file.changed\" class=\"text-12 text-word-3 mt-xs mb-0\">\n {{ file.changed }}\n </p>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAgBI,IAAMc,oBAAkB,IAAI,IAAI,CAC5B,yBACA,yBACJ,CAAC,GASKC,IAAQC,GAMR,EAAE,GAAGC,MAAOC,EAAQ,EAAE,UAAU,SAAS,CAAC,GAE1CC,IAAOC,QAAe;GACxB,IAAMC,IAAON,EAAM;GAKnB,IAAIM,EAAK,UAAU,sBAAsB,CAACA,EAAK,QAAQ,gBACnD;GAEJ,IAAMC,IAASD,EAAK;GAepB,OAbIP,EAAgB,IAAIO,EAAK,QAAQ,EAAE,IAC5B;IACH;IACA,WAAWb;IACX,SACIc,EAAO,sBAAsB,KAAA,IAKvB,KAAA,IAJAL,EACI,0CACAK,EAAO,iBACX;GAEd,IAEG;IACH;IACA,WAAWf;IACX,SACIe,EAAO,iBAAiB,KAAA,IAKlB,KAAA,IAJAL,EACI,oCACAK,EAAO,YACX;GAEd;EACJ,CAAC;E,iBAIUH,EAAA,SAAXnB,EAAA,GAAAC,EAUM,OAVNS,GAUM,CATFR,EAKoBC,GAAA;GAJf,cAAYgB,EAAA,MAAK;GACjB,KAAKH,EAAA,QAAQG,EAAA,MAAK,OAAO,cAAc;GACvC,UAAUA,EAAA,MAAK,OAAO;GACtB,MAAMA,EAAA,MAAK,OAAO;GACnB,iBAAA;;;;;;E,IACKA,EAAA,MAAK,WAAdnB,EAAA,GAAAC,EAEI,KAFJU,GAEIP,EADGe,EAAA,MAAK,OAAO,GAAA,CAAA,K"}