@8wave/ai-elements 0.122.0-beta.10 → 0.122.0-beta.12
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/PkStreamingMarkdown-Dc0R0GHe.js.map +1 -1
- package/dist/_chunks/PkToolChatFile-CScP_O0D.js +193 -0
- package/dist/_chunks/PkToolChatFile-CScP_O0D.js.map +1 -0
- package/dist/_chunks/PkWordPreview-COVeYzqX.js +120 -0
- package/dist/_chunks/PkWordPreview-COVeYzqX.js.map +1 -0
- package/dist/ai-elements.es.js +514 -401
- 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-CxbPkjhQ.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-B7JaLUZw.js.map → PkChatbot-CxbPkjhQ.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotViewChat-gcim5jsW.js +1003 -0
- package/dist-vue/_chunks/PkChatbotViewChat-gcim5jsW.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-4ZJF-y5q.js → PkChatbotViewConversations-ZdDraX9c.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-4ZJF-y5q.js.map → PkChatbotViewConversations-ZdDraX9c.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-CfPwNcvf.js → PkChatbotViewFiles-BqZ3CJm5.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-CfPwNcvf.js.map → PkChatbotViewFiles-BqZ3CJm5.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dd8EhOx3.js → PkChatbotViewProfile-CANtq-SY.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dd8EhOx3.js.map → PkChatbotViewProfile-CANtq-SY.js.map} +1 -1
- package/dist-vue/_chunks/PkToolChatFile-iOyeQBp6.js +191 -0
- package/dist-vue/_chunks/PkToolChatFile-iOyeQBp6.js.map +1 -0
- package/dist-vue/_chunks/PkWordPreview-azW8wfJe.js +115 -0
- package/dist-vue/_chunks/PkWordPreview-azW8wfJe.js.map +1 -0
- package/dist-vue/_chunks/{createChatbotApiClient-y6jA42S0.js → createChatbotApiClient-Cu1nDV3E.js} +4 -1
- package/dist-vue/_chunks/{createChatbotApiClient-y6jA42S0.js.map → createChatbotApiClient-Cu1nDV3E.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DCXyql8U.js → useChatbotStore-CPl6KHny.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-DCXyql8U.js.map → useChatbotStore-CPl6KHny.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 +30 -2
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +6 -6
- package/dist-vue/locales.js +28 -0
- package/dist-vue/packages/components/src/chat/PkToolChatFile.d.ts +3 -0
- package/dist-vue/packages/components/src/chat/PkWordPreview.d.ts +29 -0
- package/dist-vue/packages/components/src/chat/PkWordPreviewRuns.d.ts +13 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +6 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +3 -1
- package/dist-vue/packages/models/src/schema/WordPreview.d.ts +134 -0
- package/dist-vue/packages/models/src/schema/index.d.ts +1 -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,20 @@ 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
|
+
unavailable: "L'anteprima di questo documento non è disponibile: scaricalo per aprirlo in Word."
|
|
1455
|
+
},
|
|
1442
1456
|
messagePart: {
|
|
1443
1457
|
audioTranscribing: "Trascrizione dell'audio…",
|
|
1444
1458
|
audioTranscript: "Trascrizione",
|
|
@@ -3461,6 +3475,20 @@ var hr = {
|
|
|
3461
3475
|
extracted: "Extracted | Extracted"
|
|
3462
3476
|
},
|
|
3463
3477
|
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\"}"),
|
|
3478
|
+
chatFilePreview: {
|
|
3479
|
+
preview: "Preview",
|
|
3480
|
+
unpaged: "Preview, not paginated",
|
|
3481
|
+
versionUnpaged: "Version {version}, preview not paginated",
|
|
3482
|
+
download: "Download",
|
|
3483
|
+
close: "Close the preview",
|
|
3484
|
+
revisionsOf: "Tracked changes by {authors}, not accepted yet:",
|
|
3485
|
+
removed: "removed",
|
|
3486
|
+
added: "added",
|
|
3487
|
+
revisionBy: "Tracked change by {author}",
|
|
3488
|
+
image: "Image",
|
|
3489
|
+
truncated: "The preview stops here: the rest of the document is in the file to download.",
|
|
3490
|
+
unavailable: "This document has no preview: download it to open it in Word."
|
|
3491
|
+
},
|
|
3464
3492
|
messagePart: {
|
|
3465
3493
|
audioTranscribing: "Transcribing the audio…",
|
|
3466
3494
|
audioTranscript: "Transcript",
|
|
@@ -6906,6 +6934,9 @@ function xc(e) {
|
|
|
6906
6934
|
async getAgent(e, t) {
|
|
6907
6935
|
return i(`/organizations/${encodeURIComponent(e)}/agents/${encodeURIComponent(t)}`);
|
|
6908
6936
|
},
|
|
6937
|
+
async getWordPreview(e, t, n) {
|
|
6938
|
+
return i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}/media/${encodeURIComponent(n)}/preview`);
|
|
6939
|
+
},
|
|
6909
6940
|
async getAgentAccess(e, t) {
|
|
6910
6941
|
return i(`/organizations/${encodeURIComponent(e)}/agents/${encodeURIComponent(t)}/access`);
|
|
6911
6942
|
},
|
|
@@ -17335,7 +17366,10 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17335
17366
|
}, mx = {
|
|
17336
17367
|
key: 0,
|
|
17337
17368
|
class: "pk-chatbot-view-chat__drop-overlay"
|
|
17338
|
-
}, hx =
|
|
17369
|
+
}, hx = {
|
|
17370
|
+
key: 1,
|
|
17371
|
+
class: "pk-chatbot-view-chat__preview"
|
|
17372
|
+
}, gx = 1e3, _x = 3e3, vx = 6e4, yx = 3e5, bx = 6e5, xx = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
17339
17373
|
__name: "PkChatbotViewChat",
|
|
17340
17374
|
props: {
|
|
17341
17375
|
agentId: { type: String },
|
|
@@ -17344,165 +17378,194 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17344
17378
|
},
|
|
17345
17379
|
emits: ["show-info", "revise"],
|
|
17346
17380
|
setup(e, { emit: t }) {
|
|
17347
|
-
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-
|
|
17348
|
-
Fe(bt,
|
|
17349
|
-
let
|
|
17350
|
-
I(
|
|
17351
|
-
|
|
17381
|
+
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-CScP_O0D.js")), d = T(() => import("./_chunks/PkToolShareDocument-BE02IEEO.js")), f = T(() => import("./_chunks/PkWordPreview-COVeYzqX.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);
|
|
17382
|
+
Fe(bt, z);
|
|
17383
|
+
let be = me("inputEl");
|
|
17384
|
+
I(V, () => {
|
|
17385
|
+
be.value?.focus();
|
|
17352
17386
|
});
|
|
17353
|
-
let
|
|
17354
|
-
let e =
|
|
17355
|
-
if (e) return e.reason === "per-chat" ?
|
|
17356
|
-
}),
|
|
17387
|
+
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(() => {
|
|
17388
|
+
let e = ce.value;
|
|
17389
|
+
if (e) return e.reason === "per-chat" ? Ue("message.fileLimitPerChat", { max: e.max }) : Ue("message.fileLimitPerMessage", { max: e.max });
|
|
17390
|
+
}), Ye = U(() => ye.value.map(({ chatId: e, title: t }) => ({
|
|
17357
17391
|
id: e,
|
|
17358
|
-
text: t ?
|
|
17359
|
-
}))),
|
|
17360
|
-
|
|
17392
|
+
text: t ? Ue("message.backgroundAnswerReady", { title: t }) : Ue("message.backgroundAnswerReadyUntitled")
|
|
17393
|
+
}))), 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, {
|
|
17394
|
+
width: 0,
|
|
17395
|
+
height: 0
|
|
17396
|
+
}, { 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) => {
|
|
17397
|
+
it.value = e, st.value = !1;
|
|
17398
|
+
let t = ct.get(e.storedFileName);
|
|
17399
|
+
if (at.value = t, ot.value = !1, t) return;
|
|
17400
|
+
ot.value = !0;
|
|
17401
|
+
let n = () => it.value?.storedFileName === e.storedFileName;
|
|
17402
|
+
try {
|
|
17403
|
+
let t = await le.value.getWordPreview(p.agentId, h.localChatId, e.storedFileName);
|
|
17404
|
+
ct.set(e.storedFileName, t), n() && (at.value = t);
|
|
17405
|
+
} catch {
|
|
17406
|
+
n() && (st.value = !0);
|
|
17407
|
+
} finally {
|
|
17408
|
+
n() && (ot.value = !1);
|
|
17409
|
+
}
|
|
17410
|
+
}, ut = () => {
|
|
17411
|
+
it.value = void 0;
|
|
17412
|
+
}, ft = U({
|
|
17413
|
+
get: () => !!it.value && !nt.value,
|
|
17414
|
+
set: (e) => {
|
|
17415
|
+
e || ut();
|
|
17416
|
+
}
|
|
17417
|
+
});
|
|
17418
|
+
I(() => h.localChatId, () => {
|
|
17419
|
+
ut(), ct.clear();
|
|
17420
|
+
});
|
|
17421
|
+
let pt = async (e) => (await le.value.expandSourceContext(p.agentId, e.documentId, e.chunkIndex)).content, mt = async (e) => {
|
|
17422
|
+
let t = await le.value.downloadSourceDocument(p.agentId, e);
|
|
17361
17423
|
window.open(t.downloadUrl, "_blank");
|
|
17362
|
-
}, { isOverDropZone:
|
|
17363
|
-
dataTypes: (e) => Rt(e,
|
|
17424
|
+
}, { isOverDropZone: gt } = hn(et, {
|
|
17425
|
+
dataTypes: (e) => Rt(e, xe.value?.allowedMimeTypes ?? []),
|
|
17364
17426
|
onDrop: (e) => {
|
|
17365
|
-
if (
|
|
17427
|
+
if (xe.value?.enabled && e) for (let t of e) Y(t);
|
|
17366
17428
|
}
|
|
17367
|
-
}),
|
|
17429
|
+
}), _t = W(!1), vt = !1, yt = W(!1), xt = [
|
|
17368
17430
|
3e3,
|
|
17369
17431
|
5e3,
|
|
17370
17432
|
1e4
|
|
17371
|
-
],
|
|
17372
|
-
function
|
|
17373
|
-
clearTimeout(
|
|
17433
|
+
], St, Ct, wt = !1, Tt = 0, Et = !1;
|
|
17434
|
+
function Dt() {
|
|
17435
|
+
clearTimeout(St), St = void 0, Ct = void 0, wt = !1, Tt = 0, yt.value = !1;
|
|
17374
17436
|
}
|
|
17375
|
-
function
|
|
17376
|
-
|
|
17377
|
-
|
|
17437
|
+
function Ot(e) {
|
|
17438
|
+
vt || (clearTimeout(St), St = setTimeout(() => {
|
|
17439
|
+
kt();
|
|
17378
17440
|
}, e));
|
|
17379
17441
|
}
|
|
17380
|
-
async function
|
|
17381
|
-
if (
|
|
17382
|
-
|
|
17442
|
+
async function kt() {
|
|
17443
|
+
if (vt || Et) return;
|
|
17444
|
+
Et = !0;
|
|
17383
17445
|
let e;
|
|
17384
17446
|
try {
|
|
17385
|
-
e = await
|
|
17447
|
+
e = await X();
|
|
17386
17448
|
} finally {
|
|
17387
|
-
|
|
17449
|
+
Et = !1;
|
|
17388
17450
|
}
|
|
17389
|
-
if (
|
|
17390
|
-
if (e === "caught-up" && (
|
|
17391
|
-
|
|
17451
|
+
if (vt) return;
|
|
17452
|
+
if (e === "caught-up" && (yt.value = !1, an()), jt.isActive.value) {
|
|
17453
|
+
Ct = void 0, wt = !1, Tt = 0, Ot(_x);
|
|
17392
17454
|
return;
|
|
17393
17455
|
}
|
|
17394
|
-
|
|
17395
|
-
let t = Date.now() -
|
|
17396
|
-
if (e === "caught-up" && t >= (
|
|
17397
|
-
|
|
17456
|
+
Ct === void 0 && (Ct = Date.now(), wt = !!jt.error.value);
|
|
17457
|
+
let t = Date.now() - Ct;
|
|
17458
|
+
if (e === "caught-up" && t >= (wt ? yx : vx) || t >= bx) {
|
|
17459
|
+
Dt(), on();
|
|
17398
17460
|
return;
|
|
17399
17461
|
}
|
|
17400
|
-
let n =
|
|
17401
|
-
|
|
17462
|
+
let n = xt[Math.min(Tt, xt.length - 1)];
|
|
17463
|
+
Tt += 1, Ot(n);
|
|
17402
17464
|
}
|
|
17403
|
-
let
|
|
17404
|
-
|
|
17405
|
-
},
|
|
17465
|
+
let At = (e = 1200) => {
|
|
17466
|
+
Ot(e);
|
|
17467
|
+
}, jt = ix({
|
|
17406
17468
|
fetchGrant: async () => {
|
|
17407
|
-
let e = await
|
|
17408
|
-
deviceContext:
|
|
17409
|
-
externalContext:
|
|
17469
|
+
let e = await le.value.createVoiceSession(p.agentId, h.localChatId, {
|
|
17470
|
+
deviceContext: h.buildDeviceContext(),
|
|
17471
|
+
externalContext: h.externalContext
|
|
17410
17472
|
});
|
|
17411
|
-
return e.chatId !==
|
|
17473
|
+
return e.chatId !== h.localChatId && (h.localChatId = e.chatId), e;
|
|
17412
17474
|
},
|
|
17413
|
-
closeGrant: (e) =>
|
|
17475
|
+
closeGrant: (e) => le.value.closeVoiceSession(p.agentId, e),
|
|
17414
17476
|
onTranscript: (e) => {
|
|
17415
|
-
e.role === "user" ? (
|
|
17477
|
+
e.role === "user" ? (yt.value = !0, rn(), Pe({
|
|
17416
17478
|
id: `${hf}user-${hl()}`,
|
|
17417
17479
|
role: "user",
|
|
17418
17480
|
parts: [{
|
|
17419
17481
|
type: "text",
|
|
17420
17482
|
text: e.text
|
|
17421
17483
|
}]
|
|
17422
|
-
})) :
|
|
17484
|
+
})) : yt.value = !1;
|
|
17423
17485
|
},
|
|
17424
17486
|
onTurnEnd: () => {
|
|
17425
|
-
|
|
17487
|
+
At();
|
|
17426
17488
|
}
|
|
17427
17489
|
});
|
|
17428
|
-
I(() =>
|
|
17429
|
-
e && (
|
|
17490
|
+
I(() => jt.error.value, (e) => {
|
|
17491
|
+
e && (yt.value = !1);
|
|
17430
17492
|
});
|
|
17431
|
-
let
|
|
17432
|
-
let e =
|
|
17433
|
-
if (e) return /took too long/i.test(e) ?
|
|
17434
|
-
}),
|
|
17435
|
-
|
|
17436
|
-
},
|
|
17437
|
-
|
|
17438
|
-
},
|
|
17439
|
-
|
|
17440
|
-
},
|
|
17441
|
-
|
|
17442
|
-
},
|
|
17443
|
-
|
|
17493
|
+
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(() => {
|
|
17494
|
+
let e = jt.error.value;
|
|
17495
|
+
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");
|
|
17496
|
+
}), Ft = U(() => jt.isSpeaking.value ? "output" : "input"), It = () => jt.readLevel(Ft.value), Lt = () => jt.readSpectrum(Ft.value), zt = async () => {
|
|
17497
|
+
_t.value = !1, await jt.start(), jt.isActive.value && (Dt(), Ot(_x));
|
|
17498
|
+
}, Bt = async () => {
|
|
17499
|
+
yt.value = !1, await jt.stop(), !vt && At(0);
|
|
17500
|
+
}, Vt = () => {
|
|
17501
|
+
jt.dismissError();
|
|
17502
|
+
}, Ht = async () => {
|
|
17503
|
+
jt.dismissError(), await jt.stop(), await zt();
|
|
17504
|
+
}, 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) => {
|
|
17505
|
+
qt(t, ht(t, n)) || Me({
|
|
17444
17506
|
tool: e,
|
|
17445
|
-
toolCallId:
|
|
17507
|
+
toolCallId: Ut(t),
|
|
17446
17508
|
output: n
|
|
17447
17509
|
});
|
|
17448
|
-
},
|
|
17449
|
-
let t = e.confirmed ?
|
|
17450
|
-
|
|
17510
|
+
}, Yt = (e) => {
|
|
17511
|
+
let t = e.confirmed ? Ue("message.voiceConfirmed") : Ue("message.voiceCancelled");
|
|
17512
|
+
qt({ toolCallId: e.toolCallId }, t) ? Wt.value.has(e.toolCallId) && (Kt.value = new Map(Kt.value).set(e.toolCallId, e.confirmed)) : Me({
|
|
17451
17513
|
tool: "requestConfirm",
|
|
17452
17514
|
toolCallId: e.toolCallId,
|
|
17453
17515
|
output: e.confirmed ? "confirmed" : "cancelled"
|
|
17454
17516
|
});
|
|
17455
|
-
},
|
|
17456
|
-
|
|
17457
|
-
},
|
|
17458
|
-
let n = t.error ?
|
|
17459
|
-
|
|
17517
|
+
}, Xt = (e, t) => {
|
|
17518
|
+
qt(e, t) || (ie.value = t, G());
|
|
17519
|
+
}, Zt = (e, t) => {
|
|
17520
|
+
let n = t.error ? Ue("message.voiceLocationRefused") : Ue("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
|
|
17521
|
+
qt(e, n) || Me({
|
|
17460
17522
|
tool: "requestGeolocation",
|
|
17461
|
-
toolCallId:
|
|
17523
|
+
toolCallId: Ut(e),
|
|
17462
17524
|
output: t
|
|
17463
17525
|
});
|
|
17464
|
-
},
|
|
17465
|
-
|
|
17526
|
+
}, Qt = (e, t) => {
|
|
17527
|
+
qt(e, Ue("message.voiceConnectionDone")) || Me({
|
|
17466
17528
|
tool: "requestOAuthConnection",
|
|
17467
|
-
toolCallId:
|
|
17529
|
+
toolCallId: Ut(e),
|
|
17468
17530
|
output: {
|
|
17469
17531
|
connected: !0,
|
|
17470
17532
|
mcpServerId: t
|
|
17471
17533
|
}
|
|
17472
17534
|
});
|
|
17473
|
-
},
|
|
17474
|
-
|
|
17535
|
+
}, $t = () => {
|
|
17536
|
+
_t.value = !_t.value, jt.setMuted(_t.value);
|
|
17475
17537
|
};
|
|
17476
17538
|
ne(() => {
|
|
17477
|
-
|
|
17539
|
+
vt = !0, Dt();
|
|
17478
17540
|
});
|
|
17479
|
-
let { pendingWakeup:
|
|
17480
|
-
agentId: () =>
|
|
17481
|
-
chatId: () =>
|
|
17482
|
-
apiClient: () =>
|
|
17483
|
-
messages: () =>
|
|
17484
|
-
refreshMessages:
|
|
17485
|
-
status: () =>
|
|
17541
|
+
let { pendingWakeup: en, isStopping: tn, stop: nn, spokenTurnStarted: rn, spokenTurnsWritten: an, forgetSpokenTurns: on } = lx({
|
|
17542
|
+
agentId: () => p.agentId,
|
|
17543
|
+
chatId: () => h.localChatId,
|
|
17544
|
+
apiClient: () => le.value,
|
|
17545
|
+
messages: () => S.value,
|
|
17546
|
+
refreshMessages: X,
|
|
17547
|
+
status: () => C.value.status
|
|
17486
17548
|
});
|
|
17487
|
-
return (t,
|
|
17488
|
-
let
|
|
17549
|
+
return (t, _) => {
|
|
17550
|
+
let v = wn, y = vn;
|
|
17489
17551
|
return P(), Z("div", {
|
|
17490
17552
|
ref_key: "chatViewEl",
|
|
17491
|
-
ref:
|
|
17553
|
+
ref: et,
|
|
17492
17554
|
class: de(["pk-chatbot-view-chat", {
|
|
17493
|
-
"pk-chatbot-view-chat--dragover": E(
|
|
17494
|
-
"pk-chatbot-view-chat--empty":
|
|
17555
|
+
"pk-chatbot-view-chat--dragover": E(gt) && xe.value?.enabled,
|
|
17556
|
+
"pk-chatbot-view-chat--empty": Qe.value,
|
|
17557
|
+
"pk-chatbot-view-chat--with-preview": !!it.value && nt.value
|
|
17495
17558
|
}])
|
|
17496
17559
|
}, [
|
|
17497
17560
|
F(K, {
|
|
17498
17561
|
name: "pk-chatbot-view-chat-fade",
|
|
17499
17562
|
mode: "out-in"
|
|
17500
17563
|
}, {
|
|
17501
|
-
default: B(() => [
|
|
17564
|
+
default: B(() => [Qe.value ? (P(), L(Ub, {
|
|
17502
17565
|
key: 0,
|
|
17503
|
-
greeting: E(
|
|
17504
|
-
logo: E(
|
|
17505
|
-
name: E(
|
|
17566
|
+
greeting: E($e),
|
|
17567
|
+
logo: E(g)?.logo,
|
|
17568
|
+
name: E(h).name
|
|
17506
17569
|
}, null, 8, [
|
|
17507
17570
|
"greeting",
|
|
17508
17571
|
"logo",
|
|
@@ -17511,48 +17574,48 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17511
17574
|
key: 1,
|
|
17512
17575
|
class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
|
|
17513
17576
|
interactive: "",
|
|
17514
|
-
messages: E(
|
|
17515
|
-
"confirm-verdicts-on-call":
|
|
17516
|
-
status: E(
|
|
17517
|
-
error: E(
|
|
17518
|
-
"main-color": E(
|
|
17519
|
-
"text-color": E(
|
|
17520
|
-
"revised-answers": E(
|
|
17521
|
-
actions: E(
|
|
17522
|
-
"message-feedbacks": E(
|
|
17523
|
-
"feedback-message-id": E(
|
|
17524
|
-
"feedback-loading": E(
|
|
17525
|
-
"feedback-submitted": E(
|
|
17526
|
-
"feedback-error": E(
|
|
17527
|
-
"show-extended-steps": E(
|
|
17528
|
-
"hide-reasoning": E(
|
|
17529
|
-
"awaiting-spoken-answer":
|
|
17530
|
-
"host-working":
|
|
17531
|
-
"host-confirmation": E(
|
|
17532
|
-
"is-dark": E(
|
|
17577
|
+
messages: E(S),
|
|
17578
|
+
"confirm-verdicts-on-call": Kt.value,
|
|
17579
|
+
status: E(C).status,
|
|
17580
|
+
error: E(C).error,
|
|
17581
|
+
"main-color": E(g)?.mainColor,
|
|
17582
|
+
"text-color": E(g)?.textColor,
|
|
17583
|
+
"revised-answers": E(x),
|
|
17584
|
+
actions: E(b),
|
|
17585
|
+
"message-feedbacks": E(ee),
|
|
17586
|
+
"feedback-message-id": E(w)?.id,
|
|
17587
|
+
"feedback-loading": E(D),
|
|
17588
|
+
"feedback-submitted": E(O),
|
|
17589
|
+
"feedback-error": E(k),
|
|
17590
|
+
"show-extended-steps": E(g)?.showExtendedSteps,
|
|
17591
|
+
"hide-reasoning": E(g)?.showReasoning === !1,
|
|
17592
|
+
"awaiting-spoken-answer": yt.value,
|
|
17593
|
+
"host-working": We.value,
|
|
17594
|
+
"host-confirmation": E(he),
|
|
17595
|
+
"is-dark": E(ue),
|
|
17533
17596
|
"show-scroll-to-bottom": e.modifier === "fullscreen",
|
|
17534
|
-
onFeedbackSubmit:
|
|
17535
|
-
onFeedbackClose:
|
|
17536
|
-
onRegenerate: E(
|
|
17537
|
-
onAutoRetry: E(
|
|
17538
|
-
onResetChat: E(
|
|
17539
|
-
onShowInfo:
|
|
17540
|
-
onRevise:
|
|
17541
|
-
onUpvote: E(
|
|
17542
|
-
onDownvote: E(
|
|
17543
|
-
onFeedback: E(
|
|
17544
|
-
onApprovalRespond: E(
|
|
17545
|
-
onConfirmRespond:
|
|
17546
|
-
onHostConfirmRespond: E(
|
|
17597
|
+
onFeedbackSubmit: _[0] ||= (e) => E(ke)(e),
|
|
17598
|
+
onFeedbackClose: _[1] ||= (e) => w.value = void 0,
|
|
17599
|
+
onRegenerate: E(Te),
|
|
17600
|
+
onAutoRetry: E(Te),
|
|
17601
|
+
onResetChat: E(je),
|
|
17602
|
+
onShowInfo: _[2] ||= (e) => m("show-info", e),
|
|
17603
|
+
onRevise: _[3] ||= (e) => m("revise", e),
|
|
17604
|
+
onUpvote: E(Ee),
|
|
17605
|
+
onDownvote: E(De),
|
|
17606
|
+
onFeedback: E(Oe),
|
|
17607
|
+
onApprovalRespond: E(J),
|
|
17608
|
+
onConfirmRespond: Yt,
|
|
17609
|
+
onHostConfirmRespond: E(Re)
|
|
17547
17610
|
}, {
|
|
17548
17611
|
"tool-showContactForm": B(({ part: e }) => [F(E(r), {
|
|
17549
17612
|
part: e,
|
|
17550
|
-
readonly: !E(
|
|
17551
|
-
submitted: E(
|
|
17552
|
-
loading: E(
|
|
17553
|
-
error: E(
|
|
17554
|
-
"privacy-policy-notice": E(
|
|
17555
|
-
onSubmit: E(
|
|
17613
|
+
readonly: !E(oe),
|
|
17614
|
+
submitted: E(te),
|
|
17615
|
+
loading: E(re),
|
|
17616
|
+
error: E(A),
|
|
17617
|
+
"privacy-policy-notice": E(g)?.privacyPolicyNotice,
|
|
17618
|
+
onSubmit: E(Ae)
|
|
17556
17619
|
}, null, 8, [
|
|
17557
17620
|
"part",
|
|
17558
17621
|
"readonly",
|
|
@@ -17564,18 +17627,18 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17564
17627
|
])]),
|
|
17565
17628
|
"tool-showSuggestedReply": B(({ part: e }) => [F(E(i), {
|
|
17566
17629
|
part: e,
|
|
17567
|
-
onSelect: (t) =>
|
|
17630
|
+
onSelect: (t) => Xt(e, t)
|
|
17568
17631
|
}, null, 8, ["part", "onSelect"])]),
|
|
17569
17632
|
"tool-showSources": B(({ part: e }) => [F(E(a), {
|
|
17570
17633
|
part: e,
|
|
17571
|
-
"on-expand-context":
|
|
17572
|
-
"on-download":
|
|
17634
|
+
"on-expand-context": pt,
|
|
17635
|
+
"on-download": mt
|
|
17573
17636
|
}, null, 8, ["part"])]),
|
|
17574
17637
|
"tool-showForm": B(({ part: e }) => [F(K, { mode: "out-in" }, {
|
|
17575
17638
|
default: B(() => [F(E(n), {
|
|
17576
17639
|
part: e,
|
|
17577
|
-
answered:
|
|
17578
|
-
onSelect: (t) =>
|
|
17640
|
+
answered: Gt(e),
|
|
17641
|
+
onSelect: (t) => Jt("showForm", e, t)
|
|
17579
17642
|
}, null, 8, [
|
|
17580
17643
|
"part",
|
|
17581
17644
|
"answered",
|
|
@@ -17587,8 +17650,8 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17587
17650
|
default: B(() => [F(E(n), {
|
|
17588
17651
|
part: e,
|
|
17589
17652
|
"allow-custom-answer": "",
|
|
17590
|
-
answered:
|
|
17591
|
-
onSelect: (t) =>
|
|
17653
|
+
answered: Gt(e),
|
|
17654
|
+
onSelect: (t) => Jt("showMultipleChoice", e, t)
|
|
17592
17655
|
}, null, 8, [
|
|
17593
17656
|
"part",
|
|
17594
17657
|
"answered",
|
|
@@ -17598,10 +17661,10 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17598
17661
|
}, 1024)]),
|
|
17599
17662
|
"tool-requestOAuthConnection": B(({ part: e }) => [F(E(s), {
|
|
17600
17663
|
part: e,
|
|
17601
|
-
"backend-url": E(
|
|
17602
|
-
"resolve-connection": (e) => E(
|
|
17603
|
-
"check-connection": (e) => E(
|
|
17604
|
-
onConnected: (t) =>
|
|
17664
|
+
"backend-url": E(oe),
|
|
17665
|
+
"resolve-connection": (e) => E(le).getOAuthAuthorizeUrl(p.agentId, e),
|
|
17666
|
+
"check-connection": (e) => E(le).getOAuthConnectionStatus(p.agentId, e),
|
|
17667
|
+
onConnected: (t) => Qt(e, t)
|
|
17605
17668
|
}, null, 8, [
|
|
17606
17669
|
"part",
|
|
17607
17670
|
"backend-url",
|
|
@@ -17611,9 +17674,9 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17611
17674
|
])]),
|
|
17612
17675
|
"tool-requestGeolocation": B(({ part: e }) => [F(E(o), {
|
|
17613
17676
|
part: e,
|
|
17614
|
-
"call-live": E(
|
|
17615
|
-
"reverse-geocode": (e, t) => E(
|
|
17616
|
-
onResult: (t) =>
|
|
17677
|
+
"call-live": E(jt).isActive.value,
|
|
17678
|
+
"reverse-geocode": (e, t) => E(le).reverseGeocode(e, t),
|
|
17679
|
+
onResult: (t) => Zt(e, t)
|
|
17617
17680
|
}, null, 8, [
|
|
17618
17681
|
"part",
|
|
17619
17682
|
"call-live",
|
|
@@ -17622,9 +17685,9 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17622
17685
|
])]),
|
|
17623
17686
|
"tool-showLocation": B(({ part: e }) => [F(E(c), {
|
|
17624
17687
|
part: e,
|
|
17625
|
-
"is-dark": E(
|
|
17626
|
-
"main-color": E(
|
|
17627
|
-
"forward-geocode": (e, t) => E(
|
|
17688
|
+
"is-dark": E(ue),
|
|
17689
|
+
"main-color": E(g)?.mainColor,
|
|
17690
|
+
"forward-geocode": (e, t) => E(le).forwardGeocode(e, t)
|
|
17628
17691
|
}, null, 8, [
|
|
17629
17692
|
"part",
|
|
17630
17693
|
"is-dark",
|
|
@@ -17633,42 +17696,44 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17633
17696
|
])]),
|
|
17634
17697
|
"tool-showDiagram": B(({ part: e }) => [F(E(l), {
|
|
17635
17698
|
part: e,
|
|
17636
|
-
"is-dark": E(
|
|
17699
|
+
"is-dark": E(ue)
|
|
17637
17700
|
}, null, 8, ["part", "is-dark"])]),
|
|
17638
17701
|
"tool-editSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
|
|
17639
17702
|
key: E(dt)(e),
|
|
17640
17703
|
part: e,
|
|
17641
|
-
"file-url":
|
|
17704
|
+
"file-url": Se
|
|
17642
17705
|
}, null, 8, ["part"]))]),
|
|
17643
17706
|
"tool-editWordDocument": B(({ part: e }) => [(P(), L(E(u), {
|
|
17644
17707
|
key: E(dt)(e),
|
|
17645
17708
|
part: e,
|
|
17646
|
-
"file-url":
|
|
17709
|
+
"file-url": Se,
|
|
17710
|
+
preview: lt
|
|
17647
17711
|
}, null, 8, ["part"]))]),
|
|
17648
17712
|
"tool-createSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
|
|
17649
17713
|
key: E(dt)(e),
|
|
17650
17714
|
part: e,
|
|
17651
|
-
"file-url":
|
|
17715
|
+
"file-url": Se
|
|
17652
17716
|
}, null, 8, ["part"]))]),
|
|
17653
17717
|
"tool-createWordDocument": B(({ part: e }) => [(P(), L(E(u), {
|
|
17654
17718
|
key: E(dt)(e),
|
|
17655
17719
|
part: e,
|
|
17656
|
-
"file-url":
|
|
17720
|
+
"file-url": Se,
|
|
17721
|
+
preview: lt
|
|
17657
17722
|
}, null, 8, ["part"]))]),
|
|
17658
17723
|
"tool-shareDocument": B(({ part: e }) => [(P(), L(E(d), {
|
|
17659
17724
|
key: E(dt)(e),
|
|
17660
17725
|
part: e,
|
|
17661
|
-
"on-download":
|
|
17726
|
+
"on-download": mt
|
|
17662
17727
|
}, null, 8, ["part"]))]),
|
|
17663
17728
|
_: 1
|
|
17664
17729
|
}, 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(".")))]),
|
|
17665
17730
|
_: 1
|
|
17666
17731
|
}),
|
|
17667
|
-
E(
|
|
17732
|
+
E(ve).length ? (P(), L(Vb, {
|
|
17668
17733
|
key: 0,
|
|
17669
|
-
messages: E(
|
|
17670
|
-
onEdit: E(
|
|
17671
|
-
onRemove: E(
|
|
17734
|
+
messages: E(ve),
|
|
17735
|
+
onEdit: E(ze),
|
|
17736
|
+
onRemove: E(Be)
|
|
17672
17737
|
}, null, 8, [
|
|
17673
17738
|
"messages",
|
|
17674
17739
|
"onEdit",
|
|
@@ -17676,57 +17741,57 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17676
17741
|
])) : q("", !0),
|
|
17677
17742
|
H("div", ux, [
|
|
17678
17743
|
F(K, { name: "pk-chatbot-view-chat-fade" }, {
|
|
17679
|
-
default: B(() => [
|
|
17744
|
+
default: B(() => [Qe.value ? (P(), L(q_, {
|
|
17680
17745
|
key: 0,
|
|
17681
17746
|
class: "pk-chatbot-view-chat__aurora",
|
|
17682
17747
|
"source-selector": ".pk-chatbot-input__form"
|
|
17683
17748
|
})) : q("", !0)]),
|
|
17684
17749
|
_: 1
|
|
17685
17750
|
}),
|
|
17686
|
-
E(
|
|
17751
|
+
E(en) && !E(ae) ? (P(), L(rx, {
|
|
17687
17752
|
key: 0,
|
|
17688
|
-
pending: E(
|
|
17689
|
-
stopping: E(
|
|
17690
|
-
onStop: E(
|
|
17753
|
+
pending: E(en),
|
|
17754
|
+
stopping: E(tn),
|
|
17755
|
+
onStop: E(nn)
|
|
17691
17756
|
}, null, 8, [
|
|
17692
17757
|
"pending",
|
|
17693
17758
|
"stopping",
|
|
17694
17759
|
"onStop"
|
|
17695
17760
|
])) : q("", !0),
|
|
17696
|
-
E(
|
|
17761
|
+
E(ae) ? (P(), Z("div", dx, N(E(Ue)("message.chatErrorConversationBlocked")), 1)) : Nt.value === "idle" ? (P(), L(Ib, {
|
|
17697
17762
|
key: 3,
|
|
17698
17763
|
ref_key: "inputEl",
|
|
17699
|
-
ref:
|
|
17700
|
-
modelValue: E(
|
|
17701
|
-
"onUpdate:modelValue":
|
|
17702
|
-
"pending-attachments": E(
|
|
17703
|
-
"onUpdate:pendingAttachments":
|
|
17704
|
-
placeholder: E(
|
|
17705
|
-
"dismissable-notice": E(
|
|
17706
|
-
"page-notice":
|
|
17707
|
-
status:
|
|
17708
|
-
"max-message-length": E(
|
|
17709
|
-
"file-upload":
|
|
17710
|
-
"attachment-limit-reached": E(
|
|
17711
|
-
"attachment-notice":
|
|
17712
|
-
"voice-enabled":
|
|
17713
|
-
"queue-enabled": E(
|
|
17714
|
-
"answer-notices":
|
|
17715
|
-
onStopGeneration: E(
|
|
17716
|
-
onSubmit: E(
|
|
17717
|
-
onFileSelect: E(
|
|
17718
|
-
onDismissAttachmentNotice: E(
|
|
17719
|
-
onDismissPageNotice: E(
|
|
17720
|
-
onOpenAnswerNotice: E(
|
|
17721
|
-
onDismissAnswerNotice: E(
|
|
17722
|
-
onVoiceStart:
|
|
17764
|
+
ref: be,
|
|
17765
|
+
modelValue: E(ie),
|
|
17766
|
+
"onUpdate:modelValue": _[4] ||= (e) => Ce(ie) ? ie.value = e : null,
|
|
17767
|
+
"pending-attachments": E(M),
|
|
17768
|
+
"onUpdate:pendingAttachments": _[5] ||= (e) => Ce(M) ? M.value = e : null,
|
|
17769
|
+
placeholder: E(j),
|
|
17770
|
+
"dismissable-notice": E(Xe) && E(C).messages.length <= 1 ? E(Xe) : void 0,
|
|
17771
|
+
"page-notice": qe.value,
|
|
17772
|
+
status: Ge.value,
|
|
17773
|
+
"max-message-length": E(g)?.maxMessageLength,
|
|
17774
|
+
"file-upload": xe.value,
|
|
17775
|
+
"attachment-limit-reached": E(se),
|
|
17776
|
+
"attachment-notice": Je.value,
|
|
17777
|
+
"voice-enabled": Mt.value,
|
|
17778
|
+
"queue-enabled": E(_e),
|
|
17779
|
+
"answer-notices": Ye.value,
|
|
17780
|
+
onStopGeneration: E(we),
|
|
17781
|
+
onSubmit: E(G),
|
|
17782
|
+
onFileSelect: E(Y),
|
|
17783
|
+
onDismissAttachmentNotice: E(Ne),
|
|
17784
|
+
onDismissPageNotice: E(Ie),
|
|
17785
|
+
onOpenAnswerNotice: E(Ve),
|
|
17786
|
+
onDismissAnswerNotice: E(He),
|
|
17787
|
+
onVoiceStart: zt
|
|
17723
17788
|
}, ge({ _: 2 }, [e.modifier === "fullscreen" ? {
|
|
17724
17789
|
name: "prepend",
|
|
17725
17790
|
fn: B(() => [H("span", fx, [F(H_, {
|
|
17726
17791
|
class: "pk-chatbot-view-chat__agent-chip-avatar",
|
|
17727
|
-
"img-src": E(
|
|
17728
|
-
name: E(
|
|
17729
|
-
}, null, 8, ["img-src", "name"]), E(
|
|
17792
|
+
"img-src": E(g)?.logo,
|
|
17793
|
+
name: E(h).name
|
|
17794
|
+
}, null, 8, ["img-src", "name"]), E(h).name ? (P(), Z("strong", px, N(E(h).name), 1)) : q("", !0)])]),
|
|
17730
17795
|
key: "0"
|
|
17731
17796
|
} : void 0]), 1032, [
|
|
17732
17797
|
"modelValue",
|
|
@@ -17751,19 +17816,19 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17751
17816
|
"onDismissAnswerNotice"
|
|
17752
17817
|
])) : (P(), L($b, {
|
|
17753
17818
|
key: 2,
|
|
17754
|
-
state:
|
|
17755
|
-
sample:
|
|
17756
|
-
spectrum:
|
|
17757
|
-
"remaining-seconds": E(
|
|
17758
|
-
muted:
|
|
17759
|
-
error:
|
|
17760
|
-
"raw-error": E(
|
|
17761
|
-
live: E(
|
|
17819
|
+
state: Nt.value,
|
|
17820
|
+
sample: It,
|
|
17821
|
+
spectrum: Lt,
|
|
17822
|
+
"remaining-seconds": E(jt).remainingSeconds.value,
|
|
17823
|
+
muted: _t.value,
|
|
17824
|
+
error: Pt.value,
|
|
17825
|
+
"raw-error": E(jt).error.value,
|
|
17826
|
+
live: E(jt).isActive.value,
|
|
17762
17827
|
class: "pk-chatbot-view-chat__voice",
|
|
17763
|
-
onToggleMute:
|
|
17764
|
-
onHangUp:
|
|
17765
|
-
onRetry:
|
|
17766
|
-
onDismiss:
|
|
17828
|
+
onToggleMute: $t,
|
|
17829
|
+
onHangUp: Bt,
|
|
17830
|
+
onRetry: Ht,
|
|
17831
|
+
onDismiss: Vt
|
|
17767
17832
|
}, null, 8, [
|
|
17768
17833
|
"state",
|
|
17769
17834
|
"remaining-seconds",
|
|
@@ -17774,35 +17839,83 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
|
|
|
17774
17839
|
]))
|
|
17775
17840
|
]),
|
|
17776
17841
|
F(K, null, {
|
|
17777
|
-
default: B(() => [E(
|
|
17842
|
+
default: B(() => [E(gt) && xe.value?.enabled ? (P(), Z("div", mx, [F(v, {
|
|
17778
17843
|
name: "ri:upload-cloud-2-line",
|
|
17779
17844
|
class: "pk-chatbot-view-chat__drop-overlay-icon"
|
|
17780
|
-
}), H("span", null, N(E(
|
|
17845
|
+
}), H("span", null, N(E(Ue)("action.dropFile")), 1)])) : q("", !0)]),
|
|
17781
17846
|
_: 1
|
|
17782
|
-
})
|
|
17847
|
+
}),
|
|
17848
|
+
it.value && nt.value ? (P(), Z("aside", hx, [F(E(f), {
|
|
17849
|
+
closable: "",
|
|
17850
|
+
filename: it.value.filename,
|
|
17851
|
+
version: it.value.version,
|
|
17852
|
+
"download-url": Se(it.value.storedFileName),
|
|
17853
|
+
preview: at.value,
|
|
17854
|
+
loading: ot.value,
|
|
17855
|
+
error: st.value,
|
|
17856
|
+
onClose: ut
|
|
17857
|
+
}, null, 8, [
|
|
17858
|
+
"filename",
|
|
17859
|
+
"version",
|
|
17860
|
+
"download-url",
|
|
17861
|
+
"preview",
|
|
17862
|
+
"loading",
|
|
17863
|
+
"error"
|
|
17864
|
+
])])) : q("", !0),
|
|
17865
|
+
it.value && !nt.value ? (P(), L(y, {
|
|
17866
|
+
key: 2,
|
|
17867
|
+
modelValue: ft.value,
|
|
17868
|
+
"onUpdate:modelValue": _[6] ||= (e) => ft.value = e,
|
|
17869
|
+
title: it.value.filename,
|
|
17870
|
+
"label-close": E(Ue)("chatFilePreview.close"),
|
|
17871
|
+
modifiers: rt.value ? "fullscreen" : void 0,
|
|
17872
|
+
class: "pk-chatbot-view-chat__preview-dialog"
|
|
17873
|
+
}, {
|
|
17874
|
+
default: B(() => [F(E(f), {
|
|
17875
|
+
filename: it.value.filename,
|
|
17876
|
+
version: it.value.version,
|
|
17877
|
+
"download-url": Se(it.value.storedFileName),
|
|
17878
|
+
preview: at.value,
|
|
17879
|
+
loading: ot.value,
|
|
17880
|
+
error: st.value
|
|
17881
|
+
}, null, 8, [
|
|
17882
|
+
"filename",
|
|
17883
|
+
"version",
|
|
17884
|
+
"download-url",
|
|
17885
|
+
"preview",
|
|
17886
|
+
"loading",
|
|
17887
|
+
"error"
|
|
17888
|
+
])]),
|
|
17889
|
+
_: 1
|
|
17890
|
+
}, 8, [
|
|
17891
|
+
"modelValue",
|
|
17892
|
+
"title",
|
|
17893
|
+
"label-close",
|
|
17894
|
+
"modifiers"
|
|
17895
|
+
])) : q("", !0)
|
|
17783
17896
|
], 2);
|
|
17784
17897
|
};
|
|
17785
17898
|
}
|
|
17786
|
-
}), [["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)}"]]]);
|
|
17899
|
+
}), [["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)}"]]]);
|
|
17787
17900
|
// ../../packages/components/src/chat/PkChatbotViewConversations.vue?vue&type=script&setup=true&lang.ts
|
|
17788
17901
|
G(), R(), Y(), De();
|
|
17789
|
-
var
|
|
17902
|
+
var Sx = { class: "flex flex-col flex-1 min-h-0 relative" }, Cx = {
|
|
17790
17903
|
key: 0,
|
|
17791
17904
|
class: "vv-item-group vv-item-group--fill"
|
|
17792
|
-
},
|
|
17905
|
+
}, wx = { class: "vv-item-group__list" }, Tx = { class: "vv-item__entry" }, Ex = { class: "flex flex-col gap-6 flex-1 min-w-0" }, Dx = {
|
|
17793
17906
|
key: 1,
|
|
17794
17907
|
class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
|
|
17795
|
-
},
|
|
17908
|
+
}, 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 = {
|
|
17796
17909
|
key: 2,
|
|
17797
17910
|
class: "vv-item-group vv-item-group--fill"
|
|
17798
|
-
},
|
|
17911
|
+
}, Nx = { class: "vv-item-group__list overflow-y-auto pb-64 light-scrollbar" }, Px = {
|
|
17799
17912
|
key: 0,
|
|
17800
17913
|
class: "flex flex-1 items-center gap-8 min-w-0 px-md py-12"
|
|
17801
|
-
},
|
|
17914
|
+
}, 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 = {
|
|
17802
17915
|
key: 3,
|
|
17803
17916
|
class: "absolute bottom-0 left-0 right-0 flex flex-col items-center gap-4 px-16 pb-16 pt-32 pointer-events-none",
|
|
17804
17917
|
style: { background: "linear-gradient(to top, var(--color-surface) 55%, transparent)" }
|
|
17805
|
-
},
|
|
17918
|
+
}, Hx = /* @__PURE__ */ J({
|
|
17806
17919
|
__name: "PkChatbotViewConversations",
|
|
17807
17920
|
props: { agentId: { type: String } },
|
|
17808
17921
|
setup(e) {
|
|
@@ -17831,19 +17944,19 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17831
17944
|
};
|
|
17832
17945
|
return (e, t) => {
|
|
17833
17946
|
let r = wn, o = En, c = bn, u = _n, d = xn, m = Tn;
|
|
17834
|
-
return P(), Z("div",
|
|
17947
|
+
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", {
|
|
17835
17948
|
key: e,
|
|
17836
17949
|
class: "vv-item vv-item--roomy vv-item--plain"
|
|
17837
|
-
}, [H("div",
|
|
17950
|
+
}, [H("div", Tx, [H("div", Ex, [
|
|
17838
17951
|
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),
|
|
17839
17952
|
t[6] ||= H("div", { class: "vv-skeleton h-12 rounded" }, [H("div", { class: "vv-skeleton__item" })], -1),
|
|
17840
17953
|
t[7] ||= H("div", { class: "vv-skeleton h-12 rounded w-160" }, [H("div", { class: "vv-skeleton__item" })], -1)
|
|
17841
|
-
])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div",
|
|
17842
|
-
H("div",
|
|
17954
|
+
])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div", Dx, [
|
|
17955
|
+
H("div", Ox, [F(r, {
|
|
17843
17956
|
name: "ri:chat-3-line",
|
|
17844
17957
|
class: "w-28 h-28 text-word-4"
|
|
17845
17958
|
})]),
|
|
17846
|
-
H("div",
|
|
17959
|
+
H("div", kx, [H("strong", Ax, N(E(n)("message.noConversations")), 1), H("span", jx, N(E(n)("message.noConversationsHint")), 1)]),
|
|
17847
17960
|
F(o, {
|
|
17848
17961
|
modifiers: "primary rounded",
|
|
17849
17962
|
icon: "ri:add-line",
|
|
@@ -17851,10 +17964,10 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17851
17964
|
label: E(n)("action.startNewChat"),
|
|
17852
17965
|
onClick: t[0] ||= (e) => E(l)()
|
|
17853
17966
|
}, null, 8, ["label"])
|
|
17854
|
-
])) : (P(), Z("div",
|
|
17967
|
+
])) : (P(), Z("div", Mx, [H("ul", Nx, [(P(!0), Z(V, null, w(E(i), (e) => (P(), Z("li", {
|
|
17855
17968
|
key: e.id,
|
|
17856
17969
|
class: de(["vv-item vv-item--roomy", { "vv-item--current": b(e) }])
|
|
17857
|
-
}, [E(f) === e.id ? (P(), Z("div",
|
|
17970
|
+
}, [E(f) === e.id ? (P(), Z("div", Px, [F(c, {
|
|
17858
17971
|
modelValue: E(p),
|
|
17859
17972
|
"onUpdate:modelValue": t[1] ||= (e) => Ce(p) ? p.value = e : null,
|
|
17860
17973
|
class: "flex-1 mb-0",
|
|
@@ -17888,8 +18001,8 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17888
18001
|
class: "vv-item__entry",
|
|
17889
18002
|
"aria-current": b(e) ? "true" : void 0,
|
|
17890
18003
|
onClick: (t) => y(e.id)
|
|
17891
|
-
}, [H("div",
|
|
17892
|
-
H("strong",
|
|
18004
|
+
}, [H("div", Ix, [H("div", Lx, [
|
|
18005
|
+
H("strong", Rx, N(E(sn)(e.title) || x(e.messages, "assistant")), 1),
|
|
17893
18006
|
E(s).includes(e.id) ? (P(), L(r, {
|
|
17894
18007
|
key: 0,
|
|
17895
18008
|
name: "loading-loop",
|
|
@@ -17902,7 +18015,7 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17902
18015
|
class: "text-word-4 text-smaller shrink-0",
|
|
17903
18016
|
date: e.lastMessageAt
|
|
17904
18017
|
}, null, 8, ["date"])
|
|
17905
|
-
]), H("span",
|
|
18018
|
+
]), 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 }, {
|
|
17906
18019
|
placement: "bottom-end",
|
|
17907
18020
|
modifiers: "menu",
|
|
17908
18021
|
flip: !0,
|
|
@@ -17922,7 +18035,7 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17922
18035
|
modifiers: "action-quiet-small"
|
|
17923
18036
|
}, null, 8, ["title"])]),
|
|
17924
18037
|
_: 2
|
|
17925
|
-
}, 1040)])], 64))], 2))), 128))])])), E(i).length > 0 ? (P(), Z("div",
|
|
18038
|
+
}, 1040)])], 64))], 2))), 128))])])), E(i).length > 0 ? (P(), Z("div", Vx, [F(o, {
|
|
17926
18039
|
class: "text-14 pointer-events-auto",
|
|
17927
18040
|
modifiers: "primary rounded",
|
|
17928
18041
|
icon: "ri:add-line",
|
|
@@ -17947,16 +18060,16 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
|
|
|
17947
18060
|
});
|
|
17948
18061
|
// ../../packages/components/src/chat/PkChatbotViewFiles.vue?vue&type=script&setup=true&lang.ts
|
|
17949
18062
|
G(), R(), Y();
|
|
17950
|
-
var
|
|
18063
|
+
var Ux = { class: "flex flex-col flex-1 min-h-0 relative" }, Wx = {
|
|
17951
18064
|
key: 0,
|
|
17952
18065
|
class: "vv-item-group vv-item-group--fill"
|
|
17953
|
-
},
|
|
18066
|
+
}, Gx = { class: "vv-item-group__list" }, Kx = { class: "vv-item__entry" }, qx = { class: "flex flex-col gap-6 flex-1 min-w-0" }, Jx = {
|
|
17954
18067
|
key: 1,
|
|
17955
18068
|
class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
|
|
17956
|
-
},
|
|
18069
|
+
}, 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 = {
|
|
17957
18070
|
key: 2,
|
|
17958
18071
|
class: "vv-item-group vv-item-group--fill"
|
|
17959
|
-
},
|
|
18072
|
+
}, 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({
|
|
17960
18073
|
__name: "PkChatbotViewFiles",
|
|
17961
18074
|
props: { agentId: { type: String } },
|
|
17962
18075
|
setup(e) {
|
|
@@ -17975,13 +18088,13 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
|
|
|
17975
18088
|
};
|
|
17976
18089
|
return (e, t) => {
|
|
17977
18090
|
let r = wn, i = En;
|
|
17978
|
-
return P(), Z("div",
|
|
18091
|
+
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", {
|
|
17979
18092
|
key: e,
|
|
17980
18093
|
class: "vv-item vv-item--roomy vv-item--plain"
|
|
17981
|
-
}, [H("div",
|
|
18094
|
+
}, [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, {
|
|
17982
18095
|
name: "ri:folder-open-line",
|
|
17983
18096
|
class: "w-28 h-28 text-word-4"
|
|
17984
|
-
})]), H("span",
|
|
18097
|
+
})]), 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", {
|
|
17985
18098
|
key: e.documentId,
|
|
17986
18099
|
class: "vv-item vv-item--roomy"
|
|
17987
18100
|
}, [H("button", {
|
|
@@ -17989,7 +18102,7 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
|
|
|
17989
18102
|
class: "vv-item__entry",
|
|
17990
18103
|
title: E(n)("userFiles.open"),
|
|
17991
18104
|
onClick: (t) => E(u)(e)
|
|
17992
|
-
}, [H("span",
|
|
18105
|
+
}, [H("span", eS, [E(s)(e) ? (P(), Z("img", {
|
|
17993
18106
|
key: 0,
|
|
17994
18107
|
src: E(c)(e),
|
|
17995
18108
|
loading: "lazy",
|
|
@@ -17997,10 +18110,10 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
|
|
|
17997
18110
|
alt: "",
|
|
17998
18111
|
class: "pk-chatbot-files__thumb",
|
|
17999
18112
|
onError: (t) => E(l)(e)
|
|
18000
|
-
}, null, 40,
|
|
18113
|
+
}, null, 40, tS)) : (P(), L(r, {
|
|
18001
18114
|
key: 1,
|
|
18002
18115
|
name: E(on)(e.mimeType)
|
|
18003
|
-
}, null, 8, ["name"]))]), H("span",
|
|
18116
|
+
}, 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, {
|
|
18004
18117
|
modifiers: "action-quiet-small",
|
|
18005
18118
|
icon: "ri:download-line",
|
|
18006
18119
|
title: E(n)("action.download"),
|
|
@@ -18023,16 +18136,16 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
|
|
|
18023
18136
|
}), [["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)}"]]]);
|
|
18024
18137
|
// ../../packages/components/src/chat/PkChatbotViewProfile.vue?vue&type=script&setup=true&lang.ts
|
|
18025
18138
|
G(), R(), Y();
|
|
18026
|
-
var
|
|
18139
|
+
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 = {
|
|
18027
18140
|
key: 0,
|
|
18028
18141
|
class: "text-16 font-semibold text-word-1 leading-tight"
|
|
18029
|
-
},
|
|
18142
|
+
}, dS = {
|
|
18030
18143
|
key: 1,
|
|
18031
18144
|
class: "text-12 text-word-3 leading-none"
|
|
18032
|
-
},
|
|
18145
|
+
}, 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 = {
|
|
18033
18146
|
key: 0,
|
|
18034
18147
|
class: "px-md py-sm"
|
|
18035
|
-
},
|
|
18148
|
+
}, yS = /* @__PURE__ */ J({
|
|
18036
18149
|
__name: "PkChatbotViewProfile",
|
|
18037
18150
|
props: { agentId: { type: String } },
|
|
18038
18151
|
setup(e) {
|
|
@@ -18051,13 +18164,13 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
|
|
|
18051
18164
|
}
|
|
18052
18165
|
return (e, t) => {
|
|
18053
18166
|
let a = Cn, p = wn, m = En;
|
|
18054
|
-
return P(), Z("div",
|
|
18055
|
-
H("div",
|
|
18167
|
+
return P(), Z("div", sS, [
|
|
18168
|
+
H("div", cS, [F(H_, {
|
|
18056
18169
|
class: "w-64 h-64",
|
|
18057
18170
|
name: o.value?.name ?? E(r),
|
|
18058
18171
|
"img-src": o.value?.image ?? E(i)?.logo
|
|
18059
|
-
}, null, 8, ["name", "img-src"]), H("div",
|
|
18060
|
-
H("div",
|
|
18172
|
+
}, 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)])]),
|
|
18173
|
+
H("div", fS, [d.value ? (P(), L(a, {
|
|
18061
18174
|
key: 0,
|
|
18062
18175
|
modifiers: "danger",
|
|
18063
18176
|
content: d.value
|
|
@@ -18068,17 +18181,17 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
|
|
|
18068
18181
|
rel: "noopener noreferrer",
|
|
18069
18182
|
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"
|
|
18070
18183
|
}, [
|
|
18071
|
-
H("div",
|
|
18184
|
+
H("div", mS, [F(p, {
|
|
18072
18185
|
name: "ri:user-settings-line",
|
|
18073
18186
|
class: "w-20 h-20 text-word-2"
|
|
18074
18187
|
})]),
|
|
18075
|
-
H("div",
|
|
18188
|
+
H("div", hS, [H("span", gS, N(E(n)("action.manageProfile")), 1), H("span", _S, N(E(n)("label.manageProfileDescription")), 1)]),
|
|
18076
18189
|
F(p, {
|
|
18077
18190
|
name: "ri:arrow-right-s-line",
|
|
18078
18191
|
class: "w-16 h-16 text-word-4 shrink-0"
|
|
18079
18192
|
})
|
|
18080
|
-
], 8,
|
|
18081
|
-
l.value ? q("", !0) : (P(), Z("div",
|
|
18193
|
+
], 8, pS)) : q("", !0)]),
|
|
18194
|
+
l.value ? q("", !0) : (P(), Z("div", vS, [F(m, {
|
|
18082
18195
|
modifiers: "secondary-danger",
|
|
18083
18196
|
class: "w-full",
|
|
18084
18197
|
icon: "ri:logout-box-line",
|
|
@@ -18098,13 +18211,13 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
|
|
|
18098
18211
|
});
|
|
18099
18212
|
// ../../packages/components/src/chat/PkChatbot.vue?vue&type=script&setup=true&lang.ts
|
|
18100
18213
|
G(), R(), Y();
|
|
18101
|
-
var
|
|
18214
|
+
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 = {
|
|
18102
18215
|
key: 5,
|
|
18103
18216
|
class: "pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto"
|
|
18104
|
-
},
|
|
18217
|
+
}, OS = {
|
|
18105
18218
|
key: 7,
|
|
18106
18219
|
class: "pk-chatbot__footer"
|
|
18107
|
-
},
|
|
18220
|
+
}, kS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
18108
18221
|
__name: "PkChatbot",
|
|
18109
18222
|
props: /*@__PURE__*/ ae({
|
|
18110
18223
|
baseUrl: { type: String },
|
|
@@ -18201,7 +18314,7 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18201
18314
|
key: 0,
|
|
18202
18315
|
class: "pk-chatbot__header",
|
|
18203
18316
|
style: O(fe.value ? { backgroundColor: z.value } : void 0)
|
|
18204
|
-
}, [H("div",
|
|
18317
|
+
}, [H("div", bS, [E(d) === "chat" ? re.value ? q("", !0) : (P(), L(H_, {
|
|
18205
18318
|
key: 1,
|
|
18206
18319
|
class: "pk-chatbot__avatar",
|
|
18207
18320
|
name: e.name,
|
|
@@ -18218,7 +18331,7 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18218
18331
|
class: "pk-chatbot__title",
|
|
18219
18332
|
title: be.value,
|
|
18220
18333
|
style: O(fe.value ? { color: _e.value } : void 0)
|
|
18221
|
-
}, N(be.value), 13,
|
|
18334
|
+
}, N(be.value), 13, xS)]), F(f, {
|
|
18222
18335
|
class: "pk-chatbot__header-end",
|
|
18223
18336
|
modifiers: "compact"
|
|
18224
18337
|
}, {
|
|
@@ -18309,14 +18422,14 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18309
18422
|
]),
|
|
18310
18423
|
_: 3
|
|
18311
18424
|
})], 4)),
|
|
18312
|
-
ue.value ? (P(), Z("div",
|
|
18313
|
-
default: B(() => [H("div",
|
|
18425
|
+
ue.value ? (P(), Z("div", SS, [H("div", CS, [F(p, { modifiers: "callout" }, {
|
|
18426
|
+
default: B(() => [H("div", wS, [F(s, {
|
|
18314
18427
|
name: "ri:alert-line",
|
|
18315
18428
|
class: "pk-chatbot__warning-icon"
|
|
18316
|
-
}), H("strong",
|
|
18429
|
+
}), H("strong", TS, N(E(i)("message.warning")), 1)]), H("p", ES, N(E(i)("message.reasoningAgent")), 1)]),
|
|
18317
18430
|
_: 1
|
|
18318
18431
|
})])])) : q("", !0),
|
|
18319
|
-
E(d) === "chat" ? (P(), L(
|
|
18432
|
+
E(d) === "chat" ? (P(), L(xx, {
|
|
18320
18433
|
key: 2,
|
|
18321
18434
|
"agent-id": e.agentId,
|
|
18322
18435
|
modifier: e.modifier,
|
|
@@ -18330,23 +18443,23 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18330
18443
|
"agent-id",
|
|
18331
18444
|
"modifier",
|
|
18332
18445
|
"user-name"
|
|
18333
|
-
])) : E(d) === "conversations" ? (P(), L(
|
|
18446
|
+
])) : E(d) === "conversations" ? (P(), L(Hx, {
|
|
18334
18447
|
key: 3,
|
|
18335
18448
|
"agent-id": e.agentId
|
|
18336
18449
|
}, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
|
|
18337
18450
|
name: e,
|
|
18338
18451
|
fn: B((n) => [pe(t.$slots, e, te(k(n)))])
|
|
18339
|
-
}))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(
|
|
18452
|
+
}))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(oS, {
|
|
18340
18453
|
key: 4,
|
|
18341
18454
|
"agent-id": e.agentId
|
|
18342
|
-
}, null, 8, ["agent-id"])) : E(d) === "auth" ? (P(), Z("div",
|
|
18455
|
+
}, null, 8, ["agent-id"])) : E(d) === "auth" ? (P(), Z("div", DS, [pe(t.$slots, "view-auth")])) : (P(), L(yS, {
|
|
18343
18456
|
key: 6,
|
|
18344
18457
|
"agent-id": e.agentId
|
|
18345
18458
|
}, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
|
|
18346
18459
|
name: e,
|
|
18347
18460
|
fn: B((n) => [pe(t.$slots, e, te(k(n)))])
|
|
18348
18461
|
}))]), 1032, ["agent-id"])),
|
|
18349
|
-
E(ye) ? (P(), Z("div",
|
|
18462
|
+
E(ye) ? (P(), Z("div", OS, [F(St, {
|
|
18350
18463
|
markdown: E(ye),
|
|
18351
18464
|
class: "wysiwyg"
|
|
18352
18465
|
}, null, 8, ["markdown"])])) : q("", !0)
|
|
@@ -18356,11 +18469,11 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
|
|
|
18356
18469
|
}), [["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}"]]]);
|
|
18357
18470
|
// ../../packages/components/src/chat/PkPageControlBar.vue?vue&type=script&setup=true&lang.ts
|
|
18358
18471
|
G(), Y(), De();
|
|
18359
|
-
var
|
|
18472
|
+
var AS = {
|
|
18360
18473
|
key: 0,
|
|
18361
18474
|
class: "pk-page-control-bar",
|
|
18362
18475
|
role: "status"
|
|
18363
|
-
},
|
|
18476
|
+
}, jS = { class: "pk-page-control-bar__text" }, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
18364
18477
|
__name: "PkPageControlBar",
|
|
18365
18478
|
props: {
|
|
18366
18479
|
active: { type: Boolean },
|
|
@@ -18373,7 +18486,7 @@ var OS = {
|
|
|
18373
18486
|
name: "pk-page-control-bar",
|
|
18374
18487
|
appear: ""
|
|
18375
18488
|
}, {
|
|
18376
|
-
default: B(() => [e.active ? (P(), Z("div",
|
|
18489
|
+
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", {
|
|
18377
18490
|
type: "button",
|
|
18378
18491
|
class: "pk-page-control-bar__stop",
|
|
18379
18492
|
onClick: r[0] ||= (e) => n("stop")
|
|
@@ -18384,7 +18497,7 @@ var OS = {
|
|
|
18384
18497
|
}), [["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}}"]]]);
|
|
18385
18498
|
// ../../packages/components/src/chat/PkHostCallConfirmDialog.vue?vue&type=script&setup=true&lang.ts
|
|
18386
18499
|
G(), De(), Y(), R();
|
|
18387
|
-
var
|
|
18500
|
+
var NS = 16, PS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
18388
18501
|
__name: "PkHostCallConfirmDialog",
|
|
18389
18502
|
props: {
|
|
18390
18503
|
question: { type: String },
|
|
@@ -18400,7 +18513,7 @@ var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
18400
18513
|
i.value = void 0;
|
|
18401
18514
|
return;
|
|
18402
18515
|
}
|
|
18403
|
-
let a = Math.max(
|
|
18516
|
+
let a = Math.max(NS, Math.min(n.top, window.innerHeight - e.offsetHeight - NS)), o = {
|
|
18404
18517
|
left: `${n.left}px`,
|
|
18405
18518
|
top: `${a}px`,
|
|
18406
18519
|
width: `${n.width}px`
|
|
@@ -18428,37 +18541,37 @@ var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
18428
18541
|
}), [["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}"]]]);
|
|
18429
18542
|
// src/composables/usePageModal.ts
|
|
18430
18543
|
R(), G();
|
|
18431
|
-
var
|
|
18544
|
+
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 = () => {
|
|
18432
18545
|
let e = [], t = document.activeElement;
|
|
18433
18546
|
for (; t;) e.push(t), t = t.shadowRoot?.activeElement ?? null;
|
|
18434
18547
|
return e;
|
|
18435
|
-
},
|
|
18436
|
-
let t = (t) =>
|
|
18548
|
+
}, VS = (e) => {
|
|
18549
|
+
let t = (t) => RS(t).filter((t) => !e?.(t)), n;
|
|
18437
18550
|
try {
|
|
18438
18551
|
n = t(document);
|
|
18439
|
-
let e = n.length === 0 ?
|
|
18440
|
-
for (let r = 0; n.length === 0 && e.length > 0 && r <
|
|
18552
|
+
let e = n.length === 0 ? zS(document) : [];
|
|
18553
|
+
for (let r = 0; n.length === 0 && e.length > 0 && r < IS; r++) {
|
|
18441
18554
|
let r = e.shift();
|
|
18442
|
-
n = t(r), e.push(...
|
|
18555
|
+
n = t(r), e.push(...zS(r));
|
|
18443
18556
|
}
|
|
18444
18557
|
} catch {
|
|
18445
18558
|
return null;
|
|
18446
18559
|
}
|
|
18447
|
-
let r =
|
|
18560
|
+
let r = BS();
|
|
18448
18561
|
return [...n].reverse().find((e) => r.some((t) => e.contains(t))) ?? n[n.length - 1] ?? null;
|
|
18449
18562
|
};
|
|
18450
|
-
function
|
|
18563
|
+
function HS(e) {
|
|
18451
18564
|
let t = he(null), n, r = () => {
|
|
18452
18565
|
clearInterval(n), n = void 0, t.value = null;
|
|
18453
18566
|
};
|
|
18454
18567
|
return I(() => X(e), (e) => {
|
|
18455
|
-
r(), e && (t.value =
|
|
18456
|
-
let e =
|
|
18568
|
+
r(), e && (t.value = VS(), n = setInterval(() => {
|
|
18569
|
+
let e = VS();
|
|
18457
18570
|
e !== t.value && (t.value = e);
|
|
18458
|
-
},
|
|
18571
|
+
}, FS));
|
|
18459
18572
|
}, { immediate: !0 }), be(r), t;
|
|
18460
18573
|
}
|
|
18461
|
-
var
|
|
18574
|
+
var US = () => {
|
|
18462
18575
|
for (let e of document.querySelectorAll("embedded-chat-widget, floating-chat-widget")) {
|
|
18463
18576
|
let t = e.shadowRoot?.querySelector(".pk-page-control-bar");
|
|
18464
18577
|
if (t) {
|
|
@@ -18473,16 +18586,16 @@ var VS = () => {
|
|
|
18473
18586
|
ink: "#111",
|
|
18474
18587
|
paper: "#fff"
|
|
18475
18588
|
};
|
|
18476
|
-
},
|
|
18477
|
-
let n = t.getBoundingClientRect(), r = e.offsetHeight, i = window.innerHeight - n.bottom, a =
|
|
18478
|
-
n.top <
|
|
18479
|
-
},
|
|
18589
|
+
}, WS = 48, GS = 8, KS = (e, t) => {
|
|
18590
|
+
let n = t.getBoundingClientRect(), r = e.offsetHeight, i = window.innerHeight - n.bottom, a = WS, o;
|
|
18591
|
+
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`);
|
|
18592
|
+
}, qS = 16, JS = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1, YS = (e) => {
|
|
18480
18593
|
let t = e.shadowRoot?.querySelector("div");
|
|
18481
|
-
if (!t || typeof t.animate != "function" ||
|
|
18594
|
+
if (!t || typeof t.animate != "function" || JS()) {
|
|
18482
18595
|
e.remove();
|
|
18483
18596
|
return;
|
|
18484
18597
|
}
|
|
18485
|
-
let n = t.style.getPropertyValue("--stop-from") || `-1 * ${
|
|
18598
|
+
let n = t.style.getPropertyValue("--stop-from") || `-1 * ${qS}px`;
|
|
18486
18599
|
t.animate([{
|
|
18487
18600
|
opacity: 1,
|
|
18488
18601
|
translate: "0 0",
|
|
@@ -18497,18 +18610,18 @@ var VS = () => {
|
|
|
18497
18610
|
fill: "forwards"
|
|
18498
18611
|
}).finished.then(() => e.remove(), () => e.remove());
|
|
18499
18612
|
};
|
|
18500
|
-
function
|
|
18613
|
+
function XS(e, t, n) {
|
|
18501
18614
|
let r, i, a = () => {
|
|
18502
|
-
clearInterval(i), i = void 0, r &&
|
|
18615
|
+
clearInterval(i), i = void 0, r && YS(r), r = void 0;
|
|
18503
18616
|
};
|
|
18504
18617
|
I([e, () => X(t)], ([e, t]) => {
|
|
18505
18618
|
if (a(), !e || !t) return;
|
|
18506
18619
|
r = document.createElement(tp);
|
|
18507
|
-
let o = r.attachShadow({ mode: "open" }), s = document.createElement("style"), { ink: c, paper: l } =
|
|
18620
|
+
let o = r.attachShadow({ mode: "open" }), s = document.createElement("style"), { ink: c, paper: l } = US();
|
|
18508
18621
|
s.textContent = `
|
|
18509
18622
|
:host { all: initial; }
|
|
18510
18623
|
div {
|
|
18511
|
-
position: fixed; top: ${
|
|
18624
|
+
position: fixed; top: ${WS}px; left: 50%; transform: translateX(-50%);
|
|
18512
18625
|
z-index: 2147483647; display: flex; align-items: center; gap: 12px;
|
|
18513
18626
|
max-width: min(384px, calc(100vw - 32px)); padding: 8px 8px 8px 16px;
|
|
18514
18627
|
border-radius: 9999px; background: ${c}; color: ${l};
|
|
@@ -18517,7 +18630,7 @@ function JS(e, t, n) {
|
|
|
18517
18630
|
animation: stop-in 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
|
|
18518
18631
|
}
|
|
18519
18632
|
@keyframes stop-in {
|
|
18520
|
-
from { opacity: 0; translate: 0 calc(var(--stop-from, -1 * ${
|
|
18633
|
+
from { opacity: 0; translate: 0 calc(var(--stop-from, -1 * ${qS}px)); scale: 0.96; }
|
|
18521
18634
|
}
|
|
18522
18635
|
@media (prefers-reduced-motion: reduce) {
|
|
18523
18636
|
div { animation: none; }
|
|
@@ -18533,11 +18646,11 @@ function JS(e, t, n) {
|
|
|
18533
18646
|
d.textContent = n.text();
|
|
18534
18647
|
let f = document.createElement("button");
|
|
18535
18648
|
f.type = "button", f.textContent = n.stopLabel(), f.addEventListener("click", () => n.onStop()), u.append(d, f), o.append(s, u), e.append(r);
|
|
18536
|
-
let p = () =>
|
|
18537
|
-
p(), i = setInterval(p,
|
|
18649
|
+
let p = () => KS(u, e);
|
|
18650
|
+
p(), i = setInterval(p, FS);
|
|
18538
18651
|
}, { immediate: !0 }), be(a);
|
|
18539
18652
|
}
|
|
18540
|
-
var
|
|
18653
|
+
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 = [
|
|
18541
18654
|
["position", "fixed"],
|
|
18542
18655
|
["right", "auto"],
|
|
18543
18656
|
["bottom", "auto"],
|
|
@@ -18549,30 +18662,30 @@ var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, b
|
|
|
18549
18662
|
["max-width", "none"],
|
|
18550
18663
|
["max-height", "none"],
|
|
18551
18664
|
["z-index", "2147483646"]
|
|
18552
|
-
],
|
|
18665
|
+
], iC = [
|
|
18553
18666
|
"left",
|
|
18554
18667
|
"top",
|
|
18555
18668
|
"width",
|
|
18556
18669
|
"height"
|
|
18557
|
-
],
|
|
18670
|
+
], 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) => {
|
|
18558
18671
|
let t = e.effect;
|
|
18559
18672
|
if (!t?.getKeyframes || e.playbackRate <= 0) return !1;
|
|
18560
18673
|
let { iterations: n, direction: r } = t.getComputedTiming();
|
|
18561
18674
|
if (n !== 1 || r !== "normal" && r !== "reverse") return !1;
|
|
18562
18675
|
let i = t.getKeyframes(), a = r === "reverse" ? i[0] : i[i.length - 1];
|
|
18563
18676
|
return !!a && "opacity" in a && Number(a.opacity) === 0;
|
|
18564
|
-
}),
|
|
18677
|
+
}), cC = (e) => sC(e) || [...e.children].some(sC), lC = (e, t) => e.width >= t.width * .95 && e.height >= t.height * .95, uC = (e) => {
|
|
18565
18678
|
let t = e.getBoundingClientRect();
|
|
18566
|
-
if (!
|
|
18679
|
+
if (!lC(t, {
|
|
18567
18680
|
width: window.innerWidth,
|
|
18568
18681
|
height: window.innerHeight
|
|
18569
18682
|
})) return e;
|
|
18570
18683
|
let n = (e) => {
|
|
18571
18684
|
let n = e.getBoundingClientRect();
|
|
18572
|
-
return
|
|
18685
|
+
return lC(n, t) ? 0 : n.width * n.height;
|
|
18573
18686
|
}, r = [...e.children].filter((e) => n(e) > 0).sort((e, t) => n(t) - n(e))[0];
|
|
18574
|
-
return r && !r.matches(
|
|
18575
|
-
},
|
|
18687
|
+
return r && !r.matches(tC) ? r : e;
|
|
18688
|
+
}, dC = (e) => e.isConnected && !e.closest("[inert]") && e.getBoundingClientRect().width > 0, fC = (e, t, n) => {
|
|
18576
18689
|
let r = t.shadowRoot, i = [...r?.querySelectorAll("*") ?? []].filter((e) => e.scrollTop > 0).map((e) => [e, e.scrollTop]), a = r?.activeElement, o = e;
|
|
18577
18690
|
try {
|
|
18578
18691
|
o.moveBefore(t, n);
|
|
@@ -18582,19 +18695,19 @@ var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, b
|
|
|
18582
18695
|
for (let [e, t] of i) e.scrollTop = t;
|
|
18583
18696
|
return a && r?.activeElement !== a && a.focus({ preventScroll: !0 }), !0;
|
|
18584
18697
|
};
|
|
18585
|
-
function
|
|
18698
|
+
function pC(e, t) {
|
|
18586
18699
|
let n = he(!1);
|
|
18587
|
-
if (!e || !
|
|
18700
|
+
if (!e || !aC()) return n;
|
|
18588
18701
|
let r = !1, i, a, o, s, c, l = {
|
|
18589
18702
|
x: 0,
|
|
18590
18703
|
y: 0
|
|
18591
18704
|
}, u, d = 0, f, p, m, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), _ = () => {
|
|
18592
|
-
let t = [...
|
|
18705
|
+
let t = [...rC.map(([e]) => e), ...iC].map((t) => [
|
|
18593
18706
|
t,
|
|
18594
18707
|
e.style.getPropertyValue(t),
|
|
18595
18708
|
e.style.getPropertyPriority(t)
|
|
18596
18709
|
]);
|
|
18597
|
-
for (let [t, n] of
|
|
18710
|
+
for (let [t, n] of rC) e.style.setProperty(t, n, "important");
|
|
18598
18711
|
return () => {
|
|
18599
18712
|
for (let [n, r, i] of t) r ? e.style.setProperty(n, r, i) : e.style.removeProperty(n);
|
|
18600
18713
|
};
|
|
@@ -18624,12 +18737,12 @@ function dC(e, t) {
|
|
|
18624
18737
|
opacityProperty: !0,
|
|
18625
18738
|
visibilityProperty: !0
|
|
18626
18739
|
}) === !1) return !1;
|
|
18627
|
-
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(
|
|
18740
|
+
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)));
|
|
18628
18741
|
return !!a && (e.contains(a) || i(a));
|
|
18629
18742
|
}, x = (t) => {
|
|
18630
18743
|
if (t.key !== "Escape") return;
|
|
18631
18744
|
let n = t.composedPath();
|
|
18632
|
-
n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(
|
|
18745
|
+
n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(nC)) || t.preventDefault();
|
|
18633
18746
|
}, S = () => {
|
|
18634
18747
|
u?.disconnect(), u = void 0, cancelAnimationFrame(d), e.removeEventListener("keydown", x);
|
|
18635
18748
|
let t = !!a?.contains(e) || !!i?.contains(e);
|
|
@@ -18640,16 +18753,16 @@ function dC(e, t) {
|
|
|
18640
18753
|
} : s;
|
|
18641
18754
|
if (t) {
|
|
18642
18755
|
let n = t.next?.parentNode === t.parent ? t.next : null;
|
|
18643
|
-
t.parent.isConnected && e.isConnected &&
|
|
18756
|
+
t.parent.isConnected && e.isConnected && fC(t.parent, e, n) || t.parent.insertBefore(e, n);
|
|
18644
18757
|
}
|
|
18645
18758
|
}
|
|
18646
18759
|
o?.remove(), c?.(), i = void 0, a = void 0, o = void 0, s = void 0, c = void 0, n.value = !1;
|
|
18647
18760
|
}, C = () => {
|
|
18648
|
-
let e = i, t =
|
|
18761
|
+
let e = i, t = oC(e, ...e.children).length > 0;
|
|
18649
18762
|
t ? h.delete(e) : g.add(e), S(), t && T();
|
|
18650
18763
|
}, ee = () => {
|
|
18651
18764
|
if (i && o) {
|
|
18652
|
-
if (
|
|
18765
|
+
if (dC(o)) {
|
|
18653
18766
|
if (y(), !n.value) {
|
|
18654
18767
|
if (!b()) {
|
|
18655
18768
|
C();
|
|
@@ -18660,15 +18773,15 @@ function dC(e, t) {
|
|
|
18660
18773
|
d = requestAnimationFrame(ee);
|
|
18661
18774
|
} else {
|
|
18662
18775
|
let t = i;
|
|
18663
|
-
S(),
|
|
18776
|
+
S(), dC(e) && g.add(t), T();
|
|
18664
18777
|
}
|
|
18665
18778
|
}
|
|
18666
18779
|
}, w = (t) => {
|
|
18667
|
-
let n =
|
|
18668
|
-
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(
|
|
18780
|
+
let n = uC(t), { height: r } = e.getBoundingClientRect(), f = document.createElement("div");
|
|
18781
|
+
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 = {
|
|
18669
18782
|
parent: e.parentNode,
|
|
18670
18783
|
next: e.nextSibling
|
|
18671
|
-
}, s.parent.insertBefore(f, e), o = f, c = _(),
|
|
18784
|
+
}, s.parent.insertBefore(f, e), o = f, c = _(), fC(n, e, null) ? (i = t, a = n, l = {
|
|
18672
18785
|
x: 0,
|
|
18673
18786
|
y: 0
|
|
18674
18787
|
}, y(), e.addEventListener("keydown", x), u = new MutationObserver(T), u.observe(t, {
|
|
@@ -18694,27 +18807,27 @@ function dC(e, t) {
|
|
|
18694
18807
|
let t = (e) => !e.open || !e.isConnected;
|
|
18695
18808
|
for (let e of [g, h]) for (let n of e) t(n) && e.delete(n);
|
|
18696
18809
|
m && t(m.dialog) && (m = void 0);
|
|
18697
|
-
let s =
|
|
18810
|
+
let s = VS((e) => e === p), c = s && !g.has(s) && s.getBoundingClientRect().width > 0 && !cC(s) ? s : null;
|
|
18698
18811
|
if (i) {
|
|
18699
|
-
if (i === c && a?.contains(e) && i.contains(a) && o &&
|
|
18812
|
+
if (i === c && a?.contains(e) && i.contains(a) && o && dC(o)) {
|
|
18700
18813
|
n.value && !b() && C();
|
|
18701
18814
|
return;
|
|
18702
18815
|
}
|
|
18703
18816
|
S();
|
|
18704
18817
|
}
|
|
18705
|
-
c && !g.has(c) &&
|
|
18818
|
+
c && !g.has(c) && dC(e) && (h.has(c) ? w(c) : E(c));
|
|
18706
18819
|
}, E = (e) => {
|
|
18707
18820
|
if (m?.dialog === e) return;
|
|
18708
18821
|
let t = { dialog: e };
|
|
18709
18822
|
m = t;
|
|
18710
|
-
let n =
|
|
18823
|
+
let n = QS, r = () => {
|
|
18711
18824
|
if (m !== t) return;
|
|
18712
18825
|
if (--n > 0) {
|
|
18713
18826
|
requestAnimationFrame(r);
|
|
18714
18827
|
return;
|
|
18715
18828
|
}
|
|
18716
|
-
let i =
|
|
18717
|
-
Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e,
|
|
18829
|
+
let i = oC(e, ...e.children);
|
|
18830
|
+
Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e, $S))]).then(() => {
|
|
18718
18831
|
m === t && (m = void 0, h.add(e), T());
|
|
18719
18832
|
});
|
|
18720
18833
|
};
|
|
@@ -18724,7 +18837,7 @@ function dC(e, t) {
|
|
|
18724
18837
|
}, O = (e) => {
|
|
18725
18838
|
e.target instanceof HTMLDialogElement && T();
|
|
18726
18839
|
}, k = () => {
|
|
18727
|
-
r = !0, document.addEventListener("beforetoggle", D, !0), document.addEventListener("toggle", O, !0), f = setInterval(T,
|
|
18840
|
+
r = !0, document.addEventListener("beforetoggle", D, !0), document.addEventListener("toggle", O, !0), f = setInterval(T, ZS), T();
|
|
18728
18841
|
}, te = () => {
|
|
18729
18842
|
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();
|
|
18730
18843
|
};
|
|
@@ -18734,16 +18847,16 @@ function dC(e, t) {
|
|
|
18734
18847
|
}
|
|
18735
18848
|
// ../../packages/components/src/chat/PkChatbotAuth.vue?vue&type=script&setup=true&lang.ts
|
|
18736
18849
|
G(), Y(), R(), De();
|
|
18737
|
-
var
|
|
18850
|
+
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 = {
|
|
18738
18851
|
key: "form",
|
|
18739
18852
|
class: "pk-chatbot-auth__flip-card flex flex-col"
|
|
18740
|
-
},
|
|
18853
|
+
}, bC = { class: "flex flex-col" }, xC = {
|
|
18741
18854
|
key: 0,
|
|
18742
18855
|
class: "flex justify-center mb-md"
|
|
18743
|
-
},
|
|
18856
|
+
}, SC = ["src", "alt"], CC = { class: "text-center leading-normal mb-lg" }, wC = {
|
|
18744
18857
|
key: 0,
|
|
18745
18858
|
class: "font-bold text-20 m-0"
|
|
18746
|
-
},
|
|
18859
|
+
}, 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({
|
|
18747
18860
|
__name: "PkChatbotAuth",
|
|
18748
18861
|
props: /*@__PURE__*/ ae({
|
|
18749
18862
|
branding: {
|
|
@@ -18835,7 +18948,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18835
18948
|
}
|
|
18836
18949
|
return (t, r) => {
|
|
18837
18950
|
let i = wn, o = En, s = Cn, h = _n;
|
|
18838
|
-
return P(), Z("div",
|
|
18951
|
+
return P(), Z("div", mC, [H("div", hC, [F(K, {
|
|
18839
18952
|
name: "pk-flip",
|
|
18840
18953
|
mode: "out-in",
|
|
18841
18954
|
onAfterEnter: D
|
|
@@ -18847,13 +18960,13 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18847
18960
|
tabindex: "-1",
|
|
18848
18961
|
class: "pk-chatbot-auth__flip-card outline-none flex flex-col text-center leading-normal"
|
|
18849
18962
|
}, [
|
|
18850
|
-
H("div",
|
|
18963
|
+
H("div", gC, [F(i, {
|
|
18851
18964
|
name: "ri:mail-check-line",
|
|
18852
18965
|
"aria-hidden": "true",
|
|
18853
18966
|
class: "text-success w-32 h-32"
|
|
18854
18967
|
})]),
|
|
18855
|
-
H("h1",
|
|
18856
|
-
H("p",
|
|
18968
|
+
H("h1", _C, N(u.value.title), 1),
|
|
18969
|
+
H("p", vC, N(u.value.message), 1),
|
|
18857
18970
|
F(o, {
|
|
18858
18971
|
type: "button",
|
|
18859
18972
|
modifiers: "link",
|
|
@@ -18861,14 +18974,14 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18861
18974
|
label: E(n)("action.backToSignIn"),
|
|
18862
18975
|
onClick: p
|
|
18863
18976
|
}, null, 8, ["label"])
|
|
18864
|
-
], 512)) : (P(), Z("div",
|
|
18865
|
-
E(a)(e.branding?.interface.logo) ? (P(), Z("div",
|
|
18977
|
+
], 512)) : (P(), Z("div", yC, [H("div", bC, [
|
|
18978
|
+
E(a)(e.branding?.interface.logo) ? (P(), Z("div", xC, [H("img", {
|
|
18866
18979
|
src: e.branding?.interface.logo,
|
|
18867
18980
|
alt: e.branding?.name,
|
|
18868
18981
|
class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
|
|
18869
18982
|
onError: r[0] ||= (t) => E(c)(e.branding?.interface.logo)
|
|
18870
|
-
}, null, 40,
|
|
18871
|
-
H("div",
|
|
18983
|
+
}, null, 40, SC)])) : q("", !0),
|
|
18984
|
+
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" }, {
|
|
18872
18985
|
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)]),
|
|
18873
18986
|
_: 1
|
|
18874
18987
|
}))]),
|
|
@@ -18879,7 +18992,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18879
18992
|
content: l.value
|
|
18880
18993
|
}, null, 8, ["content"])) : q("", !0),
|
|
18881
18994
|
re.value ? (P(), Z(V, { key: 2 }, [
|
|
18882
|
-
H("p",
|
|
18995
|
+
H("p", TC, N(M.value), 1),
|
|
18883
18996
|
F(E(ie), {
|
|
18884
18997
|
class: "flex flex-col",
|
|
18885
18998
|
readonly: e.loading,
|
|
@@ -18904,7 +19017,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18904
19017
|
])]),
|
|
18905
19018
|
_: 1
|
|
18906
19019
|
}, 8, ["readonly"]),
|
|
18907
|
-
H("div",
|
|
19020
|
+
H("div", EC, [A.value === "totp" ? (P(), L(o, {
|
|
18908
19021
|
key: 0,
|
|
18909
19022
|
type: "button",
|
|
18910
19023
|
modifiers: "link",
|
|
@@ -18930,7 +19043,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18930
19043
|
readonly: e.loading,
|
|
18931
19044
|
onSubmit: O
|
|
18932
19045
|
}, {
|
|
18933
|
-
default: B(() => [H("div",
|
|
19046
|
+
default: B(() => [H("div", DC, [
|
|
18934
19047
|
F(E(y), {
|
|
18935
19048
|
name: "email",
|
|
18936
19049
|
type: "email",
|
|
@@ -18945,7 +19058,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18945
19058
|
label: E(n)("label.password"),
|
|
18946
19059
|
floating: ""
|
|
18947
19060
|
}, null, 8, ["label"]),
|
|
18948
|
-
H("div",
|
|
19061
|
+
H("div", OC, [F(o, {
|
|
18949
19062
|
type: "button",
|
|
18950
19063
|
modifiers: "link",
|
|
18951
19064
|
label: E(n)("action.forgetPassword"),
|
|
@@ -18975,7 +19088,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
18975
19088
|
readonly: e.loading,
|
|
18976
19089
|
onSubmit: k
|
|
18977
19090
|
}, {
|
|
18978
|
-
default: B(() => [H("div",
|
|
19091
|
+
default: B(() => [H("div", kC, [
|
|
18979
19092
|
F(E(x), {
|
|
18980
19093
|
name: "name",
|
|
18981
19094
|
type: "text",
|
|
@@ -19044,7 +19157,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
19044
19157
|
})]),
|
|
19045
19158
|
_: 1
|
|
19046
19159
|
}, 8, ["readonly"])) : q("", !0),
|
|
19047
|
-
!re.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (P(), Z(V, { key: 6 }, [H("div",
|
|
19160
|
+
!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, {
|
|
19048
19161
|
modifiers: "vertical",
|
|
19049
19162
|
class: "gap-xs mt-xs"
|
|
19050
19163
|
}, {
|
|
@@ -19067,7 +19180,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
19067
19180
|
}, null, 8, ["disabled", "label"])) : q("", !0)]),
|
|
19068
19181
|
_: 1
|
|
19069
19182
|
})], 64)) : q("", !0)
|
|
19070
|
-
]), H("div",
|
|
19183
|
+
]), H("div", jC, [re.value ? (P(), L(o, {
|
|
19071
19184
|
key: 0,
|
|
19072
19185
|
type: "button",
|
|
19073
19186
|
modifiers: "link",
|
|
@@ -19098,20 +19211,20 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
|
|
|
19098
19211
|
})])]);
|
|
19099
19212
|
};
|
|
19100
19213
|
}
|
|
19101
|
-
}), [["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)}}"]]]),
|
|
19214
|
+
}), [["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;";
|
|
19102
19215
|
// ../../packages/components/src/PkLoader.vue
|
|
19103
19216
|
G();
|
|
19104
|
-
var
|
|
19105
|
-
function
|
|
19217
|
+
var PC = {};
|
|
19218
|
+
function FC(e, t) {
|
|
19106
19219
|
return P(), Z("div", null, [...t[0] ||= [H("div", {
|
|
19107
19220
|
"aria-hidden": "true",
|
|
19108
19221
|
class: "pk-loader"
|
|
19109
19222
|
}, null, -1)]]);
|
|
19110
19223
|
}
|
|
19111
|
-
var
|
|
19224
|
+
var IC = /*#__PURE__*/ Nn(PC, [["render", FC], ["styles", [NC]]]);
|
|
19112
19225
|
// ../../packages/components/src/chat/PkWelcomePopup.vue?vue&type=script&setup=true&lang.ts
|
|
19113
19226
|
G(), Y(), De(), R();
|
|
19114
|
-
var
|
|
19227
|
+
var LC = { class: "welcome-popup__text" }, RC = ["aria-label"], zC = 100, BC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19115
19228
|
__name: "PkWelcomePopup",
|
|
19116
19229
|
props: {
|
|
19117
19230
|
agentId: { type: String },
|
|
@@ -19132,7 +19245,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
|
|
|
19132
19245
|
c.value = [], s.value = !1;
|
|
19133
19246
|
let t = e.split(/(\s+)/), n = 0;
|
|
19134
19247
|
function r() {
|
|
19135
|
-
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r,
|
|
19248
|
+
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, zC)) : s.value = !0;
|
|
19136
19249
|
}
|
|
19137
19250
|
r();
|
|
19138
19251
|
}
|
|
@@ -19156,7 +19269,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
|
|
|
19156
19269
|
key: 0,
|
|
19157
19270
|
class: "welcome-popup",
|
|
19158
19271
|
onClick: ve(m, ["stop"])
|
|
19159
|
-
}, [H("p",
|
|
19272
|
+
}, [H("p", LC, [(P(!0), Z(V, null, w(c.value, (e, t) => (P(), Z("span", {
|
|
19160
19273
|
key: t,
|
|
19161
19274
|
class: "welcome-popup__word"
|
|
19162
19275
|
}, N(e), 1))), 128))]), F(K, null, {
|
|
@@ -19172,7 +19285,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
|
|
|
19172
19285
|
width: "14",
|
|
19173
19286
|
height: "14",
|
|
19174
19287
|
fill: "currentColor"
|
|
19175
|
-
}, [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,
|
|
19288
|
+
}, [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)]),
|
|
19176
19289
|
_: 1
|
|
19177
19290
|
})])) : q("", !0)]),
|
|
19178
19291
|
_: 1
|
|
@@ -19181,16 +19294,16 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
|
|
|
19181
19294
|
}), [["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)}}"]]]);
|
|
19182
19295
|
// ../../packages/components/src/chat/PkWorkingBeam.vue?vue&type=script&setup=true&lang.ts
|
|
19183
19296
|
G(), De();
|
|
19184
|
-
var
|
|
19297
|
+
var VC = {
|
|
19185
19298
|
key: 0,
|
|
19186
19299
|
class: "pk-working-beam",
|
|
19187
19300
|
"aria-hidden": "true"
|
|
19188
|
-
},
|
|
19301
|
+
}, HC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19189
19302
|
__name: "PkWorkingBeam",
|
|
19190
19303
|
props: { active: { type: Boolean } },
|
|
19191
19304
|
setup(e) {
|
|
19192
19305
|
return (t, n) => (P(), L(K, { name: "pk-working-beam" }, {
|
|
19193
|
-
default: B(() => [e.active ? (P(), Z("span",
|
|
19306
|
+
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)]),
|
|
19194
19307
|
_: 1
|
|
19195
19308
|
}));
|
|
19196
19309
|
}
|
|
@@ -19198,7 +19311,7 @@ var zC = {
|
|
|
19198
19311
|
// ../../packages/components/src/chat/PkWorkingAurora.vue?vue&type=script&setup=true&lang.ts
|
|
19199
19312
|
G(), Y(), De();
|
|
19200
19313
|
// ../../packages/components/src/chat/PkWorkingAurora.vue
|
|
19201
|
-
var
|
|
19314
|
+
var UC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19202
19315
|
__name: "PkWorkingAurora",
|
|
19203
19316
|
props: {
|
|
19204
19317
|
active: { type: Boolean },
|
|
@@ -19235,7 +19348,7 @@ var VC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19235
19348
|
}), [["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}}"]]]);
|
|
19236
19349
|
// ../../packages/components/src/chat/PkAgentPresence.vue?vue&type=script&setup=true&lang.ts
|
|
19237
19350
|
G(), Y(), R();
|
|
19238
|
-
var
|
|
19351
|
+
var WC = 13, GC = 8, KC = 3, qC = 150, JC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19239
19352
|
__name: "PkAgentPresence",
|
|
19240
19353
|
props: {
|
|
19241
19354
|
active: { type: Boolean },
|
|
@@ -19304,10 +19417,10 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19304
19417
|
};
|
|
19305
19418
|
}, v = (e) => {
|
|
19306
19419
|
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;
|
|
19307
|
-
return a && r < a.x && i < a.y + a.height && i + 48 > a.y && (r = Math.max(t.x + Math.min(
|
|
19420
|
+
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];
|
|
19308
19421
|
}, y = (e) => [
|
|
19309
|
-
e.x -
|
|
19310
|
-
e.y -
|
|
19422
|
+
e.x - KC,
|
|
19423
|
+
e.y - KC,
|
|
19311
19424
|
e.width + 6,
|
|
19312
19425
|
e.height + 6
|
|
19313
19426
|
], b = () => {
|
|
@@ -19341,7 +19454,7 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19341
19454
|
}
|
|
19342
19455
|
E = e;
|
|
19343
19456
|
let n = parseFloat(getComputedStyle(e).borderTopLeftRadius);
|
|
19344
|
-
o.value?.style.setProperty("--pk-agent-presence-radius", `${(Number.isFinite(n) ? n : 0) +
|
|
19457
|
+
o.value?.style.setProperty("--pk-agent-presence-radius", `${(Number.isFinite(n) ? n : 0) + KC}px`), h(y(t)), l.value = !0, d.value++;
|
|
19345
19458
|
}, O = 0, k = async (e) => {
|
|
19346
19459
|
let t = ++O, i = (t) => e.heading || r("arrived", t), a = g(e.element);
|
|
19347
19460
|
if (!n.active || !a) {
|
|
@@ -19383,7 +19496,7 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19383
19496
|
});
|
|
19384
19497
|
}, j;
|
|
19385
19498
|
return I(c, (e) => {
|
|
19386
|
-
clearInterval(j), j = e ? setInterval(ie,
|
|
19499
|
+
clearInterval(j), j = e ? setInterval(ie, qC) : void 0;
|
|
19387
19500
|
}), re(() => {
|
|
19388
19501
|
window.addEventListener("scroll", ie, {
|
|
19389
19502
|
capture: !0,
|
|
@@ -19426,14 +19539,14 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
|
19426
19539
|
}), [["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)}}"]]]);
|
|
19427
19540
|
// src/components/FloatingChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
|
|
19428
19541
|
G(), R(), Y(), De();
|
|
19429
|
-
var
|
|
19542
|
+
var YC = {
|
|
19430
19543
|
key: 0,
|
|
19431
19544
|
class: "floating-chat-widget__frame",
|
|
19432
19545
|
"aria-hidden": "true"
|
|
19433
|
-
},
|
|
19546
|
+
}, XC = {
|
|
19434
19547
|
key: 0,
|
|
19435
19548
|
class: "floating-chat-widget__launcher"
|
|
19436
|
-
},
|
|
19549
|
+
}, ZC = ["aria-label", "aria-expanded"], QC = {
|
|
19437
19550
|
key: 0,
|
|
19438
19551
|
class: "w-full h-full",
|
|
19439
19552
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -19441,7 +19554,7 @@ var qC = {
|
|
|
19441
19554
|
width: "24",
|
|
19442
19555
|
height: "24",
|
|
19443
19556
|
fill: "currentColor"
|
|
19444
|
-
},
|
|
19557
|
+
}, $C = {
|
|
19445
19558
|
key: 1,
|
|
19446
19559
|
class: "w-full h-full",
|
|
19447
19560
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -19449,13 +19562,13 @@ var qC = {
|
|
|
19449
19562
|
width: "24",
|
|
19450
19563
|
height: "24",
|
|
19451
19564
|
fill: "currentColor"
|
|
19452
|
-
},
|
|
19565
|
+
}, ew = {
|
|
19453
19566
|
key: 0,
|
|
19454
19567
|
class: "floating-chat-widget__chat floating-chat-widget__auth"
|
|
19455
|
-
},
|
|
19568
|
+
}, tw = { class: "floating-chat-widget__close" }, nw = {
|
|
19456
19569
|
key: 0,
|
|
19457
19570
|
class: "floating-chat-widget__chat floating-chat-widget__loading"
|
|
19458
|
-
},
|
|
19571
|
+
}, rw = { class: "floating-chat-widget__close" }, iw = 450, aw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19459
19572
|
inheritAttrs: !1,
|
|
19460
19573
|
__name: "FloatingChatWidget.ce",
|
|
19461
19574
|
props: {
|
|
@@ -19533,8 +19646,8 @@ var qC = {
|
|
|
19533
19646
|
userId: h
|
|
19534
19647
|
});
|
|
19535
19648
|
Zh(() => k.isWorking), Qh(() => k.pageControlActive);
|
|
19536
|
-
let te =
|
|
19537
|
-
|
|
19649
|
+
let te = HS(() => !!k.hostConfirmation || k.pageControlActive);
|
|
19650
|
+
XS(te, () => k.pageControlActive, {
|
|
19538
19651
|
text: () => D("messagePart.pageControlActive"),
|
|
19539
19652
|
stopLabel: () => D("action.stop"),
|
|
19540
19653
|
onStop: () => void k.stopHostActions()
|
|
@@ -19590,7 +19703,7 @@ var qC = {
|
|
|
19590
19703
|
I(l, () => {
|
|
19591
19704
|
ke.value = !0, clearTimeout(Ae), Ae = setTimeout(() => {
|
|
19592
19705
|
ke.value = !1;
|
|
19593
|
-
},
|
|
19706
|
+
}, iw);
|
|
19594
19707
|
});
|
|
19595
19708
|
let je = U(() => G.value && ke.value ? "floating-chat-widget-copilot" : void 0), Me = U(() => {
|
|
19596
19709
|
let e = [
|
|
@@ -19670,10 +19783,10 @@ var qC = {
|
|
|
19670
19783
|
_: 1
|
|
19671
19784
|
})) : q("", !0),
|
|
19672
19785
|
F(K, { name: "floating-chat-widget-frame" }, {
|
|
19673
|
-
default: B(() => [G.value && E(l) ? (P(), Z("div",
|
|
19786
|
+
default: B(() => [G.value && E(l) ? (P(), Z("div", YC, [H("div", {
|
|
19674
19787
|
class: "floating-chat-widget__frame-window",
|
|
19675
19788
|
style: O(Ee.value)
|
|
19676
|
-
}, [F(
|
|
19789
|
+
}, [F(HC, { active: Te.value }, null, 8, ["active"])], 4)])) : q("", !0)]),
|
|
19677
19790
|
_: 1
|
|
19678
19791
|
}),
|
|
19679
19792
|
F(K, { name: "floating-chat-widget-frame" }, {
|
|
@@ -19689,7 +19802,7 @@ var qC = {
|
|
|
19689
19802
|
class: "floating-chat-widget__page-aurora",
|
|
19690
19803
|
style: O(Ee.value),
|
|
19691
19804
|
"aria-hidden": "true"
|
|
19692
|
-
}, [F(
|
|
19805
|
+
}, [F(UC, {
|
|
19693
19806
|
active: Te.value,
|
|
19694
19807
|
side: Se.value === "left" ? "left" : "right",
|
|
19695
19808
|
pulse: E(V)
|
|
@@ -19699,7 +19812,7 @@ var qC = {
|
|
|
19699
19812
|
"pulse"
|
|
19700
19813
|
])], 4)),
|
|
19701
19814
|
F(K, { name: "slide-bottom" }, {
|
|
19702
|
-
default: B(() => [(E(A) || E(ie)) && !E(se) && !Oe.value && !(G.value && E(l)) ? (P(), Z("div",
|
|
19815
|
+
default: B(() => [(E(A) || E(ie)) && !E(se) && !Oe.value && !(G.value && E(l)) ? (P(), Z("div", XC, [F(BC, {
|
|
19703
19816
|
"agent-id": e.agentId,
|
|
19704
19817
|
message: E(A)?.interface.initialMessage,
|
|
19705
19818
|
enabled: !E(l) && E(A)?.interface?.welcomePopup,
|
|
@@ -19714,11 +19827,11 @@ var qC = {
|
|
|
19714
19827
|
"aria-expanded": E(l),
|
|
19715
19828
|
class: "floating-chat-widget__button",
|
|
19716
19829
|
onClick: ve(u, ["stop"])
|
|
19717
|
-
}, [E(l) ? (P(), Z("svg",
|
|
19830
|
+
}, [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)]),
|
|
19718
19831
|
_: 1
|
|
19719
19832
|
}),
|
|
19720
19833
|
F(K, { name: je.value }, {
|
|
19721
|
-
default: B(() => [E(l) && (E(M) || E(ce)) && !(E(A) && E(d).data) ? (P(), Z("div",
|
|
19834
|
+
default: B(() => [E(l) && (E(M) || E(ce)) && !(E(A) && E(d).data) ? (P(), Z("div", ew, [E(M) ? (P(), L(MC, {
|
|
19722
19835
|
key: 0,
|
|
19723
19836
|
"error-message": E(J),
|
|
19724
19837
|
"onUpdate:errorMessage": n[0] ||= (e) => Ce(J) ? J.value = e : null,
|
|
@@ -19751,7 +19864,7 @@ var qC = {
|
|
|
19751
19864
|
"onVerifyTwoFactor",
|
|
19752
19865
|
"onSendTwoFactorCode",
|
|
19753
19866
|
"onCancelTwoFactor"
|
|
19754
|
-
])) : (P(), L(
|
|
19867
|
+
])) : (P(), L(IC, { key: 1 })), H("span", tw, [F(a, {
|
|
19755
19868
|
modifiers: "action-quiet",
|
|
19756
19869
|
icon: "ri:close-line",
|
|
19757
19870
|
title: t.$t("action.close"),
|
|
@@ -19760,7 +19873,7 @@ var qC = {
|
|
|
19760
19873
|
_: 1
|
|
19761
19874
|
}, 8, ["name"]),
|
|
19762
19875
|
F(K, { name: je.value }, {
|
|
19763
|
-
default: B(() => [E(l) && !E(M) && !E(A) && !E(ce) ? (P(), Z("div",
|
|
19876
|
+
default: B(() => [E(l) && !E(M) && !E(A) && !E(ce) ? (P(), Z("div", nw, [F(IC), H("span", rw, [F(a, {
|
|
19764
19877
|
modifiers: "action-quiet",
|
|
19765
19878
|
icon: "ri:close-line",
|
|
19766
19879
|
title: t.$t("action.close"),
|
|
@@ -19769,7 +19882,7 @@ var qC = {
|
|
|
19769
19882
|
_: 1
|
|
19770
19883
|
}, 8, ["name"]),
|
|
19771
19884
|
F(K, { name: je.value }, {
|
|
19772
|
-
default: B(() => [E(A) && E(l) && E(d).data ? (P(), L(
|
|
19885
|
+
default: B(() => [E(A) && E(l) && E(d).data ? (P(), L(kS, {
|
|
19773
19886
|
key: e.agentId,
|
|
19774
19887
|
ref_key: "chatbotEl",
|
|
19775
19888
|
ref: o,
|
|
@@ -19805,7 +19918,7 @@ var qC = {
|
|
|
19805
19918
|
title: t.$t("action.close"),
|
|
19806
19919
|
onClick: ve(u, ["stop"])
|
|
19807
19920
|
}, null, 8, ["modifiers", "title"])]),
|
|
19808
|
-
"view-auth": B(() => [F(
|
|
19921
|
+
"view-auth": B(() => [F(MC, {
|
|
19809
19922
|
"error-message": E(J),
|
|
19810
19923
|
"onUpdate:errorMessage": n[2] ||= (e) => Ce(J) ? J.value = e : null,
|
|
19811
19924
|
success: E(Y),
|
|
@@ -19863,8 +19976,8 @@ var qC = {
|
|
|
19863
19976
|
class: "floating-chat-widget__panel-beam",
|
|
19864
19977
|
style: O(Ee.value),
|
|
19865
19978
|
"aria-hidden": "true"
|
|
19866
|
-
}, [F(
|
|
19867
|
-
F(
|
|
19979
|
+
}, [F(HC, { active: we.value }, null, 8, ["active"])], 4)) : q("", !0),
|
|
19980
|
+
F(JC, {
|
|
19868
19981
|
active: E(k).pageControlActive,
|
|
19869
19982
|
target: E(ye),
|
|
19870
19983
|
"agent-name": E(A)?.name,
|
|
@@ -19880,12 +19993,12 @@ var qC = {
|
|
|
19880
19993
|
"style",
|
|
19881
19994
|
"onArrived"
|
|
19882
19995
|
]),
|
|
19883
|
-
F(
|
|
19996
|
+
F(MS, {
|
|
19884
19997
|
active: E(k).pageControlActive,
|
|
19885
19998
|
action: E(k).pageAction?.title,
|
|
19886
19999
|
onStop: n[4] ||= (e) => E(k).stopHostActions()
|
|
19887
20000
|
}, null, 8, ["active", "action"]),
|
|
19888
|
-
E(k).hostConfirmation && E(te) ? (P(), L(
|
|
20001
|
+
E(k).hostConfirmation && E(te) ? (P(), L(PS, {
|
|
19889
20002
|
key: 4,
|
|
19890
20003
|
question: E(k).hostConfirmation.question ?? E(D)("toolApproval.prompt"),
|
|
19891
20004
|
details: E(k).hostConfirmation.details,
|
|
@@ -19902,16 +20015,16 @@ var qC = {
|
|
|
19902
20015
|
}), [["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)))}"]]]);
|
|
19903
20016
|
// src/components/EmbeddedChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
|
|
19904
20017
|
G(), R(), Y(), De();
|
|
19905
|
-
var
|
|
20018
|
+
var ow = {
|
|
19906
20019
|
key: 3,
|
|
19907
20020
|
class: "embedded-chat-widget embedded-chat-widget--not-found"
|
|
19908
|
-
},
|
|
20021
|
+
}, sw = {
|
|
19909
20022
|
key: 0,
|
|
19910
20023
|
class: "embedded-chat-widget embedded-chat-widget--auth"
|
|
19911
|
-
},
|
|
20024
|
+
}, cw = {
|
|
19912
20025
|
key: 0,
|
|
19913
20026
|
class: "embedded-chat-widget embedded-chat-widget--loading"
|
|
19914
|
-
},
|
|
20027
|
+
}, lw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
|
|
19915
20028
|
inheritAttrs: !1,
|
|
19916
20029
|
__name: "EmbeddedChatWidget.ce",
|
|
19917
20030
|
props: {
|
|
@@ -20001,8 +20114,8 @@ var iw = {
|
|
|
20001
20114
|
status: e.status
|
|
20002
20115
|
}), u(e);
|
|
20003
20116
|
}
|
|
20004
|
-
let { t: te } = Le({ useScope: "global" }), ne =
|
|
20005
|
-
|
|
20117
|
+
let { t: te } = Le({ useScope: "global" }), ne = HS(() => !!T.hostConfirmation || T.pageControlActive), re = pC(xe(), () => !!n.followPageDialogs && n.followPageDialogs !== "false");
|
|
20118
|
+
XS(ne, () => T.pageControlActive && !re.value, {
|
|
20006
20119
|
text: () => te("messagePart.pageControlActive"),
|
|
20007
20120
|
stopLabel: () => te("action.stop"),
|
|
20008
20121
|
onStop: () => void T.stopHostActions()
|
|
@@ -20093,7 +20206,7 @@ var iw = {
|
|
|
20093
20206
|
default: B(() => [Ne(N(Pe.value), 1)]),
|
|
20094
20207
|
_: 1
|
|
20095
20208
|
})) : q("", !0),
|
|
20096
|
-
F(
|
|
20209
|
+
F(JC, {
|
|
20097
20210
|
active: E(T).pageControlActive,
|
|
20098
20211
|
target: E(V),
|
|
20099
20212
|
"agent-name": E(A)?.name,
|
|
@@ -20109,12 +20222,12 @@ var iw = {
|
|
|
20109
20222
|
"style",
|
|
20110
20223
|
"onArrived"
|
|
20111
20224
|
]),
|
|
20112
|
-
F(
|
|
20225
|
+
F(MS, {
|
|
20113
20226
|
active: E(T).pageControlActive,
|
|
20114
20227
|
action: E(T).pageAction?.title,
|
|
20115
20228
|
onStop: n[0] ||= (e) => E(T).stopHostActions()
|
|
20116
20229
|
}, null, 8, ["active", "action"]),
|
|
20117
|
-
E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(
|
|
20230
|
+
E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(PS, {
|
|
20118
20231
|
key: 2,
|
|
20119
20232
|
question: E(T).hostConfirmation.question ?? E(te)("toolApproval.prompt"),
|
|
20120
20233
|
details: E(T).hostConfirmation.details,
|
|
@@ -20124,12 +20237,12 @@ var iw = {
|
|
|
20124
20237
|
"details",
|
|
20125
20238
|
"onRespond"
|
|
20126
20239
|
])) : q("", !0),
|
|
20127
|
-
E(se) ? (P(), Z("div",
|
|
20240
|
+
E(se) ? (P(), Z("div", ow, [H("p", null, N(E(te)("message.agentNotFound")), 1)])) : q("", !0),
|
|
20128
20241
|
F(K, {
|
|
20129
20242
|
name: "fade",
|
|
20130
20243
|
appear: ""
|
|
20131
20244
|
}, {
|
|
20132
|
-
default: B(() => [(E(A) || E(ie)) && !E(se) && E(M) && (!E(l).data?.user?.id || E(l).data?.user?.isAnonymous) ? (P(), Z("div",
|
|
20245
|
+
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, {
|
|
20133
20246
|
key: 0,
|
|
20134
20247
|
"error-message": E(we),
|
|
20135
20248
|
"onUpdate:errorMessage": n[1] ||= (e) => Ce(we) ? we.value = e : null,
|
|
@@ -20160,17 +20273,17 @@ var iw = {
|
|
|
20160
20273
|
"onVerifyTwoFactor",
|
|
20161
20274
|
"onSendTwoFactorCode",
|
|
20162
20275
|
"onCancelTwoFactor"
|
|
20163
|
-
])) : (P(), L(
|
|
20276
|
+
])) : (P(), L(IC, { key: 1 }))])) : q("", !0)]),
|
|
20164
20277
|
_: 1
|
|
20165
20278
|
}),
|
|
20166
20279
|
F(K, {
|
|
20167
20280
|
name: "fade",
|
|
20168
20281
|
appear: ""
|
|
20169
20282
|
}, {
|
|
20170
|
-
default: B(() => [E(ce) && !E(se) ? (P(), Z("div",
|
|
20283
|
+
default: B(() => [E(ce) && !E(se) ? (P(), Z("div", cw, [F(IC)])) : q("", !0)]),
|
|
20171
20284
|
_: 1
|
|
20172
20285
|
}),
|
|
20173
|
-
E(A) && E(l).data && !E(se) ? (P(), L(
|
|
20286
|
+
E(A) && E(l).data && !E(se) ? (P(), L(kS, {
|
|
20174
20287
|
key: 4,
|
|
20175
20288
|
ref_key: "chatbotEl",
|
|
20176
20289
|
ref: o,
|
|
@@ -20203,7 +20316,7 @@ var iw = {
|
|
|
20203
20316
|
}, ge({
|
|
20204
20317
|
"header-actions": B(() => [pe(t.$slots, "header-actions")]),
|
|
20205
20318
|
actions: B(() => [pe(t.$slots, "actions")]),
|
|
20206
|
-
"view-auth": B(() => [F(
|
|
20319
|
+
"view-auth": B(() => [F(MC, {
|
|
20207
20320
|
"error-message": E(we),
|
|
20208
20321
|
"onUpdate:errorMessage": n[3] ||= (e) => Ce(we) ? we.value = e : null,
|
|
20209
20322
|
success: E(Te),
|
|
@@ -20264,7 +20377,7 @@ var iw = {
|
|
|
20264
20377
|
}), [["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}"]]]);
|
|
20265
20378
|
// src/lib.ts
|
|
20266
20379
|
De();
|
|
20267
|
-
function
|
|
20380
|
+
function uw(e) {
|
|
20268
20381
|
let { t } = xr.global;
|
|
20269
20382
|
e.use($n()), e.use(xr), e.provide(Re, xr), e.use(zr, {
|
|
20270
20383
|
iconsCollections: [Br, Vr],
|
|
@@ -20290,15 +20403,15 @@ function cw(e) {
|
|
|
20290
20403
|
ki(e instanceof Error ? e : Error(String(e)), { vueInfo: n });
|
|
20291
20404
|
};
|
|
20292
20405
|
}
|
|
20293
|
-
function
|
|
20406
|
+
function dw(e) {
|
|
20294
20407
|
let { styles: t } = e;
|
|
20295
20408
|
return {
|
|
20296
|
-
configureApp:
|
|
20409
|
+
configureApp: uw,
|
|
20297
20410
|
styles: [Ai, ...t ?? []]
|
|
20298
20411
|
};
|
|
20299
20412
|
}
|
|
20300
|
-
var
|
|
20301
|
-
customElements.define("floating-chat-widget",
|
|
20302
|
-
export {
|
|
20413
|
+
var fw = we(aw, dw(aw)), pw = we(lw, dw(lw));
|
|
20414
|
+
customElements.define("floating-chat-widget", fw), customElements.define("embedded-chat-widget", pw);
|
|
20415
|
+
export { pw as EmbeddedChatWidgetCe, fw as FloatingChatWidgetCe };
|
|
20303
20416
|
|
|
20304
20417
|
//# sourceMappingURL=ai-elements.es.js.map
|