@8wave/ai-elements 0.114.0-beta.15 → 0.114.0-beta.25

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 (116) hide show
  1. package/dist/_chunks/{Agent-D3ODaN3E.js → Agent-DK76k05_.js} +2 -2
  2. package/dist/_chunks/{Agent-D3ODaN3E.js.map → Agent-DK76k05_.js.map} +1 -1
  3. package/dist/_chunks/{PkStreamingMarkdown-CYOm47PX.js → PkStreamingMarkdown-ZD0SROu1.js} +228 -219
  4. package/dist/_chunks/{PkStreamingMarkdown-CYOm47PX.js.map → PkStreamingMarkdown-ZD0SROu1.js.map} +1 -1
  5. package/dist/_chunks/{PkToolRequestGeolocation-BY7nXImb.js → PkToolRequestGeolocation-OF1PWhMw.js} +2 -2
  6. package/{dist-vue/_chunks/PkToolRequestGeolocation-9vfYNaQo.js.map → dist/_chunks/PkToolRequestGeolocation-OF1PWhMw.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestOAuthConnection-DFOTALFt.js → PkToolRequestOAuthConnection-ChGMAKV7.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestOAuthConnection-DFOTALFt.js.map → PkToolRequestOAuthConnection-ChGMAKV7.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowArtifact-DzHRWoru.js → PkToolShowArtifact-LEfO5zfg.js} +2 -2
  10. package/dist/_chunks/{PkToolShowArtifact-DzHRWoru.js.map → PkToolShowArtifact-LEfO5zfg.js.map} +1 -1
  11. package/dist/_chunks/PkToolShowComparison-8d6fAhRp.js +72 -0
  12. package/dist/_chunks/PkToolShowComparison-8d6fAhRp.js.map +1 -0
  13. package/dist/_chunks/{PkToolShowContactForm-1J6_1AA2.js → PkToolShowContactForm-BO3JQfts.js} +2 -2
  14. package/dist/_chunks/{PkToolShowContactForm-1J6_1AA2.js.map → PkToolShowContactForm-BO3JQfts.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowForm-DmQYj3v1.js → PkToolShowForm-KW8MOL-j.js} +3 -3
  16. package/dist/_chunks/{PkToolShowForm-DmQYj3v1.js.map → PkToolShowForm-KW8MOL-j.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowSources-BO8V5rlS.js → PkToolShowSources-Sc1W6WHe.js} +3 -3
  18. package/dist/_chunks/{PkToolShowSources-BO8V5rlS.js.map → PkToolShowSources-Sc1W6WHe.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowSuggestedReply-CTWVG1Zk.js → PkToolShowSuggestedReply-Dl4x_nEJ.js} +2 -2
  20. package/dist/_chunks/{PkToolShowSuggestedReply-CTWVG1Zk.js.map → PkToolShowSuggestedReply-Dl4x_nEJ.js.map} +1 -1
  21. package/dist/_chunks/{markdown-JpLFzufn.js → markdown-BrvkrEUr.js} +12 -12
  22. package/dist/_chunks/{markdown-JpLFzufn.js.map → markdown-BrvkrEUr.js.map} +1 -1
  23. package/dist/ai-elements.es.js +1792 -1983
  24. package/dist/ai-elements.es.js.map +1 -1
  25. package/dist-vue/PkChatbot.js +1 -1
  26. package/dist-vue/PkChatbotEmptyState.js +1 -1
  27. package/dist-vue/PkChatbotInput.js +1 -1
  28. package/dist-vue/PkChatbotMessages.js +1 -1
  29. package/dist-vue/PkChatbotStepPayload.js +1 -1
  30. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  31. package/dist-vue/PkChatbotSteps.js +1 -1
  32. package/dist-vue/PkChatbotViewChat.js +1 -1
  33. package/dist-vue/PkChatbotViewConversations.js +1 -1
  34. package/dist-vue/PkChatbotViewFiles.js +1 -1
  35. package/dist-vue/PkChatbotViewProfile.js +1 -1
  36. package/dist-vue/_chunks/{Agent-BNlmK-uJ.js → Agent-tbKw8Mdt.js} +2 -2
  37. package/dist-vue/_chunks/{Agent-BNlmK-uJ.js.map → Agent-tbKw8Mdt.js.map} +1 -1
  38. package/dist-vue/_chunks/{Document-2X01-F4Z.js → Document-p2Y_4gk8.js} +9 -9
  39. package/dist-vue/_chunks/{Document-2X01-F4Z.js.map → Document-p2Y_4gk8.js.map} +1 -1
  40. package/dist-vue/_chunks/{PkChatbot-DZP40EZP.js → PkChatbot-Dn_6yrFw.js} +8 -8
  41. package/dist-vue/_chunks/{PkChatbot-DZP40EZP.js.map → PkChatbot-Dn_6yrFw.js.map} +1 -1
  42. package/dist-vue/_chunks/{PkChatbotEmptyState-DycCrfwz.js → PkChatbotEmptyState-9mWiPd4B.js} +2 -2
  43. package/dist-vue/_chunks/{PkChatbotEmptyState-DycCrfwz.js.map → PkChatbotEmptyState-9mWiPd4B.js.map} +1 -1
  44. package/dist-vue/_chunks/{PkChatbotInput-BCuqLdkT.js → PkChatbotInput-BzaCyeFp.js} +2 -2
  45. package/dist-vue/_chunks/{PkChatbotInput-BCuqLdkT.js.map → PkChatbotInput-BzaCyeFp.js.map} +1 -1
  46. package/dist-vue/_chunks/PkChatbotMessages-Yaf_5xJV.js +778 -0
  47. package/dist-vue/_chunks/PkChatbotMessages-Yaf_5xJV.js.map +1 -0
  48. package/dist-vue/_chunks/{PkChatbotStepPayload-CI98RiNv.js → PkChatbotStepPayload-C36nXLW7.js} +2 -2
  49. package/dist-vue/_chunks/{PkChatbotStepPayload-CI98RiNv.js.map → PkChatbotStepPayload-C36nXLW7.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B8zXJOdI.js → PkChatbotStepToolDetail-CBX-AQXv.js} +3 -3
  51. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B8zXJOdI.js.map → PkChatbotStepToolDetail-CBX-AQXv.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkChatbotSteps-CL27pMFS.js → PkChatbotSteps-356rnZG5.js} +7 -6
  53. package/dist-vue/_chunks/PkChatbotSteps-356rnZG5.js.map +1 -0
  54. package/dist-vue/_chunks/{PkChatbotViewChat-BZVcDXzL.js → PkChatbotViewChat-DFYw4nzP.js} +7 -7
  55. package/dist-vue/_chunks/{PkChatbotViewChat-BZVcDXzL.js.map → PkChatbotViewChat-DFYw4nzP.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkChatbotViewConversations-Cx-mLdUE.js → PkChatbotViewConversations-CHpN4vhm.js} +2 -2
  57. package/dist-vue/_chunks/{PkChatbotViewConversations-Cx-mLdUE.js.map → PkChatbotViewConversations-CHpN4vhm.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkChatbotViewFiles-DLIa-xG8.js → PkChatbotViewFiles-BBBO5hyd.js} +3 -3
  59. package/dist-vue/_chunks/{PkChatbotViewFiles-DLIa-xG8.js.map → PkChatbotViewFiles-BBBO5hyd.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotViewProfile-DEc9apXY.js → PkChatbotViewProfile-CosaHA-g.js} +2 -2
  61. package/dist-vue/_chunks/{PkChatbotViewProfile-DEc9apXY.js.map → PkChatbotViewProfile-CosaHA-g.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkStreamingMarkdown-B2iju0WK.js → PkStreamingMarkdown-BN7waklD.js} +214 -205
  63. package/dist-vue/_chunks/{PkStreamingMarkdown-B2iju0WK.js.map → PkStreamingMarkdown-BN7waklD.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkToolRequestGeolocation-9vfYNaQo.js → PkToolRequestGeolocation-BOVbaCzQ.js} +2 -2
  65. package/{dist/_chunks/PkToolRequestGeolocation-BY7nXImb.js.map → dist-vue/_chunks/PkToolRequestGeolocation-BOVbaCzQ.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BorR5NmZ.js → PkToolRequestOAuthConnection-DMvCGPuX.js} +2 -2
  67. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BorR5NmZ.js.map → PkToolRequestOAuthConnection-DMvCGPuX.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkToolShowArtifact-C0J71YF6.js → PkToolShowArtifact-DrE_mK1z.js} +2 -2
  69. package/dist-vue/_chunks/{PkToolShowArtifact-C0J71YF6.js.map → PkToolShowArtifact-DrE_mK1z.js.map} +1 -1
  70. package/dist-vue/_chunks/PkToolShowComparison-DQs3E6-k.js +72 -0
  71. package/dist-vue/_chunks/PkToolShowComparison-DQs3E6-k.js.map +1 -0
  72. package/dist-vue/_chunks/{PkToolShowContactForm-De3Od9mC.js → PkToolShowContactForm-BBTbrgt4.js} +2 -2
  73. package/dist-vue/_chunks/{PkToolShowContactForm-De3Od9mC.js.map → PkToolShowContactForm-BBTbrgt4.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkToolShowDiagram-DmY_hhAS.js → PkToolShowDiagram-WyUnnDUn.js} +2 -2
  75. package/dist-vue/_chunks/{PkToolShowDiagram-DmY_hhAS.js.map → PkToolShowDiagram-WyUnnDUn.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkToolShowEmail-D_Z15wCS.js → PkToolShowEmail-C30K5kJA.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolShowEmail-D_Z15wCS.js.map → PkToolShowEmail-C30K5kJA.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkToolShowForm-DUGysIxj.js → PkToolShowForm-C9N_SSm8.js} +4 -4
  79. package/dist-vue/_chunks/{PkToolShowForm-DUGysIxj.js.map → PkToolShowForm-C9N_SSm8.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkToolShowMessage-e5_EI5mV.js → PkToolShowMessage-DvkCRERv.js} +2 -2
  81. package/dist-vue/_chunks/{PkToolShowMessage-e5_EI5mV.js.map → PkToolShowMessage-DvkCRERv.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolShowProductList-B3X7Svyc.js → PkToolShowProductList-cfjg3CmV.js} +2 -2
  83. package/dist-vue/_chunks/{PkToolShowProductList-B3X7Svyc.js.map → PkToolShowProductList-cfjg3CmV.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolShowSources-BUjBSGc5.js → PkToolShowSources-BItTltB5.js} +4 -4
  85. package/dist-vue/_chunks/{PkToolShowSources-BUjBSGc5.js.map → PkToolShowSources-BItTltB5.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DA4NEjHB.js → PkToolShowSuggestedReply-qAWdCUhr.js} +2 -2
  87. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DA4NEjHB.js.map → PkToolShowSuggestedReply-qAWdCUhr.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolShowWebPages-DEih8h5k.js → PkToolShowWebPages-CkQ2NhRj.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolShowWebPages-DEih8h5k.js.map → PkToolShowWebPages-CkQ2NhRj.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkUrl-3NH9t-WA.js → PkUrl-BsD4Vby6.js} +2 -2
  91. package/dist-vue/_chunks/{PkUrl-3NH9t-WA.js.map → PkUrl-BsD4Vby6.js.map} +1 -1
  92. package/dist-vue/_chunks/{createChatbotApiClient-DohvHshj.js → createChatbotApiClient-BlWs282E.js} +99 -137
  93. package/dist-vue/_chunks/createChatbotApiClient-BlWs282E.js.map +1 -0
  94. package/dist-vue/_chunks/{useChatbotStore-_10Jaf4z.js → useChatbotStore-CMo47fnS.js} +3 -3
  95. package/dist-vue/_chunks/{useChatbotStore-_10Jaf4z.js.map → useChatbotStore-CMo47fnS.js.map} +1 -1
  96. package/dist-vue/_chunks/{utils-BL4Ppr2R.js → utils--8iNpBr_.js} +2 -2
  97. package/dist-vue/_chunks/{utils-BL4Ppr2R.js.map → utils--8iNpBr_.js.map} +1 -1
  98. package/dist-vue/api.js +1 -1
  99. package/dist-vue/composables.js +11 -9
  100. package/dist-vue/composables.js.map +1 -1
  101. package/dist-vue/index.js +196 -196
  102. package/dist-vue/index.js.map +1 -1
  103. package/dist-vue/locales.js +2 -0
  104. package/dist-vue/packages/ability/src/index.d.ts +10 -14
  105. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +8 -4
  106. package/dist-vue/packages/components/src/chat/PkChatbotSteps.d.ts +1 -0
  107. package/dist-vue/style.css +1 -1
  108. package/package.json +1 -1
  109. package/dist/_chunks/PkToolShowComparison-BJ7QBXtf.js +0 -60
  110. package/dist/_chunks/PkToolShowComparison-BJ7QBXtf.js.map +0 -1
  111. package/dist-vue/_chunks/PkChatbotMessages-PjKRDNYJ.js +0 -776
  112. package/dist-vue/_chunks/PkChatbotMessages-PjKRDNYJ.js.map +0 -1
  113. package/dist-vue/_chunks/PkChatbotSteps-CL27pMFS.js.map +0 -1
  114. package/dist-vue/_chunks/PkToolShowComparison-BLn4pkno.js +0 -61
  115. package/dist-vue/_chunks/PkToolShowComparison-BLn4pkno.js.map +0 -1
  116. package/dist-vue/_chunks/createChatbotApiClient-DohvHshj.js.map +0 -1
package/dist-vue/index.js CHANGED
@@ -1,54 +1,54 @@
1
1
  import { t as e } from "./_chunks/rolldown-runtime-Dy4uBu1J.js";
2
- import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-DUGysIxj.js";
2
+ import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-C9N_SSm8.js";
3
3
  import { C as i, S as a, _ as o, a as s, b as c, d as l, g as u, l as d, n as f, o as p, p as m, w as h, y as g } from "./_chunks/schemas-DxbHVg3r.js";
4
4
  import { i as _, r as v } from "./_chunks/Media-_HfFLHGD.js";
5
- import { C as y, D as ee, E as b, N as x, S, T as C, _ as te, b as w, d as ne, f as re, h as ie, i as ae, m as oe, n as T, o as se, r as ce, t as le, v as ue, w as de, y as fe } from "./_chunks/Agent-BNlmK-uJ.js";
6
- import { c as pe, d as me, l as he, r as ge, s as _e, t as ve, u as ye } from "./_chunks/Document-2X01-F4Z.js";
7
- import { a as be, i as xe, n as Se } from "./_chunks/createChatbotApiClient-DohvHshj.js";
5
+ import { C as y, E as ee, M as b, S as x, T as S, _ as C, d as w, g as te, i as ne, m as re, n as T, o as ie, p as ae, r as oe, t as se, u as ce, v as le, w as ue, x as de, y as fe } from "./_chunks/Agent-tbKw8Mdt.js";
6
+ import { c as pe, d as me, l as he, r as ge, s as _e, t as ve, u as ye } from "./_chunks/Document-p2Y_4gk8.js";
7
+ import { a as be, i as xe, n as Se } from "./_chunks/createChatbotApiClient-BlWs282E.js";
8
8
  import { t as Ce } from "./_chunks/PkChatbotAuth-Bi508F1u.js";
9
- import { t as we } from "./_chunks/PkStreamingMarkdown-B2iju0WK.js";
10
- import { a as Te, i as Ee, n as De, r as Oe } from "./_chunks/useChatbotStore-_10Jaf4z.js";
9
+ import { t as we } from "./_chunks/PkStreamingMarkdown-BN7waklD.js";
10
+ import { a as Te, i as Ee, n as De, r as Oe } from "./_chunks/useChatbotStore-CMo47fnS.js";
11
11
  import "./_chunks/src-DT8FLE4_.js";
12
12
  import { c as ke, i as Ae, s as je } from "./_chunks/message-RohfrdWS.js";
13
- import { i as Me, n as Ne, r as Pe, t as Fe } from "./_chunks/PkChatbotMessages-PjKRDNYJ.js";
13
+ import { i as Me, n as Ne, r as Pe, t as Fe } from "./_chunks/PkChatbotMessages-Yaf_5xJV.js";
14
14
  import { t as Ie } from "./_chunks/useSafeLocalStorage-Ce3S1Ayn.js";
15
15
  import { t as Le } from "./_chunks/useDialogConfirm-KWz0ohCQ.js";
16
- import { n as Re, r as ze, t as Be } from "./_chunks/PkChatbotViewConversations-Cx-mLdUE.js";
17
- import { i as Ve, n as He, r as Ue, t as We } from "./_chunks/PkChatbotViewChat-BZVcDXzL.js";
16
+ import { n as Re, r as ze, t as Be } from "./_chunks/PkChatbotViewConversations-CHpN4vhm.js";
17
+ import { i as Ve, n as He, r as Ue, t as We } from "./_chunks/PkChatbotViewChat-DFYw4nzP.js";
18
18
  import { t as Ge } from "./_chunks/PkChatbotError-CuX9C_b9.js";
19
19
  import { t as Ke } from "./_chunks/useImageFallback-5vQIO0pC.js";
20
20
  import { t as qe } from "./_chunks/useLocalizedString-PfaKjIQY.js";
21
21
  import { n as Je, t as Ye } from "./_chunks/PkRelativeTime--1cIphlA.js";
22
- import { r as Xe, t as Ze } from "./_chunks/PkToolShowArtifact-C0J71YF6.js";
22
+ import { r as Xe, t as Ze } from "./_chunks/PkToolShowArtifact-DrE_mK1z.js";
23
23
  import { $ as Qe, A as $e, B as et, C as tt, Ct as nt, D as rt, E as it, F as at, G as ot, H as st, I as ct, J as lt, K as ut, L as dt, M as ft, N as E, Q as pt, S as mt, St as ht, T as gt, Tt as _t, U as vt, V as yt, W as bt, X as xt, _t as St, a as Ct, at as wt, b as Tt, bt as Et, c as Dt, ct as Ot, d as kt, dt as At, et as jt, f as Mt, gt as Nt, h as Pt, it as Ft, j as It, k as Lt, l as D, lt as O, mt as Rt, nt as zt, o as Bt, ot as Vt, pt as Ht, q as Ut, rt as Wt, st as Gt, tt as Kt, u as qt, ut as Jt, vt as Yt, w as Xt, wt as Zt, x as Qt, xt as $t, y as en, yt as tn, z as nn } from "./_chunks/dist-Bju7SKiu.js";
24
24
  import { n as rn, t as an } from "./_chunks/dist-D6ZVcs1F.js";
25
25
  import { n as on, r as sn } from "./_chunks/dist-Csm5xBQw.js";
26
- import { u as cn, v as ln } from "./_chunks/utils-BL4Ppr2R.js";
26
+ import { u as cn, v as ln } from "./_chunks/utils--8iNpBr_.js";
27
27
  import { t as un } from "./_chunks/PkLazyImg-CDxX9xnq.js";
28
28
  import { n as dn, r as fn, t as pn } from "./_chunks/PkChatbotFilePreview-CwiVQDF2.js";
29
29
  import { t as mn } from "./_chunks/PkSvgViewer-D-0M5bqg.js";
30
- import { t as hn } from "./_chunks/PkUrl-3NH9t-WA.js";
30
+ import { t as hn } from "./_chunks/PkUrl-BsD4Vby6.js";
31
31
  import { t as gn } from "./_chunks/PkAvatar-paEJByEA.js";
32
32
  import { t as _n } from "./_chunks/PkChatbotFeedbackForm-4XWLHOkB.js";
33
- import { n as vn, t as yn } from "./_chunks/PkChatbotSteps-CL27pMFS.js";
34
- import { t as bn } from "./_chunks/PkChatbotStepPayload-CI98RiNv.js";
35
- import { t as xn } from "./_chunks/PkChatbotStepToolDetail-B8zXJOdI.js";
36
- import { n as Sn, t as Cn } from "./_chunks/PkChatbotInput-BCuqLdkT.js";
37
- import { t as wn } from "./_chunks/PkChatbotEmptyState-DycCrfwz.js";
38
- import { t as Tn } from "./_chunks/PkChatbotViewProfile-DEc9apXY.js";
39
- import { t as En } from "./_chunks/PkChatbot-DZP40EZP.js";
40
- import { i as Dn, r as On, t as kn } from "./_chunks/PkToolShowSources-BUjBSGc5.js";
41
- import { t as An } from "./_chunks/PkToolShowEmail-D_Z15wCS.js";
42
- import { t as jn } from "./_chunks/PkToolShowMessage-e5_EI5mV.js";
43
- import { t as Mn } from "./_chunks/PkToolShowWebPages-DEih8h5k.js";
44
- import { t as Nn } from "./_chunks/PkToolShowProductList-B3X7Svyc.js";
45
- import { t as Pn } from "./_chunks/PkToolShowContactForm-De3Od9mC.js";
33
+ import { n as vn, t as yn } from "./_chunks/PkChatbotSteps-356rnZG5.js";
34
+ import { t as bn } from "./_chunks/PkChatbotStepPayload-C36nXLW7.js";
35
+ import { t as xn } from "./_chunks/PkChatbotStepToolDetail-CBX-AQXv.js";
36
+ import { n as Sn, t as Cn } from "./_chunks/PkChatbotInput-BzaCyeFp.js";
37
+ import { t as wn } from "./_chunks/PkChatbotEmptyState-9mWiPd4B.js";
38
+ import { t as Tn } from "./_chunks/PkChatbotViewProfile-CosaHA-g.js";
39
+ import { t as En } from "./_chunks/PkChatbot-Dn_6yrFw.js";
40
+ import { i as Dn, r as On, t as kn } from "./_chunks/PkToolShowSources-BItTltB5.js";
41
+ import { t as An } from "./_chunks/PkToolShowEmail-C30K5kJA.js";
42
+ import { t as jn } from "./_chunks/PkToolShowMessage-DvkCRERv.js";
43
+ import { t as Mn } from "./_chunks/PkToolShowWebPages-CkQ2NhRj.js";
44
+ import { t as Nn } from "./_chunks/PkToolShowProductList-cfjg3CmV.js";
45
+ import { t as Pn } from "./_chunks/PkToolShowContactForm-BBTbrgt4.js";
46
46
  import { t as Fn } from "./_chunks/PkToolShowCalendarEvent-BsBdsbV0.js";
47
- import { t as In } from "./_chunks/PkToolShowComparison-BLn4pkno.js";
47
+ import { t as In } from "./_chunks/PkToolShowComparison-DQs3E6-k.js";
48
48
  import { t as Ln } from "./_chunks/PkToolShowLocation-Bv6sLN5P.js";
49
49
  import { t as Rn } from "./_chunks/PkToolShowQrCode-DEAvfLFu.js";
50
50
  import { t as zn } from "./_chunks/PkToolShowImageGallery-DudQzBx4.js";
51
- import { t as Bn } from "./_chunks/PkToolShowSuggestedReply-DA4NEjHB.js";
51
+ import { t as Bn } from "./_chunks/PkToolShowSuggestedReply-qAWdCUhr.js";
52
52
  import { VvAccordion as Vn, VvAccordionGroup as Hn, VvAlert as Un, VvAlertGroup as Wn, VvBadge as Gn, VvButton as Kn, VvButtonGroup as qn, VvCheckbox as Jn, VvCombobox as Yn, VvDialog as Xn, VvDropdown as Zn, VvDropdownAction as Qn, VvIcon as $n, VvInputFile as er, VvInputRange as tr, VvInputText as nr, VvTab as rr, VvTooltip as ir } from "@volverjs/ui-vue/components";
53
53
  import { Fragment as k, Teleport as ar, Transition as or, TransitionGroup as sr, cloneVNode as cr, computed as A, createApp as lr, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createSlots as ur, createStaticVNode as dr, createTextVNode as F, createVNode as I, defineComponent as L, guardReactiveProps as fr, h as pr, inject as R, isRef as mr, isVNode as hr, mergeModels as gr, mergeProps as _r, nextTick as vr, normalizeClass as yr, normalizeProps as br, normalizeStyle as xr, onBeforeUnmount as Sr, onMounted as Cr, onUnmounted as wr, openBlock as z, provide as Tr, reactive as Er, readonly as Dr, ref as B, renderList as Or, renderSlot as V, resolveComponent as kr, resolveDynamicComponent as Ar, shallowRef as jr, toDisplayString as H, toRef as Mr, toRefs as Nr, unref as U, useId as Pr, useModel as W, useSlots as Fr, vModelSelect as Ir, vModelText as Lr, watch as G, withCtx as K, withDirectives as Rr, withKeys as zr, withModifiers as Br } from "vue";
54
54
  import { useI18n as Vr } from "vue-i18n";
@@ -233,18 +233,18 @@ var Ei = (e) => !e.disabled && !e.retired, Di = {
233
233
  updatedAt: _()
234
234
  });
235
235
  o({
236
- ...x.pagination(),
237
- ...x.sort([
236
+ ...b.pagination(),
237
+ ...b.sort([
238
238
  "createdAt",
239
239
  "updatedAt",
240
240
  "scheduledAt"
241
241
  ]),
242
- ...x.filters([
242
+ ...b.filters([
243
243
  "type",
244
244
  "readAt",
245
245
  "scheduledAt"
246
246
  ]),
247
- ...x.ids()
247
+ ...b.ids()
248
248
  }), ki.pick({
249
249
  id: !0,
250
250
  organizationId: !0,
@@ -378,13 +378,13 @@ o(Vi).superRefine(Hi), o({
378
378
  config: g(c(), a()).optional(),
379
379
  fieldMapping: s(Li).optional()
380
380
  }), o({ enabled: p() }), o({
381
- ...x.pagination(),
382
- ...x.sort([
381
+ ...b.pagination(),
382
+ ...b.sort([
383
383
  "createdAt",
384
384
  "updatedAt",
385
385
  "provider"
386
386
  ]),
387
- ...x.ids(),
387
+ ...b.ids(),
388
388
  organizationId: h().optional(),
389
389
  provider: f(Mi).optional()
390
390
  }), o({
@@ -401,13 +401,13 @@ o(Vi).superRefine(Hi), o({
401
401
  createdAt: _(),
402
402
  updatedAt: _()
403
403
  }), o({
404
- ...x.pagination(),
405
- ...x.sort([
404
+ ...b.pagination(),
405
+ ...b.sort([
406
406
  "createdAt",
407
407
  "updatedAt",
408
408
  "status"
409
409
  ]),
410
- ...x.ids(),
410
+ ...b.ids(),
411
411
  integrationId: h().optional(),
412
412
  leadId: h().optional(),
413
413
  status: f(Fi).optional()
@@ -428,10 +428,10 @@ var Ui = { class: "flex items-center gap-4 mb-4" }, Wi = { class: "font-semibold
428
428
  let n = W(e, "modelValue"), r = e, { t: i } = Vr(), { t: a } = Vr({ useScope: "global" }), o = A(() => {
429
429
  let e = [{
430
430
  label: a("agentType.chat"),
431
- value: re.Chat
431
+ value: w.Chat
432
432
  }, {
433
433
  label: a("agentType.reasoning"),
434
- value: re.Reasoning
434
+ value: w.Reasoning
435
435
  }];
436
436
  return r.readonly ? e.filter((e) => e.value === n.value) : e;
437
437
  });
@@ -572,7 +572,7 @@ var Zi = Yi, Qi = { class: "flex items-center gap-4 mb-4" }, $i = { class: "font
572
572
  }
573
573
  });
574
574
  //#endregion
575
- //#region virtual:intlify-i18n-2
575
+ //#region virtual:intlify-i18n-1
576
576
  function ca(e) {
577
577
  let t = e;
578
578
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -679,7 +679,7 @@ var la = sa, ua = { class: "flex items-center gap-4 mb-4" }, da = { class: "font
679
679
  }
680
680
  });
681
681
  //#endregion
682
- //#region virtual:intlify-i18n-4
682
+ //#region virtual:intlify-i18n-2
683
683
  function _a(e) {
684
684
  let t = e;
685
685
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -2266,12 +2266,12 @@ var os = "onSave", ss = "changeCatalogVisible", cs = "changeFullscreen", ls = "p
2266
2266
  default: g = c[n], _ = c[n + 1];
2267
2267
  }
2268
2268
  }
2269
- let v = g === t.firstElementChild?.firstElementChild ? 0 : g.offsetTop - Ns(g, "margin-block-start"), y = _.offsetTop, ee = 0, { start: b, end: x } = s[Number(g.dataset.line || 0)], S = a(b), C = a(x + 1 === r.state.doc.lines ? x : x + 1), te = 0, w = _ == t.lastElementChild?.lastElementChild ? _.offsetTop + _.offsetHeight : _.offsetTop;
2270
- if (C > m || w > h) {
2269
+ let v = g === t.firstElementChild?.firstElementChild ? 0 : g.offsetTop - Ns(g, "margin-block-start"), y = _.offsetTop, ee = 0, { start: b, end: x } = s[Number(g.dataset.line || 0)], S = a(b), C = a(x + 1 === r.state.doc.lines ? x : x + 1), w = 0, te = _ == t.lastElementChild?.lastElementChild ? _.offsetTop + _.offsetHeight : _.offsetTop;
2270
+ if (C > m || te > h) {
2271
2271
  let e = d(m, h), n = t.querySelector(`[data-line="${e}"]`);
2272
- v = n ? n.offsetTop - Ns(n, "margin-block-start") : v, S = a(e), ee = (o - v) / (h - v), te = m - S;
2273
- } else g === t.firstElementChild?.firstElementChild ? (g === _ && (y = _.offsetTop + _.offsetHeight + Ns(_, "margin-block-end")), te = C, S = 0, ee = Math.max(o / y, 0)) : (ee = Math.max((o - v) / (y - v), 0), te = C - S);
2274
- i(e, S + te * ee, () => {
2272
+ v = n ? n.offsetTop - Ns(n, "margin-block-start") : v, S = a(e), ee = (o - v) / (h - v), w = m - S;
2273
+ } else g === t.firstElementChild?.firstElementChild ? (g === _ && (y = _.offsetTop + _.offsetHeight + Ns(_, "margin-block-end")), w = C, S = 0, ee = Math.max(o / y, 0)) : (ee = Math.max((o - v) / (y - v), 0), w = C - S);
2274
+ i(e, S + w * ee, () => {
2275
2275
  p--;
2276
2276
  });
2277
2277
  }, g = (n) => {
@@ -5494,7 +5494,7 @@ var gf = Object.assign || function(e) {
5494
5494
  e(t, t);
5495
5495
  }, i = function(e) {
5496
5496
  var t = e.target;
5497
- if (t === te) {
5497
+ if (t === w) {
5498
5498
  m();
5499
5499
  return;
5500
5500
  }
@@ -5509,9 +5509,9 @@ var gf = Object.assign || function(e) {
5509
5509
  (t === "Escape" || t === "Esc" || t === 27) && m();
5510
5510
  }, s = function() {
5511
5511
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e;
5512
- return e.background && (te.style.background = e.background), e.container && e.container instanceof Object && (t.container = gf({}, S.container, e.container)), e.template && (t.template = yf(e.template) ? e.template : document.querySelector(e.template)), S = gf({}, S, t), y.forEach(function(e) {
5513
- e.dispatchEvent(wf("medium-zoom:update", { detail: { zoom: w } }));
5514
- }), w;
5512
+ return e.background && (w.style.background = e.background), e.container && e.container instanceof Object && (t.container = gf({}, S.container, e.container)), e.template && (t.template = yf(e.template) ? e.template : document.querySelector(e.template)), S = gf({}, S, t), y.forEach(function(e) {
5513
+ e.dispatchEvent(wf("medium-zoom:update", { detail: { zoom: te } }));
5514
+ }), te;
5515
5515
  }, c = function() {
5516
5516
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5517
5517
  return e(gf({}, S, t));
@@ -5528,7 +5528,7 @@ var gf = Object.assign || function(e) {
5528
5528
  e.forEach(function(e) {
5529
5529
  e.addEventListener(n, r, i);
5530
5530
  });
5531
- }), w;
5531
+ }), te;
5532
5532
  }, u = function() {
5533
5533
  var e = [...arguments];
5534
5534
  C.zoomed && m();
@@ -5536,10 +5536,10 @@ var gf = Object.assign || function(e) {
5536
5536
  return [].concat(e, xf(t));
5537
5537
  }, []) : y;
5538
5538
  return t.forEach(function(e) {
5539
- e.classList.remove("medium-zoom-image"), e.dispatchEvent(wf("medium-zoom:detach", { detail: { zoom: w } }));
5539
+ e.classList.remove("medium-zoom-image"), e.dispatchEvent(wf("medium-zoom:detach", { detail: { zoom: te } }));
5540
5540
  }), y = y.filter(function(e) {
5541
5541
  return t.indexOf(e) === -1;
5542
- }), w;
5542
+ }), te;
5543
5543
  }, d = function(e, t) {
5544
5544
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5545
5545
  return y.forEach(function(r) {
@@ -5548,14 +5548,14 @@ var gf = Object.assign || function(e) {
5548
5548
  type: "medium-zoom:" + e,
5549
5549
  listener: t,
5550
5550
  options: n
5551
- }), w;
5551
+ }), te;
5552
5552
  }, f = function(e, t) {
5553
5553
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5554
5554
  return y.forEach(function(r) {
5555
5555
  r.removeEventListener("medium-zoom:" + e, t, n);
5556
5556
  }), ee = ee.filter(function(n) {
5557
5557
  return n.type !== "medium-zoom:" + e || n.listener.toString() !== t.toString();
5558
- }), w;
5558
+ }), te;
5559
5559
  }, p = function() {
5560
5560
  var e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).target, t = function() {
5561
5561
  var e = {
@@ -5584,23 +5584,23 @@ var gf = Object.assign || function(e) {
5584
5584
  };
5585
5585
  return new r(function(n) {
5586
5586
  if (e && y.indexOf(e) === -1) {
5587
- n(w);
5587
+ n(te);
5588
5588
  return;
5589
5589
  }
5590
5590
  var r = function e() {
5591
- b = !1, C.zoomed.removeEventListener("transitionend", e), C.original.dispatchEvent(wf("medium-zoom:opened", { detail: { zoom: w } })), n(w);
5591
+ b = !1, C.zoomed.removeEventListener("transitionend", e), C.original.dispatchEvent(wf("medium-zoom:opened", { detail: { zoom: te } })), n(te);
5592
5592
  };
5593
5593
  if (C.zoomed) {
5594
- n(w);
5594
+ n(te);
5595
5595
  return;
5596
5596
  }
5597
5597
  if (e) C.original = e;
5598
5598
  else if (y.length > 0) C.original = y[0];
5599
5599
  else {
5600
- n(w);
5600
+ n(te);
5601
5601
  return;
5602
5602
  }
5603
- if (C.original.dispatchEvent(wf("medium-zoom:open", { detail: { zoom: w } })), x = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, b = !0, C.zoomed = Cf(C.original), document.body.appendChild(te), S.template) {
5603
+ if (C.original.dispatchEvent(wf("medium-zoom:open", { detail: { zoom: te } })), x = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, b = !0, C.zoomed = Cf(C.original), document.body.appendChild(w), S.template) {
5604
5604
  var i = yf(S.template) ? S.template : document.querySelector(S.template);
5605
5605
  C.template = document.createElement("div"), C.template.appendChild(i.content.cloneNode(!0)), document.body.appendChild(C.template);
5606
5606
  }
@@ -5623,13 +5623,13 @@ var gf = Object.assign || function(e) {
5623
5623
  }, m = function() {
5624
5624
  return new r(function(e) {
5625
5625
  if (b || !C.original) {
5626
- e(w);
5626
+ e(te);
5627
5627
  return;
5628
5628
  }
5629
5629
  var t = function t() {
5630
- C.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(C.zoomed), C.zoomedHd && document.body.removeChild(C.zoomedHd), document.body.removeChild(te), C.zoomed.classList.remove("medium-zoom-image--opened"), C.template && document.body.removeChild(C.template), b = !1, C.zoomed.removeEventListener("transitionend", t), C.original.dispatchEvent(wf("medium-zoom:closed", { detail: { zoom: w } })), C.original = null, C.zoomed = null, C.zoomedHd = null, C.template = null, e(w);
5630
+ C.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(C.zoomed), C.zoomedHd && document.body.removeChild(C.zoomedHd), document.body.removeChild(w), C.zoomed.classList.remove("medium-zoom-image--opened"), C.template && document.body.removeChild(C.template), b = !1, C.zoomed.removeEventListener("transitionend", t), C.original.dispatchEvent(wf("medium-zoom:closed", { detail: { zoom: te } })), C.original = null, C.zoomed = null, C.zoomedHd = null, C.template = null, e(te);
5631
5631
  };
5632
- b = !0, document.body.classList.remove("medium-zoom--opened"), C.zoomed.style.transform = "", C.zoomedHd && (C.zoomedHd.style.transform = ""), C.template && (C.template.style.transition = "opacity 150ms", C.template.style.opacity = 0), C.original.dispatchEvent(wf("medium-zoom:close", { detail: { zoom: w } })), C.zoomed.addEventListener("transitionend", t);
5632
+ b = !0, document.body.classList.remove("medium-zoom--opened"), C.zoomed.style.transform = "", C.zoomedHd && (C.zoomedHd.style.transform = ""), C.template && (C.template.style.transition = "opacity 150ms", C.template.style.opacity = 0), C.original.dispatchEvent(wf("medium-zoom:close", { detail: { zoom: te } })), C.zoomed.addEventListener("transitionend", t);
5633
5633
  });
5634
5634
  }, h = function() {
5635
5635
  var e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).target;
@@ -5653,9 +5653,9 @@ var gf = Object.assign || function(e) {
5653
5653
  container: null,
5654
5654
  template: null
5655
5655
  }, S);
5656
- var te = Sf(S.background);
5656
+ var w = Sf(S.background);
5657
5657
  document.addEventListener("click", i), document.addEventListener("keyup", o), document.addEventListener("scroll", a), window.addEventListener("resize", m);
5658
- var w = {
5658
+ var te = {
5659
5659
  open: p,
5660
5660
  close: m,
5661
5661
  toggle: h,
@@ -5669,7 +5669,7 @@ var gf = Object.assign || function(e) {
5669
5669
  getImages: _,
5670
5670
  getZoomedImage: v
5671
5671
  };
5672
- return w;
5672
+ return te;
5673
5673
  };
5674
5674
  function Ef(e, t) {
5675
5675
  t === void 0 && (t = {});
@@ -6308,13 +6308,13 @@ var Df = {
6308
6308
  </${o}>
6309
6309
  `;
6310
6310
  }
6311
- let b, x, S, C, te = "", w = "", ne = "", { open: re, tagContainer: ie, tagHeader: ae } = u(r[s]), oe = [["class", `${q}-code`]];
6312
- re && oe.push(["open", ""]);
6313
- let T = { attrs: Gf(r[s], oe) };
6311
+ let b, x, S, C, w = "", te = "", ne = "", { open: re, tagContainer: T, tagHeader: ie } = u(r[s]), ae = [["class", `${q}-code`]];
6312
+ re && ae.push(["open", ""]);
6313
+ let oe = { attrs: Gf(r[s], ae) };
6314
6314
  for (let t = s; t < r.length && (b = r[t], [x, S] = c(b), x === ee); t++) {
6315
6315
  b.info = b.info.replace(i, "").replace(a, ""), b.hidden = !0;
6316
6316
  let c = `${q}-codetab-${o}-${s}-${t - s}`;
6317
- C = t - s > 0 ? "" : "checked", te += `
6317
+ C = t - s > 0 ? "" : "checked", w += `
6318
6318
  <li>
6319
6319
  <input
6320
6320
  type="radio"
@@ -6329,7 +6329,7 @@ var Df = {
6329
6329
  >
6330
6330
  ${e.utils.escapeHtml(S || l(b))}
6331
6331
  </label>
6332
- </li>`, w += `
6332
+ </li>`, te += `
6333
6333
  <div role="tabpanel">
6334
6334
  <input
6335
6335
  type="radio"
@@ -6348,20 +6348,20 @@ var Df = {
6348
6348
  <span class=${q}-code-lang role="note">${e.utils.escapeHtml(l(b))}</span>`;
6349
6349
  }
6350
6350
  return `
6351
- <${ie} ${p.renderAttrs(T)}>
6352
- <${ae} class="${q}-code-head">
6351
+ <${T} ${p.renderAttrs(oe)}>
6352
+ <${ie} class="${q}-code-head">
6353
6353
  <div class="${q}-code-flag">
6354
- <ul class="${q}-codetab-label" role="tablist">${te}</ul>
6354
+ <ul class="${q}-codetab-label" role="tablist">${w}</ul>
6355
6355
  </div>
6356
6356
  <div class="${q}-code-action">
6357
6357
  <span class="${q}-codetab-lang">${ne}</span>
6358
6358
  <span class="${q}-copy-button" data-tips="${g}"${v ? " data-is-icon=true" : ""}>${_}</span>
6359
6359
  ${t.extraTools instanceof Function ? t.extraTools({ lang: r[s].info.trim() }) : t.extraTools || ""}
6360
- ${ie === "details" ? y : ""}
6360
+ ${T === "details" ? y : ""}
6361
6361
  </div>
6362
- </${ae}>
6363
- ${w}
6364
- </${ie}>
6362
+ </${ie}>
6363
+ ${te}
6364
+ </${T}>
6365
6365
  `;
6366
6366
  };
6367
6367
  e.renderer.rules.fence = d, e.renderer.rules.code_block = d;
@@ -6636,32 +6636,32 @@ var Df = {
6636
6636
  let a = b.utils.escapeHtml(n);
6637
6637
  return `<pre><code class="language-${a}" language="${a}">${l ? ks(i.replace(/^\n+|\n+$/g, ""), t.replace(/^\n+|\n+$/g, "")) : `<span class="${q}-code-block">${i.replace(/^\n+|\n+$/g, "")}</span>`}</code></pre>`;
6638
6638
  } }), mp(b);
6639
- let C = B(`_article-key_${Po()}`), te = B(e.sanitize(b.render(e.modelValue, { srcLines: e.modelValue.split("\n") }))), w = () => {}, ne = () => {}, re = () => {
6639
+ let C = B(`_article-key_${Po()}`), w = B(e.sanitize(b.render(e.modelValue, { srcLines: e.modelValue.split("\n") }))), te = () => {}, ne = () => {}, re = () => {
6640
6640
  let e = f.value?.querySelectorAll(`#${o} p.${q}-mermaid:not([data-closed=false])`);
6641
- ne(), ne = Gs(e, { customIcon: d.value }), a.mermaid?.enableZoom && (w(), w = Ks(e, { customIcon: d.value }));
6642
- }, ie = () => {
6643
- J.emit(o, hs, te.value), e.onHtmlChanged(te.value), e.onGetCatalog(m.value), J.emit(o, xs, m.value), vr(() => {
6641
+ ne(), ne = Gs(e, { customIcon: d.value }), a.mermaid?.enableZoom && (te(), te = Ks(e, { customIcon: d.value }));
6642
+ }, T = () => {
6643
+ J.emit(o, hs, w.value), e.onHtmlChanged(w.value), e.onGetCatalog(m.value), J.emit(o, xs, m.value), vr(() => {
6644
6644
  v().then(re), ee();
6645
6645
  });
6646
- }, ae = () => {
6647
- m.value = [], te.value = e.sanitize(b.render(e.modelValue, { srcLines: e.modelValue.split("\n") }));
6648
- }, oe = A(() => (e.noKatex || !!g.value) && (e.noHighlight || !!h.value)), T = -1;
6646
+ }, ie = () => {
6647
+ m.value = [], w.value = e.sanitize(b.render(e.modelValue, { srcLines: e.modelValue.split("\n") }));
6648
+ }, ae = A(() => (e.noKatex || !!g.value) && (e.noHighlight || !!h.value)), oe = -1;
6649
6649
  return G([
6650
6650
  Mr(e, "modelValue"),
6651
- oe,
6651
+ ae,
6652
6652
  _,
6653
6653
  s
6654
6654
  ], () => {
6655
- T = window.setTimeout(() => {
6656
- ae();
6655
+ oe = window.setTimeout(() => {
6656
+ ie();
6657
6657
  }, t ? 0 : n.renderDelay);
6658
6658
  }), G(() => p.value.preview, () => {
6659
6659
  p.value.preview && vr(() => {
6660
6660
  v().then(re), ee(), J.emit(o, "catalogChanged", m.value);
6661
6661
  });
6662
- }), G([te, y], () => {
6663
- ie();
6664
- }), Cr(ie), Cr(() => {
6662
+ }), G([w, y], () => {
6663
+ T();
6664
+ }), Cr(T), Cr(() => {
6665
6665
  J.on(o, {
6666
6666
  name: Ss,
6667
6667
  callback() {
@@ -6670,13 +6670,13 @@ var Df = {
6670
6670
  }), J.on(o, {
6671
6671
  name: Cs,
6672
6672
  callback: () => {
6673
- C.value = `_article-key_${Po()}`, ae();
6673
+ C.value = `_article-key_${Po()}`, ie();
6674
6674
  }
6675
6675
  });
6676
6676
  }), Sr(() => {
6677
- w(), ne(), clearTimeout(T);
6677
+ te(), ne(), clearTimeout(oe);
6678
6678
  }), {
6679
- html: te,
6679
+ html: w,
6680
6680
  key: C
6681
6681
  };
6682
6682
  }, gp = (e, t) => {
@@ -14817,12 +14817,12 @@ var sS = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14817
14817
  let t = sS(e);
14818
14818
  return e.compartment ? e.compartment.of(t) : t;
14819
14819
  }, lS = (e) => {
14820
- let t = R("tabWidth"), n = R("editorId"), r = R("theme"), i = R("previewTheme"), a = R("language"), o = R("usedLanguageText"), s = R("disabled"), c = R("contentDisabled"), l = R("showToolbarName"), u = R("customIcon"), d = R("noUploadImg"), f = R("tableShape"), p = R("noPrettier"), m = R("codeTheme"), h = R("setting"), g = R("updateSetting"), _ = R("catalogVisible"), v = R("defToolbars"), y = R("floatingToolbars"), ee = R("rootRef"), b = B(), x = jr(), S = B(!1), C = new Ot(), te = new Ot(), w = new Ot(), ne = new Ot(), re = new Ot(), ie = Hx(n, { noPrettier: p }), ae = () => [
14821
- ...ie,
14820
+ let t = R("tabWidth"), n = R("editorId"), r = R("theme"), i = R("previewTheme"), a = R("language"), o = R("usedLanguageText"), s = R("disabled"), c = R("contentDisabled"), l = R("showToolbarName"), u = R("customIcon"), d = R("noUploadImg"), f = R("tableShape"), p = R("noPrettier"), m = R("codeTheme"), h = R("setting"), g = R("updateSetting"), _ = R("catalogVisible"), v = R("defToolbars"), y = R("floatingToolbars"), ee = R("rootRef"), b = B(), x = jr(), S = B(!1), C = new Ot(), w = new Ot(), te = new Ot(), ne = new Ot(), re = new Ot(), T = Hx(n, { noPrettier: p }), ie = () => [
14821
+ ...T,
14822
14822
  ...qg,
14823
14823
  ...ah,
14824
14824
  Jg
14825
- ], oe = {
14825
+ ], ae = {
14826
14826
  paste: Vx(e, x),
14827
14827
  blur: e.onBlur,
14828
14828
  focus: e.onFocus,
@@ -14842,7 +14842,7 @@ var sS = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14842
14842
  data: r
14843
14843
  });
14844
14844
  }
14845
- }, T = nx({ privide(e) {
14845
+ }, oe = nx({ privide(e) {
14846
14846
  e.provide("editorId", n), e.provide("theme", r), e.provide("previewTheme", i), e.provide("language", a), e.provide("disabled", s), e.provide("contentDisabled", c), e.provide("noUploadImg", d), e.provide("tableShape", f), e.provide("noPrettier", p), e.provide("codeTheme", m), e.provide("showToolbarName", l), e.provide("setting", h), e.provide("updateSetting", g), e.provide("usedLanguageText", o), e.provide("catalogVisible", _), e.provide("defToolbars", v), e.provide("tabWidth", t), e.provide("customIcon", u), e.provide("floatingToolbars", y), e.provide("rootRef", ee);
14847
14847
  } }), se = [
14848
14848
  {
@@ -14859,18 +14859,18 @@ var sS = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14859
14859
  },
14860
14860
  {
14861
14861
  type: "domEventHandlers",
14862
- extension: bt.domEventHandlers(oe),
14862
+ extension: bt.domEventHandlers(ae),
14863
14863
  compartment: ne
14864
14864
  },
14865
14865
  {
14866
14866
  type: "completions",
14867
14867
  extension: pb(e.completions),
14868
- compartment: te
14868
+ compartment: w
14869
14869
  },
14870
14870
  {
14871
14871
  type: "history",
14872
14872
  extension: Bm(),
14873
- compartment: w
14873
+ compartment: te
14874
14874
  }
14875
14875
  ], ce = $o.codeMirrorExtensions([
14876
14876
  {
@@ -14879,7 +14879,7 @@ var sS = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14879
14879
  },
14880
14880
  {
14881
14881
  type: "keymap",
14882
- extension: xt.of(ae())
14882
+ extension: xt.of(ie())
14883
14883
  },
14884
14884
  {
14885
14885
  type: "drawSelection",
@@ -14896,13 +14896,13 @@ var sS = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14896
14896
  },
14897
14897
  {
14898
14898
  type: "floatingToolbar",
14899
- extension: y.value.length > 0 ? T : [],
14899
+ extension: y.value.length > 0 ? oe : [],
14900
14900
  compartment: re
14901
14901
  }
14902
14902
  ], {
14903
14903
  editorId: n,
14904
14904
  theme: r.value,
14905
- keyBindings: ae()
14905
+ keyBindings: ie()
14906
14906
  }), le = () => [...se, ...ce].map(cS);
14907
14907
  return Cr(() => {
14908
14908
  let r = new bt({
@@ -14947,11 +14947,11 @@ var sS = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14947
14947
  }), J.on(n, {
14948
14948
  name: ws,
14949
14949
  callback: Mo((e) => {
14950
- let t = { ...oe }, n = Object.keys(oe);
14950
+ let t = { ...ae }, n = Object.keys(ae);
14951
14951
  for (let r in e) {
14952
14952
  let i = r;
14953
14953
  t[i] = n.includes(i) ? (t, n) => {
14954
- e[i](t, n), t.defaultPrevented || oe[i](t, n);
14954
+ e[i](t, n), t.defaultPrevented || ae[i](t, n);
14955
14955
  } : e[i];
14956
14956
  }
14957
14957
  x.value?.view.dispatch({ effects: ne.reconfigure(bt.domEventHandlers(t)) });
@@ -14976,7 +14976,7 @@ var sS = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14976
14976
  }), G(r, () => {
14977
14977
  x.value?.view.dispatch({ effects: C.reconfigure(r.value === "light" ? xx : Bx) });
14978
14978
  }, { deep: !0 }), G(() => e.completions, () => {
14979
- x.value?.view.dispatch({ effects: te.reconfigure(pb(e.completions)) });
14979
+ x.value?.view.dispatch({ effects: w.reconfigure(pb(e.completions)) });
14980
14980
  }, { deep: !0 }), G(() => e.modelValue, () => {
14981
14981
  x.value?.getValue() !== e.modelValue && x.value?.setValue(e.modelValue);
14982
14982
  }), G(() => e.placeholder, () => {
@@ -14994,7 +14994,7 @@ var sS = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14994
14994
  inputWrapperRef: b,
14995
14995
  codeMirrorUt: x,
14996
14996
  resetHistory() {
14997
- x.value?.view.dispatch({ effects: w.reconfigure([]) }), x.value?.view.dispatch({ effects: w.reconfigure(Bm()) });
14997
+ x.value?.view.dispatch({ effects: te.reconfigure([]) }), x.value?.view.dispatch({ effects: te.reconfigure(Bm()) });
14998
14998
  }
14999
14999
  };
15000
15000
  }, uS = (e, t, n) => {
@@ -16493,7 +16493,7 @@ var SC = bC, CC = { class: "block text-smaller mt-4" }, wC = { class: "block tex
16493
16493
  }
16494
16494
  });
16495
16495
  //#endregion
16496
- //#region virtual:intlify-i18n-1
16496
+ //#region virtual:intlify-i18n-4
16497
16497
  function OC(e) {
16498
16498
  let t = e;
16499
16499
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -16696,7 +16696,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
16696
16696
  ]);
16697
16697
  };
16698
16698
  }
16699
- }), VC = he, HC = .6, UC = ae.parse({}), WC = /* @__PURE__ */ L({
16699
+ }), VC = he, HC = .6, UC = ne.parse({}), WC = /* @__PURE__ */ L({
16700
16700
  __name: "PkToolApprovalBadge",
16701
16701
  setup(e) {
16702
16702
  let { t } = Vr({ useScope: "global" });
@@ -17032,11 +17032,11 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17032
17032
  }),
17033
17033
  emits: ["update:reasoning"],
17034
17034
  setup(e) {
17035
- let { t } = Vr({ useScope: "global" }), n = e, r = W(e, "reasoning"), i = A(() => de("openai", r.value)), a = A(() => de("anthropic", r.value)), o = A(() => de("google", r.value)), s = A(() => C(n.activeProvider) ? de(n.activeProvider, r.value) : void 0), c = A(() => ({
17035
+ let { t } = Vr({ useScope: "global" }), n = e, r = W(e, "reasoning"), i = A(() => y("openai", r.value)), a = A(() => y("anthropic", r.value)), o = A(() => y("google", r.value)), s = A(() => ue(n.activeProvider) ? y(n.activeProvider, r.value) : void 0), c = A(() => ({
17036
17036
  openai: i.value !== r.value?.openai,
17037
17037
  anthropic: a.value !== r.value?.anthropic,
17038
17038
  google: o.value !== r.value?.google,
17039
- generic: C(n.activeProvider) && s.value !== r.value?.[n.activeProvider]
17039
+ generic: ue(n.activeProvider) && s.value !== r.value?.[n.activeProvider]
17040
17040
  })), l = {
17041
17041
  auto: "Auto",
17042
17042
  concise: "Concise",
@@ -17051,7 +17051,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17051
17051
  }, u = (e) => e.map((e) => ({
17052
17052
  label: l[e] ?? e,
17053
17053
  value: e
17054
- })), d = u(fe), f = u(le), p = u(ue), m = u(te), h = u(w);
17054
+ })), d = u(le), f = u(se), p = u(C), m = u(te), h = u(fe);
17055
17055
  return (n, l) => {
17056
17056
  let u = Yn, g = nr;
17057
17057
  return e.activeProvider === "openai" ? (z(), N(k, { key: 0 }, [I(u, {
@@ -17309,7 +17309,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17309
17309
  "label",
17310
17310
  "placeholder",
17311
17311
  "options"
17312
- ])) : U(C)(e.activeProvider) ? (z(), j(u, {
17312
+ ])) : U(ue)(e.activeProvider) ? (z(), j(u, {
17313
17313
  key: 4,
17314
17314
  "model-value": s.value?.reasoningEffort,
17315
17315
  name: `reasoning.${e.activeProvider}.reasoningEffort`,
@@ -17345,7 +17345,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17345
17345
  }, {
17346
17346
  webSearch: { default: () => ({
17347
17347
  enabled: !1,
17348
- provider: S.Native
17348
+ provider: de.Native
17349
17349
  }) },
17350
17350
  webSearchModifiers: {}
17351
17351
  }),
@@ -17711,12 +17711,12 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17711
17711
  }), bw = /* @__PURE__ */ L({
17712
17712
  __name: "PkEditorChannels",
17713
17713
  props: /*@__PURE__*/ gr({ type: {} }, {
17714
- modelValue: { default: () => Object.values(ce) },
17714
+ modelValue: { default: () => Object.values(oe) },
17715
17715
  modelModifiers: {}
17716
17716
  }),
17717
17717
  emits: ["update:modelValue"],
17718
17718
  setup(e) {
17719
- let t = e, n = W(e, "modelValue"), r = A(() => t.type === re.Chat);
17719
+ let t = e, n = W(e, "modelValue"), r = A(() => t.type === w.Chat);
17720
17720
  function i(e) {
17721
17721
  return n.value.includes(e);
17722
17722
  }
@@ -17726,12 +17726,12 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17726
17726
  return (e, t) => (z(), j(oo, { legend: e.$t("label.channels") }, {
17727
17727
  default: K(() => [
17728
17728
  I(ZS, {
17729
- "model-value": i(U(ce).Frontoffice),
17729
+ "model-value": i(U(oe).Frontoffice),
17730
17730
  name: "channel.frontoffice",
17731
17731
  switch: "",
17732
17732
  label: e.$t("agent.channel.frontoffice"),
17733
17733
  "hint-label": e.$t("hint.channel.frontoffice"),
17734
- "onUpdate:modelValue": t[0] ||= (e) => a(U(ce).Frontoffice, e)
17734
+ "onUpdate:modelValue": t[0] ||= (e) => a(U(oe).Frontoffice, e)
17735
17735
  }, null, 8, [
17736
17736
  "model-value",
17737
17737
  "label",
@@ -17739,12 +17739,12 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17739
17739
  ]),
17740
17740
  r.value ? (z(), j(ZS, {
17741
17741
  key: 0,
17742
- "model-value": i(U(ce).App),
17742
+ "model-value": i(U(oe).App),
17743
17743
  name: "channel.app",
17744
17744
  switch: "",
17745
17745
  label: e.$t("agent.channel.app"),
17746
17746
  "hint-label": e.$t("hint.channel.app"),
17747
- "onUpdate:modelValue": t[1] ||= (e) => a(U(ce).App, e)
17747
+ "onUpdate:modelValue": t[1] ||= (e) => a(U(oe).App, e)
17748
17748
  }, null, 8, [
17749
17749
  "model-value",
17750
17750
  "label",
@@ -17752,13 +17752,13 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17752
17752
  ])) : M("", !0),
17753
17753
  r.value ? (z(), j(ZS, {
17754
17754
  key: 1,
17755
- "model-value": i(U(ce).Widget),
17755
+ "model-value": i(U(oe).Widget),
17756
17756
  name: "channel.widget",
17757
17757
  switch: "",
17758
17758
  class: "mb-0",
17759
17759
  label: e.$t("agent.channel.widget"),
17760
17760
  "hint-label": e.$t("hint.channel.widget"),
17761
- "onUpdate:modelValue": t[2] ||= (e) => a(U(ce).Widget, e)
17761
+ "onUpdate:modelValue": t[2] ||= (e) => a(U(oe).Widget, e)
17762
17762
  }, null, 8, [
17763
17763
  "model-value",
17764
17764
  "label",
@@ -17856,7 +17856,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17856
17856
  agentIdModifiers: {},
17857
17857
  name: { default: "" },
17858
17858
  nameModifiers: {},
17859
- type: { default: re.Chat },
17859
+ type: { default: w.Chat },
17860
17860
  typeModifiers: {},
17861
17861
  initialMessage: { default: void 0 },
17862
17862
  initialMessageModifiers: {},
@@ -17892,7 +17892,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17892
17892
  reasoningModifiers: {},
17893
17893
  webSearch: { default: () => ({
17894
17894
  enabled: !1,
17895
- provider: S.Perplexity
17895
+ provider: de.Perplexity
17896
17896
  }) },
17897
17897
  webSearchModifiers: {},
17898
17898
  theme: { default: "auto" },
@@ -17961,7 +17961,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
17961
17961
  default: !1
17962
17962
  },
17963
17963
  fileUploadEnabledModifiers: {},
17964
- toolWorkingSetMode: { default: ne.Off },
17964
+ toolWorkingSetMode: { default: ce.Off },
17965
17965
  toolWorkingSetModeModifiers: {},
17966
17966
  voiceEnabled: {
17967
17967
  type: Boolean,
@@ -18027,7 +18027,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18027
18027
  default: !1
18028
18028
  },
18029
18029
  showExtendedStepsModifiers: {},
18030
- channels: { default: () => Object.values(ce) },
18030
+ channels: { default: () => Object.values(oe) },
18031
18031
  channelsModifiers: {},
18032
18032
  externalContextSchema: { default: void 0 },
18033
18033
  externalContextSchemaModifiers: {},
@@ -18051,10 +18051,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18051
18051
  return Array.isArray(e) ? e : [];
18052
18052
  }
18053
18053
  return [];
18054
- }, s = e, { errors: c } = Nr(s), l = W(e, "agentId"), u = W(e, "name"), d = W(e, "type"), f = W(e, "initialMessage"), p = W(e, "messagePlaceholder"), m = W(e, "dismissableNotice"), h = W(e, "footerMessage"), g = W(e, "model"), _ = A(() => me(g.value)), v = A(() => s.catalog?.find((e) => e.id === g.value)), x = A(() => {
18054
+ }, s = e, { errors: c } = Nr(s), l = W(e, "agentId"), u = W(e, "name"), d = W(e, "type"), f = W(e, "initialMessage"), p = W(e, "messagePlaceholder"), m = W(e, "dismissableNotice"), h = W(e, "footerMessage"), g = W(e, "model"), _ = A(() => me(g.value)), v = A(() => s.catalog?.find((e) => e.id === g.value)), y = A(() => {
18055
18055
  let e = v.value;
18056
18056
  if (e) return e.retired ? n("hint.modelRetired") : vt.value && e.zdr === Ti.None || yt.value && e.noTraining === Ti.None ? n("hint.modelNotCompatible") : vt.value && e.zdr === Ti.Some || yt.value && e.noTraining === Ti.Some ? n("hint.modelGuaranteedOnSome") : e.contextWindow ? n("hint.modelContextWindow", { count: r(Math.round(e.contextWindow / 1e3)) }) : void 0;
18057
- }), S = W(e, "temperature"), C = W(e, "prompt"), te = W(e, "status"), w = W(e, "visibility"), ae = W(e, "limit"), oe = W(e, "maxStepCount"), le = W(e, "maxOutputTokens"), ue = W(e, "presencePenalty"), de = W(e, "frequencyPenalty"), fe = W(e, "searchMode"), pe = W(e, "reasoning"), he = W(e, "webSearch"), ge = W(e, "theme"), _e = W(e, "mainColor"), ve = W(e, "textColor"), ye = W(e, "useColorsForAgentHeader"), be = W(e, "welcomePopup"), xe = W(e, "interactiveLogin"), Se = W(e, "floatingButtonPosition"), Ce = W(e, "maxMessageLength"), we = W(e, "media"), Te = W(e, "minuteRateLimit"), Ee = W(e, "hourRateLimit"), De = W(e, "dayRateLimit"), Oe = W(e, "monthRateLimit"), ke = W(e, "trustedOrigins"), Ae = W(e, "disabledTools"), je = W(e, "approvalTools"), Me = W(e, "useAllUserKb"), Ne = W(e, "useAllUserFiles"), Pe = W(e, "formMaxSteps"), Fe = W(e, "formMaxOptionsPerStep"), Ie = W(e, "widgetUrl"), Le = W(e, "loadDelay"), Re = W(e, "loaderStrategy"), ze = W(e, "fileUploadEnabled"), Be = W(e, "toolWorkingSetMode"), Ve = W(e, "voiceEnabled"), He = W(e, "voiceMaxSessionSeconds"), Ue = W(e, "voiceId"), We = W(e, "voiceLanguage"), Ge = W(e, "voiceFirstMessage"), Ke = W(e, "voiceCascadeTimeoutSeconds"), qe = W(e, "voiceFillerAfterSeconds"), Je = W(e, "voiceFillerMessage"), Ye = W(e, "voiceIgnoreBackgroundVoices"), Ze = W(e, "voiceTurnEagerness"), Qe = W(e, "voiceTurnTimeoutSeconds"), $e = [
18057
+ }), b = W(e, "temperature"), C = W(e, "prompt"), te = W(e, "status"), ne = W(e, "visibility"), ae = W(e, "limit"), se = W(e, "maxStepCount"), le = W(e, "maxOutputTokens"), ue = W(e, "presencePenalty"), de = W(e, "frequencyPenalty"), fe = W(e, "searchMode"), pe = W(e, "reasoning"), he = W(e, "webSearch"), ge = W(e, "theme"), _e = W(e, "mainColor"), ve = W(e, "textColor"), ye = W(e, "useColorsForAgentHeader"), be = W(e, "welcomePopup"), xe = W(e, "interactiveLogin"), Se = W(e, "floatingButtonPosition"), Ce = W(e, "maxMessageLength"), we = W(e, "media"), Te = W(e, "minuteRateLimit"), Ee = W(e, "hourRateLimit"), De = W(e, "dayRateLimit"), Oe = W(e, "monthRateLimit"), ke = W(e, "trustedOrigins"), Ae = W(e, "disabledTools"), je = W(e, "approvalTools"), Me = W(e, "useAllUserKb"), Ne = W(e, "useAllUserFiles"), Pe = W(e, "formMaxSteps"), Fe = W(e, "formMaxOptionsPerStep"), Ie = W(e, "widgetUrl"), Le = W(e, "loadDelay"), Re = W(e, "loaderStrategy"), ze = W(e, "fileUploadEnabled"), Be = W(e, "toolWorkingSetMode"), Ve = W(e, "voiceEnabled"), He = W(e, "voiceMaxSessionSeconds"), Ue = W(e, "voiceId"), We = W(e, "voiceLanguage"), Ge = W(e, "voiceFirstMessage"), Ke = W(e, "voiceCascadeTimeoutSeconds"), qe = W(e, "voiceFillerAfterSeconds"), Je = W(e, "voiceFillerMessage"), Ye = W(e, "voiceIgnoreBackgroundVoices"), Ze = W(e, "voiceTurnEagerness"), Qe = W(e, "voiceTurnTimeoutSeconds"), $e = [
18058
18058
  "it",
18059
18059
  "en",
18060
18060
  "es",
@@ -18169,7 +18169,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18169
18169
  label: n("label.mimeTypeText"),
18170
18170
  value: "text"
18171
18171
  }
18172
- ]), Mt = A(() => Object.values(ne).map((e) => ({
18172
+ ]), Mt = A(() => Object.values(ce).map((e) => ({
18173
18173
  label: n(`agent.toolWorkingSetMode.${e}`),
18174
18174
  value: e
18175
18175
  }))), Nt = A({
@@ -18251,12 +18251,12 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18251
18251
  return !Ae.value.includes(e);
18252
18252
  }
18253
18253
  function O(e) {
18254
- return e === T.ShowForm || e === T.UserMemory || e === T.SearchInUserFiles || y(e);
18254
+ return e === T.ShowForm || e === T.UserMemory || e === T.SearchInUserFiles || x(e);
18255
18255
  }
18256
18256
  function Rt(e) {
18257
18257
  return je.value.includes(e);
18258
18258
  }
18259
- let zt = A(() => je.value.filter((e) => y(e) && D(e)).map((e) => n(`agent.tool.${e}`)));
18259
+ let zt = A(() => je.value.filter((e) => x(e) && D(e)).map((e) => n(`agent.tool.${e}`)));
18260
18260
  function Bt(e, t) {
18261
18261
  je.value = t ? [...je.value, e] : je.value.filter((t) => t !== e);
18262
18262
  }
@@ -18267,7 +18267,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18267
18267
  }
18268
18268
  Ae.value = [...Ae.value, e], Bt(e, !1), e === T.UserMemory && (Me.value = !1), e === T.SearchInUserFiles && (Ne.value = !1);
18269
18269
  }
18270
- let Ht = A(() => g.value?.split("/")[0] ?? ""), Ut = A(() => d.value === re.Chat), Wt = A(() => {
18270
+ let Ht = A(() => g.value?.split("/")[0] ?? ""), Ut = A(() => d.value === w.Chat), Wt = A(() => {
18271
18271
  let e = [
18272
18272
  {
18273
18273
  tab: "general",
@@ -18293,7 +18293,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18293
18293
  }), Gt = A(() => `${window.location.origin}/app/${s.organizationSlug}/${l.value}`), Kt = A(() => `${window.location.origin}/app/${s.organizationSlug}/${l.value}/chat`), qt = A(() => `<script src="${`${s.baseUrl}/api/v1/public/organizations/${s.organizationSlug}/agents/${l.value}/embed.js`}" defer><\/script>`), Jt = A(() => `<iframe src="${Gt.value}" width="100%" height="600" frameborder="0"
18294
18294
  style="border: 1px solid #e5e7eb; border-radius: 8px;"></iframe>`);
18295
18295
  return (s, c) => {
18296
- let l = $n, v = Yn, ne = nr, re = tr, me = Jn, je = ir, et = Kn, tt = Vn, nt = rr, rt = Gn, st = Xn;
18296
+ let l = $n, v = Yn, w = nr, ce = tr, me = Jn, je = ir, et = Kn, tt = Vn, nt = rr, rt = Gn, st = Xn;
18297
18297
  return z(), N("div", Tw, [I(nt, {
18298
18298
  items: Wt.value,
18299
18299
  lazy: "once"
@@ -18347,10 +18347,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18347
18347
  "options",
18348
18348
  "disabled"
18349
18349
  ]), I(v, {
18350
- modelValue: w.value,
18351
- "onUpdate:modelValue": c[2] ||= (e) => w.value = e,
18350
+ modelValue: ne.value,
18351
+ "onUpdate:modelValue": c[2] ||= (e) => ne.value = e,
18352
18352
  name: "visibility",
18353
- icon: U(FC)(w.value),
18353
+ icon: U(FC)(ne.value),
18354
18354
  label: U(n)("label.visibility"),
18355
18355
  placeholder: U(n)("placeholder.select"),
18356
18356
  unselectable: !1,
@@ -18386,7 +18386,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18386
18386
  "options",
18387
18387
  "disabled"
18388
18388
  ])]),
18389
- I(ne, {
18389
+ I(w, {
18390
18390
  modelValue: u.value,
18391
18391
  "onUpdate:modelValue": c[3] ||= (e) => u.value = e,
18392
18392
  name: "name",
@@ -18418,7 +18418,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18418
18418
  "disallow-prompt-training",
18419
18419
  "current"
18420
18420
  ]),
18421
- x.value ? (z(), N("p", kw, H(x.value), 1)) : M("", !0),
18421
+ y.value ? (z(), N("p", kw, H(y.value), 1)) : M("", !0),
18422
18422
  _.value ? (z(), j(QS, {
18423
18423
  key: 1,
18424
18424
  icon: "ri:server-line",
@@ -18468,7 +18468,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18468
18468
  "disallow-prompt-training",
18469
18469
  "exclude-models"
18470
18470
  ])),
18471
- I(ne, {
18471
+ I(w, {
18472
18472
  modelValue: le.value,
18473
18473
  "onUpdate:modelValue": c[7] ||= (e) => le.value = e,
18474
18474
  name: "maxOutputTokens",
@@ -18482,9 +18482,9 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18482
18482
  "label",
18483
18483
  "placeholder"
18484
18484
  ]),
18485
- I(re, {
18486
- modelValue: S.value,
18487
- "onUpdate:modelValue": c[8] ||= (e) => S.value = e,
18485
+ I(ce, {
18486
+ modelValue: b.value,
18487
+ "onUpdate:modelValue": c[8] ||= (e) => b.value = e,
18488
18488
  name: "temperature",
18489
18489
  label: U(n)("label.temperature"),
18490
18490
  min: "0",
@@ -18496,7 +18496,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18496
18496
  "label",
18497
18497
  "format-value"
18498
18498
  ]),
18499
- I(re, {
18499
+ I(ce, {
18500
18500
  modelValue: ue.value,
18501
18501
  "onUpdate:modelValue": c[9] ||= (e) => ue.value = e,
18502
18502
  name: "presencePenalty",
@@ -18510,7 +18510,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18510
18510
  "label",
18511
18511
  "format-value"
18512
18512
  ]),
18513
- I(re, {
18513
+ I(ce, {
18514
18514
  modelValue: de.value,
18515
18515
  "onUpdate:modelValue": c[10] ||= (e) => de.value = e,
18516
18516
  name: "frequencyPenalty",
@@ -18524,7 +18524,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18524
18524
  "label",
18525
18525
  "format-value"
18526
18526
  ]),
18527
- I(ne, {
18527
+ I(w, {
18528
18528
  modelValue: bt.value,
18529
18529
  "onUpdate:modelValue": c[11] ||= (e) => bt.value = e,
18530
18530
  name: "providerTimeoutMs",
@@ -18601,7 +18601,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18601
18601
  "placeholder",
18602
18602
  "options"
18603
18603
  ]),
18604
- I(re, {
18604
+ I(ce, {
18605
18605
  modelValue: ae.value,
18606
18606
  "onUpdate:modelValue": c[15] ||= (e) => ae.value = e,
18607
18607
  name: "limit",
@@ -18615,9 +18615,9 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18615
18615
  "label",
18616
18616
  "format-value"
18617
18617
  ]),
18618
- I(re, {
18619
- modelValue: oe.value,
18620
- "onUpdate:modelValue": c[16] ||= (e) => oe.value = e,
18618
+ I(ce, {
18619
+ modelValue: se.value,
18620
+ "onUpdate:modelValue": c[16] ||= (e) => se.value = e,
18621
18621
  name: "maxStepCount",
18622
18622
  label: U(n)("label.maxStepCount"),
18623
18623
  min: "1",
@@ -18657,7 +18657,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18657
18657
  }), I(je, {
18658
18658
  position: "bottom",
18659
18659
  value: U(n)("hint.freshnessScaleTooltip")
18660
- }, null, 8, ["value"])])]), I(re, {
18660
+ }, null, 8, ["value"])])]), I(ce, {
18661
18661
  id: a.freshnessScale,
18662
18662
  modelValue: Et.value,
18663
18663
  "onUpdate:modelValue": c[18] ||= (e) => Et.value = e,
@@ -18682,7 +18682,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18682
18682
  position: "bottom",
18683
18683
  value: U(n)("hint.freshnessWeightTooltip")
18684
18684
  }, null, 8, ["value"])])]),
18685
- Tt.value?.freshness ? (z(), j(re, {
18685
+ Tt.value?.freshness ? (z(), j(ce, {
18686
18686
  key: 0,
18687
18687
  id: a.freshnessWeight,
18688
18688
  modelValue: Tt.value.freshness.weight,
@@ -18722,7 +18722,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18722
18722
  }), I(je, {
18723
18723
  position: "bottom",
18724
18724
  value: U(n)("hint.mmrDiversityTooltip")
18725
- }, null, 8, ["value"])])]), Tt.value?.mmr ? (z(), j(re, {
18725
+ }, null, 8, ["value"])])]), Tt.value?.mmr ? (z(), j(ce, {
18726
18726
  key: 0,
18727
18727
  id: a.mmrDiversity,
18728
18728
  modelValue: Tt.value.mmr.diversity,
@@ -18746,7 +18746,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18746
18746
  }), I(je, {
18747
18747
  position: "bottom",
18748
18748
  value: U(n)("hint.mmrCandidatesLimitTooltip")
18749
- }, null, 8, ["value"])])]), Tt.value?.mmr ? (z(), j(re, {
18749
+ }, null, 8, ["value"])])]), Tt.value?.mmr ? (z(), j(ce, {
18750
18750
  key: 0,
18751
18751
  id: a.mmrCandidatesLimit,
18752
18752
  modelValue: Tt.value.mmr.candidatesLimit,
@@ -18883,7 +18883,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18883
18883
  "placeholder",
18884
18884
  "options"
18885
18885
  ]),
18886
- I(ne, {
18886
+ I(w, {
18887
18887
  modelValue: Ge.value,
18888
18888
  "onUpdate:modelValue": c[29] ||= (e) => Ge.value = e,
18889
18889
  name: "voiceFirstMessage",
@@ -18951,7 +18951,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18951
18951
  "placeholder",
18952
18952
  "options"
18953
18953
  ]),
18954
- P("div", dT, [I(ne, {
18954
+ P("div", dT, [I(w, {
18955
18955
  modelValue: Qe.value,
18956
18956
  "onUpdate:modelValue": c[32] ||= (e) => Qe.value = e,
18957
18957
  name: "voiceTurnTimeoutSeconds",
@@ -18966,7 +18966,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18966
18966
  "modelValue",
18967
18967
  "label",
18968
18968
  "placeholder"
18969
- ]), I(ne, {
18969
+ ]), I(w, {
18970
18970
  modelValue: Ke.value,
18971
18971
  "onUpdate:modelValue": c[33] ||= (e) => Ke.value = e,
18972
18972
  name: "voiceCascadeTimeoutSeconds",
@@ -18983,7 +18983,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
18983
18983
  "placeholder"
18984
18984
  ])]),
18985
18985
  P("small", fT, H(U(n)("hint.voiceTurnTimeoutSeconds")), 1),
18986
- I(ne, {
18986
+ I(w, {
18987
18987
  modelValue: He.value,
18988
18988
  "onUpdate:modelValue": c[34] ||= (e) => He.value = e,
18989
18989
  name: "voiceMaxSessionSeconds",
@@ -19005,7 +19005,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19005
19005
  default: K(() => [F(H(U(n)("hint.voiceSlowAgentOnCall")), 1)]),
19006
19006
  _: 1
19007
19007
  }),
19008
- I(ne, {
19008
+ I(w, {
19009
19009
  modelValue: qe.value,
19010
19010
  "onUpdate:modelValue": c[35] ||= (e) => qe.value = e,
19011
19011
  name: "voiceFillerAfterSeconds",
@@ -19023,7 +19023,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19023
19023
  "hint-label",
19024
19024
  "placeholder"
19025
19025
  ]),
19026
- I(ne, {
19026
+ I(w, {
19027
19027
  modelValue: Je.value,
19028
19028
  "onUpdate:modelValue": c[36] ||= (e) => Je.value = e,
19029
19029
  name: "voiceFillerMessage",
@@ -19197,7 +19197,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19197
19197
  "label",
19198
19198
  "hint-label"
19199
19199
  ])) : M("", !0),
19200
- !e.playground && Ut.value && w.value === "public" ? (z(), j(ZS, {
19200
+ !e.playground && Ut.value && ne.value === "public" ? (z(), j(ZS, {
19201
19201
  key: 3,
19202
19202
  modelValue: xe.value,
19203
19203
  "onUpdate:modelValue": c[45] ||= (e) => xe.value = e,
@@ -19241,7 +19241,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19241
19241
  "label",
19242
19242
  "options"
19243
19243
  ])) : M("", !0),
19244
- Ut.value ? (z(), j(ne, {
19244
+ Ut.value ? (z(), j(w, {
19245
19245
  key: 5,
19246
19246
  modelValue: Ce.value,
19247
19247
  "onUpdate:modelValue": c[47] ||= (e) => Ce.value = e,
@@ -19302,7 +19302,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19302
19302
  "placeholder",
19303
19303
  "onUpdate:modelValue"
19304
19304
  ]),
19305
- I(ne, {
19305
+ I(w, {
19306
19306
  "model-value": p.value?.[e] ?? "",
19307
19307
  name: `messagePlaceholder.${e}`,
19308
19308
  label: U(n)("label.messagePlaceholder"),
@@ -19394,7 +19394,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19394
19394
  "label",
19395
19395
  "hint-label"
19396
19396
  ]), ze.value ? (z(), N(k, { key: 0 }, [
19397
- I(ne, {
19397
+ I(w, {
19398
19398
  modelValue: Pt.value,
19399
19399
  "onUpdate:modelValue": c[50] ||= (e) => Pt.value = e,
19400
19400
  disabled: e.playground,
@@ -19430,7 +19430,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19430
19430
  "placeholder",
19431
19431
  "options"
19432
19432
  ]),
19433
- P("div", mT, [I(ne, {
19433
+ P("div", mT, [I(w, {
19434
19434
  modelValue: pt.value,
19435
19435
  "onUpdate:modelValue": c[52] ||= (e) => pt.value = e,
19436
19436
  disabled: e.playground,
@@ -19445,7 +19445,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19445
19445
  "disabled",
19446
19446
  "label",
19447
19447
  "placeholder"
19448
- ]), I(ne, {
19448
+ ]), I(w, {
19449
19449
  modelValue: mt.value,
19450
19450
  "onUpdate:modelValue": c[53] ||= (e) => mt.value = e,
19451
19451
  disabled: e.playground,
@@ -19534,7 +19534,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19534
19534
  Rt(t) ? (z(), j(WC, { key: 1 })) : M("", !0)
19535
19535
  ]),
19536
19536
  P("small", CT, H(U(n)(`hint.tool.${t}`)), 1),
19537
- U(ee)(t) && U(b)(t) ? (z(), N("div", {
19537
+ U(ee)(t) && U(S)(t) ? (z(), N("div", {
19538
19538
  key: 0,
19539
19539
  class: "flex items-center gap-4 self-start mt-4 pt-4 w-full border-t border-surface-3",
19540
19540
  title: U(n)("hint.platformSupported")
@@ -19571,7 +19571,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19571
19571
  class: "border border-surface-3 rounded-lg mx-md mb-md"
19572
19572
  }, {
19573
19573
  default: K(() => [P("div", TT, [
19574
- t === U(T).ShowForm ? (z(), N(k, { key: 0 }, [I(ne, {
19574
+ t === U(T).ShowForm ? (z(), N(k, { key: 0 }, [I(w, {
19575
19575
  modelValue: Pe.value,
19576
19576
  "onUpdate:modelValue": c[56] ||= (e) => Pe.value = e,
19577
19577
  name: "formMaxSteps",
@@ -19585,7 +19585,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19585
19585
  "modelValue",
19586
19586
  "label",
19587
19587
  "disabled"
19588
- ]), I(ne, {
19588
+ ]), I(w, {
19589
19589
  modelValue: Fe.value,
19590
19590
  "onUpdate:modelValue": c[57] ||= (e) => Fe.value = e,
19591
19591
  name: "formMaxOptionsPerStep",
@@ -19628,7 +19628,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19628
19628
  "hint-label",
19629
19629
  "disabled"
19630
19630
  ])) : M("", !0),
19631
- U(y)(t) ? (z(), j(ZS, {
19631
+ U(x)(t) ? (z(), j(ZS, {
19632
19632
  key: 3,
19633
19633
  "model-value": Rt(t),
19634
19634
  name: `tool.${t}.approval`,
@@ -19652,7 +19652,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19652
19652
  }, 1024)) : M("", !0)], 64))), 128))])
19653
19653
  ]),
19654
19654
  "panel::embed": K(() => [P("div", ET, [
19655
- Ct.value.includes(U(ce).Widget) ? M("", !0) : (z(), j(QS, {
19655
+ Ct.value.includes(U(oe).Widget) ? M("", !0) : (z(), j(QS, {
19656
19656
  key: 0,
19657
19657
  level: "warning",
19658
19658
  class: "mb-0"
@@ -19660,7 +19660,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19660
19660
  default: K(() => [F(H(U(n)("hint.channelWidgetDisabled")), 1)]),
19661
19661
  _: 1
19662
19662
  })),
19663
- Ct.value.includes(U(ce).App) ? M("", !0) : (z(), j(QS, {
19663
+ Ct.value.includes(U(oe).App) ? M("", !0) : (z(), j(QS, {
19664
19664
  key: 1,
19665
19665
  level: "warning",
19666
19666
  class: "mb-0"
@@ -19679,14 +19679,14 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19679
19679
  _: 1
19680
19680
  }, 8, ["source"]),
19681
19681
  e.playground ? M("", !0) : (z(), N("div", kT, [
19682
- I(ne, {
19682
+ I(w, {
19683
19683
  modelValue: Ie.value,
19684
19684
  "onUpdate:modelValue": c[60] ||= (e) => Ie.value = e,
19685
19685
  name: "widgetUrl",
19686
19686
  type: "url",
19687
19687
  icon: "ri:links-line",
19688
19688
  label: U(n)("label.widgetUrl"),
19689
- placeholder: U(ie)
19689
+ placeholder: U(re)
19690
19690
  }, null, 8, [
19691
19691
  "modelValue",
19692
19692
  "label",
@@ -19698,7 +19698,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19698
19698
  class: "border border-surface-3 rounded-lg mb-md"
19699
19699
  }, {
19700
19700
  default: K(() => [P("div", AT, [
19701
- I(ne, {
19701
+ I(w, {
19702
19702
  modelValue: Le.value,
19703
19703
  "onUpdate:modelValue": c[61] ||= (e) => Le.value = e,
19704
19704
  name: "loadDelay",
@@ -19727,15 +19727,15 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19727
19727
  options: [
19728
19728
  {
19729
19729
  label: U(n)("label.loaderStrategyInlineModule"),
19730
- value: U(se).InlineModule
19730
+ value: U(ie).InlineModule
19731
19731
  },
19732
19732
  {
19733
19733
  label: U(n)("label.loaderStrategyScriptSrc"),
19734
- value: U(se).ScriptSrc
19734
+ value: U(ie).ScriptSrc
19735
19735
  },
19736
19736
  {
19737
19737
  label: U(n)("label.loaderStrategyDynamicImport"),
19738
- value: U(se).DynamicImport
19738
+ value: U(ie).DynamicImport
19739
19739
  }
19740
19740
  ]
19741
19741
  }, null, 8, [
@@ -19831,7 +19831,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19831
19831
  ])]),
19832
19832
  "panel::security": K(() => [I(oo, { legend: U(n)("label.rateLimits") }, {
19833
19833
  default: K(() => [P("div", LT, [
19834
- I(ne, {
19834
+ I(w, {
19835
19835
  modelValue: Te.value,
19836
19836
  "onUpdate:modelValue": c[68] ||= (e) => Te.value = e,
19837
19837
  name: "minuteRateLimit",
@@ -19848,7 +19848,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19848
19848
  "invalid",
19849
19849
  "invalid-label"
19850
19850
  ]),
19851
- I(ne, {
19851
+ I(w, {
19852
19852
  modelValue: Ee.value,
19853
19853
  "onUpdate:modelValue": c[69] ||= (e) => Ee.value = e,
19854
19854
  name: "hourRateLimit",
@@ -19865,7 +19865,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19865
19865
  "invalid",
19866
19866
  "invalid-label"
19867
19867
  ]),
19868
- I(ne, {
19868
+ I(w, {
19869
19869
  modelValue: De.value,
19870
19870
  "onUpdate:modelValue": c[70] ||= (e) => De.value = e,
19871
19871
  name: "dayRateLimit",
@@ -19882,7 +19882,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19882
19882
  "invalid",
19883
19883
  "invalid-label"
19884
19884
  ]),
19885
- I(ne, {
19885
+ I(w, {
19886
19886
  modelValue: Oe.value,
19887
19887
  "onUpdate:modelValue": c[71] ||= (e) => Oe.value = e,
19888
19888
  name: "monthRateLimit",
@@ -19913,7 +19913,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
19913
19913
  "default-value": () => "",
19914
19914
  "allow-empty": ""
19915
19915
  }, {
19916
- default: K(({ index: e }) => [I(ne, {
19916
+ default: K(({ index: e }) => [I(w, {
19917
19917
  modelValue: ke.value.origins[e],
19918
19918
  "onUpdate:modelValue": (t) => ke.value.origins[e] = t,
19919
19919
  name: `trustedOrigins.${e}`,
@@ -20068,10 +20068,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
20068
20068
  }, o = t, { t: s } = Vr({ useScope: "global" }), c = De(n.agentId), { conversations: l, isLoadingConversations: u, localChatId: d } = Qr(c), { startNewChat: f, navigate: p, renameChatTitle: m, deleteChat: h } = c, { editingId: g, editingTitle: _, startEdit: v, confirmEdit: y, cancelEdit: ee, onRenameKeydown: b, requestDelete: x } = ze({
20069
20069
  renameChatTitle: m,
20070
20070
  deleteChat: h
20071
- }), S = B(""), C = Wr(S, 300), te = A(() => {
20071
+ }), S = B(""), C = Wr(S, 300), w = A(() => {
20072
20072
  let e = C.value.trim().toLowerCase();
20073
20073
  return e ? l.value.filter((t) => Re(t).toLowerCase().includes(e)) : l.value;
20074
- }), w = A(() => {
20074
+ }), te = A(() => {
20075
20075
  let e = (/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0), t = {
20076
20076
  today: [],
20077
20077
  yesterday: [],
@@ -20079,7 +20079,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
20079
20079
  last30Days: [],
20080
20080
  older: []
20081
20081
  };
20082
- for (let n of te.value) {
20082
+ for (let n of w.value) {
20083
20083
  let r = n.lastMessageAt ? new Date(n.lastMessageAt).getTime() : 0;
20084
20084
  r >= e ? t.today.push(n) : r >= e - XT ? t.yesterday.push(n) : r >= e - 7 * XT ? t.last7Days.push(n) : r >= e - 30 * XT ? t.last30Days.push(n) : t.older.push(n);
20085
20085
  }
@@ -20092,15 +20092,15 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
20092
20092
  d.value = e, p("chat"), a();
20093
20093
  }, re = () => {
20094
20094
  f(), a();
20095
- }, ie = A(() => i.value && !r.value), ae = B(), oe = null, T = () => Array.from(ae.value?.querySelectorAll("button, input, select, textarea, a[href], [tabindex]:not([tabindex=\"-1\"])") ?? []).filter((e) => !e.hasAttribute("disabled"));
20096
- G(ie, async (e) => {
20097
- e ? (oe = document.activeElement instanceof HTMLElement ? document.activeElement : null, await vr(), T()[0]?.focus()) : (oe?.focus(), oe = null);
20095
+ }, T = A(() => i.value && !r.value), ie = B(), ae = null, oe = () => Array.from(ie.value?.querySelectorAll("button, input, select, textarea, a[href], [tabindex]:not([tabindex=\"-1\"])") ?? []).filter((e) => !e.hasAttribute("disabled"));
20096
+ G(T, async (e) => {
20097
+ e ? (ae = document.activeElement instanceof HTMLElement ? document.activeElement : null, await vr(), oe()[0]?.focus()) : (ae?.focus(), ae = null);
20098
20098
  }), Ur("Escape", () => {
20099
- ie.value && (r.value = !0);
20099
+ T.value && (r.value = !0);
20100
20100
  });
20101
20101
  let se = (e) => {
20102
- if (e.key !== "Tab" || !ie.value) return;
20103
- let t = T();
20102
+ if (e.key !== "Tab" || !T.value) return;
20103
+ let t = oe();
20104
20104
  if (t.length === 0) return;
20105
20105
  let n = t[0], r = t[t.length - 1];
20106
20106
  e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
@@ -20108,7 +20108,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
20108
20108
  return (t, n) => {
20109
20109
  let a = Kn, c = $n, f = nr;
20110
20110
  return z(), N(k, null, [I(or, { name: "pk-chat-sidebar-backdrop" }, {
20111
- default: K(() => [ie.value ? (z(), N("div", {
20111
+ default: K(() => [T.value ? (z(), N("div", {
20112
20112
  key: 0,
20113
20113
  class: "pk-chat-sidebar__backdrop",
20114
20114
  "aria-hidden": "true",
@@ -20117,7 +20117,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
20117
20117
  _: 1
20118
20118
  }), P("aside", {
20119
20119
  ref_key: "sidebarEl",
20120
- ref: ae,
20120
+ ref: ie,
20121
20121
  class: yr(["pk-chat-sidebar", { "pk-chat-sidebar--collapsed": r.value }]),
20122
20122
  style: xr(e.accentColor ? { "--chat-sidebar-accent": e.accentColor } : void 0),
20123
20123
  inert: r.value,
@@ -20176,7 +20176,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
20176
20176
  U(u) && U(l).length === 0 ? (z(), N("div", GT, [(z(), N(k, null, Or(6, (e) => P("div", {
20177
20177
  key: e,
20178
20178
  class: "vv-skeleton__item rounded-md h-36"
20179
- })), 64))])) : (z(), N("nav", KT, [w.value.length === 0 ? (z(), N("p", qT, H(U(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, Or(w.value, (t) => (z(), N("div", {
20179
+ })), 64))])) : (z(), N("nav", KT, [te.value.length === 0 ? (z(), N("p", qT, H(U(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, Or(te.value, (t) => (z(), N("div", {
20180
20180
  key: t.key,
20181
20181
  class: "pk-chat-sidebar__group"
20182
20182
  }, [P("span", JT, H(t.label), 1), (z(!0), N(k, null, Or(t.items, (t) => (z(), j(BT, {
@@ -20508,7 +20508,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
20508
20508
  ...ee.length > 0 ? { connection: ee.join(" · ") } : {},
20509
20509
  ...b.length > 0 ? { flags: b.join(" · ") } : {}
20510
20510
  };
20511
- }), o = A(() => t.message?.metadata?.transport === oe.Voice), s = A(() => t.message?.metadata?.externalContext && Object.keys(t.message.metadata.externalContext).length > 0), c = A(() => t.message?.metadata?.platformContext && Object.keys(t.message.metadata.platformContext).length > 0);
20511
+ }), o = A(() => t.message?.metadata?.transport === ae.Voice), s = A(() => t.message?.metadata?.externalContext && Object.keys(t.message.metadata.externalContext).length > 0), c = A(() => t.message?.metadata?.platformContext && Object.keys(t.message.metadata.platformContext).length > 0);
20512
20512
  return (t, l) => {
20513
20513
  let u = $n, d = Vn, f = Hn, p = kr("PjResizablePanel");
20514
20514
  return z(), N("div", ZE, [