@8wave/ai-elements 0.125.0-beta.38 → 0.125.0-beta.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{Agent-D9MWMkLp.js → Agent-CeZ3bgZ3.js} +4 -3
- package/dist/_chunks/Agent-CeZ3bgZ3.js.map +1 -0
- package/dist/_chunks/PkChart-CbtMRGWc.js +7411 -0
- package/dist/_chunks/PkChart-CbtMRGWc.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-BdqdC1ml.js → PkFilePreview-CT3_vRcU.js} +3 -3
- package/dist/_chunks/{PkFilePreview-BdqdC1ml.js.map → PkFilePreview-CT3_vRcU.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-_pdW07pm.js → PkFilePreviewDialog-BOKJCapN.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-_pdW07pm.js.map → PkFilePreviewDialog-BOKJCapN.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-CjAiM1G3.js → PkSelectionActions-CXQTnSXQ.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-CjAiM1G3.js.map → PkSelectionActions-CXQTnSXQ.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-DKTxy47I.js → PkStreamingMarkdown-5fgxYt_s.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-DKTxy47I.js.map → PkStreamingMarkdown-5fgxYt_s.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-39PrHVVm.js → PkToolChatFile-Cbmu6I0S.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-39PrHVVm.js.map → PkToolChatFile-Cbmu6I0S.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-CMSIJu4c.js → PkToolRequestGeolocation-DktrQJvA.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-CMSIJu4c.js.map → PkToolRequestGeolocation-DktrQJvA.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-ClVVaEuK.js → PkToolRequestOAuthConnection-DkcLwFWl.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-ClVVaEuK.js.map → PkToolRequestOAuthConnection-DkcLwFWl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-D1AOFL1o.js → PkToolShowArtifact-CGUmoTfN.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-D1AOFL1o.js.map → PkToolShowArtifact-CGUmoTfN.js.map} +1 -1
- package/dist/_chunks/PkToolShowChart-DZWu3Yuo.js +224 -0
- package/dist/_chunks/PkToolShowChart-DZWu3Yuo.js.map +1 -0
- package/dist/_chunks/{PkToolShowContactForm-CTitUxv_.js → PkToolShowContactForm-DZ-kgXa6.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-CTitUxv_.js.map → PkToolShowContactForm-DZ-kgXa6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-YaDgT_04.js → PkToolShowForm-BrxNGFCH.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-YaDgT_04.js.map → PkToolShowForm-BrxNGFCH.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-BVrcfe_b.js → PkToolShowImageGallery-BGTncXxq.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-BVrcfe_b.js.map → PkToolShowImageGallery-BGTncXxq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-CYNh8YRF.js → PkToolShowProductList-k-VB4pUB.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-CYNh8YRF.js.map → PkToolShowProductList-k-VB4pUB.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BvH0el0N.js → PkToolShowSources-B3RSUWP7.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-BvH0el0N.js.map → PkToolShowSources-B3RSUWP7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-PHcre0Ff.js → PkToolShowSuggestedReply-DTAq41wP.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-PHcre0Ff.js.map → PkToolShowSuggestedReply-DTAq41wP.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-SiP-5Ekl.js → PkToolShowVideo-DeexblEL.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-SiP-5Ekl.js.map → PkToolShowVideo-DeexblEL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-Co_33g_K.js → PkToolShowWebPages-C42FNo8K.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-Co_33g_K.js.map → PkToolShowWebPages-C42FNo8K.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-XBxAhi8o.js → chatImagePolicy-DlZPHhW-.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-XBxAhi8o.js.map → chatImagePolicy-DlZPHhW-.js.map} +1 -1
- package/dist/_chunks/{markdown-DGKSBppG.js → markdown-DNPhTO5l.js} +2 -2
- package/dist/_chunks/{markdown-DGKSBppG.js.map → markdown-DNPhTO5l.js.map} +1 -1
- package/dist/_chunks/{utils-DYtnrtNk.js → utils-Do6urHUh.js} +4 -4
- package/dist/_chunks/utils-Do6urHUh.js.map +1 -0
- package/dist/ai-elements.es.js +2045 -2020
- 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/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-hvrlDtLK.js → Agent-ldDZiq6E.js} +4 -3
- package/dist-vue/_chunks/Agent-ldDZiq6E.js.map +1 -0
- package/dist-vue/_chunks/{Document-DXSWegFn.js → Document-BfjAfogy.js} +2 -2
- package/dist-vue/_chunks/{Document-DXSWegFn.js.map → Document-BfjAfogy.js.map} +1 -1
- package/dist-vue/_chunks/PkChart-BsF3OtnS.js +243 -0
- package/dist-vue/_chunks/PkChart-BsF3OtnS.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-CfBea2qY.js → PkChatbot-BIQh81cA.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-CfBea2qY.js.map → PkChatbot-BIQh81cA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-BYrTqidA.js → PkChatbotEmptyState-pAeFPPQc.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-BYrTqidA.js.map → PkChatbotEmptyState-pAeFPPQc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-Cwkz19oM.js → PkChatbotInput-DSyIo0xB.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotInput-Cwkz19oM.js.map → PkChatbotInput-DSyIo0xB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-AkfEvXEN.js → PkChatbotMessages-CZu8feEz.js} +23 -18
- package/dist-vue/_chunks/PkChatbotMessages-CZu8feEz.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-C4yEGoXA.js → PkChatbotStepPayload-r25JHO7_.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-C4yEGoXA.js.map → PkChatbotStepPayload-r25JHO7_.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DnGYrFSt.js → PkChatbotStepToolDetail-C897BpRX.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DnGYrFSt.js.map → PkChatbotStepToolDetail-C897BpRX.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CoP1JyWG.js → PkChatbotSteps-CRtIVwJV.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CoP1JyWG.js.map → PkChatbotSteps-CRtIVwJV.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CdcZrTJJ.js → PkChatbotViewChat-BBCxj4Qz.js} +369 -365
- package/dist-vue/_chunks/PkChatbotViewChat-BBCxj4Qz.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-oYUIHDwb.js → PkChatbotViewConversations-rXGl7NKA.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-oYUIHDwb.js.map → PkChatbotViewConversations-rXGl7NKA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-C1ggPJvX.js → PkChatbotViewFiles-CsL8OhcA.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-C1ggPJvX.js.map → PkChatbotViewFiles-CsL8OhcA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BZJ8OZ9h.js → PkChatbotViewProfile-CFqxCK2f.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BZJ8OZ9h.js.map → PkChatbotViewProfile-CFqxCK2f.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-DJBrACR3.js → PkFilePreview-1ZNyDAo5.js} +3 -3
- package/dist-vue/_chunks/{PkFilePreview-DJBrACR3.js.map → PkFilePreview-1ZNyDAo5.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-C-m04VEl.js → PkFilePreviewDialog-DnbUHGG2.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-C-m04VEl.js.map → PkFilePreviewDialog-DnbUHGG2.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-BiS7Huii.js → PkStreamingMarkdown-COQLmP8b.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-BiS7Huii.js.map → PkStreamingMarkdown-COQLmP8b.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-DJouw7ft.js → PkToolChatFile-e-7a0k7l.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-DJouw7ft.js.map → PkToolChatFile-e-7a0k7l.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Du8b17X9.js → PkToolRequestGeolocation-D1XNCvdr.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Du8b17X9.js.map → PkToolRequestGeolocation-D1XNCvdr.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-X00hZZJe.js → PkToolRequestOAuthConnection-OTvMRYaL.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-X00hZZJe.js.map → PkToolRequestOAuthConnection-OTvMRYaL.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-BAfGUGM4.js → PkToolShowArtifact-CUP3VaC9.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BAfGUGM4.js.map → PkToolShowArtifact-CUP3VaC9.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowChart-X6JZDAWD.js +217 -0
- package/dist-vue/_chunks/PkToolShowChart-X6JZDAWD.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowContactForm-CtJSjw8M.js → PkToolShowContactForm-BM8d9M5a.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CtJSjw8M.js.map → PkToolShowContactForm-BM8d9M5a.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CgOAGQCq.js → PkToolShowDiagram-DOdzpndK.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CgOAGQCq.js.map → PkToolShowDiagram-DOdzpndK.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BXpPnVzJ.js → PkToolShowForm-TYBf8q6g.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-BXpPnVzJ.js.map → PkToolShowForm-TYBf8q6g.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DOsnvy1W.js → PkToolShowImageGallery-BvwuoyF6.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DOsnvy1W.js.map → PkToolShowImageGallery-BvwuoyF6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-Buw-GpNJ.js → PkToolShowProductList-_MHBAgNI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-Buw-GpNJ.js.map → PkToolShowProductList-_MHBAgNI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-CPvjMvqB.js → PkToolShowSources-CHw7qZtw.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-CPvjMvqB.js.map → PkToolShowSources-CHw7qZtw.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-HLFecN53.js → PkToolShowSuggestedReply-BVLCX5Sm.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-HLFecN53.js.map → PkToolShowSuggestedReply-BVLCX5Sm.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-DPZtAuLl.js → PkToolShowVideo-D7oiBe4p.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-DPZtAuLl.js.map → PkToolShowVideo-D7oiBe4p.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DXjDxztJ.js → PkToolShowWebPages-CRq9Jhmw.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DXjDxztJ.js.map → PkToolShowWebPages-CRq9Jhmw.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CWLca1yc.js → createChatbotApiClient-CGeNprai.js} +2 -2
- package/dist-vue/_chunks/{createChatbotApiClient-CWLca1yc.js.map → createChatbotApiClient-CGeNprai.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-CNQ8lTub.js → useChatbotStore-KXAltGz3.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-CNQ8lTub.js.map → useChatbotStore-KXAltGz3.js.map} +1 -1
- package/dist-vue/_chunks/{utils-Dqyng-2B.js → utils-Do3JWPJe.js} +4 -4
- package/dist-vue/_chunks/utils-Do3JWPJe.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +28 -12
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +28 -27
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +22 -4
- package/dist-vue/packages/components/src/chat/PkChart.d.ts +18 -0
- package/dist-vue/packages/components/src/chat/PkChartCard.d.ts +16 -0
- package/dist-vue/packages/components/src/chat/PkToolShowChart.d.ts +12 -0
- package/dist-vue/packages/components/src/chat/chartFormat.d.ts +21 -0
- package/dist-vue/packages/components/src/chat/useChatFilePreview.d.ts +2 -2
- package/dist-vue/packages/composable/src/cssColor.d.ts +44 -0
- package/dist-vue/packages/composable/src/index.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Chart.d.ts +147 -0
- package/dist-vue/packages/models/src/schema/Document.d.ts +2 -2
- package/dist-vue/packages/models/src/schema/Invitation.d.ts +1 -1
- package/dist-vue/packages/models/src/schema/Lead.d.ts +3 -3
- package/dist-vue/packages/models/src/schema/SelectionAction.d.ts +1 -1
- package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +5 -5
- package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
- package/dist-vue/style.css +1 -1
- package/package.json +2 -1
- package/dist/_chunks/Agent-D9MWMkLp.js.map +0 -1
- package/dist/_chunks/utils-DYtnrtNk.js.map +0 -1
- package/dist-vue/_chunks/Agent-hvrlDtLK.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-AkfEvXEN.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-CdcZrTJJ.js.map +0 -1
- package/dist-vue/_chunks/utils-Dqyng-2B.js.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { t as e } from "./PkChatbotMessages-
|
|
1
|
+
import { t as e } from "./PkChatbotMessages-CZu8feEz.js";
|
|
2
2
|
import { o as t } from "./Media-DylqhvaF.js";
|
|
3
3
|
import { t as n } from "./useLightbox-Ctl9zaMX.js";
|
|
4
|
-
import { a as r, n as i, t as a } from "./useChatbotStore-
|
|
4
|
+
import { a as r, n as i, t as a } from "./useChatbotStore-KXAltGz3.js";
|
|
5
5
|
import { n as o } from "./src-nb8MU1sh.js";
|
|
6
6
|
import { s, t as c } from "./message-DuibQyHy.js";
|
|
7
|
-
import { R as l, f as u, l as d, n as f, r as p, y as m } from "./utils-
|
|
7
|
+
import { R as l, f as u, l as d, n as f, r as p, y as m } from "./utils-Do3JWPJe.js";
|
|
8
8
|
import { t as h } from "./useLocalizedString-Dmn92nix.js";
|
|
9
9
|
import { t as g } from "./PkAvatar-DwtZWSW4.js";
|
|
10
|
-
import { n as _, t as v } from "./PkChatbotInput-
|
|
10
|
+
import { n as _, t as v } from "./PkChatbotInput-DSyIo0xB.js";
|
|
11
11
|
import { t as ee } from "./PkChatbotQueuedMessages-CIJFAvE2.js";
|
|
12
|
-
import { t as te } from "./PkChatbotEmptyState-
|
|
12
|
+
import { t as te } from "./PkChatbotEmptyState-pAeFPPQc.js";
|
|
13
13
|
import { t as ne } from "./PkChatbotWakeupBar-DEP-d-Fp.js";
|
|
14
14
|
import { VvIcon as y } from "@volverjs/ui-vue/components";
|
|
15
|
-
import { Fragment as b, Teleport as re, Transition as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as ie, createTextVNode as ae, createVNode as D, defineAsyncComponent as O, defineComponent as oe, inject as se, isRef as ce, nextTick as le, normalizeClass as k, normalizeStyle as ue, onBeforeUnmount as de, onMounted as fe, onScopeDispose as pe, onUnmounted as me, openBlock as A, provide as he, ref as j, renderList as ge, shallowRef as _e, toDisplayString as M, toValue as
|
|
16
|
-
import { useI18n as
|
|
17
|
-
import { useDropZone as
|
|
18
|
-
import { storeToRefs as
|
|
15
|
+
import { Fragment as b, Teleport as re, Transition as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as ie, createTextVNode as ae, createVNode as D, defineAsyncComponent as O, defineComponent as oe, inject as se, isRef as ce, nextTick as le, normalizeClass as k, normalizeStyle as ue, onBeforeUnmount as de, onMounted as fe, onScopeDispose as pe, onUnmounted as me, openBlock as A, provide as he, ref as j, renderList as ge, shallowRef as _e, toDisplayString as M, toValue as ve, unref as N, useTemplateRef as ye, watch as P, withCtx as F } from "vue";
|
|
16
|
+
import { useI18n as be } from "vue-i18n";
|
|
17
|
+
import { useDropZone as xe, useResizeObserver as Se } from "@vueuse/core";
|
|
18
|
+
import { storeToRefs as Ce } from "pinia";
|
|
19
19
|
// ../../packages/composable/src/chatbot/useGreeting.ts
|
|
20
|
-
function Ce(e, t) {
|
|
21
|
-
let { locale: n, t: r, te: i } = ye({ useScope: "global" });
|
|
22
|
-
return S(() => we(N(e)?.greeting?.[0]?.[n.value] ?? "", N(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
|
|
23
|
-
}
|
|
24
20
|
function we(e, t) {
|
|
21
|
+
let { locale: n, t: r, te: i } = be({ useScope: "global" });
|
|
22
|
+
return S(() => I(ve(e)?.greeting?.[0]?.[n.value] ?? "", ve(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
|
|
23
|
+
}
|
|
24
|
+
function I(e, t) {
|
|
25
25
|
return (t ? e.replace(/\{name\}/g, t) : e.replace(/[,\s]*\{name\}[!?]?/g, "")).trim();
|
|
26
26
|
}
|
|
27
27
|
// ../../packages/components/src/chat/PkAuroraCanvas.vue?vue&type=script&setup=true&lang.ts
|
|
28
|
-
var
|
|
28
|
+
var Te = {
|
|
29
29
|
key: 1,
|
|
30
30
|
class: "pk-aurora__fallback"
|
|
31
|
-
},
|
|
31
|
+
}, L = "\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}", R = "\nprecision mediump float;\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform vec3 u_color;\nuniform vec3 u_color2;\nuniform float u_duo;\nuniform vec2 u_center;\nuniform vec2 u_half;\nuniform float u_spread;\n\nvec3 permute(vec3 x) { return mod(((x * 34.0) + 1.0) * x, 289.0); }\n\nfloat snoise(vec2 v) {\n const vec4 C = vec4(0.211324865405187, 0.366025403784439,\n -0.577350269189626, 0.024390243902439);\n vec2 i = floor(v + dot(v, C.yy));\n vec2 x0 = v - i + dot(i, C.xx);\n vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n i = mod(i, 289.0);\n vec3 p = permute(permute(i.y + vec3(0.0, i1.y, 1.0))\n + i.x + vec3(0.0, i1.x, 1.0));\n vec3 m = max(0.5 - vec3(dot(x0, x0), dot(x12.xy, x12.xy),\n dot(x12.zw, x12.zw)), 0.0);\n m = m * m;\n m = m * m;\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n m *= 1.79284291400159 - 0.85373472095314 * (a0 * a0 + h * h);\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n}\n\nvoid main() {\n vec2 px = gl_FragCoord.xy;\n vec2 rel = px - u_center;\n\n // Ignition: the ellipse lights up expanding from the center on mount\n float intro = smoothstep(0.0, 1.4, u_time);\n\n // Breathing: size and brightness oscillate gently but visibly\n float breath = 1.0\n + 0.12 * sin(u_time * 0.55)\n + 0.06 * snoise(vec2(u_time * 0.1, 3.7));\n float pulse = 1.0 + 0.2 * sin(u_time * 0.55 + 1.3);\n\n // Keep it simple (Gemini-style): one huge soft elliptical glow\n // centered on the pill. Its height follows the pill's, but each half\n // ends inside the canvas: at most the room to that edge over 1.75, so\n // at the widest breath (1.24) the glow there is about 1% of its peak,\n // under one 8-bit step, and the edge fade below finds nothing to cut.\n // Uncapped, a taller pill (a second line, an attachment) or a short\n // canvas left a quarter of the glow or more at the edge, cut straight.\n vec2 radii = vec2(u_half.x * 0.95, u_half.y * 6.5) * u_spread;\n float room = rel.y > 0.0 ? u_resolution.y - u_center.y : u_center.y;\n radii.y = min(radii.y, room / 1.75);\n radii *= breath * mix(0.15, 1.0, intro);\n float r = length(rel / max(radii, vec2(1.0)));\n float glow = exp(-r * r * 2.2);\n\n // Never cut hard against the canvas bounds\n vec2 m = min(px, u_resolution - px);\n glow *= smoothstep(0.0, 32.0, min(m.x, m.y));\n\n // Dither: breaks the 8-bit banding rings of the very soft gradient\n // (no CSS blur on the canvas, the noise must fully mask the bands)\n glow = max(glow + (snoise(px * 0.9) - 0.5) * 0.03, 0.0);\n\n float alpha = glow * 0.2 * pulse * intro;\n\n // Two tones: left to right the glow passes from the first to the\n // second, along a border a slow noise field keeps bending\n vec2 q = rel / max(radii, vec2(1.0));\n float bands = q.x * 0.9\n + 0.7 * snoise(q * 0.8 + vec2(u_time * 0.07, -u_time * 0.05));\n vec3 color = mix(u_color, u_color2, u_duo * smoothstep(-0.6, 0.6, bands));\n\n // Premultiplied alpha (default canvas compositing)\n gl_FragColor = vec4(color * alpha, alpha);\n}", Ee = /* @__PURE__ */ oe({
|
|
32
32
|
__name: "PkAuroraCanvas",
|
|
33
33
|
props: {
|
|
34
34
|
sourceSelector: {},
|
|
@@ -37,7 +37,7 @@ var L = {
|
|
|
37
37
|
secondColor: {}
|
|
38
38
|
},
|
|
39
39
|
setup(e) {
|
|
40
|
-
let t = e, n =
|
|
40
|
+
let t = e, n = ye("rootEl"), r = ye("canvasEl"), i = j(!1), a = j(null), o = S(() => a.value ? {
|
|
41
41
|
"--pk-aurora-tint": `rgb(${a.value.first.join(" ")})`,
|
|
42
42
|
"--pk-aurora-tint-2": `rgb(${(a.value.duo ? a.value.second : a.value.first).join(" ")})`
|
|
43
43
|
} : void 0), s = null, c = 0, u = null, d = null, f = null, p = null, m = null, h = null, g = null, _ = null, v = null, ee = performance.now(), te = (e, t) => {
|
|
@@ -51,7 +51,7 @@ var L = {
|
|
|
51
51
|
secondColor: t.secondColor
|
|
52
52
|
}), s && !i.value && a.value && (s.uniform3f(g, ...ne(a.value.first)), s.uniform3f(_, ...ne(a.value.second)), s.uniform1f(v, +!!a.value.duo), x(re() ? 10 : void 0)));
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
P([
|
|
55
55
|
() => t.mainColor,
|
|
56
56
|
() => t.tones,
|
|
57
57
|
() => t.secondColor
|
|
@@ -79,7 +79,7 @@ var L = {
|
|
|
79
79
|
i.value = !0;
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
let t = te(s.VERTEX_SHADER,
|
|
82
|
+
let t = te(s.VERTEX_SHADER, L), n = te(s.FRAGMENT_SHADER, R), o = s.createProgram();
|
|
83
83
|
if (!t || !n || !o || (s.attachShader(o, t), s.attachShader(o, n), s.linkProgram(o), !s.getProgramParameter(o, s.LINK_STATUS))) {
|
|
84
84
|
i.value = !0;
|
|
85
85
|
return;
|
|
@@ -111,7 +111,7 @@ var L = {
|
|
|
111
111
|
class: "pk-aurora",
|
|
112
112
|
"aria-hidden": "true",
|
|
113
113
|
style: ue(o.value)
|
|
114
|
-
}, [i.value ? (A(), T("div",
|
|
114
|
+
}, [i.value ? (A(), T("div", Te)) : (A(), T("canvas", {
|
|
115
115
|
key: 0,
|
|
116
116
|
ref_key: "canvasEl",
|
|
117
117
|
ref: r,
|
|
@@ -130,7 +130,7 @@ var L = {
|
|
|
130
130
|
bars: { default: 5 }
|
|
131
131
|
},
|
|
132
132
|
setup(e) {
|
|
133
|
-
let t = e, n =
|
|
133
|
+
let t = e, n = ye("barsEl"), r = Array.from({ length: t.bars }, () => z), i, a = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === !0, o = () => {
|
|
134
134
|
let e = Math.min(1, Math.max(0, t.sample())), n = t.spectrum?.(), i = r.length;
|
|
135
135
|
if (!n?.length) {
|
|
136
136
|
let t = Date.now() / 260;
|
|
@@ -156,7 +156,7 @@ var L = {
|
|
|
156
156
|
}, l = () => {
|
|
157
157
|
i !== void 0 && (cancelAnimationFrame(i), i = void 0);
|
|
158
158
|
};
|
|
159
|
-
return
|
|
159
|
+
return P(() => t.state, async (e) => {
|
|
160
160
|
e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => z * 1.6), await le(), s()) : i === void 0 && (i = requestAnimationFrame(c));
|
|
161
161
|
}, { immediate: !0 }), de(l), (t, r) => (A(), T("div", {
|
|
162
162
|
class: k(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
|
|
@@ -174,14 +174,14 @@ var L = {
|
|
|
174
174
|
key: 0,
|
|
175
175
|
class: "pk-voice-session__badge",
|
|
176
176
|
"aria-hidden": "true"
|
|
177
|
-
},
|
|
177
|
+
}, Ae = {
|
|
178
178
|
class: "pk-voice-session__status",
|
|
179
179
|
role: "status"
|
|
180
|
-
},
|
|
180
|
+
}, B = {
|
|
181
181
|
key: 0,
|
|
182
182
|
class: "pk-voice-session__live-dot",
|
|
183
183
|
"aria-hidden": "true"
|
|
184
|
-
},
|
|
184
|
+
}, V = ["title"], je = ["title"], Me = { class: "pk-voice-session__actions" }, Ne = /* @__PURE__ */ oe({
|
|
185
185
|
__name: "PkVoiceSession",
|
|
186
186
|
props: {
|
|
187
187
|
state: {},
|
|
@@ -200,7 +200,7 @@ var L = {
|
|
|
200
200
|
"dismiss"
|
|
201
201
|
],
|
|
202
202
|
setup(e, { emit: t }) {
|
|
203
|
-
let n = e, r = t, { t: i } =
|
|
203
|
+
let n = e, r = t, { t: i } = be({ useScope: "global" }), a = S(() => n.error ? i("message.voiceFailed") : n.state === "connecting" ? i("message.voiceConnecting") : n.state === "speaking" ? i("message.voiceSpeaking") : n.muted ? i("message.voiceMuted") : i("message.voiceListening")), o = S(() => {
|
|
204
204
|
if (n.remainingSeconds === void 0) return;
|
|
205
205
|
let e = Math.floor(n.remainingSeconds / 60), t = n.remainingSeconds % 60;
|
|
206
206
|
return `${e}:${String(t).padStart(2, "0")}`;
|
|
@@ -220,37 +220,37 @@ var L = {
|
|
|
220
220
|
"sample",
|
|
221
221
|
"spectrum"
|
|
222
222
|
])),
|
|
223
|
-
E("div",
|
|
223
|
+
E("div", Ae, [E("span", { class: k(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (A(), T("span", B)) : w("", !0), ae(" " + M(a.value), 1)], 2), e.error ? (A(), T("p", {
|
|
224
224
|
key: 0,
|
|
225
225
|
class: "pk-voice-session__detail",
|
|
226
226
|
title: e.rawError ?? e.error
|
|
227
|
-
}, M(e.error), 9,
|
|
227
|
+
}, M(e.error), 9, V)) : w("", !0)]),
|
|
228
228
|
o.value ? (A(), T("span", {
|
|
229
229
|
key: 2,
|
|
230
230
|
class: k(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
|
|
231
|
-
title:
|
|
231
|
+
title: N(i)("hint.voiceRemaining"),
|
|
232
232
|
"aria-hidden": "true"
|
|
233
233
|
}, M(o.value), 11, je)) : w("", !0),
|
|
234
234
|
E("div", Me, [e.error ? (A(), T(b, { key: 0 }, [D(_, {
|
|
235
235
|
icon: "ri:refresh-line",
|
|
236
|
-
label:
|
|
236
|
+
label: N(i)("action.retry"),
|
|
237
237
|
onClick: n[0] ||= (e) => r("retry")
|
|
238
238
|
}, null, 8, ["label"]), e.live ? (A(), C(_, {
|
|
239
239
|
key: 0,
|
|
240
240
|
icon: "ri:stop-circle-line",
|
|
241
241
|
modifiers: "danger",
|
|
242
|
-
title:
|
|
243
|
-
"aria-label":
|
|
242
|
+
title: N(i)("action.hangUp"),
|
|
243
|
+
"aria-label": N(i)("action.hangUp"),
|
|
244
244
|
onClick: n[1] ||= (e) => r("hang-up")
|
|
245
245
|
}, null, 8, ["title", "aria-label"])) : (A(), C(_, {
|
|
246
246
|
key: 1,
|
|
247
247
|
icon: "ri:close-line",
|
|
248
|
-
label:
|
|
248
|
+
label: N(i)("action.close"),
|
|
249
249
|
onClick: n[2] ||= (e) => r("dismiss")
|
|
250
250
|
}, null, 8, ["label"]))], 64)) : (A(), T(b, { key: 1 }, [D(_, {
|
|
251
251
|
icon: e.muted ? "ri:mic-off-line" : "ri:mic-line",
|
|
252
|
-
title: e.muted ?
|
|
253
|
-
"aria-label": e.muted ?
|
|
252
|
+
title: e.muted ? N(i)("action.unmute") : N(i)("action.mute"),
|
|
253
|
+
"aria-label": e.muted ? N(i)("action.unmute") : N(i)("action.mute"),
|
|
254
254
|
"aria-pressed": e.muted,
|
|
255
255
|
onClick: n[3] ||= (e) => r("toggle-mute")
|
|
256
256
|
}, null, 8, [
|
|
@@ -261,8 +261,8 @@ var L = {
|
|
|
261
261
|
]), D(_, {
|
|
262
262
|
icon: "ri:stop-circle-line",
|
|
263
263
|
modifiers: "danger",
|
|
264
|
-
title:
|
|
265
|
-
"aria-label":
|
|
264
|
+
title: N(i)("action.hangUp"),
|
|
265
|
+
"aria-label": N(i)("action.hangUp"),
|
|
266
266
|
onClick: n[4] ||= (e) => r("hang-up")
|
|
267
267
|
}, null, 8, ["title", "aria-label"])], 64))])
|
|
268
268
|
], 2);
|
|
@@ -405,8 +405,8 @@ var Re = 4e3, ze = [
|
|
|
405
405
|
3e3,
|
|
406
406
|
5e3,
|
|
407
407
|
1e4
|
|
408
|
-
], Be = 12e4,
|
|
409
|
-
function
|
|
408
|
+
], Be = 12e4, Ve = 3e4;
|
|
409
|
+
function He(e) {
|
|
410
410
|
let t = j(null), n = j(!1), r, i = !1, a = () => {
|
|
411
411
|
clearTimeout(r), r = void 0;
|
|
412
412
|
}, o = (e, t) => {
|
|
@@ -454,11 +454,11 @@ function Ve(e) {
|
|
|
454
454
|
f = void 0;
|
|
455
455
|
}
|
|
456
456
|
let g = S(() => e.messages().some((e) => e.role === "user"));
|
|
457
|
-
|
|
457
|
+
P([e.chatId, g], ([, t]) => {
|
|
458
458
|
d();
|
|
459
459
|
let n = e.status(), r = n === "submitted" || n === "streaming" || f === e.chatId();
|
|
460
460
|
t && !r && c();
|
|
461
|
-
}, { immediate: !0 }),
|
|
461
|
+
}, { immediate: !0 }), P(e.status, (e, t) => {
|
|
462
462
|
e === "ready" && t !== "ready" && g.value && c();
|
|
463
463
|
});
|
|
464
464
|
let _;
|
|
@@ -466,8 +466,8 @@ function Ve(e) {
|
|
|
466
466
|
t.value && document.visibilityState === "visible" && e.apiClient().markChatWakeupPresence(e.agentId(), e.chatId()).catch(() => void 0);
|
|
467
467
|
}
|
|
468
468
|
let ee = () => v();
|
|
469
|
-
return document.addEventListener("visibilitychange", ee),
|
|
470
|
-
clearInterval(_), _ = void 0, e && !i && (v(), _ = setInterval(v,
|
|
469
|
+
return document.addEventListener("visibilitychange", ee), P(() => t.value?.wakeId, (e) => {
|
|
470
|
+
clearInterval(_), _ = void 0, e && !i && (v(), _ = setInterval(v, Ve));
|
|
471
471
|
}), de(() => {
|
|
472
472
|
i = !0, a(), clearInterval(_), document.removeEventListener("visibilitychange", ee);
|
|
473
473
|
}), {
|
|
@@ -482,7 +482,7 @@ function Ve(e) {
|
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
// ../../packages/components/src/chat/previewChanges.ts
|
|
485
|
-
var
|
|
485
|
+
var H = 1e6, Ue = (e, t) => {
|
|
486
486
|
let n = 0;
|
|
487
487
|
for (; n < e.length && n < t.length && e[n] === t[n];) n += 1;
|
|
488
488
|
let r = 0;
|
|
@@ -494,29 +494,29 @@ var He = 1e6, U = (e, t) => {
|
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
if (!a) return o;
|
|
497
|
-
if (!i || i * a >
|
|
497
|
+
if (!i || i * a > H) return s(n, n + i, n, n + a), o;
|
|
498
498
|
let c = new Uint32Array((i + 1) * (a + 1));
|
|
499
499
|
for (let r = i - 1; r >= 0; r--) for (let i = a - 1; i >= 0; i--) c[r * (a + 1) + i] = e[n + r] === t[n + i] ? c[(r + 1) * (a + 1) + i + 1] + 1 : Math.max(c[(r + 1) * (a + 1) + i], c[r * (a + 1) + i + 1]);
|
|
500
500
|
let l = 0, u = 0, d = 0, f = 0;
|
|
501
501
|
for (; l < i && u < a;) e[n + l] === t[n + u] ? (s(n + d, n + l, n + f, n + u), l += 1, u += 1, d = l, f = u) : c[(l + 1) * (a + 1) + u] >= c[l * (a + 1) + u + 1] ? l += 1 : u += 1;
|
|
502
502
|
return s(n + d, n + i, n + f, n + a), o;
|
|
503
|
-
},
|
|
503
|
+
}, We = (e, t) => e === "id" || e === "ids" ? void 0 : t, U = (e) => JSON.stringify(e, We), Ge = (e, t) => {
|
|
504
504
|
let n = (e) => e.flatMap((e) => e.ids ?? []);
|
|
505
|
-
return t?.kind === "table" ? [...
|
|
505
|
+
return t?.kind === "table" ? [...Ue(t.rows.map(U), e.rows.map(U))].flatMap(([r, i]) => {
|
|
506
506
|
let a = i === void 0 ? void 0 : t.rows[i];
|
|
507
|
-
return n(e.rows[r].filter((e, t) => !a?.[t] ||
|
|
507
|
+
return n(e.rows[r].filter((e, t) => !a?.[t] || U(a[t]) !== U(e)));
|
|
508
508
|
}) : n(e.rows.flat());
|
|
509
|
-
},
|
|
510
|
-
let n = /* @__PURE__ */ new Set(), r =
|
|
509
|
+
}, Ke = (e, t) => {
|
|
510
|
+
let n = /* @__PURE__ */ new Set(), r = Ue(e.blocks.map(U), t.blocks.map(U));
|
|
511
511
|
for (let [i, a] of r) {
|
|
512
512
|
let r = t.blocks[i];
|
|
513
513
|
if (r.kind === "table") {
|
|
514
514
|
let t = a === void 0 ? void 0 : e.blocks[a];
|
|
515
|
-
for (let e of
|
|
515
|
+
for (let e of Ge(r, t)) n.add(e);
|
|
516
516
|
} else r.id && n.add(r.id);
|
|
517
517
|
}
|
|
518
518
|
return n;
|
|
519
|
-
},
|
|
519
|
+
}, qe = (e, t) => {
|
|
520
520
|
let n = /* @__PURE__ */ new Map();
|
|
521
521
|
for (let r of t.rows) for (let t of r.cells) n.set(`${r.row}:${t.col}`, JSON.stringify({
|
|
522
522
|
...t,
|
|
@@ -524,25 +524,25 @@ var He = 1e6, U = (e, t) => {
|
|
|
524
524
|
numFmt: t.numFmt === void 0 ? void 0 : e.numberFormats?.[t.numFmt]
|
|
525
525
|
}));
|
|
526
526
|
return n;
|
|
527
|
-
},
|
|
527
|
+
}, W = (e, t) => {
|
|
528
528
|
let n = /* @__PURE__ */ new Map();
|
|
529
529
|
for (let r of t.sheets) {
|
|
530
|
-
let i = e.sheets.find((e) => e.name === r.name), a =
|
|
530
|
+
let i = e.sheets.find((e) => e.name === r.name), a = qe(t, r), o = i ? qe(e, i) : /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
|
|
531
531
|
for (let [e, t] of a) o.get(e) !== t && s.add(e);
|
|
532
532
|
for (let e of o.keys()) a.has(e) || s.add(e);
|
|
533
533
|
s.size && n.set(r.name, s);
|
|
534
534
|
}
|
|
535
535
|
return n;
|
|
536
|
-
},
|
|
536
|
+
}, G = (e, t) => {
|
|
537
537
|
if (e.kind === "word" && t.kind === "word") {
|
|
538
|
-
let n =
|
|
538
|
+
let n = Ke(e, t);
|
|
539
539
|
return n.size ? {
|
|
540
540
|
kind: "word",
|
|
541
541
|
paragraphs: n
|
|
542
542
|
} : void 0;
|
|
543
543
|
}
|
|
544
544
|
if (e.kind === "spreadsheet" && t.kind === "spreadsheet") {
|
|
545
|
-
let n =
|
|
545
|
+
let n = W(e, t);
|
|
546
546
|
return n.size ? {
|
|
547
547
|
kind: "spreadsheet",
|
|
548
548
|
cells: n
|
|
@@ -559,7 +559,7 @@ function Xe(e) {
|
|
|
559
559
|
clearTimeout(s), a.value = void 0;
|
|
560
560
|
}, d = (e, t) => {
|
|
561
561
|
u();
|
|
562
|
-
let r = e && t ?
|
|
562
|
+
let r = e && t ? G(t, e) : void 0;
|
|
563
563
|
r && (a.value = r, s = setTimeout(u, Ye)), n.value = e;
|
|
564
564
|
}, f = async (n, a) => {
|
|
565
565
|
let s = ++c, u = l, f = a ? o.get(a) : void 0;
|
|
@@ -615,157 +615,157 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
615
615
|
"selection-action"
|
|
616
616
|
],
|
|
617
617
|
setup(o, { emit: l }) {
|
|
618
|
-
let _ = O(() => import("./PkToolShowForm-
|
|
619
|
-
he(p,
|
|
620
|
-
let
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}),
|
|
624
|
-
e &&
|
|
618
|
+
let _ = O(() => import("./PkToolShowForm-TYBf8q6g.js").then((e) => e.n)), b = O(() => import("./PkToolShowContactForm-BM8d9M5a.js").then((e) => e.n)), ae = O(() => import("./PkToolShowSuggestedReply-BVLCX5Sm.js").then((e) => e.n)), oe = O(() => import("./PkToolShowSources-CHw7qZtw.js").then((e) => e.n)), se = O(() => import("./PkToolRequestGeolocation-D1XNCvdr.js").then((e) => e.n)), le = O(() => import("./PkToolRequestOAuthConnection-OTvMRYaL.js")), ue = O(() => import("./PkToolShowLocation-WdRqG8Wi.js").then((e) => e.n)), fe = O(() => import("./PkToolShowChart-X6JZDAWD.js").then((e) => e.t)), pe = O(() => import("./PkToolShowDiagram-DOdzpndK.js")), me = O(() => import("./PkToolChatFile-e-7a0k7l.js").then((e) => e.n)), ge = O(() => import("./PkToolShareDocument-CspvFwRR.js").then((e) => e.n)), _e = O(() => import("./PkFilePreview-1ZNyDAo5.js").then((e) => e.n)), ve = O(() => import("./PkFilePreviewDialog-DnbUHGG2.js").then((e) => e.n)), I = o, Te = l, L = i(I.agentId), { agentInterface: R, agentFileUpload: z, agentType: De, agentVoice: Oe, actions: ke, revisedAnswers: Ae, messages: B, chat: V, messageFeedbacks: je, feedbackDialogMessage: Me, isFeedbackSubmitting: Fe, isFeedbackSubmitted: Ie, feedbackSubmitError: Re, isLeadSubmitted: ze, isLoadingSubmitLead: Be, submitLeadError: Ve, input: H, inputMessagePlaceholder: Ue, isConversationBlocked: We, baseUrl: U, pendingAttachments: Ge, isAttachmentLimitReached: Ke, fileLimitError: qe, apiClient: W, isDark: G, hostToolsPending: Je, pageNoticeLevel: Ye, hostConfirmation: st, agentPageAccess: ct, hostStepTitles: lt, hostStepChanges: ut, confirmationMode: dt, canQueue: ft, queuedMessages: pt, backgroundAnswers: mt, inputFocusRequest: ht, pagePointer: gt, pagePointerAvailable: _t, pagePointing: vt, agentSelectionActions: yt } = Ce(L);
|
|
619
|
+
he(p, lt), he(f, ut);
|
|
620
|
+
let bt = ye("inputEl");
|
|
621
|
+
P(ht, () => {
|
|
622
|
+
bt.value?.focus();
|
|
623
|
+
}), P(gt, (e) => {
|
|
624
|
+
e && bt.value?.focus();
|
|
625
625
|
});
|
|
626
|
-
let
|
|
627
|
-
kind:
|
|
628
|
-
label:
|
|
629
|
-
} : void 0), K = S(() =>
|
|
626
|
+
let xt = S(() => gt.value ? {
|
|
627
|
+
kind: gt.value.kind,
|
|
628
|
+
label: gt.value.label
|
|
629
|
+
} : void 0), K = S(() => De.value === "reasoning" ? void 0 : z.value), St = S(() => {
|
|
630
630
|
let e = K.value?.allowedMimeTypes ?? [];
|
|
631
631
|
return !!K.value?.enabled && (!e.length || e.some((e) => e.startsWith("image/")));
|
|
632
632
|
});
|
|
633
633
|
n({
|
|
634
|
-
available: () => !!
|
|
635
|
-
annotate: (e) =>
|
|
634
|
+
available: () => !!bt.value && St.value && !Ke.value,
|
|
635
|
+
annotate: (e) => bt.value?.annotateImage(e)
|
|
636
636
|
});
|
|
637
|
-
let q = (e) =>
|
|
638
|
-
let e =
|
|
637
|
+
let q = (e) => W.value.getMediaDownloadUrl(I.agentId, L.localChatId, e), { handleSubmit: Ct, stopGeneration: wt, regenerate: Tt, onUpvote: Et, onDownvote: Dt, onFeedback: Ot, onFeedbackSubmit: kt, onLeadSubmit: At, startNewChat: jt, addToolOutput: Mt, addToolApprovalResponse: Nt, handleFileSelect: Pt, discardPendingAttachment: Ft, replacePendingAttachment: It, retryPendingAttachment: Lt, clearFileLimitError: Rt, refreshMessages: zt, appendMessage: Bt, closePageNotice: Vt, respondHostConfirmation: Ht, editQueuedMessage: Ut, removeQueuedMessage: Wt, openBackgroundAnswer: Gt, dismissBackgroundAnswer: Kt } = L, { t: J } = be({ useScope: "global" }), qt = S(() => Je.value > 0), Jt = S(() => qt.value && V.value.status === "ready" ? "streaming" : V.value.status), Yt = h(() => ct.value?.notice), Xt = S(() => Ye.value ? Yt.value || J(`message.pageAccessNotice.${Ye.value}`) : void 0), Zt = S(() => {
|
|
638
|
+
let e = qe.value;
|
|
639
639
|
if (e) return e.reason === "per-chat" ? J("message.fileLimitPerChat", { max: e.max }) : J("message.fileLimitPerMessage", { max: e.max });
|
|
640
|
-
}),
|
|
640
|
+
}), Qt = S(() => mt.value.map(({ chatId: e, title: t }) => ({
|
|
641
641
|
id: e,
|
|
642
642
|
text: t ? J("message.backgroundAnswerReady", { title: t }) : J("message.backgroundAnswerReadyUntitled")
|
|
643
|
-
}))),
|
|
644
|
-
|
|
643
|
+
}))), $t = h(() => R.value?.dismissableNotice), en = S(() => B.value.some((e) => e.role === "user")), tn = S(() => I.modifier === "fullscreen" && !en.value), nn = we(R, () => I.userName), rn = ye("chatViewEl"), an = Le(), on = S(() => !!an?.value), sn = S(() => an?.value ?? "body"), cn = j(0), ln = j(0);
|
|
644
|
+
Se([rn, S(() => an?.value ?? void 0)], (e) => {
|
|
645
645
|
for (let t of e) {
|
|
646
646
|
let e = t.borderBoxSize?.[0]?.inlineSize ?? t.contentRect.width;
|
|
647
|
-
t.target ===
|
|
647
|
+
t.target === rn.value ? cn.value = e : ln.value = e;
|
|
648
648
|
}
|
|
649
649
|
}, { box: "border-box" });
|
|
650
|
-
let
|
|
650
|
+
let un = S(() => cn.value + (on.value ? ln.value : 0) >= nt), dn = S(() => cn.value > 0 && cn.value < 576), { target: Y, preview: fn, loading: pn, error: mn, changes: hn, open: gn, close: _n, reset: vn } = Xe((e) => W.value.getChatFilePreview(I.agentId, L.localChatId, e)), X = j({}), yn = (e, t) => {
|
|
651
651
|
let n = (e) => e?.fileId ?? e?.storedFileName;
|
|
652
|
-
return n(e) !== n(Y.value) && (X.value = {}),
|
|
653
|
-
},
|
|
654
|
-
|
|
655
|
-
},
|
|
652
|
+
return n(e) !== n(Y.value) && (X.value = {}), gn(e, t);
|
|
653
|
+
}, bn = j(!1), xn = S(() => !!Y.value && un.value && !bn.value), Sn = () => {
|
|
654
|
+
_n(), bn.value = !1;
|
|
655
|
+
}, Cn = /* @__PURE__ */ new Set([
|
|
656
656
|
"tool-editSpreadsheet",
|
|
657
657
|
"tool-editWordDocument",
|
|
658
658
|
"tool-createSpreadsheet",
|
|
659
659
|
"tool-createWordDocument"
|
|
660
|
-
]),
|
|
660
|
+
]), wn = S(() => {
|
|
661
661
|
let e = /* @__PURE__ */ new Map();
|
|
662
662
|
for (let t of B.value) for (let n of t.parts) {
|
|
663
663
|
let { type: t, state: r, output: i } = n;
|
|
664
|
-
if (
|
|
664
|
+
if (Cn.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
|
|
665
665
|
let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
|
|
666
666
|
t.set(i.version, i.storedFileName), e.set(i.fileId, t);
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
for (let [t, n] of e) n.has(1) || n.set(1, t);
|
|
670
670
|
return e;
|
|
671
|
-
}),
|
|
672
|
-
let n = Y.value, r =
|
|
673
|
-
n && r &&
|
|
671
|
+
}), Tn = S(() => [...wn.value.get(Y.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), En = (e, t) => {
|
|
672
|
+
let n = Y.value, r = wn.value.get(n?.fileId ?? "")?.get(e);
|
|
673
|
+
n && r && yn({
|
|
674
674
|
...n,
|
|
675
675
|
version: e,
|
|
676
676
|
storedFileName: r
|
|
677
677
|
}, t);
|
|
678
|
-
},
|
|
679
|
-
let e = Y.value, t =
|
|
678
|
+
}, Dn = S(() => {
|
|
679
|
+
let e = Y.value, t = Tn.value;
|
|
680
680
|
return !!$.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
|
|
681
|
-
}),
|
|
681
|
+
}), On = () => {
|
|
682
682
|
let e = Y.value;
|
|
683
683
|
e?.fileId && e.version && ($.value?.({
|
|
684
684
|
fileId: e.fileId,
|
|
685
685
|
version: e.version,
|
|
686
686
|
filename: e.filename
|
|
687
|
-
}),
|
|
687
|
+
}), Sn());
|
|
688
688
|
};
|
|
689
|
-
|
|
689
|
+
P(() => L.localChatId, vn), P(() => {
|
|
690
690
|
let e = Y.value?.fileId;
|
|
691
691
|
return e ? {
|
|
692
692
|
fileId: e,
|
|
693
|
-
newest: Math.max(0, ...
|
|
693
|
+
newest: Math.max(0, ...Tn.value)
|
|
694
694
|
} : void 0;
|
|
695
695
|
}, (e, t) => {
|
|
696
|
-
e && t && e.fileId === t.fileId && e.newest > t.newest && Y.value?.version === t.newest &&
|
|
696
|
+
e && t && e.fileId === t.fileId && e.newest > t.newest && Y.value?.version === t.newest && En(e.newest, Y.value.storedFileName);
|
|
697
697
|
});
|
|
698
|
-
let
|
|
698
|
+
let kn = S(() => {
|
|
699
699
|
let e = V.value?.status;
|
|
700
|
-
if (!(
|
|
701
|
-
}),
|
|
702
|
-
L.sendSelection(e, { filePointer: t }) &&
|
|
700
|
+
if (!(We.value || e === "submitted" || e === "streaming")) return Y.value?.kind === "word" ? yt.value?.word : yt.value?.excel;
|
|
701
|
+
}), An = (e, t, n) => {
|
|
702
|
+
L.sendSelection(e, { filePointer: t }) && Te("selection-action", {
|
|
703
703
|
surface: t.format === "docx" ? "word" : "excel",
|
|
704
704
|
action: n.id,
|
|
705
705
|
state: "chat",
|
|
706
706
|
size: String(n.size)
|
|
707
707
|
});
|
|
708
|
-
},
|
|
709
|
-
let t = await
|
|
708
|
+
}, jn = async (e) => (await W.value.expandSourceContext(I.agentId, e.documentId, e.chunkIndex)).content, Mn = async (e) => {
|
|
709
|
+
let t = await W.value.downloadSourceDocument(I.agentId, e);
|
|
710
710
|
window.open(t.downloadUrl, "_blank");
|
|
711
|
-
}, { isOverDropZone:
|
|
711
|
+
}, { isOverDropZone: Nn } = xe(rn, {
|
|
712
712
|
dataTypes: (e) => t(e, K.value?.allowedMimeTypes ?? []),
|
|
713
713
|
onDrop: (e) => {
|
|
714
|
-
if (K.value?.enabled && e) for (let t of e)
|
|
714
|
+
if (K.value?.enabled && e) for (let t of e) Pt(t);
|
|
715
715
|
}
|
|
716
|
-
}),
|
|
716
|
+
}), Pn = j(!1), Fn = !1, Z = j(!1), In = [
|
|
717
717
|
3e3,
|
|
718
718
|
5e3,
|
|
719
719
|
1e4
|
|
720
|
-
],
|
|
721
|
-
function
|
|
722
|
-
clearTimeout(
|
|
720
|
+
], Ln, Rn, zn = !1, Bn = 0, Vn = !1;
|
|
721
|
+
function Hn() {
|
|
722
|
+
clearTimeout(Ln), Ln = void 0, Rn = void 0, zn = !1, Bn = 0, Z.value = !1;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
|
|
726
|
-
|
|
724
|
+
function Un(e) {
|
|
725
|
+
Fn || (clearTimeout(Ln), Ln = setTimeout(() => {
|
|
726
|
+
Wn();
|
|
727
727
|
}, e));
|
|
728
728
|
}
|
|
729
|
-
async function
|
|
730
|
-
if (
|
|
731
|
-
|
|
729
|
+
async function Wn() {
|
|
730
|
+
if (Fn || Vn) return;
|
|
731
|
+
Vn = !0;
|
|
732
732
|
let e;
|
|
733
733
|
try {
|
|
734
|
-
e = await
|
|
734
|
+
e = await zt();
|
|
735
735
|
} finally {
|
|
736
|
-
|
|
736
|
+
Vn = !1;
|
|
737
737
|
}
|
|
738
|
-
if (
|
|
739
|
-
if (e === "caught-up" && (Z.value = !1,
|
|
740
|
-
|
|
738
|
+
if (Fn) return;
|
|
739
|
+
if (e === "caught-up" && (Z.value = !1, br()), Q.isActive.value) {
|
|
740
|
+
Rn = void 0, zn = !1, Bn = 0, Un(rt);
|
|
741
741
|
return;
|
|
742
742
|
}
|
|
743
|
-
|
|
744
|
-
let t = Date.now() -
|
|
745
|
-
if (e === "caught-up" && t >= (
|
|
746
|
-
|
|
743
|
+
Rn === void 0 && (Rn = Date.now(), zn = !!Q.error.value);
|
|
744
|
+
let t = Date.now() - Rn;
|
|
745
|
+
if (e === "caught-up" && t >= (zn ? at : it) || t >= ot) {
|
|
746
|
+
Hn(), xr();
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
|
-
let n =
|
|
750
|
-
|
|
749
|
+
let n = In[Math.min(Bn, In.length - 1)];
|
|
750
|
+
Bn += 1, Un(n);
|
|
751
751
|
}
|
|
752
|
-
let
|
|
753
|
-
|
|
754
|
-
},
|
|
752
|
+
let Gn = (e = 1200) => {
|
|
753
|
+
Un(e);
|
|
754
|
+
}, Kn, Q = Pe({
|
|
755
755
|
fetchGrant: async () => {
|
|
756
|
-
|
|
757
|
-
let e = await
|
|
756
|
+
Kn = L.voicePageTools();
|
|
757
|
+
let e = await W.value.createVoiceSession(I.agentId, L.localChatId, {
|
|
758
758
|
deviceContext: L.buildDeviceContext(),
|
|
759
759
|
externalContext: L.externalContext,
|
|
760
|
-
pageTools:
|
|
760
|
+
pageTools: Kn?.declaration,
|
|
761
761
|
...L.confirmationMode === "automatic" && { confirmations: "automatic" }
|
|
762
762
|
});
|
|
763
763
|
return e.chatId !== L.localChatId && (L.localChatId = e.chatId), e;
|
|
764
764
|
},
|
|
765
|
-
closeGrant: (e) =>
|
|
766
|
-
clientTools: () =>
|
|
765
|
+
closeGrant: (e) => W.value.closeVoiceSession(I.agentId, e),
|
|
766
|
+
clientTools: () => Kn?.clientTools,
|
|
767
767
|
onTranscript: (e) => {
|
|
768
|
-
e.role === "user" ? (Z.value = !0,
|
|
768
|
+
e.role === "user" ? (Z.value = !0, yr(), Bt({
|
|
769
769
|
id: `${a}user-${r()}`,
|
|
770
770
|
role: "user",
|
|
771
771
|
parts: [{
|
|
@@ -775,46 +775,46 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
775
775
|
})) : Z.value = !1;
|
|
776
776
|
},
|
|
777
777
|
onTurnEnd: () => {
|
|
778
|
-
|
|
778
|
+
Gn();
|
|
779
779
|
}
|
|
780
780
|
});
|
|
781
|
-
|
|
781
|
+
P(() => Q.isActive.value, (e) => {
|
|
782
782
|
e || L.cancelVoicePageCalls();
|
|
783
|
-
}),
|
|
783
|
+
}), P(() => Q.error.value, (e) => {
|
|
784
784
|
e && (Z.value = !1);
|
|
785
785
|
});
|
|
786
|
-
let
|
|
786
|
+
let qn = S(() => Oe.value?.enabled === !0), Jn = S(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), Yn = S(() => {
|
|
787
787
|
let e = Q.error.value;
|
|
788
788
|
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");
|
|
789
|
-
}),
|
|
790
|
-
|
|
791
|
-
},
|
|
792
|
-
Z.value = !1, await Q.stop(), !
|
|
793
|
-
},
|
|
789
|
+
}), Xn = S(() => Q.isSpeaking.value ? "output" : "input"), Zn = () => Q.readLevel(Xn.value), Qn = () => Q.readSpectrum(Xn.value), $n = async () => {
|
|
790
|
+
Pn.value = !1, await Q.start(), Q.isActive.value && (Hn(), Un(rt));
|
|
791
|
+
}, er = async () => {
|
|
792
|
+
Z.value = !1, await Q.stop(), !Fn && Gn(0);
|
|
793
|
+
}, tr = () => {
|
|
794
794
|
Q.dismissError();
|
|
795
|
-
},
|
|
796
|
-
Q.dismissError(), await Q.stop(), await
|
|
797
|
-
},
|
|
798
|
-
|
|
795
|
+
}, nr = async () => {
|
|
796
|
+
Q.dismissError(), await Q.stop(), await $n();
|
|
797
|
+
}, rr = (e) => e?.toolCallId ?? "", ir = j(/* @__PURE__ */ new Set()), ar = (e) => ir.value.has(rr(e)), or = j(/* @__PURE__ */ new Map()), sr = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (ir.value = new Set(ir.value).add(rr(e)), Gn()), !0) : !1, cr = (e, t, n) => {
|
|
798
|
+
sr(t, u(t, n)) || Mt({
|
|
799
799
|
tool: e,
|
|
800
|
-
toolCallId:
|
|
800
|
+
toolCallId: rr(t),
|
|
801
801
|
output: n
|
|
802
802
|
});
|
|
803
|
-
},
|
|
803
|
+
}, lr = (e) => {
|
|
804
804
|
let t = e.confirmed ? J("message.voiceConfirmed") : J("message.voiceCancelled");
|
|
805
|
-
|
|
805
|
+
sr({ toolCallId: e.toolCallId }, t) ? ir.value.has(e.toolCallId) && (or.value = new Map(or.value).set(e.toolCallId, e.confirmed)) : Mt({
|
|
806
806
|
tool: "requestConfirm",
|
|
807
807
|
toolCallId: e.toolCallId,
|
|
808
808
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
809
809
|
});
|
|
810
|
-
},
|
|
810
|
+
}, ur = S(() => {
|
|
811
811
|
let e = /* @__PURE__ */ new Map();
|
|
812
812
|
for (let t of B.value) for (let n of t.parts) {
|
|
813
813
|
let { type: t, state: r, output: i } = n;
|
|
814
|
-
|
|
814
|
+
Cn.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
|
|
815
815
|
}
|
|
816
816
|
return e;
|
|
817
|
-
}),
|
|
817
|
+
}), dr = S(() => {
|
|
818
818
|
let e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
819
819
|
if (t && n) {
|
|
820
820
|
let r = t.toLowerCase();
|
|
@@ -827,64 +827,64 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
827
827
|
continue;
|
|
828
828
|
}
|
|
829
829
|
let { type: e, state: r, output: i } = n;
|
|
830
|
-
|
|
830
|
+
Cn.has(e) && r === "output-available" && i?.filename && t(d(i.filename, i.version), i.fileId);
|
|
831
831
|
}
|
|
832
832
|
return e;
|
|
833
|
-
}), $ = S(() =>
|
|
834
|
-
let t = (
|
|
835
|
-
H.value = J(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e),
|
|
836
|
-
}),
|
|
837
|
-
|
|
838
|
-
},
|
|
833
|
+
}), $ = S(() => We.value ? void 0 : (e) => {
|
|
834
|
+
let t = (dr.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
|
|
835
|
+
H.value = J(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), Ct();
|
|
836
|
+
}), fr = (e, t) => {
|
|
837
|
+
sr(e, t) || (H.value = t, Ct());
|
|
838
|
+
}, pr = (e, t) => {
|
|
839
839
|
let n = t.error ? J("message.voiceLocationRefused") : J("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
840
|
-
|
|
840
|
+
sr(e, n) || Mt({
|
|
841
841
|
tool: "requestGeolocation",
|
|
842
|
-
toolCallId:
|
|
842
|
+
toolCallId: rr(e),
|
|
843
843
|
output: t
|
|
844
844
|
});
|
|
845
|
-
},
|
|
846
|
-
|
|
845
|
+
}, mr = (e, t) => {
|
|
846
|
+
sr(e, J("message.voiceConnectionDone")) || Mt({
|
|
847
847
|
tool: "requestOAuthConnection",
|
|
848
|
-
toolCallId:
|
|
848
|
+
toolCallId: rr(e),
|
|
849
849
|
output: {
|
|
850
850
|
connected: !0,
|
|
851
851
|
mcpServerId: t
|
|
852
852
|
}
|
|
853
853
|
});
|
|
854
|
-
},
|
|
855
|
-
|
|
854
|
+
}, hr = () => {
|
|
855
|
+
Pn.value = !Pn.value, Q.setMuted(Pn.value);
|
|
856
856
|
};
|
|
857
857
|
de(() => {
|
|
858
|
-
|
|
858
|
+
Fn = !0, Hn();
|
|
859
859
|
});
|
|
860
|
-
let { pendingWakeup:
|
|
861
|
-
agentId: () =>
|
|
860
|
+
let { pendingWakeup: gr, isStopping: _r, stop: vr, spokenTurnStarted: yr, spokenTurnsWritten: br, forgetSpokenTurns: xr } = He({
|
|
861
|
+
agentId: () => I.agentId,
|
|
862
862
|
chatId: () => L.localChatId,
|
|
863
|
-
apiClient: () =>
|
|
863
|
+
apiClient: () => W.value,
|
|
864
864
|
messages: () => B.value,
|
|
865
|
-
refreshMessages:
|
|
865
|
+
refreshMessages: zt,
|
|
866
866
|
status: () => V.value.status
|
|
867
867
|
});
|
|
868
868
|
return (t, n) => {
|
|
869
869
|
let r = y;
|
|
870
870
|
return A(), T("div", {
|
|
871
871
|
ref_key: "chatViewEl",
|
|
872
|
-
ref:
|
|
872
|
+
ref: rn,
|
|
873
873
|
class: k(["pk-chatbot-view-chat", {
|
|
874
|
-
"pk-chatbot-view-chat--dragover":
|
|
875
|
-
"pk-chatbot-view-chat--empty":
|
|
876
|
-
"pk-chatbot-view-chat--with-preview":
|
|
874
|
+
"pk-chatbot-view-chat--dragover": N(Nn) && K.value?.enabled,
|
|
875
|
+
"pk-chatbot-view-chat--empty": tn.value,
|
|
876
|
+
"pk-chatbot-view-chat--with-preview": xn.value && !on.value
|
|
877
877
|
}])
|
|
878
878
|
}, [
|
|
879
879
|
D(x, {
|
|
880
880
|
name: "pk-chatbot-view-chat-fade",
|
|
881
881
|
mode: "out-in"
|
|
882
882
|
}, {
|
|
883
|
-
default:
|
|
883
|
+
default: F(() => [tn.value ? (A(), C(te, {
|
|
884
884
|
key: 0,
|
|
885
|
-
greeting:
|
|
886
|
-
logo:
|
|
887
|
-
name:
|
|
885
|
+
greeting: N(nn),
|
|
886
|
+
logo: N(R)?.logo,
|
|
887
|
+
name: N(L).name
|
|
888
888
|
}, null, 8, [
|
|
889
889
|
"greeting",
|
|
890
890
|
"logo",
|
|
@@ -893,48 +893,48 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
893
893
|
key: 1,
|
|
894
894
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
895
895
|
interactive: "",
|
|
896
|
-
messages:
|
|
897
|
-
"confirm-verdicts-on-call":
|
|
898
|
-
status:
|
|
899
|
-
error:
|
|
900
|
-
"main-color":
|
|
901
|
-
"text-color":
|
|
902
|
-
"revised-answers":
|
|
903
|
-
actions:
|
|
904
|
-
"message-feedbacks":
|
|
905
|
-
"feedback-message-id":
|
|
906
|
-
"feedback-loading":
|
|
907
|
-
"feedback-submitted":
|
|
908
|
-
"feedback-error":
|
|
909
|
-
"show-extended-steps":
|
|
910
|
-
"hide-reasoning":
|
|
896
|
+
messages: N(B),
|
|
897
|
+
"confirm-verdicts-on-call": or.value,
|
|
898
|
+
status: N(V).status,
|
|
899
|
+
error: N(V).error,
|
|
900
|
+
"main-color": N(R)?.mainColor,
|
|
901
|
+
"text-color": N(R)?.textColor,
|
|
902
|
+
"revised-answers": N(Ae),
|
|
903
|
+
actions: N(ke),
|
|
904
|
+
"message-feedbacks": N(je),
|
|
905
|
+
"feedback-message-id": N(Me)?.id,
|
|
906
|
+
"feedback-loading": N(Fe),
|
|
907
|
+
"feedback-submitted": N(Ie),
|
|
908
|
+
"feedback-error": N(Re),
|
|
909
|
+
"show-extended-steps": N(R)?.showExtendedSteps,
|
|
910
|
+
"hide-reasoning": N(R)?.showReasoning === !1,
|
|
911
911
|
"awaiting-spoken-answer": Z.value,
|
|
912
|
-
"host-working":
|
|
913
|
-
"host-confirmation":
|
|
914
|
-
"is-dark":
|
|
912
|
+
"host-working": qt.value,
|
|
913
|
+
"host-confirmation": N(st),
|
|
914
|
+
"is-dark": N(G),
|
|
915
915
|
"show-scroll-to-bottom": o.modifier === "fullscreen",
|
|
916
|
-
onFeedbackSubmit: n[0] ||= (e) =>
|
|
917
|
-
onFeedbackClose: n[1] ||= (e) =>
|
|
918
|
-
onRegenerate:
|
|
919
|
-
onAutoRetry:
|
|
920
|
-
onResetChat:
|
|
921
|
-
onShowInfo: n[2] ||= (e) =>
|
|
922
|
-
onRevise: n[3] ||= (e) =>
|
|
923
|
-
onUpvote:
|
|
924
|
-
onDownvote:
|
|
925
|
-
onFeedback:
|
|
926
|
-
onApprovalRespond:
|
|
927
|
-
onConfirmRespond:
|
|
928
|
-
onHostConfirmRespond:
|
|
916
|
+
onFeedbackSubmit: n[0] ||= (e) => N(kt)(e),
|
|
917
|
+
onFeedbackClose: n[1] ||= (e) => Me.value = void 0,
|
|
918
|
+
onRegenerate: N(Tt),
|
|
919
|
+
onAutoRetry: N(Tt),
|
|
920
|
+
onResetChat: N(jt),
|
|
921
|
+
onShowInfo: n[2] ||= (e) => Te("show-info", e),
|
|
922
|
+
onRevise: n[3] ||= (e) => Te("revise", e),
|
|
923
|
+
onUpvote: N(Et),
|
|
924
|
+
onDownvote: N(Dt),
|
|
925
|
+
onFeedback: N(Ot),
|
|
926
|
+
onApprovalRespond: N(Nt),
|
|
927
|
+
onConfirmRespond: lr,
|
|
928
|
+
onHostConfirmRespond: N(Ht)
|
|
929
929
|
}, {
|
|
930
|
-
"tool-showContactForm":
|
|
930
|
+
"tool-showContactForm": F(({ part: e }) => [D(N(b), {
|
|
931
931
|
part: e,
|
|
932
|
-
readonly: !
|
|
933
|
-
submitted:
|
|
934
|
-
loading:
|
|
935
|
-
error:
|
|
936
|
-
"privacy-policy-notice":
|
|
937
|
-
onSubmit:
|
|
932
|
+
readonly: !N(U),
|
|
933
|
+
submitted: N(ze),
|
|
934
|
+
loading: N(Be),
|
|
935
|
+
error: N(Ve),
|
|
936
|
+
"privacy-policy-notice": N(R)?.privacyPolicyNotice,
|
|
937
|
+
onSubmit: N(At)
|
|
938
938
|
}, null, 8, [
|
|
939
939
|
"part",
|
|
940
940
|
"readonly",
|
|
@@ -944,20 +944,20 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
944
944
|
"privacy-policy-notice",
|
|
945
945
|
"onSubmit"
|
|
946
946
|
])]),
|
|
947
|
-
"tool-showSuggestedReply":
|
|
947
|
+
"tool-showSuggestedReply": F(({ part: e }) => [D(N(ae), {
|
|
948
948
|
part: e,
|
|
949
|
-
onSelect: (t) =>
|
|
949
|
+
onSelect: (t) => fr(e, t)
|
|
950
950
|
}, null, 8, ["part", "onSelect"])]),
|
|
951
|
-
"tool-showSources":
|
|
951
|
+
"tool-showSources": F(({ part: e }) => [D(N(oe), {
|
|
952
952
|
part: e,
|
|
953
|
-
"on-expand-context":
|
|
954
|
-
"on-download":
|
|
953
|
+
"on-expand-context": jn,
|
|
954
|
+
"on-download": Mn
|
|
955
955
|
}, null, 8, ["part"])]),
|
|
956
|
-
"tool-showForm":
|
|
957
|
-
default:
|
|
956
|
+
"tool-showForm": F(({ part: e }) => [D(x, { mode: "out-in" }, {
|
|
957
|
+
default: F(() => [D(N(_), {
|
|
958
958
|
part: e,
|
|
959
|
-
answered:
|
|
960
|
-
onSelect: (t) =>
|
|
959
|
+
answered: ar(e),
|
|
960
|
+
onSelect: (t) => cr("showForm", e, t)
|
|
961
961
|
}, null, 8, [
|
|
962
962
|
"part",
|
|
963
963
|
"answered",
|
|
@@ -965,12 +965,12 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
965
965
|
])]),
|
|
966
966
|
_: 2
|
|
967
967
|
}, 1024)]),
|
|
968
|
-
"tool-showMultipleChoice":
|
|
969
|
-
default:
|
|
968
|
+
"tool-showMultipleChoice": F(({ part: e }) => [D(x, { mode: "out-in" }, {
|
|
969
|
+
default: F(() => [D(N(_), {
|
|
970
970
|
part: e,
|
|
971
971
|
"allow-custom-answer": "",
|
|
972
|
-
answered:
|
|
973
|
-
onSelect: (t) =>
|
|
972
|
+
answered: ar(e),
|
|
973
|
+
onSelect: (t) => cr("showMultipleChoice", e, t)
|
|
974
974
|
}, null, 8, [
|
|
975
975
|
"part",
|
|
976
976
|
"answered",
|
|
@@ -978,12 +978,12 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
978
978
|
])]),
|
|
979
979
|
_: 2
|
|
980
980
|
}, 1024)]),
|
|
981
|
-
"tool-requestOAuthConnection":
|
|
981
|
+
"tool-requestOAuthConnection": F(({ part: e }) => [D(N(le), {
|
|
982
982
|
part: e,
|
|
983
|
-
"backend-url":
|
|
984
|
-
"resolve-connection": (e) =>
|
|
985
|
-
"check-connection": (e) =>
|
|
986
|
-
onConnected: (t) =>
|
|
983
|
+
"backend-url": N(U),
|
|
984
|
+
"resolve-connection": (e) => N(W).getOAuthAuthorizeUrl(I.agentId, e),
|
|
985
|
+
"check-connection": (e) => N(W).getOAuthConnectionStatus(I.agentId, e),
|
|
986
|
+
onConnected: (t) => mr(e, t)
|
|
987
987
|
}, null, 8, [
|
|
988
988
|
"part",
|
|
989
989
|
"backend-url",
|
|
@@ -991,94 +991,98 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
991
991
|
"check-connection",
|
|
992
992
|
"onConnected"
|
|
993
993
|
])]),
|
|
994
|
-
"tool-requestGeolocation":
|
|
994
|
+
"tool-requestGeolocation": F(({ part: e }) => [D(N(se), {
|
|
995
995
|
part: e,
|
|
996
|
-
"call-live":
|
|
997
|
-
"reverse-geocode": (e, t) =>
|
|
998
|
-
onResult: (t) =>
|
|
996
|
+
"call-live": N(Q).isActive.value,
|
|
997
|
+
"reverse-geocode": (e, t) => N(W).reverseGeocode(e, t),
|
|
998
|
+
onResult: (t) => pr(e, t)
|
|
999
999
|
}, null, 8, [
|
|
1000
1000
|
"part",
|
|
1001
1001
|
"call-live",
|
|
1002
1002
|
"reverse-geocode",
|
|
1003
1003
|
"onResult"
|
|
1004
1004
|
])]),
|
|
1005
|
-
"tool-showLocation":
|
|
1005
|
+
"tool-showLocation": F(({ part: e }) => [D(N(ue), {
|
|
1006
1006
|
part: e,
|
|
1007
|
-
"is-dark":
|
|
1008
|
-
"main-color":
|
|
1009
|
-
"forward-geocode": (e, t) =>
|
|
1007
|
+
"is-dark": N(G),
|
|
1008
|
+
"main-color": N(R)?.mainColor,
|
|
1009
|
+
"forward-geocode": (e, t) => N(W).forwardGeocode(e, t)
|
|
1010
1010
|
}, null, 8, [
|
|
1011
1011
|
"part",
|
|
1012
1012
|
"is-dark",
|
|
1013
1013
|
"main-color",
|
|
1014
1014
|
"forward-geocode"
|
|
1015
1015
|
])]),
|
|
1016
|
-
"tool-
|
|
1016
|
+
"tool-showChart": F(({ part: e }) => [D(N(fe), {
|
|
1017
|
+
part: e,
|
|
1018
|
+
"is-dark": N(G)
|
|
1019
|
+
}, null, 8, ["part", "is-dark"])]),
|
|
1020
|
+
"tool-showDiagram": F(({ part: e }) => [D(N(pe), {
|
|
1017
1021
|
part: e,
|
|
1018
|
-
"is-dark":
|
|
1022
|
+
"is-dark": N(G)
|
|
1019
1023
|
}, null, 8, ["part", "is-dark"])]),
|
|
1020
|
-
"tool-editSpreadsheet":
|
|
1021
|
-
key:
|
|
1024
|
+
"tool-editSpreadsheet": F(({ part: e }) => [(A(), C(N(me), {
|
|
1025
|
+
key: N(m)(e),
|
|
1022
1026
|
part: e,
|
|
1023
1027
|
"file-url": q,
|
|
1024
|
-
preview:
|
|
1025
|
-
"latest-versions":
|
|
1028
|
+
preview: yn,
|
|
1029
|
+
"latest-versions": ur.value,
|
|
1026
1030
|
restore: $.value
|
|
1027
1031
|
}, null, 8, [
|
|
1028
1032
|
"part",
|
|
1029
1033
|
"latest-versions",
|
|
1030
1034
|
"restore"
|
|
1031
1035
|
]))]),
|
|
1032
|
-
"tool-editWordDocument":
|
|
1033
|
-
key:
|
|
1036
|
+
"tool-editWordDocument": F(({ part: e }) => [(A(), C(N(me), {
|
|
1037
|
+
key: N(m)(e),
|
|
1034
1038
|
part: e,
|
|
1035
1039
|
"file-url": q,
|
|
1036
|
-
preview:
|
|
1037
|
-
"latest-versions":
|
|
1040
|
+
preview: yn,
|
|
1041
|
+
"latest-versions": ur.value,
|
|
1038
1042
|
restore: $.value
|
|
1039
1043
|
}, null, 8, [
|
|
1040
1044
|
"part",
|
|
1041
1045
|
"latest-versions",
|
|
1042
1046
|
"restore"
|
|
1043
1047
|
]))]),
|
|
1044
|
-
"tool-createSpreadsheet":
|
|
1045
|
-
key:
|
|
1048
|
+
"tool-createSpreadsheet": F(({ part: e }) => [(A(), C(N(me), {
|
|
1049
|
+
key: N(m)(e),
|
|
1046
1050
|
part: e,
|
|
1047
1051
|
"file-url": q,
|
|
1048
|
-
preview:
|
|
1049
|
-
"latest-versions":
|
|
1052
|
+
preview: yn,
|
|
1053
|
+
"latest-versions": ur.value,
|
|
1050
1054
|
restore: $.value
|
|
1051
1055
|
}, null, 8, [
|
|
1052
1056
|
"part",
|
|
1053
1057
|
"latest-versions",
|
|
1054
1058
|
"restore"
|
|
1055
1059
|
]))]),
|
|
1056
|
-
"tool-createWordDocument":
|
|
1057
|
-
key:
|
|
1060
|
+
"tool-createWordDocument": F(({ part: e }) => [(A(), C(N(me), {
|
|
1061
|
+
key: N(m)(e),
|
|
1058
1062
|
part: e,
|
|
1059
1063
|
"file-url": q,
|
|
1060
|
-
preview:
|
|
1061
|
-
"latest-versions":
|
|
1064
|
+
preview: yn,
|
|
1065
|
+
"latest-versions": ur.value,
|
|
1062
1066
|
restore: $.value
|
|
1063
1067
|
}, null, 8, [
|
|
1064
1068
|
"part",
|
|
1065
1069
|
"latest-versions",
|
|
1066
1070
|
"restore"
|
|
1067
1071
|
]))]),
|
|
1068
|
-
"tool-shareDocument":
|
|
1069
|
-
key:
|
|
1072
|
+
"tool-shareDocument": F(({ part: e }) => [(A(), C(N(ge), {
|
|
1073
|
+
key: N(m)(e),
|
|
1070
1074
|
part: e,
|
|
1071
|
-
"on-download":
|
|
1075
|
+
"on-download": Mn
|
|
1072
1076
|
}, null, 8, ["part"]))]),
|
|
1073
1077
|
_: 1
|
|
1074
1078
|
}, 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(".")))]),
|
|
1075
1079
|
_: 1
|
|
1076
1080
|
}),
|
|
1077
|
-
|
|
1081
|
+
N(pt).length ? (A(), C(ee, {
|
|
1078
1082
|
key: 0,
|
|
1079
|
-
messages:
|
|
1080
|
-
onEdit:
|
|
1081
|
-
onRemove:
|
|
1083
|
+
messages: N(pt),
|
|
1084
|
+
onEdit: N(Ut),
|
|
1085
|
+
onRemove: N(Wt)
|
|
1082
1086
|
}, null, 8, [
|
|
1083
1087
|
"messages",
|
|
1084
1088
|
"onEdit",
|
|
@@ -1086,13 +1090,13 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1086
1090
|
])) : w("", !0),
|
|
1087
1091
|
E("div", Ze, [
|
|
1088
1092
|
D(x, { name: "pk-chatbot-view-chat-fade" }, {
|
|
1089
|
-
default:
|
|
1093
|
+
default: F(() => [tn.value ? (A(), C(Ee, {
|
|
1090
1094
|
key: 0,
|
|
1091
1095
|
class: "pk-chatbot-view-chat__aurora",
|
|
1092
1096
|
"source-selector": ".pk-chatbot-input__form",
|
|
1093
|
-
"main-color":
|
|
1094
|
-
tones:
|
|
1095
|
-
"second-color":
|
|
1097
|
+
"main-color": N(R)?.mainColor,
|
|
1098
|
+
tones: N(R)?.glowTones,
|
|
1099
|
+
"second-color": N(R)?.glowSecondColor
|
|
1096
1100
|
}, null, 8, [
|
|
1097
1101
|
"main-color",
|
|
1098
1102
|
"tones",
|
|
@@ -1100,78 +1104,78 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1100
1104
|
])) : w("", !0)]),
|
|
1101
1105
|
_: 1
|
|
1102
1106
|
}),
|
|
1103
|
-
|
|
1107
|
+
N(gr) && !N(We) ? (A(), C(ne, {
|
|
1104
1108
|
key: 0,
|
|
1105
|
-
pending:
|
|
1106
|
-
stopping:
|
|
1107
|
-
onStop:
|
|
1109
|
+
pending: N(gr),
|
|
1110
|
+
stopping: N(_r),
|
|
1111
|
+
onStop: N(vr)
|
|
1108
1112
|
}, null, 8, [
|
|
1109
1113
|
"pending",
|
|
1110
1114
|
"stopping",
|
|
1111
1115
|
"onStop"
|
|
1112
1116
|
])) : w("", !0),
|
|
1113
|
-
|
|
1117
|
+
N(We) ? (A(), T("div", Qe, M(N(J)("message.chatErrorConversationBlocked")), 1)) : Jn.value === "idle" ? (A(), C(v, {
|
|
1114
1118
|
key: 3,
|
|
1115
1119
|
ref_key: "inputEl",
|
|
1116
|
-
ref:
|
|
1117
|
-
modelValue:
|
|
1120
|
+
ref: bt,
|
|
1121
|
+
modelValue: N(H),
|
|
1118
1122
|
"onUpdate:modelValue": n[4] ||= (e) => ce(H) ? H.value = e : null,
|
|
1119
|
-
"pending-attachments":
|
|
1120
|
-
"onUpdate:pendingAttachments": n[5] ||= (e) => ce(
|
|
1121
|
-
placeholder:
|
|
1122
|
-
"dismissable-notice":
|
|
1123
|
-
"page-notice":
|
|
1124
|
-
status:
|
|
1125
|
-
"max-message-length":
|
|
1123
|
+
"pending-attachments": N(Ge),
|
|
1124
|
+
"onUpdate:pendingAttachments": n[5] ||= (e) => ce(Ge) ? Ge.value = e : null,
|
|
1125
|
+
placeholder: N(Ue),
|
|
1126
|
+
"dismissable-notice": N($t) && N(V).messages.length <= 1 ? N($t) : void 0,
|
|
1127
|
+
"page-notice": Xt.value,
|
|
1128
|
+
status: Jt.value,
|
|
1129
|
+
"max-message-length": N(R)?.maxMessageLength,
|
|
1126
1130
|
"file-upload": K.value,
|
|
1127
|
-
"attachment-limit-reached":
|
|
1128
|
-
"attachment-notice":
|
|
1129
|
-
"voice-enabled":
|
|
1130
|
-
"queue-enabled":
|
|
1131
|
-
"answer-notices":
|
|
1132
|
-
"pointer-available":
|
|
1133
|
-
pointing:
|
|
1134
|
-
pointer:
|
|
1135
|
-
"automatic-confirmations":
|
|
1131
|
+
"attachment-limit-reached": N(Ke),
|
|
1132
|
+
"attachment-notice": Zt.value,
|
|
1133
|
+
"voice-enabled": qn.value,
|
|
1134
|
+
"queue-enabled": N(ft),
|
|
1135
|
+
"answer-notices": Qt.value,
|
|
1136
|
+
"pointer-available": N(_t),
|
|
1137
|
+
pointing: N(vt),
|
|
1138
|
+
pointer: xt.value,
|
|
1139
|
+
"automatic-confirmations": N(dt) === "automatic",
|
|
1136
1140
|
"editable-images": "",
|
|
1137
1141
|
"retryable-attachments": "",
|
|
1138
|
-
onPoint: n[6] ||= (e) =>
|
|
1139
|
-
onRemovePointer: n[7] ||= (e) =>
|
|
1140
|
-
onManualConfirmations: n[8] ||= (e) =>
|
|
1141
|
-
onStopGeneration:
|
|
1142
|
-
onSubmit:
|
|
1143
|
-
onFileSelect:
|
|
1144
|
-
onRemoveAttachment:
|
|
1145
|
-
onReplaceAttachment:
|
|
1146
|
-
onRetryAttachment:
|
|
1147
|
-
onDismissAttachmentNotice:
|
|
1148
|
-
onDismissPageNotice:
|
|
1149
|
-
onOpenAnswerNotice:
|
|
1150
|
-
onDismissAnswerNotice:
|
|
1151
|
-
onVoiceStart:
|
|
1142
|
+
onPoint: n[6] ||= (e) => N(L).pagePointerStart?.(),
|
|
1143
|
+
onRemovePointer: n[7] ||= (e) => gt.value = void 0,
|
|
1144
|
+
onManualConfirmations: n[8] ||= (e) => N(L).setConfirmationMode("manual"),
|
|
1145
|
+
onStopGeneration: N(wt),
|
|
1146
|
+
onSubmit: N(Ct),
|
|
1147
|
+
onFileSelect: N(Pt),
|
|
1148
|
+
onRemoveAttachment: N(Ft),
|
|
1149
|
+
onReplaceAttachment: N(It),
|
|
1150
|
+
onRetryAttachment: N(Lt),
|
|
1151
|
+
onDismissAttachmentNotice: N(Rt),
|
|
1152
|
+
onDismissPageNotice: N(Vt),
|
|
1153
|
+
onOpenAnswerNotice: N(Gt),
|
|
1154
|
+
onDismissAnswerNotice: N(Kt),
|
|
1155
|
+
onVoiceStart: $n
|
|
1152
1156
|
}, ie({ _: 2 }, [o.modifier === "fullscreen" ? {
|
|
1153
1157
|
name: "prepend",
|
|
1154
|
-
fn:
|
|
1158
|
+
fn: F(() => [E("span", $e, [D(g, {
|
|
1155
1159
|
class: "pk-chatbot-view-chat__agent-chip-avatar",
|
|
1156
|
-
"img-src":
|
|
1157
|
-
name:
|
|
1158
|
-
}, null, 8, ["img-src", "name"]),
|
|
1160
|
+
"img-src": N(R)?.logo,
|
|
1161
|
+
name: N(L).name
|
|
1162
|
+
}, null, 8, ["img-src", "name"]), N(L).name ? (A(), T("strong", et, M(N(L).name), 1)) : w("", !0)])]),
|
|
1159
1163
|
key: "0"
|
|
1160
1164
|
} : void 0]), 1032, /* @__PURE__ */ "modelValue.pending-attachments.placeholder.dismissable-notice.page-notice.status.max-message-length.file-upload.attachment-limit-reached.attachment-notice.voice-enabled.queue-enabled.answer-notices.pointer-available.pointing.pointer.automatic-confirmations.onStopGeneration.onSubmit.onFileSelect.onRemoveAttachment.onReplaceAttachment.onRetryAttachment.onDismissAttachmentNotice.onDismissPageNotice.onOpenAnswerNotice.onDismissAnswerNotice".split("."))) : (A(), C(Ne, {
|
|
1161
1165
|
key: 2,
|
|
1162
|
-
state:
|
|
1163
|
-
sample:
|
|
1164
|
-
spectrum:
|
|
1165
|
-
"remaining-seconds":
|
|
1166
|
-
muted:
|
|
1167
|
-
error:
|
|
1168
|
-
"raw-error":
|
|
1169
|
-
live:
|
|
1166
|
+
state: Jn.value,
|
|
1167
|
+
sample: Zn,
|
|
1168
|
+
spectrum: Qn,
|
|
1169
|
+
"remaining-seconds": N(Q).remainingSeconds.value,
|
|
1170
|
+
muted: Pn.value,
|
|
1171
|
+
error: Yn.value,
|
|
1172
|
+
"raw-error": N(Q).error.value,
|
|
1173
|
+
live: N(Q).isActive.value,
|
|
1170
1174
|
class: "pk-chatbot-view-chat__voice",
|
|
1171
|
-
onToggleMute:
|
|
1172
|
-
onHangUp:
|
|
1173
|
-
onRetry:
|
|
1174
|
-
onDismiss:
|
|
1175
|
+
onToggleMute: hr,
|
|
1176
|
+
onHangUp: er,
|
|
1177
|
+
onRetry: nr,
|
|
1178
|
+
onDismiss: tr
|
|
1175
1179
|
}, null, 8, [
|
|
1176
1180
|
"state",
|
|
1177
1181
|
"remaining-seconds",
|
|
@@ -1182,17 +1186,17 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1182
1186
|
]))
|
|
1183
1187
|
]),
|
|
1184
1188
|
D(x, null, {
|
|
1185
|
-
default:
|
|
1189
|
+
default: F(() => [N(Nn) && K.value?.enabled ? (A(), T("div", tt, [D(r, {
|
|
1186
1190
|
name: "ri:upload-cloud-2-line",
|
|
1187
1191
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
1188
|
-
}), E("span", null, M(
|
|
1192
|
+
}), E("span", null, M(N(J)("action.dropFile")), 1)])) : w("", !0)]),
|
|
1189
1193
|
_: 1
|
|
1190
1194
|
}),
|
|
1191
|
-
|
|
1195
|
+
xn.value ? (A(), C(re, {
|
|
1192
1196
|
key: 1,
|
|
1193
|
-
to:
|
|
1194
|
-
disabled: !
|
|
1195
|
-
}, [E("aside", { class: k(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked":
|
|
1197
|
+
to: sn.value,
|
|
1198
|
+
disabled: !on.value
|
|
1199
|
+
}, [E("aside", { class: k(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": on.value }]) }, [N(Y) ? (A(), C(N(_e), {
|
|
1196
1200
|
key: 0,
|
|
1197
1201
|
mode: X.value.mode,
|
|
1198
1202
|
"onUpdate:mode": n[9] ||= (e) => X.value.mode = e,
|
|
@@ -1202,25 +1206,25 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1202
1206
|
"onUpdate:zoom": n[11] ||= (e) => X.value.zoom = e,
|
|
1203
1207
|
fit: X.value.fit,
|
|
1204
1208
|
"onUpdate:fit": n[12] ||= (e) => X.value.fit = e,
|
|
1205
|
-
kind:
|
|
1206
|
-
filename:
|
|
1207
|
-
version:
|
|
1208
|
-
versions:
|
|
1209
|
-
"download-url": q(
|
|
1210
|
-
preview:
|
|
1211
|
-
changes:
|
|
1212
|
-
loading:
|
|
1213
|
-
error:
|
|
1214
|
-
restorable:
|
|
1209
|
+
kind: N(Y).kind,
|
|
1210
|
+
filename: N(Y).filename,
|
|
1211
|
+
version: N(Y).version,
|
|
1212
|
+
versions: Tn.value,
|
|
1213
|
+
"download-url": q(N(Y).storedFileName),
|
|
1214
|
+
preview: N(fn),
|
|
1215
|
+
changes: N(hn),
|
|
1216
|
+
loading: N(pn),
|
|
1217
|
+
error: N(mn),
|
|
1218
|
+
restorable: Dn.value,
|
|
1215
1219
|
resize: "expand",
|
|
1216
|
-
"file-id":
|
|
1217
|
-
"stored-file-name":
|
|
1218
|
-
"selection-actions":
|
|
1219
|
-
onVersion:
|
|
1220
|
-
onRestore:
|
|
1221
|
-
onResize: n[13] ||= (e) =>
|
|
1222
|
-
onSelectionSend:
|
|
1223
|
-
onClose:
|
|
1220
|
+
"file-id": N(Y).fileId,
|
|
1221
|
+
"stored-file-name": N(Y).storedFileName,
|
|
1222
|
+
"selection-actions": kn.value,
|
|
1223
|
+
onVersion: En,
|
|
1224
|
+
onRestore: On,
|
|
1225
|
+
onResize: n[13] ||= (e) => bn.value = !0,
|
|
1226
|
+
onSelectionSend: An,
|
|
1227
|
+
onClose: Sn
|
|
1224
1228
|
}, null, 8, [
|
|
1225
1229
|
"mode",
|
|
1226
1230
|
"sheet",
|
|
@@ -1240,7 +1244,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1240
1244
|
"stored-file-name",
|
|
1241
1245
|
"selection-actions"
|
|
1242
1246
|
])) : w("", !0)], 2)], 8, ["to", "disabled"])) : w("", !0),
|
|
1243
|
-
|
|
1247
|
+
N(Y) && !xn.value ? (A(), C(N(ve), {
|
|
1244
1248
|
key: 2,
|
|
1245
1249
|
mode: X.value.mode,
|
|
1246
1250
|
"onUpdate:mode": n[14] ||= (e) => X.value.mode = e,
|
|
@@ -1250,22 +1254,22 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1250
1254
|
"onUpdate:zoom": n[16] ||= (e) => X.value.zoom = e,
|
|
1251
1255
|
fit: X.value.fit,
|
|
1252
1256
|
"onUpdate:fit": n[17] ||= (e) => X.value.fit = e,
|
|
1253
|
-
target:
|
|
1254
|
-
versions:
|
|
1255
|
-
"download-url": q(
|
|
1256
|
-
preview:
|
|
1257
|
-
changes:
|
|
1258
|
-
loading:
|
|
1259
|
-
error:
|
|
1260
|
-
restorable:
|
|
1261
|
-
resize:
|
|
1262
|
-
fullscreen:
|
|
1263
|
-
"selection-actions":
|
|
1264
|
-
onVersion:
|
|
1265
|
-
onRestore:
|
|
1266
|
-
onResize: n[18] ||= (e) =>
|
|
1267
|
-
onSelectionSend:
|
|
1268
|
-
onClose:
|
|
1257
|
+
target: N(Y),
|
|
1258
|
+
versions: Tn.value,
|
|
1259
|
+
"download-url": q(N(Y).storedFileName),
|
|
1260
|
+
preview: N(fn),
|
|
1261
|
+
changes: N(hn),
|
|
1262
|
+
loading: N(pn),
|
|
1263
|
+
error: N(mn),
|
|
1264
|
+
restorable: Dn.value,
|
|
1265
|
+
resize: un.value ? "shrink" : void 0,
|
|
1266
|
+
fullscreen: dn.value,
|
|
1267
|
+
"selection-actions": kn.value,
|
|
1268
|
+
onVersion: En,
|
|
1269
|
+
onRestore: On,
|
|
1270
|
+
onResize: n[18] ||= (e) => bn.value = !1,
|
|
1271
|
+
onSelectionSend: An,
|
|
1272
|
+
onClose: Sn
|
|
1269
1273
|
}, null, 8, [
|
|
1270
1274
|
"mode",
|
|
1271
1275
|
"sheet",
|
|
@@ -1289,4 +1293,4 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1289
1293
|
});
|
|
1290
1294
|
export { Ne as a, Ie as i, Xe as n, Oe as o, Je as r, Ee as s, st as t };
|
|
1291
1295
|
|
|
1292
|
-
//# sourceMappingURL=PkChatbotViewChat-
|
|
1296
|
+
//# sourceMappingURL=PkChatbotViewChat-BBCxj4Qz.js.map
|