@8wave/ai-elements 0.127.0-beta.15 → 0.127.0-beta.16

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 (110) hide show
  1. package/dist/_chunks/{PkFilePreview-yKT0QkEB.js → PkFilePreview-3_ZmPzQO.js} +3 -3
  2. package/dist/_chunks/{PkFilePreview-yKT0QkEB.js.map → PkFilePreview-3_ZmPzQO.js.map} +1 -1
  3. package/dist/_chunks/{PkFilePreviewDialog-B4yKQbLi.js → PkFilePreviewDialog-m3iqn0rl.js} +2 -2
  4. package/dist/_chunks/{PkFilePreviewDialog-B4yKQbLi.js.map → PkFilePreviewDialog-m3iqn0rl.js.map} +1 -1
  5. package/dist/_chunks/{PkImageEditorDialog-BF6tQvTY.js → PkImageEditorDialog-W8TCEHBJ.js} +2 -2
  6. package/dist/_chunks/{PkImageEditorDialog-BF6tQvTY.js.map → PkImageEditorDialog-W8TCEHBJ.js.map} +1 -1
  7. package/dist/_chunks/{PkSelectionActions-J1AaO8Of.js → PkSelectionActions-B14kAu8T.js} +2 -2
  8. package/dist/_chunks/{PkSelectionActions-J1AaO8Of.js.map → PkSelectionActions-B14kAu8T.js.map} +1 -1
  9. package/dist/_chunks/{PkStreamingMarkdown-CvIq4j9U.js → PkStreamingMarkdown-Df_VzmC0.js} +2 -2
  10. package/dist/_chunks/{PkStreamingMarkdown-CvIq4j9U.js.map → PkStreamingMarkdown-Df_VzmC0.js.map} +1 -1
  11. package/dist/_chunks/{PkToolChatFile-Y5CR96-B.js → PkToolChatFile-BXrgzaIj.js} +2 -2
  12. package/dist/_chunks/{PkToolChatFile-Y5CR96-B.js.map → PkToolChatFile-BXrgzaIj.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowArtifact-CBsIMKuq.js → PkToolShowArtifact-Df2ibXU_.js} +2 -2
  14. package/dist/_chunks/{PkToolShowArtifact-CBsIMKuq.js.map → PkToolShowArtifact-Df2ibXU_.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowContactForm-D8tYijcg.js → PkToolShowContactForm-CfW3f_Zs.js} +2 -2
  16. package/dist/_chunks/{PkToolShowContactForm-D8tYijcg.js.map → PkToolShowContactForm-CfW3f_Zs.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowForm-CM63L5WC.js → PkToolShowForm-Chj3bqAn.js} +3 -3
  18. package/dist/_chunks/{PkToolShowForm-CM63L5WC.js.map → PkToolShowForm-Chj3bqAn.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowSources-BoJmMb4K.js → PkToolShowSources-B9qNtyum.js} +2 -2
  20. package/dist/_chunks/{PkToolShowSources-BoJmMb4K.js.map → PkToolShowSources-B9qNtyum.js.map} +1 -1
  21. package/dist/_chunks/{utils-BYVRPDrv.js → utils-C1mMVCFZ.js} +4 -3
  22. package/dist/_chunks/utils-C1mMVCFZ.js.map +1 -0
  23. package/dist/ai-elements.es.js +604 -587
  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/PkChatbotLocalFolders.js +1 -1
  29. package/dist-vue/PkChatbotMessages.js +1 -1
  30. package/dist-vue/PkChatbotStepPayload.js +1 -1
  31. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  32. package/dist-vue/PkChatbotSteps.js +1 -1
  33. package/dist-vue/PkChatbotViewChat.js +1 -1
  34. package/dist-vue/PkChatbotViewConversations.js +1 -1
  35. package/dist-vue/PkChatbotViewFiles.js +1 -1
  36. package/dist-vue/PkChatbotViewProfile.js +1 -1
  37. package/dist-vue/_chunks/{PkChatbot-CrHeZSwq.js → PkChatbot-BWgqvPsG.js} +8 -8
  38. package/dist-vue/_chunks/{PkChatbot-CrHeZSwq.js.map → PkChatbot-BWgqvPsG.js.map} +1 -1
  39. package/dist-vue/_chunks/{PkChatbotEmptyState-BSdctGUp.js → PkChatbotEmptyState-CS0l2BBa.js} +2 -2
  40. package/dist-vue/_chunks/{PkChatbotEmptyState-BSdctGUp.js.map → PkChatbotEmptyState-CS0l2BBa.js.map} +1 -1
  41. package/dist-vue/_chunks/{PkChatbotInput-Bkr2FMAR.js → PkChatbotInput-9PwloFKx.js} +29 -15
  42. package/dist-vue/_chunks/PkChatbotInput-9PwloFKx.js.map +1 -0
  43. package/dist-vue/_chunks/PkChatbotLocalFolders-D7kxpwR2.js +122 -0
  44. package/dist-vue/_chunks/PkChatbotLocalFolders-D7kxpwR2.js.map +1 -0
  45. package/dist-vue/_chunks/{PkChatbotMessages-Cf19Jak8.js → PkChatbotMessages-CU0y2j8g.js} +16 -16
  46. package/dist-vue/_chunks/{PkChatbotMessages-Cf19Jak8.js.map → PkChatbotMessages-CU0y2j8g.js.map} +1 -1
  47. package/dist-vue/_chunks/{PkChatbotStepPayload-BWeGBOGl.js → PkChatbotStepPayload-Ds9rz4MI.js} +2 -2
  48. package/dist-vue/_chunks/{PkChatbotStepPayload-BWeGBOGl.js.map → PkChatbotStepPayload-Ds9rz4MI.js.map} +1 -1
  49. package/dist-vue/_chunks/{PkChatbotStepToolDetail-k_purHyE.js → PkChatbotStepToolDetail-C_xWXZkE.js} +3 -3
  50. package/dist-vue/_chunks/{PkChatbotStepToolDetail-k_purHyE.js.map → PkChatbotStepToolDetail-C_xWXZkE.js.map} +1 -1
  51. package/dist-vue/_chunks/{PkChatbotSteps-DvYhk_xP.js → PkChatbotSteps-CjX5nxsq.js} +6 -6
  52. package/dist-vue/_chunks/{PkChatbotSteps-DvYhk_xP.js.map → PkChatbotSteps-CjX5nxsq.js.map} +1 -1
  53. package/dist-vue/_chunks/{PkChatbotViewChat-D-tjQF-v.js → PkChatbotViewChat-D5DiEgwE.js} +234 -237
  54. package/dist-vue/_chunks/PkChatbotViewChat-D5DiEgwE.js.map +1 -0
  55. package/dist-vue/_chunks/{PkChatbotViewConversations-BYn6wfoM.js → PkChatbotViewConversations-Bj77_upQ.js} +4 -4
  56. package/dist-vue/_chunks/{PkChatbotViewConversations-BYn6wfoM.js.map → PkChatbotViewConversations-Bj77_upQ.js.map} +1 -1
  57. package/dist-vue/_chunks/{PkChatbotViewFiles-BWD7GF4M.js → PkChatbotViewFiles-nL2UGO-g.js} +2 -2
  58. package/dist-vue/_chunks/{PkChatbotViewFiles-BWD7GF4M.js.map → PkChatbotViewFiles-nL2UGO-g.js.map} +1 -1
  59. package/dist-vue/_chunks/{PkChatbotViewProfile-D5LQ_IB6.js → PkChatbotViewProfile-B8xPFxkz.js} +2 -2
  60. package/dist-vue/_chunks/{PkChatbotViewProfile-D5LQ_IB6.js.map → PkChatbotViewProfile-B8xPFxkz.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkFilePreview-CURIA-I5.js → PkFilePreview-D6VCM-tr.js} +3 -3
  62. package/dist-vue/_chunks/{PkFilePreview-CURIA-I5.js.map → PkFilePreview-D6VCM-tr.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkFilePreviewDialog-Cmic1Xl-.js → PkFilePreviewDialog-CwkET8_p.js} +2 -2
  64. package/dist-vue/_chunks/{PkFilePreviewDialog-Cmic1Xl-.js.map → PkFilePreviewDialog-CwkET8_p.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkImageEditorDialog-bt-_WXJ7.js → PkImageEditorDialog-CXSSDTtp.js} +2 -2
  66. package/dist-vue/_chunks/{PkImageEditorDialog-bt-_WXJ7.js.map → PkImageEditorDialog-CXSSDTtp.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkStreamingMarkdown-D38PPSbB.js → PkStreamingMarkdown-D5ad7uGI.js} +2 -2
  68. package/dist-vue/_chunks/{PkStreamingMarkdown-D38PPSbB.js.map → PkStreamingMarkdown-D5ad7uGI.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkToolChatFile-Dvn6Jg9n.js → PkToolChatFile-DDVwPfee.js} +2 -2
  70. package/dist-vue/_chunks/{PkToolChatFile-Dvn6Jg9n.js.map → PkToolChatFile-DDVwPfee.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkToolShowArtifact-Clkqoz26.js → PkToolShowArtifact-CdS7BNoU.js} +2 -2
  72. package/dist-vue/_chunks/{PkToolShowArtifact-Clkqoz26.js.map → PkToolShowArtifact-CdS7BNoU.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkToolShowChart-RLAsKQT7.js → PkToolShowChart-E2NW5ess.js} +2 -2
  74. package/dist-vue/_chunks/{PkToolShowChart-RLAsKQT7.js.map → PkToolShowChart-E2NW5ess.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkToolShowContactForm-BSDtKWWD.js → PkToolShowContactForm-COu43u5z.js} +2 -2
  76. package/dist-vue/_chunks/{PkToolShowContactForm-BSDtKWWD.js.map → PkToolShowContactForm-COu43u5z.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkToolShowDiagram-9EYiOJXE.js → PkToolShowDiagram-BOGh8Z0j.js} +2 -2
  78. package/dist-vue/_chunks/{PkToolShowDiagram-9EYiOJXE.js.map → PkToolShowDiagram-BOGh8Z0j.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkToolShowForm-mXmiZPIW.js → PkToolShowForm-D3n6fxtt.js} +3 -3
  80. package/dist-vue/_chunks/{PkToolShowForm-mXmiZPIW.js.map → PkToolShowForm-D3n6fxtt.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolShowImageGallery-B2phVedq.js → PkToolShowImageGallery-D3Z5vTb0.js} +2 -2
  82. package/dist-vue/_chunks/{PkToolShowImageGallery-B2phVedq.js.map → PkToolShowImageGallery-D3Z5vTb0.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolShowProductList-BX9D6A8k.js → PkToolShowProductList-4mkoLMOz.js} +2 -2
  84. package/dist-vue/_chunks/{PkToolShowProductList-BX9D6A8k.js.map → PkToolShowProductList-4mkoLMOz.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolShowSources-B0Xw8RR2.js → PkToolShowSources-DkpLjqfn.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolShowSources-B0Xw8RR2.js.map → PkToolShowSources-DkpLjqfn.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowVideo-DyOPeNq_.js → PkToolShowVideo-DyjqJfqW.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolShowVideo-DyOPeNq_.js.map → PkToolShowVideo-DyjqJfqW.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkToolShowWebPages-DajE3TAx.js → PkToolShowWebPages-BSvuIrSs.js} +2 -2
  90. package/dist-vue/_chunks/{PkToolShowWebPages-DajE3TAx.js.map → PkToolShowWebPages-BSvuIrSs.js.map} +1 -1
  91. package/dist-vue/_chunks/{localFolders-D8DxM-5y.js → localFolders-Dn8jAVz4.js} +4 -3
  92. package/dist-vue/_chunks/localFolders-Dn8jAVz4.js.map +1 -0
  93. package/dist-vue/_chunks/{useChatbotStore-DCE7Ig6x.js → useChatbotStore-ZA6_oD5a.js} +2 -2
  94. package/dist-vue/_chunks/{useChatbotStore-DCE7Ig6x.js.map → useChatbotStore-ZA6_oD5a.js.map} +1 -1
  95. package/dist-vue/_chunks/{utils-SmeQuVL1.js → utils-BDXwCfXk.js} +2 -2
  96. package/dist-vue/_chunks/{utils-SmeQuVL1.js.map → utils-BDXwCfXk.js.map} +1 -1
  97. package/dist-vue/composables.js +12 -2
  98. package/dist-vue/composables.js.map +1 -1
  99. package/dist-vue/index.js +25 -25
  100. package/dist-vue/locales.js +12 -2
  101. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +10 -2
  102. package/dist-vue/packages/components/src/chat/PkChatbotLocalFolders.d.ts +12 -9
  103. package/dist-vue/style.css +1 -1
  104. package/package.json +1 -1
  105. package/dist/_chunks/utils-BYVRPDrv.js.map +0 -1
  106. package/dist-vue/_chunks/PkChatbotInput-Bkr2FMAR.js.map +0 -1
  107. package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js +0 -126
  108. package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js.map +0 -1
  109. package/dist-vue/_chunks/PkChatbotViewChat-D-tjQF-v.js.map +0 -1
  110. package/dist-vue/_chunks/localFolders-D8DxM-5y.js.map +0 -1
@@ -7,16 +7,16 @@ import { n as vt } from "./_chunks/src-QHwDXo7q.js";
7
7
  import { t as yt } from "./_chunks/VvButtonLocalized-DfLLySHy.js";
8
8
  import { C as bt, a as xt, d as St, h as Ct, l as wt, m as Tt, o as Et, s as Dt, v as Ot, y as kt } from "./_chunks/dist-CR8l0inH.js";
9
9
  import { A as At, D as jt, E as Mt, F as Nt, J as Pt, K as Ft, M as It, N as Lt, O as Rt, P as zt, S as Bt, T as Vt, V as Ht, Y as Ut, _ as Wt, a as Gt, b as Kt, c as qt, d as Jt, et as Yt, g as Xt, h as Zt, i as Qt, j as $t, l as en, n as tn, o as nn, q as rn, r as an, s as on, u as sn, w as cn, x as ln } from "./_chunks/Agent-C5Jpr5i5.js";
10
- import { a as un, i as dn, n as fn, t as pn } from "./_chunks/PkSelectionActions-J1AaO8Of.js";
10
+ import { a as un, i as dn, n as fn, t as pn } from "./_chunks/PkSelectionActions-B14kAu8T.js";
11
11
  import { n as mn } from "./_chunks/markdown-aNRYL30G.js";
12
12
  import { r as hn, t as gn } from "./_chunks/url-validation-CJV9pp4v.js";
13
13
  import { c as _n, d as vn, f as yn, g as bn, h as xn, i as Sn, m as Cn, n as wn, o as Tn, p as En, r as Dn, s as On, t as kn, u as An } from "./_chunks/index.es-DHeth3Ja.js";
14
14
  import { i as jn, n as Mn, r as Nn, t as Pn } from "./_chunks/index.es-EKiTmBsm.js";
15
- import { $ as Fn, A as In, B as Ln, C as Rn, Ct as zn, D as Bn, E as Vn, F as Hn, H as Un, I as Wn, L as Gn, M as Kn, N as qn, O as Jn, P as Yn, Q as Xn, R as Zn, S as Qn, St as $n, T as er, V as tr, Z as nr, _ as rr, _t as ir, a as ar, at as or, b as sr, c as cr, ct as lr, d as ur, dt as dr, et as fr, f as pr, ft as mr, g as hr, gt as gr, ht as _r, i as vr, it as yr, j as br, k as xr, l as Sr, lt as Cr, mt as wr, n as Tr, nt as Er, ot as Dr, p as Or, pt as kr, r as Ar, rt as jr, st as Mr, t as Nr, tt as Pr, u as Fr, ut as Ir, vt as Lr, w as Rr, x as zr, xt as Br, y as Vr, yt as Hr } from "./_chunks/utils-BYVRPDrv.js";
15
+ import { $ as Fn, A as In, B as Ln, C as Rn, Ct as zn, D as Bn, E as Vn, F as Hn, H as Un, I as Wn, L as Gn, M as Kn, N as qn, O as Jn, P as Yn, Q as Xn, R as Zn, S as Qn, St as $n, T as er, V as tr, Z as nr, _ as rr, _t as ir, a as ar, at as or, b as sr, c as cr, ct as lr, d as ur, dt as dr, et as fr, f as pr, ft as mr, g as hr, gt as gr, ht as _r, i as vr, it as yr, j as br, k as xr, l as Sr, lt as Cr, mt as wr, n as Tr, nt as Er, ot as Dr, p as Or, pt as kr, r as Ar, rt as jr, st as Mr, t as Nr, tt as Pr, u as Fr, ut as Ir, vt as Lr, w as Rr, x as zr, xt as Br, y as Vr, yt as Hr } from "./_chunks/utils-C1mMVCFZ.js";
16
16
  import { t as Ur } from "./_chunks/useShortUrlResolver-DAVZE_by.js";
17
17
  import { t as Wr } from "./_chunks/useImageFallback-DSKCe5aP.js";
18
18
  import { t as Gr } from "./_chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
19
- import { n as Kr, r as qr, t as Jr } from "./_chunks/PkStreamingMarkdown-CvIq4j9U.js";
19
+ import { n as Kr, r as qr, t as Jr } from "./_chunks/PkStreamingMarkdown-Df_VzmC0.js";
20
20
  import { t as Yr } from "./_chunks/PkChatbotFilePreview-CWzGSq-b.js";
21
21
  import { n as Xr, t as Zr } from "./_chunks/useLightbox-C6u2eYRL.js";
22
22
  import { i as Qr, r as $r, t as ei } from "./_chunks/Document-lhfsmafy.js";
@@ -1088,6 +1088,11 @@ var Fi = {
1088
1088
  allow: "Consenti",
1089
1089
  remove: "Scollega {name}",
1090
1090
  refused: "La cartella “{name}” non si può collegare: l'agente non legge mai cartelle come .git o node_modules.",
1091
+ state: {
1092
+ readable: "L'agente può leggerla",
1093
+ copy: "Copia per questa visita",
1094
+ permission: "Il browser chiede di nuovo il permesso"
1095
+ },
1091
1096
  confirm: {
1092
1097
  title: "Collegare una cartella?",
1093
1098
  question: "L'agente potrà elencare, cercare e leggere i file della cartella che scegli e delle sue sottocartelle, tranne file come .env, chiavi e certificati, e le cartelle .git e node_modules.",
@@ -3636,6 +3641,11 @@ var Fi = {
3636
3641
  allow: "Allow",
3637
3642
  remove: "Disconnect {name}",
3638
3643
  refused: "The folder “{name}” cannot be connected: the agent never reads folders such as .git or node_modules.",
3644
+ state: {
3645
+ readable: "The agent can read it",
3646
+ copy: "A copy for this visit",
3647
+ permission: "The browser asks for permission again"
3648
+ },
3639
3649
  confirm: {
3640
3650
  title: "Connect a folder?",
3641
3651
  question: "The agent will be able to list, search and read the files of the folder you choose and of its subfolders, except files such as .env, keys and certificates, and the .git and node_modules folders.",
@@ -17261,21 +17271,21 @@ B();
17261
17271
  var ix = {
17262
17272
  requestOAuthConnection: A(() => import("./_chunks/PkToolRequestOAuthConnection-DunGTHsM.js")),
17263
17273
  shareDocument: A(() => import("./_chunks/PkToolShareDocument-Vpv1an0N.js")),
17264
- showArtifact: A(() => import("./_chunks/PkToolShowArtifact-CBsIMKuq.js")),
17274
+ showArtifact: A(() => import("./_chunks/PkToolShowArtifact-Df2ibXU_.js")),
17265
17275
  showCalendarEvent: A(() => import("./_chunks/PkToolShowCalendarEvent-Cee5xnJM.js")),
17266
17276
  showChart: A(() => import("./_chunks/PkToolShowChart-kgCDHWEf.js")),
17267
17277
  showComparison: A(() => import("./_chunks/PkToolShowComparison-cXfmgJ1H.js")),
17268
- showContactForm: A(() => import("./_chunks/PkToolShowContactForm-D8tYijcg.js")),
17278
+ showContactForm: A(() => import("./_chunks/PkToolShowContactForm-CfW3f_Zs.js")),
17269
17279
  showDiagram: A(() => import("./_chunks/PkToolShowDiagram-B2NX-FOw.js")),
17270
17280
  showEmail: A(() => import("./_chunks/PkToolShowEmail-D-JnkL9A.js")),
17271
17281
  showImageGallery: A(() => import("./_chunks/PkToolShowImageGallery-DN6kSeuD.js")),
17272
17282
  showLocation: A(() => import("./_chunks/PkToolShowLocation-McS9sMWJ.js")),
17273
17283
  showMessage: A(() => import("./_chunks/PkToolShowMessage-C3jjCRB3.js")),
17274
- showForm: A(() => import("./_chunks/PkToolShowForm-CM63L5WC.js")),
17275
- showMultipleChoice: A(() => import("./_chunks/PkToolShowForm-CM63L5WC.js")),
17284
+ showForm: A(() => import("./_chunks/PkToolShowForm-Chj3bqAn.js")),
17285
+ showMultipleChoice: A(() => import("./_chunks/PkToolShowForm-Chj3bqAn.js")),
17276
17286
  showProductList: A(() => import("./_chunks/PkToolShowProductList-BkmajNm0.js")),
17277
17287
  showQrCode: A(() => import("./_chunks/PkToolShowQrCode-CIwiAzOS.js")),
17278
- showSources: A(() => import("./_chunks/PkToolShowSources-BoJmMb4K.js")),
17288
+ showSources: A(() => import("./_chunks/PkToolShowSources-B9qNtyum.js")),
17279
17289
  showSuggestedReply: A(() => import("./_chunks/PkToolShowSuggestedReply-BVMpjsys.js")),
17280
17290
  showVideo: A(() => import("./_chunks/PkToolShowVideo-DP2fDXF9.js")),
17281
17291
  showWeather: A(() => import("./_chunks/PkToolShowWeather-DFNz0ZAW.js")),
@@ -19243,7 +19253,8 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19243
19253
  pointer: { type: Object },
19244
19254
  automaticConfirmations: { type: Boolean },
19245
19255
  editableImages: { type: Boolean },
19246
- retryableAttachments: { type: Boolean }
19256
+ retryableAttachments: { type: Boolean },
19257
+ folderConnect: { type: Boolean }
19247
19258
  }, {
19248
19259
  modelValue: { default: void 0 },
19249
19260
  modelModifiers: {},
@@ -19264,10 +19275,11 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19264
19275
  "voice-start",
19265
19276
  "point",
19266
19277
  "remove-pointer",
19267
- "manual-confirmations"
19278
+ "manual-confirmations",
19279
+ "connect-folder"
19268
19280
  ], ["update:modelValue", "update:pendingAttachments"]),
19269
19281
  setup(e, { expose: t, emit: n }) {
19270
- let r = A(() => import("./_chunks/PkImageEditorDialog-BF6tQvTY.js")), i = Me(e, "modelValue"), a = Me(e, "pendingAttachments"), o = n, s = e, { t: c } = mt({ useScope: "global" }), l = He("textareaEl"), u = He("fileInputEl"), d = He("cameraInputEl"), f = He("formEl"), p = R(i.value ?? ""), m = null, h = () => {
19282
+ let r = A(() => import("./_chunks/PkImageEditorDialog-W8TCEHBJ.js")), i = Me(e, "modelValue"), a = Me(e, "pendingAttachments"), o = n, s = e, { t: c } = mt({ useScope: "global" }), l = He("textareaEl"), u = He("fileInputEl"), d = He("cameraInputEl"), f = He("formEl"), p = R(i.value ?? ""), m = null, h = () => {
19271
19283
  m !== null && (clearTimeout(m), m = null);
19272
19284
  }, g = () => {
19273
19285
  h(), i.value = p.value;
@@ -19488,24 +19500,24 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19488
19500
  ]))), 128))])) : G("", !0),
19489
19501
  L("div", QC, [
19490
19502
  Ae(t.$slots, "prepend"),
19491
- e.fileUpload && e.fileUpload.enabled && (le.value || fe.value || t.$slots["additional-actions"]) ? (X(), F(h, Ee(Le({ key: 0 }, {
19503
+ e.fileUpload?.enabled && (le.value || fe.value || t.$slots["additional-actions"]) || e.folderConnect ? (X(), F(h, Ee(Le({ key: 0 }, {
19492
19504
  placement: "top-start",
19493
19505
  modifiers: "menu",
19494
19506
  flip: !0,
19495
19507
  offset: 3
19496
19508
  })), {
19497
- default: W(({ init: e, toggle: t, aria: n }) => [L("button", Le({ ref: (t) => e(t) }, n, {
19509
+ default: W(({ init: t, toggle: n, aria: r }) => [L("button", Le({ ref: (e) => t(e) }, r, {
19498
19510
  class: "pk-chat-button",
19499
19511
  type: "button",
19500
- title: q(c)("action.attachFile"),
19512
+ title: e.fileUpload?.enabled ? q(c)("action.attachFile") : q(c)("localFolders.connect"),
19501
19513
  disabled: x.value,
19502
- onClick: t
19514
+ onClick: n
19503
19515
  }), [M(i, {
19504
19516
  name: "ri:add-line",
19505
19517
  class: "pk-chat-button__icon"
19506
19518
  })], 16, $C)]),
19507
19519
  items: W(() => [
19508
- le.value ? (X(), F(m, {
19520
+ e.fileUpload?.enabled && le.value ? (X(), F(m, {
19509
19521
  key: 0,
19510
19522
  disabled: x.value || e.attachmentLimitReached,
19511
19523
  onClick: ue
@@ -19516,7 +19528,7 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19516
19528
  }), J(" " + V(q(c)("action.takePhoto")), 1)]),
19517
19529
  _: 1
19518
19530
  }, 8, ["disabled"])) : G("", !0),
19519
- fe.value ? (X(), F(m, {
19531
+ e.fileUpload?.enabled && fe.value ? (X(), F(m, {
19520
19532
  key: 1,
19521
19533
  disabled: x.value || e.attachmentLimitReached,
19522
19534
  onClick: Ce
@@ -19527,7 +19539,8 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19527
19539
  }), J(" " + V(q(c)("action.attachScreenshot")), 1)]),
19528
19540
  _: 1
19529
19541
  }, 8, ["disabled"])) : G("", !0),
19530
- M(m, {
19542
+ e.fileUpload?.enabled ? (X(), F(m, {
19543
+ key: 2,
19531
19544
  disabled: x.value || e.attachmentLimitReached,
19532
19545
  onClick: D
19533
19546
  }, {
@@ -19536,7 +19549,18 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19536
19549
  class: "pk-chatbot-input__dropdown-icon"
19537
19550
  }), J(" " + V(q(c)("action.attachFile")), 1)]),
19538
19551
  _: 1
19539
- }, 8, ["disabled"]),
19552
+ }, 8, ["disabled"])) : G("", !0),
19553
+ e.folderConnect ? (X(), F(m, {
19554
+ key: 3,
19555
+ disabled: x.value,
19556
+ onClick: n[2] ||= (e) => o("connect-folder")
19557
+ }, {
19558
+ default: W(() => [M(i, {
19559
+ name: "ri:folder-add-line",
19560
+ class: "pk-chatbot-input__dropdown-icon"
19561
+ }), J(" " + V(q(c)("localFolders.connect")), 1)]),
19562
+ _: 1
19563
+ }, 8, ["disabled"])) : G("", !0),
19540
19564
  Ae(t.$slots, "additional-actions")
19541
19565
  ]),
19542
19566
  _: 3
@@ -19573,7 +19597,7 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19573
19597
  title: q(c)("pagePointer.start"),
19574
19598
  "aria-pressed": e.pointing,
19575
19599
  disabled: x.value,
19576
- onClick: n[2] ||= (e) => o("point")
19600
+ onClick: n[3] ||= (e) => o("point")
19577
19601
  }, null, 8, [
19578
19602
  "title",
19579
19603
  "aria-pressed",
@@ -19595,7 +19619,7 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19595
19619
  onKeydown: [ct(N, ["enter"]), ct(ze, ["tab"])],
19596
19620
  onPaste: ge
19597
19621
  }, null, 40, rw)]),
19598
- ae.value ? (X(), Y("span", iw, [n[4] ||= L("kbd", { "aria-hidden": "true" }, "Tab", -1), L("span", {
19622
+ ae.value ? (X(), Y("span", iw, [n[5] ||= L("kbd", { "aria-hidden": "true" }, "Tab", -1), L("span", {
19599
19623
  id: q(ie),
19600
19624
  class: "u-visually-hidden"
19601
19625
  }, V(q(c)("hint.suggestedNextMessage")), 9, aw)])) : G("", !0),
@@ -19609,7 +19633,7 @@ var GC = { class: "pk-chatbot-input" }, KC = {
19609
19633
  icon: "ri:mic-line",
19610
19634
  title: q(c)("action.talk"),
19611
19635
  disabled: x.value,
19612
- onClick: n[3] ||= (e) => o("voice-start")
19636
+ onClick: n[4] ||= (e) => o("voice-start")
19613
19637
  }, null, 8, ["title", "disabled"])) : G("", !0),
19614
19638
  y.value ? (X(), F(MC, {
19615
19639
  key: 8,
@@ -21285,17 +21309,11 @@ var gT = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
21285
21309
  }), [["styles", ["@layer volver.reset,volver.preflight,volver.props;@layer volver.components{.pk-infobox{font-size:var(--text-12);color:var(--color-word-3);line-height:var(--leading-normal);margin-bottom:var(--spacing-md);padding-block:var(--spacing-10);background-color:var(--color-surface-1);border:1px solid var(--color-surface-3);padding-left:var(--spacing-36);padding-right:var(--spacing-xs);border-radius:var(--rounded-lg);display:block;position:relative}.pk-infobox>.vv-icon{font-size:var(--text-18);left:var(--spacing-8);position:absolute}.pk-infobox--warning>.vv-icon{color:var(--color-warning-darken-3)}}@layer volver.themes,volver.utilities;"]]]);
21286
21310
  // ../../packages/components/src/chat/PkChatbotLocalFolders.vue?vue&type=script&setup=true&lang.ts
21287
21311
  B(), H(), P();
21288
- var _T = ["aria-label"], vT = { class: "pk-chatbot-local-folders__list" }, yT = { class: "pk-chatbot-local-folders__name" }, bT = { class: "text-14 text-word-2 mt-0 mb-md" }, xT = {
21289
- key: 1,
21290
- class: "pk-chatbot-local-folders__refused",
21291
- role: "status"
21292
- }, ST = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
21312
+ var _T = ["aria-label"], vT = { class: "pk-chatbot-local-folders__list" }, yT = { class: "pk-chatbot-local-folders__text" }, bT = ["title"], xT = { class: "pk-chatbot-local-folders__state" }, ST = { class: "pk-chatbot-local-folders__actions" }, CT = { class: "text-14 text-word-2 mt-0 mb-md" }, wT = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
21293
21313
  __name: "PkChatbotLocalFolders",
21294
21314
  props: {
21295
21315
  folders: { type: Array },
21296
- pickerAvailable: { type: Boolean },
21297
- canConnect: { type: Boolean },
21298
- refused: { type: String }
21316
+ pickerAvailable: { type: Boolean }
21299
21317
  },
21300
21318
  emits: [
21301
21319
  "connect",
@@ -21303,96 +21321,98 @@ var _T = ["aria-label"], vT = { class: "pk-chatbot-local-folders__list" }, yT =
21303
21321
  "allow",
21304
21322
  "remove"
21305
21323
  ],
21306
- setup(e, { emit: t }) {
21307
- let n = e, r = t, { t: i } = mt({ useScope: "global" }), a = He("fileInput"), o = R(!1), s = () => {
21308
- o.value = !1, n.pickerAvailable ? r("connect") : a.value?.click();
21309
- }, c = (e) => {
21324
+ setup(e, { expose: t, emit: n }) {
21325
+ let r = e, i = n, { t: a } = mt({ useScope: "global" }), o = He("fileInput"), s = R(!1), c = () => {
21326
+ s.value = !1, r.pickerAvailable ? i("connect") : o.value?.click();
21327
+ }, l = (e) => {
21310
21328
  let t = e.target;
21311
- t.files?.length && r("connectFiles", [...t.files]), t.value = "";
21312
- };
21313
- return (t, n) => {
21314
- let l = Dn, u = yt, d = En, f = _n;
21315
- return X(), Y("div", {
21316
- class: "pk-chatbot-local-folders",
21317
- role: "group",
21318
- "aria-label": q(i)("localFolders.title")
21319
- }, [
21320
- M(l, {
21321
- name: "ri:folder-open-line",
21322
- class: "shrink-0 w-18 h-18"
21323
- }),
21324
- L("ul", vT, [(X(!0), Y(I, null, Be(e.folders, (e) => (X(), Y("li", {
21329
+ t.files?.length && i("connectFiles", [...t.files]), t.value = "";
21330
+ }, u = (e) => e.source === "snapshot" ? a("localFolders.state.copy") : e.permission === "granted" ? a("localFolders.state.readable") : a("localFolders.state.permission");
21331
+ return t({ open: () => {
21332
+ s.value = !0;
21333
+ } }), (t, n) => {
21334
+ let r = Dn, d = yt, f = En, p = _n;
21335
+ return X(), Y(I, null, [
21336
+ e.folders.length ? (X(), Y("div", {
21337
+ key: 0,
21338
+ class: "pk-chatbot-local-folders",
21339
+ role: "group",
21340
+ "aria-label": q(a)("localFolders.title")
21341
+ }, [L("ul", vT, [(X(!0), Y(I, null, Be(e.folders, (e) => (X(), Y("li", {
21325
21342
  key: e.id,
21326
- class: "pk-chatbot-local-folders__item"
21343
+ class: "pk-chatbot-local-folders__row"
21327
21344
  }, [
21328
- L("span", yT, V(e.name), 1),
21329
- e.permission === "granted" ? G("", !0) : (X(), F(u, {
21345
+ M(r, {
21346
+ name: e.permission === "granted" ? "ri:folder-open-line" : "ri:lock-line",
21347
+ class: "shrink-0 w-18 h-18"
21348
+ }, null, 8, ["name"]),
21349
+ L("span", yT, [L("strong", {
21350
+ class: "pk-chatbot-local-folders__name",
21351
+ title: e.name
21352
+ }, V(e.name), 9, bT), L("span", xT, V(u(e)), 1)]),
21353
+ L("span", ST, [e.permission === "granted" ? G("", !0) : (X(), F(d, {
21330
21354
  key: 0,
21331
- modifiers: "action-quiet",
21332
- label: q(i)("localFolders.allow"),
21333
- onClick: (t) => r("allow", e.id)
21334
- }, null, 8, ["label", "onClick"])),
21335
- M(u, {
21355
+ modifiers: "action-small",
21356
+ label: q(a)("localFolders.allow"),
21357
+ "aria-label": `${q(a)("localFolders.allow")}: ${e.name}`,
21358
+ onClick: (t) => i("allow", e.id)
21359
+ }, null, 8, [
21360
+ "label",
21361
+ "aria-label",
21362
+ "onClick"
21363
+ ])), M(d, {
21336
21364
  modifiers: "action-quiet",
21337
21365
  icon: "ri:close-line",
21338
- title: q(i)("localFolders.remove", { name: e.name }),
21339
- "aria-label": q(i)("localFolders.remove", { name: e.name }),
21340
- onClick: (t) => r("remove", e.id)
21366
+ title: q(a)("localFolders.remove", { name: e.name }),
21367
+ "aria-label": q(a)("localFolders.remove", { name: e.name }),
21368
+ onClick: (t) => i("remove", e.id)
21341
21369
  }, null, 8, [
21342
21370
  "title",
21343
21371
  "aria-label",
21344
21372
  "onClick"
21345
- ])
21346
- ]))), 128))]),
21347
- e.canConnect ? (X(), F(u, {
21348
- key: 0,
21349
- modifiers: "action-quiet",
21350
- icon: "ri:folder-add-line",
21351
- label: q(i)("localFolders.connect"),
21352
- onClick: n[0] ||= (e) => o.value = !0
21353
- }, null, 8, ["label"])) : G("", !0),
21354
- M(f, {
21355
- modelValue: o.value,
21356
- "onUpdate:modelValue": n[2] ||= (e) => o.value = e,
21357
- title: q(i)("localFolders.confirm.title"),
21373
+ ])])
21374
+ ]))), 128))])], 8, _T)) : G("", !0),
21375
+ M(p, {
21376
+ modelValue: s.value,
21377
+ "onUpdate:modelValue": n[1] ||= (e) => s.value = e,
21378
+ title: q(a)("localFolders.confirm.title"),
21358
21379
  modifiers: "small",
21359
21380
  role: "alertdialog"
21360
21381
  }, {
21361
- footer: W(() => [M(d, null, {
21362
- default: W(() => [M(u, {
21382
+ footer: W(() => [M(f, null, {
21383
+ default: W(() => [M(d, {
21363
21384
  modifiers: "ghost",
21364
- label: q(i)("action.cancel"),
21365
- onClick: n[1] ||= (e) => o.value = !1
21366
- }, null, 8, ["label"]), M(u, {
21367
- label: q(i)("localFolders.confirm.action"),
21368
- onClick: s
21385
+ label: q(a)("action.cancel"),
21386
+ onClick: n[0] ||= (e) => s.value = !1
21387
+ }, null, 8, ["label"]), M(d, {
21388
+ label: q(a)("localFolders.confirm.action"),
21389
+ onClick: c
21369
21390
  }, null, 8, ["label"])]),
21370
21391
  _: 1
21371
21392
  })]),
21372
- default: W(() => [L("p", bT, V(q(i)("localFolders.confirm.question")), 1), M(gT, { class: "mb-0" }, {
21373
- default: W(() => [J(V(q(i)("localFolders.confirm.description")), 1)]),
21393
+ default: W(() => [L("p", CT, V(q(a)("localFolders.confirm.question")), 1), M(gT, { class: "mb-0" }, {
21394
+ default: W(() => [J(V(q(a)("localFolders.confirm.description")), 1)]),
21374
21395
  _: 1
21375
21396
  })]),
21376
21397
  _: 1
21377
21398
  }, 8, ["modelValue", "title"]),
21378
- e.refused ? (X(), Y("p", xT, V(q(i)("localFolders.refused", { name: e.refused })), 1)) : G("", !0),
21379
21399
  e.pickerAvailable ? G("", !0) : (X(), Y("input", {
21380
- key: 2,
21400
+ key: 1,
21381
21401
  ref_key: "fileInput",
21382
- ref: a,
21402
+ ref: o,
21383
21403
  type: "file",
21384
21404
  webkitdirectory: "",
21385
21405
  multiple: "",
21386
21406
  class: "none",
21387
- onChange: c
21407
+ onChange: l
21388
21408
  }, null, 544))
21389
- ], 8, _T);
21409
+ ], 64);
21390
21410
  };
21391
21411
  }
21392
- }), [["styles", [".pk-chatbot-local-folders{align-items:center;gap:var(--spacing-sm);padding:var(--spacing-xs) var(--spacing-md);border-top:1px solid var(--color-surface-3);color:var(--color-word-3);font-size:var(--text-12);flex-wrap:wrap;display:flex}.pk-chatbot-local-folders__list{gap:var(--spacing-xs);flex-wrap:wrap;flex:1;min-width:0;margin:0;padding:0;list-style:none;display:flex}.pk-chatbot-local-folders__item{align-items:center;gap:var(--spacing-xs);min-width:0;display:flex}.pk-chatbot-local-folders__refused{flex-basis:100%;margin:0}.pk-chatbot-local-folders__name{text-overflow:ellipsis;white-space:nowrap;color:var(--color-word-2);overflow:hidden}"]]]);
21412
+ }), [["styles", [".pk-chatbot-local-folders{--pk-chatbot-local-folders-border:var(--color-surface-3);--pk-chatbot-local-folders-inset:calc(var(--spacing-sm) - 1px);margin:0 var(--spacing-sm) var(--spacing-sm);border:1px solid var(--pk-chatbot-local-folders-border);border-radius:var(--rounded-lg);background-color:var(--color-surface-1);color:var(--color-word-3);font-size:var(--text-12);overflow:hidden}.pk-chatbot-local-folders__list{max-height:var(--spacing-192);flex-direction:column;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.pk-chatbot-local-folders__row{align-items:center;gap:var(--spacing-sm);padding:var(--spacing-xs) calc(var(--pk-chatbot-local-folders-inset) - var(--spacing-6)) var(--spacing-xs) var(--pk-chatbot-local-folders-inset);flex-shrink:0;display:flex}.pk-chatbot-local-folders__row+.pk-chatbot-local-folders__row{border-top:1px solid var(--pk-chatbot-local-folders-border)}.pk-chatbot-local-folders__text{align-items:baseline;gap:var(--spacing-sm);flex:1;min-width:0;display:flex}.pk-chatbot-local-folders__name,.pk-chatbot-local-folders__state{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.pk-chatbot-local-folders__name{max-width:60%;color:var(--color-word-1);font-size:var(--text-14);font-weight:var(--font-semibold);flex-shrink:0}.pk-chatbot-local-folders__actions{align-items:center;gap:var(--spacing-2);flex-shrink:0;display:flex}"]]]);
21393
21413
  // ../../packages/components/src/chat/useVoiceSession.ts
21394
21414
  B(), H();
21395
- var CT = (e) => {
21415
+ var TT = (e) => {
21396
21416
  let t = ut(), n = R("disconnected"), r = R("listening"), i = R(), a = R([]), o = R(), s = R(), c, l, u = 0, d = !1, f = () => {
21397
21417
  l &&= (clearInterval(l), void 0), o.value = void 0;
21398
21418
  }, p = (e) => {
@@ -21520,31 +21540,31 @@ var CT = (e) => {
21520
21540
  };
21521
21541
  // ../../packages/components/src/chat/chatFilePreviewDock.ts
21522
21542
  B();
21523
- var wT = Symbol("ChatFilePreviewDock");
21524
- function TT() {
21525
- return Se(wT, void 0);
21543
+ var ET = Symbol("ChatFilePreviewDock");
21544
+ function DT() {
21545
+ return Se(ET, void 0);
21526
21546
  }
21527
21547
  // ../../packages/components/src/chat/useWakeupWatch.ts
21528
21548
  B(), H();
21529
- var ET = 4e3, DT = [
21549
+ var OT = 4e3, kT = [
21530
21550
  3e3,
21531
21551
  5e3,
21532
21552
  1e4
21533
- ], OT = 12e4, kT = 6e4, AT = 216e5, jT = 3e4;
21534
- function MT(e) {
21553
+ ], AT = 12e4, jT = 6e4, MT = 216e5, NT = 3e4;
21554
+ function PT(e) {
21535
21555
  let t = R(null), n = R([]), r = R(!1), i, a = !1, o = () => {
21536
21556
  clearTimeout(i), i = void 0;
21537
21557
  }, s = (e, t) => {
21538
21558
  o(), a || (i = setTimeout(() => void t(), e));
21539
21559
  }, c = (t) => {
21540
- let n = Date.parse(t.dueAt) - kT;
21560
+ let n = Date.parse(t.dueAt) - jT;
21541
21561
  return e.messages().some((e) => {
21542
21562
  let r = e.metadata?.wakeup;
21543
21563
  return r?.id === t.wakeId || t.kind === "task" && r?.taskId === t.taskId && (e.metadata?.createdAt ?? 0) >= n;
21544
21564
  });
21545
21565
  }, l = (e) => {
21546
- let t = Date.parse(e.dueAt) - Date.now() + ET;
21547
- t > AT ? s(AT, u) : s(Math.max(ET, t), () => f(e, Date.now(), 0));
21566
+ let t = Date.parse(e.dueAt) - Date.now() + OT;
21567
+ t > MT ? s(MT, u) : s(Math.max(OT, t), () => f(e, Date.now(), 0));
21548
21568
  };
21549
21569
  async function u() {
21550
21570
  o();
@@ -21561,7 +21581,7 @@ function MT(e) {
21561
21581
  o(), t.value = e.pendingWakeup, n.value = e.tasks ?? [], e.pendingWakeup && l(e.pendingWakeup);
21562
21582
  }
21563
21583
  async function f(t, n, r) {
21564
- await e.refreshMessages(), a || (c(t) || Date.now() - n >= OT ? await u() : s(DT[Math.min(r, DT.length - 1)], () => f(t, n, r + 1)));
21584
+ await e.refreshMessages(), a || (c(t) || Date.now() - n >= AT ? await u() : s(kT[Math.min(r, kT.length - 1)], () => f(t, n, r + 1)));
21565
21585
  }
21566
21586
  async function p() {
21567
21587
  r.value = !0;
@@ -21598,7 +21618,7 @@ function MT(e) {
21598
21618
  }
21599
21619
  let S = () => x();
21600
21620
  return document.addEventListener("visibilitychange", S), j(() => t.value?.wakeId, (e) => {
21601
- clearInterval(b), b = void 0, e && !a && (x(), b = setInterval(x, jT));
21621
+ clearInterval(b), b = void 0, e && !a && (x(), b = setInterval(x, NT));
21602
21622
  }), je(() => {
21603
21623
  a = !0, o(), clearInterval(b), document.removeEventListener("visibilitychange", S);
21604
21624
  }), {
@@ -21616,14 +21636,14 @@ function MT(e) {
21616
21636
  }
21617
21637
  // ../../packages/components/src/chat/useChatFilePreview.ts
21618
21638
  H();
21619
- var NT = 4e3;
21620
- function PT(e) {
21639
+ var FT = 4e3;
21640
+ function IT(e) {
21621
21641
  let t = R(), n = R(), r = R(!1), i = R(!1), a = ut(), o = /* @__PURE__ */ new Map(), s, c = 0, l = 0, u = () => {
21622
21642
  clearTimeout(s), a.value = void 0;
21623
21643
  }, d = (e, t) => {
21624
21644
  u();
21625
21645
  let r = e && t ? fn(t, e) : void 0;
21626
- r && (a.value = r, s = setTimeout(u, NT)), n.value = e;
21646
+ r && (a.value = r, s = setTimeout(u, FT)), n.value = e;
21627
21647
  }, f = async (n, a) => {
21628
21648
  let s = ++c, u = l, f = a ? o.get(a) : void 0;
21629
21649
  t.value = n, i.value = !1;
@@ -21657,20 +21677,20 @@ function PT(e) {
21657
21677
  }
21658
21678
  // ../../packages/components/src/chat/PkChatbotViewChat.vue?vue&type=script&setup=true&lang.ts
21659
21679
  B(), H(), st(), P();
21660
- var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
21680
+ var LT = { class: "pk-chatbot-view-chat__input-stage" }, RT = {
21661
21681
  key: 3,
21662
21682
  class: "p-md border-t border-surface-3 text-center text-12 text-danger bg-surface-danger"
21663
- }, LT = {
21683
+ }, zT = {
21664
21684
  key: 4,
21665
21685
  class: "pk-chatbot-view-chat__read-only",
21666
21686
  role: "status"
21667
- }, RT = { class: "pk-chatbot-view-chat__read-only-text" }, zT = { class: "pk-chatbot-view-chat__agent-chip" }, BT = {
21687
+ }, BT = { class: "pk-chatbot-view-chat__read-only-text" }, VT = { class: "pk-chatbot-view-chat__agent-chip" }, HT = {
21668
21688
  key: 0,
21669
21689
  class: "pk-chatbot-view-chat__agent-chip-name"
21670
- }, VT = {
21690
+ }, UT = {
21671
21691
  key: 0,
21672
21692
  class: "pk-chatbot-view-chat__drop-overlay"
21673
- }, HT = 1e3, UT = 3e3, WT = 6e4, GT = 3e5, KT = 6e5, qT = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
21693
+ }, WT = 1e3, GT = 3e3, KT = 6e4, qT = 3e5, JT = 6e5, YT = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
21674
21694
  __name: "PkChatbotViewChat",
21675
21695
  props: {
21676
21696
  agentId: { type: String },
@@ -21683,7 +21703,7 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
21683
21703
  "selection-action"
21684
21704
  ],
21685
21705
  setup(e, { emit: t }) {
21686
- let n = A(() => import("./_chunks/PkToolShowForm-CM63L5WC.js")), r = A(() => import("./_chunks/PkToolShowContactForm-D8tYijcg.js")), i = A(() => import("./_chunks/PkToolShowSuggestedReply-BVMpjsys.js")), a = A(() => import("./_chunks/PkToolShowSources-BoJmMb4K.js")), o = A(() => import("./_chunks/PkToolRequestGeolocation-UQJ9S20q.js")), s = A(() => import("./_chunks/PkToolRequestOAuthConnection-DunGTHsM.js")), c = A(() => import("./_chunks/PkToolShowLocation-McS9sMWJ.js")), l = A(() => import("./_chunks/PkToolShowChart-kgCDHWEf.js")), u = A(() => import("./_chunks/PkToolShowDiagram-B2NX-FOw.js")), d = A(() => import("./_chunks/PkToolChatFile-Y5CR96-B.js")), f = A(() => import("./_chunks/PkToolShareDocument-Vpv1an0N.js")), p = A(() => import("./_chunks/PkFilePreview-yKT0QkEB.js").then((e) => e.n)), m = A(() => import("./_chunks/PkFilePreviewDialog-B4yKQbLi.js")), h = e, g = t, _ = jm(h.agentId), { isReadOnlyChat: v, chatProjectId: y, agentInterface: b, agentFileUpload: x, agentType: S, agentVoice: C, actions: w, revisedAnswers: T, messages: ee, chat: te, messageFeedbacks: ne, feedbackDialogMessage: re, isFeedbackSubmitting: ie, isFeedbackSubmitted: ae, feedbackSubmitError: E, isLeadSubmitted: oe, isLoadingSubmitLead: se, submitLeadError: ce, input: le, inputMessagePlaceholder: D, isConversationBlocked: ue, baseUrl: de, pendingAttachments: fe, isAttachmentLimitReached: pe, fileLimitError: me, apiClient: he, isDark: ge, hostToolsPending: _e, pageNoticeLevel: O, hostConfirmation: ve, agentPageAccess: ye, localFolders: be, localFoldersAvailable: k, localFolderPickerAvailable: xe, canConnectLocalFolder: Se, refusedLocalFolder: we, hostStepTitles: Te, hostStepChanges: Ee, confirmationMode: De, canQueue: ke, queuedMessages: Ae, backgroundAnswers: Me, inputFocusRequest: Ne, pagePointer: Pe, pagePointerAvailable: Fe, pagePointing: Ie, agentSelectionActions: Le, operatorActive: Re, liveChannelUrl: N, headers: ze } = Pi(_);
21706
+ let n = A(() => import("./_chunks/PkToolShowForm-Chj3bqAn.js")), r = A(() => import("./_chunks/PkToolShowContactForm-CfW3f_Zs.js")), i = A(() => import("./_chunks/PkToolShowSuggestedReply-BVMpjsys.js")), a = A(() => import("./_chunks/PkToolShowSources-B9qNtyum.js")), o = A(() => import("./_chunks/PkToolRequestGeolocation-UQJ9S20q.js")), s = A(() => import("./_chunks/PkToolRequestOAuthConnection-DunGTHsM.js")), c = A(() => import("./_chunks/PkToolShowLocation-McS9sMWJ.js")), l = A(() => import("./_chunks/PkToolShowChart-kgCDHWEf.js")), u = A(() => import("./_chunks/PkToolShowDiagram-B2NX-FOw.js")), d = A(() => import("./_chunks/PkToolChatFile-BXrgzaIj.js")), f = A(() => import("./_chunks/PkToolShareDocument-Vpv1an0N.js")), p = A(() => import("./_chunks/PkFilePreview-3_ZmPzQO.js").then((e) => e.n)), m = A(() => import("./_chunks/PkFilePreviewDialog-m3iqn0rl.js")), h = e, g = t, _ = jm(h.agentId), { isReadOnlyChat: v, chatProjectId: y, agentInterface: b, agentFileUpload: x, agentType: S, agentVoice: C, actions: w, revisedAnswers: T, messages: ee, chat: te, messageFeedbacks: ne, feedbackDialogMessage: re, isFeedbackSubmitting: ie, isFeedbackSubmitted: ae, feedbackSubmitError: E, isLeadSubmitted: oe, isLoadingSubmitLead: se, submitLeadError: ce, input: le, inputMessagePlaceholder: D, isConversationBlocked: ue, baseUrl: de, pendingAttachments: fe, isAttachmentLimitReached: pe, fileLimitError: me, apiClient: he, isDark: ge, hostToolsPending: _e, pageNoticeLevel: O, hostConfirmation: ve, agentPageAccess: ye, localFolders: be, localFoldersAvailable: k, localFolderPickerAvailable: xe, canConnectLocalFolder: Se, refusedLocalFolder: we, hostStepTitles: Te, hostStepChanges: Ee, confirmationMode: De, canQueue: ke, queuedMessages: Ae, backgroundAnswers: Me, inputFocusRequest: Ne, pagePointer: Pe, pagePointerAvailable: Fe, pagePointing: Ie, agentSelectionActions: Le, operatorActive: Re, liveChannelUrl: N, headers: ze } = Pi(_);
21687
21707
  Pm({
21688
21708
  url: N,
21689
21709
  headers: ze,
@@ -21722,186 +21742,186 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
21722
21742
  let bt = z(() => b.value?.nextMessageSuggestion && _t.value?.messageId === Z.value ? _t.value?.message : void 0), xt = Mn(() => ye.value?.notice), St = z(() => O.value ? xt.value || pt(`message.pageAccessNotice.${O.value}`) : void 0), Ct = z(() => {
21723
21743
  let e = me.value;
21724
21744
  if (e) return e.reason === "per-chat" ? pt("message.fileLimitPerChat", { max: e.max }) : pt("message.fileLimitPerMessage", { max: e.max });
21725
- }), wt = z(() => Me.value.map(({ chatId: e, title: t }) => ({
21745
+ }), wt = z(() => k.value && !ue.value && !v.value), Tt = He("localFoldersEl"), Dt = z(() => we.value ? pt("localFolders.refused", { name: we.value }) : void 0), Ot = z(() => Me.value.map(({ chatId: e, title: t }) => ({
21726
21746
  id: e,
21727
21747
  text: t ? pt("message.backgroundAnswerReady", { title: t }) : pt("message.backgroundAnswerReadyUntitled")
21728
- }))), Tt = Mn(() => b.value?.dismissableNotice), Dt = z(() => ee.value.some((e) => e.role === "user")), Ot = z(() => h.modifier === "fullscreen" && !Dt.value), At = qm(b, () => h.userName), jt = He("chatViewEl"), Nt = TT(), Pt = z(() => !!Nt?.value), Ft = z(() => Nt?.value ?? "body"), It = R(0), Lt = R(0);
21729
- kt([jt, z(() => Nt?.value ?? void 0)], (e) => {
21748
+ }))), At = Mn(() => b.value?.dismissableNotice), jt = z(() => ee.value.some((e) => e.role === "user")), Nt = z(() => h.modifier === "fullscreen" && !jt.value), Pt = qm(b, () => h.userName), Ft = He("chatViewEl"), It = DT(), Lt = z(() => !!It?.value), Rt = z(() => It?.value ?? "body"), zt = R(0), Bt = R(0);
21749
+ kt([Ft, z(() => It?.value ?? void 0)], (e) => {
21730
21750
  for (let t of e) {
21731
21751
  let e = t.borderBoxSize?.[0]?.inlineSize ?? t.contentRect.width;
21732
- t.target === jt.value ? It.value = e : Lt.value = e;
21752
+ t.target === Ft.value ? zt.value = e : Bt.value = e;
21733
21753
  }
21734
21754
  }, { box: "border-box" });
21735
- let Rt = z(() => It.value + (Pt.value ? Lt.value : 0) >= HT), zt = z(() => It.value > 0 && It.value < 576), { target: Bt, preview: Vt, loading: Ht, error: Ut, changes: Wt, open: Gt, close: Kt, reset: qt } = PT((e) => he.value.getChatFilePreview(h.agentId, _.localChatId, e)), Jt = R({}), Yt = (e, t) => {
21755
+ let Vt = z(() => zt.value + (Lt.value ? Bt.value : 0) >= WT), Ht = z(() => zt.value > 0 && zt.value < 576), { target: Ut, preview: Wt, loading: Gt, error: Kt, changes: qt, open: Jt, close: Yt, reset: Xt } = IT((e) => he.value.getChatFilePreview(h.agentId, _.localChatId, e)), Zt = R({}), Qt = (e, t) => {
21736
21756
  let n = (e) => e?.fileId ?? e?.storedFileName;
21737
- return n(e) !== n(Bt.value) && (Jt.value = {}), Gt(e, t);
21738
- }, Xt = R(!1), Zt = z(() => !!Bt.value && Rt.value && !Xt.value), Qt = () => {
21739
- Kt(), Xt.value = !1;
21740
- }, $t = /* @__PURE__ */ new Set([
21757
+ return n(e) !== n(Ut.value) && (Zt.value = {}), Jt(e, t);
21758
+ }, $t = R(!1), en = z(() => !!Ut.value && Vt.value && !$t.value), tn = () => {
21759
+ Yt(), $t.value = !1;
21760
+ }, nn = /* @__PURE__ */ new Set([
21741
21761
  "tool-editSpreadsheet",
21742
21762
  "tool-editWordDocument",
21743
21763
  "tool-createSpreadsheet",
21744
21764
  "tool-createWordDocument"
21745
- ]), en = z(() => {
21765
+ ]), rn = z(() => {
21746
21766
  let e = /* @__PURE__ */ new Map();
21747
21767
  for (let t of ee.value) for (let n of t.parts) {
21748
21768
  let { type: t, state: r, output: i } = n;
21749
- if ($t.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
21769
+ if (nn.has(t) && r === "output-available" && i?.fileId && i.version && i.storedFileName) {
21750
21770
  let t = e.get(i.fileId) ?? /* @__PURE__ */ new Map();
21751
21771
  t.set(i.version, i.storedFileName), e.set(i.fileId, t);
21752
21772
  }
21753
21773
  }
21754
21774
  for (let [t, n] of e) n.has(1) || n.set(1, t);
21755
21775
  return e;
21756
- }), tn = z(() => [...en.value.get(Bt.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), nn = (e, t) => {
21757
- let n = Bt.value, r = en.value.get(n?.fileId ?? "")?.get(e);
21758
- n && r && Yt({
21776
+ }), an = z(() => [...rn.value.get(Ut.value?.fileId ?? "")?.keys() ?? []].sort((e, t) => e - t)), on = (e, t) => {
21777
+ let n = Ut.value, r = rn.value.get(n?.fileId ?? "")?.get(e);
21778
+ n && r && Qt({
21759
21779
  ...n,
21760
21780
  version: e,
21761
21781
  storedFileName: r
21762
21782
  }, t);
21763
- }, rn = z(() => {
21764
- let e = Bt.value, t = tn.value;
21765
- return !!Qn.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
21766
- }), an = () => {
21767
- let e = Bt.value;
21768
- e?.fileId && e.version && (Qn.value?.({
21783
+ }, sn = z(() => {
21784
+ let e = Ut.value, t = an.value;
21785
+ return !!tr.value && !!e?.fileId && !!e.version && t.length > 0 && e.version < t[t.length - 1];
21786
+ }), cn = () => {
21787
+ let e = Ut.value;
21788
+ e?.fileId && e.version && (tr.value?.({
21769
21789
  fileId: e.fileId,
21770
21790
  version: e.version,
21771
21791
  filename: e.filename
21772
- }), Qt());
21792
+ }), tn());
21773
21793
  };
21774
- j(() => _.localChatId, qt), j(() => {
21775
- let e = Bt.value?.fileId;
21794
+ j(() => _.localChatId, Xt), j(() => {
21795
+ let e = Ut.value?.fileId;
21776
21796
  return e ? {
21777
21797
  fileId: e,
21778
- newest: Math.max(0, ...tn.value)
21798
+ newest: Math.max(0, ...an.value)
21779
21799
  } : void 0;
21780
21800
  }, (e, t) => {
21781
- e && t && e.fileId === t.fileId && e.newest > t.newest && Bt.value?.version === t.newest && nn(e.newest, Bt.value.storedFileName);
21801
+ e && t && e.fileId === t.fileId && e.newest > t.newest && Ut.value?.version === t.newest && on(e.newest, Ut.value.storedFileName);
21782
21802
  });
21783
- let on = z(() => {
21803
+ let ln = z(() => {
21784
21804
  let e = te.value?.status;
21785
- if (!(ue.value || v.value || e === "submitted" || e === "streaming")) return Bt.value?.kind === "word" ? Le.value?.word : Le.value?.excel;
21786
- }), sn = z(() => gt.value === "submitted" || gt.value === "streaming"), cn = () => {
21787
- Rt.value ? Xt.value = !1 : Qt();
21788
- }, ln = (e, t, n) => {
21805
+ if (!(ue.value || v.value || e === "submitted" || e === "streaming")) return Ut.value?.kind === "word" ? Le.value?.word : Le.value?.excel;
21806
+ }), un = z(() => gt.value === "submitted" || gt.value === "streaming"), fn = () => {
21807
+ Vt.value ? $t.value = !1 : tn();
21808
+ }, pn = (e, t, n) => {
21789
21809
  _.sendSelection(e, { filePointer: t }) && g("selection-action", {
21790
21810
  surface: t.format === "docx" ? "word" : "excel",
21791
21811
  action: n.id,
21792
21812
  state: "chat",
21793
21813
  size: String(n.size)
21794
21814
  });
21795
- }, un = async (e) => (await he.value.expandSourceContext(h.agentId, e.documentId, e.chunkIndex)).content, fn = async (e) => {
21815
+ }, mn = async (e) => (await he.value.expandSourceContext(h.agentId, e.documentId, e.chunkIndex)).content, hn = async (e) => {
21796
21816
  let t = await he.value.downloadSourceDocument(h.agentId, e);
21797
21817
  window.open(t.downloadUrl, "_blank");
21798
- }, pn = (e) => {
21818
+ }, gn = (e) => {
21799
21819
  if (Ve.value?.enabled && e) for (let t of e) tt(t);
21800
- }, mn = z(() => v.value ? w.value?.filter((e) => e === "copy") : w.value), { isOverDropZone: hn } = Et(jt, {
21820
+ }, _n = z(() => v.value ? w.value?.filter((e) => e === "copy") : w.value), { isOverDropZone: vn } = Et(Ft, {
21801
21821
  dataTypes: (e) => !v.value && Mt(e, Ve.value?.allowedMimeTypes ?? []),
21802
- onDrop: pn
21803
- }), gn = R(!1), _n = !1, vn = R(!1), yn = [
21822
+ onDrop: gn
21823
+ }), yn = R(!1), bn = !1, xn = R(!1), Sn = [
21804
21824
  3e3,
21805
21825
  5e3,
21806
21826
  1e4
21807
- ], bn, xn, Sn = !1, Cn = 0, wn = !1;
21808
- function Tn() {
21809
- clearTimeout(bn), bn = void 0, xn = void 0, Sn = !1, Cn = 0, vn.value = !1;
21827
+ ], Cn, wn, Tn = !1, En = 0, On = !1;
21828
+ function kn() {
21829
+ clearTimeout(Cn), Cn = void 0, wn = void 0, Tn = !1, En = 0, xn.value = !1;
21810
21830
  }
21811
- function En(e) {
21812
- _n || (clearTimeout(bn), bn = setTimeout(() => {
21813
- On();
21831
+ function An(e) {
21832
+ bn || (clearTimeout(Cn), Cn = setTimeout(() => {
21833
+ jn();
21814
21834
  }, e));
21815
21835
  }
21816
- async function On() {
21817
- if (_n || wn) return;
21818
- wn = !0;
21836
+ async function jn() {
21837
+ if (bn || On) return;
21838
+ On = !0;
21819
21839
  let e;
21820
21840
  try {
21821
21841
  e = await ot();
21822
21842
  } finally {
21823
- wn = !1;
21843
+ On = !1;
21824
21844
  }
21825
- if (_n) return;
21826
- if (e === "caught-up" && (vn.value = !1, ur()), jn.isActive.value) {
21827
- xn = void 0, Sn = !1, Cn = 0, En(UT);
21845
+ if (bn) return;
21846
+ if (e === "caught-up" && (xn.value = !1, mr()), Fn.isActive.value) {
21847
+ wn = void 0, Tn = !1, En = 0, An(GT);
21828
21848
  return;
21829
21849
  }
21830
- xn === void 0 && (xn = Date.now(), Sn = !!jn.error.value);
21831
- let t = Date.now() - xn;
21832
- if (e === "caught-up" && t >= (Sn ? GT : WT) || t >= KT) {
21833
- Tn(), fr();
21850
+ wn === void 0 && (wn = Date.now(), Tn = !!Fn.error.value);
21851
+ let t = Date.now() - wn;
21852
+ if (e === "caught-up" && t >= (Tn ? qT : KT) || t >= JT) {
21853
+ kn(), hr();
21834
21854
  return;
21835
21855
  }
21836
- let n = yn[Math.min(Cn, yn.length - 1)];
21837
- Cn += 1, En(n);
21856
+ let n = Sn[Math.min(En, Sn.length - 1)];
21857
+ En += 1, An(n);
21838
21858
  }
21839
- let kn = (e = 1200) => {
21840
- En(e);
21841
- }, An, jn = CT({
21859
+ let Nn = (e = 1200) => {
21860
+ An(e);
21861
+ }, Pn, Fn = TT({
21842
21862
  fetchGrant: async () => {
21843
- An = _.voicePageTools();
21863
+ Pn = _.voicePageTools();
21844
21864
  let e = await he.value.createVoiceSession(h.agentId, _.localChatId, {
21845
21865
  deviceContext: _.buildDeviceContext(),
21846
21866
  externalContext: _.externalContext,
21847
- pageTools: An?.declaration,
21867
+ pageTools: Pn?.declaration,
21848
21868
  ..._.confirmationMode === "automatic" && { confirmations: "automatic" }
21849
21869
  });
21850
21870
  return e.chatId !== _.localChatId && (_.localChatId = e.chatId), e;
21851
21871
  },
21852
21872
  closeGrant: (e) => he.value.closeVoiceSession(h.agentId, e),
21853
- clientTools: () => An?.clientTools,
21873
+ clientTools: () => Pn?.clientTools,
21854
21874
  onTranscript: (e) => {
21855
- e.role === "user" ? (vn.value = !0, lr(), st({
21875
+ e.role === "user" ? (xn.value = !0, pr(), st({
21856
21876
  id: `${fm}user-${$u()}`,
21857
21877
  role: "user",
21858
21878
  parts: [{
21859
21879
  type: "text",
21860
21880
  text: e.text
21861
21881
  }]
21862
- })) : vn.value = !1;
21882
+ })) : xn.value = !1;
21863
21883
  },
21864
21884
  onTurnEnd: () => {
21865
- kn();
21885
+ Nn();
21866
21886
  }
21867
21887
  });
21868
- j(() => jn.isActive.value, (e) => {
21888
+ j(() => Fn.isActive.value, (e) => {
21869
21889
  e || _.cancelVoicePageCalls();
21870
- }), j(() => jn.error.value, (e) => {
21871
- e && (vn.value = !1);
21890
+ }), j(() => Fn.error.value, (e) => {
21891
+ e && (xn.value = !1);
21872
21892
  });
21873
- let Nn = z(() => C.value?.enabled === !0), Pn = z(() => jn.error.value ? "error" : jn.isConnecting.value ? "connecting" : jn.isSpeaking.value ? "speaking" : jn.isActive.value ? "listening" : "idle"), Fn = z(() => {
21874
- let e = jn.error.value;
21893
+ let In = z(() => C.value?.enabled === !0), Ln = z(() => Fn.error.value ? "error" : Fn.isConnecting.value ? "connecting" : Fn.isSpeaking.value ? "speaking" : Fn.isActive.value ? "listening" : "idle"), Rn = z(() => {
21894
+ let e = Fn.error.value;
21875
21895
  if (e) return /took too long/i.test(e) ? pt("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? pt("message.voiceNoAnswer") : pt("message.voiceInterrupted");
21876
- }), In = z(() => jn.isSpeaking.value ? "output" : "input"), Ln = () => jn.readLevel(In.value), Rn = () => jn.readSpectrum(In.value), zn = async () => {
21877
- gn.value = !1, await jn.start(), jn.isActive.value && (Tn(), En(UT));
21878
- }, Bn = async () => {
21879
- vn.value = !1, await jn.stop(), _n || kn(0);
21880
- }, Vn = () => {
21881
- jn.dismissError();
21882
- }, Hn = async () => {
21883
- jn.dismissError(), await jn.stop(), await zn();
21884
- }, Un = (e) => e?.toolCallId ?? "", Wn = R(/* @__PURE__ */ new Set()), Gn = (e) => Wn.value.has(Un(e)), Kn = R(/* @__PURE__ */ new Map()), qn = (e, t) => jn.isActive.value ? (jn.sendUserMessage(t) && (Wn.value = new Set(Wn.value).add(Un(e)), kn()), !0) : !1, Jn = (e, t, n) => {
21885
- qn(t, Or(t, n)) || $e({
21896
+ }), zn = z(() => Fn.isSpeaking.value ? "output" : "input"), Bn = () => Fn.readLevel(zn.value), Vn = () => Fn.readSpectrum(zn.value), Hn = async () => {
21897
+ yn.value = !1, await Fn.start(), Fn.isActive.value && (kn(), An(GT));
21898
+ }, Un = async () => {
21899
+ xn.value = !1, await Fn.stop(), bn || Nn(0);
21900
+ }, Wn = () => {
21901
+ Fn.dismissError();
21902
+ }, Gn = async () => {
21903
+ Fn.dismissError(), await Fn.stop(), await Hn();
21904
+ }, Kn = (e) => e?.toolCallId ?? "", qn = R(/* @__PURE__ */ new Set()), Jn = (e) => qn.value.has(Kn(e)), Yn = R(/* @__PURE__ */ new Map()), Xn = (e, t) => Fn.isActive.value ? (Fn.sendUserMessage(t) && (qn.value = new Set(qn.value).add(Kn(e)), Nn()), !0) : !1, Zn = (e, t, n) => {
21905
+ Xn(t, Or(t, n)) || $e({
21886
21906
  tool: e,
21887
- toolCallId: Un(t),
21907
+ toolCallId: Kn(t),
21888
21908
  output: n
21889
21909
  });
21890
- }, Yn = (e) => {
21910
+ }, Qn = (e) => {
21891
21911
  let t = e.confirmed ? pt("message.voiceConfirmed") : pt("message.voiceCancelled");
21892
- qn({ toolCallId: e.toolCallId }, t) ? Wn.value.has(e.toolCallId) && (Kn.value = new Map(Kn.value).set(e.toolCallId, e.confirmed)) : $e({
21912
+ Xn({ toolCallId: e.toolCallId }, t) ? qn.value.has(e.toolCallId) && (Yn.value = new Map(Yn.value).set(e.toolCallId, e.confirmed)) : $e({
21893
21913
  tool: "requestConfirm",
21894
21914
  toolCallId: e.toolCallId,
21895
21915
  output: e.confirmed ? "confirmed" : "cancelled"
21896
21916
  });
21897
- }, Xn = z(() => {
21917
+ }, $n = z(() => {
21898
21918
  let e = /* @__PURE__ */ new Map();
21899
21919
  for (let t of ee.value) for (let n of t.parts) {
21900
21920
  let { type: t, state: r, output: i } = n;
21901
- $t.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
21921
+ nn.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
21902
21922
  }
21903
21923
  return e;
21904
- }), Zn = z(() => {
21924
+ }), er = z(() => {
21905
21925
  let e = /* @__PURE__ */ new Map(), t = (t, n) => {
21906
21926
  if (t && n) {
21907
21927
  let r = t.toLowerCase();
@@ -21914,78 +21934,78 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
21914
21934
  continue;
21915
21935
  }
21916
21936
  let { type: e, state: r, output: i } = n;
21917
- $t.has(e) && r === "output-available" && i?.filename && t(Fr(i.filename, i.version), i.fileId);
21937
+ nn.has(e) && r === "output-available" && i?.filename && t(Fr(i.filename, i.version), i.fileId);
21918
21938
  }
21919
21939
  return e;
21920
- }), Qn = z(() => ue.value || v.value ? void 0 : (e) => {
21921
- let t = (Zn.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
21940
+ }), tr = z(() => ue.value || v.value ? void 0 : (e) => {
21941
+ let t = (er.value.get(e.filename.toLowerCase())?.size ?? 0) > 1;
21922
21942
  le.value = pt(t ? "messagePart.chatFileRestoreRequestById" : "messagePart.chatFileRestoreRequest", e), Ke();
21923
- }), $n = (e, t) => {
21924
- qn(e, t) || (le.value = t, Ke());
21925
- }, er = (e, t) => {
21943
+ }), nr = (e, t) => {
21944
+ Xn(e, t) || (le.value = t, Ke());
21945
+ }, rr = (e, t) => {
21926
21946
  let n = t.error ? pt("message.voiceLocationRefused") : pt("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
21927
- qn(e, n) || $e({
21947
+ Xn(e, n) || $e({
21928
21948
  tool: "requestGeolocation",
21929
- toolCallId: Un(e),
21949
+ toolCallId: Kn(e),
21930
21950
  output: t
21931
21951
  });
21932
- }, tr = (e, t) => {
21933
- qn(e, pt("message.voiceConnectionDone")) || $e({
21952
+ }, ir = (e, t) => {
21953
+ Xn(e, pt("message.voiceConnectionDone")) || $e({
21934
21954
  tool: "requestOAuthConnection",
21935
- toolCallId: Un(e),
21955
+ toolCallId: Kn(e),
21936
21956
  output: {
21937
21957
  connected: !0,
21938
21958
  mcpServerId: t
21939
21959
  }
21940
21960
  });
21941
- }, nr = () => {
21942
- gn.value = !gn.value, jn.setMuted(gn.value);
21961
+ }, ar = () => {
21962
+ yn.value = !yn.value, Fn.setMuted(yn.value);
21943
21963
  };
21944
21964
  je(() => {
21945
- _n = !0, Tn();
21965
+ bn = !0, kn();
21946
21966
  });
21947
- let { pendingWakeup: rr, tasks: ir, isStopping: ar, apply: or, stop: cr, spokenTurnStarted: lr, spokenTurnsWritten: ur, forgetSpokenTurns: fr } = MT({
21967
+ let { pendingWakeup: or, tasks: cr, isStopping: lr, apply: ur, stop: fr, spokenTurnStarted: pr, spokenTurnsWritten: mr, forgetSpokenTurns: hr } = PT({
21948
21968
  agentId: () => h.agentId,
21949
21969
  chatId: () => _.localChatId,
21950
21970
  apiClient: () => he.value,
21951
21971
  messages: () => ee.value,
21952
21972
  refreshMessages: ot,
21953
21973
  status: () => te.value.status
21954
- }), pr = Fm(h.agentId), mr = hT(h.agentId);
21955
- j(() => pr.changed, (e) => {
21956
- e?.chatId === _.localChatId && or(e.state);
21957
- }), j(() => ir.value.map((e) => `${e.id}:${e.status}`).join(), (e) => {
21958
- e !== pr.tasks.filter((e) => e.chatId === _.localChatId).map((e) => `${e.id}:${e.status}`).join() && pr.load();
21974
+ }), gr = Fm(h.agentId), _r = hT(h.agentId);
21975
+ j(() => gr.changed, (e) => {
21976
+ e?.chatId === _.localChatId && ur(e.state);
21977
+ }), j(() => cr.value.map((e) => `${e.id}:${e.status}`).join(), (e) => {
21978
+ e !== gr.tasks.filter((e) => e.chatId === _.localChatId).map((e) => `${e.id}:${e.status}`).join() && gr.load();
21959
21979
  });
21960
- let hr = mr.busy, gr = R(), _r = R(!1);
21961
- function vr(e, t) {
21962
- e === "edit" ? (gr.value = t, _r.value = !0) : e === "delete" ? mr.remove(t) : e === "run" ? mr.run(t) : mr.setActive(t, e === "resume");
21980
+ let vr = _r.busy, yr = R(), br = R(!1);
21981
+ function xr(e, t) {
21982
+ e === "edit" ? (yr.value = t, br.value = !0) : e === "delete" ? _r.remove(t) : e === "run" ? _r.run(t) : _r.setActive(t, e === "resume");
21963
21983
  }
21964
- async function yr() {
21965
- gr.value && await mr.remove(gr.value) && (_r.value = !1);
21984
+ async function Sr() {
21985
+ yr.value && await _r.remove(yr.value) && (br.value = !1);
21966
21986
  }
21967
- let br = z(() => pr.notice ?? Ct.value);
21968
- function xr() {
21969
- pr.notice ? pr.notice = void 0 : at();
21987
+ let Cr = z(() => gr.notice ?? Dt.value ?? Ct.value);
21988
+ function wr() {
21989
+ gr.notice ? gr.notice = void 0 : we.value ? we.value = void 0 : at();
21970
21990
  }
21971
21991
  return (t, x) => {
21972
21992
  let S = Dn, C = yt;
21973
21993
  return X(), Y("div", {
21974
21994
  ref_key: "chatViewEl",
21975
- ref: jt,
21995
+ ref: Ft,
21976
21996
  class: Oe(["pk-chatbot-view-chat", {
21977
- "pk-chatbot-view-chat--dragover": q(hn) && Ve.value?.enabled,
21978
- "pk-chatbot-view-chat--empty": Ot.value,
21979
- "pk-chatbot-view-chat--with-preview": Zt.value && !Pt.value
21997
+ "pk-chatbot-view-chat--dragover": q(vn) && Ve.value?.enabled,
21998
+ "pk-chatbot-view-chat--empty": Nt.value,
21999
+ "pk-chatbot-view-chat--with-preview": en.value && !Lt.value
21980
22000
  }])
21981
22001
  }, [
21982
22002
  M(U, {
21983
22003
  name: "pk-chatbot-view-chat-fade",
21984
22004
  mode: "out-in"
21985
22005
  }, {
21986
- default: W(() => [Ot.value ? (X(), F(hw, {
22006
+ default: W(() => [Nt.value ? (X(), F(hw, {
21987
22007
  key: 0,
21988
- greeting: q(At),
22008
+ greeting: q(Pt),
21989
22009
  logo: q(b)?.logo,
21990
22010
  name: q(_).name
21991
22011
  }, null, 8, [
@@ -21998,13 +22018,13 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
21998
22018
  interactive: !q(v),
21999
22019
  "operator-active": q(Re),
22000
22020
  messages: q(ee),
22001
- "confirm-verdicts-on-call": Kn.value,
22021
+ "confirm-verdicts-on-call": Yn.value,
22002
22022
  status: q(te).status,
22003
22023
  error: q(te).error,
22004
22024
  "main-color": q(b)?.mainColor,
22005
22025
  "text-color": q(b)?.textColor,
22006
22026
  "revised-answers": q(T),
22007
- actions: mn.value,
22027
+ actions: _n.value,
22008
22028
  "message-feedbacks": q(ne),
22009
22029
  "feedback-message-id": q(re)?.id,
22010
22030
  "feedback-loading": q(ie),
@@ -22012,12 +22032,12 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22012
22032
  "feedback-error": q(E),
22013
22033
  "show-extended-steps": q(b)?.showExtendedSteps,
22014
22034
  "hide-reasoning": q(b)?.showReasoning === !1,
22015
- "awaiting-spoken-answer": vn.value,
22035
+ "awaiting-spoken-answer": xn.value,
22016
22036
  "host-working": ht.value,
22017
22037
  "host-confirmation": q(ve),
22018
22038
  "is-dark": q(ge),
22019
22039
  "show-scroll-to-bottom": e.modifier === "fullscreen",
22020
- tasks: q(v) ? [] : q(ir),
22040
+ tasks: q(v) ? [] : q(cr),
22021
22041
  onFeedbackSubmit: x[0] ||= (e) => q(Ze)(e),
22022
22042
  onFeedbackClose: x[1] ||= (e) => re.value = void 0,
22023
22043
  onRegenerate: q(Je),
@@ -22029,8 +22049,8 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22029
22049
  onDownvote: q(I),
22030
22050
  onFeedback: q(Xe),
22031
22051
  onApprovalRespond: q(et),
22032
- onConfirmRespond: Yn,
22033
- onTaskAction: vr,
22052
+ onConfirmRespond: Qn,
22053
+ onTaskAction: xr,
22034
22054
  onHostConfirmRespond: q(ut)
22035
22055
  }, {
22036
22056
  "tool-showContactForm": W(({ part: e }) => [M(q(r), {
@@ -22055,7 +22075,7 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22055
22075
  "tool-showSuggestedReply": W(({ part: e }) => [M(q(i), {
22056
22076
  part: e,
22057
22077
  record: q(v),
22058
- onSelect: (t) => $n(e, t)
22078
+ onSelect: (t) => nr(e, t)
22059
22079
  }, null, 8, [
22060
22080
  "part",
22061
22081
  "record",
@@ -22063,15 +22083,15 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22063
22083
  ])]),
22064
22084
  "tool-showSources": W(({ part: e }) => [M(q(a), {
22065
22085
  part: e,
22066
- "on-expand-context": un,
22067
- "on-download": fn
22086
+ "on-expand-context": mn,
22087
+ "on-download": hn
22068
22088
  }, null, 8, ["part"])]),
22069
22089
  "tool-showForm": W(({ part: e }) => [M(U, { mode: "out-in" }, {
22070
22090
  default: W(() => [M(q(n), {
22071
22091
  part: e,
22072
22092
  record: q(v),
22073
- answered: Gn(e),
22074
- onSelect: (t) => Jn("showForm", e, t)
22093
+ answered: Jn(e),
22094
+ onSelect: (t) => Zn("showForm", e, t)
22075
22095
  }, null, 8, [
22076
22096
  "part",
22077
22097
  "record",
@@ -22085,8 +22105,8 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22085
22105
  part: e,
22086
22106
  "allow-custom-answer": "",
22087
22107
  record: q(v),
22088
- answered: Gn(e),
22089
- onSelect: (t) => Jn("showMultipleChoice", e, t)
22108
+ answered: Jn(e),
22109
+ onSelect: (t) => Zn("showMultipleChoice", e, t)
22090
22110
  }, null, 8, [
22091
22111
  "part",
22092
22112
  "record",
@@ -22100,7 +22120,7 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22100
22120
  "backend-url": q(de),
22101
22121
  "resolve-connection": (e) => q(he).getOAuthAuthorizeUrl(h.agentId, e),
22102
22122
  "check-connection": (e) => q(he).getOAuthConnectionStatus(h.agentId, e),
22103
- onConnected: (t) => tr(e, t)
22123
+ onConnected: (t) => ir(e, t)
22104
22124
  }, null, 8, [
22105
22125
  "part",
22106
22126
  "backend-url",
@@ -22110,9 +22130,9 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22110
22130
  ])]),
22111
22131
  "tool-requestGeolocation": W(({ part: e }) => [M(q(o), {
22112
22132
  part: e,
22113
- "call-live": q(jn).isActive.value,
22133
+ "call-live": q(Fn).isActive.value,
22114
22134
  "reverse-geocode": (e, t) => q(he).reverseGeocode(e, t),
22115
- onResult: (t) => er(e, t)
22135
+ onResult: (t) => rr(e, t)
22116
22136
  }, null, 8, [
22117
22137
  "part",
22118
22138
  "call-live",
@@ -22142,9 +22162,9 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22142
22162
  key: q(sr)(e),
22143
22163
  part: e,
22144
22164
  "file-url": We,
22145
- preview: Yt,
22146
- "latest-versions": Xn.value,
22147
- restore: Qn.value
22165
+ preview: Qt,
22166
+ "latest-versions": $n.value,
22167
+ restore: tr.value
22148
22168
  }, null, 8, [
22149
22169
  "part",
22150
22170
  "latest-versions",
@@ -22154,9 +22174,9 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22154
22174
  key: q(sr)(e),
22155
22175
  part: e,
22156
22176
  "file-url": We,
22157
- preview: Yt,
22158
- "latest-versions": Xn.value,
22159
- restore: Qn.value
22177
+ preview: Qt,
22178
+ "latest-versions": $n.value,
22179
+ restore: tr.value
22160
22180
  }, null, 8, [
22161
22181
  "part",
22162
22182
  "latest-versions",
@@ -22166,9 +22186,9 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22166
22186
  key: q(sr)(e),
22167
22187
  part: e,
22168
22188
  "file-url": We,
22169
- preview: Yt,
22170
- "latest-versions": Xn.value,
22171
- restore: Qn.value
22189
+ preview: Qt,
22190
+ "latest-versions": $n.value,
22191
+ restore: tr.value
22172
22192
  }, null, 8, [
22173
22193
  "part",
22174
22194
  "latest-versions",
@@ -22178,9 +22198,9 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22178
22198
  key: q(sr)(e),
22179
22199
  part: e,
22180
22200
  "file-url": We,
22181
- preview: Yt,
22182
- "latest-versions": Xn.value,
22183
- restore: Qn.value
22201
+ preview: Qt,
22202
+ "latest-versions": $n.value,
22203
+ restore: tr.value
22184
22204
  }, null, 8, [
22185
22205
  "part",
22186
22206
  "latest-versions",
@@ -22189,7 +22209,7 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22189
22209
  "tool-shareDocument": W(({ part: e }) => [(X(), F(q(f), {
22190
22210
  key: q(sr)(e),
22191
22211
  part: e,
22192
- "on-download": fn
22212
+ "on-download": hn
22193
22213
  }, null, 8, ["part"]))]),
22194
22214
  _: 1
22195
22215
  }, 8, /* @__PURE__ */ "interactive.operator-active.messages.confirm-verdicts-on-call.status.error.main-color.text-color.revised-answers.actions.message-feedbacks.feedback-message-id.feedback-loading.feedback-submitted.feedback-error.show-extended-steps.hide-reasoning.awaiting-spoken-answer.host-working.host-confirmation.is-dark.show-scroll-to-bottom.tasks.onRegenerate.onAutoRetry.onResetChat.onUpvote.onDownvote.onFeedback.onApprovalRespond.onHostConfirmRespond".split(".")))]),
@@ -22205,9 +22225,9 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22205
22225
  "onEdit",
22206
22226
  "onRemove"
22207
22227
  ])) : G("", !0),
22208
- L("div", FT, [
22228
+ L("div", LT, [
22209
22229
  M(U, { name: "pk-chatbot-view-chat-fade" }, {
22210
- default: W(() => [Ot.value ? (X(), F(Tb, {
22230
+ default: W(() => [Nt.value ? (X(), F(Tb, {
22211
22231
  key: 0,
22212
22232
  class: "pk-chatbot-view-chat__aurora",
22213
22233
  "source-selector": ".pk-chatbot-input__form",
@@ -22221,16 +22241,16 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22221
22241
  ])) : G("", !0)]),
22222
22242
  _: 1
22223
22243
  }),
22224
- (q(rr) || q(ir).length) && !q(ue) && !q(v) ? (X(), F(Hw, {
22244
+ (q(or) || q(cr).length) && !q(ue) && !q(v) ? (X(), F(Hw, {
22225
22245
  key: 0,
22226
- pending: q(rr),
22227
- tasks: q(ir),
22228
- stopping: q(ar),
22229
- busy: q(hr),
22230
- onStop: q(cr),
22231
- onEdit: x[4] ||= (e) => vr("edit", e),
22232
- onRun: x[5] ||= (e) => vr("run", e),
22233
- onToggle: x[6] ||= (e, t) => vr(t ? "resume" : "pause", e)
22246
+ pending: q(or),
22247
+ tasks: q(cr),
22248
+ stopping: q(lr),
22249
+ busy: q(vr),
22250
+ onStop: q(fr),
22251
+ onEdit: x[4] ||= (e) => xr("edit", e),
22252
+ onRun: x[5] ||= (e) => xr("run", e),
22253
+ onToggle: x[6] ||= (e, t) => xr(t ? "resume" : "pause", e)
22234
22254
  }, null, 8, [
22235
22255
  "pending",
22236
22256
  "tasks",
@@ -22238,43 +22258,38 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22238
22258
  "busy",
22239
22259
  "onStop"
22240
22260
  ])) : G("", !0),
22241
- gr.value ? (X(), F(pT, {
22261
+ yr.value ? (X(), F(pT, {
22242
22262
  key: 1,
22243
- modelValue: _r.value,
22244
- "onUpdate:modelValue": x[7] ||= (e) => _r.value = e,
22245
- task: gr.value,
22246
- load: () => q(mr).detail(gr.value),
22247
- save: (e) => q(mr).save(gr.value, e),
22248
- onChanged: x[8] ||= (e) => q(pr).notice = q(pt)("profileSection.tasks.changed"),
22249
- onDelete: yr
22263
+ modelValue: br.value,
22264
+ "onUpdate:modelValue": x[7] ||= (e) => br.value = e,
22265
+ task: yr.value,
22266
+ load: () => q(_r).detail(yr.value),
22267
+ save: (e) => q(_r).save(yr.value, e),
22268
+ onChanged: x[8] ||= (e) => q(gr).notice = q(pt)("profileSection.tasks.changed"),
22269
+ onDelete: Sr
22250
22270
  }, null, 8, [
22251
22271
  "modelValue",
22252
22272
  "task",
22253
22273
  "load",
22254
22274
  "save"
22255
22275
  ])) : G("", !0),
22256
- q(k) && !q(ue) && !q(v) ? (X(), F(ST, {
22276
+ wt.value ? (X(), F(wT, {
22257
22277
  key: 2,
22278
+ ref_key: "localFoldersEl",
22279
+ ref: Tt,
22258
22280
  folders: q(be),
22259
22281
  "picker-available": q(xe),
22260
- "can-connect": q(Se),
22261
- refused: q(we),
22262
22282
  onConnect: x[9] ||= (e) => q(_).connectLocalFolder(),
22263
22283
  onConnectFiles: x[10] ||= (e) => q(_).connectLocalFolderFiles(e),
22264
22284
  onAllow: x[11] ||= (e) => q(_).allowLocalFolder(e),
22265
22285
  onRemove: x[12] ||= (e) => q(_).removeLocalFolder(e)
22266
- }, null, 8, [
22267
- "folders",
22268
- "picker-available",
22269
- "can-connect",
22270
- "refused"
22271
- ])) : G("", !0),
22272
- q(ue) ? (X(), Y("div", IT, V(q(pt)("message.chatErrorConversationBlocked")), 1)) : q(v) ? (X(), Y("div", LT, [
22286
+ }, null, 8, ["folders", "picker-available"])) : G("", !0),
22287
+ q(ue) ? (X(), Y("div", RT, V(q(pt)("message.chatErrorConversationBlocked")), 1)) : q(v) ? (X(), Y("div", zT, [
22273
22288
  M(S, {
22274
22289
  name: "ri:eye-line",
22275
22290
  class: "shrink-0 w-18 h-18"
22276
22291
  }),
22277
- L("span", RT, V(q(pt)("chatProjects.readOnly")), 1),
22292
+ L("span", BT, V(q(pt)("chatProjects.readOnly")), 1),
22278
22293
  q(y) ? (X(), F(C, {
22279
22294
  key: 0,
22280
22295
  modifiers: "action-quiet",
@@ -22282,7 +22297,7 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22282
22297
  label: q(pt)("chatProjects.newChat"),
22283
22298
  onClick: x[13] ||= (e) => q(_).startNewChat({ projectId: q(y) })
22284
22299
  }, null, 8, ["label"])) : G("", !0)
22285
- ])) : Pn.value === "idle" ? (X(), F(cw, {
22300
+ ])) : Ln.value === "idle" ? (X(), F(cw, {
22286
22301
  key: 6,
22287
22302
  ref_key: "inputEl",
22288
22303
  ref: P,
@@ -22292,60 +22307,62 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22292
22307
  "onUpdate:pendingAttachments": x[15] ||= (e) => lt(fe) ? fe.value = e : null,
22293
22308
  placeholder: q(D),
22294
22309
  suggestion: bt.value,
22295
- "dismissable-notice": q(Tt) && q(te).messages.length <= 1 ? q(Tt) : void 0,
22310
+ "dismissable-notice": q(At) && q(te).messages.length <= 1 ? q(At) : void 0,
22296
22311
  "page-notice": St.value,
22297
22312
  status: gt.value,
22298
22313
  "max-message-length": q(b)?.maxMessageLength,
22299
22314
  "file-upload": Ve.value,
22300
22315
  "attachment-limit-reached": q(pe),
22301
- "attachment-notice": br.value,
22302
- "voice-enabled": Nn.value,
22316
+ "attachment-notice": Cr.value,
22317
+ "voice-enabled": In.value,
22303
22318
  "queue-enabled": q(ke),
22304
- "answer-notices": wt.value,
22319
+ "answer-notices": Ot.value,
22305
22320
  "pointer-available": q(Fe),
22306
22321
  pointing: q(Ie),
22307
22322
  pointer: Be.value,
22308
22323
  "automatic-confirmations": q(De) === "automatic",
22324
+ "folder-connect": wt.value && q(Se),
22309
22325
  "editable-images": "",
22310
22326
  "retryable-attachments": "",
22311
- onPoint: x[16] ||= (e) => q(_).pagePointerStart?.(),
22312
- onRemovePointer: x[17] ||= (e) => Pe.value = void 0,
22313
- onManualConfirmations: x[18] ||= (e) => q(_).setConfirmationMode("manual"),
22327
+ onConnectFolder: x[16] ||= (e) => Tt.value?.open(),
22328
+ onPoint: x[17] ||= (e) => q(_).pagePointerStart?.(),
22329
+ onRemovePointer: x[18] ||= (e) => Pe.value = void 0,
22330
+ onManualConfirmations: x[19] ||= (e) => q(_).setConfirmationMode("manual"),
22314
22331
  onStopGeneration: q(qe),
22315
22332
  onSubmit: q(Ke),
22316
22333
  onFileSelect: q(tt),
22317
22334
  onRemoveAttachment: q(nt),
22318
22335
  onReplaceAttachment: q(rt),
22319
22336
  onRetryAttachment: q(H),
22320
- onDismissAttachmentNotice: xr,
22337
+ onDismissAttachmentNotice: wr,
22321
22338
  onDismissPageNotice: q(ct),
22322
22339
  onOpenAnswerNotice: q(dt),
22323
22340
  onDismissAnswerNotice: q(ft),
22324
- onVoiceStart: zn
22341
+ onVoiceStart: Hn
22325
22342
  }, Ge({ _: 2 }, [e.modifier === "fullscreen" ? {
22326
22343
  name: "prepend",
22327
- fn: W(() => [L("span", zT, [M(xb, {
22344
+ fn: W(() => [L("span", VT, [M(xb, {
22328
22345
  class: "pk-chatbot-view-chat__agent-chip-avatar",
22329
22346
  "aria-hidden": "true",
22330
22347
  "img-src": q(b)?.logo,
22331
22348
  name: q(_).name
22332
- }, null, 8, ["img-src", "name"]), q(_).name ? (X(), Y("strong", BT, V(q(_).name), 1)) : G("", !0)])]),
22349
+ }, null, 8, ["img-src", "name"]), q(_).name ? (X(), Y("strong", HT, V(q(_).name), 1)) : G("", !0)])]),
22333
22350
  key: "0"
22334
- } : void 0]), 1032, /* @__PURE__ */ "modelValue.pending-attachments.placeholder.suggestion.dismissable-notice.page-notice.status.max-message-length.file-upload.attachment-limit-reached.attachment-notice.voice-enabled.queue-enabled.answer-notices.pointer-available.pointing.pointer.automatic-confirmations.onStopGeneration.onSubmit.onFileSelect.onRemoveAttachment.onReplaceAttachment.onRetryAttachment.onDismissPageNotice.onOpenAnswerNotice.onDismissAnswerNotice".split("."))) : (X(), F(Tw, {
22351
+ } : void 0]), 1032, /* @__PURE__ */ "modelValue.pending-attachments.placeholder.suggestion.dismissable-notice.page-notice.status.max-message-length.file-upload.attachment-limit-reached.attachment-notice.voice-enabled.queue-enabled.answer-notices.pointer-available.pointing.pointer.automatic-confirmations.folder-connect.onStopGeneration.onSubmit.onFileSelect.onRemoveAttachment.onReplaceAttachment.onRetryAttachment.onDismissPageNotice.onOpenAnswerNotice.onDismissAnswerNotice".split("."))) : (X(), F(Tw, {
22335
22352
  key: 5,
22336
- state: Pn.value,
22337
- sample: Ln,
22338
- spectrum: Rn,
22339
- "remaining-seconds": q(jn).remainingSeconds.value,
22340
- muted: gn.value,
22341
- error: Fn.value,
22342
- "raw-error": q(jn).error.value,
22343
- live: q(jn).isActive.value,
22353
+ state: Ln.value,
22354
+ sample: Bn,
22355
+ spectrum: Vn,
22356
+ "remaining-seconds": q(Fn).remainingSeconds.value,
22357
+ muted: yn.value,
22358
+ error: Rn.value,
22359
+ "raw-error": q(Fn).error.value,
22360
+ live: q(Fn).isActive.value,
22344
22361
  class: "pk-chatbot-view-chat__voice",
22345
- onToggleMute: nr,
22346
- onHangUp: Bn,
22347
- onRetry: Hn,
22348
- onDismiss: Vn
22362
+ onToggleMute: ar,
22363
+ onHangUp: Un,
22364
+ onRetry: Gn,
22365
+ onDismiss: Wn
22349
22366
  }, null, 8, [
22350
22367
  "state",
22351
22368
  "remaining-seconds",
@@ -22356,45 +22373,45 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22356
22373
  ]))
22357
22374
  ]),
22358
22375
  M(U, null, {
22359
- default: W(() => [q(hn) && Ve.value?.enabled ? (X(), Y("div", VT, [M(S, {
22376
+ default: W(() => [q(vn) && Ve.value?.enabled ? (X(), Y("div", UT, [M(S, {
22360
22377
  name: "ri:upload-cloud-2-line",
22361
22378
  class: "pk-chatbot-view-chat__drop-overlay-icon"
22362
22379
  }), L("span", null, V(q(pt)("action.dropFile")), 1)])) : G("", !0)]),
22363
22380
  _: 1
22364
22381
  }),
22365
- Zt.value ? (X(), F(it, {
22382
+ en.value ? (X(), F(it, {
22366
22383
  key: 1,
22367
- to: Ft.value,
22368
- disabled: !Pt.value
22369
- }, [L("aside", { class: Oe(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": Pt.value }]) }, [q(Bt) ? (X(), F(q(p), {
22384
+ to: Rt.value,
22385
+ disabled: !Lt.value
22386
+ }, [L("aside", { class: Oe(["pk-chatbot-view-chat__preview", { "pk-chatbot-view-chat__preview--docked": Lt.value }]) }, [q(Ut) ? (X(), F(q(p), {
22370
22387
  key: 0,
22371
- mode: Jt.value.mode,
22372
- "onUpdate:mode": x[19] ||= (e) => Jt.value.mode = e,
22373
- sheet: Jt.value.sheet,
22374
- "onUpdate:sheet": x[20] ||= (e) => Jt.value.sheet = e,
22375
- zoom: Jt.value.zoom,
22376
- "onUpdate:zoom": x[21] ||= (e) => Jt.value.zoom = e,
22377
- fit: Jt.value.fit,
22378
- "onUpdate:fit": x[22] ||= (e) => Jt.value.fit = e,
22379
- kind: q(Bt).kind,
22380
- filename: q(Bt).filename,
22381
- version: q(Bt).version,
22382
- versions: tn.value,
22383
- "download-url": We(q(Bt).storedFileName),
22384
- preview: q(Vt),
22385
- changes: q(Wt),
22386
- loading: q(Ht),
22387
- error: q(Ut),
22388
- restorable: rn.value,
22388
+ mode: Zt.value.mode,
22389
+ "onUpdate:mode": x[20] ||= (e) => Zt.value.mode = e,
22390
+ sheet: Zt.value.sheet,
22391
+ "onUpdate:sheet": x[21] ||= (e) => Zt.value.sheet = e,
22392
+ zoom: Zt.value.zoom,
22393
+ "onUpdate:zoom": x[22] ||= (e) => Zt.value.zoom = e,
22394
+ fit: Zt.value.fit,
22395
+ "onUpdate:fit": x[23] ||= (e) => Zt.value.fit = e,
22396
+ kind: q(Ut).kind,
22397
+ filename: q(Ut).filename,
22398
+ version: q(Ut).version,
22399
+ versions: an.value,
22400
+ "download-url": We(q(Ut).storedFileName),
22401
+ preview: q(Wt),
22402
+ changes: q(qt),
22403
+ loading: q(Gt),
22404
+ error: q(Kt),
22405
+ restorable: sn.value,
22389
22406
  resize: "expand",
22390
- "file-id": q(Bt).fileId,
22391
- "stored-file-name": q(Bt).storedFileName,
22392
- "selection-actions": on.value,
22393
- onVersion: nn,
22394
- onRestore: an,
22395
- onResize: x[23] ||= (e) => Xt.value = !0,
22396
- onSelectionSend: ln,
22397
- onClose: Qt
22407
+ "file-id": q(Ut).fileId,
22408
+ "stored-file-name": q(Ut).storedFileName,
22409
+ "selection-actions": ln.value,
22410
+ onVersion: on,
22411
+ onRestore: cn,
22412
+ onResize: x[24] ||= (e) => $t.value = !0,
22413
+ onSelectionSend: pn,
22414
+ onClose: tn
22398
22415
  }, null, 8, [
22399
22416
  "mode",
22400
22417
  "sheet",
@@ -22414,34 +22431,34 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22414
22431
  "stored-file-name",
22415
22432
  "selection-actions"
22416
22433
  ])) : G("", !0)], 2)], 8, ["to", "disabled"])) : G("", !0),
22417
- q(Bt) && !Zt.value ? (X(), F(q(m), {
22434
+ q(Ut) && !en.value ? (X(), F(q(m), {
22418
22435
  key: 2,
22419
- mode: Jt.value.mode,
22420
- "onUpdate:mode": x[24] ||= (e) => Jt.value.mode = e,
22421
- sheet: Jt.value.sheet,
22422
- "onUpdate:sheet": x[25] ||= (e) => Jt.value.sheet = e,
22423
- zoom: Jt.value.zoom,
22424
- "onUpdate:zoom": x[26] ||= (e) => Jt.value.zoom = e,
22425
- fit: Jt.value.fit,
22426
- "onUpdate:fit": x[27] ||= (e) => Jt.value.fit = e,
22427
- target: q(Bt),
22428
- versions: tn.value,
22429
- "download-url": We(q(Bt).storedFileName),
22430
- preview: q(Vt),
22431
- changes: q(Wt),
22432
- loading: q(Ht),
22433
- error: q(Ut),
22434
- restorable: rn.value,
22435
- resize: Rt.value ? "shrink" : void 0,
22436
- fullscreen: zt.value,
22437
- "selection-actions": on.value,
22438
- working: sn.value,
22439
- onVersion: nn,
22440
- onRestore: an,
22441
- onResize: x[28] ||= (e) => Xt.value = !1,
22442
- onSelectionSend: ln,
22443
- onShowChat: cn,
22444
- onClose: Qt
22436
+ mode: Zt.value.mode,
22437
+ "onUpdate:mode": x[25] ||= (e) => Zt.value.mode = e,
22438
+ sheet: Zt.value.sheet,
22439
+ "onUpdate:sheet": x[26] ||= (e) => Zt.value.sheet = e,
22440
+ zoom: Zt.value.zoom,
22441
+ "onUpdate:zoom": x[27] ||= (e) => Zt.value.zoom = e,
22442
+ fit: Zt.value.fit,
22443
+ "onUpdate:fit": x[28] ||= (e) => Zt.value.fit = e,
22444
+ target: q(Ut),
22445
+ versions: an.value,
22446
+ "download-url": We(q(Ut).storedFileName),
22447
+ preview: q(Wt),
22448
+ changes: q(qt),
22449
+ loading: q(Gt),
22450
+ error: q(Kt),
22451
+ restorable: sn.value,
22452
+ resize: Vt.value ? "shrink" : void 0,
22453
+ fullscreen: Ht.value,
22454
+ "selection-actions": ln.value,
22455
+ working: un.value,
22456
+ onVersion: on,
22457
+ onRestore: cn,
22458
+ onResize: x[29] ||= (e) => $t.value = !1,
22459
+ onSelectionSend: pn,
22460
+ onShowChat: fn,
22461
+ onClose: tn
22445
22462
  }, null, 8, [
22446
22463
  "mode",
22447
22464
  "sheet",
@@ -22466,23 +22483,23 @@ var FT = { class: "pk-chatbot-view-chat__input-stage" }, IT = {
22466
22483
  }), [["styles", [".pk-chatbot-view-chat{--pk-chatbot-preview-width:520px;flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.pk-chatbot-view-chat--with-preview{padding-inline-end:calc(var(--pk-chatbot-preview-width) + var(--spacing-12))}.pk-chatbot-view-chat__preview{inset-block:var(--spacing-12);z-index:1;width:var(--pk-chatbot-preview-width);border:var(--border) solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface);position:absolute;inset-inline-end:var(--spacing-12);overflow:hidden}.pk-chatbot-view-chat__preview--docked{border-width:0 0 0 var(--border);border-radius:0;flex-shrink:0;width:clamp(520px,38vw,760px);height:100%;position:relative;inset:auto}.pk-chatbot-view-chat--empty{justify-content:center;gap:var(--spacing-md)}.pk-chatbot--phone .pk-chatbot-view-chat--empty{justify-content:flex-start}.pk-chatbot--phone .pk-chatbot-view-chat--empty .pk-chatbot-empty-state{flex:1;justify-content:center}.pk-chatbot-view-chat__input-stage{position:relative}.pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{inset:calc(-1 * var(--spacing-320)) calc(-1 * var(--spacing-96))}.pk-chatbot--phone .pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{--aurora-spread:1.6;inset:calc(-1 * var(--spacing-384) - var(--spacing-128)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot-view-chat__agent-chip{align-items:center;gap:var(--spacing-6);padding:var(--spacing-4) var(--spacing-10) var(--spacing-4) var(--spacing-4);border:1px solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface);flex-shrink:0;display:inline-flex}.pk-chatbot--tight .pk-chatbot-view-chat__agent-chip{display:none}.pk-chatbot-view-chat__agent-chip-avatar{width:var(--spacing-24);height:var(--spacing-24);font-size:var(--text-10)}.pk-chatbot-view-chat__agent-chip-name{font-size:var(--text-12);font-weight:var(--font-semibold);color:var(--color-word-2);white-space:nowrap}.pk-chatbot-view-chat-fade-enter-active{transition:opacity .25s var(--ease-out)}.pk-chatbot-view-chat-fade-leave-active{transition:opacity .15s var(--ease-out)}.pk-chatbot-view-chat-fade-enter-from,.pk-chatbot-view-chat-fade-leave-to{opacity:0}@media (prefers-reduced-motion:reduce){.pk-chatbot-view-chat-fade-enter-active,.pk-chatbot-view-chat-fade-leave-active{transition:none}}.pk-chatbot-view-chat__drop-overlay{inset:var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);z-index:1;justify-content:center;align-items:center;gap:var(--spacing-xs);background-color:color-mix(in srgb, var(--color-surface) 85%, transparent);border-radius:var(--rounded-xl);border:var(--spacing-2) dashed var(--color-surface-5);pointer-events:none;color:var(--color-word-3);flex-direction:column;display:flex;position:absolute}.pk-chatbot-view-chat__drop-overlay-icon{font-size:var(--spacing-32)}.pk-chatbot-view-chat__read-only{align-items:center;gap:var(--spacing-sm);margin:0 var(--spacing-sm) var(--spacing-sm);padding:var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-md);border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded-lg);color:var(--color-word-3);font-size:var(--text-12);display:flex}.pk-chatbot-view-chat__read-only-text{flex:1;min-width:0}"]]]);
22467
22484
  // ../../packages/components/src/chat/PkChatbotViewConversations.vue?vue&type=script&setup=true&lang.ts
22468
22485
  B(), H(), P(), st();
22469
- var JT = { class: "flex flex-col flex-1 min-h-0 relative" }, YT = {
22486
+ var XT = { class: "flex flex-col flex-1 min-h-0 relative" }, ZT = {
22470
22487
  key: 0,
22471
22488
  class: "vv-item-group vv-item-group--fill"
22472
- }, XT = { class: "vv-item-group__list" }, ZT = { class: "vv-item__entry" }, QT = { class: "flex flex-col gap-6 flex-1 min-w-0" }, $T = {
22489
+ }, QT = { class: "vv-item-group__list" }, $T = { class: "vv-item__entry" }, eE = { class: "flex flex-col gap-6 flex-1 min-w-0" }, tE = {
22473
22490
  key: 1,
22474
22491
  class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
22475
- }, eE = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, tE = { class: "flex flex-col gap-4" }, nE = { class: "text-16 font-semibold text-word-1" }, rE = { class: "text-14 text-word-3 leading-relaxed" }, iE = {
22492
+ }, nE = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, rE = { class: "flex flex-col gap-4" }, iE = { class: "text-16 font-semibold text-word-1" }, aE = { class: "text-14 text-word-3 leading-relaxed" }, oE = {
22476
22493
  key: 2,
22477
22494
  class: "vv-item-group vv-item-group--fill"
22478
- }, aE = { class: "vv-item-group__list overflow-y-auto pb-64" }, oE = {
22495
+ }, sE = { class: "vv-item-group__list overflow-y-auto pb-64" }, cE = {
22479
22496
  key: 0,
22480
22497
  class: "flex flex-1 items-center gap-8 min-w-0 px-md py-12"
22481
- }, sE = ["aria-current", "onClick"], cE = { class: "min-w-0 flex-1" }, lE = { class: "flex items-center gap-8" }, uE = { class: "vv-item__title font-medium flex-1" }, dE = { class: "text-12 text-word-3 line-clamp-2" }, fE = { class: "vv-item__actions" }, pE = {
22498
+ }, lE = ["aria-current", "onClick"], uE = { class: "min-w-0 flex-1" }, dE = { class: "flex items-center gap-8" }, fE = { class: "vv-item__title font-medium flex-1" }, pE = { class: "text-12 text-word-3 line-clamp-2" }, mE = { class: "vv-item__actions" }, hE = {
22482
22499
  key: 3,
22483
22500
  class: "absolute bottom-0 left-0 right-0 flex flex-col items-center gap-4 px-16 pb-16 pt-32 pointer-events-none",
22484
22501
  style: { background: "linear-gradient(to top, var(--color-surface) 55%, transparent)" }
22485
- }, mE = /* @__PURE__ */ K({
22502
+ }, gE = /* @__PURE__ */ K({
22486
22503
  __name: "PkChatbotViewConversations",
22487
22504
  props: { agentId: { type: String } },
22488
22505
  setup(e) {
@@ -22496,19 +22513,19 @@ var JT = { class: "flex flex-col flex-1 min-h-0 relative" }, YT = {
22496
22513
  };
22497
22514
  return (e, t) => {
22498
22515
  let r = Dn, o = yt, c = Cn, u = En, d = bn, m = On;
22499
- return X(), Y("div", JT, [q(a) && q(i).length === 0 ? (X(), Y("div", YT, [L("div", XT, [(X(), Y(I, null, Be(5, (e) => L("div", {
22516
+ return X(), Y("div", XT, [q(a) && q(i).length === 0 ? (X(), Y("div", ZT, [L("div", QT, [(X(), Y(I, null, Be(5, (e) => L("div", {
22500
22517
  key: e,
22501
22518
  class: "vv-item vv-item--roomy vv-item--plain"
22502
- }, [L("div", ZT, [L("div", QT, [
22519
+ }, [L("div", $T, [L("div", eE, [
22503
22520
  L("div", { class: Oe(["vv-skeleton h-16 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[4] ||= [L("div", { class: "vv-skeleton__item" }, null, -1)]], 2),
22504
22521
  t[5] ||= L("div", { class: "vv-skeleton h-12 rounded" }, [L("div", { class: "vv-skeleton__item" })], -1),
22505
22522
  t[6] ||= L("div", { class: "vv-skeleton h-12 rounded w-160" }, [L("div", { class: "vv-skeleton__item" })], -1)
22506
- ])])])), 64))])])) : q(i).length === 0 ? (X(), Y("div", $T, [
22507
- L("div", eE, [M(r, {
22523
+ ])])])), 64))])])) : q(i).length === 0 ? (X(), Y("div", tE, [
22524
+ L("div", nE, [M(r, {
22508
22525
  name: "ri:chat-3-line",
22509
22526
  class: "w-28 h-28 text-word-4"
22510
22527
  })]),
22511
- L("div", tE, [L("strong", nE, V(q(n)("message.noConversations")), 1), L("span", rE, V(q(n)("message.noConversationsHint")), 1)]),
22528
+ L("div", rE, [L("strong", iE, V(q(n)("message.noConversations")), 1), L("span", aE, V(q(n)("message.noConversationsHint")), 1)]),
22512
22529
  M(o, {
22513
22530
  modifiers: "primary rounded",
22514
22531
  icon: "ri:add-line",
@@ -22516,10 +22533,10 @@ var JT = { class: "flex flex-col flex-1 min-h-0 relative" }, YT = {
22516
22533
  label: q(n)("action.startNewChat"),
22517
22534
  onClick: t[0] ||= (e) => q(l)()
22518
22535
  }, null, 8, ["label"])
22519
- ])) : (X(), Y("div", iE, [L("ul", aE, [(X(!0), Y(I, null, Be(q(i), (e) => (X(), Y("li", {
22536
+ ])) : (X(), Y("div", oE, [L("ul", sE, [(X(!0), Y(I, null, Be(q(i), (e) => (X(), Y("li", {
22520
22537
  key: e.id,
22521
22538
  class: Oe(["vv-item vv-item--roomy", { "vv-item--current": b(e) }])
22522
- }, [q(f) === e.id ? (X(), Y("div", oE, [M(c, {
22539
+ }, [q(f) === e.id ? (X(), Y("div", cE, [M(c, {
22523
22540
  modelValue: q(p),
22524
22541
  "onUpdate:modelValue": t[1] ||= (e) => lt(p) ? p.value = e : null,
22525
22542
  class: "flex-1 mb-0",
@@ -22553,8 +22570,8 @@ var JT = { class: "flex flex-col flex-1 min-h-0 relative" }, YT = {
22553
22570
  class: "vv-item__entry",
22554
22571
  "aria-current": b(e) ? "true" : void 0,
22555
22572
  onClick: (t) => y(e.id)
22556
- }, [L("div", cE, [L("div", lE, [
22557
- L("strong", uE, V(q(mn)(e.title) || x(e.messages, "assistant")), 1),
22573
+ }, [L("div", uE, [L("div", dE, [
22574
+ L("strong", fE, V(q(mn)(e.title) || x(e.messages, "assistant")), 1),
22558
22575
  q(s).includes(e.id) ? (X(), F(r, {
22559
22576
  key: 0,
22560
22577
  name: "loading-loop",
@@ -22567,7 +22584,7 @@ var JT = { class: "flex flex-col flex-1 min-h-0 relative" }, YT = {
22567
22584
  class: "text-word-3 text-smaller shrink-0",
22568
22585
  date: e.lastMessageAt
22569
22586
  }, null, 8, ["date"])
22570
- ]), L("span", dE, V(q(mn)(q(Yn)(e.summary, q(n))) || x(e.messages, "user")), 1)])], 8, sE), L("div", fE, [M(m, Le({ ref_for: !0 }, {
22587
+ ]), L("span", pE, V(q(mn)(q(Yn)(e.summary, q(n))) || x(e.messages, "user")), 1)])], 8, lE), L("div", mE, [M(m, Le({ ref_for: !0 }, {
22571
22588
  placement: "bottom-end",
22572
22589
  modifiers: "menu",
22573
22590
  flip: !0,
@@ -22587,7 +22604,7 @@ var JT = { class: "flex flex-col flex-1 min-h-0 relative" }, YT = {
22587
22604
  modifiers: "action-quiet-small"
22588
22605
  }, null, 8, ["title"])]),
22589
22606
  _: 2
22590
- }, 1040)])], 64))], 2))), 128))])])), q(i).length > 0 ? (X(), Y("div", pE, [M(o, {
22607
+ }, 1040)])], 64))], 2))), 128))])])), q(i).length > 0 ? (X(), Y("div", hE, [M(o, {
22591
22608
  class: "text-14 pointer-events-auto",
22592
22609
  modifiers: "primary rounded",
22593
22610
  icon: "ri:add-line",
@@ -22599,16 +22616,16 @@ var JT = { class: "flex flex-col flex-1 min-h-0 relative" }, YT = {
22599
22616
  });
22600
22617
  // ../../packages/components/src/chat/PkChatbotViewFiles.vue?vue&type=script&setup=true&lang.ts
22601
22618
  B(), H(), P();
22602
- var hE = { class: "flex flex-col flex-1 min-h-0 relative" }, gE = {
22619
+ var _E = { class: "flex flex-col flex-1 min-h-0 relative" }, vE = {
22603
22620
  key: 0,
22604
22621
  class: "vv-item-group vv-item-group--fill"
22605
- }, _E = { class: "vv-item-group__list" }, vE = { class: "vv-item__entry" }, yE = { class: "flex flex-col gap-6 flex-1 min-w-0" }, bE = {
22622
+ }, yE = { class: "vv-item-group__list" }, bE = { class: "vv-item__entry" }, xE = { class: "flex flex-col gap-6 flex-1 min-w-0" }, SE = {
22606
22623
  key: 1,
22607
22624
  class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
22608
- }, xE = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, SE = { class: "text-14 text-word-3 leading-relaxed" }, CE = {
22625
+ }, CE = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, wE = { class: "text-14 text-word-3 leading-relaxed" }, TE = {
22609
22626
  key: 2,
22610
22627
  class: "vv-item-group vv-item-group--fill"
22611
- }, wE = { class: "pk-chatbot-files vv-item-group__list overflow-y-auto" }, TE = ["title", "onClick"], EE = { class: "pk-chatbot-files__icon" }, DE = ["src", "onError"], OE = { class: "flex flex-col min-w-0 flex-1" }, kE = { class: "vv-item__title" }, AE = { class: "text-12 text-word-3" }, jE = { class: "vv-item__actions pk-chatbot-files__actions" }, ME = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
22628
+ }, EE = { class: "pk-chatbot-files vv-item-group__list overflow-y-auto" }, DE = ["title", "onClick"], OE = { class: "pk-chatbot-files__icon" }, kE = ["src", "onError"], AE = { class: "flex flex-col min-w-0 flex-1" }, jE = { class: "vv-item__title" }, ME = { class: "text-12 text-word-3" }, NE = { class: "vv-item__actions pk-chatbot-files__actions" }, PE = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
22612
22629
  __name: "PkChatbotViewFiles",
22613
22630
  props: { agentId: { type: String } },
22614
22631
  setup(e) {
@@ -22627,13 +22644,13 @@ var hE = { class: "flex flex-col flex-1 min-h-0 relative" }, gE = {
22627
22644
  };
22628
22645
  return (e, t) => {
22629
22646
  let r = Dn, i = yt;
22630
- return X(), Y("div", hE, [q(o) && q(a).length === 0 ? (X(), Y("div", gE, [L("div", _E, [(X(), Y(I, null, Be(4, (e) => L("div", {
22647
+ return X(), Y("div", _E, [q(o) && q(a).length === 0 ? (X(), Y("div", vE, [L("div", yE, [(X(), Y(I, null, Be(4, (e) => L("div", {
22631
22648
  key: e,
22632
22649
  class: "vv-item vv-item--roomy vv-item--plain"
22633
- }, [L("div", vE, [t[2] ||= L("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [L("div", { class: "vv-skeleton__item" })], -1), L("div", yE, [L("div", { class: Oe(["vv-skeleton h-14 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[0] ||= [L("div", { class: "vv-skeleton__item" }, null, -1)]], 2), t[1] ||= L("div", { class: "vv-skeleton h-12 rounded w-96" }, [L("div", { class: "vv-skeleton__item" })], -1)])])])), 64))])])) : q(a).length === 0 ? (X(), Y("div", bE, [L("div", xE, [M(r, {
22650
+ }, [L("div", bE, [t[2] ||= L("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [L("div", { class: "vv-skeleton__item" })], -1), L("div", xE, [L("div", { class: Oe(["vv-skeleton h-14 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[0] ||= [L("div", { class: "vv-skeleton__item" }, null, -1)]], 2), t[1] ||= L("div", { class: "vv-skeleton h-12 rounded w-96" }, [L("div", { class: "vv-skeleton__item" })], -1)])])])), 64))])])) : q(a).length === 0 ? (X(), Y("div", SE, [L("div", CE, [M(r, {
22634
22651
  name: "ri:folder-open-line",
22635
22652
  class: "w-28 h-28 text-word-4"
22636
- })]), L("span", SE, V(q(n)("userFiles.chatFilesEmpty")), 1)])) : (X(), Y("div", CE, [L("ul", wE, [(X(!0), Y(I, null, Be(q(a), (e) => (X(), Y("li", {
22653
+ })]), L("span", wE, V(q(n)("userFiles.chatFilesEmpty")), 1)])) : (X(), Y("div", TE, [L("ul", EE, [(X(!0), Y(I, null, Be(q(a), (e) => (X(), Y("li", {
22637
22654
  key: e.documentId,
22638
22655
  class: "vv-item vv-item--roomy"
22639
22656
  }, [L("button", {
@@ -22641,7 +22658,7 @@ var hE = { class: "flex flex-col flex-1 min-h-0 relative" }, gE = {
22641
22658
  class: "vv-item__entry",
22642
22659
  title: q(n)("userFiles.open"),
22643
22660
  onClick: (t) => q(u)(e)
22644
- }, [L("span", EE, [q(s)(e) ? (X(), Y("img", {
22661
+ }, [L("span", OE, [q(s)(e) ? (X(), Y("img", {
22645
22662
  key: 0,
22646
22663
  src: q(c)(e),
22647
22664
  loading: "lazy",
@@ -22649,10 +22666,10 @@ var hE = { class: "flex flex-col flex-1 min-h-0 relative" }, gE = {
22649
22666
  alt: "",
22650
22667
  class: "pk-chatbot-files__thumb",
22651
22668
  onError: (t) => q(l)(e)
22652
- }, null, 40, DE)) : (X(), F(r, {
22669
+ }, null, 40, kE)) : (X(), F(r, {
22653
22670
  key: 1,
22654
22671
  name: q(ei)(e.mimeType)
22655
- }, null, 8, ["name"]))]), L("span", OE, [L("span", kE, V(e.name || q(n)("userFiles.untitled")), 1), L("span", AE, V([q(d)(e.createdAt), q(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, TE), L("div", jE, [M(i, {
22672
+ }, null, 8, ["name"]))]), L("span", AE, [L("span", jE, V(e.name || q(n)("userFiles.untitled")), 1), L("span", ME, V([q(d)(e.createdAt), q(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, DE), L("div", NE, [M(i, {
22656
22673
  modifiers: "action-quiet-small",
22657
22674
  icon: "ri:download-line",
22658
22675
  title: q(n)("action.download"),
@@ -22675,16 +22692,16 @@ var hE = { class: "flex flex-col flex-1 min-h-0 relative" }, gE = {
22675
22692
  }), [["styles", [".pk-chatbot-files__icon{width:var(--spacing-36);height:var(--spacing-36);border-radius:var(--rounded-md);color:var(--color-word-3);flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}.pk-chatbot-files__icon svg{width:var(--spacing-20);height:var(--spacing-20)}.pk-chatbot-files__thumb{object-fit:cover;width:100%;height:100%}.pk-chatbot-files__actions{gap:var(--spacing-2)}"]]]);
22676
22693
  // ../../packages/components/src/chat/PkChatbotViewProfile.vue?vue&type=script&setup=true&lang.ts
22677
22694
  B(), H(), P();
22678
- var NE = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, PE = { class: "flex flex-col items-center gap-sm pt-lg px-lg pb-md bg-surface-1 border-b border-surface-3" }, FE = { class: "flex flex-col items-center gap-6 text-center" }, IE = {
22695
+ var FE = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, IE = { class: "flex flex-col items-center gap-sm pt-lg px-lg pb-md bg-surface-1 border-b border-surface-3" }, LE = { class: "flex flex-col items-center gap-6 text-center" }, RE = {
22679
22696
  key: 0,
22680
22697
  class: "text-16 font-semibold text-word-1 leading-tight"
22681
- }, LE = {
22698
+ }, zE = {
22682
22699
  key: 1,
22683
22700
  class: "text-12 text-word-3 leading-none"
22684
- }, RE = { class: "flex flex-col gap-sm p-md flex-1" }, zE = ["href"], BE = { class: "w-40 h-40 rounded-lg bg-surface-2 border border-surface-3 flex items-center justify-center shrink-0" }, VE = { class: "flex flex-col flex-1 min-w-0 gap-1" }, HE = { class: "text-14 font-medium text-word-1 leading-tight" }, UE = { class: "text-12 text-word-3 leading-tight" }, WE = {
22701
+ }, BE = { class: "flex flex-col gap-sm p-md flex-1" }, VE = ["href"], HE = { class: "w-40 h-40 rounded-lg bg-surface-2 border border-surface-3 flex items-center justify-center shrink-0" }, UE = { class: "flex flex-col flex-1 min-w-0 gap-1" }, WE = { class: "text-14 font-medium text-word-1 leading-tight" }, GE = { class: "text-12 text-word-3 leading-tight" }, KE = {
22685
22702
  key: 0,
22686
22703
  class: "px-md py-sm"
22687
- }, GE = /* @__PURE__ */ K({
22704
+ }, qE = /* @__PURE__ */ K({
22688
22705
  __name: "PkChatbotViewProfile",
22689
22706
  props: { agentId: { type: String } },
22690
22707
  setup(e) {
@@ -22703,14 +22720,14 @@ var NE = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, PE = { class
22703
22720
  }
22704
22721
  return (e, t) => {
22705
22722
  let a = xn, p = Dn, m = yt;
22706
- return X(), Y("div", NE, [
22707
- L("div", PE, [M(xb, {
22723
+ return X(), Y("div", FE, [
22724
+ L("div", IE, [M(xb, {
22708
22725
  class: "w-64 h-64",
22709
22726
  "aria-hidden": "true",
22710
22727
  name: o.value?.name ?? q(r),
22711
22728
  "img-src": o.value?.image ?? q(i)?.logo
22712
- }, null, 8, ["name", "img-src"]), L("div", FE, [o.value?.name ?? q(r) ? (X(), Y("strong", IE, V(o.value?.name ?? q(r)), 1)) : G("", !0), o.value?.email ? (X(), Y("span", LE, V(o.value.email), 1)) : G("", !0)])]),
22713
- L("div", RE, [d.value ? (X(), F(a, {
22729
+ }, null, 8, ["name", "img-src"]), L("div", LE, [o.value?.name ?? q(r) ? (X(), Y("strong", RE, V(o.value?.name ?? q(r)), 1)) : G("", !0), o.value?.email ? (X(), Y("span", zE, V(o.value.email), 1)) : G("", !0)])]),
22730
+ L("div", BE, [d.value ? (X(), F(a, {
22714
22731
  key: 0,
22715
22732
  modifiers: "danger",
22716
22733
  content: d.value
@@ -22721,17 +22738,17 @@ var NE = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, PE = { class
22721
22738
  rel: "noopener noreferrer",
22722
22739
  class: "flex items-center gap-12 p-12 rounded-lg border border-surface-3 hover:border-surface-5 hover:bg-surface-1 transition-colors cursor-pointer no-underline"
22723
22740
  }, [
22724
- L("div", BE, [M(p, {
22741
+ L("div", HE, [M(p, {
22725
22742
  name: "ri:user-settings-line",
22726
22743
  class: "w-20 h-20 text-word-2"
22727
22744
  })]),
22728
- L("div", VE, [L("span", HE, V(q(n)("action.manageProfile")), 1), L("span", UE, V(q(n)("label.manageProfileDescription")), 1)]),
22745
+ L("div", UE, [L("span", WE, V(q(n)("action.manageProfile")), 1), L("span", GE, V(q(n)("label.manageProfileDescription")), 1)]),
22729
22746
  M(p, {
22730
22747
  name: "ri:arrow-right-s-line",
22731
22748
  class: "w-16 h-16 text-word-4 shrink-0"
22732
22749
  })
22733
- ], 8, zE)) : G("", !0)]),
22734
- l.value ? G("", !0) : (X(), Y("div", WE, [M(m, {
22750
+ ], 8, VE)) : G("", !0)]),
22751
+ l.value ? G("", !0) : (X(), Y("div", KE, [M(m, {
22735
22752
  modifiers: "secondary-danger",
22736
22753
  class: "w-full",
22737
22754
  icon: "ri:logout-box-line",
@@ -22751,13 +22768,13 @@ var NE = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, PE = { class
22751
22768
  });
22752
22769
  // ../../packages/components/src/chat/PkChatbot.vue?vue&type=script&setup=true&lang.ts
22753
22770
  B(), H(), P();
22754
- var KE = { class: "pk-chatbot__header-start" }, qE = ["title"], JE = { key: 1 }, YE = { class: "pk-chatbot__warning-body" }, XE = { class: "pk-chatbot__warning-header" }, ZE = { class: "pk-chatbot__warning-title" }, QE = { class: "pk-chatbot__warning-text" }, $E = {
22771
+ var JE = { class: "pk-chatbot__header-start" }, YE = ["title"], XE = { key: 1 }, ZE = { class: "pk-chatbot__warning-body" }, QE = { class: "pk-chatbot__warning-header" }, $E = { class: "pk-chatbot__warning-title" }, eD = { class: "pk-chatbot__warning-text" }, tD = {
22755
22772
  key: 5,
22756
22773
  class: "pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto"
22757
- }, eD = {
22774
+ }, nD = {
22758
22775
  key: 7,
22759
22776
  class: "pk-chatbot__footer"
22760
- }, tD = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
22777
+ }, rD = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
22761
22778
  __name: "PkChatbot",
22762
22779
  props: /*@__PURE__*/ Pe({
22763
22780
  baseUrl: { type: String },
@@ -22879,7 +22896,7 @@ var KE = { class: "pk-chatbot__header-start" }, qE = ["title"], JE = { key: 1 },
22879
22896
  key: 0,
22880
22897
  class: "pk-chatbot__header",
22881
22898
  style: Ie(ge.value ? { backgroundColor: ve.value } : void 0)
22882
- }, [L("div", KE, [q(f) === "chat" ? le.value ? G("", !0) : (X(), F(xb, {
22899
+ }, [L("div", JE, [q(f) === "chat" ? le.value ? G("", !0) : (X(), F(xb, {
22883
22900
  key: 1,
22884
22901
  class: "pk-chatbot__avatar",
22885
22902
  "aria-hidden": "true",
@@ -22897,7 +22914,7 @@ var KE = { class: "pk-chatbot__header-start" }, qE = ["title"], JE = { key: 1 },
22897
22914
  class: "pk-chatbot__title",
22898
22915
  title: Ce.value,
22899
22916
  style: Ie(ge.value ? { color: ye.value } : void 0)
22900
- }, V(Ce.value), 13, qE)]), M(u, {
22917
+ }, V(Ce.value), 13, YE)]), M(u, {
22901
22918
  class: "pk-chatbot__header-end",
22902
22919
  modifiers: "compact"
22903
22920
  }, {
@@ -23011,14 +23028,14 @@ var KE = { class: "pk-chatbot__header-start" }, qE = ["title"], JE = { key: 1 },
23011
23028
  ]),
23012
23029
  _: 3
23013
23030
  })], 4)),
23014
- he.value ? (X(), Y("div", JE, [L("div", YE, [M(p, { modifiers: "callout" }, {
23015
- default: W(() => [L("div", XE, [M(s, {
23031
+ he.value ? (X(), Y("div", XE, [L("div", ZE, [M(p, { modifiers: "callout" }, {
23032
+ default: W(() => [L("div", QE, [M(s, {
23016
23033
  name: "ri:alert-line",
23017
23034
  class: "pk-chatbot__warning-icon"
23018
- }), L("strong", ZE, V(q(i)("message.warning")), 1)]), L("p", QE, V(q(i)("message.reasoningAgent")), 1)]),
23035
+ }), L("strong", $E, V(q(i)("message.warning")), 1)]), L("p", eD, V(q(i)("message.reasoningAgent")), 1)]),
23019
23036
  _: 1
23020
23037
  })])])) : G("", !0),
23021
- q(f) === "chat" ? (X(), F(qT, {
23038
+ q(f) === "chat" ? (X(), F(YT, {
23022
23039
  key: 2,
23023
23040
  "agent-id": e.agentId,
23024
23041
  modifier: e.modifier,
@@ -23033,37 +23050,37 @@ var KE = { class: "pk-chatbot__header-start" }, qE = ["title"], JE = { key: 1 },
23033
23050
  "agent-id",
23034
23051
  "modifier",
23035
23052
  "user-name"
23036
- ])) : q(f) === "conversations" ? (X(), F(mE, {
23053
+ ])) : q(f) === "conversations" ? (X(), F(gE, {
23037
23054
  key: 3,
23038
23055
  "agent-id": e.agentId
23039
23056
  }, Ge({ _: 2 }, [Be(Object.keys(q(r)), (e) => ({
23040
23057
  name: e,
23041
23058
  fn: W((n) => [Ae(t.$slots, e, Ee(De(n)))])
23042
- }))]), 1032, ["agent-id"])) : q(f) === "files" ? (X(), F(ME, {
23059
+ }))]), 1032, ["agent-id"])) : q(f) === "files" ? (X(), F(PE, {
23043
23060
  key: 4,
23044
23061
  "agent-id": e.agentId
23045
- }, null, 8, ["agent-id"])) : q(f) === "auth" ? (X(), Y("div", $E, [Ae(t.$slots, "view-auth")])) : (X(), F(GE, {
23062
+ }, null, 8, ["agent-id"])) : q(f) === "auth" ? (X(), Y("div", tD, [Ae(t.$slots, "view-auth")])) : (X(), F(qE, {
23046
23063
  key: 6,
23047
23064
  "agent-id": e.agentId
23048
23065
  }, Ge({ _: 2 }, [Be(Object.keys(q(r)), (e) => ({
23049
23066
  name: e,
23050
23067
  fn: W((n) => [Ae(t.$slots, e, Ee(De(n)))])
23051
23068
  }))]), 1032, ["agent-id"])),
23052
- q(k) ? (X(), Y("div", eD, [M(Jr, {
23069
+ q(k) ? (X(), Y("div", nD, [M(Jr, {
23053
23070
  markdown: q(k),
23054
23071
  class: "wysiwyg"
23055
23072
  }, null, 8, ["markdown"])])) : G("", !0)
23056
23073
  ], 6);
23057
23074
  };
23058
23075
  }
23059
- }), [["styles", [".pk-chatbot{background-color:var(--color-surface);flex-direction:column;height:100%;display:flex;position:relative}.pk-chatbot__header{z-index:1;justify-content:space-between;gap:var(--spacing-14);background-color:var(--color-surface-1);padding:var(--spacing-14);border-bottom:1px solid var(--color-surface-3);display:flex;position:sticky;top:0}.pk-chatbot__header-start{align-items:center;gap:var(--spacing-sm);min-width:0;display:flex}.pk-chatbot__nav-icon{font-size:var(--text-18)}.pk-chatbot__avatar{width:var(--spacing-24);height:var(--spacing-24)}.pk-chatbot__title{font-size:var(--text-16);font-weight:var(--font-semibold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pk-chatbot__header-end{flex-shrink:0}.pk-chatbot__warning-body{padding:var(--spacing-md);border-bottom:1px solid var(--color-surface-3)}.pk-chatbot__warning-header{align-items:center;gap:var(--spacing-4);margin-bottom:var(--spacing-4);display:flex}.pk-chatbot__warning-icon{width:var(--spacing-16);height:var(--spacing-16)}.pk-chatbot__warning-title{font-weight:600;font-size:var(--text-14)}.pk-chatbot__warning-text{font-size:var(--text-12);color:var(--color-word-3)}.pk-chatbot__footer{padding:var(--spacing-md);border-top:1px solid var(--color-surface-3);text-align:center;font-size:var(--text-12);color:var(--color-word-2)}.pk-chatbot--fullscreen{--pk-chat-fullscreen-dock-height:calc(var(--spacing-56) + var(--spacing-4));--pk-chat-dock-radius:calc(var(--pk-chat-fullscreen-dock-height) / 2);background-color:#0000}.pk-chatbot--fullscreen .pk-chatbot__footer{padding:0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);border-top:none}.pk-chatbot--fullscreen .pk-chatbot-messages{scrollbar-gutter:stable both-edges;-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 var(--spacing-40), #000 calc(100% - var(--spacing-40)), transparent 100%);mask-image:linear-gradient(to bottom, transparent 0, #000 var(--spacing-40), #000 calc(100% - var(--spacing-40)), transparent 100%);padding-block:var(--spacing-48)}.pk-chatbot--fullscreen .pk-chatbot-messages__wrapper{width:100%;max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-messages__outline{display:none}.pk-chatbot--fullscreen.pk-chatbot--wide .pk-chatbot-messages__outline{display:block}.pk-chatbot--fullscreen .pk-chatbot-file-preview{background-color:var(--color-surface)}.pk-chatbot--fullscreen .pk-chatbot-input__notice{background-color:var(--color-surface);border-inline:1px solid var(--color-surface-3);border-top:1px solid var(--color-surface-2);padding:var(--spacing-10) var(--spacing-16)}.pk-chatbot--fullscreen .pk-chatbot-input__notice:after{background-color:var(--color-surface);border-inline:1px solid var(--color-surface-2);bottom:calc(-1 * var(--pk-chat-dock-radius));height:var(--pk-chat-dock-radius);left:-1px;right:-1px}.pk-chatbot--fullscreen .pk-chatbot-input{width:calc(100% - var(--spacing-sm) * 2);max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-input__form{border-radius:var(--pk-chat-dock-radius);min-height:var(--pk-chat-fullscreen-dock-height);padding:var(--spacing-12) var(--spacing-16);background-color:var(--color-surface-1);border-color:var(--color-surface-2);box-shadow:none;transition:border-color var(--duration-200) var(--ease-in-out), box-shadow var(--duration-200) var(--ease-in-out)}.pk-chatbot--fullscreen .pk-chatbot-input__form:has(:focus-within){border-color:var(--color-surface-4);box-shadow:var(--shadow-sm)}@media (prefers-reduced-motion:reduce){.pk-chatbot--fullscreen .pk-chatbot-input__form{transition:none}}.pk-chatbot--fullscreen .pk-chatbot-input__textarea{background-color:#0000}.pk-chatbot--fullscreen .pk-voice-session{--pk-chat-dock-height:var(--pk-chat-fullscreen-dock-height);--pk-voice-orb-size:var(--spacing-40);--pk-voice-orb-bars-height:var(--spacing-20);--pk-voice-session-surface:var(--color-surface-1);width:calc(100% - var(--spacing-sm) * 2);max-width:768px;padding-inline:var(--spacing-16);border-color:var(--color-surface-2);border-radius:var(--pk-chat-dock-radius);box-shadow:none;margin-inline:auto}.pk-chatbot--fullscreen .pk-voice-session__timer{font-size:var(--text-14)}.pk-chatbot--fullscreen .pk-chatbot-view-chat__read-only{width:calc(100% - var(--spacing-sm) * 2);max-width:768px;min-height:var(--pk-chat-fullscreen-dock-height);padding-inline:var(--spacing-16) var(--spacing-12);border-color:var(--color-surface-2);border-radius:var(--pk-chat-dock-radius);background-color:var(--color-surface-1);margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-wakeup-bar{--pk-chatbot-wakeup-bar-border:var(--color-surface-2);--pk-chatbot-wakeup-bar-inset:var(--spacing-16);width:calc(100% - var(--spacing-sm) * 2);max-width:768px;margin-inline:auto}.pk-chatbot--panel{background-color:#0000}.pk-chatbot--panel .pk-chatbot__header{height:var(--pk-chatbot-panel-header-height,50px);padding-block:0;padding-inline:var(--spacing-10);border-bottom:1px solid var(--color-surface-3);background-color:#0000;align-items:center}.pk-chatbot--panel .pk-chatbot__title{font-size:var(--text-14)}.pk-chatbot--panel .pk-chatbot__footer{padding:var(--spacing-6) var(--spacing-md);border-top:none}.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-messages__wrapper,.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-input,.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-wakeup-bar{width:100%;max-width:768px;margin-inline:auto}"]]]);
23076
+ }), [["styles", [".pk-chatbot{background-color:var(--color-surface);flex-direction:column;height:100%;display:flex;position:relative}.pk-chatbot__header{z-index:1;justify-content:space-between;gap:var(--spacing-14);background-color:var(--color-surface-1);padding:var(--spacing-14);border-bottom:1px solid var(--color-surface-3);display:flex;position:sticky;top:0}.pk-chatbot__header-start{align-items:center;gap:var(--spacing-sm);min-width:0;display:flex}.pk-chatbot__nav-icon{font-size:var(--text-18)}.pk-chatbot__avatar{width:var(--spacing-24);height:var(--spacing-24)}.pk-chatbot__title{font-size:var(--text-16);font-weight:var(--font-semibold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pk-chatbot__header-end{flex-shrink:0}.pk-chatbot__warning-body{padding:var(--spacing-md);border-bottom:1px solid var(--color-surface-3)}.pk-chatbot__warning-header{align-items:center;gap:var(--spacing-4);margin-bottom:var(--spacing-4);display:flex}.pk-chatbot__warning-icon{width:var(--spacing-16);height:var(--spacing-16)}.pk-chatbot__warning-title{font-weight:600;font-size:var(--text-14)}.pk-chatbot__warning-text{font-size:var(--text-12);color:var(--color-word-3)}.pk-chatbot__footer{padding:var(--spacing-md);border-top:1px solid var(--color-surface-3);text-align:center;font-size:var(--text-12);color:var(--color-word-2)}.pk-chatbot--fullscreen{--pk-chat-fullscreen-dock-height:calc(var(--spacing-56) + var(--spacing-4));--pk-chat-dock-radius:calc(var(--pk-chat-fullscreen-dock-height) / 2);background-color:#0000}.pk-chatbot--fullscreen .pk-chatbot__footer{padding:0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);border-top:none}.pk-chatbot--fullscreen .pk-chatbot-messages{scrollbar-gutter:stable both-edges;-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 var(--spacing-40), #000 calc(100% - var(--spacing-40)), transparent 100%);mask-image:linear-gradient(to bottom, transparent 0, #000 var(--spacing-40), #000 calc(100% - var(--spacing-40)), transparent 100%);padding-block:var(--spacing-48)}.pk-chatbot--fullscreen .pk-chatbot-messages__wrapper{width:100%;max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-messages__outline{display:none}.pk-chatbot--fullscreen.pk-chatbot--wide .pk-chatbot-messages__outline{display:block}.pk-chatbot--fullscreen .pk-chatbot-file-preview{background-color:var(--color-surface)}.pk-chatbot--fullscreen .pk-chatbot-input__notice{background-color:var(--color-surface);border-inline:1px solid var(--color-surface-3);border-top:1px solid var(--color-surface-2);padding:var(--spacing-10) var(--spacing-16)}.pk-chatbot--fullscreen .pk-chatbot-input__notice:after{background-color:var(--color-surface);border-inline:1px solid var(--color-surface-2);bottom:calc(-1 * var(--pk-chat-dock-radius));height:var(--pk-chat-dock-radius);left:-1px;right:-1px}.pk-chatbot--fullscreen .pk-chatbot-input{width:calc(100% - var(--spacing-sm) * 2);max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-input__form{border-radius:var(--pk-chat-dock-radius);min-height:var(--pk-chat-fullscreen-dock-height);padding:var(--spacing-12) var(--spacing-16);background-color:var(--color-surface-1);border-color:var(--color-surface-2);box-shadow:none;transition:border-color var(--duration-200) var(--ease-in-out), box-shadow var(--duration-200) var(--ease-in-out)}.pk-chatbot--fullscreen .pk-chatbot-input__form:has(:focus-within){border-color:var(--color-surface-4);box-shadow:var(--shadow-sm)}@media (prefers-reduced-motion:reduce){.pk-chatbot--fullscreen .pk-chatbot-input__form{transition:none}}.pk-chatbot--fullscreen .pk-chatbot-input__textarea{background-color:#0000}.pk-chatbot--fullscreen .pk-voice-session{--pk-chat-dock-height:var(--pk-chat-fullscreen-dock-height);--pk-voice-orb-size:var(--spacing-40);--pk-voice-orb-bars-height:var(--spacing-20);--pk-voice-session-surface:var(--color-surface-1);width:calc(100% - var(--spacing-sm) * 2);max-width:768px;padding-inline:var(--spacing-16);border-color:var(--color-surface-2);border-radius:var(--pk-chat-dock-radius);box-shadow:none;margin-inline:auto}.pk-chatbot--fullscreen .pk-voice-session__timer{font-size:var(--text-14)}.pk-chatbot--fullscreen .pk-chatbot-view-chat__read-only{width:calc(100% - var(--spacing-sm) * 2);max-width:768px;min-height:var(--pk-chat-fullscreen-dock-height);padding-inline:var(--spacing-16) var(--spacing-12);border-color:var(--color-surface-2);border-radius:var(--pk-chat-dock-radius);background-color:var(--color-surface-1);margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-wakeup-bar{--pk-chatbot-wakeup-bar-border:var(--color-surface-2);--pk-chatbot-wakeup-bar-inset:var(--spacing-16);width:calc(100% - var(--spacing-sm) * 2);max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-local-folders{--pk-chatbot-local-folders-border:var(--color-surface-2);--pk-chatbot-local-folders-inset:var(--spacing-16);width:calc(100% - var(--spacing-sm) * 2);max-width:768px;margin-inline:auto}.pk-chatbot--panel{background-color:#0000}.pk-chatbot--panel .pk-chatbot__header{height:var(--pk-chatbot-panel-header-height,50px);padding-block:0;padding-inline:var(--spacing-10);border-bottom:1px solid var(--color-surface-3);background-color:#0000;align-items:center}.pk-chatbot--panel .pk-chatbot__title{font-size:var(--text-14)}.pk-chatbot--panel .pk-chatbot__footer{padding:var(--spacing-6) var(--spacing-md);border-top:none}.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-messages__wrapper,.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-input,.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-wakeup-bar{width:100%;max-width:768px;margin-inline:auto}"]]]);
23060
23077
  // ../../packages/components/src/chat/PkPageControlBar.vue?vue&type=script&setup=true&lang.ts
23061
23078
  B(), P(), st();
23062
- var nD = {
23079
+ var iD = {
23063
23080
  key: 0,
23064
23081
  class: "pk-page-control-bar",
23065
23082
  role: "status"
23066
- }, rD = { class: "pk-page-control-bar__text" }, iD = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23083
+ }, aD = { class: "pk-page-control-bar__text" }, oD = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23067
23084
  __name: "PkPageControlBar",
23068
23085
  props: {
23069
23086
  active: { type: Boolean },
@@ -23084,7 +23101,7 @@ var nD = {
23084
23101
  name: "pk-page-control-bar",
23085
23102
  appear: ""
23086
23103
  }, {
23087
- default: W(() => [e.active && !u.value ? (X(), Y("div", nD, [L("span", rD, [J(V(t.$t("messagePart.pageControlActive")) + " ", 1), e.action ? (X(), Y(I, { key: 0 }, [J("· " + V(e.action), 1)], 64)) : G("", !0)]), L("button", {
23104
+ default: W(() => [e.active && !u.value ? (X(), Y("div", iD, [L("span", aD, [J(V(t.$t("messagePart.pageControlActive")) + " ", 1), e.action ? (X(), Y(I, { key: 0 }, [J("· " + V(e.action), 1)], 64)) : G("", !0)]), L("button", {
23088
23105
  type: "button",
23089
23106
  class: "pk-page-control-bar__stop",
23090
23107
  onClick: n[0] ||= (e) => r("stop")
@@ -23095,11 +23112,11 @@ var nD = {
23095
23112
  }), [["styles", [".pk-page-control-bar{top:var(--spacing-48);z-index:2147483647;align-items:center;gap:var(--spacing-12);max-width:min(var(--spacing-384), 100vw - var(--spacing-32));padding:var(--spacing-8) var(--spacing-8) var(--spacing-8) var(--spacing-16);border-radius:var(--rounded-full);background-color:var(--color-word-1);color:var(--color-surface);font-family:var(--font-sans);font-size:var(--text-14);font-weight:var(--font-medium);box-shadow:var(--shadow-lg);display:flex;position:fixed;left:50%;transform:translate(-50%)}.pk-page-control-bar__text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.pk-page-control-bar__stop{border-radius:var(--rounded-full);padding:var(--spacing-6) var(--spacing-14);background-color:var(--color-surface);color:var(--color-word-1);font:inherit;cursor:pointer;border:0;flex-shrink:0}.pk-page-control-bar__stop:focus-visible{outline:var(--spacing-2) solid var(--color-surface);outline-offset:var(--spacing-2)}.pk-page-control-bar-enter-active{transition:opacity .25s ease-out,translate .35s cubic-bezier(.32,.72,0,1),scale .35s cubic-bezier(.32,.72,0,1)}.pk-page-control-bar-leave-active{transition:opacity .2s ease-in,translate .2s ease-in,scale .2s ease-in}.pk-page-control-bar-enter-from,.pk-page-control-bar-leave-to{opacity:0;translate:0 calc(-1 * var(--spacing-16));scale:.96}@media (prefers-reduced-motion:reduce){.pk-page-control-bar-enter-active,.pk-page-control-bar-leave-active{transition:none}}"]]]);
23096
23113
  // ../../packages/components/src/chat/PkPagePointer.vue?vue&type=script&setup=true&lang.ts
23097
23114
  B(), st(), P();
23098
- var aD = { class: "pk-page-pointer" }, oD = {
23115
+ var sD = { class: "pk-page-pointer" }, cD = {
23099
23116
  key: 0,
23100
23117
  class: "pk-page-pointer__bar",
23101
23118
  role: "status"
23102
- }, sD = { class: "pk-page-pointer__text" }, cD = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23119
+ }, lD = { class: "pk-page-pointer__text" }, uD = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23103
23120
  __name: "PkPagePointer",
23104
23121
  props: {
23105
23122
  picking: { type: Boolean },
@@ -23124,7 +23141,7 @@ var aD = { class: "pk-page-pointer" }, oD = {
23124
23141
  } : void 0);
23125
23142
  return (t, n) => {
23126
23143
  let i = Dn;
23127
- return X(), Y("div", aD, [
23144
+ return X(), Y("div", sD, [
23128
23145
  e.picking ? (X(), Y("div", {
23129
23146
  key: 0,
23130
23147
  class: "pk-page-pointer__layer",
@@ -23138,12 +23155,12 @@ var aD = { class: "pk-page-pointer" }, oD = {
23138
23155
  name: "pk-page-pointer-bar",
23139
23156
  appear: ""
23140
23157
  }, {
23141
- default: W(() => [e.picking ? (X(), Y("div", oD, [
23158
+ default: W(() => [e.picking ? (X(), Y("div", cD, [
23142
23159
  M(i, {
23143
23160
  name: "ri:focus-3-line",
23144
23161
  class: "pk-page-pointer__bar-icon"
23145
23162
  }),
23146
- L("span", sD, V(t.$t("pagePointer.hint")), 1),
23163
+ L("span", lD, V(t.$t("pagePointer.hint")), 1),
23147
23164
  L("button", {
23148
23165
  type: "button",
23149
23166
  class: "pk-page-pointer__cancel",
@@ -23182,23 +23199,23 @@ var aD = { class: "pk-page-pointer" }, oD = {
23182
23199
  }), [["styles", [".pk-page-pointer{--pk-page-pointer-color:var(--pk-agent-presence-color,var(--color-brand));display:contents}.pk-page-pointer__layer{z-index:2147483645;cursor:crosshair;position:fixed;inset:0}.pk-page-pointer__bar{top:var(--spacing-48);z-index:2147483647;align-items:center;gap:var(--spacing-8);max-width:min(var(--spacing-384), 100vw - var(--spacing-32));padding:var(--spacing-8) var(--spacing-8) var(--spacing-8) var(--spacing-14);border-radius:var(--rounded-full);background-color:var(--color-word-1);color:var(--color-surface);font-family:var(--font-sans);font-size:var(--text-14);font-weight:var(--font-medium);box-shadow:var(--shadow-lg);display:flex;position:fixed;left:50%;transform:translate(-50%)}.pk-page-pointer__bar-icon{width:var(--spacing-16);height:var(--spacing-16);flex-shrink:0}.pk-page-pointer__text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.pk-page-pointer__cancel{border-radius:var(--rounded-full);padding:var(--spacing-6) var(--spacing-14);background-color:var(--color-surface);color:var(--color-word-1);font:inherit;cursor:pointer;border:0;flex-shrink:0}.pk-page-pointer__cancel:focus-visible{outline:var(--spacing-2) solid var(--color-surface);outline-offset:var(--spacing-2)}.pk-page-pointer__box{z-index:2147483646;pointer-events:none;border:var(--spacing-2) solid var(--pk-page-pointer-color);border-radius:var(--rounded-sm);background-color:color-mix(in srgb, var(--pk-page-pointer-color) 10%, transparent);transition:top 80ms ease-out,left 80ms ease-out,width 80ms ease-out,height 80ms ease-out;position:fixed}.pk-page-pointer__label{bottom:100%;left:calc(-1 * var(--spacing-2));max-width:var(--spacing-320);margin-bottom:var(--spacing-4);padding:var(--spacing-2) var(--spacing-8);border-radius:var(--rounded-sm);background-color:var(--pk-page-pointer-color);color:var(--color-white);font-family:var(--font-sans);font-size:var(--text-12);font-weight:var(--font-medium);line-height:var(--leading-normal);text-overflow:ellipsis;white-space:nowrap;position:absolute;overflow:hidden}.pk-page-pointer__label--inside{margin:var(--spacing-4);top:0;bottom:auto}.pk-page-pointer__ask{z-index:2147483647;align-items:center;gap:var(--spacing-6);border-radius:var(--rounded-full);padding:var(--spacing-6) var(--spacing-12);background-color:var(--pk-page-pointer-color);color:var(--color-white);font-family:var(--font-sans);font-size:var(--text-14);font-weight:var(--font-medium);box-shadow:var(--shadow-lg);cursor:pointer;border:0;display:inline-flex;position:fixed}.pk-page-pointer__ask:focus-visible{outline:var(--spacing-2) solid var(--pk-page-pointer-color);outline-offset:var(--spacing-2)}.pk-page-pointer__ask-icon{width:var(--spacing-16);height:var(--spacing-16)}.pk-page-pointer-bar-enter-active{transition:opacity .25s ease-out,translate .35s cubic-bezier(.32,.72,0,1)}.pk-page-pointer-bar-leave-active{transition:opacity .2s ease-in,translate .2s ease-in}.pk-page-pointer-bar-enter-from,.pk-page-pointer-bar-leave-to{opacity:0;translate:0 calc(-1 * var(--spacing-16))}.pk-page-pointer-ask-enter-active,.pk-page-pointer-ask-leave-active{transition:opacity .15s ease-out,scale .15s ease-out}.pk-page-pointer-ask-enter-from,.pk-page-pointer-ask-leave-to{opacity:0;scale:.9}@media (prefers-reduced-motion:reduce){.pk-page-pointer__box,.pk-page-pointer-bar-enter-active,.pk-page-pointer-bar-leave-active,.pk-page-pointer-ask-enter-active,.pk-page-pointer-ask-leave-active{transition:none}}"]]]);
23183
23200
  // ../../packages/components/src/chat/PkSelectionAnswerCard.vue?vue&type=script&setup=true&lang.ts
23184
23201
  B(), P();
23185
- var lD = { class: "pk-selection-answer__header" }, uD = { class: "pk-selection-answer__who" }, dD = {
23202
+ var dD = { class: "pk-selection-answer__header" }, fD = { class: "pk-selection-answer__who" }, pD = {
23186
23203
  id: "pk-selection-answer-name",
23187
23204
  class: "pk-selection-answer__name"
23188
- }, fD = { class: "pk-selection-answer__notice" }, pD = { class: "pk-selection-answer__quote" }, mD = { class: "pk-selection-answer__body" }, hD = {
23205
+ }, mD = { class: "pk-selection-answer__notice" }, hD = { class: "pk-selection-answer__quote" }, gD = { class: "pk-selection-answer__body" }, _D = {
23189
23206
  key: 0,
23190
23207
  class: "pk-selection-answer__status"
23191
- }, gD = {
23208
+ }, vD = {
23192
23209
  key: 1,
23193
23210
  class: "pk-selection-answer__note",
23194
23211
  role: "status"
23195
- }, _D = {
23212
+ }, yD = {
23196
23213
  key: 2,
23197
23214
  class: "pk-selection-answer__note"
23198
- }, vD = {
23215
+ }, bD = {
23199
23216
  key: 3,
23200
23217
  class: "pk-selection-answer__note"
23201
- }, yD = { class: "pk-selection-answer__footer" }, bD = 384, xD = 160, SD = 8, CD = 8, wD = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23218
+ }, xD = { class: "pk-selection-answer__footer" }, SD = 384, CD = 160, wD = 8, TD = 8, ED = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23202
23219
  __name: "PkSelectionAnswerCard",
23203
23220
  props: {
23204
23221
  quote: { type: String },
@@ -23235,11 +23252,11 @@ var lD = { class: "pk-selection-answer__header" }, uD = { class: "pk-selection-a
23235
23252
  width: p.value,
23236
23253
  height: m.value
23237
23254
  },
23238
- tallest: bD,
23239
- shortest: xD,
23255
+ tallest: SD,
23256
+ shortest: CD,
23240
23257
  touch: r.touch,
23241
- gap: SD,
23242
- margin: CD
23258
+ gap: wD,
23259
+ margin: TD
23243
23260
  });
23244
23261
  return {
23245
23262
  top: `${Math.round(e)}px`,
@@ -23263,15 +23280,15 @@ var lD = { class: "pk-selection-answer__header" }, uD = { class: "pk-selection-a
23263
23280
  tabindex: "-1",
23264
23281
  style: Ie(h.value)
23265
23282
  }, [
23266
- L("header", lD, [L("div", uD, [L("span", dD, V(e.agentName), 1), L("span", fD, V(t.$t("selectionActions.card.aiNotice")), 1)]), M(r, {
23283
+ L("header", dD, [L("div", fD, [L("span", pD, V(e.agentName), 1), L("span", mD, V(t.$t("selectionActions.card.aiNotice")), 1)]), M(r, {
23267
23284
  modifiers: "action-quiet",
23268
23285
  icon: "ri:close-line",
23269
23286
  title: t.$t("action.close"),
23270
23287
  "aria-label": t.$t("action.close"),
23271
23288
  onClick: n[0] ||= (e) => i("close")
23272
23289
  }, null, 8, ["title", "aria-label"])]),
23273
- L("blockquote", pD, V(e.quote), 1),
23274
- L("div", mD, [
23290
+ L("blockquote", hD, V(e.quote), 1),
23291
+ L("div", gD, [
23275
23292
  (X(!0), Y(I, null, Be(e.messages, (t, n) => (X(), Y(I, { key: t.id }, [M(bS, {
23276
23293
  message: t,
23277
23294
  "is-streaming": e.streaming && n === e.messages.length - 1,
@@ -23293,10 +23310,10 @@ var lD = { class: "pk-selection-answer__header" }, uD = { class: "pk-selection-a
23293
23310
  "is-dark",
23294
23311
  "loading"
23295
23312
  ]))), 128))], 64))), 128)),
23296
- e.streaming && !s.value && !u.value ? (X(), Y("p", hD, [M(a, { name: "loading-loop" }), J(" " + V(t.$t("selectionActions.card.thinking")), 1)])) : G("", !0),
23297
- u.value ? (X(), Y("p", gD, V(u.value === "confirm" ? t.$t("selectionActions.card.waitsConfirm") : t.$t("selectionActions.card.waitsReply")), 1)) : d.value ? (X(), Y("p", _D, V(t.$t("selectionActions.card.more")), 1)) : !e.streaming && !s.value ? (X(), Y("p", vD, V(t.$t("selectionActions.card.noAnswer")), 1)) : G("", !0)
23313
+ e.streaming && !s.value && !u.value ? (X(), Y("p", _D, [M(a, { name: "loading-loop" }), J(" " + V(t.$t("selectionActions.card.thinking")), 1)])) : G("", !0),
23314
+ u.value ? (X(), Y("p", vD, V(u.value === "confirm" ? t.$t("selectionActions.card.waitsConfirm") : t.$t("selectionActions.card.waitsReply")), 1)) : d.value ? (X(), Y("p", yD, V(t.$t("selectionActions.card.more")), 1)) : !e.streaming && !s.value ? (X(), Y("p", bD, V(t.$t("selectionActions.card.noAnswer")), 1)) : G("", !0)
23298
23315
  ]),
23299
- L("footer", yD, [e.streaming && !u.value ? (X(), F(r, {
23316
+ L("footer", xD, [e.streaming && !u.value ? (X(), F(r, {
23300
23317
  key: 0,
23301
23318
  modifiers: "secondary",
23302
23319
  icon: "ri:stop-fill",
@@ -23313,7 +23330,7 @@ var lD = { class: "pk-selection-answer__header" }, uD = { class: "pk-selection-a
23313
23330
  }), [["styles", [".pk-selection-answer{z-index:2147483647;gap:var(--spacing-8);width:min(26rem, 100vw - var(--spacing-16));max-height:min(24rem, 100dvh - var(--spacing-16));padding:var(--spacing-12);border:1px solid var(--color-surface-3);border-radius:var(--rounded-xl);background-color:var(--color-surface);color:var(--color-word-1);font-family:var(--font-sans);font-size:var(--text-14);box-shadow:var(--shadow-lg);flex-direction:column;display:flex;position:fixed}.pk-selection-answer__header,.pk-selection-answer__quote,.pk-selection-answer__footer{flex-shrink:0}.pk-selection-answer__header{justify-content:space-between;align-items:flex-start;gap:var(--spacing-8);display:flex}.pk-selection-answer__who{flex-direction:column;min-width:0;display:flex}.pk-selection-answer__name{text-overflow:ellipsis;white-space:nowrap;font-weight:var(--font-semibold);overflow:hidden}.pk-selection-answer__notice{color:var(--color-word-3);font-size:var(--text-12)}.pk-selection-answer__quote{padding-left:var(--spacing-8);border-left:var(--spacing-2) solid var(--color-surface-3);color:var(--color-word-2);-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:0;font-style:italic;display:-webkit-box;overflow:hidden}.pk-selection-answer__quote:before{content:open-quote}.pk-selection-answer__quote:after{content:close-quote}.pk-selection-answer__body{gap:var(--spacing-8);overscroll-behavior:contain;flex-direction:column;flex:1;min-height:0;display:flex;overflow-y:auto}.pk-selection-answer__body>*{flex-shrink:0}.pk-selection-answer__status{align-items:center;gap:var(--spacing-6);color:var(--color-word-3);margin:0;display:flex}.pk-selection-answer__note{padding:var(--spacing-8);border-radius:var(--rounded);background-color:var(--color-surface-1);color:var(--color-word-2);margin:0}.pk-selection-answer__footer{justify-content:flex-end;gap:var(--spacing-8);flex-wrap:wrap;display:flex}"]]]);
23314
23331
  // ../../packages/components/src/chat/PkHostCallConfirmDialog.vue?vue&type=script&setup=true&lang.ts
23315
23332
  B(), st(), P(), H();
23316
- var TD = 16, ED = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23333
+ var DD = 16, OD = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23317
23334
  __name: "PkHostCallConfirmDialog",
23318
23335
  props: {
23319
23336
  question: { type: String },
@@ -23330,7 +23347,7 @@ var TD = 16, ED = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23330
23347
  i.value = void 0;
23331
23348
  return;
23332
23349
  }
23333
- let a = Math.max(TD, Math.min(n.top, window.innerHeight - e.offsetHeight - TD)), o = {
23350
+ let a = Math.max(DD, Math.min(n.top, window.innerHeight - e.offsetHeight - DD)), o = {
23334
23351
  left: `${n.left}px`,
23335
23352
  top: `${a}px`,
23336
23353
  width: `${n.width}px`
@@ -23363,37 +23380,37 @@ var TD = 16, ED = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23363
23380
  }), [["styles", [".pk-host-call-confirm-dialog{inset:auto 0 var(--spacing-32);width:min(24rem, 100vw - var(--spacing-32));border-radius:var(--rounded-xl);max-width:none;color:var(--color-word-1);font-family:var(--font-sans);box-shadow:var(--shadow-xl);background:0 0;border:0;margin:0 auto;padding:0;position:fixed}.pk-host-call-confirm-dialog--anchored{margin:0;inset:auto}.pk-host-call-confirm-dialog::backdrop{background:0 0}"]]]);
23364
23381
  // src/composables/usePageModal.ts
23365
23382
  H(), B();
23366
- var DD = 300, OD = 50, kD = /* @__PURE__ */ new Set(["EMBEDDED-CHAT-WIDGET", "FLOATING-CHAT-WIDGET"]), AD = (e) => [...e.querySelectorAll("dialog:modal")], jD = (e) => [...e.querySelectorAll("*")].filter((e) => !kD.has(e.tagName)).map((e) => e.shadowRoot).filter((e) => !!e), MD = () => {
23383
+ var kD = 300, AD = 50, jD = /* @__PURE__ */ new Set(["EMBEDDED-CHAT-WIDGET", "FLOATING-CHAT-WIDGET"]), MD = (e) => [...e.querySelectorAll("dialog:modal")], ND = (e) => [...e.querySelectorAll("*")].filter((e) => !jD.has(e.tagName)).map((e) => e.shadowRoot).filter((e) => !!e), PD = () => {
23367
23384
  let e = [], t = document.activeElement;
23368
23385
  for (; t;) e.push(t), t = t.shadowRoot?.activeElement ?? null;
23369
23386
  return e;
23370
- }, ND = (e) => {
23371
- let t = (t) => AD(t).filter((t) => !e?.(t)), n;
23387
+ }, FD = (e) => {
23388
+ let t = (t) => MD(t).filter((t) => !e?.(t)), n;
23372
23389
  try {
23373
23390
  n = t(document);
23374
- let e = n.length === 0 ? jD(document) : [];
23375
- for (let r = 0; n.length === 0 && e.length > 0 && r < OD; r++) {
23391
+ let e = n.length === 0 ? ND(document) : [];
23392
+ for (let r = 0; n.length === 0 && e.length > 0 && r < AD; r++) {
23376
23393
  let r = e.shift();
23377
- n = t(r), e.push(...jD(r));
23394
+ n = t(r), e.push(...ND(r));
23378
23395
  }
23379
23396
  } catch {
23380
23397
  return null;
23381
23398
  }
23382
- let r = MD();
23399
+ let r = PD();
23383
23400
  return [...n].reverse().find((e) => r.some((t) => e.contains(t))) ?? n[n.length - 1] ?? null;
23384
23401
  };
23385
- function PD(e) {
23402
+ function ID(e) {
23386
23403
  let t = ut(null), n, r = () => {
23387
23404
  clearInterval(n), n = void 0, t.value = null;
23388
23405
  };
23389
23406
  return j(() => N(e), (e) => {
23390
- r(), e && (t.value = ND(), n = setInterval(() => {
23391
- let e = ND();
23407
+ r(), e && (t.value = FD(), n = setInterval(() => {
23408
+ let e = FD();
23392
23409
  e !== t.value && (t.value = e);
23393
- }, DD));
23410
+ }, kD));
23394
23411
  }, { immediate: !0 }), at(r), t;
23395
23412
  }
23396
- var FD = () => {
23413
+ var LD = () => {
23397
23414
  for (let e of document.querySelectorAll("embedded-chat-widget, floating-chat-widget")) {
23398
23415
  let t = e.shadowRoot?.querySelector(".pk-page-control-bar");
23399
23416
  if (t) {
@@ -23408,16 +23425,16 @@ var FD = () => {
23408
23425
  ink: "#111",
23409
23426
  paper: "#fff"
23410
23427
  };
23411
- }, ID = 48, LD = 8, RD = (e, t) => {
23412
- let n = t.getBoundingClientRect(), r = e.offsetHeight, i = window.innerHeight - n.bottom, a = ID, o;
23413
- n.top < ID + r + LD && (n.top >= r + 16 ? a = n.top - r - LD : i >= r + 16 && (a = void 0, o = i - r - LD)), e.style.top = a === void 0 ? "auto" : `${a}px`, e.style.bottom = o === void 0 ? "auto" : `${o}px`, e.style.setProperty("--stop-from", `${a === void 0 ? 1 : -1} * ${zD}px`);
23414
- }, zD = 16, BD = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1, VD = (e) => {
23428
+ }, RD = 48, zD = 8, BD = (e, t) => {
23429
+ let n = t.getBoundingClientRect(), r = e.offsetHeight, i = window.innerHeight - n.bottom, a = RD, o;
23430
+ n.top < RD + r + zD && (n.top >= r + 16 ? a = n.top - r - zD : i >= r + 16 && (a = void 0, o = i - r - zD)), e.style.top = a === void 0 ? "auto" : `${a}px`, e.style.bottom = o === void 0 ? "auto" : `${o}px`, e.style.setProperty("--stop-from", `${a === void 0 ? 1 : -1} * ${VD}px`);
23431
+ }, VD = 16, HD = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1, UD = (e) => {
23415
23432
  let t = e.shadowRoot?.querySelector("div");
23416
- if (!t || typeof t.animate != "function" || BD()) {
23433
+ if (!t || typeof t.animate != "function" || HD()) {
23417
23434
  e.remove();
23418
23435
  return;
23419
23436
  }
23420
- let n = t.style.getPropertyValue("--stop-from") || `-1 * ${zD}px`;
23437
+ let n = t.style.getPropertyValue("--stop-from") || `-1 * ${VD}px`;
23421
23438
  t.animate([{
23422
23439
  opacity: 1,
23423
23440
  translate: "0 0",
@@ -23432,18 +23449,18 @@ var FD = () => {
23432
23449
  fill: "forwards"
23433
23450
  }).finished.then(() => e.remove(), () => e.remove());
23434
23451
  };
23435
- function HD(e, t, n) {
23452
+ function WD(e, t, n) {
23436
23453
  let r, i, a = () => {
23437
- clearInterval(i), i = void 0, r && VD(r), r = void 0;
23454
+ clearInterval(i), i = void 0, r && UD(r), r = void 0;
23438
23455
  };
23439
23456
  j([e, () => N(t)], ([e, t]) => {
23440
23457
  if (a(), !e || !t) return;
23441
23458
  r = document.createElement(rh);
23442
- let o = r.attachShadow({ mode: "open" }), s = document.createElement("style"), { ink: c, paper: l } = FD();
23459
+ let o = r.attachShadow({ mode: "open" }), s = document.createElement("style"), { ink: c, paper: l } = LD();
23443
23460
  s.textContent = `
23444
23461
  :host { all: initial; }
23445
23462
  div {
23446
- position: fixed; top: ${ID}px; left: 50%; transform: translateX(-50%);
23463
+ position: fixed; top: ${RD}px; left: 50%; transform: translateX(-50%);
23447
23464
  z-index: 2147483647; display: flex; align-items: center; gap: 12px;
23448
23465
  max-width: min(384px, calc(100vw - 32px)); padding: 8px 8px 8px 16px;
23449
23466
  border-radius: 9999px; background: ${c}; color: ${l};
@@ -23452,7 +23469,7 @@ function HD(e, t, n) {
23452
23469
  animation: stop-in 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
23453
23470
  }
23454
23471
  @keyframes stop-in {
23455
- from { opacity: 0; translate: 0 calc(var(--stop-from, -1 * ${zD}px)); scale: 0.96; }
23472
+ from { opacity: 0; translate: 0 calc(var(--stop-from, -1 * ${VD}px)); scale: 0.96; }
23456
23473
  }
23457
23474
  @media (prefers-reduced-motion: reduce) {
23458
23475
  div { animation: none; }
@@ -23468,11 +23485,11 @@ function HD(e, t, n) {
23468
23485
  d.textContent = n.text();
23469
23486
  let f = document.createElement("button");
23470
23487
  f.type = "button", f.textContent = n.stopLabel(), f.addEventListener("click", () => n.onStop()), u.append(d, f), o.append(s, u), e.append(r);
23471
- let p = () => RD(u, e);
23472
- p(), i = setInterval(p, DD);
23488
+ let p = () => BD(u, e);
23489
+ p(), i = setInterval(p, kD);
23473
23490
  }, { immediate: !0 }), at(a);
23474
23491
  }
23475
- var UD = 1e3, WD = 3, GD = 1e3, KD = "data-agent-studio-placeholder", qD = "a, button, input, label, select, summary, textarea, [contenteditable]", JD = "dialog[open], [popover]:popover-open", YD = [
23492
+ var GD = 1e3, KD = 3, qD = 1e3, JD = "data-agent-studio-placeholder", YD = "a, button, input, label, select, summary, textarea, [contenteditable]", XD = "dialog[open], [popover]:popover-open", ZD = [
23476
23493
  ["position", "fixed"],
23477
23494
  ["right", "auto"],
23478
23495
  ["bottom", "auto"],
@@ -23484,30 +23501,30 @@ var UD = 1e3, WD = 3, GD = 1e3, KD = "data-agent-studio-placeholder", qD = "a, b
23484
23501
  ["max-width", "none"],
23485
23502
  ["max-height", "none"],
23486
23503
  ["z-index", "2147483646"]
23487
- ], XD = [
23504
+ ], QD = [
23488
23505
  "left",
23489
23506
  "top",
23490
23507
  "width",
23491
23508
  "height"
23492
- ], ZD = () => typeof Element.prototype.moveBefore == "function", QD = (...e) => e.flatMap((e) => e.getAnimations?.() ?? []).filter((e) => e.playState === "running" && Number.isFinite(e.effect?.getComputedTiming().iterations ?? Infinity)), $D = (e) => QD(e).some((e) => {
23509
+ ], $D = () => typeof Element.prototype.moveBefore == "function", eO = (...e) => e.flatMap((e) => e.getAnimations?.() ?? []).filter((e) => e.playState === "running" && Number.isFinite(e.effect?.getComputedTiming().iterations ?? Infinity)), tO = (e) => eO(e).some((e) => {
23493
23510
  let t = e.effect;
23494
23511
  if (!t?.getKeyframes || e.playbackRate <= 0) return !1;
23495
23512
  let { iterations: n, direction: r } = t.getComputedTiming();
23496
23513
  if (n !== 1 || r !== "normal" && r !== "reverse") return !1;
23497
23514
  let i = t.getKeyframes(), a = r === "reverse" ? i[0] : i[i.length - 1];
23498
23515
  return !!a && "opacity" in a && Number(a.opacity) === 0;
23499
- }), eO = (e) => $D(e) || [...e.children].some($D), tO = (e, t) => e.width >= t.width * .95 && e.height >= t.height * .95, nO = (e) => {
23516
+ }), nO = (e) => tO(e) || [...e.children].some(tO), rO = (e, t) => e.width >= t.width * .95 && e.height >= t.height * .95, iO = (e) => {
23500
23517
  let t = e.getBoundingClientRect();
23501
- if (!tO(t, {
23518
+ if (!rO(t, {
23502
23519
  width: window.innerWidth,
23503
23520
  height: window.innerHeight
23504
23521
  })) return e;
23505
23522
  let n = (e) => {
23506
23523
  let n = e.getBoundingClientRect();
23507
- return tO(n, t) ? 0 : n.width * n.height;
23524
+ return rO(n, t) ? 0 : n.width * n.height;
23508
23525
  }, r = [...e.children].filter((e) => n(e) > 0).sort((e, t) => n(t) - n(e))[0];
23509
- return r && !r.matches(qD) ? r : e;
23510
- }, rO = (e) => e.isConnected && !e.closest("[inert]") && e.getBoundingClientRect().width > 0, iO = (e, t, n) => {
23526
+ return r && !r.matches(YD) ? r : e;
23527
+ }, aO = (e) => e.isConnected && !e.closest("[inert]") && e.getBoundingClientRect().width > 0, oO = (e, t, n) => {
23511
23528
  let r = t.shadowRoot, i = [...r?.querySelectorAll("*") ?? []].filter((e) => e.scrollTop > 0).map((e) => [e, e.scrollTop]), a = r?.activeElement, o = e;
23512
23529
  try {
23513
23530
  o.moveBefore(t, n);
@@ -23517,19 +23534,19 @@ var UD = 1e3, WD = 3, GD = 1e3, KD = "data-agent-studio-placeholder", qD = "a, b
23517
23534
  for (let [e, t] of i) e.scrollTop = t;
23518
23535
  return a && r?.activeElement !== a && a.focus({ preventScroll: !0 }), !0;
23519
23536
  };
23520
- function aO(e, t) {
23537
+ function sO(e, t) {
23521
23538
  let n = ut(!1);
23522
- if (!e || !ZD()) return n;
23539
+ if (!e || !$D()) return n;
23523
23540
  let r = !1, i, a, o, s, c, l = {
23524
23541
  x: 0,
23525
23542
  y: 0
23526
23543
  }, u, d = 0, f, p, m, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), _ = () => {
23527
- let t = [...YD.map(([e]) => e), ...XD].map((t) => [
23544
+ let t = [...ZD.map(([e]) => e), ...QD].map((t) => [
23528
23545
  t,
23529
23546
  e.style.getPropertyValue(t),
23530
23547
  e.style.getPropertyPriority(t)
23531
23548
  ]);
23532
- for (let [t, n] of YD) e.style.setProperty(t, n, "important");
23549
+ for (let [t, n] of ZD) e.style.setProperty(t, n, "important");
23533
23550
  return () => {
23534
23551
  for (let [n, r, i] of t) r ? e.style.setProperty(n, r, i) : e.style.removeProperty(n);
23535
23552
  };
@@ -23559,12 +23576,12 @@ function aO(e, t) {
23559
23576
  opacityProperty: !0,
23560
23577
  visibilityProperty: !0
23561
23578
  }) === !1) return !1;
23562
- let r = e.shadowRoot, i = (e) => !!r?.contains(e), a = (r ?? document).elementsFromPoint(n.left + n.width / 2, n.top + n.height / 2).find((e) => !(i(e) && e.closest(JD)));
23579
+ let r = e.shadowRoot, i = (e) => !!r?.contains(e), a = (r ?? document).elementsFromPoint(n.left + n.width / 2, n.top + n.height / 2).find((e) => !(i(e) && e.closest(XD)));
23563
23580
  return !!a && (e.contains(a) || i(a));
23564
23581
  }, x = (t) => {
23565
23582
  if (t.key !== "Escape") return;
23566
23583
  let n = t.composedPath();
23567
- n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(JD)) || t.preventDefault();
23584
+ n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(XD)) || t.preventDefault();
23568
23585
  }, S = () => {
23569
23586
  u?.disconnect(), u = void 0, cancelAnimationFrame(d), e.removeEventListener("keydown", x);
23570
23587
  let t = !!a?.contains(e) || !!i?.contains(e);
@@ -23575,16 +23592,16 @@ function aO(e, t) {
23575
23592
  } : s;
23576
23593
  if (t) {
23577
23594
  let n = t.next?.parentNode === t.parent ? t.next : null;
23578
- t.parent.isConnected && e.isConnected && iO(t.parent, e, n) || t.parent.insertBefore(e, n);
23595
+ t.parent.isConnected && e.isConnected && oO(t.parent, e, n) || t.parent.insertBefore(e, n);
23579
23596
  }
23580
23597
  }
23581
23598
  o?.remove(), c?.(), i = void 0, a = void 0, o = void 0, s = void 0, c = void 0, n.value = !1;
23582
23599
  }, C = () => {
23583
- let e = i, t = QD(e, ...e.children).length > 0;
23600
+ let e = i, t = eO(e, ...e.children).length > 0;
23584
23601
  t ? h.delete(e) : g.add(e), S(), t && ee();
23585
23602
  }, w = () => {
23586
23603
  if (i && o) {
23587
- if (rO(o)) {
23604
+ if (aO(o)) {
23588
23605
  if (y(), !n.value) {
23589
23606
  if (!b()) {
23590
23607
  C();
@@ -23595,15 +23612,15 @@ function aO(e, t) {
23595
23612
  d = requestAnimationFrame(w);
23596
23613
  } else {
23597
23614
  let t = i;
23598
- S(), rO(e) && g.add(t), ee();
23615
+ S(), aO(e) && g.add(t), ee();
23599
23616
  }
23600
23617
  }
23601
23618
  }, T = (t) => {
23602
- let n = nO(t), { height: r } = e.getBoundingClientRect(), f = document.createElement("div");
23603
- f.className = e.className, f.style.cssText = e.style.cssText, f.style.height || (f.style.minHeight = `${r}px`), f.setAttribute("aria-hidden", "true"), f.setAttribute(KD, ""), s = {
23619
+ let n = iO(t), { height: r } = e.getBoundingClientRect(), f = document.createElement("div");
23620
+ f.className = e.className, f.style.cssText = e.style.cssText, f.style.height || (f.style.minHeight = `${r}px`), f.setAttribute("aria-hidden", "true"), f.setAttribute(JD, ""), s = {
23604
23621
  parent: e.parentNode,
23605
23622
  next: e.nextSibling
23606
- }, s.parent.insertBefore(f, e), o = f, c = _(), iO(n, e, null) ? (i = t, a = n, l = {
23623
+ }, s.parent.insertBefore(f, e), o = f, c = _(), oO(n, e, null) ? (i = t, a = n, l = {
23607
23624
  x: 0,
23608
23625
  y: 0
23609
23626
  }, y(), e.addEventListener("keydown", x), u = new MutationObserver(ee), u.observe(t, {
@@ -23629,27 +23646,27 @@ function aO(e, t) {
23629
23646
  let t = (e) => !e.open || !e.isConnected;
23630
23647
  for (let e of [g, h]) for (let n of e) t(n) && e.delete(n);
23631
23648
  m && t(m.dialog) && (m = void 0);
23632
- let s = ND((e) => e === p), c = s && !g.has(s) && s.getBoundingClientRect().width > 0 && !eO(s) ? s : null;
23649
+ let s = FD((e) => e === p), c = s && !g.has(s) && s.getBoundingClientRect().width > 0 && !nO(s) ? s : null;
23633
23650
  if (i) {
23634
- if (i === c && a?.contains(e) && i.contains(a) && o && rO(o)) {
23651
+ if (i === c && a?.contains(e) && i.contains(a) && o && aO(o)) {
23635
23652
  n.value && !b() && C();
23636
23653
  return;
23637
23654
  }
23638
23655
  S();
23639
23656
  }
23640
- c && !g.has(c) && rO(e) && (h.has(c) ? T(c) : te(c));
23657
+ c && !g.has(c) && aO(e) && (h.has(c) ? T(c) : te(c));
23641
23658
  }, te = (e) => {
23642
23659
  if (m?.dialog === e) return;
23643
23660
  let t = { dialog: e };
23644
23661
  m = t;
23645
- let n = WD, r = () => {
23662
+ let n = KD, r = () => {
23646
23663
  if (m !== t) return;
23647
23664
  if (--n > 0) {
23648
23665
  requestAnimationFrame(r);
23649
23666
  return;
23650
23667
  }
23651
- let i = QD(e, ...e.children);
23652
- Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e, GD))]).then(() => {
23668
+ let i = eO(e, ...e.children);
23669
+ Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e, qD))]).then(() => {
23653
23670
  m === t && (m = void 0, h.add(e), ee());
23654
23671
  });
23655
23672
  };
@@ -23659,7 +23676,7 @@ function aO(e, t) {
23659
23676
  }, re = (e) => {
23660
23677
  e.target instanceof HTMLDialogElement && ee();
23661
23678
  }, ie = () => {
23662
- r = !0, document.addEventListener("beforetoggle", ne, !0), document.addEventListener("toggle", re, !0), f = setInterval(ee, UD), ee();
23679
+ r = !0, document.addEventListener("beforetoggle", ne, !0), document.addEventListener("toggle", re, !0), f = setInterval(ee, GD), ee();
23663
23680
  }, ae = () => {
23664
23681
  r = !1, document.removeEventListener("beforetoggle", ne, !0), document.removeEventListener("toggle", re, !0), clearInterval(f), f = void 0, m = void 0, i && S(), g.clear(), h.clear();
23665
23682
  };
@@ -23669,16 +23686,16 @@ function aO(e, t) {
23669
23686
  }
23670
23687
  // ../../packages/components/src/chat/PkChatbotAuth.vue?vue&type=script&setup=true&lang.ts
23671
23688
  B(), P(), H(), st();
23672
- var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, sO = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, cO = { class: "pk-chatbot-auth__success-icon w-64 h-64 border border-surface-3 rounded-full bg-surface flex items-center justify-center overflow-hidden bg-surface mx-auto mb-md" }, lO = { class: "font-bold text-18 mb-xs" }, uO = { class: "mb-lg text-16 text-word-3" }, dO = {
23689
+ var cO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, lO = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, uO = { class: "pk-chatbot-auth__success-icon w-64 h-64 border border-surface-3 rounded-full bg-surface flex items-center justify-center overflow-hidden bg-surface mx-auto mb-md" }, dO = { class: "font-bold text-18 mb-xs" }, fO = { class: "mb-lg text-16 text-word-3" }, pO = {
23673
23690
  key: "form",
23674
23691
  class: "pk-chatbot-auth__flip-card flex flex-col"
23675
- }, fO = { class: "flex flex-col" }, pO = {
23692
+ }, mO = { class: "flex flex-col" }, hO = {
23676
23693
  key: 0,
23677
23694
  class: "flex justify-center mb-md"
23678
- }, mO = ["src", "alt"], hO = { class: "text-center leading-normal mb-lg" }, gO = {
23695
+ }, gO = ["src", "alt"], _O = { class: "text-center leading-normal mb-lg" }, vO = {
23679
23696
  key: 0,
23680
23697
  class: "font-bold text-20 m-0"
23681
- }, _O = { class: "text-14 text-word-3 text-center leading-normal mb-md" }, vO = { class: "flex justify-center mt-md" }, yO = { class: "mb-md" }, bO = { class: "mb-md" }, xO = { class: "mb-md" }, SO = { class: "vv-separator mt-xs py-xs" }, CO = { class: "pt-lg text-center text-word-3" }, wO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23698
+ }, yO = { class: "text-14 text-word-3 text-center leading-normal mb-md" }, bO = { class: "flex justify-center mt-md" }, xO = { class: "mb-md" }, SO = { class: "mb-md" }, CO = { class: "mb-md" }, wO = { class: "vv-separator mt-xs py-xs" }, TO = { class: "pt-lg text-center text-word-3" }, EO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
23682
23699
  __name: "PkChatbotAuth",
23683
23700
  props: /*@__PURE__*/ Pe({
23684
23701
  branding: {
@@ -23770,7 +23787,7 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23770
23787
  }
23771
23788
  return (t, r) => {
23772
23789
  let l = Dn, f = yt, m = xn, h = En;
23773
- return X(), Y("div", oO, [L("div", sO, [M(U, {
23790
+ return X(), Y("div", cO, [L("div", lO, [M(U, {
23774
23791
  name: "pk-flip",
23775
23792
  mode: "out-in",
23776
23793
  onAfterEnter: ee
@@ -23782,13 +23799,13 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23782
23799
  tabindex: "-1",
23783
23800
  class: "pk-chatbot-auth__flip-card outline-none flex flex-col text-center leading-normal"
23784
23801
  }, [
23785
- L("div", cO, [M(l, {
23802
+ L("div", uO, [M(l, {
23786
23803
  name: "ri:mail-check-line",
23787
23804
  "aria-hidden": "true",
23788
23805
  class: "text-success w-32 h-32"
23789
23806
  })]),
23790
- L("h1", lO, V(s.value.title), 1),
23791
- L("p", uO, V(s.value.message), 1),
23807
+ L("h1", dO, V(s.value.title), 1),
23808
+ L("p", fO, V(s.value.message), 1),
23792
23809
  M(f, {
23793
23810
  type: "button",
23794
23811
  modifiers: "link",
@@ -23796,14 +23813,14 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23796
23813
  label: q(n)("action.backToSignIn"),
23797
23814
  onClick: d
23798
23815
  }, null, 8, ["label"])
23799
- ], 512)) : (X(), Y("div", dO, [L("div", fO, [
23800
- q(i)(e.branding?.interface.logo) ? (X(), Y("div", pO, [L("img", {
23816
+ ], 512)) : (X(), Y("div", pO, [L("div", mO, [
23817
+ q(i)(e.branding?.interface.logo) ? (X(), Y("div", hO, [L("img", {
23801
23818
  src: e.branding?.interface.logo,
23802
23819
  alt: e.branding?.name,
23803
23820
  class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
23804
23821
  onError: r[0] ||= (t) => q(a)(e.branding?.interface.logo)
23805
- }, null, 40, mO)])) : G("", !0),
23806
- L("div", hO, [e.branding?.name ? (X(), Y("h1", gO, V(e.branding.name), 1)) : G("", !0), (X(), F(Ve(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
23822
+ }, null, 40, gO)])) : G("", !0),
23823
+ L("div", _O, [e.branding?.name ? (X(), Y("h1", vO, V(e.branding.name), 1)) : G("", !0), (X(), F(Ve(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
23807
23824
  default: W(() => [ae.value ? (X(), Y(I, { key: 0 }, [J(V(q(n)("twoFactor.challengeTitle")), 1)], 64)) : u.value === "sign-in" ? (X(), Y(I, { key: 1 }, [J(V(q(n)("auth.signInTitle")), 1)], 64)) : u.value === "sign-up" ? (X(), Y(I, { key: 2 }, [J(V(q(n)("auth.signUpTitle")), 1)], 64)) : u.value === "reset" ? (X(), Y(I, { key: 3 }, [J(V(q(n)("auth.resetTitle")), 1)], 64)) : G("", !0)]),
23808
23825
  _: 1
23809
23826
  }))]),
@@ -23814,7 +23831,7 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23814
23831
  content: o.value
23815
23832
  }, null, 8, ["content"])) : G("", !0),
23816
23833
  ae.value ? (X(), Y(I, { key: 2 }, [
23817
- L("p", _O, V(D.value), 1),
23834
+ L("p", yO, V(D.value), 1),
23818
23835
  M(q(oe), {
23819
23836
  class: "flex flex-col",
23820
23837
  readonly: e.loading,
@@ -23839,7 +23856,7 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23839
23856
  ])]),
23840
23857
  _: 1
23841
23858
  }, 8, ["readonly"]),
23842
- L("div", vO, [E.value === "totp" ? (X(), F(f, {
23859
+ L("div", bO, [E.value === "totp" ? (X(), F(f, {
23843
23860
  key: 0,
23844
23861
  type: "button",
23845
23862
  modifiers: "link",
@@ -23865,7 +23882,7 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23865
23882
  readonly: e.loading,
23866
23883
  onSubmit: te
23867
23884
  }, {
23868
- default: W(() => [L("div", yO, [
23885
+ default: W(() => [L("div", xO, [
23869
23886
  M(q(v), {
23870
23887
  name: "email",
23871
23888
  type: "email",
@@ -23880,7 +23897,7 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23880
23897
  label: q(n)("label.password"),
23881
23898
  floating: ""
23882
23899
  }, null, 8, ["label"]),
23883
- L("div", bO, [M(f, {
23900
+ L("div", SO, [M(f, {
23884
23901
  type: "button",
23885
23902
  modifiers: "link",
23886
23903
  label: q(n)("action.forgetPassword"),
@@ -23910,7 +23927,7 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23910
23927
  readonly: e.loading,
23911
23928
  onSubmit: ne
23912
23929
  }, {
23913
- default: W(() => [L("div", xO, [
23930
+ default: W(() => [L("div", CO, [
23914
23931
  M(q(b), {
23915
23932
  name: "name",
23916
23933
  type: "text",
@@ -23979,7 +23996,7 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
23979
23996
  })]),
23980
23997
  _: 1
23981
23998
  }, 8, ["readonly"])) : G("", !0),
23982
- !ae.value && (u.value === "sign-in" || u.value === "sign-up") && p.value ? (X(), Y(I, { key: 6 }, [L("div", SO, [L("span", null, V(q(n)("label.or")), 1)]), M(h, {
23999
+ !ae.value && (u.value === "sign-in" || u.value === "sign-up") && p.value ? (X(), Y(I, { key: 6 }, [L("div", wO, [L("span", null, V(q(n)("label.or")), 1)]), M(h, {
23983
24000
  modifiers: "vertical",
23984
24001
  class: "gap-xs mt-xs"
23985
24002
  }, {
@@ -24002,7 +24019,7 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
24002
24019
  }, null, 8, ["disabled", "label"])) : G("", !0)]),
24003
24020
  _: 1
24004
24021
  })], 64)) : G("", !0)
24005
- ]), L("div", CO, [ae.value ? (X(), F(f, {
24022
+ ]), L("div", TO, [ae.value ? (X(), F(f, {
24006
24023
  key: 0,
24007
24024
  type: "button",
24008
24025
  modifiers: "link",
@@ -24033,20 +24050,20 @@ var oO = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
24033
24050
  })])]);
24034
24051
  };
24035
24052
  }
24036
- }), [["styles", [".pk-chatbot-auth__flip{transform-style:preserve-3d;perspective:1000px;display:grid}.pk-chatbot-auth__flip-card{backface-visibility:hidden;transform-style:preserve-3d;grid-area:1/1}.pk-chatbot-auth__success-icon{animation:.4s ease-out .3s backwards pk-chatbot-auth-check-pop}.pk-flip-enter-active{animation:.6s ease-out pk-chatbot-auth-flip-in}.pk-flip-leave-active{animation:.6s ease-in pk-chatbot-auth-flip-out}@keyframes pk-chatbot-auth-flip-in{0%{opacity:0;transform:rotateY(-180deg)}to{opacity:1;transform:rotateY(0)}}@keyframes pk-chatbot-auth-flip-out{0%{opacity:1;transform:rotateY(0)}to{opacity:0;transform:rotateY(180deg)}}@keyframes pk-chatbot-auth-check-pop{0%{opacity:0;transform:scale(0)}60%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}"]]]), TO = "@layer volver.reset,volver.preflight,volver.props;@layer volver.components{.pk-loader{width:var(--spacing-48);height:var(--spacing-48);border-radius:50%;animation:1s linear infinite pk-loader-rotate;position:relative}.pk-loader:before{content:\"\";box-sizing:border-box;border:var(--spacing-5) solid var(--color-brand);border-radius:50%;animation:2s linear infinite pk-loader-clip;position:absolute;inset:0}@media (prefers-reduced-motion:reduce){.pk-loader,.pk-loader:before{animation:none}}@keyframes pk-loader-rotate{to{rotate:360deg}}@keyframes pk-loader-clip{0%{clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}}@layer volver.themes,volver.utilities;";
24053
+ }), [["styles", [".pk-chatbot-auth__flip{transform-style:preserve-3d;perspective:1000px;display:grid}.pk-chatbot-auth__flip-card{backface-visibility:hidden;transform-style:preserve-3d;grid-area:1/1}.pk-chatbot-auth__success-icon{animation:.4s ease-out .3s backwards pk-chatbot-auth-check-pop}.pk-flip-enter-active{animation:.6s ease-out pk-chatbot-auth-flip-in}.pk-flip-leave-active{animation:.6s ease-in pk-chatbot-auth-flip-out}@keyframes pk-chatbot-auth-flip-in{0%{opacity:0;transform:rotateY(-180deg)}to{opacity:1;transform:rotateY(0)}}@keyframes pk-chatbot-auth-flip-out{0%{opacity:1;transform:rotateY(0)}to{opacity:0;transform:rotateY(180deg)}}@keyframes pk-chatbot-auth-check-pop{0%{opacity:0;transform:scale(0)}60%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}"]]]), DO = "@layer volver.reset,volver.preflight,volver.props;@layer volver.components{.pk-loader{width:var(--spacing-48);height:var(--spacing-48);border-radius:50%;animation:1s linear infinite pk-loader-rotate;position:relative}.pk-loader:before{content:\"\";box-sizing:border-box;border:var(--spacing-5) solid var(--color-brand);border-radius:50%;animation:2s linear infinite pk-loader-clip;position:absolute;inset:0}@media (prefers-reduced-motion:reduce){.pk-loader,.pk-loader:before{animation:none}}@keyframes pk-loader-rotate{to{rotate:360deg}}@keyframes pk-loader-clip{0%{clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}}@layer volver.themes,volver.utilities;";
24037
24054
  // ../../packages/components/src/PkLoader.vue
24038
24055
  B();
24039
- var EO = {};
24040
- function DO(e, t) {
24056
+ var OO = {};
24057
+ function kO(e, t) {
24041
24058
  return X(), Y("div", null, [...t[0] ||= [L("div", {
24042
24059
  "aria-hidden": "true",
24043
24060
  class: "pk-loader"
24044
24061
  }, null, -1)]]);
24045
24062
  }
24046
- var OO = /*#__PURE__*/ Gr(EO, [["render", DO], ["styles", [TO]]]);
24063
+ var AO = /*#__PURE__*/ Gr(OO, [["render", kO], ["styles", [DO]]]);
24047
24064
  // ../../packages/components/src/chat/PkWelcomePopup.vue?vue&type=script&setup=true&lang.ts
24048
24065
  B(), P(), st(), H();
24049
- var kO = { class: "welcome-popup__text" }, AO = ["aria-label"], jO = 100, MO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24066
+ var jO = { class: "welcome-popup__text" }, MO = ["aria-label"], NO = 100, PO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24050
24067
  __name: "PkWelcomePopup",
24051
24068
  props: {
24052
24069
  agentId: { type: String },
@@ -24067,7 +24084,7 @@ var kO = { class: "welcome-popup__text" }, AO = ["aria-label"], jO = 100, MO = /
24067
24084
  c.value = [], s.value = !1;
24068
24085
  let t = e.split(/(\s+)/), n = 0;
24069
24086
  function r() {
24070
- n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, jO)) : s.value = !0;
24087
+ n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, NO)) : s.value = !0;
24071
24088
  }
24072
24089
  r();
24073
24090
  }
@@ -24091,7 +24108,7 @@ var kO = { class: "welcome-popup__text" }, AO = ["aria-label"], jO = 100, MO = /
24091
24108
  key: 0,
24092
24109
  class: "welcome-popup",
24093
24110
  onClick: Je(m, ["stop"])
24094
- }, [L("p", kO, [(X(!0), Y(I, null, Be(c.value, (e, t) => (X(), Y("span", {
24111
+ }, [L("p", jO, [(X(!0), Y(I, null, Be(c.value, (e, t) => (X(), Y("span", {
24095
24112
  key: t,
24096
24113
  class: "welcome-popup__word"
24097
24114
  }, V(e), 1))), 128))]), M(U, null, {
@@ -24107,7 +24124,7 @@ var kO = { class: "welcome-popup__text" }, AO = ["aria-label"], jO = 100, MO = /
24107
24124
  width: "14",
24108
24125
  height: "14",
24109
24126
  fill: "currentColor"
24110
- }, [L("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, AO)) : G("", !0)]),
24127
+ }, [L("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, MO)) : G("", !0)]),
24111
24128
  _: 1
24112
24129
  })])) : G("", !0)]),
24113
24130
  _: 1
@@ -24116,16 +24133,16 @@ var kO = { class: "welcome-popup__text" }, AO = ["aria-label"], jO = 100, MO = /
24116
24133
  }), [["styles", [".welcome-popup{background:var(--color-surface);pointer-events:auto;max-width:300px;color:var(--color-word-2);line-height:var(--leading-normal);border-width:var(--spacing-px);border-color:var(--color-surface-3);padding:var(--spacing-sm);border-radius:var(--rounded-xl);font-size:var(--text-14);cursor:pointer;box-shadow:0 4px 16px #00000014,0 1px 4px #0000000f}.welcome-popup__word{animation:.3s ease-out both welcome-popup-word-in;display:inline}.welcome-popup__close{background-color:var(--color-surface);border:1px solid var(--color-surface-3);width:var(--spacing-20);height:var(--spacing-20);top:calc(-1 * var(--spacing-8));right:calc(-1 * var(--spacing-8));padding:var(--spacing-2);cursor:pointer;color:var(--color-word-4);border-radius:var(--rounded-full);transition:var(--transition-colors);box-shadow:var(--shadow-md);justify-content:center;align-items:center;line-height:1;display:flex;position:absolute}.welcome-popup__close:hover{color:var(--color-word)}.welcome-popup__close:focus-visible{outline-offset:2px;color:var(--color-word);box-shadow:0 0 0 2px var(--color-word), 0 0 0 4px var(--color-surface);outline:2px solid #0000}.welcome-popup-enter-active,.welcome-popup-leave-active{transition:transform var(--duration-300) var(--ease-out), opacity var(--duration-300) var(--ease-out)}.welcome-popup-enter-from{opacity:0;transform:translateY(var(--spacing-32))}.welcome-popup-leave-to{opacity:0}@keyframes welcome-popup-word-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}"]]]);
24117
24134
  // ../../packages/components/src/chat/PkWorkingBeam.vue?vue&type=script&setup=true&lang.ts
24118
24135
  B(), st();
24119
- var NO = {
24136
+ var FO = {
24120
24137
  key: 0,
24121
24138
  class: "pk-working-beam",
24122
24139
  "aria-hidden": "true"
24123
- }, PO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24140
+ }, IO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24124
24141
  __name: "PkWorkingBeam",
24125
24142
  props: { active: { type: Boolean } },
24126
24143
  setup(e) {
24127
24144
  return (t, n) => (X(), F(U, { name: "pk-working-beam" }, {
24128
- default: W(() => [e.active ? (X(), Y("span", NO, [...n[0] ||= [L("span", { class: "pk-working-beam__halo" }, null, -1), L("span", { class: "pk-working-beam__ring" }, [L("span", { class: "pk-working-beam__light" })], -1)]])) : G("", !0)]),
24145
+ default: W(() => [e.active ? (X(), Y("span", FO, [...n[0] ||= [L("span", { class: "pk-working-beam__halo" }, null, -1), L("span", { class: "pk-working-beam__ring" }, [L("span", { class: "pk-working-beam__light" })], -1)]])) : G("", !0)]),
24129
24146
  _: 1
24130
24147
  }));
24131
24148
  }
@@ -24133,7 +24150,7 @@ var NO = {
24133
24150
  // ../../packages/components/src/chat/PkWorkingAurora.vue?vue&type=script&setup=true&lang.ts
24134
24151
  B(), P(), st();
24135
24152
  // ../../packages/components/src/chat/PkWorkingAurora.vue
24136
- var FO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24153
+ var LO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24137
24154
  __name: "PkWorkingAurora",
24138
24155
  props: {
24139
24156
  active: { type: Boolean },
@@ -24170,7 +24187,7 @@ var FO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24170
24187
  }), [["styles", [".pk-working-aurora{--pk-working-aurora-source:var(--pk-working-aurora-color,var(--chatbot-main-color,var(--color-brand)));--pk-working-aurora-main:var(--pk-working-aurora-source);--pk-working-aurora-tone-before:var(--pk-working-aurora-main);--pk-working-aurora-tone-after:var(--pk-working-aurora-main);--pk-working-aurora-x:100%;--pk-working-aurora-flip:1;pointer-events:none;transform-origin:var(--pk-working-aurora-x) 100%;position:absolute;inset:0}@supports (color:oklch(from red l c h)){.pk-working-aurora{--pk-working-aurora-main:oklch(from var(--pk-working-aurora-source) clamp(.55, l, .75) c h);--pk-working-aurora-tone-before:oklch(from var(--pk-working-aurora-main) l c calc(h - 50));--pk-working-aurora-tone-after:oklch(from var(--pk-working-aurora-main) l c calc(h + 50))}}.pk-working-aurora--left{--pk-working-aurora-x:0%;--pk-working-aurora-flip:-1}.pk-working-aurora__lights{opacity:.32;-webkit-mask:radial-gradient(ellipse 75% 90% at var(--pk-working-aurora-x) 100%, #000 25%, transparent 75%);mask:radial-gradient(ellipse 75% 90% at var(--pk-working-aurora-x) 100%, #000 25%, transparent 75%);position:absolute;inset:0;overflow:hidden}.pk-working-aurora__lights:before{content:\"\";background:radial-gradient(ellipse 60% 70% at var(--pk-working-aurora-x) 100%, color-mix(in srgb, var(--pk-working-aurora-main) 35%, transparent), transparent);position:absolute;inset:0}.pk-working-aurora__sway{transform-origin:var(--pk-working-aurora-x) 100%;animation:11s ease-in-out infinite alternate pk-working-aurora-sway;position:absolute;inset:0}.pk-working-aurora__light{right:var(--pk-working-aurora-offset);aspect-ratio:1;background:radial-gradient(closest-side, var(--pk-working-aurora-light), transparent);border-radius:50%;width:80vmax;animation:none;position:absolute}.pk-working-aurora__light:first-child{--pk-working-aurora-light:var(--pk-working-aurora-main);--pk-working-aurora-offset:-30vmax;animation-name:pk-working-aurora-drift-1;bottom:-32vmax}.pk-working-aurora__light:nth-child(2){--pk-working-aurora-light:var(--pk-working-aurora-tone-after);--pk-working-aurora-offset:15vw;animation-name:pk-working-aurora-drift-2;animation-duration:9s;bottom:-48vmax}.pk-working-aurora__light:nth-child(3){--pk-working-aurora-light:var(--pk-working-aurora-tone-before);--pk-working-aurora-offset:-48vmax;animation-name:pk-working-aurora-drift-3;animation-duration:8s;bottom:10vh}.pk-working-aurora--left .pk-working-aurora__light{right:auto;left:var(--pk-working-aurora-offset)}.pk-working-aurora__core{opacity:.08;background:radial-gradient(circle 75vmin at var(--pk-working-aurora-x) 100%, color-mix(in srgb, #fff 45%, var(--pk-working-aurora-main)), color-mix(in srgb, var(--pk-working-aurora-main) 70%, transparent) 30%, color-mix(in srgb, var(--pk-working-aurora-tone-after) 30%, transparent) 62%, transparent);animation:2.6s ease-in-out infinite alternate pk-working-aurora-breathe;position:absolute;inset:0}.pk-working-aurora__glint{opacity:0;animation:.9s ease-out pk-working-aurora-glint}@media (prefers-reduced-motion:reduce){.pk-working-aurora__sway,.pk-working-aurora__light,.pk-working-aurora__core{animation:none}.pk-working-aurora__glint{display:none}}.pk-working-aurora-enter-active{animation:1.8s cubic-bezier(.23,1,.32,1) pk-working-aurora-in}.pk-working-aurora-enter-active .pk-working-aurora__core{animation:1.8s ease-out pk-working-aurora-flare}.pk-working-aurora-leave-active{animation:1.4s cubic-bezier(.77,0,.175,1) forwards pk-working-aurora-out}.pk-working-aurora-leave-active .pk-working-aurora__core{animation:1.4s ease-in forwards pk-working-aurora-flare-out}@media (prefers-reduced-motion:reduce){.pk-working-aurora-enter-active,.pk-working-aurora-leave-active{transition:opacity var(--duration-300) ease-out;animation:none}.pk-working-aurora-enter-active .pk-working-aurora__core,.pk-working-aurora-leave-active .pk-working-aurora__core{animation:none}.pk-working-aurora-enter-from,.pk-working-aurora-leave-to{opacity:0}}@keyframes pk-working-aurora-in{0%{opacity:0;scale:.08}20%{opacity:1}}@keyframes pk-working-aurora-out{70%{opacity:1}to{opacity:0;scale:.08}}@keyframes pk-working-aurora-flare{0%{opacity:0}25%{opacity:.6}}@keyframes pk-working-aurora-flare-out{40%{opacity:0}80%{opacity:.4}to{opacity:0}}@keyframes pk-working-aurora-breathe{to{opacity:.24}}@keyframes pk-working-aurora-glint{30%{opacity:.35}}@keyframes pk-working-aurora-sway{0%{rotate:-7deg}to{rotate:7deg}}@keyframes pk-working-aurora-drift-1{to{scale:1.2}}@keyframes pk-working-aurora-drift-2{to{translate:calc(var(--pk-working-aurora-flip) * 18vw) 0;scale:1 1.3}}@keyframes pk-working-aurora-drift-3{to{translate:0 18vh;scale:1.3 1}}"]]]);
24171
24188
  // ../../packages/components/src/chat/PkAgentPresence.vue?vue&type=script&setup=true&lang.ts
24172
24189
  B(), P(), H();
24173
- var IO = 13, LO = 8, RO = 3, zO = 150, BO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24190
+ var RO = 13, zO = 8, BO = 3, VO = 150, HO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24174
24191
  __name: "PkAgentPresence",
24175
24192
  props: {
24176
24193
  active: { type: Boolean },
@@ -24239,10 +24256,10 @@ var IO = 13, LO = 8, RO = 3, zO = 150, BO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24239
24256
  };
24240
24257
  }, v = (e) => {
24241
24258
  let t = _(e), r = t.x + t.width * (t.width > 80 ? .72 : .5), i = t.y + t.height * (t.height > 24 ? .62 : .5), a = g(n.home?.()), o = s.value?.offsetWidth ?? 0;
24242
- return a && r < a.x && i < a.y + a.height && i + 48 > a.y && (r = Math.max(t.x + Math.min(LO, t.width / 2), Math.min(r, a.x - IO - o - LO))), [r, i];
24259
+ return a && r < a.x && i < a.y + a.height && i + 48 > a.y && (r = Math.max(t.x + Math.min(zO, t.width / 2), Math.min(r, a.x - RO - o - zO))), [r, i];
24243
24260
  }, y = (e) => [
24244
- e.x - RO,
24245
- e.y - RO,
24261
+ e.x - BO,
24262
+ e.y - BO,
24246
24263
  e.width + 6,
24247
24264
  e.height + 6
24248
24265
  ], b = () => {
@@ -24276,7 +24293,7 @@ var IO = 13, LO = 8, RO = 3, zO = 150, BO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24276
24293
  }
24277
24294
  te = e;
24278
24295
  let n = parseFloat(getComputedStyle(e).borderTopLeftRadius);
24279
- o.value?.style.setProperty("--pk-agent-presence-radius", `${(Number.isFinite(n) ? n : 0) + RO}px`), h(y(t)), l.value = !0, d.value++;
24296
+ o.value?.style.setProperty("--pk-agent-presence-radius", `${(Number.isFinite(n) ? n : 0) + BO}px`), h(y(t)), l.value = !0, d.value++;
24280
24297
  }, re = 0, ie = async (e) => {
24281
24298
  let t = ++re, i = (t) => e.heading || r("arrived", t), a = g(e.element);
24282
24299
  if (!n.active || !a) {
@@ -24318,7 +24335,7 @@ var IO = 13, LO = 8, RO = 3, zO = 150, BO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24318
24335
  });
24319
24336
  }, se;
24320
24337
  return j(c, (e) => {
24321
- clearInterval(se), se = e ? setInterval(oe, zO) : void 0;
24338
+ clearInterval(se), se = e ? setInterval(oe, VO) : void 0;
24322
24339
  }), Ne(() => {
24323
24340
  window.addEventListener("scroll", oe, {
24324
24341
  capture: !0,
@@ -24361,14 +24378,14 @@ var IO = 13, LO = 8, RO = 3, zO = 150, BO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24361
24378
  }), [["styles", [".pk-agent-presence{--pk-agent-presence-color:var(--chatbot-main-color,var(--color-brand));--pk-agent-presence-ink:var(--chatbot-contrast-color,#fff);--pk-agent-presence-tone-before:var(--pk-agent-presence-color);--pk-agent-presence-tone-after:var(--pk-agent-presence-color);z-index:2147483646;width:auto;height:auto;color:inherit;pointer-events:none;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:0;overflow:visible}@supports (color:oklch(from red l c h)){.pk-agent-presence{--pk-agent-presence-tone-before:oklch(from var(--pk-agent-presence-color) l c calc(h - 50));--pk-agent-presence-tone-after:oklch(from var(--pk-agent-presence-color) l c calc(h + 50))}}.pk-agent-presence__ring,.pk-agent-presence__cursor{opacity:0;transition:opacity var(--duration-300) ease-out;position:absolute;top:0;left:0}.pk-agent-presence__ring--shown,.pk-agent-presence__cursor--shown{opacity:1}.pk-agent-presence__ring{container-type:size}.pk-agent-presence__ring-box{border-radius:var(--pk-agent-presence-radius,0);animation:.36s cubic-bezier(.23,1,.32,1) pk-agent-presence-settle;position:absolute;inset:0}.pk-agent-presence__halo{border-radius:inherit;box-shadow:0 0 0 4px color-mix(in srgb, var(--pk-agent-presence-color) 16%, transparent), 0 0 20px color-mix(in srgb, var(--pk-agent-presence-color) 22%, transparent);position:absolute;inset:0}.pk-agent-presence__edge{border-radius:inherit;-webkit-mask-composite:xor;padding:2px;position:absolute;inset:0;overflow:hidden;-webkit-mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.pk-agent-presence__edge:before{content:\"\";aspect-ratio:1;background:conic-gradient(var(--pk-agent-presence-color), var(--pk-agent-presence-tone-after), var(--pk-agent-presence-color), var(--pk-agent-presence-tone-before), var(--pk-agent-presence-color));width:calc(100cqw + 100cqh);animation:6s linear infinite pk-agent-presence-turn;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pk-agent-presence__cursor{will-change:translate;margin:-1px 0 0 -2px}.pk-agent-presence__arrow{transform-origin:2px 1px;filter:drop-shadow(0 1px 2px #00000047);display:block}.pk-agent-presence__arrow path{fill:var(--pk-agent-presence-color);stroke:#fff;stroke-width:1.5px;stroke-linejoin:round}.pk-agent-presence__arrow--click{animation:.24s cubic-bezier(.23,1,.32,1) pk-agent-presence-click}.pk-agent-presence__label{align-items:baseline;gap:var(--spacing-6);max-width:280px;padding:var(--spacing-3) var(--spacing-8);background:var(--pk-agent-presence-color);color:var(--pk-agent-presence-ink);letter-spacing:.01em;white-space:nowrap;border-radius:3px 9px 9px;font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;display:inline-flex;position:absolute;top:19px;left:13px;box-shadow:0 2px 8px #00000029}.pk-agent-presence__action{text-overflow:ellipsis;opacity:.85;font-weight:400;animation:.26s cubic-bezier(.23,1,.32,1) pk-agent-presence-swap;overflow:hidden}@media (prefers-reduced-motion:reduce){.pk-agent-presence__ring-box,.pk-agent-presence__arrow--click,.pk-agent-presence__action,.pk-agent-presence__edge:before{animation:none}}@keyframes pk-agent-presence-settle{0%{opacity:0;scale:1.06}}@keyframes pk-agent-presence-click{40%{scale:.86}}@keyframes pk-agent-presence-swap{0%{opacity:0;filter:blur(3px)}}@keyframes pk-agent-presence-turn{to{transform:translate(-50%,-50%)rotate(1turn)}}"]]]);
24362
24379
  // src/components/FloatingChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
24363
24380
  B(), H(), P(), st();
24364
- var VO = ["lang"], HO = {
24381
+ var UO = ["lang"], WO = {
24365
24382
  key: 0,
24366
24383
  class: "floating-chat-widget__frame",
24367
24384
  "aria-hidden": "true"
24368
- }, UO = {
24385
+ }, GO = {
24369
24386
  key: 0,
24370
24387
  class: "floating-chat-widget__launcher"
24371
- }, WO = ["aria-label", "aria-expanded"], GO = {
24388
+ }, KO = ["aria-label", "aria-expanded"], qO = {
24372
24389
  key: 0,
24373
24390
  class: "w-full h-full",
24374
24391
  xmlns: "http://www.w3.org/2000/svg",
@@ -24376,7 +24393,7 @@ var VO = ["lang"], HO = {
24376
24393
  width: "24",
24377
24394
  height: "24",
24378
24395
  fill: "currentColor"
24379
- }, KO = {
24396
+ }, JO = {
24380
24397
  key: 1,
24381
24398
  class: "w-full h-full",
24382
24399
  xmlns: "http://www.w3.org/2000/svg",
@@ -24384,7 +24401,7 @@ var VO = ["lang"], HO = {
24384
24401
  width: "24",
24385
24402
  height: "24",
24386
24403
  fill: "currentColor"
24387
- }, qO = ["aria-label"], JO = { class: "floating-chat-widget__close" }, YO = ["aria-label"], XO = { class: "floating-chat-widget__close" }, ZO = 450, QO = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24404
+ }, YO = ["aria-label"], XO = { class: "floating-chat-widget__close" }, ZO = ["aria-label"], QO = { class: "floating-chat-widget__close" }, $O = 450, ek = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
24388
24405
  inheritAttrs: !1,
24389
24406
  __name: "FloatingChatWidget.ce",
24390
24407
  props: {
@@ -24488,8 +24505,8 @@ var VO = ["lang"], HO = {
24488
24505
  userId: C
24489
24506
  });
24490
24507
  Av(() => D.isWorking), jv(() => D.pageControlActive);
24491
- let ue = PD(() => !!D.hostConfirmation || D.pageControlActive);
24492
- HD(ue, () => D.pageControlActive, {
24508
+ let ue = ID(() => !!D.hostConfirmation || D.pageControlActive);
24509
+ WD(ue, () => D.pageControlActive, {
24493
24510
  text: () => ce("messagePart.pageControlActive"),
24494
24511
  stopLabel: () => ce("action.stop"),
24495
24512
  onStop: () => void D.stopHostActions()
@@ -24615,7 +24632,7 @@ var VO = ["lang"], HO = {
24615
24632
  j(l, () => {
24616
24633
  st.value = !0, clearTimeout(ct), ct = setTimeout(() => {
24617
24634
  st.value = !1;
24618
- }, ZO);
24635
+ }, $O);
24619
24636
  });
24620
24637
  let K = z(() => tt.value && st.value ? "floating-chat-widget-copilot" : void 0), dt = z(() => {
24621
24638
  let e = [
@@ -24699,10 +24716,10 @@ var VO = ["lang"], HO = {
24699
24716
  _: 1
24700
24717
  })) : G("", !0),
24701
24718
  M(U, { name: "floating-chat-widget-frame" }, {
24702
- default: W(() => [tt.value && q(l) ? (X(), Y("div", HO, [L("div", {
24719
+ default: W(() => [tt.value && q(l) ? (X(), Y("div", WO, [L("div", {
24703
24720
  class: "floating-chat-widget__frame-window",
24704
24721
  style: Ie(it.value)
24705
- }, [M(PO, { active: H.value }, null, 8, ["active"])], 4)])) : G("", !0)]),
24722
+ }, [M(IO, { active: H.value }, null, 8, ["active"])], 4)])) : G("", !0)]),
24706
24723
  _: 1
24707
24724
  }),
24708
24725
  M(U, { name: "floating-chat-widget-frame" }, {
@@ -24718,7 +24735,7 @@ var VO = ["lang"], HO = {
24718
24735
  class: "floating-chat-widget__page-aurora",
24719
24736
  style: Ie(it.value),
24720
24737
  "aria-hidden": "true"
24721
- }, [M(FO, {
24738
+ }, [M(LO, {
24722
24739
  active: H.value,
24723
24740
  side: et.value === "left" ? "left" : "right",
24724
24741
  pulse: q(Xe)
@@ -24731,7 +24748,7 @@ var VO = ["lang"], HO = {
24731
24748
  name: "slide-bottom",
24732
24749
  onBeforeLeave: h
24733
24750
  }, {
24734
- default: W(() => [(q(pe) || q(me)) && !q(ve) && !ot.value && !(tt.value && q(l)) ? (X(), Y("div", UO, [M(MO, {
24751
+ default: W(() => [(q(pe) || q(me)) && !q(ve) && !ot.value && !(tt.value && q(l)) ? (X(), Y("div", GO, [M(PO, {
24735
24752
  "agent-id": e.agentId,
24736
24753
  message: q(pe)?.interface.initialMessage,
24737
24754
  enabled: !q(l) && !_.value && q(pe)?.interface?.welcomePopup,
@@ -24748,7 +24765,7 @@ var VO = ["lang"], HO = {
24748
24765
  "aria-expanded": q(l),
24749
24766
  class: "floating-chat-widget__button",
24750
24767
  onClick: Je(f, ["stop"])
24751
- }, [q(l) ? (X(), Y("svg", GO, [...n[9] ||= [L("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }, null, -1)]])) : (X(), Y("svg", KO, [...n[10] ||= [L("path", { d: "M12 1.99996C12.8632 1.99996 13.701 2.10973 14.5 2.31539L14 4.25192C13.3608 4.0874 12.6906 3.99997 12 3.99997C7.58174 3.99997 4.00002 7.58172 4 12C4 13.3344 4.3255 14.6174 4.93945 15.7656L5.28906 16.4189L4.63379 19.3662L7.58105 18.7109L8.23438 19.0605C9.38255 19.6745 10.6656 20 12 20C16.4183 20 20 16.4183 20 12C20 11.6771 19.9805 11.3587 19.9434 11.0459L21.9297 10.8095C21.976 11.1999 22 11.5972 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.69425 21.5746 7.29102 20.8242L2 22L3.17578 16.709C2.42541 15.3057 2 13.7025 2 12C2.00002 6.47714 6.47717 1.99996 12 1.99996ZM19.5293 1.3193C19.7058 0.893513 20.2942 0.8935 20.4707 1.3193L20.7236 1.93063C21.1555 2.97343 21.9615 3.80614 22.9746 4.2568L23.6914 4.57614C24.1022 4.75882 24.1022 5.35635 23.6914 5.53903L22.9326 5.87692C21.945 6.3162 21.1534 7.11943 20.7139 8.1279L20.4668 8.69333C20.2863 9.10747 19.7136 9.10747 19.5332 8.69333L19.2861 8.1279C18.8466 7.11942 18.0551 6.3162 17.0674 5.87692L16.3076 5.53903C15.8974 5.35618 15.8974 4.75895 16.3076 4.57614L17.0254 4.2568C18.0384 3.80614 18.8445 2.97343 19.2764 1.93063L19.5293 1.3193Z" }, null, -1)]]))], 8, WO)])) : G("", !0)]),
24768
+ }, [q(l) ? (X(), Y("svg", qO, [...n[9] ||= [L("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }, null, -1)]])) : (X(), Y("svg", JO, [...n[10] ||= [L("path", { d: "M12 1.99996C12.8632 1.99996 13.701 2.10973 14.5 2.31539L14 4.25192C13.3608 4.0874 12.6906 3.99997 12 3.99997C7.58174 3.99997 4.00002 7.58172 4 12C4 13.3344 4.3255 14.6174 4.93945 15.7656L5.28906 16.4189L4.63379 19.3662L7.58105 18.7109L8.23438 19.0605C9.38255 19.6745 10.6656 20 12 20C16.4183 20 20 16.4183 20 12C20 11.6771 19.9805 11.3587 19.9434 11.0459L21.9297 10.8095C21.976 11.1999 22 11.5972 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.69425 21.5746 7.29102 20.8242L2 22L3.17578 16.709C2.42541 15.3057 2 13.7025 2 12C2.00002 6.47714 6.47717 1.99996 12 1.99996ZM19.5293 1.3193C19.7058 0.893513 20.2942 0.8935 20.4707 1.3193L20.7236 1.93063C21.1555 2.97343 21.9615 3.80614 22.9746 4.2568L23.6914 4.57614C24.1022 4.75882 24.1022 5.35635 23.6914 5.53903L22.9326 5.87692C21.945 6.3162 21.1534 7.11943 20.7139 8.1279L20.4668 8.69333C20.2863 9.10747 19.7136 9.10747 19.5332 8.69333L19.2861 8.1279C18.8466 7.11942 18.0551 6.3162 17.0674 5.87692L16.3076 5.53903C15.8974 5.35618 15.8974 4.75895 16.3076 4.57614L17.0254 4.2568C18.0384 3.80614 18.8445 2.97343 19.2764 1.93063L19.5293 1.3193Z" }, null, -1)]]))], 8, KO)])) : G("", !0)]),
24752
24769
  _: 1
24753
24770
  }),
24754
24771
  M(U, {
@@ -24761,7 +24778,7 @@ var VO = ["lang"], HO = {
24761
24778
  class: "floating-chat-widget__chat floating-chat-widget__auth",
24762
24779
  role: "region",
24763
24780
  "aria-label": Ce.value
24764
- }, [q(O) ? (X(), F(wO, {
24781
+ }, [q(O) ? (X(), F(EO, {
24765
24782
  key: 0,
24766
24783
  "error-message": q(ft),
24767
24784
  "onUpdate:errorMessage": n[0] ||= (e) => lt(ft) ? ft.value = e : null,
@@ -24794,12 +24811,12 @@ var VO = ["lang"], HO = {
24794
24811
  "onVerifyTwoFactor",
24795
24812
  "onSendTwoFactorCode",
24796
24813
  "onCancelTwoFactor"
24797
- ])) : (X(), F(OO, { key: 1 })), L("span", JO, [M(a, {
24814
+ ])) : (X(), F(AO, { key: 1 })), L("span", XO, [M(a, {
24798
24815
  modifiers: "action-quiet",
24799
24816
  icon: "ri:close-line",
24800
24817
  title: t.$t("action.close"),
24801
24818
  onClick: Je(f, ["stop"])
24802
- }, null, 8, ["title"])])], 8, qO)) : G("", !0)]),
24819
+ }, null, 8, ["title"])])], 8, YO)) : G("", !0)]),
24803
24820
  _: 1
24804
24821
  }, 8, ["name"]),
24805
24822
  M(U, {
@@ -24812,12 +24829,12 @@ var VO = ["lang"], HO = {
24812
24829
  class: "floating-chat-widget__chat floating-chat-widget__loading",
24813
24830
  role: "region",
24814
24831
  "aria-label": Ce.value
24815
- }, [M(OO), L("span", XO, [M(a, {
24832
+ }, [M(AO), L("span", QO, [M(a, {
24816
24833
  modifiers: "action-quiet",
24817
24834
  icon: "ri:close-line",
24818
24835
  title: t.$t("action.close"),
24819
24836
  onClick: Je(f, ["stop"])
24820
- }, null, 8, ["title"])])], 8, YO)) : G("", !0)]),
24837
+ }, null, 8, ["title"])])], 8, ZO)) : G("", !0)]),
24821
24838
  _: 1
24822
24839
  }, 8, ["name"]),
24823
24840
  M(U, {
@@ -24825,7 +24842,7 @@ var VO = ["lang"], HO = {
24825
24842
  onBeforeLeave: h,
24826
24843
  onEnter: g
24827
24844
  }, {
24828
- default: W(() => [q(pe) && v.value && q(y).data ? rt((X(), F(tD, {
24845
+ default: W(() => [q(pe) && v.value && q(y).data ? rt((X(), F(rD, {
24829
24846
  key: e.agentId,
24830
24847
  ref_key: "chatbotEl",
24831
24848
  ref: o,
@@ -24867,7 +24884,7 @@ var VO = ["lang"], HO = {
24867
24884
  title: t.$t("action.close"),
24868
24885
  onClick: Je(f, ["stop"])
24869
24886
  }, null, 8, ["modifiers", "title"])]),
24870
- "view-auth": W(() => [M(wO, {
24887
+ "view-auth": W(() => [M(EO, {
24871
24888
  "error-message": q(ft),
24872
24889
  "onUpdate:errorMessage": n[2] ||= (e) => lt(ft) ? ft.value = e : null,
24873
24890
  success: q(pt),
@@ -24928,8 +24945,8 @@ var VO = ["lang"], HO = {
24928
24945
  class: "floating-chat-widget__panel-beam",
24929
24946
  style: Ie(it.value),
24930
24947
  "aria-hidden": "true"
24931
- }, [M(PO, { active: nt.value }, null, 8, ["active"])], 4)) : G("", !0),
24932
- M(BO, {
24948
+ }, [M(IO, { active: nt.value }, null, 8, ["active"])], 4)) : G("", !0),
24949
+ M(HO, {
24933
24950
  active: q(D).pageControlActive,
24934
24951
  target: q(Ae),
24935
24952
  "agent-name": q(pe)?.name,
@@ -24945,7 +24962,7 @@ var VO = ["lang"], HO = {
24945
24962
  "style",
24946
24963
  "onArrived"
24947
24964
  ]),
24948
- M(iD, {
24965
+ M(oD, {
24949
24966
  active: q(D).pageControlActive,
24950
24967
  action: q(D).pageAction?.title,
24951
24968
  chat: o.value?.$el,
@@ -24955,7 +24972,7 @@ var VO = ["lang"], HO = {
24955
24972
  "action",
24956
24973
  "chat"
24957
24974
  ]),
24958
- M(cD, {
24975
+ M(uD, {
24959
24976
  picking: q(Le).picking.value,
24960
24977
  box: q(Le).box.value,
24961
24978
  bubble: q(Le).bubble.value,
@@ -24992,7 +25009,7 @@ var VO = ["lang"], HO = {
24992
25009
  "onAsk",
24993
25010
  "onClose"
24994
25011
  ])) : G("", !0),
24995
- _.value ? (X(), F(wD, {
25012
+ _.value ? (X(), F(ED, {
24996
25013
  key: 5,
24997
25014
  ref_key: "selectionCardEl",
24998
25015
  ref: I,
@@ -25019,7 +25036,7 @@ var VO = ["lang"], HO = {
25019
25036
  "is-dark",
25020
25037
  "take-focus"
25021
25038
  ])) : G("", !0),
25022
- q(D).hostConfirmation && q(ue) ? (X(), F(ED, {
25039
+ q(D).hostConfirmation && q(ue) ? (X(), F(OD, {
25023
25040
  key: 6,
25024
25041
  question: q(D).hostConfirmation.question ?? q(ce)("toolApproval.prompt"),
25025
25042
  details: q(D).hostConfirmation.details,
@@ -25032,22 +25049,22 @@ var VO = ["lang"], HO = {
25032
25049
  "onRespond"
25033
25050
  ])) : G("", !0),
25034
25051
  M(q(i))
25035
- ], 14, VO);
25052
+ ], 14, UO);
25036
25053
  };
25037
25054
  }
25038
25055
  }), [["styles", [".floating-chat-widget{--chatbot-copilot-gap:var(--spacing-12);--chatbot-copilot-panel-width:clamp(320px, 24vw, 406px);--chatbot-copilot-duration:.45s;--chatbot-copilot-easing:cubic-bezier(.32, .72, 0, 1);--chatbot-copilot-top:calc(env(safe-area-inset-top) + var(--chatbot-copilot-gap));--chatbot-copilot-right:calc(env(safe-area-inset-right) + var(--chatbot-copilot-gap));--chatbot-copilot-bottom:calc(env(safe-area-inset-bottom) + var(--chatbot-copilot-gap));--chatbot-copilot-left:calc(env(safe-area-inset-left) + var(--chatbot-copilot-gap));display:contents}@media (prefers-reduced-motion:reduce){.floating-chat-widget{--chatbot-copilot-duration:.01ms}}.floating-chat-widget__launcher{bottom:var(--spacing-16);right:var(--spacing-16);align-items:flex-end;gap:var(--spacing-14);z-index:99999997;background:0 0;flex-direction:column;width:fit-content;display:flex;position:fixed}.floating-chat-widget__button{padding:var(--spacing-10);width:var(--spacing-48);height:var(--spacing-48);border-radius:var(--rounded-full);background-color:var(--chatbot-main-color,var(--color-black,#000));color:var(--chatbot-contrast-color,var(--color-white,#fff));cursor:pointer;pointer-events:auto;border:0;flex-shrink:0;justify-content:center;align-items:center;transition:all .2s ease-in-out;display:block;transform:scale(1);box-shadow:0 4px 8px #0003}.floating-chat-widget__button:hover{transform:scale(1.1)}.floating-chat-widget__button:focus-visible{outline-offset:2px;box-shadow:0 0 0 2px var(--chatbot-contrast-color,var(--color-white,#fff)), 0 0 0 4px var(--chatbot-main-color,var(--color-black,#000)), #0003 0px 4px 8px 0px;outline:2px solid #0000}.floating-chat-widget__chat{z-index:2147483647;height:auto;position:fixed;inset:0;overflow:hidden}@media (width>=576px){.floating-chat-widget__chat{border-radius:var(--rounded-xxl);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);width:406px;height:85dvh;inset:auto 16px 78px auto;box-shadow:0 260px 73px #0000,0 166px 67px #00000003,0 94px 56px #00000005,0 42px 42px #00000008,0 10px 23px #0000000a}}@media (width<576px){.floating-chat-widget__chat{transition:top var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}}.floating-chat-widget__chat:focus{outline:none}@media (width<576px){.floating-chat-widget--acting .floating-chat-widget__chat{border-radius:var(--rounded-xxl) var(--rounded-xxl) 0 0;box-shadow:var(--shadow-xl);top:62dvh}}.floating-chat-widget--pointing .floating-chat-widget__chat,.floating-chat-widget--pointing .floating-chat-widget__backdrop,.floating-chat-widget--pointing .floating-chat-widget__panel-beam{visibility:hidden}@media (width>=1280px){.floating-chat-widget--pointing.floating-chat-widget--copilot .floating-chat-widget__chat,.floating-chat-widget--pointing.floating-chat-widget--copilot .floating-chat-widget__panel-beam{visibility:visible}.floating-chat-widget--copilot .pk-page-pointer__bar{left:calc((100% - var(--chatbot-copilot-panel-width) - var(--chatbot-copilot-gap)) / 2)}.floating-chat-widget--copilot.floating-chat-widget--position-left .pk-page-pointer__bar{left:calc((100% + var(--chatbot-copilot-panel-width) + var(--chatbot-copilot-gap)) / 2)}}.floating-chat-widget__page-aurora{z-index:99999996;pointer-events:none;position:fixed;inset:0}.floating-chat-widget__loading,.floating-chat-widget__auth{background-color:var(--color-surface,#fff);justify-content:center;align-items:center;display:flex}.floating-chat-widget__close{top:calc(env(safe-area-inset-top) + var(--spacing-8));right:calc(env(safe-area-inset-right) + var(--spacing-8));position:absolute}@media (width>=576px){.floating-chat-widget__close{display:none}}.floating-chat-widget--position-left .floating-chat-widget__launcher{right:unset;left:var(--spacing-16);align-items:flex-start}@media (width>=576px){.floating-chat-widget--position-left .floating-chat-widget__chat{right:unset;left:16px}}@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){@media (width>=576px){.floating-chat-widget--glass .floating-chat-widget__chat{--chatbot-glass-pane:color-mix(in srgb, var(--color-surface) 70%, transparent);--chatbot-glass-edge:color-mix(in srgb, var(--color-surface) 85%, transparent);--chatbot-glass-light:color-mix(in srgb, color-mix(in oklab, var(--color-surface) 55%, white) 85%, transparent);background-color:color-mix(in srgb, var(--color-surface) 72%, transparent);-webkit-backdrop-filter:blur(24px)saturate(180%);backdrop-filter:blur(24px)saturate(180%);box-shadow:0 1px 2px #0000000f,0 16px 40px -12px #0000003d,0 40px 80px -32px #00000047}.floating-chat-widget--glass .floating-chat-widget__chat:before{content:\"\";z-index:2;border-radius:inherit;padding:var(--spacing-px);background:linear-gradient(135deg, var(--chatbot-glass-light), var(--chatbot-glass-edge) 35%, transparent 60%, var(--chatbot-glass-edge));-webkit-mask-composite:xor;pointer-events:none;position:absolute;inset:0;-webkit-mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot{background-color:#0000}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot__header{background-color:color-mix(in srgb, var(--color-surface-1) 50%, transparent);border-bottom-color:var(--chatbot-glass-edge)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-message:not(.pk-chatbot-message--user) .pk-chatbot-message__text,.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-message__loading-info,.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-messages__scroll-to-bottom{background-color:var(--chatbot-glass-pane);border-color:var(--chatbot-glass-edge);box-shadow:inset 0 1px 0 var(--chatbot-glass-light)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-message--user .pk-chatbot-message__text{background-color:color-mix(in srgb, var(--chatbot-main-color,var(--color-surface-1)) 78%, transparent);border-color:color-mix(in srgb, var(--chatbot-main-color,var(--color-surface-3)) 88%, transparent);box-shadow:inset 0 1px #ffffff40}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__notice{background-color:var(--chatbot-glass-pane)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__notice:after{display:none}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input:has(.pk-chatbot-input__notice) .pk-chatbot-input__form{border-top-left-radius:0;border-top-right-radius:0}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__form{background-color:var(--chatbot-glass-pane)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__form:not(:has(:focus-within)){border-color:var(--chatbot-glass-edge)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__textarea,.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__counter{background-color:#0000}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot__footer{border-top-color:var(--chatbot-glass-edge)}}@media (width>=576px) and (prefers-reduced-transparency:reduce){.floating-chat-widget--glass .floating-chat-widget__chat{background-color:var(--color-surface);-webkit-backdrop-filter:none;backdrop-filter:none}}}@media (width>=576px){.floating-chat-widget--no-button .floating-chat-widget__chat{bottom:16px}}.floating-chat-widget--copilot .floating-chat-widget__chat,.floating-chat-widget--copilot .floating-chat-widget__panel-beam{width:auto;height:auto;box-shadow:none;z-index:2147483647;border-radius:0;position:fixed;inset:0}@media (width>=992px){.floating-chat-widget--copilot .floating-chat-widget__chat,.floating-chat-widget--copilot .floating-chat-widget__panel-beam{inset:var(--chatbot-copilot-top) var(--chatbot-copilot-right) var(--chatbot-copilot-bottom) auto;width:var(--chatbot-copilot-panel-width);border-radius:var(--rounded-xl)}}.floating-chat-widget--copilot .floating-chat-widget__chat{background-color:var(--color-surface);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}@media (width>=992px){.floating-chat-widget--copilot .floating-chat-widget__chat{box-shadow:var(--shadow-xl);padding:0}}@media (width>=1280px){.floating-chat-widget--copilot .floating-chat-widget__chat{box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background-color:#0000;border-radius:0}}.floating-chat-widget--copilot .floating-chat-widget__panel-beam{pointer-events:none}@media (width>=1280px){.floating-chat-widget--copilot .floating-chat-widget__panel-beam{display:none}}.floating-chat-widget--copilot .floating-chat-widget__close{display:block}.floating-chat-widget__backdrop{display:none}@media (width>=992px){.floating-chat-widget__backdrop{z-index:2147483646;background-color:#0000004d;display:block;position:fixed;inset:0}}@media (width>=1280px){.floating-chat-widget__backdrop{display:none}}.floating-chat-widget__frame{display:none}@media (width>=1280px){.floating-chat-widget__frame{z-index:2147483646;pointer-events:none;display:block;position:fixed;inset:0}}.floating-chat-widget__frame-window{inset:var(--chatbot-copilot-gap) calc(var(--chatbot-copilot-panel-width) + 2 * var(--chatbot-copilot-gap)) var(--chatbot-copilot-gap) var(--chatbot-copilot-gap);border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded-xl);box-shadow:0 0 0 100vmax var(--color-surface-2);position:absolute}@media (width>=992px){.floating-chat-widget--copilot.floating-chat-widget--position-left .floating-chat-widget__chat,.floating-chat-widget--copilot.floating-chat-widget--position-left .floating-chat-widget__panel-beam{inset:var(--chatbot-copilot-top) auto var(--chatbot-copilot-bottom) var(--chatbot-copilot-left)}}.floating-chat-widget--copilot.floating-chat-widget--position-left .floating-chat-widget__frame-window{inset:var(--chatbot-copilot-gap) var(--chatbot-copilot-gap) var(--chatbot-copilot-gap) calc(var(--chatbot-copilot-panel-width) + 2 * var(--chatbot-copilot-gap))}@media (width<992px){.floating-chat-widget--copilot .floating-chat-widget__chat,.floating-chat-widget--copilot .floating-chat-widget__panel-beam{transition:top var(--chatbot-copilot-duration) var(--chatbot-copilot-easing), transform var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget--copilot.floating-chat-widget--acting .floating-chat-widget__chat,.floating-chat-widget--copilot.floating-chat-widget--acting .floating-chat-widget__panel-beam{border-radius:var(--rounded-xxl) var(--rounded-xxl) 0 0;top:62dvh}.floating-chat-widget--copilot.floating-chat-widget--acting .floating-chat-widget__chat{padding-top:0}}.floating-chat-widget-frame-enter-active,.floating-chat-widget-frame-leave-active{transition:opacity var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget-frame-enter-active .floating-chat-widget__frame-window,.floating-chat-widget-frame-leave-active .floating-chat-widget__frame-window{transition:left var(--chatbot-copilot-duration) var(--chatbot-copilot-easing), right var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget-frame-enter-from,.floating-chat-widget-frame-leave-to{opacity:0}.floating-chat-widget-frame-enter-from .floating-chat-widget__frame-window,.floating-chat-widget-frame-leave-to .floating-chat-widget__frame-window{right:var(--chatbot-copilot-gap)}.floating-chat-widget-copilot-enter-active,.floating-chat-widget-copilot-leave-active{transition:transform var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget-copilot-enter-from,.floating-chat-widget-copilot-leave-to{transform:translateX(calc(100% + var(--chatbot-copilot-right)))}.floating-chat-widget--position-left .floating-chat-widget-frame-enter-from .floating-chat-widget__frame-window,.floating-chat-widget--position-left .floating-chat-widget-frame-leave-to .floating-chat-widget__frame-window{left:var(--chatbot-copilot-gap)}.floating-chat-widget--position-left .floating-chat-widget-copilot-enter-from,.floating-chat-widget--position-left .floating-chat-widget-copilot-leave-to{transform:translateX(calc(-100% - var(--chatbot-copilot-left)))}"]]]);
25039
25056
  // src/components/EmbeddedChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
25040
25057
  B(), H(), P(), st();
25041
- var $O = ["lang"], ek = {
25058
+ var tk = ["lang"], nk = {
25042
25059
  key: 4,
25043
25060
  class: "embedded-chat-widget embedded-chat-widget--not-found"
25044
- }, tk = {
25061
+ }, rk = {
25045
25062
  key: 0,
25046
25063
  class: "embedded-chat-widget embedded-chat-widget--auth"
25047
- }, nk = {
25064
+ }, ik = {
25048
25065
  key: 0,
25049
25066
  class: "embedded-chat-widget embedded-chat-widget--loading"
25050
- }, rk = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
25067
+ }, ak = /*#__PURE__*/ Gr(/* @__PURE__ */ K({
25051
25068
  inheritAttrs: !1,
25052
25069
  __name: "EmbeddedChatWidget.ce",
25053
25070
  props: {
@@ -25141,8 +25158,8 @@ var $O = ["lang"], ek = {
25141
25158
  status: e.status
25142
25159
  }), u(e);
25143
25160
  }
25144
- let { t: ne, locale: re } = mt({ useScope: "global" }), ie = PD(() => !!T.hostConfirmation || T.pageControlActive), ae = aO(Ze(), () => !!n.followPageDialogs && n.followPageDialogs !== "false");
25145
- HD(ie, () => T.pageControlActive && !ae.value, {
25161
+ let { t: ne, locale: re } = mt({ useScope: "global" }), ie = ID(() => !!T.hostConfirmation || T.pageControlActive), ae = sO(Ze(), () => !!n.followPageDialogs && n.followPageDialogs !== "false");
25162
+ WD(ie, () => T.pageControlActive && !ae.value, {
25146
25163
  text: () => ne("messagePart.pageControlActive"),
25147
25164
  stopLabel: () => ne("action.stop"),
25148
25165
  onStop: () => void T.stopHostActions()
@@ -25267,7 +25284,7 @@ var $O = ["lang"], ek = {
25267
25284
  default: W(() => [J(V(Xe.value), 1)]),
25268
25285
  _: 1
25269
25286
  })) : G("", !0),
25270
- M(BO, {
25287
+ M(HO, {
25271
25288
  active: q(T).pageControlActive,
25272
25289
  target: q(be),
25273
25290
  "agent-name": q(E)?.name,
@@ -25283,7 +25300,7 @@ var $O = ["lang"], ek = {
25283
25300
  "style",
25284
25301
  "onArrived"
25285
25302
  ]),
25286
- M(iD, {
25303
+ M(oD, {
25287
25304
  active: q(T).pageControlActive,
25288
25305
  action: q(T).pageAction?.title,
25289
25306
  chat: o.value?.$el,
@@ -25293,7 +25310,7 @@ var $O = ["lang"], ek = {
25293
25310
  "action",
25294
25311
  "chat"
25295
25312
  ]),
25296
- M(cD, {
25313
+ M(uD, {
25297
25314
  picking: q(we).picking.value,
25298
25315
  box: q(we).box.value,
25299
25316
  bubble: q(we).bubble.value,
@@ -25330,7 +25347,7 @@ var $O = ["lang"], ek = {
25330
25347
  "onAsk",
25331
25348
  "onClose"
25332
25349
  ])) : G("", !0),
25333
- q(T).hostConfirmation && q(ie) && !q(ae) ? (X(), F(ED, {
25350
+ q(T).hostConfirmation && q(ie) && !q(ae) ? (X(), F(OD, {
25334
25351
  key: 3,
25335
25352
  question: q(T).hostConfirmation.question ?? q(ne)("toolApproval.prompt"),
25336
25353
  details: q(T).hostConfirmation.details,
@@ -25342,12 +25359,12 @@ var $O = ["lang"], ek = {
25342
25359
  "unchanged",
25343
25360
  "onRespond"
25344
25361
  ])) : G("", !0),
25345
- q(ue) ? (X(), Y("div", ek, [L("p", null, V(q(ne)("message.agentNotFound")), 1)])) : G("", !0),
25362
+ q(ue) ? (X(), Y("div", nk, [L("p", null, V(q(ne)("message.agentNotFound")), 1)])) : G("", !0),
25346
25363
  M(U, {
25347
25364
  name: "fade",
25348
25365
  appear: ""
25349
25366
  }, {
25350
- default: W(() => [(q(E) || q(oe)) && !q(ue) && q(D) && (!q(l).data?.user?.id || q(l).data?.user?.isAnonymous) ? (X(), Y("div", tk, [q(se) ? (X(), F(wO, {
25367
+ default: W(() => [(q(E) || q(oe)) && !q(ue) && q(D) && (!q(l).data?.user?.id || q(l).data?.user?.isAnonymous) ? (X(), Y("div", rk, [q(se) ? (X(), F(EO, {
25351
25368
  key: 0,
25352
25369
  "error-message": q(Re),
25353
25370
  "onUpdate:errorMessage": n[4] ||= (e) => lt(Re) ? Re.value = e : null,
@@ -25378,17 +25395,17 @@ var $O = ["lang"], ek = {
25378
25395
  "onVerifyTwoFactor",
25379
25396
  "onSendTwoFactorCode",
25380
25397
  "onCancelTwoFactor"
25381
- ])) : (X(), F(OO, { key: 1 }))])) : G("", !0)]),
25398
+ ])) : (X(), F(AO, { key: 1 }))])) : G("", !0)]),
25382
25399
  _: 1
25383
25400
  }),
25384
25401
  M(U, {
25385
25402
  name: "fade",
25386
25403
  appear: ""
25387
25404
  }, {
25388
- default: W(() => [q(de) && !q(ue) ? (X(), Y("div", nk, [M(OO)])) : G("", !0)]),
25405
+ default: W(() => [q(de) && !q(ue) ? (X(), Y("div", ik, [M(AO)])) : G("", !0)]),
25389
25406
  _: 1
25390
25407
  }),
25391
- q(E) && q(l).data && !q(ue) ? (X(), F(tD, {
25408
+ q(E) && q(l).data && !q(ue) ? (X(), F(rD, {
25392
25409
  key: 5,
25393
25410
  ref_key: "chatbotEl",
25394
25411
  ref: o,
@@ -25427,7 +25444,7 @@ var $O = ["lang"], ek = {
25427
25444
  }, Ge({
25428
25445
  "header-actions": W(() => [Ae(t.$slots, "header-actions")]),
25429
25446
  actions: W(() => [Ae(t.$slots, "actions")]),
25430
- "view-auth": W(() => [M(wO, {
25447
+ "view-auth": W(() => [M(EO, {
25431
25448
  "error-message": q(Re),
25432
25449
  "onUpdate:errorMessage": n[6] ||= (e) => lt(Re) ? Re.value = e : null,
25433
25450
  success: q(N),
@@ -25486,12 +25503,12 @@ var $O = ["lang"], ek = {
25486
25503
  "onLoaded"
25487
25504
  ])) : G("", !0),
25488
25505
  M(q(i))
25489
- ], 14, $O));
25506
+ ], 14, tk));
25490
25507
  }
25491
25508
  }), [["styles", [".embedded-chat-widget-root{display:contents}.embedded-chat-widget{width:100%;height:100%}.embedded-chat-widget--loading,.embedded-chat-widget--not-found,.embedded-chat-widget--auth{justify-content:center;align-items:center;display:flex}.fade-enter-active,.fade-leave-active{transition:opacity .2s}.fade-enter-from,.fade-leave-to{opacity:0}"]]]);
25492
25509
  // src/lib.ts
25493
25510
  st();
25494
- function ik(e) {
25511
+ function ok(e) {
25495
25512
  let { t } = Vi.global;
25496
25513
  e.use(yi()), e.use(Vi), e.provide(ht, Vi), e.use(aa, {
25497
25514
  iconsCollections: [oa, sa],
@@ -25517,15 +25534,15 @@ function ik(e) {
25517
25534
  ao(e instanceof Error ? e : Error(String(e)), { vueInfo: n });
25518
25535
  };
25519
25536
  }
25520
- function ak(e) {
25537
+ function sk(e) {
25521
25538
  let { styles: t } = e;
25522
25539
  return {
25523
- configureApp: ik,
25540
+ configureApp: ok,
25524
25541
  styles: [oo, ...t ?? []]
25525
25542
  };
25526
25543
  }
25527
- var ok = nt(QO, ak(QO)), sk = nt(rk, ak(rk));
25528
- customElements.define("floating-chat-widget", ok), customElements.define("embedded-chat-widget", sk);
25529
- export { sk as EmbeddedChatWidgetCe, ok as FloatingChatWidgetCe };
25544
+ var ck = nt(ek, sk(ek)), lk = nt(ak, sk(ak));
25545
+ customElements.define("floating-chat-widget", ck), customElements.define("embedded-chat-widget", lk);
25546
+ export { lk as EmbeddedChatWidgetCe, ck as FloatingChatWidgetCe };
25530
25547
 
25531
25548
  //# sourceMappingURL=ai-elements.es.js.map