@8wave/ai-elements 0.122.0-beta.9 → 0.122.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/_chunks/PkStreamingMarkdown-Dc0R0GHe.js.map +1 -1
  2. package/dist/_chunks/PkToolChatFile-CScP_O0D.js +193 -0
  3. package/dist/_chunks/PkToolChatFile-CScP_O0D.js.map +1 -0
  4. package/dist/_chunks/PkWordPreview-COVeYzqX.js +120 -0
  5. package/dist/_chunks/PkWordPreview-COVeYzqX.js.map +1 -0
  6. package/dist/ai-elements.es.js +516 -401
  7. package/dist/ai-elements.es.js.map +1 -1
  8. package/dist-vue/PkChatbot.js +1 -1
  9. package/dist-vue/PkChatbotViewChat.js +1 -1
  10. package/dist-vue/PkChatbotViewConversations.js +1 -1
  11. package/dist-vue/PkChatbotViewFiles.js +1 -1
  12. package/dist-vue/PkChatbotViewProfile.js +1 -1
  13. package/dist-vue/_chunks/{PkChatbot-B7JaLUZw.js → PkChatbot-CxbPkjhQ.js} +6 -6
  14. package/dist-vue/_chunks/{PkChatbot-B7JaLUZw.js.map → PkChatbot-CxbPkjhQ.js.map} +1 -1
  15. package/dist-vue/_chunks/PkChatbotViewChat-gcim5jsW.js +1003 -0
  16. package/dist-vue/_chunks/PkChatbotViewChat-gcim5jsW.js.map +1 -0
  17. package/dist-vue/_chunks/{PkChatbotViewConversations-4ZJF-y5q.js → PkChatbotViewConversations-ZdDraX9c.js} +2 -2
  18. package/dist-vue/_chunks/{PkChatbotViewConversations-4ZJF-y5q.js.map → PkChatbotViewConversations-ZdDraX9c.js.map} +1 -1
  19. package/dist-vue/_chunks/{PkChatbotViewFiles-CfPwNcvf.js → PkChatbotViewFiles-BqZ3CJm5.js} +2 -2
  20. package/dist-vue/_chunks/{PkChatbotViewFiles-CfPwNcvf.js.map → PkChatbotViewFiles-BqZ3CJm5.js.map} +1 -1
  21. package/dist-vue/_chunks/{PkChatbotViewProfile-Dd8EhOx3.js → PkChatbotViewProfile-CANtq-SY.js} +2 -2
  22. package/dist-vue/_chunks/{PkChatbotViewProfile-Dd8EhOx3.js.map → PkChatbotViewProfile-CANtq-SY.js.map} +1 -1
  23. package/dist-vue/_chunks/PkToolChatFile-iOyeQBp6.js +191 -0
  24. package/dist-vue/_chunks/PkToolChatFile-iOyeQBp6.js.map +1 -0
  25. package/dist-vue/_chunks/PkWordPreview-azW8wfJe.js +115 -0
  26. package/dist-vue/_chunks/PkWordPreview-azW8wfJe.js.map +1 -0
  27. package/dist-vue/_chunks/{createChatbotApiClient-y6jA42S0.js → createChatbotApiClient-Cu1nDV3E.js} +4 -1
  28. package/dist-vue/_chunks/{createChatbotApiClient-y6jA42S0.js.map → createChatbotApiClient-Cu1nDV3E.js.map} +1 -1
  29. package/dist-vue/_chunks/{useChatbotStore-DCXyql8U.js → useChatbotStore-CPl6KHny.js} +2 -2
  30. package/dist-vue/_chunks/{useChatbotStore-DCXyql8U.js.map → useChatbotStore-CPl6KHny.js.map} +1 -1
  31. package/dist-vue/_chunks/utils-DaAIWTtt.js.map +1 -1
  32. package/dist-vue/api.js +1 -1
  33. package/dist-vue/composables.js +32 -2
  34. package/dist-vue/composables.js.map +1 -1
  35. package/dist-vue/index.js +6 -6
  36. package/dist-vue/locales.js +28 -0
  37. package/dist-vue/packages/components/src/chat/PkToolChatFile.d.ts +3 -0
  38. package/dist-vue/packages/components/src/chat/PkWordPreview.d.ts +29 -0
  39. package/dist-vue/packages/components/src/chat/PkWordPreviewRuns.d.ts +13 -0
  40. package/dist-vue/packages/components/src/chat/utils.d.ts +6 -0
  41. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +3 -1
  42. package/dist-vue/packages/models/src/schema/WordPreview.d.ts +134 -0
  43. package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
  44. package/dist-vue/style.css +1 -1
  45. package/package.json +1 -1
  46. package/dist/_chunks/PkToolChatFile-BsvJIdgo.js +0 -181
  47. package/dist/_chunks/PkToolChatFile-BsvJIdgo.js.map +0 -1
  48. package/dist-vue/_chunks/PkChatbotViewChat-Djts78Oq.js +0 -921
  49. package/dist-vue/_chunks/PkChatbotViewChat-Djts78Oq.js.map +0 -1
  50. package/dist-vue/_chunks/PkToolChatFile-s46esp0O.js +0 -179
  51. package/dist-vue/_chunks/PkToolChatFile-s46esp0O.js.map +0 -1
@@ -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",
@@ -1771,6 +1785,7 @@ var hr = {
1771
1785
  "header-origin-changed": "L'URL punta a un altro host: riscrivi i valori degli header, quelli salvati restano legati all'host precedente.",
1772
1786
  "header-url-host-placeholder": "Un tool con header ha bisogno di un host fisso: schema, host e porta del suo URL non possono contenere un segnaposto che compila il modello.",
1773
1787
  "header-value-missing": "Un header non ha valore: scrivilo, oppure togli l'header.",
1788
+ "last-owner": "Un'organizzazione deve avere almeno un proprietario: prima nomina proprietario un altro membro.",
1774
1789
  "restricted-agent-platform": "Un agente Privato non si collega a Teams e WhatsApp: lì chi scrive al bot usa l'agente senza che nessuno controlli chi è. Scegli un'altra visibilità, oppure spegni prima i collegamenti dell'agente.",
1775
1790
  "restricted-sub-agent": "Un agente Privato può essere sotto-agente solo di un altro agente Privato: chi usa un agente usa anche i suoi sotto-agenti, senza controlli su di loro. Rendi prima Privato questo agente, oppure scegli un altro sotto-agente.",
1776
1791
  "restricted-sub-agent-links": "Questa visibilità non è compatibile con i collegamenti di sotto-agente con {agents}: un agente Privato può essere sotto-agente solo di un altro agente Privato, perché chi usa un agente usa anche i suoi sotto-agenti. Rimuovi prima quei collegamenti, oppure scegli un'altra visibilità.",
@@ -3460,6 +3475,20 @@ var hr = {
3460
3475
  extracted: "Extracted | Extracted"
3461
3476
  },
3462
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
+ },
3463
3492
  messagePart: {
3464
3493
  audioTranscribing: "Transcribing the audio…",
3465
3494
  audioTranscript: "Transcript",
@@ -3792,6 +3821,7 @@ var hr = {
3792
3821
  "header-origin-changed": "The URL points to another host: type the values of the headers again, the saved ones stay with the previous host.",
3793
3822
  "header-url-host-placeholder": "A tool with headers needs a fixed host: the scheme, host and port of its URL cannot hold a placeholder the model fills in.",
3794
3823
  "header-value-missing": "A header has no value: type it, or remove the header.",
3824
+ "last-owner": "An organization needs at least one owner: make another member an owner first.",
3795
3825
  "restricted-agent-platform": "A Private agent cannot be connected to Teams or WhatsApp: there whoever writes to the bot uses the agent, and nobody checks who they are. Choose another visibility, or switch the agent's connections off first.",
3796
3826
  "restricted-sub-agent": "A Private agent can be a sub-agent only of another Private agent: whoever uses an agent also uses its sub-agents, and is not checked on them. Make this agent Private first, or choose another sub-agent.",
3797
3827
  "restricted-sub-agent-links": "This visibility is not allowed by the sub-agent links with {agents}: a Private agent can be a sub-agent only of another Private agent, since whoever uses an agent also uses its sub-agents. Remove those links first, or choose another visibility.",
@@ -6904,6 +6934,9 @@ function xc(e) {
6904
6934
  async getAgent(e, t) {
6905
6935
  return i(`/organizations/${encodeURIComponent(e)}/agents/${encodeURIComponent(t)}`);
6906
6936
  },
6937
+ async getWordPreview(e, t, n) {
6938
+ return i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}/media/${encodeURIComponent(n)}/preview`);
6939
+ },
6907
6940
  async getAgentAccess(e, t) {
6908
6941
  return i(`/organizations/${encodeURIComponent(e)}/agents/${encodeURIComponent(t)}/access`);
6909
6942
  },
@@ -17333,7 +17366,10 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17333
17366
  }, mx = {
17334
17367
  key: 0,
17335
17368
  class: "pk-chatbot-view-chat__drop-overlay"
17336
- }, hx = 3e3, gx = 6e4, _x = 3e5, vx = 6e5, yx = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
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({
17337
17373
  __name: "PkChatbotViewChat",
17338
17374
  props: {
17339
17375
  agentId: { type: String },
@@ -17342,165 +17378,194 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17342
17378
  },
17343
17379
  emits: ["show-info", "revise"],
17344
17380
  setup(e, { emit: t }) {
17345
- let n = T(() => import("./_chunks/PkToolShowForm-CkpMsrEo.js")), r = T(() => import("./_chunks/PkToolShowContactForm-YX1BuolZ.js")), i = T(() => import("./_chunks/PkToolShowSuggestedReply-79UAjTL4.js")), a = T(() => import("./_chunks/PkToolShowSources-BO1IhnmO.js")), o = T(() => import("./_chunks/PkToolRequestGeolocation-n1W_drCv.js")), s = T(() => import("./_chunks/PkToolRequestOAuthConnection-DmMeSF2m.js")), c = T(() => import("./_chunks/PkToolShowLocation-B1ltUJ-K.js")), l = T(() => import("./_chunks/PkToolShowDiagram-fTIiANVA.js")), u = T(() => import("./_chunks/PkToolChatFile-BsvJIdgo.js")), d = T(() => import("./_chunks/PkToolShareDocument-BE02IEEO.js")), f = e, p = t, m = Nf(f.agentId), { agentInterface: h, agentFileUpload: g, agentType: _, agentVoice: v, actions: y, revisedAnswers: b, messages: x, chat: S, messageFeedbacks: C, feedbackDialogMessage: ee, isFeedbackSubmitting: w, isFeedbackSubmitted: D, feedbackSubmitError: O, isLeadSubmitted: k, isLoadingSubmitLead: te, submitLeadError: re, input: A, inputMessagePlaceholder: ie, isConversationBlocked: j, baseUrl: ae, pendingAttachments: oe, isAttachmentLimitReached: M, fileLimitError: se, apiClient: ce, isDark: le, hostToolsPending: ue, pageNoticeLevel: fe, hostConfirmation: pe, agentPageAccess: he, hostStepTitles: R, canQueue: z, queuedMessages: _e, backgroundAnswers: ve, inputFocusRequest: ye } = mr(m);
17346
- Fe(bt, R);
17347
- let V = me("inputEl");
17348
- I(ye, () => {
17349
- V.value?.focus();
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();
17350
17386
  });
17351
- let be = U(() => _.value === "reasoning" ? void 0 : g.value), xe = (e) => ce.value.getMediaDownloadUrl(f.agentId, m.localChatId, e), { handleSubmit: Se, stopGeneration: G, regenerate: we, onUpvote: Te, onDownvote: Ee, onFeedback: De, onFeedbackSubmit: Oe, onLeadSubmit: ke, startNewChat: Ae, addToolOutput: je, addToolApprovalResponse: Me, handleFileSelect: J, clearFileLimitError: Y, refreshMessages: Ne, appendMessage: X, closePageNotice: Pe, respondHostConfirmation: Ie, editQueuedMessage: Re, removeQueuedMessage: ze, openBackgroundAnswer: Be, dismissBackgroundAnswer: Ve } = m, { t: He } = Le({ useScope: "global" }), Ue = U(() => ue.value > 0), We = U(() => Ue.value && S.value.status === "ready" ? "streaming" : S.value.status), Ge = On(() => he.value?.notice), Ke = U(() => fe.value ? Ge.value || He(`message.pageAccessNotice.${fe.value}`) : void 0), qe = U(() => {
17352
- let e = se.value;
17353
- if (e) return e.reason === "per-chat" ? He("message.fileLimitPerChat", { max: e.max }) : He("message.fileLimitPerMessage", { max: e.max });
17354
- }), Je = U(() => ve.value.map(({ chatId: e, title: t }) => ({
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 }) => ({
17355
17391
  id: e,
17356
- text: t ? He("message.backgroundAnswerReady", { title: t }) : He("message.backgroundAnswerReadyUntitled")
17357
- }))), Ye = On(() => h.value?.dismissableNotice), Xe = U(() => x.value.some((e) => e.role === "user")), Ze = U(() => f.modifier === "fullscreen" && !Xe.value), Qe = Gf(h, () => f.userName), $e = me("chatViewEl"), et = async (e) => (await ce.value.expandSourceContext(f.agentId, e.documentId, e.chunkIndex)).content, tt = async (e) => {
17358
- let t = await ce.value.downloadSourceDocument(f.agentId, e);
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);
17359
17423
  window.open(t.downloadUrl, "_blank");
17360
- }, { isOverDropZone: nt } = hn($e, {
17361
- dataTypes: (e) => Rt(e, be.value?.allowedMimeTypes ?? []),
17424
+ }, { isOverDropZone: gt } = hn(et, {
17425
+ dataTypes: (e) => Rt(e, xe.value?.allowedMimeTypes ?? []),
17362
17426
  onDrop: (e) => {
17363
- if (be.value?.enabled && e) for (let t of e) J(t);
17427
+ if (xe.value?.enabled && e) for (let t of e) Y(t);
17364
17428
  }
17365
- }), rt = W(!1), it = !1, at = W(!1), ot = [
17429
+ }), _t = W(!1), vt = !1, yt = W(!1), xt = [
17366
17430
  3e3,
17367
17431
  5e3,
17368
17432
  1e4
17369
- ], st, ct, lt = !1, ut = 0, ft = !1;
17370
- function pt() {
17371
- clearTimeout(st), st = void 0, ct = void 0, lt = !1, ut = 0, at.value = !1;
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;
17372
17436
  }
17373
- function mt(e) {
17374
- it || (clearTimeout(st), st = setTimeout(() => {
17375
- gt();
17437
+ function Ot(e) {
17438
+ vt || (clearTimeout(St), St = setTimeout(() => {
17439
+ kt();
17376
17440
  }, e));
17377
17441
  }
17378
- async function gt() {
17379
- if (it || ft) return;
17380
- ft = !0;
17442
+ async function kt() {
17443
+ if (vt || Et) return;
17444
+ Et = !0;
17381
17445
  let e;
17382
17446
  try {
17383
- e = await Ne();
17447
+ e = await X();
17384
17448
  } finally {
17385
- ft = !1;
17449
+ Et = !1;
17386
17450
  }
17387
- if (it) return;
17388
- if (e === "caught-up" && (at.value = !1, Kt()), vt.isActive.value) {
17389
- ct = void 0, lt = !1, ut = 0, mt(hx);
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);
17390
17454
  return;
17391
17455
  }
17392
- ct === void 0 && (ct = Date.now(), lt = !!vt.error.value);
17393
- let t = Date.now() - ct;
17394
- if (e === "caught-up" && t >= (lt ? _x : gx) || t >= vx) {
17395
- pt(), qt();
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();
17396
17460
  return;
17397
17461
  }
17398
- let n = ot[Math.min(ut, ot.length - 1)];
17399
- ut += 1, mt(n);
17462
+ let n = xt[Math.min(Tt, xt.length - 1)];
17463
+ Tt += 1, Ot(n);
17400
17464
  }
17401
- let _t = (e = 1200) => {
17402
- mt(e);
17403
- }, vt = ix({
17465
+ let At = (e = 1200) => {
17466
+ Ot(e);
17467
+ }, jt = ix({
17404
17468
  fetchGrant: async () => {
17405
- let e = await ce.value.createVoiceSession(f.agentId, m.localChatId, {
17406
- deviceContext: m.buildDeviceContext(),
17407
- externalContext: m.externalContext
17469
+ let e = await le.value.createVoiceSession(p.agentId, h.localChatId, {
17470
+ deviceContext: h.buildDeviceContext(),
17471
+ externalContext: h.externalContext
17408
17472
  });
17409
- return e.chatId !== m.localChatId && (m.localChatId = e.chatId), e;
17473
+ return e.chatId !== h.localChatId && (h.localChatId = e.chatId), e;
17410
17474
  },
17411
- closeGrant: (e) => ce.value.closeVoiceSession(f.agentId, e),
17475
+ closeGrant: (e) => le.value.closeVoiceSession(p.agentId, e),
17412
17476
  onTranscript: (e) => {
17413
- e.role === "user" ? (at.value = !0, Gt(), X({
17477
+ e.role === "user" ? (yt.value = !0, rn(), Pe({
17414
17478
  id: `${hf}user-${hl()}`,
17415
17479
  role: "user",
17416
17480
  parts: [{
17417
17481
  type: "text",
17418
17482
  text: e.text
17419
17483
  }]
17420
- })) : at.value = !1;
17484
+ })) : yt.value = !1;
17421
17485
  },
17422
17486
  onTurnEnd: () => {
17423
- _t();
17487
+ At();
17424
17488
  }
17425
17489
  });
17426
- I(() => vt.error.value, (e) => {
17427
- e && (at.value = !1);
17490
+ I(() => jt.error.value, (e) => {
17491
+ e && (yt.value = !1);
17428
17492
  });
17429
- let yt = U(() => v.value?.enabled === !0), xt = U(() => vt.error.value ? "error" : vt.isConnecting.value ? "connecting" : vt.isSpeaking.value ? "speaking" : vt.isActive.value ? "listening" : "idle"), St = U(() => {
17430
- let e = vt.error.value;
17431
- if (e) return /took too long/i.test(e) ? He("message.voiceTookTooLong") : /cascade|no response|custom_llm_error/i.test(e) ? He("message.voiceNoAnswer") : He("message.voiceInterrupted");
17432
- }), Ct = U(() => vt.isSpeaking.value ? "output" : "input"), wt = () => vt.readLevel(Ct.value), Tt = () => vt.readSpectrum(Ct.value), Et = async () => {
17433
- rt.value = !1, await vt.start(), vt.isActive.value && (pt(), mt(hx));
17434
- }, Dt = async () => {
17435
- at.value = !1, await vt.stop(), !it && _t(0);
17436
- }, Ot = () => {
17437
- vt.dismissError();
17438
- }, kt = async () => {
17439
- vt.dismissError(), await vt.stop(), await Et();
17440
- }, At = (e) => e?.toolCallId ?? "", jt = W(/* @__PURE__ */ new Set()), Mt = (e) => jt.value.has(At(e)), Nt = W(/* @__PURE__ */ new Map()), Pt = (e, t) => vt.isActive.value ? (vt.sendUserMessage(t) && (jt.value = new Set(jt.value).add(At(e)), _t()), !0) : !1, Ft = (e, t, n) => {
17441
- Pt(t, ht(t, n)) || je({
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({
17442
17506
  tool: e,
17443
- toolCallId: At(t),
17507
+ toolCallId: Ut(t),
17444
17508
  output: n
17445
17509
  });
17446
- }, It = (e) => {
17447
- let t = e.confirmed ? He("message.voiceConfirmed") : He("message.voiceCancelled");
17448
- Pt({ toolCallId: e.toolCallId }, t) ? jt.value.has(e.toolCallId) && (Nt.value = new Map(Nt.value).set(e.toolCallId, e.confirmed)) : je({
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({
17449
17513
  tool: "requestConfirm",
17450
17514
  toolCallId: e.toolCallId,
17451
17515
  output: e.confirmed ? "confirmed" : "cancelled"
17452
17516
  });
17453
- }, Lt = (e, t) => {
17454
- Pt(e, t) || (A.value = t, Se());
17455
- }, zt = (e, t) => {
17456
- let n = t.error ? He("message.voiceLocationRefused") : He("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
17457
- Pt(e, n) || je({
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({
17458
17522
  tool: "requestGeolocation",
17459
- toolCallId: At(e),
17523
+ toolCallId: Ut(e),
17460
17524
  output: t
17461
17525
  });
17462
- }, Bt = (e, t) => {
17463
- Pt(e, He("message.voiceConnectionDone")) || je({
17526
+ }, Qt = (e, t) => {
17527
+ qt(e, Ue("message.voiceConnectionDone")) || Me({
17464
17528
  tool: "requestOAuthConnection",
17465
- toolCallId: At(e),
17529
+ toolCallId: Ut(e),
17466
17530
  output: {
17467
17531
  connected: !0,
17468
17532
  mcpServerId: t
17469
17533
  }
17470
17534
  });
17471
- }, Vt = () => {
17472
- rt.value = !rt.value, vt.setMuted(rt.value);
17535
+ }, $t = () => {
17536
+ _t.value = !_t.value, jt.setMuted(_t.value);
17473
17537
  };
17474
17538
  ne(() => {
17475
- it = !0, pt();
17539
+ vt = !0, Dt();
17476
17540
  });
17477
- let { pendingWakeup: Ht, isStopping: Ut, stop: Wt, spokenTurnStarted: Gt, spokenTurnsWritten: Kt, forgetSpokenTurns: qt } = lx({
17478
- agentId: () => f.agentId,
17479
- chatId: () => m.localChatId,
17480
- apiClient: () => ce.value,
17481
- messages: () => x.value,
17482
- refreshMessages: Ne,
17483
- status: () => S.value.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
17484
17548
  });
17485
- return (t, g) => {
17486
- let _ = wn;
17549
+ return (t, _) => {
17550
+ let v = wn, y = vn;
17487
17551
  return P(), Z("div", {
17488
17552
  ref_key: "chatViewEl",
17489
- ref: $e,
17553
+ ref: et,
17490
17554
  class: de(["pk-chatbot-view-chat", {
17491
- "pk-chatbot-view-chat--dragover": E(nt) && be.value?.enabled,
17492
- "pk-chatbot-view-chat--empty": Ze.value
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
17493
17558
  }])
17494
17559
  }, [
17495
17560
  F(K, {
17496
17561
  name: "pk-chatbot-view-chat-fade",
17497
17562
  mode: "out-in"
17498
17563
  }, {
17499
- default: B(() => [Ze.value ? (P(), L(Ub, {
17564
+ default: B(() => [Qe.value ? (P(), L(Ub, {
17500
17565
  key: 0,
17501
- greeting: E(Qe),
17502
- logo: E(h)?.logo,
17503
- name: E(m).name
17566
+ greeting: E($e),
17567
+ logo: E(g)?.logo,
17568
+ name: E(h).name
17504
17569
  }, null, 8, [
17505
17570
  "greeting",
17506
17571
  "logo",
@@ -17509,48 +17574,48 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17509
17574
  key: 1,
17510
17575
  class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
17511
17576
  interactive: "",
17512
- messages: E(x),
17513
- "confirm-verdicts-on-call": Nt.value,
17514
- status: E(S).status,
17515
- error: E(S).error,
17516
- "main-color": E(h)?.mainColor,
17517
- "text-color": E(h)?.textColor,
17518
- "revised-answers": E(b),
17519
- actions: E(y),
17520
- "message-feedbacks": E(C),
17521
- "feedback-message-id": E(ee)?.id,
17522
- "feedback-loading": E(w),
17523
- "feedback-submitted": E(D),
17524
- "feedback-error": E(O),
17525
- "show-extended-steps": E(h)?.showExtendedSteps,
17526
- "hide-reasoning": E(h)?.showReasoning === !1,
17527
- "awaiting-spoken-answer": at.value,
17528
- "host-working": Ue.value,
17529
- "host-confirmation": E(pe),
17530
- "is-dark": E(le),
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),
17531
17596
  "show-scroll-to-bottom": e.modifier === "fullscreen",
17532
- onFeedbackSubmit: g[0] ||= (e) => E(Oe)(e),
17533
- onFeedbackClose: g[1] ||= (e) => ee.value = void 0,
17534
- onRegenerate: E(we),
17535
- onAutoRetry: E(we),
17536
- onResetChat: E(Ae),
17537
- onShowInfo: g[2] ||= (e) => p("show-info", e),
17538
- onRevise: g[3] ||= (e) => p("revise", e),
17539
- onUpvote: E(Te),
17540
- onDownvote: E(Ee),
17541
- onFeedback: E(De),
17542
- onApprovalRespond: E(Me),
17543
- onConfirmRespond: It,
17544
- onHostConfirmRespond: E(Ie)
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)
17545
17610
  }, {
17546
17611
  "tool-showContactForm": B(({ part: e }) => [F(E(r), {
17547
17612
  part: e,
17548
- readonly: !E(ae),
17549
- submitted: E(k),
17550
- loading: E(te),
17551
- error: E(re),
17552
- "privacy-policy-notice": E(h)?.privacyPolicyNotice,
17553
- onSubmit: E(ke)
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)
17554
17619
  }, null, 8, [
17555
17620
  "part",
17556
17621
  "readonly",
@@ -17562,18 +17627,18 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17562
17627
  ])]),
17563
17628
  "tool-showSuggestedReply": B(({ part: e }) => [F(E(i), {
17564
17629
  part: e,
17565
- onSelect: (t) => Lt(e, t)
17630
+ onSelect: (t) => Xt(e, t)
17566
17631
  }, null, 8, ["part", "onSelect"])]),
17567
17632
  "tool-showSources": B(({ part: e }) => [F(E(a), {
17568
17633
  part: e,
17569
- "on-expand-context": et,
17570
- "on-download": tt
17634
+ "on-expand-context": pt,
17635
+ "on-download": mt
17571
17636
  }, null, 8, ["part"])]),
17572
17637
  "tool-showForm": B(({ part: e }) => [F(K, { mode: "out-in" }, {
17573
17638
  default: B(() => [F(E(n), {
17574
17639
  part: e,
17575
- answered: Mt(e),
17576
- onSelect: (t) => Ft("showForm", e, t)
17640
+ answered: Gt(e),
17641
+ onSelect: (t) => Jt("showForm", e, t)
17577
17642
  }, null, 8, [
17578
17643
  "part",
17579
17644
  "answered",
@@ -17585,8 +17650,8 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17585
17650
  default: B(() => [F(E(n), {
17586
17651
  part: e,
17587
17652
  "allow-custom-answer": "",
17588
- answered: Mt(e),
17589
- onSelect: (t) => Ft("showMultipleChoice", e, t)
17653
+ answered: Gt(e),
17654
+ onSelect: (t) => Jt("showMultipleChoice", e, t)
17590
17655
  }, null, 8, [
17591
17656
  "part",
17592
17657
  "answered",
@@ -17596,10 +17661,10 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17596
17661
  }, 1024)]),
17597
17662
  "tool-requestOAuthConnection": B(({ part: e }) => [F(E(s), {
17598
17663
  part: e,
17599
- "backend-url": E(ae),
17600
- "resolve-connection": (e) => E(ce).getOAuthAuthorizeUrl(f.agentId, e),
17601
- "check-connection": (e) => E(ce).getOAuthConnectionStatus(f.agentId, e),
17602
- onConnected: (t) => Bt(e, 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)
17603
17668
  }, null, 8, [
17604
17669
  "part",
17605
17670
  "backend-url",
@@ -17609,9 +17674,9 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17609
17674
  ])]),
17610
17675
  "tool-requestGeolocation": B(({ part: e }) => [F(E(o), {
17611
17676
  part: e,
17612
- "call-live": E(vt).isActive.value,
17613
- "reverse-geocode": (e, t) => E(ce).reverseGeocode(e, t),
17614
- onResult: (t) => zt(e, t)
17677
+ "call-live": E(jt).isActive.value,
17678
+ "reverse-geocode": (e, t) => E(le).reverseGeocode(e, t),
17679
+ onResult: (t) => Zt(e, t)
17615
17680
  }, null, 8, [
17616
17681
  "part",
17617
17682
  "call-live",
@@ -17620,9 +17685,9 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17620
17685
  ])]),
17621
17686
  "tool-showLocation": B(({ part: e }) => [F(E(c), {
17622
17687
  part: e,
17623
- "is-dark": E(le),
17624
- "main-color": E(h)?.mainColor,
17625
- "forward-geocode": (e, t) => E(ce).forwardGeocode(e, t)
17688
+ "is-dark": E(ue),
17689
+ "main-color": E(g)?.mainColor,
17690
+ "forward-geocode": (e, t) => E(le).forwardGeocode(e, t)
17626
17691
  }, null, 8, [
17627
17692
  "part",
17628
17693
  "is-dark",
@@ -17631,42 +17696,44 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17631
17696
  ])]),
17632
17697
  "tool-showDiagram": B(({ part: e }) => [F(E(l), {
17633
17698
  part: e,
17634
- "is-dark": E(le)
17699
+ "is-dark": E(ue)
17635
17700
  }, null, 8, ["part", "is-dark"])]),
17636
17701
  "tool-editSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
17637
17702
  key: E(dt)(e),
17638
17703
  part: e,
17639
- "file-url": xe
17704
+ "file-url": Se
17640
17705
  }, null, 8, ["part"]))]),
17641
17706
  "tool-editWordDocument": B(({ part: e }) => [(P(), L(E(u), {
17642
17707
  key: E(dt)(e),
17643
17708
  part: e,
17644
- "file-url": xe
17709
+ "file-url": Se,
17710
+ preview: lt
17645
17711
  }, null, 8, ["part"]))]),
17646
17712
  "tool-createSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
17647
17713
  key: E(dt)(e),
17648
17714
  part: e,
17649
- "file-url": xe
17715
+ "file-url": Se
17650
17716
  }, null, 8, ["part"]))]),
17651
17717
  "tool-createWordDocument": B(({ part: e }) => [(P(), L(E(u), {
17652
17718
  key: E(dt)(e),
17653
17719
  part: e,
17654
- "file-url": xe
17720
+ "file-url": Se,
17721
+ preview: lt
17655
17722
  }, null, 8, ["part"]))]),
17656
17723
  "tool-shareDocument": B(({ part: e }) => [(P(), L(E(d), {
17657
17724
  key: E(dt)(e),
17658
17725
  part: e,
17659
- "on-download": tt
17726
+ "on-download": mt
17660
17727
  }, null, 8, ["part"]))]),
17661
17728
  _: 1
17662
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(".")))]),
17663
17730
  _: 1
17664
17731
  }),
17665
- E(_e).length ? (P(), L(Vb, {
17732
+ E(ve).length ? (P(), L(Vb, {
17666
17733
  key: 0,
17667
- messages: E(_e),
17668
- onEdit: E(Re),
17669
- onRemove: E(ze)
17734
+ messages: E(ve),
17735
+ onEdit: E(ze),
17736
+ onRemove: E(Be)
17670
17737
  }, null, 8, [
17671
17738
  "messages",
17672
17739
  "onEdit",
@@ -17674,57 +17741,57 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17674
17741
  ])) : q("", !0),
17675
17742
  H("div", ux, [
17676
17743
  F(K, { name: "pk-chatbot-view-chat-fade" }, {
17677
- default: B(() => [Ze.value ? (P(), L(q_, {
17744
+ default: B(() => [Qe.value ? (P(), L(q_, {
17678
17745
  key: 0,
17679
17746
  class: "pk-chatbot-view-chat__aurora",
17680
17747
  "source-selector": ".pk-chatbot-input__form"
17681
17748
  })) : q("", !0)]),
17682
17749
  _: 1
17683
17750
  }),
17684
- E(Ht) && !E(j) ? (P(), L(rx, {
17751
+ E(en) && !E(ae) ? (P(), L(rx, {
17685
17752
  key: 0,
17686
- pending: E(Ht),
17687
- stopping: E(Ut),
17688
- onStop: E(Wt)
17753
+ pending: E(en),
17754
+ stopping: E(tn),
17755
+ onStop: E(nn)
17689
17756
  }, null, 8, [
17690
17757
  "pending",
17691
17758
  "stopping",
17692
17759
  "onStop"
17693
17760
  ])) : q("", !0),
17694
- E(j) ? (P(), Z("div", dx, N(E(He)("message.chatErrorConversationBlocked")), 1)) : xt.value === "idle" ? (P(), L(Ib, {
17761
+ E(ae) ? (P(), Z("div", dx, N(E(Ue)("message.chatErrorConversationBlocked")), 1)) : Nt.value === "idle" ? (P(), L(Ib, {
17695
17762
  key: 3,
17696
17763
  ref_key: "inputEl",
17697
- ref: V,
17698
- modelValue: E(A),
17699
- "onUpdate:modelValue": g[4] ||= (e) => Ce(A) ? A.value = e : null,
17700
- "pending-attachments": E(oe),
17701
- "onUpdate:pendingAttachments": g[5] ||= (e) => Ce(oe) ? oe.value = e : null,
17702
- placeholder: E(ie),
17703
- "dismissable-notice": E(Ye) && E(S).messages.length <= 1 ? E(Ye) : void 0,
17704
- "page-notice": Ke.value,
17705
- status: We.value,
17706
- "max-message-length": E(h)?.maxMessageLength,
17707
- "file-upload": be.value,
17708
- "attachment-limit-reached": E(M),
17709
- "attachment-notice": qe.value,
17710
- "voice-enabled": yt.value,
17711
- "queue-enabled": E(z),
17712
- "answer-notices": Je.value,
17713
- onStopGeneration: E(G),
17714
- onSubmit: E(Se),
17715
- onFileSelect: E(J),
17716
- onDismissAttachmentNotice: E(Y),
17717
- onDismissPageNotice: E(Pe),
17718
- onOpenAnswerNotice: E(Be),
17719
- onDismissAnswerNotice: E(Ve),
17720
- onVoiceStart: Et
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
17721
17788
  }, ge({ _: 2 }, [e.modifier === "fullscreen" ? {
17722
17789
  name: "prepend",
17723
17790
  fn: B(() => [H("span", fx, [F(H_, {
17724
17791
  class: "pk-chatbot-view-chat__agent-chip-avatar",
17725
- "img-src": E(h)?.logo,
17726
- name: E(m).name
17727
- }, null, 8, ["img-src", "name"]), E(m).name ? (P(), Z("strong", px, N(E(m).name), 1)) : q("", !0)])]),
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)])]),
17728
17795
  key: "0"
17729
17796
  } : void 0]), 1032, [
17730
17797
  "modelValue",
@@ -17749,19 +17816,19 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17749
17816
  "onDismissAnswerNotice"
17750
17817
  ])) : (P(), L($b, {
17751
17818
  key: 2,
17752
- state: xt.value,
17753
- sample: wt,
17754
- spectrum: Tt,
17755
- "remaining-seconds": E(vt).remainingSeconds.value,
17756
- muted: rt.value,
17757
- error: St.value,
17758
- "raw-error": E(vt).error.value,
17759
- live: E(vt).isActive.value,
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,
17760
17827
  class: "pk-chatbot-view-chat__voice",
17761
- onToggleMute: Vt,
17762
- onHangUp: Dt,
17763
- onRetry: kt,
17764
- onDismiss: Ot
17828
+ onToggleMute: $t,
17829
+ onHangUp: Bt,
17830
+ onRetry: Ht,
17831
+ onDismiss: Vt
17765
17832
  }, null, 8, [
17766
17833
  "state",
17767
17834
  "remaining-seconds",
@@ -17772,35 +17839,83 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17772
17839
  ]))
17773
17840
  ]),
17774
17841
  F(K, null, {
17775
- default: B(() => [E(nt) && be.value?.enabled ? (P(), Z("div", mx, [F(_, {
17842
+ default: B(() => [E(gt) && xe.value?.enabled ? (P(), Z("div", mx, [F(v, {
17776
17843
  name: "ri:upload-cloud-2-line",
17777
17844
  class: "pk-chatbot-view-chat__drop-overlay-icon"
17778
- }), H("span", null, N(E(He)("action.dropFile")), 1)])) : q("", !0)]),
17845
+ }), H("span", null, N(E(Ue)("action.dropFile")), 1)])) : q("", !0)]),
17779
17846
  _: 1
17780
- })
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)
17781
17896
  ], 2);
17782
17897
  };
17783
17898
  }
17784
- }), [["styles", [".pk-chatbot-view-chat{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.pk-chatbot-view-chat--empty{justify-content:center;gap:var(--spacing-md)}.pk-chatbot--phone .pk-chatbot-view-chat--empty{justify-content:flex-start}.pk-chatbot--phone .pk-chatbot-view-chat--empty .pk-chatbot-empty-state{flex:1;justify-content:center}.pk-chatbot-view-chat__input-stage{position:relative}.pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{inset:calc(-1 * var(--spacing-224)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot--phone .pk-chatbot-view-chat__input-stage .pk-chatbot-view-chat__aurora{--aurora-spread:1.6;inset:calc(-1 * var(--spacing-384) - var(--spacing-128)) calc(-1 * var(--spacing-96)) calc(-1 * var(--spacing-160))}.pk-chatbot-view-chat__agent-chip{align-items:center;gap:var(--spacing-6);padding:var(--spacing-4) var(--spacing-10) var(--spacing-4) var(--spacing-4);border:1px solid var(--color-surface-3);border-radius:var(--rounded-lg);background-color:var(--color-surface);flex-shrink:0;display:inline-flex}.pk-chatbot--tight .pk-chatbot-view-chat__agent-chip{display:none}.pk-chatbot-view-chat__agent-chip-avatar{width:var(--spacing-24);height:var(--spacing-24);font-size:var(--text-10)}.pk-chatbot-view-chat__agent-chip-name{font-size:var(--text-12);font-weight:var(--font-semibold);color:var(--color-word-2);white-space:nowrap}.pk-chatbot-view-chat-fade-enter-active{transition:opacity .25s var(--ease-out)}.pk-chatbot-view-chat-fade-leave-active{transition:opacity .15s var(--ease-out)}.pk-chatbot-view-chat-fade-enter-from,.pk-chatbot-view-chat-fade-leave-to{opacity:0}@media (prefers-reduced-motion:reduce){.pk-chatbot-view-chat-fade-enter-active,.pk-chatbot-view-chat-fade-leave-active{transition:none}}.pk-chatbot-view-chat__drop-overlay{inset:var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);z-index:1;justify-content:center;align-items:center;gap:var(--spacing-xs);background-color:color-mix(in srgb, var(--color-surface) 85%, transparent);border-radius:var(--rounded-xl);border:var(--spacing-2) dashed var(--color-surface-5);pointer-events:none;color:var(--color-word-3);flex-direction:column;display:flex;position:absolute}.pk-chatbot-view-chat__drop-overlay-icon{font-size:var(--spacing-32)}"]]]);
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)}"]]]);
17785
17900
  // ../../packages/components/src/chat/PkChatbotViewConversations.vue?vue&type=script&setup=true&lang.ts
17786
17901
  G(), R(), Y(), De();
17787
- var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17902
+ var Sx = { class: "flex flex-col flex-1 min-h-0 relative" }, Cx = {
17788
17903
  key: 0,
17789
17904
  class: "vv-item-group vv-item-group--fill"
17790
- }, Sx = { class: "vv-item-group__list" }, Cx = { class: "vv-item__entry" }, wx = { class: "flex flex-col gap-6 flex-1 min-w-0" }, Tx = {
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 = {
17791
17906
  key: 1,
17792
17907
  class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
17793
- }, Ex = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, Dx = { class: "flex flex-col gap-4" }, Ox = { class: "text-16 font-semibold text-word-1" }, kx = { class: "text-14 text-word-3 leading-relaxed" }, Ax = {
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 = {
17794
17909
  key: 2,
17795
17910
  class: "vv-item-group vv-item-group--fill"
17796
- }, jx = { class: "vv-item-group__list overflow-y-auto pb-64 light-scrollbar" }, Mx = {
17911
+ }, Nx = { class: "vv-item-group__list overflow-y-auto pb-64 light-scrollbar" }, Px = {
17797
17912
  key: 0,
17798
17913
  class: "flex flex-1 items-center gap-8 min-w-0 px-md py-12"
17799
- }, Nx = ["aria-current", "onClick"], Px = { class: "min-w-0 flex-1" }, Fx = { class: "flex items-center gap-8" }, Ix = { class: "vv-item__title font-medium flex-1" }, Lx = { class: "text-12 text-word-4 line-clamp-2" }, Rx = { class: "vv-item__actions" }, zx = {
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 = {
17800
17915
  key: 3,
17801
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",
17802
17917
  style: { background: "linear-gradient(to top, var(--color-surface) 55%, transparent)" }
17803
- }, Bx = /* @__PURE__ */ J({
17918
+ }, Hx = /* @__PURE__ */ J({
17804
17919
  __name: "PkChatbotViewConversations",
17805
17920
  props: { agentId: { type: String } },
17806
17921
  setup(e) {
@@ -17829,19 +17944,19 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17829
17944
  };
17830
17945
  return (e, t) => {
17831
17946
  let r = wn, o = En, c = bn, u = _n, d = xn, m = Tn;
17832
- return P(), Z("div", bx, [E(a) && E(i).length === 0 ? (P(), Z("div", xx, [H("div", Sx, [(P(), Z(V, null, w(5, (e) => H("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", {
17833
17948
  key: e,
17834
17949
  class: "vv-item vv-item--roomy vv-item--plain"
17835
- }, [H("div", Cx, [H("div", wx, [
17950
+ }, [H("div", Tx, [H("div", Ex, [
17836
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),
17837
17952
  t[6] ||= H("div", { class: "vv-skeleton h-12 rounded" }, [H("div", { class: "vv-skeleton__item" })], -1),
17838
17953
  t[7] ||= H("div", { class: "vv-skeleton h-12 rounded w-160" }, [H("div", { class: "vv-skeleton__item" })], -1)
17839
- ])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div", Tx, [
17840
- H("div", Ex, [F(r, {
17954
+ ])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div", Dx, [
17955
+ H("div", Ox, [F(r, {
17841
17956
  name: "ri:chat-3-line",
17842
17957
  class: "w-28 h-28 text-word-4"
17843
17958
  })]),
17844
- H("div", Dx, [H("strong", Ox, N(E(n)("message.noConversations")), 1), H("span", kx, N(E(n)("message.noConversationsHint")), 1)]),
17959
+ H("div", kx, [H("strong", Ax, N(E(n)("message.noConversations")), 1), H("span", jx, N(E(n)("message.noConversationsHint")), 1)]),
17845
17960
  F(o, {
17846
17961
  modifiers: "primary rounded",
17847
17962
  icon: "ri:add-line",
@@ -17849,10 +17964,10 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17849
17964
  label: E(n)("action.startNewChat"),
17850
17965
  onClick: t[0] ||= (e) => E(l)()
17851
17966
  }, null, 8, ["label"])
17852
- ])) : (P(), Z("div", Ax, [H("ul", jx, [(P(!0), Z(V, null, w(E(i), (e) => (P(), Z("li", {
17967
+ ])) : (P(), Z("div", Mx, [H("ul", Nx, [(P(!0), Z(V, null, w(E(i), (e) => (P(), Z("li", {
17853
17968
  key: e.id,
17854
17969
  class: de(["vv-item vv-item--roomy", { "vv-item--current": b(e) }])
17855
- }, [E(f) === e.id ? (P(), Z("div", Mx, [F(c, {
17970
+ }, [E(f) === e.id ? (P(), Z("div", Px, [F(c, {
17856
17971
  modelValue: E(p),
17857
17972
  "onUpdate:modelValue": t[1] ||= (e) => Ce(p) ? p.value = e : null,
17858
17973
  class: "flex-1 mb-0",
@@ -17886,8 +18001,8 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17886
18001
  class: "vv-item__entry",
17887
18002
  "aria-current": b(e) ? "true" : void 0,
17888
18003
  onClick: (t) => y(e.id)
17889
- }, [H("div", Px, [H("div", Fx, [
17890
- H("strong", Ix, N(E(sn)(e.title) || x(e.messages, "assistant")), 1),
18004
+ }, [H("div", Ix, [H("div", Lx, [
18005
+ H("strong", Rx, N(E(sn)(e.title) || x(e.messages, "assistant")), 1),
17891
18006
  E(s).includes(e.id) ? (P(), L(r, {
17892
18007
  key: 0,
17893
18008
  name: "loading-loop",
@@ -17900,7 +18015,7 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17900
18015
  class: "text-word-4 text-smaller shrink-0",
17901
18016
  date: e.lastMessageAt
17902
18017
  }, null, 8, ["date"])
17903
- ]), H("span", Lx, N(E(sn)(E(Ge)(e.summary, E(n))) || x(e.messages, "user")), 1)])], 8, Nx), H("div", Rx, [F(m, oe({ ref_for: !0 }, {
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 }, {
17904
18019
  placement: "bottom-end",
17905
18020
  modifiers: "menu",
17906
18021
  flip: !0,
@@ -17920,7 +18035,7 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17920
18035
  modifiers: "action-quiet-small"
17921
18036
  }, null, 8, ["title"])]),
17922
18037
  _: 2
17923
- }, 1040)])], 64))], 2))), 128))])])), E(i).length > 0 ? (P(), Z("div", zx, [F(o, {
18038
+ }, 1040)])], 64))], 2))), 128))])])), E(i).length > 0 ? (P(), Z("div", Vx, [F(o, {
17924
18039
  class: "text-14 pointer-events-auto",
17925
18040
  modifiers: "primary rounded",
17926
18041
  icon: "ri:add-line",
@@ -17945,16 +18060,16 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17945
18060
  });
17946
18061
  // ../../packages/components/src/chat/PkChatbotViewFiles.vue?vue&type=script&setup=true&lang.ts
17947
18062
  G(), R(), Y();
17948
- var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
18063
+ var Ux = { class: "flex flex-col flex-1 min-h-0 relative" }, Wx = {
17949
18064
  key: 0,
17950
18065
  class: "vv-item-group vv-item-group--fill"
17951
- }, Ux = { class: "vv-item-group__list" }, Wx = { class: "vv-item__entry" }, Gx = { class: "flex flex-col gap-6 flex-1 min-w-0" }, Kx = {
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 = {
17952
18067
  key: 1,
17953
18068
  class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
17954
- }, qx = { class: "w-64 h-64 rounded-full bg-surface-1 border border-surface-3 flex items-center justify-center" }, Jx = { class: "text-14 text-word-3 leading-relaxed" }, Yx = {
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 = {
17955
18070
  key: 2,
17956
18071
  class: "vv-item-group vv-item-group--fill"
17957
- }, Xx = { class: "pk-chatbot-files vv-item-group__list overflow-y-auto light-scrollbar" }, Zx = ["title", "onClick"], Qx = { class: "pk-chatbot-files__icon" }, $x = ["src", "onError"], eS = { class: "flex flex-col min-w-0 flex-1" }, tS = { class: "vv-item__title" }, nS = { class: "text-12 text-word-3" }, rS = { class: "vv-item__actions pk-chatbot-files__actions" }, iS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
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({
17958
18073
  __name: "PkChatbotViewFiles",
17959
18074
  props: { agentId: { type: String } },
17960
18075
  setup(e) {
@@ -17973,13 +18088,13 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
17973
18088
  };
17974
18089
  return (e, t) => {
17975
18090
  let r = wn, i = En;
17976
- return P(), Z("div", Vx, [E(o) && E(a).length === 0 ? (P(), Z("div", Hx, [H("div", Ux, [(P(), Z(V, null, w(4, (e) => H("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", {
17977
18092
  key: e,
17978
18093
  class: "vv-item vv-item--roomy vv-item--plain"
17979
- }, [H("div", Wx, [t[2] ||= H("div", { class: "vv-skeleton w-36 h-36 shrink-0 rounded-md" }, [H("div", { class: "vv-skeleton__item" })], -1), H("div", Gx, [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", Kx, [H("div", qx, [F(r, {
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, {
17980
18095
  name: "ri:folder-open-line",
17981
18096
  class: "w-28 h-28 text-word-4"
17982
- })]), H("span", Jx, N(E(n)("userFiles.chatFilesEmpty")), 1)])) : (P(), Z("div", Yx, [H("ul", Xx, [(P(!0), Z(V, null, w(E(a), (e) => (P(), Z("li", {
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", {
17983
18098
  key: e.documentId,
17984
18099
  class: "vv-item vv-item--roomy"
17985
18100
  }, [H("button", {
@@ -17987,7 +18102,7 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
17987
18102
  class: "vv-item__entry",
17988
18103
  title: E(n)("userFiles.open"),
17989
18104
  onClick: (t) => E(u)(e)
17990
- }, [H("span", Qx, [E(s)(e) ? (P(), Z("img", {
18105
+ }, [H("span", eS, [E(s)(e) ? (P(), Z("img", {
17991
18106
  key: 0,
17992
18107
  src: E(c)(e),
17993
18108
  loading: "lazy",
@@ -17995,10 +18110,10 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
17995
18110
  alt: "",
17996
18111
  class: "pk-chatbot-files__thumb",
17997
18112
  onError: (t) => E(l)(e)
17998
- }, null, 40, $x)) : (P(), L(r, {
18113
+ }, null, 40, tS)) : (P(), L(r, {
17999
18114
  key: 1,
18000
18115
  name: E(on)(e.mimeType)
18001
- }, null, 8, ["name"]))]), H("span", eS, [H("span", tS, N(e.name || E(n)("userFiles.untitled")), 1), H("span", nS, N([E(d)(e.createdAt), E(f)(e)].filter(Boolean).join(" · ")), 1)])], 8, Zx), H("div", rS, [F(i, {
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, {
18002
18117
  modifiers: "action-quiet-small",
18003
18118
  icon: "ri:download-line",
18004
18119
  title: E(n)("action.download"),
@@ -18021,16 +18136,16 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
18021
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)}"]]]);
18022
18137
  // ../../packages/components/src/chat/PkChatbotViewProfile.vue?vue&type=script&setup=true&lang.ts
18023
18138
  G(), R(), Y();
18024
- var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class: "flex flex-col items-center gap-sm pt-lg px-lg pb-md bg-surface-1 border-b border-surface-3" }, sS = { class: "flex flex-col items-center gap-6 text-center" }, cS = {
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 = {
18025
18140
  key: 0,
18026
18141
  class: "text-16 font-semibold text-word-1 leading-tight"
18027
- }, lS = {
18142
+ }, dS = {
18028
18143
  key: 1,
18029
18144
  class: "text-12 text-word-3 leading-none"
18030
- }, uS = { class: "flex flex-col gap-sm p-md flex-1" }, dS = ["href"], fS = { class: "w-40 h-40 rounded-lg bg-surface-2 border border-surface-3 flex items-center justify-center shrink-0" }, pS = { class: "flex flex-col flex-1 min-w-0 gap-1" }, mS = { class: "text-14 font-medium text-word-1 leading-tight" }, hS = { class: "text-12 text-word-3 leading-tight" }, gS = {
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 = {
18031
18146
  key: 0,
18032
18147
  class: "px-md py-sm"
18033
- }, _S = /* @__PURE__ */ J({
18148
+ }, yS = /* @__PURE__ */ J({
18034
18149
  __name: "PkChatbotViewProfile",
18035
18150
  props: { agentId: { type: String } },
18036
18151
  setup(e) {
@@ -18049,13 +18164,13 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
18049
18164
  }
18050
18165
  return (e, t) => {
18051
18166
  let a = Cn, p = wn, m = En;
18052
- return P(), Z("div", aS, [
18053
- H("div", oS, [F(H_, {
18167
+ return P(), Z("div", sS, [
18168
+ H("div", cS, [F(H_, {
18054
18169
  class: "w-64 h-64",
18055
18170
  name: o.value?.name ?? E(r),
18056
18171
  "img-src": o.value?.image ?? E(i)?.logo
18057
- }, null, 8, ["name", "img-src"]), H("div", sS, [o.value?.name ?? E(r) ? (P(), Z("strong", cS, N(o.value?.name ?? E(r)), 1)) : q("", !0), o.value?.email ? (P(), Z("span", lS, N(o.value.email), 1)) : q("", !0)])]),
18058
- H("div", uS, [d.value ? (P(), L(a, {
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, {
18059
18174
  key: 0,
18060
18175
  modifiers: "danger",
18061
18176
  content: d.value
@@ -18066,17 +18181,17 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
18066
18181
  rel: "noopener noreferrer",
18067
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"
18068
18183
  }, [
18069
- H("div", fS, [F(p, {
18184
+ H("div", mS, [F(p, {
18070
18185
  name: "ri:user-settings-line",
18071
18186
  class: "w-20 h-20 text-word-2"
18072
18187
  })]),
18073
- H("div", pS, [H("span", mS, N(E(n)("action.manageProfile")), 1), H("span", hS, N(E(n)("label.manageProfileDescription")), 1)]),
18188
+ H("div", hS, [H("span", gS, N(E(n)("action.manageProfile")), 1), H("span", _S, N(E(n)("label.manageProfileDescription")), 1)]),
18074
18189
  F(p, {
18075
18190
  name: "ri:arrow-right-s-line",
18076
18191
  class: "w-16 h-16 text-word-4 shrink-0"
18077
18192
  })
18078
- ], 8, dS)) : q("", !0)]),
18079
- l.value ? q("", !0) : (P(), Z("div", gS, [F(m, {
18193
+ ], 8, pS)) : q("", !0)]),
18194
+ l.value ? q("", !0) : (P(), Z("div", vS, [F(m, {
18080
18195
  modifiers: "secondary-danger",
18081
18196
  class: "w-full",
18082
18197
  icon: "ri:logout-box-line",
@@ -18096,13 +18211,13 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
18096
18211
  });
18097
18212
  // ../../packages/components/src/chat/PkChatbot.vue?vue&type=script&setup=true&lang.ts
18098
18213
  G(), R(), Y();
18099
- var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 }, xS = { class: "pk-chatbot__warning-body" }, SS = { class: "pk-chatbot__warning-header" }, CS = { class: "pk-chatbot__warning-title" }, wS = { class: "pk-chatbot__warning-text" }, TS = {
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 = {
18100
18215
  key: 5,
18101
18216
  class: "pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto"
18102
- }, ES = {
18217
+ }, OS = {
18103
18218
  key: 7,
18104
18219
  class: "pk-chatbot__footer"
18105
- }, DS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18220
+ }, kS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18106
18221
  __name: "PkChatbot",
18107
18222
  props: /*@__PURE__*/ ae({
18108
18223
  baseUrl: { type: String },
@@ -18199,7 +18314,7 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18199
18314
  key: 0,
18200
18315
  class: "pk-chatbot__header",
18201
18316
  style: O(fe.value ? { backgroundColor: z.value } : void 0)
18202
- }, [H("div", vS, [E(d) === "chat" ? re.value ? q("", !0) : (P(), L(H_, {
18317
+ }, [H("div", bS, [E(d) === "chat" ? re.value ? q("", !0) : (P(), L(H_, {
18203
18318
  key: 1,
18204
18319
  class: "pk-chatbot__avatar",
18205
18320
  name: e.name,
@@ -18216,7 +18331,7 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18216
18331
  class: "pk-chatbot__title",
18217
18332
  title: be.value,
18218
18333
  style: O(fe.value ? { color: _e.value } : void 0)
18219
- }, N(be.value), 13, yS)]), F(f, {
18334
+ }, N(be.value), 13, xS)]), F(f, {
18220
18335
  class: "pk-chatbot__header-end",
18221
18336
  modifiers: "compact"
18222
18337
  }, {
@@ -18307,14 +18422,14 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18307
18422
  ]),
18308
18423
  _: 3
18309
18424
  })], 4)),
18310
- ue.value ? (P(), Z("div", bS, [H("div", xS, [F(p, { modifiers: "callout" }, {
18311
- default: B(() => [H("div", SS, [F(s, {
18425
+ ue.value ? (P(), Z("div", SS, [H("div", CS, [F(p, { modifiers: "callout" }, {
18426
+ default: B(() => [H("div", wS, [F(s, {
18312
18427
  name: "ri:alert-line",
18313
18428
  class: "pk-chatbot__warning-icon"
18314
- }), H("strong", CS, N(E(i)("message.warning")), 1)]), H("p", wS, N(E(i)("message.reasoningAgent")), 1)]),
18429
+ }), H("strong", TS, N(E(i)("message.warning")), 1)]), H("p", ES, N(E(i)("message.reasoningAgent")), 1)]),
18315
18430
  _: 1
18316
18431
  })])])) : q("", !0),
18317
- E(d) === "chat" ? (P(), L(yx, {
18432
+ E(d) === "chat" ? (P(), L(xx, {
18318
18433
  key: 2,
18319
18434
  "agent-id": e.agentId,
18320
18435
  modifier: e.modifier,
@@ -18328,23 +18443,23 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18328
18443
  "agent-id",
18329
18444
  "modifier",
18330
18445
  "user-name"
18331
- ])) : E(d) === "conversations" ? (P(), L(Bx, {
18446
+ ])) : E(d) === "conversations" ? (P(), L(Hx, {
18332
18447
  key: 3,
18333
18448
  "agent-id": e.agentId
18334
18449
  }, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
18335
18450
  name: e,
18336
18451
  fn: B((n) => [pe(t.$slots, e, te(k(n)))])
18337
- }))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(iS, {
18452
+ }))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(oS, {
18338
18453
  key: 4,
18339
18454
  "agent-id": e.agentId
18340
- }, null, 8, ["agent-id"])) : E(d) === "auth" ? (P(), Z("div", TS, [pe(t.$slots, "view-auth")])) : (P(), L(_S, {
18455
+ }, null, 8, ["agent-id"])) : E(d) === "auth" ? (P(), Z("div", DS, [pe(t.$slots, "view-auth")])) : (P(), L(yS, {
18341
18456
  key: 6,
18342
18457
  "agent-id": e.agentId
18343
18458
  }, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
18344
18459
  name: e,
18345
18460
  fn: B((n) => [pe(t.$slots, e, te(k(n)))])
18346
18461
  }))]), 1032, ["agent-id"])),
18347
- E(ye) ? (P(), Z("div", ES, [F(St, {
18462
+ E(ye) ? (P(), Z("div", OS, [F(St, {
18348
18463
  markdown: E(ye),
18349
18464
  class: "wysiwyg"
18350
18465
  }, null, 8, ["markdown"])])) : q("", !0)
@@ -18354,11 +18469,11 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18354
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}"]]]);
18355
18470
  // ../../packages/components/src/chat/PkPageControlBar.vue?vue&type=script&setup=true&lang.ts
18356
18471
  G(), Y(), De();
18357
- var OS = {
18472
+ var AS = {
18358
18473
  key: 0,
18359
18474
  class: "pk-page-control-bar",
18360
18475
  role: "status"
18361
- }, kS = { class: "pk-page-control-bar__text" }, AS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18476
+ }, jS = { class: "pk-page-control-bar__text" }, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18362
18477
  __name: "PkPageControlBar",
18363
18478
  props: {
18364
18479
  active: { type: Boolean },
@@ -18371,7 +18486,7 @@ var OS = {
18371
18486
  name: "pk-page-control-bar",
18372
18487
  appear: ""
18373
18488
  }, {
18374
- default: B(() => [e.active ? (P(), Z("div", OS, [H("span", kS, [Ne(N(t.$t("messagePart.pageControlActive")) + " ", 1), e.action ? (P(), Z(V, { key: 0 }, [Ne("· " + N(e.action), 1)], 64)) : q("", !0)]), H("button", {
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", {
18375
18490
  type: "button",
18376
18491
  class: "pk-page-control-bar__stop",
18377
18492
  onClick: r[0] ||= (e) => n("stop")
@@ -18382,7 +18497,7 @@ var OS = {
18382
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}}"]]]);
18383
18498
  // ../../packages/components/src/chat/PkHostCallConfirmDialog.vue?vue&type=script&setup=true&lang.ts
18384
18499
  G(), De(), Y(), R();
18385
- var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18500
+ var NS = 16, PS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18386
18501
  __name: "PkHostCallConfirmDialog",
18387
18502
  props: {
18388
18503
  question: { type: String },
@@ -18398,7 +18513,7 @@ var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18398
18513
  i.value = void 0;
18399
18514
  return;
18400
18515
  }
18401
- let a = Math.max(jS, Math.min(n.top, window.innerHeight - e.offsetHeight - jS)), o = {
18516
+ let a = Math.max(NS, Math.min(n.top, window.innerHeight - e.offsetHeight - NS)), o = {
18402
18517
  left: `${n.left}px`,
18403
18518
  top: `${a}px`,
18404
18519
  width: `${n.width}px`
@@ -18426,37 +18541,37 @@ var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18426
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}"]]]);
18427
18542
  // src/composables/usePageModal.ts
18428
18543
  R(), G();
18429
- var NS = 300, PS = 50, FS = /* @__PURE__ */ new Set(["EMBEDDED-CHAT-WIDGET", "FLOATING-CHAT-WIDGET"]), IS = (e) => [...e.querySelectorAll("dialog:modal")], LS = (e) => [...e.querySelectorAll("*")].filter((e) => !FS.has(e.tagName)).map((e) => e.shadowRoot).filter((e) => !!e), RS = () => {
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 = () => {
18430
18545
  let e = [], t = document.activeElement;
18431
18546
  for (; t;) e.push(t), t = t.shadowRoot?.activeElement ?? null;
18432
18547
  return e;
18433
- }, zS = (e) => {
18434
- let t = (t) => IS(t).filter((t) => !e?.(t)), n;
18548
+ }, VS = (e) => {
18549
+ let t = (t) => RS(t).filter((t) => !e?.(t)), n;
18435
18550
  try {
18436
18551
  n = t(document);
18437
- let e = n.length === 0 ? LS(document) : [];
18438
- for (let r = 0; n.length === 0 && e.length > 0 && r < PS; r++) {
18552
+ let e = n.length === 0 ? zS(document) : [];
18553
+ for (let r = 0; n.length === 0 && e.length > 0 && r < IS; r++) {
18439
18554
  let r = e.shift();
18440
- n = t(r), e.push(...LS(r));
18555
+ n = t(r), e.push(...zS(r));
18441
18556
  }
18442
18557
  } catch {
18443
18558
  return null;
18444
18559
  }
18445
- let r = RS();
18560
+ let r = BS();
18446
18561
  return [...n].reverse().find((e) => r.some((t) => e.contains(t))) ?? n[n.length - 1] ?? null;
18447
18562
  };
18448
- function BS(e) {
18563
+ function HS(e) {
18449
18564
  let t = he(null), n, r = () => {
18450
18565
  clearInterval(n), n = void 0, t.value = null;
18451
18566
  };
18452
18567
  return I(() => X(e), (e) => {
18453
- r(), e && (t.value = zS(), n = setInterval(() => {
18454
- let e = zS();
18568
+ r(), e && (t.value = VS(), n = setInterval(() => {
18569
+ let e = VS();
18455
18570
  e !== t.value && (t.value = e);
18456
- }, NS));
18571
+ }, FS));
18457
18572
  }, { immediate: !0 }), be(r), t;
18458
18573
  }
18459
- var VS = () => {
18574
+ var US = () => {
18460
18575
  for (let e of document.querySelectorAll("embedded-chat-widget, floating-chat-widget")) {
18461
18576
  let t = e.shadowRoot?.querySelector(".pk-page-control-bar");
18462
18577
  if (t) {
@@ -18471,16 +18586,16 @@ var VS = () => {
18471
18586
  ink: "#111",
18472
18587
  paper: "#fff"
18473
18588
  };
18474
- }, HS = 48, US = 8, WS = (e, t) => {
18475
- let n = t.getBoundingClientRect(), r = e.offsetHeight, i = window.innerHeight - n.bottom, a = HS, o;
18476
- n.top < HS + r + US && (n.top >= r + 16 ? a = n.top - r - US : i >= r + 16 && (a = void 0, o = i - r - US)), 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} * ${GS}px`);
18477
- }, GS = 16, KS = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1, qS = (e) => {
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) => {
18478
18593
  let t = e.shadowRoot?.querySelector("div");
18479
- if (!t || typeof t.animate != "function" || KS()) {
18594
+ if (!t || typeof t.animate != "function" || JS()) {
18480
18595
  e.remove();
18481
18596
  return;
18482
18597
  }
18483
- let n = t.style.getPropertyValue("--stop-from") || `-1 * ${GS}px`;
18598
+ let n = t.style.getPropertyValue("--stop-from") || `-1 * ${qS}px`;
18484
18599
  t.animate([{
18485
18600
  opacity: 1,
18486
18601
  translate: "0 0",
@@ -18495,18 +18610,18 @@ var VS = () => {
18495
18610
  fill: "forwards"
18496
18611
  }).finished.then(() => e.remove(), () => e.remove());
18497
18612
  };
18498
- function JS(e, t, n) {
18613
+ function XS(e, t, n) {
18499
18614
  let r, i, a = () => {
18500
- clearInterval(i), i = void 0, r && qS(r), r = void 0;
18615
+ clearInterval(i), i = void 0, r && YS(r), r = void 0;
18501
18616
  };
18502
18617
  I([e, () => X(t)], ([e, t]) => {
18503
18618
  if (a(), !e || !t) return;
18504
18619
  r = document.createElement(tp);
18505
- let o = r.attachShadow({ mode: "open" }), s = document.createElement("style"), { ink: c, paper: l } = VS();
18620
+ let o = r.attachShadow({ mode: "open" }), s = document.createElement("style"), { ink: c, paper: l } = US();
18506
18621
  s.textContent = `
18507
18622
  :host { all: initial; }
18508
18623
  div {
18509
- position: fixed; top: ${HS}px; left: 50%; transform: translateX(-50%);
18624
+ position: fixed; top: ${WS}px; left: 50%; transform: translateX(-50%);
18510
18625
  z-index: 2147483647; display: flex; align-items: center; gap: 12px;
18511
18626
  max-width: min(384px, calc(100vw - 32px)); padding: 8px 8px 8px 16px;
18512
18627
  border-radius: 9999px; background: ${c}; color: ${l};
@@ -18515,7 +18630,7 @@ function JS(e, t, n) {
18515
18630
  animation: stop-in 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
18516
18631
  }
18517
18632
  @keyframes stop-in {
18518
- from { opacity: 0; translate: 0 calc(var(--stop-from, -1 * ${GS}px)); scale: 0.96; }
18633
+ from { opacity: 0; translate: 0 calc(var(--stop-from, -1 * ${qS}px)); scale: 0.96; }
18519
18634
  }
18520
18635
  @media (prefers-reduced-motion: reduce) {
18521
18636
  div { animation: none; }
@@ -18531,11 +18646,11 @@ function JS(e, t, n) {
18531
18646
  d.textContent = n.text();
18532
18647
  let f = document.createElement("button");
18533
18648
  f.type = "button", f.textContent = n.stopLabel(), f.addEventListener("click", () => n.onStop()), u.append(d, f), o.append(s, u), e.append(r);
18534
- let p = () => WS(u, e);
18535
- p(), i = setInterval(p, NS);
18649
+ let p = () => KS(u, e);
18650
+ p(), i = setInterval(p, FS);
18536
18651
  }, { immediate: !0 }), be(a);
18537
18652
  }
18538
- var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, button, input, label, select, summary, textarea, [contenteditable]", eC = "dialog[open], [popover]:popover-open", tC = [
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 = [
18539
18654
  ["position", "fixed"],
18540
18655
  ["right", "auto"],
18541
18656
  ["bottom", "auto"],
@@ -18547,30 +18662,30 @@ var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, b
18547
18662
  ["max-width", "none"],
18548
18663
  ["max-height", "none"],
18549
18664
  ["z-index", "2147483646"]
18550
- ], nC = [
18665
+ ], iC = [
18551
18666
  "left",
18552
18667
  "top",
18553
18668
  "width",
18554
18669
  "height"
18555
- ], rC = () => typeof Element.prototype.moveBefore == "function", iC = (...e) => e.flatMap((e) => e.getAnimations?.() ?? []).filter((e) => e.playState === "running" && Number.isFinite(e.effect?.getComputedTiming().iterations ?? Infinity)), aC = (e) => iC(e).some((e) => {
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) => {
18556
18671
  let t = e.effect;
18557
18672
  if (!t?.getKeyframes || e.playbackRate <= 0) return !1;
18558
18673
  let { iterations: n, direction: r } = t.getComputedTiming();
18559
18674
  if (n !== 1 || r !== "normal" && r !== "reverse") return !1;
18560
18675
  let i = t.getKeyframes(), a = r === "reverse" ? i[0] : i[i.length - 1];
18561
18676
  return !!a && "opacity" in a && Number(a.opacity) === 0;
18562
- }), oC = (e) => aC(e) || [...e.children].some(aC), sC = (e, t) => e.width >= t.width * .95 && e.height >= t.height * .95, cC = (e) => {
18677
+ }), cC = (e) => sC(e) || [...e.children].some(sC), lC = (e, t) => e.width >= t.width * .95 && e.height >= t.height * .95, uC = (e) => {
18563
18678
  let t = e.getBoundingClientRect();
18564
- if (!sC(t, {
18679
+ if (!lC(t, {
18565
18680
  width: window.innerWidth,
18566
18681
  height: window.innerHeight
18567
18682
  })) return e;
18568
18683
  let n = (e) => {
18569
18684
  let n = e.getBoundingClientRect();
18570
- return sC(n, t) ? 0 : n.width * n.height;
18685
+ return lC(n, t) ? 0 : n.width * n.height;
18571
18686
  }, r = [...e.children].filter((e) => n(e) > 0).sort((e, t) => n(t) - n(e))[0];
18572
- return r && !r.matches($S) ? r : e;
18573
- }, lC = (e) => e.isConnected && !e.closest("[inert]") && e.getBoundingClientRect().width > 0, uC = (e, t, n) => {
18687
+ return r && !r.matches(tC) ? r : e;
18688
+ }, dC = (e) => e.isConnected && !e.closest("[inert]") && e.getBoundingClientRect().width > 0, fC = (e, t, n) => {
18574
18689
  let r = t.shadowRoot, i = [...r?.querySelectorAll("*") ?? []].filter((e) => e.scrollTop > 0).map((e) => [e, e.scrollTop]), a = r?.activeElement, o = e;
18575
18690
  try {
18576
18691
  o.moveBefore(t, n);
@@ -18580,19 +18695,19 @@ var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, b
18580
18695
  for (let [e, t] of i) e.scrollTop = t;
18581
18696
  return a && r?.activeElement !== a && a.focus({ preventScroll: !0 }), !0;
18582
18697
  };
18583
- function dC(e, t) {
18698
+ function pC(e, t) {
18584
18699
  let n = he(!1);
18585
- if (!e || !rC()) return n;
18700
+ if (!e || !aC()) return n;
18586
18701
  let r = !1, i, a, o, s, c, l = {
18587
18702
  x: 0,
18588
18703
  y: 0
18589
18704
  }, u, d = 0, f, p, m, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), _ = () => {
18590
- let t = [...tC.map(([e]) => e), ...nC].map((t) => [
18705
+ let t = [...rC.map(([e]) => e), ...iC].map((t) => [
18591
18706
  t,
18592
18707
  e.style.getPropertyValue(t),
18593
18708
  e.style.getPropertyPriority(t)
18594
18709
  ]);
18595
- for (let [t, n] of tC) e.style.setProperty(t, n, "important");
18710
+ for (let [t, n] of rC) e.style.setProperty(t, n, "important");
18596
18711
  return () => {
18597
18712
  for (let [n, r, i] of t) r ? e.style.setProperty(n, r, i) : e.style.removeProperty(n);
18598
18713
  };
@@ -18622,12 +18737,12 @@ function dC(e, t) {
18622
18737
  opacityProperty: !0,
18623
18738
  visibilityProperty: !0
18624
18739
  }) === !1) return !1;
18625
- let r = e.shadowRoot, i = (e) => !!r?.contains(e), a = (r ?? document).elementsFromPoint(n.left + n.width / 2, n.top + n.height / 2).find((e) => !(i(e) && e.closest(eC)));
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)));
18626
18741
  return !!a && (e.contains(a) || i(a));
18627
18742
  }, x = (t) => {
18628
18743
  if (t.key !== "Escape") return;
18629
18744
  let n = t.composedPath();
18630
- n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(eC)) || t.preventDefault();
18745
+ n.slice(0, n.indexOf(e)).some((e) => e instanceof Element && e.matches(nC)) || t.preventDefault();
18631
18746
  }, S = () => {
18632
18747
  u?.disconnect(), u = void 0, cancelAnimationFrame(d), e.removeEventListener("keydown", x);
18633
18748
  let t = !!a?.contains(e) || !!i?.contains(e);
@@ -18638,16 +18753,16 @@ function dC(e, t) {
18638
18753
  } : s;
18639
18754
  if (t) {
18640
18755
  let n = t.next?.parentNode === t.parent ? t.next : null;
18641
- t.parent.isConnected && e.isConnected && uC(t.parent, e, n) || t.parent.insertBefore(e, n);
18756
+ t.parent.isConnected && e.isConnected && fC(t.parent, e, n) || t.parent.insertBefore(e, n);
18642
18757
  }
18643
18758
  }
18644
18759
  o?.remove(), c?.(), i = void 0, a = void 0, o = void 0, s = void 0, c = void 0, n.value = !1;
18645
18760
  }, C = () => {
18646
- let e = i, t = iC(e, ...e.children).length > 0;
18761
+ let e = i, t = oC(e, ...e.children).length > 0;
18647
18762
  t ? h.delete(e) : g.add(e), S(), t && T();
18648
18763
  }, ee = () => {
18649
18764
  if (i && o) {
18650
- if (lC(o)) {
18765
+ if (dC(o)) {
18651
18766
  if (y(), !n.value) {
18652
18767
  if (!b()) {
18653
18768
  C();
@@ -18658,15 +18773,15 @@ function dC(e, t) {
18658
18773
  d = requestAnimationFrame(ee);
18659
18774
  } else {
18660
18775
  let t = i;
18661
- S(), lC(e) && g.add(t), T();
18776
+ S(), dC(e) && g.add(t), T();
18662
18777
  }
18663
18778
  }
18664
18779
  }, w = (t) => {
18665
- let n = cC(t), { height: r } = e.getBoundingClientRect(), f = document.createElement("div");
18666
- f.className = e.className, f.style.cssText = e.style.cssText, f.style.height || (f.style.minHeight = `${r}px`), f.setAttribute("aria-hidden", "true"), f.setAttribute(QS, ""), s = {
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 = {
18667
18782
  parent: e.parentNode,
18668
18783
  next: e.nextSibling
18669
- }, s.parent.insertBefore(f, e), o = f, c = _(), uC(n, e, null) ? (i = t, a = n, l = {
18784
+ }, s.parent.insertBefore(f, e), o = f, c = _(), fC(n, e, null) ? (i = t, a = n, l = {
18670
18785
  x: 0,
18671
18786
  y: 0
18672
18787
  }, y(), e.addEventListener("keydown", x), u = new MutationObserver(T), u.observe(t, {
@@ -18692,27 +18807,27 @@ function dC(e, t) {
18692
18807
  let t = (e) => !e.open || !e.isConnected;
18693
18808
  for (let e of [g, h]) for (let n of e) t(n) && e.delete(n);
18694
18809
  m && t(m.dialog) && (m = void 0);
18695
- let s = zS((e) => e === p), c = s && !g.has(s) && s.getBoundingClientRect().width > 0 && !oC(s) ? s : null;
18810
+ let s = VS((e) => e === p), c = s && !g.has(s) && s.getBoundingClientRect().width > 0 && !cC(s) ? s : null;
18696
18811
  if (i) {
18697
- if (i === c && a?.contains(e) && i.contains(a) && o && lC(o)) {
18812
+ if (i === c && a?.contains(e) && i.contains(a) && o && dC(o)) {
18698
18813
  n.value && !b() && C();
18699
18814
  return;
18700
18815
  }
18701
18816
  S();
18702
18817
  }
18703
- c && !g.has(c) && lC(e) && (h.has(c) ? w(c) : E(c));
18818
+ c && !g.has(c) && dC(e) && (h.has(c) ? w(c) : E(c));
18704
18819
  }, E = (e) => {
18705
18820
  if (m?.dialog === e) return;
18706
18821
  let t = { dialog: e };
18707
18822
  m = t;
18708
- let n = XS, r = () => {
18823
+ let n = QS, r = () => {
18709
18824
  if (m !== t) return;
18710
18825
  if (--n > 0) {
18711
18826
  requestAnimationFrame(r);
18712
18827
  return;
18713
18828
  }
18714
- let i = iC(e, ...e.children);
18715
- Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e, ZS))]).then(() => {
18829
+ let i = oC(e, ...e.children);
18830
+ Promise.race([Promise.allSettled(i.map((e) => e.finished)), new Promise((e) => setTimeout(e, $S))]).then(() => {
18716
18831
  m === t && (m = void 0, h.add(e), T());
18717
18832
  });
18718
18833
  };
@@ -18722,7 +18837,7 @@ function dC(e, t) {
18722
18837
  }, O = (e) => {
18723
18838
  e.target instanceof HTMLDialogElement && T();
18724
18839
  }, k = () => {
18725
- r = !0, document.addEventListener("beforetoggle", D, !0), document.addEventListener("toggle", O, !0), f = setInterval(T, YS), T();
18840
+ r = !0, document.addEventListener("beforetoggle", D, !0), document.addEventListener("toggle", O, !0), f = setInterval(T, ZS), T();
18726
18841
  }, te = () => {
18727
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();
18728
18843
  };
@@ -18732,16 +18847,16 @@ function dC(e, t) {
18732
18847
  }
18733
18848
  // ../../packages/components/src/chat/PkChatbotAuth.vue?vue&type=script&setup=true&lang.ts
18734
18849
  G(), Y(), R(), De();
18735
- var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, pC = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, mC = { 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" }, hC = { class: "font-bold text-18 mb-xs" }, gC = { class: "mb-lg text-16 text-word-3" }, _C = {
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 = {
18736
18851
  key: "form",
18737
18852
  class: "pk-chatbot-auth__flip-card flex flex-col"
18738
- }, vC = { class: "flex flex-col" }, yC = {
18853
+ }, bC = { class: "flex flex-col" }, xC = {
18739
18854
  key: 0,
18740
18855
  class: "flex justify-center mb-md"
18741
- }, bC = ["src", "alt"], xC = { class: "text-center leading-normal mb-lg" }, SC = {
18856
+ }, SC = ["src", "alt"], CC = { class: "text-center leading-normal mb-lg" }, wC = {
18742
18857
  key: 0,
18743
18858
  class: "font-bold text-20 m-0"
18744
- }, CC = { class: "text-14 text-word-3 text-center leading-normal mb-md" }, wC = { class: "flex justify-center mt-md" }, TC = { class: "mb-md" }, EC = { class: "mb-md" }, DC = { class: "mb-md" }, OC = { class: "vv-separator mt-xs py-xs" }, kC = { class: "pt-lg text-center text-word-3" }, AC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
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({
18745
18860
  __name: "PkChatbotAuth",
18746
18861
  props: /*@__PURE__*/ ae({
18747
18862
  branding: {
@@ -18833,7 +18948,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18833
18948
  }
18834
18949
  return (t, r) => {
18835
18950
  let i = wn, o = En, s = Cn, h = _n;
18836
- return P(), Z("div", fC, [H("div", pC, [F(K, {
18951
+ return P(), Z("div", mC, [H("div", hC, [F(K, {
18837
18952
  name: "pk-flip",
18838
18953
  mode: "out-in",
18839
18954
  onAfterEnter: D
@@ -18845,13 +18960,13 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18845
18960
  tabindex: "-1",
18846
18961
  class: "pk-chatbot-auth__flip-card outline-none flex flex-col text-center leading-normal"
18847
18962
  }, [
18848
- H("div", mC, [F(i, {
18963
+ H("div", gC, [F(i, {
18849
18964
  name: "ri:mail-check-line",
18850
18965
  "aria-hidden": "true",
18851
18966
  class: "text-success w-32 h-32"
18852
18967
  })]),
18853
- H("h1", hC, N(u.value.title), 1),
18854
- H("p", gC, N(u.value.message), 1),
18968
+ H("h1", _C, N(u.value.title), 1),
18969
+ H("p", vC, N(u.value.message), 1),
18855
18970
  F(o, {
18856
18971
  type: "button",
18857
18972
  modifiers: "link",
@@ -18859,14 +18974,14 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18859
18974
  label: E(n)("action.backToSignIn"),
18860
18975
  onClick: p
18861
18976
  }, null, 8, ["label"])
18862
- ], 512)) : (P(), Z("div", _C, [H("div", vC, [
18863
- E(a)(e.branding?.interface.logo) ? (P(), Z("div", yC, [H("img", {
18977
+ ], 512)) : (P(), Z("div", yC, [H("div", bC, [
18978
+ E(a)(e.branding?.interface.logo) ? (P(), Z("div", xC, [H("img", {
18864
18979
  src: e.branding?.interface.logo,
18865
18980
  alt: e.branding?.name,
18866
18981
  class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
18867
18982
  onError: r[0] ||= (t) => E(c)(e.branding?.interface.logo)
18868
- }, null, 40, bC)])) : q("", !0),
18869
- H("div", xC, [e.branding?.name ? (P(), Z("h1", SC, N(e.branding.name), 1)) : q("", !0), (P(), L(fe(e.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
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" }, {
18870
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)]),
18871
18986
  _: 1
18872
18987
  }))]),
@@ -18877,7 +18992,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18877
18992
  content: l.value
18878
18993
  }, null, 8, ["content"])) : q("", !0),
18879
18994
  re.value ? (P(), Z(V, { key: 2 }, [
18880
- H("p", CC, N(M.value), 1),
18995
+ H("p", TC, N(M.value), 1),
18881
18996
  F(E(ie), {
18882
18997
  class: "flex flex-col",
18883
18998
  readonly: e.loading,
@@ -18902,7 +19017,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18902
19017
  ])]),
18903
19018
  _: 1
18904
19019
  }, 8, ["readonly"]),
18905
- H("div", wC, [A.value === "totp" ? (P(), L(o, {
19020
+ H("div", EC, [A.value === "totp" ? (P(), L(o, {
18906
19021
  key: 0,
18907
19022
  type: "button",
18908
19023
  modifiers: "link",
@@ -18928,7 +19043,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18928
19043
  readonly: e.loading,
18929
19044
  onSubmit: O
18930
19045
  }, {
18931
- default: B(() => [H("div", TC, [
19046
+ default: B(() => [H("div", DC, [
18932
19047
  F(E(y), {
18933
19048
  name: "email",
18934
19049
  type: "email",
@@ -18943,7 +19058,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18943
19058
  label: E(n)("label.password"),
18944
19059
  floating: ""
18945
19060
  }, null, 8, ["label"]),
18946
- H("div", EC, [F(o, {
19061
+ H("div", OC, [F(o, {
18947
19062
  type: "button",
18948
19063
  modifiers: "link",
18949
19064
  label: E(n)("action.forgetPassword"),
@@ -18973,7 +19088,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18973
19088
  readonly: e.loading,
18974
19089
  onSubmit: k
18975
19090
  }, {
18976
- default: B(() => [H("div", DC, [
19091
+ default: B(() => [H("div", kC, [
18977
19092
  F(E(x), {
18978
19093
  name: "name",
18979
19094
  type: "text",
@@ -19042,7 +19157,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
19042
19157
  })]),
19043
19158
  _: 1
19044
19159
  }, 8, ["readonly"])) : q("", !0),
19045
- !re.value && (f.value === "sign-in" || f.value === "sign-up") && m.value ? (P(), Z(V, { key: 6 }, [H("div", OC, [H("span", null, N(E(n)("label.or")), 1)]), F(h, {
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, {
19046
19161
  modifiers: "vertical",
19047
19162
  class: "gap-xs mt-xs"
19048
19163
  }, {
@@ -19065,7 +19180,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
19065
19180
  }, null, 8, ["disabled", "label"])) : q("", !0)]),
19066
19181
  _: 1
19067
19182
  })], 64)) : q("", !0)
19068
- ]), H("div", kC, [re.value ? (P(), L(o, {
19183
+ ]), H("div", jC, [re.value ? (P(), L(o, {
19069
19184
  key: 0,
19070
19185
  type: "button",
19071
19186
  modifiers: "link",
@@ -19096,20 +19211,20 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
19096
19211
  })])]);
19097
19212
  };
19098
19213
  }
19099
- }), [["styles", [".pk-chatbot-auth__flip{transform-style:preserve-3d;perspective:1000px;display:grid}.pk-chatbot-auth__flip-card{backface-visibility:hidden;transform-style:preserve-3d;grid-area:1/1}.pk-chatbot-auth__success-icon{animation:.4s ease-out .3s backwards pk-chatbot-auth-check-pop}.pk-flip-enter-active{animation:.6s ease-out pk-chatbot-auth-flip-in}.pk-flip-leave-active{animation:.6s ease-in pk-chatbot-auth-flip-out}@keyframes pk-chatbot-auth-flip-in{0%{opacity:0;transform:rotateY(-180deg)}to{opacity:1;transform:rotateY(0)}}@keyframes pk-chatbot-auth-flip-out{0%{opacity:1;transform:rotateY(0)}to{opacity:0;transform:rotateY(180deg)}}@keyframes pk-chatbot-auth-check-pop{0%{opacity:0;transform:scale(0)}60%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}"]]]), jC = "@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;";
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;";
19100
19215
  // ../../packages/components/src/PkLoader.vue
19101
19216
  G();
19102
- var MC = {};
19103
- function NC(e, t) {
19217
+ var PC = {};
19218
+ function FC(e, t) {
19104
19219
  return P(), Z("div", null, [...t[0] ||= [H("div", {
19105
19220
  "aria-hidden": "true",
19106
19221
  class: "pk-loader"
19107
19222
  }, null, -1)]]);
19108
19223
  }
19109
- var PC = /*#__PURE__*/ Nn(MC, [["render", NC], ["styles", [jC]]]);
19224
+ var IC = /*#__PURE__*/ Nn(PC, [["render", FC], ["styles", [NC]]]);
19110
19225
  // ../../packages/components/src/chat/PkWelcomePopup.vue?vue&type=script&setup=true&lang.ts
19111
19226
  G(), Y(), De(), R();
19112
- var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19227
+ var LC = { class: "welcome-popup__text" }, RC = ["aria-label"], zC = 100, BC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19113
19228
  __name: "PkWelcomePopup",
19114
19229
  props: {
19115
19230
  agentId: { type: String },
@@ -19130,7 +19245,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
19130
19245
  c.value = [], s.value = !1;
19131
19246
  let t = e.split(/(\s+)/), n = 0;
19132
19247
  function r() {
19133
- n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, LC)) : s.value = !0;
19248
+ n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, zC)) : s.value = !0;
19134
19249
  }
19135
19250
  r();
19136
19251
  }
@@ -19154,7 +19269,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
19154
19269
  key: 0,
19155
19270
  class: "welcome-popup",
19156
19271
  onClick: ve(m, ["stop"])
19157
- }, [H("p", FC, [(P(!0), Z(V, null, w(c.value, (e, t) => (P(), Z("span", {
19272
+ }, [H("p", LC, [(P(!0), Z(V, null, w(c.value, (e, t) => (P(), Z("span", {
19158
19273
  key: t,
19159
19274
  class: "welcome-popup__word"
19160
19275
  }, N(e), 1))), 128))]), F(K, null, {
@@ -19170,7 +19285,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
19170
19285
  width: "14",
19171
19286
  height: "14",
19172
19287
  fill: "currentColor"
19173
- }, [H("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, IC)) : q("", !0)]),
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)]),
19174
19289
  _: 1
19175
19290
  })])) : q("", !0)]),
19176
19291
  _: 1
@@ -19179,16 +19294,16 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
19179
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)}}"]]]);
19180
19295
  // ../../packages/components/src/chat/PkWorkingBeam.vue?vue&type=script&setup=true&lang.ts
19181
19296
  G(), De();
19182
- var zC = {
19297
+ var VC = {
19183
19298
  key: 0,
19184
19299
  class: "pk-working-beam",
19185
19300
  "aria-hidden": "true"
19186
- }, BC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19301
+ }, HC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19187
19302
  __name: "PkWorkingBeam",
19188
19303
  props: { active: { type: Boolean } },
19189
19304
  setup(e) {
19190
19305
  return (t, n) => (P(), L(K, { name: "pk-working-beam" }, {
19191
- default: B(() => [e.active ? (P(), Z("span", zC, [...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)]),
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)]),
19192
19307
  _: 1
19193
19308
  }));
19194
19309
  }
@@ -19196,7 +19311,7 @@ var zC = {
19196
19311
  // ../../packages/components/src/chat/PkWorkingAurora.vue?vue&type=script&setup=true&lang.ts
19197
19312
  G(), Y(), De();
19198
19313
  // ../../packages/components/src/chat/PkWorkingAurora.vue
19199
- var VC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19314
+ var UC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19200
19315
  __name: "PkWorkingAurora",
19201
19316
  props: {
19202
19317
  active: { type: Boolean },
@@ -19233,7 +19348,7 @@ var VC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19233
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}}"]]]);
19234
19349
  // ../../packages/components/src/chat/PkAgentPresence.vue?vue&type=script&setup=true&lang.ts
19235
19350
  G(), Y(), R();
19236
- var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19351
+ var WC = 13, GC = 8, KC = 3, qC = 150, JC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19237
19352
  __name: "PkAgentPresence",
19238
19353
  props: {
19239
19354
  active: { type: Boolean },
@@ -19302,10 +19417,10 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19302
19417
  };
19303
19418
  }, v = (e) => {
19304
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;
19305
- return a && r < a.x && i < a.y + a.height && i + 48 > a.y && (r = Math.max(t.x + Math.min(UC, t.width / 2), Math.min(r, a.x - HC - o - UC))), [r, i];
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];
19306
19421
  }, y = (e) => [
19307
- e.x - WC,
19308
- e.y - WC,
19422
+ e.x - KC,
19423
+ e.y - KC,
19309
19424
  e.width + 6,
19310
19425
  e.height + 6
19311
19426
  ], b = () => {
@@ -19339,7 +19454,7 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19339
19454
  }
19340
19455
  E = e;
19341
19456
  let n = parseFloat(getComputedStyle(e).borderTopLeftRadius);
19342
- o.value?.style.setProperty("--pk-agent-presence-radius", `${(Number.isFinite(n) ? n : 0) + WC}px`), h(y(t)), l.value = !0, d.value++;
19457
+ o.value?.style.setProperty("--pk-agent-presence-radius", `${(Number.isFinite(n) ? n : 0) + KC}px`), h(y(t)), l.value = !0, d.value++;
19343
19458
  }, O = 0, k = async (e) => {
19344
19459
  let t = ++O, i = (t) => e.heading || r("arrived", t), a = g(e.element);
19345
19460
  if (!n.active || !a) {
@@ -19381,7 +19496,7 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19381
19496
  });
19382
19497
  }, j;
19383
19498
  return I(c, (e) => {
19384
- clearInterval(j), j = e ? setInterval(ie, GC) : void 0;
19499
+ clearInterval(j), j = e ? setInterval(ie, qC) : void 0;
19385
19500
  }), re(() => {
19386
19501
  window.addEventListener("scroll", ie, {
19387
19502
  capture: !0,
@@ -19424,14 +19539,14 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19424
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)}}"]]]);
19425
19540
  // src/components/FloatingChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
19426
19541
  G(), R(), Y(), De();
19427
- var qC = {
19542
+ var YC = {
19428
19543
  key: 0,
19429
19544
  class: "floating-chat-widget__frame",
19430
19545
  "aria-hidden": "true"
19431
- }, JC = {
19546
+ }, XC = {
19432
19547
  key: 0,
19433
19548
  class: "floating-chat-widget__launcher"
19434
- }, YC = ["aria-label", "aria-expanded"], XC = {
19549
+ }, ZC = ["aria-label", "aria-expanded"], QC = {
19435
19550
  key: 0,
19436
19551
  class: "w-full h-full",
19437
19552
  xmlns: "http://www.w3.org/2000/svg",
@@ -19439,7 +19554,7 @@ var qC = {
19439
19554
  width: "24",
19440
19555
  height: "24",
19441
19556
  fill: "currentColor"
19442
- }, ZC = {
19557
+ }, $C = {
19443
19558
  key: 1,
19444
19559
  class: "w-full h-full",
19445
19560
  xmlns: "http://www.w3.org/2000/svg",
@@ -19447,13 +19562,13 @@ var qC = {
19447
19562
  width: "24",
19448
19563
  height: "24",
19449
19564
  fill: "currentColor"
19450
- }, QC = {
19565
+ }, ew = {
19451
19566
  key: 0,
19452
19567
  class: "floating-chat-widget__chat floating-chat-widget__auth"
19453
- }, $C = { class: "floating-chat-widget__close" }, ew = {
19568
+ }, tw = { class: "floating-chat-widget__close" }, nw = {
19454
19569
  key: 0,
19455
19570
  class: "floating-chat-widget__chat floating-chat-widget__loading"
19456
- }, tw = { class: "floating-chat-widget__close" }, nw = 450, rw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19571
+ }, rw = { class: "floating-chat-widget__close" }, iw = 450, aw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19457
19572
  inheritAttrs: !1,
19458
19573
  __name: "FloatingChatWidget.ce",
19459
19574
  props: {
@@ -19531,8 +19646,8 @@ var qC = {
19531
19646
  userId: h
19532
19647
  });
19533
19648
  Zh(() => k.isWorking), Qh(() => k.pageControlActive);
19534
- let te = BS(() => !!k.hostConfirmation || k.pageControlActive);
19535
- JS(te, () => k.pageControlActive, {
19649
+ let te = HS(() => !!k.hostConfirmation || k.pageControlActive);
19650
+ XS(te, () => k.pageControlActive, {
19536
19651
  text: () => D("messagePart.pageControlActive"),
19537
19652
  stopLabel: () => D("action.stop"),
19538
19653
  onStop: () => void k.stopHostActions()
@@ -19588,7 +19703,7 @@ var qC = {
19588
19703
  I(l, () => {
19589
19704
  ke.value = !0, clearTimeout(Ae), Ae = setTimeout(() => {
19590
19705
  ke.value = !1;
19591
- }, nw);
19706
+ }, iw);
19592
19707
  });
19593
19708
  let je = U(() => G.value && ke.value ? "floating-chat-widget-copilot" : void 0), Me = U(() => {
19594
19709
  let e = [
@@ -19668,10 +19783,10 @@ var qC = {
19668
19783
  _: 1
19669
19784
  })) : q("", !0),
19670
19785
  F(K, { name: "floating-chat-widget-frame" }, {
19671
- default: B(() => [G.value && E(l) ? (P(), Z("div", qC, [H("div", {
19786
+ default: B(() => [G.value && E(l) ? (P(), Z("div", YC, [H("div", {
19672
19787
  class: "floating-chat-widget__frame-window",
19673
19788
  style: O(Ee.value)
19674
- }, [F(BC, { active: Te.value }, null, 8, ["active"])], 4)])) : q("", !0)]),
19789
+ }, [F(HC, { active: Te.value }, null, 8, ["active"])], 4)])) : q("", !0)]),
19675
19790
  _: 1
19676
19791
  }),
19677
19792
  F(K, { name: "floating-chat-widget-frame" }, {
@@ -19687,7 +19802,7 @@ var qC = {
19687
19802
  class: "floating-chat-widget__page-aurora",
19688
19803
  style: O(Ee.value),
19689
19804
  "aria-hidden": "true"
19690
- }, [F(VC, {
19805
+ }, [F(UC, {
19691
19806
  active: Te.value,
19692
19807
  side: Se.value === "left" ? "left" : "right",
19693
19808
  pulse: E(V)
@@ -19697,7 +19812,7 @@ var qC = {
19697
19812
  "pulse"
19698
19813
  ])], 4)),
19699
19814
  F(K, { name: "slide-bottom" }, {
19700
- default: B(() => [(E(A) || E(ie)) && !E(se) && !Oe.value && !(G.value && E(l)) ? (P(), Z("div", JC, [F(RC, {
19815
+ default: B(() => [(E(A) || E(ie)) && !E(se) && !Oe.value && !(G.value && E(l)) ? (P(), Z("div", XC, [F(BC, {
19701
19816
  "agent-id": e.agentId,
19702
19817
  message: E(A)?.interface.initialMessage,
19703
19818
  enabled: !E(l) && E(A)?.interface?.welcomePopup,
@@ -19712,11 +19827,11 @@ var qC = {
19712
19827
  "aria-expanded": E(l),
19713
19828
  class: "floating-chat-widget__button",
19714
19829
  onClick: ve(u, ["stop"])
19715
- }, [E(l) ? (P(), Z("svg", XC, [...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", ZC, [...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, YC)])) : q("", !0)]),
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)]),
19716
19831
  _: 1
19717
19832
  }),
19718
19833
  F(K, { name: je.value }, {
19719
- default: B(() => [E(l) && (E(M) || E(ce)) && !(E(A) && E(d).data) ? (P(), Z("div", QC, [E(M) ? (P(), L(AC, {
19834
+ default: B(() => [E(l) && (E(M) || E(ce)) && !(E(A) && E(d).data) ? (P(), Z("div", ew, [E(M) ? (P(), L(MC, {
19720
19835
  key: 0,
19721
19836
  "error-message": E(J),
19722
19837
  "onUpdate:errorMessage": n[0] ||= (e) => Ce(J) ? J.value = e : null,
@@ -19749,7 +19864,7 @@ var qC = {
19749
19864
  "onVerifyTwoFactor",
19750
19865
  "onSendTwoFactorCode",
19751
19866
  "onCancelTwoFactor"
19752
- ])) : (P(), L(PC, { key: 1 })), H("span", $C, [F(a, {
19867
+ ])) : (P(), L(IC, { key: 1 })), H("span", tw, [F(a, {
19753
19868
  modifiers: "action-quiet",
19754
19869
  icon: "ri:close-line",
19755
19870
  title: t.$t("action.close"),
@@ -19758,7 +19873,7 @@ var qC = {
19758
19873
  _: 1
19759
19874
  }, 8, ["name"]),
19760
19875
  F(K, { name: je.value }, {
19761
- default: B(() => [E(l) && !E(M) && !E(A) && !E(ce) ? (P(), Z("div", ew, [F(PC), H("span", tw, [F(a, {
19876
+ default: B(() => [E(l) && !E(M) && !E(A) && !E(ce) ? (P(), Z("div", nw, [F(IC), H("span", rw, [F(a, {
19762
19877
  modifiers: "action-quiet",
19763
19878
  icon: "ri:close-line",
19764
19879
  title: t.$t("action.close"),
@@ -19767,7 +19882,7 @@ var qC = {
19767
19882
  _: 1
19768
19883
  }, 8, ["name"]),
19769
19884
  F(K, { name: je.value }, {
19770
- default: B(() => [E(A) && E(l) && E(d).data ? (P(), L(DS, {
19885
+ default: B(() => [E(A) && E(l) && E(d).data ? (P(), L(kS, {
19771
19886
  key: e.agentId,
19772
19887
  ref_key: "chatbotEl",
19773
19888
  ref: o,
@@ -19803,7 +19918,7 @@ var qC = {
19803
19918
  title: t.$t("action.close"),
19804
19919
  onClick: ve(u, ["stop"])
19805
19920
  }, null, 8, ["modifiers", "title"])]),
19806
- "view-auth": B(() => [F(AC, {
19921
+ "view-auth": B(() => [F(MC, {
19807
19922
  "error-message": E(J),
19808
19923
  "onUpdate:errorMessage": n[2] ||= (e) => Ce(J) ? J.value = e : null,
19809
19924
  success: E(Y),
@@ -19861,8 +19976,8 @@ var qC = {
19861
19976
  class: "floating-chat-widget__panel-beam",
19862
19977
  style: O(Ee.value),
19863
19978
  "aria-hidden": "true"
19864
- }, [F(BC, { active: we.value }, null, 8, ["active"])], 4)) : q("", !0),
19865
- F(KC, {
19979
+ }, [F(HC, { active: we.value }, null, 8, ["active"])], 4)) : q("", !0),
19980
+ F(JC, {
19866
19981
  active: E(k).pageControlActive,
19867
19982
  target: E(ye),
19868
19983
  "agent-name": E(A)?.name,
@@ -19878,12 +19993,12 @@ var qC = {
19878
19993
  "style",
19879
19994
  "onArrived"
19880
19995
  ]),
19881
- F(AS, {
19996
+ F(MS, {
19882
19997
  active: E(k).pageControlActive,
19883
19998
  action: E(k).pageAction?.title,
19884
19999
  onStop: n[4] ||= (e) => E(k).stopHostActions()
19885
20000
  }, null, 8, ["active", "action"]),
19886
- E(k).hostConfirmation && E(te) ? (P(), L(MS, {
20001
+ E(k).hostConfirmation && E(te) ? (P(), L(PS, {
19887
20002
  key: 4,
19888
20003
  question: E(k).hostConfirmation.question ?? E(D)("toolApproval.prompt"),
19889
20004
  details: E(k).hostConfirmation.details,
@@ -19900,16 +20015,16 @@ var qC = {
19900
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)))}"]]]);
19901
20016
  // src/components/EmbeddedChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
19902
20017
  G(), R(), Y(), De();
19903
- var iw = {
20018
+ var ow = {
19904
20019
  key: 3,
19905
20020
  class: "embedded-chat-widget embedded-chat-widget--not-found"
19906
- }, aw = {
20021
+ }, sw = {
19907
20022
  key: 0,
19908
20023
  class: "embedded-chat-widget embedded-chat-widget--auth"
19909
- }, ow = {
20024
+ }, cw = {
19910
20025
  key: 0,
19911
20026
  class: "embedded-chat-widget embedded-chat-widget--loading"
19912
- }, sw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
20027
+ }, lw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19913
20028
  inheritAttrs: !1,
19914
20029
  __name: "EmbeddedChatWidget.ce",
19915
20030
  props: {
@@ -19999,8 +20114,8 @@ var iw = {
19999
20114
  status: e.status
20000
20115
  }), u(e);
20001
20116
  }
20002
- let { t: te } = Le({ useScope: "global" }), ne = BS(() => !!T.hostConfirmation || T.pageControlActive), re = dC(xe(), () => !!n.followPageDialogs && n.followPageDialogs !== "false");
20003
- JS(ne, () => T.pageControlActive && !re.value, {
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, {
20004
20119
  text: () => te("messagePart.pageControlActive"),
20005
20120
  stopLabel: () => te("action.stop"),
20006
20121
  onStop: () => void T.stopHostActions()
@@ -20091,7 +20206,7 @@ var iw = {
20091
20206
  default: B(() => [Ne(N(Pe.value), 1)]),
20092
20207
  _: 1
20093
20208
  })) : q("", !0),
20094
- F(KC, {
20209
+ F(JC, {
20095
20210
  active: E(T).pageControlActive,
20096
20211
  target: E(V),
20097
20212
  "agent-name": E(A)?.name,
@@ -20107,12 +20222,12 @@ var iw = {
20107
20222
  "style",
20108
20223
  "onArrived"
20109
20224
  ]),
20110
- F(AS, {
20225
+ F(MS, {
20111
20226
  active: E(T).pageControlActive,
20112
20227
  action: E(T).pageAction?.title,
20113
20228
  onStop: n[0] ||= (e) => E(T).stopHostActions()
20114
20229
  }, null, 8, ["active", "action"]),
20115
- E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(MS, {
20230
+ E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(PS, {
20116
20231
  key: 2,
20117
20232
  question: E(T).hostConfirmation.question ?? E(te)("toolApproval.prompt"),
20118
20233
  details: E(T).hostConfirmation.details,
@@ -20122,12 +20237,12 @@ var iw = {
20122
20237
  "details",
20123
20238
  "onRespond"
20124
20239
  ])) : q("", !0),
20125
- E(se) ? (P(), Z("div", iw, [H("p", null, N(E(te)("message.agentNotFound")), 1)])) : q("", !0),
20240
+ E(se) ? (P(), Z("div", ow, [H("p", null, N(E(te)("message.agentNotFound")), 1)])) : q("", !0),
20126
20241
  F(K, {
20127
20242
  name: "fade",
20128
20243
  appear: ""
20129
20244
  }, {
20130
- default: B(() => [(E(A) || E(ie)) && !E(se) && E(M) && (!E(l).data?.user?.id || E(l).data?.user?.isAnonymous) ? (P(), Z("div", aw, [E(j) ? (P(), L(AC, {
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, {
20131
20246
  key: 0,
20132
20247
  "error-message": E(we),
20133
20248
  "onUpdate:errorMessage": n[1] ||= (e) => Ce(we) ? we.value = e : null,
@@ -20158,17 +20273,17 @@ var iw = {
20158
20273
  "onVerifyTwoFactor",
20159
20274
  "onSendTwoFactorCode",
20160
20275
  "onCancelTwoFactor"
20161
- ])) : (P(), L(PC, { key: 1 }))])) : q("", !0)]),
20276
+ ])) : (P(), L(IC, { key: 1 }))])) : q("", !0)]),
20162
20277
  _: 1
20163
20278
  }),
20164
20279
  F(K, {
20165
20280
  name: "fade",
20166
20281
  appear: ""
20167
20282
  }, {
20168
- default: B(() => [E(ce) && !E(se) ? (P(), Z("div", ow, [F(PC)])) : q("", !0)]),
20283
+ default: B(() => [E(ce) && !E(se) ? (P(), Z("div", cw, [F(IC)])) : q("", !0)]),
20169
20284
  _: 1
20170
20285
  }),
20171
- E(A) && E(l).data && !E(se) ? (P(), L(DS, {
20286
+ E(A) && E(l).data && !E(se) ? (P(), L(kS, {
20172
20287
  key: 4,
20173
20288
  ref_key: "chatbotEl",
20174
20289
  ref: o,
@@ -20201,7 +20316,7 @@ var iw = {
20201
20316
  }, ge({
20202
20317
  "header-actions": B(() => [pe(t.$slots, "header-actions")]),
20203
20318
  actions: B(() => [pe(t.$slots, "actions")]),
20204
- "view-auth": B(() => [F(AC, {
20319
+ "view-auth": B(() => [F(MC, {
20205
20320
  "error-message": E(we),
20206
20321
  "onUpdate:errorMessage": n[3] ||= (e) => Ce(we) ? we.value = e : null,
20207
20322
  success: E(Te),
@@ -20262,7 +20377,7 @@ var iw = {
20262
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}"]]]);
20263
20378
  // src/lib.ts
20264
20379
  De();
20265
- function cw(e) {
20380
+ function uw(e) {
20266
20381
  let { t } = xr.global;
20267
20382
  e.use($n()), e.use(xr), e.provide(Re, xr), e.use(zr, {
20268
20383
  iconsCollections: [Br, Vr],
@@ -20288,15 +20403,15 @@ function cw(e) {
20288
20403
  ki(e instanceof Error ? e : Error(String(e)), { vueInfo: n });
20289
20404
  };
20290
20405
  }
20291
- function lw(e) {
20406
+ function dw(e) {
20292
20407
  let { styles: t } = e;
20293
20408
  return {
20294
- configureApp: cw,
20409
+ configureApp: uw,
20295
20410
  styles: [Ai, ...t ?? []]
20296
20411
  };
20297
20412
  }
20298
- var uw = we(rw, lw(rw)), dw = we(sw, lw(sw));
20299
- customElements.define("floating-chat-widget", uw), customElements.define("embedded-chat-widget", dw);
20300
- export { dw as EmbeddedChatWidgetCe, uw as FloatingChatWidgetCe };
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 };
20301
20416
 
20302
20417
  //# sourceMappingURL=ai-elements.es.js.map