@8wave/ai-elements 0.122.0-beta.9 → 0.123.0-beta.1
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/PkFilePreview-eKok4xdc.js +211 -0
- package/dist/_chunks/PkFilePreview-eKok4xdc.js.map +1 -0
- package/dist/_chunks/PkStreamingMarkdown-Dc0R0GHe.js.map +1 -1
- package/dist/_chunks/PkToolChatFile-3fYhbFSi.js +222 -0
- package/dist/_chunks/PkToolChatFile-3fYhbFSi.js.map +1 -0
- package/dist/ai-elements.es.js +592 -405
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.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/{PkChatbot-B7JaLUZw.js → PkChatbot-D3KGDerg.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-B7JaLUZw.js.map → PkChatbot-D3KGDerg.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotViewChat-BNaSv86u.js +1047 -0
- package/dist-vue/_chunks/PkChatbotViewChat-BNaSv86u.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-4ZJF-y5q.js → PkChatbotViewConversations-C1vl8z4o.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-4ZJF-y5q.js.map → PkChatbotViewConversations-C1vl8z4o.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-CfPwNcvf.js → PkChatbotViewFiles-DiKHsdPE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-CfPwNcvf.js.map → PkChatbotViewFiles-DiKHsdPE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dd8EhOx3.js → PkChatbotViewProfile-CuQ0MAX7.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dd8EhOx3.js.map → PkChatbotViewProfile-CuQ0MAX7.js.map} +1 -1
- package/dist-vue/_chunks/PkFilePreview-Cx6jmJCD.js +200 -0
- package/dist-vue/_chunks/PkFilePreview-Cx6jmJCD.js.map +1 -0
- package/dist-vue/_chunks/PkToolChatFile-BJsDSu1Q.js +220 -0
- package/dist-vue/_chunks/PkToolChatFile-BJsDSu1Q.js.map +1 -0
- package/dist-vue/_chunks/{createChatbotApiClient-y6jA42S0.js → createChatbotApiClient-DAh91HyT.js} +4 -1
- package/dist-vue/_chunks/{createChatbotApiClient-y6jA42S0.js.map → createChatbotApiClient-DAh91HyT.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DCXyql8U.js → useChatbotStore-D1U24qc8.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-DCXyql8U.js.map → useChatbotStore-D1U24qc8.js.map} +1 -1
- package/dist-vue/_chunks/utils-DaAIWTtt.js.map +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +60 -2
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +6 -6
- package/dist-vue/locales.js +56 -0
- package/dist-vue/packages/components/src/chat/PkFilePreview.d.ts +28 -0
- package/dist-vue/packages/components/src/chat/PkSpreadsheetPreview.d.ts +15 -0
- package/dist-vue/packages/components/src/chat/PkToolChatFile.d.ts +13 -0
- package/dist-vue/packages/components/src/chat/PkWordPreview.d.ts +16 -0
- package/dist-vue/packages/components/src/chat/PkWordPreviewRuns.d.ts +13 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +7 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +3 -1
- package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +137 -0
- package/dist-vue/packages/models/src/schema/WordPreview.d.ts +135 -0
- package/dist-vue/packages/models/src/schema/index.d.ts +2 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkToolChatFile-BsvJIdgo.js +0 -181
- package/dist/_chunks/PkToolChatFile-BsvJIdgo.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-Djts78Oq.js +0 -921
- package/dist-vue/_chunks/PkChatbotViewChat-Djts78Oq.js.map +0 -1
- package/dist-vue/_chunks/PkToolChatFile-s46esp0O.js +0 -179
- package/dist-vue/_chunks/PkToolChatFile-s46esp0O.js.map +0 -1
package/dist/ai-elements.es.js
CHANGED
|
@@ -1439,6 +1439,29 @@ var hr = {
|
|
|
1439
1439
|
extracted: "Estratta | Estratte"
|
|
1440
1440
|
},
|
|
1441
1441
|
message: /* @__PURE__ */ JSON.parse("{\"accountLinkAlreadyLinked\":\"Questo account è già collegato a un altro utente. Accedi con quell'utente per scollegarlo prima.\",\"accountLinkCancelled\":\"Collegamento annullato sulla pagina del provider. Nulla è cambiato.\",\"accountLinkEmailMismatch\":\"Puoi collegare solo account che usano la stessa email del tuo profilo.\",\"accountLinkErrorWithCode\":\"Impossibile collegare l'account (codice: {code}). Riprova o segnala questo codice all'assistenza.\",\"accountLinkNotAllowed\":\"Questo provider non può essere collegato al tuo profilo: l'email dell'account non è verificata o il collegamento è disabilitato.\",\"accountLinkUserInfo\":\"Il provider non ha restituito un profilo utilizzabile, quindi nessun account è stato collegato. Riprova.\",\"accountUnlinked\":\"Account disconnesso\",\"agentAccessDenied\":\"Non hai accesso a questo agente\",\"agentAccessDeniedAction\":\"Vedi gli agenti disponibili\",\"agentActivated\":\"Agente attivato con successo\",\"agentDeactivated\":\"Agente disattivato con successo\",\"agentNotFound\":\"Agente non trovato\",\"agentsEmpty\":\"Nessun agente. Crea il primo per iniziare.\",\"analyzeChatError\":\"L'analisi non si è conclusa. Riprova fra qualche minuto.\",\"analyzeChatInProgress\":\"Analisi della conversazione in corso. Se la conversazione è lunga, può servire circa un minuto.\",\"analyzeChatSuccess\":\"Conversazione analizzata con successo\",\"apiKeyCreatedForUser\":\"Mostrata una volta sola: copiala e passala in sicurezza.\",\"apiKeysEmpty\":\"Le chiavi che crei per l’accesso programmatico compaiono qui.\",\"apiToolsEmpty\":\"Nessun API tool. Aggiungi il primo per far chiamare all'agente un servizio esterno.\",\"banSuccess\":\"Utente bannato con successo\",\"blockChatSuccess\":\"Conversazione bloccata con successo\",\"bulkUnlinkAllDeleteConfirm\":\"{count} documenti verranno eliminati definitivamente perché non hanno altri agenti collegati. Vuoi procedere?\",\"bulkUnlinkMixedConfirm\":\"{unlinkCount} documenti verranno disassociati e {deleteCount} verranno eliminati definitivamente (non hanno altri agenti collegati). Vuoi procedere?\",\"cancelInvitationConfirm\":\"Sei sicuro di voler annullare l'invito per {email}?\",\"cancelInvitationSuccess\":\"Invito annullato con successo\",\"chatActionError\":\"L'azione non si è conclusa. Riprova fra qualche minuto.\",\"chatAnonymized\":\"Il contenuto di questa conversazione è stato cancellato (GDPR): restano solo le metriche aggregate.\",\"chatErrorBadRequest\":\"Si è verificato un errore con la richiesta. Inizia una nuova chat per continuare.\",\"chatErrorContextWindow\":\"La conversazione è diventata troppo lunga. Inizia una nuova chat per continuare.\",\"chatErrorConversationBlocked\":\"Questa conversazione è stata bloccata per violazione delle policy.\",\"backgroundAnswerReady\":\"L'agente ha risposto in «{title}»\",\"backgroundAnswerReadyUntitled\":\"L'agente ha risposto in un'altra conversazione\",\"chatErrorCreditExhausted\":\"Servizio non disponibile. Riprova più tardi.\",\"chatErrorGatewayDisabled\":\"Il modello di questo agente non è disponibile: l’organizzazione non usa il gateway AI della piattaforma. Un amministratore può spostare l’agente su uno dei modelli dell’organizzazione.\",\"chatErrorGatewayPromptTraining\":\"Il modello \\\"{model}\\\" non supporta l'opzione \\\"Disabilita addestramento prompt\\\". Disattiva questa impostazione nella configurazione del gateway dell'agente oppure scegli un modello compatibile.\",\"chatErrorGatewayZdr\":\"Il modello \\\"{model}\\\" non supporta l'opzione \\\"Zero Data Retention\\\". Disattiva ZDR nella configurazione del gateway dell'agente oppure scegli un modello compatibile.\",\"chatErrorGeneric\":\"Errore durante la richiesta. Se il problema persiste inizia una nuova chat. Riprovo tra {seconds}…\",\"chatErrorInternalServer\":\"Si è verificato un errore del server. Inizia una nuova chat per continuare.\",\"chatErrorModelUnavailable\":\"Il modello di questo agente ora non è disponibile: l’endpoint su cui gira è spento o non lo serve più. Un amministratore può riaccenderlo o spostare l’agente su un altro modello.\",\"chatErrorNotFound\":\"La conversazione non è più disponibile. Inizia una nuova chat per continuare.\",\"chatErrorOriginNotAllowed\":\"L'origine della richiesta non è consentita. Contatta l'amministratore del sistema.\",\"chatErrorRateLimit\":\"Il limite di richieste è stato superato. Riprovo tra {seconds} secondi…\",\"chatErrorRetrying\":\"Riprovo tra {seconds} secondi…\",\"checkYourEmail\":\"Verifica la tua casella email\",\"confirm\":\"Sei sicuro di voler procedere?\",\"confirmRefillCredits\":\"Sei sicuro di voler ricaricare il credito di {amount}?\",\"contentTruncated\":\"Contenuto troncato. Totale caratteri: {total}\",\"copied\":\"Copiato negli appunti\",\"crawlError\":\"Errore durante il crawling\",\"createFolderSuccess\":\"Cartella creata con successo\",\"defaultAgentWelcome\":\"Ciao! Come posso aiutarti oggi?\",\"defaultPrivacyPolicyNotice\":\"Inviando la richiesta accetti la nostra [Privacy Policy](https://www.iubenda.com/privacy-policy/46350192).\",\"deleteAgentConfirm\":\"Le sue cartelle vengono eliminate. Un documento che nessun altro agente usa viene eliminato, uno condiviso resta agli altri agenti.\",\"deleteAllMemoriesConfirm\":\"Spariscono definitivamente, ricerca semantica compresa.\",\"deleteAllNotificationsConfirm\":\"Eliminare tutte le notifiche?\",\"deleteBulkDocumentConfirm\":\"Vengono rimossi da tutti gli agenti collegati e finiscono nel cestino, da cui si possono ripristinare.\",\"deleteDocumentConfirm\":\"Viene rimosso da tutti gli agenti collegati e finisce nel cestino, da cui si può ripristinare.\",\"deleteDocumentConfirmWithAgents\":\"Finisce nel cestino, da cui si può ripristinare, e viene rimosso dai seguenti agenti:{agents}\",\"deleteError\":\"Eliminazione non riuscita. Riprova.\",\"deleteFolderConfirm\":\"I documenti al suo interno vengono tolti da questo agente. Un documento che nessun altro agente usa viene eliminato.\",\"deleteFolderSuccess\":\"Cartella eliminata con successo\",\"deleteMyConversationsConfirm\":\"Non si può annullare.\",\"deleteNotificationConfirm\":\"Eliminare questa notifica?\",\"deleteProfileBlockedSoleOwner\":\"Sei l'unico proprietario di {organizations}. Trasferisci la proprietà o elimina le organizzazioni prima di poter eliminare l'account.\",\"deleteProfileConfirm\":\"Stai per eliminare definitivamente il tuo account: il profilo verrà anonimizzato e il contenuto delle tue conversazioni cancellato. Questa azione non può essere annullata.\",\"deleteProfileDescription\":\"Anonimizza il tuo account e cancella il contenuto delle tue conversazioni (diritto all'oblio).\",\"diagramRenderError\":\"Impossibile renderizzare il diagramma.\",\"documentRefreshPausedReason\":\"La pagina non risponde più, quindi l'aggiornamento automatico è in pausa. Aggiorna ora per riprovare.\",\"documentRefreshSet\":\"Aggiornamento automatico impostato su {updated} documenti, {skipped} saltati perché non sono pagine web\",\"documentRefreshStarted\":\"Aggiornamento avviato su {queued} documenti, {skipped} saltati\",\"documentsEmpty\":\"Crea qui un documento o una cartella. Per importare da un sito o da un servizio collegato, usa il menu Crea.\",\"documentsEmptyManaged\":\"Nessun file sincronizzato in questa cartella. Il contenuto arriva dalla sorgente collegata: se hai appena collegato la cartella, il primo import può richiedere qualche minuto.\",\"documentsNoMatch\":\"Nessun documento corrisponde alla ricerca o ai filtri. Azzerali per vedere tutto.\",\"documentSourceLinked\":\"Cartella collegata. Il primo import parte tra poco.\",\"documentSourceNothingHere\":\"Non c’è nulla qui dentro.\",\"documentSourceStale\":\"Lo stato di questa cartella non è aggiornato: l’ultima lettura non è riuscita.\",\"documentSourceUnlinked\":\"Cartella scollegata. I documenti restano e ora si modificano come gli altri.\",\"embeddingActivated\":\"Embedding salvato: l’endpoint serve il modello dichiarato\",\"embeddingBackToPlatform\":\"I vettori si calcolano di nuovo sulla piattaforma\",\"embeddingIndexNotUpdated\":\"L’avanzamento non si aggiorna più.\",\"embeddingRemoved\":\"Embedding rimosso dall’endpoint\",\"empty\":\"Nessun elemento trovato\",\"endpointActivated\":\"Endpoint attivato con successo\",\"endpointDeactivated\":\"Endpoint disattivato con successo\",\"endpointsEmpty\":\"Nessun endpoint. Crea il primo per esporre l'agente via HTTP.\",\"error\":\"Errore\",\"errorRetry\":\"Qualcosa è andato storto. Riprova.\",\"exportError\":\"Errore durante l'esportazione dei dati\",\"exportFailed\":\"L'esportazione dei dati non è riuscita. Riprova più tardi.\",\"exportMyDataDescription\":\"Scarica una copia completa dei tuoi dati personali in formato ZIP (Art. 15 e 20 GDPR).\",\"exportRequested\":\"Stiamo preparando il tuo archivio: riceverai un'email con il link per scaricarlo.\",\"exportSuccess\":\"CSV esportato con successo\",\"feedbackSubmitError\":\"Invio fallito. Riprova per favore.\",\"feedbackSubmittedMessage\":\"Il tuo feedback è stato inviato con successo.\",\"feedbackSubmittedTitle\":\"Grazie!\",\"feedbacksEmpty\":\"I feedback che gli utenti lasciano sulle risposte dell'agente compariranno qui.\",\"fileAlreadyImported\":\"Già importato\",\"fileAlreadyImportedExistingList\":\"I seguenti file sono già presenti nell'organizzazione:\\n{names}\",\"fileAlreadyImportedLink\":\"Questo file è già stato importato. Vuoi collegarlo all'agente corrente o creare un nuovo documento?\",\"fileAlreadyImportedNewList\":\"I seguenti file sono nuovi e verranno importati normalmente:\\n{names}\",\"fileAlreadyImportedQuestion\":\"Vuoi collegare i file già presenti all'agente corrente?\",\"fileAlreadyLinkedToAgent\":\"I seguenti file sono già collegati all'agente corrente:\\n{names}\",\"fileLimitPerChat\":\"Hai raggiunto il limite di {max} file per questa conversazione.\",\"fileLimitPerMessage\":\"Puoi allegare al massimo {max} file per messaggio.\",\"foldersEmpty\":\"Nessuna cartella ancora. Crea la prima dalla pagina dei documenti per organizzarli.\",\"formRenderError\":\"Non è stato possibile mostrare il modulo. Chiedilo di nuovo e l'agente lo invierà.\",\"gdprRequestsEmpty\":\"Le richieste di esportazione o cancellazione dei dati di questo utente compaiono qui.\",\"geolocationPermissionDenied\":\"Accesso alla posizione negato. Consentilo nelle impostazioni del browser.\",\"geolocationUnavailable\":\"Posizione non disponibile. Riprova o inserisci la posizione manualmente.\",\"getMcpServerInfoError\":\"Il server non ha risposto con l'elenco dei suoi tool. Controlla che l'indirizzo sia giusto e che il server sia raggiungibile, poi riprova.\",\"importError\":\"Errore durante l'importazione\",\"importSuccess\":\"{count} documenti importati con successo\",\"importing\":\"Importazione in corso…\",\"info\":\"Informazione\",\"insufficientCredit\":\"Credito insufficiente. Riprova più tardi.\",\"insufficientCreditMessage\":\"Il tuo credito è insufficiente per completare questa operazione. Contatta l'amministratore del sistema per ulteriori informazioni.\",\"integrationConnected\":\"Connessione riuscita.\",\"integrationCreated\":\"Integrazione creata con successo\",\"integrationDisabled\":\"Integrazione disabilitata\",\"integrationDisconnected\":\"Connessione rimossa.\",\"integrationDisconnectConfirm\":\"Le cartelle sincronizzate vengono scollegate.\",\"integrationEnabled\":\"Integrazione abilitata\",\"integrationOAuthDenied\":\"La connessione è stata rifiutata, o manca ancora l’approvazione di un amministratore Microsoft 365.\",\"integrationOAuthFailed\":\"La connessione non è andata a buon fine.\",\"integrationOAuthStartFailed\":\"Non è stato possibile avviare la connessione.\",\"integrationRemoveConfirm\":\"La configurazione di questa integrazione viene rimossa.\",\"integrationTestFailed\":\"Verifica connessione fallita: {error}\",\"integrationTestSuccess\":\"Connessione verificata con successo\",\"integrationUpdated\":\"Integrazione aggiornata con successo\",\"invalidJson\":\"L'input non è un JSON valido\",\"invitationAccepted\":\"Invito accettato\",\"invitationAlreadyHandled\":\"Invito già gestito\",\"invitationDeclined\":\"Invito declinato\",\"invitationResent\":\"Invito inviato di nuovo a {email}\",\"invitationSent\":\"Invito inviato a {email}\",\"invitationToJoinOrganization\":\"Sei stato invitato a unirti a\",\"invitationsEmpty\":\"Nessun invito in sospeso. Invita le persone dalla pagina dei membri.\",\"leadSubmitError\":\"Invio fallito. Riprova per favore.\",\"leadSubmittedMessage\":\"La richiesta è stata inviata con successo.\",\"leadSubmittedTitle\":\"Grazie!\",\"leadsEmpty\":\"I lead raccolti dall'agente durante le conversazioni compariranno qui.\",\"leftOrganization\":\"Hai lasciato l'organizzazione con successo\",\"loadConversationsError\":\"Impossibile caricare le conversazioni\",\"loading\":\"Caricamento…\",\"loadingError\":\"Errore durante il caricamento\",\"mcpConnectionConnectedAt\":\"Accesso effettuato il {date}\",\"mcpConnectionDisconnectDescription\":\"Gli agenti non useranno più il tuo account {name}. La prossima volta che ti servirà, l'agente ti chiederà di accedere e potrai scegliere un altro account.\",\"mcpConnectionDisconnectQuestion\":\"Scollegare {name}?\",\"mcpConnectionDisconnected\":\"Account {name} scollegato\",\"mcpConnectionsDescription\":\"I servizi a cui hai effettuato l'accesso con il tuo account. Scollegane uno per impedire agli agenti di usarlo, o per accedere di nuovo con un account diverso.\",\"mcpConnectionsAvailableDescription\":\"Le integrazioni degli agenti che usi a cui non hai ancora effettuato l'accesso. Puoi collegarle ora, senza aspettare che l'agente te lo chieda.\",\"mcpConnectionConnected\":\"Account {name} collegato\",\"mcpConnectionConnectFailed\":\"Accesso a {name} non riuscito. Riprova: se l'errore si ripete, segnalalo a chi gestisce l'agente.\",\"mcpConnectionUsedBy\":\"Usata da {agents}\",\"mcpConnectionUsedByNone\":\"Nessun agente la usa\",\"noMcpConnections\":\"Nessuna integrazione collegata\",\"userMcpConnectionsEmpty\":\"Questo utente non ha effettuato l'accesso a nessuna integrazione con il proprio account.\",\"mcpConnectionRevokeQuestion\":\"Revocare l'accesso di {user} a {name}?\",\"mcpConnectionRevokeDescription\":\"Gli agenti non useranno più il suo account {name}. Chiediamo la revoca anche al fornitore, dove la supporta; altrimenti l'autorizzazione resta valida presso di lui fino alla scadenza. Per usarla di nuovo, {user} dovrà accedere di persona. Riceverà una notifica.\",\"mcpConnectionRevokedAtProvider\":\"Accesso a {name} revocato, anche presso il fornitore\",\"mcpConnectionRevokedHere\":\"Accesso a {name} revocato qui. Il fornitore non ha confermato la revoca: l'autorizzazione può restare valida presso di lui fino alla scadenza.\",\"mcpServerCheckError\":\"Errore durante la verifica del server MCP: {error}\",\"mcpServerCheckSuccess\":\"Verifica del server MCP riuscita\",\"mcpServerInvalidEndpoint\":\"Questo URL non punta a un endpoint MCP: il server ha risposto con una pagina web. Controlla il percorso, di solito i server MCP lo espongono sotto /mcp.\",\"mcpServersEmpty\":\"Nessun server MCP. Collega il primo per dare nuovi strumenti all'agente.\",\"membersEmpty\":\"Nessun membro. Invita il primo per iniziare.\",\"memoriesEmpty\":\"Le memorie che l'agente salva su questo utente durante le conversazioni compariranno qui.\",\"memoryNotSynced\":\"Memoria non sincronizzata con la ricerca semantica: non viene considerata nelle risposte finché lo sweep di riparazione non la ripristina.\",\"modelDiscoveryUnavailable\":\"Questo endpoint non fornisce l'elenco dei suoi modelli: inserisci gli id a mano.\",\"modelDiscoveryFailed\":\"Non siamo riusciti a leggere l'elenco dei modelli dall'endpoint: vedi solo quelli già salvati.\",\"modelPricesUnchanged\":\"Nessun prezzo è cambiato.\",\"modelPricesUpdated\":\"Aggiornato il prezzo di un modello: {models}. | Aggiornati i prezzi di {count} modelli: {models}.\",\"modelProviderDeleted\":\"Endpoint eliminato.\",\"moveDocumentSuccess\":\"Documento spostato con successo\",\"noActiveSessions\":\"Nessuna altra sessione attiva\",\"noApiKeys\":\"Nessuna chiave API\",\"noChats\":\"Nessuna chat disponibile\",\"noConnectedAccounts\":\"Nessun account collegato\",\"noConversations\":\"Nessuna conversazione trovata\",\"noConversationsHint\":\"Inizia una nuova chat per vederla comparire qui.\",\"noCreditsData\":\"Nessun dato crediti disponibile\",\"noEndpointLogs\":\"Ancora nessuna chiamata a questo endpoint\",\"noEndpointModels\":\"Nessun modello disponibile: l'endpoint non ne elenca nessuno.\",\"modelRemoved\":\"Modello rimosso.\",\"noGdprRequests\":\"Nessuna richiesta GDPR\",\"noLinkedAgents\":\"Nessun agente collegato\",\"noNotifications\":\"Nessuna notifica\",\"noOptions\":\"Nessun elemento\",\"noOrganizations\":\"Nessuna organizzazione\",\"noResults\":\"Nessun risultato trovato\",\"noSearchResults\":\"Nessun elemento corrisponde alla ricerca. Cancellala per vedere tutto.\",\"notificationsEmpty\":\"Nessuna notifica inviata. Crea la prima per raggiungere i tuoi utenti.\",\"oauthConfigIncomplete\":\"Configurazione OAuth incompleta. Imposta il Client ID nelle impostazioni del server MCP.\",\"oauthConnected\":\"Autorizzazione OAuth completata con successo\",\"oauthError\":\"Errore durante l'autorizzazione OAuth\",\"organizationDisconnected\":\"Né il gateway della piattaforma né un endpoint proprio servono questa organizzazione, quindi i suoi agenti non rispondono.\",\"organizationMembersEmpty\":\"Nessun membro. Aggiungi il primo per iniziare.\",\"organizationNotSelected\":\"Nessuna organizzazione selezionata\",\"organizationsEmpty\":\"Nessuna organizzazione. Crea la prima per iniziare.\",\"pageAccessNotice\":{\"forms\":\"L'agente può leggere questa pagina e compilarne i moduli.\",\"full\":\"L'agente può leggere e usare questa pagina al posto tuo: lo vedrai agire e potrai fermarlo.\",\"read\":\"L'agente può leggere questa pagina.\"},\"pageNotFound\":\"Pagina non trovata\",\"passwordChangeSuccess\":\"Password cambiata con successo\",\"passwordResetSuccess\":\"Password reimpostata. Tutte le sessioni dell'account sono state chiuse: accedi con la nuova password.\",\"profileOrganizationsEmpty\":\"Le organizzazioni di cui fai parte compaiono qui.\",\"readError\":\"Errore durante la lettura\",\"reasoningAgent\":\"Questo è un agente di ragionamento. Non è progettato per mantenere la storia della conversazione, ogni messaggio è processato indipendentemente.\",\"recoverPasswordSuccess\":\"Email di recupero inviata con successo\",\"refillFailed\":\"Ricarica fallita. Riprova più tardi.\",\"refillSuccess\":\"Ricarica completata con successo\",\"refreshSuccess\":\"Aggiornamento completato con successo\",\"releaseNotesEmpty\":\"Nessuna nota di rilascio pubblicata. Gli aggiornamenti compariranno qui man mano che escono.\",\"removeSuccess\":\"Eliminazione completata con successo\",\"renameFolderSuccess\":\"Cartella rinominata con successo\",\"revisedAnswersEmpty\":\"Nessuna risposta revisionata. Crea la prima per insegnare all'agente una risposta migliore.\",\"selectedCount\":\"{count} di {total} selezionati\",\"sendInvitationConfirm\":\"Sei sicuro di voler inviare nuovamente l'invito a {email}?\",\"sessionRevoked\":\"Sessione disconnessa\",\"sessionsEmpty\":\"Un accesso da un altro dispositivo o browser apre una nuova sessione, elencata qui.\",\"setPasswordDescription\":\"Per ora accedi solo tramite un account collegato. Imposta una password per entrare anche con email e password: ti inviamo un link per crearla. Crearla chiude tutte le sessioni aperte, anche questa.\",\"setPasswordLinkSent\":\"Ti abbiamo mandato il link a {email}.\",\"sharedSuccess\":\"Documento condiviso con successo\",\"sitemapUrlRequired\":\"L'URL della sitemap è richiesto\",\"startUrlRequired\":\"L'URL di partenza è richiesto\",\"subAgentsEmpty\":\"Collega un agente per delegargli una parte della conversazione.\",\"submitError\":\"Errore durante il salvataggio\",\"submitSuccess\":\"Salvataggio completato con successo\",\"success\":\"Successo\",\"testExecutionError\":\"Errore nell'esecuzione del test\",\"typeToSearch\":\"Inizia a digitare per cercare…\",\"unauthorized\":\"Non hai i permessi per gestire i canali.\",\"unbanSuccess\":\"Utente sbannato con successo\",\"unblockChatSuccess\":\"Conversazione sbloccata con successo\",\"unlinkAgentConfirm\":\"Il documento resta disponibile per gli altri agenti collegati.\",\"unlinkDocumentConfirm\":\"Resta disponibile per gli altri agenti collegati.\",\"unlinkLastAgentDeleteConfirm\":\"Il documento viene eliminato definitivamente, perché nessun altro agente è collegato.\",\"unlinkSuccess\":\"Documento disassociato con successo\",\"unlinkSyncedFolderConfirm\":\"La sincronizzazione si ferma. La cartella e i suoi documenti restano all'agente e da ora si modificano come gli altri: per toglierli, elimina la cartella.\",\"unsavedChanges\":\"Salva o annulla le modifiche prima\",\"urlAlreadyImported\":\"Già importato\",\"urlAlreadyImportedLink\":\"Questo URL è già stato importato. Vuoi collegarlo all'agente corrente?\",\"userApiKeysEmpty\":\"Le chiavi che questo utente crea dal proprio profilo per l'accesso programmatico compariranno qui.\",\"userChatsEmpty\":\"Le conversazioni di questo utente con qualsiasi agente compariranno qui.\",\"userOrganizationsEmpty\":\"L'utente non appartiene ancora a nessuna organizzazione. Aggiungi la prima.\",\"userUpdateSuccess\":\"Profilo utente aggiornato con successo\",\"usersEmpty\":\"Nessun utente. Crea il primo per iniziare.\",\"voiceCancelled\":\"Ho annullato.\",\"voiceConfirmed\":\"Confermo.\",\"voiceConnecting\":\"Connessione…\",\"voiceConnectionDone\":\"Ho completato il collegamento.\",\"voiceFailed\":\"La sessione vocale si è interrotta\",\"voiceInterrupted\":\"Riprova, oppure continua per iscritto.\",\"voiceListening\":\"In ascolto\",\"voiceLocationRefused\":\"Preferisco non condividere la mia posizione.\",\"voiceLocationShared\":\"La mia posizione è {place}.\",\"voiceMuted\":\"Microfono disattivato\",\"voiceNoAnswer\":\"L'agente non è riuscito a produrre una risposta per questa chiamata. Riprova, oppure continua per iscritto.\",\"voiceSpeaking\":\"L'agente sta parlando\",\"voiceTookTooLong\":\"La risposta ha impiegato troppo tempo per la chiamata. Riprova, oppure continua per iscritto: la risposta comparirà qui appena pronta.\",\"warning\":\"Attenzione\",\"webSourceCreated\":\"Sorgente creata: la cartella «{name}» riceverà le pagine nuove.\",\"webSourceCreateError\":\"Non è stato possibile creare la sorgente, e nessuna pagina è stata importata.\",\"webSourceEditable\":\"Le pagine scoperte restano modificabili. Scollegare la sorgente le lascia dove sono, con il loro aggiornamento automatico.\",\"webSourceRemovalHeld\":\"La sitemap non elenca più {count} pagine: sono troppe in una volta per rimuoverle senza un controllo, e non è stato rimosso niente.\",\"webSourceConfirmRemovalQuestion\":\"Il prossimo controllo toglie dalla knowledge base le pagine che la sitemap non elenca più, fino a {count}. Il loro contenuto resta nel database.\",\"unlinkWebSourceConfirm\":\"La sorgente smette di cercare pagine nuove. La cartella e le sue pagine restano, con il loro aggiornamento automatico.\",\"contactFormRecord\":\"L'agente ha mostrato il modulo di contatto. Se l'utente l'ha inviato, il contatto è in Contatti.\",\"contactFormRecordPrefilled\":\"L'agente ha mostrato il modulo di contatto con questi dati. Se l'utente l'ha inviato, il contatto è in Contatti.\",\"documentsEmptyTitle\":\"Ancora nessun documento\",\"documentsEmptyFolderTitle\":\"Questa cartella è vuota\",\"mcpServerToolsUnavailable\":\"Tool non disponibili\"}"),
|
|
1442
|
+
chatFilePreview: {
|
|
1443
|
+
preview: "Anteprima",
|
|
1444
|
+
unpaged: "Anteprima non impaginata",
|
|
1445
|
+
versionUnpaged: "Versione {version}, anteprima non impaginata",
|
|
1446
|
+
download: "Scarica",
|
|
1447
|
+
close: "Chiudi l'anteprima",
|
|
1448
|
+
revisionsOf: "Revisioni da accettare di {authors}:",
|
|
1449
|
+
removed: "tolto",
|
|
1450
|
+
added: "aggiunto",
|
|
1451
|
+
revisionBy: "Revisione di {author}",
|
|
1452
|
+
image: "Immagine",
|
|
1453
|
+
truncated: "L'anteprima si ferma qui: il resto del documento è nel file da scaricare.",
|
|
1454
|
+
versionFirstRows: "Versione {version}, le prime righe di ogni foglio",
|
|
1455
|
+
firstRows: "Le prime righe di ogni foglio",
|
|
1456
|
+
true: "VERO",
|
|
1457
|
+
false: "FALSO",
|
|
1458
|
+
staleFormulas: "I valori con il trattino si aggiornano quando apri il file in Excel.",
|
|
1459
|
+
missingValue: "Calcolato quando apri il file in Excel",
|
|
1460
|
+
emptySheet: "Questo foglio è vuoto.",
|
|
1461
|
+
moreRows: "Nel file c'è un'altra riga. | Nel file ci sono altre {count} righe.",
|
|
1462
|
+
moreColumns: "Nel file c'è un'altra colonna. | Nel file ci sono altre {count} colonne.",
|
|
1463
|
+
unavailable: "L'anteprima di questo documento non è disponibile: scaricalo per aprirlo in Word."
|
|
1464
|
+
},
|
|
1442
1465
|
messagePart: {
|
|
1443
1466
|
audioTranscribing: "Trascrizione dell'audio…",
|
|
1444
1467
|
audioTranscript: "Trascrizione",
|
|
@@ -1470,6 +1493,11 @@ var hr = {
|
|
|
1470
1493
|
chatFileAfter: "Dopo",
|
|
1471
1494
|
chatFileRefreshPivots: "Le tabelle pivot mostrano ancora i dati di prima: aggiornale in Excel con Dati, Aggiorna tutto.",
|
|
1472
1495
|
chatFileUpdateTableOfContents: "L'indice non si aggiorna da solo: in Word fai clic destro sull'indice e scegli Aggiorna campo.",
|
|
1496
|
+
chatFileRevisionAccepted: "Revisione accettata",
|
|
1497
|
+
chatFileRevisionRejected: "Revisione rifiutata",
|
|
1498
|
+
chatFileRestored: "Versione {version}: ripristinata la versione {restored}",
|
|
1499
|
+
chatFileRestore: "Ripristina",
|
|
1500
|
+
chatFileRestoreRequest: "Ripristina la versione {version} di {filename}",
|
|
1473
1501
|
enableTools: "Attivazione dei tool…",
|
|
1474
1502
|
expandChunkContext: "Lettura di altro contesto…",
|
|
1475
1503
|
fetchTeamsChannelHistory: "Lettura cronologia canale…",
|
|
@@ -1771,6 +1799,7 @@ var hr = {
|
|
|
1771
1799
|
"header-origin-changed": "L'URL punta a un altro host: riscrivi i valori degli header, quelli salvati restano legati all'host precedente.",
|
|
1772
1800
|
"header-url-host-placeholder": "Un tool con header ha bisogno di un host fisso: schema, host e porta del suo URL non possono contenere un segnaposto che compila il modello.",
|
|
1773
1801
|
"header-value-missing": "Un header non ha valore: scrivilo, oppure togli l'header.",
|
|
1802
|
+
"last-owner": "Un'organizzazione deve avere almeno un proprietario: prima nomina proprietario un altro membro.",
|
|
1774
1803
|
"restricted-agent-platform": "Un agente Privato non si collega a Teams e WhatsApp: lì chi scrive al bot usa l'agente senza che nessuno controlli chi è. Scegli un'altra visibilità, oppure spegni prima i collegamenti dell'agente.",
|
|
1775
1804
|
"restricted-sub-agent": "Un agente Privato può essere sotto-agente solo di un altro agente Privato: chi usa un agente usa anche i suoi sotto-agenti, senza controlli su di loro. Rendi prima Privato questo agente, oppure scegli un altro sotto-agente.",
|
|
1776
1805
|
"restricted-sub-agent-links": "Questa visibilità non è compatibile con i collegamenti di sotto-agente con {agents}: un agente Privato può essere sotto-agente solo di un altro agente Privato, perché chi usa un agente usa anche i suoi sotto-agenti. Rimuovi prima quei collegamenti, oppure scegli un'altra visibilità.",
|
|
@@ -3460,6 +3489,29 @@ var hr = {
|
|
|
3460
3489
|
extracted: "Extracted | Extracted"
|
|
3461
3490
|
},
|
|
3462
3491
|
message: /* @__PURE__ */ JSON.parse("{\"accountLinkAlreadyLinked\":\"This account is already linked to another user. Sign in with that user to unlink it first.\",\"accountLinkCancelled\":\"Linking was cancelled on the provider's page. Nothing was changed.\",\"accountLinkEmailMismatch\":\"You can only link accounts that use the same email as your profile.\",\"accountLinkErrorWithCode\":\"Unable to link the account (code: {code}). Try again or contact support with this code.\",\"accountLinkNotAllowed\":\"This provider cannot be linked to your profile: the account's email is not verified or linking is disabled.\",\"accountLinkUserInfo\":\"The provider did not return a usable profile, so no account was linked. Try again.\",\"accountUnlinked\":\"Account disconnected\",\"agentAccessDenied\":\"You do not have access to this agent\",\"agentAccessDeniedAction\":\"View available agents\",\"agentActivated\":\"Agent activated successfully\",\"agentDeactivated\":\"Agent deactivated successfully\",\"agentNotFound\":\"Agent not found\",\"agentsEmpty\":\"No agents yet. Create the first one to get started.\",\"analyzeChatError\":\"The analysis did not complete. Try again in a few minutes.\",\"analyzeChatInProgress\":\"Analyzing the conversation. A long conversation can take about a minute.\",\"analyzeChatSuccess\":\"Conversation analyzed successfully\",\"apiKeyCreatedForUser\":\"Shown only once: copy it and pass it on securely.\",\"apiKeysEmpty\":\"The keys you create for programmatic access appear here.\",\"apiToolsEmpty\":\"No API tools yet. Add the first one to let the agent call an external service.\",\"banSuccess\":\"User banned successfully\",\"blockChatSuccess\":\"Conversation blocked successfully\",\"bulkUnlinkAllDeleteConfirm\":\"{count} document(s) will be permanently deleted because they have no other linked agents. Do you want to proceed?\",\"bulkUnlinkMixedConfirm\":\"{unlinkCount} document(s) will be unlinked and {deleteCount} will be permanently deleted (they have no other linked agents). Do you want to proceed?\",\"cancelInvitationConfirm\":\"Are you sure you want to cancel the invitation for {email}?\",\"cancelInvitationSuccess\":\"Invitation cancelled successfully\",\"chatActionError\":\"The action did not complete. Try again in a few minutes.\",\"chatAnonymized\":\"The content of this conversation has been erased (GDPR): only aggregate metrics remain.\",\"chatErrorBadRequest\":\"An error occurred with the request. Start a new chat to continue.\",\"chatErrorContextWindow\":\"The conversation has become too long. Start a new chat to continue.\",\"chatErrorConversationBlocked\":\"This conversation has been blocked for policy violations.\",\"backgroundAnswerReady\":\"The agent answered in “{title}”\",\"backgroundAnswerReadyUntitled\":\"The agent answered in another conversation\",\"chatErrorCreditExhausted\":\"Service unavailable. Try again later.\",\"chatErrorGatewayDisabled\":\"This agent's model is not available: the organization does not use the platform AI gateway. An administrator can move the agent to one of the organization's own models.\",\"chatErrorGatewayPromptTraining\":\"Model \\\"{model}\\\" does not support the \\\"Disable prompt training\\\" option. Disable this setting in the agent's gateway configuration or choose a compatible model.\",\"chatErrorGatewayZdr\":\"Model \\\"{model}\\\" does not support the \\\"Zero Data Retention\\\" option. Disable ZDR in the agent's gateway configuration or choose a compatible model.\",\"chatErrorGeneric\":\"An error occurred. Start a new chat if the problem persists. Retrying in {seconds}…\",\"chatErrorInternalServer\":\"A server error occurred. Start a new chat to continue.\",\"chatErrorModelUnavailable\":\"This agent's model is not available right now: the endpoint it runs on is switched off or no longer serves it. An administrator can switch it back on or move the agent to another model.\",\"chatErrorNotFound\":\"The conversation is no longer available. Start a new chat to continue.\",\"chatErrorOriginNotAllowed\":\"The request origin is not allowed. Contact the system administrator.\",\"chatErrorRateLimit\":\"The rate limit has been exceeded. Retrying in {seconds} seconds…\",\"chatErrorRetrying\":\"Retrying in {seconds} seconds…\",\"checkYourEmail\":\"Check your email inbox\",\"confirm\":\"Are you sure you want to proceed?\",\"confirmRefillCredits\":\"Are you sure you want to refill the credit of {amount} €?\",\"contentTruncated\":\"Content truncated. Total characters: {total}\",\"copied\":\"Copied to clipboard\",\"crawlError\":\"Error during crawling\",\"createFolderSuccess\":\"Folder created successfully\",\"defaultAgentWelcome\":\"Hello! How can I help you today?\",\"defaultPrivacyPolicyNotice\":\"By sending the request you accept our [Privacy Policy](https://www.iubenda.com/privacy-policy/46350192).\",\"deleteAgentConfirm\":\"Its folders are deleted. A document no other agent uses is deleted, a shared one stays with the other agents.\",\"deleteAllMemoriesConfirm\":\"They go for good, semantic search included.\",\"deleteAllNotificationsConfirm\":\"Delete every notification?\",\"deleteBulkDocumentConfirm\":\"They are removed from every agent linked to them and go to the trash, where they can be restored.\",\"deleteDocumentConfirm\":\"It is removed from every agent linked to it and goes to the trash, where it can be restored.\",\"deleteDocumentConfirmWithAgents\":\"It goes to the trash, where it can be restored, and is removed from the following agents:{agents}\",\"deleteError\":\"The deletion failed. Try again.\",\"deleteFolderConfirm\":\"Its documents are removed from this agent. A document no other agent uses is deleted.\",\"deleteFolderSuccess\":\"Folder deleted successfully\",\"deleteMyConversationsConfirm\":\"This cannot be undone.\",\"deleteNotificationConfirm\":\"Delete this notification?\",\"deleteProfileBlockedSoleOwner\":\"You are the sole owner of {organizations}. Transfer ownership or delete the organizations before deleting your account.\",\"deleteProfileConfirm\":\"You are about to permanently delete your account: your profile will be anonymized and the content of your conversations erased. This action cannot be undone.\",\"deleteProfileDescription\":\"Anonymize your account and erase the content of your conversations (right to be forgotten).\",\"diagramRenderError\":\"Could not render diagram.\",\"documentRefreshPausedReason\":\"The page no longer responds, so the automatic update is paused. Update now to try again.\",\"documentRefreshSet\":\"Automatic update set on {updated} documents, {skipped} skipped because they are not web pages\",\"documentRefreshStarted\":\"Update started on {queued} documents, {skipped} skipped\",\"documentsEmpty\":\"Create a document or a folder here. To import from a website or a connected service, use the Create menu.\",\"documentsEmptyManaged\":\"No synced files in this folder. Its content comes from the connected source: if you have just linked it, the first import can take a few minutes.\",\"documentsNoMatch\":\"No document matches the search or the filters. Reset them to see everything.\",\"documentSourceLinked\":\"Folder linked. The first import starts shortly.\",\"documentSourceNothingHere\":\"Nothing in here.\",\"documentSourceStale\":\"The state of this folder is not up to date: the last read failed.\",\"documentSourceUnlinked\":\"Folder unlinked. Its documents stay, and can now be edited like any other.\",\"embeddingActivated\":\"Embedding saved: the endpoint serves the declared model\",\"embeddingBackToPlatform\":\"The vectors are computed on the platform again\",\"embeddingIndexNotUpdated\":\"The progress stopped updating.\",\"embeddingRemoved\":\"Embedding removed from the endpoint\",\"empty\":\"No items found\",\"endpointActivated\":\"Endpoint activated successfully\",\"endpointDeactivated\":\"Endpoint deactivated successfully\",\"endpointsEmpty\":\"No endpoints yet. Create the first one to expose the agent over HTTP.\",\"error\":\"Error\",\"errorRetry\":\"Something went wrong. Try again.\",\"exportError\":\"Error while exporting data\",\"exportFailed\":\"The data export failed. Try again later.\",\"exportMyDataDescription\":\"Download a complete copy of your personal data as a ZIP archive (GDPR Art. 15 and 20).\",\"exportRequested\":\"We are preparing your archive: you will receive an email with the download link.\",\"exportSuccess\":\"CSV exported successfully\",\"feedbackSubmitError\":\"Submission failed. Try again.\",\"feedbackSubmittedMessage\":\"Your feedback has been submitted successfully.\",\"feedbackSubmittedTitle\":\"Thank you!\",\"feedbacksEmpty\":\"Feedback that users leave on the agent's answers will appear here.\",\"fileAlreadyImported\":\"Already imported\",\"fileAlreadyImportedExistingList\":\"The following files are already present in the organization:\\n{names}\",\"fileAlreadyImportedLink\":\"This file has already been imported. Do you want to link the existing document to the current agent or create a new one?\",\"fileAlreadyImportedNewList\":\"The following files are new and will be imported normally:\\n{names}\",\"fileAlreadyImportedQuestion\":\"Do you want to link the existing files to the current agent?\",\"fileAlreadyLinkedToAgent\":\"The following files are already linked to the current agent:\\n{names}\",\"fileLimitPerChat\":\"You have reached the limit of {max} files for this conversation.\",\"fileLimitPerMessage\":\"You can attach at most {max} files per message.\",\"foldersEmpty\":\"No folders yet. Create the first one from the documents page to organize them.\",\"formRenderError\":\"The form could not be shown. Ask again and the agent will send it.\",\"gdprRequestsEmpty\":\"Export or deletion requests for this user appear here.\",\"geolocationPermissionDenied\":\"Location access denied. Allow it in your browser settings.\",\"geolocationUnavailable\":\"Location unavailable. Try again or enter your location manually.\",\"getMcpServerInfoError\":\"The server did not answer with its list of tools. Check that the address is right and that the server is reachable, then try again.\",\"importError\":\"Error during import\",\"importSuccess\":\"{count} documents imported successfully\",\"importing\":\"Importing…\",\"info\":\"Information\",\"insufficientCredit\":\"Insufficient credit. Try again later.\",\"insufficientCreditMessage\":\"Your credit is insufficient to complete this operation. Contact the system administrator for more information.\",\"integrationConnected\":\"Connected successfully.\",\"integrationCreated\":\"Integration created successfully\",\"integrationDisabled\":\"Integration disabled\",\"integrationDisconnected\":\"Connection removed.\",\"integrationDisconnectConfirm\":\"The folders it keeps in sync are unlinked.\",\"integrationEnabled\":\"Integration enabled\",\"integrationOAuthDenied\":\"The connection was refused, or a Microsoft 365 administrator has not approved it yet.\",\"integrationOAuthFailed\":\"The connection did not succeed.\",\"integrationOAuthStartFailed\":\"The connection could not be started.\",\"integrationRemoveConfirm\":\"This integration's configuration is removed.\",\"integrationTestFailed\":\"Connection test failed: {error}\",\"integrationTestSuccess\":\"Connection verified successfully\",\"integrationUpdated\":\"Integration updated successfully\",\"invalidJson\":\"The input is not valid JSON\",\"invitationAccepted\":\"Invitation accepted\",\"invitationAlreadyHandled\":\"Invitation already handled\",\"invitationDeclined\":\"Invitation declined\",\"invitationResent\":\"Invitation sent again to {email}\",\"invitationSent\":\"Invitation sent to {email}\",\"invitationToJoinOrganization\":\"You have been invited to join\",\"invitationsEmpty\":\"No pending invitations. Invite people from the members page.\",\"leadSubmitError\":\"Failed to submit. Try again.\",\"leadSubmittedMessage\":\"Your information has been submitted successfully.\",\"leadSubmittedTitle\":\"Thank you!\",\"leadsEmpty\":\"Leads collected by the agent during conversations will appear here.\",\"leftOrganization\":\"You have successfully left the organization\",\"loadConversationsError\":\"Failed to load conversations\",\"loading\":\"Loading…\",\"loadingError\":\"Error while loading\",\"mcpConnectionConnectedAt\":\"Signed in on {date}\",\"mcpConnectionDisconnectDescription\":\"The agents will no longer use your {name} account. The next time you need it, the agent will ask you to sign in, and you can choose a different account.\",\"mcpConnectionDisconnectQuestion\":\"Disconnect {name}?\",\"mcpConnectionDisconnected\":\"{name} account disconnected\",\"mcpConnectionsDescription\":\"The services you signed in to with your account. Disconnect one to stop the agents from using it, or to sign in again with a different account.\",\"mcpConnectionsAvailableDescription\":\"The integrations of the agents you use that you have not signed in to yet. You can connect them now, without waiting for the agent to ask.\",\"mcpConnectionConnected\":\"{name} account connected\",\"mcpConnectionConnectFailed\":\"Signing in to {name} did not work. Try again, and if it keeps failing, tell whoever runs the agent.\",\"mcpConnectionUsedBy\":\"Used by {agents}\",\"mcpConnectionUsedByNone\":\"No agent uses it\",\"noMcpConnections\":\"No connected integrations\",\"userMcpConnectionsEmpty\":\"This user has not signed in to any integration with their own account.\",\"mcpConnectionRevokeQuestion\":\"Revoke {user}'s sign-in to {name}?\",\"mcpConnectionRevokeDescription\":\"The agents will no longer use their {name} account. The provider is asked to revoke it too, where it supports that; otherwise the authorization stays valid there until it expires. To use it again, {user} has to sign in themselves. They will receive a notification.\",\"mcpConnectionRevokedAtProvider\":\"Sign-in to {name} revoked, at the provider too\",\"mcpConnectionRevokedHere\":\"Sign-in to {name} revoked here. The provider did not confirm the revocation: the authorization may stay valid there until it expires.\",\"mcpServerCheckError\":\"Error while checking MCP Server: {error}\",\"mcpServerCheckSuccess\":\"MCP Server check successful\",\"mcpServerInvalidEndpoint\":\"This URL does not point to an MCP endpoint: the server replied with a web page. Check the path, MCP servers usually expose it under /mcp.\",\"mcpServersEmpty\":\"No MCP servers yet. Connect the first one to give the agent new tools.\",\"membersEmpty\":\"No members yet. Invite the first one to get started.\",\"memoriesEmpty\":\"Memories the agent saves about this user during conversations will appear here.\",\"memoryNotSynced\":\"Memory not synced with semantic search: it is not considered in answers until the repair sweep heals it.\",\"modelDiscoveryUnavailable\":\"This endpoint does not provide the list of its models: enter the ids by hand.\",\"modelDiscoveryFailed\":\"We could not read the list of models from the endpoint: only the models already saved are shown.\",\"modelPricesUnchanged\":\"No price changed.\",\"modelPricesUpdated\":\"Updated the price of one model: {models}. | Updated the prices of {count} models: {models}.\",\"modelProviderDeleted\":\"Endpoint deleted.\",\"moveDocumentSuccess\":\"Document moved successfully\",\"noActiveSessions\":\"No other active sessions\",\"noApiKeys\":\"No API keys\",\"noChats\":\"No chat available\",\"noConnectedAccounts\":\"No connected accounts\",\"noConversations\":\"No conversations found\",\"noConversationsHint\":\"Start a new chat to see it appear here.\",\"noCreditsData\":\"No credit data available\",\"noEndpointLogs\":\"No calls to this endpoint yet\",\"noEndpointModels\":\"No model available: the endpoint listed none.\",\"modelRemoved\":\"Model removed.\",\"noGdprRequests\":\"No GDPR requests\",\"noLinkedAgents\":\"No linked agents\",\"noNotifications\":\"No notifications\",\"noOptions\":\"No options\",\"noOrganizations\":\"No organizations\",\"noResults\":\"No results\",\"noSearchResults\":\"Nothing matches your search. Clear it to see everything.\",\"notificationsEmpty\":\"No notifications sent yet. Create the first one to reach your users.\",\"oauthConfigIncomplete\":\"OAuth configuration incomplete. Set the Client ID in the MCP server settings.\",\"oauthConnected\":\"OAuth authorization completed successfully\",\"oauthError\":\"Error during OAuth authorization\",\"organizationDisconnected\":\"Neither the platform gateway nor an endpoint of its own serves this organization, so its agents do not answer.\",\"organizationMembersEmpty\":\"No members yet. Add the first one to get started.\",\"organizationNotSelected\":\"No organization selected\",\"organizationsEmpty\":\"No organizations yet. Create the first one to get started.\",\"pageAccessNotice\":{\"forms\":\"The agent can read this page and fill in its forms.\",\"full\":\"The agent can read and use this page for you: you will see it act and can stop it.\",\"read\":\"The agent can read this page.\"},\"pageNotFound\":\"Page not found\",\"passwordChangeSuccess\":\"Password changed successfully\",\"passwordResetSuccess\":\"Password reset. Every session of the account has been closed: sign in with the new password.\",\"profileOrganizationsEmpty\":\"The organizations you belong to appear here.\",\"readError\":\"Error while reading\",\"reasoningAgent\":\"This is a reasoning agent. It is not designed to maintain the conversation history, each message is processed independently.\",\"recoverPasswordSuccess\":\"Recovery email sent successfully\",\"refillFailed\":\"Refill failed. Try again later.\",\"refillSuccess\":\"Refill completed successfully\",\"refreshSuccess\":\"Refresh completed successfully\",\"releaseNotesEmpty\":\"No release notes published yet. Updates will be listed here as they ship.\",\"removeSuccess\":\"Removal completed successfully\",\"renameFolderSuccess\":\"Folder renamed successfully\",\"revisedAnswersEmpty\":\"No revised answers yet. Create the first one to teach the agent a better reply.\",\"selectedCount\":\"{count} of {total} selected\",\"sendInvitationConfirm\":\"Are you sure you want to resend the invitation to {email}?\",\"sessionRevoked\":\"Session signed out\",\"sessionsEmpty\":\"Signing in from another device or browser opens a new session, listed here.\",\"setPasswordDescription\":\"For now you sign in only through a connected account. Set a password to sign in with email and password too: we will email you a link to create it. Creating it closes every open session, this one included.\",\"setPasswordLinkSent\":\"We sent the link to {email}.\",\"sharedSuccess\":\"Document shared successfully\",\"sitemapUrlRequired\":\"Sitemap URL is required\",\"startUrlRequired\":\"Start URL is required\",\"subAgentsEmpty\":\"Connect an agent to delegate part of the conversation to it.\",\"submitError\":\"Error while saving\",\"submitSuccess\":\"Save completed successfully\",\"success\":\"Success\",\"testExecutionError\":\"Error executing test\",\"typeToSearch\":\"Start typing to search…\",\"unauthorized\":\"You do not have permission to manage channels.\",\"unbanSuccess\":\"User unbanned successfully\",\"unblockChatSuccess\":\"Conversation unblocked successfully\",\"unlinkAgentConfirm\":\"The document stays available to the other agents linked to it.\",\"unlinkDocumentConfirm\":\"It stays available to the other agents linked to it.\",\"unlinkLastAgentDeleteConfirm\":\"The document is permanently deleted, because no other agent is linked to it.\",\"unlinkSuccess\":\"Document unlinked successfully\",\"unlinkSyncedFolderConfirm\":\"Syncing stops. The folder and its documents stay with the agent and can be edited like any other from now on: to remove them, delete the folder.\",\"unsavedChanges\":\"Save or discard your changes first\",\"urlAlreadyImported\":\"Already imported\",\"urlAlreadyImportedLink\":\"This URL has already been imported. Do you want to link it to the current agent?\",\"userApiKeysEmpty\":\"Keys this user creates from their profile for programmatic access will appear here.\",\"userChatsEmpty\":\"Conversations this user has with any agent will appear here.\",\"userOrganizationsEmpty\":\"This user does not belong to any organization yet. Add the first one.\",\"userUpdateSuccess\":\"User profile updated successfully\",\"usersEmpty\":\"No users yet. Create the first one to get started.\",\"voiceCancelled\":\"I have cancelled.\",\"voiceConfirmed\":\"I confirm.\",\"voiceConnecting\":\"Connecting…\",\"voiceConnectionDone\":\"I have completed the connection.\",\"voiceFailed\":\"The voice session stopped\",\"voiceInterrupted\":\"Try again, or continue in writing.\",\"voiceListening\":\"Listening\",\"voiceLocationRefused\":\"I would rather not share my location.\",\"voiceLocationShared\":\"My location is {place}.\",\"voiceMuted\":\"Microphone muted\",\"voiceNoAnswer\":\"The agent could not produce an answer for this call. Try again, or continue in writing.\",\"voiceSpeaking\":\"The agent is speaking\",\"voiceTookTooLong\":\"The answer took too long for the call. Try again, or continue in writing: the answer will appear here as soon as it is ready.\",\"warning\":\"Warning\",\"webSourceCreated\":\"Source created: the folder “{name}” will receive new pages.\",\"webSourceCreateError\":\"The source could not be created, and no page was imported.\",\"webSourceEditable\":\"Discovered pages stay editable. Unlinking the source leaves them where they are, with their automatic refresh.\",\"webSourceRemovalHeld\":\"The sitemap no longer lists {count} pages: too many at once to remove without a check, so nothing was removed.\",\"webSourceConfirmRemovalQuestion\":\"The next check takes out of the knowledge base the pages the sitemap no longer lists, up to {count}. Their content stays in the database.\",\"unlinkWebSourceConfirm\":\"The source stops looking for new pages. The folder and its pages stay, with their automatic refresh.\",\"contactFormRecord\":\"The agent showed the contact form. If the user sent it, the contact is in Contacts.\",\"contactFormRecordPrefilled\":\"The agent showed the contact form with these details. If the user sent it, the contact is in Contacts.\",\"documentsEmptyTitle\":\"No documents yet\",\"documentsEmptyFolderTitle\":\"This folder is empty\",\"mcpServerToolsUnavailable\":\"Tools not available\"}"),
|
|
3492
|
+
chatFilePreview: {
|
|
3493
|
+
preview: "Preview",
|
|
3494
|
+
unpaged: "Preview, not paginated",
|
|
3495
|
+
versionUnpaged: "Version {version}, preview not paginated",
|
|
3496
|
+
download: "Download",
|
|
3497
|
+
close: "Close the preview",
|
|
3498
|
+
revisionsOf: "Tracked changes by {authors}, not accepted yet:",
|
|
3499
|
+
removed: "removed",
|
|
3500
|
+
added: "added",
|
|
3501
|
+
revisionBy: "Tracked change by {author}",
|
|
3502
|
+
image: "Image",
|
|
3503
|
+
truncated: "The preview stops here: the rest of the document is in the file to download.",
|
|
3504
|
+
versionFirstRows: "Version {version}, the first rows of each sheet",
|
|
3505
|
+
firstRows: "The first rows of each sheet",
|
|
3506
|
+
true: "TRUE",
|
|
3507
|
+
false: "FALSE",
|
|
3508
|
+
staleFormulas: "Values shown with a dash update when you open the file in Excel.",
|
|
3509
|
+
missingValue: "Computed when you open the file in Excel",
|
|
3510
|
+
emptySheet: "This sheet is empty.",
|
|
3511
|
+
moreRows: "The file holds one more row. | The file holds {count} more rows.",
|
|
3512
|
+
moreColumns: "The file holds one more column. | The file holds {count} more columns.",
|
|
3513
|
+
unavailable: "This document has no preview: download it to open it in Word."
|
|
3514
|
+
},
|
|
3463
3515
|
messagePart: {
|
|
3464
3516
|
audioTranscribing: "Transcribing the audio…",
|
|
3465
3517
|
audioTranscript: "Transcript",
|
|
@@ -3491,6 +3543,11 @@ var hr = {
|
|
|
3491
3543
|
chatFileAfter: "After",
|
|
3492
3544
|
chatFileRefreshPivots: "The pivot tables still show the old figures: refresh them in Excel with Data, Refresh All.",
|
|
3493
3545
|
chatFileUpdateTableOfContents: "The table of contents does not update by itself: in Word, right click it and choose Update Field.",
|
|
3546
|
+
chatFileRevisionAccepted: "Revision accepted",
|
|
3547
|
+
chatFileRevisionRejected: "Revision rejected",
|
|
3548
|
+
chatFileRestored: "Version {version}: version {restored} restored",
|
|
3549
|
+
chatFileRestore: "Restore",
|
|
3550
|
+
chatFileRestoreRequest: "Restore version {version} of {filename}",
|
|
3494
3551
|
enableTools: "Enabling tools…",
|
|
3495
3552
|
expandChunkContext: "Reading more context…",
|
|
3496
3553
|
fetchTeamsChannelHistory: "Reading channel history…",
|
|
@@ -3792,6 +3849,7 @@ var hr = {
|
|
|
3792
3849
|
"header-origin-changed": "The URL points to another host: type the values of the headers again, the saved ones stay with the previous host.",
|
|
3793
3850
|
"header-url-host-placeholder": "A tool with headers needs a fixed host: the scheme, host and port of its URL cannot hold a placeholder the model fills in.",
|
|
3794
3851
|
"header-value-missing": "A header has no value: type it, or remove the header.",
|
|
3852
|
+
"last-owner": "An organization needs at least one owner: make another member an owner first.",
|
|
3795
3853
|
"restricted-agent-platform": "A Private agent cannot be connected to Teams or WhatsApp: there whoever writes to the bot uses the agent, and nobody checks who they are. Choose another visibility, or switch the agent's connections off first.",
|
|
3796
3854
|
"restricted-sub-agent": "A Private agent can be a sub-agent only of another Private agent: whoever uses an agent also uses its sub-agents, and is not checked on them. Make this agent Private first, or choose another sub-agent.",
|
|
3797
3855
|
"restricted-sub-agent-links": "This visibility is not allowed by the sub-agent links with {agents}: a Private agent can be a sub-agent only of another Private agent, since whoever uses an agent also uses its sub-agents. Remove those links first, or choose another visibility.",
|
|
@@ -6904,6 +6962,9 @@ function xc(e) {
|
|
|
6904
6962
|
async getAgent(e, t) {
|
|
6905
6963
|
return i(`/organizations/${encodeURIComponent(e)}/agents/${encodeURIComponent(t)}`);
|
|
6906
6964
|
},
|
|
6965
|
+
async getChatFilePreview(e, t, n) {
|
|
6966
|
+
return i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}/media/${encodeURIComponent(n)}/preview`);
|
|
6967
|
+
},
|
|
6907
6968
|
async getAgentAccess(e, t) {
|
|
6908
6969
|
return i(`/organizations/${encodeURIComponent(e)}/agents/${encodeURIComponent(t)}/access`);
|
|
6909
6970
|
},
|
|
@@ -17333,7 +17394,10 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17333
17394
|
}, mx = {
|
|
17334
17395
|
key: 0,
|
|
17335
17396
|
class: "pk-chatbot-view-chat__drop-overlay"
|
|
17336
|
-
}, hx =
|
|
17397
|
+
}, hx = {
|
|
17398
|
+
key: 1,
|
|
17399
|
+
class: "pk-chatbot-view-chat__preview"
|
|
17400
|
+
}, gx = 1e3, _x = 3e3, vx = 6e4, yx = 3e5, bx = 6e5, xx = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
17337
17401
|
__name: "PkChatbotViewChat",
|
|
17338
17402
|
props: {
|
|
17339
17403
|
agentId: { type: String },
|
|
@@ -17342,165 +17406,208 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17342
17406
|
},
|
|
17343
17407
|
emits: ["show-info", "revise"],
|
|
17344
17408
|
setup(e, { emit: t }) {
|
|
17345
|
-
let n = T(() => import("./_chunks/PkToolShowForm-CkpMsrEo.js")), r = T(() => import("./_chunks/PkToolShowContactForm-YX1BuolZ.js")), i = T(() => import("./_chunks/PkToolShowSuggestedReply-79UAjTL4.js")), a = T(() => import("./_chunks/PkToolShowSources-BO1IhnmO.js")), o = T(() => import("./_chunks/PkToolRequestGeolocation-n1W_drCv.js")), s = T(() => import("./_chunks/PkToolRequestOAuthConnection-DmMeSF2m.js")), c = T(() => import("./_chunks/PkToolShowLocation-B1ltUJ-K.js")), l = T(() => import("./_chunks/PkToolShowDiagram-fTIiANVA.js")), u = T(() => import("./_chunks/PkToolChatFile-
|
|
17346
|
-
Fe(bt,
|
|
17347
|
-
let
|
|
17348
|
-
I(
|
|
17349
|
-
|
|
17409
|
+
let n = T(() => import("./_chunks/PkToolShowForm-CkpMsrEo.js")), r = T(() => import("./_chunks/PkToolShowContactForm-YX1BuolZ.js")), i = T(() => import("./_chunks/PkToolShowSuggestedReply-79UAjTL4.js")), a = T(() => import("./_chunks/PkToolShowSources-BO1IhnmO.js")), o = T(() => import("./_chunks/PkToolRequestGeolocation-n1W_drCv.js")), s = T(() => import("./_chunks/PkToolRequestOAuthConnection-DmMeSF2m.js")), c = T(() => import("./_chunks/PkToolShowLocation-B1ltUJ-K.js")), l = T(() => import("./_chunks/PkToolShowDiagram-fTIiANVA.js")), u = T(() => import("./_chunks/PkToolChatFile-3fYhbFSi.js")), d = T(() => import("./_chunks/PkToolShareDocument-BE02IEEO.js")), f = T(() => import("./_chunks/PkFilePreview-eKok4xdc.js")), p = e, m = t, h = Nf(p.agentId), { agentInterface: g, agentFileUpload: _, agentType: v, agentVoice: y, actions: b, revisedAnswers: x, messages: S, chat: C, messageFeedbacks: ee, feedbackDialogMessage: w, isFeedbackSubmitting: D, isFeedbackSubmitted: O, feedbackSubmitError: k, isLeadSubmitted: te, isLoadingSubmitLead: re, submitLeadError: A, input: ie, inputMessagePlaceholder: j, isConversationBlocked: ae, baseUrl: oe, pendingAttachments: M, isAttachmentLimitReached: se, fileLimitError: ce, apiClient: le, isDark: ue, hostToolsPending: fe, pageNoticeLevel: pe, hostConfirmation: he, agentPageAccess: R, hostStepTitles: z, canQueue: _e, queuedMessages: ve, backgroundAnswers: ye, inputFocusRequest: V } = mr(h);
|
|
17410
|
+
Fe(bt, z);
|
|
17411
|
+
let be = me("inputEl");
|
|
17412
|
+
I(V, () => {
|
|
17413
|
+
be.value?.focus();
|
|
17350
17414
|
});
|
|
17351
|
-
let
|
|
17352
|
-
let e =
|
|
17353
|
-
if (e) return e.reason === "per-chat" ?
|
|
17354
|
-
}),
|
|
17415
|
+
let xe = U(() => v.value === "reasoning" ? void 0 : _.value), Se = (e) => le.value.getMediaDownloadUrl(p.agentId, h.localChatId, e), { handleSubmit: G, stopGeneration: we, regenerate: Te, onUpvote: Ee, onDownvote: De, onFeedback: Oe, onFeedbackSubmit: ke, onLeadSubmit: Ae, startNewChat: je, addToolOutput: Me, addToolApprovalResponse: J, handleFileSelect: Y, clearFileLimitError: Ne, refreshMessages: X, appendMessage: Pe, closePageNotice: Ie, respondHostConfirmation: Re, editQueuedMessage: ze, removeQueuedMessage: Be, openBackgroundAnswer: Ve, dismissBackgroundAnswer: He } = h, { t: Ue } = Le({ useScope: "global" }), We = U(() => fe.value > 0), Ge = U(() => We.value && C.value.status === "ready" ? "streaming" : C.value.status), Ke = On(() => R.value?.notice), qe = U(() => pe.value ? Ke.value || Ue(`message.pageAccessNotice.${pe.value}`) : void 0), Je = U(() => {
|
|
17416
|
+
let e = ce.value;
|
|
17417
|
+
if (e) return e.reason === "per-chat" ? Ue("message.fileLimitPerChat", { max: e.max }) : Ue("message.fileLimitPerMessage", { max: e.max });
|
|
17418
|
+
}), Ye = U(() => ye.value.map(({ chatId: e, title: t }) => ({
|
|
17355
17419
|
id: e,
|
|
17356
|
-
text: t ?
|
|
17357
|
-
}))),
|
|
17358
|
-
|
|
17420
|
+
text: t ? Ue("message.backgroundAnswerReady", { title: t }) : Ue("message.backgroundAnswerReadyUntitled")
|
|
17421
|
+
}))), Xe = On(() => g.value?.dismissableNotice), Ze = U(() => S.value.some((e) => e.role === "user")), Qe = U(() => p.modifier === "fullscreen" && !Ze.value), $e = Gf(g, () => p.userName), et = me("chatViewEl"), { width: tt } = pn(et, {
|
|
17422
|
+
width: 0,
|
|
17423
|
+
height: 0
|
|
17424
|
+
}, { box: "border-box" }), nt = U(() => tt.value >= gx), rt = U(() => tt.value > 0 && tt.value < 576), it = W(), at = W(), ot = W(!1), st = W(!1), ct = /* @__PURE__ */ new Map(), lt = async (e) => {
|
|
17425
|
+
it.value = e, st.value = !1;
|
|
17426
|
+
let t = ct.get(e.storedFileName);
|
|
17427
|
+
if (at.value = t, ot.value = !1, t) return;
|
|
17428
|
+
ot.value = !0;
|
|
17429
|
+
let n = () => it.value?.storedFileName === e.storedFileName;
|
|
17430
|
+
try {
|
|
17431
|
+
let t = await le.value.getChatFilePreview(p.agentId, h.localChatId, e.storedFileName);
|
|
17432
|
+
ct.set(e.storedFileName, t), n() && (at.value = t);
|
|
17433
|
+
} catch {
|
|
17434
|
+
n() && (st.value = !0);
|
|
17435
|
+
} finally {
|
|
17436
|
+
n() && (ot.value = !1);
|
|
17437
|
+
}
|
|
17438
|
+
}, ut = () => {
|
|
17439
|
+
it.value = void 0;
|
|
17440
|
+
}, ft = U({
|
|
17441
|
+
get: () => !!it.value && !nt.value,
|
|
17442
|
+
set: (e) => {
|
|
17443
|
+
e || ut();
|
|
17444
|
+
}
|
|
17445
|
+
});
|
|
17446
|
+
I(() => h.localChatId, () => {
|
|
17447
|
+
ut(), ct.clear();
|
|
17448
|
+
});
|
|
17449
|
+
let pt = async (e) => (await le.value.expandSourceContext(p.agentId, e.documentId, e.chunkIndex)).content, mt = async (e) => {
|
|
17450
|
+
let t = await le.value.downloadSourceDocument(p.agentId, e);
|
|
17359
17451
|
window.open(t.downloadUrl, "_blank");
|
|
17360
|
-
}, { isOverDropZone:
|
|
17361
|
-
dataTypes: (e) => Rt(e,
|
|
17452
|
+
}, { isOverDropZone: gt } = hn(et, {
|
|
17453
|
+
dataTypes: (e) => Rt(e, xe.value?.allowedMimeTypes ?? []),
|
|
17362
17454
|
onDrop: (e) => {
|
|
17363
|
-
if (
|
|
17455
|
+
if (xe.value?.enabled && e) for (let t of e) Y(t);
|
|
17364
17456
|
}
|
|
17365
|
-
}),
|
|
17457
|
+
}), _t = W(!1), vt = !1, yt = W(!1), xt = [
|
|
17366
17458
|
3e3,
|
|
17367
17459
|
5e3,
|
|
17368
17460
|
1e4
|
|
17369
|
-
],
|
|
17370
|
-
function
|
|
17371
|
-
clearTimeout(
|
|
17461
|
+
], St, Ct, wt = !1, Tt = 0, Et = !1;
|
|
17462
|
+
function Dt() {
|
|
17463
|
+
clearTimeout(St), St = void 0, Ct = void 0, wt = !1, Tt = 0, yt.value = !1;
|
|
17372
17464
|
}
|
|
17373
|
-
function
|
|
17374
|
-
|
|
17375
|
-
|
|
17465
|
+
function Ot(e) {
|
|
17466
|
+
vt || (clearTimeout(St), St = setTimeout(() => {
|
|
17467
|
+
kt();
|
|
17376
17468
|
}, e));
|
|
17377
17469
|
}
|
|
17378
|
-
async function
|
|
17379
|
-
if (
|
|
17380
|
-
|
|
17470
|
+
async function kt() {
|
|
17471
|
+
if (vt || Et) return;
|
|
17472
|
+
Et = !0;
|
|
17381
17473
|
let e;
|
|
17382
17474
|
try {
|
|
17383
|
-
e = await
|
|
17475
|
+
e = await X();
|
|
17384
17476
|
} finally {
|
|
17385
|
-
|
|
17477
|
+
Et = !1;
|
|
17386
17478
|
}
|
|
17387
|
-
if (
|
|
17388
|
-
if (e === "caught-up" && (
|
|
17389
|
-
|
|
17479
|
+
if (vt) return;
|
|
17480
|
+
if (e === "caught-up" && (yt.value = !1, cn()), jt.isActive.value) {
|
|
17481
|
+
Ct = void 0, wt = !1, Tt = 0, Ot(_x);
|
|
17390
17482
|
return;
|
|
17391
17483
|
}
|
|
17392
|
-
|
|
17393
|
-
let t = Date.now() -
|
|
17394
|
-
if (e === "caught-up" && t >= (
|
|
17395
|
-
|
|
17484
|
+
Ct === void 0 && (Ct = Date.now(), wt = !!jt.error.value);
|
|
17485
|
+
let t = Date.now() - Ct;
|
|
17486
|
+
if (e === "caught-up" && t >= (wt ? yx : vx) || t >= bx) {
|
|
17487
|
+
Dt(), ln();
|
|
17396
17488
|
return;
|
|
17397
17489
|
}
|
|
17398
|
-
let n =
|
|
17399
|
-
|
|
17490
|
+
let n = xt[Math.min(Tt, xt.length - 1)];
|
|
17491
|
+
Tt += 1, Ot(n);
|
|
17400
17492
|
}
|
|
17401
|
-
let
|
|
17402
|
-
|
|
17403
|
-
},
|
|
17493
|
+
let At = (e = 1200) => {
|
|
17494
|
+
Ot(e);
|
|
17495
|
+
}, jt = ix({
|
|
17404
17496
|
fetchGrant: async () => {
|
|
17405
|
-
let e = await
|
|
17406
|
-
deviceContext:
|
|
17407
|
-
externalContext:
|
|
17497
|
+
let e = await le.value.createVoiceSession(p.agentId, h.localChatId, {
|
|
17498
|
+
deviceContext: h.buildDeviceContext(),
|
|
17499
|
+
externalContext: h.externalContext
|
|
17408
17500
|
});
|
|
17409
|
-
return e.chatId !==
|
|
17501
|
+
return e.chatId !== h.localChatId && (h.localChatId = e.chatId), e;
|
|
17410
17502
|
},
|
|
17411
|
-
closeGrant: (e) =>
|
|
17503
|
+
closeGrant: (e) => le.value.closeVoiceSession(p.agentId, e),
|
|
17412
17504
|
onTranscript: (e) => {
|
|
17413
|
-
e.role === "user" ? (
|
|
17505
|
+
e.role === "user" ? (yt.value = !0, sn(), Pe({
|
|
17414
17506
|
id: `${hf}user-${hl()}`,
|
|
17415
17507
|
role: "user",
|
|
17416
17508
|
parts: [{
|
|
17417
17509
|
type: "text",
|
|
17418
17510
|
text: e.text
|
|
17419
17511
|
}]
|
|
17420
|
-
})) :
|
|
17512
|
+
})) : yt.value = !1;
|
|
17421
17513
|
},
|
|
17422
17514
|
onTurnEnd: () => {
|
|
17423
|
-
|
|
17515
|
+
At();
|
|
17424
17516
|
}
|
|
17425
17517
|
});
|
|
17426
|
-
I(() =>
|
|
17427
|
-
e && (
|
|
17518
|
+
I(() => jt.error.value, (e) => {
|
|
17519
|
+
e && (yt.value = !1);
|
|
17428
17520
|
});
|
|
17429
|
-
let
|
|
17430
|
-
let e =
|
|
17431
|
-
if (e) return /took too long/i.test(e) ?
|
|
17432
|
-
}),
|
|
17433
|
-
|
|
17434
|
-
},
|
|
17435
|
-
|
|
17436
|
-
},
|
|
17437
|
-
|
|
17438
|
-
},
|
|
17439
|
-
|
|
17440
|
-
},
|
|
17441
|
-
|
|
17521
|
+
let Mt = U(() => y.value?.enabled === !0), Nt = U(() => jt.error.value ? "error" : jt.isConnecting.value ? "connecting" : jt.isSpeaking.value ? "speaking" : jt.isActive.value ? "listening" : "idle"), Pt = U(() => {
|
|
17522
|
+
let e = jt.error.value;
|
|
17523
|
+
if (e) return /took too long/i.test(e) ? Ue("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? Ue("message.voiceNoAnswer") : Ue("message.voiceInterrupted");
|
|
17524
|
+
}), Ft = U(() => jt.isSpeaking.value ? "output" : "input"), It = () => jt.readLevel(Ft.value), Lt = () => jt.readSpectrum(Ft.value), zt = async () => {
|
|
17525
|
+
_t.value = !1, await jt.start(), jt.isActive.value && (Dt(), Ot(_x));
|
|
17526
|
+
}, Bt = async () => {
|
|
17527
|
+
yt.value = !1, await jt.stop(), !vt && At(0);
|
|
17528
|
+
}, Vt = () => {
|
|
17529
|
+
jt.dismissError();
|
|
17530
|
+
}, Ht = async () => {
|
|
17531
|
+
jt.dismissError(), await jt.stop(), await zt();
|
|
17532
|
+
}, Ut = (e) => e?.toolCallId ?? "", Wt = W(/* @__PURE__ */ new Set()), Gt = (e) => Wt.value.has(Ut(e)), Kt = W(/* @__PURE__ */ new Map()), qt = (e, t) => jt.isActive.value ? (jt.sendUserMessage(t) && (Wt.value = new Set(Wt.value).add(Ut(e)), At()), !0) : !1, Jt = (e, t, n) => {
|
|
17533
|
+
qt(t, ht(t, n)) || Me({
|
|
17442
17534
|
tool: e,
|
|
17443
|
-
toolCallId:
|
|
17535
|
+
toolCallId: Ut(t),
|
|
17444
17536
|
output: n
|
|
17445
17537
|
});
|
|
17446
|
-
},
|
|
17447
|
-
let t = e.confirmed ?
|
|
17448
|
-
|
|
17538
|
+
}, Yt = (e) => {
|
|
17539
|
+
let t = e.confirmed ? Ue("message.voiceConfirmed") : Ue("message.voiceCancelled");
|
|
17540
|
+
qt({ toolCallId: e.toolCallId }, t) ? Wt.value.has(e.toolCallId) && (Kt.value = new Map(Kt.value).set(e.toolCallId, e.confirmed)) : Me({
|
|
17449
17541
|
tool: "requestConfirm",
|
|
17450
17542
|
toolCallId: e.toolCallId,
|
|
17451
17543
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
17452
17544
|
});
|
|
17453
|
-
},
|
|
17454
|
-
|
|
17455
|
-
|
|
17456
|
-
|
|
17457
|
-
|
|
17545
|
+
}, Xt = /* @__PURE__ */ new Set([
|
|
17546
|
+
"tool-editSpreadsheet",
|
|
17547
|
+
"tool-editWordDocument",
|
|
17548
|
+
"tool-createSpreadsheet",
|
|
17549
|
+
"tool-createWordDocument"
|
|
17550
|
+
]), Zt = U(() => {
|
|
17551
|
+
let e = /* @__PURE__ */ new Map();
|
|
17552
|
+
for (let t of S.value) for (let n of t.parts) {
|
|
17553
|
+
let { type: t, state: r, output: i } = n;
|
|
17554
|
+
Xt.has(t) && r === "output-available" && i?.fileId && i.version && e.set(i.fileId, Math.max(e.get(i.fileId) ?? 0, i.version));
|
|
17555
|
+
}
|
|
17556
|
+
return e;
|
|
17557
|
+
}), Qt = U(() => ae.value ? void 0 : (e) => {
|
|
17558
|
+
ie.value = Ue("messagePart.chatFileRestoreRequest", e), G();
|
|
17559
|
+
}), $t = (e, t) => {
|
|
17560
|
+
qt(e, t) || (ie.value = t, G());
|
|
17561
|
+
}, en = (e, t) => {
|
|
17562
|
+
let n = t.error ? Ue("message.voiceLocationRefused") : Ue("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
17563
|
+
qt(e, n) || Me({
|
|
17458
17564
|
tool: "requestGeolocation",
|
|
17459
|
-
toolCallId:
|
|
17565
|
+
toolCallId: Ut(e),
|
|
17460
17566
|
output: t
|
|
17461
17567
|
});
|
|
17462
|
-
},
|
|
17463
|
-
|
|
17568
|
+
}, tn = (e, t) => {
|
|
17569
|
+
qt(e, Ue("message.voiceConnectionDone")) || Me({
|
|
17464
17570
|
tool: "requestOAuthConnection",
|
|
17465
|
-
toolCallId:
|
|
17571
|
+
toolCallId: Ut(e),
|
|
17466
17572
|
output: {
|
|
17467
17573
|
connected: !0,
|
|
17468
17574
|
mcpServerId: t
|
|
17469
17575
|
}
|
|
17470
17576
|
});
|
|
17471
|
-
},
|
|
17472
|
-
|
|
17577
|
+
}, nn = () => {
|
|
17578
|
+
_t.value = !_t.value, jt.setMuted(_t.value);
|
|
17473
17579
|
};
|
|
17474
17580
|
ne(() => {
|
|
17475
|
-
|
|
17581
|
+
vt = !0, Dt();
|
|
17476
17582
|
});
|
|
17477
|
-
let { pendingWakeup:
|
|
17478
|
-
agentId: () =>
|
|
17479
|
-
chatId: () =>
|
|
17480
|
-
apiClient: () =>
|
|
17481
|
-
messages: () =>
|
|
17482
|
-
refreshMessages:
|
|
17483
|
-
status: () =>
|
|
17583
|
+
let { pendingWakeup: rn, isStopping: an, stop: on, spokenTurnStarted: sn, spokenTurnsWritten: cn, forgetSpokenTurns: ln } = lx({
|
|
17584
|
+
agentId: () => p.agentId,
|
|
17585
|
+
chatId: () => h.localChatId,
|
|
17586
|
+
apiClient: () => le.value,
|
|
17587
|
+
messages: () => S.value,
|
|
17588
|
+
refreshMessages: X,
|
|
17589
|
+
status: () => C.value.status
|
|
17484
17590
|
});
|
|
17485
|
-
return (t,
|
|
17486
|
-
let
|
|
17591
|
+
return (t, _) => {
|
|
17592
|
+
let v = wn, y = vn;
|
|
17487
17593
|
return P(), Z("div", {
|
|
17488
17594
|
ref_key: "chatViewEl",
|
|
17489
|
-
ref:
|
|
17595
|
+
ref: et,
|
|
17490
17596
|
class: de(["pk-chatbot-view-chat", {
|
|
17491
|
-
"pk-chatbot-view-chat--dragover": E(
|
|
17492
|
-
"pk-chatbot-view-chat--empty":
|
|
17597
|
+
"pk-chatbot-view-chat--dragover": E(gt) && xe.value?.enabled,
|
|
17598
|
+
"pk-chatbot-view-chat--empty": Qe.value,
|
|
17599
|
+
"pk-chatbot-view-chat--with-preview": !!it.value && nt.value
|
|
17493
17600
|
}])
|
|
17494
17601
|
}, [
|
|
17495
17602
|
F(K, {
|
|
17496
17603
|
name: "pk-chatbot-view-chat-fade",
|
|
17497
17604
|
mode: "out-in"
|
|
17498
17605
|
}, {
|
|
17499
|
-
default: B(() => [
|
|
17606
|
+
default: B(() => [Qe.value ? (P(), L(Ub, {
|
|
17500
17607
|
key: 0,
|
|
17501
|
-
greeting: E(
|
|
17502
|
-
logo: E(
|
|
17503
|
-
name: E(
|
|
17608
|
+
greeting: E($e),
|
|
17609
|
+
logo: E(g)?.logo,
|
|
17610
|
+
name: E(h).name
|
|
17504
17611
|
}, null, 8, [
|
|
17505
17612
|
"greeting",
|
|
17506
17613
|
"logo",
|
|
@@ -17509,48 +17616,48 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17509
17616
|
key: 1,
|
|
17510
17617
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
17511
17618
|
interactive: "",
|
|
17512
|
-
messages: E(
|
|
17513
|
-
"confirm-verdicts-on-call":
|
|
17514
|
-
status: E(
|
|
17515
|
-
error: E(
|
|
17516
|
-
"main-color": E(
|
|
17517
|
-
"text-color": E(
|
|
17518
|
-
"revised-answers": E(
|
|
17519
|
-
actions: E(
|
|
17520
|
-
"message-feedbacks": E(
|
|
17521
|
-
"feedback-message-id": E(
|
|
17522
|
-
"feedback-loading": E(
|
|
17523
|
-
"feedback-submitted": E(
|
|
17524
|
-
"feedback-error": E(
|
|
17525
|
-
"show-extended-steps": E(
|
|
17526
|
-
"hide-reasoning": E(
|
|
17527
|
-
"awaiting-spoken-answer":
|
|
17528
|
-
"host-working":
|
|
17529
|
-
"host-confirmation": E(
|
|
17530
|
-
"is-dark": E(
|
|
17619
|
+
messages: E(S),
|
|
17620
|
+
"confirm-verdicts-on-call": Kt.value,
|
|
17621
|
+
status: E(C).status,
|
|
17622
|
+
error: E(C).error,
|
|
17623
|
+
"main-color": E(g)?.mainColor,
|
|
17624
|
+
"text-color": E(g)?.textColor,
|
|
17625
|
+
"revised-answers": E(x),
|
|
17626
|
+
actions: E(b),
|
|
17627
|
+
"message-feedbacks": E(ee),
|
|
17628
|
+
"feedback-message-id": E(w)?.id,
|
|
17629
|
+
"feedback-loading": E(D),
|
|
17630
|
+
"feedback-submitted": E(O),
|
|
17631
|
+
"feedback-error": E(k),
|
|
17632
|
+
"show-extended-steps": E(g)?.showExtendedSteps,
|
|
17633
|
+
"hide-reasoning": E(g)?.showReasoning === !1,
|
|
17634
|
+
"awaiting-spoken-answer": yt.value,
|
|
17635
|
+
"host-working": We.value,
|
|
17636
|
+
"host-confirmation": E(he),
|
|
17637
|
+
"is-dark": E(ue),
|
|
17531
17638
|
"show-scroll-to-bottom": e.modifier === "fullscreen",
|
|
17532
|
-
onFeedbackSubmit:
|
|
17533
|
-
onFeedbackClose:
|
|
17534
|
-
onRegenerate: E(
|
|
17535
|
-
onAutoRetry: E(
|
|
17536
|
-
onResetChat: E(
|
|
17537
|
-
onShowInfo:
|
|
17538
|
-
onRevise:
|
|
17539
|
-
onUpvote: E(
|
|
17540
|
-
onDownvote: E(
|
|
17541
|
-
onFeedback: E(
|
|
17542
|
-
onApprovalRespond: E(
|
|
17543
|
-
onConfirmRespond:
|
|
17544
|
-
onHostConfirmRespond: E(
|
|
17639
|
+
onFeedbackSubmit: _[0] ||= (e) => E(ke)(e),
|
|
17640
|
+
onFeedbackClose: _[1] ||= (e) => w.value = void 0,
|
|
17641
|
+
onRegenerate: E(Te),
|
|
17642
|
+
onAutoRetry: E(Te),
|
|
17643
|
+
onResetChat: E(je),
|
|
17644
|
+
onShowInfo: _[2] ||= (e) => m("show-info", e),
|
|
17645
|
+
onRevise: _[3] ||= (e) => m("revise", e),
|
|
17646
|
+
onUpvote: E(Ee),
|
|
17647
|
+
onDownvote: E(De),
|
|
17648
|
+
onFeedback: E(Oe),
|
|
17649
|
+
onApprovalRespond: E(J),
|
|
17650
|
+
onConfirmRespond: Yt,
|
|
17651
|
+
onHostConfirmRespond: E(Re)
|
|
17545
17652
|
}, {
|
|
17546
17653
|
"tool-showContactForm": B(({ part: e }) => [F(E(r), {
|
|
17547
17654
|
part: e,
|
|
17548
|
-
readonly: !E(
|
|
17549
|
-
submitted: E(
|
|
17550
|
-
loading: E(
|
|
17551
|
-
error: E(
|
|
17552
|
-
"privacy-policy-notice": E(
|
|
17553
|
-
onSubmit: E(
|
|
17655
|
+
readonly: !E(oe),
|
|
17656
|
+
submitted: E(te),
|
|
17657
|
+
loading: E(re),
|
|
17658
|
+
error: E(A),
|
|
17659
|
+
"privacy-policy-notice": E(g)?.privacyPolicyNotice,
|
|
17660
|
+
onSubmit: E(Ae)
|
|
17554
17661
|
}, null, 8, [
|
|
17555
17662
|
"part",
|
|
17556
17663
|
"readonly",
|
|
@@ -17562,18 +17669,18 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17562
17669
|
])]),
|
|
17563
17670
|
"tool-showSuggestedReply": B(({ part: e }) => [F(E(i), {
|
|
17564
17671
|
part: e,
|
|
17565
|
-
onSelect: (t) =>
|
|
17672
|
+
onSelect: (t) => $t(e, t)
|
|
17566
17673
|
}, null, 8, ["part", "onSelect"])]),
|
|
17567
17674
|
"tool-showSources": B(({ part: e }) => [F(E(a), {
|
|
17568
17675
|
part: e,
|
|
17569
|
-
"on-expand-context":
|
|
17570
|
-
"on-download":
|
|
17676
|
+
"on-expand-context": pt,
|
|
17677
|
+
"on-download": mt
|
|
17571
17678
|
}, null, 8, ["part"])]),
|
|
17572
17679
|
"tool-showForm": B(({ part: e }) => [F(K, { mode: "out-in" }, {
|
|
17573
17680
|
default: B(() => [F(E(n), {
|
|
17574
17681
|
part: e,
|
|
17575
|
-
answered:
|
|
17576
|
-
onSelect: (t) =>
|
|
17682
|
+
answered: Gt(e),
|
|
17683
|
+
onSelect: (t) => Jt("showForm", e, t)
|
|
17577
17684
|
}, null, 8, [
|
|
17578
17685
|
"part",
|
|
17579
17686
|
"answered",
|
|
@@ -17585,8 +17692,8 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17585
17692
|
default: B(() => [F(E(n), {
|
|
17586
17693
|
part: e,
|
|
17587
17694
|
"allow-custom-answer": "",
|
|
17588
|
-
answered:
|
|
17589
|
-
onSelect: (t) =>
|
|
17695
|
+
answered: Gt(e),
|
|
17696
|
+
onSelect: (t) => Jt("showMultipleChoice", e, t)
|
|
17590
17697
|
}, null, 8, [
|
|
17591
17698
|
"part",
|
|
17592
17699
|
"answered",
|
|
@@ -17596,10 +17703,10 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17596
17703
|
}, 1024)]),
|
|
17597
17704
|
"tool-requestOAuthConnection": B(({ part: e }) => [F(E(s), {
|
|
17598
17705
|
part: e,
|
|
17599
|
-
"backend-url": E(
|
|
17600
|
-
"resolve-connection": (e) => E(
|
|
17601
|
-
"check-connection": (e) => E(
|
|
17602
|
-
onConnected: (t) =>
|
|
17706
|
+
"backend-url": E(oe),
|
|
17707
|
+
"resolve-connection": (e) => E(le).getOAuthAuthorizeUrl(p.agentId, e),
|
|
17708
|
+
"check-connection": (e) => E(le).getOAuthConnectionStatus(p.agentId, e),
|
|
17709
|
+
onConnected: (t) => tn(e, t)
|
|
17603
17710
|
}, null, 8, [
|
|
17604
17711
|
"part",
|
|
17605
17712
|
"backend-url",
|
|
@@ -17609,9 +17716,9 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17609
17716
|
])]),
|
|
17610
17717
|
"tool-requestGeolocation": B(({ part: e }) => [F(E(o), {
|
|
17611
17718
|
part: e,
|
|
17612
|
-
"call-live": E(
|
|
17613
|
-
"reverse-geocode": (e, t) => E(
|
|
17614
|
-
onResult: (t) =>
|
|
17719
|
+
"call-live": E(jt).isActive.value,
|
|
17720
|
+
"reverse-geocode": (e, t) => E(le).reverseGeocode(e, t),
|
|
17721
|
+
onResult: (t) => en(e, t)
|
|
17615
17722
|
}, null, 8, [
|
|
17616
17723
|
"part",
|
|
17617
17724
|
"call-live",
|
|
@@ -17620,9 +17727,9 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17620
17727
|
])]),
|
|
17621
17728
|
"tool-showLocation": B(({ part: e }) => [F(E(c), {
|
|
17622
17729
|
part: e,
|
|
17623
|
-
"is-dark": E(
|
|
17624
|
-
"main-color": E(
|
|
17625
|
-
"forward-geocode": (e, t) => E(
|
|
17730
|
+
"is-dark": E(ue),
|
|
17731
|
+
"main-color": E(g)?.mainColor,
|
|
17732
|
+
"forward-geocode": (e, t) => E(le).forwardGeocode(e, t)
|
|
17626
17733
|
}, null, 8, [
|
|
17627
17734
|
"part",
|
|
17628
17735
|
"is-dark",
|
|
@@ -17631,42 +17738,70 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17631
17738
|
])]),
|
|
17632
17739
|
"tool-showDiagram": B(({ part: e }) => [F(E(l), {
|
|
17633
17740
|
part: e,
|
|
17634
|
-
"is-dark": E(
|
|
17741
|
+
"is-dark": E(ue)
|
|
17635
17742
|
}, null, 8, ["part", "is-dark"])]),
|
|
17636
17743
|
"tool-editSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
|
|
17637
17744
|
key: E(dt)(e),
|
|
17638
17745
|
part: e,
|
|
17639
|
-
"file-url":
|
|
17640
|
-
|
|
17746
|
+
"file-url": Se,
|
|
17747
|
+
preview: lt,
|
|
17748
|
+
"latest-versions": Zt.value,
|
|
17749
|
+
restore: Qt.value
|
|
17750
|
+
}, null, 8, [
|
|
17751
|
+
"part",
|
|
17752
|
+
"latest-versions",
|
|
17753
|
+
"restore"
|
|
17754
|
+
]))]),
|
|
17641
17755
|
"tool-editWordDocument": B(({ part: e }) => [(P(), L(E(u), {
|
|
17642
17756
|
key: E(dt)(e),
|
|
17643
17757
|
part: e,
|
|
17644
|
-
"file-url":
|
|
17645
|
-
|
|
17758
|
+
"file-url": Se,
|
|
17759
|
+
preview: lt,
|
|
17760
|
+
"latest-versions": Zt.value,
|
|
17761
|
+
restore: Qt.value
|
|
17762
|
+
}, null, 8, [
|
|
17763
|
+
"part",
|
|
17764
|
+
"latest-versions",
|
|
17765
|
+
"restore"
|
|
17766
|
+
]))]),
|
|
17646
17767
|
"tool-createSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
|
|
17647
17768
|
key: E(dt)(e),
|
|
17648
17769
|
part: e,
|
|
17649
|
-
"file-url":
|
|
17650
|
-
|
|
17770
|
+
"file-url": Se,
|
|
17771
|
+
preview: lt,
|
|
17772
|
+
"latest-versions": Zt.value,
|
|
17773
|
+
restore: Qt.value
|
|
17774
|
+
}, null, 8, [
|
|
17775
|
+
"part",
|
|
17776
|
+
"latest-versions",
|
|
17777
|
+
"restore"
|
|
17778
|
+
]))]),
|
|
17651
17779
|
"tool-createWordDocument": B(({ part: e }) => [(P(), L(E(u), {
|
|
17652
17780
|
key: E(dt)(e),
|
|
17653
17781
|
part: e,
|
|
17654
|
-
"file-url":
|
|
17655
|
-
|
|
17782
|
+
"file-url": Se,
|
|
17783
|
+
preview: lt,
|
|
17784
|
+
"latest-versions": Zt.value,
|
|
17785
|
+
restore: Qt.value
|
|
17786
|
+
}, null, 8, [
|
|
17787
|
+
"part",
|
|
17788
|
+
"latest-versions",
|
|
17789
|
+
"restore"
|
|
17790
|
+
]))]),
|
|
17656
17791
|
"tool-shareDocument": B(({ part: e }) => [(P(), L(E(d), {
|
|
17657
17792
|
key: E(dt)(e),
|
|
17658
17793
|
part: e,
|
|
17659
|
-
"on-download":
|
|
17794
|
+
"on-download": mt
|
|
17660
17795
|
}, null, 8, ["part"]))]),
|
|
17661
17796
|
_: 1
|
|
17662
17797
|
}, 8, /* @__PURE__ */ "messages.confirm-verdicts-on-call.status.error.main-color.text-color.revised-answers.actions.message-feedbacks.feedback-message-id.feedback-loading.feedback-submitted.feedback-error.show-extended-steps.hide-reasoning.awaiting-spoken-answer.host-working.host-confirmation.is-dark.show-scroll-to-bottom.onRegenerate.onAutoRetry.onResetChat.onUpvote.onDownvote.onFeedback.onApprovalRespond.onHostConfirmRespond".split(".")))]),
|
|
17663
17798
|
_: 1
|
|
17664
17799
|
}),
|
|
17665
|
-
E(
|
|
17800
|
+
E(ve).length ? (P(), L(Vb, {
|
|
17666
17801
|
key: 0,
|
|
17667
|
-
messages: E(
|
|
17668
|
-
onEdit: E(
|
|
17669
|
-
onRemove: E(
|
|
17802
|
+
messages: E(ve),
|
|
17803
|
+
onEdit: E(ze),
|
|
17804
|
+
onRemove: E(Be)
|
|
17670
17805
|
}, null, 8, [
|
|
17671
17806
|
"messages",
|
|
17672
17807
|
"onEdit",
|
|
@@ -17674,57 +17809,57 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17674
17809
|
])) : q("", !0),
|
|
17675
17810
|
H("div", ux, [
|
|
17676
17811
|
F(K, { name: "pk-chatbot-view-chat-fade" }, {
|
|
17677
|
-
default: B(() => [
|
|
17812
|
+
default: B(() => [Qe.value ? (P(), L(q_, {
|
|
17678
17813
|
key: 0,
|
|
17679
17814
|
class: "pk-chatbot-view-chat__aurora",
|
|
17680
17815
|
"source-selector": ".pk-chatbot-input__form"
|
|
17681
17816
|
})) : q("", !0)]),
|
|
17682
17817
|
_: 1
|
|
17683
17818
|
}),
|
|
17684
|
-
E(
|
|
17819
|
+
E(rn) && !E(ae) ? (P(), L(rx, {
|
|
17685
17820
|
key: 0,
|
|
17686
|
-
pending: E(
|
|
17687
|
-
stopping: E(
|
|
17688
|
-
onStop: E(
|
|
17821
|
+
pending: E(rn),
|
|
17822
|
+
stopping: E(an),
|
|
17823
|
+
onStop: E(on)
|
|
17689
17824
|
}, null, 8, [
|
|
17690
17825
|
"pending",
|
|
17691
17826
|
"stopping",
|
|
17692
17827
|
"onStop"
|
|
17693
17828
|
])) : q("", !0),
|
|
17694
|
-
E(
|
|
17829
|
+
E(ae) ? (P(), Z("div", dx, N(E(Ue)("message.chatErrorConversationBlocked")), 1)) : Nt.value === "idle" ? (P(), L(Ib, {
|
|
17695
17830
|
key: 3,
|
|
17696
17831
|
ref_key: "inputEl",
|
|
17697
|
-
ref:
|
|
17698
|
-
modelValue: E(
|
|
17699
|
-
"onUpdate:modelValue":
|
|
17700
|
-
"pending-attachments": E(
|
|
17701
|
-
"onUpdate:pendingAttachments":
|
|
17702
|
-
placeholder: E(
|
|
17703
|
-
"dismissable-notice": E(
|
|
17704
|
-
"page-notice":
|
|
17705
|
-
status:
|
|
17706
|
-
"max-message-length": E(
|
|
17707
|
-
"file-upload":
|
|
17708
|
-
"attachment-limit-reached": E(
|
|
17709
|
-
"attachment-notice":
|
|
17710
|
-
"voice-enabled":
|
|
17711
|
-
"queue-enabled": E(
|
|
17712
|
-
"answer-notices":
|
|
17713
|
-
onStopGeneration: E(
|
|
17714
|
-
onSubmit: E(
|
|
17715
|
-
onFileSelect: E(
|
|
17716
|
-
onDismissAttachmentNotice: E(
|
|
17717
|
-
onDismissPageNotice: E(
|
|
17718
|
-
onOpenAnswerNotice: E(
|
|
17719
|
-
onDismissAnswerNotice: E(
|
|
17720
|
-
onVoiceStart:
|
|
17832
|
+
ref: be,
|
|
17833
|
+
modelValue: E(ie),
|
|
17834
|
+
"onUpdate:modelValue": _[4] ||= (e) => Ce(ie) ? ie.value = e : null,
|
|
17835
|
+
"pending-attachments": E(M),
|
|
17836
|
+
"onUpdate:pendingAttachments": _[5] ||= (e) => Ce(M) ? M.value = e : null,
|
|
17837
|
+
placeholder: E(j),
|
|
17838
|
+
"dismissable-notice": E(Xe) && E(C).messages.length <= 1 ? E(Xe) : void 0,
|
|
17839
|
+
"page-notice": qe.value,
|
|
17840
|
+
status: Ge.value,
|
|
17841
|
+
"max-message-length": E(g)?.maxMessageLength,
|
|
17842
|
+
"file-upload": xe.value,
|
|
17843
|
+
"attachment-limit-reached": E(se),
|
|
17844
|
+
"attachment-notice": Je.value,
|
|
17845
|
+
"voice-enabled": Mt.value,
|
|
17846
|
+
"queue-enabled": E(_e),
|
|
17847
|
+
"answer-notices": Ye.value,
|
|
17848
|
+
onStopGeneration: E(we),
|
|
17849
|
+
onSubmit: E(G),
|
|
17850
|
+
onFileSelect: E(Y),
|
|
17851
|
+
onDismissAttachmentNotice: E(Ne),
|
|
17852
|
+
onDismissPageNotice: E(Ie),
|
|
17853
|
+
onOpenAnswerNotice: E(Ve),
|
|
17854
|
+
onDismissAnswerNotice: E(He),
|
|
17855
|
+
onVoiceStart: zt
|
|
17721
17856
|
}, ge({ _: 2 }, [e.modifier === "fullscreen" ? {
|
|
17722
17857
|
name: "prepend",
|
|
17723
17858
|
fn: B(() => [H("span", fx, [F(H_, {
|
|
17724
17859
|
class: "pk-chatbot-view-chat__agent-chip-avatar",
|
|
17725
|
-
"img-src": E(
|
|
17726
|
-
name: E(
|
|
17727
|
-
}, null, 8, ["img-src", "name"]), E(
|
|
17860
|
+
"img-src": E(g)?.logo,
|
|
17861
|
+
name: E(h).name
|
|
17862
|
+
}, null, 8, ["img-src", "name"]), E(h).name ? (P(), Z("strong", px, N(E(h).name), 1)) : q("", !0)])]),
|
|
17728
17863
|
key: "0"
|
|
17729
17864
|
} : void 0]), 1032, [
|
|
17730
17865
|
"modelValue",
|
|
@@ -17749,19 +17884,19 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17749
17884
|
"onDismissAnswerNotice"
|
|
17750
17885
|
])) : (P(), L($b, {
|
|
17751
17886
|
key: 2,
|
|
17752
|
-
state:
|
|
17753
|
-
sample:
|
|
17754
|
-
spectrum:
|
|
17755
|
-
"remaining-seconds": E(
|
|
17756
|
-
muted:
|
|
17757
|
-
error:
|
|
17758
|
-
"raw-error": E(
|
|
17759
|
-
live: E(
|
|
17887
|
+
state: Nt.value,
|
|
17888
|
+
sample: It,
|
|
17889
|
+
spectrum: Lt,
|
|
17890
|
+
"remaining-seconds": E(jt).remainingSeconds.value,
|
|
17891
|
+
muted: _t.value,
|
|
17892
|
+
error: Pt.value,
|
|
17893
|
+
"raw-error": E(jt).error.value,
|
|
17894
|
+
live: E(jt).isActive.value,
|
|
17760
17895
|
class: "pk-chatbot-view-chat__voice",
|
|
17761
|
-
onToggleMute:
|
|
17762
|
-
onHangUp:
|
|
17763
|
-
onRetry:
|
|
17764
|
-
onDismiss:
|
|
17896
|
+
onToggleMute: nn,
|
|
17897
|
+
onHangUp: Bt,
|
|
17898
|
+
onRetry: Ht,
|
|
17899
|
+
onDismiss: Vt
|
|
17765
17900
|
}, null, 8, [
|
|
17766
17901
|
"state",
|
|
17767
17902
|
"remaining-seconds",
|
|
@@ -17772,35 +17907,87 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17772
17907
|
]))
|
|
17773
17908
|
]),
|
|
17774
17909
|
F(K, null, {
|
|
17775
|
-
default: B(() => [E(
|
|
17910
|
+
default: B(() => [E(gt) && xe.value?.enabled ? (P(), Z("div", mx, [F(v, {
|
|
17776
17911
|
name: "ri:upload-cloud-2-line",
|
|
17777
17912
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
17778
|
-
}), H("span", null, N(E(
|
|
17913
|
+
}), H("span", null, N(E(Ue)("action.dropFile")), 1)])) : q("", !0)]),
|
|
17779
17914
|
_: 1
|
|
17780
|
-
})
|
|
17915
|
+
}),
|
|
17916
|
+
it.value && nt.value ? (P(), Z("aside", hx, [F(E(f), {
|
|
17917
|
+
closable: "",
|
|
17918
|
+
kind: it.value.kind,
|
|
17919
|
+
filename: it.value.filename,
|
|
17920
|
+
version: it.value.version,
|
|
17921
|
+
"download-url": Se(it.value.storedFileName),
|
|
17922
|
+
preview: at.value,
|
|
17923
|
+
loading: ot.value,
|
|
17924
|
+
error: st.value,
|
|
17925
|
+
onClose: ut
|
|
17926
|
+
}, null, 8, [
|
|
17927
|
+
"kind",
|
|
17928
|
+
"filename",
|
|
17929
|
+
"version",
|
|
17930
|
+
"download-url",
|
|
17931
|
+
"preview",
|
|
17932
|
+
"loading",
|
|
17933
|
+
"error"
|
|
17934
|
+
])])) : q("", !0),
|
|
17935
|
+
it.value && !nt.value ? (P(), L(y, {
|
|
17936
|
+
key: 2,
|
|
17937
|
+
modelValue: ft.value,
|
|
17938
|
+
"onUpdate:modelValue": _[6] ||= (e) => ft.value = e,
|
|
17939
|
+
title: it.value.filename,
|
|
17940
|
+
"label-close": E(Ue)("chatFilePreview.close"),
|
|
17941
|
+
modifiers: rt.value ? "fullscreen" : void 0,
|
|
17942
|
+
class: "pk-chatbot-view-chat__preview-dialog"
|
|
17943
|
+
}, {
|
|
17944
|
+
default: B(() => [F(E(f), {
|
|
17945
|
+
kind: it.value.kind,
|
|
17946
|
+
filename: it.value.filename,
|
|
17947
|
+
version: it.value.version,
|
|
17948
|
+
"download-url": Se(it.value.storedFileName),
|
|
17949
|
+
preview: at.value,
|
|
17950
|
+
loading: ot.value,
|
|
17951
|
+
error: st.value
|
|
17952
|
+
}, null, 8, [
|
|
17953
|
+
"kind",
|
|
17954
|
+
"filename",
|
|
17955
|
+
"version",
|
|
17956
|
+
"download-url",
|
|
17957
|
+
"preview",
|
|
17958
|
+
"loading",
|
|
17959
|
+
"error"
|
|
17960
|
+
])]),
|
|
17961
|
+
_: 1
|
|
17962
|
+
}, 8, [
|
|
17963
|
+
"modelValue",
|
|
17964
|
+
"title",
|
|
17965
|
+
"label-close",
|
|
17966
|
+
"modifiers"
|
|
17967
|
+
])) : q("", !0)
|
|
17781
17968
|
], 2);
|
|
17782
17969
|
};
|
|
17783
17970
|
}
|
|
17784
|
-
}), [["styles", [".pk-chatbot-view-chat{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.pk-chatbot-view-chat--empty{justify-content:center;gap:var(--spacing-md)}.pk-chatbot--phone .pk-chatbot-view-chat--empty{justify-content:flex-start}.pk-chatbot--phone .pk-chatbot-view-chat--empty .pk-chatbot-empty-state{flex:1;justify-content:center}.pk-chatbot-view-chat__input-stage{position:relative}.pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{inset:calc(-1 * var(--spacing-224)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot--phone .pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{--aurora-spread:1.6;inset:calc(-1 * var(--spacing-384) - var(--spacing-128)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot-view-chat__agent-chip{align-items:center;gap:var(--spacing-6);padding:var(--spacing-4) var(--spacing-10) var(--spacing-4) var(--spacing-4);border:1px solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface);flex-shrink:0;display:inline-flex}.pk-chatbot--tight .pk-chatbot-view-chat__agent-chip{display:none}.pk-chatbot-view-chat__agent-chip-avatar{width:var(--spacing-24);height:var(--spacing-24);font-size:var(--text-10)}.pk-chatbot-view-chat__agent-chip-name{font-size:var(--text-12);font-weight:var(--font-semibold);color:var(--color-word-2);white-space:nowrap}.pk-chatbot-view-chat-fade-enter-active{transition:opacity .25s var(--ease-out)}.pk-chatbot-view-chat-fade-leave-active{transition:opacity .15s var(--ease-out)}.pk-chatbot-view-chat-fade-enter-from,.pk-chatbot-view-chat-fade-leave-to{opacity:0}@media (prefers-reduced-motion:reduce){.pk-chatbot-view-chat-fade-enter-active,.pk-chatbot-view-chat-fade-leave-active{transition:none}}.pk-chatbot-view-chat__drop-overlay{inset:var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);z-index:1;justify-content:center;align-items:center;gap:var(--spacing-xs);background-color:color-mix(in srgb, var(--color-surface) 85%, transparent);border-radius:var(--rounded-xl);border:var(--spacing-2) dashed var(--color-surface-5);pointer-events:none;color:var(--color-word-3);flex-direction:column;display:flex;position:absolute}.pk-chatbot-view-chat__drop-overlay-icon{font-size:var(--spacing-32)}"]]]);
|
|
17971
|
+
}), [["styles", [".pk-chatbot-view-chat{--pk-chatbot-preview-width:520px;flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.pk-chatbot-view-chat--with-preview{padding-inline-end:var(--pk-chatbot-preview-width)}.pk-chatbot-view-chat__preview{inset-block:var(--pk-chatbot-preview-top,0) 0;z-index:1;width:var(--pk-chatbot-preview-width);border-inline-start:var(--border) solid var(--color-surface-3);background-color:var(--color-surface);position:absolute;inset-inline-end:0}.pk-chatbot-view-chat__preview-dialog:not(.vv-dialog--fullscreen)>article{width:min(56rem,90dvw);height:90dvh}.pk-chatbot-view-chat__preview-dialog.vv-dialog--fullscreen>article{max-height:none}.pk-chatbot-view-chat__preview-dialog .vv-dialog__content{flex-direction:column;flex:1;min-height:0;padding:0;display:flex}.pk-chatbot-view-chat--empty{justify-content:center;gap:var(--spacing-md)}.pk-chatbot--phone .pk-chatbot-view-chat--empty{justify-content:flex-start}.pk-chatbot--phone .pk-chatbot-view-chat--empty .pk-chatbot-empty-state{flex:1;justify-content:center}.pk-chatbot-view-chat__input-stage{position:relative}.pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{inset:calc(-1 * var(--spacing-224)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot--phone .pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{--aurora-spread:1.6;inset:calc(-1 * var(--spacing-384) - var(--spacing-128)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot-view-chat__agent-chip{align-items:center;gap:var(--spacing-6);padding:var(--spacing-4) var(--spacing-10) var(--spacing-4) var(--spacing-4);border:1px solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface);flex-shrink:0;display:inline-flex}.pk-chatbot--tight .pk-chatbot-view-chat__agent-chip{display:none}.pk-chatbot-view-chat__agent-chip-avatar{width:var(--spacing-24);height:var(--spacing-24);font-size:var(--text-10)}.pk-chatbot-view-chat__agent-chip-name{font-size:var(--text-12);font-weight:var(--font-semibold);color:var(--color-word-2);white-space:nowrap}.pk-chatbot-view-chat-fade-enter-active{transition:opacity .25s var(--ease-out)}.pk-chatbot-view-chat-fade-leave-active{transition:opacity .15s var(--ease-out)}.pk-chatbot-view-chat-fade-enter-from,.pk-chatbot-view-chat-fade-leave-to{opacity:0}@media (prefers-reduced-motion:reduce){.pk-chatbot-view-chat-fade-enter-active,.pk-chatbot-view-chat-fade-leave-active{transition:none}}.pk-chatbot-view-chat__drop-overlay{inset:var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);z-index:1;justify-content:center;align-items:center;gap:var(--spacing-xs);background-color:color-mix(in srgb, var(--color-surface) 85%, transparent);border-radius:var(--rounded-xl);border:var(--spacing-2) dashed var(--color-surface-5);pointer-events:none;color:var(--color-word-3);flex-direction:column;display:flex;position:absolute}.pk-chatbot-view-chat__drop-overlay-icon{font-size:var(--spacing-32)}"]]]);
|
|
17785
17972
|
// ../../packages/components/src/chat/PkChatbotViewConversations.vue?vue&type=script&setup=true&lang.ts
|
|
17786
17973
|
G(), R(), Y(), De();
|
|
17787
|
-
var
|
|
17974
|
+
var Sx = { class: "flex flex-col flex-1 min-h-0 relative" }, Cx = {
|
|
17788
17975
|
key: 0,
|
|
17789
17976
|
class: "vv-item-group vv-item-group--fill"
|
|
17790
|
-
},
|
|
17977
|
+
}, wx = { class: "vv-item-group__list" }, Tx = { class: "vv-item__entry" }, Ex = { class: "flex flex-col gap-6 flex-1 min-w-0" }, Dx = {
|
|
17791
17978
|
key: 1,
|
|
17792
17979
|
class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
|
|
17793
|
-
},
|
|
17980
|
+
}, Ox = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, kx = { class: "flex flex-col gap-4" }, Ax = { class: "text-16 font-semibold text-word-1" }, jx = { class: "text-14 text-word-3 leading-relaxed" }, Mx = {
|
|
17794
17981
|
key: 2,
|
|
17795
17982
|
class: "vv-item-group vv-item-group--fill"
|
|
17796
|
-
},
|
|
17983
|
+
}, Nx = { class: "vv-item-group__list overflow-y-auto pb-64 light-scrollbar" }, Px = {
|
|
17797
17984
|
key: 0,
|
|
17798
17985
|
class: "flex flex-1 items-center gap-8 min-w-0 px-md py-12"
|
|
17799
|
-
},
|
|
17986
|
+
}, Fx = ["aria-current", "onClick"], Ix = { class: "min-w-0 flex-1" }, Lx = { class: "flex items-center gap-8" }, Rx = { class: "vv-item__title font-medium flex-1" }, zx = { class: "text-12 text-word-4 line-clamp-2" }, Bx = { class: "vv-item__actions" }, Vx = {
|
|
17800
17987
|
key: 3,
|
|
17801
17988
|
class: "absolute bottom-0 left-0 right-0 flex flex-col items-center gap-4 px-16 pb-16 pt-32 pointer-events-none",
|
|
17802
17989
|
style: { background: "linear-gradient(to top, var(--color-surface) 55%, transparent)" }
|
|
17803
|
-
},
|
|
17990
|
+
}, Hx = /* @__PURE__ */ J({
|
|
17804
17991
|
__name: "PkChatbotViewConversations",
|
|
17805
17992
|
props: { agentId: { type: String } },
|
|
17806
17993
|
setup(e) {
|
|
@@ -17829,19 +18016,19 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17829
18016
|
};
|
|
17830
18017
|
return (e, t) => {
|
|
17831
18018
|
let r = wn, o = En, c = bn, u = _n, d = xn, m = Tn;
|
|
17832
|
-
return P(), Z("div",
|
|
18019
|
+
return P(), Z("div", Sx, [E(a) && E(i).length === 0 ? (P(), Z("div", Cx, [H("div", wx, [(P(), Z(V, null, w(5, (e) => H("div", {
|
|
17833
18020
|
key: e,
|
|
17834
18021
|
class: "vv-item vv-item--roomy vv-item--plain"
|
|
17835
|
-
}, [H("div",
|
|
18022
|
+
}, [H("div", Tx, [H("div", Ex, [
|
|
17836
18023
|
H("div", { class: de(["vv-skeleton h-16 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[5] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2),
|
|
17837
18024
|
t[6] ||= H("div", { class: "vv-skeleton h-12 rounded" }, [H("div", { class: "vv-skeleton__item" })], -1),
|
|
17838
18025
|
t[7] ||= H("div", { class: "vv-skeleton h-12 rounded w-160" }, [H("div", { class: "vv-skeleton__item" })], -1)
|
|
17839
|
-
])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div",
|
|
17840
|
-
H("div",
|
|
18026
|
+
])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div", Dx, [
|
|
18027
|
+
H("div", Ox, [F(r, {
|
|
17841
18028
|
name: "ri:chat-3-line",
|
|
17842
18029
|
class: "w-28 h-28 text-word-4"
|
|
17843
18030
|
})]),
|
|
17844
|
-
H("div",
|
|
18031
|
+
H("div", kx, [H("strong", Ax, N(E(n)("message.noConversations")), 1), H("span", jx, N(E(n)("message.noConversationsHint")), 1)]),
|
|
17845
18032
|
F(o, {
|
|
17846
18033
|
modifiers: "primary rounded",
|
|
17847
18034
|
icon: "ri:add-line",
|
|
@@ -17849,10 +18036,10 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17849
18036
|
label: E(n)("action.startNewChat"),
|
|
17850
18037
|
onClick: t[0] ||= (e) => E(l)()
|
|
17851
18038
|
}, null, 8, ["label"])
|
|
17852
|
-
])) : (P(), Z("div",
|
|
18039
|
+
])) : (P(), Z("div", Mx, [H("ul", Nx, [(P(!0), Z(V, null, w(E(i), (e) => (P(), Z("li", {
|
|
17853
18040
|
key: e.id,
|
|
17854
18041
|
class: de(["vv-item vv-item--roomy", { "vv-item--current": b(e) }])
|
|
17855
|
-
}, [E(f) === e.id ? (P(), Z("div",
|
|
18042
|
+
}, [E(f) === e.id ? (P(), Z("div", Px, [F(c, {
|
|
17856
18043
|
modelValue: E(p),
|
|
17857
18044
|
"onUpdate:modelValue": t[1] ||= (e) => Ce(p) ? p.value = e : null,
|
|
17858
18045
|
class: "flex-1 mb-0",
|
|
@@ -17886,8 +18073,8 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17886
18073
|
class: "vv-item__entry",
|
|
17887
18074
|
"aria-current": b(e) ? "true" : void 0,
|
|
17888
18075
|
onClick: (t) => y(e.id)
|
|
17889
|
-
}, [H("div",
|
|
17890
|
-
H("strong",
|
|
18076
|
+
}, [H("div", Ix, [H("div", Lx, [
|
|
18077
|
+
H("strong", Rx, N(E(sn)(e.title) || x(e.messages, "assistant")), 1),
|
|
17891
18078
|
E(s).includes(e.id) ? (P(), L(r, {
|
|
17892
18079
|
key: 0,
|
|
17893
18080
|
name: "loading-loop",
|
|
@@ -17900,7 +18087,7 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17900
18087
|
class: "text-word-4 text-smaller shrink-0",
|
|
17901
18088
|
date: e.lastMessageAt
|
|
17902
18089
|
}, null, 8, ["date"])
|
|
17903
|
-
]), H("span",
|
|
18090
|
+
]), H("span", zx, N(E(sn)(E(Ge)(e.summary, E(n))) || x(e.messages, "user")), 1)])], 8, Fx), H("div", Bx, [F(m, oe({ ref_for: !0 }, {
|
|
17904
18091
|
placement: "bottom-end",
|
|
17905
18092
|
modifiers: "menu",
|
|
17906
18093
|
flip: !0,
|
|
@@ -17920,7 +18107,7 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17920
18107
|
modifiers: "action-quiet-small"
|
|
17921
18108
|
}, null, 8, ["title"])]),
|
|
17922
18109
|
_: 2
|
|
17923
|
-
}, 1040)])], 64))], 2))), 128))])])), E(i).length > 0 ? (P(), Z("div",
|
|
18110
|
+
}, 1040)])], 64))], 2))), 128))])])), E(i).length > 0 ? (P(), Z("div", Vx, [F(o, {
|
|
17924
18111
|
class: "text-14 pointer-events-auto",
|
|
17925
18112
|
modifiers: "primary rounded",
|
|
17926
18113
|
icon: "ri:add-line",
|
|
@@ -17945,16 +18132,16 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17945
18132
|
});
|
|
17946
18133
|
// ../../packages/components/src/chat/PkChatbotViewFiles.vue?vue&type=script&setup=true&lang.ts
|
|
17947
18134
|
G(), R(), Y();
|
|
17948
|
-
var
|
|
18135
|
+
var Ux = { class: "flex flex-col flex-1 min-h-0 relative" }, Wx = {
|
|
17949
18136
|
key: 0,
|
|
17950
18137
|
class: "vv-item-group vv-item-group--fill"
|
|
17951
|
-
},
|
|
18138
|
+
}, Gx = { class: "vv-item-group__list" }, Kx = { class: "vv-item__entry" }, qx = { class: "flex flex-col gap-6 flex-1 min-w-0" }, Jx = {
|
|
17952
18139
|
key: 1,
|
|
17953
18140
|
class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
|
|
17954
|
-
},
|
|
18141
|
+
}, Yx = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, Xx = { class: "text-14 text-word-3 leading-relaxed" }, Zx = {
|
|
17955
18142
|
key: 2,
|
|
17956
18143
|
class: "vv-item-group vv-item-group--fill"
|
|
17957
|
-
},
|
|
18144
|
+
}, Qx = { class: "pk-chatbot-files vv-item-group__list overflow-y-auto light-scrollbar" }, $x = ["title", "onClick"], eS = { class: "pk-chatbot-files__icon" }, tS = ["src", "onError"], nS = { class: "flex flex-col min-w-0 flex-1" }, rS = { class: "vv-item__title" }, iS = { class: "text-12 text-word-3" }, aS = { class: "vv-item__actions pk-chatbot-files__actions" }, oS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
17958
18145
|
__name: "PkChatbotViewFiles",
|
|
17959
18146
|
props: { agentId: { type: String } },
|
|
17960
18147
|
setup(e) {
|
|
@@ -17973,13 +18160,13 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
|
|
|
17973
18160
|
};
|
|
17974
18161
|
return (e, t) => {
|
|
17975
18162
|
let r = wn, i = En;
|
|
17976
|
-
return P(), Z("div",
|
|
18163
|
+
return P(), Z("div", Ux, [E(o) && E(a).length === 0 ? (P(), Z("div", Wx, [H("div", Gx, [(P(), Z(V, null, w(4, (e) => H("div", {
|
|
17977
18164
|
key: e,
|
|
17978
18165
|
class: "vv-item vv-item--roomy vv-item--plain"
|
|
17979
|
-
}, [H("div",
|
|
18166
|
+
}, [H("div", Kx, [t[2] ||= H("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [H("div", { class: "vv-skeleton__item" })], -1), H("div", qx, [H("div", { class: de(["vv-skeleton h-14 rounded", e % 2 ? "w-192" : "w-128"]) }, [...t[0] ||= [H("div", { class: "vv-skeleton__item" }, null, -1)]], 2), t[1] ||= H("div", { class: "vv-skeleton h-12 rounded w-96" }, [H("div", { class: "vv-skeleton__item" })], -1)])])])), 64))])])) : E(a).length === 0 ? (P(), Z("div", Jx, [H("div", Yx, [F(r, {
|
|
17980
18167
|
name: "ri:folder-open-line",
|
|
17981
18168
|
class: "w-28 h-28 text-word-4"
|
|
17982
|
-
})]), H("span",
|
|
18169
|
+
})]), H("span", Xx, N(E(n)("userFiles.chatFilesEmpty")), 1)])) : (P(), Z("div", Zx, [H("ul", Qx, [(P(!0), Z(V, null, w(E(a), (e) => (P(), Z("li", {
|
|
17983
18170
|
key: e.documentId,
|
|
17984
18171
|
class: "vv-item vv-item--roomy"
|
|
17985
18172
|
}, [H("button", {
|
|
@@ -17987,7 +18174,7 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
|
|
|
17987
18174
|
class: "vv-item__entry",
|
|
17988
18175
|
title: E(n)("userFiles.open"),
|
|
17989
18176
|
onClick: (t) => E(u)(e)
|
|
17990
|
-
}, [H("span",
|
|
18177
|
+
}, [H("span", eS, [E(s)(e) ? (P(), Z("img", {
|
|
17991
18178
|
key: 0,
|
|
17992
18179
|
src: E(c)(e),
|
|
17993
18180
|
loading: "lazy",
|
|
@@ -17995,10 +18182,10 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
|
|
|
17995
18182
|
alt: "",
|
|
17996
18183
|
class: "pk-chatbot-files__thumb",
|
|
17997
18184
|
onError: (t) => E(l)(e)
|
|
17998
|
-
}, null, 40,
|
|
18185
|
+
}, null, 40, tS)) : (P(), L(r, {
|
|
17999
18186
|
key: 1,
|
|
18000
18187
|
name: E(on)(e.mimeType)
|
|
18001
|
-
}, null, 8, ["name"]))]), H("span",
|
|
18188
|
+
}, null, 8, ["name"]))]), H("span", nS, [H("span", rS, N(e.name || E(n)("userFiles.untitled")), 1), H("span", iS, N([E(d)(e.createdAt), E(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, $x), H("div", aS, [F(i, {
|
|
18002
18189
|
modifiers: "action-quiet-small",
|
|
18003
18190
|
icon: "ri:download-line",
|
|
18004
18191
|
title: E(n)("action.download"),
|
|
@@ -18021,16 +18208,16 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
|
|
|
18021
18208
|
}), [["styles", [".pk-chatbot-files__icon{width:var(--spacing-36);height:var(--spacing-36);border-radius:var(--rounded-md);color:var(--color-word-3);flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}.pk-chatbot-files__icon svg{width:var(--spacing-20);height:var(--spacing-20)}.pk-chatbot-files__thumb{object-fit:cover;width:100%;height:100%}.pk-chatbot-files__actions{gap:var(--spacing-2)}"]]]);
|
|
18022
18209
|
// ../../packages/components/src/chat/PkChatbotViewProfile.vue?vue&type=script&setup=true&lang.ts
|
|
18023
18210
|
G(), R(), Y();
|
|
18024
|
-
var
|
|
18211
|
+
var sS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, cS = { class: "flex flex-col items-center gap-sm pt-lg px-lg pb-md bg-surface-1 border-b border-surface-3" }, lS = { class: "flex flex-col items-center gap-6 text-center" }, uS = {
|
|
18025
18212
|
key: 0,
|
|
18026
18213
|
class: "text-16 font-semibold text-word-1 leading-tight"
|
|
18027
|
-
},
|
|
18214
|
+
}, dS = {
|
|
18028
18215
|
key: 1,
|
|
18029
18216
|
class: "text-12 text-word-3 leading-none"
|
|
18030
|
-
},
|
|
18217
|
+
}, fS = { class: "flex flex-col gap-sm p-md flex-1" }, pS = ["href"], mS = { class: "w-40 h-40 rounded-lg bg-surface-2 border border-surface-3 flex items-center justify-center shrink-0" }, hS = { class: "flex flex-col flex-1 min-w-0 gap-1" }, gS = { class: "text-14 font-medium text-word-1 leading-tight" }, _S = { class: "text-12 text-word-3 leading-tight" }, vS = {
|
|
18031
18218
|
key: 0,
|
|
18032
18219
|
class: "px-md py-sm"
|
|
18033
|
-
},
|
|
18220
|
+
}, yS = /* @__PURE__ */ J({
|
|
18034
18221
|
__name: "PkChatbotViewProfile",
|
|
18035
18222
|
props: { agentId: { type: String } },
|
|
18036
18223
|
setup(e) {
|
|
@@ -18049,13 +18236,13 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
|
|
|
18049
18236
|
}
|
|
18050
18237
|
return (e, t) => {
|
|
18051
18238
|
let a = Cn, p = wn, m = En;
|
|
18052
|
-
return P(), Z("div",
|
|
18053
|
-
H("div",
|
|
18239
|
+
return P(), Z("div", sS, [
|
|
18240
|
+
H("div", cS, [F(H_, {
|
|
18054
18241
|
class: "w-64 h-64",
|
|
18055
18242
|
name: o.value?.name ?? E(r),
|
|
18056
18243
|
"img-src": o.value?.image ?? E(i)?.logo
|
|
18057
|
-
}, null, 8, ["name", "img-src"]), H("div",
|
|
18058
|
-
H("div",
|
|
18244
|
+
}, null, 8, ["name", "img-src"]), H("div", lS, [o.value?.name ?? E(r) ? (P(), Z("strong", uS, N(o.value?.name ?? E(r)), 1)) : q("", !0), o.value?.email ? (P(), Z("span", dS, N(o.value.email), 1)) : q("", !0)])]),
|
|
18245
|
+
H("div", fS, [d.value ? (P(), L(a, {
|
|
18059
18246
|
key: 0,
|
|
18060
18247
|
modifiers: "danger",
|
|
18061
18248
|
content: d.value
|
|
@@ -18066,17 +18253,17 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
|
|
|
18066
18253
|
rel: "noopener noreferrer",
|
|
18067
18254
|
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"
|
|
18068
18255
|
}, [
|
|
18069
|
-
H("div",
|
|
18256
|
+
H("div", mS, [F(p, {
|
|
18070
18257
|
name: "ri:user-settings-line",
|
|
18071
18258
|
class: "w-20 h-20 text-word-2"
|
|
18072
18259
|
})]),
|
|
18073
|
-
H("div",
|
|
18260
|
+
H("div", hS, [H("span", gS, N(E(n)("action.manageProfile")), 1), H("span", _S, N(E(n)("label.manageProfileDescription")), 1)]),
|
|
18074
18261
|
F(p, {
|
|
18075
18262
|
name: "ri:arrow-right-s-line",
|
|
18076
18263
|
class: "w-16 h-16 text-word-4 shrink-0"
|
|
18077
18264
|
})
|
|
18078
|
-
], 8,
|
|
18079
|
-
l.value ? q("", !0) : (P(), Z("div",
|
|
18265
|
+
], 8, pS)) : q("", !0)]),
|
|
18266
|
+
l.value ? q("", !0) : (P(), Z("div", vS, [F(m, {
|
|
18080
18267
|
modifiers: "secondary-danger",
|
|
18081
18268
|
class: "w-full",
|
|
18082
18269
|
icon: "ri:logout-box-line",
|
|
@@ -18096,13 +18283,13 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
|
|
|
18096
18283
|
});
|
|
18097
18284
|
// ../../packages/components/src/chat/PkChatbot.vue?vue&type=script&setup=true&lang.ts
|
|
18098
18285
|
G(), R(), Y();
|
|
18099
|
-
var
|
|
18286
|
+
var bS = { class: "pk-chatbot__header-start" }, xS = ["title"], SS = { key: 1 }, CS = { class: "pk-chatbot__warning-body" }, wS = { class: "pk-chatbot__warning-header" }, TS = { class: "pk-chatbot__warning-title" }, ES = { class: "pk-chatbot__warning-text" }, DS = {
|
|
18100
18287
|
key: 5,
|
|
18101
18288
|
class: "pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto"
|
|
18102
|
-
},
|
|
18289
|
+
}, OS = {
|
|
18103
18290
|
key: 7,
|
|
18104
18291
|
class: "pk-chatbot__footer"
|
|
18105
|
-
},
|
|
18292
|
+
}, kS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
18106
18293
|
__name: "PkChatbot",
|
|
18107
18294
|
props: /*@__PURE__*/ ae({
|
|
18108
18295
|
baseUrl: { type: String },
|
|
@@ -18199,7 +18386,7 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18199
18386
|
key: 0,
|
|
18200
18387
|
class: "pk-chatbot__header",
|
|
18201
18388
|
style: O(fe.value ? { backgroundColor: z.value } : void 0)
|
|
18202
|
-
}, [H("div",
|
|
18389
|
+
}, [H("div", bS, [E(d) === "chat" ? re.value ? q("", !0) : (P(), L(H_, {
|
|
18203
18390
|
key: 1,
|
|
18204
18391
|
class: "pk-chatbot__avatar",
|
|
18205
18392
|
name: e.name,
|
|
@@ -18216,7 +18403,7 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18216
18403
|
class: "pk-chatbot__title",
|
|
18217
18404
|
title: be.value,
|
|
18218
18405
|
style: O(fe.value ? { color: _e.value } : void 0)
|
|
18219
|
-
}, N(be.value), 13,
|
|
18406
|
+
}, N(be.value), 13, xS)]), F(f, {
|
|
18220
18407
|
class: "pk-chatbot__header-end",
|
|
18221
18408
|
modifiers: "compact"
|
|
18222
18409
|
}, {
|
|
@@ -18307,14 +18494,14 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18307
18494
|
]),
|
|
18308
18495
|
_: 3
|
|
18309
18496
|
})], 4)),
|
|
18310
|
-
ue.value ? (P(), Z("div",
|
|
18311
|
-
default: B(() => [H("div",
|
|
18497
|
+
ue.value ? (P(), Z("div", SS, [H("div", CS, [F(p, { modifiers: "callout" }, {
|
|
18498
|
+
default: B(() => [H("div", wS, [F(s, {
|
|
18312
18499
|
name: "ri:alert-line",
|
|
18313
18500
|
class: "pk-chatbot__warning-icon"
|
|
18314
|
-
}), H("strong",
|
|
18501
|
+
}), H("strong", TS, N(E(i)("message.warning")), 1)]), H("p", ES, N(E(i)("message.reasoningAgent")), 1)]),
|
|
18315
18502
|
_: 1
|
|
18316
18503
|
})])])) : q("", !0),
|
|
18317
|
-
E(d) === "chat" ? (P(), L(
|
|
18504
|
+
E(d) === "chat" ? (P(), L(xx, {
|
|
18318
18505
|
key: 2,
|
|
18319
18506
|
"agent-id": e.agentId,
|
|
18320
18507
|
modifier: e.modifier,
|
|
@@ -18328,23 +18515,23 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18328
18515
|
"agent-id",
|
|
18329
18516
|
"modifier",
|
|
18330
18517
|
"user-name"
|
|
18331
|
-
])) : E(d) === "conversations" ? (P(), L(
|
|
18518
|
+
])) : E(d) === "conversations" ? (P(), L(Hx, {
|
|
18332
18519
|
key: 3,
|
|
18333
18520
|
"agent-id": e.agentId
|
|
18334
18521
|
}, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
|
|
18335
18522
|
name: e,
|
|
18336
18523
|
fn: B((n) => [pe(t.$slots, e, te(k(n)))])
|
|
18337
|
-
}))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(
|
|
18524
|
+
}))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(oS, {
|
|
18338
18525
|
key: 4,
|
|
18339
18526
|
"agent-id": e.agentId
|
|
18340
|
-
}, null, 8, ["agent-id"])) : E(d) === "auth" ? (P(), Z("div",
|
|
18527
|
+
}, null, 8, ["agent-id"])) : E(d) === "auth" ? (P(), Z("div", DS, [pe(t.$slots, "view-auth")])) : (P(), L(yS, {
|
|
18341
18528
|
key: 6,
|
|
18342
18529
|
"agent-id": e.agentId
|
|
18343
18530
|
}, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
|
|
18344
18531
|
name: e,
|
|
18345
18532
|
fn: B((n) => [pe(t.$slots, e, te(k(n)))])
|
|
18346
18533
|
}))]), 1032, ["agent-id"])),
|
|
18347
|
-
E(ye) ? (P(), Z("div",
|
|
18534
|
+
E(ye) ? (P(), Z("div", OS, [F(St, {
|
|
18348
18535
|
markdown: E(ye),
|
|
18349
18536
|
class: "wysiwyg"
|
|
18350
18537
|
}, null, 8, ["markdown"])])) : q("", !0)
|
|
@@ -18354,11 +18541,11 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18354
18541
|
}), [["styles", [".pk-chatbot{background-color:var(--color-surface);flex-direction:column;height:100%;display:flex;position:relative}.pk-chatbot__header{z-index:1;justify-content:space-between;gap:var(--spacing-14);background-color:var(--color-surface-1);padding:var(--spacing-14);border-bottom:1px solid var(--color-surface-3);display:flex;position:sticky;top:0}.pk-chatbot__header-start{align-items:center;gap:var(--spacing-sm);min-width:0;display:flex}.pk-chatbot__nav-icon{font-size:var(--text-18)}.pk-chatbot__avatar{width:var(--spacing-24);height:var(--spacing-24)}.pk-chatbot__title{font-size:var(--text-16);font-weight:var(--font-semibold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pk-chatbot__header-end{flex-shrink:0}.pk-chatbot__warning-body{padding:var(--spacing-md);border-bottom:1px solid var(--color-surface-3)}.pk-chatbot__warning-header{align-items:center;gap:var(--spacing-4);margin-bottom:var(--spacing-4);display:flex}.pk-chatbot__warning-icon{width:var(--spacing-16);height:var(--spacing-16)}.pk-chatbot__warning-title{font-weight:600;font-size:var(--text-14)}.pk-chatbot__warning-text{font-size:var(--text-12);color:var(--color-word-3)}.pk-chatbot__footer{padding:var(--spacing-md);border-top:1px solid var(--color-surface-3);text-align:center;font-size:var(--text-12);color:var(--color-word-2)}.pk-chatbot--fullscreen{--pk-chat-fullscreen-dock-height:calc(var(--spacing-56) + var(--spacing-4));--pk-chat-dock-radius:calc(var(--pk-chat-fullscreen-dock-height) / 2);background-color:#0000}.pk-chatbot--fullscreen .pk-chatbot__footer{padding:0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);border-top:none}.pk-chatbot--fullscreen .pk-chatbot-messages{scrollbar-gutter:stable both-edges;-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 var(--spacing-40), #000 calc(100% - var(--spacing-40)), transparent 100%);mask-image:linear-gradient(to bottom, transparent 0, #000 var(--spacing-40), #000 calc(100% - var(--spacing-40)), transparent 100%);padding-block:var(--spacing-48)}.pk-chatbot--fullscreen .pk-chatbot-messages__wrapper{width:100%;max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-messages__outline{display:none}.pk-chatbot--fullscreen.pk-chatbot--wide .pk-chatbot-messages__outline{display:block}.pk-chatbot--fullscreen .pk-chatbot-file-preview{background-color:var(--color-surface)}.pk-chatbot--fullscreen .pk-chatbot-input__notice{background-color:var(--color-surface);border-inline:1px solid var(--color-surface-3);border-top:1px solid var(--color-surface-2);padding:var(--spacing-10) var(--spacing-16)}.pk-chatbot--fullscreen .pk-chatbot-input__notice:after{background-color:var(--color-surface);border-inline:1px solid var(--color-surface-2);bottom:calc(-1 * var(--pk-chat-dock-radius));height:var(--pk-chat-dock-radius);left:-1px;right:-1px}.pk-chatbot--fullscreen .pk-chatbot-input{width:calc(100% - var(--spacing-sm) * 2);max-width:768px;margin-inline:auto}.pk-chatbot--fullscreen .pk-chatbot-input__form{border-radius:var(--pk-chat-dock-radius);min-height:var(--pk-chat-fullscreen-dock-height);padding:var(--spacing-12) var(--spacing-16);background-color:var(--color-surface-1);border-color:var(--color-surface-2);box-shadow:none;transition:border-color var(--duration-200) var(--ease-in-out), box-shadow var(--duration-200) var(--ease-in-out)}.pk-chatbot--fullscreen .pk-chatbot-input__form:has(:focus-within){border-color:var(--color-surface-4);box-shadow:var(--shadow-sm)}@media (prefers-reduced-motion:reduce){.pk-chatbot--fullscreen .pk-chatbot-input__form{transition:none}}.pk-chatbot--fullscreen .pk-chatbot-input__textarea{background-color:#0000}.pk-chatbot--fullscreen .pk-voice-session{--pk-chat-dock-height:var(--pk-chat-fullscreen-dock-height);--pk-voice-orb-size:var(--spacing-40);--pk-voice-orb-bars-height:var(--spacing-20);--pk-voice-session-surface:var(--color-surface-1);width:calc(100% - var(--spacing-sm) * 2);max-width:768px;padding-inline:var(--spacing-16);border-color:var(--color-surface-2);border-radius:var(--pk-chat-dock-radius);box-shadow:none;margin-inline:auto}.pk-chatbot--fullscreen .pk-voice-session__timer{font-size:var(--text-14)}.pk-chatbot--panel{background-color:#0000}.pk-chatbot--panel .pk-chatbot__header{height:var(--pk-chatbot-panel-header-height,50px);padding-block:0;padding-inline:var(--spacing-10);border-bottom:1px solid var(--color-surface-3);background-color:#0000;align-items:center}.pk-chatbot--panel .pk-chatbot__title{font-size:var(--text-14)}.pk-chatbot--panel .pk-chatbot__footer{padding:var(--spacing-6) var(--spacing-md);border-top:none}.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-messages__wrapper,.pk-chatbot--wide:not(.pk-chatbot--fullscreen) .pk-chatbot-input{width:100%;max-width:768px;margin-inline:auto}"]]]);
|
|
18355
18542
|
// ../../packages/components/src/chat/PkPageControlBar.vue?vue&type=script&setup=true&lang.ts
|
|
18356
18543
|
G(), Y(), De();
|
|
18357
|
-
var
|
|
18544
|
+
var AS = {
|
|
18358
18545
|
key: 0,
|
|
18359
18546
|
class: "pk-page-control-bar",
|
|
18360
18547
|
role: "status"
|
|
18361
|
-
},
|
|
18548
|
+
}, jS = { class: "pk-page-control-bar__text" }, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
18362
18549
|
__name: "PkPageControlBar",
|
|
18363
18550
|
props: {
|
|
18364
18551
|
active: { type: Boolean },
|
|
@@ -18371,7 +18558,7 @@ var OS = {
|
|
|
18371
18558
|
name: "pk-page-control-bar",
|
|
18372
18559
|
appear: ""
|
|
18373
18560
|
}, {
|
|
18374
|
-
default: B(() => [e.active ? (P(), Z("div",
|
|
18561
|
+
default: B(() => [e.active ? (P(), Z("div", AS, [H("span", jS, [Ne(N(t.$t("messagePart.pageControlActive")) + " ", 1), e.action ? (P(), Z(V, { key: 0 }, [Ne("· " + N(e.action), 1)], 64)) : q("", !0)]), H("button", {
|
|
18375
18562
|
type: "button",
|
|
18376
18563
|
class: "pk-page-control-bar__stop",
|
|
18377
18564
|
onClick: r[0] ||= (e) => n("stop")
|
|
@@ -18382,7 +18569,7 @@ var OS = {
|
|
|
18382
18569
|
}), [["styles", [".pk-page-control-bar{top:var(--spacing-48);z-index:2147483647;align-items:center;gap:var(--spacing-12);max-width:min(var(--spacing-384), 100vw - var(--spacing-32));padding:var(--spacing-8) var(--spacing-8) var(--spacing-8) var(--spacing-16);border-radius:var(--rounded-full);background-color:var(--color-word-1);color:var(--color-surface);font-family:var(--font-sans);font-size:var(--text-14);font-weight:var(--font-medium);box-shadow:var(--shadow-lg);display:flex;position:fixed;left:50%;transform:translate(-50%)}.pk-page-control-bar__text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.pk-page-control-bar__stop{border-radius:var(--rounded-full);padding:var(--spacing-6) var(--spacing-14);background-color:var(--color-surface);color:var(--color-word-1);font:inherit;cursor:pointer;border:0;flex-shrink:0}.pk-page-control-bar__stop:focus-visible{outline:var(--spacing-2) solid var(--color-surface);outline-offset:var(--spacing-2)}.pk-page-control-bar-enter-active{transition:opacity .25s ease-out,translate .35s cubic-bezier(.32,.72,0,1),scale .35s cubic-bezier(.32,.72,0,1)}.pk-page-control-bar-leave-active{transition:opacity .2s ease-in,translate .2s ease-in,scale .2s ease-in}.pk-page-control-bar-enter-from,.pk-page-control-bar-leave-to{opacity:0;translate:0 calc(-1 * var(--spacing-16));scale:.96}@media (prefers-reduced-motion:reduce){.pk-page-control-bar-enter-active,.pk-page-control-bar-leave-active{transition:none}}"]]]);
|
|
18383
18570
|
// ../../packages/components/src/chat/PkHostCallConfirmDialog.vue?vue&type=script&setup=true&lang.ts
|
|
18384
18571
|
G(), De(), Y(), R();
|
|
18385
|
-
var
|
|
18572
|
+
var NS = 16, PS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
18386
18573
|
__name: "PkHostCallConfirmDialog",
|
|
18387
18574
|
props: {
|
|
18388
18575
|
question: { type: String },
|
|
@@ -18398,7 +18585,7 @@ var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
18398
18585
|
i.value = void 0;
|
|
18399
18586
|
return;
|
|
18400
18587
|
}
|
|
18401
|
-
let a = Math.max(
|
|
18588
|
+
let a = Math.max(NS, Math.min(n.top, window.innerHeight - e.offsetHeight - NS)), o = {
|
|
18402
18589
|
left: `${n.left}px`,
|
|
18403
18590
|
top: `${a}px`,
|
|
18404
18591
|
width: `${n.width}px`
|
|
@@ -18426,37 +18613,37 @@ var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
18426
18613
|
}), [["styles", [".pk-host-call-confirm-dialog{inset:auto 0 var(--spacing-32);width:min(24rem, 100vw - var(--spacing-32));border-radius:var(--rounded-xl);max-width:none;color:var(--color-word-1);font-family:var(--font-sans);box-shadow:var(--shadow-xl);background:0 0;border:0;margin:0 auto;padding:0;position:fixed}.pk-host-call-confirm-dialog--anchored{margin:0;inset:auto}.pk-host-call-confirm-dialog::backdrop{background:0 0}"]]]);
|
|
18427
18614
|
// src/composables/usePageModal.ts
|
|
18428
18615
|
R(), G();
|
|
18429
|
-
var
|
|
18616
|
+
var FS = 300, IS = 50, LS = /* @__PURE__ */ new Set(["EMBEDDED-CHAT-WIDGET", "FLOATING-CHAT-WIDGET"]), RS = (e) => [...e.querySelectorAll("dialog:modal")], zS = (e) => [...e.querySelectorAll("*")].filter((e) => !LS.has(e.tagName)).map((e) => e.shadowRoot).filter((e) => !!e), BS = () => {
|
|
18430
18617
|
let e = [], t = document.activeElement;
|
|
18431
18618
|
for (; t;) e.push(t), t = t.shadowRoot?.activeElement ?? null;
|
|
18432
18619
|
return e;
|
|
18433
|
-
},
|
|
18434
|
-
let t = (t) =>
|
|
18620
|
+
}, VS = (e) => {
|
|
18621
|
+
let t = (t) => RS(t).filter((t) => !e?.(t)), n;
|
|
18435
18622
|
try {
|
|
18436
18623
|
n = t(document);
|
|
18437
|
-
let e = n.length === 0 ?
|
|
18438
|
-
for (let r = 0; n.length === 0 && e.length > 0 && r <
|
|
18624
|
+
let e = n.length === 0 ? zS(document) : [];
|
|
18625
|
+
for (let r = 0; n.length === 0 && e.length > 0 && r < IS; r++) {
|
|
18439
18626
|
let r = e.shift();
|
|
18440
|
-
n = t(r), e.push(...
|
|
18627
|
+
n = t(r), e.push(...zS(r));
|
|
18441
18628
|
}
|
|
18442
18629
|
} catch {
|
|
18443
18630
|
return null;
|
|
18444
18631
|
}
|
|
18445
|
-
let r =
|
|
18632
|
+
let r = BS();
|
|
18446
18633
|
return [...n].reverse().find((e) => r.some((t) => e.contains(t))) ?? n[n.length - 1] ?? null;
|
|
18447
18634
|
};
|
|
18448
|
-
function
|
|
18635
|
+
function HS(e) {
|
|
18449
18636
|
let t = he(null), n, r = () => {
|
|
18450
18637
|
clearInterval(n), n = void 0, t.value = null;
|
|
18451
18638
|
};
|
|
18452
18639
|
return I(() => X(e), (e) => {
|
|
18453
|
-
r(), e && (t.value =
|
|
18454
|
-
let e =
|
|
18640
|
+
r(), e && (t.value = VS(), n = setInterval(() => {
|
|
18641
|
+
let e = VS();
|
|
18455
18642
|
e !== t.value && (t.value = e);
|
|
18456
|
-
},
|
|
18643
|
+
}, FS));
|
|
18457
18644
|
}, { immediate: !0 }), be(r), t;
|
|
18458
18645
|
}
|
|
18459
|
-
var
|
|
18646
|
+
var US = () => {
|
|
18460
18647
|
for (let e of document.querySelectorAll("embedded-chat-widget, floating-chat-widget")) {
|
|
18461
18648
|
let t = e.shadowRoot?.querySelector(".pk-page-control-bar");
|
|
18462
18649
|
if (t) {
|
|
@@ -18471,16 +18658,16 @@ var VS = () => {
|
|
|
18471
18658
|
ink: "#111",
|
|
18472
18659
|
paper: "#fff"
|
|
18473
18660
|
};
|
|
18474
|
-
},
|
|
18475
|
-
let n = t.getBoundingClientRect(), r = e.offsetHeight, i = window.innerHeight - n.bottom, a =
|
|
18476
|
-
n.top <
|
|
18477
|
-
},
|
|
18661
|
+
}, WS = 48, GS = 8, KS = (e, t) => {
|
|
18662
|
+
let n = t.getBoundingClientRect(), r = e.offsetHeight, i = window.innerHeight - n.bottom, a = WS, o;
|
|
18663
|
+
n.top < WS + r + GS && (n.top >= r + 16 ? a = n.top - r - GS : i >= r + 16 && (a = void 0, o = i - r - GS)), e.style.top = a === void 0 ? "auto" : `${a}px`, e.style.bottom = o === void 0 ? "auto" : `${o}px`, e.style.setProperty("--stop-from", `${a === void 0 ? 1 : -1} * ${qS}px`);
|
|
18664
|
+
}, qS = 16, JS = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1, YS = (e) => {
|
|
18478
18665
|
let t = e.shadowRoot?.querySelector("div");
|
|
18479
|
-
if (!t || typeof t.animate != "function" ||
|
|
18666
|
+
if (!t || typeof t.animate != "function" || JS()) {
|
|
18480
18667
|
e.remove();
|
|
18481
18668
|
return;
|
|
18482
18669
|
}
|
|
18483
|
-
let n = t.style.getPropertyValue("--stop-from") || `-1 * ${
|
|
18670
|
+
let n = t.style.getPropertyValue("--stop-from") || `-1 * ${qS}px`;
|
|
18484
18671
|
t.animate([{
|
|
18485
18672
|
opacity: 1,
|
|
18486
18673
|
translate: "0 0",
|
|
@@ -18495,18 +18682,18 @@ var VS = () => {
|
|
|
18495
18682
|
fill: "forwards"
|
|
18496
18683
|
}).finished.then(() => e.remove(), () => e.remove());
|
|
18497
18684
|
};
|
|
18498
|
-
function
|
|
18685
|
+
function XS(e, t, n) {
|
|
18499
18686
|
let r, i, a = () => {
|
|
18500
|
-
clearInterval(i), i = void 0, r &&
|
|
18687
|
+
clearInterval(i), i = void 0, r && YS(r), r = void 0;
|
|
18501
18688
|
};
|
|
18502
18689
|
I([e, () => X(t)], ([e, t]) => {
|
|
18503
18690
|
if (a(), !e || !t) return;
|
|
18504
18691
|
r = document.createElement(tp);
|
|
18505
|
-
let o = r.attachShadow({ mode: "open" }), s = document.createElement("style"), { ink: c, paper: l } =
|
|
18692
|
+
let o = r.attachShadow({ mode: "open" }), s = document.createElement("style"), { ink: c, paper: l } = US();
|
|
18506
18693
|
s.textContent = `
|
|
18507
18694
|
:host { all: initial; }
|
|
18508
18695
|
div {
|
|
18509
|
-
position: fixed; top: ${
|
|
18696
|
+
position: fixed; top: ${WS}px; left: 50%; transform: translateX(-50%);
|
|
18510
18697
|
z-index: 2147483647; display: flex; align-items: center; gap: 12px;
|
|
18511
18698
|
max-width: min(384px, calc(100vw - 32px)); padding: 8px 8px 8px 16px;
|
|
18512
18699
|
border-radius: 9999px; background: ${c}; color: ${l};
|
|
@@ -18515,7 +18702,7 @@ function JS(e, t, n) {
|
|
|
18515
18702
|
animation: stop-in 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
|
|
18516
18703
|
}
|
|
18517
18704
|
@keyframes stop-in {
|
|
18518
|
-
from { opacity: 0; translate: 0 calc(var(--stop-from, -1 * ${
|
|
18705
|
+
from { opacity: 0; translate: 0 calc(var(--stop-from, -1 * ${qS}px)); scale: 0.96; }
|
|
18519
18706
|
}
|
|
18520
18707
|
@media (prefers-reduced-motion: reduce) {
|
|
18521
18708
|
div { animation: none; }
|
|
@@ -18531,11 +18718,11 @@ function JS(e, t, n) {
|
|
|
18531
18718
|
d.textContent = n.text();
|
|
18532
18719
|
let f = document.createElement("button");
|
|
18533
18720
|
f.type = "button", f.textContent = n.stopLabel(), f.addEventListener("click", () => n.onStop()), u.append(d, f), o.append(s, u), e.append(r);
|
|
18534
|
-
let p = () =>
|
|
18535
|
-
p(), i = setInterval(p,
|
|
18721
|
+
let p = () => KS(u, e);
|
|
18722
|
+
p(), i = setInterval(p, FS);
|
|
18536
18723
|
}, { immediate: !0 }), be(a);
|
|
18537
18724
|
}
|
|
18538
|
-
var
|
|
18725
|
+
var ZS = 1e3, QS = 3, $S = 1e3, eC = "data-agent-studio-placeholder", tC = "a, button, input, label, select, summary, textarea, [contenteditable]", nC = "dialog[open], [popover]:popover-open", rC = [
|
|
18539
18726
|
["position", "fixed"],
|
|
18540
18727
|
["right", "auto"],
|
|
18541
18728
|
["bottom", "auto"],
|
|
@@ -18547,30 +18734,30 @@ var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, b
|
|
|
18547
18734
|
["max-width", "none"],
|
|
18548
18735
|
["max-height", "none"],
|
|
18549
18736
|
["z-index", "2147483646"]
|
|
18550
|
-
],
|
|
18737
|
+
], iC = [
|
|
18551
18738
|
"left",
|
|
18552
18739
|
"top",
|
|
18553
18740
|
"width",
|
|
18554
18741
|
"height"
|
|
18555
|
-
],
|
|
18742
|
+
], aC = () => typeof Element.prototype.moveBefore == "function", oC = (...e) => e.flatMap((e) => e.getAnimations?.() ?? []).filter((e) => e.playState === "running" && Number.isFinite(e.effect?.getComputedTiming().iterations ?? Infinity)), sC = (e) => oC(e).some((e) => {
|
|
18556
18743
|
let t = e.effect;
|
|
18557
18744
|
if (!t?.getKeyframes || e.playbackRate <= 0) return !1;
|
|
18558
18745
|
let { iterations: n, direction: r } = t.getComputedTiming();
|
|
18559
18746
|
if (n !== 1 || r !== "normal" && r !== "reverse") return !1;
|
|
18560
18747
|
let i = t.getKeyframes(), a = r === "reverse" ? i[0] : i[i.length - 1];
|
|
18561
18748
|
return !!a && "opacity" in a && Number(a.opacity) === 0;
|
|
18562
|
-
}),
|
|
18749
|
+
}), cC = (e) => sC(e) || [...e.children].some(sC), lC = (e, t) => e.width >= t.width * .95 && e.height >= t.height * .95, uC = (e) => {
|
|
18563
18750
|
let t = e.getBoundingClientRect();
|
|
18564
|
-
if (!
|
|
18751
|
+
if (!lC(t, {
|
|
18565
18752
|
width: window.innerWidth,
|
|
18566
18753
|
height: window.innerHeight
|
|
18567
18754
|
})) return e;
|
|
18568
18755
|
let n = (e) => {
|
|
18569
18756
|
let n = e.getBoundingClientRect();
|
|
18570
|
-
return
|
|
18757
|
+
return lC(n, t) ? 0 : n.width * n.height;
|
|
18571
18758
|
}, r = [...e.children].filter((e) => n(e) > 0).sort((e, t) => n(t) - n(e))[0];
|
|
18572
|
-
return r && !r.matches(
|
|
18573
|
-
},
|
|
18759
|
+
return r && !r.matches(tC) ? r : e;
|
|
18760
|
+
}, dC = (e) => e.isConnected && !e.closest("[inert]") && e.getBoundingClientRect().width > 0, fC = (e, t, n) => {
|
|
18574
18761
|
let r = t.shadowRoot, i = [...r?.querySelectorAll("*") ?? []].filter((e) => e.scrollTop > 0).map((e) => [e, e.scrollTop]), a = r?.activeElement, o = e;
|
|
18575
18762
|
try {
|
|
18576
18763
|
o.moveBefore(t, n);
|
|
@@ -18580,19 +18767,19 @@ var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, b
|
|
|
18580
18767
|
for (let [e, t] of i) e.scrollTop = t;
|
|
18581
18768
|
return a && r?.activeElement !== a && a.focus({ preventScroll: !0 }), !0;
|
|
18582
18769
|
};
|
|
18583
|
-
function
|
|
18770
|
+
function pC(e, t) {
|
|
18584
18771
|
let n = he(!1);
|
|
18585
|
-
if (!e || !
|
|
18772
|
+
if (!e || !aC()) return n;
|
|
18586
18773
|
let r = !1, i, a, o, s, c, l = {
|
|
18587
18774
|
x: 0,
|
|
18588
18775
|
y: 0
|
|
18589
18776
|
}, u, d = 0, f, p, m, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), _ = () => {
|
|
18590
|
-
let t = [...
|
|
18777
|
+
let t = [...rC.map(([e]) => e), ...iC].map((t) => [
|
|
18591
18778
|
t,
|
|
18592
18779
|
e.style.getPropertyValue(t),
|
|
18593
18780
|
e.style.getPropertyPriority(t)
|
|
18594
18781
|
]);
|
|
18595
|
-
for (let [t, n] of
|
|
18782
|
+
for (let [t, n] of rC) e.style.setProperty(t, n, "important");
|
|
18596
18783
|
return () => {
|
|
18597
18784
|
for (let [n, r, i] of t) r ? e.style.setProperty(n, r, i) : e.style.removeProperty(n);
|
|
18598
18785
|
};
|
|
@@ -18622,12 +18809,12 @@ function dC(e, t) {
|
|
|
18622
18809
|
opacityProperty: !0,
|
|
18623
18810
|
visibilityProperty: !0
|
|
18624
18811
|
}) === !1) return !1;
|
|
18625
|
-
let r = e.shadowRoot, i = (e) => !!r?.contains(e), a = (r ?? document).elementsFromPoint(n.left + n.width / 2, n.top + n.height / 2).find((e) => !(i(e) && e.closest(
|
|
18812
|
+
let r = e.shadowRoot, i = (e) => !!r?.contains(e), a = (r ?? document).elementsFromPoint(n.left + n.width / 2, n.top + n.height / 2).find((e) => !(i(e) && e.closest(nC)));
|
|
18626
18813
|
return !!a && (e.contains(a) || i(a));
|
|
18627
18814
|
}, x = (t) => {
|
|
18628
18815
|
if (t.key !== "Escape") return;
|
|
18629
18816
|
let n = t.composedPath();
|
|
18630
|
-
n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(
|
|
18817
|
+
n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(nC)) || t.preventDefault();
|
|
18631
18818
|
}, S = () => {
|
|
18632
18819
|
u?.disconnect(), u = void 0, cancelAnimationFrame(d), e.removeEventListener("keydown", x);
|
|
18633
18820
|
let t = !!a?.contains(e) || !!i?.contains(e);
|
|
@@ -18638,16 +18825,16 @@ function dC(e, t) {
|
|
|
18638
18825
|
} : s;
|
|
18639
18826
|
if (t) {
|
|
18640
18827
|
let n = t.next?.parentNode === t.parent ? t.next : null;
|
|
18641
|
-
t.parent.isConnected && e.isConnected &&
|
|
18828
|
+
t.parent.isConnected && e.isConnected && fC(t.parent, e, n) || t.parent.insertBefore(e, n);
|
|
18642
18829
|
}
|
|
18643
18830
|
}
|
|
18644
18831
|
o?.remove(), c?.(), i = void 0, a = void 0, o = void 0, s = void 0, c = void 0, n.value = !1;
|
|
18645
18832
|
}, C = () => {
|
|
18646
|
-
let e = i, t =
|
|
18833
|
+
let e = i, t = oC(e, ...e.children).length > 0;
|
|
18647
18834
|
t ? h.delete(e) : g.add(e), S(), t && T();
|
|
18648
18835
|
}, ee = () => {
|
|
18649
18836
|
if (i && o) {
|
|
18650
|
-
if (
|
|
18837
|
+
if (dC(o)) {
|
|
18651
18838
|
if (y(), !n.value) {
|
|
18652
18839
|
if (!b()) {
|
|
18653
18840
|
C();
|
|
@@ -18658,15 +18845,15 @@ function dC(e, t) {
|
|
|
18658
18845
|
d = requestAnimationFrame(ee);
|
|
18659
18846
|
} else {
|
|
18660
18847
|
let t = i;
|
|
18661
|
-
S(),
|
|
18848
|
+
S(), dC(e) && g.add(t), T();
|
|
18662
18849
|
}
|
|
18663
18850
|
}
|
|
18664
18851
|
}, w = (t) => {
|
|
18665
|
-
let n =
|
|
18666
|
-
f.className = e.className, f.style.cssText = e.style.cssText, f.style.height || (f.style.minHeight = `${r}px`), f.setAttribute("aria-hidden", "true"), f.setAttribute(
|
|
18852
|
+
let n = uC(t), { height: r } = e.getBoundingClientRect(), f = document.createElement("div");
|
|
18853
|
+
f.className = e.className, f.style.cssText = e.style.cssText, f.style.height || (f.style.minHeight = `${r}px`), f.setAttribute("aria-hidden", "true"), f.setAttribute(eC, ""), s = {
|
|
18667
18854
|
parent: e.parentNode,
|
|
18668
18855
|
next: e.nextSibling
|
|
18669
|
-
}, s.parent.insertBefore(f, e), o = f, c = _(),
|
|
18856
|
+
}, s.parent.insertBefore(f, e), o = f, c = _(), fC(n, e, null) ? (i = t, a = n, l = {
|
|
18670
18857
|
x: 0,
|
|
18671
18858
|
y: 0
|
|
18672
18859
|
}, y(), e.addEventListener("keydown", x), u = new MutationObserver(T), u.observe(t, {
|
|
@@ -18692,27 +18879,27 @@ function dC(e, t) {
|
|
|
18692
18879
|
let t = (e) => !e.open || !e.isConnected;
|
|
18693
18880
|
for (let e of [g, h]) for (let n of e) t(n) && e.delete(n);
|
|
18694
18881
|
m && t(m.dialog) && (m = void 0);
|
|
18695
|
-
let s =
|
|
18882
|
+
let s = VS((e) => e === p), c = s && !g.has(s) && s.getBoundingClientRect().width > 0 && !cC(s) ? s : null;
|
|
18696
18883
|
if (i) {
|
|
18697
|
-
if (i === c && a?.contains(e) && i.contains(a) && o &&
|
|
18884
|
+
if (i === c && a?.contains(e) && i.contains(a) && o && dC(o)) {
|
|
18698
18885
|
n.value && !b() && C();
|
|
18699
18886
|
return;
|
|
18700
18887
|
}
|
|
18701
18888
|
S();
|
|
18702
18889
|
}
|
|
18703
|
-
c && !g.has(c) &&
|
|
18890
|
+
c && !g.has(c) && dC(e) && (h.has(c) ? w(c) : E(c));
|
|
18704
18891
|
}, E = (e) => {
|
|
18705
18892
|
if (m?.dialog === e) return;
|
|
18706
18893
|
let t = { dialog: e };
|
|
18707
18894
|
m = t;
|
|
18708
|
-
let n =
|
|
18895
|
+
let n = QS, r = () => {
|
|
18709
18896
|
if (m !== t) return;
|
|
18710
18897
|
if (--n > 0) {
|
|
18711
18898
|
requestAnimationFrame(r);
|
|
18712
18899
|
return;
|
|
18713
18900
|
}
|
|
18714
|
-
let i =
|
|
18715
|
-
Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e,
|
|
18901
|
+
let i = oC(e, ...e.children);
|
|
18902
|
+
Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e, $S))]).then(() => {
|
|
18716
18903
|
m === t && (m = void 0, h.add(e), T());
|
|
18717
18904
|
});
|
|
18718
18905
|
};
|
|
@@ -18722,7 +18909,7 @@ function dC(e, t) {
|
|
|
18722
18909
|
}, O = (e) => {
|
|
18723
18910
|
e.target instanceof HTMLDialogElement && T();
|
|
18724
18911
|
}, k = () => {
|
|
18725
|
-
r = !0, document.addEventListener("beforetoggle", D, !0), document.addEventListener("toggle", O, !0), f = setInterval(T,
|
|
18912
|
+
r = !0, document.addEventListener("beforetoggle", D, !0), document.addEventListener("toggle", O, !0), f = setInterval(T, ZS), T();
|
|
18726
18913
|
}, te = () => {
|
|
18727
18914
|
r = !1, document.removeEventListener("beforetoggle", D, !0), document.removeEventListener("toggle", O, !0), clearInterval(f), f = void 0, m = void 0, i && S(), g.clear(), h.clear();
|
|
18728
18915
|
};
|
|
@@ -18732,16 +18919,16 @@ function dC(e, t) {
|
|
|
18732
18919
|
}
|
|
18733
18920
|
// ../../packages/components/src/chat/PkChatbotAuth.vue?vue&type=script&setup=true&lang.ts
|
|
18734
18921
|
G(), Y(), R(), De();
|
|
18735
|
-
var
|
|
18922
|
+
var mC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, hC = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, gC = { 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" }, _C = { class: "font-bold text-18 mb-xs" }, vC = { class: "mb-lg text-16 text-word-3" }, yC = {
|
|
18736
18923
|
key: "form",
|
|
18737
18924
|
class: "pk-chatbot-auth__flip-card flex flex-col"
|
|
18738
|
-
},
|
|
18925
|
+
}, bC = { class: "flex flex-col" }, xC = {
|
|
18739
18926
|
key: 0,
|
|
18740
18927
|
class: "flex justify-center mb-md"
|
|
18741
|
-
},
|
|
18928
|
+
}, SC = ["src", "alt"], CC = { class: "text-center leading-normal mb-lg" }, wC = {
|
|
18742
18929
|
key: 0,
|
|
18743
18930
|
class: "font-bold text-20 m-0"
|
|
18744
|
-
},
|
|
18931
|
+
}, TC = { class: "text-14 text-word-3 text-center leading-normal mb-md" }, EC = { class: "flex justify-center mt-md" }, DC = { class: "mb-md" }, OC = { class: "mb-md" }, kC = { class: "mb-md" }, AC = { class: "vv-separator mt-xs py-xs" }, jC = { class: "pt-lg text-center text-word-3" }, MC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
18745
18932
|
__name: "PkChatbotAuth",
|
|
18746
18933
|
props: /*@__PURE__*/ ae({
|
|
18747
18934
|
branding: {
|
|
@@ -18833,7 +19020,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18833
19020
|
}
|
|
18834
19021
|
return (t, r) => {
|
|
18835
19022
|
let i = wn, o = En, s = Cn, h = _n;
|
|
18836
|
-
return P(), Z("div",
|
|
19023
|
+
return P(), Z("div", mC, [H("div", hC, [F(K, {
|
|
18837
19024
|
name: "pk-flip",
|
|
18838
19025
|
mode: "out-in",
|
|
18839
19026
|
onAfterEnter: D
|
|
@@ -18845,13 +19032,13 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18845
19032
|
tabindex: "-1",
|
|
18846
19033
|
class: "pk-chatbot-auth__flip-card outline-none flex flex-col text-center leading-normal"
|
|
18847
19034
|
}, [
|
|
18848
|
-
H("div",
|
|
19035
|
+
H("div", gC, [F(i, {
|
|
18849
19036
|
name: "ri:mail-check-line",
|
|
18850
19037
|
"aria-hidden": "true",
|
|
18851
19038
|
class: "text-success w-32 h-32"
|
|
18852
19039
|
})]),
|
|
18853
|
-
H("h1",
|
|
18854
|
-
H("p",
|
|
19040
|
+
H("h1", _C, N(u.value.title), 1),
|
|
19041
|
+
H("p", vC, N(u.value.message), 1),
|
|
18855
19042
|
F(o, {
|
|
18856
19043
|
type: "button",
|
|
18857
19044
|
modifiers: "link",
|
|
@@ -18859,14 +19046,14 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18859
19046
|
label: E(n)("action.backToSignIn"),
|
|
18860
19047
|
onClick: p
|
|
18861
19048
|
}, null, 8, ["label"])
|
|
18862
|
-
], 512)) : (P(), Z("div",
|
|
18863
|
-
E(a)(e.branding?.interface.logo) ? (P(), Z("div",
|
|
19049
|
+
], 512)) : (P(), Z("div", yC, [H("div", bC, [
|
|
19050
|
+
E(a)(e.branding?.interface.logo) ? (P(), Z("div", xC, [H("img", {
|
|
18864
19051
|
src: e.branding?.interface.logo,
|
|
18865
19052
|
alt: e.branding?.name,
|
|
18866
19053
|
class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
|
|
18867
19054
|
onError: r[0] ||= (t) => E(c)(e.branding?.interface.logo)
|
|
18868
|
-
}, null, 40,
|
|
18869
|
-
H("div",
|
|
19055
|
+
}, null, 40, SC)])) : q("", !0),
|
|
19056
|
+
H("div", CC, [e.branding?.name ? (P(), Z("h1", wC, N(e.branding.name), 1)) : q("", !0), (P(), L(fe(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
|
|
18870
19057
|
default: B(() => [re.value ? (P(), Z(V, { key: 0 }, [Ne(N(E(n)("twoFactor.challengeTitle")), 1)], 64)) : f.value === "sign-in" ? (P(), Z(V, { key: 1 }, [Ne(N(E(n)("auth.signInTitle")), 1)], 64)) : f.value === "sign-up" ? (P(), Z(V, { key: 2 }, [Ne(N(E(n)("auth.signUpTitle")), 1)], 64)) : f.value === "reset" ? (P(), Z(V, { key: 3 }, [Ne(N(E(n)("auth.resetTitle")), 1)], 64)) : q("", !0)]),
|
|
18871
19058
|
_: 1
|
|
18872
19059
|
}))]),
|
|
@@ -18877,7 +19064,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18877
19064
|
content: l.value
|
|
18878
19065
|
}, null, 8, ["content"])) : q("", !0),
|
|
18879
19066
|
re.value ? (P(), Z(V, { key: 2 }, [
|
|
18880
|
-
H("p",
|
|
19067
|
+
H("p", TC, N(M.value), 1),
|
|
18881
19068
|
F(E(ie), {
|
|
18882
19069
|
class: "flex flex-col",
|
|
18883
19070
|
readonly: e.loading,
|
|
@@ -18902,7 +19089,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18902
19089
|
])]),
|
|
18903
19090
|
_: 1
|
|
18904
19091
|
}, 8, ["readonly"]),
|
|
18905
|
-
H("div",
|
|
19092
|
+
H("div", EC, [A.value === "totp" ? (P(), L(o, {
|
|
18906
19093
|
key: 0,
|
|
18907
19094
|
type: "button",
|
|
18908
19095
|
modifiers: "link",
|
|
@@ -18928,7 +19115,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18928
19115
|
readonly: e.loading,
|
|
18929
19116
|
onSubmit: O
|
|
18930
19117
|
}, {
|
|
18931
|
-
default: B(() => [H("div",
|
|
19118
|
+
default: B(() => [H("div", DC, [
|
|
18932
19119
|
F(E(y), {
|
|
18933
19120
|
name: "email",
|
|
18934
19121
|
type: "email",
|
|
@@ -18943,7 +19130,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18943
19130
|
label: E(n)("label.password"),
|
|
18944
19131
|
floating: ""
|
|
18945
19132
|
}, null, 8, ["label"]),
|
|
18946
|
-
H("div",
|
|
19133
|
+
H("div", OC, [F(o, {
|
|
18947
19134
|
type: "button",
|
|
18948
19135
|
modifiers: "link",
|
|
18949
19136
|
label: E(n)("action.forgetPassword"),
|
|
@@ -18973,7 +19160,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18973
19160
|
readonly: e.loading,
|
|
18974
19161
|
onSubmit: k
|
|
18975
19162
|
}, {
|
|
18976
|
-
default: B(() => [H("div",
|
|
19163
|
+
default: B(() => [H("div", kC, [
|
|
18977
19164
|
F(E(x), {
|
|
18978
19165
|
name: "name",
|
|
18979
19166
|
type: "text",
|
|
@@ -19042,7 +19229,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
19042
19229
|
})]),
|
|
19043
19230
|
_: 1
|
|
19044
19231
|
}, 8, ["readonly"])) : q("", !0),
|
|
19045
|
-
!re.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (P(), Z(V, { key: 6 }, [H("div",
|
|
19232
|
+
!re.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (P(), Z(V, { key: 6 }, [H("div", AC, [H("span", null, N(E(n)("label.or")), 1)]), F(h, {
|
|
19046
19233
|
modifiers: "vertical",
|
|
19047
19234
|
class: "gap-xs mt-xs"
|
|
19048
19235
|
}, {
|
|
@@ -19065,7 +19252,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
19065
19252
|
}, null, 8, ["disabled", "label"])) : q("", !0)]),
|
|
19066
19253
|
_: 1
|
|
19067
19254
|
})], 64)) : q("", !0)
|
|
19068
|
-
]), H("div",
|
|
19255
|
+
]), H("div", jC, [re.value ? (P(), L(o, {
|
|
19069
19256
|
key: 0,
|
|
19070
19257
|
type: "button",
|
|
19071
19258
|
modifiers: "link",
|
|
@@ -19096,20 +19283,20 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
19096
19283
|
})])]);
|
|
19097
19284
|
};
|
|
19098
19285
|
}
|
|
19099
|
-
}), [["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)}}"]]]),
|
|
19286
|
+
}), [["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)}}"]]]), NC = "@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;";
|
|
19100
19287
|
// ../../packages/components/src/PkLoader.vue
|
|
19101
19288
|
G();
|
|
19102
|
-
var
|
|
19103
|
-
function
|
|
19289
|
+
var PC = {};
|
|
19290
|
+
function FC(e, t) {
|
|
19104
19291
|
return P(), Z("div", null, [...t[0] ||= [H("div", {
|
|
19105
19292
|
"aria-hidden": "true",
|
|
19106
19293
|
class: "pk-loader"
|
|
19107
19294
|
}, null, -1)]]);
|
|
19108
19295
|
}
|
|
19109
|
-
var
|
|
19296
|
+
var IC = /*#__PURE__*/ Nn(PC, [["render", FC], ["styles", [NC]]]);
|
|
19110
19297
|
// ../../packages/components/src/chat/PkWelcomePopup.vue?vue&type=script&setup=true&lang.ts
|
|
19111
19298
|
G(), Y(), De(), R();
|
|
19112
|
-
var
|
|
19299
|
+
var LC = { class: "welcome-popup__text" }, RC = ["aria-label"], zC = 100, BC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19113
19300
|
__name: "PkWelcomePopup",
|
|
19114
19301
|
props: {
|
|
19115
19302
|
agentId: { type: String },
|
|
@@ -19130,7 +19317,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
|
|
|
19130
19317
|
c.value = [], s.value = !1;
|
|
19131
19318
|
let t = e.split(/(\s+)/), n = 0;
|
|
19132
19319
|
function r() {
|
|
19133
|
-
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r,
|
|
19320
|
+
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, zC)) : s.value = !0;
|
|
19134
19321
|
}
|
|
19135
19322
|
r();
|
|
19136
19323
|
}
|
|
@@ -19154,7 +19341,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
|
|
|
19154
19341
|
key: 0,
|
|
19155
19342
|
class: "welcome-popup",
|
|
19156
19343
|
onClick: ve(m, ["stop"])
|
|
19157
|
-
}, [H("p",
|
|
19344
|
+
}, [H("p", LC, [(P(!0), Z(V, null, w(c.value, (e, t) => (P(), Z("span", {
|
|
19158
19345
|
key: t,
|
|
19159
19346
|
class: "welcome-popup__word"
|
|
19160
19347
|
}, N(e), 1))), 128))]), F(K, null, {
|
|
@@ -19170,7 +19357,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
|
|
|
19170
19357
|
width: "14",
|
|
19171
19358
|
height: "14",
|
|
19172
19359
|
fill: "currentColor"
|
|
19173
|
-
}, [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,
|
|
19360
|
+
}, [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, RC)) : q("", !0)]),
|
|
19174
19361
|
_: 1
|
|
19175
19362
|
})])) : q("", !0)]),
|
|
19176
19363
|
_: 1
|
|
@@ -19179,16 +19366,16 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
|
|
|
19179
19366
|
}), [["styles", [".welcome-popup{background:var(--color-surface);pointer-events:auto;max-width:300px;color:var(--color-word-2);line-height:var(--leading-normal);border-width:var(--spacing-px);border-color:var(--color-surface-3);padding:var(--spacing-sm);border-radius:var(--rounded-xl);font-size:var(--text-14);cursor:pointer;box-shadow:0 4px 16px #00000014,0 1px 4px #0000000f}.welcome-popup__word{animation:.3s ease-out both welcome-popup-word-in;display:inline}.welcome-popup__close{background-color:var(--color-surface);border:1px solid var(--color-surface-3);width:var(--spacing-20);height:var(--spacing-20);top:calc(-1 * var(--spacing-8));right:calc(-1 * var(--spacing-8));padding:var(--spacing-2);cursor:pointer;color:var(--color-word-4);border-radius:var(--rounded-full);transition:var(--transition-colors);box-shadow:var(--shadow-md);justify-content:center;align-items:center;line-height:1;display:flex;position:absolute}.welcome-popup__close:hover{color:var(--color-word)}.welcome-popup-enter-active,.welcome-popup-leave-active{transition:transform var(--duration-300) var(--ease-out), opacity var(--duration-300) var(--ease-out)}.welcome-popup-enter-from{opacity:0;transform:translateY(var(--spacing-32))}.welcome-popup-leave-to{opacity:0}@keyframes welcome-popup-word-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}"]]]);
|
|
19180
19367
|
// ../../packages/components/src/chat/PkWorkingBeam.vue?vue&type=script&setup=true&lang.ts
|
|
19181
19368
|
G(), De();
|
|
19182
|
-
var
|
|
19369
|
+
var VC = {
|
|
19183
19370
|
key: 0,
|
|
19184
19371
|
class: "pk-working-beam",
|
|
19185
19372
|
"aria-hidden": "true"
|
|
19186
|
-
},
|
|
19373
|
+
}, HC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19187
19374
|
__name: "PkWorkingBeam",
|
|
19188
19375
|
props: { active: { type: Boolean } },
|
|
19189
19376
|
setup(e) {
|
|
19190
19377
|
return (t, n) => (P(), L(K, { name: "pk-working-beam" }, {
|
|
19191
|
-
default: B(() => [e.active ? (P(), Z("span",
|
|
19378
|
+
default: B(() => [e.active ? (P(), Z("span", VC, [...n[0] ||= [H("span", { class: "pk-working-beam__halo" }, null, -1), H("span", { class: "pk-working-beam__ring" }, [H("span", { class: "pk-working-beam__light" })], -1)]])) : q("", !0)]),
|
|
19192
19379
|
_: 1
|
|
19193
19380
|
}));
|
|
19194
19381
|
}
|
|
@@ -19196,7 +19383,7 @@ var zC = {
|
|
|
19196
19383
|
// ../../packages/components/src/chat/PkWorkingAurora.vue?vue&type=script&setup=true&lang.ts
|
|
19197
19384
|
G(), Y(), De();
|
|
19198
19385
|
// ../../packages/components/src/chat/PkWorkingAurora.vue
|
|
19199
|
-
var
|
|
19386
|
+
var UC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19200
19387
|
__name: "PkWorkingAurora",
|
|
19201
19388
|
props: {
|
|
19202
19389
|
active: { type: Boolean },
|
|
@@ -19233,7 +19420,7 @@ var VC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19233
19420
|
}), [["styles", [".pk-working-aurora{--pk-working-aurora-source:var(--pk-working-aurora-color,var(--chatbot-main-color,var(--color-brand)));--pk-working-aurora-main:var(--pk-working-aurora-source);--pk-working-aurora-tone-before:var(--pk-working-aurora-main);--pk-working-aurora-tone-after:var(--pk-working-aurora-main);--pk-working-aurora-x:100%;--pk-working-aurora-flip:1;pointer-events:none;transform-origin:var(--pk-working-aurora-x) 100%;position:absolute;inset:0}@supports (color:oklch(from red l c h)){.pk-working-aurora{--pk-working-aurora-main:oklch(from var(--pk-working-aurora-source) clamp(.55, l, .75) c h);--pk-working-aurora-tone-before:oklch(from var(--pk-working-aurora-main) l c calc(h - 50));--pk-working-aurora-tone-after:oklch(from var(--pk-working-aurora-main) l c calc(h + 50))}}.pk-working-aurora--left{--pk-working-aurora-x:0%;--pk-working-aurora-flip:-1}.pk-working-aurora__lights{opacity:.32;-webkit-mask:radial-gradient(ellipse 75% 90% at var(--pk-working-aurora-x) 100%, #000 25%, transparent 75%);mask:radial-gradient(ellipse 75% 90% at var(--pk-working-aurora-x) 100%, #000 25%, transparent 75%);position:absolute;inset:0;overflow:hidden}.pk-working-aurora__lights:before{content:\"\";background:radial-gradient(ellipse 60% 70% at var(--pk-working-aurora-x) 100%, color-mix(in srgb, var(--pk-working-aurora-main) 35%, transparent), transparent);position:absolute;inset:0}.pk-working-aurora__sway{transform-origin:var(--pk-working-aurora-x) 100%;animation:11s ease-in-out infinite alternate pk-working-aurora-sway;position:absolute;inset:0}.pk-working-aurora__light{right:var(--pk-working-aurora-offset);aspect-ratio:1;background:radial-gradient(closest-side, var(--pk-working-aurora-light), transparent);border-radius:50%;width:80vmax;animation:none;position:absolute}.pk-working-aurora__light:first-child{--pk-working-aurora-light:var(--pk-working-aurora-main);--pk-working-aurora-offset:-30vmax;animation-name:pk-working-aurora-drift-1;bottom:-32vmax}.pk-working-aurora__light:nth-child(2){--pk-working-aurora-light:var(--pk-working-aurora-tone-after);--pk-working-aurora-offset:15vw;animation-name:pk-working-aurora-drift-2;animation-duration:9s;bottom:-48vmax}.pk-working-aurora__light:nth-child(3){--pk-working-aurora-light:var(--pk-working-aurora-tone-before);--pk-working-aurora-offset:-48vmax;animation-name:pk-working-aurora-drift-3;animation-duration:8s;bottom:10vh}.pk-working-aurora--left .pk-working-aurora__light{right:auto;left:var(--pk-working-aurora-offset)}.pk-working-aurora__core{opacity:.08;background:radial-gradient(circle 75vmin at var(--pk-working-aurora-x) 100%, color-mix(in srgb, #fff 45%, var(--pk-working-aurora-main)), color-mix(in srgb, var(--pk-working-aurora-main) 70%, transparent) 30%, color-mix(in srgb, var(--pk-working-aurora-tone-after) 30%, transparent) 62%, transparent);animation:2.6s ease-in-out infinite alternate pk-working-aurora-breathe;position:absolute;inset:0}.pk-working-aurora__glint{opacity:0;animation:.9s ease-out pk-working-aurora-glint}@media (prefers-reduced-motion:reduce){.pk-working-aurora__sway,.pk-working-aurora__light,.pk-working-aurora__core{animation:none}.pk-working-aurora__glint{display:none}}.pk-working-aurora-enter-active{animation:1.8s cubic-bezier(.23,1,.32,1) pk-working-aurora-in}.pk-working-aurora-enter-active .pk-working-aurora__core{animation:1.8s ease-out pk-working-aurora-flare}.pk-working-aurora-leave-active{animation:1.4s cubic-bezier(.77,0,.175,1) forwards pk-working-aurora-out}.pk-working-aurora-leave-active .pk-working-aurora__core{animation:1.4s ease-in forwards pk-working-aurora-flare-out}@media (prefers-reduced-motion:reduce){.pk-working-aurora-enter-active,.pk-working-aurora-leave-active{transition:opacity var(--duration-300) ease-out;animation:none}.pk-working-aurora-enter-active .pk-working-aurora__core,.pk-working-aurora-leave-active .pk-working-aurora__core{animation:none}.pk-working-aurora-enter-from,.pk-working-aurora-leave-to{opacity:0}}@keyframes pk-working-aurora-in{0%{opacity:0;scale:.08}20%{opacity:1}}@keyframes pk-working-aurora-out{70%{opacity:1}to{opacity:0;scale:.08}}@keyframes pk-working-aurora-flare{0%{opacity:0}25%{opacity:.6}}@keyframes pk-working-aurora-flare-out{40%{opacity:0}80%{opacity:.4}to{opacity:0}}@keyframes pk-working-aurora-breathe{to{opacity:.24}}@keyframes pk-working-aurora-glint{30%{opacity:.35}}@keyframes pk-working-aurora-sway{0%{rotate:-7deg}to{rotate:7deg}}@keyframes pk-working-aurora-drift-1{to{scale:1.2}}@keyframes pk-working-aurora-drift-2{to{translate:calc(var(--pk-working-aurora-flip) * 18vw) 0;scale:1 1.3}}@keyframes pk-working-aurora-drift-3{to{translate:0 18vh;scale:1.3 1}}"]]]);
|
|
19234
19421
|
// ../../packages/components/src/chat/PkAgentPresence.vue?vue&type=script&setup=true&lang.ts
|
|
19235
19422
|
G(), Y(), R();
|
|
19236
|
-
var
|
|
19423
|
+
var WC = 13, GC = 8, KC = 3, qC = 150, JC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19237
19424
|
__name: "PkAgentPresence",
|
|
19238
19425
|
props: {
|
|
19239
19426
|
active: { type: Boolean },
|
|
@@ -19302,10 +19489,10 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19302
19489
|
};
|
|
19303
19490
|
}, v = (e) => {
|
|
19304
19491
|
let t = _(e), r = t.x + t.width * (t.width > 80 ? .72 : .5), i = t.y + t.height * (t.height > 24 ? .62 : .5), a = g(n.home?.()), o = s.value?.offsetWidth ?? 0;
|
|
19305
|
-
return a && r < a.x && i < a.y + a.height && i + 48 > a.y && (r = Math.max(t.x + Math.min(
|
|
19492
|
+
return a && r < a.x && i < a.y + a.height && i + 48 > a.y && (r = Math.max(t.x + Math.min(GC, t.width / 2), Math.min(r, a.x - WC - o - GC))), [r, i];
|
|
19306
19493
|
}, y = (e) => [
|
|
19307
|
-
e.x -
|
|
19308
|
-
e.y -
|
|
19494
|
+
e.x - KC,
|
|
19495
|
+
e.y - KC,
|
|
19309
19496
|
e.width + 6,
|
|
19310
19497
|
e.height + 6
|
|
19311
19498
|
], b = () => {
|
|
@@ -19339,7 +19526,7 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19339
19526
|
}
|
|
19340
19527
|
E = e;
|
|
19341
19528
|
let n = parseFloat(getComputedStyle(e).borderTopLeftRadius);
|
|
19342
|
-
o.value?.style.setProperty("--pk-agent-presence-radius", `${(Number.isFinite(n) ? n : 0) +
|
|
19529
|
+
o.value?.style.setProperty("--pk-agent-presence-radius", `${(Number.isFinite(n) ? n : 0) + KC}px`), h(y(t)), l.value = !0, d.value++;
|
|
19343
19530
|
}, O = 0, k = async (e) => {
|
|
19344
19531
|
let t = ++O, i = (t) => e.heading || r("arrived", t), a = g(e.element);
|
|
19345
19532
|
if (!n.active || !a) {
|
|
@@ -19381,7 +19568,7 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19381
19568
|
});
|
|
19382
19569
|
}, j;
|
|
19383
19570
|
return I(c, (e) => {
|
|
19384
|
-
clearInterval(j), j = e ? setInterval(ie,
|
|
19571
|
+
clearInterval(j), j = e ? setInterval(ie, qC) : void 0;
|
|
19385
19572
|
}), re(() => {
|
|
19386
19573
|
window.addEventListener("scroll", ie, {
|
|
19387
19574
|
capture: !0,
|
|
@@ -19424,14 +19611,14 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19424
19611
|
}), [["styles", [".pk-agent-presence{--pk-agent-presence-color:var(--chatbot-main-color,var(--color-brand));--pk-agent-presence-ink:var(--chatbot-contrast-color,#fff);--pk-agent-presence-tone-before:var(--pk-agent-presence-color);--pk-agent-presence-tone-after:var(--pk-agent-presence-color);z-index:2147483646;width:auto;height:auto;color:inherit;pointer-events:none;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:0;overflow:visible}@supports (color:oklch(from red l c h)){.pk-agent-presence{--pk-agent-presence-tone-before:oklch(from var(--pk-agent-presence-color) l c calc(h - 50));--pk-agent-presence-tone-after:oklch(from var(--pk-agent-presence-color) l c calc(h + 50))}}.pk-agent-presence__ring,.pk-agent-presence__cursor{opacity:0;transition:opacity var(--duration-300) ease-out;position:absolute;top:0;left:0}.pk-agent-presence__ring--shown,.pk-agent-presence__cursor--shown{opacity:1}.pk-agent-presence__ring{container-type:size}.pk-agent-presence__ring-box{border-radius:var(--pk-agent-presence-radius,0);animation:.36s cubic-bezier(.23,1,.32,1) pk-agent-presence-settle;position:absolute;inset:0}.pk-agent-presence__halo{border-radius:inherit;box-shadow:0 0 0 4px color-mix(in srgb, var(--pk-agent-presence-color) 16%, transparent), 0 0 20px color-mix(in srgb, var(--pk-agent-presence-color) 22%, transparent);position:absolute;inset:0}.pk-agent-presence__edge{border-radius:inherit;-webkit-mask-composite:xor;padding:2px;position:absolute;inset:0;overflow:hidden;-webkit-mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.pk-agent-presence__edge:before{content:\"\";aspect-ratio:1;background:conic-gradient(var(--pk-agent-presence-color), var(--pk-agent-presence-tone-after), var(--pk-agent-presence-color), var(--pk-agent-presence-tone-before), var(--pk-agent-presence-color));width:calc(100cqw + 100cqh);animation:6s linear infinite pk-agent-presence-turn;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pk-agent-presence__cursor{will-change:translate;margin:-1px 0 0 -2px}.pk-agent-presence__arrow{transform-origin:2px 1px;filter:drop-shadow(0 1px 2px #00000047);display:block}.pk-agent-presence__arrow path{fill:var(--pk-agent-presence-color);stroke:#fff;stroke-width:1.5px;stroke-linejoin:round}.pk-agent-presence__arrow--click{animation:.24s cubic-bezier(.23,1,.32,1) pk-agent-presence-click}.pk-agent-presence__label{align-items:baseline;gap:var(--spacing-6);max-width:280px;padding:var(--spacing-3) var(--spacing-8);background:var(--pk-agent-presence-color);color:var(--pk-agent-presence-ink);letter-spacing:.01em;white-space:nowrap;border-radius:3px 9px 9px;font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;display:inline-flex;position:absolute;top:19px;left:13px;box-shadow:0 2px 8px #00000029}.pk-agent-presence__action{text-overflow:ellipsis;opacity:.85;font-weight:400;animation:.26s cubic-bezier(.23,1,.32,1) pk-agent-presence-swap;overflow:hidden}@media (prefers-reduced-motion:reduce){.pk-agent-presence__ring-box,.pk-agent-presence__arrow--click,.pk-agent-presence__action,.pk-agent-presence__edge:before{animation:none}}@keyframes pk-agent-presence-settle{0%{opacity:0;scale:1.06}}@keyframes pk-agent-presence-click{40%{scale:.86}}@keyframes pk-agent-presence-swap{0%{opacity:0;filter:blur(3px)}}@keyframes pk-agent-presence-turn{to{transform:translate(-50%,-50%)rotate(1turn)}}"]]]);
|
|
19425
19612
|
// src/components/FloatingChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
|
|
19426
19613
|
G(), R(), Y(), De();
|
|
19427
|
-
var
|
|
19614
|
+
var YC = {
|
|
19428
19615
|
key: 0,
|
|
19429
19616
|
class: "floating-chat-widget__frame",
|
|
19430
19617
|
"aria-hidden": "true"
|
|
19431
|
-
},
|
|
19618
|
+
}, XC = {
|
|
19432
19619
|
key: 0,
|
|
19433
19620
|
class: "floating-chat-widget__launcher"
|
|
19434
|
-
},
|
|
19621
|
+
}, ZC = ["aria-label", "aria-expanded"], QC = {
|
|
19435
19622
|
key: 0,
|
|
19436
19623
|
class: "w-full h-full",
|
|
19437
19624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -19439,7 +19626,7 @@ var qC = {
|
|
|
19439
19626
|
width: "24",
|
|
19440
19627
|
height: "24",
|
|
19441
19628
|
fill: "currentColor"
|
|
19442
|
-
},
|
|
19629
|
+
}, $C = {
|
|
19443
19630
|
key: 1,
|
|
19444
19631
|
class: "w-full h-full",
|
|
19445
19632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -19447,13 +19634,13 @@ var qC = {
|
|
|
19447
19634
|
width: "24",
|
|
19448
19635
|
height: "24",
|
|
19449
19636
|
fill: "currentColor"
|
|
19450
|
-
},
|
|
19637
|
+
}, ew = {
|
|
19451
19638
|
key: 0,
|
|
19452
19639
|
class: "floating-chat-widget__chat floating-chat-widget__auth"
|
|
19453
|
-
},
|
|
19640
|
+
}, tw = { class: "floating-chat-widget__close" }, nw = {
|
|
19454
19641
|
key: 0,
|
|
19455
19642
|
class: "floating-chat-widget__chat floating-chat-widget__loading"
|
|
19456
|
-
},
|
|
19643
|
+
}, rw = { class: "floating-chat-widget__close" }, iw = 450, aw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19457
19644
|
inheritAttrs: !1,
|
|
19458
19645
|
__name: "FloatingChatWidget.ce",
|
|
19459
19646
|
props: {
|
|
@@ -19531,8 +19718,8 @@ var qC = {
|
|
|
19531
19718
|
userId: h
|
|
19532
19719
|
});
|
|
19533
19720
|
Zh(() => k.isWorking), Qh(() => k.pageControlActive);
|
|
19534
|
-
let te =
|
|
19535
|
-
|
|
19721
|
+
let te = HS(() => !!k.hostConfirmation || k.pageControlActive);
|
|
19722
|
+
XS(te, () => k.pageControlActive, {
|
|
19536
19723
|
text: () => D("messagePart.pageControlActive"),
|
|
19537
19724
|
stopLabel: () => D("action.stop"),
|
|
19538
19725
|
onStop: () => void k.stopHostActions()
|
|
@@ -19588,7 +19775,7 @@ var qC = {
|
|
|
19588
19775
|
I(l, () => {
|
|
19589
19776
|
ke.value = !0, clearTimeout(Ae), Ae = setTimeout(() => {
|
|
19590
19777
|
ke.value = !1;
|
|
19591
|
-
},
|
|
19778
|
+
}, iw);
|
|
19592
19779
|
});
|
|
19593
19780
|
let je = U(() => G.value && ke.value ? "floating-chat-widget-copilot" : void 0), Me = U(() => {
|
|
19594
19781
|
let e = [
|
|
@@ -19668,10 +19855,10 @@ var qC = {
|
|
|
19668
19855
|
_: 1
|
|
19669
19856
|
})) : q("", !0),
|
|
19670
19857
|
F(K, { name: "floating-chat-widget-frame" }, {
|
|
19671
|
-
default: B(() => [G.value && E(l) ? (P(), Z("div",
|
|
19858
|
+
default: B(() => [G.value && E(l) ? (P(), Z("div", YC, [H("div", {
|
|
19672
19859
|
class: "floating-chat-widget__frame-window",
|
|
19673
19860
|
style: O(Ee.value)
|
|
19674
|
-
}, [F(
|
|
19861
|
+
}, [F(HC, { active: Te.value }, null, 8, ["active"])], 4)])) : q("", !0)]),
|
|
19675
19862
|
_: 1
|
|
19676
19863
|
}),
|
|
19677
19864
|
F(K, { name: "floating-chat-widget-frame" }, {
|
|
@@ -19687,7 +19874,7 @@ var qC = {
|
|
|
19687
19874
|
class: "floating-chat-widget__page-aurora",
|
|
19688
19875
|
style: O(Ee.value),
|
|
19689
19876
|
"aria-hidden": "true"
|
|
19690
|
-
}, [F(
|
|
19877
|
+
}, [F(UC, {
|
|
19691
19878
|
active: Te.value,
|
|
19692
19879
|
side: Se.value === "left" ? "left" : "right",
|
|
19693
19880
|
pulse: E(V)
|
|
@@ -19697,7 +19884,7 @@ var qC = {
|
|
|
19697
19884
|
"pulse"
|
|
19698
19885
|
])], 4)),
|
|
19699
19886
|
F(K, { name: "slide-bottom" }, {
|
|
19700
|
-
default: B(() => [(E(A) || E(ie)) && !E(se) && !Oe.value && !(G.value && E(l)) ? (P(), Z("div",
|
|
19887
|
+
default: B(() => [(E(A) || E(ie)) && !E(se) && !Oe.value && !(G.value && E(l)) ? (P(), Z("div", XC, [F(BC, {
|
|
19701
19888
|
"agent-id": e.agentId,
|
|
19702
19889
|
message: E(A)?.interface.initialMessage,
|
|
19703
19890
|
enabled: !E(l) && E(A)?.interface?.welcomePopup,
|
|
@@ -19712,11 +19899,11 @@ var qC = {
|
|
|
19712
19899
|
"aria-expanded": E(l),
|
|
19713
19900
|
class: "floating-chat-widget__button",
|
|
19714
19901
|
onClick: ve(u, ["stop"])
|
|
19715
|
-
}, [E(l) ? (P(), Z("svg",
|
|
19902
|
+
}, [E(l) ? (P(), Z("svg", QC, [...n[5] ||= [H("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }, null, -1)]])) : (P(), Z("svg", $C, [...n[6] ||= [H("path", { d: "M12 1.99996C12.8632 1.99996 13.701 2.10973 14.5 2.31539L14 4.25192C13.3608 4.0874 12.6906 3.99997 12 3.99997C7.58174 3.99997 4.00002 7.58172 4 12C4 13.3344 4.3255 14.6174 4.93945 15.7656L5.28906 16.4189L4.63379 19.3662L7.58105 18.7109L8.23438 19.0605C9.38255 19.6745 10.6656 20 12 20C16.4183 20 20 16.4183 20 12C20 11.6771 19.9805 11.3587 19.9434 11.0459L21.9297 10.8095C21.976 11.1999 22 11.5972 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.69425 21.5746 7.29102 20.8242L2 22L3.17578 16.709C2.42541 15.3057 2 13.7025 2 12C2.00002 6.47714 6.47717 1.99996 12 1.99996ZM19.5293 1.3193C19.7058 0.893513 20.2942 0.8935 20.4707 1.3193L20.7236 1.93063C21.1555 2.97343 21.9615 3.80614 22.9746 4.2568L23.6914 4.57614C24.1022 4.75882 24.1022 5.35635 23.6914 5.53903L22.9326 5.87692C21.945 6.3162 21.1534 7.11943 20.7139 8.1279L20.4668 8.69333C20.2863 9.10747 19.7136 9.10747 19.5332 8.69333L19.2861 8.1279C18.8466 7.11942 18.0551 6.3162 17.0674 5.87692L16.3076 5.53903C15.8974 5.35618 15.8974 4.75895 16.3076 4.57614L17.0254 4.2568C18.0384 3.80614 18.8445 2.97343 19.2764 1.93063L19.5293 1.3193Z" }, null, -1)]]))], 8, ZC)])) : q("", !0)]),
|
|
19716
19903
|
_: 1
|
|
19717
19904
|
}),
|
|
19718
19905
|
F(K, { name: je.value }, {
|
|
19719
|
-
default: B(() => [E(l) && (E(M) || E(ce)) && !(E(A) && E(d).data) ? (P(), Z("div",
|
|
19906
|
+
default: B(() => [E(l) && (E(M) || E(ce)) && !(E(A) && E(d).data) ? (P(), Z("div", ew, [E(M) ? (P(), L(MC, {
|
|
19720
19907
|
key: 0,
|
|
19721
19908
|
"error-message": E(J),
|
|
19722
19909
|
"onUpdate:errorMessage": n[0] ||= (e) => Ce(J) ? J.value = e : null,
|
|
@@ -19749,7 +19936,7 @@ var qC = {
|
|
|
19749
19936
|
"onVerifyTwoFactor",
|
|
19750
19937
|
"onSendTwoFactorCode",
|
|
19751
19938
|
"onCancelTwoFactor"
|
|
19752
|
-
])) : (P(), L(
|
|
19939
|
+
])) : (P(), L(IC, { key: 1 })), H("span", tw, [F(a, {
|
|
19753
19940
|
modifiers: "action-quiet",
|
|
19754
19941
|
icon: "ri:close-line",
|
|
19755
19942
|
title: t.$t("action.close"),
|
|
@@ -19758,7 +19945,7 @@ var qC = {
|
|
|
19758
19945
|
_: 1
|
|
19759
19946
|
}, 8, ["name"]),
|
|
19760
19947
|
F(K, { name: je.value }, {
|
|
19761
|
-
default: B(() => [E(l) && !E(M) && !E(A) && !E(ce) ? (P(), Z("div",
|
|
19948
|
+
default: B(() => [E(l) && !E(M) && !E(A) && !E(ce) ? (P(), Z("div", nw, [F(IC), H("span", rw, [F(a, {
|
|
19762
19949
|
modifiers: "action-quiet",
|
|
19763
19950
|
icon: "ri:close-line",
|
|
19764
19951
|
title: t.$t("action.close"),
|
|
@@ -19767,7 +19954,7 @@ var qC = {
|
|
|
19767
19954
|
_: 1
|
|
19768
19955
|
}, 8, ["name"]),
|
|
19769
19956
|
F(K, { name: je.value }, {
|
|
19770
|
-
default: B(() => [E(A) && E(l) && E(d).data ? (P(), L(
|
|
19957
|
+
default: B(() => [E(A) && E(l) && E(d).data ? (P(), L(kS, {
|
|
19771
19958
|
key: e.agentId,
|
|
19772
19959
|
ref_key: "chatbotEl",
|
|
19773
19960
|
ref: o,
|
|
@@ -19803,7 +19990,7 @@ var qC = {
|
|
|
19803
19990
|
title: t.$t("action.close"),
|
|
19804
19991
|
onClick: ve(u, ["stop"])
|
|
19805
19992
|
}, null, 8, ["modifiers", "title"])]),
|
|
19806
|
-
"view-auth": B(() => [F(
|
|
19993
|
+
"view-auth": B(() => [F(MC, {
|
|
19807
19994
|
"error-message": E(J),
|
|
19808
19995
|
"onUpdate:errorMessage": n[2] ||= (e) => Ce(J) ? J.value = e : null,
|
|
19809
19996
|
success: E(Y),
|
|
@@ -19861,8 +20048,8 @@ var qC = {
|
|
|
19861
20048
|
class: "floating-chat-widget__panel-beam",
|
|
19862
20049
|
style: O(Ee.value),
|
|
19863
20050
|
"aria-hidden": "true"
|
|
19864
|
-
}, [F(
|
|
19865
|
-
F(
|
|
20051
|
+
}, [F(HC, { active: we.value }, null, 8, ["active"])], 4)) : q("", !0),
|
|
20052
|
+
F(JC, {
|
|
19866
20053
|
active: E(k).pageControlActive,
|
|
19867
20054
|
target: E(ye),
|
|
19868
20055
|
"agent-name": E(A)?.name,
|
|
@@ -19878,12 +20065,12 @@ var qC = {
|
|
|
19878
20065
|
"style",
|
|
19879
20066
|
"onArrived"
|
|
19880
20067
|
]),
|
|
19881
|
-
F(
|
|
20068
|
+
F(MS, {
|
|
19882
20069
|
active: E(k).pageControlActive,
|
|
19883
20070
|
action: E(k).pageAction?.title,
|
|
19884
20071
|
onStop: n[4] ||= (e) => E(k).stopHostActions()
|
|
19885
20072
|
}, null, 8, ["active", "action"]),
|
|
19886
|
-
E(k).hostConfirmation && E(te) ? (P(), L(
|
|
20073
|
+
E(k).hostConfirmation && E(te) ? (P(), L(PS, {
|
|
19887
20074
|
key: 4,
|
|
19888
20075
|
question: E(k).hostConfirmation.question ?? E(D)("toolApproval.prompt"),
|
|
19889
20076
|
details: E(k).hostConfirmation.details,
|
|
@@ -19900,16 +20087,16 @@ var qC = {
|
|
|
19900
20087
|
}), [["styles", [".floating-chat-widget{--chatbot-copilot-gap:var(--spacing-12);--chatbot-copilot-panel-width:clamp(320px, 24vw, 406px);--chatbot-copilot-duration:.45s;--chatbot-copilot-easing:cubic-bezier(.32, .72, 0, 1);--chatbot-copilot-top:calc(env(safe-area-inset-top) + var(--chatbot-copilot-gap));--chatbot-copilot-right:calc(env(safe-area-inset-right) + var(--chatbot-copilot-gap));--chatbot-copilot-bottom:calc(env(safe-area-inset-bottom) + var(--chatbot-copilot-gap));--chatbot-copilot-left:calc(env(safe-area-inset-left) + var(--chatbot-copilot-gap));display:contents}@media (prefers-reduced-motion:reduce){.floating-chat-widget{--chatbot-copilot-duration:.01ms}}.floating-chat-widget__launcher{bottom:var(--spacing-16);right:var(--spacing-16);align-items:flex-end;gap:var(--spacing-14);z-index:99999997;background:0 0;flex-direction:column;width:fit-content;display:flex;position:fixed}.floating-chat-widget__button{padding:var(--spacing-10);width:var(--spacing-48);height:var(--spacing-48);border-radius:var(--rounded-full);background-color:var(--chatbot-main-color,var(--color-black,#000));color:var(--chatbot-contrast-color,var(--color-white,#fff));cursor:pointer;pointer-events:auto;border:0;flex-shrink:0;justify-content:center;align-items:center;transition:all .2s ease-in-out;display:block;transform:scale(1);box-shadow:0 4px 8px #0003}.floating-chat-widget__button:hover{transform:scale(1.1)}.floating-chat-widget__chat{z-index:2147483647;height:auto;position:fixed;inset:0;overflow:hidden}@media (width>=576px){.floating-chat-widget__chat{border-radius:var(--rounded-xxl);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);width:406px;height:85dvh;inset:auto 16px 78px auto;box-shadow:0 260px 73px #0000,0 166px 67px #00000003,0 94px 56px #00000005,0 42px 42px #00000008,0 10px 23px #0000000a}}@media (width<576px){.floating-chat-widget__chat{transition:top var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget--acting .floating-chat-widget__chat{border-radius:var(--rounded-xxl) var(--rounded-xxl) 0 0;box-shadow:var(--shadow-xl);top:62dvh}}.floating-chat-widget__page-aurora{z-index:99999996;pointer-events:none;position:fixed;inset:0}.floating-chat-widget__loading,.floating-chat-widget__auth{background-color:var(--color-surface,#fff);justify-content:center;align-items:center;display:flex}.floating-chat-widget__close{top:calc(env(safe-area-inset-top) + var(--spacing-8));right:calc(env(safe-area-inset-right) + var(--spacing-8));position:absolute}@media (width>=576px){.floating-chat-widget__close{display:none}}.floating-chat-widget--position-left .floating-chat-widget__launcher{right:unset;left:var(--spacing-16);align-items:flex-start}@media (width>=576px){.floating-chat-widget--position-left .floating-chat-widget__chat{right:unset;left:16px}}@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){@media (width>=576px){.floating-chat-widget--glass .floating-chat-widget__chat{--chatbot-glass-pane:color-mix(in srgb, var(--color-surface) 70%, transparent);--chatbot-glass-edge:color-mix(in srgb, var(--color-surface) 85%, transparent);--chatbot-glass-light:color-mix(in srgb, color-mix(in oklab, var(--color-surface) 55%, white) 85%, transparent);background-color:color-mix(in srgb, var(--color-surface) 72%, transparent);-webkit-backdrop-filter:blur(24px)saturate(180%);backdrop-filter:blur(24px)saturate(180%);box-shadow:0 1px 2px #0000000f,0 16px 40px -12px #0000003d,0 40px 80px -32px #00000047}.floating-chat-widget--glass .floating-chat-widget__chat:before{content:\"\";z-index:2;border-radius:inherit;padding:var(--spacing-px);background:linear-gradient(135deg, var(--chatbot-glass-light), var(--chatbot-glass-edge) 35%, transparent 60%, var(--chatbot-glass-edge));-webkit-mask-composite:xor;pointer-events:none;position:absolute;inset:0;-webkit-mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot{background-color:#0000}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot__header{background-color:color-mix(in srgb, var(--color-surface-1) 50%, transparent);border-bottom-color:var(--chatbot-glass-edge)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-message:not(.pk-chatbot-message--user) .pk-chatbot-message__text,.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-message__loading-info,.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-messages__scroll-to-bottom{background-color:var(--chatbot-glass-pane);border-color:var(--chatbot-glass-edge);box-shadow:inset 0 1px 0 var(--chatbot-glass-light)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-message--user .pk-chatbot-message__text{background-color:color-mix(in srgb, var(--chatbot-main-color,var(--color-surface-1)) 78%, transparent);border-color:color-mix(in srgb, var(--chatbot-main-color,var(--color-surface-3)) 88%, transparent);box-shadow:inset 0 1px #ffffff40}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__notice{background-color:var(--chatbot-glass-pane)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__notice:after{display:none}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input:has(.pk-chatbot-input__notice) .pk-chatbot-input__form{border-top-left-radius:0;border-top-right-radius:0}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__form{background-color:var(--chatbot-glass-pane)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__form:not(:has(:focus-within)){border-color:var(--chatbot-glass-edge)}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__textarea,.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot-input__counter{background-color:#0000}.floating-chat-widget--glass .floating-chat-widget__chat .pk-chatbot__footer{border-top-color:var(--chatbot-glass-edge)}}@media (width>=576px) and (prefers-reduced-transparency:reduce){.floating-chat-widget--glass .floating-chat-widget__chat{background-color:var(--color-surface);-webkit-backdrop-filter:none;backdrop-filter:none}}}@media (width>=576px){.floating-chat-widget--no-button .floating-chat-widget__chat{bottom:16px}}.floating-chat-widget--copilot .floating-chat-widget__chat,.floating-chat-widget--copilot .floating-chat-widget__panel-beam{width:auto;height:auto;box-shadow:none;z-index:2147483647;border-radius:0;position:fixed;inset:0}@media (width>=992px){.floating-chat-widget--copilot .floating-chat-widget__chat,.floating-chat-widget--copilot .floating-chat-widget__panel-beam{inset:var(--chatbot-copilot-top) var(--chatbot-copilot-right) var(--chatbot-copilot-bottom) auto;width:var(--chatbot-copilot-panel-width);border-radius:var(--rounded-xl)}}.floating-chat-widget--copilot .floating-chat-widget__chat{background-color:var(--color-surface);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}@media (width>=992px){.floating-chat-widget--copilot .floating-chat-widget__chat{box-shadow:var(--shadow-xl);padding:0}}@media (width>=1280px){.floating-chat-widget--copilot .floating-chat-widget__chat{box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background-color:#0000;border-radius:0}}.floating-chat-widget--copilot .floating-chat-widget__panel-beam{pointer-events:none}@media (width>=1280px){.floating-chat-widget--copilot .floating-chat-widget__panel-beam{display:none}}.floating-chat-widget--copilot .floating-chat-widget__close{display:block}.floating-chat-widget__backdrop{display:none}@media (width>=992px){.floating-chat-widget__backdrop{z-index:2147483646;background-color:#0000004d;display:block;position:fixed;inset:0}}@media (width>=1280px){.floating-chat-widget__backdrop{display:none}}.floating-chat-widget__frame{display:none}@media (width>=1280px){.floating-chat-widget__frame{z-index:2147483646;pointer-events:none;display:block;position:fixed;inset:0}}.floating-chat-widget__frame-window{inset:var(--chatbot-copilot-gap) calc(var(--chatbot-copilot-panel-width) + 2 * var(--chatbot-copilot-gap)) var(--chatbot-copilot-gap) var(--chatbot-copilot-gap);border:var(--spacing-px) solid var(--color-surface-3);border-radius:var(--rounded-xl);box-shadow:0 0 0 100vmax var(--color-surface-2);position:absolute}@media (width>=992px){.floating-chat-widget--copilot.floating-chat-widget--position-left .floating-chat-widget__chat,.floating-chat-widget--copilot.floating-chat-widget--position-left .floating-chat-widget__panel-beam{inset:var(--chatbot-copilot-top) auto var(--chatbot-copilot-bottom) var(--chatbot-copilot-left)}}.floating-chat-widget--copilot.floating-chat-widget--position-left .floating-chat-widget__frame-window{inset:var(--chatbot-copilot-gap) var(--chatbot-copilot-gap) var(--chatbot-copilot-gap) calc(var(--chatbot-copilot-panel-width) + 2 * var(--chatbot-copilot-gap))}@media (width<992px){.floating-chat-widget--copilot .floating-chat-widget__chat,.floating-chat-widget--copilot .floating-chat-widget__panel-beam{transition:top var(--chatbot-copilot-duration) var(--chatbot-copilot-easing), transform var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget--copilot.floating-chat-widget--acting .floating-chat-widget__chat,.floating-chat-widget--copilot.floating-chat-widget--acting .floating-chat-widget__panel-beam{border-radius:var(--rounded-xxl) var(--rounded-xxl) 0 0;top:62dvh}.floating-chat-widget--copilot.floating-chat-widget--acting .floating-chat-widget__chat{padding-top:0}}.floating-chat-widget-frame-enter-active,.floating-chat-widget-frame-leave-active{transition:opacity var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget-frame-enter-active .floating-chat-widget__frame-window,.floating-chat-widget-frame-leave-active .floating-chat-widget__frame-window{transition:left var(--chatbot-copilot-duration) var(--chatbot-copilot-easing), right var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget-frame-enter-from,.floating-chat-widget-frame-leave-to{opacity:0}.floating-chat-widget-frame-enter-from .floating-chat-widget__frame-window,.floating-chat-widget-frame-leave-to .floating-chat-widget__frame-window{right:var(--chatbot-copilot-gap)}.floating-chat-widget-copilot-enter-active,.floating-chat-widget-copilot-leave-active{transition:transform var(--chatbot-copilot-duration) var(--chatbot-copilot-easing)}.floating-chat-widget-copilot-enter-from,.floating-chat-widget-copilot-leave-to{transform:translateX(calc(100% + var(--chatbot-copilot-right)))}.floating-chat-widget--position-left .floating-chat-widget-frame-enter-from .floating-chat-widget__frame-window,.floating-chat-widget--position-left .floating-chat-widget-frame-leave-to .floating-chat-widget__frame-window{left:var(--chatbot-copilot-gap)}.floating-chat-widget--position-left .floating-chat-widget-copilot-enter-from,.floating-chat-widget--position-left .floating-chat-widget-copilot-leave-to{transform:translateX(calc(-100% - var(--chatbot-copilot-left)))}"]]]);
|
|
19901
20088
|
// src/components/EmbeddedChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
|
|
19902
20089
|
G(), R(), Y(), De();
|
|
19903
|
-
var
|
|
20090
|
+
var ow = {
|
|
19904
20091
|
key: 3,
|
|
19905
20092
|
class: "embedded-chat-widget embedded-chat-widget--not-found"
|
|
19906
|
-
},
|
|
20093
|
+
}, sw = {
|
|
19907
20094
|
key: 0,
|
|
19908
20095
|
class: "embedded-chat-widget embedded-chat-widget--auth"
|
|
19909
|
-
},
|
|
20096
|
+
}, cw = {
|
|
19910
20097
|
key: 0,
|
|
19911
20098
|
class: "embedded-chat-widget embedded-chat-widget--loading"
|
|
19912
|
-
},
|
|
20099
|
+
}, lw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19913
20100
|
inheritAttrs: !1,
|
|
19914
20101
|
__name: "EmbeddedChatWidget.ce",
|
|
19915
20102
|
props: {
|
|
@@ -19999,8 +20186,8 @@ var iw = {
|
|
|
19999
20186
|
status: e.status
|
|
20000
20187
|
}), u(e);
|
|
20001
20188
|
}
|
|
20002
|
-
let { t: te } = Le({ useScope: "global" }), ne =
|
|
20003
|
-
|
|
20189
|
+
let { t: te } = Le({ useScope: "global" }), ne = HS(() => !!T.hostConfirmation || T.pageControlActive), re = pC(xe(), () => !!n.followPageDialogs && n.followPageDialogs !== "false");
|
|
20190
|
+
XS(ne, () => T.pageControlActive && !re.value, {
|
|
20004
20191
|
text: () => te("messagePart.pageControlActive"),
|
|
20005
20192
|
stopLabel: () => te("action.stop"),
|
|
20006
20193
|
onStop: () => void T.stopHostActions()
|
|
@@ -20091,7 +20278,7 @@ var iw = {
|
|
|
20091
20278
|
default: B(() => [Ne(N(Pe.value), 1)]),
|
|
20092
20279
|
_: 1
|
|
20093
20280
|
})) : q("", !0),
|
|
20094
|
-
F(
|
|
20281
|
+
F(JC, {
|
|
20095
20282
|
active: E(T).pageControlActive,
|
|
20096
20283
|
target: E(V),
|
|
20097
20284
|
"agent-name": E(A)?.name,
|
|
@@ -20107,12 +20294,12 @@ var iw = {
|
|
|
20107
20294
|
"style",
|
|
20108
20295
|
"onArrived"
|
|
20109
20296
|
]),
|
|
20110
|
-
F(
|
|
20297
|
+
F(MS, {
|
|
20111
20298
|
active: E(T).pageControlActive,
|
|
20112
20299
|
action: E(T).pageAction?.title,
|
|
20113
20300
|
onStop: n[0] ||= (e) => E(T).stopHostActions()
|
|
20114
20301
|
}, null, 8, ["active", "action"]),
|
|
20115
|
-
E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(
|
|
20302
|
+
E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(PS, {
|
|
20116
20303
|
key: 2,
|
|
20117
20304
|
question: E(T).hostConfirmation.question ?? E(te)("toolApproval.prompt"),
|
|
20118
20305
|
details: E(T).hostConfirmation.details,
|
|
@@ -20122,12 +20309,12 @@ var iw = {
|
|
|
20122
20309
|
"details",
|
|
20123
20310
|
"onRespond"
|
|
20124
20311
|
])) : q("", !0),
|
|
20125
|
-
E(se) ? (P(), Z("div",
|
|
20312
|
+
E(se) ? (P(), Z("div", ow, [H("p", null, N(E(te)("message.agentNotFound")), 1)])) : q("", !0),
|
|
20126
20313
|
F(K, {
|
|
20127
20314
|
name: "fade",
|
|
20128
20315
|
appear: ""
|
|
20129
20316
|
}, {
|
|
20130
|
-
default: B(() => [(E(A) || E(ie)) && !E(se) && E(M) && (!E(l).data?.user?.id || E(l).data?.user?.isAnonymous) ? (P(), Z("div",
|
|
20317
|
+
default: B(() => [(E(A) || E(ie)) && !E(se) && E(M) && (!E(l).data?.user?.id || E(l).data?.user?.isAnonymous) ? (P(), Z("div", sw, [E(j) ? (P(), L(MC, {
|
|
20131
20318
|
key: 0,
|
|
20132
20319
|
"error-message": E(we),
|
|
20133
20320
|
"onUpdate:errorMessage": n[1] ||= (e) => Ce(we) ? we.value = e : null,
|
|
@@ -20158,17 +20345,17 @@ var iw = {
|
|
|
20158
20345
|
"onVerifyTwoFactor",
|
|
20159
20346
|
"onSendTwoFactorCode",
|
|
20160
20347
|
"onCancelTwoFactor"
|
|
20161
|
-
])) : (P(), L(
|
|
20348
|
+
])) : (P(), L(IC, { key: 1 }))])) : q("", !0)]),
|
|
20162
20349
|
_: 1
|
|
20163
20350
|
}),
|
|
20164
20351
|
F(K, {
|
|
20165
20352
|
name: "fade",
|
|
20166
20353
|
appear: ""
|
|
20167
20354
|
}, {
|
|
20168
|
-
default: B(() => [E(ce) && !E(se) ? (P(), Z("div",
|
|
20355
|
+
default: B(() => [E(ce) && !E(se) ? (P(), Z("div", cw, [F(IC)])) : q("", !0)]),
|
|
20169
20356
|
_: 1
|
|
20170
20357
|
}),
|
|
20171
|
-
E(A) && E(l).data && !E(se) ? (P(), L(
|
|
20358
|
+
E(A) && E(l).data && !E(se) ? (P(), L(kS, {
|
|
20172
20359
|
key: 4,
|
|
20173
20360
|
ref_key: "chatbotEl",
|
|
20174
20361
|
ref: o,
|
|
@@ -20201,7 +20388,7 @@ var iw = {
|
|
|
20201
20388
|
}, ge({
|
|
20202
20389
|
"header-actions": B(() => [pe(t.$slots, "header-actions")]),
|
|
20203
20390
|
actions: B(() => [pe(t.$slots, "actions")]),
|
|
20204
|
-
"view-auth": B(() => [F(
|
|
20391
|
+
"view-auth": B(() => [F(MC, {
|
|
20205
20392
|
"error-message": E(we),
|
|
20206
20393
|
"onUpdate:errorMessage": n[3] ||= (e) => Ce(we) ? we.value = e : null,
|
|
20207
20394
|
success: E(Te),
|
|
@@ -20262,7 +20449,7 @@ var iw = {
|
|
|
20262
20449
|
}), [["styles", [".embedded-chat-widget-root{display:contents}.embedded-chat-widget{width:100%;height:100%}.embedded-chat-widget--loading,.embedded-chat-widget--not-found,.embedded-chat-widget--auth{justify-content:center;align-items:center;display:flex}.fade-enter-active,.fade-leave-active{transition:opacity .2s}.fade-enter-from,.fade-leave-to{opacity:0}"]]]);
|
|
20263
20450
|
// src/lib.ts
|
|
20264
20451
|
De();
|
|
20265
|
-
function
|
|
20452
|
+
function uw(e) {
|
|
20266
20453
|
let { t } = xr.global;
|
|
20267
20454
|
e.use($n()), e.use(xr), e.provide(Re, xr), e.use(zr, {
|
|
20268
20455
|
iconsCollections: [Br, Vr],
|
|
@@ -20288,15 +20475,15 @@ function cw(e) {
|
|
|
20288
20475
|
ki(e instanceof Error ? e : Error(String(e)), { vueInfo: n });
|
|
20289
20476
|
};
|
|
20290
20477
|
}
|
|
20291
|
-
function
|
|
20478
|
+
function dw(e) {
|
|
20292
20479
|
let { styles: t } = e;
|
|
20293
20480
|
return {
|
|
20294
|
-
configureApp:
|
|
20481
|
+
configureApp: uw,
|
|
20295
20482
|
styles: [Ai, ...t ?? []]
|
|
20296
20483
|
};
|
|
20297
20484
|
}
|
|
20298
|
-
var
|
|
20299
|
-
customElements.define("floating-chat-widget",
|
|
20300
|
-
export {
|
|
20485
|
+
var fw = we(aw, dw(aw)), pw = we(lw, dw(lw));
|
|
20486
|
+
customElements.define("floating-chat-widget", fw), customElements.define("embedded-chat-widget", pw);
|
|
20487
|
+
export { pw as EmbeddedChatWidgetCe, fw as FloatingChatWidgetCe };
|
|
20301
20488
|
|
|
20302
20489
|
//# sourceMappingURL=ai-elements.es.js.map
|