@8wave/ai-elements 0.111.0-beta.7 → 0.111.0-beta.8

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 (125) hide show
  1. package/dist/_chunks/{PkLazyImg-ClL4nr95.js → PkLazyImg-Dbj2dDXA.js} +2 -2
  2. package/dist/_chunks/{PkLazyImg-ClL4nr95.js.map → PkLazyImg-Dbj2dDXA.js.map} +1 -1
  3. package/dist/_chunks/{PkStreamingMarkdown-DgBS4Ebc.js → PkStreamingMarkdown-CNI8aV8t.js} +617 -418
  4. package/dist/_chunks/PkStreamingMarkdown-CNI8aV8t.js.map +1 -0
  5. package/dist/_chunks/{PkToolRequestGeolocation-pVys3x9M.js → PkToolRequestGeolocation-Bzy4IYSp.js} +2 -2
  6. package/dist/_chunks/{PkToolRequestGeolocation-pVys3x9M.js.map → PkToolRequestGeolocation-Bzy4IYSp.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestOAuthConnection-BGChb_eC.js → PkToolRequestOAuthConnection-CWEKoD71.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestOAuthConnection-BGChb_eC.js.map → PkToolRequestOAuthConnection-CWEKoD71.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowArtifact-CkTBIdQd.js → PkToolShowArtifact-CGbHDEie.js} +4 -4
  10. package/dist/_chunks/{PkToolShowArtifact-CkTBIdQd.js.map → PkToolShowArtifact-CGbHDEie.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowCalendarEvent-C41JgOUA.js → PkToolShowCalendarEvent-DIFX_rUz.js} +3 -3
  12. package/dist/_chunks/{PkToolShowCalendarEvent-C41JgOUA.js.map → PkToolShowCalendarEvent-DIFX_rUz.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowComparison-DbbUD9pg.js → PkToolShowComparison-B38hHWq2.js} +3 -3
  14. package/dist/_chunks/{PkToolShowComparison-DbbUD9pg.js.map → PkToolShowComparison-B38hHWq2.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowContactForm-Du7jX7K5.js → PkToolShowContactForm-DUw_bZiJ.js} +4 -4
  16. package/dist/_chunks/{PkToolShowContactForm-Du7jX7K5.js.map → PkToolShowContactForm-DUw_bZiJ.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowDiagram-BdmG9gm8.js → PkToolShowDiagram-Dx1Ba0PG.js} +3 -3
  18. package/dist/_chunks/{PkToolShowDiagram-BdmG9gm8.js.map → PkToolShowDiagram-Dx1Ba0PG.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowEmail-Dn3JHYIR.js → PkToolShowEmail-DnFFgzom.js} +3 -3
  20. package/dist/_chunks/{PkToolShowEmail-Dn3JHYIR.js.map → PkToolShowEmail-DnFFgzom.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowForm-Du2nk7pq.js → PkToolShowForm-CKQQltJ6.js} +5 -6
  22. package/dist/_chunks/{PkToolShowForm-Du2nk7pq.js.map → PkToolShowForm-CKQQltJ6.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowImageGallery-C1lzlO0y.js → PkToolShowImageGallery-D99N_Plf.js} +2 -2
  24. package/dist/_chunks/{PkToolShowImageGallery-C1lzlO0y.js.map → PkToolShowImageGallery-D99N_Plf.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowLocation-CKhPxKFA.js → PkToolShowLocation-AfnrtFVJ.js} +3 -3
  26. package/dist/_chunks/{PkToolShowLocation-CKhPxKFA.js.map → PkToolShowLocation-AfnrtFVJ.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowMessage-U9CCU7eG.js → PkToolShowMessage-DUo2c-im.js} +3 -3
  28. package/dist/_chunks/{PkToolShowMessage-U9CCU7eG.js.map → PkToolShowMessage-DUo2c-im.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowProductList-UeiRMLHu.js → PkToolShowProductList-BN6Qk1_y.js} +3 -3
  30. package/dist/_chunks/{PkToolShowProductList-UeiRMLHu.js.map → PkToolShowProductList-BN6Qk1_y.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowQrCode-CypLrfh5.js → PkToolShowQrCode-BLqeBecX.js} +3 -3
  32. package/dist/_chunks/{PkToolShowQrCode-CypLrfh5.js.map → PkToolShowQrCode-BLqeBecX.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSources-CsHLUF4L.js → PkToolShowSources-DpZb5FUP.js} +3 -3
  34. package/dist/_chunks/{PkToolShowSources-CsHLUF4L.js.map → PkToolShowSources-DpZb5FUP.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowSuggestedReply-D7g_qymH.js → PkToolShowSuggestedReply-C10nNgBs.js} +2 -2
  36. package/dist/_chunks/{PkToolShowSuggestedReply-D7g_qymH.js.map → PkToolShowSuggestedReply-C10nNgBs.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowVideo-BgKxdBcC.js → PkToolShowVideo-S9b4QHUj.js} +2 -2
  38. package/dist/_chunks/{PkToolShowVideo-BgKxdBcC.js.map → PkToolShowVideo-S9b4QHUj.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowWeather-LPd3tC77.js → PkToolShowWeather-CqhG430w.js} +2 -2
  40. package/dist/_chunks/{PkToolShowWeather-LPd3tC77.js.map → PkToolShowWeather-CqhG430w.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowWebPages-ep_erFF0.js → PkToolShowWebPages-txAZi_iG.js} +3 -3
  42. package/dist/_chunks/{PkToolShowWebPages-ep_erFF0.js.map → PkToolShowWebPages-txAZi_iG.js.map} +1 -1
  43. package/dist/_chunks/{VvCheckboxGroup.es-Bdu2gFLN.js → VvCheckboxGroup.es-CTrF3pue.js} +2 -2
  44. package/dist/_chunks/{VvCheckboxGroup.es-Bdu2gFLN.js.map → VvCheckboxGroup.es-CTrF3pue.js.map} +1 -1
  45. package/dist/_chunks/{VvCombobox.es-C0wpJIr_.js → VvCombobox.es-BWiXmQ_S.js} +10 -10
  46. package/dist/_chunks/{VvCombobox.es-C0wpJIr_.js.map → VvCombobox.es-BWiXmQ_S.js.map} +1 -1
  47. package/dist/_chunks/{VvInputText.es-Zgtw2YNw.js → VvInputText.es-Bo9I6g8H.js} +6 -6
  48. package/dist/_chunks/{VvInputText.es-Zgtw2YNw.js.map → VvInputText.es-Bo9I6g8H.js.map} +1 -1
  49. package/dist/_chunks/{VvRadioGroup.es-DZLL19SC.js → VvRadioGroup.es-9ooHCuik.js} +2 -2
  50. package/dist/_chunks/{VvRadioGroup.es-DZLL19SC.js.map → VvRadioGroup.es-9ooHCuik.js.map} +1 -1
  51. package/dist/_chunks/{VvSelect.es-ovnZRHG5.js → VvSelect.es-DG0VuWtP.js} +2 -2
  52. package/dist/_chunks/{VvSelect.es-ovnZRHG5.js.map → VvSelect.es-DG0VuWtP.js.map} +1 -1
  53. package/dist/_chunks/{VvTextarea.es-DbP5Lt2T.js → VvTextarea.es-Dg3pxdZy.js} +6 -6
  54. package/dist/_chunks/{VvTextarea.es-DbP5Lt2T.js.map → VvTextarea.es-Dg3pxdZy.js.map} +1 -1
  55. package/dist/_chunks/{dist-n5iFNYf-.js → dist-QdjZA6MJ.js} +143 -133
  56. package/dist/_chunks/{dist-n5iFNYf-.js.map → dist-QdjZA6MJ.js.map} +1 -1
  57. package/dist/_chunks/{index.es-dtdl3VFG.js → index.es-0YpCa4c5.js} +6 -6
  58. package/dist/_chunks/{index.es-dtdl3VFG.js.map → index.es-0YpCa4c5.js.map} +1 -1
  59. package/dist/_chunks/{index.es-BJnUA_36.js → index.es-CHkJ2TMJ.js} +10 -10
  60. package/dist/_chunks/{index.es-BJnUA_36.js.map → index.es-CHkJ2TMJ.js.map} +1 -1
  61. package/dist/ai-elements.es.js +1956 -1944
  62. package/dist/ai-elements.es.js.map +1 -1
  63. package/dist-vue/PkChatbot.js +1 -1
  64. package/dist-vue/PkChatbotEmptyState.js +1 -1
  65. package/dist-vue/PkChatbotInput.js +1 -1
  66. package/dist-vue/PkChatbotMessages.js +1 -1
  67. package/dist-vue/PkChatbotStepPayload.js +1 -1
  68. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  69. package/dist-vue/PkChatbotSteps.js +1 -1
  70. package/dist-vue/PkChatbotViewChat.js +1 -1
  71. package/dist-vue/_chunks/{PkChatbot-Di7R2CWN.js → PkChatbot-DE1bKmDi.js} +57 -57
  72. package/dist-vue/_chunks/{PkChatbot-Di7R2CWN.js.map → PkChatbot-DE1bKmDi.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkChatbotEmptyState-C_ITdvH7.js → PkChatbotEmptyState-BtzBYOHJ.js} +2 -2
  74. package/dist-vue/_chunks/{PkChatbotEmptyState-C_ITdvH7.js.map → PkChatbotEmptyState-BtzBYOHJ.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkChatbotInput-pEl3D2O-.js → PkChatbotInput-MSpF6SB6.js} +2 -2
  76. package/dist-vue/_chunks/{PkChatbotInput-pEl3D2O-.js.map → PkChatbotInput-MSpF6SB6.js.map} +1 -1
  77. package/dist-vue/_chunks/PkChatbotMessages-B6ONEJnZ.js +776 -0
  78. package/dist-vue/_chunks/PkChatbotMessages-B6ONEJnZ.js.map +1 -0
  79. package/dist-vue/_chunks/{PkChatbotStepPayload-BH6piqOi.js → PkChatbotStepPayload-XW4gT9AZ.js} +2 -2
  80. package/dist-vue/_chunks/{PkChatbotStepPayload-BH6piqOi.js.map → PkChatbotStepPayload-XW4gT9AZ.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkChatbotStepToolDetail-BJ7xUvgi.js → PkChatbotStepToolDetail-C4-K6Glw.js} +3 -3
  82. package/dist-vue/_chunks/{PkChatbotStepToolDetail-BJ7xUvgi.js.map → PkChatbotStepToolDetail-C4-K6Glw.js.map} +1 -1
  83. package/dist-vue/_chunks/PkChatbotSteps-CrqjWpv0.js +190 -0
  84. package/dist-vue/_chunks/PkChatbotSteps-CrqjWpv0.js.map +1 -0
  85. package/dist-vue/_chunks/{PkChatbotViewChat-DT-rAU_r.js → PkChatbotViewChat-BMQtx1Gi.js} +9 -9
  86. package/dist-vue/_chunks/{PkChatbotViewChat-DT-rAU_r.js.map → PkChatbotViewChat-BMQtx1Gi.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkStreamingMarkdown-DIaZEedG.js → PkStreamingMarkdown-D0IOaETI.js} +362 -359
  88. package/dist-vue/_chunks/PkStreamingMarkdown-D0IOaETI.js.map +1 -0
  89. package/dist-vue/_chunks/{PkToolShowArtifact-BCCUucVQ.js → PkToolShowArtifact-DHdJuzDi.js} +2 -2
  90. package/dist-vue/_chunks/{PkToolShowArtifact-BCCUucVQ.js.map → PkToolShowArtifact-DHdJuzDi.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkToolShowContactForm-BXGxWSc2.js → PkToolShowContactForm-BB2X4UdQ.js} +2 -2
  92. package/dist-vue/_chunks/{PkToolShowContactForm-BXGxWSc2.js.map → PkToolShowContactForm-BB2X4UdQ.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolShowDiagram-CZgrWvBr.js → PkToolShowDiagram-BH6ihikd.js} +2 -2
  94. package/dist-vue/_chunks/{PkToolShowDiagram-CZgrWvBr.js.map → PkToolShowDiagram-BH6ihikd.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkToolShowEmail-DpC517Vn.js → PkToolShowEmail-DF__nKpR.js} +2 -2
  96. package/dist-vue/_chunks/{PkToolShowEmail-DpC517Vn.js.map → PkToolShowEmail-DF__nKpR.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkToolShowForm-CIZpfAGK.js → PkToolShowForm-DUKIyj9V.js} +5 -5
  98. package/dist-vue/_chunks/{PkToolShowForm-CIZpfAGK.js.map → PkToolShowForm-DUKIyj9V.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkToolShowMessage-B7flxVCU.js → PkToolShowMessage-Ck6VP-gw.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolShowMessage-B7flxVCU.js.map → PkToolShowMessage-Ck6VP-gw.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkToolShowProductList-B6fRtIpx.js → PkToolShowProductList-zfM8cx-l.js} +2 -2
  102. package/dist-vue/_chunks/{PkToolShowProductList-B6fRtIpx.js.map → PkToolShowProductList-zfM8cx-l.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkToolShowSources-DDZokZow.js → PkToolShowSources-Dlaz2Y77.js} +3 -3
  104. package/dist-vue/_chunks/{PkToolShowSources-DDZokZow.js.map → PkToolShowSources-Dlaz2Y77.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolShowWebPages-DY48ee6V.js → PkToolShowWebPages-CosBYLrE.js} +2 -2
  106. package/dist-vue/_chunks/{PkToolShowWebPages-DY48ee6V.js.map → PkToolShowWebPages-CosBYLrE.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkUrl-DSGxrEM7.js → PkUrl-B5CNTQj9.js} +2 -2
  108. package/dist-vue/_chunks/{PkUrl-DSGxrEM7.js.map → PkUrl-B5CNTQj9.js.map} +1 -1
  109. package/dist-vue/_chunks/{utils-Coqik0XI.js → utils-C1666_6C.js} +58 -43
  110. package/dist-vue/_chunks/utils-C1666_6C.js.map +1 -0
  111. package/dist-vue/composables.js +1 -1
  112. package/dist-vue/index.js +38 -38
  113. package/dist-vue/packages/components/src/chat/PkStreamingMarkdown.d.ts +6 -0
  114. package/dist-vue/packages/components/src/chat/PkStreamingMarkdownAutoscroll.d.ts +1 -0
  115. package/dist-vue/packages/components/src/chat/utils.d.ts +16 -0
  116. package/package.json +1 -1
  117. package/dist/_chunks/PkStreamingMarkdown-DgBS4Ebc.js.map +0 -1
  118. package/dist/_chunks/utils-YJ0ZOLDG.js +0 -185
  119. package/dist/_chunks/utils-YJ0ZOLDG.js.map +0 -1
  120. package/dist-vue/_chunks/PkChatbotMessages-CGALOKwe.js +0 -771
  121. package/dist-vue/_chunks/PkChatbotMessages-CGALOKwe.js.map +0 -1
  122. package/dist-vue/_chunks/PkChatbotSteps-BhFupvbz.js +0 -180
  123. package/dist-vue/_chunks/PkChatbotSteps-BhFupvbz.js.map +0 -1
  124. package/dist-vue/_chunks/PkStreamingMarkdown-DIaZEedG.js.map +0 -1
  125. package/dist-vue/_chunks/utils-Coqik0XI.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbot-Di7R2CWN.js";
1
+ import { t as e } from "./_chunks/PkChatbot-DE1bKmDi.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotEmptyState-C_ITdvH7.js";
1
+ import { t as e } from "./_chunks/PkChatbotEmptyState-BtzBYOHJ.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotInput-pEl3D2O-.js";
1
+ import { t as e } from "./_chunks/PkChatbotInput-MSpF6SB6.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotMessages-CGALOKwe.js";
1
+ import { t as e } from "./_chunks/PkChatbotMessages-B6ONEJnZ.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotStepPayload-BH6piqOi.js";
1
+ import { t as e } from "./_chunks/PkChatbotStepPayload-XW4gT9AZ.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotStepToolDetail-BJ7xUvgi.js";
1
+ import { t as e } from "./_chunks/PkChatbotStepToolDetail-C4-K6Glw.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotSteps-BhFupvbz.js";
1
+ import { t as e } from "./_chunks/PkChatbotSteps-CrqjWpv0.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotViewChat-DT-rAU_r.js";
1
+ import { t as e } from "./_chunks/PkChatbotViewChat-BMQtx1Gi.js";
2
2
  export { e as default };
@@ -1,11 +1,11 @@
1
- import { n as e, t } from "./PkStreamingMarkdown-DIaZEedG.js";
1
+ import { n as e, t } from "./PkStreamingMarkdown-D0IOaETI.js";
2
2
  import { n } from "./useChatbotStore-BzfqjiYz.js";
3
3
  import { t as ee } from "./PkChatbotViewConversations-3LaZPFyw.js";
4
- import { t as te } from "./PkChatbotViewChat-DT-rAU_r.js";
4
+ import { t as te } from "./PkChatbotViewChat-BMQtx1Gi.js";
5
5
  import { t as ne } from "./PkChatbotViewFiles-CTqnbsCj.js";
6
6
  import { t as r } from "./useLocalizedString-PfaKjIQY.js";
7
+ import { x as i } from "./utils-C1666_6C.js";
7
8
  import { t as re } from "./PkAvatar-paEJByEA.js";
8
- import { y as i } from "./utils-Coqik0XI.js";
9
9
  import { t as a } from "./chatbotProfileContext-CgnFhNPn.js";
10
10
  import { t as ie } from "./PkChatbotViewProfile-B-Mp1jGQ.js";
11
11
  import { VvAlert as ae, VvButton as oe, VvButtonGroup as se, VvDropdown as ce, VvDropdownAction as le, VvIcon as ue } from "@volverjs/ui-vue/components";
@@ -61,9 +61,9 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
61
61
  setup(h, { expose: v, emit: k }) {
62
62
  let A = me(), { t: j } = _e({ useScope: "global" }), M = h, N = k, P = pe(h, "chatId"), F = n(M.agentId);
63
63
  e((e) => F.apiClient.resolveShortUrls(e));
64
- let { messages: I, chat: ke, localChatId: L, activeView: R, chatError: Ae, isDark: je } = ye(F), Me = fe(F, "agentId"), { startNewChat: z, stopGeneration: B, regenerate: Ne, navigate: V, sendMessage: Pe } = F, H = _(a, void 0), U = s(() => H?.canManageProfile.value ?? !1), W = s(() => !U.value && (H?.canSignIn?.value ?? !1) && A["view-auth"] !== void 0);
65
- D(U, (e) => {
66
- e && R.value === "auth" && V("chat");
64
+ let { messages: I, chat: ke, localChatId: L, activeView: R, chatError: Ae, isDark: je } = ye(F), z = fe(F, "agentId"), { startNewChat: B, stopGeneration: V, regenerate: Me, navigate: H, sendMessage: Ne } = F, U = _(a, void 0), W = s(() => U?.canManageProfile.value ?? !1), G = s(() => !W.value && (U?.canSignIn?.value ?? !1) && A["view-auth"] !== void 0);
65
+ D(W, (e) => {
66
+ e && R.value === "auth" && H("chat");
67
67
  }), ge(() => {
68
68
  F.baseUrl = M.baseUrl, F.basePath = M.basePath, F.name = M.name, F.agentType = M.agentType, F.userId = M.userId, F.agentInterface = M.agentInterface, F.agentModel = M.agentModel, F.agentTools = M.agentTools, F.headers = M.headers, F.revisedAnswers = M.revisedAnswers, F.model = M.model, F.actionsInput = M.actions, F.agentFileUpload = M.agentFileUpload, F.agentVoice = M.voice, F.fallbackModels = M.fallbackModels, F.gatewayOptions = M.gatewayOptions, F.externalContext = M.externalContext, F.systemTheme = M.systemTheme, F.hideWelcomeMessage = M.modifier === "fullscreen";
69
69
  }), D(() => P.value, (e) => {
@@ -76,16 +76,16 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
76
76
  N("error", t);
77
77
  } catch {}
78
78
  });
79
- let G = s(() => M.modifier === "fullscreen"), K = s(() => M.modifier === "panel"), q = he("chatbotEl"), { width: J } = ve(q), Fe = s(() => J.value > 0 && J.value < 576), Ie = s(() => J.value > 0 && J.value < 640), Le = s(() => J.value >= 848), Y = s(() => M.agentType === "reasoning"), X = s(() => M.agentInterface?.useColorsForAgentHeader), Re = s(() => !K.value || U.value || W.value || !!M.userFilesEnabled && !!L.value), ze = s(() => ["theme", `theme--${je.value ? "dark" : "light"}`]), Z = s(() => M.agentInterface?.mainColor), Q = s(() => i(M.agentInterface?.textColor, Z.value)), Be = r(() => M.agentInterface?.footerMessage), Ve = s(() => R.value === "conversations" ? j("label.conversations") : R.value === "profile" ? j("label.profile") : R.value === "auth" ? j("label.authentication") : R.value === "files" ? j("userFiles.chatFilesTitle") : M.name), $ = s(() => ke.value.status === "ready"), He = s(() => I.value?.[I.value.length - 1]);
79
+ let Pe = s(() => M.modifier === "fullscreen"), K = s(() => M.modifier === "panel"), Fe = he("chatbotEl"), { width: q } = ve(Fe), Ie = s(() => q.value > 0 && q.value < 576), Le = s(() => q.value > 0 && q.value < 640), Re = s(() => q.value >= 848), J = s(() => M.agentType === "reasoning"), Y = s(() => M.agentInterface?.useColorsForAgentHeader), ze = s(() => !K.value || W.value || G.value || !!M.userFilesEnabled && !!L.value), Be = s(() => ["theme", `theme--${je.value ? "dark" : "light"}`]), X = s(() => M.agentInterface?.mainColor), Z = s(() => i(M.agentInterface?.textColor, X.value)), Ve = r(() => M.agentInterface?.footerMessage), Q = s(() => R.value === "conversations" ? j("label.conversations") : R.value === "profile" ? j("label.profile") : R.value === "auth" ? j("label.authentication") : R.value === "files" ? j("userFiles.chatFilesTitle") : M.name), $ = s(() => ke.value.status === "ready"), He = s(() => I.value?.[I.value.length - 1]);
80
80
  return v({
81
- startNewChat: z,
82
- regenerate: Ne,
83
- stopGeneration: B,
84
- sendMessage: Pe
85
- }), D([Me, L], async ([e, t]) => {
81
+ startNewChat: B,
82
+ regenerate: Me,
83
+ stopGeneration: V,
84
+ sendMessage: Ne
85
+ }), D([z, L], async ([e, t]) => {
86
86
  await F.initialize(e, t);
87
87
  }, { immediate: !0 }), D(R, (e) => {
88
- e === "conversations" ? F.loadConversations(Me.value) : e === "files" && F.loadChatFiles();
88
+ e === "conversations" ? F.loadConversations(z.value) : e === "files" && F.loadChatFiles();
89
89
  }), D(He, (e) => {
90
90
  e && N("message-update", e);
91
91
  }, {
@@ -95,19 +95,19 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
95
95
  let r = oe, i = ue, a = le, s = ce, _ = se, v = ae;
96
96
  return S(), u("div", {
97
97
  ref_key: "chatbotEl",
98
- ref: q,
99
- class: de(["pk-chatbot", [ze.value, {
100
- "pk-chatbot--fullscreen": G.value,
98
+ ref: Fe,
99
+ class: de(["pk-chatbot", [Be.value, {
100
+ "pk-chatbot--fullscreen": Pe.value,
101
101
  "pk-chatbot--panel": K.value,
102
- "pk-chatbot--phone": Fe.value,
103
- "pk-chatbot--tight": Ie.value,
104
- "pk-chatbot--wide": Le.value
102
+ "pk-chatbot--phone": Ie.value,
103
+ "pk-chatbot--tight": Le.value,
104
+ "pk-chatbot--wide": Re.value
105
105
  }]])
106
106
  }, [
107
- G.value ? l("", !0) : (S(), u("div", {
107
+ Pe.value ? l("", !0) : (S(), u("div", {
108
108
  key: 0,
109
109
  class: "pk-chatbot__header",
110
- style: x(X.value ? { backgroundColor: Z.value } : void 0)
110
+ style: x(Y.value ? { backgroundColor: X.value } : void 0)
111
111
  }, [d("div", be, [E(R) === "chat" ? K.value ? l("", !0) : (S(), c(re, {
112
112
  key: 1,
113
113
  modifiers: "surface ring shrink-0",
@@ -115,52 +115,52 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
115
115
  name: h.name,
116
116
  "img-src": h.agentInterface?.logo
117
117
  }, null, 8, ["name", "img-src"])) : (S(), u(o, { key: 0 }, [m(r, y({
118
- modifiers: X.value ? `action-quiet-${Q.value}` : "action-quiet",
118
+ modifiers: Y.value ? `action-quiet-${Z.value}` : "action-quiet",
119
119
  icon: "ri:arrow-left-s-line",
120
120
  title: E(j)("action.goBack")
121
- }, { onClick: n[0] ||= (e) => E(V)("chat") }), null, 16), m(i, {
121
+ }, { onClick: n[0] ||= (e) => E(H)("chat") }), null, 16), m(i, {
122
122
  name: E(R) === "conversations" ? "ri:history-line" : E(R) === "files" ? "ri:attachment-2" : "ri:user-line",
123
123
  class: "pk-chatbot__nav-icon",
124
- style: x(X.value ? { color: Q.value } : void 0)
124
+ style: x(Y.value ? { color: Z.value } : void 0)
125
125
  }, null, 8, ["name", "style"])], 64)), d("strong", {
126
126
  class: "pk-chatbot__title",
127
- title: Ve.value,
128
- style: x(X.value ? { color: Q.value } : void 0)
129
- }, T(Ve.value), 13, xe)]), m(_, {
127
+ title: Q.value,
128
+ style: x(Y.value ? { color: Z.value } : void 0)
129
+ }, T(Q.value), 13, xe)]), m(_, {
130
130
  class: "pk-chatbot__header-end",
131
131
  modifiers: "compact"
132
132
  }, {
133
133
  default: O(() => [
134
134
  w(e.$slots, "header-actions", b(g({
135
- mainColor: Z.value,
136
- useColorsForAgentHeader: X.value,
137
- contrastColor: Q.value,
138
- startNewChat: E(z),
139
- stopGeneration: E(B)
135
+ mainColor: X.value,
136
+ useColorsForAgentHeader: Y.value,
137
+ contrastColor: Z.value,
138
+ startNewChat: E(B),
139
+ stopGeneration: E(V)
140
140
  }))),
141
141
  K.value ? (S(), u(o, { key: 0 }, [m(r, {
142
- modifiers: X.value ? `action-quiet-${Q.value}` : "action-quiet",
142
+ modifiers: Y.value ? `action-quiet-${Z.value}` : "action-quiet",
143
143
  icon: "ri:edit-box-line",
144
144
  disabled: !$.value,
145
145
  title: E(j)("action.startNewChat"),
146
- onClick: n[1] ||= (e) => E(z)()
146
+ onClick: n[1] ||= (e) => E(B)()
147
147
  }, null, 8, [
148
148
  "modifiers",
149
149
  "disabled",
150
150
  "title"
151
- ]), Y.value ? l("", !0) : (S(), c(r, {
151
+ ]), J.value ? l("", !0) : (S(), c(r, {
152
152
  key: 0,
153
- modifiers: X.value ? `action-quiet-${Q.value}` : "action-quiet",
153
+ modifiers: Y.value ? `action-quiet-${Z.value}` : "action-quiet",
154
154
  icon: "ri:history-line",
155
155
  disabled: !$.value,
156
156
  title: E(j)("action.viewRecentChats"),
157
- onClick: n[2] ||= (e) => E(V)("conversations")
157
+ onClick: n[2] ||= (e) => E(H)("conversations")
158
158
  }, null, 8, [
159
159
  "modifiers",
160
160
  "disabled",
161
161
  "title"
162
162
  ]))], 64)) : l("", !0),
163
- Re.value ? (S(), c(s, b(y({ key: 1 }, {
163
+ ze.value ? (S(), c(s, b(y({ key: 1 }, {
164
164
  placement: "bottom-end",
165
165
  modifiers: "menu",
166
166
  flip: !0,
@@ -170,41 +170,41 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
170
170
  items: O(() => [
171
171
  K.value ? l("", !0) : (S(), c(a, {
172
172
  key: 0,
173
- onClick: n[3] ||= (e) => E(z)()
173
+ onClick: n[3] ||= (e) => E(B)()
174
174
  }, {
175
175
  default: O(() => [m(i, { name: "ri:edit-box-line" }), p(" " + T(E(j)("action.startNewChat")), 1)]),
176
176
  _: 1
177
177
  })),
178
- !Y.value && !K.value ? (S(), c(a, {
178
+ !J.value && !K.value ? (S(), c(a, {
179
179
  key: 1,
180
- onClick: n[4] ||= (e) => E(V)("conversations")
180
+ onClick: n[4] ||= (e) => E(H)("conversations")
181
181
  }, {
182
182
  default: O(() => [m(i, { name: "ri:history-line" }), p(" " + T(E(j)("action.viewRecentChats")), 1)]),
183
183
  _: 1
184
184
  })) : l("", !0),
185
- (U.value || h.userFilesEnabled) && E(L) ? (S(), c(a, {
185
+ (W.value || h.userFilesEnabled) && E(L) ? (S(), c(a, {
186
186
  key: 2,
187
- onClick: n[5] ||= (e) => E(V)("files")
187
+ onClick: n[5] ||= (e) => E(H)("files")
188
188
  }, {
189
189
  default: O(() => [m(i, { name: "ri:attachment-2" }), p(" " + T(E(j)("userFiles.chatFilesTitle")), 1)]),
190
190
  _: 1
191
191
  })) : l("", !0),
192
- U.value ? (S(), c(a, {
192
+ W.value ? (S(), c(a, {
193
193
  key: 3,
194
- onClick: n[6] ||= (e) => E(V)("profile")
194
+ onClick: n[6] ||= (e) => E(H)("profile")
195
195
  }, {
196
196
  default: O(() => [m(i, { name: "ri:user-line" }), p(" " + T(E(j)("label.profile")), 1)]),
197
197
  _: 1
198
- })) : W.value ? (S(), c(a, {
198
+ })) : G.value ? (S(), c(a, {
199
199
  key: 4,
200
- onClick: n[7] ||= (e) => E(V)("auth")
200
+ onClick: n[7] ||= (e) => E(H)("auth")
201
201
  }, {
202
202
  default: O(() => [m(i, { name: "ri:account-circle-line" }), p(" " + T(E(j)("action.signIn")), 1)]),
203
203
  _: 1
204
204
  })) : l("", !0)
205
205
  ]),
206
206
  default: O(() => [m(r, b(g({
207
- modifiers: X.value ? `action-quiet-${Q.value}` : "action-quiet",
207
+ modifiers: Y.value ? `action-quiet-${Z.value}` : "action-quiet",
208
208
  icon: "ri:more-2-fill",
209
209
  disabled: !$.value,
210
210
  title: E(j)("action.moreActions")
@@ -212,16 +212,16 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
212
212
  _: 1
213
213
  }, 16)) : l("", !0),
214
214
  w(e.$slots, "actions", b(g({
215
- mainColor: Z.value,
216
- useColorsForAgentHeader: X.value,
217
- contrastColor: Q.value,
218
- startNewChat: E(z),
219
- stopGeneration: E(B)
215
+ mainColor: X.value,
216
+ useColorsForAgentHeader: Y.value,
217
+ contrastColor: Z.value,
218
+ startNewChat: E(B),
219
+ stopGeneration: E(V)
220
220
  })))
221
221
  ]),
222
222
  _: 3
223
223
  })], 4)),
224
- Y.value ? (S(), u("div", Se, [d("div", Ce, [m(v, { modifiers: "callout" }, {
224
+ J.value ? (S(), u("div", Se, [d("div", Ce, [m(v, { modifiers: "callout" }, {
225
225
  default: O(() => [d("div", we, [m(i, {
226
226
  name: "ri:alert-line",
227
227
  class: "pk-chatbot__warning-icon"
@@ -258,8 +258,8 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
258
258
  name: t,
259
259
  fn: O((n) => [w(e.$slots, t, b(g(n)))])
260
260
  }))]), 1032, ["agent-id"])),
261
- E(Be) ? (S(), u("div", Oe, [m(t, {
262
- markdown: E(Be),
261
+ E(Ve) ? (S(), u("div", Oe, [m(t, {
262
+ markdown: E(Ve),
263
263
  class: "wysiwyg"
264
264
  }, null, 8, ["markdown"])])) : l("", !0)
265
265
  ], 2);
@@ -269,4 +269,4 @@ var be = { class: "pk-chatbot__header-start" }, xe = ["title"], Se = { key: 1 },
269
269
  //#endregion
270
270
  export { k as t };
271
271
 
272
- //# sourceMappingURL=PkChatbot-Di7R2CWN.js.map
272
+ //# sourceMappingURL=PkChatbot-DE1bKmDi.js.map