@8wave/ai-elements 0.104.0-beta.1 → 0.105.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{Agent-DG4nPG72.js → Agent-VhugusRf.js} +2 -2
- package/dist/_chunks/Agent-VhugusRf.js.map +1 -0
- package/dist/_chunks/{Document-DXkvvAnt.js → Document-DjNrISX1.js} +2 -2
- package/dist/_chunks/{Document-DXkvvAnt.js.map → Document-DjNrISX1.js.map} +1 -1
- package/dist/_chunks/{Media-3Mo4NRj7.js → Media-hjgDyEMr.js} +2 -2
- package/dist/_chunks/Media-hjgDyEMr.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-YKd9F3xU.js → PkStreamingMarkdown-B4eMb97I.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-YKd9F3xU.js.map → PkStreamingMarkdown-B4eMb97I.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-sf6LpUN_.js → PkToolRequestGeolocation-Bp-D2nDb.js} +3 -3
- package/{dist-vue/_chunks/PkToolRequestGeolocation-BdX5DzEN.js.map → dist/_chunks/PkToolRequestGeolocation-Bp-D2nDb.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BB8mlQit.js → PkToolRequestOAuthConnection-CjjyDj9A.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-BB8mlQit.js.map → PkToolRequestOAuthConnection-CjjyDj9A.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-54saXXCe.js → PkToolShowArtifact-Dl8f7Q7q.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-54saXXCe.js.map → PkToolShowArtifact-Dl8f7Q7q.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-B_HPVUDk.js → PkToolShowCalendarEvent-B_QmZrlZ.js} +2 -2
- package/dist/_chunks/{PkToolShowCalendarEvent-B_HPVUDk.js.map → PkToolShowCalendarEvent-B_QmZrlZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-BtcNCixq.js → PkToolShowContactForm-CXE0485W.js} +14 -14
- package/dist/_chunks/{PkToolShowContactForm-BtcNCixq.js.map → PkToolShowContactForm-CXE0485W.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-cA64c2_N.js → PkToolShowDiagram-D-TyCkCB.js} +2 -2
- package/dist/_chunks/{PkToolShowDiagram-cA64c2_N.js.map → PkToolShowDiagram-D-TyCkCB.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DdBAG0Qs.js → PkToolShowForm-BzaibKAz.js} +101 -115
- package/dist/_chunks/PkToolShowForm-BzaibKAz.js.map +1 -0
- package/dist/_chunks/{PkToolShowSources-0qudS-bu.js → PkToolShowSources-CoTIoupP.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-0qudS-bu.js.map → PkToolShowSources-CoTIoupP.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-B2IB6ioR.js → PkToolShowSuggestedReply-DA2Bi7k4.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-B2IB6ioR.js.map → PkToolShowSuggestedReply-DA2Bi7k4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-Bl3Yoscl.js → PkToolShowWeather-ChDHtOLz.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-Bl3Yoscl.js.map → PkToolShowWeather-ChDHtOLz.js.map} +1 -1
- package/dist/_chunks/{browser-DuzNfJq0.js → browser-BXy4OnXA.js} +804 -779
- package/dist/_chunks/browser-BXy4OnXA.js.map +1 -0
- package/dist/_chunks/index.es-CnpsLhp_.js +1006 -0
- package/dist/_chunks/index.es-CnpsLhp_.js.map +1 -0
- package/dist/_chunks/utils-DtJdKlnF.js +185 -0
- package/dist/_chunks/utils-DtJdKlnF.js.map +1 -0
- package/dist/_chunks/{vue-i18n-_ouwlDGE.js → vue-i18n-C3J36GV4.js} +2 -2
- package/dist/_chunks/{vue-i18n-_ouwlDGE.js.map → vue-i18n-C3J36GV4.js.map} +1 -1
- package/dist/_chunks/{web-DnPxEADy.js → web-CzR5jWfC.js} +46 -45
- package/dist/_chunks/{web-DnPxEADy.js.map → web-CzR5jWfC.js.map} +1 -1
- package/dist/ai-elements.es.js +2100 -2159
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-gCuDMxHN.js → Agent-CpIgGdU4.js} +2 -2
- package/dist-vue/_chunks/Agent-CpIgGdU4.js.map +1 -0
- package/dist-vue/_chunks/{Document-iH61Cw06.js → Document-CiaGPYTR.js} +2 -2
- package/dist-vue/_chunks/{Document-iH61Cw06.js.map → Document-CiaGPYTR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-Bg9oercD.js → PkChatbot-xmjKbljL.js} +7 -7
- package/dist-vue/_chunks/{PkChatbot-Bg9oercD.js.map → PkChatbot-xmjKbljL.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-DUQxuYaG.js → PkChatbotMessages-tHQ2JQrb.js} +75 -75
- package/dist-vue/_chunks/{PkChatbotMessages-DUQxuYaG.js.map → PkChatbotMessages-tHQ2JQrb.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-hCmy4XG9.js → PkChatbotStepPayload-BtsnkJIV.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-hCmy4XG9.js.map → PkChatbotStepPayload-BtsnkJIV.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B0WU0HcD.js → PkChatbotStepToolDetail-CCa95eBO.js} +116 -101
- package/dist-vue/_chunks/PkChatbotStepToolDetail-CCa95eBO.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotSteps-CPBzs7Gi.js +180 -0
- package/dist-vue/_chunks/PkChatbotSteps-CPBzs7Gi.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-YwjWNoqf.js → PkChatbotViewChat-CdiPjQLq.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-YwjWNoqf.js.map → PkChatbotViewChat-CdiPjQLq.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-vo57eSwy.js → PkChatbotViewConversations-BP-NJvlK.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-vo57eSwy.js.map → PkChatbotViewConversations-BP-NJvlK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DDPugn7F.js → PkChatbotViewFiles-DRUVmxU5.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DDPugn7F.js.map → PkChatbotViewFiles-DRUVmxU5.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dww5KI21.js → PkChatbotViewProfile-ywvIs6N5.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dww5KI21.js.map → PkChatbotViewProfile-ywvIs6N5.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-BdX5DzEN.js → PkToolRequestGeolocation-BdIyXoPQ.js} +2 -2
- package/{dist/_chunks/PkToolRequestGeolocation-sf6LpUN_.js.map → dist-vue/_chunks/PkToolRequestGeolocation-BdIyXoPQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BUmnRgMi.js → PkToolRequestOAuthConnection-Dnch7xAB.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BUmnRgMi.js.map → PkToolRequestOAuthConnection-Dnch7xAB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-YMo-iVWr.js → PkToolShowDiagram-DgLxNNp7.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-YMo-iVWr.js.map → PkToolShowDiagram-DgLxNNp7.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-D2n2rA6J.js → PkToolShowForm-6eLi6Wr0.js} +103 -117
- package/dist-vue/_chunks/PkToolShowForm-6eLi6Wr0.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowSources-DUAsrrzC.js → PkToolShowSources-DTJgvDiB.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-DUAsrrzC.js.map → PkToolShowSources-DTJgvDiB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Dm28RIJF.js → PkToolShowSuggestedReply-D9RY2h6Z.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Dm28RIJF.js.map → PkToolShowSuggestedReply-D9RY2h6Z.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CAX-3-oK.js → createChatbotApiClient-12eL7hul.js} +2 -2
- package/dist-vue/_chunks/{createChatbotApiClient-CAX-3-oK.js.map → createChatbotApiClient-12eL7hul.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-Rj18hAUf.js → useChatbotStore-Chtzi5jc.js} +1086 -1016
- package/dist-vue/_chunks/useChatbotStore-Chtzi5jc.js.map +1 -0
- package/dist-vue/_chunks/{utils-B0jsOUqd.js → utils-DKNWwMTQ.js} +46 -23
- package/dist-vue/_chunks/utils-DKNWwMTQ.js.map +1 -0
- package/dist-vue/_chunks/{web-DnPxEADy.js → web-CzR5jWfC.js} +46 -45
- package/dist-vue/_chunks/{web-DnPxEADy.js.map → web-CzR5jWfC.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +3 -3
- package/dist-vue/index.js +261 -261
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +10 -4
- package/dist-vue/packages/components/src/PkEditorRepeater.d.ts +1 -1
- package/dist-vue/packages/components/src/chat/constants.d.ts +12 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +37 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +24 -16
- package/dist-vue/packages/models/src/schema/AgentChatStatistics.d.ts +1 -1
- package/dist-vue/packages/models/src/schema/Chat.d.ts +9 -9
- package/dist-vue/packages/models/src/schema/Document.d.ts +6 -6
- package/dist-vue/packages/models/src/schema/DocumentFolder.d.ts +0 -1
- package/dist-vue/packages/models/src/schema/McpServer.d.ts +2 -2
- package/dist-vue/packages/models/src/schema/Member.d.ts +2 -2
- package/dist-vue/packages/models/src/schema/Organization.d.ts +4 -4
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +29 -29
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +20 -20
- package/dist-vue/packages/models/src/schema/User.d.ts +6 -6
- package/dist-vue/packages/models/src/schema/constants.d.ts +2 -0
- package/package.json +10 -5
- package/dist/_chunks/Agent-DG4nPG72.js.map +0 -1
- package/dist/_chunks/Media-3Mo4NRj7.js.map +0 -1
- package/dist/_chunks/PkToolShowForm-DdBAG0Qs.js.map +0 -1
- package/dist/_chunks/browser-DuzNfJq0.js.map +0 -1
- package/dist/_chunks/index.es-DXx8DNKf.js +0 -2986
- package/dist/_chunks/index.es-DXx8DNKf.js.map +0 -1
- package/dist-vue/_chunks/Agent-gCuDMxHN.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotStepToolDetail-B0WU0HcD.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotSteps-BrvTsAeZ.js +0 -177
- package/dist-vue/_chunks/PkChatbotSteps-BrvTsAeZ.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowForm-D2n2rA6J.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-Rj18hAUf.js.map +0 -1
- package/dist-vue/_chunks/utils-B0jsOUqd.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as e } from "./Agent-
|
|
1
|
+
import { D as e } from "./Agent-CpIgGdU4.js";
|
|
2
2
|
import { t } from "./PkChatbotError-B2iob9cQ.js";
|
|
3
3
|
import { t as n } from "./PkStreamingMarkdown-DWU_rlti.js";
|
|
4
4
|
import "./src-C2w8W_tC.js";
|
|
@@ -7,30 +7,30 @@ import { t as l } from "./PkRelativeTime--1cIphlA.js";
|
|
|
7
7
|
import { t as u } from "./PkChatbotFilePreview-cWalF2d2.js";
|
|
8
8
|
import { t as d } from "./PkChatbotFeedbackForm-DBmoiyav.js";
|
|
9
9
|
import { t as f } from "./PkChatbotMessageFeedback-BYmrVaCE.js";
|
|
10
|
-
import { _ as p,
|
|
11
|
-
import { n as re, t as ie } from "./PkChatbotSteps-
|
|
10
|
+
import { _ as p, c as m, g as h, l as g, m as ee, o as _, s as v, t as y, u as te, v as b, y as ne } from "./utils-DKNWwMTQ.js";
|
|
11
|
+
import { n as re, t as ie } from "./PkChatbotSteps-CPBzs7Gi.js";
|
|
12
12
|
import { t as x } from "./PkChatbotOutlineRail-np4g6vsz.js";
|
|
13
13
|
import { VvButton as S, VvButtonGroup as C, VvIcon as ae } from "@volverjs/ui-vue/components";
|
|
14
14
|
import { Fragment as w, Transition as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as oe, createVNode as j, defineAsyncComponent as M, defineComponent as N, mergeProps as se, nextTick as P, normalizeClass as F, normalizeStyle as ce, onBeforeUnmount as I, onMounted as le, openBlock as L, ref as R, renderList as ue, renderSlot as de, resolveDynamicComponent as fe, toDisplayString as z, unref as B, useSlots as pe, useTemplateRef as me, watch as V, withCtx as H, withModifiers as U } from "vue";
|
|
15
15
|
import { useI18n as he } from "vue-i18n";
|
|
16
16
|
//#region ../../packages/utils/src/text.ts
|
|
17
17
|
var W = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), ge = (e) => e ? e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/[-_]+/g, " ") : "", _e = (e) => e ? W(e).replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[^a-zA-Z0-9]+/g, "-").toLowerCase() : "", ve = (e) => e ? W(e).replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[^a-zA-Z0-9]+/g, "_").toLowerCase() : "", ye = (e) => e ? e.charAt(0).toUpperCase() + e.slice(1) : "", be = {
|
|
18
|
-
requestOAuthConnection: M(() => import("./PkToolRequestOAuthConnection-
|
|
18
|
+
requestOAuthConnection: M(() => import("./PkToolRequestOAuthConnection-Dnch7xAB.js")),
|
|
19
19
|
showArtifact: M(() => import("./PkToolShowArtifact-Bd65jjmL.js").then((e) => e.n)),
|
|
20
20
|
showCalendarEvent: M(() => import("./PkToolShowCalendarEvent-CjWka-1Q.js").then((e) => e.n)),
|
|
21
21
|
showComparison: M(() => import("./PkToolShowComparison-D0iMf7JW.js").then((e) => e.n)),
|
|
22
22
|
showContactForm: M(() => import("./PkToolShowContactForm-DaDVmo24.js").then((e) => e.n)),
|
|
23
|
-
showDiagram: M(() => import("./PkToolShowDiagram-
|
|
23
|
+
showDiagram: M(() => import("./PkToolShowDiagram-DgLxNNp7.js")),
|
|
24
24
|
showEmail: M(() => import("./PkToolShowEmail-DteAgLOB.js").then((e) => e.n)),
|
|
25
25
|
showImageGallery: M(() => import("./PkToolShowImageGallery-Bs3-eeHY.js").then((e) => e.n)),
|
|
26
26
|
showLocation: M(() => import("./PkToolShowLocation-BHHR5EC5.js").then((e) => e.n)),
|
|
27
27
|
showMessage: M(() => import("./PkToolShowMessage-BF2whC3q.js").then((e) => e.n)),
|
|
28
|
-
showForm: M(() => import("./PkToolShowForm-
|
|
29
|
-
showMultipleChoice: M(() => import("./PkToolShowForm-
|
|
28
|
+
showForm: M(() => import("./PkToolShowForm-6eLi6Wr0.js").then((e) => e.n)),
|
|
29
|
+
showMultipleChoice: M(() => import("./PkToolShowForm-6eLi6Wr0.js").then((e) => e.n)),
|
|
30
30
|
showProductList: M(() => import("./PkToolShowProductList-DPK8rTJB.js").then((e) => e.n)),
|
|
31
31
|
showQrCode: M(() => import("./PkToolShowQrCode-DEAvfLFu.js").then((e) => e.n)),
|
|
32
|
-
showSources: M(() => import("./PkToolShowSources-
|
|
33
|
-
showSuggestedReply: M(() => import("./PkToolShowSuggestedReply-
|
|
32
|
+
showSources: M(() => import("./PkToolShowSources-DTJgvDiB.js").then((e) => e.n)),
|
|
33
|
+
showSuggestedReply: M(() => import("./PkToolShowSuggestedReply-D9RY2h6Z.js").then((e) => e.n)),
|
|
34
34
|
showVideo: M(() => import("./PkToolShowVideo-v1MLr-UW.js")),
|
|
35
35
|
showWeather: M(() => import("./PkToolShowWeather-b5zd6-en.js")),
|
|
36
36
|
showWebPages: M(() => import("./PkToolShowWebPages-CKmPTEcN.js").then((e) => e.n))
|
|
@@ -47,7 +47,7 @@ var W = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), ge = (e) => e
|
|
|
47
47
|
});
|
|
48
48
|
return (e, t) => n.value ? (L(), k("p", G, z(n.value), 1)) : O("", !0);
|
|
49
49
|
}
|
|
50
|
-
}), xe = { [
|
|
50
|
+
}), xe = { [y]: K }, Se = {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: "text-12 text-word-3 m-0 mb-xs"
|
|
53
53
|
}, Ce = /* @__PURE__ */ N({
|
|
@@ -59,7 +59,7 @@ var W = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), ge = (e) => e
|
|
|
59
59
|
},
|
|
60
60
|
emits: ["respond"],
|
|
61
61
|
setup(t, { emit: n }) {
|
|
62
|
-
let r = t, i = n, { t: a } = he({ useScope: "global" }), s = E(() => r.part), c = E(() => o(r.part)), l = E(() => c.value ===
|
|
62
|
+
let r = t, i = n, { t: a } = he({ useScope: "global" }), s = E(() => r.part), c = E(() => o(r.part)), l = E(() => c.value === y), u = E(() => l.value ? (s.value.state === "input-available" || e(s.value.output)) && r.callVerdict === void 0 : s.value.state === "approval-requested"), d = E(() => u.value && r.actionable === !0), f = E(() => u.value && r.actionable !== !0), p = E(() => l.value ? s.value.output === "confirmed" || r.callVerdict === !0 : s.value.approval?.approved === !0), m = E(() => l.value ? s.value.output === "cancelled" || r.callVerdict === !1 : s.value.approval?.approved === !1 || s.value.state === "output-denied"), h = E(() => xe[c.value]), g = E(() => {
|
|
63
63
|
if (f.value) return {
|
|
64
64
|
icon: "ri:time-line",
|
|
65
65
|
message: a("toolApproval.expired")
|
|
@@ -72,10 +72,10 @@ var W = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), ge = (e) => e
|
|
|
72
72
|
icon: "ri:close-line",
|
|
73
73
|
message: a(l.value ? "toolApproval.cancelled" : "toolApproval.denied")
|
|
74
74
|
};
|
|
75
|
-
}),
|
|
75
|
+
}), ee = E(() => !!g.value && !h.value);
|
|
76
76
|
return (e, n) => {
|
|
77
77
|
let r = S, o = C, c = ae;
|
|
78
|
-
return L(), k("div", { class: F(["w-full overflow-hidden transition-all duration-300", { "bg-surface p-sm rounded-xl border border-surface-3": !
|
|
78
|
+
return L(), k("div", { class: F(["w-full overflow-hidden transition-all duration-300", { "bg-surface p-sm rounded-xl border border-surface-3": !ee.value }]) }, [
|
|
79
79
|
j(T, null, {
|
|
80
80
|
default: H(() => [!l.value && u.value ? (L(), k("p", Se, z(B(a)("toolApproval.prompt")), 1)) : O("", !0)]),
|
|
81
81
|
_: 1
|
|
@@ -115,7 +115,7 @@ var W = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), ge = (e) => e
|
|
|
115
115
|
}
|
|
116
116
|
}), we = 30, Te = 500;
|
|
117
117
|
function Ee(e) {
|
|
118
|
-
let { scrollEl: t, status: n, messagesLength: r, lastMessageRole: i, contentEl: a, beforeNewMessageScroll: o, onScrollUp: s, onScrollDown: c } = e, l = R(!1), u = R(!0), d = !1, f = null, p = null, m = null, h = null, g = 0,
|
|
118
|
+
let { scrollEl: t, status: n, messagesLength: r, lastMessageRole: i, contentEl: a, beforeNewMessageScroll: o, onScrollUp: s, onScrollDown: c } = e, l = R(!1), u = R(!0), d = !1, f = null, p = null, m = null, h = null, g = 0, ee = (e = "smooth") => {
|
|
119
119
|
if (!t.value || l.value) {
|
|
120
120
|
d = !1;
|
|
121
121
|
return;
|
|
@@ -126,14 +126,14 @@ function Ee(e) {
|
|
|
126
126
|
}), setTimeout(() => {
|
|
127
127
|
d = !1;
|
|
128
128
|
}, e === "instant" ? 0 : Te);
|
|
129
|
-
},
|
|
129
|
+
}, _ = (e) => {
|
|
130
130
|
e.deltaY < 0 && (l.value = !0);
|
|
131
|
-
}, v = 0,
|
|
131
|
+
}, v = 0, y = (e) => {
|
|
132
132
|
v = e.touches[0]?.clientY ?? 0;
|
|
133
|
-
},
|
|
133
|
+
}, te = (e) => {
|
|
134
134
|
let t = e.touches[0]?.clientY ?? 0;
|
|
135
135
|
t > v && (l.value = !0), v = t;
|
|
136
|
-
},
|
|
136
|
+
}, b = () => {
|
|
137
137
|
if (!t.value) return;
|
|
138
138
|
let { scrollTop: e, scrollHeight: n, clientHeight: r } = t.value;
|
|
139
139
|
if (u.value = n - r - e < we, d) {
|
|
@@ -141,14 +141,14 @@ function Ee(e) {
|
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
143
|
e < g && s?.(), e > g && (u.value && (l.value = !1), c?.()), g = e;
|
|
144
|
-
},
|
|
144
|
+
}, ne = () => {
|
|
145
145
|
if (d || l.value || !t.value) return;
|
|
146
146
|
let e = t.value, n = e.scrollHeight - e.clientHeight;
|
|
147
147
|
n <= e.scrollTop || (u.value = !0, d = !0, e.scrollTop = n, requestAnimationFrame(() => {
|
|
148
148
|
d = !1;
|
|
149
149
|
}));
|
|
150
150
|
}, re = () => {
|
|
151
|
-
f || !t.value || (f = new MutationObserver(
|
|
151
|
+
f || !t.value || (f = new MutationObserver(ne), f.observe(t.value, {
|
|
152
152
|
childList: !0,
|
|
153
153
|
subtree: !0,
|
|
154
154
|
characterData: !0
|
|
@@ -168,7 +168,7 @@ function Ee(e) {
|
|
|
168
168
|
try {
|
|
169
169
|
await P(), await o?.(), await P();
|
|
170
170
|
} finally {
|
|
171
|
-
|
|
171
|
+
ee();
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
});
|
|
@@ -179,19 +179,19 @@ function Ee(e) {
|
|
|
179
179
|
};
|
|
180
180
|
return le(() => {
|
|
181
181
|
if (!t.value) return;
|
|
182
|
-
t.value.addEventListener("wheel",
|
|
182
|
+
t.value.addEventListener("wheel", _, { passive: !0 }), t.value.addEventListener("touchstart", y, { passive: !0 }), t.value.addEventListener("touchmove", te, { passive: !0 });
|
|
183
183
|
let e = n() === "submitted" || n() === "streaming";
|
|
184
184
|
e ? re() : (p = new ResizeObserver(S), p.observe(t.value), m = new MutationObserver(S), m.observe(t.value, {
|
|
185
185
|
childList: !0,
|
|
186
186
|
subtree: !0
|
|
187
187
|
}));
|
|
188
188
|
let r = a?.() ?? t.value.firstElementChild;
|
|
189
|
-
r && (h = new ResizeObserver(
|
|
189
|
+
r && (h = new ResizeObserver(ne), h.observe(r)), e || S();
|
|
190
190
|
}), I(() => {
|
|
191
|
-
t.value?.removeEventListener("wheel",
|
|
191
|
+
t.value?.removeEventListener("wheel", _), t.value?.removeEventListener("touchstart", y), t.value?.removeEventListener("touchmove", te), h?.disconnect(), h = null, ie(), C();
|
|
192
192
|
}), {
|
|
193
|
-
handleScroll:
|
|
194
|
-
scrollToBottom:
|
|
193
|
+
handleScroll: b,
|
|
194
|
+
scrollToBottom: ee,
|
|
195
195
|
userScrolledUp: l,
|
|
196
196
|
isAtBottom: u
|
|
197
197
|
};
|
|
@@ -268,9 +268,9 @@ var De = ["aria-busy"], Oe = {
|
|
|
268
268
|
"approval-respond",
|
|
269
269
|
"confirm-respond"
|
|
270
270
|
],
|
|
271
|
-
setup(e, { emit:
|
|
272
|
-
let M = e, N =
|
|
273
|
-
if (
|
|
271
|
+
setup(e, { emit: y }) {
|
|
272
|
+
let M = e, N = y, { t: I, d: W, n: ge } = he({ useScope: "global" }), ve = pe(), ye = (e, t) => {
|
|
273
|
+
if (p(e)) {
|
|
274
274
|
let n = e.toolCallId;
|
|
275
275
|
n && N("confirm-respond", {
|
|
276
276
|
toolCallId: n,
|
|
@@ -278,12 +278,12 @@ var De = ["aria-busy"], Oe = {
|
|
|
278
278
|
});
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
|
-
let n =
|
|
281
|
+
let n = g(e);
|
|
282
282
|
n && N("approval-respond", {
|
|
283
283
|
id: n,
|
|
284
284
|
approved: t
|
|
285
285
|
});
|
|
286
|
-
}, G = me("scrollEl"), K = me("wrapperEl"), xe = E(() =>
|
|
286
|
+
}, G = me("scrollEl"), K = me("wrapperEl"), xe = E(() => ne(M.textColor, M.mainColor)), { handleScroll: Se, scrollToBottom: we, userScrolledUp: Te, isAtBottom: $e } = Ee({
|
|
287
287
|
scrollEl: G,
|
|
288
288
|
status: () => M.status,
|
|
289
289
|
messagesLength: () => M.messages?.length,
|
|
@@ -348,14 +348,14 @@ var De = ["aria-busy"], Oe = {
|
|
|
348
348
|
return e ? e.parts[e.parts.length - 1] : null;
|
|
349
349
|
}), vt = E(() => {
|
|
350
350
|
let e = /* @__PURE__ */ new Map();
|
|
351
|
-
for (let t of M.messages ?? []) t.role === "assistant" && e.set(t.id,
|
|
351
|
+
for (let t of M.messages ?? []) t.role === "assistant" && e.set(t.id, b(t.parts));
|
|
352
352
|
return e;
|
|
353
353
|
}), yt = (e) => vt.value.get(e.id) ?? e.parts, Z = E(() => M.status === "submitted" || M.status === "streaming"), bt = E(() => M.status === "error"), xt = E(() => M.awaitingSpokenAnswer === !0 && !Z.value), St = E(() => xt.value && _t.value?.role === "user" && !bt.value), Ct = E(() => {
|
|
354
354
|
let e = X.value;
|
|
355
|
-
return
|
|
355
|
+
return te(I, e);
|
|
356
356
|
}), wt = E(() => {
|
|
357
357
|
let e = X.value;
|
|
358
|
-
return
|
|
358
|
+
return v(e);
|
|
359
359
|
}), Tt = (e) => M.messages?.findIndex((t) => t.id === e), Q = (e) => e === void 0 || !M.messages ? !1 : e === M.messages.length - 1, Et = (e) => Q(e) && M.status === "ready" && !!M.actions?.includes("regenerate"), Dt = (e, t) => (!Q(t) || M.status === "ready") && !!M.actions?.includes(e), Ot = (e) => {
|
|
360
360
|
let t = e.parts[e.parts.length - 1];
|
|
361
361
|
return s(t);
|
|
@@ -369,7 +369,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
369
369
|
return W(t, n ? "time" : "date-time");
|
|
370
370
|
}, Lt = (e) => {
|
|
371
371
|
let { createdAt: t, completedAt: n } = e.metadata ?? {};
|
|
372
|
-
if (!(!t || !n)) return
|
|
372
|
+
if (!(!t || !n)) return _(ge, n - t);
|
|
373
373
|
}, Rt = me("feedbackMessageEl");
|
|
374
374
|
return V(() => M.feedbackMessageId, async () => {
|
|
375
375
|
if (await P(), !M.feedbackMessageId) return;
|
|
@@ -384,8 +384,8 @@ var De = ["aria-busy"], Oe = {
|
|
|
384
384
|
block: "center"
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
}), (a,
|
|
388
|
-
let
|
|
387
|
+
}), (a, g) => {
|
|
388
|
+
let _ = ae, y = S, te = C;
|
|
389
389
|
return L(), k("div", {
|
|
390
390
|
ref_key: "scrollEl",
|
|
391
391
|
ref: G,
|
|
@@ -410,10 +410,10 @@ var De = ["aria-busy"], Oe = {
|
|
|
410
410
|
ref: K,
|
|
411
411
|
class: "pk-chatbot-messages__wrapper"
|
|
412
412
|
}, [
|
|
413
|
-
(L(!0), k(w, null, ue(e.messages, (t,
|
|
413
|
+
(L(!0), k(w, null, ue(e.messages, (t, b) => (L(), k(w, { key: t.id }, [jt(t) && Pt(b) ? (L(), k("div", ke, [A("span", Ae, z(B(W)(Pt(b), "short")), 1)])) : O("", !0), t.parts.length || Q(b) && Z.value && $(t) ? (L(), k("div", {
|
|
414
414
|
key: 1,
|
|
415
|
-
class: F(["pk-chatbot-message", [`pk-chatbot-message--${t.role}`, { "pk-chatbot-message--loading": Z.value && Q(
|
|
416
|
-
style: ce({ minHeight: Q(
|
|
415
|
+
class: F(["pk-chatbot-message", [`pk-chatbot-message--${t.role}`, { "pk-chatbot-message--loading": Z.value && Q(b) && $(t) }]]),
|
|
416
|
+
style: ce({ minHeight: Q(b) && $(t) && !bt.value ? `${J.value}px` : void 0 })
|
|
417
417
|
}, [
|
|
418
418
|
j(T, {
|
|
419
419
|
appear: "",
|
|
@@ -422,7 +422,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
422
422
|
default: H(() => [At(t) ? (L(), D(ie, {
|
|
423
423
|
key: 0,
|
|
424
424
|
message: t,
|
|
425
|
-
"is-streaming": Z.value && Q(
|
|
425
|
+
"is-streaming": Z.value && Q(b),
|
|
426
426
|
"is-dark": e.isDark
|
|
427
427
|
}, null, 8, [
|
|
428
428
|
"message",
|
|
@@ -439,14 +439,14 @@ var De = ["aria-busy"], Oe = {
|
|
|
439
439
|
default: H(() => [A("div", je, [de(a.$slots, "text", se({ ref_for: !0 }, {
|
|
440
440
|
message: t,
|
|
441
441
|
part: l,
|
|
442
|
-
index:
|
|
442
|
+
index: b,
|
|
443
443
|
isLoading: Z.value
|
|
444
444
|
}), () => [$(t) ? (L(), D(n, {
|
|
445
445
|
key: 0,
|
|
446
446
|
class: "wysiwyg",
|
|
447
447
|
markdown: l.text,
|
|
448
448
|
"is-dark": e.isDark,
|
|
449
|
-
loading: Q(
|
|
449
|
+
loading: Q(b) && e.status === "streaming"
|
|
450
450
|
}, null, 8, [
|
|
451
451
|
"markdown",
|
|
452
452
|
"is-dark",
|
|
@@ -455,7 +455,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
455
455
|
key: 0,
|
|
456
456
|
class: F(["pk-chatbot-message__reaction", mt(t.id)]),
|
|
457
457
|
title: ht(t.id)
|
|
458
|
-
}, [ft(t.id) ? (L(), k("span", Ne, z(ft(t.id)), 1)) : (L(), D(
|
|
458
|
+
}, [ft(t.id) ? (L(), k("span", Ne, z(ft(t.id)), 1)) : (L(), D(_, {
|
|
459
459
|
key: 1,
|
|
460
460
|
name: dt(t.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
|
|
461
461
|
}, null, 8, ["name"]))], 10, Me)) : O("", !0)])]),
|
|
@@ -477,7 +477,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
477
477
|
"size"
|
|
478
478
|
])]),
|
|
479
479
|
_: 2
|
|
480
|
-
}, 1024)) : B(
|
|
480
|
+
}, 1024)) : B(ee)(l) && !B(h)(l) ? (L(), D(T, {
|
|
481
481
|
key: 2,
|
|
482
482
|
appear: "",
|
|
483
483
|
name: "pk-chatbot-part"
|
|
@@ -485,7 +485,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
485
485
|
default: H(() => [(L(), D(Ce, {
|
|
486
486
|
key: `approval-${d}`,
|
|
487
487
|
part: l,
|
|
488
|
-
actionable: e.interactive === !0 && (B(
|
|
488
|
+
actionable: e.interactive === !0 && (B(p)(l) || Q(b)),
|
|
489
489
|
"call-verdict": e.confirmVerdictsOnCall?.get(l.toolCallId ?? ""),
|
|
490
490
|
onRespond: (e) => ye(l, e)
|
|
491
491
|
}, null, 8, [
|
|
@@ -495,22 +495,22 @@ var De = ["aria-busy"], Oe = {
|
|
|
495
495
|
"onRespond"
|
|
496
496
|
]))]),
|
|
497
497
|
_: 2
|
|
498
|
-
}, 1024)) : B(i)(l) && !B(
|
|
498
|
+
}, 1024)) : B(i)(l) && !B(h)(l) && (B(be)[B(o)(l)] || B(ve)[l.type] || e.showAllMessageParts) ? (L(), D(T, {
|
|
499
499
|
key: 3,
|
|
500
500
|
appear: "",
|
|
501
501
|
name: "pk-chatbot-part"
|
|
502
502
|
}, {
|
|
503
503
|
default: H(() => [!B(ve)[l.type] && B(be)[B(o)(l)] ? (L(), D(fe(B(be)[B(o)(l)]), {
|
|
504
|
-
key: `component-${d}-${B(
|
|
504
|
+
key: `component-${d}-${B(m)(l)}`,
|
|
505
505
|
part: l
|
|
506
506
|
}, null, 8, ["part"])) : de(a.$slots, l.type, se({ ref_for: !0 }, {
|
|
507
507
|
message: t,
|
|
508
508
|
part: l,
|
|
509
|
-
index:
|
|
509
|
+
index: b,
|
|
510
510
|
isLoading: Z.value
|
|
511
|
-
}), () => [e.showAllMessageParts ? (L(), k("div", Pe, [A("div", Fe, [B(
|
|
511
|
+
}), () => [e.showAllMessageParts ? (L(), k("div", Pe, [A("div", Fe, [B(v)(l) ? (L(), D(_, {
|
|
512
512
|
key: 0,
|
|
513
|
-
name: B(
|
|
513
|
+
name: B(v)(l),
|
|
514
514
|
class: "shrink-0"
|
|
515
515
|
}, null, 8, ["name"])) : O("", !0), A("code", Ie, z(B(_e)(l.type)), 1)])])) : O("", !0)], void 0, 1)]),
|
|
516
516
|
_: 2
|
|
@@ -525,16 +525,16 @@ var De = ["aria-busy"], Oe = {
|
|
|
525
525
|
name: "fade-in",
|
|
526
526
|
mode: "out-in"
|
|
527
527
|
}, {
|
|
528
|
-
default: H(() => [Z.value && Q(
|
|
528
|
+
default: H(() => [Z.value && Q(b) && !Ot(t) && $(t) && !At(t) ? (L(), k("div", {
|
|
529
529
|
key: `loading-info-${t.id}`,
|
|
530
530
|
class: "pk-chatbot-message__loading-info"
|
|
531
531
|
}, [A("div", Le, [
|
|
532
|
-
j(
|
|
532
|
+
j(_, {
|
|
533
533
|
name: "line-md:loading-loop",
|
|
534
534
|
class: "shrink-0"
|
|
535
535
|
}),
|
|
536
536
|
j(T, { mode: "out-in" }, {
|
|
537
|
-
default: H(() => [wt.value ? (L(), D(
|
|
537
|
+
default: H(() => [wt.value ? (L(), D(_, {
|
|
538
538
|
key: wt.value,
|
|
539
539
|
class: "shrink-0",
|
|
540
540
|
name: wt.value
|
|
@@ -564,25 +564,25 @@ var De = ["aria-busy"], Oe = {
|
|
|
564
564
|
_: 2
|
|
565
565
|
}, 1024),
|
|
566
566
|
j(T, { mode: "out-in" }, {
|
|
567
|
-
default: H(() => [Ft(t,
|
|
568
|
-
j(
|
|
567
|
+
default: H(() => [Ft(t, b) ? (L(), k("div", Re, [
|
|
568
|
+
j(te, {
|
|
569
569
|
modifiers: "compact",
|
|
570
570
|
class: "mr-auto shrink-0"
|
|
571
571
|
}, {
|
|
572
572
|
default: H(() => [
|
|
573
573
|
j(T, { mode: "out-in" }, {
|
|
574
|
-
default: H(() => [Et(
|
|
574
|
+
default: H(() => [Et(b) ? (L(), D(y, {
|
|
575
575
|
key: 0,
|
|
576
576
|
icon: "ri:reset-right-line",
|
|
577
577
|
modifiers: "action-quiet-small",
|
|
578
578
|
title: B(I)("action.regenerate"),
|
|
579
579
|
"aria-label": B(I)("action.regenerate"),
|
|
580
|
-
onClick:
|
|
580
|
+
onClick: g[0] ||= U((e) => a.$emit("regenerate"), ["stop"])
|
|
581
581
|
}, null, 8, ["title", "aria-label"])) : O("", !0)]),
|
|
582
582
|
_: 2
|
|
583
583
|
}, 1024),
|
|
584
584
|
j(T, { mode: "out-in" }, {
|
|
585
|
-
default: H(() => [Dt("show-info",
|
|
585
|
+
default: H(() => [Dt("show-info", b) ? (L(), D(y, {
|
|
586
586
|
key: 0,
|
|
587
587
|
icon: "ri:information-line",
|
|
588
588
|
title: B(I)("action.getMoreInfo"),
|
|
@@ -597,7 +597,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
597
597
|
_: 2
|
|
598
598
|
}, 1024),
|
|
599
599
|
j(T, { mode: "out-in" }, {
|
|
600
|
-
default: H(() => [Dt("revise",
|
|
600
|
+
default: H(() => [Dt("revise", b) ? (L(), D(y, {
|
|
601
601
|
key: 0,
|
|
602
602
|
icon: ct(t.id) ? "ri:file-edit-fill" : "ri:file-edit-line",
|
|
603
603
|
title: ct(t.id) ? B(I)("action.editRevise") : B(I)("action.createRevise"),
|
|
@@ -615,7 +615,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
615
615
|
_: 2
|
|
616
616
|
}, 1024),
|
|
617
617
|
j(T, { mode: "out-in" }, {
|
|
618
|
-
default: H(() => [lt("upvote",
|
|
618
|
+
default: H(() => [lt("upvote", b) ? (L(), D(y, {
|
|
619
619
|
key: 0,
|
|
620
620
|
icon: Y(t.id)?.vote === "upvote" ? "ri:thumb-up-fill" : "ri:thumb-up-line",
|
|
621
621
|
title: B(I)("action.upvote"),
|
|
@@ -631,7 +631,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
631
631
|
_: 2
|
|
632
632
|
}, 1024),
|
|
633
633
|
j(T, { mode: "out-in" }, {
|
|
634
|
-
default: H(() => [lt("downvote",
|
|
634
|
+
default: H(() => [lt("downvote", b) ? (L(), D(y, {
|
|
635
635
|
key: 0,
|
|
636
636
|
icon: Y(t.id)?.vote === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-down-line",
|
|
637
637
|
title: B(I)("action.downvote"),
|
|
@@ -647,7 +647,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
647
647
|
_: 2
|
|
648
648
|
}, 1024),
|
|
649
649
|
j(T, { mode: "out-in" }, {
|
|
650
|
-
default: H(() => [lt("feedback",
|
|
650
|
+
default: H(() => [lt("feedback", b) ? (L(), D(y, {
|
|
651
651
|
key: 0,
|
|
652
652
|
icon: Y(t.id)?.comment ? "ri:feedback-fill" : "ri:feedback-line",
|
|
653
653
|
title: B(I)("action.feedback"),
|
|
@@ -669,14 +669,14 @@ var De = ["aria-busy"], Oe = {
|
|
|
669
669
|
datetime: new Date(t.metadata.createdAt).toISOString(),
|
|
670
670
|
title: B(W)(new Date(t.metadata.createdAt), "date-time"),
|
|
671
671
|
class: "flex items-center gap-4 min-w-0"
|
|
672
|
-
}, [j(
|
|
672
|
+
}, [j(_, {
|
|
673
673
|
name: "ri:time-line",
|
|
674
674
|
class: "shrink-0"
|
|
675
|
-
}), A("span", Ve, z(It(t.metadata.createdAt)), 1)], 8, Be), Lt(t) ? (L(), k("span", He, [j(
|
|
675
|
+
}), A("span", Ve, z(It(t.metadata.createdAt)), 1)], 8, Be), Lt(t) ? (L(), k("span", He, [j(_, {
|
|
676
676
|
name: "ri:hourglass-line",
|
|
677
677
|
class: "shrink-0"
|
|
678
678
|
}), A("span", Ue, z(Lt(t)), 1)])) : O("", !0)])) : O("", !0),
|
|
679
|
-
e.showMessageTokensCount && t.metadata?.totalTokens ? (L(), k("span", We, [j(
|
|
679
|
+
e.showMessageTokensCount && t.metadata?.totalTokens ? (L(), k("span", We, [j(_, {
|
|
680
680
|
name: "ri:ai-generate-2-line",
|
|
681
681
|
class: "shrink-0"
|
|
682
682
|
}), A("span", Ge, z(B(ge)(t.metadata.totalTokens, "integer")) + " " + z(B(I)("label.tokens")), 1)])) : O("", !0),
|
|
@@ -684,11 +684,11 @@ var De = ["aria-busy"], Oe = {
|
|
|
684
684
|
key: 2,
|
|
685
685
|
datetime: new Date(t.metadata?.createdAt).toISOString(),
|
|
686
686
|
class: "flex items-center gap-4 text-12 text-word-3"
|
|
687
|
-
}, [j(
|
|
687
|
+
}, [j(_, {
|
|
688
688
|
name: "ri:time-line",
|
|
689
689
|
class: "shrink-0"
|
|
690
690
|
}), A("span", qe, z(B(W)(new Date(t.metadata?.createdAt), "date-time")), 1)], 8, Ke)) : O("", !0),
|
|
691
|
-
e.showMessageDateTime && t?.metadata?.completedAt && t?.metadata?.createdAt ? (L(), k("div", Je, [j(
|
|
691
|
+
e.showMessageDateTime && t?.metadata?.completedAt && t?.metadata?.createdAt ? (L(), k("div", Je, [j(_, {
|
|
692
692
|
name: "ri:hourglass-line",
|
|
693
693
|
class: "shrink-0"
|
|
694
694
|
}), j(l, {
|
|
@@ -708,8 +708,8 @@ var De = ["aria-busy"], Oe = {
|
|
|
708
708
|
loading: e.feedbackLoading,
|
|
709
709
|
submitted: e.feedbackSubmitted,
|
|
710
710
|
error: e.feedbackError,
|
|
711
|
-
onSubmit:
|
|
712
|
-
onClose:
|
|
711
|
+
onSubmit: g[1] ||= (e) => a.$emit("feedback-submit", e),
|
|
712
|
+
onClose: g[2] ||= (e) => a.$emit("feedback-close")
|
|
713
713
|
}, null, 8, [
|
|
714
714
|
"loading",
|
|
715
715
|
"submitted",
|
|
@@ -726,7 +726,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
726
726
|
key: 0,
|
|
727
727
|
class: "pk-chatbot-message pk-chatbot-message--assistant pk-chatbot-message--loading",
|
|
728
728
|
style: ce({ minHeight: St.value ? `${J.value}px` : void 0 })
|
|
729
|
-
}, [A("div", Ye, [A("div", Xe, [j(
|
|
729
|
+
}, [A("div", Ye, [A("div", Xe, [j(_, {
|
|
730
730
|
name: "line-md:loading-loop",
|
|
731
731
|
class: "shrink-0"
|
|
732
732
|
}), A("span", Ze, z(B(I)("label.answeringOnTheCall")), 1)])])], 4)) : O("", !0)]),
|
|
@@ -739,8 +739,8 @@ var De = ["aria-busy"], Oe = {
|
|
|
739
739
|
default: H(() => [bt.value ? (L(), D(t, {
|
|
740
740
|
key: 0,
|
|
741
741
|
error: e.error,
|
|
742
|
-
onRetry:
|
|
743
|
-
onReset:
|
|
742
|
+
onRetry: g[3] ||= (e) => a.$emit("auto-retry"),
|
|
743
|
+
onReset: g[4] ||= (e) => a.$emit("reset-chat")
|
|
744
744
|
}, null, 8, ["error"])) : O("", !0)]),
|
|
745
745
|
_: 1
|
|
746
746
|
}),
|
|
@@ -758,7 +758,7 @@ var De = ["aria-busy"], Oe = {
|
|
|
758
758
|
title: B(I)("action.scrollToBottom"),
|
|
759
759
|
"aria-label": B(I)("action.scrollToBottom"),
|
|
760
760
|
onClick: et
|
|
761
|
-
}, [j(
|
|
761
|
+
}, [j(_, { name: "ri:arrow-down-line" })], 8, Qe)) : O("", !0)]),
|
|
762
762
|
_: 1
|
|
763
763
|
})
|
|
764
764
|
], 46, De);
|
|
@@ -768,4 +768,4 @@ var De = ["aria-busy"], Oe = {
|
|
|
768
768
|
//#endregion
|
|
769
769
|
export { ve as a, _e as i, ye as n, ge as r, $e as t };
|
|
770
770
|
|
|
771
|
-
//# sourceMappingURL=PkChatbotMessages-
|
|
771
|
+
//# sourceMappingURL=PkChatbotMessages-tHQ2JQrb.js.map
|