@8wave/ai-elements 0.121.0-beta.41 → 0.121.0-beta.43
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/{PkChatbotFilePreview-CpFXWpU7.js → PkChatbotFilePreview-DxpEIFOG.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-CpFXWpU7.js.map → PkChatbotFilePreview-DxpEIFOG.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-DvHKY7Vh.js → PkHeldImage-CztNY8OZ.js} +2 -2
- package/dist/_chunks/{PkHeldImage-DvHKY7Vh.js.map → PkHeldImage-CztNY8OZ.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-BBFsS16D.js → PkLazyImg-BqbuNQgf.js} +2 -2
- package/dist/_chunks/{PkLazyImg-BBFsS16D.js.map → PkLazyImg-BqbuNQgf.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-D2aqCD0I.js → PkStreamingMarkdown-BlTH2AJX.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-D2aqCD0I.js.map → PkStreamingMarkdown-BlTH2AJX.js.map} +1 -1
- package/dist/_chunks/{PkToolEditSpreadsheet-83ZdmGeA.js → PkToolEditSpreadsheet-CDxglslA.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-83ZdmGeA.js.map → PkToolEditSpreadsheet-CDxglslA.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-1cOmCG8P.js → PkToolRequestGeolocation-CxMAoAv6.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-1cOmCG8P.js.map → PkToolRequestGeolocation-CxMAoAv6.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CCu3FCyo.js → PkToolRequestOAuthConnection-DU1Y2odZ.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-CCu3FCyo.js.map → PkToolRequestOAuthConnection-DU1Y2odZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-BhT59J9o.js → PkToolShareDocument-YrPrexhS.js} +5 -5
- package/dist/_chunks/{PkToolShareDocument-BhT59J9o.js.map → PkToolShareDocument-YrPrexhS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-CiYkZkpe.js → PkToolShowArtifact-jQeIv65U.js} +4 -4
- package/dist/_chunks/{PkToolShowArtifact-CiYkZkpe.js.map → PkToolShowArtifact-jQeIv65U.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-Dzh4JURs.js → PkToolShowCalendarEvent-CAN5-qnM.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-Dzh4JURs.js.map → PkToolShowCalendarEvent-CAN5-qnM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-CFHrXnaB.js → PkToolShowComparison-DGxHYpl3.js} +4 -4
- package/dist/_chunks/{PkToolShowComparison-CFHrXnaB.js.map → PkToolShowComparison-DGxHYpl3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-D7TEzrYe.js → PkToolShowContactForm-D7wg3Jlu.js} +5 -5
- package/dist/_chunks/{PkToolShowContactForm-D7TEzrYe.js.map → PkToolShowContactForm-D7wg3Jlu.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-DGnIuRst.js → PkToolShowDiagram-BBs1rh96.js} +4 -4
- package/dist/_chunks/{PkToolShowDiagram-DGnIuRst.js.map → PkToolShowDiagram-BBs1rh96.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-C3jped-R.js → PkToolShowEmail-CeiSo-zx.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-C3jped-R.js.map → PkToolShowEmail-CeiSo-zx.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CSh4Q6sl.js → PkToolShowForm-BMVgXxzl.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-CSh4Q6sl.js.map → PkToolShowForm-BMVgXxzl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CQEaEfYE.js → PkToolShowImageGallery-Ba0CfKt6.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-CQEaEfYE.js.map → PkToolShowImageGallery-Ba0CfKt6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-gyMiVjhi.js → PkToolShowLocation-Cp95-u2H.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-gyMiVjhi.js.map → PkToolShowLocation-Cp95-u2H.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-wGPPnOAM.js → PkToolShowMessage-Bn8O_W0D.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-wGPPnOAM.js.map → PkToolShowMessage-Bn8O_W0D.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-BCmULLct.js → PkToolShowProductList-DbZfUUWe.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-BCmULLct.js.map → PkToolShowProductList-DbZfUUWe.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-CeZsvZvb.js → PkToolShowQrCode-D_9_c-Ws.js} +4 -4
- package/dist/_chunks/{PkToolShowQrCode-CeZsvZvb.js.map → PkToolShowQrCode-D_9_c-Ws.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-R9KWsfTQ.js → PkToolShowSources-Dkt4IId2.js} +4 -4
- package/dist/_chunks/{PkToolShowSources-R9KWsfTQ.js.map → PkToolShowSources-Dkt4IId2.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DYZz9aV2.js → PkToolShowSuggestedReply-BF2sT3B1.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-DYZz9aV2.js.map → PkToolShowSuggestedReply-BF2sT3B1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-C_9SZtZM.js → PkToolShowVideo-l8JoSKCj.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-C_9SZtZM.js.map → PkToolShowVideo-l8JoSKCj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-BgS4_SWb.js → PkToolShowWeather-DifqBB7o.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-BgS4_SWb.js.map → PkToolShowWeather-DifqBB7o.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DwRYfle9.js → PkToolShowWebPages-DtcEmrYt.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-DwRYfle9.js.map → PkToolShowWebPages-DtcEmrYt.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-B6igS2e0.js → VvButtonLocalized-D7K9ZslZ.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-B6igS2e0.js.map → VvButtonLocalized-D7K9ZslZ.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-OXhptnPU.js → VvCheckboxGroup.es-BebSMBKU.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-OXhptnPU.js.map → VvCheckboxGroup.es-BebSMBKU.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-SLzX9VnX.js → VvCombobox.es-BfiDcdcw.js} +481 -481
- package/dist/_chunks/{VvCombobox.es-SLzX9VnX.js.map → VvCombobox.es-BfiDcdcw.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-CETcNKlr.js → VvInputText.es-DllQ2Tue.js} +435 -435
- package/dist/_chunks/{VvInputText.es-CETcNKlr.js.map → VvInputText.es-DllQ2Tue.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-UBZBB89A.js → VvRadioGroup.es-D6uqf6a1.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-UBZBB89A.js.map → VvRadioGroup.es-D6uqf6a1.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-B_MShGnJ.js → VvSelect.es-BR5Ci5VC.js} +2 -2
- package/dist/_chunks/{VvSelect.es-B_MShGnJ.js.map → VvSelect.es-BR5Ci5VC.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-Dm2Yq3WM.js → VvTextarea.es-Bwe5xjXl.js} +29 -29
- package/dist/_chunks/{VvTextarea.es-Dm2Yq3WM.js.map → VvTextarea.es-Bwe5xjXl.js.map} +1 -1
- package/dist/_chunks/{dist-Do_Ac5Yv.js → dist-CB7v_M5z.js} +52 -46
- package/dist/_chunks/dist-CB7v_M5z.js.map +1 -0
- package/dist/_chunks/{index.es-BTDKU45u.js → index.es-CKF2q-ww.js} +26 -26
- package/dist/_chunks/{index.es-BTDKU45u.js.map → index.es-CKF2q-ww.js.map} +1 -1
- package/dist/_chunks/{index.es-BZS9Cscn.js → index.es-CoWhnabo.js} +16 -16
- package/dist/_chunks/{index.es-BZS9Cscn.js.map → index.es-CoWhnabo.js.map} +1 -1
- package/dist/ai-elements.es.js +4171 -3913
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotQueuedMessages.d.ts +2 -0
- package/dist-vue/PkChatbotQueuedMessages.js +1 -0
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/PkChatbot-CObEhs2T.js +279 -0
- package/dist-vue/_chunks/PkChatbot-CObEhs2T.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotInput-BJHtmPR-.js → PkChatbotInput-CuEoeb_M.js} +47 -22
- package/dist-vue/_chunks/PkChatbotInput-CuEoeb_M.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotQueuedMessages-DlydYgwC.js +51 -0
- package/dist-vue/_chunks/PkChatbotQueuedMessages-DlydYgwC.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-BI_PtT72.js → PkChatbotViewChat-BZb-U7Ju.js} +246 -224
- package/dist-vue/_chunks/PkChatbotViewChat-BZb-U7Ju.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotViewConversations-CCPRWCKs.js +210 -0
- package/dist-vue/_chunks/PkChatbotViewConversations-CCPRWCKs.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewFiles-Cwm-JQMF.js → PkChatbotViewFiles-BgqksCn0.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-Cwm-JQMF.js.map → PkChatbotViewFiles-BgqksCn0.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-C_GElIM3.js → PkChatbotViewProfile-B6tHWrqn.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-C_GElIM3.js.map → PkChatbotViewProfile-B6tHWrqn.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DUz4dwzY.js → createChatbotApiClient-hcFAulTq.js} +12 -3
- package/dist-vue/_chunks/createChatbotApiClient-hcFAulTq.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-D7LcpA-6.js → useChatbotStore-Ct7G-voO.js} +953 -800
- package/dist-vue/_chunks/useChatbotStore-Ct7G-voO.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +10 -6
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +94 -80
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +16 -2
- package/dist-vue/packages/components/src/chat/PkChatSidebarConversationItem.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +17 -3
- package/dist-vue/packages/components/src/chat/PkChatbotQueuedMessages.d.ts +22 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +5 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +37 -2
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/dist-Do_Ac5Yv.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-DIqduIwr.js +0 -290
- package/dist-vue/_chunks/PkChatbot-DIqduIwr.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-BJHtmPR-.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-BI_PtT72.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewConversations-Bg4jSO9a.js +0 -199
- package/dist-vue/_chunks/PkChatbotViewConversations-Bg4jSO9a.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-DUz4dwzY.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-D7LcpA-6.js.map +0 -1
package/dist-vue/index.js
CHANGED
|
@@ -5,18 +5,18 @@ import { t as v } from "./_chunks/PkChatbotMessages-DMSActW1.js";
|
|
|
5
5
|
import { a as y, i as b, l as x, n as S, r as C } from "./_chunks/Media-D-UGzdcW.js";
|
|
6
6
|
import { $ as w, C as ee, F as te, G as ne, H as re, I as ie, K as ae, M as oe, N as se, P as ce, S as le, T as ue, U as de, W as fe, _ as pe, a as me, at as he, b as ge, d as _e, et as ve, f as ye, i as be, it as xe, j as Se, lt as Ce, nt as we, ot as Te, p as Ee, q as De, r as T, rt as Oe, s as ke, t as Ae, tt as je, w as Me, y as Ne, z as Pe } from "./_chunks/Agent-DZb775Ak.js";
|
|
7
7
|
import { c as Fe, d as Ie, l as Le, r as Re, s as ze, t as Be, u as Ve } from "./_chunks/Document-E72l_VU6.js";
|
|
8
|
-
import { a as He, i as Ue, n as We } from "./_chunks/createChatbotApiClient-
|
|
8
|
+
import { a as He, i as Ue, n as We } from "./_chunks/createChatbotApiClient-hcFAulTq.js";
|
|
9
9
|
import { t as Ge } from "./_chunks/PkChatbotAuth-BsxfxDgR.js";
|
|
10
10
|
import { t as Ke } from "./_chunks/VvButtonLocalized-BuzLsXp3.js";
|
|
11
11
|
import { n as qe, t as Je } from "./_chunks/PkStreamingMarkdown-DwDs-cGP.js";
|
|
12
|
-
import { a as Ye, i as Xe, n as Ze, r as Qe } from "./_chunks/useChatbotStore-
|
|
12
|
+
import { a as Ye, i as Xe, n as Ze, r as Qe } from "./_chunks/useChatbotStore-Ct7G-voO.js";
|
|
13
13
|
import "./_chunks/src-BZRiAJsH.js";
|
|
14
14
|
import { a as $e, l as et, u as tt } from "./_chunks/message-DZvfzt9j.js";
|
|
15
15
|
import { A as nt, D as rt, F as it, I as at, N as ot, P as st, f as ct, g as lt, m as ut, w as dt } from "./_chunks/utils-EPX3V3VI.js";
|
|
16
16
|
import { t as ft } from "./_chunks/useSafeLocalStorage-C1BlCeKw.js";
|
|
17
17
|
import { t as pt } from "./_chunks/useDialogConfirm-BxhvsnRr.js";
|
|
18
|
-
import { n as mt, r as ht, t as gt } from "./_chunks/PkChatbotViewConversations-
|
|
19
|
-
import { i as _t, n as vt, r as yt, t as bt } from "./_chunks/PkChatbotViewChat-
|
|
18
|
+
import { n as mt, r as ht, t as gt } from "./_chunks/PkChatbotViewConversations-CCPRWCKs.js";
|
|
19
|
+
import { i as _t, n as vt, r as yt, t as bt } from "./_chunks/PkChatbotViewChat-BZb-U7Ju.js";
|
|
20
20
|
import { t as xt } from "./_chunks/PkChatbotError-BV5ga7hk.js";
|
|
21
21
|
import { t as St } from "./_chunks/useImageFallback-5vQIO0pC.js";
|
|
22
22
|
import { t as Ct } from "./_chunks/useLocalizedString-PfaKjIQY.js";
|
|
@@ -34,10 +34,10 @@ import { t as Gn } from "./_chunks/PkChatbotFeedbackForm-pQc2JrQT.js";
|
|
|
34
34
|
import { n as Kn, t as qn } from "./_chunks/PkChatbotSteps-QFFZ0DjH.js";
|
|
35
35
|
import { t as Jn } from "./_chunks/PkChatbotStepPayload-CXdsUMrw.js";
|
|
36
36
|
import { t as Yn } from "./_chunks/PkChatbotStepToolDetail-DbpXR7jh.js";
|
|
37
|
-
import { n as Xn, t as Zn } from "./_chunks/PkChatbotInput-
|
|
37
|
+
import { n as Xn, t as Zn } from "./_chunks/PkChatbotInput-CuEoeb_M.js";
|
|
38
38
|
import { t as Qn } from "./_chunks/PkChatbotEmptyState-Dh7ETVnf.js";
|
|
39
|
-
import { t as $n } from "./_chunks/PkChatbotViewProfile-
|
|
40
|
-
import { t as er } from "./_chunks/PkChatbot-
|
|
39
|
+
import { t as $n } from "./_chunks/PkChatbotViewProfile-B6tHWrqn.js";
|
|
40
|
+
import { t as er } from "./_chunks/PkChatbot-CObEhs2T.js";
|
|
41
41
|
import { i as tr, r as nr, t as rr } from "./_chunks/PkToolShowSources-BDvRbenn.js";
|
|
42
42
|
import { t as ir } from "./_chunks/mcpOAuthReport-BHCMTtgf.js";
|
|
43
43
|
import { t as ar } from "./_chunks/PkToolShowEmail-CUgZN0J5.js";
|
|
@@ -20797,6 +20797,7 @@ var Lw = { class: "flex items-center gap-xs min-w-0" }, Rw = { class: "truncate"
|
|
|
20797
20797
|
conversation: {},
|
|
20798
20798
|
active: { type: Boolean },
|
|
20799
20799
|
editing: { type: Boolean },
|
|
20800
|
+
answering: { type: Boolean },
|
|
20800
20801
|
filesEnabled: {
|
|
20801
20802
|
type: Boolean,
|
|
20802
20803
|
default: !0
|
|
@@ -20847,43 +20848,54 @@ var Lw = { class: "flex items-center gap-xs min-w-0" }, Rw = { class: "truncate"
|
|
|
20847
20848
|
onClick: n[3] ||= (e) => i("edit-cancel")
|
|
20848
20849
|
}, null, 8, ["title"])]),
|
|
20849
20850
|
_: 1
|
|
20850
|
-
})], 64)) : (z(), N(k, { key: 1 }, [
|
|
20851
|
-
|
|
20852
|
-
|
|
20853
|
-
|
|
20854
|
-
|
|
20855
|
-
|
|
20856
|
-
|
|
20857
|
-
|
|
20858
|
-
|
|
20859
|
-
|
|
20860
|
-
|
|
20861
|
-
|
|
20862
|
-
|
|
20863
|
-
|
|
20864
|
-
|
|
20865
|
-
|
|
20866
|
-
|
|
20867
|
-
|
|
20868
|
-
|
|
20869
|
-
|
|
20870
|
-
|
|
20871
|
-
|
|
20872
|
-
|
|
20873
|
-
|
|
20874
|
-
|
|
20875
|
-
|
|
20876
|
-
|
|
20877
|
-
|
|
20878
|
-
|
|
20879
|
-
|
|
20880
|
-
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
|
|
20885
|
-
|
|
20886
|
-
|
|
20851
|
+
})], 64)) : (z(), N(k, { key: 1 }, [
|
|
20852
|
+
P("button", {
|
|
20853
|
+
type: "button",
|
|
20854
|
+
class: "pk-chat-sidebar-item__button",
|
|
20855
|
+
"aria-current": e.active ? "page" : void 0,
|
|
20856
|
+
title: o.value,
|
|
20857
|
+
onClick: n[4] ||= (e) => i("select")
|
|
20858
|
+
}, H(o.value), 9, LE),
|
|
20859
|
+
e.answering ? (z(), j(u, {
|
|
20860
|
+
key: 0,
|
|
20861
|
+
name: "loading-loop",
|
|
20862
|
+
role: "img",
|
|
20863
|
+
title: U(a)("label.answeringInBackground"),
|
|
20864
|
+
"aria-label": U(a)("label.answeringInBackground"),
|
|
20865
|
+
class: "pk-chat-sidebar-item__answering"
|
|
20866
|
+
}, null, 8, ["title", "aria-label"])) : M("", !0),
|
|
20867
|
+
I(f, Kr({
|
|
20868
|
+
placement: "bottom-end",
|
|
20869
|
+
modifiers: "menu",
|
|
20870
|
+
flip: !0,
|
|
20871
|
+
offset: 3,
|
|
20872
|
+
strategy: "fixed"
|
|
20873
|
+
}, { class: "pk-chat-sidebar-item__actions" }), {
|
|
20874
|
+
items: K(() => [
|
|
20875
|
+
e.filesEnabled ? (z(), j(d, {
|
|
20876
|
+
key: 0,
|
|
20877
|
+
onClick: n[5] ||= (e) => i("files")
|
|
20878
|
+
}, {
|
|
20879
|
+
default: K(() => [I(u, { name: "ri:attachment-2" }), F(" " + H(U(a)("userFiles.chatFilesTitle")), 1)]),
|
|
20880
|
+
_: 1
|
|
20881
|
+
})) : M("", !0),
|
|
20882
|
+
I(d, { onClick: n[6] ||= (e) => i("edit-start") }, {
|
|
20883
|
+
default: K(() => [I(u, { name: "ri:pencil-line" }), F(" " + H(U(a)("action.renameChat")), 1)]),
|
|
20884
|
+
_: 1
|
|
20885
|
+
}),
|
|
20886
|
+
I(d, { onClick: n[7] ||= (e) => i("delete") }, {
|
|
20887
|
+
default: K(() => [I(u, { name: "ri:delete-bin-line" }), F(" " + H(U(a)("action.delete")), 1)]),
|
|
20888
|
+
_: 1
|
|
20889
|
+
})
|
|
20890
|
+
]),
|
|
20891
|
+
default: K(() => [I(c, {
|
|
20892
|
+
icon: "ri:more-2-fill",
|
|
20893
|
+
title: U(a)("action.moreActions"),
|
|
20894
|
+
modifiers: "action-quiet-small"
|
|
20895
|
+
}, null, 8, ["title"])]),
|
|
20896
|
+
_: 1
|
|
20897
|
+
}, 16)
|
|
20898
|
+
], 64))], 2);
|
|
20887
20899
|
};
|
|
20888
20900
|
}
|
|
20889
20901
|
}), zE = ["inert", "aria-label"], BE = { class: "pk-chat-sidebar__header" }, VE = ["title"], HE = { class: "pk-chat-sidebar__actions" }, UE = {
|
|
@@ -20918,13 +20930,13 @@ var Lw = { class: "flex items-center gap-xs min-w-0" }, Rw = { class: "truncate"
|
|
|
20918
20930
|
setup(e, { emit: t }) {
|
|
20919
20931
|
let n = e, r = W(e, "collapsed"), i = Ci("(max-width: 1023px)"), a = () => {
|
|
20920
20932
|
i.value && (r.value = !0);
|
|
20921
|
-
}, o = t, { t: s } = q({ useScope: "global" }), c = Ze(n.agentId), { conversations: l, isLoadingConversations: u, localChatId: d } = Oi(c), { startNewChat:
|
|
20922
|
-
renameChatTitle:
|
|
20923
|
-
deleteChat:
|
|
20924
|
-
}),
|
|
20925
|
-
let e =
|
|
20933
|
+
}, o = t, { t: s } = q({ useScope: "global" }), c = Ze(n.agentId), { conversations: l, isLoadingConversations: u, localChatId: d, runningChatIds: f } = Oi(c), { startNewChat: p, navigate: m, renameChatTitle: h, deleteChat: g } = c, { editingId: _, editingTitle: v, startEdit: y, confirmEdit: b, cancelEdit: x, onRenameKeydown: S, requestDelete: C } = ht({
|
|
20934
|
+
renameChatTitle: h,
|
|
20935
|
+
deleteChat: g
|
|
20936
|
+
}), w = B(""), ee = yi(w, 300), te = A(() => {
|
|
20937
|
+
let e = ee.value.trim().toLowerCase();
|
|
20926
20938
|
return e ? l.value.filter((t) => mt(t).toLowerCase().includes(e)) : l.value;
|
|
20927
|
-
}),
|
|
20939
|
+
}), ne = A(() => {
|
|
20928
20940
|
let e = (/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0), t = {
|
|
20929
20941
|
today: [],
|
|
20930
20942
|
yesterday: [],
|
|
@@ -20932,7 +20944,7 @@ var Lw = { class: "flex items-center gap-xs min-w-0" }, Rw = { class: "truncate"
|
|
|
20932
20944
|
last30Days: [],
|
|
20933
20945
|
older: []
|
|
20934
20946
|
};
|
|
20935
|
-
for (let n of
|
|
20947
|
+
for (let n of te.value) {
|
|
20936
20948
|
let r = n.lastMessageAt ? new Date(n.lastMessageAt).getTime() : 0;
|
|
20937
20949
|
r >= e ? t.today.push(n) : r >= e - JE ? t.yesterday.push(n) : r >= e - 7 * JE ? t.last7Days.push(n) : r >= e - 30 * JE ? t.last30Days.push(n) : t.older.push(n);
|
|
20938
20950
|
}
|
|
@@ -20941,27 +20953,27 @@ var Lw = { class: "flex items-center gap-xs min-w-0" }, Rw = { class: "truncate"
|
|
|
20941
20953
|
label: s(`label.${e}`),
|
|
20942
20954
|
items: t
|
|
20943
20955
|
}));
|
|
20944
|
-
}),
|
|
20945
|
-
d.value = e,
|
|
20946
|
-
},
|
|
20947
|
-
|
|
20948
|
-
},
|
|
20949
|
-
G(
|
|
20950
|
-
e ? (
|
|
20956
|
+
}), re = (e) => {
|
|
20957
|
+
d.value = e, m("chat"), a();
|
|
20958
|
+
}, ie = () => {
|
|
20959
|
+
p(), a();
|
|
20960
|
+
}, ae = A(() => i.value && !r.value), oe = B(), se = null, ce = () => Array.from(oe.value?.querySelectorAll("button, input, select, textarea, a[href], [tabindex]:not([tabindex=\"-1\"])") ?? []).filter((e) => !e.hasAttribute("disabled"));
|
|
20961
|
+
G(ae, async (e) => {
|
|
20962
|
+
e ? (se = document.activeElement instanceof HTMLElement ? document.activeElement : null, await qr(), ce()[0]?.focus()) : (se?.focus(), se = null);
|
|
20951
20963
|
}), vi("Escape", () => {
|
|
20952
|
-
|
|
20964
|
+
ae.value && (r.value = !0);
|
|
20953
20965
|
});
|
|
20954
|
-
let
|
|
20955
|
-
if (e.key !== "Tab" || !
|
|
20956
|
-
let t =
|
|
20966
|
+
let le = (e) => {
|
|
20967
|
+
if (e.key !== "Tab" || !ae.value) return;
|
|
20968
|
+
let t = ce();
|
|
20957
20969
|
if (t.length === 0) return;
|
|
20958
20970
|
let n = t[0], r = t[t.length - 1];
|
|
20959
20971
|
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
|
|
20960
20972
|
};
|
|
20961
20973
|
return (t, n) => {
|
|
20962
|
-
let a = Ke, c = Or,
|
|
20974
|
+
let a = Ke, c = Or, p = jr;
|
|
20963
20975
|
return z(), N(k, null, [I(Fr, { name: "pk-chat-sidebar-backdrop" }, {
|
|
20964
|
-
default: K(() => [
|
|
20976
|
+
default: K(() => [ae.value ? (z(), N("div", {
|
|
20965
20977
|
key: 0,
|
|
20966
20978
|
class: "pk-chat-sidebar__backdrop",
|
|
20967
20979
|
"aria-hidden": "true",
|
|
@@ -20970,12 +20982,12 @@ var Lw = { class: "flex items-center gap-xs min-w-0" }, Rw = { class: "truncate"
|
|
|
20970
20982
|
_: 1
|
|
20971
20983
|
}), P("aside", {
|
|
20972
20984
|
ref_key: "sidebarEl",
|
|
20973
|
-
ref:
|
|
20985
|
+
ref: oe,
|
|
20974
20986
|
class: Jr(["pk-chat-sidebar", { "pk-chat-sidebar--collapsed": r.value }]),
|
|
20975
20987
|
style: Xr(e.accentColor ? { "--chat-sidebar-accent": e.accentColor } : void 0),
|
|
20976
20988
|
inert: r.value,
|
|
20977
20989
|
"aria-label": U(s)("label.conversations"),
|
|
20978
|
-
onKeydown:
|
|
20990
|
+
onKeydown: le
|
|
20979
20991
|
}, [
|
|
20980
20992
|
P("header", BE, [
|
|
20981
20993
|
e.organizationLogo || e.organizationName ? (z(), j(Wn, {
|
|
@@ -21013,12 +21025,12 @@ var Lw = { class: "flex items-center gap-xs min-w-0" }, Rw = { class: "truncate"
|
|
|
21013
21025
|
P("button", {
|
|
21014
21026
|
type: "button",
|
|
21015
21027
|
class: "pk-chat-sidebar__new-chat",
|
|
21016
|
-
onClick:
|
|
21028
|
+
onClick: ie
|
|
21017
21029
|
}, [I(c, { name: "ri:edit-box-line" }), F(" " + H(U(s)("action.startNewChat")), 1)]),
|
|
21018
21030
|
V(t.$slots, "actions-extra"),
|
|
21019
|
-
I(
|
|
21020
|
-
modelValue:
|
|
21021
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
21031
|
+
I(p, {
|
|
21032
|
+
modelValue: w.value,
|
|
21033
|
+
"onUpdate:modelValue": n[3] ||= (e) => w.value = e,
|
|
21022
21034
|
name: "conversation-search",
|
|
21023
21035
|
modifiers: "search",
|
|
21024
21036
|
icon: "ri:search-line",
|
|
@@ -21034,28 +21046,30 @@ var Lw = { class: "flex items-center gap-xs min-w-0" }, Rw = { class: "truncate"
|
|
|
21034
21046
|
U(u) && U(l).length === 0 ? (z(), N("div", UE, [(z(), N(k, null, ri(6, (e) => P("div", {
|
|
21035
21047
|
key: e,
|
|
21036
21048
|
class: "vv-skeleton__item rounded-md h-36"
|
|
21037
|
-
})), 64))])) : (z(), N("nav", WE, [
|
|
21049
|
+
})), 64))])) : (z(), N("nav", WE, [ne.value.length === 0 ? (z(), N("p", GE, H(U(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, ri(ne.value, (t) => (z(), N("div", {
|
|
21038
21050
|
key: t.key,
|
|
21039
21051
|
class: "pk-chat-sidebar__group"
|
|
21040
21052
|
}, [P("span", KE, H(t.label), 1), (z(!0), N(k, null, ri(t.items, (t) => (z(), j(RE, {
|
|
21041
21053
|
key: t.id,
|
|
21042
|
-
"editing-title": U(
|
|
21043
|
-
"onUpdate:editingTitle": n[4] ||= (e) => Ur(
|
|
21054
|
+
"editing-title": U(v),
|
|
21055
|
+
"onUpdate:editingTitle": n[4] ||= (e) => Ur(v) ? v.value = e : null,
|
|
21044
21056
|
conversation: t,
|
|
21045
21057
|
active: t.id === U(d),
|
|
21046
|
-
|
|
21058
|
+
answering: U(f).includes(t.id),
|
|
21059
|
+
editing: U(_) === t.id,
|
|
21047
21060
|
"files-enabled": e.filesEnabled,
|
|
21048
|
-
onSelect: (e) =>
|
|
21049
|
-
onEditStart: (e) => U(
|
|
21050
|
-
onEditConfirm: (e) => U(
|
|
21051
|
-
onEditCancel: U(
|
|
21052
|
-
onEditKeydown: (e) => U(
|
|
21053
|
-
onDelete: (e) => U(
|
|
21061
|
+
onSelect: (e) => re(t.id),
|
|
21062
|
+
onEditStart: (e) => U(y)(t, U(mt)(t)),
|
|
21063
|
+
onEditConfirm: (e) => U(b)(t.id),
|
|
21064
|
+
onEditCancel: U(x),
|
|
21065
|
+
onEditKeydown: (e) => U(S)(e, t.id),
|
|
21066
|
+
onDelete: (e) => U(C)(t.id),
|
|
21054
21067
|
onFiles: (e) => o("view-files", t.id)
|
|
21055
21068
|
}, null, 8, [
|
|
21056
21069
|
"editing-title",
|
|
21057
21070
|
"conversation",
|
|
21058
21071
|
"active",
|
|
21072
|
+
"answering",
|
|
21059
21073
|
"editing",
|
|
21060
21074
|
"files-enabled",
|
|
21061
21075
|
"onSelect",
|