@8wave/ai-elements 0.125.0-beta.17 → 0.125.0-beta.18
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/README.md +1 -0
- package/dist/_chunks/{PkChatbotFilePreview-xDlDvl5m.js → PkChatbotFilePreview-CFGqa-tX.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-xDlDvl5m.js.map → PkChatbotFilePreview-CFGqa-tX.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-BFTTLuPc.js → PkStreamingMarkdown-CqLpNWQv.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-BFTTLuPc.js.map → PkStreamingMarkdown-CqLpNWQv.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-Buv7Qkes.js → PkToolChatFile-iE4ZokYD.js} +2 -2
- package/dist/_chunks/{PkToolChatFile-Buv7Qkes.js.map → PkToolChatFile-iE4ZokYD.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-kB0qoQda.js → PkToolShareDocument-lTHNZodf.js} +2 -2
- package/dist/_chunks/{PkToolShareDocument-kB0qoQda.js.map → PkToolShareDocument-lTHNZodf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-ClYqvIqB.js → PkToolShowArtifact-BNQrM5fY.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-ClYqvIqB.js.map → PkToolShowArtifact-BNQrM5fY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-C0ABjvtZ.js → PkToolShowContactForm-CvQoLumn.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-C0ABjvtZ.js.map → PkToolShowContactForm-CvQoLumn.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-BZbHtEs5.js → PkToolShowDiagram-COt1Z3q9.js} +2 -2
- package/dist/_chunks/{PkToolShowDiagram-BZbHtEs5.js.map → PkToolShowDiagram-COt1Z3q9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DUjR-9o1.js → PkToolShowForm-DcPccCEU.js} +2 -2
- package/dist/_chunks/{PkToolShowForm-DUjR-9o1.js.map → PkToolShowForm-DcPccCEU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CNU2Zvso.js → PkToolShowImageGallery-DefXra8-.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-CNU2Zvso.js.map → PkToolShowImageGallery-DefXra8-.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DhDjNIFa.js → PkToolShowSources-BE3Zv_uz.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-DhDjNIFa.js.map → PkToolShowSources-BE3Zv_uz.js.map} +1 -1
- package/dist/_chunks/{useLightbox-BEEzZ0qT.js → useLightbox-D2Zi-Fpe.js} +72 -13
- package/dist/_chunks/useLightbox-D2Zi-Fpe.js.map +1 -0
- package/dist/ai-elements.es.js +295 -266
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotFilePreview.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-BtUaZ-LR.js → PkChatbot-DCGQnndK.js} +7 -7
- package/dist-vue/_chunks/{PkChatbot-BtUaZ-LR.js.map → PkChatbot-DCGQnndK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DJIkAskP.js → PkChatbotEmptyState-COya3H3C.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DJIkAskP.js.map → PkChatbotEmptyState-COya3H3C.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFilePreview-BpVM850N.js → PkChatbotFilePreview-BsvT6orx.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFilePreview-BpVM850N.js.map → PkChatbotFilePreview-BsvT6orx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-DzqaW3EE.js → PkChatbotInput-D0KUEkAs.js} +5 -4
- package/dist-vue/_chunks/PkChatbotInput-D0KUEkAs.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-vkbq5p1X.js → PkChatbotMessages-l-IzEWsN.js} +17 -17
- package/dist-vue/_chunks/{PkChatbotMessages-vkbq5p1X.js.map → PkChatbotMessages-l-IzEWsN.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-D5yz8lut.js → PkChatbotSteps-_Aqft0em.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotSteps-D5yz8lut.js.map → PkChatbotSteps-_Aqft0em.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DCPRePrE.js → PkChatbotViewChat-CHvtUHuO.js} +179 -177
- package/dist-vue/_chunks/PkChatbotViewChat-CHvtUHuO.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-BBd3XMmM.js → PkChatbotViewConversations-7JU_5-F2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-BBd3XMmM.js.map → PkChatbotViewConversations-7JU_5-F2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-BiQzDqJg.js → PkChatbotViewFiles-D53wtRPS.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-BiQzDqJg.js.map → PkChatbotViewFiles-D53wtRPS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-7266UiRM.js → PkChatbotViewProfile-BRlLIofM.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-7266UiRM.js.map → PkChatbotViewProfile-BRlLIofM.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-C3UGCEXm.js → PkStreamingMarkdown-2FN4WMQD.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-C3UGCEXm.js.map → PkStreamingMarkdown-2FN4WMQD.js.map} +1 -1
- package/dist-vue/_chunks/{PkSvgViewer-DmkElalq.js → PkSvgViewer-BsdSOBpH.js} +2 -2
- package/dist-vue/_chunks/{PkSvgViewer-DmkElalq.js.map → PkSvgViewer-BsdSOBpH.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-Dy0rGC29.js → PkToolChatFile-DAT1tv52.js} +2 -2
- package/dist-vue/_chunks/{PkToolChatFile-Dy0rGC29.js.map → PkToolChatFile-DAT1tv52.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShareDocument-BIZkgcJ3.js → PkToolShareDocument-Qb2Lu5vh.js} +2 -2
- package/dist-vue/_chunks/{PkToolShareDocument-BIZkgcJ3.js.map → PkToolShareDocument-Qb2Lu5vh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-B7udnhpb.js → PkToolShowArtifact-Bskomw05.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-B7udnhpb.js.map → PkToolShowArtifact-Bskomw05.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-0SEgxn2S.js → PkToolShowContactForm-iQrlqv7j.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-0SEgxn2S.js.map → PkToolShowContactForm-iQrlqv7j.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BqHBhZgd.js → PkToolShowDiagram-C-43uUoh.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BqHBhZgd.js.map → PkToolShowDiagram-C-43uUoh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-C4n_3mFL.js → PkToolShowForm-CKXpqQxy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowForm-C4n_3mFL.js.map → PkToolShowForm-CKXpqQxy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DEpdtLns.js → PkToolShowImageGallery-DLTn6JmU.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowImageGallery-DEpdtLns.js.map → PkToolShowImageGallery-DLTn6JmU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowLocation-DCPaDtBI.js → PkToolShowLocation-B8FE_Sqd.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowLocation-DCPaDtBI.js.map → PkToolShowLocation-B8FE_Sqd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-Bm2NLUGS.js → PkToolShowProductList-hhSBAQVC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-Bm2NLUGS.js.map → PkToolShowProductList-hhSBAQVC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DwFqlit2.js → PkToolShowSources-BiP9fVV2.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-DwFqlit2.js.map → PkToolShowSources-BiP9fVV2.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-BLEJ8tng.js → PkToolShowVideo-DJhsbDuX.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-BLEJ8tng.js.map → PkToolShowVideo-DJhsbDuX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CeAXllAF.js → PkToolShowWebPages-BAv66f5H.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CeAXllAF.js.map → PkToolShowWebPages-BAv66f5H.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BPN6cLGF.js → createChatbotApiClient-DO4_I5hT.js} +8 -1
- package/dist-vue/_chunks/createChatbotApiClient-DO4_I5hT.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-C4xhJtrb.js → useChatbotStore-Bj00X4yT.js} +45 -32
- package/dist-vue/_chunks/useChatbotStore-Bj00X4yT.js.map +1 -0
- package/dist-vue/_chunks/{useLightbox-gSzoBgNv.js → useLightbox-FDyQrPWe.js} +72 -13
- package/dist-vue/_chunks/useLightbox-FDyQrPWe.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +8 -2
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +24 -24
- package/dist-vue/locales.js +6 -0
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +2 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +6 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +4 -1
- package/package.json +1 -1
- package/dist/_chunks/useLightbox-BEEzZ0qT.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-DzqaW3EE.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-DCPRePrE.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BPN6cLGF.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-C4xhJtrb.js.map +0 -1
- package/dist-vue/_chunks/useLightbox-gSzoBgNv.js.map +0 -1
package/dist/ai-elements.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { C as e, E as t, S as n, T as r, _ as i, a, b as o, d as s, f as c, g as
|
|
|
3
3
|
import { $ as ee, A as w, B as te, C as T, Ct as E, D as ne, Dt as re, E as D, Et as O, F as k, H as ie, I as ae, J as A, L as oe, N as se, O as ce, Ot as le, P as ue, Q as j, R as de, S as M, St as N, T as fe, Tt as P, V as pe, W as F, X as me, Y as he, _ as I, at as ge, b as _e, bt as ve, ct as ye, d as be, dt as xe, f as L, ft as Se, g as R, gt as z, h as B, i as Ce, it as we, k as V, kt as H, l as Te, lt as Ee, mt as De, n as Oe, nt as ke, ot as U, p as Ae, pt as je, q as Me, r as Ne, t as W, tt as G, u as Pe, ut as Fe, v as K, vt as Ie, w as q, wt as J, x as Le, xt as Re, y as Y, yt as ze, z as X } from "./_chunks/vue.runtime.esm-bundler-C2U5uTqB.js";
|
|
4
4
|
import { n as Be, r as Ve, t as He } from "./_chunks/vue-i18n-POtLvOl1.js";
|
|
5
5
|
import { i as Ue, n as We, r as Ge } from "./_chunks/iconify-oSMMdRMF.js";
|
|
6
|
-
import { t as Ke } from "./_chunks/PkStreamingMarkdown-
|
|
6
|
+
import { t as Ke } from "./_chunks/PkStreamingMarkdown-CqLpNWQv.js";
|
|
7
7
|
import { A as qe, B as Je, D as Ye, E as Xe, F as Ze, I as Qe, L as $e, M as et, N as tt, O as nt, R as rt, S as it, T as at, _ as Z, a as ot, b as st, c as ct, d as lt, g as ut, h as dt, i as ft, j as pt, k as mt, l as ht, n as gt, o as _t, r as vt, s as yt, u as bt, w as xt, x as St } from "./_chunks/Agent-CCBs3D5I.js";
|
|
8
8
|
import { a as Ct, i as wt, n as Tt, t as Et } from "./_chunks/markdown-Ou0WulrH.js";
|
|
9
9
|
import { n as Dt } from "./_chunks/src-JJyCGvqH.js";
|
|
@@ -18,8 +18,8 @@ import { t as Gn } from "./_chunks/useImageFallback-BePGTrF3.js";
|
|
|
18
18
|
import { n as Kn, t as qn } from "./_chunks/PkSelectionActions-CUymhwsG.js";
|
|
19
19
|
import { t as Jn } from "./_chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
20
20
|
import { t as Yn } from "./_chunks/chatImagePolicy-Df31QSRJ.js";
|
|
21
|
-
import { t as Xn } from "./_chunks/useLightbox-
|
|
22
|
-
import { t as Zn } from "./_chunks/PkChatbotFilePreview-
|
|
21
|
+
import { t as Xn } from "./_chunks/useLightbox-D2Zi-Fpe.js";
|
|
22
|
+
import { t as Zn } from "./_chunks/PkChatbotFilePreview-CFGqa-tX.js";
|
|
23
23
|
// ../../node_modules/.pnpm/pinia@4.1.0_@vue+devtools-api@8.2.1_typescript@6.0.3_vue@3.5.44_typescript@6.0.3_/node_modules/pinia/dist/pinia.js
|
|
24
24
|
V(), U();
|
|
25
25
|
var Qn = typeof window < "u", $n, er = (e) => $n = e, tr = Symbol();
|
|
@@ -1492,6 +1492,9 @@ var jr = {
|
|
|
1492
1492
|
noHeadings: "Il documento non ha titoli."
|
|
1493
1493
|
},
|
|
1494
1494
|
lightbox: {
|
|
1495
|
+
copy: "Copia immagine",
|
|
1496
|
+
copied: "Immagine copiata",
|
|
1497
|
+
copyFailed: "Non è stato possibile copiare l'immagine",
|
|
1495
1498
|
openInNewTab: "Apri in una nuova scheda",
|
|
1496
1499
|
zoom: "Ingrandisci o riduci"
|
|
1497
1500
|
},
|
|
@@ -3641,6 +3644,9 @@ var jr = {
|
|
|
3641
3644
|
noHeadings: "The document has no headings."
|
|
3642
3645
|
},
|
|
3643
3646
|
lightbox: {
|
|
3647
|
+
copy: "Copy image",
|
|
3648
|
+
copied: "Image copied",
|
|
3649
|
+
copyFailed: "The image could not be copied",
|
|
3644
3650
|
openInNewTab: "Open in a new tab",
|
|
3645
3651
|
zoom: "Zoom in or out"
|
|
3646
3652
|
},
|
|
@@ -7188,6 +7194,13 @@ function Lc(e) {
|
|
|
7188
7194
|
}
|
|
7189
7195
|
return o.json();
|
|
7190
7196
|
},
|
|
7197
|
+
async discardMedia(e) {
|
|
7198
|
+
await i("/medias/discard", {
|
|
7199
|
+
method: "POST",
|
|
7200
|
+
headers: { "Content-Type": "application/json" },
|
|
7201
|
+
body: JSON.stringify(e)
|
|
7202
|
+
}, "void");
|
|
7203
|
+
},
|
|
7191
7204
|
getChatEndpoint(e, t = "chat") {
|
|
7192
7205
|
return `${n}/agents/${encodeURIComponent(e)}/${t === "reasoning" ? "reasoning-chat" : "chat"}`;
|
|
7193
7206
|
},
|
|
@@ -11554,7 +11567,7 @@ function ep(e) {
|
|
|
11554
11567
|
title: ft.value.find((t) => t.id === e)?.title || Ze.value[e] || void 0
|
|
11555
11568
|
})));
|
|
11556
11569
|
function Rn(e) {
|
|
11557
|
-
it(e), F.value = e,
|
|
11570
|
+
it(e), F.value = e, dr("chat");
|
|
11558
11571
|
}
|
|
11559
11572
|
function zn(e) {
|
|
11560
11573
|
Xe.value = Xe.value.filter((t) => t !== e), rt(e);
|
|
@@ -11580,7 +11593,7 @@ function ep(e) {
|
|
|
11580
11593
|
Pt.value = [], Qn.value = null;
|
|
11581
11594
|
}
|
|
11582
11595
|
async function Un() {
|
|
11583
|
-
return Ft.value = "", oe.value = {}, se.value = {}, F.value = Fl(), await k(), Z.value.clearError(), Ce.value = void 0, we.value = !1, Vn(!0),
|
|
11596
|
+
return Ft.value = "", oe.value = {}, se.value = {}, F.value = Fl(), await k(), Z.value.clearError(), Ce.value = void 0, we.value = !1, Vn(!0), dr("chat"), F.value;
|
|
11584
11597
|
}
|
|
11585
11598
|
async function Wn(e) {
|
|
11586
11599
|
Z.value.status !== "ready" && (Ft.value = "", await wn()), Be(), await Z.value.regenerate(e);
|
|
@@ -11626,6 +11639,10 @@ function ep(e) {
|
|
|
11626
11639
|
Pt.value = [...Pt.value, n];
|
|
11627
11640
|
try {
|
|
11628
11641
|
let n = await Ee.value.uploadMedia(o.value, F.value, e);
|
|
11642
|
+
if (!Pt.value.some((e) => e.id === t)) {
|
|
11643
|
+
await nr(n);
|
|
11644
|
+
return;
|
|
11645
|
+
}
|
|
11629
11646
|
Pt.value = Pt.value.map((e) => e.id === t ? {
|
|
11630
11647
|
...e,
|
|
11631
11648
|
state: "done",
|
|
@@ -11640,7 +11657,15 @@ function ep(e) {
|
|
|
11640
11657
|
} : e);
|
|
11641
11658
|
}
|
|
11642
11659
|
}
|
|
11643
|
-
async function tr(e
|
|
11660
|
+
async function tr(e) {
|
|
11661
|
+
e.mediaSource && await nr(e.mediaSource);
|
|
11662
|
+
}
|
|
11663
|
+
async function nr(e) {
|
|
11664
|
+
try {
|
|
11665
|
+
await Ee.value.discardMedia(e);
|
|
11666
|
+
} catch {}
|
|
11667
|
+
}
|
|
11668
|
+
async function rr(e, t) {
|
|
11644
11669
|
let { userQuestion: n, assistantMessage: r } = _n(e);
|
|
11645
11670
|
gn(await Ee.value.submitMessageFeedback({
|
|
11646
11671
|
messageId: e.id,
|
|
@@ -11651,16 +11676,16 @@ function ep(e) {
|
|
|
11651
11676
|
assistantMessage: r
|
|
11652
11677
|
}));
|
|
11653
11678
|
}
|
|
11654
|
-
async function
|
|
11655
|
-
await
|
|
11679
|
+
async function ir(e) {
|
|
11680
|
+
await rr(e, "upvote");
|
|
11656
11681
|
}
|
|
11657
|
-
async function
|
|
11658
|
-
await
|
|
11682
|
+
async function ar(e) {
|
|
11683
|
+
await rr(e, "downvote");
|
|
11659
11684
|
}
|
|
11660
|
-
function
|
|
11685
|
+
function or(e) {
|
|
11661
11686
|
Ot.value = !1, kt.value = void 0, Tt.value = e;
|
|
11662
11687
|
}
|
|
11663
|
-
async function
|
|
11688
|
+
async function sr(e) {
|
|
11664
11689
|
if (Tt.value) try {
|
|
11665
11690
|
Et.value = !0, Ot.value = !1, kt.value = void 0;
|
|
11666
11691
|
let { userQuestion: t, assistantMessage: n } = _n(Tt.value);
|
|
@@ -11678,7 +11703,7 @@ function ep(e) {
|
|
|
11678
11703
|
Et.value = !1;
|
|
11679
11704
|
}
|
|
11680
11705
|
}
|
|
11681
|
-
async function
|
|
11706
|
+
async function cr(e) {
|
|
11682
11707
|
try {
|
|
11683
11708
|
jt.value = !0, At.value = !1, Mt.value = void 0, await Ee.value.submitLead({
|
|
11684
11709
|
agentId: o.value,
|
|
@@ -11691,32 +11716,32 @@ function ep(e) {
|
|
|
11691
11716
|
jt.value = !1;
|
|
11692
11717
|
}
|
|
11693
11718
|
}
|
|
11694
|
-
async function
|
|
11719
|
+
async function lr(e, t) {
|
|
11695
11720
|
let n = await Ee.value.updateChatTitle(o.value, e, t);
|
|
11696
11721
|
ft.value = ft.value.map((t) => t.id === e ? {
|
|
11697
11722
|
...t,
|
|
11698
11723
|
title: n.title
|
|
11699
11724
|
} : t);
|
|
11700
11725
|
}
|
|
11701
|
-
async function
|
|
11726
|
+
async function ur(e) {
|
|
11702
11727
|
await Ee.value.deleteChat(o.value, e), ft.value = ft.value.filter((t) => t.id !== e), F.value === e && await Un();
|
|
11703
11728
|
}
|
|
11704
|
-
function
|
|
11729
|
+
function dr(e) {
|
|
11705
11730
|
St.value = e;
|
|
11706
11731
|
}
|
|
11707
|
-
function
|
|
11708
|
-
|
|
11732
|
+
function fr() {
|
|
11733
|
+
dr("chat"), Ct.value++;
|
|
11709
11734
|
}
|
|
11710
|
-
let
|
|
11711
|
-
function
|
|
11735
|
+
let pr;
|
|
11736
|
+
function mr(e) {
|
|
11712
11737
|
let t = () => Ee.value.getChat(o.value, e).then((e) => e !== null);
|
|
11713
11738
|
return t().catch(() => t().catch(() => !1));
|
|
11714
11739
|
}
|
|
11715
11740
|
return j(l, async (e) => {
|
|
11716
|
-
if (!e || e ===
|
|
11717
|
-
let t =
|
|
11718
|
-
if (
|
|
11719
|
-
let n = F.value, r = !fe.value && await
|
|
11741
|
+
if (!e || e === pr) return;
|
|
11742
|
+
let t = pr;
|
|
11743
|
+
if (pr = e, t === void 0) return;
|
|
11744
|
+
let n = F.value, r = !fe.value && await mr(n);
|
|
11720
11745
|
l.value === e && F.value === n && (r ? qt(o.value) : (ft.value = [], wt.value = [], bt.value = [], Je.value = [], Ye.value = [], Xe.value = [], Ze.value = {}, await Un(), Nt.value = ""));
|
|
11721
11746
|
}), {
|
|
11722
11747
|
apiClient: Ee,
|
|
@@ -11826,17 +11851,18 @@ function ep(e) {
|
|
|
11826
11851
|
addToolOutput: Gn,
|
|
11827
11852
|
addToolApprovalResponse: Kn,
|
|
11828
11853
|
handleFileSelect: er,
|
|
11854
|
+
discardPendingAttachment: tr,
|
|
11829
11855
|
clearFileLimitError: $n,
|
|
11830
11856
|
clearPendingAttachments: Vn,
|
|
11831
|
-
onUpvote:
|
|
11832
|
-
onDownvote:
|
|
11833
|
-
onFeedback:
|
|
11834
|
-
onFeedbackSubmit:
|
|
11835
|
-
onLeadSubmit:
|
|
11836
|
-
navigate:
|
|
11837
|
-
focusInput:
|
|
11838
|
-
renameChatTitle:
|
|
11839
|
-
deleteChat:
|
|
11857
|
+
onUpvote: ir,
|
|
11858
|
+
onDownvote: ar,
|
|
11859
|
+
onFeedback: or,
|
|
11860
|
+
onFeedbackSubmit: sr,
|
|
11861
|
+
onLeadSubmit: cr,
|
|
11862
|
+
navigate: dr,
|
|
11863
|
+
focusInput: fr,
|
|
11864
|
+
renameChatTitle: lr,
|
|
11865
|
+
deleteChat: ur
|
|
11840
11866
|
};
|
|
11841
11867
|
})();
|
|
11842
11868
|
}
|
|
@@ -15710,21 +15736,21 @@ var vy = ["datetime"], yy = 6e4, by = /* @__PURE__ */ q({
|
|
|
15710
15736
|
V();
|
|
15711
15737
|
var xy = {
|
|
15712
15738
|
requestOAuthConnection: T(() => import("./_chunks/PkToolRequestOAuthConnection-CoK7s1HA.js")),
|
|
15713
|
-
shareDocument: T(() => import("./_chunks/PkToolShareDocument-
|
|
15714
|
-
showArtifact: T(() => import("./_chunks/PkToolShowArtifact-
|
|
15739
|
+
shareDocument: T(() => import("./_chunks/PkToolShareDocument-lTHNZodf.js")),
|
|
15740
|
+
showArtifact: T(() => import("./_chunks/PkToolShowArtifact-BNQrM5fY.js")),
|
|
15715
15741
|
showCalendarEvent: T(() => import("./_chunks/PkToolShowCalendarEvent-Cq_ApwVL.js")),
|
|
15716
15742
|
showComparison: T(() => import("./_chunks/PkToolShowComparison-CmIDi-5O.js")),
|
|
15717
|
-
showContactForm: T(() => import("./_chunks/PkToolShowContactForm-
|
|
15718
|
-
showDiagram: T(() => import("./_chunks/PkToolShowDiagram-
|
|
15743
|
+
showContactForm: T(() => import("./_chunks/PkToolShowContactForm-CvQoLumn.js")),
|
|
15744
|
+
showDiagram: T(() => import("./_chunks/PkToolShowDiagram-COt1Z3q9.js")),
|
|
15719
15745
|
showEmail: T(() => import("./_chunks/PkToolShowEmail-Cdwe_01-.js")),
|
|
15720
|
-
showImageGallery: T(() => import("./_chunks/PkToolShowImageGallery-
|
|
15746
|
+
showImageGallery: T(() => import("./_chunks/PkToolShowImageGallery-DefXra8-.js")),
|
|
15721
15747
|
showLocation: T(() => import("./_chunks/PkToolShowLocation-7Uqe4JnF.js")),
|
|
15722
15748
|
showMessage: T(() => import("./_chunks/PkToolShowMessage-BPugVukY.js")),
|
|
15723
|
-
showForm: T(() => import("./_chunks/PkToolShowForm-
|
|
15724
|
-
showMultipleChoice: T(() => import("./_chunks/PkToolShowForm-
|
|
15749
|
+
showForm: T(() => import("./_chunks/PkToolShowForm-DcPccCEU.js")),
|
|
15750
|
+
showMultipleChoice: T(() => import("./_chunks/PkToolShowForm-DcPccCEU.js")),
|
|
15725
15751
|
showProductList: T(() => import("./_chunks/PkToolShowProductList-D6Df6dtq.js")),
|
|
15726
15752
|
showQrCode: T(() => import("./_chunks/PkToolShowQrCode-QcJxu2vI.js")),
|
|
15727
|
-
showSources: T(() => import("./_chunks/PkToolShowSources-
|
|
15753
|
+
showSources: T(() => import("./_chunks/PkToolShowSources-BE3Zv_uz.js")),
|
|
15728
15754
|
showSuggestedReply: T(() => import("./_chunks/PkToolShowSuggestedReply-B-s_ERZF.js")),
|
|
15729
15755
|
showVideo: T(() => import("./_chunks/PkToolShowVideo-CKpJ1O7O.js")),
|
|
15730
15756
|
showWeather: T(() => import("./_chunks/PkToolShowWeather-B9HWOU7p.js")),
|
|
@@ -17456,6 +17482,7 @@ var zx = { class: "pk-chatbot-input" }, Bx = {
|
|
|
17456
17482
|
"submit",
|
|
17457
17483
|
"stop-generation",
|
|
17458
17484
|
"file-select",
|
|
17485
|
+
"remove-attachment",
|
|
17459
17486
|
"dismiss-attachment-notice",
|
|
17460
17487
|
"dismiss-page-notice",
|
|
17461
17488
|
"open-answer-notice",
|
|
@@ -17496,7 +17523,7 @@ var zx = { class: "pk-chatbot-input" }, Bx = {
|
|
|
17496
17523
|
ce(Array.from(t.files ?? [])), t.value = "";
|
|
17497
17524
|
}, de = (e) => {
|
|
17498
17525
|
let t = i.value.find((t) => t.id === e);
|
|
17499
|
-
t && URL.revokeObjectURL(t.localUrl), i.value = i.value.filter((t) => t.id !== e);
|
|
17526
|
+
t && (URL.revokeObjectURL(t.localUrl), i.value = i.value.filter((t) => t.id !== e), a("remove-attachment", t));
|
|
17500
17527
|
}, N = z(!0), fe = () => {
|
|
17501
17528
|
N.value = !1;
|
|
17502
17529
|
}, P = B(() => {
|
|
@@ -18312,7 +18339,7 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18312
18339
|
"selection-action"
|
|
18313
18340
|
],
|
|
18314
18341
|
setup(e, { emit: t }) {
|
|
18315
|
-
let n = T(() => import("./_chunks/PkToolShowForm-
|
|
18342
|
+
let n = T(() => import("./_chunks/PkToolShowForm-DcPccCEU.js")), r = T(() => import("./_chunks/PkToolShowContactForm-CvQoLumn.js")), i = T(() => import("./_chunks/PkToolShowSuggestedReply-B-s_ERZF.js")), a = T(() => import("./_chunks/PkToolShowSources-BE3Zv_uz.js")), o = T(() => import("./_chunks/PkToolRequestGeolocation-CUXB6Lkw.js")), s = T(() => import("./_chunks/PkToolRequestOAuthConnection-CoK7s1HA.js")), c = T(() => import("./_chunks/PkToolShowLocation-7Uqe4JnF.js")), l = T(() => import("./_chunks/PkToolShowDiagram-COt1Z3q9.js")), u = T(() => import("./_chunks/PkToolChatFile-iE4ZokYD.js")), d = T(() => import("./_chunks/PkToolShareDocument-lTHNZodf.js")), f = T(() => import("./_chunks/PkFilePreview-BIFkMsAC.js").then((e) => e.n)), p = T(() => import("./_chunks/PkFilePreviewDialog-NLk4gZMd.js")), m = e, h = t, g = ep(m.agentId), { agentInterface: _, agentFileUpload: v, agentType: y, agentVoice: b, actions: x, revisedAnswers: S, messages: C, chat: ee, messageFeedbacks: w, feedbackDialogMessage: E, isFeedbackSubmitting: ne, isFeedbackSubmitted: re, feedbackSubmitError: D, isLeadSubmitted: k, isLoadingSubmitLead: ie, submitLeadError: A, input: oe, inputMessagePlaceholder: se, isConversationBlocked: ce, baseUrl: le, pendingAttachments: ue, isAttachmentLimitReached: de, fileLimitError: N, apiClient: fe, isDark: P, hostToolsPending: pe, pageNoticeLevel: F, hostConfirmation: he, agentPageAccess: ge, hostStepTitles: ve, hostStepChanges: ye, confirmationMode: be, canQueue: xe, queuedMessages: L, backgroundAnswers: Se, inputFocusRequest: Ce, pagePointer: we, pagePointerAvailable: V, pagePointing: Te, agentSelectionActions: Ee } = Ar(g);
|
|
18316
18343
|
te(un, ve), te(sn, ye);
|
|
18317
18344
|
let De = me("inputEl");
|
|
18318
18345
|
j(Ce, () => {
|
|
@@ -18323,184 +18350,184 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18323
18350
|
let Oe = B(() => we.value ? {
|
|
18324
18351
|
kind: we.value.kind,
|
|
18325
18352
|
label: we.value.label
|
|
18326
|
-
} : void 0), ke = B(() => y.value === "reasoning" ? void 0 : v.value), U = (e) => fe.value.getMediaDownloadUrl(m.agentId, g.localChatId, e), { handleSubmit: je, stopGeneration: Me, regenerate: Ne, onUpvote: Pe, onDownvote: Ie, onFeedback: q, onFeedbackSubmit: Le, onLeadSubmit: Re, startNewChat: ze, addToolOutput: Be, addToolApprovalResponse: He, handleFileSelect: Ue,
|
|
18353
|
+
} : void 0), ke = B(() => y.value === "reasoning" ? void 0 : v.value), U = (e) => fe.value.getMediaDownloadUrl(m.agentId, g.localChatId, e), { handleSubmit: je, stopGeneration: Me, regenerate: Ne, onUpvote: Pe, onDownvote: Ie, onFeedback: q, onFeedbackSubmit: Le, onLeadSubmit: Re, startNewChat: ze, addToolOutput: Be, addToolApprovalResponse: He, handleFileSelect: Ue, discardPendingAttachment: We, clearFileLimitError: Ge, refreshMessages: Ke, appendMessage: qe, closePageNotice: Je, respondHostConfirmation: Ye, editQueuedMessage: Ze, removeQueuedMessage: Qe, openBackgroundAnswer: $e, dismissBackgroundAnswer: et } = g, { t: tt } = Ve({ useScope: "global" }), nt = B(() => pe.value > 0), rt = B(() => nt.value && ee.value.status === "ready" ? "streaming" : ee.value.status), it = Vn(() => ge.value?.notice), at = B(() => F.value ? it.value || tt(`message.pageAccessNotice.${F.value}`) : void 0), Z = B(() => {
|
|
18327
18354
|
let e = N.value;
|
|
18328
|
-
if (e) return e.reason === "per-chat" ?
|
|
18329
|
-
}),
|
|
18355
|
+
if (e) return e.reason === "per-chat" ? tt("message.fileLimitPerChat", { max: e.max }) : tt("message.fileLimitPerMessage", { max: e.max });
|
|
18356
|
+
}), ot = B(() => Se.value.map(({ chatId: e, title: t }) => ({
|
|
18330
18357
|
id: e,
|
|
18331
|
-
text: t ?
|
|
18332
|
-
}))),
|
|
18333
|
-
On([
|
|
18358
|
+
text: t ? tt("message.backgroundAnswerReady", { title: t }) : tt("message.backgroundAnswerReadyUntitled")
|
|
18359
|
+
}))), st = Vn(() => _.value?.dismissableNotice), ct = B(() => C.value.some((e) => e.role === "user")), lt = B(() => m.modifier === "fullscreen" && !ct.value), ut = fp(_, () => m.userName), dt = me("chatViewEl"), ft = wS(), pt = B(() => !!ft?.value), mt = B(() => ft?.value ?? "body"), ht = z(0), gt = z(0);
|
|
18360
|
+
On([dt, B(() => ft?.value ?? void 0)], (e) => {
|
|
18334
18361
|
for (let t of e) {
|
|
18335
18362
|
let e = t.borderBoxSize?.[0]?.inlineSize ?? t.contentRect.width;
|
|
18336
|
-
t.target ===
|
|
18363
|
+
t.target === dt.value ? ht.value = e : gt.value = e;
|
|
18337
18364
|
}
|
|
18338
18365
|
}, { box: "border-box" });
|
|
18339
|
-
let
|
|
18366
|
+
let _t = B(() => ht.value + (pt.value ? gt.value : 0) >= IS), vt = B(() => ht.value > 0 && ht.value < 576), { target: yt, preview: bt, loading: xt, error: St, open: Ct, close: wt, reset: Tt } = AS((e) => fe.value.getChatFilePreview(m.agentId, g.localChatId, e)), Et = z({}), Dt = (e) => {
|
|
18340
18367
|
let t = (e) => e?.fileId ?? e?.storedFileName;
|
|
18341
|
-
return t(e) !== t(
|
|
18342
|
-
},
|
|
18343
|
-
|
|
18344
|
-
},
|
|
18368
|
+
return t(e) !== t(yt.value) && (Et.value = {}), Ct(e);
|
|
18369
|
+
}, Ot = z(!1), kt = B(() => !!yt.value && _t.value && !Ot.value), At = () => {
|
|
18370
|
+
wt(), Ot.value = !1;
|
|
18371
|
+
}, jt = /* @__PURE__ */ new Set([
|
|
18345
18372
|
"tool-editSpreadsheet",
|
|
18346
18373
|
"tool-editWordDocument",
|
|
18347
18374
|
"tool-createSpreadsheet",
|
|
18348
18375
|
"tool-createWordDocument"
|
|
18349
|
-
]),
|
|
18376
|
+
]), Mt = B(() => {
|
|
18350
18377
|
let e = /* @__PURE__ */ new Map();
|
|
18351
18378
|
for (let t of C.value) for (let n of t.parts) {
|
|
18352
18379
|
let { type: t, state: r, output: i } = n;
|
|
18353
|
-
if (
|
|
18380
|
+
if (jt.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
|
|
18354
18381
|
let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
|
|
18355
18382
|
t.set(i.version, i.storedFileName), e.set(i.fileId, t);
|
|
18356
18383
|
}
|
|
18357
18384
|
}
|
|
18358
18385
|
for (let [t, n] of e) n.has(1) || n.set(1, t);
|
|
18359
18386
|
return e;
|
|
18360
|
-
}),
|
|
18361
|
-
let t =
|
|
18362
|
-
t && n &&
|
|
18387
|
+
}), Nt = B(() => [...Mt.value.get(yt.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), Pt = (e) => {
|
|
18388
|
+
let t = yt.value, n = Mt.value.get(t?.fileId ?? "")?.get(e);
|
|
18389
|
+
t && n && Dt({
|
|
18363
18390
|
...t,
|
|
18364
18391
|
version: e,
|
|
18365
18392
|
storedFileName: n
|
|
18366
18393
|
});
|
|
18367
|
-
},
|
|
18368
|
-
let e =
|
|
18369
|
-
return !!
|
|
18370
|
-
}),
|
|
18371
|
-
let e =
|
|
18372
|
-
e?.fileId && e.version && (
|
|
18394
|
+
}, Ft = B(() => {
|
|
18395
|
+
let e = yt.value, t = Nt.value;
|
|
18396
|
+
return !!Mn.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
|
|
18397
|
+
}), It = () => {
|
|
18398
|
+
let e = yt.value;
|
|
18399
|
+
e?.fileId && e.version && (Mn.value?.({
|
|
18373
18400
|
fileId: e.fileId,
|
|
18374
18401
|
version: e.version,
|
|
18375
18402
|
filename: e.filename
|
|
18376
|
-
}),
|
|
18403
|
+
}), At());
|
|
18377
18404
|
};
|
|
18378
|
-
j(() => g.localChatId,
|
|
18379
|
-
let n =
|
|
18405
|
+
j(() => g.localChatId, Tt), j(Mt, (e, t) => {
|
|
18406
|
+
let n = yt.value, r = n?.fileId;
|
|
18380
18407
|
if (!r || !n.version) return;
|
|
18381
18408
|
let i = (e) => Math.max(0, ...e?.get(r)?.keys() ?? []), a = i(e);
|
|
18382
|
-
a > i(t) && n.version === i(t) &&
|
|
18409
|
+
a > i(t) && n.version === i(t) && Pt(a);
|
|
18383
18410
|
});
|
|
18384
|
-
let
|
|
18411
|
+
let Lt = B(() => {
|
|
18385
18412
|
let e = ee.value?.status;
|
|
18386
|
-
if (!(ce.value || e === "submitted" || e === "streaming")) return
|
|
18387
|
-
}),
|
|
18413
|
+
if (!(ce.value || e === "submitted" || e === "streaming")) return yt.value?.kind === "word" ? Ee.value?.word : Ee.value?.excel;
|
|
18414
|
+
}), Rt = (e, t, n) => {
|
|
18388
18415
|
g.sendSelection(e, { filePointer: t }) && h("selection-action", {
|
|
18389
18416
|
surface: t.format === "docx" ? "word" : "excel",
|
|
18390
18417
|
action: n.id,
|
|
18391
18418
|
state: "chat",
|
|
18392
18419
|
size: String(n.size)
|
|
18393
18420
|
});
|
|
18394
|
-
},
|
|
18421
|
+
}, zt = async (e) => (await fe.value.expandSourceContext(m.agentId, e.documentId, e.chunkIndex)).content, Bt = async (e) => {
|
|
18395
18422
|
let t = await fe.value.downloadSourceDocument(m.agentId, e);
|
|
18396
18423
|
window.open(t.downloadUrl, "_blank");
|
|
18397
|
-
}, { isOverDropZone:
|
|
18424
|
+
}, { isOverDropZone: Ht } = Tn(dt, {
|
|
18398
18425
|
dataTypes: (e) => Xe(e, ke.value?.allowedMimeTypes ?? []),
|
|
18399
18426
|
onDrop: (e) => {
|
|
18400
18427
|
if (ke.value?.enabled && e) for (let t of e) Ue(t);
|
|
18401
18428
|
}
|
|
18402
|
-
}),
|
|
18429
|
+
}), Ut = z(!1), Wt = !1, Gt = z(!1), Kt = [
|
|
18403
18430
|
3e3,
|
|
18404
18431
|
5e3,
|
|
18405
18432
|
1e4
|
|
18406
|
-
],
|
|
18407
|
-
function
|
|
18408
|
-
clearTimeout(
|
|
18433
|
+
], qt, Jt, Yt = !1, Xt = 0, Zt = !1;
|
|
18434
|
+
function Qt() {
|
|
18435
|
+
clearTimeout(qt), qt = void 0, Jt = void 0, Yt = !1, Xt = 0, Gt.value = !1;
|
|
18409
18436
|
}
|
|
18410
|
-
function
|
|
18411
|
-
|
|
18412
|
-
|
|
18437
|
+
function en(e) {
|
|
18438
|
+
Wt || (clearTimeout(qt), qt = setTimeout(() => {
|
|
18439
|
+
tn();
|
|
18413
18440
|
}, e));
|
|
18414
18441
|
}
|
|
18415
|
-
async function
|
|
18416
|
-
if (
|
|
18417
|
-
|
|
18442
|
+
async function tn() {
|
|
18443
|
+
if (Wt || Zt) return;
|
|
18444
|
+
Zt = !0;
|
|
18418
18445
|
let e;
|
|
18419
18446
|
try {
|
|
18420
|
-
e = await
|
|
18447
|
+
e = await Ke();
|
|
18421
18448
|
} finally {
|
|
18422
|
-
|
|
18449
|
+
Zt = !1;
|
|
18423
18450
|
}
|
|
18424
|
-
if (
|
|
18425
|
-
if (e === "caught-up" && (
|
|
18426
|
-
|
|
18451
|
+
if (Wt) return;
|
|
18452
|
+
if (e === "caught-up" && (Gt.value = !1, Un()), an.isActive.value) {
|
|
18453
|
+
Jt = void 0, Yt = !1, Xt = 0, en(LS);
|
|
18427
18454
|
return;
|
|
18428
18455
|
}
|
|
18429
|
-
|
|
18430
|
-
let t = Date.now() -
|
|
18431
|
-
if (e === "caught-up" && t >= (
|
|
18432
|
-
|
|
18456
|
+
Jt === void 0 && (Jt = Date.now(), Yt = !!an.error.value);
|
|
18457
|
+
let t = Date.now() - Jt;
|
|
18458
|
+
if (e === "caught-up" && t >= (Yt ? zS : RS) || t >= BS) {
|
|
18459
|
+
Qt(), Wn();
|
|
18433
18460
|
return;
|
|
18434
18461
|
}
|
|
18435
|
-
let n =
|
|
18436
|
-
|
|
18462
|
+
let n = Kt[Math.min(Xt, Kt.length - 1)];
|
|
18463
|
+
Xt += 1, en(n);
|
|
18437
18464
|
}
|
|
18438
|
-
let
|
|
18439
|
-
|
|
18440
|
-
},
|
|
18465
|
+
let nn = (e = 1200) => {
|
|
18466
|
+
en(e);
|
|
18467
|
+
}, rn, an = SS({
|
|
18441
18468
|
fetchGrant: async () => {
|
|
18442
|
-
|
|
18469
|
+
rn = g.voicePageTools();
|
|
18443
18470
|
let e = await fe.value.createVoiceSession(m.agentId, g.localChatId, {
|
|
18444
18471
|
deviceContext: g.buildDeviceContext(),
|
|
18445
18472
|
externalContext: g.externalContext,
|
|
18446
|
-
pageTools:
|
|
18473
|
+
pageTools: rn?.declaration,
|
|
18447
18474
|
...g.confirmationMode === "automatic" && { confirmations: "automatic" }
|
|
18448
18475
|
});
|
|
18449
18476
|
return e.chatId !== g.localChatId && (g.localChatId = e.chatId), e;
|
|
18450
18477
|
},
|
|
18451
18478
|
closeGrant: (e) => fe.value.closeVoiceSession(m.agentId, e),
|
|
18452
|
-
clientTools: () =>
|
|
18479
|
+
clientTools: () => rn?.clientTools,
|
|
18453
18480
|
onTranscript: (e) => {
|
|
18454
|
-
e.role === "user" ? (
|
|
18481
|
+
e.role === "user" ? (Gt.value = !0, Hn(), qe({
|
|
18455
18482
|
id: `${Ff}user-${Fl()}`,
|
|
18456
18483
|
role: "user",
|
|
18457
18484
|
parts: [{
|
|
18458
18485
|
type: "text",
|
|
18459
18486
|
text: e.text
|
|
18460
18487
|
}]
|
|
18461
|
-
})) :
|
|
18488
|
+
})) : Gt.value = !1;
|
|
18462
18489
|
},
|
|
18463
18490
|
onTurnEnd: () => {
|
|
18464
|
-
|
|
18491
|
+
nn();
|
|
18465
18492
|
}
|
|
18466
18493
|
});
|
|
18467
|
-
j(() =>
|
|
18494
|
+
j(() => an.isActive.value, (e) => {
|
|
18468
18495
|
e || g.cancelVoicePageCalls();
|
|
18469
|
-
}), j(() =>
|
|
18470
|
-
e && (
|
|
18496
|
+
}), j(() => an.error.value, (e) => {
|
|
18497
|
+
e && (Gt.value = !1);
|
|
18471
18498
|
});
|
|
18472
|
-
let
|
|
18473
|
-
let e =
|
|
18474
|
-
if (e) return /took too long/i.test(e) ?
|
|
18475
|
-
}),
|
|
18476
|
-
|
|
18477
|
-
},
|
|
18478
|
-
|
|
18479
|
-
},
|
|
18480
|
-
|
|
18481
|
-
},
|
|
18482
|
-
|
|
18483
|
-
},
|
|
18484
|
-
|
|
18499
|
+
let cn = B(() => b.value?.enabled === !0), dn = B(() => an.error.value ? "error" : an.isConnecting.value ? "connecting" : an.isSpeaking.value ? "speaking" : an.isActive.value ? "listening" : "idle"), fn = B(() => {
|
|
18500
|
+
let e = an.error.value;
|
|
18501
|
+
if (e) return /took too long/i.test(e) ? tt("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? tt("message.voiceNoAnswer") : tt("message.voiceInterrupted");
|
|
18502
|
+
}), pn = B(() => an.isSpeaking.value ? "output" : "input"), mn = () => an.readLevel(pn.value), hn = () => an.readSpectrum(pn.value), gn = async () => {
|
|
18503
|
+
Ut.value = !1, await an.start(), an.isActive.value && (Qt(), en(LS));
|
|
18504
|
+
}, _n = async () => {
|
|
18505
|
+
Gt.value = !1, await an.stop(), !Wt && nn(0);
|
|
18506
|
+
}, yn = () => {
|
|
18507
|
+
an.dismissError();
|
|
18508
|
+
}, bn = async () => {
|
|
18509
|
+
an.dismissError(), await an.stop(), await gn();
|
|
18510
|
+
}, xn = (e) => e?.toolCallId ?? "", Sn = z(/* @__PURE__ */ new Set()), Cn = (e) => Sn.value.has(xn(e)), wn = z(/* @__PURE__ */ new Map()), En = (e, t) => an.isActive.value ? (an.sendUserMessage(t) && (Sn.value = new Set(Sn.value).add(xn(e)), nn()), !0) : !1, Dn = (e, t, n) => {
|
|
18511
|
+
En(t, $t(t, n)) || Be({
|
|
18485
18512
|
tool: e,
|
|
18486
|
-
toolCallId:
|
|
18513
|
+
toolCallId: xn(t),
|
|
18487
18514
|
output: n
|
|
18488
18515
|
});
|
|
18489
|
-
},
|
|
18490
|
-
let t = e.confirmed ?
|
|
18491
|
-
|
|
18516
|
+
}, kn = (e) => {
|
|
18517
|
+
let t = e.confirmed ? tt("message.voiceConfirmed") : tt("message.voiceCancelled");
|
|
18518
|
+
En({ toolCallId: e.toolCallId }, t) ? Sn.value.has(e.toolCallId) && (wn.value = new Map(wn.value).set(e.toolCallId, e.confirmed)) : Be({
|
|
18492
18519
|
tool: "requestConfirm",
|
|
18493
18520
|
toolCallId: e.toolCallId,
|
|
18494
18521
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
18495
18522
|
});
|
|
18496
|
-
},
|
|
18523
|
+
}, An = B(() => {
|
|
18497
18524
|
let e = /* @__PURE__ */ new Map();
|
|
18498
18525
|
for (let t of C.value) for (let n of t.parts) {
|
|
18499
18526
|
let { type: t, state: r, output: i } = n;
|
|
18500
|
-
|
|
18527
|
+
jt.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
|
|
18501
18528
|
}
|
|
18502
18529
|
return e;
|
|
18503
|
-
}),
|
|
18530
|
+
}), jn = B(() => {
|
|
18504
18531
|
let e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
18505
18532
|
if (t && n) {
|
|
18506
18533
|
let r = t.toLowerCase();
|
|
@@ -18513,62 +18540,62 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18513
18540
|
continue;
|
|
18514
18541
|
}
|
|
18515
18542
|
let { type: e, state: r, output: i } = n;
|
|
18516
|
-
|
|
18543
|
+
jt.has(e) && r === "output-available" && i?.filename && t(on(i.filename, i.version), i.fileId);
|
|
18517
18544
|
}
|
|
18518
18545
|
return e;
|
|
18519
|
-
}),
|
|
18520
|
-
let t = (
|
|
18521
|
-
oe.value =
|
|
18522
|
-
}),
|
|
18523
|
-
|
|
18524
|
-
},
|
|
18525
|
-
let n = t.error ?
|
|
18526
|
-
|
|
18546
|
+
}), Mn = B(() => ce.value ? void 0 : (e) => {
|
|
18547
|
+
let t = (jn.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
|
|
18548
|
+
oe.value = tt(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), je();
|
|
18549
|
+
}), Nn = (e, t) => {
|
|
18550
|
+
En(e, t) || (oe.value = t, je());
|
|
18551
|
+
}, Pn = (e, t) => {
|
|
18552
|
+
let n = t.error ? tt("message.voiceLocationRefused") : tt("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
18553
|
+
En(e, n) || Be({
|
|
18527
18554
|
tool: "requestGeolocation",
|
|
18528
|
-
toolCallId:
|
|
18555
|
+
toolCallId: xn(e),
|
|
18529
18556
|
output: t
|
|
18530
18557
|
});
|
|
18531
|
-
},
|
|
18532
|
-
|
|
18558
|
+
}, Fn = (e, t) => {
|
|
18559
|
+
En(e, tt("message.voiceConnectionDone")) || Be({
|
|
18533
18560
|
tool: "requestOAuthConnection",
|
|
18534
|
-
toolCallId:
|
|
18561
|
+
toolCallId: xn(e),
|
|
18535
18562
|
output: {
|
|
18536
18563
|
connected: !0,
|
|
18537
18564
|
mcpServerId: t
|
|
18538
18565
|
}
|
|
18539
18566
|
});
|
|
18540
|
-
},
|
|
18541
|
-
|
|
18567
|
+
}, In = () => {
|
|
18568
|
+
Ut.value = !Ut.value, an.setMuted(Ut.value);
|
|
18542
18569
|
};
|
|
18543
18570
|
ae(() => {
|
|
18544
|
-
|
|
18571
|
+
Wt = !0, Qt();
|
|
18545
18572
|
});
|
|
18546
|
-
let { pendingWakeup:
|
|
18573
|
+
let { pendingWakeup: Rn, isStopping: zn, stop: Bn, spokenTurnStarted: Hn, spokenTurnsWritten: Un, forgetSpokenTurns: Wn } = kS({
|
|
18547
18574
|
agentId: () => m.agentId,
|
|
18548
18575
|
chatId: () => g.localChatId,
|
|
18549
18576
|
apiClient: () => fe.value,
|
|
18550
18577
|
messages: () => C.value,
|
|
18551
|
-
refreshMessages:
|
|
18578
|
+
refreshMessages: Ke,
|
|
18552
18579
|
status: () => ee.value.status
|
|
18553
18580
|
});
|
|
18554
18581
|
return (t, v) => {
|
|
18555
18582
|
let y = Ln;
|
|
18556
18583
|
return X(), Y("div", {
|
|
18557
18584
|
ref_key: "chatViewEl",
|
|
18558
|
-
ref:
|
|
18585
|
+
ref: dt,
|
|
18559
18586
|
class: O(["pk-chatbot-view-chat", {
|
|
18560
|
-
"pk-chatbot-view-chat--dragover": J(
|
|
18561
|
-
"pk-chatbot-view-chat--empty":
|
|
18562
|
-
"pk-chatbot-view-chat--with-preview":
|
|
18587
|
+
"pk-chatbot-view-chat--dragover": J(Ht) && ke.value?.enabled,
|
|
18588
|
+
"pk-chatbot-view-chat--empty": lt.value,
|
|
18589
|
+
"pk-chatbot-view-chat--with-preview": kt.value && !pt.value
|
|
18563
18590
|
}])
|
|
18564
18591
|
}, [
|
|
18565
18592
|
M(W, {
|
|
18566
18593
|
name: "pk-chatbot-view-chat-fade",
|
|
18567
18594
|
mode: "out-in"
|
|
18568
18595
|
}, {
|
|
18569
|
-
default: G(() => [
|
|
18596
|
+
default: G(() => [lt.value ? (X(), I(sS, {
|
|
18570
18597
|
key: 0,
|
|
18571
|
-
greeting: J(
|
|
18598
|
+
greeting: J(ut),
|
|
18572
18599
|
logo: J(_)?.logo,
|
|
18573
18600
|
name: J(g).name
|
|
18574
18601
|
}, null, 8, [
|
|
@@ -18580,7 +18607,7 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18580
18607
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
18581
18608
|
interactive: "",
|
|
18582
18609
|
messages: J(C),
|
|
18583
|
-
"confirm-verdicts-on-call":
|
|
18610
|
+
"confirm-verdicts-on-call": wn.value,
|
|
18584
18611
|
status: J(ee).status,
|
|
18585
18612
|
error: J(ee).error,
|
|
18586
18613
|
"main-color": J(_)?.mainColor,
|
|
@@ -18594,8 +18621,8 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18594
18621
|
"feedback-error": J(D),
|
|
18595
18622
|
"show-extended-steps": J(_)?.showExtendedSteps,
|
|
18596
18623
|
"hide-reasoning": J(_)?.showReasoning === !1,
|
|
18597
|
-
"awaiting-spoken-answer":
|
|
18598
|
-
"host-working":
|
|
18624
|
+
"awaiting-spoken-answer": Gt.value,
|
|
18625
|
+
"host-working": nt.value,
|
|
18599
18626
|
"host-confirmation": J(he),
|
|
18600
18627
|
"is-dark": J(P),
|
|
18601
18628
|
"show-scroll-to-bottom": e.modifier === "fullscreen",
|
|
@@ -18610,8 +18637,8 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18610
18637
|
onDownvote: J(Ie),
|
|
18611
18638
|
onFeedback: J(q),
|
|
18612
18639
|
onApprovalRespond: J(He),
|
|
18613
|
-
onConfirmRespond:
|
|
18614
|
-
onHostConfirmRespond: J(
|
|
18640
|
+
onConfirmRespond: kn,
|
|
18641
|
+
onHostConfirmRespond: J(Ye)
|
|
18615
18642
|
}, {
|
|
18616
18643
|
"tool-showContactForm": G(({ part: e }) => [M(J(r), {
|
|
18617
18644
|
part: e,
|
|
@@ -18632,18 +18659,18 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18632
18659
|
])]),
|
|
18633
18660
|
"tool-showSuggestedReply": G(({ part: e }) => [M(J(i), {
|
|
18634
18661
|
part: e,
|
|
18635
|
-
onSelect: (t) =>
|
|
18662
|
+
onSelect: (t) => Nn(e, t)
|
|
18636
18663
|
}, null, 8, ["part", "onSelect"])]),
|
|
18637
18664
|
"tool-showSources": G(({ part: e }) => [M(J(a), {
|
|
18638
18665
|
part: e,
|
|
18639
|
-
"on-expand-context":
|
|
18640
|
-
"on-download":
|
|
18666
|
+
"on-expand-context": zt,
|
|
18667
|
+
"on-download": Bt
|
|
18641
18668
|
}, null, 8, ["part"])]),
|
|
18642
18669
|
"tool-showForm": G(({ part: e }) => [M(W, { mode: "out-in" }, {
|
|
18643
18670
|
default: G(() => [M(J(n), {
|
|
18644
18671
|
part: e,
|
|
18645
|
-
answered:
|
|
18646
|
-
onSelect: (t) =>
|
|
18672
|
+
answered: Cn(e),
|
|
18673
|
+
onSelect: (t) => Dn("showForm", e, t)
|
|
18647
18674
|
}, null, 8, [
|
|
18648
18675
|
"part",
|
|
18649
18676
|
"answered",
|
|
@@ -18655,8 +18682,8 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18655
18682
|
default: G(() => [M(J(n), {
|
|
18656
18683
|
part: e,
|
|
18657
18684
|
"allow-custom-answer": "",
|
|
18658
|
-
answered:
|
|
18659
|
-
onSelect: (t) =>
|
|
18685
|
+
answered: Cn(e),
|
|
18686
|
+
onSelect: (t) => Dn("showMultipleChoice", e, t)
|
|
18660
18687
|
}, null, 8, [
|
|
18661
18688
|
"part",
|
|
18662
18689
|
"answered",
|
|
@@ -18669,7 +18696,7 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18669
18696
|
"backend-url": J(le),
|
|
18670
18697
|
"resolve-connection": (e) => J(fe).getOAuthAuthorizeUrl(m.agentId, e),
|
|
18671
18698
|
"check-connection": (e) => J(fe).getOAuthConnectionStatus(m.agentId, e),
|
|
18672
|
-
onConnected: (t) =>
|
|
18699
|
+
onConnected: (t) => Fn(e, t)
|
|
18673
18700
|
}, null, 8, [
|
|
18674
18701
|
"part",
|
|
18675
18702
|
"backend-url",
|
|
@@ -18679,9 +18706,9 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18679
18706
|
])]),
|
|
18680
18707
|
"tool-requestGeolocation": G(({ part: e }) => [M(J(o), {
|
|
18681
18708
|
part: e,
|
|
18682
|
-
"call-live": J(
|
|
18709
|
+
"call-live": J(an).isActive.value,
|
|
18683
18710
|
"reverse-geocode": (e, t) => J(fe).reverseGeocode(e, t),
|
|
18684
|
-
onResult: (t) =>
|
|
18711
|
+
onResult: (t) => Pn(e, t)
|
|
18685
18712
|
}, null, 8, [
|
|
18686
18713
|
"part",
|
|
18687
18714
|
"call-live",
|
|
@@ -18707,9 +18734,9 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18707
18734
|
key: J(vn)(e),
|
|
18708
18735
|
part: e,
|
|
18709
18736
|
"file-url": U,
|
|
18710
|
-
preview:
|
|
18711
|
-
"latest-versions":
|
|
18712
|
-
restore:
|
|
18737
|
+
preview: Dt,
|
|
18738
|
+
"latest-versions": An.value,
|
|
18739
|
+
restore: Mn.value
|
|
18713
18740
|
}, null, 8, [
|
|
18714
18741
|
"part",
|
|
18715
18742
|
"latest-versions",
|
|
@@ -18719,9 +18746,9 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18719
18746
|
key: J(vn)(e),
|
|
18720
18747
|
part: e,
|
|
18721
18748
|
"file-url": U,
|
|
18722
|
-
preview:
|
|
18723
|
-
"latest-versions":
|
|
18724
|
-
restore:
|
|
18749
|
+
preview: Dt,
|
|
18750
|
+
"latest-versions": An.value,
|
|
18751
|
+
restore: Mn.value
|
|
18725
18752
|
}, null, 8, [
|
|
18726
18753
|
"part",
|
|
18727
18754
|
"latest-versions",
|
|
@@ -18731,9 +18758,9 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18731
18758
|
key: J(vn)(e),
|
|
18732
18759
|
part: e,
|
|
18733
18760
|
"file-url": U,
|
|
18734
|
-
preview:
|
|
18735
|
-
"latest-versions":
|
|
18736
|
-
restore:
|
|
18761
|
+
preview: Dt,
|
|
18762
|
+
"latest-versions": An.value,
|
|
18763
|
+
restore: Mn.value
|
|
18737
18764
|
}, null, 8, [
|
|
18738
18765
|
"part",
|
|
18739
18766
|
"latest-versions",
|
|
@@ -18743,9 +18770,9 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18743
18770
|
key: J(vn)(e),
|
|
18744
18771
|
part: e,
|
|
18745
18772
|
"file-url": U,
|
|
18746
|
-
preview:
|
|
18747
|
-
"latest-versions":
|
|
18748
|
-
restore:
|
|
18773
|
+
preview: Dt,
|
|
18774
|
+
"latest-versions": An.value,
|
|
18775
|
+
restore: Mn.value
|
|
18749
18776
|
}, null, 8, [
|
|
18750
18777
|
"part",
|
|
18751
18778
|
"latest-versions",
|
|
@@ -18754,7 +18781,7 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18754
18781
|
"tool-shareDocument": G(({ part: e }) => [(X(), I(J(d), {
|
|
18755
18782
|
key: J(vn)(e),
|
|
18756
18783
|
part: e,
|
|
18757
|
-
"on-download":
|
|
18784
|
+
"on-download": Bt
|
|
18758
18785
|
}, null, 8, ["part"]))]),
|
|
18759
18786
|
_: 1
|
|
18760
18787
|
}, 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(".")))]),
|
|
@@ -18763,8 +18790,8 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18763
18790
|
J(L).length ? (X(), I(aS, {
|
|
18764
18791
|
key: 0,
|
|
18765
18792
|
messages: J(L),
|
|
18766
|
-
onEdit: J(
|
|
18767
|
-
onRemove: J(
|
|
18793
|
+
onEdit: J(Ze),
|
|
18794
|
+
onRemove: J(Qe)
|
|
18768
18795
|
}, null, 8, [
|
|
18769
18796
|
"messages",
|
|
18770
18797
|
"onEdit",
|
|
@@ -18772,7 +18799,7 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18772
18799
|
])) : K("", !0),
|
|
18773
18800
|
R("div", jS, [
|
|
18774
18801
|
M(W, { name: "pk-chatbot-view-chat-fade" }, {
|
|
18775
|
-
default: G(() => [
|
|
18802
|
+
default: G(() => [lt.value ? (X(), I(Hv, {
|
|
18776
18803
|
key: 0,
|
|
18777
18804
|
class: "pk-chatbot-view-chat__aurora",
|
|
18778
18805
|
"source-selector": ".pk-chatbot-input__form",
|
|
@@ -18786,17 +18813,17 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18786
18813
|
])) : K("", !0)]),
|
|
18787
18814
|
_: 1
|
|
18788
18815
|
}),
|
|
18789
|
-
J(
|
|
18816
|
+
J(Rn) && !J(ce) ? (X(), I(xS, {
|
|
18790
18817
|
key: 0,
|
|
18791
|
-
pending: J(
|
|
18792
|
-
stopping: J(
|
|
18793
|
-
onStop: J(
|
|
18818
|
+
pending: J(Rn),
|
|
18819
|
+
stopping: J(zn),
|
|
18820
|
+
onStop: J(Bn)
|
|
18794
18821
|
}, null, 8, [
|
|
18795
18822
|
"pending",
|
|
18796
18823
|
"stopping",
|
|
18797
18824
|
"onStop"
|
|
18798
18825
|
])) : K("", !0),
|
|
18799
|
-
J(ce) ? (X(), Y("div", MS, H(J(
|
|
18826
|
+
J(ce) ? (X(), Y("div", MS, H(J(tt)("message.chatErrorConversationBlocked")), 1)) : dn.value === "idle" ? (X(), I(eS, {
|
|
18800
18827
|
key: 3,
|
|
18801
18828
|
ref_key: "inputEl",
|
|
18802
18829
|
ref: De,
|
|
@@ -18805,16 +18832,16 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18805
18832
|
"pending-attachments": J(ue),
|
|
18806
18833
|
"onUpdate:pendingAttachments": v[5] ||= (e) => Fe(ue) ? ue.value = e : null,
|
|
18807
18834
|
placeholder: J(se),
|
|
18808
|
-
"dismissable-notice": J(
|
|
18809
|
-
"page-notice":
|
|
18810
|
-
status:
|
|
18835
|
+
"dismissable-notice": J(st) && J(ee).messages.length <= 1 ? J(st) : void 0,
|
|
18836
|
+
"page-notice": at.value,
|
|
18837
|
+
status: rt.value,
|
|
18811
18838
|
"max-message-length": J(_)?.maxMessageLength,
|
|
18812
18839
|
"file-upload": ke.value,
|
|
18813
18840
|
"attachment-limit-reached": J(de),
|
|
18814
|
-
"attachment-notice":
|
|
18815
|
-
"voice-enabled":
|
|
18841
|
+
"attachment-notice": Z.value,
|
|
18842
|
+
"voice-enabled": cn.value,
|
|
18816
18843
|
"queue-enabled": J(xe),
|
|
18817
|
-
"answer-notices":
|
|
18844
|
+
"answer-notices": ot.value,
|
|
18818
18845
|
"pointer-available": J(V),
|
|
18819
18846
|
pointing: J(Te),
|
|
18820
18847
|
pointer: Oe.value,
|
|
@@ -18825,11 +18852,12 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18825
18852
|
onStopGeneration: J(Me),
|
|
18826
18853
|
onSubmit: J(je),
|
|
18827
18854
|
onFileSelect: J(Ue),
|
|
18828
|
-
|
|
18829
|
-
|
|
18830
|
-
|
|
18831
|
-
|
|
18832
|
-
|
|
18855
|
+
onRemoveAttachment: J(We),
|
|
18856
|
+
onDismissAttachmentNotice: J(Ge),
|
|
18857
|
+
onDismissPageNotice: J(Je),
|
|
18858
|
+
onOpenAnswerNotice: J($e),
|
|
18859
|
+
onDismissAnswerNotice: J(et),
|
|
18860
|
+
onVoiceStart: gn
|
|
18833
18861
|
}, _e({ _: 2 }, [e.modifier === "fullscreen" ? {
|
|
18834
18862
|
name: "prepend",
|
|
18835
18863
|
fn: G(() => [R("span", NS, [M(Rv, {
|
|
@@ -18859,25 +18887,26 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18859
18887
|
"onStopGeneration",
|
|
18860
18888
|
"onSubmit",
|
|
18861
18889
|
"onFileSelect",
|
|
18890
|
+
"onRemoveAttachment",
|
|
18862
18891
|
"onDismissAttachmentNotice",
|
|
18863
18892
|
"onDismissPageNotice",
|
|
18864
18893
|
"onOpenAnswerNotice",
|
|
18865
18894
|
"onDismissAnswerNotice"
|
|
18866
18895
|
])) : (X(), I(_S, {
|
|
18867
18896
|
key: 2,
|
|
18868
|
-
state:
|
|
18869
|
-
sample:
|
|
18870
|
-
spectrum:
|
|
18871
|
-
"remaining-seconds": J(
|
|
18872
|
-
muted:
|
|
18873
|
-
error:
|
|
18874
|
-
"raw-error": J(
|
|
18875
|
-
live: J(
|
|
18897
|
+
state: dn.value,
|
|
18898
|
+
sample: mn,
|
|
18899
|
+
spectrum: hn,
|
|
18900
|
+
"remaining-seconds": J(an).remainingSeconds.value,
|
|
18901
|
+
muted: Ut.value,
|
|
18902
|
+
error: fn.value,
|
|
18903
|
+
"raw-error": J(an).error.value,
|
|
18904
|
+
live: J(an).isActive.value,
|
|
18876
18905
|
class: "pk-chatbot-view-chat__voice",
|
|
18877
|
-
onToggleMute:
|
|
18878
|
-
onHangUp:
|
|
18879
|
-
onRetry:
|
|
18880
|
-
onDismiss:
|
|
18906
|
+
onToggleMute: In,
|
|
18907
|
+
onHangUp: _n,
|
|
18908
|
+
onRetry: bn,
|
|
18909
|
+
onDismiss: yn
|
|
18881
18910
|
}, null, 8, [
|
|
18882
18911
|
"state",
|
|
18883
18912
|
"remaining-seconds",
|
|
@@ -18888,44 +18917,44 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18888
18917
|
]))
|
|
18889
18918
|
]),
|
|
18890
18919
|
M(W, null, {
|
|
18891
|
-
default: G(() => [J(
|
|
18920
|
+
default: G(() => [J(Ht) && ke.value?.enabled ? (X(), Y("div", FS, [M(y, {
|
|
18892
18921
|
name: "ri:upload-cloud-2-line",
|
|
18893
18922
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
18894
|
-
}), R("span", null, H(J(
|
|
18923
|
+
}), R("span", null, H(J(tt)("action.dropFile")), 1)])) : K("", !0)]),
|
|
18895
18924
|
_: 1
|
|
18896
18925
|
}),
|
|
18897
|
-
|
|
18926
|
+
kt.value ? (X(), I(Ae, {
|
|
18898
18927
|
key: 1,
|
|
18899
|
-
to:
|
|
18900
|
-
disabled: !
|
|
18901
|
-
}, [R("aside", { class: O(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked":
|
|
18928
|
+
to: mt.value,
|
|
18929
|
+
disabled: !pt.value
|
|
18930
|
+
}, [R("aside", { class: O(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": pt.value }]) }, [J(yt) ? (X(), I(J(f), {
|
|
18902
18931
|
key: 0,
|
|
18903
|
-
mode:
|
|
18904
|
-
"onUpdate:mode": v[9] ||= (e) =>
|
|
18905
|
-
sheet:
|
|
18906
|
-
"onUpdate:sheet": v[10] ||= (e) =>
|
|
18907
|
-
zoom:
|
|
18908
|
-
"onUpdate:zoom": v[11] ||= (e) =>
|
|
18909
|
-
fit:
|
|
18910
|
-
"onUpdate:fit": v[12] ||= (e) =>
|
|
18911
|
-
kind: J(
|
|
18912
|
-
filename: J(
|
|
18913
|
-
version: J(
|
|
18914
|
-
versions:
|
|
18915
|
-
"download-url": U(J(
|
|
18916
|
-
preview: J(
|
|
18917
|
-
loading: J(
|
|
18918
|
-
error: J(
|
|
18919
|
-
restorable:
|
|
18932
|
+
mode: Et.value.mode,
|
|
18933
|
+
"onUpdate:mode": v[9] ||= (e) => Et.value.mode = e,
|
|
18934
|
+
sheet: Et.value.sheet,
|
|
18935
|
+
"onUpdate:sheet": v[10] ||= (e) => Et.value.sheet = e,
|
|
18936
|
+
zoom: Et.value.zoom,
|
|
18937
|
+
"onUpdate:zoom": v[11] ||= (e) => Et.value.zoom = e,
|
|
18938
|
+
fit: Et.value.fit,
|
|
18939
|
+
"onUpdate:fit": v[12] ||= (e) => Et.value.fit = e,
|
|
18940
|
+
kind: J(yt).kind,
|
|
18941
|
+
filename: J(yt).filename,
|
|
18942
|
+
version: J(yt).version,
|
|
18943
|
+
versions: Nt.value,
|
|
18944
|
+
"download-url": U(J(yt).storedFileName),
|
|
18945
|
+
preview: J(bt),
|
|
18946
|
+
loading: J(xt),
|
|
18947
|
+
error: J(St),
|
|
18948
|
+
restorable: Ft.value,
|
|
18920
18949
|
resize: "expand",
|
|
18921
|
-
"file-id": J(
|
|
18922
|
-
"stored-file-name": J(
|
|
18923
|
-
"selection-actions":
|
|
18924
|
-
onVersion:
|
|
18925
|
-
onRestore:
|
|
18926
|
-
onResize: v[13] ||= (e) =>
|
|
18927
|
-
onSelectionSend:
|
|
18928
|
-
onClose:
|
|
18950
|
+
"file-id": J(yt).fileId,
|
|
18951
|
+
"stored-file-name": J(yt).storedFileName,
|
|
18952
|
+
"selection-actions": Lt.value,
|
|
18953
|
+
onVersion: Pt,
|
|
18954
|
+
onRestore: It,
|
|
18955
|
+
onResize: v[13] ||= (e) => Ot.value = !0,
|
|
18956
|
+
onSelectionSend: Rt,
|
|
18957
|
+
onClose: At
|
|
18929
18958
|
}, null, 8, [
|
|
18930
18959
|
"mode",
|
|
18931
18960
|
"sheet",
|
|
@@ -18944,31 +18973,31 @@ var jS = { class: "pk-chatbot-view-chat__input-stage" }, MS = {
|
|
|
18944
18973
|
"stored-file-name",
|
|
18945
18974
|
"selection-actions"
|
|
18946
18975
|
])) : K("", !0)], 2)], 8, ["to", "disabled"])) : K("", !0),
|
|
18947
|
-
J(
|
|
18976
|
+
J(yt) && !kt.value ? (X(), I(J(p), {
|
|
18948
18977
|
key: 2,
|
|
18949
|
-
mode:
|
|
18950
|
-
"onUpdate:mode": v[14] ||= (e) =>
|
|
18951
|
-
sheet:
|
|
18952
|
-
"onUpdate:sheet": v[15] ||= (e) =>
|
|
18953
|
-
zoom:
|
|
18954
|
-
"onUpdate:zoom": v[16] ||= (e) =>
|
|
18955
|
-
fit:
|
|
18956
|
-
"onUpdate:fit": v[17] ||= (e) =>
|
|
18957
|
-
target: J(
|
|
18958
|
-
versions:
|
|
18959
|
-
"download-url": U(J(
|
|
18960
|
-
preview: J(
|
|
18961
|
-
loading: J(
|
|
18962
|
-
error: J(
|
|
18963
|
-
restorable:
|
|
18964
|
-
resize:
|
|
18965
|
-
fullscreen:
|
|
18966
|
-
"selection-actions":
|
|
18967
|
-
onVersion:
|
|
18968
|
-
onRestore:
|
|
18969
|
-
onResize: v[18] ||= (e) =>
|
|
18970
|
-
onSelectionSend:
|
|
18971
|
-
onClose:
|
|
18978
|
+
mode: Et.value.mode,
|
|
18979
|
+
"onUpdate:mode": v[14] ||= (e) => Et.value.mode = e,
|
|
18980
|
+
sheet: Et.value.sheet,
|
|
18981
|
+
"onUpdate:sheet": v[15] ||= (e) => Et.value.sheet = e,
|
|
18982
|
+
zoom: Et.value.zoom,
|
|
18983
|
+
"onUpdate:zoom": v[16] ||= (e) => Et.value.zoom = e,
|
|
18984
|
+
fit: Et.value.fit,
|
|
18985
|
+
"onUpdate:fit": v[17] ||= (e) => Et.value.fit = e,
|
|
18986
|
+
target: J(yt),
|
|
18987
|
+
versions: Nt.value,
|
|
18988
|
+
"download-url": U(J(yt).storedFileName),
|
|
18989
|
+
preview: J(bt),
|
|
18990
|
+
loading: J(xt),
|
|
18991
|
+
error: J(St),
|
|
18992
|
+
restorable: Ft.value,
|
|
18993
|
+
resize: _t.value ? "shrink" : void 0,
|
|
18994
|
+
fullscreen: vt.value,
|
|
18995
|
+
"selection-actions": Lt.value,
|
|
18996
|
+
onVersion: Pt,
|
|
18997
|
+
onRestore: It,
|
|
18998
|
+
onResize: v[18] ||= (e) => Ot.value = !1,
|
|
18999
|
+
onSelectionSend: Rt,
|
|
19000
|
+
onClose: At
|
|
18972
19001
|
}, null, 8, [
|
|
18973
19002
|
"mode",
|
|
18974
19003
|
"sheet",
|