@8wave/ai-elements 0.125.0-beta.4 → 0.125.0-beta.5
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-BBWFD4nI.js → Agent-DZhK49jg.js} +99 -96
- package/dist/_chunks/Agent-DZhK49jg.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-BwHe4-m1.js → PkFilePreview-C3R3jrNi.js} +31 -31
- package/dist/_chunks/{PkFilePreview-BwHe4-m1.js.map → PkFilePreview-C3R3jrNi.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js → PkFilePreviewDialog-BAKFOnPI.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js.map → PkFilePreviewDialog-BAKFOnPI.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js → PkStreamingMarkdown-BM-DSTPr.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js.map → PkStreamingMarkdown-BM-DSTPr.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js → PkToolChatFile-DbeOmRPh.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js.map → PkToolChatFile-DbeOmRPh.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js → PkToolRequestGeolocation-CCz4REP9.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js.map → PkToolRequestGeolocation-CCz4REP9.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js → PkToolRequestOAuthConnection-BU-4Sm3z.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js.map → PkToolRequestOAuthConnection-BU-4Sm3z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js → PkToolShowArtifact-utxGuLLt.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js.map → PkToolShowArtifact-utxGuLLt.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js → PkToolShowContactForm-DTtE93D3.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js.map → PkToolShowContactForm-DTtE93D3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js → PkToolShowForm-I4pKopEI.js} +6 -6
- package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js.map → PkToolShowForm-I4pKopEI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js → PkToolShowImageGallery-skV87BlD.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js.map → PkToolShowImageGallery-skV87BlD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js → PkToolShowProductList-CcdOQoxf.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js.map → PkToolShowProductList-CcdOQoxf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js → PkToolShowSources-DLmVS3bL.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js.map → PkToolShowSources-DLmVS3bL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js → PkToolShowSuggestedReply-Cv-WVCFN.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js.map → PkToolShowSuggestedReply-Cv-WVCFN.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js → PkToolShowVideo-D_K95gTR.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js.map → PkToolShowVideo-D_K95gTR.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js → PkToolShowWebPages-DsfMacw-.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js.map → PkToolShowWebPages-DsfMacw-.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js → chatImagePolicy-BfgdFbm_.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js.map → chatImagePolicy-BfgdFbm_.js.map} +1 -1
- package/dist/_chunks/{markdown-DDYeZICP.js → markdown-CrMYpY8l.js} +10 -10
- package/dist/_chunks/{markdown-DDYeZICP.js.map → markdown-CrMYpY8l.js.map} +1 -1
- package/dist/_chunks/{utils-euH8esYP.js → utils-CbhqxYyx.js} +57 -57
- package/dist/_chunks/utils-CbhqxYyx.js.map +1 -0
- package/dist/ai-elements.es.js +3812 -3717
- 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-DQl-tv4S.js → Agent-BtXBSGy6.js} +34 -31
- package/dist-vue/_chunks/Agent-BtXBSGy6.js.map +1 -0
- package/dist-vue/_chunks/{Document-DXDifFZE.js → Document-DERAWuR0.js} +10 -10
- package/dist-vue/_chunks/{Document-DXDifFZE.js.map → Document-DERAWuR0.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbot-Qrk8yEM0.js +294 -0
- package/dist-vue/_chunks/PkChatbot-Qrk8yEM0.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js → PkChatbotEmptyState-C9aUiynZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js.map → PkChatbotEmptyState-C9aUiynZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-BK7f1jFE.js → PkChatbotInput-Bs8nn-Jz.js} +154 -135
- package/dist-vue/_chunks/PkChatbotInput-Bs8nn-Jz.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotMessages-DAwGWRtd.js +1039 -0
- package/dist-vue/_chunks/PkChatbotMessages-DAwGWRtd.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js → PkChatbotStepPayload-C45aVagz.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js.map → PkChatbotStepPayload-C45aVagz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js → PkChatbotStepToolDetail-B0tC33x6.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js.map → PkChatbotStepToolDetail-B0tC33x6.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js +215 -0
- package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-D8depeWQ.js → PkChatbotViewChat-CMFc4eLD.js} +450 -446
- package/dist-vue/_chunks/PkChatbotViewChat-CMFc4eLD.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js → PkChatbotViewConversations-CtxE_a1O.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js.map → PkChatbotViewConversations-CtxE_a1O.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js → PkChatbotViewFiles-B51zU374.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js.map → PkChatbotViewFiles-B51zU374.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js → PkChatbotViewProfile-BSKRU7Ae.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js.map → PkChatbotViewProfile-BSKRU7Ae.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js → PkFilePreview-p-AGDrXi.js} +30 -30
- package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js.map → PkFilePreview-p-AGDrXi.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js → PkFilePreviewDialog-BpeeWS6d.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js.map → PkFilePreviewDialog-BpeeWS6d.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js → PkStreamingMarkdown-DlcTV5je.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js.map → PkStreamingMarkdown-DlcTV5je.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js → PkToolChatFile-HWGjtuaT.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js.map → PkToolChatFile-HWGjtuaT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js → PkToolRequestGeolocation-euI4VBVe.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js.map → PkToolRequestGeolocation-euI4VBVe.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js → PkToolRequestOAuthConnection-DAAYyufP.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js.map → PkToolRequestOAuthConnection-DAAYyufP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js → PkToolShowArtifact-C8OIF_sy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js.map → PkToolShowArtifact-C8OIF_sy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js → PkToolShowContactForm-K6Z5MUXk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js.map → PkToolShowContactForm-K6Z5MUXk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js → PkToolShowDiagram-DrlGh_v6.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js.map → PkToolShowDiagram-DrlGh_v6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js → PkToolShowForm-DzsXJfOl.js} +6 -6
- package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js.map → PkToolShowForm-DzsXJfOl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js → PkToolShowImageGallery-sCyrPOIT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js.map → PkToolShowImageGallery-sCyrPOIT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js → PkToolShowProductList-DPDDeVu4.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js.map → PkToolShowProductList-DPDDeVu4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js → PkToolShowSources-D4zjssdh.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js.map → PkToolShowSources-D4zjssdh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js → PkToolShowSuggestedReply-smfC1hlT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js.map → PkToolShowSuggestedReply-smfC1hlT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js → PkToolShowVideo-C77DAqoZ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js.map → PkToolShowVideo-C77DAqoZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js → PkToolShowWebPages-D_tqGI6o.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js.map → PkToolShowWebPages-D_tqGI6o.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Bukf58dz.js → createChatbotApiClient-CO6l0P79.js} +87 -85
- package/dist-vue/_chunks/createChatbotApiClient-CO6l0P79.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-DcvdWkgq.js → useChatbotStore-CY1gAHOh.js} +1224 -1201
- package/dist-vue/_chunks/useChatbotStore-CY1gAHOh.js.map +1 -0
- package/dist-vue/_chunks/{utils-B0PnU1Rk.js → utils-CX4JuhXz.js} +66 -66
- package/dist-vue/_chunks/utils-CX4JuhXz.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
- package/dist-vue/composables.js +16 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3394 -3359
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +16 -0
- package/dist-vue/packages/components/src/chat/PkAgentPageAccessSettings.d.ts +5 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +10 -8
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +11 -3
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +2 -2
- package/dist-vue/packages/components/src/chat/PkFieldChanges.d.ts +15 -0
- package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +1 -2
- package/dist-vue/packages/components/src/chat/utils.d.ts +18 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
- package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +10 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +31 -4
- package/dist-vue/packages/models/src/schema/Agent.d.ts +41 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +9 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-BBWFD4nI.js.map +0 -1
- package/dist/_chunks/utils-euH8esYP.js.map +0 -1
- package/dist-vue/_chunks/Agent-DQl-tv4S.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js +0 -286
- package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-BK7f1jFE.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js +0 -1041
- package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js +0 -189
- package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-D8depeWQ.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-Bukf58dz.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-DcvdWkgq.js.map +0 -1
- package/dist-vue/_chunks/utils-B0PnU1Rk.js.map +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { s as e } from "./Media-DylqhvaF.js";
|
|
2
2
|
import { t } from "./VvButtonLocalized-C-vx25u4.js";
|
|
3
|
-
import { t as n } from "./PkStreamingMarkdown-
|
|
3
|
+
import { t as n } from "./PkStreamingMarkdown-DlcTV5je.js";
|
|
4
4
|
import { t as r } from "./PkChatbotFilePreview-KxVpL0UT.js";
|
|
5
5
|
import { VvDropdown as i, VvDropdownAction as a, VvIcon as o } from "@volverjs/ui-vue/components";
|
|
6
|
-
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as ee, onBeforeUnmount as b, onMounted as x, openBlock as S, ref as C, renderList as
|
|
7
|
-
import { useResizeObserver as
|
|
6
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as ee, onBeforeUnmount as b, onMounted as x, openBlock as S, ref as C, renderList as w, renderSlot as te, toDisplayString as T, unref as E, useId as ne, useModel as D, useTemplateRef as O, watch as k, withCtx as A, withKeys as re, withModifiers as ie } from "vue";
|
|
7
|
+
import { useResizeObserver as ae } from "@vueuse/core";
|
|
8
8
|
// ../../node_modules/.pnpm/autosize@6.0.1/node_modules/autosize/dist/autosize.esm.js
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
var t =
|
|
9
|
+
var j = /* @__PURE__ */ new Map();
|
|
10
|
+
function M(e) {
|
|
11
|
+
var t = j.get(e);
|
|
12
12
|
t && t.destroy();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
var t =
|
|
14
|
+
function N(e) {
|
|
15
|
+
var t = j.get(e);
|
|
16
16
|
t && t.update();
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
typeof window > "u" ? ((
|
|
18
|
+
var P = null;
|
|
19
|
+
typeof window > "u" ? ((P = function(e) {
|
|
20
20
|
return e;
|
|
21
21
|
}).destroy = function(e) {
|
|
22
22
|
return e;
|
|
23
|
-
},
|
|
23
|
+
}, P.update = function(e) {
|
|
24
24
|
return e;
|
|
25
|
-
}) : ((
|
|
25
|
+
}) : ((P = function(e, t) {
|
|
26
26
|
return e && Array.prototype.forEach.call(e.length ? e : [e], function(e) {
|
|
27
27
|
return function(e) {
|
|
28
|
-
if (e && e.nodeName && e.nodeName === "TEXTAREA" && !
|
|
28
|
+
if (e && e.nodeName && e.nodeName === "TEXTAREA" && !j.has(e)) {
|
|
29
29
|
var t, n = null, r = window.getComputedStyle(e), i = (t = e.value, function() {
|
|
30
30
|
o({
|
|
31
31
|
testForHeightReduction: t === "" || !e.value.startsWith(t),
|
|
@@ -34,7 +34,7 @@ typeof window > "u" ? ((N = function(e) {
|
|
|
34
34
|
}), a = function(t) {
|
|
35
35
|
e.removeEventListener("autosize:destroy", a), e.removeEventListener("autosize:update", s), e.removeEventListener("input", i), window.removeEventListener("resize", s), Object.keys(t).forEach(function(n) {
|
|
36
36
|
return e.style[n] = t[n];
|
|
37
|
-
}),
|
|
37
|
+
}), j.delete(e);
|
|
38
38
|
}.bind(e, {
|
|
39
39
|
height: e.style.height,
|
|
40
40
|
resize: e.style.resize,
|
|
@@ -43,7 +43,7 @@ typeof window > "u" ? ((N = function(e) {
|
|
|
43
43
|
overflowX: e.style.overflowX,
|
|
44
44
|
wordWrap: e.style.wordWrap
|
|
45
45
|
});
|
|
46
|
-
e.addEventListener("autosize:destroy", a), e.addEventListener("autosize:update", s), e.addEventListener("input", i), window.addEventListener("resize", s), e.style.overflowX = "hidden", e.style.wordWrap = "break-word",
|
|
46
|
+
e.addEventListener("autosize:destroy", a), e.addEventListener("autosize:update", s), e.addEventListener("input", i), window.addEventListener("resize", s), e.style.overflowX = "hidden", e.style.wordWrap = "break-word", j.set(e, {
|
|
47
47
|
destroy: a,
|
|
48
48
|
update: s
|
|
49
49
|
}), s();
|
|
@@ -75,14 +75,14 @@ typeof window > "u" ? ((N = function(e) {
|
|
|
75
75
|
}(e);
|
|
76
76
|
}), e;
|
|
77
77
|
}).destroy = function(e) {
|
|
78
|
-
return e && Array.prototype.forEach.call(e.length ? e : [e], j), e;
|
|
79
|
-
}, N.update = function(e) {
|
|
80
78
|
return e && Array.prototype.forEach.call(e.length ? e : [e], M), e;
|
|
79
|
+
}, P.update = function(e) {
|
|
80
|
+
return e && Array.prototype.forEach.call(e.length ? e : [e], N), e;
|
|
81
81
|
});
|
|
82
|
-
var
|
|
82
|
+
var F = P, I = ["type"], L = {
|
|
83
83
|
key: 0,
|
|
84
84
|
class: "pk-chat-button__label"
|
|
85
|
-
},
|
|
85
|
+
}, R = /* @__PURE__ */ h({
|
|
86
86
|
__name: "PkChatButton",
|
|
87
87
|
props: {
|
|
88
88
|
icon: {},
|
|
@@ -99,21 +99,21 @@ var P = N, F = ["type"], I = {
|
|
|
99
99
|
}, [m(r, {
|
|
100
100
|
name: e.icon,
|
|
101
101
|
class: "pk-chat-button__icon"
|
|
102
|
-
}, null, 8, ["name"]), e.label ? (S(), d("span",
|
|
102
|
+
}, null, 8, ["name"]), e.label ? (S(), d("span", L, T(e.label), 1)) : u("", !0)], 10, I);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
105
|
+
}), oe = { class: "pk-chatbot-input" }, se = {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: "pk-chatbot-input__notice",
|
|
108
108
|
role: "status"
|
|
109
|
-
},
|
|
109
|
+
}, ce = {
|
|
110
110
|
key: 2,
|
|
111
111
|
class: "pk-chatbot-input__notice-text"
|
|
112
|
-
}, ue = {
|
|
113
|
-
key:
|
|
112
|
+
}, le = ["title"], ue = {
|
|
113
|
+
key: 1,
|
|
114
114
|
class: "pk-chatbot-input__pointer"
|
|
115
115
|
}, de = { class: "pk-chatbot-input__pointer-label" }, fe = {
|
|
116
|
-
key:
|
|
116
|
+
key: 2,
|
|
117
117
|
class: "pk-chatbot-input__attachments"
|
|
118
118
|
}, pe = { class: "pk-chatbot-input__fieldset" }, me = [
|
|
119
119
|
"title",
|
|
@@ -125,7 +125,7 @@ var P = N, F = ["type"], I = {
|
|
|
125
125
|
"aria-describedby",
|
|
126
126
|
"aria-invalid",
|
|
127
127
|
"placeholder"
|
|
128
|
-
], ye = ["id"], be = { class: "opacity-60" },
|
|
128
|
+
], ye = ["id"], be = { class: "opacity-60" }, z = /* @__PURE__ */ h({
|
|
129
129
|
__name: "PkChatbotInput",
|
|
130
130
|
props: /*@__PURE__*/ g({
|
|
131
131
|
placeholder: {},
|
|
@@ -141,7 +141,8 @@ var P = N, F = ["type"], I = {
|
|
|
141
141
|
answerNotices: {},
|
|
142
142
|
pointerAvailable: { type: Boolean },
|
|
143
143
|
pointing: { type: Boolean },
|
|
144
|
-
pointer: {}
|
|
144
|
+
pointer: {},
|
|
145
|
+
automaticConfirmations: { type: Boolean }
|
|
145
146
|
}, {
|
|
146
147
|
modelValue: { default: void 0 },
|
|
147
148
|
modelModifiers: {},
|
|
@@ -158,93 +159,94 @@ var P = N, F = ["type"], I = {
|
|
|
158
159
|
"dismiss-answer-notice",
|
|
159
160
|
"voice-start",
|
|
160
161
|
"point",
|
|
161
|
-
"remove-pointer"
|
|
162
|
+
"remove-pointer",
|
|
163
|
+
"manual-confirmations"
|
|
162
164
|
], ["update:modelValue", "update:pendingAttachments"]),
|
|
163
|
-
setup(h, { expose: g, emit:
|
|
164
|
-
let
|
|
165
|
-
|
|
165
|
+
setup(h, { expose: g, emit: j }) {
|
|
166
|
+
let M = D(h, "modelValue"), N = D(h, "pendingAttachments"), P = j, I = h, L = O("textareaEl"), z = O("fileInputEl"), B = O("cameraInputEl"), V = O("formEl"), H = C(M.value ?? ""), U = null, W = () => {
|
|
167
|
+
U !== null && (clearTimeout(U), U = null);
|
|
166
168
|
}, xe = () => {
|
|
167
|
-
|
|
169
|
+
W(), M.value = H.value;
|
|
168
170
|
}, Se = () => {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
W(), U = setTimeout(() => {
|
|
172
|
+
M.value = H.value, U = null;
|
|
171
173
|
}, 300);
|
|
172
174
|
}, Ce = () => {
|
|
173
|
-
|
|
175
|
+
H.value = L.value?.value ?? "", Se();
|
|
174
176
|
};
|
|
175
|
-
|
|
176
|
-
e !==
|
|
177
|
-
|
|
177
|
+
k(M, (e) => {
|
|
178
|
+
e !== H.value && (H.value = e ?? "", v(() => {
|
|
179
|
+
L.value && F.update(L.value);
|
|
178
180
|
}));
|
|
179
181
|
});
|
|
180
|
-
let
|
|
181
|
-
let t =
|
|
182
|
+
let G = c(() => I.status === "streaming"), K = c(() => I.status === "submitted"), q = c(() => G.value || K.value), J = ne(), Y = c(() => H.value.length), X = c(() => I.maxMessageLength !== void 0 && Y.value > I.maxMessageLength), we = c(() => N.value.some((e) => e.state === "uploading")), Z = c(() => q.value && !I.queueEnabled || we.value || X.value ? !1 : H.value.trim().length > 0), Q = c(() => q.value && Z.value), Te = "capture" in document.createElement("input"), Ee = c(() => {
|
|
183
|
+
let t = I.fileUpload?.allowedMimeTypes ?? [];
|
|
182
184
|
return [...t, ...e(t)].join(",");
|
|
183
|
-
}), De = c(() => (
|
|
184
|
-
R.value?.click();
|
|
185
|
-
}, Oe = () => {
|
|
185
|
+
}), De = c(() => (I.fileUpload?.allowedMimeTypes ?? []).filter((e) => e.startsWith("image/")).join(",")), $ = c(() => Te && De.value.length > 0), Oe = () => {
|
|
186
186
|
z.value?.click();
|
|
187
|
-
}, ke = (
|
|
188
|
-
|
|
187
|
+
}, ke = () => {
|
|
188
|
+
B.value?.click();
|
|
189
189
|
}, Ae = (e) => {
|
|
190
|
-
let t
|
|
191
|
-
ke(Array.from(t.files ?? [])), t.value = "";
|
|
190
|
+
for (let t of e) P("file-select", t);
|
|
192
191
|
}, je = (e) => {
|
|
193
|
-
let t =
|
|
194
|
-
|
|
195
|
-
}, Me =
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
192
|
+
let t = e.target;
|
|
193
|
+
Ae(Array.from(t.files ?? [])), t.value = "";
|
|
194
|
+
}, Me = (e) => {
|
|
195
|
+
let t = N.value.find((t) => t.id === e);
|
|
196
|
+
t && URL.revokeObjectURL(t.localUrl), N.value = N.value.filter((t) => t.id !== e);
|
|
197
|
+
}, Ne = C(!0), Pe = () => {
|
|
198
|
+
Ne.value = !1;
|
|
199
|
+
}, Fe = c(() => {
|
|
200
|
+
if (I.attachmentNotice) return [{
|
|
199
201
|
id: "limit",
|
|
200
202
|
icon: "ri:information-line",
|
|
201
|
-
text:
|
|
202
|
-
dismiss: () =>
|
|
203
|
+
text: I.attachmentNotice,
|
|
204
|
+
dismiss: () => P("dismiss-attachment-notice")
|
|
203
205
|
}];
|
|
204
206
|
let e = [];
|
|
205
|
-
for (let t of
|
|
207
|
+
for (let t of I.answerNotices ?? []) e.push({
|
|
206
208
|
id: `answer-${t.id}`,
|
|
207
209
|
icon: "ri:chat-check-line",
|
|
208
210
|
text: t.text,
|
|
209
|
-
open: () =>
|
|
210
|
-
dismiss: () =>
|
|
211
|
+
open: () => P("open-answer-notice", t.id),
|
|
212
|
+
dismiss: () => P("dismiss-answer-notice", t.id)
|
|
211
213
|
});
|
|
212
|
-
return
|
|
214
|
+
return I.pageNotice && e.push({
|
|
213
215
|
id: "page",
|
|
214
216
|
icon: "ri:pages-line",
|
|
215
|
-
text:
|
|
216
|
-
dismiss: () =>
|
|
217
|
-
}),
|
|
217
|
+
text: I.pageNotice,
|
|
218
|
+
dismiss: () => P("dismiss-page-notice")
|
|
219
|
+
}), I.dismissableNotice && Ne.value && e.push({
|
|
218
220
|
id: "dismissable",
|
|
219
|
-
markdown:
|
|
220
|
-
dismiss:
|
|
221
|
+
markdown: I.dismissableNotice,
|
|
222
|
+
dismiss: Pe
|
|
221
223
|
}), e;
|
|
222
|
-
}),
|
|
223
|
-
|
|
224
|
-
}, Ie = () => {
|
|
225
|
-
Fe(), N("stop-generation");
|
|
224
|
+
}), Ie = () => {
|
|
225
|
+
V.value?.querySelector("button:focus-visible") && L.value?.focus();
|
|
226
226
|
}, Le = () => {
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
Ie(), P("stop-generation");
|
|
228
|
+
}, Re = () => {
|
|
229
|
+
Z.value && (Ie(), xe(), P("submit"), H.value = "", M.value = "", v(() => {
|
|
230
|
+
L.value && (L.value.value = "", F.update(L.value));
|
|
229
231
|
}));
|
|
230
|
-
},
|
|
231
|
-
e.shiftKey || e.isComposing || e.keyCode === 229 || (e.preventDefault(),
|
|
232
|
+
}, ze = (e) => {
|
|
233
|
+
e.shiftKey || e.isComposing || e.keyCode === 229 || (e.preventDefault(), Re());
|
|
232
234
|
};
|
|
233
235
|
x(() => {
|
|
234
|
-
|
|
236
|
+
L.value && F(L.value);
|
|
235
237
|
});
|
|
236
|
-
let
|
|
237
|
-
return
|
|
238
|
+
let Be = 0;
|
|
239
|
+
return ae(L, ([e]) => {
|
|
238
240
|
let t = e?.contentRect.width ?? 0;
|
|
239
|
-
|
|
240
|
-
}),
|
|
241
|
-
await v(),
|
|
241
|
+
L.value && t !== Be && (Be = t, F.update(L.value));
|
|
242
|
+
}), k(() => I.placeholder, async () => {
|
|
243
|
+
await v(), L.value && F.update(L.value);
|
|
242
244
|
}), b(() => {
|
|
243
|
-
|
|
244
|
-
for (let e of
|
|
245
|
-
}), g({ focus: () =>
|
|
245
|
+
W(), L.value && F.destroy(L.value);
|
|
246
|
+
for (let e of N.value) URL.revokeObjectURL(e.localUrl);
|
|
247
|
+
}), g({ focus: () => L.value?.focus() }), (e, c) => {
|
|
246
248
|
let g = o, v = t, b = a, x = i;
|
|
247
|
-
return S(), d("div",
|
|
249
|
+
return S(), d("div", oe, [Fe.value.length ? (S(), d("div", se, [(S(!0), d(s, null, w(Fe.value, (t) => (S(), d("div", {
|
|
248
250
|
key: t.id,
|
|
249
251
|
class: "pk-chatbot-input__notice-item"
|
|
250
252
|
}, [
|
|
@@ -257,7 +259,7 @@ var P = N, F = ["type"], I = {
|
|
|
257
259
|
key: 1,
|
|
258
260
|
markdown: t.markdown,
|
|
259
261
|
class: "wysiwyg pk-chatbot-input__notice-text"
|
|
260
|
-
}, null, 8, ["markdown"])) : (S(), d("span",
|
|
262
|
+
}, null, 8, ["markdown"])) : (S(), d("span", ce, T(t.text), 1)),
|
|
261
263
|
t.open ? (S(), l(v, {
|
|
262
264
|
key: 3,
|
|
263
265
|
label: e.$t("action.open"),
|
|
@@ -275,25 +277,42 @@ var P = N, F = ["type"], I = {
|
|
|
275
277
|
}, null, 8, ["title", "onClick"])) : u("", !0)
|
|
276
278
|
]))), 128))])) : u("", !0), f("form", {
|
|
277
279
|
ref_key: "formEl",
|
|
278
|
-
ref:
|
|
280
|
+
ref: V,
|
|
279
281
|
class: "pk-chatbot-input__form",
|
|
280
|
-
onSubmit:
|
|
282
|
+
onSubmit: ie(Re, ["prevent"])
|
|
281
283
|
}, [
|
|
284
|
+
h.automaticConfirmations ? (S(), d("button", {
|
|
285
|
+
key: 0,
|
|
286
|
+
type: "button",
|
|
287
|
+
class: "pk-chatbot-input__mode",
|
|
288
|
+
title: e.$t("action.manualConfirmations"),
|
|
289
|
+
onClick: c[0] ||= (e) => P("manual-confirmations")
|
|
290
|
+
}, [
|
|
291
|
+
m(g, {
|
|
292
|
+
name: "ri:flashlight-line",
|
|
293
|
+
class: "pk-chatbot-input__pointer-icon"
|
|
294
|
+
}),
|
|
295
|
+
p(" " + T(e.$t("label.automaticConfirmations")) + " ", 1),
|
|
296
|
+
m(g, {
|
|
297
|
+
name: "ri:close-line",
|
|
298
|
+
class: "pk-chatbot-input__pointer-icon"
|
|
299
|
+
})
|
|
300
|
+
], 8, le)) : u("", !0),
|
|
282
301
|
h.pointer ? (S(), d("div", ue, [
|
|
283
302
|
m(g, {
|
|
284
303
|
name: h.pointer.kind === "text" ? "ri:double-quotes-l" : "ri:focus-3-line",
|
|
285
304
|
class: "pk-chatbot-input__pointer-icon"
|
|
286
305
|
}, null, 8, ["name"]),
|
|
287
|
-
f("span", de,
|
|
306
|
+
f("span", de, T(h.pointer.kind === "text" ? `«${h.pointer.label}»` : h.pointer.label), 1),
|
|
288
307
|
m(v, {
|
|
289
308
|
title: e.$t("pagePointer.remove"),
|
|
290
309
|
modifiers: "action-quiet",
|
|
291
310
|
icon: "ri:close-line",
|
|
292
311
|
class: "w-18 h-18",
|
|
293
|
-
onClick: c[
|
|
312
|
+
onClick: c[1] ||= (e) => P("remove-pointer")
|
|
294
313
|
}, null, 8, ["title"])
|
|
295
314
|
])) : u("", !0),
|
|
296
|
-
|
|
315
|
+
N.value.length ? (S(), d("div", fe, [(S(!0), d(s, null, w(N.value, (e) => (S(), l(r, {
|
|
297
316
|
key: e.id,
|
|
298
317
|
"media-type": e.mediaSource?.mimeType ?? e.file.type,
|
|
299
318
|
url: e.localUrl,
|
|
@@ -303,7 +322,7 @@ var P = N, F = ["type"], I = {
|
|
|
303
322
|
error: e.state === "error" ? e.error : void 0,
|
|
304
323
|
removable: e.state !== "uploading",
|
|
305
324
|
compact: "",
|
|
306
|
-
onRemove: (t) =>
|
|
325
|
+
onRemove: (t) => Me(e.id)
|
|
307
326
|
}, null, 8, [
|
|
308
327
|
"media-type",
|
|
309
328
|
"url",
|
|
@@ -315,82 +334,82 @@ var P = N, F = ["type"], I = {
|
|
|
315
334
|
"onRemove"
|
|
316
335
|
]))), 128))])) : u("", !0),
|
|
317
336
|
f("div", pe, [
|
|
318
|
-
|
|
319
|
-
h.fileUpload && h.fileUpload.enabled && (
|
|
337
|
+
te(e.$slots, "prepend"),
|
|
338
|
+
h.fileUpload && h.fileUpload.enabled && ($.value || e.$slots["additional-actions"]) ? (S(), l(x, ee(_({ key: 0 }, {
|
|
320
339
|
placement: "top-start",
|
|
321
340
|
modifiers: "menu",
|
|
322
341
|
flip: !0,
|
|
323
342
|
offset: 3
|
|
324
343
|
})), {
|
|
325
|
-
default:
|
|
344
|
+
default: A(({ init: t, toggle: n, aria: r }) => [f("button", _({ ref: (e) => t(e) }, r, {
|
|
326
345
|
class: "pk-chat-button",
|
|
327
346
|
type: "button",
|
|
328
347
|
title: e.$t("action.attachFile"),
|
|
329
|
-
disabled:
|
|
348
|
+
disabled: q.value,
|
|
330
349
|
onClick: n
|
|
331
350
|
}), [m(g, {
|
|
332
351
|
name: "ri:add-line",
|
|
333
352
|
class: "pk-chat-button__icon"
|
|
334
353
|
})], 16, me)]),
|
|
335
|
-
items:
|
|
336
|
-
|
|
354
|
+
items: A(() => [
|
|
355
|
+
$.value ? (S(), l(b, {
|
|
337
356
|
key: 0,
|
|
338
|
-
disabled:
|
|
339
|
-
onClick:
|
|
357
|
+
disabled: q.value || h.attachmentLimitReached,
|
|
358
|
+
onClick: ke
|
|
340
359
|
}, {
|
|
341
|
-
default:
|
|
360
|
+
default: A(() => [m(g, {
|
|
342
361
|
name: "ri:camera-line",
|
|
343
362
|
class: "pk-chatbot-input__dropdown-icon"
|
|
344
|
-
}), p(" " +
|
|
363
|
+
}), p(" " + T(e.$t("action.takePhoto")), 1)]),
|
|
345
364
|
_: 1
|
|
346
365
|
}, 8, ["disabled"])) : u("", !0),
|
|
347
366
|
m(b, {
|
|
348
|
-
disabled:
|
|
349
|
-
onClick:
|
|
367
|
+
disabled: q.value || h.attachmentLimitReached,
|
|
368
|
+
onClick: Oe
|
|
350
369
|
}, {
|
|
351
|
-
default:
|
|
370
|
+
default: A(() => [m(g, {
|
|
352
371
|
name: "ri:attachment-line",
|
|
353
372
|
class: "pk-chatbot-input__dropdown-icon"
|
|
354
|
-
}), p(" " +
|
|
373
|
+
}), p(" " + T(e.$t("action.attachFile")), 1)]),
|
|
355
374
|
_: 1
|
|
356
375
|
}, 8, ["disabled"]),
|
|
357
|
-
|
|
376
|
+
te(e.$slots, "additional-actions")
|
|
358
377
|
]),
|
|
359
378
|
_: 3
|
|
360
|
-
}, 16)) : h.fileUpload && h.fileUpload.enabled ? (S(), l(
|
|
379
|
+
}, 16)) : h.fileUpload && h.fileUpload.enabled ? (S(), l(R, {
|
|
361
380
|
key: 1,
|
|
362
381
|
icon: "ri:add-line",
|
|
363
382
|
title: e.$t("action.attachFile"),
|
|
364
|
-
disabled:
|
|
365
|
-
onClick:
|
|
383
|
+
disabled: q.value || h.attachmentLimitReached,
|
|
384
|
+
onClick: Oe
|
|
366
385
|
}, null, 8, ["title", "disabled"])) : u("", !0),
|
|
367
386
|
h.fileUpload && h.fileUpload.enabled ? (S(), d("input", {
|
|
368
387
|
key: 2,
|
|
369
388
|
ref_key: "fileInputEl",
|
|
370
|
-
ref:
|
|
389
|
+
ref: z,
|
|
371
390
|
type: "file",
|
|
372
391
|
hidden: "",
|
|
373
392
|
multiple: "",
|
|
374
393
|
accept: Ee.value,
|
|
375
|
-
onChange:
|
|
394
|
+
onChange: je
|
|
376
395
|
}, null, 40, he)) : u("", !0),
|
|
377
|
-
h.fileUpload && h.fileUpload.enabled &&
|
|
396
|
+
h.fileUpload && h.fileUpload.enabled && $.value ? (S(), d("input", {
|
|
378
397
|
key: 3,
|
|
379
398
|
ref_key: "cameraInputEl",
|
|
380
|
-
ref:
|
|
399
|
+
ref: B,
|
|
381
400
|
type: "file",
|
|
382
401
|
capture: "environment",
|
|
383
402
|
hidden: "",
|
|
384
403
|
accept: De.value,
|
|
385
|
-
onChange:
|
|
404
|
+
onChange: je
|
|
386
405
|
}, null, 40, ge)) : u("", !0),
|
|
387
|
-
h.pointerAvailable ? (S(), l(
|
|
406
|
+
h.pointerAvailable ? (S(), l(R, {
|
|
388
407
|
key: 4,
|
|
389
408
|
icon: "ri:focus-3-line",
|
|
390
409
|
title: e.$t("pagePointer.start"),
|
|
391
410
|
"aria-pressed": h.pointing,
|
|
392
|
-
disabled:
|
|
393
|
-
onClick: c[
|
|
411
|
+
disabled: q.value,
|
|
412
|
+
onClick: c[2] ||= (e) => P("point")
|
|
394
413
|
}, null, 8, [
|
|
395
414
|
"title",
|
|
396
415
|
"aria-pressed",
|
|
@@ -398,51 +417,51 @@ var P = N, F = ["type"], I = {
|
|
|
398
417
|
])) : u("", !0),
|
|
399
418
|
f("div", _e, [f("textarea", {
|
|
400
419
|
ref_key: "textareaEl",
|
|
401
|
-
ref:
|
|
402
|
-
value:
|
|
420
|
+
ref: L,
|
|
421
|
+
value: H.value,
|
|
403
422
|
class: "pk-chatbot-input__textarea",
|
|
404
423
|
name: "message",
|
|
405
424
|
rows: "1",
|
|
406
425
|
enterkeyhint: "send",
|
|
407
426
|
"aria-label": e.$t("label.message"),
|
|
408
|
-
"aria-describedby": h.maxMessageLength ?
|
|
409
|
-
"aria-invalid":
|
|
427
|
+
"aria-describedby": h.maxMessageLength ? E(J) : void 0,
|
|
428
|
+
"aria-invalid": X.value || void 0,
|
|
410
429
|
placeholder: h.placeholder,
|
|
411
430
|
onInput: Ce,
|
|
412
|
-
onKeydown:
|
|
431
|
+
onKeydown: re(ze, ["enter"])
|
|
413
432
|
}, null, 40, ve)]),
|
|
414
433
|
h.maxMessageLength ? (S(), d("div", {
|
|
415
434
|
key: 5,
|
|
416
|
-
id:
|
|
417
|
-
class: y(["pk-chatbot-input__counter", { "pk-chatbot-input__counter--over":
|
|
418
|
-
}, [p(
|
|
419
|
-
h.voiceEnabled && !
|
|
435
|
+
id: E(J),
|
|
436
|
+
class: y(["pk-chatbot-input__counter", { "pk-chatbot-input__counter--over": X.value }])
|
|
437
|
+
}, [p(T(e.$n(Y.value, "integer")) + "/", 1), f("span", be, T(e.$n(h.maxMessageLength, "integer")), 1)], 10, ye)) : u("", !0),
|
|
438
|
+
h.voiceEnabled && !G.value ? (S(), l(R, {
|
|
420
439
|
key: 6,
|
|
421
440
|
icon: "ri:mic-line",
|
|
422
441
|
title: e.$t("action.talk"),
|
|
423
|
-
disabled:
|
|
424
|
-
onClick: c[
|
|
442
|
+
disabled: q.value,
|
|
443
|
+
onClick: c[3] ||= (e) => P("voice-start")
|
|
425
444
|
}, null, 8, ["title", "disabled"])) : u("", !0),
|
|
426
|
-
|
|
445
|
+
G.value ? (S(), l(R, {
|
|
427
446
|
key: 7,
|
|
428
447
|
icon: "ri:stop-fill",
|
|
429
|
-
modifiers:
|
|
448
|
+
modifiers: Q.value ? void 0 : "primary",
|
|
430
449
|
title: e.$t("action.stop"),
|
|
431
|
-
onClick:
|
|
450
|
+
onClick: Le
|
|
432
451
|
}, null, 8, ["modifiers", "title"])) : u("", !0),
|
|
433
|
-
|
|
452
|
+
Q.value ? (S(), l(R, {
|
|
434
453
|
key: 8,
|
|
435
454
|
type: "submit",
|
|
436
455
|
modifiers: "primary",
|
|
437
456
|
icon: "ri:arrow-up-line",
|
|
438
457
|
title: e.$t("action.queueMessage")
|
|
439
|
-
}, null, 8, ["title"])) :
|
|
458
|
+
}, null, 8, ["title"])) : G.value ? u("", !0) : (S(), l(R, {
|
|
440
459
|
key: 9,
|
|
441
460
|
type: "submit",
|
|
442
461
|
modifiers: "primary",
|
|
443
|
-
icon:
|
|
462
|
+
icon: K.value ? "loading-loop" : "ri:arrow-up-line",
|
|
444
463
|
title: e.$t("action.submit"),
|
|
445
|
-
disabled: !
|
|
464
|
+
disabled: !Z.value
|
|
446
465
|
}, null, 8, [
|
|
447
466
|
"icon",
|
|
448
467
|
"title",
|
|
@@ -453,6 +472,6 @@ var P = N, F = ["type"], I = {
|
|
|
453
472
|
};
|
|
454
473
|
}
|
|
455
474
|
});
|
|
456
|
-
export {
|
|
475
|
+
export { R as n, z as t };
|
|
457
476
|
|
|
458
|
-
//# sourceMappingURL=PkChatbotInput-
|
|
477
|
+
//# sourceMappingURL=PkChatbotInput-Bs8nn-Jz.js.map
|