@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
@@ -1,69 +0,0 @@
1
- import { I as e, R as t, S as n, at as r, f as i, g as a, h as o, k as s, kt as c, qt as l, v as u, w as d, x as f, xt as p, y as m } from "./vue.runtime.esm-bundler-DF2of3lp.js";
2
- import { r as h } from "./vue-i18n-BJ7nxwO3.js";
3
- import { u as g } from "./index.es-DvV0VhDa.js";
4
- import { u as _ } from "./Agent-hWgZhu7L.js";
5
- s(), r(), c();
6
- var v = { class: "flex items-center gap-6 text-12 text-word-3 border border-surface-3 rounded-xl px-sm py-10" }, y = /* @__PURE__ */ d({
7
- __name: "PkToolRequestGeolocation",
8
- props: {
9
- part: { type: null },
10
- reverseGeocode: { type: Function },
11
- callLive: { type: Boolean }
12
- },
13
- emits: ["result"],
14
- setup(r, { emit: s }) {
15
- let c = r, d = s, { t: y } = h({ useScope: "global" }), b = o(() => c.part), x = o(() => b.value.state ?? "unknown"), S = o(() => _(b.value.output)), C = o(() => x.value === "output-available" && !S.value), w = o(() => {
16
- let e = b.value.output;
17
- if (!(!e || typeof e == "string" || "error" in e)) return e;
18
- }), T = o(() => {
19
- let e = b.value.output;
20
- if (!(!e || typeof e == "string" || !("error" in e))) return e;
21
- });
22
- function E(e) {
23
- return e === 1 ? "permission_denied" : e === 3 ? "timeout" : "position_unavailable";
24
- }
25
- return e(() => {
26
- if (x.value === "input-available" || S.value && c.callLive === !0) {
27
- if (!navigator.geolocation) {
28
- d("result", { error: "position_unavailable" });
29
- return;
30
- }
31
- navigator.geolocation.getCurrentPosition(async (e) => {
32
- let { latitude: t, longitude: n, accuracy: r } = e.coords, i = c.reverseGeocode ? await c.reverseGeocode(t, n).catch(() => void 0) : void 0;
33
- d("result", {
34
- latitude: t,
35
- longitude: n,
36
- accuracy: r,
37
- city: i
38
- });
39
- }, (e) => {
40
- d("result", { error: E(e.code) });
41
- }, { timeout: 15e3 });
42
- }
43
- }), (e, r) => {
44
- let o = g;
45
- return t(), m("div", v, [C.value ? w.value ? (t(), m(i, { key: 1 }, [n(o, {
46
- name: "ri:map-pin-line",
47
- class: "text-16"
48
- }), a("span", null, [f(l(e.$n(w.value.latitude, {
49
- style: "decimal",
50
- minimumFractionDigits: 5,
51
- maximumFractionDigits: 5
52
- })) + ", " + l(e.$n(w.value.longitude, {
53
- style: "decimal",
54
- minimumFractionDigits: 5,
55
- maximumFractionDigits: 5
56
- })) + " ", 1), w.value.accuracy === void 0 ? u("", !0) : (t(), m(i, { key: 0 }, [f(" (±" + l(e.$n(w.value.accuracy, {
57
- style: "unit",
58
- unit: "meter"
59
- })) + ") ", 1)], 64))])], 64)) : T.value ? (t(), m(i, { key: 2 }, [r[0] ||= a("span", { class: "i-vv-alert-circle text-16 shrink-0 text-danger" }, null, -1), a("span", null, l(T.value.error === "permission_denied" ? p(y)("message.geolocationPermissionDenied") : p(y)("message.geolocationUnavailable")), 1)], 64)) : u("", !0) : (t(), m(i, { key: 0 }, [n(o, {
60
- name: "line-md:loading-loop",
61
- class: "text-16"
62
- }), a("span", null, l(p(y)("messagePart.requestGeolocation")), 1)], 64))]);
63
- };
64
- }
65
- });
66
- //#endregion
67
- export { y as default };
68
-
69
- //# sourceMappingURL=PkToolRequestGeolocation-T16QI-Uv.js.map
@@ -1,93 +0,0 @@
1
- import { Ht as e, R as t, S as n, Z as r, _ as i, at as a, g as o, h as s, k as c, kt as l, mt as u, qt as d, w as f, x as p, xt as m, y as h } from "./vue.runtime.esm-bundler-DF2of3lp.js";
2
- import { t as g } from "./PkStreamingMarkdown-YJDdYD0E.js";
3
- import { i as _ } from "./dist-TFHdNK0W.js";
4
- import { s as v } from "./index.es-DvV0VhDa.js";
5
- c(), l(), a();
6
- var y = ["innerHTML"], b = /* @__PURE__ */ f({
7
- inheritAttrs: !1,
8
- __name: "PkCode",
9
- props: {
10
- code: { type: null },
11
- language: { type: String },
12
- line: { type: Boolean }
13
- },
14
- setup(n) {
15
- let i = n, a = u(""), c = s(() => typeof i.code == "string" ? i.code : JSON.stringify(i.code, null, 2));
16
- async function l() {
17
- let e = (await import("https://cdn.jsdelivr.net/npm/highlight.js@11/es/common.js")).default;
18
- try {
19
- let t = i.language ? e.highlight(c.value, { language: i.language }) : e.highlightAuto(c.value);
20
- a.value = t.value;
21
- } catch {
22
- a.value = c.value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
23
- }
24
- }
25
- return r(c, l, { immediate: !0 }), (r, i) => (t(), h("pre", { class: e(r.$attrs.class ? r.$attrs.class : "font-mono leading-snug text-smaller bg-surface-1") }, [
26
- i[0] ||= p(" ", -1),
27
- o("code", {
28
- class: e([
29
- "hljs",
30
- n.line ? "whitespace-pre-line" : "whitespace-pre",
31
- n.language
32
- ]),
33
- innerHTML: a.value
34
- }, null, 10, y),
35
- i[1] ||= p("\n ", -1)
36
- ], 2));
37
- }
38
- });
39
- c(), l(), a();
40
- var x = { class: "border border-surface-3 rounded-xl w-full overflow-hidden" }, S = { class: "px-sm py-6 font-bold bg-surface-1 text-12 border-b border-surface-3 text-word-3 flex justify-between items-center" }, C = { class: "flex flex-col items-start gap-4" }, w = { class: "text-10 opacity-60 font-normal" }, T = { class: "px-sm py-10 bg-surface" }, E = /* @__PURE__ */ f({
41
- __name: "PkToolShowArtifact",
42
- props: { part: { type: null } },
43
- setup(r) {
44
- let { copy: a, copied: c } = _(), l = r, u = s(() => l.part), f = s(() => u.value.input?.artifactType && {
45
- code: "Code",
46
- document: "Document",
47
- markdown: "Markdown",
48
- json: "JSON",
49
- xml: "XML",
50
- csv: "CSV",
51
- html: "HTML",
52
- yaml: "YAML",
53
- sql: "SQL",
54
- text: "Text"
55
- }[u.value.input.artifactType] || "Artifact"), p = s(() => u.value.input?.language ? ` (${u.value.input.language})` : ""), y = s(() => u.value.input?.artifactType === "code" || u.value.input?.artifactType === "json" || u.value.input?.artifactType === "xml" || u.value.input?.artifactType === "yaml" || u.value.input?.artifactType === "html" || u.value.input?.artifactType === "sql"), E = s(() => u.value.input?.artifactType === "markdown"), D = s(() => u.value.input?.language ? u.value.input.language : u.value.input?.artifactType && {
56
- json: "json",
57
- xml: "xml",
58
- yaml: "yaml",
59
- html: "html",
60
- sql: "sql"
61
- }[u.value.input.artifactType] || "plaintext");
62
- return (r, s) => {
63
- let l = v;
64
- return t(), h("div", x, [o("div", S, [o("div", C, [o("span", null, d(u.value?.input?.title), 1), o("span", w, d(f.value) + d(p.value), 1)]), n(l, {
65
- icon: m(c) ? "ri:check-line" : "ri:file-copy-line",
66
- label: m(c) ? r.$t("action.copied") : r.$t("action.copy"),
67
- modifiers: "action-quiet-small",
68
- title: r.$t("action.copy"),
69
- class: "shrink-0",
70
- onClick: s[0] ||= (e) => m(a)(u.value?.input?.content || "")
71
- }, null, 8, [
72
- "icon",
73
- "label",
74
- "title"
75
- ])]), o("div", T, [y.value ? (t(), i(b, {
76
- key: 0,
77
- code: u.value?.input?.content,
78
- language: D.value
79
- }, null, 8, ["code", "language"])) : E.value ? (t(), i(g, {
80
- key: 1,
81
- markdown: u.value?.input?.content,
82
- class: "wysiwyg text-word-2"
83
- }, null, 8, ["markdown"])) : (t(), h("pre", {
84
- key: 2,
85
- class: e(["text-word-2 whitespace-pre-wrap break-words", { italic: u.value?.input?.artifactType === "document" || u.value?.input?.artifactType === "text" }])
86
- }, d(u.value?.input?.content), 3))])]);
87
- };
88
- }
89
- });
90
- //#endregion
91
- export { E as default };
92
-
93
- //# sourceMappingURL=PkToolShowArtifact-D15GjBm6.js.map
@@ -1,66 +0,0 @@
1
- import { B as e, Ht as t, R as n, S as r, at as i, et as a, f as o, g as s, h as c, k as l, kt as u, qt as d, v as f, w as p, x as m, xt as h, y as g } from "./vue.runtime.esm-bundler-DF2of3lp.js";
2
- import { i as _ } from "./dist-TFHdNK0W.js";
3
- import { s as v, t as y, u as b } from "./index.es-DvV0VhDa.js";
4
- l(), u(), i();
5
- var x = {
6
- key: 0,
7
- class: "border border-surface-3 rounded-xl w-full overflow-hidden"
8
- }, S = { class: "px-sm py-6 bg-surface-1 min-h-40 text-12 border-b border-surface-3 text-word-3 flex items-center gap-8" }, C = { class: "font-bold" }, w = { class: "overflow-x-auto" }, T = { class: "w-full text-12 border-collapse bg-surface" }, E = {
9
- key: 0,
10
- class: "ml-4"
11
- }, D = /* @__PURE__ */ p({
12
- __name: "PkToolShowComparison",
13
- props: { part: { type: null } },
14
- setup(i) {
15
- let l = i, { copy: u, copied: p } = _(), D = c(() => l.part), O = c(() => {
16
- let e = D.value.input?.items;
17
- return !e || e.length === 0 ? [] : Object.keys(e[0].values);
18
- }), k = () => {
19
- let e = D.value.input?.items;
20
- if (!e) return;
21
- let t = ["", ...e.map((e) => e.name)].join(" "), n = O.value.map((t) => [t.replace(/_/g, " "), ...e.map((e) => e.values[t] ?? "")].join(" "));
22
- u([t, ...n].join("\n"));
23
- };
24
- return (i, c) => {
25
- let l = b, u = v, _ = y;
26
- return D.value?.input?.items?.length ? (n(), g("div", x, [s("div", S, [
27
- r(l, {
28
- name: "ri:scales-line",
29
- class: "text-16"
30
- }),
31
- s("strong", C, d(D.value.input.title ?? i.$t("label.comparison")), 1),
32
- r(_, {
33
- modifiers: "compact",
34
- class: "ml-auto shrink-0"
35
- }, {
36
- default: a(() => [r(u, {
37
- modifiers: "action-quiet-small",
38
- icon: h(p) ? "ri:check-line" : "ri:file-copy-line",
39
- label: h(p) ? i.$t("action.copied") : i.$t("action.copy"),
40
- onClick: k
41
- }, null, 8, ["icon", "label"])]),
42
- _: 1
43
- })
44
- ]), s("div", w, [s("table", T, [s("thead", null, [s("tr", null, [c[0] ||= s("th", { class: "text-left text-word-3 font-medium p-8 border-b border-surface-3 min-w-32" }, null, -1), (n(!0), g(o, null, e(D.value.input.items, (e) => (n(), g("th", {
45
- key: e.name,
46
- class: t(["text-center font-semibold text-word-1 p-8 border-b border-surface-3 min-w-24", e.highlighted ? "bg-primary/5 border-primary/20" : ""])
47
- }, [m(d(e.name) + " ", 1), e.highlighted ? (n(), g("span", E, "⭐")) : f("", !0)], 2))), 128))])]), s("tbody", null, [(n(!0), g(o, null, e(O.value, (r, i) => (n(), g("tr", {
48
- key: r,
49
- class: t({ "bg-surface-1": i % 2 != 0 })
50
- }, [s("td", { class: t(["text-word-3 font-medium p-8 whitespace-nowrap", { "border-b border-surface-3": i !== O.value.length - 1 }]) }, d(r.replace(/_/g, " ")), 3), (n(!0), g(o, null, e(D.value.input.items, (e) => (n(), g("td", {
51
- key: e.name,
52
- class: t(["text-center p-8", {
53
- "border-b border-surface-3": i !== O.value.length - 1,
54
- "bg-surface-info": e.highlighted,
55
- "text-success": e.values[r] === "✓",
56
- "text-danger": e.values[r] === "✗",
57
- "text-word-2": e.values[r] !== "✓" && e.values[r] !== "✗"
58
- }])
59
- }, d(e.values[r] ?? "-"), 3))), 128))], 2))), 128))])])])])) : f("", !0);
60
- };
61
- }
62
- });
63
- //#endregion
64
- export { D as default };
65
-
66
- //# sourceMappingURL=PkToolShowComparison-Bp2rP2Hx.js.map
@@ -1,365 +0,0 @@
1
- import { B as e, Ht as t, M as n, N as r, R as i, S as a, V as o, Wt as s, Z as c, _ as l, at as u, b as d, d as f, et as p, f as m, ft as ee, g as h, h as g, k as _, kt as v, mt as y, q as b, qt as x, r as S, u as te, v as C, w, x as T, xt as E, y as D } from "./vue.runtime.esm-bundler-DF2of3lp.js";
2
- import { r as ne } from "./vue-i18n-BJ7nxwO3.js";
3
- import { t as re } from "./PkStreamingMarkdown-YJDdYD0E.js";
4
- import { f as O, i as k, l as ie, m as A, o as j, s as ae, u as oe } from "./index.es-DvV0VhDa.js";
5
- import { u as M } from "./Agent-hWgZhu7L.js";
6
- _(), v();
7
- //#endregion
8
- //#region ../../packages/components/src/PkEditorRadioButtons.vue
9
- var se = /* @__PURE__ */ w({
10
- __name: "PkEditorRadioButtons",
11
- props: /*@__PURE__*/ n({
12
- name: { type: String },
13
- required: { type: Boolean },
14
- options: { type: Array },
15
- readonly: { type: Boolean },
16
- disabled: { type: Boolean },
17
- modifiers: { type: [String, Array] }
18
- }, {
19
- modelValue: { type: [
20
- String,
21
- Number,
22
- Boolean,
23
- Symbol,
24
- Array
25
- ] },
26
- modelModifiers: {}
27
- }),
28
- emits: ["update:modelValue"],
29
- setup(t) {
30
- let n = t, a = b(t, "modelValue"), s = g(() => [...n.modifiers ? Array.isArray(n.modifiers) ? n.modifiers : [n.modifiers] : [], "button"]);
31
- return (n, c) => {
32
- let u = A, d = k;
33
- return i(), l(d, {
34
- modelValue: a.value,
35
- "onUpdate:modelValue": c[0] ||= (e) => a.value = e,
36
- name: t.name,
37
- modifiers: "buttons"
38
- }, {
39
- default: p(() => [(i(!0), D(m, null, e(t.options, (e, a) => (i(), l(u, {
40
- key: a,
41
- name: t.name,
42
- required: t.required,
43
- readonly: t.readonly,
44
- disabled: t.disabled,
45
- value: e.value,
46
- modifiers: s.value
47
- }, {
48
- default: p(() => [o(n.$slots, e.value, r({ ref_for: !0 }, { option: e }), () => [T(x(e.label), 1)])]),
49
- _: 2
50
- }, 1032, [
51
- "name",
52
- "required",
53
- "readonly",
54
- "disabled",
55
- "value",
56
- "modifiers"
57
- ]))), 128))]),
58
- _: 3
59
- }, 8, ["modelValue", "name"]);
60
- };
61
- }
62
- });
63
- _(), v();
64
- //#endregion
65
- //#region ../../packages/components/src/PkEditorCheckboxButtons.vue
66
- var ce = /* @__PURE__ */ w({
67
- __name: "PkEditorCheckboxButtons",
68
- props: /*@__PURE__*/ n({
69
- name: { type: String },
70
- required: { type: Boolean },
71
- options: { type: Array },
72
- readonly: { type: Boolean },
73
- disabled: { type: Boolean }
74
- }, {
75
- modelValue: {},
76
- modelModifiers: {}
77
- }),
78
- emits: ["update:modelValue"],
79
- setup(t) {
80
- let n = b(t, "modelValue");
81
- return (a, s) => {
82
- let c = O, u = j;
83
- return i(), l(u, {
84
- modelValue: n.value,
85
- "onUpdate:modelValue": s[0] ||= (e) => n.value = e,
86
- name: t.name,
87
- modifiers: "buttons"
88
- }, {
89
- default: p(() => [(i(!0), D(m, null, e(t.options, (e, n) => (i(), l(c, {
90
- key: n,
91
- name: t.name,
92
- required: t.required,
93
- readonly: t.readonly,
94
- disabled: t.disabled,
95
- value: e.value,
96
- modifiers: "button"
97
- }, {
98
- default: p(() => [o(a.$slots, String(e.value), r({ ref_for: !0 }, { option: e }), () => [T(x(e.label), 1)])]),
99
- _: 2
100
- }, 1032, [
101
- "name",
102
- "required",
103
- "readonly",
104
- "disabled",
105
- "value"
106
- ]))), 128))]),
107
- _: 3
108
- }, 8, ["modelValue", "name"]);
109
- };
110
- }
111
- });
112
- _(), v(), u(), S();
113
- var le = {
114
- key: 0,
115
- class: "border border-surface-3 rounded-xl w-full overflow-hidden flex flex-col transition-all bg-surface"
116
- }, ue = {
117
- key: 0,
118
- class: "text-12 border-b border-surface-3 text-word-3 bg-surface-1"
119
- }, de = {
120
- key: 1,
121
- class: "flex flex-col gap-4 p-sm"
122
- }, fe = { class: "flex justify-between text-10 text-word-3" }, pe = { class: "h-4 bg-surface-3 rounded-full overflow-hidden" }, me = { class: "px-sm py-16 flex flex-col gap-12" }, he = { class: "leading-normal text-12" }, N = { class: "font-semibold" }, P = { class: "text-12" }, F = { class: "font-semibold" }, I = {
123
- key: 0,
124
- class: "text-word-3"
125
- }, L = { class: "text-12" }, R = { class: "font-semibold" }, ge = {
126
- key: 0,
127
- class: "text-word-3"
128
- }, _e = {
129
- key: 2,
130
- class: "flex flex-col gap-6 w-full"
131
- }, ve = {
132
- key: 0,
133
- class: "px-sm pb-sm border-t border-surface-3"
134
- }, ye = {
135
- key: 1,
136
- class: "px-sm py-10 bg-surface border-t border-surface-3 flex justify-between gap-12"
137
- }, be = { key: 1 }, z = { class: "px-sm py-12 bg-surface space-y-10" }, xe = { class: "flex flex-col gap-8" }, Se = { class: "text-12 text-word-3" }, Ce = { class: "text-12 text-word-2 font-semibold" }, we = { class: "px-sm py-12 bg-surface border-t border-surface-3 flex items-center gap-10" }, Te = { class: "w-20 h-20 rounded-full border border-success text-success flex items-center justify-center" }, Ee = { class: "flex flex-col" }, De = { class: "font-semibold text-12 text-word-1 leading-tight" }, B = /* @__PURE__ */ w({
138
- __name: "PkToolShowForm",
139
- props: {
140
- part: { type: null },
141
- allowCustomAnswer: { type: Boolean },
142
- answered: { type: Boolean }
143
- },
144
- emits: ["select"],
145
- setup(n, { emit: r }) {
146
- let o = n, u = r, { t: _, d: v } = ne({ useScope: "global" }), b = g(() => JSON.parse(JSON.stringify(o.part))), S = g(() => b.value.toolName === "showMultipleChoice" || b.value.type === "tool-showMultipleChoice"), w = g(() => M(b.value.output)), T = g(() => !o.answered && (b.value.state === "input-available" || w.value)), O = g(() => {
147
- let e = V.value;
148
- return e ? j.value.length === 1 && !e.allowFreeformInput && !o.allowCustomAnswer : !1;
149
- }), k = g(() => S.value && j.value.length === 1 && !V.value?.multiSelect), A = g(() => !!V.value?.options && !V.value?.multiSelect && (O.value || k.value)), j = g(() => {
150
- let e = b.value.input;
151
- return e?.steps?.length ? e.steps : e?.question && e?.options ? [{
152
- id: "legacy",
153
- question: e.question,
154
- options: e.options.map((e) => typeof e == "string" ? { label: e } : e)
155
- }] : [];
156
- }), B = y(0), V = g(() => j.value[B.value]), H = g(() => B.value > 0), U = g(() => B.value < j.value.length - 1), Oe = g(() => j.value.length > 1), W = g(() => Oe.value ? Math.round((B.value + 1) / j.value.length * 100) : null), G = ee({}), K = y("");
157
- c(B, () => {
158
- K.value = "";
159
- });
160
- let q = g({
161
- get: () => {
162
- let e = V.value ? G[V.value.id] : void 0;
163
- if (!(e == null || Array.isArray(e))) return e;
164
- },
165
- set: (e) => {
166
- V.value && (G[V.value.id] = e ?? null);
167
- }
168
- }), J = g({
169
- get: () => {
170
- let e = V.value ? G[V.value.id] : void 0;
171
- return Array.isArray(e) ? e : [];
172
- },
173
- set: (e) => {
174
- V.value && (G[V.value.id] = e ?? []);
175
- }
176
- });
177
- function Y(e) {
178
- if (!e || typeof e == "string") return;
179
- let t = e.answers;
180
- return Array.isArray(t) ? t : void 0;
181
- }
182
- c(() => b.value.output, (e) => {
183
- if (!e || M(e)) return;
184
- if (typeof e == "string") {
185
- j.value.length === 1 && (G[j.value[0].id] = e);
186
- return;
187
- }
188
- let t = Y(e);
189
- if (t) {
190
- for (let e of t) G[e.id] = e.value;
191
- return;
192
- }
193
- let n = e;
194
- for (let e of j.value) {
195
- let t = n[e.id];
196
- t !== void 0 && (G[e.id] = t);
197
- }
198
- }, { immediate: !0 });
199
- let ke = g(() => {
200
- let e = b.value.output;
201
- if (!e || M(e)) return;
202
- if (typeof e == "string") return e;
203
- let t = Y(e);
204
- if (t?.length === 1) {
205
- let e = t[0].value;
206
- return Array.isArray(e) ? e.join(", ") : String(e);
207
- }
208
- });
209
- c(ke, (e) => {
210
- !e || !V.value || (V.value.options ?? []).map((e) => e.label).includes(e) || (K.value = e);
211
- }, { immediate: !0 });
212
- let X = g(() => V.value?.options ? V.value.options.map((e) => ({
213
- label: e.label,
214
- value: e.label,
215
- description: e.description
216
- })) : []);
217
- function Z() {
218
- if (K.value.trim()) {
219
- $();
220
- return;
221
- }
222
- U.value ? B.value++ : Q();
223
- }
224
- function Ae() {
225
- H.value && B.value--;
226
- }
227
- function Q() {
228
- if (!T.value) return;
229
- let e = j.value.map((e) => ({
230
- id: e.id,
231
- value: G[e.id] ?? null
232
- }));
233
- if (k.value && !V.value?.allowFreeformInput) {
234
- let t = e[0].value;
235
- u("select", Array.isArray(t) ? t[0] : t);
236
- } else u("select", { answers: e });
237
- }
238
- function $() {
239
- let e = K.value.trim();
240
- e && (G[V.value.id] = e, K.value = "", j.value.length === 1 ? Q() : Z());
241
- }
242
- function je() {
243
- T.value && (O.value || k.value) && Q();
244
- }
245
- function Me(e) {
246
- let t = G[e.id];
247
- return t == null ? "—" : Array.isArray(t) ? t.join(", ") : e.type === "date" ? v(new Date(t), "short") : t;
248
- }
249
- return (n, r) => {
250
- let o = ie, c = ae, u = oe;
251
- return j.value.length ? (i(), D("div", le, [b.value.input?.title || T.value && j.value.length > 1 ? (i(), D("div", ue, [b.value.input?.title ? (i(), D("div", {
252
- key: 0,
253
- class: t(["px-sm py-10 font-bold", { "border-b border-surface-3": T.value && j.value.length > 1 }])
254
- }, x(b.value.input?.title), 3)) : C("", !0), T.value && j.value.length > 1 ? (i(), D("div", de, [h("div", fe, [h("span", null, x(E(_)("showForm.step", {
255
- current: B.value + 1,
256
- total: j.value.length
257
- })), 1), h("span", null, x(W.value) + "%", 1)]), h("div", pe, [h("div", {
258
- class: "h-full bg-word-4 transition-all duration-300",
259
- style: s({ width: `${W.value}%` })
260
- }, null, 4)])])) : C("", !0)])) : C("", !0), T.value ? (i(), D(m, { key: 1 }, [
261
- h("div", me, [h("div", he, [h("strong", N, x(V.value.question), 1), V.value.message ? (i(), l(re, {
262
- key: 0,
263
- markdown: V.value.message,
264
- class: "text-word-2 mt-4"
265
- }, null, 8, ["markdown"])) : C("", !0)]), V.value.options && V.value.multiSelect ? (i(), l(ce, {
266
- key: 0,
267
- modelValue: J.value,
268
- "onUpdate:modelValue": r[0] ||= (e) => J.value = e,
269
- name: V.value.id,
270
- options: X.value,
271
- readonly: !T.value,
272
- class: "mb-0",
273
- vertical: ""
274
- }, d({ _: 2 }, [e(X.value, (e) => ({
275
- name: e.value,
276
- fn: p(() => [h("div", P, [h("div", F, x(e.label), 1), e.description ? (i(), D("div", I, x(e.description), 1)) : C("", !0)])])
277
- }))]), 1032, [
278
- "modelValue",
279
- "name",
280
- "options",
281
- "readonly"
282
- ])) : V.value.options && !V.value.multiSelect ? (i(), l(se, {
283
- key: 1,
284
- modelValue: q.value,
285
- "onUpdate:modelValue": [r[1] ||= (e) => q.value = e, je],
286
- name: V.value.id,
287
- options: X.value,
288
- readonly: !T.value,
289
- vertical: "",
290
- class: "mb-0"
291
- }, d({ _: 2 }, [e(X.value, (e) => ({
292
- name: e.value,
293
- fn: p(() => [h("div", L, [h("div", R, x(e.label), 1), e.description ? (i(), D("div", ge, x(e.description), 1)) : C("", !0)])])
294
- }))]), 1032, [
295
- "modelValue",
296
- "name",
297
- "options",
298
- "readonly"
299
- ])) : V.value.options ? C("", !0) : (i(), D("div", _e, [(i(), l(o, {
300
- key: V.value.id,
301
- modelValue: q.value,
302
- "onUpdate:modelValue": r[2] ||= (e) => q.value = e,
303
- placeholder: V.value.placeholder || E(_)("placeholder.insert"),
304
- type: V.value.type,
305
- class: "w-full",
306
- name: V.value.id,
307
- modifiers: "compact rounded",
308
- disabled: !T.value,
309
- onKeyup: te(Z, ["enter"])
310
- }, null, 8, [
311
- "modelValue",
312
- "placeholder",
313
- "type",
314
- "name",
315
- "disabled"
316
- ]))]))]),
317
- V.value.allowFreeformInput && V.value.options ? (i(), D("div", ve, [h("form", {
318
- class: "flex gap-xs pt-sm",
319
- onSubmit: f($, ["prevent"])
320
- }, [(i(), l(o, {
321
- key: `${V.value.id}-custom`,
322
- modelValue: K.value,
323
- "onUpdate:modelValue": r[3] ||= (e) => K.value = e,
324
- class: "flex-1",
325
- name: `${V.value.id}-custom`,
326
- modifiers: "compact rounded",
327
- disabled: !T.value,
328
- placeholder: V.value.placeholder || E(_)("showForm.otherPlaceholder")
329
- }, null, 8, [
330
- "modelValue",
331
- "name",
332
- "disabled",
333
- "placeholder"
334
- ]))], 32)])) : C("", !0),
335
- A.value ? C("", !0) : (i(), D("div", ye, [H.value ? (i(), l(c, {
336
- key: 0,
337
- modifiers: "action-quiet",
338
- icon: "ri:arrow-left-s-line",
339
- label: E(_)("action.back"),
340
- onClick: f(Ae, ["stop"])
341
- }, null, 8, ["label"])) : (i(), D("div", be)), a(c, {
342
- modifiers: U.value ? "action-quiet" : "action-primary",
343
- icon: U.value ? "ri:arrow-right-s-line" : "ri:send-plane-2-line",
344
- "icon-position": "right",
345
- label: U.value ? E(_)("action.next") : E(_)("action.submit"),
346
- onClick: f(Z, ["stop"])
347
- }, null, 8, [
348
- "modifiers",
349
- "icon",
350
- "label"
351
- ])]))
352
- ], 64)) : (i(), D(m, { key: 2 }, [h("div", z, [h("ul", xe, [(i(!0), D(m, null, e(j.value, (e) => (i(), D("li", {
353
- key: e.id,
354
- class: "leading-normal"
355
- }, [h("div", Se, x(e.question), 1), h("span", Ce, x(Me(e)), 1)]))), 128))])]), h("div", we, [h("div", Te, [a(u, {
356
- name: "ri:check-line",
357
- class: "text-12"
358
- })]), h("div", Ee, [h("span", De, x(E(_)("showForm.completed")), 1)])])], 64))])) : C("", !0);
359
- };
360
- }
361
- });
362
- //#endregion
363
- export { B as default };
364
-
365
- //# sourceMappingURL=PkToolShowForm-ztQFyFd9.js.map
@@ -1,74 +0,0 @@
1
- import { B as e, Ht as t, I as n, R as r, S as i, at as a, f as o, g as s, h as c, k as l, kt as u, mt as d, qt as f, v as p, w as m, xt as h, y as g } from "./vue.runtime.esm-bundler-DF2of3lp.js";
2
- import "./src-BjFv9Ag8.js";
3
- import { n as _ } from "./url-validation-uLMZ5-AU.js";
4
- import { u as v } from "./index.es-DvV0VhDa.js";
5
- import { t as y } from "./useImageFallback-8kfLDjXm.js";
6
- import { n as b, t as x } from "./useLightbox-Bq6k-Wlt.js";
7
- l(), u(), a();
8
- var S = {
9
- key: 0,
10
- class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-surface"
11
- }, C = { class: "px-sm py-6 bg-surface-1 min-h-40 text-12 border-b border-surface-3 text-word-3 flex items-center gap-8 min-h-40" }, w = { class: "font-bold" }, T = { class: "p-sm" }, E = [
12
- "href",
13
- "data-pswp-src",
14
- "data-pswp-width",
15
- "data-pswp-height",
16
- "data-pswp-caption",
17
- "title",
18
- "target",
19
- "rel"
20
- ], D = [
21
- "src",
22
- "alt",
23
- "onError"
24
- ], O = {
25
- key: 1,
26
- class: "w-full h-full flex flex-col items-center justify-center gap-4 bg-surface-1 text-word-3"
27
- }, k = { class: "text-12" }, A = /* @__PURE__ */ m({
28
- __name: "PkToolShowImageGallery",
29
- props: { part: { type: null } },
30
- setup(a) {
31
- let l = a, u = c(() => l.part), m = d(), { preload: A, getSize: j } = x(), M = c(() => u.value.input?.images ?? []), { canShowImage: N, onImageError: P } = y(), F = c(() => {
32
- let e = M.value.length;
33
- return e === 1 ? "grid-cols-1 justify-items-center" : e === 2 ? "grid-cols-2" : "grid-cols-3";
34
- }), { init: I } = b({ gallery: m });
35
- return n(async () => {
36
- A(M.value), await I();
37
- }), (n, a) => {
38
- let c = v;
39
- return M.value.length ? (r(), g("div", S, [s("div", C, [i(c, {
40
- name: "ri:image-line",
41
- class: "text-16"
42
- }), s("strong", w, f(n.$t("label.gallery", { count: M.value.length })), 1)]), s("div", T, [s("div", {
43
- ref_key: "galleryRef",
44
- ref: m,
45
- class: t(["grid gap-8", F.value])
46
- }, [(r(!0), g(o, null, e(M.value, (e) => (r(), g("a", {
47
- key: e.url,
48
- href: h(N)(e.url) ? e.url : void 0,
49
- "data-pswp-src": h(N)(e.url) ? e.url : void 0,
50
- "data-pswp-width": h(j)(e.url).width,
51
- "data-pswp-height": h(j)(e.url).height,
52
- "data-pswp-caption": e.caption ?? e.alt ?? "",
53
- "data-cropped": !0,
54
- class: t(["relative block aspect-square overflow-hidden rounded-xl group max-h-384", [{ "w-384 max-w-full": M.value.length === 1 }, h(N)(e.url) ? "cursor-pointer" : "pointer-events-none"]]),
55
- title: e.caption ?? e.alt ?? "",
56
- target: h(_)(e.url) ? void 0 : "_blank",
57
- rel: h(_)(e.url) ? void 0 : "noopener noreferrer"
58
- }, [h(N)(e.url) ? (r(), g("img", {
59
- key: 0,
60
- src: e.url,
61
- alt: e.alt ?? e.caption ?? "",
62
- class: "w-full h-full object-cover transition-opacity group-hover:opacity-80",
63
- onError: (t) => h(P)(e.url)
64
- }, null, 40, D)) : (r(), g("div", O, [i(c, {
65
- name: "ri:camera-off-line",
66
- class: "text-24"
67
- }), s("span", k, f(n.$t("label.imageLoadError")), 1)]))], 10, E))), 128))], 2)])])) : p("", !0);
68
- };
69
- }
70
- });
71
- //#endregion
72
- export { A as default };
73
-
74
- //# sourceMappingURL=PkToolShowImageGallery-DiOR0vYa.js.map