@8wave/ai-elements 0.127.0-beta.1 → 0.127.0-beta.3

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 (187) hide show
  1. package/dist/_chunks/{Agent-DytagI8S.js → Agent-nB9V45mr.js} +354 -276
  2. package/dist/_chunks/Agent-nB9V45mr.js.map +1 -0
  3. package/dist/_chunks/{Document-BdWEd1tb.js → Document-Dm5GM40t.js} +7 -7
  4. package/dist/_chunks/{Document-BdWEd1tb.js.map → Document-Dm5GM40t.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreview-C3BxAdui.js → PkFilePreview-qTCDbut0.js} +3 -3
  6. package/dist/_chunks/{PkFilePreview-C3BxAdui.js.map → PkFilePreview-qTCDbut0.js.map} +1 -1
  7. package/dist/_chunks/{PkFilePreviewDialog-WAm7QSvT.js → PkFilePreviewDialog-m5d4zZDi.js} +2 -2
  8. package/dist/_chunks/{PkFilePreviewDialog-WAm7QSvT.js.map → PkFilePreviewDialog-m5d4zZDi.js.map} +1 -1
  9. package/dist/_chunks/{PkImageEditorDialog-DM-d0hCD.js → PkImageEditorDialog-aekpEqWD.js} +2 -2
  10. package/dist/_chunks/{PkImageEditorDialog-DM-d0hCD.js.map → PkImageEditorDialog-aekpEqWD.js.map} +1 -1
  11. package/dist/_chunks/{PkSelectionActions-Bl1KbGOj.js → PkSelectionActions-DDhRX6cs.js} +2 -2
  12. package/dist/_chunks/{PkSelectionActions-Bl1KbGOj.js.map → PkSelectionActions-DDhRX6cs.js.map} +1 -1
  13. package/dist/_chunks/{PkStreamingMarkdown-CU1ZUUCf.js → PkStreamingMarkdown-5WfFCjFv.js} +3 -3
  14. package/dist/_chunks/{PkStreamingMarkdown-CU1ZUUCf.js.map → PkStreamingMarkdown-5WfFCjFv.js.map} +1 -1
  15. package/dist/_chunks/{PkToolChatFile-B-Y47Q_K.js → PkToolChatFile-C3B9q2OL.js} +3 -3
  16. package/dist/_chunks/{PkToolChatFile-B-Y47Q_K.js.map → PkToolChatFile-C3B9q2OL.js.map} +1 -1
  17. package/dist/_chunks/{PkToolRequestGeolocation-B41xrF8k.js → PkToolRequestGeolocation-D4pYnCW5.js} +2 -2
  18. package/dist/_chunks/{PkToolRequestGeolocation-B41xrF8k.js.map → PkToolRequestGeolocation-D4pYnCW5.js.map} +1 -1
  19. package/dist/_chunks/{PkToolRequestOAuthConnection-BuCGuHwd.js → PkToolRequestOAuthConnection-DnnRY2rt.js} +2 -2
  20. package/dist/_chunks/{PkToolRequestOAuthConnection-BuCGuHwd.js.map → PkToolRequestOAuthConnection-DnnRY2rt.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowArtifact-Bjm6uhOK.js → PkToolShowArtifact-DQln7TsF.js} +2 -2
  22. package/dist/_chunks/{PkToolShowArtifact-Bjm6uhOK.js.map → PkToolShowArtifact-DQln7TsF.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowChart-B6TKQ3aT.js → PkToolShowChart-DfDB9BeZ.js} +2 -2
  24. package/dist/_chunks/{PkToolShowChart-B6TKQ3aT.js.map → PkToolShowChart-DfDB9BeZ.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowContactForm-5tg4xbrh.js → PkToolShowContactForm-Dkb8AiqL.js} +2 -2
  26. package/dist/_chunks/{PkToolShowContactForm-5tg4xbrh.js.map → PkToolShowContactForm-Dkb8AiqL.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowDiagram-CiNtS-vX.js → PkToolShowDiagram-B2dBogUW.js} +2 -2
  28. package/dist/_chunks/{PkToolShowDiagram-CiNtS-vX.js.map → PkToolShowDiagram-B2dBogUW.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowForm-eh8mXr6u.js → PkToolShowForm-CtDcwJs4.js} +4 -4
  30. package/dist/_chunks/{PkToolShowForm-eh8mXr6u.js.map → PkToolShowForm-CtDcwJs4.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowImageGallery-DedpXD-b.js → PkToolShowImageGallery-dLMI3SM7.js} +2 -2
  32. package/dist/_chunks/{PkToolShowImageGallery-DedpXD-b.js.map → PkToolShowImageGallery-dLMI3SM7.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowProductList-D24EIc4v.js → PkToolShowProductList-DE6BEdr_.js} +2 -2
  34. package/dist/_chunks/{PkToolShowProductList-D24EIc4v.js.map → PkToolShowProductList-DE6BEdr_.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowSources-Dnw1x7dT.js → PkToolShowSources-vSr080EU.js} +3 -3
  36. package/dist/_chunks/{PkToolShowSources-Dnw1x7dT.js.map → PkToolShowSources-vSr080EU.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowSuggestedReply-CxNx1Uf6.js → PkToolShowSuggestedReply-HuKn3loC.js} +2 -2
  38. package/dist/_chunks/{PkToolShowSuggestedReply-CxNx1Uf6.js.map → PkToolShowSuggestedReply-HuKn3loC.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowVideo-CDcJiprr.js → PkToolShowVideo-BL-9CiYe.js} +2 -2
  40. package/dist/_chunks/{PkToolShowVideo-CDcJiprr.js.map → PkToolShowVideo-BL-9CiYe.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowWebPages-UXqb0XEJ.js → PkToolShowWebPages-DQfODZdD.js} +2 -2
  42. package/dist/_chunks/{PkToolShowWebPages-UXqb0XEJ.js.map → PkToolShowWebPages-DQfODZdD.js.map} +1 -1
  43. package/dist/_chunks/{chatImagePolicy-DJAB0Bgw.js → chatImagePolicy-Cj5lkTVq.js} +2 -2
  44. package/dist/_chunks/{chatImagePolicy-DJAB0Bgw.js.map → chatImagePolicy-Cj5lkTVq.js.map} +1 -1
  45. package/dist/_chunks/text-CCurUhdH.js +13 -0
  46. package/dist/_chunks/text-CCurUhdH.js.map +1 -0
  47. package/dist/_chunks/{utils-78zQeKDO.js → utils-CRy3kzE3.js} +458 -160
  48. package/dist/_chunks/utils-CRy3kzE3.js.map +1 -0
  49. package/dist/ai-elements.es.js +5973 -5638
  50. package/dist/ai-elements.es.js.map +1 -1
  51. package/dist-vue/PkChatbot.js +1 -1
  52. package/dist-vue/PkChatbotAuth.js +1 -1
  53. package/dist-vue/PkChatbotEmptyState.js +1 -1
  54. package/dist-vue/PkChatbotInput.js +1 -1
  55. package/dist-vue/PkChatbotLocalFolders.d.ts +2 -0
  56. package/dist-vue/PkChatbotLocalFolders.js +1 -0
  57. package/dist-vue/PkChatbotMessages.js +1 -1
  58. package/dist-vue/PkChatbotStepPayload.js +1 -1
  59. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  60. package/dist-vue/PkChatbotSteps.js +1 -1
  61. package/dist-vue/PkChatbotViewChat.js +1 -1
  62. package/dist-vue/PkChatbotViewConversations.js +1 -1
  63. package/dist-vue/PkChatbotViewFiles.js +1 -1
  64. package/dist-vue/PkChatbotViewProfile.js +1 -1
  65. package/dist-vue/PkChatbotWakeupBar.js +1 -1
  66. package/dist-vue/_chunks/{Agent-Da4XChe8.js → Agent-DKefaJeG.js} +445 -377
  67. package/dist-vue/_chunks/Agent-DKefaJeG.js.map +1 -0
  68. package/dist-vue/_chunks/{Document-CsQsUQYa.js → Document-B49E_gxT.js} +18 -18
  69. package/dist-vue/_chunks/{Document-CsQsUQYa.js.map → Document-B49E_gxT.js.map} +1 -1
  70. package/dist-vue/_chunks/{Media-CMiWEpdQ.js → Media-DtudATme.js} +12 -2
  71. package/dist-vue/_chunks/Media-DtudATme.js.map +1 -0
  72. package/dist-vue/_chunks/{PkChatbot-CITKd3qD.js → PkChatbot-B2SwBImk.js} +10 -9
  73. package/dist-vue/_chunks/PkChatbot-B2SwBImk.js.map +1 -0
  74. package/dist-vue/_chunks/{PkChatbotAuth-SfTyFbq1.js → PkChatbotAuth-CIK2CFy-.js} +8 -8
  75. package/dist-vue/_chunks/{PkChatbotAuth-SfTyFbq1.js.map → PkChatbotAuth-CIK2CFy-.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkChatbotEmptyState-DI_8T5a4.js → PkChatbotEmptyState-C_htXOSW.js} +2 -2
  77. package/dist-vue/_chunks/{PkChatbotEmptyState-DI_8T5a4.js.map → PkChatbotEmptyState-C_htXOSW.js.map} +1 -1
  78. package/dist-vue/_chunks/PkChatbotInput-CJ5lPtpH.js +658 -0
  79. package/dist-vue/_chunks/PkChatbotInput-CJ5lPtpH.js.map +1 -0
  80. package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js +126 -0
  81. package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js.map +1 -0
  82. package/dist-vue/_chunks/{PkChatbotMessages-BWdINCAX.js → PkChatbotMessages-DY8r4UKe.js} +49 -49
  83. package/dist-vue/_chunks/{PkChatbotMessages-BWdINCAX.js.map → PkChatbotMessages-DY8r4UKe.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkChatbotStepPayload-CTwsRpkv.js → PkChatbotStepPayload-BLjH1pkP.js} +2 -2
  85. package/dist-vue/_chunks/{PkChatbotStepPayload-CTwsRpkv.js.map → PkChatbotStepPayload-BLjH1pkP.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkChatbotStepToolDetail-C9xeMg-k.js → PkChatbotStepToolDetail-wIZmkvr-.js} +3 -3
  87. package/dist-vue/_chunks/{PkChatbotStepToolDetail-C9xeMg-k.js.map → PkChatbotStepToolDetail-wIZmkvr-.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkChatbotSteps-DsubpIKa.js → PkChatbotSteps-DG09GyCb.js} +7 -7
  89. package/dist-vue/_chunks/{PkChatbotSteps-DsubpIKa.js.map → PkChatbotSteps-DG09GyCb.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkChatbotViewChat-DW1a9ZNl.js → PkChatbotViewChat-DPk9LjX-.js} +685 -667
  91. package/dist-vue/_chunks/PkChatbotViewChat-DPk9LjX-.js.map +1 -0
  92. package/dist-vue/_chunks/{PkChatbotViewConversations-DdniYy1b.js → PkChatbotViewConversations-NA_PCvZR.js} +4 -4
  93. package/dist-vue/_chunks/{PkChatbotViewConversations-DdniYy1b.js.map → PkChatbotViewConversations-NA_PCvZR.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkChatbotViewFiles-CMoromsf.js → PkChatbotViewFiles-D8_Khdu2.js} +3 -3
  95. package/dist-vue/_chunks/{PkChatbotViewFiles-CMoromsf.js.map → PkChatbotViewFiles-D8_Khdu2.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkChatbotViewProfile-BT7I3GhB.js → PkChatbotViewProfile-iTBiQVsZ.js} +2 -2
  97. package/dist-vue/_chunks/{PkChatbotViewProfile-BT7I3GhB.js.map → PkChatbotViewProfile-iTBiQVsZ.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkChatbotWakeupBar-Bx1zqFAX.js → PkChatbotWakeupBar-IoQJdUjI.js} +11 -11
  99. package/dist-vue/_chunks/PkChatbotWakeupBar-IoQJdUjI.js.map +1 -0
  100. package/dist-vue/_chunks/{PkFilePreview-Dxp-U8QU.js → PkFilePreview-DLJ2wTHk.js} +4 -4
  101. package/dist-vue/_chunks/{PkFilePreview-Dxp-U8QU.js.map → PkFilePreview-DLJ2wTHk.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkFilePreviewDialog-BE-NpN18.js → PkFilePreviewDialog-CDPZ3QIk.js} +2 -2
  103. package/dist-vue/_chunks/{PkFilePreviewDialog-BE-NpN18.js.map → PkFilePreviewDialog-CDPZ3QIk.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkImageEditorDialog-BiuOD6Hr.js → PkImageEditorDialog-CrjpCier.js} +2 -2
  105. package/dist-vue/_chunks/{PkImageEditorDialog-BiuOD6Hr.js.map → PkImageEditorDialog-CrjpCier.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js → PkStreamingMarkdown-CgKFdzCI.js} +23 -23
  107. package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js.map → PkStreamingMarkdown-CgKFdzCI.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolChatFile-BdNron14.js → PkToolChatFile-IEQxfzjM.js} +3 -3
  109. package/dist-vue/_chunks/{PkToolChatFile-BdNron14.js.map → PkToolChatFile-IEQxfzjM.js.map} +1 -1
  110. package/dist-vue/_chunks/{PkToolRequestGeolocation-DeI7kLlR.js → PkToolRequestGeolocation-BmrbMPke.js} +2 -2
  111. package/dist-vue/_chunks/{PkToolRequestGeolocation-DeI7kLlR.js.map → PkToolRequestGeolocation-BmrbMPke.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C0lE3Qbk.js → PkToolRequestOAuthConnection-yKgXyOUN.js} +2 -2
  113. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C0lE3Qbk.js.map → PkToolRequestOAuthConnection-yKgXyOUN.js.map} +1 -1
  114. package/dist-vue/_chunks/{PkToolShowArtifact-C0Gb-LW2.js → PkToolShowArtifact-CF90yFCe.js} +2 -2
  115. package/dist-vue/_chunks/{PkToolShowArtifact-C0Gb-LW2.js.map → PkToolShowArtifact-CF90yFCe.js.map} +1 -1
  116. package/dist-vue/_chunks/{PkToolShowChart-oJmzU10F.js → PkToolShowChart-CDR8ag4q.js} +2 -2
  117. package/dist-vue/_chunks/{PkToolShowChart-oJmzU10F.js.map → PkToolShowChart-CDR8ag4q.js.map} +1 -1
  118. package/dist-vue/_chunks/{PkToolShowContactForm-D4IAna-K.js → PkToolShowContactForm-DAdKUU4X.js} +2 -2
  119. package/dist-vue/_chunks/{PkToolShowContactForm-D4IAna-K.js.map → PkToolShowContactForm-DAdKUU4X.js.map} +1 -1
  120. package/dist-vue/_chunks/{PkToolShowDiagram-ClGpv5Cr.js → PkToolShowDiagram-Do20AvFb.js} +2 -2
  121. package/dist-vue/_chunks/{PkToolShowDiagram-ClGpv5Cr.js.map → PkToolShowDiagram-Do20AvFb.js.map} +1 -1
  122. package/dist-vue/_chunks/{PkToolShowForm-ByfNodNh.js → PkToolShowForm-DfFmPOt6.js} +4 -4
  123. package/dist-vue/_chunks/{PkToolShowForm-ByfNodNh.js.map → PkToolShowForm-DfFmPOt6.js.map} +1 -1
  124. package/dist-vue/_chunks/{PkToolShowImageGallery-DJ9JNDWK.js → PkToolShowImageGallery-DA6KW2g_.js} +2 -2
  125. package/dist-vue/_chunks/{PkToolShowImageGallery-DJ9JNDWK.js.map → PkToolShowImageGallery-DA6KW2g_.js.map} +1 -1
  126. package/dist-vue/_chunks/{PkToolShowProductList-CcFseg28.js → PkToolShowProductList-FcDDabPI.js} +2 -2
  127. package/dist-vue/_chunks/{PkToolShowProductList-CcFseg28.js.map → PkToolShowProductList-FcDDabPI.js.map} +1 -1
  128. package/dist-vue/_chunks/{PkToolShowSources-DznWqWK3.js → PkToolShowSources-afCYBONq.js} +3 -3
  129. package/dist-vue/_chunks/{PkToolShowSources-DznWqWK3.js.map → PkToolShowSources-afCYBONq.js.map} +1 -1
  130. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BZqnfpwO.js → PkToolShowSuggestedReply-C863wgtU.js} +2 -2
  131. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BZqnfpwO.js.map → PkToolShowSuggestedReply-C863wgtU.js.map} +1 -1
  132. package/dist-vue/_chunks/{PkToolShowVideo-niwkzqTN.js → PkToolShowVideo-kUiwxRlz.js} +2 -2
  133. package/dist-vue/_chunks/{PkToolShowVideo-niwkzqTN.js.map → PkToolShowVideo-kUiwxRlz.js.map} +1 -1
  134. package/dist-vue/_chunks/{PkToolShowWebPages-BsMVJ6c7.js → PkToolShowWebPages-Dw9D1__u.js} +2 -2
  135. package/dist-vue/_chunks/{PkToolShowWebPages-BsMVJ6c7.js.map → PkToolShowWebPages-Dw9D1__u.js.map} +1 -1
  136. package/dist-vue/_chunks/{createChatbotApiClient-Cd_2UI_O.js → createChatbotApiClient-DzrHp52e.js} +66 -65
  137. package/dist-vue/_chunks/createChatbotApiClient-DzrHp52e.js.map +1 -0
  138. package/dist-vue/_chunks/localFolders-ChZp8dLu.js +353 -0
  139. package/dist-vue/_chunks/localFolders-ChZp8dLu.js.map +1 -0
  140. package/dist-vue/_chunks/{useChatbotStore-Dir9Rc7K.js → useChatbotStore-DZlc7dzK.js} +1289 -1152
  141. package/dist-vue/_chunks/useChatbotStore-DZlc7dzK.js.map +1 -0
  142. package/dist-vue/_chunks/useSettledSelection-1bfM1fzx.js +55 -0
  143. package/dist-vue/_chunks/useSettledSelection-1bfM1fzx.js.map +1 -0
  144. package/dist-vue/_chunks/{utils-CibsowVe.js → utils-CY0jFRnG.js} +126 -107
  145. package/dist-vue/_chunks/utils-CY0jFRnG.js.map +1 -0
  146. package/dist-vue/api.js +1 -1
  147. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
  148. package/dist-vue/composables.js +62 -10
  149. package/dist-vue/composables.js.map +1 -1
  150. package/dist-vue/index.js +4100 -4086
  151. package/dist-vue/index.js.map +1 -1
  152. package/dist-vue/locales.js +32 -0
  153. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
  154. package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +7 -1
  155. package/dist-vue/packages/components/src/chat/PkChatbotLocalFolders.d.ts +31 -0
  156. package/dist-vue/packages/components/src/chat/utils.d.ts +3 -2
  157. package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +1 -1
  158. package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
  159. package/dist-vue/packages/composable/src/chatbot/localFolders.d.ts +137 -0
  160. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +46 -3
  161. package/dist-vue/packages/models/src/schema/Agent.d.ts +24 -0
  162. package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
  163. package/dist-vue/packages/models/src/schema/HostTool.d.ts +5 -2
  164. package/dist-vue/packages/models/src/schema/LocalFolder.d.ts +78 -0
  165. package/dist-vue/packages/models/src/schema/Organization.d.ts +10 -0
  166. package/dist-vue/packages/models/src/schema/PageAccess.d.ts +4 -1
  167. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +8 -0
  168. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +8 -0
  169. package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
  170. package/dist-vue/style.css +1 -1
  171. package/package.json +1 -1
  172. package/dist/_chunks/Agent-DytagI8S.js.map +0 -1
  173. package/dist/_chunks/text-5F7L8EHi.js +0 -5
  174. package/dist/_chunks/text-5F7L8EHi.js.map +0 -1
  175. package/dist/_chunks/utils-78zQeKDO.js.map +0 -1
  176. package/dist-vue/_chunks/Agent-Da4XChe8.js.map +0 -1
  177. package/dist-vue/_chunks/Media-CMiWEpdQ.js.map +0 -1
  178. package/dist-vue/_chunks/PkChatbot-CITKd3qD.js.map +0 -1
  179. package/dist-vue/_chunks/PkChatbotInput-UqcSEi8l.js +0 -708
  180. package/dist-vue/_chunks/PkChatbotInput-UqcSEi8l.js.map +0 -1
  181. package/dist-vue/_chunks/PkChatbotViewChat-DW1a9ZNl.js.map +0 -1
  182. package/dist-vue/_chunks/PkChatbotWakeupBar-Bx1zqFAX.js.map +0 -1
  183. package/dist-vue/_chunks/createChatbotApiClient-Cd_2UI_O.js.map +0 -1
  184. package/dist-vue/_chunks/message-DuibQyHy.js +0 -61
  185. package/dist-vue/_chunks/message-DuibQyHy.js.map +0 -1
  186. package/dist-vue/_chunks/useChatbotStore-Dir9Rc7K.js.map +0 -1
  187. package/dist-vue/_chunks/utils-CibsowVe.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { W as e } from "./Agent-Da4XChe8.js";
1
+ import { W as e } from "./Agent-DKefaJeG.js";
2
2
  import { a as t, o as n, s as r } from "./useLightbox-CQ8WtQNC.js";
3
3
  import "./src-nb8MU1sh.js";
4
- import { v as i } from "./utils-CibsowVe.js";
5
- import { i as a, n as o } from "./url-validation-CJV9pp4v.js";
6
- import { n as s } from "./useShortUrlResolver-KJDk7QLj.js";
4
+ import { i, n as a } from "./url-validation-CJV9pp4v.js";
5
+ import { n as o } from "./useShortUrlResolver-KJDk7QLj.js";
6
+ import { v as s } from "./utils-CY0jFRnG.js";
7
7
  import { computed as c, createElementBlock as l, defineComponent as u, inject as d, nextTick as f, onBeforeUnmount as p, onMounted as ee, openBlock as m, provide as h, ref as g, toRef as te, unref as ne, useTemplateRef as re, watch as _ } from "vue";
8
8
  import { useI18n as ie } from "vue-i18n";
9
9
  import { refThrottled as v } from "@vueuse/core";
@@ -3212,7 +3212,7 @@ function Ma(t, n) {
3212
3212
  let r = t();
3213
3213
  if (r?.holdExternalImages) return {
3214
3214
  hosts: (r.imageHosts ?? []).map(e),
3215
- platformOrigins: [a(n())].filter((e) => !!e)
3215
+ platformOrigins: [i(n())].filter((e) => !!e)
3216
3216
  };
3217
3217
  }));
3218
3218
  }
@@ -3234,7 +3234,7 @@ function Fa(e, t, n) {
3234
3234
  return r.protocol === "data:" || r.protocol === "blob:" ? !0 : t.platformOrigins.includes(r.origin) ? Pa.test(r.pathname) : r.protocol === "https:" && t.hosts.includes(r.hostname);
3235
3235
  }
3236
3236
  function Ia() {
3237
- let e = d(ja, void 0), t = s(), n = g(/* @__PURE__ */ new Set()), r = () => typeof window > "u" ? "https://localhost/" : window.location.href, i = (e) => t.resolve(e).value.url ?? e;
3237
+ let e = d(ja, void 0), t = o(), n = g(/* @__PURE__ */ new Set()), r = () => typeof window > "u" ? "https://localhost/" : window.location.href, i = (e) => t.resolve(e).value.url ?? e;
3238
3238
  return {
3239
3239
  isGated: c(() => !!e?.value),
3240
3240
  canLoad: (t) => {
@@ -3336,7 +3336,7 @@ var Ya = (e, t) => {
3336
3336
  }
3337
3337
  },
3338
3338
  setup(e) {
3339
- let a = e, { t: u } = ie({ useScope: "global" }), d = null;
3339
+ let i = e, { t: u } = ie({ useScope: "global" }), d = null;
3340
3340
  function h() {
3341
3341
  return d ||= import("beautiful-mermaid"), d;
3342
3342
  }
@@ -3400,18 +3400,18 @@ var Ya = (e, t) => {
3400
3400
  }] });
3401
3401
  let b = new W.Renderer(), ce = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), le = /^(?:javascript|data|vbscript|file):/i, x = !1, ue = (e) => ce(e.replace(/^https?:\/\/(?:www\.)?/i, "").replace(/\/$/, "")).replace(/\//g, "/<wbr>");
3402
3402
  b.link = function({ href: e, title: t, text: n, tokens: r }) {
3403
- let i = this.parser.parseInline(r), a = (e ?? "").trim().replace(/[\x00-\x1f]/g, "");
3404
- if (!a || le.test(a)) return i;
3405
- let s = x && n === a, c = t || (s ? a : ""), l = c ? ` title="${ce(c)}"` : "", u = o(a) ? "" : " target=\"_blank\" rel=\"noopener noreferrer\"";
3406
- return `<a href="${ce(a)}"${l}${u}>${s ? ue(a) : i}</a>`;
3403
+ let i = this.parser.parseInline(r), o = (e ?? "").trim().replace(/[\x00-\x1f]/g, "");
3404
+ if (!o || le.test(o)) return i;
3405
+ let s = x && n === o, c = t || (s ? o : ""), l = c ? ` title="${ce(c)}"` : "", u = a(o) ? "" : " target=\"_blank\" rel=\"noopener noreferrer\"";
3406
+ return `<a href="${ce(o)}"${l}${u}>${s ? ue(o) : i}</a>`;
3407
3407
  }, b.table = function(e) {
3408
3408
  x = !0;
3409
3409
  try {
3410
3410
  let t = e.header.map((e) => ce(this.parser.parseInline(e.tokens, this.parser.textRenderer))), n = (e) => `<tr role="row">${e.map((e, n) => {
3411
3411
  let r = this.parser.parseInline(e.tokens), i = e.align ? ` align="${e.align}"` : "";
3412
3412
  return e.header ? `<th role="columnheader"${i}>${r}</th>` : `<td role="cell" data-label="${t[n] ?? ""}"${i}><span>${r}</span></td>`;
3413
- }).join("")}</tr>`, r = e.rows.length ? `<tbody role="rowgroup">${e.rows.map(n).join("")}</tbody>` : "", i = e.header.length >= 3 && e.rows.length ? "u-table u-table--stack" : "u-table", o = a.copyTables && !a.loading && e.rows.length ? `<div class="pk-markdown-table-actions"><button type="button" class="vv-button vv-button--action-quiet-small" data-copy-table>${Ea(u("action.copyTable"))}</button></div>` : "";
3414
- return `<div class="table-wrapper u-table-scroll"><table class="${i}" role="table"><thead role="rowgroup">${n(e.header)}</thead>${r}</table></div>${o}\n`;
3413
+ }).join("")}</tr>`, r = e.rows.length ? `<tbody role="rowgroup">${e.rows.map(n).join("")}</tbody>` : "", a = e.header.length >= 3 && e.rows.length ? "u-table u-table--stack" : "u-table", o = i.copyTables && !i.loading && e.rows.length ? `<div class="pk-markdown-table-actions"><button type="button" class="vv-button vv-button--action-quiet-small" data-copy-table>${Ea(u("action.copyTable"))}</button></div>` : "";
3414
+ return `<div class="table-wrapper u-table-scroll"><table class="${a}" role="table"><thead role="rowgroup">${n(e.header)}</thead>${r}</table></div>${o}\n`;
3415
3415
  } finally {
3416
3416
  x = !1;
3417
3417
  }
@@ -3438,7 +3438,7 @@ var Ya = (e, t) => {
3438
3438
  pe,
3439
3439
  cn,
3440
3440
  fe
3441
- ], S = re("container"), he = v(te(a, "markdown"), Za), ge = c(() => a.tailLength ? i(he.value, a.tailLength) : he.value), { resolveText: _e } = s(), ve = _e(ge), C = Ia(), ye = t(), be = c(() => {
3441
+ ], S = re("container"), he = v(te(i, "markdown"), Za), ge = c(() => i.tailLength ? s(he.value, i.tailLength) : he.value), { resolveText: _e } = o(), ve = _e(ge), C = Ia(), ye = t(), be = c(() => {
3442
3442
  let e = me.reduce((e, t) => t(e), ve.value);
3443
3443
  return Aa(W.parse(e, {
3444
3444
  async: !1,
@@ -3469,11 +3469,11 @@ var Ya = (e, t) => {
3469
3469
  }, 2e3));
3470
3470
  }
3471
3471
  async function Ce() {
3472
- if (a.loading) return;
3472
+ if (i.loading) return;
3473
3473
  await f();
3474
3474
  let e = S.value?.querySelectorAll("pre.mermaid:not([data-rendered])");
3475
3475
  if (!e?.length) return;
3476
- let { renderMermaidSVG: t, THEMES: n } = await h(), r = a.isDark ? n["github-dark"] : n["github-light"];
3476
+ let { renderMermaidSVG: t, THEMES: n } = await h(), r = i.isDark ? n["github-dark"] : n["github-light"];
3477
3477
  for (let n of Array.from(e)) {
3478
3478
  if (!n.isConnected) continue;
3479
3479
  let e = n.textContent?.trim();
@@ -3513,7 +3513,7 @@ var Ya = (e, t) => {
3513
3513
  await f();
3514
3514
  let e = S.value?.querySelectorAll("pre.mermaid[data-rendered]");
3515
3515
  if (!e?.length) return;
3516
- let { renderMermaidSVG: t, THEMES: n } = await h(), r = a.isDark ? n["github-dark"] : n["github-light"];
3516
+ let { renderMermaidSVG: t, THEMES: n } = await h(), r = i.isDark ? n["github-dark"] : n["github-light"];
3517
3517
  for (let n of Array.from(e)) {
3518
3518
  if (!n.isConnected) continue;
3519
3519
  let e = n.dataset.code;
@@ -3533,7 +3533,7 @@ var Ya = (e, t) => {
3533
3533
  S.value?.addEventListener("error", De, !0);
3534
3534
  }), p(() => {
3535
3535
  S.value?.removeEventListener("error", De, !0);
3536
- }), _([be, () => a.loading], Ce, { immediate: !0 }), _(() => a.isDark, Ee), _(be, we, { immediate: !0 }), _(be, Te, { immediate: !0 }), ye && _(be, (e) => {
3536
+ }), _([be, () => i.loading], Ce, { immediate: !0 }), _(() => i.isDark, Ee), _(be, we, { immediate: !0 }), _(be, Te, { immediate: !0 }), ye && _(be, (e) => {
3537
3537
  e.includes("<img") && ye.join();
3538
3538
  }, { immediate: !0 });
3539
3539
  let w = 0, Oe = {
@@ -3544,8 +3544,8 @@ var Ya = (e, t) => {
3544
3544
  fadeAndScale: "pk-streaming-markdown-fade-and-scale"
3545
3545
  };
3546
3546
  function T(e, t) {
3547
- let n = document.createElement("span"), r = a.animation ? Oe[a.animation] : "none";
3548
- return n.style.cssText = `animation:${r} ${a.animationDuration} ease-out ${t}ms both;display:inline-block`, n.textContent = e, n.addEventListener("animationend", () => {
3547
+ let n = document.createElement("span"), r = i.animation ? Oe[i.animation] : "none";
3548
+ return n.style.cssText = `animation:${r} ${i.animationDuration} ease-out ${t}ms both;display:inline-block`, n.textContent = e, n.addEventListener("animationend", () => {
3549
3549
  let t = n.parentNode;
3550
3550
  t && (t.replaceChild(document.createTextNode(e), n), t.normalize());
3551
3551
  }, { once: !0 }), n;
@@ -3563,7 +3563,7 @@ var Ya = (e, t) => {
3563
3563
  return n;
3564
3564
  }
3565
3565
  function ke() {
3566
- if (!S.value || !a.loading || !a.animation) return;
3566
+ if (!S.value || !i.loading || !i.animation) return;
3567
3567
  let e = D(S.value), t = 0, n = 0;
3568
3568
  for (let r of e) {
3569
3569
  let e = r.textContent || "", i = t, a = t + e.length;
@@ -3582,7 +3582,7 @@ var Ya = (e, t) => {
3582
3582
  }
3583
3583
  return _(be, async () => {
3584
3584
  await f(), ke();
3585
- }, { immediate: !0 }), _(() => a.markdown, (e, t) => {
3585
+ }, { immediate: !0 }), _(() => i.markdown, (e, t) => {
3586
3586
  (!e || t && e.length < t.length) && (w = 0);
3587
3587
  }), (e, t) => (m(), l("div", {
3588
3588
  ref: "container",
@@ -3594,4 +3594,4 @@ var Ya = (e, t) => {
3594
3594
  });
3595
3595
  export { Ia as a, Ma as i, Ja as n, Ka as r, Qa as t };
3596
3596
 
3597
- //# sourceMappingURL=PkStreamingMarkdown-DMmt35Mq.js.map
3597
+ //# sourceMappingURL=PkStreamingMarkdown-CgKFdzCI.js.map