@8wave/ai-elements 0.121.0-beta.31 → 0.121.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 (180) hide show
  1. package/dist/_chunks/{Agent-wvUJZjp3.js → Agent-BPIcUM9P.js} +145 -144
  2. package/dist/_chunks/Agent-BPIcUM9P.js.map +1 -0
  3. package/dist/_chunks/{PkChatbotFilePreview-dtGYHgFN.js → PkChatbotFilePreview-CpFXWpU7.js} +48 -35
  4. package/dist/_chunks/PkChatbotFilePreview-CpFXWpU7.js.map +1 -0
  5. package/dist/_chunks/{PkHeldImage-yQVzab3w.js → PkHeldImage-DvHKY7Vh.js} +2 -2
  6. package/dist/_chunks/{PkHeldImage-yQVzab3w.js.map → PkHeldImage-DvHKY7Vh.js.map} +1 -1
  7. package/dist/_chunks/{PkLazyImg-KPWpt_yW.js → PkLazyImg-BBFsS16D.js} +2 -2
  8. package/dist/_chunks/{PkLazyImg-KPWpt_yW.js.map → PkLazyImg-BBFsS16D.js.map} +1 -1
  9. package/dist/_chunks/{PkStreamingMarkdown-DeZn-hPo.js → PkStreamingMarkdown-C8_9bk_Y.js} +8 -8
  10. package/dist/_chunks/PkStreamingMarkdown-C8_9bk_Y.js.map +1 -0
  11. package/dist/_chunks/{PkToolEditSpreadsheet-BJEWc_nV.js → PkToolEditSpreadsheet-DM5BCKd2.js} +3 -3
  12. package/dist/_chunks/{PkToolEditSpreadsheet-BJEWc_nV.js.map → PkToolEditSpreadsheet-DM5BCKd2.js.map} +1 -1
  13. package/dist/_chunks/{PkToolRequestGeolocation-CPU3e3iJ.js → PkToolRequestGeolocation-DnZFIG1Q.js} +3 -3
  14. package/dist/_chunks/{PkToolRequestGeolocation-CPU3e3iJ.js.map → PkToolRequestGeolocation-DnZFIG1Q.js.map} +1 -1
  15. package/dist/_chunks/{PkToolRequestOAuthConnection-C8nfpS3d.js → PkToolRequestOAuthConnection-9LX5kQ43.js} +4 -4
  16. package/dist/_chunks/{PkToolRequestOAuthConnection-C8nfpS3d.js.map → PkToolRequestOAuthConnection-9LX5kQ43.js.map} +1 -1
  17. package/dist/_chunks/PkToolShareDocument-BhT59J9o.js +64 -0
  18. package/dist/_chunks/PkToolShareDocument-BhT59J9o.js.map +1 -0
  19. package/dist/_chunks/{PkToolShowArtifact-Bt_qBvdI.js → PkToolShowArtifact-2ovT7cCd.js} +4 -4
  20. package/dist/_chunks/{PkToolShowArtifact-Bt_qBvdI.js.map → PkToolShowArtifact-2ovT7cCd.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowCalendarEvent-K4_7WrtL.js → PkToolShowCalendarEvent-Dzh4JURs.js} +4 -4
  22. package/dist/_chunks/{PkToolShowCalendarEvent-K4_7WrtL.js.map → PkToolShowCalendarEvent-Dzh4JURs.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowComparison-whPYJiI5.js → PkToolShowComparison-CFHrXnaB.js} +4 -4
  24. package/dist/_chunks/{PkToolShowComparison-whPYJiI5.js.map → PkToolShowComparison-CFHrXnaB.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowContactForm-BwKW5txM.js → PkToolShowContactForm-Bkoa-XYM.js} +5 -5
  26. package/dist/_chunks/{PkToolShowContactForm-BwKW5txM.js.map → PkToolShowContactForm-Bkoa-XYM.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowDiagram-CXpSKtDS.js → PkToolShowDiagram-DGnIuRst.js} +4 -4
  28. package/dist/_chunks/{PkToolShowDiagram-CXpSKtDS.js.map → PkToolShowDiagram-DGnIuRst.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowEmail-w6YoMH75.js → PkToolShowEmail-C3jped-R.js} +4 -4
  30. package/dist/_chunks/{PkToolShowEmail-w6YoMH75.js.map → PkToolShowEmail-C3jped-R.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowForm-DJhe2pV3.js → PkToolShowForm-CvAgDlx8.js} +5 -5
  32. package/dist/_chunks/{PkToolShowForm-DJhe2pV3.js.map → PkToolShowForm-CvAgDlx8.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowImageGallery-DPEIoeDc.js → PkToolShowImageGallery-CjA-r8o5.js} +4 -4
  34. package/dist/_chunks/{PkToolShowImageGallery-DPEIoeDc.js.map → PkToolShowImageGallery-CjA-r8o5.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowLocation-CPFldsb9.js → PkToolShowLocation-gyMiVjhi.js} +4 -4
  36. package/dist/_chunks/{PkToolShowLocation-CPFldsb9.js.map → PkToolShowLocation-gyMiVjhi.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowMessage-CLoGgUhg.js → PkToolShowMessage-wGPPnOAM.js} +4 -4
  38. package/dist/_chunks/{PkToolShowMessage-CLoGgUhg.js.map → PkToolShowMessage-wGPPnOAM.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowProductList-C5alYUrB.js → PkToolShowProductList-DGPs57sX.js} +5 -5
  40. package/dist/_chunks/{PkToolShowProductList-C5alYUrB.js.map → PkToolShowProductList-DGPs57sX.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowQrCode-CBPbE62N.js → PkToolShowQrCode-CeZsvZvb.js} +4 -4
  42. package/dist/_chunks/{PkToolShowQrCode-CBPbE62N.js.map → PkToolShowQrCode-CeZsvZvb.js.map} +1 -1
  43. package/dist/_chunks/{PkToolShowSources-CkwbyMdU.js → PkToolShowSources-BVuYkrXs.js} +5 -5
  44. package/dist/_chunks/{PkToolShowSources-CkwbyMdU.js.map → PkToolShowSources-BVuYkrXs.js.map} +1 -1
  45. package/dist/_chunks/{PkToolShowSuggestedReply-C-yCzH_d.js → PkToolShowSuggestedReply-B869o1YP.js} +3 -3
  46. package/dist/_chunks/{PkToolShowSuggestedReply-C-yCzH_d.js.map → PkToolShowSuggestedReply-B869o1YP.js.map} +1 -1
  47. package/dist/_chunks/{PkToolShowVideo-DL554qVB.js → PkToolShowVideo-DayRkHzW.js} +4 -4
  48. package/dist/_chunks/{PkToolShowVideo-DL554qVB.js.map → PkToolShowVideo-DayRkHzW.js.map} +1 -1
  49. package/dist/_chunks/{PkToolShowWeather-BKFV5n-r.js → PkToolShowWeather-BgS4_SWb.js} +2 -2
  50. package/dist/_chunks/{PkToolShowWeather-BKFV5n-r.js.map → PkToolShowWeather-BgS4_SWb.js.map} +1 -1
  51. package/dist/_chunks/{PkToolShowWebPages-D35l7s9P.js → PkToolShowWebPages-DTwnqmP-.js} +5 -5
  52. package/dist/_chunks/{PkToolShowWebPages-D35l7s9P.js.map → PkToolShowWebPages-DTwnqmP-.js.map} +1 -1
  53. package/dist/_chunks/{VvButtonLocalized-Y9bOC2EC.js → VvButtonLocalized-B6igS2e0.js} +2 -2
  54. package/dist/_chunks/{VvButtonLocalized-Y9bOC2EC.js.map → VvButtonLocalized-B6igS2e0.js.map} +1 -1
  55. package/dist/_chunks/{VvCheckboxGroup.es-BeN3V7ep.js → VvCheckboxGroup.es-OXhptnPU.js} +2 -2
  56. package/dist/_chunks/{VvCheckboxGroup.es-BeN3V7ep.js.map → VvCheckboxGroup.es-OXhptnPU.js.map} +1 -1
  57. package/dist/_chunks/{VvCombobox.es-6MTBCvkm.js → VvCombobox.es-SLzX9VnX.js} +100 -100
  58. package/dist/_chunks/{VvCombobox.es-6MTBCvkm.js.map → VvCombobox.es-SLzX9VnX.js.map} +1 -1
  59. package/dist/_chunks/{VvInputText.es-CM9r6IbN.js → VvInputText.es-CETcNKlr.js} +47 -47
  60. package/dist/_chunks/{VvInputText.es-CM9r6IbN.js.map → VvInputText.es-CETcNKlr.js.map} +1 -1
  61. package/dist/_chunks/{VvRadioGroup.es-BypimFIS.js → VvRadioGroup.es-UBZBB89A.js} +2 -2
  62. package/dist/_chunks/{VvRadioGroup.es-BypimFIS.js.map → VvRadioGroup.es-UBZBB89A.js.map} +1 -1
  63. package/dist/_chunks/{VvSelect.es-BoYULWyZ.js → VvSelect.es-B_MShGnJ.js} +2 -2
  64. package/dist/_chunks/{VvSelect.es-BoYULWyZ.js.map → VvSelect.es-B_MShGnJ.js.map} +1 -1
  65. package/dist/_chunks/{VvTextarea.es-BSI_b-bF.js → VvTextarea.es-Dm2Yq3WM.js} +308 -308
  66. package/dist/_chunks/{VvTextarea.es-BSI_b-bF.js.map → VvTextarea.es-Dm2Yq3WM.js.map} +1 -1
  67. package/dist/_chunks/{chatImagePolicy-Caj4GsFN.js → chatImagePolicy-IKP98mdB.js} +2 -2
  68. package/dist/_chunks/{chatImagePolicy-Caj4GsFN.js.map → chatImagePolicy-IKP98mdB.js.map} +1 -1
  69. package/dist/_chunks/{dist---RigjU4.js → dist-Do_Ac5Yv.js} +102 -48
  70. package/dist/_chunks/dist-Do_Ac5Yv.js.map +1 -0
  71. package/dist/_chunks/{index.es-Cn-q-Lal.js → index.es-BTDKU45u.js} +93 -93
  72. package/dist/_chunks/{index.es-Cn-q-Lal.js.map → index.es-BTDKU45u.js.map} +1 -1
  73. package/dist/_chunks/{index.es-CtWcRpZ7.js → index.es-BZS9Cscn.js} +11 -11
  74. package/dist/_chunks/{index.es-CtWcRpZ7.js.map → index.es-BZS9Cscn.js.map} +1 -1
  75. package/dist/_chunks/{markdown-DzN3Q-au.js → markdown-D7lXKAr4.js} +2 -2
  76. package/dist/_chunks/{markdown-DzN3Q-au.js.map → markdown-D7lXKAr4.js.map} +1 -1
  77. package/dist/ai-elements.es.js +356 -342
  78. package/dist/ai-elements.es.js.map +1 -1
  79. package/dist-vue/PkChatbot.js +1 -1
  80. package/dist-vue/PkChatbotEmptyState.js +1 -1
  81. package/dist-vue/PkChatbotFilePreview.js +1 -1
  82. package/dist-vue/PkChatbotInput.js +1 -1
  83. package/dist-vue/PkChatbotMessages.js +1 -1
  84. package/dist-vue/PkChatbotStepPayload.js +1 -1
  85. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  86. package/dist-vue/PkChatbotSteps.js +1 -1
  87. package/dist-vue/PkChatbotViewChat.js +1 -1
  88. package/dist-vue/PkChatbotViewConversations.js +1 -1
  89. package/dist-vue/PkChatbotViewFiles.js +1 -1
  90. package/dist-vue/PkChatbotViewProfile.js +1 -1
  91. package/dist-vue/_chunks/{Agent-ywfLo1Hg.js → Agent-D70vAgX4.js} +112 -110
  92. package/dist-vue/_chunks/Agent-D70vAgX4.js.map +1 -0
  93. package/dist-vue/_chunks/{Document-DqkgJZNx.js → Document-Bo4xInDb.js} +2 -2
  94. package/dist-vue/_chunks/{Document-DqkgJZNx.js.map → Document-Bo4xInDb.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkChatbot-CLy8LgF8.js → PkChatbot-65tNfhpY.js} +8 -8
  96. package/dist-vue/_chunks/{PkChatbot-CLy8LgF8.js.map → PkChatbot-65tNfhpY.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkChatbotEmptyState-DLg5tLl5.js → PkChatbotEmptyState-CcRoSIb7.js} +2 -2
  98. package/dist-vue/_chunks/{PkChatbotEmptyState-DLg5tLl5.js.map → PkChatbotEmptyState-CcRoSIb7.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkChatbotFilePreview-D8XyjDPJ.js → PkChatbotFilePreview-Btv20Ive.js} +57 -44
  100. package/dist-vue/_chunks/PkChatbotFilePreview-Btv20Ive.js.map +1 -0
  101. package/dist-vue/_chunks/{PkChatbotInput-CjE0vZAK.js → PkChatbotInput-BeXWvNLw.js} +3 -3
  102. package/dist-vue/_chunks/{PkChatbotInput-CjE0vZAK.js.map → PkChatbotInput-BeXWvNLw.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkChatbotMessages-Dzc0kzyo.js → PkChatbotMessages-BGOyBww5.js} +19 -18
  104. package/dist-vue/_chunks/PkChatbotMessages-BGOyBww5.js.map +1 -0
  105. package/dist-vue/_chunks/{PkChatbotStepPayload-DjGNmloY.js → PkChatbotStepPayload-DsqiKy3M.js} +2 -2
  106. package/dist-vue/_chunks/{PkChatbotStepPayload-DjGNmloY.js.map → PkChatbotStepPayload-DsqiKy3M.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkChatbotStepToolDetail-CUIWz1nJ.js → PkChatbotStepToolDetail-Bg4IBzGh.js} +3 -3
  108. package/dist-vue/_chunks/{PkChatbotStepToolDetail-CUIWz1nJ.js.map → PkChatbotStepToolDetail-Bg4IBzGh.js.map} +1 -1
  109. package/dist-vue/_chunks/{PkChatbotSteps-B4r68w6z.js → PkChatbotSteps-DfeBzC1S.js} +5 -5
  110. package/dist-vue/_chunks/{PkChatbotSteps-B4r68w6z.js.map → PkChatbotSteps-DfeBzC1S.js.map} +1 -1
  111. package/dist-vue/_chunks/{PkChatbotViewChat-B1iNTeQm.js → PkChatbotViewChat-Cj3MKRFE.js} +195 -190
  112. package/dist-vue/_chunks/PkChatbotViewChat-Cj3MKRFE.js.map +1 -0
  113. package/dist-vue/_chunks/{PkChatbotViewConversations-D608ghH3.js → PkChatbotViewConversations-GqapFcx3.js} +3 -3
  114. package/dist-vue/_chunks/{PkChatbotViewConversations-D608ghH3.js.map → PkChatbotViewConversations-GqapFcx3.js.map} +1 -1
  115. package/dist-vue/_chunks/{PkChatbotViewFiles-CTg7R5HF.js → PkChatbotViewFiles-B-P6z7eN.js} +3 -3
  116. package/dist-vue/_chunks/{PkChatbotViewFiles-CTg7R5HF.js.map → PkChatbotViewFiles-B-P6z7eN.js.map} +1 -1
  117. package/dist-vue/_chunks/{PkChatbotViewProfile-HBgg-zuj.js → PkChatbotViewProfile-Bbu10IMd.js} +2 -2
  118. package/dist-vue/_chunks/{PkChatbotViewProfile-HBgg-zuj.js.map → PkChatbotViewProfile-Bbu10IMd.js.map} +1 -1
  119. package/dist-vue/_chunks/{PkStreamingMarkdown-O7p8Vyju.js → PkStreamingMarkdown-BFrymqYD.js} +3 -3
  120. package/dist-vue/_chunks/{PkStreamingMarkdown-O7p8Vyju.js.map → PkStreamingMarkdown-BFrymqYD.js.map} +1 -1
  121. package/dist-vue/_chunks/{PkSvgViewer-CZASatr4.js → PkSvgViewer-BKygi00X.js} +2 -2
  122. package/dist-vue/_chunks/{PkSvgViewer-CZASatr4.js.map → PkSvgViewer-BKygi00X.js.map} +1 -1
  123. package/dist-vue/_chunks/{PkToolEditSpreadsheet-B_Ge2pGx.js → PkToolEditSpreadsheet-CfNQMSWR.js} +3 -3
  124. package/dist-vue/_chunks/{PkToolEditSpreadsheet-B_Ge2pGx.js.map → PkToolEditSpreadsheet-CfNQMSWR.js.map} +1 -1
  125. package/dist-vue/_chunks/{PkToolRequestGeolocation-D0FIRJk2.js → PkToolRequestGeolocation-DvO0z7sQ.js} +2 -2
  126. package/dist-vue/_chunks/{PkToolRequestGeolocation-D0FIRJk2.js.map → PkToolRequestGeolocation-DvO0z7sQ.js.map} +1 -1
  127. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DFlZkvLP.js → PkToolRequestOAuthConnection-CTqtzwJm.js} +2 -2
  128. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DFlZkvLP.js.map → PkToolRequestOAuthConnection-CTqtzwJm.js.map} +1 -1
  129. package/dist-vue/_chunks/PkToolShareDocument-C8sPmh0k.js +64 -0
  130. package/dist-vue/_chunks/PkToolShareDocument-C8sPmh0k.js.map +1 -0
  131. package/dist-vue/_chunks/{PkToolShowArtifact-BTY19659.js → PkToolShowArtifact-BKZKi6J4.js} +2 -2
  132. package/dist-vue/_chunks/{PkToolShowArtifact-BTY19659.js.map → PkToolShowArtifact-BKZKi6J4.js.map} +1 -1
  133. package/dist-vue/_chunks/{PkToolShowContactForm-D82n3tZ4.js → PkToolShowContactForm-CWpQaNOh.js} +2 -2
  134. package/dist-vue/_chunks/{PkToolShowContactForm-D82n3tZ4.js.map → PkToolShowContactForm-CWpQaNOh.js.map} +1 -1
  135. package/dist-vue/_chunks/{PkToolShowDiagram-BlIarn5u.js → PkToolShowDiagram-DElkZZVV.js} +3 -3
  136. package/dist-vue/_chunks/{PkToolShowDiagram-BlIarn5u.js.map → PkToolShowDiagram-DElkZZVV.js.map} +1 -1
  137. package/dist-vue/_chunks/{PkToolShowForm-b5m2ahty.js → PkToolShowForm-BnM1fsi4.js} +4 -4
  138. package/dist-vue/_chunks/{PkToolShowForm-b5m2ahty.js.map → PkToolShowForm-BnM1fsi4.js.map} +1 -1
  139. package/dist-vue/_chunks/{PkToolShowImageGallery-CtIphioH.js → PkToolShowImageGallery-CzcPqcoS.js} +3 -3
  140. package/dist-vue/_chunks/{PkToolShowImageGallery-CtIphioH.js.map → PkToolShowImageGallery-CzcPqcoS.js.map} +1 -1
  141. package/dist-vue/_chunks/{PkToolShowProductList-Vq4zUoN5.js → PkToolShowProductList-Cpf5SLLk.js} +2 -2
  142. package/dist-vue/_chunks/{PkToolShowProductList-Vq4zUoN5.js.map → PkToolShowProductList-Cpf5SLLk.js.map} +1 -1
  143. package/dist-vue/_chunks/{PkToolShowSources-B-r0dOgi.js → PkToolShowSources-E7BcGvof.js} +3 -3
  144. package/dist-vue/_chunks/{PkToolShowSources-B-r0dOgi.js.map → PkToolShowSources-E7BcGvof.js.map} +1 -1
  145. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Dl2VLfJk.js → PkToolShowSuggestedReply-JTMiOpHZ.js} +2 -2
  146. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Dl2VLfJk.js.map → PkToolShowSuggestedReply-JTMiOpHZ.js.map} +1 -1
  147. package/dist-vue/_chunks/{PkToolShowVideo-CssORBGr.js → PkToolShowVideo-DFdmzUkS.js} +2 -2
  148. package/dist-vue/_chunks/{PkToolShowVideo-CssORBGr.js.map → PkToolShowVideo-DFdmzUkS.js.map} +1 -1
  149. package/dist-vue/_chunks/{PkToolShowWebPages-Bhpc1HA2.js → PkToolShowWebPages-CG_Mq77j.js} +2 -2
  150. package/dist-vue/_chunks/{PkToolShowWebPages-Bhpc1HA2.js.map → PkToolShowWebPages-CG_Mq77j.js.map} +1 -1
  151. package/dist-vue/_chunks/{createChatbotApiClient-DN6SHs1X.js → createChatbotApiClient-BTrOwIYi.js} +2 -2
  152. package/dist-vue/_chunks/{createChatbotApiClient-DN6SHs1X.js.map → createChatbotApiClient-BTrOwIYi.js.map} +1 -1
  153. package/dist-vue/_chunks/{useChatbotStore-BlIWevWi.js → useChatbotStore-KjeThRAo.js} +3 -3
  154. package/dist-vue/_chunks/{useChatbotStore-BlIWevWi.js.map → useChatbotStore-KjeThRAo.js.map} +1 -1
  155. package/dist-vue/_chunks/{utils-FkhB6Tl2.js → utils-Bf29zWlC.js} +6 -6
  156. package/dist-vue/_chunks/utils-Bf29zWlC.js.map +1 -0
  157. package/dist-vue/api.js +1 -1
  158. package/dist-vue/composables.js +14 -6
  159. package/dist-vue/composables.js.map +1 -1
  160. package/dist-vue/index.js +3290 -3283
  161. package/dist-vue/index.js.map +1 -1
  162. package/dist-vue/locales.js +6 -0
  163. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +7 -0
  164. package/dist-vue/packages/components/src/chat/PkChatbotFilePreview.d.ts +12 -0
  165. package/dist-vue/packages/components/src/chat/PkToolShareDocument.d.ts +16 -0
  166. package/dist-vue/packages/components/src/chat/index.d.ts +2 -1
  167. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +18 -0
  168. package/dist-vue/packages/models/src/schema/Agent.d.ts +30 -0
  169. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
  170. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
  171. package/package.json +1 -1
  172. package/dist/_chunks/Agent-wvUJZjp3.js.map +0 -1
  173. package/dist/_chunks/PkChatbotFilePreview-dtGYHgFN.js.map +0 -1
  174. package/dist/_chunks/PkStreamingMarkdown-DeZn-hPo.js.map +0 -1
  175. package/dist/_chunks/dist---RigjU4.js.map +0 -1
  176. package/dist-vue/_chunks/Agent-ywfLo1Hg.js.map +0 -1
  177. package/dist-vue/_chunks/PkChatbotFilePreview-D8XyjDPJ.js.map +0 -1
  178. package/dist-vue/_chunks/PkChatbotMessages-Dzc0kzyo.js.map +0 -1
  179. package/dist-vue/_chunks/PkChatbotViewChat-B1iNTeQm.js.map +0 -1
  180. package/dist-vue/_chunks/utils-FkhB6Tl2.js.map +0 -1
@@ -1,39 +1,39 @@
1
- import { t as e } from "./PkChatbotMessages-Dzc0kzyo.js";
1
+ import { t as e } from "./PkChatbotMessages-BGOyBww5.js";
2
2
  import { o as t } from "./Media-D-UGzdcW.js";
3
- import { a as n, n as r, t as i } from "./useChatbotStore-BlIWevWi.js";
3
+ import { a as n, n as r, t as i } from "./useChatbotStore-KjeThRAo.js";
4
4
  import { n as a } from "./src-BZRiAJsH.js";
5
- import { m as o, s } from "./utils-FkhB6Tl2.js";
5
+ import { m as o, s } from "./utils-Bf29zWlC.js";
6
6
  import { t as c } from "./useLocalizedString-PfaKjIQY.js";
7
7
  import { t as l } from "./PkAvatar-BTqu8tn9.js";
8
- import { n as u, t as d } from "./PkChatbotInput-CjE0vZAK.js";
9
- import { t as f } from "./PkChatbotEmptyState-DLg5tLl5.js";
8
+ import { n as u, t as d } from "./PkChatbotInput-BeXWvNLw.js";
9
+ import { t as f } from "./PkChatbotEmptyState-CcRoSIb7.js";
10
10
  import { t as p } from "./PkChatbotWakeupBar-Cjgarxnw.js";
11
11
  import { VvIcon as m } from "@volverjs/ui-vue/components";
12
- import { Fragment as h, Transition as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as ee, createTextVNode as te, createVNode as S, defineAsyncComponent as C, defineComponent as w, isRef as ne, nextTick as re, normalizeClass as T, onBeforeUnmount as ie, onMounted as ae, onScopeDispose as oe, onUnmounted as se, openBlock as E, ref as D, renderList as ce, shallowRef as le, toDisplayString as O, toValue as k, unref as A, useTemplateRef as ue, watch as j, withCtx as M } from "vue";
12
+ import { Fragment as h, Transition as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as ee, createTextVNode as te, createVNode as S, defineAsyncComponent as C, defineComponent as w, isRef as ne, nextTick as re, normalizeClass as T, onBeforeUnmount as E, onMounted as ie, onScopeDispose as ae, onUnmounted as oe, openBlock as D, ref as O, renderList as se, shallowRef as ce, toDisplayString as k, toValue as le, unref as A, useTemplateRef as ue, watch as j, withCtx as M } from "vue";
13
13
  import { useI18n as de } from "vue-i18n";
14
14
  import { useDropZone as fe } from "@vueuse/core";
15
15
  import { storeToRefs as pe } from "pinia";
16
16
  //#region ../../packages/composable/src/chatbot/useGreeting.ts
17
17
  function me(e, t) {
18
18
  let { locale: n, t: r, te: i } = de({ useScope: "global" });
19
- return _(() => he(k(e)?.greeting?.[0]?.[n.value] ?? "", k(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
19
+ return _(() => N(le(e)?.greeting?.[0]?.[n.value] ?? "", le(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
20
20
  }
21
- function he(e, t) {
21
+ function N(e, t) {
22
22
  return (t ? e.replace(/\{name\}/g, t) : e.replace(/[,\s]*\{name\}[!?]?/g, "")).trim();
23
23
  }
24
24
  //#endregion
25
25
  //#region ../../packages/components/src/chat/PkAuroraCanvas.vue?vue&type=script&setup=true&lang.ts
26
- var N = {
26
+ var he = {
27
27
  class: "pk-aurora",
28
28
  "aria-hidden": "true"
29
29
  }, P = {
30
30
  key: 1,
31
31
  class: "pk-aurora__fallback"
32
- }, ge = "\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}", _e = "\nprecision mediump float;\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform vec3 u_color;\nuniform vec2 u_center;\nuniform vec2 u_half;\nuniform float u_spread;\n\nvec3 permute(vec3 x) { return mod(((x * 34.0) + 1.0) * x, 289.0); }\n\nfloat snoise(vec2 v) {\n const vec4 C = vec4(0.211324865405187, 0.366025403784439,\n -0.577350269189626, 0.024390243902439);\n vec2 i = floor(v + dot(v, C.yy));\n vec2 x0 = v - i + dot(i, C.xx);\n vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n i = mod(i, 289.0);\n vec3 p = permute(permute(i.y + vec3(0.0, i1.y, 1.0))\n + i.x + vec3(0.0, i1.x, 1.0));\n vec3 m = max(0.5 - vec3(dot(x0, x0), dot(x12.xy, x12.xy),\n dot(x12.zw, x12.zw)), 0.0);\n m = m * m;\n m = m * m;\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n m *= 1.79284291400159 - 0.85373472095314 * (a0 * a0 + h * h);\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n}\n\nvoid main() {\n vec2 px = gl_FragCoord.xy;\n vec2 rel = px - u_center;\n\n // Ignition: the ellipse lights up expanding from the center on mount\n float intro = smoothstep(0.0, 1.4, u_time);\n\n // Breathing: size and brightness oscillate gently but visibly\n float breath = 1.0\n + 0.12 * sin(u_time * 0.55)\n + 0.06 * snoise(vec2(u_time * 0.1, 3.7));\n float pulse = 1.0 + 0.2 * sin(u_time * 0.55 + 1.3);\n\n // Keep it simple (Gemini-style): one huge soft elliptical glow\n // centered on the pill\n vec2 radii = vec2(u_half.x * 0.95, u_half.y * 6.5)\n * u_spread\n * breath\n * mix(0.15, 1.0, intro);\n float r = length(rel / max(radii, vec2(1.0)));\n float glow = exp(-r * r * 2.2);\n\n // Never cut hard against the canvas bounds\n vec2 m = min(px, u_resolution - px);\n glow *= smoothstep(0.0, 32.0, min(m.x, m.y));\n\n // Dither: breaks the 8-bit banding rings of the very soft gradient\n // (no CSS blur on the canvas, the noise must fully mask the bands)\n glow = max(glow + (snoise(px * 0.9) - 0.5) * 0.03, 0.0);\n\n float alpha = glow * 0.2 * pulse * intro;\n\n // Premultiplied alpha (default canvas compositing)\n gl_FragColor = vec4(u_color * alpha, alpha);\n}", ve = /* @__PURE__ */ w({
32
+ }, F = "\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}", ge = "\nprecision mediump float;\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform vec3 u_color;\nuniform vec2 u_center;\nuniform vec2 u_half;\nuniform float u_spread;\n\nvec3 permute(vec3 x) { return mod(((x * 34.0) + 1.0) * x, 289.0); }\n\nfloat snoise(vec2 v) {\n const vec4 C = vec4(0.211324865405187, 0.366025403784439,\n -0.577350269189626, 0.024390243902439);\n vec2 i = floor(v + dot(v, C.yy));\n vec2 x0 = v - i + dot(i, C.xx);\n vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n i = mod(i, 289.0);\n vec3 p = permute(permute(i.y + vec3(0.0, i1.y, 1.0))\n + i.x + vec3(0.0, i1.x, 1.0));\n vec3 m = max(0.5 - vec3(dot(x0, x0), dot(x12.xy, x12.xy),\n dot(x12.zw, x12.zw)), 0.0);\n m = m * m;\n m = m * m;\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n m *= 1.79284291400159 - 0.85373472095314 * (a0 * a0 + h * h);\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n}\n\nvoid main() {\n vec2 px = gl_FragCoord.xy;\n vec2 rel = px - u_center;\n\n // Ignition: the ellipse lights up expanding from the center on mount\n float intro = smoothstep(0.0, 1.4, u_time);\n\n // Breathing: size and brightness oscillate gently but visibly\n float breath = 1.0\n + 0.12 * sin(u_time * 0.55)\n + 0.06 * snoise(vec2(u_time * 0.1, 3.7));\n float pulse = 1.0 + 0.2 * sin(u_time * 0.55 + 1.3);\n\n // Keep it simple (Gemini-style): one huge soft elliptical glow\n // centered on the pill\n vec2 radii = vec2(u_half.x * 0.95, u_half.y * 6.5)\n * u_spread\n * breath\n * mix(0.15, 1.0, intro);\n float r = length(rel / max(radii, vec2(1.0)));\n float glow = exp(-r * r * 2.2);\n\n // Never cut hard against the canvas bounds\n vec2 m = min(px, u_resolution - px);\n glow *= smoothstep(0.0, 32.0, min(m.x, m.y));\n\n // Dither: breaks the 8-bit banding rings of the very soft gradient\n // (no CSS blur on the canvas, the noise must fully mask the bands)\n glow = max(glow + (snoise(px * 0.9) - 0.5) * 0.03, 0.0);\n\n float alpha = glow * 0.2 * pulse * intro;\n\n // Premultiplied alpha (default canvas compositing)\n gl_FragColor = vec4(u_color * alpha, alpha);\n}", _e = /* @__PURE__ */ w({
33
33
  __name: "PkAuroraCanvas",
34
34
  props: { sourceSelector: {} },
35
35
  setup(e) {
36
- let t = e, n = ue("canvasEl"), r = D(!1), i = null, a = 0, o = null, s = null, c = null, l = null, u = null, d = null, f = performance.now(), p = (e, t) => {
36
+ let t = e, n = ue("canvasEl"), r = O(!1), i = null, a = 0, o = null, s = null, c = null, l = null, u = null, d = null, f = performance.now(), p = (e, t) => {
37
37
  if (!i) return null;
38
38
  let n = i.createShader(e);
39
39
  return !n || (i.shaderSource(n, t), i.compileShader(n), !i.getShaderParameter(n, i.COMPILE_STATUS)) ? null : n;
@@ -62,7 +62,7 @@ var N = {
62
62
  }, v = () => {
63
63
  _(), a = requestAnimationFrame(v);
64
64
  };
65
- return ae(() => {
65
+ return ie(() => {
66
66
  let e = n.value;
67
67
  i = e?.getContext("webgl", { alpha: !0 }) ?? null;
68
68
  let t = m();
@@ -70,7 +70,7 @@ var N = {
70
70
  r.value = !0;
71
71
  return;
72
72
  }
73
- let a = p(i.VERTEX_SHADER, ge), f = p(i.FRAGMENT_SHADER, _e), y = i.createProgram();
73
+ let a = p(i.VERTEX_SHADER, F), f = p(i.FRAGMENT_SHADER, ge), y = i.createProgram();
74
74
  if (!a || !f || !y || (i.attachShader(y, a), i.attachShader(y, f), i.linkProgram(y), !i.getProgramParameter(y, i.LINK_STATUS))) {
75
75
  r.value = !0;
76
76
  return;
@@ -89,21 +89,21 @@ var N = {
89
89
  ]), i.STATIC_DRAW);
90
90
  let x = i.getAttribLocation(y, "a_position");
91
91
  i.enableVertexAttribArray(x), i.vertexAttribPointer(x, 2, i.FLOAT, !1, 0, 0), s = i.getUniformLocation(y, "u_time"), c = i.getUniformLocation(y, "u_resolution"), l = i.getUniformLocation(y, "u_center"), u = i.getUniformLocation(y, "u_half"), d = i.getUniformLocation(y, "u_spread"), i.uniform3f(i.getUniformLocation(y, "u_color"), ...t), o = new ResizeObserver(h), o.observe(e), h(), re(h), g() ? _(10) : v();
92
- }), ie(() => {
92
+ }), E(() => {
93
93
  cancelAnimationFrame(a), o?.disconnect();
94
- }), se(() => {
94
+ }), oe(() => {
95
95
  let e = i;
96
96
  i = null, setTimeout(() => {
97
97
  e?.getExtension("WEBGL_lose_context")?.loseContext();
98
98
  }, 150);
99
- }), (e, t) => (E(), b("div", N, [r.value ? (E(), b("div", P)) : (E(), b("canvas", {
99
+ }), (e, t) => (D(), b("div", he, [r.value ? (D(), b("div", P)) : (D(), b("canvas", {
100
100
  key: 0,
101
101
  ref_key: "canvasEl",
102
102
  ref: n,
103
103
  class: "pk-aurora__canvas"
104
104
  }, null, 512))]));
105
105
  }
106
- }), F = .18, ye = .35, be = /* @__PURE__ */ w({
106
+ }), I = .18, ve = .35, ye = /* @__PURE__ */ w({
107
107
  __name: "PkVoiceOrb",
108
108
  props: {
109
109
  sample: {},
@@ -115,20 +115,20 @@ var N = {
115
115
  bars: { default: 5 }
116
116
  },
117
117
  setup(e) {
118
- let t = e, n = ue("barsEl"), r = Array.from({ length: t.bars }, () => F), i, a = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === !0, o = () => {
118
+ let t = e, n = ue("barsEl"), r = Array.from({ length: t.bars }, () => I), i, a = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === !0, o = () => {
119
119
  let e = Math.min(1, Math.max(0, t.sample())), n = t.spectrum?.(), i = r.length;
120
120
  if (!n?.length) {
121
121
  let t = Date.now() / 260;
122
122
  return Array.from({ length: i }, (n, r) => {
123
123
  let i = .65 + .35 * Math.sin(t + r * .9);
124
- return F + e * 2.4 * i;
124
+ return I + e * 2.4 * i;
125
125
  });
126
126
  }
127
127
  let a = Math.max(1, Math.floor(n.length / 2)), o = Math.max(1, Math.floor(a / i));
128
128
  return Array.from({ length: i }, (e, t) => {
129
129
  let r = 0;
130
130
  for (let e = 0; e < o; e += 1) r += n[t * o + e] ?? 0;
131
- return F + r / o / 255 * 2.2;
131
+ return I + r / o / 255 * 2.2;
132
132
  });
133
133
  }, s = () => {
134
134
  let e = n.value?.children;
@@ -137,32 +137,32 @@ var N = {
137
137
  });
138
138
  }, c = () => {
139
139
  let e = o();
140
- r = r.map((t, n) => t + (Math.min(1, Math.max(F, e[n] ?? F)) - t) * ye), s(), i = requestAnimationFrame(c);
140
+ r = r.map((t, n) => t + (Math.min(1, Math.max(I, e[n] ?? I)) - t) * ve), s(), i = requestAnimationFrame(c);
141
141
  }, l = () => {
142
142
  i !== void 0 && (cancelAnimationFrame(i), i = void 0);
143
143
  };
144
144
  return j(() => t.state, async (e) => {
145
- e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => F * 1.6), await re(), s()) : i === void 0 && (i = requestAnimationFrame(c));
146
- }, { immediate: !0 }), ie(l), (t, r) => (E(), b("div", {
145
+ e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => I * 1.6), await re(), s()) : i === void 0 && (i = requestAnimationFrame(c));
146
+ }, { immediate: !0 }), E(l), (t, r) => (D(), b("div", {
147
147
  class: T(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
148
148
  "aria-hidden": "true"
149
149
  }, [x("div", {
150
150
  ref_key: "barsEl",
151
151
  ref: n,
152
152
  class: "pk-voice-orb__bars"
153
- }, [(E(!0), b(h, null, ce(e.bars, (e) => (E(), b("span", {
153
+ }, [(D(!0), b(h, null, se(e.bars, (e) => (D(), b("span", {
154
154
  key: e,
155
155
  class: "pk-voice-orb__bar"
156
156
  }))), 128))], 512)], 2));
157
157
  }
158
- }), I = {
158
+ }), be = {
159
159
  key: 0,
160
160
  class: "pk-voice-session__badge",
161
161
  "aria-hidden": "true"
162
- }, L = {
162
+ }, xe = {
163
163
  class: "pk-voice-session__status",
164
164
  role: "status"
165
- }, xe = {
165
+ }, L = {
166
166
  key: 0,
167
167
  class: "pk-voice-session__live-dot",
168
168
  "aria-hidden": "true"
@@ -194,8 +194,8 @@ var N = {
194
194
  });
195
195
  return (t, n) => {
196
196
  let d = m;
197
- return E(), b("div", { class: T(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
198
- e.error ? (E(), b("span", I, [S(d, { name: "ri:error-warning-line" })])) : (E(), v(be, {
197
+ return D(), b("div", { class: T(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
198
+ e.error ? (D(), b("span", be, [S(d, { name: "ri:error-warning-line" })])) : (D(), v(ye, {
199
199
  key: 1,
200
200
  state: e.state,
201
201
  sample: e.sample,
@@ -205,34 +205,34 @@ var N = {
205
205
  "sample",
206
206
  "spectrum"
207
207
  ])),
208
- x("div", L, [x("span", { class: T(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (E(), b("span", xe)) : y("", !0), te(" " + O(a.value), 1)], 2), e.error ? (E(), b("p", {
208
+ x("div", xe, [x("span", { class: T(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (D(), b("span", L)) : y("", !0), te(" " + k(a.value), 1)], 2), e.error ? (D(), b("p", {
209
209
  key: 0,
210
210
  class: "pk-voice-session__detail",
211
211
  title: e.rawError ?? e.error
212
- }, O(e.error), 9, Se)) : y("", !0)]),
213
- o.value ? (E(), b("span", {
212
+ }, k(e.error), 9, Se)) : y("", !0)]),
213
+ o.value ? (D(), b("span", {
214
214
  key: 2,
215
215
  class: T(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
216
216
  title: A(i)("hint.voiceRemaining"),
217
217
  "aria-hidden": "true"
218
- }, O(o.value), 11, Ce)) : y("", !0),
219
- x("div", we, [e.error ? (E(), b(h, { key: 0 }, [S(u, {
218
+ }, k(o.value), 11, Ce)) : y("", !0),
219
+ x("div", we, [e.error ? (D(), b(h, { key: 0 }, [S(u, {
220
220
  icon: "ri:refresh-line",
221
221
  label: A(i)("action.retry"),
222
222
  onClick: n[0] ||= (e) => r("retry")
223
- }, null, 8, ["label"]), e.live ? (E(), v(u, {
223
+ }, null, 8, ["label"]), e.live ? (D(), v(u, {
224
224
  key: 0,
225
225
  icon: "ri:stop-circle-line",
226
226
  modifiers: "danger",
227
227
  title: A(i)("action.hangUp"),
228
228
  "aria-label": A(i)("action.hangUp"),
229
229
  onClick: n[1] ||= (e) => r("hang-up")
230
- }, null, 8, ["title", "aria-label"])) : (E(), v(u, {
230
+ }, null, 8, ["title", "aria-label"])) : (D(), v(u, {
231
231
  key: 1,
232
232
  icon: "ri:close-line",
233
233
  label: A(i)("action.close"),
234
234
  onClick: n[2] ||= (e) => r("dismiss")
235
- }, null, 8, ["label"]))], 64)) : (E(), b(h, { key: 1 }, [S(u, {
235
+ }, null, 8, ["label"]))], 64)) : (D(), b(h, { key: 1 }, [S(u, {
236
236
  icon: e.muted ? "ri:mic-off-line" : "ri:mic-line",
237
237
  title: e.muted ? A(i)("action.unmute") : A(i)("action.mute"),
238
238
  "aria-label": e.muted ? A(i)("action.unmute") : A(i)("action.mute"),
@@ -254,7 +254,7 @@ var N = {
254
254
  };
255
255
  }
256
256
  }), Ee = (e) => {
257
- let t = le(), n = D("disconnected"), r = D("listening"), i = D(), o = D([]), s = D(), c = D(), l, u, d = 0, f = !1, p = () => {
257
+ let t = ce(), n = O("disconnected"), r = O("listening"), i = O(), o = O([]), s = O(), c = O(), l, u, d = 0, f = !1, p = () => {
258
258
  u &&= (clearInterval(u), void 0), s.value = void 0;
259
259
  }, m = (e) => {
260
260
  let t = Date.now() + e * 1e3, n = () => {
@@ -356,7 +356,7 @@ var N = {
356
356
  let r = t.value;
357
357
  t.value = void 0, r?.endSession().catch(() => void 0), n.value = "disconnected";
358
358
  };
359
- return typeof window < "u" && window.addEventListener("pagehide", S), oe(() => {
359
+ return typeof window < "u" && window.addEventListener("pagehide", S), ae(() => {
360
360
  f = !0, typeof window < "u" && window.removeEventListener("pagehide", S), g();
361
361
  }), {
362
362
  status: n,
@@ -383,7 +383,7 @@ var N = {
383
383
  1e4
384
384
  ], ke = 12e4, Ae = 3e4;
385
385
  function je(e) {
386
- let t = D(null), n = D(!1), r, i = !1, a = () => {
386
+ let t = O(null), n = O(!1), r, i = !1, a = () => {
387
387
  clearTimeout(r), r = void 0;
388
388
  }, o = (e, t) => {
389
389
  a(), i || (r = setTimeout(() => void t(), e));
@@ -426,7 +426,7 @@ function je(e) {
426
426
  let m = () => p();
427
427
  return document.addEventListener("visibilitychange", m), j(() => t.value?.wakeId, (e) => {
428
428
  clearInterval(f), f = void 0, e && !i && (p(), f = setInterval(p, Ae));
429
- }), ie(() => {
429
+ }), E(() => {
430
430
  i = !0, a(), clearInterval(f), document.removeEventListener("visibilitychange", m);
431
431
  }), {
432
432
  pendingWakeup: t,
@@ -447,7 +447,7 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
447
447
  }, Ie = {
448
448
  key: 0,
449
449
  class: "pk-chatbot-view-chat__drop-overlay"
450
- }, Le = 3e3, Re = 6e4, ze = 3e5, Be = 6e5, R = /* @__PURE__ */ w({
450
+ }, Le = 3e3, Re = 6e4, ze = 3e5, Be = 6e5, Ve = /* @__PURE__ */ w({
451
451
  __name: "PkChatbotViewChat",
452
452
  props: {
453
453
  agentId: {},
@@ -456,38 +456,38 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
456
456
  },
457
457
  emits: ["show-info", "revise"],
458
458
  setup(a, { emit: u }) {
459
- let h = C(() => import("./PkToolShowForm-b5m2ahty.js").then((e) => e.n)), te = C(() => import("./PkToolShowContactForm-D82n3tZ4.js").then((e) => e.n)), w = C(() => import("./PkToolShowSuggestedReply-Dl2VLfJk.js").then((e) => e.n)), re = C(() => import("./PkToolShowSources-B-r0dOgi.js").then((e) => e.n)), ae = C(() => import("./PkToolRequestGeolocation-D0FIRJk2.js")), oe = C(() => import("./PkToolRequestOAuthConnection-DFlZkvLP.js")), se = C(() => import("./PkToolShowLocation-BipZrvw7.js").then((e) => e.n)), ce = C(() => import("./PkToolShowDiagram-BlIarn5u.js")), le = C(() => import("./PkToolEditSpreadsheet-B_Ge2pGx.js")), k = a, he = u, N = r(k.agentId), { agentInterface: P, agentFileUpload: ge, agentType: _e, agentVoice: F, actions: ye, revisedAnswers: be, messages: I, chat: L, messageFeedbacks: xe, feedbackDialogMessage: Se, isFeedbackSubmitting: Ce, isFeedbackSubmitted: we, feedbackSubmitError: De, isLeadSubmitted: Oe, isLoadingSubmitLead: ke, submitLeadError: Ae, input: R, inputMessagePlaceholder: Ve, isConversationBlocked: He, baseUrl: Ue, pendingAttachments: We, isAttachmentLimitReached: Ge, fileLimitError: Ke, apiClient: z, isDark: qe, hostToolsPending: Je, pageNoticeLevel: Ye, hostConfirmation: Xe, agentPageAccess: Ze } = pe(N), B = _(() => _e.value === "reasoning" ? void 0 : ge.value), Qe = (e) => z.value.getMediaDownloadUrl(k.agentId, N.localChatId, e), { handleSubmit: $e, stopGeneration: et, regenerate: tt, onUpvote: nt, onDownvote: rt, onFeedback: it, onFeedbackSubmit: at, onLeadSubmit: ot, startNewChat: st, addToolOutput: V, addToolApprovalResponse: ct, handleFileSelect: lt, clearFileLimitError: ut, refreshMessages: dt, appendMessage: ft, closePageNotice: pt, respondHostConfirmation: mt } = N, { t: H } = de({ useScope: "global" }), ht = _(() => Je.value > 0), gt = _(() => ht.value && L.value.status === "ready" ? "streaming" : L.value.status), _t = c(() => Ze.value?.notice), vt = _(() => Ye.value ? _t.value || H(`message.pageAccessNotice.${Ye.value}`) : void 0), yt = _(() => {
460
- let e = Ke.value;
459
+ let h = C(() => import("./PkToolShowForm-BnM1fsi4.js").then((e) => e.n)), te = C(() => import("./PkToolShowContactForm-CWpQaNOh.js").then((e) => e.n)), w = C(() => import("./PkToolShowSuggestedReply-JTMiOpHZ.js").then((e) => e.n)), re = C(() => import("./PkToolShowSources-E7BcGvof.js").then((e) => e.n)), ie = C(() => import("./PkToolRequestGeolocation-DvO0z7sQ.js")), ae = C(() => import("./PkToolRequestOAuthConnection-CTqtzwJm.js")), oe = C(() => import("./PkToolShowLocation-BipZrvw7.js").then((e) => e.n)), se = C(() => import("./PkToolShowDiagram-DElkZZVV.js")), ce = C(() => import("./PkToolEditSpreadsheet-CfNQMSWR.js")), le = C(() => import("./PkToolShareDocument-C8sPmh0k.js").then((e) => e.n)), N = a, he = u, P = r(N.agentId), { agentInterface: F, agentFileUpload: ge, agentType: I, agentVoice: ve, actions: ye, revisedAnswers: be, messages: xe, chat: L, messageFeedbacks: Se, feedbackDialogMessage: Ce, isFeedbackSubmitting: we, isFeedbackSubmitted: De, feedbackSubmitError: Oe, isLeadSubmitted: ke, isLoadingSubmitLead: Ae, submitLeadError: Ve, input: R, inputMessagePlaceholder: He, isConversationBlocked: Ue, baseUrl: We, pendingAttachments: Ge, isAttachmentLimitReached: Ke, fileLimitError: qe, apiClient: z, isDark: Je, hostToolsPending: Ye, pageNoticeLevel: Xe, hostConfirmation: Ze, agentPageAccess: Qe } = pe(P), B = _(() => I.value === "reasoning" ? void 0 : ge.value), $e = (e) => z.value.getMediaDownloadUrl(N.agentId, P.localChatId, e), { handleSubmit: et, stopGeneration: tt, regenerate: nt, onUpvote: rt, onDownvote: it, onFeedback: at, onFeedbackSubmit: ot, onLeadSubmit: st, startNewChat: ct, addToolOutput: V, addToolApprovalResponse: lt, handleFileSelect: ut, clearFileLimitError: dt, refreshMessages: ft, appendMessage: pt, closePageNotice: mt, respondHostConfirmation: ht } = P, { t: H } = de({ useScope: "global" }), gt = _(() => Ye.value > 0), _t = _(() => gt.value && L.value.status === "ready" ? "streaming" : L.value.status), vt = c(() => Qe.value?.notice), yt = _(() => Xe.value ? vt.value || H(`message.pageAccessNotice.${Xe.value}`) : void 0), bt = _(() => {
460
+ let e = qe.value;
461
461
  if (e) return e.reason === "per-chat" ? H("message.fileLimitPerChat", { max: e.max }) : H("message.fileLimitPerMessage", { max: e.max });
462
- }), bt = c(() => P.value?.dismissableNotice), xt = _(() => I.value.some((e) => e.role === "user")), St = _(() => k.modifier === "fullscreen" && !xt.value), Ct = me(P, () => k.userName), wt = ue("chatViewEl"), Tt = async (e) => (await z.value.expandSourceContext(k.agentId, e.documentId, e.chunkIndex)).content, Et = async (e) => {
463
- let t = await z.value.downloadSourceDocument(k.agentId, e);
462
+ }), xt = c(() => F.value?.dismissableNotice), St = _(() => xe.value.some((e) => e.role === "user")), Ct = _(() => N.modifier === "fullscreen" && !St.value), wt = me(F, () => N.userName), Tt = ue("chatViewEl"), Et = async (e) => (await z.value.expandSourceContext(N.agentId, e.documentId, e.chunkIndex)).content, Dt = async (e) => {
463
+ let t = await z.value.downloadSourceDocument(N.agentId, e);
464
464
  window.open(t.downloadUrl, "_blank");
465
- }, { isOverDropZone: Dt } = fe(wt, {
465
+ }, { isOverDropZone: Ot } = fe(Tt, {
466
466
  dataTypes: (e) => t(e, B.value?.allowedMimeTypes ?? []),
467
467
  onDrop: (e) => {
468
- if (B.value?.enabled && e) for (let t of e) lt(t);
468
+ if (B.value?.enabled && e) for (let t of e) ut(t);
469
469
  }
470
- }), U = D(!1), W = !1, G = D(!1), Ot = [
470
+ }), U = O(!1), W = !1, G = O(!1), kt = [
471
471
  3e3,
472
472
  5e3,
473
473
  1e4
474
- ], K, q, J = !1, Y = 0, kt = !1;
475
- function At() {
474
+ ], K, q, J = !1, Y = 0, At = !1;
475
+ function jt() {
476
476
  clearTimeout(K), K = void 0, q = void 0, J = !1, Y = 0, G.value = !1;
477
477
  }
478
478
  function X(e) {
479
479
  W || (clearTimeout(K), K = setTimeout(() => {
480
- jt();
480
+ Mt();
481
481
  }, e));
482
482
  }
483
- async function jt() {
484
- if (W || kt) return;
485
- kt = !0;
483
+ async function Mt() {
484
+ if (W || At) return;
485
+ At = !0;
486
486
  let e;
487
487
  try {
488
- e = await dt();
488
+ e = await ft();
489
489
  } finally {
490
- kt = !1;
490
+ At = !1;
491
491
  }
492
492
  if (W) return;
493
493
  if (e === "caught-up" && (G.value = !1), Z.isActive.value) {
@@ -497,25 +497,25 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
497
497
  q === void 0 && (q = Date.now(), J = !!Z.error.value);
498
498
  let t = Date.now() - q;
499
499
  if (e === "caught-up" && t >= (J ? ze : Re) || t >= Be) {
500
- At();
500
+ jt();
501
501
  return;
502
502
  }
503
- let n = Ot[Math.min(Y, Ot.length - 1)];
503
+ let n = kt[Math.min(Y, kt.length - 1)];
504
504
  Y += 1, X(n);
505
505
  }
506
- let Mt = (e = 1200) => {
506
+ let Nt = (e = 1200) => {
507
507
  X(e);
508
508
  }, Z = Ee({
509
509
  fetchGrant: async () => {
510
- let e = await z.value.createVoiceSession(k.agentId, N.localChatId, {
511
- deviceContext: N.buildDeviceContext(),
512
- externalContext: N.externalContext
510
+ let e = await z.value.createVoiceSession(N.agentId, P.localChatId, {
511
+ deviceContext: P.buildDeviceContext(),
512
+ externalContext: P.externalContext
513
513
  });
514
- return e.chatId !== N.localChatId && (N.localChatId = e.chatId), e;
514
+ return e.chatId !== P.localChatId && (P.localChatId = e.chatId), e;
515
515
  },
516
- closeGrant: (e) => z.value.closeVoiceSession(k.agentId, e),
516
+ closeGrant: (e) => z.value.closeVoiceSession(N.agentId, e),
517
517
  onTranscript: (e) => {
518
- e.role === "user" ? (G.value = !0, ft({
518
+ e.role === "user" ? (G.value = !0, pt({
519
519
  id: `${i}user-${n()}`,
520
520
  role: "user",
521
521
  parts: [{
@@ -525,46 +525,46 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
525
525
  })) : G.value = !1;
526
526
  },
527
527
  onTurnEnd: () => {
528
- Mt();
528
+ Nt();
529
529
  }
530
530
  });
531
531
  j(() => Z.error.value, (e) => {
532
532
  e && (G.value = !1);
533
533
  });
534
- let Nt = _(() => F.value?.enabled === !0), Pt = _(() => Z.error.value ? "error" : Z.isConnecting.value ? "connecting" : Z.isSpeaking.value ? "speaking" : Z.isActive.value ? "listening" : "idle"), Ft = _(() => {
534
+ let Pt = _(() => ve.value?.enabled === !0), Ft = _(() => Z.error.value ? "error" : Z.isConnecting.value ? "connecting" : Z.isSpeaking.value ? "speaking" : Z.isActive.value ? "listening" : "idle"), It = _(() => {
535
535
  let e = Z.error.value;
536
536
  if (e) return /took too long/i.test(e) ? H("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? H("message.voiceNoAnswer") : H("message.voiceInterrupted");
537
- }), It = _(() => Z.isSpeaking.value ? "output" : "input"), Lt = () => Z.readLevel(It.value), Rt = () => Z.readSpectrum(It.value), zt = async () => {
538
- U.value = !1, await Z.start(), Z.isActive.value && (At(), X(Le));
539
- }, Bt = async () => {
540
- G.value = !1, await Z.stop(), !W && Mt(0);
541
- }, Vt = () => {
537
+ }), Lt = _(() => Z.isSpeaking.value ? "output" : "input"), Rt = () => Z.readLevel(Lt.value), zt = () => Z.readSpectrum(Lt.value), Bt = async () => {
538
+ U.value = !1, await Z.start(), Z.isActive.value && (jt(), X(Le));
539
+ }, Vt = async () => {
540
+ G.value = !1, await Z.stop(), !W && Nt(0);
541
+ }, Ht = () => {
542
542
  Z.dismissError();
543
- }, Ht = async () => {
544
- Z.dismissError(), await Z.stop(), await zt();
545
- }, Q = (e) => e?.toolCallId ?? "", Ut = D(/* @__PURE__ */ new Set()), Wt = (e) => Ut.value.has(Q(e)), Gt = D(/* @__PURE__ */ new Map()), $ = (e, t) => Z.isActive.value ? (Z.sendUserMessage(t) && (Ut.value = new Set(Ut.value).add(Q(e)), Mt()), !0) : !1, Kt = (e, t, n) => {
543
+ }, Ut = async () => {
544
+ Z.dismissError(), await Z.stop(), await Bt();
545
+ }, Q = (e) => e?.toolCallId ?? "", Wt = O(/* @__PURE__ */ new Set()), Gt = (e) => Wt.value.has(Q(e)), Kt = O(/* @__PURE__ */ new Map()), $ = (e, t) => Z.isActive.value ? (Z.sendUserMessage(t) && (Wt.value = new Set(Wt.value).add(Q(e)), Nt()), !0) : !1, qt = (e, t, n) => {
546
546
  $(t, s(t, n)) || V({
547
547
  tool: e,
548
548
  toolCallId: Q(t),
549
549
  output: n
550
550
  });
551
- }, qt = (e) => {
551
+ }, Jt = (e) => {
552
552
  let t = e.confirmed ? H("message.voiceConfirmed") : H("message.voiceCancelled");
553
- $({ toolCallId: e.toolCallId }, t) ? Ut.value.has(e.toolCallId) && (Gt.value = new Map(Gt.value).set(e.toolCallId, e.confirmed)) : V({
553
+ $({ toolCallId: e.toolCallId }, t) ? Wt.value.has(e.toolCallId) && (Kt.value = new Map(Kt.value).set(e.toolCallId, e.confirmed)) : V({
554
554
  tool: "requestConfirm",
555
555
  toolCallId: e.toolCallId,
556
556
  output: e.confirmed ? "confirmed" : "cancelled"
557
557
  });
558
- }, Jt = (e, t) => {
559
- $(e, t) || (R.value = t, $e());
560
558
  }, Yt = (e, t) => {
559
+ $(e, t) || (R.value = t, et());
560
+ }, Xt = (e, t) => {
561
561
  let n = t.error ? H("message.voiceLocationRefused") : H("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
562
562
  $(e, n) || V({
563
563
  tool: "requestGeolocation",
564
564
  toolCallId: Q(e),
565
565
  output: t
566
566
  });
567
- }, Xt = (e, t) => {
567
+ }, Zt = (e, t) => {
568
568
  $(e, H("message.voiceConnectionDone")) || V({
569
569
  tool: "requestOAuthConnection",
570
570
  toolCallId: Q(e),
@@ -573,91 +573,91 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
573
573
  mcpServerId: t
574
574
  }
575
575
  });
576
- }, Zt = () => {
576
+ }, Qt = () => {
577
577
  U.value = !U.value, Z.setMuted(U.value);
578
578
  };
579
- ie(() => {
580
- W = !0, At();
579
+ E(() => {
580
+ W = !0, jt();
581
581
  });
582
- let { pendingWakeup: Qt, isStopping: $t, check: en, reset: tn, stop: nn } = je({
583
- agentId: () => k.agentId,
584
- chatId: () => N.localChatId,
582
+ let { pendingWakeup: $t, isStopping: en, check: tn, reset: nn, stop: rn } = je({
583
+ agentId: () => N.agentId,
584
+ chatId: () => P.localChatId,
585
585
  apiClient: () => z.value,
586
- messages: () => I.value,
587
- refreshMessages: dt
586
+ messages: () => xe.value,
587
+ refreshMessages: ft
588
588
  });
589
- return j([() => N.localChatId, xt], ([, e]) => {
590
- tn(), e && en();
589
+ return j([() => P.localChatId, St], ([, e]) => {
590
+ nn(), e && tn();
591
591
  }, { immediate: !0 }), j(() => L.value.status, (e, t) => {
592
- e === "ready" && t !== "ready" && xt.value && en();
592
+ e === "ready" && t !== "ready" && St.value && tn();
593
593
  }), (t, n) => {
594
594
  let r = m;
595
- return E(), b("div", {
595
+ return D(), b("div", {
596
596
  ref_key: "chatViewEl",
597
- ref: wt,
597
+ ref: Tt,
598
598
  class: T(["pk-chatbot-view-chat", {
599
- "pk-chatbot-view-chat--dragover": A(Dt) && B.value?.enabled,
600
- "pk-chatbot-view-chat--empty": St.value
599
+ "pk-chatbot-view-chat--dragover": A(Ot) && B.value?.enabled,
600
+ "pk-chatbot-view-chat--empty": Ct.value
601
601
  }])
602
602
  }, [
603
603
  S(g, {
604
604
  name: "pk-chatbot-view-chat-fade",
605
605
  mode: "out-in"
606
606
  }, {
607
- default: M(() => [St.value ? (E(), v(f, {
607
+ default: M(() => [Ct.value ? (D(), v(f, {
608
608
  key: 0,
609
- greeting: A(Ct),
610
- logo: A(P)?.logo,
611
- name: A(N).name
609
+ greeting: A(wt),
610
+ logo: A(F)?.logo,
611
+ name: A(P).name
612
612
  }, null, 8, [
613
613
  "greeting",
614
614
  "logo",
615
615
  "name"
616
- ])) : (E(), v(e, {
616
+ ])) : (D(), v(e, {
617
617
  key: 1,
618
618
  class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
619
619
  interactive: "",
620
- messages: A(I),
621
- "confirm-verdicts-on-call": Gt.value,
620
+ messages: A(xe),
621
+ "confirm-verdicts-on-call": Kt.value,
622
622
  status: A(L).status,
623
623
  error: A(L).error,
624
- "main-color": A(P)?.mainColor,
625
- "text-color": A(P)?.textColor,
624
+ "main-color": A(F)?.mainColor,
625
+ "text-color": A(F)?.textColor,
626
626
  "revised-answers": A(be),
627
627
  actions: A(ye),
628
- "message-feedbacks": A(xe),
629
- "feedback-message-id": A(Se)?.id,
630
- "feedback-loading": A(Ce),
631
- "feedback-submitted": A(we),
632
- "feedback-error": A(De),
633
- "show-extended-steps": A(P)?.showExtendedSteps,
628
+ "message-feedbacks": A(Se),
629
+ "feedback-message-id": A(Ce)?.id,
630
+ "feedback-loading": A(we),
631
+ "feedback-submitted": A(De),
632
+ "feedback-error": A(Oe),
633
+ "show-extended-steps": A(F)?.showExtendedSteps,
634
634
  "awaiting-spoken-answer": G.value,
635
- "host-working": ht.value,
636
- "host-confirmation": A(Xe),
637
- "is-dark": A(qe),
635
+ "host-working": gt.value,
636
+ "host-confirmation": A(Ze),
637
+ "is-dark": A(Je),
638
638
  "show-scroll-to-bottom": a.modifier === "fullscreen",
639
- onFeedbackSubmit: n[0] ||= (e) => A(at)(e),
640
- onFeedbackClose: n[1] ||= (e) => Se.value = void 0,
641
- onRegenerate: A(tt),
642
- onAutoRetry: A(tt),
643
- onResetChat: A(st),
639
+ onFeedbackSubmit: n[0] ||= (e) => A(ot)(e),
640
+ onFeedbackClose: n[1] ||= (e) => Ce.value = void 0,
641
+ onRegenerate: A(nt),
642
+ onAutoRetry: A(nt),
643
+ onResetChat: A(ct),
644
644
  onShowInfo: n[2] ||= (e) => he("show-info", e),
645
645
  onRevise: n[3] ||= (e) => he("revise", e),
646
- onUpvote: A(nt),
647
- onDownvote: A(rt),
648
- onFeedback: A(it),
649
- onApprovalRespond: A(ct),
650
- onConfirmRespond: qt,
651
- onHostConfirmRespond: A(mt)
646
+ onUpvote: A(rt),
647
+ onDownvote: A(it),
648
+ onFeedback: A(at),
649
+ onApprovalRespond: A(lt),
650
+ onConfirmRespond: Jt,
651
+ onHostConfirmRespond: A(ht)
652
652
  }, {
653
653
  "tool-showContactForm": M(({ part: e }) => [S(A(te), {
654
654
  part: e,
655
- readonly: !A(Ue),
656
- submitted: A(Oe),
657
- loading: A(ke),
658
- error: A(Ae),
659
- "privacy-policy-notice": A(P)?.privacyPolicyNotice,
660
- onSubmit: A(ot)
655
+ readonly: !A(We),
656
+ submitted: A(ke),
657
+ loading: A(Ae),
658
+ error: A(Ve),
659
+ "privacy-policy-notice": A(F)?.privacyPolicyNotice,
660
+ onSubmit: A(st)
661
661
  }, null, 8, [
662
662
  "part",
663
663
  "readonly",
@@ -669,18 +669,18 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
669
669
  ])]),
670
670
  "tool-showSuggestedReply": M(({ part: e }) => [S(A(w), {
671
671
  part: e,
672
- onSelect: (t) => Jt(e, t)
672
+ onSelect: (t) => Yt(e, t)
673
673
  }, null, 8, ["part", "onSelect"])]),
674
674
  "tool-showSources": M(({ part: e }) => [S(A(re), {
675
675
  part: e,
676
- "on-expand-context": Tt,
677
- "on-download": Et
676
+ "on-expand-context": Et,
677
+ "on-download": Dt
678
678
  }, null, 8, ["part"])]),
679
679
  "tool-showForm": M(({ part: e }) => [S(g, { mode: "out-in" }, {
680
680
  default: M(() => [S(A(h), {
681
681
  part: e,
682
- answered: Wt(e),
683
- onSelect: (t) => Kt("showForm", e, t)
682
+ answered: Gt(e),
683
+ onSelect: (t) => qt("showForm", e, t)
684
684
  }, null, 8, [
685
685
  "part",
686
686
  "answered",
@@ -692,8 +692,8 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
692
692
  default: M(() => [S(A(h), {
693
693
  part: e,
694
694
  "allow-custom-answer": "",
695
- answered: Wt(e),
696
- onSelect: (t) => Kt("showMultipleChoice", e, t)
695
+ answered: Gt(e),
696
+ onSelect: (t) => qt("showMultipleChoice", e, t)
697
697
  }, null, 8, [
698
698
  "part",
699
699
  "answered",
@@ -701,12 +701,12 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
701
701
  ])]),
702
702
  _: 2
703
703
  }, 1024)]),
704
- "tool-requestOAuthConnection": M(({ part: e }) => [S(A(oe), {
704
+ "tool-requestOAuthConnection": M(({ part: e }) => [S(A(ae), {
705
705
  part: e,
706
- "backend-url": A(Ue),
707
- "resolve-connection": (e) => A(z).getOAuthAuthorizeUrl(k.agentId, e),
708
- "check-connection": (e) => A(z).getOAuthConnectionStatus(k.agentId, e),
709
- onConnected: (t) => Xt(e, t)
706
+ "backend-url": A(We),
707
+ "resolve-connection": (e) => A(z).getOAuthAuthorizeUrl(N.agentId, e),
708
+ "check-connection": (e) => A(z).getOAuthConnectionStatus(N.agentId, e),
709
+ onConnected: (t) => Zt(e, t)
710
710
  }, null, 8, [
711
711
  "part",
712
712
  "backend-url",
@@ -714,21 +714,21 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
714
714
  "check-connection",
715
715
  "onConnected"
716
716
  ])]),
717
- "tool-requestGeolocation": M(({ part: e }) => [S(A(ae), {
717
+ "tool-requestGeolocation": M(({ part: e }) => [S(A(ie), {
718
718
  part: e,
719
719
  "call-live": A(Z).isActive.value,
720
720
  "reverse-geocode": (e, t) => A(z).reverseGeocode(e, t),
721
- onResult: (t) => Yt(e, t)
721
+ onResult: (t) => Xt(e, t)
722
722
  }, null, 8, [
723
723
  "part",
724
724
  "call-live",
725
725
  "reverse-geocode",
726
726
  "onResult"
727
727
  ])]),
728
- "tool-showLocation": M(({ part: e }) => [S(A(se), {
728
+ "tool-showLocation": M(({ part: e }) => [S(A(oe), {
729
729
  part: e,
730
- "is-dark": A(qe),
731
- "main-color": A(P)?.mainColor,
730
+ "is-dark": A(Je),
731
+ "main-color": A(F)?.mainColor,
732
732
  "forward-geocode": (e, t) => A(z).forwardGeocode(e, t)
733
733
  }, null, 8, [
734
734
  "part",
@@ -736,14 +736,19 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
736
736
  "main-color",
737
737
  "forward-geocode"
738
738
  ])]),
739
- "tool-showDiagram": M(({ part: e }) => [S(A(ce), {
739
+ "tool-showDiagram": M(({ part: e }) => [S(A(se), {
740
740
  part: e,
741
- "is-dark": A(qe)
741
+ "is-dark": A(Je)
742
742
  }, null, 8, ["part", "is-dark"])]),
743
- "tool-editSpreadsheet": M(({ part: e }) => [(E(), v(A(le), {
743
+ "tool-editSpreadsheet": M(({ part: e }) => [(D(), v(A(ce), {
744
+ key: A(o)(e),
745
+ part: e,
746
+ "file-url": $e
747
+ }, null, 8, ["part"]))]),
748
+ "tool-shareDocument": M(({ part: e }) => [(D(), v(A(le), {
744
749
  key: A(o)(e),
745
750
  part: e,
746
- "file-url": Qe
751
+ "on-download": Dt
747
752
  }, null, 8, ["part"]))]),
748
753
  _: 1
749
754
  }, 8, /* @__PURE__ */ "messages.confirm-verdicts-on-call.status.error.main-color.text-color.revised-answers.actions.message-feedbacks.feedback-message-id.feedback-loading.feedback-submitted.feedback-error.show-extended-steps.awaiting-spoken-answer.host-working.host-confirmation.is-dark.show-scroll-to-bottom.onRegenerate.onAutoRetry.onResetChat.onUpvote.onDownvote.onFeedback.onApprovalRespond.onHostConfirmRespond".split(".")))]),
@@ -751,52 +756,52 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
751
756
  }),
752
757
  x("div", Me, [
753
758
  S(g, { name: "pk-chatbot-view-chat-fade" }, {
754
- default: M(() => [St.value ? (E(), v(ve, {
759
+ default: M(() => [Ct.value ? (D(), v(_e, {
755
760
  key: 0,
756
761
  class: "pk-chatbot-view-chat__aurora",
757
762
  "source-selector": ".pk-chatbot-input__form"
758
763
  })) : y("", !0)]),
759
764
  _: 1
760
765
  }),
761
- A(Qt) && !A(He) ? (E(), v(p, {
766
+ A($t) && !A(Ue) ? (D(), v(p, {
762
767
  key: 0,
763
- pending: A(Qt),
764
- stopping: A($t),
765
- onStop: A(nn)
768
+ pending: A($t),
769
+ stopping: A(en),
770
+ onStop: A(rn)
766
771
  }, null, 8, [
767
772
  "pending",
768
773
  "stopping",
769
774
  "onStop"
770
775
  ])) : y("", !0),
771
- A(He) ? (E(), b("div", Ne, O(A(H)("message.chatErrorConversationBlocked")), 1)) : Pt.value === "idle" ? (E(), v(d, {
776
+ A(Ue) ? (D(), b("div", Ne, k(A(H)("message.chatErrorConversationBlocked")), 1)) : Ft.value === "idle" ? (D(), v(d, {
772
777
  key: 3,
773
778
  modelValue: A(R),
774
779
  "onUpdate:modelValue": n[4] ||= (e) => ne(R) ? R.value = e : null,
775
- "pending-attachments": A(We),
776
- "onUpdate:pendingAttachments": n[5] ||= (e) => ne(We) ? We.value = e : null,
777
- placeholder: A(Ve),
778
- "dismissable-notice": A(bt) && A(L).messages.length <= 1 ? A(bt) : void 0,
779
- "page-notice": vt.value,
780
- status: gt.value,
781
- "max-message-length": A(P)?.maxMessageLength,
780
+ "pending-attachments": A(Ge),
781
+ "onUpdate:pendingAttachments": n[5] ||= (e) => ne(Ge) ? Ge.value = e : null,
782
+ placeholder: A(He),
783
+ "dismissable-notice": A(xt) && A(L).messages.length <= 1 ? A(xt) : void 0,
784
+ "page-notice": yt.value,
785
+ status: _t.value,
786
+ "max-message-length": A(F)?.maxMessageLength,
782
787
  "file-upload": B.value,
783
- "attachment-limit-reached": A(Ge),
784
- "attachment-notice": yt.value,
785
- "voice-enabled": Nt.value,
786
- onStopGeneration: A(et),
787
- onSubmit: A($e),
788
- onFileSelect: A(lt),
789
- onDismissAttachmentNotice: A(ut),
790
- onDismissPageNotice: A(pt),
791
- onVoiceStart: zt
788
+ "attachment-limit-reached": A(Ke),
789
+ "attachment-notice": bt.value,
790
+ "voice-enabled": Pt.value,
791
+ onStopGeneration: A(tt),
792
+ onSubmit: A(et),
793
+ onFileSelect: A(ut),
794
+ onDismissAttachmentNotice: A(dt),
795
+ onDismissPageNotice: A(mt),
796
+ onVoiceStart: Bt
792
797
  }, ee({ _: 2 }, [a.modifier === "fullscreen" ? {
793
798
  name: "prepend",
794
799
  fn: M(() => [x("span", Pe, [S(l, {
795
800
  modifiers: "surface",
796
801
  class: "pk-chatbot-view-chat__agent-chip-avatar",
797
- "img-src": A(P)?.logo,
798
- name: A(N).name
799
- }, null, 8, ["img-src", "name"]), A(N).name ? (E(), b("strong", Fe, O(A(N).name), 1)) : y("", !0)])]),
802
+ "img-src": A(F)?.logo,
803
+ name: A(P).name
804
+ }, null, 8, ["img-src", "name"]), A(P).name ? (D(), b("strong", Fe, k(A(P).name), 1)) : y("", !0)])]),
800
805
  key: "0"
801
806
  } : void 0]), 1032, [
802
807
  "modelValue",
@@ -815,21 +820,21 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
815
820
  "onFileSelect",
816
821
  "onDismissAttachmentNotice",
817
822
  "onDismissPageNotice"
818
- ])) : (E(), v(Te, {
823
+ ])) : (D(), v(Te, {
819
824
  key: 2,
820
- state: Pt.value,
821
- sample: Lt,
822
- spectrum: Rt,
825
+ state: Ft.value,
826
+ sample: Rt,
827
+ spectrum: zt,
823
828
  "remaining-seconds": A(Z).remainingSeconds.value,
824
829
  muted: U.value,
825
- error: Ft.value,
830
+ error: It.value,
826
831
  "raw-error": A(Z).error.value,
827
832
  live: A(Z).isActive.value,
828
833
  class: "pk-chatbot-view-chat__voice",
829
- onToggleMute: Zt,
830
- onHangUp: Bt,
831
- onRetry: Ht,
832
- onDismiss: Vt
834
+ onToggleMute: Qt,
835
+ onHangUp: Vt,
836
+ onRetry: Ut,
837
+ onDismiss: Ht
833
838
  }, null, 8, [
834
839
  "state",
835
840
  "remaining-seconds",
@@ -840,10 +845,10 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
840
845
  ]))
841
846
  ]),
842
847
  S(g, null, {
843
- default: M(() => [A(Dt) && B.value?.enabled ? (E(), b("div", Ie, [S(r, {
848
+ default: M(() => [A(Ot) && B.value?.enabled ? (D(), b("div", Ie, [S(r, {
844
849
  name: "ri:upload-cloud-2-line",
845
850
  class: "pk-chatbot-view-chat__drop-overlay-icon"
846
- }), x("span", null, O(A(H)("action.dropFile")), 1)])) : y("", !0)]),
851
+ }), x("span", null, k(A(H)("action.dropFile")), 1)])) : y("", !0)]),
847
852
  _: 1
848
853
  })
849
854
  ], 2);
@@ -851,6 +856,6 @@ var Me = { class: "pk-chatbot-view-chat__input-stage" }, Ne = {
851
856
  }
852
857
  });
853
858
  //#endregion
854
- export { ve as i, Te as n, be as r, R as t };
859
+ export { _e as i, Te as n, ye as r, Ve as t };
855
860
 
856
- //# sourceMappingURL=PkChatbotViewChat-B1iNTeQm.js.map
861
+ //# sourceMappingURL=PkChatbotViewChat-Cj3MKRFE.js.map