@8wave/ai-elements 0.119.0-beta.33 → 0.119.0-beta.45
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.
- package/dist/_chunks/Agent-Gdgpd3LA.js.map +1 -1
- package/dist/_chunks/{PkToolShowSources-D532Worv.js → PkToolShowSources-B1zXilsH.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-D532Worv.js.map → PkToolShowSources-B1zXilsH.js.map} +1 -1
- package/dist/_chunks/{markdown-BbaLt57-.js → markdown-DtdG9Krq.js} +95 -89
- package/dist/_chunks/markdown-DtdG9Krq.js.map +1 -0
- package/dist/ai-elements.es.js +405 -403
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-DU1WWaHR.js → Agent-DGCZCx4Y.js} +102 -101
- package/dist-vue/_chunks/Agent-DGCZCx4Y.js.map +1 -0
- package/dist-vue/_chunks/{Document-Cto-Qws0.js → Document-BZea8ewV.js} +8 -4
- package/dist-vue/_chunks/Document-BZea8ewV.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-wODOAtOD.js → PkChatbot-BVWLvaXb.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-wODOAtOD.js.map → PkChatbot-BVWLvaXb.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dx4mTkTX.js → PkChatbotEmptyState-B7fZ51v1.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dx4mTkTX.js.map → PkChatbotEmptyState-B7fZ51v1.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-jj3qQl_f.js → PkChatbotInput-Bo4Ewf6A.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-jj3qQl_f.js.map → PkChatbotInput-Bo4Ewf6A.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-DHZNG6YM.js +881 -0
- package/dist-vue/_chunks/PkChatbotMessages-DHZNG6YM.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-f2mYAVpu.js → PkChatbotStepPayload-DuI9ZYqp.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-f2mYAVpu.js.map → PkChatbotStepPayload-DuI9ZYqp.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BcYheOnU.js → PkChatbotStepToolDetail-B9hBMl15.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BcYheOnU.js.map → PkChatbotStepToolDetail-B9hBMl15.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-3qySSEYh.js +189 -0
- package/dist-vue/_chunks/PkChatbotSteps-3qySSEYh.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-DZqXDwzk.js → PkChatbotViewChat-CLyoZH3C.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-DZqXDwzk.js.map → PkChatbotViewChat-CLyoZH3C.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-CXcToApC.js → PkChatbotViewConversations-BbXFoEOv.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-CXcToApC.js.map → PkChatbotViewConversations-BbXFoEOv.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-O8lhbXAX.js → PkChatbotViewFiles-7vcERhnZ.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-O8lhbXAX.js.map → PkChatbotViewFiles-7vcERhnZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-kryFJi0l.js → PkChatbotViewProfile-RgFp-LpV.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-kryFJi0l.js.map → PkChatbotViewProfile-RgFp-LpV.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-CywawRVj.js → PkStreamingMarkdown-Bmm1kZpL.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-CywawRVj.js.map → PkStreamingMarkdown-Bmm1kZpL.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BT4HueLs.js → PkToolEditSpreadsheet-BIQky1RK.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BT4HueLs.js.map → PkToolEditSpreadsheet-BIQky1RK.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-JZYgc-2X.js → PkToolRequestGeolocation-CYEyXZSh.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-JZYgc-2X.js.map → PkToolRequestGeolocation-CYEyXZSh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-Ck2tRuls.js → PkToolRequestOAuthConnection-B243GJ1-.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-Ck2tRuls.js.map → PkToolRequestOAuthConnection-B243GJ1-.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-BiFJoOTT.js → PkToolShowArtifact-CJG-B9mE.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BiFJoOTT.js.map → PkToolShowArtifact-CJG-B9mE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-B7DvA6O1.js → PkToolShowContactForm-CG1H7xBz.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-B7DvA6O1.js.map → PkToolShowContactForm-CG1H7xBz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-DGMwlxqB.js → PkToolShowDiagram-Cq0457a3.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-DGMwlxqB.js.map → PkToolShowDiagram-Cq0457a3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BZmAnMSD.js → PkToolShowForm-IJ8B8_yT.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-BZmAnMSD.js.map → PkToolShowForm-IJ8B8_yT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-BsYTRg_W.js → PkToolShowImageGallery-ala8nlAj.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-BsYTRg_W.js.map → PkToolShowImageGallery-ala8nlAj.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-D1_v79Xm.js → PkToolShowProductList-BDg84ZQN.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-D1_v79Xm.js.map → PkToolShowProductList-BDg84ZQN.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-Czu2IiGq.js → PkToolShowSources-DaSijN_L.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-Czu2IiGq.js.map → PkToolShowSources-DaSijN_L.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-I6FBos-F.js → PkToolShowSuggestedReply-CLEFPrHP.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-I6FBos-F.js.map → PkToolShowSuggestedReply-CLEFPrHP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-D3D2sTAP.js → PkToolShowVideo-FmE-IRE7.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-D3D2sTAP.js.map → PkToolShowVideo-FmE-IRE7.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DTq0811l.js → PkToolShowWebPages-B554-MlD.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DTq0811l.js.map → PkToolShowWebPages-B554-MlD.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BlJ952Kb.js → createChatbotApiClient-CDS3C4i6.js} +2 -2
- package/dist-vue/_chunks/createChatbotApiClient-CDS3C4i6.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-CueyhDPB.js → useChatbotStore-CBjBe7GI.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-CueyhDPB.js.map → useChatbotStore-CBjBe7GI.js.map} +1 -1
- package/dist-vue/_chunks/{utils-DmRXPCqa.js → utils-Cvijhryt.js} +2 -2
- package/dist-vue/_chunks/{utils-DmRXPCqa.js.map → utils-Cvijhryt.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +3 -3
- package/dist-vue/index.js +26 -26
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/Branding.d.ts +5 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +8 -0
- package/dist-vue/packages/models/src/schema/ModelProvider.d.ts +12 -1
- package/dist-vue/packages/models/src/schema/constants.d.ts +26 -1
- package/package.json +1 -1
- package/dist/_chunks/markdown-BbaLt57-.js.map +0 -1
- package/dist-vue/_chunks/Agent-DU1WWaHR.js.map +0 -1
- package/dist-vue/_chunks/Document-Cto-Qws0.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-5wPl7-j-.js +0 -876
- package/dist-vue/_chunks/PkChatbotMessages-5wPl7-j-.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotSteps-DKyF0ykL.js +0 -191
- package/dist-vue/_chunks/PkChatbotSteps-DKyF0ykL.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BlJ952Kb.js.map +0 -1
package/dist/ai-elements.es.js
CHANGED
|
@@ -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
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-Dd1GFq_6.js";
|
|
3
|
-
import { $ as C, B as te, C as w, Ct as T, D as ne, Dt as E, E as D, Et as re, F as ie, G as ae, H as oe, I as O, J as k, K as se, L as A, M as ce, N as le, O as j, P as ue, R as de, S as M, St as N, T as
|
|
3
|
+
import { $ as C, B as te, C as w, Ct as T, D as ne, Dt as E, E as D, Et as re, F as ie, G as ae, H as oe, I as O, J as k, K as se, L as A, M as ce, N as le, O as j, P as ue, R as de, S as M, St as N, T as P, Tt as fe, X as F, Z as pe, _ as I, _t as me, b as L, bt as R, ct as he, d as z, dt as ge, ft as _e, g as B, gt as ve, h as V, it as H, j as ye, k as be, l as xe, lt as Se, m as U, mt as W, n as Ce, nt as we, ot as Te, q as Ee, r as De, rt as Oe, st as ke, t as G, u as Ae, ut as je, v as K, vt as Me, w as Ne, wt as q, x as J, xt as Pe, y as Fe, yt as Ie, z as Le } from "./_chunks/vue.runtime.esm-bundler-DKVd2gci.js";
|
|
4
4
|
import { n as Re, r as ze, t as Be } from "./_chunks/vue-i18n-CooVjJjT.js";
|
|
5
5
|
import { i as Ve, n as He, r as Ue } from "./_chunks/iconify-CgyW1o4B.js";
|
|
6
6
|
import { A as We, C as Ge, D as Ke, E as qe, F as Y, I as Je, L as Ye, M as Xe, N as Ze, O as Qe, P as $e, S as et, T as tt, _ as nt, a as rt, b as it, c as at, d as ot, f as st, g as ct, h as lt, i as ut, j as dt, k as ft, m as pt, n as mt, o as ht, p as gt, r as _t, s as vt, t as yt, v as bt, w as xt, x as St, y as Ct } from "./_chunks/PkStreamingMarkdown-B1t1tBvW.js";
|
|
7
7
|
import { C as wt, a as Tt, b as Et, d as Dt, f as Ot, g as kt, h as At, i as jt, n as Mt, o as Nt, p as Pt, r as Ft, s as It, v as Lt, x as Rt, y as zt } from "./_chunks/Agent-Gdgpd3LA.js";
|
|
8
|
-
import { a as Bt, i as Vt, n as Ht, t as Ut } from "./_chunks/markdown-
|
|
8
|
+
import { a as Bt, i as Vt, n as Ht, t as Ut } from "./_chunks/markdown-DtdG9Krq.js";
|
|
9
9
|
import { n as Wt } from "./_chunks/src-CggZ5M7x.js";
|
|
10
10
|
import { r as Gt, t as Kt } from "./_chunks/url-validation-9DstIfq2.js";
|
|
11
11
|
import { a as qt, m as Jt, p as Yt, s as Xt } from "./_chunks/dist-DxtbpUdI.js";
|
|
@@ -139,10 +139,10 @@ function Bn(e, t) {
|
|
|
139
139
|
for (let n in t) {
|
|
140
140
|
if (!Object.hasOwn(t, n)) continue;
|
|
141
141
|
let r = t[n], i = e[n];
|
|
142
|
-
if (bn(i) && bn(r) && Object.hasOwn(e, n) && !
|
|
142
|
+
if (bn(i) && bn(r) && Object.hasOwn(e, n) && !he(r) && !Te(r)) {
|
|
143
143
|
e[n] = Bn(i, r);
|
|
144
|
-
let t =
|
|
145
|
-
|
|
144
|
+
let t = me(e)[n];
|
|
145
|
+
he(t) && Se(t) && Pe(t);
|
|
146
146
|
} else e[n] = r;
|
|
147
147
|
}
|
|
148
148
|
return e;
|
|
@@ -153,7 +153,7 @@ function Hn(e) {
|
|
|
153
153
|
}
|
|
154
154
|
var { assign: Un } = Object;
|
|
155
155
|
function Wn(e) {
|
|
156
|
-
return !!(
|
|
156
|
+
return !!(he(e) && e.effect);
|
|
157
157
|
}
|
|
158
158
|
function Gn(e, t, n, r) {
|
|
159
159
|
let { state: i, actions: a, getters: o } = t, s = n.state.value[e], c;
|
|
@@ -235,7 +235,7 @@ function Kn(e, t, n = {}, r, i, a) {
|
|
|
235
235
|
$reset: _,
|
|
236
236
|
$subscribe(t, n = {}) {
|
|
237
237
|
if (d.has(t)) return Pn;
|
|
238
|
-
let i = Fn(d, t, n.detached, () => a()), a = o.run(() =>
|
|
238
|
+
let i = Fn(d, t, n.detached, () => a()), a = o.run(() => F(() => r.state.value[e], (r) => {
|
|
239
239
|
(n.flush === "sync" ? u : l) && t({
|
|
240
240
|
storeId: e,
|
|
241
241
|
type: "direct",
|
|
@@ -250,9 +250,9 @@ function Kn(e, t, n = {}, r, i, a) {
|
|
|
250
250
|
let S = (r._a && r._a.runWithContext || Ln)(() => r._e.run(() => (o = we()).run(() => t({ action: y }))));
|
|
251
251
|
for (let t in S) {
|
|
252
252
|
let n = S[t];
|
|
253
|
-
|
|
253
|
+
he(n) && !Wn(n) || Te(n) ? a || (m && Hn(n) && (he(n) ? n.value = m[t] : ((n instanceof Set || n instanceof Map) && n.clear(), Bn(n, m[t]))), r.state.value[e][t] = n) : typeof n == "function" && (S[t] = y(n, t), s.actions[t] = n);
|
|
254
254
|
}
|
|
255
|
-
return Un(x, S), Un(
|
|
255
|
+
return Un(x, S), Un(me(x), S), Object.defineProperty(x, "$state", {
|
|
256
256
|
get: () => r.state.value[e],
|
|
257
257
|
set: (e) => {
|
|
258
258
|
g((t) => {
|
|
@@ -279,7 +279,7 @@ function qn(e, t, n) {
|
|
|
279
279
|
return a.$id = e, a;
|
|
280
280
|
}
|
|
281
281
|
function Jn(e) {
|
|
282
|
-
let t =
|
|
282
|
+
let t = me(e), n = {};
|
|
283
283
|
for (let r in t) {
|
|
284
284
|
let i = t[r];
|
|
285
285
|
i?.effect ? n[r] = U({
|
|
@@ -287,7 +287,7 @@ function Jn(e) {
|
|
|
287
287
|
set(t) {
|
|
288
288
|
e[r] = t;
|
|
289
289
|
}
|
|
290
|
-
}) : (
|
|
290
|
+
}) : (he(i) || Te(i)) && (n[r] = Me(e, r));
|
|
291
291
|
}
|
|
292
292
|
return n;
|
|
293
293
|
}
|
|
@@ -9870,7 +9870,7 @@ function Cd() {
|
|
|
9870
9870
|
}));
|
|
9871
9871
|
});
|
|
9872
9872
|
try {
|
|
9873
|
-
|
|
9873
|
+
F(u, function(e) {
|
|
9874
9874
|
ke(u) || (u.value = e), d.key = e, d.isValidating = !!e, yd(u.value, d, l), !c && !s && u.value && f(), s = !1;
|
|
9875
9875
|
}, { immediate: !0 });
|
|
9876
9876
|
} catch {}
|
|
@@ -9955,7 +9955,7 @@ function Fd(e) {
|
|
|
9955
9955
|
"downvote",
|
|
9956
9956
|
"feedback"
|
|
9957
9957
|
].includes(e)) : g.value), ne = ln(U(() => `${o.value}-chatId`), null);
|
|
9958
|
-
|
|
9958
|
+
pe(() => {
|
|
9959
9959
|
ne.value ||= Nc();
|
|
9960
9960
|
});
|
|
9961
9961
|
let E = U({
|
|
@@ -10054,7 +10054,7 @@ function Fd(e) {
|
|
|
10054
10054
|
}), de = U(() => {
|
|
10055
10055
|
let e = u.value?.messagePlaceholder;
|
|
10056
10056
|
return e?.[r.value] ? e[r.value] : n("placeholder.askAnything") ? t("placeholder.askAnything") : "";
|
|
10057
|
-
}), M = W([]), N = W(!1),
|
|
10057
|
+
}), M = W([]), N = W(!1), P = W([]), fe = W(!1), I = W("chat"), me = W([]), L = W(), R = W(!1), he = W(!1), z = W(), ge = W(!1), _e = W(!1), B = W(), ve = W(""), V = W([]), H = W(""), ye = W(0);
|
|
10058
10058
|
async function be(e) {
|
|
10059
10059
|
if (w.value) M.value = [];
|
|
10060
10060
|
else {
|
|
@@ -10070,15 +10070,15 @@ function Fd(e) {
|
|
|
10070
10070
|
}
|
|
10071
10071
|
async function xe() {
|
|
10072
10072
|
let e = E.value;
|
|
10073
|
-
if (!e)
|
|
10073
|
+
if (!e) P.value = [];
|
|
10074
10074
|
else {
|
|
10075
|
-
|
|
10075
|
+
fe.value = !0;
|
|
10076
10076
|
try {
|
|
10077
|
-
|
|
10077
|
+
P.value = await O.value.getChatFiles(e);
|
|
10078
10078
|
} catch {
|
|
10079
|
-
|
|
10079
|
+
P.value = [];
|
|
10080
10080
|
} finally {
|
|
10081
|
-
|
|
10081
|
+
fe.value = !1;
|
|
10082
10082
|
}
|
|
10083
10083
|
}
|
|
10084
10084
|
}
|
|
@@ -10090,8 +10090,8 @@ function Fd(e) {
|
|
|
10090
10090
|
}
|
|
10091
10091
|
async function we(e) {
|
|
10092
10092
|
await O.value.deleteChatFile(e);
|
|
10093
|
-
let t =
|
|
10094
|
-
|
|
10093
|
+
let t = P.value.find((t) => t.documentId === e), n = t?.kind === "spreadsheet" ? t.sourceAttachmentId ?? t.documentId : void 0;
|
|
10094
|
+
P.value = P.value.filter((t) => t.documentId !== e && (!n || t.documentId !== n && t.sourceAttachmentId !== n));
|
|
10095
10095
|
}
|
|
10096
10096
|
async function Te(e, t) {
|
|
10097
10097
|
if (!w.value) try {
|
|
@@ -10121,14 +10121,14 @@ function Fd(e) {
|
|
|
10121
10121
|
}
|
|
10122
10122
|
async function Ae(e) {
|
|
10123
10123
|
try {
|
|
10124
|
-
|
|
10124
|
+
me.value = await O.value.getMessageFeedbacks(e);
|
|
10125
10125
|
} catch {
|
|
10126
|
-
|
|
10126
|
+
me.value = [];
|
|
10127
10127
|
}
|
|
10128
10128
|
}
|
|
10129
10129
|
function je(e) {
|
|
10130
|
-
let t =
|
|
10131
|
-
t >= 0 ?
|
|
10130
|
+
let t = me.value.findIndex((t) => t.messageId === e.messageId);
|
|
10131
|
+
t >= 0 ? me.value[t] = e : me.value.push(e);
|
|
10132
10132
|
}
|
|
10133
10133
|
function K(e) {
|
|
10134
10134
|
let t = ue.value, n = t.findIndex((t) => t.id === e.id), r = dt(e) ?? "", i = t.slice(0, n).reverse().find((e) => e.role === "user");
|
|
@@ -10175,7 +10175,7 @@ function Fd(e) {
|
|
|
10175
10175
|
let e = H.value.length > 0;
|
|
10176
10176
|
await A.value.stop(), e && (ve.value = H.value, A.value.messages = A.value.messages.slice(0, ye.value), H.value = "");
|
|
10177
10177
|
}
|
|
10178
|
-
|
|
10178
|
+
F(() => A.value.status, (e) => {
|
|
10179
10179
|
e === "ready" && H.value.length > 0 && (H.value = "");
|
|
10180
10180
|
});
|
|
10181
10181
|
function Pe(e = !1) {
|
|
@@ -10206,7 +10206,7 @@ function Fd(e) {
|
|
|
10206
10206
|
let Be = U(() => A.value.messages.reduce((e, t) => e + t.parts.filter((e) => e.type === "file").length, 0)), Ve = U(() => _.value?.maxFilesPerMessage ?? 5), He = U(() => _.value?.maxFilesPerChat ?? 20), Ue = U(() => Math.max(0, Math.min(Ve.value - V.value.length, He.value - Be.value - V.value.length))), We = U(() => Ue.value <= 0), Ge = W(null), Ke = () => {
|
|
10207
10207
|
Ge.value = null;
|
|
10208
10208
|
};
|
|
10209
|
-
|
|
10209
|
+
F(We, (e) => {
|
|
10210
10210
|
e || (Ge.value = null);
|
|
10211
10211
|
});
|
|
10212
10212
|
async function qe(e) {
|
|
@@ -10261,24 +10261,24 @@ function Fd(e) {
|
|
|
10261
10261
|
await Y(e, "downvote");
|
|
10262
10262
|
}
|
|
10263
10263
|
function Ze(e) {
|
|
10264
|
-
|
|
10264
|
+
he.value = !1, z.value = void 0, L.value = e;
|
|
10265
10265
|
}
|
|
10266
10266
|
async function Qe(e) {
|
|
10267
|
-
if (
|
|
10268
|
-
|
|
10269
|
-
let { userQuestion: t, assistantMessage: n } = K(
|
|
10267
|
+
if (L.value) try {
|
|
10268
|
+
R.value = !0, he.value = !1, z.value = void 0;
|
|
10269
|
+
let { userQuestion: t, assistantMessage: n } = K(L.value);
|
|
10270
10270
|
je(await O.value.submitMessageFeedback({
|
|
10271
|
-
messageId:
|
|
10271
|
+
messageId: L.value.id,
|
|
10272
10272
|
chatId: E.value,
|
|
10273
10273
|
agentId: o.value,
|
|
10274
10274
|
userQuestion: t,
|
|
10275
10275
|
assistantMessage: n,
|
|
10276
10276
|
comment: e
|
|
10277
|
-
})),
|
|
10277
|
+
})), he.value = !0, await Ae(E.value);
|
|
10278
10278
|
} catch {
|
|
10279
10279
|
z.value = n("message.feedbackSubmitError") ? t("message.feedbackSubmitError") : "Failed to submit feedback";
|
|
10280
10280
|
} finally {
|
|
10281
|
-
|
|
10281
|
+
R.value = !1;
|
|
10282
10282
|
}
|
|
10283
10283
|
}
|
|
10284
10284
|
async function $e(e) {
|
|
@@ -10305,19 +10305,19 @@ function Fd(e) {
|
|
|
10305
10305
|
await O.value.deleteChat(o.value, e), M.value = M.value.filter((t) => t.id !== e), E.value === e && await Fe();
|
|
10306
10306
|
}
|
|
10307
10307
|
function nt(e) {
|
|
10308
|
-
|
|
10308
|
+
I.value = e;
|
|
10309
10309
|
}
|
|
10310
10310
|
let rt;
|
|
10311
10311
|
function it(e) {
|
|
10312
10312
|
let t = () => O.value.getChat(o.value, e).then((e) => e !== null);
|
|
10313
10313
|
return t().catch(() => t().catch(() => !1));
|
|
10314
10314
|
}
|
|
10315
|
-
return
|
|
10315
|
+
return F(l, async (e) => {
|
|
10316
10316
|
if (!e || e === rt) return;
|
|
10317
10317
|
let t = rt;
|
|
10318
10318
|
if (rt = e, t === void 0) return;
|
|
10319
10319
|
let n = E.value, r = !w.value && await it(n);
|
|
10320
|
-
l.value === e && E.value === n && (r ? be(o.value) : (M.value = [],
|
|
10320
|
+
l.value === e && E.value === n && (r ? be(o.value) : (M.value = [], me.value = [], P.value = [], await Fe(), ve.value = ""));
|
|
10321
10321
|
}), {
|
|
10322
10322
|
apiClient: O,
|
|
10323
10323
|
baseUrl: i,
|
|
@@ -10346,8 +10346,8 @@ function Fd(e) {
|
|
|
10346
10346
|
messages: ue,
|
|
10347
10347
|
conversations: M,
|
|
10348
10348
|
isLoadingConversations: N,
|
|
10349
|
-
chatFiles:
|
|
10350
|
-
isLoadingChatFiles:
|
|
10349
|
+
chatFiles: P,
|
|
10350
|
+
isLoadingChatFiles: fe,
|
|
10351
10351
|
input: ve,
|
|
10352
10352
|
pendingAttachments: V,
|
|
10353
10353
|
isAttachmentLimitReached: We,
|
|
@@ -10356,11 +10356,11 @@ function Fd(e) {
|
|
|
10356
10356
|
isConversationBlocked: re,
|
|
10357
10357
|
inputMessagePlaceholder: de,
|
|
10358
10358
|
chatError: D,
|
|
10359
|
-
activeView:
|
|
10360
|
-
messageFeedbacks:
|
|
10361
|
-
feedbackDialogMessage:
|
|
10362
|
-
isFeedbackSubmitting:
|
|
10363
|
-
isFeedbackSubmitted:
|
|
10359
|
+
activeView: I,
|
|
10360
|
+
messageFeedbacks: me,
|
|
10361
|
+
feedbackDialogMessage: L,
|
|
10362
|
+
isFeedbackSubmitting: R,
|
|
10363
|
+
isFeedbackSubmitted: he,
|
|
10364
10364
|
feedbackSubmitError: z,
|
|
10365
10365
|
isLeadSubmitted: ge,
|
|
10366
10366
|
isLoadingSubmitLead: _e,
|
|
@@ -10516,8 +10516,8 @@ j(), H();
|
|
|
10516
10516
|
function qd(e, t) {
|
|
10517
10517
|
let { locale: n, t: r, te: i } = ze({ useScope: "global" });
|
|
10518
10518
|
return U(() => {
|
|
10519
|
-
let a =
|
|
10520
|
-
return Jd(a?.greeting?.[0]?.[n.value] || a?.initialMessage?.[n.value] || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""),
|
|
10519
|
+
let a = R(e);
|
|
10520
|
+
return Jd(a?.greeting?.[0]?.[n.value] || a?.initialMessage?.[n.value] || (i("message.defaultAgentWelcome") ? r("message.defaultAgentWelcome") : ""), R(t));
|
|
10521
10521
|
});
|
|
10522
10522
|
}
|
|
10523
10523
|
function Jd(e, t) {
|
|
@@ -10533,7 +10533,7 @@ function Xd(e) {
|
|
|
10533
10533
|
return Pr(e?.message)?.payload;
|
|
10534
10534
|
}
|
|
10535
10535
|
function Zd(e) {
|
|
10536
|
-
let t = U(() => Yd(
|
|
10536
|
+
let t = U(() => Yd(R(e), "context_length_exceeded")), n = U(() => Yd(R(e), "entity-not-found")), r = U(() => Yd(R(e), "rate-limit-exceeded")), i = U(() => Yd(R(e), "origin-not-allowed")), a = U(() => Yd(R(e), "credit-exhausted")), o = U(() => Yd(R(e), "conversation-blocked")), s = U(() => Yd(R(e), "bad request")), c = U(() => Yd(R(e), "internal-server-error")), l = U(() => Fr(R(e)?.message, "GATEWAY_CONFIG")), u = U(() => Yd(R(e), "gateway-disabled")), d = U(() => Yd(R(e), "model-unavailable"));
|
|
10537
10537
|
return {
|
|
10538
10538
|
isContextWindowError: t,
|
|
10539
10539
|
isNotFoundError: n,
|
|
@@ -11331,7 +11331,7 @@ function bp() {
|
|
|
11331
11331
|
return Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
11332
11332
|
}
|
|
11333
11333
|
function xp(e = {}) {
|
|
11334
|
-
let t = W(dp(e.cookieName)), n = U(() =>
|
|
11334
|
+
let t = W(dp(e.cookieName)), n = U(() => R(e.useHostSession) ?? !1), r = U({
|
|
11335
11335
|
get: () => t.value,
|
|
11336
11336
|
set: (n) => {
|
|
11337
11337
|
up(n, e.cookieName), t.value = n;
|
|
@@ -11361,12 +11361,12 @@ function xp(e = {}) {
|
|
|
11361
11361
|
credentials: n.value ? "include" : t?.credentials
|
|
11362
11362
|
})
|
|
11363
11363
|
}
|
|
11364
|
-
}), o = a.useSession(), s = W(!1), c = U(() =>
|
|
11364
|
+
}), o = a.useSession(), s = W(!1), c = U(() => R(e.externalToken)), l = U(() => R(e.isActive) ?? !0), u = W(c.value), d = U(() => !!c.value || !!e.awaitExternalToken || !!u.value || n.value), f = Promise.resolve();
|
|
11365
11365
|
function p(e) {
|
|
11366
11366
|
let t = f.then(e, e);
|
|
11367
11367
|
return f = t, t;
|
|
11368
11368
|
}
|
|
11369
|
-
|
|
11369
|
+
F(() => o.value.data?.user, (t, n) => {
|
|
11370
11370
|
t && t.id !== n?.id && e.onSignedIn?.({
|
|
11371
11371
|
userId: t.id,
|
|
11372
11372
|
isAnonymous: !!t.isAnonymous
|
|
@@ -11432,7 +11432,7 @@ function xp(e = {}) {
|
|
|
11432
11432
|
}
|
|
11433
11433
|
});
|
|
11434
11434
|
}
|
|
11435
|
-
|
|
11435
|
+
F([l, o], ([t, r]) => {
|
|
11436
11436
|
if (!t) return;
|
|
11437
11437
|
if (!r.isPending && !r.isRefetching && !s.value && !r.data) {
|
|
11438
11438
|
if (n.value) return;
|
|
@@ -11458,9 +11458,9 @@ function xp(e = {}) {
|
|
|
11458
11458
|
}
|
|
11459
11459
|
i?.isAnonymous && u.value && b !== u.value ? S(u.value) : i?.isAnonymous && i.id && !pp(e.cookieName) && fp(i.id, e.cookieName);
|
|
11460
11460
|
}
|
|
11461
|
-
}, { immediate: !0 }),
|
|
11461
|
+
}, { immediate: !0 }), F(n, () => {
|
|
11462
11462
|
o.value.refetch();
|
|
11463
|
-
}),
|
|
11463
|
+
}), F(c, (e, t) => {
|
|
11464
11464
|
e ? (u.value = e, l.value && S(e)) : t && u.value === t && se();
|
|
11465
11465
|
});
|
|
11466
11466
|
function C(t) {
|
|
@@ -11579,7 +11579,7 @@ function xp(e = {}) {
|
|
|
11579
11579
|
j();
|
|
11580
11580
|
function Sp(e) {
|
|
11581
11581
|
let t = Fd(e.agentId);
|
|
11582
|
-
return
|
|
11582
|
+
return pe(() => {
|
|
11583
11583
|
t.baseUrl = e.baseUrl, t.headers = e.headers.value, t.userId = e.userId.value;
|
|
11584
11584
|
}), t;
|
|
11585
11585
|
}
|
|
@@ -11603,15 +11603,15 @@ function wp(e) {
|
|
|
11603
11603
|
return {
|
|
11604
11604
|
user: i,
|
|
11605
11605
|
canManageProfile: U(() => i.value !== null),
|
|
11606
|
-
canSignIn: U(() =>
|
|
11607
|
-
isExternalAuth: U(() =>
|
|
11606
|
+
canSignIn: U(() => R(e.canSignIn) ?? !1),
|
|
11607
|
+
isExternalAuth: U(() => R(e.isExternalAuth) ?? !1),
|
|
11608
11608
|
profileUrl: U(() => `${gp}/app/profile`),
|
|
11609
11609
|
signOut: n,
|
|
11610
11610
|
eraseConversations: r ? async () => {
|
|
11611
11611
|
let e = await fetch(`${r.baseUrl}/api/v1/me/conversations/erasure`, {
|
|
11612
11612
|
method: "POST",
|
|
11613
11613
|
credentials: "include",
|
|
11614
|
-
headers:
|
|
11614
|
+
headers: R(r.headers)
|
|
11615
11615
|
});
|
|
11616
11616
|
if (!e.ok) throw Error(`Conversations erasure failed (${e.status})`);
|
|
11617
11617
|
let t = await e.json();
|
|
@@ -11652,12 +11652,12 @@ j(), H();
|
|
|
11652
11652
|
function Ep(e) {
|
|
11653
11653
|
let t = W(), n = W(), r = W(), i = W(), a = W(!1), o = W(!1), s = W(!1);
|
|
11654
11654
|
async function c() {
|
|
11655
|
-
let c =
|
|
11655
|
+
let c = R(e.organizationSlug), l = R(e.agentId);
|
|
11656
11656
|
if (!c || !l) return;
|
|
11657
11657
|
let u = Gs({
|
|
11658
11658
|
baseUrl: e.baseUrl ?? "https://ai-api.8wave.it",
|
|
11659
11659
|
basePath: e.basePath,
|
|
11660
|
-
headers: () =>
|
|
11660
|
+
headers: () => R(e.headers)
|
|
11661
11661
|
});
|
|
11662
11662
|
s.value = !0;
|
|
11663
11663
|
try {
|
|
@@ -11669,9 +11669,9 @@ function Ep(e) {
|
|
|
11669
11669
|
s.value = !1;
|
|
11670
11670
|
}
|
|
11671
11671
|
}
|
|
11672
|
-
|
|
11672
|
+
F([() => R(e.organizationSlug), () => R(e.agentId)], () => {
|
|
11673
11673
|
c();
|
|
11674
|
-
}, { immediate: !0 }),
|
|
11674
|
+
}, { immediate: !0 }), F(() => R(e.headers), () => {
|
|
11675
11675
|
a.value && c();
|
|
11676
11676
|
});
|
|
11677
11677
|
let l = U(() => t.value?.interface ?? n.value?.interface), u = U(() => qe(l.value?.textColor, l.value?.mainColor)), d = U(() => l.value?.mainColor);
|
|
@@ -11689,7 +11689,7 @@ function Ep(e) {
|
|
|
11689
11689
|
themeClass: U(() => {
|
|
11690
11690
|
let t = l.value?.theme;
|
|
11691
11691
|
if (t && t !== "auto") return ["theme", `theme--${t}`];
|
|
11692
|
-
let n =
|
|
11692
|
+
let n = R(e.systemTheme);
|
|
11693
11693
|
return n ? ["theme", `theme--${n}`] : ["theme"];
|
|
11694
11694
|
}),
|
|
11695
11695
|
themeStyle: U(() => rt(d.value, u.value))
|
|
@@ -11824,10 +11824,10 @@ var kp = ["src"], Ap = /*#__PURE__*/ pn(/* @__PURE__ */ w({
|
|
|
11824
11824
|
src: e.imgSrc,
|
|
11825
11825
|
alt: "avatar",
|
|
11826
11826
|
onError: n[0] ||= (t) => N(r)(e.imgSrc)
|
|
11827
|
-
}, null, 40, kp)) : o.value ? (A(), K(z, { key: 1 }, [
|
|
11827
|
+
}, null, 40, kp)) : o.value ? (A(), K(z, { key: 1 }, [L(E(o.value), 1)], 64)) : e.fallbackIcon ? (A(), B(s, {
|
|
11828
11828
|
key: 2,
|
|
11829
11829
|
name: e.fallbackIcon
|
|
11830
|
-
}, null, 8, ["name"])) :
|
|
11830
|
+
}, null, 8, ["name"])) : I("", !0)]),
|
|
11831
11831
|
_: 1
|
|
11832
11832
|
}, 8, [
|
|
11833
11833
|
"class",
|
|
@@ -11938,7 +11938,7 @@ var Ip = /* @__PURE__ */ w({
|
|
|
11938
11938
|
}
|
|
11939
11939
|
return a.value ? i("message.chatErrorContextWindow") : o.value ? i("message.chatErrorNotFound") : s.value ? i("message.chatErrorRateLimit", { seconds: y.value }) : c.value ? i("message.chatErrorOriginNotAllowed") : l.value ? i("message.chatErrorCreditExhausted") : m.value ? i("message.chatErrorGatewayDisabled") : h.value ? i("message.chatErrorModelUnavailable") : u.value ? i("message.chatErrorConversationBlocked") : d.value ? i("message.chatErrorBadRequest") : f.value ? i("message.chatErrorInternalServer") : i("message.chatErrorGeneric", { seconds: y.value });
|
|
11940
11940
|
}), y = W(0), b = W();
|
|
11941
|
-
return
|
|
11941
|
+
return F(() => n.error, (e) => {
|
|
11942
11942
|
if (b.value && clearTimeout(b.value), e && g.value) {
|
|
11943
11943
|
y.value = 10;
|
|
11944
11944
|
let e = () => {
|
|
@@ -11954,7 +11954,7 @@ var Ip = /* @__PURE__ */ w({
|
|
|
11954
11954
|
modifiers: N(g) ? "warning" : "danger",
|
|
11955
11955
|
class: "rounded-lg"
|
|
11956
11956
|
}, Fe({
|
|
11957
|
-
default: C(() => [
|
|
11957
|
+
default: C(() => [L(E(v.value) + " ", 1)]),
|
|
11958
11958
|
_: 2
|
|
11959
11959
|
}, [N(g) || !_.value ? {
|
|
11960
11960
|
name: "footer",
|
|
@@ -11965,7 +11965,7 @@ var Ip = /* @__PURE__ */ w({
|
|
|
11965
11965
|
class: "text-12",
|
|
11966
11966
|
label: N(i)("action.retryNow"),
|
|
11967
11967
|
onClick: t[0] ||= (t) => e.$emit("retry")
|
|
11968
|
-
}, null, 8, ["label"])) : _.value ?
|
|
11968
|
+
}, null, 8, ["label"])) : _.value ? I("", !0) : (A(), B(n, {
|
|
11969
11969
|
key: 1,
|
|
11970
11970
|
icon: "reload",
|
|
11971
11971
|
modifiers: "action",
|
|
@@ -12016,7 +12016,7 @@ var Lp = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
|
|
|
12016
12016
|
class: "text-16 text-success"
|
|
12017
12017
|
}), V("div", null, [V("strong", Gp, E(N(n)("message.feedbackSubmittedTitle")), 1), V("p", Kp, E(N(n)("message.feedbackSubmittedMessage")), 1)])])])) : (A(), K("div", Bp, [J(N(s), {
|
|
12018
12018
|
modelValue: N(l),
|
|
12019
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
12019
|
+
"onUpdate:modelValue": r[2] ||= (e) => he(l) ? l.value = e : null,
|
|
12020
12020
|
onSubmit: u
|
|
12021
12021
|
}, {
|
|
12022
12022
|
default: C(() => [V("div", Vp, [e.error ? (A(), B(o, {
|
|
@@ -12024,7 +12024,7 @@ var Lp = { class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-
|
|
|
12024
12024
|
modifiers: "danger",
|
|
12025
12025
|
class: "mb-sm",
|
|
12026
12026
|
content: e.error
|
|
12027
|
-
}, null, 8, ["content"])) :
|
|
12027
|
+
}, null, 8, ["content"])) : I("", !0), J(N(c), {
|
|
12028
12028
|
name: "comment",
|
|
12029
12029
|
type: "textarea",
|
|
12030
12030
|
rows: "3",
|
|
@@ -12098,7 +12098,7 @@ var Jp = { class: "pk-message-feedback__badge" }, Yp = {
|
|
|
12098
12098
|
return A(), K("div", { class: q(["pk-message-feedback", r.value]) }, [V("span", Jp, [n.value ? (A(), K("span", Yp, E(n.value), 1)) : (A(), B(o, {
|
|
12099
12099
|
key: 1,
|
|
12100
12100
|
name: i.value
|
|
12101
|
-
}, null, 8, ["name"]))]), e.feedback.comment ? (A(), K("p", Xp, E(e.feedback.comment), 1)) :
|
|
12101
|
+
}, null, 8, ["name"]))]), e.feedback.comment ? (A(), K("p", Xp, E(e.feedback.comment), 1)) : I("", !0)], 2);
|
|
12102
12102
|
};
|
|
12103
12103
|
}
|
|
12104
12104
|
}), [["styles", [".pk-message-feedback{align-items:center;gap:var(--spacing-8);padding:var(--spacing-6) var(--spacing-12) var(--spacing-6) var(--spacing-6);border-radius:var(--rounded-lg);background:var(--pk-feedback-surface);font-size:var(--text-12);color:var(--color-word-2);display:flex}.pk-message-feedback--positive{--pk-feedback-accent:var(--u-success-text,var(--color-success))}.pk-message-feedback--negative{--pk-feedback-accent:var(--u-danger-text,var(--color-danger))}.pk-message-feedback--neutral{--pk-feedback-accent:var(--color-surface-4)}.pk-message-feedback{--pk-feedback-surface:color-mix(in srgb, var(--pk-feedback-accent) 8%, var(--color-surface))}.pk-message-feedback__badge{width:var(--spacing-22,1.375rem);height:var(--spacing-22,1.375rem);border-radius:var(--rounded-full,9999px);background:var(--color-surface);color:var(--pk-feedback-accent);box-shadow:var(--shadow-sm);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.pk-message-feedback__emoji{font-size:var(--text-12);line-height:1}.pk-message-feedback__comment{white-space:pre-wrap;text-wrap:pretty;margin:0}"]]]);
|
|
@@ -12158,15 +12158,15 @@ var Qp = { class: "pk-chatbot-audio" }, $p = ["src"], em = {
|
|
|
12158
12158
|
class: "shrink-0"
|
|
12159
12159
|
}),
|
|
12160
12160
|
V("span", am, E(N(n)("messagePart.audioTranscript")), 1),
|
|
12161
|
-
a.value ? (A(), K("span", om, E(a.value), 1)) :
|
|
12161
|
+
a.value ? (A(), K("span", om, E(a.value), 1)) : I("", !0),
|
|
12162
12162
|
J(c, {
|
|
12163
12163
|
name: r.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
12164
12164
|
class: "pk-chatbot-audio__chevron shrink-0 ml-auto"
|
|
12165
12165
|
}, null, 8, ["name"])
|
|
12166
|
-
], 8, im), r.value ? (A(), K("div", sm, E(i.value), 1)) :
|
|
12166
|
+
], 8, im), r.value ? (A(), K("div", sm, E(i.value), 1)) : I("", !0)])) : o.value ? (A(), K("div", cm, [V("div", lm, [J(c, {
|
|
12167
12167
|
name: "ri:file-text-line",
|
|
12168
12168
|
class: "shrink-0"
|
|
12169
|
-
}), V("span", null, E(o.value), 1)])])) :
|
|
12169
|
+
}), V("span", null, E(o.value), 1)])])) : I("", !0)]);
|
|
12170
12170
|
};
|
|
12171
12171
|
}
|
|
12172
12172
|
}), [["styles", [".pk-chatbot-audio{align-items:flex-end;gap:var(--spacing-8);flex-direction:column;width:100%;min-width:0;max-width:28rem;display:flex}.pk-chatbot-audio__player{width:100%;max-width:280px}.pk-chatbot-audio__box{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface-1);width:100%;font-size:var(--text-12);color:var(--color-word-3);overflow:hidden}.pk-chatbot-audio__header{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-40);padding:var(--spacing-8) var(--spacing-sm);text-align:left;display:flex}.pk-chatbot-audio__header--toggle{cursor:pointer;transition:background-color .2s}.pk-chatbot-audio__header--toggle:hover{background-color:var(--color-surface-2)}.pk-chatbot-audio__title{color:var(--color-word-2);flex-grow:1;font-weight:600}.pk-chatbot-audio__meta{color:var(--color-word-4);font-variant-numeric:tabular-nums}.pk-chatbot-audio__chevron{font-size:var(--text-16)}.pk-chatbot-audio__body{max-height:var(--spacing-256);padding:var(--spacing-8) var(--spacing-sm);border-top:var(--spacing-px) solid var(--color-surface-3);background-color:var(--color-surface);color:var(--color-word-2);white-space:pre-line;overflow-wrap:anywhere;line-height:1.6;overflow:auto}"]]]);
|
|
@@ -12239,7 +12239,7 @@ var mm = {
|
|
|
12239
12239
|
showMultipleChoice: M(() => import("./_chunks/PkToolShowForm-CbuToc8O.js")),
|
|
12240
12240
|
showProductList: M(() => import("./_chunks/PkToolShowProductList-bAis8u1t.js")),
|
|
12241
12241
|
showQrCode: M(() => import("./_chunks/PkToolShowQrCode-BhcAUXSZ.js")),
|
|
12242
|
-
showSources: M(() => import("./_chunks/PkToolShowSources-
|
|
12242
|
+
showSources: M(() => import("./_chunks/PkToolShowSources-B1zXilsH.js")),
|
|
12243
12243
|
showSuggestedReply: M(() => import("./_chunks/PkToolShowSuggestedReply-BISQY1ce.js")),
|
|
12244
12244
|
showVideo: M(() => import("./_chunks/PkToolShowVideo-DcMzLibC.js")),
|
|
12245
12245
|
showWeather: M(() => import("./_chunks/PkToolShowWeather-DTrZ7r1t.js")),
|
|
@@ -12259,7 +12259,7 @@ var hm = {
|
|
|
12259
12259
|
let e = t.input;
|
|
12260
12260
|
return typeof e?.message == "string" ? e.message : "";
|
|
12261
12261
|
});
|
|
12262
|
-
return (e, t) => n.value ? (A(), K("p", hm, E(n.value), 1)) :
|
|
12262
|
+
return (e, t) => n.value ? (A(), K("p", hm, E(n.value), 1)) : I("", !0);
|
|
12263
12263
|
}
|
|
12264
12264
|
}), _m = { [mt]: gm };
|
|
12265
12265
|
//#endregion
|
|
@@ -12298,14 +12298,14 @@ var vm = {
|
|
|
12298
12298
|
let a = sn, s = Zt, d = an;
|
|
12299
12299
|
return A(), K("div", { class: q(["w-full overflow-hidden transition-all duration-300", { "bg-surface p-sm rounded-xl border border-surface-3": !_.value }]) }, [
|
|
12300
12300
|
J(G, null, {
|
|
12301
|
-
default: C(() => [!c.value && l.value ? (A(), K("p", vm, E(h.value), 1)) :
|
|
12301
|
+
default: C(() => [!c.value && l.value ? (A(), K("p", vm, E(h.value), 1)) : I("", !0)]),
|
|
12302
12302
|
_: 1
|
|
12303
12303
|
}),
|
|
12304
12304
|
m.value ? (A(), B(oe(m.value), {
|
|
12305
12305
|
key: 0,
|
|
12306
12306
|
part: e.part,
|
|
12307
12307
|
input: o.value.input
|
|
12308
|
-
}, null, 8, ["part", "input"])) :
|
|
12308
|
+
}, null, 8, ["part", "input"])) : I("", !0),
|
|
12309
12309
|
J(G, { mode: "out-in" }, {
|
|
12310
12310
|
default: C(() => [g.value ? (A(), K("p", {
|
|
12311
12311
|
key: 1,
|
|
@@ -12313,7 +12313,7 @@ var vm = {
|
|
|
12313
12313
|
}, [J(d, {
|
|
12314
12314
|
name: g.value.icon,
|
|
12315
12315
|
class: "shrink-0"
|
|
12316
|
-
}, null, 8, ["name"]),
|
|
12316
|
+
}, null, 8, ["name"]), L(" " + E(g.value.message), 1)], 2)) : (A(), B(s, { key: 0 }, {
|
|
12317
12317
|
default: C(() => [J(a, {
|
|
12318
12318
|
modifiers: "primary-small",
|
|
12319
12319
|
disabled: !u.value,
|
|
@@ -12453,14 +12453,14 @@ var Sm = {
|
|
|
12453
12453
|
key: 0,
|
|
12454
12454
|
name: u.has(e.key) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
12455
12455
|
class: "shrink-0"
|
|
12456
|
-
}, null, 8, ["name"])) :
|
|
12456
|
+
}, null, 8, ["name"])) : I("", !0)
|
|
12457
12457
|
]),
|
|
12458
12458
|
_: 2
|
|
12459
12459
|
}, 1032, [
|
|
12460
12460
|
"type",
|
|
12461
12461
|
"aria-expanded",
|
|
12462
12462
|
"onClick"
|
|
12463
|
-
])), e.full && u.has(e.key) ? (A(), K("pre", km, E(e.full), 1)) :
|
|
12463
|
+
])), e.full && u.has(e.key) ? (A(), K("pre", km, E(e.full), 1)) : I("", !0)]))), 128))])) : l.value ? (A(), K("pre", Am, E(s.value), 1)) : I("", !0)])) : I("", !0);
|
|
12464
12464
|
};
|
|
12465
12465
|
}
|
|
12466
12466
|
}), [["styles", [".pk-chatbot-step-payload{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded);background-color:var(--color-surface-1);overflow:hidden}.pk-chatbot-step-payload__header{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-28);padding:var(--spacing-4) var(--spacing-8);text-align:left;cursor:pointer;transition:background-color .2s;display:flex}.pk-chatbot-step-payload__header:hover{background-color:var(--color-surface-2)}.pk-chatbot-step-payload__label{font-weight:600;font-size:var(--text-10);text-transform:uppercase;letter-spacing:.05em;color:var(--color-word-3);flex-shrink:0}.pk-chatbot-step-payload__summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--font-mono);font-size:var(--text-10);color:var(--color-word-4);flex:1 1 0;overflow:hidden}.pk-chatbot-step-payload__rows>li{border-top:var(--spacing-px) solid var(--color-surface-3)}.pk-chatbot-step-payload__row{align-items:baseline;gap:var(--spacing-8);width:100%;padding:var(--spacing-4) var(--spacing-8);text-align:left;font-size:var(--text-10);display:flex}.pk-chatbot-step-payload__row:is(button){cursor:pointer;transition:background-color .2s}.pk-chatbot-step-payload__row:is(button):hover{background-color:var(--color-surface-2)}.pk-chatbot-step-payload__key{text-overflow:ellipsis;white-space:nowrap;max-width:40%;font-family:var(--font-mono);color:var(--color-word-4);flex-shrink:0;overflow:hidden}.pk-chatbot-step-payload__value{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--color-word-2);flex:1 1 0;overflow:hidden}.pk-chatbot-step-payload__full{padding:var(--spacing-8);border-top:var(--spacing-px) solid var(--color-surface-3);max-height:var(--spacing-160);white-space:pre-wrap;word-break:break-word;font-family:var(--font-mono);font-size:var(--text-10);color:var(--color-word-3);overflow:auto}"]]]);
|
|
@@ -12656,7 +12656,7 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
|
|
|
12656
12656
|
}, [J(r, {
|
|
12657
12657
|
name: "ri:search-line",
|
|
12658
12658
|
class: "shrink-0"
|
|
12659
|
-
}), V("span", Fm, E(e), 1)]))), 128))])) :
|
|
12659
|
+
}), V("span", Fm, E(e), 1)]))), 128))])) : I("", !0),
|
|
12660
12660
|
(A(!0), K(z, null, Le(b.value.facts, (e, t) => (A(), K("div", {
|
|
12661
12661
|
key: `${t}-${e.text}`,
|
|
12662
12662
|
class: "pk-chatbot-step-detail__fact"
|
|
@@ -12682,9 +12682,9 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
|
|
|
12682
12682
|
rel: "noopener noreferrer",
|
|
12683
12683
|
class: "pk-chatbot-step-detail__link",
|
|
12684
12684
|
onClick: t[0] ||= Ae(() => {}, ["stop"])
|
|
12685
|
-
}, [J(r, { name: "ri:external-link-line" })], 8, Bm)) :
|
|
12686
|
-
e.meta ? (A(), K("span", Vm, E(e.meta), 1)) :
|
|
12687
|
-
e.relevance === void 0 ?
|
|
12685
|
+
}, [J(r, { name: "ri:external-link-line" })], 8, Bm)) : I("", !0)]),
|
|
12686
|
+
e.meta ? (A(), K("span", Vm, E(e.meta), 1)) : I("", !0),
|
|
12687
|
+
e.relevance === void 0 ? I("", !0) : (A(), K("span", Hm, [V("span", {
|
|
12688
12688
|
class: "pk-chatbot-step-detail__relevance-fill",
|
|
12689
12689
|
style: re({ width: `${Math.round(e.relevance * 100)}%` })
|
|
12690
12690
|
}, null, 4)])),
|
|
@@ -12692,32 +12692,32 @@ var Nm = { class: "pk-chatbot-step-detail" }, Pm = {
|
|
|
12692
12692
|
key: 2,
|
|
12693
12693
|
name: x.has(e.key) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
12694
12694
|
class: "shrink-0"
|
|
12695
|
-
}, null, 8, ["name"])) :
|
|
12695
|
+
}, null, 8, ["name"])) : I("", !0)
|
|
12696
12696
|
]),
|
|
12697
12697
|
_: 2
|
|
12698
12698
|
}, 1032, [
|
|
12699
12699
|
"type",
|
|
12700
12700
|
"aria-expanded",
|
|
12701
12701
|
"onClick"
|
|
12702
|
-
])), e.body && x.has(e.key) ? (A(), K("div", Um, E(e.body), 1)) :
|
|
12702
|
+
])), e.body && x.has(e.key) ? (A(), K("div", Um, E(e.body), 1)) : I("", !0)]))), 128))])) : I("", !0),
|
|
12703
12703
|
b.value.passage ? (A(), K("div", Wm, [V("div", Gm, [
|
|
12704
12704
|
J(r, {
|
|
12705
12705
|
name: "ri:file-text-line",
|
|
12706
12706
|
class: "shrink-0"
|
|
12707
12707
|
}),
|
|
12708
12708
|
V("span", Km, [V("span", qm, E(b.value.passage.title ?? N(n)("messagePart.stepDocument")), 1)]),
|
|
12709
|
-
b.value.passage.meta ? (A(), K("span", Jm, E(b.value.passage.meta), 1)) :
|
|
12710
|
-
]), V("div", Ym, E(b.value.passage.content), 1)])) :
|
|
12709
|
+
b.value.passage.meta ? (A(), K("span", Jm, E(b.value.passage.meta), 1)) : I("", !0)
|
|
12710
|
+
]), V("div", Ym, E(b.value.passage.content), 1)])) : I("", !0),
|
|
12711
12711
|
N(bt)(b.value.rawInput) ? (A(), B(Mm, {
|
|
12712
12712
|
key: 4,
|
|
12713
12713
|
label: N(n)("messagePart.stepInput"),
|
|
12714
12714
|
value: b.value.rawInput
|
|
12715
|
-
}, null, 8, ["label", "value"])) :
|
|
12715
|
+
}, null, 8, ["label", "value"])) : I("", !0),
|
|
12716
12716
|
N(bt)(b.value.rawOutput) ? (A(), B(Mm, {
|
|
12717
12717
|
key: 5,
|
|
12718
12718
|
label: N(n)("messagePart.stepOutput"),
|
|
12719
12719
|
value: b.value.rawOutput
|
|
12720
|
-
}, null, 8, ["label", "value"])) :
|
|
12720
|
+
}, null, 8, ["label", "value"])) : I("", !0)
|
|
12721
12721
|
]);
|
|
12722
12722
|
};
|
|
12723
12723
|
}
|
|
@@ -12781,9 +12781,7 @@ var Zm = {
|
|
|
12781
12781
|
}), s = (e) => ot(r, e), c = _e(/* @__PURE__ */ new Map()), l = (e) => c.get(e.key) ?? !1, u = (e) => {
|
|
12782
12782
|
c.set(e.key, !l(e));
|
|
12783
12783
|
}, d = W(void 0), f = U(() => d.value ?? (!!t.isStreaming && !t.hasContent));
|
|
12784
|
-
return
|
|
12785
|
-
e && (d.value = void 0, c.clear());
|
|
12786
|
-
}), (t, r) => {
|
|
12784
|
+
return (t, r) => {
|
|
12787
12785
|
let i = an;
|
|
12788
12786
|
return a.value.length ? (A(), K("div", Zm, [V("button", {
|
|
12789
12787
|
type: "button",
|
|
@@ -12801,7 +12799,7 @@ var Zm = {
|
|
|
12801
12799
|
class: "shrink-0"
|
|
12802
12800
|
})),
|
|
12803
12801
|
V("span", $m, E(N(n)("messagePart.steps")), 1),
|
|
12804
|
-
V("span", eh, [
|
|
12802
|
+
V("span", eh, [L(E(N(n)("messagePart.stepCount", a.value.length)) + " ", 1), s(o.value) ? (A(), K(z, { key: 0 }, [L(" · " + E(s(o.value)), 1)], 64)) : I("", !0)]),
|
|
12805
12803
|
J(i, {
|
|
12806
12804
|
name: f.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
12807
12805
|
class: "pk-chatbot-steps__chevron shrink-0 ml-auto"
|
|
@@ -12822,15 +12820,15 @@ var Zm = {
|
|
|
12822
12820
|
})) : t.icon ? (A(), B(i, {
|
|
12823
12821
|
key: 1,
|
|
12824
12822
|
name: t.icon
|
|
12825
|
-
}, null, 8, ["name"])) :
|
|
12823
|
+
}, null, 8, ["name"])) : I("", !0)], 2),
|
|
12826
12824
|
V("span", nh, E(t.label), 1),
|
|
12827
12825
|
V("span", rh, E(t.summary), 1),
|
|
12828
|
-
s(t.durationMs) ? (A(), K("span", ih, E(s(t.durationMs)), 1)) :
|
|
12826
|
+
s(t.durationMs) ? (A(), K("span", ih, E(s(t.durationMs)), 1)) : I("", !0),
|
|
12829
12827
|
t.hasBody ? (A(), B(i, {
|
|
12830
12828
|
key: 1,
|
|
12831
12829
|
name: l(t) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
12832
12830
|
class: "pk-chatbot-steps__chevron shrink-0 ml-auto"
|
|
12833
|
-
}, null, 8, ["name"])) :
|
|
12831
|
+
}, null, 8, ["name"])) : I("", !0)
|
|
12834
12832
|
]),
|
|
12835
12833
|
_: 2
|
|
12836
12834
|
}, 1032, [
|
|
@@ -12859,11 +12857,11 @@ var Zm = {
|
|
|
12859
12857
|
key: 0,
|
|
12860
12858
|
label: N(n)("messagePart.stepInput"),
|
|
12861
12859
|
value: t.toolInput
|
|
12862
|
-
}, null, 8, ["label", "value"])) :
|
|
12860
|
+
}, null, 8, ["label", "value"])) : I("", !0), N(bt)(t.toolOutput) ? (A(), B(Mm, {
|
|
12863
12861
|
key: 1,
|
|
12864
12862
|
label: N(n)("messagePart.stepOutput"),
|
|
12865
12863
|
value: t.toolOutput
|
|
12866
|
-
}, null, 8, ["label", "value"])) :
|
|
12864
|
+
}, null, 8, ["label", "value"])) : I("", !0)], 64))])) : I("", !0)], 2))), 128))])) : I("", !0)])) : I("", !0);
|
|
12867
12865
|
};
|
|
12868
12866
|
}
|
|
12869
12867
|
}), [["styles", [".pk-chatbot-steps{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface-1);width:100%;font-size:var(--text-12);color:var(--color-word-3);overflow:hidden}.pk-chatbot-steps__header{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-40);padding:var(--spacing-8) var(--spacing-sm);text-align:left;cursor:pointer;transition:background-color .2s;display:flex}.pk-chatbot-steps__header:hover{background-color:var(--color-surface-2)}.pk-chatbot-steps__chevron{font-size:var(--text-16)}.pk-chatbot-steps__title{color:var(--color-word-2);flex-grow:1;font-weight:600}.pk-chatbot-steps__meta{color:var(--color-word-4);font-variant-numeric:tabular-nums;white-space:nowrap}.pk-chatbot-steps__list{background-color:var(--color-surface);border-top:var(--spacing-px) solid var(--color-surface-3);padding:var(--spacing-8) var(--spacing-sm);flex-direction:column;display:flex}.pk-chatbot-steps__step{position:relative}.pk-chatbot-steps__step:not(:last-child):before{content:\"\";left:var(--spacing-10);top:var(--spacing-28);bottom:calc(var(--spacing-8) * -1);width:var(--spacing-px);background-color:var(--color-surface-4);position:absolute}.pk-chatbot-steps__step-header{align-items:center;gap:var(--spacing-8);width:calc(100% + var(--spacing-16));min-height:var(--spacing-36);margin-inline:calc(var(--spacing-8) * -1);padding:var(--spacing-4) var(--spacing-8);text-align:left;display:flex}.pk-chatbot-steps__step-header:is(button){cursor:pointer;border-radius:var(--rounded);transition:background-color .2s}.pk-chatbot-steps__step-header:is(button):hover{background-color:var(--color-surface-2)}.pk-chatbot-steps-marker{width:var(--spacing-20);height:var(--spacing-20);z-index:1;background-color:var(--color-surface-1);border-radius:var(--rounded-full);border:var(--spacing-px) solid var(--color-surface-4);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative}.pk-chatbot-steps-marker--active{background-color:var(--chatbot-main-color,var(--color-surface-4));color:var(--chatbot-contrast-color,var(--color-word-1));border-color:#0000}.pk-chatbot-steps__step-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--color-word-2);overflow:hidden}.pk-chatbot-steps__step-summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--color-word-4);flex:1 1 0;overflow:hidden}.pk-chatbot-steps__step-duration{color:var(--color-word-4);font-variant-numeric:tabular-nums;white-space:nowrap}.pk-chatbot-steps__step--active .pk-chatbot-steps__step-label{color:var(--color-word-1)}.pk-chatbot-steps__step-body{gap:var(--spacing-4);margin-left:var(--spacing-28);margin-block:var(--spacing-4) var(--spacing-8);flex-direction:column;display:flex}.pk-chatbot-steps__step-content{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded);padding:var(--spacing-8);background-color:var(--color-surface-1)}.pk-chatbot-steps__step-content--scroll{max-height:var(--spacing-256);overflow:auto}.pk-chatbot-steps__step-payload{gap:var(--spacing-2);flex-direction:column;display:flex}.pk-chatbot-steps__step-payload pre{border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded);padding:var(--spacing-8);font-size:var(--text-10);max-height:var(--spacing-160);white-space:pre-wrap;word-break:break-word;font-family:var(--font-mono);background-color:var(--color-surface-1);overflow:auto}.pk-chatbot-steps__step-payload-label{color:var(--color-word-3);text-transform:uppercase;font-weight:600;font-size:var(--text-10);letter-spacing:.05em}.pk-chatbot-steps__step-payload--error .pk-chatbot-steps__step-payload-label,.pk-chatbot-steps__step-payload--error pre{color:var(--u-danger-text,var(--color-danger))}.pk-chatbot-steps__step-payload--error pre{border-color:var(--color-danger-lighten-5)}"]]]);
|
|
@@ -12935,9 +12933,9 @@ function _h(e) {
|
|
|
12935
12933
|
}, te = () => {
|
|
12936
12934
|
f?.disconnect(), f = null;
|
|
12937
12935
|
};
|
|
12938
|
-
|
|
12936
|
+
F(n, (e, t) => {
|
|
12939
12937
|
e === "streaming" || e === "submitted" ? C() : (e !== "ready" || t !== "streaming") && te();
|
|
12940
|
-
}),
|
|
12938
|
+
}), F(r, async () => {
|
|
12941
12939
|
if (r() && i() !== "assistant") {
|
|
12942
12940
|
ne(), l.value = !1, d = !0;
|
|
12943
12941
|
try {
|
|
@@ -13092,7 +13090,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13092
13090
|
messagesLength: () => n.messages?.length,
|
|
13093
13091
|
lastMessageRole: () => n.messages?.[n.messages.length - 1]?.role,
|
|
13094
13092
|
contentEl: () => d.value,
|
|
13095
|
-
beforeNewMessageScroll: () =>
|
|
13093
|
+
beforeNewMessageScroll: () => O(),
|
|
13096
13094
|
onScrollUp: () => r("scroll-up"),
|
|
13097
13095
|
onScrollDown: () => r("scroll-down")
|
|
13098
13096
|
}), _ = () => {
|
|
@@ -13108,7 +13106,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13108
13106
|
e.getBoundingClientRect().top <= t && (r = v.value[n]?.id);
|
|
13109
13107
|
}), y.value = r;
|
|
13110
13108
|
};
|
|
13111
|
-
|
|
13109
|
+
F(v, async () => {
|
|
13112
13110
|
await le(), x();
|
|
13113
13111
|
});
|
|
13114
13112
|
let S = () => {
|
|
@@ -13119,68 +13117,72 @@ var yh = ["aria-busy"], bh = {
|
|
|
13119
13117
|
top: t.scrollTop + r.getBoundingClientRect().top - t.getBoundingClientRect().top - Number.parseFloat(getComputedStyle(t).paddingTop),
|
|
13120
13118
|
behavior: "smooth"
|
|
13121
13119
|
}));
|
|
13122
|
-
}, w = W(0),
|
|
13120
|
+
}, w = U(() => n.status === "submitted" || n.status === "streaming"), T = W(0), ne = W(!1), D = !1, ae = ve(), O = async () => {
|
|
13123
13121
|
let e = n.messages;
|
|
13124
|
-
if (!e?.length || n.disableHeightAdjustment || e[e.length - 1].role
|
|
13125
|
-
let { paddingTop: t, paddingBottom: r } = getComputedStyle(u.value), i = u.value.clientHeight - Number.parseFloat(t) - Number.parseFloat(r), a = d.value && Number.parseFloat(getComputedStyle(d.value).rowGap) || 0, o = b()
|
|
13126
|
-
|
|
13122
|
+
if (!e?.length || n.disableHeightAdjustment || !(e[e.length - 1].role === "user" || w.value) || (D = !0, ne.value = !1, await le(), !u.value)) return;
|
|
13123
|
+
let { paddingTop: t, paddingBottom: r } = getComputedStyle(u.value), i = u.value.clientHeight - Number.parseFloat(t) - Number.parseFloat(r), a = d.value && Number.parseFloat(getComputedStyle(d.value).rowGap) || 0, o = b();
|
|
13124
|
+
ae.value = o[o.length - 1];
|
|
13125
|
+
let s = i - (ae.value?.clientHeight ?? 0) - a;
|
|
13126
|
+
i > 0 && (T.value = Math.max(s, 0)), await le();
|
|
13127
13127
|
};
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
}),
|
|
13131
|
-
(
|
|
13128
|
+
F([() => n.messages?.length, () => n.messages?.[n.messages.length - 1]?.id], () => O()), Jt([u, ae], () => {
|
|
13129
|
+
D && O();
|
|
13130
|
+
}), ie(() => {
|
|
13131
|
+
(w.value || n.awaitingSpokenAnswer) && O();
|
|
13132
|
+
}), F(w, (e) => {
|
|
13133
|
+
e || (D = !1, ne.value = !0, T.value = 0);
|
|
13132
13134
|
});
|
|
13133
|
-
let
|
|
13134
|
-
let t =
|
|
13135
|
+
let se = (e) => n.revisedAnswers?.some((t) => t.messageId === e), j = (e) => n.messageFeedbacks?.find((t) => t.messageId === e), ue = /* @__PURE__ */ new Set(["showContactForm"]), de = (e) => !n.interactive && ue.has(Xe(e)) ? { record: !0 } : {}, M = (e, t) => !n.readonlyFeedback && je(e, t), P = (e) => n.readonlyFeedback ? j(e) : void 0, fe = (e) => P(e)?.vote, pe = (e) => {
|
|
13136
|
+
let t = P(e);
|
|
13135
13137
|
if (t?.vote) return;
|
|
13136
13138
|
let n = t?.metadata?.reactionEmoji;
|
|
13137
13139
|
return typeof n == "string" && /\p{Extended_Pictographic}/u.test(n) ? n : void 0;
|
|
13138
|
-
},
|
|
13139
|
-
if (
|
|
13140
|
-
let t =
|
|
13140
|
+
}, me = (e) => !!(fe(e) || pe(e)), R = (e) => {
|
|
13141
|
+
if (pe(e)) return "pk-chatbot-message__reaction--neutral";
|
|
13142
|
+
let t = fe(e);
|
|
13141
13143
|
return t === "upvote" ? "pk-chatbot-message__reaction--positive" : t === "downvote" ? "pk-chatbot-message__reaction--negative" : "pk-chatbot-message__reaction--neutral";
|
|
13142
|
-
}, me = (e) => {
|
|
13143
|
-
let t = de(e);
|
|
13144
|
-
return i(t === "upvote" ? "hint.userFeedbackPositive" : t === "downvote" ? "hint.userFeedbackNegative" : "hint.userFeedbackReaction");
|
|
13145
13144
|
}, he = (e) => {
|
|
13146
|
-
let t =
|
|
13145
|
+
let t = fe(e);
|
|
13146
|
+
return i(t === "upvote" ? "hint.userFeedbackPositive" : t === "downvote" ? "hint.userFeedbackNegative" : "hint.userFeedbackReaction");
|
|
13147
|
+
}, ge = (e) => {
|
|
13148
|
+
let t = be(e);
|
|
13147
13149
|
for (let e = t.length - 1; e >= 0; --e) if (Y(t[e])) return e;
|
|
13148
13150
|
return -1;
|
|
13149
|
-
},
|
|
13150
|
-
let e =
|
|
13151
|
+
}, _e = U(() => n.messages?.[n.messages.length - 1]), H = U(() => {
|
|
13152
|
+
let e = _e.value;
|
|
13151
13153
|
return e ? e.parts[e.parts.length - 1] : null;
|
|
13152
|
-
}),
|
|
13154
|
+
}), ye = U(() => {
|
|
13153
13155
|
let e = /* @__PURE__ */ new Map();
|
|
13154
13156
|
for (let t of n.messages ?? []) t.role === "assistant" && e.set(t.id, tt(ht(xt(t.parts))));
|
|
13155
13157
|
return e;
|
|
13156
|
-
}),
|
|
13157
|
-
let e =
|
|
13158
|
+
}), be = (e) => ye.value.get(e.id) ?? e.parts, xe = U(() => n.status === "error"), Se = U(() => n.awaitingSpokenAnswer === !0 && !w.value), Ce = U(() => Se.value && _e.value?.role === "user" && !xe.value), we = U(() => {
|
|
13159
|
+
let e = H.value;
|
|
13158
13160
|
return ct(i, e);
|
|
13159
|
-
}),
|
|
13160
|
-
let e =
|
|
13161
|
+
}), Te = U(() => {
|
|
13162
|
+
let e = H.value;
|
|
13161
13163
|
return st(e);
|
|
13162
|
-
}),
|
|
13164
|
+
}), De = (e) => n.messages?.findIndex((t) => t.id === e), Oe = (e) => e === void 0 || !n.messages ? !1 : e === n.messages.length - 1, ke = (e) => Oe(e) && n.status === "ready" && !!n.actions?.includes("regenerate"), je = (e, t) => (!Oe(t) || n.status === "ready") && !!n.actions?.includes(e), Me = (e) => {
|
|
13163
13165
|
let t = e.parts[e.parts.length - 1];
|
|
13164
13166
|
return Y(t);
|
|
13165
|
-
},
|
|
13166
|
-
let t =
|
|
13167
|
+
}, Ne = (e) => e.parts.some((e) => $e(e) || Je(e)), Pe = (e) => !!n.showExtendedSteps && Re(e) && Ne(e), Fe = (e) => Je(e) && !St(e) && !!(mm[Xe(e)] || c[e.type] || n.showAllMessageParts), Ie = (e) => e.parts.some((e) => Y(e) && !!e.text.trim() || Ze(e) || it(e) && !St(e) || Fe(e)), Re = (e) => e.role === "assistant", Be = (e) => e.role === "user", Ve = (e) => n.messages?.slice(0, e).reverse().find((e) => Re(e)), He = (e) => n.messages?.slice(e + 1).find((e) => Re(e)), Ue = (e) => {
|
|
13168
|
+
let t = Ve(e)?.metadata?.createdAt, n = He(e)?.metadata?.createdAt;
|
|
13167
13169
|
if (!t || !n) return;
|
|
13168
13170
|
let r = new Date(t), i = new Date(n);
|
|
13169
13171
|
return r.toDateString() === i.toDateString() ? void 0 : i;
|
|
13170
|
-
},
|
|
13172
|
+
}, Ge = U(() => n.showAllMessageParts ? vh([]) : vh(n.messages ?? [], Ie)), Ke = U(() => {
|
|
13171
13173
|
let e = 0;
|
|
13172
13174
|
return (n.messages ?? []).map((t) => t.parts.length > 0 ? ++e : void 0);
|
|
13173
|
-
}),
|
|
13175
|
+
}), Ye = (e, t) => t === 0 || e.role !== "assistant" ? !1 : !!(n.actions?.length || n.showMessageNumber || n.showMessageDateTime && e.metadata?.createdAt !== void 0 || e.metadata?.completedAt !== void 0 || n.showMessageTokensCount && e.metadata?.totalTokens !== void 0), Qe = (e) => {
|
|
13174
13176
|
let t = new Date(e), n = t.toDateString() === (/* @__PURE__ */ new Date()).toDateString();
|
|
13175
13177
|
return o(t, n ? "time" : "date-time");
|
|
13176
|
-
},
|
|
13178
|
+
}, nt = (e) => {
|
|
13177
13179
|
let { createdAt: t, completedAt: n } = e.metadata ?? {};
|
|
13178
13180
|
if (t && n) return ot(s, n - t);
|
|
13179
|
-
},
|
|
13180
|
-
return
|
|
13181
|
+
}, rt = k("feedbackMessageEl");
|
|
13182
|
+
return F(() => n.feedbackMessageId, async () => {
|
|
13181
13183
|
if (await le(), !n.feedbackMessageId) return;
|
|
13182
|
-
let e =
|
|
13183
|
-
e && (
|
|
13184
|
+
let e = rt.value?.[0]?.$el;
|
|
13185
|
+
e && (Oe(De(n.feedbackMessageId)) ? m() : e.scrollIntoView({
|
|
13184
13186
|
behavior: "smooth",
|
|
13185
13187
|
block: "center"
|
|
13186
13188
|
}));
|
|
@@ -13189,11 +13191,11 @@ var yh = ["aria-busy"], bh = {
|
|
|
13189
13191
|
return A(), K("div", {
|
|
13190
13192
|
ref_key: "scrollEl",
|
|
13191
13193
|
ref: u,
|
|
13192
|
-
class: q(["pk-chatbot-messages scrollbar-thin", { "pk-chatbot-messages--settling":
|
|
13194
|
+
class: q(["pk-chatbot-messages scrollbar-thin", { "pk-chatbot-messages--settling": ne.value }]),
|
|
13193
13195
|
role: "log",
|
|
13194
13196
|
"aria-live": "polite",
|
|
13195
13197
|
"aria-relevant": "additions text",
|
|
13196
|
-
"aria-busy":
|
|
13198
|
+
"aria-busy": w.value,
|
|
13197
13199
|
style: re({
|
|
13198
13200
|
"--chatbot-main-color": e.mainColor,
|
|
13199
13201
|
"--chatbot-contrast-color": f.value
|
|
@@ -13204,52 +13206,52 @@ var yh = ["aria-busy"], bh = {
|
|
|
13204
13206
|
items: v.value,
|
|
13205
13207
|
"active-id": y.value,
|
|
13206
13208
|
onSelect: ee
|
|
13207
|
-
}, null, 8, ["items", "active-id"])])) :
|
|
13209
|
+
}, null, 8, ["items", "active-id"])])) : I("", !0),
|
|
13208
13210
|
V("div", {
|
|
13209
13211
|
ref_key: "wrapperEl",
|
|
13210
13212
|
ref: d,
|
|
13211
13213
|
class: "pk-chatbot-messages__wrapper"
|
|
13212
13214
|
}, [
|
|
13213
13215
|
(A(!0), K(z, null, Le(e.messages, (u, d) => (A(), K(z, { key: u.id }, [
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
+
Be(u) && Ue(d) ? (A(), K("div", xh, [V("span", Sh, E(N(o)(Ue(d), "short")), 1)])) : I("", !0),
|
|
13217
|
+
Ge.value.quietRuns.has(u.id) ? (A(), K("div", Ch, [J(r, {
|
|
13216
13218
|
name: "ri:alarm-line",
|
|
13217
13219
|
class: "shrink-0"
|
|
13218
13220
|
}), V("span", null, E(N(i)("label.wakeupQuietRun", {
|
|
13219
|
-
count:
|
|
13220
|
-
time: N(o)(
|
|
13221
|
-
},
|
|
13221
|
+
count: Ge.value.quietRuns.get(u.id).count,
|
|
13222
|
+
time: N(o)(Ge.value.quietRuns.get(u.id).lastAt ?? Date.now(), "time")
|
|
13223
|
+
}, Ge.value.quietRuns.get(u.id).count)), 1)])) : N(Wr)(u) && !Ge.value.hidden.has(u.id) && !e.showAllMessageParts ? (A(), K("div", {
|
|
13222
13224
|
key: 2,
|
|
13223
13225
|
class: "pk-chatbot-wakeup",
|
|
13224
13226
|
title: u.metadata?.wakeup?.reason
|
|
13225
13227
|
}, [J(r, {
|
|
13226
13228
|
name: "ri:alarm-line",
|
|
13227
13229
|
class: "shrink-0"
|
|
13228
|
-
}), V("span", null, [
|
|
13229
|
-
(!N(Wr)(u) || e.showAllMessageParts) && (!
|
|
13230
|
+
}), V("span", null, [L(E(N(i)("label.wakeupCheck")) + " ", 1), u.metadata?.createdAt ? (A(), K(z, { key: 0 }, [L(" · " + E(N(o)(u.metadata.createdAt, "time")), 1)], 64)) : I("", !0)])], 8, wh)) : I("", !0),
|
|
13231
|
+
(!N(Wr)(u) || e.showAllMessageParts) && (!Ge.value.hidden.has(u.id) || w.value && Oe(d)) && (u.parts.length || Oe(d) && w.value && Re(u)) ? (A(), K("div", {
|
|
13230
13232
|
key: 3,
|
|
13231
|
-
class: q(["pk-chatbot-message", [`pk-chatbot-message--${u.role}`, { "pk-chatbot-message--loading":
|
|
13232
|
-
style: re({ minHeight:
|
|
13233
|
+
class: q(["pk-chatbot-message", [`pk-chatbot-message--${u.role}`, { "pk-chatbot-message--loading": w.value && Oe(d) && Re(u) }]]),
|
|
13234
|
+
style: re({ minHeight: Oe(d) && Re(u) && !xe.value ? `${T.value}px` : void 0 })
|
|
13233
13235
|
}, [
|
|
13234
13236
|
J(G, {
|
|
13235
13237
|
appear: "",
|
|
13236
13238
|
name: "pk-chatbot-part"
|
|
13237
13239
|
}, {
|
|
13238
|
-
default: C(() => [
|
|
13240
|
+
default: C(() => [Pe(u) ? (A(), B(lh, {
|
|
13239
13241
|
key: 0,
|
|
13240
13242
|
message: u,
|
|
13241
|
-
"is-streaming":
|
|
13242
|
-
"has-content":
|
|
13243
|
+
"is-streaming": w.value && Oe(d),
|
|
13244
|
+
"has-content": Ie(u),
|
|
13243
13245
|
"is-dark": e.isDark
|
|
13244
13246
|
}, null, 8, [
|
|
13245
13247
|
"message",
|
|
13246
13248
|
"is-streaming",
|
|
13247
13249
|
"has-content",
|
|
13248
13250
|
"is-dark"
|
|
13249
|
-
])) :
|
|
13251
|
+
])) : I("", !0)]),
|
|
13250
13252
|
_: 2
|
|
13251
13253
|
}, 1024),
|
|
13252
|
-
(A(!0), K(z, null, Le(
|
|
13254
|
+
(A(!0), K(z, null, Le(be(u), (n, o) => (A(), K(z, { key: N(vt)(n, o) }, [N(Y)(n) && n.text.trim() ? (A(), B(G, {
|
|
13253
13255
|
key: 0,
|
|
13254
13256
|
appear: "",
|
|
13255
13257
|
name: "pk-chatbot-part"
|
|
@@ -13258,25 +13260,25 @@ var yh = ["aria-busy"], bh = {
|
|
|
13258
13260
|
message: u,
|
|
13259
13261
|
part: n,
|
|
13260
13262
|
index: d,
|
|
13261
|
-
isLoading:
|
|
13262
|
-
}), () => [
|
|
13263
|
+
isLoading: w.value
|
|
13264
|
+
}), () => [Re(u) ? (A(), B(yt, {
|
|
13263
13265
|
key: 0,
|
|
13264
13266
|
class: "wysiwyg",
|
|
13265
13267
|
markdown: n.text,
|
|
13266
13268
|
"is-dark": e.isDark,
|
|
13267
|
-
loading:
|
|
13269
|
+
loading: Oe(d) && e.status === "streaming"
|
|
13268
13270
|
}, null, 8, [
|
|
13269
13271
|
"markdown",
|
|
13270
13272
|
"is-dark",
|
|
13271
13273
|
"loading"
|
|
13272
|
-
])) : (A(), K(z, { key: 1 }, [
|
|
13274
|
+
])) : (A(), K(z, { key: 1 }, [L(E(n.text), 1)], 64))]), me(u.id) && !j(u.id)?.comment && o === ge(u) ? (A(), K("span", {
|
|
13273
13275
|
key: 0,
|
|
13274
|
-
class: q(["pk-chatbot-message__reaction",
|
|
13275
|
-
title:
|
|
13276
|
-
}, [
|
|
13276
|
+
class: q(["pk-chatbot-message__reaction", R(u.id)]),
|
|
13277
|
+
title: he(u.id)
|
|
13278
|
+
}, [pe(u.id) ? (A(), K("span", Dh, E(pe(u.id)), 1)) : (A(), B(r, {
|
|
13277
13279
|
key: 1,
|
|
13278
|
-
name:
|
|
13279
|
-
}, null, 8, ["name"]))], 10, Eh)) :
|
|
13280
|
+
name: fe(u.id) === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-up-fill"
|
|
13281
|
+
}, null, 8, ["name"]))], 10, Eh)) : I("", !0)])]),
|
|
13280
13282
|
_: 2
|
|
13281
13283
|
}, 1024)) : N(Ze)(n) ? (A(), B(G, {
|
|
13282
13284
|
key: 1,
|
|
@@ -13296,7 +13298,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13296
13298
|
]), J(um, {
|
|
13297
13299
|
url: n.url,
|
|
13298
13300
|
transcript: N(We)(n),
|
|
13299
|
-
pending: e.status === "submitted" &&
|
|
13301
|
+
pending: e.status === "submitted" && Oe(d)
|
|
13300
13302
|
}, null, 8, [
|
|
13301
13303
|
"url",
|
|
13302
13304
|
"transcript",
|
|
@@ -13322,7 +13324,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13322
13324
|
default: C(() => [(A(), B(ym, {
|
|
13323
13325
|
key: `approval-${o}`,
|
|
13324
13326
|
part: n,
|
|
13325
|
-
actionable: e.interactive === !0 && (N(et)(n) ||
|
|
13327
|
+
actionable: e.interactive === !0 && (N(et)(n) || Oe(d)),
|
|
13326
13328
|
"call-verdict": e.confirmVerdictsOnCall?.get(n.toolCallId ?? ""),
|
|
13327
13329
|
onRespond: (e) => l(n, e)
|
|
13328
13330
|
}, null, 8, [
|
|
@@ -13332,7 +13334,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13332
13334
|
"onRespond"
|
|
13333
13335
|
]))]),
|
|
13334
13336
|
_: 2
|
|
13335
|
-
}, 1024)) :
|
|
13337
|
+
}, 1024)) : Fe(n) ? (A(), B(G, {
|
|
13336
13338
|
key: 3,
|
|
13337
13339
|
appear: "",
|
|
13338
13340
|
name: "pk-chatbot-part"
|
|
@@ -13340,32 +13342,32 @@ var yh = ["aria-busy"], bh = {
|
|
|
13340
13342
|
default: C(() => [!N(c)[n.type] && N(mm)[N(Xe)(n)] ? (A(), B(oe(N(mm)[N(Xe)(n)]), ce({
|
|
13341
13343
|
key: `component-${o}-${N(gt)(n)}`,
|
|
13342
13344
|
part: n
|
|
13343
|
-
}, { ref_for: !0 },
|
|
13345
|
+
}, { ref_for: !0 }, de(n)), null, 16, ["part"])) : te(t.$slots, n.type, ce({ ref_for: !0 }, {
|
|
13344
13346
|
message: u,
|
|
13345
13347
|
part: n,
|
|
13346
13348
|
index: d,
|
|
13347
|
-
isLoading:
|
|
13349
|
+
isLoading: w.value
|
|
13348
13350
|
}), () => [e.showAllMessageParts ? (A(), K("div", kh, [V("div", Ah, [N(st)(n) ? (A(), B(r, {
|
|
13349
13351
|
key: 0,
|
|
13350
13352
|
name: N(st)(n),
|
|
13351
13353
|
class: "shrink-0"
|
|
13352
|
-
}, null, 8, ["name"])) :
|
|
13354
|
+
}, null, 8, ["name"])) : I("", !0), V("span", jh, E(N(pt)(n, {
|
|
13353
13355
|
t: N(i),
|
|
13354
13356
|
te: N(a)
|
|
13355
|
-
})), 1)])])) :
|
|
13357
|
+
})), 1)])])) : I("", !0)], void 0, 1)]),
|
|
13356
13358
|
_: 2
|
|
13357
|
-
}, 1024)) :
|
|
13358
|
-
default: C(() => [o ===
|
|
13359
|
+
}, 1024)) : I("", !0), J(G, { mode: "out-in" }, {
|
|
13360
|
+
default: C(() => [o === ge(u) && e.readonlyFeedback && j(u.id)?.comment ? (A(), B(Zp, {
|
|
13359
13361
|
key: 0,
|
|
13360
|
-
feedback:
|
|
13361
|
-
}, null, 8, ["feedback"])) :
|
|
13362
|
+
feedback: j(u.id)
|
|
13363
|
+
}, null, 8, ["feedback"])) : I("", !0)]),
|
|
13362
13364
|
_: 2
|
|
13363
13365
|
}, 1024)], 64))), 128)),
|
|
13364
13366
|
J(G, {
|
|
13365
13367
|
name: "fade-in",
|
|
13366
13368
|
mode: "out-in"
|
|
13367
13369
|
}, {
|
|
13368
|
-
default: C(() => [
|
|
13370
|
+
default: C(() => [w.value && Oe(d) && !Me(u) && Re(u) && (!Pe(u) || Ie(u)) ? (A(), K("div", {
|
|
13369
13371
|
key: `loading-info-${u.id}`,
|
|
13370
13372
|
class: "pk-chatbot-message__loading-info"
|
|
13371
13373
|
}, [V("div", Mh, [
|
|
@@ -13374,27 +13376,27 @@ var yh = ["aria-busy"], bh = {
|
|
|
13374
13376
|
class: "shrink-0"
|
|
13375
13377
|
}),
|
|
13376
13378
|
J(G, { mode: "out-in" }, {
|
|
13377
|
-
default: C(() => [
|
|
13378
|
-
key:
|
|
13379
|
+
default: C(() => [Te.value ? (A(), B(r, {
|
|
13380
|
+
key: Te.value,
|
|
13379
13381
|
class: "shrink-0",
|
|
13380
|
-
name:
|
|
13381
|
-
}, null, 8, ["name"])) :
|
|
13382
|
+
name: Te.value
|
|
13383
|
+
}, null, 8, ["name"])) : I("", !0)]),
|
|
13382
13384
|
_: 1
|
|
13383
13385
|
}),
|
|
13384
13386
|
J(G, { mode: "out-in" }, {
|
|
13385
|
-
default: C(() => [
|
|
13386
|
-
key:
|
|
13387
|
+
default: C(() => [we.value ? (A(), K("span", {
|
|
13388
|
+
key: we.value,
|
|
13387
13389
|
class: "text-12"
|
|
13388
|
-
}, E(
|
|
13390
|
+
}, E(we.value), 1)) : I("", !0)]),
|
|
13389
13391
|
_: 1
|
|
13390
13392
|
})
|
|
13391
13393
|
]), J(G, {
|
|
13392
13394
|
name: "fade-in",
|
|
13393
13395
|
mode: "out-in"
|
|
13394
13396
|
}, {
|
|
13395
|
-
default: C(() => [!
|
|
13397
|
+
default: C(() => [!Pe(u) && H.value && "text" in H.value && H.value.text.trim() ? (A(), B(xm, {
|
|
13396
13398
|
key: 0,
|
|
13397
|
-
markdown:
|
|
13399
|
+
markdown: H.value.text,
|
|
13398
13400
|
"is-dark": e.isDark,
|
|
13399
13401
|
"tail-length": N(_t),
|
|
13400
13402
|
"inner-class": "wysiwyg",
|
|
@@ -13403,31 +13405,31 @@ var yh = ["aria-busy"], bh = {
|
|
|
13403
13405
|
"markdown",
|
|
13404
13406
|
"is-dark",
|
|
13405
13407
|
"tail-length"
|
|
13406
|
-
])) :
|
|
13408
|
+
])) : I("", !0)]),
|
|
13407
13409
|
_: 2
|
|
13408
|
-
}, 1024)])) :
|
|
13410
|
+
}, 1024)])) : I("", !0)]),
|
|
13409
13411
|
_: 2
|
|
13410
13412
|
}, 1024),
|
|
13411
13413
|
J(G, { mode: "out-in" }, {
|
|
13412
|
-
default: C(() => [
|
|
13414
|
+
default: C(() => [Ye(u, d) ? (A(), K("div", Nh, [
|
|
13413
13415
|
J(m, {
|
|
13414
13416
|
modifiers: "compact",
|
|
13415
13417
|
class: "mr-auto shrink-0"
|
|
13416
13418
|
}, {
|
|
13417
13419
|
default: C(() => [
|
|
13418
13420
|
J(G, { mode: "out-in" }, {
|
|
13419
|
-
default: C(() => [
|
|
13421
|
+
default: C(() => [ke(d) ? (A(), B(p, {
|
|
13420
13422
|
key: 0,
|
|
13421
13423
|
icon: "ri:reset-right-line",
|
|
13422
13424
|
modifiers: "action-quiet-small",
|
|
13423
13425
|
title: N(i)("action.regenerate"),
|
|
13424
13426
|
"aria-label": N(i)("action.regenerate"),
|
|
13425
13427
|
onClick: n[0] ||= Ae((e) => t.$emit("regenerate"), ["stop"])
|
|
13426
|
-
}, null, 8, ["title", "aria-label"])) :
|
|
13428
|
+
}, null, 8, ["title", "aria-label"])) : I("", !0)]),
|
|
13427
13429
|
_: 2
|
|
13428
13430
|
}, 1024),
|
|
13429
13431
|
J(G, { mode: "out-in" }, {
|
|
13430
|
-
default: C(() => [
|
|
13432
|
+
default: C(() => [je("show-info", d) ? (A(), B(p, {
|
|
13431
13433
|
key: 0,
|
|
13432
13434
|
icon: "ri:information-line",
|
|
13433
13435
|
title: N(i)("action.getMoreInfo"),
|
|
@@ -13438,17 +13440,17 @@ var yh = ["aria-busy"], bh = {
|
|
|
13438
13440
|
"title",
|
|
13439
13441
|
"aria-label",
|
|
13440
13442
|
"onClick"
|
|
13441
|
-
])) :
|
|
13443
|
+
])) : I("", !0)]),
|
|
13442
13444
|
_: 2
|
|
13443
13445
|
}, 1024),
|
|
13444
13446
|
J(G, { mode: "out-in" }, {
|
|
13445
|
-
default: C(() => [
|
|
13447
|
+
default: C(() => [je("revise", d) ? (A(), B(p, {
|
|
13446
13448
|
key: 0,
|
|
13447
|
-
icon:
|
|
13448
|
-
title:
|
|
13449
|
-
"aria-label":
|
|
13449
|
+
icon: se(u.id) ? "ri:file-edit-fill" : "ri:file-edit-line",
|
|
13450
|
+
title: se(u.id) ? N(i)("action.editRevise") : N(i)("action.createRevise"),
|
|
13451
|
+
"aria-label": se(u.id) ? N(i)("action.editRevise") : N(i)("action.createRevise"),
|
|
13450
13452
|
modifiers: "action-quiet-small",
|
|
13451
|
-
class: q({ "text-brand-graphic":
|
|
13453
|
+
class: q({ "text-brand-graphic": se(u.id) }),
|
|
13452
13454
|
onClick: Ae((e) => t.$emit("revise", u), ["stop"])
|
|
13453
13455
|
}, null, 8, [
|
|
13454
13456
|
"icon",
|
|
@@ -13456,13 +13458,13 @@ var yh = ["aria-busy"], bh = {
|
|
|
13456
13458
|
"aria-label",
|
|
13457
13459
|
"class",
|
|
13458
13460
|
"onClick"
|
|
13459
|
-
])) :
|
|
13461
|
+
])) : I("", !0)]),
|
|
13460
13462
|
_: 2
|
|
13461
13463
|
}, 1024),
|
|
13462
13464
|
J(G, { mode: "out-in" }, {
|
|
13463
|
-
default: C(() => [
|
|
13465
|
+
default: C(() => [M("upvote", d) ? (A(), B(p, {
|
|
13464
13466
|
key: 0,
|
|
13465
|
-
icon:
|
|
13467
|
+
icon: j(u.id)?.vote === "upvote" ? "ri:thumb-up-fill" : "ri:thumb-up-line",
|
|
13466
13468
|
title: N(i)("action.upvote"),
|
|
13467
13469
|
"aria-label": N(i)("action.upvote"),
|
|
13468
13470
|
modifiers: "action-quiet-small",
|
|
@@ -13472,13 +13474,13 @@ var yh = ["aria-busy"], bh = {
|
|
|
13472
13474
|
"title",
|
|
13473
13475
|
"aria-label",
|
|
13474
13476
|
"onClick"
|
|
13475
|
-
])) :
|
|
13477
|
+
])) : I("", !0)]),
|
|
13476
13478
|
_: 2
|
|
13477
13479
|
}, 1024),
|
|
13478
13480
|
J(G, { mode: "out-in" }, {
|
|
13479
|
-
default: C(() => [
|
|
13481
|
+
default: C(() => [M("downvote", d) ? (A(), B(p, {
|
|
13480
13482
|
key: 0,
|
|
13481
|
-
icon:
|
|
13483
|
+
icon: j(u.id)?.vote === "downvote" ? "ri:thumb-down-fill" : "ri:thumb-down-line",
|
|
13482
13484
|
title: N(i)("action.downvote"),
|
|
13483
13485
|
"aria-label": N(i)("action.downvote"),
|
|
13484
13486
|
modifiers: "action-quiet-small",
|
|
@@ -13488,13 +13490,13 @@ var yh = ["aria-busy"], bh = {
|
|
|
13488
13490
|
"title",
|
|
13489
13491
|
"aria-label",
|
|
13490
13492
|
"onClick"
|
|
13491
|
-
])) :
|
|
13493
|
+
])) : I("", !0)]),
|
|
13492
13494
|
_: 2
|
|
13493
13495
|
}, 1024),
|
|
13494
13496
|
J(G, { mode: "out-in" }, {
|
|
13495
|
-
default: C(() => [
|
|
13497
|
+
default: C(() => [M("feedback", d) ? (A(), B(p, {
|
|
13496
13498
|
key: 0,
|
|
13497
|
-
icon:
|
|
13499
|
+
icon: j(u.id)?.comment ? "ri:feedback-fill" : "ri:feedback-line",
|
|
13498
13500
|
title: N(i)("action.feedback"),
|
|
13499
13501
|
"aria-label": N(i)("action.feedback"),
|
|
13500
13502
|
modifiers: "action-quiet-small",
|
|
@@ -13504,7 +13506,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13504
13506
|
"title",
|
|
13505
13507
|
"aria-label",
|
|
13506
13508
|
"onClick"
|
|
13507
|
-
])) :
|
|
13509
|
+
])) : I("", !0)]),
|
|
13508
13510
|
_: 2
|
|
13509
13511
|
}, 1024)
|
|
13510
13512
|
]),
|
|
@@ -13517,19 +13519,19 @@ var yh = ["aria-busy"], bh = {
|
|
|
13517
13519
|
}, [J(r, {
|
|
13518
13520
|
name: "ri:time-line",
|
|
13519
13521
|
class: "shrink-0"
|
|
13520
|
-
}), V("span", Ih, E(
|
|
13522
|
+
}), V("span", Ih, E(Qe(u.metadata.createdAt)), 1)], 8, Fh), nt(u) ? (A(), K("span", Lh, [J(r, {
|
|
13521
13523
|
name: "ri:hourglass-line",
|
|
13522
13524
|
class: "shrink-0"
|
|
13523
|
-
}), V("span", Rh, E(
|
|
13525
|
+
}), V("span", Rh, E(nt(u)), 1)])) : I("", !0)])) : I("", !0),
|
|
13524
13526
|
e.showMessageNumber ? (A(), K("span", {
|
|
13525
13527
|
key: 1,
|
|
13526
|
-
title: N(i)("label.messageNumber", { n:
|
|
13528
|
+
title: N(i)("label.messageNumber", { n: Ke.value[d] }),
|
|
13527
13529
|
class: "text-12 text-word-3 tabular-nums"
|
|
13528
|
-
}, " #" + E(
|
|
13530
|
+
}, " #" + E(Ke.value[d]), 9, zh)) : I("", !0),
|
|
13529
13531
|
e.showMessageTokensCount && u.metadata?.totalTokens ? (A(), K("span", Bh, [J(r, {
|
|
13530
13532
|
name: "ri:ai-generate-2-line",
|
|
13531
13533
|
class: "shrink-0"
|
|
13532
|
-
}), V("span", Vh, E(N(s)(u.metadata.totalTokens, "integer")) + " " + E(N(i)("label.tokens")), 1)])) :
|
|
13534
|
+
}), V("span", Vh, E(N(s)(u.metadata.totalTokens, "integer")) + " " + E(N(i)("label.tokens")), 1)])) : I("", !0),
|
|
13533
13535
|
e.showMessageDateTime && u.metadata?.createdAt ? (A(), K("time", {
|
|
13534
13536
|
key: 3,
|
|
13535
13537
|
datetime: new Date(u.metadata?.createdAt).toISOString(),
|
|
@@ -13537,7 +13539,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13537
13539
|
}, [J(r, {
|
|
13538
13540
|
name: "ri:time-line",
|
|
13539
13541
|
class: "shrink-0"
|
|
13540
|
-
}), V("span", Uh, E(N(o)(new Date(u.metadata?.createdAt), "date-time")), 1)], 8, Hh)) :
|
|
13542
|
+
}), V("span", Uh, E(N(o)(new Date(u.metadata?.createdAt), "date-time")), 1)], 8, Hh)) : I("", !0),
|
|
13541
13543
|
e.showMessageDateTime && u?.metadata?.completedAt && u?.metadata?.createdAt ? (A(), K("div", Wh, [J(r, {
|
|
13542
13544
|
name: "ri:hourglass-line",
|
|
13543
13545
|
class: "shrink-0"
|
|
@@ -13545,8 +13547,8 @@ var yh = ["aria-busy"], bh = {
|
|
|
13545
13547
|
class: "truncate",
|
|
13546
13548
|
date: u.metadata?.createdAt,
|
|
13547
13549
|
"end-date": u.metadata?.completedAt
|
|
13548
|
-
}, null, 8, ["date", "end-date"])])) :
|
|
13549
|
-
])) :
|
|
13550
|
+
}, null, 8, ["date", "end-date"])])) : I("", !0)
|
|
13551
|
+
])) : I("", !0)]),
|
|
13550
13552
|
_: 2
|
|
13551
13553
|
}, 1024),
|
|
13552
13554
|
J(G, { mode: "out-in" }, {
|
|
@@ -13554,7 +13556,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13554
13556
|
key: 0,
|
|
13555
13557
|
ref_for: !0,
|
|
13556
13558
|
ref_key: "feedbackMessageEl",
|
|
13557
|
-
ref:
|
|
13559
|
+
ref: rt,
|
|
13558
13560
|
loading: e.feedbackLoading,
|
|
13559
13561
|
submitted: e.feedbackSubmitted,
|
|
13560
13562
|
error: e.feedbackError,
|
|
@@ -13564,42 +13566,42 @@ var yh = ["aria-busy"], bh = {
|
|
|
13564
13566
|
"loading",
|
|
13565
13567
|
"submitted",
|
|
13566
13568
|
"error"
|
|
13567
|
-
])) :
|
|
13569
|
+
])) : I("", !0)]),
|
|
13568
13570
|
_: 2
|
|
13569
13571
|
}, 1024)
|
|
13570
|
-
], 6)) :
|
|
13572
|
+
], 6)) : I("", !0)
|
|
13571
13573
|
], 64))), 128)),
|
|
13572
13574
|
J(G, {
|
|
13573
13575
|
appear: "",
|
|
13574
13576
|
name: "pk-chatbot-part"
|
|
13575
13577
|
}, {
|
|
13576
|
-
default: C(() => [
|
|
13578
|
+
default: C(() => [Se.value ? (A(), K("div", {
|
|
13577
13579
|
key: 0,
|
|
13578
13580
|
class: "pk-chatbot-message pk-chatbot-message--assistant pk-chatbot-message--loading",
|
|
13579
|
-
style: re({ minHeight:
|
|
13581
|
+
style: re({ minHeight: Ce.value ? `${T.value}px` : void 0 })
|
|
13580
13582
|
}, [V("div", Gh, [V("div", Kh, [J(r, {
|
|
13581
13583
|
name: "loading-loop",
|
|
13582
13584
|
class: "shrink-0"
|
|
13583
|
-
}), V("span", qh, E(N(i)("label.answeringOnTheCall")), 1)])])], 4)) :
|
|
13585
|
+
}), V("span", qh, E(N(i)("label.answeringOnTheCall")), 1)])])], 4)) : I("", !0)]),
|
|
13584
13586
|
_: 1
|
|
13585
13587
|
}),
|
|
13586
13588
|
J(G, {
|
|
13587
13589
|
appear: "",
|
|
13588
13590
|
name: "pk-chatbot-part"
|
|
13589
13591
|
}, {
|
|
13590
|
-
default: C(() => [
|
|
13592
|
+
default: C(() => [xe.value ? (A(), B(Ip, {
|
|
13591
13593
|
key: 0,
|
|
13592
13594
|
error: e.error,
|
|
13593
13595
|
onRetry: n[3] ||= (e) => t.$emit("auto-retry"),
|
|
13594
13596
|
onReset: n[4] ||= (e) => t.$emit("reset-chat")
|
|
13595
|
-
}, null, 8, ["error"])) :
|
|
13597
|
+
}, null, 8, ["error"])) : I("", !0)]),
|
|
13596
13598
|
_: 1
|
|
13597
13599
|
}),
|
|
13598
|
-
|
|
13600
|
+
_e.value?.role === "user" && !Ce.value || xe.value ? (A(), K("div", {
|
|
13599
13601
|
key: 0,
|
|
13600
13602
|
class: "pk-chatbot-messages__spacer",
|
|
13601
|
-
style: re({ minHeight: `${
|
|
13602
|
-
}, null, 4)) :
|
|
13603
|
+
style: re({ minHeight: `${T.value}px` })
|
|
13604
|
+
}, null, 4)) : I("", !0)
|
|
13603
13605
|
], 512),
|
|
13604
13606
|
J(G, { name: "pk-chatbot-messages-fab" }, {
|
|
13605
13607
|
default: C(() => [e.showScrollToBottom && (N(h) || !N(g)) ? (A(), K("button", {
|
|
@@ -13609,7 +13611,7 @@ var yh = ["aria-busy"], bh = {
|
|
|
13609
13611
|
title: N(i)("action.scrollToBottom"),
|
|
13610
13612
|
"aria-label": N(i)("action.scrollToBottom"),
|
|
13611
13613
|
onClick: _
|
|
13612
|
-
}, [J(r, { name: "ri:arrow-down-line" })], 8, Jh)) :
|
|
13614
|
+
}, [J(r, { name: "ri:arrow-down-line" })], 8, Jh)) : I("", !0)]),
|
|
13613
13615
|
_: 1
|
|
13614
13616
|
})
|
|
13615
13617
|
], 46, yh);
|
|
@@ -13721,7 +13723,7 @@ var tg = ["type"], ng = {
|
|
|
13721
13723
|
}, [J(r, {
|
|
13722
13724
|
name: e.icon,
|
|
13723
13725
|
class: "pk-chat-button__icon"
|
|
13724
|
-
}, null, 8, ["name"]), e.label ? (A(), K("span", ng, E(e.label), 1)) :
|
|
13726
|
+
}, null, 8, ["name"]), e.label ? (A(), K("span", ng, E(e.label), 1)) : I("", !0)], 10, tg);
|
|
13725
13727
|
};
|
|
13726
13728
|
}
|
|
13727
13729
|
}), [["styles", [".pk-chat-button{padding:var(--spacing-4);border-radius:var(--rounded);color:var(--color-word-1);cursor:pointer;transition:var(--transition-colors);background-color:#0000;border:none;flex-shrink:0;align-items:center;display:inline-flex;position:relative}.pk-chat-button:hover{background-color:var(--color-surface-2)}.pk-chat-button:focus-visible{outline:var(--spacing-2) solid var(--input-focus-color);outline-offset:0}.pk-chat-button:disabled{cursor:not-allowed;opacity:.5}@media (pointer:coarse){.pk-chat-button:after{content:\"\";inset:calc(-1 * var(--spacing-8));position:absolute}}.pk-chat-button[aria-pressed=true]{background-color:var(--color-surface-3);color:var(--color-word)}.pk-chat-button--danger{color:var(--u-danger-text,var(--color-danger))}.pk-chat-button--danger:hover{background-color:color-mix(in srgb, var(--color-danger) 12%, transparent)}.pk-chat-button--primary{--pk-chat-button-fill:var(--chatbot-main-color,var(--color-word-1));padding:var(--spacing-6);border-radius:var(--rounded-full);background-color:var(--pk-chat-button-fill);color:var(--chatbot-contrast-color,var(--color-surface))}.pk-chat-button--primary:hover{background-color:color-mix(in srgb, var(--pk-chat-button-fill) 85%, var(--color-surface))}.pk-chat-button--primary:focus-visible{outline-offset:var(--spacing-2)}.pk-chat-button--primary:disabled{opacity:1;background-color:var(--color-surface-3);color:var(--color-word-3)}.pk-chat-button--primary .pk-chat-button__icon{width:var(--spacing-16);height:var(--spacing-16)}.pk-chat-button--labelled{gap:var(--spacing-4);padding-inline:var(--spacing-8);font-size:var(--text-12)}.pk-chat-button__icon{width:var(--spacing-20);height:var(--spacing-20);display:block}"]]]);
|
|
@@ -13784,7 +13786,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13784
13786
|
}, h = () => {
|
|
13785
13787
|
u.value = o.value?.value ?? "", m();
|
|
13786
13788
|
};
|
|
13787
|
-
|
|
13789
|
+
F(n, (e) => {
|
|
13788
13790
|
e !== u.value && (u.value = e ?? "", le(() => {
|
|
13789
13791
|
o.value && eg.update(o.value);
|
|
13790
13792
|
}));
|
|
@@ -13801,28 +13803,28 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13801
13803
|
}, de = (e) => {
|
|
13802
13804
|
let t = r.value.find((t) => t.id === e);
|
|
13803
13805
|
t && URL.revokeObjectURL(t.localUrl), r.value = r.value.filter((t) => t.id !== e);
|
|
13804
|
-
}, M = U(() => (a.enableDragDrop ?? !0) && !!a.fileUpload?.enabled), { isOverDropZone:
|
|
13806
|
+
}, M = U(() => (a.enableDragDrop ?? !0) && !!a.fileUpload?.enabled), { isOverDropZone: P } = qt(l, {
|
|
13805
13807
|
dataTypes: U(() => a.fileUpload?.allowedMimeTypes ?? []),
|
|
13806
13808
|
onDrop: (e) => {
|
|
13807
13809
|
M.value && e && O(e);
|
|
13808
13810
|
}
|
|
13809
|
-
}),
|
|
13810
|
-
|
|
13811
|
-
},
|
|
13811
|
+
}), pe = W(!0), me = () => {
|
|
13812
|
+
pe.value = !1;
|
|
13813
|
+
}, R = U(() => a.attachmentNotice ? {
|
|
13812
13814
|
id: "limit",
|
|
13813
13815
|
icon: "ri:information-line",
|
|
13814
13816
|
text: a.attachmentNotice,
|
|
13815
13817
|
dismiss: () => i("dismiss-attachment-notice")
|
|
13816
|
-
} : a.dismissableNotice &&
|
|
13818
|
+
} : a.dismissableNotice && pe.value ? {
|
|
13817
13819
|
id: "dismissable",
|
|
13818
13820
|
markdown: a.dismissableNotice,
|
|
13819
|
-
dismiss:
|
|
13820
|
-
} : null),
|
|
13821
|
+
dismiss: me
|
|
13822
|
+
} : null), he = () => {
|
|
13821
13823
|
l.value?.querySelector("button:focus-visible") && o.value?.focus();
|
|
13822
13824
|
}, ge = () => {
|
|
13823
|
-
|
|
13825
|
+
he(), i("stop-generation");
|
|
13824
13826
|
}, _e = () => {
|
|
13825
|
-
ee.value && (
|
|
13827
|
+
ee.value && (he(), p(), i("submit"), u.value = "", n.value = "", le(() => {
|
|
13826
13828
|
o.value && (o.value.value = "", eg.update(o.value));
|
|
13827
13829
|
}));
|
|
13828
13830
|
}, ve = (e) => {
|
|
@@ -13835,39 +13837,39 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13835
13837
|
for (let e of r.value) URL.revokeObjectURL(e.localUrl);
|
|
13836
13838
|
}), (t, n) => {
|
|
13837
13839
|
let a = an, d = sn, f = Qt, p = on;
|
|
13838
|
-
return A(), K("div", ig, [
|
|
13839
|
-
key:
|
|
13840
|
+
return A(), K("div", ig, [R.value ? (A(), K("div", {
|
|
13841
|
+
key: R.value.id,
|
|
13840
13842
|
class: "pk-chatbot-input__notice",
|
|
13841
13843
|
role: "status"
|
|
13842
13844
|
}, [
|
|
13843
|
-
|
|
13845
|
+
R.value.icon ? (A(), B(a, {
|
|
13844
13846
|
key: 0,
|
|
13845
|
-
name:
|
|
13847
|
+
name: R.value.icon,
|
|
13846
13848
|
class: "pk-chatbot-input__notice-icon"
|
|
13847
|
-
}, null, 8, ["name"])) :
|
|
13848
|
-
|
|
13849
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
13850
|
+
R.value.markdown ? (A(), B(yt, {
|
|
13849
13851
|
key: 1,
|
|
13850
|
-
markdown:
|
|
13852
|
+
markdown: R.value.markdown,
|
|
13851
13853
|
class: "wysiwyg pk-chatbot-input__notice-text"
|
|
13852
|
-
}, null, 8, ["markdown"])) : (A(), K("span", ag, E(
|
|
13853
|
-
|
|
13854
|
+
}, null, 8, ["markdown"])) : (A(), K("span", ag, E(R.value.text), 1)),
|
|
13855
|
+
R.value.dismiss ? (A(), B(d, {
|
|
13854
13856
|
key: 3,
|
|
13855
13857
|
title: t.$t("action.close"),
|
|
13856
13858
|
modifiers: "action-quiet",
|
|
13857
13859
|
icon: "ri:close-line",
|
|
13858
13860
|
class: "w-18 h-18",
|
|
13859
|
-
onClick: n[0] ||= (e) =>
|
|
13860
|
-
}, null, 8, ["title"])) :
|
|
13861
|
-
])) :
|
|
13861
|
+
onClick: n[0] ||= (e) => R.value.dismiss()
|
|
13862
|
+
}, null, 8, ["title"])) : I("", !0)
|
|
13863
|
+
])) : I("", !0), V("form", {
|
|
13862
13864
|
ref_key: "formEl",
|
|
13863
13865
|
ref: l,
|
|
13864
13866
|
class: "pk-chatbot-input__form",
|
|
13865
13867
|
onSubmit: Ae(_e, ["prevent"])
|
|
13866
13868
|
}, [
|
|
13867
|
-
N(
|
|
13869
|
+
N(P) && M.value ? (A(), K("div", og, [J(a, {
|
|
13868
13870
|
name: "ri:upload-cloud-2-line",
|
|
13869
13871
|
class: "pk-chatbot-input__drop-overlay-icon"
|
|
13870
|
-
}), V("span", null, E(t.$t("action.dropFile")), 1)])) :
|
|
13872
|
+
}), V("span", null, E(t.$t("action.dropFile")), 1)])) : I("", !0),
|
|
13871
13873
|
r.value.length ? (A(), K("div", sg, [(A(!0), K(z, null, Le(r.value, (e) => (A(), B(hn, {
|
|
13872
13874
|
key: e.id,
|
|
13873
13875
|
"media-type": e.file.type,
|
|
@@ -13888,10 +13890,10 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13888
13890
|
"error",
|
|
13889
13891
|
"removable",
|
|
13890
13892
|
"onRemove"
|
|
13891
|
-
]))), 128))])) :
|
|
13893
|
+
]))), 128))])) : I("", !0),
|
|
13892
13894
|
V("div", cg, [
|
|
13893
13895
|
te(t.$slots, "prepend"),
|
|
13894
|
-
e.fileUpload && e.fileUpload.enabled && (D.value || t.$slots["additional-actions"]) ? (A(), B(p,
|
|
13896
|
+
e.fileUpload && e.fileUpload.enabled && (D.value || t.$slots["additional-actions"]) ? (A(), B(p, fe(ce({ key: 0 }, {
|
|
13895
13897
|
placement: "top-start",
|
|
13896
13898
|
modifiers: "menu",
|
|
13897
13899
|
flip: !0,
|
|
@@ -13916,9 +13918,9 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13916
13918
|
default: C(() => [J(a, {
|
|
13917
13919
|
name: "ri:camera-line",
|
|
13918
13920
|
class: "pk-chatbot-input__dropdown-icon"
|
|
13919
|
-
}),
|
|
13921
|
+
}), L(" " + E(t.$t("action.takePhoto")), 1)]),
|
|
13920
13922
|
_: 1
|
|
13921
|
-
}, 8, ["disabled"])) :
|
|
13923
|
+
}, 8, ["disabled"])) : I("", !0),
|
|
13922
13924
|
J(f, {
|
|
13923
13925
|
disabled: v.value || e.attachmentLimitReached,
|
|
13924
13926
|
onClick: re
|
|
@@ -13926,7 +13928,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13926
13928
|
default: C(() => [J(a, {
|
|
13927
13929
|
name: "ri:attachment-line",
|
|
13928
13930
|
class: "pk-chatbot-input__dropdown-icon"
|
|
13929
|
-
}),
|
|
13931
|
+
}), L(" " + E(t.$t("action.attachFile")), 1)]),
|
|
13930
13932
|
_: 1
|
|
13931
13933
|
}, 8, ["disabled"]),
|
|
13932
13934
|
te(t.$slots, "additional-actions")
|
|
@@ -13938,7 +13940,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13938
13940
|
title: t.$t("action.attachFile"),
|
|
13939
13941
|
disabled: v.value || e.attachmentLimitReached,
|
|
13940
13942
|
onClick: re
|
|
13941
|
-
}, null, 8, ["title", "disabled"])) :
|
|
13943
|
+
}, null, 8, ["title", "disabled"])) : I("", !0),
|
|
13942
13944
|
e.fileUpload && e.fileUpload.enabled ? (A(), K("input", {
|
|
13943
13945
|
key: 2,
|
|
13944
13946
|
ref_key: "fileInputEl",
|
|
@@ -13948,7 +13950,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13948
13950
|
multiple: "",
|
|
13949
13951
|
accept: T.value,
|
|
13950
13952
|
onChange: j
|
|
13951
|
-
}, null, 40, ug)) :
|
|
13953
|
+
}, null, 40, ug)) : I("", !0),
|
|
13952
13954
|
e.fileUpload && e.fileUpload.enabled && D.value ? (A(), K("input", {
|
|
13953
13955
|
key: 3,
|
|
13954
13956
|
ref_key: "cameraInputEl",
|
|
@@ -13958,7 +13960,7 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13958
13960
|
hidden: "",
|
|
13959
13961
|
accept: ne.value,
|
|
13960
13962
|
onChange: j
|
|
13961
|
-
}, null, 40, dg)) :
|
|
13963
|
+
}, null, 40, dg)) : I("", !0),
|
|
13962
13964
|
V("div", fg, [V("textarea", {
|
|
13963
13965
|
ref_key: "textareaEl",
|
|
13964
13966
|
ref: o,
|
|
@@ -13978,14 +13980,14 @@ var ig = { class: "pk-chatbot-input" }, ag = {
|
|
|
13978
13980
|
key: 4,
|
|
13979
13981
|
id: N(y),
|
|
13980
13982
|
class: q(["pk-chatbot-input__counter", { "pk-chatbot-input__counter--over": x.value }])
|
|
13981
|
-
}, [
|
|
13983
|
+
}, [L(E(t.$n(b.value, "integer")) + "/", 1), V("span", hg, E(t.$n(e.maxMessageLength, "integer")), 1)], 10, mg)) : I("", !0),
|
|
13982
13984
|
e.voiceEnabled && !g.value ? (A(), B(rg, {
|
|
13983
13985
|
key: 5,
|
|
13984
13986
|
icon: "ri:mic-line",
|
|
13985
13987
|
title: t.$t("action.talk"),
|
|
13986
13988
|
disabled: v.value,
|
|
13987
13989
|
onClick: n[1] ||= (e) => i("voice-start")
|
|
13988
|
-
}, null, 8, ["title", "disabled"])) :
|
|
13990
|
+
}, null, 8, ["title", "disabled"])) : I("", !0),
|
|
13989
13991
|
g.value ? (A(), B(rg, {
|
|
13990
13992
|
key: 6,
|
|
13991
13993
|
icon: "ri:stop-fill",
|
|
@@ -14026,12 +14028,12 @@ var _g = { class: "pk-chatbot-empty-state" }, vg = /*#__PURE__*/ pn(/* @__PURE__
|
|
|
14026
14028
|
modifiers: "surface",
|
|
14027
14029
|
"img-src": e.logo,
|
|
14028
14030
|
name: e.name
|
|
14029
|
-
}, null, 8, ["img-src", "name"])) :
|
|
14031
|
+
}, null, 8, ["img-src", "name"])) : I("", !0), e.greeting ? (A(), B(yt, {
|
|
14030
14032
|
key: 1,
|
|
14031
14033
|
markdown: e.greeting,
|
|
14032
14034
|
animation: null,
|
|
14033
14035
|
class: "wysiwyg pk-chatbot-empty-state__greeting"
|
|
14034
|
-
}, null, 8, ["markdown"])) :
|
|
14036
|
+
}, null, 8, ["markdown"])) : I("", !0)]));
|
|
14035
14037
|
}
|
|
14036
14038
|
}), [["styles", [".pk-chatbot-empty-state{align-items:center;gap:var(--spacing-sm);padding:var(--spacing-md);text-align:center;flex-direction:column;display:flex;position:relative}.pk-chatbot--phone .pk-chatbot-empty-state{padding-inline:var(--spacing-56)}.pk-chatbot-empty-state__avatar{width:var(--spacing-64);height:var(--spacing-64);font-size:var(--text-20);border-radius:var(--rounded-full)}.pk-chatbot:not(.pk-chatbot--tight) .pk-chatbot-empty-state__avatar{display:none}.pk-chatbot-empty-state__greeting{font-size:var(--text-28);font-weight:var(--font-light);color:var(--color-word-1);text-wrap:balance}.pk-chatbot-empty-state__greeting :first-child{margin-top:0}.pk-chatbot-empty-state__greeting :last-child{margin-bottom:0}.pk-chatbot-empty-state__avatar,.pk-chatbot-empty-state__greeting{animation:pk-chatbot-greeting-enter .6s var(--ease-out) both}@media (prefers-reduced-motion:reduce){.pk-chatbot-empty-state__avatar,.pk-chatbot-empty-state__greeting{animation:none}}@keyframes pk-chatbot-greeting-enter{0%{opacity:0;transform:translateY(var(--spacing-16))}}"]]]);
|
|
14037
14039
|
//#endregion
|
|
@@ -14078,7 +14080,7 @@ var yg = .18, bg = .35, xg = /*#__PURE__*/ pn(/* @__PURE__ */ w({
|
|
|
14078
14080
|
}, l = () => {
|
|
14079
14081
|
i !== void 0 && (cancelAnimationFrame(i), i = void 0);
|
|
14080
14082
|
};
|
|
14081
|
-
return
|
|
14083
|
+
return F(() => t.state, async (e) => {
|
|
14082
14084
|
e !== "listening" && e !== "speaking" || a() ? (l(), r = r.map(() => yg * 1.6), await le(), s()) : i === void 0 && (i = requestAnimationFrame(c));
|
|
14083
14085
|
}, { immediate: !0 }), ue(l), (t, r) => (A(), K("div", {
|
|
14084
14086
|
class: q(["pk-voice-orb", `pk-voice-orb--${e.state}`]),
|
|
@@ -14146,17 +14148,17 @@ var Sg = {
|
|
|
14146
14148
|
"sample",
|
|
14147
14149
|
"spectrum"
|
|
14148
14150
|
])),
|
|
14149
|
-
V("div", Cg, [V("span", { class: q(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (A(), K("span", wg)) :
|
|
14151
|
+
V("div", Cg, [V("span", { class: q(["pk-voice-session__state", l.value && `pk-voice-session__state--${l.value}`]) }, [c.value ? (A(), K("span", wg)) : I("", !0), L(" " + E(a.value), 1)], 2), e.error ? (A(), K("p", {
|
|
14150
14152
|
key: 0,
|
|
14151
14153
|
class: "pk-voice-session__detail",
|
|
14152
14154
|
title: e.rawError ?? e.error
|
|
14153
|
-
}, E(e.error), 9, Tg)) :
|
|
14155
|
+
}, E(e.error), 9, Tg)) : I("", !0)]),
|
|
14154
14156
|
o.value ? (A(), K("span", {
|
|
14155
14157
|
key: 2,
|
|
14156
14158
|
class: q(["pk-voice-session__timer", { "pk-voice-session__timer--warning": s.value }]),
|
|
14157
14159
|
title: N(i)("hint.voiceRemaining"),
|
|
14158
14160
|
"aria-hidden": "true"
|
|
14159
|
-
}, E(o.value), 11, Eg)) :
|
|
14161
|
+
}, E(o.value), 11, Eg)) : I("", !0),
|
|
14160
14162
|
V("div", Dg, [e.error ? (A(), K(z, { key: 0 }, [J(rg, {
|
|
14161
14163
|
icon: "ri:refresh-line",
|
|
14162
14164
|
label: N(i)("action.retry"),
|
|
@@ -14411,7 +14413,7 @@ function Rg(e) {
|
|
|
14411
14413
|
t.value && document.visibilityState === "visible" && e.apiClient().markChatWakeupPresence(e.agentId(), e.chatId()).catch(() => void 0);
|
|
14412
14414
|
}
|
|
14413
14415
|
let m = () => p();
|
|
14414
|
-
return document.addEventListener("visibilitychange", m),
|
|
14416
|
+
return document.addEventListener("visibilitychange", m), F(() => t.value?.wakeId, (e) => {
|
|
14415
14417
|
clearInterval(f), f = void 0, e && !i && (p(), f = setInterval(p, Lg));
|
|
14416
14418
|
}), ue(() => {
|
|
14417
14419
|
i = !0, a(), clearInterval(f), document.removeEventListener("visibilitychange", m);
|
|
@@ -14444,7 +14446,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14444
14446
|
},
|
|
14445
14447
|
emits: ["show-info", "revise"],
|
|
14446
14448
|
setup(e, { emit: t }) {
|
|
14447
|
-
let n = M(() => import("./_chunks/PkToolShowForm-CbuToc8O.js")), r = M(() => import("./_chunks/PkToolShowContactForm-Dn6CEXF_.js")), i = M(() => import("./_chunks/PkToolShowSuggestedReply-BISQY1ce.js")), a = M(() => import("./_chunks/PkToolShowSources-
|
|
14449
|
+
let n = M(() => import("./_chunks/PkToolShowForm-CbuToc8O.js")), r = M(() => import("./_chunks/PkToolShowContactForm-Dn6CEXF_.js")), i = M(() => import("./_chunks/PkToolShowSuggestedReply-BISQY1ce.js")), a = M(() => import("./_chunks/PkToolShowSources-B1zXilsH.js")), o = M(() => import("./_chunks/PkToolRequestGeolocation-PxhQxMP1.js")), s = M(() => import("./_chunks/PkToolRequestOAuthConnection-W3ilzpr7.js")), c = M(() => import("./_chunks/PkToolShowLocation-jRZtqoBO.js")), l = M(() => import("./_chunks/PkToolShowDiagram-WregKAJO.js")), u = M(() => import("./_chunks/PkToolEditSpreadsheet-Xzum_9NH.js")), d = e, f = t, p = Fd(d.agentId), { agentInterface: m, agentFileUpload: h, agentVoice: g, actions: _, revisedAnswers: v, messages: y, chat: b, messageFeedbacks: x, feedbackDialogMessage: S, isFeedbackSubmitting: ee, isFeedbackSubmitted: te, feedbackSubmitError: w, isLeadSubmitted: T, isLoadingSubmitLead: ne, submitLeadError: D, input: re, inputMessagePlaceholder: ie, isConversationBlocked: ae, baseUrl: oe, pendingAttachments: O, isAttachmentLimitReached: se, fileLimitError: ce, apiClient: le, isDark: j } = Jn(p), de = (e) => le.value.getMediaDownloadUrl(d.agentId, p.localChatId, e), { handleSubmit: P, stopGeneration: fe, regenerate: pe, onUpvote: me, onDownvote: L, onFeedback: R, onFeedbackSubmit: z, onLeadSubmit: ge, startNewChat: _e, addToolOutput: ve, addToolApprovalResponse: H, handleFileSelect: ye, clearFileLimitError: be, refreshMessages: xe, appendMessage: Se } = p, { t: Ce } = ze({ useScope: "global" }), we = U(() => {
|
|
14448
14450
|
let e = ce.value;
|
|
14449
14451
|
if (e) return e.reason === "per-chat" ? Ce("message.fileLimitPerChat", { max: e.max }) : Ce("message.fileLimitPerMessage", { max: e.max });
|
|
14450
14452
|
}), Te = cn(() => m.value?.dismissableNotice), Ee = U(() => y.value.some((e) => e.role === "user")), De = U(() => d.modifier === "fullscreen" && !Ee.value), Oe = qd(m, () => d.userName), ke = k("chatViewEl"), Ae = async (e) => (await le.value.expandSourceContext(d.agentId, e.documentId, e.chunkIndex)).content, je = async (e) => {
|
|
@@ -14516,7 +14518,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14516
14518
|
qe();
|
|
14517
14519
|
}
|
|
14518
14520
|
});
|
|
14519
|
-
|
|
14521
|
+
F(() => Y.error.value, (e) => {
|
|
14520
14522
|
e && (Ie.value = !1);
|
|
14521
14523
|
});
|
|
14522
14524
|
let Je = U(() => g.value?.enabled === !0), Ye = U(() => Y.error.value ? "error" : Y.isConnecting.value ? "connecting" : Y.isSpeaking.value ? "speaking" : Y.isActive.value ? "listening" : "idle"), Xe = U(() => {
|
|
@@ -14544,7 +14546,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14544
14546
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
14545
14547
|
});
|
|
14546
14548
|
}, ft = (e, t) => {
|
|
14547
|
-
lt(e, t) || (re.value = t,
|
|
14549
|
+
lt(e, t) || (re.value = t, P());
|
|
14548
14550
|
}, pt = (e, t) => {
|
|
14549
14551
|
let n = t.error ? Ce("message.voiceLocationRefused") : Ce("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
14550
14552
|
lt(e, n) || ve({
|
|
@@ -14574,9 +14576,9 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14574
14576
|
messages: () => y.value,
|
|
14575
14577
|
refreshMessages: xe
|
|
14576
14578
|
});
|
|
14577
|
-
return
|
|
14579
|
+
return F([() => p.localChatId, Ee], ([, e]) => {
|
|
14578
14580
|
bt(), e && yt();
|
|
14579
|
-
}, { immediate: !0 }),
|
|
14581
|
+
}, { immediate: !0 }), F(() => b.value.status, (e, t) => {
|
|
14580
14582
|
e === "ready" && t !== "ready" && Ee.value && yt();
|
|
14581
14583
|
}), (t, g) => {
|
|
14582
14584
|
let k = an;
|
|
@@ -14624,14 +14626,14 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14624
14626
|
"show-scroll-to-bottom": e.modifier === "fullscreen",
|
|
14625
14627
|
onFeedbackSubmit: g[0] ||= (e) => N(z)(e),
|
|
14626
14628
|
onFeedbackClose: g[1] ||= (e) => S.value = void 0,
|
|
14627
|
-
onRegenerate: N(
|
|
14628
|
-
onAutoRetry: N(
|
|
14629
|
+
onRegenerate: N(pe),
|
|
14630
|
+
onAutoRetry: N(pe),
|
|
14629
14631
|
onResetChat: N(_e),
|
|
14630
14632
|
onShowInfo: g[2] ||= (e) => f("show-info", e),
|
|
14631
14633
|
onRevise: g[3] ||= (e) => f("revise", e),
|
|
14632
|
-
onUpvote: N(
|
|
14633
|
-
onDownvote: N(
|
|
14634
|
-
onFeedback: N(
|
|
14634
|
+
onUpvote: N(me),
|
|
14635
|
+
onDownvote: N(L),
|
|
14636
|
+
onFeedback: N(R),
|
|
14635
14637
|
onApprovalRespond: N(H),
|
|
14636
14638
|
onConfirmRespond: dt
|
|
14637
14639
|
}, {
|
|
@@ -14765,7 +14767,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14765
14767
|
key: 0,
|
|
14766
14768
|
class: "pk-chatbot-view-chat__aurora",
|
|
14767
14769
|
"source-selector": ".pk-chatbot-input__form"
|
|
14768
|
-
})) :
|
|
14770
|
+
})) : I("", !0)]),
|
|
14769
14771
|
_: 1
|
|
14770
14772
|
}),
|
|
14771
14773
|
N(_t) && !N(ae) ? (A(), B(Mg, {
|
|
@@ -14777,13 +14779,13 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14777
14779
|
"pending",
|
|
14778
14780
|
"stopping",
|
|
14779
14781
|
"onStop"
|
|
14780
|
-
])) :
|
|
14782
|
+
])) : I("", !0),
|
|
14781
14783
|
N(ae) ? (A(), K("div", Bg, E(N(Ce)("message.chatErrorConversationBlocked")), 1)) : Ye.value === "idle" ? (A(), B(gg, {
|
|
14782
14784
|
key: 3,
|
|
14783
14785
|
modelValue: N(re),
|
|
14784
|
-
"onUpdate:modelValue": g[4] ||= (e) =>
|
|
14786
|
+
"onUpdate:modelValue": g[4] ||= (e) => he(re) ? re.value = e : null,
|
|
14785
14787
|
"pending-attachments": N(O),
|
|
14786
|
-
"onUpdate:pendingAttachments": g[5] ||= (e) =>
|
|
14788
|
+
"onUpdate:pendingAttachments": g[5] ||= (e) => he(O) ? O.value = e : null,
|
|
14787
14789
|
placeholder: N(ie),
|
|
14788
14790
|
"dismissable-notice": N(Te) && N(b).messages.length <= 1 ? N(Te) : void 0,
|
|
14789
14791
|
status: N(b).status,
|
|
@@ -14792,8 +14794,8 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14792
14794
|
"attachment-limit-reached": N(se),
|
|
14793
14795
|
"attachment-notice": we.value,
|
|
14794
14796
|
"voice-enabled": Je.value,
|
|
14795
|
-
onStopGeneration: N(
|
|
14796
|
-
onSubmit: N(
|
|
14797
|
+
onStopGeneration: N(fe),
|
|
14798
|
+
onSubmit: N(P),
|
|
14797
14799
|
onFileSelect: N(ye),
|
|
14798
14800
|
onDismissAttachmentNotice: N(be),
|
|
14799
14801
|
onVoiceStart: et
|
|
@@ -14804,7 +14806,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14804
14806
|
class: "pk-chatbot-view-chat__agent-chip-avatar",
|
|
14805
14807
|
"img-src": N(m)?.logo,
|
|
14806
14808
|
name: N(p).name
|
|
14807
|
-
}, null, 8, ["img-src", "name"]), N(p).name ? (A(), K("strong", Hg, E(N(p).name), 1)) :
|
|
14809
|
+
}, null, 8, ["img-src", "name"]), N(p).name ? (A(), K("strong", Hg, E(N(p).name), 1)) : I("", !0)])]),
|
|
14808
14810
|
key: "0"
|
|
14809
14811
|
} : void 0]), 1032, [
|
|
14810
14812
|
"modelValue",
|
|
@@ -14849,7 +14851,7 @@ var zg = { class: "pk-chatbot-view-chat__input-stage" }, Bg = {
|
|
|
14849
14851
|
default: C(() => [N(Me) && N(h)?.enabled ? (A(), K("div", Ug, [J(k, {
|
|
14850
14852
|
name: "ri:upload-cloud-2-line",
|
|
14851
14853
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
14852
|
-
}), V("span", null, E(N(Ce)("action.dropFile")), 1)])) :
|
|
14854
|
+
}), V("span", null, E(N(Ce)("action.dropFile")), 1)])) : I("", !0)]),
|
|
14853
14855
|
_: 1
|
|
14854
14856
|
})
|
|
14855
14857
|
], 2);
|
|
@@ -14929,7 +14931,7 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
|
|
|
14929
14931
|
class: q(["vv-item vv-item--roomy", { "vv-item--current": y(e) }])
|
|
14930
14932
|
}, [N(d) === e.id ? (A(), K("div", s_, [J(s, {
|
|
14931
14933
|
modelValue: N(f),
|
|
14932
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
14934
|
+
"onUpdate:modelValue": t[1] ||= (e) => he(f) ? f.value = e : null,
|
|
14933
14935
|
class: "flex-1 mb-0",
|
|
14934
14936
|
modifiers: "compact",
|
|
14935
14937
|
autofocus: "",
|
|
@@ -14972,10 +14974,10 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
|
|
|
14972
14974
|
strategy: "fixed"
|
|
14973
14975
|
}), {
|
|
14974
14976
|
items: C(() => [J(u, { onClick: (t) => x(e) }, {
|
|
14975
|
-
default: C(() => [J(r, { name: "ri:pencil-line" }),
|
|
14977
|
+
default: C(() => [J(r, { name: "ri:pencil-line" }), L(" " + E(N(n)("action.renameChat")), 1)]),
|
|
14976
14978
|
_: 1
|
|
14977
14979
|
}, 8, ["onClick"]), J(u, { onClick: (t) => N(_)(e.id) }, {
|
|
14978
|
-
default: C(() => [J(r, { name: "ri:delete-bin-line" }),
|
|
14980
|
+
default: C(() => [J(r, { name: "ri:delete-bin-line" }), L(" " + E(N(n)("action.delete")), 1)]),
|
|
14979
14981
|
_: 1
|
|
14980
14982
|
}, 8, ["onClick"])]),
|
|
14981
14983
|
default: C(() => [J(o, {
|
|
@@ -15003,7 +15005,7 @@ var Yg = { class: "flex flex-col flex-1 min-h-0 relative" }, Xg = {
|
|
|
15003
15005
|
"loading",
|
|
15004
15006
|
"disabled",
|
|
15005
15007
|
"label"
|
|
15006
|
-
])) :
|
|
15008
|
+
])) : I("", !0)])) : I("", !0)]);
|
|
15007
15009
|
};
|
|
15008
15010
|
}
|
|
15009
15011
|
});
|
|
@@ -15121,12 +15123,12 @@ var P_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, F_ = { class
|
|
|
15121
15123
|
class: "w-64 h-64",
|
|
15122
15124
|
name: o.value?.name ?? N(r),
|
|
15123
15125
|
"img-src": o.value?.image ?? N(i)?.logo
|
|
15124
|
-
}, null, 8, ["name", "img-src"]), V("div", I_, [o.value?.name ?? N(r) ? (A(), K("strong", L_, E(o.value?.name ?? N(r)), 1)) :
|
|
15126
|
+
}, null, 8, ["name", "img-src"]), V("div", I_, [o.value?.name ?? N(r) ? (A(), K("strong", L_, E(o.value?.name ?? N(r)), 1)) : I("", !0), o.value?.email ? (A(), K("span", R_, E(o.value.email), 1)) : I("", !0)])]),
|
|
15125
15127
|
V("div", z_, [d.value ? (A(), B(a, {
|
|
15126
15128
|
key: 0,
|
|
15127
15129
|
modifiers: "danger",
|
|
15128
15130
|
content: d.value
|
|
15129
|
-
}, null, 8, ["content"])) :
|
|
15131
|
+
}, null, 8, ["content"])) : I("", !0), s.value && c.value && !l.value ? (A(), K("a", {
|
|
15130
15132
|
key: 1,
|
|
15131
15133
|
href: c.value,
|
|
15132
15134
|
target: "_blank",
|
|
@@ -15142,8 +15144,8 @@ var P_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, F_ = { class
|
|
|
15142
15144
|
name: "ri:arrow-right-s-line",
|
|
15143
15145
|
class: "w-16 h-16 text-word-4 shrink-0"
|
|
15144
15146
|
})
|
|
15145
|
-
], 8, B_)) :
|
|
15146
|
-
l.value ?
|
|
15147
|
+
], 8, B_)) : I("", !0)]),
|
|
15148
|
+
l.value ? I("", !0) : (A(), K("div", G_, [J(m, {
|
|
15147
15149
|
modifiers: "secondary-danger",
|
|
15148
15150
|
class: "w-full",
|
|
15149
15151
|
icon: "ri:logout-box-line",
|
|
@@ -15214,31 +15216,31 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15214
15216
|
let { messages: l, chat: u, localChatId: d, activeView: f, chatError: p, isDark: m } = Jn(c), h = Me(c, "agentId"), { startNewChat: g, stopGeneration: _, regenerate: v, navigate: y, sendMessage: b } = c;
|
|
15215
15217
|
mn(() => a.agentInterface?.imageHosts, () => a.baseUrl);
|
|
15216
15218
|
let x = be(Cp, void 0), S = U(() => x?.canManageProfile.value ?? !1), ee = U(() => !S.value && (x?.canSignIn?.value ?? !1) && r["view-auth"] !== void 0);
|
|
15217
|
-
|
|
15219
|
+
F(S, (e) => {
|
|
15218
15220
|
e && f.value === "auth" && y("chat");
|
|
15219
|
-
}),
|
|
15221
|
+
}), pe(() => {
|
|
15220
15222
|
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.systemTheme = a.systemTheme, c.hideWelcomeMessage = a.modifier === "fullscreen";
|
|
15221
|
-
}),
|
|
15223
|
+
}), F(() => s.value, (e) => {
|
|
15222
15224
|
e && e !== c.localChatId && (c.localChatId = e);
|
|
15223
|
-
}, { immediate: !0 }),
|
|
15225
|
+
}, { immediate: !0 }), F(d, (e) => {
|
|
15224
15226
|
s.value = e;
|
|
15225
|
-
}),
|
|
15227
|
+
}), F(p, (e) => {
|
|
15226
15228
|
if (e) try {
|
|
15227
15229
|
let t = JSON.parse(e.message);
|
|
15228
15230
|
o("error", t);
|
|
15229
15231
|
} catch {}
|
|
15230
15232
|
});
|
|
15231
|
-
let w = U(() => a.modifier === "fullscreen"), T = U(() => a.modifier === "panel"), ne = k("chatbotEl"), { width: D } = Xt(ne), ie = U(() => D.value > 0 && D.value < 576), ae = U(() => D.value > 0 && D.value < 640), oe = U(() => D.value >= 848), O = U(() => a.agentType === "reasoning"), le = U(() => O.value && !l.value.some((e) => e.role === "user")), j = U(() => a.agentInterface?.useColorsForAgentHeader), ue = U(() => !T.value || S.value || ee.value || !!a.userFilesEnabled && !!d.value), de = U(() => ["theme", `theme--${m.value ? "dark" : "light"}`]), M = U(() => a.agentInterface?.mainColor),
|
|
15233
|
+
let w = U(() => a.modifier === "fullscreen"), T = U(() => a.modifier === "panel"), ne = k("chatbotEl"), { width: D } = Xt(ne), ie = U(() => D.value > 0 && D.value < 576), ae = U(() => D.value > 0 && D.value < 640), oe = U(() => D.value >= 848), O = U(() => a.agentType === "reasoning"), le = U(() => O.value && !l.value.some((e) => e.role === "user")), j = U(() => a.agentInterface?.useColorsForAgentHeader), ue = U(() => !T.value || S.value || ee.value || !!a.userFilesEnabled && !!d.value), de = U(() => ["theme", `theme--${m.value ? "dark" : "light"}`]), M = U(() => a.agentInterface?.mainColor), me = U(() => qe(a.agentInterface?.textColor, M.value)), R = U(() => rt(M.value, me.value)), he = cn(() => a.agentInterface?.footerMessage), ge = U(() => f.value === "conversations" ? i("label.conversations") : f.value === "profile" ? i("label.profile") : f.value === "auth" ? i("label.authentication") : f.value === "files" ? i("userFiles.chatFilesTitle") : a.name), _e = U(() => u.value.status === "ready"), ve = U(() => l.value?.[l.value.length - 1]);
|
|
15232
15234
|
return t({
|
|
15233
15235
|
startNewChat: g,
|
|
15234
15236
|
regenerate: v,
|
|
15235
15237
|
stopGeneration: _,
|
|
15236
15238
|
sendMessage: b
|
|
15237
|
-
}),
|
|
15239
|
+
}), F([h, d], async ([e, t]) => {
|
|
15238
15240
|
await c.initialize(e, t);
|
|
15239
|
-
}, { immediate: !0 }),
|
|
15241
|
+
}, { immediate: !0 }), F(f, (e) => {
|
|
15240
15242
|
e === "conversations" ? c.loadConversations(h.value) : e === "files" && c.loadChatFiles();
|
|
15241
|
-
}),
|
|
15243
|
+
}), F(ve, (e) => {
|
|
15242
15244
|
e && o("message-update", e);
|
|
15243
15245
|
}, {
|
|
15244
15246
|
deep: !0,
|
|
@@ -15255,44 +15257,44 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15255
15257
|
"pk-chatbot--tight": ae.value,
|
|
15256
15258
|
"pk-chatbot--wide": oe.value
|
|
15257
15259
|
}]]),
|
|
15258
|
-
style: re(
|
|
15260
|
+
style: re(R.value)
|
|
15259
15261
|
}, [
|
|
15260
|
-
w.value ?
|
|
15262
|
+
w.value ? I("", !0) : (A(), K("div", {
|
|
15261
15263
|
key: 0,
|
|
15262
15264
|
class: "pk-chatbot__header",
|
|
15263
15265
|
style: re(j.value ? { backgroundColor: M.value } : void 0)
|
|
15264
|
-
}, [V("div", q_, [N(f) === "chat" ? T.value ?
|
|
15266
|
+
}, [V("div", q_, [N(f) === "chat" ? T.value ? I("", !0) : (A(), B(Ap, {
|
|
15265
15267
|
key: 1,
|
|
15266
15268
|
modifiers: "surface ring shrink-0",
|
|
15267
15269
|
class: "pk-chatbot__avatar",
|
|
15268
15270
|
name: e.name,
|
|
15269
15271
|
"img-src": e.agentInterface?.logo
|
|
15270
15272
|
}, null, 8, ["name", "img-src"])) : (A(), K(z, { key: 0 }, [J(a, ce({
|
|
15271
|
-
modifiers: j.value ? `action-quiet-${
|
|
15273
|
+
modifiers: j.value ? `action-quiet-${me.value}` : "action-quiet",
|
|
15272
15274
|
icon: "ri:arrow-left-s-line",
|
|
15273
15275
|
title: N(i)("action.goBack")
|
|
15274
15276
|
}, { onClick: n[0] ||= (e) => N(y)("chat") }), null, 16), J(s, {
|
|
15275
15277
|
name: N(f) === "conversations" ? "ri:history-line" : N(f) === "files" ? "ri:attachment-2" : "ri:user-line",
|
|
15276
15278
|
class: "pk-chatbot__nav-icon",
|
|
15277
|
-
style: re(j.value ? { color:
|
|
15279
|
+
style: re(j.value ? { color: me.value } : void 0)
|
|
15278
15280
|
}, null, 8, ["name", "style"])], 64)), V("strong", {
|
|
15279
15281
|
class: "pk-chatbot__title",
|
|
15280
15282
|
title: ge.value,
|
|
15281
|
-
style: re(j.value ? { color:
|
|
15283
|
+
style: re(j.value ? { color: me.value } : void 0)
|
|
15282
15284
|
}, E(ge.value), 13, J_)]), J(u, {
|
|
15283
15285
|
class: "pk-chatbot__header-end",
|
|
15284
15286
|
modifiers: "compact"
|
|
15285
15287
|
}, {
|
|
15286
15288
|
default: C(() => [
|
|
15287
|
-
te(t.$slots, "header-actions",
|
|
15289
|
+
te(t.$slots, "header-actions", fe(P({
|
|
15288
15290
|
mainColor: M.value,
|
|
15289
15291
|
useColorsForAgentHeader: j.value,
|
|
15290
|
-
contrastColor:
|
|
15292
|
+
contrastColor: me.value,
|
|
15291
15293
|
startNewChat: N(g),
|
|
15292
15294
|
stopGeneration: N(_)
|
|
15293
15295
|
}))),
|
|
15294
15296
|
T.value ? (A(), K(z, { key: 0 }, [J(a, {
|
|
15295
|
-
modifiers: j.value ? `action-quiet-${
|
|
15297
|
+
modifiers: j.value ? `action-quiet-${me.value}` : "action-quiet",
|
|
15296
15298
|
icon: "ri:edit-box-line",
|
|
15297
15299
|
disabled: !_e.value,
|
|
15298
15300
|
title: N(i)("action.startNewChat"),
|
|
@@ -15301,9 +15303,9 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15301
15303
|
"modifiers",
|
|
15302
15304
|
"disabled",
|
|
15303
15305
|
"title"
|
|
15304
|
-
]), O.value ?
|
|
15306
|
+
]), O.value ? I("", !0) : (A(), B(a, {
|
|
15305
15307
|
key: 0,
|
|
15306
|
-
modifiers: j.value ? `action-quiet-${
|
|
15308
|
+
modifiers: j.value ? `action-quiet-${me.value}` : "action-quiet",
|
|
15307
15309
|
icon: "ri:history-line",
|
|
15308
15310
|
disabled: !_e.value,
|
|
15309
15311
|
title: N(i)("action.viewRecentChats"),
|
|
@@ -15312,8 +15314,8 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15312
15314
|
"modifiers",
|
|
15313
15315
|
"disabled",
|
|
15314
15316
|
"title"
|
|
15315
|
-
]))], 64)) :
|
|
15316
|
-
ue.value ? (A(), B(l,
|
|
15317
|
+
]))], 64)) : I("", !0),
|
|
15318
|
+
ue.value ? (A(), B(l, fe(ce({ key: 1 }, {
|
|
15317
15319
|
placement: "bottom-end",
|
|
15318
15320
|
modifiers: "menu",
|
|
15319
15321
|
flip: !0,
|
|
@@ -15321,53 +15323,53 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15321
15323
|
strategy: "fixed"
|
|
15322
15324
|
})), {
|
|
15323
15325
|
items: C(() => [
|
|
15324
|
-
T.value ?
|
|
15326
|
+
T.value ? I("", !0) : (A(), B(c, {
|
|
15325
15327
|
key: 0,
|
|
15326
15328
|
onClick: n[3] ||= (e) => N(g)()
|
|
15327
15329
|
}, {
|
|
15328
|
-
default: C(() => [J(s, { name: "ri:edit-box-line" }),
|
|
15330
|
+
default: C(() => [J(s, { name: "ri:edit-box-line" }), L(" " + E(N(i)("action.startNewChat")), 1)]),
|
|
15329
15331
|
_: 1
|
|
15330
15332
|
})),
|
|
15331
15333
|
!O.value && !T.value ? (A(), B(c, {
|
|
15332
15334
|
key: 1,
|
|
15333
15335
|
onClick: n[4] ||= (e) => N(y)("conversations")
|
|
15334
15336
|
}, {
|
|
15335
|
-
default: C(() => [J(s, { name: "ri:history-line" }),
|
|
15337
|
+
default: C(() => [J(s, { name: "ri:history-line" }), L(" " + E(N(i)("action.viewRecentChats")), 1)]),
|
|
15336
15338
|
_: 1
|
|
15337
|
-
})) :
|
|
15339
|
+
})) : I("", !0),
|
|
15338
15340
|
(S.value || e.userFilesEnabled) && N(d) ? (A(), B(c, {
|
|
15339
15341
|
key: 2,
|
|
15340
15342
|
onClick: n[5] ||= (e) => N(y)("files")
|
|
15341
15343
|
}, {
|
|
15342
|
-
default: C(() => [J(s, { name: "ri:attachment-2" }),
|
|
15344
|
+
default: C(() => [J(s, { name: "ri:attachment-2" }), L(" " + E(N(i)("userFiles.chatFilesTitle")), 1)]),
|
|
15343
15345
|
_: 1
|
|
15344
|
-
})) :
|
|
15346
|
+
})) : I("", !0),
|
|
15345
15347
|
S.value ? (A(), B(c, {
|
|
15346
15348
|
key: 3,
|
|
15347
15349
|
onClick: n[6] ||= (e) => N(y)("profile")
|
|
15348
15350
|
}, {
|
|
15349
|
-
default: C(() => [J(s, { name: "ri:user-line" }),
|
|
15351
|
+
default: C(() => [J(s, { name: "ri:user-line" }), L(" " + E(N(i)("label.profile")), 1)]),
|
|
15350
15352
|
_: 1
|
|
15351
15353
|
})) : ee.value ? (A(), B(c, {
|
|
15352
15354
|
key: 4,
|
|
15353
15355
|
onClick: n[7] ||= (e) => N(y)("auth")
|
|
15354
15356
|
}, {
|
|
15355
|
-
default: C(() => [J(s, { name: "ri:account-circle-line" }),
|
|
15357
|
+
default: C(() => [J(s, { name: "ri:account-circle-line" }), L(" " + E(N(i)("action.signIn")), 1)]),
|
|
15356
15358
|
_: 1
|
|
15357
|
-
})) :
|
|
15359
|
+
})) : I("", !0)
|
|
15358
15360
|
]),
|
|
15359
|
-
default: C(() => [J(a,
|
|
15360
|
-
modifiers: j.value ? `action-quiet-${
|
|
15361
|
+
default: C(() => [J(a, fe(P({
|
|
15362
|
+
modifiers: j.value ? `action-quiet-${me.value}` : "action-quiet",
|
|
15361
15363
|
icon: "ri:more-2-fill",
|
|
15362
15364
|
disabled: !_e.value,
|
|
15363
15365
|
title: N(i)("action.moreActions")
|
|
15364
15366
|
})), null, 16)]),
|
|
15365
15367
|
_: 1
|
|
15366
|
-
}, 16)) :
|
|
15367
|
-
te(t.$slots, "actions",
|
|
15368
|
+
}, 16)) : I("", !0),
|
|
15369
|
+
te(t.$slots, "actions", fe(P({
|
|
15368
15370
|
mainColor: M.value,
|
|
15369
15371
|
useColorsForAgentHeader: j.value,
|
|
15370
|
-
contrastColor:
|
|
15372
|
+
contrastColor: me.value,
|
|
15371
15373
|
startNewChat: N(g),
|
|
15372
15374
|
stopGeneration: N(_)
|
|
15373
15375
|
})))
|
|
@@ -15380,7 +15382,7 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15380
15382
|
class: "pk-chatbot__warning-icon"
|
|
15381
15383
|
}), V("strong", Q_, E(N(i)("message.warning")), 1)]), V("p", $_, E(N(i)("message.reasoningAgent")), 1)]),
|
|
15382
15384
|
_: 1
|
|
15383
|
-
})])])) :
|
|
15385
|
+
})])])) : I("", !0),
|
|
15384
15386
|
N(f) === "chat" ? (A(), B(Jg, {
|
|
15385
15387
|
key: 2,
|
|
15386
15388
|
"agent-id": e.agentId,
|
|
@@ -15390,7 +15392,7 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15390
15392
|
onRevise: n[9] ||= (e) => o("revise", e)
|
|
15391
15393
|
}, Fe({ _: 2 }, [Le(Object.keys(N(r)), (e) => ({
|
|
15392
15394
|
name: e,
|
|
15393
|
-
fn: C((n) => [te(t.$slots, e,
|
|
15395
|
+
fn: C((n) => [te(t.$slots, e, fe(P(n)))])
|
|
15394
15396
|
}))]), 1032, [
|
|
15395
15397
|
"agent-id",
|
|
15396
15398
|
"modifier",
|
|
@@ -15400,7 +15402,7 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15400
15402
|
"agent-id": e.agentId
|
|
15401
15403
|
}, Fe({ _: 2 }, [Le(Object.keys(N(r)), (e) => ({
|
|
15402
15404
|
name: e,
|
|
15403
|
-
fn: C((n) => [te(t.$slots, e,
|
|
15405
|
+
fn: C((n) => [te(t.$slots, e, fe(P(n)))])
|
|
15404
15406
|
}))]), 1032, ["agent-id"])) : N(f) === "files" ? (A(), B(N_, {
|
|
15405
15407
|
key: 4,
|
|
15406
15408
|
"agent-id": e.agentId
|
|
@@ -15409,12 +15411,12 @@ var q_ = { class: "pk-chatbot__header-start" }, J_ = ["title"], Y_ = { key: 1 },
|
|
|
15409
15411
|
"agent-id": e.agentId
|
|
15410
15412
|
}, Fe({ _: 2 }, [Le(Object.keys(N(r)), (e) => ({
|
|
15411
15413
|
name: e,
|
|
15412
|
-
fn: C((n) => [te(t.$slots, e,
|
|
15414
|
+
fn: C((n) => [te(t.$slots, e, fe(P(n)))])
|
|
15413
15415
|
}))]), 1032, ["agent-id"])),
|
|
15414
|
-
N(
|
|
15415
|
-
markdown: N(
|
|
15416
|
+
N(he) ? (A(), K("div", tv, [J(yt, {
|
|
15417
|
+
markdown: N(he),
|
|
15416
15418
|
class: "wysiwyg"
|
|
15417
|
-
}, null, 8, ["markdown"])])) :
|
|
15419
|
+
}, null, 8, ["markdown"])])) : I("", !0)
|
|
15418
15420
|
], 6);
|
|
15419
15421
|
};
|
|
15420
15422
|
}
|
|
@@ -15469,7 +15471,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15469
15471
|
], ["update:errorMessage", "update:success"]),
|
|
15470
15472
|
setup(e, { emit: t }) {
|
|
15471
15473
|
let { t: n } = ze({ useScope: "global" }), r = e, { canShowImage: a, onImageError: c } = fn(), l = se(e, "errorMessage"), u = se(e, "success"), d = t, f = W("sign-in");
|
|
15472
|
-
|
|
15474
|
+
F(f, () => {
|
|
15473
15475
|
l.value = void 0, u.value = void 0;
|
|
15474
15476
|
});
|
|
15475
15477
|
function p() {
|
|
@@ -15480,7 +15482,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15480
15482
|
password: Qr,
|
|
15481
15483
|
rememberMe: v().default(!1)
|
|
15482
15484
|
}), g = i({ email: s() }), { VvForm: _, VvFormField: y } = un(h, { lazyLoad: !0 }), { VvForm: b, VvFormField: x, clear: S } = un(ei, { lazyLoad: !0 }), { VvForm: ee, VvFormField: te, clear: w } = un(g, { lazyLoad: !0 });
|
|
15483
|
-
|
|
15485
|
+
F(u, (e) => {
|
|
15484
15486
|
e && (S(), w());
|
|
15485
15487
|
});
|
|
15486
15488
|
let T = W();
|
|
@@ -15508,7 +15510,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15508
15510
|
d("social", e);
|
|
15509
15511
|
}
|
|
15510
15512
|
let O = U(() => !!r.twoFactorMethods?.length), k = W("totp"), { VvForm: ce, VvFormField: le, clear: j } = un(i({ code: o().trim().min(6).max(32) }), { lazyLoad: !0 });
|
|
15511
|
-
|
|
15513
|
+
F(() => r.twoFactorMethods, (e) => {
|
|
15512
15514
|
e?.length && (k.value = e.includes("totp") ? "totp" : "otp", j(), k.value === "otp" && d("send-two-factor-code"));
|
|
15513
15515
|
}, { immediate: !0 });
|
|
15514
15516
|
function ue(e) {
|
|
@@ -15555,9 +15557,9 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15555
15557
|
alt: e.branding?.name,
|
|
15556
15558
|
class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
|
|
15557
15559
|
onError: r[0] ||= (t) => N(c)(e.branding?.interface.logo)
|
|
15558
|
-
}, null, 40, dv)])) :
|
|
15559
|
-
V("div", fv, [e.branding?.name ? (A(), K("h1", pv, E(e.branding.name), 1)) :
|
|
15560
|
-
default: C(() => [O.value ? (A(), K(z, { key: 0 }, [
|
|
15560
|
+
}, null, 40, dv)])) : I("", !0),
|
|
15561
|
+
V("div", fv, [e.branding?.name ? (A(), K("h1", pv, E(e.branding.name), 1)) : I("", !0), (A(), B(oe(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
|
|
15562
|
+
default: C(() => [O.value ? (A(), K(z, { key: 0 }, [L(E(N(n)("twoFactor.challengeTitle")), 1)], 64)) : f.value === "sign-in" ? (A(), K(z, { key: 1 }, [L(E(N(n)("auth.signInTitle")), 1)], 64)) : f.value === "sign-up" ? (A(), K(z, { key: 2 }, [L(E(N(n)("auth.signUpTitle")), 1)], 64)) : f.value === "reset" ? (A(), K(z, { key: 3 }, [L(E(N(n)("auth.resetTitle")), 1)], 64)) : I("", !0)]),
|
|
15561
15563
|
_: 1
|
|
15562
15564
|
}))]),
|
|
15563
15565
|
l.value ? (A(), B(s, {
|
|
@@ -15565,7 +15567,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15565
15567
|
modifiers: "danger",
|
|
15566
15568
|
class: "mb-md",
|
|
15567
15569
|
content: l.value
|
|
15568
|
-
}, null, 8, ["content"])) :
|
|
15570
|
+
}, null, 8, ["content"])) : I("", !0),
|
|
15569
15571
|
O.value ? (A(), K(z, { key: 2 }, [
|
|
15570
15572
|
V("p", mv, E(de.value), 1),
|
|
15571
15573
|
J(N(ce), {
|
|
@@ -15731,7 +15733,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15731
15733
|
_: 1
|
|
15732
15734
|
})]),
|
|
15733
15735
|
_: 1
|
|
15734
|
-
}, 8, ["readonly"])) :
|
|
15736
|
+
}, 8, ["readonly"])) : I("", !0),
|
|
15735
15737
|
!O.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (A(), K(z, { key: 6 }, [V("div", yv, [V("span", null, E(N(n)("label.or")), 1)]), J(h, {
|
|
15736
15738
|
modifiers: "vertical",
|
|
15737
15739
|
class: "gap-xs mt-xs"
|
|
@@ -15744,7 +15746,7 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15744
15746
|
disabled: e.loading,
|
|
15745
15747
|
label: N(n)("action.signInWithSocialProvider", { provider: "Google" }),
|
|
15746
15748
|
onClick: r[5] ||= (e) => ae("google")
|
|
15747
|
-
}, null, 8, ["disabled", "label"])) :
|
|
15749
|
+
}, null, 8, ["disabled", "label"])) : I("", !0), e.authMethods?.microsoft ? (A(), B(o, {
|
|
15748
15750
|
key: 1,
|
|
15749
15751
|
type: "button",
|
|
15750
15752
|
modifiers: "secondary",
|
|
@@ -15752,9 +15754,9 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15752
15754
|
disabled: e.loading,
|
|
15753
15755
|
label: N(n)("action.signInWithSocialProvider", { provider: "Microsoft" }),
|
|
15754
15756
|
onClick: r[6] ||= (e) => ae("microsoft")
|
|
15755
|
-
}, null, 8, ["disabled", "label"])) :
|
|
15757
|
+
}, null, 8, ["disabled", "label"])) : I("", !0)]),
|
|
15756
15758
|
_: 1
|
|
15757
|
-
})], 64)) :
|
|
15759
|
+
})], 64)) : I("", !0)
|
|
15758
15760
|
]), V("div", bv, [O.value ? (A(), B(o, {
|
|
15759
15761
|
key: 0,
|
|
15760
15762
|
type: "button",
|
|
@@ -15762,13 +15764,13 @@ var rv = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15762
15764
|
icon: "chevron-left",
|
|
15763
15765
|
label: N(n)("action.backToSignIn"),
|
|
15764
15766
|
onClick: r[7] ||= (e) => d("cancel-two-factor")
|
|
15765
|
-
}, null, 8, ["label"])) : f.value === "sign-in" ? (A(), K(z, { key: 1 }, [
|
|
15767
|
+
}, null, 8, ["label"])) : f.value === "sign-in" ? (A(), K(z, { key: 1 }, [L(E(N(n)("auth.noAccount")) + " ", 1), J(o, {
|
|
15766
15768
|
type: "button",
|
|
15767
15769
|
modifiers: "link",
|
|
15768
15770
|
class: "font-semibold",
|
|
15769
15771
|
label: N(n)("action.signUp"),
|
|
15770
15772
|
onClick: r[8] ||= (e) => f.value = "sign-up"
|
|
15771
|
-
}, null, 8, ["label"])], 64)) : f.value === "sign-up" ? (A(), K(z, { key: 2 }, [
|
|
15773
|
+
}, null, 8, ["label"])], 64)) : f.value === "sign-up" ? (A(), K(z, { key: 2 }, [L(E(N(n)("auth.haveAccount")) + " ", 1), J(o, {
|
|
15772
15774
|
type: "button",
|
|
15773
15775
|
modifiers: "link",
|
|
15774
15776
|
class: "font-semibold",
|
|
@@ -15835,7 +15837,7 @@ var Ev = { class: "welcome-popup__text" }, Dv = ["aria-label"], Ov = 100, kv = /
|
|
|
15835
15837
|
function m() {
|
|
15836
15838
|
p(), r("open");
|
|
15837
15839
|
}
|
|
15838
|
-
return
|
|
15840
|
+
return F(() => n.enabled, (e) => {
|
|
15839
15841
|
e && !a.value && (u = setTimeout(() => {
|
|
15840
15842
|
n.enabled && !a.value && (o.value = !0, d(i.value ?? ""));
|
|
15841
15843
|
}, n.delay)), e || (o.value = !1, f());
|
|
@@ -15862,9 +15864,9 @@ var Ev = { class: "welcome-popup__text" }, Dv = ["aria-label"], Ov = 100, kv = /
|
|
|
15862
15864
|
width: "14",
|
|
15863
15865
|
height: "14",
|
|
15864
15866
|
fill: "currentColor"
|
|
15865
|
-
}, [V("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, Dv)) :
|
|
15867
|
+
}, [V("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, Dv)) : I("", !0)]),
|
|
15866
15868
|
_: 1
|
|
15867
|
-
})])) :
|
|
15869
|
+
})])) : I("", !0)]),
|
|
15868
15870
|
_: 1
|
|
15869
15871
|
}));
|
|
15870
15872
|
}
|
|
@@ -15960,14 +15962,14 @@ var Av = {
|
|
|
15960
15962
|
onSignedOut: () => i("signed-out"),
|
|
15961
15963
|
onExternalAuthExpired: () => i("external-auth-expired")
|
|
15962
15964
|
});
|
|
15963
|
-
|
|
15965
|
+
F(p, (e) => {
|
|
15964
15966
|
e && si({ userId: e });
|
|
15965
15967
|
}), Sp({
|
|
15966
15968
|
agentId: n.agentId,
|
|
15967
15969
|
baseUrl: n.baseUrl,
|
|
15968
15970
|
headers: d,
|
|
15969
15971
|
userId: p
|
|
15970
|
-
}),
|
|
15972
|
+
}), F(() => l.value.data, (e) => {
|
|
15971
15973
|
e && i("ready");
|
|
15972
15974
|
});
|
|
15973
15975
|
function w(e) {
|
|
@@ -16001,7 +16003,7 @@ var Av = {
|
|
|
16001
16003
|
n.customCss
|
|
16002
16004
|
].filter(Boolean);
|
|
16003
16005
|
return e.length ? e.join("\n") : void 0;
|
|
16004
|
-
}), { authError:
|
|
16006
|
+
}), { authError: P, authSuccess: fe, authLoading: pe, handleSignIn: me, handleSignUp: R, handleReset: z, handleSocial: ge, handleVerifyTwoFactor: _e, handleSendTwoFactorCode: ve, handleCancelTwoFactor: H } = Dp({
|
|
16005
16007
|
signInWithEmail: h,
|
|
16006
16008
|
isTwoFactorPending: () => !!g.value,
|
|
16007
16009
|
verifyTwoFactor: _,
|
|
@@ -16044,13 +16046,13 @@ var Av = {
|
|
|
16044
16046
|
style: re(N(le))
|
|
16045
16047
|
}, [
|
|
16046
16048
|
N(ie) ? (A(), B(oe("style"), { key: 0 }, {
|
|
16047
|
-
default: C(() => [
|
|
16049
|
+
default: C(() => [L(E(N(ie)), 1)]),
|
|
16048
16050
|
_: 1
|
|
16049
|
-
})) :
|
|
16051
|
+
})) : I("", !0),
|
|
16050
16052
|
M.value ? (A(), B(oe("style"), { key: 1 }, {
|
|
16051
|
-
default: C(() => [
|
|
16053
|
+
default: C(() => [L(E(M.value), 1)]),
|
|
16052
16054
|
_: 1
|
|
16053
|
-
})) :
|
|
16055
|
+
})) : I("", !0),
|
|
16054
16056
|
J(G, { name: "slide-bottom" }, {
|
|
16055
16057
|
default: C(() => [(N(T) || N(ne)) && !N(O) ? (A(), K("div", Av, [J(kv, {
|
|
16056
16058
|
"agent-id": e.agentId,
|
|
@@ -16067,23 +16069,23 @@ var Av = {
|
|
|
16067
16069
|
"aria-expanded": N(s),
|
|
16068
16070
|
class: "floating-chat-widget__button",
|
|
16069
16071
|
onClick: Ae(c, ["stop"])
|
|
16070
|
-
}, [N(s) ? (A(), K("svg", Mv, [...n[4] ||= [V("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)]])) : (A(), K("svg", Nv, [...n[5] ||= [V("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, jv)])) :
|
|
16072
|
+
}, [N(s) ? (A(), K("svg", Mv, [...n[4] ||= [V("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)]])) : (A(), K("svg", Nv, [...n[5] ||= [V("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, jv)])) : I("", !0)]),
|
|
16071
16073
|
_: 1
|
|
16072
16074
|
}),
|
|
16073
16075
|
J(G, null, {
|
|
16074
16076
|
default: C(() => [N(s) && (N(ae) || N(k)) && !(N(T) && N(l).data) ? (A(), K("div", Pv, [N(ae) ? (A(), B(xv, {
|
|
16075
16077
|
key: 0,
|
|
16076
|
-
"error-message": N(
|
|
16077
|
-
"onUpdate:errorMessage": n[0] ||= (e) =>
|
|
16078
|
-
success: N(
|
|
16079
|
-
"onUpdate:success": n[1] ||= (e) =>
|
|
16078
|
+
"error-message": N(P),
|
|
16079
|
+
"onUpdate:errorMessage": n[0] ||= (e) => he(P) ? P.value = e : null,
|
|
16080
|
+
success: N(fe),
|
|
16081
|
+
"onUpdate:success": n[1] ||= (e) => he(fe) ? fe.value = e : null,
|
|
16080
16082
|
branding: N(ne),
|
|
16081
16083
|
"auth-methods": N(D),
|
|
16082
16084
|
"base-url": e.baseUrl,
|
|
16083
|
-
loading: N(
|
|
16085
|
+
loading: N(pe),
|
|
16084
16086
|
"two-factor-methods": N(g)?.methods,
|
|
16085
|
-
onSignIn: N(
|
|
16086
|
-
onSignUp: N(
|
|
16087
|
+
onSignIn: N(me),
|
|
16088
|
+
onSignUp: N(R),
|
|
16087
16089
|
onRequestReset: N(z),
|
|
16088
16090
|
onSocial: N(ge),
|
|
16089
16091
|
onVerifyTwoFactor: N(_e),
|
|
@@ -16104,11 +16106,11 @@ var Av = {
|
|
|
16104
16106
|
"onVerifyTwoFactor",
|
|
16105
16107
|
"onSendTwoFactorCode",
|
|
16106
16108
|
"onCancelTwoFactor"
|
|
16107
|
-
])) : (A(), B(Tv, { key: 1 }))])) :
|
|
16109
|
+
])) : (A(), B(Tv, { key: 1 }))])) : I("", !0)]),
|
|
16108
16110
|
_: 1
|
|
16109
16111
|
}),
|
|
16110
16112
|
J(G, null, {
|
|
16111
|
-
default: C(() => [N(s) && !N(ae) && !N(T) && !N(k) ? (A(), K("div", Fv, [J(Tv)])) :
|
|
16113
|
+
default: C(() => [N(s) && !N(ae) && !N(T) && !N(k) ? (A(), K("div", Fv, [J(Tv)])) : I("", !0)]),
|
|
16112
16114
|
_: 1
|
|
16113
16115
|
}),
|
|
16114
16116
|
J(G, null, {
|
|
@@ -16142,16 +16144,16 @@ var Av = {
|
|
|
16142
16144
|
onClick: Ae(c, ["stop"])
|
|
16143
16145
|
}, null, 8, ["modifiers", "title"])]),
|
|
16144
16146
|
"view-auth": C(() => [J(xv, {
|
|
16145
|
-
"error-message": N(
|
|
16146
|
-
"onUpdate:errorMessage": n[2] ||= (e) =>
|
|
16147
|
-
success: N(
|
|
16148
|
-
"onUpdate:success": n[3] ||= (e) =>
|
|
16147
|
+
"error-message": N(P),
|
|
16148
|
+
"onUpdate:errorMessage": n[2] ||= (e) => he(P) ? P.value = e : null,
|
|
16149
|
+
success: N(fe),
|
|
16150
|
+
"onUpdate:success": n[3] ||= (e) => he(fe) ? fe.value = e : null,
|
|
16149
16151
|
branding: N(ue),
|
|
16150
16152
|
"auth-methods": N(D),
|
|
16151
|
-
loading: N(
|
|
16153
|
+
loading: N(pe),
|
|
16152
16154
|
"two-factor-methods": N(g)?.methods,
|
|
16153
|
-
onSignIn: N(
|
|
16154
|
-
onSignUp: N(
|
|
16155
|
+
onSignIn: N(me),
|
|
16156
|
+
onSignUp: N(R),
|
|
16155
16157
|
onRequestReset: N(z),
|
|
16156
16158
|
onSocial: N(ge),
|
|
16157
16159
|
onVerifyTwoFactor: N(_e),
|
|
@@ -16184,7 +16186,7 @@ var Av = {
|
|
|
16184
16186
|
"headers",
|
|
16185
16187
|
"system-theme",
|
|
16186
16188
|
"external-context"
|
|
16187
|
-
])) :
|
|
16189
|
+
])) : I("", !0)]),
|
|
16188
16190
|
_: 1
|
|
16189
16191
|
}),
|
|
16190
16192
|
J(N(r))
|
|
@@ -16268,14 +16270,14 @@ var Lv = {
|
|
|
16268
16270
|
onSignedOut: () => i("signed-out"),
|
|
16269
16271
|
onExternalAuthExpired: () => i("external-auth-expired")
|
|
16270
16272
|
});
|
|
16271
|
-
|
|
16273
|
+
F(d, (e) => {
|
|
16272
16274
|
e && si({ userId: e });
|
|
16273
16275
|
}), Sp({
|
|
16274
16276
|
agentId: n.agentId,
|
|
16275
16277
|
baseUrl: n.baseUrl,
|
|
16276
16278
|
headers: l,
|
|
16277
16279
|
userId: d
|
|
16278
|
-
}),
|
|
16280
|
+
}), F(() => s.value.data, (e) => {
|
|
16279
16281
|
e && i("ready");
|
|
16280
16282
|
});
|
|
16281
16283
|
function ee(e) {
|
|
@@ -16302,7 +16304,7 @@ var Lv = {
|
|
|
16302
16304
|
baseUrl: n.baseUrl,
|
|
16303
16305
|
headers: l,
|
|
16304
16306
|
cookieName: n.cookieName
|
|
16305
|
-
}), { authError: ue, authSuccess: de, authLoading: M, handleSignIn:
|
|
16307
|
+
}), { authError: ue, authSuccess: de, authLoading: M, handleSignIn: P, handleSignUp: fe, handleReset: pe, handleSocial: me, handleVerifyTwoFactor: R, handleSendTwoFactorCode: z, handleCancelTwoFactor: ge } = Dp({
|
|
16306
16308
|
signInWithEmail: p,
|
|
16307
16309
|
isTwoFactorPending: () => !!m.value,
|
|
16308
16310
|
verifyTwoFactor: h,
|
|
@@ -16338,14 +16340,14 @@ var Lv = {
|
|
|
16338
16340
|
style: re(N(le))
|
|
16339
16341
|
}, [
|
|
16340
16342
|
N(ie) ? (A(), B(oe("style"), { key: 0 }, {
|
|
16341
|
-
default: C(() => [
|
|
16343
|
+
default: C(() => [L(E(N(ie)), 1)]),
|
|
16342
16344
|
_: 1
|
|
16343
|
-
})) :
|
|
16345
|
+
})) : I("", !0),
|
|
16344
16346
|
H.value ? (A(), B(oe("style"), { key: 1 }, {
|
|
16345
|
-
default: C(() => [
|
|
16347
|
+
default: C(() => [L(E(H.value), 1)]),
|
|
16346
16348
|
_: 1
|
|
16347
|
-
})) :
|
|
16348
|
-
N(O) ? (A(), K("div", Lv, [V("p", null, E(N(w)("message.agentNotFound")), 1)])) :
|
|
16349
|
+
})) : I("", !0),
|
|
16350
|
+
N(O) ? (A(), K("div", Lv, [V("p", null, E(N(w)("message.agentNotFound")), 1)])) : I("", !0),
|
|
16349
16351
|
J(G, {
|
|
16350
16352
|
name: "fade",
|
|
16351
16353
|
appear: ""
|
|
@@ -16353,18 +16355,18 @@ var Lv = {
|
|
|
16353
16355
|
default: C(() => [(N(T) || N(ne)) && !N(O) && N(ae) && (!N(s).data?.user?.id || N(s).data?.user?.isAnonymous) ? (A(), K("div", Rv, [N(D) ? (A(), B(xv, {
|
|
16354
16356
|
key: 0,
|
|
16355
16357
|
"error-message": N(ue),
|
|
16356
|
-
"onUpdate:errorMessage": n[0] ||= (e) =>
|
|
16358
|
+
"onUpdate:errorMessage": n[0] ||= (e) => he(ue) ? ue.value = e : null,
|
|
16357
16359
|
success: N(de),
|
|
16358
|
-
"onUpdate:success": n[1] ||= (e) =>
|
|
16360
|
+
"onUpdate:success": n[1] ||= (e) => he(de) ? de.value = e : null,
|
|
16359
16361
|
branding: N(ne),
|
|
16360
16362
|
"auth-methods": N(D),
|
|
16361
16363
|
loading: N(M),
|
|
16362
16364
|
"two-factor-methods": N(m)?.methods,
|
|
16363
|
-
onSignIn: N(
|
|
16364
|
-
onSignUp: N(
|
|
16365
|
-
onRequestReset: N(
|
|
16366
|
-
onSocial: N(
|
|
16367
|
-
onVerifyTwoFactor: N(
|
|
16365
|
+
onSignIn: N(P),
|
|
16366
|
+
onSignUp: N(fe),
|
|
16367
|
+
onRequestReset: N(pe),
|
|
16368
|
+
onSocial: N(me),
|
|
16369
|
+
onVerifyTwoFactor: N(R),
|
|
16368
16370
|
onSendTwoFactorCode: N(z),
|
|
16369
16371
|
onCancelTwoFactor: N(ge)
|
|
16370
16372
|
}, null, 8, [
|
|
@@ -16381,14 +16383,14 @@ var Lv = {
|
|
|
16381
16383
|
"onVerifyTwoFactor",
|
|
16382
16384
|
"onSendTwoFactorCode",
|
|
16383
16385
|
"onCancelTwoFactor"
|
|
16384
|
-
])) : (A(), B(Tv, { key: 1 }))])) :
|
|
16386
|
+
])) : (A(), B(Tv, { key: 1 }))])) : I("", !0)]),
|
|
16385
16387
|
_: 1
|
|
16386
16388
|
}),
|
|
16387
16389
|
J(G, {
|
|
16388
16390
|
name: "fade",
|
|
16389
16391
|
appear: ""
|
|
16390
16392
|
}, {
|
|
16391
|
-
default: C(() => [N(k) && !N(O) ? (A(), K("div", zv, [J(Tv)])) :
|
|
16393
|
+
default: C(() => [N(k) && !N(O) ? (A(), K("div", zv, [J(Tv)])) : I("", !0)]),
|
|
16392
16394
|
_: 1
|
|
16393
16395
|
}),
|
|
16394
16396
|
N(T) && N(s).data && !N(O) ? (A(), B(nv, {
|
|
@@ -16420,18 +16422,18 @@ var Lv = {
|
|
|
16420
16422
|
actions: C(() => [te(t.$slots, "actions")]),
|
|
16421
16423
|
"view-auth": C(() => [J(xv, {
|
|
16422
16424
|
"error-message": N(ue),
|
|
16423
|
-
"onUpdate:errorMessage": n[2] ||= (e) =>
|
|
16425
|
+
"onUpdate:errorMessage": n[2] ||= (e) => he(ue) ? ue.value = e : null,
|
|
16424
16426
|
success: N(de),
|
|
16425
|
-
"onUpdate:success": n[3] ||= (e) =>
|
|
16427
|
+
"onUpdate:success": n[3] ||= (e) => he(de) ? de.value = e : null,
|
|
16426
16428
|
branding: N(j),
|
|
16427
16429
|
"auth-methods": N(D),
|
|
16428
16430
|
loading: N(M),
|
|
16429
16431
|
"two-factor-methods": N(m)?.methods,
|
|
16430
|
-
onSignIn: N(
|
|
16431
|
-
onSignUp: N(
|
|
16432
|
-
onRequestReset: N(
|
|
16433
|
-
onSocial: N(
|
|
16434
|
-
onVerifyTwoFactor: N(
|
|
16432
|
+
onSignIn: N(P),
|
|
16433
|
+
onSignUp: N(fe),
|
|
16434
|
+
onRequestReset: N(pe),
|
|
16435
|
+
onSocial: N(me),
|
|
16436
|
+
onVerifyTwoFactor: N(R),
|
|
16435
16437
|
onSendTwoFactorCode: N(z),
|
|
16436
16438
|
onCancelTwoFactor: N(ge)
|
|
16437
16439
|
}, null, 8, [
|
|
@@ -16466,7 +16468,7 @@ var Lv = {
|
|
|
16466
16468
|
"headers",
|
|
16467
16469
|
"system-theme",
|
|
16468
16470
|
"external-context"
|
|
16469
|
-
])) :
|
|
16471
|
+
])) : I("", !0),
|
|
16470
16472
|
J(N(r))
|
|
16471
16473
|
], 6));
|
|
16472
16474
|
}
|