@8wave/ai-elements 0.99.0-beta.1 → 0.99.0

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 (156) hide show
  1. package/{dist-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js → dist/_chunks/PkStreamingMarkdown-6Xx9n1ue.js} +379 -362
  2. package/dist/_chunks/PkStreamingMarkdown-6Xx9n1ue.js.map +1 -0
  3. package/dist/_chunks/{PkToolRequestGeolocation-BJ9NJZIg.js → PkToolRequestGeolocation-B73evGBg.js} +2 -2
  4. package/dist/_chunks/{PkToolRequestGeolocation-BJ9NJZIg.js.map → PkToolRequestGeolocation-B73evGBg.js.map} +1 -1
  5. package/dist/_chunks/{PkToolRequestOAuthConnection-DdvJ6n1K.js → PkToolRequestOAuthConnection-BWP5dsK_.js} +3 -3
  6. package/dist/_chunks/{PkToolRequestOAuthConnection-DdvJ6n1K.js.map → PkToolRequestOAuthConnection-BWP5dsK_.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShowArtifact-BaGEr7O9.js → PkToolShowArtifact-bYYaMGxq.js} +7 -7
  8. package/dist/_chunks/{PkToolShowArtifact-BaGEr7O9.js.map → PkToolShowArtifact-bYYaMGxq.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowCalendarEvent-BYnhl2er.js → PkToolShowCalendarEvent-DdEWaTj-.js} +4 -4
  10. package/dist/_chunks/{PkToolShowCalendarEvent-BYnhl2er.js.map → PkToolShowCalendarEvent-DdEWaTj-.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowComparison-DahL5vHr.js → PkToolShowComparison-Dcar7HPW.js} +4 -4
  12. package/dist/_chunks/{PkToolShowComparison-DahL5vHr.js.map → PkToolShowComparison-Dcar7HPW.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-upUNZtId.js → PkToolShowContactForm-DtjVW-n6.js} +13 -13
  14. package/dist/_chunks/{PkToolShowContactForm-upUNZtId.js.map → PkToolShowContactForm-DtjVW-n6.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowDiagram-Jq_4KWiK.js → PkToolShowDiagram-X35nsoIY.js} +8 -8
  16. package/dist/_chunks/{PkToolShowDiagram-Jq_4KWiK.js.map → PkToolShowDiagram-X35nsoIY.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowEmail-CtmpDS1B.js → PkToolShowEmail-jVoK8qEh.js} +4 -4
  18. package/dist/_chunks/{PkToolShowEmail-CtmpDS1B.js.map → PkToolShowEmail-jVoK8qEh.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowForm-dFuoqTPs.js → PkToolShowForm-BP8asXtz.js} +101 -79
  20. package/dist/_chunks/PkToolShowForm-BP8asXtz.js.map +1 -0
  21. package/dist/_chunks/{PkToolShowImageGallery-mLq2p3aH.js → PkToolShowImageGallery-WQL3T4Hr.js} +2 -2
  22. package/dist/_chunks/{PkToolShowImageGallery-mLq2p3aH.js.map → PkToolShowImageGallery-WQL3T4Hr.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowLocation-SbgTbuGu.js → PkToolShowLocation-w2t7lKpb.js} +4 -4
  24. package/dist/_chunks/{PkToolShowLocation-SbgTbuGu.js.map → PkToolShowLocation-w2t7lKpb.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowMessage-CAVpDTzd.js → PkToolShowMessage-BPo7WPim.js} +4 -4
  26. package/dist/_chunks/{PkToolShowMessage-CAVpDTzd.js.map → PkToolShowMessage-BPo7WPim.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowProductList-puiPFItN.js → PkToolShowProductList-BbY4ni7Y.js} +2 -2
  28. package/dist/_chunks/{PkToolShowProductList-puiPFItN.js.map → PkToolShowProductList-BbY4ni7Y.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowQrCode-CctXvRyG.js → PkToolShowQrCode-CN0ms27N.js} +4 -4
  30. package/dist/_chunks/{PkToolShowQrCode-CctXvRyG.js.map → PkToolShowQrCode-CN0ms27N.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSources-DwB6VXrK.js → PkToolShowSources-D2tBcx7n.js} +18 -18
  32. package/dist/_chunks/{PkToolShowSources-DwB6VXrK.js.map → PkToolShowSources-D2tBcx7n.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSuggestedReply-QEcIhSxa.js → PkToolShowSuggestedReply-Cdh_elSh.js} +2 -2
  34. package/dist/_chunks/{PkToolShowSuggestedReply-QEcIhSxa.js.map → PkToolShowSuggestedReply-Cdh_elSh.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowVideo-DoLoI8_N.js → PkToolShowVideo-D3aU5FMO.js} +2 -2
  36. package/dist/_chunks/{PkToolShowVideo-DoLoI8_N.js.map → PkToolShowVideo-D3aU5FMO.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowWeather-C2rPCQ_K.js → PkToolShowWeather-CzanXIJp.js} +3 -3
  38. package/dist/_chunks/{PkToolShowWeather-C2rPCQ_K.js.map → PkToolShowWeather-CzanXIJp.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowWebPages-BBJYzF8V.js → PkToolShowWebPages-DkMJrWmT.js} +2 -2
  40. package/dist/_chunks/{PkToolShowWebPages-BBJYzF8V.js.map → PkToolShowWebPages-DkMJrWmT.js.map} +1 -1
  41. package/dist/_chunks/{VvCheckbox.es-D5d8k9yP.js → VvCheckbox.es-CRhIKQNR.js} +2 -2
  42. package/dist/_chunks/{VvCheckbox.es-D5d8k9yP.js.map → VvCheckbox.es-CRhIKQNR.js.map} +1 -1
  43. package/dist/_chunks/{VvCheckboxGroup.es-DVnsOjX0.js → VvCheckboxGroup.es-gOy2kM1Y.js} +5 -5
  44. package/dist/_chunks/{VvCheckboxGroup.es-DVnsOjX0.js.map → VvCheckboxGroup.es-gOy2kM1Y.js.map} +1 -1
  45. package/dist/_chunks/{VvCombobox.es-CFA-K-cQ.js → VvCombobox.es-BOwH3LmO.js} +9 -9
  46. package/dist/_chunks/VvCombobox.es-BOwH3LmO.js.map +1 -0
  47. package/dist/_chunks/{VvInputText.es-csEQ-bSG.js → VvInputText.es-D8nXroKO.js} +536 -513
  48. package/dist/_chunks/VvInputText.es-D8nXroKO.js.map +1 -0
  49. package/dist/_chunks/{VvRadio.es-BpymhC73.js → VvRadio.es-Djy5J33A.js} +2 -2
  50. package/dist/_chunks/{VvRadio.es-BpymhC73.js.map → VvRadio.es-Djy5J33A.js.map} +1 -1
  51. package/dist/_chunks/{VvRadioGroup.es-CSNzOJKx.js → VvRadioGroup.es-DQq3JYCR.js} +5 -5
  52. package/dist/_chunks/VvRadioGroup.es-DQq3JYCR.js.map +1 -0
  53. package/dist/_chunks/{VvSelect.es-CjKMd0nH.js → VvSelect.es-CE4x1ww0.js} +4 -4
  54. package/dist/_chunks/{VvSelect.es-CjKMd0nH.js.map → VvSelect.es-CE4x1ww0.js.map} +1 -1
  55. package/dist/_chunks/VvTextarea.es-BU2vqdEQ.js +1129 -0
  56. package/dist/_chunks/VvTextarea.es-BU2vqdEQ.js.map +1 -0
  57. package/dist/_chunks/{dist-BNET2z7b.js → dist-CvMCBce7.js} +39 -21
  58. package/dist/_chunks/dist-CvMCBce7.js.map +1 -0
  59. package/dist/_chunks/dot-prop-CObyt75F.js +141 -0
  60. package/dist/_chunks/dot-prop-CObyt75F.js.map +1 -0
  61. package/dist/_chunks/{floating-ui.vue-CIKvCpTA.js → floating-ui.vue-BacoFpVq.js} +278 -305
  62. package/dist/_chunks/floating-ui.vue-BacoFpVq.js.map +1 -0
  63. package/dist/_chunks/{index.es-u1dF1xg2.js → index.es-DpqfagWZ.js} +12 -12
  64. package/dist/_chunks/{index.es-u1dF1xg2.js.map → index.es-DpqfagWZ.js.map} +1 -1
  65. package/dist/_chunks/{index.es-BYny0uhz.js → index.es-_oXVRjHy.js} +2352 -2329
  66. package/dist/_chunks/index.es-_oXVRjHy.js.map +1 -0
  67. package/dist/ai-elements.es.js +4087 -5205
  68. package/dist/ai-elements.es.js.map +1 -1
  69. package/dist-vue/PkChatbot.js +1 -1
  70. package/dist-vue/PkChatbotAuth.js +1 -1
  71. package/dist-vue/PkChatbotEmptyState.js +1 -1
  72. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  73. package/dist-vue/PkChatbotInput.js +1 -1
  74. package/dist-vue/PkChatbotMessages.js +1 -1
  75. package/dist-vue/PkChatbotSteps.js +1 -1
  76. package/dist-vue/PkChatbotViewChat.js +1 -1
  77. package/dist-vue/PkChatbotViewConversations.js +1 -1
  78. package/dist-vue/PkChatbotViewFiles.js +1 -1
  79. package/dist-vue/PkChatbotViewProfile.js +1 -1
  80. package/dist-vue/_chunks/PkChatbot-Bf5uY3cO.js +236 -0
  81. package/dist-vue/_chunks/{PkChatbot-BlG1WlAO.js.map → PkChatbot-Bf5uY3cO.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkChatbotAuth-C_L2xWuD.js → PkChatbotAuth-BGn2MDYD.js} +2 -2
  83. package/dist-vue/_chunks/{PkChatbotAuth-C_L2xWuD.js.map → PkChatbotAuth-BGn2MDYD.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkChatbotEmptyState-BGOC6vxr.js → PkChatbotEmptyState-CPqLqXek.js} +2 -2
  85. package/dist-vue/_chunks/{PkChatbotEmptyState-BGOC6vxr.js.map → PkChatbotEmptyState-CPqLqXek.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkChatbotFeedbackForm-BSe40qlc.js → PkChatbotFeedbackForm-C_y__RH8.js} +2 -2
  87. package/dist-vue/_chunks/{PkChatbotFeedbackForm-BSe40qlc.js.map → PkChatbotFeedbackForm-C_y__RH8.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkChatbotInput-DTazYlPd.js → PkChatbotInput-jvb0vuak.js} +2 -2
  89. package/dist-vue/_chunks/{PkChatbotInput-DTazYlPd.js.map → PkChatbotInput-jvb0vuak.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkChatbotMessages-BrufA7o1.js → PkChatbotMessages-B3G12zah.js} +246 -246
  91. package/dist-vue/_chunks/{PkChatbotMessages-BrufA7o1.js.map → PkChatbotMessages-B3G12zah.js.map} +1 -1
  92. package/dist-vue/_chunks/PkChatbotSteps-BdU6YC_N.js +172 -0
  93. package/dist-vue/_chunks/{PkChatbotSteps-Dv9NkYER.js.map → PkChatbotSteps-BdU6YC_N.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkChatbotViewChat-CAqvbbfN.js → PkChatbotViewChat-c0Ecpzoc.js} +6 -6
  95. package/dist-vue/_chunks/{PkChatbotViewChat-CAqvbbfN.js.map → PkChatbotViewChat-c0Ecpzoc.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkChatbotViewConversations-Cq41H-tc.js → PkChatbotViewConversations-BfhRCA_1.js} +2 -2
  97. package/dist-vue/_chunks/{PkChatbotViewConversations-Cq41H-tc.js.map → PkChatbotViewConversations-BfhRCA_1.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkChatbotViewFiles-DNuzmBJc.js → PkChatbotViewFiles-BipRoidH.js} +2 -2
  99. package/dist-vue/_chunks/{PkChatbotViewFiles-DNuzmBJc.js.map → PkChatbotViewFiles-BipRoidH.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkChatbotViewProfile-C0BXIY2N.js → PkChatbotViewProfile-DuLwYpGZ.js} +2 -2
  101. package/dist-vue/_chunks/{PkChatbotViewProfile-C0BXIY2N.js.map → PkChatbotViewProfile-DuLwYpGZ.js.map} +1 -1
  102. package/{dist/_chunks/PkStreamingMarkdown-Djw604Ny.js → dist-vue/_chunks/PkStreamingMarkdown-CjBMQ18U.js} +344 -347
  103. package/dist-vue/_chunks/PkStreamingMarkdown-CjBMQ18U.js.map +1 -0
  104. package/dist-vue/_chunks/{PkToolShowArtifact-CTBwt4DN.js → PkToolShowArtifact-COwSXmF4.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowArtifact-CTBwt4DN.js.map → PkToolShowArtifact-COwSXmF4.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowContactForm-B6-MsExL.js → PkToolShowContactForm-DRRtCCxB.js} +10 -10
  107. package/dist-vue/_chunks/{PkToolShowContactForm-B6-MsExL.js.map → PkToolShowContactForm-DRRtCCxB.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolShowForm-CQuX08lk.js → PkToolShowForm-j7Ha-0X3.js} +109 -87
  109. package/dist-vue/_chunks/PkToolShowForm-j7Ha-0X3.js.map +1 -0
  110. package/dist-vue/_chunks/{PkToolShowSources-CFh-i60o.js → PkToolShowSources-BVLw4W5l.js} +43 -43
  111. package/dist-vue/_chunks/{PkToolShowSources-CFh-i60o.js.map → PkToolShowSources-BVLw4W5l.js.map} +1 -1
  112. package/dist-vue/_chunks/{createChatbotApiClient-BMZltBLh.js → createChatbotApiClient-IH6wBh4s.js} +365 -381
  113. package/dist-vue/_chunks/createChatbotApiClient-IH6wBh4s.js.map +1 -0
  114. package/dist-vue/_chunks/{index.es-XfWQ82pb.js → index.es-Bk1O0p8N.js} +166 -156
  115. package/dist-vue/_chunks/index.es-Bk1O0p8N.js.map +1 -0
  116. package/dist-vue/_chunks/{useChatbotStore-DZiorgLW.js → useChatbotStore-C3uKi2FS.js} +3 -5
  117. package/dist-vue/_chunks/useChatbotStore-C3uKi2FS.js.map +1 -0
  118. package/dist-vue/api.js +1 -1
  119. package/dist-vue/composables.js +2 -2
  120. package/dist-vue/index.js +4430 -4221
  121. package/dist-vue/index.js.map +1 -1
  122. package/dist-vue/locales.js +27 -7
  123. package/dist-vue/packages/components/src/PkCheckboxField.d.ts +1 -1
  124. package/dist-vue/packages/components/src/PkOfflineScreen.d.ts +18 -0
  125. package/dist-vue/packages/components/src/PkPwaNotices.d.ts +19 -0
  126. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +9 -3
  127. package/dist-vue/packages/components/src/index.d.ts +3 -3
  128. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -0
  129. package/dist-vue/packages/composable/src/index.d.ts +1 -0
  130. package/dist-vue/packages/composable/src/useConnectivity.d.ts +28 -0
  131. package/dist-vue/packages/models/src/schema/Agent.d.ts +81 -0
  132. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +24 -0
  133. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +24 -0
  134. package/dist-vue/style.css +1 -1
  135. package/package.json +3 -3
  136. package/dist/_chunks/PkStreamingMarkdown-Djw604Ny.js.map +0 -1
  137. package/dist/_chunks/PkToolShowForm-dFuoqTPs.js.map +0 -1
  138. package/dist/_chunks/VvCombobox.es-CFA-K-cQ.js.map +0 -1
  139. package/dist/_chunks/VvInputText.es-csEQ-bSG.js.map +0 -1
  140. package/dist/_chunks/VvRadioGroup.es-CSNzOJKx.js.map +0 -1
  141. package/dist/_chunks/VvTextarea.es-eEyRRpuT.js +0 -1109
  142. package/dist/_chunks/VvTextarea.es-eEyRRpuT.js.map +0 -1
  143. package/dist/_chunks/dist-BNET2z7b.js.map +0 -1
  144. package/dist/_chunks/dot-prop-BXrC9bAX.js +0 -131
  145. package/dist/_chunks/dot-prop-BXrC9bAX.js.map +0 -1
  146. package/dist/_chunks/floating-ui.vue-CIKvCpTA.js.map +0 -1
  147. package/dist/_chunks/index.es-BYny0uhz.js.map +0 -1
  148. package/dist-vue/_chunks/PkChatbot-BlG1WlAO.js +0 -236
  149. package/dist-vue/_chunks/PkChatbotSteps-Dv9NkYER.js +0 -172
  150. package/dist-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js.map +0 -1
  151. package/dist-vue/_chunks/PkToolShowForm-CQuX08lk.js.map +0 -1
  152. package/dist-vue/_chunks/createChatbotApiClient-BMZltBLh.js.map +0 -1
  153. package/dist-vue/_chunks/index.es-XfWQ82pb.js.map +0 -1
  154. package/dist-vue/_chunks/useChatbotStore-DZiorgLW.js.map +0 -1
  155. package/dist-vue/packages/components/src/PkPwaInstallPrompt.d.ts +0 -4
  156. package/dist-vue/packages/components/src/PkPwaOfflineNotice.d.ts +0 -4
@@ -1,56 +1,56 @@
1
1
  import { t as e } from "./PkChatbotError-B2iob9cQ.js";
2
+ import { t } from "./PkStreamingMarkdown-CjBMQ18U.js";
2
3
  import "./src-8QXYVWIx.js";
3
- import { a as t, c as n, o as r, r as i, s as a, t as o } from "./message-RohfrdWS.js";
4
- import { r as s } from "./text-CeT0hpJK.js";
5
- import { t as c } from "./PkRelativeTime-C9zd1ffO.js";
6
- import { t as l } from "./PkStreamingMarkdown-DEhbK-3c.js";
7
- import { t as u } from "./PkChatbotFeedbackForm-BSe40qlc.js";
4
+ import { a as n, c as r, o as i, r as a, s as o, t as s } from "./message-RohfrdWS.js";
5
+ import { r as c } from "./text-CeT0hpJK.js";
6
+ import { t as l } from "./PkRelativeTime-C9zd1ffO.js";
7
+ import { t as u } from "./PkChatbotFeedbackForm-C_y__RH8.js";
8
8
  import { t as d } from "./PkChatbotMessageFeedback-BYmrVaCE.js";
9
9
  import { t as f } from "./PkChatbotFilePreview-DyrszALJ.js";
10
- import { a as p, f as m, h, i as g, m as _, o as v, p as ee, r as te, s as y, t as b, u as ne } from "./utils-Cru8TJxe.js";
11
- import { n as re, t as ie } from "./PkChatbotSteps-Dv9NkYER.js";
12
- import { t as x } from "./PkChatbotOutlineRail-np4g6vsz.js";
13
- import { VvButton as S, VvButtonGroup as C, VvIcon as ae } from "@volverjs/ui-vue/components";
14
- import { Fragment as w, Transition as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as oe, createVNode as j, defineAsyncComponent as M, defineComponent as N, mergeProps as se, nextTick as P, normalizeClass as F, normalizeStyle as ce, onBeforeUnmount as I, onMounted as le, openBlock as L, ref as R, renderList as ue, renderSlot as de, resolveDynamicComponent as fe, toDisplayString as z, unref as B, useSlots as pe, useTemplateRef as me, watch as V, withCtx as H, withModifiers as U } from "vue";
10
+ import { a as p, f as m, h, i as g, m as _, o as v, p as y, r as ee, s as b, t as x, u as te } from "./utils-Cru8TJxe.js";
11
+ import { n as ne, t as re } from "./PkChatbotSteps-BdU6YC_N.js";
12
+ import { t as S } from "./PkChatbotOutlineRail-np4g6vsz.js";
13
+ import { VvButton as C, VvButtonGroup as w, VvIcon as ie } from "@volverjs/ui-vue/components";
14
+ import { Fragment as T, Transition as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createTextVNode as ae, createVNode as M, defineAsyncComponent as N, defineComponent as P, mergeProps as oe, nextTick as F, normalizeClass as I, normalizeStyle as se, onBeforeUnmount as ce, onMounted as le, openBlock as L, ref as R, renderList as ue, renderSlot as de, resolveDynamicComponent as fe, toDisplayString as z, unref as B, useSlots as pe, useTemplateRef as me, watch as V, withCtx as H, withModifiers as U } from "vue";
15
15
  import { useI18n as he } from "vue-i18n";
16
16
  //#region ../../packages/components/src/chat/toolComponentMap.ts
17
17
  var ge = {
18
- requestOAuthConnection: M(() => import("./PkToolRequestOAuthConnection-lo7hCSBC.js")),
19
- showArtifact: M(() => import("./PkToolShowArtifact-CTBwt4DN.js").then((e) => e.n)),
20
- showCalendarEvent: M(() => import("./PkToolShowCalendarEvent-BmheHwOM.js").then((e) => e.n)),
21
- showComparison: M(() => import("./PkToolShowComparison-XJuKPuK2.js").then((e) => e.n)),
22
- showContactForm: M(() => import("./PkToolShowContactForm-B6-MsExL.js").then((e) => e.n)),
23
- showDiagram: M(() => import("./PkToolShowDiagram-G0hdi_Vf.js")),
24
- showEmail: M(() => import("./PkToolShowEmail-C591LR5N.js").then((e) => e.n)),
25
- showImageGallery: M(() => import("./PkToolShowImageGallery-Bj7YlqbP.js").then((e) => e.n)),
26
- showLocation: M(() => import("./PkToolShowLocation-5G8p9mED.js").then((e) => e.n)),
27
- showMessage: M(() => import("./PkToolShowMessage-CbXERPHI.js").then((e) => e.n)),
28
- showForm: M(() => import("./PkToolShowForm-CQuX08lk.js").then((e) => e.n)),
29
- showMultipleChoice: M(() => import("./PkToolShowForm-CQuX08lk.js").then((e) => e.n)),
30
- showProductList: M(() => import("./PkToolShowProductList-DXMN2UuE.js").then((e) => e.n)),
31
- showQrCode: M(() => import("./PkToolShowQrCode-DEAvfLFu.js").then((e) => e.n)),
32
- showSources: M(() => import("./PkToolShowSources-CFh-i60o.js").then((e) => e.n)),
33
- showSuggestedReply: M(() => import("./PkToolShowSuggestedReply-DoCHIEzz.js").then((e) => e.n)),
34
- showVideo: M(() => import("./PkToolShowVideo-Ox8rFd7j.js")),
35
- showWeather: M(() => import("./PkToolShowWeather-CxDO_5ni.js")),
36
- showWebPages: M(() => import("./PkToolShowWebPages-CsACREOH.js").then((e) => e.n))
18
+ requestOAuthConnection: N(() => import("./PkToolRequestOAuthConnection-lo7hCSBC.js")),
19
+ showArtifact: N(() => import("./PkToolShowArtifact-COwSXmF4.js").then((e) => e.n)),
20
+ showCalendarEvent: N(() => import("./PkToolShowCalendarEvent-BmheHwOM.js").then((e) => e.n)),
21
+ showComparison: N(() => import("./PkToolShowComparison-XJuKPuK2.js").then((e) => e.n)),
22
+ showContactForm: N(() => import("./PkToolShowContactForm-DRRtCCxB.js").then((e) => e.n)),
23
+ showDiagram: N(() => import("./PkToolShowDiagram-G0hdi_Vf.js")),
24
+ showEmail: N(() => import("./PkToolShowEmail-C591LR5N.js").then((e) => e.n)),
25
+ showImageGallery: N(() => import("./PkToolShowImageGallery-Bj7YlqbP.js").then((e) => e.n)),
26
+ showLocation: N(() => import("./PkToolShowLocation-5G8p9mED.js").then((e) => e.n)),
27
+ showMessage: N(() => import("./PkToolShowMessage-CbXERPHI.js").then((e) => e.n)),
28
+ showForm: N(() => import("./PkToolShowForm-j7Ha-0X3.js").then((e) => e.n)),
29
+ showMultipleChoice: N(() => import("./PkToolShowForm-j7Ha-0X3.js").then((e) => e.n)),
30
+ showProductList: N(() => import("./PkToolShowProductList-DXMN2UuE.js").then((e) => e.n)),
31
+ showQrCode: N(() => import("./PkToolShowQrCode-DEAvfLFu.js").then((e) => e.n)),
32
+ showSources: N(() => import("./PkToolShowSources-BVLw4W5l.js").then((e) => e.n)),
33
+ showSuggestedReply: N(() => import("./PkToolShowSuggestedReply-DoCHIEzz.js").then((e) => e.n)),
34
+ showVideo: N(() => import("./PkToolShowVideo-Ox8rFd7j.js")),
35
+ showWeather: N(() => import("./PkToolShowWeather-CxDO_5ni.js")),
36
+ showWebPages: N(() => import("./PkToolShowWebPages-CsACREOH.js").then((e) => e.n))
37
37
  }, W = {
38
38
  key: 0,
39
39
  class: "text-12 text-word-3 m-0 mb-xs"
40
- }, G = /* @__PURE__ */ N({
40
+ }, G = /* @__PURE__ */ P({
41
41
  __name: "PkToolApprovalPreviewMessage",
42
42
  props: { input: {} },
43
43
  setup(e) {
44
- let t = e, n = E(() => {
44
+ let t = e, n = D(() => {
45
45
  let e = t.input;
46
46
  return typeof e?.message == "string" ? e.message : "";
47
47
  });
48
- return (e, t) => n.value ? (L(), k("p", W, z(n.value), 1)) : O("", !0);
48
+ return (e, t) => n.value ? (L(), A("p", W, z(n.value), 1)) : k("", !0);
49
49
  }
50
- }), _e = { [b]: G }, ve = {
50
+ }), _e = { [x]: G }, ve = {
51
51
  key: 0,
52
52
  class: "text-12 text-word-3 m-0 mb-xs"
53
- }, ye = /* @__PURE__ */ N({
53
+ }, ye = /* @__PURE__ */ P({
54
54
  __name: "PkToolApprovalCard",
55
55
  props: {
56
56
  part: {},
@@ -58,51 +58,51 @@ var ge = {
58
58
  },
59
59
  emits: ["respond"],
60
60
  setup(e, { emit: t }) {
61
- let n = e, r = t, { t: a } = he({ useScope: "global" }), o = E(() => n.part), s = E(() => i(n.part)), c = E(() => s.value === b), l = E(() => c.value ? o.value.state === "input-available" : o.value.state === "approval-requested"), u = E(() => l.value && n.actionable === !0), d = E(() => l.value && n.actionable !== !0), f = E(() => c.value ? o.value.output === "confirmed" : o.value.approval?.approved === !0), p = E(() => c.value ? o.value.output === "cancelled" : o.value.approval?.approved === !1 || o.value.state === "output-denied"), m = E(() => _e[s.value]), h = E(() => {
61
+ let n = e, r = t, { t: i } = he({ useScope: "global" }), o = D(() => n.part), s = D(() => a(n.part)), c = D(() => s.value === x), l = D(() => c.value ? o.value.state === "input-available" : o.value.state === "approval-requested"), u = D(() => l.value && n.actionable === !0), d = D(() => l.value && n.actionable !== !0), f = D(() => c.value ? o.value.output === "confirmed" : o.value.approval?.approved === !0), p = D(() => c.value ? o.value.output === "cancelled" : o.value.approval?.approved === !1 || o.value.state === "output-denied"), m = D(() => _e[s.value]), h = D(() => {
62
62
  if (d.value) return {
63
63
  icon: "ri:time-line",
64
- message: a("toolApproval.expired")
64
+ message: i("toolApproval.expired")
65
65
  };
66
66
  if (f.value) return {
67
67
  icon: "ri:check-line",
68
- message: a(c.value ? "toolApproval.confirmed" : "toolApproval.approved")
68
+ message: i(c.value ? "toolApproval.confirmed" : "toolApproval.approved")
69
69
  };
70
70
  if (p.value) return {
71
71
  icon: "ri:close-line",
72
- message: a(c.value ? "toolApproval.cancelled" : "toolApproval.denied")
72
+ message: i(c.value ? "toolApproval.cancelled" : "toolApproval.denied")
73
73
  };
74
- }), g = E(() => !!h.value && !m.value);
74
+ }), g = D(() => !!h.value && !m.value);
75
75
  return (t, n) => {
76
- let i = S, s = C, d = ae;
77
- return L(), k("div", { class: F(["w-full overflow-hidden transition-all duration-300", { "bg-surface p-sm rounded-xl border border-surface-3": !g.value }]) }, [
78
- j(T, null, {
79
- default: H(() => [!c.value && l.value ? (L(), k("p", ve, z(B(a)("toolApproval.prompt")), 1)) : O("", !0)]),
76
+ let a = C, s = w, d = ie;
77
+ return L(), A("div", { class: I(["w-full overflow-hidden transition-all duration-300", { "bg-surface p-sm rounded-xl border border-surface-3": !g.value }]) }, [
78
+ M(E, null, {
79
+ default: H(() => [!c.value && l.value ? (L(), A("p", ve, z(B(i)("toolApproval.prompt")), 1)) : k("", !0)]),
80
80
  _: 1
81
81
  }),
82
- m.value ? (L(), D(fe(m.value), {
82
+ m.value ? (L(), O(fe(m.value), {
83
83
  key: 0,
84
84
  part: e.part,
85
85
  input: o.value.input
86
- }, null, 8, ["part", "input"])) : O("", !0),
87
- j(T, { mode: "out-in" }, {
88
- default: H(() => [h.value ? (L(), k("p", {
86
+ }, null, 8, ["part", "input"])) : k("", !0),
87
+ M(E, { mode: "out-in" }, {
88
+ default: H(() => [h.value ? (L(), A("p", {
89
89
  key: 1,
90
- class: F(["flex items-center gap-4 text-12 text-word-3 m-0", { "mt-xs": m.value }])
91
- }, [j(d, {
90
+ class: I(["flex items-center gap-4 text-12 text-word-3 m-0", { "mt-xs": m.value }])
91
+ }, [M(d, {
92
92
  name: h.value.icon,
93
93
  class: "shrink-0"
94
- }, null, 8, ["name"]), oe(" " + z(h.value.message), 1)], 2)) : (L(), D(s, { key: 0 }, {
95
- default: H(() => [j(i, {
94
+ }, null, 8, ["name"]), ae(" " + z(h.value.message), 1)], 2)) : (L(), O(s, { key: 0 }, {
95
+ default: H(() => [M(a, {
96
96
  modifiers: "primary-small",
97
97
  disabled: !u.value,
98
98
  icon: "ri:check-line",
99
- label: B(a)("action.proceed"),
99
+ label: B(i)("action.proceed"),
100
100
  onClick: n[0] ||= U((e) => r("respond", !0), ["stop"])
101
- }, null, 8, ["disabled", "label"]), j(i, {
101
+ }, null, 8, ["disabled", "label"]), M(a, {
102
102
  modifiers: "action-quiet-small",
103
103
  disabled: !u.value,
104
104
  icon: "ri:close-line",
105
- label: B(a)("action.cancel"),
105
+ label: B(i)("action.cancel"),
106
106
  onClick: n[1] ||= U((e) => r("respond", !1), ["stop"])
107
107
  }, null, 8, ["disabled", "label"])]),
108
108
  _: 1
@@ -127,12 +127,12 @@ function xe(e) {
127
127
  }, e === "instant" ? 0 : K);
128
128
  }, v = (e) => {
129
129
  e.deltaY < 0 && (l.value = !0);
130
- }, ee = 0, te = (e) => {
131
- ee = e.touches[0]?.clientY ?? 0;
132
- }, y = (e) => {
130
+ }, y = 0, ee = (e) => {
131
+ y = e.touches[0]?.clientY ?? 0;
132
+ }, b = (e) => {
133
133
  let t = e.touches[0]?.clientY ?? 0;
134
- t > ee && (l.value = !0), ee = t;
135
- }, b = () => {
134
+ t > y && (l.value = !0), y = t;
135
+ }, x = () => {
136
136
  if (!t.value) return;
137
137
  let { scrollTop: e, scrollHeight: n, clientHeight: r } = t.value;
138
138
  if (u.value = n - r - e < be, d) {
@@ -140,56 +140,56 @@ function xe(e) {
140
140
  return;
141
141
  }
142
142
  e < g && s?.(), e > g && (u.value && (l.value = !1), c?.()), g = e;
143
- }, ne = () => {
143
+ }, te = () => {
144
144
  if (d || l.value || !t.value) return;
145
145
  let e = t.value, n = e.scrollHeight - e.clientHeight;
146
146
  n <= e.scrollTop || (u.value = !0, d = !0, e.scrollTop = n, requestAnimationFrame(() => {
147
147
  d = !1;
148
148
  }));
149
- }, re = () => {
150
- f || !t.value || (f = new MutationObserver(ne), f.observe(t.value, {
149
+ }, ne = () => {
150
+ f || !t.value || (f = new MutationObserver(te), f.observe(t.value, {
151
151
  childList: !0,
152
152
  subtree: !0,
153
153
  characterData: !0
154
154
  }));
155
- }, ie = () => {
155
+ }, re = () => {
156
156
  f?.disconnect(), f = null;
157
157
  };
158
158
  V(n, (e, t) => {
159
159
  if (e === "streaming" || e === "submitted") {
160
- re();
160
+ ne();
161
161
  return;
162
162
  }
163
- e === "ready" && t === "streaming" || ie();
163
+ e === "ready" && t === "streaming" || re();
164
164
  }), V(r, async () => {
165
165
  if (r() && i() !== "assistant") {
166
- C(), l.value = !1, d = !0;
166
+ w(), l.value = !1, d = !0;
167
167
  try {
168
- await P(), await o?.(), await P();
168
+ await F(), await o?.(), await F();
169
169
  } finally {
170
170
  _();
171
171
  }
172
172
  }
173
173
  });
174
- let x = null, S = () => {
175
- t.value && (t.value.scrollHeight <= t.value.clientHeight || (t.value.scrollTop = t.value.scrollHeight, x && clearTimeout(x), x = setTimeout(C, 300)));
176
- }, C = () => {
177
- p?.disconnect(), p = null, m?.disconnect(), m = null, x &&= (clearTimeout(x), null);
174
+ let S = null, C = () => {
175
+ t.value && (t.value.scrollHeight <= t.value.clientHeight || (t.value.scrollTop = t.value.scrollHeight, S && clearTimeout(S), S = setTimeout(w, 300)));
176
+ }, w = () => {
177
+ p?.disconnect(), p = null, m?.disconnect(), m = null, S &&= (clearTimeout(S), null);
178
178
  };
179
179
  return le(() => {
180
180
  if (!t.value) return;
181
- t.value.addEventListener("wheel", v, { passive: !0 }), t.value.addEventListener("touchstart", te, { passive: !0 }), t.value.addEventListener("touchmove", y, { passive: !0 });
181
+ t.value.addEventListener("wheel", v, { passive: !0 }), t.value.addEventListener("touchstart", ee, { passive: !0 }), t.value.addEventListener("touchmove", b, { passive: !0 });
182
182
  let e = n() === "submitted" || n() === "streaming";
183
- e ? re() : (p = new ResizeObserver(S), p.observe(t.value), m = new MutationObserver(S), m.observe(t.value, {
183
+ e ? ne() : (p = new ResizeObserver(C), p.observe(t.value), m = new MutationObserver(C), m.observe(t.value, {
184
184
  childList: !0,
185
185
  subtree: !0
186
186
  }));
187
187
  let r = a?.() ?? t.value.firstElementChild;
188
- r && (h = new ResizeObserver(ne), h.observe(r)), e || S();
189
- }), I(() => {
190
- t.value?.removeEventListener("wheel", v), t.value?.removeEventListener("touchstart", te), t.value?.removeEventListener("touchmove", y), h?.disconnect(), h = null, ie(), C();
188
+ r && (h = new ResizeObserver(te), h.observe(r)), e || C();
189
+ }), ce(() => {
190
+ t.value?.removeEventListener("wheel", v), t.value?.removeEventListener("touchstart", ee), t.value?.removeEventListener("touchmove", b), h?.disconnect(), h = null, re(), w();
191
191
  }), {
192
- handleScroll: b,
192
+ handleScroll: x,
193
193
  scrollToBottom: _,
194
194
  userScrolledUp: l,
195
195
  isAtBottom: u
@@ -224,7 +224,7 @@ var Se = ["aria-busy"], Ce = {
224
224
  }, Be = { class: "truncate" }, Ve = ["datetime"], He = { class: "truncate" }, Ue = {
225
225
  key: 3,
226
226
  class: "flex items-center gap-4 text-12 text-word-3"
227
- }, We = ["title", "aria-label"], q = /* @__PURE__ */ N({
227
+ }, We = ["title", "aria-label"], q = /* @__PURE__ */ P({
228
228
  __name: "PkChatbotMessages",
229
229
  props: {
230
230
  status: {},
@@ -265,45 +265,45 @@ var Se = ["aria-busy"], Ce = {
265
265
  "approval-respond",
266
266
  "confirm-respond"
267
267
  ],
268
- setup(b, { emit: M }) {
269
- let N = b, I = M, { t: W, d: G, n: _e } = he({ useScope: "global" }), ve = pe(), be = (e, t) => {
270
- if (ee(e)) {
268
+ setup(x, { emit: N }) {
269
+ let P = x, ce = N, { t: W, d: G, n: _e } = he({ useScope: "global" }), ve = pe(), be = (e, t) => {
270
+ if (y(e)) {
271
271
  let n = e.toolCallId;
272
- n && I("confirm-respond", {
272
+ n && ce("confirm-respond", {
273
273
  toolCallId: n,
274
274
  confirmed: t
275
275
  });
276
276
  return;
277
277
  }
278
278
  let n = v(e);
279
- n && I("approval-respond", {
279
+ n && ce("approval-respond", {
280
280
  id: n,
281
281
  approved: t
282
282
  });
283
- }, K = me("scrollEl"), q = me("wrapperEl"), Ge = E(() => h(N.textColor, N.mainColor)), { handleScroll: Ke, scrollToBottom: qe, userScrolledUp: Je, isAtBottom: Ye } = xe({
283
+ }, K = me("scrollEl"), q = me("wrapperEl"), Ge = D(() => h(P.textColor, P.mainColor)), { handleScroll: Ke, scrollToBottom: qe, userScrolledUp: Je, isAtBottom: Ye } = xe({
284
284
  scrollEl: K,
285
- status: () => N.status,
286
- messagesLength: () => N.messages?.length,
287
- lastMessageRole: () => N.messages?.[N.messages.length - 1]?.role,
285
+ status: () => P.status,
286
+ messagesLength: () => P.messages?.length,
287
+ lastMessageRole: () => P.messages?.[P.messages.length - 1]?.role,
288
288
  contentEl: () => q.value,
289
289
  beforeNewMessageScroll: () => it(),
290
- onScrollUp: () => I("scroll-up"),
291
- onScrollDown: () => I("scroll-down")
290
+ onScrollUp: () => ce("scroll-up"),
291
+ onScrollDown: () => ce("scroll-down")
292
292
  }), Xe = () => {
293
293
  Je.value = !1, qe();
294
- }, J = E(() => (N.messages ?? []).filter((e) => e.role === "user").map((e) => ({
294
+ }, J = D(() => (P.messages ?? []).filter((e) => e.role === "user").map((e) => ({
295
295
  id: e.id,
296
- preview: e.parts.find(a)?.text.trim().slice(0, 120) || "…"
296
+ preview: e.parts.find(o)?.text.trim().slice(0, 120) || "…"
297
297
  }))), Ze = R(), Qe = () => K.value?.querySelectorAll(".pk-chatbot-message--user") ?? [], $e = () => {
298
298
  let e = K.value;
299
- if (!e || !N.showScrollToBottom) return;
299
+ if (!e || !P.showScrollToBottom) return;
300
300
  let t = e.getBoundingClientRect().top + e.clientHeight / 2, n = J.value[0]?.id;
301
301
  Qe().forEach((e, r) => {
302
302
  e.getBoundingClientRect().top <= t && (n = J.value[r]?.id);
303
303
  }), Ze.value = n;
304
304
  };
305
305
  V(J, async () => {
306
- await P(), $e();
306
+ await F(), $e();
307
307
  });
308
308
  let et = () => {
309
309
  Ke(), $e();
@@ -314,17 +314,17 @@ var Se = ["aria-busy"], Ce = {
314
314
  behavior: "smooth"
315
315
  }));
316
316
  }, nt = R(0), rt = R(!1), it = async () => {
317
- let e = N.messages;
318
- if (!e?.length || N.disableHeightAdjustment || !(e[e.length - 1].role === "user" || N.status === "submitted" || N.status === "streaming") || (rt.value = !1, await P(), !K.value)) return;
317
+ let e = P.messages;
318
+ if (!e?.length || P.disableHeightAdjustment || !(e[e.length - 1].role === "user" || P.status === "submitted" || P.status === "streaming") || (rt.value = !1, await F(), !K.value)) return;
319
319
  let { paddingTop: t, paddingBottom: n } = getComputedStyle(K.value), r = K.value.clientHeight - Number.parseFloat(t) - Number.parseFloat(n), i = q.value && Number.parseFloat(getComputedStyle(q.value).rowGap) || 0, a = Qe(), o = r - (a[a.length - 1]?.clientHeight ?? 0) - i;
320
- o > 0 && (nt.value = o), await P();
320
+ o > 0 && (nt.value = o), await F();
321
321
  };
322
- V(() => [N.messages?.length, N.messages?.[N.messages.length - 1]?.id], () => it()), le(() => {
323
- (N.status === "submitted" || N.status === "streaming") && it();
324
- }), V(() => N.status, (e) => {
322
+ V(() => [P.messages?.length, P.messages?.[P.messages.length - 1]?.id], () => it()), le(() => {
323
+ (P.status === "submitted" || P.status === "streaming") && it();
324
+ }), V(() => P.status, (e) => {
325
325
  (e === "ready" || e === "error") && (rt.value = !0, nt.value = 0);
326
326
  });
327
- let at = (e) => N.revisedAnswers?.some((t) => t.messageId === e), Y = (e) => N.messageFeedbacks?.find((t) => t.messageId === e), ot = (e, t) => !N.readonlyFeedback && St(e, t), st = (e) => N.readonlyFeedback ? Y(e) : void 0, ct = (e) => st(e)?.vote, lt = (e) => {
327
+ let at = (e) => P.revisedAnswers?.some((t) => t.messageId === e), Y = (e) => P.messageFeedbacks?.find((t) => t.messageId === e), ot = (e, t) => !P.readonlyFeedback && St(e, t), st = (e) => P.readonlyFeedback ? Y(e) : void 0, ct = (e) => st(e)?.vote, lt = (e) => {
328
328
  let t = st(e);
329
329
  if (t?.vote) return;
330
330
  let n = t?.metadata?.reactionEmoji;
@@ -338,41 +338,41 @@ var Se = ["aria-busy"], Ce = {
338
338
  return W(t === "upvote" ? "hint.userFeedbackPositive" : t === "downvote" ? "hint.userFeedbackNegative" : "hint.userFeedbackReaction");
339
339
  }, pt = (e) => {
340
340
  let t = gt(e);
341
- for (let e = t.length - 1; e >= 0; --e) if (a(t[e])) return e;
341
+ for (let e = t.length - 1; e >= 0; --e) if (o(t[e])) return e;
342
342
  return -1;
343
- }, mt = E(() => N.messages?.[N.messages.length - 1]), X = E(() => {
343
+ }, mt = D(() => P.messages?.[P.messages.length - 1]), X = D(() => {
344
344
  let e = mt.value;
345
345
  return e ? e.parts[e.parts.length - 1] : null;
346
- }), ht = E(() => {
346
+ }), ht = D(() => {
347
347
  let e = /* @__PURE__ */ new Map();
348
- for (let t of N.messages ?? []) t.role === "assistant" && e.set(t.id, _(t.parts));
348
+ for (let t of P.messages ?? []) t.role === "assistant" && e.set(t.id, _(t.parts));
349
349
  return e;
350
- }), gt = (e) => ht.value.get(e.id) ?? e.parts, Z = E(() => N.status === "submitted" || N.status === "streaming"), _t = E(() => N.status === "error"), vt = E(() => {
350
+ }), gt = (e) => ht.value.get(e.id) ?? e.parts, Z = D(() => P.status === "submitted" || P.status === "streaming"), _t = D(() => P.status === "error"), vt = D(() => {
351
351
  let e = X.value;
352
- return y(W, e);
353
- }), yt = E(() => {
352
+ return b(W, e);
353
+ }), yt = D(() => {
354
354
  let e = X.value;
355
355
  return g(e);
356
- }), bt = (e) => N.messages?.findIndex((t) => t.id === e), Q = (e) => e === void 0 || !N.messages ? !1 : e === N.messages.length - 1, xt = (e) => Q(e) && N.status === "ready" && !!N.actions?.includes("regenerate"), St = (e, t) => (!Q(t) || N.status === "ready") && !!N.actions?.includes(e), Ct = (e) => {
356
+ }), bt = (e) => P.messages?.findIndex((t) => t.id === e), Q = (e) => e === void 0 || !P.messages ? !1 : e === P.messages.length - 1, xt = (e) => Q(e) && P.status === "ready" && !!P.actions?.includes("regenerate"), St = (e, t) => (!Q(t) || P.status === "ready") && !!P.actions?.includes(e), Ct = (e) => {
357
357
  let t = e.parts[e.parts.length - 1];
358
- return a(t);
359
- }, wt = (e) => e.parts.some((e) => r(e) || n(e)), Tt = (e) => !!N.showExtendedSteps && $(e) && wt(e), $ = (e) => e.role === "assistant", Et = (e) => e.role === "user", Dt = (e) => N.messages?.slice(0, e).reverse().find((e) => $(e)), Ot = (e) => N.messages?.slice(e + 1).find((e) => $(e)), kt = (e) => {
358
+ return o(t);
359
+ }, wt = (e) => e.parts.some((e) => i(e) || r(e)), Tt = (e) => !!P.showExtendedSteps && $(e) && wt(e), $ = (e) => e.role === "assistant", Et = (e) => e.role === "user", Dt = (e) => P.messages?.slice(0, e).reverse().find((e) => $(e)), Ot = (e) => P.messages?.slice(e + 1).find((e) => $(e)), kt = (e) => {
360
360
  let t = Dt(e)?.metadata?.createdAt, n = Ot(e)?.metadata?.createdAt;
361
361
  if (!t || !n) return;
362
362
  let r = new Date(t), i = new Date(n);
363
363
  return r.toDateString() === i.toDateString() ? void 0 : i;
364
- }, At = (e, t) => t === 0 || e.role !== "assistant" ? !1 : !!(N.actions?.length || N.showMessageDateTime && e.metadata?.createdAt !== void 0 || e.metadata?.completedAt !== void 0 || N.showMessageTokensCount && e.metadata?.totalTokens !== void 0), jt = (e) => {
364
+ }, At = (e, t) => t === 0 || e.role !== "assistant" ? !1 : !!(P.actions?.length || P.showMessageDateTime && e.metadata?.createdAt !== void 0 || e.metadata?.completedAt !== void 0 || P.showMessageTokensCount && e.metadata?.totalTokens !== void 0), jt = (e) => {
365
365
  let t = new Date(e), n = t.toDateString() === (/* @__PURE__ */ new Date()).toDateString();
366
366
  return G(t, n ? "time" : "date-time");
367
367
  }, Mt = (e) => {
368
368
  let { createdAt: t, completedAt: n } = e.metadata ?? {};
369
- if (!(!t || !n)) return te(_e, n - t);
369
+ if (!(!t || !n)) return ee(_e, n - t);
370
370
  }, Nt = me("feedbackMessageEl");
371
- return V(() => N.feedbackMessageId, async () => {
372
- if (await P(), !N.feedbackMessageId) return;
371
+ return V(() => P.feedbackMessageId, async () => {
372
+ if (await F(), !P.feedbackMessageId) return;
373
373
  let e = Nt.value?.[0]?.$el;
374
374
  if (e) {
375
- if (Q(bt(N.feedbackMessageId))) {
375
+ if (Q(bt(P.feedbackMessageId))) {
376
376
  qe();
377
377
  return;
378
378
  }
@@ -381,92 +381,92 @@ var Se = ["aria-busy"], Ce = {
381
381
  block: "center"
382
382
  });
383
383
  }
384
- }), (r, h) => {
385
- let _ = ae, v = S, te = C;
386
- return L(), k("div", {
384
+ }), (i, h) => {
385
+ let _ = ie, v = C, ee = w;
386
+ return L(), A("div", {
387
387
  ref_key: "scrollEl",
388
388
  ref: K,
389
- class: F(["pk-chatbot-messages", { "pk-chatbot-messages--settling": rt.value }]),
389
+ class: I(["pk-chatbot-messages", { "pk-chatbot-messages--settling": rt.value }]),
390
390
  role: "log",
391
391
  "aria-live": "polite",
392
392
  "aria-relevant": "additions text",
393
393
  "aria-busy": Z.value,
394
- style: ce({
395
- "--chatbot-main-color": b.mainColor,
394
+ style: se({
395
+ "--chatbot-main-color": x.mainColor,
396
396
  "--chatbot-contrast-color": Ge.value
397
397
  }),
398
398
  onScroll: et
399
399
  }, [
400
- b.showScrollToBottom && J.value.length > 1 ? (L(), k("div", Ce, [j(x, {
400
+ x.showScrollToBottom && J.value.length > 1 ? (L(), A("div", Ce, [M(S, {
401
401
  items: J.value,
402
402
  "active-id": Ze.value,
403
403
  onSelect: tt
404
- }, null, 8, ["items", "active-id"])])) : O("", !0),
405
- A("div", {
404
+ }, null, 8, ["items", "active-id"])])) : k("", !0),
405
+ j("div", {
406
406
  ref_key: "wrapperEl",
407
407
  ref: q,
408
408
  class: "pk-chatbot-messages__wrapper"
409
409
  }, [
410
- (L(!0), k(w, null, ue(b.messages, (e, y) => (L(), k(w, { key: e.id }, [Et(e) && kt(y) ? (L(), k("div", we, [A("span", Te, z(B(G)(kt(y), "short")), 1)])) : O("", !0), e.parts.length || Q(y) && Z.value && $(e) ? (L(), k("div", {
410
+ (L(!0), A(T, null, ue(x.messages, (e, b) => (L(), A(T, { key: e.id }, [Et(e) && kt(b) ? (L(), A("div", we, [j("span", Te, z(B(G)(kt(b), "short")), 1)])) : k("", !0), e.parts.length || Q(b) && Z.value && $(e) ? (L(), A("div", {
411
411
  key: 1,
412
- class: F(["pk-chatbot-message", [`pk-chatbot-message--${e.role}`, { "pk-chatbot-message--loading": Z.value && Q(y) && $(e) }]]),
413
- style: ce({ minHeight: Q(y) && $(e) && !_t.value ? `${nt.value}px` : void 0 })
412
+ class: I(["pk-chatbot-message", [`pk-chatbot-message--${e.role}`, { "pk-chatbot-message--loading": Z.value && Q(b) && $(e) }]]),
413
+ style: se({ minHeight: Q(b) && $(e) && !_t.value ? `${nt.value}px` : void 0 })
414
414
  }, [
415
- j(T, {
415
+ M(E, {
416
416
  appear: "",
417
417
  name: "pk-chatbot-part"
418
418
  }, {
419
- default: H(() => [Tt(e) ? (L(), D(ie, {
419
+ default: H(() => [Tt(e) ? (L(), O(re, {
420
420
  key: 0,
421
421
  message: e,
422
- "is-streaming": Z.value && Q(y),
423
- "is-dark": b.isDark
422
+ "is-streaming": Z.value && Q(b),
423
+ "is-dark": x.isDark
424
424
  }, null, 8, [
425
425
  "message",
426
426
  "is-streaming",
427
427
  "is-dark"
428
- ])) : O("", !0)]),
428
+ ])) : k("", !0)]),
429
429
  _: 2
430
430
  }, 1024),
431
- (L(!0), k(w, null, ue(gt(e), (c, u) => (L(), k(w, { key: u }, [B(a)(c) && c.text.trim() ? (L(), D(T, {
431
+ (L(!0), A(T, null, ue(gt(e), (l, u) => (L(), A(T, { key: u }, [B(o)(l) && l.text.trim() ? (L(), O(E, {
432
432
  key: 0,
433
433
  appear: "",
434
434
  name: "pk-chatbot-part"
435
435
  }, {
436
- default: H(() => [A("div", Ee, [de(r.$slots, "text", se({ ref_for: !0 }, {
436
+ default: H(() => [j("div", Ee, [de(i.$slots, "text", oe({ ref_for: !0 }, {
437
437
  message: e,
438
- part: c,
439
- index: y,
438
+ part: l,
439
+ index: b,
440
440
  isLoading: Z.value
441
- }), () => [$(e) ? (L(), D(l, {
441
+ }), () => [$(e) ? (L(), O(t, {
442
442
  key: 0,
443
443
  class: "wysiwyg",
444
- markdown: c.text,
445
- "is-dark": b.isDark,
446
- loading: Q(y) && b.status === "streaming"
444
+ markdown: l.text,
445
+ "is-dark": x.isDark,
446
+ loading: Q(b) && x.status === "streaming"
447
447
  }, null, 8, [
448
448
  "markdown",
449
449
  "is-dark",
450
450
  "loading"
451
- ])) : (L(), k(w, { key: 1 }, [oe(z(c.text), 1)], 64))]), ut(e.id) && !Y(e.id)?.comment && u === pt(e) ? (L(), k("span", {
451
+ ])) : (L(), A(T, { key: 1 }, [ae(z(l.text), 1)], 64))]), ut(e.id) && !Y(e.id)?.comment && u === pt(e) ? (L(), A("span", {
452
452
  key: 0,
453
- class: F(["pk-chatbot-message__reaction", dt(e.id)]),
453
+ class: I(["pk-chatbot-message__reaction", dt(e.id)]),
454
454
  title: ft(e.id)
455
- }, [lt(e.id) ? (L(), k("span", Oe, z(lt(e.id)), 1)) : (L(), D(_, {
455
+ }, [lt(e.id) ? (L(), A("span", Oe, z(lt(e.id)), 1)) : (L(), O(_, {
456
456
  key: 1,
457
457
  name: ct(e.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
458
- }, null, 8, ["name"]))], 10, De)) : O("", !0)])]),
458
+ }, null, 8, ["name"]))], 10, De)) : k("", !0)])]),
459
459
  _: 2
460
- }, 1024)) : B(t)(c) ? (L(), D(T, {
460
+ }, 1024)) : B(n)(l) ? (L(), O(E, {
461
461
  key: 1,
462
462
  appear: "",
463
463
  name: "pk-chatbot-part"
464
464
  }, {
465
- default: H(() => [j(f, {
466
- "media-type": c.mediaType,
467
- url: c.url,
468
- filename: c.filename,
469
- size: B(o)(c)?.bytesCount
465
+ default: H(() => [M(f, {
466
+ "media-type": l.mediaType,
467
+ url: l.url,
468
+ filename: l.filename,
469
+ size: B(s)(l)?.bytesCount
470
470
  }, null, 8, [
471
471
  "media-type",
472
472
  "url",
@@ -474,272 +474,272 @@ var Se = ["aria-busy"], Ce = {
474
474
  "size"
475
475
  ])]),
476
476
  _: 2
477
- }, 1024)) : B(ne)(c) && !B(m)(c) ? (L(), D(T, {
477
+ }, 1024)) : B(te)(l) && !B(m)(l) ? (L(), O(E, {
478
478
  key: 2,
479
479
  appear: "",
480
480
  name: "pk-chatbot-part"
481
481
  }, {
482
- default: H(() => [(L(), D(ye, {
482
+ default: H(() => [(L(), O(ye, {
483
483
  key: `approval-${u}`,
484
- part: c,
485
- actionable: b.interactive === !0 && (B(ee)(c) || Q(y)),
486
- onRespond: (e) => be(c, e)
484
+ part: l,
485
+ actionable: x.interactive === !0 && (B(y)(l) || Q(b)),
486
+ onRespond: (e) => be(l, e)
487
487
  }, null, 8, [
488
488
  "part",
489
489
  "actionable",
490
490
  "onRespond"
491
491
  ]))]),
492
492
  _: 2
493
- }, 1024)) : B(n)(c) && !B(m)(c) && (B(ge)[B(i)(c)] || B(ve)[c.type] || b.showAllMessageParts) ? (L(), D(T, {
493
+ }, 1024)) : B(r)(l) && !B(m)(l) && (B(ge)[B(a)(l)] || B(ve)[l.type] || x.showAllMessageParts) ? (L(), O(E, {
494
494
  key: 3,
495
495
  appear: "",
496
496
  name: "pk-chatbot-part"
497
497
  }, {
498
- default: H(() => [!B(ve)[c.type] && B(ge)[B(i)(c)] ? (L(), D(fe(B(ge)[B(i)(c)]), {
499
- key: `component-${u}-${B(p)(c)}`,
500
- part: c
501
- }, null, 8, ["part"])) : de(r.$slots, c.type, se({ ref_for: !0 }, {
498
+ default: H(() => [!B(ve)[l.type] && B(ge)[B(a)(l)] ? (L(), O(fe(B(ge)[B(a)(l)]), {
499
+ key: `component-${u}-${B(p)(l)}`,
500
+ part: l
501
+ }, null, 8, ["part"])) : de(i.$slots, l.type, oe({ ref_for: !0 }, {
502
502
  message: e,
503
- part: c,
504
- index: y,
503
+ part: l,
504
+ index: b,
505
505
  isLoading: Z.value
506
- }), () => [b.showAllMessageParts ? (L(), k("div", ke, [A("div", Ae, [B(g)(c) ? (L(), D(_, {
506
+ }), () => [x.showAllMessageParts ? (L(), A("div", ke, [j("div", Ae, [B(g)(l) ? (L(), O(_, {
507
507
  key: 0,
508
- name: B(g)(c),
508
+ name: B(g)(l),
509
509
  class: "shrink-0"
510
- }, null, 8, ["name"])) : O("", !0), A("code", je, z(B(s)(c.type)), 1)])])) : O("", !0)], void 0, 1)]),
510
+ }, null, 8, ["name"])) : k("", !0), j("code", je, z(B(c)(l.type)), 1)])])) : k("", !0)], void 0, 1)]),
511
511
  _: 2
512
- }, 1024)) : O("", !0), j(T, { mode: "out-in" }, {
513
- default: H(() => [u === pt(e) && b.readonlyFeedback && Y(e.id)?.comment ? (L(), D(d, {
512
+ }, 1024)) : k("", !0), M(E, { mode: "out-in" }, {
513
+ default: H(() => [u === pt(e) && x.readonlyFeedback && Y(e.id)?.comment ? (L(), O(d, {
514
514
  key: 0,
515
515
  feedback: Y(e.id)
516
- }, null, 8, ["feedback"])) : O("", !0)]),
516
+ }, null, 8, ["feedback"])) : k("", !0)]),
517
517
  _: 2
518
518
  }, 1024)], 64))), 128)),
519
- j(T, {
519
+ M(E, {
520
520
  name: "fade-in",
521
521
  mode: "out-in"
522
522
  }, {
523
- default: H(() => [Z.value && Q(y) && !Ct(e) && $(e) && !Tt(e) ? (L(), k("div", {
523
+ default: H(() => [Z.value && Q(b) && !Ct(e) && $(e) && !Tt(e) ? (L(), A("div", {
524
524
  key: `loading-info-${e.id}`,
525
525
  class: "pk-chatbot-message__loading-info"
526
- }, [A("div", Me, [
527
- j(_, {
526
+ }, [j("div", Me, [
527
+ M(_, {
528
528
  name: "line-md:loading-loop",
529
529
  class: "shrink-0"
530
530
  }),
531
- j(T, { mode: "out-in" }, {
532
- default: H(() => [yt.value ? (L(), D(_, {
531
+ M(E, { mode: "out-in" }, {
532
+ default: H(() => [yt.value ? (L(), O(_, {
533
533
  key: yt.value,
534
534
  class: "shrink-0",
535
535
  name: yt.value
536
- }, null, 8, ["name"])) : O("", !0)]),
536
+ }, null, 8, ["name"])) : k("", !0)]),
537
537
  _: 1
538
538
  }),
539
- j(T, { mode: "out-in" }, {
540
- default: H(() => [vt.value ? (L(), k("span", {
539
+ M(E, { mode: "out-in" }, {
540
+ default: H(() => [vt.value ? (L(), A("span", {
541
541
  key: vt.value,
542
542
  class: "text-12"
543
- }, z(vt.value), 1)) : O("", !0)]),
543
+ }, z(vt.value), 1)) : k("", !0)]),
544
544
  _: 1
545
545
  })
546
- ]), j(T, {
546
+ ]), M(E, {
547
547
  name: "fade-in",
548
548
  mode: "out-in"
549
549
  }, {
550
- default: H(() => [X.value && "text" in X.value && X.value.text.trim() ? (L(), D(re, {
550
+ default: H(() => [X.value && "text" in X.value && X.value.text.trim() ? (L(), O(ne, {
551
551
  key: 0,
552
552
  markdown: X.value.text,
553
- "is-dark": b.isDark,
553
+ "is-dark": x.isDark,
554
554
  "inner-class": "wysiwyg",
555
555
  class: "border border-surface-4 rounded p-4 mt-8 bg-surface-1 max-h-64 text-12 w-full"
556
- }, null, 8, ["markdown", "is-dark"])) : O("", !0)]),
556
+ }, null, 8, ["markdown", "is-dark"])) : k("", !0)]),
557
557
  _: 1
558
- })])) : O("", !0)]),
558
+ })])) : k("", !0)]),
559
559
  _: 2
560
560
  }, 1024),
561
- j(T, { mode: "out-in" }, {
562
- default: H(() => [At(e, y) ? (L(), k("div", Ne, [
563
- j(te, {
561
+ M(E, { mode: "out-in" }, {
562
+ default: H(() => [At(e, b) ? (L(), A("div", Ne, [
563
+ M(ee, {
564
564
  modifiers: "compact",
565
565
  class: "mr-auto shrink-0"
566
566
  }, {
567
567
  default: H(() => [
568
- j(T, { mode: "out-in" }, {
569
- default: H(() => [xt(y) ? (L(), D(v, {
568
+ M(E, { mode: "out-in" }, {
569
+ default: H(() => [xt(b) ? (L(), O(v, {
570
570
  key: 0,
571
571
  icon: "ri:reset-right-line",
572
572
  modifiers: "action-quiet-small",
573
573
  title: B(W)("action.regenerate"),
574
574
  "aria-label": B(W)("action.regenerate"),
575
- onClick: h[0] ||= U((e) => r.$emit("regenerate"), ["stop"])
576
- }, null, 8, ["title", "aria-label"])) : O("", !0)]),
575
+ onClick: h[0] ||= U((e) => i.$emit("regenerate"), ["stop"])
576
+ }, null, 8, ["title", "aria-label"])) : k("", !0)]),
577
577
  _: 2
578
578
  }, 1024),
579
- j(T, { mode: "out-in" }, {
580
- default: H(() => [St("show-info", y) ? (L(), D(v, {
579
+ M(E, { mode: "out-in" }, {
580
+ default: H(() => [St("show-info", b) ? (L(), O(v, {
581
581
  key: 0,
582
582
  icon: "ri:information-line",
583
583
  title: B(W)("action.getMoreInfo"),
584
584
  "aria-label": B(W)("action.getMoreInfo"),
585
585
  modifiers: "action-quiet-small",
586
- onClick: U((t) => r.$emit("show-info", e), ["stop"])
586
+ onClick: U((t) => i.$emit("show-info", e), ["stop"])
587
587
  }, null, 8, [
588
588
  "title",
589
589
  "aria-label",
590
590
  "onClick"
591
- ])) : O("", !0)]),
591
+ ])) : k("", !0)]),
592
592
  _: 2
593
593
  }, 1024),
594
- j(T, { mode: "out-in" }, {
595
- default: H(() => [St("revise", y) ? (L(), D(v, {
594
+ M(E, { mode: "out-in" }, {
595
+ default: H(() => [St("revise", b) ? (L(), O(v, {
596
596
  key: 0,
597
597
  icon: at(e.id) ? "ri:file-edit-fill" : "ri:file-edit-line",
598
598
  title: at(e.id) ? B(W)("action.editRevise") : B(W)("action.createRevise"),
599
599
  "aria-label": at(e.id) ? B(W)("action.editRevise") : B(W)("action.createRevise"),
600
600
  modifiers: "action-quiet-small",
601
- class: F({ "text-brand": at(e.id) }),
602
- onClick: U((t) => r.$emit("revise", e), ["stop"])
601
+ class: I({ "text-brand": at(e.id) }),
602
+ onClick: U((t) => i.$emit("revise", e), ["stop"])
603
603
  }, null, 8, [
604
604
  "icon",
605
605
  "title",
606
606
  "aria-label",
607
607
  "class",
608
608
  "onClick"
609
- ])) : O("", !0)]),
609
+ ])) : k("", !0)]),
610
610
  _: 2
611
611
  }, 1024),
612
- j(T, { mode: "out-in" }, {
613
- default: H(() => [ot("upvote", y) ? (L(), D(v, {
612
+ M(E, { mode: "out-in" }, {
613
+ default: H(() => [ot("upvote", b) ? (L(), O(v, {
614
614
  key: 0,
615
615
  icon: Y(e.id)?.vote === "upvote" ? "ri:thumb-up-fill" : "ri:thumb-up-line",
616
616
  title: B(W)("action.upvote"),
617
617
  "aria-label": B(W)("action.upvote"),
618
618
  modifiers: "action-quiet-small",
619
- onClick: U((t) => r.$emit("upvote", e), ["stop"])
619
+ onClick: U((t) => i.$emit("upvote", e), ["stop"])
620
620
  }, null, 8, [
621
621
  "icon",
622
622
  "title",
623
623
  "aria-label",
624
624
  "onClick"
625
- ])) : O("", !0)]),
625
+ ])) : k("", !0)]),
626
626
  _: 2
627
627
  }, 1024),
628
- j(T, { mode: "out-in" }, {
629
- default: H(() => [ot("downvote", y) ? (L(), D(v, {
628
+ M(E, { mode: "out-in" }, {
629
+ default: H(() => [ot("downvote", b) ? (L(), O(v, {
630
630
  key: 0,
631
631
  icon: Y(e.id)?.vote === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-down-line",
632
632
  title: B(W)("action.downvote"),
633
633
  "aria-label": B(W)("action.downvote"),
634
634
  modifiers: "action-quiet-small",
635
- onClick: U((t) => r.$emit("downvote", e), ["stop"])
635
+ onClick: U((t) => i.$emit("downvote", e), ["stop"])
636
636
  }, null, 8, [
637
637
  "icon",
638
638
  "title",
639
639
  "aria-label",
640
640
  "onClick"
641
- ])) : O("", !0)]),
641
+ ])) : k("", !0)]),
642
642
  _: 2
643
643
  }, 1024),
644
- j(T, { mode: "out-in" }, {
645
- default: H(() => [ot("feedback", y) ? (L(), D(v, {
644
+ M(E, { mode: "out-in" }, {
645
+ default: H(() => [ot("feedback", b) ? (L(), O(v, {
646
646
  key: 0,
647
647
  icon: Y(e.id)?.comment ? "ri:feedback-fill" : "ri:feedback-line",
648
648
  title: B(W)("action.feedback"),
649
649
  "aria-label": B(W)("action.feedback"),
650
650
  modifiers: "action-quiet-small",
651
- onClick: U((t) => r.$emit("feedback", e), ["stop"])
651
+ onClick: U((t) => i.$emit("feedback", e), ["stop"])
652
652
  }, null, 8, [
653
653
  "icon",
654
654
  "title",
655
655
  "aria-label",
656
656
  "onClick"
657
- ])) : O("", !0)]),
657
+ ])) : k("", !0)]),
658
658
  _: 2
659
659
  }, 1024)
660
660
  ]),
661
661
  _: 2
662
662
  }, 1024),
663
- !b.showMessageDateTime && e.metadata?.createdAt && e.metadata?.completedAt ? (L(), k("div", Pe, [A("time", {
663
+ !x.showMessageDateTime && e.metadata?.createdAt && e.metadata?.completedAt ? (L(), A("div", Pe, [j("time", {
664
664
  datetime: new Date(e.metadata.createdAt).toISOString(),
665
665
  title: B(G)(new Date(e.metadata.createdAt), "date-time"),
666
666
  class: "flex items-center gap-4 min-w-0"
667
- }, [j(_, {
667
+ }, [M(_, {
668
668
  name: "ri:time-line",
669
669
  class: "shrink-0"
670
- }), A("span", Ie, z(jt(e.metadata.createdAt)), 1)], 8, Fe), Mt(e) ? (L(), k("span", Le, [j(_, {
670
+ }), j("span", Ie, z(jt(e.metadata.createdAt)), 1)], 8, Fe), Mt(e) ? (L(), A("span", Le, [M(_, {
671
671
  name: "ri:hourglass-line",
672
672
  class: "shrink-0"
673
- }), A("span", Re, z(Mt(e)), 1)])) : O("", !0)])) : O("", !0),
674
- b.showMessageTokensCount && e.metadata?.totalTokens ? (L(), k("span", ze, [j(_, {
673
+ }), j("span", Re, z(Mt(e)), 1)])) : k("", !0)])) : k("", !0),
674
+ x.showMessageTokensCount && e.metadata?.totalTokens ? (L(), A("span", ze, [M(_, {
675
675
  name: "ri:ai-generate-2-line",
676
676
  class: "shrink-0"
677
- }), A("span", Be, z(B(_e)(e.metadata.totalTokens, "integer")) + " " + z(B(W)("label.tokens")), 1)])) : O("", !0),
678
- b.showMessageDateTime && e.metadata?.createdAt ? (L(), k("time", {
677
+ }), j("span", Be, z(B(_e)(e.metadata.totalTokens, "integer")) + " " + z(B(W)("label.tokens")), 1)])) : k("", !0),
678
+ x.showMessageDateTime && e.metadata?.createdAt ? (L(), A("time", {
679
679
  key: 2,
680
680
  datetime: new Date(e.metadata?.createdAt).toISOString(),
681
681
  class: "flex items-center gap-4 text-12 text-word-3"
682
- }, [j(_, {
682
+ }, [M(_, {
683
683
  name: "ri:time-line",
684
684
  class: "shrink-0"
685
- }), A("span", He, z(B(G)(new Date(e.metadata?.createdAt), "date-time")), 1)], 8, Ve)) : O("", !0),
686
- b.showMessageDateTime && e?.metadata?.completedAt && e?.metadata?.createdAt ? (L(), k("div", Ue, [j(_, {
685
+ }), j("span", He, z(B(G)(new Date(e.metadata?.createdAt), "date-time")), 1)], 8, Ve)) : k("", !0),
686
+ x.showMessageDateTime && e?.metadata?.completedAt && e?.metadata?.createdAt ? (L(), A("div", Ue, [M(_, {
687
687
  name: "ri:hourglass-line",
688
688
  class: "shrink-0"
689
- }), j(c, {
689
+ }), M(l, {
690
690
  class: "truncate",
691
691
  date: e.metadata?.createdAt,
692
692
  "end-date": e.metadata?.completedAt
693
- }, null, 8, ["date", "end-date"])])) : O("", !0)
694
- ])) : O("", !0)]),
693
+ }, null, 8, ["date", "end-date"])])) : k("", !0)
694
+ ])) : k("", !0)]),
695
695
  _: 2
696
696
  }, 1024),
697
- j(T, { mode: "out-in" }, {
698
- default: H(() => [e.id === b.feedbackMessageId ? (L(), D(u, {
697
+ M(E, { mode: "out-in" }, {
698
+ default: H(() => [e.id === x.feedbackMessageId ? (L(), O(u, {
699
699
  key: 0,
700
700
  ref_for: !0,
701
701
  ref_key: "feedbackMessageEl",
702
702
  ref: Nt,
703
- loading: b.feedbackLoading,
704
- submitted: b.feedbackSubmitted,
705
- error: b.feedbackError,
706
- onSubmit: h[1] ||= (e) => r.$emit("feedback-submit", e),
707
- onClose: h[2] ||= (e) => r.$emit("feedback-close")
703
+ loading: x.feedbackLoading,
704
+ submitted: x.feedbackSubmitted,
705
+ error: x.feedbackError,
706
+ onSubmit: h[1] ||= (e) => i.$emit("feedback-submit", e),
707
+ onClose: h[2] ||= (e) => i.$emit("feedback-close")
708
708
  }, null, 8, [
709
709
  "loading",
710
710
  "submitted",
711
711
  "error"
712
- ])) : O("", !0)]),
712
+ ])) : k("", !0)]),
713
713
  _: 2
714
714
  }, 1024)
715
- ], 6)) : O("", !0)], 64))), 128)),
716
- j(T, {
715
+ ], 6)) : k("", !0)], 64))), 128)),
716
+ M(E, {
717
717
  appear: "",
718
718
  name: "pk-chatbot-part"
719
719
  }, {
720
- default: H(() => [_t.value ? (L(), D(e, {
720
+ default: H(() => [_t.value ? (L(), O(e, {
721
721
  key: 0,
722
- error: b.error,
723
- onRetry: h[3] ||= (e) => r.$emit("auto-retry"),
724
- onReset: h[4] ||= (e) => r.$emit("reset-chat")
725
- }, null, 8, ["error"])) : O("", !0)]),
722
+ error: x.error,
723
+ onRetry: h[3] ||= (e) => i.$emit("auto-retry"),
724
+ onReset: h[4] ||= (e) => i.$emit("reset-chat")
725
+ }, null, 8, ["error"])) : k("", !0)]),
726
726
  _: 1
727
727
  }),
728
- mt.value?.role === "user" || _t.value ? (L(), k("div", {
728
+ mt.value?.role === "user" || _t.value ? (L(), A("div", {
729
729
  key: 0,
730
730
  class: "pk-chatbot-messages__spacer",
731
- style: ce({ minHeight: `${nt.value}px` })
732
- }, null, 4)) : O("", !0)
731
+ style: se({ minHeight: `${nt.value}px` })
732
+ }, null, 4)) : k("", !0)
733
733
  ], 512),
734
- j(T, { name: "pk-chatbot-messages-fab" }, {
735
- default: H(() => [b.showScrollToBottom && (B(Je) || !B(Ye)) ? (L(), k("button", {
734
+ M(E, { name: "pk-chatbot-messages-fab" }, {
735
+ default: H(() => [x.showScrollToBottom && (B(Je) || !B(Ye)) ? (L(), A("button", {
736
736
  key: 0,
737
737
  type: "button",
738
738
  class: "pk-chatbot-messages__scroll-to-bottom",
739
739
  title: B(W)("action.scrollToBottom"),
740
740
  "aria-label": B(W)("action.scrollToBottom"),
741
741
  onClick: Xe
742
- }, [j(_, { name: "ri:arrow-down-line" })], 8, We)) : O("", !0)]),
742
+ }, [M(_, { name: "ri:arrow-down-line" })], 8, We)) : k("", !0)]),
743
743
  _: 1
744
744
  })
745
745
  ], 46, Se);
@@ -749,4 +749,4 @@ var Se = ["aria-busy"], Ce = {
749
749
  //#endregion
750
750
  export { q as t };
751
751
 
752
- //# sourceMappingURL=PkChatbotMessages-BrufA7o1.js.map
752
+ //# sourceMappingURL=PkChatbotMessages-B3G12zah.js.map