@8wave/ai-elements 0.124.0 → 0.125.0-beta.10

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.
Files changed (173) hide show
  1. package/dist/_chunks/{Agent-BBWFD4nI.js → Agent-DZhK49jg.js} +99 -96
  2. package/dist/_chunks/Agent-DZhK49jg.js.map +1 -0
  3. package/dist/_chunks/{PkFilePreview-BwHe4-m1.js → PkFilePreview-C3R3jrNi.js} +31 -31
  4. package/dist/_chunks/{PkFilePreview-BwHe4-m1.js.map → PkFilePreview-C3R3jrNi.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js → PkFilePreviewDialog-BAKFOnPI.js} +2 -2
  6. package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js.map → PkFilePreviewDialog-BAKFOnPI.js.map} +1 -1
  7. package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js → PkStreamingMarkdown-BM-DSTPr.js} +3 -3
  8. package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js.map → PkStreamingMarkdown-BM-DSTPr.js.map} +1 -1
  9. package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js → PkToolChatFile-DbeOmRPh.js} +3 -3
  10. package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js.map → PkToolChatFile-DbeOmRPh.js.map} +1 -1
  11. package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js → PkToolRequestGeolocation-CCz4REP9.js} +2 -2
  12. package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js.map → PkToolRequestGeolocation-CCz4REP9.js.map} +1 -1
  13. package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js → PkToolRequestOAuthConnection-BU-4Sm3z.js} +2 -2
  14. package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js.map → PkToolRequestOAuthConnection-BU-4Sm3z.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js → PkToolShowArtifact-utxGuLLt.js} +2 -2
  16. package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js.map → PkToolShowArtifact-utxGuLLt.js.map} +1 -1
  17. package/dist/_chunks/PkToolShowCalendarEvent-DWtTo28t.js +148 -0
  18. package/dist/_chunks/PkToolShowCalendarEvent-DWtTo28t.js.map +1 -0
  19. package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js → PkToolShowContactForm-DTtE93D3.js} +2 -2
  20. package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js.map → PkToolShowContactForm-DTtE93D3.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js → PkToolShowForm-I4pKopEI.js} +6 -6
  22. package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js.map → PkToolShowForm-I4pKopEI.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js → PkToolShowImageGallery-skV87BlD.js} +2 -2
  24. package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js.map → PkToolShowImageGallery-skV87BlD.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js → PkToolShowProductList-CcdOQoxf.js} +2 -2
  26. package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js.map → PkToolShowProductList-CcdOQoxf.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowQrCode-e6DxEcWY.js → PkToolShowQrCode-DGMhVUbp.js} +28 -22
  28. package/dist/_chunks/PkToolShowQrCode-DGMhVUbp.js.map +1 -0
  29. package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js → PkToolShowSources-DLmVS3bL.js} +3 -3
  30. package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js.map → PkToolShowSources-DLmVS3bL.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js → PkToolShowSuggestedReply-Cv-WVCFN.js} +2 -2
  32. package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js.map → PkToolShowSuggestedReply-Cv-WVCFN.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js → PkToolShowVideo-D_K95gTR.js} +2 -2
  34. package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js.map → PkToolShowVideo-D_K95gTR.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js → PkToolShowWebPages-DsfMacw-.js} +2 -2
  36. package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js.map → PkToolShowWebPages-DsfMacw-.js.map} +1 -1
  37. package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js → chatImagePolicy-BfgdFbm_.js} +2 -2
  38. package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js.map → chatImagePolicy-BfgdFbm_.js.map} +1 -1
  39. package/dist/_chunks/{markdown-DDYeZICP.js → markdown-CrMYpY8l.js} +10 -10
  40. package/dist/_chunks/{markdown-DDYeZICP.js.map → markdown-CrMYpY8l.js.map} +1 -1
  41. package/dist/_chunks/{utils-euH8esYP.js → utils-CbhqxYyx.js} +57 -57
  42. package/dist/_chunks/utils-CbhqxYyx.js.map +1 -0
  43. package/dist/ai-elements.es.js +4310 -4198
  44. package/dist/ai-elements.es.js.map +1 -1
  45. package/dist-vue/PkChatbot.js +1 -1
  46. package/dist-vue/PkChatbotEmptyState.js +1 -1
  47. package/dist-vue/PkChatbotInput.js +1 -1
  48. package/dist-vue/PkChatbotMessages.js +1 -1
  49. package/dist-vue/PkChatbotStepPayload.js +1 -1
  50. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  51. package/dist-vue/PkChatbotSteps.js +1 -1
  52. package/dist-vue/PkChatbotViewChat.js +1 -1
  53. package/dist-vue/PkChatbotViewConversations.js +1 -1
  54. package/dist-vue/PkChatbotViewFiles.js +1 -1
  55. package/dist-vue/PkChatbotViewProfile.js +1 -1
  56. package/dist-vue/_chunks/{Agent-DQl-tv4S.js → Agent-BtXBSGy6.js} +34 -31
  57. package/dist-vue/_chunks/Agent-BtXBSGy6.js.map +1 -0
  58. package/dist-vue/_chunks/{Document-DXDifFZE.js → Document-DERAWuR0.js} +10 -10
  59. package/dist-vue/_chunks/{Document-DXDifFZE.js.map → Document-DERAWuR0.js.map} +1 -1
  60. package/dist-vue/_chunks/PkChatbot-CLOfTLQy.js +294 -0
  61. package/dist-vue/_chunks/PkChatbot-CLOfTLQy.js.map +1 -0
  62. package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js → PkChatbotEmptyState-C9aUiynZ.js} +2 -2
  63. package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js.map → PkChatbotEmptyState-C9aUiynZ.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotInput-BK7f1jFE.js → PkChatbotInput-Bs8nn-Jz.js} +154 -135
  65. package/dist-vue/_chunks/PkChatbotInput-Bs8nn-Jz.js.map +1 -0
  66. package/dist-vue/_chunks/PkChatbotMessages-BxkCGmqV.js +1039 -0
  67. package/dist-vue/_chunks/PkChatbotMessages-BxkCGmqV.js.map +1 -0
  68. package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js → PkChatbotStepPayload-C45aVagz.js} +2 -2
  69. package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js.map → PkChatbotStepPayload-C45aVagz.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js → PkChatbotStepToolDetail-B0tC33x6.js} +16 -16
  71. package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js.map → PkChatbotStepToolDetail-B0tC33x6.js.map} +1 -1
  72. package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js +215 -0
  73. package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js.map +1 -0
  74. package/dist-vue/_chunks/{PkChatbotViewChat-D8depeWQ.js → PkChatbotViewChat-BwXOt2WW.js} +450 -446
  75. package/dist-vue/_chunks/PkChatbotViewChat-BwXOt2WW.js.map +1 -0
  76. package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js → PkChatbotViewConversations-CtxE_a1O.js} +3 -3
  77. package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js.map → PkChatbotViewConversations-CtxE_a1O.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js → PkChatbotViewFiles-B51zU374.js} +3 -3
  79. package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js.map → PkChatbotViewFiles-B51zU374.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js → PkChatbotViewProfile-BSKRU7Ae.js} +2 -2
  81. package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js.map → PkChatbotViewProfile-BSKRU7Ae.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js → PkFilePreview-p-AGDrXi.js} +30 -30
  83. package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js.map → PkFilePreview-p-AGDrXi.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js → PkFilePreviewDialog-BpeeWS6d.js} +2 -2
  85. package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js.map → PkFilePreviewDialog-BpeeWS6d.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js → PkStreamingMarkdown-DlcTV5je.js} +3 -3
  87. package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js.map → PkStreamingMarkdown-DlcTV5je.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js → PkToolChatFile-HWGjtuaT.js} +3 -3
  89. package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js.map → PkToolChatFile-HWGjtuaT.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js → PkToolRequestGeolocation-euI4VBVe.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js.map → PkToolRequestGeolocation-euI4VBVe.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js → PkToolRequestOAuthConnection-DAAYyufP.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js.map → PkToolRequestOAuthConnection-DAAYyufP.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js → PkToolShowArtifact-C8OIF_sy.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js.map → PkToolShowArtifact-C8OIF_sy.js.map} +1 -1
  96. package/dist-vue/_chunks/PkToolShowCalendarEvent-CAejFLQI.js +148 -0
  97. package/dist-vue/_chunks/PkToolShowCalendarEvent-CAejFLQI.js.map +1 -0
  98. package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js → PkToolShowContactForm-K6Z5MUXk.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js.map → PkToolShowContactForm-K6Z5MUXk.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js → PkToolShowDiagram-DrlGh_v6.js} +2 -2
  101. package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js.map → PkToolShowDiagram-DrlGh_v6.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js → PkToolShowForm-DzsXJfOl.js} +6 -6
  103. package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js.map → PkToolShowForm-DzsXJfOl.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js → PkToolShowImageGallery-sCyrPOIT.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js.map → PkToolShowImageGallery-sCyrPOIT.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js → PkToolShowProductList-DPDDeVu4.js} +2 -2
  107. package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js.map → PkToolShowProductList-DPDDeVu4.js.map} +1 -1
  108. package/dist-vue/_chunks/PkToolShowQrCode-96KzD1rX.js +78 -0
  109. package/dist-vue/_chunks/PkToolShowQrCode-96KzD1rX.js.map +1 -0
  110. package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js → PkToolShowSources-D4zjssdh.js} +3 -3
  111. package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js.map → PkToolShowSources-D4zjssdh.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js → PkToolShowSuggestedReply-smfC1hlT.js} +2 -2
  113. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js.map → PkToolShowSuggestedReply-smfC1hlT.js.map} +1 -1
  114. package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js → PkToolShowVideo-C77DAqoZ.js} +2 -2
  115. package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js.map → PkToolShowVideo-C77DAqoZ.js.map} +1 -1
  116. package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js → PkToolShowWebPages-D_tqGI6o.js} +2 -2
  117. package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js.map → PkToolShowWebPages-D_tqGI6o.js.map} +1 -1
  118. package/dist-vue/_chunks/{createChatbotApiClient-Bukf58dz.js → createChatbotApiClient-CO6l0P79.js} +87 -85
  119. package/dist-vue/_chunks/createChatbotApiClient-CO6l0P79.js.map +1 -0
  120. package/dist-vue/_chunks/{useChatbotStore-DcvdWkgq.js → useChatbotStore-CY1gAHOh.js} +1224 -1201
  121. package/dist-vue/_chunks/useChatbotStore-CY1gAHOh.js.map +1 -0
  122. package/dist-vue/_chunks/{utils-B0PnU1Rk.js → utils-CX4JuhXz.js} +66 -66
  123. package/dist-vue/_chunks/utils-CX4JuhXz.js.map +1 -0
  124. package/dist-vue/api.js +1 -1
  125. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
  126. package/dist-vue/composables.js +20 -8
  127. package/dist-vue/composables.js.map +1 -1
  128. package/dist-vue/index.js +3394 -3359
  129. package/dist-vue/index.js.map +1 -1
  130. package/dist-vue/locales.js +20 -4
  131. package/dist-vue/packages/components/src/chat/PkAgentPageAccessSettings.d.ts +5 -0
  132. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
  133. package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +10 -8
  134. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +11 -3
  135. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +2 -2
  136. package/dist-vue/packages/components/src/chat/PkFieldChanges.d.ts +15 -0
  137. package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +1 -2
  138. package/dist-vue/packages/components/src/chat/index.d.ts +1 -1
  139. package/dist-vue/packages/components/src/chat/utils.d.ts +18 -0
  140. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
  141. package/dist-vue/packages/composable/src/chatbot/appTools.d.ts +11 -5
  142. package/dist-vue/packages/composable/src/chatbot/fieldChanges.d.ts +56 -0
  143. package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +19 -0
  144. package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
  145. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +31 -4
  146. package/dist-vue/packages/models/src/schema/Agent.d.ts +50 -0
  147. package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
  148. package/dist-vue/packages/models/src/schema/Organization.d.ts +9 -0
  149. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
  150. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
  151. package/dist-vue/style.css +1 -1
  152. package/package.json +1 -1
  153. package/dist/_chunks/Agent-BBWFD4nI.js.map +0 -1
  154. package/dist/_chunks/PkToolShowCalendarEvent-mVY2FS24.js +0 -148
  155. package/dist/_chunks/PkToolShowCalendarEvent-mVY2FS24.js.map +0 -1
  156. package/dist/_chunks/PkToolShowQrCode-e6DxEcWY.js.map +0 -1
  157. package/dist/_chunks/utils-euH8esYP.js.map +0 -1
  158. package/dist-vue/_chunks/Agent-DQl-tv4S.js.map +0 -1
  159. package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js +0 -286
  160. package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js.map +0 -1
  161. package/dist-vue/_chunks/PkChatbotInput-BK7f1jFE.js.map +0 -1
  162. package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js +0 -1041
  163. package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js.map +0 -1
  164. package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js +0 -189
  165. package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js.map +0 -1
  166. package/dist-vue/_chunks/PkChatbotViewChat-D8depeWQ.js.map +0 -1
  167. package/dist-vue/_chunks/PkToolShowCalendarEvent-BsAOYLjp.js +0 -148
  168. package/dist-vue/_chunks/PkToolShowCalendarEvent-BsAOYLjp.js.map +0 -1
  169. package/dist-vue/_chunks/PkToolShowQrCode-skWaARYV.js +0 -72
  170. package/dist-vue/_chunks/PkToolShowQrCode-skWaARYV.js.map +0 -1
  171. package/dist-vue/_chunks/createChatbotApiClient-Bukf58dz.js.map +0 -1
  172. package/dist-vue/_chunks/useChatbotStore-DcvdWkgq.js.map +0 -1
  173. 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-qnKwvrCg.js";
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 te, renderSlot as ne, toDisplayString as w, unref as T, useId as re, useModel as E, useTemplateRef as D, watch as O, withCtx as k, withKeys as ie, withModifiers as ae } from "vue";
7
- import { useResizeObserver as oe } from "@vueuse/core";
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 A = /* @__PURE__ */ new Map();
10
- function j(e) {
11
- var t = A.get(e);
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 M(e) {
15
- var t = A.get(e);
14
+ function N(e) {
15
+ var t = j.get(e);
16
16
  t && t.update();
17
17
  }
18
- var N = null;
19
- typeof window > "u" ? ((N = function(e) {
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
- }, N.update = function(e) {
23
+ }, P.update = function(e) {
24
24
  return e;
25
- }) : ((N = function(e, t) {
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" && !A.has(e)) {
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
- }), A.delete(e);
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", A.set(e, {
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 P = N, F = ["type"], I = {
82
+ var F = P, I = ["type"], L = {
83
83
  key: 0,
84
84
  class: "pk-chat-button__label"
85
- }, L = /* @__PURE__ */ h({
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", I, w(e.label), 1)) : u("", !0)], 10, F);
102
+ }, null, 8, ["name"]), e.label ? (S(), d("span", L, T(e.label), 1)) : u("", !0)], 10, I);
103
103
  };
104
104
  }
105
- }), se = { class: "pk-chatbot-input" }, ce = {
105
+ }), oe = { class: "pk-chatbot-input" }, se = {
106
106
  key: 0,
107
107
  class: "pk-chatbot-input__notice",
108
108
  role: "status"
109
- }, le = {
109
+ }, ce = {
110
110
  key: 2,
111
111
  class: "pk-chatbot-input__notice-text"
112
- }, ue = {
113
- key: 0,
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: 1,
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" }, R = /* @__PURE__ */ h({
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: A }) {
164
- let j = E(h, "modelValue"), M = E(h, "pendingAttachments"), N = A, F = h, I = D("textareaEl"), R = D("fileInputEl"), z = D("cameraInputEl"), B = D("formEl"), V = C(j.value ?? ""), H = null, U = () => {
165
- H !== null && (clearTimeout(H), H = null);
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
- U(), j.value = V.value;
169
+ W(), M.value = H.value;
168
170
  }, Se = () => {
169
- U(), H = setTimeout(() => {
170
- j.value = V.value, H = null;
171
+ W(), U = setTimeout(() => {
172
+ M.value = H.value, U = null;
171
173
  }, 300);
172
174
  }, Ce = () => {
173
- V.value = I.value?.value ?? "", Se();
175
+ H.value = L.value?.value ?? "", Se();
174
176
  };
175
- O(j, (e) => {
176
- e !== V.value && (V.value = e ?? "", v(() => {
177
- I.value && P.update(I.value);
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 W = c(() => F.status === "streaming"), G = c(() => F.status === "submitted"), K = c(() => W.value || G.value), q = re(), J = c(() => V.value.length), Y = c(() => F.maxMessageLength !== void 0 && J.value > F.maxMessageLength), we = c(() => M.value.some((e) => e.state === "uploading")), X = c(() => K.value && !F.queueEnabled || we.value || Y.value ? !1 : V.value.trim().length > 0), Z = c(() => K.value && X.value), Te = "capture" in document.createElement("input"), Ee = c(() => {
181
- let t = F.fileUpload?.allowedMimeTypes ?? [];
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(() => (F.fileUpload?.allowedMimeTypes ?? []).filter((e) => e.startsWith("image/")).join(",")), Q = c(() => Te && De.value.length > 0), $ = () => {
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 = (e) => {
188
- for (let t of e) N("file-select", t);
187
+ }, ke = () => {
188
+ B.value?.click();
189
189
  }, Ae = (e) => {
190
- let t = e.target;
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 = M.value.find((t) => t.id === e);
194
- t && URL.revokeObjectURL(t.localUrl), M.value = M.value.filter((t) => t.id !== e);
195
- }, Me = C(!0), Ne = () => {
196
- Me.value = !1;
197
- }, Pe = c(() => {
198
- if (F.attachmentNotice) return [{
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: F.attachmentNotice,
202
- dismiss: () => N("dismiss-attachment-notice")
203
+ text: I.attachmentNotice,
204
+ dismiss: () => P("dismiss-attachment-notice")
203
205
  }];
204
206
  let e = [];
205
- for (let t of F.answerNotices ?? []) e.push({
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: () => N("open-answer-notice", t.id),
210
- dismiss: () => N("dismiss-answer-notice", t.id)
211
+ open: () => P("open-answer-notice", t.id),
212
+ dismiss: () => P("dismiss-answer-notice", t.id)
211
213
  });
212
- return F.pageNotice && e.push({
214
+ return I.pageNotice && e.push({
213
215
  id: "page",
214
216
  icon: "ri:pages-line",
215
- text: F.pageNotice,
216
- dismiss: () => N("dismiss-page-notice")
217
- }), F.dismissableNotice && Me.value && e.push({
217
+ text: I.pageNotice,
218
+ dismiss: () => P("dismiss-page-notice")
219
+ }), I.dismissableNotice && Ne.value && e.push({
218
220
  id: "dismissable",
219
- markdown: F.dismissableNotice,
220
- dismiss: Ne
221
+ markdown: I.dismissableNotice,
222
+ dismiss: Pe
221
223
  }), e;
222
- }), Fe = () => {
223
- B.value?.querySelector("button:focus-visible") && I.value?.focus();
224
- }, Ie = () => {
225
- Fe(), N("stop-generation");
224
+ }), Ie = () => {
225
+ V.value?.querySelector("button:focus-visible") && L.value?.focus();
226
226
  }, Le = () => {
227
- X.value && (Fe(), xe(), N("submit"), V.value = "", j.value = "", v(() => {
228
- I.value && (I.value.value = "", P.update(I.value));
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
- }, Re = (e) => {
231
- e.shiftKey || e.isComposing || e.keyCode === 229 || (e.preventDefault(), Le());
232
+ }, ze = (e) => {
233
+ e.shiftKey || e.isComposing || e.keyCode === 229 || (e.preventDefault(), Re());
232
234
  };
233
235
  x(() => {
234
- I.value && P(I.value);
236
+ L.value && F(L.value);
235
237
  });
236
- let ze = 0;
237
- return oe(I, ([e]) => {
238
+ let Be = 0;
239
+ return ae(L, ([e]) => {
238
240
  let t = e?.contentRect.width ?? 0;
239
- I.value && t !== ze && (ze = t, P.update(I.value));
240
- }), O(() => F.placeholder, async () => {
241
- await v(), I.value && P.update(I.value);
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
- U(), I.value && P.destroy(I.value);
244
- for (let e of M.value) URL.revokeObjectURL(e.localUrl);
245
- }), g({ focus: () => I.value?.focus() }), (e, c) => {
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", se, [Pe.value.length ? (S(), d("div", ce, [(S(!0), d(s, null, te(Pe.value, (t) => (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", le, w(t.text), 1)),
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: B,
280
+ ref: V,
279
281
  class: "pk-chatbot-input__form",
280
- onSubmit: ae(Le, ["prevent"])
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, w(h.pointer.kind === "text" ? `«${h.pointer.label}»` : h.pointer.label), 1),
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[0] ||= (e) => N("remove-pointer")
312
+ onClick: c[1] ||= (e) => P("remove-pointer")
294
313
  }, null, 8, ["title"])
295
314
  ])) : u("", !0),
296
- M.value.length ? (S(), d("div", fe, [(S(!0), d(s, null, te(M.value, (e) => (S(), l(r, {
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) => je(e.id)
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
- ne(e.$slots, "prepend"),
319
- h.fileUpload && h.fileUpload.enabled && (Q.value || e.$slots["additional-actions"]) ? (S(), l(x, ee(_({ key: 0 }, {
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: k(({ init: t, toggle: n, aria: r }) => [f("button", _({ ref: (e) => t(e) }, r, {
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: K.value,
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: k(() => [
336
- Q.value ? (S(), l(b, {
354
+ items: A(() => [
355
+ $.value ? (S(), l(b, {
337
356
  key: 0,
338
- disabled: K.value || h.attachmentLimitReached,
339
- onClick: Oe
357
+ disabled: q.value || h.attachmentLimitReached,
358
+ onClick: ke
340
359
  }, {
341
- default: k(() => [m(g, {
360
+ default: A(() => [m(g, {
342
361
  name: "ri:camera-line",
343
362
  class: "pk-chatbot-input__dropdown-icon"
344
- }), p(" " + w(e.$t("action.takePhoto")), 1)]),
363
+ }), p(" " + T(e.$t("action.takePhoto")), 1)]),
345
364
  _: 1
346
365
  }, 8, ["disabled"])) : u("", !0),
347
366
  m(b, {
348
- disabled: K.value || h.attachmentLimitReached,
349
- onClick: $
367
+ disabled: q.value || h.attachmentLimitReached,
368
+ onClick: Oe
350
369
  }, {
351
- default: k(() => [m(g, {
370
+ default: A(() => [m(g, {
352
371
  name: "ri:attachment-line",
353
372
  class: "pk-chatbot-input__dropdown-icon"
354
- }), p(" " + w(e.$t("action.attachFile")), 1)]),
373
+ }), p(" " + T(e.$t("action.attachFile")), 1)]),
355
374
  _: 1
356
375
  }, 8, ["disabled"]),
357
- ne(e.$slots, "additional-actions")
376
+ te(e.$slots, "additional-actions")
358
377
  ]),
359
378
  _: 3
360
- }, 16)) : h.fileUpload && h.fileUpload.enabled ? (S(), l(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: K.value || h.attachmentLimitReached,
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: R,
389
+ ref: z,
371
390
  type: "file",
372
391
  hidden: "",
373
392
  multiple: "",
374
393
  accept: Ee.value,
375
- onChange: Ae
394
+ onChange: je
376
395
  }, null, 40, he)) : u("", !0),
377
- h.fileUpload && h.fileUpload.enabled && Q.value ? (S(), d("input", {
396
+ h.fileUpload && h.fileUpload.enabled && $.value ? (S(), d("input", {
378
397
  key: 3,
379
398
  ref_key: "cameraInputEl",
380
- ref: z,
399
+ ref: B,
381
400
  type: "file",
382
401
  capture: "environment",
383
402
  hidden: "",
384
403
  accept: De.value,
385
- onChange: Ae
404
+ onChange: je
386
405
  }, null, 40, ge)) : u("", !0),
387
- h.pointerAvailable ? (S(), l(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: K.value,
393
- onClick: c[1] ||= (e) => N("point")
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: I,
402
- value: V.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 ? T(q) : void 0,
409
- "aria-invalid": Y.value || void 0,
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: ie(Re, ["enter"])
431
+ onKeydown: re(ze, ["enter"])
413
432
  }, null, 40, ve)]),
414
433
  h.maxMessageLength ? (S(), d("div", {
415
434
  key: 5,
416
- id: T(q),
417
- class: y(["pk-chatbot-input__counter", { "pk-chatbot-input__counter--over": Y.value }])
418
- }, [p(w(e.$n(J.value, "integer")) + "/", 1), f("span", be, w(e.$n(h.maxMessageLength, "integer")), 1)], 10, ye)) : u("", !0),
419
- h.voiceEnabled && !W.value ? (S(), l(L, {
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: K.value,
424
- onClick: c[2] ||= (e) => N("voice-start")
442
+ disabled: q.value,
443
+ onClick: c[3] ||= (e) => P("voice-start")
425
444
  }, null, 8, ["title", "disabled"])) : u("", !0),
426
- W.value ? (S(), l(L, {
445
+ G.value ? (S(), l(R, {
427
446
  key: 7,
428
447
  icon: "ri:stop-fill",
429
- modifiers: Z.value ? void 0 : "primary",
448
+ modifiers: Q.value ? void 0 : "primary",
430
449
  title: e.$t("action.stop"),
431
- onClick: Ie
450
+ onClick: Le
432
451
  }, null, 8, ["modifiers", "title"])) : u("", !0),
433
- Z.value ? (S(), l(L, {
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"])) : W.value ? u("", !0) : (S(), l(L, {
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: G.value ? "loading-loop" : "ri:arrow-up-line",
462
+ icon: K.value ? "loading-loop" : "ri:arrow-up-line",
444
463
  title: e.$t("action.submit"),
445
- disabled: !X.value
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 { L as n, R as t };
475
+ export { R as n, z as t };
457
476
 
458
- //# sourceMappingURL=PkChatbotInput-BK7f1jFE.js.map
477
+ //# sourceMappingURL=PkChatbotInput-Bs8nn-Jz.js.map