@8wave/ai-elements 0.117.0-beta.34 → 0.118.0-beta.15
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-DDAyL-4q.js → Agent-D8YrsP52.js} +15 -11
- package/dist/_chunks/Agent-D8YrsP52.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-D58uGMVJ.js → PkStreamingMarkdown--CcBvs19.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-D58uGMVJ.js.map → PkStreamingMarkdown--CcBvs19.js.map} +1 -1
- package/dist/_chunks/{PkToolEditSpreadsheet-y3S5O_ld.js → PkToolEditSpreadsheet-5vHzEy4P.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-y3S5O_ld.js.map → PkToolEditSpreadsheet-5vHzEy4P.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DUD4RaA_.js → PkToolRequestGeolocation-Cj8hTfNF.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DUD4RaA_.js.map → PkToolRequestGeolocation-Cj8hTfNF.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-ryjE17UY.js → PkToolRequestOAuthConnection-BWxR1hV4.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-ryjE17UY.js.map → PkToolRequestOAuthConnection-BWxR1hV4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-CefFRN9d.js → PkToolShowArtifact-BVGN7hV2.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-CefFRN9d.js.map → PkToolShowArtifact-BVGN7hV2.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Q58lENmc.js → PkToolShowContactForm-Blrwqpl0.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-Q58lENmc.js.map → PkToolShowContactForm-Blrwqpl0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DCluttiO.js → PkToolShowForm-BpGHaN6x.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-DCluttiO.js.map → PkToolShowForm-BpGHaN6x.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DzU2_qQW.js → PkToolShowImageGallery-CIhIrIcY.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DzU2_qQW.js.map → PkToolShowImageGallery-CIhIrIcY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-0P7S5Ywo.js → PkToolShowProductList-BjWKnbyD.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-0P7S5Ywo.js.map → PkToolShowProductList-BjWKnbyD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-D0IpU1NU.js → PkToolShowSources-8c9RvGV1.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-D0IpU1NU.js.map → PkToolShowSources-8c9RvGV1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-0RVUEzK_.js → PkToolShowSuggestedReply-0KahUIlw.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-0RVUEzK_.js.map → PkToolShowSuggestedReply-0KahUIlw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-C5RfIsFU.js → PkToolShowVideo-_V_d-PDr.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-C5RfIsFU.js.map → PkToolShowVideo-_V_d-PDr.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D-sv52_o.js → PkToolShowWebPages-D55VEPjK.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-D-sv52_o.js.map → PkToolShowWebPages-D55VEPjK.js.map} +1 -1
- package/dist/_chunks/{browser-BJcsjj9S.js → browser-CuMi3Hhg.js} +796 -701
- package/dist/_chunks/browser-CuMi3Hhg.js.map +1 -0
- package/dist/_chunks/{chatImagePolicy-CiUR4uD1.js → chatImagePolicy-DXkhb-N_.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-CiUR4uD1.js.map → chatImagePolicy-DXkhb-N_.js.map} +1 -1
- package/dist/_chunks/{markdown-lpamC2tL.js → markdown-c59ir6tw.js} +4 -3
- package/dist/_chunks/markdown-c59ir6tw.js.map +1 -0
- package/dist/ai-elements.es.js +235 -141
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.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-CV5O0I7I.js +758 -0
- package/dist-vue/_chunks/{Agent-Bd_4UVe4.js.map → Agent-CV5O0I7I.js.map} +1 -1
- package/dist-vue/_chunks/{Document-BrMThi12.js → Document-eXkZraWr.js} +214 -213
- package/dist-vue/_chunks/Document-eXkZraWr.js.map +1 -0
- package/dist-vue/_chunks/Media-C6RS-s98.js +139 -0
- package/dist-vue/_chunks/Media-C6RS-s98.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-EnNiOHfT.js → PkChatbot-D9lPQjYZ.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-EnNiOHfT.js.map → PkChatbot-D9lPQjYZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-DaMi8miP.js → PkChatbotAuth-BMLLTSwK.js} +78 -78
- package/dist-vue/_chunks/{PkChatbotAuth-DaMi8miP.js.map → PkChatbotAuth-BMLLTSwK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-CeLapjG_.js → PkChatbotEmptyState-CNLDbDVS.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CeLapjG_.js.map → PkChatbotEmptyState-CNLDbDVS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BBjQEC_J.js → PkChatbotFeedbackForm-CMFXjoKR.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BBjQEC_J.js.map → PkChatbotFeedbackForm-CMFXjoKR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-Chu3tBbe.js → PkChatbotInput-Cf1iqwkL.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-Chu3tBbe.js.map → PkChatbotInput-Cf1iqwkL.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-B2_Tpjk6.js → PkChatbotMessages-BPCZaW9I.js} +29 -29
- package/dist-vue/_chunks/{PkChatbotMessages-B2_Tpjk6.js.map → PkChatbotMessages-BPCZaW9I.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-BMRSMjrw.js → PkChatbotStepPayload-CShP2HwK.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-BMRSMjrw.js.map → PkChatbotStepPayload-CShP2HwK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbAFKTSl.js → PkChatbotStepToolDetail-Dhi60cJt.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbAFKTSl.js.map → PkChatbotStepToolDetail-Dhi60cJt.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CcXw6JiJ.js → PkChatbotSteps-CW13WtvP.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CcXw6JiJ.js.map → PkChatbotSteps-CW13WtvP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-eXFjwNkz.js → PkChatbotViewChat-DyEDdBwU.js} +205 -198
- package/dist-vue/_chunks/PkChatbotViewChat-DyEDdBwU.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-uaKc5XAv.js → PkChatbotViewConversations-VpZ-zYTF.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-uaKc5XAv.js.map → PkChatbotViewConversations-VpZ-zYTF.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-53zY5v4R.js → PkChatbotViewFiles-ByZ8Wy2A.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-53zY5v4R.js.map → PkChatbotViewFiles-ByZ8Wy2A.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-tUMdwSR1.js → PkChatbotViewProfile-BXehkAop.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-tUMdwSR1.js.map → PkChatbotViewProfile-BXehkAop.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-BEya63gY.js → PkStreamingMarkdown-BBu6Z82G.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-BEya63gY.js.map → PkStreamingMarkdown-BBu6Z82G.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Bl6jujR0.js → PkToolEditSpreadsheet-COhUFZGD.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Bl6jujR0.js.map → PkToolEditSpreadsheet-COhUFZGD.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Dh2GZF9r.js → PkToolRequestGeolocation-VZ6TUHwA.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Dh2GZF9r.js.map → PkToolRequestGeolocation-VZ6TUHwA.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CsVjz0dA.js → PkToolRequestOAuthConnection-LMTQMCU3.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CsVjz0dA.js.map → PkToolRequestOAuthConnection-LMTQMCU3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-DC1baqls.js → PkToolShowArtifact-Ciq5bmlS.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-DC1baqls.js.map → PkToolShowArtifact-Ciq5bmlS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BXwBUTG-.js → PkToolShowContactForm-BufNZX42.js} +8 -8
- package/dist-vue/_chunks/{PkToolShowContactForm-BXwBUTG-.js.map → PkToolShowContactForm-BufNZX42.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CHPPJjrY.js → PkToolShowDiagram-daSyNcr9.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CHPPJjrY.js.map → PkToolShowDiagram-daSyNcr9.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BiAd1nVG.js → PkToolShowForm-DdyPbM6u.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-BiAd1nVG.js.map → PkToolShowForm-DdyPbM6u.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-BkvHwtdK.js → PkToolShowImageGallery-BTEr7g8b.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-BkvHwtdK.js.map → PkToolShowImageGallery-BTEr7g8b.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-C8ynmJl_.js → PkToolShowProductList-TWwOQW0f.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-C8ynmJl_.js.map → PkToolShowProductList-TWwOQW0f.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DgjeP2WK.js → PkToolShowSources-CK30aUfr.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-DgjeP2WK.js.map → PkToolShowSources-CK30aUfr.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cvfzecie.js → PkToolShowSuggestedReply-TNaSN94U.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cvfzecie.js.map → PkToolShowSuggestedReply-TNaSN94U.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-BMBG6A9a.js → PkToolShowVideo-CY3LSfda.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-BMBG6A9a.js.map → PkToolShowVideo-CY3LSfda.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-B64pZeYb.js → PkToolShowWebPages-Bjyfu3SU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-B64pZeYb.js.map → PkToolShowWebPages-Bjyfu3SU.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js → createChatbotApiClient-C0_uDob8.js} +56 -53
- package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js.map → createChatbotApiClient-C0_uDob8.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-DWf6im7k.js → index.es-C1u3kP7i.js} +14 -14
- package/dist-vue/_chunks/{index.es-DWf6im7k.js.map → index.es-C1u3kP7i.js.map} +1 -1
- package/dist-vue/_chunks/{schemas-Bt5eFdV0.js → schemas-Bu1lick6.js} +213 -204
- package/dist-vue/_chunks/schemas-Bu1lick6.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-Dmxnn4xV.js → useChatbotStore-1mq1FznN.js} +22 -22
- package/dist-vue/_chunks/useChatbotStore-1mq1FznN.js.map +1 -0
- package/dist-vue/_chunks/{utils-CGb6Qc_9.js → utils-BFoe95R4.js} +2 -2
- package/dist-vue/_chunks/{utils-CGb6Qc_9.js.map → utils-BFoe95R4.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +87 -3
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3423 -3406
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/components/src/chat/useWakeupWatch.d.ts +5 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Document.d.ts +16 -8
- package/dist-vue/packages/models/src/schema/Media.d.ts +18 -0
- package/dist-vue/packages/models/src/schema/Notification.d.ts +94 -0
- package/package.json +1 -1
- package/dist/_chunks/Agent-DDAyL-4q.js.map +0 -1
- package/dist/_chunks/browser-BJcsjj9S.js.map +0 -1
- package/dist/_chunks/markdown-lpamC2tL.js.map +0 -1
- package/dist-vue/_chunks/Agent-Bd_4UVe4.js +0 -758
- package/dist-vue/_chunks/Document-BrMThi12.js.map +0 -1
- package/dist-vue/_chunks/Media-Bzv3zEWR.js +0 -135
- package/dist-vue/_chunks/Media-Bzv3zEWR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-eXFjwNkz.js.map +0 -1
- package/dist-vue/_chunks/schemas-Bt5eFdV0.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-Dmxnn4xV.js.map +0 -1
package/dist/ai-elements.es.js
CHANGED
|
@@ -3,9 +3,9 @@ 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
|
|
|
3
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 j, O as M, P as le, R as ue, S as N, St as P, T as de, Tt as fe, X as F, Z as pe, _ as I, _t as me, b as L, bt as R, ct as z, d as B, dt as he, ft as ge, g as V, gt as _e, h as H, it as U, j as ve, k as ye, l as be, lt as xe, m as W, mt as G, n as Se, nt as Ce, ot as we, q as Te, r as Ee, rt as De, st as Oe, t as K, u as ke, ut as Ae, v as q, vt as je, w as Me, wt as Ne, 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
|
-
import { A as We, C as Ge, D as Ke, E as qe, M as Y, N as Je, O as Ye, S as Xe, T as Ze, _ as Qe, a as $e, b as et, d as tt, f as nt, g as rt, h as it, i as at, j as ot, k as st, m as ct, n as lt, o as ut, p as dt, r as ft, s as pt, t as mt, u as ht, v as gt, w as _t, x as vt, y as yt } from "./_chunks/PkStreamingMarkdown
|
|
7
|
-
import { _ as bt, a as xt, b as St, c as Ct, f as wt, g as Tt, h as Et, i as Dt, l as Ot, n as kt, o as At, p as jt, r as Mt, t as Nt, u as Pt, v as Ft } from "./_chunks/Agent-
|
|
8
|
-
import { a as It, i as Lt, n as Rt, t as zt } from "./_chunks/markdown-
|
|
6
|
+
import { A as We, C as Ge, D as Ke, E as qe, M as Y, N as Je, O as Ye, S as Xe, T as Ze, _ as Qe, a as $e, b as et, d as tt, f as nt, g as rt, h as it, i as at, j as ot, k as st, m as ct, n as lt, o as ut, p as dt, r as ft, s as pt, t as mt, u as ht, v as gt, w as _t, x as vt, y as yt } from "./_chunks/PkStreamingMarkdown--CcBvs19.js";
|
|
7
|
+
import { _ as bt, a as xt, b as St, c as Ct, f as wt, g as Tt, h as Et, i as Dt, l as Ot, n as kt, o as At, p as jt, r as Mt, t as Nt, u as Pt, v as Ft } from "./_chunks/Agent-D8YrsP52.js";
|
|
8
|
+
import { a as It, i as Lt, n as Rt, t as zt } from "./_chunks/markdown-c59ir6tw.js";
|
|
9
9
|
import { t as Bt } from "./_chunks/src-Dt4rhhPN.js";
|
|
10
10
|
import { t as Vt } from "./_chunks/text-DbSEK8si.js";
|
|
11
11
|
import { r as Ht, t as Ut } from "./_chunks/url-validation-9DstIfq2.js";
|
|
@@ -15,7 +15,7 @@ import { n as rn, r as an, t as on } from "./_chunks/index.es-BrsciU25.js";
|
|
|
15
15
|
import { t as sn } from "./_chunks/useShortUrlResolver-qFJHKHwE.js";
|
|
16
16
|
import { t as cn } from "./_chunks/useImageFallback-DTJ6uHcF.js";
|
|
17
17
|
import { t as ln } from "./_chunks/_plugin-vue_export-helper-B3ysoDQm.js";
|
|
18
|
-
import { t as un } from "./_chunks/chatImagePolicy-
|
|
18
|
+
import { t as un } from "./_chunks/chatImagePolicy-DXkhb-N_.js";
|
|
19
19
|
import { t as dn } from "./_chunks/PkChatbotFilePreview-DAhN8TyL.js";
|
|
20
20
|
//#region ../../node_modules/.pnpm/pinia@4.1.0_@vue+devtools-api@8.2.1_typescript@6.0.3_vue@3.5.44_typescript@6.0.3_/node_modules/pinia/dist/pinia.js
|
|
21
21
|
M(), U();
|
|
@@ -942,6 +942,7 @@ var Gn = {
|
|
|
942
942
|
"gateway-disabled": "Serve il gateway AI della piattaforma, che questa organizzazione non usa",
|
|
943
943
|
"model-unavailable": "Il modello scelto per i documenti non è attivo per questa organizzazione",
|
|
944
944
|
"no-model": "Nessun modello impostato per l'AI dei documenti",
|
|
945
|
+
"page-too-large": "La pagina è troppo pesante per essere letta, anche senza script e grafica incorporata",
|
|
945
946
|
"source-status": "La pagina di origine ha risposto HTTP {status}",
|
|
946
947
|
"spreadsheet-macros": "La cartella di lavoro contiene macro: salvala come .xlsx senza macro",
|
|
947
948
|
"spreadsheet-no-table": "Nessun foglio ha una riga di intestazione nelle prime trenta righe, quindi non c'è una tabella da interrogare",
|
|
@@ -1477,6 +1478,37 @@ var Gn = {
|
|
|
1477
1478
|
description: "Il tuo nome, la tua immagine e come vedi l'app.",
|
|
1478
1479
|
pictureHint: "PNG o JPG."
|
|
1479
1480
|
},
|
|
1481
|
+
notifications: {
|
|
1482
|
+
title: "Notifiche",
|
|
1483
|
+
description: "Quali avvisi ricevi, nell'app e per email.",
|
|
1484
|
+
groups: "Tipi di notifica",
|
|
1485
|
+
alwaysOn: "Gli avvisi sulla sicurezza dell'account e i messaggi degli amministratori arrivano sempre.",
|
|
1486
|
+
loadFailed: "Non è stato possibile leggere le tue preferenze.",
|
|
1487
|
+
channel: {
|
|
1488
|
+
inApp: "App",
|
|
1489
|
+
email: "Email"
|
|
1490
|
+
},
|
|
1491
|
+
agent_replies: {
|
|
1492
|
+
title: "Risposte degli agenti",
|
|
1493
|
+
summary: "Quando un agente a cui hai chiesto di ricontrollare ha una novità per te."
|
|
1494
|
+
},
|
|
1495
|
+
documents: {
|
|
1496
|
+
title: "Documenti e fonti",
|
|
1497
|
+
summary: "I documenti che non si elaborano e le pagine tolte da una fonte sincronizzata."
|
|
1498
|
+
},
|
|
1499
|
+
integrations: {
|
|
1500
|
+
title: "Integrazioni e chiavi",
|
|
1501
|
+
summary: "Un accesso a un'integrazione chiuso da un amministratore e le API key in scadenza."
|
|
1502
|
+
},
|
|
1503
|
+
flagged_conversations: {
|
|
1504
|
+
title: "Conversazioni segnalate",
|
|
1505
|
+
summary: "Le conversazioni che l'analisi ha segnalato o bloccato."
|
|
1506
|
+
},
|
|
1507
|
+
usage_limits: {
|
|
1508
|
+
title: "Limiti di utilizzo",
|
|
1509
|
+
summary: "Quando l'organizzazione esaurisce le esecuzioni automatiche del giorno."
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1480
1512
|
security: {
|
|
1481
1513
|
title: "Sicurezza",
|
|
1482
1514
|
description: "Come entri e da dove sei collegato.",
|
|
@@ -1848,6 +1880,16 @@ var Gn = {
|
|
|
1848
1880
|
dailyForecast: "Previsioni giornaliere",
|
|
1849
1881
|
feelsLike: "Percepita",
|
|
1850
1882
|
today: "Oggi"
|
|
1883
|
+
},
|
|
1884
|
+
unsubscribe: {
|
|
1885
|
+
title: "Disiscriviti dalle mail",
|
|
1886
|
+
message: "Smetti di ricevere per email le notifiche di «{group}». Quelle nell'app non cambiano.",
|
|
1887
|
+
action: "Disiscriviti",
|
|
1888
|
+
doneTitle: "Fatto",
|
|
1889
|
+
doneMessage: "Non riceverai più per email le notifiche di «{group}». Puoi riaccenderle quando vuoi dal tuo profilo.",
|
|
1890
|
+
invalidTitle: "Link non valido",
|
|
1891
|
+
invalidMessage: "Questo link non vale più. Puoi spegnere le mail dal tuo profilo, nella sezione Notifiche.",
|
|
1892
|
+
openSettings: "Apri le preferenze di notifica"
|
|
1851
1893
|
}
|
|
1852
1894
|
}, Kn = {
|
|
1853
1895
|
action: {
|
|
@@ -2500,6 +2542,7 @@ var Gn = {
|
|
|
2500
2542
|
"gateway-disabled": "It needs the platform AI gateway, which this organization does not use",
|
|
2501
2543
|
"model-unavailable": "The model chosen for documents is not switched on for this organization",
|
|
2502
2544
|
"no-model": "No model is set for the AI of documents",
|
|
2545
|
+
"page-too-large": "The page is too heavy to be read, even without its scripts and inline graphics",
|
|
2503
2546
|
"source-status": "The source page answered HTTP {status}",
|
|
2504
2547
|
"spreadsheet-macros": "The workbook contains macros: save it as an .xlsx without macros",
|
|
2505
2548
|
"spreadsheet-no-table": "No sheet has a header row in its first thirty rows, so there is no table to query",
|
|
@@ -3035,6 +3078,37 @@ var Gn = {
|
|
|
3035
3078
|
description: "Your name and picture, and how the app looks to you.",
|
|
3036
3079
|
pictureHint: "PNG or JPG."
|
|
3037
3080
|
},
|
|
3081
|
+
notifications: {
|
|
3082
|
+
title: "Notifications",
|
|
3083
|
+
description: "Which notices you get, in the app and by email.",
|
|
3084
|
+
groups: "Notification types",
|
|
3085
|
+
alwaysOn: "Account security notices and messages from administrators always arrive.",
|
|
3086
|
+
loadFailed: "Your preferences could not be read.",
|
|
3087
|
+
channel: {
|
|
3088
|
+
inApp: "App",
|
|
3089
|
+
email: "Email"
|
|
3090
|
+
},
|
|
3091
|
+
agent_replies: {
|
|
3092
|
+
title: "Agent replies",
|
|
3093
|
+
summary: "When an agent you asked to check again has news for you."
|
|
3094
|
+
},
|
|
3095
|
+
documents: {
|
|
3096
|
+
title: "Documents and sources",
|
|
3097
|
+
summary: "Documents that fail to process, and pages removed from a synced source."
|
|
3098
|
+
},
|
|
3099
|
+
integrations: {
|
|
3100
|
+
title: "Integrations and keys",
|
|
3101
|
+
summary: "An integration sign-in ended by an administrator, and API keys about to expire."
|
|
3102
|
+
},
|
|
3103
|
+
flagged_conversations: {
|
|
3104
|
+
title: "Flagged conversations",
|
|
3105
|
+
summary: "Conversations the analysis flagged or blocked."
|
|
3106
|
+
},
|
|
3107
|
+
usage_limits: {
|
|
3108
|
+
title: "Usage limits",
|
|
3109
|
+
summary: "When the organization uses up the day's automatic runs."
|
|
3110
|
+
}
|
|
3111
|
+
},
|
|
3038
3112
|
security: {
|
|
3039
3113
|
title: "Security",
|
|
3040
3114
|
description: "How you sign in, and where you are signed in.",
|
|
@@ -3406,6 +3480,16 @@ var Gn = {
|
|
|
3406
3480
|
dailyForecast: "Daily forecast",
|
|
3407
3481
|
feelsLike: "Feels like",
|
|
3408
3482
|
today: "Today"
|
|
3483
|
+
},
|
|
3484
|
+
unsubscribe: {
|
|
3485
|
+
title: "Unsubscribe from these emails",
|
|
3486
|
+
message: "Stop getting “{group}” notifications by email. The ones in the app do not change.",
|
|
3487
|
+
action: "Unsubscribe",
|
|
3488
|
+
doneTitle: "Done",
|
|
3489
|
+
doneMessage: "You will no longer get “{group}” notifications by email. You can turn them back on from your profile at any time.",
|
|
3490
|
+
invalidTitle: "Link not valid",
|
|
3491
|
+
invalidMessage: "This link no longer works. You can turn the emails off from your profile, in the Notifications section.",
|
|
3492
|
+
openSettings: "Open notification settings"
|
|
3409
3493
|
}
|
|
3410
3494
|
}, qn = {
|
|
3411
3495
|
invalidType: "Expected {expected}, received {received}",
|
|
@@ -4339,7 +4423,7 @@ function ti(e) {
|
|
|
4339
4423
|
};
|
|
4340
4424
|
}
|
|
4341
4425
|
function ni(e) {
|
|
4342
|
-
$r || ($r = !0, import("./_chunks/browser-
|
|
4426
|
+
$r || ($r = !0, import("./_chunks/browser-CuMi3Hhg.js").then(({ initializeTelemetryBrowser: e }) => {
|
|
4343
4427
|
Qr = e({
|
|
4344
4428
|
serviceName: "web-component",
|
|
4345
4429
|
environment: "production",
|
|
@@ -5917,6 +6001,9 @@ function Vs(e) {
|
|
|
5917
6001
|
async stopChatWakeup(e, t) {
|
|
5918
6002
|
return i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}/wakeup`, { method: "DELETE" });
|
|
5919
6003
|
},
|
|
6004
|
+
async markChatWakeupPresence(e, t) {
|
|
6005
|
+
await i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}/wakeup/presence`, { method: "PUT" }, "void");
|
|
6006
|
+
},
|
|
5920
6007
|
async updateChatTitle(e, t, n) {
|
|
5921
6008
|
return zs(await i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}`, {
|
|
5922
6009
|
method: "PATCH",
|
|
@@ -11768,25 +11855,25 @@ var sm = ["datetime"], cm = 6e4, lm = /* @__PURE__ */ w({
|
|
|
11768
11855
|
//#region ../../packages/components/src/chat/toolComponentMap.ts
|
|
11769
11856
|
M();
|
|
11770
11857
|
var um = {
|
|
11771
|
-
requestOAuthConnection: N(() => import("./_chunks/PkToolRequestOAuthConnection-
|
|
11772
|
-
showArtifact: N(() => import("./_chunks/PkToolShowArtifact-
|
|
11858
|
+
requestOAuthConnection: N(() => import("./_chunks/PkToolRequestOAuthConnection-BWxR1hV4.js")),
|
|
11859
|
+
showArtifact: N(() => import("./_chunks/PkToolShowArtifact-BVGN7hV2.js")),
|
|
11773
11860
|
showCalendarEvent: N(() => import("./_chunks/PkToolShowCalendarEvent-Bp_yv8S7.js")),
|
|
11774
11861
|
showComparison: N(() => import("./_chunks/PkToolShowComparison-Bvd4f4tJ.js")),
|
|
11775
|
-
showContactForm: N(() => import("./_chunks/PkToolShowContactForm-
|
|
11862
|
+
showContactForm: N(() => import("./_chunks/PkToolShowContactForm-Blrwqpl0.js")),
|
|
11776
11863
|
showDiagram: N(() => import("./_chunks/PkToolShowDiagram-C-pNbC9n.js")),
|
|
11777
11864
|
showEmail: N(() => import("./_chunks/PkToolShowEmail-BKel_O29.js")),
|
|
11778
|
-
showImageGallery: N(() => import("./_chunks/PkToolShowImageGallery-
|
|
11865
|
+
showImageGallery: N(() => import("./_chunks/PkToolShowImageGallery-CIhIrIcY.js")),
|
|
11779
11866
|
showLocation: N(() => import("./_chunks/PkToolShowLocation-78C7jFiV.js")),
|
|
11780
11867
|
showMessage: N(() => import("./_chunks/PkToolShowMessage-BScy-w4J.js")),
|
|
11781
|
-
showForm: N(() => import("./_chunks/PkToolShowForm-
|
|
11782
|
-
showMultipleChoice: N(() => import("./_chunks/PkToolShowForm-
|
|
11783
|
-
showProductList: N(() => import("./_chunks/PkToolShowProductList-
|
|
11868
|
+
showForm: N(() => import("./_chunks/PkToolShowForm-BpGHaN6x.js")),
|
|
11869
|
+
showMultipleChoice: N(() => import("./_chunks/PkToolShowForm-BpGHaN6x.js")),
|
|
11870
|
+
showProductList: N(() => import("./_chunks/PkToolShowProductList-BjWKnbyD.js")),
|
|
11784
11871
|
showQrCode: N(() => import("./_chunks/PkToolShowQrCode-B70jPHDw.js")),
|
|
11785
|
-
showSources: N(() => import("./_chunks/PkToolShowSources-
|
|
11786
|
-
showSuggestedReply: N(() => import("./_chunks/PkToolShowSuggestedReply-
|
|
11787
|
-
showVideo: N(() => import("./_chunks/PkToolShowVideo-
|
|
11872
|
+
showSources: N(() => import("./_chunks/PkToolShowSources-8c9RvGV1.js")),
|
|
11873
|
+
showSuggestedReply: N(() => import("./_chunks/PkToolShowSuggestedReply-0KahUIlw.js")),
|
|
11874
|
+
showVideo: N(() => import("./_chunks/PkToolShowVideo-_V_d-PDr.js")),
|
|
11788
11875
|
showWeather: N(() => import("./_chunks/PkToolShowWeather-BFOlS1AS.js")),
|
|
11789
|
-
showWebPages: N(() => import("./_chunks/PkToolShowWebPages-
|
|
11876
|
+
showWebPages: N(() => import("./_chunks/PkToolShowWebPages-D55VEPjK.js"))
|
|
11790
11877
|
};
|
|
11791
11878
|
//#endregion
|
|
11792
11879
|
//#region ../../packages/components/src/chat/PkToolApprovalPreviewMessage.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -13905,8 +13992,8 @@ var Ag = 4e3, jg = [
|
|
|
13905
13992
|
3e3,
|
|
13906
13993
|
5e3,
|
|
13907
13994
|
1e4
|
|
13908
|
-
], Mg = 12e4;
|
|
13909
|
-
function
|
|
13995
|
+
], Mg = 12e4, Ng = 3e4;
|
|
13996
|
+
function Pg(e) {
|
|
13910
13997
|
let t = G(null), n = G(!1), r, i = !1, a = () => {
|
|
13911
13998
|
clearTimeout(r), r = void 0;
|
|
13912
13999
|
}, o = (e, t) => {
|
|
@@ -13943,8 +14030,15 @@ function Ng(e) {
|
|
|
13943
14030
|
function d() {
|
|
13944
14031
|
a(), t.value = null;
|
|
13945
14032
|
}
|
|
13946
|
-
|
|
13947
|
-
|
|
14033
|
+
let f;
|
|
14034
|
+
function p() {
|
|
14035
|
+
t.value && document.visibilityState === "visible" && e.apiClient().markChatWakeupPresence(e.agentId(), e.chatId()).catch(() => void 0);
|
|
14036
|
+
}
|
|
14037
|
+
let m = () => p();
|
|
14038
|
+
return document.addEventListener("visibilitychange", m), F(() => t.value?.wakeId, (e) => {
|
|
14039
|
+
clearInterval(f), f = void 0, e && !i && (p(), f = setInterval(p, Ng));
|
|
14040
|
+
}), le(() => {
|
|
14041
|
+
i = !0, a(), clearInterval(f), document.removeEventListener("visibilitychange", m);
|
|
13948
14042
|
}), {
|
|
13949
14043
|
pendingWakeup: t,
|
|
13950
14044
|
isStopping: n,
|
|
@@ -13956,16 +14050,16 @@ function Ng(e) {
|
|
|
13956
14050
|
//#endregion
|
|
13957
14051
|
//#region ../../packages/components/src/chat/PkChatbotViewChat.vue?vue&type=script&setup=true&lang.ts
|
|
13958
14052
|
M(), U(), Ee(), T();
|
|
13959
|
-
var
|
|
14053
|
+
var Fg = { class: "pk-chatbot-view-chat__input-stage" }, Ig = {
|
|
13960
14054
|
key: 1,
|
|
13961
14055
|
class: "p-md border-t border-surface-3 text-center text-12 text-danger bg-surface-danger"
|
|
13962
|
-
},
|
|
14056
|
+
}, Lg = { class: "pk-chatbot-view-chat__agent-chip" }, Rg = {
|
|
13963
14057
|
key: 0,
|
|
13964
14058
|
class: "pk-chatbot-view-chat__agent-chip-name"
|
|
13965
|
-
},
|
|
14059
|
+
}, zg = {
|
|
13966
14060
|
key: 0,
|
|
13967
14061
|
class: "pk-chatbot-view-chat__drop-overlay"
|
|
13968
|
-
},
|
|
14062
|
+
}, Bg = 3e3, Vg = 6e4, Hg = 3e5, Ug = 6e5, Wg = /*#__PURE__*/ ln(/* @__PURE__ */ w({
|
|
13969
14063
|
__name: "PkChatbotViewChat",
|
|
13970
14064
|
props: {
|
|
13971
14065
|
agentId: { type: String },
|
|
@@ -13974,7 +14068,7 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
13974
14068
|
},
|
|
13975
14069
|
emits: ["show-info", "revise"],
|
|
13976
14070
|
setup(e, { emit: t }) {
|
|
13977
|
-
let n = N(() => import("./_chunks/PkToolShowForm-
|
|
14071
|
+
let n = N(() => import("./_chunks/PkToolShowForm-BpGHaN6x.js")), r = N(() => import("./_chunks/PkToolShowContactForm-Blrwqpl0.js")), i = N(() => import("./_chunks/PkToolShowSuggestedReply-0KahUIlw.js")), a = N(() => import("./_chunks/PkToolShowSources-8c9RvGV1.js")), o = N(() => import("./_chunks/PkToolRequestGeolocation-Cj8hTfNF.js")), s = N(() => import("./_chunks/PkToolRequestOAuthConnection-BWxR1hV4.js")), c = N(() => import("./_chunks/PkToolShowLocation-78C7jFiV.js")), l = N(() => import("./_chunks/PkToolShowDiagram-C-pNbC9n.js")), u = N(() => import("./_chunks/PkToolEditSpreadsheet-5vHzEy4P.js")), d = e, f = t, p = jd(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: j, isDark: M } = Wn(p), ue = (e) => j.value.getMediaDownloadUrl(d.agentId, p.localChatId, e), { handleSubmit: de, stopGeneration: fe, regenerate: pe, onUpvote: me, onDownvote: L, onFeedback: R, onFeedbackSubmit: B, onLeadSubmit: he, startNewChat: ge, addToolOutput: _e, addToolApprovalResponse: U, handleFileSelect: ve, clearFileLimitError: ye, refreshMessages: be, appendMessage: xe } = p, { t: Se } = ze({ useScope: "global" }), Ce = W(() => {
|
|
13978
14072
|
let e = ce.value;
|
|
13979
14073
|
if (e) return e.reason === "per-chat" ? Se("message.fileLimitPerChat", { max: e.max }) : Se("message.fileLimitPerMessage", { max: e.max });
|
|
13980
14074
|
}), we = rn(() => m.value?.dismissableNotice), Te = W(() => y.value.some((e) => e.role === "user")), Ee = W(() => d.modifier === "fullscreen" && !Te.value), De = Ud(m, () => d.userName), Oe = k("chatViewEl"), ke = async (e) => (await j.value.expandSourceContext(d.agentId, e.documentId, e.chunkIndex)).content, Ae = async (e) => {
|
|
@@ -14009,12 +14103,12 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
14009
14103
|
}
|
|
14010
14104
|
if (Pe) return;
|
|
14011
14105
|
if (e === "caught-up" && (Ie.value = !1), Y.isActive.value) {
|
|
14012
|
-
Be = void 0, Ve = !1, He = 0, Ge(
|
|
14106
|
+
Be = void 0, Ve = !1, He = 0, Ge(Bg);
|
|
14013
14107
|
return;
|
|
14014
14108
|
}
|
|
14015
14109
|
Be === void 0 && (Be = Date.now(), Ve = !!Y.error.value);
|
|
14016
14110
|
let t = Date.now() - Be;
|
|
14017
|
-
if (e === "caught-up" && t >= (Ve ?
|
|
14111
|
+
if (e === "caught-up" && t >= (Ve ? Hg : Vg) || t >= Ug) {
|
|
14018
14112
|
We();
|
|
14019
14113
|
return;
|
|
14020
14114
|
}
|
|
@@ -14053,7 +14147,7 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
14053
14147
|
let e = Y.error.value;
|
|
14054
14148
|
if (e) return /took too long/i.test(e) ? Se("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? Se("message.voiceNoAnswer") : Se("message.voiceInterrupted");
|
|
14055
14149
|
}), Ze = W(() => Y.isSpeaking.value ? "output" : "input"), Qe = () => Y.readLevel(Ze.value), $e = () => Y.readSpectrum(Ze.value), et = async () => {
|
|
14056
|
-
Me.value = !1, await Y.start(), Y.isActive.value && (We(), Ge(
|
|
14150
|
+
Me.value = !1, await Y.start(), Y.isActive.value && (We(), Ge(Bg));
|
|
14057
14151
|
}, tt = async () => {
|
|
14058
14152
|
Ie.value = !1, await Y.stop(), !Pe && qe(0);
|
|
14059
14153
|
}, rt = () => {
|
|
@@ -14097,7 +14191,7 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
14097
14191
|
le(() => {
|
|
14098
14192
|
Pe = !0, We();
|
|
14099
14193
|
});
|
|
14100
|
-
let { pendingWakeup: _t, isStopping: vt, check: yt, reset: bt, stop: xt } =
|
|
14194
|
+
let { pendingWakeup: _t, isStopping: vt, check: yt, reset: bt, stop: xt } = Pg({
|
|
14101
14195
|
agentId: () => d.agentId,
|
|
14102
14196
|
chatId: () => p.localChatId,
|
|
14103
14197
|
apiClient: () => j.value,
|
|
@@ -14289,7 +14383,7 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
14289
14383
|
]))]),
|
|
14290
14384
|
_: 1
|
|
14291
14385
|
}),
|
|
14292
|
-
H("div",
|
|
14386
|
+
H("div", Fg, [
|
|
14293
14387
|
J(K, { name: "pk-chatbot-view-chat-fade" }, {
|
|
14294
14388
|
default: C(() => [Ee.value ? (A(), V(jp, {
|
|
14295
14389
|
key: 0,
|
|
@@ -14308,7 +14402,7 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
14308
14402
|
"stopping",
|
|
14309
14403
|
"onStop"
|
|
14310
14404
|
])) : I("", !0),
|
|
14311
|
-
P(ae) ? (A(), q("div",
|
|
14405
|
+
P(ae) ? (A(), q("div", Ig, E(P(Se)("message.chatErrorConversationBlocked")), 1)) : Ye.value === "idle" ? (A(), V(fg, {
|
|
14312
14406
|
key: 3,
|
|
14313
14407
|
modelValue: P(re),
|
|
14314
14408
|
"onUpdate:modelValue": g[4] ||= (e) => z(re) ? re.value = e : null,
|
|
@@ -14329,12 +14423,12 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
14329
14423
|
onVoiceStart: et
|
|
14330
14424
|
}, Fe({ _: 2 }, [e.modifier === "fullscreen" ? {
|
|
14331
14425
|
name: "prepend",
|
|
14332
|
-
fn: C(() => [H("span",
|
|
14426
|
+
fn: C(() => [H("span", Lg, [J(Ep, {
|
|
14333
14427
|
modifiers: "surface",
|
|
14334
14428
|
class: "pk-chatbot-view-chat__agent-chip-avatar",
|
|
14335
14429
|
"img-src": P(m)?.logo,
|
|
14336
14430
|
name: P(p).name
|
|
14337
|
-
}, null, 8, ["img-src", "name"]), P(p).name ? (A(), q("strong",
|
|
14431
|
+
}, null, 8, ["img-src", "name"]), P(p).name ? (A(), q("strong", Rg, E(P(p).name), 1)) : I("", !0)])]),
|
|
14338
14432
|
key: "0"
|
|
14339
14433
|
} : void 0]), 1032, [
|
|
14340
14434
|
"modelValue",
|
|
@@ -14376,7 +14470,7 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
14376
14470
|
]))
|
|
14377
14471
|
]),
|
|
14378
14472
|
J(K, null, {
|
|
14379
|
-
default: C(() => [P(je) && P(h)?.enabled ? (A(), q("div",
|
|
14473
|
+
default: C(() => [P(je) && P(h)?.enabled ? (A(), q("div", zg, [J(k, {
|
|
14380
14474
|
name: "ri:upload-cloud-2-line",
|
|
14381
14475
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
14382
14476
|
}), H("span", null, E(P(Se)("action.dropFile")), 1)])) : I("", !0)]),
|
|
@@ -14389,23 +14483,23 @@ var Pg = { class: "pk-chatbot-view-chat__input-stage" }, Fg = {
|
|
|
14389
14483
|
//#endregion
|
|
14390
14484
|
//#region ../../packages/components/src/chat/PkChatbotViewConversations.vue?vue&type=script&setup=true&lang.ts
|
|
14391
14485
|
M(), U(), T(), Ee();
|
|
14392
|
-
var
|
|
14486
|
+
var Gg = { class: "flex flex-col flex-1 min-h-0 relative" }, Kg = {
|
|
14393
14487
|
key: 0,
|
|
14394
14488
|
class: "vv-item-group vv-item-group--fill"
|
|
14395
|
-
},
|
|
14489
|
+
}, qg = { class: "vv-item-group__list" }, Jg = { class: "vv-item__entry" }, Yg = { class: "flex flex-col gap-6 flex-1 min-w-0" }, Xg = {
|
|
14396
14490
|
key: 1,
|
|
14397
14491
|
class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
|
|
14398
|
-
},
|
|
14492
|
+
}, Zg = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, Qg = { class: "flex flex-col gap-4" }, $g = { class: "text-16 font-semibold text-word-1" }, e_ = { class: "text-14 text-word-3 leading-relaxed" }, t_ = {
|
|
14399
14493
|
key: 2,
|
|
14400
14494
|
class: "vv-item-group vv-item-group--fill"
|
|
14401
|
-
},
|
|
14495
|
+
}, n_ = { class: "vv-item-group__list overflow-y-auto pb-64 light-scrollbar" }, r_ = {
|
|
14402
14496
|
key: 0,
|
|
14403
14497
|
class: "flex flex-1 items-center gap-8 min-w-0 px-md py-12"
|
|
14404
|
-
},
|
|
14498
|
+
}, i_ = ["aria-current", "onClick"], a_ = { class: "min-w-0 flex-1" }, o_ = { class: "flex items-center gap-8" }, s_ = { class: "vv-item__title font-medium flex-1" }, c_ = { class: "text-12 text-word-4 line-clamp-2" }, l_ = { class: "vv-item__actions" }, u_ = {
|
|
14405
14499
|
key: 3,
|
|
14406
14500
|
class: "absolute bottom-0 left-0 right-0 flex flex-col items-center gap-4 px-16 pb-16 pt-32 pointer-events-none",
|
|
14407
14501
|
style: { background: "linear-gradient(to top, var(--color-surface) 55%, transparent)" }
|
|
14408
|
-
},
|
|
14502
|
+
}, d_ = /* @__PURE__ */ w({
|
|
14409
14503
|
__name: "PkChatbotViewConversations",
|
|
14410
14504
|
props: { agentId: { type: String } },
|
|
14411
14505
|
setup(e) {
|
|
@@ -14434,19 +14528,19 @@ var Wg = { class: "flex flex-col flex-1 min-h-0 relative" }, Gg = {
|
|
|
14434
14528
|
};
|
|
14435
14529
|
return (e, t) => {
|
|
14436
14530
|
let r = tn, o = en, s = Xt, l = Jt, u = Yt, p = nn;
|
|
14437
|
-
return A(), q("div",
|
|
14531
|
+
return A(), q("div", Gg, [P(a) && P(i).length === 0 ? (A(), q("div", Kg, [H("div", qg, [(A(), q(B, null, Le(5, (e) => H("div", {
|
|
14438
14532
|
key: e,
|
|
14439
14533
|
class: "vv-item vv-item--roomy vv-item--plain"
|
|
14440
|
-
}, [H("div",
|
|
14534
|
+
}, [H("div", Jg, [H("div", Yg, [
|
|
14441
14535
|
H("div", { class: Ne(["vv-skeleton h-16 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[5] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2),
|
|
14442
14536
|
t[6] ||= H("div", { class: "vv-skeleton h-12 rounded" }, [H("div", { class: "vv-skeleton__item" })], -1),
|
|
14443
14537
|
t[7] ||= H("div", { class: "vv-skeleton h-12 rounded w-160" }, [H("div", { class: "vv-skeleton__item" })], -1)
|
|
14444
|
-
])])])), 64))])])) : P(i).length === 0 ? (A(), q("div",
|
|
14445
|
-
H("div",
|
|
14538
|
+
])])])), 64))])])) : P(i).length === 0 ? (A(), q("div", Xg, [
|
|
14539
|
+
H("div", Zg, [J(r, {
|
|
14446
14540
|
name: "ri:chat-3-line",
|
|
14447
14541
|
class: "w-28 h-28 text-word-4"
|
|
14448
14542
|
})]),
|
|
14449
|
-
H("div",
|
|
14543
|
+
H("div", Qg, [H("strong", $g, E(P(n)("message.noConversations")), 1), H("span", e_, E(P(n)("message.noConversationsHint")), 1)]),
|
|
14450
14544
|
J(o, {
|
|
14451
14545
|
modifiers: "primary rounded",
|
|
14452
14546
|
icon: "ri:add-line",
|
|
@@ -14454,10 +14548,10 @@ var Wg = { class: "flex flex-col flex-1 min-h-0 relative" }, Gg = {
|
|
|
14454
14548
|
label: P(n)("action.startNewChat"),
|
|
14455
14549
|
onClick: t[0] ||= (e) => P(c)()
|
|
14456
14550
|
}, null, 8, ["label"])
|
|
14457
|
-
])) : (A(), q("div",
|
|
14551
|
+
])) : (A(), q("div", t_, [H("ul", n_, [(A(!0), q(B, null, Le(P(i), (e) => (A(), q("li", {
|
|
14458
14552
|
key: e.id,
|
|
14459
14553
|
class: Ne(["vv-item vv-item--roomy", { "vv-item--current": y(e) }])
|
|
14460
|
-
}, [P(d) === e.id ? (A(), q("div",
|
|
14554
|
+
}, [P(d) === e.id ? (A(), q("div", r_, [J(s, {
|
|
14461
14555
|
modelValue: P(f),
|
|
14462
14556
|
"onUpdate:modelValue": t[1] ||= (e) => z(f) ? f.value = e : null,
|
|
14463
14557
|
class: "flex-1 mb-0",
|
|
@@ -14491,10 +14585,10 @@ var Wg = { class: "flex flex-col flex-1 min-h-0 relative" }, Gg = {
|
|
|
14491
14585
|
class: "vv-item__entry",
|
|
14492
14586
|
"aria-current": y(e) ? "true" : void 0,
|
|
14493
14587
|
onClick: (t) => v(e.id)
|
|
14494
|
-
}, [H("div",
|
|
14588
|
+
}, [H("div", a_, [H("div", o_, [H("strong", s_, E(P(zt)(e.title) || b(e.messages, "assistant")), 1), J(lm, {
|
|
14495
14589
|
class: "text-word-4 text-smaller shrink-0",
|
|
14496
14590
|
date: e.lastMessageAt
|
|
14497
|
-
}, null, 8, ["date"])]), H("span",
|
|
14591
|
+
}, null, 8, ["date"])]), H("span", c_, E(P(zt)(e.summary) || b(e.messages, "user")), 1)])], 8, i_), H("div", l_, [J(p, ce({ ref_for: !0 }, {
|
|
14498
14592
|
placement: "bottom-end",
|
|
14499
14593
|
modifiers: "menu",
|
|
14500
14594
|
flip: !0,
|
|
@@ -14514,7 +14608,7 @@ var Wg = { class: "flex flex-col flex-1 min-h-0 relative" }, Gg = {
|
|
|
14514
14608
|
modifiers: "action-quiet-small"
|
|
14515
14609
|
}, null, 8, ["title"])]),
|
|
14516
14610
|
_: 2
|
|
14517
|
-
}, 1040)])], 64))], 2))), 128))])])), P(i).length > 0 ? (A(), q("div",
|
|
14611
|
+
}, 1040)])], 64))], 2))), 128))])])), P(i).length > 0 ? (A(), q("div", u_, [J(o, {
|
|
14518
14612
|
class: "text-14 pointer-events-auto",
|
|
14519
14613
|
modifiers: "primary rounded",
|
|
14520
14614
|
icon: "ri:add-line",
|
|
@@ -14540,16 +14634,16 @@ var Wg = { class: "flex flex-col flex-1 min-h-0 relative" }, Gg = {
|
|
|
14540
14634
|
//#endregion
|
|
14541
14635
|
//#region ../../packages/components/src/chat/PkChatbotViewFiles.vue?vue&type=script&setup=true&lang.ts
|
|
14542
14636
|
M(), U(), T();
|
|
14543
|
-
var
|
|
14637
|
+
var f_ = { class: "flex flex-col flex-1 min-h-0 relative" }, p_ = {
|
|
14544
14638
|
key: 0,
|
|
14545
14639
|
class: "vv-item-group vv-item-group--fill"
|
|
14546
|
-
},
|
|
14640
|
+
}, m_ = { class: "vv-item-group__list" }, h_ = { class: "vv-item__entry" }, g_ = { class: "flex flex-col gap-6 flex-1 min-w-0" }, __ = {
|
|
14547
14641
|
key: 1,
|
|
14548
14642
|
class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
|
|
14549
|
-
},
|
|
14643
|
+
}, v_ = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, y_ = { class: "text-14 text-word-3 leading-relaxed" }, b_ = {
|
|
14550
14644
|
key: 2,
|
|
14551
14645
|
class: "vv-item-group vv-item-group--fill"
|
|
14552
|
-
},
|
|
14646
|
+
}, x_ = { class: "pk-chatbot-files vv-item-group__list overflow-y-auto light-scrollbar" }, S_ = ["title", "onClick"], C_ = { class: "pk-chatbot-files__icon" }, w_ = ["src", "onError"], T_ = { class: "flex flex-col min-w-0 flex-1" }, E_ = { class: "vv-item__title" }, D_ = { class: "text-12 text-word-3" }, O_ = { class: "vv-item__actions pk-chatbot-files__actions" }, k_ = /*#__PURE__*/ ln(/* @__PURE__ */ w({
|
|
14553
14647
|
__name: "PkChatbotViewFiles",
|
|
14554
14648
|
props: { agentId: { type: String } },
|
|
14555
14649
|
setup(e) {
|
|
@@ -14568,13 +14662,13 @@ var d_ = { class: "flex flex-col flex-1 min-h-0 relative" }, f_ = {
|
|
|
14568
14662
|
};
|
|
14569
14663
|
return (e, t) => {
|
|
14570
14664
|
let r = tn, i = en;
|
|
14571
|
-
return A(), q("div",
|
|
14665
|
+
return A(), q("div", f_, [P(o) && P(a).length === 0 ? (A(), q("div", p_, [H("div", m_, [(A(), q(B, null, Le(4, (e) => H("div", {
|
|
14572
14666
|
key: e,
|
|
14573
14667
|
class: "vv-item vv-item--roomy vv-item--plain"
|
|
14574
|
-
}, [H("div",
|
|
14668
|
+
}, [H("div", h_, [t[2] ||= H("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [H("div", { class: "vv-skeleton__item" })], -1), H("div", g_, [H("div", { class: Ne(["vv-skeleton h-14 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[0] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2), t[1] ||= H("div", { class: "vv-skeleton h-12 rounded w-96" }, [H("div", { class: "vv-skeleton__item" })], -1)])])])), 64))])])) : P(a).length === 0 ? (A(), q("div", __, [H("div", v_, [J(r, {
|
|
14575
14669
|
name: "ri:folder-open-line",
|
|
14576
14670
|
class: "w-28 h-28 text-word-4"
|
|
14577
|
-
})]), H("span",
|
|
14671
|
+
})]), H("span", y_, E(P(n)("userFiles.chatFilesEmpty")), 1)])) : (A(), q("div", b_, [H("ul", x_, [(A(!0), q(B, null, Le(P(a), (e) => (A(), q("li", {
|
|
14578
14672
|
key: e.documentId,
|
|
14579
14673
|
class: "vv-item vv-item--roomy"
|
|
14580
14674
|
}, [H("button", {
|
|
@@ -14582,7 +14676,7 @@ var d_ = { class: "flex flex-col flex-1 min-h-0 relative" }, f_ = {
|
|
|
14582
14676
|
class: "vv-item__entry",
|
|
14583
14677
|
title: P(n)("userFiles.open"),
|
|
14584
14678
|
onClick: (t) => P(u)(e)
|
|
14585
|
-
}, [H("span",
|
|
14679
|
+
}, [H("span", C_, [P(s)(e) ? (A(), q("img", {
|
|
14586
14680
|
key: 0,
|
|
14587
14681
|
src: P(c)(e),
|
|
14588
14682
|
loading: "lazy",
|
|
@@ -14590,10 +14684,10 @@ var d_ = { class: "flex flex-col flex-1 min-h-0 relative" }, f_ = {
|
|
|
14590
14684
|
alt: "",
|
|
14591
14685
|
class: "pk-chatbot-files__thumb",
|
|
14592
14686
|
onError: (t) => P(l)(e)
|
|
14593
|
-
}, null, 40,
|
|
14687
|
+
}, null, 40, w_)) : (A(), V(r, {
|
|
14594
14688
|
key: 1,
|
|
14595
14689
|
name: P(Rt)(e.mimeType)
|
|
14596
|
-
}, null, 8, ["name"]))]), H("span",
|
|
14690
|
+
}, null, 8, ["name"]))]), H("span", T_, [H("span", E_, E(e.name || P(n)("userFiles.untitled")), 1), H("span", D_, E([P(d)(e.createdAt), P(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, S_), H("div", O_, [J(i, {
|
|
14597
14691
|
modifiers: "action-quiet-small",
|
|
14598
14692
|
icon: "ri:download-line",
|
|
14599
14693
|
title: P(n)("action.download"),
|
|
@@ -14617,16 +14711,16 @@ var d_ = { class: "flex flex-col flex-1 min-h-0 relative" }, f_ = {
|
|
|
14617
14711
|
//#endregion
|
|
14618
14712
|
//#region ../../packages/components/src/chat/PkChatbotViewProfile.vue?vue&type=script&setup=true&lang.ts
|
|
14619
14713
|
M(), U(), T();
|
|
14620
|
-
var
|
|
14714
|
+
var A_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, j_ = { class: "flex flex-col items-center gap-sm pt-lg px-lg pb-md bg-surface-1 border-b border-surface-3" }, M_ = { class: "flex flex-col items-center gap-6 text-center" }, N_ = {
|
|
14621
14715
|
key: 0,
|
|
14622
14716
|
class: "text-16 font-semibold text-word-1 leading-tight"
|
|
14623
|
-
},
|
|
14717
|
+
}, P_ = {
|
|
14624
14718
|
key: 1,
|
|
14625
14719
|
class: "text-12 text-word-3 leading-none"
|
|
14626
|
-
},
|
|
14720
|
+
}, F_ = { class: "flex flex-col gap-sm p-md flex-1" }, I_ = ["href"], L_ = { class: "w-40 h-40 rounded-lg bg-surface-2 border border-surface-3 flex items-center justify-center shrink-0" }, R_ = { class: "flex flex-col flex-1 min-w-0 gap-1" }, z_ = { class: "text-14 font-medium text-word-1 leading-tight" }, B_ = { class: "text-12 text-word-3 leading-tight" }, V_ = {
|
|
14627
14721
|
key: 0,
|
|
14628
14722
|
class: "px-md py-sm"
|
|
14629
|
-
},
|
|
14723
|
+
}, H_ = /* @__PURE__ */ w({
|
|
14630
14724
|
__name: "PkChatbotViewProfile",
|
|
14631
14725
|
props: { agentId: { type: String } },
|
|
14632
14726
|
setup(e) {
|
|
@@ -14645,14 +14739,14 @@ var k_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, A_ = { class
|
|
|
14645
14739
|
}
|
|
14646
14740
|
return (e, t) => {
|
|
14647
14741
|
let a = $t, p = tn, m = en;
|
|
14648
|
-
return A(), q("div",
|
|
14649
|
-
H("div",
|
|
14742
|
+
return A(), q("div", A_, [
|
|
14743
|
+
H("div", j_, [J(Ep, {
|
|
14650
14744
|
modifiers: "surface ring",
|
|
14651
14745
|
class: "w-64 h-64",
|
|
14652
14746
|
name: o.value?.name ?? P(r),
|
|
14653
14747
|
"img-src": o.value?.image ?? P(i)?.logo
|
|
14654
|
-
}, null, 8, ["name", "img-src"]), H("div",
|
|
14655
|
-
H("div",
|
|
14748
|
+
}, null, 8, ["name", "img-src"]), H("div", M_, [o.value?.name ?? P(r) ? (A(), q("strong", N_, E(o.value?.name ?? P(r)), 1)) : I("", !0), o.value?.email ? (A(), q("span", P_, E(o.value.email), 1)) : I("", !0)])]),
|
|
14749
|
+
H("div", F_, [d.value ? (A(), V(a, {
|
|
14656
14750
|
key: 0,
|
|
14657
14751
|
modifiers: "danger",
|
|
14658
14752
|
content: d.value
|
|
@@ -14663,17 +14757,17 @@ var k_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, A_ = { class
|
|
|
14663
14757
|
rel: "noopener noreferrer",
|
|
14664
14758
|
class: "flex items-center gap-12 p-12 rounded-lg border border-surface-3 hover:border-surface-5 hover:bg-surface-1 transition-colors cursor-pointer no-underline"
|
|
14665
14759
|
}, [
|
|
14666
|
-
H("div",
|
|
14760
|
+
H("div", L_, [J(p, {
|
|
14667
14761
|
name: "ri:user-settings-line",
|
|
14668
14762
|
class: "w-20 h-20 text-word-2"
|
|
14669
14763
|
})]),
|
|
14670
|
-
H("div",
|
|
14764
|
+
H("div", R_, [H("span", z_, E(P(n)("action.manageProfile")), 1), H("span", B_, E(P(n)("label.manageProfileDescription")), 1)]),
|
|
14671
14765
|
J(p, {
|
|
14672
14766
|
name: "ri:arrow-right-s-line",
|
|
14673
14767
|
class: "w-16 h-16 text-word-4 shrink-0"
|
|
14674
14768
|
})
|
|
14675
|
-
], 8,
|
|
14676
|
-
l.value ? I("", !0) : (A(), q("div",
|
|
14769
|
+
], 8, I_)) : I("", !0)]),
|
|
14770
|
+
l.value ? I("", !0) : (A(), q("div", V_, [J(m, {
|
|
14677
14771
|
modifiers: "secondary-danger",
|
|
14678
14772
|
class: "w-full",
|
|
14679
14773
|
icon: "ri:logout-box-line",
|
|
@@ -14694,13 +14788,13 @@ var k_ = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, A_ = { class
|
|
|
14694
14788
|
//#endregion
|
|
14695
14789
|
//#region ../../packages/components/src/chat/PkChatbot.vue?vue&type=script&setup=true&lang.ts
|
|
14696
14790
|
M(), U(), T();
|
|
14697
|
-
var
|
|
14791
|
+
var U_ = { class: "pk-chatbot__header-start" }, W_ = ["title"], G_ = { key: 1 }, K_ = { class: "pk-chatbot__warning-body" }, q_ = { class: "pk-chatbot__warning-header" }, J_ = { class: "pk-chatbot__warning-title" }, Y_ = { class: "pk-chatbot__warning-text" }, X_ = {
|
|
14698
14792
|
key: 5,
|
|
14699
14793
|
class: "pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto"
|
|
14700
|
-
},
|
|
14794
|
+
}, Z_ = {
|
|
14701
14795
|
key: 7,
|
|
14702
14796
|
class: "pk-chatbot__footer"
|
|
14703
|
-
},
|
|
14797
|
+
}, Q_ = /*#__PURE__*/ ln(/* @__PURE__ */ w({
|
|
14704
14798
|
__name: "PkChatbot",
|
|
14705
14799
|
props: /*@__PURE__*/ ve({
|
|
14706
14800
|
baseUrl: { type: String },
|
|
@@ -14790,7 +14884,7 @@ var H_ = { class: "pk-chatbot__header-start" }, U_ = ["title"], W_ = { key: 1 },
|
|
|
14790
14884
|
key: 0,
|
|
14791
14885
|
class: "pk-chatbot__header",
|
|
14792
14886
|
style: re(j.value ? { backgroundColor: ue.value } : void 0)
|
|
14793
|
-
}, [H("div",
|
|
14887
|
+
}, [H("div", U_, [P(f) === "chat" ? T.value ? I("", !0) : (A(), V(Ep, {
|
|
14794
14888
|
key: 1,
|
|
14795
14889
|
modifiers: "surface ring shrink-0",
|
|
14796
14890
|
class: "pk-chatbot__avatar",
|
|
@@ -14808,7 +14902,7 @@ var H_ = { class: "pk-chatbot__header-start" }, U_ = ["title"], W_ = { key: 1 },
|
|
|
14808
14902
|
class: "pk-chatbot__title",
|
|
14809
14903
|
title: R.value,
|
|
14810
14904
|
style: re(j.value ? { color: N.value } : void 0)
|
|
14811
|
-
}, E(R.value), 13,
|
|
14905
|
+
}, E(R.value), 13, W_)]), J(u, {
|
|
14812
14906
|
class: "pk-chatbot__header-end",
|
|
14813
14907
|
modifiers: "compact"
|
|
14814
14908
|
}, {
|
|
@@ -14903,14 +14997,14 @@ var H_ = { class: "pk-chatbot__header-start" }, U_ = ["title"], W_ = { key: 1 },
|
|
|
14903
14997
|
]),
|
|
14904
14998
|
_: 3
|
|
14905
14999
|
})], 4)),
|
|
14906
|
-
O.value ? (A(), q("div",
|
|
14907
|
-
default: C(() => [H("div",
|
|
15000
|
+
O.value ? (A(), q("div", G_, [H("div", K_, [J(p, { modifiers: "callout" }, {
|
|
15001
|
+
default: C(() => [H("div", q_, [J(s, {
|
|
14908
15002
|
name: "ri:alert-line",
|
|
14909
15003
|
class: "pk-chatbot__warning-icon"
|
|
14910
|
-
}), H("strong",
|
|
15004
|
+
}), H("strong", J_, E(P(i)("message.warning")), 1)]), H("p", Y_, E(P(i)("message.reasoningAgent")), 1)]),
|
|
14911
15005
|
_: 1
|
|
14912
15006
|
})])])) : I("", !0),
|
|
14913
|
-
P(f) === "chat" ? (A(), V(
|
|
15007
|
+
P(f) === "chat" ? (A(), V(Wg, {
|
|
14914
15008
|
key: 2,
|
|
14915
15009
|
"agent-id": e.agentId,
|
|
14916
15010
|
modifier: e.modifier,
|
|
@@ -14924,23 +15018,23 @@ var H_ = { class: "pk-chatbot__header-start" }, U_ = ["title"], W_ = { key: 1 },
|
|
|
14924
15018
|
"agent-id",
|
|
14925
15019
|
"modifier",
|
|
14926
15020
|
"user-name"
|
|
14927
|
-
])) : P(f) === "conversations" ? (A(), V(
|
|
15021
|
+
])) : P(f) === "conversations" ? (A(), V(d_, {
|
|
14928
15022
|
key: 3,
|
|
14929
15023
|
"agent-id": e.agentId
|
|
14930
15024
|
}, Fe({ _: 2 }, [Le(Object.keys(P(r)), (e) => ({
|
|
14931
15025
|
name: e,
|
|
14932
15026
|
fn: C((n) => [te(t.$slots, e, fe(de(n)))])
|
|
14933
|
-
}))]), 1032, ["agent-id"])) : P(f) === "files" ? (A(), V(
|
|
15027
|
+
}))]), 1032, ["agent-id"])) : P(f) === "files" ? (A(), V(k_, {
|
|
14934
15028
|
key: 4,
|
|
14935
15029
|
"agent-id": e.agentId
|
|
14936
|
-
}, null, 8, ["agent-id"])) : P(f) === "auth" ? (A(), q("div",
|
|
15030
|
+
}, null, 8, ["agent-id"])) : P(f) === "auth" ? (A(), q("div", X_, [te(t.$slots, "view-auth")])) : (A(), V(H_, {
|
|
14937
15031
|
key: 6,
|
|
14938
15032
|
"agent-id": e.agentId
|
|
14939
15033
|
}, Fe({ _: 2 }, [Le(Object.keys(P(r)), (e) => ({
|
|
14940
15034
|
name: e,
|
|
14941
15035
|
fn: C((n) => [te(t.$slots, e, fe(de(n)))])
|
|
14942
15036
|
}))]), 1032, ["agent-id"])),
|
|
14943
|
-
P(me) ? (A(), q("div",
|
|
15037
|
+
P(me) ? (A(), q("div", Z_, [J(mt, {
|
|
14944
15038
|
markdown: P(me),
|
|
14945
15039
|
class: "wysiwyg"
|
|
14946
15040
|
}, null, 8, ["markdown"])])) : I("", !0)
|
|
@@ -14951,16 +15045,16 @@ var H_ = { class: "pk-chatbot__header-start" }, U_ = ["title"], W_ = { key: 1 },
|
|
|
14951
15045
|
//#endregion
|
|
14952
15046
|
//#region ../../packages/components/src/chat/PkChatbotAuth.vue?vue&type=script&setup=true&lang.ts
|
|
14953
15047
|
M(), T(), U(), Ee();
|
|
14954
|
-
var
|
|
15048
|
+
var $_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, ev = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, tv = { class: "pk-chatbot-auth__success-icon w-64 h-64 border border-surface-3 rounded-full bg-surface flex items-center justify-center overflow-hidden bg-surface mx-auto mb-md" }, nv = { class: "font-bold text-18 mb-xs" }, rv = { class: "mb-lg text-16 text-word-3" }, iv = {
|
|
14955
15049
|
key: "form",
|
|
14956
15050
|
class: "pk-chatbot-auth__flip-card flex flex-col"
|
|
14957
|
-
},
|
|
15051
|
+
}, av = { class: "flex flex-col" }, ov = {
|
|
14958
15052
|
key: 0,
|
|
14959
15053
|
class: "flex justify-center mb-md"
|
|
14960
|
-
},
|
|
15054
|
+
}, sv = ["src", "alt"], cv = { class: "text-center leading-normal mb-lg" }, lv = {
|
|
14961
15055
|
key: 0,
|
|
14962
15056
|
class: "font-bold text-20 m-0"
|
|
14963
|
-
},
|
|
15057
|
+
}, uv = { class: "text-14 text-word-3 text-center leading-normal mb-md" }, dv = { class: "flex justify-center mt-md" }, fv = { class: "mb-md" }, pv = { class: "mb-md" }, mv = { class: "mb-md" }, hv = { class: "vv-separator mt-xs py-xs" }, gv = { class: "pt-lg text-center text-word-3" }, _v = /*#__PURE__*/ ln(/* @__PURE__ */ w({
|
|
14964
15058
|
__name: "PkChatbotAuth",
|
|
14965
15059
|
props: /*@__PURE__*/ ve({
|
|
14966
15060
|
branding: {
|
|
@@ -15052,7 +15146,7 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15052
15146
|
}
|
|
15053
15147
|
return (t, r) => {
|
|
15054
15148
|
let i = tn, o = en, s = $t, h = Jt;
|
|
15055
|
-
return A(), q("div",
|
|
15149
|
+
return A(), q("div", $_, [H("div", ev, [J(K, {
|
|
15056
15150
|
name: "pk-flip",
|
|
15057
15151
|
mode: "out-in",
|
|
15058
15152
|
onAfterEnter: ne
|
|
@@ -15064,13 +15158,13 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15064
15158
|
tabindex: "-1",
|
|
15065
15159
|
class: "pk-chatbot-auth__flip-card outline-none flex flex-col text-center leading-normal"
|
|
15066
15160
|
}, [
|
|
15067
|
-
H("div",
|
|
15161
|
+
H("div", tv, [J(i, {
|
|
15068
15162
|
name: "ri:mail-check-line",
|
|
15069
15163
|
"aria-hidden": "true",
|
|
15070
15164
|
class: "text-success w-32 h-32"
|
|
15071
15165
|
})]),
|
|
15072
|
-
H("h1",
|
|
15073
|
-
H("p",
|
|
15166
|
+
H("h1", nv, E(u.value.title), 1),
|
|
15167
|
+
H("p", rv, E(u.value.message), 1),
|
|
15074
15168
|
J(o, {
|
|
15075
15169
|
type: "button",
|
|
15076
15170
|
modifiers: "link",
|
|
@@ -15078,14 +15172,14 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15078
15172
|
label: P(n)("action.backToSignIn"),
|
|
15079
15173
|
onClick: p
|
|
15080
15174
|
}, null, 8, ["label"])
|
|
15081
|
-
], 512)) : (A(), q("div",
|
|
15082
|
-
P(a)(e.branding?.interface.logo) ? (A(), q("div",
|
|
15175
|
+
], 512)) : (A(), q("div", iv, [H("div", av, [
|
|
15176
|
+
P(a)(e.branding?.interface.logo) ? (A(), q("div", ov, [H("img", {
|
|
15083
15177
|
src: e.branding?.interface.logo,
|
|
15084
15178
|
alt: e.branding?.name,
|
|
15085
15179
|
class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
|
|
15086
15180
|
onError: r[0] ||= (t) => P(c)(e.branding?.interface.logo)
|
|
15087
|
-
}, null, 40,
|
|
15088
|
-
H("div",
|
|
15181
|
+
}, null, 40, sv)])) : I("", !0),
|
|
15182
|
+
H("div", cv, [e.branding?.name ? (A(), q("h1", lv, E(e.branding.name), 1)) : I("", !0), (A(), V(oe(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
|
|
15089
15183
|
default: C(() => [O.value ? (A(), q(B, { key: 0 }, [L(E(P(n)("twoFactor.challengeTitle")), 1)], 64)) : f.value === "sign-in" ? (A(), q(B, { key: 1 }, [L(E(P(n)("auth.signInTitle")), 1)], 64)) : f.value === "sign-up" ? (A(), q(B, { key: 2 }, [L(E(P(n)("auth.signUpTitle")), 1)], 64)) : f.value === "reset" ? (A(), q(B, { key: 3 }, [L(E(P(n)("auth.resetTitle")), 1)], 64)) : I("", !0)]),
|
|
15090
15184
|
_: 1
|
|
15091
15185
|
}))]),
|
|
@@ -15096,7 +15190,7 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15096
15190
|
content: l.value
|
|
15097
15191
|
}, null, 8, ["content"])) : I("", !0),
|
|
15098
15192
|
O.value ? (A(), q(B, { key: 2 }, [
|
|
15099
|
-
H("p",
|
|
15193
|
+
H("p", uv, E(ue.value), 1),
|
|
15100
15194
|
J(P(ce), {
|
|
15101
15195
|
class: "flex flex-col",
|
|
15102
15196
|
readonly: e.loading,
|
|
@@ -15121,7 +15215,7 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15121
15215
|
])]),
|
|
15122
15216
|
_: 1
|
|
15123
15217
|
}, 8, ["readonly"]),
|
|
15124
|
-
H("div",
|
|
15218
|
+
H("div", dv, [k.value === "totp" ? (A(), V(o, {
|
|
15125
15219
|
key: 0,
|
|
15126
15220
|
type: "button",
|
|
15127
15221
|
modifiers: "link",
|
|
@@ -15147,7 +15241,7 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15147
15241
|
readonly: e.loading,
|
|
15148
15242
|
onSubmit: D
|
|
15149
15243
|
}, {
|
|
15150
|
-
default: C(() => [H("div",
|
|
15244
|
+
default: C(() => [H("div", fv, [
|
|
15151
15245
|
J(P(y), {
|
|
15152
15246
|
name: "email",
|
|
15153
15247
|
type: "email",
|
|
@@ -15162,7 +15256,7 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15162
15256
|
label: P(n)("label.password"),
|
|
15163
15257
|
floating: ""
|
|
15164
15258
|
}, null, 8, ["label"]),
|
|
15165
|
-
H("div",
|
|
15259
|
+
H("div", pv, [J(o, {
|
|
15166
15260
|
type: "button",
|
|
15167
15261
|
modifiers: "link",
|
|
15168
15262
|
label: P(n)("action.forgetPassword"),
|
|
@@ -15192,7 +15286,7 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15192
15286
|
readonly: e.loading,
|
|
15193
15287
|
onSubmit: re
|
|
15194
15288
|
}, {
|
|
15195
|
-
default: C(() => [H("div",
|
|
15289
|
+
default: C(() => [H("div", mv, [
|
|
15196
15290
|
J(P(x), {
|
|
15197
15291
|
name: "name",
|
|
15198
15292
|
type: "text",
|
|
@@ -15261,7 +15355,7 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15261
15355
|
})]),
|
|
15262
15356
|
_: 1
|
|
15263
15357
|
}, 8, ["readonly"])) : I("", !0),
|
|
15264
|
-
!O.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (A(), q(B, { key: 6 }, [H("div",
|
|
15358
|
+
!O.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (A(), q(B, { key: 6 }, [H("div", hv, [H("span", null, E(P(n)("label.or")), 1)]), J(h, {
|
|
15265
15359
|
modifiers: "vertical",
|
|
15266
15360
|
class: "gap-xs mt-xs"
|
|
15267
15361
|
}, {
|
|
@@ -15284,7 +15378,7 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15284
15378
|
}, null, 8, ["disabled", "label"])) : I("", !0)]),
|
|
15285
15379
|
_: 1
|
|
15286
15380
|
})], 64)) : I("", !0)
|
|
15287
|
-
]), H("div",
|
|
15381
|
+
]), H("div", gv, [O.value ? (A(), V(o, {
|
|
15288
15382
|
key: 0,
|
|
15289
15383
|
type: "button",
|
|
15290
15384
|
modifiers: "link",
|
|
@@ -15315,22 +15409,22 @@ var Q_ = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
15315
15409
|
})])]);
|
|
15316
15410
|
};
|
|
15317
15411
|
}
|
|
15318
|
-
}), [["styles", [".pk-chatbot-auth__flip{transform-style:preserve-3d;perspective:1000px;display:grid}.pk-chatbot-auth__flip-card{backface-visibility:hidden;transform-style:preserve-3d;grid-area:1/1}.pk-chatbot-auth__success-icon{animation:.4s ease-out .3s backwards pk-chatbot-auth-check-pop}.pk-flip-enter-active{animation:.6s ease-out pk-chatbot-auth-flip-in}.pk-flip-leave-active{animation:.6s ease-in pk-chatbot-auth-flip-out}@keyframes pk-chatbot-auth-flip-in{0%{opacity:0;transform:rotateY(-180deg)}to{opacity:1;transform:rotateY(0)}}@keyframes pk-chatbot-auth-flip-out{0%{opacity:1;transform:rotateY(0)}to{opacity:0;transform:rotateY(180deg)}}@keyframes pk-chatbot-auth-check-pop{0%{opacity:0;transform:scale(0)}60%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}"]]]),
|
|
15412
|
+
}), [["styles", [".pk-chatbot-auth__flip{transform-style:preserve-3d;perspective:1000px;display:grid}.pk-chatbot-auth__flip-card{backface-visibility:hidden;transform-style:preserve-3d;grid-area:1/1}.pk-chatbot-auth__success-icon{animation:.4s ease-out .3s backwards pk-chatbot-auth-check-pop}.pk-flip-enter-active{animation:.6s ease-out pk-chatbot-auth-flip-in}.pk-flip-leave-active{animation:.6s ease-in pk-chatbot-auth-flip-out}@keyframes pk-chatbot-auth-flip-in{0%{opacity:0;transform:rotateY(-180deg)}to{opacity:1;transform:rotateY(0)}}@keyframes pk-chatbot-auth-flip-out{0%{opacity:1;transform:rotateY(0)}to{opacity:0;transform:rotateY(180deg)}}@keyframes pk-chatbot-auth-check-pop{0%{opacity:0;transform:scale(0)}60%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}"]]]), vv = "@layer volver.reset,volver.preflight,volver.props;@layer volver.components{.pk-loader{width:var(--spacing-48);height:var(--spacing-48);border-radius:50%;animation:1s linear infinite pk-loader-rotate;position:relative}.pk-loader:before{content:\"\";box-sizing:border-box;border:var(--spacing-5) solid var(--color-brand);border-radius:50%;animation:2s linear infinite pk-loader-clip;position:absolute;inset:0}@media (prefers-reduced-motion:reduce){.pk-loader,.pk-loader:before{animation:none}}@keyframes pk-loader-rotate{to{rotate:360deg}}@keyframes pk-loader-clip{0%{clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}}@layer volver.themes,volver.utilities;";
|
|
15319
15413
|
//#endregion
|
|
15320
15414
|
//#region ../../packages/components/src/PkLoader.vue
|
|
15321
15415
|
M();
|
|
15322
|
-
var
|
|
15323
|
-
function
|
|
15416
|
+
var yv = {};
|
|
15417
|
+
function bv(e, t) {
|
|
15324
15418
|
return A(), q("div", null, [...t[0] ||= [H("div", {
|
|
15325
15419
|
"aria-hidden": "true",
|
|
15326
15420
|
class: "pk-loader"
|
|
15327
15421
|
}, null, -1)]]);
|
|
15328
15422
|
}
|
|
15329
|
-
var
|
|
15423
|
+
var xv = /*#__PURE__*/ ln(yv, [["render", bv], ["styles", [vv]]]);
|
|
15330
15424
|
//#endregion
|
|
15331
15425
|
//#region ../../packages/components/src/chat/PkWelcomePopup.vue?vue&type=script&setup=true&lang.ts
|
|
15332
15426
|
M(), T(), Ee(), U();
|
|
15333
|
-
var
|
|
15427
|
+
var Sv = { class: "welcome-popup__text" }, Cv = ["aria-label"], wv = 100, Tv = /*#__PURE__*/ ln(/* @__PURE__ */ w({
|
|
15334
15428
|
__name: "PkWelcomePopup",
|
|
15335
15429
|
props: {
|
|
15336
15430
|
agentId: { type: String },
|
|
@@ -15351,7 +15445,7 @@ var xv = { class: "welcome-popup__text" }, Sv = ["aria-label"], Cv = 100, wv = /
|
|
|
15351
15445
|
c.value = [], s.value = !1;
|
|
15352
15446
|
let t = e.split(/(\s+)/), n = 0;
|
|
15353
15447
|
function r() {
|
|
15354
|
-
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r,
|
|
15448
|
+
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, wv)) : s.value = !0;
|
|
15355
15449
|
}
|
|
15356
15450
|
r();
|
|
15357
15451
|
}
|
|
@@ -15375,7 +15469,7 @@ var xv = { class: "welcome-popup__text" }, Sv = ["aria-label"], Cv = 100, wv = /
|
|
|
15375
15469
|
key: 0,
|
|
15376
15470
|
class: "welcome-popup",
|
|
15377
15471
|
onClick: ke(m, ["stop"])
|
|
15378
|
-
}, [H("p",
|
|
15472
|
+
}, [H("p", Sv, [(A(!0), q(B, null, Le(c.value, (e, t) => (A(), q("span", {
|
|
15379
15473
|
key: t,
|
|
15380
15474
|
class: "welcome-popup__word"
|
|
15381
15475
|
}, E(e), 1))), 128))]), J(K, null, {
|
|
@@ -15391,7 +15485,7 @@ var xv = { class: "welcome-popup__text" }, Sv = ["aria-label"], Cv = 100, wv = /
|
|
|
15391
15485
|
width: "14",
|
|
15392
15486
|
height: "14",
|
|
15393
15487
|
fill: "currentColor"
|
|
15394
|
-
}, [H("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8,
|
|
15488
|
+
}, [H("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, Cv)) : I("", !0)]),
|
|
15395
15489
|
_: 1
|
|
15396
15490
|
})])) : I("", !0)]),
|
|
15397
15491
|
_: 1
|
|
@@ -15401,10 +15495,10 @@ var xv = { class: "welcome-popup__text" }, Sv = ["aria-label"], Cv = 100, wv = /
|
|
|
15401
15495
|
//#endregion
|
|
15402
15496
|
//#region src/components/FloatingChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
|
|
15403
15497
|
M(), U(), T(), Ee();
|
|
15404
|
-
var
|
|
15498
|
+
var Ev = {
|
|
15405
15499
|
key: 0,
|
|
15406
15500
|
class: "floating-chat-widget__launcher"
|
|
15407
|
-
},
|
|
15501
|
+
}, Dv = {
|
|
15408
15502
|
key: 0,
|
|
15409
15503
|
class: "w-full h-full",
|
|
15410
15504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15412,7 +15506,7 @@ var Tv = {
|
|
|
15412
15506
|
width: "24",
|
|
15413
15507
|
height: "24",
|
|
15414
15508
|
fill: "currentColor"
|
|
15415
|
-
},
|
|
15509
|
+
}, Ov = {
|
|
15416
15510
|
key: 1,
|
|
15417
15511
|
class: "w-full h-full",
|
|
15418
15512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15420,13 +15514,13 @@ var Tv = {
|
|
|
15420
15514
|
width: "24",
|
|
15421
15515
|
height: "24",
|
|
15422
15516
|
fill: "currentColor"
|
|
15423
|
-
},
|
|
15517
|
+
}, kv = {
|
|
15424
15518
|
key: 0,
|
|
15425
15519
|
class: "floating-chat-widget__chat floating-chat-widget__auth"
|
|
15426
|
-
},
|
|
15520
|
+
}, Av = {
|
|
15427
15521
|
key: 0,
|
|
15428
15522
|
class: "floating-chat-widget__chat floating-chat-widget__loading"
|
|
15429
|
-
},
|
|
15523
|
+
}, jv = /*#__PURE__*/ ln(/* @__PURE__ */ w({
|
|
15430
15524
|
inheritAttrs: !1,
|
|
15431
15525
|
__name: "FloatingChatWidget.ce",
|
|
15432
15526
|
props: {
|
|
@@ -15581,7 +15675,7 @@ var Tv = {
|
|
|
15581
15675
|
_: 1
|
|
15582
15676
|
})) : I("", !0),
|
|
15583
15677
|
J(K, { name: "slide-bottom" }, {
|
|
15584
|
-
default: C(() => [(P(T) || P(ne)) && !P(O) ? (A(), q("div",
|
|
15678
|
+
default: C(() => [(P(T) || P(ne)) && !P(O) ? (A(), q("div", Ev, [J(Tv, {
|
|
15585
15679
|
"agent-id": e.agentId,
|
|
15586
15680
|
message: P(T)?.interface.initialMessage,
|
|
15587
15681
|
enabled: !P(s) && P(T)?.interface?.welcomePopup,
|
|
@@ -15595,11 +15689,11 @@ var Tv = {
|
|
|
15595
15689
|
"aria-label": "chat-button",
|
|
15596
15690
|
class: "floating-chat-widget__button",
|
|
15597
15691
|
onClick: ke(c, ["stop"])
|
|
15598
|
-
}, [P(s) ? (A(), q("svg",
|
|
15692
|
+
}, [P(s) ? (A(), q("svg", Dv, [...n[4] ||= [H("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }, null, -1)]])) : (A(), q("svg", Ov, [...n[5] ||= [H("path", { d: "M12 1.99996C12.8632 1.99996 13.701 2.10973 14.5 2.31539L14 4.25192C13.3608 4.0874 12.6906 3.99997 12 3.99997C7.58174 3.99997 4.00002 7.58172 4 12C4 13.3344 4.3255 14.6174 4.93945 15.7656L5.28906 16.4189L4.63379 19.3662L7.58105 18.7109L8.23438 19.0605C9.38255 19.6745 10.6656 20 12 20C16.4183 20 20 16.4183 20 12C20 11.6771 19.9805 11.3587 19.9434 11.0459L21.9297 10.8095C21.976 11.1999 22 11.5972 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.69425 21.5746 7.29102 20.8242L2 22L3.17578 16.709C2.42541 15.3057 2 13.7025 2 12C2.00002 6.47714 6.47717 1.99996 12 1.99996ZM19.5293 1.3193C19.7058 0.893513 20.2942 0.8935 20.4707 1.3193L20.7236 1.93063C21.1555 2.97343 21.9615 3.80614 22.9746 4.2568L23.6914 4.57614C24.1022 4.75882 24.1022 5.35635 23.6914 5.53903L22.9326 5.87692C21.945 6.3162 21.1534 7.11943 20.7139 8.1279L20.4668 8.69333C20.2863 9.10747 19.7136 9.10747 19.5332 8.69333L19.2861 8.1279C18.8466 7.11942 18.0551 6.3162 17.0674 5.87692L16.3076 5.53903C15.8974 5.35618 15.8974 4.75895 16.3076 4.57614L17.0254 4.2568C18.0384 3.80614 18.8445 2.97343 19.2764 1.93063L19.5293 1.3193Z" }, null, -1)]]))])])) : I("", !0)]),
|
|
15599
15693
|
_: 1
|
|
15600
15694
|
}),
|
|
15601
15695
|
J(K, null, {
|
|
15602
|
-
default: C(() => [P(s) && (P(ae) || P(k)) && !(P(T) && P(l).data) ? (A(), q("div",
|
|
15696
|
+
default: C(() => [P(s) && (P(ae) || P(k)) && !(P(T) && P(l).data) ? (A(), q("div", kv, [P(ae) ? (A(), V(_v, {
|
|
15603
15697
|
key: 0,
|
|
15604
15698
|
"error-message": P(de),
|
|
15605
15699
|
"onUpdate:errorMessage": n[0] ||= (e) => z(de) ? de.value = e : null,
|
|
@@ -15632,15 +15726,15 @@ var Tv = {
|
|
|
15632
15726
|
"onVerifyTwoFactor",
|
|
15633
15727
|
"onSendTwoFactorCode",
|
|
15634
15728
|
"onCancelTwoFactor"
|
|
15635
|
-
])) : (A(), V(
|
|
15729
|
+
])) : (A(), V(xv, { key: 1 }))])) : I("", !0)]),
|
|
15636
15730
|
_: 1
|
|
15637
15731
|
}),
|
|
15638
15732
|
J(K, null, {
|
|
15639
|
-
default: C(() => [P(s) && !P(ae) && !P(T) && !P(k) ? (A(), q("div",
|
|
15733
|
+
default: C(() => [P(s) && !P(ae) && !P(T) && !P(k) ? (A(), q("div", Av, [J(xv)])) : I("", !0)]),
|
|
15640
15734
|
_: 1
|
|
15641
15735
|
}),
|
|
15642
15736
|
J(K, null, {
|
|
15643
|
-
default: C(() => [P(T) && P(s) && P(l).data ? (A(), V(
|
|
15737
|
+
default: C(() => [P(T) && P(s) && P(l).data ? (A(), V(Q_, {
|
|
15644
15738
|
key: e.agentId,
|
|
15645
15739
|
ref_key: "chatbotEl",
|
|
15646
15740
|
ref: a,
|
|
@@ -15669,7 +15763,7 @@ var Tv = {
|
|
|
15669
15763
|
title: t.$t("action.close"),
|
|
15670
15764
|
onClick: ke(c, ["stop"])
|
|
15671
15765
|
}, null, 8, ["modifiers", "title"])]),
|
|
15672
|
-
"view-auth": C(() => [J(
|
|
15766
|
+
"view-auth": C(() => [J(_v, {
|
|
15673
15767
|
"error-message": P(de),
|
|
15674
15768
|
"onUpdate:errorMessage": n[2] ||= (e) => z(de) ? de.value = e : null,
|
|
15675
15769
|
success: P(fe),
|
|
@@ -15723,16 +15817,16 @@ var Tv = {
|
|
|
15723
15817
|
//#endregion
|
|
15724
15818
|
//#region src/components/EmbeddedChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
|
|
15725
15819
|
M(), U(), T(), Ee();
|
|
15726
|
-
var
|
|
15820
|
+
var Mv = {
|
|
15727
15821
|
key: 2,
|
|
15728
15822
|
class: "embedded-chat-widget embedded-chat-widget--not-found"
|
|
15729
|
-
},
|
|
15823
|
+
}, Nv = {
|
|
15730
15824
|
key: 0,
|
|
15731
15825
|
class: "embedded-chat-widget embedded-chat-widget--auth"
|
|
15732
|
-
},
|
|
15826
|
+
}, Pv = {
|
|
15733
15827
|
key: 0,
|
|
15734
15828
|
class: "embedded-chat-widget embedded-chat-widget--loading"
|
|
15735
|
-
},
|
|
15829
|
+
}, Fv = /*#__PURE__*/ ln(/* @__PURE__ */ w({
|
|
15736
15830
|
inheritAttrs: !1,
|
|
15737
15831
|
__name: "EmbeddedChatWidget.ce",
|
|
15738
15832
|
props: {
|
|
@@ -15873,12 +15967,12 @@ var jv = {
|
|
|
15873
15967
|
default: C(() => [L(E(U.value), 1)]),
|
|
15874
15968
|
_: 1
|
|
15875
15969
|
})) : I("", !0),
|
|
15876
|
-
P(O) ? (A(), q("div",
|
|
15970
|
+
P(O) ? (A(), q("div", Mv, [H("p", null, E(P(w)("message.agentNotFound")), 1)])) : I("", !0),
|
|
15877
15971
|
J(K, {
|
|
15878
15972
|
name: "fade",
|
|
15879
15973
|
appear: ""
|
|
15880
15974
|
}, {
|
|
15881
|
-
default: C(() => [(P(T) || P(ne)) && !P(O) && P(ae) && (!P(s).data?.user?.id || P(s).data?.user?.isAnonymous) ? (A(), q("div",
|
|
15975
|
+
default: C(() => [(P(T) || P(ne)) && !P(O) && P(ae) && (!P(s).data?.user?.id || P(s).data?.user?.isAnonymous) ? (A(), q("div", Nv, [P(D) ? (A(), V(_v, {
|
|
15882
15976
|
key: 0,
|
|
15883
15977
|
"error-message": P(le),
|
|
15884
15978
|
"onUpdate:errorMessage": n[0] ||= (e) => z(le) ? le.value = e : null,
|
|
@@ -15909,17 +16003,17 @@ var jv = {
|
|
|
15909
16003
|
"onVerifyTwoFactor",
|
|
15910
16004
|
"onSendTwoFactorCode",
|
|
15911
16005
|
"onCancelTwoFactor"
|
|
15912
|
-
])) : (A(), V(
|
|
16006
|
+
])) : (A(), V(xv, { key: 1 }))])) : I("", !0)]),
|
|
15913
16007
|
_: 1
|
|
15914
16008
|
}),
|
|
15915
16009
|
J(K, {
|
|
15916
16010
|
name: "fade",
|
|
15917
16011
|
appear: ""
|
|
15918
16012
|
}, {
|
|
15919
|
-
default: C(() => [P(k) && !P(O) ? (A(), q("div",
|
|
16013
|
+
default: C(() => [P(k) && !P(O) ? (A(), q("div", Pv, [J(xv)])) : I("", !0)]),
|
|
15920
16014
|
_: 1
|
|
15921
16015
|
}),
|
|
15922
|
-
P(T) && P(s).data && !P(O) ? (A(), V(
|
|
16016
|
+
P(T) && P(s).data && !P(O) ? (A(), V(Q_, {
|
|
15923
16017
|
key: 3,
|
|
15924
16018
|
ref_key: "chatbotEl",
|
|
15925
16019
|
ref: a,
|
|
@@ -15946,7 +16040,7 @@ var jv = {
|
|
|
15946
16040
|
}, Fe({
|
|
15947
16041
|
"header-actions": C(() => [te(t.$slots, "header-actions")]),
|
|
15948
16042
|
actions: C(() => [te(t.$slots, "actions")]),
|
|
15949
|
-
"view-auth": C(() => [J(
|
|
16043
|
+
"view-auth": C(() => [J(_v, {
|
|
15950
16044
|
"error-message": P(le),
|
|
15951
16045
|
"onUpdate:errorMessage": n[2] ||= (e) => z(le) ? le.value = e : null,
|
|
15952
16046
|
success: P(ue),
|
|
@@ -16002,7 +16096,7 @@ var jv = {
|
|
|
16002
16096
|
//#endregion
|
|
16003
16097
|
//#region src/lib.ts
|
|
16004
16098
|
Ee();
|
|
16005
|
-
function
|
|
16099
|
+
function Iv(e) {
|
|
16006
16100
|
let { t } = Zn.global;
|
|
16007
16101
|
e.use(kn()), e.use(Zn), e.provide(Be, Zn), e.use(hr, {
|
|
16008
16102
|
iconsCollections: [gr, _r],
|
|
@@ -16023,16 +16117,16 @@ function Fv(e) {
|
|
|
16023
16117
|
ai(e instanceof Error ? e : Error(String(e)), { vueInfo: n });
|
|
16024
16118
|
};
|
|
16025
16119
|
}
|
|
16026
|
-
function
|
|
16120
|
+
function Lv(e) {
|
|
16027
16121
|
let { styles: t } = e;
|
|
16028
16122
|
return {
|
|
16029
|
-
configureApp:
|
|
16123
|
+
configureApp: Iv,
|
|
16030
16124
|
styles: [oi, ...t ?? []]
|
|
16031
16125
|
};
|
|
16032
16126
|
}
|
|
16033
|
-
var
|
|
16034
|
-
customElements.define("floating-chat-widget",
|
|
16127
|
+
var Rv = Se(jv, Lv(jv)), zv = Se(Fv, Lv(Fv));
|
|
16128
|
+
customElements.define("floating-chat-widget", Rv), customElements.define("embedded-chat-widget", zv);
|
|
16035
16129
|
//#endregion
|
|
16036
|
-
export {
|
|
16130
|
+
export { zv as EmbeddedChatWidgetCe, Rv as FloatingChatWidgetCe };
|
|
16037
16131
|
|
|
16038
16132
|
//# sourceMappingURL=ai-elements.es.js.map
|