@8wave/ai-elements 0.125.0-beta.22 → 0.125.0-beta.24
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-BzNLupQS.js → PkFilePreview-CyWTOCZC.js} +504 -462
- package/dist/_chunks/PkFilePreview-CyWTOCZC.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-BfZFgdOi.js → PkFilePreviewDialog-CUHwFDmH.js} +5 -2
- package/dist/_chunks/PkFilePreviewDialog-CUHwFDmH.js.map +1 -0
- package/dist/_chunks/{PkSelectionActions-CUymhwsG.js → PkSelectionActions-DDyt_ksY.js} +99 -26
- package/dist/_chunks/PkSelectionActions-DDyt_ksY.js.map +1 -0
- package/dist/ai-elements.es.js +2643 -2631
- 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/_chunks/{PkChatbot-BVZgvanv.js → PkChatbot-D0uPiMhj.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-BVZgvanv.js.map → PkChatbot-D0uPiMhj.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-C1uzFQCJ.js → PkChatbotViewChat-Ckl03UkZ.js} +526 -443
- package/dist-vue/_chunks/PkChatbotViewChat-Ckl03UkZ.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-C2VOU99H.js → PkFilePreview-B26pY-C2.js} +522 -479
- package/dist-vue/_chunks/PkFilePreview-B26pY-C2.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-C6QQMntW.js → PkFilePreviewDialog-Dy5jmAom.js} +5 -2
- package/dist-vue/_chunks/PkFilePreviewDialog-Dy5jmAom.js.map +1 -0
- package/dist-vue/index.js +4 -4
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/components/src/chat/PkFilePreview.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/PkFilePreviewDialog.d.ts +3 -0
- package/dist-vue/packages/components/src/chat/PkSpreadsheetPreview.d.ts +5 -0
- package/dist-vue/packages/components/src/chat/PkWordPreview.d.ts +5 -0
- package/dist-vue/packages/components/src/chat/PkWordPreviewBlock.d.ts +3 -1
- package/dist-vue/packages/components/src/chat/previewChanges.d.ts +33 -0
- package/dist-vue/packages/components/src/chat/useChatFilePreview.d.ts +8 -2
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkFilePreview-BzNLupQS.js.map +0 -1
- package/dist/_chunks/PkFilePreviewDialog-BfZFgdOi.js.map +0 -1
- package/dist/_chunks/PkSelectionActions-CUymhwsG.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-C1uzFQCJ.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-C2VOU99H.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreviewDialog-C6QQMntW.js.map +0 -1
|
@@ -8,26 +8,26 @@ import { t as m } from "./useLocalizedString-Dmn92nix.js";
|
|
|
8
8
|
import { t as h } from "./PkAvatar-DwtZWSW4.js";
|
|
9
9
|
import { n as g, t as _ } from "./PkChatbotInput-D0KUEkAs.js";
|
|
10
10
|
import { t as v } from "./PkChatbotQueuedMessages-CIJFAvE2.js";
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { VvIcon as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import { useI18n as
|
|
16
|
-
import { useDropZone as
|
|
17
|
-
import { storeToRefs as
|
|
11
|
+
import { t as ee } from "./PkChatbotEmptyState-COya3H3C.js";
|
|
12
|
+
import { t as te } from "./PkChatbotWakeupBar-DEP-d-Fp.js";
|
|
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 A, onUnmounted as fe, openBlock as j, provide as pe, ref as M, renderList as me, shallowRef as he, toDisplayString as N, toValue as P, unref as F, useTemplateRef as ge, watch as I, withCtx as L } from "vue";
|
|
15
|
+
import { useI18n as _e } from "vue-i18n";
|
|
16
|
+
import { useDropZone as ve, useResizeObserver as ye } from "@vueuse/core";
|
|
17
|
+
import { storeToRefs as be } from "pinia";
|
|
18
18
|
// ../../packages/composable/src/chatbot/useGreeting.ts
|
|
19
|
-
function
|
|
20
|
-
let { locale: n, t: r, te: i } =
|
|
21
|
-
return
|
|
19
|
+
function xe(e, t) {
|
|
20
|
+
let { locale: n, t: r, te: i } = _e({ useScope: "global" });
|
|
21
|
+
return S(() => Se(P(e)?.greeting?.[0]?.[n.value] ?? "", P(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Se(e, t) {
|
|
24
24
|
return (t ? e.replace(/\{name\}/g, t) : e.replace(/[,\s]*\{name\}[!?]?/g, "")).trim();
|
|
25
25
|
}
|
|
26
26
|
// ../../packages/components/src/chat/PkAuroraCanvas.vue?vue&type=script&setup=true&lang.ts
|
|
27
|
-
var
|
|
27
|
+
var R = {
|
|
28
28
|
key: 1,
|
|
29
29
|
class: "pk-aurora__fallback"
|
|
30
|
-
},
|
|
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)\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 // 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,26 +36,26 @@ var B = {
|
|
|
36
36
|
secondColor: {}
|
|
37
37
|
},
|
|
38
38
|
setup(e) {
|
|
39
|
-
let t = e, n =
|
|
39
|
+
let t = e, n = ge("rootEl"), r = ge("canvasEl"), i = M(!1), a = M(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
|
-
} : void 0), s = null, l = 0, u = null, d = null, f = null, p = null, m = null, h = null, g = null, _ = null, v = null,
|
|
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) => {
|
|
43
43
|
if (!s) return null;
|
|
44
44
|
let n = s.createShader(e);
|
|
45
45
|
return !n || (s.shaderSource(n, t), s.compileShader(n), !s.getShaderParameter(n, s.COMPILE_STATUS)) ? null : n;
|
|
46
|
-
},
|
|
46
|
+
}, ne = (e) => e.map((e) => e / 255), y = () => {
|
|
47
47
|
n.value && (a.value = c(n.value, {
|
|
48
48
|
mainColor: t.mainColor,
|
|
49
49
|
tones: t.tones,
|
|
50
50
|
secondColor: t.secondColor
|
|
51
|
-
}), s && !i.value && a.value && (s.uniform3f(g, ...
|
|
51
|
+
}), s && !i.value && a.value && (s.uniform3f(g, ...ne(a.value.first)), s.uniform3f(_, ...ne(a.value.second)), s.uniform1f(v, +!!a.value.duo), C(x() ? 10 : void 0)));
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
I([
|
|
54
54
|
() => t.mainColor,
|
|
55
55
|
() => t.tones,
|
|
56
56
|
() => t.secondColor
|
|
57
|
-
],
|
|
58
|
-
let
|
|
57
|
+
], y);
|
|
58
|
+
let b = () => {
|
|
59
59
|
if (!s || !r.value) return;
|
|
60
60
|
let e = Math.min(window.devicePixelRatio || 1, 1.5), { clientWidth: n, clientHeight: i } = r.value;
|
|
61
61
|
r.value.width = Math.max(1, Math.round(n * e)), r.value.height = Math.max(1, Math.round(i * e)), s.viewport(0, 0, r.value.width, r.value.height);
|
|
@@ -66,19 +66,19 @@ var B = {
|
|
|
66
66
|
let u = Number.parseFloat(getComputedStyle(r.value).getPropertyValue("--aurora-spread"));
|
|
67
67
|
s.uniform1f(h, Number.isNaN(u) ? 1 : u);
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
s && r.value && (s.uniform1f(d, e ?? (performance.now() -
|
|
72
|
-
},
|
|
73
|
-
|
|
69
|
+
C(x() ? 10 : void 0);
|
|
70
|
+
}, x = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches, C = (e) => {
|
|
71
|
+
s && r.value && (s.uniform1f(d, e ?? (performance.now() - ee) / 1e3), s.uniform2f(f, r.value.width, r.value.height), s.drawArrays(s.TRIANGLE_STRIP, 0, 4));
|
|
72
|
+
}, w = () => {
|
|
73
|
+
C(), l = requestAnimationFrame(w);
|
|
74
74
|
};
|
|
75
|
-
return
|
|
75
|
+
return de(() => {
|
|
76
76
|
let e = r.value;
|
|
77
|
-
if (
|
|
77
|
+
if (y(), s = e?.getContext("webgl", { alpha: !0 }) ?? null, !e || !s || !a.value) {
|
|
78
78
|
i.value = !0;
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
let t =
|
|
81
|
+
let t = te(s.VERTEX_SHADER, z), n = te(s.FRAGMENT_SHADER, Ce), o = s.createProgram();
|
|
82
82
|
if (!t || !n || !o || (s.attachShader(o, t), s.attachShader(o, n), s.linkProgram(o), !s.getProgramParameter(o, s.LINK_STATUS))) {
|
|
83
83
|
i.value = !0;
|
|
84
84
|
return;
|
|
@@ -96,28 +96,28 @@ var B = {
|
|
|
96
96
|
1
|
|
97
97
|
]), s.STATIC_DRAW);
|
|
98
98
|
let l = s.getAttribLocation(o, "a_position");
|
|
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"),
|
|
100
|
-
}),
|
|
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
|
+
}), ue(() => {
|
|
101
101
|
cancelAnimationFrame(l), u?.disconnect();
|
|
102
|
-
}),
|
|
102
|
+
}), fe(() => {
|
|
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) => (j(), T("div", {
|
|
108
108
|
ref_key: "rootEl",
|
|
109
109
|
ref: n,
|
|
110
110
|
class: "pk-aurora",
|
|
111
111
|
"aria-hidden": "true",
|
|
112
|
-
style:
|
|
113
|
-
}, [i.value ? (
|
|
112
|
+
style: le(o.value)
|
|
113
|
+
}, [i.value ? (j(), T("div", R)) : (j(), T("canvas", {
|
|
114
114
|
key: 0,
|
|
115
115
|
ref_key: "canvasEl",
|
|
116
116
|
ref: r,
|
|
117
117
|
class: "pk-aurora__canvas"
|
|
118
118
|
}, null, 512))], 4));
|
|
119
119
|
}
|
|
120
|
-
}),
|
|
120
|
+
}), B = .18, Te = .35, Ee = /* @__PURE__ */ ae({
|
|
121
121
|
__name: "PkVoiceOrb",
|
|
122
122
|
props: {
|
|
123
123
|
sample: {},
|
|
@@ -129,20 +129,20 @@ var B = {
|
|
|
129
129
|
bars: { default: 5 }
|
|
130
130
|
},
|
|
131
131
|
setup(e) {
|
|
132
|
-
let t = e, n =
|
|
132
|
+
let t = e, n = ge("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;
|
|
136
136
|
return Array.from({ length: i }, (n, r) => {
|
|
137
137
|
let i = .65 + .35 * Math.sin(t + r * .9);
|
|
138
|
-
return
|
|
138
|
+
return B + e * 2.4 * i;
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
let a = Math.max(1, Math.floor(n.length / 2)), o = Math.max(1, Math.floor(a / i));
|
|
142
142
|
return Array.from({ length: i }, (e, t) => {
|
|
143
143
|
let r = 0;
|
|
144
144
|
for (let e = 0; e < o; e += 1) r += n[t * o + e] ?? 0;
|
|
145
|
-
return
|
|
145
|
+
return B + r / o / 255 * 2.2;
|
|
146
146
|
});
|
|
147
147
|
}, s = () => {
|
|
148
148
|
let e = n.value?.children;
|
|
@@ -151,36 +151,36 @@ var B = {
|
|
|
151
151
|
});
|
|
152
152
|
}, c = () => {
|
|
153
153
|
let e = o();
|
|
154
|
-
r = r.map((t, n) => t + (Math.min(1, Math.max(
|
|
154
|
+
r = r.map((t, n) => t + (Math.min(1, Math.max(B, e[n] ?? B)) - t) * Te), s(), i = requestAnimationFrame(c);
|
|
155
155
|
}, l = () => {
|
|
156
156
|
i !== void 0 && (cancelAnimationFrame(i), i = void 0);
|
|
157
157
|
};
|
|
158
|
-
return
|
|
159
|
-
e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() =>
|
|
160
|
-
}, { immediate: !0 }),
|
|
161
|
-
class:
|
|
158
|
+
return I(() => t.state, async (e) => {
|
|
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) => (j(), T("div", {
|
|
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
|
+
}, [(j(!0), T(y, null, me(e.bars, (e) => (j(), T("span", {
|
|
168
168
|
key: e,
|
|
169
169
|
class: "pk-voice-orb__bar"
|
|
170
170
|
}))), 128))], 512)], 2));
|
|
171
171
|
}
|
|
172
|
-
}),
|
|
172
|
+
}), De = {
|
|
173
173
|
key: 0,
|
|
174
174
|
class: "pk-voice-session__badge",
|
|
175
175
|
"aria-hidden": "true"
|
|
176
|
-
},
|
|
176
|
+
}, V = {
|
|
177
177
|
class: "pk-voice-session__status",
|
|
178
178
|
role: "status"
|
|
179
|
-
},
|
|
179
|
+
}, H = {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: "pk-voice-session__live-dot",
|
|
182
182
|
"aria-hidden": "true"
|
|
183
|
-
},
|
|
183
|
+
}, Oe = ["title"], ke = ["title"], Ae = { class: "pk-voice-session__actions" }, je = /* @__PURE__ */ ae({
|
|
184
184
|
__name: "PkVoiceSession",
|
|
185
185
|
props: {
|
|
186
186
|
state: {},
|
|
@@ -199,17 +199,17 @@ var B = {
|
|
|
199
199
|
"dismiss"
|
|
200
200
|
],
|
|
201
201
|
setup(e, { emit: t }) {
|
|
202
|
-
let n = e, r = t, { t: i } =
|
|
202
|
+
let n = e, r = t, { t: i } = _e({ useScope: "global" }), a = S(() => n.error ? i("message.voiceFailed") : n.state === "connecting" ? i("message.voiceConnecting") : n.state === "speaking" ? i("message.voiceSpeaking") : n.muted ? i("message.voiceMuted") : i("message.voiceListening")), o = S(() => {
|
|
203
203
|
if (n.remainingSeconds === void 0) return;
|
|
204
204
|
let e = Math.floor(n.remainingSeconds / 60), t = n.remainingSeconds % 60;
|
|
205
205
|
return `${e}:${String(t).padStart(2, "0")}`;
|
|
206
|
-
}), s =
|
|
206
|
+
}), s = S(() => n.remainingSeconds !== void 0 && n.remainingSeconds <= 30), c = S(() => !n.error && (n.state === "listening" || n.state === "speaking")), l = S(() => {
|
|
207
207
|
if (c.value) return n.state === "speaking" ? "speaking" : n.muted ? void 0 : "listening";
|
|
208
208
|
});
|
|
209
209
|
return (t, n) => {
|
|
210
|
-
let u =
|
|
211
|
-
return
|
|
212
|
-
e.error ? (
|
|
210
|
+
let u = ne;
|
|
211
|
+
return j(), T("div", { class: k(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
|
|
212
|
+
e.error ? (j(), T("span", De, [D(u, { name: "ri:error-warning-line" })])) : (j(), C(Ee, {
|
|
213
213
|
key: 1,
|
|
214
214
|
state: e.state,
|
|
215
215
|
sample: e.sample,
|
|
@@ -219,37 +219,37 @@ var B = {
|
|
|
219
219
|
"sample",
|
|
220
220
|
"spectrum"
|
|
221
221
|
])),
|
|
222
|
-
|
|
222
|
+
E("div", V, [E("span", { class: k(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (j(), T("span", H)) : w("", !0), ie(" " + N(a.value), 1)], 2), e.error ? (j(), 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
|
+
}, N(e.error), 9, Oe)) : w("", !0)]),
|
|
227
|
+
o.value ? (j(), T("span", {
|
|
228
228
|
key: 2,
|
|
229
|
-
class:
|
|
230
|
-
title:
|
|
229
|
+
class: k(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
|
|
230
|
+
title: F(i)("hint.voiceRemaining"),
|
|
231
231
|
"aria-hidden": "true"
|
|
232
|
-
},
|
|
233
|
-
|
|
232
|
+
}, N(o.value), 11, ke)) : w("", !0),
|
|
233
|
+
E("div", Ae, [e.error ? (j(), T(y, { key: 0 }, [D(g, {
|
|
234
234
|
icon: "ri:refresh-line",
|
|
235
|
-
label:
|
|
235
|
+
label: F(i)("action.retry"),
|
|
236
236
|
onClick: n[0] ||= (e) => r("retry")
|
|
237
|
-
}, null, 8, ["label"]), e.live ? (
|
|
237
|
+
}, null, 8, ["label"]), e.live ? (j(), C(g, {
|
|
238
238
|
key: 0,
|
|
239
239
|
icon: "ri:stop-circle-line",
|
|
240
240
|
modifiers: "danger",
|
|
241
|
-
title:
|
|
242
|
-
"aria-label":
|
|
241
|
+
title: F(i)("action.hangUp"),
|
|
242
|
+
"aria-label": F(i)("action.hangUp"),
|
|
243
243
|
onClick: n[1] ||= (e) => r("hang-up")
|
|
244
|
-
}, null, 8, ["title", "aria-label"])) : (
|
|
244
|
+
}, null, 8, ["title", "aria-label"])) : (j(), C(g, {
|
|
245
245
|
key: 1,
|
|
246
246
|
icon: "ri:close-line",
|
|
247
|
-
label:
|
|
247
|
+
label: F(i)("action.close"),
|
|
248
248
|
onClick: n[2] ||= (e) => r("dismiss")
|
|
249
|
-
}, null, 8, ["label"]))], 64)) : (
|
|
249
|
+
}, null, 8, ["label"]))], 64)) : (j(), 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 ? F(i)("action.unmute") : F(i)("action.mute"),
|
|
252
|
+
"aria-label": e.muted ? F(i)("action.unmute") : F(i)("action.mute"),
|
|
253
253
|
"aria-pressed": e.muted,
|
|
254
254
|
onClick: n[3] ||= (e) => r("toggle-mute")
|
|
255
255
|
}, null, 8, [
|
|
@@ -257,18 +257,18 @@ var B = {
|
|
|
257
257
|
"title",
|
|
258
258
|
"aria-label",
|
|
259
259
|
"aria-pressed"
|
|
260
|
-
]),
|
|
260
|
+
]), D(g, {
|
|
261
261
|
icon: "ri:stop-circle-line",
|
|
262
262
|
modifiers: "danger",
|
|
263
|
-
title:
|
|
264
|
-
"aria-label":
|
|
263
|
+
title: F(i)("action.hangUp"),
|
|
264
|
+
"aria-label": F(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
|
-
}),
|
|
271
|
-
let t =
|
|
270
|
+
}), Me = (e) => {
|
|
271
|
+
let t = he(), n = M("disconnected"), r = M("listening"), i = M(), o = M([]), s = M(), c = M(), 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 = () => {
|
|
@@ -340,9 +340,9 @@ var B = {
|
|
|
340
340
|
}
|
|
341
341
|
}, v = () => {
|
|
342
342
|
i.value = void 0;
|
|
343
|
-
}, y = (e) => {
|
|
344
|
-
t.value?.setMicMuted(e);
|
|
345
343
|
}, ee = (e) => {
|
|
344
|
+
t.value?.setMicMuted(e);
|
|
345
|
+
}, te = (e) => {
|
|
346
346
|
let n = t.value;
|
|
347
347
|
if (!n || !e.trim()) return !1;
|
|
348
348
|
try {
|
|
@@ -350,7 +350,7 @@ var B = {
|
|
|
350
350
|
} catch (e) {
|
|
351
351
|
return a.warn("The spoken answer could not be sent", e), !1;
|
|
352
352
|
}
|
|
353
|
-
},
|
|
353
|
+
}, ne = (e) => {
|
|
354
354
|
let n = t.value;
|
|
355
355
|
if (!n) return 0;
|
|
356
356
|
try {
|
|
@@ -358,21 +358,21 @@ var B = {
|
|
|
358
358
|
} catch {
|
|
359
359
|
return 0;
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, y = (e) => {
|
|
362
362
|
let n = t.value;
|
|
363
363
|
if (n) try {
|
|
364
364
|
return e === "input" ? n.getInputByteFrequencyData() : n.getOutputByteFrequencyData();
|
|
365
365
|
} catch {
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
368
|
-
},
|
|
368
|
+
}, b = () => {
|
|
369
369
|
let e = l;
|
|
370
370
|
l = void 0, d += 1, p(), h(e);
|
|
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",
|
|
375
|
-
f = !0, typeof window < "u" && window.removeEventListener("pagehide",
|
|
374
|
+
return typeof window < "u" && window.addEventListener("pagehide", b), A(() => {
|
|
375
|
+
f = !0, typeof window < "u" && window.removeEventListener("pagehide", b), g();
|
|
376
376
|
}), {
|
|
377
377
|
status: n,
|
|
378
378
|
mode: r,
|
|
@@ -380,33 +380,33 @@ var B = {
|
|
|
380
380
|
transcript: o,
|
|
381
381
|
remainingSeconds: s,
|
|
382
382
|
chatId: c,
|
|
383
|
-
isActive:
|
|
384
|
-
isConnecting:
|
|
385
|
-
isSpeaking:
|
|
386
|
-
isListening:
|
|
383
|
+
isActive: S(() => n.value === "connected" || n.value === "connecting"),
|
|
384
|
+
isConnecting: S(() => n.value === "connecting"),
|
|
385
|
+
isSpeaking: S(() => n.value === "connected" && r.value === "speaking"),
|
|
386
|
+
isListening: S(() => n.value === "connected" && r.value === "listening"),
|
|
387
387
|
start: _,
|
|
388
388
|
stop: g,
|
|
389
389
|
dismissError: v,
|
|
390
|
-
setMuted:
|
|
391
|
-
sendUserMessage:
|
|
392
|
-
readLevel:
|
|
393
|
-
readSpectrum:
|
|
390
|
+
setMuted: ee,
|
|
391
|
+
sendUserMessage: te,
|
|
392
|
+
readLevel: ne,
|
|
393
|
+
readSpectrum: y
|
|
394
394
|
};
|
|
395
|
-
},
|
|
396
|
-
function
|
|
397
|
-
|
|
395
|
+
}, Ne = Symbol("ChatFilePreviewDock");
|
|
396
|
+
function Pe(e) {
|
|
397
|
+
pe(Ne, e);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
return
|
|
399
|
+
function Fe() {
|
|
400
|
+
return oe(Ne, void 0);
|
|
401
401
|
}
|
|
402
402
|
// ../../packages/components/src/chat/useWakeupWatch.ts
|
|
403
|
-
var
|
|
403
|
+
var Ie = 4e3, Le = [
|
|
404
404
|
3e3,
|
|
405
405
|
5e3,
|
|
406
406
|
1e4
|
|
407
|
-
],
|
|
408
|
-
function
|
|
409
|
-
let t =
|
|
407
|
+
], Re = 12e4, U = 3e4;
|
|
408
|
+
function ze(e) {
|
|
409
|
+
let t = M(null), n = M(!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));
|
|
@@ -423,12 +423,12 @@ function Le(e) {
|
|
|
423
423
|
}
|
|
424
424
|
let r = t.value;
|
|
425
425
|
if (r) {
|
|
426
|
-
let e = Date.parse(r.dueAt) - Date.now() +
|
|
427
|
-
o(Math.max(
|
|
426
|
+
let e = Date.parse(r.dueAt) - Date.now() + Ie;
|
|
427
|
+
o(Math.max(Ie, e), () => l(r.wakeId, Date.now(), 0));
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
async function l(t, n, r) {
|
|
431
|
-
await e.refreshMessages(), !i && (s(t) || Date.now() - n >=
|
|
431
|
+
await e.refreshMessages(), !i && (s(t) || Date.now() - n >= Re ? await c() : o(Le[Math.min(r, Le.length - 1)], () => l(t, n, r + 1)));
|
|
432
432
|
}
|
|
433
433
|
async function u() {
|
|
434
434
|
n.value = !0;
|
|
@@ -452,23 +452,23 @@ function Le(e) {
|
|
|
452
452
|
function h() {
|
|
453
453
|
f = void 0;
|
|
454
454
|
}
|
|
455
|
-
let g =
|
|
456
|
-
|
|
455
|
+
let g = S(() => e.messages().some((e) => e.role === "user"));
|
|
456
|
+
I([e.chatId, g], ([, t]) => {
|
|
457
457
|
d();
|
|
458
458
|
let n = e.status(), r = n === "submitted" || n === "streaming" || f === e.chatId();
|
|
459
459
|
t && !r && c();
|
|
460
|
-
}, { immediate: !0 }),
|
|
460
|
+
}, { immediate: !0 }), I(e.status, (e, t) => {
|
|
461
461
|
e === "ready" && t !== "ready" && g.value && c();
|
|
462
462
|
});
|
|
463
463
|
let _;
|
|
464
464
|
function v() {
|
|
465
465
|
t.value && document.visibilityState === "visible" && e.apiClient().markChatWakeupPresence(e.agentId(), e.chatId()).catch(() => void 0);
|
|
466
466
|
}
|
|
467
|
-
let
|
|
468
|
-
return document.addEventListener("visibilitychange",
|
|
469
|
-
clearInterval(_), _ = void 0, e && !i && (v(), _ = setInterval(v,
|
|
470
|
-
}),
|
|
471
|
-
i = !0, a(), clearInterval(_), document.removeEventListener("visibilitychange",
|
|
467
|
+
let ee = () => v();
|
|
468
|
+
return document.addEventListener("visibilitychange", ee), I(() => t.value?.wakeId, (e) => {
|
|
469
|
+
clearInterval(_), _ = void 0, e && !i && (v(), _ = setInterval(v, U));
|
|
470
|
+
}), ue(() => {
|
|
471
|
+
i = !0, a(), clearInterval(_), document.removeEventListener("visibilitychange", ee);
|
|
472
472
|
}), {
|
|
473
473
|
pendingWakeup: t,
|
|
474
474
|
isStopping: n,
|
|
@@ -480,49 +480,128 @@ function Le(e) {
|
|
|
480
480
|
forgetSpokenTurns: h
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
// ../../packages/components/src/chat/
|
|
484
|
-
|
|
485
|
-
let
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
483
|
+
// ../../packages/components/src/chat/previewChanges.ts
|
|
484
|
+
var Be = 1e6, W = (e, t) => {
|
|
485
|
+
let n = 0;
|
|
486
|
+
for (; n < e.length && n < t.length && e[n] === t[n];) n += 1;
|
|
487
|
+
let r = 0;
|
|
488
|
+
for (; r < e.length - n && r < t.length - n && e[e.length - 1 - r] === t[t.length - 1 - r];) r += 1;
|
|
489
|
+
let i = e.length - n - r, a = t.length - n - r, o = /* @__PURE__ */ new Map(), s = (e, t, n, r) => {
|
|
490
|
+
for (let i = n; i < r; i++) {
|
|
491
|
+
let r = e + (i - n);
|
|
492
|
+
o.set(i, r < t ? r : void 0);
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
if (!a) return o;
|
|
496
|
+
if (!i || i * a > Be) return s(n, n + i, n, n + a), o;
|
|
497
|
+
let c = new Uint32Array((i + 1) * (a + 1));
|
|
498
|
+
for (let r = i - 1; r >= 0; r--) for (let i = a - 1; i >= 0; i--) c[r * (a + 1) + i] = e[n + r] === t[n + i] ? c[(r + 1) * (a + 1) + i + 1] + 1 : Math.max(c[(r + 1) * (a + 1) + i], c[r * (a + 1) + i + 1]);
|
|
499
|
+
let l = 0, u = 0, d = 0, f = 0;
|
|
500
|
+
for (; l < i && u < a;) e[n + l] === t[n + u] ? (s(n + d, n + l, n + f, n + u), l += 1, u += 1, d = l, f = u) : c[(l + 1) * (a + 1) + u] >= c[l * (a + 1) + u + 1] ? l += 1 : u += 1;
|
|
501
|
+
return s(n + d, n + i, n + f, n + a), o;
|
|
502
|
+
}, Ve = (e, t) => e === "id" || e === "ids" ? void 0 : t, G = (e) => JSON.stringify(e, Ve), He = (e, t) => {
|
|
503
|
+
let n = (e) => e.flatMap((e) => e.ids ?? []);
|
|
504
|
+
return t?.kind === "table" ? [...W(t.rows.map(G), e.rows.map(G))].flatMap(([r, i]) => {
|
|
505
|
+
let a = i === void 0 ? void 0 : t.rows[i];
|
|
506
|
+
return n(e.rows[r].filter((e, t) => !a?.[t] || G(a[t]) !== G(e)));
|
|
507
|
+
}) : n(e.rows.flat());
|
|
508
|
+
}, Ue = (e, t) => {
|
|
509
|
+
let n = /* @__PURE__ */ new Set(), r = W(e.blocks.map(G), t.blocks.map(G));
|
|
510
|
+
for (let [i, a] of r) {
|
|
511
|
+
let r = t.blocks[i];
|
|
512
|
+
if (r.kind === "table") {
|
|
513
|
+
let t = a === void 0 ? void 0 : e.blocks[a];
|
|
514
|
+
for (let e of He(r, t)) n.add(e);
|
|
515
|
+
} else r.id && n.add(r.id);
|
|
516
|
+
}
|
|
517
|
+
return n;
|
|
518
|
+
}, K = (e, t) => {
|
|
519
|
+
let n = /* @__PURE__ */ new Map();
|
|
520
|
+
for (let r of t.rows) for (let t of r.cells) n.set(`${r.row}:${t.col}`, JSON.stringify({
|
|
521
|
+
...t,
|
|
522
|
+
style: t.style === void 0 ? void 0 : e.styles[t.style],
|
|
523
|
+
numFmt: t.numFmt === void 0 ? void 0 : e.numberFormats?.[t.numFmt]
|
|
524
|
+
}));
|
|
525
|
+
return n;
|
|
526
|
+
}, We = (e, t) => {
|
|
527
|
+
let n = /* @__PURE__ */ new Map();
|
|
528
|
+
for (let r of t.sheets) {
|
|
529
|
+
let i = e.sheets.find((e) => e.name === r.name), a = K(t, r), o = i ? K(e, i) : /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
|
|
530
|
+
for (let [e, t] of a) o.get(e) !== t && s.add(e);
|
|
531
|
+
for (let e of o.keys()) a.has(e) || s.add(e);
|
|
532
|
+
s.size && n.set(r.name, s);
|
|
533
|
+
}
|
|
534
|
+
return n;
|
|
535
|
+
}, Ge = (e, t) => {
|
|
536
|
+
if (e.kind === "word" && t.kind === "word") {
|
|
537
|
+
let n = Ue(e, t);
|
|
538
|
+
return n.size ? {
|
|
539
|
+
kind: "word",
|
|
540
|
+
paragraphs: n
|
|
541
|
+
} : void 0;
|
|
542
|
+
}
|
|
543
|
+
if (e.kind === "spreadsheet" && t.kind === "spreadsheet") {
|
|
544
|
+
let n = We(e, t);
|
|
545
|
+
return n.size ? {
|
|
546
|
+
kind: "spreadsheet",
|
|
547
|
+
cells: n
|
|
548
|
+
} : void 0;
|
|
549
|
+
}
|
|
550
|
+
}, Ke = (e, t) => {
|
|
551
|
+
let n = e?.querySelector(t);
|
|
552
|
+
if (!e || !n) return !1;
|
|
553
|
+
let r = e.getBoundingClientRect(), i = n.getBoundingClientRect();
|
|
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
|
+
}, qe = 4e3;
|
|
556
|
+
function Je(e) {
|
|
557
|
+
let t = M(), n = M(), r = M(!1), i = M(!1), a = he(), o = /* @__PURE__ */ new Map(), s, c = 0, l = 0, u = () => {
|
|
558
|
+
clearTimeout(s), a.value = void 0;
|
|
559
|
+
}, d = (e, t) => {
|
|
560
|
+
u();
|
|
561
|
+
let r = e && t ? Ge(t, e) : void 0;
|
|
562
|
+
r && (a.value = r, s = setTimeout(u, qe)), n.value = e;
|
|
563
|
+
}, f = async (n, a) => {
|
|
564
|
+
let s = ++c, u = l, f = a ? o.get(a) : void 0;
|
|
565
|
+
t.value = n, i.value = !1;
|
|
566
|
+
let p = o.get(n.storedFileName);
|
|
567
|
+
if (d(p, f), r.value = !1, p) return;
|
|
490
568
|
r.value = !0;
|
|
491
|
-
let
|
|
569
|
+
let m = () => s === c;
|
|
492
570
|
try {
|
|
493
|
-
let t = await e(
|
|
494
|
-
u ===
|
|
571
|
+
let t = await e(n.storedFileName);
|
|
572
|
+
u === l && o.set(n.storedFileName, t), m() && d(t, f);
|
|
495
573
|
} catch {
|
|
496
|
-
|
|
574
|
+
m() && (i.value = !0);
|
|
497
575
|
} finally {
|
|
498
|
-
|
|
576
|
+
m() && (r.value = !1);
|
|
499
577
|
}
|
|
500
|
-
},
|
|
501
|
-
t.value = void 0,
|
|
578
|
+
}, p = () => {
|
|
579
|
+
t.value = void 0, c += 1, u();
|
|
502
580
|
};
|
|
503
581
|
return {
|
|
504
582
|
target: t,
|
|
505
583
|
preview: n,
|
|
506
584
|
loading: r,
|
|
507
585
|
error: i,
|
|
508
|
-
|
|
509
|
-
|
|
586
|
+
changes: a,
|
|
587
|
+
open: f,
|
|
588
|
+
close: p,
|
|
510
589
|
reset: () => {
|
|
511
|
-
|
|
590
|
+
p(), o.clear(), l += 1;
|
|
512
591
|
}
|
|
513
592
|
};
|
|
514
593
|
}
|
|
515
594
|
// ../../packages/components/src/chat/PkChatbotViewChat.vue?vue&type=script&setup=true&lang.ts
|
|
516
|
-
var
|
|
595
|
+
var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
|
|
517
596
|
key: 1,
|
|
518
597
|
class: "p-md border-t border-surface-3 text-center text-12 text-danger bg-surface-danger"
|
|
519
|
-
},
|
|
598
|
+
}, Ze = { class: "pk-chatbot-view-chat__agent-chip" }, Qe = {
|
|
520
599
|
key: 0,
|
|
521
600
|
class: "pk-chatbot-view-chat__agent-chip-name"
|
|
522
|
-
},
|
|
601
|
+
}, $e = {
|
|
523
602
|
key: 0,
|
|
524
603
|
class: "pk-chatbot-view-chat__drop-overlay"
|
|
525
|
-
},
|
|
604
|
+
}, et = 1e3, tt = 3e3, nt = 6e4, rt = 3e5, it = 6e5, at = /* @__PURE__ */ ae({
|
|
526
605
|
__name: "PkChatbotViewChat",
|
|
527
606
|
props: {
|
|
528
607
|
agentId: {},
|
|
@@ -535,149 +614,149 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
535
614
|
"selection-action"
|
|
536
615
|
],
|
|
537
616
|
setup(a, { emit: c }) {
|
|
538
|
-
let g =
|
|
539
|
-
|
|
540
|
-
let _t =
|
|
541
|
-
|
|
617
|
+
let g = O(() => import("./PkToolShowForm-CKXpqQxy.js").then((e) => e.n)), y = O(() => import("./PkToolShowContactForm-iQrlqv7j.js").then((e) => e.n)), ie = O(() => import("./PkToolShowSuggestedReply-BRIzGNwx.js").then((e) => e.n)), ae = O(() => import("./PkToolShowSources-BiP9fVV2.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-C-43uUoh.js")), A = O(() => import("./PkToolChatFile-DAT1tv52.js").then((e) => e.n)), fe = O(() => import("./PkToolShareDocument-Qb2Lu5vh.js").then((e) => e.n)), me = O(() => import("./PkFilePreview-B26pY-C2.js").then((e) => e.n)), he = O(() => import("./PkFilePreviewDialog-Dy5jmAom.js").then((e) => e.n)), P = a, Se = c, R = r(P.agentId), { agentInterface: z, agentFileUpload: Ce, agentType: B, agentVoice: Te, actions: Ee, revisedAnswers: De, messages: V, chat: H, messageFeedbacks: Oe, feedbackDialogMessage: ke, isFeedbackSubmitting: Ae, isFeedbackSubmitted: Ne, feedbackSubmitError: Pe, isLeadSubmitted: Ie, isLoadingSubmitLead: Le, submitLeadError: Re, input: U, inputMessagePlaceholder: 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
|
+
pe(f, ot), pe(d, st);
|
|
619
|
+
let _t = ge("inputEl");
|
|
620
|
+
I(ft, () => {
|
|
542
621
|
_t.value?.focus();
|
|
543
|
-
}),
|
|
622
|
+
}), I(pt, (e) => {
|
|
544
623
|
e && _t.value?.focus();
|
|
545
624
|
});
|
|
546
|
-
let vt =
|
|
625
|
+
let vt = S(() => pt.value ? {
|
|
547
626
|
kind: pt.value.kind,
|
|
548
627
|
label: pt.value.label
|
|
549
|
-
} : void 0), yt =
|
|
550
|
-
let e =
|
|
628
|
+
} : void 0), yt = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => K.value.getMediaDownloadUrl(P.agentId, R.localChatId, e), { handleSubmit: bt, stopGeneration: xt, regenerate: St, onUpvote: Ct, onDownvote: wt, onFeedback: Tt, onFeedbackSubmit: Et, onLeadSubmit: Dt, startNewChat: Ot, addToolOutput: kt, addToolApprovalResponse: At, handleFileSelect: jt, discardPendingAttachment: Mt, clearFileLimitError: Nt, refreshMessages: Pt, appendMessage: Ft, closePageNotice: It, respondHostConfirmation: Lt, editQueuedMessage: Rt, removeQueuedMessage: zt, openBackgroundAnswer: Bt, dismissBackgroundAnswer: Vt } = R, { t: J } = _e({ useScope: "global" }), Ht = S(() => Ge.value > 0), Ut = S(() => Ht.value && H.value.status === "ready" ? "streaming" : H.value.status), Wt = m(() => at.value?.notice), Gt = S(() => Ke.value ? Wt.value || J(`message.pageAccessNotice.${Ke.value}`) : void 0), Kt = S(() => {
|
|
629
|
+
let e = Ue.value;
|
|
551
630
|
if (e) return e.reason === "per-chat" ? J("message.fileLimitPerChat", { max: e.max }) : J("message.fileLimitPerMessage", { max: e.max });
|
|
552
|
-
}), qt =
|
|
631
|
+
}), qt = S(() => dt.value.map(({ chatId: e, title: t }) => ({
|
|
553
632
|
id: e,
|
|
554
633
|
text: t ? J("message.backgroundAnswerReady", { title: t }) : J("message.backgroundAnswerReadyUntitled")
|
|
555
|
-
}))), Jt = m(() =>
|
|
556
|
-
|
|
634
|
+
}))), Jt = m(() => z.value?.dismissableNotice), Yt = S(() => V.value.some((e) => e.role === "user")), Xt = S(() => P.modifier === "fullscreen" && !Yt.value), Zt = xe(z, () => P.userName), Qt = ge("chatViewEl"), $t = Fe(), en = S(() => !!$t?.value), tn = S(() => $t?.value ?? "body"), nn = M(0), rn = M(0);
|
|
635
|
+
ye([Qt, S(() => $t?.value ?? void 0)], (e) => {
|
|
557
636
|
for (let t of e) {
|
|
558
637
|
let e = t.borderBoxSize?.[0]?.inlineSize ?? t.contentRect.width;
|
|
559
638
|
t.target === Qt.value ? nn.value = e : rn.value = e;
|
|
560
639
|
}
|
|
561
640
|
}, { box: "border-box" });
|
|
562
|
-
let an =
|
|
563
|
-
let
|
|
564
|
-
return
|
|
565
|
-
},
|
|
566
|
-
|
|
567
|
-
},
|
|
641
|
+
let an = S(() => nn.value + (en.value ? rn.value : 0) >= et), on = S(() => nn.value > 0 && nn.value < 576), { target: Y, preview: sn, loading: cn, error: ln, changes: un, open: dn, close: fn, reset: pn } = Je((e) => K.value.getChatFilePreview(P.agentId, R.localChatId, e)), X = M({}), mn = (e, t) => {
|
|
642
|
+
let n = (e) => e?.fileId ?? e?.storedFileName;
|
|
643
|
+
return n(e) !== n(Y.value) && (X.value = {}), dn(e, t);
|
|
644
|
+
}, hn = M(!1), gn = S(() => !!Y.value && an.value && !hn.value), _n = () => {
|
|
645
|
+
fn(), hn.value = !1;
|
|
646
|
+
}, vn = /* @__PURE__ */ new Set([
|
|
568
647
|
"tool-editSpreadsheet",
|
|
569
648
|
"tool-editWordDocument",
|
|
570
649
|
"tool-createSpreadsheet",
|
|
571
650
|
"tool-createWordDocument"
|
|
572
|
-
]),
|
|
651
|
+
]), yn = S(() => {
|
|
573
652
|
let e = /* @__PURE__ */ new Map();
|
|
574
|
-
for (let t of
|
|
653
|
+
for (let t of V.value) for (let n of t.parts) {
|
|
575
654
|
let { type: t, state: r, output: i } = n;
|
|
576
|
-
if (
|
|
655
|
+
if (vn.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
|
|
577
656
|
let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
|
|
578
657
|
t.set(i.version, i.storedFileName), e.set(i.fileId, t);
|
|
579
658
|
}
|
|
580
659
|
}
|
|
581
660
|
for (let [t, n] of e) n.has(1) || n.set(1, t);
|
|
582
661
|
return e;
|
|
583
|
-
}),
|
|
584
|
-
let
|
|
585
|
-
|
|
586
|
-
...
|
|
662
|
+
}), bn = S(() => [...yn.value.get(Y.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), xn = (e, t) => {
|
|
663
|
+
let n = Y.value, r = yn.value.get(n?.fileId ?? "")?.get(e);
|
|
664
|
+
n && r && mn({
|
|
665
|
+
...n,
|
|
587
666
|
version: e,
|
|
588
|
-
storedFileName:
|
|
589
|
-
});
|
|
590
|
-
},
|
|
591
|
-
let e = Y.value, t =
|
|
667
|
+
storedFileName: r
|
|
668
|
+
}, t);
|
|
669
|
+
}, Sn = S(() => {
|
|
670
|
+
let e = Y.value, t = bn.value;
|
|
592
671
|
return !!$.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
|
|
593
|
-
}),
|
|
672
|
+
}), Cn = () => {
|
|
594
673
|
let e = Y.value;
|
|
595
674
|
e?.fileId && e.version && ($.value?.({
|
|
596
675
|
fileId: e.fileId,
|
|
597
676
|
version: e.version,
|
|
598
677
|
filename: e.filename
|
|
599
|
-
}),
|
|
678
|
+
}), _n());
|
|
600
679
|
};
|
|
601
|
-
|
|
680
|
+
I(() => R.localChatId, pn), I(() => {
|
|
602
681
|
let e = Y.value?.fileId;
|
|
603
682
|
return e ? {
|
|
604
683
|
fileId: e,
|
|
605
|
-
newest: Math.max(0, ...
|
|
684
|
+
newest: Math.max(0, ...bn.value)
|
|
606
685
|
} : void 0;
|
|
607
686
|
}, (e, t) => {
|
|
608
|
-
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 && xn(e.newest, Y.value.storedFileName);
|
|
609
688
|
});
|
|
610
|
-
let
|
|
611
|
-
let e =
|
|
612
|
-
if (!(
|
|
613
|
-
}),
|
|
614
|
-
|
|
689
|
+
let wn = S(() => {
|
|
690
|
+
let e = H.value?.status;
|
|
691
|
+
if (!(W.value || e === "submitted" || e === "streaming")) return Y.value?.kind === "word" ? gt.value?.word : gt.value?.excel;
|
|
692
|
+
}), Tn = (e, t, n) => {
|
|
693
|
+
R.sendSelection(e, { filePointer: t }) && Se("selection-action", {
|
|
615
694
|
surface: t.format === "docx" ? "word" : "excel",
|
|
616
695
|
action: n.id,
|
|
617
696
|
state: "chat",
|
|
618
697
|
size: String(n.size)
|
|
619
698
|
});
|
|
620
|
-
},
|
|
621
|
-
let t = await K.value.downloadSourceDocument(
|
|
699
|
+
}, En = async (e) => (await K.value.expandSourceContext(P.agentId, e.documentId, e.chunkIndex)).content, Dn = async (e) => {
|
|
700
|
+
let t = await K.value.downloadSourceDocument(P.agentId, e);
|
|
622
701
|
window.open(t.downloadUrl, "_blank");
|
|
623
|
-
}, { isOverDropZone:
|
|
702
|
+
}, { isOverDropZone: On } = ve(Qt, {
|
|
624
703
|
dataTypes: (e) => t(e, yt.value?.allowedMimeTypes ?? []),
|
|
625
704
|
onDrop: (e) => {
|
|
626
705
|
if (yt.value?.enabled && e) for (let t of e) jt(t);
|
|
627
706
|
}
|
|
628
|
-
}),
|
|
707
|
+
}), kn = M(!1), An = !1, Z = M(!1), jn = [
|
|
629
708
|
3e3,
|
|
630
709
|
5e3,
|
|
631
710
|
1e4
|
|
632
|
-
],
|
|
633
|
-
function
|
|
634
|
-
clearTimeout(
|
|
711
|
+
], Mn, Nn, Pn = !1, Fn = 0, In = !1;
|
|
712
|
+
function Ln() {
|
|
713
|
+
clearTimeout(Mn), Mn = void 0, Nn = void 0, Pn = !1, Fn = 0, Z.value = !1;
|
|
635
714
|
}
|
|
636
|
-
function
|
|
637
|
-
|
|
638
|
-
|
|
715
|
+
function Rn(e) {
|
|
716
|
+
An || (clearTimeout(Mn), Mn = setTimeout(() => {
|
|
717
|
+
zn();
|
|
639
718
|
}, e));
|
|
640
719
|
}
|
|
641
|
-
async function
|
|
642
|
-
if (
|
|
643
|
-
|
|
720
|
+
async function zn() {
|
|
721
|
+
if (An || In) return;
|
|
722
|
+
In = !0;
|
|
644
723
|
let e;
|
|
645
724
|
try {
|
|
646
725
|
e = await Pt();
|
|
647
726
|
} finally {
|
|
648
|
-
|
|
727
|
+
In = !1;
|
|
649
728
|
}
|
|
650
|
-
if (
|
|
651
|
-
if (e === "caught-up" && (Z.value = !1,
|
|
652
|
-
|
|
729
|
+
if (An) return;
|
|
730
|
+
if (e === "caught-up" && (Z.value = !1, hr()), Q.isActive.value) {
|
|
731
|
+
Nn = void 0, Pn = !1, Fn = 0, Rn(tt);
|
|
653
732
|
return;
|
|
654
733
|
}
|
|
655
|
-
|
|
656
|
-
let t = Date.now() -
|
|
657
|
-
if (e === "caught-up" && t >= (
|
|
658
|
-
|
|
734
|
+
Nn === void 0 && (Nn = Date.now(), Pn = !!Q.error.value);
|
|
735
|
+
let t = Date.now() - Nn;
|
|
736
|
+
if (e === "caught-up" && t >= (Pn ? rt : nt) || t >= it) {
|
|
737
|
+
Ln(), gr();
|
|
659
738
|
return;
|
|
660
739
|
}
|
|
661
|
-
let n =
|
|
662
|
-
|
|
740
|
+
let n = jn[Math.min(Fn, jn.length - 1)];
|
|
741
|
+
Fn += 1, Rn(n);
|
|
663
742
|
}
|
|
664
|
-
let
|
|
665
|
-
|
|
666
|
-
},
|
|
743
|
+
let Bn = (e = 1200) => {
|
|
744
|
+
Rn(e);
|
|
745
|
+
}, Vn, Q = Me({
|
|
667
746
|
fetchGrant: async () => {
|
|
668
|
-
|
|
669
|
-
let e = await K.value.createVoiceSession(
|
|
670
|
-
deviceContext:
|
|
671
|
-
externalContext:
|
|
672
|
-
pageTools:
|
|
673
|
-
...
|
|
747
|
+
Vn = R.voicePageTools();
|
|
748
|
+
let e = await K.value.createVoiceSession(P.agentId, R.localChatId, {
|
|
749
|
+
deviceContext: R.buildDeviceContext(),
|
|
750
|
+
externalContext: R.externalContext,
|
|
751
|
+
pageTools: Vn?.declaration,
|
|
752
|
+
...R.confirmationMode === "automatic" && { confirmations: "automatic" }
|
|
674
753
|
});
|
|
675
|
-
return e.chatId !==
|
|
754
|
+
return e.chatId !== R.localChatId && (R.localChatId = e.chatId), e;
|
|
676
755
|
},
|
|
677
|
-
closeGrant: (e) => K.value.closeVoiceSession(
|
|
678
|
-
clientTools: () =>
|
|
756
|
+
closeGrant: (e) => K.value.closeVoiceSession(P.agentId, e),
|
|
757
|
+
clientTools: () => Vn?.clientTools,
|
|
679
758
|
onTranscript: (e) => {
|
|
680
|
-
e.role === "user" ? (Z.value = !0,
|
|
759
|
+
e.role === "user" ? (Z.value = !0, mr(), Ft({
|
|
681
760
|
id: `${i}user-${n()}`,
|
|
682
761
|
role: "user",
|
|
683
762
|
parts: [{
|
|
@@ -687,166 +766,166 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
687
766
|
})) : Z.value = !1;
|
|
688
767
|
},
|
|
689
768
|
onTurnEnd: () => {
|
|
690
|
-
|
|
769
|
+
Bn();
|
|
691
770
|
}
|
|
692
771
|
});
|
|
693
|
-
|
|
694
|
-
e ||
|
|
695
|
-
}),
|
|
772
|
+
I(() => Q.isActive.value, (e) => {
|
|
773
|
+
e || R.cancelVoicePageCalls();
|
|
774
|
+
}), I(() => Q.error.value, (e) => {
|
|
696
775
|
e && (Z.value = !1);
|
|
697
776
|
});
|
|
698
|
-
let
|
|
777
|
+
let Hn = S(() => Te.value?.enabled === !0), Un = S(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), Wn = S(() => {
|
|
699
778
|
let e = Q.error.value;
|
|
700
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");
|
|
701
|
-
}),
|
|
702
|
-
|
|
703
|
-
},
|
|
704
|
-
Z.value = !1, await Q.stop(), !
|
|
705
|
-
},
|
|
780
|
+
}), Gn = S(() => Q.isSpeaking.value ? "output" : "input"), Kn = () => Q.readLevel(Gn.value), qn = () => Q.readSpectrum(Gn.value), Jn = async () => {
|
|
781
|
+
kn.value = !1, await Q.start(), Q.isActive.value && (Ln(), Rn(tt));
|
|
782
|
+
}, Yn = async () => {
|
|
783
|
+
Z.value = !1, await Q.stop(), !An && Bn(0);
|
|
784
|
+
}, Xn = () => {
|
|
706
785
|
Q.dismissError();
|
|
707
|
-
},
|
|
708
|
-
Q.dismissError(), await Q.stop(), await
|
|
709
|
-
},
|
|
710
|
-
|
|
786
|
+
}, Zn = async () => {
|
|
787
|
+
Q.dismissError(), await Q.stop(), await Jn();
|
|
788
|
+
}, Qn = (e) => e?.toolCallId ?? "", $n = M(/* @__PURE__ */ new Set()), er = (e) => $n.value.has(Qn(e)), tr = M(/* @__PURE__ */ new Map()), nr = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && ($n.value = new Set($n.value).add(Qn(e)), Bn()), !0) : !1, rr = (e, t, n) => {
|
|
789
|
+
nr(t, l(t, n)) || kt({
|
|
711
790
|
tool: e,
|
|
712
|
-
toolCallId:
|
|
791
|
+
toolCallId: Qn(t),
|
|
713
792
|
output: n
|
|
714
793
|
});
|
|
715
|
-
},
|
|
794
|
+
}, ir = (e) => {
|
|
716
795
|
let t = e.confirmed ? J("message.voiceConfirmed") : J("message.voiceCancelled");
|
|
717
|
-
|
|
796
|
+
nr({ toolCallId: e.toolCallId }, t) ? $n.value.has(e.toolCallId) && (tr.value = new Map(tr.value).set(e.toolCallId, e.confirmed)) : kt({
|
|
718
797
|
tool: "requestConfirm",
|
|
719
798
|
toolCallId: e.toolCallId,
|
|
720
799
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
721
800
|
});
|
|
722
|
-
},
|
|
801
|
+
}, ar = S(() => {
|
|
723
802
|
let e = /* @__PURE__ */ new Map();
|
|
724
|
-
for (let t of
|
|
803
|
+
for (let t of V.value) for (let n of t.parts) {
|
|
725
804
|
let { type: t, state: r, output: i } = n;
|
|
726
|
-
|
|
805
|
+
vn.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
|
|
727
806
|
}
|
|
728
807
|
return e;
|
|
729
|
-
}),
|
|
808
|
+
}), or = S(() => {
|
|
730
809
|
let e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
731
810
|
if (t && n) {
|
|
732
811
|
let r = t.toLowerCase();
|
|
733
812
|
e.set(r, (e.get(r) ?? /* @__PURE__ */ new Set()).add(n));
|
|
734
813
|
}
|
|
735
814
|
};
|
|
736
|
-
for (let e of
|
|
815
|
+
for (let e of V.value) for (let n of e.parts) {
|
|
737
816
|
if (o(n)) {
|
|
738
817
|
t(n.filename, s(n)?.storedFileName);
|
|
739
818
|
continue;
|
|
740
819
|
}
|
|
741
820
|
let { type: e, state: r, output: i } = n;
|
|
742
|
-
|
|
821
|
+
vn.has(e) && r === "output-available" && i?.filename && t(u(i.filename, i.version), i.fileId);
|
|
743
822
|
}
|
|
744
823
|
return e;
|
|
745
|
-
}), $ =
|
|
746
|
-
let t = (
|
|
747
|
-
|
|
748
|
-
}),
|
|
749
|
-
|
|
750
|
-
},
|
|
824
|
+
}), $ = S(() => W.value ? void 0 : (e) => {
|
|
825
|
+
let t = (or.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
|
|
826
|
+
U.value = J(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), bt();
|
|
827
|
+
}), sr = (e, t) => {
|
|
828
|
+
nr(e, t) || (U.value = t, bt());
|
|
829
|
+
}, cr = (e, t) => {
|
|
751
830
|
let n = t.error ? J("message.voiceLocationRefused") : J("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
752
|
-
|
|
831
|
+
nr(e, n) || kt({
|
|
753
832
|
tool: "requestGeolocation",
|
|
754
|
-
toolCallId:
|
|
833
|
+
toolCallId: Qn(e),
|
|
755
834
|
output: t
|
|
756
835
|
});
|
|
757
|
-
},
|
|
758
|
-
|
|
836
|
+
}, lr = (e, t) => {
|
|
837
|
+
nr(e, J("message.voiceConnectionDone")) || kt({
|
|
759
838
|
tool: "requestOAuthConnection",
|
|
760
|
-
toolCallId:
|
|
839
|
+
toolCallId: Qn(e),
|
|
761
840
|
output: {
|
|
762
841
|
connected: !0,
|
|
763
842
|
mcpServerId: t
|
|
764
843
|
}
|
|
765
844
|
});
|
|
766
|
-
},
|
|
767
|
-
|
|
845
|
+
}, ur = () => {
|
|
846
|
+
kn.value = !kn.value, Q.setMuted(kn.value);
|
|
768
847
|
};
|
|
769
|
-
|
|
770
|
-
|
|
848
|
+
ue(() => {
|
|
849
|
+
An = !0, Ln();
|
|
771
850
|
});
|
|
772
|
-
let { pendingWakeup:
|
|
773
|
-
agentId: () =>
|
|
774
|
-
chatId: () =>
|
|
851
|
+
let { pendingWakeup: dr, isStopping: fr, stop: pr, spokenTurnStarted: mr, spokenTurnsWritten: hr, forgetSpokenTurns: gr } = ze({
|
|
852
|
+
agentId: () => P.agentId,
|
|
853
|
+
chatId: () => R.localChatId,
|
|
775
854
|
apiClient: () => K.value,
|
|
776
|
-
messages: () =>
|
|
855
|
+
messages: () => V.value,
|
|
777
856
|
refreshMessages: Pt,
|
|
778
|
-
status: () =>
|
|
857
|
+
status: () => H.value.status
|
|
779
858
|
});
|
|
780
859
|
return (t, n) => {
|
|
781
|
-
let r =
|
|
782
|
-
return
|
|
860
|
+
let r = ne;
|
|
861
|
+
return j(), T("div", {
|
|
783
862
|
ref_key: "chatViewEl",
|
|
784
863
|
ref: Qt,
|
|
785
|
-
class:
|
|
786
|
-
"pk-chatbot-view-chat--dragover":
|
|
864
|
+
class: k(["pk-chatbot-view-chat", {
|
|
865
|
+
"pk-chatbot-view-chat--dragover": F(On) && yt.value?.enabled,
|
|
787
866
|
"pk-chatbot-view-chat--empty": Xt.value,
|
|
788
|
-
"pk-chatbot-view-chat--with-preview":
|
|
867
|
+
"pk-chatbot-view-chat--with-preview": gn.value && !en.value
|
|
789
868
|
}])
|
|
790
869
|
}, [
|
|
791
|
-
|
|
870
|
+
D(x, {
|
|
792
871
|
name: "pk-chatbot-view-chat-fade",
|
|
793
872
|
mode: "out-in"
|
|
794
873
|
}, {
|
|
795
|
-
default:
|
|
874
|
+
default: L(() => [Xt.value ? (j(), C(ee, {
|
|
796
875
|
key: 0,
|
|
797
|
-
greeting:
|
|
798
|
-
logo:
|
|
799
|
-
name:
|
|
876
|
+
greeting: F(Zt),
|
|
877
|
+
logo: F(z)?.logo,
|
|
878
|
+
name: F(R).name
|
|
800
879
|
}, null, 8, [
|
|
801
880
|
"greeting",
|
|
802
881
|
"logo",
|
|
803
882
|
"name"
|
|
804
|
-
])) : (
|
|
883
|
+
])) : (j(), C(e, {
|
|
805
884
|
key: 1,
|
|
806
885
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
807
886
|
interactive: "",
|
|
808
|
-
messages:
|
|
809
|
-
"confirm-verdicts-on-call":
|
|
810
|
-
status:
|
|
811
|
-
error:
|
|
812
|
-
"main-color":
|
|
813
|
-
"text-color":
|
|
814
|
-
"revised-answers":
|
|
815
|
-
actions:
|
|
816
|
-
"message-feedbacks":
|
|
817
|
-
"feedback-message-id":
|
|
818
|
-
"feedback-loading":
|
|
819
|
-
"feedback-submitted":
|
|
820
|
-
"feedback-error":
|
|
821
|
-
"show-extended-steps":
|
|
822
|
-
"hide-reasoning":
|
|
887
|
+
messages: F(V),
|
|
888
|
+
"confirm-verdicts-on-call": tr.value,
|
|
889
|
+
status: F(H).status,
|
|
890
|
+
error: F(H).error,
|
|
891
|
+
"main-color": F(z)?.mainColor,
|
|
892
|
+
"text-color": F(z)?.textColor,
|
|
893
|
+
"revised-answers": F(De),
|
|
894
|
+
actions: F(Ee),
|
|
895
|
+
"message-feedbacks": F(Oe),
|
|
896
|
+
"feedback-message-id": F(ke)?.id,
|
|
897
|
+
"feedback-loading": F(Ae),
|
|
898
|
+
"feedback-submitted": F(Ne),
|
|
899
|
+
"feedback-error": F(Pe),
|
|
900
|
+
"show-extended-steps": F(z)?.showExtendedSteps,
|
|
901
|
+
"hide-reasoning": F(z)?.showReasoning === !1,
|
|
823
902
|
"awaiting-spoken-answer": Z.value,
|
|
824
903
|
"host-working": Ht.value,
|
|
825
|
-
"host-confirmation":
|
|
826
|
-
"is-dark":
|
|
904
|
+
"host-confirmation": F(qe),
|
|
905
|
+
"is-dark": F(We),
|
|
827
906
|
"show-scroll-to-bottom": a.modifier === "fullscreen",
|
|
828
|
-
onFeedbackSubmit: n[0] ||= (e) =>
|
|
829
|
-
onFeedbackClose: n[1] ||= (e) =>
|
|
830
|
-
onRegenerate:
|
|
831
|
-
onAutoRetry:
|
|
832
|
-
onResetChat:
|
|
833
|
-
onShowInfo: n[2] ||= (e) =>
|
|
834
|
-
onRevise: n[3] ||= (e) =>
|
|
835
|
-
onUpvote:
|
|
836
|
-
onDownvote:
|
|
837
|
-
onFeedback:
|
|
838
|
-
onApprovalRespond:
|
|
839
|
-
onConfirmRespond:
|
|
840
|
-
onHostConfirmRespond:
|
|
907
|
+
onFeedbackSubmit: n[0] ||= (e) => F(Et)(e),
|
|
908
|
+
onFeedbackClose: n[1] ||= (e) => ke.value = void 0,
|
|
909
|
+
onRegenerate: F(St),
|
|
910
|
+
onAutoRetry: F(St),
|
|
911
|
+
onResetChat: F(Ot),
|
|
912
|
+
onShowInfo: n[2] ||= (e) => Se("show-info", e),
|
|
913
|
+
onRevise: n[3] ||= (e) => Se("revise", e),
|
|
914
|
+
onUpvote: F(Ct),
|
|
915
|
+
onDownvote: F(wt),
|
|
916
|
+
onFeedback: F(Tt),
|
|
917
|
+
onApprovalRespond: F(At),
|
|
918
|
+
onConfirmRespond: ir,
|
|
919
|
+
onHostConfirmRespond: F(Lt)
|
|
841
920
|
}, {
|
|
842
|
-
"tool-showContactForm":
|
|
921
|
+
"tool-showContactForm": L(({ part: e }) => [D(F(y), {
|
|
843
922
|
part: e,
|
|
844
|
-
readonly: !
|
|
845
|
-
submitted:
|
|
846
|
-
loading:
|
|
847
|
-
error:
|
|
848
|
-
"privacy-policy-notice":
|
|
849
|
-
onSubmit:
|
|
923
|
+
readonly: !F(Ve),
|
|
924
|
+
submitted: F(Ie),
|
|
925
|
+
loading: F(Le),
|
|
926
|
+
error: F(Re),
|
|
927
|
+
"privacy-policy-notice": F(z)?.privacyPolicyNotice,
|
|
928
|
+
onSubmit: F(Dt)
|
|
850
929
|
}, null, 8, [
|
|
851
930
|
"part",
|
|
852
931
|
"readonly",
|
|
@@ -856,20 +935,20 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
856
935
|
"privacy-policy-notice",
|
|
857
936
|
"onSubmit"
|
|
858
937
|
])]),
|
|
859
|
-
"tool-showSuggestedReply":
|
|
938
|
+
"tool-showSuggestedReply": L(({ part: e }) => [D(F(ie), {
|
|
860
939
|
part: e,
|
|
861
|
-
onSelect: (t) =>
|
|
940
|
+
onSelect: (t) => sr(e, t)
|
|
862
941
|
}, null, 8, ["part", "onSelect"])]),
|
|
863
|
-
"tool-showSources":
|
|
942
|
+
"tool-showSources": L(({ part: e }) => [D(F(ae), {
|
|
864
943
|
part: e,
|
|
865
|
-
"on-expand-context":
|
|
866
|
-
"on-download":
|
|
944
|
+
"on-expand-context": En,
|
|
945
|
+
"on-download": Dn
|
|
867
946
|
}, null, 8, ["part"])]),
|
|
868
|
-
"tool-showForm":
|
|
869
|
-
default:
|
|
947
|
+
"tool-showForm": L(({ part: e }) => [D(x, { mode: "out-in" }, {
|
|
948
|
+
default: L(() => [D(F(g), {
|
|
870
949
|
part: e,
|
|
871
|
-
answered:
|
|
872
|
-
onSelect: (t) =>
|
|
950
|
+
answered: er(e),
|
|
951
|
+
onSelect: (t) => rr("showForm", e, t)
|
|
873
952
|
}, null, 8, [
|
|
874
953
|
"part",
|
|
875
954
|
"answered",
|
|
@@ -877,12 +956,12 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
877
956
|
])]),
|
|
878
957
|
_: 2
|
|
879
958
|
}, 1024)]),
|
|
880
|
-
"tool-showMultipleChoice":
|
|
881
|
-
default:
|
|
959
|
+
"tool-showMultipleChoice": L(({ part: e }) => [D(x, { mode: "out-in" }, {
|
|
960
|
+
default: L(() => [D(F(g), {
|
|
882
961
|
part: e,
|
|
883
962
|
"allow-custom-answer": "",
|
|
884
|
-
answered:
|
|
885
|
-
onSelect: (t) =>
|
|
963
|
+
answered: er(e),
|
|
964
|
+
onSelect: (t) => rr("showMultipleChoice", e, t)
|
|
886
965
|
}, null, 8, [
|
|
887
966
|
"part",
|
|
888
967
|
"answered",
|
|
@@ -890,12 +969,12 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
890
969
|
])]),
|
|
891
970
|
_: 2
|
|
892
971
|
}, 1024)]),
|
|
893
|
-
"tool-requestOAuthConnection":
|
|
972
|
+
"tool-requestOAuthConnection": L(({ part: e }) => [D(F(ce), {
|
|
894
973
|
part: e,
|
|
895
|
-
"backend-url":
|
|
896
|
-
"resolve-connection": (e) =>
|
|
897
|
-
"check-connection": (e) =>
|
|
898
|
-
onConnected: (t) =>
|
|
974
|
+
"backend-url": F(Ve),
|
|
975
|
+
"resolve-connection": (e) => F(K).getOAuthAuthorizeUrl(P.agentId, e),
|
|
976
|
+
"check-connection": (e) => F(K).getOAuthConnectionStatus(P.agentId, e),
|
|
977
|
+
onConnected: (t) => lr(e, t)
|
|
899
978
|
}, null, 8, [
|
|
900
979
|
"part",
|
|
901
980
|
"backend-url",
|
|
@@ -903,167 +982,167 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
903
982
|
"check-connection",
|
|
904
983
|
"onConnected"
|
|
905
984
|
])]),
|
|
906
|
-
"tool-requestGeolocation":
|
|
985
|
+
"tool-requestGeolocation": L(({ part: e }) => [D(F(oe), {
|
|
907
986
|
part: e,
|
|
908
|
-
"call-live":
|
|
909
|
-
"reverse-geocode": (e, t) =>
|
|
910
|
-
onResult: (t) =>
|
|
987
|
+
"call-live": F(Q).isActive.value,
|
|
988
|
+
"reverse-geocode": (e, t) => F(K).reverseGeocode(e, t),
|
|
989
|
+
onResult: (t) => cr(e, t)
|
|
911
990
|
}, null, 8, [
|
|
912
991
|
"part",
|
|
913
992
|
"call-live",
|
|
914
993
|
"reverse-geocode",
|
|
915
994
|
"onResult"
|
|
916
995
|
])]),
|
|
917
|
-
"tool-showLocation":
|
|
996
|
+
"tool-showLocation": L(({ part: e }) => [D(F(le), {
|
|
918
997
|
part: e,
|
|
919
|
-
"is-dark":
|
|
920
|
-
"main-color":
|
|
921
|
-
"forward-geocode": (e, t) =>
|
|
998
|
+
"is-dark": F(We),
|
|
999
|
+
"main-color": F(z)?.mainColor,
|
|
1000
|
+
"forward-geocode": (e, t) => F(K).forwardGeocode(e, t)
|
|
922
1001
|
}, null, 8, [
|
|
923
1002
|
"part",
|
|
924
1003
|
"is-dark",
|
|
925
1004
|
"main-color",
|
|
926
1005
|
"forward-geocode"
|
|
927
1006
|
])]),
|
|
928
|
-
"tool-showDiagram":
|
|
1007
|
+
"tool-showDiagram": L(({ part: e }) => [D(F(de), {
|
|
929
1008
|
part: e,
|
|
930
|
-
"is-dark":
|
|
1009
|
+
"is-dark": F(We)
|
|
931
1010
|
}, null, 8, ["part", "is-dark"])]),
|
|
932
|
-
"tool-editSpreadsheet":
|
|
933
|
-
key:
|
|
1011
|
+
"tool-editSpreadsheet": L(({ part: e }) => [(j(), C(F(A), {
|
|
1012
|
+
key: F(p)(e),
|
|
934
1013
|
part: e,
|
|
935
1014
|
"file-url": q,
|
|
936
|
-
preview:
|
|
937
|
-
"latest-versions":
|
|
1015
|
+
preview: mn,
|
|
1016
|
+
"latest-versions": ar.value,
|
|
938
1017
|
restore: $.value
|
|
939
1018
|
}, null, 8, [
|
|
940
1019
|
"part",
|
|
941
1020
|
"latest-versions",
|
|
942
1021
|
"restore"
|
|
943
1022
|
]))]),
|
|
944
|
-
"tool-editWordDocument":
|
|
945
|
-
key:
|
|
1023
|
+
"tool-editWordDocument": L(({ part: e }) => [(j(), C(F(A), {
|
|
1024
|
+
key: F(p)(e),
|
|
946
1025
|
part: e,
|
|
947
1026
|
"file-url": q,
|
|
948
|
-
preview:
|
|
949
|
-
"latest-versions":
|
|
1027
|
+
preview: mn,
|
|
1028
|
+
"latest-versions": ar.value,
|
|
950
1029
|
restore: $.value
|
|
951
1030
|
}, null, 8, [
|
|
952
1031
|
"part",
|
|
953
1032
|
"latest-versions",
|
|
954
1033
|
"restore"
|
|
955
1034
|
]))]),
|
|
956
|
-
"tool-createSpreadsheet":
|
|
957
|
-
key:
|
|
1035
|
+
"tool-createSpreadsheet": L(({ part: e }) => [(j(), C(F(A), {
|
|
1036
|
+
key: F(p)(e),
|
|
958
1037
|
part: e,
|
|
959
1038
|
"file-url": q,
|
|
960
|
-
preview:
|
|
961
|
-
"latest-versions":
|
|
1039
|
+
preview: mn,
|
|
1040
|
+
"latest-versions": ar.value,
|
|
962
1041
|
restore: $.value
|
|
963
1042
|
}, null, 8, [
|
|
964
1043
|
"part",
|
|
965
1044
|
"latest-versions",
|
|
966
1045
|
"restore"
|
|
967
1046
|
]))]),
|
|
968
|
-
"tool-createWordDocument":
|
|
969
|
-
key:
|
|
1047
|
+
"tool-createWordDocument": L(({ part: e }) => [(j(), C(F(A), {
|
|
1048
|
+
key: F(p)(e),
|
|
970
1049
|
part: e,
|
|
971
1050
|
"file-url": q,
|
|
972
|
-
preview:
|
|
973
|
-
"latest-versions":
|
|
1051
|
+
preview: mn,
|
|
1052
|
+
"latest-versions": ar.value,
|
|
974
1053
|
restore: $.value
|
|
975
1054
|
}, null, 8, [
|
|
976
1055
|
"part",
|
|
977
1056
|
"latest-versions",
|
|
978
1057
|
"restore"
|
|
979
1058
|
]))]),
|
|
980
|
-
"tool-shareDocument":
|
|
981
|
-
key:
|
|
1059
|
+
"tool-shareDocument": L(({ part: e }) => [(j(), C(F(fe), {
|
|
1060
|
+
key: F(p)(e),
|
|
982
1061
|
part: e,
|
|
983
|
-
"on-download":
|
|
1062
|
+
"on-download": Dn
|
|
984
1063
|
}, null, 8, ["part"]))]),
|
|
985
1064
|
_: 1
|
|
986
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(".")))]),
|
|
987
1066
|
_: 1
|
|
988
1067
|
}),
|
|
989
|
-
|
|
1068
|
+
F(ut).length ? (j(), C(v, {
|
|
990
1069
|
key: 0,
|
|
991
|
-
messages:
|
|
992
|
-
onEdit:
|
|
993
|
-
onRemove:
|
|
1070
|
+
messages: F(ut),
|
|
1071
|
+
onEdit: F(Rt),
|
|
1072
|
+
onRemove: F(zt)
|
|
994
1073
|
}, null, 8, [
|
|
995
1074
|
"messages",
|
|
996
1075
|
"onEdit",
|
|
997
1076
|
"onRemove"
|
|
998
|
-
])) :
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
default:
|
|
1077
|
+
])) : w("", !0),
|
|
1078
|
+
E("div", Ye, [
|
|
1079
|
+
D(x, { name: "pk-chatbot-view-chat-fade" }, {
|
|
1080
|
+
default: L(() => [Xt.value ? (j(), C(we, {
|
|
1002
1081
|
key: 0,
|
|
1003
1082
|
class: "pk-chatbot-view-chat__aurora",
|
|
1004
1083
|
"source-selector": ".pk-chatbot-input__form",
|
|
1005
|
-
"main-color":
|
|
1006
|
-
tones:
|
|
1007
|
-
"second-color":
|
|
1084
|
+
"main-color": F(z)?.mainColor,
|
|
1085
|
+
tones: F(z)?.glowTones,
|
|
1086
|
+
"second-color": F(z)?.glowSecondColor
|
|
1008
1087
|
}, null, 8, [
|
|
1009
1088
|
"main-color",
|
|
1010
1089
|
"tones",
|
|
1011
1090
|
"second-color"
|
|
1012
|
-
])) :
|
|
1091
|
+
])) : w("", !0)]),
|
|
1013
1092
|
_: 1
|
|
1014
1093
|
}),
|
|
1015
|
-
|
|
1094
|
+
F(dr) && !F(W) ? (j(), C(te, {
|
|
1016
1095
|
key: 0,
|
|
1017
|
-
pending:
|
|
1018
|
-
stopping:
|
|
1019
|
-
onStop:
|
|
1096
|
+
pending: F(dr),
|
|
1097
|
+
stopping: F(fr),
|
|
1098
|
+
onStop: F(pr)
|
|
1020
1099
|
}, null, 8, [
|
|
1021
1100
|
"pending",
|
|
1022
1101
|
"stopping",
|
|
1023
1102
|
"onStop"
|
|
1024
|
-
])) :
|
|
1025
|
-
|
|
1103
|
+
])) : w("", !0),
|
|
1104
|
+
F(W) ? (j(), T("div", Xe, N(F(J)("message.chatErrorConversationBlocked")), 1)) : Un.value === "idle" ? (j(), C(_, {
|
|
1026
1105
|
key: 3,
|
|
1027
1106
|
ref_key: "inputEl",
|
|
1028
1107
|
ref: _t,
|
|
1029
|
-
modelValue:
|
|
1030
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
1031
|
-
"pending-attachments":
|
|
1032
|
-
"onUpdate:pendingAttachments": n[5] ||= (e) =>
|
|
1033
|
-
placeholder:
|
|
1034
|
-
"dismissable-notice":
|
|
1108
|
+
modelValue: F(U),
|
|
1109
|
+
"onUpdate:modelValue": n[4] ||= (e) => se(U) ? U.value = e : null,
|
|
1110
|
+
"pending-attachments": F(G),
|
|
1111
|
+
"onUpdate:pendingAttachments": n[5] ||= (e) => se(G) ? G.value = e : null,
|
|
1112
|
+
placeholder: F(Be),
|
|
1113
|
+
"dismissable-notice": F(Jt) && F(H).messages.length <= 1 ? F(Jt) : void 0,
|
|
1035
1114
|
"page-notice": Gt.value,
|
|
1036
1115
|
status: Ut.value,
|
|
1037
|
-
"max-message-length":
|
|
1116
|
+
"max-message-length": F(z)?.maxMessageLength,
|
|
1038
1117
|
"file-upload": yt.value,
|
|
1039
|
-
"attachment-limit-reached":
|
|
1118
|
+
"attachment-limit-reached": F(He),
|
|
1040
1119
|
"attachment-notice": Kt.value,
|
|
1041
|
-
"voice-enabled":
|
|
1042
|
-
"queue-enabled":
|
|
1120
|
+
"voice-enabled": Hn.value,
|
|
1121
|
+
"queue-enabled": F(lt),
|
|
1043
1122
|
"answer-notices": qt.value,
|
|
1044
|
-
"pointer-available":
|
|
1045
|
-
pointing:
|
|
1123
|
+
"pointer-available": F(mt),
|
|
1124
|
+
pointing: F(ht),
|
|
1046
1125
|
pointer: vt.value,
|
|
1047
|
-
"automatic-confirmations":
|
|
1048
|
-
onPoint: n[6] ||= (e) =>
|
|
1126
|
+
"automatic-confirmations": F(ct) === "automatic",
|
|
1127
|
+
onPoint: n[6] ||= (e) => F(R).pagePointerStart?.(),
|
|
1049
1128
|
onRemovePointer: n[7] ||= (e) => pt.value = void 0,
|
|
1050
|
-
onManualConfirmations: n[8] ||= (e) =>
|
|
1051
|
-
onStopGeneration:
|
|
1052
|
-
onSubmit:
|
|
1053
|
-
onFileSelect:
|
|
1054
|
-
onRemoveAttachment:
|
|
1055
|
-
onDismissAttachmentNotice:
|
|
1056
|
-
onDismissPageNotice:
|
|
1057
|
-
onOpenAnswerNotice:
|
|
1058
|
-
onDismissAnswerNotice:
|
|
1059
|
-
onVoiceStart:
|
|
1060
|
-
},
|
|
1129
|
+
onManualConfirmations: n[8] ||= (e) => F(R).setConfirmationMode("manual"),
|
|
1130
|
+
onStopGeneration: F(xt),
|
|
1131
|
+
onSubmit: F(bt),
|
|
1132
|
+
onFileSelect: F(jt),
|
|
1133
|
+
onRemoveAttachment: F(Mt),
|
|
1134
|
+
onDismissAttachmentNotice: F(Nt),
|
|
1135
|
+
onDismissPageNotice: F(It),
|
|
1136
|
+
onOpenAnswerNotice: F(Bt),
|
|
1137
|
+
onDismissAnswerNotice: F(Vt),
|
|
1138
|
+
onVoiceStart: Jn
|
|
1139
|
+
}, re({ _: 2 }, [a.modifier === "fullscreen" ? {
|
|
1061
1140
|
name: "prepend",
|
|
1062
|
-
fn:
|
|
1141
|
+
fn: L(() => [E("span", Ze, [D(h, {
|
|
1063
1142
|
class: "pk-chatbot-view-chat__agent-chip-avatar",
|
|
1064
|
-
"img-src":
|
|
1065
|
-
name:
|
|
1066
|
-
}, null, 8, ["img-src", "name"]),
|
|
1143
|
+
"img-src": F(z)?.logo,
|
|
1144
|
+
name: F(R).name
|
|
1145
|
+
}, null, 8, ["img-src", "name"]), F(R).name ? (j(), T("strong", Qe, N(F(R).name), 1)) : w("", !0)])]),
|
|
1067
1146
|
key: "0"
|
|
1068
1147
|
} : void 0]), 1032, [
|
|
1069
1148
|
"modelValue",
|
|
@@ -1091,21 +1170,21 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
1091
1170
|
"onDismissPageNotice",
|
|
1092
1171
|
"onOpenAnswerNotice",
|
|
1093
1172
|
"onDismissAnswerNotice"
|
|
1094
|
-
])) : (
|
|
1173
|
+
])) : (j(), C(je, {
|
|
1095
1174
|
key: 2,
|
|
1096
|
-
state:
|
|
1097
|
-
sample:
|
|
1098
|
-
spectrum:
|
|
1099
|
-
"remaining-seconds":
|
|
1100
|
-
muted:
|
|
1101
|
-
error:
|
|
1102
|
-
"raw-error":
|
|
1103
|
-
live:
|
|
1175
|
+
state: Un.value,
|
|
1176
|
+
sample: Kn,
|
|
1177
|
+
spectrum: qn,
|
|
1178
|
+
"remaining-seconds": F(Q).remainingSeconds.value,
|
|
1179
|
+
muted: kn.value,
|
|
1180
|
+
error: Wn.value,
|
|
1181
|
+
"raw-error": F(Q).error.value,
|
|
1182
|
+
live: F(Q).isActive.value,
|
|
1104
1183
|
class: "pk-chatbot-view-chat__voice",
|
|
1105
|
-
onToggleMute:
|
|
1106
|
-
onHangUp:
|
|
1107
|
-
onRetry:
|
|
1108
|
-
onDismiss:
|
|
1184
|
+
onToggleMute: ur,
|
|
1185
|
+
onHangUp: Yn,
|
|
1186
|
+
onRetry: Zn,
|
|
1187
|
+
onDismiss: Xn
|
|
1109
1188
|
}, null, 8, [
|
|
1110
1189
|
"state",
|
|
1111
1190
|
"remaining-seconds",
|
|
@@ -1115,18 +1194,18 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
1115
1194
|
"live"
|
|
1116
1195
|
]))
|
|
1117
1196
|
]),
|
|
1118
|
-
|
|
1119
|
-
default:
|
|
1197
|
+
D(x, null, {
|
|
1198
|
+
default: L(() => [F(On) && yt.value?.enabled ? (j(), T("div", $e, [D(r, {
|
|
1120
1199
|
name: "ri:upload-cloud-2-line",
|
|
1121
1200
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
1122
|
-
}),
|
|
1201
|
+
}), E("span", null, N(F(J)("action.dropFile")), 1)])) : w("", !0)]),
|
|
1123
1202
|
_: 1
|
|
1124
1203
|
}),
|
|
1125
|
-
|
|
1204
|
+
gn.value ? (j(), C(b, {
|
|
1126
1205
|
key: 1,
|
|
1127
1206
|
to: tn.value,
|
|
1128
1207
|
disabled: !en.value
|
|
1129
|
-
}, [
|
|
1208
|
+
}, [E("aside", { class: k(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": en.value }]) }, [F(Y) ? (j(), C(F(me), {
|
|
1130
1209
|
key: 0,
|
|
1131
1210
|
mode: X.value.mode,
|
|
1132
1211
|
"onUpdate:mode": n[9] ||= (e) => X.value.mode = e,
|
|
@@ -1136,24 +1215,25 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
1136
1215
|
"onUpdate:zoom": n[11] ||= (e) => X.value.zoom = e,
|
|
1137
1216
|
fit: X.value.fit,
|
|
1138
1217
|
"onUpdate:fit": n[12] ||= (e) => X.value.fit = e,
|
|
1139
|
-
kind:
|
|
1140
|
-
filename:
|
|
1141
|
-
version:
|
|
1142
|
-
versions:
|
|
1143
|
-
"download-url": q(
|
|
1144
|
-
preview:
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1218
|
+
kind: F(Y).kind,
|
|
1219
|
+
filename: F(Y).filename,
|
|
1220
|
+
version: F(Y).version,
|
|
1221
|
+
versions: bn.value,
|
|
1222
|
+
"download-url": q(F(Y).storedFileName),
|
|
1223
|
+
preview: F(sn),
|
|
1224
|
+
changes: F(un),
|
|
1225
|
+
loading: F(cn),
|
|
1226
|
+
error: F(ln),
|
|
1227
|
+
restorable: Sn.value,
|
|
1148
1228
|
resize: "expand",
|
|
1149
|
-
"file-id":
|
|
1150
|
-
"stored-file-name":
|
|
1151
|
-
"selection-actions":
|
|
1152
|
-
onVersion:
|
|
1153
|
-
onRestore:
|
|
1154
|
-
onResize: n[13] ||= (e) =>
|
|
1155
|
-
onSelectionSend:
|
|
1156
|
-
onClose:
|
|
1229
|
+
"file-id": F(Y).fileId,
|
|
1230
|
+
"stored-file-name": F(Y).storedFileName,
|
|
1231
|
+
"selection-actions": wn.value,
|
|
1232
|
+
onVersion: xn,
|
|
1233
|
+
onRestore: Cn,
|
|
1234
|
+
onResize: n[13] ||= (e) => hn.value = !0,
|
|
1235
|
+
onSelectionSend: Tn,
|
|
1236
|
+
onClose: _n
|
|
1157
1237
|
}, null, 8, [
|
|
1158
1238
|
"mode",
|
|
1159
1239
|
"sheet",
|
|
@@ -1165,14 +1245,15 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
1165
1245
|
"versions",
|
|
1166
1246
|
"download-url",
|
|
1167
1247
|
"preview",
|
|
1248
|
+
"changes",
|
|
1168
1249
|
"loading",
|
|
1169
1250
|
"error",
|
|
1170
1251
|
"restorable",
|
|
1171
1252
|
"file-id",
|
|
1172
1253
|
"stored-file-name",
|
|
1173
1254
|
"selection-actions"
|
|
1174
|
-
])) :
|
|
1175
|
-
|
|
1255
|
+
])) : w("", !0)], 2)], 8, ["to", "disabled"])) : w("", !0),
|
|
1256
|
+
F(Y) && !gn.value ? (j(), C(F(he), {
|
|
1176
1257
|
key: 2,
|
|
1177
1258
|
mode: X.value.mode,
|
|
1178
1259
|
"onUpdate:mode": n[14] ||= (e) => X.value.mode = e,
|
|
@@ -1182,21 +1263,22 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
1182
1263
|
"onUpdate:zoom": n[16] ||= (e) => X.value.zoom = e,
|
|
1183
1264
|
fit: X.value.fit,
|
|
1184
1265
|
"onUpdate:fit": n[17] ||= (e) => X.value.fit = e,
|
|
1185
|
-
target:
|
|
1186
|
-
versions:
|
|
1187
|
-
"download-url": q(
|
|
1188
|
-
preview:
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1266
|
+
target: F(Y),
|
|
1267
|
+
versions: bn.value,
|
|
1268
|
+
"download-url": q(F(Y).storedFileName),
|
|
1269
|
+
preview: F(sn),
|
|
1270
|
+
changes: F(un),
|
|
1271
|
+
loading: F(cn),
|
|
1272
|
+
error: F(ln),
|
|
1273
|
+
restorable: Sn.value,
|
|
1192
1274
|
resize: an.value ? "shrink" : void 0,
|
|
1193
1275
|
fullscreen: on.value,
|
|
1194
|
-
"selection-actions":
|
|
1195
|
-
onVersion:
|
|
1196
|
-
onRestore:
|
|
1197
|
-
onResize: n[18] ||= (e) =>
|
|
1198
|
-
onSelectionSend:
|
|
1199
|
-
onClose:
|
|
1276
|
+
"selection-actions": wn.value,
|
|
1277
|
+
onVersion: xn,
|
|
1278
|
+
onRestore: Cn,
|
|
1279
|
+
onResize: n[18] ||= (e) => hn.value = !1,
|
|
1280
|
+
onSelectionSend: Tn,
|
|
1281
|
+
onClose: _n
|
|
1200
1282
|
}, null, 8, [
|
|
1201
1283
|
"mode",
|
|
1202
1284
|
"sheet",
|
|
@@ -1206,17 +1288,18 @@ var ze = { class: "pk-chatbot-view-chat__input-stage" }, Be = {
|
|
|
1206
1288
|
"versions",
|
|
1207
1289
|
"download-url",
|
|
1208
1290
|
"preview",
|
|
1291
|
+
"changes",
|
|
1209
1292
|
"loading",
|
|
1210
1293
|
"error",
|
|
1211
1294
|
"restorable",
|
|
1212
1295
|
"resize",
|
|
1213
1296
|
"fullscreen",
|
|
1214
1297
|
"selection-actions"
|
|
1215
|
-
])) :
|
|
1298
|
+
])) : w("", !0)
|
|
1216
1299
|
], 2);
|
|
1217
1300
|
};
|
|
1218
1301
|
}
|
|
1219
1302
|
});
|
|
1220
|
-
export {
|
|
1303
|
+
export { je as a, Pe as i, Je as n, Ee as o, Ke as r, we as s, at as t };
|
|
1221
1304
|
|
|
1222
|
-
//# sourceMappingURL=PkChatbotViewChat-
|
|
1305
|
+
//# sourceMappingURL=PkChatbotViewChat-Ckl03UkZ.js.map
|