@8wave/ai-elements 0.125.0-beta.16 → 0.125.0-beta.18

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 (145) hide show
  1. package/README.md +24 -0
  2. package/dist/_chunks/{PkChatbotFilePreview-xDlDvl5m.js → PkChatbotFilePreview-CFGqa-tX.js} +2 -2
  3. package/dist/_chunks/{PkChatbotFilePreview-xDlDvl5m.js.map → PkChatbotFilePreview-CFGqa-tX.js.map} +1 -1
  4. package/dist/_chunks/{PkFilePreview-8nVPKv8k.js → PkFilePreview-BIFkMsAC.js} +559 -718
  5. package/dist/_chunks/PkFilePreview-BIFkMsAC.js.map +1 -0
  6. package/dist/_chunks/{PkFilePreviewDialog-BHPcGlnF.js → PkFilePreviewDialog-NLk4gZMd.js} +8 -8
  7. package/dist/_chunks/{PkFilePreviewDialog-BHPcGlnF.js.map → PkFilePreviewDialog-NLk4gZMd.js.map} +1 -1
  8. package/dist/_chunks/PkSelectionActions-CUymhwsG.js +168 -0
  9. package/dist/_chunks/PkSelectionActions-CUymhwsG.js.map +1 -0
  10. package/dist/_chunks/{PkStreamingMarkdown-BFTTLuPc.js → PkStreamingMarkdown-CqLpNWQv.js} +2 -2
  11. package/dist/_chunks/{PkStreamingMarkdown-BFTTLuPc.js.map → PkStreamingMarkdown-CqLpNWQv.js.map} +1 -1
  12. package/dist/_chunks/{PkToolChatFile-Buv7Qkes.js → PkToolChatFile-iE4ZokYD.js} +2 -2
  13. package/dist/_chunks/{PkToolChatFile-Buv7Qkes.js.map → PkToolChatFile-iE4ZokYD.js.map} +1 -1
  14. package/dist/_chunks/{PkToolShareDocument-kB0qoQda.js → PkToolShareDocument-lTHNZodf.js} +2 -2
  15. package/dist/_chunks/{PkToolShareDocument-kB0qoQda.js.map → PkToolShareDocument-lTHNZodf.js.map} +1 -1
  16. package/dist/_chunks/{PkToolShowArtifact-ClYqvIqB.js → PkToolShowArtifact-BNQrM5fY.js} +2 -2
  17. package/dist/_chunks/{PkToolShowArtifact-ClYqvIqB.js.map → PkToolShowArtifact-BNQrM5fY.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowContactForm-C0ABjvtZ.js → PkToolShowContactForm-CvQoLumn.js} +2 -2
  19. package/dist/_chunks/{PkToolShowContactForm-C0ABjvtZ.js.map → PkToolShowContactForm-CvQoLumn.js.map} +1 -1
  20. package/dist/_chunks/{PkToolShowDiagram-BZbHtEs5.js → PkToolShowDiagram-COt1Z3q9.js} +2 -2
  21. package/dist/_chunks/{PkToolShowDiagram-BZbHtEs5.js.map → PkToolShowDiagram-COt1Z3q9.js.map} +1 -1
  22. package/dist/_chunks/{PkToolShowForm-DUjR-9o1.js → PkToolShowForm-DcPccCEU.js} +2 -2
  23. package/dist/_chunks/{PkToolShowForm-DUjR-9o1.js.map → PkToolShowForm-DcPccCEU.js.map} +1 -1
  24. package/dist/_chunks/{PkToolShowImageGallery-CNU2Zvso.js → PkToolShowImageGallery-DefXra8-.js} +2 -2
  25. package/dist/_chunks/{PkToolShowImageGallery-CNU2Zvso.js.map → PkToolShowImageGallery-DefXra8-.js.map} +1 -1
  26. package/dist/_chunks/{PkToolShowSources-DhDjNIFa.js → PkToolShowSources-BE3Zv_uz.js} +2 -2
  27. package/dist/_chunks/{PkToolShowSources-DhDjNIFa.js.map → PkToolShowSources-BE3Zv_uz.js.map} +1 -1
  28. package/dist/_chunks/{useLightbox-BEEzZ0qT.js → useLightbox-D2Zi-Fpe.js} +72 -13
  29. package/dist/_chunks/useLightbox-D2Zi-Fpe.js.map +1 -0
  30. package/dist/ai-elements.es.js +4692 -4268
  31. package/dist/ai-elements.es.js.map +1 -1
  32. package/dist-vue/PkChatbot.js +1 -1
  33. package/dist-vue/PkChatbotEmptyState.js +1 -1
  34. package/dist-vue/PkChatbotFilePreview.js +1 -1
  35. package/dist-vue/PkChatbotInput.js +1 -1
  36. package/dist-vue/PkChatbotMessages.js +1 -1
  37. package/dist-vue/PkChatbotStepPayload.js +1 -1
  38. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  39. package/dist-vue/PkChatbotSteps.js +1 -1
  40. package/dist-vue/PkChatbotViewChat.js +1 -1
  41. package/dist-vue/PkChatbotViewConversations.js +1 -1
  42. package/dist-vue/PkChatbotViewFiles.js +1 -1
  43. package/dist-vue/PkChatbotViewProfile.js +1 -1
  44. package/dist-vue/_chunks/{Agent-DmxsItHG.js → Agent-Cm1LrkYm.js} +162 -162
  45. package/dist-vue/_chunks/{Agent-DmxsItHG.js.map → Agent-Cm1LrkYm.js.map} +1 -1
  46. package/dist-vue/_chunks/{Document-CXfJxfu6.js → Document-DHBTrCuO.js} +10 -10
  47. package/dist-vue/_chunks/{Document-CXfJxfu6.js.map → Document-DHBTrCuO.js.map} +1 -1
  48. package/dist-vue/_chunks/{PkChatbot-Bpo22_yE.js → PkChatbot-DCGQnndK.js} +10 -9
  49. package/dist-vue/_chunks/PkChatbot-DCGQnndK.js.map +1 -0
  50. package/dist-vue/_chunks/{PkChatbotEmptyState-CQ_Qdkge.js → PkChatbotEmptyState-COya3H3C.js} +2 -2
  51. package/dist-vue/_chunks/{PkChatbotEmptyState-CQ_Qdkge.js.map → PkChatbotEmptyState-COya3H3C.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkChatbotFilePreview-BpVM850N.js → PkChatbotFilePreview-BsvT6orx.js} +2 -2
  53. package/dist-vue/_chunks/{PkChatbotFilePreview-BpVM850N.js.map → PkChatbotFilePreview-BsvT6orx.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkChatbotInput-BVu1b2Te.js → PkChatbotInput-D0KUEkAs.js} +5 -4
  55. package/dist-vue/_chunks/PkChatbotInput-D0KUEkAs.js.map +1 -0
  56. package/dist-vue/_chunks/{PkChatbotMessages-DftNL5ZQ.js → PkChatbotMessages-l-IzEWsN.js} +21 -21
  57. package/dist-vue/_chunks/{PkChatbotMessages-DftNL5ZQ.js.map → PkChatbotMessages-l-IzEWsN.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkChatbotStepPayload-AiDZPbds.js → PkChatbotStepPayload-cuYclK_2.js} +2 -2
  59. package/dist-vue/_chunks/{PkChatbotStepPayload-AiDZPbds.js.map → PkChatbotStepPayload-cuYclK_2.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotStepToolDetail-CALZDpfQ.js → PkChatbotStepToolDetail-Yd8cUQJP.js} +3 -3
  61. package/dist-vue/_chunks/{PkChatbotStepToolDetail-CALZDpfQ.js.map → PkChatbotStepToolDetail-Yd8cUQJP.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotSteps-CY7pN2Gl.js → PkChatbotSteps-_Aqft0em.js} +5 -5
  63. package/dist-vue/_chunks/{PkChatbotSteps-CY7pN2Gl.js.map → PkChatbotSteps-_Aqft0em.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotViewChat-Drp0At_n.js → PkChatbotViewChat-CHvtUHuO.js} +180 -178
  65. package/dist-vue/_chunks/PkChatbotViewChat-CHvtUHuO.js.map +1 -0
  66. package/dist-vue/_chunks/{PkChatbotViewConversations-C0KqM_Wq.js → PkChatbotViewConversations-7JU_5-F2.js} +3 -3
  67. package/dist-vue/_chunks/{PkChatbotViewConversations-C0KqM_Wq.js.map → PkChatbotViewConversations-7JU_5-F2.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotViewFiles-B9mYRoNK.js → PkChatbotViewFiles-D53wtRPS.js} +3 -3
  69. package/dist-vue/_chunks/{PkChatbotViewFiles-B9mYRoNK.js.map → PkChatbotViewFiles-D53wtRPS.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotViewProfile-BfNE3d7F.js → PkChatbotViewProfile-BRlLIofM.js} +2 -2
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-BfNE3d7F.js.map → PkChatbotViewProfile-BRlLIofM.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkFilePreview-z7JcRtjP.js → PkFilePreview-DLo9nI2g.js} +426 -426
  73. package/dist-vue/_chunks/PkFilePreview-DLo9nI2g.js.map +1 -0
  74. package/dist-vue/_chunks/{PkFilePreviewDialog-zVon3aPY.js → PkFilePreviewDialog-CgDJQgIJ.js} +2 -2
  75. package/dist-vue/_chunks/{PkFilePreviewDialog-zVon3aPY.js.map → PkFilePreviewDialog-CgDJQgIJ.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkStreamingMarkdown-bJEDk-kM.js → PkStreamingMarkdown-2FN4WMQD.js} +4 -4
  77. package/dist-vue/_chunks/{PkStreamingMarkdown-bJEDk-kM.js.map → PkStreamingMarkdown-2FN4WMQD.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkSvgViewer-DmkElalq.js → PkSvgViewer-BsdSOBpH.js} +2 -2
  79. package/dist-vue/_chunks/{PkSvgViewer-DmkElalq.js.map → PkSvgViewer-BsdSOBpH.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkToolChatFile-DqLGwJxp.js → PkToolChatFile-DAT1tv52.js} +4 -4
  81. package/dist-vue/_chunks/{PkToolChatFile-DqLGwJxp.js.map → PkToolChatFile-DAT1tv52.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolRequestGeolocation-BnV7A6SW.js → PkToolRequestGeolocation-p7Ip17F7.js} +2 -2
  83. package/dist-vue/_chunks/{PkToolRequestGeolocation-BnV7A6SW.js.map → PkToolRequestGeolocation-p7Ip17F7.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-QCbQ7bnl.js → PkToolRequestOAuthConnection-CtXSzKzM.js} +2 -2
  85. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-QCbQ7bnl.js.map → PkToolRequestOAuthConnection-CtXSzKzM.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolShareDocument-BIZkgcJ3.js → PkToolShareDocument-Qb2Lu5vh.js} +2 -2
  87. package/dist-vue/_chunks/{PkToolShareDocument-BIZkgcJ3.js.map → PkToolShareDocument-Qb2Lu5vh.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolShowArtifact-DanzULWt.js → PkToolShowArtifact-Bskomw05.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolShowArtifact-DanzULWt.js.map → PkToolShowArtifact-Bskomw05.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowContactForm-DzttQBG6.js → PkToolShowContactForm-iQrlqv7j.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowContactForm-DzttQBG6.js.map → PkToolShowContactForm-iQrlqv7j.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowDiagram-BNa89wcw.js → PkToolShowDiagram-C-43uUoh.js} +3 -3
  93. package/dist-vue/_chunks/{PkToolShowDiagram-BNa89wcw.js.map → PkToolShowDiagram-C-43uUoh.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowForm-BXol1WE3.js → PkToolShowForm-CKXpqQxy.js} +4 -4
  95. package/dist-vue/_chunks/{PkToolShowForm-BXol1WE3.js.map → PkToolShowForm-CKXpqQxy.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowImageGallery-Dmr5zXTj.js → PkToolShowImageGallery-DLTn6JmU.js} +3 -3
  97. package/dist-vue/_chunks/{PkToolShowImageGallery-Dmr5zXTj.js.map → PkToolShowImageGallery-DLTn6JmU.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowLocation-DCPaDtBI.js → PkToolShowLocation-B8FE_Sqd.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowLocation-DCPaDtBI.js.map → PkToolShowLocation-B8FE_Sqd.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowProductList-C_uIUG_G.js → PkToolShowProductList-hhSBAQVC.js} +2 -2
  101. package/dist-vue/_chunks/{PkToolShowProductList-C_uIUG_G.js.map → PkToolShowProductList-hhSBAQVC.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowSources-BHRNGn4s.js → PkToolShowSources-BiP9fVV2.js} +3 -3
  103. package/dist-vue/_chunks/{PkToolShowSources-BHRNGn4s.js.map → PkToolShowSources-BiP9fVV2.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DHCqxA1P.js → PkToolShowSuggestedReply-BRIzGNwx.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DHCqxA1P.js.map → PkToolShowSuggestedReply-BRIzGNwx.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowVideo-P4H5A7ke.js → PkToolShowVideo-DJhsbDuX.js} +2 -2
  107. package/dist-vue/_chunks/{PkToolShowVideo-P4H5A7ke.js.map → PkToolShowVideo-DJhsbDuX.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolShowWebPages-BzNZHR7Q.js → PkToolShowWebPages-BAv66f5H.js} +2 -2
  109. package/dist-vue/_chunks/{PkToolShowWebPages-BzNZHR7Q.js.map → PkToolShowWebPages-BAv66f5H.js.map} +1 -1
  110. package/dist-vue/_chunks/{createChatbotApiClient-CQjxHqLr.js → createChatbotApiClient-DO4_I5hT.js} +21 -14
  111. package/dist-vue/_chunks/createChatbotApiClient-DO4_I5hT.js.map +1 -0
  112. package/dist-vue/_chunks/{useChatbotStore-CyZha9pf.js → useChatbotStore-Bj00X4yT.js} +1255 -1242
  113. package/dist-vue/_chunks/useChatbotStore-Bj00X4yT.js.map +1 -0
  114. package/dist-vue/_chunks/{useLightbox-gSzoBgNv.js → useLightbox-FDyQrPWe.js} +72 -13
  115. package/dist-vue/_chunks/useLightbox-FDyQrPWe.js.map +1 -0
  116. package/dist-vue/_chunks/{utils-8lO2Gj-m.js → utils-RwaXl9-x.js} +4 -4
  117. package/dist-vue/_chunks/{utils-8lO2Gj-m.js.map → utils-RwaXl9-x.js.map} +1 -1
  118. package/dist-vue/api.js +1 -1
  119. package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
  120. package/dist-vue/apps/web-component/src/composables/usePagePointer.d.ts +14 -9
  121. package/dist-vue/apps/web-component/src/composables/usePendingMessage.d.ts +29 -15
  122. package/dist-vue/apps/web-component/src/composables/useSelectionActions.d.ts +77 -0
  123. package/dist-vue/composables.js +40 -8
  124. package/dist-vue/composables.js.map +1 -1
  125. package/dist-vue/index.js +5401 -5321
  126. package/dist-vue/index.js.map +1 -1
  127. package/dist-vue/locales.js +28 -2
  128. package/dist-vue/packages/components/src/chat/PkAgentSelectionActionsSettings.d.ts +25 -0
  129. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +23 -3
  130. package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +2 -1
  131. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +2 -0
  132. package/dist-vue/packages/components/src/chat/PkSelectionActions.d.ts +2 -12
  133. package/dist-vue/packages/components/src/chat/PkSelectionAnswerCard.d.ts +41 -0
  134. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +6 -0
  135. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +4 -1
  136. package/package.json +1 -1
  137. package/dist/_chunks/PkFilePreview-8nVPKv8k.js.map +0 -1
  138. package/dist/_chunks/useLightbox-BEEzZ0qT.js.map +0 -1
  139. package/dist-vue/_chunks/PkChatbot-Bpo22_yE.js.map +0 -1
  140. package/dist-vue/_chunks/PkChatbotInput-BVu1b2Te.js.map +0 -1
  141. package/dist-vue/_chunks/PkChatbotViewChat-Drp0At_n.js.map +0 -1
  142. package/dist-vue/_chunks/PkFilePreview-z7JcRtjP.js.map +0 -1
  143. package/dist-vue/_chunks/createChatbotApiClient-CQjxHqLr.js.map +0 -1
  144. package/dist-vue/_chunks/useChatbotStore-CyZha9pf.js.map +0 -1
  145. package/dist-vue/_chunks/useLightbox-gSzoBgNv.js.map +0 -1
@@ -1,14 +1,14 @@
1
- import { t as e } from "./PkChatbotMessages-DftNL5ZQ.js";
1
+ import { t as e } from "./PkChatbotMessages-l-IzEWsN.js";
2
2
  import { o as t } from "./Media-DylqhvaF.js";
3
- import { a as n, n as r, t as i } from "./useChatbotStore-CyZha9pf.js";
3
+ import { a as n, n as r, t as i } from "./useChatbotStore-Bj00X4yT.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-8lO2Gj-m.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";
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-BVu1b2Te.js";
9
+ import { n as g, t as _ } from "./PkChatbotInput-D0KUEkAs.js";
10
10
  import { t as v } from "./PkChatbotQueuedMessages-CIJFAvE2.js";
11
- import { t as ee } from "./PkChatbotEmptyState-CQ_Qdkge.js";
11
+ import { t as ee } from "./PkChatbotEmptyState-COya3H3C.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
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 k, inject as ae, isRef as oe, nextTick as se, normalizeClass as A, normalizeStyle as ce, onBeforeUnmount as le, onMounted as ue, onScopeDispose as de, 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";
@@ -535,7 +535,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
535
535
  "selection-action"
536
536
  ],
537
537
  setup(a, { emit: c }) {
538
- let g = O(() => import("./PkToolShowForm-BXol1WE3.js").then((e) => e.n)), y = O(() => import("./PkToolShowContactForm-DzttQBG6.js").then((e) => e.n)), ie = O(() => import("./PkToolShowSuggestedReply-DHCqxA1P.js").then((e) => e.n)), k = O(() => import("./PkToolShowSources-BHRNGn4s.js").then((e) => e.n)), ae = O(() => import("./PkToolRequestGeolocation-BnV7A6SW.js").then((e) => e.n)), se = O(() => import("./PkToolRequestOAuthConnection-QCbQ7bnl.js")), ce = O(() => import("./PkToolShowLocation-DCPaDtBI.js").then((e) => e.n)), ue = O(() => import("./PkToolShowDiagram-BNa89wcw.js")), de = O(() => import("./PkToolChatFile-DqLGwJxp.js").then((e) => e.n)), fe = O(() => import("./PkToolShareDocument-BIZkgcJ3.js").then((e) => e.n)), me = O(() => import("./PkFilePreview-z7JcRtjP.js").then((e) => e.n)), he = O(() => import("./PkFilePreviewDialog-zVon3aPY.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: Ze, isConversationBlocked: Qe, baseUrl: $e, pendingAttachments: et, isAttachmentLimitReached: tt, fileLimitError: nt, apiClient: W, isDark: rt, hostToolsPending: it, pageNoticeLevel: at, hostConfirmation: ot, agentPageAccess: st, hostStepTitles: ct, hostStepChanges: lt, confirmationMode: ut, canQueue: dt, queuedMessages: ft, backgroundAnswers: pt, inputFocusRequest: mt, pagePointer: G, pagePointerAvailable: ht, pagePointing: gt, agentSelectionActions: _t } = be(R);
538
+ 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)), k = O(() => import("./PkToolShowSources-BiP9fVV2.js").then((e) => e.n)), ae = O(() => import("./PkToolRequestGeolocation-p7Ip17F7.js").then((e) => e.n)), se = O(() => import("./PkToolRequestOAuthConnection-CtXSzKzM.js")), ce = O(() => import("./PkToolShowLocation-B8FE_Sqd.js").then((e) => e.n)), ue = O(() => import("./PkToolShowDiagram-C-43uUoh.js")), de = O(() => import("./PkToolChatFile-DAT1tv52.js").then((e) => e.n)), fe = O(() => import("./PkToolShareDocument-Qb2Lu5vh.js").then((e) => e.n)), me = O(() => import("./PkFilePreview-DLo9nI2g.js").then((e) => e.n)), he = O(() => import("./PkFilePreviewDialog-CgDJQgIJ.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: Ze, isConversationBlocked: Qe, baseUrl: $e, pendingAttachments: et, isAttachmentLimitReached: tt, fileLimitError: nt, apiClient: W, isDark: rt, hostToolsPending: it, pageNoticeLevel: at, hostConfirmation: ot, agentPageAccess: st, hostStepTitles: ct, hostStepChanges: lt, confirmationMode: ut, canQueue: dt, queuedMessages: ft, backgroundAnswers: pt, inputFocusRequest: mt, pagePointer: G, pagePointerAvailable: ht, pagePointing: gt, agentSelectionActions: _t } = be(R);
539
539
  pe(f, ct), pe(d, lt);
540
540
  let vt = ge("inputEl");
541
541
  I(mt, () => {
@@ -546,135 +546,135 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
546
546
  let yt = S(() => G.value ? {
547
547
  kind: G.value.kind,
548
548
  label: G.value.label
549
- } : void 0), K = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => W.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, clearFileLimitError: Mt, refreshMessages: Nt, appendMessage: Pt, closePageNotice: Ft, respondHostConfirmation: It, editQueuedMessage: Lt, removeQueuedMessage: Rt, openBackgroundAnswer: zt, dismissBackgroundAnswer: Bt } = R, { t: J } = _e({ useScope: "global" }), Vt = S(() => it.value > 0), Ht = S(() => Vt.value && H.value.status === "ready" ? "streaming" : H.value.status), Ut = m(() => st.value?.notice), Wt = S(() => at.value ? Ut.value || J(`message.pageAccessNotice.${at.value}`) : void 0), Gt = S(() => {
549
+ } : void 0), K = S(() => B.value === "reasoning" ? void 0 : Ce.value), q = (e) => W.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(() => it.value > 0), Ut = S(() => Ht.value && H.value.status === "ready" ? "streaming" : H.value.status), Wt = m(() => st.value?.notice), Gt = S(() => at.value ? Wt.value || J(`message.pageAccessNotice.${at.value}`) : void 0), Kt = S(() => {
550
550
  let e = nt.value;
551
551
  if (e) return e.reason === "per-chat" ? J("message.fileLimitPerChat", { max: e.max }) : J("message.fileLimitPerMessage", { max: e.max });
552
- }), Kt = S(() => pt.value.map(({ chatId: e, title: t }) => ({
552
+ }), qt = S(() => pt.value.map(({ chatId: e, title: t }) => ({
553
553
  id: e,
554
554
  text: t ? J("message.backgroundAnswerReady", { title: t }) : J("message.backgroundAnswerReadyUntitled")
555
- }))), qt = m(() => z.value?.dismissableNotice), Jt = S(() => V.value.some((e) => e.role === "user")), Yt = S(() => P.modifier === "fullscreen" && !Jt.value), Xt = xe(z, () => P.userName), Zt = ge("chatViewEl"), Qt = Fe(), $t = S(() => !!Qt?.value), en = S(() => Qt?.value ?? "body"), tn = M(0), nn = M(0);
556
- ye([Zt, S(() => Qt?.value ?? void 0)], (e) => {
555
+ }))), 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);
556
+ ye([Qt, S(() => $t?.value ?? void 0)], (e) => {
557
557
  for (let t of e) {
558
558
  let e = t.borderBoxSize?.[0]?.inlineSize ?? t.contentRect.width;
559
- t.target === Zt.value ? tn.value = e : nn.value = e;
559
+ t.target === Qt.value ? nn.value = e : rn.value = e;
560
560
  }
561
561
  }, { box: "border-box" });
562
- let rn = S(() => tn.value + ($t.value ? nn.value : 0) >= Ke), an = S(() => tn.value > 0 && tn.value < 576), { target: Y, preview: on, loading: sn, error: cn, open: ln, close: un, reset: dn } = Be((e) => W.value.getChatFilePreview(P.agentId, R.localChatId, e)), X = M({}), fn = (e) => {
562
+ let an = S(() => nn.value + (en.value ? rn.value : 0) >= Ke), on = S(() => nn.value > 0 && nn.value < 576), { target: Y, preview: sn, loading: cn, error: ln, open: un, close: dn, reset: fn } = Be((e) => W.value.getChatFilePreview(P.agentId, R.localChatId, e)), X = M({}), pn = (e) => {
563
563
  let t = (e) => e?.fileId ?? e?.storedFileName;
564
- return t(e) !== t(Y.value) && (X.value = {}), ln(e);
565
- }, pn = M(!1), mn = S(() => !!Y.value && rn.value && !pn.value), hn = () => {
566
- un(), pn.value = !1;
567
- }, gn = /* @__PURE__ */ new Set([
564
+ return t(e) !== t(Y.value) && (X.value = {}), un(e);
565
+ }, mn = M(!1), hn = S(() => !!Y.value && an.value && !mn.value), gn = () => {
566
+ dn(), mn.value = !1;
567
+ }, _n = /* @__PURE__ */ new Set([
568
568
  "tool-editSpreadsheet",
569
569
  "tool-editWordDocument",
570
570
  "tool-createSpreadsheet",
571
571
  "tool-createWordDocument"
572
- ]), _n = S(() => {
572
+ ]), vn = S(() => {
573
573
  let e = /* @__PURE__ */ new Map();
574
574
  for (let t of V.value) for (let n of t.parts) {
575
575
  let { type: t, state: r, output: i } = n;
576
- if (gn.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
576
+ if (_n.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
577
577
  let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
578
578
  t.set(i.version, i.storedFileName), e.set(i.fileId, t);
579
579
  }
580
580
  }
581
581
  for (let [t, n] of e) n.has(1) || n.set(1, t);
582
582
  return e;
583
- }), vn = S(() => [..._n.value.get(Y.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), yn = (e) => {
584
- let t = Y.value, n = _n.value.get(t?.fileId ?? "")?.get(e);
585
- t && n && fn({
583
+ }), yn = S(() => [...vn.value.get(Y.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), bn = (e) => {
584
+ let t = Y.value, n = vn.value.get(t?.fileId ?? "")?.get(e);
585
+ t && n && pn({
586
586
  ...t,
587
587
  version: e,
588
588
  storedFileName: n
589
589
  });
590
- }, bn = S(() => {
591
- let e = Y.value, t = vn.value;
590
+ }, xn = S(() => {
591
+ let e = Y.value, t = yn.value;
592
592
  return !!$.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
593
- }), xn = () => {
593
+ }), Sn = () => {
594
594
  let e = Y.value;
595
595
  e?.fileId && e.version && ($.value?.({
596
596
  fileId: e.fileId,
597
597
  version: e.version,
598
598
  filename: e.filename
599
- }), hn());
599
+ }), gn());
600
600
  };
601
- I(() => R.localChatId, dn), I(_n, (e, t) => {
601
+ I(() => R.localChatId, fn), I(vn, (e, t) => {
602
602
  let n = Y.value, r = n?.fileId;
603
603
  if (!r || !n.version) return;
604
604
  let i = (e) => Math.max(0, ...e?.get(r)?.keys() ?? []), a = i(e);
605
- a > i(t) && n.version === i(t) && yn(a);
605
+ a > i(t) && n.version === i(t) && bn(a);
606
606
  });
607
- let Sn = S(() => {
607
+ let Cn = S(() => {
608
608
  let e = H.value?.status;
609
609
  if (!(Qe.value || e === "submitted" || e === "streaming")) return Y.value?.kind === "word" ? _t.value?.word : _t.value?.excel;
610
- }), Cn = (e, t, n) => {
610
+ }), wn = (e, t, n) => {
611
611
  R.sendSelection(e, { filePointer: t }) && Se("selection-action", {
612
612
  surface: t.format === "docx" ? "word" : "excel",
613
613
  action: n.id,
614
614
  state: "chat",
615
615
  size: String(n.size)
616
616
  });
617
- }, wn = async (e) => (await W.value.expandSourceContext(P.agentId, e.documentId, e.chunkIndex)).content, Tn = async (e) => {
617
+ }, Tn = async (e) => (await W.value.expandSourceContext(P.agentId, e.documentId, e.chunkIndex)).content, En = async (e) => {
618
618
  let t = await W.value.downloadSourceDocument(P.agentId, e);
619
619
  window.open(t.downloadUrl, "_blank");
620
- }, { isOverDropZone: En } = ve(Zt, {
620
+ }, { isOverDropZone: Dn } = ve(Qt, {
621
621
  dataTypes: (e) => t(e, K.value?.allowedMimeTypes ?? []),
622
622
  onDrop: (e) => {
623
623
  if (K.value?.enabled && e) for (let t of e) jt(t);
624
624
  }
625
- }), Dn = M(!1), On = !1, Z = M(!1), kn = [
625
+ }), On = M(!1), kn = !1, Z = M(!1), An = [
626
626
  3e3,
627
627
  5e3,
628
628
  1e4
629
- ], An, jn, Mn = !1, Nn = 0, Pn = !1;
630
- function Fn() {
631
- clearTimeout(An), An = void 0, jn = void 0, Mn = !1, Nn = 0, Z.value = !1;
629
+ ], jn, Mn, Nn = !1, Pn = 0, Fn = !1;
630
+ function In() {
631
+ clearTimeout(jn), jn = void 0, Mn = void 0, Nn = !1, Pn = 0, Z.value = !1;
632
632
  }
633
- function In(e) {
634
- On || (clearTimeout(An), An = setTimeout(() => {
635
- Ln();
633
+ function Ln(e) {
634
+ kn || (clearTimeout(jn), jn = setTimeout(() => {
635
+ Rn();
636
636
  }, e));
637
637
  }
638
- async function Ln() {
639
- if (On || Pn) return;
640
- Pn = !0;
638
+ async function Rn() {
639
+ if (kn || Fn) return;
640
+ Fn = !0;
641
641
  let e;
642
642
  try {
643
- e = await Nt();
643
+ e = await Pt();
644
644
  } finally {
645
- Pn = !1;
645
+ Fn = !1;
646
646
  }
647
- if (On) return;
648
- if (e === "caught-up" && (Z.value = !1, pr()), Q.isActive.value) {
649
- jn = void 0, Mn = !1, Nn = 0, In(qe);
647
+ if (kn) return;
648
+ if (e === "caught-up" && (Z.value = !1, mr()), Q.isActive.value) {
649
+ Mn = void 0, Nn = !1, Pn = 0, Ln(qe);
650
650
  return;
651
651
  }
652
- jn === void 0 && (jn = Date.now(), Mn = !!Q.error.value);
653
- let t = Date.now() - jn;
654
- if (e === "caught-up" && t >= (Mn ? Ye : Je) || t >= Xe) {
655
- Fn(), mr();
652
+ Mn === void 0 && (Mn = Date.now(), Nn = !!Q.error.value);
653
+ let t = Date.now() - Mn;
654
+ if (e === "caught-up" && t >= (Nn ? Ye : Je) || t >= Xe) {
655
+ In(), hr();
656
656
  return;
657
657
  }
658
- let n = kn[Math.min(Nn, kn.length - 1)];
659
- Nn += 1, In(n);
658
+ let n = An[Math.min(Pn, An.length - 1)];
659
+ Pn += 1, Ln(n);
660
660
  }
661
- let Rn = (e = 1200) => {
662
- In(e);
663
- }, zn, Q = Me({
661
+ let zn = (e = 1200) => {
662
+ Ln(e);
663
+ }, Bn, Q = Me({
664
664
  fetchGrant: async () => {
665
- zn = R.voicePageTools();
665
+ Bn = R.voicePageTools();
666
666
  let e = await W.value.createVoiceSession(P.agentId, R.localChatId, {
667
667
  deviceContext: R.buildDeviceContext(),
668
668
  externalContext: R.externalContext,
669
- pageTools: zn?.declaration,
669
+ pageTools: Bn?.declaration,
670
670
  ...R.confirmationMode === "automatic" && { confirmations: "automatic" }
671
671
  });
672
672
  return e.chatId !== R.localChatId && (R.localChatId = e.chatId), e;
673
673
  },
674
674
  closeGrant: (e) => W.value.closeVoiceSession(P.agentId, e),
675
- clientTools: () => zn?.clientTools,
675
+ clientTools: () => Bn?.clientTools,
676
676
  onTranscript: (e) => {
677
- e.role === "user" ? (Z.value = !0, fr(), Pt({
677
+ e.role === "user" ? (Z.value = !0, pr(), Ft({
678
678
  id: `${i}user-${n()}`,
679
679
  role: "user",
680
680
  parts: [{
@@ -684,7 +684,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
684
684
  })) : Z.value = !1;
685
685
  },
686
686
  onTurnEnd: () => {
687
- Rn();
687
+ zn();
688
688
  }
689
689
  });
690
690
  I(() => Q.isActive.value, (e) => {
@@ -692,38 +692,38 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
692
692
  }), I(() => Q.error.value, (e) => {
693
693
  e && (Z.value = !1);
694
694
  });
695
- let Bn = S(() => Te.value?.enabled === !0), Vn = S(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), Hn = S(() => {
695
+ let Vn = S(() => Te.value?.enabled === !0), Hn = S(() => Q.error.value ? "error" : Q.isConnecting.value ? "connecting" : Q.isSpeaking.value ? "speaking" : Q.isActive.value ? "listening" : "idle"), Un = S(() => {
696
696
  let e = Q.error.value;
697
697
  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");
698
- }), Un = S(() => Q.isSpeaking.value ? "output" : "input"), Wn = () => Q.readLevel(Un.value), Gn = () => Q.readSpectrum(Un.value), Kn = async () => {
699
- Dn.value = !1, await Q.start(), Q.isActive.value && (Fn(), In(qe));
700
- }, qn = async () => {
701
- Z.value = !1, await Q.stop(), !On && Rn(0);
702
- }, Jn = () => {
698
+ }), Wn = S(() => Q.isSpeaking.value ? "output" : "input"), Gn = () => Q.readLevel(Wn.value), Kn = () => Q.readSpectrum(Wn.value), qn = async () => {
699
+ On.value = !1, await Q.start(), Q.isActive.value && (In(), Ln(qe));
700
+ }, Jn = async () => {
701
+ Z.value = !1, await Q.stop(), !kn && zn(0);
702
+ }, Yn = () => {
703
703
  Q.dismissError();
704
- }, Yn = async () => {
705
- Q.dismissError(), await Q.stop(), await Kn();
706
- }, Xn = (e) => e?.toolCallId ?? "", Zn = M(/* @__PURE__ */ new Set()), Qn = (e) => Zn.value.has(Xn(e)), $n = M(/* @__PURE__ */ new Map()), er = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (Zn.value = new Set(Zn.value).add(Xn(e)), Rn()), !0) : !1, tr = (e, t, n) => {
707
- er(t, l(t, n)) || kt({
704
+ }, Xn = async () => {
705
+ Q.dismissError(), await Q.stop(), await qn();
706
+ }, Zn = (e) => e?.toolCallId ?? "", Qn = M(/* @__PURE__ */ new Set()), $n = (e) => Qn.value.has(Zn(e)), er = M(/* @__PURE__ */ new Map()), tr = (e, t) => Q.isActive.value ? (Q.sendUserMessage(t) && (Qn.value = new Set(Qn.value).add(Zn(e)), zn()), !0) : !1, nr = (e, t, n) => {
707
+ tr(t, l(t, n)) || kt({
708
708
  tool: e,
709
- toolCallId: Xn(t),
709
+ toolCallId: Zn(t),
710
710
  output: n
711
711
  });
712
- }, nr = (e) => {
712
+ }, rr = (e) => {
713
713
  let t = e.confirmed ? J("message.voiceConfirmed") : J("message.voiceCancelled");
714
- er({ toolCallId: e.toolCallId }, t) ? Zn.value.has(e.toolCallId) && ($n.value = new Map($n.value).set(e.toolCallId, e.confirmed)) : kt({
714
+ tr({ toolCallId: e.toolCallId }, t) ? Qn.value.has(e.toolCallId) && (er.value = new Map(er.value).set(e.toolCallId, e.confirmed)) : kt({
715
715
  tool: "requestConfirm",
716
716
  toolCallId: e.toolCallId,
717
717
  output: e.confirmed ? "confirmed" : "cancelled"
718
718
  });
719
- }, rr = S(() => {
719
+ }, ir = S(() => {
720
720
  let e = /* @__PURE__ */ new Map();
721
721
  for (let t of V.value) for (let n of t.parts) {
722
722
  let { type: t, state: r, output: i } = n;
723
- gn.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
723
+ _n.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
724
724
  }
725
725
  return e;
726
- }), ir = S(() => {
726
+ }), ar = S(() => {
727
727
  let e = /* @__PURE__ */ new Map(), t = (t, n) => {
728
728
  if (t && n) {
729
729
  let r = t.toLowerCase();
@@ -736,62 +736,62 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
736
736
  continue;
737
737
  }
738
738
  let { type: e, state: r, output: i } = n;
739
- gn.has(e) && r === "output-available" && i?.filename && t(u(i.filename, i.version), i.fileId);
739
+ _n.has(e) && r === "output-available" && i?.filename && t(u(i.filename, i.version), i.fileId);
740
740
  }
741
741
  return e;
742
742
  }), $ = S(() => Qe.value ? void 0 : (e) => {
743
- let t = (ir.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
743
+ let t = (ar.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
744
744
  U.value = J(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), bt();
745
- }), ar = (e, t) => {
746
- er(e, t) || (U.value = t, bt());
747
- }, or = (e, t) => {
745
+ }), or = (e, t) => {
746
+ tr(e, t) || (U.value = t, bt());
747
+ }, sr = (e, t) => {
748
748
  let n = t.error ? J("message.voiceLocationRefused") : J("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
749
- er(e, n) || kt({
749
+ tr(e, n) || kt({
750
750
  tool: "requestGeolocation",
751
- toolCallId: Xn(e),
751
+ toolCallId: Zn(e),
752
752
  output: t
753
753
  });
754
- }, sr = (e, t) => {
755
- er(e, J("message.voiceConnectionDone")) || kt({
754
+ }, cr = (e, t) => {
755
+ tr(e, J("message.voiceConnectionDone")) || kt({
756
756
  tool: "requestOAuthConnection",
757
- toolCallId: Xn(e),
757
+ toolCallId: Zn(e),
758
758
  output: {
759
759
  connected: !0,
760
760
  mcpServerId: t
761
761
  }
762
762
  });
763
- }, cr = () => {
764
- Dn.value = !Dn.value, Q.setMuted(Dn.value);
763
+ }, lr = () => {
764
+ On.value = !On.value, Q.setMuted(On.value);
765
765
  };
766
766
  le(() => {
767
- On = !0, Fn();
767
+ kn = !0, In();
768
768
  });
769
- let { pendingWakeup: lr, isStopping: ur, stop: dr, spokenTurnStarted: fr, spokenTurnsWritten: pr, forgetSpokenTurns: mr } = ze({
769
+ let { pendingWakeup: ur, isStopping: dr, stop: fr, spokenTurnStarted: pr, spokenTurnsWritten: mr, forgetSpokenTurns: hr } = ze({
770
770
  agentId: () => P.agentId,
771
771
  chatId: () => R.localChatId,
772
772
  apiClient: () => W.value,
773
773
  messages: () => V.value,
774
- refreshMessages: Nt,
774
+ refreshMessages: Pt,
775
775
  status: () => H.value.status
776
776
  });
777
777
  return (t, n) => {
778
778
  let r = ne;
779
779
  return j(), T("div", {
780
780
  ref_key: "chatViewEl",
781
- ref: Zt,
781
+ ref: Qt,
782
782
  class: A(["pk-chatbot-view-chat", {
783
- "pk-chatbot-view-chat--dragover": F(En) && K.value?.enabled,
784
- "pk-chatbot-view-chat--empty": Yt.value,
785
- "pk-chatbot-view-chat--with-preview": mn.value && !$t.value
783
+ "pk-chatbot-view-chat--dragover": F(Dn) && K.value?.enabled,
784
+ "pk-chatbot-view-chat--empty": Xt.value,
785
+ "pk-chatbot-view-chat--with-preview": hn.value && !en.value
786
786
  }])
787
787
  }, [
788
788
  D(x, {
789
789
  name: "pk-chatbot-view-chat-fade",
790
790
  mode: "out-in"
791
791
  }, {
792
- default: L(() => [Yt.value ? (j(), C(ee, {
792
+ default: L(() => [Xt.value ? (j(), C(ee, {
793
793
  key: 0,
794
- greeting: F(Xt),
794
+ greeting: F(Zt),
795
795
  logo: F(z)?.logo,
796
796
  name: F(R).name
797
797
  }, null, 8, [
@@ -803,7 +803,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
803
803
  class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
804
804
  interactive: "",
805
805
  messages: F(V),
806
- "confirm-verdicts-on-call": $n.value,
806
+ "confirm-verdicts-on-call": er.value,
807
807
  status: F(H).status,
808
808
  error: F(H).error,
809
809
  "main-color": F(z)?.mainColor,
@@ -818,7 +818,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
818
818
  "show-extended-steps": F(z)?.showExtendedSteps,
819
819
  "hide-reasoning": F(z)?.showReasoning === !1,
820
820
  "awaiting-spoken-answer": Z.value,
821
- "host-working": Vt.value,
821
+ "host-working": Ht.value,
822
822
  "host-confirmation": F(ot),
823
823
  "is-dark": F(rt),
824
824
  "show-scroll-to-bottom": a.modifier === "fullscreen",
@@ -833,8 +833,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
833
833
  onDownvote: F(wt),
834
834
  onFeedback: F(Tt),
835
835
  onApprovalRespond: F(At),
836
- onConfirmRespond: nr,
837
- onHostConfirmRespond: F(It)
836
+ onConfirmRespond: rr,
837
+ onHostConfirmRespond: F(Lt)
838
838
  }, {
839
839
  "tool-showContactForm": L(({ part: e }) => [D(F(y), {
840
840
  part: e,
@@ -855,18 +855,18 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
855
855
  ])]),
856
856
  "tool-showSuggestedReply": L(({ part: e }) => [D(F(ie), {
857
857
  part: e,
858
- onSelect: (t) => ar(e, t)
858
+ onSelect: (t) => or(e, t)
859
859
  }, null, 8, ["part", "onSelect"])]),
860
860
  "tool-showSources": L(({ part: e }) => [D(F(k), {
861
861
  part: e,
862
- "on-expand-context": wn,
863
- "on-download": Tn
862
+ "on-expand-context": Tn,
863
+ "on-download": En
864
864
  }, null, 8, ["part"])]),
865
865
  "tool-showForm": L(({ part: e }) => [D(x, { mode: "out-in" }, {
866
866
  default: L(() => [D(F(g), {
867
867
  part: e,
868
- answered: Qn(e),
869
- onSelect: (t) => tr("showForm", e, t)
868
+ answered: $n(e),
869
+ onSelect: (t) => nr("showForm", e, t)
870
870
  }, null, 8, [
871
871
  "part",
872
872
  "answered",
@@ -878,8 +878,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
878
878
  default: L(() => [D(F(g), {
879
879
  part: e,
880
880
  "allow-custom-answer": "",
881
- answered: Qn(e),
882
- onSelect: (t) => tr("showMultipleChoice", e, t)
881
+ answered: $n(e),
882
+ onSelect: (t) => nr("showMultipleChoice", e, t)
883
883
  }, null, 8, [
884
884
  "part",
885
885
  "answered",
@@ -892,7 +892,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
892
892
  "backend-url": F($e),
893
893
  "resolve-connection": (e) => F(W).getOAuthAuthorizeUrl(P.agentId, e),
894
894
  "check-connection": (e) => F(W).getOAuthConnectionStatus(P.agentId, e),
895
- onConnected: (t) => sr(e, t)
895
+ onConnected: (t) => cr(e, t)
896
896
  }, null, 8, [
897
897
  "part",
898
898
  "backend-url",
@@ -904,7 +904,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
904
904
  part: e,
905
905
  "call-live": F(Q).isActive.value,
906
906
  "reverse-geocode": (e, t) => F(W).reverseGeocode(e, t),
907
- onResult: (t) => or(e, t)
907
+ onResult: (t) => sr(e, t)
908
908
  }, null, 8, [
909
909
  "part",
910
910
  "call-live",
@@ -930,8 +930,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
930
930
  key: F(p)(e),
931
931
  part: e,
932
932
  "file-url": q,
933
- preview: fn,
934
- "latest-versions": rr.value,
933
+ preview: pn,
934
+ "latest-versions": ir.value,
935
935
  restore: $.value
936
936
  }, null, 8, [
937
937
  "part",
@@ -942,8 +942,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
942
942
  key: F(p)(e),
943
943
  part: e,
944
944
  "file-url": q,
945
- preview: fn,
946
- "latest-versions": rr.value,
945
+ preview: pn,
946
+ "latest-versions": ir.value,
947
947
  restore: $.value
948
948
  }, null, 8, [
949
949
  "part",
@@ -954,8 +954,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
954
954
  key: F(p)(e),
955
955
  part: e,
956
956
  "file-url": q,
957
- preview: fn,
958
- "latest-versions": rr.value,
957
+ preview: pn,
958
+ "latest-versions": ir.value,
959
959
  restore: $.value
960
960
  }, null, 8, [
961
961
  "part",
@@ -966,8 +966,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
966
966
  key: F(p)(e),
967
967
  part: e,
968
968
  "file-url": q,
969
- preview: fn,
970
- "latest-versions": rr.value,
969
+ preview: pn,
970
+ "latest-versions": ir.value,
971
971
  restore: $.value
972
972
  }, null, 8, [
973
973
  "part",
@@ -977,7 +977,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
977
977
  "tool-shareDocument": L(({ part: e }) => [(j(), C(F(fe), {
978
978
  key: F(p)(e),
979
979
  part: e,
980
- "on-download": Tn
980
+ "on-download": En
981
981
  }, null, 8, ["part"]))]),
982
982
  _: 1
983
983
  }, 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(".")))]),
@@ -986,8 +986,8 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
986
986
  F(ft).length ? (j(), C(v, {
987
987
  key: 0,
988
988
  messages: F(ft),
989
- onEdit: F(Lt),
990
- onRemove: F(Rt)
989
+ onEdit: F(Rt),
990
+ onRemove: F(zt)
991
991
  }, null, 8, [
992
992
  "messages",
993
993
  "onEdit",
@@ -995,7 +995,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
995
995
  ])) : w("", !0),
996
996
  E("div", Ve, [
997
997
  D(x, { name: "pk-chatbot-view-chat-fade" }, {
998
- default: L(() => [Yt.value ? (j(), C(we, {
998
+ default: L(() => [Xt.value ? (j(), C(we, {
999
999
  key: 0,
1000
1000
  class: "pk-chatbot-view-chat__aurora",
1001
1001
  "source-selector": ".pk-chatbot-input__form",
@@ -1009,17 +1009,17 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1009
1009
  ])) : w("", !0)]),
1010
1010
  _: 1
1011
1011
  }),
1012
- F(lr) && !F(Qe) ? (j(), C(te, {
1012
+ F(ur) && !F(Qe) ? (j(), C(te, {
1013
1013
  key: 0,
1014
- pending: F(lr),
1015
- stopping: F(ur),
1016
- onStop: F(dr)
1014
+ pending: F(ur),
1015
+ stopping: F(dr),
1016
+ onStop: F(fr)
1017
1017
  }, null, 8, [
1018
1018
  "pending",
1019
1019
  "stopping",
1020
1020
  "onStop"
1021
1021
  ])) : w("", !0),
1022
- F(Qe) ? (j(), T("div", He, N(F(J)("message.chatErrorConversationBlocked")), 1)) : Vn.value === "idle" ? (j(), C(_, {
1022
+ F(Qe) ? (j(), T("div", He, N(F(J)("message.chatErrorConversationBlocked")), 1)) : Hn.value === "idle" ? (j(), C(_, {
1023
1023
  key: 3,
1024
1024
  ref_key: "inputEl",
1025
1025
  ref: vt,
@@ -1028,16 +1028,16 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1028
1028
  "pending-attachments": F(et),
1029
1029
  "onUpdate:pendingAttachments": n[5] ||= (e) => oe(et) ? et.value = e : null,
1030
1030
  placeholder: F(Ze),
1031
- "dismissable-notice": F(qt) && F(H).messages.length <= 1 ? F(qt) : void 0,
1032
- "page-notice": Wt.value,
1033
- status: Ht.value,
1031
+ "dismissable-notice": F(Jt) && F(H).messages.length <= 1 ? F(Jt) : void 0,
1032
+ "page-notice": Gt.value,
1033
+ status: Ut.value,
1034
1034
  "max-message-length": F(z)?.maxMessageLength,
1035
1035
  "file-upload": K.value,
1036
1036
  "attachment-limit-reached": F(tt),
1037
- "attachment-notice": Gt.value,
1038
- "voice-enabled": Bn.value,
1037
+ "attachment-notice": Kt.value,
1038
+ "voice-enabled": Vn.value,
1039
1039
  "queue-enabled": F(dt),
1040
- "answer-notices": Kt.value,
1040
+ "answer-notices": qt.value,
1041
1041
  "pointer-available": F(ht),
1042
1042
  pointing: F(gt),
1043
1043
  pointer: yt.value,
@@ -1048,11 +1048,12 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1048
1048
  onStopGeneration: F(xt),
1049
1049
  onSubmit: F(bt),
1050
1050
  onFileSelect: F(jt),
1051
- onDismissAttachmentNotice: F(Mt),
1052
- onDismissPageNotice: F(Ft),
1053
- onOpenAnswerNotice: F(zt),
1054
- onDismissAnswerNotice: F(Bt),
1055
- onVoiceStart: Kn
1051
+ onRemoveAttachment: F(Mt),
1052
+ onDismissAttachmentNotice: F(Nt),
1053
+ onDismissPageNotice: F(It),
1054
+ onOpenAnswerNotice: F(Bt),
1055
+ onDismissAnswerNotice: F(Vt),
1056
+ onVoiceStart: qn
1056
1057
  }, re({ _: 2 }, [a.modifier === "fullscreen" ? {
1057
1058
  name: "prepend",
1058
1059
  fn: L(() => [E("span", Ue, [D(h, {
@@ -1082,25 +1083,26 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1082
1083
  "onStopGeneration",
1083
1084
  "onSubmit",
1084
1085
  "onFileSelect",
1086
+ "onRemoveAttachment",
1085
1087
  "onDismissAttachmentNotice",
1086
1088
  "onDismissPageNotice",
1087
1089
  "onOpenAnswerNotice",
1088
1090
  "onDismissAnswerNotice"
1089
1091
  ])) : (j(), C(je, {
1090
1092
  key: 2,
1091
- state: Vn.value,
1092
- sample: Wn,
1093
- spectrum: Gn,
1093
+ state: Hn.value,
1094
+ sample: Gn,
1095
+ spectrum: Kn,
1094
1096
  "remaining-seconds": F(Q).remainingSeconds.value,
1095
- muted: Dn.value,
1096
- error: Hn.value,
1097
+ muted: On.value,
1098
+ error: Un.value,
1097
1099
  "raw-error": F(Q).error.value,
1098
1100
  live: F(Q).isActive.value,
1099
1101
  class: "pk-chatbot-view-chat__voice",
1100
- onToggleMute: cr,
1101
- onHangUp: qn,
1102
- onRetry: Yn,
1103
- onDismiss: Jn
1102
+ onToggleMute: lr,
1103
+ onHangUp: Jn,
1104
+ onRetry: Xn,
1105
+ onDismiss: Yn
1104
1106
  }, null, 8, [
1105
1107
  "state",
1106
1108
  "remaining-seconds",
@@ -1111,17 +1113,17 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1111
1113
  ]))
1112
1114
  ]),
1113
1115
  D(x, null, {
1114
- default: L(() => [F(En) && K.value?.enabled ? (j(), T("div", Ge, [D(r, {
1116
+ default: L(() => [F(Dn) && K.value?.enabled ? (j(), T("div", Ge, [D(r, {
1115
1117
  name: "ri:upload-cloud-2-line",
1116
1118
  class: "pk-chatbot-view-chat__drop-overlay-icon"
1117
1119
  }), E("span", null, N(F(J)("action.dropFile")), 1)])) : w("", !0)]),
1118
1120
  _: 1
1119
1121
  }),
1120
- mn.value ? (j(), C(b, {
1122
+ hn.value ? (j(), C(b, {
1121
1123
  key: 1,
1122
- to: en.value,
1123
- disabled: !$t.value
1124
- }, [E("aside", { class: A(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": $t.value }]) }, [F(Y) ? (j(), C(F(me), {
1124
+ to: tn.value,
1125
+ disabled: !en.value
1126
+ }, [E("aside", { class: A(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": en.value }]) }, [F(Y) ? (j(), C(F(me), {
1125
1127
  key: 0,
1126
1128
  mode: X.value.mode,
1127
1129
  "onUpdate:mode": n[9] ||= (e) => X.value.mode = e,
@@ -1134,21 +1136,21 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1134
1136
  kind: F(Y).kind,
1135
1137
  filename: F(Y).filename,
1136
1138
  version: F(Y).version,
1137
- versions: vn.value,
1139
+ versions: yn.value,
1138
1140
  "download-url": q(F(Y).storedFileName),
1139
- preview: F(on),
1140
- loading: F(sn),
1141
- error: F(cn),
1142
- restorable: bn.value,
1141
+ preview: F(sn),
1142
+ loading: F(cn),
1143
+ error: F(ln),
1144
+ restorable: xn.value,
1143
1145
  resize: "expand",
1144
1146
  "file-id": F(Y).fileId,
1145
1147
  "stored-file-name": F(Y).storedFileName,
1146
- "selection-actions": Sn.value,
1147
- onVersion: yn,
1148
- onRestore: xn,
1149
- onResize: n[13] ||= (e) => pn.value = !0,
1150
- onSelectionSend: Cn,
1151
- onClose: hn
1148
+ "selection-actions": Cn.value,
1149
+ onVersion: bn,
1150
+ onRestore: Sn,
1151
+ onResize: n[13] ||= (e) => mn.value = !0,
1152
+ onSelectionSend: wn,
1153
+ onClose: gn
1152
1154
  }, null, 8, [
1153
1155
  "mode",
1154
1156
  "sheet",
@@ -1167,7 +1169,7 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1167
1169
  "stored-file-name",
1168
1170
  "selection-actions"
1169
1171
  ])) : w("", !0)], 2)], 8, ["to", "disabled"])) : w("", !0),
1170
- F(Y) && !mn.value ? (j(), C(F(he), {
1172
+ F(Y) && !hn.value ? (j(), C(F(he), {
1171
1173
  key: 2,
1172
1174
  mode: X.value.mode,
1173
1175
  "onUpdate:mode": n[14] ||= (e) => X.value.mode = e,
@@ -1178,20 +1180,20 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1178
1180
  fit: X.value.fit,
1179
1181
  "onUpdate:fit": n[17] ||= (e) => X.value.fit = e,
1180
1182
  target: F(Y),
1181
- versions: vn.value,
1183
+ versions: yn.value,
1182
1184
  "download-url": q(F(Y).storedFileName),
1183
- preview: F(on),
1184
- loading: F(sn),
1185
- error: F(cn),
1186
- restorable: bn.value,
1187
- resize: rn.value ? "shrink" : void 0,
1188
- fullscreen: an.value,
1189
- "selection-actions": Sn.value,
1190
- onVersion: yn,
1191
- onRestore: xn,
1192
- onResize: n[18] ||= (e) => pn.value = !1,
1193
- onSelectionSend: Cn,
1194
- onClose: hn
1185
+ preview: F(sn),
1186
+ loading: F(cn),
1187
+ error: F(ln),
1188
+ restorable: xn.value,
1189
+ resize: an.value ? "shrink" : void 0,
1190
+ fullscreen: on.value,
1191
+ "selection-actions": Cn.value,
1192
+ onVersion: bn,
1193
+ onRestore: Sn,
1194
+ onResize: n[18] ||= (e) => mn.value = !1,
1195
+ onSelectionSend: wn,
1196
+ onClose: gn
1195
1197
  }, null, 8, [
1196
1198
  "mode",
1197
1199
  "sheet",
@@ -1214,4 +1216,4 @@ var Ve = { class: "pk-chatbot-view-chat__input-stage" }, He = {
1214
1216
  });
1215
1217
  export { Ee as a, je as i, Be as n, we as o, Pe as r, Ze as t };
1216
1218
 
1217
- //# sourceMappingURL=PkChatbotViewChat-Drp0At_n.js.map
1219
+ //# sourceMappingURL=PkChatbotViewChat-CHvtUHuO.js.map