@8wave/ai-elements 0.122.0 → 0.123.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/PkFilePreview-eKok4xdc.js +211 -0
- package/dist/_chunks/PkFilePreview-eKok4xdc.js.map +1 -0
- package/dist/_chunks/PkStreamingMarkdown-Dc0R0GHe.js.map +1 -1
- package/dist/_chunks/PkToolChatFile-3fYhbFSi.js +222 -0
- package/dist/_chunks/PkToolChatFile-3fYhbFSi.js.map +1 -0
- package/dist/ai-elements.es.js +99 -27
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-CxbPkjhQ.js → PkChatbot-D3KGDerg.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-CxbPkjhQ.js.map → PkChatbot-D3KGDerg.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-gcim5jsW.js → PkChatbotViewChat-BNaSv86u.js} +373 -329
- package/dist-vue/_chunks/PkChatbotViewChat-BNaSv86u.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-ZdDraX9c.js → PkChatbotViewConversations-C1vl8z4o.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-ZdDraX9c.js.map → PkChatbotViewConversations-C1vl8z4o.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-BqZ3CJm5.js → PkChatbotViewFiles-DiKHsdPE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-BqZ3CJm5.js.map → PkChatbotViewFiles-DiKHsdPE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-CANtq-SY.js → PkChatbotViewProfile-CuQ0MAX7.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-CANtq-SY.js.map → PkChatbotViewProfile-CuQ0MAX7.js.map} +1 -1
- package/dist-vue/_chunks/PkFilePreview-Cx6jmJCD.js +200 -0
- package/dist-vue/_chunks/PkFilePreview-Cx6jmJCD.js.map +1 -0
- package/dist-vue/_chunks/PkToolChatFile-BJsDSu1Q.js +220 -0
- package/dist-vue/_chunks/PkToolChatFile-BJsDSu1Q.js.map +1 -0
- package/dist-vue/_chunks/{createChatbotApiClient-Cu1nDV3E.js → createChatbotApiClient-DAh91HyT.js} +2 -2
- package/dist-vue/_chunks/{createChatbotApiClient-Cu1nDV3E.js.map → createChatbotApiClient-DAh91HyT.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-CPl6KHny.js → useChatbotStore-D1U24qc8.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-CPl6KHny.js.map → useChatbotStore-D1U24qc8.js.map} +1 -1
- package/dist-vue/_chunks/utils-DaAIWTtt.js.map +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +30 -2
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +6 -6
- package/dist-vue/locales.js +32 -4
- package/dist-vue/packages/components/src/chat/PkFilePreview.d.ts +28 -0
- package/dist-vue/packages/components/src/chat/PkSpreadsheetPreview.d.ts +15 -0
- package/dist-vue/packages/components/src/chat/PkToolChatFile.d.ts +11 -1
- package/dist-vue/packages/components/src/chat/PkWordPreview.d.ts +5 -18
- package/dist-vue/packages/components/src/chat/utils.d.ts +2 -1
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +3 -3
- package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +137 -0
- package/dist-vue/packages/models/src/schema/WordPreview.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkToolChatFile-CScP_O0D.js +0 -193
- package/dist/_chunks/PkToolChatFile-CScP_O0D.js.map +0 -1
- package/dist/_chunks/PkWordPreview-COVeYzqX.js +0 -120
- package/dist/_chunks/PkWordPreview-COVeYzqX.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-gcim5jsW.js.map +0 -1
- package/dist-vue/_chunks/PkToolChatFile-iOyeQBp6.js +0 -191
- package/dist-vue/_chunks/PkToolChatFile-iOyeQBp6.js.map +0 -1
- package/dist-vue/_chunks/PkWordPreview-azW8wfJe.js +0 -115
- package/dist-vue/_chunks/PkWordPreview-azW8wfJe.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./PkChatbotMessages-qkodgdDE.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-D1U24qc8.js";
|
|
4
4
|
import { n as a } from "./src-B-ZKEhTU.js";
|
|
5
5
|
import { c as o, h as s, n as c } from "./utils-DaAIWTtt.js";
|
|
6
6
|
import { t as l } from "./useLocalizedString-Dmn92nix.js";
|
|
@@ -10,30 +10,30 @@ import { t as p } from "./PkChatbotQueuedMessages-CIJFAvE2.js";
|
|
|
10
10
|
import { t as ee } from "./PkChatbotEmptyState-B76oD7fB.js";
|
|
11
11
|
import { t as m } from "./PkChatbotWakeupBar-DEP-d-Fp.js";
|
|
12
12
|
import { VvDialog as h, VvIcon as g } from "@volverjs/ui-vue/components";
|
|
13
|
-
import { Fragment as _, Transition as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as te, createTextVNode as ne, createVNode as w, defineAsyncComponent as T, defineComponent as E, isRef as re, nextTick as ie, normalizeClass as D, onBeforeUnmount as
|
|
14
|
-
import { useI18n as
|
|
15
|
-
import { useDropZone as
|
|
16
|
-
import { storeToRefs as
|
|
13
|
+
import { Fragment as _, Transition as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as te, createTextVNode as ne, createVNode as w, defineAsyncComponent as T, defineComponent as E, isRef as re, nextTick as ie, normalizeClass as D, onBeforeUnmount as ae, onMounted as oe, onScopeDispose as se, onUnmounted as ce, openBlock as O, provide as le, ref as k, renderList as ue, shallowRef as A, toDisplayString as j, toValue as de, unref as M, useTemplateRef as fe, watch as N, withCtx as P } from "vue";
|
|
14
|
+
import { useI18n as pe } from "vue-i18n";
|
|
15
|
+
import { useDropZone as me, useElementSize as he } from "@vueuse/core";
|
|
16
|
+
import { storeToRefs as ge } from "pinia";
|
|
17
17
|
// ../../packages/composable/src/chatbot/useGreeting.ts
|
|
18
|
-
function ge(e, t) {
|
|
19
|
-
let { locale: n, t: r, te: i } = fe({ useScope: "global" });
|
|
20
|
-
return y(() => _e(ue(e)?.greeting?.[0]?.[n.value] ?? "", ue(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
|
|
21
|
-
}
|
|
22
18
|
function _e(e, t) {
|
|
19
|
+
let { locale: n, t: r, te: i } = pe({ useScope: "global" });
|
|
20
|
+
return y(() => ve(de(e)?.greeting?.[0]?.[n.value] ?? "", de(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
|
|
21
|
+
}
|
|
22
|
+
function ve(e, t) {
|
|
23
23
|
return (t ? e.replace(/\{name\}/g, t) : e.replace(/[,\s]*\{name\}[!?]?/g, "")).trim();
|
|
24
24
|
}
|
|
25
25
|
// ../../packages/components/src/chat/PkAuroraCanvas.vue?vue&type=script&setup=true&lang.ts
|
|
26
|
-
var
|
|
26
|
+
var F = {
|
|
27
27
|
class: "pk-aurora",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
},
|
|
29
|
+
}, ye = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "pk-aurora__fallback"
|
|
32
|
-
},
|
|
32
|
+
}, I = "\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}", L = "\nprecision mediump float;\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform vec3 u_color;\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)\n * u_spread\n * breath\n * 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 // Premultiplied alpha (default canvas compositing)\n gl_FragColor = vec4(u_color * alpha, alpha);\n}", be = /* @__PURE__ */ E({
|
|
33
33
|
__name: "PkAuroraCanvas",
|
|
34
34
|
props: { sourceSelector: {} },
|
|
35
35
|
setup(e) {
|
|
36
|
-
let t = e, n =
|
|
36
|
+
let t = e, n = fe("canvasEl"), r = k(!1), i = null, a = 0, o = null, s = null, c = null, l = null, u = null, d = null, f = performance.now(), p = (e, t) => {
|
|
37
37
|
if (!i) return null;
|
|
38
38
|
let n = i.createShader(e);
|
|
39
39
|
return !n || (i.shaderSource(n, t), i.compileShader(n), !i.getShaderParameter(n, i.COMPILE_STATUS)) ? null : n;
|
|
@@ -62,7 +62,7 @@ var I = {
|
|
|
62
62
|
}, _ = () => {
|
|
63
63
|
g(), a = requestAnimationFrame(_);
|
|
64
64
|
};
|
|
65
|
-
return
|
|
65
|
+
return oe(() => {
|
|
66
66
|
let e = n.value;
|
|
67
67
|
i = e?.getContext("webgl", { alpha: !0 }) ?? null;
|
|
68
68
|
let t = ee();
|
|
@@ -70,7 +70,7 @@ var I = {
|
|
|
70
70
|
r.value = !0;
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
let a = p(i.VERTEX_SHADER,
|
|
73
|
+
let a = p(i.VERTEX_SHADER, I), f = p(i.FRAGMENT_SHADER, L), v = i.createProgram();
|
|
74
74
|
if (!a || !f || !v || (i.attachShader(v, a), i.attachShader(v, f), i.linkProgram(v), !i.getProgramParameter(v, i.LINK_STATUS))) {
|
|
75
75
|
r.value = !0;
|
|
76
76
|
return;
|
|
@@ -89,21 +89,21 @@ var I = {
|
|
|
89
89
|
]), i.STATIC_DRAW);
|
|
90
90
|
let b = i.getAttribLocation(v, "a_position");
|
|
91
91
|
i.enableVertexAttribArray(b), i.vertexAttribPointer(b, 2, i.FLOAT, !1, 0, 0), s = i.getUniformLocation(v, "u_time"), c = i.getUniformLocation(v, "u_resolution"), l = i.getUniformLocation(v, "u_center"), u = i.getUniformLocation(v, "u_half"), d = i.getUniformLocation(v, "u_spread"), i.uniform3f(i.getUniformLocation(v, "u_color"), ...t), o = new ResizeObserver(m), o.observe(e), m(), ie(m), h() ? g(10) : _();
|
|
92
|
-
}),
|
|
92
|
+
}), ae(() => {
|
|
93
93
|
cancelAnimationFrame(a), o?.disconnect();
|
|
94
|
-
}),
|
|
94
|
+
}), ce(() => {
|
|
95
95
|
let e = i;
|
|
96
96
|
i = null, setTimeout(() => {
|
|
97
97
|
e?.getExtension("WEBGL_lose_context")?.loseContext();
|
|
98
98
|
}, 150);
|
|
99
|
-
}), (e, t) => (
|
|
99
|
+
}), (e, t) => (O(), S("div", F, [r.value ? (O(), S("div", ye)) : (O(), S("canvas", {
|
|
100
100
|
key: 0,
|
|
101
101
|
ref_key: "canvasEl",
|
|
102
102
|
ref: n,
|
|
103
103
|
class: "pk-aurora__canvas"
|
|
104
104
|
}, null, 512))]));
|
|
105
105
|
}
|
|
106
|
-
}),
|
|
106
|
+
}), R = .18, xe = .35, Se = /* @__PURE__ */ E({
|
|
107
107
|
__name: "PkVoiceOrb",
|
|
108
108
|
props: {
|
|
109
109
|
sample: {},
|
|
@@ -115,20 +115,20 @@ var I = {
|
|
|
115
115
|
bars: { default: 5 }
|
|
116
116
|
},
|
|
117
117
|
setup(e) {
|
|
118
|
-
let t = e, n =
|
|
118
|
+
let t = e, n = fe("barsEl"), r = Array.from({ length: t.bars }, () => R), i, a = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === !0, o = () => {
|
|
119
119
|
let e = Math.min(1, Math.max(0, t.sample())), n = t.spectrum?.(), i = r.length;
|
|
120
120
|
if (!n?.length) {
|
|
121
121
|
let t = Date.now() / 260;
|
|
122
122
|
return Array.from({ length: i }, (n, r) => {
|
|
123
123
|
let i = .65 + .35 * Math.sin(t + r * .9);
|
|
124
|
-
return
|
|
124
|
+
return R + e * 2.4 * i;
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
let a = Math.max(1, Math.floor(n.length / 2)), o = Math.max(1, Math.floor(a / i));
|
|
128
128
|
return Array.from({ length: i }, (e, t) => {
|
|
129
129
|
let r = 0;
|
|
130
130
|
for (let e = 0; e < o; e += 1) r += n[t * o + e] ?? 0;
|
|
131
|
-
return
|
|
131
|
+
return R + r / o / 255 * 2.2;
|
|
132
132
|
});
|
|
133
133
|
}, s = () => {
|
|
134
134
|
let e = n.value?.children;
|
|
@@ -137,32 +137,32 @@ var I = {
|
|
|
137
137
|
});
|
|
138
138
|
}, c = () => {
|
|
139
139
|
let e = o();
|
|
140
|
-
r = r.map((t, n) => t + (Math.min(1, Math.max(
|
|
140
|
+
r = r.map((t, n) => t + (Math.min(1, Math.max(R, e[n] ?? R)) - t) * xe), s(), i = requestAnimationFrame(c);
|
|
141
141
|
}, l = () => {
|
|
142
142
|
i !== void 0 && (cancelAnimationFrame(i), i = void 0);
|
|
143
143
|
};
|
|
144
|
-
return
|
|
145
|
-
e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() =>
|
|
146
|
-
}, { immediate: !0 }),
|
|
144
|
+
return N(() => t.state, async (e) => {
|
|
145
|
+
e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => R * 1.6), await ie(), s()) : i === void 0 && (i = requestAnimationFrame(c));
|
|
146
|
+
}, { immediate: !0 }), ae(l), (t, r) => (O(), S("div", {
|
|
147
147
|
class: D(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
|
|
148
148
|
"aria-hidden": "true"
|
|
149
149
|
}, [C("div", {
|
|
150
150
|
ref_key: "barsEl",
|
|
151
151
|
ref: n,
|
|
152
152
|
class: "pk-voice-orb__bars"
|
|
153
|
-
}, [(
|
|
153
|
+
}, [(O(!0), S(_, null, ue(e.bars, (e) => (O(), S("span", {
|
|
154
154
|
key: e,
|
|
155
155
|
class: "pk-voice-orb__bar"
|
|
156
156
|
}))), 128))], 512)], 2));
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
158
|
+
}), Ce = {
|
|
159
159
|
key: 0,
|
|
160
160
|
class: "pk-voice-session__badge",
|
|
161
161
|
"aria-hidden": "true"
|
|
162
|
-
},
|
|
162
|
+
}, we = {
|
|
163
163
|
class: "pk-voice-session__status",
|
|
164
164
|
role: "status"
|
|
165
|
-
},
|
|
165
|
+
}, z = {
|
|
166
166
|
key: 0,
|
|
167
167
|
class: "pk-voice-session__live-dot",
|
|
168
168
|
"aria-hidden": "true"
|
|
@@ -185,7 +185,7 @@ var I = {
|
|
|
185
185
|
"dismiss"
|
|
186
186
|
],
|
|
187
187
|
setup(e, { emit: t }) {
|
|
188
|
-
let n = e, r = t, { t: i } =
|
|
188
|
+
let n = e, r = t, { t: i } = pe({ useScope: "global" }), a = y(() => 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 = y(() => {
|
|
189
189
|
if (n.remainingSeconds === void 0) return;
|
|
190
190
|
let e = Math.floor(n.remainingSeconds / 60), t = n.remainingSeconds % 60;
|
|
191
191
|
return `${e}:${String(t).padStart(2, "0")}`;
|
|
@@ -194,8 +194,8 @@ var I = {
|
|
|
194
194
|
});
|
|
195
195
|
return (t, n) => {
|
|
196
196
|
let u = g;
|
|
197
|
-
return
|
|
198
|
-
e.error ? (
|
|
197
|
+
return O(), S("div", { class: D(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
|
|
198
|
+
e.error ? (O(), S("span", Ce, [w(u, { name: "ri:error-warning-line" })])) : (O(), b(Se, {
|
|
199
199
|
key: 1,
|
|
200
200
|
state: e.state,
|
|
201
201
|
sample: e.sample,
|
|
@@ -205,37 +205,37 @@ var I = {
|
|
|
205
205
|
"sample",
|
|
206
206
|
"spectrum"
|
|
207
207
|
])),
|
|
208
|
-
C("div",
|
|
208
|
+
C("div", we, [C("span", { class: D(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (O(), S("span", z)) : x("", !0), ne(" " + j(a.value), 1)], 2), e.error ? (O(), S("p", {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "pk-voice-session__detail",
|
|
211
211
|
title: e.rawError ?? e.error
|
|
212
|
-
},
|
|
213
|
-
o.value ? (
|
|
212
|
+
}, j(e.error), 9, B)) : x("", !0)]),
|
|
213
|
+
o.value ? (O(), S("span", {
|
|
214
214
|
key: 2,
|
|
215
215
|
class: D(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
|
|
216
|
-
title:
|
|
216
|
+
title: M(i)("hint.voiceRemaining"),
|
|
217
217
|
"aria-hidden": "true"
|
|
218
|
-
},
|
|
219
|
-
C("div", Ee, [e.error ? (
|
|
218
|
+
}, j(o.value), 11, Te)) : x("", !0),
|
|
219
|
+
C("div", Ee, [e.error ? (O(), S(_, { key: 0 }, [w(d, {
|
|
220
220
|
icon: "ri:refresh-line",
|
|
221
|
-
label:
|
|
221
|
+
label: M(i)("action.retry"),
|
|
222
222
|
onClick: n[0] ||= (e) => r("retry")
|
|
223
|
-
}, null, 8, ["label"]), e.live ? (
|
|
223
|
+
}, null, 8, ["label"]), e.live ? (O(), b(d, {
|
|
224
224
|
key: 0,
|
|
225
225
|
icon: "ri:stop-circle-line",
|
|
226
226
|
modifiers: "danger",
|
|
227
|
-
title:
|
|
228
|
-
"aria-label":
|
|
227
|
+
title: M(i)("action.hangUp"),
|
|
228
|
+
"aria-label": M(i)("action.hangUp"),
|
|
229
229
|
onClick: n[1] ||= (e) => r("hang-up")
|
|
230
|
-
}, null, 8, ["title", "aria-label"])) : (
|
|
230
|
+
}, null, 8, ["title", "aria-label"])) : (O(), b(d, {
|
|
231
231
|
key: 1,
|
|
232
232
|
icon: "ri:close-line",
|
|
233
|
-
label:
|
|
233
|
+
label: M(i)("action.close"),
|
|
234
234
|
onClick: n[2] ||= (e) => r("dismiss")
|
|
235
|
-
}, null, 8, ["label"]))], 64)) : (
|
|
235
|
+
}, null, 8, ["label"]))], 64)) : (O(), S(_, { key: 1 }, [w(d, {
|
|
236
236
|
icon: e.muted ? "ri:mic-off-line" : "ri:mic-line",
|
|
237
|
-
title: e.muted ?
|
|
238
|
-
"aria-label": e.muted ?
|
|
237
|
+
title: e.muted ? M(i)("action.unmute") : M(i)("action.mute"),
|
|
238
|
+
"aria-label": e.muted ? M(i)("action.unmute") : M(i)("action.mute"),
|
|
239
239
|
"aria-pressed": e.muted,
|
|
240
240
|
onClick: n[3] ||= (e) => r("toggle-mute")
|
|
241
241
|
}, null, 8, [
|
|
@@ -246,15 +246,15 @@ var I = {
|
|
|
246
246
|
]), w(d, {
|
|
247
247
|
icon: "ri:stop-circle-line",
|
|
248
248
|
modifiers: "danger",
|
|
249
|
-
title:
|
|
250
|
-
"aria-label":
|
|
249
|
+
title: M(i)("action.hangUp"),
|
|
250
|
+
"aria-label": M(i)("action.hangUp"),
|
|
251
251
|
onClick: n[4] ||= (e) => r("hang-up")
|
|
252
252
|
}, null, 8, ["title", "aria-label"])], 64))])
|
|
253
253
|
], 2);
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
256
|
}), Oe = (e) => {
|
|
257
|
-
let t =
|
|
257
|
+
let t = A(), n = k("disconnected"), r = k("listening"), i = k(), o = k([]), s = k(), c = k(), l, u, d = 0, f = !1, p = () => {
|
|
258
258
|
u &&= (clearInterval(u), void 0), s.value = void 0;
|
|
259
259
|
}, ee = (e) => {
|
|
260
260
|
let t = Date.now() + e * 1e3, n = () => {
|
|
@@ -356,7 +356,7 @@ var I = {
|
|
|
356
356
|
let r = t.value;
|
|
357
357
|
t.value = void 0, r?.endSession().catch(() => void 0), n.value = "disconnected";
|
|
358
358
|
};
|
|
359
|
-
return typeof window < "u" && window.addEventListener("pagehide", C),
|
|
359
|
+
return typeof window < "u" && window.addEventListener("pagehide", C), se(() => {
|
|
360
360
|
f = !0, typeof window < "u" && window.removeEventListener("pagehide", C), h();
|
|
361
361
|
}), {
|
|
362
362
|
status: n,
|
|
@@ -383,7 +383,7 @@ var I = {
|
|
|
383
383
|
1e4
|
|
384
384
|
], je = 12e4, Me = 3e4;
|
|
385
385
|
function Ne(e) {
|
|
386
|
-
let t =
|
|
386
|
+
let t = k(null), n = k(!1), r, i = !1, a = () => {
|
|
387
387
|
clearTimeout(r), r = void 0;
|
|
388
388
|
}, o = (e, t) => {
|
|
389
389
|
a(), i || (r = setTimeout(() => void t(), e));
|
|
@@ -430,11 +430,11 @@ function Ne(e) {
|
|
|
430
430
|
f = void 0;
|
|
431
431
|
}
|
|
432
432
|
let h = y(() => e.messages().some((e) => e.role === "user"));
|
|
433
|
-
|
|
433
|
+
N([e.chatId, h], ([, t]) => {
|
|
434
434
|
d();
|
|
435
435
|
let n = e.status(), r = n === "submitted" || n === "streaming" || f === e.chatId();
|
|
436
436
|
t && !r && c();
|
|
437
|
-
}, { immediate: !0 }),
|
|
437
|
+
}, { immediate: !0 }), N(e.status, (e, t) => {
|
|
438
438
|
e === "ready" && t !== "ready" && h.value && c();
|
|
439
439
|
});
|
|
440
440
|
let g;
|
|
@@ -442,9 +442,9 @@ function Ne(e) {
|
|
|
442
442
|
t.value && document.visibilityState === "visible" && e.apiClient().markChatWakeupPresence(e.agentId(), e.chatId()).catch(() => void 0);
|
|
443
443
|
}
|
|
444
444
|
let v = () => _();
|
|
445
|
-
return document.addEventListener("visibilitychange", v),
|
|
445
|
+
return document.addEventListener("visibilitychange", v), N(() => t.value?.wakeId, (e) => {
|
|
446
446
|
clearInterval(g), g = void 0, e && !i && (_(), g = setInterval(_, Me));
|
|
447
|
-
}),
|
|
447
|
+
}), ae(() => {
|
|
448
448
|
i = !0, a(), clearInterval(g), document.removeEventListener("visibilitychange", v);
|
|
449
449
|
}), {
|
|
450
450
|
pendingWakeup: t,
|
|
@@ -479,244 +479,258 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
479
479
|
},
|
|
480
480
|
emits: ["show-info", "revise"],
|
|
481
481
|
setup(a, { emit: d }) {
|
|
482
|
-
let _ = T(() => import("./PkToolShowForm-Fv4iV0VY.js").then((e) => e.n)), ne = T(() => import("./PkToolShowContactForm-xHBTmITM.js").then((e) => e.n)), E = T(() => import("./PkToolShowSuggestedReply-Bnhgsh4l.js").then((e) => e.n)), ie = T(() => import("./PkToolShowSources-C4rKpypf.js").then((e) => e.n)),
|
|
483
|
-
|
|
484
|
-
let
|
|
485
|
-
|
|
486
|
-
|
|
482
|
+
let _ = T(() => import("./PkToolShowForm-Fv4iV0VY.js").then((e) => e.n)), ne = T(() => import("./PkToolShowContactForm-xHBTmITM.js").then((e) => e.n)), E = T(() => import("./PkToolShowSuggestedReply-Bnhgsh4l.js").then((e) => e.n)), ie = T(() => import("./PkToolShowSources-C4rKpypf.js").then((e) => e.n)), oe = T(() => import("./PkToolRequestGeolocation-e8vyxTI_.js")), se = T(() => import("./PkToolRequestOAuthConnection-3zLvNF_c.js")), ce = T(() => import("./PkToolShowLocation-Cq0IXye1.js").then((e) => e.n)), ue = T(() => import("./PkToolShowDiagram-DrJs92dg.js")), A = T(() => import("./PkToolChatFile-BJsDSu1Q.js")), de = T(() => import("./PkToolShareDocument-CRghPfep.js").then((e) => e.n)), ve = T(() => import("./PkFilePreview-Cx6jmJCD.js")), F = a, ye = d, I = r(F.agentId), { agentInterface: L, agentFileUpload: R, agentType: xe, agentVoice: Se, actions: Ce, revisedAnswers: we, messages: z, chat: B, messageFeedbacks: Te, feedbackDialogMessage: Ee, isFeedbackSubmitting: ke, isFeedbackSubmitted: Ae, feedbackSubmitError: je, isLeadSubmitted: Me, isLoadingSubmitLead: Ge, submitLeadError: Ke, input: V, inputMessagePlaceholder: qe, isConversationBlocked: Je, baseUrl: Ye, pendingAttachments: Xe, isAttachmentLimitReached: Ze, fileLimitError: Qe, apiClient: H, isDark: $e, hostToolsPending: et, pageNoticeLevel: tt, hostConfirmation: nt, agentPageAccess: rt, hostStepTitles: it, canQueue: at, queuedMessages: ot, backgroundAnswers: st, inputFocusRequest: ct } = ge(I);
|
|
483
|
+
le(c, it);
|
|
484
|
+
let lt = fe("inputEl");
|
|
485
|
+
N(ct, () => {
|
|
486
|
+
lt.value?.focus();
|
|
487
487
|
});
|
|
488
|
-
let
|
|
489
|
-
let e =
|
|
490
|
-
if (e) return e.reason === "per-chat" ?
|
|
491
|
-
}),
|
|
488
|
+
let U = y(() => xe.value === "reasoning" ? void 0 : R.value), W = (e) => H.value.getMediaDownloadUrl(F.agentId, I.localChatId, e), { handleSubmit: ut, stopGeneration: dt, regenerate: ft, onUpvote: pt, onDownvote: mt, onFeedback: ht, onFeedbackSubmit: gt, onLeadSubmit: _t, startNewChat: vt, addToolOutput: yt, addToolApprovalResponse: bt, handleFileSelect: xt, clearFileLimitError: St, refreshMessages: Ct, appendMessage: wt, closePageNotice: Tt, respondHostConfirmation: Et, editQueuedMessage: Dt, removeQueuedMessage: Ot, openBackgroundAnswer: kt, dismissBackgroundAnswer: At } = I, { t: G } = pe({ useScope: "global" }), jt = y(() => et.value > 0), Mt = y(() => jt.value && B.value.status === "ready" ? "streaming" : B.value.status), Nt = l(() => rt.value?.notice), Pt = y(() => tt.value ? Nt.value || G(`message.pageAccessNotice.${tt.value}`) : void 0), Ft = y(() => {
|
|
489
|
+
let e = Qe.value;
|
|
490
|
+
if (e) return e.reason === "per-chat" ? G("message.fileLimitPerChat", { max: e.max }) : G("message.fileLimitPerMessage", { max: e.max });
|
|
491
|
+
}), It = y(() => st.value.map(({ chatId: e, title: t }) => ({
|
|
492
492
|
id: e,
|
|
493
|
-
text: t ?
|
|
494
|
-
}))),
|
|
493
|
+
text: t ? G("message.backgroundAnswerReady", { title: t }) : G("message.backgroundAnswerReadyUntitled")
|
|
494
|
+
}))), Lt = l(() => L.value?.dismissableNotice), Rt = y(() => z.value.some((e) => e.role === "user")), zt = y(() => F.modifier === "fullscreen" && !Rt.value), Bt = _e(L, () => F.userName), Vt = fe("chatViewEl"), { width: Ht } = he(Vt, {
|
|
495
495
|
width: 0,
|
|
496
496
|
height: 0
|
|
497
|
-
}, { box: "border-box" }),
|
|
498
|
-
|
|
499
|
-
let t =
|
|
500
|
-
if (
|
|
501
|
-
|
|
502
|
-
let n = () =>
|
|
497
|
+
}, { box: "border-box" }), Ut = y(() => Ht.value >= Be), Wt = y(() => Ht.value > 0 && Ht.value < 576), K = k(), Gt = k(), q = k(!1), Kt = k(!1), qt = /* @__PURE__ */ new Map(), Jt = async (e) => {
|
|
498
|
+
K.value = e, Kt.value = !1;
|
|
499
|
+
let t = qt.get(e.storedFileName);
|
|
500
|
+
if (Gt.value = t, q.value = !1, t) return;
|
|
501
|
+
q.value = !0;
|
|
502
|
+
let n = () => K.value?.storedFileName === e.storedFileName;
|
|
503
503
|
try {
|
|
504
|
-
let t = await
|
|
505
|
-
|
|
504
|
+
let t = await H.value.getChatFilePreview(F.agentId, I.localChatId, e.storedFileName);
|
|
505
|
+
qt.set(e.storedFileName, t), n() && (Gt.value = t);
|
|
506
506
|
} catch {
|
|
507
|
-
n() && (
|
|
507
|
+
n() && (Kt.value = !0);
|
|
508
508
|
} finally {
|
|
509
|
-
n() && (
|
|
509
|
+
n() && (q.value = !1);
|
|
510
510
|
}
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
},
|
|
514
|
-
get: () => !!
|
|
511
|
+
}, Yt = () => {
|
|
512
|
+
K.value = void 0;
|
|
513
|
+
}, Xt = y({
|
|
514
|
+
get: () => !!K.value && !Ut.value,
|
|
515
515
|
set: (e) => {
|
|
516
|
-
e ||
|
|
516
|
+
e || Yt();
|
|
517
517
|
}
|
|
518
518
|
});
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
N(() => I.localChatId, () => {
|
|
520
|
+
Yt(), qt.clear();
|
|
521
521
|
});
|
|
522
|
-
let
|
|
523
|
-
let t = await
|
|
522
|
+
let Zt = async (e) => (await H.value.expandSourceContext(F.agentId, e.documentId, e.chunkIndex)).content, Qt = async (e) => {
|
|
523
|
+
let t = await H.value.downloadSourceDocument(F.agentId, e);
|
|
524
524
|
window.open(t.downloadUrl, "_blank");
|
|
525
|
-
}, { isOverDropZone:
|
|
526
|
-
dataTypes: (e) => t(e,
|
|
525
|
+
}, { isOverDropZone: $t } = me(Vt, {
|
|
526
|
+
dataTypes: (e) => t(e, U.value?.allowedMimeTypes ?? []),
|
|
527
527
|
onDrop: (e) => {
|
|
528
|
-
if (
|
|
528
|
+
if (U.value?.enabled && e) for (let t of e) xt(t);
|
|
529
529
|
}
|
|
530
|
-
}),
|
|
530
|
+
}), J = k(!1), Y = !1, X = k(!1), en = [
|
|
531
531
|
3e3,
|
|
532
532
|
5e3,
|
|
533
533
|
1e4
|
|
534
|
-
],
|
|
535
|
-
function
|
|
536
|
-
clearTimeout(
|
|
534
|
+
], tn, Z, nn = !1, rn = 0, an = !1;
|
|
535
|
+
function on() {
|
|
536
|
+
clearTimeout(tn), tn = void 0, Z = void 0, nn = !1, rn = 0, X.value = !1;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
|
|
540
|
-
|
|
538
|
+
function sn(e) {
|
|
539
|
+
Y || (clearTimeout(tn), tn = setTimeout(() => {
|
|
540
|
+
cn();
|
|
541
541
|
}, e));
|
|
542
542
|
}
|
|
543
|
-
async function
|
|
544
|
-
if (
|
|
545
|
-
|
|
543
|
+
async function cn() {
|
|
544
|
+
if (Y || an) return;
|
|
545
|
+
an = !0;
|
|
546
546
|
let e;
|
|
547
547
|
try {
|
|
548
|
-
e = await
|
|
548
|
+
e = await Ct();
|
|
549
549
|
} finally {
|
|
550
|
-
|
|
550
|
+
an = !1;
|
|
551
551
|
}
|
|
552
|
-
if (
|
|
553
|
-
if (e === "caught-up" && (
|
|
554
|
-
|
|
552
|
+
if (Y) return;
|
|
553
|
+
if (e === "caught-up" && (X.value = !1, Ln()), Q.isActive.value) {
|
|
554
|
+
Z = void 0, nn = !1, rn = 0, sn(Ve);
|
|
555
555
|
return;
|
|
556
556
|
}
|
|
557
|
-
|
|
558
|
-
let t = Date.now() -
|
|
559
|
-
if (e === "caught-up" && t >= (
|
|
560
|
-
|
|
557
|
+
Z === void 0 && (Z = Date.now(), nn = !!Q.error.value);
|
|
558
|
+
let t = Date.now() - Z;
|
|
559
|
+
if (e === "caught-up" && t >= (nn ? Ue : He) || t >= We) {
|
|
560
|
+
on(), Rn();
|
|
561
561
|
return;
|
|
562
562
|
}
|
|
563
|
-
let n =
|
|
564
|
-
|
|
563
|
+
let n = en[Math.min(rn, en.length - 1)];
|
|
564
|
+
rn += 1, sn(n);
|
|
565
565
|
}
|
|
566
|
-
let
|
|
567
|
-
|
|
568
|
-
},
|
|
566
|
+
let ln = (e = 1200) => {
|
|
567
|
+
sn(e);
|
|
568
|
+
}, Q = Oe({
|
|
569
569
|
fetchGrant: async () => {
|
|
570
|
-
let e = await
|
|
571
|
-
deviceContext:
|
|
572
|
-
externalContext:
|
|
570
|
+
let e = await H.value.createVoiceSession(F.agentId, I.localChatId, {
|
|
571
|
+
deviceContext: I.buildDeviceContext(),
|
|
572
|
+
externalContext: I.externalContext
|
|
573
573
|
});
|
|
574
|
-
return e.chatId !==
|
|
574
|
+
return e.chatId !== I.localChatId && (I.localChatId = e.chatId), e;
|
|
575
575
|
},
|
|
576
|
-
closeGrant: (e) =>
|
|
576
|
+
closeGrant: (e) => H.value.closeVoiceSession(F.agentId, e),
|
|
577
577
|
onTranscript: (e) => {
|
|
578
|
-
e.role === "user" ? (
|
|
578
|
+
e.role === "user" ? (X.value = !0, In(), wt({
|
|
579
579
|
id: `${i}user-${n()}`,
|
|
580
580
|
role: "user",
|
|
581
581
|
parts: [{
|
|
582
582
|
type: "text",
|
|
583
583
|
text: e.text
|
|
584
584
|
}]
|
|
585
|
-
})) :
|
|
585
|
+
})) : X.value = !1;
|
|
586
586
|
},
|
|
587
587
|
onTurnEnd: () => {
|
|
588
|
-
|
|
588
|
+
ln();
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
|
-
|
|
592
|
-
e && (
|
|
591
|
+
N(() => Q.error.value, (e) => {
|
|
592
|
+
e && (X.value = !1);
|
|
593
593
|
});
|
|
594
|
-
let
|
|
595
|
-
let e =
|
|
596
|
-
if (e) return /took too long/i.test(e) ?
|
|
597
|
-
}),
|
|
598
|
-
|
|
599
|
-
},
|
|
600
|
-
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
},
|
|
606
|
-
|
|
594
|
+
let un = y(() => Se.value?.enabled === !0), dn = y(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), fn = y(() => {
|
|
595
|
+
let e = Q.error.value;
|
|
596
|
+
if (e) return /took too long/i.test(e) ? G("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? G("message.voiceNoAnswer") : G("message.voiceInterrupted");
|
|
597
|
+
}), pn = y(() => Q.isSpeaking.value ? "output" : "input"), mn = () => Q.readLevel(pn.value), hn = () => Q.readSpectrum(pn.value), gn = async () => {
|
|
598
|
+
J.value = !1, await Q.start(), Q.isActive.value && (on(), sn(Ve));
|
|
599
|
+
}, _n = async () => {
|
|
600
|
+
X.value = !1, await Q.stop(), !Y && ln(0);
|
|
601
|
+
}, vn = () => {
|
|
602
|
+
Q.dismissError();
|
|
603
|
+
}, yn = async () => {
|
|
604
|
+
Q.dismissError(), await Q.stop(), await gn();
|
|
605
|
+
}, $ = (e) => e?.toolCallId ?? "", bn = k(/* @__PURE__ */ new Set()), xn = (e) => bn.value.has($(e)), Sn = k(/* @__PURE__ */ new Map()), Cn = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (bn.value = new Set(bn.value).add($(e)), ln()), !0) : !1, wn = (e, t, n) => {
|
|
606
|
+
Cn(t, o(t, n)) || yt({
|
|
607
607
|
tool: e,
|
|
608
|
-
toolCallId:
|
|
608
|
+
toolCallId: $(t),
|
|
609
609
|
output: n
|
|
610
610
|
});
|
|
611
611
|
}, Tn = (e) => {
|
|
612
|
-
let t = e.confirmed ?
|
|
613
|
-
|
|
612
|
+
let t = e.confirmed ? G("message.voiceConfirmed") : G("message.voiceCancelled");
|
|
613
|
+
Cn({ toolCallId: e.toolCallId }, t) ? bn.value.has(e.toolCallId) && (Sn.value = new Map(Sn.value).set(e.toolCallId, e.confirmed)) : yt({
|
|
614
614
|
tool: "requestConfirm",
|
|
615
615
|
toolCallId: e.toolCallId,
|
|
616
616
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
617
617
|
});
|
|
618
|
-
}, En =
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
618
|
+
}, En = /* @__PURE__ */ new Set([
|
|
619
|
+
"tool-editSpreadsheet",
|
|
620
|
+
"tool-editWordDocument",
|
|
621
|
+
"tool-createSpreadsheet",
|
|
622
|
+
"tool-createWordDocument"
|
|
623
|
+
]), Dn = y(() => {
|
|
624
|
+
let e = /* @__PURE__ */ new Map();
|
|
625
|
+
for (let t of z.value) for (let n of t.parts) {
|
|
626
|
+
let { type: t, state: r, output: i } = n;
|
|
627
|
+
En.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
|
|
628
|
+
}
|
|
629
|
+
return e;
|
|
630
|
+
}), On = y(() => Je.value ? void 0 : (e) => {
|
|
631
|
+
V.value = G("messagePart.chatFileRestoreRequest", e), ut();
|
|
632
|
+
}), kn = (e, t) => {
|
|
633
|
+
Cn(e, t) || (V.value = t, ut());
|
|
634
|
+
}, An = (e, t) => {
|
|
635
|
+
let n = t.error ? G("message.voiceLocationRefused") : G("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
636
|
+
Cn(e, n) || yt({
|
|
623
637
|
tool: "requestGeolocation",
|
|
624
|
-
toolCallId:
|
|
638
|
+
toolCallId: $(e),
|
|
625
639
|
output: t
|
|
626
640
|
});
|
|
627
|
-
},
|
|
628
|
-
|
|
641
|
+
}, jn = (e, t) => {
|
|
642
|
+
Cn(e, G("message.voiceConnectionDone")) || yt({
|
|
629
643
|
tool: "requestOAuthConnection",
|
|
630
|
-
toolCallId:
|
|
644
|
+
toolCallId: $(e),
|
|
631
645
|
output: {
|
|
632
646
|
connected: !0,
|
|
633
647
|
mcpServerId: t
|
|
634
648
|
}
|
|
635
649
|
});
|
|
636
|
-
},
|
|
637
|
-
|
|
650
|
+
}, Mn = () => {
|
|
651
|
+
J.value = !J.value, Q.setMuted(J.value);
|
|
638
652
|
};
|
|
639
|
-
|
|
640
|
-
|
|
653
|
+
ae(() => {
|
|
654
|
+
Y = !0, on();
|
|
641
655
|
});
|
|
642
|
-
let { pendingWakeup:
|
|
643
|
-
agentId: () =>
|
|
644
|
-
chatId: () =>
|
|
645
|
-
apiClient: () =>
|
|
646
|
-
messages: () =>
|
|
647
|
-
refreshMessages:
|
|
656
|
+
let { pendingWakeup: Nn, isStopping: Pn, stop: Fn, spokenTurnStarted: In, spokenTurnsWritten: Ln, forgetSpokenTurns: Rn } = Ne({
|
|
657
|
+
agentId: () => F.agentId,
|
|
658
|
+
chatId: () => I.localChatId,
|
|
659
|
+
apiClient: () => H.value,
|
|
660
|
+
messages: () => z.value,
|
|
661
|
+
refreshMessages: Ct,
|
|
648
662
|
status: () => B.value.status
|
|
649
663
|
});
|
|
650
664
|
return (t, n) => {
|
|
651
665
|
let r = g, i = h;
|
|
652
|
-
return
|
|
666
|
+
return O(), S("div", {
|
|
653
667
|
ref_key: "chatViewEl",
|
|
654
|
-
ref:
|
|
668
|
+
ref: Vt,
|
|
655
669
|
class: D(["pk-chatbot-view-chat", {
|
|
656
|
-
"pk-chatbot-view-chat--dragover":
|
|
657
|
-
"pk-chatbot-view-chat--empty":
|
|
658
|
-
"pk-chatbot-view-chat--with-preview": !!
|
|
670
|
+
"pk-chatbot-view-chat--dragover": M($t) && U.value?.enabled,
|
|
671
|
+
"pk-chatbot-view-chat--empty": zt.value,
|
|
672
|
+
"pk-chatbot-view-chat--with-preview": !!K.value && Ut.value
|
|
659
673
|
}])
|
|
660
674
|
}, [
|
|
661
675
|
w(v, {
|
|
662
676
|
name: "pk-chatbot-view-chat-fade",
|
|
663
677
|
mode: "out-in"
|
|
664
678
|
}, {
|
|
665
|
-
default:
|
|
679
|
+
default: P(() => [zt.value ? (O(), b(ee, {
|
|
666
680
|
key: 0,
|
|
667
|
-
greeting:
|
|
668
|
-
logo:
|
|
669
|
-
name:
|
|
681
|
+
greeting: M(Bt),
|
|
682
|
+
logo: M(L)?.logo,
|
|
683
|
+
name: M(I).name
|
|
670
684
|
}, null, 8, [
|
|
671
685
|
"greeting",
|
|
672
686
|
"logo",
|
|
673
687
|
"name"
|
|
674
|
-
])) : (
|
|
688
|
+
])) : (O(), b(e, {
|
|
675
689
|
key: 1,
|
|
676
690
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
677
691
|
interactive: "",
|
|
678
|
-
messages:
|
|
679
|
-
"confirm-verdicts-on-call":
|
|
680
|
-
status:
|
|
681
|
-
error:
|
|
682
|
-
"main-color":
|
|
683
|
-
"text-color":
|
|
684
|
-
"revised-answers":
|
|
685
|
-
actions:
|
|
686
|
-
"message-feedbacks":
|
|
687
|
-
"feedback-message-id":
|
|
688
|
-
"feedback-loading":
|
|
689
|
-
"feedback-submitted":
|
|
690
|
-
"feedback-error":
|
|
691
|
-
"show-extended-steps":
|
|
692
|
-
"hide-reasoning":
|
|
693
|
-
"awaiting-spoken-answer":
|
|
694
|
-
"host-working":
|
|
695
|
-
"host-confirmation":
|
|
696
|
-
"is-dark":
|
|
692
|
+
messages: M(z),
|
|
693
|
+
"confirm-verdicts-on-call": Sn.value,
|
|
694
|
+
status: M(B).status,
|
|
695
|
+
error: M(B).error,
|
|
696
|
+
"main-color": M(L)?.mainColor,
|
|
697
|
+
"text-color": M(L)?.textColor,
|
|
698
|
+
"revised-answers": M(we),
|
|
699
|
+
actions: M(Ce),
|
|
700
|
+
"message-feedbacks": M(Te),
|
|
701
|
+
"feedback-message-id": M(Ee)?.id,
|
|
702
|
+
"feedback-loading": M(ke),
|
|
703
|
+
"feedback-submitted": M(Ae),
|
|
704
|
+
"feedback-error": M(je),
|
|
705
|
+
"show-extended-steps": M(L)?.showExtendedSteps,
|
|
706
|
+
"hide-reasoning": M(L)?.showReasoning === !1,
|
|
707
|
+
"awaiting-spoken-answer": X.value,
|
|
708
|
+
"host-working": jt.value,
|
|
709
|
+
"host-confirmation": M(nt),
|
|
710
|
+
"is-dark": M($e),
|
|
697
711
|
"show-scroll-to-bottom": a.modifier === "fullscreen",
|
|
698
|
-
onFeedbackSubmit: n[0] ||= (e) =>
|
|
712
|
+
onFeedbackSubmit: n[0] ||= (e) => M(gt)(e),
|
|
699
713
|
onFeedbackClose: n[1] ||= (e) => Ee.value = void 0,
|
|
700
|
-
onRegenerate:
|
|
701
|
-
onAutoRetry:
|
|
702
|
-
onResetChat:
|
|
703
|
-
onShowInfo: n[2] ||= (e) =>
|
|
704
|
-
onRevise: n[3] ||= (e) =>
|
|
705
|
-
onUpvote:
|
|
706
|
-
onDownvote:
|
|
707
|
-
onFeedback:
|
|
708
|
-
onApprovalRespond:
|
|
714
|
+
onRegenerate: M(ft),
|
|
715
|
+
onAutoRetry: M(ft),
|
|
716
|
+
onResetChat: M(vt),
|
|
717
|
+
onShowInfo: n[2] ||= (e) => ye("show-info", e),
|
|
718
|
+
onRevise: n[3] ||= (e) => ye("revise", e),
|
|
719
|
+
onUpvote: M(pt),
|
|
720
|
+
onDownvote: M(mt),
|
|
721
|
+
onFeedback: M(ht),
|
|
722
|
+
onApprovalRespond: M(bt),
|
|
709
723
|
onConfirmRespond: Tn,
|
|
710
|
-
onHostConfirmRespond:
|
|
724
|
+
onHostConfirmRespond: M(Et)
|
|
711
725
|
}, {
|
|
712
|
-
"tool-showContactForm":
|
|
726
|
+
"tool-showContactForm": P(({ part: e }) => [w(M(ne), {
|
|
713
727
|
part: e,
|
|
714
|
-
readonly: !
|
|
715
|
-
submitted:
|
|
716
|
-
loading:
|
|
717
|
-
error:
|
|
718
|
-
"privacy-policy-notice":
|
|
719
|
-
onSubmit:
|
|
728
|
+
readonly: !M(Ye),
|
|
729
|
+
submitted: M(Me),
|
|
730
|
+
loading: M(Ge),
|
|
731
|
+
error: M(Ke),
|
|
732
|
+
"privacy-policy-notice": M(L)?.privacyPolicyNotice,
|
|
733
|
+
onSubmit: M(_t)
|
|
720
734
|
}, null, 8, [
|
|
721
735
|
"part",
|
|
722
736
|
"readonly",
|
|
@@ -726,19 +740,19 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
726
740
|
"privacy-policy-notice",
|
|
727
741
|
"onSubmit"
|
|
728
742
|
])]),
|
|
729
|
-
"tool-showSuggestedReply":
|
|
743
|
+
"tool-showSuggestedReply": P(({ part: e }) => [w(M(E), {
|
|
730
744
|
part: e,
|
|
731
|
-
onSelect: (t) =>
|
|
745
|
+
onSelect: (t) => kn(e, t)
|
|
732
746
|
}, null, 8, ["part", "onSelect"])]),
|
|
733
|
-
"tool-showSources":
|
|
747
|
+
"tool-showSources": P(({ part: e }) => [w(M(ie), {
|
|
734
748
|
part: e,
|
|
735
|
-
"on-expand-context":
|
|
736
|
-
"on-download":
|
|
749
|
+
"on-expand-context": Zt,
|
|
750
|
+
"on-download": Qt
|
|
737
751
|
}, null, 8, ["part"])]),
|
|
738
|
-
"tool-showForm":
|
|
739
|
-
default:
|
|
752
|
+
"tool-showForm": P(({ part: e }) => [w(v, { mode: "out-in" }, {
|
|
753
|
+
default: P(() => [w(M(_), {
|
|
740
754
|
part: e,
|
|
741
|
-
answered:
|
|
755
|
+
answered: xn(e),
|
|
742
756
|
onSelect: (t) => wn("showForm", e, t)
|
|
743
757
|
}, null, 8, [
|
|
744
758
|
"part",
|
|
@@ -747,11 +761,11 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
747
761
|
])]),
|
|
748
762
|
_: 2
|
|
749
763
|
}, 1024)]),
|
|
750
|
-
"tool-showMultipleChoice":
|
|
751
|
-
default:
|
|
764
|
+
"tool-showMultipleChoice": P(({ part: e }) => [w(v, { mode: "out-in" }, {
|
|
765
|
+
default: P(() => [w(M(_), {
|
|
752
766
|
part: e,
|
|
753
767
|
"allow-custom-answer": "",
|
|
754
|
-
answered:
|
|
768
|
+
answered: xn(e),
|
|
755
769
|
onSelect: (t) => wn("showMultipleChoice", e, t)
|
|
756
770
|
}, null, 8, [
|
|
757
771
|
"part",
|
|
@@ -760,12 +774,12 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
760
774
|
])]),
|
|
761
775
|
_: 2
|
|
762
776
|
}, 1024)]),
|
|
763
|
-
"tool-requestOAuthConnection":
|
|
777
|
+
"tool-requestOAuthConnection": P(({ part: e }) => [w(M(se), {
|
|
764
778
|
part: e,
|
|
765
|
-
"backend-url":
|
|
766
|
-
"resolve-connection": (e) =>
|
|
767
|
-
"check-connection": (e) =>
|
|
768
|
-
onConnected: (t) =>
|
|
779
|
+
"backend-url": M(Ye),
|
|
780
|
+
"resolve-connection": (e) => M(H).getOAuthAuthorizeUrl(F.agentId, e),
|
|
781
|
+
"check-connection": (e) => M(H).getOAuthConnectionStatus(F.agentId, e),
|
|
782
|
+
onConnected: (t) => jn(e, t)
|
|
769
783
|
}, null, 8, [
|
|
770
784
|
"part",
|
|
771
785
|
"backend-url",
|
|
@@ -773,68 +787,94 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
773
787
|
"check-connection",
|
|
774
788
|
"onConnected"
|
|
775
789
|
])]),
|
|
776
|
-
"tool-requestGeolocation":
|
|
790
|
+
"tool-requestGeolocation": P(({ part: e }) => [w(M(oe), {
|
|
777
791
|
part: e,
|
|
778
|
-
"call-live":
|
|
779
|
-
"reverse-geocode": (e, t) =>
|
|
780
|
-
onResult: (t) =>
|
|
792
|
+
"call-live": M(Q).isActive.value,
|
|
793
|
+
"reverse-geocode": (e, t) => M(H).reverseGeocode(e, t),
|
|
794
|
+
onResult: (t) => An(e, t)
|
|
781
795
|
}, null, 8, [
|
|
782
796
|
"part",
|
|
783
797
|
"call-live",
|
|
784
798
|
"reverse-geocode",
|
|
785
799
|
"onResult"
|
|
786
800
|
])]),
|
|
787
|
-
"tool-showLocation":
|
|
801
|
+
"tool-showLocation": P(({ part: e }) => [w(M(ce), {
|
|
788
802
|
part: e,
|
|
789
|
-
"is-dark":
|
|
790
|
-
"main-color":
|
|
791
|
-
"forward-geocode": (e, t) =>
|
|
803
|
+
"is-dark": M($e),
|
|
804
|
+
"main-color": M(L)?.mainColor,
|
|
805
|
+
"forward-geocode": (e, t) => M(H).forwardGeocode(e, t)
|
|
792
806
|
}, null, 8, [
|
|
793
807
|
"part",
|
|
794
808
|
"is-dark",
|
|
795
809
|
"main-color",
|
|
796
810
|
"forward-geocode"
|
|
797
811
|
])]),
|
|
798
|
-
"tool-showDiagram":
|
|
812
|
+
"tool-showDiagram": P(({ part: e }) => [w(M(ue), {
|
|
799
813
|
part: e,
|
|
800
|
-
"is-dark":
|
|
814
|
+
"is-dark": M($e)
|
|
801
815
|
}, null, 8, ["part", "is-dark"])]),
|
|
802
|
-
"tool-editSpreadsheet":
|
|
803
|
-
key:
|
|
816
|
+
"tool-editSpreadsheet": P(({ part: e }) => [(O(), b(M(A), {
|
|
817
|
+
key: M(s)(e),
|
|
804
818
|
part: e,
|
|
805
|
-
"file-url":
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
819
|
+
"file-url": W,
|
|
820
|
+
preview: Jt,
|
|
821
|
+
"latest-versions": Dn.value,
|
|
822
|
+
restore: On.value
|
|
823
|
+
}, null, 8, [
|
|
824
|
+
"part",
|
|
825
|
+
"latest-versions",
|
|
826
|
+
"restore"
|
|
827
|
+
]))]),
|
|
828
|
+
"tool-editWordDocument": P(({ part: e }) => [(O(), b(M(A), {
|
|
829
|
+
key: M(s)(e),
|
|
809
830
|
part: e,
|
|
810
|
-
"file-url":
|
|
811
|
-
preview:
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
831
|
+
"file-url": W,
|
|
832
|
+
preview: Jt,
|
|
833
|
+
"latest-versions": Dn.value,
|
|
834
|
+
restore: On.value
|
|
835
|
+
}, null, 8, [
|
|
836
|
+
"part",
|
|
837
|
+
"latest-versions",
|
|
838
|
+
"restore"
|
|
839
|
+
]))]),
|
|
840
|
+
"tool-createSpreadsheet": P(({ part: e }) => [(O(), b(M(A), {
|
|
841
|
+
key: M(s)(e),
|
|
815
842
|
part: e,
|
|
816
|
-
"file-url":
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
843
|
+
"file-url": W,
|
|
844
|
+
preview: Jt,
|
|
845
|
+
"latest-versions": Dn.value,
|
|
846
|
+
restore: On.value
|
|
847
|
+
}, null, 8, [
|
|
848
|
+
"part",
|
|
849
|
+
"latest-versions",
|
|
850
|
+
"restore"
|
|
851
|
+
]))]),
|
|
852
|
+
"tool-createWordDocument": P(({ part: e }) => [(O(), b(M(A), {
|
|
853
|
+
key: M(s)(e),
|
|
820
854
|
part: e,
|
|
821
|
-
"file-url":
|
|
822
|
-
preview:
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
855
|
+
"file-url": W,
|
|
856
|
+
preview: Jt,
|
|
857
|
+
"latest-versions": Dn.value,
|
|
858
|
+
restore: On.value
|
|
859
|
+
}, null, 8, [
|
|
860
|
+
"part",
|
|
861
|
+
"latest-versions",
|
|
862
|
+
"restore"
|
|
863
|
+
]))]),
|
|
864
|
+
"tool-shareDocument": P(({ part: e }) => [(O(), b(M(de), {
|
|
865
|
+
key: M(s)(e),
|
|
826
866
|
part: e,
|
|
827
|
-
"on-download":
|
|
867
|
+
"on-download": Qt
|
|
828
868
|
}, null, 8, ["part"]))]),
|
|
829
869
|
_: 1
|
|
830
870
|
}, 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(".")))]),
|
|
831
871
|
_: 1
|
|
832
872
|
}),
|
|
833
|
-
|
|
873
|
+
M(ot).length ? (O(), b(p, {
|
|
834
874
|
key: 0,
|
|
835
|
-
messages:
|
|
836
|
-
onEdit:
|
|
837
|
-
onRemove:
|
|
875
|
+
messages: M(ot),
|
|
876
|
+
onEdit: M(Dt),
|
|
877
|
+
onRemove: M(Ot)
|
|
838
878
|
}, null, 8, [
|
|
839
879
|
"messages",
|
|
840
880
|
"onEdit",
|
|
@@ -842,57 +882,57 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
842
882
|
])) : x("", !0),
|
|
843
883
|
C("div", Pe, [
|
|
844
884
|
w(v, { name: "pk-chatbot-view-chat-fade" }, {
|
|
845
|
-
default:
|
|
885
|
+
default: P(() => [zt.value ? (O(), b(be, {
|
|
846
886
|
key: 0,
|
|
847
887
|
class: "pk-chatbot-view-chat__aurora",
|
|
848
888
|
"source-selector": ".pk-chatbot-input__form"
|
|
849
889
|
})) : x("", !0)]),
|
|
850
890
|
_: 1
|
|
851
891
|
}),
|
|
852
|
-
|
|
892
|
+
M(Nn) && !M(Je) ? (O(), b(m, {
|
|
853
893
|
key: 0,
|
|
854
|
-
pending:
|
|
855
|
-
stopping:
|
|
856
|
-
onStop:
|
|
894
|
+
pending: M(Nn),
|
|
895
|
+
stopping: M(Pn),
|
|
896
|
+
onStop: M(Fn)
|
|
857
897
|
}, null, 8, [
|
|
858
898
|
"pending",
|
|
859
899
|
"stopping",
|
|
860
900
|
"onStop"
|
|
861
901
|
])) : x("", !0),
|
|
862
|
-
|
|
902
|
+
M(Je) ? (O(), S("div", Fe, j(M(G)("message.chatErrorConversationBlocked")), 1)) : dn.value === "idle" ? (O(), b(f, {
|
|
863
903
|
key: 3,
|
|
864
904
|
ref_key: "inputEl",
|
|
865
|
-
ref:
|
|
866
|
-
modelValue:
|
|
867
|
-
"onUpdate:modelValue": n[4] ||= (e) => re(
|
|
868
|
-
"pending-attachments":
|
|
869
|
-
"onUpdate:pendingAttachments": n[5] ||= (e) => re(
|
|
870
|
-
placeholder:
|
|
871
|
-
"dismissable-notice":
|
|
872
|
-
"page-notice":
|
|
873
|
-
status:
|
|
874
|
-
"max-message-length":
|
|
875
|
-
"file-upload":
|
|
876
|
-
"attachment-limit-reached":
|
|
877
|
-
"attachment-notice":
|
|
878
|
-
"voice-enabled":
|
|
879
|
-
"queue-enabled":
|
|
880
|
-
"answer-notices":
|
|
881
|
-
onStopGeneration:
|
|
882
|
-
onSubmit:
|
|
883
|
-
onFileSelect:
|
|
884
|
-
onDismissAttachmentNotice:
|
|
885
|
-
onDismissPageNotice:
|
|
886
|
-
onOpenAnswerNotice:
|
|
887
|
-
onDismissAnswerNotice:
|
|
888
|
-
onVoiceStart:
|
|
905
|
+
ref: lt,
|
|
906
|
+
modelValue: M(V),
|
|
907
|
+
"onUpdate:modelValue": n[4] ||= (e) => re(V) ? V.value = e : null,
|
|
908
|
+
"pending-attachments": M(Xe),
|
|
909
|
+
"onUpdate:pendingAttachments": n[5] ||= (e) => re(Xe) ? Xe.value = e : null,
|
|
910
|
+
placeholder: M(qe),
|
|
911
|
+
"dismissable-notice": M(Lt) && M(B).messages.length <= 1 ? M(Lt) : void 0,
|
|
912
|
+
"page-notice": Pt.value,
|
|
913
|
+
status: Mt.value,
|
|
914
|
+
"max-message-length": M(L)?.maxMessageLength,
|
|
915
|
+
"file-upload": U.value,
|
|
916
|
+
"attachment-limit-reached": M(Ze),
|
|
917
|
+
"attachment-notice": Ft.value,
|
|
918
|
+
"voice-enabled": un.value,
|
|
919
|
+
"queue-enabled": M(at),
|
|
920
|
+
"answer-notices": It.value,
|
|
921
|
+
onStopGeneration: M(dt),
|
|
922
|
+
onSubmit: M(ut),
|
|
923
|
+
onFileSelect: M(xt),
|
|
924
|
+
onDismissAttachmentNotice: M(St),
|
|
925
|
+
onDismissPageNotice: M(Tt),
|
|
926
|
+
onOpenAnswerNotice: M(kt),
|
|
927
|
+
onDismissAnswerNotice: M(At),
|
|
928
|
+
onVoiceStart: gn
|
|
889
929
|
}, te({ _: 2 }, [a.modifier === "fullscreen" ? {
|
|
890
930
|
name: "prepend",
|
|
891
|
-
fn:
|
|
931
|
+
fn: P(() => [C("span", Ie, [w(u, {
|
|
892
932
|
class: "pk-chatbot-view-chat__agent-chip-avatar",
|
|
893
|
-
"img-src":
|
|
894
|
-
name:
|
|
895
|
-
}, null, 8, ["img-src", "name"]),
|
|
933
|
+
"img-src": M(L)?.logo,
|
|
934
|
+
name: M(I).name
|
|
935
|
+
}, null, 8, ["img-src", "name"]), M(I).name ? (O(), S("strong", Le, j(M(I).name), 1)) : x("", !0)])]),
|
|
896
936
|
key: "0"
|
|
897
937
|
} : void 0]), 1032, [
|
|
898
938
|
"modelValue",
|
|
@@ -915,21 +955,21 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
915
955
|
"onDismissPageNotice",
|
|
916
956
|
"onOpenAnswerNotice",
|
|
917
957
|
"onDismissAnswerNotice"
|
|
918
|
-
])) : (
|
|
958
|
+
])) : (O(), b(De, {
|
|
919
959
|
key: 2,
|
|
920
|
-
state:
|
|
921
|
-
sample:
|
|
922
|
-
spectrum:
|
|
923
|
-
"remaining-seconds":
|
|
924
|
-
muted:
|
|
925
|
-
error:
|
|
926
|
-
"raw-error":
|
|
927
|
-
live:
|
|
960
|
+
state: dn.value,
|
|
961
|
+
sample: mn,
|
|
962
|
+
spectrum: hn,
|
|
963
|
+
"remaining-seconds": M(Q).remainingSeconds.value,
|
|
964
|
+
muted: J.value,
|
|
965
|
+
error: fn.value,
|
|
966
|
+
"raw-error": M(Q).error.value,
|
|
967
|
+
live: M(Q).isActive.value,
|
|
928
968
|
class: "pk-chatbot-view-chat__voice",
|
|
929
|
-
onToggleMute:
|
|
930
|
-
onHangUp:
|
|
931
|
-
onRetry:
|
|
932
|
-
onDismiss:
|
|
969
|
+
onToggleMute: Mn,
|
|
970
|
+
onHangUp: _n,
|
|
971
|
+
onRetry: yn,
|
|
972
|
+
onDismiss: vn
|
|
933
973
|
}, null, 8, [
|
|
934
974
|
"state",
|
|
935
975
|
"remaining-seconds",
|
|
@@ -940,22 +980,24 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
940
980
|
]))
|
|
941
981
|
]),
|
|
942
982
|
w(v, null, {
|
|
943
|
-
default:
|
|
983
|
+
default: P(() => [M($t) && U.value?.enabled ? (O(), S("div", Re, [w(r, {
|
|
944
984
|
name: "ri:upload-cloud-2-line",
|
|
945
985
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
946
|
-
}), C("span", null, M(
|
|
986
|
+
}), C("span", null, j(M(G)("action.dropFile")), 1)])) : x("", !0)]),
|
|
947
987
|
_: 1
|
|
948
988
|
}),
|
|
949
|
-
|
|
989
|
+
K.value && Ut.value ? (O(), S("aside", ze, [w(M(ve), {
|
|
950
990
|
closable: "",
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
991
|
+
kind: K.value.kind,
|
|
992
|
+
filename: K.value.filename,
|
|
993
|
+
version: K.value.version,
|
|
994
|
+
"download-url": W(K.value.storedFileName),
|
|
995
|
+
preview: Gt.value,
|
|
996
|
+
loading: q.value,
|
|
997
|
+
error: Kt.value,
|
|
998
|
+
onClose: Yt
|
|
958
999
|
}, null, 8, [
|
|
1000
|
+
"kind",
|
|
959
1001
|
"filename",
|
|
960
1002
|
"version",
|
|
961
1003
|
"download-url",
|
|
@@ -963,23 +1005,25 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
963
1005
|
"loading",
|
|
964
1006
|
"error"
|
|
965
1007
|
])])) : x("", !0),
|
|
966
|
-
|
|
1008
|
+
K.value && !Ut.value ? (O(), b(i, {
|
|
967
1009
|
key: 2,
|
|
968
|
-
modelValue:
|
|
969
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
970
|
-
title:
|
|
971
|
-
"label-close":
|
|
972
|
-
modifiers:
|
|
1010
|
+
modelValue: Xt.value,
|
|
1011
|
+
"onUpdate:modelValue": n[6] ||= (e) => Xt.value = e,
|
|
1012
|
+
title: K.value.filename,
|
|
1013
|
+
"label-close": M(G)("chatFilePreview.close"),
|
|
1014
|
+
modifiers: Wt.value ? "fullscreen" : void 0,
|
|
973
1015
|
class: "pk-chatbot-view-chat__preview-dialog"
|
|
974
1016
|
}, {
|
|
975
|
-
default:
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1017
|
+
default: P(() => [w(M(ve), {
|
|
1018
|
+
kind: K.value.kind,
|
|
1019
|
+
filename: K.value.filename,
|
|
1020
|
+
version: K.value.version,
|
|
1021
|
+
"download-url": W(K.value.storedFileName),
|
|
1022
|
+
preview: Gt.value,
|
|
1023
|
+
loading: q.value,
|
|
1024
|
+
error: Kt.value
|
|
982
1025
|
}, null, 8, [
|
|
1026
|
+
"kind",
|
|
983
1027
|
"filename",
|
|
984
1028
|
"version",
|
|
985
1029
|
"download-url",
|
|
@@ -998,6 +1042,6 @@ var Pe = { class: "pk-chatbot-view-chat__input-stage" }, Fe = {
|
|
|
998
1042
|
};
|
|
999
1043
|
}
|
|
1000
1044
|
});
|
|
1001
|
-
export {
|
|
1045
|
+
export { be as i, De as n, Se as r, Ge as t };
|
|
1002
1046
|
|
|
1003
|
-
//# sourceMappingURL=PkChatbotViewChat-
|
|
1047
|
+
//# sourceMappingURL=PkChatbotViewChat-BNaSv86u.js.map
|