@8wave/ai-elements 0.126.0-beta.31 → 0.126.0-beta.33
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-COa7L9GK.js → Agent-DZEyfr8D.js} +2 -1
- package/dist/_chunks/Agent-DZEyfr8D.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-SBGa95Ca.js → PkFilePreview-C6ZZablL.js} +3 -3
- package/dist/_chunks/{PkFilePreview-SBGa95Ca.js.map → PkFilePreview-C6ZZablL.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-Cc7iZWCl.js → PkFilePreviewDialog-BzBHAt8l.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-Cc7iZWCl.js.map → PkFilePreviewDialog-BzBHAt8l.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-D13bWv-N.js → PkImageEditorDialog-Dm34WFmS.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-D13bWv-N.js.map → PkImageEditorDialog-Dm34WFmS.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-BaX_rsCt.js → PkSelectionActions-CYqbMEjg.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-BaX_rsCt.js.map → PkSelectionActions-CYqbMEjg.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-GRB3Gg_x.js → PkStreamingMarkdown-B8rZbprU.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-GRB3Gg_x.js.map → PkStreamingMarkdown-B8rZbprU.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-DTm5-CE4.js → PkToolChatFile-C0emIVfS.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-DTm5-CE4.js.map → PkToolChatFile-C0emIVfS.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DZenn1az.js → PkToolRequestGeolocation-DNzNRszE.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DZenn1az.js.map → PkToolRequestGeolocation-DNzNRszE.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-Dz0qfYu5.js → PkToolRequestOAuthConnection-BDxYXz4s.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-Dz0qfYu5.js.map → PkToolRequestOAuthConnection-BDxYXz4s.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-C9_DHr5Y.js → PkToolShowArtifact-B_KIIjEn.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-C9_DHr5Y.js.map → PkToolShowArtifact-B_KIIjEn.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-DhyelktO.js → PkToolShowContactForm-DiHb3fRQ.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-DhyelktO.js.map → PkToolShowContactForm-DiHb3fRQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-Dz2Hnzts.js → PkToolShowForm-BmUAhIQy.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-Dz2Hnzts.js.map → PkToolShowForm-BmUAhIQy.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CiDfIboY.js → PkToolShowImageGallery-CZ394fdT.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-CiDfIboY.js.map → PkToolShowImageGallery-CZ394fdT.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-CY96IGWn.js → PkToolShowProductList-uNvUr2s9.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-CY96IGWn.js.map → PkToolShowProductList-uNvUr2s9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-CRk-MOoE.js → PkToolShowSources-Dm0L4prK.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-CRk-MOoE.js.map → PkToolShowSources-Dm0L4prK.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DKuV4mmV.js → PkToolShowSuggestedReply-B_dRrZfj.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-DKuV4mmV.js.map → PkToolShowSuggestedReply-B_dRrZfj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DI6ohcVU.js → PkToolShowVideo-DLgQjTq_.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-DI6ohcVU.js.map → PkToolShowVideo-DLgQjTq_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-Dh6L_n9T.js → PkToolShowWebPages-Cj2mJrs5.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-Dh6L_n9T.js.map → PkToolShowWebPages-Cj2mJrs5.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-Ckz-KAHA.js → chatImagePolicy-DMt6O5iK.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-Ckz-KAHA.js.map → chatImagePolicy-DMt6O5iK.js.map} +1 -1
- package/dist/_chunks/{markdown-DHayRAiy.js → markdown-nw5sXwU0.js} +2 -2
- package/dist/_chunks/{markdown-DHayRAiy.js.map → markdown-nw5sXwU0.js.map} +1 -1
- package/dist/_chunks/{utils-3jpXeGGy.js → utils-DPGBO-HU.js} +2 -2
- package/dist/_chunks/{utils-3jpXeGGy.js.map → utils-DPGBO-HU.js.map} +1 -1
- package/dist/ai-elements.es.js +3927 -3858
- 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-CRwhrv5Z.js → Agent-CBAd3F7k.js} +2 -1
- package/dist-vue/_chunks/Agent-CBAd3F7k.js.map +1 -0
- package/dist-vue/_chunks/{Document-Bp-qpa8v.js → Document-B3w5H0R0.js} +2 -2
- package/dist-vue/_chunks/{Document-Bp-qpa8v.js.map → Document-B3w5H0R0.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-CtrcDgBe.js → PkChatbot-CXpftmWm.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-CtrcDgBe.js.map → PkChatbot-CXpftmWm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-BF3Odn3v.js → PkChatbotEmptyState-vA2v4FES.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-BF3Odn3v.js.map → PkChatbotEmptyState-vA2v4FES.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotInput-CIIJ1bpF.js +584 -0
- package/dist-vue/_chunks/PkChatbotInput-CIIJ1bpF.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-10eBKpC5.js → PkChatbotMessages-15R8RxAq.js} +18 -18
- package/dist-vue/_chunks/{PkChatbotMessages-10eBKpC5.js.map → PkChatbotMessages-15R8RxAq.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-C4ahOq6Z.js → PkChatbotStepPayload-BbNSav-U.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-C4ahOq6Z.js.map → PkChatbotStepPayload-BbNSav-U.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CkIX0aKu.js → PkChatbotStepToolDetail-B_4pmbLe.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CkIX0aKu.js.map → PkChatbotStepToolDetail-B_4pmbLe.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-BalLo6DZ.js → PkChatbotSteps-h4E6DH_g.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-BalLo6DZ.js.map → PkChatbotSteps-h4E6DH_g.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotViewChat-CLQ0J9_f.js +1382 -0
- package/dist-vue/_chunks/PkChatbotViewChat-CLQ0J9_f.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-D0vDYTyo.js → PkChatbotViewConversations-DFBbypGg.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-D0vDYTyo.js.map → PkChatbotViewConversations-DFBbypGg.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-BwfAnywk.js → PkChatbotViewFiles-PHdrHZOf.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-BwfAnywk.js.map → PkChatbotViewFiles-PHdrHZOf.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-GW0WuMOy.js → PkChatbotViewProfile-B0AZvHTr.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-GW0WuMOy.js.map → PkChatbotViewProfile-B0AZvHTr.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-qizsvSVW.js → PkFilePreview-Cb-1YRPN.js} +616 -666
- package/dist-vue/_chunks/PkFilePreview-Cb-1YRPN.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-WsVzH9hg.js → PkFilePreviewDialog-Bd7kEoCB.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-WsVzH9hg.js.map → PkFilePreviewDialog-Bd7kEoCB.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-NQFpdqCU.js → PkImageEditorDialog-Bj4sUHXM.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-NQFpdqCU.js.map → PkImageEditorDialog-Bj4sUHXM.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-CMxiJTMR.js → PkStreamingMarkdown-BcUq4ThC.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-CMxiJTMR.js.map → PkStreamingMarkdown-BcUq4ThC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-Bd6Ci7i1.js → PkToolChatFile-BOexrlLt.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-Bd6Ci7i1.js.map → PkToolChatFile-BOexrlLt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-C2OmF31d.js → PkToolRequestGeolocation-CyL_M1Rm.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-C2OmF31d.js.map → PkToolRequestGeolocation-CyL_M1Rm.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CgD-o99C.js → PkToolRequestOAuthConnection-DWkeVLpx.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CgD-o99C.js.map → PkToolRequestOAuthConnection-DWkeVLpx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-rlZ-AGWh.js → PkToolShowArtifact-C4gHB6lH.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-rlZ-AGWh.js.map → PkToolShowArtifact-C4gHB6lH.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-B8xJi1yY.js → PkToolShowChart-CsPXNAb9.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-B8xJi1yY.js.map → PkToolShowChart-CsPXNAb9.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BVBL7Unx.js → PkToolShowContactForm-2_HBPZaa.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BVBL7Unx.js.map → PkToolShowContactForm-2_HBPZaa.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-Bs39QQZ3.js → PkToolShowDiagram-cCbeL6MK.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-Bs39QQZ3.js.map → PkToolShowDiagram-cCbeL6MK.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-D-RJeA2F.js → PkToolShowForm-DjB3fji5.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-D-RJeA2F.js.map → PkToolShowForm-DjB3fji5.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-CrkkKCVI.js → PkToolShowImageGallery-C22TCUKW.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-CrkkKCVI.js.map → PkToolShowImageGallery-C22TCUKW.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-BwfUG41_.js → PkToolShowProductList-BvtmiHBf.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-BwfUG41_.js.map → PkToolShowProductList-BvtmiHBf.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-q9gQIuam.js → PkToolShowSources-uKO4MQgd.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-q9gQIuam.js.map → PkToolShowSources-uKO4MQgd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-75Kc8-OQ.js → PkToolShowSuggestedReply-wKgwHTRO.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-75Kc8-OQ.js.map → PkToolShowSuggestedReply-wKgwHTRO.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-BK-jDVJd.js → PkToolShowVideo-DKj5N1vo.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-BK-jDVJd.js.map → PkToolShowVideo-DKj5N1vo.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-K3Jml1f7.js → PkToolShowWebPages-BNZmbCSf.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-K3Jml1f7.js.map → PkToolShowWebPages-BNZmbCSf.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Pb7_cU2s.js → createChatbotApiClient-DBKfGL6y.js} +5 -2
- package/dist-vue/_chunks/{createChatbotApiClient-Pb7_cU2s.js.map → createChatbotApiClient-DBKfGL6y.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-ChrZVIDt.js → useChatbotStore-Hb5EjISl.js} +94 -85
- package/dist-vue/_chunks/useChatbotStore-Hb5EjISl.js.map +1 -0
- package/dist-vue/_chunks/{utils-Bdk5kFfi.js → utils-waie4Gfn.js} +2 -2
- package/dist-vue/_chunks/{utils-Bdk5kFfi.js.map → utils-waie4Gfn.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +2 -0
- package/dist-vue/composables.js +8 -8
- package/dist-vue/index.js +408 -389
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +6 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +9 -2
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +6 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +5 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +10 -1
- package/dist-vue/packages/models/src/schema/Agent.d.ts +8 -0
- 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/packages/models/src/schema/constants.d.ts +11 -2
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-COa7L9GK.js.map +0 -1
- package/dist-vue/_chunks/Agent-CRwhrv5Z.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-DNXvFvyG.js +0 -520
- package/dist-vue/_chunks/PkChatbotInput-DNXvFvyG.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-U6T-gG-c.js +0 -1336
- package/dist-vue/_chunks/PkChatbotViewChat-U6T-gG-c.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-qizsvSVW.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-ChrZVIDt.js.map +0 -1
|
@@ -1,520 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./VvButtonLocalized-C-vx25u4.js";
|
|
2
|
-
import { s as t } from "./Media-0U2B_qCS.js";
|
|
3
|
-
import { t as n } from "./PkStreamingMarkdown-CMxiJTMR.js";
|
|
4
|
-
import { t as r } from "./PkChatbotFilePreview-aKJBtw04.js";
|
|
5
|
-
import { j as i, k as a } from "./utils-Bdk5kFfi.js";
|
|
6
|
-
import { VvDropdown as o, VvDropdownAction as s, VvIcon as c } from "@volverjs/ui-vue/components";
|
|
7
|
-
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineAsyncComponent as _, defineComponent as v, mergeModels as y, mergeProps as ee, nextTick as b, normalizeClass as te, normalizeProps as ne, onBeforeUnmount as re, onMounted as ie, openBlock as x, ref as S, renderList as ae, renderSlot as oe, shallowRef as se, toDisplayString as C, unref as w, useId as ce, useModel as T, useTemplateRef as E, watch as D, withCtx as O, withKeys as le, withModifiers as ue } from "vue";
|
|
8
|
-
import { useI18n as de } from "vue-i18n";
|
|
9
|
-
import { useResizeObserver as fe } from "@vueuse/core";
|
|
10
|
-
// ../../node_modules/.pnpm/autosize@6.0.1/node_modules/autosize/dist/autosize.esm.js
|
|
11
|
-
var k = /* @__PURE__ */ new Map();
|
|
12
|
-
function pe(e) {
|
|
13
|
-
var t = k.get(e);
|
|
14
|
-
t && t.destroy();
|
|
15
|
-
}
|
|
16
|
-
function A(e) {
|
|
17
|
-
var t = k.get(e);
|
|
18
|
-
t && t.update();
|
|
19
|
-
}
|
|
20
|
-
var j = null;
|
|
21
|
-
typeof window > "u" ? ((j = function(e) {
|
|
22
|
-
return e;
|
|
23
|
-
}).destroy = function(e) {
|
|
24
|
-
return e;
|
|
25
|
-
}, j.update = function(e) {
|
|
26
|
-
return e;
|
|
27
|
-
}) : ((j = function(e, t) {
|
|
28
|
-
return e && Array.prototype.forEach.call(e.length ? e : [e], function(e) {
|
|
29
|
-
return function(e) {
|
|
30
|
-
if (e && e.nodeName && e.nodeName === "TEXTAREA" && !k.has(e)) {
|
|
31
|
-
var t, n = null, r = window.getComputedStyle(e), i = (t = e.value, function() {
|
|
32
|
-
o({
|
|
33
|
-
testForHeightReduction: t === "" || !e.value.startsWith(t),
|
|
34
|
-
restoreTextAlign: null
|
|
35
|
-
}), t = e.value;
|
|
36
|
-
}), a = function(t) {
|
|
37
|
-
e.removeEventListener("autosize:destroy", a), e.removeEventListener("autosize:update", s), e.removeEventListener("input", i), window.removeEventListener("resize", s), Object.keys(t).forEach(function(n) {
|
|
38
|
-
return e.style[n] = t[n];
|
|
39
|
-
}), k.delete(e);
|
|
40
|
-
}.bind(e, {
|
|
41
|
-
height: e.style.height,
|
|
42
|
-
resize: e.style.resize,
|
|
43
|
-
textAlign: e.style.textAlign,
|
|
44
|
-
overflowY: e.style.overflowY,
|
|
45
|
-
overflowX: e.style.overflowX,
|
|
46
|
-
wordWrap: e.style.wordWrap
|
|
47
|
-
});
|
|
48
|
-
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", k.set(e, {
|
|
49
|
-
destroy: a,
|
|
50
|
-
update: s
|
|
51
|
-
}), s();
|
|
52
|
-
}
|
|
53
|
-
function o(t) {
|
|
54
|
-
var i, a, s = t.restoreTextAlign, c = s === void 0 ? null : s, l = t.testForHeightReduction, u = l === void 0 || l, d = r.overflowY;
|
|
55
|
-
if (e.scrollHeight !== 0 && (r.resize === "vertical" ? e.style.resize = "none" : r.resize === "both" && (e.style.resize = "horizontal"), u && (i = function(e) {
|
|
56
|
-
for (var t = []; e && e.parentNode && e.parentNode instanceof Element;) e.parentNode.scrollTop && t.push([e.parentNode, e.parentNode.scrollTop]), e = e.parentNode;
|
|
57
|
-
return function() {
|
|
58
|
-
return t.forEach(function(e) {
|
|
59
|
-
var t = e[0], n = e[1];
|
|
60
|
-
t.style.scrollBehavior = "auto", t.scrollTop = n, t.style.scrollBehavior = null;
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
}(e), e.style.height = ""), a = r.boxSizing === "content-box" ? e.scrollHeight - (parseFloat(r.paddingTop) + parseFloat(r.paddingBottom)) : e.scrollHeight + parseFloat(r.borderTopWidth) + parseFloat(r.borderBottomWidth), r.maxHeight !== "none" && a > parseFloat(r.maxHeight) ? (r.overflowY === "hidden" && (e.style.overflow = "scroll"), a = parseFloat(r.maxHeight)) : r.overflowY !== "hidden" && (e.style.overflow = "hidden"), e.style.height = a + "px", c && (e.style.textAlign = c), i && i(), n !== a && (e.dispatchEvent(new Event("autosize:resized", { bubbles: !0 })), n = a), d !== r.overflow && !c)) {
|
|
64
|
-
var f = r.textAlign;
|
|
65
|
-
r.overflow === "hidden" && (e.style.textAlign = f === "start" ? "end" : "start"), o({
|
|
66
|
-
restoreTextAlign: f,
|
|
67
|
-
testForHeightReduction: !0
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function s() {
|
|
72
|
-
o({
|
|
73
|
-
testForHeightReduction: !0,
|
|
74
|
-
restoreTextAlign: null
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}(e);
|
|
78
|
-
}), e;
|
|
79
|
-
}).destroy = function(e) {
|
|
80
|
-
return e && Array.prototype.forEach.call(e.length ? e : [e], pe), e;
|
|
81
|
-
}, j.update = function(e) {
|
|
82
|
-
return e && Array.prototype.forEach.call(e.length ? e : [e], A), e;
|
|
83
|
-
});
|
|
84
|
-
var M = j, N = ["type"], P = {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "pk-chat-button__label"
|
|
87
|
-
}, F = /* @__PURE__ */ v({
|
|
88
|
-
__name: "PkChatButton",
|
|
89
|
-
props: {
|
|
90
|
-
icon: {},
|
|
91
|
-
label: { default: void 0 },
|
|
92
|
-
type: { default: "button" },
|
|
93
|
-
modifiers: { default: void 0 }
|
|
94
|
-
},
|
|
95
|
-
setup(e) {
|
|
96
|
-
return (t, n) => {
|
|
97
|
-
let r = c;
|
|
98
|
-
return x(), p("button", {
|
|
99
|
-
class: te(["pk-chat-button", [e.modifiers ? `pk-chat-button--${e.modifiers}` : void 0, { "pk-chat-button--labelled": e.label }]]),
|
|
100
|
-
type: e.type
|
|
101
|
-
}, [g(r, {
|
|
102
|
-
name: e.icon,
|
|
103
|
-
class: "pk-chat-button__icon"
|
|
104
|
-
}, null, 8, ["name"]), e.label ? (x(), p("span", P, C(e.label), 1)) : f("", !0)], 10, N);
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
}), me = { class: "pk-chatbot-input" }, he = {
|
|
108
|
-
key: 0,
|
|
109
|
-
class: "pk-chatbot-input__notice",
|
|
110
|
-
role: "status"
|
|
111
|
-
}, ge = {
|
|
112
|
-
key: 2,
|
|
113
|
-
class: "pk-chatbot-input__notice-text"
|
|
114
|
-
}, _e = ["title"], ve = {
|
|
115
|
-
key: 1,
|
|
116
|
-
class: "pk-chatbot-input__pointer"
|
|
117
|
-
}, ye = { class: "pk-chatbot-input__pointer-label" }, be = {
|
|
118
|
-
key: 2,
|
|
119
|
-
class: "pk-chatbot-input__attachments"
|
|
120
|
-
}, xe = { class: "pk-chatbot-input__fieldset" }, Se = [
|
|
121
|
-
"title",
|
|
122
|
-
"disabled",
|
|
123
|
-
"onClick"
|
|
124
|
-
], Ce = ["accept"], we = ["accept"], Te = { class: "pk-chatbot-input__content" }, Ee = [
|
|
125
|
-
"value",
|
|
126
|
-
"aria-label",
|
|
127
|
-
"aria-describedby",
|
|
128
|
-
"aria-invalid",
|
|
129
|
-
"placeholder"
|
|
130
|
-
], De = ["id"], Oe = { class: "opacity-60" }, I = /* @__PURE__ */ v({
|
|
131
|
-
__name: "PkChatbotInput",
|
|
132
|
-
props: /*@__PURE__*/ y({
|
|
133
|
-
placeholder: {},
|
|
134
|
-
dismissableNotice: {},
|
|
135
|
-
pageNotice: {},
|
|
136
|
-
status: {},
|
|
137
|
-
maxMessageLength: {},
|
|
138
|
-
fileUpload: {},
|
|
139
|
-
attachmentLimitReached: { type: Boolean },
|
|
140
|
-
attachmentNotice: {},
|
|
141
|
-
voiceEnabled: { type: Boolean },
|
|
142
|
-
queueEnabled: { type: Boolean },
|
|
143
|
-
answerNotices: {},
|
|
144
|
-
pointerAvailable: { type: Boolean },
|
|
145
|
-
pointing: { type: Boolean },
|
|
146
|
-
pointer: {},
|
|
147
|
-
automaticConfirmations: { type: Boolean },
|
|
148
|
-
editableImages: { type: Boolean },
|
|
149
|
-
retryableAttachments: { type: Boolean }
|
|
150
|
-
}, {
|
|
151
|
-
modelValue: { default: void 0 },
|
|
152
|
-
modelModifiers: {},
|
|
153
|
-
pendingAttachments: { default: () => [] },
|
|
154
|
-
pendingAttachmentsModifiers: {}
|
|
155
|
-
}),
|
|
156
|
-
emits: /*@__PURE__*/ y([
|
|
157
|
-
"submit",
|
|
158
|
-
"stop-generation",
|
|
159
|
-
"file-select",
|
|
160
|
-
"remove-attachment",
|
|
161
|
-
"replace-attachment",
|
|
162
|
-
"retry-attachment",
|
|
163
|
-
"dismiss-attachment-notice",
|
|
164
|
-
"dismiss-page-notice",
|
|
165
|
-
"open-answer-notice",
|
|
166
|
-
"dismiss-answer-notice",
|
|
167
|
-
"voice-start",
|
|
168
|
-
"point",
|
|
169
|
-
"remove-pointer",
|
|
170
|
-
"manual-confirmations"
|
|
171
|
-
], ["update:modelValue", "update:pendingAttachments"]),
|
|
172
|
-
setup(v, { expose: y, emit: k }) {
|
|
173
|
-
let pe = _(() => import("./PkImageEditorDialog-NQFpdqCU.js")), A = T(v, "modelValue"), j = T(v, "pendingAttachments"), N = k, P = v, { t: I } = de({ useScope: "global" }), L = E("textareaEl"), R = E("fileInputEl"), z = E("cameraInputEl"), B = E("formEl"), V = S(A.value ?? ""), H = null, U = () => {
|
|
174
|
-
H !== null && (clearTimeout(H), H = null);
|
|
175
|
-
}, ke = () => {
|
|
176
|
-
U(), A.value = V.value;
|
|
177
|
-
}, Ae = () => {
|
|
178
|
-
U(), H = setTimeout(() => {
|
|
179
|
-
A.value = V.value, H = null;
|
|
180
|
-
}, 300);
|
|
181
|
-
}, je = () => {
|
|
182
|
-
V.value = L.value?.value ?? "", Ae();
|
|
183
|
-
};
|
|
184
|
-
D(A, (e) => {
|
|
185
|
-
e !== V.value && (V.value = e ?? "", b(() => {
|
|
186
|
-
L.value && M.update(L.value);
|
|
187
|
-
}));
|
|
188
|
-
});
|
|
189
|
-
let W = u(() => P.status === "streaming"), Me = u(() => P.status === "submitted"), G = u(() => W.value || Me.value), Ne = ce(), Pe = u(() => V.value.length), K = u(() => P.maxMessageLength !== void 0 && Pe.value > P.maxMessageLength), Fe = u(() => j.value.some((e) => e.state === "uploading")), Ie = u(() => j.value.some((e) => e.state === "error")), q = u(() => G.value && !P.queueEnabled || Fe.value || Ie.value || K.value ? !1 : V.value.trim().length > 0), Le = u(() => G.value && q.value), Re = "capture" in document.createElement("input"), ze = u(() => {
|
|
190
|
-
let e = P.fileUpload?.allowedMimeTypes ?? [];
|
|
191
|
-
return [...e, ...t(e)].join(",");
|
|
192
|
-
}), Be = u(() => (P.fileUpload?.allowedMimeTypes ?? []).filter((e) => e.startsWith("image/")).join(",")), J = u(() => Re && Be.value.length > 0), Ve = () => {
|
|
193
|
-
R.value?.click();
|
|
194
|
-
}, He = () => {
|
|
195
|
-
z.value?.click();
|
|
196
|
-
}, Ue = (e) => {
|
|
197
|
-
for (let t of e) N("file-select", t);
|
|
198
|
-
}, We = (e) => {
|
|
199
|
-
let t = e.target;
|
|
200
|
-
Ue(Array.from(t.files ?? [])), t.value = "";
|
|
201
|
-
}, Ge = (e) => {
|
|
202
|
-
let t = j.value.find((t) => t.id === e);
|
|
203
|
-
t && (URL.revokeObjectURL(t.localUrl), j.value = j.value.filter((t) => t.id !== e), N("remove-attachment", t));
|
|
204
|
-
}, Y = S(), X = u(() => j.value.find((e) => e.id === Y.value)), Z = se(), Q = u(() => X.value?.file ?? Z.value), Ke = (e) => !!P.editableImages && e.state !== "uploading" && a(e.file.type), qe = () => {
|
|
205
|
-
Y.value = void 0, Z.value = void 0;
|
|
206
|
-
}, Je = async (e) => {
|
|
207
|
-
let t = X.value, n = !t && !!Z.value;
|
|
208
|
-
if (qe(), t) N("replace-attachment", t, e);
|
|
209
|
-
else if (n) N("file-select", e);
|
|
210
|
-
else return;
|
|
211
|
-
await b(), L.value?.focus();
|
|
212
|
-
}, Ye = S(!0), Xe = () => {
|
|
213
|
-
Ye.value = !1;
|
|
214
|
-
}, Ze = u(() => {
|
|
215
|
-
if (P.attachmentNotice) return [{
|
|
216
|
-
id: "limit",
|
|
217
|
-
icon: "ri:information-line",
|
|
218
|
-
text: P.attachmentNotice,
|
|
219
|
-
dismiss: () => N("dismiss-attachment-notice")
|
|
220
|
-
}];
|
|
221
|
-
let e = [];
|
|
222
|
-
Ie.value && e.push({
|
|
223
|
-
id: "upload-failed",
|
|
224
|
-
icon: "ri:error-warning-line",
|
|
225
|
-
text: I("message.attachmentUploadFailed")
|
|
226
|
-
});
|
|
227
|
-
for (let t of P.answerNotices ?? []) e.push({
|
|
228
|
-
id: `answer-${t.id}`,
|
|
229
|
-
icon: "ri:chat-check-line",
|
|
230
|
-
text: t.text,
|
|
231
|
-
open: () => N("open-answer-notice", t.id),
|
|
232
|
-
dismiss: () => N("dismiss-answer-notice", t.id)
|
|
233
|
-
});
|
|
234
|
-
return P.pageNotice && e.push({
|
|
235
|
-
id: "page",
|
|
236
|
-
icon: "ri:pages-line",
|
|
237
|
-
text: P.pageNotice,
|
|
238
|
-
dismiss: () => N("dismiss-page-notice")
|
|
239
|
-
}), P.dismissableNotice && Ye.value && e.push({
|
|
240
|
-
id: "dismissable",
|
|
241
|
-
markdown: P.dismissableNotice,
|
|
242
|
-
dismiss: Xe
|
|
243
|
-
}), e;
|
|
244
|
-
}), Qe = () => {
|
|
245
|
-
B.value?.querySelector("button:focus-visible") && L.value?.focus();
|
|
246
|
-
}, $e = () => {
|
|
247
|
-
Qe(), N("stop-generation");
|
|
248
|
-
}, et = () => {
|
|
249
|
-
q.value && (Qe(), ke(), N("submit"), V.value = "", A.value = "", b(() => {
|
|
250
|
-
L.value && (L.value.value = "", M.update(L.value));
|
|
251
|
-
}));
|
|
252
|
-
}, tt = (e) => {
|
|
253
|
-
e.shiftKey || i(e) || (e.preventDefault(), et());
|
|
254
|
-
};
|
|
255
|
-
ie(() => {
|
|
256
|
-
L.value && M(L.value);
|
|
257
|
-
});
|
|
258
|
-
let $ = 0;
|
|
259
|
-
return fe(L, ([e]) => {
|
|
260
|
-
let t = e?.contentRect.width ?? 0;
|
|
261
|
-
L.value && t !== $ && ($ = t, M.update(L.value));
|
|
262
|
-
}), D(() => P.placeholder, async () => {
|
|
263
|
-
await b(), L.value && M.update(L.value);
|
|
264
|
-
}), re(() => {
|
|
265
|
-
U(), L.value && M.destroy(L.value);
|
|
266
|
-
for (let e of j.value) URL.revokeObjectURL(e.localUrl);
|
|
267
|
-
}), y({
|
|
268
|
-
focus: () => L.value?.focus(),
|
|
269
|
-
annotateImage: (e) => {
|
|
270
|
-
Y.value = void 0, Z.value = e;
|
|
271
|
-
}
|
|
272
|
-
}), (t, i) => {
|
|
273
|
-
let a = c, u = e, _ = s, y = o;
|
|
274
|
-
return x(), p("div", me, [
|
|
275
|
-
Ze.value.length ? (x(), p("div", he, [(x(!0), p(l, null, ae(Ze.value, (e) => (x(), p("div", {
|
|
276
|
-
key: e.id,
|
|
277
|
-
class: "pk-chatbot-input__notice-item"
|
|
278
|
-
}, [
|
|
279
|
-
e.icon ? (x(), d(a, {
|
|
280
|
-
key: 0,
|
|
281
|
-
name: e.icon,
|
|
282
|
-
class: "pk-chatbot-input__notice-icon"
|
|
283
|
-
}, null, 8, ["name"])) : f("", !0),
|
|
284
|
-
e.markdown ? (x(), d(n, {
|
|
285
|
-
key: 1,
|
|
286
|
-
markdown: e.markdown,
|
|
287
|
-
class: "wysiwyg pk-chatbot-input__notice-text"
|
|
288
|
-
}, null, 8, ["markdown"])) : (x(), p("span", ge, C(e.text), 1)),
|
|
289
|
-
e.open ? (x(), d(u, {
|
|
290
|
-
key: 3,
|
|
291
|
-
label: w(I)("action.open"),
|
|
292
|
-
modifiers: "link",
|
|
293
|
-
class: "pk-chatbot-input__notice-action",
|
|
294
|
-
onClick: (t) => e.open()
|
|
295
|
-
}, null, 8, ["label", "onClick"])) : f("", !0),
|
|
296
|
-
e.dismiss ? (x(), d(u, {
|
|
297
|
-
key: 4,
|
|
298
|
-
title: w(I)("action.close"),
|
|
299
|
-
modifiers: "action-quiet",
|
|
300
|
-
icon: "ri:close-line",
|
|
301
|
-
class: "w-18 h-18",
|
|
302
|
-
onClick: (t) => e.dismiss()
|
|
303
|
-
}, null, 8, ["title", "onClick"])) : f("", !0)
|
|
304
|
-
]))), 128))])) : f("", !0),
|
|
305
|
-
m("form", {
|
|
306
|
-
ref_key: "formEl",
|
|
307
|
-
ref: B,
|
|
308
|
-
class: "pk-chatbot-input__form",
|
|
309
|
-
onSubmit: ue(et, ["prevent"])
|
|
310
|
-
}, [
|
|
311
|
-
v.automaticConfirmations ? (x(), p("button", {
|
|
312
|
-
key: 0,
|
|
313
|
-
type: "button",
|
|
314
|
-
class: "pk-chatbot-input__mode",
|
|
315
|
-
title: w(I)("action.manualConfirmations"),
|
|
316
|
-
onClick: i[0] ||= (e) => N("manual-confirmations")
|
|
317
|
-
}, [
|
|
318
|
-
g(a, {
|
|
319
|
-
name: "ri:flashlight-line",
|
|
320
|
-
class: "pk-chatbot-input__pointer-icon"
|
|
321
|
-
}),
|
|
322
|
-
h(" " + C(w(I)("label.automaticConfirmations")) + " ", 1),
|
|
323
|
-
g(a, {
|
|
324
|
-
name: "ri:close-line",
|
|
325
|
-
class: "pk-chatbot-input__pointer-icon"
|
|
326
|
-
})
|
|
327
|
-
], 8, _e)) : f("", !0),
|
|
328
|
-
v.pointer ? (x(), p("div", ve, [
|
|
329
|
-
g(a, {
|
|
330
|
-
name: v.pointer.kind === "text" ? "ri:double-quotes-l" : "ri:focus-3-line",
|
|
331
|
-
class: "pk-chatbot-input__pointer-icon"
|
|
332
|
-
}, null, 8, ["name"]),
|
|
333
|
-
m("span", ye, C(v.pointer.kind === "text" ? `«${v.pointer.label}»` : v.pointer.label), 1),
|
|
334
|
-
g(u, {
|
|
335
|
-
title: w(I)("pagePointer.remove"),
|
|
336
|
-
modifiers: "action-quiet",
|
|
337
|
-
icon: "ri:close-line",
|
|
338
|
-
class: "w-18 h-18",
|
|
339
|
-
onClick: i[1] ||= (e) => N("remove-pointer")
|
|
340
|
-
}, null, 8, ["title"])
|
|
341
|
-
])) : f("", !0),
|
|
342
|
-
j.value.length ? (x(), p("div", be, [(x(!0), p(l, null, ae(j.value, (e) => (x(), d(r, {
|
|
343
|
-
key: e.id,
|
|
344
|
-
"media-type": e.mediaSource?.mimeType ?? e.file.type,
|
|
345
|
-
url: e.localUrl,
|
|
346
|
-
filename: e.file.name,
|
|
347
|
-
size: e.file.size,
|
|
348
|
-
loading: e.state === "uploading",
|
|
349
|
-
error: e.state === "error" ? e.error : void 0,
|
|
350
|
-
removable: e.state !== "uploading",
|
|
351
|
-
editable: Ke(e),
|
|
352
|
-
retryable: v.retryableAttachments && e.state === "error",
|
|
353
|
-
compact: "",
|
|
354
|
-
onRemove: (t) => Ge(e.id),
|
|
355
|
-
onEdit: (t) => Y.value = e.id,
|
|
356
|
-
onRetry: (t) => N("retry-attachment", e)
|
|
357
|
-
}, null, 8, [
|
|
358
|
-
"media-type",
|
|
359
|
-
"url",
|
|
360
|
-
"filename",
|
|
361
|
-
"size",
|
|
362
|
-
"loading",
|
|
363
|
-
"error",
|
|
364
|
-
"removable",
|
|
365
|
-
"editable",
|
|
366
|
-
"retryable",
|
|
367
|
-
"onRemove",
|
|
368
|
-
"onEdit",
|
|
369
|
-
"onRetry"
|
|
370
|
-
]))), 128))])) : f("", !0),
|
|
371
|
-
m("div", xe, [
|
|
372
|
-
oe(t.$slots, "prepend"),
|
|
373
|
-
v.fileUpload && v.fileUpload.enabled && (J.value || t.$slots["additional-actions"]) ? (x(), d(y, ne(ee({ key: 0 }, {
|
|
374
|
-
placement: "top-start",
|
|
375
|
-
modifiers: "menu",
|
|
376
|
-
flip: !0,
|
|
377
|
-
offset: 3
|
|
378
|
-
})), {
|
|
379
|
-
default: O(({ init: e, toggle: t, aria: n }) => [m("button", ee({ ref: (t) => e(t) }, n, {
|
|
380
|
-
class: "pk-chat-button",
|
|
381
|
-
type: "button",
|
|
382
|
-
title: w(I)("action.attachFile"),
|
|
383
|
-
disabled: G.value,
|
|
384
|
-
onClick: t
|
|
385
|
-
}), [g(a, {
|
|
386
|
-
name: "ri:add-line",
|
|
387
|
-
class: "pk-chat-button__icon"
|
|
388
|
-
})], 16, Se)]),
|
|
389
|
-
items: O(() => [
|
|
390
|
-
J.value ? (x(), d(_, {
|
|
391
|
-
key: 0,
|
|
392
|
-
disabled: G.value || v.attachmentLimitReached,
|
|
393
|
-
onClick: He
|
|
394
|
-
}, {
|
|
395
|
-
default: O(() => [g(a, {
|
|
396
|
-
name: "ri:camera-line",
|
|
397
|
-
class: "pk-chatbot-input__dropdown-icon"
|
|
398
|
-
}), h(" " + C(w(I)("action.takePhoto")), 1)]),
|
|
399
|
-
_: 1
|
|
400
|
-
}, 8, ["disabled"])) : f("", !0),
|
|
401
|
-
g(_, {
|
|
402
|
-
disabled: G.value || v.attachmentLimitReached,
|
|
403
|
-
onClick: Ve
|
|
404
|
-
}, {
|
|
405
|
-
default: O(() => [g(a, {
|
|
406
|
-
name: "ri:attachment-line",
|
|
407
|
-
class: "pk-chatbot-input__dropdown-icon"
|
|
408
|
-
}), h(" " + C(w(I)("action.attachFile")), 1)]),
|
|
409
|
-
_: 1
|
|
410
|
-
}, 8, ["disabled"]),
|
|
411
|
-
oe(t.$slots, "additional-actions")
|
|
412
|
-
]),
|
|
413
|
-
_: 3
|
|
414
|
-
}, 16)) : v.fileUpload && v.fileUpload.enabled ? (x(), d(F, {
|
|
415
|
-
key: 1,
|
|
416
|
-
icon: "ri:add-line",
|
|
417
|
-
title: w(I)("action.attachFile"),
|
|
418
|
-
disabled: G.value || v.attachmentLimitReached,
|
|
419
|
-
onClick: Ve
|
|
420
|
-
}, null, 8, ["title", "disabled"])) : f("", !0),
|
|
421
|
-
v.fileUpload && v.fileUpload.enabled ? (x(), p("input", {
|
|
422
|
-
key: 2,
|
|
423
|
-
ref_key: "fileInputEl",
|
|
424
|
-
ref: R,
|
|
425
|
-
type: "file",
|
|
426
|
-
hidden: "",
|
|
427
|
-
multiple: "",
|
|
428
|
-
accept: ze.value,
|
|
429
|
-
onChange: We
|
|
430
|
-
}, null, 40, Ce)) : f("", !0),
|
|
431
|
-
v.fileUpload && v.fileUpload.enabled && J.value ? (x(), p("input", {
|
|
432
|
-
key: 3,
|
|
433
|
-
ref_key: "cameraInputEl",
|
|
434
|
-
ref: z,
|
|
435
|
-
type: "file",
|
|
436
|
-
capture: "environment",
|
|
437
|
-
hidden: "",
|
|
438
|
-
accept: Be.value,
|
|
439
|
-
onChange: We
|
|
440
|
-
}, null, 40, we)) : f("", !0),
|
|
441
|
-
v.pointerAvailable ? (x(), d(F, {
|
|
442
|
-
key: 4,
|
|
443
|
-
icon: "ri:focus-3-line",
|
|
444
|
-
title: w(I)("pagePointer.start"),
|
|
445
|
-
"aria-pressed": v.pointing,
|
|
446
|
-
disabled: G.value,
|
|
447
|
-
onClick: i[2] ||= (e) => N("point")
|
|
448
|
-
}, null, 8, [
|
|
449
|
-
"title",
|
|
450
|
-
"aria-pressed",
|
|
451
|
-
"disabled"
|
|
452
|
-
])) : f("", !0),
|
|
453
|
-
m("div", Te, [m("textarea", {
|
|
454
|
-
ref_key: "textareaEl",
|
|
455
|
-
ref: L,
|
|
456
|
-
value: V.value,
|
|
457
|
-
class: "pk-chatbot-input__textarea",
|
|
458
|
-
name: "message",
|
|
459
|
-
rows: "1",
|
|
460
|
-
enterkeyhint: "send",
|
|
461
|
-
"aria-label": w(I)("label.message"),
|
|
462
|
-
"aria-describedby": v.maxMessageLength ? w(Ne) : void 0,
|
|
463
|
-
"aria-invalid": K.value || void 0,
|
|
464
|
-
placeholder: v.placeholder,
|
|
465
|
-
onInput: je,
|
|
466
|
-
onKeydown: le(tt, ["enter"])
|
|
467
|
-
}, null, 40, Ee)]),
|
|
468
|
-
v.maxMessageLength ? (x(), p("div", {
|
|
469
|
-
key: 5,
|
|
470
|
-
id: w(Ne),
|
|
471
|
-
class: te(["pk-chatbot-input__counter", { "pk-chatbot-input__counter--over": K.value }])
|
|
472
|
-
}, [h(C(t.$n(Pe.value, "integer")) + "/", 1), m("span", Oe, C(t.$n(v.maxMessageLength, "integer")), 1)], 10, De)) : f("", !0),
|
|
473
|
-
v.voiceEnabled && !W.value ? (x(), d(F, {
|
|
474
|
-
key: 6,
|
|
475
|
-
icon: "ri:mic-line",
|
|
476
|
-
title: w(I)("action.talk"),
|
|
477
|
-
disabled: G.value,
|
|
478
|
-
onClick: i[3] ||= (e) => N("voice-start")
|
|
479
|
-
}, null, 8, ["title", "disabled"])) : f("", !0),
|
|
480
|
-
W.value ? (x(), d(F, {
|
|
481
|
-
key: 7,
|
|
482
|
-
icon: "ri:stop-fill",
|
|
483
|
-
modifiers: Le.value ? void 0 : "primary",
|
|
484
|
-
title: w(I)("action.stop"),
|
|
485
|
-
onClick: $e
|
|
486
|
-
}, null, 8, ["modifiers", "title"])) : f("", !0),
|
|
487
|
-
Le.value ? (x(), d(F, {
|
|
488
|
-
key: 8,
|
|
489
|
-
type: "submit",
|
|
490
|
-
modifiers: "primary",
|
|
491
|
-
icon: "ri:arrow-up-line",
|
|
492
|
-
title: w(I)("action.queueMessage")
|
|
493
|
-
}, null, 8, ["title"])) : W.value ? f("", !0) : (x(), d(F, {
|
|
494
|
-
key: 9,
|
|
495
|
-
type: "submit",
|
|
496
|
-
modifiers: "primary",
|
|
497
|
-
icon: Me.value ? "loading-loop" : "ri:arrow-up-line",
|
|
498
|
-
title: w(I)("action.submit"),
|
|
499
|
-
disabled: !q.value
|
|
500
|
-
}, null, 8, [
|
|
501
|
-
"icon",
|
|
502
|
-
"title",
|
|
503
|
-
"disabled"
|
|
504
|
-
]))
|
|
505
|
-
])
|
|
506
|
-
], 544),
|
|
507
|
-
Q.value ? (x(), d(w(pe), {
|
|
508
|
-
key: X.value?.id ?? "annotating",
|
|
509
|
-
file: Q.value,
|
|
510
|
-
"initial-tool": X.value ? void 0 : "arrow",
|
|
511
|
-
onApply: Je,
|
|
512
|
-
onClose: qe
|
|
513
|
-
}, null, 8, ["file", "initial-tool"])) : f("", !0)
|
|
514
|
-
]);
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
});
|
|
518
|
-
export { F as n, I as t };
|
|
519
|
-
|
|
520
|
-
//# sourceMappingURL=PkChatbotInput-DNXvFvyG.js.map
|