@8wave/ai-elements 0.123.0-beta.10 → 0.123.0-beta.12
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 +30 -3
- package/dist/_chunks/{Agent-C0JtGK2t.js → Agent-CsSvagZw.js} +13 -2
- package/dist/_chunks/Agent-CsSvagZw.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-DGdyf4_3.js → PkStreamingMarkdown-ReRKQNAO.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-DGdyf4_3.js.map → PkStreamingMarkdown-ReRKQNAO.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-NrOBCzk2.js → PkToolChatFile-QJi6bOuS.js} +2 -2
- package/dist/_chunks/{PkToolChatFile-NrOBCzk2.js.map → PkToolChatFile-QJi6bOuS.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-BIfpxvX5.js → PkToolRequestGeolocation-CUjRsNs9.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-BIfpxvX5.js.map → PkToolRequestGeolocation-CUjRsNs9.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CJgoiSgi.js → PkToolRequestOAuthConnection-CbxVIAPg.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CJgoiSgi.js.map → PkToolRequestOAuthConnection-CbxVIAPg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DmZEQMSm.js → PkToolShowArtifact-D0HZ_qWx.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DmZEQMSm.js.map → PkToolShowArtifact-D0HZ_qWx.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-BaX3d5Yq.js → PkToolShowContactForm-DkJB0EO1.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-BaX3d5Yq.js.map → PkToolShowContactForm-DkJB0EO1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-BKyZnpPB.js → PkToolShowForm-zAprG0yl.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-BKyZnpPB.js.map → PkToolShowForm-zAprG0yl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-GBaXxucK.js → PkToolShowImageGallery-o62SZ6tq.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-GBaXxucK.js.map → PkToolShowImageGallery-o62SZ6tq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DBVtBJXU.js → PkToolShowProductList-CWLxVreB.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-DBVtBJXU.js.map → PkToolShowProductList-CWLxVreB.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Ciuizdl3.js → PkToolShowSources-dJEqZn6T.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Ciuizdl3.js.map → PkToolShowSources-dJEqZn6T.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-Dbti20SV.js → PkToolShowSuggestedReply-BHAltyxH.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-Dbti20SV.js.map → PkToolShowSuggestedReply-BHAltyxH.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DKDR3zmI.js → PkToolShowVideo-DtJ0nEJk.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-DKDR3zmI.js.map → PkToolShowVideo-DtJ0nEJk.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-CuJ12tdE.js → PkToolShowWebPages-D-tG9JH8.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-CuJ12tdE.js.map → PkToolShowWebPages-D-tG9JH8.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-D3zIP7-i.js → chatImagePolicy-Dhxqcirq.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-D3zIP7-i.js.map → chatImagePolicy-Dhxqcirq.js.map} +1 -1
- package/dist/_chunks/{markdown-BxOlM5SY.js → markdown-CUaXq5OY.js} +2 -2
- package/dist/_chunks/{markdown-BxOlM5SY.js.map → markdown-CUaXq5OY.js.map} +1 -1
- package/dist/ai-elements.es.js +2720 -2269
- 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/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-Dsi_xGvV.js → Agent-D3US-D1x.js} +13 -2
- package/dist-vue/_chunks/Agent-D3US-D1x.js.map +1 -0
- package/dist-vue/_chunks/{Document-B5R1PJnc.js → Document-D5FVOcP9.js} +2 -2
- package/dist-vue/_chunks/{Document-B5R1PJnc.js.map → Document-D5FVOcP9.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-CBpViucq.js → PkChatbot-DxPT26Vn.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-CBpViucq.js.map → PkChatbot-DxPT26Vn.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DKrmLdVU.js → PkChatbotEmptyState-3VeE3lFA.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DKrmLdVU.js.map → PkChatbotEmptyState-3VeE3lFA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-C1i14Ur_.js → PkChatbotInput-SWQVz3m7.js} +212 -175
- package/dist-vue/_chunks/PkChatbotInput-SWQVz3m7.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-Ce8h0QNX.js → PkChatbotMessages-DFimKbCj.js} +122 -114
- package/dist-vue/_chunks/PkChatbotMessages-DFimKbCj.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-Dp_akrQu.js → PkChatbotStepPayload-Di0FNaTC.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-Dp_akrQu.js.map → PkChatbotStepPayload-Di0FNaTC.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CKxl4_lQ.js → PkChatbotStepToolDetail-Bne48uS8.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CKxl4_lQ.js.map → PkChatbotStepToolDetail-Bne48uS8.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-ChaHkHjG.js → PkChatbotSteps-Cr9nwMQj.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-ChaHkHjG.js.map → PkChatbotSteps-Cr9nwMQj.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-Bjw6x7VD.js → PkChatbotViewChat-CQy-k_dp.js} +417 -404
- package/dist-vue/_chunks/PkChatbotViewChat-CQy-k_dp.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-D-UK4paq.js → PkChatbotViewConversations-Bng-dyqd.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-D-UK4paq.js.map → PkChatbotViewConversations-Bng-dyqd.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-57kQRbZm.js → PkChatbotViewFiles-Ccti1JAS.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-57kQRbZm.js.map → PkChatbotViewFiles-Ccti1JAS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BZTify2Q.js → PkChatbotViewProfile-ChEItAHZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BZTify2Q.js.map → PkChatbotViewProfile-ChEItAHZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-4Ez-DDFq.js → PkStreamingMarkdown-92GXUXrG.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-4Ez-DDFq.js.map → PkStreamingMarkdown-92GXUXrG.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-DaivFIhK.js → PkToolChatFile-Ca45de6q.js} +2 -2
- package/dist-vue/_chunks/{PkToolChatFile-DaivFIhK.js.map → PkToolChatFile-Ca45de6q.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-B__wk6m3.js → PkToolRequestGeolocation-gEDbmudT.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-B__wk6m3.js.map → PkToolRequestGeolocation-gEDbmudT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BAttadSC.js → PkToolRequestOAuthConnection-Dy0GXNwC.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BAttadSC.js.map → PkToolRequestOAuthConnection-Dy0GXNwC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-CncSr7Z8.js → PkToolShowArtifact-B-BUIMju.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-CncSr7Z8.js.map → PkToolShowArtifact-B-BUIMju.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-Bi5N1fFe.js → PkToolShowContactForm-NRfvmPLV.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-Bi5N1fFe.js.map → PkToolShowContactForm-NRfvmPLV.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-D8NF9lZu.js → PkToolShowDiagram-VTi8vwcN.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-D8NF9lZu.js.map → PkToolShowDiagram-VTi8vwcN.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-Dmyn6cMU.js → PkToolShowForm-C4JnalBU.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-Dmyn6cMU.js.map → PkToolShowForm-C4JnalBU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-XZiRk6FK.js → PkToolShowImageGallery-ORfqyhhh.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-XZiRk6FK.js.map → PkToolShowImageGallery-ORfqyhhh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-DzvPUdbo.js → PkToolShowProductList-C9kbfutK.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-DzvPUdbo.js.map → PkToolShowProductList-C9kbfutK.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-NOSBkQCi.js → PkToolShowSources-BVfcp1iE.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-NOSBkQCi.js.map → PkToolShowSources-BVfcp1iE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-C7dUB3dz.js → PkToolShowSuggestedReply-Bb7Inxa4.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-C7dUB3dz.js.map → PkToolShowSuggestedReply-Bb7Inxa4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-sSZyISJH.js → PkToolShowVideo-CUNITpHh.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-sSZyISJH.js.map → PkToolShowVideo-CUNITpHh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-B1c4X_cH.js → PkToolShowWebPages-C-yl2smm.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-B1c4X_cH.js.map → PkToolShowWebPages-C-yl2smm.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BmBo5IQR.js → createChatbotApiClient-CuqGJGHD.js} +2 -2
- package/dist-vue/_chunks/createChatbotApiClient-CuqGJGHD.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-D7ZMA7Tr.js → useChatbotStore-C1lW6qXE.js} +1143 -1134
- package/dist-vue/_chunks/useChatbotStore-C1lW6qXE.js.map +1 -0
- package/dist-vue/_chunks/{utils-CKsn0vxx.js → utils-CoLdYTZq.js} +2 -2
- package/dist-vue/_chunks/{utils-CKsn0vxx.js.map → utils-CoLdYTZq.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +2 -0
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +3 -3
- package/dist-vue/apps/web-component/src/composables/usePagePointer.d.ts +50 -0
- package/dist-vue/apps/web-component/src/composables/usePageTools.d.ts +21 -0
- package/dist-vue/apps/web-component/src/pageTools/index.d.ts +8 -1
- package/dist-vue/apps/web-component/src/pageTools/pointing.d.ts +41 -0
- package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +2 -0
- package/dist-vue/composables.js +24 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +55 -35
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +20 -0
- package/dist-vue/packages/components/src/chat/PkAgentPageAccessSettings.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +16 -3
- package/dist-vue/packages/components/src/chat/PkPagePointer.d.ts +41 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +150 -6
- package/dist-vue/packages/composable/src/useSettingsStore.d.ts +3 -2
- package/dist-vue/packages/models/src/schema/Agent.d.ts +7 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +8 -0
- package/dist-vue/packages/models/src/schema/PageAccess.d.ts +29 -1
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +2 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-C0JtGK2t.js.map +0 -1
- package/dist-vue/_chunks/Agent-Dsi_xGvV.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-C1i14Ur_.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-Ce8h0QNX.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-Bjw6x7VD.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BmBo5IQR.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-D7ZMA7Tr.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { A as e, E as t, S as n, n as r, v as i } from "./schemas-BO5QlXAp.js";
|
|
2
2
|
import { c as a } from "./Media-DylqhvaF.js";
|
|
3
|
-
import { O as o, V as s, _ as c, k as l, r as u } from "./Agent-
|
|
3
|
+
import { O as o, V as s, _ as c, k as l, r as u } from "./Agent-D3US-D1x.js";
|
|
4
4
|
import { t as d } from "./VvButtonLocalized-C-vx25u4.js";
|
|
5
|
-
import { t as f } from "./PkStreamingMarkdown-
|
|
5
|
+
import { t as f } from "./PkStreamingMarkdown-92GXUXrG.js";
|
|
6
6
|
import "./src-j7iLdNe4.js";
|
|
7
7
|
import { c as p, i as m, l as h, n as g, o as _, s as v, t as y, u as b } from "./message-DuibQyHy.js";
|
|
8
8
|
import { t as ee } from "./PkChatbotAudioTranscript-DiZ7BEEH.js";
|
|
9
|
-
import { C as x, E as te, N as ne, O as re, S, T as C, _ as ie, d as ae, f as w, g as oe, h as se, j as ce, k as le, m as ue, n as de, o as fe, r as pe, s as me, t as T, v as he } from "./utils-
|
|
9
|
+
import { C as x, E as te, N as ne, O as re, S, T as C, _ as ie, d as ae, f as w, g as oe, h as se, j as ce, k as le, m as ue, n as de, o as fe, r as pe, s as me, t as T, v as he } from "./utils-CoLdYTZq.js";
|
|
10
10
|
import { t as ge } from "./PkChatbotError-BS84xuiu.js";
|
|
11
11
|
import { t as _e } from "./PkRelativeTime-CZF5CYHv.js";
|
|
12
12
|
import { t as ve } from "./PkChatbotFilePreview-DVl_1zYD.js";
|
|
13
13
|
import { t as ye } from "./PkChatbotFeedbackForm-Bh3tvNUW.js";
|
|
14
14
|
import { t as be } from "./PkChatbotMessageFeedback-DltXugdR.js";
|
|
15
|
-
import { n as xe, t as Se } from "./PkChatbotSteps-
|
|
15
|
+
import { n as xe, t as Se } from "./PkChatbotSteps-Cr9nwMQj.js";
|
|
16
16
|
import { t as Ce } from "./PkChatbotOutlineRail-BI-DMvZi.js";
|
|
17
17
|
import { VvButtonGroup as we, VvIcon as Te } from "@volverjs/ui-vue/components";
|
|
18
18
|
import { Fragment as E, Transition as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as Ee, createVNode as N, defineAsyncComponent as P, defineComponent as F, inject as De, mergeProps as Oe, nextTick as I, normalizeClass as L, normalizeStyle as ke, onBeforeUnmount as Ae, onMounted as je, openBlock as R, ref as Me, renderList as Ne, renderSlot as Pe, resolveDynamicComponent as Fe, shallowRef as Ie, toDisplayString as z, unref as B, useSlots as Le, useTemplateRef as Re, watch as V, withCtx as H, withModifiers as U } from "vue";
|
|
@@ -55,26 +55,26 @@ var G = (e) => e.state, Ge = (e) => e.type.startsWith("tool-") ? e.type.slice(5)
|
|
|
55
55
|
for (let n of e.parts) n.type === "tool-scheduleWakeup" && (t = G(n) === "output-available" && n.input?.noop === !0);
|
|
56
56
|
return t;
|
|
57
57
|
}, Je = {
|
|
58
|
-
requestOAuthConnection: P(() => import("./PkToolRequestOAuthConnection-
|
|
58
|
+
requestOAuthConnection: P(() => import("./PkToolRequestOAuthConnection-Dy0GXNwC.js")),
|
|
59
59
|
shareDocument: P(() => import("./PkToolShareDocument-IreRCu-j.js").then((e) => e.n)),
|
|
60
|
-
showArtifact: P(() => import("./PkToolShowArtifact-
|
|
60
|
+
showArtifact: P(() => import("./PkToolShowArtifact-B-BUIMju.js").then((e) => e.n)),
|
|
61
61
|
showCalendarEvent: P(() => import("./PkToolShowCalendarEvent-75TaGeMf.js").then((e) => e.n)),
|
|
62
62
|
showComparison: P(() => import("./PkToolShowComparison-BEHyRNXE.js").then((e) => e.n)),
|
|
63
|
-
showContactForm: P(() => import("./PkToolShowContactForm-
|
|
64
|
-
showDiagram: P(() => import("./PkToolShowDiagram-
|
|
63
|
+
showContactForm: P(() => import("./PkToolShowContactForm-NRfvmPLV.js").then((e) => e.n)),
|
|
64
|
+
showDiagram: P(() => import("./PkToolShowDiagram-VTi8vwcN.js")),
|
|
65
65
|
showEmail: P(() => import("./PkToolShowEmail-BehvoNsz.js").then((e) => e.n)),
|
|
66
|
-
showImageGallery: P(() => import("./PkToolShowImageGallery-
|
|
66
|
+
showImageGallery: P(() => import("./PkToolShowImageGallery-ORfqyhhh.js").then((e) => e.n)),
|
|
67
67
|
showLocation: P(() => import("./PkToolShowLocation-C7hBRwq8.js").then((e) => e.n)),
|
|
68
68
|
showMessage: P(() => import("./PkToolShowMessage-Cca7K7GQ.js").then((e) => e.n)),
|
|
69
|
-
showForm: P(() => import("./PkToolShowForm-
|
|
70
|
-
showMultipleChoice: P(() => import("./PkToolShowForm-
|
|
71
|
-
showProductList: P(() => import("./PkToolShowProductList-
|
|
69
|
+
showForm: P(() => import("./PkToolShowForm-C4JnalBU.js").then((e) => e.n)),
|
|
70
|
+
showMultipleChoice: P(() => import("./PkToolShowForm-C4JnalBU.js").then((e) => e.n)),
|
|
71
|
+
showProductList: P(() => import("./PkToolShowProductList-C9kbfutK.js").then((e) => e.n)),
|
|
72
72
|
showQrCode: P(() => import("./PkToolShowQrCode-skWaARYV.js").then((e) => e.n)),
|
|
73
|
-
showSources: P(() => import("./PkToolShowSources-
|
|
74
|
-
showSuggestedReply: P(() => import("./PkToolShowSuggestedReply-
|
|
75
|
-
showVideo: P(() => import("./PkToolShowVideo-
|
|
73
|
+
showSources: P(() => import("./PkToolShowSources-BVfcp1iE.js").then((e) => e.n)),
|
|
74
|
+
showSuggestedReply: P(() => import("./PkToolShowSuggestedReply-Bb7Inxa4.js").then((e) => e.n)),
|
|
75
|
+
showVideo: P(() => import("./PkToolShowVideo-CUNITpHh.js")),
|
|
76
76
|
showWeather: P(() => import("./PkToolShowWeather-Z6vCrhh9.js")),
|
|
77
|
-
showWebPages: P(() => import("./PkToolShowWebPages-
|
|
77
|
+
showWebPages: P(() => import("./PkToolShowWebPages-C-yl2smm.js").then((e) => e.n))
|
|
78
78
|
}, Ye = {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "text-12 text-word-3 m-0 mb-xs"
|
|
@@ -306,25 +306,25 @@ var ot = ["aria-busy"], st = {
|
|
|
306
306
|
}, yt = {
|
|
307
307
|
key: 0,
|
|
308
308
|
class: "pk-chatbot-message__loading-info"
|
|
309
|
-
}, bt = { class: "flex gap-8 items-center" }, xt = { class: "text-12" }, St = { class: "flex gap-8 items-center" },
|
|
309
|
+
}, bt = { class: "flex gap-8 items-center" }, xt = { class: "text-12" }, St = ["title"], Ct = { class: "pk-chatbot-message__pointer-label" }, wt = { class: "flex gap-8 items-center" }, Tt = {
|
|
310
310
|
key: 0,
|
|
311
311
|
class: "pk-chatbot-message__footer"
|
|
312
|
-
},
|
|
312
|
+
}, Et = {
|
|
313
313
|
key: 0,
|
|
314
314
|
class: "pk-chatbot-message__hover-meta"
|
|
315
|
-
},
|
|
315
|
+
}, Dt = ["datetime", "title"], Ot = { class: "truncate" }, kt = {
|
|
316
316
|
key: 0,
|
|
317
317
|
class: "flex items-center gap-4 min-w-0"
|
|
318
|
-
},
|
|
318
|
+
}, At = { class: "truncate" }, jt = ["title"], Mt = {
|
|
319
319
|
key: 2,
|
|
320
320
|
class: "flex items-center gap-4 text-12 text-word-3"
|
|
321
|
-
},
|
|
321
|
+
}, Nt = { class: "truncate" }, Pt = ["datetime"], Ft = { class: "truncate" }, It = {
|
|
322
322
|
key: 4,
|
|
323
323
|
class: "flex items-center gap-4 text-12 text-word-3"
|
|
324
|
-
},
|
|
324
|
+
}, Lt = { class: "pk-chatbot-message__loading-info" }, Rt = { class: "flex gap-8 items-center" }, zt = { class: "text-12" }, Bt = {
|
|
325
325
|
key: 0,
|
|
326
326
|
class: "pk-chatbot-message pk-chatbot-message--assistant"
|
|
327
|
-
},
|
|
327
|
+
}, Vt = ["title", "aria-label"], Ht = /* @__PURE__ */ F({
|
|
328
328
|
__name: "PkChatbotMessages",
|
|
329
329
|
props: {
|
|
330
330
|
status: {},
|
|
@@ -442,75 +442,75 @@ var ot = ["aria-busy"], st = {
|
|
|
442
442
|
}), V(K, (e) => {
|
|
443
443
|
e || nt();
|
|
444
444
|
});
|
|
445
|
-
let
|
|
445
|
+
let Ht = (e) => n.revisedAnswers?.some((t) => t.messageId === e), Y = (e) => n.messageFeedbacks?.find((t) => t.messageId === e), Ut = /* @__PURE__ */ new Set([
|
|
446
446
|
"showContactForm",
|
|
447
447
|
"showForm",
|
|
448
448
|
"showMultipleChoice",
|
|
449
449
|
"showSuggestedReply"
|
|
450
|
-
]),
|
|
450
|
+
]), Wt = /* @__PURE__ */ new Set(["showDiagram", "showLocation"]), Gt = (e) => {
|
|
451
451
|
let t = m(e);
|
|
452
452
|
return {
|
|
453
|
-
...!n.interactive &&
|
|
454
|
-
...
|
|
453
|
+
...!n.interactive && Ut.has(t) ? { record: !0 } : {},
|
|
454
|
+
...Wt.has(t) ? { isDark: n.isDark } : {}
|
|
455
455
|
};
|
|
456
|
-
},
|
|
457
|
-
let t =
|
|
456
|
+
}, Kt = (e, t) => !n.readonlyFeedback && fn(e, t), qt = (e) => n.readonlyFeedback ? Y(e) : void 0, Jt = (e) => qt(e)?.vote, Yt = (e) => {
|
|
457
|
+
let t = qt(e);
|
|
458
458
|
if (t?.vote) return;
|
|
459
459
|
let n = t?.metadata?.reactionEmoji;
|
|
460
460
|
return typeof n == "string" && /\p{Extended_Pictographic}/u.test(n) ? n : void 0;
|
|
461
|
-
},
|
|
462
|
-
if (
|
|
463
|
-
let t =
|
|
461
|
+
}, Xt = (e) => !!(Jt(e) || Yt(e)), Zt = (e) => {
|
|
462
|
+
if (Yt(e)) return "pk-chatbot-message__reaction--neutral";
|
|
463
|
+
let t = Jt(e);
|
|
464
464
|
return t === "upvote" ? "pk-chatbot-message__reaction--positive" : t === "downvote" ? "pk-chatbot-message__reaction--negative" : "pk-chatbot-message__reaction--neutral";
|
|
465
|
-
},
|
|
466
|
-
let t =
|
|
465
|
+
}, Qt = (e) => {
|
|
466
|
+
let t = Jt(e);
|
|
467
467
|
return i(t === "upvote" ? "hint.userFeedbackPositive" : t === "downvote" ? "hint.userFeedbackNegative" : "hint.userFeedbackReaction");
|
|
468
|
-
},
|
|
469
|
-
let t =
|
|
468
|
+
}, $t = (e) => {
|
|
469
|
+
let t = nn(e);
|
|
470
470
|
for (let e = t.length - 1; e >= 0; --e) if (h(t[e])) return e;
|
|
471
471
|
return -1;
|
|
472
|
-
},
|
|
473
|
-
let e =
|
|
472
|
+
}, en = O(() => n.messages?.[n.messages.length - 1]), X = O(() => {
|
|
473
|
+
let e = en.value;
|
|
474
474
|
return e ? e.parts[e.parts.length - 1] : null;
|
|
475
|
-
}),
|
|
475
|
+
}), tn = O(() => {
|
|
476
476
|
let e = /* @__PURE__ */ new Map();
|
|
477
477
|
for (let t of n.messages ?? []) t.role === "assistant" && e.set(t.id, le(fe(re(t.parts))));
|
|
478
478
|
return e;
|
|
479
|
-
}),
|
|
479
|
+
}), nn = (e) => tn.value.get(e.id) ?? e.parts, rn = O(() => n.status === "error"), an = O(() => n.awaitingSpokenAnswer === !0 && !K.value), on = O(() => an.value && en.value?.role === "user" && !rn.value), sn = (e, t) => t(), cn = O(() => {
|
|
480
480
|
let e = X.value;
|
|
481
481
|
return he(i, e, l?.value);
|
|
482
|
-
}),
|
|
482
|
+
}), ln = O(() => {
|
|
483
483
|
let e = X.value;
|
|
484
484
|
return ue(e);
|
|
485
|
-
}),
|
|
485
|
+
}), un = (e) => n.messages?.findIndex((t) => t.id === e), Z = (e) => e === void 0 || !n.messages ? !1 : e === n.messages.length - 1, dn = (e) => Z(e) && n.status === "ready" && !n.hostWorking && !!n.actions?.includes("regenerate"), fn = (e, t) => (!Z(t) || n.status === "ready" && !n.hostWorking) && !!n.actions?.includes(e), pn = (e) => {
|
|
486
486
|
let t = e.parts[e.parts.length - 1];
|
|
487
487
|
return h(t);
|
|
488
|
-
},
|
|
489
|
-
if (!w(n) ||
|
|
490
|
-
let i =
|
|
491
|
-
return i && r ===
|
|
492
|
-
},
|
|
488
|
+
}, mn = (e) => e.parts.some((e) => p(e) || b(e) || !!w(e)), hn = (e) => !!n.showExtendedSteps && Q(e) && mn(e), gn = (e) => n.hostConfirmation !== void 0 && w(e) !== void 0 && e.toolCallId === n.hostConfirmation.toolCallId, _n = O(() => n.hostConfirmation !== void 0 && !n.messages?.some((e) => e.parts.some(gn))), vn = (e, t) => K.value && Z(e) && w(t)?.state === "input-available", yn = (e, t, n, r) => {
|
|
489
|
+
if (!w(n) || hn(e)) return !1;
|
|
490
|
+
let i = vn(t, n);
|
|
491
|
+
return i && r === nn(e).length - 1 ? !1 : i || x(n) || !_(e);
|
|
492
|
+
}, bn = (e, t) => {
|
|
493
493
|
let n = w(t);
|
|
494
|
-
return n?.state === "output-error" ? i(n.errorText === "The user refused this call. Do not repeat it unless the user asks." ? "toolApproval.denied" : "messagePart.hostToolFailed") : n?.state === "input-available" && !
|
|
495
|
-
},
|
|
496
|
-
let t =
|
|
494
|
+
return n?.state === "output-error" ? i(n.errorText === "The user refused this call. Do not repeat it unless the user asks." ? "toolApproval.denied" : "messagePart.hostToolFailed") : n?.state === "input-available" && !vn(e, t) ? i("messagePart.hostToolNoAnswer") : void 0;
|
|
495
|
+
}, xn = (e) => b(e) && !C(e) && !!(Je[m(e)] || u[e.type] || n.showAllMessageParts), Sn = (e) => e.parts.some((e) => h(e) && !!e.text.trim() || v(e) || S(e) && !C(e) || xn(e)), Q = (e) => e.role === "assistant", Cn = (e) => e.role === "user", wn = (e) => n.messages?.slice(0, e).reverse().find((e) => Q(e)), Tn = (e) => n.messages?.slice(e + 1).find((e) => Q(e)), En = (e) => {
|
|
496
|
+
let t = wn(e)?.metadata?.createdAt, n = Tn(e)?.metadata?.createdAt;
|
|
497
497
|
if (!t || !n) return;
|
|
498
498
|
let r = new Date(t), i = new Date(n);
|
|
499
499
|
return r.toDateString() === i.toDateString() ? void 0 : i;
|
|
500
|
-
}, $ = O(() => n.showAllMessageParts ? at([]) : at(n.messages ?? [],
|
|
500
|
+
}, $ = O(() => n.showAllMessageParts ? at([]) : at(n.messages ?? [], Sn)), Dn = O(() => {
|
|
501
501
|
let e = 0;
|
|
502
502
|
return (n.messages ?? []).map((t) => t.parts.length > 0 ? ++e : void 0);
|
|
503
|
-
}),
|
|
503
|
+
}), On = (e, t) => t === 0 || e.role !== "assistant" ? !1 : !!(n.actions?.length || n.showMessageNumber || n.showMessageDateTime && e.metadata?.createdAt !== void 0 || e.metadata?.completedAt !== void 0 || n.showMessageTokensCount && e.metadata?.totalTokens !== void 0), kn = (e) => {
|
|
504
504
|
let t = new Date(e), n = t.toDateString() === (/* @__PURE__ */ new Date()).toDateString();
|
|
505
505
|
return s(t, n ? "time" : "date-time");
|
|
506
|
-
},
|
|
506
|
+
}, An = (e) => {
|
|
507
507
|
let { createdAt: t, completedAt: n } = e.metadata ?? {};
|
|
508
508
|
if (t && n) return ae(c, n - t);
|
|
509
|
-
},
|
|
509
|
+
}, jn = Re("feedbackMessageEl");
|
|
510
510
|
return V(() => n.feedbackMessageId, async () => {
|
|
511
511
|
if (await I(), !n.feedbackMessageId) return;
|
|
512
|
-
let e =
|
|
513
|
-
e && (Z(
|
|
512
|
+
let e = jn.value?.[0]?.$el;
|
|
513
|
+
e && (Z(un(n.feedbackMessageId)) ? Ve() : e.scrollIntoView({
|
|
514
514
|
behavior: "smooth",
|
|
515
515
|
block: "center"
|
|
516
516
|
}));
|
|
@@ -544,7 +544,7 @@ var ot = ["aria-busy"], st = {
|
|
|
544
544
|
class: "pk-chatbot-messages__wrapper"
|
|
545
545
|
}, [
|
|
546
546
|
(R(!0), j(E, null, Ne(e.messages, (d, x) => (R(), j(E, { key: d.id }, [
|
|
547
|
-
|
|
547
|
+
Cn(d) && En(x) ? (R(), j("div", ct, [M("span", lt, z(B(s)(En(x), "short")), 1)])) : A("", !0),
|
|
548
548
|
$.value.quietRuns.has(d.id) ? (R(), j("div", ut, [N(p, {
|
|
549
549
|
name: "ri:alarm-line",
|
|
550
550
|
class: "shrink-0"
|
|
@@ -562,17 +562,17 @@ var ot = ["aria-busy"], st = {
|
|
|
562
562
|
(!B(W)(d) || e.showAllMessageParts) && (!$.value.hidden.has(d.id) || K.value && Z(x)) && (d.parts.length || Z(x) && K.value && Q(d)) ? (R(), j("div", {
|
|
563
563
|
key: 3,
|
|
564
564
|
class: L(["pk-chatbot-message", [`pk-chatbot-message--${d.role}`, { "pk-chatbot-message--loading": K.value && Z(x) && Q(d) }]]),
|
|
565
|
-
style: ke({ minHeight: Z(x) && Q(d) && !
|
|
565
|
+
style: ke({ minHeight: Z(x) && Q(d) && !rn.value ? `${q.value}px` : void 0 })
|
|
566
566
|
}, [
|
|
567
567
|
N(D, {
|
|
568
568
|
appear: "",
|
|
569
569
|
name: "pk-chatbot-part"
|
|
570
570
|
}, {
|
|
571
|
-
default: H(() => [
|
|
571
|
+
default: H(() => [hn(d) ? (R(), k(Se, {
|
|
572
572
|
key: 0,
|
|
573
573
|
message: d,
|
|
574
574
|
"is-streaming": K.value && Z(x),
|
|
575
|
-
"has-content":
|
|
575
|
+
"has-content": Sn(d),
|
|
576
576
|
"hide-reasoning": e.hideReasoning,
|
|
577
577
|
"is-dark": e.isDark
|
|
578
578
|
}, null, 8, [
|
|
@@ -584,7 +584,7 @@ var ot = ["aria-busy"], st = {
|
|
|
584
584
|
])) : A("", !0)]),
|
|
585
585
|
_: 2
|
|
586
586
|
}, 1024),
|
|
587
|
-
(R(!0), j(E, null, Ne(
|
|
587
|
+
(R(!0), j(E, null, Ne(nn(d), (s, c) => (R(), j(E, { key: B(me)(s, c) }, [B(h)(s) && s.text.trim() ? (R(), k(D, {
|
|
588
588
|
key: 0,
|
|
589
589
|
appear: "",
|
|
590
590
|
name: "pk-chatbot-part"
|
|
@@ -604,13 +604,13 @@ var ot = ["aria-busy"], st = {
|
|
|
604
604
|
"markdown",
|
|
605
605
|
"is-dark",
|
|
606
606
|
"loading"
|
|
607
|
-
])) : (R(), j(E, { key: 1 }, [Ee(z(s.text), 1)], 64))]),
|
|
607
|
+
])) : (R(), j(E, { key: 1 }, [Ee(z(s.text), 1)], 64))]), Xt(d.id) && !Y(d.id)?.comment && c === $t(d) ? (R(), j("span", {
|
|
608
608
|
key: 0,
|
|
609
|
-
class: L(["pk-chatbot-message__reaction",
|
|
610
|
-
title:
|
|
611
|
-
}, [
|
|
609
|
+
class: L(["pk-chatbot-message__reaction", Zt(d.id)]),
|
|
610
|
+
title: Qt(d.id)
|
|
611
|
+
}, [Yt(d.id) ? (R(), j("span", mt, z(Yt(d.id)), 1)) : (R(), k(p, {
|
|
612
612
|
key: 1,
|
|
613
|
-
name:
|
|
613
|
+
name: Jt(d.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
|
|
614
614
|
}, null, 8, ["name"]))], 10, pt)) : A("", !0)])]),
|
|
615
615
|
_: 2
|
|
616
616
|
}, 1024)) : B(v)(s) ? (R(), k(D, {
|
|
@@ -667,7 +667,7 @@ var ot = ["aria-busy"], st = {
|
|
|
667
667
|
"onRespond"
|
|
668
668
|
]))]),
|
|
669
669
|
_: 2
|
|
670
|
-
}, 1024)) :
|
|
670
|
+
}, 1024)) : gn(s) ? (R(), k(D, {
|
|
671
671
|
key: 3,
|
|
672
672
|
appear: "",
|
|
673
673
|
name: "pk-chatbot-part"
|
|
@@ -678,21 +678,21 @@ var ot = ["aria-busy"], st = {
|
|
|
678
678
|
onRespond: n[0] ||= (e) => r("host-confirm-respond", e)
|
|
679
679
|
}, null, 8, ["question", "details"])]),
|
|
680
680
|
_: 2
|
|
681
|
-
}, 1024)) :
|
|
681
|
+
}, 1024)) : yn(d, x, s, c) ? (R(), k(D, {
|
|
682
682
|
key: 4,
|
|
683
683
|
appear: "",
|
|
684
684
|
name: "pk-chatbot-part"
|
|
685
685
|
}, {
|
|
686
686
|
default: H(() => [M("div", gt, [
|
|
687
687
|
N(p, {
|
|
688
|
-
name:
|
|
688
|
+
name: vn(x, s) ? "loading-loop" : B(ue)(s) ?? "ri:apps-line",
|
|
689
689
|
class: "shrink-0"
|
|
690
690
|
}, null, 8, ["name"]),
|
|
691
691
|
M("span", _t, z(B(he)(B(i), s, B(l))), 1),
|
|
692
|
-
|
|
692
|
+
bn(x, s) ? (R(), j("span", vt, " · " + z(bn(x, s)), 1)) : A("", !0)
|
|
693
693
|
])]),
|
|
694
694
|
_: 2
|
|
695
|
-
}, 1024)) :
|
|
695
|
+
}, 1024)) : xn(s) ? (R(), k(D, {
|
|
696
696
|
key: 5,
|
|
697
697
|
appear: "",
|
|
698
698
|
name: "pk-chatbot-part"
|
|
@@ -700,7 +700,7 @@ var ot = ["aria-busy"], st = {
|
|
|
700
700
|
default: H(() => [!B(u)[s.type] && B(Je)[B(m)(s)] ? (R(), k(Fe(B(Je)[B(m)(s)]), Oe({
|
|
701
701
|
key: `component-${c}-${B(se)(s)}`,
|
|
702
702
|
part: s
|
|
703
|
-
}, { ref_for: !0 },
|
|
703
|
+
}, { ref_for: !0 }, Gt(s)), null, 16, ["part"])) : Pe(t.$slots, s.type, Oe({ ref_for: !0 }, {
|
|
704
704
|
message: d,
|
|
705
705
|
part: s,
|
|
706
706
|
index: x,
|
|
@@ -715,44 +715,52 @@ var ot = ["aria-busy"], st = {
|
|
|
715
715
|
})), 1)])])) : A("", !0)], void 0, 1)]),
|
|
716
716
|
_: 2
|
|
717
717
|
}, 1024)) : A("", !0), N(D, { mode: "out-in" }, {
|
|
718
|
-
default: H(() => [c ===
|
|
718
|
+
default: H(() => [c === $t(d) && e.readonlyFeedback && Y(d.id)?.comment ? (R(), k(be, {
|
|
719
719
|
key: 0,
|
|
720
720
|
feedback: Y(d.id)
|
|
721
721
|
}, null, 8, ["feedback"])) : A("", !0)]),
|
|
722
722
|
_: 2
|
|
723
723
|
}, 1024)], 64))), 128)),
|
|
724
|
+
Cn(d) && d.metadata?.pagePointer ? (R(), j("div", {
|
|
725
|
+
key: 0,
|
|
726
|
+
class: "pk-chatbot-message__pointer",
|
|
727
|
+
title: d.metadata.pagePointer.kind === "text" ? B(i)("pagePointer.selected") : B(i)("pagePointer.pointed")
|
|
728
|
+
}, [N(p, {
|
|
729
|
+
name: d.metadata.pagePointer.kind === "text" ? "ri:double-quotes-l" : "ri:focus-3-line",
|
|
730
|
+
class: "pk-chatbot-message__pointer-icon"
|
|
731
|
+
}, null, 8, ["name"]), M("span", Ct, z(d.metadata.pagePointer.kind === "text" ? `«${d.metadata.pagePointer.label}»` : d.metadata.pagePointer.label), 1)], 8, St)) : A("", !0),
|
|
724
732
|
N(D, {
|
|
725
733
|
name: "fade-in",
|
|
726
734
|
mode: "out-in"
|
|
727
735
|
}, {
|
|
728
|
-
default: H(() => [K.value && Z(x) && !
|
|
736
|
+
default: H(() => [K.value && Z(x) && !pn(d) && !e.hostConfirmation && Q(d) && (!hn(d) || Sn(d)) ? (R(), j("div", {
|
|
729
737
|
key: `loading-info-${d.id}`,
|
|
730
738
|
class: "pk-chatbot-message__loading-info"
|
|
731
|
-
}, [M("div",
|
|
739
|
+
}, [M("div", wt, [
|
|
732
740
|
N(p, {
|
|
733
741
|
name: "loading-loop",
|
|
734
742
|
class: "shrink-0"
|
|
735
743
|
}),
|
|
736
744
|
N(D, { mode: "out-in" }, {
|
|
737
|
-
default: H(() => [
|
|
738
|
-
key:
|
|
745
|
+
default: H(() => [ln.value ? (R(), k(p, {
|
|
746
|
+
key: ln.value,
|
|
739
747
|
class: "shrink-0",
|
|
740
|
-
name:
|
|
748
|
+
name: ln.value
|
|
741
749
|
}, null, 8, ["name"])) : A("", !0)]),
|
|
742
750
|
_: 1
|
|
743
751
|
}),
|
|
744
752
|
N(D, { mode: "out-in" }, {
|
|
745
|
-
default: H(() => [
|
|
746
|
-
key:
|
|
753
|
+
default: H(() => [cn.value ? (R(), j("span", {
|
|
754
|
+
key: cn.value,
|
|
747
755
|
class: "text-12"
|
|
748
|
-
}, z(
|
|
756
|
+
}, z(cn.value), 1)) : A("", !0)]),
|
|
749
757
|
_: 1
|
|
750
758
|
})
|
|
751
759
|
]), N(D, {
|
|
752
760
|
name: "fade-in",
|
|
753
761
|
mode: "out-in"
|
|
754
762
|
}, {
|
|
755
|
-
default: H(() => [!e.hideReasoning && !
|
|
763
|
+
default: H(() => [!e.hideReasoning && !hn(d) && X.value && "text" in X.value && X.value.text.trim() ? (R(), k(xe, {
|
|
756
764
|
key: 0,
|
|
757
765
|
markdown: X.value.text,
|
|
758
766
|
"is-dark": e.isDark,
|
|
@@ -769,14 +777,14 @@ var ot = ["aria-busy"], st = {
|
|
|
769
777
|
_: 2
|
|
770
778
|
}, 1024),
|
|
771
779
|
N(D, { mode: "out-in" }, {
|
|
772
|
-
default: H(() => [
|
|
780
|
+
default: H(() => [On(d, x) ? (R(), j("div", Tt, [
|
|
773
781
|
N(b, {
|
|
774
782
|
modifiers: "compact",
|
|
775
783
|
class: "mr-auto shrink-0"
|
|
776
784
|
}, {
|
|
777
785
|
default: H(() => [
|
|
778
786
|
N(D, { mode: "out-in" }, {
|
|
779
|
-
default: H(() => [
|
|
787
|
+
default: H(() => [dn(x) ? (R(), k(_, {
|
|
780
788
|
key: 0,
|
|
781
789
|
icon: "ri:reset-right-line",
|
|
782
790
|
modifiers: "action-quiet-small",
|
|
@@ -787,7 +795,7 @@ var ot = ["aria-busy"], st = {
|
|
|
787
795
|
_: 2
|
|
788
796
|
}, 1024),
|
|
789
797
|
N(D, { mode: "out-in" }, {
|
|
790
|
-
default: H(() => [
|
|
798
|
+
default: H(() => [fn("show-info", x) ? (R(), k(_, {
|
|
791
799
|
key: 0,
|
|
792
800
|
icon: "ri:information-line",
|
|
793
801
|
title: B(i)("action.getMoreInfo"),
|
|
@@ -802,13 +810,13 @@ var ot = ["aria-busy"], st = {
|
|
|
802
810
|
_: 2
|
|
803
811
|
}, 1024),
|
|
804
812
|
N(D, { mode: "out-in" }, {
|
|
805
|
-
default: H(() => [
|
|
813
|
+
default: H(() => [fn("revise", x) ? (R(), k(_, {
|
|
806
814
|
key: 0,
|
|
807
|
-
icon:
|
|
808
|
-
title:
|
|
809
|
-
"aria-label":
|
|
815
|
+
icon: Ht(d.id) ? "ri:file-edit-fill" : "ri:file-edit-line",
|
|
816
|
+
title: Ht(d.id) ? B(i)("action.editRevise") : B(i)("action.createRevise"),
|
|
817
|
+
"aria-label": Ht(d.id) ? B(i)("action.editRevise") : B(i)("action.createRevise"),
|
|
810
818
|
modifiers: "action-quiet-small",
|
|
811
|
-
class: L({ "text-brand-graphic":
|
|
819
|
+
class: L({ "text-brand-graphic": Ht(d.id) }),
|
|
812
820
|
onClick: U((e) => t.$emit("revise", d), ["stop"])
|
|
813
821
|
}, null, 8, [
|
|
814
822
|
"icon",
|
|
@@ -820,7 +828,7 @@ var ot = ["aria-busy"], st = {
|
|
|
820
828
|
_: 2
|
|
821
829
|
}, 1024),
|
|
822
830
|
N(D, { mode: "out-in" }, {
|
|
823
|
-
default: H(() => [
|
|
831
|
+
default: H(() => [Kt("upvote", x) ? (R(), k(_, {
|
|
824
832
|
key: 0,
|
|
825
833
|
icon: Y(d.id)?.vote === "upvote" ? "ri:thumb-up-fill" : "ri:thumb-up-line",
|
|
826
834
|
title: B(i)("action.upvote"),
|
|
@@ -836,7 +844,7 @@ var ot = ["aria-busy"], st = {
|
|
|
836
844
|
_: 2
|
|
837
845
|
}, 1024),
|
|
838
846
|
N(D, { mode: "out-in" }, {
|
|
839
|
-
default: H(() => [
|
|
847
|
+
default: H(() => [Kt("downvote", x) ? (R(), k(_, {
|
|
840
848
|
key: 0,
|
|
841
849
|
icon: Y(d.id)?.vote === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-down-line",
|
|
842
850
|
title: B(i)("action.downvote"),
|
|
@@ -852,7 +860,7 @@ var ot = ["aria-busy"], st = {
|
|
|
852
860
|
_: 2
|
|
853
861
|
}, 1024),
|
|
854
862
|
N(D, { mode: "out-in" }, {
|
|
855
|
-
default: H(() => [
|
|
863
|
+
default: H(() => [Kt("feedback", x) ? (R(), k(_, {
|
|
856
864
|
key: 0,
|
|
857
865
|
icon: Y(d.id)?.comment ? "ri:feedback-fill" : "ri:feedback-line",
|
|
858
866
|
title: B(i)("action.feedback"),
|
|
@@ -870,26 +878,26 @@ var ot = ["aria-busy"], st = {
|
|
|
870
878
|
]),
|
|
871
879
|
_: 2
|
|
872
880
|
}, 1024),
|
|
873
|
-
!e.showMessageDateTime && d.metadata?.createdAt && d.metadata?.completedAt ? (R(), j("div",
|
|
881
|
+
!e.showMessageDateTime && d.metadata?.createdAt && d.metadata?.completedAt ? (R(), j("div", Et, [M("time", {
|
|
874
882
|
datetime: new Date(d.metadata.createdAt).toISOString(),
|
|
875
883
|
title: B(s)(new Date(d.metadata.createdAt), "date-time"),
|
|
876
884
|
class: "flex items-center gap-4 min-w-0"
|
|
877
885
|
}, [N(p, {
|
|
878
886
|
name: "ri:time-line",
|
|
879
887
|
class: "shrink-0"
|
|
880
|
-
}), M("span",
|
|
888
|
+
}), M("span", Ot, z(kn(d.metadata.createdAt)), 1)], 8, Dt), An(d) ? (R(), j("span", kt, [N(p, {
|
|
881
889
|
name: "ri:hourglass-line",
|
|
882
890
|
class: "shrink-0"
|
|
883
|
-
}), M("span",
|
|
891
|
+
}), M("span", At, z(An(d)), 1)])) : A("", !0)])) : A("", !0),
|
|
884
892
|
e.showMessageNumber ? (R(), j("span", {
|
|
885
893
|
key: 1,
|
|
886
|
-
title: B(i)("label.messageNumber", { n:
|
|
894
|
+
title: B(i)("label.messageNumber", { n: Dn.value[x] }),
|
|
887
895
|
class: "text-12 text-word-3 tabular-nums"
|
|
888
|
-
}, " #" + z(
|
|
889
|
-
e.showMessageTokensCount && d.metadata?.totalTokens ? (R(), j("span",
|
|
896
|
+
}, " #" + z(Dn.value[x]), 9, jt)) : A("", !0),
|
|
897
|
+
e.showMessageTokensCount && d.metadata?.totalTokens ? (R(), j("span", Mt, [N(p, {
|
|
890
898
|
name: "ri:ai-generate-2-line",
|
|
891
899
|
class: "shrink-0"
|
|
892
|
-
}), M("span",
|
|
900
|
+
}), M("span", Nt, z(B(c)(d.metadata.totalTokens, "integer")) + " " + z(B(i)("label.tokens")), 1)])) : A("", !0),
|
|
893
901
|
e.showMessageDateTime && d.metadata?.createdAt ? (R(), j("time", {
|
|
894
902
|
key: 3,
|
|
895
903
|
datetime: new Date(d.metadata?.createdAt).toISOString(),
|
|
@@ -897,8 +905,8 @@ var ot = ["aria-busy"], st = {
|
|
|
897
905
|
}, [N(p, {
|
|
898
906
|
name: "ri:time-line",
|
|
899
907
|
class: "shrink-0"
|
|
900
|
-
}), M("span",
|
|
901
|
-
e.showMessageDateTime && d?.metadata?.completedAt && d?.metadata?.createdAt ? (R(), j("div",
|
|
908
|
+
}), M("span", Ft, z(B(s)(new Date(d.metadata?.createdAt), "date-time")), 1)], 8, Pt)) : A("", !0),
|
|
909
|
+
e.showMessageDateTime && d?.metadata?.completedAt && d?.metadata?.createdAt ? (R(), j("div", It, [N(p, {
|
|
902
910
|
name: "ri:hourglass-line",
|
|
903
911
|
class: "shrink-0"
|
|
904
912
|
}), N(_e, {
|
|
@@ -914,7 +922,7 @@ var ot = ["aria-busy"], st = {
|
|
|
914
922
|
key: 0,
|
|
915
923
|
ref_for: !0,
|
|
916
924
|
ref_key: "feedbackMessageEl",
|
|
917
|
-
ref:
|
|
925
|
+
ref: jn,
|
|
918
926
|
loading: e.feedbackLoading,
|
|
919
927
|
submitted: e.feedbackSubmitted,
|
|
920
928
|
error: e.feedbackError,
|
|
@@ -932,23 +940,23 @@ var ot = ["aria-busy"], st = {
|
|
|
932
940
|
N(D, {
|
|
933
941
|
appear: "",
|
|
934
942
|
name: "pk-chatbot-part",
|
|
935
|
-
onLeave:
|
|
943
|
+
onLeave: sn
|
|
936
944
|
}, {
|
|
937
|
-
default: H(() => [
|
|
945
|
+
default: H(() => [an.value ? (R(), j("div", {
|
|
938
946
|
key: 0,
|
|
939
947
|
class: "pk-chatbot-message pk-chatbot-message--assistant pk-chatbot-message--loading",
|
|
940
|
-
style: ke({ minHeight:
|
|
941
|
-
}, [M("div",
|
|
948
|
+
style: ke({ minHeight: on.value ? `${q.value}px` : void 0 })
|
|
949
|
+
}, [M("div", Lt, [M("div", Rt, [N(p, {
|
|
942
950
|
name: "loading-loop",
|
|
943
951
|
class: "shrink-0"
|
|
944
|
-
}), M("span",
|
|
952
|
+
}), M("span", zt, z(B(i)("label.answeringOnTheCall")), 1)])])], 4)) : A("", !0)]),
|
|
945
953
|
_: 1
|
|
946
954
|
}),
|
|
947
955
|
N(D, {
|
|
948
956
|
appear: "",
|
|
949
957
|
name: "pk-chatbot-part"
|
|
950
958
|
}, {
|
|
951
|
-
default: H(() => [
|
|
959
|
+
default: H(() => [_n.value ? (R(), j("div", Bt, [N(tt, {
|
|
952
960
|
question: e.hostConfirmation?.question ?? B(i)("toolApproval.prompt"),
|
|
953
961
|
details: e.hostConfirmation?.details,
|
|
954
962
|
onRespond: n[4] ||= (e) => r("host-confirm-respond", e)
|
|
@@ -959,7 +967,7 @@ var ot = ["aria-busy"], st = {
|
|
|
959
967
|
appear: "",
|
|
960
968
|
name: "pk-chatbot-part"
|
|
961
969
|
}, {
|
|
962
|
-
default: H(() => [
|
|
970
|
+
default: H(() => [rn.value ? (R(), k(ge, {
|
|
963
971
|
key: 0,
|
|
964
972
|
error: e.error,
|
|
965
973
|
onRetry: n[5] ||= (e) => t.$emit("auto-retry"),
|
|
@@ -967,7 +975,7 @@ var ot = ["aria-busy"], st = {
|
|
|
967
975
|
}, null, 8, ["error"])) : A("", !0)]),
|
|
968
976
|
_: 1
|
|
969
977
|
}),
|
|
970
|
-
|
|
978
|
+
en.value?.role === "user" && !on.value || rn.value ? (R(), j("div", {
|
|
971
979
|
key: 0,
|
|
972
980
|
class: "pk-chatbot-messages__spacer",
|
|
973
981
|
style: ke({ minHeight: `${q.value}px` })
|
|
@@ -981,13 +989,13 @@ var ot = ["aria-busy"], st = {
|
|
|
981
989
|
title: B(i)("action.scrollToBottom"),
|
|
982
990
|
"aria-label": B(i)("action.scrollToBottom"),
|
|
983
991
|
onClick: We
|
|
984
|
-
}, [N(p, { name: "ri:arrow-down-line" })], 8,
|
|
992
|
+
}, [N(p, { name: "ri:arrow-down-line" })], 8, Vt)) : A("", !0)]),
|
|
985
993
|
_: 1
|
|
986
994
|
})
|
|
987
995
|
], 46, ot);
|
|
988
996
|
};
|
|
989
997
|
}
|
|
990
998
|
});
|
|
991
|
-
export {
|
|
999
|
+
export { Ht as t };
|
|
992
1000
|
|
|
993
|
-
//# sourceMappingURL=PkChatbotMessages-
|
|
1001
|
+
//# sourceMappingURL=PkChatbotMessages-DFimKbCj.js.map
|