@8wave/ai-elements 0.103.0-beta.3 → 0.103.0-beta.4

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 (128) hide show
  1. package/dist/_chunks/PkLazyImg-CyeqD59M.js +34 -0
  2. package/dist/_chunks/{PkLazyImg-_389yCnQ.js.map → PkLazyImg-CyeqD59M.js.map} +1 -1
  3. package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js → PkStreamingMarkdown-DIkusrTI.js} +28 -28
  4. package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js.map → PkStreamingMarkdown-DIkusrTI.js.map} +1 -1
  5. package/dist/_chunks/PkToolRequestGeolocation-Cgus94KF.js +69 -0
  6. package/dist/_chunks/{PkToolRequestGeolocation-T16QI-Uv.js.map → PkToolRequestGeolocation-Cgus94KF.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js → PkToolRequestOAuthConnection-DsUpUh97.js} +21 -21
  8. package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js.map → PkToolRequestOAuthConnection-DsUpUh97.js.map} +1 -1
  9. package/dist/_chunks/PkToolShowArtifact-griVx9w3.js +93 -0
  10. package/dist/_chunks/{PkToolShowArtifact-D15GjBm6.js.map → PkToolShowArtifact-griVx9w3.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js → PkToolShowCalendarEvent-DyiNmqqo.js} +43 -43
  12. package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js.map → PkToolShowCalendarEvent-DyiNmqqo.js.map} +1 -1
  13. package/dist/_chunks/PkToolShowComparison-RA72YL7R.js +66 -0
  14. package/dist/_chunks/{PkToolShowComparison-Bp2rP2Hx.js.map → PkToolShowComparison-RA72YL7R.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js → PkToolShowContactForm-BzDhv2yd.js} +41 -41
  16. package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js.map → PkToolShowContactForm-BzDhv2yd.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js → PkToolShowDiagram-DhXe8IPm.js} +79 -79
  18. package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js.map → PkToolShowDiagram-DhXe8IPm.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowEmail-DCSj4328.js → PkToolShowEmail-CBmfy_I9.js} +34 -34
  20. package/dist/_chunks/{PkToolShowEmail-DCSj4328.js.map → PkToolShowEmail-CBmfy_I9.js.map} +1 -1
  21. package/dist/_chunks/PkToolShowForm-CzIfm5de.js +365 -0
  22. package/dist/_chunks/{PkToolShowForm-ztQFyFd9.js.map → PkToolShowForm-CzIfm5de.js.map} +1 -1
  23. package/dist/_chunks/PkToolShowImageGallery-CSIiRuSC.js +74 -0
  24. package/dist/_chunks/{PkToolShowImageGallery-DiOR0vYa.js.map → PkToolShowImageGallery-CSIiRuSC.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js → PkToolShowLocation-BHoUqpx4.js} +4079 -4079
  26. package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js.map → PkToolShowLocation-BHoUqpx4.js.map} +1 -1
  27. package/dist/_chunks/PkToolShowMessage-CpDmPfCG.js +77 -0
  28. package/dist/_chunks/{PkToolShowMessage-BysjJ1oS.js.map → PkToolShowMessage-CpDmPfCG.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js → PkToolShowProductList-B8uuIvGo.js} +28 -28
  30. package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js.map → PkToolShowProductList-B8uuIvGo.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js → PkToolShowQrCode-CD2lo3O0.js} +23 -23
  32. package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js.map → PkToolShowQrCode-CD2lo3O0.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSources-U7etupUP.js → PkToolShowSources-JxaTAEpc.js} +98 -98
  34. package/dist/_chunks/{PkToolShowSources-U7etupUP.js.map → PkToolShowSources-JxaTAEpc.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js → PkToolShowSuggestedReply-BTxqEwEm.js} +18 -18
  36. package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js.map → PkToolShowSuggestedReply-BTxqEwEm.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js → PkToolShowVideo-CVksKdPD.js} +17 -17
  38. package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js.map → PkToolShowVideo-CVksKdPD.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js → PkToolShowWeather-IDwTDozU.js} +68 -68
  40. package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js.map → PkToolShowWeather-IDwTDozU.js.map} +1 -1
  41. package/dist/_chunks/PkToolShowWebPages-D9Yst_2O.js +78 -0
  42. package/dist/_chunks/{PkToolShowWebPages-CPNgXzrS.js.map → PkToolShowWebPages-D9Yst_2O.js.map} +1 -1
  43. package/dist/_chunks/{PkUrl-C3gMPCjz.js → PkUrl-B3FTSURr.js} +19 -19
  44. package/dist/_chunks/{PkUrl-C3gMPCjz.js.map → PkUrl-B3FTSURr.js.map} +1 -1
  45. package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js → VvCheckbox.es-C_dlDzrr.js} +78 -78
  46. package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js.map → VvCheckbox.es-C_dlDzrr.js.map} +1 -1
  47. package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js → VvCheckboxGroup.es-hY0kWpC2.js} +197 -197
  48. package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js.map → VvCheckboxGroup.es-hY0kWpC2.js.map} +1 -1
  49. package/dist/_chunks/VvCombobox.es-DxhDF7ab.js +2044 -0
  50. package/dist/_chunks/{VvCombobox.es-CfRJtWOd.js.map → VvCombobox.es-DxhDF7ab.js.map} +1 -1
  51. package/dist/_chunks/{VvInputText.es-B0HHD6Th.js → VvInputText.es-CdpU8kvP.js} +460 -460
  52. package/dist/_chunks/{VvInputText.es-B0HHD6Th.js.map → VvInputText.es-CdpU8kvP.js.map} +1 -1
  53. package/dist/_chunks/{VvRadio.es-B3u8JJFF.js → VvRadio.es-BruZ5FHR.js} +144 -144
  54. package/dist/_chunks/{VvRadio.es-B3u8JJFF.js.map → VvRadio.es-BruZ5FHR.js.map} +1 -1
  55. package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js → VvRadioGroup.es-DSv6UdEy.js} +148 -148
  56. package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js.map → VvRadioGroup.es-DSv6UdEy.js.map} +1 -1
  57. package/dist/_chunks/{VvSelect.es-BfrDID0e.js → VvSelect.es-C244CAei.js} +155 -155
  58. package/dist/_chunks/{VvSelect.es-BfrDID0e.js.map → VvSelect.es-C244CAei.js.map} +1 -1
  59. package/dist/_chunks/VvTextarea.es-DbaPIcWl.js +1166 -0
  60. package/dist/_chunks/{VvTextarea.es-CAzFW944.js.map → VvTextarea.es-DbaPIcWl.js.map} +1 -1
  61. package/dist/_chunks/{dist-BvSGMyWS.js → dist-BgJVX4FG.js} +12 -12
  62. package/dist/_chunks/{dist-BvSGMyWS.js.map → dist-BgJVX4FG.js.map} +1 -1
  63. package/dist/_chunks/{dist-TFHdNK0W.js → dist-C5Y-NI3i.js} +230 -230
  64. package/dist/_chunks/{dist-TFHdNK0W.js.map → dist-C5Y-NI3i.js.map} +1 -1
  65. package/dist/_chunks/{esm-CUYQMpeA.js → esm-BTbGj6W3.js} +25 -25
  66. package/dist/_chunks/{esm-CUYQMpeA.js.map → esm-BTbGj6W3.js.map} +1 -1
  67. package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js → floating-ui.vue-CoA4oagI.js} +16 -16
  68. package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js.map → floating-ui.vue-CoA4oagI.js.map} +1 -1
  69. package/dist/_chunks/{iconify-BGSTR7vH.js → iconify-6ObncgfH.js} +36 -36
  70. package/dist/_chunks/{iconify-BGSTR7vH.js.map → iconify-6ObncgfH.js.map} +1 -1
  71. package/dist/_chunks/{index.es-B9rhQl9Z.js → index.es-BbyodRh9.js} +258 -258
  72. package/dist/_chunks/{index.es-B9rhQl9Z.js.map → index.es-BbyodRh9.js.map} +1 -1
  73. package/dist/_chunks/index.es-gbmOq0Nu.js +3124 -0
  74. package/dist/_chunks/index.es-gbmOq0Nu.js.map +1 -0
  75. package/dist/_chunks/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-CoeuCKPe.js} +4 -11
  76. package/dist/_chunks/{src-BjFv9Ag8.js → src-CIEdKLKO.js} +2 -2
  77. package/dist/_chunks/{src-BjFv9Ag8.js.map → src-CIEdKLKO.js.map} +1 -1
  78. package/dist/_chunks/useImageFallback-BAsLRsyg.js +19 -0
  79. package/dist/_chunks/{useImageFallback-8kfLDjXm.js.map → useImageFallback-BAsLRsyg.js.map} +1 -1
  80. package/dist/_chunks/{useLightbox-Bq6k-Wlt.js → useLightbox-Epg2fN87.js} +7 -7
  81. package/dist/_chunks/{useLightbox-Bq6k-Wlt.js.map → useLightbox-Epg2fN87.js.map} +1 -1
  82. package/dist/_chunks/useShortUrlResolver--HRa6Od3.js +72 -0
  83. package/dist/_chunks/{useShortUrlResolver-BTJM8XRw.js.map → useShortUrlResolver--HRa6Od3.js.map} +1 -1
  84. package/dist/_chunks/{vue-i18n-BJ7nxwO3.js → vue-i18n-t25g63Be.js} +81 -81
  85. package/dist/_chunks/{vue-i18n-BJ7nxwO3.js.map → vue-i18n-t25g63Be.js.map} +1 -1
  86. package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js +3747 -0
  87. package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js.map +1 -0
  88. package/dist/ai-elements.es.js +1861 -1861
  89. package/dist/ai-elements.es.js.map +1 -1
  90. package/dist-vue/PkChatbot.js +1 -1
  91. package/dist-vue/PkChatbotAuth.js +1 -1
  92. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  93. package/dist-vue/PkChatbotMessages.js +1 -1
  94. package/dist-vue/PkChatbotViewChat.js +1 -1
  95. package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js → PkChatbot-Ch8FlZjC.js} +2 -2
  96. package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js.map → PkChatbot-Ch8FlZjC.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js → PkChatbotAuth-DvnmIukc.js} +2 -2
  98. package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js.map → PkChatbotAuth-DvnmIukc.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js → PkChatbotFeedbackForm-D0RNa7bE.js} +2 -2
  100. package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js.map → PkChatbotFeedbackForm-D0RNa7bE.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js → PkChatbotMessages-DGO0WIqx.js} +4 -4
  102. package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js.map → PkChatbotMessages-DGO0WIqx.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js → PkChatbotViewChat-Dkz8dq8N.js} +3 -3
  104. package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js.map → PkChatbotViewChat-Dkz8dq8N.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js → PkToolShowContactForm-CkkWxSSz.js} +2 -2
  106. package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js.map → PkToolShowContactForm-CkkWxSSz.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js → PkToolShowDiagram-D0NBG-Gy.js} +2 -2
  108. package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js.map → PkToolShowDiagram-D0NBG-Gy.js.map} +1 -1
  109. package/dist-vue/_chunks/{index.es-BT6Jr2yi.js → index.es-BKxzs6Sh.js} +2 -2
  110. package/dist-vue/_chunks/{index.es-BT6Jr2yi.js.map → index.es-BKxzs6Sh.js.map} +1 -1
  111. package/dist-vue/index.js +10 -10
  112. package/package.json +2 -2
  113. package/dist/_chunks/PkLazyImg-_389yCnQ.js +0 -34
  114. package/dist/_chunks/PkToolRequestGeolocation-T16QI-Uv.js +0 -69
  115. package/dist/_chunks/PkToolShowArtifact-D15GjBm6.js +0 -93
  116. package/dist/_chunks/PkToolShowComparison-Bp2rP2Hx.js +0 -66
  117. package/dist/_chunks/PkToolShowForm-ztQFyFd9.js +0 -365
  118. package/dist/_chunks/PkToolShowImageGallery-DiOR0vYa.js +0 -74
  119. package/dist/_chunks/PkToolShowMessage-BysjJ1oS.js +0 -77
  120. package/dist/_chunks/PkToolShowWebPages-CPNgXzrS.js +0 -78
  121. package/dist/_chunks/VvCombobox.es-CfRJtWOd.js +0 -2044
  122. package/dist/_chunks/VvTextarea.es-CAzFW944.js +0 -1166
  123. package/dist/_chunks/index.es-DvV0VhDa.js +0 -9832
  124. package/dist/_chunks/index.es-DvV0VhDa.js.map +0 -1
  125. package/dist/_chunks/useImageFallback-8kfLDjXm.js +0 -19
  126. package/dist/_chunks/useShortUrlResolver-BTJM8XRw.js +0 -72
  127. package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js +0 -5007
  128. package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ import { C as e, L as t, O as n, _ as r, bt as i, it as a, m as o, v as s, x as c } from "./vue.runtime.esm-bundler-B3bThTaf.js";
2
+ import { p as l } from "./index.es-gbmOq0Nu.js";
3
+ import { t as u } from "./useImageFallback-BAsLRsyg.js";
4
+ n(), a();
5
+ var d = ["src"], f = {
6
+ key: 1,
7
+ class: "flex items-center justify-center text-18 text-word-4"
8
+ }, p = /* @__PURE__ */ e({
9
+ __name: "PkLazyImg",
10
+ props: {
11
+ src: { type: String },
12
+ altSrc: { type: String },
13
+ fallbackIcon: { type: String }
14
+ },
15
+ setup(e) {
16
+ let n = e, { canShowImage: a, onImageError: p } = u(), m = o(() => {
17
+ if (a(n.src)) return n.src;
18
+ if (a(n.altSrc)) return n.altSrc;
19
+ });
20
+ return (n, a) => {
21
+ let o = l;
22
+ return m.value ? (t(), s("img", {
23
+ key: 0,
24
+ src: m.value,
25
+ loading: "lazy",
26
+ onError: a[0] ||= (e) => i(p)(m.value)
27
+ }, null, 40, d)) : e.fallbackIcon ? (t(), s("span", f, [c(o, { name: e.fallbackIcon }, null, 8, ["name"])])) : r("", !0);
28
+ };
29
+ }
30
+ });
31
+ //#endregion
32
+ export { p as t };
33
+
34
+ //# sourceMappingURL=PkLazyImg-CyeqD59M.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PkLazyImg-_389yCnQ.js","names":[],"sources":["../../../../packages/components/src/PkLazyImg.vue","../../../../packages/components/src/PkLazyImg.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n import { computed } from 'vue'\n import { useImageFallback } from 'composables'\n\n const props = defineProps<{\n src: string\n /** Second-best source, tried when `src` fails (e.g. og:image -> favicon). */\n altSrc?: string\n /**\n * Icon rendered in place of the image once every source has failed.\n * Without it the element is dropped, leaving no gap in the layout.\n */\n fallbackIcon?: string\n }>()\n\n // Degrade src -> altSrc -> icon. The failure is tracked per url, so a\n // re-render keeps the fallback instead of re-requesting a dead source.\n const { canShowImage, onImageError } = useImageFallback()\n const currentSrc = computed(() => {\n if (canShowImage(props.src)) {\n return props.src\n }\n if (canShowImage(props.altSrc)) {\n return props.altSrc\n }\n return undefined\n })\n</script>\n\n<template>\n <img\n v-if=\"currentSrc\"\n :src=\"currentSrc\"\n loading=\"lazy\"\n @error=\"onImageError(currentSrc)\" />\n <span\n v-else-if=\"fallbackIcon\"\n class=\"flex items-center justify-center text-18 text-word-4\">\n <VvIcon :name=\"fallbackIcon\" />\n </span>\n</template>\n","<script lang=\"ts\" setup>\n import { computed } from 'vue'\n import { useImageFallback } from 'composables'\n\n const props = defineProps<{\n src: string\n /** Second-best source, tried when `src` fails (e.g. og:image -> favicon). */\n altSrc?: string\n /**\n * Icon rendered in place of the image once every source has failed.\n * Without it the element is dropped, leaving no gap in the layout.\n */\n fallbackIcon?: string\n }>()\n\n // Degrade src -> altSrc -> icon. The failure is tracked per url, so a\n // re-render keeps the fallback instead of re-requesting a dead source.\n const { canShowImage, onImageError } = useImageFallback()\n const currentSrc = computed(() => {\n if (canShowImage(props.src)) {\n return props.src\n }\n if (canShowImage(props.altSrc)) {\n return props.altSrc\n }\n return undefined\n })\n</script>\n\n<template>\n <img\n v-if=\"currentSrc\"\n :src=\"currentSrc\"\n loading=\"lazy\"\n @error=\"onImageError(currentSrc)\" />\n <span\n v-else-if=\"fallbackIcon\"\n class=\"flex items-center justify-center text-18 text-word-4\">\n <VvIcon :name=\"fallbackIcon\" />\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;EAII,IAAM,IAAQ,GAaR,EAAE,iBAAc,oBAAiB,EAAiB,GAClD,IAAa,QAAe;GAC9B,IAAI,EAAa,EAAM,GAAG,GACtB,OAAO,EAAM;GAEjB,IAAI,EAAa,EAAM,MAAM,GACzB,OAAO,EAAM;EAGrB,CAAC;;;GAKS,OAAA,EAAA,SADV,EAAA,GAAA,EAIwC,OAAA;;IAFnC,KAAK,EAAA;IACN,SAAQ;IACP,SAAK,AAAA,EAAA,QAAA,MAAE,EAAA,CAAA,CAAY,CAAC,EAAA,KAAU;GAEpB,GAAA,MAAA,IAAA,CAAA,KAAA,EAAA,gBADf,EAAA,GAAA,EAIO,QAJP,GAIO,CADH,EAA+B,GAAA,EAAtB,MAAM,EAAA,aAAY,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA"}
1
+ {"version":3,"file":"PkLazyImg-CyeqD59M.js","names":[],"sources":["../../../../packages/components/src/PkLazyImg.vue","../../../../packages/components/src/PkLazyImg.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n import { computed } from 'vue'\n import { useImageFallback } from 'composables'\n\n const props = defineProps<{\n src: string\n /** Second-best source, tried when `src` fails (e.g. og:image -> favicon). */\n altSrc?: string\n /**\n * Icon rendered in place of the image once every source has failed.\n * Without it the element is dropped, leaving no gap in the layout.\n */\n fallbackIcon?: string\n }>()\n\n // Degrade src -> altSrc -> icon. The failure is tracked per url, so a\n // re-render keeps the fallback instead of re-requesting a dead source.\n const { canShowImage, onImageError } = useImageFallback()\n const currentSrc = computed(() => {\n if (canShowImage(props.src)) {\n return props.src\n }\n if (canShowImage(props.altSrc)) {\n return props.altSrc\n }\n return undefined\n })\n</script>\n\n<template>\n <img\n v-if=\"currentSrc\"\n :src=\"currentSrc\"\n loading=\"lazy\"\n @error=\"onImageError(currentSrc)\" />\n <span\n v-else-if=\"fallbackIcon\"\n class=\"flex items-center justify-center text-18 text-word-4\">\n <VvIcon :name=\"fallbackIcon\" />\n </span>\n</template>\n","<script lang=\"ts\" setup>\n import { computed } from 'vue'\n import { useImageFallback } from 'composables'\n\n const props = defineProps<{\n src: string\n /** Second-best source, tried when `src` fails (e.g. og:image -> favicon). */\n altSrc?: string\n /**\n * Icon rendered in place of the image once every source has failed.\n * Without it the element is dropped, leaving no gap in the layout.\n */\n fallbackIcon?: string\n }>()\n\n // Degrade src -> altSrc -> icon. The failure is tracked per url, so a\n // re-render keeps the fallback instead of re-requesting a dead source.\n const { canShowImage, onImageError } = useImageFallback()\n const currentSrc = computed(() => {\n if (canShowImage(props.src)) {\n return props.src\n }\n if (canShowImage(props.altSrc)) {\n return props.altSrc\n }\n return undefined\n })\n</script>\n\n<template>\n <img\n v-if=\"currentSrc\"\n :src=\"currentSrc\"\n loading=\"lazy\"\n @error=\"onImageError(currentSrc)\" />\n <span\n v-else-if=\"fallbackIcon\"\n class=\"flex items-center justify-center text-18 text-word-4\">\n <VvIcon :name=\"fallbackIcon\" />\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;EAII,IAAM,IAAQ,GAaR,EAAE,iBAAc,oBAAiB,EAAiB,GAClD,IAAa,QAAe;GAC9B,IAAI,EAAa,EAAM,GAAG,GACtB,OAAO,EAAM;GAEjB,IAAI,EAAa,EAAM,MAAM,GACzB,OAAO,EAAM;EAGrB,CAAC;;;GAKS,OAAA,EAAA,SADV,EAAA,GAAA,EAIwC,OAAA;;IAFnC,KAAK,EAAA;IACN,SAAQ;IACP,SAAK,AAAA,EAAA,QAAA,MAAE,EAAA,CAAA,CAAY,CAAC,EAAA,KAAU;GAEpB,GAAA,MAAA,IAAA,CAAA,KAAA,EAAA,gBADf,EAAA,GAAA,EAIO,QAJP,GAIO,CADH,EAA+B,GAAA,EAAtB,MAAM,EAAA,aAAY,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA"}
@@ -1,9 +1,9 @@
1
- import { F as e, I as t, P as n, R as r, Y as i, Z as a, h as o, k as s, w as c, y as l } from "./vue.runtime.esm-bundler-DF2of3lp.js";
2
- import { r as u } from "./vue-i18n-BJ7nxwO3.js";
1
+ import { C as e, F as t, J as n, L as r, N as i, O as a, P as o, X as s, m as c, v as l } from "./vue.runtime.esm-bundler-B3bThTaf.js";
2
+ import { r as u } from "./vue-i18n-t25g63Be.js";
3
3
  import { n as d, t as ee } from "./cdn-css-JUUNhyQ6.js";
4
- import "./src-BjFv9Ag8.js";
4
+ import "./src-CIEdKLKO.js";
5
5
  import { n as f } from "./url-validation-uLMZ5-AU.js";
6
- import { n as p } from "./useShortUrlResolver-BTJM8XRw.js";
6
+ import { n as p } from "./useShortUrlResolver--HRa6Od3.js";
7
7
  import { t as te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
8
  //#region ../../packages/utils/src/citations.ts
9
9
  var ne = /[ \t]*\uE200[^\uE201]*\uE201/g, re = /[ \t]*(?:cite|filecite|videocite|audiocite|imagecite|screenshot)(?:turn\d+[a-z]+\d+)+/gi, ie = /[\uE200-\uE20F]/g;
@@ -2009,8 +2009,8 @@ function Rn(...e) {
2009
2009
  //#region ../../packages/components/src/chat/PkStreamingMarkdown.vue?vue&type=script&setup=true&lang.ts
2010
2010
  $.use = Rn, $.walkTokens = function(e, t) {
2011
2011
  return Q.walkTokens(e, t);
2012
- }, $.parseInline = Q.parseInline, $.Parser = X, $.parser = X.parse, $.Renderer = Y, $.TextRenderer = Ln, $.Lexer = J, $.lexer = J.lex, $.Tokenizer = q, $.Hooks = Z, $.parse = $, $.options, $.setOptions, $.walkTokens, $.parseInline, X.parse, J.lex, s();
2013
- var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2012
+ }, $.parseInline = Q.parseInline, $.Parser = X, $.parser = X.parse, $.Renderer = Y, $.TextRenderer = Ln, $.Lexer = J, $.lexer = J.lex, $.Tokenizer = q, $.Hooks = Z, $.parse = $, $.options, $.setOptions, $.walkTokens, $.parseInline, X.parse, J.lex, a();
2013
+ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ e({
2014
2014
  __name: "PkStreamingMarkdown",
2015
2015
  props: {
2016
2016
  markdown: {
@@ -2034,10 +2034,10 @@ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2034
2034
  default: !1
2035
2035
  }
2036
2036
  },
2037
- setup(s) {
2038
- let c = s, { t: te } = u({ useScope: "global" }), ne = null;
2037
+ setup(e) {
2038
+ let a = e, { t: te } = u({ useScope: "global" }), ne = null;
2039
2039
  function re() {
2040
- return ne ||= import("./dist-BvSGMyWS.js"), ne;
2040
+ return ne ||= import("./dist-BgJVX4FG.js"), ne;
2041
2041
  }
2042
2042
  let ie = null;
2043
2043
  function oe() {
@@ -2132,7 +2132,7 @@ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2132
2132
  de,
2133
2133
  Ct,
2134
2134
  g
2135
- ], v = i("container"), { resolveText: fe } = p(), y = fe(() => c.markdown), b = o(() => {
2135
+ ], v = n("container"), { resolveText: fe } = p(), y = fe(() => a.markdown), b = c(() => {
2136
2136
  let e = _.reduce((e, t) => t(e), y.value);
2137
2137
  return $.parse(e, {
2138
2138
  async: !1,
@@ -2141,29 +2141,29 @@ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2141
2141
  });
2142
2142
  });
2143
2143
  async function pe() {
2144
- if (c.loading) return;
2145
- await n();
2144
+ if (a.loading) return;
2145
+ await i();
2146
2146
  let e = v.value?.querySelectorAll("pre.mermaid:not([data-rendered])");
2147
2147
  if (!e?.length) return;
2148
- let { renderMermaidSVG: t, THEMES: r } = await re(), i = c.isDark ? r["github-dark"] : r["github-light"];
2148
+ let { renderMermaidSVG: t, THEMES: n } = await re(), r = a.isDark ? n["github-dark"] : n["github-light"];
2149
2149
  for (let n of Array.from(e)) {
2150
2150
  if (!n.isConnected) continue;
2151
2151
  let e = n.textContent?.trim();
2152
2152
  if (e) try {
2153
- let r = t(e, i);
2154
- n.isConnected && (n.dataset.code = e, n.innerHTML = r, n.setAttribute("data-rendered", "true"));
2153
+ let i = t(e, r);
2154
+ n.isConnected && (n.dataset.code = e, n.innerHTML = i, n.setAttribute("data-rendered", "true"));
2155
2155
  } catch {}
2156
2156
  }
2157
2157
  }
2158
2158
  async function me() {
2159
- await n();
2159
+ await i();
2160
2160
  let e = v.value?.querySelectorAll("pre:not(.mermaid) > code:not([data-highlighted])");
2161
2161
  if (!e?.length) return;
2162
2162
  let t = (await import("https://cdn.jsdelivr.net/npm/highlight.js@11/es/common.js")).default;
2163
2163
  for (let n of e) t.highlightElement(n), n.setAttribute("data-highlighted", "true");
2164
2164
  }
2165
2165
  async function he() {
2166
- await n();
2166
+ await i();
2167
2167
  let e = v.value?.querySelectorAll(".katex-pending");
2168
2168
  if (!e?.length) return;
2169
2169
  let t = await oe();
@@ -2182,15 +2182,15 @@ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2182
2182
  }
2183
2183
  }
2184
2184
  async function ge() {
2185
- await n();
2185
+ await i();
2186
2186
  let e = v.value?.querySelectorAll("pre.mermaid[data-rendered]");
2187
2187
  if (!e?.length) return;
2188
- let { renderMermaidSVG: t, THEMES: r } = await re(), i = c.isDark ? r["github-dark"] : r["github-light"];
2188
+ let { renderMermaidSVG: t, THEMES: n } = await re(), r = a.isDark ? n["github-dark"] : n["github-light"];
2189
2189
  for (let n of Array.from(e)) {
2190
2190
  if (!n.isConnected) continue;
2191
2191
  let e = n.dataset.code;
2192
2192
  if (e) try {
2193
- n.innerHTML = t(e, i);
2193
+ n.innerHTML = t(e, r);
2194
2194
  } catch {}
2195
2195
  }
2196
2196
  }
@@ -2203,13 +2203,13 @@ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2203
2203
  }
2204
2204
  t(() => {
2205
2205
  v.value?.addEventListener("error", x, !0);
2206
- }), e(() => {
2206
+ }), o(() => {
2207
2207
  v.value?.removeEventListener("error", x, !0);
2208
- }), a([b, () => c.loading], pe, { immediate: !0 }), a(() => c.isDark, ge), a(b, me, { immediate: !0 }), a(b, he, { immediate: !0 });
2208
+ }), s([b, () => a.loading], pe, { immediate: !0 }), s(() => a.isDark, ge), s(b, me, { immediate: !0 }), s(b, he, { immediate: !0 });
2209
2209
  let S = 0;
2210
2210
  function _e(e, t) {
2211
2211
  let n = document.createElement("span");
2212
- return n.style.cssText = `animation:ft-${c.animation} ${c.animationDuration} ease-out ${t}ms both;display:inline-block`, n.textContent = e, n.addEventListener("animationend", () => {
2212
+ return n.style.cssText = `animation:ft-${a.animation} ${a.animationDuration} ease-out ${t}ms both;display:inline-block`, n.textContent = e, n.addEventListener("animationend", () => {
2213
2213
  let t = n.parentNode;
2214
2214
  t && (t.replaceChild(document.createTextNode(e), n), t.normalize());
2215
2215
  }, { once: !0 }), n;
@@ -2233,7 +2233,7 @@ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2233
2233
  return n;
2234
2234
  }
2235
2235
  function ye() {
2236
- if (!v.value || !c.loading || !c.animation) return;
2236
+ if (!v.value || !a.loading || !a.animation) return;
2237
2237
  let e = C(v.value), t = 0, n = 0;
2238
2238
  for (let r of e) {
2239
2239
  let e = r.textContent || "", i = t, a = t + e.length;
@@ -2250,9 +2250,9 @@ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2250
2250
  }
2251
2251
  S = t;
2252
2252
  }
2253
- return a(b, async () => {
2254
- await n(), ye();
2255
- }, { immediate: !0 }), a(() => c.markdown, (e, t) => {
2253
+ return s(b, async () => {
2254
+ await i(), ye();
2255
+ }, { immediate: !0 }), s(() => a.markdown, (e, t) => {
2256
2256
  (!e || t && e.length < t.length) && (S = 0);
2257
2257
  }), (e, t) => (r(), l("div", {
2258
2258
  ref: "container",
@@ -2263,4 +2263,4 @@ var zn = ["innerHTML"], Bn = /*#__PURE__*/ te(/* @__PURE__ */ c({
2263
2263
  //#endregion
2264
2264
  export { Bn as t };
2265
2265
 
2266
- //# sourceMappingURL=PkStreamingMarkdown-YJDdYD0E.js.map
2266
+ //# sourceMappingURL=PkStreamingMarkdown-DIkusrTI.js.map