@8wave/ai-elements 0.119.0-beta.31 → 0.119.0-beta.45

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 (163) hide show
  1. package/dist/_chunks/Agent-Gdgpd3LA.js.map +1 -1
  2. package/dist/_chunks/{PkChatbotFilePreview-DiuzVVKH.js → PkChatbotFilePreview-3i9jZIdS.js} +2 -2
  3. package/dist/_chunks/{PkChatbotFilePreview-DiuzVVKH.js.map → PkChatbotFilePreview-3i9jZIdS.js.map} +1 -1
  4. package/dist/_chunks/{PkStreamingMarkdown-DKyHYHUN.js → PkStreamingMarkdown-B1t1tBvW.js} +3 -3
  5. package/dist/_chunks/{PkStreamingMarkdown-DKyHYHUN.js.map → PkStreamingMarkdown-B1t1tBvW.js.map} +1 -1
  6. package/dist/_chunks/{PkToolEditSpreadsheet-CfJ3BWMe.js → PkToolEditSpreadsheet-Xzum_9NH.js} +2 -2
  7. package/dist/_chunks/{PkToolEditSpreadsheet-CfJ3BWMe.js.map → PkToolEditSpreadsheet-Xzum_9NH.js.map} +1 -1
  8. package/dist/_chunks/{PkToolRequestOAuthConnection-klmrRZWz.js → PkToolRequestOAuthConnection-W3ilzpr7.js} +2 -2
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-klmrRZWz.js.map → PkToolRequestOAuthConnection-W3ilzpr7.js.map} +1 -1
  10. package/dist/_chunks/{PkToolShowArtifact-ChDm6ZEK.js → PkToolShowArtifact-DGGEb2LF.js} +2 -2
  11. package/dist/_chunks/{PkToolShowArtifact-ChDm6ZEK.js.map → PkToolShowArtifact-DGGEb2LF.js.map} +1 -1
  12. package/dist/_chunks/{PkToolShowCalendarEvent-CRVtR3oP.js → PkToolShowCalendarEvent-D8DMh3-P.js} +2 -2
  13. package/dist/_chunks/{PkToolShowCalendarEvent-CRVtR3oP.js.map → PkToolShowCalendarEvent-D8DMh3-P.js.map} +1 -1
  14. package/dist/_chunks/PkToolShowContactForm-Dn6CEXF_.js +158 -0
  15. package/dist/_chunks/PkToolShowContactForm-Dn6CEXF_.js.map +1 -0
  16. package/dist/_chunks/{PkToolShowDiagram-JpRMa4Jj.js → PkToolShowDiagram-WregKAJO.js} +3 -3
  17. package/dist/_chunks/{PkToolShowDiagram-JpRMa4Jj.js.map → PkToolShowDiagram-WregKAJO.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowForm-DnIwTGl4.js → PkToolShowForm-CbuToc8O.js} +2 -2
  19. package/dist/_chunks/{PkToolShowForm-DnIwTGl4.js.map → PkToolShowForm-CbuToc8O.js.map} +1 -1
  20. package/dist/_chunks/{PkToolShowImageGallery-Ab8fJ9jY.js → PkToolShowImageGallery-Dh0v2Df8.js} +4 -4
  21. package/dist/_chunks/{PkToolShowImageGallery-Ab8fJ9jY.js.map → PkToolShowImageGallery-Dh0v2Df8.js.map} +1 -1
  22. package/dist/_chunks/{PkToolShowLocation-D5d6bbP-.js → PkToolShowLocation-jRZtqoBO.js} +2 -2
  23. package/dist/_chunks/{PkToolShowLocation-D5d6bbP-.js.map → PkToolShowLocation-jRZtqoBO.js.map} +1 -1
  24. package/dist/_chunks/{PkToolShowProductList-DztzZVDd.js → PkToolShowProductList-bAis8u1t.js} +2 -2
  25. package/dist/_chunks/{PkToolShowProductList-DztzZVDd.js.map → PkToolShowProductList-bAis8u1t.js.map} +1 -1
  26. package/dist/_chunks/{PkToolShowSources-Bvg3f3GC.js → PkToolShowSources-B1zXilsH.js} +4 -4
  27. package/dist/_chunks/{PkToolShowSources-Bvg3f3GC.js.map → PkToolShowSources-B1zXilsH.js.map} +1 -1
  28. package/dist/_chunks/{PkToolShowVideo-DdoYLl7R.js → PkToolShowVideo-DcMzLibC.js} +3 -3
  29. package/dist/_chunks/{PkToolShowVideo-DdoYLl7R.js.map → PkToolShowVideo-DcMzLibC.js.map} +1 -1
  30. package/dist/_chunks/{PkToolShowWeather-CnpPZCLm.js → PkToolShowWeather-DTrZ7r1t.js} +2 -2
  31. package/dist/_chunks/{PkToolShowWeather-CnpPZCLm.js.map → PkToolShowWeather-DTrZ7r1t.js.map} +1 -1
  32. package/dist/_chunks/{PkToolShowWebPages-BooCEJrs.js → PkToolShowWebPages-RuwkZDMH.js} +3 -3
  33. package/dist/_chunks/{PkToolShowWebPages-BooCEJrs.js.map → PkToolShowWebPages-RuwkZDMH.js.map} +1 -1
  34. package/dist/_chunks/{chatImagePolicy-CfJt8_9Z.js → chatImagePolicy-BL4O14e9.js} +2 -2
  35. package/dist/_chunks/{chatImagePolicy-CfJt8_9Z.js.map → chatImagePolicy-BL4O14e9.js.map} +1 -1
  36. package/dist/_chunks/{index.es-oI6RqNZW.js → index.es-DkFMpDsf.js} +2 -2
  37. package/dist/_chunks/{index.es-oI6RqNZW.js.map → index.es-DkFMpDsf.js.map} +1 -1
  38. package/dist/_chunks/{markdown-BbaLt57-.js → markdown-DtdG9Krq.js} +95 -89
  39. package/dist/_chunks/markdown-DtdG9Krq.js.map +1 -0
  40. package/dist/_chunks/{src-DL9TKN-Z.js → src-CggZ5M7x.js} +46 -3
  41. package/dist/_chunks/src-CggZ5M7x.js.map +1 -0
  42. package/dist/_chunks/{useLightbox-1KKLemEE.js → useLightbox-3HiaRtzY.js} +2 -2
  43. package/dist/_chunks/{useLightbox-1KKLemEE.js.map → useLightbox-3HiaRtzY.js.map} +1 -1
  44. package/dist/ai-elements.es.js +961 -943
  45. package/dist/ai-elements.es.js.map +1 -1
  46. package/dist-vue/PkChatbot.js +1 -1
  47. package/dist-vue/PkChatbotAudioTranscript.js +1 -1
  48. package/dist-vue/PkChatbotEmptyState.js +1 -1
  49. package/dist-vue/PkChatbotFilePreview.js +1 -1
  50. package/dist-vue/PkChatbotInput.js +1 -1
  51. package/dist-vue/PkChatbotMessages.js +1 -1
  52. package/dist-vue/PkChatbotStepPayload.js +1 -1
  53. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  54. package/dist-vue/PkChatbotSteps.js +1 -1
  55. package/dist-vue/PkChatbotViewChat.js +1 -1
  56. package/dist-vue/PkChatbotViewConversations.js +1 -1
  57. package/dist-vue/PkChatbotViewFiles.js +1 -1
  58. package/dist-vue/PkChatbotViewProfile.js +1 -1
  59. package/dist-vue/_chunks/{Agent-DU1WWaHR.js → Agent-DGCZCx4Y.js} +102 -101
  60. package/dist-vue/_chunks/Agent-DGCZCx4Y.js.map +1 -0
  61. package/dist-vue/_chunks/{Document-Cto-Qws0.js → Document-BZea8ewV.js} +8 -4
  62. package/dist-vue/_chunks/Document-BZea8ewV.js.map +1 -0
  63. package/dist-vue/_chunks/{PkChatbot-C18mnGJ9.js → PkChatbot-BVWLvaXb.js} +8 -8
  64. package/dist-vue/_chunks/{PkChatbot-C18mnGJ9.js.map → PkChatbot-BVWLvaXb.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkChatbotAudioTranscript-0rvrhSRQ.js → PkChatbotAudioTranscript-CC9M-zDv.js} +2 -2
  66. package/dist-vue/_chunks/{PkChatbotAudioTranscript-0rvrhSRQ.js.map → PkChatbotAudioTranscript-CC9M-zDv.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkChatbotEmptyState-BKiyP0Ga.js → PkChatbotEmptyState-B7fZ51v1.js} +2 -2
  68. package/dist-vue/_chunks/{PkChatbotEmptyState-BKiyP0Ga.js.map → PkChatbotEmptyState-B7fZ51v1.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkChatbotFilePreview-D5H-RIk2.js → PkChatbotFilePreview-Lxgu89Hg.js} +2 -2
  70. package/dist-vue/_chunks/{PkChatbotFilePreview-D5H-RIk2.js.map → PkChatbotFilePreview-Lxgu89Hg.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkChatbotInput-GvgsYsUw.js → PkChatbotInput-Bo4Ewf6A.js} +3 -3
  72. package/dist-vue/_chunks/{PkChatbotInput-GvgsYsUw.js.map → PkChatbotInput-Bo4Ewf6A.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkChatbotMessages-CDLsj7qw.js → PkChatbotMessages-DHZNG6YM.js} +195 -190
  74. package/dist-vue/_chunks/PkChatbotMessages-DHZNG6YM.js.map +1 -0
  75. package/dist-vue/_chunks/{PkChatbotStepPayload-Dm-HCHcG.js → PkChatbotStepPayload-DuI9ZYqp.js} +2 -2
  76. package/dist-vue/_chunks/{PkChatbotStepPayload-Dm-HCHcG.js.map → PkChatbotStepPayload-DuI9ZYqp.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Bpd_cZEO.js → PkChatbotStepToolDetail-B9hBMl15.js} +3 -3
  78. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Bpd_cZEO.js.map → PkChatbotStepToolDetail-B9hBMl15.js.map} +1 -1
  79. package/dist-vue/_chunks/PkChatbotSteps-3qySSEYh.js +189 -0
  80. package/dist-vue/_chunks/PkChatbotSteps-3qySSEYh.js.map +1 -0
  81. package/dist-vue/_chunks/{PkChatbotViewChat-By2TY72m.js → PkChatbotViewChat-CLyoZH3C.js} +8 -8
  82. package/dist-vue/_chunks/{PkChatbotViewChat-By2TY72m.js.map → PkChatbotViewChat-CLyoZH3C.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkChatbotViewConversations-CU5NfEO4.js → PkChatbotViewConversations-BbXFoEOv.js} +4 -4
  84. package/dist-vue/_chunks/{PkChatbotViewConversations-CU5NfEO4.js.map → PkChatbotViewConversations-BbXFoEOv.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkChatbotViewFiles-CD-UZPT5.js → PkChatbotViewFiles-7vcERhnZ.js} +3 -3
  86. package/dist-vue/_chunks/{PkChatbotViewFiles-CD-UZPT5.js.map → PkChatbotViewFiles-7vcERhnZ.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkChatbotViewProfile-DPlb_Wca.js → PkChatbotViewProfile-RgFp-LpV.js} +2 -2
  88. package/dist-vue/_chunks/{PkChatbotViewProfile-DPlb_Wca.js.map → PkChatbotViewProfile-RgFp-LpV.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkStreamingMarkdown-CsHzdW69.js → PkStreamingMarkdown-Bmm1kZpL.js} +4 -4
  90. package/dist-vue/_chunks/{PkStreamingMarkdown-CsHzdW69.js.map → PkStreamingMarkdown-Bmm1kZpL.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkSvgViewer-D6DJ2jVO.js → PkSvgViewer-DU8K_gAD.js} +2 -2
  92. package/dist-vue/_chunks/{PkSvgViewer-D6DJ2jVO.js.map → PkSvgViewer-DU8K_gAD.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolEditSpreadsheet-D8Zp9gzW.js → PkToolEditSpreadsheet-BIQky1RK.js} +3 -3
  94. package/dist-vue/_chunks/{PkToolEditSpreadsheet-D8Zp9gzW.js.map → PkToolEditSpreadsheet-BIQky1RK.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkToolRequestGeolocation-JZYgc-2X.js → PkToolRequestGeolocation-CYEyXZSh.js} +2 -2
  96. package/dist-vue/_chunks/{PkToolRequestGeolocation-JZYgc-2X.js.map → PkToolRequestGeolocation-CYEyXZSh.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DosWR9I4.js → PkToolRequestOAuthConnection-B243GJ1-.js} +3 -3
  98. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DosWR9I4.js.map → PkToolRequestOAuthConnection-B243GJ1-.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkToolShowArtifact-BVofKJ7b.js → PkToolShowArtifact-CJG-B9mE.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolShowArtifact-BVofKJ7b.js.map → PkToolShowArtifact-CJG-B9mE.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkToolShowCalendarEvent-u9O_Sl3-.js → PkToolShowCalendarEvent-CFODjoDV.js} +2 -2
  102. package/dist-vue/_chunks/{PkToolShowCalendarEvent-u9O_Sl3-.js.map → PkToolShowCalendarEvent-CFODjoDV.js.map} +1 -1
  103. package/dist-vue/_chunks/PkToolShowContactForm-CG1H7xBz.js +160 -0
  104. package/dist-vue/_chunks/PkToolShowContactForm-CG1H7xBz.js.map +1 -0
  105. package/dist-vue/_chunks/{PkToolShowDiagram-CaoB4k6y.js → PkToolShowDiagram-Cq0457a3.js} +4 -4
  106. package/dist-vue/_chunks/{PkToolShowDiagram-CaoB4k6y.js.map → PkToolShowDiagram-Cq0457a3.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolShowForm-vYuaPtu0.js → PkToolShowForm-IJ8B8_yT.js} +4 -4
  108. package/dist-vue/_chunks/{PkToolShowForm-vYuaPtu0.js.map → PkToolShowForm-IJ8B8_yT.js.map} +1 -1
  109. package/dist-vue/_chunks/{PkToolShowImageGallery-ooygXk7j.js → PkToolShowImageGallery-ala8nlAj.js} +4 -4
  110. package/dist-vue/_chunks/{PkToolShowImageGallery-ooygXk7j.js.map → PkToolShowImageGallery-ala8nlAj.js.map} +1 -1
  111. package/dist-vue/_chunks/{PkToolShowLocation-DVMpFdRk.js → PkToolShowLocation-BipZrvw7.js} +2 -2
  112. package/dist-vue/_chunks/{PkToolShowLocation-DVMpFdRk.js.map → PkToolShowLocation-BipZrvw7.js.map} +1 -1
  113. package/dist-vue/_chunks/{PkToolShowProductList-D-HJ9a_h.js → PkToolShowProductList-BDg84ZQN.js} +2 -2
  114. package/dist-vue/_chunks/{PkToolShowProductList-D-HJ9a_h.js.map → PkToolShowProductList-BDg84ZQN.js.map} +1 -1
  115. package/dist-vue/_chunks/{PkToolShowSources-DJ35l3Z3.js → PkToolShowSources-DaSijN_L.js} +4 -4
  116. package/dist-vue/_chunks/{PkToolShowSources-DJ35l3Z3.js.map → PkToolShowSources-DaSijN_L.js.map} +1 -1
  117. package/dist-vue/_chunks/{PkToolShowSuggestedReply-I6FBos-F.js → PkToolShowSuggestedReply-CLEFPrHP.js} +2 -2
  118. package/dist-vue/_chunks/{PkToolShowSuggestedReply-I6FBos-F.js.map → PkToolShowSuggestedReply-CLEFPrHP.js.map} +1 -1
  119. package/dist-vue/_chunks/{PkToolShowVideo-xcg1gdIE.js → PkToolShowVideo-FmE-IRE7.js} +3 -3
  120. package/dist-vue/_chunks/{PkToolShowVideo-xcg1gdIE.js.map → PkToolShowVideo-FmE-IRE7.js.map} +1 -1
  121. package/dist-vue/_chunks/{PkToolShowWeather-DJxKxVp_.js → PkToolShowWeather-BD0w6BA1.js} +2 -2
  122. package/dist-vue/_chunks/{PkToolShowWeather-DJxKxVp_.js.map → PkToolShowWeather-BD0w6BA1.js.map} +1 -1
  123. package/dist-vue/_chunks/{PkToolShowWebPages-BuaRjavD.js → PkToolShowWebPages-B554-MlD.js} +3 -3
  124. package/dist-vue/_chunks/{PkToolShowWebPages-BuaRjavD.js.map → PkToolShowWebPages-B554-MlD.js.map} +1 -1
  125. package/dist-vue/_chunks/{createChatbotApiClient-G3Tt1I67.js → createChatbotApiClient-CDS3C4i6.js} +3 -3
  126. package/dist-vue/_chunks/createChatbotApiClient-CDS3C4i6.js.map +1 -0
  127. package/dist-vue/_chunks/{mcpOAuthReport-3A9v_gW_.js → mcpOAuthReport-BHCMTtgf.js} +2 -2
  128. package/dist-vue/_chunks/{mcpOAuthReport-3A9v_gW_.js.map → mcpOAuthReport-BHCMTtgf.js.map} +1 -1
  129. package/dist-vue/_chunks/{src-DpkuiHam.js → src-BZRiAJsH.js} +46 -3
  130. package/dist-vue/_chunks/src-BZRiAJsH.js.map +1 -0
  131. package/dist-vue/_chunks/{useChatbotStore-C1sgxgD1.js → useChatbotStore-CBjBe7GI.js} +5 -5
  132. package/dist-vue/_chunks/{useChatbotStore-C1sgxgD1.js.map → useChatbotStore-CBjBe7GI.js.map} +1 -1
  133. package/dist-vue/_chunks/{useSafeLocalStorage-DLIc8pkn.js → useSafeLocalStorage-B1mX0eKb.js} +2 -2
  134. package/dist-vue/_chunks/{useSafeLocalStorage-DLIc8pkn.js.map → useSafeLocalStorage-B1mX0eKb.js.map} +1 -1
  135. package/dist-vue/_chunks/{utils-DsnEcdW3.js → utils-Cvijhryt.js} +3 -3
  136. package/dist-vue/_chunks/{utils-DsnEcdW3.js.map → utils-Cvijhryt.js.map} +1 -1
  137. package/dist-vue/api.js +1 -1
  138. package/dist-vue/composables.js +24 -8
  139. package/dist-vue/composables.js.map +1 -1
  140. package/dist-vue/index.js +33 -33
  141. package/dist-vue/index.js.map +1 -1
  142. package/dist-vue/locales.js +6 -2
  143. package/dist-vue/packages/components/src/chat/PkToolShowContactForm.d.ts +6 -0
  144. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -0
  145. package/dist-vue/packages/models/src/schema/Branding.d.ts +5 -0
  146. package/dist-vue/packages/models/src/schema/Chat.d.ts +8 -0
  147. package/dist-vue/packages/models/src/schema/Member.d.ts +15 -0
  148. package/dist-vue/packages/models/src/schema/ModelProvider.d.ts +12 -1
  149. package/dist-vue/packages/models/src/schema/constants.d.ts +26 -1
  150. package/package.json +1 -1
  151. package/dist/_chunks/PkToolShowContactForm-CfCy-b8w.js +0 -120
  152. package/dist/_chunks/PkToolShowContactForm-CfCy-b8w.js.map +0 -1
  153. package/dist/_chunks/markdown-BbaLt57-.js.map +0 -1
  154. package/dist/_chunks/src-DL9TKN-Z.js.map +0 -1
  155. package/dist-vue/_chunks/Agent-DU1WWaHR.js.map +0 -1
  156. package/dist-vue/_chunks/Document-Cto-Qws0.js.map +0 -1
  157. package/dist-vue/_chunks/PkChatbotMessages-CDLsj7qw.js.map +0 -1
  158. package/dist-vue/_chunks/PkChatbotSteps-C4qBM3_t.js +0 -191
  159. package/dist-vue/_chunks/PkChatbotSteps-C4qBM3_t.js.map +0 -1
  160. package/dist-vue/_chunks/PkToolShowContactForm-BzdIFTnC.js +0 -122
  161. package/dist-vue/_chunks/PkToolShowContactForm-BzdIFTnC.js.map +0 -1
  162. package/dist-vue/_chunks/createChatbotApiClient-G3Tt1I67.js.map +0 -1
  163. package/dist-vue/_chunks/src-DpkuiHam.js.map +0 -1
@@ -1,82 +1,83 @@
1
1
  import { A as e, E as t, S as n, n as r, v as i } from "./schemas-Bu1lick6.js";
2
2
  import { a } from "./Media-C6RS-s98.js";
3
- import { P as o, T as s, r as c, w as l } from "./Agent-DU1WWaHR.js";
3
+ import { P as o, T as s, r as c, w as l } from "./Agent-DGCZCx4Y.js";
4
4
  import { t as u } from "./VvButtonLocalized-BuzLsXp3.js";
5
- import { t as d } from "./PkStreamingMarkdown-CsHzdW69.js";
6
- import "./src-DpkuiHam.js";
5
+ import { t as d } from "./PkStreamingMarkdown-Bmm1kZpL.js";
6
+ import "./src-BZRiAJsH.js";
7
7
  import { c as f, i as p, l as m, n as h, o as g, s as _, t as v } from "./message-BOiF6Bt5.js";
8
- import { t as y } from "./PkChatbotAudioTranscript-0rvrhSRQ.js";
9
- import { A as ee, C as b, E as x, O as te, S, T as ne, a as C, b as w, f as T, g as re, h as ie, m as ae, n as oe, o as se, p as ce, t as E, u as le } from "./utils-DsnEcdW3.js";
8
+ import { t as y } from "./PkChatbotAudioTranscript-CC9M-zDv.js";
9
+ import { A as ee, C as b, E as x, O as te, S, T as ne, a as C, b as w, f as T, g as re, h as ie, m as ae, n as oe, o as se, p as ce, t as E, u as le } from "./utils-Cvijhryt.js";
10
10
  import { t as ue } from "./PkChatbotError-BV5ga7hk.js";
11
11
  import { t as de } from "./PkRelativeTime--1cIphlA.js";
12
- import { t as fe } from "./PkChatbotFilePreview-D5H-RIk2.js";
12
+ import { t as fe } from "./PkChatbotFilePreview-Lxgu89Hg.js";
13
13
  import { t as pe } from "./PkChatbotFeedbackForm-B5cYsWBr.js";
14
14
  import { t as me } from "./PkChatbotMessageFeedback-BYmrVaCE.js";
15
- import { n as he, t as ge } from "./PkChatbotSteps-C4qBM3_t.js";
15
+ import { n as he, t as ge } from "./PkChatbotSteps-3qySSEYh.js";
16
16
  import { t as _e } from "./PkChatbotOutlineRail-np4g6vsz.js";
17
17
  import { VvButtonGroup as ve, VvIcon as ye } from "@volverjs/ui-vue/components";
18
- import { Fragment as D, Transition as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as be, createVNode as P, defineAsyncComponent as F, defineComponent as xe, mergeProps as Se, nextTick as I, normalizeClass as L, normalizeStyle as Ce, onBeforeUnmount as we, onMounted as Te, openBlock as R, ref as z, renderList as Ee, renderSlot as De, resolveDynamicComponent as Oe, toDisplayString as B, unref as V, useSlots as ke, useTemplateRef as Ae, watch as H, withCtx as U, withModifiers as W } from "vue";
19
- import { useI18n as je } from "vue-i18n";
18
+ import { Fragment as D, Transition as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as be, createVNode as P, defineAsyncComponent as F, defineComponent as xe, mergeProps as Se, nextTick as I, normalizeClass as L, normalizeStyle as Ce, onBeforeUnmount as we, onMounted as Te, openBlock as R, ref as z, renderList as Ee, renderSlot as De, resolveDynamicComponent as Oe, shallowRef as ke, toDisplayString as B, unref as V, useSlots as Ae, useTemplateRef as je, watch as H, withCtx as U, withModifiers as W } from "vue";
19
+ import { useI18n as Me } from "vue-i18n";
20
+ import { useResizeObserver as Ne } from "@vueuse/core";
20
21
  //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/iso.js
21
- function Me(t) {
22
+ function Pe(t) {
22
23
  return e(r, t);
23
24
  }
24
25
  i({
25
26
  platform: n(),
26
27
  threadId: n()
27
28
  });
28
- var Ne = i({
29
+ var Fe = i({
29
30
  wakeId: t(),
30
- dueAt: Me(),
31
+ dueAt: Pe(),
31
32
  reason: n()
32
33
  });
33
- i({ pendingWakeup: Ne.nullable() }), i({ wakeId: t() });
34
- var G = (e) => e?.role === "user" && !!e.metadata?.wakeup, Pe = /* @__PURE__ */ new Set([
34
+ i({ pendingWakeup: Fe.nullable() }), i({ wakeId: t() });
35
+ var G = (e) => e?.role === "user" && !!e.metadata?.wakeup, Ie = /* @__PURE__ */ new Set([
35
36
  "input-streaming",
36
37
  "input-available",
37
38
  "approval-requested"
38
- ]), Fe = /* @__PURE__ */ new Set([
39
+ ]), Le = /* @__PURE__ */ new Set([
39
40
  ...s,
40
41
  ...l,
41
42
  "editSpreadsheet"
42
43
  ]);
43
44
  [...l, c.ShowContactForm];
44
- var K = (e) => e.state, Ie = (e) => e.type.startsWith("tool-") ? e.type.slice(5) : void 0, Le = (e) => e?.role === "assistant" && e.parts.some((e) => {
45
+ var K = (e) => e.state, Re = (e) => e.type.startsWith("tool-") ? e.type.slice(5) : void 0, ze = (e) => e?.role === "assistant" && e.parts.some((e) => {
45
46
  if (e.type === "text") return e.text.trim().length > 0;
46
47
  if (e.type === "file") return !0;
47
48
  let t = K(e);
48
- if (t && Pe.has(t)) return !0;
49
- let n = Ie(e);
50
- return n !== void 0 && Fe.has(n) && t === "output-available";
51
- }), Re = (e) => {
52
- if (e?.role !== "assistant" || Le(e)) return !1;
49
+ if (t && Ie.has(t)) return !0;
50
+ let n = Re(e);
51
+ return n !== void 0 && Le.has(n) && t === "output-available";
52
+ }), Be = (e) => {
53
+ if (e?.role !== "assistant" || ze(e)) return !1;
53
54
  let t = !1;
54
55
  for (let n of e.parts) n.type === "tool-scheduleWakeup" && (t = K(n) === "output-available" && n.input?.noop === !0);
55
56
  return t;
56
- }, ze = {
57
- requestOAuthConnection: F(() => import("./PkToolRequestOAuthConnection-DosWR9I4.js")),
58
- showArtifact: F(() => import("./PkToolShowArtifact-BVofKJ7b.js").then((e) => e.n)),
59
- showCalendarEvent: F(() => import("./PkToolShowCalendarEvent-u9O_Sl3-.js").then((e) => e.n)),
57
+ }, Ve = {
58
+ requestOAuthConnection: F(() => import("./PkToolRequestOAuthConnection-B243GJ1-.js")),
59
+ showArtifact: F(() => import("./PkToolShowArtifact-CJG-B9mE.js").then((e) => e.n)),
60
+ showCalendarEvent: F(() => import("./PkToolShowCalendarEvent-CFODjoDV.js").then((e) => e.n)),
60
61
  showComparison: F(() => import("./PkToolShowComparison-c2e239T4.js").then((e) => e.n)),
61
- showContactForm: F(() => import("./PkToolShowContactForm-BzdIFTnC.js").then((e) => e.n)),
62
- showDiagram: F(() => import("./PkToolShowDiagram-CaoB4k6y.js")),
62
+ showContactForm: F(() => import("./PkToolShowContactForm-CG1H7xBz.js").then((e) => e.n)),
63
+ showDiagram: F(() => import("./PkToolShowDiagram-Cq0457a3.js")),
63
64
  showEmail: F(() => import("./PkToolShowEmail-CUgZN0J5.js").then((e) => e.n)),
64
- showImageGallery: F(() => import("./PkToolShowImageGallery-ooygXk7j.js").then((e) => e.n)),
65
- showLocation: F(() => import("./PkToolShowLocation-DVMpFdRk.js").then((e) => e.n)),
65
+ showImageGallery: F(() => import("./PkToolShowImageGallery-ala8nlAj.js").then((e) => e.n)),
66
+ showLocation: F(() => import("./PkToolShowLocation-BipZrvw7.js").then((e) => e.n)),
66
67
  showMessage: F(() => import("./PkToolShowMessage-ATTN5Hac.js").then((e) => e.n)),
67
- showForm: F(() => import("./PkToolShowForm-vYuaPtu0.js").then((e) => e.n)),
68
- showMultipleChoice: F(() => import("./PkToolShowForm-vYuaPtu0.js").then((e) => e.n)),
69
- showProductList: F(() => import("./PkToolShowProductList-D-HJ9a_h.js").then((e) => e.n)),
68
+ showForm: F(() => import("./PkToolShowForm-IJ8B8_yT.js").then((e) => e.n)),
69
+ showMultipleChoice: F(() => import("./PkToolShowForm-IJ8B8_yT.js").then((e) => e.n)),
70
+ showProductList: F(() => import("./PkToolShowProductList-BDg84ZQN.js").then((e) => e.n)),
70
71
  showQrCode: F(() => import("./PkToolShowQrCode-D_5VUtEB.js").then((e) => e.n)),
71
- showSources: F(() => import("./PkToolShowSources-DJ35l3Z3.js").then((e) => e.n)),
72
- showSuggestedReply: F(() => import("./PkToolShowSuggestedReply-I6FBos-F.js").then((e) => e.n)),
73
- showVideo: F(() => import("./PkToolShowVideo-xcg1gdIE.js")),
74
- showWeather: F(() => import("./PkToolShowWeather-DJxKxVp_.js")),
75
- showWebPages: F(() => import("./PkToolShowWebPages-BuaRjavD.js").then((e) => e.n))
76
- }, Be = {
72
+ showSources: F(() => import("./PkToolShowSources-DaSijN_L.js").then((e) => e.n)),
73
+ showSuggestedReply: F(() => import("./PkToolShowSuggestedReply-CLEFPrHP.js").then((e) => e.n)),
74
+ showVideo: F(() => import("./PkToolShowVideo-FmE-IRE7.js")),
75
+ showWeather: F(() => import("./PkToolShowWeather-BD0w6BA1.js")),
76
+ showWebPages: F(() => import("./PkToolShowWebPages-B554-MlD.js").then((e) => e.n))
77
+ }, He = {
77
78
  key: 0,
78
79
  class: "text-12 text-word-3 m-0 mb-xs"
79
- }, Ve = /* @__PURE__ */ xe({
80
+ }, Ue = /* @__PURE__ */ xe({
80
81
  __name: "PkToolApprovalPreviewMessage",
81
82
  props: { input: {} },
82
83
  setup(e) {
@@ -84,12 +85,12 @@ var K = (e) => e.state, Ie = (e) => e.type.startsWith("tool-") ? e.type.slice(5)
84
85
  let e = t.input;
85
86
  return typeof e?.message == "string" ? e.message : "";
86
87
  });
87
- return (e, t) => n.value ? (R(), M("p", Be, B(n.value), 1)) : j("", !0);
88
+ return (e, t) => n.value ? (R(), M("p", He, B(n.value), 1)) : j("", !0);
88
89
  }
89
- }), q = { [E]: Ve }, He = {
90
+ }), q = { [E]: Ue }, J = {
90
91
  key: 0,
91
92
  class: "text-12 text-word-3 m-0 mb-xs"
92
- }, Ue = /* @__PURE__ */ xe({
93
+ }, We = /* @__PURE__ */ xe({
93
94
  __name: "PkToolApprovalCard",
94
95
  props: {
95
96
  part: {},
@@ -98,7 +99,7 @@ var K = (e) => e.state, Ie = (e) => e.type.startsWith("tool-") ? e.type.slice(5)
98
99
  },
99
100
  emits: ["respond"],
100
101
  setup(e, { emit: t }) {
101
- let n = e, r = t, { t: i, te: a } = je({ useScope: "global" }), s = k(() => n.part), c = k(() => p(n.part)), l = k(() => c.value === E), d = k(() => l.value ? (s.value.state === "input-available" || o(s.value.output)) && n.callVerdict === void 0 : s.value.state === "approval-requested"), f = k(() => d.value && n.actionable === !0), m = k(() => d.value && n.actionable !== !0), h = k(() => l.value ? s.value.output === "confirmed" || n.callVerdict === !0 : s.value.approval?.approved === !0), g = k(() => l.value ? s.value.output === "cancelled" || n.callVerdict === !1 : s.value.approval?.approved === !1 || s.value.state === "output-denied"), _ = k(() => q[c.value]), v = k(() => _.value ? i("toolApproval.prompt") : i("toolApproval.promptNamed", { tool: ee(c.value, {
102
+ let n = e, r = t, { t: i, te: a } = Me({ useScope: "global" }), s = k(() => n.part), c = k(() => p(n.part)), l = k(() => c.value === E), d = k(() => l.value ? (s.value.state === "input-available" || o(s.value.output)) && n.callVerdict === void 0 : s.value.state === "approval-requested"), f = k(() => d.value && n.actionable === !0), m = k(() => d.value && n.actionable !== !0), h = k(() => l.value ? s.value.output === "confirmed" || n.callVerdict === !0 : s.value.approval?.approved === !0), g = k(() => l.value ? s.value.output === "cancelled" || n.callVerdict === !1 : s.value.approval?.approved === !1 || s.value.state === "output-denied"), _ = k(() => q[c.value]), v = k(() => _.value ? i("toolApproval.prompt") : i("toolApproval.promptNamed", { tool: ee(c.value, {
102
103
  t: i,
103
104
  te: a
104
105
  }) })), y = k(() => {
@@ -119,7 +120,7 @@ var K = (e) => e.state, Ie = (e) => e.type.startsWith("tool-") ? e.type.slice(5)
119
120
  let a = u, o = ve, c = ye;
120
121
  return R(), M("div", { class: L(["w-full overflow-hidden transition-all duration-300", { "bg-surface p-sm rounded-xl border border-surface-3": !b.value }]) }, [
121
122
  P(O, null, {
122
- default: U(() => [!l.value && d.value ? (R(), M("p", He, B(v.value), 1)) : j("", !0)]),
123
+ default: U(() => [!l.value && d.value ? (R(), M("p", J, B(v.value), 1)) : j("", !0)]),
123
124
  _: 1
124
125
  }),
125
126
  _.value ? (R(), A(Oe(_.value), {
@@ -155,15 +156,15 @@ var K = (e) => e.state, Ie = (e) => e.type.startsWith("tool-") ? e.type.slice(5)
155
156
  ], 2);
156
157
  };
157
158
  }
158
- }), We = 30, Ge = 500;
159
- function Ke(e) {
159
+ }), Ge = 30, Ke = 500;
160
+ function qe(e) {
160
161
  let { scrollEl: t, status: n, messagesLength: r, lastMessageRole: i, contentEl: a, beforeNewMessageScroll: o, onScrollUp: s, onScrollDown: c } = e, l = z(!1), u = z(!0), d = !1, f = null, p = null, m = null, h = null, g = 0, _ = (e = "smooth") => {
161
162
  !t.value || l.value ? d = !1 : (d = !0, t.value.scrollTo({
162
163
  top: t.value.scrollHeight,
163
164
  behavior: e
164
165
  }), setTimeout(() => {
165
166
  d = !1;
166
- }, e === "instant" ? 0 : Ge));
167
+ }, e === "instant" ? 0 : Ke));
167
168
  }, v = (e) => {
168
169
  e.deltaY < 0 && (l.value = !0);
169
170
  }, y = 0, ee = (e) => {
@@ -174,7 +175,7 @@ function Ke(e) {
174
175
  }, x = () => {
175
176
  if (!t.value) return;
176
177
  let { scrollTop: e, scrollHeight: n, clientHeight: r } = t.value;
177
- u.value = n - r - e < We, d || (e < g && s?.(), e > g && (u.value && (l.value = !1), c?.())), g = e;
178
+ u.value = n - r - e < Ge, d || (e < g && s?.(), e > g && (u.value && (l.value = !1), c?.())), g = e;
178
179
  }, te = () => {
179
180
  if (d || l.value || !t.value) return;
180
181
  let e = t.value, n = e.scrollHeight - e.clientHeight;
@@ -228,8 +229,8 @@ function Ke(e) {
228
229
  }
229
230
  //#endregion
230
231
  //#region ../../packages/components/src/chat/wakeupFeed.ts
231
- function qe(e, t = () => !1) {
232
- let n = (e) => Re(e) && !t(e), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = 0;
232
+ function Je(e, t = () => !1) {
233
+ let n = (e) => Be(e) && !t(e), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = 0;
233
234
  for (; a < e.length;) {
234
235
  let t = e[a];
235
236
  if (G(t) && n(e[a + 1])) {
@@ -248,40 +249,40 @@ function qe(e, t = () => !1) {
248
249
  }
249
250
  //#endregion
250
251
  //#region ../../packages/components/src/chat/PkChatbotMessages.vue?vue&type=script&setup=true&lang.ts
251
- var Je = ["aria-busy"], Ye = {
252
+ var Ye = ["aria-busy"], Xe = {
252
253
  key: 0,
253
254
  class: "pk-chatbot-messages__outline"
254
- }, Xe = {
255
+ }, Ze = {
255
256
  key: 0,
256
257
  class: "pk-chatbot-divider vv-separator"
257
- }, Ze = { class: "pk-chatbot-divider__label" }, Qe = {
258
+ }, Qe = { class: "pk-chatbot-divider__label" }, $e = {
258
259
  key: 1,
259
260
  class: "pk-chatbot-wakeup"
260
- }, $e = ["title"], et = { class: "pk-chatbot-message__text" }, tt = ["title"], nt = {
261
+ }, et = ["title"], tt = { class: "pk-chatbot-message__text" }, nt = ["title"], rt = {
261
262
  key: 0,
262
263
  class: "pk-chatbot-message__reaction-emoji"
263
- }, rt = {
264
+ }, it = {
264
265
  key: 0,
265
266
  class: "flex flex-col items-end gap-8 w-full"
266
- }, it = {
267
+ }, at = {
267
268
  key: 0,
268
269
  class: "pk-chatbot-message__loading-info"
269
- }, at = { class: "flex gap-8 items-center" }, ot = { class: "text-12" }, st = { class: "flex gap-8 items-center" }, ct = {
270
+ }, ot = { class: "flex gap-8 items-center" }, st = { class: "text-12" }, ct = { class: "flex gap-8 items-center" }, lt = {
270
271
  key: 0,
271
272
  class: "pk-chatbot-message__footer"
272
- }, lt = {
273
+ }, ut = {
273
274
  key: 0,
274
275
  class: "pk-chatbot-message__hover-meta"
275
- }, ut = ["datetime", "title"], dt = { class: "truncate" }, ft = {
276
+ }, dt = ["datetime", "title"], ft = { class: "truncate" }, pt = {
276
277
  key: 0,
277
278
  class: "flex items-center gap-4 min-w-0"
278
- }, pt = { class: "truncate" }, mt = ["title"], ht = {
279
+ }, mt = { class: "truncate" }, ht = ["title"], gt = {
279
280
  key: 2,
280
281
  class: "flex items-center gap-4 text-12 text-word-3"
281
- }, gt = { class: "truncate" }, _t = ["datetime"], vt = { class: "truncate" }, yt = {
282
+ }, _t = { class: "truncate" }, vt = ["datetime"], yt = { class: "truncate" }, bt = {
282
283
  key: 4,
283
284
  class: "flex items-center gap-4 text-12 text-word-3"
284
- }, bt = { class: "pk-chatbot-message__loading-info" }, xt = { class: "flex gap-8 items-center" }, St = { class: "text-12" }, Ct = ["title", "aria-label"], J = /* @__PURE__ */ xe({
285
+ }, xt = { class: "pk-chatbot-message__loading-info" }, St = { class: "flex gap-8 items-center" }, Ct = { class: "text-12" }, wt = ["title", "aria-label"], Tt = /* @__PURE__ */ xe({
285
286
  __name: "PkChatbotMessages",
286
287
  props: {
287
288
  status: {},
@@ -326,7 +327,7 @@ var Je = ["aria-busy"], Ye = {
326
327
  "confirm-respond"
327
328
  ],
328
329
  setup(e, { emit: t }) {
329
- let n = e, r = t, { t: i, te: o, d: s, n: c } = je({ useScope: "global" }), l = ke(), ee = (e, t) => {
330
+ let n = e, r = t, { t: i, te: o, d: s, n: c } = Me({ useScope: "global" }), l = Ae(), ee = (e, t) => {
330
331
  if (b(e)) {
331
332
  let n = e.toolCallId;
332
333
  n && r("confirm-respond", {
@@ -340,101 +341,105 @@ var Je = ["aria-busy"], Ye = {
340
341
  id: n,
341
342
  approved: t
342
343
  });
343
- }, E = Ae("scrollEl"), F = Ae("wrapperEl"), xe = k(() => te(n.textColor, n.mainColor)), { handleScroll: we, scrollToBottom: Me, userScrolledUp: Ne, isAtBottom: Pe } = Ke({
344
+ }, E = je("scrollEl"), F = je("wrapperEl"), xe = k(() => te(n.textColor, n.mainColor)), { handleScroll: we, scrollToBottom: Pe, userScrolledUp: Fe, isAtBottom: Ie } = qe({
344
345
  scrollEl: E,
345
346
  status: () => n.status,
346
347
  messagesLength: () => n.messages?.length,
347
348
  lastMessageRole: () => n.messages?.[n.messages.length - 1]?.role,
348
349
  contentEl: () => F.value,
349
- beforeNewMessageScroll: () => We(),
350
+ beforeNewMessageScroll: () => Et(),
350
351
  onScrollUp: () => r("scroll-up"),
351
352
  onScrollDown: () => r("scroll-down")
352
- }), Fe = () => {
353
- Ne.value = !1, Me();
353
+ }), Le = () => {
354
+ Fe.value = !1, Pe();
354
355
  }, K = k(() => (n.messages ?? []).filter((e) => e.role === "user" && !G(e)).map((e) => ({
355
356
  id: e.id,
356
357
  preview: e.parts.find(f)?.text.trim().slice(0, 120) || "…"
357
- }))), Ie = z(), Le = () => E.value?.querySelectorAll(".pk-chatbot-message--user") ?? [], Re = () => {
358
+ }))), Re = z(), ze = () => E.value?.querySelectorAll(".pk-chatbot-message--user") ?? [], Be = () => {
358
359
  let e = E.value;
359
360
  if (!e || !n.showScrollToBottom) return;
360
361
  let t = e.getBoundingClientRect().top + e.clientHeight / 2, r = K.value[0]?.id;
361
- Le().forEach((e, n) => {
362
+ ze().forEach((e, n) => {
362
363
  e.getBoundingClientRect().top <= t && (r = K.value[n]?.id);
363
- }), Ie.value = r;
364
+ }), Re.value = r;
364
365
  };
365
366
  H(K, async () => {
366
- await I(), Re();
367
+ await I(), Be();
367
368
  });
368
- let Be = () => {
369
- we(), Re();
370
- }, Ve = (e) => {
371
- let t = E.value, n = K.value.findIndex((t) => t.id === e), r = Le()[n];
372
- t && r && (Ne.value = !0, t.scrollTo({
369
+ let He = () => {
370
+ we(), Be();
371
+ }, Ue = (e) => {
372
+ let t = E.value, n = K.value.findIndex((t) => t.id === e), r = ze()[n];
373
+ t && r && (Fe.value = !0, t.scrollTo({
373
374
  top: t.scrollTop + r.getBoundingClientRect().top - t.getBoundingClientRect().top - Number.parseFloat(getComputedStyle(t).paddingTop),
374
375
  behavior: "smooth"
375
376
  }));
376
- }, q = z(0), He = z(!1), We = async () => {
377
+ }, q = k(() => n.status === "submitted" || n.status === "streaming"), J = z(0), Ge = z(!1), Ke = !1, Tt = ke(), Et = async () => {
377
378
  let e = n.messages;
378
- if (!e?.length || n.disableHeightAdjustment || e[e.length - 1].role !== "user" && n.status !== "submitted" && n.status !== "streaming" || (He.value = !1, await I(), !E.value)) return;
379
- let { paddingTop: t, paddingBottom: r } = getComputedStyle(E.value), i = E.value.clientHeight - Number.parseFloat(t) - Number.parseFloat(r), a = F.value && Number.parseFloat(getComputedStyle(F.value).rowGap) || 0, o = Le(), s = i - (o[o.length - 1]?.clientHeight ?? 0) - a;
380
- i > 0 && (q.value = Math.max(s, 0)), await I();
379
+ if (!e?.length || n.disableHeightAdjustment || !(e[e.length - 1].role === "user" || q.value) || (Ke = !0, Ge.value = !1, await I(), !E.value)) return;
380
+ let { paddingTop: t, paddingBottom: r } = getComputedStyle(E.value), i = E.value.clientHeight - Number.parseFloat(t) - Number.parseFloat(r), a = F.value && Number.parseFloat(getComputedStyle(F.value).rowGap) || 0, o = ze();
381
+ Tt.value = o[o.length - 1];
382
+ let s = i - (Tt.value?.clientHeight ?? 0) - a;
383
+ i > 0 && (J.value = Math.max(s, 0)), await I();
381
384
  };
382
- H(() => [n.messages?.length, n.messages?.[n.messages.length - 1]?.id], () => We()), Te(() => {
383
- (n.status === "submitted" || n.status === "streaming" || n.awaitingSpokenAnswer) && We();
384
- }), H(() => n.status, (e) => {
385
- (e === "ready" || e === "error") && (He.value = !0, q.value = 0);
385
+ H([() => n.messages?.length, () => n.messages?.[n.messages.length - 1]?.id], () => Et()), Ne([E, Tt], () => {
386
+ Ke && Et();
387
+ }), Te(() => {
388
+ (q.value || n.awaitingSpokenAnswer) && Et();
389
+ }), H(q, (e) => {
390
+ e || (Ke = !1, Ge.value = !0, J.value = 0);
386
391
  });
387
- let Ge = (e) => n.revisedAnswers?.some((t) => t.messageId === e), J = (e) => n.messageFeedbacks?.find((t) => t.messageId === e), wt = (e, t) => !n.readonlyFeedback && Ht(e, t), Tt = (e) => n.readonlyFeedback ? J(e) : void 0, Et = (e) => Tt(e)?.vote, Dt = (e) => {
388
- let t = Tt(e);
392
+ let Dt = (e) => n.revisedAnswers?.some((t) => t.messageId === e), Y = (e) => n.messageFeedbacks?.find((t) => t.messageId === e), Ot = /* @__PURE__ */ new Set(["showContactForm"]), kt = (e) => !n.interactive && Ot.has(p(e)) ? { record: !0 } : {}, At = (e, t) => !n.readonlyFeedback && Jt(e, t), jt = (e) => n.readonlyFeedback ? Y(e) : void 0, Mt = (e) => jt(e)?.vote, Nt = (e) => {
393
+ let t = jt(e);
389
394
  if (t?.vote) return;
390
395
  let n = t?.metadata?.reactionEmoji;
391
396
  return typeof n == "string" && /\p{Extended_Pictographic}/u.test(n) ? n : void 0;
392
- }, Ot = (e) => !!(Et(e) || Dt(e)), kt = (e) => {
393
- if (Dt(e)) return "pk-chatbot-message__reaction--neutral";
394
- let t = Et(e);
397
+ }, Pt = (e) => !!(Mt(e) || Nt(e)), Ft = (e) => {
398
+ if (Nt(e)) return "pk-chatbot-message__reaction--neutral";
399
+ let t = Mt(e);
395
400
  return t === "upvote" ? "pk-chatbot-message__reaction--positive" : t === "downvote" ? "pk-chatbot-message__reaction--negative" : "pk-chatbot-message__reaction--neutral";
396
- }, At = (e) => {
397
- let t = Et(e);
401
+ }, It = (e) => {
402
+ let t = Mt(e);
398
403
  return i(t === "upvote" ? "hint.userFeedbackPositive" : t === "downvote" ? "hint.userFeedbackNegative" : "hint.userFeedbackReaction");
399
- }, jt = (e) => {
400
- let t = Pt(e);
404
+ }, Lt = (e) => {
405
+ let t = Bt(e);
401
406
  for (let e = t.length - 1; e >= 0; --e) if (f(t[e])) return e;
402
407
  return -1;
403
- }, Mt = k(() => n.messages?.[n.messages.length - 1]), Y = k(() => {
404
- let e = Mt.value;
408
+ }, Rt = k(() => n.messages?.[n.messages.length - 1]), X = k(() => {
409
+ let e = Rt.value;
405
410
  return e ? e.parts[e.parts.length - 1] : null;
406
- }), Nt = k(() => {
411
+ }), zt = k(() => {
407
412
  let e = /* @__PURE__ */ new Map();
408
413
  for (let t of n.messages ?? []) t.role === "assistant" && e.set(t.id, x(C(ne(t.parts))));
409
414
  return e;
410
- }), Pt = (e) => Nt.value.get(e.id) ?? e.parts, X = k(() => n.status === "submitted" || n.status === "streaming"), Ft = k(() => n.status === "error"), It = k(() => n.awaitingSpokenAnswer === !0 && !X.value), Lt = k(() => It.value && Mt.value?.role === "user" && !Ft.value), Rt = k(() => {
411
- let e = Y.value;
415
+ }), Bt = (e) => zt.value.get(e.id) ?? e.parts, Vt = k(() => n.status === "error"), Ht = k(() => n.awaitingSpokenAnswer === !0 && !q.value), Ut = k(() => Ht.value && Rt.value?.role === "user" && !Vt.value), Wt = k(() => {
416
+ let e = X.value;
412
417
  return re(i, e);
413
- }), zt = k(() => {
414
- let e = Y.value;
418
+ }), Gt = k(() => {
419
+ let e = X.value;
415
420
  return T(e);
416
- }), Bt = (e) => n.messages?.findIndex((t) => t.id === e), Z = (e) => e === void 0 || !n.messages ? !1 : e === n.messages.length - 1, Vt = (e) => Z(e) && n.status === "ready" && !!n.actions?.includes("regenerate"), Ht = (e, t) => (!Z(t) || n.status === "ready") && !!n.actions?.includes(e), Ut = (e) => {
421
+ }), Kt = (e) => n.messages?.findIndex((t) => t.id === e), Z = (e) => e === void 0 || !n.messages ? !1 : e === n.messages.length - 1, qt = (e) => Z(e) && n.status === "ready" && !!n.actions?.includes("regenerate"), Jt = (e, t) => (!Z(t) || n.status === "ready") && !!n.actions?.includes(e), Yt = (e) => {
417
422
  let t = e.parts[e.parts.length - 1];
418
423
  return f(t);
419
- }, Wt = (e) => e.parts.some((e) => _(e) || m(e)), Gt = (e) => !!n.showExtendedSteps && Q(e) && Wt(e), Kt = (e) => m(e) && !S(e) && !!(ze[p(e)] || l[e.type] || n.showAllMessageParts), qt = (e) => e.parts.some((e) => f(e) && !!e.text.trim() || g(e) || w(e) && !S(e) || Kt(e)), Q = (e) => e.role === "assistant", Jt = (e) => e.role === "user", Yt = (e) => n.messages?.slice(0, e).reverse().find((e) => Q(e)), Xt = (e) => n.messages?.slice(e + 1).find((e) => Q(e)), Zt = (e) => {
420
- let t = Yt(e)?.metadata?.createdAt, n = Xt(e)?.metadata?.createdAt;
424
+ }, Xt = (e) => e.parts.some((e) => _(e) || m(e)), Zt = (e) => !!n.showExtendedSteps && Q(e) && Xt(e), Qt = (e) => m(e) && !S(e) && !!(Ve[p(e)] || l[e.type] || n.showAllMessageParts), $t = (e) => e.parts.some((e) => f(e) && !!e.text.trim() || g(e) || w(e) && !S(e) || Qt(e)), Q = (e) => e.role === "assistant", en = (e) => e.role === "user", tn = (e) => n.messages?.slice(0, e).reverse().find((e) => Q(e)), nn = (e) => n.messages?.slice(e + 1).find((e) => Q(e)), rn = (e) => {
425
+ let t = tn(e)?.metadata?.createdAt, n = nn(e)?.metadata?.createdAt;
421
426
  if (!t || !n) return;
422
427
  let r = new Date(t), i = new Date(n);
423
428
  return r.toDateString() === i.toDateString() ? void 0 : i;
424
- }, $ = k(() => n.showAllMessageParts ? qe([]) : qe(n.messages ?? [], qt)), Qt = k(() => {
429
+ }, $ = k(() => n.showAllMessageParts ? Je([]) : Je(n.messages ?? [], $t)), an = k(() => {
425
430
  let e = 0;
426
431
  return (n.messages ?? []).map((t) => t.parts.length > 0 ? ++e : void 0);
427
- }), $t = (e, t) => t === 0 || e.role !== "assistant" ? !1 : !!(n.actions?.length || n.showMessageNumber || n.showMessageDateTime && e.metadata?.createdAt !== void 0 || e.metadata?.completedAt !== void 0 || n.showMessageTokensCount && e.metadata?.totalTokens !== void 0), en = (e) => {
432
+ }), on = (e, t) => t === 0 || e.role !== "assistant" ? !1 : !!(n.actions?.length || n.showMessageNumber || n.showMessageDateTime && e.metadata?.createdAt !== void 0 || e.metadata?.completedAt !== void 0 || n.showMessageTokensCount && e.metadata?.totalTokens !== void 0), sn = (e) => {
428
433
  let t = new Date(e), n = t.toDateString() === (/* @__PURE__ */ new Date()).toDateString();
429
434
  return s(t, n ? "time" : "date-time");
430
- }, tn = (e) => {
435
+ }, cn = (e) => {
431
436
  let { createdAt: t, completedAt: n } = e.metadata ?? {};
432
437
  if (t && n) return le(c, n - t);
433
- }, nn = Ae("feedbackMessageEl");
438
+ }, ln = je("feedbackMessageEl");
434
439
  return H(() => n.feedbackMessageId, async () => {
435
440
  if (await I(), !n.feedbackMessageId) return;
436
- let e = nn.value?.[0]?.$el;
437
- e && (Z(Bt(n.feedbackMessageId)) ? Me() : e.scrollIntoView({
441
+ let e = ln.value?.[0]?.$el;
442
+ e && (Z(Kt(n.feedbackMessageId)) ? Pe() : e.scrollIntoView({
438
443
  behavior: "smooth",
439
444
  block: "center"
440
445
  }));
@@ -443,21 +448,21 @@ var Je = ["aria-busy"], Ye = {
443
448
  return R(), M("div", {
444
449
  ref_key: "scrollEl",
445
450
  ref: E,
446
- class: L(["pk-chatbot-messages scrollbar-thin", { "pk-chatbot-messages--settling": He.value }]),
451
+ class: L(["pk-chatbot-messages scrollbar-thin", { "pk-chatbot-messages--settling": Ge.value }]),
447
452
  role: "log",
448
453
  "aria-live": "polite",
449
454
  "aria-relevant": "additions text",
450
- "aria-busy": X.value,
455
+ "aria-busy": q.value,
451
456
  style: Ce({
452
457
  "--chatbot-main-color": e.mainColor,
453
458
  "--chatbot-contrast-color": xe.value
454
459
  }),
455
- onScroll: Be
460
+ onScroll: He
456
461
  }, [
457
- e.showScrollToBottom && K.value.length > 1 ? (R(), M("div", Ye, [P(_e, {
462
+ e.showScrollToBottom && K.value.length > 1 ? (R(), M("div", Xe, [P(_e, {
458
463
  items: K.value,
459
- "active-id": Ie.value,
460
- onSelect: Ve
464
+ "active-id": Re.value,
465
+ onSelect: Ue
461
466
  }, null, 8, ["items", "active-id"])])) : j("", !0),
462
467
  N("div", {
463
468
  ref_key: "wrapperEl",
@@ -465,8 +470,8 @@ var Je = ["aria-busy"], Ye = {
465
470
  class: "pk-chatbot-messages__wrapper"
466
471
  }, [
467
472
  (R(!0), M(D, null, Ee(e.messages, (u, x) => (R(), M(D, { key: u.id }, [
468
- Jt(u) && Zt(x) ? (R(), M("div", Xe, [N("span", Ze, B(V(s)(Zt(x), "short")), 1)])) : j("", !0),
469
- $.value.quietRuns.has(u.id) ? (R(), M("div", Qe, [P(r, {
473
+ en(u) && rn(x) ? (R(), M("div", Ze, [N("span", Qe, B(V(s)(rn(x), "short")), 1)])) : j("", !0),
474
+ $.value.quietRuns.has(u.id) ? (R(), M("div", $e, [P(r, {
470
475
  name: "ri:alarm-line",
471
476
  class: "shrink-0"
472
477
  }), N("span", null, B(V(i)("label.wakeupQuietRun", {
@@ -479,21 +484,21 @@ var Je = ["aria-busy"], Ye = {
479
484
  }, [P(r, {
480
485
  name: "ri:alarm-line",
481
486
  class: "shrink-0"
482
- }), N("span", null, [be(B(V(i)("label.wakeupCheck")) + " ", 1), u.metadata?.createdAt ? (R(), M(D, { key: 0 }, [be(" · " + B(V(s)(u.metadata.createdAt, "time")), 1)], 64)) : j("", !0)])], 8, $e)) : j("", !0),
483
- (!V(G)(u) || e.showAllMessageParts) && (!$.value.hidden.has(u.id) || X.value && Z(x)) && (u.parts.length || Z(x) && X.value && Q(u)) ? (R(), M("div", {
487
+ }), N("span", null, [be(B(V(i)("label.wakeupCheck")) + " ", 1), u.metadata?.createdAt ? (R(), M(D, { key: 0 }, [be(" · " + B(V(s)(u.metadata.createdAt, "time")), 1)], 64)) : j("", !0)])], 8, et)) : j("", !0),
488
+ (!V(G)(u) || e.showAllMessageParts) && (!$.value.hidden.has(u.id) || q.value && Z(x)) && (u.parts.length || Z(x) && q.value && Q(u)) ? (R(), M("div", {
484
489
  key: 3,
485
- class: L(["pk-chatbot-message", [`pk-chatbot-message--${u.role}`, { "pk-chatbot-message--loading": X.value && Z(x) && Q(u) }]]),
486
- style: Ce({ minHeight: Z(x) && Q(u) && !Ft.value ? `${q.value}px` : void 0 })
490
+ class: L(["pk-chatbot-message", [`pk-chatbot-message--${u.role}`, { "pk-chatbot-message--loading": q.value && Z(x) && Q(u) }]]),
491
+ style: Ce({ minHeight: Z(x) && Q(u) && !Vt.value ? `${J.value}px` : void 0 })
487
492
  }, [
488
493
  P(O, {
489
494
  appear: "",
490
495
  name: "pk-chatbot-part"
491
496
  }, {
492
- default: U(() => [Gt(u) ? (R(), A(ge, {
497
+ default: U(() => [Zt(u) ? (R(), A(ge, {
493
498
  key: 0,
494
499
  message: u,
495
- "is-streaming": X.value && Z(x),
496
- "has-content": qt(u),
500
+ "is-streaming": q.value && Z(x),
501
+ "has-content": $t(u),
497
502
  "is-dark": e.isDark
498
503
  }, null, 8, [
499
504
  "message",
@@ -503,16 +508,16 @@ var Je = ["aria-busy"], Ye = {
503
508
  ])) : j("", !0)]),
504
509
  _: 2
505
510
  }, 1024),
506
- (R(!0), M(D, null, Ee(Pt(u), (n, s) => (R(), M(D, { key: V(se)(n, s) }, [V(f)(n) && n.text.trim() ? (R(), A(O, {
511
+ (R(!0), M(D, null, Ee(Bt(u), (n, s) => (R(), M(D, { key: V(se)(n, s) }, [V(f)(n) && n.text.trim() ? (R(), A(O, {
507
512
  key: 0,
508
513
  appear: "",
509
514
  name: "pk-chatbot-part"
510
515
  }, {
511
- default: U(() => [N("div", et, [De(t.$slots, "text", Se({ ref_for: !0 }, {
516
+ default: U(() => [N("div", tt, [De(t.$slots, "text", Se({ ref_for: !0 }, {
512
517
  message: u,
513
518
  part: n,
514
519
  index: x,
515
- isLoading: X.value
520
+ isLoading: q.value
516
521
  }), () => [Q(u) ? (R(), A(d, {
517
522
  key: 0,
518
523
  class: "wysiwyg",
@@ -523,21 +528,21 @@ var Je = ["aria-busy"], Ye = {
523
528
  "markdown",
524
529
  "is-dark",
525
530
  "loading"
526
- ])) : (R(), M(D, { key: 1 }, [be(B(n.text), 1)], 64))]), Ot(u.id) && !J(u.id)?.comment && s === jt(u) ? (R(), M("span", {
531
+ ])) : (R(), M(D, { key: 1 }, [be(B(n.text), 1)], 64))]), Pt(u.id) && !Y(u.id)?.comment && s === Lt(u) ? (R(), M("span", {
527
532
  key: 0,
528
- class: L(["pk-chatbot-message__reaction", kt(u.id)]),
529
- title: At(u.id)
530
- }, [Dt(u.id) ? (R(), M("span", nt, B(Dt(u.id)), 1)) : (R(), A(r, {
533
+ class: L(["pk-chatbot-message__reaction", Ft(u.id)]),
534
+ title: It(u.id)
535
+ }, [Nt(u.id) ? (R(), M("span", rt, B(Nt(u.id)), 1)) : (R(), A(r, {
531
536
  key: 1,
532
- name: Et(u.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
533
- }, null, 8, ["name"]))], 10, tt)) : j("", !0)])]),
537
+ name: Mt(u.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
538
+ }, null, 8, ["name"]))], 10, nt)) : j("", !0)])]),
534
539
  _: 2
535
540
  }, 1024)) : V(g)(n) ? (R(), A(O, {
536
541
  key: 1,
537
542
  appear: "",
538
543
  name: "pk-chatbot-part"
539
544
  }, {
540
- default: U(() => [V(a)(n.filename, n.mediaType) ? (R(), M("div", rt, [P(fe, {
545
+ default: U(() => [V(a)(n.filename, n.mediaType) ? (R(), M("div", it, [P(fe, {
541
546
  "media-type": n.mediaType,
542
547
  url: n.url,
543
548
  filename: n.filename,
@@ -573,7 +578,7 @@ var Je = ["aria-busy"], Ye = {
573
578
  appear: "",
574
579
  name: "pk-chatbot-part"
575
580
  }, {
576
- default: U(() => [(R(), A(Ue, {
581
+ default: U(() => [(R(), A(We, {
577
582
  key: `approval-${s}`,
578
583
  part: n,
579
584
  actionable: e.interactive === !0 && (V(b)(n) || Z(x)),
@@ -586,32 +591,32 @@ var Je = ["aria-busy"], Ye = {
586
591
  "onRespond"
587
592
  ]))]),
588
593
  _: 2
589
- }, 1024)) : Kt(n) ? (R(), A(O, {
594
+ }, 1024)) : Qt(n) ? (R(), A(O, {
590
595
  key: 3,
591
596
  appear: "",
592
597
  name: "pk-chatbot-part"
593
598
  }, {
594
- default: U(() => [!V(l)[n.type] && V(ze)[V(p)(n)] ? (R(), A(Oe(V(ze)[V(p)(n)]), {
599
+ default: U(() => [!V(l)[n.type] && V(Ve)[V(p)(n)] ? (R(), A(Oe(V(Ve)[V(p)(n)]), Se({
595
600
  key: `component-${s}-${V(ce)(n)}`,
596
601
  part: n
597
- }, null, 8, ["part"])) : De(t.$slots, n.type, Se({ ref_for: !0 }, {
602
+ }, { ref_for: !0 }, kt(n)), null, 16, ["part"])) : De(t.$slots, n.type, Se({ ref_for: !0 }, {
598
603
  message: u,
599
604
  part: n,
600
605
  index: x,
601
- isLoading: X.value
602
- }), () => [e.showAllMessageParts ? (R(), M("div", it, [N("div", at, [V(T)(n) ? (R(), A(r, {
606
+ isLoading: q.value
607
+ }), () => [e.showAllMessageParts ? (R(), M("div", at, [N("div", ot, [V(T)(n) ? (R(), A(r, {
603
608
  key: 0,
604
609
  name: V(T)(n),
605
610
  class: "shrink-0"
606
- }, null, 8, ["name"])) : j("", !0), N("span", ot, B(V(ae)(n, {
611
+ }, null, 8, ["name"])) : j("", !0), N("span", st, B(V(ae)(n, {
607
612
  t: V(i),
608
613
  te: V(o)
609
614
  })), 1)])])) : j("", !0)], void 0, 1)]),
610
615
  _: 2
611
616
  }, 1024)) : j("", !0), P(O, { mode: "out-in" }, {
612
- default: U(() => [s === jt(u) && e.readonlyFeedback && J(u.id)?.comment ? (R(), A(me, {
617
+ default: U(() => [s === Lt(u) && e.readonlyFeedback && Y(u.id)?.comment ? (R(), A(me, {
613
618
  key: 0,
614
- feedback: J(u.id)
619
+ feedback: Y(u.id)
615
620
  }, null, 8, ["feedback"])) : j("", !0)]),
616
621
  _: 2
617
622
  }, 1024)], 64))), 128)),
@@ -619,36 +624,36 @@ var Je = ["aria-busy"], Ye = {
619
624
  name: "fade-in",
620
625
  mode: "out-in"
621
626
  }, {
622
- default: U(() => [X.value && Z(x) && !Ut(u) && Q(u) && (!Gt(u) || qt(u)) ? (R(), M("div", {
627
+ default: U(() => [q.value && Z(x) && !Yt(u) && Q(u) && (!Zt(u) || $t(u)) ? (R(), M("div", {
623
628
  key: `loading-info-${u.id}`,
624
629
  class: "pk-chatbot-message__loading-info"
625
- }, [N("div", st, [
630
+ }, [N("div", ct, [
626
631
  P(r, {
627
632
  name: "loading-loop",
628
633
  class: "shrink-0"
629
634
  }),
630
635
  P(O, { mode: "out-in" }, {
631
- default: U(() => [zt.value ? (R(), A(r, {
632
- key: zt.value,
636
+ default: U(() => [Gt.value ? (R(), A(r, {
637
+ key: Gt.value,
633
638
  class: "shrink-0",
634
- name: zt.value
639
+ name: Gt.value
635
640
  }, null, 8, ["name"])) : j("", !0)]),
636
641
  _: 1
637
642
  }),
638
643
  P(O, { mode: "out-in" }, {
639
- default: U(() => [Rt.value ? (R(), M("span", {
640
- key: Rt.value,
644
+ default: U(() => [Wt.value ? (R(), M("span", {
645
+ key: Wt.value,
641
646
  class: "text-12"
642
- }, B(Rt.value), 1)) : j("", !0)]),
647
+ }, B(Wt.value), 1)) : j("", !0)]),
643
648
  _: 1
644
649
  })
645
650
  ]), P(O, {
646
651
  name: "fade-in",
647
652
  mode: "out-in"
648
653
  }, {
649
- default: U(() => [!Gt(u) && Y.value && "text" in Y.value && Y.value.text.trim() ? (R(), A(he, {
654
+ default: U(() => [!Zt(u) && X.value && "text" in X.value && X.value.text.trim() ? (R(), A(he, {
650
655
  key: 0,
651
- markdown: Y.value.text,
656
+ markdown: X.value.text,
652
657
  "is-dark": e.isDark,
653
658
  "tail-length": V(oe),
654
659
  "inner-class": "wysiwyg",
@@ -663,14 +668,14 @@ var Je = ["aria-busy"], Ye = {
663
668
  _: 2
664
669
  }, 1024),
665
670
  P(O, { mode: "out-in" }, {
666
- default: U(() => [$t(u, x) ? (R(), M("div", ct, [
671
+ default: U(() => [on(u, x) ? (R(), M("div", lt, [
667
672
  P(_, {
668
673
  modifiers: "compact",
669
674
  class: "mr-auto shrink-0"
670
675
  }, {
671
676
  default: U(() => [
672
677
  P(O, { mode: "out-in" }, {
673
- default: U(() => [Vt(x) ? (R(), A(m, {
678
+ default: U(() => [qt(x) ? (R(), A(m, {
674
679
  key: 0,
675
680
  icon: "ri:reset-right-line",
676
681
  modifiers: "action-quiet-small",
@@ -681,7 +686,7 @@ var Je = ["aria-busy"], Ye = {
681
686
  _: 2
682
687
  }, 1024),
683
688
  P(O, { mode: "out-in" }, {
684
- default: U(() => [Ht("show-info", x) ? (R(), A(m, {
689
+ default: U(() => [Jt("show-info", x) ? (R(), A(m, {
685
690
  key: 0,
686
691
  icon: "ri:information-line",
687
692
  title: V(i)("action.getMoreInfo"),
@@ -696,13 +701,13 @@ var Je = ["aria-busy"], Ye = {
696
701
  _: 2
697
702
  }, 1024),
698
703
  P(O, { mode: "out-in" }, {
699
- default: U(() => [Ht("revise", x) ? (R(), A(m, {
704
+ default: U(() => [Jt("revise", x) ? (R(), A(m, {
700
705
  key: 0,
701
- icon: Ge(u.id) ? "ri:file-edit-fill" : "ri:file-edit-line",
702
- title: Ge(u.id) ? V(i)("action.editRevise") : V(i)("action.createRevise"),
703
- "aria-label": Ge(u.id) ? V(i)("action.editRevise") : V(i)("action.createRevise"),
706
+ icon: Dt(u.id) ? "ri:file-edit-fill" : "ri:file-edit-line",
707
+ title: Dt(u.id) ? V(i)("action.editRevise") : V(i)("action.createRevise"),
708
+ "aria-label": Dt(u.id) ? V(i)("action.editRevise") : V(i)("action.createRevise"),
704
709
  modifiers: "action-quiet-small",
705
- class: L({ "text-brand-graphic": Ge(u.id) }),
710
+ class: L({ "text-brand-graphic": Dt(u.id) }),
706
711
  onClick: W((e) => t.$emit("revise", u), ["stop"])
707
712
  }, null, 8, [
708
713
  "icon",
@@ -714,9 +719,9 @@ var Je = ["aria-busy"], Ye = {
714
719
  _: 2
715
720
  }, 1024),
716
721
  P(O, { mode: "out-in" }, {
717
- default: U(() => [wt("upvote", x) ? (R(), A(m, {
722
+ default: U(() => [At("upvote", x) ? (R(), A(m, {
718
723
  key: 0,
719
- icon: J(u.id)?.vote === "upvote" ? "ri:thumb-up-fill" : "ri:thumb-up-line",
724
+ icon: Y(u.id)?.vote === "upvote" ? "ri:thumb-up-fill" : "ri:thumb-up-line",
720
725
  title: V(i)("action.upvote"),
721
726
  "aria-label": V(i)("action.upvote"),
722
727
  modifiers: "action-quiet-small",
@@ -730,9 +735,9 @@ var Je = ["aria-busy"], Ye = {
730
735
  _: 2
731
736
  }, 1024),
732
737
  P(O, { mode: "out-in" }, {
733
- default: U(() => [wt("downvote", x) ? (R(), A(m, {
738
+ default: U(() => [At("downvote", x) ? (R(), A(m, {
734
739
  key: 0,
735
- icon: J(u.id)?.vote === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-down-line",
740
+ icon: Y(u.id)?.vote === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-down-line",
736
741
  title: V(i)("action.downvote"),
737
742
  "aria-label": V(i)("action.downvote"),
738
743
  modifiers: "action-quiet-small",
@@ -746,9 +751,9 @@ var Je = ["aria-busy"], Ye = {
746
751
  _: 2
747
752
  }, 1024),
748
753
  P(O, { mode: "out-in" }, {
749
- default: U(() => [wt("feedback", x) ? (R(), A(m, {
754
+ default: U(() => [At("feedback", x) ? (R(), A(m, {
750
755
  key: 0,
751
- icon: J(u.id)?.comment ? "ri:feedback-fill" : "ri:feedback-line",
756
+ icon: Y(u.id)?.comment ? "ri:feedback-fill" : "ri:feedback-line",
752
757
  title: V(i)("action.feedback"),
753
758
  "aria-label": V(i)("action.feedback"),
754
759
  modifiers: "action-quiet-small",
@@ -764,26 +769,26 @@ var Je = ["aria-busy"], Ye = {
764
769
  ]),
765
770
  _: 2
766
771
  }, 1024),
767
- !e.showMessageDateTime && u.metadata?.createdAt && u.metadata?.completedAt ? (R(), M("div", lt, [N("time", {
772
+ !e.showMessageDateTime && u.metadata?.createdAt && u.metadata?.completedAt ? (R(), M("div", ut, [N("time", {
768
773
  datetime: new Date(u.metadata.createdAt).toISOString(),
769
774
  title: V(s)(new Date(u.metadata.createdAt), "date-time"),
770
775
  class: "flex items-center gap-4 min-w-0"
771
776
  }, [P(r, {
772
777
  name: "ri:time-line",
773
778
  class: "shrink-0"
774
- }), N("span", dt, B(en(u.metadata.createdAt)), 1)], 8, ut), tn(u) ? (R(), M("span", ft, [P(r, {
779
+ }), N("span", ft, B(sn(u.metadata.createdAt)), 1)], 8, dt), cn(u) ? (R(), M("span", pt, [P(r, {
775
780
  name: "ri:hourglass-line",
776
781
  class: "shrink-0"
777
- }), N("span", pt, B(tn(u)), 1)])) : j("", !0)])) : j("", !0),
782
+ }), N("span", mt, B(cn(u)), 1)])) : j("", !0)])) : j("", !0),
778
783
  e.showMessageNumber ? (R(), M("span", {
779
784
  key: 1,
780
- title: V(i)("label.messageNumber", { n: Qt.value[x] }),
785
+ title: V(i)("label.messageNumber", { n: an.value[x] }),
781
786
  class: "text-12 text-word-3 tabular-nums"
782
- }, " #" + B(Qt.value[x]), 9, mt)) : j("", !0),
783
- e.showMessageTokensCount && u.metadata?.totalTokens ? (R(), M("span", ht, [P(r, {
787
+ }, " #" + B(an.value[x]), 9, ht)) : j("", !0),
788
+ e.showMessageTokensCount && u.metadata?.totalTokens ? (R(), M("span", gt, [P(r, {
784
789
  name: "ri:ai-generate-2-line",
785
790
  class: "shrink-0"
786
- }), N("span", gt, B(V(c)(u.metadata.totalTokens, "integer")) + " " + B(V(i)("label.tokens")), 1)])) : j("", !0),
791
+ }), N("span", _t, B(V(c)(u.metadata.totalTokens, "integer")) + " " + B(V(i)("label.tokens")), 1)])) : j("", !0),
787
792
  e.showMessageDateTime && u.metadata?.createdAt ? (R(), M("time", {
788
793
  key: 3,
789
794
  datetime: new Date(u.metadata?.createdAt).toISOString(),
@@ -791,8 +796,8 @@ var Je = ["aria-busy"], Ye = {
791
796
  }, [P(r, {
792
797
  name: "ri:time-line",
793
798
  class: "shrink-0"
794
- }), N("span", vt, B(V(s)(new Date(u.metadata?.createdAt), "date-time")), 1)], 8, _t)) : j("", !0),
795
- e.showMessageDateTime && u?.metadata?.completedAt && u?.metadata?.createdAt ? (R(), M("div", yt, [P(r, {
799
+ }), N("span", yt, B(V(s)(new Date(u.metadata?.createdAt), "date-time")), 1)], 8, vt)) : j("", !0),
800
+ e.showMessageDateTime && u?.metadata?.completedAt && u?.metadata?.createdAt ? (R(), M("div", bt, [P(r, {
796
801
  name: "ri:hourglass-line",
797
802
  class: "shrink-0"
798
803
  }), P(de, {
@@ -808,7 +813,7 @@ var Je = ["aria-busy"], Ye = {
808
813
  key: 0,
809
814
  ref_for: !0,
810
815
  ref_key: "feedbackMessageEl",
811
- ref: nn,
816
+ ref: ln,
812
817
  loading: e.feedbackLoading,
813
818
  submitted: e.feedbackSubmitted,
814
819
  error: e.feedbackError,
@@ -827,21 +832,21 @@ var Je = ["aria-busy"], Ye = {
827
832
  appear: "",
828
833
  name: "pk-chatbot-part"
829
834
  }, {
830
- default: U(() => [It.value ? (R(), M("div", {
835
+ default: U(() => [Ht.value ? (R(), M("div", {
831
836
  key: 0,
832
837
  class: "pk-chatbot-message pk-chatbot-message--assistant pk-chatbot-message--loading",
833
- style: Ce({ minHeight: Lt.value ? `${q.value}px` : void 0 })
834
- }, [N("div", bt, [N("div", xt, [P(r, {
838
+ style: Ce({ minHeight: Ut.value ? `${J.value}px` : void 0 })
839
+ }, [N("div", xt, [N("div", St, [P(r, {
835
840
  name: "loading-loop",
836
841
  class: "shrink-0"
837
- }), N("span", St, B(V(i)("label.answeringOnTheCall")), 1)])])], 4)) : j("", !0)]),
842
+ }), N("span", Ct, B(V(i)("label.answeringOnTheCall")), 1)])])], 4)) : j("", !0)]),
838
843
  _: 1
839
844
  }),
840
845
  P(O, {
841
846
  appear: "",
842
847
  name: "pk-chatbot-part"
843
848
  }, {
844
- default: U(() => [Ft.value ? (R(), A(ue, {
849
+ default: U(() => [Vt.value ? (R(), A(ue, {
845
850
  key: 0,
846
851
  error: e.error,
847
852
  onRetry: n[3] ||= (e) => t.$emit("auto-retry"),
@@ -849,28 +854,28 @@ var Je = ["aria-busy"], Ye = {
849
854
  }, null, 8, ["error"])) : j("", !0)]),
850
855
  _: 1
851
856
  }),
852
- Mt.value?.role === "user" && !Lt.value || Ft.value ? (R(), M("div", {
857
+ Rt.value?.role === "user" && !Ut.value || Vt.value ? (R(), M("div", {
853
858
  key: 0,
854
859
  class: "pk-chatbot-messages__spacer",
855
- style: Ce({ minHeight: `${q.value}px` })
860
+ style: Ce({ minHeight: `${J.value}px` })
856
861
  }, null, 4)) : j("", !0)
857
862
  ], 512),
858
863
  P(O, { name: "pk-chatbot-messages-fab" }, {
859
- default: U(() => [e.showScrollToBottom && (V(Ne) || !V(Pe)) ? (R(), M("button", {
864
+ default: U(() => [e.showScrollToBottom && (V(Fe) || !V(Ie)) ? (R(), M("button", {
860
865
  key: 0,
861
866
  type: "button",
862
867
  class: "pk-chatbot-messages__scroll-to-bottom",
863
868
  title: V(i)("action.scrollToBottom"),
864
869
  "aria-label": V(i)("action.scrollToBottom"),
865
- onClick: Fe
866
- }, [P(r, { name: "ri:arrow-down-line" })], 8, Ct)) : j("", !0)]),
870
+ onClick: Le
871
+ }, [P(r, { name: "ri:arrow-down-line" })], 8, wt)) : j("", !0)]),
867
872
  _: 1
868
873
  })
869
- ], 46, Je);
874
+ ], 46, Ye);
870
875
  };
871
876
  }
872
877
  });
873
878
  //#endregion
874
- export { J as t };
879
+ export { Tt as t };
875
880
 
876
- //# sourceMappingURL=PkChatbotMessages-CDLsj7qw.js.map
881
+ //# sourceMappingURL=PkChatbotMessages-DHZNG6YM.js.map