@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
@@ -3,11 +3,11 @@ import { C as e, E as t, S as n, T as r, _ as i, a, b as o, d as s, f as c, g as
3
3
  import { $ as te, A as C, B as ne, C as w, Ct as T, D as re, Dt as ie, E, Et as D, F as O, H as ae, I as oe, J as k, L as se, N as ce, O as le, Ot as ue, P as de, Q as A, R as fe, S as j, St as M, T as pe, Tt as N, V as me, W as P, X as he, Y as ge, _ as F, at as _e, b as ve, bt as ye, ct as be, d as xe, dt as Se, f as I, ft as Ce, g as L, gt as R, h as z, i as we, it as Te, k as B, kt as V, l as Ee, lt as H, mt as De, n as Oe, nt as ke, ot as U, p as Ae, pt as je, q as Me, r as Ne, t as W, tt as G, u as Pe, ut as Fe, v as K, vt as Ie, w as q, wt as J, x as Le, xt as Re, y as Y, yt as ze, z as X } from "./_chunks/vue.runtime.esm-bundler-C2U5uTqB.js";
4
4
  import { n as Be, r as Ve, t as He } from "./_chunks/vue-i18n-POtLvOl1.js";
5
5
  import { i as Ue, n as We, r as Ge } from "./_chunks/iconify-Cj-qXWYO.js";
6
- import { t as Ke } from "./_chunks/PkStreamingMarkdown-COSOOhCg.js";
6
+ import { t as Ke } from "./_chunks/PkStreamingMarkdown-BDXbU2tz.js";
7
7
  import { A as qe, B as Je, D as Ye, E as Xe, F as Ze, I as Qe, L as $e, M as et, N as tt, O as nt, R as rt, S as it, T as at, _ as Z, a as ot, b as st, c as ct, d as lt, g as ut, h as dt, i as ft, j as pt, k as mt, l as ht, n as gt, o as _t, r as vt, s as yt, u as bt, w as xt, x as St } from "./_chunks/Agent-DMvYDpLa.js";
8
8
  import { a as Ct, i as wt, n as Tt, t as Et } from "./_chunks/markdown-BYpvcbWH.js";
9
9
  import { n as Dt } from "./_chunks/src-JJyCGvqH.js";
10
- import { $ as Ot, A as kt, B as At, C as jt, D as Mt, E as Nt, F as Pt, I as Ft, L as It, M as Lt, N as Rt, O as zt, P as Bt, Q as Vt, R as Ht, S as Ut, T as Wt, X as Gt, Y as Kt, Z as qt, a as Jt, b as Yt, c as Xt, d as Zt, et as Qt, f as $t, g as en, h as tn, i as nn, it as rn, j as an, k as on, l as sn, n as cn, nt as ln, r as un, rt as dn, s as fn, t as pn, tt as mn, u as hn, v as gn, w as _n, x as vn, y as yn, z as bn } from "./_chunks/utils-DMvy5QRR.js";
10
+ import { $ as Ot, A as kt, B as At, C as jt, D as Mt, E as Nt, F as Pt, I as Ft, L as It, M as Lt, N as Rt, O as zt, P as Bt, Q as Vt, R as Ht, S as Ut, T as Wt, V as Gt, X as Kt, Z as qt, _ as Jt, a as Yt, at as Xt, b as Zt, c as Qt, d as $t, et as en, f as tn, g as nn, i as rn, it as an, j as on, k as sn, l as cn, n as ln, nt as un, p as dn, r as fn, rt as pn, t as mn, tt as hn, u as gn, w as _n, x as vn, y as yn, z as bn } from "./_chunks/utils-BBoaLDYF.js";
11
11
  import { r as xn, t as Sn } from "./_chunks/url-validation-CJV9pp4v.js";
12
12
  import { C as Cn, a as wn, h as Tn, l as En, o as Dn, s as On, v as kn, y as An } from "./_chunks/dist-D6oUr4J_.js";
13
13
  import { a as jn, c as Mn, d as Nn, f as Pn, i as Fn, l as In, m as Ln, n as Rn, r as zn, s as Bn } from "./_chunks/index.es-DIHz5I8K.js";
@@ -15,7 +15,7 @@ import { t as Vn } from "./_chunks/VvButtonLocalized-C8S7XJGv.js";
15
15
  import { i as Hn, n as Un, r as Wn, t as Gn } from "./_chunks/index.es-0ah-ssIE.js";
16
16
  import { t as Kn } from "./_chunks/useShortUrlResolver-C30QRypC.js";
17
17
  import { t as qn } from "./_chunks/useImageFallback-BePGTrF3.js";
18
- import { a as Jn, n as Yn, t as Xn } from "./_chunks/PkSelectionActions-BbfVZY0R.js";
18
+ import { a as Jn, n as Yn, t as Xn } from "./_chunks/PkSelectionActions-CMyg_x8h.js";
19
19
  import { t as Zn } from "./_chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
20
20
  import { t as Qn } from "./_chunks/chatImagePolicy-Dv_WHhDs.js";
21
21
  import { n as $n, t as er } from "./_chunks/useLightbox-TagJmiah.js";
@@ -770,6 +770,7 @@ var Fr = {
770
770
  chart: {
771
771
  copyData: "Copia dati",
772
772
  downloadPng: "Scarica il grafico come immagine PNG",
773
+ series: "Serie {n}",
773
774
  showChart: "Grafico",
774
775
  showTable: "Tabella"
775
776
  },
@@ -1459,6 +1460,8 @@ var Fr = {
1459
1460
  removed: "tolto",
1460
1461
  added: "aggiunto",
1461
1462
  revisionBy: "Revisione di {author}",
1463
+ chart: "Grafico",
1464
+ chartNotDrawn: "L'anteprima non disegna questo tipo di grafico.",
1462
1465
  image: "Immagine",
1463
1466
  truncated: "L'anteprima si ferma qui: il resto del documento è nel file da scaricare.",
1464
1467
  true: "VERO",
@@ -3106,6 +3109,7 @@ var Fr = {
3106
3109
  chart: {
3107
3110
  copyData: "Copy data",
3108
3111
  downloadPng: "Download the chart as a PNG image",
3112
+ series: "Series {n}",
3109
3113
  showChart: "Chart",
3110
3114
  showTable: "Table"
3111
3115
  },
@@ -3795,6 +3799,8 @@ var Fr = {
3795
3799
  removed: "removed",
3796
3800
  added: "added",
3797
3801
  revisionBy: "Tracked change by {author}",
3802
+ chart: "Chart",
3803
+ chartNotDrawn: "The preview does not draw this kind of chart.",
3798
3804
  image: "Image",
3799
3805
  truncated: "The preview stops here: the rest of the document is in the file to download.",
3800
3806
  true: "TRUE",
@@ -11333,7 +11339,7 @@ function ip(e) {
11333
11339
  }
11334
11340
  function Ee(e) {
11335
11341
  if (V(e)) {
11336
- let e = Z.value.messages.filter((e) => e.role === "user"), t = e[e.length - 1], n = t ? qt(t) : void 0;
11342
+ let e = Z.value.messages.filter((e) => e.role === "user"), t = e[e.length - 1], n = t ? Vt(t) : void 0;
11337
11343
  P.value = zl(), we.value = void 0, O(() => {
11338
11344
  Z.value.clearError(), n && Z.value.sendMessage({ text: n });
11339
11345
  });
@@ -11545,7 +11551,7 @@ function ip(e) {
11545
11551
  });
11546
11552
  },
11547
11553
  onData: (e) => {
11548
- e.type === "data-turnStream" ? Ke = e.data.streamId : e.type === "data-audioTranscripts" && (Z.value.messages = rn(Z.value.messages, e.data));
11554
+ e.type === "data-turnStream" ? Ke = e.data.streamId : e.type === "data-audioTranscripts" && (Z.value.messages = Xt(Z.value.messages, e.data));
11549
11555
  },
11550
11556
  onFinish: () => {
11551
11557
  let e = P.value;
@@ -11555,7 +11561,7 @@ function ip(e) {
11555
11561
  A(P, (e, t) => {
11556
11562
  if (t && !pe.value && (sn() || We?.chatId === t)) {
11557
11563
  let e = Z.value.messages.filter((e) => e.role === "user"), n = e[e.length - 1];
11558
- nt(t, n ? qt(n) ?? "" : "", Z.value.status === "streaming" || We?.chatId === t);
11564
+ nt(t, n ? Vt(n) ?? "" : "", Z.value.status === "streaming" || We?.chatId === t);
11559
11565
  }
11560
11566
  it(e), Ke = void 0, clearTimeout(On), Dn.value = !1, Z.value.stop();
11561
11567
  }, { flush: "sync" });
@@ -11592,27 +11598,27 @@ function ip(e) {
11592
11598
  }), dt = z(() => {
11593
11599
  let e = u.value?.messagePlaceholder;
11594
11600
  return e?.[r.value] ? e[r.value] : n("placeholder.askAnything") ? t("placeholder.askAnything") : "";
11595
- }), ft = R([]), ht = R(!1), gt = R(1), _t = R(!1), vt = R(!1), yt, bt = R([]), xt = R(!1), St = R("chat"), Ct = R(0), wt = R([]), Tt = R(), Et = R(!1), Ot = R(!1), kt = R(), At = R(!1), jt = R(!1), Mt = R(), Nt = R(""), Pt = R([]), Ft = R(""), It = R(!0), Lt = Ie(), Rt = R(0), zt = Hn(z(() => `${o.value}-queue`), {}), Bt = z(() => zt.value[P.value] ?? []), Vt = z(() => !pe.value);
11596
- function Ht(e, t) {
11601
+ }), ft = R([]), ht = R(!1), gt = R(1), _t = R(!1), vt = R(!1), yt, bt = R([]), xt = R(!1), St = R("chat"), Ct = R(0), wt = R([]), Tt = R(), Et = R(!1), Ot = R(!1), kt = R(), At = R(!1), jt = R(!1), Mt = R(), Nt = R(""), Pt = R([]), Ft = R(""), It = R(!0), Lt = Ie(), Rt = R(0), zt = Hn(z(() => `${o.value}-queue`), {}), Bt = z(() => zt.value[P.value] ?? []), Ht = z(() => !pe.value);
11602
+ function Ut(e, t) {
11597
11603
  let n = Object.fromEntries(Object.entries(zt.value).filter(([t]) => t !== e));
11598
11604
  zt.value = t.length > 0 ? {
11599
11605
  ...n,
11600
11606
  [e]: t
11601
11607
  } : n;
11602
11608
  }
11603
- function Ut(e) {
11604
- let t = (zt.value[e] ?? []).join(ep);
11605
- return Ht(e, []), t;
11606
- }
11607
11609
  function Wt(e) {
11608
- e && (Nt.value = Nt.value ? `${Nt.value}${ep}${e}` : e);
11610
+ let t = (zt.value[e] ?? []).join(ep);
11611
+ return Ut(e, []), t;
11609
11612
  }
11610
11613
  function Gt(e) {
11611
- Ht(P.value, Bt.value.filter((t, n) => n !== e));
11614
+ e && (Nt.value = Nt.value ? `${Nt.value}${ep}${e}` : e);
11612
11615
  }
11613
11616
  function Kt(e) {
11617
+ Ut(P.value, Bt.value.filter((t, n) => n !== e));
11618
+ }
11619
+ function qt(e) {
11614
11620
  let t = Bt.value[e];
11615
- Gt(e), Wt(t ?? "");
11621
+ Kt(e), Gt(t ?? "");
11616
11622
  }
11617
11623
  async function Jt(e) {
11618
11624
  if (pe.value) ft.value = [];
@@ -11656,10 +11662,10 @@ function ip(e) {
11656
11662
  vt.value = !1;
11657
11663
  }
11658
11664
  }
11659
- async function Xt(e) {
11665
+ async function Zt(e) {
11660
11666
  return pe.value ? [] : H.value.getConversations(o.value, l.value, { search: e });
11661
11667
  }
11662
- async function Zt() {
11668
+ async function Qt() {
11663
11669
  let e = P.value;
11664
11670
  if (!e) bt.value = [];
11665
11671
  else {
@@ -11673,25 +11679,25 @@ function ip(e) {
11673
11679
  }
11674
11680
  }
11675
11681
  }
11676
- function Qt(e, t = !1) {
11682
+ function $t(e, t = !1) {
11677
11683
  return H.value.getChatFileDownloadUrl(e, t);
11678
11684
  }
11679
- function $t(e) {
11685
+ function en(e) {
11680
11686
  return H.value.getChatFilePreviewUrl(e);
11681
11687
  }
11682
- async function en(e) {
11688
+ async function tn(e) {
11683
11689
  await H.value.deleteChatFile(e);
11684
11690
  let t = bt.value.find((t) => t.documentId === e), n = t?.kind === "spreadsheet" ? t.sourceAttachmentId ?? t.documentId : void 0;
11685
11691
  bt.value = bt.value.filter((t) => t.documentId !== e && (!n || t.documentId !== n && t.sourceAttachmentId !== n));
11686
11692
  }
11687
- async function tn(e, t) {
11693
+ async function nn(e, t) {
11688
11694
  if (!pe.value) try {
11689
11695
  let n = await H.value.getChat(e, t);
11690
11696
  if (t !== P.value || Z.value.status !== "ready" || Z.value.messages.length > 0) return;
11691
- n && (Z.value.messages = n.messages, Te.value = n.blocked ?? !1, nn(e, t, n.turnInProgress === !0));
11697
+ n && (Z.value.messages = n.messages, Te.value = n.blocked ?? !1, rn(e, t, n.turnInProgress === !0));
11692
11698
  } catch {}
11693
11699
  }
11694
- async function nn(e, t, n) {
11700
+ async function rn(e, t, n) {
11695
11701
  n && (await an(t), t !== P.value || sn()) || (await on(e, t), t === P.value && await dn());
11696
11702
  }
11697
11703
  async function an(e) {
@@ -11763,14 +11769,14 @@ function ip(e) {
11763
11769
  async function dn() {
11764
11770
  let e = P.value;
11765
11771
  if (!(un.has(e) || Bt.value.length === 0 || cn() || we.value)) {
11766
- if (ln()) Wt(Ut(e));
11772
+ if (ln()) Gt(Wt(e));
11767
11773
  else {
11768
11774
  un.add(e);
11769
11775
  try {
11770
11776
  let t = Date.now() + Zf;
11771
11777
  for (; Date.now() < t && (await Promise.race([H.value.getRunningTurns(o.value, [e]).catch(() => []), new Promise((t) => setTimeout(() => t([e]), $f))])).includes(e);) await new Promise((e) => setTimeout(e, Qf));
11772
11778
  if (e !== P.value || cn()) return;
11773
- let n = Ut(e);
11779
+ let n = Wt(e);
11774
11780
  n && Sn(n);
11775
11781
  } finally {
11776
11782
  un.delete(e);
@@ -11806,15 +11812,15 @@ function ip(e) {
11806
11812
  t >= 0 ? wt.value[t] = e : wt.value.push(e);
11807
11813
  }
11808
11814
  function vn(e) {
11809
- let t = ut.value, n = t.findIndex((t) => t.id === e.id), r = qt(e) ?? "", i = t.slice(0, n).reverse().find((e) => e.role === "user");
11815
+ let t = ut.value, n = t.findIndex((t) => t.id === e.id), r = Vt(e) ?? "", i = t.slice(0, n).reverse().find((e) => e.role === "user");
11810
11816
  return {
11811
- userQuestion: qt(i ?? e) ?? "",
11817
+ userQuestion: Vt(i ?? e) ?? "",
11812
11818
  assistantMessage: r
11813
11819
  };
11814
11820
  }
11815
11821
  async function yn(e, t) {
11816
11822
  await Promise.all([
11817
- tn(e, t),
11823
+ nn(e, t),
11818
11824
  Jt(e),
11819
11825
  gn(t)
11820
11826
  ]), Oe.value || li((e, t) => H.value.reverseGeocode(e, t, r.value)).then((e) => {
@@ -11830,7 +11836,7 @@ function ip(e) {
11830
11836
  filename: e.mediaSource.name,
11831
11837
  providerMetadata: { "8bot": { media: e.mediaSource } }
11832
11838
  })), n = Se.value ? ae.value : void 0;
11833
- !pe.value && cn() ? e && t.length === 0 && !n && (Ht(P.value, [...Bt.value, e]), Nt.value = "") : (pe.value && ut.value.length > 0 && await Un(), Sn(e, t, n && { pagePointer: n }), Nt.value = "", ae.value = void 0, Vn());
11839
+ !pe.value && cn() ? e && t.length === 0 && !n && (Ut(P.value, [...Bt.value, e]), Nt.value = "") : (pe.value && ut.value.length > 0 && await Un(), Sn(e, t, n && { pagePointer: n }), Nt.value = "", ae.value = void 0, Vn());
11834
11840
  }
11835
11841
  function xn(e, t) {
11836
11842
  let n = e.trim();
@@ -11856,13 +11862,13 @@ function ip(e) {
11856
11862
  Be(), n({ text: t });
11857
11863
  }
11858
11864
  async function Tn() {
11859
- let e = Z.value.messages.slice(Rt.value).some((e) => e.parts.some($e)), t = Ft.value, n = It.value, r = Lt.value, i = t.length > 0 && !e, a = P.value, s = Rt.value, c = We?.chatId === a, l = Ke, u = Ut(a), d = (e = "") => {
11865
+ let e = Z.value.messages.slice(Rt.value).some((e) => e.parts.some($e)), t = Ft.value, n = It.value, r = Lt.value, i = t.length > 0 && !e, a = P.value, s = Rt.value, c = We?.chatId === a, l = Ke, u = Wt(a), d = (e = "") => {
11860
11866
  Nt.value = [
11861
11867
  e,
11862
11868
  u,
11863
11869
  Nt.value
11864
11870
  ].filter(Boolean).join(ep);
11865
- }, f = () => a === P.value && !sn() && Rt.value === s ? !1 : (u && Ht(a, [u, ...zt.value[a] ?? []]), !0);
11871
+ }, f = () => a === P.value && !sn() && Rt.value === s ? !1 : (u && Ut(a, [u, ...zt.value[a] ?? []]), !0);
11866
11872
  We = void 0, Ge.value = void 0, Be(), await Z.value.stop();
11867
11873
  let p = pe.value || e && !c || await H.value.stopChatTurn(o.value, a, l).catch(() => !0);
11868
11874
  if (!f()) {
@@ -11943,10 +11949,10 @@ function ip(e) {
11943
11949
  }
11944
11950
  A(() => [Z.value.status, Z.value.id], ([e, t], [n, r]) => {
11945
11951
  if (t === r) {
11946
- if (e === "error") We?.chatId !== P.value && Wt(Ut(P.value));
11952
+ if (e === "error") We?.chatId !== P.value && Gt(Wt(P.value));
11947
11953
  else if (e === "ready" && (n === "streaming" || n === "submitted")) {
11948
11954
  if (ln()) {
11949
- Wt(Ut(P.value));
11955
+ Gt(Wt(P.value));
11950
11956
  return;
11951
11957
  }
11952
11958
  dn();
@@ -12207,10 +12213,10 @@ function ip(e) {
12207
12213
  backgroundAnswers: Rn,
12208
12214
  openBackgroundAnswer: zn,
12209
12215
  dismissBackgroundAnswer: Bn,
12210
- canQueue: Vt,
12216
+ canQueue: Ht,
12211
12217
  queuedMessages: Bt,
12212
- removeQueuedMessage: Gt,
12213
- editQueuedMessage: Kt,
12218
+ removeQueuedMessage: Kt,
12219
+ editQueuedMessage: qt,
12214
12220
  activeView: St,
12215
12221
  inputFocusRequest: Ct,
12216
12222
  messageFeedbacks: wt,
@@ -12225,13 +12231,13 @@ function ip(e) {
12225
12231
  initialize: yn,
12226
12232
  loadConversations: Jt,
12227
12233
  loadMoreConversations: Yt,
12228
- searchConversations: Xt,
12229
- loadChatFiles: Zt,
12234
+ searchConversations: Zt,
12235
+ loadChatFiles: Qt,
12230
12236
  refreshMessages: mn,
12231
12237
  appendMessage: hn,
12232
- getChatFileUrl: Qt,
12233
- getChatFilePreviewUrl: $t,
12234
- deleteChatFile: en,
12238
+ getChatFileUrl: $t,
12239
+ getChatFilePreviewUrl: en,
12240
+ deleteChatFile: tn,
12235
12241
  handleSubmit: bn,
12236
12242
  sendMessage: Cn,
12237
12243
  stopGeneration: Tn,
@@ -15541,7 +15547,7 @@ function Mv(e) {
15541
15547
  }, { immediate: !0 }), A(() => M(e.headers), () => {
15542
15548
  o.value && l();
15543
15549
  });
15544
- let u = z(() => t.value?.interface ?? n.value?.interface), d = z(() => Ft(u.value?.textColor, u.value?.mainColor)), f = z(() => u.value?.mainColor);
15550
+ let u = z(() => t.value?.interface ?? n.value?.interface), d = z(() => It(u.value?.textColor, u.value?.mainColor)), f = z(() => u.value?.mainColor);
15545
15551
  return {
15546
15552
  agent: t,
15547
15553
  branding: n,
@@ -15560,7 +15566,7 @@ function Mv(e) {
15560
15566
  let n = M(e.systemTheme);
15561
15567
  return n ? ["theme", `theme--${n}`] : ["theme"];
15562
15568
  }),
15563
- themeStyle: z(() => fn(f.value, d.value))
15569
+ themeStyle: z(() => Qt(f.value, d.value))
15564
15570
  };
15565
15571
  }
15566
15572
  // src/composables/useChatbotAuthForm.ts
@@ -15759,7 +15765,7 @@ var Uv = {
15759
15765
  let n = s.createShader(e);
15760
15766
  return !n || (s.shaderSource(n, t), s.compileShader(n), !s.getShaderParameter(n, s.COMPILE_STATUS)) ? null : n;
15761
15767
  }, b = (e) => e.map((e) => e / 255), x = () => {
15762
- n.value && (a.value = It(n.value, {
15768
+ n.value && (a.value = Ht(n.value, {
15763
15769
  mainColor: t.mainColor,
15764
15770
  tones: t.tones,
15765
15771
  secondColor: t.secondColor
@@ -16132,21 +16138,21 @@ B();
16132
16138
  var Ty = {
16133
16139
  requestOAuthConnection: w(() => import("./_chunks/PkToolRequestOAuthConnection-DkrnVowp.js")),
16134
16140
  shareDocument: w(() => import("./_chunks/PkToolShareDocument-BUg-uDTO.js")),
16135
- showArtifact: w(() => import("./_chunks/PkToolShowArtifact-fpFtKrZo.js")),
16141
+ showArtifact: w(() => import("./_chunks/PkToolShowArtifact-YrC54qxc.js")),
16136
16142
  showCalendarEvent: w(() => import("./_chunks/PkToolShowCalendarEvent-Bf1fBrjf.js")),
16137
- showChart: w(() => import("./_chunks/PkToolShowChart-DZWu3Yuo.js").then((e) => e.t)),
16143
+ showChart: w(() => import("./_chunks/PkToolShowChart-D3E_xBJv.js")),
16138
16144
  showComparison: w(() => import("./_chunks/PkToolShowComparison-BURyhuOx.js")),
16139
- showContactForm: w(() => import("./_chunks/PkToolShowContactForm-BAM772bm.js")),
16145
+ showContactForm: w(() => import("./_chunks/PkToolShowContactForm-Dio2FNkA.js")),
16140
16146
  showDiagram: w(() => import("./_chunks/PkToolShowDiagram-CcRJNDHo.js")),
16141
16147
  showEmail: w(() => import("./_chunks/PkToolShowEmail-mGLOd6zf.js")),
16142
16148
  showImageGallery: w(() => import("./_chunks/PkToolShowImageGallery-DhB_ucYe.js")),
16143
16149
  showLocation: w(() => import("./_chunks/PkToolShowLocation-BYkY2CEF.js")),
16144
16150
  showMessage: w(() => import("./_chunks/PkToolShowMessage-CvxABht3.js")),
16145
- showForm: w(() => import("./_chunks/PkToolShowForm-DJcL0bgw.js")),
16146
- showMultipleChoice: w(() => import("./_chunks/PkToolShowForm-DJcL0bgw.js")),
16151
+ showForm: w(() => import("./_chunks/PkToolShowForm-w9HGhvCy.js")),
16152
+ showMultipleChoice: w(() => import("./_chunks/PkToolShowForm-w9HGhvCy.js")),
16147
16153
  showProductList: w(() => import("./_chunks/PkToolShowProductList-DfcJJrOC.js")),
16148
16154
  showQrCode: w(() => import("./_chunks/PkToolShowQrCode-DgnNA0rU.js")),
16149
- showSources: w(() => import("./_chunks/PkToolShowSources-GeWAMHYC.js")),
16155
+ showSources: w(() => import("./_chunks/PkToolShowSources-DXFvFHOo.js")),
16150
16156
  showSuggestedReply: w(() => import("./_chunks/PkToolShowSuggestedReply-gpuWzpoh.js")),
16151
16157
  showVideo: w(() => import("./_chunks/PkToolShowVideo-CikqhGpT.js")),
16152
16158
  showWeather: w(() => import("./_chunks/PkToolShowWeather-BMnvmUoO.js")),
@@ -16167,7 +16173,7 @@ var Ey = {
16167
16173
  });
16168
16174
  return (e, t) => n.value ? (X(), Y("p", Ey, V(n.value), 1)) : K("", !0);
16169
16175
  }
16170
- }), Oy = { [pn]: Dy };
16176
+ }), Oy = { [mn]: Dy };
16171
16177
  // ../../packages/components/src/chat/PkToolApprovalCard.vue?vue&type=script&setup=true&lang.ts
16172
16178
  B(), N(), Ne(), U();
16173
16179
  var ky = {
@@ -16182,7 +16188,7 @@ var ky = {
16182
16188
  },
16183
16189
  emits: ["respond"],
16184
16190
  setup(e, { emit: t }) {
16185
- let n = e, r = t, { t: i, te: a } = Ve({ useScope: "global" }), o = z(() => n.part), s = z(() => Vt(n.part)), c = z(() => s.value === pn), l = z(() => c.value ? (o.value.state === "input-available" || it(o.value.output)) && n.callVerdict === void 0 : o.value.state === "approval-requested"), u = z(() => l.value && n.actionable === !0), d = z(() => l.value && n.actionable !== !0), f = z(() => c.value ? o.value.output === "confirmed" || n.callVerdict === !0 : o.value.approval?.approved === !0), p = z(() => c.value ? o.value.output === "cancelled" || n.callVerdict === !1 : o.value.approval?.approved === !1 || o.value.state === "output-denied"), m = z(() => Oy[s.value]), h = z(() => m.value ? i("toolApproval.prompt") : i("toolApproval.promptNamed", { tool: At(s.value, {
16191
+ let n = e, r = t, { t: i, te: a } = Ve({ useScope: "global" }), o = z(() => n.part), s = z(() => Ot(n.part)), c = z(() => s.value === mn), l = z(() => c.value ? (o.value.state === "input-available" || it(o.value.output)) && n.callVerdict === void 0 : o.value.state === "approval-requested"), u = z(() => l.value && n.actionable === !0), d = z(() => l.value && n.actionable !== !0), f = z(() => c.value ? o.value.output === "confirmed" || n.callVerdict === !0 : o.value.approval?.approved === !0), p = z(() => c.value ? o.value.output === "cancelled" || n.callVerdict === !1 : o.value.approval?.approved === !1 || o.value.state === "output-denied"), m = z(() => Oy[s.value]), h = z(() => m.value ? i("toolApproval.prompt") : i("toolApproval.promptNamed", { tool: Gt(s.value, {
16186
16192
  t: i,
16187
16193
  te: a
16188
16194
  }) })), g = z(() => {
@@ -16404,7 +16410,7 @@ var Qy = {
16404
16410
  preview: n || "-",
16405
16411
  full: a && a.trim() !== n ? a : void 0
16406
16412
  };
16407
- })), s = z(() => o.value ? void 0 : bn(t.value)), c = z(() => {
16413
+ })), s = z(() => o.value ? void 0 : At(t.value)), c = z(() => {
16408
16414
  let e = o.value;
16409
16415
  return e ? Array.isArray(t.value) ? n("messagePart.stepItems", e.length) : e.length === 1 ? `${e[0].key}: ${e[0].preview}` : e.map((e) => e.key).join(" · ") : i(t.value);
16410
16416
  }), l = R(!1), u = De(/* @__PURE__ */ new Set()), d = (e) => {
@@ -16620,7 +16626,7 @@ var lb = { class: "pk-chatbot-step-detail" }, ub = {
16620
16626
  text: t
16621
16627
  }] } : {};
16622
16628
  }
16623
- return Jt.includes(e) ? {
16629
+ return Yt.includes(e) ? {
16624
16630
  chips: u.value,
16625
16631
  rawOutput: s.value
16626
16632
  } : {};
@@ -16691,12 +16697,12 @@ var lb = { class: "pk-chatbot-step-detail" }, ub = {
16691
16697
  L("span", Sb, [L("span", Cb, V(b.value.passage.title ?? J(n)("messagePart.stepDocument")), 1)]),
16692
16698
  b.value.passage.meta ? (X(), Y("span", wb, V(b.value.passage.meta), 1)) : K("", !0)
16693
16699
  ]), L("div", Tb, V(b.value.passage.content), 1)])) : K("", !0),
16694
- J(_n)(b.value.rawInput) ? (X(), F(cb, {
16700
+ J(Wt)(b.value.rawInput) ? (X(), F(cb, {
16695
16701
  key: 4,
16696
16702
  label: J(n)("messagePart.stepInput"),
16697
16703
  value: b.value.rawInput
16698
16704
  }, null, 8, ["label", "value"])) : K("", !0),
16699
- J(_n)(b.value.rawOutput) ? (X(), F(cb, {
16705
+ J(Wt)(b.value.rawOutput) ? (X(), F(cb, {
16700
16706
  key: 5,
16701
16707
  label: J(n)("messagePart.stepOutput"),
16702
16708
  value: b.value.rawOutput
@@ -16735,24 +16741,24 @@ var Db = {
16735
16741
  isDark: { type: Boolean }
16736
16742
  },
16737
16743
  setup(e) {
16738
- let t = e, { t: n, n: r } = Ve({ useScope: "global" }), i = C(un, void 0), a = C(cn, void 0), o = (e) => yn(e) === "output-error" && "errorText" in e && typeof e.errorText == "string" ? e.errorText : void 0, s = z(() => {
16744
+ let t = e, { t: n, n: r } = Ve({ useScope: "global" }), i = C(fn, void 0), a = C(ln, void 0), o = (e) => Zt(e) === "output-error" && "errorText" in e && typeof e.errorText == "string" ? e.errorText : void 0, s = z(() => {
16739
16745
  let e = t.message.parts, r = t.message.metadata?.partTimings, s = [];
16740
16746
  for (let [c, l] of e.entries()) {
16741
- let u = mn(l), d = en(l), f = dn(l) || !!d;
16747
+ let u = un(l), d = Jt(l), f = an(l) || !!d;
16742
16748
  if (!u && !f) continue;
16743
- let p = d?.state === "input-available", m = "toolCallId" in l ? l.toolCallId : void 0, h = u && !t.hideReasoning && l.text.trim() ? l.text : void 0, g = o(l), _ = Wt(l), v = f && "input" in l ? l.input : void 0, y = f && "output" in l ? l.output : void 0, b = m ? a?.value[m]?.details : void 0;
16749
+ let p = d?.state === "input-available", m = "toolCallId" in l ? l.toolCallId : void 0, h = u && !t.hideReasoning && l.text.trim() ? l.text : void 0, g = o(l), _ = Nt(l), v = f && "input" in l ? l.input : void 0, y = f && "output" in l ? l.output : void 0, b = m ? a?.value[m]?.details : void 0;
16744
16750
  s.push({
16745
16751
  key: m ?? `${l.type}-${c}`,
16746
16752
  part: l,
16747
- icon: gn(l),
16748
- label: Ut(n, l, i?.value),
16749
- summary: p && !t.isStreaming ? n("messagePart.hostToolNoAnswer") : jt(l),
16753
+ icon: yn(l),
16754
+ label: jt(n, l, i?.value),
16755
+ summary: p && !t.isStreaming ? n("messagePart.hostToolNoAnswer") : _n(l),
16750
16756
  durationMs: m ? r?.[m] : void 0,
16751
16757
  isActive: !!t.isStreaming && (d ? p : c === e.length - 1),
16752
16758
  text: h,
16753
16759
  error: g,
16754
16760
  hasRichDetail: _,
16755
- hasBody: !!(b?.length || h || g || (_ ? v !== void 0 || y !== void 0 : _n(v) || _n(y))),
16761
+ hasBody: !!(b?.length || h || g || (_ ? v !== void 0 || y !== void 0 : Wt(v) || Wt(y))),
16756
16762
  toolInput: v,
16757
16763
  toolOutput: y,
16758
16764
  changes: b
@@ -16762,7 +16768,7 @@ var Db = {
16762
16768
  }), c = z(() => {
16763
16769
  let { createdAt: e, completedAt: n } = t.message.metadata ?? {};
16764
16770
  if (e && n) return n - e;
16765
- }), l = (e) => tn(r, e), u = De(/* @__PURE__ */ new Map()), d = (e) => u.get(e.key) ?? !1, f = (e) => {
16771
+ }), l = (e) => nn(r, e), u = De(/* @__PURE__ */ new Map()), d = (e) => u.get(e.key) ?? !1, f = (e) => {
16766
16772
  u.set(e.key, !d(e));
16767
16773
  }, p = R(void 0), m = z(() => p.value ?? (!!t.isStreaming && !t.hasContent));
16768
16774
  return (t, r) => {
@@ -16827,7 +16833,7 @@ var Db = {
16827
16833
  key: 1,
16828
16834
  markdown: t.text,
16829
16835
  "is-dark": e.isDark,
16830
- "tail-length": J(nn),
16836
+ "tail-length": J(rn),
16831
16837
  "inner-class": "wysiwyg",
16832
16838
  class: "pk-chatbot-steps__step-content pk-chatbot-steps__step-content--scroll"
16833
16839
  }, null, 8, [
@@ -16841,11 +16847,11 @@ var Db = {
16841
16847
  }, null, 8, ["markdown", "is-dark"])])) : t.error ? (X(), Y("div", Lb, [L("span", Rb, V(J(n)("messagePart.stepError")), 1), L("pre", null, V(t.error), 1)])) : t.hasRichDetail ? (X(), F(Eb, {
16842
16848
  key: 4,
16843
16849
  part: t.part
16844
- }, null, 8, ["part"])) : (X(), Y(I, { key: 5 }, [J(_n)(t.toolInput) ? (X(), F(cb, {
16850
+ }, null, 8, ["part"])) : (X(), Y(I, { key: 5 }, [J(Wt)(t.toolInput) ? (X(), F(cb, {
16845
16851
  key: 0,
16846
16852
  label: J(n)("messagePart.stepInput"),
16847
16853
  value: t.toolInput
16848
- }, null, 8, ["label", "value"])) : K("", !0), J(_n)(t.toolOutput) ? (X(), F(cb, {
16854
+ }, null, 8, ["label", "value"])) : K("", !0), J(Wt)(t.toolOutput) ? (X(), F(cb, {
16849
16855
  key: 1,
16850
16856
  label: J(n)("messagePart.stepOutput"),
16851
16857
  value: t.toolOutput
@@ -17065,11 +17071,11 @@ var Yb = ["aria-busy"], Xb = {
17065
17071
  "host-confirm-respond"
17066
17072
  ],
17067
17073
  setup(e, { emit: t }) {
17068
- let n = e, r = t, { t: i, te: a, d: o, n: s } = Ve({ useScope: "global" }), c = C(un, void 0), l = C(cn, void 0), u = (e) => {
17074
+ let n = e, r = t, { t: i, te: a, d: o, n: s } = Ve({ useScope: "global" }), c = C(fn, void 0), l = C(ln, void 0), u = (e) => {
17069
17075
  let t = e.toolCallId;
17070
17076
  return typeof t == "string" ? l?.value[t]?.details : void 0;
17071
17077
  }, d = ge(), f = (e, t) => {
17072
- if (Lt(e)) {
17078
+ if (Rt(e)) {
17073
17079
  let n = e.toolCallId;
17074
17080
  n && r("confirm-respond", {
17075
17081
  toolCallId: n,
@@ -17077,12 +17083,12 @@ var Yb = ["aria-busy"], Xb = {
17077
17083
  });
17078
17084
  return;
17079
17085
  }
17080
- let n = vn(e);
17086
+ let n = Ut(e);
17081
17087
  n && r("approval-respond", {
17082
17088
  id: n,
17083
17089
  approved: t
17084
17090
  });
17085
- }, p = he("scrollEl"), m = he("wrapperEl"), h = z(() => Ft(n.textColor, n.mainColor));
17091
+ }, p = he("scrollEl"), m = he("wrapperEl"), h = z(() => It(n.textColor, n.mainColor));
17086
17092
  $n(m);
17087
17093
  let { handleScroll: g, scrollToBottom: _, userScrolledUp: v, isAtBottom: y } = qb({
17088
17094
  scrollEl: p,
@@ -17097,7 +17103,7 @@ var Yb = ["aria-busy"], Xb = {
17097
17103
  v.value = !1, _();
17098
17104
  }, x = z(() => (n.messages ?? []).filter((e) => e.role === "user" && !Ai(e)).map((e) => ({
17099
17105
  id: e.id,
17100
- preview: e.parts.find(ln)?.text.trim().slice(0, 120) || "…"
17106
+ preview: e.parts.find(pn)?.text.trim().slice(0, 120) || "…"
17101
17107
  }))), S = R(), ee = () => p.value?.querySelectorAll(".pk-chatbot-message--user") ?? [], te = () => {
17102
17108
  let e = p.value;
17103
17109
  if (!e || !n.showScrollToBottom) return;
@@ -17148,7 +17154,7 @@ var Yb = ["aria-busy"], Xb = {
17148
17154
  "showDiagram",
17149
17155
  "showLocation"
17150
17156
  ]), _e = (e) => {
17151
- let t = Vt(e);
17157
+ let t = Ot(e);
17152
17158
  return {
17153
17159
  ...!n.interactive && pe.has(t) ? { record: !0 } : {},
17154
17160
  ...N.has(t) ? { isDark: n.isDark } : {}
@@ -17167,32 +17173,32 @@ var Yb = ["aria-busy"], Xb = {
17167
17173
  return i(t === "upvote" ? "hint.userFeedbackPositive" : t === "downvote" ? "hint.userFeedbackNegative" : "hint.userFeedbackReaction");
17168
17174
  }, B = (e) => {
17169
17175
  let t = Oe(e);
17170
- for (let e = t.length - 1; e >= 0; --e) if (ln(t[e])) return e;
17176
+ for (let e = t.length - 1; e >= 0; --e) if (pn(t[e])) return e;
17171
17177
  return -1;
17172
17178
  }, Ee = z(() => n.messages?.[n.messages.length - 1]), H = z(() => {
17173
17179
  let e = Ee.value;
17174
17180
  return e ? e.parts[e.parts.length - 1] : null;
17175
17181
  }), De = z(() => {
17176
17182
  let e = /* @__PURE__ */ new Map();
17177
- for (let t of n.messages ?? []) t.role === "assistant" && e.set(t.id, Pt(hn(Bt(t.parts))));
17183
+ for (let t of n.messages ?? []) t.role === "assistant" && e.set(t.id, Ft($t(Pt(t.parts))));
17178
17184
  return e;
17179
17185
  }), Oe = (e) => De.value.get(e.id) ?? e.parts, ke = z(() => n.status === "error"), U = z(() => n.awaitingSpokenAnswer === !0 && !T.value), Ae = z(() => U.value && Ee.value?.role === "user" && !ke.value), je = (e, t) => t(), Me = z(() => {
17180
17186
  let e = H.value;
17181
- return Ut(i, e, c?.value);
17187
+ return jt(i, e, c?.value);
17182
17188
  }), Ne = z(() => {
17183
17189
  let e = H.value;
17184
- return gn(e);
17190
+ return yn(e);
17185
17191
  }), Pe = (e) => n.messages?.findIndex((t) => t.id === e), Fe = (e) => e === void 0 || !n.messages ? !1 : e === n.messages.length - 1, q = (e) => Fe(e) && n.status === "ready" && !n.hostWorking && !!n.actions?.includes("regenerate"), Re = (e, t) => (!Fe(t) || n.status === "ready" && !n.hostWorking) && !!n.actions?.includes(e), ze = (e) => {
17186
17192
  let t = e.parts[e.parts.length - 1];
17187
- return ln(t);
17188
- }, Be = (e) => e.parts.some((e) => mn(e) || dn(e) || !!en(e)), He = (e) => !!n.showExtendedSteps && Ze(e) && Be(e), Ue = (e) => n.hostConfirmation !== void 0 && en(e) !== void 0 && e.toolCallId === n.hostConfirmation.toolCallId, We = z(() => n.hostConfirmation !== void 0 && !n.messages?.some((e) => e.parts.some(Ue))), Ge = (e, t) => T.value && Fe(e) && en(t)?.state === "input-available", qe = (e, t, n, r) => {
17189
- if (!en(n) || He(e)) return !1;
17193
+ return pn(t);
17194
+ }, Be = (e) => e.parts.some((e) => un(e) || an(e) || !!Jt(e)), He = (e) => !!n.showExtendedSteps && Ze(e) && Be(e), Ue = (e) => n.hostConfirmation !== void 0 && Jt(e) !== void 0 && e.toolCallId === n.hostConfirmation.toolCallId, We = z(() => n.hostConfirmation !== void 0 && !n.messages?.some((e) => e.parts.some(Ue))), Ge = (e, t) => T.value && Fe(e) && Jt(t)?.state === "input-available", qe = (e, t, n, r) => {
17195
+ if (!Jt(n) || He(e)) return !1;
17190
17196
  let i = Ge(t, n);
17191
- return i && r === Oe(e).length - 1 ? !1 : i || on(n) || !Ot(e);
17197
+ return i && r === Oe(e).length - 1 ? !1 : i || kt(n) || !en(e);
17192
17198
  }, Je = (e, t) => {
17193
- let n = en(t);
17199
+ let n = Jt(t);
17194
17200
  return n?.state === "output-error" ? i(n.errorText === "The user refused this call. Do not repeat it unless the user asks." ? "toolApproval.denied" : "messagePart.hostToolFailed") : n?.state === "input-available" && !Ge(e, t) ? i("messagePart.hostToolNoAnswer") : void 0;
17195
- }, Ye = (e) => dn(e) && !an(e) && !!(Ty[Vt(e)] || d[e.type] || n.showAllMessageParts), Xe = (e) => e.parts.some((e) => ln(e) && !!e.text.trim() || Qt(e) || Mt(e) && !an(e) || Ye(e)), Ze = (e) => e.role === "assistant", Qe = (e) => e.role === "user", $e = (e) => n.messages?.slice(0, e).reverse().find((e) => Ze(e)), et = (e) => n.messages?.slice(e + 1).find((e) => Ze(e)), tt = (e) => {
17201
+ }, Ye = (e) => an(e) && !Lt(e) && !!(Ty[Ot(e)] || d[e.type] || n.showAllMessageParts), Xe = (e) => e.parts.some((e) => pn(e) && !!e.text.trim() || hn(e) || zt(e) && !Lt(e) || Ye(e)), Ze = (e) => e.role === "assistant", Qe = (e) => e.role === "user", $e = (e) => n.messages?.slice(0, e).reverse().find((e) => Ze(e)), et = (e) => n.messages?.slice(e + 1).find((e) => Ze(e)), tt = (e) => {
17196
17202
  let t = $e(e)?.metadata?.createdAt, n = et(e)?.metadata?.createdAt;
17197
17203
  if (!t || !n) return;
17198
17204
  let r = new Date(t), i = new Date(n);
@@ -17205,7 +17211,7 @@ var Yb = ["aria-busy"], Xb = {
17205
17211
  return o(t, n ? "time" : "date-time");
17206
17212
  }, ot = (e) => {
17207
17213
  let { createdAt: t, completedAt: n } = e.metadata ?? {};
17208
- if (t && n) return tn(s, n - t);
17214
+ if (t && n) return nn(s, n - t);
17209
17215
  }, st = he("feedbackMessageEl");
17210
17216
  return A(() => n.feedbackMessageId, async () => {
17211
17217
  if (await O(), !n.feedbackMessageId) return;
@@ -17284,7 +17290,7 @@ var Yb = ["aria-busy"], Xb = {
17284
17290
  ])) : K("", !0)]),
17285
17291
  _: 2
17286
17292
  }, 1024),
17287
- (X(!0), Y(I, null, me(Oe(p), (o, s) => (X(), Y(I, { key: J(Zt)(o, s) }, [J(ln)(o) && o.text.trim() ? (X(), F(W, {
17293
+ (X(!0), Y(I, null, me(Oe(p), (o, s) => (X(), Y(I, { key: J(tn)(o, s) }, [J(pn)(o) && o.text.trim() ? (X(), F(W, {
17288
17294
  key: 0,
17289
17295
  appear: "",
17290
17296
  name: "pk-chatbot-part"
@@ -17313,7 +17319,7 @@ var Yb = ["aria-busy"], Xb = {
17313
17319
  name: be(p.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
17314
17320
  }, null, 8, ["name"]))], 10, nx)) : K("", !0)])]),
17315
17321
  _: 2
17316
- }, 1024)) : J(Qt)(o) ? (X(), F(W, {
17322
+ }, 1024)) : J(hn)(o) ? (X(), F(W, {
17317
17323
  key: 1,
17318
17324
  appear: "",
17319
17325
  name: "pk-chatbot-part"
@@ -17330,7 +17336,7 @@ var Yb = ["aria-busy"], Xb = {
17330
17336
  "size"
17331
17337
  ]), j(xy, {
17332
17338
  url: o.url,
17333
- transcript: J(Gt)(o),
17339
+ transcript: J(qt)(o),
17334
17340
  pending: e.status === "submitted" && Fe(m)
17335
17341
  }, null, 8, [
17336
17342
  "url",
@@ -17349,7 +17355,7 @@ var Yb = ["aria-busy"], Xb = {
17349
17355
  "size"
17350
17356
  ]))]),
17351
17357
  _: 2
17352
- }, 1024)) : J(Mt)(o) && !J(an)(o) ? (X(), F(W, {
17358
+ }, 1024)) : J(zt)(o) && !J(Lt)(o) ? (X(), F(W, {
17353
17359
  key: 2,
17354
17360
  appear: "",
17355
17361
  name: "pk-chatbot-part"
@@ -17357,7 +17363,7 @@ var Yb = ["aria-busy"], Xb = {
17357
17363
  default: G(() => [(X(), F(Ay, {
17358
17364
  key: `approval-${s}`,
17359
17365
  part: o,
17360
- actionable: e.interactive === !0 && (J(Lt)(o) || Fe(m)),
17366
+ actionable: e.interactive === !0 && (J(Rt)(o) || Fe(m)),
17361
17367
  "call-verdict": e.confirmVerdictsOnCall?.get(o.toolCallId ?? ""),
17362
17368
  onRespond: (e) => f(o, e)
17363
17369
  }, null, 8, [
@@ -17373,7 +17379,7 @@ var Yb = ["aria-busy"], Xb = {
17373
17379
  name: "pk-chatbot-part"
17374
17380
  }, {
17375
17381
  default: G(() => [j(Yy, {
17376
- question: e.hostConfirmation?.question ?? J(i)("toolApproval.hostCall", { name: J(Ut)(J(i), o) }),
17382
+ question: e.hostConfirmation?.question ?? J(i)("toolApproval.hostCall", { name: J(jt)(J(i), o) }),
17377
17383
  details: e.hostConfirmation?.details,
17378
17384
  unchanged: e.hostConfirmation?.unchanged,
17379
17385
  onRespond: n[0] ||= (e) => r("host-confirm-respond", e)
@@ -17390,10 +17396,10 @@ var Yb = ["aria-busy"], Xb = {
17390
17396
  }, {
17391
17397
  default: G(() => [L("div", ax, [L("div", ox, [
17392
17398
  j(l, {
17393
- name: Ge(m, o) ? "loading-loop" : J(gn)(o) ?? "ri:apps-line",
17399
+ name: Ge(m, o) ? "loading-loop" : J(yn)(o) ?? "ri:apps-line",
17394
17400
  class: "shrink-0"
17395
17401
  }, null, 8, ["name"]),
17396
- L("span", sx, V(J(Ut)(J(i), o, J(c))), 1),
17402
+ L("span", sx, V(J(jt)(J(i), o, J(c))), 1),
17397
17403
  Je(m, o) ? (X(), Y("span", cx, " · " + V(Je(m, o)), 1)) : K("", !0)
17398
17404
  ]), u(o)?.length ? (X(), F(g, {
17399
17405
  key: 0,
@@ -17410,19 +17416,19 @@ var Yb = ["aria-busy"], Xb = {
17410
17416
  appear: "",
17411
17417
  name: "pk-chatbot-part"
17412
17418
  }, {
17413
- default: G(() => [!J(d)[o.type] && J(Ty)[J(Vt)(o)] ? (X(), F(P(J(Ty)[J(Vt)(o)]), de({
17414
- key: `component-${s}-${J(yn)(o)}`,
17419
+ default: G(() => [!J(d)[o.type] && J(Ty)[J(Ot)(o)] ? (X(), F(P(J(Ty)[J(Ot)(o)]), de({
17420
+ key: `component-${s}-${J(Zt)(o)}`,
17415
17421
  part: o
17416
17422
  }, { ref_for: !0 }, _e(o)), null, 16, ["part"])) : ae(t.$slots, o.type, de({ ref_for: !0 }, {
17417
17423
  message: p,
17418
17424
  part: o,
17419
17425
  index: m,
17420
17426
  isLoading: T.value
17421
- }), () => [e.showAllMessageParts ? (X(), Y("div", lx, [L("div", ux, [J(gn)(o) ? (X(), F(l, {
17427
+ }), () => [e.showAllMessageParts ? (X(), Y("div", lx, [L("div", ux, [J(yn)(o) ? (X(), F(l, {
17422
17428
  key: 0,
17423
- name: J(gn)(o),
17429
+ name: J(yn)(o),
17424
17430
  class: "shrink-0"
17425
- }, null, 8, ["name"])) : K("", !0), L("span", dx, V(J(Yt)(o, {
17431
+ }, null, 8, ["name"])) : K("", !0), L("span", dx, V(J(vn)(o, {
17426
17432
  t: J(i),
17427
17433
  te: J(a)
17428
17434
  })), 1)])])) : K("", !0)], void 0, 1)]),
@@ -17484,7 +17490,7 @@ var Yb = ["aria-busy"], Xb = {
17484
17490
  key: 0,
17485
17491
  markdown: H.value.text,
17486
17492
  "is-dark": e.isDark,
17487
- "tail-length": J(nn),
17493
+ "tail-length": J(rn),
17488
17494
  "inner-class": "wysiwyg",
17489
17495
  class: "border border-surface-3 rounded-md p-4 mt-8 bg-surface-1 max-h-64 text-12 w-full"
17490
17496
  }, null, 8, [
@@ -17897,7 +17903,7 @@ var Ux = { class: "pk-chatbot-input" }, Wx = {
17897
17903
  "manual-confirmations"
17898
17904
  ], ["update:modelValue", "update:pendingAttachments"]),
17899
17905
  setup(e, { expose: t, emit: n }) {
17900
- let r = w(() => import("./_chunks/PkImageEditorDialog-FpbyhV3t.js")), i = k(e, "modelValue"), a = k(e, "pendingAttachments"), o = n, s = e, { t: c } = Ve({ useScope: "global" }), l = he("textareaEl"), u = he("fileInputEl"), d = he("cameraInputEl"), f = he("formEl"), p = R(i.value ?? ""), m = null, h = () => {
17906
+ let r = w(() => import("./_chunks/PkImageEditorDialog-PVf3IHGB.js")), i = k(e, "modelValue"), a = k(e, "pendingAttachments"), o = n, s = e, { t: c } = Ve({ useScope: "global" }), l = he("textareaEl"), u = he("fileInputEl"), d = he("cameraInputEl"), f = he("formEl"), p = R(i.value ?? ""), m = null, h = () => {
17901
17907
  m !== null && (clearTimeout(m), m = null);
17902
17908
  }, g = () => {
17903
17909
  h(), i.value = p.value;
@@ -17928,7 +17934,7 @@ var Ux = { class: "pk-chatbot-input" }, Wx = {
17928
17934
  }, P = (e) => {
17929
17935
  let t = a.value.find((t) => t.id === e);
17930
17936
  t && (URL.revokeObjectURL(t.localUrl), a.value = a.value.filter((t) => t.id !== e), o("remove-attachment", t));
17931
- }, ge = R(), _e = z(() => a.value.find((e) => e.id === ge.value)), ve = Ie(), ye = z(() => _e.value?.file ?? ve.value), be = (e) => !!s.editableImages && e.state !== "uploading" && zt(e.file.type), Se = () => {
17937
+ }, ge = R(), _e = z(() => a.value.find((e) => e.id === ge.value)), ve = Ie(), ye = z(() => _e.value?.file ?? ve.value), be = (e) => !!s.editableImages && e.state !== "uploading" && sn(e.file.type), Se = () => {
17932
17938
  ge.value = void 0, ve.value = void 0;
17933
17939
  }, Ce = async (e) => {
17934
17940
  let t = _e.value, n = !t && !!ve.value;
@@ -17977,7 +17983,7 @@ var Ux = { class: "pk-chatbot-input" }, Wx = {
17977
17983
  l.value && (l.value.value = "", zx.update(l.value));
17978
17984
  }));
17979
17985
  }, Oe = (e) => {
17980
- e.shiftKey || kt(e) || (e.preventDefault(), De());
17986
+ e.shiftKey || on(e) || (e.preventDefault(), De());
17981
17987
  };
17982
17988
  se(() => {
17983
17989
  l.value && zx(l.value);
@@ -18787,8 +18793,8 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
18787
18793
  "selection-action"
18788
18794
  ],
18789
18795
  setup(e, { emit: t }) {
18790
- let n = w(() => import("./_chunks/PkToolShowForm-DJcL0bgw.js")), r = w(() => import("./_chunks/PkToolShowContactForm-BAM772bm.js")), i = w(() => import("./_chunks/PkToolShowSuggestedReply-gpuWzpoh.js")), a = w(() => import("./_chunks/PkToolShowSources-GeWAMHYC.js")), o = w(() => import("./_chunks/PkToolRequestGeolocation-CwDQnr7u.js")), s = w(() => import("./_chunks/PkToolRequestOAuthConnection-DkrnVowp.js")), c = w(() => import("./_chunks/PkToolShowLocation-BYkY2CEF.js")), l = w(() => import("./_chunks/PkToolShowChart-DZWu3Yuo.js").then((e) => e.t)), u = w(() => import("./_chunks/PkToolShowDiagram-CcRJNDHo.js")), d = w(() => import("./_chunks/PkToolChatFile-C_gS0X1j.js")), f = w(() => import("./_chunks/PkToolShareDocument-BUg-uDTO.js")), p = w(() => import("./_chunks/PkFilePreview-DC4iX7Yc.js").then((e) => e.n)), m = w(() => import("./_chunks/PkFilePreviewDialog-bcTkTcYk.js")), h = e, g = t, _ = ip(h.agentId), { agentInterface: v, agentFileUpload: y, agentType: b, agentVoice: x, actions: S, revisedAnswers: ee, messages: te, chat: C, messageFeedbacks: T, feedbackDialogMessage: re, isFeedbackSubmitting: ie, isFeedbackSubmitted: E, feedbackSubmitError: O, isLeadSubmitted: ae, isLoadingSubmitLead: k, submitLeadError: se, input: ce, inputMessagePlaceholder: le, isConversationBlocked: ue, baseUrl: de, pendingAttachments: fe, isAttachmentLimitReached: M, fileLimitError: pe, apiClient: N, isDark: me, hostToolsPending: P, pageNoticeLevel: ge, hostConfirmation: _e, agentPageAccess: ye, hostStepTitles: be, hostStepChanges: xe, confirmationMode: Se, canQueue: I, queuedMessages: Ce, backgroundAnswers: we, inputFocusRequest: Te, pagePointer: B, pagePointerAvailable: Ee, pagePointing: H, agentSelectionActions: De } = Pr(_);
18791
- ne(un, be), ne(cn, xe);
18796
+ let n = w(() => import("./_chunks/PkToolShowForm-w9HGhvCy.js")), r = w(() => import("./_chunks/PkToolShowContactForm-Dio2FNkA.js")), i = w(() => import("./_chunks/PkToolShowSuggestedReply-gpuWzpoh.js")), a = w(() => import("./_chunks/PkToolShowSources-DXFvFHOo.js")), o = w(() => import("./_chunks/PkToolRequestGeolocation-CwDQnr7u.js")), s = w(() => import("./_chunks/PkToolRequestOAuthConnection-DkrnVowp.js")), c = w(() => import("./_chunks/PkToolShowLocation-BYkY2CEF.js")), l = w(() => import("./_chunks/PkToolShowChart-D3E_xBJv.js")), u = w(() => import("./_chunks/PkToolShowDiagram-CcRJNDHo.js")), d = w(() => import("./_chunks/PkToolChatFile-CMQdMs-9.js")), f = w(() => import("./_chunks/PkToolShareDocument-BUg-uDTO.js")), p = w(() => import("./_chunks/PkFilePreview-yjdtArag.js").then((e) => e.n)), m = w(() => import("./_chunks/PkFilePreviewDialog-Df0Lt40J.js")), h = e, g = t, _ = ip(h.agentId), { agentInterface: v, agentFileUpload: y, agentType: b, agentVoice: x, actions: S, revisedAnswers: ee, messages: te, chat: C, messageFeedbacks: T, feedbackDialogMessage: re, isFeedbackSubmitting: ie, isFeedbackSubmitted: E, feedbackSubmitError: O, isLeadSubmitted: ae, isLoadingSubmitLead: k, submitLeadError: se, input: ce, inputMessagePlaceholder: le, isConversationBlocked: ue, baseUrl: de, pendingAttachments: fe, isAttachmentLimitReached: M, fileLimitError: pe, apiClient: N, isDark: me, hostToolsPending: P, pageNoticeLevel: ge, hostConfirmation: _e, agentPageAccess: ye, hostStepTitles: be, hostStepChanges: xe, confirmationMode: Se, canQueue: I, queuedMessages: Ce, backgroundAnswers: we, inputFocusRequest: Te, pagePointer: B, pagePointerAvailable: Ee, pagePointing: H, agentSelectionActions: De } = Pr(_);
18797
+ ne(fn, be), ne(ln, xe);
18792
18798
  let Oe = he("inputEl");
18793
18799
  A(Te, () => {
18794
18800
  Oe.value?.focus();
@@ -18887,89 +18893,89 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
18887
18893
  onDrop: (e) => {
18888
18894
  if (U.value?.enabled && e) for (let t of e) Ge(t);
18889
18895
  }
18890
- }), Xt = R(!1), Zt = !1, en = R(!1), tn = [
18896
+ }), Xt = R(!1), Qt = !1, $t = R(!1), en = [
18891
18897
  3e3,
18892
18898
  5e3,
18893
18899
  1e4
18894
- ], nn, rn, an = !1, on = 0, ln = !1;
18895
- function dn() {
18896
- clearTimeout(nn), nn = void 0, rn = void 0, an = !1, on = 0, en.value = !1;
18900
+ ], tn, nn, rn = !1, an = 0, on = !1;
18901
+ function sn() {
18902
+ clearTimeout(tn), tn = void 0, nn = void 0, rn = !1, an = 0, $t.value = !1;
18897
18903
  }
18898
- function fn(e) {
18899
- Zt || (clearTimeout(nn), nn = setTimeout(() => {
18900
- pn();
18904
+ function cn(e) {
18905
+ Qt || (clearTimeout(tn), tn = setTimeout(() => {
18906
+ un();
18901
18907
  }, e));
18902
18908
  }
18903
- async function pn() {
18904
- if (Zt || ln) return;
18905
- ln = !0;
18909
+ async function un() {
18910
+ if (Qt || on) return;
18911
+ on = !0;
18906
18912
  let e;
18907
18913
  try {
18908
18914
  e = await Ze();
18909
18915
  } finally {
18910
- ln = !1;
18916
+ on = !1;
18911
18917
  }
18912
- if (Zt) return;
18913
- if (e === "caught-up" && (en.value = !1, Xn()), gn.isActive.value) {
18914
- rn = void 0, an = !1, on = 0, fn(HS);
18918
+ if (Qt) return;
18919
+ if (e === "caught-up" && ($t.value = !1, Xn()), _n.isActive.value) {
18920
+ nn = void 0, rn = !1, an = 0, cn(HS);
18915
18921
  return;
18916
18922
  }
18917
- rn === void 0 && (rn = Date.now(), an = !!gn.error.value);
18918
- let t = Date.now() - rn;
18919
- if (e === "caught-up" && t >= (an ? WS : US) || t >= GS) {
18920
- dn(), Zn();
18923
+ nn === void 0 && (nn = Date.now(), rn = !!_n.error.value);
18924
+ let t = Date.now() - nn;
18925
+ if (e === "caught-up" && t >= (rn ? WS : US) || t >= GS) {
18926
+ sn(), Zn();
18921
18927
  return;
18922
18928
  }
18923
- let n = tn[Math.min(on, tn.length - 1)];
18924
- on += 1, fn(n);
18929
+ let n = en[Math.min(an, en.length - 1)];
18930
+ an += 1, cn(n);
18925
18931
  }
18926
- let mn = (e = 1200) => {
18927
- fn(e);
18928
- }, hn, gn = ES({
18932
+ let pn = (e = 1200) => {
18933
+ cn(e);
18934
+ }, mn, _n = ES({
18929
18935
  fetchGrant: async () => {
18930
- hn = _.voicePageTools();
18936
+ mn = _.voicePageTools();
18931
18937
  let e = await N.value.createVoiceSession(h.agentId, _.localChatId, {
18932
18938
  deviceContext: _.buildDeviceContext(),
18933
18939
  externalContext: _.externalContext,
18934
- pageTools: hn?.declaration,
18940
+ pageTools: mn?.declaration,
18935
18941
  ..._.confirmationMode === "automatic" && { confirmations: "automatic" }
18936
18942
  });
18937
18943
  return e.chatId !== _.localChatId && (_.localChatId = e.chatId), e;
18938
18944
  },
18939
18945
  closeGrant: (e) => N.value.closeVoiceSession(h.agentId, e),
18940
- clientTools: () => hn?.clientTools,
18946
+ clientTools: () => mn?.clientTools,
18941
18947
  onTranscript: (e) => {
18942
- e.role === "user" ? (en.value = !0, Yn(), Qe({
18948
+ e.role === "user" ? ($t.value = !0, Yn(), Qe({
18943
18949
  id: `${zf}user-${zl()}`,
18944
18950
  role: "user",
18945
18951
  parts: [{
18946
18952
  type: "text",
18947
18953
  text: e.text
18948
18954
  }]
18949
- })) : en.value = !1;
18955
+ })) : $t.value = !1;
18950
18956
  },
18951
18957
  onTurnEnd: () => {
18952
- mn();
18958
+ pn();
18953
18959
  }
18954
18960
  });
18955
- A(() => gn.isActive.value, (e) => {
18961
+ A(() => _n.isActive.value, (e) => {
18956
18962
  e || _.cancelVoicePageCalls();
18957
- }), A(() => gn.error.value, (e) => {
18958
- e && (en.value = !1);
18963
+ }), A(() => _n.error.value, (e) => {
18964
+ e && ($t.value = !1);
18959
18965
  });
18960
- let _n = z(() => x.value?.enabled === !0), vn = z(() => gn.error.value ? "error" : gn.isConnecting.value ? "connecting" : gn.isSpeaking.value ? "speaking" : gn.isActive.value ? "listening" : "idle"), bn = z(() => {
18961
- let e = gn.error.value;
18966
+ let vn = z(() => x.value?.enabled === !0), yn = z(() => _n.error.value ? "error" : _n.isConnecting.value ? "connecting" : _n.isSpeaking.value ? "speaking" : _n.isActive.value ? "listening" : "idle"), bn = z(() => {
18967
+ let e = _n.error.value;
18962
18968
  if (e) return /took too long/i.test(e) ? at("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? at("message.voiceNoAnswer") : at("message.voiceInterrupted");
18963
- }), xn = z(() => gn.isSpeaking.value ? "output" : "input"), Sn = () => gn.readLevel(xn.value), Cn = () => gn.readSpectrum(xn.value), wn = async () => {
18964
- Xt.value = !1, await gn.start(), gn.isActive.value && (dn(), fn(HS));
18969
+ }), xn = z(() => _n.isSpeaking.value ? "output" : "input"), Sn = () => _n.readLevel(xn.value), Cn = () => _n.readSpectrum(xn.value), wn = async () => {
18970
+ Xt.value = !1, await _n.start(), _n.isActive.value && (sn(), cn(HS));
18965
18971
  }, Tn = async () => {
18966
- en.value = !1, await gn.stop(), !Zt && mn(0);
18972
+ $t.value = !1, await _n.stop(), !Qt && pn(0);
18967
18973
  }, En = () => {
18968
- gn.dismissError();
18974
+ _n.dismissError();
18969
18975
  }, On = async () => {
18970
- gn.dismissError(), await gn.stop(), await wn();
18971
- }, kn = (e) => e?.toolCallId ?? "", jn = R(/* @__PURE__ */ new Set()), Mn = (e) => jn.value.has(kn(e)), Nn = R(/* @__PURE__ */ new Map()), Pn = (e, t) => gn.isActive.value ? (gn.sendUserMessage(t) && (jn.value = new Set(jn.value).add(kn(e)), mn()), !0) : !1, Fn = (e, t, n) => {
18972
- Pn(t, $t(t, n)) || Ue({
18976
+ _n.dismissError(), await _n.stop(), await wn();
18977
+ }, kn = (e) => e?.toolCallId ?? "", jn = R(/* @__PURE__ */ new Set()), Mn = (e) => jn.value.has(kn(e)), Nn = R(/* @__PURE__ */ new Map()), Pn = (e, t) => _n.isActive.value ? (_n.sendUserMessage(t) && (jn.value = new Set(jn.value).add(kn(e)), pn()), !0) : !1, Fn = (e, t, n) => {
18978
+ Pn(t, dn(t, n)) || Ue({
18973
18979
  tool: e,
18974
18980
  toolCallId: kn(t),
18975
18981
  output: n
@@ -18996,12 +19002,12 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
18996
19002
  }
18997
19003
  };
18998
19004
  for (let e of te.value) for (let n of e.parts) {
18999
- if (Qt(n)) {
19005
+ if (hn(n)) {
19000
19006
  t(n.filename, Kt(n)?.storedFileName);
19001
19007
  continue;
19002
19008
  }
19003
19009
  let { type: e, state: r, output: i } = n;
19004
- It.has(e) && r === "output-available" && i?.filename && t(sn(i.filename, i.version), i.fileId);
19010
+ It.has(e) && r === "output-available" && i?.filename && t(gn(i.filename, i.version), i.fileId);
19005
19011
  }
19006
19012
  return e;
19007
19013
  }), Bn = z(() => ue.value ? void 0 : (e) => {
@@ -19026,10 +19032,10 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19026
19032
  }
19027
19033
  });
19028
19034
  }, Gn = () => {
19029
- Xt.value = !Xt.value, gn.setMuted(Xt.value);
19035
+ Xt.value = !Xt.value, _n.setMuted(Xt.value);
19030
19036
  };
19031
19037
  oe(() => {
19032
- Zt = !0, dn();
19038
+ Qt = !0, sn();
19033
19039
  });
19034
19040
  let { pendingWakeup: Kn, isStopping: qn, stop: Jn, spokenTurnStarted: Yn, spokenTurnsWritten: Xn, forgetSpokenTurns: Zn } = NS({
19035
19041
  agentId: () => h.agentId,
@@ -19082,7 +19088,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19082
19088
  "feedback-error": J(O),
19083
19089
  "show-extended-steps": J(v)?.showExtendedSteps,
19084
19090
  "hide-reasoning": J(v)?.showReasoning === !1,
19085
- "awaiting-spoken-answer": en.value,
19091
+ "awaiting-spoken-answer": $t.value,
19086
19092
  "host-working": Z.value,
19087
19093
  "host-confirmation": J(_e),
19088
19094
  "is-dark": J(me),
@@ -19167,7 +19173,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19167
19173
  ])]),
19168
19174
  "tool-requestGeolocation": G(({ part: e }) => [j(J(o), {
19169
19175
  part: e,
19170
- "call-live": J(gn).isActive.value,
19176
+ "call-live": J(_n).isActive.value,
19171
19177
  "reverse-geocode": (e, t) => J(N).reverseGeocode(e, t),
19172
19178
  onResult: (t) => Hn(e, t)
19173
19179
  }, null, 8, [
@@ -19196,7 +19202,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19196
19202
  "is-dark": J(me)
19197
19203
  }, null, 8, ["part", "is-dark"])]),
19198
19204
  "tool-editSpreadsheet": G(({ part: e }) => [(X(), F(J(d), {
19199
- key: J(yn)(e),
19205
+ key: J(Zt)(e),
19200
19206
  part: e,
19201
19207
  "file-url": Me,
19202
19208
  preview: Mt,
@@ -19208,7 +19214,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19208
19214
  "restore"
19209
19215
  ]))]),
19210
19216
  "tool-editWordDocument": G(({ part: e }) => [(X(), F(J(d), {
19211
- key: J(yn)(e),
19217
+ key: J(Zt)(e),
19212
19218
  part: e,
19213
19219
  "file-url": Me,
19214
19220
  preview: Mt,
@@ -19220,7 +19226,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19220
19226
  "restore"
19221
19227
  ]))]),
19222
19228
  "tool-createSpreadsheet": G(({ part: e }) => [(X(), F(J(d), {
19223
- key: J(yn)(e),
19229
+ key: J(Zt)(e),
19224
19230
  part: e,
19225
19231
  "file-url": Me,
19226
19232
  preview: Mt,
@@ -19232,7 +19238,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19232
19238
  "restore"
19233
19239
  ]))]),
19234
19240
  "tool-createWordDocument": G(({ part: e }) => [(X(), F(J(d), {
19235
- key: J(yn)(e),
19241
+ key: J(Zt)(e),
19236
19242
  part: e,
19237
19243
  "file-url": Me,
19238
19244
  preview: Mt,
@@ -19244,7 +19250,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19244
19250
  "restore"
19245
19251
  ]))]),
19246
19252
  "tool-shareDocument": G(({ part: e }) => [(X(), F(J(f), {
19247
- key: J(yn)(e),
19253
+ key: J(Zt)(e),
19248
19254
  part: e,
19249
19255
  "on-download": Jt
19250
19256
  }, null, 8, ["part"]))]),
@@ -19288,7 +19294,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19288
19294
  "stopping",
19289
19295
  "onStop"
19290
19296
  ])) : K("", !0),
19291
- J(ue) ? (X(), Y("div", LS, V(J(at)("message.chatErrorConversationBlocked")), 1)) : vn.value === "idle" ? (X(), F(iS, {
19297
+ J(ue) ? (X(), Y("div", LS, V(J(at)("message.chatErrorConversationBlocked")), 1)) : yn.value === "idle" ? (X(), F(iS, {
19292
19298
  key: 3,
19293
19299
  ref_key: "inputEl",
19294
19300
  ref: Oe,
@@ -19304,7 +19310,7 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19304
19310
  "file-upload": U.value,
19305
19311
  "attachment-limit-reached": J(M),
19306
19312
  "attachment-notice": lt.value,
19307
- "voice-enabled": _n.value,
19313
+ "voice-enabled": vn.value,
19308
19314
  "queue-enabled": J(I),
19309
19315
  "answer-notices": ut.value,
19310
19316
  "pointer-available": J(Ee),
@@ -19337,14 +19343,14 @@ var IS = { class: "pk-chatbot-view-chat__input-stage" }, LS = {
19337
19343
  key: "0"
19338
19344
  } : void 0]), 1032, /* @__PURE__ */ "modelValue.pending-attachments.placeholder.dismissable-notice.page-notice.status.max-message-length.file-upload.attachment-limit-reached.attachment-notice.voice-enabled.queue-enabled.answer-notices.pointer-available.pointing.pointer.automatic-confirmations.onStopGeneration.onSubmit.onFileSelect.onRemoveAttachment.onReplaceAttachment.onRetryAttachment.onDismissAttachmentNotice.onDismissPageNotice.onOpenAnswerNotice.onDismissAnswerNotice".split("."))) : (X(), F(xS, {
19339
19345
  key: 2,
19340
- state: vn.value,
19346
+ state: yn.value,
19341
19347
  sample: Sn,
19342
19348
  spectrum: Cn,
19343
- "remaining-seconds": J(gn).remainingSeconds.value,
19349
+ "remaining-seconds": J(_n).remainingSeconds.value,
19344
19350
  muted: Xt.value,
19345
19351
  error: bn.value,
19346
- "raw-error": J(gn).error.value,
19347
- live: J(gn).isActive.value,
19352
+ "raw-error": J(_n).error.value,
19353
+ live: J(_n).isActive.value,
19348
19354
  class: "pk-chatbot-view-chat__voice",
19349
19355
  onToggleMute: Gn,
19350
19356
  onHangUp: Tn,
@@ -19495,7 +19501,7 @@ var qS = { class: "flex flex-col flex-1 min-h-0 relative" }, JS = {
19495
19501
  deleteChat: d
19496
19502
  }), y = (e) => {
19497
19503
  f.value || (o.value = e, c("chat"));
19498
- }, b = (e) => o.value === e.id, x = (e, t) => Et(qt(e.filter((e) => e.role === t).slice(-1)[0]) || ""), S = (e) => {
19504
+ }, b = (e) => o.value === e.id, x = (e, t) => Et(Vt(e.filter((e) => e.role === t).slice(-1)[0]) || ""), S = (e) => {
19499
19505
  m(e, x(e.messages, "assistant"));
19500
19506
  }, { openDialogConfirm: ee } = mp(), te = C(kv, void 0), ne = z(() => !!te?.eraseConversations && !(te.isExternalAuth?.value ?? !1)), w = R(!1), T = async () => {
19501
19507
  let e = te?.eraseConversations;
@@ -19586,7 +19592,7 @@ var qS = { class: "flex flex-col flex-1 min-h-0 relative" }, JS = {
19586
19592
  class: "text-word-4 text-smaller shrink-0",
19587
19593
  date: e.lastMessageAt
19588
19594
  }, null, 8, ["date"])
19589
- ]), L("span", uC, V(J(Et)(J(Rt)(e.summary, J(n))) || x(e.messages, "user")), 1)])], 8, oC), L("div", dC, [j(m, de({ ref_for: !0 }, {
19595
+ ]), L("span", uC, V(J(Et)(J(Bt)(e.summary, J(n))) || x(e.messages, "user")), 1)])], 8, oC), L("div", dC, [j(m, de({ ref_for: !0 }, {
19590
19596
  placement: "bottom-end",
19591
19597
  modifiers: "menu",
19592
19598
  flip: !0,
@@ -19857,7 +19863,7 @@ var GC = { class: "pk-chatbot__header-start" }, KC = ["title"], qC = { key: 1 },
19857
19863
  o("error", t);
19858
19864
  } catch {}
19859
19865
  });
19860
- let oe = z(() => a.modifier === "fullscreen"), se = z(() => a.modifier === "panel"), ce = he("chatbotEl"), { width: le } = En(ce), fe = z(() => le.value > 0 && le.value < 576), M = z(() => le.value > 0 && le.value < 640), pe = z(() => le.value >= 848), N = z(() => a.agentType === "reasoning"), P = z(() => N.value && !l.value.some((e) => e.role === "user")), _e = z(() => !se.value && a.agentInterface?.useColorsForAgentHeader), be = z(() => !se.value || re.value || O.value || m.value || g.value || a.closable || !!a.userFilesEnabled && !!u.value), xe = z(() => ["theme", `theme--${p.value ? "dark" : "light"}`]), Se = z(() => a.agentInterface?.mainColor), Ce = z(() => Ft(a.agentInterface?.textColor, Se.value)), R = z(() => fn(Se.value, Ce.value)), we = Un(() => a.agentInterface?.footerMessage), Te = z(() => d.value === "conversations" ? i("label.conversations") : d.value === "profile" ? i("label.profile") : d.value === "auth" ? i("label.authentication") : d.value === "files" ? i("userFiles.chatFilesTitle") : a.name), B = z(() => l.value?.[l.value.length - 1]);
19866
+ let oe = z(() => a.modifier === "fullscreen"), se = z(() => a.modifier === "panel"), ce = he("chatbotEl"), { width: le } = En(ce), fe = z(() => le.value > 0 && le.value < 576), M = z(() => le.value > 0 && le.value < 640), pe = z(() => le.value >= 848), N = z(() => a.agentType === "reasoning"), P = z(() => N.value && !l.value.some((e) => e.role === "user")), _e = z(() => !se.value && a.agentInterface?.useColorsForAgentHeader), be = z(() => !se.value || re.value || O.value || m.value || g.value || a.closable || !!a.userFilesEnabled && !!u.value), xe = z(() => ["theme", `theme--${p.value ? "dark" : "light"}`]), Se = z(() => a.agentInterface?.mainColor), Ce = z(() => It(a.agentInterface?.textColor, Se.value)), R = z(() => Qt(Se.value, Ce.value)), we = Un(() => a.agentInterface?.footerMessage), Te = z(() => d.value === "conversations" ? i("label.conversations") : d.value === "profile" ? i("label.profile") : d.value === "auth" ? i("label.authentication") : d.value === "files" ? i("userFiles.chatFilesTitle") : a.name), B = z(() => l.value?.[l.value.length - 1]);
19861
19867
  return t({
19862
19868
  startNewChat: y,
19863
19869
  regenerate: x,
@@ -20074,7 +20080,7 @@ var tw = {
20074
20080
  },
20075
20081
  emits: ["stop"],
20076
20082
  setup(e, { emit: t }) {
20077
- let n = e, r = t, { left: i, right: a, top: o, bottom: s, update: c } = On(() => n.chat ?? void 0), { width: l } = Cn(), u = z(() => !!n.chat && Xt({
20083
+ let n = e, r = t, { left: i, right: a, top: o, bottom: s, update: c } = On(() => n.chat ?? void 0), { width: l } = Cn(), u = z(() => !!n.chat && cn({
20078
20084
  left: i.value,
20079
20085
  right: a.value,
20080
20086
  top: o.value,
@@ -20225,12 +20231,12 @@ var cw = { class: "pk-selection-answer__header" }, lw = { class: "pk-selection-a
20225
20231
  "showContactForm",
20226
20232
  "requestGeolocation",
20227
20233
  "requestOAuthConnection"
20228
- ]), r = e, i = t, a = z(() => r.messages.flatMap((e) => e.parts)), o = (e) => Bt(e.parts).filter((e) => ln(e) && !!e.text.trim()), s = z(() => r.messages.some((e) => o(e).length > 0)), c = (e) => e.state, l = (e) => !c(e)?.startsWith("output"), u = z(() => r.confirming || a.value.some((e) => c(e) === "approval-requested" || dn(e) && Vt(e) === "requestConfirm" && l(e)) ? "confirm" : a.value.some((e) => {
20229
- if (!dn(e)) return !1;
20230
- let t = Vt(e);
20234
+ ]), r = e, i = t, a = z(() => r.messages.flatMap((e) => e.parts)), o = (e) => Pt(e.parts).filter((e) => pn(e) && !!e.text.trim()), s = z(() => r.messages.some((e) => o(e).length > 0)), c = (e) => e.state, l = (e) => !c(e)?.startsWith("output"), u = z(() => r.confirming || a.value.some((e) => c(e) === "approval-requested" || an(e) && Ot(e) === "requestConfirm" && l(e)) ? "confirm" : a.value.some((e) => {
20235
+ if (!an(e)) return !1;
20236
+ let t = Ot(e);
20231
20237
  return n.has(t) && (t === "showSuggestedReply" || l(e));
20232
- }) ? "reply" : void 0), d = z(() => !u.value && a.value.some((e) => Qt(e) || dn(e) && st(Vt(e)))), f = he("cardEl"), { width: p, height: m } = En(f, void 0, { box: "border-box" }), h = z(() => {
20233
- let { start: e, bottom: t, bounds: n } = r.anchor, i = e.top - xw - (n.top + Sw), a = n.top + n.height - Sw - (t + xw), o = i >= yw ? "above" : a >= yw || a > i ? "below" : "above", s = Math.min(yw, n.height - 16, Math.max(bw, o === "above" ? i : a)), c = Math.min(m.value, s), l = Math.max(n.top + Sw, Math.min(o === "above" ? e.top - xw - c : t + xw, n.top + n.height - Sw - c)), { left: u } = Ht({
20238
+ }) ? "reply" : void 0), d = z(() => !u.value && a.value.some((e) => hn(e) || an(e) && st(Ot(e)))), f = he("cardEl"), { width: p, height: m } = En(f, void 0, { box: "border-box" }), h = z(() => {
20239
+ let { start: e, bottom: t, bounds: n } = r.anchor, i = e.top - xw - (n.top + Sw), a = n.top + n.height - Sw - (t + xw), o = i >= yw ? "above" : a >= yw || a > i ? "below" : "above", s = Math.min(yw, n.height - 16, Math.max(bw, o === "above" ? i : a)), c = Math.min(m.value, s), l = Math.max(n.top + Sw, Math.min(o === "above" ? e.top - xw - c : t + xw, n.top + n.height - Sw - c)), { left: u } = bn({
20234
20240
  start: e,
20235
20241
  bottom: t,
20236
20242
  bounds: n,
@@ -21575,7 +21581,7 @@ var BT = {
21575
21581
  baseUrl: r,
21576
21582
  headers: h,
21577
21583
  cookieName: n.cookieName
21578
- }), qe = z(() => n.floatingButtonPosition ?? k.value?.interface.floatingButtonPosition ?? se.value?.interface.floatingButtonPosition ?? "right"), Je = z(() => hv(n.layout, k.value?.interface.layout ?? se.value?.interface.layout) === ht.Copilot), Ye = z(() => k.value?.interface.workingGlow !== !1 && E.isWorking), Xe = z(() => Ye.value && E.pageControlActive), Ze = z(() => Nt(k.value?.interface.mainColor) ? {
21584
+ }), qe = z(() => n.floatingButtonPosition ?? k.value?.interface.floatingButtonPosition ?? se.value?.interface.floatingButtonPosition ?? "right"), Je = z(() => hv(n.layout, k.value?.interface.layout ?? se.value?.interface.layout) === ht.Copilot), Ye = z(() => k.value?.interface.workingGlow !== !1 && E.isWorking), Xe = z(() => Ye.value && E.pageControlActive), Ze = z(() => Mt(k.value?.interface.mainColor) ? {
21579
21585
  "--pk-working-beam-color": "var(--color-accent)",
21580
21586
  "--pk-working-aurora-color": "var(--color-accent)",
21581
21587
  "--pk-agent-presence-color": "var(--color-accent)"
@@ -22131,7 +22137,7 @@ var ZT = {
22131
22137
  C.pagePointerStart = Ee.start, A(Ee.picking, (e) => {
22132
22138
  C.pagePointing = e;
22133
22139
  });
22134
- let Me = () => o.value?.$el, Ne = z(() => Nt(O.value?.interface.mainColor) ? { "--pk-agent-presence-color": "var(--color-accent)" } : void 0), { authBranding: Pe } = jv({
22140
+ let Me = () => o.value?.$el, Ne = z(() => Mt(O.value?.interface.mainColor) ? { "--pk-agent-presence-color": "var(--color-accent)" } : void 0), { authBranding: Pe } = jv({
22135
22141
  agent: O,
22136
22142
  branding: oe,
22137
22143
  authMethods: k,