@8wave/ai-elements 0.125.0-beta.26 → 0.125.0-beta.28
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/{PkChatbotFilePreview-CFGqa-tX.js → PkChatbotFilePreview-CqxtVySb.js} +100 -59
- package/dist/_chunks/PkChatbotFilePreview-CqxtVySb.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-BPsD2P7s.js → PkFilePreview-DiLMoL-6.js} +32 -32
- package/dist/_chunks/{PkFilePreview-BPsD2P7s.js.map → PkFilePreview-DiLMoL-6.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-BW-Rubk2.js → PkFilePreviewDialog-CHBtxpoB.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-BW-Rubk2.js.map → PkFilePreviewDialog-CHBtxpoB.js.map} +1 -1
- package/dist/_chunks/PkImageEditorDialog-Cq8y_PtC.js +555 -0
- package/dist/_chunks/PkImageEditorDialog-Cq8y_PtC.js.map +1 -0
- package/dist/_chunks/{PkSelectionActions-DkETXtSL.js → PkSelectionActions-DFyvcEyl.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-DkETXtSL.js.map → PkSelectionActions-DFyvcEyl.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-CqLpNWQv.js → PkStreamingMarkdown-0hE_Cx4W.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-CqLpNWQv.js.map → PkStreamingMarkdown-0hE_Cx4W.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-iE4ZokYD.js → PkToolChatFile-DtQ9xY4w.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-iE4ZokYD.js.map → PkToolChatFile-DtQ9xY4w.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-lTHNZodf.js → PkToolShareDocument-BvHklbzb.js} +2 -2
- package/dist/_chunks/{PkToolShareDocument-lTHNZodf.js.map → PkToolShareDocument-BvHklbzb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BNQrM5fY.js → PkToolShowArtifact-BdkKU6P1.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BNQrM5fY.js.map → PkToolShowArtifact-BdkKU6P1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-CvQoLumn.js → PkToolShowContactForm-BmM2MbOK.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-CvQoLumn.js.map → PkToolShowContactForm-BmM2MbOK.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DcPccCEU.js → PkToolShowForm-CoFlgA-I.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-DcPccCEU.js.map → PkToolShowForm-CoFlgA-I.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-B3VpJBVE.js → PkToolShowSources-DDBlLBt6.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-B3VpJBVE.js.map → PkToolShowSources-DDBlLBt6.js.map} +1 -1
- package/dist/_chunks/{utils-BZuri2jT.js → utils-ChmRkK0t.js} +12 -5
- package/dist/_chunks/utils-ChmRkK0t.js.map +1 -0
- package/dist/ai-elements.es.js +3197 -3115
- 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/{PkChatbot-DyzEuNED.js → PkChatbot-BjJzskl7.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-DyzEuNED.js.map → PkChatbot-BjJzskl7.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-COya3H3C.js → PkChatbotEmptyState-CZC2gP3I.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-COya3H3C.js.map → PkChatbotEmptyState-CZC2gP3I.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFilePreview-BsvT6orx.js → PkChatbotFilePreview-j_8sDZUE.js} +112 -71
- package/dist-vue/_chunks/PkChatbotFilePreview-j_8sDZUE.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotInput-BmTdIJZ9.js +509 -0
- package/dist-vue/_chunks/PkChatbotInput-BmTdIJZ9.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotMessages-b2lupEv9.js +1049 -0
- package/dist-vue/_chunks/{PkChatbotMessages-BISaZu4z.js.map → PkChatbotMessages-b2lupEv9.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-cuYclK_2.js → PkChatbotStepPayload-D4w1XlF2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-cuYclK_2.js.map → PkChatbotStepPayload-D4w1XlF2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Yd8cUQJP.js → PkChatbotStepToolDetail-DFTcjzoX.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Yd8cUQJP.js.map → PkChatbotStepToolDetail-DFTcjzoX.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-_Aqft0em.js → PkChatbotSteps-D3zLulMo.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-_Aqft0em.js.map → PkChatbotSteps-D3zLulMo.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CIfotKyM.js → PkChatbotViewChat-DawyiUjq.js} +323 -345
- package/dist-vue/_chunks/PkChatbotViewChat-DawyiUjq.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-DjhiHp8-.js → PkChatbotViewConversations-Bs246dtL.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-DjhiHp8-.js.map → PkChatbotViewConversations-Bs246dtL.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-C4oGN4Xj.js → PkChatbotViewFiles-uzZ5H4Fd.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-C4oGN4Xj.js.map → PkChatbotViewFiles-uzZ5H4Fd.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-NfTamy9j.js → PkChatbotViewProfile-BhIvfT_n.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-NfTamy9j.js.map → PkChatbotViewProfile-BhIvfT_n.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-DEKgCMkr.js → PkFilePreview-DfD48QQ_.js} +48 -48
- package/dist-vue/_chunks/{PkFilePreview-DEKgCMkr.js.map → PkFilePreview-DfD48QQ_.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-0qrzDWID.js → PkFilePreviewDialog-DFCBpQf3.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-0qrzDWID.js.map → PkFilePreviewDialog-DFCBpQf3.js.map} +1 -1
- package/dist-vue/_chunks/PkImageEditorDialog-BLUyILVi.js +550 -0
- package/dist-vue/_chunks/PkImageEditorDialog-BLUyILVi.js.map +1 -0
- package/dist-vue/_chunks/{PkStreamingMarkdown-2FN4WMQD.js → PkStreamingMarkdown-ChMbSviw.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-2FN4WMQD.js.map → PkStreamingMarkdown-ChMbSviw.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-DAT1tv52.js → PkToolChatFile-DQtABEaI.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-DAT1tv52.js.map → PkToolChatFile-DQtABEaI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShareDocument-Qb2Lu5vh.js → PkToolShareDocument-cMUqik6v.js} +2 -2
- package/dist-vue/_chunks/{PkToolShareDocument-Qb2Lu5vh.js.map → PkToolShareDocument-cMUqik6v.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Bskomw05.js → PkToolShowArtifact-w6SxjLPW.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Bskomw05.js.map → PkToolShowArtifact-w6SxjLPW.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-iQrlqv7j.js → PkToolShowContactForm-BQ7bBTQU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-iQrlqv7j.js.map → PkToolShowContactForm-BQ7bBTQU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-C-43uUoh.js → PkToolShowDiagram-D-yQgdOL.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-C-43uUoh.js.map → PkToolShowDiagram-D-yQgdOL.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CKXpqQxy.js → PkToolShowForm-CF00JLpa.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowForm-CKXpqQxy.js.map → PkToolShowForm-CF00JLpa.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DLTn6JmU.js → PkToolShowImageGallery-ZJMWOWHq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DLTn6JmU.js.map → PkToolShowImageGallery-ZJMWOWHq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-hhSBAQVC.js → PkToolShowProductList-CeKI9H36.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-hhSBAQVC.js.map → PkToolShowProductList-CeKI9H36.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-BMo_i8sv.js → PkToolShowSources-CXZqanmw.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-BMo_i8sv.js.map → PkToolShowSources-CXZqanmw.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-DJhsbDuX.js → PkToolShowVideo-BCs-i6xQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-DJhsbDuX.js.map → PkToolShowVideo-BCs-i6xQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BAv66f5H.js → PkToolShowWebPages-Bixa0CjQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BAv66f5H.js.map → PkToolShowWebPages-Bixa0CjQ.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-BZ1n3Hyx.js → useChatbotStore-BIjCGX0B.js} +858 -835
- package/dist-vue/_chunks/useChatbotStore-BIjCGX0B.js.map +1 -0
- package/dist-vue/_chunks/{utils-RwaXl9-x.js → utils-CaYEz-0A.js} +11 -4
- package/dist-vue/_chunks/utils-CaYEz-0A.js.map +1 -0
- package/dist-vue/composables.js +56 -4
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +49 -49
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +56 -0
- package/dist-vue/packages/components/src/chat/PkChatbotFilePreview.d.ts +14 -0
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +17 -3
- package/dist-vue/packages/components/src/chat/PkImageEditor.d.ts +37 -0
- package/dist-vue/packages/components/src/chat/PkImageEditorDialog.d.ts +19 -0
- package/dist-vue/packages/components/src/chat/imageEdits.d.ts +106 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +7 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +7 -1
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkChatbotFilePreview-CFGqa-tX.js.map +0 -1
- package/dist/_chunks/utils-BZuri2jT.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotFilePreview-BsvT6orx.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-D0KUEkAs.js +0 -478
- package/dist-vue/_chunks/PkChatbotInput-D0KUEkAs.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-BISaZu4z.js +0 -1049
- package/dist-vue/_chunks/PkChatbotViewChat-CIfotKyM.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-BZ1n3Hyx.js.map +0 -1
- package/dist-vue/_chunks/utils-RwaXl9-x.js.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { t as e } from "./PkChatbotMessages-
|
|
1
|
+
import { t as e } from "./PkChatbotMessages-b2lupEv9.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-BIjCGX0B.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 {
|
|
6
|
+
import { R as c, f as l, l as u, n as d, r as f, y as p } from "./utils-CaYEz-0A.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-BmTdIJZ9.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-CZC2gP3I.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
|
-
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 ae, inject as oe, isRef as se, nextTick as ce, normalizeClass as k, normalizeStyle as le, onBeforeUnmount as ue, onMounted as de, onScopeDispose as
|
|
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 ae, inject as oe, isRef as se, nextTick as ce, normalizeClass as k, normalizeStyle as le, onBeforeUnmount as ue, onMounted as de, onScopeDispose as fe, onUnmounted as pe, openBlock as A, provide as me, ref as j, renderList as he, shallowRef as ge, toDisplayString as M, toValue as N, unref as P, useTemplateRef as F, watch as I, withCtx as L } from "vue";
|
|
15
15
|
import { useI18n as _e } from "vue-i18n";
|
|
16
16
|
import { useDropZone as ve, useResizeObserver as ye } from "@vueuse/core";
|
|
17
17
|
import { storeToRefs as be } from "pinia";
|
|
18
18
|
// ../../packages/composable/src/chatbot/useGreeting.ts
|
|
19
19
|
function xe(e, t) {
|
|
20
20
|
let { locale: n, t: r, te: i } = _e({ useScope: "global" });
|
|
21
|
-
return S(() => Se(
|
|
21
|
+
return S(() => Se(N(e)?.greeting?.[0]?.[n.value] ?? "", N(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
|
|
22
22
|
}
|
|
23
23
|
function Se(e, t) {
|
|
24
24
|
return (t ? e.replace(/\{name\}/g, t) : e.replace(/[,\s]*\{name\}[!?]?/g, "")).trim();
|
|
@@ -27,7 +27,7 @@ function Se(e, t) {
|
|
|
27
27
|
var R = {
|
|
28
28
|
key: 1,
|
|
29
29
|
class: "pk-aurora__fallback"
|
|
30
|
-
}, z = "\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}", Ce = "\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\n vec2 radii = vec2(u_half.x * 0.95, u_half.y * 6.5)
|
|
30
|
+
}, z = "\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}", Ce = "\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}", we = /* @__PURE__ */ ae({
|
|
31
31
|
__name: "PkAuroraCanvas",
|
|
32
32
|
props: {
|
|
33
33
|
sourceSelector: {},
|
|
@@ -36,7 +36,7 @@ var R = {
|
|
|
36
36
|
secondColor: {}
|
|
37
37
|
},
|
|
38
38
|
setup(e) {
|
|
39
|
-
let t = e, n =
|
|
39
|
+
let t = e, n = F("rootEl"), r = F("canvasEl"), i = j(!1), a = j(null), o = S(() => a.value ? {
|
|
40
40
|
"--pk-aurora-tint": `rgb(${a.value.first.join(" ")})`,
|
|
41
41
|
"--pk-aurora-tint-2": `rgb(${(a.value.duo ? a.value.second : a.value.first).join(" ")})`
|
|
42
42
|
} : void 0), s = null, l = 0, u = null, d = null, f = null, p = null, m = null, h = null, g = null, _ = null, v = null, ee = performance.now(), te = (e, t) => {
|
|
@@ -99,18 +99,18 @@ var R = {
|
|
|
99
99
|
s.enableVertexAttribArray(l), s.vertexAttribPointer(l, 2, s.FLOAT, !1, 0, 0), d = s.getUniformLocation(o, "u_time"), f = s.getUniformLocation(o, "u_resolution"), p = s.getUniformLocation(o, "u_center"), m = s.getUniformLocation(o, "u_half"), h = s.getUniformLocation(o, "u_spread"), g = s.getUniformLocation(o, "u_color"), _ = s.getUniformLocation(o, "u_color2"), v = s.getUniformLocation(o, "u_duo"), y(), u = new ResizeObserver(b), u.observe(e), b(), ce(b), x() ? C(10) : w();
|
|
100
100
|
}), ue(() => {
|
|
101
101
|
cancelAnimationFrame(l), u?.disconnect();
|
|
102
|
-
}),
|
|
102
|
+
}), pe(() => {
|
|
103
103
|
let e = s;
|
|
104
104
|
s = null, setTimeout(() => {
|
|
105
105
|
e?.getExtension("WEBGL_lose_context")?.loseContext();
|
|
106
106
|
}, 150);
|
|
107
|
-
}), (e, t) => (
|
|
107
|
+
}), (e, t) => (A(), T("div", {
|
|
108
108
|
ref_key: "rootEl",
|
|
109
109
|
ref: n,
|
|
110
110
|
class: "pk-aurora",
|
|
111
111
|
"aria-hidden": "true",
|
|
112
112
|
style: le(o.value)
|
|
113
|
-
}, [i.value ? (
|
|
113
|
+
}, [i.value ? (A(), T("div", R)) : (A(), T("canvas", {
|
|
114
114
|
key: 0,
|
|
115
115
|
ref_key: "canvasEl",
|
|
116
116
|
ref: r,
|
|
@@ -129,7 +129,7 @@ var R = {
|
|
|
129
129
|
bars: { default: 5 }
|
|
130
130
|
},
|
|
131
131
|
setup(e) {
|
|
132
|
-
let t = e, n =
|
|
132
|
+
let t = e, n = F("barsEl"), r = Array.from({ length: t.bars }, () => B), i, a = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === !0, o = () => {
|
|
133
133
|
let e = Math.min(1, Math.max(0, t.sample())), n = t.spectrum?.(), i = r.length;
|
|
134
134
|
if (!n?.length) {
|
|
135
135
|
let t = Date.now() / 260;
|
|
@@ -157,14 +157,14 @@ var R = {
|
|
|
157
157
|
};
|
|
158
158
|
return I(() => t.state, async (e) => {
|
|
159
159
|
e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => B * 1.6), await ce(), s()) : i === void 0 && (i = requestAnimationFrame(c));
|
|
160
|
-
}, { immediate: !0 }), ue(l), (t, r) => (
|
|
160
|
+
}, { immediate: !0 }), ue(l), (t, r) => (A(), T("div", {
|
|
161
161
|
class: k(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
|
|
162
162
|
"aria-hidden": "true"
|
|
163
163
|
}, [E("div", {
|
|
164
164
|
ref_key: "barsEl",
|
|
165
165
|
ref: n,
|
|
166
166
|
class: "pk-voice-orb__bars"
|
|
167
|
-
}, [(
|
|
167
|
+
}, [(A(!0), T(y, null, he(e.bars, (e) => (A(), T("span", {
|
|
168
168
|
key: e,
|
|
169
169
|
class: "pk-voice-orb__bar"
|
|
170
170
|
}))), 128))], 512)], 2));
|
|
@@ -208,8 +208,8 @@ var R = {
|
|
|
208
208
|
});
|
|
209
209
|
return (t, n) => {
|
|
210
210
|
let u = ne;
|
|
211
|
-
return
|
|
212
|
-
e.error ? (
|
|
211
|
+
return A(), T("div", { class: k(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
|
|
212
|
+
e.error ? (A(), T("span", De, [D(u, { name: "ri:error-warning-line" })])) : (A(), C(Ee, {
|
|
213
213
|
key: 1,
|
|
214
214
|
state: e.state,
|
|
215
215
|
sample: e.sample,
|
|
@@ -219,37 +219,37 @@ var R = {
|
|
|
219
219
|
"sample",
|
|
220
220
|
"spectrum"
|
|
221
221
|
])),
|
|
222
|
-
E("div", V, [E("span", { class: k(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (
|
|
222
|
+
E("div", V, [E("span", { class: k(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (A(), T("span", H)) : w("", !0), ie(" " + M(a.value), 1)], 2), e.error ? (A(), T("p", {
|
|
223
223
|
key: 0,
|
|
224
224
|
class: "pk-voice-session__detail",
|
|
225
225
|
title: e.rawError ?? e.error
|
|
226
|
-
},
|
|
227
|
-
o.value ? (
|
|
226
|
+
}, M(e.error), 9, Oe)) : w("", !0)]),
|
|
227
|
+
o.value ? (A(), T("span", {
|
|
228
228
|
key: 2,
|
|
229
229
|
class: k(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
|
|
230
|
-
title:
|
|
230
|
+
title: P(i)("hint.voiceRemaining"),
|
|
231
231
|
"aria-hidden": "true"
|
|
232
|
-
},
|
|
233
|
-
E("div", Ae, [e.error ? (
|
|
232
|
+
}, M(o.value), 11, ke)) : w("", !0),
|
|
233
|
+
E("div", Ae, [e.error ? (A(), T(y, { key: 0 }, [D(g, {
|
|
234
234
|
icon: "ri:refresh-line",
|
|
235
|
-
label:
|
|
235
|
+
label: P(i)("action.retry"),
|
|
236
236
|
onClick: n[0] ||= (e) => r("retry")
|
|
237
|
-
}, null, 8, ["label"]), e.live ? (
|
|
237
|
+
}, null, 8, ["label"]), e.live ? (A(), C(g, {
|
|
238
238
|
key: 0,
|
|
239
239
|
icon: "ri:stop-circle-line",
|
|
240
240
|
modifiers: "danger",
|
|
241
|
-
title:
|
|
242
|
-
"aria-label":
|
|
241
|
+
title: P(i)("action.hangUp"),
|
|
242
|
+
"aria-label": P(i)("action.hangUp"),
|
|
243
243
|
onClick: n[1] ||= (e) => r("hang-up")
|
|
244
|
-
}, null, 8, ["title", "aria-label"])) : (
|
|
244
|
+
}, null, 8, ["title", "aria-label"])) : (A(), C(g, {
|
|
245
245
|
key: 1,
|
|
246
246
|
icon: "ri:close-line",
|
|
247
|
-
label:
|
|
247
|
+
label: P(i)("action.close"),
|
|
248
248
|
onClick: n[2] ||= (e) => r("dismiss")
|
|
249
|
-
}, null, 8, ["label"]))], 64)) : (
|
|
249
|
+
}, null, 8, ["label"]))], 64)) : (A(), T(y, { key: 1 }, [D(g, {
|
|
250
250
|
icon: e.muted ? "ri:mic-off-line" : "ri:mic-line",
|
|
251
|
-
title: e.muted ?
|
|
252
|
-
"aria-label": e.muted ?
|
|
251
|
+
title: e.muted ? P(i)("action.unmute") : P(i)("action.mute"),
|
|
252
|
+
"aria-label": e.muted ? P(i)("action.unmute") : P(i)("action.mute"),
|
|
253
253
|
"aria-pressed": e.muted,
|
|
254
254
|
onClick: n[3] ||= (e) => r("toggle-mute")
|
|
255
255
|
}, null, 8, [
|
|
@@ -260,15 +260,15 @@ var R = {
|
|
|
260
260
|
]), D(g, {
|
|
261
261
|
icon: "ri:stop-circle-line",
|
|
262
262
|
modifiers: "danger",
|
|
263
|
-
title:
|
|
264
|
-
"aria-label":
|
|
263
|
+
title: P(i)("action.hangUp"),
|
|
264
|
+
"aria-label": P(i)("action.hangUp"),
|
|
265
265
|
onClick: n[4] ||= (e) => r("hang-up")
|
|
266
266
|
}, null, 8, ["title", "aria-label"])], 64))])
|
|
267
267
|
], 2);
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
}), Me = (e) => {
|
|
271
|
-
let t =
|
|
271
|
+
let t = ge(), n = j("disconnected"), r = j("listening"), i = j(), o = j([]), s = j(), c = j(), l, u, d = 0, f = !1, p = () => {
|
|
272
272
|
u &&= (clearInterval(u), void 0), s.value = void 0;
|
|
273
273
|
}, m = (e) => {
|
|
274
274
|
let t = Date.now() + e * 1e3, n = () => {
|
|
@@ -371,7 +371,7 @@ var R = {
|
|
|
371
371
|
let r = t.value;
|
|
372
372
|
t.value = void 0, r?.endSession().catch(() => void 0), n.value = "disconnected";
|
|
373
373
|
};
|
|
374
|
-
return typeof window < "u" && window.addEventListener("pagehide", b),
|
|
374
|
+
return typeof window < "u" && window.addEventListener("pagehide", b), fe(() => {
|
|
375
375
|
f = !0, typeof window < "u" && window.removeEventListener("pagehide", b), g();
|
|
376
376
|
}), {
|
|
377
377
|
status: n,
|
|
@@ -394,7 +394,7 @@ var R = {
|
|
|
394
394
|
};
|
|
395
395
|
}, Ne = Symbol("ChatFilePreviewDock");
|
|
396
396
|
function Pe(e) {
|
|
397
|
-
|
|
397
|
+
me(Ne, e);
|
|
398
398
|
}
|
|
399
399
|
function Fe() {
|
|
400
400
|
return oe(Ne, void 0);
|
|
@@ -406,7 +406,7 @@ var Ie = 4e3, Le = [
|
|
|
406
406
|
1e4
|
|
407
407
|
], Re = 12e4, U = 3e4;
|
|
408
408
|
function ze(e) {
|
|
409
|
-
let t =
|
|
409
|
+
let t = j(null), n = j(!1), r, i = !1, a = () => {
|
|
410
410
|
clearTimeout(r), r = void 0;
|
|
411
411
|
}, o = (e, t) => {
|
|
412
412
|
a(), i || (r = setTimeout(() => void t(), e));
|
|
@@ -554,7 +554,7 @@ var Be = 1e6, W = (e, t) => {
|
|
|
554
554
|
return (i.top < r.top || i.bottom > r.bottom) && (e.scrollTop += i.top - r.top - (r.height - i.height) / 2), (i.left < r.left || i.right > r.right) && (e.scrollLeft += i.left - r.left - (r.width - i.width) / 2), !0;
|
|
555
555
|
}, qe = 4e3;
|
|
556
556
|
function Je(e) {
|
|
557
|
-
let t =
|
|
557
|
+
let t = j(), n = j(), r = j(!1), i = j(!1), a = ge(), o = /* @__PURE__ */ new Map(), s, c = 0, l = 0, u = () => {
|
|
558
558
|
clearTimeout(s), a.value = void 0;
|
|
559
559
|
}, d = (e, t) => {
|
|
560
560
|
u();
|
|
@@ -614,9 +614,9 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
614
614
|
"selection-action"
|
|
615
615
|
],
|
|
616
616
|
setup(a, { emit: c }) {
|
|
617
|
-
let g = O(() => import("./PkToolShowForm-
|
|
618
|
-
|
|
619
|
-
let _t =
|
|
617
|
+
let g = O(() => import("./PkToolShowForm-CF00JLpa.js").then((e) => e.n)), y = O(() => import("./PkToolShowContactForm-BQ7bBTQU.js").then((e) => e.n)), ie = O(() => import("./PkToolShowSuggestedReply-BRIzGNwx.js").then((e) => e.n)), ae = O(() => import("./PkToolShowSources-CXZqanmw.js").then((e) => e.n)), oe = O(() => import("./PkToolRequestGeolocation-p7Ip17F7.js").then((e) => e.n)), ce = O(() => import("./PkToolRequestOAuthConnection-CtXSzKzM.js")), le = O(() => import("./PkToolShowLocation-B8FE_Sqd.js").then((e) => e.n)), de = O(() => import("./PkToolShowDiagram-D-yQgdOL.js")), fe = O(() => import("./PkToolChatFile-DQtABEaI.js").then((e) => e.n)), pe = O(() => import("./PkToolShareDocument-cMUqik6v.js").then((e) => e.n)), he = O(() => import("./PkFilePreview-DfD48QQ_.js").then((e) => e.n)), ge = O(() => import("./PkFilePreviewDialog-DFCBpQf3.js").then((e) => e.n)), N = a, Se = c, R = r(N.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: Be, isConversationBlocked: W, baseUrl: Ve, pendingAttachments: G, isAttachmentLimitReached: He, fileLimitError: Ue, apiClient: K, isDark: We, hostToolsPending: Ge, pageNoticeLevel: Ke, hostConfirmation: qe, agentPageAccess: at, hostStepTitles: ot, hostStepChanges: st, confirmationMode: ct, canQueue: lt, queuedMessages: ut, backgroundAnswers: dt, inputFocusRequest: ft, pagePointer: pt, pagePointerAvailable: mt, pagePointing: ht, agentSelectionActions: gt } = be(R);
|
|
618
|
+
me(f, ot), me(d, st);
|
|
619
|
+
let _t = F("inputEl");
|
|
620
620
|
I(ft, () => {
|
|
621
621
|
_t.value?.focus();
|
|
622
622
|
}), I(pt, (e) => {
|
|
@@ -625,138 +625,138 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
625
625
|
let vt = S(() => pt.value ? {
|
|
626
626
|
kind: pt.value.kind,
|
|
627
627
|
label: pt.value.label
|
|
628
|
-
} : void 0), yt = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => K.value.getMediaDownloadUrl(
|
|
628
|
+
} : void 0), yt = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => K.value.getMediaDownloadUrl(N.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, replacePendingAttachment: Nt, retryPendingAttachment: Pt, clearFileLimitError: Ft, refreshMessages: It, appendMessage: Lt, closePageNotice: Rt, respondHostConfirmation: zt, editQueuedMessage: Bt, removeQueuedMessage: Vt, openBackgroundAnswer: Ht, dismissBackgroundAnswer: Ut } = R, { t: J } = _e({ useScope: "global" }), Wt = S(() => Ge.value > 0), Gt = S(() => Wt.value && H.value.status === "ready" ? "streaming" : H.value.status), Kt = m(() => at.value?.notice), qt = S(() => Ke.value ? Kt.value || J(`message.pageAccessNotice.${Ke.value}`) : void 0), Jt = S(() => {
|
|
629
629
|
let e = Ue.value;
|
|
630
630
|
if (e) return e.reason === "per-chat" ? J("message.fileLimitPerChat", { max: e.max }) : J("message.fileLimitPerMessage", { max: e.max });
|
|
631
|
-
}),
|
|
631
|
+
}), Yt = S(() => dt.value.map(({ chatId: e, title: t }) => ({
|
|
632
632
|
id: e,
|
|
633
633
|
text: t ? J("message.backgroundAnswerReady", { title: t }) : J("message.backgroundAnswerReadyUntitled")
|
|
634
|
-
}))),
|
|
635
|
-
ye([
|
|
634
|
+
}))), Xt = m(() => z.value?.dismissableNotice), Zt = S(() => V.value.some((e) => e.role === "user")), Qt = S(() => N.modifier === "fullscreen" && !Zt.value), $t = xe(z, () => N.userName), en = F("chatViewEl"), tn = Fe(), nn = S(() => !!tn?.value), rn = S(() => tn?.value ?? "body"), an = j(0), on = j(0);
|
|
635
|
+
ye([en, S(() => tn?.value ?? void 0)], (e) => {
|
|
636
636
|
for (let t of e) {
|
|
637
637
|
let e = t.borderBoxSize?.[0]?.inlineSize ?? t.contentRect.width;
|
|
638
|
-
t.target ===
|
|
638
|
+
t.target === en.value ? an.value = e : on.value = e;
|
|
639
639
|
}
|
|
640
640
|
}, { box: "border-box" });
|
|
641
|
-
let
|
|
641
|
+
let sn = S(() => an.value + (nn.value ? on.value : 0) >= et), cn = S(() => an.value > 0 && an.value < 576), { target: Y, preview: ln, loading: un, error: dn, changes: fn, open: pn, close: mn, reset: hn } = Je((e) => K.value.getChatFilePreview(N.agentId, R.localChatId, e)), X = j({}), gn = (e, t) => {
|
|
642
642
|
let n = (e) => e?.fileId ?? e?.storedFileName;
|
|
643
|
-
return n(e) !== n(Y.value) && (X.value = {}),
|
|
644
|
-
},
|
|
645
|
-
|
|
646
|
-
},
|
|
643
|
+
return n(e) !== n(Y.value) && (X.value = {}), pn(e, t);
|
|
644
|
+
}, _n = j(!1), vn = S(() => !!Y.value && sn.value && !_n.value), yn = () => {
|
|
645
|
+
mn(), _n.value = !1;
|
|
646
|
+
}, bn = /* @__PURE__ */ new Set([
|
|
647
647
|
"tool-editSpreadsheet",
|
|
648
648
|
"tool-editWordDocument",
|
|
649
649
|
"tool-createSpreadsheet",
|
|
650
650
|
"tool-createWordDocument"
|
|
651
|
-
]),
|
|
651
|
+
]), xn = S(() => {
|
|
652
652
|
let e = /* @__PURE__ */ new Map();
|
|
653
653
|
for (let t of V.value) for (let n of t.parts) {
|
|
654
654
|
let { type: t, state: r, output: i } = n;
|
|
655
|
-
if (
|
|
655
|
+
if (bn.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
|
|
656
656
|
let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
|
|
657
657
|
t.set(i.version, i.storedFileName), e.set(i.fileId, t);
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
for (let [t, n] of e) n.has(1) || n.set(1, t);
|
|
661
661
|
return e;
|
|
662
|
-
}),
|
|
663
|
-
let n = Y.value, r =
|
|
664
|
-
n && r &&
|
|
662
|
+
}), Sn = S(() => [...xn.value.get(Y.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), Cn = (e, t) => {
|
|
663
|
+
let n = Y.value, r = xn.value.get(n?.fileId ?? "")?.get(e);
|
|
664
|
+
n && r && gn({
|
|
665
665
|
...n,
|
|
666
666
|
version: e,
|
|
667
667
|
storedFileName: r
|
|
668
668
|
}, t);
|
|
669
|
-
},
|
|
670
|
-
let e = Y.value, t =
|
|
669
|
+
}, wn = S(() => {
|
|
670
|
+
let e = Y.value, t = Sn.value;
|
|
671
671
|
return !!$.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
|
|
672
|
-
}),
|
|
672
|
+
}), Tn = () => {
|
|
673
673
|
let e = Y.value;
|
|
674
674
|
e?.fileId && e.version && ($.value?.({
|
|
675
675
|
fileId: e.fileId,
|
|
676
676
|
version: e.version,
|
|
677
677
|
filename: e.filename
|
|
678
|
-
}),
|
|
678
|
+
}), yn());
|
|
679
679
|
};
|
|
680
|
-
I(() => R.localChatId,
|
|
680
|
+
I(() => R.localChatId, hn), I(() => {
|
|
681
681
|
let e = Y.value?.fileId;
|
|
682
682
|
return e ? {
|
|
683
683
|
fileId: e,
|
|
684
|
-
newest: Math.max(0, ...
|
|
684
|
+
newest: Math.max(0, ...Sn.value)
|
|
685
685
|
} : void 0;
|
|
686
686
|
}, (e, t) => {
|
|
687
|
-
e && t && e.fileId === t.fileId && e.newest > t.newest && Y.value?.version === t.newest &&
|
|
687
|
+
e && t && e.fileId === t.fileId && e.newest > t.newest && Y.value?.version === t.newest && Cn(e.newest, Y.value.storedFileName);
|
|
688
688
|
});
|
|
689
|
-
let
|
|
689
|
+
let En = S(() => {
|
|
690
690
|
let e = H.value?.status;
|
|
691
691
|
if (!(W.value || e === "submitted" || e === "streaming")) return Y.value?.kind === "word" ? gt.value?.word : gt.value?.excel;
|
|
692
|
-
}),
|
|
692
|
+
}), Dn = (e, t, n) => {
|
|
693
693
|
R.sendSelection(e, { filePointer: t }) && Se("selection-action", {
|
|
694
694
|
surface: t.format === "docx" ? "word" : "excel",
|
|
695
695
|
action: n.id,
|
|
696
696
|
state: "chat",
|
|
697
697
|
size: String(n.size)
|
|
698
698
|
});
|
|
699
|
-
},
|
|
700
|
-
let t = await K.value.downloadSourceDocument(
|
|
699
|
+
}, On = async (e) => (await K.value.expandSourceContext(N.agentId, e.documentId, e.chunkIndex)).content, kn = async (e) => {
|
|
700
|
+
let t = await K.value.downloadSourceDocument(N.agentId, e);
|
|
701
701
|
window.open(t.downloadUrl, "_blank");
|
|
702
|
-
}, { isOverDropZone:
|
|
702
|
+
}, { isOverDropZone: An } = ve(en, {
|
|
703
703
|
dataTypes: (e) => t(e, yt.value?.allowedMimeTypes ?? []),
|
|
704
704
|
onDrop: (e) => {
|
|
705
705
|
if (yt.value?.enabled && e) for (let t of e) jt(t);
|
|
706
706
|
}
|
|
707
|
-
}),
|
|
707
|
+
}), jn = j(!1), Mn = !1, Z = j(!1), Nn = [
|
|
708
708
|
3e3,
|
|
709
709
|
5e3,
|
|
710
710
|
1e4
|
|
711
|
-
],
|
|
712
|
-
function
|
|
713
|
-
clearTimeout(
|
|
711
|
+
], Pn, Fn, In = !1, Ln = 0, Rn = !1;
|
|
712
|
+
function zn() {
|
|
713
|
+
clearTimeout(Pn), Pn = void 0, Fn = void 0, In = !1, Ln = 0, Z.value = !1;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
716
|
-
|
|
717
|
-
|
|
715
|
+
function Bn(e) {
|
|
716
|
+
Mn || (clearTimeout(Pn), Pn = setTimeout(() => {
|
|
717
|
+
Vn();
|
|
718
718
|
}, e));
|
|
719
719
|
}
|
|
720
|
-
async function
|
|
721
|
-
if (
|
|
722
|
-
|
|
720
|
+
async function Vn() {
|
|
721
|
+
if (Mn || Rn) return;
|
|
722
|
+
Rn = !0;
|
|
723
723
|
let e;
|
|
724
724
|
try {
|
|
725
|
-
e = await
|
|
725
|
+
e = await It();
|
|
726
726
|
} finally {
|
|
727
|
-
|
|
727
|
+
Rn = !1;
|
|
728
728
|
}
|
|
729
|
-
if (
|
|
730
|
-
if (e === "caught-up" && (Z.value = !1,
|
|
731
|
-
|
|
729
|
+
if (Mn) return;
|
|
730
|
+
if (e === "caught-up" && (Z.value = !1, _r()), Q.isActive.value) {
|
|
731
|
+
Fn = void 0, In = !1, Ln = 0, Bn(tt);
|
|
732
732
|
return;
|
|
733
733
|
}
|
|
734
|
-
|
|
735
|
-
let t = Date.now() -
|
|
736
|
-
if (e === "caught-up" && t >= (
|
|
737
|
-
|
|
734
|
+
Fn === void 0 && (Fn = Date.now(), In = !!Q.error.value);
|
|
735
|
+
let t = Date.now() - Fn;
|
|
736
|
+
if (e === "caught-up" && t >= (In ? rt : nt) || t >= it) {
|
|
737
|
+
zn(), vr();
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
|
-
let n =
|
|
741
|
-
|
|
740
|
+
let n = Nn[Math.min(Ln, Nn.length - 1)];
|
|
741
|
+
Ln += 1, Bn(n);
|
|
742
742
|
}
|
|
743
|
-
let
|
|
744
|
-
|
|
745
|
-
},
|
|
743
|
+
let Hn = (e = 1200) => {
|
|
744
|
+
Bn(e);
|
|
745
|
+
}, Un, Q = Me({
|
|
746
746
|
fetchGrant: async () => {
|
|
747
|
-
|
|
748
|
-
let e = await K.value.createVoiceSession(
|
|
747
|
+
Un = R.voicePageTools();
|
|
748
|
+
let e = await K.value.createVoiceSession(N.agentId, R.localChatId, {
|
|
749
749
|
deviceContext: R.buildDeviceContext(),
|
|
750
750
|
externalContext: R.externalContext,
|
|
751
|
-
pageTools:
|
|
751
|
+
pageTools: Un?.declaration,
|
|
752
752
|
...R.confirmationMode === "automatic" && { confirmations: "automatic" }
|
|
753
753
|
});
|
|
754
754
|
return e.chatId !== R.localChatId && (R.localChatId = e.chatId), e;
|
|
755
755
|
},
|
|
756
|
-
closeGrant: (e) => K.value.closeVoiceSession(
|
|
757
|
-
clientTools: () =>
|
|
756
|
+
closeGrant: (e) => K.value.closeVoiceSession(N.agentId, e),
|
|
757
|
+
clientTools: () => Un?.clientTools,
|
|
758
758
|
onTranscript: (e) => {
|
|
759
|
-
e.role === "user" ? (Z.value = !0,
|
|
759
|
+
e.role === "user" ? (Z.value = !0, gr(), Lt({
|
|
760
760
|
id: `${i}user-${n()}`,
|
|
761
761
|
role: "user",
|
|
762
762
|
parts: [{
|
|
@@ -766,7 +766,7 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
766
766
|
})) : Z.value = !1;
|
|
767
767
|
},
|
|
768
768
|
onTurnEnd: () => {
|
|
769
|
-
|
|
769
|
+
Hn();
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
772
|
I(() => Q.isActive.value, (e) => {
|
|
@@ -774,38 +774,38 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
774
774
|
}), I(() => Q.error.value, (e) => {
|
|
775
775
|
e && (Z.value = !1);
|
|
776
776
|
});
|
|
777
|
-
let
|
|
777
|
+
let Wn = S(() => Te.value?.enabled === !0), Gn = S(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), Kn = S(() => {
|
|
778
778
|
let e = Q.error.value;
|
|
779
779
|
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");
|
|
780
|
-
}),
|
|
781
|
-
|
|
782
|
-
}, Yn = async () => {
|
|
783
|
-
Z.value = !1, await Q.stop(), !An && Bn(0);
|
|
784
|
-
}, Xn = () => {
|
|
785
|
-
Q.dismissError();
|
|
780
|
+
}), qn = S(() => Q.isSpeaking.value ? "output" : "input"), Jn = () => Q.readLevel(qn.value), Yn = () => Q.readSpectrum(qn.value), Xn = async () => {
|
|
781
|
+
jn.value = !1, await Q.start(), Q.isActive.value && (zn(), Bn(tt));
|
|
786
782
|
}, Zn = async () => {
|
|
787
|
-
|
|
788
|
-
}, Qn = (
|
|
789
|
-
|
|
783
|
+
Z.value = !1, await Q.stop(), !Mn && Hn(0);
|
|
784
|
+
}, Qn = () => {
|
|
785
|
+
Q.dismissError();
|
|
786
|
+
}, $n = async () => {
|
|
787
|
+
Q.dismissError(), await Q.stop(), await Xn();
|
|
788
|
+
}, er = (e) => e?.toolCallId ?? "", tr = j(/* @__PURE__ */ new Set()), nr = (e) => tr.value.has(er(e)), rr = j(/* @__PURE__ */ new Map()), ir = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (tr.value = new Set(tr.value).add(er(e)), Hn()), !0) : !1, ar = (e, t, n) => {
|
|
789
|
+
ir(t, l(t, n)) || kt({
|
|
790
790
|
tool: e,
|
|
791
|
-
toolCallId:
|
|
791
|
+
toolCallId: er(t),
|
|
792
792
|
output: n
|
|
793
793
|
});
|
|
794
|
-
},
|
|
794
|
+
}, or = (e) => {
|
|
795
795
|
let t = e.confirmed ? J("message.voiceConfirmed") : J("message.voiceCancelled");
|
|
796
|
-
|
|
796
|
+
ir({ toolCallId: e.toolCallId }, t) ? tr.value.has(e.toolCallId) && (rr.value = new Map(rr.value).set(e.toolCallId, e.confirmed)) : kt({
|
|
797
797
|
tool: "requestConfirm",
|
|
798
798
|
toolCallId: e.toolCallId,
|
|
799
799
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
800
800
|
});
|
|
801
|
-
},
|
|
801
|
+
}, sr = S(() => {
|
|
802
802
|
let e = /* @__PURE__ */ new Map();
|
|
803
803
|
for (let t of V.value) for (let n of t.parts) {
|
|
804
804
|
let { type: t, state: r, output: i } = n;
|
|
805
|
-
|
|
805
|
+
bn.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
|
|
806
806
|
}
|
|
807
807
|
return e;
|
|
808
|
-
}),
|
|
808
|
+
}), cr = S(() => {
|
|
809
809
|
let e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
810
810
|
if (t && n) {
|
|
811
811
|
let r = t.toLowerCase();
|
|
@@ -818,114 +818,114 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
818
818
|
continue;
|
|
819
819
|
}
|
|
820
820
|
let { type: e, state: r, output: i } = n;
|
|
821
|
-
|
|
821
|
+
bn.has(e) && r === "output-available" && i?.filename && t(u(i.filename, i.version), i.fileId);
|
|
822
822
|
}
|
|
823
823
|
return e;
|
|
824
824
|
}), $ = S(() => W.value ? void 0 : (e) => {
|
|
825
|
-
let t = (
|
|
825
|
+
let t = (cr.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
|
|
826
826
|
U.value = J(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), bt();
|
|
827
|
-
}),
|
|
828
|
-
|
|
829
|
-
},
|
|
827
|
+
}), lr = (e, t) => {
|
|
828
|
+
ir(e, t) || (U.value = t, bt());
|
|
829
|
+
}, ur = (e, t) => {
|
|
830
830
|
let n = t.error ? J("message.voiceLocationRefused") : J("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
831
|
-
|
|
831
|
+
ir(e, n) || kt({
|
|
832
832
|
tool: "requestGeolocation",
|
|
833
|
-
toolCallId:
|
|
833
|
+
toolCallId: er(e),
|
|
834
834
|
output: t
|
|
835
835
|
});
|
|
836
|
-
},
|
|
837
|
-
|
|
836
|
+
}, dr = (e, t) => {
|
|
837
|
+
ir(e, J("message.voiceConnectionDone")) || kt({
|
|
838
838
|
tool: "requestOAuthConnection",
|
|
839
|
-
toolCallId:
|
|
839
|
+
toolCallId: er(e),
|
|
840
840
|
output: {
|
|
841
841
|
connected: !0,
|
|
842
842
|
mcpServerId: t
|
|
843
843
|
}
|
|
844
844
|
});
|
|
845
|
-
},
|
|
846
|
-
|
|
845
|
+
}, fr = () => {
|
|
846
|
+
jn.value = !jn.value, Q.setMuted(jn.value);
|
|
847
847
|
};
|
|
848
848
|
ue(() => {
|
|
849
|
-
|
|
849
|
+
Mn = !0, zn();
|
|
850
850
|
});
|
|
851
|
-
let { pendingWakeup:
|
|
852
|
-
agentId: () =>
|
|
851
|
+
let { pendingWakeup: pr, isStopping: mr, stop: hr, spokenTurnStarted: gr, spokenTurnsWritten: _r, forgetSpokenTurns: vr } = ze({
|
|
852
|
+
agentId: () => N.agentId,
|
|
853
853
|
chatId: () => R.localChatId,
|
|
854
854
|
apiClient: () => K.value,
|
|
855
855
|
messages: () => V.value,
|
|
856
|
-
refreshMessages:
|
|
856
|
+
refreshMessages: It,
|
|
857
857
|
status: () => H.value.status
|
|
858
858
|
});
|
|
859
859
|
return (t, n) => {
|
|
860
860
|
let r = ne;
|
|
861
|
-
return
|
|
861
|
+
return A(), T("div", {
|
|
862
862
|
ref_key: "chatViewEl",
|
|
863
|
-
ref:
|
|
863
|
+
ref: en,
|
|
864
864
|
class: k(["pk-chatbot-view-chat", {
|
|
865
|
-
"pk-chatbot-view-chat--dragover":
|
|
866
|
-
"pk-chatbot-view-chat--empty":
|
|
867
|
-
"pk-chatbot-view-chat--with-preview":
|
|
865
|
+
"pk-chatbot-view-chat--dragover": P(An) && yt.value?.enabled,
|
|
866
|
+
"pk-chatbot-view-chat--empty": Qt.value,
|
|
867
|
+
"pk-chatbot-view-chat--with-preview": vn.value && !nn.value
|
|
868
868
|
}])
|
|
869
869
|
}, [
|
|
870
870
|
D(x, {
|
|
871
871
|
name: "pk-chatbot-view-chat-fade",
|
|
872
872
|
mode: "out-in"
|
|
873
873
|
}, {
|
|
874
|
-
default: L(() => [
|
|
874
|
+
default: L(() => [Qt.value ? (A(), C(ee, {
|
|
875
875
|
key: 0,
|
|
876
|
-
greeting:
|
|
877
|
-
logo:
|
|
878
|
-
name:
|
|
876
|
+
greeting: P($t),
|
|
877
|
+
logo: P(z)?.logo,
|
|
878
|
+
name: P(R).name
|
|
879
879
|
}, null, 8, [
|
|
880
880
|
"greeting",
|
|
881
881
|
"logo",
|
|
882
882
|
"name"
|
|
883
|
-
])) : (
|
|
883
|
+
])) : (A(), C(e, {
|
|
884
884
|
key: 1,
|
|
885
885
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
886
886
|
interactive: "",
|
|
887
|
-
messages:
|
|
888
|
-
"confirm-verdicts-on-call":
|
|
889
|
-
status:
|
|
890
|
-
error:
|
|
891
|
-
"main-color":
|
|
892
|
-
"text-color":
|
|
893
|
-
"revised-answers":
|
|
894
|
-
actions:
|
|
895
|
-
"message-feedbacks":
|
|
896
|
-
"feedback-message-id":
|
|
897
|
-
"feedback-loading":
|
|
898
|
-
"feedback-submitted":
|
|
899
|
-
"feedback-error":
|
|
900
|
-
"show-extended-steps":
|
|
901
|
-
"hide-reasoning":
|
|
887
|
+
messages: P(V),
|
|
888
|
+
"confirm-verdicts-on-call": rr.value,
|
|
889
|
+
status: P(H).status,
|
|
890
|
+
error: P(H).error,
|
|
891
|
+
"main-color": P(z)?.mainColor,
|
|
892
|
+
"text-color": P(z)?.textColor,
|
|
893
|
+
"revised-answers": P(De),
|
|
894
|
+
actions: P(Ee),
|
|
895
|
+
"message-feedbacks": P(Oe),
|
|
896
|
+
"feedback-message-id": P(ke)?.id,
|
|
897
|
+
"feedback-loading": P(Ae),
|
|
898
|
+
"feedback-submitted": P(Ne),
|
|
899
|
+
"feedback-error": P(Pe),
|
|
900
|
+
"show-extended-steps": P(z)?.showExtendedSteps,
|
|
901
|
+
"hide-reasoning": P(z)?.showReasoning === !1,
|
|
902
902
|
"awaiting-spoken-answer": Z.value,
|
|
903
|
-
"host-working":
|
|
904
|
-
"host-confirmation":
|
|
905
|
-
"is-dark":
|
|
903
|
+
"host-working": Wt.value,
|
|
904
|
+
"host-confirmation": P(qe),
|
|
905
|
+
"is-dark": P(We),
|
|
906
906
|
"show-scroll-to-bottom": a.modifier === "fullscreen",
|
|
907
|
-
onFeedbackSubmit: n[0] ||= (e) =>
|
|
907
|
+
onFeedbackSubmit: n[0] ||= (e) => P(Et)(e),
|
|
908
908
|
onFeedbackClose: n[1] ||= (e) => ke.value = void 0,
|
|
909
|
-
onRegenerate:
|
|
910
|
-
onAutoRetry:
|
|
911
|
-
onResetChat:
|
|
909
|
+
onRegenerate: P(St),
|
|
910
|
+
onAutoRetry: P(St),
|
|
911
|
+
onResetChat: P(Ot),
|
|
912
912
|
onShowInfo: n[2] ||= (e) => Se("show-info", e),
|
|
913
913
|
onRevise: n[3] ||= (e) => Se("revise", e),
|
|
914
|
-
onUpvote:
|
|
915
|
-
onDownvote:
|
|
916
|
-
onFeedback:
|
|
917
|
-
onApprovalRespond:
|
|
918
|
-
onConfirmRespond:
|
|
919
|
-
onHostConfirmRespond:
|
|
914
|
+
onUpvote: P(Ct),
|
|
915
|
+
onDownvote: P(wt),
|
|
916
|
+
onFeedback: P(Tt),
|
|
917
|
+
onApprovalRespond: P(At),
|
|
918
|
+
onConfirmRespond: or,
|
|
919
|
+
onHostConfirmRespond: P(zt)
|
|
920
920
|
}, {
|
|
921
|
-
"tool-showContactForm": L(({ part: e }) => [D(
|
|
921
|
+
"tool-showContactForm": L(({ part: e }) => [D(P(y), {
|
|
922
922
|
part: e,
|
|
923
|
-
readonly: !
|
|
924
|
-
submitted:
|
|
925
|
-
loading:
|
|
926
|
-
error:
|
|
927
|
-
"privacy-policy-notice":
|
|
928
|
-
onSubmit:
|
|
923
|
+
readonly: !P(Ve),
|
|
924
|
+
submitted: P(Ie),
|
|
925
|
+
loading: P(Le),
|
|
926
|
+
error: P(Re),
|
|
927
|
+
"privacy-policy-notice": P(z)?.privacyPolicyNotice,
|
|
928
|
+
onSubmit: P(Dt)
|
|
929
929
|
}, null, 8, [
|
|
930
930
|
"part",
|
|
931
931
|
"readonly",
|
|
@@ -935,20 +935,20 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
935
935
|
"privacy-policy-notice",
|
|
936
936
|
"onSubmit"
|
|
937
937
|
])]),
|
|
938
|
-
"tool-showSuggestedReply": L(({ part: e }) => [D(
|
|
938
|
+
"tool-showSuggestedReply": L(({ part: e }) => [D(P(ie), {
|
|
939
939
|
part: e,
|
|
940
|
-
onSelect: (t) =>
|
|
940
|
+
onSelect: (t) => lr(e, t)
|
|
941
941
|
}, null, 8, ["part", "onSelect"])]),
|
|
942
|
-
"tool-showSources": L(({ part: e }) => [D(
|
|
942
|
+
"tool-showSources": L(({ part: e }) => [D(P(ae), {
|
|
943
943
|
part: e,
|
|
944
|
-
"on-expand-context":
|
|
945
|
-
"on-download":
|
|
944
|
+
"on-expand-context": On,
|
|
945
|
+
"on-download": kn
|
|
946
946
|
}, null, 8, ["part"])]),
|
|
947
947
|
"tool-showForm": L(({ part: e }) => [D(x, { mode: "out-in" }, {
|
|
948
|
-
default: L(() => [D(
|
|
948
|
+
default: L(() => [D(P(g), {
|
|
949
949
|
part: e,
|
|
950
|
-
answered:
|
|
951
|
-
onSelect: (t) =>
|
|
950
|
+
answered: nr(e),
|
|
951
|
+
onSelect: (t) => ar("showForm", e, t)
|
|
952
952
|
}, null, 8, [
|
|
953
953
|
"part",
|
|
954
954
|
"answered",
|
|
@@ -957,11 +957,11 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
957
957
|
_: 2
|
|
958
958
|
}, 1024)]),
|
|
959
959
|
"tool-showMultipleChoice": L(({ part: e }) => [D(x, { mode: "out-in" }, {
|
|
960
|
-
default: L(() => [D(
|
|
960
|
+
default: L(() => [D(P(g), {
|
|
961
961
|
part: e,
|
|
962
962
|
"allow-custom-answer": "",
|
|
963
|
-
answered:
|
|
964
|
-
onSelect: (t) =>
|
|
963
|
+
answered: nr(e),
|
|
964
|
+
onSelect: (t) => ar("showMultipleChoice", e, t)
|
|
965
965
|
}, null, 8, [
|
|
966
966
|
"part",
|
|
967
967
|
"answered",
|
|
@@ -969,12 +969,12 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
969
969
|
])]),
|
|
970
970
|
_: 2
|
|
971
971
|
}, 1024)]),
|
|
972
|
-
"tool-requestOAuthConnection": L(({ part: e }) => [D(
|
|
972
|
+
"tool-requestOAuthConnection": L(({ part: e }) => [D(P(ce), {
|
|
973
973
|
part: e,
|
|
974
|
-
"backend-url":
|
|
975
|
-
"resolve-connection": (e) =>
|
|
976
|
-
"check-connection": (e) =>
|
|
977
|
-
onConnected: (t) =>
|
|
974
|
+
"backend-url": P(Ve),
|
|
975
|
+
"resolve-connection": (e) => P(K).getOAuthAuthorizeUrl(N.agentId, e),
|
|
976
|
+
"check-connection": (e) => P(K).getOAuthConnectionStatus(N.agentId, e),
|
|
977
|
+
onConnected: (t) => dr(e, t)
|
|
978
978
|
}, null, 8, [
|
|
979
979
|
"part",
|
|
980
980
|
"backend-url",
|
|
@@ -982,94 +982,94 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
982
982
|
"check-connection",
|
|
983
983
|
"onConnected"
|
|
984
984
|
])]),
|
|
985
|
-
"tool-requestGeolocation": L(({ part: e }) => [D(
|
|
985
|
+
"tool-requestGeolocation": L(({ part: e }) => [D(P(oe), {
|
|
986
986
|
part: e,
|
|
987
|
-
"call-live":
|
|
988
|
-
"reverse-geocode": (e, t) =>
|
|
989
|
-
onResult: (t) =>
|
|
987
|
+
"call-live": P(Q).isActive.value,
|
|
988
|
+
"reverse-geocode": (e, t) => P(K).reverseGeocode(e, t),
|
|
989
|
+
onResult: (t) => ur(e, t)
|
|
990
990
|
}, null, 8, [
|
|
991
991
|
"part",
|
|
992
992
|
"call-live",
|
|
993
993
|
"reverse-geocode",
|
|
994
994
|
"onResult"
|
|
995
995
|
])]),
|
|
996
|
-
"tool-showLocation": L(({ part: e }) => [D(
|
|
996
|
+
"tool-showLocation": L(({ part: e }) => [D(P(le), {
|
|
997
997
|
part: e,
|
|
998
|
-
"is-dark":
|
|
999
|
-
"main-color":
|
|
1000
|
-
"forward-geocode": (e, t) =>
|
|
998
|
+
"is-dark": P(We),
|
|
999
|
+
"main-color": P(z)?.mainColor,
|
|
1000
|
+
"forward-geocode": (e, t) => P(K).forwardGeocode(e, t)
|
|
1001
1001
|
}, null, 8, [
|
|
1002
1002
|
"part",
|
|
1003
1003
|
"is-dark",
|
|
1004
1004
|
"main-color",
|
|
1005
1005
|
"forward-geocode"
|
|
1006
1006
|
])]),
|
|
1007
|
-
"tool-showDiagram": L(({ part: e }) => [D(
|
|
1007
|
+
"tool-showDiagram": L(({ part: e }) => [D(P(de), {
|
|
1008
1008
|
part: e,
|
|
1009
|
-
"is-dark":
|
|
1009
|
+
"is-dark": P(We)
|
|
1010
1010
|
}, null, 8, ["part", "is-dark"])]),
|
|
1011
|
-
"tool-editSpreadsheet": L(({ part: e }) => [(
|
|
1012
|
-
key:
|
|
1011
|
+
"tool-editSpreadsheet": L(({ part: e }) => [(A(), C(P(fe), {
|
|
1012
|
+
key: P(p)(e),
|
|
1013
1013
|
part: e,
|
|
1014
1014
|
"file-url": q,
|
|
1015
|
-
preview:
|
|
1016
|
-
"latest-versions":
|
|
1015
|
+
preview: gn,
|
|
1016
|
+
"latest-versions": sr.value,
|
|
1017
1017
|
restore: $.value
|
|
1018
1018
|
}, null, 8, [
|
|
1019
1019
|
"part",
|
|
1020
1020
|
"latest-versions",
|
|
1021
1021
|
"restore"
|
|
1022
1022
|
]))]),
|
|
1023
|
-
"tool-editWordDocument": L(({ part: e }) => [(
|
|
1024
|
-
key:
|
|
1023
|
+
"tool-editWordDocument": L(({ part: e }) => [(A(), C(P(fe), {
|
|
1024
|
+
key: P(p)(e),
|
|
1025
1025
|
part: e,
|
|
1026
1026
|
"file-url": q,
|
|
1027
|
-
preview:
|
|
1028
|
-
"latest-versions":
|
|
1027
|
+
preview: gn,
|
|
1028
|
+
"latest-versions": sr.value,
|
|
1029
1029
|
restore: $.value
|
|
1030
1030
|
}, null, 8, [
|
|
1031
1031
|
"part",
|
|
1032
1032
|
"latest-versions",
|
|
1033
1033
|
"restore"
|
|
1034
1034
|
]))]),
|
|
1035
|
-
"tool-createSpreadsheet": L(({ part: e }) => [(
|
|
1036
|
-
key:
|
|
1035
|
+
"tool-createSpreadsheet": L(({ part: e }) => [(A(), C(P(fe), {
|
|
1036
|
+
key: P(p)(e),
|
|
1037
1037
|
part: e,
|
|
1038
1038
|
"file-url": q,
|
|
1039
|
-
preview:
|
|
1040
|
-
"latest-versions":
|
|
1039
|
+
preview: gn,
|
|
1040
|
+
"latest-versions": sr.value,
|
|
1041
1041
|
restore: $.value
|
|
1042
1042
|
}, null, 8, [
|
|
1043
1043
|
"part",
|
|
1044
1044
|
"latest-versions",
|
|
1045
1045
|
"restore"
|
|
1046
1046
|
]))]),
|
|
1047
|
-
"tool-createWordDocument": L(({ part: e }) => [(
|
|
1048
|
-
key:
|
|
1047
|
+
"tool-createWordDocument": L(({ part: e }) => [(A(), C(P(fe), {
|
|
1048
|
+
key: P(p)(e),
|
|
1049
1049
|
part: e,
|
|
1050
1050
|
"file-url": q,
|
|
1051
|
-
preview:
|
|
1052
|
-
"latest-versions":
|
|
1051
|
+
preview: gn,
|
|
1052
|
+
"latest-versions": sr.value,
|
|
1053
1053
|
restore: $.value
|
|
1054
1054
|
}, null, 8, [
|
|
1055
1055
|
"part",
|
|
1056
1056
|
"latest-versions",
|
|
1057
1057
|
"restore"
|
|
1058
1058
|
]))]),
|
|
1059
|
-
"tool-shareDocument": L(({ part: e }) => [(
|
|
1060
|
-
key:
|
|
1059
|
+
"tool-shareDocument": L(({ part: e }) => [(A(), C(P(pe), {
|
|
1060
|
+
key: P(p)(e),
|
|
1061
1061
|
part: e,
|
|
1062
|
-
"on-download":
|
|
1062
|
+
"on-download": kn
|
|
1063
1063
|
}, null, 8, ["part"]))]),
|
|
1064
1064
|
_: 1
|
|
1065
1065
|
}, 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(".")))]),
|
|
1066
1066
|
_: 1
|
|
1067
1067
|
}),
|
|
1068
|
-
|
|
1068
|
+
P(ut).length ? (A(), C(v, {
|
|
1069
1069
|
key: 0,
|
|
1070
|
-
messages:
|
|
1071
|
-
onEdit:
|
|
1072
|
-
onRemove:
|
|
1070
|
+
messages: P(ut),
|
|
1071
|
+
onEdit: P(Bt),
|
|
1072
|
+
onRemove: P(Vt)
|
|
1073
1073
|
}, null, 8, [
|
|
1074
1074
|
"messages",
|
|
1075
1075
|
"onEdit",
|
|
@@ -1077,13 +1077,13 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
1077
1077
|
])) : w("", !0),
|
|
1078
1078
|
E("div", Ye, [
|
|
1079
1079
|
D(x, { name: "pk-chatbot-view-chat-fade" }, {
|
|
1080
|
-
default: L(() => [
|
|
1080
|
+
default: L(() => [Qt.value ? (A(), C(we, {
|
|
1081
1081
|
key: 0,
|
|
1082
1082
|
class: "pk-chatbot-view-chat__aurora",
|
|
1083
1083
|
"source-selector": ".pk-chatbot-input__form",
|
|
1084
|
-
"main-color":
|
|
1085
|
-
tones:
|
|
1086
|
-
"second-color":
|
|
1084
|
+
"main-color": P(z)?.mainColor,
|
|
1085
|
+
tones: P(z)?.glowTones,
|
|
1086
|
+
"second-color": P(z)?.glowSecondColor
|
|
1087
1087
|
}, null, 8, [
|
|
1088
1088
|
"main-color",
|
|
1089
1089
|
"tones",
|
|
@@ -1091,100 +1091,78 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
1091
1091
|
])) : w("", !0)]),
|
|
1092
1092
|
_: 1
|
|
1093
1093
|
}),
|
|
1094
|
-
|
|
1094
|
+
P(pr) && !P(W) ? (A(), C(te, {
|
|
1095
1095
|
key: 0,
|
|
1096
|
-
pending:
|
|
1097
|
-
stopping:
|
|
1098
|
-
onStop:
|
|
1096
|
+
pending: P(pr),
|
|
1097
|
+
stopping: P(mr),
|
|
1098
|
+
onStop: P(hr)
|
|
1099
1099
|
}, null, 8, [
|
|
1100
1100
|
"pending",
|
|
1101
1101
|
"stopping",
|
|
1102
1102
|
"onStop"
|
|
1103
1103
|
])) : w("", !0),
|
|
1104
|
-
|
|
1104
|
+
P(W) ? (A(), T("div", Xe, M(P(J)("message.chatErrorConversationBlocked")), 1)) : Gn.value === "idle" ? (A(), C(_, {
|
|
1105
1105
|
key: 3,
|
|
1106
1106
|
ref_key: "inputEl",
|
|
1107
1107
|
ref: _t,
|
|
1108
|
-
modelValue:
|
|
1108
|
+
modelValue: P(U),
|
|
1109
1109
|
"onUpdate:modelValue": n[4] ||= (e) => se(U) ? U.value = e : null,
|
|
1110
|
-
"pending-attachments":
|
|
1110
|
+
"pending-attachments": P(G),
|
|
1111
1111
|
"onUpdate:pendingAttachments": n[5] ||= (e) => se(G) ? G.value = e : null,
|
|
1112
|
-
placeholder:
|
|
1113
|
-
"dismissable-notice":
|
|
1114
|
-
"page-notice":
|
|
1115
|
-
status:
|
|
1116
|
-
"max-message-length":
|
|
1112
|
+
placeholder: P(Be),
|
|
1113
|
+
"dismissable-notice": P(Xt) && P(H).messages.length <= 1 ? P(Xt) : void 0,
|
|
1114
|
+
"page-notice": qt.value,
|
|
1115
|
+
status: Gt.value,
|
|
1116
|
+
"max-message-length": P(z)?.maxMessageLength,
|
|
1117
1117
|
"file-upload": yt.value,
|
|
1118
|
-
"attachment-limit-reached":
|
|
1119
|
-
"attachment-notice":
|
|
1120
|
-
"voice-enabled":
|
|
1121
|
-
"queue-enabled":
|
|
1122
|
-
"answer-notices":
|
|
1123
|
-
"pointer-available":
|
|
1124
|
-
pointing:
|
|
1118
|
+
"attachment-limit-reached": P(He),
|
|
1119
|
+
"attachment-notice": Jt.value,
|
|
1120
|
+
"voice-enabled": Wn.value,
|
|
1121
|
+
"queue-enabled": P(lt),
|
|
1122
|
+
"answer-notices": Yt.value,
|
|
1123
|
+
"pointer-available": P(mt),
|
|
1124
|
+
pointing: P(ht),
|
|
1125
1125
|
pointer: vt.value,
|
|
1126
|
-
"automatic-confirmations":
|
|
1127
|
-
|
|
1126
|
+
"automatic-confirmations": P(ct) === "automatic",
|
|
1127
|
+
"editable-images": "",
|
|
1128
|
+
"retryable-attachments": "",
|
|
1129
|
+
onPoint: n[6] ||= (e) => P(R).pagePointerStart?.(),
|
|
1128
1130
|
onRemovePointer: n[7] ||= (e) => pt.value = void 0,
|
|
1129
|
-
onManualConfirmations: n[8] ||= (e) =>
|
|
1130
|
-
onStopGeneration:
|
|
1131
|
-
onSubmit:
|
|
1132
|
-
onFileSelect:
|
|
1133
|
-
onRemoveAttachment:
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1131
|
+
onManualConfirmations: n[8] ||= (e) => P(R).setConfirmationMode("manual"),
|
|
1132
|
+
onStopGeneration: P(xt),
|
|
1133
|
+
onSubmit: P(bt),
|
|
1134
|
+
onFileSelect: P(jt),
|
|
1135
|
+
onRemoveAttachment: P(Mt),
|
|
1136
|
+
onReplaceAttachment: P(Nt),
|
|
1137
|
+
onRetryAttachment: P(Pt),
|
|
1138
|
+
onDismissAttachmentNotice: P(Ft),
|
|
1139
|
+
onDismissPageNotice: P(Rt),
|
|
1140
|
+
onOpenAnswerNotice: P(Ht),
|
|
1141
|
+
onDismissAnswerNotice: P(Ut),
|
|
1142
|
+
onVoiceStart: Xn
|
|
1139
1143
|
}, re({ _: 2 }, [a.modifier === "fullscreen" ? {
|
|
1140
1144
|
name: "prepend",
|
|
1141
1145
|
fn: L(() => [E("span", Ze, [D(h, {
|
|
1142
1146
|
class: "pk-chatbot-view-chat__agent-chip-avatar",
|
|
1143
|
-
"img-src":
|
|
1144
|
-
name:
|
|
1145
|
-
}, null, 8, ["img-src", "name"]),
|
|
1147
|
+
"img-src": P(z)?.logo,
|
|
1148
|
+
name: P(R).name
|
|
1149
|
+
}, null, 8, ["img-src", "name"]), P(R).name ? (A(), T("strong", Qe, M(P(R).name), 1)) : w("", !0)])]),
|
|
1146
1150
|
key: "0"
|
|
1147
|
-
} : void 0]), 1032,
|
|
1148
|
-
"modelValue",
|
|
1149
|
-
"pending-attachments",
|
|
1150
|
-
"placeholder",
|
|
1151
|
-
"dismissable-notice",
|
|
1152
|
-
"page-notice",
|
|
1153
|
-
"status",
|
|
1154
|
-
"max-message-length",
|
|
1155
|
-
"file-upload",
|
|
1156
|
-
"attachment-limit-reached",
|
|
1157
|
-
"attachment-notice",
|
|
1158
|
-
"voice-enabled",
|
|
1159
|
-
"queue-enabled",
|
|
1160
|
-
"answer-notices",
|
|
1161
|
-
"pointer-available",
|
|
1162
|
-
"pointing",
|
|
1163
|
-
"pointer",
|
|
1164
|
-
"automatic-confirmations",
|
|
1165
|
-
"onStopGeneration",
|
|
1166
|
-
"onSubmit",
|
|
1167
|
-
"onFileSelect",
|
|
1168
|
-
"onRemoveAttachment",
|
|
1169
|
-
"onDismissAttachmentNotice",
|
|
1170
|
-
"onDismissPageNotice",
|
|
1171
|
-
"onOpenAnswerNotice",
|
|
1172
|
-
"onDismissAnswerNotice"
|
|
1173
|
-
])) : (j(), C(je, {
|
|
1151
|
+
} : 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(je, {
|
|
1174
1152
|
key: 2,
|
|
1175
|
-
state:
|
|
1176
|
-
sample:
|
|
1177
|
-
spectrum:
|
|
1178
|
-
"remaining-seconds":
|
|
1179
|
-
muted:
|
|
1180
|
-
error:
|
|
1181
|
-
"raw-error":
|
|
1182
|
-
live:
|
|
1153
|
+
state: Gn.value,
|
|
1154
|
+
sample: Jn,
|
|
1155
|
+
spectrum: Yn,
|
|
1156
|
+
"remaining-seconds": P(Q).remainingSeconds.value,
|
|
1157
|
+
muted: jn.value,
|
|
1158
|
+
error: Kn.value,
|
|
1159
|
+
"raw-error": P(Q).error.value,
|
|
1160
|
+
live: P(Q).isActive.value,
|
|
1183
1161
|
class: "pk-chatbot-view-chat__voice",
|
|
1184
|
-
onToggleMute:
|
|
1185
|
-
onHangUp:
|
|
1186
|
-
onRetry:
|
|
1187
|
-
onDismiss:
|
|
1162
|
+
onToggleMute: fr,
|
|
1163
|
+
onHangUp: Zn,
|
|
1164
|
+
onRetry: $n,
|
|
1165
|
+
onDismiss: Qn
|
|
1188
1166
|
}, null, 8, [
|
|
1189
1167
|
"state",
|
|
1190
1168
|
"remaining-seconds",
|
|
@@ -1195,17 +1173,17 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
1195
1173
|
]))
|
|
1196
1174
|
]),
|
|
1197
1175
|
D(x, null, {
|
|
1198
|
-
default: L(() => [
|
|
1176
|
+
default: L(() => [P(An) && yt.value?.enabled ? (A(), T("div", $e, [D(r, {
|
|
1199
1177
|
name: "ri:upload-cloud-2-line",
|
|
1200
1178
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
1201
|
-
}), E("span", null,
|
|
1179
|
+
}), E("span", null, M(P(J)("action.dropFile")), 1)])) : w("", !0)]),
|
|
1202
1180
|
_: 1
|
|
1203
1181
|
}),
|
|
1204
|
-
|
|
1182
|
+
vn.value ? (A(), C(b, {
|
|
1205
1183
|
key: 1,
|
|
1206
|
-
to:
|
|
1207
|
-
disabled: !
|
|
1208
|
-
}, [E("aside", { class: k(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked":
|
|
1184
|
+
to: rn.value,
|
|
1185
|
+
disabled: !nn.value
|
|
1186
|
+
}, [E("aside", { class: k(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": nn.value }]) }, [P(Y) ? (A(), C(P(he), {
|
|
1209
1187
|
key: 0,
|
|
1210
1188
|
mode: X.value.mode,
|
|
1211
1189
|
"onUpdate:mode": n[9] ||= (e) => X.value.mode = e,
|
|
@@ -1215,25 +1193,25 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
1215
1193
|
"onUpdate:zoom": n[11] ||= (e) => X.value.zoom = e,
|
|
1216
1194
|
fit: X.value.fit,
|
|
1217
1195
|
"onUpdate:fit": n[12] ||= (e) => X.value.fit = e,
|
|
1218
|
-
kind:
|
|
1219
|
-
filename:
|
|
1220
|
-
version:
|
|
1221
|
-
versions:
|
|
1222
|
-
"download-url": q(
|
|
1223
|
-
preview:
|
|
1224
|
-
changes:
|
|
1225
|
-
loading:
|
|
1226
|
-
error:
|
|
1227
|
-
restorable:
|
|
1196
|
+
kind: P(Y).kind,
|
|
1197
|
+
filename: P(Y).filename,
|
|
1198
|
+
version: P(Y).version,
|
|
1199
|
+
versions: Sn.value,
|
|
1200
|
+
"download-url": q(P(Y).storedFileName),
|
|
1201
|
+
preview: P(ln),
|
|
1202
|
+
changes: P(fn),
|
|
1203
|
+
loading: P(un),
|
|
1204
|
+
error: P(dn),
|
|
1205
|
+
restorable: wn.value,
|
|
1228
1206
|
resize: "expand",
|
|
1229
|
-
"file-id":
|
|
1230
|
-
"stored-file-name":
|
|
1231
|
-
"selection-actions":
|
|
1232
|
-
onVersion:
|
|
1233
|
-
onRestore:
|
|
1234
|
-
onResize: n[13] ||= (e) =>
|
|
1235
|
-
onSelectionSend:
|
|
1236
|
-
onClose:
|
|
1207
|
+
"file-id": P(Y).fileId,
|
|
1208
|
+
"stored-file-name": P(Y).storedFileName,
|
|
1209
|
+
"selection-actions": En.value,
|
|
1210
|
+
onVersion: Cn,
|
|
1211
|
+
onRestore: Tn,
|
|
1212
|
+
onResize: n[13] ||= (e) => _n.value = !0,
|
|
1213
|
+
onSelectionSend: Dn,
|
|
1214
|
+
onClose: yn
|
|
1237
1215
|
}, null, 8, [
|
|
1238
1216
|
"mode",
|
|
1239
1217
|
"sheet",
|
|
@@ -1253,7 +1231,7 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
1253
1231
|
"stored-file-name",
|
|
1254
1232
|
"selection-actions"
|
|
1255
1233
|
])) : w("", !0)], 2)], 8, ["to", "disabled"])) : w("", !0),
|
|
1256
|
-
|
|
1234
|
+
P(Y) && !vn.value ? (A(), C(P(ge), {
|
|
1257
1235
|
key: 2,
|
|
1258
1236
|
mode: X.value.mode,
|
|
1259
1237
|
"onUpdate:mode": n[14] ||= (e) => X.value.mode = e,
|
|
@@ -1263,22 +1241,22 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
1263
1241
|
"onUpdate:zoom": n[16] ||= (e) => X.value.zoom = e,
|
|
1264
1242
|
fit: X.value.fit,
|
|
1265
1243
|
"onUpdate:fit": n[17] ||= (e) => X.value.fit = e,
|
|
1266
|
-
target:
|
|
1267
|
-
versions:
|
|
1268
|
-
"download-url": q(
|
|
1269
|
-
preview:
|
|
1270
|
-
changes:
|
|
1271
|
-
loading:
|
|
1272
|
-
error:
|
|
1273
|
-
restorable:
|
|
1274
|
-
resize:
|
|
1275
|
-
fullscreen:
|
|
1276
|
-
"selection-actions":
|
|
1277
|
-
onVersion:
|
|
1278
|
-
onRestore:
|
|
1279
|
-
onResize: n[18] ||= (e) =>
|
|
1280
|
-
onSelectionSend:
|
|
1281
|
-
onClose:
|
|
1244
|
+
target: P(Y),
|
|
1245
|
+
versions: Sn.value,
|
|
1246
|
+
"download-url": q(P(Y).storedFileName),
|
|
1247
|
+
preview: P(ln),
|
|
1248
|
+
changes: P(fn),
|
|
1249
|
+
loading: P(un),
|
|
1250
|
+
error: P(dn),
|
|
1251
|
+
restorable: wn.value,
|
|
1252
|
+
resize: sn.value ? "shrink" : void 0,
|
|
1253
|
+
fullscreen: cn.value,
|
|
1254
|
+
"selection-actions": En.value,
|
|
1255
|
+
onVersion: Cn,
|
|
1256
|
+
onRestore: Tn,
|
|
1257
|
+
onResize: n[18] ||= (e) => _n.value = !1,
|
|
1258
|
+
onSelectionSend: Dn,
|
|
1259
|
+
onClose: yn
|
|
1282
1260
|
}, null, 8, [
|
|
1283
1261
|
"mode",
|
|
1284
1262
|
"sheet",
|
|
@@ -1302,4 +1280,4 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
|
1302
1280
|
});
|
|
1303
1281
|
export { je as a, Pe as i, Je as n, Ee as o, Ke as r, we as s, at as t };
|
|
1304
1282
|
|
|
1305
|
-
//# sourceMappingURL=PkChatbotViewChat-
|
|
1283
|
+
//# sourceMappingURL=PkChatbotViewChat-DawyiUjq.js.map
|