@8wave/ai-elements 0.119.0-beta.30 → 0.119.0-beta.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-DiuzVVKH.js → PkChatbotFilePreview-3i9jZIdS.js} +2 -2
  2. package/dist/_chunks/{PkChatbotFilePreview-DiuzVVKH.js.map → PkChatbotFilePreview-3i9jZIdS.js.map} +1 -1
  3. package/dist/_chunks/{PkStreamingMarkdown-DKyHYHUN.js → PkStreamingMarkdown-B1t1tBvW.js} +3 -3
  4. package/dist/_chunks/{PkStreamingMarkdown-DKyHYHUN.js.map → PkStreamingMarkdown-B1t1tBvW.js.map} +1 -1
  5. package/dist/_chunks/{PkToolEditSpreadsheet-CfJ3BWMe.js → PkToolEditSpreadsheet-Xzum_9NH.js} +2 -2
  6. package/dist/_chunks/{PkToolEditSpreadsheet-CfJ3BWMe.js.map → PkToolEditSpreadsheet-Xzum_9NH.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestOAuthConnection-klmrRZWz.js → PkToolRequestOAuthConnection-W3ilzpr7.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestOAuthConnection-klmrRZWz.js.map → PkToolRequestOAuthConnection-W3ilzpr7.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowArtifact-ChDm6ZEK.js → PkToolShowArtifact-DGGEb2LF.js} +2 -2
  10. package/dist/_chunks/{PkToolShowArtifact-ChDm6ZEK.js.map → PkToolShowArtifact-DGGEb2LF.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowCalendarEvent-CRVtR3oP.js → PkToolShowCalendarEvent-D8DMh3-P.js} +2 -2
  12. package/dist/_chunks/{PkToolShowCalendarEvent-CRVtR3oP.js.map → PkToolShowCalendarEvent-D8DMh3-P.js.map} +1 -1
  13. package/dist/_chunks/PkToolShowContactForm-Dn6CEXF_.js +158 -0
  14. package/dist/_chunks/PkToolShowContactForm-Dn6CEXF_.js.map +1 -0
  15. package/dist/_chunks/{PkToolShowDiagram-JpRMa4Jj.js → PkToolShowDiagram-WregKAJO.js} +3 -3
  16. package/dist/_chunks/{PkToolShowDiagram-JpRMa4Jj.js.map → PkToolShowDiagram-WregKAJO.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowForm-DnIwTGl4.js → PkToolShowForm-CbuToc8O.js} +2 -2
  18. package/dist/_chunks/{PkToolShowForm-DnIwTGl4.js.map → PkToolShowForm-CbuToc8O.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowImageGallery-Ab8fJ9jY.js → PkToolShowImageGallery-Dh0v2Df8.js} +4 -4
  20. package/dist/_chunks/{PkToolShowImageGallery-Ab8fJ9jY.js.map → PkToolShowImageGallery-Dh0v2Df8.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowLocation-D5d6bbP-.js → PkToolShowLocation-jRZtqoBO.js} +2 -2
  22. package/dist/_chunks/{PkToolShowLocation-D5d6bbP-.js.map → PkToolShowLocation-jRZtqoBO.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowProductList-DztzZVDd.js → PkToolShowProductList-bAis8u1t.js} +2 -2
  24. package/dist/_chunks/{PkToolShowProductList-DztzZVDd.js.map → PkToolShowProductList-bAis8u1t.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowSources-Bvg3f3GC.js → PkToolShowSources-D532Worv.js} +3 -3
  26. package/dist/_chunks/{PkToolShowSources-Bvg3f3GC.js.map → PkToolShowSources-D532Worv.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowVideo-DdoYLl7R.js → PkToolShowVideo-DcMzLibC.js} +3 -3
  28. package/dist/_chunks/{PkToolShowVideo-DdoYLl7R.js.map → PkToolShowVideo-DcMzLibC.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowWeather-CnpPZCLm.js → PkToolShowWeather-DTrZ7r1t.js} +2 -2
  30. package/dist/_chunks/{PkToolShowWeather-CnpPZCLm.js.map → PkToolShowWeather-DTrZ7r1t.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowWebPages-BooCEJrs.js → PkToolShowWebPages-RuwkZDMH.js} +3 -3
  32. package/dist/_chunks/{PkToolShowWebPages-BooCEJrs.js.map → PkToolShowWebPages-RuwkZDMH.js.map} +1 -1
  33. package/dist/_chunks/{chatImagePolicy-CfJt8_9Z.js → chatImagePolicy-BL4O14e9.js} +2 -2
  34. package/dist/_chunks/{chatImagePolicy-CfJt8_9Z.js.map → chatImagePolicy-BL4O14e9.js.map} +1 -1
  35. package/dist/_chunks/{index.es-oI6RqNZW.js → index.es-DkFMpDsf.js} +2 -2
  36. package/dist/_chunks/{index.es-oI6RqNZW.js.map → index.es-DkFMpDsf.js.map} +1 -1
  37. package/dist/_chunks/{src-DL9TKN-Z.js → src-CggZ5M7x.js} +46 -3
  38. package/dist/_chunks/src-CggZ5M7x.js.map +1 -0
  39. package/dist/_chunks/{useLightbox-1KKLemEE.js → useLightbox-3HiaRtzY.js} +2 -2
  40. package/dist/_chunks/{useLightbox-1KKLemEE.js.map → useLightbox-3HiaRtzY.js.map} +1 -1
  41. package/dist/ai-elements.es.js +836 -820
  42. package/dist/ai-elements.es.js.map +1 -1
  43. package/dist-vue/PkChatbot.js +1 -1
  44. package/dist-vue/PkChatbotAudioTranscript.js +1 -1
  45. package/dist-vue/PkChatbotEmptyState.js +1 -1
  46. package/dist-vue/PkChatbotFilePreview.js +1 -1
  47. package/dist-vue/PkChatbotInput.js +1 -1
  48. package/dist-vue/PkChatbotMessages.js +1 -1
  49. package/dist-vue/PkChatbotStepPayload.js +1 -1
  50. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  51. package/dist-vue/PkChatbotSteps.js +1 -1
  52. package/dist-vue/PkChatbotViewChat.js +1 -1
  53. package/dist-vue/PkChatbotViewConversations.js +1 -1
  54. package/dist-vue/PkChatbotViewFiles.js +1 -1
  55. package/dist-vue/PkChatbotViewProfile.js +1 -1
  56. package/dist-vue/_chunks/{PkChatbot-C18mnGJ9.js → PkChatbot-wODOAtOD.js} +8 -8
  57. package/dist-vue/_chunks/{PkChatbot-C18mnGJ9.js.map → PkChatbot-wODOAtOD.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkChatbotAudioTranscript-0rvrhSRQ.js → PkChatbotAudioTranscript-CC9M-zDv.js} +2 -2
  59. package/dist-vue/_chunks/{PkChatbotAudioTranscript-0rvrhSRQ.js.map → PkChatbotAudioTranscript-CC9M-zDv.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotEmptyState-BKiyP0Ga.js → PkChatbotEmptyState-Dx4mTkTX.js} +2 -2
  61. package/dist-vue/_chunks/{PkChatbotEmptyState-BKiyP0Ga.js.map → PkChatbotEmptyState-Dx4mTkTX.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotFilePreview-D5H-RIk2.js → PkChatbotFilePreview-Lxgu89Hg.js} +2 -2
  63. package/dist-vue/_chunks/{PkChatbotFilePreview-D5H-RIk2.js.map → PkChatbotFilePreview-Lxgu89Hg.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotInput-GvgsYsUw.js → PkChatbotInput-jj3qQl_f.js} +3 -3
  65. package/dist-vue/_chunks/{PkChatbotInput-GvgsYsUw.js.map → PkChatbotInput-jj3qQl_f.js.map} +1 -1
  66. package/dist-vue/_chunks/PkChatbotMessages-5wPl7-j-.js +876 -0
  67. package/dist-vue/_chunks/PkChatbotMessages-5wPl7-j-.js.map +1 -0
  68. package/dist-vue/_chunks/{PkChatbotStepPayload-Dm-HCHcG.js → PkChatbotStepPayload-f2mYAVpu.js} +2 -2
  69. package/dist-vue/_chunks/{PkChatbotStepPayload-Dm-HCHcG.js.map → PkChatbotStepPayload-f2mYAVpu.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Bpd_cZEO.js → PkChatbotStepToolDetail-BcYheOnU.js} +3 -3
  71. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Bpd_cZEO.js.map → PkChatbotStepToolDetail-BcYheOnU.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkChatbotSteps-C4qBM3_t.js → PkChatbotSteps-DKyF0ykL.js} +5 -5
  73. package/dist-vue/_chunks/{PkChatbotSteps-C4qBM3_t.js.map → PkChatbotSteps-DKyF0ykL.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkChatbotViewChat-By2TY72m.js → PkChatbotViewChat-DZqXDwzk.js} +8 -8
  75. package/dist-vue/_chunks/{PkChatbotViewChat-By2TY72m.js.map → PkChatbotViewChat-DZqXDwzk.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkChatbotViewConversations-CU5NfEO4.js → PkChatbotViewConversations-CXcToApC.js} +4 -4
  77. package/dist-vue/_chunks/{PkChatbotViewConversations-CU5NfEO4.js.map → PkChatbotViewConversations-CXcToApC.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkChatbotViewFiles-CD-UZPT5.js → PkChatbotViewFiles-O8lhbXAX.js} +2 -2
  79. package/dist-vue/_chunks/{PkChatbotViewFiles-CD-UZPT5.js.map → PkChatbotViewFiles-O8lhbXAX.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkChatbotViewProfile-DPlb_Wca.js → PkChatbotViewProfile-kryFJi0l.js} +2 -2
  81. package/dist-vue/_chunks/{PkChatbotViewProfile-DPlb_Wca.js.map → PkChatbotViewProfile-kryFJi0l.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkStreamingMarkdown-CsHzdW69.js → PkStreamingMarkdown-CywawRVj.js} +3 -3
  83. package/dist-vue/_chunks/{PkStreamingMarkdown-CsHzdW69.js.map → PkStreamingMarkdown-CywawRVj.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkSvgViewer-D6DJ2jVO.js → PkSvgViewer-DU8K_gAD.js} +2 -2
  85. package/dist-vue/_chunks/{PkSvgViewer-D6DJ2jVO.js.map → PkSvgViewer-DU8K_gAD.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolEditSpreadsheet-D8Zp9gzW.js → PkToolEditSpreadsheet-BT4HueLs.js} +2 -2
  87. package/dist-vue/_chunks/{PkToolEditSpreadsheet-D8Zp9gzW.js.map → PkToolEditSpreadsheet-BT4HueLs.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DosWR9I4.js → PkToolRequestOAuthConnection-Ck2tRuls.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DosWR9I4.js.map → PkToolRequestOAuthConnection-Ck2tRuls.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowArtifact-BVofKJ7b.js → PkToolShowArtifact-BiFJoOTT.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowArtifact-BVofKJ7b.js.map → PkToolShowArtifact-BiFJoOTT.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowCalendarEvent-u9O_Sl3-.js → PkToolShowCalendarEvent-CFODjoDV.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolShowCalendarEvent-u9O_Sl3-.js.map → PkToolShowCalendarEvent-CFODjoDV.js.map} +1 -1
  94. package/dist-vue/_chunks/PkToolShowContactForm-B7DvA6O1.js +160 -0
  95. package/dist-vue/_chunks/PkToolShowContactForm-B7DvA6O1.js.map +1 -0
  96. package/dist-vue/_chunks/{PkToolShowDiagram-CaoB4k6y.js → PkToolShowDiagram-DGMwlxqB.js} +4 -4
  97. package/dist-vue/_chunks/{PkToolShowDiagram-CaoB4k6y.js.map → PkToolShowDiagram-DGMwlxqB.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowForm-vYuaPtu0.js → PkToolShowForm-BZmAnMSD.js} +3 -3
  99. package/dist-vue/_chunks/{PkToolShowForm-vYuaPtu0.js.map → PkToolShowForm-BZmAnMSD.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowImageGallery-ooygXk7j.js → PkToolShowImageGallery-BsYTRg_W.js} +4 -4
  101. package/dist-vue/_chunks/{PkToolShowImageGallery-ooygXk7j.js.map → PkToolShowImageGallery-BsYTRg_W.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowLocation-DVMpFdRk.js → PkToolShowLocation-BipZrvw7.js} +2 -2
  103. package/dist-vue/_chunks/{PkToolShowLocation-DVMpFdRk.js.map → PkToolShowLocation-BipZrvw7.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowProductList-D-HJ9a_h.js → PkToolShowProductList-D1_v79Xm.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowProductList-D-HJ9a_h.js.map → PkToolShowProductList-D1_v79Xm.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowSources-DJ35l3Z3.js → PkToolShowSources-Czu2IiGq.js} +3 -3
  107. package/dist-vue/_chunks/{PkToolShowSources-DJ35l3Z3.js.map → PkToolShowSources-Czu2IiGq.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolShowVideo-xcg1gdIE.js → PkToolShowVideo-D3D2sTAP.js} +3 -3
  109. package/dist-vue/_chunks/{PkToolShowVideo-xcg1gdIE.js.map → PkToolShowVideo-D3D2sTAP.js.map} +1 -1
  110. package/dist-vue/_chunks/{PkToolShowWeather-DJxKxVp_.js → PkToolShowWeather-BD0w6BA1.js} +2 -2
  111. package/dist-vue/_chunks/{PkToolShowWeather-DJxKxVp_.js.map → PkToolShowWeather-BD0w6BA1.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkToolShowWebPages-BuaRjavD.js → PkToolShowWebPages-DTq0811l.js} +3 -3
  113. package/dist-vue/_chunks/{PkToolShowWebPages-BuaRjavD.js.map → PkToolShowWebPages-DTq0811l.js.map} +1 -1
  114. package/dist-vue/_chunks/{createChatbotApiClient-G3Tt1I67.js → createChatbotApiClient-BlJ952Kb.js} +2 -2
  115. package/dist-vue/_chunks/{createChatbotApiClient-G3Tt1I67.js.map → createChatbotApiClient-BlJ952Kb.js.map} +1 -1
  116. package/dist-vue/_chunks/{mcpOAuthReport-3A9v_gW_.js → mcpOAuthReport-BHCMTtgf.js} +2 -2
  117. package/dist-vue/_chunks/{mcpOAuthReport-3A9v_gW_.js.map → mcpOAuthReport-BHCMTtgf.js.map} +1 -1
  118. package/dist-vue/_chunks/{src-DpkuiHam.js → src-BZRiAJsH.js} +46 -3
  119. package/dist-vue/_chunks/src-BZRiAJsH.js.map +1 -0
  120. package/dist-vue/_chunks/{useChatbotStore-C1sgxgD1.js → useChatbotStore-CueyhDPB.js} +4 -4
  121. package/dist-vue/_chunks/{useChatbotStore-C1sgxgD1.js.map → useChatbotStore-CueyhDPB.js.map} +1 -1
  122. package/dist-vue/_chunks/{useSafeLocalStorage-DLIc8pkn.js → useSafeLocalStorage-B1mX0eKb.js} +2 -2
  123. package/dist-vue/_chunks/{useSafeLocalStorage-DLIc8pkn.js.map → useSafeLocalStorage-B1mX0eKb.js.map} +1 -1
  124. package/dist-vue/_chunks/{utils-DsnEcdW3.js → utils-DmRXPCqa.js} +2 -2
  125. package/dist-vue/_chunks/{utils-DsnEcdW3.js.map → utils-DmRXPCqa.js.map} +1 -1
  126. package/dist-vue/api.js +1 -1
  127. package/dist-vue/composables.js +24 -8
  128. package/dist-vue/composables.js.map +1 -1
  129. package/dist-vue/index.js +2855 -2843
  130. package/dist-vue/index.js.map +1 -1
  131. package/dist-vue/locales.js +6 -2
  132. package/dist-vue/packages/components/src/chat/PkToolShowContactForm.d.ts +6 -0
  133. package/dist-vue/packages/models/src/schema/Member.d.ts +15 -0
  134. package/dist-vue/style.css +1 -1
  135. package/package.json +1 -1
  136. package/dist/_chunks/PkToolShowContactForm-CfCy-b8w.js +0 -120
  137. package/dist/_chunks/PkToolShowContactForm-CfCy-b8w.js.map +0 -1
  138. package/dist/_chunks/src-DL9TKN-Z.js.map +0 -1
  139. package/dist-vue/_chunks/PkChatbotMessages-CDLsj7qw.js +0 -876
  140. package/dist-vue/_chunks/PkChatbotMessages-CDLsj7qw.js.map +0 -1
  141. package/dist-vue/_chunks/PkToolShowContactForm-BzdIFTnC.js +0 -122
  142. package/dist-vue/_chunks/PkToolShowContactForm-BzdIFTnC.js.map +0 -1
  143. package/dist-vue/_chunks/src-DpkuiHam.js.map +0 -1
@@ -1,24 +1,24 @@
1
1
  (function(){try{var __b=new URL(".",import.meta.url).href;if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtE6F15M.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWvU6F15M.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtU6F15M.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWuk6F15M.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWu06F15M.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWxU6F15M.woff2) format('woff2');unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-209F,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqW106F15M.woff2) format('woff2');unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AE,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F8D0-1F8D8,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FAC6,U+1FAC8,U+1FACC-1FADD,U+1FADF-1FAEB,U+1FAEF-1FAFA,U+1FB00-1FBFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtk6F15M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWt06F15M.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWuU6F.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format('woff2');unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-209F,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format('woff2');unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AE,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F8D0-1F8D8,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FAC6,U+1FAC8,U+1FACC-1FADD,U+1FADF-1FAEB,U+1FAEF-1FAFA,U+1FB00-1FBFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  import { C as e, E as t, S as n, T as r, _ as i, a, b as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, w as x, x as S, y as ee } from "./_chunks/zod-Dd1GFq_6.js";
3
- import { $ as C, B as te, C as w, Ct as T, D as ne, Dt as E, E as D, Et as re, F as ie, G as ae, H as oe, I as O, J as k, K as se, L as A, M as ce, N as le, O as j, P as ue, R as de, S as M, St as N, T as fe, Tt as pe, X as P, Z as me, _ as F, _t as I, b as L, bt as R, ct as z, d as B, dt as he, ft as ge, g as V, gt as _e, h as H, it as U, j as ve, k as ye, l as be, lt as xe, m as W, mt as G, n as Se, nt as Ce, ot as we, q as Te, r as Ee, rt as De, st as Oe, t as K, u as ke, ut as Ae, v as q, vt as je, w as Me, wt as Ne, x as J, xt as Pe, y as Fe, yt as Ie, z as Le } from "./_chunks/vue.runtime.esm-bundler-DKVd2gci.js";
3
+ import { $ as C, B as te, C as w, Ct as T, D as ne, Dt as E, E as D, Et as re, F as ie, G as ae, H as oe, I as O, J as k, K as se, L as A, M as ce, N as le, O as j, P as ue, R as de, S as M, St as N, T as fe, Tt as pe, X as P, Z as me, _ as F, _t as he, b as I, bt as L, ct as R, d as z, dt as ge, ft as _e, g as B, gt as ve, h as V, it as H, j as ye, k as be, l as xe, lt as Se, m as U, mt as W, n as Ce, nt as we, ot as Te, q as Ee, r as De, rt as Oe, st as ke, t as G, u as Ae, ut as je, v as K, vt as Me, w as Ne, wt as q, x as J, xt as Pe, y as Fe, yt as Ie, z as Le } from "./_chunks/vue.runtime.esm-bundler-DKVd2gci.js";
4
4
  import { n as Re, r as ze, t as Be } from "./_chunks/vue-i18n-CooVjJjT.js";
5
5
  import { i as Ve, n as He, r as Ue } from "./_chunks/iconify-CgyW1o4B.js";
6
- import { A as We, C as Ge, D as Ke, E as qe, F as Y, I as Je, L as Ye, M as Xe, N as Ze, O as Qe, P as $e, S as et, T as tt, _ as nt, a as rt, b as it, c as at, d as ot, f as st, g as ct, h as lt, i as ut, j as dt, k as ft, m as pt, n as mt, o as ht, p as gt, r as _t, s as vt, t as yt, v as bt, w as xt, x as St, y as Ct } from "./_chunks/PkStreamingMarkdown-DKyHYHUN.js";
6
+ import { A as We, C as Ge, D as Ke, E as qe, F as Y, I as Je, L as Ye, M as Xe, N as Ze, O as Qe, P as $e, S as et, T as tt, _ as nt, a as rt, b as it, c as at, d as ot, f as st, g as ct, h as lt, i as ut, j as dt, k as ft, m as pt, n as mt, o as ht, p as gt, r as _t, s as vt, t as yt, v as bt, w as xt, x as St, y as Ct } from "./_chunks/PkStreamingMarkdown-B1t1tBvW.js";
7
7
  import { C as wt, a as Tt, b as Et, d as Dt, f as Ot, g as kt, h as At, i as jt, n as Mt, o as Nt, p as Pt, r as Ft, s as It, v as Lt, x as Rt, y as zt } from "./_chunks/Agent-Gdgpd3LA.js";
8
8
  import { a as Bt, i as Vt, n as Ht, t as Ut } from "./_chunks/markdown-BbaLt57-.js";
9
- import { t as Wt } from "./_chunks/src-DL9TKN-Z.js";
9
+ import { n as Wt } from "./_chunks/src-CggZ5M7x.js";
10
10
  import { r as Gt, t as Kt } from "./_chunks/url-validation-9DstIfq2.js";
11
11
  import { a as qt, m as Jt, p as Yt, s as Xt } from "./_chunks/dist-DxtbpUdI.js";
12
12
  import { a as Zt, d as Qt, f as $t, i as en, l as tn, m as nn, r as rn, t as an, u as on } from "./_chunks/index.es-dTcgyeM4.js";
13
13
  import { t as sn } from "./_chunks/VvButtonLocalized-DV-zbH9b.js";
14
- import { n as cn, r as ln, t as un } from "./_chunks/index.es-oI6RqNZW.js";
14
+ import { n as cn, r as ln, t as un } from "./_chunks/index.es-DkFMpDsf.js";
15
15
  import { t as dn } from "./_chunks/useShortUrlResolver-qFJHKHwE.js";
16
16
  import { t as fn } from "./_chunks/useImageFallback-DTJ6uHcF.js";
17
17
  import { t as pn } from "./_chunks/_plugin-vue_export-helper-B3ysoDQm.js";
18
- import { t as mn } from "./_chunks/chatImagePolicy-CfJt8_9Z.js";
19
- import { t as hn } from "./_chunks/PkChatbotFilePreview-DiuzVVKH.js";
18
+ import { t as mn } from "./_chunks/chatImagePolicy-BL4O14e9.js";
19
+ import { t as hn } from "./_chunks/PkChatbotFilePreview-3i9jZIdS.js";
20
20
  //#region ../../node_modules/.pnpm/pinia@4.1.0_@vue+devtools-api@8.2.1_typescript@6.0.3_vue@3.5.44_typescript@6.0.3_/node_modules/pinia/dist/pinia.js
21
- j(), U();
21
+ j(), H();
22
22
  var gn = typeof window < "u", _n, vn = (e) => _n = e, yn = Symbol();
23
23
  function bn(e) {
24
24
  return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
@@ -105,7 +105,7 @@ function jn(e, t, n, r) {
105
105
  }
106
106
  var { assign: Mn } = Object;
107
107
  function Nn() {
108
- let e = Ce(!0), t = e.run(() => G({})), n = [], r = [], i = Ae({
108
+ let e = we(!0), t = e.run(() => W({})), n = [], r = [], i = je({
109
109
  install(e) {
110
110
  vn(i), i._a = e, e.provide(yn, i), e.config.globalProperties.$pinia = i, r.forEach((e) => n.push(e)), r = [];
111
111
  },
@@ -126,7 +126,7 @@ function Fn(e, t, n, r = Pn) {
126
126
  let i = () => {
127
127
  e.delete(t) && r();
128
128
  };
129
- return !n && De() && he(i), i;
129
+ return !n && Oe() && ge(i), i;
130
130
  }
131
131
  function In(e, ...t) {
132
132
  e.forEach((e) => {
@@ -139,10 +139,10 @@ function Bn(e, t) {
139
139
  for (let n in t) {
140
140
  if (!Object.hasOwn(t, n)) continue;
141
141
  let r = t[n], i = e[n];
142
- if (bn(i) && bn(r) && Object.hasOwn(e, n) && !z(r) && !we(r)) {
142
+ if (bn(i) && bn(r) && Object.hasOwn(e, n) && !R(r) && !Te(r)) {
143
143
  e[n] = Bn(i, r);
144
- let t = I(e)[n];
145
- z(t) && xe(t) && Pe(t);
144
+ let t = he(e)[n];
145
+ R(t) && Se(t) && Pe(t);
146
146
  } else e[n] = r;
147
147
  }
148
148
  return e;
@@ -153,14 +153,14 @@ function Hn(e) {
153
153
  }
154
154
  var { assign: Un } = Object;
155
155
  function Wn(e) {
156
- return !!(z(e) && e.effect);
156
+ return !!(R(e) && e.effect);
157
157
  }
158
158
  function Gn(e, t, n, r) {
159
159
  let { state: i, actions: a, getters: o } = t, s = n.state.value[e], c;
160
160
  function l() {
161
161
  return s ||
162
162
  /* istanbul ignore if */
163
- (n.state.value[e] = i ? i() : {}), Un(Ie(n.state.value[e]), a, Object.keys(o || {}).reduce((t, r) => (t[r] = Ae(W(() => {
163
+ (n.state.value[e] = i ? i() : {}), Un(Ie(n.state.value[e]), a, Object.keys(o || {}).reduce((t, r) => (t[r] = je(U(() => {
164
164
  vn(n);
165
165
  let t = n._s.get(e);
166
166
  return o[r].call(t, t);
@@ -245,14 +245,14 @@ function Kn(e, t, n = {}, r, i, a) {
245
245
  return i;
246
246
  },
247
247
  $dispose: v
248
- }, x = ge(b);
248
+ }, x = _e(b);
249
249
  r._s.set(e, x);
250
- let S = (r._a && r._a.runWithContext || Ln)(() => r._e.run(() => (o = Ce()).run(() => t({ action: y }))));
250
+ let S = (r._a && r._a.runWithContext || Ln)(() => r._e.run(() => (o = we()).run(() => t({ action: y }))));
251
251
  for (let t in S) {
252
252
  let n = S[t];
253
- z(n) && !Wn(n) || we(n) ? a || (m && Hn(n) && (z(n) ? n.value = m[t] : ((n instanceof Set || n instanceof Map) && n.clear(), Bn(n, m[t]))), r.state.value[e][t] = n) : typeof n == "function" && (S[t] = y(n, t), s.actions[t] = n);
253
+ R(n) && !Wn(n) || Te(n) ? a || (m && Hn(n) && (R(n) ? n.value = m[t] : ((n instanceof Set || n instanceof Map) && n.clear(), Bn(n, m[t]))), r.state.value[e][t] = n) : typeof n == "function" && (S[t] = y(n, t), s.actions[t] = n);
254
254
  }
255
- return Un(x, S), Un(I(x), S), Object.defineProperty(x, "$state", {
255
+ return Un(x, S), Un(he(x), S), Object.defineProperty(x, "$state", {
256
256
  get: () => r.state.value[e],
257
257
  set: (e) => {
258
258
  g((t) => {
@@ -274,20 +274,20 @@ function qn(e, t, n) {
274
274
  r = i ? n : t;
275
275
  function a(n, a) {
276
276
  let o = ne();
277
- return n ||= o ? ye(yn, null) : null, n && vn(n), n = _n, n._s.has(e) || (i ? Kn(e, t, r, n) : Gn(e, r, n)), n._s.get(e);
277
+ return n ||= o ? be(yn, null) : null, n && vn(n), n = _n, n._s.has(e) || (i ? Kn(e, t, r, n) : Gn(e, r, n)), n._s.get(e);
278
278
  }
279
279
  return a.$id = e, a;
280
280
  }
281
281
  function Jn(e) {
282
- let t = I(e), n = {};
282
+ let t = he(e), n = {};
283
283
  for (let r in t) {
284
284
  let i = t[r];
285
- i?.effect ? n[r] = W({
285
+ i?.effect ? n[r] = U({
286
286
  get: () => e[r],
287
287
  set(t) {
288
288
  e[r] = t;
289
289
  }
290
- }) : (z(i) || we(i)) && (n[r] = je(e, r));
290
+ }) : (R(i) || Te(i)) && (n[r] = Me(e, r));
291
291
  }
292
292
  return n;
293
293
  }
@@ -1373,13 +1373,21 @@ var Yn = {
1373
1373
  },
1374
1374
  member: { agentAccess: {
1375
1375
  hint: "Lascia vuoto per consentire al membro di usare tutti gli agenti dell'organizzazione. Seleziona degli agenti per limitarlo solo a quelli.",
1376
- managerHint: "Owner e admin possono usare tutti gli agenti; il loro accesso non può essere limitato."
1376
+ managerHint: "Owner e admin possono usare tutti gli agenti; il loro accesso non può essere limitato.",
1377
+ column: "Agenti",
1378
+ all: "Tutti",
1379
+ count: "{n} agente | {n} agenti",
1380
+ none: "Nessuno",
1381
+ allTitle: "Può usare tutti gli agenti dell'organizzazione",
1382
+ managerTitle: "Proprietari e amministratori usano tutti gli agenti",
1383
+ noneTitle: "Nessun agente riservato all'organizzazione: quelli della sua lista sono stati eliminati o aperti a tutti",
1384
+ readError: "Non è stato possibile leggere gli agenti di questo membro: chiudi la finestra e riprova."
1377
1385
  } },
1378
1386
  memorySource: {
1379
1387
  explicit: "Esplicita | Esplicite",
1380
1388
  extracted: "Estratta | Estratte"
1381
1389
  },
1382
- message: /* @__PURE__ */ JSON.parse("{\"accountLinkAlreadyLinked\":\"Questo account è già collegato a un altro utente. Accedi con quell'utente per scollegarlo prima.\",\"accountLinkCancelled\":\"Collegamento annullato sulla pagina del provider. Nulla è cambiato.\",\"accountLinkEmailMismatch\":\"Puoi collegare solo account che usano la stessa email del tuo profilo.\",\"accountLinkErrorWithCode\":\"Impossibile collegare l'account (codice: {code}). Riprova o segnala questo codice all'assistenza.\",\"accountLinkNotAllowed\":\"Questo provider non può essere collegato al tuo profilo: l'email dell'account non è verificata o il collegamento è disabilitato.\",\"accountLinkUserInfo\":\"Il provider non ha restituito un profilo utilizzabile, quindi nessun account è stato collegato. Riprova.\",\"accountUnlinked\":\"Account disconnesso\",\"agentAccessDenied\":\"Non hai accesso a questo agente\",\"agentAccessDeniedAction\":\"Vedi gli agenti disponibili\",\"agentActivated\":\"Agente attivato con successo\",\"agentDeactivated\":\"Agente disattivato con successo\",\"agentNotFound\":\"Agente non trovato\",\"agentsEmpty\":\"Nessun agente. Crea il primo per iniziare.\",\"analyzeChatError\":\"L'analisi non si è conclusa. Riprova fra qualche minuto.\",\"analyzeChatInProgress\":\"Analisi della conversazione in corso. Se la conversazione è lunga, può servire circa un minuto.\",\"analyzeChatSuccess\":\"Conversazione analizzata con successo\",\"apiKeyCreatedForUser\":\"Mostrata una volta sola: copiala e passala in sicurezza.\",\"apiKeysEmpty\":\"Le chiavi che crei per l’accesso programmatico compaiono qui.\",\"apiToolsEmpty\":\"Nessun API tool. Aggiungi il primo per far chiamare all'agente un servizio esterno.\",\"banSuccess\":\"Utente bannato con successo\",\"blockChatSuccess\":\"Conversazione bloccata con successo\",\"bulkUnlinkAllDeleteConfirm\":\"{count} documenti verranno eliminati definitivamente perché non hanno altri agenti collegati. Vuoi procedere?\",\"bulkUnlinkMixedConfirm\":\"{unlinkCount} documenti verranno disassociati e {deleteCount} verranno eliminati definitivamente (non hanno altri agenti collegati). Vuoi procedere?\",\"cancelInvitationConfirm\":\"Sei sicuro di voler annullare l'invito per {email}?\",\"cancelInvitationSuccess\":\"Invito annullato con successo\",\"chatActionError\":\"L'azione non si è conclusa. Riprova fra qualche minuto.\",\"chatAnonymized\":\"Il contenuto di questa conversazione è stato cancellato (GDPR): restano solo le metriche aggregate.\",\"chatErrorBadRequest\":\"Si è verificato un errore con la richiesta. Inizia una nuova chat per continuare.\",\"chatErrorContextWindow\":\"La conversazione è diventata troppo lunga. Inizia una nuova chat per continuare.\",\"chatErrorConversationBlocked\":\"Questa conversazione è stata bloccata per violazione delle policy.\",\"chatErrorCreditExhausted\":\"Servizio non disponibile. Riprova più tardi.\",\"chatErrorGatewayDisabled\":\"Il modello di questo agente non è disponibile: l’organizzazione non usa il gateway AI della piattaforma. Un amministratore può spostare l’agente su uno dei modelli dell’organizzazione.\",\"chatErrorGatewayPromptTraining\":\"Il modello \\\"{model}\\\" non supporta l'opzione \\\"Disabilita addestramento prompt\\\". Disattiva questa impostazione nella configurazione del gateway dell'agente oppure scegli un modello compatibile.\",\"chatErrorGatewayZdr\":\"Il modello \\\"{model}\\\" non supporta l'opzione \\\"Zero Data Retention\\\". Disattiva ZDR nella configurazione del gateway dell'agente oppure scegli un modello compatibile.\",\"chatErrorGeneric\":\"Errore durante la richiesta. Se il problema persiste inizia una nuova chat. Riprovo tra {seconds}…\",\"chatErrorInternalServer\":\"Si è verificato un errore del server. Inizia una nuova chat per continuare.\",\"chatErrorModelUnavailable\":\"Il modello di questo agente ora non è disponibile: l’endpoint su cui gira è spento o non lo serve più. Un amministratore può riaccenderlo o spostare l’agente su un altro modello.\",\"chatErrorNotFound\":\"La conversazione non è più disponibile. Inizia una nuova chat per continuare.\",\"chatErrorOriginNotAllowed\":\"L'origine della richiesta non è consentita. Contatta l'amministratore del sistema.\",\"chatErrorRateLimit\":\"Il limite di richieste è stato superato. Riprovo tra {seconds} secondi…\",\"chatErrorRetrying\":\"Riprovo tra {seconds} secondi…\",\"checkYourEmail\":\"Verifica la tua casella email\",\"confirm\":\"Sei sicuro di voler procedere?\",\"confirmRefillCredits\":\"Sei sicuro di voler ricaricare il credito di {amount}?\",\"contentTruncated\":\"Contenuto troncato. Totale caratteri: {total}\",\"copied\":\"Copiato negli appunti\",\"crawlError\":\"Errore durante il crawling\",\"createFolderSuccess\":\"Cartella creata con successo\",\"defaultAgentWelcome\":\"Ciao! Come posso aiutarti oggi?\",\"defaultPrivacyPolicyNotice\":\"Inviando la richiesta accetti la nostra [Privacy Policy](https://www.iubenda.com/privacy-policy/46350192).\",\"deleteAgentConfirm\":\"Le sue cartelle vengono eliminate. Un documento che nessun altro agente usa viene eliminato, uno condiviso resta agli altri agenti.\",\"deleteAllMemoriesConfirm\":\"Spariscono definitivamente, ricerca semantica compresa.\",\"deleteAllNotificationsConfirm\":\"Eliminare tutte le notifiche?\",\"deleteBulkDocumentConfirm\":\"Vengono rimossi da tutti gli agenti collegati e finiscono nel cestino, da cui si possono ripristinare.\",\"deleteDocumentConfirm\":\"Viene rimosso da tutti gli agenti collegati e finisce nel cestino, da cui si può ripristinare.\",\"deleteDocumentConfirmWithAgents\":\"Finisce nel cestino, da cui si può ripristinare, e viene rimosso dai seguenti agenti:{agents}\",\"deleteError\":\"Eliminazione non riuscita. Riprova.\",\"deleteFolderConfirm\":\"I documenti al suo interno vengono tolti da questo agente. Un documento che nessun altro agente usa viene eliminato.\",\"deleteFolderSuccess\":\"Cartella eliminata con successo\",\"deleteMyConversationsConfirm\":\"Non si può annullare.\",\"deleteNotificationConfirm\":\"Eliminare questa notifica?\",\"deleteProfileBlockedSoleOwner\":\"Sei l'unico proprietario di {organizations}. Trasferisci la proprietà o elimina le organizzazioni prima di poter eliminare l'account.\",\"deleteProfileConfirm\":\"Stai per eliminare definitivamente il tuo account: il profilo verrà anonimizzato e il contenuto delle tue conversazioni cancellato. Questa azione non può essere annullata.\",\"deleteProfileDescription\":\"Anonimizza il tuo account e cancella il contenuto delle tue conversazioni (diritto all'oblio).\",\"diagramRenderError\":\"Impossibile renderizzare il diagramma.\",\"documentRefreshPausedReason\":\"La pagina non risponde più, quindi l'aggiornamento automatico è in pausa. Aggiorna ora per riprovare.\",\"documentRefreshSet\":\"Aggiornamento automatico impostato su {updated} documenti, {skipped} saltati perché non sono pagine web\",\"documentRefreshStarted\":\"Aggiornamento avviato su {queued} documenti, {skipped} saltati\",\"documentsEmpty\":\"Questa cartella è ancora vuota. Aggiungi documenti dal menu Crea, oppure inizia con una cartella.\",\"documentsEmptyManaged\":\"Nessun file sincronizzato in questa cartella. Il contenuto arriva dalla sorgente collegata: se hai appena collegato la cartella, il primo import può richiedere qualche minuto.\",\"documentsNoMatch\":\"Nessun documento corrisponde alla ricerca o ai filtri. Azzerali per vedere tutto.\",\"documentSourceLinked\":\"Cartella collegata. Il primo import parte tra poco.\",\"documentSourceNothingHere\":\"Non c’è nulla qui dentro.\",\"documentSourceStale\":\"Lo stato di questa cartella non è aggiornato: l’ultima lettura non è riuscita.\",\"documentSourceUnlinked\":\"Cartella scollegata. I documenti restano e ora si modificano come gli altri.\",\"embeddingActivated\":\"Embedding salvato: l’endpoint serve il modello dichiarato\",\"embeddingBackToPlatform\":\"I vettori si calcolano di nuovo sulla piattaforma\",\"embeddingIndexNotUpdated\":\"L’avanzamento non si aggiorna più.\",\"embeddingRemoved\":\"Embedding rimosso dall’endpoint\",\"empty\":\"Nessun elemento trovato\",\"endpointActivated\":\"Endpoint attivato con successo\",\"endpointDeactivated\":\"Endpoint disattivato con successo\",\"endpointsEmpty\":\"Nessun endpoint. Crea il primo per esporre l'agente via HTTP.\",\"error\":\"Errore\",\"errorRetry\":\"Qualcosa è andato storto. Riprova.\",\"exportError\":\"Errore durante l'esportazione dei dati\",\"exportFailed\":\"L'esportazione dei dati non è riuscita. Riprova più tardi.\",\"exportMyDataDescription\":\"Scarica una copia completa dei tuoi dati personali in formato ZIP (Art. 15 e 20 GDPR).\",\"exportRequested\":\"Stiamo preparando il tuo archivio: riceverai un'email con il link per scaricarlo.\",\"exportSuccess\":\"CSV esportato con successo\",\"feedbackSubmitError\":\"Invio fallito. Riprova per favore.\",\"feedbackSubmittedMessage\":\"Il tuo feedback è stato inviato con successo.\",\"feedbackSubmittedTitle\":\"Grazie!\",\"feedbacksEmpty\":\"I feedback che gli utenti lasciano sulle risposte dell'agente compariranno qui.\",\"fileAlreadyImported\":\"Già importato\",\"fileAlreadyImportedExistingList\":\"I seguenti file sono già presenti nell'organizzazione:\\n{names}\",\"fileAlreadyImportedLink\":\"Questo file è già stato importato. Vuoi collegarlo all'agente corrente o creare un nuovo documento?\",\"fileAlreadyImportedNewList\":\"I seguenti file sono nuovi e verranno importati normalmente:\\n{names}\",\"fileAlreadyImportedQuestion\":\"Vuoi collegare i file già presenti all'agente corrente?\",\"fileAlreadyLinkedToAgent\":\"I seguenti file sono già collegati all'agente corrente:\\n{names}\",\"fileLimitPerChat\":\"Hai raggiunto il limite di {max} file per questa conversazione.\",\"fileLimitPerMessage\":\"Puoi allegare al massimo {max} file per messaggio.\",\"foldersEmpty\":\"Nessuna cartella ancora. Crea la prima dalla pagina dei documenti per organizzarli.\",\"formRenderError\":\"Non è stato possibile mostrare il modulo. Chiedilo di nuovo e l'agente lo invierà.\",\"gdprRequestsEmpty\":\"Le richieste di esportazione o cancellazione dei dati di questo utente compaiono qui.\",\"geolocationPermissionDenied\":\"Accesso alla posizione negato. Consentilo nelle impostazioni del browser.\",\"geolocationUnavailable\":\"Posizione non disponibile. Riprova o inserisci la posizione manualmente.\",\"getMcpServerInfoError\":\"Un errore è avvenuto durante il caricamento dei tool.\",\"importError\":\"Errore durante l'importazione\",\"importSuccess\":\"{count} documenti importati con successo\",\"importing\":\"Importazione in corso…\",\"info\":\"Informazione\",\"insufficientCredit\":\"Credito insufficiente. Riprova più tardi.\",\"insufficientCreditMessage\":\"Il tuo credito è insufficiente per completare questa operazione. Contatta l'amministratore del sistema per ulteriori informazioni.\",\"integrationConnected\":\"Connessione riuscita.\",\"integrationCreated\":\"Integrazione creata con successo\",\"integrationDisabled\":\"Integrazione disabilitata\",\"integrationDisconnected\":\"Connessione rimossa.\",\"integrationDisconnectConfirm\":\"Le cartelle sincronizzate vengono scollegate.\",\"integrationEnabled\":\"Integrazione abilitata\",\"integrationOAuthDenied\":\"La connessione è stata rifiutata, o manca ancora l’approvazione di un amministratore Microsoft 365.\",\"integrationOAuthFailed\":\"La connessione non è andata a buon fine.\",\"integrationOAuthStartFailed\":\"Non è stato possibile avviare la connessione.\",\"integrationRemoveConfirm\":\"La configurazione di questa integrazione viene rimossa.\",\"integrationTestFailed\":\"Verifica connessione fallita: {error}\",\"integrationTestSuccess\":\"Connessione verificata con successo\",\"integrationUpdated\":\"Integrazione aggiornata con successo\",\"invalidJson\":\"L'input non è un JSON valido\",\"invitationAccepted\":\"Invito accettato\",\"invitationAlreadyHandled\":\"Invito già gestito\",\"invitationDeclined\":\"Invito declinato\",\"invitationToJoinOrganization\":\"Sei stato invitato a unirti a\",\"invitationsEmpty\":\"Nessun invito in sospeso. Invita le persone dalla pagina dei membri.\",\"leadSubmitError\":\"Invio fallito. Riprova per favore.\",\"leadSubmittedMessage\":\"La richiesta è stata inviata con successo.\",\"leadSubmittedTitle\":\"Grazie!\",\"leadsEmpty\":\"I lead raccolti dall'agente durante le conversazioni compariranno qui.\",\"leftOrganization\":\"Hai lasciato l'organizzazione con successo\",\"loadConversationsError\":\"Impossibile caricare le conversazioni\",\"loading\":\"Caricamento…\",\"loadingError\":\"Errore durante il caricamento\",\"mcpConnectionConnectedAt\":\"Accesso effettuato il {date}\",\"mcpConnectionDisconnectDescription\":\"Gli agenti non useranno più il tuo account {name}. La prossima volta che ti servirà, l'agente ti chiederà di accedere e potrai scegliere un altro account.\",\"mcpConnectionDisconnectQuestion\":\"Scollegare {name}?\",\"mcpConnectionDisconnected\":\"Account {name} scollegato\",\"mcpConnectionsDescription\":\"I servizi a cui hai effettuato l'accesso con il tuo account. Scollegane uno per impedire agli agenti di usarlo, o per accedere di nuovo con un account diverso.\",\"mcpConnectionsAvailableDescription\":\"Le integrazioni degli agenti che usi a cui non hai ancora effettuato l'accesso. Puoi collegarle ora, senza aspettare che l'agente te lo chieda.\",\"mcpConnectionConnected\":\"Account {name} collegato\",\"mcpConnectionConnectFailed\":\"Accesso a {name} non riuscito. Riprova: se l'errore si ripete, segnalalo a chi gestisce l'agente.\",\"mcpConnectionUsedBy\":\"Usata da {agents}\",\"mcpConnectionUsedByNone\":\"Nessun agente la usa\",\"noMcpConnections\":\"Nessuna integrazione collegata\",\"userMcpConnectionsEmpty\":\"Questo utente non ha effettuato l'accesso a nessuna integrazione con il proprio account.\",\"mcpConnectionRevokeQuestion\":\"Revocare l'accesso di {user} a {name}?\",\"mcpConnectionRevokeDescription\":\"Gli agenti non useranno più il suo account {name}. Chiediamo la revoca anche al fornitore, dove la supporta; altrimenti l'autorizzazione resta valida presso di lui fino alla scadenza. Per usarla di nuovo, {user} dovrà accedere di persona. Riceverà una notifica.\",\"mcpConnectionRevokedAtProvider\":\"Accesso a {name} revocato, anche presso il fornitore\",\"mcpConnectionRevokedHere\":\"Accesso a {name} revocato qui. Il fornitore non ha confermato la revoca: l'autorizzazione può restare valida presso di lui fino alla scadenza.\",\"mcpServerCheckError\":\"Errore durante la verifica del server MCP: {error}\",\"mcpServerCheckSuccess\":\"Verifica del server MCP riuscita\",\"mcpServerInvalidEndpoint\":\"Questo URL non punta a un endpoint MCP: il server ha risposto con una pagina web. Controlla il percorso, di solito i server MCP lo espongono sotto /mcp.\",\"mcpServersEmpty\":\"Nessun server MCP. Collega il primo per dare nuovi strumenti all'agente.\",\"membersEmpty\":\"Nessun membro. Invita il primo per iniziare.\",\"memoriesEmpty\":\"Le memorie che l'agente salva su questo utente durante le conversazioni compariranno qui.\",\"memoryNotSynced\":\"Memoria non sincronizzata con la ricerca semantica: non viene considerata nelle risposte finché lo sweep di riparazione non la ripristina.\",\"modelDiscoveryUnavailable\":\"Questo endpoint non fornisce l'elenco dei suoi modelli: inserisci gli id a mano.\",\"modelDiscoveryFailed\":\"Non siamo riusciti a leggere l'elenco dei modelli dall'endpoint: vedi solo quelli già salvati.\",\"modelPricesUnchanged\":\"Nessun prezzo è cambiato.\",\"modelPricesUpdated\":\"Aggiornato il prezzo di un modello: {models}. | Aggiornati i prezzi di {count} modelli: {models}.\",\"modelProviderDeleted\":\"Endpoint eliminato.\",\"moveDocumentSuccess\":\"Documento spostato con successo\",\"noActiveSessions\":\"Nessuna altra sessione attiva\",\"noApiKeys\":\"Nessuna chiave API\",\"noChats\":\"Nessuna chat disponibile\",\"noConnectedAccounts\":\"Nessun account collegato\",\"noConversations\":\"Nessuna conversazione trovata\",\"noConversationsHint\":\"Inizia una nuova chat per vederla comparire qui.\",\"noCreditsData\":\"Nessun dato crediti disponibile\",\"noEndpointLogs\":\"Ancora nessuna chiamata a questo endpoint\",\"noEndpointModels\":\"Nessun modello disponibile: l'endpoint non ne elenca nessuno.\",\"modelRemoved\":\"Modello rimosso.\",\"noGdprRequests\":\"Nessuna richiesta GDPR\",\"noLinkedAgents\":\"Nessun agente collegato\",\"noNotifications\":\"Nessuna notifica\",\"noOptions\":\"Nessun elemento\",\"noOrganizations\":\"Nessuna organizzazione\",\"noResults\":\"Nessun risultato trovato\",\"noSearchResults\":\"Nessun elemento corrisponde alla ricerca. Cancellala per vedere tutto.\",\"notificationsEmpty\":\"Nessuna notifica inviata. Crea la prima per raggiungere i tuoi utenti.\",\"oauthConfigIncomplete\":\"Configurazione OAuth incompleta. Imposta il Client ID nelle impostazioni del server MCP.\",\"oauthConnected\":\"Autorizzazione OAuth completata con successo\",\"oauthError\":\"Errore durante l'autorizzazione OAuth\",\"organizationDisconnected\":\"Né il gateway della piattaforma né un endpoint proprio servono questa organizzazione, quindi i suoi agenti non rispondono.\",\"organizationMembersEmpty\":\"Nessun membro. Aggiungi il primo per iniziare.\",\"organizationNotSelected\":\"Nessuna organizzazione selezionata\",\"organizationsEmpty\":\"Nessuna organizzazione. Crea la prima per iniziare.\",\"pageNotFound\":\"Pagina non trovata\",\"passwordChangeSuccess\":\"Password cambiata con successo\",\"passwordResetSuccess\":\"Password reimpostata. Tutte le sessioni dell'account sono state chiuse: accedi con la nuova password.\",\"profileOrganizationsEmpty\":\"Le organizzazioni di cui fai parte compaiono qui.\",\"readError\":\"Errore durante la lettura\",\"reasoningAgent\":\"Questo è un agente di ragionamento. Non è progettato per mantenere la storia della conversazione, ogni messaggio è processato indipendentemente.\",\"recoverPasswordSuccess\":\"Email di recupero inviata con successo\",\"refillFailed\":\"Ricarica fallita. Riprova più tardi.\",\"refillSuccess\":\"Ricarica completata con successo\",\"refreshSuccess\":\"Aggiornamento completato con successo\",\"releaseNotesEmpty\":\"Nessuna nota di rilascio pubblicata. Gli aggiornamenti compariranno qui man mano che escono.\",\"removeSuccess\":\"Eliminazione completata con successo\",\"renameFolderSuccess\":\"Cartella rinominata con successo\",\"revisedAnswersEmpty\":\"Nessuna risposta revisionata. Crea la prima per insegnare all'agente una risposta migliore.\",\"selectedCount\":\"{count} di {total} selezionati\",\"sendInvitationConfirm\":\"Sei sicuro di voler inviare nuovamente l'invito a {email}?\",\"sessionRevoked\":\"Sessione disconnessa\",\"sessionsEmpty\":\"Un accesso da un altro dispositivo o browser apre una nuova sessione, elencata qui.\",\"setPasswordDescription\":\"Per ora accedi solo tramite un account collegato. Imposta una password per entrare anche con email e password: ti inviamo un link per crearla. Crearla chiude tutte le sessioni aperte, anche questa.\",\"setPasswordLinkSent\":\"Ti abbiamo mandato il link a {email}.\",\"sharedSuccess\":\"Documento condiviso con successo\",\"sitemapUrlRequired\":\"L'URL della sitemap è richiesto\",\"startUrlRequired\":\"L'URL di partenza è richiesto\",\"subAgentsEmpty\":\"Collega un agente per delegargli una parte della conversazione.\",\"submitError\":\"Errore durante il salvataggio\",\"submitSuccess\":\"Salvataggio completato con successo\",\"success\":\"Successo\",\"testExecutionError\":\"Errore nell'esecuzione del test\",\"toolNameAutoGenerated\":\"Il nome del tool verrà generato in automatico\",\"typeToSearch\":\"Inizia a digitare per cercare…\",\"unauthorized\":\"Non hai i permessi per gestire i canali.\",\"unbanSuccess\":\"Utente sbannato con successo\",\"unblockChatSuccess\":\"Conversazione sbloccata con successo\",\"unlinkAgentConfirm\":\"Il documento resta disponibile per gli altri agenti collegati.\",\"unlinkDocumentConfirm\":\"Resta disponibile per gli altri agenti collegati.\",\"unlinkLastAgentDeleteConfirm\":\"Il documento viene eliminato definitivamente, perché nessun altro agente è collegato.\",\"unlinkSuccess\":\"Documento disassociato con successo\",\"unlinkSyncedFolderConfirm\":\"La sincronizzazione si ferma. La cartella e i suoi documenti restano all'agente e da ora si modificano come gli altri: per toglierli, elimina la cartella.\",\"unsavedChanges\":\"Salva o annulla le modifiche prima\",\"urlAlreadyImported\":\"Già importato\",\"urlAlreadyImportedLink\":\"Questo URL è già stato importato. Vuoi collegarlo all'agente corrente?\",\"userApiKeysEmpty\":\"Le chiavi che questo utente crea dal proprio profilo per l'accesso programmatico compariranno qui.\",\"userChatsEmpty\":\"Le conversazioni di questo utente con qualsiasi agente compariranno qui.\",\"userOrganizationsEmpty\":\"L'utente non appartiene ancora a nessuna organizzazione. Aggiungi la prima.\",\"userUpdateSuccess\":\"Profilo utente aggiornato con successo\",\"usersEmpty\":\"Nessun utente. Crea il primo per iniziare.\",\"voiceCancelled\":\"Ho annullato.\",\"voiceConfirmed\":\"Confermo.\",\"voiceConnecting\":\"Connessione…\",\"voiceConnectionDone\":\"Ho completato il collegamento.\",\"voiceFailed\":\"La sessione vocale si è interrotta\",\"voiceInterrupted\":\"Riprova, oppure continua per iscritto.\",\"voiceListening\":\"In ascolto\",\"voiceLocationRefused\":\"Preferisco non condividere la mia posizione.\",\"voiceLocationShared\":\"La mia posizione è {place}.\",\"voiceMuted\":\"Microfono disattivato\",\"voiceNoAnswer\":\"L'agente non è riuscito a produrre una risposta per questa chiamata. Riprova, oppure continua per iscritto.\",\"voiceSpeaking\":\"L'agente sta parlando\",\"voiceTookTooLong\":\"La risposta ha impiegato troppo tempo per la chiamata. Riprova, oppure continua per iscritto: la risposta comparirà qui appena pronta.\",\"warning\":\"Attenzione\",\"webSourceCreated\":\"Sorgente creata: la cartella «{name}» riceverà le pagine nuove.\",\"webSourceCreateError\":\"Non è stato possibile creare la sorgente, e nessuna pagina è stata importata.\",\"webSourceEditable\":\"Le pagine scoperte restano modificabili. Scollegare la sorgente le lascia dove sono, con il loro aggiornamento automatico.\",\"webSourceRemovalHeld\":\"La sitemap non elenca più {count} pagine: sono troppe in una volta per rimuoverle senza un controllo, e non è stato rimosso niente.\",\"webSourceConfirmRemovalQuestion\":\"Il prossimo controllo toglie dalla knowledge base le pagine che la sitemap non elenca più, fino a {count}. Il loro contenuto resta nel database.\",\"unlinkWebSourceConfirm\":\"La sorgente smette di cercare pagine nuove. La cartella e le sue pagine restano, con il loro aggiornamento automatico.\"}"),
1390
+ message: /* @__PURE__ */ JSON.parse("{\"accountLinkAlreadyLinked\":\"Questo account è già collegato a un altro utente. Accedi con quell'utente per scollegarlo prima.\",\"accountLinkCancelled\":\"Collegamento annullato sulla pagina del provider. Nulla è cambiato.\",\"accountLinkEmailMismatch\":\"Puoi collegare solo account che usano la stessa email del tuo profilo.\",\"accountLinkErrorWithCode\":\"Impossibile collegare l'account (codice: {code}). Riprova o segnala questo codice all'assistenza.\",\"accountLinkNotAllowed\":\"Questo provider non può essere collegato al tuo profilo: l'email dell'account non è verificata o il collegamento è disabilitato.\",\"accountLinkUserInfo\":\"Il provider non ha restituito un profilo utilizzabile, quindi nessun account è stato collegato. Riprova.\",\"accountUnlinked\":\"Account disconnesso\",\"agentAccessDenied\":\"Non hai accesso a questo agente\",\"agentAccessDeniedAction\":\"Vedi gli agenti disponibili\",\"agentActivated\":\"Agente attivato con successo\",\"agentDeactivated\":\"Agente disattivato con successo\",\"agentNotFound\":\"Agente non trovato\",\"agentsEmpty\":\"Nessun agente. Crea il primo per iniziare.\",\"analyzeChatError\":\"L'analisi non si è conclusa. Riprova fra qualche minuto.\",\"analyzeChatInProgress\":\"Analisi della conversazione in corso. Se la conversazione è lunga, può servire circa un minuto.\",\"analyzeChatSuccess\":\"Conversazione analizzata con successo\",\"apiKeyCreatedForUser\":\"Mostrata una volta sola: copiala e passala in sicurezza.\",\"apiKeysEmpty\":\"Le chiavi che crei per l’accesso programmatico compaiono qui.\",\"apiToolsEmpty\":\"Nessun API tool. Aggiungi il primo per far chiamare all'agente un servizio esterno.\",\"banSuccess\":\"Utente bannato con successo\",\"blockChatSuccess\":\"Conversazione bloccata con successo\",\"bulkUnlinkAllDeleteConfirm\":\"{count} documenti verranno eliminati definitivamente perché non hanno altri agenti collegati. Vuoi procedere?\",\"bulkUnlinkMixedConfirm\":\"{unlinkCount} documenti verranno disassociati e {deleteCount} verranno eliminati definitivamente (non hanno altri agenti collegati). Vuoi procedere?\",\"cancelInvitationConfirm\":\"Sei sicuro di voler annullare l'invito per {email}?\",\"cancelInvitationSuccess\":\"Invito annullato con successo\",\"chatActionError\":\"L'azione non si è conclusa. Riprova fra qualche minuto.\",\"chatAnonymized\":\"Il contenuto di questa conversazione è stato cancellato (GDPR): restano solo le metriche aggregate.\",\"chatErrorBadRequest\":\"Si è verificato un errore con la richiesta. Inizia una nuova chat per continuare.\",\"chatErrorContextWindow\":\"La conversazione è diventata troppo lunga. Inizia una nuova chat per continuare.\",\"chatErrorConversationBlocked\":\"Questa conversazione è stata bloccata per violazione delle policy.\",\"chatErrorCreditExhausted\":\"Servizio non disponibile. Riprova più tardi.\",\"chatErrorGatewayDisabled\":\"Il modello di questo agente non è disponibile: l’organizzazione non usa il gateway AI della piattaforma. Un amministratore può spostare l’agente su uno dei modelli dell’organizzazione.\",\"chatErrorGatewayPromptTraining\":\"Il modello \\\"{model}\\\" non supporta l'opzione \\\"Disabilita addestramento prompt\\\". Disattiva questa impostazione nella configurazione del gateway dell'agente oppure scegli un modello compatibile.\",\"chatErrorGatewayZdr\":\"Il modello \\\"{model}\\\" non supporta l'opzione \\\"Zero Data Retention\\\". Disattiva ZDR nella configurazione del gateway dell'agente oppure scegli un modello compatibile.\",\"chatErrorGeneric\":\"Errore durante la richiesta. Se il problema persiste inizia una nuova chat. Riprovo tra {seconds}…\",\"chatErrorInternalServer\":\"Si è verificato un errore del server. Inizia una nuova chat per continuare.\",\"chatErrorModelUnavailable\":\"Il modello di questo agente ora non è disponibile: l’endpoint su cui gira è spento o non lo serve più. Un amministratore può riaccenderlo o spostare l’agente su un altro modello.\",\"chatErrorNotFound\":\"La conversazione non è più disponibile. Inizia una nuova chat per continuare.\",\"chatErrorOriginNotAllowed\":\"L'origine della richiesta non è consentita. Contatta l'amministratore del sistema.\",\"chatErrorRateLimit\":\"Il limite di richieste è stato superato. Riprovo tra {seconds} secondi…\",\"chatErrorRetrying\":\"Riprovo tra {seconds} secondi…\",\"checkYourEmail\":\"Verifica la tua casella email\",\"confirm\":\"Sei sicuro di voler procedere?\",\"confirmRefillCredits\":\"Sei sicuro di voler ricaricare il credito di {amount}?\",\"contentTruncated\":\"Contenuto troncato. Totale caratteri: {total}\",\"copied\":\"Copiato negli appunti\",\"crawlError\":\"Errore durante il crawling\",\"createFolderSuccess\":\"Cartella creata con successo\",\"defaultAgentWelcome\":\"Ciao! Come posso aiutarti oggi?\",\"defaultPrivacyPolicyNotice\":\"Inviando la richiesta accetti la nostra [Privacy Policy](https://www.iubenda.com/privacy-policy/46350192).\",\"deleteAgentConfirm\":\"Le sue cartelle vengono eliminate. Un documento che nessun altro agente usa viene eliminato, uno condiviso resta agli altri agenti.\",\"deleteAllMemoriesConfirm\":\"Spariscono definitivamente, ricerca semantica compresa.\",\"deleteAllNotificationsConfirm\":\"Eliminare tutte le notifiche?\",\"deleteBulkDocumentConfirm\":\"Vengono rimossi da tutti gli agenti collegati e finiscono nel cestino, da cui si possono ripristinare.\",\"deleteDocumentConfirm\":\"Viene rimosso da tutti gli agenti collegati e finisce nel cestino, da cui si può ripristinare.\",\"deleteDocumentConfirmWithAgents\":\"Finisce nel cestino, da cui si può ripristinare, e viene rimosso dai seguenti agenti:{agents}\",\"deleteError\":\"Eliminazione non riuscita. Riprova.\",\"deleteFolderConfirm\":\"I documenti al suo interno vengono tolti da questo agente. Un documento che nessun altro agente usa viene eliminato.\",\"deleteFolderSuccess\":\"Cartella eliminata con successo\",\"deleteMyConversationsConfirm\":\"Non si può annullare.\",\"deleteNotificationConfirm\":\"Eliminare questa notifica?\",\"deleteProfileBlockedSoleOwner\":\"Sei l'unico proprietario di {organizations}. Trasferisci la proprietà o elimina le organizzazioni prima di poter eliminare l'account.\",\"deleteProfileConfirm\":\"Stai per eliminare definitivamente il tuo account: il profilo verrà anonimizzato e il contenuto delle tue conversazioni cancellato. Questa azione non può essere annullata.\",\"deleteProfileDescription\":\"Anonimizza il tuo account e cancella il contenuto delle tue conversazioni (diritto all'oblio).\",\"diagramRenderError\":\"Impossibile renderizzare il diagramma.\",\"documentRefreshPausedReason\":\"La pagina non risponde più, quindi l'aggiornamento automatico è in pausa. Aggiorna ora per riprovare.\",\"documentRefreshSet\":\"Aggiornamento automatico impostato su {updated} documenti, {skipped} saltati perché non sono pagine web\",\"documentRefreshStarted\":\"Aggiornamento avviato su {queued} documenti, {skipped} saltati\",\"documentsEmpty\":\"Crea qui un documento o una cartella. Per importare da un sito o da un servizio collegato, usa il menu Crea.\",\"documentsEmptyManaged\":\"Nessun file sincronizzato in questa cartella. Il contenuto arriva dalla sorgente collegata: se hai appena collegato la cartella, il primo import può richiedere qualche minuto.\",\"documentsNoMatch\":\"Nessun documento corrisponde alla ricerca o ai filtri. Azzerali per vedere tutto.\",\"documentSourceLinked\":\"Cartella collegata. Il primo import parte tra poco.\",\"documentSourceNothingHere\":\"Non c’è nulla qui dentro.\",\"documentSourceStale\":\"Lo stato di questa cartella non è aggiornato: l’ultima lettura non è riuscita.\",\"documentSourceUnlinked\":\"Cartella scollegata. I documenti restano e ora si modificano come gli altri.\",\"embeddingActivated\":\"Embedding salvato: l’endpoint serve il modello dichiarato\",\"embeddingBackToPlatform\":\"I vettori si calcolano di nuovo sulla piattaforma\",\"embeddingIndexNotUpdated\":\"L’avanzamento non si aggiorna più.\",\"embeddingRemoved\":\"Embedding rimosso dall’endpoint\",\"empty\":\"Nessun elemento trovato\",\"endpointActivated\":\"Endpoint attivato con successo\",\"endpointDeactivated\":\"Endpoint disattivato con successo\",\"endpointsEmpty\":\"Nessun endpoint. Crea il primo per esporre l'agente via HTTP.\",\"error\":\"Errore\",\"errorRetry\":\"Qualcosa è andato storto. Riprova.\",\"exportError\":\"Errore durante l'esportazione dei dati\",\"exportFailed\":\"L'esportazione dei dati non è riuscita. Riprova più tardi.\",\"exportMyDataDescription\":\"Scarica una copia completa dei tuoi dati personali in formato ZIP (Art. 15 e 20 GDPR).\",\"exportRequested\":\"Stiamo preparando il tuo archivio: riceverai un'email con il link per scaricarlo.\",\"exportSuccess\":\"CSV esportato con successo\",\"feedbackSubmitError\":\"Invio fallito. Riprova per favore.\",\"feedbackSubmittedMessage\":\"Il tuo feedback è stato inviato con successo.\",\"feedbackSubmittedTitle\":\"Grazie!\",\"feedbacksEmpty\":\"I feedback che gli utenti lasciano sulle risposte dell'agente compariranno qui.\",\"fileAlreadyImported\":\"Già importato\",\"fileAlreadyImportedExistingList\":\"I seguenti file sono già presenti nell'organizzazione:\\n{names}\",\"fileAlreadyImportedLink\":\"Questo file è già stato importato. Vuoi collegarlo all'agente corrente o creare un nuovo documento?\",\"fileAlreadyImportedNewList\":\"I seguenti file sono nuovi e verranno importati normalmente:\\n{names}\",\"fileAlreadyImportedQuestion\":\"Vuoi collegare i file già presenti all'agente corrente?\",\"fileAlreadyLinkedToAgent\":\"I seguenti file sono già collegati all'agente corrente:\\n{names}\",\"fileLimitPerChat\":\"Hai raggiunto il limite di {max} file per questa conversazione.\",\"fileLimitPerMessage\":\"Puoi allegare al massimo {max} file per messaggio.\",\"foldersEmpty\":\"Nessuna cartella ancora. Crea la prima dalla pagina dei documenti per organizzarli.\",\"formRenderError\":\"Non è stato possibile mostrare il modulo. Chiedilo di nuovo e l'agente lo invierà.\",\"gdprRequestsEmpty\":\"Le richieste di esportazione o cancellazione dei dati di questo utente compaiono qui.\",\"geolocationPermissionDenied\":\"Accesso alla posizione negato. Consentilo nelle impostazioni del browser.\",\"geolocationUnavailable\":\"Posizione non disponibile. Riprova o inserisci la posizione manualmente.\",\"getMcpServerInfoError\":\"Il server non ha risposto con l'elenco dei suoi tool. Controlla che l'indirizzo sia giusto e che il server sia raggiungibile, poi riprova.\",\"importError\":\"Errore durante l'importazione\",\"importSuccess\":\"{count} documenti importati con successo\",\"importing\":\"Importazione in corso…\",\"info\":\"Informazione\",\"insufficientCredit\":\"Credito insufficiente. Riprova più tardi.\",\"insufficientCreditMessage\":\"Il tuo credito è insufficiente per completare questa operazione. Contatta l'amministratore del sistema per ulteriori informazioni.\",\"integrationConnected\":\"Connessione riuscita.\",\"integrationCreated\":\"Integrazione creata con successo\",\"integrationDisabled\":\"Integrazione disabilitata\",\"integrationDisconnected\":\"Connessione rimossa.\",\"integrationDisconnectConfirm\":\"Le cartelle sincronizzate vengono scollegate.\",\"integrationEnabled\":\"Integrazione abilitata\",\"integrationOAuthDenied\":\"La connessione è stata rifiutata, o manca ancora l’approvazione di un amministratore Microsoft 365.\",\"integrationOAuthFailed\":\"La connessione non è andata a buon fine.\",\"integrationOAuthStartFailed\":\"Non è stato possibile avviare la connessione.\",\"integrationRemoveConfirm\":\"La configurazione di questa integrazione viene rimossa.\",\"integrationTestFailed\":\"Verifica connessione fallita: {error}\",\"integrationTestSuccess\":\"Connessione verificata con successo\",\"integrationUpdated\":\"Integrazione aggiornata con successo\",\"invalidJson\":\"L'input non è un JSON valido\",\"invitationAccepted\":\"Invito accettato\",\"invitationAlreadyHandled\":\"Invito già gestito\",\"invitationDeclined\":\"Invito declinato\",\"invitationToJoinOrganization\":\"Sei stato invitato a unirti a\",\"invitationsEmpty\":\"Nessun invito in sospeso. Invita le persone dalla pagina dei membri.\",\"leadSubmitError\":\"Invio fallito. Riprova per favore.\",\"leadSubmittedMessage\":\"La richiesta è stata inviata con successo.\",\"leadSubmittedTitle\":\"Grazie!\",\"leadsEmpty\":\"I lead raccolti dall'agente durante le conversazioni compariranno qui.\",\"leftOrganization\":\"Hai lasciato l'organizzazione con successo\",\"loadConversationsError\":\"Impossibile caricare le conversazioni\",\"loading\":\"Caricamento…\",\"loadingError\":\"Errore durante il caricamento\",\"mcpConnectionConnectedAt\":\"Accesso effettuato il {date}\",\"mcpConnectionDisconnectDescription\":\"Gli agenti non useranno più il tuo account {name}. La prossima volta che ti servirà, l'agente ti chiederà di accedere e potrai scegliere un altro account.\",\"mcpConnectionDisconnectQuestion\":\"Scollegare {name}?\",\"mcpConnectionDisconnected\":\"Account {name} scollegato\",\"mcpConnectionsDescription\":\"I servizi a cui hai effettuato l'accesso con il tuo account. Scollegane uno per impedire agli agenti di usarlo, o per accedere di nuovo con un account diverso.\",\"mcpConnectionsAvailableDescription\":\"Le integrazioni degli agenti che usi a cui non hai ancora effettuato l'accesso. Puoi collegarle ora, senza aspettare che l'agente te lo chieda.\",\"mcpConnectionConnected\":\"Account {name} collegato\",\"mcpConnectionConnectFailed\":\"Accesso a {name} non riuscito. Riprova: se l'errore si ripete, segnalalo a chi gestisce l'agente.\",\"mcpConnectionUsedBy\":\"Usata da {agents}\",\"mcpConnectionUsedByNone\":\"Nessun agente la usa\",\"noMcpConnections\":\"Nessuna integrazione collegata\",\"userMcpConnectionsEmpty\":\"Questo utente non ha effettuato l'accesso a nessuna integrazione con il proprio account.\",\"mcpConnectionRevokeQuestion\":\"Revocare l'accesso di {user} a {name}?\",\"mcpConnectionRevokeDescription\":\"Gli agenti non useranno più il suo account {name}. Chiediamo la revoca anche al fornitore, dove la supporta; altrimenti l'autorizzazione resta valida presso di lui fino alla scadenza. Per usarla di nuovo, {user} dovrà accedere di persona. Riceverà una notifica.\",\"mcpConnectionRevokedAtProvider\":\"Accesso a {name} revocato, anche presso il fornitore\",\"mcpConnectionRevokedHere\":\"Accesso a {name} revocato qui. Il fornitore non ha confermato la revoca: l'autorizzazione può restare valida presso di lui fino alla scadenza.\",\"mcpServerCheckError\":\"Errore durante la verifica del server MCP: {error}\",\"mcpServerCheckSuccess\":\"Verifica del server MCP riuscita\",\"mcpServerInvalidEndpoint\":\"Questo URL non punta a un endpoint MCP: il server ha risposto con una pagina web. Controlla il percorso, di solito i server MCP lo espongono sotto /mcp.\",\"mcpServersEmpty\":\"Nessun server MCP. Collega il primo per dare nuovi strumenti all'agente.\",\"membersEmpty\":\"Nessun membro. Invita il primo per iniziare.\",\"memoriesEmpty\":\"Le memorie che l'agente salva su questo utente durante le conversazioni compariranno qui.\",\"memoryNotSynced\":\"Memoria non sincronizzata con la ricerca semantica: non viene considerata nelle risposte finché lo sweep di riparazione non la ripristina.\",\"modelDiscoveryUnavailable\":\"Questo endpoint non fornisce l'elenco dei suoi modelli: inserisci gli id a mano.\",\"modelDiscoveryFailed\":\"Non siamo riusciti a leggere l'elenco dei modelli dall'endpoint: vedi solo quelli già salvati.\",\"modelPricesUnchanged\":\"Nessun prezzo è cambiato.\",\"modelPricesUpdated\":\"Aggiornato il prezzo di un modello: {models}. | Aggiornati i prezzi di {count} modelli: {models}.\",\"modelProviderDeleted\":\"Endpoint eliminato.\",\"moveDocumentSuccess\":\"Documento spostato con successo\",\"noActiveSessions\":\"Nessuna altra sessione attiva\",\"noApiKeys\":\"Nessuna chiave API\",\"noChats\":\"Nessuna chat disponibile\",\"noConnectedAccounts\":\"Nessun account collegato\",\"noConversations\":\"Nessuna conversazione trovata\",\"noConversationsHint\":\"Inizia una nuova chat per vederla comparire qui.\",\"noCreditsData\":\"Nessun dato crediti disponibile\",\"noEndpointLogs\":\"Ancora nessuna chiamata a questo endpoint\",\"noEndpointModels\":\"Nessun modello disponibile: l'endpoint non ne elenca nessuno.\",\"modelRemoved\":\"Modello rimosso.\",\"noGdprRequests\":\"Nessuna richiesta GDPR\",\"noLinkedAgents\":\"Nessun agente collegato\",\"noNotifications\":\"Nessuna notifica\",\"noOptions\":\"Nessun elemento\",\"noOrganizations\":\"Nessuna organizzazione\",\"noResults\":\"Nessun risultato trovato\",\"noSearchResults\":\"Nessun elemento corrisponde alla ricerca. Cancellala per vedere tutto.\",\"notificationsEmpty\":\"Nessuna notifica inviata. Crea la prima per raggiungere i tuoi utenti.\",\"oauthConfigIncomplete\":\"Configurazione OAuth incompleta. Imposta il Client ID nelle impostazioni del server MCP.\",\"oauthConnected\":\"Autorizzazione OAuth completata con successo\",\"oauthError\":\"Errore durante l'autorizzazione OAuth\",\"organizationDisconnected\":\"Né il gateway della piattaforma né un endpoint proprio servono questa organizzazione, quindi i suoi agenti non rispondono.\",\"organizationMembersEmpty\":\"Nessun membro. Aggiungi il primo per iniziare.\",\"organizationNotSelected\":\"Nessuna organizzazione selezionata\",\"organizationsEmpty\":\"Nessuna organizzazione. Crea la prima per iniziare.\",\"pageNotFound\":\"Pagina non trovata\",\"passwordChangeSuccess\":\"Password cambiata con successo\",\"passwordResetSuccess\":\"Password reimpostata. Tutte le sessioni dell'account sono state chiuse: accedi con la nuova password.\",\"profileOrganizationsEmpty\":\"Le organizzazioni di cui fai parte compaiono qui.\",\"readError\":\"Errore durante la lettura\",\"reasoningAgent\":\"Questo è un agente di ragionamento. Non è progettato per mantenere la storia della conversazione, ogni messaggio è processato indipendentemente.\",\"recoverPasswordSuccess\":\"Email di recupero inviata con successo\",\"refillFailed\":\"Ricarica fallita. Riprova più tardi.\",\"refillSuccess\":\"Ricarica completata con successo\",\"refreshSuccess\":\"Aggiornamento completato con successo\",\"releaseNotesEmpty\":\"Nessuna nota di rilascio pubblicata. Gli aggiornamenti compariranno qui man mano che escono.\",\"removeSuccess\":\"Eliminazione completata con successo\",\"renameFolderSuccess\":\"Cartella rinominata con successo\",\"revisedAnswersEmpty\":\"Nessuna risposta revisionata. Crea la prima per insegnare all'agente una risposta migliore.\",\"selectedCount\":\"{count} di {total} selezionati\",\"sendInvitationConfirm\":\"Sei sicuro di voler inviare nuovamente l'invito a {email}?\",\"sessionRevoked\":\"Sessione disconnessa\",\"sessionsEmpty\":\"Un accesso da un altro dispositivo o browser apre una nuova sessione, elencata qui.\",\"setPasswordDescription\":\"Per ora accedi solo tramite un account collegato. Imposta una password per entrare anche con email e password: ti inviamo un link per crearla. Crearla chiude tutte le sessioni aperte, anche questa.\",\"setPasswordLinkSent\":\"Ti abbiamo mandato il link a {email}.\",\"sharedSuccess\":\"Documento condiviso con successo\",\"sitemapUrlRequired\":\"L'URL della sitemap è richiesto\",\"startUrlRequired\":\"L'URL di partenza è richiesto\",\"subAgentsEmpty\":\"Collega un agente per delegargli una parte della conversazione.\",\"submitError\":\"Errore durante il salvataggio\",\"submitSuccess\":\"Salvataggio completato con successo\",\"success\":\"Successo\",\"testExecutionError\":\"Errore nell'esecuzione del test\",\"toolNameAutoGenerated\":\"Il nome del tool verrà generato in automatico\",\"typeToSearch\":\"Inizia a digitare per cercare…\",\"unauthorized\":\"Non hai i permessi per gestire i canali.\",\"unbanSuccess\":\"Utente sbannato con successo\",\"unblockChatSuccess\":\"Conversazione sbloccata con successo\",\"unlinkAgentConfirm\":\"Il documento resta disponibile per gli altri agenti collegati.\",\"unlinkDocumentConfirm\":\"Resta disponibile per gli altri agenti collegati.\",\"unlinkLastAgentDeleteConfirm\":\"Il documento viene eliminato definitivamente, perché nessun altro agente è collegato.\",\"unlinkSuccess\":\"Documento disassociato con successo\",\"unlinkSyncedFolderConfirm\":\"La sincronizzazione si ferma. La cartella e i suoi documenti restano all'agente e da ora si modificano come gli altri: per toglierli, elimina la cartella.\",\"unsavedChanges\":\"Salva o annulla le modifiche prima\",\"urlAlreadyImported\":\"Già importato\",\"urlAlreadyImportedLink\":\"Questo URL è già stato importato. Vuoi collegarlo all'agente corrente?\",\"userApiKeysEmpty\":\"Le chiavi che questo utente crea dal proprio profilo per l'accesso programmatico compariranno qui.\",\"userChatsEmpty\":\"Le conversazioni di questo utente con qualsiasi agente compariranno qui.\",\"userOrganizationsEmpty\":\"L'utente non appartiene ancora a nessuna organizzazione. Aggiungi la prima.\",\"userUpdateSuccess\":\"Profilo utente aggiornato con successo\",\"usersEmpty\":\"Nessun utente. Crea il primo per iniziare.\",\"voiceCancelled\":\"Ho annullato.\",\"voiceConfirmed\":\"Confermo.\",\"voiceConnecting\":\"Connessione…\",\"voiceConnectionDone\":\"Ho completato il collegamento.\",\"voiceFailed\":\"La sessione vocale si è interrotta\",\"voiceInterrupted\":\"Riprova, oppure continua per iscritto.\",\"voiceListening\":\"In ascolto\",\"voiceLocationRefused\":\"Preferisco non condividere la mia posizione.\",\"voiceLocationShared\":\"La mia posizione è {place}.\",\"voiceMuted\":\"Microfono disattivato\",\"voiceNoAnswer\":\"L'agente non è riuscito a produrre una risposta per questa chiamata. Riprova, oppure continua per iscritto.\",\"voiceSpeaking\":\"L'agente sta parlando\",\"voiceTookTooLong\":\"La risposta ha impiegato troppo tempo per la chiamata. Riprova, oppure continua per iscritto: la risposta comparirà qui appena pronta.\",\"warning\":\"Attenzione\",\"webSourceCreated\":\"Sorgente creata: la cartella «{name}» riceverà le pagine nuove.\",\"webSourceCreateError\":\"Non è stato possibile creare la sorgente, e nessuna pagina è stata importata.\",\"webSourceEditable\":\"Le pagine scoperte restano modificabili. Scollegare la sorgente le lascia dove sono, con il loro aggiornamento automatico.\",\"webSourceRemovalHeld\":\"La sitemap non elenca più {count} pagine: sono troppe in una volta per rimuoverle senza un controllo, e non è stato rimosso niente.\",\"webSourceConfirmRemovalQuestion\":\"Il prossimo controllo toglie dalla knowledge base le pagine che la sitemap non elenca più, fino a {count}. Il loro contenuto resta nel database.\",\"unlinkWebSourceConfirm\":\"La sorgente smette di cercare pagine nuove. La cartella e le sue pagine restano, con il loro aggiornamento automatico.\",\"contactFormRecord\":\"L'agente ha mostrato il modulo di contatto. Se l'utente l'ha inviato, il contatto è in Contatti.\",\"contactFormRecordPrefilled\":\"L'agente ha mostrato il modulo di contatto con questi dati. Se l'utente l'ha inviato, il contatto è in Contatti.\",\"documentsEmptyTitle\":\"Ancora nessun documento\",\"documentsEmptyFolderTitle\":\"Questa cartella è vuota\",\"mcpServerToolsUnavailable\":\"Tool non disponibili\"}"),
1383
1391
  messagePart: {
1384
1392
  audioTranscribing: "Trascrizione dell'audio…",
1385
1393
  audioTranscript: "Trascrizione",
@@ -3149,13 +3157,21 @@ var Yn = {
3149
3157
  },
3150
3158
  member: { agentAccess: {
3151
3159
  hint: "Leave empty to let this member use every organization agent. Select agents to limit them to those only.",
3152
- managerHint: "Owners and admins can use every agent; their access cannot be restricted."
3160
+ managerHint: "Owners and admins can use every agent; their access cannot be restricted.",
3161
+ column: "Agents",
3162
+ all: "All",
3163
+ count: "{n} agent | {n} agents",
3164
+ none: "None",
3165
+ allTitle: "Can use every agent of the organization",
3166
+ managerTitle: "Owners and admins use every agent",
3167
+ noneTitle: "No agent reserved to the organization: those on their list were deleted or opened to everyone",
3168
+ readError: "The agents of this member could not be read: close the dialog and try again."
3153
3169
  } },
3154
3170
  memorySource: {
3155
3171
  explicit: "Explicit | Explicit",
3156
3172
  extracted: "Extracted | Extracted"
3157
3173
  },
3158
- message: /* @__PURE__ */ JSON.parse("{\"accountLinkAlreadyLinked\":\"This account is already linked to another user. Sign in with that user to unlink it first.\",\"accountLinkCancelled\":\"Linking was cancelled on the provider's page. Nothing was changed.\",\"accountLinkEmailMismatch\":\"You can only link accounts that use the same email as your profile.\",\"accountLinkErrorWithCode\":\"Unable to link the account (code: {code}). Try again or contact support with this code.\",\"accountLinkNotAllowed\":\"This provider cannot be linked to your profile: the account's email is not verified or linking is disabled.\",\"accountLinkUserInfo\":\"The provider did not return a usable profile, so no account was linked. Try again.\",\"accountUnlinked\":\"Account disconnected\",\"agentAccessDenied\":\"You do not have access to this agent\",\"agentAccessDeniedAction\":\"View available agents\",\"agentActivated\":\"Agent activated successfully\",\"agentDeactivated\":\"Agent deactivated successfully\",\"agentNotFound\":\"Agent not found\",\"agentsEmpty\":\"No agents yet. Create the first one to get started.\",\"analyzeChatError\":\"The analysis did not complete. Try again in a few minutes.\",\"analyzeChatInProgress\":\"Analyzing the conversation. A long conversation can take about a minute.\",\"analyzeChatSuccess\":\"Conversation analyzed successfully\",\"apiKeyCreatedForUser\":\"Shown only once: copy it and pass it on securely.\",\"apiKeysEmpty\":\"The keys you create for programmatic access appear here.\",\"apiToolsEmpty\":\"No API tools yet. Add the first one to let the agent call an external service.\",\"banSuccess\":\"User banned successfully\",\"blockChatSuccess\":\"Conversation blocked successfully\",\"bulkUnlinkAllDeleteConfirm\":\"{count} document(s) will be permanently deleted because they have no other linked agents. Do you want to proceed?\",\"bulkUnlinkMixedConfirm\":\"{unlinkCount} document(s) will be unlinked and {deleteCount} will be permanently deleted (they have no other linked agents). Do you want to proceed?\",\"cancelInvitationConfirm\":\"Are you sure you want to cancel the invitation for {email}?\",\"cancelInvitationSuccess\":\"Invitation cancelled successfully\",\"chatActionError\":\"The action did not complete. Try again in a few minutes.\",\"chatAnonymized\":\"The content of this conversation has been erased (GDPR): only aggregate metrics remain.\",\"chatErrorBadRequest\":\"An error occurred with the request. Start a new chat to continue.\",\"chatErrorContextWindow\":\"The conversation has become too long. Start a new chat to continue.\",\"chatErrorConversationBlocked\":\"This conversation has been blocked for policy violations.\",\"chatErrorCreditExhausted\":\"Service unavailable. Try again later.\",\"chatErrorGatewayDisabled\":\"This agent's model is not available: the organization does not use the platform AI gateway. An administrator can move the agent to one of the organization's own models.\",\"chatErrorGatewayPromptTraining\":\"Model \\\"{model}\\\" does not support the \\\"Disable prompt training\\\" option. Disable this setting in the agent's gateway configuration or choose a compatible model.\",\"chatErrorGatewayZdr\":\"Model \\\"{model}\\\" does not support the \\\"Zero Data Retention\\\" option. Disable ZDR in the agent's gateway configuration or choose a compatible model.\",\"chatErrorGeneric\":\"An error occurred. Start a new chat if the problem persists. Retrying in {seconds}…\",\"chatErrorInternalServer\":\"A server error occurred. Start a new chat to continue.\",\"chatErrorModelUnavailable\":\"This agent's model is not available right now: the endpoint it runs on is switched off or no longer serves it. An administrator can switch it back on or move the agent to another model.\",\"chatErrorNotFound\":\"The conversation is no longer available. Start a new chat to continue.\",\"chatErrorOriginNotAllowed\":\"The request origin is not allowed. Contact the system administrator.\",\"chatErrorRateLimit\":\"The rate limit has been exceeded. Retrying in {seconds} seconds…\",\"chatErrorRetrying\":\"Retrying in {seconds} seconds…\",\"checkYourEmail\":\"Check your email inbox\",\"confirm\":\"Are you sure you want to proceed?\",\"confirmRefillCredits\":\"Are you sure you want to refill the credit of {amount} €?\",\"contentTruncated\":\"Content truncated. Total characters: {total}\",\"copied\":\"Copied to clipboard\",\"crawlError\":\"Error during crawling\",\"createFolderSuccess\":\"Folder created successfully\",\"defaultAgentWelcome\":\"Hello! How can I help you today?\",\"defaultPrivacyPolicyNotice\":\"By sending the request you accept our [Privacy Policy](https://www.iubenda.com/privacy-policy/46350192).\",\"deleteAgentConfirm\":\"Its folders are deleted. A document no other agent uses is deleted, a shared one stays with the other agents.\",\"deleteAllMemoriesConfirm\":\"They go for good, semantic search included.\",\"deleteAllNotificationsConfirm\":\"Delete every notification?\",\"deleteBulkDocumentConfirm\":\"They are removed from every agent linked to them and go to the trash, where they can be restored.\",\"deleteDocumentConfirm\":\"It is removed from every agent linked to it and goes to the trash, where it can be restored.\",\"deleteDocumentConfirmWithAgents\":\"It goes to the trash, where it can be restored, and is removed from the following agents:{agents}\",\"deleteError\":\"The deletion failed. Try again.\",\"deleteFolderConfirm\":\"Its documents are removed from this agent. A document no other agent uses is deleted.\",\"deleteFolderSuccess\":\"Folder deleted successfully\",\"deleteMyConversationsConfirm\":\"This cannot be undone.\",\"deleteNotificationConfirm\":\"Delete this notification?\",\"deleteProfileBlockedSoleOwner\":\"You are the sole owner of {organizations}. Transfer ownership or delete the organizations before deleting your account.\",\"deleteProfileConfirm\":\"You are about to permanently delete your account: your profile will be anonymized and the content of your conversations erased. This action cannot be undone.\",\"deleteProfileDescription\":\"Anonymize your account and erase the content of your conversations (right to be forgotten).\",\"diagramRenderError\":\"Could not render diagram.\",\"documentRefreshPausedReason\":\"The page no longer responds, so the automatic update is paused. Update now to try again.\",\"documentRefreshSet\":\"Automatic update set on {updated} documents, {skipped} skipped because they are not web pages\",\"documentRefreshStarted\":\"Update started on {queued} documents, {skipped} skipped\",\"documentsEmpty\":\"Nothing in this folder yet. Add documents from the Create menu, or start with a folder.\",\"documentsEmptyManaged\":\"No synced files in this folder. Its content comes from the connected source: if you have just linked it, the first import can take a few minutes.\",\"documentsNoMatch\":\"No document matches the search or the filters. Reset them to see everything.\",\"documentSourceLinked\":\"Folder linked. The first import starts shortly.\",\"documentSourceNothingHere\":\"Nothing in here.\",\"documentSourceStale\":\"The state of this folder is not up to date: the last read failed.\",\"documentSourceUnlinked\":\"Folder unlinked. Its documents stay, and can now be edited like any other.\",\"embeddingActivated\":\"Embedding saved: the endpoint serves the declared model\",\"embeddingBackToPlatform\":\"The vectors are computed on the platform again\",\"embeddingIndexNotUpdated\":\"The progress stopped updating.\",\"embeddingRemoved\":\"Embedding removed from the endpoint\",\"empty\":\"No items found\",\"endpointActivated\":\"Endpoint activated successfully\",\"endpointDeactivated\":\"Endpoint deactivated successfully\",\"endpointsEmpty\":\"No endpoints yet. Create the first one to expose the agent over HTTP.\",\"error\":\"Error\",\"errorRetry\":\"Something went wrong. Try again.\",\"exportError\":\"Error while exporting data\",\"exportFailed\":\"The data export failed. Try again later.\",\"exportMyDataDescription\":\"Download a complete copy of your personal data as a ZIP archive (GDPR Art. 15 and 20).\",\"exportRequested\":\"We are preparing your archive: you will receive an email with the download link.\",\"exportSuccess\":\"CSV exported successfully\",\"feedbackSubmitError\":\"Submission failed. Try again.\",\"feedbackSubmittedMessage\":\"Your feedback has been submitted successfully.\",\"feedbackSubmittedTitle\":\"Thank you!\",\"feedbacksEmpty\":\"Feedback that users leave on the agent's answers will appear here.\",\"fileAlreadyImported\":\"Already imported\",\"fileAlreadyImportedExistingList\":\"The following files are already present in the organization:\\n{names}\",\"fileAlreadyImportedLink\":\"This file has already been imported. Do you want to link the existing document to the current agent or create a new one?\",\"fileAlreadyImportedNewList\":\"The following files are new and will be imported normally:\\n{names}\",\"fileAlreadyImportedQuestion\":\"Do you want to link the existing files to the current agent?\",\"fileAlreadyLinkedToAgent\":\"The following files are already linked to the current agent:\\n{names}\",\"fileLimitPerChat\":\"You have reached the limit of {max} files for this conversation.\",\"fileLimitPerMessage\":\"You can attach at most {max} files per message.\",\"foldersEmpty\":\"No folders yet. Create the first one from the documents page to organize them.\",\"formRenderError\":\"The form could not be shown. Ask again and the agent will send it.\",\"gdprRequestsEmpty\":\"Export or deletion requests for this user appear here.\",\"geolocationPermissionDenied\":\"Location access denied. Allow it in your browser settings.\",\"geolocationUnavailable\":\"Location unavailable. Try again or enter your location manually.\",\"getMcpServerInfoError\":\"An error occurred while loading the tools.\",\"importError\":\"Error during import\",\"importSuccess\":\"{count} documents imported successfully\",\"importing\":\"Importing…\",\"info\":\"Information\",\"insufficientCredit\":\"Insufficient credit. Try again later.\",\"insufficientCreditMessage\":\"Your credit is insufficient to complete this operation. Contact the system administrator for more information.\",\"integrationConnected\":\"Connected successfully.\",\"integrationCreated\":\"Integration created successfully\",\"integrationDisabled\":\"Integration disabled\",\"integrationDisconnected\":\"Connection removed.\",\"integrationDisconnectConfirm\":\"The folders it keeps in sync are unlinked.\",\"integrationEnabled\":\"Integration enabled\",\"integrationOAuthDenied\":\"The connection was refused, or a Microsoft 365 administrator has not approved it yet.\",\"integrationOAuthFailed\":\"The connection did not succeed.\",\"integrationOAuthStartFailed\":\"The connection could not be started.\",\"integrationRemoveConfirm\":\"This integration's configuration is removed.\",\"integrationTestFailed\":\"Connection test failed: {error}\",\"integrationTestSuccess\":\"Connection verified successfully\",\"integrationUpdated\":\"Integration updated successfully\",\"invalidJson\":\"The input is not valid JSON\",\"invitationAccepted\":\"Invitation accepted\",\"invitationAlreadyHandled\":\"Invitation already handled\",\"invitationDeclined\":\"Invitation declined\",\"invitationToJoinOrganization\":\"You have been invited to join\",\"invitationsEmpty\":\"No pending invitations. Invite people from the members page.\",\"leadSubmitError\":\"Failed to submit. Try again.\",\"leadSubmittedMessage\":\"Your information has been submitted successfully.\",\"leadSubmittedTitle\":\"Thank you!\",\"leadsEmpty\":\"Leads collected by the agent during conversations will appear here.\",\"leftOrganization\":\"You have successfully left the organization\",\"loadConversationsError\":\"Failed to load conversations\",\"loading\":\"Loading…\",\"loadingError\":\"Error while loading\",\"mcpConnectionConnectedAt\":\"Signed in on {date}\",\"mcpConnectionDisconnectDescription\":\"The agents will no longer use your {name} account. The next time you need it, the agent will ask you to sign in, and you can choose a different account.\",\"mcpConnectionDisconnectQuestion\":\"Disconnect {name}?\",\"mcpConnectionDisconnected\":\"{name} account disconnected\",\"mcpConnectionsDescription\":\"The services you signed in to with your account. Disconnect one to stop the agents from using it, or to sign in again with a different account.\",\"mcpConnectionsAvailableDescription\":\"The integrations of the agents you use that you have not signed in to yet. You can connect them now, without waiting for the agent to ask.\",\"mcpConnectionConnected\":\"{name} account connected\",\"mcpConnectionConnectFailed\":\"Signing in to {name} did not work. Try again, and if it keeps failing, tell whoever runs the agent.\",\"mcpConnectionUsedBy\":\"Used by {agents}\",\"mcpConnectionUsedByNone\":\"No agent uses it\",\"noMcpConnections\":\"No connected integrations\",\"userMcpConnectionsEmpty\":\"This user has not signed in to any integration with their own account.\",\"mcpConnectionRevokeQuestion\":\"Revoke {user}'s sign-in to {name}?\",\"mcpConnectionRevokeDescription\":\"The agents will no longer use their {name} account. The provider is asked to revoke it too, where it supports that; otherwise the authorization stays valid there until it expires. To use it again, {user} has to sign in themselves. They will receive a notification.\",\"mcpConnectionRevokedAtProvider\":\"Sign-in to {name} revoked, at the provider too\",\"mcpConnectionRevokedHere\":\"Sign-in to {name} revoked here. The provider did not confirm the revocation: the authorization may stay valid there until it expires.\",\"mcpServerCheckError\":\"Error while checking MCP Server: {error}\",\"mcpServerCheckSuccess\":\"MCP Server check successful\",\"mcpServerInvalidEndpoint\":\"This URL does not point to an MCP endpoint: the server replied with a web page. Check the path, MCP servers usually expose it under /mcp.\",\"mcpServersEmpty\":\"No MCP servers yet. Connect the first one to give the agent new tools.\",\"membersEmpty\":\"No members yet. Invite the first one to get started.\",\"memoriesEmpty\":\"Memories the agent saves about this user during conversations will appear here.\",\"memoryNotSynced\":\"Memory not synced with semantic search: it is not considered in answers until the repair sweep heals it.\",\"modelDiscoveryUnavailable\":\"This endpoint does not provide the list of its models: enter the ids by hand.\",\"modelDiscoveryFailed\":\"We could not read the list of models from the endpoint: only the models already saved are shown.\",\"modelPricesUnchanged\":\"No price changed.\",\"modelPricesUpdated\":\"Updated the price of one model: {models}. | Updated the prices of {count} models: {models}.\",\"modelProviderDeleted\":\"Endpoint deleted.\",\"moveDocumentSuccess\":\"Document moved successfully\",\"noActiveSessions\":\"No other active sessions\",\"noApiKeys\":\"No API keys\",\"noChats\":\"No chat available\",\"noConnectedAccounts\":\"No connected accounts\",\"noConversations\":\"No conversations found\",\"noConversationsHint\":\"Start a new chat to see it appear here.\",\"noCreditsData\":\"No credit data available\",\"noEndpointLogs\":\"No calls to this endpoint yet\",\"noEndpointModels\":\"No model available: the endpoint listed none.\",\"modelRemoved\":\"Model removed.\",\"noGdprRequests\":\"No GDPR requests\",\"noLinkedAgents\":\"No linked agents\",\"noNotifications\":\"No notifications\",\"noOptions\":\"No options\",\"noOrganizations\":\"No organizations\",\"noResults\":\"No results\",\"noSearchResults\":\"Nothing matches your search. Clear it to see everything.\",\"notificationsEmpty\":\"No notifications sent yet. Create the first one to reach your users.\",\"oauthConfigIncomplete\":\"OAuth configuration incomplete. Set the Client ID in the MCP server settings.\",\"oauthConnected\":\"OAuth authorization completed successfully\",\"oauthError\":\"Error during OAuth authorization\",\"organizationDisconnected\":\"Neither the platform gateway nor an endpoint of its own serves this organization, so its agents do not answer.\",\"organizationMembersEmpty\":\"No members yet. Add the first one to get started.\",\"organizationNotSelected\":\"No organization selected\",\"organizationsEmpty\":\"No organizations yet. Create the first one to get started.\",\"pageNotFound\":\"Page not found\",\"passwordChangeSuccess\":\"Password changed successfully\",\"passwordResetSuccess\":\"Password reset. Every session of the account has been closed: sign in with the new password.\",\"profileOrganizationsEmpty\":\"The organizations you belong to appear here.\",\"readError\":\"Error while reading\",\"reasoningAgent\":\"This is a reasoning agent. It is not designed to maintain the conversation history, each message is processed independently.\",\"recoverPasswordSuccess\":\"Recovery email sent successfully\",\"refillFailed\":\"Refill failed. Try again later.\",\"refillSuccess\":\"Refill completed successfully\",\"refreshSuccess\":\"Refresh completed successfully\",\"releaseNotesEmpty\":\"No release notes published yet. Updates will be listed here as they ship.\",\"removeSuccess\":\"Removal completed successfully\",\"renameFolderSuccess\":\"Folder renamed successfully\",\"revisedAnswersEmpty\":\"No revised answers yet. Create the first one to teach the agent a better reply.\",\"selectedCount\":\"{count} of {total} selected\",\"sendInvitationConfirm\":\"Are you sure you want to resend the invitation to {email}?\",\"sessionRevoked\":\"Session signed out\",\"sessionsEmpty\":\"Signing in from another device or browser opens a new session, listed here.\",\"setPasswordDescription\":\"For now you sign in only through a connected account. Set a password to sign in with email and password too: we will email you a link to create it. Creating it closes every open session, this one included.\",\"setPasswordLinkSent\":\"We sent the link to {email}.\",\"sharedSuccess\":\"Document shared successfully\",\"sitemapUrlRequired\":\"Sitemap URL is required\",\"startUrlRequired\":\"Start URL is required\",\"subAgentsEmpty\":\"Connect an agent to delegate part of the conversation to it.\",\"submitError\":\"Error while saving\",\"submitSuccess\":\"Save completed successfully\",\"success\":\"Success\",\"testExecutionError\":\"Error executing test\",\"toolNameAutoGenerated\":\"The tool name will be generated automatically\",\"typeToSearch\":\"Start typing to search…\",\"unauthorized\":\"You do not have permission to manage channels.\",\"unbanSuccess\":\"User unbanned successfully\",\"unblockChatSuccess\":\"Conversation unblocked successfully\",\"unlinkAgentConfirm\":\"The document stays available to the other agents linked to it.\",\"unlinkDocumentConfirm\":\"It stays available to the other agents linked to it.\",\"unlinkLastAgentDeleteConfirm\":\"The document is permanently deleted, because no other agent is linked to it.\",\"unlinkSuccess\":\"Document unlinked successfully\",\"unlinkSyncedFolderConfirm\":\"Syncing stops. The folder and its documents stay with the agent and can be edited like any other from now on: to remove them, delete the folder.\",\"unsavedChanges\":\"Save or discard your changes first\",\"urlAlreadyImported\":\"Already imported\",\"urlAlreadyImportedLink\":\"This URL has already been imported. Do you want to link it to the current agent?\",\"userApiKeysEmpty\":\"Keys this user creates from their profile for programmatic access will appear here.\",\"userChatsEmpty\":\"Conversations this user has with any agent will appear here.\",\"userOrganizationsEmpty\":\"This user does not belong to any organization yet. Add the first one.\",\"userUpdateSuccess\":\"User profile updated successfully\",\"usersEmpty\":\"No users yet. Create the first one to get started.\",\"voiceCancelled\":\"I have cancelled.\",\"voiceConfirmed\":\"I confirm.\",\"voiceConnecting\":\"Connecting…\",\"voiceConnectionDone\":\"I have completed the connection.\",\"voiceFailed\":\"The voice session stopped\",\"voiceInterrupted\":\"Try again, or continue in writing.\",\"voiceListening\":\"Listening\",\"voiceLocationRefused\":\"I would rather not share my location.\",\"voiceLocationShared\":\"My location is {place}.\",\"voiceMuted\":\"Microphone muted\",\"voiceNoAnswer\":\"The agent could not produce an answer for this call. Try again, or continue in writing.\",\"voiceSpeaking\":\"The agent is speaking\",\"voiceTookTooLong\":\"The answer took too long for the call. Try again, or continue in writing: the answer will appear here as soon as it is ready.\",\"warning\":\"Warning\",\"webSourceCreated\":\"Source created: the folder “{name}” will receive new pages.\",\"webSourceCreateError\":\"The source could not be created, and no page was imported.\",\"webSourceEditable\":\"Discovered pages stay editable. Unlinking the source leaves them where they are, with their automatic refresh.\",\"webSourceRemovalHeld\":\"The sitemap no longer lists {count} pages: too many at once to remove without a check, so nothing was removed.\",\"webSourceConfirmRemovalQuestion\":\"The next check takes out of the knowledge base the pages the sitemap no longer lists, up to {count}. Their content stays in the database.\",\"unlinkWebSourceConfirm\":\"The source stops looking for new pages. The folder and its pages stay, with their automatic refresh.\"}"),
3174
+ message: /* @__PURE__ */ JSON.parse("{\"accountLinkAlreadyLinked\":\"This account is already linked to another user. Sign in with that user to unlink it first.\",\"accountLinkCancelled\":\"Linking was cancelled on the provider's page. Nothing was changed.\",\"accountLinkEmailMismatch\":\"You can only link accounts that use the same email as your profile.\",\"accountLinkErrorWithCode\":\"Unable to link the account (code: {code}). Try again or contact support with this code.\",\"accountLinkNotAllowed\":\"This provider cannot be linked to your profile: the account's email is not verified or linking is disabled.\",\"accountLinkUserInfo\":\"The provider did not return a usable profile, so no account was linked. Try again.\",\"accountUnlinked\":\"Account disconnected\",\"agentAccessDenied\":\"You do not have access to this agent\",\"agentAccessDeniedAction\":\"View available agents\",\"agentActivated\":\"Agent activated successfully\",\"agentDeactivated\":\"Agent deactivated successfully\",\"agentNotFound\":\"Agent not found\",\"agentsEmpty\":\"No agents yet. Create the first one to get started.\",\"analyzeChatError\":\"The analysis did not complete. Try again in a few minutes.\",\"analyzeChatInProgress\":\"Analyzing the conversation. A long conversation can take about a minute.\",\"analyzeChatSuccess\":\"Conversation analyzed successfully\",\"apiKeyCreatedForUser\":\"Shown only once: copy it and pass it on securely.\",\"apiKeysEmpty\":\"The keys you create for programmatic access appear here.\",\"apiToolsEmpty\":\"No API tools yet. Add the first one to let the agent call an external service.\",\"banSuccess\":\"User banned successfully\",\"blockChatSuccess\":\"Conversation blocked successfully\",\"bulkUnlinkAllDeleteConfirm\":\"{count} document(s) will be permanently deleted because they have no other linked agents. Do you want to proceed?\",\"bulkUnlinkMixedConfirm\":\"{unlinkCount} document(s) will be unlinked and {deleteCount} will be permanently deleted (they have no other linked agents). Do you want to proceed?\",\"cancelInvitationConfirm\":\"Are you sure you want to cancel the invitation for {email}?\",\"cancelInvitationSuccess\":\"Invitation cancelled successfully\",\"chatActionError\":\"The action did not complete. Try again in a few minutes.\",\"chatAnonymized\":\"The content of this conversation has been erased (GDPR): only aggregate metrics remain.\",\"chatErrorBadRequest\":\"An error occurred with the request. Start a new chat to continue.\",\"chatErrorContextWindow\":\"The conversation has become too long. Start a new chat to continue.\",\"chatErrorConversationBlocked\":\"This conversation has been blocked for policy violations.\",\"chatErrorCreditExhausted\":\"Service unavailable. Try again later.\",\"chatErrorGatewayDisabled\":\"This agent's model is not available: the organization does not use the platform AI gateway. An administrator can move the agent to one of the organization's own models.\",\"chatErrorGatewayPromptTraining\":\"Model \\\"{model}\\\" does not support the \\\"Disable prompt training\\\" option. Disable this setting in the agent's gateway configuration or choose a compatible model.\",\"chatErrorGatewayZdr\":\"Model \\\"{model}\\\" does not support the \\\"Zero Data Retention\\\" option. Disable ZDR in the agent's gateway configuration or choose a compatible model.\",\"chatErrorGeneric\":\"An error occurred. Start a new chat if the problem persists. Retrying in {seconds}…\",\"chatErrorInternalServer\":\"A server error occurred. Start a new chat to continue.\",\"chatErrorModelUnavailable\":\"This agent's model is not available right now: the endpoint it runs on is switched off or no longer serves it. An administrator can switch it back on or move the agent to another model.\",\"chatErrorNotFound\":\"The conversation is no longer available. Start a new chat to continue.\",\"chatErrorOriginNotAllowed\":\"The request origin is not allowed. Contact the system administrator.\",\"chatErrorRateLimit\":\"The rate limit has been exceeded. Retrying in {seconds} seconds…\",\"chatErrorRetrying\":\"Retrying in {seconds} seconds…\",\"checkYourEmail\":\"Check your email inbox\",\"confirm\":\"Are you sure you want to proceed?\",\"confirmRefillCredits\":\"Are you sure you want to refill the credit of {amount} €?\",\"contentTruncated\":\"Content truncated. Total characters: {total}\",\"copied\":\"Copied to clipboard\",\"crawlError\":\"Error during crawling\",\"createFolderSuccess\":\"Folder created successfully\",\"defaultAgentWelcome\":\"Hello! How can I help you today?\",\"defaultPrivacyPolicyNotice\":\"By sending the request you accept our [Privacy Policy](https://www.iubenda.com/privacy-policy/46350192).\",\"deleteAgentConfirm\":\"Its folders are deleted. A document no other agent uses is deleted, a shared one stays with the other agents.\",\"deleteAllMemoriesConfirm\":\"They go for good, semantic search included.\",\"deleteAllNotificationsConfirm\":\"Delete every notification?\",\"deleteBulkDocumentConfirm\":\"They are removed from every agent linked to them and go to the trash, where they can be restored.\",\"deleteDocumentConfirm\":\"It is removed from every agent linked to it and goes to the trash, where it can be restored.\",\"deleteDocumentConfirmWithAgents\":\"It goes to the trash, where it can be restored, and is removed from the following agents:{agents}\",\"deleteError\":\"The deletion failed. Try again.\",\"deleteFolderConfirm\":\"Its documents are removed from this agent. A document no other agent uses is deleted.\",\"deleteFolderSuccess\":\"Folder deleted successfully\",\"deleteMyConversationsConfirm\":\"This cannot be undone.\",\"deleteNotificationConfirm\":\"Delete this notification?\",\"deleteProfileBlockedSoleOwner\":\"You are the sole owner of {organizations}. Transfer ownership or delete the organizations before deleting your account.\",\"deleteProfileConfirm\":\"You are about to permanently delete your account: your profile will be anonymized and the content of your conversations erased. This action cannot be undone.\",\"deleteProfileDescription\":\"Anonymize your account and erase the content of your conversations (right to be forgotten).\",\"diagramRenderError\":\"Could not render diagram.\",\"documentRefreshPausedReason\":\"The page no longer responds, so the automatic update is paused. Update now to try again.\",\"documentRefreshSet\":\"Automatic update set on {updated} documents, {skipped} skipped because they are not web pages\",\"documentRefreshStarted\":\"Update started on {queued} documents, {skipped} skipped\",\"documentsEmpty\":\"Create a document or a folder here. To import from a website or a connected service, use the Create menu.\",\"documentsEmptyManaged\":\"No synced files in this folder. Its content comes from the connected source: if you have just linked it, the first import can take a few minutes.\",\"documentsNoMatch\":\"No document matches the search or the filters. Reset them to see everything.\",\"documentSourceLinked\":\"Folder linked. The first import starts shortly.\",\"documentSourceNothingHere\":\"Nothing in here.\",\"documentSourceStale\":\"The state of this folder is not up to date: the last read failed.\",\"documentSourceUnlinked\":\"Folder unlinked. Its documents stay, and can now be edited like any other.\",\"embeddingActivated\":\"Embedding saved: the endpoint serves the declared model\",\"embeddingBackToPlatform\":\"The vectors are computed on the platform again\",\"embeddingIndexNotUpdated\":\"The progress stopped updating.\",\"embeddingRemoved\":\"Embedding removed from the endpoint\",\"empty\":\"No items found\",\"endpointActivated\":\"Endpoint activated successfully\",\"endpointDeactivated\":\"Endpoint deactivated successfully\",\"endpointsEmpty\":\"No endpoints yet. Create the first one to expose the agent over HTTP.\",\"error\":\"Error\",\"errorRetry\":\"Something went wrong. Try again.\",\"exportError\":\"Error while exporting data\",\"exportFailed\":\"The data export failed. Try again later.\",\"exportMyDataDescription\":\"Download a complete copy of your personal data as a ZIP archive (GDPR Art. 15 and 20).\",\"exportRequested\":\"We are preparing your archive: you will receive an email with the download link.\",\"exportSuccess\":\"CSV exported successfully\",\"feedbackSubmitError\":\"Submission failed. Try again.\",\"feedbackSubmittedMessage\":\"Your feedback has been submitted successfully.\",\"feedbackSubmittedTitle\":\"Thank you!\",\"feedbacksEmpty\":\"Feedback that users leave on the agent's answers will appear here.\",\"fileAlreadyImported\":\"Already imported\",\"fileAlreadyImportedExistingList\":\"The following files are already present in the organization:\\n{names}\",\"fileAlreadyImportedLink\":\"This file has already been imported. Do you want to link the existing document to the current agent or create a new one?\",\"fileAlreadyImportedNewList\":\"The following files are new and will be imported normally:\\n{names}\",\"fileAlreadyImportedQuestion\":\"Do you want to link the existing files to the current agent?\",\"fileAlreadyLinkedToAgent\":\"The following files are already linked to the current agent:\\n{names}\",\"fileLimitPerChat\":\"You have reached the limit of {max} files for this conversation.\",\"fileLimitPerMessage\":\"You can attach at most {max} files per message.\",\"foldersEmpty\":\"No folders yet. Create the first one from the documents page to organize them.\",\"formRenderError\":\"The form could not be shown. Ask again and the agent will send it.\",\"gdprRequestsEmpty\":\"Export or deletion requests for this user appear here.\",\"geolocationPermissionDenied\":\"Location access denied. Allow it in your browser settings.\",\"geolocationUnavailable\":\"Location unavailable. Try again or enter your location manually.\",\"getMcpServerInfoError\":\"The server did not answer with its list of tools. Check that the address is right and that the server is reachable, then try again.\",\"importError\":\"Error during import\",\"importSuccess\":\"{count} documents imported successfully\",\"importing\":\"Importing…\",\"info\":\"Information\",\"insufficientCredit\":\"Insufficient credit. Try again later.\",\"insufficientCreditMessage\":\"Your credit is insufficient to complete this operation. Contact the system administrator for more information.\",\"integrationConnected\":\"Connected successfully.\",\"integrationCreated\":\"Integration created successfully\",\"integrationDisabled\":\"Integration disabled\",\"integrationDisconnected\":\"Connection removed.\",\"integrationDisconnectConfirm\":\"The folders it keeps in sync are unlinked.\",\"integrationEnabled\":\"Integration enabled\",\"integrationOAuthDenied\":\"The connection was refused, or a Microsoft 365 administrator has not approved it yet.\",\"integrationOAuthFailed\":\"The connection did not succeed.\",\"integrationOAuthStartFailed\":\"The connection could not be started.\",\"integrationRemoveConfirm\":\"This integration's configuration is removed.\",\"integrationTestFailed\":\"Connection test failed: {error}\",\"integrationTestSuccess\":\"Connection verified successfully\",\"integrationUpdated\":\"Integration updated successfully\",\"invalidJson\":\"The input is not valid JSON\",\"invitationAccepted\":\"Invitation accepted\",\"invitationAlreadyHandled\":\"Invitation already handled\",\"invitationDeclined\":\"Invitation declined\",\"invitationToJoinOrganization\":\"You have been invited to join\",\"invitationsEmpty\":\"No pending invitations. Invite people from the members page.\",\"leadSubmitError\":\"Failed to submit. Try again.\",\"leadSubmittedMessage\":\"Your information has been submitted successfully.\",\"leadSubmittedTitle\":\"Thank you!\",\"leadsEmpty\":\"Leads collected by the agent during conversations will appear here.\",\"leftOrganization\":\"You have successfully left the organization\",\"loadConversationsError\":\"Failed to load conversations\",\"loading\":\"Loading…\",\"loadingError\":\"Error while loading\",\"mcpConnectionConnectedAt\":\"Signed in on {date}\",\"mcpConnectionDisconnectDescription\":\"The agents will no longer use your {name} account. The next time you need it, the agent will ask you to sign in, and you can choose a different account.\",\"mcpConnectionDisconnectQuestion\":\"Disconnect {name}?\",\"mcpConnectionDisconnected\":\"{name} account disconnected\",\"mcpConnectionsDescription\":\"The services you signed in to with your account. Disconnect one to stop the agents from using it, or to sign in again with a different account.\",\"mcpConnectionsAvailableDescription\":\"The integrations of the agents you use that you have not signed in to yet. You can connect them now, without waiting for the agent to ask.\",\"mcpConnectionConnected\":\"{name} account connected\",\"mcpConnectionConnectFailed\":\"Signing in to {name} did not work. Try again, and if it keeps failing, tell whoever runs the agent.\",\"mcpConnectionUsedBy\":\"Used by {agents}\",\"mcpConnectionUsedByNone\":\"No agent uses it\",\"noMcpConnections\":\"No connected integrations\",\"userMcpConnectionsEmpty\":\"This user has not signed in to any integration with their own account.\",\"mcpConnectionRevokeQuestion\":\"Revoke {user}'s sign-in to {name}?\",\"mcpConnectionRevokeDescription\":\"The agents will no longer use their {name} account. The provider is asked to revoke it too, where it supports that; otherwise the authorization stays valid there until it expires. To use it again, {user} has to sign in themselves. They will receive a notification.\",\"mcpConnectionRevokedAtProvider\":\"Sign-in to {name} revoked, at the provider too\",\"mcpConnectionRevokedHere\":\"Sign-in to {name} revoked here. The provider did not confirm the revocation: the authorization may stay valid there until it expires.\",\"mcpServerCheckError\":\"Error while checking MCP Server: {error}\",\"mcpServerCheckSuccess\":\"MCP Server check successful\",\"mcpServerInvalidEndpoint\":\"This URL does not point to an MCP endpoint: the server replied with a web page. Check the path, MCP servers usually expose it under /mcp.\",\"mcpServersEmpty\":\"No MCP servers yet. Connect the first one to give the agent new tools.\",\"membersEmpty\":\"No members yet. Invite the first one to get started.\",\"memoriesEmpty\":\"Memories the agent saves about this user during conversations will appear here.\",\"memoryNotSynced\":\"Memory not synced with semantic search: it is not considered in answers until the repair sweep heals it.\",\"modelDiscoveryUnavailable\":\"This endpoint does not provide the list of its models: enter the ids by hand.\",\"modelDiscoveryFailed\":\"We could not read the list of models from the endpoint: only the models already saved are shown.\",\"modelPricesUnchanged\":\"No price changed.\",\"modelPricesUpdated\":\"Updated the price of one model: {models}. | Updated the prices of {count} models: {models}.\",\"modelProviderDeleted\":\"Endpoint deleted.\",\"moveDocumentSuccess\":\"Document moved successfully\",\"noActiveSessions\":\"No other active sessions\",\"noApiKeys\":\"No API keys\",\"noChats\":\"No chat available\",\"noConnectedAccounts\":\"No connected accounts\",\"noConversations\":\"No conversations found\",\"noConversationsHint\":\"Start a new chat to see it appear here.\",\"noCreditsData\":\"No credit data available\",\"noEndpointLogs\":\"No calls to this endpoint yet\",\"noEndpointModels\":\"No model available: the endpoint listed none.\",\"modelRemoved\":\"Model removed.\",\"noGdprRequests\":\"No GDPR requests\",\"noLinkedAgents\":\"No linked agents\",\"noNotifications\":\"No notifications\",\"noOptions\":\"No options\",\"noOrganizations\":\"No organizations\",\"noResults\":\"No results\",\"noSearchResults\":\"Nothing matches your search. Clear it to see everything.\",\"notificationsEmpty\":\"No notifications sent yet. Create the first one to reach your users.\",\"oauthConfigIncomplete\":\"OAuth configuration incomplete. Set the Client ID in the MCP server settings.\",\"oauthConnected\":\"OAuth authorization completed successfully\",\"oauthError\":\"Error during OAuth authorization\",\"organizationDisconnected\":\"Neither the platform gateway nor an endpoint of its own serves this organization, so its agents do not answer.\",\"organizationMembersEmpty\":\"No members yet. Add the first one to get started.\",\"organizationNotSelected\":\"No organization selected\",\"organizationsEmpty\":\"No organizations yet. Create the first one to get started.\",\"pageNotFound\":\"Page not found\",\"passwordChangeSuccess\":\"Password changed successfully\",\"passwordResetSuccess\":\"Password reset. Every session of the account has been closed: sign in with the new password.\",\"profileOrganizationsEmpty\":\"The organizations you belong to appear here.\",\"readError\":\"Error while reading\",\"reasoningAgent\":\"This is a reasoning agent. It is not designed to maintain the conversation history, each message is processed independently.\",\"recoverPasswordSuccess\":\"Recovery email sent successfully\",\"refillFailed\":\"Refill failed. Try again later.\",\"refillSuccess\":\"Refill completed successfully\",\"refreshSuccess\":\"Refresh completed successfully\",\"releaseNotesEmpty\":\"No release notes published yet. Updates will be listed here as they ship.\",\"removeSuccess\":\"Removal completed successfully\",\"renameFolderSuccess\":\"Folder renamed successfully\",\"revisedAnswersEmpty\":\"No revised answers yet. Create the first one to teach the agent a better reply.\",\"selectedCount\":\"{count} of {total} selected\",\"sendInvitationConfirm\":\"Are you sure you want to resend the invitation to {email}?\",\"sessionRevoked\":\"Session signed out\",\"sessionsEmpty\":\"Signing in from another device or browser opens a new session, listed here.\",\"setPasswordDescription\":\"For now you sign in only through a connected account. Set a password to sign in with email and password too: we will email you a link to create it. Creating it closes every open session, this one included.\",\"setPasswordLinkSent\":\"We sent the link to {email}.\",\"sharedSuccess\":\"Document shared successfully\",\"sitemapUrlRequired\":\"Sitemap URL is required\",\"startUrlRequired\":\"Start URL is required\",\"subAgentsEmpty\":\"Connect an agent to delegate part of the conversation to it.\",\"submitError\":\"Error while saving\",\"submitSuccess\":\"Save completed successfully\",\"success\":\"Success\",\"testExecutionError\":\"Error executing test\",\"toolNameAutoGenerated\":\"The tool name will be generated automatically\",\"typeToSearch\":\"Start typing to search…\",\"unauthorized\":\"You do not have permission to manage channels.\",\"unbanSuccess\":\"User unbanned successfully\",\"unblockChatSuccess\":\"Conversation unblocked successfully\",\"unlinkAgentConfirm\":\"The document stays available to the other agents linked to it.\",\"unlinkDocumentConfirm\":\"It stays available to the other agents linked to it.\",\"unlinkLastAgentDeleteConfirm\":\"The document is permanently deleted, because no other agent is linked to it.\",\"unlinkSuccess\":\"Document unlinked successfully\",\"unlinkSyncedFolderConfirm\":\"Syncing stops. The folder and its documents stay with the agent and can be edited like any other from now on: to remove them, delete the folder.\",\"unsavedChanges\":\"Save or discard your changes first\",\"urlAlreadyImported\":\"Already imported\",\"urlAlreadyImportedLink\":\"This URL has already been imported. Do you want to link it to the current agent?\",\"userApiKeysEmpty\":\"Keys this user creates from their profile for programmatic access will appear here.\",\"userChatsEmpty\":\"Conversations this user has with any agent will appear here.\",\"userOrganizationsEmpty\":\"This user does not belong to any organization yet. Add the first one.\",\"userUpdateSuccess\":\"User profile updated successfully\",\"usersEmpty\":\"No users yet. Create the first one to get started.\",\"voiceCancelled\":\"I have cancelled.\",\"voiceConfirmed\":\"I confirm.\",\"voiceConnecting\":\"Connecting…\",\"voiceConnectionDone\":\"I have completed the connection.\",\"voiceFailed\":\"The voice session stopped\",\"voiceInterrupted\":\"Try again, or continue in writing.\",\"voiceListening\":\"Listening\",\"voiceLocationRefused\":\"I would rather not share my location.\",\"voiceLocationShared\":\"My location is {place}.\",\"voiceMuted\":\"Microphone muted\",\"voiceNoAnswer\":\"The agent could not produce an answer for this call. Try again, or continue in writing.\",\"voiceSpeaking\":\"The agent is speaking\",\"voiceTookTooLong\":\"The answer took too long for the call. Try again, or continue in writing: the answer will appear here as soon as it is ready.\",\"warning\":\"Warning\",\"webSourceCreated\":\"Source created: the folder “{name}” will receive new pages.\",\"webSourceCreateError\":\"The source could not be created, and no page was imported.\",\"webSourceEditable\":\"Discovered pages stay editable. Unlinking the source leaves them where they are, with their automatic refresh.\",\"webSourceRemovalHeld\":\"The sitemap no longer lists {count} pages: too many at once to remove without a check, so nothing was removed.\",\"webSourceConfirmRemovalQuestion\":\"The next check takes out of the knowledge base the pages the sitemap no longer lists, up to {count}. Their content stays in the database.\",\"unlinkWebSourceConfirm\":\"The source stops looking for new pages. The folder and its pages stay, with their automatic refresh.\",\"contactFormRecord\":\"The agent showed the contact form. If the user sent it, the contact is in Contacts.\",\"contactFormRecordPrefilled\":\"The agent showed the contact form with these details. If the user sent it, the contact is in Contacts.\",\"documentsEmptyTitle\":\"No documents yet\",\"documentsEmptyFolderTitle\":\"This folder is empty\",\"mcpServerToolsUnavailable\":\"Tools not available\"}"),
3159
3175
  messagePart: {
3160
3176
  audioTranscribing: "Transcribing the audio…",
3161
3177
  audioTranscript: "Transcript",
@@ -4318,7 +4334,7 @@ async function nr({ response: e }) {
4318
4334
  }
4319
4335
  //#endregion
4320
4336
  //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.24_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_15de8134c9a21d6e417d645781533ea5/node_modules/@volverjs/ui-vue/dist/index.es.js
4321
- U();
4337
+ H();
4322
4338
  var rr = /* @__PURE__ */ RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), ir = /* @__PURE__ */ RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), ar = /* @__PURE__ */ RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), or = /[^\p{L}\d]+/giu, sr = "$1\0$2", cr = "";
4323
4339
  function lr(e) {
4324
4340
  let t = e.trim();
@@ -4401,7 +4417,7 @@ var vr = class {
4401
4417
  _iconsProvider = "vv";
4402
4418
  _nuxt = !1;
4403
4419
  _experimentalFeatures = {};
4404
- defaults = G({});
4420
+ defaults = W({});
4405
4421
  constructor({ fetchWithCredentials: e, fetchOptions: t, iconsProvider: n, nuxt: r, iconsCollections: i, defaults: a, experimentalFeatures: o } = {}) {
4406
4422
  t && (this._fetchOptions = t), e && (this._fetchOptions = {
4407
4423
  ...this._fetchOptions,
@@ -9572,7 +9588,7 @@ var ld = {
9572
9588
  };
9573
9589
  //#endregion
9574
9590
  //#region ../../node_modules/.pnpm/swrv@1.2.0_vue@3.5.44_typescript@6.0.3_/node_modules/swrv/esm/use-swrv.js
9575
- U(), j();
9591
+ H(), j();
9576
9592
  var ud = function() {
9577
9593
  return ud = Object.assign || function(e) {
9578
9594
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
@@ -9770,13 +9786,13 @@ var Sd = function(e, t, n, r) {
9770
9786
  function Cd() {
9771
9787
  for (var e = this, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
9772
9788
  var r, i, a = ud({}, vd), o = !1, s = !1;
9773
- if (!De()) return console.error("useSWRV must be called inside setup() or an active effectScope()."), null;
9789
+ if (!Oe()) return console.error("useSWRV must be called inside setup() or an active effectScope()."), null;
9774
9790
  var c = typeof window > "u" || typeof document > "u";
9775
9791
  t.length >= 1 && (r = t[0]), t.length >= 2 && (i = t[1]), t.length > 2 && (a = ud(ud({}, a), t[2]));
9776
- var l = c ? a.serverTTL : a.ttl, u = typeof r == "function" ? r : G(r);
9792
+ var l = c ? a.serverTTL : a.ttl, u = typeof r == "function" ? r : W(r);
9777
9793
  i === void 0 && (i = a.fetcher);
9778
9794
  var d = null;
9779
- d ||= ge({
9795
+ d ||= _e({
9780
9796
  data: void 0,
9781
9797
  error: void 0,
9782
9798
  isValidating: !0,
@@ -9846,7 +9862,7 @@ function Cd() {
9846
9862
  };
9847
9863
  a.refreshInterval && (m = setTimeout(h, a.refreshInterval)), a.revalidateOnFocus && (document.addEventListener("visibilitychange", p, !1), window.addEventListener("focus", p, !1));
9848
9864
  }
9849
- he(function() {
9865
+ ge(function() {
9850
9866
  o = !0, m &&= (clearTimeout(m), null), !c && a.revalidateOnFocus && (document.removeEventListener("visibilitychange", p, !1), window.removeEventListener("focus", p, !1));
9851
9867
  var e = gd.get(u.value);
9852
9868
  e && (e.data = e.data.filter(function(e) {
@@ -9855,7 +9871,7 @@ function Cd() {
9855
9871
  });
9856
9872
  try {
9857
9873
  P(u, function(e) {
9858
- Oe(u) || (u.value = e), d.key = e, d.isValidating = !!e, yd(u.value, d, l), !c && !s && u.value && f(), s = !1;
9874
+ ke(u) || (u.value = e), d.key = e, d.isValidating = !!e, yd(u.value, d, l), !c && !s && u.value && f(), s = !1;
9859
9875
  }, { immediate: !0 });
9860
9876
  } catch {}
9861
9877
  return ud(ud({}, Ie(d)), { mutate: function(e, t) {
@@ -9870,16 +9886,16 @@ function wd(e) {
9870
9886
  var Td = Cd;
9871
9887
  //#endregion
9872
9888
  //#region ../../node_modules/.pnpm/@ai-sdk+vue@4.0.140_vue@3.5.44_typescript@6.0.3__zod@4.6.7/node_modules/@ai-sdk/vue/dist/index.js
9873
- U(), Td.default, Td.default;
9889
+ H(), Td.default, Td.default;
9874
9890
  var Ed = class {
9875
9891
  constructor(e) {
9876
- this.statusRef = G("ready"), this.errorRef = G(void 0), this.pushMessage = (e) => {
9892
+ this.statusRef = W("ready"), this.errorRef = W(void 0), this.pushMessage = (e) => {
9877
9893
  this.messagesRef.value = [...this.messagesRef.value, e];
9878
9894
  }, this.popMessage = () => {
9879
9895
  this.messagesRef.value = this.messagesRef.value.slice(0, -1);
9880
9896
  }, this.replaceMessage = (e, t) => {
9881
9897
  this.messagesRef.value[e] = { ...t };
9882
- }, this.snapshot = (e) => e, this.messagesRef = G(e ?? []);
9898
+ }, this.snapshot = (e) => e, this.messagesRef = W(e ?? []);
9883
9899
  }
9884
9900
  get messages() {
9885
9901
  return this.messagesRef.value;
@@ -9909,7 +9925,7 @@ var Ed = class {
9909
9925
  };
9910
9926
  //#endregion
9911
9927
  //#region ../../packages/composable/src/chatbot/useChatbotStore.ts
9912
- j(), U();
9928
+ j(), H();
9913
9929
  var Od = "voice-", kd = (e) => e.replace(/\s+/g, " ").trim().toLowerCase(), Ad = (e) => kd(e.parts.filter((e) => e.type === "text").map((e) => "text" in e ? e.text : "").join(" ")), jd = 8, Md = (e, t) => {
9914
9930
  let n = e.filter((e) => e.role === "user").map((e) => ({
9915
9931
  text: Ad(e),
@@ -9931,23 +9947,23 @@ var Od = "voice-", kd = (e) => e.replace(/\s+/g, " ").trim().toLowerCase(), Ad =
9931
9947
  };
9932
9948
  function Fd(e) {
9933
9949
  return qn(`chatbot-${e}`, () => {
9934
- let { t, te: n, locale: r } = ze({ useScope: "global" }), i = G(""), a = G(), o = G(e), s = G(), c = G(), l = G(), u = G(), d = G(), f = G(), p = G(), m = G(), h = G(), g = G(), _ = G(), v = G(), y = G(), b = G(), x = G(), S = G(), ee = G(!1), C = Yt(), te = W(() => {
9950
+ let { t, te: n, locale: r } = ze({ useScope: "global" }), i = W(""), a = W(), o = W(e), s = W(), c = W(), l = W(), u = W(), d = W(), f = W(), p = W(), m = W(), h = W(), g = W(), _ = W(), v = W(), y = W(), b = W(), x = W(), S = W(), ee = W(!1), C = Yt(), te = U(() => {
9935
9951
  let e = u.value?.theme;
9936
9952
  return (!e || e === "auto") && (e = S.value), e ? e === "dark" : C.value;
9937
- }), w = W(() => c.value === "reasoning"), T = W(() => w.value ? g.value?.filter((e) => ![
9953
+ }), w = U(() => c.value === "reasoning"), T = U(() => w.value ? g.value?.filter((e) => ![
9938
9954
  "upvote",
9939
9955
  "downvote",
9940
9956
  "feedback"
9941
- ].includes(e)) : g.value), ne = ln(W(() => `${o.value}-chatId`), null);
9957
+ ].includes(e)) : g.value), ne = ln(U(() => `${o.value}-chatId`), null);
9942
9958
  me(() => {
9943
9959
  ne.value ||= Nc();
9944
9960
  });
9945
- let E = W({
9961
+ let E = U({
9946
9962
  get: () => ne.value,
9947
9963
  set: (e) => {
9948
9964
  ne.value = e;
9949
9965
  }
9950
- }), D = G(), re = G(!1), ie = W(() => D.value?.message?.toLowerCase().includes("conversation-blocked") ?? !1);
9966
+ }), D = W(), re = W(!1), ie = U(() => D.value?.message?.toLowerCase().includes("conversation-blocked") ?? !1);
9951
9967
  function ae(e) {
9952
9968
  try {
9953
9969
  let t = JSON.parse(e.message);
@@ -9962,14 +9978,14 @@ function Fd(e) {
9962
9978
  E.value = Nc(), A.value.clearError(), D.value = void 0, n && A.value.sendMessage({ text: n });
9963
9979
  } else Wt.error(e), D.value = e, ie.value && (re.value = !0);
9964
9980
  }
9965
- let O = W(() => Gs({
9981
+ let O = U(() => Gs({
9966
9982
  baseUrl: i.value,
9967
9983
  basePath: a.value,
9968
9984
  headers: () => p.value
9969
- })), k = G(null), se = () => ({
9985
+ })), k = W(null), se = () => ({
9970
9986
  ...Sr(),
9971
9987
  ...k.value ?? {}
9972
- }), A = W(() => new Dd({
9988
+ }), A = U(() => new Dd({
9973
9989
  id: E.value,
9974
9990
  transport: new $u({
9975
9991
  api: O.value.getChatEndpoint(o.value, w.value ? "reasoning" : "chat"),
@@ -10003,19 +10019,19 @@ function Fd(e) {
10003
10019
  },
10004
10020
  onFinish: () => {
10005
10021
  let e = E.value;
10006
- !w.value && !M.value.some((t) => t.id === e) && ye(o.value);
10022
+ !w.value && !M.value.some((t) => t.id === e) && be(o.value);
10007
10023
  }
10008
- })), ce = W(() => {
10024
+ })), ce = U(() => {
10009
10025
  let e = u.value?.initialMessage;
10010
10026
  return e?.[r.value] ? e[r.value] : n("message.defaultAgentWelcome") ? t("message.defaultAgentWelcome") : "";
10011
- }), le = Nc(), j = W(() => ({
10027
+ }), le = Nc(), j = U(() => ({
10012
10028
  id: le,
10013
10029
  role: "assistant",
10014
10030
  parts: [{
10015
10031
  type: "text",
10016
10032
  text: ce.value
10017
10033
  }]
10018
- })), ue = W(() => {
10034
+ })), ue = U(() => {
10019
10035
  let e = (e) => e.map((e) => e.role !== "user" || !e.parts.some((e) => e.type === "file") ? e : {
10020
10036
  ...e,
10021
10037
  parts: e.parts.map((e) => {
@@ -10035,11 +10051,11 @@ function Fd(e) {
10035
10051
  })
10036
10052
  });
10037
10053
  return w.value ? e(A.value.messages) : !ee.value && A.value.messages?.[0]?.role !== "assistant" ? [j.value, ...e(A.value.messages)] : e(A.value.messages);
10038
- }), de = W(() => {
10054
+ }), de = U(() => {
10039
10055
  let e = u.value?.messagePlaceholder;
10040
10056
  return e?.[r.value] ? e[r.value] : n("placeholder.askAnything") ? t("placeholder.askAnything") : "";
10041
- }), M = G([]), N = G(!1), fe = G([]), pe = G(!1), F = G("chat"), I = G([]), L = G(), R = G(!1), z = G(!1), B = G(), he = G(!1), ge = G(!1), V = G(), _e = G(""), H = G([]), U = G(""), ve = G(0);
10042
- async function ye(e) {
10057
+ }), M = W([]), N = W(!1), fe = W([]), pe = W(!1), F = W("chat"), he = W([]), I = W(), L = W(!1), R = W(!1), z = W(), ge = W(!1), _e = W(!1), B = W(), ve = W(""), V = W([]), H = W(""), ye = W(0);
10058
+ async function be(e) {
10043
10059
  if (w.value) M.value = [];
10044
10060
  else {
10045
10061
  N.value = !0;
@@ -10052,7 +10068,7 @@ function Fd(e) {
10052
10068
  }
10053
10069
  }
10054
10070
  }
10055
- async function be() {
10071
+ async function xe() {
10056
10072
  let e = E.value;
10057
10073
  if (!e) fe.value = [];
10058
10074
  else {
@@ -10066,86 +10082,86 @@ function Fd(e) {
10066
10082
  }
10067
10083
  }
10068
10084
  }
10069
- function xe(e, t = !1) {
10085
+ function Se(e, t = !1) {
10070
10086
  return O.value.getChatFileDownloadUrl(e, t);
10071
10087
  }
10072
- function Se(e) {
10088
+ function Ce(e) {
10073
10089
  return O.value.getChatFilePreviewUrl(e);
10074
10090
  }
10075
- async function Ce(e) {
10091
+ async function we(e) {
10076
10092
  await O.value.deleteChatFile(e);
10077
10093
  let t = fe.value.find((t) => t.documentId === e), n = t?.kind === "spreadsheet" ? t.sourceAttachmentId ?? t.documentId : void 0;
10078
10094
  fe.value = fe.value.filter((t) => t.documentId !== e && (!n || t.documentId !== n && t.sourceAttachmentId !== n));
10079
10095
  }
10080
- async function we(e, t) {
10096
+ async function Te(e, t) {
10081
10097
  if (!w.value) try {
10082
10098
  let n = await O.value.getChat(e, t);
10083
10099
  if (t !== E.value || A.value.status !== "ready" || A.value.messages.length > 0) return;
10084
10100
  n && (A.value.messages = n.messages, re.value = n.blocked ?? !1);
10085
10101
  } catch {}
10086
10102
  }
10087
- let Te = () => {
10103
+ let Ee = () => {
10088
10104
  let e = A.value.status;
10089
10105
  return e === "submitted" || e === "streaming";
10090
- }, Ee = 0, De = 0;
10091
- async function Oe() {
10092
- if (w.value || Te()) return "indeterminate";
10093
- let e = E.value, t = Ee += 1;
10106
+ }, De = 0, Oe = 0;
10107
+ async function ke() {
10108
+ if (w.value || Ee()) return "indeterminate";
10109
+ let e = E.value, t = De += 1;
10094
10110
  try {
10095
10111
  let n = await O.value.getChat(o.value, e);
10096
- if (!n || e !== E.value || Te() || t <= De) return "indeterminate";
10097
- De = t;
10112
+ if (!n || e !== E.value || Ee() || t <= Oe) return "indeterminate";
10113
+ Oe = t;
10098
10114
  let r = n.messages, i = Md(r, A.value.messages);
10099
10115
  return A.value.messages = [...r, ...i], re.value = n.blocked ?? !1, i.length > 0 ? "pending" : "caught-up";
10100
10116
  } catch {}
10101
10117
  return "indeterminate";
10102
10118
  }
10103
- function K(e) {
10119
+ function G(e) {
10104
10120
  A.value.messages = [...A.value.messages, e];
10105
10121
  }
10106
- async function ke(e) {
10122
+ async function Ae(e) {
10107
10123
  try {
10108
- I.value = await O.value.getMessageFeedbacks(e);
10124
+ he.value = await O.value.getMessageFeedbacks(e);
10109
10125
  } catch {
10110
- I.value = [];
10126
+ he.value = [];
10111
10127
  }
10112
10128
  }
10113
- function Ae(e) {
10114
- let t = I.value.findIndex((t) => t.messageId === e.messageId);
10115
- t >= 0 ? I.value[t] = e : I.value.push(e);
10129
+ function je(e) {
10130
+ let t = he.value.findIndex((t) => t.messageId === e.messageId);
10131
+ t >= 0 ? he.value[t] = e : he.value.push(e);
10116
10132
  }
10117
- function q(e) {
10133
+ function K(e) {
10118
10134
  let t = ue.value, n = t.findIndex((t) => t.id === e.id), r = dt(e) ?? "", i = t.slice(0, n).reverse().find((e) => e.role === "user");
10119
10135
  return {
10120
10136
  userQuestion: dt(i ?? e) ?? "",
10121
10137
  assistantMessage: r
10122
10138
  };
10123
10139
  }
10124
- async function je(e, t) {
10140
+ async function Me(e, t) {
10125
10141
  await Promise.all([
10126
- we(e, t),
10127
- ye(e),
10128
- ke(t)
10142
+ Te(e, t),
10143
+ be(e),
10144
+ Ae(t)
10129
10145
  ]), k.value || Cr((e, t) => O.value.reverseGeocode(e, t, r.value)).then((e) => {
10130
10146
  e && (k.value = e);
10131
10147
  });
10132
10148
  }
10133
- async function Me() {
10134
- let e = _e.value.trim(), t = H.value.filter((e) => e.state === "done" && e.mediaSource !== void 0).map((e) => ({
10149
+ async function Ne() {
10150
+ let e = ve.value.trim(), t = V.value.filter((e) => e.state === "done" && e.mediaSource !== void 0).map((e) => ({
10135
10151
  type: "file",
10136
10152
  mediaType: e.mediaSource.mimeType,
10137
10153
  url: e.localUrl,
10138
10154
  filename: e.mediaSource.name,
10139
10155
  providerMetadata: { "8bot": { media: e.mediaSource } }
10140
10156
  }));
10141
- w.value && ue.value.length > 0 && await Fe(), U.value = e, ve.value = A.value.messages.length;
10157
+ w.value && ue.value.length > 0 && await Fe(), H.value = e, ye.value = A.value.messages.length;
10142
10158
  let n = A.value.sendMessage;
10143
10159
  n({
10144
10160
  text: e,
10145
10161
  files: t.length > 0 ? t : void 0
10146
- }), _e.value = "", Pe();
10162
+ }), ve.value = "", Pe();
10147
10163
  }
10148
- function Ne(e) {
10164
+ function q(e) {
10149
10165
  let t = e.trim();
10150
10166
  if (!t) return;
10151
10167
  if (A.value.status !== "ready") {
@@ -10156,21 +10172,21 @@ function Fd(e) {
10156
10172
  n({ text: t });
10157
10173
  }
10158
10174
  async function J() {
10159
- let e = U.value.length > 0;
10160
- await A.value.stop(), e && (_e.value = U.value, A.value.messages = A.value.messages.slice(0, ve.value), U.value = "");
10175
+ let e = H.value.length > 0;
10176
+ await A.value.stop(), e && (ve.value = H.value, A.value.messages = A.value.messages.slice(0, ye.value), H.value = "");
10161
10177
  }
10162
10178
  P(() => A.value.status, (e) => {
10163
- e === "ready" && U.value.length > 0 && (U.value = "");
10179
+ e === "ready" && H.value.length > 0 && (H.value = "");
10164
10180
  });
10165
10181
  function Pe(e = !1) {
10166
- for (let t of H.value) (e || t.state !== "done") && URL.revokeObjectURL(t.localUrl);
10167
- H.value = [], Ge.value = null;
10182
+ for (let t of V.value) (e || t.state !== "done") && URL.revokeObjectURL(t.localUrl);
10183
+ V.value = [], Ge.value = null;
10168
10184
  }
10169
10185
  async function Fe() {
10170
- return U.value = "", await J(), E.value = Nc(), A.value.clearError(), D.value = void 0, re.value = !1, Pe(!0), nt("chat"), E.value;
10186
+ return H.value = "", await J(), E.value = Nc(), A.value.clearError(), D.value = void 0, re.value = !1, Pe(!0), nt("chat"), E.value;
10171
10187
  }
10172
10188
  async function Ie(e) {
10173
- A.value.status !== "ready" && (U.value = "", await J()), await A.value.regenerate(e);
10189
+ A.value.status !== "ready" && (H.value = "", await J()), await A.value.regenerate(e);
10174
10190
  }
10175
10191
  function Le(e) {
10176
10192
  if (e.tool === "requestGeolocation") {
@@ -10187,7 +10203,7 @@ function Fd(e) {
10187
10203
  function Re(e) {
10188
10204
  A.value.addToolApprovalResponse(e);
10189
10205
  }
10190
- let Be = W(() => A.value.messages.reduce((e, t) => e + t.parts.filter((e) => e.type === "file").length, 0)), Ve = W(() => _.value?.maxFilesPerMessage ?? 5), He = W(() => _.value?.maxFilesPerChat ?? 20), Ue = W(() => Math.max(0, Math.min(Ve.value - H.value.length, He.value - Be.value - H.value.length))), We = W(() => Ue.value <= 0), Ge = G(null), Ke = () => {
10206
+ let Be = U(() => A.value.messages.reduce((e, t) => e + t.parts.filter((e) => e.type === "file").length, 0)), Ve = U(() => _.value?.maxFilesPerMessage ?? 5), He = U(() => _.value?.maxFilesPerChat ?? 20), Ue = U(() => Math.max(0, Math.min(Ve.value - V.value.length, He.value - Be.value - V.value.length))), We = U(() => Ue.value <= 0), Ge = W(null), Ke = () => {
10191
10207
  Ge.value = null;
10192
10208
  };
10193
10209
  P(We, (e) => {
@@ -10195,7 +10211,7 @@ function Fd(e) {
10195
10211
  });
10196
10212
  async function qe(e) {
10197
10213
  if (We.value) {
10198
- Ge.value = He.value - Be.value - H.value.length <= Ve.value - H.value.length ? {
10214
+ Ge.value = He.value - Be.value - V.value.length <= Ve.value - V.value.length ? {
10199
10215
  reason: "per-chat",
10200
10216
  max: He.value
10201
10217
  } : {
@@ -10210,17 +10226,17 @@ function Fd(e) {
10210
10226
  localUrl: URL.createObjectURL(e),
10211
10227
  state: "uploading"
10212
10228
  };
10213
- H.value = [...H.value, n];
10229
+ V.value = [...V.value, n];
10214
10230
  try {
10215
10231
  let n = await O.value.uploadMedia(o.value, E.value, e);
10216
- H.value = H.value.map((e) => e.id === t ? {
10232
+ V.value = V.value.map((e) => e.id === t ? {
10217
10233
  ...e,
10218
10234
  state: "done",
10219
10235
  mediaSource: n
10220
10236
  } : e);
10221
10237
  } catch (e) {
10222
10238
  let n = e instanceof Error ? e.message : "Upload failed";
10223
- H.value = H.value.map((e) => e.id === t ? {
10239
+ V.value = V.value.map((e) => e.id === t ? {
10224
10240
  ...e,
10225
10241
  state: "error",
10226
10242
  error: n
@@ -10228,8 +10244,8 @@ function Fd(e) {
10228
10244
  }
10229
10245
  }
10230
10246
  async function Y(e, t) {
10231
- let { userQuestion: n, assistantMessage: r } = q(e);
10232
- Ae(await O.value.submitMessageFeedback({
10247
+ let { userQuestion: n, assistantMessage: r } = K(e);
10248
+ je(await O.value.submitMessageFeedback({
10233
10249
  messageId: e.id,
10234
10250
  chatId: E.value,
10235
10251
  agentId: o.value,
@@ -10245,37 +10261,37 @@ function Fd(e) {
10245
10261
  await Y(e, "downvote");
10246
10262
  }
10247
10263
  function Ze(e) {
10248
- z.value = !1, B.value = void 0, L.value = e;
10264
+ R.value = !1, z.value = void 0, I.value = e;
10249
10265
  }
10250
10266
  async function Qe(e) {
10251
- if (L.value) try {
10252
- R.value = !0, z.value = !1, B.value = void 0;
10253
- let { userQuestion: t, assistantMessage: n } = q(L.value);
10254
- Ae(await O.value.submitMessageFeedback({
10255
- messageId: L.value.id,
10267
+ if (I.value) try {
10268
+ L.value = !0, R.value = !1, z.value = void 0;
10269
+ let { userQuestion: t, assistantMessage: n } = K(I.value);
10270
+ je(await O.value.submitMessageFeedback({
10271
+ messageId: I.value.id,
10256
10272
  chatId: E.value,
10257
10273
  agentId: o.value,
10258
10274
  userQuestion: t,
10259
10275
  assistantMessage: n,
10260
10276
  comment: e
10261
- })), z.value = !0, await ke(E.value);
10277
+ })), R.value = !0, await Ae(E.value);
10262
10278
  } catch {
10263
- B.value = n("message.feedbackSubmitError") ? t("message.feedbackSubmitError") : "Failed to submit feedback";
10279
+ z.value = n("message.feedbackSubmitError") ? t("message.feedbackSubmitError") : "Failed to submit feedback";
10264
10280
  } finally {
10265
- R.value = !1;
10281
+ L.value = !1;
10266
10282
  }
10267
10283
  }
10268
10284
  async function $e(e) {
10269
10285
  try {
10270
- ge.value = !0, he.value = !1, V.value = void 0, await O.value.submitLead({
10286
+ _e.value = !0, ge.value = !1, B.value = void 0, await O.value.submitLead({
10271
10287
  agentId: o.value,
10272
10288
  chatId: E.value,
10273
10289
  ...e
10274
- }), he.value = !0;
10290
+ }), ge.value = !0;
10275
10291
  } catch {
10276
- V.value = n("message.leadSubmitError") ? t("message.leadSubmitError") : "Failed to submit lead";
10292
+ B.value = n("message.leadSubmitError") ? t("message.leadSubmitError") : "Failed to submit lead";
10277
10293
  } finally {
10278
- ge.value = !1;
10294
+ _e.value = !1;
10279
10295
  }
10280
10296
  }
10281
10297
  async function et(e, t) {
@@ -10301,7 +10317,7 @@ function Fd(e) {
10301
10317
  let t = rt;
10302
10318
  if (rt = e, t === void 0) return;
10303
10319
  let n = E.value, r = !w.value && await it(n);
10304
- l.value === e && E.value === n && (r ? ye(o.value) : (M.value = [], I.value = [], fe.value = [], await Fe(), _e.value = ""));
10320
+ l.value === e && E.value === n && (r ? be(o.value) : (M.value = [], he.value = [], fe.value = [], await Fe(), ve.value = ""));
10305
10321
  }), {
10306
10322
  apiClient: O,
10307
10323
  baseUrl: i,
@@ -10332,8 +10348,8 @@ function Fd(e) {
10332
10348
  isLoadingConversations: N,
10333
10349
  chatFiles: fe,
10334
10350
  isLoadingChatFiles: pe,
10335
- input: _e,
10336
- pendingAttachments: H,
10351
+ input: ve,
10352
+ pendingAttachments: V,
10337
10353
  isAttachmentLimitReached: We,
10338
10354
  fileLimitError: Ge,
10339
10355
  localChatId: E,
@@ -10341,25 +10357,25 @@ function Fd(e) {
10341
10357
  inputMessagePlaceholder: de,
10342
10358
  chatError: D,
10343
10359
  activeView: F,
10344
- messageFeedbacks: I,
10345
- feedbackDialogMessage: L,
10346
- isFeedbackSubmitting: R,
10347
- isFeedbackSubmitted: z,
10348
- feedbackSubmitError: B,
10349
- isLeadSubmitted: he,
10350
- isLoadingSubmitLead: ge,
10351
- submitLeadError: V,
10360
+ messageFeedbacks: he,
10361
+ feedbackDialogMessage: I,
10362
+ isFeedbackSubmitting: L,
10363
+ isFeedbackSubmitted: R,
10364
+ feedbackSubmitError: z,
10365
+ isLeadSubmitted: ge,
10366
+ isLoadingSubmitLead: _e,
10367
+ submitLeadError: B,
10352
10368
  buildDeviceContext: se,
10353
- initialize: je,
10354
- loadConversations: ye,
10355
- loadChatFiles: be,
10356
- refreshMessages: Oe,
10357
- appendMessage: K,
10358
- getChatFileUrl: xe,
10359
- getChatFilePreviewUrl: Se,
10360
- deleteChatFile: Ce,
10361
- handleSubmit: Me,
10362
- sendMessage: Ne,
10369
+ initialize: Me,
10370
+ loadConversations: be,
10371
+ loadChatFiles: xe,
10372
+ refreshMessages: ke,
10373
+ appendMessage: G,
10374
+ getChatFileUrl: Se,
10375
+ getChatFilePreviewUrl: Ce,
10376
+ deleteChatFile: we,
10377
+ handleSubmit: Ne,
10378
+ sendMessage: q,
10363
10379
  stopGeneration: J,
10364
10380
  startNewChat: Fe,
10365
10381
  regenerate: Ie,
@@ -10381,8 +10397,8 @@ function Fd(e) {
10381
10397
  }
10382
10398
  //#endregion
10383
10399
  //#region ../../packages/composable/src/useDialog.ts
10384
- j(), U();
10385
- var Id = G(!1), Ld = G(), Rd = G(), zd = G(), Bd = G(), Vd = G(!1), Hd = G(), Ud = G(), Wd = () => {
10400
+ j(), H();
10401
+ var Id = W(!1), Ld = W(), Rd = W(), zd = W(), Bd = W(), Vd = W(!1), Hd = W(), Ud = W(), Wd = () => {
10386
10402
  let e = (e) => {
10387
10403
  Id.value = e;
10388
10404
  }, t = () => {
@@ -10411,11 +10427,11 @@ var Id = G(!1), Ld = G(), Rd = G(), zd = G(), Bd = G(), Vd = G(!1), Hd = G(), Ud
10411
10427
  };
10412
10428
  //#endregion
10413
10429
  //#region ../../packages/composable/src/useDialogConfirm.ts
10414
- j(), U();
10430
+ j(), H();
10415
10431
  var Gd = () => {
10416
10432
  let { openDialog: e } = Wd(), { t } = ze({ useScope: "global" });
10417
10433
  return { openDialogConfirm: ({ emitReject: n = !1, confirmLabel: r, cancelLabel: i, questionLabel: a, descriptionLabel: o, onlyConfirm: s = !1, passphrase: c, passphraseLabel: l, passphraseHint: u, title: d, danger: f = !1 } = {}) => new Promise((p, m) => {
10418
- let h = G(), g = e({
10434
+ let h = W(), g = e({
10419
10435
  role: "alertdialog",
10420
10436
  size: "small",
10421
10437
  keepOpen: !0,
@@ -10465,9 +10481,9 @@ var Gd = () => {
10465
10481
  };
10466
10482
  //#endregion
10467
10483
  //#region ../../packages/composable/src/chatbot/useConversationActions.ts
10468
- U();
10484
+ H();
10469
10485
  function Kd(e) {
10470
- let t = G(null), n = G(""), r = (e, r = "") => {
10486
+ let t = W(null), n = W(""), r = (e, r = "") => {
10471
10487
  t.value = e.id, n.value = Ut(e.title) || r;
10472
10488
  }, i = async (r) => {
10473
10489
  let i = n.value.trim();
@@ -10496,12 +10512,12 @@ function Kd(e) {
10496
10512
  }
10497
10513
  //#endregion
10498
10514
  //#region ../../packages/composable/src/chatbot/useGreeting.ts
10499
- j(), U();
10515
+ j(), H();
10500
10516
  function qd(e, t) {
10501
10517
  let { locale: n, t: r, te: i } = ze({ useScope: "global" });
10502
- return W(() => {
10503
- let a = R(e);
10504
- return Jd(a?.greeting?.[0]?.[n.value] || a?.initialMessage?.[n.value] || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""), R(t));
10518
+ return U(() => {
10519
+ let a = L(e);
10520
+ return Jd(a?.greeting?.[0]?.[n.value] || a?.initialMessage?.[n.value] || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""), L(t));
10505
10521
  });
10506
10522
  }
10507
10523
  function Jd(e, t) {
@@ -10509,7 +10525,7 @@ function Jd(e, t) {
10509
10525
  }
10510
10526
  //#endregion
10511
10527
  //#region ../../packages/composable/src/useChatbotError.ts
10512
- j(), U();
10528
+ j(), H();
10513
10529
  function Yd(e, t) {
10514
10530
  return e?.message?.toLowerCase().includes(t) ?? !1;
10515
10531
  }
@@ -10517,7 +10533,7 @@ function Xd(e) {
10517
10533
  return Pr(e?.message)?.payload;
10518
10534
  }
10519
10535
  function Zd(e) {
10520
- let t = W(() => Yd(R(e), "context_length_exceeded")), n = W(() => Yd(R(e), "entity-not-found")), r = W(() => Yd(R(e), "rate-limit-exceeded")), i = W(() => Yd(R(e), "origin-not-allowed")), a = W(() => Yd(R(e), "credit-exhausted")), o = W(() => Yd(R(e), "conversation-blocked")), s = W(() => Yd(R(e), "bad request")), c = W(() => Yd(R(e), "internal-server-error")), l = W(() => Fr(R(e)?.message, "GATEWAY_CONFIG")), u = W(() => Yd(R(e), "gateway-disabled")), d = W(() => Yd(R(e), "model-unavailable"));
10536
+ let t = U(() => Yd(L(e), "context_length_exceeded")), n = U(() => Yd(L(e), "entity-not-found")), r = U(() => Yd(L(e), "rate-limit-exceeded")), i = U(() => Yd(L(e), "origin-not-allowed")), a = U(() => Yd(L(e), "credit-exhausted")), o = U(() => Yd(L(e), "conversation-blocked")), s = U(() => Yd(L(e), "bad request")), c = U(() => Yd(L(e), "internal-server-error")), l = U(() => Fr(L(e)?.message, "GATEWAY_CONFIG")), u = U(() => Yd(L(e), "gateway-disabled")), d = U(() => Yd(L(e), "model-unavailable"));
10521
10537
  return {
10522
10538
  isContextWindowError: t,
10523
10539
  isNotFoundError: n,
@@ -10530,7 +10546,7 @@ function Zd(e) {
10530
10546
  isGatewayConfigError: l,
10531
10547
  isGatewayDisabledError: u,
10532
10548
  isModelUnavailableError: d,
10533
- isRefreshableError: W(() => !t.value && !n.value && !i.value && !a.value && !o.value && !s.value && !c.value && !l.value && !u.value && !d.value)
10549
+ isRefreshableError: U(() => !t.value && !n.value && !i.value && !a.value && !o.value && !s.value && !c.value && !l.value && !u.value && !d.value)
10534
10550
  };
10535
10551
  }
10536
10552
  //#endregion
@@ -10606,7 +10622,7 @@ var ef = () => {
10606
10622
  //#region src/utils/emitWidgetEvent.ts
10607
10623
  j();
10608
10624
  function tf() {
10609
- let e = Me()?.vnode?.el;
10625
+ let e = Ne()?.vnode?.el;
10610
10626
  function t() {
10611
10627
  if (!e) return null;
10612
10628
  let t = e.getRootNode();
@@ -11178,12 +11194,12 @@ function Qf(e, t, n, r, i) {
11178
11194
  }
11179
11195
  //#endregion
11180
11196
  //#region ../../node_modules/.pnpm/better-auth@1.7.7_@opentelemetry+api@1.9.1_drizzle-kit@0.31.11_drizzle-orm@0.45.4_@open_47d2f11a3cbaac98b66a16f8ab149fc4/node_modules/better-auth/dist/client/vue/vue-store.mjs
11181
- U();
11197
+ H();
11182
11198
  function $f(e) {
11183
- let t = _e(), n = e.subscribe((e) => {
11199
+ let t = ve(), n = e.subscribe((e) => {
11184
11200
  t.value = e;
11185
11201
  });
11186
- return De() && he(n), t;
11202
+ return Oe() && ge(n), t;
11187
11203
  }
11188
11204
  //#endregion
11189
11205
  //#region ../../node_modules/.pnpm/better-auth@1.7.7_@opentelemetry+api@1.9.1_drizzle-kit@0.31.11_drizzle-orm@0.45.4_@open_47d2f11a3cbaac98b66a16f8ab149fc4/node_modules/better-auth/dist/client/vue/index.mjs
@@ -11284,7 +11300,7 @@ function mp(e = ap) {
11284
11300
  var hp = "https://ai-api.8wave.it", gp = "https://ai.8wave.it";
11285
11301
  //#endregion
11286
11302
  //#region src/composables/useChatbotAuth.ts
11287
- j(), U();
11303
+ j(), H();
11288
11304
  function _p() {
11289
11305
  return {
11290
11306
  id: "anonymous-reauth",
@@ -11315,12 +11331,12 @@ function bp() {
11315
11331
  return Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
11316
11332
  }
11317
11333
  function xp(e = {}) {
11318
- let t = G(dp(e.cookieName)), n = W(() => R(e.useHostSession) ?? !1), r = W({
11334
+ let t = W(dp(e.cookieName)), n = U(() => L(e.useHostSession) ?? !1), r = U({
11319
11335
  get: () => t.value,
11320
11336
  set: (n) => {
11321
11337
  up(n, e.cookieName), t.value = n;
11322
11338
  }
11323
- }), i = W(() => !n.value && r.value ? { Authorization: `Bearer ${r.value}` } : void 0), a = np({
11339
+ }), i = U(() => !n.value && r.value ? { Authorization: `Bearer ${r.value}` } : void 0), a = np({
11324
11340
  baseURL: e.baseUrl ?? "https://ai-api.8wave.it",
11325
11341
  basePath: e.basePath ?? "auth",
11326
11342
  plugins: [
@@ -11345,7 +11361,7 @@ function xp(e = {}) {
11345
11361
  credentials: n.value ? "include" : t?.credentials
11346
11362
  })
11347
11363
  }
11348
- }), o = a.useSession(), s = G(!1), c = W(() => R(e.externalToken)), l = W(() => R(e.isActive) ?? !0), u = G(c.value), d = W(() => !!c.value || !!e.awaitExternalToken || !!u.value || n.value), f = Promise.resolve();
11364
+ }), o = a.useSession(), s = W(!1), c = U(() => L(e.externalToken)), l = U(() => L(e.isActive) ?? !0), u = W(c.value), d = U(() => !!c.value || !!e.awaitExternalToken || !!u.value || n.value), f = Promise.resolve();
11349
11365
  function p(e) {
11350
11366
  let t = f.then(e, e);
11351
11367
  return f = t, t;
@@ -11450,7 +11466,7 @@ function xp(e = {}) {
11450
11466
  function C(t) {
11451
11467
  t.status === 401 && (n.value ? o.value.refetch() : u.value ? S(u.value) : e.awaitExternalToken || ee());
11452
11468
  }
11453
- let te = W(() => o.value.data?.user?.id), w = G();
11469
+ let te = U(() => o.value.data?.user?.id), w = W();
11454
11470
  async function T(t, n, i) {
11455
11471
  let o = await a.signIn.email({
11456
11472
  email: t,
@@ -11572,9 +11588,9 @@ function Sp(e) {
11572
11588
  var Cp = Symbol("chatbotProfileContext");
11573
11589
  //#endregion
11574
11590
  //#region src/composables/useChatbotProfile.ts
11575
- j(), U();
11591
+ j(), H();
11576
11592
  function wp(e) {
11577
- let { session: t, signOut: n, erasure: r } = e, i = W(() => {
11593
+ let { session: t, signOut: n, erasure: r } = e, i = U(() => {
11578
11594
  let e = t.value.data?.user;
11579
11595
  return !e || e.isAnonymous ? null : {
11580
11596
  id: e.id,
@@ -11586,16 +11602,16 @@ function wp(e) {
11586
11602
  });
11587
11603
  return {
11588
11604
  user: i,
11589
- canManageProfile: W(() => i.value !== null),
11590
- canSignIn: W(() => R(e.canSignIn) ?? !1),
11591
- isExternalAuth: W(() => R(e.isExternalAuth) ?? !1),
11592
- profileUrl: W(() => `${gp}/app/profile`),
11605
+ canManageProfile: U(() => i.value !== null),
11606
+ canSignIn: U(() => L(e.canSignIn) ?? !1),
11607
+ isExternalAuth: U(() => L(e.isExternalAuth) ?? !1),
11608
+ profileUrl: U(() => `${gp}/app/profile`),
11593
11609
  signOut: n,
11594
11610
  eraseConversations: r ? async () => {
11595
11611
  let e = await fetch(`${r.baseUrl}/api/v1/me/conversations/erasure`, {
11596
11612
  method: "POST",
11597
11613
  credentials: "include",
11598
- headers: R(r.headers)
11614
+ headers: L(r.headers)
11599
11615
  });
11600
11616
  if (!e.ok) throw Error(`Conversations erasure failed (${e.status})`);
11601
11617
  let t = await e.json();
@@ -11607,7 +11623,7 @@ function wp(e) {
11607
11623
  //#region src/composables/useChatbotProfileProvider.ts
11608
11624
  j();
11609
11625
  function Tp(e) {
11610
- let { agent: t, branding: n, authMethods: r, session: i, signOut: a, token: o } = e, s = W(() => !!r.value && (r.value.emailPassword || r.value.google || r.value.microsoft)), c = W(() => s.value && t.value?.interface?.interactiveLogin !== !1), l = W(() => t.value ? {
11626
+ let { agent: t, branding: n, authMethods: r, session: i, signOut: a, token: o } = e, s = U(() => !!r.value && (r.value.emailPassword || r.value.google || r.value.microsoft)), c = U(() => s.value && t.value?.interface?.interactiveLogin !== !1), l = U(() => t.value ? {
11611
11627
  id: t.value.id,
11612
11628
  name: t.value.name,
11613
11629
  organizationId: t.value.organizationId,
@@ -11632,16 +11648,16 @@ function Tp(e) {
11632
11648
  }
11633
11649
  //#endregion
11634
11650
  //#region src/composables/useChatbotAgent.ts
11635
- j(), U();
11651
+ j(), H();
11636
11652
  function Ep(e) {
11637
- let t = G(), n = G(), r = G(), i = G(), a = G(!1), o = G(!1), s = G(!1);
11653
+ let t = W(), n = W(), r = W(), i = W(), a = W(!1), o = W(!1), s = W(!1);
11638
11654
  async function c() {
11639
- let c = R(e.organizationSlug), l = R(e.agentId);
11655
+ let c = L(e.organizationSlug), l = L(e.agentId);
11640
11656
  if (!c || !l) return;
11641
11657
  let u = Gs({
11642
11658
  baseUrl: e.baseUrl ?? "https://ai-api.8wave.it",
11643
11659
  basePath: e.basePath,
11644
- headers: () => R(e.headers)
11660
+ headers: () => L(e.headers)
11645
11661
  });
11646
11662
  s.value = !0;
11647
11663
  try {
@@ -11653,12 +11669,12 @@ function Ep(e) {
11653
11669
  s.value = !1;
11654
11670
  }
11655
11671
  }
11656
- P([() => R(e.organizationSlug), () => R(e.agentId)], () => {
11672
+ P([() => L(e.organizationSlug), () => L(e.agentId)], () => {
11657
11673
  c();
11658
- }, { immediate: !0 }), P(() => R(e.headers), () => {
11674
+ }, { immediate: !0 }), P(() => L(e.headers), () => {
11659
11675
  a.value && c();
11660
11676
  });
11661
- let l = W(() => t.value?.interface ?? n.value?.interface), u = W(() => qe(l.value?.textColor, l.value?.mainColor)), d = W(() => l.value?.mainColor);
11677
+ let l = U(() => t.value?.interface ?? n.value?.interface), u = U(() => qe(l.value?.textColor, l.value?.mainColor)), d = U(() => l.value?.mainColor);
11662
11678
  return {
11663
11679
  agent: t,
11664
11680
  branding: n,
@@ -11670,20 +11686,20 @@ function Ep(e) {
11670
11686
  reload: c,
11671
11687
  contrastColor: u,
11672
11688
  mainColor: d,
11673
- themeClass: W(() => {
11689
+ themeClass: U(() => {
11674
11690
  let t = l.value?.theme;
11675
11691
  if (t && t !== "auto") return ["theme", `theme--${t}`];
11676
- let n = R(e.systemTheme);
11692
+ let n = L(e.systemTheme);
11677
11693
  return n ? ["theme", `theme--${n}`] : ["theme"];
11678
11694
  }),
11679
- themeStyle: W(() => rt(d.value, u.value))
11695
+ themeStyle: U(() => rt(d.value, u.value))
11680
11696
  };
11681
11697
  }
11682
11698
  //#endregion
11683
11699
  //#region src/composables/useChatbotAuthForm.ts
11684
- U();
11700
+ H();
11685
11701
  function Dp(e) {
11686
- let { t } = ze({ useScope: "global" }), n = G(), r = G(), i = G(!1), a = (e) => e?.message ?? t("auth.genericError");
11702
+ let { t } = ze({ useScope: "global" }), n = W(), r = W(), i = W(!1), a = (e) => e?.message ?? t("auth.genericError");
11687
11703
  async function o(e) {
11688
11704
  n.value = void 0, r.value = void 0, i.value = !0;
11689
11705
  try {
@@ -11761,7 +11777,7 @@ function Op() {
11761
11777
  e.stopPropagation();
11762
11778
  };
11763
11779
  ie(() => {
11764
- let n = Me()?.proxy?.$el?.getRootNode();
11780
+ let n = Ne()?.proxy?.$el?.getRootNode();
11765
11781
  n instanceof ShadowRoot && (e = n, e.addEventListener("focusin", t));
11766
11782
  }), ue(() => {
11767
11783
  e &&= (e.removeEventListener("focusin", t), null);
@@ -11769,7 +11785,7 @@ function Op() {
11769
11785
  }
11770
11786
  //#endregion
11771
11787
  //#region ../../packages/components/src/chat/PkAvatar.vue?vue&type=script&setup=true&lang.ts
11772
- j(), U(), T();
11788
+ j(), H(), T();
11773
11789
  var kp = ["src"], Ap = /*#__PURE__*/ pn(/* @__PURE__ */ w({
11774
11790
  __name: "PkAvatar",
11775
11791
  props: {
@@ -11795,20 +11811,20 @@ var kp = ["src"], Ap = /*#__PURE__*/ pn(/* @__PURE__ */ w({
11795
11811
  }
11796
11812
  },
11797
11813
  setup(e) {
11798
- let t = e, { canShowImage: n, onImageError: r } = fn(), i = W(() => n(t.imgSrc)), a = W(() => t.shape === "tile" ? i.value ? "transparent" : void 0 : ["rounded", i.value ? "transparent" : t.modifiers].filter(Boolean).join(" ")), o = W(() => t.name ? t.name.split(/\s+/).filter((e) => /^[\p{L}\p{N}]/u.test(e)).slice(0, 2).map((e) => e.charAt(0).toUpperCase()).join("") : "");
11814
+ let t = e, { canShowImage: n, onImageError: r } = fn(), i = U(() => n(t.imgSrc)), a = U(() => t.shape === "tile" ? i.value ? "transparent" : void 0 : ["rounded", i.value ? "transparent" : t.modifiers].filter(Boolean).join(" ")), o = U(() => t.name ? t.name.split(/\s+/).filter((e) => /^[\p{L}\p{N}]/u.test(e)).slice(0, 2).map((e) => e.charAt(0).toUpperCase()).join("") : "");
11799
11815
  return (t, n) => {
11800
11816
  let s = an, c = en;
11801
- return A(), V(c, {
11802
- class: Ne(["pk-avatar", { "pk-avatar--tile": e.shape === "tile" }]),
11817
+ return A(), B(c, {
11818
+ class: q(["pk-avatar", { "pk-avatar--tile": e.shape === "tile" }]),
11803
11819
  "img-src": i.value ? e.imgSrc : void 0,
11804
11820
  modifiers: a.value
11805
11821
  }, {
11806
- default: C(() => [i.value ? (A(), q("img", {
11822
+ default: C(() => [i.value ? (A(), K("img", {
11807
11823
  key: 0,
11808
11824
  src: e.imgSrc,
11809
11825
  alt: "avatar",
11810
11826
  onError: n[0] ||= (t) => N(r)(e.imgSrc)
11811
- }, null, 40, kp)) : o.value ? (A(), q(B, { key: 1 }, [L(E(o.value), 1)], 64)) : e.fallbackIcon ? (A(), V(s, {
11827
+ }, null, 40, kp)) : o.value ? (A(), K(z, { key: 1 }, [I(E(o.value), 1)], 64)) : e.fallbackIcon ? (A(), B(s, {
11812
11828
  key: 2,
11813
11829
  name: e.fallbackIcon
11814
11830
  }, null, 8, ["name"])) : F("", !0)]),
@@ -11823,7 +11839,7 @@ var kp = ["src"], Ap = /*#__PURE__*/ pn(/* @__PURE__ */ w({
11823
11839
  }), [["styles", [".pk-avatar{object-fit:cover;overflow:hidden}.pk-avatar>.vv-icon{font-size:1.4em}.pk-avatar--tile,.pk-avatar--tile>img{border-radius:var(--rounded-md)}.pk-avatar--tile{box-shadow:0 0 0 var(--spacing-px) var(--color-surface-4)}.pk-avatar--tile:not(.vv-avatar--transparent){background-color:var(--color-surface-3);color:var(--color-word-2);font-weight:var(--font-bold)}"]]]);
11824
11840
  //#endregion
11825
11841
  //#region ../../packages/components/src/chat/PkAuroraCanvas.vue?vue&type=script&setup=true&lang.ts
11826
- j(), U();
11842
+ j(), H();
11827
11843
  var jp = {
11828
11844
  class: "pk-aurora",
11829
11845
  "aria-hidden": "true"
@@ -11834,7 +11850,7 @@ var jp = {
11834
11850
  __name: "PkAuroraCanvas",
11835
11851
  props: { sourceSelector: { type: String } },
11836
11852
  setup(e) {
11837
- let t = e, n = k("canvasEl"), r = G(!1), i = null, a = 0, o = null, s = null, c = null, l = null, u = null, d = null, f = performance.now(), p = (e, t) => {
11853
+ let t = e, n = k("canvasEl"), r = W(!1), i = null, a = 0, o = null, s = null, c = null, l = null, u = null, d = null, f = performance.now(), p = (e, t) => {
11838
11854
  if (!i) return null;
11839
11855
  let n = i.createShader(e);
11840
11856
  return !n || (i.shaderSource(n, t), i.compileShader(n), !i.getShaderParameter(n, i.COMPILE_STATUS)) ? null : n;
@@ -11897,7 +11913,7 @@ var jp = {
11897
11913
  i = null, setTimeout(() => {
11898
11914
  e?.getExtension("WEBGL_lose_context")?.loseContext();
11899
11915
  }, 150);
11900
- }), (e, t) => (A(), q("div", jp, [r.value ? (A(), q("div", Mp)) : (A(), q("canvas", {
11916
+ }), (e, t) => (A(), K("div", jp, [r.value ? (A(), K("div", Mp)) : (A(), K("canvas", {
11901
11917
  key: 0,
11902
11918
  ref_key: "canvasEl",
11903
11919
  ref: n,
@@ -11907,7 +11923,7 @@ var jp = {
11907
11923
  }), [["styles", [".pk-aurora{color:var(--chat-page-accent,var(--color-brand));pointer-events:none;position:absolute;inset:0}.pk-aurora__canvas{width:100%;height:100%}.pk-aurora__fallback{background:radial-gradient(45% 65% at 32% 38%, color-mix(in srgb, currentColor 26%, transparent), transparent 70%), radial-gradient(40% 55% at 68% 62%, color-mix(in srgb, currentColor 16%, transparent), transparent 70%);filter:blur(48px);animation:pk-aurora-drift 14s var(--ease-in-out) infinite alternate;position:absolute;inset:0}@media (prefers-reduced-motion:reduce){.pk-aurora__fallback{animation:none}}@keyframes pk-aurora-drift{0%{transform:rotate(-10deg)scale(1)}to{transform:rotate(10deg)scale(1.2)}}"]]]);
11908
11924
  //#endregion
11909
11925
  //#region ../../packages/components/src/chat/PkChatbotError.vue?vue&type=script&setup=true&lang.ts
11910
- j(), U(), T();
11926
+ j(), H(), T();
11911
11927
  //#endregion
11912
11928
  //#region ../../packages/components/src/chat/PkChatbotError.vue
11913
11929
  var Ip = /* @__PURE__ */ w({
@@ -11915,13 +11931,13 @@ var Ip = /* @__PURE__ */ w({
11915
11931
  props: { error: { type: Error } },
11916
11932
  emits: ["retry", "reset"],
11917
11933
  setup(e, { emit: t }) {
11918
- let n = e, r = t, { t: i } = ze({ useScope: "global" }), { isContextWindowError: a, isNotFoundError: o, isRateLimitError: s, isOriginNotAllowedError: c, isCreditExhaustedError: l, isConversationBlockedError: u, isBadRequestError: d, isInternalServerError: f, isGatewayConfigError: p, isGatewayDisabledError: m, isModelUnavailableError: h, isRefreshableError: g } = Zd(() => n.error), _ = W(() => c.value || l.value || p.value || m.value || h.value), v = W(() => {
11934
+ let n = e, r = t, { t: i } = ze({ useScope: "global" }), { isContextWindowError: a, isNotFoundError: o, isRateLimitError: s, isOriginNotAllowedError: c, isCreditExhaustedError: l, isConversationBlockedError: u, isBadRequestError: d, isInternalServerError: f, isGatewayConfigError: p, isGatewayDisabledError: m, isModelUnavailableError: h, isRefreshableError: g } = Zd(() => n.error), _ = U(() => c.value || l.value || p.value || m.value || h.value), v = U(() => {
11919
11935
  if (p.value) {
11920
11936
  let e = Xd(n.error);
11921
11937
  return e?.reason === "disallowPromptTraining" ? i("message.chatErrorGatewayPromptTraining", { model: e.model }) : e?.reason === "zeroDataRetention" ? i("message.chatErrorGatewayZdr", { model: e.model }) : i("message.chatErrorGeneric");
11922
11938
  }
11923
11939
  return a.value ? i("message.chatErrorContextWindow") : o.value ? i("message.chatErrorNotFound") : s.value ? i("message.chatErrorRateLimit", { seconds: y.value }) : c.value ? i("message.chatErrorOriginNotAllowed") : l.value ? i("message.chatErrorCreditExhausted") : m.value ? i("message.chatErrorGatewayDisabled") : h.value ? i("message.chatErrorModelUnavailable") : u.value ? i("message.chatErrorConversationBlocked") : d.value ? i("message.chatErrorBadRequest") : f.value ? i("message.chatErrorInternalServer") : i("message.chatErrorGeneric", { seconds: y.value });
11924
- }), y = G(0), b = G();
11940
+ }), y = W(0), b = W();
11925
11941
  return P(() => n.error, (e) => {
11926
11942
  if (b.value && clearTimeout(b.value), e && g.value) {
11927
11943
  y.value = 10;
@@ -11934,22 +11950,22 @@ var Ip = /* @__PURE__ */ w({
11934
11950
  b.value && clearTimeout(b.value);
11935
11951
  }), (e, t) => {
11936
11952
  let n = sn, r = nn;
11937
- return A(), V(r, {
11953
+ return A(), B(r, {
11938
11954
  modifiers: N(g) ? "warning" : "danger",
11939
11955
  class: "rounded-lg"
11940
11956
  }, Fe({
11941
- default: C(() => [L(E(v.value) + " ", 1)]),
11957
+ default: C(() => [I(E(v.value) + " ", 1)]),
11942
11958
  _: 2
11943
11959
  }, [N(g) || !_.value ? {
11944
11960
  name: "footer",
11945
- fn: C(() => [N(g) ? (A(), V(n, {
11961
+ fn: C(() => [N(g) ? (A(), B(n, {
11946
11962
  key: 0,
11947
11963
  icon: "ri:reset-right-line",
11948
11964
  modifiers: "action",
11949
11965
  class: "text-12",
11950
11966
  label: N(i)("action.retryNow"),
11951
11967
  onClick: t[0] ||= (t) => e.$emit("retry")
11952
- }, null, 8, ["label"])) : _.value ? F("", !0) : (A(), V(n, {
11968
+ }, null, 8, ["label"])) : _.value ? F("", !0) : (A(), B(n, {
11953
11969
  key: 1,
11954
11970
  icon: "reload",
11955
11971
  modifiers: "action",
@@ -11963,7 +11979,7 @@ var Ip = /* @__PURE__ */ w({
11963
11979
  });
11964
11980
  //#endregion
11965
11981
  //#region ../../packages/components/src/chat/PkChatbotFeedbackForm.vue?vue&type=script&setup=true&lang.ts
11966
- j(), U(), T(), Ee();
11982
+ j(), H(), T(), De();
11967
11983
  var Lp = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-surface" }, Rp = { class: "px-sm py-6 bg-surface-1 min-h-40 text-12 border-b border-surface-3 text-word-3 flex items-center gap-8 min-h-40" }, zp = { class: "font-bold" }, Bp = { key: 0 }, Vp = { class: "p-sm" }, Hp = { class: "flex justify-end border-t border-surface-3 px-sm py-10" }, Up = {
11968
11984
  key: 1,
11969
11985
  class: "p-sm"
@@ -11981,29 +11997,29 @@ var Lp = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
11981
11997
  };
11982
11998
  return (t, r) => {
11983
11999
  let i = an, a = sn, o = nn, d = Zt;
11984
- return A(), q("div", Lp, [H("div", Rp, [
12000
+ return A(), K("div", Lp, [V("div", Rp, [
11985
12001
  J(i, {
11986
12002
  name: "ri:feedback-line",
11987
12003
  class: "text-16"
11988
12004
  }),
11989
- H("strong", zp, E(N(n)("action.feedback")), 1),
12005
+ V("strong", zp, E(N(n)("action.feedback")), 1),
11990
12006
  J(a, {
11991
12007
  icon: "ri:close-line",
11992
12008
  modifiers: "action-quiet-small",
11993
12009
  title: N(n)("action.close"),
11994
12010
  class: "ml-auto",
11995
- onClick: r[0] ||= ke((e) => t.$emit("close"), ["stop"])
12011
+ onClick: r[0] ||= Ae((e) => t.$emit("close"), ["stop"])
11996
12012
  }, null, 8, ["title"])
11997
- ]), J(K, { mode: "out-in" }, {
11998
- default: C(() => [e.submitted ? (A(), q("div", Up, [H("div", Wp, [J(i, {
12013
+ ]), J(G, { mode: "out-in" }, {
12014
+ default: C(() => [e.submitted ? (A(), K("div", Up, [V("div", Wp, [J(i, {
11999
12015
  name: "ri:check-line",
12000
12016
  class: "text-16 text-success"
12001
- }), H("div", null, [H("strong", Gp, E(N(n)("message.feedbackSubmittedTitle")), 1), H("p", Kp, E(N(n)("message.feedbackSubmittedMessage")), 1)])])])) : (A(), q("div", Bp, [J(N(s), {
12017
+ }), V("div", null, [V("strong", Gp, E(N(n)("message.feedbackSubmittedTitle")), 1), V("p", Kp, E(N(n)("message.feedbackSubmittedMessage")), 1)])])])) : (A(), K("div", Bp, [J(N(s), {
12002
12018
  modelValue: N(l),
12003
- "onUpdate:modelValue": r[2] ||= (e) => z(l) ? l.value = e : null,
12019
+ "onUpdate:modelValue": r[2] ||= (e) => R(l) ? l.value = e : null,
12004
12020
  onSubmit: u
12005
12021
  }, {
12006
- default: C(() => [H("div", Vp, [e.error ? (A(), V(o, {
12022
+ default: C(() => [V("div", Vp, [e.error ? (A(), B(o, {
12007
12023
  key: 0,
12008
12024
  modifiers: "danger",
12009
12025
  class: "mb-sm",
@@ -12016,7 +12032,7 @@ var Lp = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
12016
12032
  placeholder: N(n)("placeholder.comment"),
12017
12033
  modifiers: "compact no-label",
12018
12034
  class: "mb-0"
12019
- }, null, 8, ["label", "placeholder"])]), H("div", Hp, [J(d, null, {
12035
+ }, null, 8, ["label", "placeholder"])]), V("div", Hp, [J(d, null, {
12020
12036
  default: C(() => [J(a, {
12021
12037
  type: "button",
12022
12038
  modifiers: "action-quiet",
@@ -12059,18 +12075,18 @@ var Jp = { class: "pk-message-feedback__badge" }, Yp = {
12059
12075
  __name: "PkChatbotMessageFeedback",
12060
12076
  props: { feedback: { type: null } },
12061
12077
  setup(e) {
12062
- let t = e, n = W(() => {
12078
+ let t = e, n = U(() => {
12063
12079
  if (t.feedback.vote) return;
12064
12080
  let e = t.feedback.metadata?.reactionEmoji;
12065
12081
  return typeof e == "string" && /\p{Extended_Pictographic}/u.test(e) ? e : void 0;
12066
- }), r = W(() => {
12082
+ }), r = U(() => {
12067
12083
  if (n.value) return "pk-message-feedback--neutral";
12068
12084
  switch (t.feedback.vote) {
12069
12085
  case "upvote": return "pk-message-feedback--positive";
12070
12086
  case "downvote": return "pk-message-feedback--negative";
12071
12087
  default: return "pk-message-feedback--neutral";
12072
12088
  }
12073
- }), i = W(() => {
12089
+ }), i = U(() => {
12074
12090
  switch (t.feedback.vote) {
12075
12091
  case "upvote": return "ri:thumb-up-fill";
12076
12092
  case "downvote": return "ri:thumb-down-fill";
@@ -12079,16 +12095,16 @@ var Jp = { class: "pk-message-feedback__badge" }, Yp = {
12079
12095
  });
12080
12096
  return (t, a) => {
12081
12097
  let o = an;
12082
- return A(), q("div", { class: Ne(["pk-message-feedback", r.value]) }, [H("span", Jp, [n.value ? (A(), q("span", Yp, E(n.value), 1)) : (A(), V(o, {
12098
+ return A(), K("div", { class: q(["pk-message-feedback", r.value]) }, [V("span", Jp, [n.value ? (A(), K("span", Yp, E(n.value), 1)) : (A(), B(o, {
12083
12099
  key: 1,
12084
12100
  name: i.value
12085
- }, null, 8, ["name"]))]), e.feedback.comment ? (A(), q("p", Xp, E(e.feedback.comment), 1)) : F("", !0)], 2);
12101
+ }, null, 8, ["name"]))]), e.feedback.comment ? (A(), K("p", Xp, E(e.feedback.comment), 1)) : F("", !0)], 2);
12086
12102
  };
12087
12103
  }
12088
12104
  }), [["styles", [".pk-message-feedback{align-items:center;gap:var(--spacing-8);padding:var(--spacing-6) var(--spacing-12) var(--spacing-6) var(--spacing-6);border-radius:var(--rounded-lg);background:var(--pk-feedback-surface);font-size:var(--text-12);color:var(--color-word-2);display:flex}.pk-message-feedback--positive{--pk-feedback-accent:var(--u-success-text,var(--color-success))}.pk-message-feedback--negative{--pk-feedback-accent:var(--u-danger-text,var(--color-danger))}.pk-message-feedback--neutral{--pk-feedback-accent:var(--color-surface-4)}.pk-message-feedback{--pk-feedback-surface:color-mix(in srgb, var(--pk-feedback-accent) 8%, var(--color-surface))}.pk-message-feedback__badge{width:var(--spacing-22,1.375rem);height:var(--spacing-22,1.375rem);border-radius:var(--rounded-full,9999px);background:var(--color-surface);color:var(--pk-feedback-accent);box-shadow:var(--shadow-sm);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.pk-message-feedback__emoji{font-size:var(--text-12);line-height:1}.pk-message-feedback__comment{white-space:pre-wrap;text-wrap:pretty;margin:0}"]]]);
12089
12105
  //#endregion
12090
12106
  //#region ../../packages/components/src/chat/PkChatbotAudioTranscript.vue?vue&type=script&setup=true&lang.ts
12091
- j(), U(), T();
12107
+ j(), H(), T();
12092
12108
  var Qp = { class: "pk-chatbot-audio" }, $p = ["src"], em = {
12093
12109
  key: 0,
12094
12110
  class: "pk-chatbot-audio__box",
@@ -12113,7 +12129,7 @@ var Qp = { class: "pk-chatbot-audio" }, $p = ["src"], em = {
12113
12129
  pending: { type: Boolean }
12114
12130
  },
12115
12131
  setup(e) {
12116
- let t = e, { t: n } = ze({ useScope: "global" }), r = G(!0), i = W(() => t.transcript?.status === "ready" ? t.transcript.text?.trim() : void 0), a = W(() => t.transcript?.durationSeconds ? ti(t.transcript.durationSeconds) : void 0), o = W(() => {
12132
+ let t = e, { t: n } = ze({ useScope: "global" }), r = W(!0), i = U(() => t.transcript?.status === "ready" ? t.transcript.text?.trim() : void 0), a = U(() => t.transcript?.durationSeconds ? ti(t.transcript.durationSeconds) : void 0), o = U(() => {
12117
12133
  switch (t.transcript?.status) {
12118
12134
  case "no-speech": return n("messagePart.audioTranscriptNoSpeech");
12119
12135
  case "failed": return n("messagePart.audioTranscriptFailed");
@@ -12123,15 +12139,15 @@ var Qp = { class: "pk-chatbot-audio" }, $p = ["src"], em = {
12123
12139
  });
12124
12140
  return (t, s) => {
12125
12141
  let c = an;
12126
- return A(), q("div", Qp, [H("audio", {
12142
+ return A(), K("div", Qp, [V("audio", {
12127
12143
  class: "pk-chatbot-audio__player",
12128
12144
  src: e.url,
12129
12145
  controls: "",
12130
12146
  preload: "none"
12131
- }, null, 8, $p), e.pending && !e.transcript ? (A(), q("div", em, [H("div", tm, [J(c, {
12147
+ }, null, 8, $p), e.pending && !e.transcript ? (A(), K("div", em, [V("div", tm, [J(c, {
12132
12148
  name: "loading-loop",
12133
12149
  class: "shrink-0"
12134
- }), H("span", nm, E(N(n)("messagePart.audioTranscribing")), 1)])])) : i.value ? (A(), q("div", rm, [H("button", {
12150
+ }), V("span", nm, E(N(n)("messagePart.audioTranscribing")), 1)])])) : i.value ? (A(), K("div", rm, [V("button", {
12135
12151
  type: "button",
12136
12152
  class: "pk-chatbot-audio__header pk-chatbot-audio__header--toggle",
12137
12153
  "aria-expanded": r.value,
@@ -12141,22 +12157,22 @@ var Qp = { class: "pk-chatbot-audio" }, $p = ["src"], em = {
12141
12157
  name: "ri:file-text-line",
12142
12158
  class: "shrink-0"
12143
12159
  }),
12144
- H("span", am, E(N(n)("messagePart.audioTranscript")), 1),
12145
- a.value ? (A(), q("span", om, E(a.value), 1)) : F("", !0),
12160
+ V("span", am, E(N(n)("messagePart.audioTranscript")), 1),
12161
+ a.value ? (A(), K("span", om, E(a.value), 1)) : F("", !0),
12146
12162
  J(c, {
12147
12163
  name: r.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
12148
12164
  class: "pk-chatbot-audio__chevron shrink-0 ml-auto"
12149
12165
  }, null, 8, ["name"])
12150
- ], 8, im), r.value ? (A(), q("div", sm, E(i.value), 1)) : F("", !0)])) : o.value ? (A(), q("div", cm, [H("div", lm, [J(c, {
12166
+ ], 8, im), r.value ? (A(), K("div", sm, E(i.value), 1)) : F("", !0)])) : o.value ? (A(), K("div", cm, [V("div", lm, [J(c, {
12151
12167
  name: "ri:file-text-line",
12152
12168
  class: "shrink-0"
12153
- }), H("span", null, E(o.value), 1)])])) : F("", !0)]);
12169
+ }), V("span", null, E(o.value), 1)])])) : F("", !0)]);
12154
12170
  };
12155
12171
  }
12156
12172
  }), [["styles", [".pk-chatbot-audio{align-items:flex-end;gap:var(--spacing-8);flex-direction:column;width:100%;min-width:0;max-width:28rem;display:flex}.pk-chatbot-audio__player{width:100%;max-width:280px}.pk-chatbot-audio__box{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface-1);width:100%;font-size:var(--text-12);color:var(--color-word-3);overflow:hidden}.pk-chatbot-audio__header{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-40);padding:var(--spacing-8) var(--spacing-sm);text-align:left;display:flex}.pk-chatbot-audio__header--toggle{cursor:pointer;transition:background-color .2s}.pk-chatbot-audio__header--toggle:hover{background-color:var(--color-surface-2)}.pk-chatbot-audio__title{color:var(--color-word-2);flex-grow:1;font-weight:600}.pk-chatbot-audio__meta{color:var(--color-word-4);font-variant-numeric:tabular-nums}.pk-chatbot-audio__chevron{font-size:var(--text-16)}.pk-chatbot-audio__body{max-height:var(--spacing-256);padding:var(--spacing-8) var(--spacing-sm);border-top:var(--spacing-px) solid var(--color-surface-3);background-color:var(--color-surface);color:var(--color-word-2);white-space:pre-line;overflow-wrap:anywhere;line-height:1.6;overflow:auto}"]]]);
12157
12173
  //#endregion
12158
12174
  //#region ../../packages/components/src/PkRelativeTime.vue?vue&type=script&setup=true&lang.ts
12159
- j(), T(), U();
12175
+ j(), T(), H();
12160
12176
  var dm = ["datetime"], fm = 6e4, pm = /* @__PURE__ */ w({
12161
12177
  __name: "PkRelativeTime",
12162
12178
  props: {
@@ -12183,16 +12199,16 @@ var dm = ["datetime"], fm = 6e4, pm = /* @__PURE__ */ w({
12183
12199
  }
12184
12200
  },
12185
12201
  setup(e) {
12186
- let t = e, { t: n } = ze({ useScope: "global" }), r = G(Date.now()), i = null, a = W(() => t.date instanceof Date ? t.date.getTime() : typeof t.date == "string" ? new Date(t.date).getTime() : t.date), o = W(() => t.endDate === void 0 ? null : t.endDate instanceof Date ? t.endDate.getTime() : typeof t.endDate == "string" ? new Date(t.endDate).getTime() : t.endDate), s = W(() => {
12202
+ let t = e, { t: n } = ze({ useScope: "global" }), r = W(Date.now()), i = null, a = U(() => t.date instanceof Date ? t.date.getTime() : typeof t.date == "string" ? new Date(t.date).getTime() : t.date), o = U(() => t.endDate === void 0 ? null : t.endDate instanceof Date ? t.endDate.getTime() : typeof t.endDate == "string" ? new Date(t.endDate).getTime() : t.endDate), s = U(() => {
12187
12203
  let e = o.value ?? r.value;
12188
12204
  return a.value - e;
12189
- }), c = W(() => t.endDate ? s.value > 0 : s.value > fm), l = W(() => Math.abs(s.value)), { formatDelta: u } = ef(), d = W(() => {
12205
+ }), c = U(() => t.endDate ? s.value > 0 : s.value > fm), l = U(() => Math.abs(s.value)), { formatDelta: u } = ef(), d = U(() => {
12190
12206
  let e = l.value;
12191
12207
  return u(e);
12192
- }), f = W(() => {
12208
+ }), f = U(() => {
12193
12209
  let { value: e, unit: r } = d.value;
12194
12210
  return t.endDate ? `${e} ${r}` : c.value ? `${n("time.future")} ${e} ${r}` : `${e} ${r} ${n("time.past")}`;
12195
- }), p = W(() => new Date(a.value).toISOString()), m = () => {
12211
+ }), p = U(() => new Date(a.value).toISOString()), m = () => {
12196
12212
  let e = Math.abs(Date.now() - a.value);
12197
12213
  return e < 6e4 ? t.updateInterval : e < 36e5 ? 6e4 : 36e5;
12198
12214
  }, h = () => {
@@ -12202,32 +12218,32 @@ var dm = ["datetime"], fm = 6e4, pm = /* @__PURE__ */ w({
12202
12218
  t.autoUpdate && !t.endDate && (i = setTimeout(h, m()));
12203
12219
  }), O(() => {
12204
12220
  i && clearTimeout(i);
12205
- }), (e, t) => (A(), q("time", { datetime: p.value }, E(f.value), 9, dm));
12221
+ }), (e, t) => (A(), K("time", { datetime: p.value }, E(f.value), 9, dm));
12206
12222
  }
12207
12223
  });
12208
12224
  //#endregion
12209
12225
  //#region ../../packages/components/src/chat/toolComponentMap.ts
12210
12226
  j();
12211
12227
  var mm = {
12212
- requestOAuthConnection: M(() => import("./_chunks/PkToolRequestOAuthConnection-klmrRZWz.js")),
12213
- showArtifact: M(() => import("./_chunks/PkToolShowArtifact-ChDm6ZEK.js")),
12214
- showCalendarEvent: M(() => import("./_chunks/PkToolShowCalendarEvent-CRVtR3oP.js")),
12228
+ requestOAuthConnection: M(() => import("./_chunks/PkToolRequestOAuthConnection-W3ilzpr7.js")),
12229
+ showArtifact: M(() => import("./_chunks/PkToolShowArtifact-DGGEb2LF.js")),
12230
+ showCalendarEvent: M(() => import("./_chunks/PkToolShowCalendarEvent-D8DMh3-P.js")),
12215
12231
  showComparison: M(() => import("./_chunks/PkToolShowComparison-DLC22e1W.js")),
12216
- showContactForm: M(() => import("./_chunks/PkToolShowContactForm-CfCy-b8w.js")),
12217
- showDiagram: M(() => import("./_chunks/PkToolShowDiagram-JpRMa4Jj.js")),
12232
+ showContactForm: M(() => import("./_chunks/PkToolShowContactForm-Dn6CEXF_.js")),
12233
+ showDiagram: M(() => import("./_chunks/PkToolShowDiagram-WregKAJO.js")),
12218
12234
  showEmail: M(() => import("./_chunks/PkToolShowEmail-C7mUCqGL.js")),
12219
- showImageGallery: M(() => import("./_chunks/PkToolShowImageGallery-Ab8fJ9jY.js")),
12220
- showLocation: M(() => import("./_chunks/PkToolShowLocation-D5d6bbP-.js")),
12235
+ showImageGallery: M(() => import("./_chunks/PkToolShowImageGallery-Dh0v2Df8.js")),
12236
+ showLocation: M(() => import("./_chunks/PkToolShowLocation-jRZtqoBO.js")),
12221
12237
  showMessage: M(() => import("./_chunks/PkToolShowMessage-vw4XS4TR.js")),
12222
- showForm: M(() => import("./_chunks/PkToolShowForm-DnIwTGl4.js")),
12223
- showMultipleChoice: M(() => import("./_chunks/PkToolShowForm-DnIwTGl4.js")),
12224
- showProductList: M(() => import("./_chunks/PkToolShowProductList-DztzZVDd.js")),
12238
+ showForm: M(() => import("./_chunks/PkToolShowForm-CbuToc8O.js")),
12239
+ showMultipleChoice: M(() => import("./_chunks/PkToolShowForm-CbuToc8O.js")),
12240
+ showProductList: M(() => import("./_chunks/PkToolShowProductList-bAis8u1t.js")),
12225
12241
  showQrCode: M(() => import("./_chunks/PkToolShowQrCode-BhcAUXSZ.js")),
12226
- showSources: M(() => import("./_chunks/PkToolShowSources-Bvg3f3GC.js")),
12242
+ showSources: M(() => import("./_chunks/PkToolShowSources-D532Worv.js")),
12227
12243
  showSuggestedReply: M(() => import("./_chunks/PkToolShowSuggestedReply-BISQY1ce.js")),
12228
- showVideo: M(() => import("./_chunks/PkToolShowVideo-DdoYLl7R.js")),
12229
- showWeather: M(() => import("./_chunks/PkToolShowWeather-CnpPZCLm.js")),
12230
- showWebPages: M(() => import("./_chunks/PkToolShowWebPages-BooCEJrs.js"))
12244
+ showVideo: M(() => import("./_chunks/PkToolShowVideo-DcMzLibC.js")),
12245
+ showWeather: M(() => import("./_chunks/PkToolShowWeather-DTrZ7r1t.js")),
12246
+ showWebPages: M(() => import("./_chunks/PkToolShowWebPages-RuwkZDMH.js"))
12231
12247
  };
12232
12248
  //#endregion
12233
12249
  //#region ../../packages/components/src/chat/PkToolApprovalPreviewMessage.vue?vue&type=script&setup=true&lang.ts
@@ -12239,16 +12255,16 @@ var hm = {
12239
12255
  __name: "PkToolApprovalPreviewMessage",
12240
12256
  props: { input: { type: null } },
12241
12257
  setup(e) {
12242
- let t = e, n = W(() => {
12258
+ let t = e, n = U(() => {
12243
12259
  let e = t.input;
12244
12260
  return typeof e?.message == "string" ? e.message : "";
12245
12261
  });
12246
- return (e, t) => n.value ? (A(), q("p", hm, E(n.value), 1)) : F("", !0);
12262
+ return (e, t) => n.value ? (A(), K("p", hm, E(n.value), 1)) : F("", !0);
12247
12263
  }
12248
12264
  }), _m = { [mt]: gm };
12249
12265
  //#endregion
12250
12266
  //#region ../../packages/components/src/chat/PkToolApprovalCard.vue?vue&type=script&setup=true&lang.ts
12251
- j(), T(), Ee(), U();
12267
+ j(), T(), De(), H();
12252
12268
  var vm = {
12253
12269
  key: 0,
12254
12270
  class: "text-12 text-word-3 m-0 mb-xs"
@@ -12261,10 +12277,10 @@ var vm = {
12261
12277
  },
12262
12278
  emits: ["respond"],
12263
12279
  setup(e, { emit: t }) {
12264
- let n = e, r = t, { t: i, te: a } = ze({ useScope: "global" }), o = W(() => n.part), s = W(() => Xe(n.part)), c = W(() => s.value === mt), l = W(() => c.value ? (o.value.state === "input-available" || kt(o.value.output)) && n.callVerdict === void 0 : o.value.state === "approval-requested"), u = W(() => l.value && n.actionable === !0), d = W(() => l.value && n.actionable !== !0), f = W(() => c.value ? o.value.output === "confirmed" || n.callVerdict === !0 : o.value.approval?.approved === !0), p = W(() => c.value ? o.value.output === "cancelled" || n.callVerdict === !1 : o.value.approval?.approved === !1 || o.value.state === "output-denied"), m = W(() => _m[s.value]), h = W(() => m.value ? i("toolApproval.prompt") : i("toolApproval.promptNamed", { tool: Qe(s.value, {
12280
+ let n = e, r = t, { t: i, te: a } = ze({ useScope: "global" }), o = U(() => n.part), s = U(() => Xe(n.part)), c = U(() => s.value === mt), l = U(() => c.value ? (o.value.state === "input-available" || kt(o.value.output)) && n.callVerdict === void 0 : o.value.state === "approval-requested"), u = U(() => l.value && n.actionable === !0), d = U(() => l.value && n.actionable !== !0), f = U(() => c.value ? o.value.output === "confirmed" || n.callVerdict === !0 : o.value.approval?.approved === !0), p = U(() => c.value ? o.value.output === "cancelled" || n.callVerdict === !1 : o.value.approval?.approved === !1 || o.value.state === "output-denied"), m = U(() => _m[s.value]), h = U(() => m.value ? i("toolApproval.prompt") : i("toolApproval.promptNamed", { tool: Qe(s.value, {
12265
12281
  t: i,
12266
12282
  te: a
12267
- }) })), g = W(() => {
12283
+ }) })), g = U(() => {
12268
12284
  if (d.value) return {
12269
12285
  icon: "ri:time-line",
12270
12286
  message: i("toolApproval.expired")
@@ -12277,39 +12293,39 @@ var vm = {
12277
12293
  icon: "ri:close-line",
12278
12294
  message: i(c.value ? "toolApproval.cancelled" : "toolApproval.denied")
12279
12295
  };
12280
- }), _ = W(() => !!g.value && !m.value);
12296
+ }), _ = U(() => !!g.value && !m.value);
12281
12297
  return (t, n) => {
12282
12298
  let a = sn, s = Zt, d = an;
12283
- return A(), q("div", { class: Ne(["w-full overflow-hidden transition-all duration-300", { "bg-surface p-sm rounded-xl border border-surface-3": !_.value }]) }, [
12284
- J(K, null, {
12285
- default: C(() => [!c.value && l.value ? (A(), q("p", vm, E(h.value), 1)) : F("", !0)]),
12299
+ return A(), K("div", { class: q(["w-full overflow-hidden transition-all duration-300", { "bg-surface p-sm rounded-xl border border-surface-3": !_.value }]) }, [
12300
+ J(G, null, {
12301
+ default: C(() => [!c.value && l.value ? (A(), K("p", vm, E(h.value), 1)) : F("", !0)]),
12286
12302
  _: 1
12287
12303
  }),
12288
- m.value ? (A(), V(oe(m.value), {
12304
+ m.value ? (A(), B(oe(m.value), {
12289
12305
  key: 0,
12290
12306
  part: e.part,
12291
12307
  input: o.value.input
12292
12308
  }, null, 8, ["part", "input"])) : F("", !0),
12293
- J(K, { mode: "out-in" }, {
12294
- default: C(() => [g.value ? (A(), q("p", {
12309
+ J(G, { mode: "out-in" }, {
12310
+ default: C(() => [g.value ? (A(), K("p", {
12295
12311
  key: 1,
12296
- class: Ne(["flex items-center gap-4 text-12 text-word-3 m-0", { "mt-xs": m.value }])
12312
+ class: q(["flex items-center gap-4 text-12 text-word-3 m-0", { "mt-xs": m.value }])
12297
12313
  }, [J(d, {
12298
12314
  name: g.value.icon,
12299
12315
  class: "shrink-0"
12300
- }, null, 8, ["name"]), L(" " + E(g.value.message), 1)], 2)) : (A(), V(s, { key: 0 }, {
12316
+ }, null, 8, ["name"]), I(" " + E(g.value.message), 1)], 2)) : (A(), B(s, { key: 0 }, {
12301
12317
  default: C(() => [J(a, {
12302
12318
  modifiers: "primary-small",
12303
12319
  disabled: !u.value,
12304
12320
  icon: "ri:check-line",
12305
12321
  label: N(i)("action.proceed"),
12306
- onClick: n[0] ||= ke((e) => r("respond", !0), ["stop"])
12322
+ onClick: n[0] ||= Ae((e) => r("respond", !0), ["stop"])
12307
12323
  }, null, 8, ["disabled", "label"]), J(a, {
12308
12324
  modifiers: "action-quiet-small",
12309
12325
  disabled: !u.value,
12310
12326
  icon: "ri:close-line",
12311
12327
  label: N(i)("action.cancel"),
12312
- onClick: n[1] ||= ke((e) => r("respond", !1), ["stop"])
12328
+ onClick: n[1] ||= Ae((e) => r("respond", !1), ["stop"])
12313
12329
  }, null, 8, ["disabled", "label"])]),
12314
12330
  _: 1
12315
12331
  }))]),
@@ -12321,7 +12337,7 @@ var vm = {
12321
12337
  });
12322
12338
  //#endregion
12323
12339
  //#region ../../packages/components/src/chat/PkStreamingMarkdownAutoscroll.vue?vue&type=script&setup=true&lang.ts
12324
- j(), T(), U();
12340
+ j(), T(), H();
12325
12341
  var bm = 8, xm = /* @__PURE__ */ w({
12326
12342
  __name: "PkStreamingMarkdownAutoscroll",
12327
12343
  props: {
@@ -12331,14 +12347,14 @@ var bm = 8, xm = /* @__PURE__ */ w({
12331
12347
  tailLength: { type: Number }
12332
12348
  },
12333
12349
  setup(e) {
12334
- let t = G(), n = G(), r = !1, i, a = () => {
12350
+ let t = W(), n = W(), r = !1, i, a = () => {
12335
12351
  let e = t.value;
12336
12352
  e && e.scrollTop !== i && (i = void 0, r = e.scrollHeight - e.clientHeight - e.scrollTop > bm);
12337
12353
  };
12338
12354
  return Jt([t, n], () => {
12339
12355
  let e = t.value;
12340
12356
  e && (e.scrollHeight <= e.clientHeight && (r = !1), !r && (e.scrollTop = e.scrollHeight, i = e.scrollTop));
12341
- }), (r, i) => (A(), q("div", {
12357
+ }), (r, i) => (A(), K("div", {
12342
12358
  ref_key: "scrollEl",
12343
12359
  ref: t,
12344
12360
  class: "overflow-auto light-scrollbar",
@@ -12349,7 +12365,7 @@ var bm = 8, xm = /* @__PURE__ */ w({
12349
12365
  markdown: e.markdown,
12350
12366
  "is-dark": e.isDark,
12351
12367
  "tail-length": e.tailLength,
12352
- class: Ne(e.innerClass)
12368
+ class: q(e.innerClass)
12353
12369
  }, null, 8, [
12354
12370
  "markdown",
12355
12371
  "is-dark",
@@ -12360,7 +12376,7 @@ var bm = 8, xm = /* @__PURE__ */ w({
12360
12376
  });
12361
12377
  //#endregion
12362
12378
  //#region ../../packages/components/src/chat/PkChatbotStepPayload.vue?vue&type=script&setup=true&lang.ts
12363
- j(), T(), U();
12379
+ j(), T(), H();
12364
12380
  var Sm = {
12365
12381
  key: 0,
12366
12382
  class: "pk-chatbot-step-payload"
@@ -12390,50 +12406,50 @@ var Sm = {
12390
12406
  if (e === void 0) return "";
12391
12407
  let t = (typeof e == "string" ? e : r(e) ?? "").replace(/\s+/g, " ").trim();
12392
12408
  return t.length > jm ? `${t.slice(0, jm)}…` : t;
12393
- }, a = W(() => {
12409
+ }, a = U(() => {
12394
12410
  let e = t.value;
12395
12411
  if (Array.isArray(e)) return e.length ? e.map((e, t) => [`${t + 1}`, e]) : void 0;
12396
12412
  if (e && typeof e == "object") {
12397
12413
  let t = Object.entries(e);
12398
12414
  return t.length ? t : void 0;
12399
12415
  }
12400
- }), o = W(() => a.value?.map(([e, t]) => {
12416
+ }), o = U(() => a.value?.map(([e, t]) => {
12401
12417
  let n = i(t), a = typeof t == "string" ? t : r(t, 2);
12402
12418
  return {
12403
12419
  key: e,
12404
12420
  preview: n || "-",
12405
12421
  full: a && a.trim() !== n ? a : void 0
12406
12422
  };
12407
- })), s = W(() => o.value ? void 0 : Ke(t.value)), c = W(() => {
12423
+ })), s = U(() => o.value ? void 0 : Ke(t.value)), c = U(() => {
12408
12424
  let e = o.value;
12409
12425
  return e ? Array.isArray(t.value) ? n("messagePart.stepItems", e.length) : e.length === 1 ? `${e[0].key}: ${e[0].preview}` : e.map((e) => e.key).join(" · ") : i(t.value);
12410
- }), l = G(!1), u = ge(/* @__PURE__ */ new Set()), d = (e) => {
12426
+ }), l = W(!1), u = _e(/* @__PURE__ */ new Set()), d = (e) => {
12411
12427
  u.has(e) ? u.delete(e) : u.add(e);
12412
12428
  };
12413
12429
  return (t, n) => {
12414
12430
  let r = an;
12415
- return o.value || s.value ? (A(), q("div", Sm, [H("button", {
12431
+ return o.value || s.value ? (A(), K("div", Sm, [V("button", {
12416
12432
  type: "button",
12417
12433
  class: "pk-chatbot-step-payload__header",
12418
12434
  "aria-expanded": l.value,
12419
12435
  onClick: n[0] ||= (e) => l.value = !l.value
12420
12436
  }, [
12421
- H("span", wm, E(e.label), 1),
12422
- H("span", Tm, E(c.value), 1),
12437
+ V("span", wm, E(e.label), 1),
12438
+ V("span", Tm, E(c.value), 1),
12423
12439
  J(r, {
12424
12440
  name: l.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
12425
12441
  class: "shrink-0"
12426
12442
  }, null, 8, ["name"])
12427
- ], 8, Cm), l.value && o.value ? (A(), q("ul", Em, [(A(!0), q(B, null, Le(o.value, (e) => (A(), q("li", { key: e.key }, [(A(), V(oe(e.full ? "button" : "div"), {
12443
+ ], 8, Cm), l.value && o.value ? (A(), K("ul", Em, [(A(!0), K(z, null, Le(o.value, (e) => (A(), K("li", { key: e.key }, [(A(), B(oe(e.full ? "button" : "div"), {
12428
12444
  type: e.full ? "button" : void 0,
12429
12445
  class: "pk-chatbot-step-payload__row",
12430
12446
  "aria-expanded": e.full ? u.has(e.key) : void 0,
12431
12447
  onClick: (t) => e.full ? d(e.key) : void 0
12432
12448
  }, {
12433
12449
  default: C(() => [
12434
- H("span", Dm, E(e.key), 1),
12435
- H("span", Om, E(e.preview), 1),
12436
- e.full ? (A(), V(r, {
12450
+ V("span", Dm, E(e.key), 1),
12451
+ V("span", Om, E(e.preview), 1),
12452
+ e.full ? (A(), B(r, {
12437
12453
  key: 0,
12438
12454
  name: u.has(e.key) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
12439
12455
  class: "shrink-0"
@@ -12444,13 +12460,13 @@ var Sm = {
12444
12460
  "type",
12445
12461
  "aria-expanded",
12446
12462
  "onClick"
12447
- ])), e.full && u.has(e.key) ? (A(), q("pre", km, E(e.full), 1)) : F("", !0)]))), 128))])) : l.value ? (A(), q("pre", Am, E(s.value), 1)) : F("", !0)])) : F("", !0);
12463
+ ])), e.full && u.has(e.key) ? (A(), K("pre", km, E(e.full), 1)) : F("", !0)]))), 128))])) : l.value ? (A(), K("pre", Am, E(s.value), 1)) : F("", !0)])) : F("", !0);
12448
12464
  };
12449
12465
  }
12450
12466
  }), [["styles", [".pk-chatbot-step-payload{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded);background-color:var(--color-surface-1);overflow:hidden}.pk-chatbot-step-payload__header{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-28);padding:var(--spacing-4) var(--spacing-8);text-align:left;cursor:pointer;transition:background-color .2s;display:flex}.pk-chatbot-step-payload__header:hover{background-color:var(--color-surface-2)}.pk-chatbot-step-payload__label{font-weight:600;font-size:var(--text-10);text-transform:uppercase;letter-spacing:.05em;color:var(--color-word-3);flex-shrink:0}.pk-chatbot-step-payload__summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--font-mono);font-size:var(--text-10);color:var(--color-word-4);flex:1 1 0;overflow:hidden}.pk-chatbot-step-payload__rows>li{border-top:var(--spacing-px) solid var(--color-surface-3)}.pk-chatbot-step-payload__row{align-items:baseline;gap:var(--spacing-8);width:100%;padding:var(--spacing-4) var(--spacing-8);text-align:left;font-size:var(--text-10);display:flex}.pk-chatbot-step-payload__row:is(button){cursor:pointer;transition:background-color .2s}.pk-chatbot-step-payload__row:is(button):hover{background-color:var(--color-surface-2)}.pk-chatbot-step-payload__key{text-overflow:ellipsis;white-space:nowrap;max-width:40%;font-family:var(--font-mono);color:var(--color-word-4);flex-shrink:0;overflow:hidden}.pk-chatbot-step-payload__value{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--color-word-2);flex:1 1 0;overflow:hidden}.pk-chatbot-step-payload__full{padding:var(--spacing-8);border-top:var(--spacing-px) solid var(--color-surface-3);max-height:var(--spacing-160);white-space:pre-wrap;word-break:break-word;font-family:var(--font-mono);font-size:var(--text-10);color:var(--color-word-3);overflow:auto}"]]]);
12451
12467
  //#endregion
12452
12468
  //#region ../../packages/components/src/chat/PkChatbotStepToolDetail.vue?vue&type=script&setup=true&lang.ts
12453
- j(), T(), U(), Ee();
12469
+ j(), T(), H(), De();
12454
12470
  var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12455
12471
  key: 0,
12456
12472
  class: "pk-chatbot-step-detail__chips"
@@ -12488,7 +12504,7 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12488
12504
  }, a = (e) => {
12489
12505
  let t = e?.latitude, n = e?.longitude;
12490
12506
  if (typeof t == "number" && typeof n == "number") return `${t.toFixed(4)}, ${n.toFixed(4)}`;
12491
- }, o = W(() => "input" in t.part ? t.part.input : void 0), s = W(() => "output" in t.part ? t.part.output : void 0), c = W(() => r(o.value)), l = W(() => r(s.value)), u = W(() => {
12507
+ }, o = U(() => "input" in t.part ? t.part.input : void 0), s = U(() => "output" in t.part ? t.part.output : void 0), c = U(() => r(o.value)), l = U(() => r(s.value)), u = U(() => {
12492
12508
  let e = c.value?.queries ?? c.value?.query ?? c.value?.objective;
12493
12509
  return typeof e == "string" && e.trim() ? [e] : Array.isArray(e) ? e.filter((e) => typeof e == "string" && !!e.trim()) : [];
12494
12510
  }), d = (e) => {
@@ -12501,7 +12517,7 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12501
12517
  record: e,
12502
12518
  relevance: n[t]
12503
12519
  }));
12504
- }, p = W(() => {
12520
+ }, p = U(() => {
12505
12521
  let e = l.value?.results;
12506
12522
  if (!Array.isArray(e)) return;
12507
12523
  let t = /* @__PURE__ */ new Map();
@@ -12528,10 +12544,10 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12528
12544
  relevance: o[t],
12529
12545
  body: e.chunks.join("\n\n· · ·\n\n") || void 0
12530
12546
  }));
12531
- }), m = W(() => {
12547
+ }), m = U(() => {
12532
12548
  let e = r(l.value?.repeated)?.count;
12533
12549
  return typeof e == "number" ? e : 0;
12534
- }), h = W(() => {
12550
+ }), h = U(() => {
12535
12551
  let e = [], t = r(l.value?.inputTruncated)?.dropped;
12536
12552
  Array.isArray(t) && t.length && e.push({
12537
12553
  icon: "ri:scissors-cut-line",
@@ -12546,7 +12562,7 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12546
12562
  });
12547
12563
  }
12548
12564
  return e;
12549
- }), g = W(() => f(l.value?.results)?.map(({ record: e, relevance: t }, r) => ({
12565
+ }), g = U(() => f(l.value?.results)?.map(({ record: e, relevance: t }, r) => ({
12550
12566
  key: i(e, "revisedAnswerId") ?? `revised-${r}`,
12551
12567
  icon: "ri:file-edit-line",
12552
12568
  title: i(e, "userQuestion") ?? n("messagePart.revisedAnswers"),
@@ -12625,30 +12641,30 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12625
12641
  chips: u.value,
12626
12642
  rawOutput: s.value
12627
12643
  } : {};
12628
- }, b = W(() => {
12644
+ }, b = U(() => {
12629
12645
  let e = y();
12630
12646
  return h.value.length && (e.facts = [...h.value, ...e.facts ?? []]), l.value?.searchUnavailable && (e.showEmpty = !1), e.chips?.length || e.facts?.length || e.passage || e.showEmpty || e.hits?.length || (e.rawInput = o.value, e.rawOutput ??= s.value), e;
12631
- }), x = ge(/* @__PURE__ */ new Set()), S = (e) => {
12647
+ }), x = _e(/* @__PURE__ */ new Set()), S = (e) => {
12632
12648
  x.has(e) ? x.delete(e) : x.add(e);
12633
12649
  };
12634
12650
  return (e, t) => {
12635
12651
  let r = an;
12636
- return A(), q("div", Nm, [
12637
- b.value.chips?.length ? (A(), q("ul", Pm, [(A(!0), q(B, null, Le(b.value.chips, (e, t) => (A(), q("li", {
12652
+ return A(), K("div", Nm, [
12653
+ b.value.chips?.length ? (A(), K("ul", Pm, [(A(!0), K(z, null, Le(b.value.chips, (e, t) => (A(), K("li", {
12638
12654
  key: `${t}-${e}`,
12639
12655
  class: "pk-chatbot-step-detail__chip"
12640
12656
  }, [J(r, {
12641
12657
  name: "ri:search-line",
12642
12658
  class: "shrink-0"
12643
- }), H("span", Fm, E(e), 1)]))), 128))])) : F("", !0),
12644
- (A(!0), q(B, null, Le(b.value.facts, (e, t) => (A(), q("div", {
12659
+ }), V("span", Fm, E(e), 1)]))), 128))])) : F("", !0),
12660
+ (A(!0), K(z, null, Le(b.value.facts, (e, t) => (A(), K("div", {
12645
12661
  key: `${t}-${e.text}`,
12646
12662
  class: "pk-chatbot-step-detail__fact"
12647
12663
  }, [J(r, {
12648
12664
  name: e.icon,
12649
12665
  class: "shrink-0"
12650
- }, null, 8, ["name"]), H("span", null, E(e.text), 1)]))), 128)),
12651
- b.value.showEmpty ? (A(), q("div", Im, E(N(n)("messagePart.stepNoResults")), 1)) : b.value.hits?.length ? (A(), q("ul", Lm, [(A(!0), q(B, null, Le(b.value.hits, (e) => (A(), q("li", { key: e.key }, [(A(), V(oe(e.body ? "button" : "div"), {
12666
+ }, null, 8, ["name"]), V("span", null, E(e.text), 1)]))), 128)),
12667
+ b.value.showEmpty ? (A(), K("div", Im, E(N(n)("messagePart.stepNoResults")), 1)) : b.value.hits?.length ? (A(), K("ul", Lm, [(A(!0), K(z, null, Le(b.value.hits, (e) => (A(), K("li", { key: e.key }, [(A(), B(oe(e.body ? "button" : "div"), {
12652
12668
  type: e.body ? "button" : void 0,
12653
12669
  class: "pk-chatbot-step-detail__hit-header",
12654
12670
  "aria-expanded": e.body ? x.has(e.key) : void 0,
@@ -12659,20 +12675,20 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12659
12675
  name: e.icon,
12660
12676
  class: "pk-chatbot-step-detail__hit-icon"
12661
12677
  }, null, 8, ["name"]),
12662
- H("span", Rm, [H("span", zm, E(e.title), 1), e.url ? (A(), q("a", {
12678
+ V("span", Rm, [V("span", zm, E(e.title), 1), e.url ? (A(), K("a", {
12663
12679
  key: 0,
12664
12680
  href: e.url,
12665
12681
  target: "_blank",
12666
12682
  rel: "noopener noreferrer",
12667
12683
  class: "pk-chatbot-step-detail__link",
12668
- onClick: t[0] ||= ke(() => {}, ["stop"])
12684
+ onClick: t[0] ||= Ae(() => {}, ["stop"])
12669
12685
  }, [J(r, { name: "ri:external-link-line" })], 8, Bm)) : F("", !0)]),
12670
- e.meta ? (A(), q("span", Vm, E(e.meta), 1)) : F("", !0),
12671
- e.relevance === void 0 ? F("", !0) : (A(), q("span", Hm, [H("span", {
12686
+ e.meta ? (A(), K("span", Vm, E(e.meta), 1)) : F("", !0),
12687
+ e.relevance === void 0 ? F("", !0) : (A(), K("span", Hm, [V("span", {
12672
12688
  class: "pk-chatbot-step-detail__relevance-fill",
12673
12689
  style: re({ width: `${Math.round(e.relevance * 100)}%` })
12674
12690
  }, null, 4)])),
12675
- e.body ? (A(), V(r, {
12691
+ e.body ? (A(), B(r, {
12676
12692
  key: 2,
12677
12693
  name: x.has(e.key) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
12678
12694
  class: "shrink-0"
@@ -12683,21 +12699,21 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12683
12699
  "type",
12684
12700
  "aria-expanded",
12685
12701
  "onClick"
12686
- ])), e.body && x.has(e.key) ? (A(), q("div", Um, E(e.body), 1)) : F("", !0)]))), 128))])) : F("", !0),
12687
- b.value.passage ? (A(), q("div", Wm, [H("div", Gm, [
12702
+ ])), e.body && x.has(e.key) ? (A(), K("div", Um, E(e.body), 1)) : F("", !0)]))), 128))])) : F("", !0),
12703
+ b.value.passage ? (A(), K("div", Wm, [V("div", Gm, [
12688
12704
  J(r, {
12689
12705
  name: "ri:file-text-line",
12690
12706
  class: "shrink-0"
12691
12707
  }),
12692
- H("span", Km, [H("span", qm, E(b.value.passage.title ?? N(n)("messagePart.stepDocument")), 1)]),
12693
- b.value.passage.meta ? (A(), q("span", Jm, E(b.value.passage.meta), 1)) : F("", !0)
12694
- ]), H("div", Ym, E(b.value.passage.content), 1)])) : F("", !0),
12695
- N(bt)(b.value.rawInput) ? (A(), V(Mm, {
12708
+ V("span", Km, [V("span", qm, E(b.value.passage.title ?? N(n)("messagePart.stepDocument")), 1)]),
12709
+ b.value.passage.meta ? (A(), K("span", Jm, E(b.value.passage.meta), 1)) : F("", !0)
12710
+ ]), V("div", Ym, E(b.value.passage.content), 1)])) : F("", !0),
12711
+ N(bt)(b.value.rawInput) ? (A(), B(Mm, {
12696
12712
  key: 4,
12697
12713
  label: N(n)("messagePart.stepInput"),
12698
12714
  value: b.value.rawInput
12699
12715
  }, null, 8, ["label", "value"])) : F("", !0),
12700
- N(bt)(b.value.rawOutput) ? (A(), V(Mm, {
12716
+ N(bt)(b.value.rawOutput) ? (A(), B(Mm, {
12701
12717
  key: 5,
12702
12718
  label: N(n)("messagePart.stepOutput"),
12703
12719
  value: b.value.rawOutput
@@ -12708,7 +12724,7 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
12708
12724
  }), [["styles", [".pk-chatbot-step-detail{gap:var(--spacing-8);font-size:var(--text-12);color:var(--color-word-3);flex-direction:column;display:flex}.pk-chatbot-step-detail__chips{gap:var(--spacing-4);flex-wrap:wrap;display:flex}.pk-chatbot-step-detail__chip{align-items:center;gap:var(--spacing-4);max-width:100%;padding:var(--spacing-2) var(--spacing-8);border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded-full);background-color:var(--color-surface-1);color:var(--color-word-2);display:inline-flex}.pk-chatbot-step-detail__chip-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.pk-chatbot-step-detail__fact{align-items:center;gap:var(--spacing-8);color:var(--color-word-2);display:flex}.pk-chatbot-step-detail__empty{color:var(--color-word-4);font-style:italic}.pk-chatbot-step-detail__hits{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded);background-color:var(--color-surface-1);flex-direction:column;display:flex;overflow:hidden}.pk-chatbot-step-detail__hits>li+li{border-top:var(--spacing-px) solid var(--color-surface-3)}.pk-chatbot-step-detail__hit-header{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-32);padding:var(--spacing-4) var(--spacing-8);text-align:left;display:flex}.pk-chatbot-step-detail__hit-header:is(button){cursor:pointer;transition:background-color .2s}.pk-chatbot-step-detail__hit-header:is(button):hover{background-color:var(--color-surface-2)}.pk-chatbot-step-detail__hit-icon{color:var(--color-word-3);flex-shrink:0}.pk-chatbot-step-detail__hit-heading{align-items:center;gap:var(--spacing-4);flex:1 1 0;min-width:0;display:flex}.pk-chatbot-step-detail__hit-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--color-word-2);overflow:hidden}.pk-chatbot-step-detail__hit-meta{color:var(--color-word-4);font-variant-numeric:tabular-nums;white-space:nowrap}.pk-chatbot-step-detail__relevance{width:var(--spacing-40);height:var(--spacing-4);border-radius:var(--rounded-full);background-color:var(--color-surface-3);flex-shrink:0;overflow:hidden}.pk-chatbot-step-detail__relevance-fill{border-radius:inherit;background-color:var(--chatbot-main-color,var(--color-word-4));height:100%;display:block}.pk-chatbot-step-detail__link{color:var(--color-word-4);flex-shrink:0;display:inline-flex}.pk-chatbot-step-detail__link:hover{color:var(--color-word-1)}.pk-chatbot-step-detail__hit-body,.pk-chatbot-step-detail__passage-content{padding:var(--spacing-8);max-height:var(--spacing-160);white-space:pre-wrap;word-break:break-word;color:var(--color-word-3);overflow:auto}.pk-chatbot-step-detail__hit-body{border-top:var(--spacing-px) solid var(--color-surface-3)}.pk-chatbot-step-detail__passage{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded);background-color:var(--color-surface-1);overflow:hidden}.pk-chatbot-step-detail__passage-header{align-items:center;gap:var(--spacing-8);min-height:var(--spacing-32);padding:var(--spacing-4) var(--spacing-8);border-bottom:var(--spacing-px) solid var(--color-surface-3);display:flex}"]]]);
12709
12725
  //#endregion
12710
12726
  //#region ../../packages/components/src/chat/PkChatbotSteps.vue?vue&type=script&setup=true&lang.ts
12711
- j(), U(), T();
12727
+ j(), H(), T();
12712
12728
  var Zm = {
12713
12729
  key: 0,
12714
12730
  class: "pk-chatbot-steps"
@@ -12736,7 +12752,7 @@ var Zm = {
12736
12752
  isDark: { type: Boolean }
12737
12753
  },
12738
12754
  setup(e) {
12739
- let t = e, { t: n, n: r } = ze({ useScope: "global" }), i = (e) => gt(e) === "output-error" && "errorText" in e && typeof e.errorText == "string" ? e.errorText : void 0, a = W(() => {
12755
+ let t = e, { t: n, n: r } = ze({ useScope: "global" }), i = (e) => gt(e) === "output-error" && "errorText" in e && typeof e.errorText == "string" ? e.errorText : void 0, a = U(() => {
12740
12756
  let e = t.message.parts, r = t.message.metadata?.partTimings, a = [];
12741
12757
  for (let [o, s] of e.entries()) {
12742
12758
  let c = $e(s), l = Je(s);
@@ -12759,58 +12775,58 @@ var Zm = {
12759
12775
  });
12760
12776
  }
12761
12777
  return a;
12762
- }), o = W(() => {
12778
+ }), o = U(() => {
12763
12779
  let { createdAt: e, completedAt: n } = t.message.metadata ?? {};
12764
12780
  if (e && n) return n - e;
12765
- }), s = (e) => ot(r, e), c = ge(/* @__PURE__ */ new Map()), l = (e) => c.get(e.key) ?? !1, u = (e) => {
12781
+ }), s = (e) => ot(r, e), c = _e(/* @__PURE__ */ new Map()), l = (e) => c.get(e.key) ?? !1, u = (e) => {
12766
12782
  c.set(e.key, !l(e));
12767
- }, d = G(void 0), f = W(() => d.value ?? (!!t.isStreaming && !t.hasContent));
12783
+ }, d = W(void 0), f = U(() => d.value ?? (!!t.isStreaming && !t.hasContent));
12768
12784
  return P(() => t.isStreaming, (e) => {
12769
12785
  e && (d.value = void 0, c.clear());
12770
12786
  }), (t, r) => {
12771
12787
  let i = an;
12772
- return a.value.length ? (A(), q("div", Zm, [H("button", {
12788
+ return a.value.length ? (A(), K("div", Zm, [V("button", {
12773
12789
  type: "button",
12774
12790
  class: "pk-chatbot-steps__header",
12775
12791
  "aria-expanded": f.value,
12776
12792
  onClick: r[0] ||= (e) => d.value = !f.value
12777
12793
  }, [
12778
- e.isStreaming ? (A(), V(i, {
12794
+ e.isStreaming ? (A(), B(i, {
12779
12795
  key: 0,
12780
12796
  name: "loading-loop",
12781
12797
  class: "shrink-0"
12782
- })) : (A(), V(i, {
12798
+ })) : (A(), B(i, {
12783
12799
  key: 1,
12784
12800
  name: "ri:route-line",
12785
12801
  class: "shrink-0"
12786
12802
  })),
12787
- H("span", $m, E(N(n)("messagePart.steps")), 1),
12788
- H("span", eh, [L(E(N(n)("messagePart.stepCount", a.value.length)) + " ", 1), s(o.value) ? (A(), q(B, { key: 0 }, [L(" · " + E(s(o.value)), 1)], 64)) : F("", !0)]),
12803
+ V("span", $m, E(N(n)("messagePart.steps")), 1),
12804
+ V("span", eh, [I(E(N(n)("messagePart.stepCount", a.value.length)) + " ", 1), s(o.value) ? (A(), K(z, { key: 0 }, [I(" · " + E(s(o.value)), 1)], 64)) : F("", !0)]),
12789
12805
  J(i, {
12790
12806
  name: f.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
12791
12807
  class: "pk-chatbot-steps__chevron shrink-0 ml-auto"
12792
12808
  }, null, 8, ["name"])
12793
- ], 8, Qm), f.value ? (A(), q("ol", th, [(A(!0), q(B, null, Le(a.value, (t) => (A(), q("li", {
12809
+ ], 8, Qm), f.value ? (A(), K("ol", th, [(A(!0), K(z, null, Le(a.value, (t) => (A(), K("li", {
12794
12810
  key: t.key,
12795
- class: Ne(["pk-chatbot-steps__step", { "pk-chatbot-steps__step--active": t.isActive }])
12796
- }, [(A(), V(oe(t.hasBody ? "button" : "div"), {
12811
+ class: q(["pk-chatbot-steps__step", { "pk-chatbot-steps__step--active": t.isActive }])
12812
+ }, [(A(), B(oe(t.hasBody ? "button" : "div"), {
12797
12813
  type: t.hasBody ? "button" : void 0,
12798
12814
  class: "pk-chatbot-steps__step-header",
12799
12815
  "aria-expanded": t.hasBody ? l(t) : void 0,
12800
12816
  onClick: (e) => t.hasBody ? u(t) : void 0
12801
12817
  }, {
12802
12818
  default: C(() => [
12803
- H("span", { class: Ne(["pk-chatbot-steps-marker", { "pk-chatbot-steps-marker--active": t.isActive }]) }, [t.isActive ? (A(), V(i, {
12819
+ V("span", { class: q(["pk-chatbot-steps-marker", { "pk-chatbot-steps-marker--active": t.isActive }]) }, [t.isActive ? (A(), B(i, {
12804
12820
  key: 0,
12805
12821
  name: "loading-loop"
12806
- })) : t.icon ? (A(), V(i, {
12822
+ })) : t.icon ? (A(), B(i, {
12807
12823
  key: 1,
12808
12824
  name: t.icon
12809
12825
  }, null, 8, ["name"])) : F("", !0)], 2),
12810
- H("span", nh, E(t.label), 1),
12811
- H("span", rh, E(t.summary), 1),
12812
- s(t.durationMs) ? (A(), q("span", ih, E(s(t.durationMs)), 1)) : F("", !0),
12813
- t.hasBody ? (A(), V(i, {
12826
+ V("span", nh, E(t.label), 1),
12827
+ V("span", rh, E(t.summary), 1),
12828
+ s(t.durationMs) ? (A(), K("span", ih, E(s(t.durationMs)), 1)) : F("", !0),
12829
+ t.hasBody ? (A(), B(i, {
12814
12830
  key: 1,
12815
12831
  name: l(t) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
12816
12832
  class: "pk-chatbot-steps__chevron shrink-0 ml-auto"
@@ -12821,7 +12837,7 @@ var Zm = {
12821
12837
  "type",
12822
12838
  "aria-expanded",
12823
12839
  "onClick"
12824
- ])), t.hasBody && l(t) ? (A(), q("div", ah, [t.text && t.isActive ? (A(), V(xm, {
12840
+ ])), t.hasBody && l(t) ? (A(), K("div", ah, [t.text && t.isActive ? (A(), B(xm, {
12825
12841
  key: 0,
12826
12842
  markdown: t.text,
12827
12843
  "is-dark": e.isDark,
@@ -12832,18 +12848,18 @@ var Zm = {
12832
12848
  "markdown",
12833
12849
  "is-dark",
12834
12850
  "tail-length"
12835
- ])) : t.text ? (A(), q("div", oh, [J(yt, {
12851
+ ])) : t.text ? (A(), K("div", oh, [J(yt, {
12836
12852
  markdown: t.text,
12837
12853
  "is-dark": e.isDark,
12838
12854
  class: "wysiwyg"
12839
- }, null, 8, ["markdown", "is-dark"])])) : t.error ? (A(), q("div", sh, [H("span", ch, E(N(n)("messagePart.stepError")), 1), H("pre", null, E(t.error), 1)])) : t.hasRichDetail ? (A(), V(Xm, {
12855
+ }, null, 8, ["markdown", "is-dark"])])) : t.error ? (A(), K("div", sh, [V("span", ch, E(N(n)("messagePart.stepError")), 1), V("pre", null, E(t.error), 1)])) : t.hasRichDetail ? (A(), B(Xm, {
12840
12856
  key: 3,
12841
12857
  part: t.part
12842
- }, null, 8, ["part"])) : (A(), q(B, { key: 4 }, [N(bt)(t.toolInput) ? (A(), V(Mm, {
12858
+ }, null, 8, ["part"])) : (A(), K(z, { key: 4 }, [N(bt)(t.toolInput) ? (A(), B(Mm, {
12843
12859
  key: 0,
12844
12860
  label: N(n)("messagePart.stepInput"),
12845
12861
  value: t.toolInput
12846
- }, null, 8, ["label", "value"])) : F("", !0), N(bt)(t.toolOutput) ? (A(), V(Mm, {
12862
+ }, null, 8, ["label", "value"])) : F("", !0), N(bt)(t.toolOutput) ? (A(), B(Mm, {
12847
12863
  key: 1,
12848
12864
  label: N(n)("messagePart.stepOutput"),
12849
12865
  value: t.toolOutput
@@ -12853,7 +12869,7 @@ var Zm = {
12853
12869
  }), [["styles", [".pk-chatbot-steps{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface-1);width:100%;font-size:var(--text-12);color:var(--color-word-3);overflow:hidden}.pk-chatbot-steps__header{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-40);padding:var(--spacing-8) var(--spacing-sm);text-align:left;cursor:pointer;transition:background-color .2s;display:flex}.pk-chatbot-steps__header:hover{background-color:var(--color-surface-2)}.pk-chatbot-steps__chevron{font-size:var(--text-16)}.pk-chatbot-steps__title{color:var(--color-word-2);flex-grow:1;font-weight:600}.pk-chatbot-steps__meta{color:var(--color-word-4);font-variant-numeric:tabular-nums;white-space:nowrap}.pk-chatbot-steps__list{background-color:var(--color-surface);border-top:var(--spacing-px) solid var(--color-surface-3);padding:var(--spacing-8) var(--spacing-sm);flex-direction:column;display:flex}.pk-chatbot-steps__step{position:relative}.pk-chatbot-steps__step:not(:last-child):before{content:\"\";left:var(--spacing-10);top:var(--spacing-28);bottom:calc(var(--spacing-8) * -1);width:var(--spacing-px);background-color:var(--color-surface-4);position:absolute}.pk-chatbot-steps__step-header{align-items:center;gap:var(--spacing-8);width:calc(100% + var(--spacing-16));min-height:var(--spacing-36);margin-inline:calc(var(--spacing-8) * -1);padding:var(--spacing-4) var(--spacing-8);text-align:left;display:flex}.pk-chatbot-steps__step-header:is(button){cursor:pointer;border-radius:var(--rounded);transition:background-color .2s}.pk-chatbot-steps__step-header:is(button):hover{background-color:var(--color-surface-2)}.pk-chatbot-steps-marker{width:var(--spacing-20);height:var(--spacing-20);z-index:1;background-color:var(--color-surface-1);border-radius:var(--rounded-full);border:var(--spacing-px) solid var(--color-surface-4);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative}.pk-chatbot-steps-marker--active{background-color:var(--chatbot-main-color,var(--color-surface-4));color:var(--chatbot-contrast-color,var(--color-word-1));border-color:#0000}.pk-chatbot-steps__step-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--color-word-2);overflow:hidden}.pk-chatbot-steps__step-summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--color-word-4);flex:1 1 0;overflow:hidden}.pk-chatbot-steps__step-duration{color:var(--color-word-4);font-variant-numeric:tabular-nums;white-space:nowrap}.pk-chatbot-steps__step--active .pk-chatbot-steps__step-label{color:var(--color-word-1)}.pk-chatbot-steps__step-body{gap:var(--spacing-4);margin-left:var(--spacing-28);margin-block:var(--spacing-4) var(--spacing-8);flex-direction:column;display:flex}.pk-chatbot-steps__step-content{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded);padding:var(--spacing-8);background-color:var(--color-surface-1)}.pk-chatbot-steps__step-content--scroll{max-height:var(--spacing-256);overflow:auto}.pk-chatbot-steps__step-payload{gap:var(--spacing-2);flex-direction:column;display:flex}.pk-chatbot-steps__step-payload pre{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded);padding:var(--spacing-8);font-size:var(--text-10);max-height:var(--spacing-160);white-space:pre-wrap;word-break:break-word;font-family:var(--font-mono);background-color:var(--color-surface-1);overflow:auto}.pk-chatbot-steps__step-payload-label{color:var(--color-word-3);text-transform:uppercase;font-weight:600;font-size:var(--text-10);letter-spacing:.05em}.pk-chatbot-steps__step-payload--error .pk-chatbot-steps__step-payload-label,.pk-chatbot-steps__step-payload--error pre{color:var(--u-danger-text,var(--color-danger))}.pk-chatbot-steps__step-payload--error pre{border-color:var(--color-danger-lighten-5)}"]]]);
12854
12870
  //#endregion
12855
12871
  //#region ../../packages/components/src/chat/PkChatbotOutlineRail.vue?vue&type=script&setup=true&lang.ts
12856
- j(), U(), T();
12872
+ j(), H(), T();
12857
12873
  var uh = ["aria-label"], dh = {
12858
12874
  class: "pk-chatbot-outline__bars",
12859
12875
  "aria-hidden": "true"
@@ -12865,17 +12881,17 @@ var uh = ["aria-label"], dh = {
12865
12881
  },
12866
12882
  emits: ["select"],
12867
12883
  setup(e, { emit: t }) {
12868
- let n = e, r = t, { t: i } = ze({ useScope: "global" }), a = W(() => n.items.length > 14);
12869
- return (t, n) => (A(), q("nav", {
12870
- class: Ne(["pk-chatbot-outline", { "pk-chatbot-outline--dense": a.value }]),
12884
+ let n = e, r = t, { t: i } = ze({ useScope: "global" }), a = U(() => n.items.length > 14);
12885
+ return (t, n) => (A(), K("nav", {
12886
+ class: q(["pk-chatbot-outline", { "pk-chatbot-outline--dense": a.value }]),
12871
12887
  "aria-label": N(i)("label.conversationOutline")
12872
- }, [H("div", dh, [(A(!0), q(B, null, Le(e.items, (t) => (A(), q("span", {
12888
+ }, [V("div", dh, [(A(!0), K(z, null, Le(e.items, (t) => (A(), K("span", {
12873
12889
  key: t.id,
12874
- class: Ne(["pk-chatbot-outline__bar", { "pk-chatbot-outline__bar--active": t.id === e.activeId }])
12875
- }, null, 2))), 128))]), H("div", fh, [(A(!0), q(B, null, Le(e.items, (t) => (A(), q("button", {
12890
+ class: q(["pk-chatbot-outline__bar", { "pk-chatbot-outline__bar--active": t.id === e.activeId }])
12891
+ }, null, 2))), 128))]), V("div", fh, [(A(!0), K(z, null, Le(e.items, (t) => (A(), K("button", {
12876
12892
  key: t.id,
12877
12893
  type: "button",
12878
- class: Ne(["pk-chatbot-outline__item", { "pk-chatbot-outline__item--active": t.id === e.activeId }]),
12894
+ class: q(["pk-chatbot-outline__item", { "pk-chatbot-outline__item--active": t.id === e.activeId }]),
12879
12895
  "aria-current": t.id === e.activeId ? "true" : void 0,
12880
12896
  onClick: (e) => r("select", t.id)
12881
12897
  }, E(t.preview), 11, ph))), 128))])], 10, uh));
@@ -12883,10 +12899,10 @@ var uh = ["aria-label"], dh = {
12883
12899
  }), [["styles", [".pk-chatbot-outline{padding:var(--spacing-12);align-items:center;display:flex;position:relative}.pk-chatbot-outline__bars{align-items:flex-end;gap:var(--spacing-6);flex-direction:column;max-height:60vh;display:flex;overflow:hidden}.pk-chatbot-outline--dense .pk-chatbot-outline__bars{gap:var(--spacing-2)}.pk-chatbot-outline__bar{width:var(--spacing-16);height:var(--spacing-2);border-radius:var(--rounded-full);background-color:var(--color-surface-5);transition:var(--transition-colors)}.pk-chatbot-outline__bar--active{background-color:var(--color-word-2)}.pk-chatbot-outline__panel{gap:var(--spacing-2);min-width:180px;max-width:280px;max-height:min(50vh,480px);padding:var(--spacing-6);border:1px solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface);box-shadow:var(--shadow-md);opacity:0;visibility:hidden;translate:var(--spacing-8) 0;transition:opacity .15s var(--ease-out), translate .15s var(--ease-out), visibility .15s;flex-direction:column;display:flex;position:absolute;bottom:0;right:100%;overflow-y:auto}@media (prefers-reduced-motion:reduce){.pk-chatbot-outline__panel{transition:none}}.pk-chatbot-outline:hover .pk-chatbot-outline__panel,.pk-chatbot-outline:focus-within .pk-chatbot-outline__panel{opacity:1;visibility:visible;translate:0}.pk-chatbot-outline__item{padding:var(--spacing-6) var(--spacing-10);border-radius:var(--rounded-md);font-size:var(--text-12);color:var(--color-word-2);text-align:start;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:var(--transition-colors);flex-shrink:0;overflow:hidden}.pk-chatbot-outline__item:hover{background-color:var(--color-surface-1)}.pk-chatbot-outline__item--active{background-color:var(--color-surface-2);color:var(--color-word-1);font-weight:var(--font-semibold)}"]]]);
12884
12900
  //#endregion
12885
12901
  //#region ../../packages/components/src/chat/useChatScroll.ts
12886
- U(), j();
12902
+ H(), j();
12887
12903
  var hh = 30, gh = 500;
12888
12904
  function _h(e) {
12889
- let { scrollEl: t, status: n, messagesLength: r, lastMessageRole: i, contentEl: a, beforeNewMessageScroll: o, onScrollUp: s, onScrollDown: c } = e, l = G(!1), u = G(!0), d = !1, f = null, p = null, m = null, h = null, g = 0, _ = (e = "smooth") => {
12905
+ let { scrollEl: t, status: n, messagesLength: r, lastMessageRole: i, contentEl: a, beforeNewMessageScroll: o, onScrollUp: s, onScrollDown: c } = e, l = W(!1), u = W(!0), d = !1, f = null, p = null, m = null, h = null, g = 0, _ = (e = "smooth") => {
12890
12906
  !t.value || l.value ? d = !1 : (d = !0, t.value.scrollTo({
12891
12907
  top: t.value.scrollHeight,
12892
12908
  behavior: e
@@ -12977,7 +12993,7 @@ function vh(e, t = () => !1) {
12977
12993
  }
12978
12994
  //#endregion
12979
12995
  //#region ../../packages/components/src/chat/PkChatbotMessages.vue?vue&type=script&setup=true&lang.ts
12980
- j(), U(), T(), Ee();
12996
+ j(), H(), T(), De();
12981
12997
  var yh = ["aria-busy"], bh = {
12982
12998
  key: 0,
12983
12999
  class: "pk-chatbot-messages__outline"
@@ -13056,7 +13072,7 @@ var yh = ["aria-busy"], bh = {
13056
13072
  "confirm-respond"
13057
13073
  ],
13058
13074
  setup(e, { emit: t }) {
13059
- let n = e, r = t, { t: i, te: a, d: o, n: s } = ze({ useScope: "global" }), c = Te(), l = (e, t) => {
13075
+ let n = e, r = t, { t: i, te: a, d: o, n: s } = ze({ useScope: "global" }), c = Ee(), l = (e, t) => {
13060
13076
  if (et(e)) {
13061
13077
  let n = e.toolCallId;
13062
13078
  n && r("confirm-respond", {
@@ -13070,7 +13086,7 @@ var yh = ["aria-busy"], bh = {
13070
13086
  id: n,
13071
13087
  approved: t
13072
13088
  });
13073
- }, u = k("scrollEl"), d = k("wrapperEl"), f = W(() => qe(n.textColor, n.mainColor)), { handleScroll: p, scrollToBottom: m, userScrolledUp: h, isAtBottom: g } = _h({
13089
+ }, u = k("scrollEl"), d = k("wrapperEl"), f = U(() => qe(n.textColor, n.mainColor)), { handleScroll: p, scrollToBottom: m, userScrolledUp: h, isAtBottom: g } = _h({
13074
13090
  scrollEl: u,
13075
13091
  status: () => n.status,
13076
13092
  messagesLength: () => n.messages?.length,
@@ -13081,10 +13097,10 @@ var yh = ["aria-busy"], bh = {
13081
13097
  onScrollDown: () => r("scroll-down")
13082
13098
  }), _ = () => {
13083
13099
  h.value = !1, m();
13084
- }, v = W(() => (n.messages ?? []).filter((e) => e.role === "user" && !Wr(e)).map((e) => ({
13100
+ }, v = U(() => (n.messages ?? []).filter((e) => e.role === "user" && !Wr(e)).map((e) => ({
13085
13101
  id: e.id,
13086
13102
  preview: e.parts.find(Y)?.text.trim().slice(0, 120) || "…"
13087
- }))), y = G(), b = () => u.value?.querySelectorAll(".pk-chatbot-message--user") ?? [], x = () => {
13103
+ }))), y = W(), b = () => u.value?.querySelectorAll(".pk-chatbot-message--user") ?? [], x = () => {
13088
13104
  let e = u.value;
13089
13105
  if (!e || !n.showScrollToBottom) return;
13090
13106
  let t = e.getBoundingClientRect().top + e.clientHeight / 2, r = v.value[0]?.id;
@@ -13103,7 +13119,7 @@ var yh = ["aria-busy"], bh = {
13103
13119
  top: t.scrollTop + r.getBoundingClientRect().top - t.getBoundingClientRect().top - Number.parseFloat(getComputedStyle(t).paddingTop),
13104
13120
  behavior: "smooth"
13105
13121
  }));
13106
- }, w = G(0), T = G(!1), ne = async () => {
13122
+ }, w = W(0), T = W(!1), ne = async () => {
13107
13123
  let e = n.messages;
13108
13124
  if (!e?.length || n.disableHeightAdjustment || e[e.length - 1].role !== "user" && n.status !== "submitted" && n.status !== "streaming" || (T.value = !1, await le(), !u.value)) return;
13109
13125
  let { paddingTop: t, paddingBottom: r } = getComputedStyle(u.value), i = u.value.clientHeight - Number.parseFloat(t) - Number.parseFloat(r), a = d.value && Number.parseFloat(getComputedStyle(d.value).rowGap) || 0, o = b(), s = i - (o[o.length - 1]?.clientHeight ?? 0) - a;
@@ -13114,116 +13130,116 @@ var yh = ["aria-busy"], bh = {
13114
13130
  }), P(() => n.status, (e) => {
13115
13131
  (e === "ready" || e === "error") && (T.value = !0, w.value = 0);
13116
13132
  });
13117
- let D = (e) => n.revisedAnswers?.some((t) => t.messageId === e), ae = (e) => n.messageFeedbacks?.find((t) => t.messageId === e), O = (e, t) => !n.readonlyFeedback && Ce(e, t), se = (e) => n.readonlyFeedback ? ae(e) : void 0, j = (e) => se(e)?.vote, ue = (e) => {
13118
- let t = se(e);
13133
+ let D = (e) => n.revisedAnswers?.some((t) => t.messageId === e), ae = (e) => n.messageFeedbacks?.find((t) => t.messageId === e), O = /* @__PURE__ */ new Set(["showContactForm"]), se = (e) => !n.interactive && O.has(Xe(e)) ? { record: !0 } : {}, j = (e, t) => !n.readonlyFeedback && De(e, t), ue = (e) => n.readonlyFeedback ? ae(e) : void 0, de = (e) => ue(e)?.vote, M = (e) => {
13134
+ let t = ue(e);
13119
13135
  if (t?.vote) return;
13120
13136
  let n = t?.metadata?.reactionEmoji;
13121
13137
  return typeof n == "string" && /\p{Extended_Pictographic}/u.test(n) ? n : void 0;
13122
- }, de = (e) => !!(j(e) || ue(e)), M = (e) => {
13123
- if (ue(e)) return "pk-chatbot-message__reaction--neutral";
13124
- let t = j(e);
13138
+ }, fe = (e) => !!(de(e) || M(e)), pe = (e) => {
13139
+ if (M(e)) return "pk-chatbot-message__reaction--neutral";
13140
+ let t = de(e);
13125
13141
  return t === "upvote" ? "pk-chatbot-message__reaction--positive" : t === "downvote" ? "pk-chatbot-message__reaction--negative" : "pk-chatbot-message__reaction--neutral";
13126
- }, fe = (e) => {
13127
- let t = j(e);
13142
+ }, me = (e) => {
13143
+ let t = de(e);
13128
13144
  return i(t === "upvote" ? "hint.userFeedbackPositive" : t === "downvote" ? "hint.userFeedbackNegative" : "hint.userFeedbackReaction");
13129
- }, pe = (e) => {
13130
- let t = z(e);
13145
+ }, he = (e) => {
13146
+ let t = _e(e);
13131
13147
  for (let e = t.length - 1; e >= 0; --e) if (Y(t[e])) return e;
13132
13148
  return -1;
13133
- }, me = W(() => n.messages?.[n.messages.length - 1]), I = W(() => {
13134
- let e = me.value;
13149
+ }, L = U(() => n.messages?.[n.messages.length - 1]), R = U(() => {
13150
+ let e = L.value;
13135
13151
  return e ? e.parts[e.parts.length - 1] : null;
13136
- }), R = W(() => {
13152
+ }), ge = U(() => {
13137
13153
  let e = /* @__PURE__ */ new Map();
13138
13154
  for (let t of n.messages ?? []) t.role === "assistant" && e.set(t.id, tt(ht(xt(t.parts))));
13139
13155
  return e;
13140
- }), z = (e) => R.value.get(e.id) ?? e.parts, he = W(() => n.status === "submitted" || n.status === "streaming"), ge = W(() => n.status === "error"), _e = W(() => n.awaitingSpokenAnswer === !0 && !he.value), U = W(() => _e.value && me.value?.role === "user" && !ge.value), ve = W(() => {
13141
- let e = I.value;
13156
+ }), _e = (e) => ge.value.get(e.id) ?? e.parts, ve = U(() => n.status === "submitted" || n.status === "streaming"), H = U(() => n.status === "error"), ye = U(() => n.awaitingSpokenAnswer === !0 && !ve.value), be = U(() => ye.value && L.value?.role === "user" && !H.value), xe = U(() => {
13157
+ let e = R.value;
13142
13158
  return ct(i, e);
13143
- }), ye = W(() => {
13144
- let e = I.value;
13159
+ }), Se = U(() => {
13160
+ let e = R.value;
13145
13161
  return st(e);
13146
- }), be = (e) => n.messages?.findIndex((t) => t.id === e), xe = (e) => e === void 0 || !n.messages ? !1 : e === n.messages.length - 1, Se = (e) => xe(e) && n.status === "ready" && !!n.actions?.includes("regenerate"), Ce = (e, t) => (!xe(t) || n.status === "ready") && !!n.actions?.includes(e), we = (e) => {
13162
+ }), Ce = (e) => n.messages?.findIndex((t) => t.id === e), we = (e) => e === void 0 || !n.messages ? !1 : e === n.messages.length - 1, Te = (e) => we(e) && n.status === "ready" && !!n.actions?.includes("regenerate"), De = (e, t) => (!we(t) || n.status === "ready") && !!n.actions?.includes(e), Oe = (e) => {
13147
13163
  let t = e.parts[e.parts.length - 1];
13148
13164
  return Y(t);
13149
- }, Ee = (e) => e.parts.some((e) => $e(e) || Je(e)), De = (e) => !!n.showExtendedSteps && je(e) && Ee(e), Oe = (e) => Je(e) && !St(e) && !!(mm[Xe(e)] || c[e.type] || n.showAllMessageParts), Ae = (e) => e.parts.some((e) => Y(e) && !!e.text.trim() || Ze(e) || it(e) && !St(e) || Oe(e)), je = (e) => e.role === "assistant", Me = (e) => e.role === "user", Pe = (e) => n.messages?.slice(0, e).reverse().find((e) => je(e)), Fe = (e) => n.messages?.slice(e + 1).find((e) => je(e)), Ie = (e) => {
13150
- let t = Pe(e)?.metadata?.createdAt, n = Fe(e)?.metadata?.createdAt;
13165
+ }, ke = (e) => e.parts.some((e) => $e(e) || Je(e)), je = (e) => !!n.showExtendedSteps && Pe(e) && ke(e), Me = (e) => Je(e) && !St(e) && !!(mm[Xe(e)] || c[e.type] || n.showAllMessageParts), Ne = (e) => e.parts.some((e) => Y(e) && !!e.text.trim() || Ze(e) || it(e) && !St(e) || Me(e)), Pe = (e) => e.role === "assistant", Fe = (e) => e.role === "user", Ie = (e) => n.messages?.slice(0, e).reverse().find((e) => Pe(e)), Re = (e) => n.messages?.slice(e + 1).find((e) => Pe(e)), Be = (e) => {
13166
+ let t = Ie(e)?.metadata?.createdAt, n = Re(e)?.metadata?.createdAt;
13151
13167
  if (!t || !n) return;
13152
13168
  let r = new Date(t), i = new Date(n);
13153
13169
  return r.toDateString() === i.toDateString() ? void 0 : i;
13154
- }, Re = W(() => n.showAllMessageParts ? vh([]) : vh(n.messages ?? [], Ae)), Be = W(() => {
13170
+ }, Ve = U(() => n.showAllMessageParts ? vh([]) : vh(n.messages ?? [], Ne)), He = U(() => {
13155
13171
  let e = 0;
13156
13172
  return (n.messages ?? []).map((t) => t.parts.length > 0 ? ++e : void 0);
13157
- }), Ve = (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), He = (e) => {
13173
+ }), Ue = (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), Ge = (e) => {
13158
13174
  let t = new Date(e), n = t.toDateString() === (/* @__PURE__ */ new Date()).toDateString();
13159
13175
  return o(t, n ? "time" : "date-time");
13160
- }, Ue = (e) => {
13176
+ }, Ke = (e) => {
13161
13177
  let { createdAt: t, completedAt: n } = e.metadata ?? {};
13162
13178
  if (t && n) return ot(s, n - t);
13163
- }, Ge = k("feedbackMessageEl");
13179
+ }, Ye = k("feedbackMessageEl");
13164
13180
  return P(() => n.feedbackMessageId, async () => {
13165
13181
  if (await le(), !n.feedbackMessageId) return;
13166
- let e = Ge.value?.[0]?.$el;
13167
- e && (xe(be(n.feedbackMessageId)) ? m() : e.scrollIntoView({
13182
+ let e = Ye.value?.[0]?.$el;
13183
+ e && (we(Ce(n.feedbackMessageId)) ? m() : e.scrollIntoView({
13168
13184
  behavior: "smooth",
13169
13185
  block: "center"
13170
13186
  }));
13171
13187
  }), (t, n) => {
13172
13188
  let r = an, p = sn, m = Zt;
13173
- return A(), q("div", {
13189
+ return A(), K("div", {
13174
13190
  ref_key: "scrollEl",
13175
13191
  ref: u,
13176
- class: Ne(["pk-chatbot-messages scrollbar-thin", { "pk-chatbot-messages--settling": T.value }]),
13192
+ class: q(["pk-chatbot-messages scrollbar-thin", { "pk-chatbot-messages--settling": T.value }]),
13177
13193
  role: "log",
13178
13194
  "aria-live": "polite",
13179
13195
  "aria-relevant": "additions text",
13180
- "aria-busy": he.value,
13196
+ "aria-busy": ve.value,
13181
13197
  style: re({
13182
13198
  "--chatbot-main-color": e.mainColor,
13183
13199
  "--chatbot-contrast-color": f.value
13184
13200
  }),
13185
13201
  onScroll: S
13186
13202
  }, [
13187
- e.showScrollToBottom && v.value.length > 1 ? (A(), q("div", bh, [J(mh, {
13203
+ e.showScrollToBottom && v.value.length > 1 ? (A(), K("div", bh, [J(mh, {
13188
13204
  items: v.value,
13189
13205
  "active-id": y.value,
13190
13206
  onSelect: ee
13191
13207
  }, null, 8, ["items", "active-id"])])) : F("", !0),
13192
- H("div", {
13208
+ V("div", {
13193
13209
  ref_key: "wrapperEl",
13194
13210
  ref: d,
13195
13211
  class: "pk-chatbot-messages__wrapper"
13196
13212
  }, [
13197
- (A(!0), q(B, null, Le(e.messages, (u, d) => (A(), q(B, { key: u.id }, [
13198
- Me(u) && Ie(d) ? (A(), q("div", xh, [H("span", Sh, E(N(o)(Ie(d), "short")), 1)])) : F("", !0),
13199
- Re.value.quietRuns.has(u.id) ? (A(), q("div", Ch, [J(r, {
13213
+ (A(!0), K(z, null, Le(e.messages, (u, d) => (A(), K(z, { key: u.id }, [
13214
+ Fe(u) && Be(d) ? (A(), K("div", xh, [V("span", Sh, E(N(o)(Be(d), "short")), 1)])) : F("", !0),
13215
+ Ve.value.quietRuns.has(u.id) ? (A(), K("div", Ch, [J(r, {
13200
13216
  name: "ri:alarm-line",
13201
13217
  class: "shrink-0"
13202
- }), H("span", null, E(N(i)("label.wakeupQuietRun", {
13203
- count: Re.value.quietRuns.get(u.id).count,
13204
- time: N(o)(Re.value.quietRuns.get(u.id).lastAt ?? Date.now(), "time")
13205
- }, Re.value.quietRuns.get(u.id).count)), 1)])) : N(Wr)(u) && !Re.value.hidden.has(u.id) && !e.showAllMessageParts ? (A(), q("div", {
13218
+ }), V("span", null, E(N(i)("label.wakeupQuietRun", {
13219
+ count: Ve.value.quietRuns.get(u.id).count,
13220
+ time: N(o)(Ve.value.quietRuns.get(u.id).lastAt ?? Date.now(), "time")
13221
+ }, Ve.value.quietRuns.get(u.id).count)), 1)])) : N(Wr)(u) && !Ve.value.hidden.has(u.id) && !e.showAllMessageParts ? (A(), K("div", {
13206
13222
  key: 2,
13207
13223
  class: "pk-chatbot-wakeup",
13208
13224
  title: u.metadata?.wakeup?.reason
13209
13225
  }, [J(r, {
13210
13226
  name: "ri:alarm-line",
13211
13227
  class: "shrink-0"
13212
- }), H("span", null, [L(E(N(i)("label.wakeupCheck")) + " ", 1), u.metadata?.createdAt ? (A(), q(B, { key: 0 }, [L(" · " + E(N(o)(u.metadata.createdAt, "time")), 1)], 64)) : F("", !0)])], 8, wh)) : F("", !0),
13213
- (!N(Wr)(u) || e.showAllMessageParts) && (!Re.value.hidden.has(u.id) || he.value && xe(d)) && (u.parts.length || xe(d) && he.value && je(u)) ? (A(), q("div", {
13228
+ }), V("span", null, [I(E(N(i)("label.wakeupCheck")) + " ", 1), u.metadata?.createdAt ? (A(), K(z, { key: 0 }, [I(" · " + E(N(o)(u.metadata.createdAt, "time")), 1)], 64)) : F("", !0)])], 8, wh)) : F("", !0),
13229
+ (!N(Wr)(u) || e.showAllMessageParts) && (!Ve.value.hidden.has(u.id) || ve.value && we(d)) && (u.parts.length || we(d) && ve.value && Pe(u)) ? (A(), K("div", {
13214
13230
  key: 3,
13215
- class: Ne(["pk-chatbot-message", [`pk-chatbot-message--${u.role}`, { "pk-chatbot-message--loading": he.value && xe(d) && je(u) }]]),
13216
- style: re({ minHeight: xe(d) && je(u) && !ge.value ? `${w.value}px` : void 0 })
13231
+ class: q(["pk-chatbot-message", [`pk-chatbot-message--${u.role}`, { "pk-chatbot-message--loading": ve.value && we(d) && Pe(u) }]]),
13232
+ style: re({ minHeight: we(d) && Pe(u) && !H.value ? `${w.value}px` : void 0 })
13217
13233
  }, [
13218
- J(K, {
13234
+ J(G, {
13219
13235
  appear: "",
13220
13236
  name: "pk-chatbot-part"
13221
13237
  }, {
13222
- default: C(() => [De(u) ? (A(), V(lh, {
13238
+ default: C(() => [je(u) ? (A(), B(lh, {
13223
13239
  key: 0,
13224
13240
  message: u,
13225
- "is-streaming": he.value && xe(d),
13226
- "has-content": Ae(u),
13241
+ "is-streaming": ve.value && we(d),
13242
+ "has-content": Ne(u),
13227
13243
  "is-dark": e.isDark
13228
13244
  }, null, 8, [
13229
13245
  "message",
@@ -13233,41 +13249,41 @@ var yh = ["aria-busy"], bh = {
13233
13249
  ])) : F("", !0)]),
13234
13250
  _: 2
13235
13251
  }, 1024),
13236
- (A(!0), q(B, null, Le(z(u), (n, o) => (A(), q(B, { key: N(vt)(n, o) }, [N(Y)(n) && n.text.trim() ? (A(), V(K, {
13252
+ (A(!0), K(z, null, Le(_e(u), (n, o) => (A(), K(z, { key: N(vt)(n, o) }, [N(Y)(n) && n.text.trim() ? (A(), B(G, {
13237
13253
  key: 0,
13238
13254
  appear: "",
13239
13255
  name: "pk-chatbot-part"
13240
13256
  }, {
13241
- default: C(() => [H("div", Th, [te(t.$slots, "text", ce({ ref_for: !0 }, {
13257
+ default: C(() => [V("div", Th, [te(t.$slots, "text", ce({ ref_for: !0 }, {
13242
13258
  message: u,
13243
13259
  part: n,
13244
13260
  index: d,
13245
- isLoading: he.value
13246
- }), () => [je(u) ? (A(), V(yt, {
13261
+ isLoading: ve.value
13262
+ }), () => [Pe(u) ? (A(), B(yt, {
13247
13263
  key: 0,
13248
13264
  class: "wysiwyg",
13249
13265
  markdown: n.text,
13250
13266
  "is-dark": e.isDark,
13251
- loading: xe(d) && e.status === "streaming"
13267
+ loading: we(d) && e.status === "streaming"
13252
13268
  }, null, 8, [
13253
13269
  "markdown",
13254
13270
  "is-dark",
13255
13271
  "loading"
13256
- ])) : (A(), q(B, { key: 1 }, [L(E(n.text), 1)], 64))]), de(u.id) && !ae(u.id)?.comment && o === pe(u) ? (A(), q("span", {
13272
+ ])) : (A(), K(z, { key: 1 }, [I(E(n.text), 1)], 64))]), fe(u.id) && !ae(u.id)?.comment && o === he(u) ? (A(), K("span", {
13257
13273
  key: 0,
13258
- class: Ne(["pk-chatbot-message__reaction", M(u.id)]),
13259
- title: fe(u.id)
13260
- }, [ue(u.id) ? (A(), q("span", Dh, E(ue(u.id)), 1)) : (A(), V(r, {
13274
+ class: q(["pk-chatbot-message__reaction", pe(u.id)]),
13275
+ title: me(u.id)
13276
+ }, [M(u.id) ? (A(), K("span", Dh, E(M(u.id)), 1)) : (A(), B(r, {
13261
13277
  key: 1,
13262
- name: j(u.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
13278
+ name: de(u.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
13263
13279
  }, null, 8, ["name"]))], 10, Eh)) : F("", !0)])]),
13264
13280
  _: 2
13265
- }, 1024)) : N(Ze)(n) ? (A(), V(K, {
13281
+ }, 1024)) : N(Ze)(n) ? (A(), B(G, {
13266
13282
  key: 1,
13267
13283
  appear: "",
13268
13284
  name: "pk-chatbot-part"
13269
13285
  }, {
13270
- default: C(() => [N(Et)(n.filename, n.mediaType) ? (A(), q("div", Oh, [J(hn, {
13286
+ default: C(() => [N(Et)(n.filename, n.mediaType) ? (A(), K("div", Oh, [J(hn, {
13271
13287
  "media-type": n.mediaType,
13272
13288
  url: n.url,
13273
13289
  filename: n.filename,
@@ -13280,12 +13296,12 @@ var yh = ["aria-busy"], bh = {
13280
13296
  ]), J(um, {
13281
13297
  url: n.url,
13282
13298
  transcript: N(We)(n),
13283
- pending: e.status === "submitted" && xe(d)
13299
+ pending: e.status === "submitted" && we(d)
13284
13300
  }, null, 8, [
13285
13301
  "url",
13286
13302
  "transcript",
13287
13303
  "pending"
13288
- ])])) : (A(), V(hn, {
13304
+ ])])) : (A(), B(hn, {
13289
13305
  key: 1,
13290
13306
  "media-type": n.mediaType,
13291
13307
  url: n.url,
@@ -13298,15 +13314,15 @@ var yh = ["aria-busy"], bh = {
13298
13314
  "size"
13299
13315
  ]))]),
13300
13316
  _: 2
13301
- }, 1024)) : N(it)(n) && !N(St)(n) ? (A(), V(K, {
13317
+ }, 1024)) : N(it)(n) && !N(St)(n) ? (A(), B(G, {
13302
13318
  key: 2,
13303
13319
  appear: "",
13304
13320
  name: "pk-chatbot-part"
13305
13321
  }, {
13306
- default: C(() => [(A(), V(ym, {
13322
+ default: C(() => [(A(), B(ym, {
13307
13323
  key: `approval-${o}`,
13308
13324
  part: n,
13309
- actionable: e.interactive === !0 && (N(et)(n) || xe(d)),
13325
+ actionable: e.interactive === !0 && (N(et)(n) || we(d)),
13310
13326
  "call-verdict": e.confirmVerdictsOnCall?.get(n.toolCallId ?? ""),
13311
13327
  onRespond: (e) => l(n, e)
13312
13328
  }, null, 8, [
@@ -13316,69 +13332,69 @@ var yh = ["aria-busy"], bh = {
13316
13332
  "onRespond"
13317
13333
  ]))]),
13318
13334
  _: 2
13319
- }, 1024)) : Oe(n) ? (A(), V(K, {
13335
+ }, 1024)) : Me(n) ? (A(), B(G, {
13320
13336
  key: 3,
13321
13337
  appear: "",
13322
13338
  name: "pk-chatbot-part"
13323
13339
  }, {
13324
- default: C(() => [!N(c)[n.type] && N(mm)[N(Xe)(n)] ? (A(), V(oe(N(mm)[N(Xe)(n)]), {
13340
+ default: C(() => [!N(c)[n.type] && N(mm)[N(Xe)(n)] ? (A(), B(oe(N(mm)[N(Xe)(n)]), ce({
13325
13341
  key: `component-${o}-${N(gt)(n)}`,
13326
13342
  part: n
13327
- }, null, 8, ["part"])) : te(t.$slots, n.type, ce({ ref_for: !0 }, {
13343
+ }, { ref_for: !0 }, se(n)), null, 16, ["part"])) : te(t.$slots, n.type, ce({ ref_for: !0 }, {
13328
13344
  message: u,
13329
13345
  part: n,
13330
13346
  index: d,
13331
- isLoading: he.value
13332
- }), () => [e.showAllMessageParts ? (A(), q("div", kh, [H("div", Ah, [N(st)(n) ? (A(), V(r, {
13347
+ isLoading: ve.value
13348
+ }), () => [e.showAllMessageParts ? (A(), K("div", kh, [V("div", Ah, [N(st)(n) ? (A(), B(r, {
13333
13349
  key: 0,
13334
13350
  name: N(st)(n),
13335
13351
  class: "shrink-0"
13336
- }, null, 8, ["name"])) : F("", !0), H("span", jh, E(N(pt)(n, {
13352
+ }, null, 8, ["name"])) : F("", !0), V("span", jh, E(N(pt)(n, {
13337
13353
  t: N(i),
13338
13354
  te: N(a)
13339
13355
  })), 1)])])) : F("", !0)], void 0, 1)]),
13340
13356
  _: 2
13341
- }, 1024)) : F("", !0), J(K, { mode: "out-in" }, {
13342
- default: C(() => [o === pe(u) && e.readonlyFeedback && ae(u.id)?.comment ? (A(), V(Zp, {
13357
+ }, 1024)) : F("", !0), J(G, { mode: "out-in" }, {
13358
+ default: C(() => [o === he(u) && e.readonlyFeedback && ae(u.id)?.comment ? (A(), B(Zp, {
13343
13359
  key: 0,
13344
13360
  feedback: ae(u.id)
13345
13361
  }, null, 8, ["feedback"])) : F("", !0)]),
13346
13362
  _: 2
13347
13363
  }, 1024)], 64))), 128)),
13348
- J(K, {
13364
+ J(G, {
13349
13365
  name: "fade-in",
13350
13366
  mode: "out-in"
13351
13367
  }, {
13352
- default: C(() => [he.value && xe(d) && !we(u) && je(u) && (!De(u) || Ae(u)) ? (A(), q("div", {
13368
+ default: C(() => [ve.value && we(d) && !Oe(u) && Pe(u) && (!je(u) || Ne(u)) ? (A(), K("div", {
13353
13369
  key: `loading-info-${u.id}`,
13354
13370
  class: "pk-chatbot-message__loading-info"
13355
- }, [H("div", Mh, [
13371
+ }, [V("div", Mh, [
13356
13372
  J(r, {
13357
13373
  name: "loading-loop",
13358
13374
  class: "shrink-0"
13359
13375
  }),
13360
- J(K, { mode: "out-in" }, {
13361
- default: C(() => [ye.value ? (A(), V(r, {
13362
- key: ye.value,
13376
+ J(G, { mode: "out-in" }, {
13377
+ default: C(() => [Se.value ? (A(), B(r, {
13378
+ key: Se.value,
13363
13379
  class: "shrink-0",
13364
- name: ye.value
13380
+ name: Se.value
13365
13381
  }, null, 8, ["name"])) : F("", !0)]),
13366
13382
  _: 1
13367
13383
  }),
13368
- J(K, { mode: "out-in" }, {
13369
- default: C(() => [ve.value ? (A(), q("span", {
13370
- key: ve.value,
13384
+ J(G, { mode: "out-in" }, {
13385
+ default: C(() => [xe.value ? (A(), K("span", {
13386
+ key: xe.value,
13371
13387
  class: "text-12"
13372
- }, E(ve.value), 1)) : F("", !0)]),
13388
+ }, E(xe.value), 1)) : F("", !0)]),
13373
13389
  _: 1
13374
13390
  })
13375
- ]), J(K, {
13391
+ ]), J(G, {
13376
13392
  name: "fade-in",
13377
13393
  mode: "out-in"
13378
13394
  }, {
13379
- default: C(() => [!De(u) && I.value && "text" in I.value && I.value.text.trim() ? (A(), V(xm, {
13395
+ default: C(() => [!je(u) && R.value && "text" in R.value && R.value.text.trim() ? (A(), B(xm, {
13380
13396
  key: 0,
13381
- markdown: I.value.text,
13397
+ markdown: R.value.text,
13382
13398
  "is-dark": e.isDark,
13383
13399
  "tail-length": N(_t),
13384
13400
  "inner-class": "wysiwyg",
@@ -13392,32 +13408,32 @@ var yh = ["aria-busy"], bh = {
13392
13408
  }, 1024)])) : F("", !0)]),
13393
13409
  _: 2
13394
13410
  }, 1024),
13395
- J(K, { mode: "out-in" }, {
13396
- default: C(() => [Ve(u, d) ? (A(), q("div", Nh, [
13411
+ J(G, { mode: "out-in" }, {
13412
+ default: C(() => [Ue(u, d) ? (A(), K("div", Nh, [
13397
13413
  J(m, {
13398
13414
  modifiers: "compact",
13399
13415
  class: "mr-auto shrink-0"
13400
13416
  }, {
13401
13417
  default: C(() => [
13402
- J(K, { mode: "out-in" }, {
13403
- default: C(() => [Se(d) ? (A(), V(p, {
13418
+ J(G, { mode: "out-in" }, {
13419
+ default: C(() => [Te(d) ? (A(), B(p, {
13404
13420
  key: 0,
13405
13421
  icon: "ri:reset-right-line",
13406
13422
  modifiers: "action-quiet-small",
13407
13423
  title: N(i)("action.regenerate"),
13408
13424
  "aria-label": N(i)("action.regenerate"),
13409
- onClick: n[0] ||= ke((e) => t.$emit("regenerate"), ["stop"])
13425
+ onClick: n[0] ||= Ae((e) => t.$emit("regenerate"), ["stop"])
13410
13426
  }, null, 8, ["title", "aria-label"])) : F("", !0)]),
13411
13427
  _: 2
13412
13428
  }, 1024),
13413
- J(K, { mode: "out-in" }, {
13414
- default: C(() => [Ce("show-info", d) ? (A(), V(p, {
13429
+ J(G, { mode: "out-in" }, {
13430
+ default: C(() => [De("show-info", d) ? (A(), B(p, {
13415
13431
  key: 0,
13416
13432
  icon: "ri:information-line",
13417
13433
  title: N(i)("action.getMoreInfo"),
13418
13434
  "aria-label": N(i)("action.getMoreInfo"),
13419
13435
  modifiers: "action-quiet-small",
13420
- onClick: ke((e) => t.$emit("show-info", u), ["stop"])
13436
+ onClick: Ae((e) => t.$emit("show-info", u), ["stop"])
13421
13437
  }, null, 8, [
13422
13438
  "title",
13423
13439
  "aria-label",
@@ -13425,15 +13441,15 @@ var yh = ["aria-busy"], bh = {
13425
13441
  ])) : F("", !0)]),
13426
13442
  _: 2
13427
13443
  }, 1024),
13428
- J(K, { mode: "out-in" }, {
13429
- default: C(() => [Ce("revise", d) ? (A(), V(p, {
13444
+ J(G, { mode: "out-in" }, {
13445
+ default: C(() => [De("revise", d) ? (A(), B(p, {
13430
13446
  key: 0,
13431
13447
  icon: D(u.id) ? "ri:file-edit-fill" : "ri:file-edit-line",
13432
13448
  title: D(u.id) ? N(i)("action.editRevise") : N(i)("action.createRevise"),
13433
13449
  "aria-label": D(u.id) ? N(i)("action.editRevise") : N(i)("action.createRevise"),
13434
13450
  modifiers: "action-quiet-small",
13435
- class: Ne({ "text-brand-graphic": D(u.id) }),
13436
- onClick: ke((e) => t.$emit("revise", u), ["stop"])
13451
+ class: q({ "text-brand-graphic": D(u.id) }),
13452
+ onClick: Ae((e) => t.$emit("revise", u), ["stop"])
13437
13453
  }, null, 8, [
13438
13454
  "icon",
13439
13455
  "title",
@@ -13443,14 +13459,14 @@ var yh = ["aria-busy"], bh = {
13443
13459
  ])) : F("", !0)]),
13444
13460
  _: 2
13445
13461
  }, 1024),
13446
- J(K, { mode: "out-in" }, {
13447
- default: C(() => [O("upvote", d) ? (A(), V(p, {
13462
+ J(G, { mode: "out-in" }, {
13463
+ default: C(() => [j("upvote", d) ? (A(), B(p, {
13448
13464
  key: 0,
13449
13465
  icon: ae(u.id)?.vote === "upvote" ? "ri:thumb-up-fill" : "ri:thumb-up-line",
13450
13466
  title: N(i)("action.upvote"),
13451
13467
  "aria-label": N(i)("action.upvote"),
13452
13468
  modifiers: "action-quiet-small",
13453
- onClick: ke((e) => t.$emit("upvote", u), ["stop"])
13469
+ onClick: Ae((e) => t.$emit("upvote", u), ["stop"])
13454
13470
  }, null, 8, [
13455
13471
  "icon",
13456
13472
  "title",
@@ -13459,14 +13475,14 @@ var yh = ["aria-busy"], bh = {
13459
13475
  ])) : F("", !0)]),
13460
13476
  _: 2
13461
13477
  }, 1024),
13462
- J(K, { mode: "out-in" }, {
13463
- default: C(() => [O("downvote", d) ? (A(), V(p, {
13478
+ J(G, { mode: "out-in" }, {
13479
+ default: C(() => [j("downvote", d) ? (A(), B(p, {
13464
13480
  key: 0,
13465
13481
  icon: ae(u.id)?.vote === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-down-line",
13466
13482
  title: N(i)("action.downvote"),
13467
13483
  "aria-label": N(i)("action.downvote"),
13468
13484
  modifiers: "action-quiet-small",
13469
- onClick: ke((e) => t.$emit("downvote", u), ["stop"])
13485
+ onClick: Ae((e) => t.$emit("downvote", u), ["stop"])
13470
13486
  }, null, 8, [
13471
13487
  "icon",
13472
13488
  "title",
@@ -13475,14 +13491,14 @@ var yh = ["aria-busy"], bh = {
13475
13491
  ])) : F("", !0)]),
13476
13492
  _: 2
13477
13493
  }, 1024),
13478
- J(K, { mode: "out-in" }, {
13479
- default: C(() => [O("feedback", d) ? (A(), V(p, {
13494
+ J(G, { mode: "out-in" }, {
13495
+ default: C(() => [j("feedback", d) ? (A(), B(p, {
13480
13496
  key: 0,
13481
13497
  icon: ae(u.id)?.comment ? "ri:feedback-fill" : "ri:feedback-line",
13482
13498
  title: N(i)("action.feedback"),
13483
13499
  "aria-label": N(i)("action.feedback"),
13484
13500
  modifiers: "action-quiet-small",
13485
- onClick: ke((e) => t.$emit("feedback", u), ["stop"])
13501
+ onClick: Ae((e) => t.$emit("feedback", u), ["stop"])
13486
13502
  }, null, 8, [
13487
13503
  "icon",
13488
13504
  "title",
@@ -13494,35 +13510,35 @@ var yh = ["aria-busy"], bh = {
13494
13510
  ]),
13495
13511
  _: 2
13496
13512
  }, 1024),
13497
- !e.showMessageDateTime && u.metadata?.createdAt && u.metadata?.completedAt ? (A(), q("div", Ph, [H("time", {
13513
+ !e.showMessageDateTime && u.metadata?.createdAt && u.metadata?.completedAt ? (A(), K("div", Ph, [V("time", {
13498
13514
  datetime: new Date(u.metadata.createdAt).toISOString(),
13499
13515
  title: N(o)(new Date(u.metadata.createdAt), "date-time"),
13500
13516
  class: "flex items-center gap-4 min-w-0"
13501
13517
  }, [J(r, {
13502
13518
  name: "ri:time-line",
13503
13519
  class: "shrink-0"
13504
- }), H("span", Ih, E(He(u.metadata.createdAt)), 1)], 8, Fh), Ue(u) ? (A(), q("span", Lh, [J(r, {
13520
+ }), V("span", Ih, E(Ge(u.metadata.createdAt)), 1)], 8, Fh), Ke(u) ? (A(), K("span", Lh, [J(r, {
13505
13521
  name: "ri:hourglass-line",
13506
13522
  class: "shrink-0"
13507
- }), H("span", Rh, E(Ue(u)), 1)])) : F("", !0)])) : F("", !0),
13508
- e.showMessageNumber ? (A(), q("span", {
13523
+ }), V("span", Rh, E(Ke(u)), 1)])) : F("", !0)])) : F("", !0),
13524
+ e.showMessageNumber ? (A(), K("span", {
13509
13525
  key: 1,
13510
- title: N(i)("label.messageNumber", { n: Be.value[d] }),
13526
+ title: N(i)("label.messageNumber", { n: He.value[d] }),
13511
13527
  class: "text-12 text-word-3 tabular-nums"
13512
- }, " #" + E(Be.value[d]), 9, zh)) : F("", !0),
13513
- e.showMessageTokensCount && u.metadata?.totalTokens ? (A(), q("span", Bh, [J(r, {
13528
+ }, " #" + E(He.value[d]), 9, zh)) : F("", !0),
13529
+ e.showMessageTokensCount && u.metadata?.totalTokens ? (A(), K("span", Bh, [J(r, {
13514
13530
  name: "ri:ai-generate-2-line",
13515
13531
  class: "shrink-0"
13516
- }), H("span", Vh, E(N(s)(u.metadata.totalTokens, "integer")) + " " + E(N(i)("label.tokens")), 1)])) : F("", !0),
13517
- e.showMessageDateTime && u.metadata?.createdAt ? (A(), q("time", {
13532
+ }), V("span", Vh, E(N(s)(u.metadata.totalTokens, "integer")) + " " + E(N(i)("label.tokens")), 1)])) : F("", !0),
13533
+ e.showMessageDateTime && u.metadata?.createdAt ? (A(), K("time", {
13518
13534
  key: 3,
13519
13535
  datetime: new Date(u.metadata?.createdAt).toISOString(),
13520
13536
  class: "flex items-center gap-4 text-12 text-word-3"
13521
13537
  }, [J(r, {
13522
13538
  name: "ri:time-line",
13523
13539
  class: "shrink-0"
13524
- }), H("span", Uh, E(N(o)(new Date(u.metadata?.createdAt), "date-time")), 1)], 8, Hh)) : F("", !0),
13525
- e.showMessageDateTime && u?.metadata?.completedAt && u?.metadata?.createdAt ? (A(), q("div", Wh, [J(r, {
13540
+ }), V("span", Uh, E(N(o)(new Date(u.metadata?.createdAt), "date-time")), 1)], 8, Hh)) : F("", !0),
13541
+ e.showMessageDateTime && u?.metadata?.completedAt && u?.metadata?.createdAt ? (A(), K("div", Wh, [J(r, {
13526
13542
  name: "ri:hourglass-line",
13527
13543
  class: "shrink-0"
13528
13544
  }), J(pm, {
@@ -13533,12 +13549,12 @@ var yh = ["aria-busy"], bh = {
13533
13549
  ])) : F("", !0)]),
13534
13550
  _: 2
13535
13551
  }, 1024),
13536
- J(K, { mode: "out-in" }, {
13537
- default: C(() => [u.id === e.feedbackMessageId ? (A(), V(qp, {
13552
+ J(G, { mode: "out-in" }, {
13553
+ default: C(() => [u.id === e.feedbackMessageId ? (A(), B(qp, {
13538
13554
  key: 0,
13539
13555
  ref_for: !0,
13540
13556
  ref_key: "feedbackMessageEl",
13541
- ref: Ge,
13557
+ ref: Ye,
13542
13558
  loading: e.feedbackLoading,
13543
13559
  submitted: e.feedbackSubmitted,
13544
13560
  error: e.feedbackError,
@@ -13553,25 +13569,25 @@ var yh = ["aria-busy"], bh = {
13553
13569
  }, 1024)
13554
13570
  ], 6)) : F("", !0)
13555
13571
  ], 64))), 128)),
13556
- J(K, {
13572
+ J(G, {
13557
13573
  appear: "",
13558
13574
  name: "pk-chatbot-part"
13559
13575
  }, {
13560
- default: C(() => [_e.value ? (A(), q("div", {
13576
+ default: C(() => [ye.value ? (A(), K("div", {
13561
13577
  key: 0,
13562
13578
  class: "pk-chatbot-message pk-chatbot-message--assistant pk-chatbot-message--loading",
13563
- style: re({ minHeight: U.value ? `${w.value}px` : void 0 })
13564
- }, [H("div", Gh, [H("div", Kh, [J(r, {
13579
+ style: re({ minHeight: be.value ? `${w.value}px` : void 0 })
13580
+ }, [V("div", Gh, [V("div", Kh, [J(r, {
13565
13581
  name: "loading-loop",
13566
13582
  class: "shrink-0"
13567
- }), H("span", qh, E(N(i)("label.answeringOnTheCall")), 1)])])], 4)) : F("", !0)]),
13583
+ }), V("span", qh, E(N(i)("label.answeringOnTheCall")), 1)])])], 4)) : F("", !0)]),
13568
13584
  _: 1
13569
13585
  }),
13570
- J(K, {
13586
+ J(G, {
13571
13587
  appear: "",
13572
13588
  name: "pk-chatbot-part"
13573
13589
  }, {
13574
- default: C(() => [ge.value ? (A(), V(Ip, {
13590
+ default: C(() => [H.value ? (A(), B(Ip, {
13575
13591
  key: 0,
13576
13592
  error: e.error,
13577
13593
  onRetry: n[3] ||= (e) => t.$emit("auto-retry"),
@@ -13579,14 +13595,14 @@ var yh = ["aria-busy"], bh = {
13579
13595
  }, null, 8, ["error"])) : F("", !0)]),
13580
13596
  _: 1
13581
13597
  }),
13582
- me.value?.role === "user" && !U.value || ge.value ? (A(), q("div", {
13598
+ L.value?.role === "user" && !be.value || H.value ? (A(), K("div", {
13583
13599
  key: 0,
13584
13600
  class: "pk-chatbot-messages__spacer",
13585
13601
  style: re({ minHeight: `${w.value}px` })
13586
13602
  }, null, 4)) : F("", !0)
13587
13603
  ], 512),
13588
- J(K, { name: "pk-chatbot-messages-fab" }, {
13589
- default: C(() => [e.showScrollToBottom && (N(h) || !N(g)) ? (A(), q("button", {
13604
+ J(G, { name: "pk-chatbot-messages-fab" }, {
13605
+ default: C(() => [e.showScrollToBottom && (N(h) || !N(g)) ? (A(), K("button", {
13590
13606
  key: 0,
13591
13607
  type: "button",
13592
13608
  class: "pk-chatbot-messages__scroll-to-bottom",
@@ -13699,19 +13715,19 @@ var tg = ["type"], ng = {
13699
13715
  setup(e) {
13700
13716
  return (t, n) => {
13701
13717
  let r = an;
13702
- return A(), q("button", {
13703
- class: Ne(["pk-chat-button", [e.modifiers ? `pk-chat-button--${e.modifiers}` : void 0, { "pk-chat-button--labelled": e.label }]]),
13718
+ return A(), K("button", {
13719
+ class: q(["pk-chat-button", [e.modifiers ? `pk-chat-button--${e.modifiers}` : void 0, { "pk-chat-button--labelled": e.label }]]),
13704
13720
  type: e.type
13705
13721
  }, [J(r, {
13706
13722
  name: e.icon,
13707
13723
  class: "pk-chat-button__icon"
13708
- }, null, 8, ["name"]), e.label ? (A(), q("span", ng, E(e.label), 1)) : F("", !0)], 10, tg);
13724
+ }, null, 8, ["name"]), e.label ? (A(), K("span", ng, E(e.label), 1)) : F("", !0)], 10, tg);
13709
13725
  };
13710
13726
  }
13711
13727
  }), [["styles", [".pk-chat-button{padding:var(--spacing-4);border-radius:var(--rounded);color:var(--color-word-1);cursor:pointer;transition:var(--transition-colors);background-color:#0000;border:none;flex-shrink:0;align-items:center;display:inline-flex;position:relative}.pk-chat-button:hover{background-color:var(--color-surface-2)}.pk-chat-button:focus-visible{outline:var(--spacing-2) solid var(--input-focus-color);outline-offset:0}.pk-chat-button:disabled{cursor:not-allowed;opacity:.5}@media (pointer:coarse){.pk-chat-button:after{content:\"\";inset:calc(-1 * var(--spacing-8));position:absolute}}.pk-chat-button[aria-pressed=true]{background-color:var(--color-surface-3);color:var(--color-word)}.pk-chat-button--danger{color:var(--u-danger-text,var(--color-danger))}.pk-chat-button--danger:hover{background-color:color-mix(in srgb, var(--color-danger) 12%, transparent)}.pk-chat-button--primary{--pk-chat-button-fill:var(--chatbot-main-color,var(--color-word-1));padding:var(--spacing-6);border-radius:var(--rounded-full);background-color:var(--pk-chat-button-fill);color:var(--chatbot-contrast-color,var(--color-surface))}.pk-chat-button--primary:hover{background-color:color-mix(in srgb, var(--pk-chat-button-fill) 85%, var(--color-surface))}.pk-chat-button--primary:focus-visible{outline-offset:var(--spacing-2)}.pk-chat-button--primary:disabled{opacity:1;background-color:var(--color-surface-3);color:var(--color-word-3)}.pk-chat-button--primary .pk-chat-button__icon{width:var(--spacing-16);height:var(--spacing-16)}.pk-chat-button--labelled{gap:var(--spacing-4);padding-inline:var(--spacing-8);font-size:var(--text-12)}.pk-chat-button__icon{width:var(--spacing-20);height:var(--spacing-20);display:block}"]]]);
13712
13728
  //#endregion
13713
13729
  //#region ../../packages/components/src/chat/PkChatbotInput.vue?vue&type=script&setup=true&lang.ts
13714
- j(), T(), U(), Ee();
13730
+ j(), T(), H(), De();
13715
13731
  var ig = { class: "pk-chatbot-input" }, ag = {
13716
13732
  key: 2,
13717
13733
  class: "pk-chatbot-input__notice-text"
@@ -13733,7 +13749,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13733
13749
  "placeholder"
13734
13750
  ], mg = ["id"], hg = { class: "opacity-60" }, gg = /*#__PURE__*/ pn(/* @__PURE__ */ w({
13735
13751
  __name: "PkChatbotInput",
13736
- props: /*@__PURE__*/ ve({
13752
+ props: /*@__PURE__*/ ye({
13737
13753
  placeholder: { type: String },
13738
13754
  dismissableNotice: { type: String },
13739
13755
  status: { type: String },
@@ -13749,7 +13765,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13749
13765
  pendingAttachments: { default: () => [] },
13750
13766
  pendingAttachmentsModifiers: {}
13751
13767
  }),
13752
- emits: /*@__PURE__*/ ve([
13768
+ emits: /*@__PURE__*/ ye([
13753
13769
  "submit",
13754
13770
  "stop-generation",
13755
13771
  "file-select",
@@ -13757,7 +13773,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13757
13773
  "voice-start"
13758
13774
  ], ["update:modelValue", "update:pendingAttachments"]),
13759
13775
  setup(e, { emit: t }) {
13760
- let n = se(e, "modelValue"), r = se(e, "pendingAttachments"), i = t, a = e, o = k("textareaEl"), s = k("fileInputEl"), c = k("cameraInputEl"), l = k("formEl"), u = G(n.value ?? ""), d = null, f = () => {
13776
+ let n = se(e, "modelValue"), r = se(e, "pendingAttachments"), i = t, a = e, o = k("textareaEl"), s = k("fileInputEl"), c = k("cameraInputEl"), l = k("formEl"), u = W(n.value ?? ""), d = null, f = () => {
13761
13777
  d !== null && (clearTimeout(d), d = null);
13762
13778
  }, p = () => {
13763
13779
  f(), n.value = u.value;
@@ -13773,7 +13789,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13773
13789
  o.value && eg.update(o.value);
13774
13790
  }));
13775
13791
  });
13776
- let g = W(() => a.status === "streaming"), _ = W(() => a.status === "submitted"), v = W(() => g.value || _.value), y = ae(), b = W(() => u.value.length), x = W(() => a.maxMessageLength !== void 0 && b.value > a.maxMessageLength), S = W(() => r.value.some((e) => e.state === "uploading")), ee = W(() => v.value || S.value || x.value ? !1 : u.value.trim().length > 0), w = "capture" in document.createElement("input"), T = W(() => a.fileUpload?.allowedMimeTypes?.join(",") ?? ""), ne = W(() => (a.fileUpload?.allowedMimeTypes ?? []).filter((e) => e.startsWith("image/")).join(",")), D = W(() => w && ne.value.length > 0), re = () => {
13792
+ let g = U(() => a.status === "streaming"), _ = U(() => a.status === "submitted"), v = U(() => g.value || _.value), y = ae(), b = U(() => u.value.length), x = U(() => a.maxMessageLength !== void 0 && b.value > a.maxMessageLength), S = U(() => r.value.some((e) => e.state === "uploading")), ee = U(() => v.value || S.value || x.value ? !1 : u.value.trim().length > 0), w = "capture" in document.createElement("input"), T = U(() => a.fileUpload?.allowedMimeTypes?.join(",") ?? ""), ne = U(() => (a.fileUpload?.allowedMimeTypes ?? []).filter((e) => e.startsWith("image/")).join(",")), D = U(() => w && ne.value.length > 0), re = () => {
13777
13793
  s.value?.click();
13778
13794
  }, oe = () => {
13779
13795
  c.value?.click();
@@ -13785,14 +13801,14 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13785
13801
  }, de = (e) => {
13786
13802
  let t = r.value.find((t) => t.id === e);
13787
13803
  t && URL.revokeObjectURL(t.localUrl), r.value = r.value.filter((t) => t.id !== e);
13788
- }, M = W(() => (a.enableDragDrop ?? !0) && !!a.fileUpload?.enabled), { isOverDropZone: fe } = qt(l, {
13789
- dataTypes: W(() => a.fileUpload?.allowedMimeTypes ?? []),
13804
+ }, M = U(() => (a.enableDragDrop ?? !0) && !!a.fileUpload?.enabled), { isOverDropZone: fe } = qt(l, {
13805
+ dataTypes: U(() => a.fileUpload?.allowedMimeTypes ?? []),
13790
13806
  onDrop: (e) => {
13791
13807
  M.value && e && O(e);
13792
13808
  }
13793
- }), me = G(!0), I = () => {
13809
+ }), me = W(!0), he = () => {
13794
13810
  me.value = !1;
13795
- }, R = W(() => a.attachmentNotice ? {
13811
+ }, L = U(() => a.attachmentNotice ? {
13796
13812
  id: "limit",
13797
13813
  icon: "ri:information-line",
13798
13814
  text: a.attachmentNotice,
@@ -13800,17 +13816,17 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13800
13816
  } : a.dismissableNotice && me.value ? {
13801
13817
  id: "dismissable",
13802
13818
  markdown: a.dismissableNotice,
13803
- dismiss: I
13804
- } : null), z = () => {
13819
+ dismiss: he
13820
+ } : null), R = () => {
13805
13821
  l.value?.querySelector("button:focus-visible") && o.value?.focus();
13806
- }, he = () => {
13807
- z(), i("stop-generation");
13808
13822
  }, ge = () => {
13809
- ee.value && (z(), p(), i("submit"), u.value = "", n.value = "", le(() => {
13823
+ R(), i("stop-generation");
13824
+ }, _e = () => {
13825
+ ee.value && (R(), p(), i("submit"), u.value = "", n.value = "", le(() => {
13810
13826
  o.value && (o.value.value = "", eg.update(o.value));
13811
13827
  }));
13812
- }, _e = (e) => {
13813
- e.shiftKey || e.isComposing || e.keyCode === 229 || (e.preventDefault(), ge());
13828
+ }, ve = (e) => {
13829
+ e.shiftKey || e.isComposing || e.keyCode === 229 || (e.preventDefault(), _e());
13814
13830
  };
13815
13831
  return ie(() => {
13816
13832
  o.value && eg(o.value);
@@ -13819,40 +13835,40 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13819
13835
  for (let e of r.value) URL.revokeObjectURL(e.localUrl);
13820
13836
  }), (t, n) => {
13821
13837
  let a = an, d = sn, f = Qt, p = on;
13822
- return A(), q("div", ig, [R.value ? (A(), q("div", {
13823
- key: R.value.id,
13838
+ return A(), K("div", ig, [L.value ? (A(), K("div", {
13839
+ key: L.value.id,
13824
13840
  class: "pk-chatbot-input__notice",
13825
13841
  role: "status"
13826
13842
  }, [
13827
- R.value.icon ? (A(), V(a, {
13843
+ L.value.icon ? (A(), B(a, {
13828
13844
  key: 0,
13829
- name: R.value.icon,
13845
+ name: L.value.icon,
13830
13846
  class: "pk-chatbot-input__notice-icon"
13831
13847
  }, null, 8, ["name"])) : F("", !0),
13832
- R.value.markdown ? (A(), V(yt, {
13848
+ L.value.markdown ? (A(), B(yt, {
13833
13849
  key: 1,
13834
- markdown: R.value.markdown,
13850
+ markdown: L.value.markdown,
13835
13851
  class: "wysiwyg pk-chatbot-input__notice-text"
13836
- }, null, 8, ["markdown"])) : (A(), q("span", ag, E(R.value.text), 1)),
13837
- R.value.dismiss ? (A(), V(d, {
13852
+ }, null, 8, ["markdown"])) : (A(), K("span", ag, E(L.value.text), 1)),
13853
+ L.value.dismiss ? (A(), B(d, {
13838
13854
  key: 3,
13839
13855
  title: t.$t("action.close"),
13840
13856
  modifiers: "action-quiet",
13841
13857
  icon: "ri:close-line",
13842
13858
  class: "w-18 h-18",
13843
- onClick: n[0] ||= (e) => R.value.dismiss()
13859
+ onClick: n[0] ||= (e) => L.value.dismiss()
13844
13860
  }, null, 8, ["title"])) : F("", !0)
13845
- ])) : F("", !0), H("form", {
13861
+ ])) : F("", !0), V("form", {
13846
13862
  ref_key: "formEl",
13847
13863
  ref: l,
13848
13864
  class: "pk-chatbot-input__form",
13849
- onSubmit: ke(ge, ["prevent"])
13865
+ onSubmit: Ae(_e, ["prevent"])
13850
13866
  }, [
13851
- N(fe) && M.value ? (A(), q("div", og, [J(a, {
13867
+ N(fe) && M.value ? (A(), K("div", og, [J(a, {
13852
13868
  name: "ri:upload-cloud-2-line",
13853
13869
  class: "pk-chatbot-input__drop-overlay-icon"
13854
- }), H("span", null, E(t.$t("action.dropFile")), 1)])) : F("", !0),
13855
- r.value.length ? (A(), q("div", sg, [(A(!0), q(B, null, Le(r.value, (e) => (A(), V(hn, {
13870
+ }), V("span", null, E(t.$t("action.dropFile")), 1)])) : F("", !0),
13871
+ r.value.length ? (A(), K("div", sg, [(A(!0), K(z, null, Le(r.value, (e) => (A(), B(hn, {
13856
13872
  key: e.id,
13857
13873
  "media-type": e.file.type,
13858
13874
  url: e.localUrl,
@@ -13873,15 +13889,15 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13873
13889
  "removable",
13874
13890
  "onRemove"
13875
13891
  ]))), 128))])) : F("", !0),
13876
- H("div", cg, [
13892
+ V("div", cg, [
13877
13893
  te(t.$slots, "prepend"),
13878
- e.fileUpload && e.fileUpload.enabled && (D.value || t.$slots["additional-actions"]) ? (A(), V(p, pe(ce({ key: 0 }, {
13894
+ e.fileUpload && e.fileUpload.enabled && (D.value || t.$slots["additional-actions"]) ? (A(), B(p, pe(ce({ key: 0 }, {
13879
13895
  placement: "top-start",
13880
13896
  modifiers: "menu",
13881
13897
  flip: !0,
13882
13898
  offset: 3
13883
13899
  })), {
13884
- default: C(({ init: e, toggle: n, aria: r }) => [H("button", ce({ ref: (t) => e(t) }, r, {
13900
+ default: C(({ init: e, toggle: n, aria: r }) => [V("button", ce({ ref: (t) => e(t) }, r, {
13885
13901
  class: "pk-chat-button",
13886
13902
  type: "button",
13887
13903
  title: t.$t("action.attachFile"),
@@ -13892,7 +13908,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13892
13908
  class: "pk-chat-button__icon"
13893
13909
  })], 16, lg)]),
13894
13910
  items: C(() => [
13895
- D.value ? (A(), V(f, {
13911
+ D.value ? (A(), B(f, {
13896
13912
  key: 0,
13897
13913
  disabled: v.value || e.attachmentLimitReached,
13898
13914
  onClick: oe
@@ -13900,7 +13916,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13900
13916
  default: C(() => [J(a, {
13901
13917
  name: "ri:camera-line",
13902
13918
  class: "pk-chatbot-input__dropdown-icon"
13903
- }), L(" " + E(t.$t("action.takePhoto")), 1)]),
13919
+ }), I(" " + E(t.$t("action.takePhoto")), 1)]),
13904
13920
  _: 1
13905
13921
  }, 8, ["disabled"])) : F("", !0),
13906
13922
  J(f, {
@@ -13910,20 +13926,20 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13910
13926
  default: C(() => [J(a, {
13911
13927
  name: "ri:attachment-line",
13912
13928
  class: "pk-chatbot-input__dropdown-icon"
13913
- }), L(" " + E(t.$t("action.attachFile")), 1)]),
13929
+ }), I(" " + E(t.$t("action.attachFile")), 1)]),
13914
13930
  _: 1
13915
13931
  }, 8, ["disabled"]),
13916
13932
  te(t.$slots, "additional-actions")
13917
13933
  ]),
13918
13934
  _: 3
13919
- }, 16)) : e.fileUpload && e.fileUpload.enabled ? (A(), V(rg, {
13935
+ }, 16)) : e.fileUpload && e.fileUpload.enabled ? (A(), B(rg, {
13920
13936
  key: 1,
13921
13937
  icon: "ri:add-line",
13922
13938
  title: t.$t("action.attachFile"),
13923
13939
  disabled: v.value || e.attachmentLimitReached,
13924
13940
  onClick: re
13925
13941
  }, null, 8, ["title", "disabled"])) : F("", !0),
13926
- e.fileUpload && e.fileUpload.enabled ? (A(), q("input", {
13942
+ e.fileUpload && e.fileUpload.enabled ? (A(), K("input", {
13927
13943
  key: 2,
13928
13944
  ref_key: "fileInputEl",
13929
13945
  ref: s,
@@ -13933,7 +13949,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13933
13949
  accept: T.value,
13934
13950
  onChange: j
13935
13951
  }, null, 40, ug)) : F("", !0),
13936
- e.fileUpload && e.fileUpload.enabled && D.value ? (A(), q("input", {
13952
+ e.fileUpload && e.fileUpload.enabled && D.value ? (A(), K("input", {
13937
13953
  key: 3,
13938
13954
  ref_key: "cameraInputEl",
13939
13955
  ref: c,
@@ -13943,7 +13959,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13943
13959
  accept: ne.value,
13944
13960
  onChange: j
13945
13961
  }, null, 40, dg)) : F("", !0),
13946
- H("div", fg, [H("textarea", {
13962
+ V("div", fg, [V("textarea", {
13947
13963
  ref_key: "textareaEl",
13948
13964
  ref: o,
13949
13965
  value: u.value,
@@ -13956,27 +13972,27 @@ var ig = { class: "pk-chatbot-input" }, ag = {
13956
13972
  "aria-invalid": x.value || void 0,
13957
13973
  placeholder: e.placeholder,
13958
13974
  onInput: h,
13959
- onKeydown: be(_e, ["enter"])
13975
+ onKeydown: xe(ve, ["enter"])
13960
13976
  }, null, 40, pg)]),
13961
- e.maxMessageLength ? (A(), q("div", {
13977
+ e.maxMessageLength ? (A(), K("div", {
13962
13978
  key: 4,
13963
13979
  id: N(y),
13964
- class: Ne(["pk-chatbot-input__counter", { "pk-chatbot-input__counter--over": x.value }])
13965
- }, [L(E(t.$n(b.value, "integer")) + "/", 1), H("span", hg, E(t.$n(e.maxMessageLength, "integer")), 1)], 10, mg)) : F("", !0),
13966
- e.voiceEnabled && !g.value ? (A(), V(rg, {
13980
+ class: q(["pk-chatbot-input__counter", { "pk-chatbot-input__counter--over": x.value }])
13981
+ }, [I(E(t.$n(b.value, "integer")) + "/", 1), V("span", hg, E(t.$n(e.maxMessageLength, "integer")), 1)], 10, mg)) : F("", !0),
13982
+ e.voiceEnabled && !g.value ? (A(), B(rg, {
13967
13983
  key: 5,
13968
13984
  icon: "ri:mic-line",
13969
13985
  title: t.$t("action.talk"),
13970
13986
  disabled: v.value,
13971
13987
  onClick: n[1] ||= (e) => i("voice-start")
13972
13988
  }, null, 8, ["title", "disabled"])) : F("", !0),
13973
- g.value ? (A(), V(rg, {
13989
+ g.value ? (A(), B(rg, {
13974
13990
  key: 6,
13975
13991
  icon: "ri:stop-fill",
13976
13992
  modifiers: "primary",
13977
13993
  title: t.$t("action.stop"),
13978
- onClick: he
13979
- }, null, 8, ["title"])) : (A(), V(rg, {
13994
+ onClick: ge
13995
+ }, null, 8, ["title"])) : (A(), B(rg, {
13980
13996
  key: 7,
13981
13997
  type: "submit",
13982
13998
  modifiers: "primary",
@@ -14004,13 +14020,13 @@ var _g = { class: "pk-chatbot-empty-state" }, vg = /*#__PURE__*/ pn(/* @__PURE__
14004
14020
  name: { type: String }
14005
14021
  },
14006
14022
  setup(e) {
14007
- return (t, n) => (A(), q("div", _g, [e.logo || e.name ? (A(), V(Ap, {
14023
+ return (t, n) => (A(), K("div", _g, [e.logo || e.name ? (A(), B(Ap, {
14008
14024
  key: 0,
14009
14025
  class: "pk-chatbot-empty-state__avatar",
14010
14026
  modifiers: "surface",
14011
14027
  "img-src": e.logo,
14012
14028
  name: e.name
14013
- }, null, 8, ["img-src", "name"])) : F("", !0), e.greeting ? (A(), V(yt, {
14029
+ }, null, 8, ["img-src", "name"])) : F("", !0), e.greeting ? (A(), B(yt, {
14014
14030
  key: 1,
14015
14031
  markdown: e.greeting,
14016
14032
  animation: null,
@@ -14064,14 +14080,14 @@ var yg = .18, bg = .35, xg = /*#__PURE__*/ pn(/* @__PURE__ */ w({
14064
14080
  };
14065
14081
  return P(() => t.state, async (e) => {
14066
14082
  e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => yg * 1.6), await le(), s()) : i === void 0 && (i = requestAnimationFrame(c));
14067
- }, { immediate: !0 }), ue(l), (t, r) => (A(), q("div", {
14068
- class: Ne(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
14083
+ }, { immediate: !0 }), ue(l), (t, r) => (A(), K("div", {
14084
+ class: q(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
14069
14085
  "aria-hidden": "true"
14070
- }, [H("div", {
14086
+ }, [V("div", {
14071
14087
  ref_key: "barsEl",
14072
14088
  ref: n,
14073
14089
  class: "pk-voice-orb__bars"
14074
- }, [(A(!0), q(B, null, Le(e.bars, (e) => (A(), q("span", {
14090
+ }, [(A(!0), K(z, null, Le(e.bars, (e) => (A(), K("span", {
14075
14091
  key: e,
14076
14092
  class: "pk-voice-orb__bar"
14077
14093
  }))), 128))], 512)], 2));
@@ -14079,7 +14095,7 @@ var yg = .18, bg = .35, xg = /*#__PURE__*/ pn(/* @__PURE__ */ w({
14079
14095
  }), [["styles", [".pk-voice-orb{--pk-voice-orb-color:var(--color-word-3);width:var(--pk-voice-orb-size,var(--spacing-40));height:var(--pk-voice-orb-size,var(--spacing-40));border-radius:var(--rounded-full);background-color:color-mix(in srgb, var(--pk-voice-orb-color) 12%, transparent);transition:background-color var(--duration-200,.2s) ease;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.pk-voice-orb__bars{height:var(--pk-voice-orb-bars-height,var(--spacing-20));align-items:center;gap:2px;display:flex}.pk-voice-orb__bar{border-radius:var(--rounded-full);background-color:var(--pk-voice-orb-color);width:3px;height:100%;transform:scaleY(var(--pk-voice-orb-scale,.2));transform-origin:50%}.pk-voice-orb--listening{--pk-voice-orb-color:var(--color-brand-graphic)}.pk-voice-orb--speaking{--pk-voice-orb-color:var(--color-brand);background-color:var(--color-brand)}.pk-voice-orb--speaking .pk-voice-orb__bar{background-color:var(--color-brand-contrast)}.pk-voice-orb--listening,.pk-voice-orb--speaking{animation:2s ease-out infinite pk-voice-orb-live}.pk-voice-orb--error{--pk-voice-orb-color:var(--color-danger)}.pk-voice-orb--connecting .pk-voice-orb__bar{animation:1.2s ease-in-out infinite pk-voice-orb-wait}.pk-voice-orb--connecting .pk-voice-orb__bar:nth-child(2){animation-delay:.15s}.pk-voice-orb--connecting .pk-voice-orb__bar:nth-child(3){animation-delay:.3s}.pk-voice-orb--connecting .pk-voice-orb__bar:nth-child(4){animation-delay:.45s}.pk-voice-orb--connecting .pk-voice-orb__bar:nth-child(5){animation-delay:.6s}@keyframes pk-voice-orb-wait{0%,to{transform:scaleY(.25)}50%{transform:scaleY(.8)}}@keyframes pk-voice-orb-live{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--pk-voice-orb-color) 35%, transparent)}to{box-shadow:0 0 0 var(--spacing-8) transparent}}@media (prefers-reduced-motion:reduce){.pk-voice-orb__bar{animation:none;transform:scaleY(.45)}.pk-voice-orb--listening,.pk-voice-orb--speaking{box-shadow:0 0 0 3px color-mix(in srgb, var(--pk-voice-orb-color) 20%, transparent);animation:none}}"]]]);
14080
14096
  //#endregion
14081
14097
  //#region ../../packages/components/src/chat/PkVoiceSession.vue?vue&type=script&setup=true&lang.ts
14082
- j(), T(), U();
14098
+ j(), T(), H();
14083
14099
  var Sg = {
14084
14100
  key: 0,
14085
14101
  class: "pk-voice-session__badge",
@@ -14110,17 +14126,17 @@ var Sg = {
14110
14126
  "dismiss"
14111
14127
  ],
14112
14128
  setup(e, { emit: t }) {
14113
- let n = e, r = t, { t: i } = ze({ useScope: "global" }), a = W(() => n.error ? i("message.voiceFailed") : n.state === "connecting" ? i("message.voiceConnecting") : n.state === "speaking" ? i("message.voiceSpeaking") : n.muted ? i("message.voiceMuted") : i("message.voiceListening")), o = W(() => {
14129
+ let n = e, r = t, { t: i } = ze({ useScope: "global" }), a = U(() => n.error ? i("message.voiceFailed") : n.state === "connecting" ? i("message.voiceConnecting") : n.state === "speaking" ? i("message.voiceSpeaking") : n.muted ? i("message.voiceMuted") : i("message.voiceListening")), o = U(() => {
14114
14130
  if (n.remainingSeconds === void 0) return;
14115
14131
  let e = Math.floor(n.remainingSeconds / 60), t = n.remainingSeconds % 60;
14116
14132
  return `${e}:${String(t).padStart(2, "0")}`;
14117
- }), s = W(() => n.remainingSeconds !== void 0 && n.remainingSeconds <= 30), c = W(() => !n.error && (n.state === "listening" || n.state === "speaking")), l = W(() => {
14133
+ }), s = U(() => n.remainingSeconds !== void 0 && n.remainingSeconds <= 30), c = U(() => !n.error && (n.state === "listening" || n.state === "speaking")), l = U(() => {
14118
14134
  if (c.value) return n.state === "speaking" ? "speaking" : n.muted ? void 0 : "listening";
14119
14135
  });
14120
14136
  return (t, n) => {
14121
14137
  let u = an;
14122
- return A(), q("div", { class: Ne(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
14123
- e.error ? (A(), q("span", Sg, [J(u, { name: "ri:error-warning-line" })])) : (A(), V(xg, {
14138
+ return A(), K("div", { class: q(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
14139
+ e.error ? (A(), K("span", Sg, [J(u, { name: "ri:error-warning-line" })])) : (A(), B(xg, {
14124
14140
  key: 1,
14125
14141
  state: e.state,
14126
14142
  sample: e.sample,
@@ -14130,34 +14146,34 @@ var Sg = {
14130
14146
  "sample",
14131
14147
  "spectrum"
14132
14148
  ])),
14133
- H("div", Cg, [H("span", { class: Ne(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (A(), q("span", wg)) : F("", !0), L(" " + E(a.value), 1)], 2), e.error ? (A(), q("p", {
14149
+ V("div", Cg, [V("span", { class: q(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (A(), K("span", wg)) : F("", !0), I(" " + E(a.value), 1)], 2), e.error ? (A(), K("p", {
14134
14150
  key: 0,
14135
14151
  class: "pk-voice-session__detail",
14136
14152
  title: e.rawError ?? e.error
14137
14153
  }, E(e.error), 9, Tg)) : F("", !0)]),
14138
- o.value ? (A(), q("span", {
14154
+ o.value ? (A(), K("span", {
14139
14155
  key: 2,
14140
- class: Ne(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
14156
+ class: q(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
14141
14157
  title: N(i)("hint.voiceRemaining"),
14142
14158
  "aria-hidden": "true"
14143
14159
  }, E(o.value), 11, Eg)) : F("", !0),
14144
- H("div", Dg, [e.error ? (A(), q(B, { key: 0 }, [J(rg, {
14160
+ V("div", Dg, [e.error ? (A(), K(z, { key: 0 }, [J(rg, {
14145
14161
  icon: "ri:refresh-line",
14146
14162
  label: N(i)("action.retry"),
14147
14163
  onClick: n[0] ||= (e) => r("retry")
14148
- }, null, 8, ["label"]), e.live ? (A(), V(rg, {
14164
+ }, null, 8, ["label"]), e.live ? (A(), B(rg, {
14149
14165
  key: 0,
14150
14166
  icon: "ri:stop-circle-line",
14151
14167
  modifiers: "danger",
14152
14168
  title: N(i)("action.hangUp"),
14153
14169
  "aria-label": N(i)("action.hangUp"),
14154
14170
  onClick: n[1] ||= (e) => r("hang-up")
14155
- }, null, 8, ["title", "aria-label"])) : (A(), V(rg, {
14171
+ }, null, 8, ["title", "aria-label"])) : (A(), B(rg, {
14156
14172
  key: 1,
14157
14173
  icon: "ri:close-line",
14158
14174
  label: N(i)("action.close"),
14159
14175
  onClick: n[2] ||= (e) => r("dismiss")
14160
- }, null, 8, ["label"]))], 64)) : (A(), q(B, { key: 1 }, [J(rg, {
14176
+ }, null, 8, ["label"]))], 64)) : (A(), K(z, { key: 1 }, [J(rg, {
14161
14177
  icon: e.muted ? "ri:mic-off-line" : "ri:mic-line",
14162
14178
  title: e.muted ? N(i)("action.unmute") : N(i)("action.mute"),
14163
14179
  "aria-label": e.muted ? N(i)("action.unmute") : N(i)("action.mute"),
@@ -14181,7 +14197,7 @@ var Sg = {
14181
14197
  }), [["styles", [".pk-voice-session{z-index:1;--pk-chat-dock-height:var(--spacing-50);--pk-voice-orb-size:var(--spacing-32);--pk-voice-orb-bars-height:var(--spacing-18);--pk-voice-session-surface:var(--color-surface);align-items:center;gap:var(--spacing-12);min-height:var(--pk-chat-dock-height);margin-inline:var(--spacing-sm);margin-bottom:var(--spacing-sm);padding-block:0;padding-inline:var(--spacing-14);border:1px solid var(--color-surface-3);border-radius:var(--rounded-xl);background-color:var(--pk-voice-session-surface);box-shadow:var(--shadow-lg);flex-wrap:nowrap;display:flex;position:relative}@media (width>=576px){.pk-voice-session{padding-inline:var(--spacing-10)}}.pk-voice-session--failed{background-color:color-mix(in srgb, var(--color-danger) 6%, var(--pk-voice-session-surface));border-color:color-mix(in srgb, var(--color-danger) 24%, transparent)}.pk-voice-session__badge{width:var(--pk-voice-orb-size);height:var(--pk-voice-orb-size);border-radius:var(--rounded-full);background-color:color-mix(in srgb, var(--color-danger) 12%, transparent);color:var(--color-surface-danger-readable);font-size:var(--text-18);flex-shrink:0;justify-content:center;align-items:center;display:flex}.pk-voice-session__status{flex-direction:column;flex:auto;min-width:0;display:flex}.pk-voice-session__state{font-size:var(--text-14);color:var(--color-word-3);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pk-voice-session__state--listening,.pk-voice-session__state--speaking{color:var(--color-brand-readable);font-weight:var(--font-medium,500)}.pk-voice-session__live-dot{width:var(--spacing-6);height:var(--spacing-6);border-radius:var(--rounded-full);vertical-align:middle;background-color:currentColor;margin-inline-end:var(--spacing-4);animation:2s ease-in-out infinite pk-voice-session-live;display:inline-block}.pk-voice-session__detail{color:var(--color-word-3);font-size:var(--text-12);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.pk-voice-session--failed .pk-voice-session__detail{color:color-mix(in srgb, var(--color-danger-readable-strong) 80%, var(--color-word-3))}.pk-voice-session--failed .pk-voice-session__state{color:var(--color-danger-readable-strong);font-weight:var(--font-medium,500)}.pk-voice-session__timer{color:var(--color-word-3);font-size:var(--text-12);font-variant-numeric:tabular-nums}.pk-voice-session__timer--warning{color:var(--color-danger-readable)}.pk-voice-session__actions{align-items:center;gap:var(--spacing-xs);flex-shrink:0;margin-inline-start:auto;display:flex}@keyframes pk-voice-session-live{0%,to{opacity:1}50%{opacity:.35}}@media (prefers-reduced-motion:reduce){.pk-voice-session__live-dot{animation:none}}"]]]);
14182
14198
  //#endregion
14183
14199
  //#region ../../packages/components/src/chat/PkChatbotWakeupBar.vue?vue&type=script&setup=true&lang.ts
14184
- j(), U(), T();
14200
+ j(), H(), T();
14185
14201
  var kg = {
14186
14202
  class: "pk-chatbot-wakeup-bar",
14187
14203
  role: "status"
@@ -14196,12 +14212,12 @@ var kg = {
14196
14212
  let n = t, { t: r, d: i } = ze({ useScope: "global" });
14197
14213
  return (t, a) => {
14198
14214
  let o = an, s = sn;
14199
- return A(), q("div", kg, [
14215
+ return A(), K("div", kg, [
14200
14216
  J(o, {
14201
14217
  name: "ri:alarm-line",
14202
14218
  class: "shrink-0"
14203
14219
  }),
14204
- H("span", Ag, [H("strong", null, E(N(r)("label.wakeupNext", { time: N(i)(new Date(e.pending.dueAt), "time") })), 1), H("span", jg, E(e.pending.reason), 1)]),
14220
+ V("span", Ag, [V("strong", null, E(N(r)("label.wakeupNext", { time: N(i)(new Date(e.pending.dueAt), "time") })), 1), V("span", jg, E(e.pending.reason), 1)]),
14205
14221
  J(s, {
14206
14222
  label: N(r)("action.stop"),
14207
14223
  modifiers: "action-quiet",
@@ -14219,9 +14235,9 @@ var kg = {
14219
14235
  }), [["styles", [".pk-chatbot-wakeup-bar{align-items:center;gap:var(--spacing-sm);padding:var(--spacing-xs) var(--spacing-md);border-top:1px solid var(--color-surface-3);color:var(--color-word-3);font-size:var(--text-12);display:flex}.pk-chatbot-wakeup-bar__text{flex-direction:column;flex:1;min-width:0;display:flex}.pk-chatbot-wakeup-bar__reason{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}"]]]);
14220
14236
  //#endregion
14221
14237
  //#region ../../packages/components/src/chat/useVoiceSession.ts
14222
- j(), U();
14238
+ j(), H();
14223
14239
  var Ng = (e) => {
14224
- let t = _e(), n = G("disconnected"), r = G("listening"), i = G(), a = G([]), o = G(), s = G(), c, l, u = 0, d = !1, f = () => {
14240
+ let t = ve(), n = W("disconnected"), r = W("listening"), i = W(), a = W([]), o = W(), s = W(), c, l, u = 0, d = !1, f = () => {
14225
14241
  l &&= (clearInterval(l), void 0), o.value = void 0;
14226
14242
  }, p = (e) => {
14227
14243
  let t = Date.now() + e * 1e3, n = () => {
@@ -14323,7 +14339,7 @@ var Ng = (e) => {
14323
14339
  let r = t.value;
14324
14340
  t.value = void 0, r?.endSession().catch(() => void 0), n.value = "disconnected";
14325
14341
  };
14326
- return typeof window < "u" && window.addEventListener("pagehide", S), he(() => {
14342
+ return typeof window < "u" && window.addEventListener("pagehide", S), ge(() => {
14327
14343
  d = !0, typeof window < "u" && window.removeEventListener("pagehide", S), h();
14328
14344
  }), {
14329
14345
  status: n,
@@ -14332,10 +14348,10 @@ var Ng = (e) => {
14332
14348
  transcript: a,
14333
14349
  remainingSeconds: o,
14334
14350
  chatId: s,
14335
- isActive: W(() => n.value === "connected" || n.value === "connecting"),
14336
- isConnecting: W(() => n.value === "connecting"),
14337
- isSpeaking: W(() => n.value === "connected" && r.value === "speaking"),
14338
- isListening: W(() => n.value === "connected" && r.value === "listening"),
14351
+ isActive: U(() => n.value === "connected" || n.value === "connecting"),
14352
+ isConnecting: U(() => n.value === "connecting"),
14353
+ isSpeaking: U(() => n.value === "connected" && r.value === "speaking"),
14354
+ isListening: U(() => n.value === "connected" && r.value === "listening"),
14339
14355
  start: g,
14340
14356
  stop: h,
14341
14357
  dismissError: _,
@@ -14347,14 +14363,14 @@ var Ng = (e) => {
14347
14363
  };
14348
14364
  //#endregion
14349
14365
  //#region ../../packages/components/src/chat/useWakeupWatch.ts
14350
- j(), U();
14366
+ j(), H();
14351
14367
  var Pg = 4e3, Fg = [
14352
14368
  3e3,
14353
14369
  5e3,
14354
14370
  1e4
14355
14371
  ], Ig = 12e4, Lg = 3e4;
14356
14372
  function Rg(e) {
14357
- let t = G(null), n = G(!1), r, i = !1, a = () => {
14373
+ let t = W(null), n = W(!1), r, i = !1, a = () => {
14358
14374
  clearTimeout(r), r = void 0;
14359
14375
  }, o = (e, t) => {
14360
14376
  a(), i || (r = setTimeout(() => void t(), e));
@@ -14409,7 +14425,7 @@ function Rg(e) {
14409
14425
  }
14410
14426
  //#endregion
14411
14427
  //#region ../../packages/components/src/chat/PkChatbotViewChat.vue?vue&type=script&setup=true&lang.ts
14412
- j(), U(), Ee(), T();
14428
+ j(), H(), De(), T();
14413
14429
  var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14414
14430
  key: 1,
14415
14431
  class: "p-md border-t border-surface-3 text-center text-12 text-danger bg-surface-danger"
@@ -14428,18 +14444,18 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14428
14444
  },
14429
14445
  emits: ["show-info", "revise"],
14430
14446
  setup(e, { emit: t }) {
14431
- let n = M(() => import("./_chunks/PkToolShowForm-DnIwTGl4.js")), r = M(() => import("./_chunks/PkToolShowContactForm-CfCy-b8w.js")), i = M(() => import("./_chunks/PkToolShowSuggestedReply-BISQY1ce.js")), a = M(() => import("./_chunks/PkToolShowSources-Bvg3f3GC.js")), o = M(() => import("./_chunks/PkToolRequestGeolocation-PxhQxMP1.js")), s = M(() => import("./_chunks/PkToolRequestOAuthConnection-klmrRZWz.js")), c = M(() => import("./_chunks/PkToolShowLocation-D5d6bbP-.js")), l = M(() => import("./_chunks/PkToolShowDiagram-JpRMa4Jj.js")), u = M(() => import("./_chunks/PkToolEditSpreadsheet-CfJ3BWMe.js")), d = e, f = t, p = Fd(d.agentId), { agentInterface: m, agentFileUpload: h, agentVoice: g, actions: _, revisedAnswers: v, messages: y, chat: b, messageFeedbacks: x, feedbackDialogMessage: S, isFeedbackSubmitting: ee, isFeedbackSubmitted: te, feedbackSubmitError: w, isLeadSubmitted: T, isLoadingSubmitLead: ne, submitLeadError: D, input: re, inputMessagePlaceholder: ie, isConversationBlocked: ae, baseUrl: oe, pendingAttachments: O, isAttachmentLimitReached: se, fileLimitError: ce, apiClient: le, isDark: j } = Jn(p), de = (e) => le.value.getMediaDownloadUrl(d.agentId, p.localChatId, e), { handleSubmit: fe, stopGeneration: pe, regenerate: me, onUpvote: I, onDownvote: L, onFeedback: R, onFeedbackSubmit: B, onLeadSubmit: he, startNewChat: ge, addToolOutput: _e, addToolApprovalResponse: U, handleFileSelect: ve, clearFileLimitError: ye, refreshMessages: be, appendMessage: xe } = p, { t: Se } = ze({ useScope: "global" }), Ce = W(() => {
14447
+ let n = M(() => import("./_chunks/PkToolShowForm-CbuToc8O.js")), r = M(() => import("./_chunks/PkToolShowContactForm-Dn6CEXF_.js")), i = M(() => import("./_chunks/PkToolShowSuggestedReply-BISQY1ce.js")), a = M(() => import("./_chunks/PkToolShowSources-D532Worv.js")), o = M(() => import("./_chunks/PkToolRequestGeolocation-PxhQxMP1.js")), s = M(() => import("./_chunks/PkToolRequestOAuthConnection-W3ilzpr7.js")), c = M(() => import("./_chunks/PkToolShowLocation-jRZtqoBO.js")), l = M(() => import("./_chunks/PkToolShowDiagram-WregKAJO.js")), u = M(() => import("./_chunks/PkToolEditSpreadsheet-Xzum_9NH.js")), d = e, f = t, p = Fd(d.agentId), { agentInterface: m, agentFileUpload: h, agentVoice: g, actions: _, revisedAnswers: v, messages: y, chat: b, messageFeedbacks: x, feedbackDialogMessage: S, isFeedbackSubmitting: ee, isFeedbackSubmitted: te, feedbackSubmitError: w, isLeadSubmitted: T, isLoadingSubmitLead: ne, submitLeadError: D, input: re, inputMessagePlaceholder: ie, isConversationBlocked: ae, baseUrl: oe, pendingAttachments: O, isAttachmentLimitReached: se, fileLimitError: ce, apiClient: le, isDark: j } = Jn(p), de = (e) => le.value.getMediaDownloadUrl(d.agentId, p.localChatId, e), { handleSubmit: fe, stopGeneration: pe, regenerate: me, onUpvote: he, onDownvote: I, onFeedback: L, onFeedbackSubmit: z, onLeadSubmit: ge, startNewChat: _e, addToolOutput: ve, addToolApprovalResponse: H, handleFileSelect: ye, clearFileLimitError: be, refreshMessages: xe, appendMessage: Se } = p, { t: Ce } = ze({ useScope: "global" }), we = U(() => {
14432
14448
  let e = ce.value;
14433
- if (e) return e.reason === "per-chat" ? Se("message.fileLimitPerChat", { max: e.max }) : Se("message.fileLimitPerMessage", { max: e.max });
14434
- }), we = cn(() => m.value?.dismissableNotice), Te = W(() => y.value.some((e) => e.role === "user")), Ee = W(() => d.modifier === "fullscreen" && !Te.value), De = qd(m, () => d.userName), Oe = k("chatViewEl"), ke = async (e) => (await le.value.expandSourceContext(d.agentId, e.documentId, e.chunkIndex)).content, Ae = async (e) => {
14449
+ if (e) return e.reason === "per-chat" ? Ce("message.fileLimitPerChat", { max: e.max }) : Ce("message.fileLimitPerMessage", { max: e.max });
14450
+ }), Te = cn(() => m.value?.dismissableNotice), Ee = U(() => y.value.some((e) => e.role === "user")), De = U(() => d.modifier === "fullscreen" && !Ee.value), Oe = qd(m, () => d.userName), ke = k("chatViewEl"), Ae = async (e) => (await le.value.expandSourceContext(d.agentId, e.documentId, e.chunkIndex)).content, je = async (e) => {
14435
14451
  let t = await le.value.downloadSourceDocument(d.agentId, e);
14436
14452
  window.open(t.downloadUrl, "_blank");
14437
- }, { isOverDropZone: je } = qt(Oe, {
14438
- dataTypes: W(() => h.value?.allowedMimeTypes ?? []),
14453
+ }, { isOverDropZone: Me } = qt(ke, {
14454
+ dataTypes: U(() => h.value?.allowedMimeTypes ?? []),
14439
14455
  onDrop: (e) => {
14440
- if (h.value?.enabled && e) for (let t of e) ve(t);
14456
+ if (h.value?.enabled && e) for (let t of e) ye(t);
14441
14457
  }
14442
- }), Me = G(!1), Pe = !1, Ie = G(!1), Le = [
14458
+ }), Ne = W(!1), Pe = !1, Ie = W(!1), Le = [
14443
14459
  3e3,
14444
14460
  5e3,
14445
14461
  1e4
@@ -14457,7 +14473,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14457
14473
  Ue = !0;
14458
14474
  let e;
14459
14475
  try {
14460
- e = await be();
14476
+ e = await xe();
14461
14477
  } finally {
14462
14478
  Ue = !1;
14463
14479
  }
@@ -14487,7 +14503,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14487
14503
  },
14488
14504
  closeGrant: (e) => le.value.closeVoiceSession(d.agentId, e),
14489
14505
  onTranscript: (e) => {
14490
- e.role === "user" ? (Ie.value = !0, xe({
14506
+ e.role === "user" ? (Ie.value = !0, Se({
14491
14507
  id: `${Od}user-${Nc()}`,
14492
14508
  role: "user",
14493
14509
  parts: [{
@@ -14503,26 +14519,26 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14503
14519
  P(() => Y.error.value, (e) => {
14504
14520
  e && (Ie.value = !1);
14505
14521
  });
14506
- let Je = W(() => g.value?.enabled === !0), Ye = W(() => Y.error.value ? "error" : Y.isConnecting.value ? "connecting" : Y.isSpeaking.value ? "speaking" : Y.isActive.value ? "listening" : "idle"), Xe = W(() => {
14522
+ let Je = U(() => g.value?.enabled === !0), Ye = U(() => Y.error.value ? "error" : Y.isConnecting.value ? "connecting" : Y.isSpeaking.value ? "speaking" : Y.isActive.value ? "listening" : "idle"), Xe = U(() => {
14507
14523
  let e = Y.error.value;
14508
- if (e) return /took too long/i.test(e) ? Se("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? Se("message.voiceNoAnswer") : Se("message.voiceInterrupted");
14509
- }), Ze = W(() => Y.isSpeaking.value ? "output" : "input"), Qe = () => Y.readLevel(Ze.value), $e = () => Y.readSpectrum(Ze.value), et = async () => {
14510
- Me.value = !1, await Y.start(), Y.isActive.value && (We(), Ge(Wg));
14524
+ if (e) return /took too long/i.test(e) ? Ce("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? Ce("message.voiceNoAnswer") : Ce("message.voiceInterrupted");
14525
+ }), Ze = U(() => Y.isSpeaking.value ? "output" : "input"), Qe = () => Y.readLevel(Ze.value), $e = () => Y.readSpectrum(Ze.value), et = async () => {
14526
+ Ne.value = !1, await Y.start(), Y.isActive.value && (We(), Ge(Wg));
14511
14527
  }, tt = async () => {
14512
14528
  Ie.value = !1, await Y.stop(), !Pe && qe(0);
14513
14529
  }, nt = () => {
14514
14530
  Y.dismissError();
14515
14531
  }, rt = async () => {
14516
14532
  Y.dismissError(), await Y.stop(), await et();
14517
- }, it = (e) => e?.toolCallId ?? "", ot = G(/* @__PURE__ */ new Set()), st = (e) => ot.value.has(it(e)), ct = G(/* @__PURE__ */ new Map()), lt = (e, t) => Y.isActive.value ? (Y.sendUserMessage(t) && (ot.value = new Set(ot.value).add(it(e)), qe()), !0) : !1, ut = (e, t, n) => {
14518
- lt(t, at(t, n)) || _e({
14533
+ }, it = (e) => e?.toolCallId ?? "", ot = W(/* @__PURE__ */ new Set()), st = (e) => ot.value.has(it(e)), ct = W(/* @__PURE__ */ new Map()), lt = (e, t) => Y.isActive.value ? (Y.sendUserMessage(t) && (ot.value = new Set(ot.value).add(it(e)), qe()), !0) : !1, ut = (e, t, n) => {
14534
+ lt(t, at(t, n)) || ve({
14519
14535
  tool: e,
14520
14536
  toolCallId: it(t),
14521
14537
  output: n
14522
14538
  });
14523
14539
  }, dt = (e) => {
14524
- let t = e.confirmed ? Se("message.voiceConfirmed") : Se("message.voiceCancelled");
14525
- lt({ toolCallId: e.toolCallId }, t) ? ot.value.has(e.toolCallId) && (ct.value = new Map(ct.value).set(e.toolCallId, e.confirmed)) : _e({
14540
+ let t = e.confirmed ? Ce("message.voiceConfirmed") : Ce("message.voiceCancelled");
14541
+ lt({ toolCallId: e.toolCallId }, t) ? ot.value.has(e.toolCallId) && (ct.value = new Map(ct.value).set(e.toolCallId, e.confirmed)) : ve({
14526
14542
  tool: "requestConfirm",
14527
14543
  toolCallId: e.toolCallId,
14528
14544
  output: e.confirmed ? "confirmed" : "cancelled"
@@ -14530,14 +14546,14 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14530
14546
  }, ft = (e, t) => {
14531
14547
  lt(e, t) || (re.value = t, fe());
14532
14548
  }, pt = (e, t) => {
14533
- let n = t.error ? Se("message.voiceLocationRefused") : Se("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
14534
- lt(e, n) || _e({
14549
+ let n = t.error ? Ce("message.voiceLocationRefused") : Ce("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
14550
+ lt(e, n) || ve({
14535
14551
  tool: "requestGeolocation",
14536
14552
  toolCallId: it(e),
14537
14553
  output: t
14538
14554
  });
14539
14555
  }, mt = (e, t) => {
14540
- lt(e, Se("message.voiceConnectionDone")) || _e({
14556
+ lt(e, Ce("message.voiceConnectionDone")) || ve({
14541
14557
  tool: "requestOAuthConnection",
14542
14558
  toolCallId: it(e),
14543
14559
  output: {
@@ -14546,7 +14562,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14546
14562
  }
14547
14563
  });
14548
14564
  }, ht = () => {
14549
- Me.value = !Me.value, Y.setMuted(Me.value);
14565
+ Ne.value = !Ne.value, Y.setMuted(Ne.value);
14550
14566
  };
14551
14567
  ue(() => {
14552
14568
  Pe = !0, We();
@@ -14556,36 +14572,36 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14556
14572
  chatId: () => p.localChatId,
14557
14573
  apiClient: () => le.value,
14558
14574
  messages: () => y.value,
14559
- refreshMessages: be
14575
+ refreshMessages: xe
14560
14576
  });
14561
- return P([() => p.localChatId, Te], ([, e]) => {
14577
+ return P([() => p.localChatId, Ee], ([, e]) => {
14562
14578
  bt(), e && yt();
14563
14579
  }, { immediate: !0 }), P(() => b.value.status, (e, t) => {
14564
- e === "ready" && t !== "ready" && Te.value && yt();
14580
+ e === "ready" && t !== "ready" && Ee.value && yt();
14565
14581
  }), (t, g) => {
14566
14582
  let k = an;
14567
- return A(), q("div", {
14583
+ return A(), K("div", {
14568
14584
  ref_key: "chatViewEl",
14569
- ref: Oe,
14570
- class: Ne(["pk-chatbot-view-chat", {
14571
- "pk-chatbot-view-chat--dragover": N(je) && N(h)?.enabled,
14572
- "pk-chatbot-view-chat--empty": Ee.value
14585
+ ref: ke,
14586
+ class: q(["pk-chatbot-view-chat", {
14587
+ "pk-chatbot-view-chat--dragover": N(Me) && N(h)?.enabled,
14588
+ "pk-chatbot-view-chat--empty": De.value
14573
14589
  }])
14574
14590
  }, [
14575
- J(K, {
14591
+ J(G, {
14576
14592
  name: "pk-chatbot-view-chat-fade",
14577
14593
  mode: "out-in"
14578
14594
  }, {
14579
- default: C(() => [Ee.value ? (A(), V(vg, {
14595
+ default: C(() => [De.value ? (A(), B(vg, {
14580
14596
  key: 0,
14581
- greeting: N(De),
14597
+ greeting: N(Oe),
14582
14598
  logo: N(m)?.logo,
14583
14599
  name: N(p).name
14584
14600
  }, null, 8, [
14585
14601
  "greeting",
14586
14602
  "logo",
14587
14603
  "name"
14588
- ])) : (A(), V(Yh, {
14604
+ ])) : (A(), B(Yh, {
14589
14605
  key: 1,
14590
14606
  class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
14591
14607
  interactive: "",
@@ -14606,17 +14622,17 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14606
14622
  "awaiting-spoken-answer": Ie.value,
14607
14623
  "is-dark": N(j),
14608
14624
  "show-scroll-to-bottom": e.modifier === "fullscreen",
14609
- onFeedbackSubmit: g[0] ||= (e) => N(B)(e),
14625
+ onFeedbackSubmit: g[0] ||= (e) => N(z)(e),
14610
14626
  onFeedbackClose: g[1] ||= (e) => S.value = void 0,
14611
14627
  onRegenerate: N(me),
14612
14628
  onAutoRetry: N(me),
14613
- onResetChat: N(ge),
14629
+ onResetChat: N(_e),
14614
14630
  onShowInfo: g[2] ||= (e) => f("show-info", e),
14615
14631
  onRevise: g[3] ||= (e) => f("revise", e),
14616
- onUpvote: N(I),
14617
- onDownvote: N(L),
14618
- onFeedback: N(R),
14619
- onApprovalRespond: N(U),
14632
+ onUpvote: N(he),
14633
+ onDownvote: N(I),
14634
+ onFeedback: N(L),
14635
+ onApprovalRespond: N(H),
14620
14636
  onConfirmRespond: dt
14621
14637
  }, {
14622
14638
  "tool-showContactForm": C(({ part: e }) => [J(N(r), {
@@ -14626,7 +14642,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14626
14642
  loading: N(ne),
14627
14643
  error: N(D),
14628
14644
  "privacy-policy-notice": N(m)?.privacyPolicyNotice,
14629
- onSubmit: N(he)
14645
+ onSubmit: N(ge)
14630
14646
  }, null, 8, [
14631
14647
  "part",
14632
14648
  "readonly",
@@ -14642,10 +14658,10 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14642
14658
  }, null, 8, ["part", "onSelect"])]),
14643
14659
  "tool-showSources": C(({ part: e }) => [J(N(a), {
14644
14660
  part: e,
14645
- "on-expand-context": ke,
14646
- "on-download": Ae
14661
+ "on-expand-context": Ae,
14662
+ "on-download": je
14647
14663
  }, null, 8, ["part"])]),
14648
- "tool-showForm": C(({ part: e }) => [J(K, { mode: "out-in" }, {
14664
+ "tool-showForm": C(({ part: e }) => [J(G, { mode: "out-in" }, {
14649
14665
  default: C(() => [J(N(n), {
14650
14666
  part: e,
14651
14667
  answered: st(e),
@@ -14657,7 +14673,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14657
14673
  ])]),
14658
14674
  _: 2
14659
14675
  }, 1024)]),
14660
- "tool-showMultipleChoice": C(({ part: e }) => [J(K, { mode: "out-in" }, {
14676
+ "tool-showMultipleChoice": C(({ part: e }) => [J(G, { mode: "out-in" }, {
14661
14677
  default: C(() => [J(N(n), {
14662
14678
  part: e,
14663
14679
  "allow-custom-answer": "",
@@ -14709,7 +14725,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14709
14725
  part: e,
14710
14726
  "is-dark": N(j)
14711
14727
  }, null, 8, ["part", "is-dark"])]),
14712
- "tool-editSpreadsheet": C(({ part: e }) => [(A(), V(N(u), {
14728
+ "tool-editSpreadsheet": C(({ part: e }) => [(A(), B(N(u), {
14713
14729
  key: N(gt)(e),
14714
14730
  part: e,
14715
14731
  "file-url": de
@@ -14743,16 +14759,16 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14743
14759
  ]))]),
14744
14760
  _: 1
14745
14761
  }),
14746
- H("div", zg, [
14747
- J(K, { name: "pk-chatbot-view-chat-fade" }, {
14748
- default: C(() => [Ee.value ? (A(), V(Fp, {
14762
+ V("div", zg, [
14763
+ J(G, { name: "pk-chatbot-view-chat-fade" }, {
14764
+ default: C(() => [De.value ? (A(), B(Fp, {
14749
14765
  key: 0,
14750
14766
  class: "pk-chatbot-view-chat__aurora",
14751
14767
  "source-selector": ".pk-chatbot-input__form"
14752
14768
  })) : F("", !0)]),
14753
14769
  _: 1
14754
14770
  }),
14755
- N(_t) && !N(ae) ? (A(), V(Mg, {
14771
+ N(_t) && !N(ae) ? (A(), B(Mg, {
14756
14772
  key: 0,
14757
14773
  pending: N(_t),
14758
14774
  stopping: N(vt),
@@ -14762,33 +14778,33 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14762
14778
  "stopping",
14763
14779
  "onStop"
14764
14780
  ])) : F("", !0),
14765
- N(ae) ? (A(), q("div", Bg, E(N(Se)("message.chatErrorConversationBlocked")), 1)) : Ye.value === "idle" ? (A(), V(gg, {
14781
+ N(ae) ? (A(), K("div", Bg, E(N(Ce)("message.chatErrorConversationBlocked")), 1)) : Ye.value === "idle" ? (A(), B(gg, {
14766
14782
  key: 3,
14767
14783
  modelValue: N(re),
14768
- "onUpdate:modelValue": g[4] ||= (e) => z(re) ? re.value = e : null,
14784
+ "onUpdate:modelValue": g[4] ||= (e) => R(re) ? re.value = e : null,
14769
14785
  "pending-attachments": N(O),
14770
- "onUpdate:pendingAttachments": g[5] ||= (e) => z(O) ? O.value = e : null,
14786
+ "onUpdate:pendingAttachments": g[5] ||= (e) => R(O) ? O.value = e : null,
14771
14787
  placeholder: N(ie),
14772
- "dismissable-notice": N(we) && N(b).messages.length <= 1 ? N(we) : void 0,
14788
+ "dismissable-notice": N(Te) && N(b).messages.length <= 1 ? N(Te) : void 0,
14773
14789
  status: N(b).status,
14774
14790
  "max-message-length": N(m)?.maxMessageLength,
14775
14791
  "file-upload": N(h),
14776
14792
  "attachment-limit-reached": N(se),
14777
- "attachment-notice": Ce.value,
14793
+ "attachment-notice": we.value,
14778
14794
  "voice-enabled": Je.value,
14779
14795
  onStopGeneration: N(pe),
14780
14796
  onSubmit: N(fe),
14781
- onFileSelect: N(ve),
14782
- onDismissAttachmentNotice: N(ye),
14797
+ onFileSelect: N(ye),
14798
+ onDismissAttachmentNotice: N(be),
14783
14799
  onVoiceStart: et
14784
14800
  }, Fe({ _: 2 }, [e.modifier === "fullscreen" ? {
14785
14801
  name: "prepend",
14786
- fn: C(() => [H("span", Vg, [J(Ap, {
14802
+ fn: C(() => [V("span", Vg, [J(Ap, {
14787
14803
  modifiers: "surface",
14788
14804
  class: "pk-chatbot-view-chat__agent-chip-avatar",
14789
14805
  "img-src": N(m)?.logo,
14790
14806
  name: N(p).name
14791
- }, null, 8, ["img-src", "name"]), N(p).name ? (A(), q("strong", Hg, E(N(p).name), 1)) : F("", !0)])]),
14807
+ }, null, 8, ["img-src", "name"]), N(p).name ? (A(), K("strong", Hg, E(N(p).name), 1)) : F("", !0)])]),
14792
14808
  key: "0"
14793
14809
  } : void 0]), 1032, [
14794
14810
  "modelValue",
@@ -14805,13 +14821,13 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14805
14821
  "onSubmit",
14806
14822
  "onFileSelect",
14807
14823
  "onDismissAttachmentNotice"
14808
- ])) : (A(), V(Og, {
14824
+ ])) : (A(), B(Og, {
14809
14825
  key: 2,
14810
14826
  state: Ye.value,
14811
14827
  sample: Qe,
14812
14828
  spectrum: $e,
14813
14829
  "remaining-seconds": N(Y).remainingSeconds.value,
14814
- muted: Me.value,
14830
+ muted: Ne.value,
14815
14831
  error: Xe.value,
14816
14832
  "raw-error": N(Y).error.value,
14817
14833
  live: N(Y).isActive.value,
@@ -14829,11 +14845,11 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14829
14845
  "live"
14830
14846
  ]))
14831
14847
  ]),
14832
- J(K, null, {
14833
- default: C(() => [N(je) && N(h)?.enabled ? (A(), q("div", Ug, [J(k, {
14848
+ J(G, null, {
14849
+ default: C(() => [N(Me) && N(h)?.enabled ? (A(), K("div", Ug, [J(k, {
14834
14850
  name: "ri:upload-cloud-2-line",
14835
14851
  class: "pk-chatbot-view-chat__drop-overlay-icon"
14836
- }), H("span", null, E(N(Se)("action.dropFile")), 1)])) : F("", !0)]),
14852
+ }), V("span", null, E(N(Ce)("action.dropFile")), 1)])) : F("", !0)]),
14837
14853
  _: 1
14838
14854
  })
14839
14855
  ], 2);
@@ -14842,7 +14858,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
14842
14858
  }), [["styles", [".pk-chatbot-view-chat{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.pk-chatbot-view-chat--empty{justify-content:center;gap:var(--spacing-md)}.pk-chatbot--phone .pk-chatbot-view-chat--empty{justify-content:flex-start}.pk-chatbot--phone .pk-chatbot-view-chat--empty .pk-chatbot-empty-state{flex:1;justify-content:center}.pk-chatbot-view-chat__input-stage{position:relative}.pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{inset:calc(-1 * var(--spacing-224)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot--phone .pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{--aurora-spread:1.6;inset:calc(-1 * var(--spacing-384) - var(--spacing-128)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot-view-chat__agent-chip{align-items:center;gap:var(--spacing-6);padding:var(--spacing-4) var(--spacing-10) var(--spacing-4) var(--spacing-4);border:1px solid var(--color-surface-3);border-radius:var(--rounded-full);background-color:var(--color-surface);flex-shrink:0;display:inline-flex}.pk-chatbot--tight .pk-chatbot-view-chat__agent-chip{display:none}.pk-chatbot-view-chat__agent-chip-avatar{width:var(--spacing-24);height:var(--spacing-24);font-size:var(--text-10);border-radius:var(--rounded-full)}.pk-chatbot-view-chat__agent-chip-name{font-size:var(--text-12);font-weight:var(--font-semibold);color:var(--color-word-2);white-space:nowrap}.pk-chatbot-view-chat-fade-enter-active{transition:opacity .25s var(--ease-out)}.pk-chatbot-view-chat-fade-leave-active{transition:opacity .15s var(--ease-out)}.pk-chatbot-view-chat-fade-enter-from,.pk-chatbot-view-chat-fade-leave-to{opacity:0}@media (prefers-reduced-motion:reduce){.pk-chatbot-view-chat-fade-enter-active,.pk-chatbot-view-chat-fade-leave-active{transition:none}}.pk-chatbot-view-chat__drop-overlay{inset:var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);z-index:1;justify-content:center;align-items:center;gap:var(--spacing-xs);background-color:color-mix(in srgb, var(--color-surface) 85%, transparent);border-radius:var(--rounded-xl);border:var(--spacing-2) dashed var(--color-surface-5);pointer-events:none;color:var(--color-word-3);flex-direction:column;display:flex;position:absolute}.pk-chatbot-view-chat__drop-overlay-icon{font-size:var(--spacing-32)}"]]]);
14843
14859
  //#endregion
14844
14860
  //#region ../../packages/components/src/chat/PkChatbotViewConversations.vue?vue&type=script&setup=true&lang.ts
14845
- j(), U(), T(), Ee();
14861
+ j(), H(), T(), De();
14846
14862
  var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14847
14863
  key: 0,
14848
14864
  class: "vv-item-group vv-item-group--fill"
@@ -14870,7 +14886,7 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14870
14886
  d.value || (o.value = e, s("chat"));
14871
14887
  }, y = (e) => o.value === e.id, b = (e, t) => Ut(dt(e.filter((e) => e.role === t).slice(-1)[0]) || ""), x = (e) => {
14872
14888
  p(e, b(e.messages, "assistant"));
14873
- }, { openDialogConfirm: S } = Gd(), ee = ye(Cp, void 0), te = W(() => !!ee?.eraseConversations && !(ee.isExternalAuth?.value ?? !1)), w = G(!1), T = async () => {
14889
+ }, { openDialogConfirm: S } = Gd(), ee = be(Cp, void 0), te = U(() => !!ee?.eraseConversations && !(ee.isExternalAuth?.value ?? !1)), w = W(!1), T = async () => {
14874
14890
  let e = ee?.eraseConversations;
14875
14891
  if (e && te.value && await S({
14876
14892
  title: n("confirmTitle.deleteMyConversations"),
@@ -14888,19 +14904,19 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14888
14904
  };
14889
14905
  return (e, t) => {
14890
14906
  let r = an, o = sn, s = $t, l = Zt, u = Qt, p = on;
14891
- return A(), q("div", Yg, [N(a) && N(i).length === 0 ? (A(), q("div", Xg, [H("div", Zg, [(A(), q(B, null, Le(5, (e) => H("div", {
14907
+ return A(), K("div", Yg, [N(a) && N(i).length === 0 ? (A(), K("div", Xg, [V("div", Zg, [(A(), K(z, null, Le(5, (e) => V("div", {
14892
14908
  key: e,
14893
14909
  class: "vv-item vv-item--roomy vv-item--plain"
14894
- }, [H("div", Qg, [H("div", $g, [
14895
- H("div", { class: Ne(["vv-skeleton h-16 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[5] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2),
14896
- t[6] ||= H("div", { class: "vv-skeleton h-12 rounded" }, [H("div", { class: "vv-skeleton__item" })], -1),
14897
- t[7] ||= H("div", { class: "vv-skeleton h-12 rounded w-160" }, [H("div", { class: "vv-skeleton__item" })], -1)
14898
- ])])])), 64))])])) : N(i).length === 0 ? (A(), q("div", e_, [
14899
- H("div", t_, [J(r, {
14910
+ }, [V("div", Qg, [V("div", $g, [
14911
+ V("div", { class: q(["vv-skeleton h-16 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[5] ||= [V("div", { class: "vv-skeleton__item" }, null, -1)]], 2),
14912
+ t[6] ||= V("div", { class: "vv-skeleton h-12 rounded" }, [V("div", { class: "vv-skeleton__item" })], -1),
14913
+ t[7] ||= V("div", { class: "vv-skeleton h-12 rounded w-160" }, [V("div", { class: "vv-skeleton__item" })], -1)
14914
+ ])])])), 64))])])) : N(i).length === 0 ? (A(), K("div", e_, [
14915
+ V("div", t_, [J(r, {
14900
14916
  name: "ri:chat-3-line",
14901
14917
  class: "w-28 h-28 text-word-4"
14902
14918
  })]),
14903
- H("div", n_, [H("strong", r_, E(N(n)("message.noConversations")), 1), H("span", i_, E(N(n)("message.noConversationsHint")), 1)]),
14919
+ V("div", n_, [V("strong", r_, E(N(n)("message.noConversations")), 1), V("span", i_, E(N(n)("message.noConversationsHint")), 1)]),
14904
14920
  J(o, {
14905
14921
  modifiers: "primary rounded",
14906
14922
  icon: "ri:add-line",
@@ -14908,12 +14924,12 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14908
14924
  label: N(n)("action.startNewChat"),
14909
14925
  onClick: t[0] ||= (e) => N(c)()
14910
14926
  }, null, 8, ["label"])
14911
- ])) : (A(), q("div", a_, [H("ul", o_, [(A(!0), q(B, null, Le(N(i), (e) => (A(), q("li", {
14927
+ ])) : (A(), K("div", a_, [V("ul", o_, [(A(!0), K(z, null, Le(N(i), (e) => (A(), K("li", {
14912
14928
  key: e.id,
14913
- class: Ne(["vv-item vv-item--roomy", { "vv-item--current": y(e) }])
14914
- }, [N(d) === e.id ? (A(), q("div", s_, [J(s, {
14929
+ class: q(["vv-item vv-item--roomy", { "vv-item--current": y(e) }])
14930
+ }, [N(d) === e.id ? (A(), K("div", s_, [J(s, {
14915
14931
  modelValue: N(f),
14916
- "onUpdate:modelValue": t[1] ||= (e) => z(f) ? f.value = e : null,
14932
+ "onUpdate:modelValue": t[1] ||= (e) => R(f) ? f.value = e : null,
14917
14933
  class: "flex-1 mb-0",
14918
14934
  modifiers: "compact",
14919
14935
  autofocus: "",
@@ -14940,15 +14956,15 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14940
14956
  onClick: t[2] ||= (e) => N(h)()
14941
14957
  }, null, 8, ["title"])]),
14942
14958
  _: 2
14943
- }, 1024)])) : (A(), q(B, { key: 1 }, [H("button", {
14959
+ }, 1024)])) : (A(), K(z, { key: 1 }, [V("button", {
14944
14960
  type: "button",
14945
14961
  class: "vv-item__entry",
14946
14962
  "aria-current": y(e) ? "true" : void 0,
14947
14963
  onClick: (t) => v(e.id)
14948
- }, [H("div", l_, [H("div", u_, [H("strong", d_, E(N(Ut)(e.title) || b(e.messages, "assistant")), 1), J(pm, {
14964
+ }, [V("div", l_, [V("div", u_, [V("strong", d_, E(N(Ut)(e.title) || b(e.messages, "assistant")), 1), J(pm, {
14949
14965
  class: "text-word-4 text-smaller shrink-0",
14950
14966
  date: e.lastMessageAt
14951
- }, null, 8, ["date"])]), H("span", f_, E(N(Ut)(N(Ge)(e.summary, N(n))) || b(e.messages, "user")), 1)])], 8, c_), H("div", p_, [J(p, ce({ ref_for: !0 }, {
14967
+ }, null, 8, ["date"])]), V("span", f_, E(N(Ut)(N(Ge)(e.summary, N(n))) || b(e.messages, "user")), 1)])], 8, c_), V("div", p_, [J(p, ce({ ref_for: !0 }, {
14952
14968
  placement: "bottom-end",
14953
14969
  modifiers: "menu",
14954
14970
  flip: !0,
@@ -14956,10 +14972,10 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14956
14972
  strategy: "fixed"
14957
14973
  }), {
14958
14974
  items: C(() => [J(u, { onClick: (t) => x(e) }, {
14959
- default: C(() => [J(r, { name: "ri:pencil-line" }), L(" " + E(N(n)("action.renameChat")), 1)]),
14975
+ default: C(() => [J(r, { name: "ri:pencil-line" }), I(" " + E(N(n)("action.renameChat")), 1)]),
14960
14976
  _: 1
14961
14977
  }, 8, ["onClick"]), J(u, { onClick: (t) => N(_)(e.id) }, {
14962
- default: C(() => [J(r, { name: "ri:delete-bin-line" }), L(" " + E(N(n)("action.delete")), 1)]),
14978
+ default: C(() => [J(r, { name: "ri:delete-bin-line" }), I(" " + E(N(n)("action.delete")), 1)]),
14963
14979
  _: 1
14964
14980
  }, 8, ["onClick"])]),
14965
14981
  default: C(() => [J(o, {
@@ -14968,13 +14984,13 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14968
14984
  modifiers: "action-quiet-small"
14969
14985
  }, null, 8, ["title"])]),
14970
14986
  _: 2
14971
- }, 1040)])], 64))], 2))), 128))])])), N(i).length > 0 ? (A(), q("div", m_, [J(o, {
14987
+ }, 1040)])], 64))], 2))), 128))])])), N(i).length > 0 ? (A(), K("div", m_, [J(o, {
14972
14988
  class: "text-14 pointer-events-auto",
14973
14989
  modifiers: "primary rounded",
14974
14990
  icon: "ri:add-line",
14975
14991
  label: N(n)("action.startNewChat"),
14976
- onClick: t[3] ||= ke((e) => N(c)(), ["stop"])
14977
- }, null, 8, ["label"]), te.value ? (A(), V(o, {
14992
+ onClick: t[3] ||= Ae((e) => N(c)(), ["stop"])
14993
+ }, null, 8, ["label"]), te.value ? (A(), B(o, {
14978
14994
  key: 0,
14979
14995
  class: "text-12 pointer-events-auto",
14980
14996
  modifiers: "action-quiet-danger",
@@ -14982,7 +14998,7 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14982
14998
  loading: w.value,
14983
14999
  disabled: w.value,
14984
15000
  label: N(n)("action.deleteMyConversations"),
14985
- onClick: t[4] ||= ke((e) => T(), ["stop"])
15001
+ onClick: t[4] ||= Ae((e) => T(), ["stop"])
14986
15002
  }, null, 8, [
14987
15003
  "loading",
14988
15004
  "disabled",
@@ -14993,7 +15009,7 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
14993
15009
  });
14994
15010
  //#endregion
14995
15011
  //#region ../../packages/components/src/chat/PkChatbotViewFiles.vue?vue&type=script&setup=true&lang.ts
14996
- j(), U(), T();
15012
+ j(), H(), T();
14997
15013
  var g_ = { class: "flex flex-col flex-1 min-h-0 relative" }, __ = {
14998
15014
  key: 0,
14999
15015
  class: "vv-item-group vv-item-group--fill"
@@ -15010,7 +15026,7 @@ var g_ = { class: "flex flex-col flex-1 min-h-0 relative" }, __ = {
15010
15026
  let t = e, { t: n } = ze({ useScope: "global" }), { openDialogConfirm: r } = Gd(), i = Fd(t.agentId), { chatFiles: a, isLoadingChatFiles: o } = Jn(i), { showThumb: s, thumbUrl: c, onThumbError: l, openFile: u, formatDate: d } = Qd({
15011
15027
  view: i.getChatFileUrl,
15012
15028
  preview: i.getChatFilePreviewUrl
15013
- }), { kindNote: f, removeLabel: p, removeConfirm: m } = $d(), h = G(null), g = async (e) => {
15029
+ }), { kindNote: f, removeLabel: p, removeConfirm: m } = $d(), h = W(null), g = async (e) => {
15014
15030
  if (await r(m(e))) {
15015
15031
  h.value = e.documentId;
15016
15032
  try {
@@ -15022,21 +15038,21 @@ var g_ = { class: "flex flex-col flex-1 min-h-0 relative" }, __ = {
15022
15038
  };
15023
15039
  return (e, t) => {
15024
15040
  let r = an, i = sn;
15025
- return A(), q("div", g_, [N(o) && N(a).length === 0 ? (A(), q("div", __, [H("div", v_, [(A(), q(B, null, Le(4, (e) => H("div", {
15041
+ return A(), K("div", g_, [N(o) && N(a).length === 0 ? (A(), K("div", __, [V("div", v_, [(A(), K(z, null, Le(4, (e) => V("div", {
15026
15042
  key: e,
15027
15043
  class: "vv-item vv-item--roomy vv-item--plain"
15028
- }, [H("div", y_, [t[2] ||= H("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [H("div", { class: "vv-skeleton__item" })], -1), H("div", b_, [H("div", { class: Ne(["vv-skeleton h-14 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[0] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2), t[1] ||= H("div", { class: "vv-skeleton h-12 rounded w-96" }, [H("div", { class: "vv-skeleton__item" })], -1)])])])), 64))])])) : N(a).length === 0 ? (A(), q("div", x_, [H("div", S_, [J(r, {
15044
+ }, [V("div", y_, [t[2] ||= V("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [V("div", { class: "vv-skeleton__item" })], -1), V("div", b_, [V("div", { class: q(["vv-skeleton h-14 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[0] ||= [V("div", { class: "vv-skeleton__item" }, null, -1)]], 2), t[1] ||= V("div", { class: "vv-skeleton h-12 rounded w-96" }, [V("div", { class: "vv-skeleton__item" })], -1)])])])), 64))])])) : N(a).length === 0 ? (A(), K("div", x_, [V("div", S_, [J(r, {
15029
15045
  name: "ri:folder-open-line",
15030
15046
  class: "w-28 h-28 text-word-4"
15031
- })]), H("span", C_, E(N(n)("userFiles.chatFilesEmpty")), 1)])) : (A(), q("div", w_, [H("ul", T_, [(A(!0), q(B, null, Le(N(a), (e) => (A(), q("li", {
15047
+ })]), V("span", C_, E(N(n)("userFiles.chatFilesEmpty")), 1)])) : (A(), K("div", w_, [V("ul", T_, [(A(!0), K(z, null, Le(N(a), (e) => (A(), K("li", {
15032
15048
  key: e.documentId,
15033
15049
  class: "vv-item vv-item--roomy"
15034
- }, [H("button", {
15050
+ }, [V("button", {
15035
15051
  type: "button",
15036
15052
  class: "vv-item__entry",
15037
15053
  title: N(n)("userFiles.open"),
15038
15054
  onClick: (t) => N(u)(e)
15039
- }, [H("span", D_, [N(s)(e) ? (A(), q("img", {
15055
+ }, [V("span", D_, [N(s)(e) ? (A(), K("img", {
15040
15056
  key: 0,
15041
15057
  src: N(c)(e),
15042
15058
  loading: "lazy",
@@ -15044,10 +15060,10 @@ var g_ = { class: "flex flex-col flex-1 min-h-0 relative" }, __ = {
15044
15060
  alt: "",
15045
15061
  class: "pk-chatbot-files__thumb",
15046
15062
  onError: (t) => N(l)(e)
15047
- }, null, 40, O_)) : (A(), V(r, {
15063
+ }, null, 40, O_)) : (A(), B(r, {
15048
15064
  key: 1,
15049
15065
  name: N(Ht)(e.mimeType)
15050
- }, null, 8, ["name"]))]), H("span", k_, [H("span", A_, E(e.name || N(n)("userFiles.untitled")), 1), H("span", j_, E([N(d)(e.createdAt), N(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, E_), H("div", M_, [J(i, {
15066
+ }, null, 8, ["name"]))]), V("span", k_, [V("span", A_, E(e.name || N(n)("userFiles.untitled")), 1), V("span", j_, E([N(d)(e.createdAt), N(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, E_), V("div", M_, [J(i, {
15051
15067
  modifiers: "action-quiet-small",
15052
15068
  icon: "ri:download-line",
15053
15069
  title: N(n)("action.download"),
@@ -15070,7 +15086,7 @@ var g_ = { class: "flex flex-col flex-1 min-h-0 relative" }, __ = {
15070
15086
  }), [["styles", [".pk-chatbot-files__icon{width:var(--spacing-36);height:var(--spacing-36);border-radius:var(--rounded-md);color:var(--color-word-3);flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}.pk-chatbot-files__icon svg{width:var(--spacing-20);height:var(--spacing-20)}.pk-chatbot-files__thumb{object-fit:cover;width:100%;height:100%}.pk-chatbot-files__actions{gap:var(--spacing-2)}"]]]);
15071
15087
  //#endregion
15072
15088
  //#region ../../packages/components/src/chat/PkChatbotViewProfile.vue?vue&type=script&setup=true&lang.ts
15073
- j(), U(), T();
15089
+ j(), H(), T();
15074
15090
  var P_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, F_ = { class: "flex flex-col items-center gap-sm pt-lg px-lg pb-md bg-surface-1 border-b border-surface-3" }, I_ = { class: "flex flex-col items-center gap-6 text-center" }, L_ = {
15075
15091
  key: 0,
15076
15092
  class: "text-16 font-semibold text-word-1 leading-tight"
@@ -15084,7 +15100,7 @@ var P_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, F_ = { class
15084
15100
  __name: "PkChatbotViewProfile",
15085
15101
  props: { agentId: { type: String } },
15086
15102
  setup(e) {
15087
- let t = e, { t: n } = ze({ useScope: "global" }), { name: r, agentInterface: i } = Jn(Fd(t.agentId)), a = ye(Cp, void 0), o = W(() => a?.user.value ?? null), s = W(() => a?.canManageProfile.value ?? !1), c = W(() => a?.profileUrl.value), l = W(() => a?.isExternalAuth?.value ?? !1), u = G(!1), d = G();
15103
+ let t = e, { t: n } = ze({ useScope: "global" }), { name: r, agentInterface: i } = Jn(Fd(t.agentId)), a = be(Cp, void 0), o = U(() => a?.user.value ?? null), s = U(() => a?.canManageProfile.value ?? !1), c = U(() => a?.profileUrl.value), l = U(() => a?.isExternalAuth?.value ?? !1), u = W(!1), d = W();
15088
15104
  async function f() {
15089
15105
  if (a) {
15090
15106
  u.value = !0;
@@ -15099,35 +15115,35 @@ var P_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, F_ = { class
15099
15115
  }
15100
15116
  return (e, t) => {
15101
15117
  let a = nn, p = an, m = sn;
15102
- return A(), q("div", P_, [
15103
- H("div", F_, [J(Ap, {
15118
+ return A(), K("div", P_, [
15119
+ V("div", F_, [J(Ap, {
15104
15120
  modifiers: "surface ring",
15105
15121
  class: "w-64 h-64",
15106
15122
  name: o.value?.name ?? N(r),
15107
15123
  "img-src": o.value?.image ?? N(i)?.logo
15108
- }, null, 8, ["name", "img-src"]), H("div", I_, [o.value?.name ?? N(r) ? (A(), q("strong", L_, E(o.value?.name ?? N(r)), 1)) : F("", !0), o.value?.email ? (A(), q("span", R_, E(o.value.email), 1)) : F("", !0)])]),
15109
- H("div", z_, [d.value ? (A(), V(a, {
15124
+ }, null, 8, ["name", "img-src"]), V("div", I_, [o.value?.name ?? N(r) ? (A(), K("strong", L_, E(o.value?.name ?? N(r)), 1)) : F("", !0), o.value?.email ? (A(), K("span", R_, E(o.value.email), 1)) : F("", !0)])]),
15125
+ V("div", z_, [d.value ? (A(), B(a, {
15110
15126
  key: 0,
15111
15127
  modifiers: "danger",
15112
15128
  content: d.value
15113
- }, null, 8, ["content"])) : F("", !0), s.value && c.value && !l.value ? (A(), q("a", {
15129
+ }, null, 8, ["content"])) : F("", !0), s.value && c.value && !l.value ? (A(), K("a", {
15114
15130
  key: 1,
15115
15131
  href: c.value,
15116
15132
  target: "_blank",
15117
15133
  rel: "noopener noreferrer",
15118
15134
  class: "flex items-center gap-12 p-12 rounded-lg border border-surface-3 hover:border-surface-5 hover:bg-surface-1 transition-colors cursor-pointer no-underline"
15119
15135
  }, [
15120
- H("div", V_, [J(p, {
15136
+ V("div", V_, [J(p, {
15121
15137
  name: "ri:user-settings-line",
15122
15138
  class: "w-20 h-20 text-word-2"
15123
15139
  })]),
15124
- H("div", H_, [H("span", U_, E(N(n)("action.manageProfile")), 1), H("span", W_, E(N(n)("label.manageProfileDescription")), 1)]),
15140
+ V("div", H_, [V("span", U_, E(N(n)("action.manageProfile")), 1), V("span", W_, E(N(n)("label.manageProfileDescription")), 1)]),
15125
15141
  J(p, {
15126
15142
  name: "ri:arrow-right-s-line",
15127
15143
  class: "w-16 h-16 text-word-4 shrink-0"
15128
15144
  })
15129
15145
  ], 8, B_)) : F("", !0)]),
15130
- l.value ? F("", !0) : (A(), q("div", G_, [J(m, {
15146
+ l.value ? F("", !0) : (A(), K("div", G_, [J(m, {
15131
15147
  modifiers: "secondary-danger",
15132
15148
  class: "w-full",
15133
15149
  icon: "ri:logout-box-line",
@@ -15147,7 +15163,7 @@ var P_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, F_ = { class
15147
15163
  });
15148
15164
  //#endregion
15149
15165
  //#region ../../packages/components/src/chat/PkChatbot.vue?vue&type=script&setup=true&lang.ts
15150
- j(), U(), T();
15166
+ j(), H(), T();
15151
15167
  var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 }, X_ = { class: "pk-chatbot__warning-body" }, Z_ = { class: "pk-chatbot__warning-header" }, Q_ = { class: "pk-chatbot__warning-title" }, $_ = { class: "pk-chatbot__warning-text" }, ev = {
15152
15168
  key: 5,
15153
15169
  class: "pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto"
@@ -15156,7 +15172,7 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15156
15172
  class: "pk-chatbot__footer"
15157
15173
  }, nv = /*#__PURE__*/ pn(/* @__PURE__ */ w({
15158
15174
  __name: "PkChatbot",
15159
- props: /*@__PURE__*/ ve({
15175
+ props: /*@__PURE__*/ ye({
15160
15176
  baseUrl: { type: String },
15161
15177
  basePath: { type: String },
15162
15178
  agentId: { type: String },
@@ -15186,18 +15202,18 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15186
15202
  },
15187
15203
  chatIdModifiers: {}
15188
15204
  }),
15189
- emits: /*@__PURE__*/ ve([
15205
+ emits: /*@__PURE__*/ ye([
15190
15206
  "message-update",
15191
15207
  "show-info",
15192
15208
  "revise",
15193
15209
  "error"
15194
15210
  ], ["update:chatId"]),
15195
15211
  setup(e, { expose: t, emit: n }) {
15196
- let r = Te(), { t: i } = ze({ useScope: "global" }), a = e, o = n, s = se(e, "chatId"), c = Fd(a.agentId);
15212
+ let r = Ee(), { t: i } = ze({ useScope: "global" }), a = e, o = n, s = se(e, "chatId"), c = Fd(a.agentId);
15197
15213
  dn((e) => c.apiClient.resolveShortUrls(e));
15198
- let { messages: l, chat: u, localChatId: d, activeView: f, chatError: p, isDark: m } = Jn(c), h = je(c, "agentId"), { startNewChat: g, stopGeneration: _, regenerate: v, navigate: y, sendMessage: b } = c;
15214
+ let { messages: l, chat: u, localChatId: d, activeView: f, chatError: p, isDark: m } = Jn(c), h = Me(c, "agentId"), { startNewChat: g, stopGeneration: _, regenerate: v, navigate: y, sendMessage: b } = c;
15199
15215
  mn(() => a.agentInterface?.imageHosts, () => a.baseUrl);
15200
- let x = ye(Cp, void 0), S = W(() => x?.canManageProfile.value ?? !1), ee = W(() => !S.value && (x?.canSignIn?.value ?? !1) && r["view-auth"] !== void 0);
15216
+ let x = be(Cp, void 0), S = U(() => x?.canManageProfile.value ?? !1), ee = U(() => !S.value && (x?.canSignIn?.value ?? !1) && r["view-auth"] !== void 0);
15201
15217
  P(S, (e) => {
15202
15218
  e && f.value === "auth" && y("chat");
15203
15219
  }), me(() => {
@@ -15212,7 +15228,7 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15212
15228
  o("error", t);
15213
15229
  } catch {}
15214
15230
  });
15215
- let w = W(() => a.modifier === "fullscreen"), T = W(() => a.modifier === "panel"), ne = k("chatbotEl"), { width: D } = Xt(ne), ie = W(() => D.value > 0 && D.value < 576), ae = W(() => D.value > 0 && D.value < 640), oe = W(() => D.value >= 848), O = W(() => a.agentType === "reasoning"), le = W(() => O.value && !l.value.some((e) => e.role === "user")), j = W(() => a.agentInterface?.useColorsForAgentHeader), ue = W(() => !T.value || S.value || ee.value || !!a.userFilesEnabled && !!d.value), de = W(() => ["theme", `theme--${m.value ? "dark" : "light"}`]), M = W(() => a.agentInterface?.mainColor), I = W(() => qe(a.agentInterface?.textColor, M.value)), R = W(() => rt(M.value, I.value)), z = cn(() => a.agentInterface?.footerMessage), he = W(() => f.value === "conversations" ? i("label.conversations") : f.value === "profile" ? i("label.profile") : f.value === "auth" ? i("label.authentication") : f.value === "files" ? i("userFiles.chatFilesTitle") : a.name), ge = W(() => u.value.status === "ready"), _e = W(() => l.value?.[l.value.length - 1]);
15231
+ let w = U(() => a.modifier === "fullscreen"), T = U(() => a.modifier === "panel"), ne = k("chatbotEl"), { width: D } = Xt(ne), ie = U(() => D.value > 0 && D.value < 576), ae = U(() => D.value > 0 && D.value < 640), oe = U(() => D.value >= 848), O = U(() => a.agentType === "reasoning"), le = U(() => O.value && !l.value.some((e) => e.role === "user")), j = U(() => a.agentInterface?.useColorsForAgentHeader), ue = U(() => !T.value || S.value || ee.value || !!a.userFilesEnabled && !!d.value), de = U(() => ["theme", `theme--${m.value ? "dark" : "light"}`]), M = U(() => a.agentInterface?.mainColor), he = U(() => qe(a.agentInterface?.textColor, M.value)), L = U(() => rt(M.value, he.value)), R = cn(() => a.agentInterface?.footerMessage), ge = U(() => f.value === "conversations" ? i("label.conversations") : f.value === "profile" ? i("label.profile") : f.value === "auth" ? i("label.authentication") : f.value === "files" ? i("userFiles.chatFilesTitle") : a.name), _e = U(() => u.value.status === "ready"), ve = U(() => l.value?.[l.value.length - 1]);
15216
15232
  return t({
15217
15233
  startNewChat: g,
15218
15234
  regenerate: v,
@@ -15222,48 +15238,48 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15222
15238
  await c.initialize(e, t);
15223
15239
  }, { immediate: !0 }), P(f, (e) => {
15224
15240
  e === "conversations" ? c.loadConversations(h.value) : e === "files" && c.loadChatFiles();
15225
- }), P(_e, (e) => {
15241
+ }), P(ve, (e) => {
15226
15242
  e && o("message-update", e);
15227
15243
  }, {
15228
15244
  deep: !0,
15229
15245
  immediate: !0
15230
15246
  }), (t, n) => {
15231
15247
  let a = sn, s = an, c = Qt, l = on, u = Zt, p = nn;
15232
- return A(), q("div", {
15248
+ return A(), K("div", {
15233
15249
  ref_key: "chatbotEl",
15234
15250
  ref: ne,
15235
- class: Ne(["pk-chatbot", [de.value, {
15251
+ class: q(["pk-chatbot", [de.value, {
15236
15252
  "pk-chatbot--fullscreen": w.value,
15237
15253
  "pk-chatbot--panel": T.value,
15238
15254
  "pk-chatbot--phone": ie.value,
15239
15255
  "pk-chatbot--tight": ae.value,
15240
15256
  "pk-chatbot--wide": oe.value
15241
15257
  }]]),
15242
- style: re(R.value)
15258
+ style: re(L.value)
15243
15259
  }, [
15244
- w.value ? F("", !0) : (A(), q("div", {
15260
+ w.value ? F("", !0) : (A(), K("div", {
15245
15261
  key: 0,
15246
15262
  class: "pk-chatbot__header",
15247
15263
  style: re(j.value ? { backgroundColor: M.value } : void 0)
15248
- }, [H("div", q_, [N(f) === "chat" ? T.value ? F("", !0) : (A(), V(Ap, {
15264
+ }, [V("div", q_, [N(f) === "chat" ? T.value ? F("", !0) : (A(), B(Ap, {
15249
15265
  key: 1,
15250
15266
  modifiers: "surface ring shrink-0",
15251
15267
  class: "pk-chatbot__avatar",
15252
15268
  name: e.name,
15253
15269
  "img-src": e.agentInterface?.logo
15254
- }, null, 8, ["name", "img-src"])) : (A(), q(B, { key: 0 }, [J(a, ce({
15255
- modifiers: j.value ? `action-quiet-${I.value}` : "action-quiet",
15270
+ }, null, 8, ["name", "img-src"])) : (A(), K(z, { key: 0 }, [J(a, ce({
15271
+ modifiers: j.value ? `action-quiet-${he.value}` : "action-quiet",
15256
15272
  icon: "ri:arrow-left-s-line",
15257
15273
  title: N(i)("action.goBack")
15258
15274
  }, { onClick: n[0] ||= (e) => N(y)("chat") }), null, 16), J(s, {
15259
15275
  name: N(f) === "conversations" ? "ri:history-line" : N(f) === "files" ? "ri:attachment-2" : "ri:user-line",
15260
15276
  class: "pk-chatbot__nav-icon",
15261
- style: re(j.value ? { color: I.value } : void 0)
15262
- }, null, 8, ["name", "style"])], 64)), H("strong", {
15277
+ style: re(j.value ? { color: he.value } : void 0)
15278
+ }, null, 8, ["name", "style"])], 64)), V("strong", {
15263
15279
  class: "pk-chatbot__title",
15264
- title: he.value,
15265
- style: re(j.value ? { color: I.value } : void 0)
15266
- }, E(he.value), 13, J_)]), J(u, {
15280
+ title: ge.value,
15281
+ style: re(j.value ? { color: he.value } : void 0)
15282
+ }, E(ge.value), 13, J_)]), J(u, {
15267
15283
  class: "pk-chatbot__header-end",
15268
15284
  modifiers: "compact"
15269
15285
  }, {
@@ -15271,25 +15287,25 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15271
15287
  te(t.$slots, "header-actions", pe(fe({
15272
15288
  mainColor: M.value,
15273
15289
  useColorsForAgentHeader: j.value,
15274
- contrastColor: I.value,
15290
+ contrastColor: he.value,
15275
15291
  startNewChat: N(g),
15276
15292
  stopGeneration: N(_)
15277
15293
  }))),
15278
- T.value ? (A(), q(B, { key: 0 }, [J(a, {
15279
- modifiers: j.value ? `action-quiet-${I.value}` : "action-quiet",
15294
+ T.value ? (A(), K(z, { key: 0 }, [J(a, {
15295
+ modifiers: j.value ? `action-quiet-${he.value}` : "action-quiet",
15280
15296
  icon: "ri:edit-box-line",
15281
- disabled: !ge.value,
15297
+ disabled: !_e.value,
15282
15298
  title: N(i)("action.startNewChat"),
15283
15299
  onClick: n[1] ||= (e) => N(g)()
15284
15300
  }, null, 8, [
15285
15301
  "modifiers",
15286
15302
  "disabled",
15287
15303
  "title"
15288
- ]), O.value ? F("", !0) : (A(), V(a, {
15304
+ ]), O.value ? F("", !0) : (A(), B(a, {
15289
15305
  key: 0,
15290
- modifiers: j.value ? `action-quiet-${I.value}` : "action-quiet",
15306
+ modifiers: j.value ? `action-quiet-${he.value}` : "action-quiet",
15291
15307
  icon: "ri:history-line",
15292
- disabled: !ge.value,
15308
+ disabled: !_e.value,
15293
15309
  title: N(i)("action.viewRecentChats"),
15294
15310
  onClick: n[2] ||= (e) => N(y)("conversations")
15295
15311
  }, null, 8, [
@@ -15297,7 +15313,7 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15297
15313
  "disabled",
15298
15314
  "title"
15299
15315
  ]))], 64)) : F("", !0),
15300
- ue.value ? (A(), V(l, pe(ce({ key: 1 }, {
15316
+ ue.value ? (A(), B(l, pe(ce({ key: 1 }, {
15301
15317
  placement: "bottom-end",
15302
15318
  modifiers: "menu",
15303
15319
  flip: !0,
@@ -15305,45 +15321,45 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15305
15321
  strategy: "fixed"
15306
15322
  })), {
15307
15323
  items: C(() => [
15308
- T.value ? F("", !0) : (A(), V(c, {
15324
+ T.value ? F("", !0) : (A(), B(c, {
15309
15325
  key: 0,
15310
15326
  onClick: n[3] ||= (e) => N(g)()
15311
15327
  }, {
15312
- default: C(() => [J(s, { name: "ri:edit-box-line" }), L(" " + E(N(i)("action.startNewChat")), 1)]),
15328
+ default: C(() => [J(s, { name: "ri:edit-box-line" }), I(" " + E(N(i)("action.startNewChat")), 1)]),
15313
15329
  _: 1
15314
15330
  })),
15315
- !O.value && !T.value ? (A(), V(c, {
15331
+ !O.value && !T.value ? (A(), B(c, {
15316
15332
  key: 1,
15317
15333
  onClick: n[4] ||= (e) => N(y)("conversations")
15318
15334
  }, {
15319
- default: C(() => [J(s, { name: "ri:history-line" }), L(" " + E(N(i)("action.viewRecentChats")), 1)]),
15335
+ default: C(() => [J(s, { name: "ri:history-line" }), I(" " + E(N(i)("action.viewRecentChats")), 1)]),
15320
15336
  _: 1
15321
15337
  })) : F("", !0),
15322
- (S.value || e.userFilesEnabled) && N(d) ? (A(), V(c, {
15338
+ (S.value || e.userFilesEnabled) && N(d) ? (A(), B(c, {
15323
15339
  key: 2,
15324
15340
  onClick: n[5] ||= (e) => N(y)("files")
15325
15341
  }, {
15326
- default: C(() => [J(s, { name: "ri:attachment-2" }), L(" " + E(N(i)("userFiles.chatFilesTitle")), 1)]),
15342
+ default: C(() => [J(s, { name: "ri:attachment-2" }), I(" " + E(N(i)("userFiles.chatFilesTitle")), 1)]),
15327
15343
  _: 1
15328
15344
  })) : F("", !0),
15329
- S.value ? (A(), V(c, {
15345
+ S.value ? (A(), B(c, {
15330
15346
  key: 3,
15331
15347
  onClick: n[6] ||= (e) => N(y)("profile")
15332
15348
  }, {
15333
- default: C(() => [J(s, { name: "ri:user-line" }), L(" " + E(N(i)("label.profile")), 1)]),
15349
+ default: C(() => [J(s, { name: "ri:user-line" }), I(" " + E(N(i)("label.profile")), 1)]),
15334
15350
  _: 1
15335
- })) : ee.value ? (A(), V(c, {
15351
+ })) : ee.value ? (A(), B(c, {
15336
15352
  key: 4,
15337
15353
  onClick: n[7] ||= (e) => N(y)("auth")
15338
15354
  }, {
15339
- default: C(() => [J(s, { name: "ri:account-circle-line" }), L(" " + E(N(i)("action.signIn")), 1)]),
15355
+ default: C(() => [J(s, { name: "ri:account-circle-line" }), I(" " + E(N(i)("action.signIn")), 1)]),
15340
15356
  _: 1
15341
15357
  })) : F("", !0)
15342
15358
  ]),
15343
15359
  default: C(() => [J(a, pe(fe({
15344
- modifiers: j.value ? `action-quiet-${I.value}` : "action-quiet",
15360
+ modifiers: j.value ? `action-quiet-${he.value}` : "action-quiet",
15345
15361
  icon: "ri:more-2-fill",
15346
- disabled: !ge.value,
15362
+ disabled: !_e.value,
15347
15363
  title: N(i)("action.moreActions")
15348
15364
  })), null, 16)]),
15349
15365
  _: 1
@@ -15351,21 +15367,21 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15351
15367
  te(t.$slots, "actions", pe(fe({
15352
15368
  mainColor: M.value,
15353
15369
  useColorsForAgentHeader: j.value,
15354
- contrastColor: I.value,
15370
+ contrastColor: he.value,
15355
15371
  startNewChat: N(g),
15356
15372
  stopGeneration: N(_)
15357
15373
  })))
15358
15374
  ]),
15359
15375
  _: 3
15360
15376
  })], 4)),
15361
- le.value ? (A(), q("div", Y_, [H("div", X_, [J(p, { modifiers: "callout" }, {
15362
- default: C(() => [H("div", Z_, [J(s, {
15377
+ le.value ? (A(), K("div", Y_, [V("div", X_, [J(p, { modifiers: "callout" }, {
15378
+ default: C(() => [V("div", Z_, [J(s, {
15363
15379
  name: "ri:alert-line",
15364
15380
  class: "pk-chatbot__warning-icon"
15365
- }), H("strong", Q_, E(N(i)("message.warning")), 1)]), H("p", $_, E(N(i)("message.reasoningAgent")), 1)]),
15381
+ }), V("strong", Q_, E(N(i)("message.warning")), 1)]), V("p", $_, E(N(i)("message.reasoningAgent")), 1)]),
15366
15382
  _: 1
15367
15383
  })])])) : F("", !0),
15368
- N(f) === "chat" ? (A(), V(Jg, {
15384
+ N(f) === "chat" ? (A(), B(Jg, {
15369
15385
  key: 2,
15370
15386
  "agent-id": e.agentId,
15371
15387
  modifier: e.modifier,
@@ -15379,24 +15395,24 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15379
15395
  "agent-id",
15380
15396
  "modifier",
15381
15397
  "user-name"
15382
- ])) : N(f) === "conversations" ? (A(), V(h_, {
15398
+ ])) : N(f) === "conversations" ? (A(), B(h_, {
15383
15399
  key: 3,
15384
15400
  "agent-id": e.agentId
15385
15401
  }, Fe({ _: 2 }, [Le(Object.keys(N(r)), (e) => ({
15386
15402
  name: e,
15387
15403
  fn: C((n) => [te(t.$slots, e, pe(fe(n)))])
15388
- }))]), 1032, ["agent-id"])) : N(f) === "files" ? (A(), V(N_, {
15404
+ }))]), 1032, ["agent-id"])) : N(f) === "files" ? (A(), B(N_, {
15389
15405
  key: 4,
15390
15406
  "agent-id": e.agentId
15391
- }, null, 8, ["agent-id"])) : N(f) === "auth" ? (A(), q("div", ev, [te(t.$slots, "view-auth")])) : (A(), V(K_, {
15407
+ }, null, 8, ["agent-id"])) : N(f) === "auth" ? (A(), K("div", ev, [te(t.$slots, "view-auth")])) : (A(), B(K_, {
15392
15408
  key: 6,
15393
15409
  "agent-id": e.agentId
15394
15410
  }, Fe({ _: 2 }, [Le(Object.keys(N(r)), (e) => ({
15395
15411
  name: e,
15396
15412
  fn: C((n) => [te(t.$slots, e, pe(fe(n)))])
15397
15413
  }))]), 1032, ["agent-id"])),
15398
- N(z) ? (A(), q("div", tv, [J(yt, {
15399
- markdown: N(z),
15414
+ N(R) ? (A(), K("div", tv, [J(yt, {
15415
+ markdown: N(R),
15400
15416
  class: "wysiwyg"
15401
15417
  }, null, 8, ["markdown"])])) : F("", !0)
15402
15418
  ], 6);
@@ -15405,7 +15421,7 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
15405
15421
  }), [["styles", [".pk-chatbot{background-color:var(--color-surface);flex-direction:column;height:100%;display:flex;position:relative}.pk-chatbot__header{z-index:1;justify-content:space-between;gap:var(--spacing-14);background-color:var(--color-surface-1);padding:var(--spacing-14);border-bottom:1px solid var(--color-surface-3);display:flex;position:sticky;top:0}.pk-chatbot__header-start{align-items:center;gap:var(--spacing-sm);min-width:0;display:flex}.pk-chatbot__nav-icon{font-size:var(--text-18)}.pk-chatbot__avatar{width:var(--spacing-24);height:var(--spacing-24)}.pk-chatbot__title{font-size:var(--text-16);font-weight:var(--font-semibold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pk-chatbot__header-end{flex-shrink:0}.pk-chatbot__warning-body{padding:var(--spacing-md);border-bottom:1px solid var(--color-surface-3)}.pk-chatbot__warning-header{align-items:center;gap:var(--spacing-4);margin-bottom:var(--spacing-4);display:flex}.pk-chatbot__warning-icon{width:var(--spacing-16);height:var(--spacing-16)}.pk-chatbot__warning-title{font-weight:600;font-size:var(--text-14)}.pk-chatbot__warning-text{font-size:var(--text-12);color:var(--color-word-3)}.pk-chatbot__footer{padding:var(--spacing-md);border-top:1px solid var(--color-surface-3);text-align:center;font-size:var(--text-12);color:var(--color-word-2)}.pk-chatbot--fullscreen{--pk-chat-fullscreen-dock-height:calc(var(--spacing-56) + var(--spacing-4));--pk-chat-dock-radius:calc(var(--pk-chat-fullscreen-dock-height) / 2);background-color:#0000}.pk-chatbot--fullscreen .pk-chatbot__footer{padding:0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);border-top:none}.pk-chatbot--fullscreen .pk-chatbot-messages{scrollbar-gutter:stable both-edges;-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 var(--spacing-40), #000 calc(100% - var(--spacing-40)), transparent 100%);mask-image:linear-gradient(to bottom, transparent 0, #000 var(--spacing-40), #000 calc(100% - var(--spacing-40)), transparent 100%);padding-block:var(--spacing-48)}.pk-chatbot--fullscreen .pk-chatbot-messages__wrapper{width:100%;max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-messages__outline{display:none}.pk-chatbot--fullscreen.pk-chatbot--wide .pk-chatbot-messages__outline{display:block}.pk-chatbot--fullscreen .pk-chatbot-file-preview{background-color:var(--color-surface)}.pk-chatbot--fullscreen .pk-chatbot-input__notice{background-color:var(--color-surface);border-inline:1px solid var(--color-surface-3);border-top:1px solid var(--color-surface-2);padding:var(--spacing-10) var(--spacing-16)}.pk-chatbot--fullscreen .pk-chatbot-input__notice:after{background-color:var(--color-surface);border-inline:1px solid var(--color-surface-2);bottom:calc(-1 * var(--pk-chat-dock-radius));height:var(--pk-chat-dock-radius);left:-1px;right:-1px}.pk-chatbot--fullscreen .pk-chatbot-input{width:calc(100% - var(--spacing-sm) * 2);max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-input__form{border-radius:var(--pk-chat-dock-radius);min-height:var(--pk-chat-fullscreen-dock-height);padding:var(--spacing-12) var(--spacing-16);background-color:var(--color-surface-1);border-color:var(--color-surface-2);box-shadow:none;transition:border-color var(--duration-200) var(--ease-in-out), box-shadow var(--duration-200) var(--ease-in-out)}.pk-chatbot--fullscreen .pk-chatbot-input__form:has(:focus-within){border-color:var(--color-surface-4);box-shadow:var(--shadow-sm)}@media (prefers-reduced-motion:reduce){.pk-chatbot--fullscreen .pk-chatbot-input__form{transition:none}}.pk-chatbot--fullscreen .pk-chatbot-input__textarea{background-color:#0000}.pk-chatbot--fullscreen .pk-voice-session{--pk-chat-dock-height:var(--pk-chat-fullscreen-dock-height);--pk-voice-orb-size:var(--spacing-40);--pk-voice-orb-bars-height:var(--spacing-20);--pk-voice-session-surface:var(--color-surface-1);width:calc(100% - var(--spacing-sm) * 2);max-width:768px;padding-inline:var(--spacing-16);border-color:var(--color-surface-2);border-radius:var(--pk-chat-dock-radius);box-shadow:none;margin-inline:auto}.pk-chatbot--fullscreen .pk-voice-session__timer{font-size:var(--text-14)}.pk-chatbot--panel{background-color:#0000}.pk-chatbot--panel .pk-chatbot__header{height:var(--pk-chatbot-panel-header-height,50px);padding-block:0;padding-inline:var(--spacing-10);border-bottom:1px solid var(--color-surface-3);background-color:#0000;align-items:center}.pk-chatbot--panel .pk-chatbot__title{font-size:var(--text-14)}.pk-chatbot--panel .pk-chatbot__footer{padding:var(--spacing-6) var(--spacing-md);border-top:none}.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-messages__wrapper,.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-input{width:100%;max-width:768px;margin-inline:auto}"]]]);
15406
15422
  //#endregion
15407
15423
  //#region ../../packages/components/src/chat/PkChatbotAuth.vue?vue&type=script&setup=true&lang.ts
15408
- j(), T(), U(), Ee();
15424
+ j(), T(), H(), De();
15409
15425
  var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, iv = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, av = { class: "pk-chatbot-auth__success-icon w-64 h-64 border border-surface-3 rounded-full bg-surface flex items-center justify-center overflow-hidden bg-surface mx-auto mb-md" }, ov = { class: "font-bold text-18 mb-xs" }, sv = { class: "mb-lg text-16 text-word-3" }, cv = {
15410
15426
  key: "form",
15411
15427
  class: "pk-chatbot-auth__flip-card flex flex-col"
@@ -15417,7 +15433,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15417
15433
  class: "font-bold text-20 m-0"
15418
15434
  }, mv = { class: "text-14 text-word-3 text-center leading-normal mb-md" }, hv = { class: "flex justify-center mt-md" }, gv = { class: "mb-md" }, _v = { class: "mb-md" }, vv = { class: "mb-md" }, yv = { class: "vv-separator mt-xs py-xs" }, bv = { class: "pt-lg text-center text-word-3" }, xv = /*#__PURE__*/ pn(/* @__PURE__ */ w({
15419
15435
  __name: "PkChatbotAuth",
15420
- props: /*@__PURE__*/ ve({
15436
+ props: /*@__PURE__*/ ye({
15421
15437
  branding: {
15422
15438
  default: void 0,
15423
15439
  type: null
@@ -15440,7 +15456,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15440
15456
  success: { default: void 0 },
15441
15457
  successModifiers: {}
15442
15458
  }),
15443
- emits: /*@__PURE__*/ ve([
15459
+ emits: /*@__PURE__*/ ye([
15444
15460
  "sign-in",
15445
15461
  "sign-up",
15446
15462
  "request-reset",
@@ -15452,14 +15468,14 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15452
15468
  "update:success"
15453
15469
  ], ["update:errorMessage", "update:success"]),
15454
15470
  setup(e, { emit: t }) {
15455
- let { t: n } = ze({ useScope: "global" }), r = e, { canShowImage: a, onImageError: c } = fn(), l = se(e, "errorMessage"), u = se(e, "success"), d = t, f = G("sign-in");
15471
+ let { t: n } = ze({ useScope: "global" }), r = e, { canShowImage: a, onImageError: c } = fn(), l = se(e, "errorMessage"), u = se(e, "success"), d = t, f = W("sign-in");
15456
15472
  P(f, () => {
15457
15473
  l.value = void 0, u.value = void 0;
15458
15474
  });
15459
15475
  function p() {
15460
15476
  u.value = void 0, f.value = "sign-in";
15461
15477
  }
15462
- let m = W(() => r.authMethods?.google || r.authMethods?.microsoft), h = i({
15478
+ let m = U(() => r.authMethods?.google || r.authMethods?.microsoft), h = i({
15463
15479
  email: s(),
15464
15480
  password: Qr,
15465
15481
  rememberMe: v().default(!1)
@@ -15467,7 +15483,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15467
15483
  P(u, (e) => {
15468
15484
  e && (S(), w());
15469
15485
  });
15470
- let T = G();
15486
+ let T = W();
15471
15487
  function ne() {
15472
15488
  u.value && T.value?.focus();
15473
15489
  }
@@ -15491,14 +15507,14 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15491
15507
  function ae(e) {
15492
15508
  d("social", e);
15493
15509
  }
15494
- let O = W(() => !!r.twoFactorMethods?.length), k = G("totp"), { VvForm: ce, VvFormField: le, clear: j } = un(i({ code: o().trim().min(6).max(32) }), { lazyLoad: !0 });
15510
+ let O = U(() => !!r.twoFactorMethods?.length), k = W("totp"), { VvForm: ce, VvFormField: le, clear: j } = un(i({ code: o().trim().min(6).max(32) }), { lazyLoad: !0 });
15495
15511
  P(() => r.twoFactorMethods, (e) => {
15496
15512
  e?.length && (k.value = e.includes("totp") ? "totp" : "otp", j(), k.value === "otp" && d("send-two-factor-code"));
15497
15513
  }, { immediate: !0 });
15498
15514
  function ue(e) {
15499
15515
  k.value = e, l.value = void 0, j();
15500
15516
  }
15501
- let de = W(() => k.value === "backup" ? n("twoFactor.challengeBackup") : k.value === "otp" ? n("twoFactor.challengeEmailSent") : n("twoFactor.challengeApp"));
15517
+ let de = U(() => k.value === "backup" ? n("twoFactor.challengeBackup") : k.value === "otp" ? n("twoFactor.challengeEmailSent") : n("twoFactor.challengeApp"));
15502
15518
  function M(e) {
15503
15519
  d("verify-two-factor", {
15504
15520
  kind: k.value,
@@ -15507,25 +15523,25 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15507
15523
  }
15508
15524
  return (t, r) => {
15509
15525
  let i = an, o = sn, s = nn, h = Zt;
15510
- return A(), q("div", rv, [H("div", iv, [J(K, {
15526
+ return A(), K("div", rv, [V("div", iv, [J(G, {
15511
15527
  name: "pk-flip",
15512
15528
  mode: "out-in",
15513
15529
  onAfterEnter: ne
15514
15530
  }, {
15515
- default: C(() => [u.value ? (A(), q("div", {
15531
+ default: C(() => [u.value ? (A(), K("div", {
15516
15532
  ref_key: "successCard",
15517
15533
  ref: T,
15518
15534
  key: "success",
15519
15535
  tabindex: "-1",
15520
15536
  class: "pk-chatbot-auth__flip-card outline-none flex flex-col text-center leading-normal"
15521
15537
  }, [
15522
- H("div", av, [J(i, {
15538
+ V("div", av, [J(i, {
15523
15539
  name: "ri:mail-check-line",
15524
15540
  "aria-hidden": "true",
15525
15541
  class: "text-success w-32 h-32"
15526
15542
  })]),
15527
- H("h1", ov, E(u.value.title), 1),
15528
- H("p", sv, E(u.value.message), 1),
15543
+ V("h1", ov, E(u.value.title), 1),
15544
+ V("p", sv, E(u.value.message), 1),
15529
15545
  J(o, {
15530
15546
  type: "button",
15531
15547
  modifiers: "link",
@@ -15533,25 +15549,25 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15533
15549
  label: N(n)("action.backToSignIn"),
15534
15550
  onClick: p
15535
15551
  }, null, 8, ["label"])
15536
- ], 512)) : (A(), q("div", cv, [H("div", lv, [
15537
- N(a)(e.branding?.interface.logo) ? (A(), q("div", uv, [H("img", {
15552
+ ], 512)) : (A(), K("div", cv, [V("div", lv, [
15553
+ N(a)(e.branding?.interface.logo) ? (A(), K("div", uv, [V("img", {
15538
15554
  src: e.branding?.interface.logo,
15539
15555
  alt: e.branding?.name,
15540
15556
  class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
15541
15557
  onError: r[0] ||= (t) => N(c)(e.branding?.interface.logo)
15542
15558
  }, null, 40, dv)])) : F("", !0),
15543
- H("div", fv, [e.branding?.name ? (A(), q("h1", pv, E(e.branding.name), 1)) : F("", !0), (A(), V(oe(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
15544
- default: C(() => [O.value ? (A(), q(B, { key: 0 }, [L(E(N(n)("twoFactor.challengeTitle")), 1)], 64)) : f.value === "sign-in" ? (A(), q(B, { key: 1 }, [L(E(N(n)("auth.signInTitle")), 1)], 64)) : f.value === "sign-up" ? (A(), q(B, { key: 2 }, [L(E(N(n)("auth.signUpTitle")), 1)], 64)) : f.value === "reset" ? (A(), q(B, { key: 3 }, [L(E(N(n)("auth.resetTitle")), 1)], 64)) : F("", !0)]),
15559
+ V("div", fv, [e.branding?.name ? (A(), K("h1", pv, E(e.branding.name), 1)) : F("", !0), (A(), B(oe(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
15560
+ default: C(() => [O.value ? (A(), K(z, { key: 0 }, [I(E(N(n)("twoFactor.challengeTitle")), 1)], 64)) : f.value === "sign-in" ? (A(), K(z, { key: 1 }, [I(E(N(n)("auth.signInTitle")), 1)], 64)) : f.value === "sign-up" ? (A(), K(z, { key: 2 }, [I(E(N(n)("auth.signUpTitle")), 1)], 64)) : f.value === "reset" ? (A(), K(z, { key: 3 }, [I(E(N(n)("auth.resetTitle")), 1)], 64)) : F("", !0)]),
15545
15561
  _: 1
15546
15562
  }))]),
15547
- l.value ? (A(), V(s, {
15563
+ l.value ? (A(), B(s, {
15548
15564
  key: 1,
15549
15565
  modifiers: "danger",
15550
15566
  class: "mb-md",
15551
15567
  content: l.value
15552
15568
  }, null, 8, ["content"])) : F("", !0),
15553
- O.value ? (A(), q(B, { key: 2 }, [
15554
- H("p", mv, E(de.value), 1),
15569
+ O.value ? (A(), K(z, { key: 2 }, [
15570
+ V("p", mv, E(de.value), 1),
15555
15571
  J(N(ce), {
15556
15572
  class: "flex flex-col",
15557
15573
  readonly: e.loading,
@@ -15576,19 +15592,19 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15576
15592
  ])]),
15577
15593
  _: 1
15578
15594
  }, 8, ["readonly"]),
15579
- H("div", hv, [k.value === "totp" ? (A(), V(o, {
15595
+ V("div", hv, [k.value === "totp" ? (A(), B(o, {
15580
15596
  key: 0,
15581
15597
  type: "button",
15582
15598
  modifiers: "link",
15583
15599
  label: N(n)("twoFactor.useBackupCode"),
15584
15600
  onClick: r[1] ||= (e) => ue("backup")
15585
- }, null, 8, ["label"])) : k.value === "backup" ? (A(), V(o, {
15601
+ }, null, 8, ["label"])) : k.value === "backup" ? (A(), B(o, {
15586
15602
  key: 1,
15587
15603
  type: "button",
15588
15604
  modifiers: "link",
15589
15605
  label: N(n)("twoFactor.useApp"),
15590
15606
  onClick: r[2] ||= (e) => ue("totp")
15591
- }, null, 8, ["label"])) : (A(), V(o, {
15607
+ }, null, 8, ["label"])) : (A(), B(o, {
15592
15608
  key: 2,
15593
15609
  type: "button",
15594
15610
  modifiers: "link",
@@ -15596,13 +15612,13 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15596
15612
  label: N(n)("twoFactor.sendAgain"),
15597
15613
  onClick: r[3] ||= (e) => d("send-two-factor-code")
15598
15614
  }, null, 8, ["disabled", "label"]))])
15599
- ], 64)) : f.value === "sign-in" ? (A(), V(N(_), {
15615
+ ], 64)) : f.value === "sign-in" ? (A(), B(N(_), {
15600
15616
  key: 3,
15601
15617
  class: "flex flex-col",
15602
15618
  readonly: e.loading,
15603
15619
  onSubmit: D
15604
15620
  }, {
15605
- default: C(() => [H("div", gv, [
15621
+ default: C(() => [V("div", gv, [
15606
15622
  J(N(y), {
15607
15623
  name: "email",
15608
15624
  type: "email",
@@ -15617,7 +15633,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15617
15633
  label: N(n)("label.password"),
15618
15634
  floating: ""
15619
15635
  }, null, 8, ["label"]),
15620
- H("div", _v, [J(o, {
15636
+ V("div", _v, [J(o, {
15621
15637
  type: "button",
15622
15638
  modifiers: "link",
15623
15639
  label: N(n)("action.forgetPassword"),
@@ -15641,13 +15657,13 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15641
15657
  "label"
15642
15658
  ])]),
15643
15659
  _: 1
15644
- }, 8, ["readonly"])) : f.value === "sign-up" ? (A(), V(N(b), {
15660
+ }, 8, ["readonly"])) : f.value === "sign-up" ? (A(), B(N(b), {
15645
15661
  key: 4,
15646
15662
  class: "flex flex-col",
15647
15663
  readonly: e.loading,
15648
15664
  onSubmit: re
15649
15665
  }, {
15650
- default: C(() => [H("div", vv, [
15666
+ default: C(() => [V("div", vv, [
15651
15667
  J(N(x), {
15652
15668
  name: "name",
15653
15669
  type: "text",
@@ -15688,7 +15704,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15688
15704
  "label"
15689
15705
  ])]),
15690
15706
  _: 1
15691
- }, 8, ["readonly"])) : f.value === "reset" ? (A(), V(N(ee), {
15707
+ }, 8, ["readonly"])) : f.value === "reset" ? (A(), B(N(ee), {
15692
15708
  key: 5,
15693
15709
  class: "flex flex-col",
15694
15710
  readonly: e.loading,
@@ -15716,11 +15732,11 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15716
15732
  })]),
15717
15733
  _: 1
15718
15734
  }, 8, ["readonly"])) : F("", !0),
15719
- !O.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (A(), q(B, { key: 6 }, [H("div", yv, [H("span", null, E(N(n)("label.or")), 1)]), J(h, {
15735
+ !O.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (A(), K(z, { key: 6 }, [V("div", yv, [V("span", null, E(N(n)("label.or")), 1)]), J(h, {
15720
15736
  modifiers: "vertical",
15721
15737
  class: "gap-xs mt-xs"
15722
15738
  }, {
15723
- default: C(() => [e.authMethods?.google ? (A(), V(o, {
15739
+ default: C(() => [e.authMethods?.google ? (A(), B(o, {
15724
15740
  key: 0,
15725
15741
  type: "button",
15726
15742
  modifiers: "secondary",
@@ -15728,7 +15744,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15728
15744
  disabled: e.loading,
15729
15745
  label: N(n)("action.signInWithSocialProvider", { provider: "Google" }),
15730
15746
  onClick: r[5] ||= (e) => ae("google")
15731
- }, null, 8, ["disabled", "label"])) : F("", !0), e.authMethods?.microsoft ? (A(), V(o, {
15747
+ }, null, 8, ["disabled", "label"])) : F("", !0), e.authMethods?.microsoft ? (A(), B(o, {
15732
15748
  key: 1,
15733
15749
  type: "button",
15734
15750
  modifiers: "secondary",
@@ -15739,26 +15755,26 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15739
15755
  }, null, 8, ["disabled", "label"])) : F("", !0)]),
15740
15756
  _: 1
15741
15757
  })], 64)) : F("", !0)
15742
- ]), H("div", bv, [O.value ? (A(), V(o, {
15758
+ ]), V("div", bv, [O.value ? (A(), B(o, {
15743
15759
  key: 0,
15744
15760
  type: "button",
15745
15761
  modifiers: "link",
15746
15762
  icon: "chevron-left",
15747
15763
  label: N(n)("action.backToSignIn"),
15748
15764
  onClick: r[7] ||= (e) => d("cancel-two-factor")
15749
- }, null, 8, ["label"])) : f.value === "sign-in" ? (A(), q(B, { key: 1 }, [L(E(N(n)("auth.noAccount")) + " ", 1), J(o, {
15765
+ }, null, 8, ["label"])) : f.value === "sign-in" ? (A(), K(z, { key: 1 }, [I(E(N(n)("auth.noAccount")) + " ", 1), J(o, {
15750
15766
  type: "button",
15751
15767
  modifiers: "link",
15752
15768
  class: "font-semibold",
15753
15769
  label: N(n)("action.signUp"),
15754
15770
  onClick: r[8] ||= (e) => f.value = "sign-up"
15755
- }, null, 8, ["label"])], 64)) : f.value === "sign-up" ? (A(), q(B, { key: 2 }, [L(E(N(n)("auth.haveAccount")) + " ", 1), J(o, {
15771
+ }, null, 8, ["label"])], 64)) : f.value === "sign-up" ? (A(), K(z, { key: 2 }, [I(E(N(n)("auth.haveAccount")) + " ", 1), J(o, {
15756
15772
  type: "button",
15757
15773
  modifiers: "link",
15758
15774
  class: "font-semibold",
15759
15775
  label: N(n)("action.signIn"),
15760
15776
  onClick: r[9] ||= (e) => f.value = "sign-in"
15761
- }, null, 8, ["label"])], 64)) : (A(), V(o, {
15777
+ }, null, 8, ["label"])], 64)) : (A(), B(o, {
15762
15778
  key: 3,
15763
15779
  type: "button",
15764
15780
  modifiers: "link",
@@ -15776,7 +15792,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
15776
15792
  j();
15777
15793
  var Cv = {};
15778
15794
  function wv(e, t) {
15779
- return A(), q("div", null, [...t[0] ||= [H("div", {
15795
+ return A(), K("div", null, [...t[0] ||= [V("div", {
15780
15796
  "aria-hidden": "true",
15781
15797
  class: "pk-loader"
15782
15798
  }, null, -1)]]);
@@ -15784,7 +15800,7 @@ function wv(e, t) {
15784
15800
  var Tv = /*#__PURE__*/ pn(Cv, [["render", wv], ["styles", [Sv]]]);
15785
15801
  //#endregion
15786
15802
  //#region ../../packages/components/src/chat/PkWelcomePopup.vue?vue&type=script&setup=true&lang.ts
15787
- j(), T(), Ee(), U();
15803
+ j(), T(), De(), H();
15788
15804
  var Ev = { class: "welcome-popup__text" }, Dv = ["aria-label"], Ov = 100, kv = /*#__PURE__*/ pn(/* @__PURE__ */ w({
15789
15805
  __name: "PkWelcomePopup",
15790
15806
  props: {
@@ -15801,7 +15817,7 @@ var Ev = { class: "welcome-popup__text" }, Dv = ["aria-label"], Ov = 100, kv = /
15801
15817
  },
15802
15818
  emits: ["open"],
15803
15819
  setup(e, { emit: t }) {
15804
- let n = e, r = t, i = cn(() => n.message, "message.defaultAgentWelcome"), a = ln(W(() => `${n.agentId}-welcome-popup-dismissed`), !1), o = G(!1), s = G(!1), c = G([]), l, u;
15820
+ let n = e, r = t, i = cn(() => n.message, "message.defaultAgentWelcome"), a = ln(U(() => `${n.agentId}-welcome-popup-dismissed`), !1), o = W(!1), s = W(!1), c = W([]), l, u;
15805
15821
  function d(e) {
15806
15822
  c.value = [], s.value = !1;
15807
15823
  let t = e.split(/(\s+)/), n = 0;
@@ -15825,28 +15841,28 @@ var Ev = { class: "welcome-popup__text" }, Dv = ["aria-label"], Ov = 100, kv = /
15825
15841
  }, n.delay)), e || (o.value = !1, f());
15826
15842
  }, { immediate: !0 }), O(() => {
15827
15843
  f();
15828
- }), (e, t) => (A(), V(K, { name: "welcome-popup" }, {
15829
- default: C(() => [o.value ? (A(), q("div", {
15844
+ }), (e, t) => (A(), B(G, { name: "welcome-popup" }, {
15845
+ default: C(() => [o.value ? (A(), K("div", {
15830
15846
  key: 0,
15831
15847
  class: "welcome-popup",
15832
- onClick: ke(m, ["stop"])
15833
- }, [H("p", Ev, [(A(!0), q(B, null, Le(c.value, (e, t) => (A(), q("span", {
15848
+ onClick: Ae(m, ["stop"])
15849
+ }, [V("p", Ev, [(A(!0), K(z, null, Le(c.value, (e, t) => (A(), K("span", {
15834
15850
  key: t,
15835
15851
  class: "welcome-popup__word"
15836
- }, E(e), 1))), 128))]), J(K, null, {
15837
- default: C(() => [s.value ? (A(), q("button", {
15852
+ }, E(e), 1))), 128))]), J(G, null, {
15853
+ default: C(() => [s.value ? (A(), K("button", {
15838
15854
  key: 0,
15839
15855
  type: "button",
15840
15856
  class: "welcome-popup__close",
15841
15857
  "aria-label": e.$t("action.close"),
15842
- onClick: ke(p, ["stop"])
15843
- }, [...t[0] ||= [H("svg", {
15858
+ onClick: Ae(p, ["stop"])
15859
+ }, [...t[0] ||= [V("svg", {
15844
15860
  xmlns: "http://www.w3.org/2000/svg",
15845
15861
  viewBox: "0 0 24 24",
15846
15862
  width: "14",
15847
15863
  height: "14",
15848
15864
  fill: "currentColor"
15849
- }, [H("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, Dv)) : F("", !0)]),
15865
+ }, [V("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, Dv)) : F("", !0)]),
15850
15866
  _: 1
15851
15867
  })])) : F("", !0)]),
15852
15868
  _: 1
@@ -15855,7 +15871,7 @@ var Ev = { class: "welcome-popup__text" }, Dv = ["aria-label"], Ov = 100, kv = /
15855
15871
  }), [["styles", [".welcome-popup{background:var(--color-surface);pointer-events:auto;max-width:300px;color:var(--color-word-2);line-height:var(--leading-normal);border-width:var(--spacing-px);border-color:var(--color-surface-3);padding:var(--spacing-sm);border-radius:var(--rounded-xl);font-size:var(--text-14);cursor:pointer;box-shadow:0 4px 16px #00000014,0 1px 4px #0000000f}.welcome-popup__word{animation:.3s ease-out both welcome-popup-word-in;display:inline}.welcome-popup__close{background-color:var(--color-surface);border:1px solid var(--color-surface-3);border-radius:var(--rounded-full);width:var(--spacing-20);height:var(--spacing-20);top:calc(-1 * var(--spacing-8));right:calc(-1 * var(--spacing-8));padding:var(--spacing-2);cursor:pointer;color:var(--color-word-4);border-radius:var(--rounded-full);transition:var(--transition-colors);box-shadow:var(--shadow-md);justify-content:center;align-items:center;line-height:1;display:flex;position:absolute}.welcome-popup__close:hover{color:var(--color-word)}.welcome-popup-enter-active,.welcome-popup-leave-active{transition:transform var(--duration-300) var(--ease-out), opacity var(--duration-300) var(--ease-out)}.welcome-popup-enter-from{opacity:0;transform:translateY(var(--spacing-32))}.welcome-popup-leave-to{opacity:0}@keyframes welcome-popup-word-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}"]]]);
15856
15872
  //#endregion
15857
15873
  //#region src/components/FloatingChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
15858
- j(), U(), T(), Ee();
15874
+ j(), H(), T(), De();
15859
15875
  var Av = {
15860
15876
  key: 0,
15861
15877
  class: "floating-chat-widget__launcher"
@@ -15931,7 +15947,7 @@ var Av = {
15931
15947
  organizationSlug: n.organizationSlug,
15932
15948
  agentId: n.agentId
15933
15949
  });
15934
- let { PkGlobalDialog: r } = Wd(), { emit: i } = tf(), a = G(), o = G(), s = ln(W(() => `${n.agentId}-is-open`), !1), c = () => {
15950
+ let { PkGlobalDialog: r } = Wd(), { emit: i } = tf(), a = W(), o = W(), s = ln(U(() => `${n.agentId}-is-open`), !1), c = () => {
15935
15951
  s.value = !s.value, ci(s.value ? "widget_opened" : "widget_closed"), i(s.value ? "opened" : "closed"), s.value || a.value?.stopGeneration();
15936
15952
  }, { session: l, onError: u, headers: d, token: f, userId: p, isExternalAuth: m, signInWithEmail: h, twoFactorChallenge: g, verifyTwoFactor: _, sendTwoFactorCode: v, cancelTwoFactor: y, signUpWithEmail: b, requestPasswordReset: x, signInWithSocialPopup: S, signInWithExternalToken: ee, signOut: te } = xp({
15937
15953
  baseUrl: n.baseUrl,
@@ -15978,14 +15994,14 @@ var Av = {
15978
15994
  baseUrl: n.baseUrl,
15979
15995
  headers: d,
15980
15996
  cookieName: n.cookieName
15981
- }), de = W(() => n.floatingButtonPosition ?? T.value?.interface.floatingButtonPosition ?? ne.value?.interface.floatingButtonPosition ?? "right"), M = W(() => {
15997
+ }), de = U(() => n.floatingButtonPosition ?? T.value?.interface.floatingButtonPosition ?? ne.value?.interface.floatingButtonPosition ?? "right"), M = U(() => {
15982
15998
  let e = [
15983
15999
  T.value?.interface?.customCss,
15984
16000
  ne.value?.interface.customCss,
15985
16001
  n.customCss
15986
16002
  ].filter(Boolean);
15987
16003
  return e.length ? e.join("\n") : void 0;
15988
- }), { authError: fe, authSuccess: pe, authLoading: me, handleSignIn: I, handleSignUp: R, handleReset: B, handleSocial: he, handleVerifyTwoFactor: ge, handleSendTwoFactorCode: _e, handleCancelTwoFactor: U } = Dp({
16004
+ }), { authError: fe, authSuccess: pe, authLoading: me, handleSignIn: he, handleSignUp: L, handleReset: z, handleSocial: ge, handleVerifyTwoFactor: _e, handleSendTwoFactorCode: ve, handleCancelTwoFactor: H } = Dp({
15989
16005
  signInWithEmail: h,
15990
16006
  isTwoFactorPending: () => !!g.value,
15991
16007
  verifyTwoFactor: _,
@@ -16023,20 +16039,20 @@ var Av = {
16023
16039
  }
16024
16040
  }), (t, n) => {
16025
16041
  let i = sn;
16026
- return A(), q("div", {
16027
- class: Ne(["floating-chat-widget", [N(ce), { "floating-chat-widget--position-left": de.value === "left" }]]),
16042
+ return A(), K("div", {
16043
+ class: q(["floating-chat-widget", [N(ce), { "floating-chat-widget--position-left": de.value === "left" }]]),
16028
16044
  style: re(N(le))
16029
16045
  }, [
16030
- N(ie) ? (A(), V(oe("style"), { key: 0 }, {
16031
- default: C(() => [L(E(N(ie)), 1)]),
16046
+ N(ie) ? (A(), B(oe("style"), { key: 0 }, {
16047
+ default: C(() => [I(E(N(ie)), 1)]),
16032
16048
  _: 1
16033
16049
  })) : F("", !0),
16034
- M.value ? (A(), V(oe("style"), { key: 1 }, {
16035
- default: C(() => [L(E(M.value), 1)]),
16050
+ M.value ? (A(), B(oe("style"), { key: 1 }, {
16051
+ default: C(() => [I(E(M.value), 1)]),
16036
16052
  _: 1
16037
16053
  })) : F("", !0),
16038
- J(K, { name: "slide-bottom" }, {
16039
- default: C(() => [(N(T) || N(ne)) && !N(O) ? (A(), q("div", Av, [J(kv, {
16054
+ J(G, { name: "slide-bottom" }, {
16055
+ default: C(() => [(N(T) || N(ne)) && !N(O) ? (A(), K("div", Av, [J(kv, {
16040
16056
  "agent-id": e.agentId,
16041
16057
  message: N(T)?.interface.initialMessage,
16042
16058
  enabled: !N(s) && N(T)?.interface?.welcomePopup,
@@ -16045,34 +16061,34 @@ var Av = {
16045
16061
  "agent-id",
16046
16062
  "message",
16047
16063
  "enabled"
16048
- ]), H("button", {
16064
+ ]), V("button", {
16049
16065
  type: "button",
16050
16066
  "aria-label": N(s) ? t.$t("action.closeChat") : t.$t("action.openChat"),
16051
16067
  "aria-expanded": N(s),
16052
16068
  class: "floating-chat-widget__button",
16053
- onClick: ke(c, ["stop"])
16054
- }, [N(s) ? (A(), q("svg", Mv, [...n[4] ||= [H("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }, null, -1)]])) : (A(), q("svg", Nv, [...n[5] ||= [H("path", { d: "M12 1.99996C12.8632 1.99996 13.701 2.10973 14.5 2.31539L14 4.25192C13.3608 4.0874 12.6906 3.99997 12 3.99997C7.58174 3.99997 4.00002 7.58172 4 12C4 13.3344 4.3255 14.6174 4.93945 15.7656L5.28906 16.4189L4.63379 19.3662L7.58105 18.7109L8.23438 19.0605C9.38255 19.6745 10.6656 20 12 20C16.4183 20 20 16.4183 20 12C20 11.6771 19.9805 11.3587 19.9434 11.0459L21.9297 10.8095C21.976 11.1999 22 11.5972 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.69425 21.5746 7.29102 20.8242L2 22L3.17578 16.709C2.42541 15.3057 2 13.7025 2 12C2.00002 6.47714 6.47717 1.99996 12 1.99996ZM19.5293 1.3193C19.7058 0.893513 20.2942 0.8935 20.4707 1.3193L20.7236 1.93063C21.1555 2.97343 21.9615 3.80614 22.9746 4.2568L23.6914 4.57614C24.1022 4.75882 24.1022 5.35635 23.6914 5.53903L22.9326 5.87692C21.945 6.3162 21.1534 7.11943 20.7139 8.1279L20.4668 8.69333C20.2863 9.10747 19.7136 9.10747 19.5332 8.69333L19.2861 8.1279C18.8466 7.11942 18.0551 6.3162 17.0674 5.87692L16.3076 5.53903C15.8974 5.35618 15.8974 4.75895 16.3076 4.57614L17.0254 4.2568C18.0384 3.80614 18.8445 2.97343 19.2764 1.93063L19.5293 1.3193Z" }, null, -1)]]))], 8, jv)])) : F("", !0)]),
16069
+ onClick: Ae(c, ["stop"])
16070
+ }, [N(s) ? (A(), K("svg", Mv, [...n[4] ||= [V("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }, null, -1)]])) : (A(), K("svg", Nv, [...n[5] ||= [V("path", { d: "M12 1.99996C12.8632 1.99996 13.701 2.10973 14.5 2.31539L14 4.25192C13.3608 4.0874 12.6906 3.99997 12 3.99997C7.58174 3.99997 4.00002 7.58172 4 12C4 13.3344 4.3255 14.6174 4.93945 15.7656L5.28906 16.4189L4.63379 19.3662L7.58105 18.7109L8.23438 19.0605C9.38255 19.6745 10.6656 20 12 20C16.4183 20 20 16.4183 20 12C20 11.6771 19.9805 11.3587 19.9434 11.0459L21.9297 10.8095C21.976 11.1999 22 11.5972 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.69425 21.5746 7.29102 20.8242L2 22L3.17578 16.709C2.42541 15.3057 2 13.7025 2 12C2.00002 6.47714 6.47717 1.99996 12 1.99996ZM19.5293 1.3193C19.7058 0.893513 20.2942 0.8935 20.4707 1.3193L20.7236 1.93063C21.1555 2.97343 21.9615 3.80614 22.9746 4.2568L23.6914 4.57614C24.1022 4.75882 24.1022 5.35635 23.6914 5.53903L22.9326 5.87692C21.945 6.3162 21.1534 7.11943 20.7139 8.1279L20.4668 8.69333C20.2863 9.10747 19.7136 9.10747 19.5332 8.69333L19.2861 8.1279C18.8466 7.11942 18.0551 6.3162 17.0674 5.87692L16.3076 5.53903C15.8974 5.35618 15.8974 4.75895 16.3076 4.57614L17.0254 4.2568C18.0384 3.80614 18.8445 2.97343 19.2764 1.93063L19.5293 1.3193Z" }, null, -1)]]))], 8, jv)])) : F("", !0)]),
16055
16071
  _: 1
16056
16072
  }),
16057
- J(K, null, {
16058
- default: C(() => [N(s) && (N(ae) || N(k)) && !(N(T) && N(l).data) ? (A(), q("div", Pv, [N(ae) ? (A(), V(xv, {
16073
+ J(G, null, {
16074
+ default: C(() => [N(s) && (N(ae) || N(k)) && !(N(T) && N(l).data) ? (A(), K("div", Pv, [N(ae) ? (A(), B(xv, {
16059
16075
  key: 0,
16060
16076
  "error-message": N(fe),
16061
- "onUpdate:errorMessage": n[0] ||= (e) => z(fe) ? fe.value = e : null,
16077
+ "onUpdate:errorMessage": n[0] ||= (e) => R(fe) ? fe.value = e : null,
16062
16078
  success: N(pe),
16063
- "onUpdate:success": n[1] ||= (e) => z(pe) ? pe.value = e : null,
16079
+ "onUpdate:success": n[1] ||= (e) => R(pe) ? pe.value = e : null,
16064
16080
  branding: N(ne),
16065
16081
  "auth-methods": N(D),
16066
16082
  "base-url": e.baseUrl,
16067
16083
  loading: N(me),
16068
16084
  "two-factor-methods": N(g)?.methods,
16069
- onSignIn: N(I),
16070
- onSignUp: N(R),
16071
- onRequestReset: N(B),
16072
- onSocial: N(he),
16073
- onVerifyTwoFactor: N(ge),
16074
- onSendTwoFactorCode: N(_e),
16075
- onCancelTwoFactor: N(U)
16085
+ onSignIn: N(he),
16086
+ onSignUp: N(L),
16087
+ onRequestReset: N(z),
16088
+ onSocial: N(ge),
16089
+ onVerifyTwoFactor: N(_e),
16090
+ onSendTwoFactorCode: N(ve),
16091
+ onCancelTwoFactor: N(H)
16076
16092
  }, null, 8, [
16077
16093
  "error-message",
16078
16094
  "success",
@@ -16088,15 +16104,15 @@ var Av = {
16088
16104
  "onVerifyTwoFactor",
16089
16105
  "onSendTwoFactorCode",
16090
16106
  "onCancelTwoFactor"
16091
- ])) : (A(), V(Tv, { key: 1 }))])) : F("", !0)]),
16107
+ ])) : (A(), B(Tv, { key: 1 }))])) : F("", !0)]),
16092
16108
  _: 1
16093
16109
  }),
16094
- J(K, null, {
16095
- default: C(() => [N(s) && !N(ae) && !N(T) && !N(k) ? (A(), q("div", Fv, [J(Tv)])) : F("", !0)]),
16110
+ J(G, null, {
16111
+ default: C(() => [N(s) && !N(ae) && !N(T) && !N(k) ? (A(), K("div", Fv, [J(Tv)])) : F("", !0)]),
16096
16112
  _: 1
16097
16113
  }),
16098
- J(K, null, {
16099
- default: C(() => [N(T) && N(s) && N(l).data ? (A(), V(nv, {
16114
+ J(G, null, {
16115
+ default: C(() => [N(T) && N(s) && N(l).data ? (A(), B(nv, {
16100
16116
  key: e.agentId,
16101
16117
  ref_key: "chatbotEl",
16102
16118
  ref: a,
@@ -16123,24 +16139,24 @@ var Av = {
16123
16139
  modifiers: e ? `action-quiet-${N(se)}` : "action-quiet",
16124
16140
  icon: "ri:close-line",
16125
16141
  title: t.$t("action.close"),
16126
- onClick: ke(c, ["stop"])
16142
+ onClick: Ae(c, ["stop"])
16127
16143
  }, null, 8, ["modifiers", "title"])]),
16128
16144
  "view-auth": C(() => [J(xv, {
16129
16145
  "error-message": N(fe),
16130
- "onUpdate:errorMessage": n[2] ||= (e) => z(fe) ? fe.value = e : null,
16146
+ "onUpdate:errorMessage": n[2] ||= (e) => R(fe) ? fe.value = e : null,
16131
16147
  success: N(pe),
16132
- "onUpdate:success": n[3] ||= (e) => z(pe) ? pe.value = e : null,
16148
+ "onUpdate:success": n[3] ||= (e) => R(pe) ? pe.value = e : null,
16133
16149
  branding: N(ue),
16134
16150
  "auth-methods": N(D),
16135
16151
  loading: N(me),
16136
16152
  "two-factor-methods": N(g)?.methods,
16137
- onSignIn: N(I),
16138
- onSignUp: N(R),
16139
- onRequestReset: N(B),
16140
- onSocial: N(he),
16141
- onVerifyTwoFactor: N(ge),
16142
- onSendTwoFactorCode: N(_e),
16143
- onCancelTwoFactor: N(U)
16153
+ onSignIn: N(he),
16154
+ onSignUp: N(L),
16155
+ onRequestReset: N(z),
16156
+ onSocial: N(ge),
16157
+ onVerifyTwoFactor: N(_e),
16158
+ onSendTwoFactorCode: N(ve),
16159
+ onCancelTwoFactor: N(H)
16144
16160
  }, null, 8, [
16145
16161
  "error-message",
16146
16162
  "success",
@@ -16178,7 +16194,7 @@ var Av = {
16178
16194
  }), [["styles", [".floating-chat-widget{display:contents}.floating-chat-widget__launcher{bottom:var(--spacing-16);right:var(--spacing-16);align-items:flex-end;gap:var(--spacing-14);z-index:99999997;background:0 0;flex-direction:column;width:fit-content;display:flex;position:fixed}.floating-chat-widget__button{padding:var(--spacing-10);width:var(--spacing-48);height:var(--spacing-48);border-radius:var(--rounded-full);background-color:var(--chatbot-main-color,var(--color-black,#000));color:var(--chatbot-contrast-color,var(--color-white,#fff));cursor:pointer;pointer-events:auto;border:0;flex-shrink:0;justify-content:center;align-items:center;transition:all .2s ease-in-out;display:block;transform:scale(1);box-shadow:0 4px 8px #0003}.floating-chat-widget__button:hover{transform:scale(1.1)}.floating-chat-widget__chat{z-index:2147483647;height:auto;position:fixed;inset:0;overflow:hidden}@media (width>=576px){.floating-chat-widget__chat{border-radius:var(--rounded-xxl);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);width:406px;height:85dvh;inset:auto 16px 78px auto;box-shadow:0 260px 73px #0000,0 166px 67px #00000003,0 94px 56px #00000005,0 42px 42px #00000008,0 10px 23px #0000000a}}.floating-chat-widget__loading,.floating-chat-widget__auth{background-color:var(--color-surface,#fff);justify-content:center;align-items:center;display:flex}.floating-chat-widget--position-left .floating-chat-widget__launcher{right:unset;left:var(--spacing-16);align-items:flex-start}@media (width>=576px){.floating-chat-widget--position-left .floating-chat-widget__chat{right:unset;left:16px}}"]]]);
16179
16195
  //#endregion
16180
16196
  //#region src/components/EmbeddedChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
16181
- j(), U(), T(), Ee();
16197
+ j(), H(), T(), De();
16182
16198
  var Lv = {
16183
16199
  key: 2,
16184
16200
  class: "embedded-chat-widget embedded-chat-widget--not-found"
@@ -16237,7 +16253,7 @@ var Lv = {
16237
16253
  },
16238
16254
  setup(e, { expose: t }) {
16239
16255
  Op();
16240
- let n = e, { PkGlobalDialog: r } = Wd(), { emit: i } = tf(), a = G(), o = G();
16256
+ let n = e, { PkGlobalDialog: r } = Wd(), { emit: i } = tf(), a = W(), o = W();
16241
16257
  oi(n.appinsightsConnectionString), si({
16242
16258
  organizationSlug: n.organizationSlug,
16243
16259
  agentId: n.agentId
@@ -16286,7 +16302,7 @@ var Lv = {
16286
16302
  baseUrl: n.baseUrl,
16287
16303
  headers: l,
16288
16304
  cookieName: n.cookieName
16289
- }), { authError: ue, authSuccess: de, authLoading: M, handleSignIn: fe, handleSignUp: pe, handleReset: me, handleSocial: I, handleVerifyTwoFactor: R, handleSendTwoFactorCode: B, handleCancelTwoFactor: he } = Dp({
16305
+ }), { authError: ue, authSuccess: de, authLoading: M, handleSignIn: fe, handleSignUp: pe, handleReset: me, handleSocial: he, handleVerifyTwoFactor: L, handleSendTwoFactorCode: z, handleCancelTwoFactor: ge } = Dp({
16290
16306
  signInWithEmail: p,
16291
16307
  isTwoFactorPending: () => !!m.value,
16292
16308
  verifyTwoFactor: h,
@@ -16297,7 +16313,7 @@ var Lv = {
16297
16313
  signInWithSocialPopup: b,
16298
16314
  refetchSession: () => s.value.refetch(),
16299
16315
  reload: se
16300
- }), ge = W(() => n.forwardedSlots ? n.forwardedSlots.split(",").map((e) => e.trim()).filter(Boolean) : []), _e = W(() => s.value.data?.user?.isAnonymous ? void 0 : s.value.data?.user?.name), U = W(() => {
16316
+ }), _e = U(() => n.forwardedSlots ? n.forwardedSlots.split(",").map((e) => e.trim()).filter(Boolean) : []), ve = U(() => s.value.data?.user?.isAnonymous ? void 0 : s.value.data?.user?.name), H = U(() => {
16301
16317
  let e = [
16302
16318
  T.value?.interface?.customCss,
16303
16319
  ne.value?.interface.customCss,
@@ -16317,29 +16333,29 @@ var Lv = {
16317
16333
  },
16318
16334
  signIn: x,
16319
16335
  signOut: S
16320
- }), (t, n) => (A(), q("div", {
16321
- class: Ne(["embedded-chat-widget-root", N(ce)]),
16336
+ }), (t, n) => (A(), K("div", {
16337
+ class: q(["embedded-chat-widget-root", N(ce)]),
16322
16338
  style: re(N(le))
16323
16339
  }, [
16324
- N(ie) ? (A(), V(oe("style"), { key: 0 }, {
16325
- default: C(() => [L(E(N(ie)), 1)]),
16340
+ N(ie) ? (A(), B(oe("style"), { key: 0 }, {
16341
+ default: C(() => [I(E(N(ie)), 1)]),
16326
16342
  _: 1
16327
16343
  })) : F("", !0),
16328
- U.value ? (A(), V(oe("style"), { key: 1 }, {
16329
- default: C(() => [L(E(U.value), 1)]),
16344
+ H.value ? (A(), B(oe("style"), { key: 1 }, {
16345
+ default: C(() => [I(E(H.value), 1)]),
16330
16346
  _: 1
16331
16347
  })) : F("", !0),
16332
- N(O) ? (A(), q("div", Lv, [H("p", null, E(N(w)("message.agentNotFound")), 1)])) : F("", !0),
16333
- J(K, {
16348
+ N(O) ? (A(), K("div", Lv, [V("p", null, E(N(w)("message.agentNotFound")), 1)])) : F("", !0),
16349
+ J(G, {
16334
16350
  name: "fade",
16335
16351
  appear: ""
16336
16352
  }, {
16337
- default: C(() => [(N(T) || N(ne)) && !N(O) && N(ae) && (!N(s).data?.user?.id || N(s).data?.user?.isAnonymous) ? (A(), q("div", Rv, [N(D) ? (A(), V(xv, {
16353
+ default: C(() => [(N(T) || N(ne)) && !N(O) && N(ae) && (!N(s).data?.user?.id || N(s).data?.user?.isAnonymous) ? (A(), K("div", Rv, [N(D) ? (A(), B(xv, {
16338
16354
  key: 0,
16339
16355
  "error-message": N(ue),
16340
- "onUpdate:errorMessage": n[0] ||= (e) => z(ue) ? ue.value = e : null,
16356
+ "onUpdate:errorMessage": n[0] ||= (e) => R(ue) ? ue.value = e : null,
16341
16357
  success: N(de),
16342
- "onUpdate:success": n[1] ||= (e) => z(de) ? de.value = e : null,
16358
+ "onUpdate:success": n[1] ||= (e) => R(de) ? de.value = e : null,
16343
16359
  branding: N(ne),
16344
16360
  "auth-methods": N(D),
16345
16361
  loading: N(M),
@@ -16347,10 +16363,10 @@ var Lv = {
16347
16363
  onSignIn: N(fe),
16348
16364
  onSignUp: N(pe),
16349
16365
  onRequestReset: N(me),
16350
- onSocial: N(I),
16351
- onVerifyTwoFactor: N(R),
16352
- onSendTwoFactorCode: N(B),
16353
- onCancelTwoFactor: N(he)
16366
+ onSocial: N(he),
16367
+ onVerifyTwoFactor: N(L),
16368
+ onSendTwoFactorCode: N(z),
16369
+ onCancelTwoFactor: N(ge)
16354
16370
  }, null, 8, [
16355
16371
  "error-message",
16356
16372
  "success",
@@ -16365,17 +16381,17 @@ var Lv = {
16365
16381
  "onVerifyTwoFactor",
16366
16382
  "onSendTwoFactorCode",
16367
16383
  "onCancelTwoFactor"
16368
- ])) : (A(), V(Tv, { key: 1 }))])) : F("", !0)]),
16384
+ ])) : (A(), B(Tv, { key: 1 }))])) : F("", !0)]),
16369
16385
  _: 1
16370
16386
  }),
16371
- J(K, {
16387
+ J(G, {
16372
16388
  name: "fade",
16373
16389
  appear: ""
16374
16390
  }, {
16375
- default: C(() => [N(k) && !N(O) ? (A(), q("div", zv, [J(Tv)])) : F("", !0)]),
16391
+ default: C(() => [N(k) && !N(O) ? (A(), K("div", zv, [J(Tv)])) : F("", !0)]),
16376
16392
  _: 1
16377
16393
  }),
16378
- N(T) && N(s).data && !N(O) ? (A(), V(nv, {
16394
+ N(T) && N(s).data && !N(O) ? (A(), B(nv, {
16379
16395
  key: 3,
16380
16396
  ref_key: "chatbotEl",
16381
16397
  ref: a,
@@ -16388,7 +16404,7 @@ var Lv = {
16388
16404
  "agent-file-upload": N(T).capabilities?.fileUpload,
16389
16405
  voice: N(T).capabilities?.voice,
16390
16406
  modifier: e.displayMode,
16391
- "user-name": _e.value,
16407
+ "user-name": ve.value,
16392
16408
  headers: N(l),
16393
16409
  "system-theme": e.systemTheme,
16394
16410
  actions: [
@@ -16404,9 +16420,9 @@ var Lv = {
16404
16420
  actions: C(() => [te(t.$slots, "actions")]),
16405
16421
  "view-auth": C(() => [J(xv, {
16406
16422
  "error-message": N(ue),
16407
- "onUpdate:errorMessage": n[2] ||= (e) => z(ue) ? ue.value = e : null,
16423
+ "onUpdate:errorMessage": n[2] ||= (e) => R(ue) ? ue.value = e : null,
16408
16424
  success: N(de),
16409
- "onUpdate:success": n[3] ||= (e) => z(de) ? de.value = e : null,
16425
+ "onUpdate:success": n[3] ||= (e) => R(de) ? de.value = e : null,
16410
16426
  branding: N(j),
16411
16427
  "auth-methods": N(D),
16412
16428
  loading: N(M),
@@ -16414,10 +16430,10 @@ var Lv = {
16414
16430
  onSignIn: N(fe),
16415
16431
  onSignUp: N(pe),
16416
16432
  onRequestReset: N(me),
16417
- onSocial: N(I),
16418
- onVerifyTwoFactor: N(R),
16419
- onSendTwoFactorCode: N(B),
16420
- onCancelTwoFactor: N(he)
16433
+ onSocial: N(he),
16434
+ onVerifyTwoFactor: N(L),
16435
+ onSendTwoFactorCode: N(z),
16436
+ onCancelTwoFactor: N(ge)
16421
16437
  }, null, 8, [
16422
16438
  "error-message",
16423
16439
  "success",
@@ -16434,7 +16450,7 @@ var Lv = {
16434
16450
  "onCancelTwoFactor"
16435
16451
  ])]),
16436
16452
  _: 2
16437
- }, [Le(ge.value, (e) => ({
16453
+ }, [Le(_e.value, (e) => ({
16438
16454
  name: e,
16439
16455
  fn: C(() => [te(t.$slots, e)])
16440
16456
  }))]), 1032, [
@@ -16457,7 +16473,7 @@ var Lv = {
16457
16473
  }), [["styles", [".embedded-chat-widget-root{display:contents}.embedded-chat-widget{width:100%;height:100%}.embedded-chat-widget--loading,.embedded-chat-widget--not-found,.embedded-chat-widget--auth{justify-content:center;align-items:center;display:flex}.fade-enter-active,.fade-leave-active{transition:opacity .2s}.fade-enter-from,.fade-leave-to{opacity:0}"]]]);
16458
16474
  //#endregion
16459
16475
  //#region src/lib.ts
16460
- Ee();
16476
+ De();
16461
16477
  function Vv(e) {
16462
16478
  let { t } = tr.global;
16463
16479
  e.use(Nn()), e.use(tr), e.provide(Be, tr), e.use(yr, {
@@ -16491,7 +16507,7 @@ function Hv(e) {
16491
16507
  styles: [ui, ...t ?? []]
16492
16508
  };
16493
16509
  }
16494
- var Uv = Se(Iv, Hv(Iv)), Wv = Se(Bv, Hv(Bv));
16510
+ var Uv = Ce(Iv, Hv(Iv)), Wv = Ce(Bv, Hv(Bv));
16495
16511
  customElements.define("floating-chat-widget", Uv), customElements.define("embedded-chat-widget", Wv);
16496
16512
  //#endregion
16497
16513
  export { Wv as EmbeddedChatWidgetCe, Uv as FloatingChatWidgetCe };