@8wave/ai-elements 0.125.0-beta.27 → 0.125.0-beta.28

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 (121) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-CFGqa-tX.js → PkChatbotFilePreview-CqxtVySb.js} +100 -59
  2. package/dist/_chunks/PkChatbotFilePreview-CqxtVySb.js.map +1 -0
  3. package/dist/_chunks/{PkFilePreview-BPsD2P7s.js → PkFilePreview-DiLMoL-6.js} +32 -32
  4. package/dist/_chunks/{PkFilePreview-BPsD2P7s.js.map → PkFilePreview-DiLMoL-6.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreviewDialog-BW-Rubk2.js → PkFilePreviewDialog-CHBtxpoB.js} +2 -2
  6. package/dist/_chunks/{PkFilePreviewDialog-BW-Rubk2.js.map → PkFilePreviewDialog-CHBtxpoB.js.map} +1 -1
  7. package/dist/_chunks/PkImageEditorDialog-Cq8y_PtC.js +555 -0
  8. package/dist/_chunks/PkImageEditorDialog-Cq8y_PtC.js.map +1 -0
  9. package/dist/_chunks/{PkSelectionActions-DkETXtSL.js → PkSelectionActions-DFyvcEyl.js} +2 -2
  10. package/dist/_chunks/{PkSelectionActions-DkETXtSL.js.map → PkSelectionActions-DFyvcEyl.js.map} +1 -1
  11. package/dist/_chunks/{PkStreamingMarkdown-CqLpNWQv.js → PkStreamingMarkdown-0hE_Cx4W.js} +2 -2
  12. package/dist/_chunks/{PkStreamingMarkdown-CqLpNWQv.js.map → PkStreamingMarkdown-0hE_Cx4W.js.map} +1 -1
  13. package/dist/_chunks/{PkToolChatFile-iE4ZokYD.js → PkToolChatFile-DtQ9xY4w.js} +3 -3
  14. package/dist/_chunks/{PkToolChatFile-iE4ZokYD.js.map → PkToolChatFile-DtQ9xY4w.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShareDocument-lTHNZodf.js → PkToolShareDocument-BvHklbzb.js} +2 -2
  16. package/dist/_chunks/{PkToolShareDocument-lTHNZodf.js.map → PkToolShareDocument-BvHklbzb.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowArtifact-BNQrM5fY.js → PkToolShowArtifact-BdkKU6P1.js} +2 -2
  18. package/dist/_chunks/{PkToolShowArtifact-BNQrM5fY.js.map → PkToolShowArtifact-BdkKU6P1.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowContactForm-CvQoLumn.js → PkToolShowContactForm-BmM2MbOK.js} +2 -2
  20. package/dist/_chunks/{PkToolShowContactForm-CvQoLumn.js.map → PkToolShowContactForm-BmM2MbOK.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowForm-DcPccCEU.js → PkToolShowForm-CoFlgA-I.js} +3 -3
  22. package/dist/_chunks/{PkToolShowForm-DcPccCEU.js.map → PkToolShowForm-CoFlgA-I.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowSources-B3VpJBVE.js → PkToolShowSources-DDBlLBt6.js} +2 -2
  24. package/dist/_chunks/{PkToolShowSources-B3VpJBVE.js.map → PkToolShowSources-DDBlLBt6.js.map} +1 -1
  25. package/dist/_chunks/{utils-BZuri2jT.js → utils-ChmRkK0t.js} +12 -5
  26. package/dist/_chunks/utils-ChmRkK0t.js.map +1 -0
  27. package/dist/ai-elements.es.js +3196 -3114
  28. package/dist/ai-elements.es.js.map +1 -1
  29. package/dist-vue/PkChatbot.js +1 -1
  30. package/dist-vue/PkChatbotEmptyState.js +1 -1
  31. package/dist-vue/PkChatbotFilePreview.js +1 -1
  32. package/dist-vue/PkChatbotInput.js +1 -1
  33. package/dist-vue/PkChatbotMessages.js +1 -1
  34. package/dist-vue/PkChatbotStepPayload.js +1 -1
  35. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  36. package/dist-vue/PkChatbotSteps.js +1 -1
  37. package/dist-vue/PkChatbotViewChat.js +1 -1
  38. package/dist-vue/PkChatbotViewConversations.js +1 -1
  39. package/dist-vue/PkChatbotViewFiles.js +1 -1
  40. package/dist-vue/PkChatbotViewProfile.js +1 -1
  41. package/dist-vue/_chunks/{PkChatbot-N5lgU3-k.js → PkChatbot-BjJzskl7.js} +8 -8
  42. package/dist-vue/_chunks/{PkChatbot-N5lgU3-k.js.map → PkChatbot-BjJzskl7.js.map} +1 -1
  43. package/dist-vue/_chunks/{PkChatbotEmptyState-COya3H3C.js → PkChatbotEmptyState-CZC2gP3I.js} +2 -2
  44. package/dist-vue/_chunks/{PkChatbotEmptyState-COya3H3C.js.map → PkChatbotEmptyState-CZC2gP3I.js.map} +1 -1
  45. package/dist-vue/_chunks/{PkChatbotFilePreview-BsvT6orx.js → PkChatbotFilePreview-j_8sDZUE.js} +112 -71
  46. package/dist-vue/_chunks/PkChatbotFilePreview-j_8sDZUE.js.map +1 -0
  47. package/dist-vue/_chunks/PkChatbotInput-BmTdIJZ9.js +509 -0
  48. package/dist-vue/_chunks/PkChatbotInput-BmTdIJZ9.js.map +1 -0
  49. package/dist-vue/_chunks/PkChatbotMessages-b2lupEv9.js +1049 -0
  50. package/dist-vue/_chunks/{PkChatbotMessages-BISaZu4z.js.map → PkChatbotMessages-b2lupEv9.js.map} +1 -1
  51. package/dist-vue/_chunks/{PkChatbotStepPayload-cuYclK_2.js → PkChatbotStepPayload-D4w1XlF2.js} +2 -2
  52. package/dist-vue/_chunks/{PkChatbotStepPayload-cuYclK_2.js.map → PkChatbotStepPayload-D4w1XlF2.js.map} +1 -1
  53. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Yd8cUQJP.js → PkChatbotStepToolDetail-DFTcjzoX.js} +3 -3
  54. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Yd8cUQJP.js.map → PkChatbotStepToolDetail-DFTcjzoX.js.map} +1 -1
  55. package/dist-vue/_chunks/{PkChatbotSteps-_Aqft0em.js → PkChatbotSteps-D3zLulMo.js} +5 -5
  56. package/dist-vue/_chunks/{PkChatbotSteps-_Aqft0em.js.map → PkChatbotSteps-D3zLulMo.js.map} +1 -1
  57. package/dist-vue/_chunks/{PkChatbotViewChat-B3Nr7-kY.js → PkChatbotViewChat-DawyiUjq.js} +322 -344
  58. package/dist-vue/_chunks/PkChatbotViewChat-DawyiUjq.js.map +1 -0
  59. package/dist-vue/_chunks/{PkChatbotViewConversations-DjhiHp8-.js → PkChatbotViewConversations-Bs246dtL.js} +3 -3
  60. package/dist-vue/_chunks/{PkChatbotViewConversations-DjhiHp8-.js.map → PkChatbotViewConversations-Bs246dtL.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkChatbotViewFiles-C4oGN4Xj.js → PkChatbotViewFiles-uzZ5H4Fd.js} +2 -2
  62. package/dist-vue/_chunks/{PkChatbotViewFiles-C4oGN4Xj.js.map → PkChatbotViewFiles-uzZ5H4Fd.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkChatbotViewProfile-NfTamy9j.js → PkChatbotViewProfile-BhIvfT_n.js} +2 -2
  64. package/dist-vue/_chunks/{PkChatbotViewProfile-NfTamy9j.js.map → PkChatbotViewProfile-BhIvfT_n.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkFilePreview-D-BGFp9C.js → PkFilePreview-DfD48QQ_.js} +48 -48
  66. package/dist-vue/_chunks/{PkFilePreview-D-BGFp9C.js.map → PkFilePreview-DfD48QQ_.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkFilePreviewDialog-By2TQolA.js → PkFilePreviewDialog-DFCBpQf3.js} +2 -2
  68. package/dist-vue/_chunks/{PkFilePreviewDialog-By2TQolA.js.map → PkFilePreviewDialog-DFCBpQf3.js.map} +1 -1
  69. package/dist-vue/_chunks/PkImageEditorDialog-BLUyILVi.js +550 -0
  70. package/dist-vue/_chunks/PkImageEditorDialog-BLUyILVi.js.map +1 -0
  71. package/dist-vue/_chunks/{PkStreamingMarkdown-2FN4WMQD.js → PkStreamingMarkdown-ChMbSviw.js} +2 -2
  72. package/dist-vue/_chunks/{PkStreamingMarkdown-2FN4WMQD.js.map → PkStreamingMarkdown-ChMbSviw.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkToolChatFile-DAT1tv52.js → PkToolChatFile-DQtABEaI.js} +3 -3
  74. package/dist-vue/_chunks/{PkToolChatFile-DAT1tv52.js.map → PkToolChatFile-DQtABEaI.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkToolShareDocument-Qb2Lu5vh.js → PkToolShareDocument-cMUqik6v.js} +2 -2
  76. package/dist-vue/_chunks/{PkToolShareDocument-Qb2Lu5vh.js.map → PkToolShareDocument-cMUqik6v.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkToolShowArtifact-Bskomw05.js → PkToolShowArtifact-w6SxjLPW.js} +2 -2
  78. package/dist-vue/_chunks/{PkToolShowArtifact-Bskomw05.js.map → PkToolShowArtifact-w6SxjLPW.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkToolShowContactForm-iQrlqv7j.js → PkToolShowContactForm-BQ7bBTQU.js} +2 -2
  80. package/dist-vue/_chunks/{PkToolShowContactForm-iQrlqv7j.js.map → PkToolShowContactForm-BQ7bBTQU.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolShowDiagram-C-43uUoh.js → PkToolShowDiagram-D-yQgdOL.js} +2 -2
  82. package/dist-vue/_chunks/{PkToolShowDiagram-C-43uUoh.js.map → PkToolShowDiagram-D-yQgdOL.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolShowForm-CKXpqQxy.js → PkToolShowForm-CF00JLpa.js} +3 -3
  84. package/dist-vue/_chunks/{PkToolShowForm-CKXpqQxy.js.map → PkToolShowForm-CF00JLpa.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolShowImageGallery-DLTn6JmU.js → PkToolShowImageGallery-ZJMWOWHq.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolShowImageGallery-DLTn6JmU.js.map → PkToolShowImageGallery-ZJMWOWHq.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowProductList-hhSBAQVC.js → PkToolShowProductList-CeKI9H36.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolShowProductList-hhSBAQVC.js.map → PkToolShowProductList-CeKI9H36.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkToolShowSources-BMo_i8sv.js → PkToolShowSources-CXZqanmw.js} +2 -2
  90. package/dist-vue/_chunks/{PkToolShowSources-BMo_i8sv.js.map → PkToolShowSources-CXZqanmw.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkToolShowVideo-DJhsbDuX.js → PkToolShowVideo-BCs-i6xQ.js} +2 -2
  92. package/dist-vue/_chunks/{PkToolShowVideo-DJhsbDuX.js.map → PkToolShowVideo-BCs-i6xQ.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolShowWebPages-BAv66f5H.js → PkToolShowWebPages-Bixa0CjQ.js} +2 -2
  94. package/dist-vue/_chunks/{PkToolShowWebPages-BAv66f5H.js.map → PkToolShowWebPages-Bixa0CjQ.js.map} +1 -1
  95. package/dist-vue/_chunks/{useChatbotStore-BZ1n3Hyx.js → useChatbotStore-BIjCGX0B.js} +858 -835
  96. package/dist-vue/_chunks/useChatbotStore-BIjCGX0B.js.map +1 -0
  97. package/dist-vue/_chunks/{utils-RwaXl9-x.js → utils-CaYEz-0A.js} +11 -4
  98. package/dist-vue/_chunks/utils-CaYEz-0A.js.map +1 -0
  99. package/dist-vue/composables.js +56 -4
  100. package/dist-vue/composables.js.map +1 -1
  101. package/dist-vue/index.js +49 -49
  102. package/dist-vue/index.js.map +1 -1
  103. package/dist-vue/locales.js +56 -0
  104. package/dist-vue/packages/components/src/chat/PkChatbotFilePreview.d.ts +14 -0
  105. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +17 -3
  106. package/dist-vue/packages/components/src/chat/PkImageEditor.d.ts +37 -0
  107. package/dist-vue/packages/components/src/chat/PkImageEditorDialog.d.ts +19 -0
  108. package/dist-vue/packages/components/src/chat/imageEdits.d.ts +106 -0
  109. package/dist-vue/packages/components/src/chat/utils.d.ts +7 -0
  110. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +7 -1
  111. package/dist-vue/style.css +1 -1
  112. package/package.json +1 -1
  113. package/dist/_chunks/PkChatbotFilePreview-CFGqa-tX.js.map +0 -1
  114. package/dist/_chunks/utils-BZuri2jT.js.map +0 -1
  115. package/dist-vue/_chunks/PkChatbotFilePreview-BsvT6orx.js.map +0 -1
  116. package/dist-vue/_chunks/PkChatbotInput-D0KUEkAs.js +0 -478
  117. package/dist-vue/_chunks/PkChatbotInput-D0KUEkAs.js.map +0 -1
  118. package/dist-vue/_chunks/PkChatbotMessages-BISaZu4z.js +0 -1049
  119. package/dist-vue/_chunks/PkChatbotViewChat-B3Nr7-kY.js.map +0 -1
  120. package/dist-vue/_chunks/useChatbotStore-BZ1n3Hyx.js.map +0 -1
  121. package/dist-vue/_chunks/utils-RwaXl9-x.js.map +0 -1
@@ -1,24 +1,24 @@
1
- import { t as e } from "./PkChatbotMessages-BISaZu4z.js";
1
+ import { t as e } from "./PkChatbotMessages-b2lupEv9.js";
2
2
  import { o as t } from "./Media-DylqhvaF.js";
3
- import { a as n, n as r, t as i } from "./useChatbotStore-BZ1n3Hyx.js";
3
+ import { a as n, n as r, t as i } from "./useChatbotStore-BIjCGX0B.js";
4
4
  import { n as a } from "./src-nb8MU1sh.js";
5
5
  import { s as o, t as s } from "./message-DuibQyHy.js";
6
- import { L as c, f as l, l as u, n as d, r as f, y as p } from "./utils-RwaXl9-x.js";
6
+ import { R as c, f as l, l as u, n as d, r as f, y as p } from "./utils-CaYEz-0A.js";
7
7
  import { t as m } from "./useLocalizedString-Dmn92nix.js";
8
8
  import { t as h } from "./PkAvatar-DwtZWSW4.js";
9
- import { n as g, t as _ } from "./PkChatbotInput-D0KUEkAs.js";
9
+ import { n as g, t as _ } from "./PkChatbotInput-BmTdIJZ9.js";
10
10
  import { t as v } from "./PkChatbotQueuedMessages-CIJFAvE2.js";
11
- import { t as ee } from "./PkChatbotEmptyState-COya3H3C.js";
11
+ import { t as ee } from "./PkChatbotEmptyState-CZC2gP3I.js";
12
12
  import { t as te } from "./PkChatbotWakeupBar-DEP-d-Fp.js";
13
13
  import { VvIcon as ne } from "@volverjs/ui-vue/components";
14
- import { Fragment as y, Teleport as b, Transition as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as re, createTextVNode as ie, createVNode as D, defineAsyncComponent as O, defineComponent as ae, inject as oe, isRef as se, nextTick as ce, normalizeClass as k, normalizeStyle as le, onBeforeUnmount as ue, onMounted as de, onScopeDispose as A, onUnmounted as fe, openBlock as j, provide as pe, ref as M, renderList as me, shallowRef as he, toDisplayString as N, toValue as P, unref as F, useTemplateRef as ge, watch as I, withCtx as L } from "vue";
14
+ import { Fragment as y, Teleport as b, Transition as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as re, createTextVNode as ie, createVNode as D, defineAsyncComponent as O, defineComponent as ae, inject as oe, isRef as se, nextTick as ce, normalizeClass as k, normalizeStyle as le, onBeforeUnmount as ue, onMounted as de, onScopeDispose as fe, onUnmounted as pe, openBlock as A, provide as me, ref as j, renderList as he, shallowRef as ge, toDisplayString as M, toValue as N, unref as P, useTemplateRef as F, watch as I, withCtx as L } from "vue";
15
15
  import { useI18n as _e } from "vue-i18n";
16
16
  import { useDropZone as ve, useResizeObserver as ye } from "@vueuse/core";
17
17
  import { storeToRefs as be } from "pinia";
18
18
  // ../../packages/composable/src/chatbot/useGreeting.ts
19
19
  function xe(e, t) {
20
20
  let { locale: n, t: r, te: i } = _e({ useScope: "global" });
21
- return S(() => Se(P(e)?.greeting?.[0]?.[n.value] ?? "", P(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
21
+ return S(() => Se(N(e)?.greeting?.[0]?.[n.value] ?? "", N(t)) || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""));
22
22
  }
23
23
  function Se(e, t) {
24
24
  return (t ? e.replace(/\{name\}/g, t) : e.replace(/[,\s]*\{name\}[!?]?/g, "")).trim();
@@ -36,7 +36,7 @@ var R = {
36
36
  secondColor: {}
37
37
  },
38
38
  setup(e) {
39
- let t = e, n = ge("rootEl"), r = ge("canvasEl"), i = M(!1), a = M(null), o = S(() => a.value ? {
39
+ let t = e, n = F("rootEl"), r = F("canvasEl"), i = j(!1), a = j(null), o = S(() => a.value ? {
40
40
  "--pk-aurora-tint": `rgb(${a.value.first.join(" ")})`,
41
41
  "--pk-aurora-tint-2": `rgb(${(a.value.duo ? a.value.second : a.value.first).join(" ")})`
42
42
  } : void 0), s = null, l = 0, u = null, d = null, f = null, p = null, m = null, h = null, g = null, _ = null, v = null, ee = performance.now(), te = (e, t) => {
@@ -99,18 +99,18 @@ var R = {
99
99
  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(), ce(b), x() ? C(10) : w();
100
100
  }), ue(() => {
101
101
  cancelAnimationFrame(l), u?.disconnect();
102
- }), fe(() => {
102
+ }), pe(() => {
103
103
  let e = s;
104
104
  s = null, setTimeout(() => {
105
105
  e?.getExtension("WEBGL_lose_context")?.loseContext();
106
106
  }, 150);
107
- }), (e, t) => (j(), T("div", {
107
+ }), (e, t) => (A(), T("div", {
108
108
  ref_key: "rootEl",
109
109
  ref: n,
110
110
  class: "pk-aurora",
111
111
  "aria-hidden": "true",
112
112
  style: le(o.value)
113
- }, [i.value ? (j(), T("div", R)) : (j(), T("canvas", {
113
+ }, [i.value ? (A(), T("div", R)) : (A(), T("canvas", {
114
114
  key: 0,
115
115
  ref_key: "canvasEl",
116
116
  ref: r,
@@ -129,7 +129,7 @@ var R = {
129
129
  bars: { default: 5 }
130
130
  },
131
131
  setup(e) {
132
- let t = e, n = ge("barsEl"), r = Array.from({ length: t.bars }, () => B), i, a = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === !0, o = () => {
132
+ let t = e, n = F("barsEl"), r = Array.from({ length: t.bars }, () => B), i, a = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === !0, o = () => {
133
133
  let e = Math.min(1, Math.max(0, t.sample())), n = t.spectrum?.(), i = r.length;
134
134
  if (!n?.length) {
135
135
  let t = Date.now() / 260;
@@ -157,14 +157,14 @@ var R = {
157
157
  };
158
158
  return I(() => t.state, async (e) => {
159
159
  e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => B * 1.6), await ce(), s()) : i === void 0 && (i = requestAnimationFrame(c));
160
- }, { immediate: !0 }), ue(l), (t, r) => (j(), T("div", {
160
+ }, { immediate: !0 }), ue(l), (t, r) => (A(), T("div", {
161
161
  class: k(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
162
162
  "aria-hidden": "true"
163
163
  }, [E("div", {
164
164
  ref_key: "barsEl",
165
165
  ref: n,
166
166
  class: "pk-voice-orb__bars"
167
- }, [(j(!0), T(y, null, me(e.bars, (e) => (j(), T("span", {
167
+ }, [(A(!0), T(y, null, he(e.bars, (e) => (A(), T("span", {
168
168
  key: e,
169
169
  class: "pk-voice-orb__bar"
170
170
  }))), 128))], 512)], 2));
@@ -208,8 +208,8 @@ var R = {
208
208
  });
209
209
  return (t, n) => {
210
210
  let u = ne;
211
- return j(), T("div", { class: k(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
212
- e.error ? (j(), T("span", De, [D(u, { name: "ri:error-warning-line" })])) : (j(), C(Ee, {
211
+ return A(), T("div", { class: k(["pk-voice-session", { "pk-voice-session--failed": !!e.error }]) }, [
212
+ e.error ? (A(), T("span", De, [D(u, { name: "ri:error-warning-line" })])) : (A(), C(Ee, {
213
213
  key: 1,
214
214
  state: e.state,
215
215
  sample: e.sample,
@@ -219,37 +219,37 @@ var R = {
219
219
  "sample",
220
220
  "spectrum"
221
221
  ])),
222
- E("div", V, [E("span", { class: k(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (j(), T("span", H)) : w("", !0), ie(" " + N(a.value), 1)], 2), e.error ? (j(), T("p", {
222
+ E("div", V, [E("span", { class: k(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (A(), T("span", H)) : w("", !0), ie(" " + M(a.value), 1)], 2), e.error ? (A(), T("p", {
223
223
  key: 0,
224
224
  class: "pk-voice-session__detail",
225
225
  title: e.rawError ?? e.error
226
- }, N(e.error), 9, Oe)) : w("", !0)]),
227
- o.value ? (j(), T("span", {
226
+ }, M(e.error), 9, Oe)) : w("", !0)]),
227
+ o.value ? (A(), T("span", {
228
228
  key: 2,
229
229
  class: k(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
230
- title: F(i)("hint.voiceRemaining"),
230
+ title: P(i)("hint.voiceRemaining"),
231
231
  "aria-hidden": "true"
232
- }, N(o.value), 11, ke)) : w("", !0),
233
- E("div", Ae, [e.error ? (j(), T(y, { key: 0 }, [D(g, {
232
+ }, M(o.value), 11, ke)) : w("", !0),
233
+ E("div", Ae, [e.error ? (A(), T(y, { key: 0 }, [D(g, {
234
234
  icon: "ri:refresh-line",
235
- label: F(i)("action.retry"),
235
+ label: P(i)("action.retry"),
236
236
  onClick: n[0] ||= (e) => r("retry")
237
- }, null, 8, ["label"]), e.live ? (j(), C(g, {
237
+ }, null, 8, ["label"]), e.live ? (A(), C(g, {
238
238
  key: 0,
239
239
  icon: "ri:stop-circle-line",
240
240
  modifiers: "danger",
241
- title: F(i)("action.hangUp"),
242
- "aria-label": F(i)("action.hangUp"),
241
+ title: P(i)("action.hangUp"),
242
+ "aria-label": P(i)("action.hangUp"),
243
243
  onClick: n[1] ||= (e) => r("hang-up")
244
- }, null, 8, ["title", "aria-label"])) : (j(), C(g, {
244
+ }, null, 8, ["title", "aria-label"])) : (A(), C(g, {
245
245
  key: 1,
246
246
  icon: "ri:close-line",
247
- label: F(i)("action.close"),
247
+ label: P(i)("action.close"),
248
248
  onClick: n[2] ||= (e) => r("dismiss")
249
- }, null, 8, ["label"]))], 64)) : (j(), T(y, { key: 1 }, [D(g, {
249
+ }, null, 8, ["label"]))], 64)) : (A(), T(y, { key: 1 }, [D(g, {
250
250
  icon: e.muted ? "ri:mic-off-line" : "ri:mic-line",
251
- title: e.muted ? F(i)("action.unmute") : F(i)("action.mute"),
252
- "aria-label": e.muted ? F(i)("action.unmute") : F(i)("action.mute"),
251
+ title: e.muted ? P(i)("action.unmute") : P(i)("action.mute"),
252
+ "aria-label": e.muted ? P(i)("action.unmute") : P(i)("action.mute"),
253
253
  "aria-pressed": e.muted,
254
254
  onClick: n[3] ||= (e) => r("toggle-mute")
255
255
  }, null, 8, [
@@ -260,15 +260,15 @@ var R = {
260
260
  ]), D(g, {
261
261
  icon: "ri:stop-circle-line",
262
262
  modifiers: "danger",
263
- title: F(i)("action.hangUp"),
264
- "aria-label": F(i)("action.hangUp"),
263
+ title: P(i)("action.hangUp"),
264
+ "aria-label": P(i)("action.hangUp"),
265
265
  onClick: n[4] ||= (e) => r("hang-up")
266
266
  }, null, 8, ["title", "aria-label"])], 64))])
267
267
  ], 2);
268
268
  };
269
269
  }
270
270
  }), Me = (e) => {
271
- let t = he(), n = M("disconnected"), r = M("listening"), i = M(), o = M([]), s = M(), c = M(), l, u, d = 0, f = !1, p = () => {
271
+ let t = ge(), n = j("disconnected"), r = j("listening"), i = j(), o = j([]), s = j(), c = j(), l, u, d = 0, f = !1, p = () => {
272
272
  u &&= (clearInterval(u), void 0), s.value = void 0;
273
273
  }, m = (e) => {
274
274
  let t = Date.now() + e * 1e3, n = () => {
@@ -371,7 +371,7 @@ var R = {
371
371
  let r = t.value;
372
372
  t.value = void 0, r?.endSession().catch(() => void 0), n.value = "disconnected";
373
373
  };
374
- return typeof window < "u" && window.addEventListener("pagehide", b), A(() => {
374
+ return typeof window < "u" && window.addEventListener("pagehide", b), fe(() => {
375
375
  f = !0, typeof window < "u" && window.removeEventListener("pagehide", b), g();
376
376
  }), {
377
377
  status: n,
@@ -394,7 +394,7 @@ var R = {
394
394
  };
395
395
  }, Ne = Symbol("ChatFilePreviewDock");
396
396
  function Pe(e) {
397
- pe(Ne, e);
397
+ me(Ne, e);
398
398
  }
399
399
  function Fe() {
400
400
  return oe(Ne, void 0);
@@ -406,7 +406,7 @@ var Ie = 4e3, Le = [
406
406
  1e4
407
407
  ], Re = 12e4, U = 3e4;
408
408
  function ze(e) {
409
- let t = M(null), n = M(!1), r, i = !1, a = () => {
409
+ let t = j(null), n = j(!1), r, i = !1, a = () => {
410
410
  clearTimeout(r), r = void 0;
411
411
  }, o = (e, t) => {
412
412
  a(), i || (r = setTimeout(() => void t(), e));
@@ -554,7 +554,7 @@ var Be = 1e6, W = (e, t) => {
554
554
  return (i.top < r.top || i.bottom > r.bottom) && (e.scrollTop += i.top - r.top - (r.height - i.height) / 2), (i.left < r.left || i.right > r.right) && (e.scrollLeft += i.left - r.left - (r.width - i.width) / 2), !0;
555
555
  }, qe = 4e3;
556
556
  function Je(e) {
557
- let t = M(), n = M(), r = M(!1), i = M(!1), a = he(), o = /* @__PURE__ */ new Map(), s, c = 0, l = 0, u = () => {
557
+ let t = j(), n = j(), r = j(!1), i = j(!1), a = ge(), o = /* @__PURE__ */ new Map(), s, c = 0, l = 0, u = () => {
558
558
  clearTimeout(s), a.value = void 0;
559
559
  }, d = (e, t) => {
560
560
  u();
@@ -614,9 +614,9 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
614
614
  "selection-action"
615
615
  ],
616
616
  setup(a, { emit: c }) {
617
- let g = O(() => import("./PkToolShowForm-CKXpqQxy.js").then((e) => e.n)), y = O(() => import("./PkToolShowContactForm-iQrlqv7j.js").then((e) => e.n)), ie = O(() => import("./PkToolShowSuggestedReply-BRIzGNwx.js").then((e) => e.n)), ae = O(() => import("./PkToolShowSources-BMo_i8sv.js").then((e) => e.n)), oe = O(() => import("./PkToolRequestGeolocation-p7Ip17F7.js").then((e) => e.n)), ce = O(() => import("./PkToolRequestOAuthConnection-CtXSzKzM.js")), le = O(() => import("./PkToolShowLocation-B8FE_Sqd.js").then((e) => e.n)), de = O(() => import("./PkToolShowDiagram-C-43uUoh.js")), A = O(() => import("./PkToolChatFile-DAT1tv52.js").then((e) => e.n)), fe = O(() => import("./PkToolShareDocument-Qb2Lu5vh.js").then((e) => e.n)), me = O(() => import("./PkFilePreview-D-BGFp9C.js").then((e) => e.n)), he = O(() => import("./PkFilePreviewDialog-By2TQolA.js").then((e) => e.n)), P = a, Se = c, R = r(P.agentId), { agentInterface: z, agentFileUpload: Ce, agentType: B, agentVoice: Te, actions: Ee, revisedAnswers: De, messages: V, chat: H, messageFeedbacks: Oe, feedbackDialogMessage: ke, isFeedbackSubmitting: Ae, isFeedbackSubmitted: Ne, feedbackSubmitError: Pe, isLeadSubmitted: Ie, isLoadingSubmitLead: Le, submitLeadError: Re, input: U, inputMessagePlaceholder: Be, isConversationBlocked: W, baseUrl: Ve, pendingAttachments: G, isAttachmentLimitReached: He, fileLimitError: Ue, apiClient: K, isDark: We, hostToolsPending: Ge, pageNoticeLevel: Ke, hostConfirmation: qe, agentPageAccess: at, hostStepTitles: ot, hostStepChanges: st, confirmationMode: ct, canQueue: lt, queuedMessages: ut, backgroundAnswers: dt, inputFocusRequest: ft, pagePointer: pt, pagePointerAvailable: mt, pagePointing: ht, agentSelectionActions: gt } = be(R);
618
- pe(f, ot), pe(d, st);
619
- let _t = ge("inputEl");
617
+ let g = O(() => import("./PkToolShowForm-CF00JLpa.js").then((e) => e.n)), y = O(() => import("./PkToolShowContactForm-BQ7bBTQU.js").then((e) => e.n)), ie = O(() => import("./PkToolShowSuggestedReply-BRIzGNwx.js").then((e) => e.n)), ae = O(() => import("./PkToolShowSources-CXZqanmw.js").then((e) => e.n)), oe = O(() => import("./PkToolRequestGeolocation-p7Ip17F7.js").then((e) => e.n)), ce = O(() => import("./PkToolRequestOAuthConnection-CtXSzKzM.js")), le = O(() => import("./PkToolShowLocation-B8FE_Sqd.js").then((e) => e.n)), de = O(() => import("./PkToolShowDiagram-D-yQgdOL.js")), fe = O(() => import("./PkToolChatFile-DQtABEaI.js").then((e) => e.n)), pe = O(() => import("./PkToolShareDocument-cMUqik6v.js").then((e) => e.n)), he = O(() => import("./PkFilePreview-DfD48QQ_.js").then((e) => e.n)), ge = O(() => import("./PkFilePreviewDialog-DFCBpQf3.js").then((e) => e.n)), N = a, Se = c, R = r(N.agentId), { agentInterface: z, agentFileUpload: Ce, agentType: B, agentVoice: Te, actions: Ee, revisedAnswers: De, messages: V, chat: H, messageFeedbacks: Oe, feedbackDialogMessage: ke, isFeedbackSubmitting: Ae, isFeedbackSubmitted: Ne, feedbackSubmitError: Pe, isLeadSubmitted: Ie, isLoadingSubmitLead: Le, submitLeadError: Re, input: U, inputMessagePlaceholder: Be, isConversationBlocked: W, baseUrl: Ve, pendingAttachments: G, isAttachmentLimitReached: He, fileLimitError: Ue, apiClient: K, isDark: We, hostToolsPending: Ge, pageNoticeLevel: Ke, hostConfirmation: qe, agentPageAccess: at, hostStepTitles: ot, hostStepChanges: st, confirmationMode: ct, canQueue: lt, queuedMessages: ut, backgroundAnswers: dt, inputFocusRequest: ft, pagePointer: pt, pagePointerAvailable: mt, pagePointing: ht, agentSelectionActions: gt } = be(R);
618
+ me(f, ot), me(d, st);
619
+ let _t = F("inputEl");
620
620
  I(ft, () => {
621
621
  _t.value?.focus();
622
622
  }), I(pt, (e) => {
@@ -625,138 +625,138 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
625
625
  let vt = S(() => pt.value ? {
626
626
  kind: pt.value.kind,
627
627
  label: pt.value.label
628
- } : void 0), yt = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => K.value.getMediaDownloadUrl(P.agentId, R.localChatId, e), { handleSubmit: bt, stopGeneration: xt, regenerate: St, onUpvote: Ct, onDownvote: wt, onFeedback: Tt, onFeedbackSubmit: Et, onLeadSubmit: Dt, startNewChat: Ot, addToolOutput: kt, addToolApprovalResponse: At, handleFileSelect: jt, discardPendingAttachment: Mt, clearFileLimitError: Nt, refreshMessages: Pt, appendMessage: Ft, closePageNotice: It, respondHostConfirmation: Lt, editQueuedMessage: Rt, removeQueuedMessage: zt, openBackgroundAnswer: Bt, dismissBackgroundAnswer: Vt } = R, { t: J } = _e({ useScope: "global" }), Ht = S(() => Ge.value > 0), Ut = S(() => Ht.value && H.value.status === "ready" ? "streaming" : H.value.status), Wt = m(() => at.value?.notice), Gt = S(() => Ke.value ? Wt.value || J(`message.pageAccessNotice.${Ke.value}`) : void 0), Kt = S(() => {
628
+ } : void 0), yt = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => K.value.getMediaDownloadUrl(N.agentId, R.localChatId, e), { handleSubmit: bt, stopGeneration: xt, regenerate: St, onUpvote: Ct, onDownvote: wt, onFeedback: Tt, onFeedbackSubmit: Et, onLeadSubmit: Dt, startNewChat: Ot, addToolOutput: kt, addToolApprovalResponse: At, handleFileSelect: jt, discardPendingAttachment: Mt, replacePendingAttachment: Nt, retryPendingAttachment: Pt, clearFileLimitError: Ft, refreshMessages: It, appendMessage: Lt, closePageNotice: Rt, respondHostConfirmation: zt, editQueuedMessage: Bt, removeQueuedMessage: Vt, openBackgroundAnswer: Ht, dismissBackgroundAnswer: Ut } = R, { t: J } = _e({ useScope: "global" }), Wt = S(() => Ge.value > 0), Gt = S(() => Wt.value && H.value.status === "ready" ? "streaming" : H.value.status), Kt = m(() => at.value?.notice), qt = S(() => Ke.value ? Kt.value || J(`message.pageAccessNotice.${Ke.value}`) : void 0), Jt = S(() => {
629
629
  let e = Ue.value;
630
630
  if (e) return e.reason === "per-chat" ? J("message.fileLimitPerChat", { max: e.max }) : J("message.fileLimitPerMessage", { max: e.max });
631
- }), qt = S(() => dt.value.map(({ chatId: e, title: t }) => ({
631
+ }), Yt = S(() => dt.value.map(({ chatId: e, title: t }) => ({
632
632
  id: e,
633
633
  text: t ? J("message.backgroundAnswerReady", { title: t }) : J("message.backgroundAnswerReadyUntitled")
634
- }))), Jt = m(() => z.value?.dismissableNotice), Yt = S(() => V.value.some((e) => e.role === "user")), Xt = S(() => P.modifier === "fullscreen" && !Yt.value), Zt = xe(z, () => P.userName), Qt = ge("chatViewEl"), $t = Fe(), en = S(() => !!$t?.value), tn = S(() => $t?.value ?? "body"), nn = M(0), rn = M(0);
635
- ye([Qt, S(() => $t?.value ?? void 0)], (e) => {
634
+ }))), Xt = m(() => z.value?.dismissableNotice), Zt = S(() => V.value.some((e) => e.role === "user")), Qt = S(() => N.modifier === "fullscreen" && !Zt.value), $t = xe(z, () => N.userName), en = F("chatViewEl"), tn = Fe(), nn = S(() => !!tn?.value), rn = S(() => tn?.value ?? "body"), an = j(0), on = j(0);
635
+ ye([en, S(() => tn?.value ?? void 0)], (e) => {
636
636
  for (let t of e) {
637
637
  let e = t.borderBoxSize?.[0]?.inlineSize ?? t.contentRect.width;
638
- t.target === Qt.value ? nn.value = e : rn.value = e;
638
+ t.target === en.value ? an.value = e : on.value = e;
639
639
  }
640
640
  }, { box: "border-box" });
641
- let an = S(() => nn.value + (en.value ? rn.value : 0) >= et), on = S(() => nn.value > 0 && nn.value < 576), { target: Y, preview: sn, loading: cn, error: ln, changes: un, open: dn, close: fn, reset: pn } = Je((e) => K.value.getChatFilePreview(P.agentId, R.localChatId, e)), X = M({}), mn = (e, t) => {
641
+ let sn = S(() => an.value + (nn.value ? on.value : 0) >= et), cn = S(() => an.value > 0 && an.value < 576), { target: Y, preview: ln, loading: un, error: dn, changes: fn, open: pn, close: mn, reset: hn } = Je((e) => K.value.getChatFilePreview(N.agentId, R.localChatId, e)), X = j({}), gn = (e, t) => {
642
642
  let n = (e) => e?.fileId ?? e?.storedFileName;
643
- return n(e) !== n(Y.value) && (X.value = {}), dn(e, t);
644
- }, hn = M(!1), gn = S(() => !!Y.value && an.value && !hn.value), _n = () => {
645
- fn(), hn.value = !1;
646
- }, vn = /* @__PURE__ */ new Set([
643
+ return n(e) !== n(Y.value) && (X.value = {}), pn(e, t);
644
+ }, _n = j(!1), vn = S(() => !!Y.value && sn.value && !_n.value), yn = () => {
645
+ mn(), _n.value = !1;
646
+ }, bn = /* @__PURE__ */ new Set([
647
647
  "tool-editSpreadsheet",
648
648
  "tool-editWordDocument",
649
649
  "tool-createSpreadsheet",
650
650
  "tool-createWordDocument"
651
- ]), yn = S(() => {
651
+ ]), xn = S(() => {
652
652
  let e = /* @__PURE__ */ new Map();
653
653
  for (let t of V.value) for (let n of t.parts) {
654
654
  let { type: t, state: r, output: i } = n;
655
- if (vn.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
655
+ if (bn.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
656
656
  let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
657
657
  t.set(i.version, i.storedFileName), e.set(i.fileId, t);
658
658
  }
659
659
  }
660
660
  for (let [t, n] of e) n.has(1) || n.set(1, t);
661
661
  return e;
662
- }), bn = S(() => [...yn.value.get(Y.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), xn = (e, t) => {
663
- let n = Y.value, r = yn.value.get(n?.fileId ?? "")?.get(e);
664
- n && r && mn({
662
+ }), Sn = S(() => [...xn.value.get(Y.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), Cn = (e, t) => {
663
+ let n = Y.value, r = xn.value.get(n?.fileId ?? "")?.get(e);
664
+ n && r && gn({
665
665
  ...n,
666
666
  version: e,
667
667
  storedFileName: r
668
668
  }, t);
669
- }, Sn = S(() => {
670
- let e = Y.value, t = bn.value;
669
+ }, wn = S(() => {
670
+ let e = Y.value, t = Sn.value;
671
671
  return !!$.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
672
- }), Cn = () => {
672
+ }), Tn = () => {
673
673
  let e = Y.value;
674
674
  e?.fileId && e.version && ($.value?.({
675
675
  fileId: e.fileId,
676
676
  version: e.version,
677
677
  filename: e.filename
678
- }), _n());
678
+ }), yn());
679
679
  };
680
- I(() => R.localChatId, pn), I(() => {
680
+ I(() => R.localChatId, hn), I(() => {
681
681
  let e = Y.value?.fileId;
682
682
  return e ? {
683
683
  fileId: e,
684
- newest: Math.max(0, ...bn.value)
684
+ newest: Math.max(0, ...Sn.value)
685
685
  } : void 0;
686
686
  }, (e, t) => {
687
- e && t && e.fileId === t.fileId && e.newest > t.newest && Y.value?.version === t.newest && xn(e.newest, Y.value.storedFileName);
687
+ e && t && e.fileId === t.fileId && e.newest > t.newest && Y.value?.version === t.newest && Cn(e.newest, Y.value.storedFileName);
688
688
  });
689
- let wn = S(() => {
689
+ let En = S(() => {
690
690
  let e = H.value?.status;
691
691
  if (!(W.value || e === "submitted" || e === "streaming")) return Y.value?.kind === "word" ? gt.value?.word : gt.value?.excel;
692
- }), Tn = (e, t, n) => {
692
+ }), Dn = (e, t, n) => {
693
693
  R.sendSelection(e, { filePointer: t }) && Se("selection-action", {
694
694
  surface: t.format === "docx" ? "word" : "excel",
695
695
  action: n.id,
696
696
  state: "chat",
697
697
  size: String(n.size)
698
698
  });
699
- }, En = async (e) => (await K.value.expandSourceContext(P.agentId, e.documentId, e.chunkIndex)).content, Dn = async (e) => {
700
- let t = await K.value.downloadSourceDocument(P.agentId, e);
699
+ }, On = async (e) => (await K.value.expandSourceContext(N.agentId, e.documentId, e.chunkIndex)).content, kn = async (e) => {
700
+ let t = await K.value.downloadSourceDocument(N.agentId, e);
701
701
  window.open(t.downloadUrl, "_blank");
702
- }, { isOverDropZone: On } = ve(Qt, {
702
+ }, { isOverDropZone: An } = ve(en, {
703
703
  dataTypes: (e) => t(e, yt.value?.allowedMimeTypes ?? []),
704
704
  onDrop: (e) => {
705
705
  if (yt.value?.enabled && e) for (let t of e) jt(t);
706
706
  }
707
- }), kn = M(!1), An = !1, Z = M(!1), jn = [
707
+ }), jn = j(!1), Mn = !1, Z = j(!1), Nn = [
708
708
  3e3,
709
709
  5e3,
710
710
  1e4
711
- ], Mn, Nn, Pn = !1, Fn = 0, In = !1;
712
- function Ln() {
713
- clearTimeout(Mn), Mn = void 0, Nn = void 0, Pn = !1, Fn = 0, Z.value = !1;
711
+ ], Pn, Fn, In = !1, Ln = 0, Rn = !1;
712
+ function zn() {
713
+ clearTimeout(Pn), Pn = void 0, Fn = void 0, In = !1, Ln = 0, Z.value = !1;
714
714
  }
715
- function Rn(e) {
716
- An || (clearTimeout(Mn), Mn = setTimeout(() => {
717
- zn();
715
+ function Bn(e) {
716
+ Mn || (clearTimeout(Pn), Pn = setTimeout(() => {
717
+ Vn();
718
718
  }, e));
719
719
  }
720
- async function zn() {
721
- if (An || In) return;
722
- In = !0;
720
+ async function Vn() {
721
+ if (Mn || Rn) return;
722
+ Rn = !0;
723
723
  let e;
724
724
  try {
725
- e = await Pt();
725
+ e = await It();
726
726
  } finally {
727
- In = !1;
727
+ Rn = !1;
728
728
  }
729
- if (An) return;
730
- if (e === "caught-up" && (Z.value = !1, hr()), Q.isActive.value) {
731
- Nn = void 0, Pn = !1, Fn = 0, Rn(tt);
729
+ if (Mn) return;
730
+ if (e === "caught-up" && (Z.value = !1, _r()), Q.isActive.value) {
731
+ Fn = void 0, In = !1, Ln = 0, Bn(tt);
732
732
  return;
733
733
  }
734
- Nn === void 0 && (Nn = Date.now(), Pn = !!Q.error.value);
735
- let t = Date.now() - Nn;
736
- if (e === "caught-up" && t >= (Pn ? rt : nt) || t >= it) {
737
- Ln(), gr();
734
+ Fn === void 0 && (Fn = Date.now(), In = !!Q.error.value);
735
+ let t = Date.now() - Fn;
736
+ if (e === "caught-up" && t >= (In ? rt : nt) || t >= it) {
737
+ zn(), vr();
738
738
  return;
739
739
  }
740
- let n = jn[Math.min(Fn, jn.length - 1)];
741
- Fn += 1, Rn(n);
740
+ let n = Nn[Math.min(Ln, Nn.length - 1)];
741
+ Ln += 1, Bn(n);
742
742
  }
743
- let Bn = (e = 1200) => {
744
- Rn(e);
745
- }, Vn, Q = Me({
743
+ let Hn = (e = 1200) => {
744
+ Bn(e);
745
+ }, Un, Q = Me({
746
746
  fetchGrant: async () => {
747
- Vn = R.voicePageTools();
748
- let e = await K.value.createVoiceSession(P.agentId, R.localChatId, {
747
+ Un = R.voicePageTools();
748
+ let e = await K.value.createVoiceSession(N.agentId, R.localChatId, {
749
749
  deviceContext: R.buildDeviceContext(),
750
750
  externalContext: R.externalContext,
751
- pageTools: Vn?.declaration,
751
+ pageTools: Un?.declaration,
752
752
  ...R.confirmationMode === "automatic" && { confirmations: "automatic" }
753
753
  });
754
754
  return e.chatId !== R.localChatId && (R.localChatId = e.chatId), e;
755
755
  },
756
- closeGrant: (e) => K.value.closeVoiceSession(P.agentId, e),
757
- clientTools: () => Vn?.clientTools,
756
+ closeGrant: (e) => K.value.closeVoiceSession(N.agentId, e),
757
+ clientTools: () => Un?.clientTools,
758
758
  onTranscript: (e) => {
759
- e.role === "user" ? (Z.value = !0, mr(), Ft({
759
+ e.role === "user" ? (Z.value = !0, gr(), Lt({
760
760
  id: `${i}user-${n()}`,
761
761
  role: "user",
762
762
  parts: [{
@@ -766,7 +766,7 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
766
766
  })) : Z.value = !1;
767
767
  },
768
768
  onTurnEnd: () => {
769
- Bn();
769
+ Hn();
770
770
  }
771
771
  });
772
772
  I(() => Q.isActive.value, (e) => {
@@ -774,38 +774,38 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
774
774
  }), I(() => Q.error.value, (e) => {
775
775
  e && (Z.value = !1);
776
776
  });
777
- let Hn = S(() => Te.value?.enabled === !0), Un = S(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), Wn = S(() => {
777
+ let Wn = S(() => Te.value?.enabled === !0), Gn = S(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), Kn = S(() => {
778
778
  let e = Q.error.value;
779
779
  if (e) return /took too long/i.test(e) ? J("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? J("message.voiceNoAnswer") : J("message.voiceInterrupted");
780
- }), Gn = S(() => Q.isSpeaking.value ? "output" : "input"), Kn = () => Q.readLevel(Gn.value), qn = () => Q.readSpectrum(Gn.value), Jn = async () => {
781
- kn.value = !1, await Q.start(), Q.isActive.value && (Ln(), Rn(tt));
782
- }, Yn = async () => {
783
- Z.value = !1, await Q.stop(), !An && Bn(0);
784
- }, Xn = () => {
785
- Q.dismissError();
780
+ }), qn = S(() => Q.isSpeaking.value ? "output" : "input"), Jn = () => Q.readLevel(qn.value), Yn = () => Q.readSpectrum(qn.value), Xn = async () => {
781
+ jn.value = !1, await Q.start(), Q.isActive.value && (zn(), Bn(tt));
786
782
  }, Zn = async () => {
787
- Q.dismissError(), await Q.stop(), await Jn();
788
- }, Qn = (e) => e?.toolCallId ?? "", $n = M(/* @__PURE__ */ new Set()), er = (e) => $n.value.has(Qn(e)), tr = M(/* @__PURE__ */ new Map()), nr = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && ($n.value = new Set($n.value).add(Qn(e)), Bn()), !0) : !1, rr = (e, t, n) => {
789
- nr(t, l(t, n)) || kt({
783
+ Z.value = !1, await Q.stop(), !Mn && Hn(0);
784
+ }, Qn = () => {
785
+ Q.dismissError();
786
+ }, $n = async () => {
787
+ Q.dismissError(), await Q.stop(), await Xn();
788
+ }, er = (e) => e?.toolCallId ?? "", tr = j(/* @__PURE__ */ new Set()), nr = (e) => tr.value.has(er(e)), rr = j(/* @__PURE__ */ new Map()), ir = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (tr.value = new Set(tr.value).add(er(e)), Hn()), !0) : !1, ar = (e, t, n) => {
789
+ ir(t, l(t, n)) || kt({
790
790
  tool: e,
791
- toolCallId: Qn(t),
791
+ toolCallId: er(t),
792
792
  output: n
793
793
  });
794
- }, ir = (e) => {
794
+ }, or = (e) => {
795
795
  let t = e.confirmed ? J("message.voiceConfirmed") : J("message.voiceCancelled");
796
- nr({ toolCallId: e.toolCallId }, t) ? $n.value.has(e.toolCallId) && (tr.value = new Map(tr.value).set(e.toolCallId, e.confirmed)) : kt({
796
+ ir({ toolCallId: e.toolCallId }, t) ? tr.value.has(e.toolCallId) && (rr.value = new Map(rr.value).set(e.toolCallId, e.confirmed)) : kt({
797
797
  tool: "requestConfirm",
798
798
  toolCallId: e.toolCallId,
799
799
  output: e.confirmed ? "confirmed" : "cancelled"
800
800
  });
801
- }, ar = S(() => {
801
+ }, sr = S(() => {
802
802
  let e = /* @__PURE__ */ new Map();
803
803
  for (let t of V.value) for (let n of t.parts) {
804
804
  let { type: t, state: r, output: i } = n;
805
- vn.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
805
+ bn.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
806
806
  }
807
807
  return e;
808
- }), or = S(() => {
808
+ }), cr = S(() => {
809
809
  let e = /* @__PURE__ */ new Map(), t = (t, n) => {
810
810
  if (t && n) {
811
811
  let r = t.toLowerCase();
@@ -818,114 +818,114 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
818
818
  continue;
819
819
  }
820
820
  let { type: e, state: r, output: i } = n;
821
- vn.has(e) && r === "output-available" && i?.filename && t(u(i.filename, i.version), i.fileId);
821
+ bn.has(e) && r === "output-available" && i?.filename && t(u(i.filename, i.version), i.fileId);
822
822
  }
823
823
  return e;
824
824
  }), $ = S(() => W.value ? void 0 : (e) => {
825
- let t = (or.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
825
+ let t = (cr.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
826
826
  U.value = J(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), bt();
827
- }), sr = (e, t) => {
828
- nr(e, t) || (U.value = t, bt());
829
- }, cr = (e, t) => {
827
+ }), lr = (e, t) => {
828
+ ir(e, t) || (U.value = t, bt());
829
+ }, ur = (e, t) => {
830
830
  let n = t.error ? J("message.voiceLocationRefused") : J("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
831
- nr(e, n) || kt({
831
+ ir(e, n) || kt({
832
832
  tool: "requestGeolocation",
833
- toolCallId: Qn(e),
833
+ toolCallId: er(e),
834
834
  output: t
835
835
  });
836
- }, lr = (e, t) => {
837
- nr(e, J("message.voiceConnectionDone")) || kt({
836
+ }, dr = (e, t) => {
837
+ ir(e, J("message.voiceConnectionDone")) || kt({
838
838
  tool: "requestOAuthConnection",
839
- toolCallId: Qn(e),
839
+ toolCallId: er(e),
840
840
  output: {
841
841
  connected: !0,
842
842
  mcpServerId: t
843
843
  }
844
844
  });
845
- }, ur = () => {
846
- kn.value = !kn.value, Q.setMuted(kn.value);
845
+ }, fr = () => {
846
+ jn.value = !jn.value, Q.setMuted(jn.value);
847
847
  };
848
848
  ue(() => {
849
- An = !0, Ln();
849
+ Mn = !0, zn();
850
850
  });
851
- let { pendingWakeup: dr, isStopping: fr, stop: pr, spokenTurnStarted: mr, spokenTurnsWritten: hr, forgetSpokenTurns: gr } = ze({
852
- agentId: () => P.agentId,
851
+ let { pendingWakeup: pr, isStopping: mr, stop: hr, spokenTurnStarted: gr, spokenTurnsWritten: _r, forgetSpokenTurns: vr } = ze({
852
+ agentId: () => N.agentId,
853
853
  chatId: () => R.localChatId,
854
854
  apiClient: () => K.value,
855
855
  messages: () => V.value,
856
- refreshMessages: Pt,
856
+ refreshMessages: It,
857
857
  status: () => H.value.status
858
858
  });
859
859
  return (t, n) => {
860
860
  let r = ne;
861
- return j(), T("div", {
861
+ return A(), T("div", {
862
862
  ref_key: "chatViewEl",
863
- ref: Qt,
863
+ ref: en,
864
864
  class: k(["pk-chatbot-view-chat", {
865
- "pk-chatbot-view-chat--dragover": F(On) && yt.value?.enabled,
866
- "pk-chatbot-view-chat--empty": Xt.value,
867
- "pk-chatbot-view-chat--with-preview": gn.value && !en.value
865
+ "pk-chatbot-view-chat--dragover": P(An) && yt.value?.enabled,
866
+ "pk-chatbot-view-chat--empty": Qt.value,
867
+ "pk-chatbot-view-chat--with-preview": vn.value && !nn.value
868
868
  }])
869
869
  }, [
870
870
  D(x, {
871
871
  name: "pk-chatbot-view-chat-fade",
872
872
  mode: "out-in"
873
873
  }, {
874
- default: L(() => [Xt.value ? (j(), C(ee, {
874
+ default: L(() => [Qt.value ? (A(), C(ee, {
875
875
  key: 0,
876
- greeting: F(Zt),
877
- logo: F(z)?.logo,
878
- name: F(R).name
876
+ greeting: P($t),
877
+ logo: P(z)?.logo,
878
+ name: P(R).name
879
879
  }, null, 8, [
880
880
  "greeting",
881
881
  "logo",
882
882
  "name"
883
- ])) : (j(), C(e, {
883
+ ])) : (A(), C(e, {
884
884
  key: 1,
885
885
  class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
886
886
  interactive: "",
887
- messages: F(V),
888
- "confirm-verdicts-on-call": tr.value,
889
- status: F(H).status,
890
- error: F(H).error,
891
- "main-color": F(z)?.mainColor,
892
- "text-color": F(z)?.textColor,
893
- "revised-answers": F(De),
894
- actions: F(Ee),
895
- "message-feedbacks": F(Oe),
896
- "feedback-message-id": F(ke)?.id,
897
- "feedback-loading": F(Ae),
898
- "feedback-submitted": F(Ne),
899
- "feedback-error": F(Pe),
900
- "show-extended-steps": F(z)?.showExtendedSteps,
901
- "hide-reasoning": F(z)?.showReasoning === !1,
887
+ messages: P(V),
888
+ "confirm-verdicts-on-call": rr.value,
889
+ status: P(H).status,
890
+ error: P(H).error,
891
+ "main-color": P(z)?.mainColor,
892
+ "text-color": P(z)?.textColor,
893
+ "revised-answers": P(De),
894
+ actions: P(Ee),
895
+ "message-feedbacks": P(Oe),
896
+ "feedback-message-id": P(ke)?.id,
897
+ "feedback-loading": P(Ae),
898
+ "feedback-submitted": P(Ne),
899
+ "feedback-error": P(Pe),
900
+ "show-extended-steps": P(z)?.showExtendedSteps,
901
+ "hide-reasoning": P(z)?.showReasoning === !1,
902
902
  "awaiting-spoken-answer": Z.value,
903
- "host-working": Ht.value,
904
- "host-confirmation": F(qe),
905
- "is-dark": F(We),
903
+ "host-working": Wt.value,
904
+ "host-confirmation": P(qe),
905
+ "is-dark": P(We),
906
906
  "show-scroll-to-bottom": a.modifier === "fullscreen",
907
- onFeedbackSubmit: n[0] ||= (e) => F(Et)(e),
907
+ onFeedbackSubmit: n[0] ||= (e) => P(Et)(e),
908
908
  onFeedbackClose: n[1] ||= (e) => ke.value = void 0,
909
- onRegenerate: F(St),
910
- onAutoRetry: F(St),
911
- onResetChat: F(Ot),
909
+ onRegenerate: P(St),
910
+ onAutoRetry: P(St),
911
+ onResetChat: P(Ot),
912
912
  onShowInfo: n[2] ||= (e) => Se("show-info", e),
913
913
  onRevise: n[3] ||= (e) => Se("revise", e),
914
- onUpvote: F(Ct),
915
- onDownvote: F(wt),
916
- onFeedback: F(Tt),
917
- onApprovalRespond: F(At),
918
- onConfirmRespond: ir,
919
- onHostConfirmRespond: F(Lt)
914
+ onUpvote: P(Ct),
915
+ onDownvote: P(wt),
916
+ onFeedback: P(Tt),
917
+ onApprovalRespond: P(At),
918
+ onConfirmRespond: or,
919
+ onHostConfirmRespond: P(zt)
920
920
  }, {
921
- "tool-showContactForm": L(({ part: e }) => [D(F(y), {
921
+ "tool-showContactForm": L(({ part: e }) => [D(P(y), {
922
922
  part: e,
923
- readonly: !F(Ve),
924
- submitted: F(Ie),
925
- loading: F(Le),
926
- error: F(Re),
927
- "privacy-policy-notice": F(z)?.privacyPolicyNotice,
928
- onSubmit: F(Dt)
923
+ readonly: !P(Ve),
924
+ submitted: P(Ie),
925
+ loading: P(Le),
926
+ error: P(Re),
927
+ "privacy-policy-notice": P(z)?.privacyPolicyNotice,
928
+ onSubmit: P(Dt)
929
929
  }, null, 8, [
930
930
  "part",
931
931
  "readonly",
@@ -935,20 +935,20 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
935
935
  "privacy-policy-notice",
936
936
  "onSubmit"
937
937
  ])]),
938
- "tool-showSuggestedReply": L(({ part: e }) => [D(F(ie), {
938
+ "tool-showSuggestedReply": L(({ part: e }) => [D(P(ie), {
939
939
  part: e,
940
- onSelect: (t) => sr(e, t)
940
+ onSelect: (t) => lr(e, t)
941
941
  }, null, 8, ["part", "onSelect"])]),
942
- "tool-showSources": L(({ part: e }) => [D(F(ae), {
942
+ "tool-showSources": L(({ part: e }) => [D(P(ae), {
943
943
  part: e,
944
- "on-expand-context": En,
945
- "on-download": Dn
944
+ "on-expand-context": On,
945
+ "on-download": kn
946
946
  }, null, 8, ["part"])]),
947
947
  "tool-showForm": L(({ part: e }) => [D(x, { mode: "out-in" }, {
948
- default: L(() => [D(F(g), {
948
+ default: L(() => [D(P(g), {
949
949
  part: e,
950
- answered: er(e),
951
- onSelect: (t) => rr("showForm", e, t)
950
+ answered: nr(e),
951
+ onSelect: (t) => ar("showForm", e, t)
952
952
  }, null, 8, [
953
953
  "part",
954
954
  "answered",
@@ -957,11 +957,11 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
957
957
  _: 2
958
958
  }, 1024)]),
959
959
  "tool-showMultipleChoice": L(({ part: e }) => [D(x, { mode: "out-in" }, {
960
- default: L(() => [D(F(g), {
960
+ default: L(() => [D(P(g), {
961
961
  part: e,
962
962
  "allow-custom-answer": "",
963
- answered: er(e),
964
- onSelect: (t) => rr("showMultipleChoice", e, t)
963
+ answered: nr(e),
964
+ onSelect: (t) => ar("showMultipleChoice", e, t)
965
965
  }, null, 8, [
966
966
  "part",
967
967
  "answered",
@@ -969,12 +969,12 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
969
969
  ])]),
970
970
  _: 2
971
971
  }, 1024)]),
972
- "tool-requestOAuthConnection": L(({ part: e }) => [D(F(ce), {
972
+ "tool-requestOAuthConnection": L(({ part: e }) => [D(P(ce), {
973
973
  part: e,
974
- "backend-url": F(Ve),
975
- "resolve-connection": (e) => F(K).getOAuthAuthorizeUrl(P.agentId, e),
976
- "check-connection": (e) => F(K).getOAuthConnectionStatus(P.agentId, e),
977
- onConnected: (t) => lr(e, t)
974
+ "backend-url": P(Ve),
975
+ "resolve-connection": (e) => P(K).getOAuthAuthorizeUrl(N.agentId, e),
976
+ "check-connection": (e) => P(K).getOAuthConnectionStatus(N.agentId, e),
977
+ onConnected: (t) => dr(e, t)
978
978
  }, null, 8, [
979
979
  "part",
980
980
  "backend-url",
@@ -982,94 +982,94 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
982
982
  "check-connection",
983
983
  "onConnected"
984
984
  ])]),
985
- "tool-requestGeolocation": L(({ part: e }) => [D(F(oe), {
985
+ "tool-requestGeolocation": L(({ part: e }) => [D(P(oe), {
986
986
  part: e,
987
- "call-live": F(Q).isActive.value,
988
- "reverse-geocode": (e, t) => F(K).reverseGeocode(e, t),
989
- onResult: (t) => cr(e, t)
987
+ "call-live": P(Q).isActive.value,
988
+ "reverse-geocode": (e, t) => P(K).reverseGeocode(e, t),
989
+ onResult: (t) => ur(e, t)
990
990
  }, null, 8, [
991
991
  "part",
992
992
  "call-live",
993
993
  "reverse-geocode",
994
994
  "onResult"
995
995
  ])]),
996
- "tool-showLocation": L(({ part: e }) => [D(F(le), {
996
+ "tool-showLocation": L(({ part: e }) => [D(P(le), {
997
997
  part: e,
998
- "is-dark": F(We),
999
- "main-color": F(z)?.mainColor,
1000
- "forward-geocode": (e, t) => F(K).forwardGeocode(e, t)
998
+ "is-dark": P(We),
999
+ "main-color": P(z)?.mainColor,
1000
+ "forward-geocode": (e, t) => P(K).forwardGeocode(e, t)
1001
1001
  }, null, 8, [
1002
1002
  "part",
1003
1003
  "is-dark",
1004
1004
  "main-color",
1005
1005
  "forward-geocode"
1006
1006
  ])]),
1007
- "tool-showDiagram": L(({ part: e }) => [D(F(de), {
1007
+ "tool-showDiagram": L(({ part: e }) => [D(P(de), {
1008
1008
  part: e,
1009
- "is-dark": F(We)
1009
+ "is-dark": P(We)
1010
1010
  }, null, 8, ["part", "is-dark"])]),
1011
- "tool-editSpreadsheet": L(({ part: e }) => [(j(), C(F(A), {
1012
- key: F(p)(e),
1011
+ "tool-editSpreadsheet": L(({ part: e }) => [(A(), C(P(fe), {
1012
+ key: P(p)(e),
1013
1013
  part: e,
1014
1014
  "file-url": q,
1015
- preview: mn,
1016
- "latest-versions": ar.value,
1015
+ preview: gn,
1016
+ "latest-versions": sr.value,
1017
1017
  restore: $.value
1018
1018
  }, null, 8, [
1019
1019
  "part",
1020
1020
  "latest-versions",
1021
1021
  "restore"
1022
1022
  ]))]),
1023
- "tool-editWordDocument": L(({ part: e }) => [(j(), C(F(A), {
1024
- key: F(p)(e),
1023
+ "tool-editWordDocument": L(({ part: e }) => [(A(), C(P(fe), {
1024
+ key: P(p)(e),
1025
1025
  part: e,
1026
1026
  "file-url": q,
1027
- preview: mn,
1028
- "latest-versions": ar.value,
1027
+ preview: gn,
1028
+ "latest-versions": sr.value,
1029
1029
  restore: $.value
1030
1030
  }, null, 8, [
1031
1031
  "part",
1032
1032
  "latest-versions",
1033
1033
  "restore"
1034
1034
  ]))]),
1035
- "tool-createSpreadsheet": L(({ part: e }) => [(j(), C(F(A), {
1036
- key: F(p)(e),
1035
+ "tool-createSpreadsheet": L(({ part: e }) => [(A(), C(P(fe), {
1036
+ key: P(p)(e),
1037
1037
  part: e,
1038
1038
  "file-url": q,
1039
- preview: mn,
1040
- "latest-versions": ar.value,
1039
+ preview: gn,
1040
+ "latest-versions": sr.value,
1041
1041
  restore: $.value
1042
1042
  }, null, 8, [
1043
1043
  "part",
1044
1044
  "latest-versions",
1045
1045
  "restore"
1046
1046
  ]))]),
1047
- "tool-createWordDocument": L(({ part: e }) => [(j(), C(F(A), {
1048
- key: F(p)(e),
1047
+ "tool-createWordDocument": L(({ part: e }) => [(A(), C(P(fe), {
1048
+ key: P(p)(e),
1049
1049
  part: e,
1050
1050
  "file-url": q,
1051
- preview: mn,
1052
- "latest-versions": ar.value,
1051
+ preview: gn,
1052
+ "latest-versions": sr.value,
1053
1053
  restore: $.value
1054
1054
  }, null, 8, [
1055
1055
  "part",
1056
1056
  "latest-versions",
1057
1057
  "restore"
1058
1058
  ]))]),
1059
- "tool-shareDocument": L(({ part: e }) => [(j(), C(F(fe), {
1060
- key: F(p)(e),
1059
+ "tool-shareDocument": L(({ part: e }) => [(A(), C(P(pe), {
1060
+ key: P(p)(e),
1061
1061
  part: e,
1062
- "on-download": Dn
1062
+ "on-download": kn
1063
1063
  }, null, 8, ["part"]))]),
1064
1064
  _: 1
1065
1065
  }, 8, /* @__PURE__ */ "messages.confirm-verdicts-on-call.status.error.main-color.text-color.revised-answers.actions.message-feedbacks.feedback-message-id.feedback-loading.feedback-submitted.feedback-error.show-extended-steps.hide-reasoning.awaiting-spoken-answer.host-working.host-confirmation.is-dark.show-scroll-to-bottom.onRegenerate.onAutoRetry.onResetChat.onUpvote.onDownvote.onFeedback.onApprovalRespond.onHostConfirmRespond".split(".")))]),
1066
1066
  _: 1
1067
1067
  }),
1068
- F(ut).length ? (j(), C(v, {
1068
+ P(ut).length ? (A(), C(v, {
1069
1069
  key: 0,
1070
- messages: F(ut),
1071
- onEdit: F(Rt),
1072
- onRemove: F(zt)
1070
+ messages: P(ut),
1071
+ onEdit: P(Bt),
1072
+ onRemove: P(Vt)
1073
1073
  }, null, 8, [
1074
1074
  "messages",
1075
1075
  "onEdit",
@@ -1077,13 +1077,13 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
1077
1077
  ])) : w("", !0),
1078
1078
  E("div", Ye, [
1079
1079
  D(x, { name: "pk-chatbot-view-chat-fade" }, {
1080
- default: L(() => [Xt.value ? (j(), C(we, {
1080
+ default: L(() => [Qt.value ? (A(), C(we, {
1081
1081
  key: 0,
1082
1082
  class: "pk-chatbot-view-chat__aurora",
1083
1083
  "source-selector": ".pk-chatbot-input__form",
1084
- "main-color": F(z)?.mainColor,
1085
- tones: F(z)?.glowTones,
1086
- "second-color": F(z)?.glowSecondColor
1084
+ "main-color": P(z)?.mainColor,
1085
+ tones: P(z)?.glowTones,
1086
+ "second-color": P(z)?.glowSecondColor
1087
1087
  }, null, 8, [
1088
1088
  "main-color",
1089
1089
  "tones",
@@ -1091,100 +1091,78 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
1091
1091
  ])) : w("", !0)]),
1092
1092
  _: 1
1093
1093
  }),
1094
- F(dr) && !F(W) ? (j(), C(te, {
1094
+ P(pr) && !P(W) ? (A(), C(te, {
1095
1095
  key: 0,
1096
- pending: F(dr),
1097
- stopping: F(fr),
1098
- onStop: F(pr)
1096
+ pending: P(pr),
1097
+ stopping: P(mr),
1098
+ onStop: P(hr)
1099
1099
  }, null, 8, [
1100
1100
  "pending",
1101
1101
  "stopping",
1102
1102
  "onStop"
1103
1103
  ])) : w("", !0),
1104
- F(W) ? (j(), T("div", Xe, N(F(J)("message.chatErrorConversationBlocked")), 1)) : Un.value === "idle" ? (j(), C(_, {
1104
+ P(W) ? (A(), T("div", Xe, M(P(J)("message.chatErrorConversationBlocked")), 1)) : Gn.value === "idle" ? (A(), C(_, {
1105
1105
  key: 3,
1106
1106
  ref_key: "inputEl",
1107
1107
  ref: _t,
1108
- modelValue: F(U),
1108
+ modelValue: P(U),
1109
1109
  "onUpdate:modelValue": n[4] ||= (e) => se(U) ? U.value = e : null,
1110
- "pending-attachments": F(G),
1110
+ "pending-attachments": P(G),
1111
1111
  "onUpdate:pendingAttachments": n[5] ||= (e) => se(G) ? G.value = e : null,
1112
- placeholder: F(Be),
1113
- "dismissable-notice": F(Jt) && F(H).messages.length <= 1 ? F(Jt) : void 0,
1114
- "page-notice": Gt.value,
1115
- status: Ut.value,
1116
- "max-message-length": F(z)?.maxMessageLength,
1112
+ placeholder: P(Be),
1113
+ "dismissable-notice": P(Xt) && P(H).messages.length <= 1 ? P(Xt) : void 0,
1114
+ "page-notice": qt.value,
1115
+ status: Gt.value,
1116
+ "max-message-length": P(z)?.maxMessageLength,
1117
1117
  "file-upload": yt.value,
1118
- "attachment-limit-reached": F(He),
1119
- "attachment-notice": Kt.value,
1120
- "voice-enabled": Hn.value,
1121
- "queue-enabled": F(lt),
1122
- "answer-notices": qt.value,
1123
- "pointer-available": F(mt),
1124
- pointing: F(ht),
1118
+ "attachment-limit-reached": P(He),
1119
+ "attachment-notice": Jt.value,
1120
+ "voice-enabled": Wn.value,
1121
+ "queue-enabled": P(lt),
1122
+ "answer-notices": Yt.value,
1123
+ "pointer-available": P(mt),
1124
+ pointing: P(ht),
1125
1125
  pointer: vt.value,
1126
- "automatic-confirmations": F(ct) === "automatic",
1127
- onPoint: n[6] ||= (e) => F(R).pagePointerStart?.(),
1126
+ "automatic-confirmations": P(ct) === "automatic",
1127
+ "editable-images": "",
1128
+ "retryable-attachments": "",
1129
+ onPoint: n[6] ||= (e) => P(R).pagePointerStart?.(),
1128
1130
  onRemovePointer: n[7] ||= (e) => pt.value = void 0,
1129
- onManualConfirmations: n[8] ||= (e) => F(R).setConfirmationMode("manual"),
1130
- onStopGeneration: F(xt),
1131
- onSubmit: F(bt),
1132
- onFileSelect: F(jt),
1133
- onRemoveAttachment: F(Mt),
1134
- onDismissAttachmentNotice: F(Nt),
1135
- onDismissPageNotice: F(It),
1136
- onOpenAnswerNotice: F(Bt),
1137
- onDismissAnswerNotice: F(Vt),
1138
- onVoiceStart: Jn
1131
+ onManualConfirmations: n[8] ||= (e) => P(R).setConfirmationMode("manual"),
1132
+ onStopGeneration: P(xt),
1133
+ onSubmit: P(bt),
1134
+ onFileSelect: P(jt),
1135
+ onRemoveAttachment: P(Mt),
1136
+ onReplaceAttachment: P(Nt),
1137
+ onRetryAttachment: P(Pt),
1138
+ onDismissAttachmentNotice: P(Ft),
1139
+ onDismissPageNotice: P(Rt),
1140
+ onOpenAnswerNotice: P(Ht),
1141
+ onDismissAnswerNotice: P(Ut),
1142
+ onVoiceStart: Xn
1139
1143
  }, re({ _: 2 }, [a.modifier === "fullscreen" ? {
1140
1144
  name: "prepend",
1141
1145
  fn: L(() => [E("span", Ze, [D(h, {
1142
1146
  class: "pk-chatbot-view-chat__agent-chip-avatar",
1143
- "img-src": F(z)?.logo,
1144
- name: F(R).name
1145
- }, null, 8, ["img-src", "name"]), F(R).name ? (j(), T("strong", Qe, N(F(R).name), 1)) : w("", !0)])]),
1147
+ "img-src": P(z)?.logo,
1148
+ name: P(R).name
1149
+ }, null, 8, ["img-src", "name"]), P(R).name ? (A(), T("strong", Qe, M(P(R).name), 1)) : w("", !0)])]),
1146
1150
  key: "0"
1147
- } : void 0]), 1032, [
1148
- "modelValue",
1149
- "pending-attachments",
1150
- "placeholder",
1151
- "dismissable-notice",
1152
- "page-notice",
1153
- "status",
1154
- "max-message-length",
1155
- "file-upload",
1156
- "attachment-limit-reached",
1157
- "attachment-notice",
1158
- "voice-enabled",
1159
- "queue-enabled",
1160
- "answer-notices",
1161
- "pointer-available",
1162
- "pointing",
1163
- "pointer",
1164
- "automatic-confirmations",
1165
- "onStopGeneration",
1166
- "onSubmit",
1167
- "onFileSelect",
1168
- "onRemoveAttachment",
1169
- "onDismissAttachmentNotice",
1170
- "onDismissPageNotice",
1171
- "onOpenAnswerNotice",
1172
- "onDismissAnswerNotice"
1173
- ])) : (j(), C(je, {
1151
+ } : 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("."))) : (A(), C(je, {
1174
1152
  key: 2,
1175
- state: Un.value,
1176
- sample: Kn,
1177
- spectrum: qn,
1178
- "remaining-seconds": F(Q).remainingSeconds.value,
1179
- muted: kn.value,
1180
- error: Wn.value,
1181
- "raw-error": F(Q).error.value,
1182
- live: F(Q).isActive.value,
1153
+ state: Gn.value,
1154
+ sample: Jn,
1155
+ spectrum: Yn,
1156
+ "remaining-seconds": P(Q).remainingSeconds.value,
1157
+ muted: jn.value,
1158
+ error: Kn.value,
1159
+ "raw-error": P(Q).error.value,
1160
+ live: P(Q).isActive.value,
1183
1161
  class: "pk-chatbot-view-chat__voice",
1184
- onToggleMute: ur,
1185
- onHangUp: Yn,
1186
- onRetry: Zn,
1187
- onDismiss: Xn
1162
+ onToggleMute: fr,
1163
+ onHangUp: Zn,
1164
+ onRetry: $n,
1165
+ onDismiss: Qn
1188
1166
  }, null, 8, [
1189
1167
  "state",
1190
1168
  "remaining-seconds",
@@ -1195,17 +1173,17 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
1195
1173
  ]))
1196
1174
  ]),
1197
1175
  D(x, null, {
1198
- default: L(() => [F(On) && yt.value?.enabled ? (j(), T("div", $e, [D(r, {
1176
+ default: L(() => [P(An) && yt.value?.enabled ? (A(), T("div", $e, [D(r, {
1199
1177
  name: "ri:upload-cloud-2-line",
1200
1178
  class: "pk-chatbot-view-chat__drop-overlay-icon"
1201
- }), E("span", null, N(F(J)("action.dropFile")), 1)])) : w("", !0)]),
1179
+ }), E("span", null, M(P(J)("action.dropFile")), 1)])) : w("", !0)]),
1202
1180
  _: 1
1203
1181
  }),
1204
- gn.value ? (j(), C(b, {
1182
+ vn.value ? (A(), C(b, {
1205
1183
  key: 1,
1206
- to: tn.value,
1207
- disabled: !en.value
1208
- }, [E("aside", { class: k(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": en.value }]) }, [F(Y) ? (j(), C(F(me), {
1184
+ to: rn.value,
1185
+ disabled: !nn.value
1186
+ }, [E("aside", { class: k(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": nn.value }]) }, [P(Y) ? (A(), C(P(he), {
1209
1187
  key: 0,
1210
1188
  mode: X.value.mode,
1211
1189
  "onUpdate:mode": n[9] ||= (e) => X.value.mode = e,
@@ -1215,25 +1193,25 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
1215
1193
  "onUpdate:zoom": n[11] ||= (e) => X.value.zoom = e,
1216
1194
  fit: X.value.fit,
1217
1195
  "onUpdate:fit": n[12] ||= (e) => X.value.fit = e,
1218
- kind: F(Y).kind,
1219
- filename: F(Y).filename,
1220
- version: F(Y).version,
1221
- versions: bn.value,
1222
- "download-url": q(F(Y).storedFileName),
1223
- preview: F(sn),
1224
- changes: F(un),
1225
- loading: F(cn),
1226
- error: F(ln),
1227
- restorable: Sn.value,
1196
+ kind: P(Y).kind,
1197
+ filename: P(Y).filename,
1198
+ version: P(Y).version,
1199
+ versions: Sn.value,
1200
+ "download-url": q(P(Y).storedFileName),
1201
+ preview: P(ln),
1202
+ changes: P(fn),
1203
+ loading: P(un),
1204
+ error: P(dn),
1205
+ restorable: wn.value,
1228
1206
  resize: "expand",
1229
- "file-id": F(Y).fileId,
1230
- "stored-file-name": F(Y).storedFileName,
1231
- "selection-actions": wn.value,
1232
- onVersion: xn,
1233
- onRestore: Cn,
1234
- onResize: n[13] ||= (e) => hn.value = !0,
1235
- onSelectionSend: Tn,
1236
- onClose: _n
1207
+ "file-id": P(Y).fileId,
1208
+ "stored-file-name": P(Y).storedFileName,
1209
+ "selection-actions": En.value,
1210
+ onVersion: Cn,
1211
+ onRestore: Tn,
1212
+ onResize: n[13] ||= (e) => _n.value = !0,
1213
+ onSelectionSend: Dn,
1214
+ onClose: yn
1237
1215
  }, null, 8, [
1238
1216
  "mode",
1239
1217
  "sheet",
@@ -1253,7 +1231,7 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
1253
1231
  "stored-file-name",
1254
1232
  "selection-actions"
1255
1233
  ])) : w("", !0)], 2)], 8, ["to", "disabled"])) : w("", !0),
1256
- F(Y) && !gn.value ? (j(), C(F(he), {
1234
+ P(Y) && !vn.value ? (A(), C(P(ge), {
1257
1235
  key: 2,
1258
1236
  mode: X.value.mode,
1259
1237
  "onUpdate:mode": n[14] ||= (e) => X.value.mode = e,
@@ -1263,22 +1241,22 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
1263
1241
  "onUpdate:zoom": n[16] ||= (e) => X.value.zoom = e,
1264
1242
  fit: X.value.fit,
1265
1243
  "onUpdate:fit": n[17] ||= (e) => X.value.fit = e,
1266
- target: F(Y),
1267
- versions: bn.value,
1268
- "download-url": q(F(Y).storedFileName),
1269
- preview: F(sn),
1270
- changes: F(un),
1271
- loading: F(cn),
1272
- error: F(ln),
1273
- restorable: Sn.value,
1274
- resize: an.value ? "shrink" : void 0,
1275
- fullscreen: on.value,
1276
- "selection-actions": wn.value,
1277
- onVersion: xn,
1278
- onRestore: Cn,
1279
- onResize: n[18] ||= (e) => hn.value = !1,
1280
- onSelectionSend: Tn,
1281
- onClose: _n
1244
+ target: P(Y),
1245
+ versions: Sn.value,
1246
+ "download-url": q(P(Y).storedFileName),
1247
+ preview: P(ln),
1248
+ changes: P(fn),
1249
+ loading: P(un),
1250
+ error: P(dn),
1251
+ restorable: wn.value,
1252
+ resize: sn.value ? "shrink" : void 0,
1253
+ fullscreen: cn.value,
1254
+ "selection-actions": En.value,
1255
+ onVersion: Cn,
1256
+ onRestore: Tn,
1257
+ onResize: n[18] ||= (e) => _n.value = !1,
1258
+ onSelectionSend: Dn,
1259
+ onClose: yn
1282
1260
  }, null, 8, [
1283
1261
  "mode",
1284
1262
  "sheet",
@@ -1302,4 +1280,4 @@ var Ye = { class: "pk-chatbot-view-chat__input-stage" }, Xe = {
1302
1280
  });
1303
1281
  export { je as a, Pe as i, Je as n, Ee as o, Ke as r, we as s, at as t };
1304
1282
 
1305
- //# sourceMappingURL=PkChatbotViewChat-B3Nr7-kY.js.map
1283
+ //# sourceMappingURL=PkChatbotViewChat-DawyiUjq.js.map