@8wave/ai-elements 0.125.0-beta.14 → 0.125.0-beta.16
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.
- package/dist/_chunks/{PkFilePreview-rAHDDtGS.js → PkFilePreview-8nVPKv8k.js} +348 -320
- package/dist/_chunks/PkFilePreview-8nVPKv8k.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-BBFrC_rn.js → PkFilePreviewDialog-BHPcGlnF.js} +6 -3
- package/dist/_chunks/PkFilePreviewDialog-BHPcGlnF.js.map +1 -0
- package/dist/ai-elements.es.js +115 -115
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-D48q-ulR.js → PkChatbot-Bpo22_yE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-D48q-ulR.js.map → PkChatbot-Bpo22_yE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-lLX_msKI.js → PkChatbotViewChat-Drp0At_n.js} +284 -284
- package/dist-vue/_chunks/PkChatbotViewChat-Drp0At_n.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-Ac_8QIBX.js → PkFilePreview-z7JcRtjP.js} +527 -499
- package/dist-vue/_chunks/PkFilePreview-z7JcRtjP.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-DGBaeZ8y.js → PkFilePreviewDialog-zVon3aPY.js} +6 -3
- package/dist-vue/_chunks/PkFilePreviewDialog-zVon3aPY.js.map +1 -0
- package/dist-vue/index.js +3 -3
- package/dist-vue/packages/components/src/chat/PkFilePreviewDialog.d.ts +2 -2
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkFilePreview-rAHDDtGS.js.map +0 -1
- package/dist/_chunks/PkFilePreviewDialog-BBFrC_rn.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-lLX_msKI.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-Ac_8QIBX.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreviewDialog-DGBaeZ8y.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as e, N as t, S as n, _ as r, k as i, tt as a, w as o, z as s } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
|
|
2
2
|
import { d as c } from "./index.es-D-aOuzzp.js";
|
|
3
|
-
import { t as l } from "./PkFilePreview-
|
|
3
|
+
import { t as l } from "./PkFilePreview-8nVPKv8k.js";
|
|
4
4
|
import { t as u } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
5
5
|
// ../../packages/components/src/chat/PkFilePreviewDialog.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
i();
|
|
@@ -25,7 +25,10 @@ var d = /*#__PURE__*/ u(/* @__PURE__ */ o({
|
|
|
25
25
|
sheetModifiers: {},
|
|
26
26
|
zoom: {},
|
|
27
27
|
zoomModifiers: {},
|
|
28
|
-
fit: {
|
|
28
|
+
fit: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
},
|
|
29
32
|
fitModifiers: {}
|
|
30
33
|
}),
|
|
31
34
|
emits: /*@__PURE__*/ t([
|
|
@@ -104,4 +107,4 @@ var d = /*#__PURE__*/ u(/* @__PURE__ */ o({
|
|
|
104
107
|
}), [["styles", [".pk-file-preview-dialog:not(.vv-dialog--fullscreen)>article{width:min(90rem,94dvw);height:92dvh}.pk-file-preview-dialog.vv-dialog--fullscreen>article{max-height:none}.pk-file-preview-dialog .vv-dialog__content{flex-direction:column;flex:1;min-height:0;padding:0;display:flex}"]]]);
|
|
105
108
|
export { d as default };
|
|
106
109
|
|
|
107
|
-
//# sourceMappingURL=PkFilePreviewDialog-
|
|
110
|
+
//# sourceMappingURL=PkFilePreviewDialog-BHPcGlnF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PkFilePreviewDialog-BHPcGlnF.js","names":["_useModel","__unplugin_components_0","_openBlock","_createBlock","_withCtx","_createVNode","PkFilePreview","_sfc_main","_style_0","useModel","mergeModels","createVNode","createBlock","init_runtime_core_esm_bundler","withCtx","defineComponent","openBlock","nu","PkFilePreview_default","_plugin_vue_export_helper_default","PkFilePreviewDialog_default","\"mode\"","\"modeModifiers\"","\"sheet\"","\"sheetModifiers\"","\"zoom\"","\"zoomModifiers\"","\"fit\"","\"fitModifiers\"","__emit","emit","mode","__props","sheet","zoom","fit","_component_VvDialog","_cache","$event","text","pointer","action"],"sources":["../../../../packages/components/src/chat/PkFilePreviewDialog.vue","../../../../packages/components/src/chat/PkFilePreviewDialog.vue","../../../../packages/components/src/chat/PkFilePreviewDialog.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n","<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n","<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCI,IAAM8B,IAAOD,GAaPE,IAAO/B,EAA4BgC,GAAC,MAAM,GAC1CC,IAAQjC,EAAmBgC,GAAC,OAAO,GACnCE,IAAOlC,EAAmBgC,GAAC,MAAM,GAGjCG,IAAMnC,EAAoBgC,GAAC,KAAwB;;;GAIzD,OAAA9B,EAAA,GAAAC,EAgCWiC,GAAA;IA/BN,eAAa;IACb,cAAYJ,EAAA,OAAO;IACnB,WAAWA,EAAA,aAAU,eAAkB,KAAA;IACxC,OAAM;IACL,uBAAkB,AAAAK,EAAA,QAAA,MAAA,CAAGC,KAAUR,EAAI,OAAA;;IACpC,SAAA1B,QAyB6B,CAzB7BC,EAyB6BC,GAAA;KAxBjB,MAAMyB,EAAA;KAAA,iBAAA,AAAAM,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,OAAOL,EAAA;KAAA,kBAAA,AAAAI,EAAA,QAAA,MAAA,EAAK,QAAAC;KACZ,MAAMJ,EAAA;KAAA,iBAAA,AAAAG,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,KAAKH,EAAA;KAAA,gBAAA,AAAAE,EAAA,QAAA,MAAA,EAAG,QAAAC;KACf,MAAMN,EAAA,OAAO;KACb,UAAUA,EAAA,OAAO;KACjB,SAASA,EAAA,OAAO;KAChB,UAAAA,EAAA;KACA,gBAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,OAAAA,EAAA;KACA,YAAAA,EAAA;KACA,QAAAA,EAAA;KACA,WAASA,EAAA,OAAO;KAChB,oBAAkBA,EAAA,OAAO;KACzB,qBAAAA,EAAA;KACA,WAAO,AAAAK,EAAA,QAAA,MAAEP,EAAI,WAAYQ,CAAM;KAC/B,WAAO,AAAAD,EAAA,QAAA,MAAEP,EAAI,SAAA;KACb,UAAM,AAAAO,EAAA,QAAA,MAAEP,EAAI,QAAA;KACZ,iBAAc,AAAAO,EAAA,QAAoB,GAAM,GAAS,MAA+BP,EAAI,iBAAkBS,GAAMC,GAASC,CAAM;KAI3H,SAAK,AAAAJ,EAAA,QAAA,MAAEP,EAAI,OAAA"}
|
package/dist/ai-elements.es.js
CHANGED
|
@@ -18181,7 +18181,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18181
18181
|
"selection-action"
|
|
18182
18182
|
],
|
|
18183
18183
|
setup(e, { emit: t }) {
|
|
18184
|
-
let n = E(() => import("./_chunks/PkToolShowForm-DUjR-9o1.js")), r = E(() => import("./_chunks/PkToolShowContactForm-C0ABjvtZ.js")), i = E(() => import("./_chunks/PkToolShowSuggestedReply-B-s_ERZF.js")), a = E(() => import("./_chunks/PkToolShowSources-DhDjNIFa.js")), o = E(() => import("./_chunks/PkToolRequestGeolocation-CUXB6Lkw.js")), s = E(() => import("./_chunks/PkToolRequestOAuthConnection-CoK7s1HA.js")), c = E(() => import("./_chunks/PkToolShowLocation-7Uqe4JnF.js")), l = E(() => import("./_chunks/PkToolShowDiagram-BZbHtEs5.js")), u = E(() => import("./_chunks/PkToolChatFile-Buv7Qkes.js")), d = E(() => import("./_chunks/PkToolShareDocument-kB0qoQda.js")), f = E(() => import("./_chunks/PkFilePreview-
|
|
18184
|
+
let n = E(() => import("./_chunks/PkToolShowForm-DUjR-9o1.js")), r = E(() => import("./_chunks/PkToolShowContactForm-C0ABjvtZ.js")), i = E(() => import("./_chunks/PkToolShowSuggestedReply-B-s_ERZF.js")), a = E(() => import("./_chunks/PkToolShowSources-DhDjNIFa.js")), o = E(() => import("./_chunks/PkToolRequestGeolocation-CUXB6Lkw.js")), s = E(() => import("./_chunks/PkToolRequestOAuthConnection-CoK7s1HA.js")), c = E(() => import("./_chunks/PkToolShowLocation-7Uqe4JnF.js")), l = E(() => import("./_chunks/PkToolShowDiagram-BZbHtEs5.js")), u = E(() => import("./_chunks/PkToolChatFile-Buv7Qkes.js")), d = E(() => import("./_chunks/PkToolShareDocument-kB0qoQda.js")), f = E(() => import("./_chunks/PkFilePreview-8nVPKv8k.js").then((e) => e.n)), p = E(() => import("./_chunks/PkFilePreviewDialog-BHPcGlnF.js")), m = e, h = t, g = Jf(m.agentId), { agentInterface: _, agentFileUpload: v, agentType: y, agentVoice: b, actions: x, revisedAnswers: S, messages: C, chat: w, messageFeedbacks: T, feedbackDialogMessage: D, isFeedbackSubmitting: te, isFeedbackSubmitted: ne, feedbackSubmitError: re, isLeadSubmitted: k, isLoadingSubmitLead: ie, submitLeadError: oe, input: se, inputMessagePlaceholder: ce, isConversationBlocked: le, baseUrl: ue, pendingAttachments: de, isAttachmentLimitReached: fe, fileLimitError: M, apiClient: pe, isDark: N, hostToolsPending: me, pageNoticeLevel: P, hostConfirmation: ge, agentPageAccess: _e, hostStepTitles: ye, hostStepChanges: be, confirmationMode: xe, canQueue: Se, queuedMessages: I, backgroundAnswers: Ce, inputFocusRequest: we, pagePointer: Te, pagePointerAvailable: B, pagePointing: Ee, agentSelectionActions: De } = wr(g);
|
|
18185
18185
|
ee(on, ye), ee(nn, be);
|
|
18186
18186
|
let Oe = he("inputEl");
|
|
18187
18187
|
A(we, () => {
|
|
@@ -18210,28 +18210,33 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18210
18210
|
return t(e) !== t(vt.value) && (Tt.value = {}), St(e);
|
|
18211
18211
|
}, Dt = R(!1), Ot = z(() => !!vt.value && gt.value && !Dt.value), kt = () => {
|
|
18212
18212
|
Ct(), Dt.value = !1;
|
|
18213
|
-
}, At =
|
|
18213
|
+
}, At = /* @__PURE__ */ new Set([
|
|
18214
|
+
"tool-editSpreadsheet",
|
|
18215
|
+
"tool-editWordDocument",
|
|
18216
|
+
"tool-createSpreadsheet",
|
|
18217
|
+
"tool-createWordDocument"
|
|
18218
|
+
]), jt = z(() => {
|
|
18214
18219
|
let e = /* @__PURE__ */ new Map();
|
|
18215
18220
|
for (let t of C.value) for (let n of t.parts) {
|
|
18216
18221
|
let { type: t, state: r, output: i } = n;
|
|
18217
|
-
if (
|
|
18222
|
+
if (At.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
|
|
18218
18223
|
let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
|
|
18219
18224
|
t.set(i.version, i.storedFileName), e.set(i.fileId, t);
|
|
18220
18225
|
}
|
|
18221
18226
|
}
|
|
18222
18227
|
for (let [t, n] of e) n.has(1) || n.set(1, t);
|
|
18223
18228
|
return e;
|
|
18224
|
-
}),
|
|
18225
|
-
let t = vt.value, n =
|
|
18229
|
+
}), Mt = z(() => [...jt.value.get(vt.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), Nt = (e) => {
|
|
18230
|
+
let t = vt.value, n = jt.value.get(t?.fileId ?? "")?.get(e);
|
|
18226
18231
|
t && n && Et({
|
|
18227
18232
|
...t,
|
|
18228
18233
|
version: e,
|
|
18229
18234
|
storedFileName: n
|
|
18230
18235
|
});
|
|
18231
|
-
},
|
|
18232
|
-
let e = vt.value, t =
|
|
18236
|
+
}, Pt = z(() => {
|
|
18237
|
+
let e = vt.value, t = Mt.value;
|
|
18233
18238
|
return !!jn.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
|
|
18234
|
-
}),
|
|
18239
|
+
}), Ft = () => {
|
|
18235
18240
|
let e = vt.value;
|
|
18236
18241
|
e?.fileId && e.version && (jn.value?.({
|
|
18237
18242
|
fileId: e.fileId,
|
|
@@ -18239,134 +18244,129 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18239
18244
|
filename: e.filename
|
|
18240
18245
|
}), kt());
|
|
18241
18246
|
};
|
|
18242
|
-
A(() => g.localChatId, wt), A(
|
|
18247
|
+
A(() => g.localChatId, wt), A(jt, (e, t) => {
|
|
18243
18248
|
let n = vt.value, r = n?.fileId;
|
|
18244
18249
|
if (!r || !n.version) return;
|
|
18245
18250
|
let i = (e) => Math.max(0, ...e?.get(r)?.keys() ?? []), a = i(e);
|
|
18246
|
-
a > i(t) && n.version === i(t) &&
|
|
18251
|
+
a > i(t) && n.version === i(t) && Nt(a);
|
|
18247
18252
|
});
|
|
18248
|
-
let
|
|
18253
|
+
let It = z(() => {
|
|
18249
18254
|
let e = w.value?.status;
|
|
18250
18255
|
if (!(le.value || e === "submitted" || e === "streaming")) return vt.value?.kind === "word" ? De.value?.word : De.value?.excel;
|
|
18251
|
-
}),
|
|
18256
|
+
}), Rt = (e, t, n) => {
|
|
18252
18257
|
g.sendSelection(e, { filePointer: t }) && h("selection-action", {
|
|
18253
18258
|
surface: t.format === "docx" ? "word" : "excel",
|
|
18254
18259
|
action: n.id,
|
|
18255
18260
|
state: "chat",
|
|
18256
18261
|
size: String(n.size)
|
|
18257
18262
|
});
|
|
18258
|
-
},
|
|
18263
|
+
}, zt = async (e) => (await pe.value.expandSourceContext(m.agentId, e.documentId, e.chunkIndex)).content, Bt = async (e) => {
|
|
18259
18264
|
let t = await pe.value.downloadSourceDocument(m.agentId, e);
|
|
18260
18265
|
window.open(t.downloadUrl, "_blank");
|
|
18261
|
-
}, { isOverDropZone:
|
|
18266
|
+
}, { isOverDropZone: Vt } = xn(ut, {
|
|
18262
18267
|
dataTypes: (e) => Je(e, Ae.value?.allowedMimeTypes ?? []),
|
|
18263
18268
|
onDrop: (e) => {
|
|
18264
18269
|
if (Ae.value?.enabled && e) for (let t of e) Ue(t);
|
|
18265
18270
|
}
|
|
18266
|
-
}),
|
|
18271
|
+
}), Ht = R(!1), Ut = !1, Wt = R(!1), Gt = [
|
|
18267
18272
|
3e3,
|
|
18268
18273
|
5e3,
|
|
18269
18274
|
1e4
|
|
18270
|
-
],
|
|
18271
|
-
function
|
|
18272
|
-
clearTimeout(
|
|
18275
|
+
], Kt, qt, Jt = !1, Xt = 0, Zt = !1;
|
|
18276
|
+
function Qt() {
|
|
18277
|
+
clearTimeout(Kt), Kt = void 0, qt = void 0, Jt = !1, Xt = 0, Wt.value = !1;
|
|
18273
18278
|
}
|
|
18274
|
-
function
|
|
18275
|
-
|
|
18276
|
-
|
|
18279
|
+
function $t(e) {
|
|
18280
|
+
Ut || (clearTimeout(Kt), Kt = setTimeout(() => {
|
|
18281
|
+
en();
|
|
18277
18282
|
}, e));
|
|
18278
18283
|
}
|
|
18279
|
-
async function
|
|
18280
|
-
if (
|
|
18281
|
-
|
|
18284
|
+
async function en() {
|
|
18285
|
+
if (Ut || Zt) return;
|
|
18286
|
+
Zt = !0;
|
|
18282
18287
|
let e;
|
|
18283
18288
|
try {
|
|
18284
18289
|
e = await Ge();
|
|
18285
18290
|
} finally {
|
|
18286
|
-
|
|
18291
|
+
Zt = !1;
|
|
18287
18292
|
}
|
|
18288
|
-
if (
|
|
18289
|
-
if (e === "caught-up" && (
|
|
18290
|
-
|
|
18293
|
+
if (Ut) return;
|
|
18294
|
+
if (e === "caught-up" && (Wt.value = !1, Hn()), cn.isActive.value) {
|
|
18295
|
+
qt = void 0, Jt = !1, Xt = 0, $t(wS);
|
|
18291
18296
|
return;
|
|
18292
18297
|
}
|
|
18293
|
-
|
|
18294
|
-
let t = Date.now() -
|
|
18295
|
-
if (e === "caught-up" && t >= (
|
|
18296
|
-
|
|
18298
|
+
qt === void 0 && (qt = Date.now(), Jt = !!cn.error.value);
|
|
18299
|
+
let t = Date.now() - qt;
|
|
18300
|
+
if (e === "caught-up" && t >= (Jt ? ES : TS) || t >= DS) {
|
|
18301
|
+
Qt(), Un();
|
|
18297
18302
|
return;
|
|
18298
18303
|
}
|
|
18299
|
-
let n =
|
|
18300
|
-
|
|
18304
|
+
let n = Gt[Math.min(Xt, Gt.length - 1)];
|
|
18305
|
+
Xt += 1, $t(n);
|
|
18301
18306
|
}
|
|
18302
|
-
let
|
|
18303
|
-
|
|
18304
|
-
},
|
|
18307
|
+
let rn = (e = 1200) => {
|
|
18308
|
+
$t(e);
|
|
18309
|
+
}, sn, cn = lS({
|
|
18305
18310
|
fetchGrant: async () => {
|
|
18306
|
-
|
|
18311
|
+
sn = g.voicePageTools();
|
|
18307
18312
|
let e = await pe.value.createVoiceSession(m.agentId, g.localChatId, {
|
|
18308
18313
|
deviceContext: g.buildDeviceContext(),
|
|
18309
18314
|
externalContext: g.externalContext,
|
|
18310
|
-
pageTools:
|
|
18315
|
+
pageTools: sn?.declaration,
|
|
18311
18316
|
...g.confirmationMode === "automatic" && { confirmations: "automatic" }
|
|
18312
18317
|
});
|
|
18313
18318
|
return e.chatId !== g.localChatId && (g.localChatId = e.chatId), e;
|
|
18314
18319
|
},
|
|
18315
18320
|
closeGrant: (e) => pe.value.closeVoiceSession(m.agentId, e),
|
|
18316
|
-
clientTools: () =>
|
|
18321
|
+
clientTools: () => sn?.clientTools,
|
|
18317
18322
|
onTranscript: (e) => {
|
|
18318
|
-
e.role === "user" ? (
|
|
18323
|
+
e.role === "user" ? (Wt.value = !0, Vn(), Ke({
|
|
18319
18324
|
id: `${kf}user-${kl()}`,
|
|
18320
18325
|
role: "user",
|
|
18321
18326
|
parts: [{
|
|
18322
18327
|
type: "text",
|
|
18323
18328
|
text: e.text
|
|
18324
18329
|
}]
|
|
18325
|
-
})) :
|
|
18330
|
+
})) : Wt.value = !1;
|
|
18326
18331
|
},
|
|
18327
18332
|
onTurnEnd: () => {
|
|
18328
|
-
|
|
18333
|
+
rn();
|
|
18329
18334
|
}
|
|
18330
18335
|
});
|
|
18331
|
-
A(() =>
|
|
18336
|
+
A(() => cn.isActive.value, (e) => {
|
|
18332
18337
|
e || g.cancelVoicePageCalls();
|
|
18333
|
-
}), A(() =>
|
|
18334
|
-
e && (
|
|
18338
|
+
}), A(() => cn.error.value, (e) => {
|
|
18339
|
+
e && (Wt.value = !1);
|
|
18335
18340
|
});
|
|
18336
|
-
let
|
|
18337
|
-
let e =
|
|
18341
|
+
let ln = z(() => b.value?.enabled === !0), un = z(() => cn.error.value ? "error" : cn.isConnecting.value ? "connecting" : cn.isSpeaking.value ? "speaking" : cn.isActive.value ? "listening" : "idle"), dn = z(() => {
|
|
18342
|
+
let e = cn.error.value;
|
|
18338
18343
|
if (e) return /took too long/i.test(e) ? et("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? et("message.voiceNoAnswer") : et("message.voiceInterrupted");
|
|
18339
|
-
}),
|
|
18340
|
-
|
|
18341
|
-
},
|
|
18342
|
-
|
|
18343
|
-
},
|
|
18344
|
-
|
|
18345
|
-
},
|
|
18346
|
-
|
|
18347
|
-
},
|
|
18348
|
-
|
|
18344
|
+
}), fn = z(() => cn.isSpeaking.value ? "output" : "input"), pn = () => cn.readLevel(fn.value), hn = () => cn.readSpectrum(fn.value), gn = async () => {
|
|
18345
|
+
Ht.value = !1, await cn.start(), cn.isActive.value && (Qt(), $t(wS));
|
|
18346
|
+
}, _n = async () => {
|
|
18347
|
+
Wt.value = !1, await cn.stop(), !Ut && rn(0);
|
|
18348
|
+
}, vn = () => {
|
|
18349
|
+
cn.dismissError();
|
|
18350
|
+
}, yn = async () => {
|
|
18351
|
+
cn.dismissError(), await cn.stop(), await gn();
|
|
18352
|
+
}, bn = (e) => e?.toolCallId ?? "", Sn = R(/* @__PURE__ */ new Set()), Cn = (e) => Sn.value.has(bn(e)), Tn = R(/* @__PURE__ */ new Map()), En = (e, t) => cn.isActive.value ? (cn.sendUserMessage(t) && (Sn.value = new Set(Sn.value).add(bn(e)), rn()), !0) : !1, Dn = (e, t, n) => {
|
|
18353
|
+
En(t, Yt(t, n)) || Ve({
|
|
18349
18354
|
tool: e,
|
|
18350
|
-
toolCallId:
|
|
18355
|
+
toolCallId: bn(t),
|
|
18351
18356
|
output: n
|
|
18352
18357
|
});
|
|
18353
|
-
},
|
|
18358
|
+
}, On = (e) => {
|
|
18354
18359
|
let t = e.confirmed ? et("message.voiceConfirmed") : et("message.voiceCancelled");
|
|
18355
|
-
|
|
18360
|
+
En({ toolCallId: e.toolCallId }, t) ? Sn.value.has(e.toolCallId) && (Tn.value = new Map(Tn.value).set(e.toolCallId, e.confirmed)) : Ve({
|
|
18356
18361
|
tool: "requestConfirm",
|
|
18357
18362
|
toolCallId: e.toolCallId,
|
|
18358
18363
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
18359
18364
|
});
|
|
18360
|
-
},
|
|
18361
|
-
"tool-editSpreadsheet",
|
|
18362
|
-
"tool-editWordDocument",
|
|
18363
|
-
"tool-createSpreadsheet",
|
|
18364
|
-
"tool-createWordDocument"
|
|
18365
|
-
]), kn = z(() => {
|
|
18365
|
+
}, kn = z(() => {
|
|
18366
18366
|
let e = /* @__PURE__ */ new Map();
|
|
18367
18367
|
for (let t of C.value) for (let n of t.parts) {
|
|
18368
18368
|
let { type: t, state: r, output: i } = n;
|
|
18369
|
-
|
|
18369
|
+
At.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
|
|
18370
18370
|
}
|
|
18371
18371
|
return e;
|
|
18372
18372
|
}), An = z(() => {
|
|
@@ -18382,35 +18382,35 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18382
18382
|
continue;
|
|
18383
18383
|
}
|
|
18384
18384
|
let { type: e, state: r, output: i } = n;
|
|
18385
|
-
|
|
18385
|
+
At.has(e) && r === "output-available" && i?.filename && t(tn(i.filename, i.version), i.fileId);
|
|
18386
18386
|
}
|
|
18387
18387
|
return e;
|
|
18388
18388
|
}), jn = z(() => le.value ? void 0 : (e) => {
|
|
18389
18389
|
let t = (An.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
|
|
18390
18390
|
se.value = et(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), U();
|
|
18391
18391
|
}), Mn = (e, t) => {
|
|
18392
|
-
|
|
18392
|
+
En(e, t) || (se.value = t, U());
|
|
18393
18393
|
}, Pn = (e, t) => {
|
|
18394
18394
|
let n = t.error ? et("message.voiceLocationRefused") : et("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
18395
|
-
|
|
18395
|
+
En(e, n) || Ve({
|
|
18396
18396
|
tool: "requestGeolocation",
|
|
18397
|
-
toolCallId:
|
|
18397
|
+
toolCallId: bn(e),
|
|
18398
18398
|
output: t
|
|
18399
18399
|
});
|
|
18400
18400
|
}, Fn = (e, t) => {
|
|
18401
|
-
|
|
18401
|
+
En(e, et("message.voiceConnectionDone")) || Ve({
|
|
18402
18402
|
tool: "requestOAuthConnection",
|
|
18403
|
-
toolCallId:
|
|
18403
|
+
toolCallId: bn(e),
|
|
18404
18404
|
output: {
|
|
18405
18405
|
connected: !0,
|
|
18406
18406
|
mcpServerId: t
|
|
18407
18407
|
}
|
|
18408
18408
|
});
|
|
18409
18409
|
}, In = () => {
|
|
18410
|
-
|
|
18410
|
+
Ht.value = !Ht.value, cn.setMuted(Ht.value);
|
|
18411
18411
|
};
|
|
18412
18412
|
ae(() => {
|
|
18413
|
-
|
|
18413
|
+
Ut = !0, Qt();
|
|
18414
18414
|
});
|
|
18415
18415
|
let { pendingWakeup: Rn, isStopping: zn, stop: Bn, spokenTurnStarted: Vn, spokenTurnsWritten: Hn, forgetSpokenTurns: Un } = gS({
|
|
18416
18416
|
agentId: () => m.agentId,
|
|
@@ -18426,7 +18426,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18426
18426
|
ref_key: "chatViewEl",
|
|
18427
18427
|
ref: ut,
|
|
18428
18428
|
class: O(["pk-chatbot-view-chat", {
|
|
18429
|
-
"pk-chatbot-view-chat--dragover": J(
|
|
18429
|
+
"pk-chatbot-view-chat--dragover": J(Vt) && Ae.value?.enabled,
|
|
18430
18430
|
"pk-chatbot-view-chat--empty": ct.value,
|
|
18431
18431
|
"pk-chatbot-view-chat--with-preview": Ot.value && !ft.value
|
|
18432
18432
|
}])
|
|
@@ -18449,7 +18449,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18449
18449
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
18450
18450
|
interactive: "",
|
|
18451
18451
|
messages: J(C),
|
|
18452
|
-
"confirm-verdicts-on-call":
|
|
18452
|
+
"confirm-verdicts-on-call": Tn.value,
|
|
18453
18453
|
status: J(w).status,
|
|
18454
18454
|
error: J(w).error,
|
|
18455
18455
|
"main-color": J(_)?.mainColor,
|
|
@@ -18463,7 +18463,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18463
18463
|
"feedback-error": J(re),
|
|
18464
18464
|
"show-extended-steps": J(_)?.showExtendedSteps,
|
|
18465
18465
|
"hide-reasoning": J(_)?.showReasoning === !1,
|
|
18466
|
-
"awaiting-spoken-answer":
|
|
18466
|
+
"awaiting-spoken-answer": Wt.value,
|
|
18467
18467
|
"host-working": tt.value,
|
|
18468
18468
|
"host-confirmation": J(ge),
|
|
18469
18469
|
"is-dark": J(N),
|
|
@@ -18479,7 +18479,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18479
18479
|
onDownvote: J(Fe),
|
|
18480
18480
|
onFeedback: J(Ie),
|
|
18481
18481
|
onApprovalRespond: J(He),
|
|
18482
|
-
onConfirmRespond:
|
|
18482
|
+
onConfirmRespond: On,
|
|
18483
18483
|
onHostConfirmRespond: J(Ye)
|
|
18484
18484
|
}, {
|
|
18485
18485
|
"tool-showContactForm": G(({ part: e }) => [j(J(r), {
|
|
@@ -18505,14 +18505,14 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18505
18505
|
}, null, 8, ["part", "onSelect"])]),
|
|
18506
18506
|
"tool-showSources": G(({ part: e }) => [j(J(a), {
|
|
18507
18507
|
part: e,
|
|
18508
|
-
"on-expand-context":
|
|
18509
|
-
"on-download":
|
|
18508
|
+
"on-expand-context": zt,
|
|
18509
|
+
"on-download": Bt
|
|
18510
18510
|
}, null, 8, ["part"])]),
|
|
18511
18511
|
"tool-showForm": G(({ part: e }) => [j(W, { mode: "out-in" }, {
|
|
18512
18512
|
default: G(() => [j(J(n), {
|
|
18513
18513
|
part: e,
|
|
18514
|
-
answered:
|
|
18515
|
-
onSelect: (t) =>
|
|
18514
|
+
answered: Cn(e),
|
|
18515
|
+
onSelect: (t) => Dn("showForm", e, t)
|
|
18516
18516
|
}, null, 8, [
|
|
18517
18517
|
"part",
|
|
18518
18518
|
"answered",
|
|
@@ -18524,8 +18524,8 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18524
18524
|
default: G(() => [j(J(n), {
|
|
18525
18525
|
part: e,
|
|
18526
18526
|
"allow-custom-answer": "",
|
|
18527
|
-
answered:
|
|
18528
|
-
onSelect: (t) =>
|
|
18527
|
+
answered: Cn(e),
|
|
18528
|
+
onSelect: (t) => Dn("showMultipleChoice", e, t)
|
|
18529
18529
|
}, null, 8, [
|
|
18530
18530
|
"part",
|
|
18531
18531
|
"answered",
|
|
@@ -18548,7 +18548,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18548
18548
|
])]),
|
|
18549
18549
|
"tool-requestGeolocation": G(({ part: e }) => [j(J(o), {
|
|
18550
18550
|
part: e,
|
|
18551
|
-
"call-live": J(
|
|
18551
|
+
"call-live": J(cn).isActive.value,
|
|
18552
18552
|
"reverse-geocode": (e, t) => J(pe).reverseGeocode(e, t),
|
|
18553
18553
|
onResult: (t) => Pn(e, t)
|
|
18554
18554
|
}, null, 8, [
|
|
@@ -18623,7 +18623,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18623
18623
|
"tool-shareDocument": G(({ part: e }) => [(X(), F(J(d), {
|
|
18624
18624
|
key: J(mn)(e),
|
|
18625
18625
|
part: e,
|
|
18626
|
-
"on-download":
|
|
18626
|
+
"on-download": Bt
|
|
18627
18627
|
}, null, 8, ["part"]))]),
|
|
18628
18628
|
_: 1
|
|
18629
18629
|
}, 8, /* @__PURE__ */ "messages.confirm-verdicts-on-call.status.error.main-color.text-color.revised-answers.actions.message-feedbacks.feedback-message-id.feedback-loading.feedback-submitted.feedback-error.show-extended-steps.hide-reasoning.awaiting-spoken-answer.host-working.host-confirmation.is-dark.show-scroll-to-bottom.onRegenerate.onAutoRetry.onResetChat.onUpvote.onDownvote.onFeedback.onApprovalRespond.onHostConfirmRespond".split(".")))]),
|
|
@@ -18665,7 +18665,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18665
18665
|
"stopping",
|
|
18666
18666
|
"onStop"
|
|
18667
18667
|
])) : K("", !0),
|
|
18668
|
-
J(le) ? (X(), Y("div", yS, V(J(et)("message.chatErrorConversationBlocked")), 1)) :
|
|
18668
|
+
J(le) ? (X(), Y("div", yS, V(J(et)("message.chatErrorConversationBlocked")), 1)) : un.value === "idle" ? (X(), F(Vx, {
|
|
18669
18669
|
key: 3,
|
|
18670
18670
|
ref_key: "inputEl",
|
|
18671
18671
|
ref: Oe,
|
|
@@ -18681,7 +18681,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18681
18681
|
"file-upload": Ae.value,
|
|
18682
18682
|
"attachment-limit-reached": J(fe),
|
|
18683
18683
|
"attachment-notice": at.value,
|
|
18684
|
-
"voice-enabled":
|
|
18684
|
+
"voice-enabled": ln.value,
|
|
18685
18685
|
"queue-enabled": J(Se),
|
|
18686
18686
|
"answer-notices": Z.value,
|
|
18687
18687
|
"pointer-available": J(B),
|
|
@@ -18698,7 +18698,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18698
18698
|
onDismissPageNotice: J(qe),
|
|
18699
18699
|
onOpenAnswerNotice: J(Qe),
|
|
18700
18700
|
onDismissAnswerNotice: J($e),
|
|
18701
|
-
onVoiceStart:
|
|
18701
|
+
onVoiceStart: gn
|
|
18702
18702
|
}, ve({ _: 2 }, [e.modifier === "fullscreen" ? {
|
|
18703
18703
|
name: "prepend",
|
|
18704
18704
|
fn: G(() => [L("span", bS, [j(Tv, {
|
|
@@ -18734,19 +18734,19 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18734
18734
|
"onDismissAnswerNotice"
|
|
18735
18735
|
])) : (X(), F(iS, {
|
|
18736
18736
|
key: 2,
|
|
18737
|
-
state:
|
|
18738
|
-
sample:
|
|
18739
|
-
spectrum:
|
|
18740
|
-
"remaining-seconds": J(
|
|
18741
|
-
muted:
|
|
18742
|
-
error:
|
|
18743
|
-
"raw-error": J(
|
|
18744
|
-
live: J(
|
|
18737
|
+
state: un.value,
|
|
18738
|
+
sample: pn,
|
|
18739
|
+
spectrum: hn,
|
|
18740
|
+
"remaining-seconds": J(cn).remainingSeconds.value,
|
|
18741
|
+
muted: Ht.value,
|
|
18742
|
+
error: dn.value,
|
|
18743
|
+
"raw-error": J(cn).error.value,
|
|
18744
|
+
live: J(cn).isActive.value,
|
|
18745
18745
|
class: "pk-chatbot-view-chat__voice",
|
|
18746
18746
|
onToggleMute: In,
|
|
18747
|
-
onHangUp:
|
|
18748
|
-
onRetry:
|
|
18749
|
-
onDismiss:
|
|
18747
|
+
onHangUp: _n,
|
|
18748
|
+
onRetry: yn,
|
|
18749
|
+
onDismiss: vn
|
|
18750
18750
|
}, null, 8, [
|
|
18751
18751
|
"state",
|
|
18752
18752
|
"remaining-seconds",
|
|
@@ -18757,7 +18757,7 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18757
18757
|
]))
|
|
18758
18758
|
]),
|
|
18759
18759
|
j(W, null, {
|
|
18760
|
-
default: G(() => [J(
|
|
18760
|
+
default: G(() => [J(Vt) && Ae.value?.enabled ? (X(), Y("div", SS, [j(y, {
|
|
18761
18761
|
name: "ri:upload-cloud-2-line",
|
|
18762
18762
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
18763
18763
|
}), L("span", null, V(J(et)("action.dropFile")), 1)])) : K("", !0)]),
|
|
@@ -18780,20 +18780,20 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18780
18780
|
kind: J(vt).kind,
|
|
18781
18781
|
filename: J(vt).filename,
|
|
18782
18782
|
version: J(vt).version,
|
|
18783
|
-
versions:
|
|
18783
|
+
versions: Mt.value,
|
|
18784
18784
|
"download-url": je(J(vt).storedFileName),
|
|
18785
18785
|
preview: J(yt),
|
|
18786
18786
|
loading: J(bt),
|
|
18787
18787
|
error: J(xt),
|
|
18788
|
-
restorable:
|
|
18788
|
+
restorable: Pt.value,
|
|
18789
18789
|
resize: "expand",
|
|
18790
18790
|
"file-id": J(vt).fileId,
|
|
18791
18791
|
"stored-file-name": J(vt).storedFileName,
|
|
18792
|
-
"selection-actions":
|
|
18793
|
-
onVersion:
|
|
18794
|
-
onRestore:
|
|
18792
|
+
"selection-actions": It.value,
|
|
18793
|
+
onVersion: Nt,
|
|
18794
|
+
onRestore: Ft,
|
|
18795
18795
|
onResize: v[13] ||= (e) => Dt.value = !0,
|
|
18796
|
-
onSelectionSend:
|
|
18796
|
+
onSelectionSend: Rt,
|
|
18797
18797
|
onClose: kt
|
|
18798
18798
|
}, null, 8, [
|
|
18799
18799
|
"mode",
|
|
@@ -18824,19 +18824,19 @@ var vS = { class: "pk-chatbot-view-chat__input-stage" }, yS = {
|
|
|
18824
18824
|
fit: Tt.value.fit,
|
|
18825
18825
|
"onUpdate:fit": v[17] ||= (e) => Tt.value.fit = e,
|
|
18826
18826
|
target: J(vt),
|
|
18827
|
-
versions:
|
|
18827
|
+
versions: Mt.value,
|
|
18828
18828
|
"download-url": je(J(vt).storedFileName),
|
|
18829
18829
|
preview: J(yt),
|
|
18830
18830
|
loading: J(bt),
|
|
18831
18831
|
error: J(xt),
|
|
18832
|
-
restorable:
|
|
18832
|
+
restorable: Pt.value,
|
|
18833
18833
|
resize: gt.value ? "shrink" : void 0,
|
|
18834
18834
|
fullscreen: _t.value,
|
|
18835
|
-
"selection-actions":
|
|
18836
|
-
onVersion:
|
|
18837
|
-
onRestore:
|
|
18835
|
+
"selection-actions": It.value,
|
|
18836
|
+
onVersion: Nt,
|
|
18837
|
+
onRestore: Ft,
|
|
18838
18838
|
onResize: v[18] ||= (e) => Dt.value = !1,
|
|
18839
|
-
onSelectionSend:
|
|
18839
|
+
onSelectionSend: Rt,
|
|
18840
18840
|
onClose: kt
|
|
18841
18841
|
}, null, 8, [
|
|
18842
18842
|
"mode",
|