@8wave/ai-elements 0.125.0-beta.42 → 0.125.0-beta.43

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 (129) hide show
  1. package/dist/_chunks/Chart-1vt0m6l_.js +87 -0
  2. package/dist/_chunks/Chart-1vt0m6l_.js.map +1 -0
  3. package/dist/_chunks/{PkChart-CbtMRGWc.js → PkChart-CYFx_UDq.js} +741 -623
  4. package/dist/_chunks/PkChart-CYFx_UDq.js.map +1 -0
  5. package/dist/_chunks/PkFilePreview-yjdtArag.js +1745 -0
  6. package/dist/_chunks/PkFilePreview-yjdtArag.js.map +1 -0
  7. package/dist/_chunks/{PkFilePreviewDialog-bcTkTcYk.js → PkFilePreviewDialog-Df0Lt40J.js} +2 -2
  8. package/dist/_chunks/{PkFilePreviewDialog-bcTkTcYk.js.map → PkFilePreviewDialog-Df0Lt40J.js.map} +1 -1
  9. package/dist/_chunks/{PkImageEditorDialog-FpbyhV3t.js → PkImageEditorDialog-PVf3IHGB.js} +2 -2
  10. package/dist/_chunks/{PkImageEditorDialog-FpbyhV3t.js.map → PkImageEditorDialog-PVf3IHGB.js.map} +1 -1
  11. package/dist/_chunks/{PkSelectionActions-BbfVZY0R.js → PkSelectionActions-CMyg_x8h.js} +2 -2
  12. package/dist/_chunks/{PkSelectionActions-BbfVZY0R.js.map → PkSelectionActions-CMyg_x8h.js.map} +1 -1
  13. package/dist/_chunks/{PkStreamingMarkdown-COSOOhCg.js → PkStreamingMarkdown-BDXbU2tz.js} +2 -2
  14. package/dist/_chunks/{PkStreamingMarkdown-COSOOhCg.js.map → PkStreamingMarkdown-BDXbU2tz.js.map} +1 -1
  15. package/dist/_chunks/{PkToolChatFile-C_gS0X1j.js → PkToolChatFile-CMQdMs-9.js} +3 -3
  16. package/dist/_chunks/{PkToolChatFile-C_gS0X1j.js.map → PkToolChatFile-CMQdMs-9.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowArtifact-fpFtKrZo.js → PkToolShowArtifact-YrC54qxc.js} +2 -2
  18. package/dist/_chunks/{PkToolShowArtifact-fpFtKrZo.js.map → PkToolShowArtifact-YrC54qxc.js.map} +1 -1
  19. package/dist/_chunks/PkToolShowChart-D3E_xBJv.js +138 -0
  20. package/dist/_chunks/PkToolShowChart-D3E_xBJv.js.map +1 -0
  21. package/dist/_chunks/{PkToolShowContactForm-BAM772bm.js → PkToolShowContactForm-Dio2FNkA.js} +2 -2
  22. package/dist/_chunks/{PkToolShowContactForm-BAM772bm.js.map → PkToolShowContactForm-Dio2FNkA.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowForm-DJcL0bgw.js → PkToolShowForm-w9HGhvCy.js} +3 -3
  24. package/dist/_chunks/{PkToolShowForm-DJcL0bgw.js.map → PkToolShowForm-w9HGhvCy.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowSources-GeWAMHYC.js → PkToolShowSources-DXFvFHOo.js} +2 -2
  26. package/dist/_chunks/{PkToolShowSources-GeWAMHYC.js.map → PkToolShowSources-DXFvFHOo.js.map} +1 -1
  27. package/dist/_chunks/chartFormat-B1T7y-16.js +27 -0
  28. package/dist/_chunks/chartFormat-B1T7y-16.js.map +1 -0
  29. package/dist/_chunks/{excelNumberFormat-BhQjife9.js → excelNumberFormat-CcXF_wJK.js} +101 -88
  30. package/dist/_chunks/excelNumberFormat-CcXF_wJK.js.map +1 -0
  31. package/dist/_chunks/{utils-DMvy5QRR.js → utils-BBoaLDYF.js} +14 -14
  32. package/dist/_chunks/utils-BBoaLDYF.js.map +1 -0
  33. package/dist/ai-elements.es.js +178 -172
  34. package/dist/ai-elements.es.js.map +1 -1
  35. package/dist-vue/PkChatbot.js +1 -1
  36. package/dist-vue/PkChatbotEmptyState.js +1 -1
  37. package/dist-vue/PkChatbotInput.js +1 -1
  38. package/dist-vue/PkChatbotMessages.js +1 -1
  39. package/dist-vue/PkChatbotStepPayload.js +1 -1
  40. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  41. package/dist-vue/PkChatbotSteps.js +1 -1
  42. package/dist-vue/PkChatbotViewChat.js +1 -1
  43. package/dist-vue/PkChatbotViewConversations.js +1 -1
  44. package/dist-vue/_chunks/Chart-DsBNs5rS.js +87 -0
  45. package/dist-vue/_chunks/Chart-DsBNs5rS.js.map +1 -0
  46. package/dist-vue/_chunks/{PkChart-D-K7nc0g.js → PkChart-CrZqhEpp.js} +112 -74
  47. package/dist-vue/_chunks/PkChart-CrZqhEpp.js.map +1 -0
  48. package/dist-vue/_chunks/{PkChatbot-DVQ-Bb7n.js → PkChatbot-CxkTubw8.js} +6 -6
  49. package/dist-vue/_chunks/{PkChatbot-DVQ-Bb7n.js.map → PkChatbot-CxkTubw8.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkChatbotEmptyState-OlgewA4_.js → PkChatbotEmptyState-CUoHkCgO.js} +2 -2
  51. package/dist-vue/_chunks/{PkChatbotEmptyState-OlgewA4_.js.map → PkChatbotEmptyState-CUoHkCgO.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkChatbotInput-D_I0Gf_u.js → PkChatbotInput-CPf7wqiQ.js} +4 -4
  53. package/dist-vue/_chunks/{PkChatbotInput-D_I0Gf_u.js.map → PkChatbotInput-CPf7wqiQ.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkChatbotMessages-CAXnEfXK.js → PkChatbotMessages-CLNu2dTm.js} +307 -307
  55. package/dist-vue/_chunks/{PkChatbotMessages-CAXnEfXK.js.map → PkChatbotMessages-CLNu2dTm.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkChatbotStepPayload-EBri1L10.js → PkChatbotStepPayload-Cf7mJPjL.js} +2 -2
  57. package/dist-vue/_chunks/{PkChatbotStepPayload-EBri1L10.js.map → PkChatbotStepPayload-Cf7mJPjL.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DiQEa0UV.js → PkChatbotStepToolDetail-D6nwNnHv.js} +16 -16
  59. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DiQEa0UV.js.map → PkChatbotStepToolDetail-D6nwNnHv.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotSteps-BgLnv2J1.js → PkChatbotSteps-xkxdaX7O.js} +38 -38
  61. package/dist-vue/_chunks/{PkChatbotSteps-BgLnv2J1.js.map → PkChatbotSteps-xkxdaX7O.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotViewChat-CmjD1IXf.js → PkChatbotViewChat-BkkyjiFl.js} +22 -22
  63. package/dist-vue/_chunks/{PkChatbotViewChat-CmjD1IXf.js.map → PkChatbotViewChat-BkkyjiFl.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotViewConversations-CVZH5dXx.js → PkChatbotViewConversations-hgqSO1hx.js} +2 -2
  65. package/dist-vue/_chunks/{PkChatbotViewConversations-CVZH5dXx.js.map → PkChatbotViewConversations-hgqSO1hx.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkFilePreview-k5gEl3n8.js → PkFilePreview-CmsT6lSP.js} +701 -624
  67. package/dist-vue/_chunks/PkFilePreview-CmsT6lSP.js.map +1 -0
  68. package/dist-vue/_chunks/{PkFilePreviewDialog-DUwZPErE.js → PkFilePreviewDialog-DIiTt9iK.js} +2 -2
  69. package/dist-vue/_chunks/{PkFilePreviewDialog-DUwZPErE.js.map → PkFilePreviewDialog-DIiTt9iK.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkImageEditorDialog-DQPXePae.js → PkImageEditorDialog-CE0Y5Pwr.js} +2 -2
  71. package/dist-vue/_chunks/{PkImageEditorDialog-DQPXePae.js.map → PkImageEditorDialog-CE0Y5Pwr.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkStreamingMarkdown-ZasabxE0.js → PkStreamingMarkdown-BBvCtDlO.js} +2 -2
  73. package/dist-vue/_chunks/{PkStreamingMarkdown-ZasabxE0.js.map → PkStreamingMarkdown-BBvCtDlO.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkToolChatFile-CD26Q2xp.js → PkToolChatFile-DVhunkPS.js} +3 -3
  75. package/dist-vue/_chunks/{PkToolChatFile-CD26Q2xp.js.map → PkToolChatFile-DVhunkPS.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkToolShowArtifact-BhVd_ZQ8.js → PkToolShowArtifact-DKOTsP9C.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolShowArtifact-BhVd_ZQ8.js.map → PkToolShowArtifact-DKOTsP9C.js.map} +1 -1
  78. package/dist-vue/_chunks/PkToolShowChart-CNBUjDc7.js +133 -0
  79. package/dist-vue/_chunks/PkToolShowChart-CNBUjDc7.js.map +1 -0
  80. package/dist-vue/_chunks/{PkToolShowContactForm-CackCDGD.js → PkToolShowContactForm-D1Ff15Zf.js} +2 -2
  81. package/dist-vue/_chunks/{PkToolShowContactForm-CackCDGD.js.map → PkToolShowContactForm-D1Ff15Zf.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolShowDiagram-CABPsFi8.js → PkToolShowDiagram-CBwqjy6a.js} +2 -2
  83. package/dist-vue/_chunks/{PkToolShowDiagram-CABPsFi8.js.map → PkToolShowDiagram-CBwqjy6a.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolShowForm-BStbk4Iu.js → PkToolShowForm-D-rzzwJa.js} +3 -3
  85. package/dist-vue/_chunks/{PkToolShowForm-BStbk4Iu.js.map → PkToolShowForm-D-rzzwJa.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolShowImageGallery-BeeHsdTp.js → PkToolShowImageGallery-Cre2zSGV.js} +2 -2
  87. package/dist-vue/_chunks/{PkToolShowImageGallery-BeeHsdTp.js.map → PkToolShowImageGallery-Cre2zSGV.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolShowProductList-BfUiap9U.js → PkToolShowProductList-D4FAfMS-.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolShowProductList-BfUiap9U.js.map → PkToolShowProductList-D4FAfMS-.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowSources-CgEkcyRg.js → PkToolShowSources-BC6YJl-O.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowSources-CgEkcyRg.js.map → PkToolShowSources-BC6YJl-O.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowVideo-CqSRnDNC.js → PkToolShowVideo-CxN7z_cZ.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolShowVideo-CqSRnDNC.js.map → PkToolShowVideo-CxN7z_cZ.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowWebPages-B-qIS8qY.js → PkToolShowWebPages-0Ux6n8G1.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowWebPages-B-qIS8qY.js.map → PkToolShowWebPages-0Ux6n8G1.js.map} +1 -1
  96. package/dist-vue/_chunks/chartFormat-B1T7y-16.js +27 -0
  97. package/dist-vue/_chunks/chartFormat-B1T7y-16.js.map +1 -0
  98. package/dist-vue/_chunks/{excelNumberFormat-C1sCQrOz.js → excelNumberFormat-BxRi0Y3e.js} +101 -88
  99. package/dist-vue/_chunks/excelNumberFormat-BxRi0Y3e.js.map +1 -0
  100. package/dist-vue/_chunks/{utils-KBB6SDPn.js → utils-C9l078yb.js} +10 -10
  101. package/dist-vue/_chunks/utils-C9l078yb.js.map +1 -0
  102. package/dist-vue/composables.js +9 -3
  103. package/dist-vue/composables.js.map +1 -1
  104. package/dist-vue/index.js +42 -42
  105. package/dist-vue/index.js.map +1 -1
  106. package/dist-vue/locales.js +6 -0
  107. package/dist-vue/packages/components/src/chat/PkChart.d.ts +8 -0
  108. package/dist-vue/packages/components/src/chat/PkFileChart.d.ts +14 -0
  109. package/dist-vue/packages/components/src/chat/PkWordPreviewRuns.d.ts +4 -1
  110. package/dist-vue/packages/components/src/chat/useChatFilePreview.d.ts +240 -0
  111. package/dist-vue/packages/components/src/chat/utils.d.ts +6 -1
  112. package/dist-vue/packages/models/src/schema/Chart.d.ts +91 -0
  113. package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +381 -0
  114. package/dist-vue/packages/models/src/schema/WordPreview.d.ts +304 -0
  115. package/dist-vue/style.css +1 -1
  116. package/package.json +1 -1
  117. package/dist/_chunks/PkChart-CbtMRGWc.js.map +0 -1
  118. package/dist/_chunks/PkFilePreview-DC4iX7Yc.js +0 -1665
  119. package/dist/_chunks/PkFilePreview-DC4iX7Yc.js.map +0 -1
  120. package/dist/_chunks/PkToolShowChart-DZWu3Yuo.js +0 -224
  121. package/dist/_chunks/PkToolShowChart-DZWu3Yuo.js.map +0 -1
  122. package/dist/_chunks/excelNumberFormat-BhQjife9.js.map +0 -1
  123. package/dist/_chunks/utils-DMvy5QRR.js.map +0 -1
  124. package/dist-vue/_chunks/PkChart-D-K7nc0g.js.map +0 -1
  125. package/dist-vue/_chunks/PkFilePreview-k5gEl3n8.js.map +0 -1
  126. package/dist-vue/_chunks/PkToolShowChart-BQXxaPIO.js +0 -217
  127. package/dist-vue/_chunks/PkToolShowChart-BQXxaPIO.js.map +0 -1
  128. package/dist-vue/_chunks/excelNumberFormat-C1sCQrOz.js.map +0 -1
  129. package/dist-vue/_chunks/utils-KBB6SDPn.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { t as e } from "./PkChatbotMessages-CAXnEfXK.js";
1
+ import { t as e } from "./PkChatbotMessages-CLNu2dTm.js";
2
2
  import { o as t } from "./Media-DylqhvaF.js";
3
3
  import { t as n } from "./useLightbox-DmtNa8bJ.js";
4
4
  import { a as r, n as i, t as a } from "./useChatbotStore-B6ILfm5Z.js";
5
5
  import { n as o } from "./src-nb8MU1sh.js";
6
6
  import { s, t as c } from "./message-DuibQyHy.js";
7
- import { f as l, l as u, n as d, r as f, y as p, z as m } from "./utils-KBB6SDPn.js";
7
+ import { B as l, b as u, n as d, p as f, r as p, u as m } from "./utils-C9l078yb.js";
8
8
  import { t as h } from "./useLocalizedString-Dmn92nix.js";
9
9
  import { t as g } from "./PkAvatar-DwtZWSW4.js";
10
- import { n as _, t as v } from "./PkChatbotInput-D_I0Gf_u.js";
10
+ import { n as _, t as v } from "./PkChatbotInput-CPf7wqiQ.js";
11
11
  import { t as ee } from "./PkChatbotQueuedMessages-CIJFAvE2.js";
12
- import { t as te } from "./PkChatbotEmptyState-OlgewA4_.js";
12
+ import { t as te } from "./PkChatbotEmptyState-CUoHkCgO.js";
13
13
  import { t as ne } from "./PkChatbotWakeupBar-DEP-d-Fp.js";
14
14
  import { VvIcon as y } from "@volverjs/ui-vue/components";
15
15
  import { Fragment as b, Teleport as re, Transition as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as ie, createTextVNode as ae, createVNode as D, defineAsyncComponent as O, defineComponent as oe, inject as se, isRef as ce, nextTick as le, normalizeClass as k, normalizeStyle as ue, onBeforeUnmount as de, onMounted as fe, onScopeDispose as pe, onUnmounted as A, openBlock as j, provide as me, ref as M, renderList as he, shallowRef as ge, toDisplayString as N, toValue as _e, unref as P, useTemplateRef as ve, watch as F, withCtx as I } from "vue";
@@ -40,12 +40,12 @@ var we = {
40
40
  let t = e, n = ve("rootEl"), r = ve("canvasEl"), i = M(!1), a = M(null), o = S(() => a.value ? {
41
41
  "--pk-aurora-tint": `rgb(${a.value.first.join(" ")})`,
42
42
  "--pk-aurora-tint-2": `rgb(${(a.value.duo ? a.value.second : a.value.first).join(" ")})`
43
- } : void 0), s = null, c = 0, l = null, u = null, d = null, f = null, p = null, h = null, g = null, _ = null, v = null, ee = performance.now(), te = (e, t) => {
43
+ } : void 0), s = null, c = 0, u = null, d = null, f = null, p = null, m = null, h = null, g = null, _ = null, v = null, ee = performance.now(), te = (e, t) => {
44
44
  if (!s) return null;
45
45
  let n = s.createShader(e);
46
46
  return !n || (s.shaderSource(n, t), s.compileShader(n), !s.getShaderParameter(n, s.COMPILE_STATUS)) ? null : n;
47
47
  }, ne = (e) => e.map((e) => e / 255), y = () => {
48
- n.value && (a.value = m(n.value, {
48
+ n.value && (a.value = l(n.value, {
49
49
  mainColor: t.mainColor,
50
50
  tones: t.tones,
51
51
  secondColor: t.secondColor
@@ -63,13 +63,13 @@ var we = {
63
63
  let a = r.value.parentElement?.offsetParent, o = (t.sourceSelector ? a?.querySelector(t.sourceSelector) : a) ?? a, c = r.value.getBoundingClientRect(), l = o?.getBoundingClientRect();
64
64
  if (l && c.width > 0) {
65
65
  let e = r.value.width / c.width, t = r.value.height / c.height, n = (l.left + l.width / 2 - c.left) * e, i = (c.bottom - (l.top + l.height / 2)) * t, a = l.width / 2 * e, o = l.height / 2 * t;
66
- s.uniform2f(f, n, i), s.uniform2f(p, a, o);
66
+ s.uniform2f(p, n, i), s.uniform2f(m, a, o);
67
67
  let u = Number.parseFloat(getComputedStyle(r.value).getPropertyValue("--aurora-spread"));
68
68
  s.uniform1f(h, Number.isNaN(u) ? 1 : u);
69
69
  }
70
70
  x(re() ? 10 : void 0);
71
71
  }, re = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches, x = (e) => {
72
- s && r.value && (s.uniform1f(u, e ?? (performance.now() - ee) / 1e3), s.uniform2f(d, r.value.width, r.value.height), s.drawArrays(s.TRIANGLE_STRIP, 0, 4));
72
+ s && r.value && (s.uniform1f(d, e ?? (performance.now() - ee) / 1e3), s.uniform2f(f, r.value.width, r.value.height), s.drawArrays(s.TRIANGLE_STRIP, 0, 4));
73
73
  }, C = () => {
74
74
  x(), c = requestAnimationFrame(C);
75
75
  };
@@ -96,10 +96,10 @@ var we = {
96
96
  1,
97
97
  1
98
98
  ]), s.STATIC_DRAW);
99
- let m = s.getAttribLocation(o, "a_position");
100
- s.enableVertexAttribArray(m), s.vertexAttribPointer(m, 2, s.FLOAT, !1, 0, 0), u = s.getUniformLocation(o, "u_time"), d = s.getUniformLocation(o, "u_resolution"), f = s.getUniformLocation(o, "u_center"), p = s.getUniformLocation(o, "u_half"), h = s.getUniformLocation(o, "u_spread"), g = s.getUniformLocation(o, "u_color"), _ = s.getUniformLocation(o, "u_color2"), v = s.getUniformLocation(o, "u_duo"), y(), l = new ResizeObserver(b), l.observe(e), b(), le(b), re() ? x(10) : C();
99
+ let l = s.getAttribLocation(o, "a_position");
100
+ s.enableVertexAttribArray(l), s.vertexAttribPointer(l, 2, s.FLOAT, !1, 0, 0), d = s.getUniformLocation(o, "u_time"), f = s.getUniformLocation(o, "u_resolution"), p = s.getUniformLocation(o, "u_center"), m = s.getUniformLocation(o, "u_half"), h = s.getUniformLocation(o, "u_spread"), g = s.getUniformLocation(o, "u_color"), _ = s.getUniformLocation(o, "u_color2"), v = s.getUniformLocation(o, "u_duo"), y(), u = new ResizeObserver(b), u.observe(e), b(), le(b), re() ? x(10) : C();
101
101
  }), de(() => {
102
- cancelAnimationFrame(c), l?.disconnect();
102
+ cancelAnimationFrame(c), u?.disconnect();
103
103
  }), A(() => {
104
104
  let e = s;
105
105
  s = null, setTimeout(() => {
@@ -614,9 +614,9 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
614
614
  "revise",
615
615
  "selection-action"
616
616
  ],
617
- setup(o, { emit: m }) {
618
- let _ = O(() => import("./PkToolShowForm-BStbk4Iu.js").then((e) => e.n)), b = O(() => import("./PkToolShowContactForm-CackCDGD.js").then((e) => e.n)), ae = O(() => import("./PkToolShowSuggestedReply-DxlGhMvE.js").then((e) => e.n)), oe = O(() => import("./PkToolShowSources-CgEkcyRg.js").then((e) => e.n)), se = O(() => import("./PkToolRequestGeolocation-Bhh7UomV.js").then((e) => e.n)), le = O(() => import("./PkToolRequestOAuthConnection-8GJlt5G1.js")), ue = O(() => import("./PkToolShowLocation-Nhh_LwmN.js").then((e) => e.n)), fe = O(() => import("./PkToolShowChart-BQXxaPIO.js").then((e) => e.t)), pe = O(() => import("./PkToolShowDiagram-CABPsFi8.js")), A = O(() => import("./PkToolChatFile-CD26Q2xp.js").then((e) => e.n)), he = O(() => import("./PkToolShareDocument-Bf7OE8XA.js").then((e) => e.n)), ge = O(() => import("./PkFilePreview-k5gEl3n8.js").then((e) => e.n)), _e = O(() => import("./PkFilePreviewDialog-DUwZPErE.js").then((e) => e.n)), L = o, we = m, R = i(L.agentId), { agentInterface: z, agentFileUpload: B, agentType: Ee, agentVoice: De, actions: Oe, revisedAnswers: ke, messages: V, chat: H, messageFeedbacks: Ae, feedbackDialogMessage: je, isFeedbackSubmitting: Pe, isFeedbackSubmitted: Fe, feedbackSubmitError: Le, isLeadSubmitted: Re, isLoadingSubmitLead: ze, submitLeadError: Be, input: U, inputMessagePlaceholder: He, isConversationBlocked: Ue, baseUrl: W, pendingAttachments: We, isAttachmentLimitReached: Ge, fileLimitError: Ke, apiClient: G, isDark: qe, hostToolsPending: Je, pageNoticeLevel: Ye, hostConfirmation: st, agentPageAccess: ct, hostStepTitles: lt, hostStepChanges: ut, confirmationMode: dt, canQueue: ft, queuedMessages: pt, backgroundAnswers: mt, inputFocusRequest: ht, pagePointer: gt, pagePointerAvailable: _t, pagePointing: vt, agentSelectionActions: yt } = Se(R);
619
- me(f, lt), me(d, ut);
617
+ setup(o, { emit: l }) {
618
+ let _ = O(() => import("./PkToolShowForm-D-rzzwJa.js").then((e) => e.n)), b = O(() => import("./PkToolShowContactForm-D1Ff15Zf.js").then((e) => e.n)), ae = O(() => import("./PkToolShowSuggestedReply-DxlGhMvE.js").then((e) => e.n)), oe = O(() => import("./PkToolShowSources-BC6YJl-O.js").then((e) => e.n)), se = O(() => import("./PkToolRequestGeolocation-Bhh7UomV.js").then((e) => e.n)), le = O(() => import("./PkToolRequestOAuthConnection-8GJlt5G1.js")), ue = O(() => import("./PkToolShowLocation-Nhh_LwmN.js").then((e) => e.n)), fe = O(() => import("./PkToolShowChart-CNBUjDc7.js")), pe = O(() => import("./PkToolShowDiagram-CBwqjy6a.js")), A = O(() => import("./PkToolChatFile-DVhunkPS.js").then((e) => e.n)), he = O(() => import("./PkToolShareDocument-Bf7OE8XA.js").then((e) => e.n)), ge = O(() => import("./PkFilePreview-CmsT6lSP.js").then((e) => e.n)), _e = O(() => import("./PkFilePreviewDialog-DIiTt9iK.js").then((e) => e.n)), L = o, we = l, R = i(L.agentId), { agentInterface: z, agentFileUpload: B, agentType: Ee, agentVoice: De, actions: Oe, revisedAnswers: ke, messages: V, chat: H, messageFeedbacks: Ae, feedbackDialogMessage: je, isFeedbackSubmitting: Pe, isFeedbackSubmitted: Fe, feedbackSubmitError: Le, isLeadSubmitted: Re, isLoadingSubmitLead: ze, submitLeadError: Be, input: U, inputMessagePlaceholder: He, isConversationBlocked: Ue, baseUrl: W, pendingAttachments: We, isAttachmentLimitReached: Ge, fileLimitError: Ke, apiClient: G, isDark: qe, hostToolsPending: Je, pageNoticeLevel: Ye, hostConfirmation: st, agentPageAccess: ct, hostStepTitles: lt, hostStepChanges: ut, confirmationMode: dt, canQueue: ft, queuedMessages: pt, backgroundAnswers: mt, inputFocusRequest: ht, pagePointer: gt, pagePointerAvailable: _t, pagePointing: vt, agentSelectionActions: yt } = Se(R);
619
+ me(p, lt), me(d, ut);
620
620
  let bt = ve("inputEl");
621
621
  F(ht, () => {
622
622
  bt.value?.focus();
@@ -797,7 +797,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
797
797
  }, ir = async () => {
798
798
  Q.dismissError(), await Q.stop(), await tr();
799
799
  }, ar = (e) => e?.toolCallId ?? "", or = M(/* @__PURE__ */ new Set()), sr = (e) => or.value.has(ar(e)), cr = M(/* @__PURE__ */ new Map()), lr = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (or.value = new Set(or.value).add(ar(e)), qn()), !0) : !1, ur = (e, t, n) => {
800
- lr(t, l(t, n)) || Mt({
800
+ lr(t, f(t, n)) || Mt({
801
801
  tool: e,
802
802
  toolCallId: ar(t),
803
803
  output: n
@@ -829,7 +829,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
829
829
  continue;
830
830
  }
831
831
  let { type: e, state: r, output: i } = n;
832
- Cn.has(e) && r === "output-available" && i?.filename && t(u(i.filename, i.version), i.fileId);
832
+ Cn.has(e) && r === "output-available" && i?.filename && t(m(i.filename, i.version), i.fileId);
833
833
  }
834
834
  return e;
835
835
  }), $ = S(() => Ue.value ? void 0 : (e) => {
@@ -1024,7 +1024,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
1024
1024
  "is-dark": P(qe)
1025
1025
  }, null, 8, ["part", "is-dark"])]),
1026
1026
  "tool-editSpreadsheet": I(({ part: e }) => [(j(), C(P(A), {
1027
- key: P(p)(e),
1027
+ key: P(u)(e),
1028
1028
  part: e,
1029
1029
  "file-url": q,
1030
1030
  preview: yn,
@@ -1036,7 +1036,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
1036
1036
  "restore"
1037
1037
  ]))]),
1038
1038
  "tool-editWordDocument": I(({ part: e }) => [(j(), C(P(A), {
1039
- key: P(p)(e),
1039
+ key: P(u)(e),
1040
1040
  part: e,
1041
1041
  "file-url": q,
1042
1042
  preview: yn,
@@ -1048,7 +1048,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
1048
1048
  "restore"
1049
1049
  ]))]),
1050
1050
  "tool-createSpreadsheet": I(({ part: e }) => [(j(), C(P(A), {
1051
- key: P(p)(e),
1051
+ key: P(u)(e),
1052
1052
  part: e,
1053
1053
  "file-url": q,
1054
1054
  preview: yn,
@@ -1060,7 +1060,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
1060
1060
  "restore"
1061
1061
  ]))]),
1062
1062
  "tool-createWordDocument": I(({ part: e }) => [(j(), C(P(A), {
1063
- key: P(p)(e),
1063
+ key: P(u)(e),
1064
1064
  part: e,
1065
1065
  "file-url": q,
1066
1066
  preview: yn,
@@ -1072,7 +1072,7 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
1072
1072
  "restore"
1073
1073
  ]))]),
1074
1074
  "tool-shareDocument": I(({ part: e }) => [(j(), C(P(he), {
1075
- key: P(p)(e),
1075
+ key: P(u)(e),
1076
1076
  part: e,
1077
1077
  "on-download": Pn
1078
1078
  }, null, 8, ["part"]))]),
@@ -1298,4 +1298,4 @@ var Ze = { class: "pk-chatbot-view-chat__input-stage" }, Qe = {
1298
1298
  });
1299
1299
  export { Me as a, Fe as i, Xe as n, De as o, Je as r, Te as s, st as t };
1300
1300
 
1301
- //# sourceMappingURL=PkChatbotViewChat-CmjD1IXf.js.map
1301
+ //# sourceMappingURL=PkChatbotViewChat-BkkyjiFl.js.map