@8wave/ai-elements 0.121.0-beta.51 → 0.121.0-beta.53

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 (120) hide show
  1. package/README.md +30 -0
  2. package/dist/_chunks/{Agent-CtLgGLbV.js → Agent-BdoXh8b0.js} +252 -250
  3. package/dist/_chunks/Agent-BdoXh8b0.js.map +1 -0
  4. package/dist/_chunks/{PkStreamingMarkdown-BP7HK2u0.js → PkStreamingMarkdown-CR-xBRG2.js} +3 -3
  5. package/dist/_chunks/{PkStreamingMarkdown-BP7HK2u0.js.map → PkStreamingMarkdown-CR-xBRG2.js.map} +1 -1
  6. package/dist/_chunks/{PkToolEditedFile-VFnIlU4j.js → PkToolEditedFile-DAMPjKIn.js} +2 -2
  7. package/dist/_chunks/{PkToolEditedFile-VFnIlU4j.js.map → PkToolEditedFile-DAMPjKIn.js.map} +1 -1
  8. package/dist/_chunks/{PkToolRequestGeolocation-B51_MHPQ.js → PkToolRequestGeolocation-BantUie4.js} +2 -2
  9. package/dist/_chunks/{PkToolRequestGeolocation-B51_MHPQ.js.map → PkToolRequestGeolocation-BantUie4.js.map} +1 -1
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-DfjwyGwk.js → PkToolRequestOAuthConnection-CB5ziPOE.js} +2 -2
  11. package/dist/_chunks/{PkToolRequestOAuthConnection-DfjwyGwk.js.map → PkToolRequestOAuthConnection-CB5ziPOE.js.map} +1 -1
  12. package/dist/_chunks/{PkToolShowArtifact-B8l3G0ae.js → PkToolShowArtifact-B1J7a3o0.js} +2 -2
  13. package/dist/_chunks/{PkToolShowArtifact-B8l3G0ae.js.map → PkToolShowArtifact-B1J7a3o0.js.map} +1 -1
  14. package/dist/_chunks/{PkToolShowContactForm-wNiHeOQM.js → PkToolShowContactForm-DcNMM-j0.js} +2 -2
  15. package/dist/_chunks/{PkToolShowContactForm-wNiHeOQM.js.map → PkToolShowContactForm-DcNMM-j0.js.map} +1 -1
  16. package/dist/_chunks/{PkToolShowForm-jA0SkiQC.js → PkToolShowForm-CRa9HLZo.js} +3 -3
  17. package/dist/_chunks/{PkToolShowForm-jA0SkiQC.js.map → PkToolShowForm-CRa9HLZo.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowImageGallery-B9PlDrmn.js → PkToolShowImageGallery-BisEror8.js} +2 -2
  19. package/dist/_chunks/{PkToolShowImageGallery-B9PlDrmn.js.map → PkToolShowImageGallery-BisEror8.js.map} +1 -1
  20. package/dist/_chunks/{PkToolShowProductList-DRHSe2e7.js → PkToolShowProductList-BmPdjUSS.js} +2 -2
  21. package/dist/_chunks/{PkToolShowProductList-DRHSe2e7.js.map → PkToolShowProductList-BmPdjUSS.js.map} +1 -1
  22. package/dist/_chunks/{PkToolShowSources-K-cNd52t.js → PkToolShowSources-LQ0DMKM1.js} +3 -3
  23. package/dist/_chunks/{PkToolShowSources-K-cNd52t.js.map → PkToolShowSources-LQ0DMKM1.js.map} +1 -1
  24. package/dist/_chunks/{PkToolShowSuggestedReply-BQHtnpb_.js → PkToolShowSuggestedReply-lzs6-CcI.js} +2 -2
  25. package/dist/_chunks/{PkToolShowSuggestedReply-BQHtnpb_.js.map → PkToolShowSuggestedReply-lzs6-CcI.js.map} +1 -1
  26. package/dist/_chunks/{PkToolShowVideo-B21JnsbY.js → PkToolShowVideo-BPYYn43O.js} +2 -2
  27. package/dist/_chunks/{PkToolShowVideo-B21JnsbY.js.map → PkToolShowVideo-BPYYn43O.js.map} +1 -1
  28. package/dist/_chunks/{PkToolShowWebPages-CW1Kdg6J.js → PkToolShowWebPages-CbE_bnHt.js} +2 -2
  29. package/dist/_chunks/{PkToolShowWebPages-CW1Kdg6J.js.map → PkToolShowWebPages-CbE_bnHt.js.map} +1 -1
  30. package/dist/_chunks/{chatImagePolicy-Bf-fhvf6.js → chatImagePolicy-CZeGEXvB.js} +2 -2
  31. package/dist/_chunks/{chatImagePolicy-Bf-fhvf6.js.map → chatImagePolicy-CZeGEXvB.js.map} +1 -1
  32. package/dist/_chunks/{markdown-B_eDHV3T.js → markdown-DtRRqlac.js} +2 -2
  33. package/dist/_chunks/{markdown-B_eDHV3T.js.map → markdown-DtRRqlac.js.map} +1 -1
  34. package/dist/ai-elements.es.js +1041 -840
  35. package/dist/ai-elements.es.js.map +1 -1
  36. package/dist-vue/PkChatbot.js +1 -1
  37. package/dist-vue/PkChatbotEmptyState.js +1 -1
  38. package/dist-vue/PkChatbotInput.js +1 -1
  39. package/dist-vue/PkChatbotMessages.js +1 -1
  40. package/dist-vue/PkChatbotStepPayload.js +1 -1
  41. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  42. package/dist-vue/PkChatbotSteps.js +1 -1
  43. package/dist-vue/PkChatbotViewChat.js +1 -1
  44. package/dist-vue/PkChatbotViewConversations.js +1 -1
  45. package/dist-vue/PkChatbotViewFiles.js +1 -1
  46. package/dist-vue/PkChatbotViewProfile.js +1 -1
  47. package/dist-vue/_chunks/{Agent-BlWzW8Mg.js → Agent-B-jQOrER.js} +133 -131
  48. package/dist-vue/_chunks/Agent-B-jQOrER.js.map +1 -0
  49. package/dist-vue/_chunks/{Document-vkNbPo_T.js → Document-DQtliJu6.js} +2 -2
  50. package/dist-vue/_chunks/{Document-vkNbPo_T.js.map → Document-DQtliJu6.js.map} +1 -1
  51. package/dist-vue/_chunks/{PkChatbot-DgKkkbCs.js → PkChatbot-DKBnpYB0.js} +8 -8
  52. package/dist-vue/_chunks/{PkChatbot-DgKkkbCs.js.map → PkChatbot-DKBnpYB0.js.map} +1 -1
  53. package/dist-vue/_chunks/{PkChatbotEmptyState-XWzSF0W0.js → PkChatbotEmptyState-CFCbJSjm.js} +2 -2
  54. package/dist-vue/_chunks/{PkChatbotEmptyState-XWzSF0W0.js.map → PkChatbotEmptyState-CFCbJSjm.js.map} +1 -1
  55. package/dist-vue/_chunks/{PkChatbotInput-a36iJO_a.js → PkChatbotInput-fte_uZHV.js} +2 -2
  56. package/dist-vue/_chunks/{PkChatbotInput-a36iJO_a.js.map → PkChatbotInput-fte_uZHV.js.map} +1 -1
  57. package/dist-vue/_chunks/{PkChatbotMessages-Ce7BtcBf.js → PkChatbotMessages-BVzOnfjU.js} +20 -18
  58. package/dist-vue/_chunks/PkChatbotMessages-BVzOnfjU.js.map +1 -0
  59. package/dist-vue/_chunks/{PkChatbotStepPayload-jbQd7cML.js → PkChatbotStepPayload-CgwZs9AM.js} +2 -2
  60. package/dist-vue/_chunks/{PkChatbotStepPayload-jbQd7cML.js.map → PkChatbotStepPayload-CgwZs9AM.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B1SJqhIt.js → PkChatbotStepToolDetail-BOylJhFM.js} +3 -3
  62. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B1SJqhIt.js.map → PkChatbotStepToolDetail-BOylJhFM.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkChatbotSteps-M7T71Lr9.js → PkChatbotSteps-Cmi5TBZM.js} +5 -5
  64. package/dist-vue/_chunks/{PkChatbotSteps-M7T71Lr9.js.map → PkChatbotSteps-Cmi5TBZM.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkChatbotViewChat-58rvFSbr.js → PkChatbotViewChat-DuHSW8TF.js} +7 -7
  66. package/dist-vue/_chunks/{PkChatbotViewChat-58rvFSbr.js.map → PkChatbotViewChat-DuHSW8TF.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkChatbotViewConversations-DP1zMA-B.js → PkChatbotViewConversations-Bf9oJIdi.js} +3 -3
  68. package/dist-vue/_chunks/{PkChatbotViewConversations-DP1zMA-B.js.map → PkChatbotViewConversations-Bf9oJIdi.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkChatbotViewFiles-DCo-erhU.js → PkChatbotViewFiles-B6R1ixAl.js} +3 -3
  70. package/dist-vue/_chunks/{PkChatbotViewFiles-DCo-erhU.js.map → PkChatbotViewFiles-B6R1ixAl.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-Da6iqXLn.js → PkChatbotViewProfile-x0oUCbeL.js} +2 -2
  72. package/dist-vue/_chunks/{PkChatbotViewProfile-Da6iqXLn.js.map → PkChatbotViewProfile-x0oUCbeL.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkStreamingMarkdown-D00IssLd.js → PkStreamingMarkdown-BrBeaJes.js} +3 -3
  74. package/dist-vue/_chunks/{PkStreamingMarkdown-D00IssLd.js.map → PkStreamingMarkdown-BrBeaJes.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkToolEditedFile-ppesvE8O.js → PkToolEditedFile-BKyMjgs0.js} +2 -2
  76. package/dist-vue/_chunks/{PkToolEditedFile-ppesvE8O.js.map → PkToolEditedFile-BKyMjgs0.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkToolRequestGeolocation-CK_AAzwh.js → PkToolRequestGeolocation-CY-NC6Rc.js} +2 -2
  78. package/dist-vue/_chunks/{PkToolRequestGeolocation-CK_AAzwh.js.map → PkToolRequestGeolocation-CY-NC6Rc.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CXfvULza.js → PkToolRequestOAuthConnection-RkbnKSde.js} +2 -2
  80. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CXfvULza.js.map → PkToolRequestOAuthConnection-RkbnKSde.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolShowArtifact-BH8xgFcB.js → PkToolShowArtifact-BvvVHrP-.js} +2 -2
  82. package/dist-vue/_chunks/{PkToolShowArtifact-BH8xgFcB.js.map → PkToolShowArtifact-BvvVHrP-.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolShowContactForm-CdDx1Jxl.js → PkToolShowContactForm-Dz_IiYr1.js} +2 -2
  84. package/dist-vue/_chunks/{PkToolShowContactForm-CdDx1Jxl.js.map → PkToolShowContactForm-Dz_IiYr1.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolShowDiagram-D22AS39F.js → PkToolShowDiagram-DCSfCzrN.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolShowDiagram-D22AS39F.js.map → PkToolShowDiagram-DCSfCzrN.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowForm-gUfRbKJS.js → PkToolShowForm-qMBAEKxf.js} +4 -4
  88. package/dist-vue/_chunks/{PkToolShowForm-gUfRbKJS.js.map → PkToolShowForm-qMBAEKxf.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkToolShowImageGallery-GEDLtNod.js → PkToolShowImageGallery-DWwUnIDq.js} +2 -2
  90. package/dist-vue/_chunks/{PkToolShowImageGallery-GEDLtNod.js.map → PkToolShowImageGallery-DWwUnIDq.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkToolShowProductList-CERjht9c.js → PkToolShowProductList-DreWhhfK.js} +2 -2
  92. package/dist-vue/_chunks/{PkToolShowProductList-CERjht9c.js.map → PkToolShowProductList-DreWhhfK.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolShowSources-B_4taLGg.js → PkToolShowSources-DR-uaXeX.js} +3 -3
  94. package/dist-vue/_chunks/{PkToolShowSources-B_4taLGg.js.map → PkToolShowSources-DR-uaXeX.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DVYeAkEp.js → PkToolShowSuggestedReply-CThFJVUq.js} +2 -2
  96. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DVYeAkEp.js.map → PkToolShowSuggestedReply-CThFJVUq.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkToolShowVideo-GZ8wviqU.js → PkToolShowVideo-Xogv8wVt.js} +2 -2
  98. package/dist-vue/_chunks/{PkToolShowVideo-GZ8wviqU.js.map → PkToolShowVideo-Xogv8wVt.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkToolShowWebPages-DceCOjLQ.js → PkToolShowWebPages-BHTyFyDI.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolShowWebPages-DceCOjLQ.js.map → PkToolShowWebPages-BHTyFyDI.js.map} +1 -1
  101. package/dist-vue/_chunks/{createChatbotApiClient-7i_D_crv.js → createChatbotApiClient-B3U31J_K.js} +2 -2
  102. package/dist-vue/_chunks/{createChatbotApiClient-7i_D_crv.js.map → createChatbotApiClient-B3U31J_K.js.map} +1 -1
  103. package/dist-vue/_chunks/{useChatbotStore-DhVxJwn6.js → useChatbotStore-D2L4m3iJ.js} +3 -3
  104. package/dist-vue/_chunks/{useChatbotStore-DhVxJwn6.js.map → useChatbotStore-D2L4m3iJ.js.map} +1 -1
  105. package/dist-vue/_chunks/{utils-BpnTWYko.js → utils-Df_SeBdX.js} +2 -2
  106. package/dist-vue/_chunks/{utils-BpnTWYko.js.map → utils-Df_SeBdX.js.map} +1 -1
  107. package/dist-vue/api.js +1 -1
  108. package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +7 -0
  109. package/dist-vue/apps/web-component/src/composables/usePageModal.d.ts +18 -0
  110. package/dist-vue/apps/web-component/src/lib.d.ts +3 -0
  111. package/dist-vue/composables.js +4 -4
  112. package/dist-vue/index.js +24 -24
  113. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -0
  114. package/dist-vue/packages/models/src/schema/Agent.d.ts +55 -0
  115. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +12 -0
  116. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +12 -0
  117. package/package.json +1 -1
  118. package/dist/_chunks/Agent-CtLgGLbV.js.map +0 -1
  119. package/dist-vue/_chunks/Agent-BlWzW8Mg.js.map +0 -1
  120. package/dist-vue/_chunks/PkChatbotMessages-Ce7BtcBf.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  (function(){try{var __b=new URL(".",import.meta.url).href;if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtE6F15M.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWvU6F15M.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtU6F15M.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWuk6F15M.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWu06F15M.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWxU6F15M.woff2) format('woff2');unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-209F,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqW106F15M.woff2) format('woff2');unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AE,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F8D0-1F8D8,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FAC6,U+1FAC8,U+1FACC-1FADD,U+1FADF-1FAEB,U+1FAEF-1FAFA,U+1FB00-1FBFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtk6F15M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWt06F15M.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWuU6F.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format('woff2');unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-209F,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format('woff2');unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AE,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F8D0-1F8D8,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FAC6,U+1FAC8,U+1FACC-1FADD,U+1FADF-1FAEB,U+1FAEF-1FAFA,U+1FB00-1FBFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url("+__b+"assets/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
- import { C as e, E as t, S as n, T as r, _ as i, a, b as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, w as x, x as S, y as ee } from "./_chunks/zod-Cty6wiWN.js";
3
- import { A as te, B as C, C as w, Ct as T, D as E, Dt as ne, E as D, Et as O, F as re, I as k, J as A, K as ie, L as j, M as ae, N as oe, O as M, Ot as N, P as se, Q as ce, R as P, S as F, St as le, T as ue, Tt as de, U as fe, V as pe, Y as me, Z as I, _ as L, _t as he, at as R, b as ge, bt as z, ct as _e, d as ve, dt as ye, et as B, f as V, ft as be, g as H, h as U, ht as W, i as xe, it as Se, k as G, lt as Ce, n as we, pt as Te, q as Ee, r as De, rt as Oe, st as ke, t as K, u as Ae, ut as je, v as q, vt as Me, w as J, wt as Y, x as Ne, xt as X, y as Z, yt as Pe, z as Fe } from "./_chunks/vue.runtime.esm-bundler-DQaOHfo6.js";
2
+ import { C as e, E as t, S as n, T as r, _ as i, a, b as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, w as x, x as S, y as C } from "./_chunks/zod-Cty6wiWN.js";
3
+ import { A as ee, B as w, C as T, Ct as E, D, Dt as te, E as O, Et as k, F as ne, I as re, J as A, K as ie, L as j, M as ae, N as oe, O as M, Ot as N, P as se, Q as ce, R as P, S as F, St as le, T as ue, Tt as de, U as fe, V as pe, Y as me, Z as I, _ as L, _t as he, at as R, b as ge, bt as z, ct as _e, d as ve, dt as ye, et as B, f as V, ft as be, g as H, h as U, ht as W, i as xe, it as Se, k as G, lt as Ce, n as we, pt as Te, q as Ee, r as De, rt as Oe, st as ke, t as K, u as Ae, ut as je, v as q, vt as Me, w as J, wt as Y, x as Ne, xt as X, y as Z, yt as Pe, z as Fe } from "./_chunks/vue.runtime.esm-bundler-DQaOHfo6.js";
4
4
  import { n as Ie, r as Le, t as Re } from "./_chunks/vue-i18n-DjRtpHH3.js";
5
5
  import { i as ze, n as Be, r as Ve } from "./_chunks/iconify-BPfgHBoT.js";
6
- import { A as He, B as Ue, C as We, D as Ge, E as Ke, F as qe, H as Je, I as Ye, L as Xe, M as Ze, N as Qe, O as $e, P as et, R as tt, S as nt, T as rt, V as it, _ as at, a as ot, b as st, c as ct, f as lt, g as ut, h as dt, i as ft, j as pt, k as mt, l as ht, m as gt, n as _t, o as vt, p as yt, r as bt, s as xt, t as St, v as Ct, w as wt, x as Tt, y as Et, z as Dt } from "./_chunks/PkStreamingMarkdown-BP7HK2u0.js";
7
- import { A as Ot, C as kt, D as At, E as jt, F as Mt, I as Nt, N as Pt, O as Ft, P as It, R as Lt, S as Rt, T as zt, a as Bt, b as Vt, c as Ht, h as Ut, i as Wt, j as Gt, k as Kt, l as qt, m as Jt, n as Yt, o as Xt, p as Zt, r as Qt, s as $t, w as en, y as tn } from "./_chunks/Agent-CtLgGLbV.js";
8
- import { a as nn, i as rn, n as an, t as on } from "./_chunks/markdown-B_eDHV3T.js";
6
+ import { A as He, B as Ue, C as We, D as Ge, E as Ke, F as qe, H as Je, I as Ye, L as Xe, M as Ze, N as Qe, O as $e, P as et, R as tt, S as nt, T as rt, V as it, _ as at, a as ot, b as st, c as ct, f as lt, g as ut, h as dt, i as ft, j as pt, k as mt, l as ht, m as gt, n as _t, o as vt, p as yt, r as bt, s as xt, t as St, v as Ct, w as wt, x as Tt, y as Et, z as Dt } from "./_chunks/PkStreamingMarkdown-CR-xBRG2.js";
7
+ import { A as Ot, C as kt, D as At, E as jt, F as Mt, I as Nt, N as Pt, O as Ft, P as It, R as Lt, S as Rt, T as zt, a as Bt, b as Vt, c as Ht, h as Ut, i as Wt, j as Gt, k as Kt, l as qt, m as Jt, n as Yt, o as Xt, p as Zt, r as Qt, s as $t, w as en, y as tn } from "./_chunks/Agent-BdoXh8b0.js";
8
+ import { a as nn, i as rn, n as an, t as on } from "./_chunks/markdown-DtRRqlac.js";
9
9
  import { n as sn } from "./_chunks/src-D7_TJA5_.js";
10
10
  import { r as cn, t as ln } from "./_chunks/url-validation-CJV9pp4v.js";
11
11
  import { _ as un, a as dn, c as fn, g as pn, o as mn, p as hn } from "./_chunks/dist-B-1r4hjs.js";
@@ -15,7 +15,7 @@ import { i as En, n as Dn, r as On, t as kn } from "./_chunks/index.es-BLKujN_a.
15
15
  import { t as An } from "./_chunks/useShortUrlResolver-pELfRVEk.js";
16
16
  import { t as jn } from "./_chunks/useImageFallback-Dn_ctj8v.js";
17
17
  import { t as Mn } from "./_chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
18
- import { t as Nn } from "./_chunks/chatImagePolicy-Bf-fhvf6.js";
18
+ import { t as Nn } from "./_chunks/chatImagePolicy-CZeGEXvB.js";
19
19
  import { t as Pn } from "./_chunks/PkChatbotFilePreview-D5jwgPp8.js";
20
20
  // ../../node_modules/.pnpm/pinia@4.1.0_@vue+devtools-api@8.2.1_typescript@6.0.3_vue@3.5.44_typescript@6.0.3_/node_modules/pinia/dist/pinia.js
21
21
  G(), R();
@@ -274,7 +274,7 @@ function fr(e, t, n) {
274
274
  r = i ? n : t;
275
275
  function a(n, a) {
276
276
  let o = M();
277
- return n ||= o ? te(Rn, null) : null, n && Ln(n), n = In, n._s.has(e) || (i ? dr(e, t, r, n) : ur(e, r, n)), n._s.get(e);
277
+ return n ||= o ? ee(Rn, null) : null, n && Ln(n), n = In, n._s.has(e) || (i ? dr(e, t, r, n) : ur(e, r, n)), n._s.get(e);
278
278
  }
279
279
  return a.$id = e, a;
280
280
  }
@@ -5007,7 +5007,7 @@ var ti = i({
5007
5007
  mediaType: o().regex(Rt),
5008
5008
  url: e(),
5009
5009
  filename: o().optional(),
5010
- providerMetadata: ee(o(), ee(o(), n())).optional()
5010
+ providerMetadata: C(o(), C(o(), n())).optional()
5011
5011
  }), ri = b("type", [ti, ni]);
5012
5012
  i({
5013
5013
  id: o(),
@@ -5034,7 +5034,7 @@ i({
5034
5034
  fallbackModels: h(o()).optional(),
5035
5035
  gatewayOptions: Qt.partial().optional(),
5036
5036
  deviceContext: Nt.optional(),
5037
- externalContext: ee(o(), n()).optional(),
5037
+ externalContext: C(o(), n()).optional(),
5038
5038
  smoothStream: v().optional(),
5039
5039
  hostTools: h(n()).optional(),
5040
5040
  pageTools: n().optional()
@@ -5060,7 +5060,7 @@ var ai = /* @__PURE__ */ new Set([
5060
5060
  messageCountAtLastSummary: o().nullable(),
5061
5061
  createdAt: y(),
5062
5062
  updatedAt: y(),
5063
- metadata: ee(o(), n()),
5063
+ metadata: C(o(), n()),
5064
5064
  totalCostInUSD: o(),
5065
5065
  usage: n(),
5066
5066
  agentId: o().nullable(),
@@ -5124,7 +5124,9 @@ var li = (e) => e?.role === "user" && !!e.metadata?.wakeup, ui = /* @__PURE__ */
5124
5124
  ...Jt,
5125
5125
  ...Zt,
5126
5126
  "editSpreadsheet",
5127
- "editWordDocument"
5127
+ "editWordDocument",
5128
+ Yt.CreateSpreadsheet,
5129
+ Yt.CreateWordDocument
5128
5130
  ]);
5129
5131
  [...Zt, Yt.ShowContactForm];
5130
5132
  var fi = (e) => e.state, pi = (e) => e.type.startsWith("tool-") ? e.type.slice(5) : void 0, mi = (e) => e?.role === "assistant" && e.parts.some((e) => {
@@ -6481,7 +6483,7 @@ var Qs = async (e, t) => {
6481
6483
  error: null
6482
6484
  };
6483
6485
  }
6484
- let y = t?.jsonParser ?? Ps, b = await h.text(), x = Ms(b), S = x ? await y(b) : null, ee = {
6486
+ let y = t?.jsonParser ?? Ps, b = await h.text(), x = Ms(b), S = x ? await y(b) : null, C = {
6485
6487
  response: h,
6486
6488
  responseText: b,
6487
6489
  request: p,
@@ -6491,8 +6493,8 @@ var Qs = async (e, t) => {
6491
6493
  })
6492
6494
  };
6493
6495
  for (let e of r.onError) if (e) {
6494
- var te;
6495
- await e(Zs(Zs({}, ee), {}, { response: t != null && (te = t.hookOptions) != null && te.cloneResponse ? h.clone() : h }));
6496
+ var ee;
6497
+ await e(Zs(Zs({}, C), {}, { response: t != null && (ee = t.hookOptions) != null && ee.cloneResponse ? h.clone() : h }));
6496
6498
  }
6497
6499
  if (t?.retry) {
6498
6500
  let n = ps(t.retry), i = t.retryAttempt ?? 0;
@@ -8344,7 +8346,7 @@ var Q = {
8344
8346
  null: a,
8345
8347
  number: l,
8346
8348
  object: i,
8347
- record: ee,
8349
+ record: C,
8348
8350
  string: o,
8349
8351
  union: S,
8350
8352
  unknown: n
@@ -10582,9 +10584,9 @@ var mf = "voice-", hf = (e) => e?.role === "assistant" && e.parts.some((e) => e.
10582
10584
  };
10583
10585
  function Mf(e) {
10584
10586
  return fr(`chatbot-${e}`, () => {
10585
- let { t, te: n, locale: r } = Le({ useScope: "global" }), i = W(""), a = W(), o = W(e), s = W(), c = W(), l = W(), u = W(), d = W(), f = W(), p = W(), m = W(), h = W(), g = W(), _ = W(), v = W(), y = W(), b = W(), x = W(), S = W(), ee = he(), te = W(0), C = W(), w = he(), T = he(), E = W(), ne = W({}), D = W(!1), O = W(0), re = W(), k = W(!1), A = pn(), ie = U(() => {
10587
+ let { t, te: n, locale: r } = Le({ useScope: "global" }), i = W(""), a = W(), o = W(e), s = W(), c = W(), l = W(), u = W(), d = W(), f = W(), p = W(), m = W(), h = W(), g = W(), _ = W(), v = W(), y = W(), b = W(), x = W(), S = W(), C = he(), ee = W(0), w = W(), T = he(), E = he(), D = W(), te = W({}), O = W(!1), k = W(0), ne = W(), re = W(!1), A = pn(), ie = U(() => {
10586
10588
  let e = u.value?.theme;
10587
- return e && e !== "auto" || (e = re.value), e ? e === "dark" : A.value;
10589
+ return e && e !== "auto" || (e = ne.value), e ? e === "dark" : A.value;
10588
10590
  }), j = U(() => c.value === "reasoning"), ae = U(() => j.value ? g.value?.filter((e) => ![
10589
10591
  "upvote",
10590
10592
  "downvote",
@@ -10598,12 +10600,12 @@ function Mf(e) {
10598
10600
  set: (e) => {
10599
10601
  oe.value = e;
10600
10602
  }
10601
- }), N = En(U(() => `${o.value}-pageAccessOff`), !1), P = U(() => N.value ? [] : w.value ?? []), F = () => N.value ? [] : T.value?.() ?? [], le = U(() => !!(C.value && w.value?.length)), ue = On(U(() => `${o.value}-pageNotice`), null), de = U(() => {
10602
- let e = C.value?.level;
10603
+ }), N = En(U(() => `${o.value}-pageAccessOff`), !1), P = U(() => N.value ? [] : T.value ?? []), F = () => N.value ? [] : E.value?.() ?? [], le = U(() => !!(w.value && T.value?.length)), ue = On(U(() => `${o.value}-pageNotice`), null), de = U(() => {
10604
+ let e = w.value?.level;
10603
10605
  return e && e !== Ft.Off && P.value.length && !Gt(ue.value ?? void 0, e) ? e : void 0;
10604
10606
  });
10605
10607
  function fe() {
10606
- ue.value = C.value?.level ?? null;
10608
+ ue.value = w.value?.level ?? null;
10607
10609
  }
10608
10610
  let pe = W(), me = W(!1), L = U(() => pe.value?.message?.toLowerCase().includes("conversation-blocked") ?? !1);
10609
10611
  function R(e) {
@@ -10630,11 +10632,11 @@ function Mf(e) {
10630
10632
  ...Vr(),
10631
10633
  ..._e.value ?? {}
10632
10634
  }), ye = () => {
10633
- let e = O.value;
10635
+ let e = k.value;
10634
10636
  return new Promise((t) => {
10635
10637
  let n = setTimeout(() => {
10636
10638
  r(), t(!1);
10637
- }, 3e4), r = I(() => [O.value, Z.value.status], ([i, a]) => {
10639
+ }, 3e4), r = I(() => [k.value, Z.value.status], ([i, a]) => {
10638
10640
  i > e && a === "streaming" && (clearTimeout(n), r(), t(!0));
10639
10641
  });
10640
10642
  });
@@ -10653,7 +10655,7 @@ function Mf(e) {
10653
10655
  }
10654
10656
  let xe = Ec({
10655
10657
  registry: () => [
10656
- ...(ee.value ?? []).filter((e) => !Kt(e.name)),
10658
+ ...(C.value ?? []).filter((e) => !Kt(e.name)),
10657
10659
  ...P.value,
10658
10660
  ...F()
10659
10661
  ],
@@ -10662,11 +10664,11 @@ function Mf(e) {
10662
10664
  confirm: V,
10663
10665
  waitForResume: ye,
10664
10666
  onPendingChange: (e) => {
10665
- te.value = e;
10667
+ ee.value = e;
10666
10668
  },
10667
10669
  onActivity: (e) => {
10668
10670
  if (e?.provider !== "page") {
10669
- E.value = void 0;
10671
+ D.value = void 0;
10670
10672
  return;
10671
10673
  }
10672
10674
  let t = [...P.value, ...F()].find((t) => t.name === e.toolName), n;
@@ -10675,14 +10677,14 @@ function Mf(e) {
10675
10677
  } catch {
10676
10678
  n = void 0;
10677
10679
  }
10678
- n && (ne.value = {
10679
- ...ne.value,
10680
+ n && (te.value = {
10681
+ ...te.value,
10680
10682
  [e.toolCallId]: n
10681
- }), e.readOnly ? E.value = void 0 : (E.value = { title: n ?? t?.annotations?.title ?? e.toolName }, D.value = !0);
10683
+ }), e.readOnly ? D.value = void 0 : (D.value = { title: n ?? t?.annotations?.title ?? e.toolName }, O.value = !0);
10682
10684
  }
10683
10685
  });
10684
10686
  async function Se() {
10685
- G(), E.value = void 0, D.value = !1, it.value = "", await Z.value.stop();
10687
+ G(), D.value = void 0, O.value = !1, it.value = "", await Z.value.stop();
10686
10688
  }
10687
10689
  function G() {
10688
10690
  xe.cancelAll(), B.value?.answer(!1);
@@ -10728,8 +10730,8 @@ function Mf(e) {
10728
10730
  disabledTools: f.value?.disabled,
10729
10731
  fallbackModels: y.value,
10730
10732
  gatewayOptions: b.value,
10731
- hostTools: Tc(ee.value, S.value),
10732
- pageTools: C.value && P.value.length ? {
10733
+ hostTools: Tc(C.value, S.value),
10734
+ pageTools: w.value && P.value.length ? {
10733
10735
  version: 1,
10734
10736
  features: [...At],
10735
10737
  forms: F().map(({ name: e, description: t, inputSchema: n, annotations: r }) => ({
@@ -10803,7 +10805,7 @@ function Mf(e) {
10803
10805
  };
10804
10806
  })
10805
10807
  }), t = Z.value.id === M.value ? Z.value.messages : [];
10806
- return j.value ? e(t) : !k.value && t[0]?.role !== "assistant" ? [Re.value, ...e(t)] : e(t);
10808
+ return j.value ? e(t) : !re.value && t[0]?.role !== "assistant" ? [Re.value, ...e(t)] : e(t);
10807
10809
  }), Be = U(() => {
10808
10810
  let e = u.value?.messagePlaceholder;
10809
10811
  return e?.[r.value] ? e[r.value] : n("placeholder.askAnything") ? t("placeholder.askAnything") : "";
@@ -10949,7 +10951,7 @@ function Mf(e) {
10949
10951
  let Ct = () => {
10950
10952
  let e = Z.value.status;
10951
10953
  return e === "submitted" || e === "streaming";
10952
- }, wt = () => Ct() || Ee?.chatId === M.value || te.value > 0, Tt = () => {
10954
+ }, wt = () => Ct() || Ee?.chatId === M.value || ee.value > 0, Tt = () => {
10953
10955
  let e = Pe();
10954
10956
  return B.value !== void 0 || hf(e) || Af(e);
10955
10957
  }, Et = /* @__PURE__ */ new Set();
@@ -11067,16 +11069,16 @@ function Mf(e) {
11067
11069
  let t = B.value?.toolCallId;
11068
11070
  t && !e.some((e) => e.parts.some((e) => e.toolCallId === t)) && G();
11069
11071
  }), I(() => Z.value.status, (e) => {
11070
- e === "submitted" && (O.value++, Oe = void 0);
11072
+ e === "submitted" && (k.value++, Oe = void 0);
11071
11073
  });
11072
11074
  let Ut;
11073
- I(() => [Z.value.status, te.value], ([e, t]) => {
11075
+ I(() => [Z.value.status, ee.value], ([e, t]) => {
11074
11076
  clearTimeout(Ut), e === "ready" && t === 0 && (Ut = setTimeout(() => {
11075
- D.value = !1;
11077
+ O.value = !1;
11076
11078
  }, 1500));
11077
11079
  });
11078
11080
  let Wt = W(!1), qt;
11079
- I(() => !B.value && !hf(Pe()) && (Ct() || te.value > 0), (e) => {
11081
+ I(() => !B.value && !hf(Pe()) && (Ct() || ee.value > 0), (e) => {
11080
11082
  clearTimeout(qt), e ? Wt.value = !0 : qt = setTimeout(() => {
11081
11083
  Wt.value = !1;
11082
11084
  }, 400);
@@ -11135,7 +11137,7 @@ function Mf(e) {
11135
11137
  Dt();
11136
11138
  }
11137
11139
  }
11138
- }), I(te, (e) => {
11140
+ }), I(ee, (e) => {
11139
11141
  e === 0 && Z.value.status === "ready" && Dt();
11140
11142
  }), I(() => Z.value.status, (e) => {
11141
11143
  e === "ready" && it.value.length > 0 && (it.value = "");
@@ -11145,7 +11147,7 @@ function Mf(e) {
11145
11147
  rt.value = [], yn.value = null;
11146
11148
  }
11147
11149
  async function cn() {
11148
- return it.value = "", ne.value = {}, M.value = ml(), await se(), Z.value.clearError(), pe.value = void 0, me.value = !1, on(!0), Mn("chat"), M.value;
11150
+ return it.value = "", te.value = {}, M.value = ml(), await se(), Z.value.clearError(), pe.value = void 0, me.value = !1, on(!0), Mn("chat"), M.value;
11149
11151
  }
11150
11152
  async function ln(e) {
11151
11153
  Z.value.status !== "ready" && (it.value = "", await Ht()), G(), await Z.value.regenerate(e);
@@ -11302,14 +11304,14 @@ function Mf(e) {
11302
11304
  gatewayOptions: b,
11303
11305
  externalContext: x,
11304
11306
  agentHostTools: S,
11305
- hostToolRegistry: ee,
11306
- hostToolsPending: te,
11307
- agentPageAccess: C,
11308
- pageToolRegistry: w,
11309
- pageFormsProvider: T,
11310
- pageAction: E,
11311
- hostStepTitles: ne,
11312
- pageControlActive: D,
11307
+ hostToolRegistry: C,
11308
+ hostToolsPending: ee,
11309
+ agentPageAccess: w,
11310
+ pageToolRegistry: T,
11311
+ pageFormsProvider: E,
11312
+ pageAction: D,
11313
+ hostStepTitles: te,
11314
+ pageControlActive: O,
11313
11315
  isWorking: Wt,
11314
11316
  stopHostActions: Se,
11315
11317
  pageNoticeLevel: de,
@@ -11319,8 +11321,8 @@ function Mf(e) {
11319
11321
  pageAccessAvailable: le,
11320
11322
  pageAccessOff: N,
11321
11323
  setPageAccessOff: Ce,
11322
- systemTheme: re,
11323
- hideWelcomeMessage: k,
11324
+ systemTheme: ne,
11325
+ hideWelcomeMessage: re,
11324
11326
  isDark: ie,
11325
11327
  chat: Z,
11326
11328
  messages: ze,
@@ -11394,7 +11396,7 @@ var Nf = W(!1), Pf = W(), Ff = W(), If = W(), Lf = W(), Rf = W(!1), zf = W(), Bf
11394
11396
  return {
11395
11397
  PkGlobalDialog: J({
11396
11398
  name: "PkGlobalDialog",
11397
- render: () => E(_n, {
11399
+ render: () => D(_n, {
11398
11400
  modelValue: Nf.value,
11399
11401
  title: Pf.value,
11400
11402
  transition: Ff.value,
@@ -11423,16 +11425,16 @@ var Hf = () => {
11423
11425
  keepOpen: !0,
11424
11426
  title: d
11425
11427
  }, {
11426
- default: () => E("div", [
11427
- E("div", {
11428
+ default: () => D("div", [
11429
+ D("div", {
11428
11430
  class: o ? "" : "mb-sm",
11429
11431
  style: "white-space: pre-line"
11430
11432
  }, a ?? t("message.confirm")),
11431
- o ? E("p", {
11433
+ o ? D("p", {
11432
11434
  class: "text-14 text-word-2 mt-xs mb-sm",
11433
11435
  style: "white-space: pre-line"
11434
11436
  }, o) : void 0,
11435
- c ? E(yn, {
11437
+ c ? D(yn, {
11436
11438
  modelValue: h.value,
11437
11439
  "onUpdate:modelValue": (e) => {
11438
11440
  h.value = e;
@@ -11445,15 +11447,15 @@ var Hf = () => {
11445
11447
  hintLabel: u ?? t("hint.passphrase", { passphrase: c })
11446
11448
  }) : void 0
11447
11449
  ]),
11448
- footer: () => E(gn, () => {
11450
+ footer: () => D(gn, () => {
11449
11451
  let e = [];
11450
- return s || e.push(E(vn, {
11452
+ return s || e.push(D(vn, {
11451
11453
  label: i ?? t("action.cancel"),
11452
11454
  modifiers: "ghost",
11453
11455
  onClick: () => {
11454
11456
  n && m(), p(!1), g.value = !1;
11455
11457
  }
11456
- })), e.push(E(vn, {
11458
+ })), e.push(D(vn, {
11457
11459
  label: r ?? t("action.proceed"),
11458
11460
  modifiers: f ? "danger" : void 0,
11459
11461
  disabled: c ? c !== h.value : !1,
@@ -12442,25 +12444,25 @@ function bh(e, { t, pages: n = () => [] }) {
12442
12444
  }
12443
12445
  let v = jp(), y = v && v !== m && !gp(v, { inert: !1 }) && !mp(v, r) ? v : void 0, b = !s?.destination && location.href !== c, x = !e.isConnected || gp(e, { inert: !1 });
12444
12446
  (b || !s?.destination && x) && await Nm();
12445
- let S = u.stop(), ee = [t];
12446
- if (S.length > 0 && ee.push(`The page said: ${S.map((e) => `«${e}»`).join(" ")}`), s?.destination) ee.push(`The page is loading ${uh(s.destination)}: the conversation goes on there, so read it with page_snapshot before doing anything else.`);
12447
+ let S = u.stop(), C = [t];
12448
+ if (S.length > 0 && C.push(`The page said: ${S.map((e) => `«${e}»`).join(" ")}`), s?.destination) C.push(`The page is loading ${uh(s.destination)}: the conversation goes on there, so read it with page_snapshot before doing anything else.`);
12447
12449
  else if (b || x) {
12448
12450
  let e = h();
12449
- ee.push(`${b ? "The page is now" : "The part of the page that held it closed or was replaced, the page is"} "${document.title}" (${location.pathname}${location.search}). Now:\n${e.text}`), e.truncated && ee.push("[The page goes on: page_snapshot for the rest.]"), !b && p && S.length === 0 && ee.push("[The dialog closed and the page announced nothing: what it held may only be written into the page's form, which its own save button sends. Do not say it is saved until the page shows it.]");
12451
+ C.push(`${b ? "The page is now" : "The part of the page that held it closed or was replaced, the page is"} "${document.title}" (${location.pathname}${location.search}). Now:\n${e.text}`), e.truncated && C.push("[The page goes on: page_snapshot for the rest.]"), !b && p && S.length === 0 && C.push("[The dialog closed and the page announced nothing: what it held may only be written into the page's form, which its own save button sends. Do not say it is saved until the page shows it.]");
12450
12452
  } else {
12451
12453
  let e = i ? g(i.form) : [];
12452
- e.length > 0 && ee.push(`The form was not sent: ${e.join("; ")}.`);
12454
+ e.length > 0 && C.push(`The form was not sent: ${e.join("; ")}.`);
12453
12455
  let t = y ?? d(), n = y ? Sp(y, r) : "";
12454
- ee.push(`${y ? `A dialog opened${n ? ` "${n}"` : ""}, the page behind it is out of reach until it closes. ` : ""}Now:\n${l(t, Jm).text}`), !y && S.length === 0 && e.length === 0 && yp(t, r, Jm) === f && ee.push("[No visible change yet: if the page is still working, wait for it with page_wait; if the action opened something elsewhere, read it with page_snapshot.]");
12456
+ C.push(`${y ? `A dialog opened${n ? ` "${n}"` : ""}, the page behind it is out of reach until it closes. ` : ""}Now:\n${l(t, Jm).text}`), !y && S.length === 0 && e.length === 0 && yp(t, r, Jm) === f && C.push("[No visible change yet: if the page is still working, wait for it with page_wait; if the action opened something elsewhere, read it with page_snapshot.]");
12455
12457
  }
12456
- let te = sh(ee.join("\n"));
12458
+ let ee = sh(C.join("\n"));
12457
12459
  return s ? {
12458
- result: te,
12460
+ result: ee,
12459
12461
  afterOutput: () => {
12460
12462
  s.destination && dh(), s.release();
12461
12463
  },
12462
12464
  abandon: () => s.drop()
12463
- } : te;
12465
+ } : ee;
12464
12466
  }, v = (e) => {
12465
12467
  let t = l(document.body, Qm), n = t.text.split("\n"), r = e.toLowerCase(), i = /* @__PURE__ */ new Set(), a = 0;
12466
12468
  n.forEach((e, t) => {
@@ -12504,33 +12506,33 @@ function bh(e, { t, pages: n = () => [] }) {
12504
12506
  if (!t) return !1;
12505
12507
  for (let e of x().keys()) if (e === t || yh(e, t)) return !0;
12506
12508
  return !1;
12507
- }, ee = (e, t) => e.slice(0, t).map(([e, t]) => `- ${e}${t ? ` (${t})` : ""}`).join("\n") + (e.length > t ? `\n[and ${e.length - t} more]` : ""), te = (e) => {
12509
+ }, C = (e, t) => e.slice(0, t).map(([e, t]) => `- ${e}${t ? ` (${t})` : ""}`).join("\n") + (e.length > t ? `\n[and ${e.length - t} more]` : ""), ee = (e) => {
12508
12510
  let n = e ? b(e) : t("toolApproval.pageElement");
12509
12511
  return n.length > 40 ? `${n.slice(0, 39)}…` : n;
12510
- }, C = /* @__PURE__ */ new Map(), w = (e) => im(e, r, {
12512
+ }, w = /* @__PURE__ */ new Map(), T = (e) => im(e, r, {
12511
12513
  checked: t("toolApproval.fieldChecked"),
12512
12514
  before: s
12513
- }), T = (e) => JSON.stringify(im(e, r, {
12515
+ }), E = (e) => JSON.stringify(im(e, r, {
12514
12516
  checked: t("toolApproval.fieldChecked"),
12515
12517
  whole: !0
12516
- })), E = (e, n, r) => {
12517
- let i = w(e);
12518
- return C.set(r, T(e)), {
12518
+ })), D = (e, n, r) => {
12519
+ let i = T(e);
12520
+ return w.set(r, E(e)), {
12519
12521
  question: n,
12520
12522
  details: i.more ? [...i.fields, {
12521
12523
  label: "",
12522
12524
  value: t("toolApproval.moreFields", { count: i.more })
12523
12525
  }] : i.fields
12524
12526
  };
12525
- }, ne = (e, t) => {
12526
- let n = C.get(t);
12527
- if (C.delete(t), n !== void 0 && n !== T(e)) throw Error("The form changed while the user was deciding: read it again with page_snapshot, and submit only what the user asked for.");
12528
- }, D = (e) => {
12527
+ }, te = (e, t) => {
12528
+ let n = w.get(t);
12529
+ if (w.delete(t), n !== void 0 && n !== E(e)) throw Error("The form changed while the user was deciding: read it again with page_snapshot, and submit only what the user asked for.");
12530
+ }, O = (e) => {
12529
12531
  if (e.ref !== void 0) return d(e);
12530
12532
  let t = document.activeElement;
12531
12533
  for (; t?.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
12532
12534
  return t ?? document.body;
12533
- }, O = { timeoutMs: Xm }, re = [
12535
+ }, k = { timeoutMs: Xm }, ne = [
12534
12536
  {
12535
12537
  name: "page_snapshot",
12536
12538
  inputSchema: { type: "object" },
@@ -12538,7 +12540,7 @@ function bh(e, { t, pages: n = () => [] }) {
12538
12540
  title: t("messagePart.pageTool.snapshot"),
12539
12541
  readOnlyHint: !0
12540
12542
  },
12541
- policy: O,
12543
+ policy: k,
12542
12544
  async execute(e, { signal: t }) {
12543
12545
  await zm(), ph(t);
12544
12546
  let r = e.scope, { root: i, note: a } = r === void 0 ? m() : {
@@ -12550,7 +12552,7 @@ function bh(e, { t, pages: n = () => [] }) {
12550
12552
  a ?? "",
12551
12553
  o.text,
12552
12554
  o.truncated ? "[The page goes on: call page_snapshot with the scope of a region for the rest.]" : "",
12553
- r === void 0 && s.length > 0 ? `Pages of the site (<id> is any one segment):\n${ee(s, _h)}` : ""
12555
+ r === void 0 && s.length > 0 ? `Pages of the site (<id> is any one segment):\n${C(s, _h)}` : ""
12554
12556
  ].filter(Boolean).join("\n"));
12555
12557
  }
12556
12558
  },
@@ -12561,7 +12563,7 @@ function bh(e, { t, pages: n = () => [] }) {
12561
12563
  title: t("messagePart.pageTool.read"),
12562
12564
  readOnlyHint: !0
12563
12565
  },
12564
- policy: O,
12566
+ policy: k,
12565
12567
  async execute(e, { signal: t }) {
12566
12568
  return await zm(), ph(t), sh(am(u(e), i, r, {
12567
12569
  maxChars: qm,
@@ -12576,7 +12578,7 @@ function bh(e, { t, pages: n = () => [] }) {
12576
12578
  title: t("messagePart.pageTool.find"),
12577
12579
  readOnlyHint: !0
12578
12580
  },
12579
- policy: O,
12581
+ policy: k,
12580
12582
  describe(e) {
12581
12583
  let n = String(e.text ?? "").trim();
12582
12584
  return n ? t("messagePart.pageStep.find", { text: n.length > 40 ? `${n.slice(0, 39)}…` : n }) : void 0;
@@ -12596,7 +12598,7 @@ function bh(e, { t, pages: n = () => [] }) {
12596
12598
  title: t("messagePart.pageTool.wait"),
12597
12599
  readOnlyHint: !0
12598
12600
  },
12599
- policy: O,
12601
+ policy: k,
12600
12602
  async execute(e, { signal: t }) {
12601
12603
  await zm(), ph(t);
12602
12604
  let { text: n, seconds: i } = e, a = String(n ?? "").trim();
@@ -12610,19 +12612,19 @@ function bh(e, { t, pages: n = () => [] }) {
12610
12612
  }
12611
12613
  }
12612
12614
  ];
12613
- return Gt(e.level, Ft.Full) && re.push({
12615
+ return Gt(e.level, Ft.Full) && ne.push({
12614
12616
  name: "page_click",
12615
12617
  inputSchema: { type: "object" },
12616
12618
  annotations: {
12617
12619
  title: t("messagePart.pageTool.click"),
12618
12620
  destructiveHint: !0
12619
12621
  },
12620
- policy: O,
12622
+ policy: k,
12621
12623
  confirmation(e) {
12622
12624
  let n = Number(e.ref), a = i.resolve(n);
12623
12625
  if (!a || Mp(a)) return;
12624
12626
  let o = b(a), s = vm(a);
12625
- if (s) return E(s, t("toolApproval.pageSubmit", { name: o }), String(n));
12627
+ if (s) return D(s, t("toolApproval.pageSubmit", { name: o }), String(n));
12626
12628
  if (ym(a)) return t("toolApproval.pageOpen", { name: o });
12627
12629
  let c = Np(a, r);
12628
12630
  if (c) return t("toolApproval.pageAnswer", {
@@ -12631,11 +12633,11 @@ function bh(e, { t, pages: n = () => [] }) {
12631
12633
  });
12632
12634
  if (p(a)) return bm(a) ? t("toolApproval.pageOpen", { name: o }) : t("toolApproval.pageClick", { name: o });
12633
12635
  },
12634
- describe: (e) => t("messagePart.pageStep.click", { name: te(i.resolve(Number(e.ref))) }),
12636
+ describe: (e) => t("messagePart.pageStep.click", { name: ee(i.resolve(Number(e.ref))) }),
12635
12637
  async execute(e, { signal: t }) {
12636
12638
  await zm(), ph(t);
12637
12639
  let n = d(e), a = qp(n, i.refOf(n), r), o = vm(n);
12638
- if (o && ne(o, String(e.ref)), _m(n), !Bm() && (bm(n) || o)) return hh(`Clicking ${a}.`, () => lm(n));
12640
+ if (o && te(o, String(e.ref)), _m(n), !Bm() && (bm(n) || o)) return hh(`Clicking ${a}.`, () => lm(n));
12639
12641
  let s = n.getAttribute("aria-controls");
12640
12642
  return _({
12641
12643
  element: n,
@@ -12653,9 +12655,9 @@ function bh(e, { t, pages: n = () => [] }) {
12653
12655
  name: "page_fill",
12654
12656
  inputSchema: { type: "object" },
12655
12657
  annotations: { title: t("messagePart.pageTool.fill") },
12656
- policy: O,
12658
+ policy: k,
12657
12659
  describe(e) {
12658
- let n = mh(e).map(({ ref: e }) => te(i.resolve(Number(e))));
12660
+ let n = mh(e).map(({ ref: e }) => ee(i.resolve(Number(e))));
12659
12661
  return t("messagePart.pageStep.fill", { name: n.slice(0, 2).join(", ") + (n.length > 2 ? ` +${n.length - 2}` : "") });
12660
12662
  },
12661
12663
  confirmation(e) {
@@ -12711,7 +12713,7 @@ function bh(e, { t, pages: n = () => [] }) {
12711
12713
  name: "page_scroll",
12712
12714
  inputSchema: { type: "object" },
12713
12715
  annotations: { title: t("messagePart.pageTool.scroll") },
12714
- policy: O,
12716
+ policy: k,
12715
12717
  async execute(e, { signal: t }) {
12716
12718
  await zm(), ph(t);
12717
12719
  let { ref: n, direction: r } = e;
@@ -12721,8 +12723,8 @@ function bh(e, { t, pages: n = () => [] }) {
12721
12723
  name: "page_hover",
12722
12724
  inputSchema: { type: "object" },
12723
12725
  annotations: { title: t("messagePart.pageTool.hover") },
12724
- policy: O,
12725
- describe: (e) => t("messagePart.pageStep.hover", { name: te(i.resolve(Number(e.ref))) }),
12726
+ policy: k,
12727
+ describe: (e) => t("messagePart.pageStep.hover", { name: ee(i.resolve(Number(e.ref))) }),
12726
12728
  confirmation(e) {
12727
12729
  let n = i.resolve(Number(e.ref));
12728
12730
  return n && p(n) ? t("toolApproval.pageHover", { name: b(n) }) : void 0;
@@ -12738,16 +12740,16 @@ function bh(e, { t, pages: n = () => [] }) {
12738
12740
  name: "page_press",
12739
12741
  inputSchema: { type: "object" },
12740
12742
  annotations: { title: t("messagePart.pageTool.press") },
12741
- policy: O,
12743
+ policy: k,
12742
12744
  confirmation(e) {
12743
12745
  let { key: n } = e, i;
12744
12746
  try {
12745
- i = D(e);
12747
+ i = O(e);
12746
12748
  } catch {
12747
12749
  return;
12748
12750
  }
12749
12751
  let a = n === "Enter" ? mm(i) : null;
12750
- if (a) return E(a, t("toolApproval.pageSubmit", { name: b(i) }), `press:${String(e.ref)}`);
12752
+ if (a) return D(a, t("toolApproval.pageSubmit", { name: b(i) }), `press:${String(e.ref)}`);
12751
12753
  let o = n === "Enter" || n === "Space" ? Np(i, r, { anyElement: !0 }) : void 0;
12752
12754
  return o ? t("toolApproval.pageAnswer", {
12753
12755
  question: o,
@@ -12761,19 +12763,19 @@ function bh(e, { t, pages: n = () => [] }) {
12761
12763
  let { key: n, ref: r } = e;
12762
12764
  return t("messagePart.pageStep.press", {
12763
12765
  key: String(n),
12764
- name: r === void 0 ? t("toolApproval.pageFocused") : te(i.resolve(Number(r)))
12766
+ name: r === void 0 ? t("toolApproval.pageFocused") : ee(i.resolve(Number(r)))
12765
12767
  });
12766
12768
  },
12767
12769
  async execute(e, { signal: t }) {
12768
12770
  await zm(), ph(t);
12769
12771
  let n = String(e.key);
12770
12772
  if (!dm.includes(n)) throw Error(`No key "${n}": the keys are ${dm.join(", ")}.`);
12771
- let a = D(e);
12773
+ let a = O(e);
12772
12774
  if (mp(a, r)) throw Error("That element is off limits: the site excluded it.");
12773
12775
  e.ref !== void 0 && a.focus?.();
12774
12776
  let o = a === document.body ? "the page" : qp(a, i.refOf(a), r), s = n === "Enter" ? mm(a) : null;
12775
12777
  if (s) {
12776
- ne(s, `press:${String(e.ref)}`);
12778
+ te(s, `press:${String(e.ref)}`);
12777
12779
  let r = () => {
12778
12780
  fm(a, n) || hm(s);
12779
12781
  };
@@ -12802,7 +12804,7 @@ function bh(e, { t, pages: n = () => [] }) {
12802
12804
  name: "page_back",
12803
12805
  inputSchema: { type: "object" },
12804
12806
  annotations: { title: t("messagePart.pageTool.back") },
12805
- policy: O,
12807
+ policy: k,
12806
12808
  confirmation: () => e.confirmEveryAction || !fh() ? t("toolApproval.pageBack") : void 0,
12807
12809
  async execute(e, { signal: t }) {
12808
12810
  if (await zm(), ph(t), history.length <= 1) throw Error("There is no page before this one in this tab.");
@@ -12812,7 +12814,7 @@ function bh(e, { t, pages: n = () => [] }) {
12812
12814
  name: "page_navigate",
12813
12815
  inputSchema: { type: "object" },
12814
12816
  annotations: { title: t("messagePart.pageTool.navigate") },
12815
- policy: O,
12817
+ policy: k,
12816
12818
  describe(e) {
12817
12819
  try {
12818
12820
  let n = new URL(String(e.url), location.href);
@@ -12828,7 +12830,7 @@ function bh(e, { t, pages: n = () => [] }) {
12828
12830
  let e = [...x().entries()];
12829
12831
  return {
12830
12832
  question: t("toolApproval.pageNavigateUnknown", { url: uh(r) }),
12831
- refusal: `The user did not let you open ${uh(r)}, an address the page does not show. Open one of these instead, or click through the site's menus:\n${ee(e, _h)}`
12833
+ refusal: `The user did not let you open ${uh(r)}, an address the page does not show. Open one of these instead, or click through the site's menus:\n${C(e, _h)}`
12832
12834
  };
12833
12835
  }
12834
12836
  },
@@ -12870,7 +12872,7 @@ function bh(e, { t, pages: n = () => [] }) {
12870
12872
  }
12871
12873
  return hh(`Opening ${r}.`, () => location.replace(n.href));
12872
12874
  }
12873
- }), re;
12875
+ }), ne;
12874
12876
  }
12875
12877
  // src/pageTools/forms.ts
12876
12878
  var xh = 16, Sh = /* @__PURE__ */ new Set([
@@ -13879,7 +13881,7 @@ function p_(e = {}) {
13879
13881
  }, i));
13880
13882
  }
13881
13883
  Se() && be(() => clearTimeout(b));
13882
- async function ee(e) {
13884
+ async function C(e) {
13883
13885
  try {
13884
13886
  let { error: t } = await a.externalToken.refresh({ token: e });
13885
13887
  return !t && (u.value === e && S(e), !0);
@@ -13887,11 +13889,11 @@ function p_(e = {}) {
13887
13889
  return !1;
13888
13890
  }
13889
13891
  }
13890
- async function te(e) {
13892
+ async function ee(e) {
13891
13893
  s.value = !0;
13892
13894
  try {
13893
13895
  let t = x();
13894
- if (o.value.data && t && u_(t, e) && (await ee(e) || u.value !== e)) return;
13896
+ if (o.value.data && t && u_(t, e) && (await C(e) || u.value !== e)) return;
13895
13897
  let { data: n } = await a.signIn.externalToken({ token: e });
13896
13898
  if (u.value !== e) return;
13897
13899
  if (n?.token) {
@@ -13905,20 +13907,20 @@ function p_(e = {}) {
13905
13907
  s.value = !1;
13906
13908
  }
13907
13909
  }
13908
- let C, w, T = !1;
13909
- async function E(e) {
13910
- if (e && C !== e) {
13911
- u.value = e, w = e, C = e;
13910
+ let w, T, E = !1;
13911
+ async function D(e) {
13912
+ if (e && w !== e) {
13913
+ u.value = e, T = e, w = e;
13912
13914
  try {
13913
13915
  await p(async () => {
13914
- u.value === e && await te(e);
13916
+ u.value === e && await ee(e);
13915
13917
  });
13916
13918
  } finally {
13917
- C = void 0;
13919
+ w = void 0;
13918
13920
  }
13919
13921
  }
13920
13922
  }
13921
- async function ne() {
13923
+ async function te() {
13922
13924
  s.value || await p(async () => {
13923
13925
  if (!(u.value || n.value)) {
13924
13926
  s.value = !0;
@@ -13935,43 +13937,43 @@ function p_(e = {}) {
13935
13937
  if (!r.isPending && !r.isRefetching && !s.value && !r.data) {
13936
13938
  if (n.value) return;
13937
13939
  if (u.value) {
13938
- E(u.value);
13940
+ D(u.value);
13939
13941
  return;
13940
13942
  }
13941
13943
  if (e.awaitExternalToken) return;
13942
- ne();
13944
+ te();
13943
13945
  return;
13944
13946
  }
13945
13947
  let i = r.data?.user;
13946
13948
  if (n.value) return;
13947
- if (r.data?.session?.hardExpiresAt && !T) {
13948
- if (T = !0, !u.value) {
13949
+ if (r.data?.session?.hardExpiresAt && !E) {
13950
+ if (E = !0, !u.value) {
13949
13951
  P();
13950
13952
  return;
13951
13953
  }
13952
- if (w !== u.value) {
13953
- E(u.value);
13954
+ if (T !== u.value) {
13955
+ D(u.value);
13954
13956
  return;
13955
13957
  }
13956
13958
  }
13957
13959
  let a = x();
13958
- i && !i.isAnonymous && a && u.value && u.value !== a && w !== u.value || i?.isAnonymous && u.value && w !== u.value ? E(u.value) : i?.isAnonymous && i.id && !Xg(e.cookieName) && Yg(i.id, e.cookieName);
13960
+ i && !i.isAnonymous && a && u.value && u.value !== a && T !== u.value || i?.isAnonymous && u.value && T !== u.value ? D(u.value) : i?.isAnonymous && i.id && !Xg(e.cookieName) && Yg(i.id, e.cookieName);
13959
13961
  }, { immediate: !0 }), I(n, () => {
13960
13962
  o.value.refetch();
13961
13963
  }), I(c, (e, t) => {
13962
- e ? (u.value = e, l.value && E(e)) : t && u.value === t && P();
13964
+ e ? (u.value = e, l.value && D(e)) : t && u.value === t && P();
13963
13965
  });
13964
- function D(t) {
13965
- t.status === 401 && (n.value ? o.value.refetch() : u.value ? E(u.value) : e.awaitExternalToken || ne());
13966
+ function O(t) {
13967
+ t.status === 401 && (n.value ? o.value.refetch() : u.value ? D(u.value) : e.awaitExternalToken || te());
13966
13968
  }
13967
- let O = U(() => o.value.data?.user?.id), re = W();
13968
- async function k(t, n, i) {
13969
+ let k = U(() => o.value.data?.user?.id), ne = W();
13970
+ async function re(t, n, i) {
13969
13971
  let o = await a.signIn.email({
13970
13972
  email: t,
13971
13973
  password: n,
13972
13974
  rememberMe: i
13973
13975
  }), s = o.data;
13974
- return s?.twoFactorRedirect ? (re.value = s.twoFactorToken ? {
13976
+ return s?.twoFactorRedirect ? (ne.value = s.twoFactorToken ? {
13975
13977
  token: s.twoFactorToken,
13976
13978
  methods: s.twoFactorMethods ?? []
13977
13979
  } : void 0, Zg(e.cookieName), o) : (o.data?.token && (r.value = o.data.token, Zg(e.cookieName)), o);
@@ -13999,20 +14001,20 @@ function p_(e = {}) {
13999
14001
  }
14000
14002
  };
14001
14003
  async function ae(e, t) {
14002
- let n = re.value;
14004
+ let n = ne.value;
14003
14005
  if (!n) return j;
14004
14006
  let i = await a.$fetch(A[e], {
14005
14007
  ...ie(n),
14006
14008
  body: { code: t }
14007
14009
  });
14008
- return i.data?.token && (r.value = i.data.token, re.value = void 0), i;
14010
+ return i.data?.token && (r.value = i.data.token, ne.value = void 0), i;
14009
14011
  }
14010
14012
  async function oe() {
14011
- let e = re.value;
14013
+ let e = ne.value;
14012
14014
  return e ? a.$fetch("/two-factor/send-otp", ie(e)) : j;
14013
14015
  }
14014
14016
  function M() {
14015
- re.value = void 0;
14017
+ ne.value = void 0;
14016
14018
  }
14017
14019
  function N(e) {
14018
14020
  return a.signUp.email(e);
@@ -14057,10 +14059,10 @@ function p_(e = {}) {
14057
14059
  isExternalAuth: d,
14058
14060
  token: r,
14059
14061
  headers: i,
14060
- onError: D,
14061
- userId: O,
14062
- signInWithEmail: k,
14063
- twoFactorChallenge: re,
14062
+ onError: O,
14063
+ userId: k,
14064
+ signInWithEmail: re,
14065
+ twoFactorChallenge: ne,
14064
14066
  verifyTwoFactor: ae,
14065
14067
  sendTwoFactorCode: oe,
14066
14068
  cancelTwoFactor: M,
@@ -14068,7 +14070,7 @@ function p_(e = {}) {
14068
14070
  requestPasswordReset: se,
14069
14071
  signInSocial: a.signIn.social,
14070
14072
  signInWithSocialPopup: ce,
14071
- signInWithExternalToken: E,
14073
+ signInWithExternalToken: D,
14072
14074
  signOut: P
14073
14075
  };
14074
14076
  }
@@ -14277,10 +14279,10 @@ function b_() {
14277
14279
  let e = null, t = (e) => {
14278
14280
  e.stopPropagation();
14279
14281
  };
14280
- k(() => {
14282
+ re(() => {
14281
14283
  let n = ue()?.proxy?.$el?.getRootNode();
14282
14284
  n instanceof ShadowRoot && (e = n, e.addEventListener("focusin", t));
14283
- }), re(() => {
14285
+ }), ne(() => {
14284
14286
  e &&= (e.removeEventListener("focusin", t), null);
14285
14287
  });
14286
14288
  }
@@ -14358,7 +14360,7 @@ var D_ = ["src"], O_ = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
14358
14360
  key: 0,
14359
14361
  src: e.imgSrc,
14360
14362
  alt: "avatar",
14361
- onError: n[0] ||= (t) => T(r)(e.imgSrc)
14363
+ onError: n[0] ||= (t) => E(r)(e.imgSrc)
14362
14364
  }, null, 40, D_)) : o.value ? (P(), Z(V, { key: 1 }, [Ne(N(o.value), 1)], 64)) : e.fallbackIcon ? (P(), L(s, {
14363
14365
  key: 2,
14364
14366
  name: e.fallbackIcon
@@ -14413,7 +14415,7 @@ var k_ = {
14413
14415
  }, v = () => {
14414
14416
  _(), a = requestAnimationFrame(v);
14415
14417
  };
14416
- return k(() => {
14418
+ return re(() => {
14417
14419
  let e = n.value;
14418
14420
  i = e?.getContext("webgl", { alpha: !0 }) ?? null;
14419
14421
  let t = m();
@@ -14440,7 +14442,7 @@ var k_ = {
14440
14442
  ]), i.STATIC_DRAW);
14441
14443
  let x = i.getAttribLocation(y, "a_position");
14442
14444
  i.enableVertexAttribArray(x), i.vertexAttribPointer(x, 2, i.FLOAT, !1, 0, 0), s = i.getUniformLocation(y, "u_time"), c = i.getUniformLocation(y, "u_resolution"), l = i.getUniformLocation(y, "u_center"), u = i.getUniformLocation(y, "u_half"), d = i.getUniformLocation(y, "u_spread"), i.uniform3f(i.getUniformLocation(y, "u_color"), ...t), o = new ResizeObserver(h), o.observe(e), h(), se(h), g() ? _(10) : v();
14443
- }), re(() => {
14445
+ }), ne(() => {
14444
14446
  cancelAnimationFrame(a), o?.disconnect();
14445
14447
  }), j(() => {
14446
14448
  let e = i;
@@ -14478,30 +14480,30 @@ var P_ = /* @__PURE__ */ J({
14478
14480
  };
14479
14481
  b.value = setTimeout(e, 1e3);
14480
14482
  } else y.value = 0;
14481
- }, { immediate: !0 }), re(() => {
14483
+ }, { immediate: !0 }), ne(() => {
14482
14484
  b.value && clearTimeout(b.value);
14483
14485
  }), (e, t) => {
14484
14486
  let n = Tn, r = Sn;
14485
14487
  return P(), L(r, {
14486
- modifiers: T(g) ? "warning" : "danger",
14488
+ modifiers: E(g) ? "warning" : "danger",
14487
14489
  class: "rounded-lg"
14488
14490
  }, ge({
14489
14491
  default: B(() => [Ne(N(v.value) + " ", 1)]),
14490
14492
  _: 2
14491
- }, [T(g) || !_.value ? {
14493
+ }, [E(g) || !_.value ? {
14492
14494
  name: "footer",
14493
- fn: B(() => [T(g) ? (P(), L(n, {
14495
+ fn: B(() => [E(g) ? (P(), L(n, {
14494
14496
  key: 0,
14495
14497
  icon: "ri:reset-right-line",
14496
14498
  modifiers: "action",
14497
14499
  class: "text-12",
14498
- label: T(i)("action.retryNow"),
14500
+ label: E(i)("action.retryNow"),
14499
14501
  onClick: t[0] ||= (t) => e.$emit("retry")
14500
14502
  }, null, 8, ["label"])) : _.value ? q("", !0) : (P(), L(n, {
14501
14503
  key: 1,
14502
14504
  icon: "reload",
14503
14505
  modifiers: "action",
14504
- label: T(i)("label.newChat"),
14506
+ label: E(i)("label.newChat"),
14505
14507
  onClick: t[1] ||= (t) => e.$emit("reset")
14506
14508
  }, null, 8, ["label"]))]),
14507
14509
  key: "0"
@@ -14533,11 +14535,11 @@ var F_ = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
14533
14535
  name: "ri:feedback-line",
14534
14536
  class: "text-16"
14535
14537
  }),
14536
- H("strong", L_, N(T(n)("action.feedback")), 1),
14538
+ H("strong", L_, N(E(n)("action.feedback")), 1),
14537
14539
  F(a, {
14538
14540
  icon: "ri:close-line",
14539
14541
  modifiers: "action-quiet-small",
14540
- title: T(n)("action.close"),
14542
+ title: E(n)("action.close"),
14541
14543
  class: "ml-auto",
14542
14544
  onClick: r[0] ||= ve((e) => t.$emit("close"), ["stop"])
14543
14545
  }, null, 8, ["title"])
@@ -14545,8 +14547,8 @@ var F_ = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
14545
14547
  default: B(() => [e.submitted ? (P(), Z("div", V_, [H("div", H_, [F(i, {
14546
14548
  name: "ri:check-line",
14547
14549
  class: "text-16 text-success"
14548
- }), H("div", null, [H("strong", U_, N(T(n)("message.feedbackSubmittedTitle")), 1), H("p", W_, N(T(n)("message.feedbackSubmittedMessage")), 1)])])])) : (P(), Z("div", R_, [F(T(s), {
14549
- modelValue: T(l),
14550
+ }), H("div", null, [H("strong", U_, N(E(n)("message.feedbackSubmittedTitle")), 1), H("p", W_, N(E(n)("message.feedbackSubmittedMessage")), 1)])])])) : (P(), Z("div", R_, [F(E(s), {
14551
+ modelValue: E(l),
14550
14552
  "onUpdate:modelValue": r[2] ||= (e) => Ce(l) ? l.value = e : null,
14551
14553
  onSubmit: u
14552
14554
  }, {
@@ -14555,12 +14557,12 @@ var F_ = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
14555
14557
  modifiers: "danger",
14556
14558
  class: "mb-sm",
14557
14559
  content: e.error
14558
- }, null, 8, ["content"])) : q("", !0), F(T(c), {
14560
+ }, null, 8, ["content"])) : q("", !0), F(E(c), {
14559
14561
  name: "comment",
14560
14562
  type: "textarea",
14561
14563
  rows: "3",
14562
- label: T(n)("label.comment"),
14563
- placeholder: T(n)("placeholder.comment"),
14564
+ label: E(n)("label.comment"),
14565
+ placeholder: E(n)("placeholder.comment"),
14564
14566
  modifiers: "compact no-label",
14565
14567
  class: "mb-0"
14566
14568
  }, null, 8, ["label", "placeholder"])]), H("div", B_, [F(d, null, {
@@ -14569,7 +14571,7 @@ var F_ = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
14569
14571
  modifiers: "action-quiet",
14570
14572
  icon: "ri:close-line",
14571
14573
  "icon-position": "right",
14572
- label: T(n)("action.close"),
14574
+ label: E(n)("action.close"),
14573
14575
  onClick: r[1] ||= (e) => t.$emit("close")
14574
14576
  }, null, 8, ["label"]), F(a, {
14575
14577
  type: "submit",
@@ -14578,7 +14580,7 @@ var F_ = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
14578
14580
  "icon-position": "right",
14579
14581
  loading: e.loading,
14580
14582
  disabled: e.loading,
14581
- label: T(n)("action.submit")
14583
+ label: E(n)("action.submit")
14582
14584
  }, null, 8, [
14583
14585
  "loading",
14584
14586
  "disabled",
@@ -14676,7 +14678,7 @@ var X_ = { class: "pk-chatbot-audio" }, Z_ = ["src"], Q_ = {
14676
14678
  }, null, 8, Z_), e.pending && !e.transcript ? (P(), Z("div", Q_, [H("div", $_, [F(c, {
14677
14679
  name: "loading-loop",
14678
14680
  class: "shrink-0"
14679
- }), H("span", ev, N(T(n)("messagePart.audioTranscribing")), 1)])])) : i.value ? (P(), Z("div", tv, [H("button", {
14681
+ }), H("span", ev, N(E(n)("messagePart.audioTranscribing")), 1)])])) : i.value ? (P(), Z("div", tv, [H("button", {
14680
14682
  type: "button",
14681
14683
  class: "pk-chatbot-audio__header pk-chatbot-audio__header--toggle",
14682
14684
  "aria-expanded": r.value,
@@ -14686,7 +14688,7 @@ var X_ = { class: "pk-chatbot-audio" }, Z_ = ["src"], Q_ = {
14686
14688
  name: "ri:file-text-line",
14687
14689
  class: "shrink-0"
14688
14690
  }),
14689
- H("span", rv, N(T(n)("messagePart.audioTranscript")), 1),
14691
+ H("span", rv, N(E(n)("messagePart.audioTranscript")), 1),
14690
14692
  a.value ? (P(), Z("span", iv, N(a.value), 1)) : q("", !0),
14691
14693
  F(c, {
14692
14694
  name: r.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
@@ -14742,7 +14744,7 @@ var lv = ["datetime"], uv = 6e4, dv = /* @__PURE__ */ J({
14742
14744
  }, h = () => {
14743
14745
  r.value = Date.now(), t.autoUpdate && !t.endDate && (i = setTimeout(h, m()));
14744
14746
  };
14745
- return k(() => {
14747
+ return re(() => {
14746
14748
  t.autoUpdate && !t.endDate && (i = setTimeout(h, m()));
14747
14749
  }), j(() => {
14748
14750
  i && clearTimeout(i);
@@ -14752,26 +14754,26 @@ var lv = ["datetime"], uv = 6e4, dv = /* @__PURE__ */ J({
14752
14754
  // ../../packages/components/src/chat/toolComponentMap.ts
14753
14755
  G();
14754
14756
  var fv = {
14755
- requestOAuthConnection: w(() => import("./_chunks/PkToolRequestOAuthConnection-DfjwyGwk.js")),
14756
- shareDocument: w(() => import("./_chunks/PkToolShareDocument-BE02IEEO.js")),
14757
- showArtifact: w(() => import("./_chunks/PkToolShowArtifact-B8l3G0ae.js")),
14758
- showCalendarEvent: w(() => import("./_chunks/PkToolShowCalendarEvent-DADlIzhY.js")),
14759
- showComparison: w(() => import("./_chunks/PkToolShowComparison-BuaD4RhV.js")),
14760
- showContactForm: w(() => import("./_chunks/PkToolShowContactForm-wNiHeOQM.js")),
14761
- showDiagram: w(() => import("./_chunks/PkToolShowDiagram-fTIiANVA.js")),
14762
- showEmail: w(() => import("./_chunks/PkToolShowEmail-e95g25Ih.js")),
14763
- showImageGallery: w(() => import("./_chunks/PkToolShowImageGallery-B9PlDrmn.js")),
14764
- showLocation: w(() => import("./_chunks/PkToolShowLocation-B1ltUJ-K.js")),
14765
- showMessage: w(() => import("./_chunks/PkToolShowMessage-BuuKuXDq.js")),
14766
- showForm: w(() => import("./_chunks/PkToolShowForm-jA0SkiQC.js")),
14767
- showMultipleChoice: w(() => import("./_chunks/PkToolShowForm-jA0SkiQC.js")),
14768
- showProductList: w(() => import("./_chunks/PkToolShowProductList-DRHSe2e7.js")),
14769
- showQrCode: w(() => import("./_chunks/PkToolShowQrCode-CtDI_uu7.js")),
14770
- showSources: w(() => import("./_chunks/PkToolShowSources-K-cNd52t.js")),
14771
- showSuggestedReply: w(() => import("./_chunks/PkToolShowSuggestedReply-BQHtnpb_.js")),
14772
- showVideo: w(() => import("./_chunks/PkToolShowVideo-B21JnsbY.js")),
14773
- showWeather: w(() => import("./_chunks/PkToolShowWeather-DT_TsutU.js")),
14774
- showWebPages: w(() => import("./_chunks/PkToolShowWebPages-CW1Kdg6J.js"))
14757
+ requestOAuthConnection: T(() => import("./_chunks/PkToolRequestOAuthConnection-CB5ziPOE.js")),
14758
+ shareDocument: T(() => import("./_chunks/PkToolShareDocument-BE02IEEO.js")),
14759
+ showArtifact: T(() => import("./_chunks/PkToolShowArtifact-B1J7a3o0.js")),
14760
+ showCalendarEvent: T(() => import("./_chunks/PkToolShowCalendarEvent-DADlIzhY.js")),
14761
+ showComparison: T(() => import("./_chunks/PkToolShowComparison-BuaD4RhV.js")),
14762
+ showContactForm: T(() => import("./_chunks/PkToolShowContactForm-DcNMM-j0.js")),
14763
+ showDiagram: T(() => import("./_chunks/PkToolShowDiagram-fTIiANVA.js")),
14764
+ showEmail: T(() => import("./_chunks/PkToolShowEmail-e95g25Ih.js")),
14765
+ showImageGallery: T(() => import("./_chunks/PkToolShowImageGallery-BisEror8.js")),
14766
+ showLocation: T(() => import("./_chunks/PkToolShowLocation-B1ltUJ-K.js")),
14767
+ showMessage: T(() => import("./_chunks/PkToolShowMessage-BuuKuXDq.js")),
14768
+ showForm: T(() => import("./_chunks/PkToolShowForm-CRa9HLZo.js")),
14769
+ showMultipleChoice: T(() => import("./_chunks/PkToolShowForm-CRa9HLZo.js")),
14770
+ showProductList: T(() => import("./_chunks/PkToolShowProductList-BmPdjUSS.js")),
14771
+ showQrCode: T(() => import("./_chunks/PkToolShowQrCode-CtDI_uu7.js")),
14772
+ showSources: T(() => import("./_chunks/PkToolShowSources-LQ0DMKM1.js")),
14773
+ showSuggestedReply: T(() => import("./_chunks/PkToolShowSuggestedReply-lzs6-CcI.js")),
14774
+ showVideo: T(() => import("./_chunks/PkToolShowVideo-BPYYn43O.js")),
14775
+ showWeather: T(() => import("./_chunks/PkToolShowWeather-DT_TsutU.js")),
14776
+ showWebPages: T(() => import("./_chunks/PkToolShowWebPages-CbE_bnHt.js"))
14775
14777
  };
14776
14778
  // ../../packages/components/src/chat/PkToolApprovalPreviewMessage.vue?vue&type=script&setup=true&lang.ts
14777
14779
  G(), Y();
@@ -14844,13 +14846,13 @@ var gv = {
14844
14846
  modifiers: "primary-small",
14845
14847
  disabled: !u.value,
14846
14848
  icon: "ri:check-line",
14847
- label: T(i)("action.proceed"),
14849
+ label: E(i)("action.proceed"),
14848
14850
  onClick: n[0] ||= ve((e) => r("respond", !0), ["stop"])
14849
14851
  }, null, 8, ["disabled", "label"]), F(a, {
14850
14852
  modifiers: "action-quiet-small",
14851
14853
  disabled: !u.value,
14852
14854
  icon: "ri:close-line",
14853
- label: T(i)("action.cancel"),
14855
+ label: E(i)("action.cancel"),
14854
14856
  onClick: n[1] ||= ve((e) => r("respond", !1), ["stop"])
14855
14857
  }, null, 8, ["disabled", "label"])]),
14856
14858
  _: 1
@@ -14882,7 +14884,7 @@ var vv = { class: "pk-host-call-confirm-card w-full bg-surface p-sm rounded-xl b
14882
14884
  let i = Tn, a = gn;
14883
14885
  return P(), Z("div", vv, [
14884
14886
  H("p", yv, N(e.question), 1),
14885
- e.details?.length ? (P(), Z("dl", bv, [(P(!0), Z(V, null, C(e.details, (e, t) => (P(), Z(V, { key: t }, [e.label ? (P(), Z("dt", xv, N(e.label), 1)) : q("", !0), H("dd", { class: de(["text-word-1 m-0 truncate", { "pk-host-call-confirm-card__alone": !e.label }]) }, N(e.value), 3)], 64))), 128))])) : q("", !0),
14887
+ e.details?.length ? (P(), Z("dl", bv, [(P(!0), Z(V, null, w(e.details, (e, t) => (P(), Z(V, { key: t }, [e.label ? (P(), Z("dt", xv, N(e.label), 1)) : q("", !0), H("dd", { class: de(["text-word-1 m-0 truncate", { "pk-host-call-confirm-card__alone": !e.label }]) }, N(e.value), 3)], 64))), 128))])) : q("", !0),
14886
14888
  F(a, null, {
14887
14889
  default: B(() => [F(i, {
14888
14890
  modifiers: "primary-small",
@@ -15004,7 +15006,7 @@ var Tv = {
15004
15006
  name: l.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
15005
15007
  class: "shrink-0"
15006
15008
  }, null, 8, ["name"])
15007
- ], 8, Ev), l.value && o.value ? (P(), Z("ul", kv, [(P(!0), Z(V, null, C(o.value, (e) => (P(), Z("li", { key: e.key }, [(P(), L(fe(e.full ? "button" : "div"), {
15009
+ ], 8, Ev), l.value && o.value ? (P(), Z("ul", kv, [(P(!0), Z(V, null, w(o.value, (e) => (P(), Z("li", { key: e.key }, [(P(), L(fe(e.full ? "button" : "div"), {
15008
15010
  type: e.full ? "button" : void 0,
15009
15011
  class: "pk-chatbot-step-payload__row",
15010
15012
  "aria-expanded": e.full ? u.has(e.key) : void 0,
@@ -15213,21 +15215,21 @@ var Iv = { class: "pk-chatbot-step-detail" }, Lv = {
15213
15215
  return (e, t) => {
15214
15216
  let r = Cn;
15215
15217
  return P(), Z("div", Iv, [
15216
- b.value.chips?.length ? (P(), Z("ul", Lv, [(P(!0), Z(V, null, C(b.value.chips, (e, t) => (P(), Z("li", {
15218
+ b.value.chips?.length ? (P(), Z("ul", Lv, [(P(!0), Z(V, null, w(b.value.chips, (e, t) => (P(), Z("li", {
15217
15219
  key: `${t}-${e}`,
15218
15220
  class: "pk-chatbot-step-detail__chip"
15219
15221
  }, [F(r, {
15220
15222
  name: "ri:search-line",
15221
15223
  class: "shrink-0"
15222
15224
  }), H("span", Rv, N(e), 1)]))), 128))])) : q("", !0),
15223
- (P(!0), Z(V, null, C(b.value.facts, (e, t) => (P(), Z("div", {
15225
+ (P(!0), Z(V, null, w(b.value.facts, (e, t) => (P(), Z("div", {
15224
15226
  key: `${t}-${e.text}`,
15225
15227
  class: "pk-chatbot-step-detail__fact"
15226
15228
  }, [F(r, {
15227
15229
  name: e.icon,
15228
15230
  class: "shrink-0"
15229
15231
  }, null, 8, ["name"]), H("span", null, N(e.text), 1)]))), 128)),
15230
- b.value.showEmpty ? (P(), Z("div", zv, N(T(n)("messagePart.stepNoResults")), 1)) : b.value.hits?.length ? (P(), Z("ul", Bv, [(P(!0), Z(V, null, C(b.value.hits, (e) => (P(), Z("li", { key: e.key }, [(P(), L(fe(e.body ? "button" : "div"), {
15232
+ b.value.showEmpty ? (P(), Z("div", zv, N(E(n)("messagePart.stepNoResults")), 1)) : b.value.hits?.length ? (P(), Z("ul", Bv, [(P(!0), Z(V, null, w(b.value.hits, (e) => (P(), Z("li", { key: e.key }, [(P(), L(fe(e.body ? "button" : "div"), {
15231
15233
  type: e.body ? "button" : void 0,
15232
15234
  class: "pk-chatbot-step-detail__hit-header",
15233
15235
  "aria-expanded": e.body ? x.has(e.key) : void 0,
@@ -15249,7 +15251,7 @@ var Iv = { class: "pk-chatbot-step-detail" }, Lv = {
15249
15251
  e.meta ? (P(), Z("span", Wv, N(e.meta), 1)) : q("", !0),
15250
15252
  e.relevance === void 0 ? q("", !0) : (P(), Z("span", Gv, [H("span", {
15251
15253
  class: "pk-chatbot-step-detail__relevance-fill",
15252
- style: ne({ width: `${Math.round(e.relevance * 100)}%` })
15254
+ style: te({ width: `${Math.round(e.relevance * 100)}%` })
15253
15255
  }, null, 4)])),
15254
15256
  e.body ? (P(), L(r, {
15255
15257
  key: 2,
@@ -15268,17 +15270,17 @@ var Iv = { class: "pk-chatbot-step-detail" }, Lv = {
15268
15270
  name: "ri:file-text-line",
15269
15271
  class: "shrink-0"
15270
15272
  }),
15271
- H("span", Yv, [H("span", Xv, N(b.value.passage.title ?? T(n)("messagePart.stepDocument")), 1)]),
15273
+ H("span", Yv, [H("span", Xv, N(b.value.passage.title ?? E(n)("messagePart.stepDocument")), 1)]),
15272
15274
  b.value.passage.meta ? (P(), Z("span", Zv, N(b.value.passage.meta), 1)) : q("", !0)
15273
15275
  ]), H("div", Qv, N(b.value.passage.content), 1)])) : q("", !0),
15274
- T(st)(b.value.rawInput) ? (P(), L(Fv, {
15276
+ E(st)(b.value.rawInput) ? (P(), L(Fv, {
15275
15277
  key: 4,
15276
- label: T(n)("messagePart.stepInput"),
15278
+ label: E(n)("messagePart.stepInput"),
15277
15279
  value: b.value.rawInput
15278
15280
  }, null, 8, ["label", "value"])) : q("", !0),
15279
- T(st)(b.value.rawOutput) ? (P(), L(Fv, {
15281
+ E(st)(b.value.rawOutput) ? (P(), L(Fv, {
15280
15282
  key: 5,
15281
- label: T(n)("messagePart.stepOutput"),
15283
+ label: E(n)("messagePart.stepOutput"),
15282
15284
  value: b.value.rawOutput
15283
15285
  }, null, 8, ["label", "value"])) : q("", !0)
15284
15286
  ]);
@@ -15314,7 +15316,7 @@ var ey = {
15314
15316
  isDark: { type: Boolean }
15315
15317
  },
15316
15318
  setup(e) {
15317
- let t = e, { t: n, n: r } = Le({ useScope: "global" }), i = te(bt, void 0), a = (e) => dt(e) === "output-error" && "errorText" in e && typeof e.errorText == "string" ? e.errorText : void 0, o = U(() => {
15319
+ let t = e, { t: n, n: r } = Le({ useScope: "global" }), i = ee(bt, void 0), a = (e) => dt(e) === "output-error" && "errorText" in e && typeof e.errorText == "string" ? e.errorText : void 0, o = U(() => {
15318
15320
  let e = t.message.parts, r = t.message.metadata?.partTimings, o = [];
15319
15321
  for (let [s, c] of e.entries()) {
15320
15322
  let l = Dt(c), u = yt(c), d = it(c) || !!u;
@@ -15360,13 +15362,13 @@ var ey = {
15360
15362
  name: "ri:route-line",
15361
15363
  class: "shrink-0"
15362
15364
  })),
15363
- H("span", ny, N(T(n)("messagePart.steps")), 1),
15364
- H("span", ry, [Ne(N(T(n)("messagePart.stepCount", o.value.length)) + " ", 1), c(s.value) ? (P(), Z(V, { key: 0 }, [Ne(" · " + N(c(s.value)), 1)], 64)) : q("", !0)]),
15365
+ H("span", ny, N(E(n)("messagePart.steps")), 1),
15366
+ H("span", ry, [Ne(N(E(n)("messagePart.stepCount", o.value.length)) + " ", 1), c(s.value) ? (P(), Z(V, { key: 0 }, [Ne(" · " + N(c(s.value)), 1)], 64)) : q("", !0)]),
15365
15367
  F(i, {
15366
15368
  name: p.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
15367
15369
  class: "pk-chatbot-steps__chevron shrink-0 ml-auto"
15368
15370
  }, null, 8, ["name"])
15369
- ], 8, ty), p.value ? (P(), Z("ol", iy, [(P(!0), Z(V, null, C(o.value, (t) => (P(), Z("li", {
15371
+ ], 8, ty), p.value ? (P(), Z("ol", iy, [(P(!0), Z(V, null, w(o.value, (t) => (P(), Z("li", {
15370
15372
  key: t.key,
15371
15373
  class: de(["pk-chatbot-steps__step", { "pk-chatbot-steps__step--active": t.isActive }])
15372
15374
  }, [(P(), L(fe(t.hasBody ? "button" : "div"), {
@@ -15401,7 +15403,7 @@ var ey = {
15401
15403
  key: 0,
15402
15404
  markdown: t.text,
15403
15405
  "is-dark": e.isDark,
15404
- "tail-length": T(ft),
15406
+ "tail-length": E(ft),
15405
15407
  "inner-class": "wysiwyg",
15406
15408
  class: "pk-chatbot-steps__step-content pk-chatbot-steps__step-content--scroll"
15407
15409
  }, null, 8, [
@@ -15412,16 +15414,16 @@ var ey = {
15412
15414
  markdown: t.text,
15413
15415
  "is-dark": e.isDark,
15414
15416
  class: "wysiwyg"
15415
- }, null, 8, ["markdown", "is-dark"])])) : t.error ? (P(), Z("div", uy, [H("span", dy, N(T(n)("messagePart.stepError")), 1), H("pre", null, N(t.error), 1)])) : t.hasRichDetail ? (P(), L($v, {
15417
+ }, null, 8, ["markdown", "is-dark"])])) : t.error ? (P(), Z("div", uy, [H("span", dy, N(E(n)("messagePart.stepError")), 1), H("pre", null, N(t.error), 1)])) : t.hasRichDetail ? (P(), L($v, {
15416
15418
  key: 3,
15417
15419
  part: t.part
15418
- }, null, 8, ["part"])) : (P(), Z(V, { key: 4 }, [T(st)(t.toolInput) ? (P(), L(Fv, {
15420
+ }, null, 8, ["part"])) : (P(), Z(V, { key: 4 }, [E(st)(t.toolInput) ? (P(), L(Fv, {
15419
15421
  key: 0,
15420
- label: T(n)("messagePart.stepInput"),
15422
+ label: E(n)("messagePart.stepInput"),
15421
15423
  value: t.toolInput
15422
- }, null, 8, ["label", "value"])) : q("", !0), T(st)(t.toolOutput) ? (P(), L(Fv, {
15424
+ }, null, 8, ["label", "value"])) : q("", !0), E(st)(t.toolOutput) ? (P(), L(Fv, {
15423
15425
  key: 1,
15424
- label: T(n)("messagePart.stepOutput"),
15426
+ label: E(n)("messagePart.stepOutput"),
15425
15427
  value: t.toolOutput
15426
15428
  }, null, 8, ["label", "value"])) : q("", !0)], 64))])) : q("", !0)], 2))), 128))])) : q("", !0)])) : q("", !0);
15427
15429
  };
@@ -15443,11 +15445,11 @@ var py = ["aria-label"], my = {
15443
15445
  let n = e, r = t, { t: i } = Le({ useScope: "global" }), a = U(() => n.items.length > 14);
15444
15446
  return (t, n) => (P(), Z("nav", {
15445
15447
  class: de(["pk-chatbot-outline", { "pk-chatbot-outline--dense": a.value }]),
15446
- "aria-label": T(i)("label.conversationOutline")
15447
- }, [H("div", my, [(P(!0), Z(V, null, C(e.items, (t) => (P(), Z("span", {
15448
+ "aria-label": E(i)("label.conversationOutline")
15449
+ }, [H("div", my, [(P(!0), Z(V, null, w(e.items, (t) => (P(), Z("span", {
15448
15450
  key: t.id,
15449
15451
  class: de(["pk-chatbot-outline__bar", { "pk-chatbot-outline__bar--active": t.id === e.activeId }])
15450
- }, null, 2))), 128))]), H("div", hy, [(P(!0), Z(V, null, C(e.items, (t) => (P(), Z("button", {
15452
+ }, null, 2))), 128))]), H("div", hy, [(P(!0), Z(V, null, w(e.items, (t) => (P(), Z("button", {
15451
15453
  key: t.id,
15452
15454
  type: "button",
15453
15455
  class: de(["pk-chatbot-outline__item", { "pk-chatbot-outline__item--active": t.id === e.activeId }]),
@@ -15478,26 +15480,26 @@ function by(e) {
15478
15480
  if (!t.value) return;
15479
15481
  let { scrollTop: e, scrollHeight: n, clientHeight: r } = t.value;
15480
15482
  u.value = n - r - e < vy, d || (e < g && s?.(), e > g && (u.value && (l.value = !1), c?.())), g = e;
15481
- }, ee = () => {
15483
+ }, C = () => {
15482
15484
  if (d || l.value || !t.value) return;
15483
15485
  let e = t.value, n = e.scrollHeight - e.clientHeight;
15484
15486
  n <= e.scrollTop || (u.value = !0, d = !0, e.scrollTop = n, requestAnimationFrame(() => {
15485
15487
  d = !1;
15486
15488
  }));
15487
- }, te = () => {
15488
- !f && t.value && (f = new MutationObserver(ee), f.observe(t.value, {
15489
+ }, ee = () => {
15490
+ !f && t.value && (f = new MutationObserver(C), f.observe(t.value, {
15489
15491
  childList: !0,
15490
15492
  subtree: !0,
15491
15493
  characterData: !0
15492
15494
  }));
15493
- }, C = () => {
15495
+ }, w = () => {
15494
15496
  f?.disconnect(), f = null;
15495
15497
  };
15496
15498
  I(n, (e, t) => {
15497
- e === "streaming" || e === "submitted" ? te() : (e !== "ready" || t !== "streaming") && C();
15499
+ e === "streaming" || e === "submitted" ? ee() : (e !== "ready" || t !== "streaming") && w();
15498
15500
  }), I(r, async () => {
15499
15501
  if (r() && i() !== "assistant") {
15500
- E(), l.value = !1, d = !0;
15502
+ D(), l.value = !1, d = !0;
15501
15503
  try {
15502
15504
  await se(), await o?.(), await se();
15503
15505
  } finally {
@@ -15505,23 +15507,23 @@ function by(e) {
15505
15507
  }
15506
15508
  }
15507
15509
  });
15508
- let w = null, T = () => {
15509
- t.value && (t.value.scrollHeight <= t.value.clientHeight || (t.value.scrollTop = t.value.scrollHeight, w && clearTimeout(w), w = setTimeout(E, 300)));
15510
- }, E = () => {
15511
- p?.disconnect(), p = null, m?.disconnect(), m = null, w &&= (clearTimeout(w), null);
15510
+ let T = null, E = () => {
15511
+ t.value && (t.value.scrollHeight <= t.value.clientHeight || (t.value.scrollTop = t.value.scrollHeight, T && clearTimeout(T), T = setTimeout(D, 300)));
15512
+ }, D = () => {
15513
+ p?.disconnect(), p = null, m?.disconnect(), m = null, T &&= (clearTimeout(T), null);
15512
15514
  };
15513
- return k(() => {
15515
+ return re(() => {
15514
15516
  if (!t.value) return;
15515
15517
  t.value.addEventListener("wheel", v, { passive: !0 }), t.value.addEventListener("touchstart", b, { passive: !0 }), t.value.addEventListener("touchmove", x, { passive: !0 });
15516
15518
  let e = n() === "submitted" || n() === "streaming";
15517
- e ? te() : (p = new ResizeObserver(T), p.observe(t.value), m = new MutationObserver(T), m.observe(t.value, {
15519
+ e ? ee() : (p = new ResizeObserver(E), p.observe(t.value), m = new MutationObserver(E), m.observe(t.value, {
15518
15520
  childList: !0,
15519
15521
  subtree: !0
15520
15522
  }));
15521
15523
  let r = a?.() ?? t.value.firstElementChild;
15522
- r && (h = new ResizeObserver(ee), h.observe(r)), e || T();
15523
- }), re(() => {
15524
- t.value?.removeEventListener("wheel", v), t.value?.removeEventListener("touchstart", b), t.value?.removeEventListener("touchmove", x), h?.disconnect(), h = null, C(), E();
15524
+ r && (h = new ResizeObserver(C), h.observe(r)), e || E();
15525
+ }), ne(() => {
15526
+ t.value?.removeEventListener("wheel", v), t.value?.removeEventListener("touchstart", b), t.value?.removeEventListener("touchmove", x), h?.disconnect(), h = null, w(), D();
15525
15527
  }), {
15526
15528
  handleScroll: S,
15527
15529
  scrollToBottom: _,
@@ -15635,7 +15637,7 @@ var Sy = ["aria-busy"], Cy = {
15635
15637
  "host-confirm-respond"
15636
15638
  ],
15637
15639
  setup(e, { emit: t }) {
15638
- let n = e, r = t, { t: i, te: a, d: o, n: s } = Le({ useScope: "global" }), c = te(bt, void 0), l = A(), u = (e, t) => {
15640
+ let n = e, r = t, { t: i, te: a, d: o, n: s } = Le({ useScope: "global" }), c = ee(bt, void 0), l = A(), u = (e, t) => {
15639
15641
  if (Ke(e)) {
15640
15642
  let n = e.toolCallId;
15641
15643
  n && r("confirm-respond", {
@@ -15674,33 +15676,33 @@ var Sy = ["aria-busy"], Cy = {
15674
15676
  I(y, async () => {
15675
15677
  await se(), S();
15676
15678
  });
15677
- let ee = () => {
15679
+ let C = () => {
15678
15680
  m(), S();
15679
- }, w = (e) => {
15681
+ }, T = (e) => {
15680
15682
  let t = d.value, n = y.value.findIndex((t) => t.id === e), r = x()[n];
15681
15683
  t && r && (g.value = !0, t.scrollTo({
15682
15684
  top: t.scrollTop + r.getBoundingClientRect().top - t.getBoundingClientRect().top - Number.parseFloat(getComputedStyle(t).paddingTop),
15683
15685
  behavior: "smooth"
15684
15686
  }));
15685
- }, E = U(() => n.status === "submitted" || n.status === "streaming" || n.hostWorking === !0), D = W(0), O = W(!1), re = !1, ie = he(), j = () => n.messages?.[n.messages.length - 1]?.role === "user" || E.value, ae = () => {
15686
- re = !1, O.value = !0, D.value = 0;
15687
+ }, D = U(() => n.status === "submitted" || n.status === "streaming" || n.hostWorking === !0), O = W(0), k = W(!1), ne = !1, ie = he(), j = () => n.messages?.[n.messages.length - 1]?.role === "user" || D.value, ae = () => {
15688
+ ne = !1, k.value = !0, O.value = 0;
15687
15689
  }, M = async () => {
15688
15690
  if (!n.messages?.length || n.disableHeightAdjustment) return;
15689
15691
  if (!j()) {
15690
- re && (await se(), d.value?.scrollHeight, j() || ae());
15692
+ ne && (await se(), d.value?.scrollHeight, j() || ae());
15691
15693
  return;
15692
15694
  }
15693
- if (re = !0, O.value = !1, await se(), !d.value) return;
15695
+ if (ne = !0, k.value = !1, await se(), !d.value) return;
15694
15696
  let { paddingTop: e, paddingBottom: t } = getComputedStyle(d.value), r = d.value.clientHeight - Number.parseFloat(e) - Number.parseFloat(t), i = f.value && Number.parseFloat(getComputedStyle(f.value).rowGap) || 0, a = x();
15695
15697
  ie.value = a[a.length - 1];
15696
15698
  let o = r - (ie.value?.clientHeight ?? 0) - i;
15697
- r > 0 && (D.value = Math.max(o, 0)), await se();
15699
+ r > 0 && (O.value = Math.max(o, 0)), await se();
15698
15700
  };
15699
15701
  I([() => n.messages?.length, () => n.messages?.[n.messages.length - 1]?.id], () => M()), un([d, ie], () => {
15700
- re && M();
15701
- }), k(() => {
15702
- (E.value || n.awaitingSpokenAnswer) && M();
15703
- }), I(E, (e) => {
15702
+ ne && M();
15703
+ }), re(() => {
15704
+ (D.value || n.awaitingSpokenAnswer) && M();
15705
+ }), I(D, (e) => {
15704
15706
  e || ae();
15705
15707
  });
15706
15708
  let ce = (e) => n.revisedAnswers?.some((t) => t.messageId === e), le = (e) => n.messageFeedbacks?.find((t) => t.messageId === e), ue = /* @__PURE__ */ new Set(["showContactForm"]), R = (e) => !n.interactive && ue.has(Ye(e)) ? { record: !0 } : {}, ge = (e, t) => !n.readonlyFeedback && Pe(e, t), z = (e) => n.readonlyFeedback ? le(e) : void 0, _e = (e) => z(e)?.vote, ye = (e) => {
@@ -15726,7 +15728,7 @@ var Sy = ["aria-busy"], Cy = {
15726
15728
  let e = /* @__PURE__ */ new Map();
15727
15729
  for (let t of n.messages ?? []) t.role === "assistant" && e.set(t.id, mt(xt($e(t.parts))));
15728
15730
  return e;
15729
- }), Ee = (e) => Te.value.get(e.id) ?? e.parts, De = U(() => n.status === "error"), Oe = U(() => n.awaitingSpokenAnswer === !0 && !E.value), ke = U(() => Oe.value && Ce.value?.role === "user" && !De.value), Ae = (e, t) => t(), je = U(() => {
15731
+ }), Ee = (e) => Te.value.get(e.id) ?? e.parts, De = U(() => n.status === "error"), Oe = U(() => n.awaitingSpokenAnswer === !0 && !D.value), ke = U(() => Oe.value && Ce.value?.role === "user" && !De.value), Ae = (e, t) => t(), je = U(() => {
15730
15732
  let e = we.value;
15731
15733
  return Ct(i, e, c?.value);
15732
15734
  }), Me = U(() => {
@@ -15735,7 +15737,7 @@ var Sy = ["aria-busy"], Cy = {
15735
15737
  }), J = (e) => n.messages?.findIndex((t) => t.id === e), Y = (e) => e === void 0 || !n.messages ? !1 : e === n.messages.length - 1, X = (e) => Y(e) && n.status === "ready" && !n.hostWorking && !!n.actions?.includes("regenerate"), Pe = (e, t) => (!Y(t) || n.status === "ready" && !n.hostWorking) && !!n.actions?.includes(e), Fe = (e) => {
15736
15738
  let t = e.parts[e.parts.length - 1];
15737
15739
  return Ue(t);
15738
- }, Ie = (e) => e.parts.some((e) => Dt(e) || it(e) || !!yt(e)), Re = (e) => !!n.showExtendedSteps && Ze(e) && Ie(e), ze = (e) => n.hostConfirmation !== void 0 && yt(e) !== void 0 && e.toolCallId === n.hostConfirmation.toolCallId, Be = (e, t) => E.value && Y(e) && yt(t)?.state === "input-available", Ve = (e, t, n, r) => {
15740
+ }, Ie = (e) => e.parts.some((e) => Dt(e) || it(e) || !!yt(e)), Re = (e) => !!n.showExtendedSteps && Ze(e) && Ie(e), ze = (e) => n.hostConfirmation !== void 0 && yt(e) !== void 0 && e.toolCallId === n.hostConfirmation.toolCallId, Be = (e, t) => D.value && Y(e) && yt(t)?.state === "input-available", Ve = (e, t, n, r) => {
15739
15741
  if (!yt(n) || Re(e)) return !1;
15740
15742
  let i = Be(t, n);
15741
15743
  return i && r === Ee(e).length - 1 ? !1 : i || wt(n) || !Xe(e);
@@ -15770,49 +15772,49 @@ var Sy = ["aria-busy"], Cy = {
15770
15772
  ref_key: "scrollEl",
15771
15773
  ref: d,
15772
15774
  class: de(["pk-chatbot-messages scrollbar-thin", {
15773
- "pk-chatbot-messages--settling": O.value,
15775
+ "pk-chatbot-messages--settling": k.value,
15774
15776
  "pk-chatbot-messages--parent-scrolls": e.parentScrolls
15775
15777
  }]),
15776
15778
  role: "log",
15777
15779
  "aria-live": "polite",
15778
15780
  "aria-relevant": "additions text",
15779
- "aria-busy": E.value,
15780
- style: ne({
15781
+ "aria-busy": D.value,
15782
+ style: te({
15781
15783
  "--chatbot-main-color": e.mainColor,
15782
15784
  "--chatbot-contrast-color": p.value
15783
15785
  }),
15784
- onScroll: ee
15786
+ onScroll: C
15785
15787
  }, [
15786
15788
  e.showScrollToBottom && y.value.length > 1 ? (P(), Z("div", Cy, [F(_y, {
15787
15789
  items: y.value,
15788
15790
  "active-id": b.value,
15789
- onSelect: w
15791
+ onSelect: T
15790
15792
  }, null, 8, ["items", "active-id"])])) : q("", !0),
15791
15793
  H("div", {
15792
15794
  ref_key: "wrapperEl",
15793
15795
  ref: f,
15794
15796
  class: "pk-chatbot-messages__wrapper"
15795
15797
  }, [
15796
- (P(!0), Z(V, null, C(e.messages, (d, f) => (P(), Z(V, { key: d.id }, [
15797
- nt(d) && pt(f) ? (P(), Z("div", wy, [H("span", Ty, N(T(o)(pt(f), "short")), 1)])) : q("", !0),
15798
+ (P(!0), Z(V, null, w(e.messages, (d, f) => (P(), Z(V, { key: d.id }, [
15799
+ nt(d) && pt(f) ? (P(), Z("div", wy, [H("span", Ty, N(E(o)(pt(f), "short")), 1)])) : q("", !0),
15798
15800
  ht.value.quietRuns.has(d.id) ? (P(), Z("div", Ey, [F(m, {
15799
15801
  name: "ri:alarm-line",
15800
15802
  class: "shrink-0"
15801
- }), H("span", null, N(T(i)("label.wakeupQuietRun", {
15803
+ }), H("span", null, N(E(i)("label.wakeupQuietRun", {
15802
15804
  count: ht.value.quietRuns.get(d.id).count,
15803
- time: T(o)(ht.value.quietRuns.get(d.id).lastAt ?? Date.now(), "time")
15804
- }, ht.value.quietRuns.get(d.id).count)), 1)])) : T(li)(d) && !ht.value.hidden.has(d.id) && !e.showAllMessageParts ? (P(), Z("div", {
15805
+ time: E(o)(ht.value.quietRuns.get(d.id).lastAt ?? Date.now(), "time")
15806
+ }, ht.value.quietRuns.get(d.id).count)), 1)])) : E(li)(d) && !ht.value.hidden.has(d.id) && !e.showAllMessageParts ? (P(), Z("div", {
15805
15807
  key: 2,
15806
15808
  class: "pk-chatbot-wakeup",
15807
15809
  title: d.metadata?.wakeup?.reason
15808
15810
  }, [F(m, {
15809
15811
  name: "ri:alarm-line",
15810
15812
  class: "shrink-0"
15811
- }), H("span", null, [Ne(N(T(i)("label.wakeupCheck")) + " ", 1), d.metadata?.createdAt ? (P(), Z(V, { key: 0 }, [Ne(" · " + N(T(o)(d.metadata.createdAt, "time")), 1)], 64)) : q("", !0)])], 8, Dy)) : q("", !0),
15812
- (!T(li)(d) || e.showAllMessageParts) && (!ht.value.hidden.has(d.id) || E.value && Y(f)) && (d.parts.length || Y(f) && E.value && Ze(d)) ? (P(), Z("div", {
15813
+ }), H("span", null, [Ne(N(E(i)("label.wakeupCheck")) + " ", 1), d.metadata?.createdAt ? (P(), Z(V, { key: 0 }, [Ne(" · " + N(E(o)(d.metadata.createdAt, "time")), 1)], 64)) : q("", !0)])], 8, Dy)) : q("", !0),
15814
+ (!E(li)(d) || e.showAllMessageParts) && (!ht.value.hidden.has(d.id) || D.value && Y(f)) && (d.parts.length || Y(f) && D.value && Ze(d)) ? (P(), Z("div", {
15813
15815
  key: 3,
15814
- class: de(["pk-chatbot-message", [`pk-chatbot-message--${d.role}`, { "pk-chatbot-message--loading": E.value && Y(f) && Ze(d) }]]),
15815
- style: ne({ minHeight: Y(f) && Ze(d) && !De.value ? `${D.value}px` : void 0 })
15816
+ class: de(["pk-chatbot-message", [`pk-chatbot-message--${d.role}`, { "pk-chatbot-message--loading": D.value && Y(f) && Ze(d) }]]),
15817
+ style: te({ minHeight: Y(f) && Ze(d) && !De.value ? `${O.value}px` : void 0 })
15816
15818
  }, [
15817
15819
  F(K, {
15818
15820
  appear: "",
@@ -15821,7 +15823,7 @@ var Sy = ["aria-busy"], Cy = {
15821
15823
  default: B(() => [Re(d) ? (P(), L(fy, {
15822
15824
  key: 0,
15823
15825
  message: d,
15824
- "is-streaming": E.value && Y(f),
15826
+ "is-streaming": D.value && Y(f),
15825
15827
  "has-content": Je(d),
15826
15828
  "is-dark": e.isDark
15827
15829
  }, null, 8, [
@@ -15832,7 +15834,7 @@ var Sy = ["aria-busy"], Cy = {
15832
15834
  ])) : q("", !0)]),
15833
15835
  _: 2
15834
15836
  }, 1024),
15835
- (P(!0), Z(V, null, C(Ee(d), (o, s) => (P(), Z(V, { key: T(ct)(o, s) }, [T(Ue)(o) && o.text.trim() ? (P(), L(K, {
15837
+ (P(!0), Z(V, null, w(Ee(d), (o, s) => (P(), Z(V, { key: E(ct)(o, s) }, [E(Ue)(o) && o.text.trim() ? (P(), L(K, {
15836
15838
  key: 0,
15837
15839
  appear: "",
15838
15840
  name: "pk-chatbot-part"
@@ -15841,7 +15843,7 @@ var Sy = ["aria-busy"], Cy = {
15841
15843
  message: d,
15842
15844
  part: o,
15843
15845
  index: f,
15844
- isLoading: E.value
15846
+ isLoading: D.value
15845
15847
  }), () => [Ze(d) ? (P(), L(St, {
15846
15848
  key: 0,
15847
15849
  class: "wysiwyg",
@@ -15861,16 +15863,16 @@ var Sy = ["aria-busy"], Cy = {
15861
15863
  name: _e(d.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
15862
15864
  }, null, 8, ["name"]))], 10, ky)) : q("", !0)])]),
15863
15865
  _: 2
15864
- }, 1024)) : T(tt)(o) ? (P(), L(K, {
15866
+ }, 1024)) : E(tt)(o) ? (P(), L(K, {
15865
15867
  key: 1,
15866
15868
  appear: "",
15867
15869
  name: "pk-chatbot-part"
15868
15870
  }, {
15869
- default: B(() => [T(jt)(o.filename, o.mediaType) ? (P(), Z("div", jy, [F(Pn, {
15871
+ default: B(() => [E(jt)(o.filename, o.mediaType) ? (P(), Z("div", jy, [F(Pn, {
15870
15872
  "media-type": o.mediaType,
15871
15873
  url: o.url,
15872
15874
  filename: o.filename,
15873
- size: T(Qe)(o)?.bytesCount
15875
+ size: E(Qe)(o)?.bytesCount
15874
15876
  }, null, 8, [
15875
15877
  "media-type",
15876
15878
  "url",
@@ -15878,7 +15880,7 @@ var Sy = ["aria-busy"], Cy = {
15878
15880
  "size"
15879
15881
  ]), F(cv, {
15880
15882
  url: o.url,
15881
- transcript: T(et)(o),
15883
+ transcript: E(et)(o),
15882
15884
  pending: e.status === "submitted" && Y(f)
15883
15885
  }, null, 8, [
15884
15886
  "url",
@@ -15889,7 +15891,7 @@ var Sy = ["aria-busy"], Cy = {
15889
15891
  "media-type": o.mediaType,
15890
15892
  url: o.url,
15891
15893
  filename: o.filename,
15892
- size: T(Qe)(o)?.bytesCount
15894
+ size: E(Qe)(o)?.bytesCount
15893
15895
  }, null, 8, [
15894
15896
  "media-type",
15895
15897
  "url",
@@ -15897,7 +15899,7 @@ var Sy = ["aria-busy"], Cy = {
15897
15899
  "size"
15898
15900
  ]))]),
15899
15901
  _: 2
15900
- }, 1024)) : T(We)(o) && !T(rt)(o) ? (P(), L(K, {
15902
+ }, 1024)) : E(We)(o) && !E(rt)(o) ? (P(), L(K, {
15901
15903
  key: 2,
15902
15904
  appear: "",
15903
15905
  name: "pk-chatbot-part"
@@ -15905,7 +15907,7 @@ var Sy = ["aria-busy"], Cy = {
15905
15907
  default: B(() => [(P(), L(_v, {
15906
15908
  key: `approval-${s}`,
15907
15909
  part: o,
15908
- actionable: e.interactive === !0 && (T(Ke)(o) || Y(f)),
15910
+ actionable: e.interactive === !0 && (E(Ke)(o) || Y(f)),
15909
15911
  "call-verdict": e.confirmVerdictsOnCall?.get(o.toolCallId ?? ""),
15910
15912
  onRespond: (e) => u(o, e)
15911
15913
  }, null, 8, [
@@ -15921,7 +15923,7 @@ var Sy = ["aria-busy"], Cy = {
15921
15923
  name: "pk-chatbot-part"
15922
15924
  }, {
15923
15925
  default: B(() => [F(Sv, {
15924
- question: e.hostConfirmation?.question ?? T(i)("toolApproval.hostCall", { name: T(Ct)(T(i), o) }),
15926
+ question: e.hostConfirmation?.question ?? E(i)("toolApproval.hostCall", { name: E(Ct)(E(i), o) }),
15925
15927
  details: e.hostConfirmation?.details,
15926
15928
  onRespond: n[0] ||= (e) => r("host-confirm-respond", e)
15927
15929
  }, null, 8, ["question", "details"])]),
@@ -15933,10 +15935,10 @@ var Sy = ["aria-busy"], Cy = {
15933
15935
  }, {
15934
15936
  default: B(() => [H("div", My, [
15935
15937
  F(m, {
15936
- name: Be(f, o) ? "loading-loop" : T(gt)(o) ?? "ri:apps-line",
15938
+ name: Be(f, o) ? "loading-loop" : E(gt)(o) ?? "ri:apps-line",
15937
15939
  class: "shrink-0"
15938
15940
  }, null, 8, ["name"]),
15939
- H("span", Ny, N(T(Ct)(T(i), o, T(c))), 1),
15941
+ H("span", Ny, N(E(Ct)(E(i), o, E(c))), 1),
15940
15942
  Ge(f, o) ? (P(), Z("span", Py, " · " + N(Ge(f, o)), 1)) : q("", !0)
15941
15943
  ])]),
15942
15944
  _: 2
@@ -15945,21 +15947,21 @@ var Sy = ["aria-busy"], Cy = {
15945
15947
  appear: "",
15946
15948
  name: "pk-chatbot-part"
15947
15949
  }, {
15948
- default: B(() => [!T(l)[o.type] && T(fv)[T(Ye)(o)] ? (P(), L(fe(T(fv)[T(Ye)(o)]), oe({
15949
- key: `component-${s}-${T(dt)(o)}`,
15950
+ default: B(() => [!E(l)[o.type] && E(fv)[E(Ye)(o)] ? (P(), L(fe(E(fv)[E(Ye)(o)]), oe({
15951
+ key: `component-${s}-${E(dt)(o)}`,
15950
15952
  part: o
15951
15953
  }, { ref_for: !0 }, R(o)), null, 16, ["part"])) : pe(t.$slots, o.type, oe({ ref_for: !0 }, {
15952
15954
  message: d,
15953
15955
  part: o,
15954
15956
  index: f,
15955
- isLoading: E.value
15956
- }), () => [e.showAllMessageParts ? (P(), Z("div", Fy, [H("div", Iy, [T(gt)(o) ? (P(), L(m, {
15957
+ isLoading: D.value
15958
+ }), () => [e.showAllMessageParts ? (P(), Z("div", Fy, [H("div", Iy, [E(gt)(o) ? (P(), L(m, {
15957
15959
  key: 0,
15958
- name: T(gt)(o),
15960
+ name: E(gt)(o),
15959
15961
  class: "shrink-0"
15960
- }, null, 8, ["name"])) : q("", !0), H("span", Ly, N(T(ut)(o, {
15961
- t: T(i),
15962
- te: T(a)
15962
+ }, null, 8, ["name"])) : q("", !0), H("span", Ly, N(E(ut)(o, {
15963
+ t: E(i),
15964
+ te: E(a)
15963
15965
  })), 1)])])) : q("", !0)], void 0, 1)]),
15964
15966
  _: 2
15965
15967
  }, 1024)) : q("", !0), F(K, { mode: "out-in" }, {
@@ -15973,7 +15975,7 @@ var Sy = ["aria-busy"], Cy = {
15973
15975
  name: "fade-in",
15974
15976
  mode: "out-in"
15975
15977
  }, {
15976
- default: B(() => [E.value && Y(f) && !Fe(d) && !e.hostConfirmation && Ze(d) && (!Re(d) || Je(d)) ? (P(), Z("div", {
15978
+ default: B(() => [D.value && Y(f) && !Fe(d) && !e.hostConfirmation && Ze(d) && (!Re(d) || Je(d)) ? (P(), Z("div", {
15977
15979
  key: `loading-info-${d.id}`,
15978
15980
  class: "pk-chatbot-message__loading-info"
15979
15981
  }, [H("div", Ry, [
@@ -16004,7 +16006,7 @@ var Sy = ["aria-busy"], Cy = {
16004
16006
  key: 0,
16005
16007
  markdown: we.value.text,
16006
16008
  "is-dark": e.isDark,
16007
- "tail-length": T(ft),
16009
+ "tail-length": E(ft),
16008
16010
  "inner-class": "wysiwyg",
16009
16011
  class: "border border-surface-3 rounded-md p-4 mt-8 bg-surface-1 max-h-64 text-12 w-full"
16010
16012
  }, null, 8, [
@@ -16028,8 +16030,8 @@ var Sy = ["aria-busy"], Cy = {
16028
16030
  key: 0,
16029
16031
  icon: "ri:reset-right-line",
16030
16032
  modifiers: "action-quiet-small",
16031
- title: T(i)("action.regenerate"),
16032
- "aria-label": T(i)("action.regenerate"),
16033
+ title: E(i)("action.regenerate"),
16034
+ "aria-label": E(i)("action.regenerate"),
16033
16035
  onClick: n[1] ||= ve((e) => t.$emit("regenerate"), ["stop"])
16034
16036
  }, null, 8, ["title", "aria-label"])) : q("", !0)]),
16035
16037
  _: 2
@@ -16038,8 +16040,8 @@ var Sy = ["aria-busy"], Cy = {
16038
16040
  default: B(() => [Pe("show-info", f) ? (P(), L(h, {
16039
16041
  key: 0,
16040
16042
  icon: "ri:information-line",
16041
- title: T(i)("action.getMoreInfo"),
16042
- "aria-label": T(i)("action.getMoreInfo"),
16043
+ title: E(i)("action.getMoreInfo"),
16044
+ "aria-label": E(i)("action.getMoreInfo"),
16043
16045
  modifiers: "action-quiet-small",
16044
16046
  onClick: ve((e) => t.$emit("show-info", d), ["stop"])
16045
16047
  }, null, 8, [
@@ -16053,8 +16055,8 @@ var Sy = ["aria-busy"], Cy = {
16053
16055
  default: B(() => [Pe("revise", f) ? (P(), L(h, {
16054
16056
  key: 0,
16055
16057
  icon: ce(d.id) ? "ri:file-edit-fill" : "ri:file-edit-line",
16056
- title: ce(d.id) ? T(i)("action.editRevise") : T(i)("action.createRevise"),
16057
- "aria-label": ce(d.id) ? T(i)("action.editRevise") : T(i)("action.createRevise"),
16058
+ title: ce(d.id) ? E(i)("action.editRevise") : E(i)("action.createRevise"),
16059
+ "aria-label": ce(d.id) ? E(i)("action.editRevise") : E(i)("action.createRevise"),
16058
16060
  modifiers: "action-quiet-small",
16059
16061
  class: de({ "text-brand-graphic": ce(d.id) }),
16060
16062
  onClick: ve((e) => t.$emit("revise", d), ["stop"])
@@ -16071,8 +16073,8 @@ var Sy = ["aria-busy"], Cy = {
16071
16073
  default: B(() => [ge("upvote", f) ? (P(), L(h, {
16072
16074
  key: 0,
16073
16075
  icon: le(d.id)?.vote === "upvote" ? "ri:thumb-up-fill" : "ri:thumb-up-line",
16074
- title: T(i)("action.upvote"),
16075
- "aria-label": T(i)("action.upvote"),
16076
+ title: E(i)("action.upvote"),
16077
+ "aria-label": E(i)("action.upvote"),
16076
16078
  modifiers: "action-quiet-small",
16077
16079
  onClick: ve((e) => t.$emit("upvote", d), ["stop"])
16078
16080
  }, null, 8, [
@@ -16087,8 +16089,8 @@ var Sy = ["aria-busy"], Cy = {
16087
16089
  default: B(() => [ge("downvote", f) ? (P(), L(h, {
16088
16090
  key: 0,
16089
16091
  icon: le(d.id)?.vote === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-down-line",
16090
- title: T(i)("action.downvote"),
16091
- "aria-label": T(i)("action.downvote"),
16092
+ title: E(i)("action.downvote"),
16093
+ "aria-label": E(i)("action.downvote"),
16092
16094
  modifiers: "action-quiet-small",
16093
16095
  onClick: ve((e) => t.$emit("downvote", d), ["stop"])
16094
16096
  }, null, 8, [
@@ -16103,8 +16105,8 @@ var Sy = ["aria-busy"], Cy = {
16103
16105
  default: B(() => [ge("feedback", f) ? (P(), L(h, {
16104
16106
  key: 0,
16105
16107
  icon: le(d.id)?.comment ? "ri:feedback-fill" : "ri:feedback-line",
16106
- title: T(i)("action.feedback"),
16107
- "aria-label": T(i)("action.feedback"),
16108
+ title: E(i)("action.feedback"),
16109
+ "aria-label": E(i)("action.feedback"),
16108
16110
  modifiers: "action-quiet-small",
16109
16111
  onClick: ve((e) => t.$emit("feedback", d), ["stop"])
16110
16112
  }, null, 8, [
@@ -16120,7 +16122,7 @@ var Sy = ["aria-busy"], Cy = {
16120
16122
  }, 1024),
16121
16123
  !e.showMessageDateTime && d.metadata?.createdAt && d.metadata?.completedAt ? (P(), Z("div", By, [H("time", {
16122
16124
  datetime: new Date(d.metadata.createdAt).toISOString(),
16123
- title: T(o)(new Date(d.metadata.createdAt), "date-time"),
16125
+ title: E(o)(new Date(d.metadata.createdAt), "date-time"),
16124
16126
  class: "flex items-center gap-4 min-w-0"
16125
16127
  }, [F(m, {
16126
16128
  name: "ri:time-line",
@@ -16131,13 +16133,13 @@ var Sy = ["aria-busy"], Cy = {
16131
16133
  }), H("span", Wy, N(Et(d)), 1)])) : q("", !0)])) : q("", !0),
16132
16134
  e.showMessageNumber ? (P(), Z("span", {
16133
16135
  key: 1,
16134
- title: T(i)("label.messageNumber", { n: _t.value[f] }),
16136
+ title: E(i)("label.messageNumber", { n: _t.value[f] }),
16135
16137
  class: "text-12 text-word-3 tabular-nums"
16136
16138
  }, " #" + N(_t.value[f]), 9, Gy)) : q("", !0),
16137
16139
  e.showMessageTokensCount && d.metadata?.totalTokens ? (P(), Z("span", Ky, [F(m, {
16138
16140
  name: "ri:ai-generate-2-line",
16139
16141
  class: "shrink-0"
16140
- }), H("span", qy, N(T(s)(d.metadata.totalTokens, "integer")) + " " + N(T(i)("label.tokens")), 1)])) : q("", !0),
16142
+ }), H("span", qy, N(E(s)(d.metadata.totalTokens, "integer")) + " " + N(E(i)("label.tokens")), 1)])) : q("", !0),
16141
16143
  e.showMessageDateTime && d.metadata?.createdAt ? (P(), Z("time", {
16142
16144
  key: 3,
16143
16145
  datetime: new Date(d.metadata?.createdAt).toISOString(),
@@ -16145,7 +16147,7 @@ var Sy = ["aria-busy"], Cy = {
16145
16147
  }, [F(m, {
16146
16148
  name: "ri:time-line",
16147
16149
  class: "shrink-0"
16148
- }), H("span", Yy, N(T(o)(new Date(d.metadata?.createdAt), "date-time")), 1)], 8, Jy)) : q("", !0),
16150
+ }), H("span", Yy, N(E(o)(new Date(d.metadata?.createdAt), "date-time")), 1)], 8, Jy)) : q("", !0),
16149
16151
  e.showMessageDateTime && d?.metadata?.completedAt && d?.metadata?.createdAt ? (P(), Z("div", Xy, [F(m, {
16150
16152
  name: "ri:hourglass-line",
16151
16153
  class: "shrink-0"
@@ -16185,11 +16187,11 @@ var Sy = ["aria-busy"], Cy = {
16185
16187
  default: B(() => [Oe.value ? (P(), Z("div", {
16186
16188
  key: 0,
16187
16189
  class: "pk-chatbot-message pk-chatbot-message--assistant pk-chatbot-message--loading",
16188
- style: ne({ minHeight: ke.value ? `${D.value}px` : void 0 })
16190
+ style: te({ minHeight: ke.value ? `${O.value}px` : void 0 })
16189
16191
  }, [H("div", Zy, [H("div", Qy, [F(m, {
16190
16192
  name: "loading-loop",
16191
16193
  class: "shrink-0"
16192
- }), H("span", $y, N(T(i)("label.answeringOnTheCall")), 1)])])], 4)) : q("", !0)]),
16194
+ }), H("span", $y, N(E(i)("label.answeringOnTheCall")), 1)])])], 4)) : q("", !0)]),
16193
16195
  _: 1
16194
16196
  }),
16195
16197
  F(K, {
@@ -16207,16 +16209,16 @@ var Sy = ["aria-busy"], Cy = {
16207
16209
  Ce.value?.role === "user" && !ke.value || De.value ? (P(), Z("div", {
16208
16210
  key: 0,
16209
16211
  class: "pk-chatbot-messages__spacer",
16210
- style: ne({ minHeight: `${D.value}px` })
16212
+ style: te({ minHeight: `${O.value}px` })
16211
16213
  }, null, 4)) : q("", !0)
16212
16214
  ], 512),
16213
16215
  F(K, { name: "pk-chatbot-messages-fab" }, {
16214
- default: B(() => [e.showScrollToBottom && (T(g) || !T(_)) ? (P(), Z("button", {
16216
+ default: B(() => [e.showScrollToBottom && (E(g) || !E(_)) ? (P(), Z("button", {
16215
16217
  key: 0,
16216
16218
  type: "button",
16217
16219
  class: "pk-chatbot-messages__scroll-to-bottom",
16218
- title: T(i)("action.scrollToBottom"),
16219
- "aria-label": T(i)("action.scrollToBottom"),
16220
+ title: E(i)("action.scrollToBottom"),
16221
+ "aria-label": E(i)("action.scrollToBottom"),
16220
16222
  onClick: v
16221
16223
  }, [F(m, { name: "ri:arrow-down-line" })], 8, eb)) : q("", !0)]),
16222
16224
  _: 1
@@ -16402,10 +16404,10 @@ var ub = { class: "pk-chatbot-input" }, db = {
16402
16404
  o.value && ob.update(o.value);
16403
16405
  }));
16404
16406
  });
16405
- let g = U(() => a.status === "streaming"), _ = U(() => a.status === "submitted"), v = U(() => g.value || _.value), y = ie(), b = U(() => u.value.length), x = U(() => a.maxMessageLength !== void 0 && b.value > a.maxMessageLength), S = U(() => r.value.some((e) => e.state === "uploading")), ee = U(() => v.value && !a.queueEnabled || S.value || x.value ? !1 : u.value.trim().length > 0), te = U(() => v.value && ee.value), w = "capture" in document.createElement("input"), E = U(() => {
16407
+ let g = U(() => a.status === "streaming"), _ = U(() => a.status === "submitted"), v = U(() => g.value || _.value), y = ie(), b = U(() => u.value.length), x = U(() => a.maxMessageLength !== void 0 && b.value > a.maxMessageLength), S = U(() => r.value.some((e) => e.state === "uploading")), C = U(() => v.value && !a.queueEnabled || S.value || x.value ? !1 : u.value.trim().length > 0), ee = U(() => v.value && C.value), T = "capture" in document.createElement("input"), D = U(() => {
16406
16408
  let e = a.fileUpload?.allowedMimeTypes ?? [];
16407
16409
  return [...e, ...zt(e)].join(",");
16408
- }), ne = U(() => (a.fileUpload?.allowedMimeTypes ?? []).filter((e) => e.startsWith("image/")).join(",")), D = U(() => w && ne.value.length > 0), A = () => {
16410
+ }), te = U(() => (a.fileUpload?.allowedMimeTypes ?? []).filter((e) => e.startsWith("image/")).join(",")), O = U(() => T && te.value.length > 0), A = () => {
16409
16411
  s.value?.click();
16410
16412
  }, j = () => {
16411
16413
  c.value?.click();
@@ -16449,13 +16451,13 @@ var ub = { class: "pk-chatbot-input" }, db = {
16449
16451
  }, R = () => {
16450
16452
  he(), i("stop-generation");
16451
16453
  }, ge = () => {
16452
- ee.value && (he(), p(), i("submit"), u.value = "", n.value = "", se(() => {
16454
+ C.value && (he(), p(), i("submit"), u.value = "", n.value = "", se(() => {
16453
16455
  o.value && (o.value.value = "", ob.update(o.value));
16454
16456
  }));
16455
16457
  }, z = (e) => {
16456
16458
  e.shiftKey || e.isComposing || e.keyCode === 229 || (e.preventDefault(), ge());
16457
16459
  };
16458
- k(() => {
16460
+ re(() => {
16459
16461
  o.value && ob(o.value);
16460
16462
  });
16461
16463
  let _e = 0;
@@ -16464,12 +16466,12 @@ var ub = { class: "pk-chatbot-input" }, db = {
16464
16466
  o.value && t !== _e && (_e = t, ob.update(o.value));
16465
16467
  }), I(() => a.placeholder, async () => {
16466
16468
  await se(), o.value && ob.update(o.value);
16467
- }), re(() => {
16469
+ }), ne(() => {
16468
16470
  f(), o.value && ob.destroy(o.value);
16469
16471
  for (let e of r.value) URL.revokeObjectURL(e.localUrl);
16470
16472
  }), (t, n) => {
16471
16473
  let a = Cn, d = Tn, f = bn, p = wn;
16472
- return P(), Z("div", ub, [fe.value.length ? (P(), Z("div", db, [(P(!0), Z(V, null, C(fe.value, (e) => (P(), Z("div", {
16474
+ return P(), Z("div", ub, [fe.value.length ? (P(), Z("div", db, [(P(!0), Z(V, null, w(fe.value, (e) => (P(), Z("div", {
16473
16475
  key: e.id,
16474
16476
  class: "pk-chatbot-input__notice-item"
16475
16477
  }, [
@@ -16503,7 +16505,7 @@ var ub = { class: "pk-chatbot-input" }, db = {
16503
16505
  ref: l,
16504
16506
  class: "pk-chatbot-input__form",
16505
16507
  onSubmit: ve(ge, ["prevent"])
16506
- }, [r.value.length ? (P(), Z("div", pb, [(P(!0), Z(V, null, C(r.value, (e) => (P(), L(Pn, {
16508
+ }, [r.value.length ? (P(), Z("div", pb, [(P(!0), Z(V, null, w(r.value, (e) => (P(), L(Pn, {
16507
16509
  key: e.id,
16508
16510
  "media-type": e.mediaSource?.mimeType ?? e.file.type,
16509
16511
  url: e.localUrl,
@@ -16525,7 +16527,7 @@ var ub = { class: "pk-chatbot-input" }, db = {
16525
16527
  "onRemove"
16526
16528
  ]))), 128))])) : q("", !0), H("div", mb, [
16527
16529
  pe(t.$slots, "prepend"),
16528
- e.fileUpload && e.fileUpload.enabled && (D.value || t.$slots["additional-actions"]) ? (P(), L(p, O(oe({ key: 0 }, {
16530
+ e.fileUpload && e.fileUpload.enabled && (O.value || t.$slots["additional-actions"]) ? (P(), L(p, k(oe({ key: 0 }, {
16529
16531
  placement: "top-start",
16530
16532
  modifiers: "menu",
16531
16533
  flip: !0,
@@ -16542,7 +16544,7 @@ var ub = { class: "pk-chatbot-input" }, db = {
16542
16544
  class: "pk-chat-button__icon"
16543
16545
  })], 16, hb)]),
16544
16546
  items: B(() => [
16545
- D.value ? (P(), L(f, {
16547
+ O.value ? (P(), L(f, {
16546
16548
  key: 0,
16547
16549
  disabled: v.value || e.attachmentLimitReached,
16548
16550
  onClick: j
@@ -16580,17 +16582,17 @@ var ub = { class: "pk-chatbot-input" }, db = {
16580
16582
  type: "file",
16581
16583
  hidden: "",
16582
16584
  multiple: "",
16583
- accept: E.value,
16585
+ accept: D.value,
16584
16586
  onChange: M
16585
16587
  }, null, 40, gb)) : q("", !0),
16586
- e.fileUpload && e.fileUpload.enabled && D.value ? (P(), Z("input", {
16588
+ e.fileUpload && e.fileUpload.enabled && O.value ? (P(), Z("input", {
16587
16589
  key: 3,
16588
16590
  ref_key: "cameraInputEl",
16589
16591
  ref: c,
16590
16592
  type: "file",
16591
16593
  capture: "environment",
16592
16594
  hidden: "",
16593
- accept: ne.value,
16595
+ accept: te.value,
16594
16596
  onChange: M
16595
16597
  }, null, 40, _b)) : q("", !0),
16596
16598
  H("div", vb, [H("textarea", {
@@ -16602,7 +16604,7 @@ var ub = { class: "pk-chatbot-input" }, db = {
16602
16604
  rows: "1",
16603
16605
  enterkeyhint: "send",
16604
16606
  "aria-label": t.$t("label.message"),
16605
- "aria-describedby": e.maxMessageLength ? T(y) : void 0,
16607
+ "aria-describedby": e.maxMessageLength ? E(y) : void 0,
16606
16608
  "aria-invalid": x.value || void 0,
16607
16609
  placeholder: e.placeholder,
16608
16610
  onInput: h,
@@ -16610,7 +16612,7 @@ var ub = { class: "pk-chatbot-input" }, db = {
16610
16612
  }, null, 40, yb)]),
16611
16613
  e.maxMessageLength ? (P(), Z("div", {
16612
16614
  key: 4,
16613
- id: T(y),
16615
+ id: E(y),
16614
16616
  class: de(["pk-chatbot-input__counter", { "pk-chatbot-input__counter--over": x.value }])
16615
16617
  }, [Ne(N(t.$n(b.value, "integer")) + "/", 1), H("span", xb, N(t.$n(e.maxMessageLength, "integer")), 1)], 10, bb)) : q("", !0),
16616
16618
  e.voiceEnabled && !g.value ? (P(), L(lb, {
@@ -16623,11 +16625,11 @@ var ub = { class: "pk-chatbot-input" }, db = {
16623
16625
  g.value ? (P(), L(lb, {
16624
16626
  key: 6,
16625
16627
  icon: "ri:stop-fill",
16626
- modifiers: te.value ? void 0 : "primary",
16628
+ modifiers: ee.value ? void 0 : "primary",
16627
16629
  title: t.$t("action.stop"),
16628
16630
  onClick: R
16629
16631
  }, null, 8, ["modifiers", "title"])) : q("", !0),
16630
- te.value ? (P(), L(lb, {
16632
+ ee.value ? (P(), L(lb, {
16631
16633
  key: 7,
16632
16634
  type: "submit",
16633
16635
  modifiers: "primary",
@@ -16639,7 +16641,7 @@ var ub = { class: "pk-chatbot-input" }, db = {
16639
16641
  modifiers: "primary",
16640
16642
  icon: _.value ? "loading-loop" : "ri:arrow-up-line",
16641
16643
  title: t.$t("action.submit"),
16642
- disabled: !ee.value
16644
+ disabled: !C.value
16643
16645
  }, null, 8, [
16644
16646
  "icon",
16645
16647
  "title",
@@ -16662,7 +16664,7 @@ var Cb = ["aria-label"], wb = { class: "pk-chatbot-queued__label" }, Tb = { clas
16662
16664
  return P(), Z("ol", {
16663
16665
  class: "pk-chatbot-queued",
16664
16666
  "aria-label": t.$t("label.queuedMessages")
16665
- }, [(P(!0), Z(V, null, C(e.messages, (e, r) => (P(), Z("li", {
16667
+ }, [(P(!0), Z(V, null, w(e.messages, (e, r) => (P(), Z("li", {
16666
16668
  key: `${r}:${e}`,
16667
16669
  class: "pk-chatbot-queued__item"
16668
16670
  }, [H("span", wb, N(t.$t("label.queued")), 1), H("div", Tb, [H("p", Eb, N(e), 1), F(a, { class: "pk-chatbot-queued__actions" }, {
@@ -16763,14 +16765,14 @@ var Ab = .18, jb = .35, Mb = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
16763
16765
  };
16764
16766
  return I(() => t.state, async (e) => {
16765
16767
  e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => Ab * 1.6), await se(), s()) : i === void 0 && (i = requestAnimationFrame(c));
16766
- }, { immediate: !0 }), re(l), (t, r) => (P(), Z("div", {
16768
+ }, { immediate: !0 }), ne(l), (t, r) => (P(), Z("div", {
16767
16769
  class: de(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
16768
16770
  "aria-hidden": "true"
16769
16771
  }, [H("div", {
16770
16772
  ref_key: "barsEl",
16771
16773
  ref: n,
16772
16774
  class: "pk-voice-orb__bars"
16773
- }, [(P(!0), Z(V, null, C(e.bars, (e) => (P(), Z("span", {
16775
+ }, [(P(!0), Z(V, null, w(e.bars, (e) => (P(), Z("span", {
16774
16776
  key: e,
16775
16777
  class: "pk-voice-orb__bar"
16776
16778
  }))), 128))], 512)], 2));
@@ -16836,29 +16838,29 @@ var Nb = {
16836
16838
  o.value ? (P(), Z("span", {
16837
16839
  key: 2,
16838
16840
  class: de(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
16839
- title: T(i)("hint.voiceRemaining"),
16841
+ title: E(i)("hint.voiceRemaining"),
16840
16842
  "aria-hidden": "true"
16841
16843
  }, N(o.value), 11, Lb)) : q("", !0),
16842
16844
  H("div", Rb, [e.error ? (P(), Z(V, { key: 0 }, [F(lb, {
16843
16845
  icon: "ri:refresh-line",
16844
- label: T(i)("action.retry"),
16846
+ label: E(i)("action.retry"),
16845
16847
  onClick: n[0] ||= (e) => r("retry")
16846
16848
  }, null, 8, ["label"]), e.live ? (P(), L(lb, {
16847
16849
  key: 0,
16848
16850
  icon: "ri:stop-circle-line",
16849
16851
  modifiers: "danger",
16850
- title: T(i)("action.hangUp"),
16851
- "aria-label": T(i)("action.hangUp"),
16852
+ title: E(i)("action.hangUp"),
16853
+ "aria-label": E(i)("action.hangUp"),
16852
16854
  onClick: n[1] ||= (e) => r("hang-up")
16853
16855
  }, null, 8, ["title", "aria-label"])) : (P(), L(lb, {
16854
16856
  key: 1,
16855
16857
  icon: "ri:close-line",
16856
- label: T(i)("action.close"),
16858
+ label: E(i)("action.close"),
16857
16859
  onClick: n[2] ||= (e) => r("dismiss")
16858
16860
  }, null, 8, ["label"]))], 64)) : (P(), Z(V, { key: 1 }, [F(lb, {
16859
16861
  icon: e.muted ? "ri:mic-off-line" : "ri:mic-line",
16860
- title: e.muted ? T(i)("action.unmute") : T(i)("action.mute"),
16861
- "aria-label": e.muted ? T(i)("action.unmute") : T(i)("action.mute"),
16862
+ title: e.muted ? E(i)("action.unmute") : E(i)("action.mute"),
16863
+ "aria-label": e.muted ? E(i)("action.unmute") : E(i)("action.mute"),
16862
16864
  "aria-pressed": e.muted,
16863
16865
  onClick: n[3] ||= (e) => r("toggle-mute")
16864
16866
  }, null, 8, [
@@ -16869,8 +16871,8 @@ var Nb = {
16869
16871
  ]), F(lb, {
16870
16872
  icon: "ri:stop-circle-line",
16871
16873
  modifiers: "danger",
16872
- title: T(i)("action.hangUp"),
16873
- "aria-label": T(i)("action.hangUp"),
16874
+ title: E(i)("action.hangUp"),
16875
+ "aria-label": E(i)("action.hangUp"),
16874
16876
  onClick: n[4] ||= (e) => r("hang-up")
16875
16877
  }, null, 8, ["title", "aria-label"])], 64))])
16876
16878
  ], 2);
@@ -16898,9 +16900,9 @@ var Bb = {
16898
16900
  name: "ri:alarm-line",
16899
16901
  class: "shrink-0"
16900
16902
  }),
16901
- H("span", Vb, [H("strong", null, N(T(r)("label.wakeupNext", { time: T(i)(new Date(e.pending.dueAt), "time") })), 1), H("span", Hb, N(e.pending.reason), 1)]),
16903
+ H("span", Vb, [H("strong", null, N(E(r)("label.wakeupNext", { time: E(i)(new Date(e.pending.dueAt), "time") })), 1), H("span", Hb, N(e.pending.reason), 1)]),
16902
16904
  F(s, {
16903
- label: T(r)("action.stop"),
16905
+ label: E(r)("action.stop"),
16904
16906
  modifiers: "action-quiet",
16905
16907
  loading: e.stopping,
16906
16908
  disabled: e.stopping,
@@ -17110,7 +17112,7 @@ function Yb(e) {
17110
17112
  let y = () => v();
17111
17113
  return document.addEventListener("visibilitychange", y), I(() => t.value?.wakeId, (e) => {
17112
17114
  clearInterval(_), _ = void 0, e && !i && (v(), _ = setInterval(v, Jb));
17113
- }), re(() => {
17115
+ }), ne(() => {
17114
17116
  i = !0, a(), clearInterval(_), document.removeEventListener("visibilitychange", y);
17115
17117
  }), {
17116
17118
  pendingWakeup: t,
@@ -17143,7 +17145,7 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17143
17145
  },
17144
17146
  emits: ["show-info", "revise"],
17145
17147
  setup(e, { emit: t }) {
17146
- let n = w(() => import("./_chunks/PkToolShowForm-jA0SkiQC.js")), r = w(() => import("./_chunks/PkToolShowContactForm-wNiHeOQM.js")), i = w(() => import("./_chunks/PkToolShowSuggestedReply-BQHtnpb_.js")), a = w(() => import("./_chunks/PkToolShowSources-K-cNd52t.js")), o = w(() => import("./_chunks/PkToolRequestGeolocation-B51_MHPQ.js")), s = w(() => import("./_chunks/PkToolRequestOAuthConnection-DfjwyGwk.js")), c = w(() => import("./_chunks/PkToolShowLocation-B1ltUJ-K.js")), l = w(() => import("./_chunks/PkToolShowDiagram-fTIiANVA.js")), u = w(() => import("./_chunks/PkToolEditedFile-VFnIlU4j.js")), d = w(() => import("./_chunks/PkToolShareDocument-BE02IEEO.js")), f = e, p = t, m = Mf(f.agentId), { agentInterface: h, agentFileUpload: g, agentType: _, agentVoice: v, actions: y, revisedAnswers: b, messages: x, chat: S, messageFeedbacks: ee, feedbackDialogMessage: te, isFeedbackSubmitting: C, isFeedbackSubmitted: E, feedbackSubmitError: ne, isLeadSubmitted: D, isLoadingSubmitLead: O, submitLeadError: k, input: A, inputMessagePlaceholder: ie, isConversationBlocked: j, baseUrl: ae, pendingAttachments: oe, isAttachmentLimitReached: M, fileLimitError: se, apiClient: ce, isDark: le, hostToolsPending: ue, pageNoticeLevel: fe, hostConfirmation: pe, agentPageAccess: he, hostStepTitles: R, canQueue: z, queuedMessages: _e, backgroundAnswers: ve } = pr(m);
17148
+ let n = T(() => import("./_chunks/PkToolShowForm-CRa9HLZo.js")), r = T(() => import("./_chunks/PkToolShowContactForm-DcNMM-j0.js")), i = T(() => import("./_chunks/PkToolShowSuggestedReply-lzs6-CcI.js")), a = T(() => import("./_chunks/PkToolShowSources-LQ0DMKM1.js")), o = T(() => import("./_chunks/PkToolRequestGeolocation-BantUie4.js")), s = T(() => import("./_chunks/PkToolRequestOAuthConnection-CB5ziPOE.js")), c = T(() => import("./_chunks/PkToolShowLocation-B1ltUJ-K.js")), l = T(() => import("./_chunks/PkToolShowDiagram-fTIiANVA.js")), u = T(() => import("./_chunks/PkToolEditedFile-DAMPjKIn.js")), d = T(() => import("./_chunks/PkToolShareDocument-BE02IEEO.js")), f = e, p = t, m = Mf(f.agentId), { agentInterface: h, agentFileUpload: g, agentType: _, agentVoice: v, actions: y, revisedAnswers: b, messages: x, chat: S, messageFeedbacks: C, feedbackDialogMessage: ee, isFeedbackSubmitting: w, isFeedbackSubmitted: D, feedbackSubmitError: te, isLeadSubmitted: O, isLoadingSubmitLead: k, submitLeadError: re, input: A, inputMessagePlaceholder: ie, isConversationBlocked: j, baseUrl: ae, pendingAttachments: oe, isAttachmentLimitReached: M, fileLimitError: se, apiClient: ce, isDark: le, hostToolsPending: ue, pageNoticeLevel: fe, hostConfirmation: pe, agentPageAccess: he, hostStepTitles: R, canQueue: z, queuedMessages: _e, backgroundAnswers: ve } = pr(m);
17147
17149
  Fe(bt, R);
17148
17150
  let ye = U(() => _.value === "reasoning" ? void 0 : g.value), V = (e) => ce.value.getMediaDownloadUrl(f.agentId, m.localChatId, e), { handleSubmit: be, stopGeneration: xe, regenerate: Se, onUpvote: G, onDownvote: we, onFeedback: Te, onFeedbackSubmit: Ee, onLeadSubmit: De, startNewChat: Oe, addToolOutput: ke, addToolApprovalResponse: Ae, handleFileSelect: je, clearFileLimitError: Me, refreshMessages: J, appendMessage: Y, closePageNotice: Ne, respondHostConfirmation: X, editQueuedMessage: Pe, removeQueuedMessage: Ie, openBackgroundAnswer: Re, dismissBackgroundAnswer: ze } = m, { t: Be } = Le({ useScope: "global" }), Ve = U(() => ue.value > 0), He = U(() => Ve.value && S.value.status === "ready" ? "streaming" : S.value.status), Ue = Dn(() => he.value?.notice), We = U(() => fe.value ? Ue.value || Be(`message.pageAccessNotice.${fe.value}`) : void 0), Ge = U(() => {
17149
17151
  let e = se.value;
@@ -17268,7 +17270,7 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17268
17270
  }, Rt = () => {
17269
17271
  tt.value = !tt.value, gt.setMuted(tt.value);
17270
17272
  };
17271
- re(() => {
17273
+ ne(() => {
17272
17274
  nt = !0, ut();
17273
17275
  });
17274
17276
  let { pendingWakeup: zt, isStopping: Bt, stop: Vt, spokenTurnStarted: Ht, spokenTurnsWritten: Ut, forgetSpokenTurns: Wt } = Yb({
@@ -17285,7 +17287,7 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17285
17287
  ref_key: "chatViewEl",
17286
17288
  ref: Ze,
17287
17289
  class: de(["pk-chatbot-view-chat", {
17288
- "pk-chatbot-view-chat--dragover": T(et) && ye.value?.enabled,
17290
+ "pk-chatbot-view-chat--dragover": E(et) && ye.value?.enabled,
17289
17291
  "pk-chatbot-view-chat--empty": Ye.value
17290
17292
  }])
17291
17293
  }, [
@@ -17295,9 +17297,9 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17295
17297
  }, {
17296
17298
  default: B(() => [Ye.value ? (P(), L(kb, {
17297
17299
  key: 0,
17298
- greeting: T(Xe),
17299
- logo: T(h)?.logo,
17300
- name: T(m).name
17300
+ greeting: E(Xe),
17301
+ logo: E(h)?.logo,
17302
+ name: E(m).name
17301
17303
  }, null, 8, [
17302
17304
  "greeting",
17303
17305
  "logo",
@@ -17306,47 +17308,47 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17306
17308
  key: 1,
17307
17309
  class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
17308
17310
  interactive: "",
17309
- messages: T(x),
17311
+ messages: E(x),
17310
17312
  "confirm-verdicts-on-call": jt.value,
17311
- status: T(S).status,
17312
- error: T(S).error,
17313
- "main-color": T(h)?.mainColor,
17314
- "text-color": T(h)?.textColor,
17315
- "revised-answers": T(b),
17316
- actions: T(y),
17317
- "message-feedbacks": T(ee),
17318
- "feedback-message-id": T(te)?.id,
17319
- "feedback-loading": T(C),
17320
- "feedback-submitted": T(E),
17321
- "feedback-error": T(ne),
17322
- "show-extended-steps": T(h)?.showExtendedSteps,
17313
+ status: E(S).status,
17314
+ error: E(S).error,
17315
+ "main-color": E(h)?.mainColor,
17316
+ "text-color": E(h)?.textColor,
17317
+ "revised-answers": E(b),
17318
+ actions: E(y),
17319
+ "message-feedbacks": E(C),
17320
+ "feedback-message-id": E(ee)?.id,
17321
+ "feedback-loading": E(w),
17322
+ "feedback-submitted": E(D),
17323
+ "feedback-error": E(te),
17324
+ "show-extended-steps": E(h)?.showExtendedSteps,
17323
17325
  "awaiting-spoken-answer": rt.value,
17324
17326
  "host-working": Ve.value,
17325
- "host-confirmation": T(pe),
17326
- "is-dark": T(le),
17327
+ "host-confirmation": E(pe),
17328
+ "is-dark": E(le),
17327
17329
  "show-scroll-to-bottom": e.modifier === "fullscreen",
17328
- onFeedbackSubmit: g[0] ||= (e) => T(Ee)(e),
17329
- onFeedbackClose: g[1] ||= (e) => te.value = void 0,
17330
- onRegenerate: T(Se),
17331
- onAutoRetry: T(Se),
17332
- onResetChat: T(Oe),
17330
+ onFeedbackSubmit: g[0] ||= (e) => E(Ee)(e),
17331
+ onFeedbackClose: g[1] ||= (e) => ee.value = void 0,
17332
+ onRegenerate: E(Se),
17333
+ onAutoRetry: E(Se),
17334
+ onResetChat: E(Oe),
17333
17335
  onShowInfo: g[2] ||= (e) => p("show-info", e),
17334
17336
  onRevise: g[3] ||= (e) => p("revise", e),
17335
- onUpvote: T(G),
17336
- onDownvote: T(we),
17337
- onFeedback: T(Te),
17338
- onApprovalRespond: T(Ae),
17337
+ onUpvote: E(G),
17338
+ onDownvote: E(we),
17339
+ onFeedback: E(Te),
17340
+ onApprovalRespond: E(Ae),
17339
17341
  onConfirmRespond: Pt,
17340
- onHostConfirmRespond: T(X)
17342
+ onHostConfirmRespond: E(X)
17341
17343
  }, {
17342
- "tool-showContactForm": B(({ part: e }) => [F(T(r), {
17344
+ "tool-showContactForm": B(({ part: e }) => [F(E(r), {
17343
17345
  part: e,
17344
- readonly: !T(ae),
17345
- submitted: T(D),
17346
- loading: T(O),
17347
- error: T(k),
17348
- "privacy-policy-notice": T(h)?.privacyPolicyNotice,
17349
- onSubmit: T(De)
17346
+ readonly: !E(ae),
17347
+ submitted: E(O),
17348
+ loading: E(k),
17349
+ error: E(re),
17350
+ "privacy-policy-notice": E(h)?.privacyPolicyNotice,
17351
+ onSubmit: E(De)
17350
17352
  }, null, 8, [
17351
17353
  "part",
17352
17354
  "readonly",
@@ -17356,17 +17358,17 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17356
17358
  "privacy-policy-notice",
17357
17359
  "onSubmit"
17358
17360
  ])]),
17359
- "tool-showSuggestedReply": B(({ part: e }) => [F(T(i), {
17361
+ "tool-showSuggestedReply": B(({ part: e }) => [F(E(i), {
17360
17362
  part: e,
17361
17363
  onSelect: (t) => Ft(e, t)
17362
17364
  }, null, 8, ["part", "onSelect"])]),
17363
- "tool-showSources": B(({ part: e }) => [F(T(a), {
17365
+ "tool-showSources": B(({ part: e }) => [F(E(a), {
17364
17366
  part: e,
17365
17367
  "on-expand-context": Qe,
17366
17368
  "on-download": $e
17367
17369
  }, null, 8, ["part"])]),
17368
17370
  "tool-showForm": B(({ part: e }) => [F(K, { mode: "out-in" }, {
17369
- default: B(() => [F(T(n), {
17371
+ default: B(() => [F(E(n), {
17370
17372
  part: e,
17371
17373
  answered: At(e),
17372
17374
  onSelect: (t) => Nt("showForm", e, t)
@@ -17378,7 +17380,7 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17378
17380
  _: 2
17379
17381
  }, 1024)]),
17380
17382
  "tool-showMultipleChoice": B(({ part: e }) => [F(K, { mode: "out-in" }, {
17381
- default: B(() => [F(T(n), {
17383
+ default: B(() => [F(E(n), {
17382
17384
  part: e,
17383
17385
  "allow-custom-answer": "",
17384
17386
  answered: At(e),
@@ -17390,11 +17392,11 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17390
17392
  ])]),
17391
17393
  _: 2
17392
17394
  }, 1024)]),
17393
- "tool-requestOAuthConnection": B(({ part: e }) => [F(T(s), {
17395
+ "tool-requestOAuthConnection": B(({ part: e }) => [F(E(s), {
17394
17396
  part: e,
17395
- "backend-url": T(ae),
17396
- "resolve-connection": (e) => T(ce).getOAuthAuthorizeUrl(f.agentId, e),
17397
- "check-connection": (e) => T(ce).getOAuthConnectionStatus(f.agentId, e),
17397
+ "backend-url": E(ae),
17398
+ "resolve-connection": (e) => E(ce).getOAuthAuthorizeUrl(f.agentId, e),
17399
+ "check-connection": (e) => E(ce).getOAuthConnectionStatus(f.agentId, e),
17398
17400
  onConnected: (t) => Lt(e, t)
17399
17401
  }, null, 8, [
17400
17402
  "part",
@@ -17403,10 +17405,10 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17403
17405
  "check-connection",
17404
17406
  "onConnected"
17405
17407
  ])]),
17406
- "tool-requestGeolocation": B(({ part: e }) => [F(T(o), {
17408
+ "tool-requestGeolocation": B(({ part: e }) => [F(E(o), {
17407
17409
  part: e,
17408
- "call-live": T(gt).isActive.value,
17409
- "reverse-geocode": (e, t) => T(ce).reverseGeocode(e, t),
17410
+ "call-live": E(gt).isActive.value,
17411
+ "reverse-geocode": (e, t) => E(ce).reverseGeocode(e, t),
17410
17412
  onResult: (t) => It(e, t)
17411
17413
  }, null, 8, [
17412
17414
  "part",
@@ -17414,33 +17416,33 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17414
17416
  "reverse-geocode",
17415
17417
  "onResult"
17416
17418
  ])]),
17417
- "tool-showLocation": B(({ part: e }) => [F(T(c), {
17419
+ "tool-showLocation": B(({ part: e }) => [F(E(c), {
17418
17420
  part: e,
17419
- "is-dark": T(le),
17420
- "main-color": T(h)?.mainColor,
17421
- "forward-geocode": (e, t) => T(ce).forwardGeocode(e, t)
17421
+ "is-dark": E(le),
17422
+ "main-color": E(h)?.mainColor,
17423
+ "forward-geocode": (e, t) => E(ce).forwardGeocode(e, t)
17422
17424
  }, null, 8, [
17423
17425
  "part",
17424
17426
  "is-dark",
17425
17427
  "main-color",
17426
17428
  "forward-geocode"
17427
17429
  ])]),
17428
- "tool-showDiagram": B(({ part: e }) => [F(T(l), {
17430
+ "tool-showDiagram": B(({ part: e }) => [F(E(l), {
17429
17431
  part: e,
17430
- "is-dark": T(le)
17432
+ "is-dark": E(le)
17431
17433
  }, null, 8, ["part", "is-dark"])]),
17432
- "tool-editSpreadsheet": B(({ part: e }) => [(P(), L(T(u), {
17433
- key: T(dt)(e),
17434
+ "tool-editSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
17435
+ key: E(dt)(e),
17434
17436
  part: e,
17435
17437
  "file-url": V
17436
17438
  }, null, 8, ["part"]))]),
17437
- "tool-editWordDocument": B(({ part: e }) => [(P(), L(T(u), {
17438
- key: T(dt)(e),
17439
+ "tool-editWordDocument": B(({ part: e }) => [(P(), L(E(u), {
17440
+ key: E(dt)(e),
17439
17441
  part: e,
17440
17442
  "file-url": V
17441
17443
  }, null, 8, ["part"]))]),
17442
- "tool-shareDocument": B(({ part: e }) => [(P(), L(T(d), {
17443
- key: T(dt)(e),
17444
+ "tool-shareDocument": B(({ part: e }) => [(P(), L(E(d), {
17445
+ key: E(dt)(e),
17444
17446
  part: e,
17445
17447
  "on-download": $e
17446
17448
  }, null, 8, ["part"]))]),
@@ -17448,11 +17450,11 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17448
17450
  }, 8, /* @__PURE__ */ "messages.confirm-verdicts-on-call.status.error.main-color.text-color.revised-answers.actions.message-feedbacks.feedback-message-id.feedback-loading.feedback-submitted.feedback-error.show-extended-steps.awaiting-spoken-answer.host-working.host-confirmation.is-dark.show-scroll-to-bottom.onRegenerate.onAutoRetry.onResetChat.onUpvote.onDownvote.onFeedback.onApprovalRespond.onHostConfirmRespond".split(".")))]),
17449
17451
  _: 1
17450
17452
  }),
17451
- T(_e).length ? (P(), L(Db, {
17453
+ E(_e).length ? (P(), L(Db, {
17452
17454
  key: 0,
17453
- messages: T(_e),
17454
- onEdit: T(Pe),
17455
- onRemove: T(Ie)
17455
+ messages: E(_e),
17456
+ onEdit: E(Pe),
17457
+ onRemove: E(Ie)
17456
17458
  }, null, 8, [
17457
17459
  "messages",
17458
17460
  "onEdit",
@@ -17467,49 +17469,49 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17467
17469
  })) : q("", !0)]),
17468
17470
  _: 1
17469
17471
  }),
17470
- T(zt) && !T(j) ? (P(), L(Ub, {
17472
+ E(zt) && !E(j) ? (P(), L(Ub, {
17471
17473
  key: 0,
17472
- pending: T(zt),
17473
- stopping: T(Bt),
17474
- onStop: T(Vt)
17474
+ pending: E(zt),
17475
+ stopping: E(Bt),
17476
+ onStop: E(Vt)
17475
17477
  }, null, 8, [
17476
17478
  "pending",
17477
17479
  "stopping",
17478
17480
  "onStop"
17479
17481
  ])) : q("", !0),
17480
- T(j) ? (P(), Z("div", Zb, N(T(Be)("message.chatErrorConversationBlocked")), 1)) : vt.value === "idle" ? (P(), L(Sb, {
17482
+ E(j) ? (P(), Z("div", Zb, N(E(Be)("message.chatErrorConversationBlocked")), 1)) : vt.value === "idle" ? (P(), L(Sb, {
17481
17483
  key: 3,
17482
- modelValue: T(A),
17484
+ modelValue: E(A),
17483
17485
  "onUpdate:modelValue": g[4] ||= (e) => Ce(A) ? A.value = e : null,
17484
- "pending-attachments": T(oe),
17486
+ "pending-attachments": E(oe),
17485
17487
  "onUpdate:pendingAttachments": g[5] ||= (e) => Ce(oe) ? oe.value = e : null,
17486
- placeholder: T(ie),
17487
- "dismissable-notice": T(qe) && T(S).messages.length <= 1 ? T(qe) : void 0,
17488
+ placeholder: E(ie),
17489
+ "dismissable-notice": E(qe) && E(S).messages.length <= 1 ? E(qe) : void 0,
17488
17490
  "page-notice": We.value,
17489
17491
  status: He.value,
17490
- "max-message-length": T(h)?.maxMessageLength,
17492
+ "max-message-length": E(h)?.maxMessageLength,
17491
17493
  "file-upload": ye.value,
17492
- "attachment-limit-reached": T(M),
17494
+ "attachment-limit-reached": E(M),
17493
17495
  "attachment-notice": Ge.value,
17494
17496
  "voice-enabled": _t.value,
17495
- "queue-enabled": T(z),
17497
+ "queue-enabled": E(z),
17496
17498
  "answer-notices": Ke.value,
17497
- onStopGeneration: T(xe),
17498
- onSubmit: T(be),
17499
- onFileSelect: T(je),
17500
- onDismissAttachmentNotice: T(Me),
17501
- onDismissPageNotice: T(Ne),
17502
- onOpenAnswerNotice: T(Re),
17503
- onDismissAnswerNotice: T(ze),
17499
+ onStopGeneration: E(xe),
17500
+ onSubmit: E(be),
17501
+ onFileSelect: E(je),
17502
+ onDismissAttachmentNotice: E(Me),
17503
+ onDismissPageNotice: E(Ne),
17504
+ onOpenAnswerNotice: E(Re),
17505
+ onDismissAnswerNotice: E(ze),
17504
17506
  onVoiceStart: wt
17505
17507
  }, ge({ _: 2 }, [e.modifier === "fullscreen" ? {
17506
17508
  name: "prepend",
17507
17509
  fn: B(() => [H("span", Qb, [F(O_, {
17508
17510
  modifiers: "surface",
17509
17511
  class: "pk-chatbot-view-chat__agent-chip-avatar",
17510
- "img-src": T(h)?.logo,
17511
- name: T(m).name
17512
- }, null, 8, ["img-src", "name"]), T(m).name ? (P(), Z("strong", $b, N(T(m).name), 1)) : q("", !0)])]),
17512
+ "img-src": E(h)?.logo,
17513
+ name: E(m).name
17514
+ }, null, 8, ["img-src", "name"]), E(m).name ? (P(), Z("strong", $b, N(E(m).name), 1)) : q("", !0)])]),
17513
17515
  key: "0"
17514
17516
  } : void 0]), 1032, [
17515
17517
  "modelValue",
@@ -17537,11 +17539,11 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17537
17539
  state: vt.value,
17538
17540
  sample: St,
17539
17541
  spectrum: Ct,
17540
- "remaining-seconds": T(gt).remainingSeconds.value,
17542
+ "remaining-seconds": E(gt).remainingSeconds.value,
17541
17543
  muted: tt.value,
17542
17544
  error: yt.value,
17543
- "raw-error": T(gt).error.value,
17544
- live: T(gt).isActive.value,
17545
+ "raw-error": E(gt).error.value,
17546
+ live: E(gt).isActive.value,
17545
17547
  class: "pk-chatbot-view-chat__voice",
17546
17548
  onToggleMute: Rt,
17547
17549
  onHangUp: Tt,
@@ -17557,10 +17559,10 @@ var Xb = { class: "pk-chatbot-view-chat__input-stage" }, Zb = {
17557
17559
  ]))
17558
17560
  ]),
17559
17561
  F(K, null, {
17560
- default: B(() => [T(et) && ye.value?.enabled ? (P(), Z("div", ex, [F(_, {
17562
+ default: B(() => [E(et) && ye.value?.enabled ? (P(), Z("div", ex, [F(_, {
17561
17563
  name: "ri:upload-cloud-2-line",
17562
17564
  class: "pk-chatbot-view-chat__drop-overlay-icon"
17563
- }), H("span", null, N(T(Be)("action.dropFile")), 1)])) : q("", !0)]),
17565
+ }), H("span", null, N(E(Be)("action.dropFile")), 1)])) : q("", !0)]),
17564
17566
  _: 1
17565
17567
  })
17566
17568
  ], 2);
@@ -17596,58 +17598,58 @@ var ox = { class: "flex flex-col flex-1 min-h-0 relative" }, sx = {
17596
17598
  f.value || (o.value = e, c("chat"));
17597
17599
  }, b = (e) => o.value === e.id, x = (e, t) => on(qe(e.filter((e) => e.role === t).slice(-1)[0]) || ""), S = (e) => {
17598
17600
  m(e, x(e.messages, "assistant"));
17599
- }, { openDialogConfirm: ee } = Hf(), w = te(h_, void 0), E = U(() => !!w?.eraseConversations && !(w.isExternalAuth?.value ?? !1)), ne = W(!1), D = async () => {
17600
- let e = w?.eraseConversations;
17601
- if (e && E.value && await ee({
17601
+ }, { openDialogConfirm: C } = Hf(), T = ee(h_, void 0), D = U(() => !!T?.eraseConversations && !(T.isExternalAuth?.value ?? !1)), te = W(!1), O = async () => {
17602
+ let e = T?.eraseConversations;
17603
+ if (e && D.value && await C({
17602
17604
  title: n("confirmTitle.deleteMyConversations"),
17603
17605
  questionLabel: n("message.deleteMyConversationsConfirm")
17604
17606
  })) {
17605
- ne.value = !0;
17607
+ te.value = !0;
17606
17608
  try {
17607
17609
  await e(), i.value = [], l();
17608
17610
  } catch {
17609
17611
  r.loadConversations(t.agentId);
17610
17612
  } finally {
17611
- ne.value = !1;
17613
+ te.value = !1;
17612
17614
  }
17613
17615
  }
17614
17616
  };
17615
17617
  return (e, t) => {
17616
17618
  let r = Cn, o = Tn, c = yn, u = gn, d = bn, m = wn;
17617
- return P(), Z("div", ox, [T(a) && T(i).length === 0 ? (P(), Z("div", sx, [H("div", cx, [(P(), Z(V, null, C(5, (e) => H("div", {
17619
+ return P(), Z("div", ox, [E(a) && E(i).length === 0 ? (P(), Z("div", sx, [H("div", cx, [(P(), Z(V, null, w(5, (e) => H("div", {
17618
17620
  key: e,
17619
17621
  class: "vv-item vv-item--roomy vv-item--plain"
17620
17622
  }, [H("div", lx, [H("div", ux, [
17621
17623
  H("div", { class: de(["vv-skeleton h-16 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[5] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2),
17622
17624
  t[6] ||= H("div", { class: "vv-skeleton h-12 rounded" }, [H("div", { class: "vv-skeleton__item" })], -1),
17623
17625
  t[7] ||= H("div", { class: "vv-skeleton h-12 rounded w-160" }, [H("div", { class: "vv-skeleton__item" })], -1)
17624
- ])])])), 64))])])) : T(i).length === 0 ? (P(), Z("div", dx, [
17626
+ ])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div", dx, [
17625
17627
  H("div", fx, [F(r, {
17626
17628
  name: "ri:chat-3-line",
17627
17629
  class: "w-28 h-28 text-word-4"
17628
17630
  })]),
17629
- H("div", px, [H("strong", mx, N(T(n)("message.noConversations")), 1), H("span", hx, N(T(n)("message.noConversationsHint")), 1)]),
17631
+ H("div", px, [H("strong", mx, N(E(n)("message.noConversations")), 1), H("span", hx, N(E(n)("message.noConversationsHint")), 1)]),
17630
17632
  F(o, {
17631
17633
  modifiers: "primary rounded",
17632
17634
  icon: "ri:add-line",
17633
17635
  class: "mt-8",
17634
- label: T(n)("action.startNewChat"),
17635
- onClick: t[0] ||= (e) => T(l)()
17636
+ label: E(n)("action.startNewChat"),
17637
+ onClick: t[0] ||= (e) => E(l)()
17636
17638
  }, null, 8, ["label"])
17637
- ])) : (P(), Z("div", gx, [H("ul", _x, [(P(!0), Z(V, null, C(T(i), (e) => (P(), Z("li", {
17639
+ ])) : (P(), Z("div", gx, [H("ul", _x, [(P(!0), Z(V, null, w(E(i), (e) => (P(), Z("li", {
17638
17640
  key: e.id,
17639
17641
  class: de(["vv-item vv-item--roomy", { "vv-item--current": b(e) }])
17640
- }, [T(f) === e.id ? (P(), Z("div", vx, [F(c, {
17641
- modelValue: T(p),
17642
+ }, [E(f) === e.id ? (P(), Z("div", vx, [F(c, {
17643
+ modelValue: E(p),
17642
17644
  "onUpdate:modelValue": t[1] ||= (e) => Ce(p) ? p.value = e : null,
17643
17645
  class: "flex-1 mb-0",
17644
17646
  modifiers: "compact",
17645
17647
  autofocus: "",
17646
17648
  "select-on-focus": "",
17647
17649
  maxlength: 255,
17648
- "aria-label": T(n)("placeholder.insert"),
17649
- placeholder: T(n)("placeholder.insert"),
17650
- onKeydown: (t) => T(_)(t, e.id)
17650
+ "aria-label": E(n)("placeholder.insert"),
17651
+ placeholder: E(n)("placeholder.insert"),
17652
+ onKeydown: (t) => E(_)(t, e.id)
17651
17653
  }, null, 8, [
17652
17654
  "modelValue",
17653
17655
  "aria-label",
@@ -17656,14 +17658,14 @@ var ox = { class: "flex flex-col flex-1 min-h-0 relative" }, sx = {
17656
17658
  ]), F(u, { modifiers: "compact" }, {
17657
17659
  default: B(() => [F(o, {
17658
17660
  icon: "ri:save-line",
17659
- title: T(n)("action.save"),
17661
+ title: E(n)("action.save"),
17660
17662
  modifiers: "action-quiet-small",
17661
- onClick: (t) => T(h)(e.id)
17663
+ onClick: (t) => E(h)(e.id)
17662
17664
  }, null, 8, ["title", "onClick"]), F(o, {
17663
17665
  icon: "ri:close-line",
17664
- title: T(n)("action.cancel"),
17666
+ title: E(n)("action.cancel"),
17665
17667
  modifiers: "action-quiet-small",
17666
- onClick: t[2] ||= (e) => T(g)()
17668
+ onClick: t[2] ||= (e) => E(g)()
17667
17669
  }, null, 8, ["title"])]),
17668
17670
  _: 2
17669
17671
  }, 1024)])) : (P(), Z(V, { key: 1 }, [H("button", {
@@ -17672,20 +17674,20 @@ var ox = { class: "flex flex-col flex-1 min-h-0 relative" }, sx = {
17672
17674
  "aria-current": b(e) ? "true" : void 0,
17673
17675
  onClick: (t) => y(e.id)
17674
17676
  }, [H("div", bx, [H("div", xx, [
17675
- H("strong", Sx, N(T(on)(e.title) || x(e.messages, "assistant")), 1),
17676
- T(s).includes(e.id) ? (P(), L(r, {
17677
+ H("strong", Sx, N(E(on)(e.title) || x(e.messages, "assistant")), 1),
17678
+ E(s).includes(e.id) ? (P(), L(r, {
17677
17679
  key: 0,
17678
17680
  name: "loading-loop",
17679
17681
  role: "img",
17680
- title: T(n)("label.answeringInBackground"),
17681
- "aria-label": T(n)("label.answeringInBackground"),
17682
+ title: E(n)("label.answeringInBackground"),
17683
+ "aria-label": E(n)("label.answeringInBackground"),
17682
17684
  class: "w-16 h-16 shrink-0 text-word-3"
17683
17685
  }, null, 8, ["title", "aria-label"])) : q("", !0),
17684
17686
  F(dv, {
17685
17687
  class: "text-word-4 text-smaller shrink-0",
17686
17688
  date: e.lastMessageAt
17687
17689
  }, null, 8, ["date"])
17688
- ]), H("span", Cx, N(T(on)(T(Ge)(e.summary, T(n))) || x(e.messages, "user")), 1)])], 8, yx), H("div", wx, [F(m, oe({ ref_for: !0 }, {
17690
+ ]), H("span", Cx, N(E(on)(E(Ge)(e.summary, E(n))) || x(e.messages, "user")), 1)])], 8, yx), H("div", wx, [F(m, oe({ ref_for: !0 }, {
17689
17691
  placement: "bottom-end",
17690
17692
  modifiers: "menu",
17691
17693
  flip: !0,
@@ -17693,33 +17695,33 @@ var ox = { class: "flex flex-col flex-1 min-h-0 relative" }, sx = {
17693
17695
  strategy: "fixed"
17694
17696
  }), {
17695
17697
  items: B(() => [F(d, { onClick: (t) => S(e) }, {
17696
- default: B(() => [F(r, { name: "ri:pencil-line" }), Ne(" " + N(T(n)("action.renameChat")), 1)]),
17698
+ default: B(() => [F(r, { name: "ri:pencil-line" }), Ne(" " + N(E(n)("action.renameChat")), 1)]),
17697
17699
  _: 1
17698
- }, 8, ["onClick"]), F(d, { onClick: (t) => T(v)(e.id) }, {
17699
- default: B(() => [F(r, { name: "ri:delete-bin-line" }), Ne(" " + N(T(n)("action.delete")), 1)]),
17700
+ }, 8, ["onClick"]), F(d, { onClick: (t) => E(v)(e.id) }, {
17701
+ default: B(() => [F(r, { name: "ri:delete-bin-line" }), Ne(" " + N(E(n)("action.delete")), 1)]),
17700
17702
  _: 1
17701
17703
  }, 8, ["onClick"])]),
17702
17704
  default: B(() => [F(o, {
17703
17705
  icon: "ri:more-2-fill",
17704
- title: T(n)("action.moreActions"),
17706
+ title: E(n)("action.moreActions"),
17705
17707
  modifiers: "action-quiet-small"
17706
17708
  }, null, 8, ["title"])]),
17707
17709
  _: 2
17708
- }, 1040)])], 64))], 2))), 128))])])), T(i).length > 0 ? (P(), Z("div", Tx, [F(o, {
17710
+ }, 1040)])], 64))], 2))), 128))])])), E(i).length > 0 ? (P(), Z("div", Tx, [F(o, {
17709
17711
  class: "text-14 pointer-events-auto",
17710
17712
  modifiers: "primary rounded",
17711
17713
  icon: "ri:add-line",
17712
- label: T(n)("action.startNewChat"),
17713
- onClick: t[3] ||= ve((e) => T(l)(), ["stop"])
17714
- }, null, 8, ["label"]), E.value ? (P(), L(o, {
17714
+ label: E(n)("action.startNewChat"),
17715
+ onClick: t[3] ||= ve((e) => E(l)(), ["stop"])
17716
+ }, null, 8, ["label"]), D.value ? (P(), L(o, {
17715
17717
  key: 0,
17716
17718
  class: "text-12 pointer-events-auto",
17717
17719
  modifiers: "action-quiet-danger",
17718
17720
  icon: "ri:delete-bin-line",
17719
- loading: ne.value,
17720
- disabled: ne.value,
17721
- label: T(n)("action.deleteMyConversations"),
17722
- onClick: t[4] ||= ve((e) => D(), ["stop"])
17721
+ loading: te.value,
17722
+ disabled: te.value,
17723
+ label: E(n)("action.deleteMyConversations"),
17724
+ onClick: t[4] ||= ve((e) => O(), ["stop"])
17723
17725
  }, null, 8, [
17724
17726
  "loading",
17725
17727
  "disabled",
@@ -17758,40 +17760,40 @@ var Dx = { class: "flex flex-col flex-1 min-h-0 relative" }, Ox = {
17758
17760
  };
17759
17761
  return (e, t) => {
17760
17762
  let r = Cn, i = Tn;
17761
- return P(), Z("div", Dx, [T(o) && T(a).length === 0 ? (P(), Z("div", Ox, [H("div", kx, [(P(), Z(V, null, C(4, (e) => H("div", {
17763
+ return P(), Z("div", Dx, [E(o) && E(a).length === 0 ? (P(), Z("div", Ox, [H("div", kx, [(P(), Z(V, null, w(4, (e) => H("div", {
17762
17764
  key: e,
17763
17765
  class: "vv-item vv-item--roomy vv-item--plain"
17764
- }, [H("div", Ax, [t[2] ||= H("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [H("div", { class: "vv-skeleton__item" })], -1), H("div", jx, [H("div", { class: de(["vv-skeleton h-14 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[0] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2), t[1] ||= H("div", { class: "vv-skeleton h-12 rounded w-96" }, [H("div", { class: "vv-skeleton__item" })], -1)])])])), 64))])])) : T(a).length === 0 ? (P(), Z("div", Mx, [H("div", Nx, [F(r, {
17766
+ }, [H("div", Ax, [t[2] ||= H("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [H("div", { class: "vv-skeleton__item" })], -1), H("div", jx, [H("div", { class: de(["vv-skeleton h-14 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[0] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2), t[1] ||= H("div", { class: "vv-skeleton h-12 rounded w-96" }, [H("div", { class: "vv-skeleton__item" })], -1)])])])), 64))])])) : E(a).length === 0 ? (P(), Z("div", Mx, [H("div", Nx, [F(r, {
17765
17767
  name: "ri:folder-open-line",
17766
17768
  class: "w-28 h-28 text-word-4"
17767
- })]), H("span", Px, N(T(n)("userFiles.chatFilesEmpty")), 1)])) : (P(), Z("div", Fx, [H("ul", Ix, [(P(!0), Z(V, null, C(T(a), (e) => (P(), Z("li", {
17769
+ })]), H("span", Px, N(E(n)("userFiles.chatFilesEmpty")), 1)])) : (P(), Z("div", Fx, [H("ul", Ix, [(P(!0), Z(V, null, w(E(a), (e) => (P(), Z("li", {
17768
17770
  key: e.documentId,
17769
17771
  class: "vv-item vv-item--roomy"
17770
17772
  }, [H("button", {
17771
17773
  type: "button",
17772
17774
  class: "vv-item__entry",
17773
- title: T(n)("userFiles.open"),
17774
- onClick: (t) => T(u)(e)
17775
- }, [H("span", Rx, [T(s)(e) ? (P(), Z("img", {
17775
+ title: E(n)("userFiles.open"),
17776
+ onClick: (t) => E(u)(e)
17777
+ }, [H("span", Rx, [E(s)(e) ? (P(), Z("img", {
17776
17778
  key: 0,
17777
- src: T(c)(e),
17779
+ src: E(c)(e),
17778
17780
  loading: "lazy",
17779
17781
  decoding: "async",
17780
17782
  alt: "",
17781
17783
  class: "pk-chatbot-files__thumb",
17782
- onError: (t) => T(l)(e)
17784
+ onError: (t) => E(l)(e)
17783
17785
  }, null, 40, zx)) : (P(), L(r, {
17784
17786
  key: 1,
17785
- name: T(an)(e.mimeType)
17786
- }, null, 8, ["name"]))]), H("span", Bx, [H("span", Vx, N(e.name || T(n)("userFiles.untitled")), 1), H("span", Hx, N([T(d)(e.createdAt), T(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, Lx), H("div", Ux, [F(i, {
17787
+ name: E(an)(e.mimeType)
17788
+ }, null, 8, ["name"]))]), H("span", Bx, [H("span", Vx, N(e.name || E(n)("userFiles.untitled")), 1), H("span", Hx, N([E(d)(e.createdAt), E(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, Lx), H("div", Ux, [F(i, {
17787
17789
  modifiers: "action-quiet-small",
17788
17790
  icon: "ri:download-line",
17789
- title: T(n)("action.download"),
17790
- onClick: (t) => T(u)(e, !0)
17791
+ title: E(n)("action.download"),
17792
+ onClick: (t) => E(u)(e, !0)
17791
17793
  }, null, 8, ["title", "onClick"]), F(i, {
17792
17794
  modifiers: "action-quiet-small",
17793
17795
  icon: "ri:delete-bin-line",
17794
- title: T(p)(e),
17796
+ title: E(p)(e),
17795
17797
  loading: h.value === e.documentId,
17796
17798
  disabled: h.value === e.documentId,
17797
17799
  onClick: (t) => g(e)
@@ -17819,7 +17821,7 @@ var Gx = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, Kx = { class
17819
17821
  __name: "PkChatbotViewProfile",
17820
17822
  props: { agentId: { type: String } },
17821
17823
  setup(e) {
17822
- let t = e, { t: n } = Le({ useScope: "global" }), { name: r, agentInterface: i } = pr(Mf(t.agentId)), a = te(h_, void 0), o = U(() => a?.user.value ?? null), s = U(() => a?.canManageProfile.value ?? !1), c = U(() => a?.profileUrl.value), l = U(() => a?.isExternalAuth?.value ?? !1), u = W(!1), d = W();
17824
+ let t = e, { t: n } = Le({ useScope: "global" }), { name: r, agentInterface: i } = pr(Mf(t.agentId)), a = ee(h_, void 0), o = U(() => a?.user.value ?? null), s = U(() => a?.canManageProfile.value ?? !1), c = U(() => a?.profileUrl.value), l = U(() => a?.isExternalAuth?.value ?? !1), u = W(!1), d = W();
17823
17825
  async function f() {
17824
17826
  if (a) {
17825
17827
  u.value = !0;
@@ -17838,9 +17840,9 @@ var Gx = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, Kx = { class
17838
17840
  H("div", Kx, [F(O_, {
17839
17841
  modifiers: "surface ring",
17840
17842
  class: "w-64 h-64",
17841
- name: o.value?.name ?? T(r),
17842
- "img-src": o.value?.image ?? T(i)?.logo
17843
- }, null, 8, ["name", "img-src"]), H("div", qx, [o.value?.name ?? T(r) ? (P(), Z("strong", Jx, N(o.value?.name ?? T(r)), 1)) : q("", !0), o.value?.email ? (P(), Z("span", Yx, N(o.value.email), 1)) : q("", !0)])]),
17843
+ name: o.value?.name ?? E(r),
17844
+ "img-src": o.value?.image ?? E(i)?.logo
17845
+ }, null, 8, ["name", "img-src"]), H("div", qx, [o.value?.name ?? E(r) ? (P(), Z("strong", Jx, N(o.value?.name ?? E(r)), 1)) : q("", !0), o.value?.email ? (P(), Z("span", Yx, N(o.value.email), 1)) : q("", !0)])]),
17844
17846
  H("div", Xx, [d.value ? (P(), L(a, {
17845
17847
  key: 0,
17846
17848
  modifiers: "danger",
@@ -17856,7 +17858,7 @@ var Gx = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, Kx = { class
17856
17858
  name: "ri:user-settings-line",
17857
17859
  class: "w-20 h-20 text-word-2"
17858
17860
  })]),
17859
- H("div", $x, [H("span", eS, N(T(n)("action.manageProfile")), 1), H("span", tS, N(T(n)("label.manageProfileDescription")), 1)]),
17861
+ H("div", $x, [H("span", eS, N(E(n)("action.manageProfile")), 1), H("span", tS, N(E(n)("label.manageProfileDescription")), 1)]),
17860
17862
  F(p, {
17861
17863
  name: "ri:arrow-right-s-line",
17862
17864
  class: "w-16 h-16 text-word-4 shrink-0"
@@ -17868,7 +17870,7 @@ var Gx = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, Kx = { class
17868
17870
  icon: "ri:logout-box-line",
17869
17871
  loading: u.value,
17870
17872
  disabled: u.value,
17871
- label: T(n)("action.signOut"),
17873
+ label: E(n)("action.signOut"),
17872
17874
  onClick: f
17873
17875
  }, null, 8, [
17874
17876
  "loading",
@@ -17937,8 +17939,8 @@ var iS = { class: "pk-chatbot__header-start" }, aS = ["title"], oS = { key: 1 },
17937
17939
  An((e) => c.apiClient.resolveShortUrls(e));
17938
17940
  let { messages: l, localChatId: u, activeView: d, chatError: f, isDark: p, pageAccessAvailable: m, pageAccessOff: h } = pr(c), g = Pe(c, "agentId"), { startNewChat: _, stopGeneration: v, regenerate: y, navigate: b, sendMessage: x, setPageAccessOff: S } = c;
17939
17941
  Nn(() => a.agentInterface?.imageHosts, () => a.baseUrl);
17940
- let ee = te(h_, void 0), w = U(() => ee?.canManageProfile.value ?? !1), E = U(() => !w.value && (ee?.canSignIn?.value ?? !1) && r["view-auth"] !== void 0);
17941
- I(w, (e) => {
17942
+ let C = ee(h_, void 0), T = U(() => C?.canManageProfile.value ?? !1), D = U(() => !T.value && (C?.canSignIn?.value ?? !1) && r["view-auth"] !== void 0);
17943
+ I(T, (e) => {
17942
17944
  e && d.value === "auth" && b("chat");
17943
17945
  }), ce(() => {
17944
17946
  c.baseUrl = a.baseUrl, c.basePath = a.basePath, c.name = a.name, c.agentType = a.agentType, c.userId = a.userId, c.agentInterface = a.agentInterface, c.agentModel = a.agentModel, c.agentTools = a.agentTools, c.headers = a.headers, c.revisedAnswers = a.revisedAnswers, c.model = a.model, c.actionsInput = a.actions, c.agentFileUpload = a.agentFileUpload, c.agentVoice = a.voice, c.fallbackModels = a.fallbackModels, c.gatewayOptions = a.gatewayOptions, c.externalContext = a.externalContext, c.agentHostTools = a.hostTools, c.hostToolRegistry = a.hostToolRegistry, c.agentPageAccess = a.pageAccess, c.pageToolRegistry = a.pageToolRegistry, c.pageFormsProvider = a.pageForms, c.systemTheme = a.systemTheme, c.hideWelcomeMessage = a.modifier === "fullscreen";
@@ -17952,7 +17954,7 @@ var iS = { class: "pk-chatbot__header-start" }, aS = ["title"], oS = { key: 1 },
17952
17954
  o("error", t);
17953
17955
  } catch {}
17954
17956
  });
17955
- let re = U(() => a.modifier === "fullscreen"), k = U(() => a.modifier === "panel"), ie = me("chatbotEl"), { width: j } = fn(ie), ae = U(() => j.value > 0 && j.value < 576), M = U(() => j.value > 0 && j.value < 640), se = U(() => j.value >= 848), le = U(() => a.agentType === "reasoning"), ue = U(() => le.value && !l.value.some((e) => e.role === "user")), fe = U(() => !k.value && a.agentInterface?.useColorsForAgentHeader), he = U(() => !k.value || w.value || E.value || m.value || !!a.userFilesEnabled && !!u.value), R = U(() => ["theme", `theme--${p.value ? "dark" : "light"}`]), z = U(() => a.agentInterface?.mainColor), _e = U(() => He(a.agentInterface?.textColor, z.value)), ve = U(() => vt(z.value, _e.value)), ye = Dn(() => a.agentInterface?.footerMessage), be = U(() => d.value === "conversations" ? i("label.conversations") : d.value === "profile" ? i("label.profile") : d.value === "auth" ? i("label.authentication") : d.value === "files" ? i("userFiles.chatFilesTitle") : a.name), W = U(() => l.value?.[l.value.length - 1]);
17957
+ let ne = U(() => a.modifier === "fullscreen"), re = U(() => a.modifier === "panel"), ie = me("chatbotEl"), { width: j } = fn(ie), ae = U(() => j.value > 0 && j.value < 576), M = U(() => j.value > 0 && j.value < 640), se = U(() => j.value >= 848), le = U(() => a.agentType === "reasoning"), ue = U(() => le.value && !l.value.some((e) => e.role === "user")), fe = U(() => !re.value && a.agentInterface?.useColorsForAgentHeader), he = U(() => !re.value || T.value || D.value || m.value || !!a.userFilesEnabled && !!u.value), R = U(() => ["theme", `theme--${p.value ? "dark" : "light"}`]), z = U(() => a.agentInterface?.mainColor), _e = U(() => He(a.agentInterface?.textColor, z.value)), ve = U(() => vt(z.value, _e.value)), ye = Dn(() => a.agentInterface?.footerMessage), be = U(() => d.value === "conversations" ? i("label.conversations") : d.value === "profile" ? i("label.profile") : d.value === "auth" ? i("label.authentication") : d.value === "files" ? i("userFiles.chatFilesTitle") : a.name), W = U(() => l.value?.[l.value.length - 1]);
17956
17958
  return t({
17957
17959
  startNewChat: _,
17958
17960
  regenerate: y,
@@ -17973,19 +17975,19 @@ var iS = { class: "pk-chatbot__header-start" }, aS = ["title"], oS = { key: 1 },
17973
17975
  ref_key: "chatbotEl",
17974
17976
  ref: ie,
17975
17977
  class: de(["pk-chatbot", [R.value, {
17976
- "pk-chatbot--fullscreen": re.value,
17977
- "pk-chatbot--panel": k.value,
17978
+ "pk-chatbot--fullscreen": ne.value,
17979
+ "pk-chatbot--panel": re.value,
17978
17980
  "pk-chatbot--phone": ae.value,
17979
17981
  "pk-chatbot--tight": M.value,
17980
17982
  "pk-chatbot--wide": se.value
17981
17983
  }]]),
17982
- style: ne(ve.value)
17984
+ style: te(ve.value)
17983
17985
  }, [
17984
- re.value ? q("", !0) : (P(), Z("div", {
17986
+ ne.value ? q("", !0) : (P(), Z("div", {
17985
17987
  key: 0,
17986
17988
  class: "pk-chatbot__header",
17987
- style: ne(fe.value ? { backgroundColor: z.value } : void 0)
17988
- }, [H("div", iS, [T(d) === "chat" ? k.value ? q("", !0) : (P(), L(O_, {
17989
+ style: te(fe.value ? { backgroundColor: z.value } : void 0)
17990
+ }, [H("div", iS, [E(d) === "chat" ? re.value ? q("", !0) : (P(), L(O_, {
17989
17991
  key: 1,
17990
17992
  modifiers: "surface ring shrink-0",
17991
17993
  class: "pk-chatbot__avatar",
@@ -17994,40 +17996,40 @@ var iS = { class: "pk-chatbot__header-start" }, aS = ["title"], oS = { key: 1 },
17994
17996
  }, null, 8, ["name", "img-src"])) : (P(), Z(V, { key: 0 }, [F(a, oe({
17995
17997
  modifiers: fe.value ? `action-quiet-${_e.value}` : "action-quiet",
17996
17998
  icon: "ri:arrow-left-s-line",
17997
- title: T(i)("action.goBack")
17998
- }, { onClick: n[0] ||= (e) => T(b)("chat") }), null, 16), F(s, {
17999
- name: T(d) === "conversations" ? "ri:history-line" : T(d) === "files" ? "ri:attachment-2" : "ri:user-line",
17999
+ title: E(i)("action.goBack")
18000
+ }, { onClick: n[0] ||= (e) => E(b)("chat") }), null, 16), F(s, {
18001
+ name: E(d) === "conversations" ? "ri:history-line" : E(d) === "files" ? "ri:attachment-2" : "ri:user-line",
18000
18002
  class: "pk-chatbot__nav-icon",
18001
- style: ne(fe.value ? { color: _e.value } : void 0)
18003
+ style: te(fe.value ? { color: _e.value } : void 0)
18002
18004
  }, null, 8, ["name", "style"])], 64)), H("strong", {
18003
18005
  class: "pk-chatbot__title",
18004
18006
  title: be.value,
18005
- style: ne(fe.value ? { color: _e.value } : void 0)
18007
+ style: te(fe.value ? { color: _e.value } : void 0)
18006
18008
  }, N(be.value), 13, aS)]), F(f, {
18007
18009
  class: "pk-chatbot__header-end",
18008
18010
  modifiers: "compact"
18009
18011
  }, {
18010
18012
  default: B(() => [
18011
- pe(t.$slots, "header-actions", O(D({
18013
+ pe(t.$slots, "header-actions", k(O({
18012
18014
  mainColor: z.value,
18013
18015
  useColorsForAgentHeader: fe.value,
18014
18016
  contrastColor: _e.value,
18015
- startNewChat: T(_),
18016
- stopGeneration: T(v)
18017
+ startNewChat: E(_),
18018
+ stopGeneration: E(v)
18017
18019
  }))),
18018
- k.value ? (P(), Z(V, { key: 0 }, [F(a, {
18020
+ re.value ? (P(), Z(V, { key: 0 }, [F(a, {
18019
18021
  modifiers: fe.value ? `action-quiet-${_e.value}` : "action-quiet",
18020
18022
  icon: "ri:edit-box-line",
18021
- title: T(i)("action.startNewChat"),
18022
- onClick: n[1] ||= (e) => T(_)()
18023
+ title: E(i)("action.startNewChat"),
18024
+ onClick: n[1] ||= (e) => E(_)()
18023
18025
  }, null, 8, ["modifiers", "title"]), le.value ? q("", !0) : (P(), L(a, {
18024
18026
  key: 0,
18025
18027
  modifiers: fe.value ? `action-quiet-${_e.value}` : "action-quiet",
18026
18028
  icon: "ri:history-line",
18027
- title: T(i)("action.viewRecentChats"),
18028
- onClick: n[2] ||= (e) => T(b)("conversations")
18029
+ title: E(i)("action.viewRecentChats"),
18030
+ onClick: n[2] ||= (e) => E(b)("conversations")
18029
18031
  }, null, 8, ["modifiers", "title"]))], 64)) : q("", !0),
18030
- he.value ? (P(), L(l, O(oe({ key: 1 }, {
18032
+ he.value ? (P(), L(l, k(oe({ key: 1 }, {
18031
18033
  placement: "bottom-end",
18032
18034
  modifiers: "menu",
18033
18035
  flip: !0,
@@ -18035,61 +18037,61 @@ var iS = { class: "pk-chatbot__header-start" }, aS = ["title"], oS = { key: 1 },
18035
18037
  strategy: "fixed"
18036
18038
  })), {
18037
18039
  items: B(() => [
18038
- k.value ? q("", !0) : (P(), L(c, {
18040
+ re.value ? q("", !0) : (P(), L(c, {
18039
18041
  key: 0,
18040
- onClick: n[3] ||= (e) => T(_)()
18042
+ onClick: n[3] ||= (e) => E(_)()
18041
18043
  }, {
18042
- default: B(() => [F(s, { name: "ri:edit-box-line" }), Ne(" " + N(T(i)("action.startNewChat")), 1)]),
18044
+ default: B(() => [F(s, { name: "ri:edit-box-line" }), Ne(" " + N(E(i)("action.startNewChat")), 1)]),
18043
18045
  _: 1
18044
18046
  })),
18045
- !le.value && !k.value ? (P(), L(c, {
18047
+ !le.value && !re.value ? (P(), L(c, {
18046
18048
  key: 1,
18047
- onClick: n[4] ||= (e) => T(b)("conversations")
18049
+ onClick: n[4] ||= (e) => E(b)("conversations")
18048
18050
  }, {
18049
- default: B(() => [F(s, { name: "ri:history-line" }), Ne(" " + N(T(i)("action.viewRecentChats")), 1)]),
18051
+ default: B(() => [F(s, { name: "ri:history-line" }), Ne(" " + N(E(i)("action.viewRecentChats")), 1)]),
18050
18052
  _: 1
18051
18053
  })) : q("", !0),
18052
- (w.value || e.userFilesEnabled) && T(u) ? (P(), L(c, {
18054
+ (T.value || e.userFilesEnabled) && E(u) ? (P(), L(c, {
18053
18055
  key: 2,
18054
- onClick: n[5] ||= (e) => T(b)("files")
18056
+ onClick: n[5] ||= (e) => E(b)("files")
18055
18057
  }, {
18056
- default: B(() => [F(s, { name: "ri:attachment-2" }), Ne(" " + N(T(i)("userFiles.chatFilesTitle")), 1)]),
18058
+ default: B(() => [F(s, { name: "ri:attachment-2" }), Ne(" " + N(E(i)("userFiles.chatFilesTitle")), 1)]),
18057
18059
  _: 1
18058
18060
  })) : q("", !0),
18059
- T(m) ? (P(), L(c, {
18061
+ E(m) ? (P(), L(c, {
18060
18062
  key: 3,
18061
- onClick: n[6] ||= (e) => T(S)(!T(h))
18063
+ onClick: n[6] ||= (e) => E(S)(!E(h))
18062
18064
  }, {
18063
- default: B(() => [F(s, { name: T(h) ? "ri:pages-line" : "ri:forbid-line" }, null, 8, ["name"]), Ne(" " + N(T(h) ? T(i)("action.enablePageAccess") : T(i)("action.disablePageAccess")), 1)]),
18065
+ default: B(() => [F(s, { name: E(h) ? "ri:pages-line" : "ri:forbid-line" }, null, 8, ["name"]), Ne(" " + N(E(h) ? E(i)("action.enablePageAccess") : E(i)("action.disablePageAccess")), 1)]),
18064
18066
  _: 1
18065
18067
  })) : q("", !0),
18066
- w.value ? (P(), L(c, {
18068
+ T.value ? (P(), L(c, {
18067
18069
  key: 4,
18068
- onClick: n[7] ||= (e) => T(b)("profile")
18070
+ onClick: n[7] ||= (e) => E(b)("profile")
18069
18071
  }, {
18070
- default: B(() => [F(s, { name: "ri:user-line" }), Ne(" " + N(T(i)("label.profile")), 1)]),
18072
+ default: B(() => [F(s, { name: "ri:user-line" }), Ne(" " + N(E(i)("label.profile")), 1)]),
18071
18073
  _: 1
18072
- })) : E.value ? (P(), L(c, {
18074
+ })) : D.value ? (P(), L(c, {
18073
18075
  key: 5,
18074
- onClick: n[8] ||= (e) => T(b)("auth")
18076
+ onClick: n[8] ||= (e) => E(b)("auth")
18075
18077
  }, {
18076
- default: B(() => [F(s, { name: "ri:account-circle-line" }), Ne(" " + N(T(i)("action.signIn")), 1)]),
18078
+ default: B(() => [F(s, { name: "ri:account-circle-line" }), Ne(" " + N(E(i)("action.signIn")), 1)]),
18077
18079
  _: 1
18078
18080
  })) : q("", !0)
18079
18081
  ]),
18080
- default: B(() => [F(a, O(D({
18082
+ default: B(() => [F(a, k(O({
18081
18083
  modifiers: fe.value ? `action-quiet-${_e.value}` : "action-quiet",
18082
18084
  icon: "ri:more-2-fill",
18083
- title: T(i)("action.moreActions")
18085
+ title: E(i)("action.moreActions")
18084
18086
  })), null, 16)]),
18085
18087
  _: 1
18086
18088
  }, 16)) : q("", !0),
18087
- pe(t.$slots, "actions", O(D({
18089
+ pe(t.$slots, "actions", k(O({
18088
18090
  mainColor: z.value,
18089
18091
  useColorsForAgentHeader: fe.value,
18090
18092
  contrastColor: _e.value,
18091
- startNewChat: T(_),
18092
- stopGeneration: T(v)
18093
+ startNewChat: E(_),
18094
+ stopGeneration: E(v)
18093
18095
  })))
18094
18096
  ]),
18095
18097
  _: 3
@@ -18098,41 +18100,41 @@ var iS = { class: "pk-chatbot__header-start" }, aS = ["title"], oS = { key: 1 },
18098
18100
  default: B(() => [H("div", cS, [F(s, {
18099
18101
  name: "ri:alert-line",
18100
18102
  class: "pk-chatbot__warning-icon"
18101
- }), H("strong", lS, N(T(i)("message.warning")), 1)]), H("p", uS, N(T(i)("message.reasoningAgent")), 1)]),
18103
+ }), H("strong", lS, N(E(i)("message.warning")), 1)]), H("p", uS, N(E(i)("message.reasoningAgent")), 1)]),
18102
18104
  _: 1
18103
18105
  })])])) : q("", !0),
18104
- T(d) === "chat" ? (P(), L(ax, {
18106
+ E(d) === "chat" ? (P(), L(ax, {
18105
18107
  key: 2,
18106
18108
  "agent-id": e.agentId,
18107
18109
  modifier: e.modifier,
18108
18110
  "user-name": e.userName,
18109
18111
  onShowInfo: n[9] ||= (e) => o("show-info", e),
18110
18112
  onRevise: n[10] ||= (e) => o("revise", e)
18111
- }, ge({ _: 2 }, [C(Object.keys(T(r)), (e) => ({
18113
+ }, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
18112
18114
  name: e,
18113
- fn: B((n) => [pe(t.$slots, e, O(D(n)))])
18115
+ fn: B((n) => [pe(t.$slots, e, k(O(n)))])
18114
18116
  }))]), 1032, [
18115
18117
  "agent-id",
18116
18118
  "modifier",
18117
18119
  "user-name"
18118
- ])) : T(d) === "conversations" ? (P(), L(Ex, {
18120
+ ])) : E(d) === "conversations" ? (P(), L(Ex, {
18119
18121
  key: 3,
18120
18122
  "agent-id": e.agentId
18121
- }, ge({ _: 2 }, [C(Object.keys(T(r)), (e) => ({
18123
+ }, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
18122
18124
  name: e,
18123
- fn: B((n) => [pe(t.$slots, e, O(D(n)))])
18124
- }))]), 1032, ["agent-id"])) : T(d) === "files" ? (P(), L(Wx, {
18125
+ fn: B((n) => [pe(t.$slots, e, k(O(n)))])
18126
+ }))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(Wx, {
18125
18127
  key: 4,
18126
18128
  "agent-id": e.agentId
18127
- }, null, 8, ["agent-id"])) : T(d) === "auth" ? (P(), Z("div", dS, [pe(t.$slots, "view-auth")])) : (P(), L(rS, {
18129
+ }, null, 8, ["agent-id"])) : E(d) === "auth" ? (P(), Z("div", dS, [pe(t.$slots, "view-auth")])) : (P(), L(rS, {
18128
18130
  key: 6,
18129
18131
  "agent-id": e.agentId
18130
- }, ge({ _: 2 }, [C(Object.keys(T(r)), (e) => ({
18132
+ }, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
18131
18133
  name: e,
18132
- fn: B((n) => [pe(t.$slots, e, O(D(n)))])
18134
+ fn: B((n) => [pe(t.$slots, e, k(O(n)))])
18133
18135
  }))]), 1032, ["agent-id"])),
18134
- T(ye) ? (P(), Z("div", fS, [F(St, {
18135
- markdown: T(ye),
18136
+ E(ye) ? (P(), Z("div", fS, [F(St, {
18137
+ markdown: E(ye),
18136
18138
  class: "wysiwyg"
18137
18139
  }, null, 8, ["markdown"])])) : q("", !0)
18138
18140
  ], 6);
@@ -18194,15 +18196,15 @@ var _S = 16, vS = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
18194
18196
  }, o = 0, s = () => {
18195
18197
  a(), o = requestAnimationFrame(s);
18196
18198
  };
18197
- return k(() => {
18199
+ return re(() => {
18198
18200
  r.value?.showModal(), s();
18199
- }), re(() => {
18201
+ }), ne(() => {
18200
18202
  cancelAnimationFrame(o);
18201
18203
  }), (t, a) => (P(), Z("dialog", {
18202
18204
  ref_key: "dialog",
18203
18205
  ref: r,
18204
18206
  class: de(["pk-host-call-confirm-dialog", { "pk-host-call-confirm-dialog--anchored": i.value }]),
18205
- style: ne(i.value),
18207
+ style: te(i.value),
18206
18208
  onCancel: a[1] ||= ve((e) => n("respond", !1), ["prevent"])
18207
18209
  }, [F(Sv, {
18208
18210
  question: e.question,
@@ -18217,20 +18219,20 @@ var yS = 300, bS = 50, xS = /* @__PURE__ */ new Set(["EMBEDDED-CHAT-WIDGET", "FL
18217
18219
  let e = [], t = document.activeElement;
18218
18220
  for (; t;) e.push(t), t = t.shadowRoot?.activeElement ?? null;
18219
18221
  return e;
18220
- }, TS = () => {
18221
- let e;
18222
+ }, TS = (e) => {
18223
+ let t = (t) => SS(t).filter((t) => !e?.(t)), n;
18222
18224
  try {
18223
- e = SS(document);
18224
- let t = e.length === 0 ? CS(document) : [];
18225
- for (let n = 0; e.length === 0 && t.length > 0 && n < bS; n++) {
18226
- let n = t.shift();
18227
- e = SS(n), t.push(...CS(n));
18225
+ n = t(document);
18226
+ let e = n.length === 0 ? CS(document) : [];
18227
+ for (let r = 0; n.length === 0 && e.length > 0 && r < bS; r++) {
18228
+ let r = e.shift();
18229
+ n = t(r), e.push(...CS(r));
18228
18230
  }
18229
18231
  } catch {
18230
18232
  return null;
18231
18233
  }
18232
- let t = wS();
18233
- return e.find((e) => t.some((t) => e.contains(t))) ?? e[e.length - 1] ?? null;
18234
+ let r = wS();
18235
+ return [...n].reverse().find((e) => r.some((t) => e.contains(t))) ?? n[n.length - 1] ?? null;
18234
18236
  };
18235
18237
  function ES(e) {
18236
18238
  let t = he(null), n, r = () => {
@@ -18322,18 +18324,213 @@ function PS(e, t, n) {
18322
18324
  p(), i = setInterval(p, yS);
18323
18325
  }, { immediate: !0 }), be(a);
18324
18326
  }
18327
+ var FS = 1e3, IS = 3, LS = 1e3, RS = "data-agent-studio-placeholder", zS = "a, button, input, label, select, summary, textarea, [contenteditable]", BS = "dialog[open], [popover]:popover-open", VS = [
18328
+ ["position", "fixed"],
18329
+ ["right", "auto"],
18330
+ ["bottom", "auto"],
18331
+ ["margin-top", "0"],
18332
+ ["margin-right", "0"],
18333
+ ["margin-bottom", "0"],
18334
+ ["margin-left", "0"],
18335
+ ["box-sizing", "border-box"],
18336
+ ["max-width", "none"],
18337
+ ["max-height", "none"],
18338
+ ["z-index", "2147483646"]
18339
+ ], HS = [
18340
+ "left",
18341
+ "top",
18342
+ "width",
18343
+ "height"
18344
+ ], US = () => typeof Element.prototype.moveBefore == "function", WS = (...e) => e.flatMap((e) => e.getAnimations?.() ?? []).filter((e) => e.playState === "running" && Number.isFinite(e.effect?.getComputedTiming().iterations ?? Infinity)), GS = (e) => WS(e).some((e) => {
18345
+ let t = e.effect;
18346
+ if (!t?.getKeyframes || e.playbackRate <= 0) return !1;
18347
+ let { iterations: n, direction: r } = t.getComputedTiming();
18348
+ if (n !== 1 || r !== "normal" && r !== "reverse") return !1;
18349
+ let i = t.getKeyframes(), a = r === "reverse" ? i[0] : i[i.length - 1];
18350
+ return !!a && "opacity" in a && Number(a.opacity) === 0;
18351
+ }), KS = (e) => GS(e) || [...e.children].some(GS), qS = (e, t) => e.width >= t.width * .95 && e.height >= t.height * .95, JS = (e) => {
18352
+ let t = e.getBoundingClientRect();
18353
+ if (!qS(t, {
18354
+ width: window.innerWidth,
18355
+ height: window.innerHeight
18356
+ })) return e;
18357
+ let n = (e) => {
18358
+ let n = e.getBoundingClientRect();
18359
+ return qS(n, t) ? 0 : n.width * n.height;
18360
+ }, r = [...e.children].filter((e) => n(e) > 0).sort((e, t) => n(t) - n(e))[0];
18361
+ return r && !r.matches(zS) ? r : e;
18362
+ }, YS = (e) => e.isConnected && !e.closest("[inert]") && e.getBoundingClientRect().width > 0, XS = (e, t, n) => {
18363
+ let r = t.shadowRoot, i = [...r?.querySelectorAll("*") ?? []].filter((e) => e.scrollTop > 0).map((e) => [e, e.scrollTop]), a = r?.activeElement, o = e;
18364
+ try {
18365
+ o.moveBefore(t, n);
18366
+ } catch {
18367
+ return !1;
18368
+ }
18369
+ for (let [e, t] of i) e.scrollTop = t;
18370
+ return a && r?.activeElement !== a && a.focus({ preventScroll: !0 }), !0;
18371
+ };
18372
+ function ZS(e, t) {
18373
+ let n = he(!1);
18374
+ if (!e || !US()) return n;
18375
+ let r = !1, i, a, o, s, c, l = {
18376
+ x: 0,
18377
+ y: 0
18378
+ }, u, d = 0, f, p, m, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), _ = () => {
18379
+ let t = [...VS.map(([e]) => e), ...HS].map((t) => [
18380
+ t,
18381
+ e.style.getPropertyValue(t),
18382
+ e.style.getPropertyPriority(t)
18383
+ ]);
18384
+ for (let [t, n] of VS) e.style.setProperty(t, n, "important");
18385
+ return () => {
18386
+ for (let [n, r, i] of t) r ? e.style.setProperty(n, r, i) : e.style.removeProperty(n);
18387
+ };
18388
+ }, v = (t, n) => {
18389
+ let r = `${n}px`;
18390
+ e.style.getPropertyValue(t) !== r && e.style.setProperty(t, r, "important");
18391
+ }, y = () => {
18392
+ let t = o.getBoundingClientRect();
18393
+ v("width", t.width), v("height", t.height);
18394
+ for (let n = 0; n < 2; n++) {
18395
+ v("left", t.left - l.x), v("top", t.top - l.y);
18396
+ let n = e.getBoundingClientRect(), r = n.left - t.left, i = n.top - t.top;
18397
+ if (Math.abs(r) < .5 && Math.abs(i) < .5) return;
18398
+ l = {
18399
+ x: l.x + r,
18400
+ y: l.y + i
18401
+ };
18402
+ }
18403
+ }, b = () => {
18404
+ let t = o.getBoundingClientRect(), n = e.getBoundingClientRect();
18405
+ if (![
18406
+ [n.left, t.left],
18407
+ [n.top, t.top],
18408
+ [n.width, t.width],
18409
+ [n.height, t.height]
18410
+ ].every(([e, t]) => Math.abs(e - t) < 1) || e.checkVisibility?.({
18411
+ opacityProperty: !0,
18412
+ visibilityProperty: !0
18413
+ }) === !1) return !1;
18414
+ 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(BS)));
18415
+ return !!a && (e.contains(a) || i(a));
18416
+ }, x = (t) => {
18417
+ if (t.key !== "Escape") return;
18418
+ let n = t.composedPath();
18419
+ n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(BS)) || t.preventDefault();
18420
+ }, S = () => {
18421
+ u?.disconnect(), u = void 0, cancelAnimationFrame(d), e.removeEventListener("keydown", x);
18422
+ let t = !!a?.contains(e) || !!i?.contains(e);
18423
+ if (i && !t && e.isConnected && g.add(i), t) {
18424
+ let t = o?.parentNode ? {
18425
+ parent: o.parentNode,
18426
+ next: o
18427
+ } : s;
18428
+ if (t) {
18429
+ let n = t.next?.parentNode === t.parent ? t.next : null;
18430
+ t.parent.isConnected && e.isConnected && XS(t.parent, e, n) || t.parent.insertBefore(e, n);
18431
+ }
18432
+ }
18433
+ o?.remove(), c?.(), i = void 0, a = void 0, o = void 0, s = void 0, c = void 0, n.value = !1;
18434
+ }, C = () => {
18435
+ let e = i, t = WS(e, ...e.children).length > 0;
18436
+ t ? h.delete(e) : g.add(e), S(), t && T();
18437
+ }, ee = () => {
18438
+ if (i && o) {
18439
+ if (YS(o)) {
18440
+ if (y(), !n.value) {
18441
+ if (!b()) {
18442
+ C();
18443
+ return;
18444
+ }
18445
+ n.value = !0;
18446
+ }
18447
+ d = requestAnimationFrame(ee);
18448
+ } else {
18449
+ let t = i;
18450
+ S(), YS(e) && g.add(t), T();
18451
+ }
18452
+ }
18453
+ }, w = (t) => {
18454
+ let n = JS(t), { height: r } = e.getBoundingClientRect(), f = document.createElement("div");
18455
+ 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(RS, ""), s = {
18456
+ parent: e.parentNode,
18457
+ next: e.nextSibling
18458
+ }, s.parent.insertBefore(f, e), o = f, c = _(), XS(n, e, null) ? (i = t, a = n, l = {
18459
+ x: 0,
18460
+ y: 0
18461
+ }, y(), e.addEventListener("keydown", x), u = new MutationObserver(T), u.observe(t, {
18462
+ attributes: !0,
18463
+ attributeFilter: [
18464
+ "open",
18465
+ "class",
18466
+ "style"
18467
+ ]
18468
+ }), n !== t && u.observe(n, {
18469
+ attributes: !0,
18470
+ attributeFilter: [
18471
+ "class",
18472
+ "style",
18473
+ "hidden"
18474
+ ]
18475
+ }), u.observe(document, {
18476
+ childList: !0,
18477
+ subtree: !0
18478
+ }), d = requestAnimationFrame(ee)) : (g.add(t), S());
18479
+ }, T = () => {
18480
+ if (!r) return;
18481
+ let t = (e) => !e.open || !e.isConnected;
18482
+ for (let e of [g, h]) for (let n of e) t(n) && e.delete(n);
18483
+ m && t(m.dialog) && (m = void 0);
18484
+ let s = TS((e) => e === p), c = s && !g.has(s) && s.getBoundingClientRect().width > 0 && !KS(s) ? s : null;
18485
+ if (i) {
18486
+ if (i === c && a?.contains(e) && i.contains(a) && o && YS(o)) {
18487
+ n.value && !b() && C();
18488
+ return;
18489
+ }
18490
+ S();
18491
+ }
18492
+ c && !g.has(c) && YS(e) && (h.has(c) ? w(c) : E(c));
18493
+ }, E = (e) => {
18494
+ if (m?.dialog === e) return;
18495
+ let t = { dialog: e };
18496
+ m = t;
18497
+ let n = IS, r = () => {
18498
+ if (m !== t) return;
18499
+ if (--n > 0) {
18500
+ requestAnimationFrame(r);
18501
+ return;
18502
+ }
18503
+ let i = WS(e, ...e.children);
18504
+ Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e, LS))]).then(() => {
18505
+ m === t && (m = void 0, h.add(e), T());
18506
+ });
18507
+ };
18508
+ requestAnimationFrame(r);
18509
+ }, D = (e) => {
18510
+ e.target === i && e.newState === "closed" && (p = i, T(), p = void 0);
18511
+ }, te = (e) => {
18512
+ e.target instanceof HTMLDialogElement && T();
18513
+ }, O = () => {
18514
+ r = !0, document.addEventListener("beforetoggle", D, !0), document.addEventListener("toggle", te, !0), f = setInterval(T, FS), T();
18515
+ }, k = () => {
18516
+ r = !1, document.removeEventListener("beforetoggle", D, !0), document.removeEventListener("toggle", te, !0), clearInterval(f), f = void 0, m = void 0, i && S(), g.clear(), h.clear();
18517
+ };
18518
+ return I(() => X(t), (e) => {
18519
+ k(), e && O();
18520
+ }, { immediate: !0 }), be(k), n;
18521
+ }
18325
18522
  // ../../packages/components/src/chat/PkChatbotAuth.vue?vue&type=script&setup=true&lang.ts
18326
18523
  G(), Y(), R(), De();
18327
- var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, IS = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, LS = { 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" }, RS = { class: "font-bold text-18 mb-xs" }, zS = { class: "mb-lg text-16 text-word-3" }, BS = {
18524
+ var QS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, $S = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, eC = { 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" }, tC = { class: "font-bold text-18 mb-xs" }, nC = { class: "mb-lg text-16 text-word-3" }, rC = {
18328
18525
  key: "form",
18329
18526
  class: "pk-chatbot-auth__flip-card flex flex-col"
18330
- }, VS = { class: "flex flex-col" }, HS = {
18527
+ }, iC = { class: "flex flex-col" }, aC = {
18331
18528
  key: 0,
18332
18529
  class: "flex justify-center mb-md"
18333
- }, US = ["src", "alt"], WS = { class: "text-center leading-normal mb-lg" }, GS = {
18530
+ }, oC = ["src", "alt"], sC = { class: "text-center leading-normal mb-lg" }, cC = {
18334
18531
  key: 0,
18335
18532
  class: "font-bold text-20 m-0"
18336
- }, KS = { class: "text-14 text-word-3 text-center leading-normal mb-md" }, qS = { class: "flex justify-center mt-md" }, JS = { class: "mb-md" }, YS = { class: "mb-md" }, XS = { class: "mb-md" }, ZS = { class: "vv-separator mt-xs py-xs" }, QS = { class: "pt-lg text-center text-word-3" }, $S = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
18533
+ }, lC = { class: "text-14 text-word-3 text-center leading-normal mb-md" }, uC = { class: "flex justify-center mt-md" }, dC = { class: "mb-md" }, fC = { class: "mb-md" }, pC = { class: "mb-md" }, mC = { class: "vv-separator mt-xs py-xs" }, hC = { class: "pt-lg text-center text-word-3" }, gC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
18337
18534
  __name: "PkChatbotAuth",
18338
18535
  props: /*@__PURE__*/ ae({
18339
18536
  branding: {
@@ -18381,35 +18578,35 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18381
18578
  email: s(),
18382
18579
  password: _i,
18383
18580
  rememberMe: v().default(!1)
18384
- }), g = i({ email: s() }), { VvForm: _, VvFormField: y } = kn(h, { lazyLoad: !0 }), { VvForm: b, VvFormField: x, clear: S } = kn(yi, { lazyLoad: !0 }), { VvForm: ee, VvFormField: te, clear: C } = kn(g, { lazyLoad: !0 });
18581
+ }), g = i({ email: s() }), { VvForm: _, VvFormField: y } = kn(h, { lazyLoad: !0 }), { VvForm: b, VvFormField: x, clear: S } = kn(yi, { lazyLoad: !0 }), { VvForm: C, VvFormField: ee, clear: w } = kn(g, { lazyLoad: !0 });
18385
18582
  I(u, (e) => {
18386
- e && (S(), C());
18583
+ e && (S(), w());
18387
18584
  });
18388
- let w = W();
18389
- function E() {
18390
- u.value && w.value?.focus();
18585
+ let T = W();
18586
+ function D() {
18587
+ u.value && T.value?.focus();
18391
18588
  }
18392
- function ne(e) {
18589
+ function te(e) {
18393
18590
  d("sign-in", {
18394
18591
  email: e.email,
18395
18592
  password: e.password,
18396
18593
  rememberMe: e.rememberMe ?? !1
18397
18594
  });
18398
18595
  }
18399
- function D(e) {
18596
+ function O(e) {
18400
18597
  d("sign-up", {
18401
18598
  name: e.name.trim(),
18402
18599
  email: e.email,
18403
18600
  password: e.password
18404
18601
  });
18405
18602
  }
18406
- function O(e) {
18603
+ function k(e) {
18407
18604
  d("request-reset", { email: e.email });
18408
18605
  }
18409
- function re(e) {
18606
+ function ne(e) {
18410
18607
  d("social", e);
18411
18608
  }
18412
- let k = U(() => !!r.twoFactorMethods?.length), A = W("totp"), { VvForm: ie, VvFormField: j, clear: ae } = kn(i({ code: o().trim().min(6).max(32) }), { lazyLoad: !0 });
18609
+ let re = U(() => !!r.twoFactorMethods?.length), A = W("totp"), { VvForm: ie, VvFormField: j, clear: ae } = kn(i({ code: o().trim().min(6).max(32) }), { lazyLoad: !0 });
18413
18610
  I(() => r.twoFactorMethods, (e) => {
18414
18611
  e?.length && (A.value = e.includes("totp") ? "totp" : "otp", ae(), A.value === "otp" && d("send-two-factor-code"));
18415
18612
  }, { immediate: !0 });
@@ -18425,41 +18622,41 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18425
18622
  }
18426
18623
  return (t, r) => {
18427
18624
  let i = Cn, o = Tn, s = Sn, h = gn;
18428
- return P(), Z("div", FS, [H("div", IS, [F(K, {
18625
+ return P(), Z("div", QS, [H("div", $S, [F(K, {
18429
18626
  name: "pk-flip",
18430
18627
  mode: "out-in",
18431
- onAfterEnter: E
18628
+ onAfterEnter: D
18432
18629
  }, {
18433
18630
  default: B(() => [u.value ? (P(), Z("div", {
18434
18631
  ref_key: "successCard",
18435
- ref: w,
18632
+ ref: T,
18436
18633
  key: "success",
18437
18634
  tabindex: "-1",
18438
18635
  class: "pk-chatbot-auth__flip-card outline-none flex flex-col text-center leading-normal"
18439
18636
  }, [
18440
- H("div", LS, [F(i, {
18637
+ H("div", eC, [F(i, {
18441
18638
  name: "ri:mail-check-line",
18442
18639
  "aria-hidden": "true",
18443
18640
  class: "text-success w-32 h-32"
18444
18641
  })]),
18445
- H("h1", RS, N(u.value.title), 1),
18446
- H("p", zS, N(u.value.message), 1),
18642
+ H("h1", tC, N(u.value.title), 1),
18643
+ H("p", nC, N(u.value.message), 1),
18447
18644
  F(o, {
18448
18645
  type: "button",
18449
18646
  modifiers: "link",
18450
18647
  icon: "chevron-left",
18451
- label: T(n)("action.backToSignIn"),
18648
+ label: E(n)("action.backToSignIn"),
18452
18649
  onClick: p
18453
18650
  }, null, 8, ["label"])
18454
- ], 512)) : (P(), Z("div", BS, [H("div", VS, [
18455
- T(a)(e.branding?.interface.logo) ? (P(), Z("div", HS, [H("img", {
18651
+ ], 512)) : (P(), Z("div", rC, [H("div", iC, [
18652
+ E(a)(e.branding?.interface.logo) ? (P(), Z("div", aC, [H("img", {
18456
18653
  src: e.branding?.interface.logo,
18457
18654
  alt: e.branding?.name,
18458
18655
  class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
18459
- onError: r[0] ||= (t) => T(c)(e.branding?.interface.logo)
18460
- }, null, 40, US)])) : q("", !0),
18461
- H("div", WS, [e.branding?.name ? (P(), Z("h1", GS, N(e.branding.name), 1)) : q("", !0), (P(), L(fe(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
18462
- default: B(() => [k.value ? (P(), Z(V, { key: 0 }, [Ne(N(T(n)("twoFactor.challengeTitle")), 1)], 64)) : f.value === "sign-in" ? (P(), Z(V, { key: 1 }, [Ne(N(T(n)("auth.signInTitle")), 1)], 64)) : f.value === "sign-up" ? (P(), Z(V, { key: 2 }, [Ne(N(T(n)("auth.signUpTitle")), 1)], 64)) : f.value === "reset" ? (P(), Z(V, { key: 3 }, [Ne(N(T(n)("auth.resetTitle")), 1)], 64)) : q("", !0)]),
18656
+ onError: r[0] ||= (t) => E(c)(e.branding?.interface.logo)
18657
+ }, null, 40, oC)])) : q("", !0),
18658
+ H("div", sC, [e.branding?.name ? (P(), Z("h1", cC, N(e.branding.name), 1)) : q("", !0), (P(), L(fe(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
18659
+ default: B(() => [re.value ? (P(), Z(V, { key: 0 }, [Ne(N(E(n)("twoFactor.challengeTitle")), 1)], 64)) : f.value === "sign-in" ? (P(), Z(V, { key: 1 }, [Ne(N(E(n)("auth.signInTitle")), 1)], 64)) : f.value === "sign-up" ? (P(), Z(V, { key: 2 }, [Ne(N(E(n)("auth.signUpTitle")), 1)], 64)) : f.value === "reset" ? (P(), Z(V, { key: 3 }, [Ne(N(E(n)("auth.resetTitle")), 1)], 64)) : q("", !0)]),
18463
18660
  _: 1
18464
18661
  }))]),
18465
18662
  l.value ? (P(), L(s, {
@@ -18468,25 +18665,25 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18468
18665
  class: "mb-md",
18469
18666
  content: l.value
18470
18667
  }, null, 8, ["content"])) : q("", !0),
18471
- k.value ? (P(), Z(V, { key: 2 }, [
18472
- H("p", KS, N(M.value), 1),
18473
- F(T(ie), {
18668
+ re.value ? (P(), Z(V, { key: 2 }, [
18669
+ H("p", lC, N(M.value), 1),
18670
+ F(E(ie), {
18474
18671
  class: "flex flex-col",
18475
18672
  readonly: e.loading,
18476
18673
  onSubmit: se
18477
18674
  }, {
18478
- default: B(() => [F(T(j), {
18675
+ default: B(() => [F(E(j), {
18479
18676
  name: "code",
18480
18677
  type: "text",
18481
18678
  autocomplete: A.value === "backup" ? "off" : "one-time-code",
18482
- label: A.value === "backup" ? T(n)("twoFactor.backupCode") : T(n)("twoFactor.code"),
18679
+ label: A.value === "backup" ? E(n)("twoFactor.backupCode") : E(n)("twoFactor.code"),
18483
18680
  floating: ""
18484
18681
  }, null, 8, ["autocomplete", "label"]), F(o, {
18485
18682
  type: "submit",
18486
18683
  modifiers: "primary",
18487
18684
  loading: e.loading,
18488
18685
  disabled: e.loading,
18489
- label: T(n)("twoFactor.verify")
18686
+ label: E(n)("twoFactor.verify")
18490
18687
  }, null, 8, [
18491
18688
  "loading",
18492
18689
  "disabled",
@@ -18494,57 +18691,57 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18494
18691
  ])]),
18495
18692
  _: 1
18496
18693
  }, 8, ["readonly"]),
18497
- H("div", qS, [A.value === "totp" ? (P(), L(o, {
18694
+ H("div", uC, [A.value === "totp" ? (P(), L(o, {
18498
18695
  key: 0,
18499
18696
  type: "button",
18500
18697
  modifiers: "link",
18501
- label: T(n)("twoFactor.useBackupCode"),
18698
+ label: E(n)("twoFactor.useBackupCode"),
18502
18699
  onClick: r[1] ||= (e) => oe("backup")
18503
18700
  }, null, 8, ["label"])) : A.value === "backup" ? (P(), L(o, {
18504
18701
  key: 1,
18505
18702
  type: "button",
18506
18703
  modifiers: "link",
18507
- label: T(n)("twoFactor.useApp"),
18704
+ label: E(n)("twoFactor.useApp"),
18508
18705
  onClick: r[2] ||= (e) => oe("totp")
18509
18706
  }, null, 8, ["label"])) : (P(), L(o, {
18510
18707
  key: 2,
18511
18708
  type: "button",
18512
18709
  modifiers: "link",
18513
18710
  disabled: e.loading,
18514
- label: T(n)("twoFactor.sendAgain"),
18711
+ label: E(n)("twoFactor.sendAgain"),
18515
18712
  onClick: r[3] ||= (e) => d("send-two-factor-code")
18516
18713
  }, null, 8, ["disabled", "label"]))])
18517
- ], 64)) : f.value === "sign-in" ? (P(), L(T(_), {
18714
+ ], 64)) : f.value === "sign-in" ? (P(), L(E(_), {
18518
18715
  key: 3,
18519
18716
  class: "flex flex-col",
18520
18717
  readonly: e.loading,
18521
- onSubmit: ne
18718
+ onSubmit: te
18522
18719
  }, {
18523
- default: B(() => [H("div", JS, [
18524
- F(T(y), {
18720
+ default: B(() => [H("div", dC, [
18721
+ F(E(y), {
18525
18722
  name: "email",
18526
18723
  type: "email",
18527
18724
  autocomplete: "username",
18528
- label: T(n)("label.email"),
18725
+ label: E(n)("label.email"),
18529
18726
  floating: ""
18530
18727
  }, null, 8, ["label"]),
18531
- F(T(y), {
18728
+ F(E(y), {
18532
18729
  name: "password",
18533
18730
  type: "password",
18534
18731
  autocomplete: "current-password",
18535
- label: T(n)("label.password"),
18732
+ label: E(n)("label.password"),
18536
18733
  floating: ""
18537
18734
  }, null, 8, ["label"]),
18538
- H("div", YS, [F(o, {
18735
+ H("div", fC, [F(o, {
18539
18736
  type: "button",
18540
18737
  modifiers: "link",
18541
- label: T(n)("action.forgetPassword"),
18738
+ label: E(n)("action.forgetPassword"),
18542
18739
  onClick: r[4] ||= (e) => f.value = "reset"
18543
18740
  }, null, 8, ["label"])]),
18544
- F(T(y), {
18741
+ F(E(y), {
18545
18742
  name: "rememberMe",
18546
18743
  type: "checkbox",
18547
- label: T(n)("label.rememberMe"),
18744
+ label: E(n)("label.rememberMe"),
18548
18745
  switch: ""
18549
18746
  }, null, 8, ["label"])
18550
18747
  ]), F(o, {
@@ -18552,46 +18749,46 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18552
18749
  modifiers: "primary",
18553
18750
  loading: e.loading,
18554
18751
  disabled: e.loading,
18555
- label: T(n)("action.signIn")
18752
+ label: E(n)("action.signIn")
18556
18753
  }, null, 8, [
18557
18754
  "loading",
18558
18755
  "disabled",
18559
18756
  "label"
18560
18757
  ])]),
18561
18758
  _: 1
18562
- }, 8, ["readonly"])) : f.value === "sign-up" ? (P(), L(T(b), {
18759
+ }, 8, ["readonly"])) : f.value === "sign-up" ? (P(), L(E(b), {
18563
18760
  key: 4,
18564
18761
  class: "flex flex-col",
18565
18762
  readonly: e.loading,
18566
- onSubmit: D
18763
+ onSubmit: O
18567
18764
  }, {
18568
- default: B(() => [H("div", XS, [
18569
- F(T(x), {
18765
+ default: B(() => [H("div", pC, [
18766
+ F(E(x), {
18570
18767
  name: "name",
18571
18768
  type: "text",
18572
18769
  autocomplete: "name",
18573
- label: T(n)("label.name"),
18770
+ label: E(n)("label.name"),
18574
18771
  floating: ""
18575
18772
  }, null, 8, ["label"]),
18576
- F(T(x), {
18773
+ F(E(x), {
18577
18774
  name: "email",
18578
18775
  type: "email",
18579
18776
  autocomplete: "username",
18580
- label: T(n)("label.email"),
18777
+ label: E(n)("label.email"),
18581
18778
  floating: ""
18582
18779
  }, null, 8, ["label"]),
18583
- F(T(x), {
18780
+ F(E(x), {
18584
18781
  name: "password",
18585
18782
  type: "password",
18586
18783
  autocomplete: "new-password",
18587
- label: T(n)("label.password"),
18784
+ label: E(n)("label.password"),
18588
18785
  floating: ""
18589
18786
  }, null, 8, ["label"]),
18590
- F(T(x), {
18787
+ F(E(x), {
18591
18788
  name: "passwordConfirmation",
18592
18789
  type: "password",
18593
18790
  autocomplete: "new-password",
18594
- label: T(n)("label.confirmPassword"),
18791
+ label: E(n)("label.confirmPassword"),
18595
18792
  floating: ""
18596
18793
  }, null, 8, ["label"])
18597
18794
  ]), F(o, {
@@ -18599,24 +18796,24 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18599
18796
  modifiers: "primary",
18600
18797
  loading: e.loading,
18601
18798
  disabled: e.loading,
18602
- label: T(n)("action.continue")
18799
+ label: E(n)("action.continue")
18603
18800
  }, null, 8, [
18604
18801
  "loading",
18605
18802
  "disabled",
18606
18803
  "label"
18607
18804
  ])]),
18608
18805
  _: 1
18609
- }, 8, ["readonly"])) : f.value === "reset" ? (P(), L(T(ee), {
18806
+ }, 8, ["readonly"])) : f.value === "reset" ? (P(), L(E(C), {
18610
18807
  key: 5,
18611
18808
  class: "flex flex-col",
18612
18809
  readonly: e.loading,
18613
- onSubmit: O
18810
+ onSubmit: k
18614
18811
  }, {
18615
- default: B(() => [F(T(te), {
18812
+ default: B(() => [F(E(ee), {
18616
18813
  name: "email",
18617
18814
  type: "email",
18618
18815
  autocomplete: "username",
18619
- label: T(n)("label.email"),
18816
+ label: E(n)("label.email"),
18620
18817
  floating: ""
18621
18818
  }, null, 8, ["label"]), F(h, { modifiers: "vertical" }, {
18622
18819
  default: B(() => [F(o, {
@@ -18624,7 +18821,7 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18624
18821
  modifiers: "primary",
18625
18822
  loading: e.loading,
18626
18823
  disabled: e.loading,
18627
- label: T(n)("action.submit")
18824
+ label: E(n)("action.submit")
18628
18825
  }, null, 8, [
18629
18826
  "loading",
18630
18827
  "disabled",
@@ -18634,7 +18831,7 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18634
18831
  })]),
18635
18832
  _: 1
18636
18833
  }, 8, ["readonly"])) : q("", !0),
18637
- !k.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (P(), Z(V, { key: 6 }, [H("div", ZS, [H("span", null, N(T(n)("label.or")), 1)]), F(h, {
18834
+ !re.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (P(), Z(V, { key: 6 }, [H("div", mC, [H("span", null, N(E(n)("label.or")), 1)]), F(h, {
18638
18835
  modifiers: "vertical",
18639
18836
  class: "gap-xs mt-xs"
18640
18837
  }, {
@@ -18644,64 +18841,64 @@ var FS = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18644
18841
  modifiers: "secondary",
18645
18842
  icon: "logos:google-icon",
18646
18843
  disabled: e.loading,
18647
- label: T(n)("action.signInWithSocialProvider", { provider: "Google" }),
18648
- onClick: r[5] ||= (e) => re("google")
18844
+ label: E(n)("action.signInWithSocialProvider", { provider: "Google" }),
18845
+ onClick: r[5] ||= (e) => ne("google")
18649
18846
  }, null, 8, ["disabled", "label"])) : q("", !0), e.authMethods?.microsoft ? (P(), L(o, {
18650
18847
  key: 1,
18651
18848
  type: "button",
18652
18849
  modifiers: "secondary",
18653
18850
  icon: "logos:microsoft-icon",
18654
18851
  disabled: e.loading,
18655
- label: T(n)("action.signInWithSocialProvider", { provider: "Microsoft" }),
18656
- onClick: r[6] ||= (e) => re("microsoft")
18852
+ label: E(n)("action.signInWithSocialProvider", { provider: "Microsoft" }),
18853
+ onClick: r[6] ||= (e) => ne("microsoft")
18657
18854
  }, null, 8, ["disabled", "label"])) : q("", !0)]),
18658
18855
  _: 1
18659
18856
  })], 64)) : q("", !0)
18660
- ]), H("div", QS, [k.value ? (P(), L(o, {
18857
+ ]), H("div", hC, [re.value ? (P(), L(o, {
18661
18858
  key: 0,
18662
18859
  type: "button",
18663
18860
  modifiers: "link",
18664
18861
  icon: "chevron-left",
18665
- label: T(n)("action.backToSignIn"),
18862
+ label: E(n)("action.backToSignIn"),
18666
18863
  onClick: r[7] ||= (e) => d("cancel-two-factor")
18667
- }, null, 8, ["label"])) : f.value === "sign-in" ? (P(), Z(V, { key: 1 }, [Ne(N(T(n)("auth.noAccount")) + " ", 1), F(o, {
18864
+ }, null, 8, ["label"])) : f.value === "sign-in" ? (P(), Z(V, { key: 1 }, [Ne(N(E(n)("auth.noAccount")) + " ", 1), F(o, {
18668
18865
  type: "button",
18669
18866
  modifiers: "link",
18670
18867
  class: "font-semibold",
18671
- label: T(n)("action.signUp"),
18868
+ label: E(n)("action.signUp"),
18672
18869
  onClick: r[8] ||= (e) => f.value = "sign-up"
18673
- }, null, 8, ["label"])], 64)) : f.value === "sign-up" ? (P(), Z(V, { key: 2 }, [Ne(N(T(n)("auth.haveAccount")) + " ", 1), F(o, {
18870
+ }, null, 8, ["label"])], 64)) : f.value === "sign-up" ? (P(), Z(V, { key: 2 }, [Ne(N(E(n)("auth.haveAccount")) + " ", 1), F(o, {
18674
18871
  type: "button",
18675
18872
  modifiers: "link",
18676
18873
  class: "font-semibold",
18677
- label: T(n)("action.signIn"),
18874
+ label: E(n)("action.signIn"),
18678
18875
  onClick: r[9] ||= (e) => f.value = "sign-in"
18679
18876
  }, null, 8, ["label"])], 64)) : (P(), L(o, {
18680
18877
  key: 3,
18681
18878
  type: "button",
18682
18879
  modifiers: "link",
18683
18880
  icon: "chevron-left",
18684
- label: T(n)("action.backToSignIn"),
18881
+ label: E(n)("action.backToSignIn"),
18685
18882
  onClick: r[10] ||= (e) => f.value = "sign-in"
18686
18883
  }, null, 8, ["label"]))])]))]),
18687
18884
  _: 1
18688
18885
  })])]);
18689
18886
  };
18690
18887
  }
18691
- }), [["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)}}"]]]), eC = "@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;";
18888
+ }), [["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)}}"]]]), _C = "@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;";
18692
18889
  // ../../packages/components/src/PkLoader.vue
18693
18890
  G();
18694
- var tC = {};
18695
- function nC(e, t) {
18891
+ var vC = {};
18892
+ function yC(e, t) {
18696
18893
  return P(), Z("div", null, [...t[0] ||= [H("div", {
18697
18894
  "aria-hidden": "true",
18698
18895
  class: "pk-loader"
18699
18896
  }, null, -1)]]);
18700
18897
  }
18701
- var rC = /*#__PURE__*/ Mn(tC, [["render", nC], ["styles", [eC]]]);
18898
+ var bC = /*#__PURE__*/ Mn(vC, [["render", yC], ["styles", [_C]]]);
18702
18899
  // ../../packages/components/src/chat/PkWelcomePopup.vue?vue&type=script&setup=true&lang.ts
18703
18900
  G(), Y(), De(), R();
18704
- var iC = { class: "welcome-popup__text" }, aC = ["aria-label"], oC = 100, sC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
18901
+ var xC = { class: "welcome-popup__text" }, SC = ["aria-label"], CC = 100, wC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
18705
18902
  __name: "PkWelcomePopup",
18706
18903
  props: {
18707
18904
  agentId: { type: String },
@@ -18722,7 +18919,7 @@ var iC = { class: "welcome-popup__text" }, aC = ["aria-label"], oC = 100, sC = /
18722
18919
  c.value = [], s.value = !1;
18723
18920
  let t = e.split(/(\s+)/), n = 0;
18724
18921
  function r() {
18725
- n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, oC)) : s.value = !0;
18922
+ n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, CC)) : s.value = !0;
18726
18923
  }
18727
18924
  r();
18728
18925
  }
@@ -18746,7 +18943,7 @@ var iC = { class: "welcome-popup__text" }, aC = ["aria-label"], oC = 100, sC = /
18746
18943
  key: 0,
18747
18944
  class: "welcome-popup",
18748
18945
  onClick: ve(m, ["stop"])
18749
- }, [H("p", iC, [(P(!0), Z(V, null, C(c.value, (e, t) => (P(), Z("span", {
18946
+ }, [H("p", xC, [(P(!0), Z(V, null, w(c.value, (e, t) => (P(), Z("span", {
18750
18947
  key: t,
18751
18948
  class: "welcome-popup__word"
18752
18949
  }, N(e), 1))), 128))]), F(K, null, {
@@ -18762,7 +18959,7 @@ var iC = { class: "welcome-popup__text" }, aC = ["aria-label"], oC = 100, sC = /
18762
18959
  width: "14",
18763
18960
  height: "14",
18764
18961
  fill: "currentColor"
18765
- }, [H("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, aC)) : q("", !0)]),
18962
+ }, [H("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, SC)) : q("", !0)]),
18766
18963
  _: 1
18767
18964
  })])) : q("", !0)]),
18768
18965
  _: 1
@@ -18771,30 +18968,30 @@ var iC = { class: "welcome-popup__text" }, aC = ["aria-label"], oC = 100, sC = /
18771
18968
  }), [["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);border-radius:var(--rounded-full);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-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)}}"]]]);
18772
18969
  // ../../packages/components/src/chat/PkWorkingBeam.vue?vue&type=script&setup=true&lang.ts
18773
18970
  G(), De();
18774
- var cC = {
18971
+ var TC = {
18775
18972
  key: 0,
18776
18973
  class: "pk-working-beam",
18777
18974
  "aria-hidden": "true"
18778
- }, lC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
18975
+ }, EC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
18779
18976
  __name: "PkWorkingBeam",
18780
18977
  props: { active: { type: Boolean } },
18781
18978
  setup(e) {
18782
18979
  return (t, n) => (P(), L(K, { name: "pk-working-beam" }, {
18783
- default: B(() => [e.active ? (P(), Z("span", cC, [...n[0] ||= [H("span", { class: "pk-working-beam__halo" }, null, -1), H("span", { class: "pk-working-beam__ring" }, [H("span", { class: "pk-working-beam__light" })], -1)]])) : q("", !0)]),
18980
+ default: B(() => [e.active ? (P(), Z("span", TC, [...n[0] ||= [H("span", { class: "pk-working-beam__halo" }, null, -1), H("span", { class: "pk-working-beam__ring" }, [H("span", { class: "pk-working-beam__light" })], -1)]])) : q("", !0)]),
18784
18981
  _: 1
18785
18982
  }));
18786
18983
  }
18787
18984
  }), [["styles", [".pk-working-beam{--pk-working-beam-source:var(--pk-working-beam-color,var(--chatbot-main-color,var(--color-brand)));--pk-working-beam-main:var(--pk-working-beam-source);--pk-working-beam-tone-before:var(--pk-working-beam-main);--pk-working-beam-tone-after:var(--pk-working-beam-main);border-radius:inherit;pointer-events:none;position:absolute;inset:0;container-type:size}@supports (color:oklch(from red l c h)){.pk-working-beam{--pk-working-beam-main:oklch(from var(--pk-working-beam-source) clamp(.55, l, .75) c h);--pk-working-beam-tone-before:oklch(from var(--pk-working-beam-main) l c calc(h - 40));--pk-working-beam-tone-after:oklch(from var(--pk-working-beam-main) l c calc(h + 40))}}.pk-working-beam__halo{border-radius:inherit;box-shadow:inset 0 0 var(--spacing-32) color-mix(in srgb, var(--pk-working-beam-main) 60%, transparent), 0 0 var(--spacing-24) color-mix(in srgb, var(--pk-working-beam-main) 45%, transparent);animation:2s ease-in-out infinite alternate pk-working-beam-pulse;position:absolute;inset:0}.pk-working-beam__ring{border-radius:inherit;padding:var(--spacing-3);-webkit-mask-composite:xor;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-working-beam__light{aspect-ratio:1;background:conic-gradient(transparent 0 12%, var(--pk-working-beam-tone-before) 24%, var(--pk-working-beam-main) 38%, var(--pk-working-beam-tone-after) 46%, transparent 50% 62%, var(--pk-working-beam-tone-before) 74%, var(--pk-working-beam-main) 88%, var(--pk-working-beam-tone-after) 96%, transparent);width:calc(100cqw + 100cqh);animation:4s linear infinite pk-working-beam-turn;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@supports (width:hypot(1px, 1px)){.pk-working-beam__light{width:hypot(100cqw,100cqh)}}@media (prefers-reduced-motion:reduce){.pk-working-beam__halo{animation:none}.pk-working-beam__light{background:var(--pk-working-beam-main);animation:none}}.pk-working-beam-enter-active,.pk-working-beam-leave-active{transition:opacity var(--duration-300) ease-out}.pk-working-beam-enter-from,.pk-working-beam-leave-to{opacity:0}@keyframes pk-working-beam-turn{to{transform:translate(-50%,-50%)rotate(1turn)}}@keyframes pk-working-beam-pulse{0%{opacity:.55}}"]]]);
18788
18985
  // src/components/FloatingChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
18789
18986
  G(), R(), Y(), De();
18790
- var uC = {
18987
+ var DC = {
18791
18988
  key: 0,
18792
18989
  class: "floating-chat-widget__frame",
18793
18990
  "aria-hidden": "true"
18794
- }, dC = {
18991
+ }, OC = {
18795
18992
  key: 0,
18796
18993
  class: "floating-chat-widget__launcher"
18797
- }, fC = ["aria-label", "aria-expanded"], pC = {
18994
+ }, kC = ["aria-label", "aria-expanded"], AC = {
18798
18995
  key: 0,
18799
18996
  class: "w-full h-full",
18800
18997
  xmlns: "http://www.w3.org/2000/svg",
@@ -18802,7 +18999,7 @@ var uC = {
18802
18999
  width: "24",
18803
19000
  height: "24",
18804
19001
  fill: "currentColor"
18805
- }, mC = {
19002
+ }, jC = {
18806
19003
  key: 1,
18807
19004
  class: "w-full h-full",
18808
19005
  xmlns: "http://www.w3.org/2000/svg",
@@ -18810,13 +19007,13 @@ var uC = {
18810
19007
  width: "24",
18811
19008
  height: "24",
18812
19009
  fill: "currentColor"
18813
- }, hC = {
19010
+ }, MC = {
18814
19011
  key: 0,
18815
19012
  class: "floating-chat-widget__chat floating-chat-widget__auth"
18816
- }, gC = { class: "floating-chat-widget__close" }, _C = {
19013
+ }, NC = { class: "floating-chat-widget__close" }, PC = {
18817
19014
  key: 0,
18818
19015
  class: "floating-chat-widget__chat floating-chat-widget__loading"
18819
- }, vC = { class: "floating-chat-widget__close" }, yC = 450, bC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
19016
+ }, FC = { class: "floating-chat-widget__close" }, IC = 450, LC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
18820
19017
  inheritAttrs: !1,
18821
19018
  __name: "FloatingChatWidget.ce",
18822
19019
  props: {
@@ -18872,7 +19069,7 @@ var uC = {
18872
19069
  });
18873
19070
  let { PkGlobalDialog: i } = Vf(), { emit: a } = Ih(), o = W(), s = W(), c = he([]), l = On(U(() => `${n.agentId}-is-open`), !1), u = () => {
18874
19071
  l.value = !l.value, Di(l.value ? "widget_opened" : "widget_closed"), a(l.value ? "opened" : "closed"), l.value || o.value?.stopGeneration();
18875
- }, { session: d, onError: f, headers: p, token: m, userId: h, isExternalAuth: g, signInWithEmail: _, twoFactorChallenge: v, verifyTwoFactor: y, sendTwoFactorCode: b, cancelTwoFactor: x, signUpWithEmail: S, requestPasswordReset: ee, signInWithSocialPopup: te, signInWithExternalToken: C, signOut: w } = p_({
19072
+ }, { session: d, onError: f, headers: p, token: m, userId: h, isExternalAuth: g, signInWithEmail: _, twoFactorChallenge: v, verifyTwoFactor: y, sendTwoFactorCode: b, cancelTwoFactor: x, signUpWithEmail: S, requestPasswordReset: C, signInWithSocialPopup: ee, signInWithExternalToken: w, signOut: T } = p_({
18876
19073
  baseUrl: r,
18877
19074
  externalToken: () => n.externalToken,
18878
19075
  awaitExternalToken: !!n.awaitExternalToken && n.awaitExternalToken !== "false",
@@ -18887,26 +19084,26 @@ var uC = {
18887
19084
  I(h, (e) => {
18888
19085
  e && Ei({ userId: e });
18889
19086
  });
18890
- let { t: E } = Le({ useScope: "global" }), D = m_({
19087
+ let { t: D } = Le({ useScope: "global" }), O = m_({
18891
19088
  agentId: n.agentId,
18892
19089
  baseUrl: r,
18893
19090
  headers: p,
18894
19091
  userId: h
18895
19092
  });
18896
- Lh(() => D.isWorking), Rh(() => D.pageControlActive);
18897
- let O = ES(() => !!D.hostConfirmation || D.pageControlActive);
18898
- PS(O, () => D.pageControlActive, {
18899
- text: () => E("messagePart.pageControlActive"),
18900
- stopLabel: () => E("action.stop"),
18901
- onStop: () => void D.stopHostActions()
19093
+ Lh(() => O.isWorking), Rh(() => O.pageControlActive);
19094
+ let k = ES(() => !!O.hostConfirmation || O.pageControlActive);
19095
+ PS(k, () => O.pageControlActive, {
19096
+ text: () => D("messagePart.pageControlActive"),
19097
+ stopLabel: () => D("action.stop"),
19098
+ onStop: () => void O.stopHostActions()
18902
19099
  });
18903
- let re = x_(o, () => D.localChatId);
19100
+ let ne = x_(o, () => O.localChatId);
18904
19101
  I(l, (e) => {
18905
- e || re.clear();
19102
+ e || ne.clear();
18906
19103
  }), I(h, (e) => {
18907
19104
  e && a("ready");
18908
19105
  });
18909
- function k(e) {
19106
+ function re(e) {
18910
19107
  Oi(/* @__PURE__ */ Error(`${e.type}: ${e.title}`), { status: String(e.status) }), a("chat-error", {
18911
19108
  type: e.type,
18912
19109
  title: e.title,
@@ -18926,19 +19123,19 @@ var uC = {
18926
19123
  ...e.telemetry
18927
19124
  });
18928
19125
  });
18929
- let { registry: R, forms: ge, registerPages: z } = Fh(() => A.value?.capabilities?.pageAccess, E), { authBranding: _e } = __({
19126
+ let { registry: R, forms: ge, registerPages: z } = Fh(() => A.value?.capabilities?.pageAccess, D), { authBranding: _e } = __({
18930
19127
  agent: A,
18931
19128
  branding: ie,
18932
19129
  authMethods: j,
18933
19130
  session: d,
18934
- signOut: w,
19131
+ signOut: T,
18935
19132
  isExternalAuth: g,
18936
19133
  frontendUrl: () => oe.value?.frontendUrl,
18937
19134
  token: m,
18938
19135
  baseUrl: r,
18939
19136
  headers: p,
18940
19137
  cookieName: n.cookieName
18941
- }), ye = U(() => n.floatingButtonPosition ?? A.value?.interface.floatingButtonPosition ?? ie.value?.interface.floatingButtonPosition ?? "right"), V = U(() => t_(n.layout, A.value?.interface.layout ?? ie.value?.interface.layout) === qt.Copilot), be = U(() => V.value && A.value?.interface.workingGlow !== !1 && D.isWorking), xe = U(() => be.value && D.pageControlActive), Se = U(() => nt(A.value?.interface.mainColor) ? { "--pk-working-beam-color": "var(--color-accent)" } : void 0), G = U(() => !V.value && n_(n.appearance, A.value?.interface.appearance ?? ie.value?.interface.appearance) === Ht.Glass), we = U(() => (A.value?.interface.hideFloatingButton ?? ie.value?.interface.hideFloatingButton) === !0);
19138
+ }), ye = U(() => n.floatingButtonPosition ?? A.value?.interface.floatingButtonPosition ?? ie.value?.interface.floatingButtonPosition ?? "right"), V = U(() => t_(n.layout, A.value?.interface.layout ?? ie.value?.interface.layout) === qt.Copilot), be = U(() => V.value && A.value?.interface.workingGlow !== !1 && O.isWorking), xe = U(() => be.value && O.pageControlActive), Se = U(() => nt(A.value?.interface.mainColor) ? { "--pk-working-beam-color": "var(--color-accent)" } : void 0), G = U(() => !V.value && n_(n.appearance, A.value?.interface.appearance ?? ie.value?.interface.appearance) === Ht.Glass), we = U(() => (A.value?.interface.hideFloatingButton ?? ie.value?.interface.hideFloatingButton) === !0);
18942
19139
  E_({
18943
19140
  css: () => A.value?.interface.copilotPageCss ?? ie.value?.interface.copilotPageCss,
18944
19141
  active: () => V.value && l.value
@@ -18947,7 +19144,7 @@ var uC = {
18947
19144
  I(l, () => {
18948
19145
  Te.value = !0, clearTimeout(Ee), Ee = setTimeout(() => {
18949
19146
  Te.value = !1;
18950
- }, yC);
19147
+ }, IC);
18951
19148
  });
18952
19149
  let De = U(() => V.value && Te.value ? "floating-chat-widget-copilot" : void 0), Oe = U(() => {
18953
19150
  let e = [
@@ -18963,9 +19160,9 @@ var uC = {
18963
19160
  sendTwoFactorCode: b,
18964
19161
  cancelTwoFactor: x,
18965
19162
  signUpWithEmail: S,
18966
- requestPasswordReset: ee,
19163
+ requestPasswordReset: C,
18967
19164
  frontendUrl: () => oe.value?.frontendUrl,
18968
- signInWithSocialPopup: te,
19165
+ signInWithSocialPopup: ee,
18969
19166
  refetchSession: () => d.value.refetch(),
18970
19167
  reload: me
18971
19168
  });
@@ -18980,10 +19177,10 @@ var uC = {
18980
19177
  u();
18981
19178
  },
18982
19179
  sendMessage(e) {
18983
- e.trim() && (l.value || u(), re.send(e));
19180
+ e.trim() && (l.value || u(), ne.send(e));
18984
19181
  },
18985
19182
  startNewChat() {
18986
- re.invalidate(), D.startNewChat();
19183
+ ne.invalidate(), O.startNewChat();
18987
19184
  },
18988
19185
  setContext(e) {
18989
19186
  s.value = e;
@@ -18995,30 +19192,30 @@ var uC = {
18995
19192
  c.value = c.value.filter((t) => t.name !== e);
18996
19193
  },
18997
19194
  registerPages: z,
18998
- signIn: C,
18999
- signOut: w,
19195
+ signIn: w,
19196
+ signOut: T,
19000
19197
  get isOpen() {
19001
19198
  return l.value;
19002
19199
  },
19003
19200
  get isWorking() {
19004
- return D.isWorking;
19201
+ return O.isWorking;
19005
19202
  },
19006
19203
  get isControllingPage() {
19007
- return D.pageControlActive;
19204
+ return O.pageControlActive;
19008
19205
  }
19009
19206
  }), (t, n) => {
19010
19207
  let a = Tn;
19011
19208
  return P(), Z("div", {
19012
- class: de(["floating-chat-widget", [T(ue), {
19209
+ class: de(["floating-chat-widget", [E(ue), {
19013
19210
  "floating-chat-widget--position-left": ye.value === "left",
19014
19211
  "floating-chat-widget--copilot": V.value,
19015
19212
  "floating-chat-widget--glass": G.value,
19016
19213
  "floating-chat-widget--no-button": we.value
19017
19214
  }]]),
19018
- style: ne(T(pe))
19215
+ style: te(E(pe))
19019
19216
  }, [
19020
- T(ae) ? (P(), L(fe("style"), { key: 0 }, {
19021
- default: B(() => [Ne(N(T(ae)), 1)]),
19217
+ E(ae) ? (P(), L(fe("style"), { key: 0 }, {
19218
+ default: B(() => [Ne(N(E(ae)), 1)]),
19022
19219
  _: 1
19023
19220
  })) : q("", !0),
19024
19221
  Oe.value ? (P(), L(fe("style"), { key: 1 }, {
@@ -19026,14 +19223,14 @@ var uC = {
19026
19223
  _: 1
19027
19224
  })) : q("", !0),
19028
19225
  F(K, { name: "floating-chat-widget-frame" }, {
19029
- default: B(() => [V.value && T(l) ? (P(), Z("div", uC, [H("div", {
19226
+ default: B(() => [V.value && E(l) ? (P(), Z("div", DC, [H("div", {
19030
19227
  class: "floating-chat-widget__frame-window",
19031
- style: ne(Se.value)
19032
- }, [F(lC, { active: xe.value }, null, 8, ["active"])], 4)])) : q("", !0)]),
19228
+ style: te(Se.value)
19229
+ }, [F(EC, { active: xe.value }, null, 8, ["active"])], 4)])) : q("", !0)]),
19033
19230
  _: 1
19034
19231
  }),
19035
19232
  F(K, { name: "floating-chat-widget-frame" }, {
19036
- default: B(() => [V.value && T(l) ? (P(), Z("div", {
19233
+ default: B(() => [V.value && E(l) ? (P(), Z("div", {
19037
19234
  key: 0,
19038
19235
  class: "floating-chat-widget__backdrop",
19039
19236
  onClick: u
@@ -19041,10 +19238,10 @@ var uC = {
19041
19238
  _: 1
19042
19239
  }),
19043
19240
  F(K, { name: "slide-bottom" }, {
19044
- default: B(() => [(T(A) || T(ie)) && !T(se) && !we.value && !(V.value && T(l)) ? (P(), Z("div", dC, [F(sC, {
19241
+ default: B(() => [(E(A) || E(ie)) && !E(se) && !we.value && !(V.value && E(l)) ? (P(), Z("div", OC, [F(wC, {
19045
19242
  "agent-id": e.agentId,
19046
- message: T(A)?.interface.initialMessage,
19047
- enabled: !T(l) && T(A)?.interface?.welcomePopup,
19243
+ message: E(A)?.interface.initialMessage,
19244
+ enabled: !E(l) && E(A)?.interface?.welcomePopup,
19048
19245
  onOpen: u
19049
19246
  }, null, 8, [
19050
19247
  "agent-id",
@@ -19052,32 +19249,32 @@ var uC = {
19052
19249
  "enabled"
19053
19250
  ]), H("button", {
19054
19251
  type: "button",
19055
- "aria-label": T(l) ? t.$t("action.closeChat") : t.$t("action.openChat"),
19056
- "aria-expanded": T(l),
19252
+ "aria-label": E(l) ? t.$t("action.closeChat") : t.$t("action.openChat"),
19253
+ "aria-expanded": E(l),
19057
19254
  class: "floating-chat-widget__button",
19058
19255
  onClick: ve(u, ["stop"])
19059
- }, [T(l) ? (P(), Z("svg", pC, [...n[5] ||= [H("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)]])) : (P(), Z("svg", mC, [...n[6] ||= [H("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, fC)])) : q("", !0)]),
19256
+ }, [E(l) ? (P(), Z("svg", AC, [...n[5] ||= [H("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)]])) : (P(), Z("svg", jC, [...n[6] ||= [H("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, kC)])) : q("", !0)]),
19060
19257
  _: 1
19061
19258
  }),
19062
19259
  F(K, { name: De.value }, {
19063
- default: B(() => [T(l) && (T(M) || T(ce)) && !(T(A) && T(d).data) ? (P(), Z("div", hC, [T(M) ? (P(), L($S, {
19260
+ default: B(() => [E(l) && (E(M) || E(ce)) && !(E(A) && E(d).data) ? (P(), Z("div", MC, [E(M) ? (P(), L(gC, {
19064
19261
  key: 0,
19065
- "error-message": T(ke),
19262
+ "error-message": E(ke),
19066
19263
  "onUpdate:errorMessage": n[0] ||= (e) => Ce(ke) ? ke.value = e : null,
19067
- success: T(Ae),
19264
+ success: E(Ae),
19068
19265
  "onUpdate:success": n[1] ||= (e) => Ce(Ae) ? Ae.value = e : null,
19069
- branding: T(ie),
19070
- "auth-methods": T(j),
19071
- "base-url": T(r),
19072
- loading: T(je),
19073
- "two-factor-methods": T(v)?.methods,
19074
- onSignIn: T(Me),
19075
- onSignUp: T(J),
19076
- onRequestReset: T(Y),
19077
- onSocial: T(X),
19078
- onVerifyTwoFactor: T(Pe),
19079
- onSendTwoFactorCode: T(Fe),
19080
- onCancelTwoFactor: T(Ie)
19266
+ branding: E(ie),
19267
+ "auth-methods": E(j),
19268
+ "base-url": E(r),
19269
+ loading: E(je),
19270
+ "two-factor-methods": E(v)?.methods,
19271
+ onSignIn: E(Me),
19272
+ onSignUp: E(J),
19273
+ onRequestReset: E(Y),
19274
+ onSocial: E(X),
19275
+ onVerifyTwoFactor: E(Pe),
19276
+ onSendTwoFactorCode: E(Fe),
19277
+ onCancelTwoFactor: E(Ie)
19081
19278
  }, null, 8, [
19082
19279
  "error-message",
19083
19280
  "success",
@@ -19093,7 +19290,7 @@ var uC = {
19093
19290
  "onVerifyTwoFactor",
19094
19291
  "onSendTwoFactorCode",
19095
19292
  "onCancelTwoFactor"
19096
- ])) : (P(), L(rC, { key: 1 })), H("span", gC, [F(a, {
19293
+ ])) : (P(), L(bC, { key: 1 })), H("span", NC, [F(a, {
19097
19294
  modifiers: "action-quiet",
19098
19295
  icon: "ri:close-line",
19099
19296
  title: t.$t("action.close"),
@@ -19102,7 +19299,7 @@ var uC = {
19102
19299
  _: 1
19103
19300
  }, 8, ["name"]),
19104
19301
  F(K, { name: De.value }, {
19105
- default: B(() => [T(l) && !T(M) && !T(A) && !T(ce) ? (P(), Z("div", _C, [F(rC), H("span", vC, [F(a, {
19302
+ default: B(() => [E(l) && !E(M) && !E(A) && !E(ce) ? (P(), Z("div", PC, [F(bC), H("span", FC, [F(a, {
19106
19303
  modifiers: "action-quiet",
19107
19304
  icon: "ri:close-line",
19108
19305
  title: t.$t("action.close"),
@@ -19111,20 +19308,20 @@ var uC = {
19111
19308
  _: 1
19112
19309
  }, 8, ["name"]),
19113
19310
  F(K, { name: De.value }, {
19114
- default: B(() => [T(A) && T(l) && T(d).data ? (P(), L(pS, {
19311
+ default: B(() => [E(A) && E(l) && E(d).data ? (P(), L(pS, {
19115
19312
  key: e.agentId,
19116
19313
  ref_key: "chatbotEl",
19117
19314
  ref: o,
19118
19315
  class: "floating-chat-widget__chat",
19119
19316
  modifier: V.value ? "panel" : void 0,
19120
- "base-url": T(r),
19317
+ "base-url": E(r),
19121
19318
  "agent-id": e.agentId,
19122
- "user-id": T(h),
19123
- name: T(A).name,
19124
- "agent-interface": T(A).interface,
19125
- "agent-file-upload": T(A).capabilities?.fileUpload,
19126
- voice: T(A).capabilities?.voice,
19127
- headers: T(p),
19319
+ "user-id": E(h),
19320
+ name: E(A).name,
19321
+ "agent-interface": E(A).interface,
19322
+ "agent-file-upload": E(A).capabilities?.fileUpload,
19323
+ voice: E(A).capabilities?.voice,
19324
+ headers: E(p),
19128
19325
  "system-theme": e.systemTheme,
19129
19326
  actions: [
19130
19327
  "upvote",
@@ -19133,36 +19330,36 @@ var uC = {
19133
19330
  "regenerate"
19134
19331
  ],
19135
19332
  "external-context": s.value,
19136
- "host-tools": T(A).capabilities?.hostTools,
19333
+ "host-tools": E(A).capabilities?.hostTools,
19137
19334
  "host-tool-registry": c.value,
19138
- "page-access": T(A).capabilities?.pageAccess,
19139
- "page-tool-registry": T(R),
19140
- "page-forms": T(ge),
19141
- onError: k,
19142
- onLoaded: T(re).onLoaded
19335
+ "page-access": E(A).capabilities?.pageAccess,
19336
+ "page-tool-registry": E(R),
19337
+ "page-forms": E(ge),
19338
+ onError: re,
19339
+ onLoaded: E(ne).onLoaded
19143
19340
  }, {
19144
19341
  actions: B(({ useColorsForAgentHeader: e }) => [F(a, {
19145
- modifiers: e ? `action-quiet-${T(le)}` : "action-quiet",
19342
+ modifiers: e ? `action-quiet-${E(le)}` : "action-quiet",
19146
19343
  icon: "ri:close-line",
19147
19344
  title: t.$t("action.close"),
19148
19345
  onClick: ve(u, ["stop"])
19149
19346
  }, null, 8, ["modifiers", "title"])]),
19150
- "view-auth": B(() => [F($S, {
19151
- "error-message": T(ke),
19347
+ "view-auth": B(() => [F(gC, {
19348
+ "error-message": E(ke),
19152
19349
  "onUpdate:errorMessage": n[2] ||= (e) => Ce(ke) ? ke.value = e : null,
19153
- success: T(Ae),
19350
+ success: E(Ae),
19154
19351
  "onUpdate:success": n[3] ||= (e) => Ce(Ae) ? Ae.value = e : null,
19155
- branding: T(_e),
19156
- "auth-methods": T(j),
19157
- loading: T(je),
19158
- "two-factor-methods": T(v)?.methods,
19159
- onSignIn: T(Me),
19160
- onSignUp: T(J),
19161
- onRequestReset: T(Y),
19162
- onSocial: T(X),
19163
- onVerifyTwoFactor: T(Pe),
19164
- onSendTwoFactorCode: T(Fe),
19165
- onCancelTwoFactor: T(Ie)
19352
+ branding: E(_e),
19353
+ "auth-methods": E(j),
19354
+ loading: E(je),
19355
+ "two-factor-methods": E(v)?.methods,
19356
+ onSignIn: E(Me),
19357
+ onSignUp: E(J),
19358
+ onRequestReset: E(Y),
19359
+ onSocial: E(X),
19360
+ onVerifyTwoFactor: E(Pe),
19361
+ onSendTwoFactorCode: E(Fe),
19362
+ onCancelTwoFactor: E(Ie)
19166
19363
  }, null, 8, [
19167
19364
  "error-message",
19168
19365
  "success",
@@ -19200,44 +19397,44 @@ var uC = {
19200
19397
  ])) : q("", !0)]),
19201
19398
  _: 1
19202
19399
  }, 8, ["name"]),
19203
- V.value && T(l) ? (P(), Z("div", {
19400
+ V.value && E(l) ? (P(), Z("div", {
19204
19401
  key: 2,
19205
19402
  class: "floating-chat-widget__panel-beam",
19206
- style: ne(Se.value),
19403
+ style: te(Se.value),
19207
19404
  "aria-hidden": "true"
19208
- }, [F(lC, { active: be.value }, null, 8, ["active"])], 4)) : q("", !0),
19405
+ }, [F(EC, { active: be.value }, null, 8, ["active"])], 4)) : q("", !0),
19209
19406
  F(gS, {
19210
- active: T(D).pageControlActive,
19211
- action: T(D).pageAction?.title,
19212
- onStop: n[4] ||= (e) => T(D).stopHostActions()
19407
+ active: E(O).pageControlActive,
19408
+ action: E(O).pageAction?.title,
19409
+ onStop: n[4] ||= (e) => E(O).stopHostActions()
19213
19410
  }, null, 8, ["active", "action"]),
19214
- T(D).hostConfirmation && T(O) ? (P(), L(vS, {
19411
+ E(O).hostConfirmation && E(k) ? (P(), L(vS, {
19215
19412
  key: 3,
19216
- question: T(D).hostConfirmation.question ?? T(E)("toolApproval.prompt"),
19217
- details: T(D).hostConfirmation.details,
19218
- onRespond: T(D).respondHostConfirmation
19413
+ question: E(O).hostConfirmation.question ?? E(D)("toolApproval.prompt"),
19414
+ details: E(O).hostConfirmation.details,
19415
+ onRespond: E(O).respondHostConfirmation
19219
19416
  }, null, 8, [
19220
19417
  "question",
19221
19418
  "details",
19222
19419
  "onRespond"
19223
19420
  ])) : q("", !0),
19224
- F(T(i))
19421
+ F(E(i))
19225
19422
  ], 6);
19226
19423
  };
19227
19424
  }
19228
19425
  }), [["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__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}}.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))}.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)))}"]]]);
19229
19426
  // src/components/EmbeddedChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
19230
19427
  G(), R(), Y(), De();
19231
- var xC = {
19428
+ var RC = {
19232
19429
  key: 3,
19233
19430
  class: "embedded-chat-widget embedded-chat-widget--not-found"
19234
- }, SC = {
19431
+ }, zC = {
19235
19432
  key: 0,
19236
19433
  class: "embedded-chat-widget embedded-chat-widget--auth"
19237
- }, CC = {
19434
+ }, BC = {
19238
19435
  key: 0,
19239
19436
  class: "embedded-chat-widget embedded-chat-widget--loading"
19240
- }, wC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
19437
+ }, VC = /*#__PURE__*/ Mn(/* @__PURE__ */ J({
19241
19438
  inheritAttrs: !1,
19242
19439
  __name: "EmbeddedChatWidget.ce",
19243
19440
  props: {
@@ -19282,6 +19479,10 @@ var xC = {
19282
19479
  theme: {
19283
19480
  default: void 0,
19284
19481
  type: String
19482
+ },
19483
+ followPageDialogs: {
19484
+ type: [Boolean, String],
19485
+ default: !1
19285
19486
  }
19286
19487
  },
19287
19488
  setup(e, { expose: t }) {
@@ -19291,7 +19492,7 @@ var xC = {
19291
19492
  organizationSlug: n.organizationSlug,
19292
19493
  agentId: n.agentId
19293
19494
  });
19294
- let { session: l, onError: u, headers: d, token: f, userId: p, isExternalAuth: m, signInWithEmail: h, twoFactorChallenge: g, verifyTwoFactor: _, sendTwoFactorCode: v, cancelTwoFactor: y, signUpWithEmail: b, requestPasswordReset: x, signInWithSocialPopup: S, signInWithExternalToken: ee, signOut: te } = p_({
19495
+ let { session: l, onError: u, headers: d, token: f, userId: p, isExternalAuth: m, signInWithEmail: h, twoFactorChallenge: g, verifyTwoFactor: _, sendTwoFactorCode: v, cancelTwoFactor: y, signUpWithEmail: b, requestPasswordReset: x, signInWithSocialPopup: S, signInWithExternalToken: C, signOut: ee } = p_({
19295
19496
  baseUrl: r,
19296
19497
  externalToken: () => n.externalToken,
19297
19498
  awaitExternalToken: !!n.awaitExternalToken && n.awaitExternalToken !== "false",
@@ -19305,60 +19506,60 @@ var xC = {
19305
19506
  I(p, (e) => {
19306
19507
  e && Ei({ userId: e });
19307
19508
  });
19308
- let w = m_({
19509
+ let T = m_({
19309
19510
  agentId: n.agentId,
19310
19511
  baseUrl: r,
19311
19512
  headers: d,
19312
19513
  userId: p
19313
19514
  });
19314
- Lh(() => w.isWorking), Rh(() => w.pageControlActive);
19315
- let E = x_(o, () => w.localChatId);
19515
+ Lh(() => T.isWorking), Rh(() => T.pageControlActive);
19516
+ let D = x_(o, () => T.localChatId);
19316
19517
  I(p, (e) => {
19317
19518
  e && a("ready");
19318
19519
  });
19319
- function D(e) {
19520
+ function O(e) {
19320
19521
  Oi(/* @__PURE__ */ Error(`${e.type}: ${e.title}`), { status: String(e.status) }), a("chat-error", {
19321
19522
  type: e.type,
19322
19523
  title: e.title,
19323
19524
  status: e.status
19324
19525
  }), u(e);
19325
19526
  }
19326
- let { t: O } = Le({ useScope: "global" }), re = ES(() => !!w.hostConfirmation || w.pageControlActive);
19327
- PS(re, () => w.pageControlActive, {
19328
- text: () => O("messagePart.pageControlActive"),
19329
- stopLabel: () => O("action.stop"),
19330
- onStop: () => void w.stopHostActions()
19527
+ let { t: k } = Le({ useScope: "global" }), ne = ES(() => !!T.hostConfirmation || T.pageControlActive), re = ZS(xe(), () => !!n.followPageDialogs && n.followPageDialogs !== "false");
19528
+ PS(ne, () => T.pageControlActive && !re.value, {
19529
+ text: () => k("messagePart.pageControlActive"),
19530
+ stopLabel: () => k("action.stop"),
19531
+ onStop: () => void T.stopHostActions()
19331
19532
  });
19332
- let { agent: k, branding: A, authMethods: ie, deploymentCss: j, deployment: ae, requiresAuth: oe, notFound: M, isLoading: se, reload: ce, themeClass: le, themeStyle: ue } = v_({
19533
+ let { agent: A, branding: ie, authMethods: j, deploymentCss: ae, deployment: oe, requiresAuth: M, notFound: se, isLoading: ce, reload: le, themeClass: ue, themeStyle: me } = v_({
19333
19534
  baseUrl: r,
19334
19535
  organizationSlug: () => n.organizationSlug,
19335
19536
  agentId: () => n.agentId,
19336
19537
  headers: d,
19337
19538
  systemTheme: () => n.systemTheme,
19338
19539
  theme: () => n.theme
19339
- }), me = U(() => n.theme && k.value ? {
19340
- ...k.value.interface,
19540
+ }), R = U(() => n.theme && A.value ? {
19541
+ ...A.value.interface,
19341
19542
  theme: n.theme
19342
- } : k.value?.interface);
19343
- I(ae, (e) => {
19543
+ } : A.value?.interface);
19544
+ I(oe, (e) => {
19344
19545
  e?.telemetry && Ti({
19345
19546
  backendUrl: r,
19346
19547
  ...e.telemetry
19347
19548
  });
19348
19549
  });
19349
- let { registry: R, forms: z, registerPages: _e } = Fh(() => k.value?.capabilities?.pageAccess, O), { authBranding: ve } = __({
19350
- agent: k,
19351
- branding: A,
19352
- authMethods: ie,
19550
+ let { registry: z, forms: _e, registerPages: ve } = Fh(() => A.value?.capabilities?.pageAccess, k), { authBranding: ye } = __({
19551
+ agent: A,
19552
+ branding: ie,
19553
+ authMethods: j,
19353
19554
  session: l,
19354
- signOut: te,
19555
+ signOut: ee,
19355
19556
  isExternalAuth: m,
19356
- frontendUrl: () => ae.value?.frontendUrl,
19557
+ frontendUrl: () => oe.value?.frontendUrl,
19357
19558
  token: f,
19358
19559
  baseUrl: r,
19359
19560
  headers: d,
19360
19561
  cookieName: n.cookieName
19361
- }), { authError: ye, authSuccess: V, authLoading: be, handleSignIn: xe, handleSignUp: Se, handleReset: G, handleSocial: we, handleVerifyTwoFactor: Te, handleSendTwoFactorCode: Ee, handleCancelTwoFactor: De } = y_({
19562
+ }), { authError: V, authSuccess: be, authLoading: Se, handleSignIn: G, handleSignUp: we, handleReset: Te, handleSocial: Ee, handleVerifyTwoFactor: De, handleSendTwoFactorCode: Oe, handleCancelTwoFactor: ke } = y_({
19362
19563
  signInWithEmail: h,
19363
19564
  isTwoFactorPending: () => !!g.value,
19364
19565
  verifyTwoFactor: _,
@@ -19366,24 +19567,24 @@ var xC = {
19366
19567
  cancelTwoFactor: y,
19367
19568
  signUpWithEmail: b,
19368
19569
  requestPasswordReset: x,
19369
- frontendUrl: () => ae.value?.frontendUrl,
19570
+ frontendUrl: () => oe.value?.frontendUrl,
19370
19571
  signInWithSocialPopup: S,
19371
19572
  refetchSession: () => l.value.refetch(),
19372
- reload: ce
19373
- }), Oe = U(() => n.forwardedSlots ? n.forwardedSlots.split(",").map((e) => e.trim()).filter(Boolean) : []), ke = U(() => l.value.data?.user?.isAnonymous ? void 0 : l.value.data?.user?.name), Ae = U(() => {
19573
+ reload: le
19574
+ }), Ae = U(() => n.forwardedSlots ? n.forwardedSlots.split(",").map((e) => e.trim()).filter(Boolean) : []), je = U(() => l.value.data?.user?.isAnonymous ? void 0 : l.value.data?.user?.name), Me = U(() => {
19374
19575
  let e = [
19375
- k.value?.interface?.customCss,
19376
- A.value?.interface.customCss,
19576
+ A.value?.interface?.customCss,
19577
+ ie.value?.interface.customCss,
19377
19578
  n.customCss
19378
19579
  ].filter(Boolean);
19379
19580
  return e.length ? e.join("\n") : void 0;
19380
19581
  });
19381
19582
  return t({
19382
19583
  sendMessage(e) {
19383
- E.send(e);
19584
+ D.send(e);
19384
19585
  },
19385
19586
  startNewChat() {
19386
- E.invalidate(), w.startNewChat();
19587
+ D.invalidate(), T.startNewChat();
19387
19588
  },
19388
19589
  setContext(e) {
19389
19590
  s.value = e;
@@ -19394,64 +19595,64 @@ var xC = {
19394
19595
  unregisterTool(e) {
19395
19596
  c.value = c.value.filter((t) => t.name !== e);
19396
19597
  },
19397
- registerPages: _e,
19398
- signIn: ee,
19399
- signOut: te,
19598
+ registerPages: ve,
19599
+ signIn: C,
19600
+ signOut: ee,
19400
19601
  get isWorking() {
19401
- return w.isWorking;
19602
+ return T.isWorking;
19402
19603
  },
19403
19604
  get isControllingPage() {
19404
- return w.pageControlActive;
19605
+ return T.pageControlActive;
19405
19606
  }
19406
19607
  }), (t, n) => (P(), Z("div", {
19407
- class: de(["embedded-chat-widget-root", T(le)]),
19408
- style: ne(T(ue))
19608
+ class: de(["embedded-chat-widget-root", E(ue)]),
19609
+ style: te(E(me))
19409
19610
  }, [
19410
- T(j) ? (P(), L(fe("style"), { key: 0 }, {
19411
- default: B(() => [Ne(N(T(j)), 1)]),
19611
+ E(ae) ? (P(), L(fe("style"), { key: 0 }, {
19612
+ default: B(() => [Ne(N(E(ae)), 1)]),
19412
19613
  _: 1
19413
19614
  })) : q("", !0),
19414
- Ae.value ? (P(), L(fe("style"), { key: 1 }, {
19415
- default: B(() => [Ne(N(Ae.value), 1)]),
19615
+ Me.value ? (P(), L(fe("style"), { key: 1 }, {
19616
+ default: B(() => [Ne(N(Me.value), 1)]),
19416
19617
  _: 1
19417
19618
  })) : q("", !0),
19418
19619
  F(gS, {
19419
- active: T(w).pageControlActive,
19420
- action: T(w).pageAction?.title,
19421
- onStop: n[0] ||= (e) => T(w).stopHostActions()
19620
+ active: E(T).pageControlActive,
19621
+ action: E(T).pageAction?.title,
19622
+ onStop: n[0] ||= (e) => E(T).stopHostActions()
19422
19623
  }, null, 8, ["active", "action"]),
19423
- T(w).hostConfirmation && T(re) ? (P(), L(vS, {
19624
+ E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(vS, {
19424
19625
  key: 2,
19425
- question: T(w).hostConfirmation.question ?? T(O)("toolApproval.prompt"),
19426
- details: T(w).hostConfirmation.details,
19427
- onRespond: T(w).respondHostConfirmation
19626
+ question: E(T).hostConfirmation.question ?? E(k)("toolApproval.prompt"),
19627
+ details: E(T).hostConfirmation.details,
19628
+ onRespond: E(T).respondHostConfirmation
19428
19629
  }, null, 8, [
19429
19630
  "question",
19430
19631
  "details",
19431
19632
  "onRespond"
19432
19633
  ])) : q("", !0),
19433
- T(M) ? (P(), Z("div", xC, [H("p", null, N(T(O)("message.agentNotFound")), 1)])) : q("", !0),
19634
+ E(se) ? (P(), Z("div", RC, [H("p", null, N(E(k)("message.agentNotFound")), 1)])) : q("", !0),
19434
19635
  F(K, {
19435
19636
  name: "fade",
19436
19637
  appear: ""
19437
19638
  }, {
19438
- default: B(() => [(T(k) || T(A)) && !T(M) && T(oe) && (!T(l).data?.user?.id || T(l).data?.user?.isAnonymous) ? (P(), Z("div", SC, [T(ie) ? (P(), L($S, {
19639
+ default: B(() => [(E(A) || E(ie)) && !E(se) && E(M) && (!E(l).data?.user?.id || E(l).data?.user?.isAnonymous) ? (P(), Z("div", zC, [E(j) ? (P(), L(gC, {
19439
19640
  key: 0,
19440
- "error-message": T(ye),
19441
- "onUpdate:errorMessage": n[1] ||= (e) => Ce(ye) ? ye.value = e : null,
19442
- success: T(V),
19443
- "onUpdate:success": n[2] ||= (e) => Ce(V) ? V.value = e : null,
19444
- branding: T(A),
19445
- "auth-methods": T(ie),
19446
- loading: T(be),
19447
- "two-factor-methods": T(g)?.methods,
19448
- onSignIn: T(xe),
19449
- onSignUp: T(Se),
19450
- onRequestReset: T(G),
19451
- onSocial: T(we),
19452
- onVerifyTwoFactor: T(Te),
19453
- onSendTwoFactorCode: T(Ee),
19454
- onCancelTwoFactor: T(De)
19641
+ "error-message": E(V),
19642
+ "onUpdate:errorMessage": n[1] ||= (e) => Ce(V) ? V.value = e : null,
19643
+ success: E(be),
19644
+ "onUpdate:success": n[2] ||= (e) => Ce(be) ? be.value = e : null,
19645
+ branding: E(ie),
19646
+ "auth-methods": E(j),
19647
+ loading: E(Se),
19648
+ "two-factor-methods": E(g)?.methods,
19649
+ onSignIn: E(G),
19650
+ onSignUp: E(we),
19651
+ onRequestReset: E(Te),
19652
+ onSocial: E(Ee),
19653
+ onVerifyTwoFactor: E(De),
19654
+ onSendTwoFactorCode: E(Oe),
19655
+ onCancelTwoFactor: E(ke)
19455
19656
  }, null, 8, [
19456
19657
  "error-message",
19457
19658
  "success",
@@ -19466,31 +19667,31 @@ var xC = {
19466
19667
  "onVerifyTwoFactor",
19467
19668
  "onSendTwoFactorCode",
19468
19669
  "onCancelTwoFactor"
19469
- ])) : (P(), L(rC, { key: 1 }))])) : q("", !0)]),
19670
+ ])) : (P(), L(bC, { key: 1 }))])) : q("", !0)]),
19470
19671
  _: 1
19471
19672
  }),
19472
19673
  F(K, {
19473
19674
  name: "fade",
19474
19675
  appear: ""
19475
19676
  }, {
19476
- default: B(() => [T(se) && !T(M) ? (P(), Z("div", CC, [F(rC)])) : q("", !0)]),
19677
+ default: B(() => [E(ce) && !E(se) ? (P(), Z("div", BC, [F(bC)])) : q("", !0)]),
19477
19678
  _: 1
19478
19679
  }),
19479
- T(k) && T(l).data && !T(M) ? (P(), L(pS, {
19680
+ E(A) && E(l).data && !E(se) ? (P(), L(pS, {
19480
19681
  key: 4,
19481
19682
  ref_key: "chatbotEl",
19482
19683
  ref: o,
19483
19684
  class: "embedded-chat-widget",
19484
- "base-url": T(r),
19685
+ "base-url": E(r),
19485
19686
  "agent-id": e.agentId,
19486
- "user-id": T(p),
19487
- name: T(k).name,
19488
- "agent-interface": me.value,
19489
- "agent-file-upload": T(k).capabilities?.fileUpload,
19490
- voice: T(k).capabilities?.voice,
19687
+ "user-id": E(p),
19688
+ name: E(A).name,
19689
+ "agent-interface": R.value,
19690
+ "agent-file-upload": E(A).capabilities?.fileUpload,
19691
+ voice: E(A).capabilities?.voice,
19491
19692
  modifier: e.displayMode,
19492
- "user-name": ke.value,
19493
- headers: T(d),
19693
+ "user-name": je.value,
19694
+ headers: E(d),
19494
19695
  "system-theme": e.systemTheme,
19495
19696
  actions: [
19496
19697
  "upvote",
@@ -19499,32 +19700,32 @@ var xC = {
19499
19700
  "regenerate"
19500
19701
  ],
19501
19702
  "external-context": s.value,
19502
- "host-tools": T(k).capabilities?.hostTools,
19703
+ "host-tools": E(A).capabilities?.hostTools,
19503
19704
  "host-tool-registry": c.value,
19504
- "page-access": T(k).capabilities?.pageAccess,
19505
- "page-tool-registry": T(R),
19506
- "page-forms": T(z),
19507
- onError: D,
19508
- onLoaded: T(E).onLoaded
19705
+ "page-access": E(A).capabilities?.pageAccess,
19706
+ "page-tool-registry": E(z),
19707
+ "page-forms": E(_e),
19708
+ onError: O,
19709
+ onLoaded: E(D).onLoaded
19509
19710
  }, ge({
19510
19711
  "header-actions": B(() => [pe(t.$slots, "header-actions")]),
19511
19712
  actions: B(() => [pe(t.$slots, "actions")]),
19512
- "view-auth": B(() => [F($S, {
19513
- "error-message": T(ye),
19514
- "onUpdate:errorMessage": n[3] ||= (e) => Ce(ye) ? ye.value = e : null,
19515
- success: T(V),
19516
- "onUpdate:success": n[4] ||= (e) => Ce(V) ? V.value = e : null,
19517
- branding: T(ve),
19518
- "auth-methods": T(ie),
19519
- loading: T(be),
19520
- "two-factor-methods": T(g)?.methods,
19521
- onSignIn: T(xe),
19522
- onSignUp: T(Se),
19523
- onRequestReset: T(G),
19524
- onSocial: T(we),
19525
- onVerifyTwoFactor: T(Te),
19526
- onSendTwoFactorCode: T(Ee),
19527
- onCancelTwoFactor: T(De)
19713
+ "view-auth": B(() => [F(gC, {
19714
+ "error-message": E(V),
19715
+ "onUpdate:errorMessage": n[3] ||= (e) => Ce(V) ? V.value = e : null,
19716
+ success: E(be),
19717
+ "onUpdate:success": n[4] ||= (e) => Ce(be) ? be.value = e : null,
19718
+ branding: E(ye),
19719
+ "auth-methods": E(j),
19720
+ loading: E(Se),
19721
+ "two-factor-methods": E(g)?.methods,
19722
+ onSignIn: E(G),
19723
+ onSignUp: E(we),
19724
+ onRequestReset: E(Te),
19725
+ onSocial: E(Ee),
19726
+ onVerifyTwoFactor: E(De),
19727
+ onSendTwoFactorCode: E(Oe),
19728
+ onCancelTwoFactor: E(ke)
19528
19729
  }, null, 8, [
19529
19730
  "error-message",
19530
19731
  "success",
@@ -19541,7 +19742,7 @@ var xC = {
19541
19742
  "onCancelTwoFactor"
19542
19743
  ])]),
19543
19744
  _: 2
19544
- }, [C(Oe.value, (e) => ({
19745
+ }, [w(Ae.value, (e) => ({
19545
19746
  name: e,
19546
19747
  fn: B(() => [pe(t.$slots, e)])
19547
19748
  }))]), 1032, [
@@ -19564,13 +19765,13 @@ var xC = {
19564
19765
  "page-forms",
19565
19766
  "onLoaded"
19566
19767
  ])) : q("", !0),
19567
- F(T(i))
19768
+ F(E(i))
19568
19769
  ], 6));
19569
19770
  }
19570
19771
  }), [["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}"]]]);
19571
19772
  // src/lib.ts
19572
19773
  De();
19573
- function TC(e) {
19774
+ function HC(e) {
19574
19775
  let { t } = br.global;
19575
19776
  e.use(Qn()), e.use(br), e.provide(Re, br), e.use(Rr, {
19576
19777
  iconsCollections: [zr, Br],
@@ -19596,15 +19797,15 @@ function TC(e) {
19596
19797
  Oi(e instanceof Error ? e : Error(String(e)), { vueInfo: n });
19597
19798
  };
19598
19799
  }
19599
- function EC(e) {
19800
+ function UC(e) {
19600
19801
  let { styles: t } = e;
19601
19802
  return {
19602
- configureApp: TC,
19803
+ configureApp: HC,
19603
19804
  styles: [ki, ...t ?? []]
19604
19805
  };
19605
19806
  }
19606
- var DC = we(bC, EC(bC)), OC = we(wC, EC(wC));
19607
- customElements.define("floating-chat-widget", DC), customElements.define("embedded-chat-widget", OC);
19608
- export { OC as EmbeddedChatWidgetCe, DC as FloatingChatWidgetCe };
19807
+ var WC = we(LC, UC(LC)), GC = we(VC, UC(VC));
19808
+ customElements.define("floating-chat-widget", WC), customElements.define("embedded-chat-widget", GC);
19809
+ export { GC as EmbeddedChatWidgetCe, WC as FloatingChatWidgetCe };
19609
19810
 
19610
19811
  //# sourceMappingURL=ai-elements.es.js.map