@8wave/ai-elements 0.111.0-beta.7 → 0.111.0-beta.8
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/{PkLazyImg-ClL4nr95.js → PkLazyImg-Dbj2dDXA.js} +2 -2
- package/dist/_chunks/{PkLazyImg-ClL4nr95.js.map → PkLazyImg-Dbj2dDXA.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-DgBS4Ebc.js → PkStreamingMarkdown-CNI8aV8t.js} +617 -418
- package/dist/_chunks/PkStreamingMarkdown-CNI8aV8t.js.map +1 -0
- package/dist/_chunks/{PkToolRequestGeolocation-pVys3x9M.js → PkToolRequestGeolocation-Bzy4IYSp.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-pVys3x9M.js.map → PkToolRequestGeolocation-Bzy4IYSp.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BGChb_eC.js → PkToolRequestOAuthConnection-CWEKoD71.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-BGChb_eC.js.map → PkToolRequestOAuthConnection-CWEKoD71.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-CkTBIdQd.js → PkToolShowArtifact-CGbHDEie.js} +4 -4
- package/dist/_chunks/{PkToolShowArtifact-CkTBIdQd.js.map → PkToolShowArtifact-CGbHDEie.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-C41JgOUA.js → PkToolShowCalendarEvent-DIFX_rUz.js} +3 -3
- package/dist/_chunks/{PkToolShowCalendarEvent-C41JgOUA.js.map → PkToolShowCalendarEvent-DIFX_rUz.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-DbbUD9pg.js → PkToolShowComparison-B38hHWq2.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-DbbUD9pg.js.map → PkToolShowComparison-B38hHWq2.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Du7jX7K5.js → PkToolShowContactForm-DUw_bZiJ.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-Du7jX7K5.js.map → PkToolShowContactForm-DUw_bZiJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-BdmG9gm8.js → PkToolShowDiagram-Dx1Ba0PG.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-BdmG9gm8.js.map → PkToolShowDiagram-Dx1Ba0PG.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-Dn3JHYIR.js → PkToolShowEmail-DnFFgzom.js} +3 -3
- package/dist/_chunks/{PkToolShowEmail-Dn3JHYIR.js.map → PkToolShowEmail-DnFFgzom.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-Du2nk7pq.js → PkToolShowForm-CKQQltJ6.js} +5 -6
- package/dist/_chunks/{PkToolShowForm-Du2nk7pq.js.map → PkToolShowForm-CKQQltJ6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-C1lzlO0y.js → PkToolShowImageGallery-D99N_Plf.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-C1lzlO0y.js.map → PkToolShowImageGallery-D99N_Plf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-CKhPxKFA.js → PkToolShowLocation-AfnrtFVJ.js} +3 -3
- package/dist/_chunks/{PkToolShowLocation-CKhPxKFA.js.map → PkToolShowLocation-AfnrtFVJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-U9CCU7eG.js → PkToolShowMessage-DUo2c-im.js} +3 -3
- package/dist/_chunks/{PkToolShowMessage-U9CCU7eG.js.map → PkToolShowMessage-DUo2c-im.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-UeiRMLHu.js → PkToolShowProductList-BN6Qk1_y.js} +3 -3
- package/dist/_chunks/{PkToolShowProductList-UeiRMLHu.js.map → PkToolShowProductList-BN6Qk1_y.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-CypLrfh5.js → PkToolShowQrCode-BLqeBecX.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-CypLrfh5.js.map → PkToolShowQrCode-BLqeBecX.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-CsHLUF4L.js → PkToolShowSources-DpZb5FUP.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-CsHLUF4L.js.map → PkToolShowSources-DpZb5FUP.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-D7g_qymH.js → PkToolShowSuggestedReply-C10nNgBs.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-D7g_qymH.js.map → PkToolShowSuggestedReply-C10nNgBs.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-BgKxdBcC.js → PkToolShowVideo-S9b4QHUj.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-BgKxdBcC.js.map → PkToolShowVideo-S9b4QHUj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-LPd3tC77.js → PkToolShowWeather-CqhG430w.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-LPd3tC77.js.map → PkToolShowWeather-CqhG430w.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-ep_erFF0.js → PkToolShowWebPages-txAZi_iG.js} +3 -3
- package/dist/_chunks/{PkToolShowWebPages-ep_erFF0.js.map → PkToolShowWebPages-txAZi_iG.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-Bdu2gFLN.js → VvCheckboxGroup.es-CTrF3pue.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-Bdu2gFLN.js.map → VvCheckboxGroup.es-CTrF3pue.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-C0wpJIr_.js → VvCombobox.es-BWiXmQ_S.js} +10 -10
- package/dist/_chunks/{VvCombobox.es-C0wpJIr_.js.map → VvCombobox.es-BWiXmQ_S.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-Zgtw2YNw.js → VvInputText.es-Bo9I6g8H.js} +6 -6
- package/dist/_chunks/{VvInputText.es-Zgtw2YNw.js.map → VvInputText.es-Bo9I6g8H.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-DZLL19SC.js → VvRadioGroup.es-9ooHCuik.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-DZLL19SC.js.map → VvRadioGroup.es-9ooHCuik.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-ovnZRHG5.js → VvSelect.es-DG0VuWtP.js} +2 -2
- package/dist/_chunks/{VvSelect.es-ovnZRHG5.js.map → VvSelect.es-DG0VuWtP.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-DbP5Lt2T.js → VvTextarea.es-Dg3pxdZy.js} +6 -6
- package/dist/_chunks/{VvTextarea.es-DbP5Lt2T.js.map → VvTextarea.es-Dg3pxdZy.js.map} +1 -1
- package/dist/_chunks/{dist-n5iFNYf-.js → dist-QdjZA6MJ.js} +143 -133
- package/dist/_chunks/{dist-n5iFNYf-.js.map → dist-QdjZA6MJ.js.map} +1 -1
- package/dist/_chunks/{index.es-dtdl3VFG.js → index.es-0YpCa4c5.js} +6 -6
- package/dist/_chunks/{index.es-dtdl3VFG.js.map → index.es-0YpCa4c5.js.map} +1 -1
- package/dist/_chunks/{index.es-BJnUA_36.js → index.es-CHkJ2TMJ.js} +10 -10
- package/dist/_chunks/{index.es-BJnUA_36.js.map → index.es-CHkJ2TMJ.js.map} +1 -1
- package/dist/ai-elements.es.js +1956 -1944
- 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/_chunks/{PkChatbot-Di7R2CWN.js → PkChatbot-DE1bKmDi.js} +57 -57
- package/dist-vue/_chunks/{PkChatbot-Di7R2CWN.js.map → PkChatbot-DE1bKmDi.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-C_ITdvH7.js → PkChatbotEmptyState-BtzBYOHJ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-C_ITdvH7.js.map → PkChatbotEmptyState-BtzBYOHJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-pEl3D2O-.js → PkChatbotInput-MSpF6SB6.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-pEl3D2O-.js.map → PkChatbotInput-MSpF6SB6.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-B6ONEJnZ.js +776 -0
- package/dist-vue/_chunks/PkChatbotMessages-B6ONEJnZ.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-BH6piqOi.js → PkChatbotStepPayload-XW4gT9AZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-BH6piqOi.js.map → PkChatbotStepPayload-XW4gT9AZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BJ7xUvgi.js → PkChatbotStepToolDetail-C4-K6Glw.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BJ7xUvgi.js.map → PkChatbotStepToolDetail-C4-K6Glw.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-CrqjWpv0.js +190 -0
- package/dist-vue/_chunks/PkChatbotSteps-CrqjWpv0.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-DT-rAU_r.js → PkChatbotViewChat-BMQtx1Gi.js} +9 -9
- package/dist-vue/_chunks/{PkChatbotViewChat-DT-rAU_r.js.map → PkChatbotViewChat-BMQtx1Gi.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-DIaZEedG.js → PkStreamingMarkdown-D0IOaETI.js} +362 -359
- package/dist-vue/_chunks/PkStreamingMarkdown-D0IOaETI.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-BCCUucVQ.js → PkToolShowArtifact-DHdJuzDi.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BCCUucVQ.js.map → PkToolShowArtifact-DHdJuzDi.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BXGxWSc2.js → PkToolShowContactForm-BB2X4UdQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BXGxWSc2.js.map → PkToolShowContactForm-BB2X4UdQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CZgrWvBr.js → PkToolShowDiagram-BH6ihikd.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CZgrWvBr.js.map → PkToolShowDiagram-BH6ihikd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowEmail-DpC517Vn.js → PkToolShowEmail-DF__nKpR.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-DpC517Vn.js.map → PkToolShowEmail-DF__nKpR.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CIZpfAGK.js → PkToolShowForm-DUKIyj9V.js} +5 -5
- package/dist-vue/_chunks/{PkToolShowForm-CIZpfAGK.js.map → PkToolShowForm-DUKIyj9V.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowMessage-B7flxVCU.js → PkToolShowMessage-Ck6VP-gw.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-B7flxVCU.js.map → PkToolShowMessage-Ck6VP-gw.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-B6fRtIpx.js → PkToolShowProductList-zfM8cx-l.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-B6fRtIpx.js.map → PkToolShowProductList-zfM8cx-l.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DDZokZow.js → PkToolShowSources-Dlaz2Y77.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-DDZokZow.js.map → PkToolShowSources-Dlaz2Y77.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DY48ee6V.js → PkToolShowWebPages-CosBYLrE.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DY48ee6V.js.map → PkToolShowWebPages-CosBYLrE.js.map} +1 -1
- package/dist-vue/_chunks/{PkUrl-DSGxrEM7.js → PkUrl-B5CNTQj9.js} +2 -2
- package/dist-vue/_chunks/{PkUrl-DSGxrEM7.js.map → PkUrl-B5CNTQj9.js.map} +1 -1
- package/dist-vue/_chunks/{utils-Coqik0XI.js → utils-C1666_6C.js} +58 -43
- package/dist-vue/_chunks/utils-C1666_6C.js.map +1 -0
- package/dist-vue/composables.js +1 -1
- package/dist-vue/index.js +38 -38
- package/dist-vue/packages/components/src/chat/PkStreamingMarkdown.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/PkStreamingMarkdownAutoscroll.d.ts +1 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +16 -0
- package/package.json +1 -1
- package/dist/_chunks/PkStreamingMarkdown-DgBS4Ebc.js.map +0 -1
- package/dist/_chunks/utils-YJ0ZOLDG.js +0 -185
- package/dist/_chunks/utils-YJ0ZOLDG.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-CGALOKwe.js +0 -771
- package/dist-vue/_chunks/PkChatbotMessages-CGALOKwe.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotSteps-BhFupvbz.js +0 -180
- package/dist-vue/_chunks/PkChatbotSteps-BhFupvbz.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-DIaZEedG.js.map +0 -1
- package/dist-vue/_chunks/utils-Coqik0XI.js.map +0 -1
package/dist-vue/PkChatbot.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/PkChatbot-
|
|
1
|
+
import { t as e } from "./_chunks/PkChatbot-DE1bKmDi.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
import { t as e } from "./_chunks/PkChatbotEmptyState-BtzBYOHJ.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/PkChatbotInput-
|
|
1
|
+
import { t as e } from "./_chunks/PkChatbotInput-MSpF6SB6.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
import { t as e } from "./_chunks/PkChatbotMessages-B6ONEJnZ.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
import { t as e } from "./_chunks/PkChatbotStepPayload-XW4gT9AZ.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
import { t as e } from "./_chunks/PkChatbotStepToolDetail-C4-K6Glw.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
import { t as e } from "./_chunks/PkChatbotSteps-CrqjWpv0.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
import { t as e } from "./_chunks/PkChatbotViewChat-BMQtx1Gi.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e, t } from "./PkStreamingMarkdown-
|
|
1
|
+
import { n as e, t } from "./PkStreamingMarkdown-D0IOaETI.js";
|
|
2
2
|
import { n } from "./useChatbotStore-BzfqjiYz.js";
|
|
3
3
|
import { t as ee } from "./PkChatbotViewConversations-3LaZPFyw.js";
|
|
4
|
-
import { t as te } from "./PkChatbotViewChat-
|
|
4
|
+
import { t as te } from "./PkChatbotViewChat-BMQtx1Gi.js";
|
|
5
5
|
import { t as ne } from "./PkChatbotViewFiles-CTqnbsCj.js";
|
|
6
6
|
import { t as r } from "./useLocalizedString-PfaKjIQY.js";
|
|
7
|
+
import { x as i } from "./utils-C1666_6C.js";
|
|
7
8
|
import { t as re } from "./PkAvatar-paEJByEA.js";
|
|
8
|
-
import { y as i } from "./utils-Coqik0XI.js";
|
|
9
9
|
import { t as a } from "./chatbotProfileContext-CgnFhNPn.js";
|
|
10
10
|
import { t as ie } from "./PkChatbotViewProfile-B-Mp1jGQ.js";
|
|
11
11
|
import { VvAlert as ae, VvButton as oe, VvButtonGroup as se, VvDropdown as ce, VvDropdownAction as le, VvIcon as ue } from "@volverjs/ui-vue/components";
|
|
@@ -61,9 +61,9 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
|
|
|
61
61
|
setup(h, { expose: v, emit: k }) {
|
|
62
62
|
let A = me(), { t: j } = _e({ useScope: "global" }), M = h, N = k, P = pe(h, "chatId"), F = n(M.agentId);
|
|
63
63
|
e((e) => F.apiClient.resolveShortUrls(e));
|
|
64
|
-
let { messages: I, chat: ke, localChatId: L, activeView: R, chatError: Ae, isDark: je } = ye(F),
|
|
65
|
-
D(
|
|
66
|
-
e && R.value === "auth" &&
|
|
64
|
+
let { messages: I, chat: ke, localChatId: L, activeView: R, chatError: Ae, isDark: je } = ye(F), z = fe(F, "agentId"), { startNewChat: B, stopGeneration: V, regenerate: Me, navigate: H, sendMessage: Ne } = F, U = _(a, void 0), W = s(() => U?.canManageProfile.value ?? !1), G = s(() => !W.value && (U?.canSignIn?.value ?? !1) && A["view-auth"] !== void 0);
|
|
65
|
+
D(W, (e) => {
|
|
66
|
+
e && R.value === "auth" && H("chat");
|
|
67
67
|
}), ge(() => {
|
|
68
68
|
F.baseUrl = M.baseUrl, F.basePath = M.basePath, F.name = M.name, F.agentType = M.agentType, F.userId = M.userId, F.agentInterface = M.agentInterface, F.agentModel = M.agentModel, F.agentTools = M.agentTools, F.headers = M.headers, F.revisedAnswers = M.revisedAnswers, F.model = M.model, F.actionsInput = M.actions, F.agentFileUpload = M.agentFileUpload, F.agentVoice = M.voice, F.fallbackModels = M.fallbackModels, F.gatewayOptions = M.gatewayOptions, F.externalContext = M.externalContext, F.systemTheme = M.systemTheme, F.hideWelcomeMessage = M.modifier === "fullscreen";
|
|
69
69
|
}), D(() => P.value, (e) => {
|
|
@@ -76,16 +76,16 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
|
|
|
76
76
|
N("error", t);
|
|
77
77
|
} catch {}
|
|
78
78
|
});
|
|
79
|
-
let
|
|
79
|
+
let Pe = s(() => M.modifier === "fullscreen"), K = s(() => M.modifier === "panel"), Fe = he("chatbotEl"), { width: q } = ve(Fe), Ie = s(() => q.value > 0 && q.value < 576), Le = s(() => q.value > 0 && q.value < 640), Re = s(() => q.value >= 848), J = s(() => M.agentType === "reasoning"), Y = s(() => M.agentInterface?.useColorsForAgentHeader), ze = s(() => !K.value || W.value || G.value || !!M.userFilesEnabled && !!L.value), Be = s(() => ["theme", `theme--${je.value ? "dark" : "light"}`]), X = s(() => M.agentInterface?.mainColor), Z = s(() => i(M.agentInterface?.textColor, X.value)), Ve = r(() => M.agentInterface?.footerMessage), Q = s(() => R.value === "conversations" ? j("label.conversations") : R.value === "profile" ? j("label.profile") : R.value === "auth" ? j("label.authentication") : R.value === "files" ? j("userFiles.chatFilesTitle") : M.name), $ = s(() => ke.value.status === "ready"), He = s(() => I.value?.[I.value.length - 1]);
|
|
80
80
|
return v({
|
|
81
|
-
startNewChat:
|
|
82
|
-
regenerate:
|
|
83
|
-
stopGeneration:
|
|
84
|
-
sendMessage:
|
|
85
|
-
}), D([
|
|
81
|
+
startNewChat: B,
|
|
82
|
+
regenerate: Me,
|
|
83
|
+
stopGeneration: V,
|
|
84
|
+
sendMessage: Ne
|
|
85
|
+
}), D([z, L], async ([e, t]) => {
|
|
86
86
|
await F.initialize(e, t);
|
|
87
87
|
}, { immediate: !0 }), D(R, (e) => {
|
|
88
|
-
e === "conversations" ? F.loadConversations(
|
|
88
|
+
e === "conversations" ? F.loadConversations(z.value) : e === "files" && F.loadChatFiles();
|
|
89
89
|
}), D(He, (e) => {
|
|
90
90
|
e && N("message-update", e);
|
|
91
91
|
}, {
|
|
@@ -95,19 +95,19 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
|
|
|
95
95
|
let r = oe, i = ue, a = le, s = ce, _ = se, v = ae;
|
|
96
96
|
return S(), u("div", {
|
|
97
97
|
ref_key: "chatbotEl",
|
|
98
|
-
ref:
|
|
99
|
-
class: de(["pk-chatbot", [
|
|
100
|
-
"pk-chatbot--fullscreen":
|
|
98
|
+
ref: Fe,
|
|
99
|
+
class: de(["pk-chatbot", [Be.value, {
|
|
100
|
+
"pk-chatbot--fullscreen": Pe.value,
|
|
101
101
|
"pk-chatbot--panel": K.value,
|
|
102
|
-
"pk-chatbot--phone":
|
|
103
|
-
"pk-chatbot--tight":
|
|
104
|
-
"pk-chatbot--wide":
|
|
102
|
+
"pk-chatbot--phone": Ie.value,
|
|
103
|
+
"pk-chatbot--tight": Le.value,
|
|
104
|
+
"pk-chatbot--wide": Re.value
|
|
105
105
|
}]])
|
|
106
106
|
}, [
|
|
107
|
-
|
|
107
|
+
Pe.value ? l("", !0) : (S(), u("div", {
|
|
108
108
|
key: 0,
|
|
109
109
|
class: "pk-chatbot__header",
|
|
110
|
-
style: x(
|
|
110
|
+
style: x(Y.value ? { backgroundColor: X.value } : void 0)
|
|
111
111
|
}, [d("div", be, [E(R) === "chat" ? K.value ? l("", !0) : (S(), c(re, {
|
|
112
112
|
key: 1,
|
|
113
113
|
modifiers: "surface ring shrink-0",
|
|
@@ -115,52 +115,52 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
|
|
|
115
115
|
name: h.name,
|
|
116
116
|
"img-src": h.agentInterface?.logo
|
|
117
117
|
}, null, 8, ["name", "img-src"])) : (S(), u(o, { key: 0 }, [m(r, y({
|
|
118
|
-
modifiers:
|
|
118
|
+
modifiers: Y.value ? `action-quiet-${Z.value}` : "action-quiet",
|
|
119
119
|
icon: "ri:arrow-left-s-line",
|
|
120
120
|
title: E(j)("action.goBack")
|
|
121
|
-
}, { onClick: n[0] ||= (e) => E(
|
|
121
|
+
}, { onClick: n[0] ||= (e) => E(H)("chat") }), null, 16), m(i, {
|
|
122
122
|
name: E(R) === "conversations" ? "ri:history-line" : E(R) === "files" ? "ri:attachment-2" : "ri:user-line",
|
|
123
123
|
class: "pk-chatbot__nav-icon",
|
|
124
|
-
style: x(
|
|
124
|
+
style: x(Y.value ? { color: Z.value } : void 0)
|
|
125
125
|
}, null, 8, ["name", "style"])], 64)), d("strong", {
|
|
126
126
|
class: "pk-chatbot__title",
|
|
127
|
-
title:
|
|
128
|
-
style: x(
|
|
129
|
-
}, T(
|
|
127
|
+
title: Q.value,
|
|
128
|
+
style: x(Y.value ? { color: Z.value } : void 0)
|
|
129
|
+
}, T(Q.value), 13, xe)]), m(_, {
|
|
130
130
|
class: "pk-chatbot__header-end",
|
|
131
131
|
modifiers: "compact"
|
|
132
132
|
}, {
|
|
133
133
|
default: O(() => [
|
|
134
134
|
w(e.$slots, "header-actions", b(g({
|
|
135
|
-
mainColor:
|
|
136
|
-
useColorsForAgentHeader:
|
|
137
|
-
contrastColor:
|
|
138
|
-
startNewChat: E(
|
|
139
|
-
stopGeneration: E(
|
|
135
|
+
mainColor: X.value,
|
|
136
|
+
useColorsForAgentHeader: Y.value,
|
|
137
|
+
contrastColor: Z.value,
|
|
138
|
+
startNewChat: E(B),
|
|
139
|
+
stopGeneration: E(V)
|
|
140
140
|
}))),
|
|
141
141
|
K.value ? (S(), u(o, { key: 0 }, [m(r, {
|
|
142
|
-
modifiers:
|
|
142
|
+
modifiers: Y.value ? `action-quiet-${Z.value}` : "action-quiet",
|
|
143
143
|
icon: "ri:edit-box-line",
|
|
144
144
|
disabled: !$.value,
|
|
145
145
|
title: E(j)("action.startNewChat"),
|
|
146
|
-
onClick: n[1] ||= (e) => E(
|
|
146
|
+
onClick: n[1] ||= (e) => E(B)()
|
|
147
147
|
}, null, 8, [
|
|
148
148
|
"modifiers",
|
|
149
149
|
"disabled",
|
|
150
150
|
"title"
|
|
151
|
-
]),
|
|
151
|
+
]), J.value ? l("", !0) : (S(), c(r, {
|
|
152
152
|
key: 0,
|
|
153
|
-
modifiers:
|
|
153
|
+
modifiers: Y.value ? `action-quiet-${Z.value}` : "action-quiet",
|
|
154
154
|
icon: "ri:history-line",
|
|
155
155
|
disabled: !$.value,
|
|
156
156
|
title: E(j)("action.viewRecentChats"),
|
|
157
|
-
onClick: n[2] ||= (e) => E(
|
|
157
|
+
onClick: n[2] ||= (e) => E(H)("conversations")
|
|
158
158
|
}, null, 8, [
|
|
159
159
|
"modifiers",
|
|
160
160
|
"disabled",
|
|
161
161
|
"title"
|
|
162
162
|
]))], 64)) : l("", !0),
|
|
163
|
-
|
|
163
|
+
ze.value ? (S(), c(s, b(y({ key: 1 }, {
|
|
164
164
|
placement: "bottom-end",
|
|
165
165
|
modifiers: "menu",
|
|
166
166
|
flip: !0,
|
|
@@ -170,41 +170,41 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
|
|
|
170
170
|
items: O(() => [
|
|
171
171
|
K.value ? l("", !0) : (S(), c(a, {
|
|
172
172
|
key: 0,
|
|
173
|
-
onClick: n[3] ||= (e) => E(
|
|
173
|
+
onClick: n[3] ||= (e) => E(B)()
|
|
174
174
|
}, {
|
|
175
175
|
default: O(() => [m(i, { name: "ri:edit-box-line" }), p(" " + T(E(j)("action.startNewChat")), 1)]),
|
|
176
176
|
_: 1
|
|
177
177
|
})),
|
|
178
|
-
!
|
|
178
|
+
!J.value && !K.value ? (S(), c(a, {
|
|
179
179
|
key: 1,
|
|
180
|
-
onClick: n[4] ||= (e) => E(
|
|
180
|
+
onClick: n[4] ||= (e) => E(H)("conversations")
|
|
181
181
|
}, {
|
|
182
182
|
default: O(() => [m(i, { name: "ri:history-line" }), p(" " + T(E(j)("action.viewRecentChats")), 1)]),
|
|
183
183
|
_: 1
|
|
184
184
|
})) : l("", !0),
|
|
185
|
-
(
|
|
185
|
+
(W.value || h.userFilesEnabled) && E(L) ? (S(), c(a, {
|
|
186
186
|
key: 2,
|
|
187
|
-
onClick: n[5] ||= (e) => E(
|
|
187
|
+
onClick: n[5] ||= (e) => E(H)("files")
|
|
188
188
|
}, {
|
|
189
189
|
default: O(() => [m(i, { name: "ri:attachment-2" }), p(" " + T(E(j)("userFiles.chatFilesTitle")), 1)]),
|
|
190
190
|
_: 1
|
|
191
191
|
})) : l("", !0),
|
|
192
|
-
|
|
192
|
+
W.value ? (S(), c(a, {
|
|
193
193
|
key: 3,
|
|
194
|
-
onClick: n[6] ||= (e) => E(
|
|
194
|
+
onClick: n[6] ||= (e) => E(H)("profile")
|
|
195
195
|
}, {
|
|
196
196
|
default: O(() => [m(i, { name: "ri:user-line" }), p(" " + T(E(j)("label.profile")), 1)]),
|
|
197
197
|
_: 1
|
|
198
|
-
})) :
|
|
198
|
+
})) : G.value ? (S(), c(a, {
|
|
199
199
|
key: 4,
|
|
200
|
-
onClick: n[7] ||= (e) => E(
|
|
200
|
+
onClick: n[7] ||= (e) => E(H)("auth")
|
|
201
201
|
}, {
|
|
202
202
|
default: O(() => [m(i, { name: "ri:account-circle-line" }), p(" " + T(E(j)("action.signIn")), 1)]),
|
|
203
203
|
_: 1
|
|
204
204
|
})) : l("", !0)
|
|
205
205
|
]),
|
|
206
206
|
default: O(() => [m(r, b(g({
|
|
207
|
-
modifiers:
|
|
207
|
+
modifiers: Y.value ? `action-quiet-${Z.value}` : "action-quiet",
|
|
208
208
|
icon: "ri:more-2-fill",
|
|
209
209
|
disabled: !$.value,
|
|
210
210
|
title: E(j)("action.moreActions")
|
|
@@ -212,16 +212,16 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
|
|
|
212
212
|
_: 1
|
|
213
213
|
}, 16)) : l("", !0),
|
|
214
214
|
w(e.$slots, "actions", b(g({
|
|
215
|
-
mainColor:
|
|
216
|
-
useColorsForAgentHeader:
|
|
217
|
-
contrastColor:
|
|
218
|
-
startNewChat: E(
|
|
219
|
-
stopGeneration: E(
|
|
215
|
+
mainColor: X.value,
|
|
216
|
+
useColorsForAgentHeader: Y.value,
|
|
217
|
+
contrastColor: Z.value,
|
|
218
|
+
startNewChat: E(B),
|
|
219
|
+
stopGeneration: E(V)
|
|
220
220
|
})))
|
|
221
221
|
]),
|
|
222
222
|
_: 3
|
|
223
223
|
})], 4)),
|
|
224
|
-
|
|
224
|
+
J.value ? (S(), u("div", Se, [d("div", Ce, [m(v, { modifiers: "callout" }, {
|
|
225
225
|
default: O(() => [d("div", we, [m(i, {
|
|
226
226
|
name: "ri:alert-line",
|
|
227
227
|
class: "pk-chatbot__warning-icon"
|
|
@@ -258,8 +258,8 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
|
|
|
258
258
|
name: t,
|
|
259
259
|
fn: O((n) => [w(e.$slots, t, b(g(n)))])
|
|
260
260
|
}))]), 1032, ["agent-id"])),
|
|
261
|
-
E(
|
|
262
|
-
markdown: E(
|
|
261
|
+
E(Ve) ? (S(), u("div", Oe, [m(t, {
|
|
262
|
+
markdown: E(Ve),
|
|
263
263
|
class: "wysiwyg"
|
|
264
264
|
}, null, 8, ["markdown"])])) : l("", !0)
|
|
265
265
|
], 2);
|
|
@@ -269,4 +269,4 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
|
|
|
269
269
|
//#endregion
|
|
270
270
|
export { k as t };
|
|
271
271
|
|
|
272
|
-
//# sourceMappingURL=PkChatbot-
|
|
272
|
+
//# sourceMappingURL=PkChatbot-DE1bKmDi.js.map
|