@8wave/ai-elements 0.125.0-beta.16 → 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 +24 -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/{PkFilePreview-8nVPKv8k.js → PkFilePreview-BIFkMsAC.js} +559 -718
- package/dist/_chunks/PkFilePreview-BIFkMsAC.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-BHPcGlnF.js → PkFilePreviewDialog-NLk4gZMd.js} +8 -8
- package/dist/_chunks/{PkFilePreviewDialog-BHPcGlnF.js.map → PkFilePreviewDialog-NLk4gZMd.js.map} +1 -1
- package/dist/_chunks/PkSelectionActions-CUymhwsG.js +168 -0
- package/dist/_chunks/PkSelectionActions-CUymhwsG.js.map +1 -0
- 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 +4692 -4268
- 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/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.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/{Agent-DmxsItHG.js → Agent-Cm1LrkYm.js} +162 -162
- package/dist-vue/_chunks/{Agent-DmxsItHG.js.map → Agent-Cm1LrkYm.js.map} +1 -1
- package/dist-vue/_chunks/{Document-CXfJxfu6.js → Document-DHBTrCuO.js} +10 -10
- package/dist-vue/_chunks/{Document-CXfJxfu6.js.map → Document-DHBTrCuO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-Bpo22_yE.js → PkChatbot-DCGQnndK.js} +10 -9
- package/dist-vue/_chunks/PkChatbot-DCGQnndK.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-CQ_Qdkge.js → PkChatbotEmptyState-COya3H3C.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CQ_Qdkge.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-BVu1b2Te.js → PkChatbotInput-D0KUEkAs.js} +5 -4
- package/dist-vue/_chunks/PkChatbotInput-D0KUEkAs.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-DftNL5ZQ.js → PkChatbotMessages-l-IzEWsN.js} +21 -21
- package/dist-vue/_chunks/{PkChatbotMessages-DftNL5ZQ.js.map → PkChatbotMessages-l-IzEWsN.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-AiDZPbds.js → PkChatbotStepPayload-cuYclK_2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-AiDZPbds.js.map → PkChatbotStepPayload-cuYclK_2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CALZDpfQ.js → PkChatbotStepToolDetail-Yd8cUQJP.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CALZDpfQ.js.map → PkChatbotStepToolDetail-Yd8cUQJP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CY7pN2Gl.js → PkChatbotSteps-_Aqft0em.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CY7pN2Gl.js.map → PkChatbotSteps-_Aqft0em.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-Drp0At_n.js → PkChatbotViewChat-CHvtUHuO.js} +180 -178
- package/dist-vue/_chunks/PkChatbotViewChat-CHvtUHuO.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-C0KqM_Wq.js → PkChatbotViewConversations-7JU_5-F2.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-C0KqM_Wq.js.map → PkChatbotViewConversations-7JU_5-F2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-B9mYRoNK.js → PkChatbotViewFiles-D53wtRPS.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-B9mYRoNK.js.map → PkChatbotViewFiles-D53wtRPS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BfNE3d7F.js → PkChatbotViewProfile-BRlLIofM.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BfNE3d7F.js.map → PkChatbotViewProfile-BRlLIofM.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-z7JcRtjP.js → PkFilePreview-DLo9nI2g.js} +426 -426
- package/dist-vue/_chunks/PkFilePreview-DLo9nI2g.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-zVon3aPY.js → PkFilePreviewDialog-CgDJQgIJ.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-zVon3aPY.js.map → PkFilePreviewDialog-CgDJQgIJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-bJEDk-kM.js → PkStreamingMarkdown-2FN4WMQD.js} +4 -4
- package/dist-vue/_chunks/{PkStreamingMarkdown-bJEDk-kM.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-DqLGwJxp.js → PkToolChatFile-DAT1tv52.js} +4 -4
- package/dist-vue/_chunks/{PkToolChatFile-DqLGwJxp.js.map → PkToolChatFile-DAT1tv52.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-BnV7A6SW.js → PkToolRequestGeolocation-p7Ip17F7.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-BnV7A6SW.js.map → PkToolRequestGeolocation-p7Ip17F7.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-QCbQ7bnl.js → PkToolRequestOAuthConnection-CtXSzKzM.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-QCbQ7bnl.js.map → PkToolRequestOAuthConnection-CtXSzKzM.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-DanzULWt.js → PkToolShowArtifact-Bskomw05.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-DanzULWt.js.map → PkToolShowArtifact-Bskomw05.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-DzttQBG6.js → PkToolShowContactForm-iQrlqv7j.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-DzttQBG6.js.map → PkToolShowContactForm-iQrlqv7j.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BNa89wcw.js → PkToolShowDiagram-C-43uUoh.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowDiagram-BNa89wcw.js.map → PkToolShowDiagram-C-43uUoh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BXol1WE3.js → PkToolShowForm-CKXpqQxy.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-BXol1WE3.js.map → PkToolShowForm-CKXpqQxy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-Dmr5zXTj.js → PkToolShowImageGallery-DLTn6JmU.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowImageGallery-Dmr5zXTj.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-C_uIUG_G.js → PkToolShowProductList-hhSBAQVC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-C_uIUG_G.js.map → PkToolShowProductList-hhSBAQVC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-BHRNGn4s.js → PkToolShowSources-BiP9fVV2.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-BHRNGn4s.js.map → PkToolShowSources-BiP9fVV2.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DHCqxA1P.js → PkToolShowSuggestedReply-BRIzGNwx.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DHCqxA1P.js.map → PkToolShowSuggestedReply-BRIzGNwx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-P4H5A7ke.js → PkToolShowVideo-DJhsbDuX.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-P4H5A7ke.js.map → PkToolShowVideo-DJhsbDuX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BzNZHR7Q.js → PkToolShowWebPages-BAv66f5H.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BzNZHR7Q.js.map → PkToolShowWebPages-BAv66f5H.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CQjxHqLr.js → createChatbotApiClient-DO4_I5hT.js} +21 -14
- package/dist-vue/_chunks/createChatbotApiClient-DO4_I5hT.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-CyZha9pf.js → useChatbotStore-Bj00X4yT.js} +1255 -1242
- 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/_chunks/{utils-8lO2Gj-m.js → utils-RwaXl9-x.js} +4 -4
- package/dist-vue/_chunks/{utils-8lO2Gj-m.js.map → utils-RwaXl9-x.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
- package/dist-vue/apps/web-component/src/composables/usePagePointer.d.ts +14 -9
- package/dist-vue/apps/web-component/src/composables/usePendingMessage.d.ts +29 -15
- package/dist-vue/apps/web-component/src/composables/useSelectionActions.d.ts +77 -0
- package/dist-vue/composables.js +40 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +5401 -5321
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +28 -2
- package/dist-vue/packages/components/src/chat/PkAgentSelectionActionsSettings.d.ts +25 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +23 -3
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +2 -1
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/PkSelectionActions.d.ts +2 -12
- package/dist-vue/packages/components/src/chat/PkSelectionAnswerCard.d.ts +41 -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/PkFilePreview-8nVPKv8k.js.map +0 -1
- package/dist/_chunks/useLightbox-BEEzZ0qT.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-Bpo22_yE.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-BVu1b2Te.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-Drp0At_n.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-z7JcRtjP.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-CQjxHqLr.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-CyZha9pf.js.map +0 -1
- package/dist-vue/_chunks/useLightbox-gSzoBgNv.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as e } from "./PkChatbotMessages-
|
|
1
|
+
import { t as e } from "./PkChatbotMessages-l-IzEWsN.js";
|
|
2
2
|
import { o as t } from "./Media-DylqhvaF.js";
|
|
3
|
-
import { a as n, n as r, t as i } from "./useChatbotStore-
|
|
3
|
+
import { a as n, n as r, t as i } from "./useChatbotStore-Bj00X4yT.js";
|
|
4
4
|
import { n as a } from "./src-nb8MU1sh.js";
|
|
5
5
|
import { s as o, t as s } from "./message-DuibQyHy.js";
|
|
6
|
-
import { L as c, f as l, l as u, n as d, r as f, y as p } from "./utils-
|
|
6
|
+
import { L as c, f as l, l as u, n as d, r as f, y as p } from "./utils-RwaXl9-x.js";
|
|
7
7
|
import { t as m } from "./useLocalizedString-Dmn92nix.js";
|
|
8
8
|
import { t as h } from "./PkAvatar-DwtZWSW4.js";
|
|
9
|
-
import { n as g, t as _ } from "./PkChatbotInput-
|
|
9
|
+
import { n as g, t as _ } from "./PkChatbotInput-D0KUEkAs.js";
|
|
10
10
|
import { t as v } from "./PkChatbotQueuedMessages-CIJFAvE2.js";
|
|
11
|
-
import { t as ee } from "./PkChatbotEmptyState-
|
|
11
|
+
import { t as ee } from "./PkChatbotEmptyState-COya3H3C.js";
|
|
12
12
|
import { t as te } from "./PkChatbotWakeupBar-DEP-d-Fp.js";
|
|
13
13
|
import { VvIcon as ne } from "@volverjs/ui-vue/components";
|
|
14
14
|
import { Fragment as y, Teleport as b, Transition as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as re, createTextVNode as ie, createVNode as D, defineAsyncComponent as O, defineComponent as k, inject as ae, isRef as oe, nextTick as se, normalizeClass as A, normalizeStyle as ce, onBeforeUnmount as le, onMounted as ue, onScopeDispose as de, onUnmounted as fe, openBlock as j, provide as pe, ref as M, renderList as me, shallowRef as he, toDisplayString as N, toValue as P, unref as F, useTemplateRef as ge, watch as I, withCtx as L } from "vue";
|
|
@@ -535,7 +535,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
535
535
|
"selection-action"
|
|
536
536
|
],
|
|
537
537
|
setup(a, { emit: c }) {
|
|
538
|
-
let g = O(() => import("./PkToolShowForm-
|
|
538
|
+
let g = O(() => import("./PkToolShowForm-CKXpqQxy.js").then((e) => e.n)), y = O(() => import("./PkToolShowContactForm-iQrlqv7j.js").then((e) => e.n)), ie = O(() => import("./PkToolShowSuggestedReply-BRIzGNwx.js").then((e) => e.n)), k = O(() => import("./PkToolShowSources-BiP9fVV2.js").then((e) => e.n)), ae = O(() => import("./PkToolRequestGeolocation-p7Ip17F7.js").then((e) => e.n)), se = O(() => import("./PkToolRequestOAuthConnection-CtXSzKzM.js")), ce = O(() => import("./PkToolShowLocation-B8FE_Sqd.js").then((e) => e.n)), ue = O(() => import("./PkToolShowDiagram-C-43uUoh.js")), de = O(() => import("./PkToolChatFile-DAT1tv52.js").then((e) => e.n)), fe = O(() => import("./PkToolShareDocument-Qb2Lu5vh.js").then((e) => e.n)), me = O(() => import("./PkFilePreview-DLo9nI2g.js").then((e) => e.n)), he = O(() => import("./PkFilePreviewDialog-CgDJQgIJ.js").then((e) => e.n)), P = a, Se = c, R = r(P.agentId), { agentInterface: z, agentFileUpload: Ce, agentType: B, agentVoice: Te, actions: Ee, revisedAnswers: De, messages: V, chat: H, messageFeedbacks: Oe, feedbackDialogMessage: ke, isFeedbackSubmitting: Ae, isFeedbackSubmitted: Ne, feedbackSubmitError: Pe, isLeadSubmitted: Ie, isLoadingSubmitLead: Le, submitLeadError: Re, input: U, inputMessagePlaceholder: Ze, isConversationBlocked: Qe, baseUrl: $e, pendingAttachments: et, isAttachmentLimitReached: tt, fileLimitError: nt, apiClient: W, isDark: rt, hostToolsPending: it, pageNoticeLevel: at, hostConfirmation: ot, agentPageAccess: st, hostStepTitles: ct, hostStepChanges: lt, confirmationMode: ut, canQueue: dt, queuedMessages: ft, backgroundAnswers: pt, inputFocusRequest: mt, pagePointer: G, pagePointerAvailable: ht, pagePointing: gt, agentSelectionActions: _t } = be(R);
|
|
539
539
|
pe(f, ct), pe(d, lt);
|
|
540
540
|
let vt = ge("inputEl");
|
|
541
541
|
I(mt, () => {
|
|
@@ -546,135 +546,135 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
546
546
|
let yt = S(() => G.value ? {
|
|
547
547
|
kind: G.value.kind,
|
|
548
548
|
label: G.value.label
|
|
549
|
-
} : void 0), K = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => W.value.getMediaDownloadUrl(P.agentId, R.localChatId, e), { handleSubmit: bt, stopGeneration: xt, regenerate: St, onUpvote: Ct, onDownvote: wt, onFeedback: Tt, onFeedbackSubmit: Et, onLeadSubmit: Dt, startNewChat: Ot, addToolOutput: kt, addToolApprovalResponse: At, handleFileSelect: jt,
|
|
549
|
+
} : void 0), K = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => W.value.getMediaDownloadUrl(P.agentId, R.localChatId, e), { handleSubmit: bt, stopGeneration: xt, regenerate: St, onUpvote: Ct, onDownvote: wt, onFeedback: Tt, onFeedbackSubmit: Et, onLeadSubmit: Dt, startNewChat: Ot, addToolOutput: kt, addToolApprovalResponse: At, handleFileSelect: jt, discardPendingAttachment: Mt, clearFileLimitError: Nt, refreshMessages: Pt, appendMessage: Ft, closePageNotice: It, respondHostConfirmation: Lt, editQueuedMessage: Rt, removeQueuedMessage: zt, openBackgroundAnswer: Bt, dismissBackgroundAnswer: Vt } = R, { t: J } = _e({ useScope: "global" }), Ht = S(() => it.value > 0), Ut = S(() => Ht.value && H.value.status === "ready" ? "streaming" : H.value.status), Wt = m(() => st.value?.notice), Gt = S(() => at.value ? Wt.value || J(`message.pageAccessNotice.${at.value}`) : void 0), Kt = S(() => {
|
|
550
550
|
let e = nt.value;
|
|
551
551
|
if (e) return e.reason === "per-chat" ? J("message.fileLimitPerChat", { max: e.max }) : J("message.fileLimitPerMessage", { max: e.max });
|
|
552
|
-
}),
|
|
552
|
+
}), qt = S(() => pt.value.map(({ chatId: e, title: t }) => ({
|
|
553
553
|
id: e,
|
|
554
554
|
text: t ? J("message.backgroundAnswerReady", { title: t }) : J("message.backgroundAnswerReadyUntitled")
|
|
555
|
-
}))),
|
|
556
|
-
ye([
|
|
555
|
+
}))), Jt = m(() => z.value?.dismissableNotice), Yt = S(() => V.value.some((e) => e.role === "user")), Xt = S(() => P.modifier === "fullscreen" && !Yt.value), Zt = xe(z, () => P.userName), Qt = ge("chatViewEl"), $t = Fe(), en = S(() => !!$t?.value), tn = S(() => $t?.value ?? "body"), nn = M(0), rn = M(0);
|
|
556
|
+
ye([Qt, S(() => $t?.value ?? void 0)], (e) => {
|
|
557
557
|
for (let t of e) {
|
|
558
558
|
let e = t.borderBoxSize?.[0]?.inlineSize ?? t.contentRect.width;
|
|
559
|
-
t.target ===
|
|
559
|
+
t.target === Qt.value ? nn.value = e : rn.value = e;
|
|
560
560
|
}
|
|
561
561
|
}, { box: "border-box" });
|
|
562
|
-
let
|
|
562
|
+
let an = S(() => nn.value + (en.value ? rn.value : 0) >= Ke), on = S(() => nn.value > 0 && nn.value < 576), { target: Y, preview: sn, loading: cn, error: ln, open: un, close: dn, reset: fn } = Be((e) => W.value.getChatFilePreview(P.agentId, R.localChatId, e)), X = M({}), pn = (e) => {
|
|
563
563
|
let t = (e) => e?.fileId ?? e?.storedFileName;
|
|
564
|
-
return t(e) !== t(Y.value) && (X.value = {}),
|
|
565
|
-
},
|
|
566
|
-
|
|
567
|
-
},
|
|
564
|
+
return t(e) !== t(Y.value) && (X.value = {}), un(e);
|
|
565
|
+
}, mn = M(!1), hn = S(() => !!Y.value && an.value && !mn.value), gn = () => {
|
|
566
|
+
dn(), mn.value = !1;
|
|
567
|
+
}, _n = /* @__PURE__ */ new Set([
|
|
568
568
|
"tool-editSpreadsheet",
|
|
569
569
|
"tool-editWordDocument",
|
|
570
570
|
"tool-createSpreadsheet",
|
|
571
571
|
"tool-createWordDocument"
|
|
572
|
-
]),
|
|
572
|
+
]), vn = S(() => {
|
|
573
573
|
let e = /* @__PURE__ */ new Map();
|
|
574
574
|
for (let t of V.value) for (let n of t.parts) {
|
|
575
575
|
let { type: t, state: r, output: i } = n;
|
|
576
|
-
if (
|
|
576
|
+
if (_n.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
|
|
577
577
|
let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
|
|
578
578
|
t.set(i.version, i.storedFileName), e.set(i.fileId, t);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
for (let [t, n] of e) n.has(1) || n.set(1, t);
|
|
582
582
|
return e;
|
|
583
|
-
}),
|
|
584
|
-
let t = Y.value, n =
|
|
585
|
-
t && n &&
|
|
583
|
+
}), yn = S(() => [...vn.value.get(Y.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), bn = (e) => {
|
|
584
|
+
let t = Y.value, n = vn.value.get(t?.fileId ?? "")?.get(e);
|
|
585
|
+
t && n && pn({
|
|
586
586
|
...t,
|
|
587
587
|
version: e,
|
|
588
588
|
storedFileName: n
|
|
589
589
|
});
|
|
590
|
-
},
|
|
591
|
-
let e = Y.value, t =
|
|
590
|
+
}, xn = S(() => {
|
|
591
|
+
let e = Y.value, t = yn.value;
|
|
592
592
|
return !!$.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
|
|
593
|
-
}),
|
|
593
|
+
}), Sn = () => {
|
|
594
594
|
let e = Y.value;
|
|
595
595
|
e?.fileId && e.version && ($.value?.({
|
|
596
596
|
fileId: e.fileId,
|
|
597
597
|
version: e.version,
|
|
598
598
|
filename: e.filename
|
|
599
|
-
}),
|
|
599
|
+
}), gn());
|
|
600
600
|
};
|
|
601
|
-
I(() => R.localChatId,
|
|
601
|
+
I(() => R.localChatId, fn), I(vn, (e, t) => {
|
|
602
602
|
let n = Y.value, r = n?.fileId;
|
|
603
603
|
if (!r || !n.version) return;
|
|
604
604
|
let i = (e) => Math.max(0, ...e?.get(r)?.keys() ?? []), a = i(e);
|
|
605
|
-
a > i(t) && n.version === i(t) &&
|
|
605
|
+
a > i(t) && n.version === i(t) && bn(a);
|
|
606
606
|
});
|
|
607
|
-
let
|
|
607
|
+
let Cn = S(() => {
|
|
608
608
|
let e = H.value?.status;
|
|
609
609
|
if (!(Qe.value || e === "submitted" || e === "streaming")) return Y.value?.kind === "word" ? _t.value?.word : _t.value?.excel;
|
|
610
|
-
}),
|
|
610
|
+
}), wn = (e, t, n) => {
|
|
611
611
|
R.sendSelection(e, { filePointer: t }) && Se("selection-action", {
|
|
612
612
|
surface: t.format === "docx" ? "word" : "excel",
|
|
613
613
|
action: n.id,
|
|
614
614
|
state: "chat",
|
|
615
615
|
size: String(n.size)
|
|
616
616
|
});
|
|
617
|
-
},
|
|
617
|
+
}, Tn = async (e) => (await W.value.expandSourceContext(P.agentId, e.documentId, e.chunkIndex)).content, En = async (e) => {
|
|
618
618
|
let t = await W.value.downloadSourceDocument(P.agentId, e);
|
|
619
619
|
window.open(t.downloadUrl, "_blank");
|
|
620
|
-
}, { isOverDropZone:
|
|
620
|
+
}, { isOverDropZone: Dn } = ve(Qt, {
|
|
621
621
|
dataTypes: (e) => t(e, K.value?.allowedMimeTypes ?? []),
|
|
622
622
|
onDrop: (e) => {
|
|
623
623
|
if (K.value?.enabled && e) for (let t of e) jt(t);
|
|
624
624
|
}
|
|
625
|
-
}),
|
|
625
|
+
}), On = M(!1), kn = !1, Z = M(!1), An = [
|
|
626
626
|
3e3,
|
|
627
627
|
5e3,
|
|
628
628
|
1e4
|
|
629
|
-
],
|
|
630
|
-
function
|
|
631
|
-
clearTimeout(
|
|
629
|
+
], jn, Mn, Nn = !1, Pn = 0, Fn = !1;
|
|
630
|
+
function In() {
|
|
631
|
+
clearTimeout(jn), jn = void 0, Mn = void 0, Nn = !1, Pn = 0, Z.value = !1;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
|
|
635
|
-
|
|
633
|
+
function Ln(e) {
|
|
634
|
+
kn || (clearTimeout(jn), jn = setTimeout(() => {
|
|
635
|
+
Rn();
|
|
636
636
|
}, e));
|
|
637
637
|
}
|
|
638
|
-
async function
|
|
639
|
-
if (
|
|
640
|
-
|
|
638
|
+
async function Rn() {
|
|
639
|
+
if (kn || Fn) return;
|
|
640
|
+
Fn = !0;
|
|
641
641
|
let e;
|
|
642
642
|
try {
|
|
643
|
-
e = await
|
|
643
|
+
e = await Pt();
|
|
644
644
|
} finally {
|
|
645
|
-
|
|
645
|
+
Fn = !1;
|
|
646
646
|
}
|
|
647
|
-
if (
|
|
648
|
-
if (e === "caught-up" && (Z.value = !1,
|
|
649
|
-
|
|
647
|
+
if (kn) return;
|
|
648
|
+
if (e === "caught-up" && (Z.value = !1, mr()), Q.isActive.value) {
|
|
649
|
+
Mn = void 0, Nn = !1, Pn = 0, Ln(qe);
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
652
|
-
|
|
653
|
-
let t = Date.now() -
|
|
654
|
-
if (e === "caught-up" && t >= (
|
|
655
|
-
|
|
652
|
+
Mn === void 0 && (Mn = Date.now(), Nn = !!Q.error.value);
|
|
653
|
+
let t = Date.now() - Mn;
|
|
654
|
+
if (e === "caught-up" && t >= (Nn ? Ye : Je) || t >= Xe) {
|
|
655
|
+
In(), hr();
|
|
656
656
|
return;
|
|
657
657
|
}
|
|
658
|
-
let n =
|
|
659
|
-
|
|
658
|
+
let n = An[Math.min(Pn, An.length - 1)];
|
|
659
|
+
Pn += 1, Ln(n);
|
|
660
660
|
}
|
|
661
|
-
let
|
|
662
|
-
|
|
663
|
-
},
|
|
661
|
+
let zn = (e = 1200) => {
|
|
662
|
+
Ln(e);
|
|
663
|
+
}, Bn, Q = Me({
|
|
664
664
|
fetchGrant: async () => {
|
|
665
|
-
|
|
665
|
+
Bn = R.voicePageTools();
|
|
666
666
|
let e = await W.value.createVoiceSession(P.agentId, R.localChatId, {
|
|
667
667
|
deviceContext: R.buildDeviceContext(),
|
|
668
668
|
externalContext: R.externalContext,
|
|
669
|
-
pageTools:
|
|
669
|
+
pageTools: Bn?.declaration,
|
|
670
670
|
...R.confirmationMode === "automatic" && { confirmations: "automatic" }
|
|
671
671
|
});
|
|
672
672
|
return e.chatId !== R.localChatId && (R.localChatId = e.chatId), e;
|
|
673
673
|
},
|
|
674
674
|
closeGrant: (e) => W.value.closeVoiceSession(P.agentId, e),
|
|
675
|
-
clientTools: () =>
|
|
675
|
+
clientTools: () => Bn?.clientTools,
|
|
676
676
|
onTranscript: (e) => {
|
|
677
|
-
e.role === "user" ? (Z.value = !0,
|
|
677
|
+
e.role === "user" ? (Z.value = !0, pr(), Ft({
|
|
678
678
|
id: `${i}user-${n()}`,
|
|
679
679
|
role: "user",
|
|
680
680
|
parts: [{
|
|
@@ -684,7 +684,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
684
684
|
})) : Z.value = !1;
|
|
685
685
|
},
|
|
686
686
|
onTurnEnd: () => {
|
|
687
|
-
|
|
687
|
+
zn();
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
690
|
I(() => Q.isActive.value, (e) => {
|
|
@@ -692,38 +692,38 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
692
692
|
}), I(() => Q.error.value, (e) => {
|
|
693
693
|
e && (Z.value = !1);
|
|
694
694
|
});
|
|
695
|
-
let
|
|
695
|
+
let Vn = S(() => Te.value?.enabled === !0), Hn = S(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), Un = S(() => {
|
|
696
696
|
let e = Q.error.value;
|
|
697
697
|
if (e) return /took too long/i.test(e) ? J("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? J("message.voiceNoAnswer") : J("message.voiceInterrupted");
|
|
698
|
-
}),
|
|
699
|
-
|
|
700
|
-
},
|
|
701
|
-
Z.value = !1, await Q.stop(), !
|
|
702
|
-
},
|
|
698
|
+
}), Wn = S(() => Q.isSpeaking.value ? "output" : "input"), Gn = () => Q.readLevel(Wn.value), Kn = () => Q.readSpectrum(Wn.value), qn = async () => {
|
|
699
|
+
On.value = !1, await Q.start(), Q.isActive.value && (In(), Ln(qe));
|
|
700
|
+
}, Jn = async () => {
|
|
701
|
+
Z.value = !1, await Q.stop(), !kn && zn(0);
|
|
702
|
+
}, Yn = () => {
|
|
703
703
|
Q.dismissError();
|
|
704
|
-
},
|
|
705
|
-
Q.dismissError(), await Q.stop(), await
|
|
706
|
-
},
|
|
707
|
-
|
|
704
|
+
}, Xn = async () => {
|
|
705
|
+
Q.dismissError(), await Q.stop(), await qn();
|
|
706
|
+
}, Zn = (e) => e?.toolCallId ?? "", Qn = M(/* @__PURE__ */ new Set()), $n = (e) => Qn.value.has(Zn(e)), er = M(/* @__PURE__ */ new Map()), tr = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (Qn.value = new Set(Qn.value).add(Zn(e)), zn()), !0) : !1, nr = (e, t, n) => {
|
|
707
|
+
tr(t, l(t, n)) || kt({
|
|
708
708
|
tool: e,
|
|
709
|
-
toolCallId:
|
|
709
|
+
toolCallId: Zn(t),
|
|
710
710
|
output: n
|
|
711
711
|
});
|
|
712
|
-
},
|
|
712
|
+
}, rr = (e) => {
|
|
713
713
|
let t = e.confirmed ? J("message.voiceConfirmed") : J("message.voiceCancelled");
|
|
714
|
-
|
|
714
|
+
tr({ toolCallId: e.toolCallId }, t) ? Qn.value.has(e.toolCallId) && (er.value = new Map(er.value).set(e.toolCallId, e.confirmed)) : kt({
|
|
715
715
|
tool: "requestConfirm",
|
|
716
716
|
toolCallId: e.toolCallId,
|
|
717
717
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
718
718
|
});
|
|
719
|
-
},
|
|
719
|
+
}, ir = S(() => {
|
|
720
720
|
let e = /* @__PURE__ */ new Map();
|
|
721
721
|
for (let t of V.value) for (let n of t.parts) {
|
|
722
722
|
let { type: t, state: r, output: i } = n;
|
|
723
|
-
|
|
723
|
+
_n.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
|
|
724
724
|
}
|
|
725
725
|
return e;
|
|
726
|
-
}),
|
|
726
|
+
}), ar = S(() => {
|
|
727
727
|
let e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
728
728
|
if (t && n) {
|
|
729
729
|
let r = t.toLowerCase();
|
|
@@ -736,62 +736,62 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
736
736
|
continue;
|
|
737
737
|
}
|
|
738
738
|
let { type: e, state: r, output: i } = n;
|
|
739
|
-
|
|
739
|
+
_n.has(e) && r === "output-available" && i?.filename && t(u(i.filename, i.version), i.fileId);
|
|
740
740
|
}
|
|
741
741
|
return e;
|
|
742
742
|
}), $ = S(() => Qe.value ? void 0 : (e) => {
|
|
743
|
-
let t = (
|
|
743
|
+
let t = (ar.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
|
|
744
744
|
U.value = J(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), bt();
|
|
745
|
-
}),
|
|
746
|
-
|
|
747
|
-
},
|
|
745
|
+
}), or = (e, t) => {
|
|
746
|
+
tr(e, t) || (U.value = t, bt());
|
|
747
|
+
}, sr = (e, t) => {
|
|
748
748
|
let n = t.error ? J("message.voiceLocationRefused") : J("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
749
|
-
|
|
749
|
+
tr(e, n) || kt({
|
|
750
750
|
tool: "requestGeolocation",
|
|
751
|
-
toolCallId:
|
|
751
|
+
toolCallId: Zn(e),
|
|
752
752
|
output: t
|
|
753
753
|
});
|
|
754
|
-
},
|
|
755
|
-
|
|
754
|
+
}, cr = (e, t) => {
|
|
755
|
+
tr(e, J("message.voiceConnectionDone")) || kt({
|
|
756
756
|
tool: "requestOAuthConnection",
|
|
757
|
-
toolCallId:
|
|
757
|
+
toolCallId: Zn(e),
|
|
758
758
|
output: {
|
|
759
759
|
connected: !0,
|
|
760
760
|
mcpServerId: t
|
|
761
761
|
}
|
|
762
762
|
});
|
|
763
|
-
},
|
|
764
|
-
|
|
763
|
+
}, lr = () => {
|
|
764
|
+
On.value = !On.value, Q.setMuted(On.value);
|
|
765
765
|
};
|
|
766
766
|
le(() => {
|
|
767
|
-
|
|
767
|
+
kn = !0, In();
|
|
768
768
|
});
|
|
769
|
-
let { pendingWakeup:
|
|
769
|
+
let { pendingWakeup: ur, isStopping: dr, stop: fr, spokenTurnStarted: pr, spokenTurnsWritten: mr, forgetSpokenTurns: hr } = ze({
|
|
770
770
|
agentId: () => P.agentId,
|
|
771
771
|
chatId: () => R.localChatId,
|
|
772
772
|
apiClient: () => W.value,
|
|
773
773
|
messages: () => V.value,
|
|
774
|
-
refreshMessages:
|
|
774
|
+
refreshMessages: Pt,
|
|
775
775
|
status: () => H.value.status
|
|
776
776
|
});
|
|
777
777
|
return (t, n) => {
|
|
778
778
|
let r = ne;
|
|
779
779
|
return j(), T("div", {
|
|
780
780
|
ref_key: "chatViewEl",
|
|
781
|
-
ref:
|
|
781
|
+
ref: Qt,
|
|
782
782
|
class: A(["pk-chatbot-view-chat", {
|
|
783
|
-
"pk-chatbot-view-chat--dragover": F(
|
|
784
|
-
"pk-chatbot-view-chat--empty":
|
|
785
|
-
"pk-chatbot-view-chat--with-preview":
|
|
783
|
+
"pk-chatbot-view-chat--dragover": F(Dn) && K.value?.enabled,
|
|
784
|
+
"pk-chatbot-view-chat--empty": Xt.value,
|
|
785
|
+
"pk-chatbot-view-chat--with-preview": hn.value && !en.value
|
|
786
786
|
}])
|
|
787
787
|
}, [
|
|
788
788
|
D(x, {
|
|
789
789
|
name: "pk-chatbot-view-chat-fade",
|
|
790
790
|
mode: "out-in"
|
|
791
791
|
}, {
|
|
792
|
-
default: L(() => [
|
|
792
|
+
default: L(() => [Xt.value ? (j(), C(ee, {
|
|
793
793
|
key: 0,
|
|
794
|
-
greeting: F(
|
|
794
|
+
greeting: F(Zt),
|
|
795
795
|
logo: F(z)?.logo,
|
|
796
796
|
name: F(R).name
|
|
797
797
|
}, null, 8, [
|
|
@@ -803,7 +803,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
803
803
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
804
804
|
interactive: "",
|
|
805
805
|
messages: F(V),
|
|
806
|
-
"confirm-verdicts-on-call":
|
|
806
|
+
"confirm-verdicts-on-call": er.value,
|
|
807
807
|
status: F(H).status,
|
|
808
808
|
error: F(H).error,
|
|
809
809
|
"main-color": F(z)?.mainColor,
|
|
@@ -818,7 +818,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
818
818
|
"show-extended-steps": F(z)?.showExtendedSteps,
|
|
819
819
|
"hide-reasoning": F(z)?.showReasoning === !1,
|
|
820
820
|
"awaiting-spoken-answer": Z.value,
|
|
821
|
-
"host-working":
|
|
821
|
+
"host-working": Ht.value,
|
|
822
822
|
"host-confirmation": F(ot),
|
|
823
823
|
"is-dark": F(rt),
|
|
824
824
|
"show-scroll-to-bottom": a.modifier === "fullscreen",
|
|
@@ -833,8 +833,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
833
833
|
onDownvote: F(wt),
|
|
834
834
|
onFeedback: F(Tt),
|
|
835
835
|
onApprovalRespond: F(At),
|
|
836
|
-
onConfirmRespond:
|
|
837
|
-
onHostConfirmRespond: F(
|
|
836
|
+
onConfirmRespond: rr,
|
|
837
|
+
onHostConfirmRespond: F(Lt)
|
|
838
838
|
}, {
|
|
839
839
|
"tool-showContactForm": L(({ part: e }) => [D(F(y), {
|
|
840
840
|
part: e,
|
|
@@ -855,18 +855,18 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
855
855
|
])]),
|
|
856
856
|
"tool-showSuggestedReply": L(({ part: e }) => [D(F(ie), {
|
|
857
857
|
part: e,
|
|
858
|
-
onSelect: (t) =>
|
|
858
|
+
onSelect: (t) => or(e, t)
|
|
859
859
|
}, null, 8, ["part", "onSelect"])]),
|
|
860
860
|
"tool-showSources": L(({ part: e }) => [D(F(k), {
|
|
861
861
|
part: e,
|
|
862
|
-
"on-expand-context":
|
|
863
|
-
"on-download":
|
|
862
|
+
"on-expand-context": Tn,
|
|
863
|
+
"on-download": En
|
|
864
864
|
}, null, 8, ["part"])]),
|
|
865
865
|
"tool-showForm": L(({ part: e }) => [D(x, { mode: "out-in" }, {
|
|
866
866
|
default: L(() => [D(F(g), {
|
|
867
867
|
part: e,
|
|
868
|
-
answered:
|
|
869
|
-
onSelect: (t) =>
|
|
868
|
+
answered: $n(e),
|
|
869
|
+
onSelect: (t) => nr("showForm", e, t)
|
|
870
870
|
}, null, 8, [
|
|
871
871
|
"part",
|
|
872
872
|
"answered",
|
|
@@ -878,8 +878,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
878
878
|
default: L(() => [D(F(g), {
|
|
879
879
|
part: e,
|
|
880
880
|
"allow-custom-answer": "",
|
|
881
|
-
answered:
|
|
882
|
-
onSelect: (t) =>
|
|
881
|
+
answered: $n(e),
|
|
882
|
+
onSelect: (t) => nr("showMultipleChoice", e, t)
|
|
883
883
|
}, null, 8, [
|
|
884
884
|
"part",
|
|
885
885
|
"answered",
|
|
@@ -892,7 +892,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
892
892
|
"backend-url": F($e),
|
|
893
893
|
"resolve-connection": (e) => F(W).getOAuthAuthorizeUrl(P.agentId, e),
|
|
894
894
|
"check-connection": (e) => F(W).getOAuthConnectionStatus(P.agentId, e),
|
|
895
|
-
onConnected: (t) =>
|
|
895
|
+
onConnected: (t) => cr(e, t)
|
|
896
896
|
}, null, 8, [
|
|
897
897
|
"part",
|
|
898
898
|
"backend-url",
|
|
@@ -904,7 +904,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
904
904
|
part: e,
|
|
905
905
|
"call-live": F(Q).isActive.value,
|
|
906
906
|
"reverse-geocode": (e, t) => F(W).reverseGeocode(e, t),
|
|
907
|
-
onResult: (t) =>
|
|
907
|
+
onResult: (t) => sr(e, t)
|
|
908
908
|
}, null, 8, [
|
|
909
909
|
"part",
|
|
910
910
|
"call-live",
|
|
@@ -930,8 +930,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
930
930
|
key: F(p)(e),
|
|
931
931
|
part: e,
|
|
932
932
|
"file-url": q,
|
|
933
|
-
preview:
|
|
934
|
-
"latest-versions":
|
|
933
|
+
preview: pn,
|
|
934
|
+
"latest-versions": ir.value,
|
|
935
935
|
restore: $.value
|
|
936
936
|
}, null, 8, [
|
|
937
937
|
"part",
|
|
@@ -942,8 +942,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
942
942
|
key: F(p)(e),
|
|
943
943
|
part: e,
|
|
944
944
|
"file-url": q,
|
|
945
|
-
preview:
|
|
946
|
-
"latest-versions":
|
|
945
|
+
preview: pn,
|
|
946
|
+
"latest-versions": ir.value,
|
|
947
947
|
restore: $.value
|
|
948
948
|
}, null, 8, [
|
|
949
949
|
"part",
|
|
@@ -954,8 +954,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
954
954
|
key: F(p)(e),
|
|
955
955
|
part: e,
|
|
956
956
|
"file-url": q,
|
|
957
|
-
preview:
|
|
958
|
-
"latest-versions":
|
|
957
|
+
preview: pn,
|
|
958
|
+
"latest-versions": ir.value,
|
|
959
959
|
restore: $.value
|
|
960
960
|
}, null, 8, [
|
|
961
961
|
"part",
|
|
@@ -966,8 +966,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
966
966
|
key: F(p)(e),
|
|
967
967
|
part: e,
|
|
968
968
|
"file-url": q,
|
|
969
|
-
preview:
|
|
970
|
-
"latest-versions":
|
|
969
|
+
preview: pn,
|
|
970
|
+
"latest-versions": ir.value,
|
|
971
971
|
restore: $.value
|
|
972
972
|
}, null, 8, [
|
|
973
973
|
"part",
|
|
@@ -977,7 +977,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
977
977
|
"tool-shareDocument": L(({ part: e }) => [(j(), C(F(fe), {
|
|
978
978
|
key: F(p)(e),
|
|
979
979
|
part: e,
|
|
980
|
-
"on-download":
|
|
980
|
+
"on-download": En
|
|
981
981
|
}, null, 8, ["part"]))]),
|
|
982
982
|
_: 1
|
|
983
983
|
}, 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(".")))]),
|
|
@@ -986,8 +986,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
986
986
|
F(ft).length ? (j(), C(v, {
|
|
987
987
|
key: 0,
|
|
988
988
|
messages: F(ft),
|
|
989
|
-
onEdit: F(
|
|
990
|
-
onRemove: F(
|
|
989
|
+
onEdit: F(Rt),
|
|
990
|
+
onRemove: F(zt)
|
|
991
991
|
}, null, 8, [
|
|
992
992
|
"messages",
|
|
993
993
|
"onEdit",
|
|
@@ -995,7 +995,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
995
995
|
])) : w("", !0),
|
|
996
996
|
E("div", Ve, [
|
|
997
997
|
D(x, { name: "pk-chatbot-view-chat-fade" }, {
|
|
998
|
-
default: L(() => [
|
|
998
|
+
default: L(() => [Xt.value ? (j(), C(we, {
|
|
999
999
|
key: 0,
|
|
1000
1000
|
class: "pk-chatbot-view-chat__aurora",
|
|
1001
1001
|
"source-selector": ".pk-chatbot-input__form",
|
|
@@ -1009,17 +1009,17 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1009
1009
|
])) : w("", !0)]),
|
|
1010
1010
|
_: 1
|
|
1011
1011
|
}),
|
|
1012
|
-
F(
|
|
1012
|
+
F(ur) && !F(Qe) ? (j(), C(te, {
|
|
1013
1013
|
key: 0,
|
|
1014
|
-
pending: F(
|
|
1015
|
-
stopping: F(
|
|
1016
|
-
onStop: F(
|
|
1014
|
+
pending: F(ur),
|
|
1015
|
+
stopping: F(dr),
|
|
1016
|
+
onStop: F(fr)
|
|
1017
1017
|
}, null, 8, [
|
|
1018
1018
|
"pending",
|
|
1019
1019
|
"stopping",
|
|
1020
1020
|
"onStop"
|
|
1021
1021
|
])) : w("", !0),
|
|
1022
|
-
F(Qe) ? (j(), T("div", He, N(F(J)("message.chatErrorConversationBlocked")), 1)) :
|
|
1022
|
+
F(Qe) ? (j(), T("div", He, N(F(J)("message.chatErrorConversationBlocked")), 1)) : Hn.value === "idle" ? (j(), C(_, {
|
|
1023
1023
|
key: 3,
|
|
1024
1024
|
ref_key: "inputEl",
|
|
1025
1025
|
ref: vt,
|
|
@@ -1028,16 +1028,16 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1028
1028
|
"pending-attachments": F(et),
|
|
1029
1029
|
"onUpdate:pendingAttachments": n[5] ||= (e) => oe(et) ? et.value = e : null,
|
|
1030
1030
|
placeholder: F(Ze),
|
|
1031
|
-
"dismissable-notice": F(
|
|
1032
|
-
"page-notice":
|
|
1033
|
-
status:
|
|
1031
|
+
"dismissable-notice": F(Jt) && F(H).messages.length <= 1 ? F(Jt) : void 0,
|
|
1032
|
+
"page-notice": Gt.value,
|
|
1033
|
+
status: Ut.value,
|
|
1034
1034
|
"max-message-length": F(z)?.maxMessageLength,
|
|
1035
1035
|
"file-upload": K.value,
|
|
1036
1036
|
"attachment-limit-reached": F(tt),
|
|
1037
|
-
"attachment-notice":
|
|
1038
|
-
"voice-enabled":
|
|
1037
|
+
"attachment-notice": Kt.value,
|
|
1038
|
+
"voice-enabled": Vn.value,
|
|
1039
1039
|
"queue-enabled": F(dt),
|
|
1040
|
-
"answer-notices":
|
|
1040
|
+
"answer-notices": qt.value,
|
|
1041
1041
|
"pointer-available": F(ht),
|
|
1042
1042
|
pointing: F(gt),
|
|
1043
1043
|
pointer: yt.value,
|
|
@@ -1048,11 +1048,12 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1048
1048
|
onStopGeneration: F(xt),
|
|
1049
1049
|
onSubmit: F(bt),
|
|
1050
1050
|
onFileSelect: F(jt),
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1051
|
+
onRemoveAttachment: F(Mt),
|
|
1052
|
+
onDismissAttachmentNotice: F(Nt),
|
|
1053
|
+
onDismissPageNotice: F(It),
|
|
1054
|
+
onOpenAnswerNotice: F(Bt),
|
|
1055
|
+
onDismissAnswerNotice: F(Vt),
|
|
1056
|
+
onVoiceStart: qn
|
|
1056
1057
|
}, re({ _: 2 }, [a.modifier === "fullscreen" ? {
|
|
1057
1058
|
name: "prepend",
|
|
1058
1059
|
fn: L(() => [E("span", Ue, [D(h, {
|
|
@@ -1082,25 +1083,26 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1082
1083
|
"onStopGeneration",
|
|
1083
1084
|
"onSubmit",
|
|
1084
1085
|
"onFileSelect",
|
|
1086
|
+
"onRemoveAttachment",
|
|
1085
1087
|
"onDismissAttachmentNotice",
|
|
1086
1088
|
"onDismissPageNotice",
|
|
1087
1089
|
"onOpenAnswerNotice",
|
|
1088
1090
|
"onDismissAnswerNotice"
|
|
1089
1091
|
])) : (j(), C(je, {
|
|
1090
1092
|
key: 2,
|
|
1091
|
-
state:
|
|
1092
|
-
sample:
|
|
1093
|
-
spectrum:
|
|
1093
|
+
state: Hn.value,
|
|
1094
|
+
sample: Gn,
|
|
1095
|
+
spectrum: Kn,
|
|
1094
1096
|
"remaining-seconds": F(Q).remainingSeconds.value,
|
|
1095
|
-
muted:
|
|
1096
|
-
error:
|
|
1097
|
+
muted: On.value,
|
|
1098
|
+
error: Un.value,
|
|
1097
1099
|
"raw-error": F(Q).error.value,
|
|
1098
1100
|
live: F(Q).isActive.value,
|
|
1099
1101
|
class: "pk-chatbot-view-chat__voice",
|
|
1100
|
-
onToggleMute:
|
|
1101
|
-
onHangUp:
|
|
1102
|
-
onRetry:
|
|
1103
|
-
onDismiss:
|
|
1102
|
+
onToggleMute: lr,
|
|
1103
|
+
onHangUp: Jn,
|
|
1104
|
+
onRetry: Xn,
|
|
1105
|
+
onDismiss: Yn
|
|
1104
1106
|
}, null, 8, [
|
|
1105
1107
|
"state",
|
|
1106
1108
|
"remaining-seconds",
|
|
@@ -1111,17 +1113,17 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1111
1113
|
]))
|
|
1112
1114
|
]),
|
|
1113
1115
|
D(x, null, {
|
|
1114
|
-
default: L(() => [F(
|
|
1116
|
+
default: L(() => [F(Dn) && K.value?.enabled ? (j(), T("div", Ge, [D(r, {
|
|
1115
1117
|
name: "ri:upload-cloud-2-line",
|
|
1116
1118
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
1117
1119
|
}), E("span", null, N(F(J)("action.dropFile")), 1)])) : w("", !0)]),
|
|
1118
1120
|
_: 1
|
|
1119
1121
|
}),
|
|
1120
|
-
|
|
1122
|
+
hn.value ? (j(), C(b, {
|
|
1121
1123
|
key: 1,
|
|
1122
|
-
to:
|
|
1123
|
-
disabled:
|
|
1124
|
-
}, [E("aside", { class: A(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked":
|
|
1124
|
+
to: tn.value,
|
|
1125
|
+
disabled: !en.value
|
|
1126
|
+
}, [E("aside", { class: A(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": en.value }]) }, [F(Y) ? (j(), C(F(me), {
|
|
1125
1127
|
key: 0,
|
|
1126
1128
|
mode: X.value.mode,
|
|
1127
1129
|
"onUpdate:mode": n[9] ||= (e) => X.value.mode = e,
|
|
@@ -1134,21 +1136,21 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1134
1136
|
kind: F(Y).kind,
|
|
1135
1137
|
filename: F(Y).filename,
|
|
1136
1138
|
version: F(Y).version,
|
|
1137
|
-
versions:
|
|
1139
|
+
versions: yn.value,
|
|
1138
1140
|
"download-url": q(F(Y).storedFileName),
|
|
1139
|
-
preview: F(
|
|
1140
|
-
loading: F(
|
|
1141
|
-
error: F(
|
|
1142
|
-
restorable:
|
|
1141
|
+
preview: F(sn),
|
|
1142
|
+
loading: F(cn),
|
|
1143
|
+
error: F(ln),
|
|
1144
|
+
restorable: xn.value,
|
|
1143
1145
|
resize: "expand",
|
|
1144
1146
|
"file-id": F(Y).fileId,
|
|
1145
1147
|
"stored-file-name": F(Y).storedFileName,
|
|
1146
|
-
"selection-actions":
|
|
1147
|
-
onVersion:
|
|
1148
|
-
onRestore:
|
|
1149
|
-
onResize: n[13] ||= (e) =>
|
|
1150
|
-
onSelectionSend:
|
|
1151
|
-
onClose:
|
|
1148
|
+
"selection-actions": Cn.value,
|
|
1149
|
+
onVersion: bn,
|
|
1150
|
+
onRestore: Sn,
|
|
1151
|
+
onResize: n[13] ||= (e) => mn.value = !0,
|
|
1152
|
+
onSelectionSend: wn,
|
|
1153
|
+
onClose: gn
|
|
1152
1154
|
}, null, 8, [
|
|
1153
1155
|
"mode",
|
|
1154
1156
|
"sheet",
|
|
@@ -1167,7 +1169,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1167
1169
|
"stored-file-name",
|
|
1168
1170
|
"selection-actions"
|
|
1169
1171
|
])) : w("", !0)], 2)], 8, ["to", "disabled"])) : w("", !0),
|
|
1170
|
-
F(Y) && !
|
|
1172
|
+
F(Y) && !hn.value ? (j(), C(F(he), {
|
|
1171
1173
|
key: 2,
|
|
1172
1174
|
mode: X.value.mode,
|
|
1173
1175
|
"onUpdate:mode": n[14] ||= (e) => X.value.mode = e,
|
|
@@ -1178,20 +1180,20 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1178
1180
|
fit: X.value.fit,
|
|
1179
1181
|
"onUpdate:fit": n[17] ||= (e) => X.value.fit = e,
|
|
1180
1182
|
target: F(Y),
|
|
1181
|
-
versions:
|
|
1183
|
+
versions: yn.value,
|
|
1182
1184
|
"download-url": q(F(Y).storedFileName),
|
|
1183
|
-
preview: F(
|
|
1184
|
-
loading: F(
|
|
1185
|
-
error: F(
|
|
1186
|
-
restorable:
|
|
1187
|
-
resize:
|
|
1188
|
-
fullscreen:
|
|
1189
|
-
"selection-actions":
|
|
1190
|
-
onVersion:
|
|
1191
|
-
onRestore:
|
|
1192
|
-
onResize: n[18] ||= (e) =>
|
|
1193
|
-
onSelectionSend:
|
|
1194
|
-
onClose:
|
|
1185
|
+
preview: F(sn),
|
|
1186
|
+
loading: F(cn),
|
|
1187
|
+
error: F(ln),
|
|
1188
|
+
restorable: xn.value,
|
|
1189
|
+
resize: an.value ? "shrink" : void 0,
|
|
1190
|
+
fullscreen: on.value,
|
|
1191
|
+
"selection-actions": Cn.value,
|
|
1192
|
+
onVersion: bn,
|
|
1193
|
+
onRestore: Sn,
|
|
1194
|
+
onResize: n[18] ||= (e) => mn.value = !1,
|
|
1195
|
+
onSelectionSend: wn,
|
|
1196
|
+
onClose: gn
|
|
1195
1197
|
}, null, 8, [
|
|
1196
1198
|
"mode",
|
|
1197
1199
|
"sheet",
|
|
@@ -1214,4 +1216,4 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
|
|
|
1214
1216
|
});
|
|
1215
1217
|
export { Ee as a, je as i, Be as n, we as o, Pe as r, Ze as t };
|
|
1216
1218
|
|
|
1217
|
-
//# sourceMappingURL=PkChatbotViewChat-
|
|
1219
|
+
//# sourceMappingURL=PkChatbotViewChat-CHvtUHuO.js.map
|