@8wave/ai-elements 0.125.0-beta.42 → 0.125.0-beta.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/dist/_chunks/Chart-1vt0m6l_.js +87 -0
- package/dist/_chunks/Chart-1vt0m6l_.js.map +1 -0
- package/dist/_chunks/{PkChart-CbtMRGWc.js → PkChart-CYFx_UDq.js} +741 -623
- package/dist/_chunks/PkChart-CYFx_UDq.js.map +1 -0
- package/dist/_chunks/PkFilePreview-DfYzaj3Y.js +1745 -0
- package/dist/_chunks/PkFilePreview-DfYzaj3Y.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-bcTkTcYk.js → PkFilePreviewDialog-COkwyLq6.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-bcTkTcYk.js.map → PkFilePreviewDialog-COkwyLq6.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-FpbyhV3t.js → PkImageEditorDialog-Ceas-HZA.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-FpbyhV3t.js.map → PkImageEditorDialog-Ceas-HZA.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-BbfVZY0R.js → PkSelectionActions-Dl3cKb7x.js} +2 -2
- package/dist/_chunks/PkSelectionActions-Dl3cKb7x.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-COSOOhCg.js → PkStreamingMarkdown-DZvLHy2l.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-COSOOhCg.js.map → PkStreamingMarkdown-DZvLHy2l.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-C_gS0X1j.js → PkToolChatFile-D4ukZ9g6.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-C_gS0X1j.js.map → PkToolChatFile-D4ukZ9g6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-fpFtKrZo.js → PkToolShowArtifact-wIAxyXrL.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-fpFtKrZo.js.map → PkToolShowArtifact-wIAxyXrL.js.map} +1 -1
- package/dist/_chunks/PkToolShowChart-D3E_xBJv.js +138 -0
- package/dist/_chunks/PkToolShowChart-D3E_xBJv.js.map +1 -0
- package/dist/_chunks/{PkToolShowContactForm-BAM772bm.js → PkToolShowContactForm-BhcM-Z6m.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-BAM772bm.js.map → PkToolShowContactForm-BhcM-Z6m.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DJcL0bgw.js → PkToolShowForm-D6k7_QLF.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-DJcL0bgw.js.map → PkToolShowForm-D6k7_QLF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-GeWAMHYC.js → PkToolShowSources-Cw1ofky2.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-GeWAMHYC.js.map → PkToolShowSources-Cw1ofky2.js.map} +1 -1
- package/dist/_chunks/chartFormat-B1T7y-16.js +27 -0
- package/dist/_chunks/chartFormat-B1T7y-16.js.map +1 -0
- package/dist/_chunks/{excelNumberFormat-BhQjife9.js → excelNumberFormat-CcXF_wJK.js} +101 -88
- package/dist/_chunks/excelNumberFormat-CcXF_wJK.js.map +1 -0
- package/dist/_chunks/{utils-DMvy5QRR.js → utils-C2aFWWye.js} +132 -110
- package/dist/_chunks/utils-C2aFWWye.js.map +1 -0
- package/dist/ai-elements.es.js +2939 -2882
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/_chunks/Chart-DsBNs5rS.js +87 -0
- package/dist-vue/_chunks/Chart-DsBNs5rS.js.map +1 -0
- package/dist-vue/_chunks/{PkChart-D-K7nc0g.js → PkChart-CrZqhEpp.js} +112 -74
- package/dist-vue/_chunks/PkChart-CrZqhEpp.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-DVQ-Bb7n.js → PkChatbot-CBSe9MOB.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-DVQ-Bb7n.js.map → PkChatbot-CBSe9MOB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-OlgewA4_.js → PkChatbotEmptyState-DfyYZXHQ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-OlgewA4_.js.map → PkChatbotEmptyState-DfyYZXHQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-D_I0Gf_u.js → PkChatbotInput-CBalSveL.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotInput-D_I0Gf_u.js.map → PkChatbotInput-CBalSveL.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-CAXnEfXK.js → PkChatbotMessages-C2AUTqk4.js} +307 -307
- package/dist-vue/_chunks/{PkChatbotMessages-CAXnEfXK.js.map → PkChatbotMessages-C2AUTqk4.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-EBri1L10.js → PkChatbotStepPayload-Bb3Y6kuL.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-EBri1L10.js.map → PkChatbotStepPayload-Bb3Y6kuL.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DiQEa0UV.js → PkChatbotStepToolDetail-CwOxzYOe.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DiQEa0UV.js.map → PkChatbotStepToolDetail-CwOxzYOe.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-BgLnv2J1.js → PkChatbotSteps-FduD9X9i.js} +38 -38
- package/dist-vue/_chunks/{PkChatbotSteps-BgLnv2J1.js.map → PkChatbotSteps-FduD9X9i.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CmjD1IXf.js → PkChatbotViewChat-jl3ZbK7H.js} +22 -22
- package/dist-vue/_chunks/{PkChatbotViewChat-CmjD1IXf.js.map → PkChatbotViewChat-jl3ZbK7H.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-CVZH5dXx.js → PkChatbotViewConversations-BtwTWqmM.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-CVZH5dXx.js.map → PkChatbotViewConversations-BtwTWqmM.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-k5gEl3n8.js → PkFilePreview-CRfDEYYo.js} +701 -624
- package/dist-vue/_chunks/PkFilePreview-CRfDEYYo.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-DUwZPErE.js → PkFilePreviewDialog-u-0rhuRx.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-DUwZPErE.js.map → PkFilePreviewDialog-u-0rhuRx.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-DQPXePae.js → PkImageEditorDialog-CjMwpb-a.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-DQPXePae.js.map → PkImageEditorDialog-CjMwpb-a.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-ZasabxE0.js → PkStreamingMarkdown-7Kl_VBH-.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-ZasabxE0.js.map → PkStreamingMarkdown-7Kl_VBH-.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-CD26Q2xp.js → PkToolChatFile-DcNRCVXy.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-CD26Q2xp.js.map → PkToolChatFile-DcNRCVXy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-BhVd_ZQ8.js → PkToolShowArtifact-C7CxCqVO.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BhVd_ZQ8.js.map → PkToolShowArtifact-C7CxCqVO.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowChart-DULlrMjq.js +133 -0
- package/dist-vue/_chunks/PkToolShowChart-DULlrMjq.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowContactForm-CackCDGD.js → PkToolShowContactForm-472d-SAE.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CackCDGD.js.map → PkToolShowContactForm-472d-SAE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CABPsFi8.js → PkToolShowDiagram-RrqVpOaX.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CABPsFi8.js.map → PkToolShowDiagram-RrqVpOaX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BStbk4Iu.js → PkToolShowForm-CgyszDEI.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowForm-BStbk4Iu.js.map → PkToolShowForm-CgyszDEI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-BeeHsdTp.js → PkToolShowImageGallery-LBx9JE6p.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-BeeHsdTp.js.map → PkToolShowImageGallery-LBx9JE6p.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-BfUiap9U.js → PkToolShowProductList-THiH4EzZ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-BfUiap9U.js.map → PkToolShowProductList-THiH4EzZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-CgEkcyRg.js → PkToolShowSources-CEqGXOOt.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-CgEkcyRg.js.map → PkToolShowSources-CEqGXOOt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-CqSRnDNC.js → PkToolShowVideo-8Gi3vOer.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-CqSRnDNC.js.map → PkToolShowVideo-8Gi3vOer.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-B-qIS8qY.js → PkToolShowWebPages-xjUPdfOU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-B-qIS8qY.js.map → PkToolShowWebPages-xjUPdfOU.js.map} +1 -1
- package/dist-vue/_chunks/chartFormat-B1T7y-16.js +27 -0
- package/dist-vue/_chunks/chartFormat-B1T7y-16.js.map +1 -0
- package/dist-vue/_chunks/{excelNumberFormat-C1sCQrOz.js → excelNumberFormat-BxRi0Y3e.js} +101 -88
- package/dist-vue/_chunks/excelNumberFormat-BxRi0Y3e.js.map +1 -0
- package/dist-vue/_chunks/{utils-KBB6SDPn.js → utils-VVbH-Liq.js} +30 -30
- package/dist-vue/_chunks/utils-VVbH-Liq.js.map +1 -0
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -6
- package/dist-vue/apps/web-component/src/composables/useSelectionActions.d.ts +14 -4
- package/dist-vue/composables.js +9 -3
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +42 -42
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +6 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -6
- package/dist-vue/packages/components/src/chat/PkChart.d.ts +8 -0
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +1 -1
- package/dist-vue/packages/components/src/chat/PkFileChart.d.ts +14 -0
- package/dist-vue/packages/components/src/chat/PkSelectionActionIconPicker.d.ts +2 -2
- package/dist-vue/packages/components/src/chat/PkSelectionAnswerCard.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/PkWordPreviewRuns.d.ts +4 -1
- package/dist-vue/packages/components/src/chat/selectionActionEdits.d.ts +1 -1
- package/dist-vue/packages/components/src/chat/useChatFilePreview.d.ts +240 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +57 -5
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +18 -18
- package/dist-vue/packages/composable/src/useSettledSelection.d.ts +2 -2
- package/dist-vue/packages/models/src/schema/Agent.d.ts +21 -21
- package/dist-vue/packages/models/src/schema/Chart.d.ts +91 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -6
- package/dist-vue/packages/models/src/schema/SelectionAction.d.ts +11 -11
- package/dist-vue/packages/models/src/schema/SelectionActionPreview.d.ts +3 -3
- package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +381 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -6
- package/dist-vue/packages/models/src/schema/WordPreview.d.ts +304 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkChart-CbtMRGWc.js.map +0 -1
- package/dist/_chunks/PkFilePreview-DC4iX7Yc.js +0 -1665
- package/dist/_chunks/PkFilePreview-DC4iX7Yc.js.map +0 -1
- package/dist/_chunks/PkSelectionActions-BbfVZY0R.js.map +0 -1
- package/dist/_chunks/PkToolShowChart-DZWu3Yuo.js +0 -224
- package/dist/_chunks/PkToolShowChart-DZWu3Yuo.js.map +0 -1
- package/dist/_chunks/excelNumberFormat-BhQjife9.js.map +0 -1
- package/dist/_chunks/utils-DMvy5QRR.js.map +0 -1
- package/dist-vue/_chunks/PkChart-D-K7nc0g.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-k5gEl3n8.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowChart-BQXxaPIO.js +0 -217
- package/dist-vue/_chunks/PkToolShowChart-BQXxaPIO.js.map +0 -1
- package/dist-vue/_chunks/excelNumberFormat-C1sCQrOz.js.map +0 -1
- package/dist-vue/_chunks/utils-KBB6SDPn.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as e } from "./PkChatbotMessages-
|
|
1
|
+
import { t as e } from "./PkChatbotMessages-C2AUTqk4.js";
|
|
2
2
|
import { o as t } from "./Media-DylqhvaF.js";
|
|
3
3
|
import { t as n } from "./useLightbox-DmtNa8bJ.js";
|
|
4
4
|
import { a as r, n as i, t as a } from "./useChatbotStore-B6ILfm5Z.js";
|
|
5
5
|
import { n as o } from "./src-nb8MU1sh.js";
|
|
6
6
|
import { s, t as c } from "./message-DuibQyHy.js";
|
|
7
|
-
import {
|
|
7
|
+
import { B as l, b as u, n as d, p as f, r as p, u as m } from "./utils-VVbH-Liq.js";
|
|
8
8
|
import { t as h } from "./useLocalizedString-Dmn92nix.js";
|
|
9
9
|
import { t as g } from "./PkAvatar-DwtZWSW4.js";
|
|
10
|
-
import { n as _, t as v } from "./PkChatbotInput-
|
|
10
|
+
import { n as _, t as v } from "./PkChatbotInput-CBalSveL.js";
|
|
11
11
|
import { t as ee } from "./PkChatbotQueuedMessages-CIJFAvE2.js";
|
|
12
|
-
import { t as te } from "./PkChatbotEmptyState-
|
|
12
|
+
import { t as te } from "./PkChatbotEmptyState-DfyYZXHQ.js";
|
|
13
13
|
import { t as ne } from "./PkChatbotWakeupBar-DEP-d-Fp.js";
|
|
14
14
|
import { VvIcon as y } from "@volverjs/ui-vue/components";
|
|
15
15
|
import { Fragment as b, Teleport as re, Transition as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as ie, createTextVNode as ae, createVNode as D, defineAsyncComponent as O, defineComponent as oe, inject as se, isRef as ce, nextTick as le, normalizeClass as k, normalizeStyle as ue, onBeforeUnmount as de, onMounted as fe, onScopeDispose as pe, onUnmounted as A, openBlock as j, provide as me, ref as M, renderList as he, shallowRef as ge, toDisplayString as N, toValue as _e, unref as P, useTemplateRef as ve, watch as F, withCtx as I } from "vue";
|
|
@@ -40,12 +40,12 @@ var we = {
|
|
|
40
40
|
let t = e, n = ve("rootEl"), r = ve("canvasEl"), i = M(!1), a = M(null), o = S(() => a.value ? {
|
|
41
41
|
"--pk-aurora-tint": `rgb(${a.value.first.join(" ")})`,
|
|
42
42
|
"--pk-aurora-tint-2": `rgb(${(a.value.duo ? a.value.second : a.value.first).join(" ")})`
|
|
43
|
-
} : void 0), s = null, c = 0,
|
|
43
|
+
} : void 0), s = null, c = 0, u = null, d = null, f = null, p = null, m = null, h = null, g = null, _ = null, v = null, ee = performance.now(), te = (e, t) => {
|
|
44
44
|
if (!s) return null;
|
|
45
45
|
let n = s.createShader(e);
|
|
46
46
|
return !n || (s.shaderSource(n, t), s.compileShader(n), !s.getShaderParameter(n, s.COMPILE_STATUS)) ? null : n;
|
|
47
47
|
}, ne = (e) => e.map((e) => e / 255), y = () => {
|
|
48
|
-
n.value && (a.value =
|
|
48
|
+
n.value && (a.value = l(n.value, {
|
|
49
49
|
mainColor: t.mainColor,
|
|
50
50
|
tones: t.tones,
|
|
51
51
|
secondColor: t.secondColor
|
|
@@ -63,13 +63,13 @@ var we = {
|
|
|
63
63
|
let a = r.value.parentElement?.offsetParent, o = (t.sourceSelector ? a?.querySelector(t.sourceSelector) : a) ?? a, c = r.value.getBoundingClientRect(), l = o?.getBoundingClientRect();
|
|
64
64
|
if (l && c.width > 0) {
|
|
65
65
|
let e = r.value.width / c.width, t = r.value.height / c.height, n = (l.left + l.width / 2 - c.left) * e, i = (c.bottom - (l.top + l.height / 2)) * t, a = l.width / 2 * e, o = l.height / 2 * t;
|
|
66
|
-
s.uniform2f(
|
|
66
|
+
s.uniform2f(p, n, i), s.uniform2f(m, a, o);
|
|
67
67
|
let u = Number.parseFloat(getComputedStyle(r.value).getPropertyValue("--aurora-spread"));
|
|
68
68
|
s.uniform1f(h, Number.isNaN(u) ? 1 : u);
|
|
69
69
|
}
|
|
70
70
|
x(re() ? 10 : void 0);
|
|
71
71
|
}, re = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches, x = (e) => {
|
|
72
|
-
s && r.value && (s.uniform1f(
|
|
72
|
+
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));
|
|
73
73
|
}, C = () => {
|
|
74
74
|
x(), c = requestAnimationFrame(C);
|
|
75
75
|
};
|
|
@@ -96,10 +96,10 @@ var we = {
|
|
|
96
96
|
1,
|
|
97
97
|
1
|
|
98
98
|
]), s.STATIC_DRAW);
|
|
99
|
-
let
|
|
100
|
-
s.enableVertexAttribArray(
|
|
99
|
+
let l = s.getAttribLocation(o, "a_position");
|
|
100
|
+
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(), le(b), re() ? x(10) : C();
|
|
101
101
|
}), de(() => {
|
|
102
|
-
cancelAnimationFrame(c),
|
|
102
|
+
cancelAnimationFrame(c), u?.disconnect();
|
|
103
103
|
}), A(() => {
|
|
104
104
|
let e = s;
|
|
105
105
|
s = null, setTimeout(() => {
|
|
@@ -614,9 +614,9 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
614
614
|
"revise",
|
|
615
615
|
"selection-action"
|
|
616
616
|
],
|
|
617
|
-
setup(o, { emit:
|
|
618
|
-
let _ = O(() => import("./PkToolShowForm-
|
|
619
|
-
me(
|
|
617
|
+
setup(o, { emit: l }) {
|
|
618
|
+
let _ = O(() => import("./PkToolShowForm-CgyszDEI.js").then((e) => e.n)), b = O(() => import("./PkToolShowContactForm-472d-SAE.js").then((e) => e.n)), ae = O(() => import("./PkToolShowSuggestedReply-DxlGhMvE.js").then((e) => e.n)), oe = O(() => import("./PkToolShowSources-CEqGXOOt.js").then((e) => e.n)), se = O(() => import("./PkToolRequestGeolocation-Bhh7UomV.js").then((e) => e.n)), le = O(() => import("./PkToolRequestOAuthConnection-8GJlt5G1.js")), ue = O(() => import("./PkToolShowLocation-Nhh_LwmN.js").then((e) => e.n)), fe = O(() => import("./PkToolShowChart-DULlrMjq.js")), pe = O(() => import("./PkToolShowDiagram-RrqVpOaX.js")), A = O(() => import("./PkToolChatFile-DcNRCVXy.js").then((e) => e.n)), he = O(() => import("./PkToolShareDocument-Bf7OE8XA.js").then((e) => e.n)), ge = O(() => import("./PkFilePreview-CRfDEYYo.js").then((e) => e.n)), _e = O(() => import("./PkFilePreviewDialog-u-0rhuRx.js").then((e) => e.n)), L = o, we = l, R = i(L.agentId), { agentInterface: z, agentFileUpload: B, agentType: Ee, agentVoice: De, actions: Oe, revisedAnswers: ke, messages: V, chat: H, messageFeedbacks: Ae, feedbackDialogMessage: je, isFeedbackSubmitting: Pe, isFeedbackSubmitted: Fe, feedbackSubmitError: Le, isLeadSubmitted: Re, isLoadingSubmitLead: ze, submitLeadError: Be, input: U, inputMessagePlaceholder: He, isConversationBlocked: Ue, baseUrl: W, pendingAttachments: We, isAttachmentLimitReached: Ge, fileLimitError: Ke, apiClient: G, isDark: qe, hostToolsPending: Je, pageNoticeLevel: Ye, hostConfirmation: st, agentPageAccess: ct, hostStepTitles: lt, hostStepChanges: ut, confirmationMode: dt, canQueue: ft, queuedMessages: pt, backgroundAnswers: mt, inputFocusRequest: ht, pagePointer: gt, pagePointerAvailable: _t, pagePointing: vt, agentSelectionActions: yt } = Se(R);
|
|
619
|
+
me(p, lt), me(d, ut);
|
|
620
620
|
let bt = ve("inputEl");
|
|
621
621
|
F(ht, () => {
|
|
622
622
|
bt.value?.focus();
|
|
@@ -797,7 +797,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
797
797
|
}, ir = async () => {
|
|
798
798
|
Q.dismissError(), await Q.stop(), await tr();
|
|
799
799
|
}, ar = (e) => e?.toolCallId ?? "", or = M(/* @__PURE__ */ new Set()), sr = (e) => or.value.has(ar(e)), cr = M(/* @__PURE__ */ new Map()), lr = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (or.value = new Set(or.value).add(ar(e)), qn()), !0) : !1, ur = (e, t, n) => {
|
|
800
|
-
lr(t,
|
|
800
|
+
lr(t, f(t, n)) || Mt({
|
|
801
801
|
tool: e,
|
|
802
802
|
toolCallId: ar(t),
|
|
803
803
|
output: n
|
|
@@ -829,7 +829,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
829
829
|
continue;
|
|
830
830
|
}
|
|
831
831
|
let { type: e, state: r, output: i } = n;
|
|
832
|
-
Cn.has(e) && r === "output-available" && i?.filename && t(
|
|
832
|
+
Cn.has(e) && r === "output-available" && i?.filename && t(m(i.filename, i.version), i.fileId);
|
|
833
833
|
}
|
|
834
834
|
return e;
|
|
835
835
|
}), $ = S(() => Ue.value ? void 0 : (e) => {
|
|
@@ -1024,7 +1024,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1024
1024
|
"is-dark": P(qe)
|
|
1025
1025
|
}, null, 8, ["part", "is-dark"])]),
|
|
1026
1026
|
"tool-editSpreadsheet": I(({ part: e }) => [(j(), C(P(A), {
|
|
1027
|
-
key: P(
|
|
1027
|
+
key: P(u)(e),
|
|
1028
1028
|
part: e,
|
|
1029
1029
|
"file-url": q,
|
|
1030
1030
|
preview: yn,
|
|
@@ -1036,7 +1036,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1036
1036
|
"restore"
|
|
1037
1037
|
]))]),
|
|
1038
1038
|
"tool-editWordDocument": I(({ part: e }) => [(j(), C(P(A), {
|
|
1039
|
-
key: P(
|
|
1039
|
+
key: P(u)(e),
|
|
1040
1040
|
part: e,
|
|
1041
1041
|
"file-url": q,
|
|
1042
1042
|
preview: yn,
|
|
@@ -1048,7 +1048,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1048
1048
|
"restore"
|
|
1049
1049
|
]))]),
|
|
1050
1050
|
"tool-createSpreadsheet": I(({ part: e }) => [(j(), C(P(A), {
|
|
1051
|
-
key: P(
|
|
1051
|
+
key: P(u)(e),
|
|
1052
1052
|
part: e,
|
|
1053
1053
|
"file-url": q,
|
|
1054
1054
|
preview: yn,
|
|
@@ -1060,7 +1060,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1060
1060
|
"restore"
|
|
1061
1061
|
]))]),
|
|
1062
1062
|
"tool-createWordDocument": I(({ part: e }) => [(j(), C(P(A), {
|
|
1063
|
-
key: P(
|
|
1063
|
+
key: P(u)(e),
|
|
1064
1064
|
part: e,
|
|
1065
1065
|
"file-url": q,
|
|
1066
1066
|
preview: yn,
|
|
@@ -1072,7 +1072,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1072
1072
|
"restore"
|
|
1073
1073
|
]))]),
|
|
1074
1074
|
"tool-shareDocument": I(({ part: e }) => [(j(), C(P(he), {
|
|
1075
|
-
key: P(
|
|
1075
|
+
key: P(u)(e),
|
|
1076
1076
|
part: e,
|
|
1077
1077
|
"on-download": Pn
|
|
1078
1078
|
}, null, 8, ["part"]))]),
|
|
@@ -1298,4 +1298,4 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
|
|
|
1298
1298
|
});
|
|
1299
1299
|
export { Me as a, Fe as i, Xe as n, De as o, Je as r, Te as s, st as t };
|
|
1300
1300
|
|
|
1301
|
-
//# sourceMappingURL=PkChatbotViewChat-
|
|
1301
|
+
//# sourceMappingURL=PkChatbotViewChat-jl3ZbK7H.js.map
|