@8wave/ai-elements 0.122.0-beta.8 → 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 (52) 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 +520 -402
  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/apps/web-component/src/composables/useChatbotAuth.d.ts +1 -3
  34. package/dist-vue/composables.js +36 -3
  35. package/dist-vue/composables.js.map +1 -1
  36. package/dist-vue/index.js +6 -6
  37. package/dist-vue/locales.js +28 -0
  38. package/dist-vue/packages/components/src/chat/PkToolChatFile.d.ts +3 -0
  39. package/dist-vue/packages/components/src/chat/PkWordPreview.d.ts +29 -0
  40. package/dist-vue/packages/components/src/chat/PkWordPreviewRuns.d.ts +13 -0
  41. package/dist-vue/packages/components/src/chat/utils.d.ts +6 -0
  42. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +3 -1
  43. package/dist-vue/packages/models/src/schema/WordPreview.d.ts +134 -0
  44. package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
  45. package/dist-vue/style.css +1 -1
  46. package/package.json +1 -1
  47. package/dist/_chunks/PkToolChatFile-BsvJIdgo.js +0 -181
  48. package/dist/_chunks/PkToolChatFile-BsvJIdgo.js.map +0 -1
  49. package/dist-vue/_chunks/PkChatbotViewChat-Djts78Oq.js +0 -921
  50. package/dist-vue/_chunks/PkChatbotViewChat-Djts78Oq.js.map +0 -1
  51. package/dist-vue/_chunks/PkToolChatFile-s46esp0O.js +0 -179
  52. 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
  },
@@ -14013,7 +14046,10 @@ function D_(e = {}) {
14013
14046
  set: (n) => {
14014
14047
  s_(n, e.cookieName), t.value = n;
14015
14048
  }
14016
- }), i = U(() => !n.value && r.value ? { Authorization: `Bearer ${r.value}` } : void 0), a = $g({
14049
+ }), i = U(() => ({
14050
+ "X-Agent-Channel": "widget",
14051
+ ...!n.value && r.value ? { Authorization: `Bearer ${r.value}` } : {}
14052
+ })), a = $g({
14017
14053
  baseURL: e.baseUrl ?? "https://ai-api.8wave.it",
14018
14054
  basePath: e.basePath ?? "auth",
14019
14055
  plugins: [
@@ -17330,7 +17366,10 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17330
17366
  }, mx = {
17331
17367
  key: 0,
17332
17368
  class: "pk-chatbot-view-chat__drop-overlay"
17333
- }, 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({
17334
17373
  __name: "PkChatbotViewChat",
17335
17374
  props: {
17336
17375
  agentId: { type: String },
@@ -17339,165 +17378,194 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17339
17378
  },
17340
17379
  emits: ["show-info", "revise"],
17341
17380
  setup(e, { emit: t }) {
17342
- 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);
17343
- Fe(bt, R);
17344
- let V = me("inputEl");
17345
- I(ye, () => {
17346
- 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();
17347
17386
  });
17348
- 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(() => {
17349
- let e = se.value;
17350
- if (e) return e.reason === "per-chat" ? He("message.fileLimitPerChat", { max: e.max }) : He("message.fileLimitPerMessage", { max: e.max });
17351
- }), 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 }) => ({
17352
17391
  id: e,
17353
- text: t ? He("message.backgroundAnswerReady", { title: t }) : He("message.backgroundAnswerReadyUntitled")
17354
- }))), 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) => {
17355
- 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);
17356
17423
  window.open(t.downloadUrl, "_blank");
17357
- }, { isOverDropZone: nt } = hn($e, {
17358
- dataTypes: (e) => Rt(e, be.value?.allowedMimeTypes ?? []),
17424
+ }, { isOverDropZone: gt } = hn(et, {
17425
+ dataTypes: (e) => Rt(e, xe.value?.allowedMimeTypes ?? []),
17359
17426
  onDrop: (e) => {
17360
- 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);
17361
17428
  }
17362
- }), rt = W(!1), it = !1, at = W(!1), ot = [
17429
+ }), _t = W(!1), vt = !1, yt = W(!1), xt = [
17363
17430
  3e3,
17364
17431
  5e3,
17365
17432
  1e4
17366
- ], st, ct, lt = !1, ut = 0, ft = !1;
17367
- function pt() {
17368
- 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;
17369
17436
  }
17370
- function mt(e) {
17371
- it || (clearTimeout(st), st = setTimeout(() => {
17372
- gt();
17437
+ function Ot(e) {
17438
+ vt || (clearTimeout(St), St = setTimeout(() => {
17439
+ kt();
17373
17440
  }, e));
17374
17441
  }
17375
- async function gt() {
17376
- if (it || ft) return;
17377
- ft = !0;
17442
+ async function kt() {
17443
+ if (vt || Et) return;
17444
+ Et = !0;
17378
17445
  let e;
17379
17446
  try {
17380
- e = await Ne();
17447
+ e = await X();
17381
17448
  } finally {
17382
- ft = !1;
17449
+ Et = !1;
17383
17450
  }
17384
- if (it) return;
17385
- if (e === "caught-up" && (at.value = !1, Kt()), vt.isActive.value) {
17386
- 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);
17387
17454
  return;
17388
17455
  }
17389
- ct === void 0 && (ct = Date.now(), lt = !!vt.error.value);
17390
- let t = Date.now() - ct;
17391
- if (e === "caught-up" && t >= (lt ? _x : gx) || t >= vx) {
17392
- 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();
17393
17460
  return;
17394
17461
  }
17395
- let n = ot[Math.min(ut, ot.length - 1)];
17396
- ut += 1, mt(n);
17462
+ let n = xt[Math.min(Tt, xt.length - 1)];
17463
+ Tt += 1, Ot(n);
17397
17464
  }
17398
- let _t = (e = 1200) => {
17399
- mt(e);
17400
- }, vt = ix({
17465
+ let At = (e = 1200) => {
17466
+ Ot(e);
17467
+ }, jt = ix({
17401
17468
  fetchGrant: async () => {
17402
- let e = await ce.value.createVoiceSession(f.agentId, m.localChatId, {
17403
- deviceContext: m.buildDeviceContext(),
17404
- externalContext: m.externalContext
17469
+ let e = await le.value.createVoiceSession(p.agentId, h.localChatId, {
17470
+ deviceContext: h.buildDeviceContext(),
17471
+ externalContext: h.externalContext
17405
17472
  });
17406
- return e.chatId !== m.localChatId && (m.localChatId = e.chatId), e;
17473
+ return e.chatId !== h.localChatId && (h.localChatId = e.chatId), e;
17407
17474
  },
17408
- closeGrant: (e) => ce.value.closeVoiceSession(f.agentId, e),
17475
+ closeGrant: (e) => le.value.closeVoiceSession(p.agentId, e),
17409
17476
  onTranscript: (e) => {
17410
- e.role === "user" ? (at.value = !0, Gt(), X({
17477
+ e.role === "user" ? (yt.value = !0, rn(), Pe({
17411
17478
  id: `${hf}user-${hl()}`,
17412
17479
  role: "user",
17413
17480
  parts: [{
17414
17481
  type: "text",
17415
17482
  text: e.text
17416
17483
  }]
17417
- })) : at.value = !1;
17484
+ })) : yt.value = !1;
17418
17485
  },
17419
17486
  onTurnEnd: () => {
17420
- _t();
17487
+ At();
17421
17488
  }
17422
17489
  });
17423
- I(() => vt.error.value, (e) => {
17424
- e && (at.value = !1);
17490
+ I(() => jt.error.value, (e) => {
17491
+ e && (yt.value = !1);
17425
17492
  });
17426
- 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(() => {
17427
- let e = vt.error.value;
17428
- 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");
17429
- }), Ct = U(() => vt.isSpeaking.value ? "output" : "input"), wt = () => vt.readLevel(Ct.value), Tt = () => vt.readSpectrum(Ct.value), Et = async () => {
17430
- rt.value = !1, await vt.start(), vt.isActive.value && (pt(), mt(hx));
17431
- }, Dt = async () => {
17432
- at.value = !1, await vt.stop(), !it && _t(0);
17433
- }, Ot = () => {
17434
- vt.dismissError();
17435
- }, kt = async () => {
17436
- vt.dismissError(), await vt.stop(), await Et();
17437
- }, 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) => {
17438
- 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({
17439
17506
  tool: e,
17440
- toolCallId: At(t),
17507
+ toolCallId: Ut(t),
17441
17508
  output: n
17442
17509
  });
17443
- }, It = (e) => {
17444
- let t = e.confirmed ? He("message.voiceConfirmed") : He("message.voiceCancelled");
17445
- 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({
17446
17513
  tool: "requestConfirm",
17447
17514
  toolCallId: e.toolCallId,
17448
17515
  output: e.confirmed ? "confirmed" : "cancelled"
17449
17516
  });
17450
- }, Lt = (e, t) => {
17451
- Pt(e, t) || (A.value = t, Se());
17452
- }, zt = (e, t) => {
17453
- let n = t.error ? He("message.voiceLocationRefused") : He("message.voiceLocationShared", { place: t.displayName ?? `${t.latitude}, ${t.longitude}` });
17454
- 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({
17455
17522
  tool: "requestGeolocation",
17456
- toolCallId: At(e),
17523
+ toolCallId: Ut(e),
17457
17524
  output: t
17458
17525
  });
17459
- }, Bt = (e, t) => {
17460
- Pt(e, He("message.voiceConnectionDone")) || je({
17526
+ }, Qt = (e, t) => {
17527
+ qt(e, Ue("message.voiceConnectionDone")) || Me({
17461
17528
  tool: "requestOAuthConnection",
17462
- toolCallId: At(e),
17529
+ toolCallId: Ut(e),
17463
17530
  output: {
17464
17531
  connected: !0,
17465
17532
  mcpServerId: t
17466
17533
  }
17467
17534
  });
17468
- }, Vt = () => {
17469
- rt.value = !rt.value, vt.setMuted(rt.value);
17535
+ }, $t = () => {
17536
+ _t.value = !_t.value, jt.setMuted(_t.value);
17470
17537
  };
17471
17538
  ne(() => {
17472
- it = !0, pt();
17539
+ vt = !0, Dt();
17473
17540
  });
17474
- let { pendingWakeup: Ht, isStopping: Ut, stop: Wt, spokenTurnStarted: Gt, spokenTurnsWritten: Kt, forgetSpokenTurns: qt } = lx({
17475
- agentId: () => f.agentId,
17476
- chatId: () => m.localChatId,
17477
- apiClient: () => ce.value,
17478
- messages: () => x.value,
17479
- refreshMessages: Ne,
17480
- 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
17481
17548
  });
17482
- return (t, g) => {
17483
- let _ = wn;
17549
+ return (t, _) => {
17550
+ let v = wn, y = vn;
17484
17551
  return P(), Z("div", {
17485
17552
  ref_key: "chatViewEl",
17486
- ref: $e,
17553
+ ref: et,
17487
17554
  class: de(["pk-chatbot-view-chat", {
17488
- "pk-chatbot-view-chat--dragover": E(nt) && be.value?.enabled,
17489
- "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
17490
17558
  }])
17491
17559
  }, [
17492
17560
  F(K, {
17493
17561
  name: "pk-chatbot-view-chat-fade",
17494
17562
  mode: "out-in"
17495
17563
  }, {
17496
- default: B(() => [Ze.value ? (P(), L(Ub, {
17564
+ default: B(() => [Qe.value ? (P(), L(Ub, {
17497
17565
  key: 0,
17498
- greeting: E(Qe),
17499
- logo: E(h)?.logo,
17500
- name: E(m).name
17566
+ greeting: E($e),
17567
+ logo: E(g)?.logo,
17568
+ name: E(h).name
17501
17569
  }, null, 8, [
17502
17570
  "greeting",
17503
17571
  "logo",
@@ -17506,48 +17574,48 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17506
17574
  key: 1,
17507
17575
  class: "flex flex-col flex-1 min-h-0 p-md overflow-y-auto",
17508
17576
  interactive: "",
17509
- messages: E(x),
17510
- "confirm-verdicts-on-call": Nt.value,
17511
- status: E(S).status,
17512
- error: E(S).error,
17513
- "main-color": E(h)?.mainColor,
17514
- "text-color": E(h)?.textColor,
17515
- "revised-answers": E(b),
17516
- actions: E(y),
17517
- "message-feedbacks": E(C),
17518
- "feedback-message-id": E(ee)?.id,
17519
- "feedback-loading": E(w),
17520
- "feedback-submitted": E(D),
17521
- "feedback-error": E(O),
17522
- "show-extended-steps": E(h)?.showExtendedSteps,
17523
- "hide-reasoning": E(h)?.showReasoning === !1,
17524
- "awaiting-spoken-answer": at.value,
17525
- "host-working": Ue.value,
17526
- "host-confirmation": E(pe),
17527
- "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),
17528
17596
  "show-scroll-to-bottom": e.modifier === "fullscreen",
17529
- onFeedbackSubmit: g[0] ||= (e) => E(Oe)(e),
17530
- onFeedbackClose: g[1] ||= (e) => ee.value = void 0,
17531
- onRegenerate: E(we),
17532
- onAutoRetry: E(we),
17533
- onResetChat: E(Ae),
17534
- onShowInfo: g[2] ||= (e) => p("show-info", e),
17535
- onRevise: g[3] ||= (e) => p("revise", e),
17536
- onUpvote: E(Te),
17537
- onDownvote: E(Ee),
17538
- onFeedback: E(De),
17539
- onApprovalRespond: E(Me),
17540
- onConfirmRespond: It,
17541
- 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)
17542
17610
  }, {
17543
17611
  "tool-showContactForm": B(({ part: e }) => [F(E(r), {
17544
17612
  part: e,
17545
- readonly: !E(ae),
17546
- submitted: E(k),
17547
- loading: E(te),
17548
- error: E(re),
17549
- "privacy-policy-notice": E(h)?.privacyPolicyNotice,
17550
- 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)
17551
17619
  }, null, 8, [
17552
17620
  "part",
17553
17621
  "readonly",
@@ -17559,18 +17627,18 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17559
17627
  ])]),
17560
17628
  "tool-showSuggestedReply": B(({ part: e }) => [F(E(i), {
17561
17629
  part: e,
17562
- onSelect: (t) => Lt(e, t)
17630
+ onSelect: (t) => Xt(e, t)
17563
17631
  }, null, 8, ["part", "onSelect"])]),
17564
17632
  "tool-showSources": B(({ part: e }) => [F(E(a), {
17565
17633
  part: e,
17566
- "on-expand-context": et,
17567
- "on-download": tt
17634
+ "on-expand-context": pt,
17635
+ "on-download": mt
17568
17636
  }, null, 8, ["part"])]),
17569
17637
  "tool-showForm": B(({ part: e }) => [F(K, { mode: "out-in" }, {
17570
17638
  default: B(() => [F(E(n), {
17571
17639
  part: e,
17572
- answered: Mt(e),
17573
- onSelect: (t) => Ft("showForm", e, t)
17640
+ answered: Gt(e),
17641
+ onSelect: (t) => Jt("showForm", e, t)
17574
17642
  }, null, 8, [
17575
17643
  "part",
17576
17644
  "answered",
@@ -17582,8 +17650,8 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17582
17650
  default: B(() => [F(E(n), {
17583
17651
  part: e,
17584
17652
  "allow-custom-answer": "",
17585
- answered: Mt(e),
17586
- onSelect: (t) => Ft("showMultipleChoice", e, t)
17653
+ answered: Gt(e),
17654
+ onSelect: (t) => Jt("showMultipleChoice", e, t)
17587
17655
  }, null, 8, [
17588
17656
  "part",
17589
17657
  "answered",
@@ -17593,10 +17661,10 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17593
17661
  }, 1024)]),
17594
17662
  "tool-requestOAuthConnection": B(({ part: e }) => [F(E(s), {
17595
17663
  part: e,
17596
- "backend-url": E(ae),
17597
- "resolve-connection": (e) => E(ce).getOAuthAuthorizeUrl(f.agentId, e),
17598
- "check-connection": (e) => E(ce).getOAuthConnectionStatus(f.agentId, e),
17599
- 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)
17600
17668
  }, null, 8, [
17601
17669
  "part",
17602
17670
  "backend-url",
@@ -17606,9 +17674,9 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17606
17674
  ])]),
17607
17675
  "tool-requestGeolocation": B(({ part: e }) => [F(E(o), {
17608
17676
  part: e,
17609
- "call-live": E(vt).isActive.value,
17610
- "reverse-geocode": (e, t) => E(ce).reverseGeocode(e, t),
17611
- 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)
17612
17680
  }, null, 8, [
17613
17681
  "part",
17614
17682
  "call-live",
@@ -17617,9 +17685,9 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17617
17685
  ])]),
17618
17686
  "tool-showLocation": B(({ part: e }) => [F(E(c), {
17619
17687
  part: e,
17620
- "is-dark": E(le),
17621
- "main-color": E(h)?.mainColor,
17622
- "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)
17623
17691
  }, null, 8, [
17624
17692
  "part",
17625
17693
  "is-dark",
@@ -17628,42 +17696,44 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17628
17696
  ])]),
17629
17697
  "tool-showDiagram": B(({ part: e }) => [F(E(l), {
17630
17698
  part: e,
17631
- "is-dark": E(le)
17699
+ "is-dark": E(ue)
17632
17700
  }, null, 8, ["part", "is-dark"])]),
17633
17701
  "tool-editSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
17634
17702
  key: E(dt)(e),
17635
17703
  part: e,
17636
- "file-url": xe
17704
+ "file-url": Se
17637
17705
  }, null, 8, ["part"]))]),
17638
17706
  "tool-editWordDocument": B(({ part: e }) => [(P(), L(E(u), {
17639
17707
  key: E(dt)(e),
17640
17708
  part: e,
17641
- "file-url": xe
17709
+ "file-url": Se,
17710
+ preview: lt
17642
17711
  }, null, 8, ["part"]))]),
17643
17712
  "tool-createSpreadsheet": B(({ part: e }) => [(P(), L(E(u), {
17644
17713
  key: E(dt)(e),
17645
17714
  part: e,
17646
- "file-url": xe
17715
+ "file-url": Se
17647
17716
  }, null, 8, ["part"]))]),
17648
17717
  "tool-createWordDocument": B(({ part: e }) => [(P(), L(E(u), {
17649
17718
  key: E(dt)(e),
17650
17719
  part: e,
17651
- "file-url": xe
17720
+ "file-url": Se,
17721
+ preview: lt
17652
17722
  }, null, 8, ["part"]))]),
17653
17723
  "tool-shareDocument": B(({ part: e }) => [(P(), L(E(d), {
17654
17724
  key: E(dt)(e),
17655
17725
  part: e,
17656
- "on-download": tt
17726
+ "on-download": mt
17657
17727
  }, null, 8, ["part"]))]),
17658
17728
  _: 1
17659
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(".")))]),
17660
17730
  _: 1
17661
17731
  }),
17662
- E(_e).length ? (P(), L(Vb, {
17732
+ E(ve).length ? (P(), L(Vb, {
17663
17733
  key: 0,
17664
- messages: E(_e),
17665
- onEdit: E(Re),
17666
- onRemove: E(ze)
17734
+ messages: E(ve),
17735
+ onEdit: E(ze),
17736
+ onRemove: E(Be)
17667
17737
  }, null, 8, [
17668
17738
  "messages",
17669
17739
  "onEdit",
@@ -17671,57 +17741,57 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17671
17741
  ])) : q("", !0),
17672
17742
  H("div", ux, [
17673
17743
  F(K, { name: "pk-chatbot-view-chat-fade" }, {
17674
- default: B(() => [Ze.value ? (P(), L(q_, {
17744
+ default: B(() => [Qe.value ? (P(), L(q_, {
17675
17745
  key: 0,
17676
17746
  class: "pk-chatbot-view-chat__aurora",
17677
17747
  "source-selector": ".pk-chatbot-input__form"
17678
17748
  })) : q("", !0)]),
17679
17749
  _: 1
17680
17750
  }),
17681
- E(Ht) && !E(j) ? (P(), L(rx, {
17751
+ E(en) && !E(ae) ? (P(), L(rx, {
17682
17752
  key: 0,
17683
- pending: E(Ht),
17684
- stopping: E(Ut),
17685
- onStop: E(Wt)
17753
+ pending: E(en),
17754
+ stopping: E(tn),
17755
+ onStop: E(nn)
17686
17756
  }, null, 8, [
17687
17757
  "pending",
17688
17758
  "stopping",
17689
17759
  "onStop"
17690
17760
  ])) : q("", !0),
17691
- 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, {
17692
17762
  key: 3,
17693
17763
  ref_key: "inputEl",
17694
- ref: V,
17695
- modelValue: E(A),
17696
- "onUpdate:modelValue": g[4] ||= (e) => Ce(A) ? A.value = e : null,
17697
- "pending-attachments": E(oe),
17698
- "onUpdate:pendingAttachments": g[5] ||= (e) => Ce(oe) ? oe.value = e : null,
17699
- placeholder: E(ie),
17700
- "dismissable-notice": E(Ye) && E(S).messages.length <= 1 ? E(Ye) : void 0,
17701
- "page-notice": Ke.value,
17702
- status: We.value,
17703
- "max-message-length": E(h)?.maxMessageLength,
17704
- "file-upload": be.value,
17705
- "attachment-limit-reached": E(M),
17706
- "attachment-notice": qe.value,
17707
- "voice-enabled": yt.value,
17708
- "queue-enabled": E(z),
17709
- "answer-notices": Je.value,
17710
- onStopGeneration: E(G),
17711
- onSubmit: E(Se),
17712
- onFileSelect: E(J),
17713
- onDismissAttachmentNotice: E(Y),
17714
- onDismissPageNotice: E(Pe),
17715
- onOpenAnswerNotice: E(Be),
17716
- onDismissAnswerNotice: E(Ve),
17717
- 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
17718
17788
  }, ge({ _: 2 }, [e.modifier === "fullscreen" ? {
17719
17789
  name: "prepend",
17720
17790
  fn: B(() => [H("span", fx, [F(H_, {
17721
17791
  class: "pk-chatbot-view-chat__agent-chip-avatar",
17722
- "img-src": E(h)?.logo,
17723
- name: E(m).name
17724
- }, 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)])]),
17725
17795
  key: "0"
17726
17796
  } : void 0]), 1032, [
17727
17797
  "modelValue",
@@ -17746,19 +17816,19 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17746
17816
  "onDismissAnswerNotice"
17747
17817
  ])) : (P(), L($b, {
17748
17818
  key: 2,
17749
- state: xt.value,
17750
- sample: wt,
17751
- spectrum: Tt,
17752
- "remaining-seconds": E(vt).remainingSeconds.value,
17753
- muted: rt.value,
17754
- error: St.value,
17755
- "raw-error": E(vt).error.value,
17756
- 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,
17757
17827
  class: "pk-chatbot-view-chat__voice",
17758
- onToggleMute: Vt,
17759
- onHangUp: Dt,
17760
- onRetry: kt,
17761
- onDismiss: Ot
17828
+ onToggleMute: $t,
17829
+ onHangUp: Bt,
17830
+ onRetry: Ht,
17831
+ onDismiss: Vt
17762
17832
  }, null, 8, [
17763
17833
  "state",
17764
17834
  "remaining-seconds",
@@ -17769,35 +17839,83 @@ var ux = { class: "pk-chatbot-view-chat__input-stage" }, dx = {
17769
17839
  ]))
17770
17840
  ]),
17771
17841
  F(K, null, {
17772
- 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, {
17773
17843
  name: "ri:upload-cloud-2-line",
17774
17844
  class: "pk-chatbot-view-chat__drop-overlay-icon"
17775
- }), H("span", null, N(E(He)("action.dropFile")), 1)])) : q("", !0)]),
17845
+ }), H("span", null, N(E(Ue)("action.dropFile")), 1)])) : q("", !0)]),
17776
17846
  _: 1
17777
- })
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)
17778
17896
  ], 2);
17779
17897
  };
17780
17898
  }
17781
- }), [["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)}"]]]);
17782
17900
  // ../../packages/components/src/chat/PkChatbotViewConversations.vue?vue&type=script&setup=true&lang.ts
17783
17901
  G(), R(), Y(), De();
17784
- 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 = {
17785
17903
  key: 0,
17786
17904
  class: "vv-item-group vv-item-group--fill"
17787
- }, 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 = {
17788
17906
  key: 1,
17789
17907
  class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
17790
- }, 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 = {
17791
17909
  key: 2,
17792
17910
  class: "vv-item-group vv-item-group--fill"
17793
- }, 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 = {
17794
17912
  key: 0,
17795
17913
  class: "flex flex-1 items-center gap-8 min-w-0 px-md py-12"
17796
- }, 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 = {
17797
17915
  key: 3,
17798
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",
17799
17917
  style: { background: "linear-gradient(to top, var(--color-surface) 55%, transparent)" }
17800
- }, Bx = /* @__PURE__ */ J({
17918
+ }, Hx = /* @__PURE__ */ J({
17801
17919
  __name: "PkChatbotViewConversations",
17802
17920
  props: { agentId: { type: String } },
17803
17921
  setup(e) {
@@ -17826,19 +17944,19 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17826
17944
  };
17827
17945
  return (e, t) => {
17828
17946
  let r = wn, o = En, c = bn, u = _n, d = xn, m = Tn;
17829
- 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", {
17830
17948
  key: e,
17831
17949
  class: "vv-item vv-item--roomy vv-item--plain"
17832
- }, [H("div", Cx, [H("div", wx, [
17950
+ }, [H("div", Tx, [H("div", Ex, [
17833
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),
17834
17952
  t[6] ||= H("div", { class: "vv-skeleton h-12 rounded" }, [H("div", { class: "vv-skeleton__item" })], -1),
17835
17953
  t[7] ||= H("div", { class: "vv-skeleton h-12 rounded w-160" }, [H("div", { class: "vv-skeleton__item" })], -1)
17836
- ])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div", Tx, [
17837
- H("div", Ex, [F(r, {
17954
+ ])])])), 64))])])) : E(i).length === 0 ? (P(), Z("div", Dx, [
17955
+ H("div", Ox, [F(r, {
17838
17956
  name: "ri:chat-3-line",
17839
17957
  class: "w-28 h-28 text-word-4"
17840
17958
  })]),
17841
- 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)]),
17842
17960
  F(o, {
17843
17961
  modifiers: "primary rounded",
17844
17962
  icon: "ri:add-line",
@@ -17846,10 +17964,10 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17846
17964
  label: E(n)("action.startNewChat"),
17847
17965
  onClick: t[0] ||= (e) => E(l)()
17848
17966
  }, null, 8, ["label"])
17849
- ])) : (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", {
17850
17968
  key: e.id,
17851
17969
  class: de(["vv-item vv-item--roomy", { "vv-item--current": b(e) }])
17852
- }, [E(f) === e.id ? (P(), Z("div", Mx, [F(c, {
17970
+ }, [E(f) === e.id ? (P(), Z("div", Px, [F(c, {
17853
17971
  modelValue: E(p),
17854
17972
  "onUpdate:modelValue": t[1] ||= (e) => Ce(p) ? p.value = e : null,
17855
17973
  class: "flex-1 mb-0",
@@ -17883,8 +18001,8 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17883
18001
  class: "vv-item__entry",
17884
18002
  "aria-current": b(e) ? "true" : void 0,
17885
18003
  onClick: (t) => y(e.id)
17886
- }, [H("div", Px, [H("div", Fx, [
17887
- 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),
17888
18006
  E(s).includes(e.id) ? (P(), L(r, {
17889
18007
  key: 0,
17890
18008
  name: "loading-loop",
@@ -17897,7 +18015,7 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17897
18015
  class: "text-word-4 text-smaller shrink-0",
17898
18016
  date: e.lastMessageAt
17899
18017
  }, null, 8, ["date"])
17900
- ]), 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 }, {
17901
18019
  placement: "bottom-end",
17902
18020
  modifiers: "menu",
17903
18021
  flip: !0,
@@ -17917,7 +18035,7 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17917
18035
  modifiers: "action-quiet-small"
17918
18036
  }, null, 8, ["title"])]),
17919
18037
  _: 2
17920
- }, 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, {
17921
18039
  class: "text-14 pointer-events-auto",
17922
18040
  modifiers: "primary rounded",
17923
18041
  icon: "ri:add-line",
@@ -17942,16 +18060,16 @@ var bx = { class: "flex flex-col flex-1 min-h-0 relative" }, xx = {
17942
18060
  });
17943
18061
  // ../../packages/components/src/chat/PkChatbotViewFiles.vue?vue&type=script&setup=true&lang.ts
17944
18062
  G(), R(), Y();
17945
- 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 = {
17946
18064
  key: 0,
17947
18065
  class: "vv-item-group vv-item-group--fill"
17948
- }, 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 = {
17949
18067
  key: 1,
17950
18068
  class: "flex flex-col flex-1 items-center justify-center gap-12 p-24 text-center"
17951
- }, 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 = {
17952
18070
  key: 2,
17953
18071
  class: "vv-item-group vv-item-group--fill"
17954
- }, 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({
17955
18073
  __name: "PkChatbotViewFiles",
17956
18074
  props: { agentId: { type: String } },
17957
18075
  setup(e) {
@@ -17970,13 +18088,13 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
17970
18088
  };
17971
18089
  return (e, t) => {
17972
18090
  let r = wn, i = En;
17973
- 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", {
17974
18092
  key: e,
17975
18093
  class: "vv-item vv-item--roomy vv-item--plain"
17976
- }, [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, {
17977
18095
  name: "ri:folder-open-line",
17978
18096
  class: "w-28 h-28 text-word-4"
17979
- })]), 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", {
17980
18098
  key: e.documentId,
17981
18099
  class: "vv-item vv-item--roomy"
17982
18100
  }, [H("button", {
@@ -17984,7 +18102,7 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
17984
18102
  class: "vv-item__entry",
17985
18103
  title: E(n)("userFiles.open"),
17986
18104
  onClick: (t) => E(u)(e)
17987
- }, [H("span", Qx, [E(s)(e) ? (P(), Z("img", {
18105
+ }, [H("span", eS, [E(s)(e) ? (P(), Z("img", {
17988
18106
  key: 0,
17989
18107
  src: E(c)(e),
17990
18108
  loading: "lazy",
@@ -17992,10 +18110,10 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
17992
18110
  alt: "",
17993
18111
  class: "pk-chatbot-files__thumb",
17994
18112
  onError: (t) => E(l)(e)
17995
- }, null, 40, $x)) : (P(), L(r, {
18113
+ }, null, 40, tS)) : (P(), L(r, {
17996
18114
  key: 1,
17997
18115
  name: E(on)(e.mimeType)
17998
- }, 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, {
17999
18117
  modifiers: "action-quiet-small",
18000
18118
  icon: "ri:download-line",
18001
18119
  title: E(n)("action.download"),
@@ -18018,16 +18136,16 @@ var Vx = { class: "flex flex-col flex-1 min-h-0 relative" }, Hx = {
18018
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)}"]]]);
18019
18137
  // ../../packages/components/src/chat/PkChatbotViewProfile.vue?vue&type=script&setup=true&lang.ts
18020
18138
  G(), R(), Y();
18021
- 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 = {
18022
18140
  key: 0,
18023
18141
  class: "text-16 font-semibold text-word-1 leading-tight"
18024
- }, lS = {
18142
+ }, dS = {
18025
18143
  key: 1,
18026
18144
  class: "text-12 text-word-3 leading-none"
18027
- }, 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 = {
18028
18146
  key: 0,
18029
18147
  class: "px-md py-sm"
18030
- }, _S = /* @__PURE__ */ J({
18148
+ }, yS = /* @__PURE__ */ J({
18031
18149
  __name: "PkChatbotViewProfile",
18032
18150
  props: { agentId: { type: String } },
18033
18151
  setup(e) {
@@ -18046,13 +18164,13 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
18046
18164
  }
18047
18165
  return (e, t) => {
18048
18166
  let a = Cn, p = wn, m = En;
18049
- return P(), Z("div", aS, [
18050
- H("div", oS, [F(H_, {
18167
+ return P(), Z("div", sS, [
18168
+ H("div", cS, [F(H_, {
18051
18169
  class: "w-64 h-64",
18052
18170
  name: o.value?.name ?? E(r),
18053
18171
  "img-src": o.value?.image ?? E(i)?.logo
18054
- }, 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)])]),
18055
- 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, {
18056
18174
  key: 0,
18057
18175
  modifiers: "danger",
18058
18176
  content: d.value
@@ -18063,17 +18181,17 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
18063
18181
  rel: "noopener noreferrer",
18064
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"
18065
18183
  }, [
18066
- H("div", fS, [F(p, {
18184
+ H("div", mS, [F(p, {
18067
18185
  name: "ri:user-settings-line",
18068
18186
  class: "w-20 h-20 text-word-2"
18069
18187
  })]),
18070
- 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)]),
18071
18189
  F(p, {
18072
18190
  name: "ri:arrow-right-s-line",
18073
18191
  class: "w-16 h-16 text-word-4 shrink-0"
18074
18192
  })
18075
- ], 8, dS)) : q("", !0)]),
18076
- 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, {
18077
18195
  modifiers: "secondary-danger",
18078
18196
  class: "w-full",
18079
18197
  icon: "ri:logout-box-line",
@@ -18093,13 +18211,13 @@ var aS = { class: "flex flex-col flex-1 min-h-0 overflow-y-auto" }, oS = { class
18093
18211
  });
18094
18212
  // ../../packages/components/src/chat/PkChatbot.vue?vue&type=script&setup=true&lang.ts
18095
18213
  G(), R(), Y();
18096
- 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 = {
18097
18215
  key: 5,
18098
18216
  class: "pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto"
18099
- }, ES = {
18217
+ }, OS = {
18100
18218
  key: 7,
18101
18219
  class: "pk-chatbot__footer"
18102
- }, DS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18220
+ }, kS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18103
18221
  __name: "PkChatbot",
18104
18222
  props: /*@__PURE__*/ ae({
18105
18223
  baseUrl: { type: String },
@@ -18196,7 +18314,7 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18196
18314
  key: 0,
18197
18315
  class: "pk-chatbot__header",
18198
18316
  style: O(fe.value ? { backgroundColor: z.value } : void 0)
18199
- }, [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_, {
18200
18318
  key: 1,
18201
18319
  class: "pk-chatbot__avatar",
18202
18320
  name: e.name,
@@ -18213,7 +18331,7 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18213
18331
  class: "pk-chatbot__title",
18214
18332
  title: be.value,
18215
18333
  style: O(fe.value ? { color: _e.value } : void 0)
18216
- }, N(be.value), 13, yS)]), F(f, {
18334
+ }, N(be.value), 13, xS)]), F(f, {
18217
18335
  class: "pk-chatbot__header-end",
18218
18336
  modifiers: "compact"
18219
18337
  }, {
@@ -18304,14 +18422,14 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18304
18422
  ]),
18305
18423
  _: 3
18306
18424
  })], 4)),
18307
- ue.value ? (P(), Z("div", bS, [H("div", xS, [F(p, { modifiers: "callout" }, {
18308
- 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, {
18309
18427
  name: "ri:alert-line",
18310
18428
  class: "pk-chatbot__warning-icon"
18311
- }), 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)]),
18312
18430
  _: 1
18313
18431
  })])])) : q("", !0),
18314
- E(d) === "chat" ? (P(), L(yx, {
18432
+ E(d) === "chat" ? (P(), L(xx, {
18315
18433
  key: 2,
18316
18434
  "agent-id": e.agentId,
18317
18435
  modifier: e.modifier,
@@ -18325,23 +18443,23 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18325
18443
  "agent-id",
18326
18444
  "modifier",
18327
18445
  "user-name"
18328
- ])) : E(d) === "conversations" ? (P(), L(Bx, {
18446
+ ])) : E(d) === "conversations" ? (P(), L(Hx, {
18329
18447
  key: 3,
18330
18448
  "agent-id": e.agentId
18331
18449
  }, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
18332
18450
  name: e,
18333
18451
  fn: B((n) => [pe(t.$slots, e, te(k(n)))])
18334
- }))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(iS, {
18452
+ }))]), 1032, ["agent-id"])) : E(d) === "files" ? (P(), L(oS, {
18335
18453
  key: 4,
18336
18454
  "agent-id": e.agentId
18337
- }, 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, {
18338
18456
  key: 6,
18339
18457
  "agent-id": e.agentId
18340
18458
  }, ge({ _: 2 }, [w(Object.keys(E(r)), (e) => ({
18341
18459
  name: e,
18342
18460
  fn: B((n) => [pe(t.$slots, e, te(k(n)))])
18343
18461
  }))]), 1032, ["agent-id"])),
18344
- E(ye) ? (P(), Z("div", ES, [F(St, {
18462
+ E(ye) ? (P(), Z("div", OS, [F(St, {
18345
18463
  markdown: E(ye),
18346
18464
  class: "wysiwyg"
18347
18465
  }, null, 8, ["markdown"])])) : q("", !0)
@@ -18351,11 +18469,11 @@ var vS = { class: "pk-chatbot__header-start" }, yS = ["title"], bS = { key: 1 },
18351
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}"]]]);
18352
18470
  // ../../packages/components/src/chat/PkPageControlBar.vue?vue&type=script&setup=true&lang.ts
18353
18471
  G(), Y(), De();
18354
- var OS = {
18472
+ var AS = {
18355
18473
  key: 0,
18356
18474
  class: "pk-page-control-bar",
18357
18475
  role: "status"
18358
- }, 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({
18359
18477
  __name: "PkPageControlBar",
18360
18478
  props: {
18361
18479
  active: { type: Boolean },
@@ -18368,7 +18486,7 @@ var OS = {
18368
18486
  name: "pk-page-control-bar",
18369
18487
  appear: ""
18370
18488
  }, {
18371
- 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", {
18372
18490
  type: "button",
18373
18491
  class: "pk-page-control-bar__stop",
18374
18492
  onClick: r[0] ||= (e) => n("stop")
@@ -18379,7 +18497,7 @@ var OS = {
18379
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}}"]]]);
18380
18498
  // ../../packages/components/src/chat/PkHostCallConfirmDialog.vue?vue&type=script&setup=true&lang.ts
18381
18499
  G(), De(), Y(), R();
18382
- var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18500
+ var NS = 16, PS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18383
18501
  __name: "PkHostCallConfirmDialog",
18384
18502
  props: {
18385
18503
  question: { type: String },
@@ -18395,7 +18513,7 @@ var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18395
18513
  i.value = void 0;
18396
18514
  return;
18397
18515
  }
18398
- 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 = {
18399
18517
  left: `${n.left}px`,
18400
18518
  top: `${a}px`,
18401
18519
  width: `${n.width}px`
@@ -18423,37 +18541,37 @@ var jS = 16, MS = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
18423
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}"]]]);
18424
18542
  // src/composables/usePageModal.ts
18425
18543
  R(), G();
18426
- 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 = () => {
18427
18545
  let e = [], t = document.activeElement;
18428
18546
  for (; t;) e.push(t), t = t.shadowRoot?.activeElement ?? null;
18429
18547
  return e;
18430
- }, zS = (e) => {
18431
- let t = (t) => IS(t).filter((t) => !e?.(t)), n;
18548
+ }, VS = (e) => {
18549
+ let t = (t) => RS(t).filter((t) => !e?.(t)), n;
18432
18550
  try {
18433
18551
  n = t(document);
18434
- let e = n.length === 0 ? LS(document) : [];
18435
- 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++) {
18436
18554
  let r = e.shift();
18437
- n = t(r), e.push(...LS(r));
18555
+ n = t(r), e.push(...zS(r));
18438
18556
  }
18439
18557
  } catch {
18440
18558
  return null;
18441
18559
  }
18442
- let r = RS();
18560
+ let r = BS();
18443
18561
  return [...n].reverse().find((e) => r.some((t) => e.contains(t))) ?? n[n.length - 1] ?? null;
18444
18562
  };
18445
- function BS(e) {
18563
+ function HS(e) {
18446
18564
  let t = he(null), n, r = () => {
18447
18565
  clearInterval(n), n = void 0, t.value = null;
18448
18566
  };
18449
18567
  return I(() => X(e), (e) => {
18450
- r(), e && (t.value = zS(), n = setInterval(() => {
18451
- let e = zS();
18568
+ r(), e && (t.value = VS(), n = setInterval(() => {
18569
+ let e = VS();
18452
18570
  e !== t.value && (t.value = e);
18453
- }, NS));
18571
+ }, FS));
18454
18572
  }, { immediate: !0 }), be(r), t;
18455
18573
  }
18456
- var VS = () => {
18574
+ var US = () => {
18457
18575
  for (let e of document.querySelectorAll("embedded-chat-widget, floating-chat-widget")) {
18458
18576
  let t = e.shadowRoot?.querySelector(".pk-page-control-bar");
18459
18577
  if (t) {
@@ -18468,16 +18586,16 @@ var VS = () => {
18468
18586
  ink: "#111",
18469
18587
  paper: "#fff"
18470
18588
  };
18471
- }, HS = 48, US = 8, WS = (e, t) => {
18472
- let n = t.getBoundingClientRect(), r = e.offsetHeight, i = window.innerHeight - n.bottom, a = HS, o;
18473
- 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`);
18474
- }, 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) => {
18475
18593
  let t = e.shadowRoot?.querySelector("div");
18476
- if (!t || typeof t.animate != "function" || KS()) {
18594
+ if (!t || typeof t.animate != "function" || JS()) {
18477
18595
  e.remove();
18478
18596
  return;
18479
18597
  }
18480
- let n = t.style.getPropertyValue("--stop-from") || `-1 * ${GS}px`;
18598
+ let n = t.style.getPropertyValue("--stop-from") || `-1 * ${qS}px`;
18481
18599
  t.animate([{
18482
18600
  opacity: 1,
18483
18601
  translate: "0 0",
@@ -18492,18 +18610,18 @@ var VS = () => {
18492
18610
  fill: "forwards"
18493
18611
  }).finished.then(() => e.remove(), () => e.remove());
18494
18612
  };
18495
- function JS(e, t, n) {
18613
+ function XS(e, t, n) {
18496
18614
  let r, i, a = () => {
18497
- clearInterval(i), i = void 0, r && qS(r), r = void 0;
18615
+ clearInterval(i), i = void 0, r && YS(r), r = void 0;
18498
18616
  };
18499
18617
  I([e, () => X(t)], ([e, t]) => {
18500
18618
  if (a(), !e || !t) return;
18501
18619
  r = document.createElement(tp);
18502
- 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();
18503
18621
  s.textContent = `
18504
18622
  :host { all: initial; }
18505
18623
  div {
18506
- position: fixed; top: ${HS}px; left: 50%; transform: translateX(-50%);
18624
+ position: fixed; top: ${WS}px; left: 50%; transform: translateX(-50%);
18507
18625
  z-index: 2147483647; display: flex; align-items: center; gap: 12px;
18508
18626
  max-width: min(384px, calc(100vw - 32px)); padding: 8px 8px 8px 16px;
18509
18627
  border-radius: 9999px; background: ${c}; color: ${l};
@@ -18512,7 +18630,7 @@ function JS(e, t, n) {
18512
18630
  animation: stop-in 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
18513
18631
  }
18514
18632
  @keyframes stop-in {
18515
- 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; }
18516
18634
  }
18517
18635
  @media (prefers-reduced-motion: reduce) {
18518
18636
  div { animation: none; }
@@ -18528,11 +18646,11 @@ function JS(e, t, n) {
18528
18646
  d.textContent = n.text();
18529
18647
  let f = document.createElement("button");
18530
18648
  f.type = "button", f.textContent = n.stopLabel(), f.addEventListener("click", () => n.onStop()), u.append(d, f), o.append(s, u), e.append(r);
18531
- let p = () => WS(u, e);
18532
- p(), i = setInterval(p, NS);
18649
+ let p = () => KS(u, e);
18650
+ p(), i = setInterval(p, FS);
18533
18651
  }, { immediate: !0 }), be(a);
18534
18652
  }
18535
- 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 = [
18536
18654
  ["position", "fixed"],
18537
18655
  ["right", "auto"],
18538
18656
  ["bottom", "auto"],
@@ -18544,30 +18662,30 @@ var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, b
18544
18662
  ["max-width", "none"],
18545
18663
  ["max-height", "none"],
18546
18664
  ["z-index", "2147483646"]
18547
- ], nC = [
18665
+ ], iC = [
18548
18666
  "left",
18549
18667
  "top",
18550
18668
  "width",
18551
18669
  "height"
18552
- ], 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) => {
18553
18671
  let t = e.effect;
18554
18672
  if (!t?.getKeyframes || e.playbackRate <= 0) return !1;
18555
18673
  let { iterations: n, direction: r } = t.getComputedTiming();
18556
18674
  if (n !== 1 || r !== "normal" && r !== "reverse") return !1;
18557
18675
  let i = t.getKeyframes(), a = r === "reverse" ? i[0] : i[i.length - 1];
18558
18676
  return !!a && "opacity" in a && Number(a.opacity) === 0;
18559
- }), 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) => {
18560
18678
  let t = e.getBoundingClientRect();
18561
- if (!sC(t, {
18679
+ if (!lC(t, {
18562
18680
  width: window.innerWidth,
18563
18681
  height: window.innerHeight
18564
18682
  })) return e;
18565
18683
  let n = (e) => {
18566
18684
  let n = e.getBoundingClientRect();
18567
- return sC(n, t) ? 0 : n.width * n.height;
18685
+ return lC(n, t) ? 0 : n.width * n.height;
18568
18686
  }, r = [...e.children].filter((e) => n(e) > 0).sort((e, t) => n(t) - n(e))[0];
18569
- return r && !r.matches($S) ? r : e;
18570
- }, 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) => {
18571
18689
  let r = t.shadowRoot, i = [...r?.querySelectorAll("*") ?? []].filter((e) => e.scrollTop > 0).map((e) => [e, e.scrollTop]), a = r?.activeElement, o = e;
18572
18690
  try {
18573
18691
  o.moveBefore(t, n);
@@ -18577,19 +18695,19 @@ var YS = 1e3, XS = 3, ZS = 1e3, QS = "data-agent-studio-placeholder", $S = "a, b
18577
18695
  for (let [e, t] of i) e.scrollTop = t;
18578
18696
  return a && r?.activeElement !== a && a.focus({ preventScroll: !0 }), !0;
18579
18697
  };
18580
- function dC(e, t) {
18698
+ function pC(e, t) {
18581
18699
  let n = he(!1);
18582
- if (!e || !rC()) return n;
18700
+ if (!e || !aC()) return n;
18583
18701
  let r = !1, i, a, o, s, c, l = {
18584
18702
  x: 0,
18585
18703
  y: 0
18586
18704
  }, u, d = 0, f, p, m, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), _ = () => {
18587
- let t = [...tC.map(([e]) => e), ...nC].map((t) => [
18705
+ let t = [...rC.map(([e]) => e), ...iC].map((t) => [
18588
18706
  t,
18589
18707
  e.style.getPropertyValue(t),
18590
18708
  e.style.getPropertyPriority(t)
18591
18709
  ]);
18592
- 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");
18593
18711
  return () => {
18594
18712
  for (let [n, r, i] of t) r ? e.style.setProperty(n, r, i) : e.style.removeProperty(n);
18595
18713
  };
@@ -18619,12 +18737,12 @@ function dC(e, t) {
18619
18737
  opacityProperty: !0,
18620
18738
  visibilityProperty: !0
18621
18739
  }) === !1) return !1;
18622
- 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)));
18623
18741
  return !!a && (e.contains(a) || i(a));
18624
18742
  }, x = (t) => {
18625
18743
  if (t.key !== "Escape") return;
18626
18744
  let n = t.composedPath();
18627
- 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();
18628
18746
  }, S = () => {
18629
18747
  u?.disconnect(), u = void 0, cancelAnimationFrame(d), e.removeEventListener("keydown", x);
18630
18748
  let t = !!a?.contains(e) || !!i?.contains(e);
@@ -18635,16 +18753,16 @@ function dC(e, t) {
18635
18753
  } : s;
18636
18754
  if (t) {
18637
18755
  let n = t.next?.parentNode === t.parent ? t.next : null;
18638
- 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);
18639
18757
  }
18640
18758
  }
18641
18759
  o?.remove(), c?.(), i = void 0, a = void 0, o = void 0, s = void 0, c = void 0, n.value = !1;
18642
18760
  }, C = () => {
18643
- let e = i, t = iC(e, ...e.children).length > 0;
18761
+ let e = i, t = oC(e, ...e.children).length > 0;
18644
18762
  t ? h.delete(e) : g.add(e), S(), t && T();
18645
18763
  }, ee = () => {
18646
18764
  if (i && o) {
18647
- if (lC(o)) {
18765
+ if (dC(o)) {
18648
18766
  if (y(), !n.value) {
18649
18767
  if (!b()) {
18650
18768
  C();
@@ -18655,15 +18773,15 @@ function dC(e, t) {
18655
18773
  d = requestAnimationFrame(ee);
18656
18774
  } else {
18657
18775
  let t = i;
18658
- S(), lC(e) && g.add(t), T();
18776
+ S(), dC(e) && g.add(t), T();
18659
18777
  }
18660
18778
  }
18661
18779
  }, w = (t) => {
18662
- let n = cC(t), { height: r } = e.getBoundingClientRect(), f = document.createElement("div");
18663
- 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 = {
18664
18782
  parent: e.parentNode,
18665
18783
  next: e.nextSibling
18666
- }, 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 = {
18667
18785
  x: 0,
18668
18786
  y: 0
18669
18787
  }, y(), e.addEventListener("keydown", x), u = new MutationObserver(T), u.observe(t, {
@@ -18689,27 +18807,27 @@ function dC(e, t) {
18689
18807
  let t = (e) => !e.open || !e.isConnected;
18690
18808
  for (let e of [g, h]) for (let n of e) t(n) && e.delete(n);
18691
18809
  m && t(m.dialog) && (m = void 0);
18692
- 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;
18693
18811
  if (i) {
18694
- 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)) {
18695
18813
  n.value && !b() && C();
18696
18814
  return;
18697
18815
  }
18698
18816
  S();
18699
18817
  }
18700
- 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));
18701
18819
  }, E = (e) => {
18702
18820
  if (m?.dialog === e) return;
18703
18821
  let t = { dialog: e };
18704
18822
  m = t;
18705
- let n = XS, r = () => {
18823
+ let n = QS, r = () => {
18706
18824
  if (m !== t) return;
18707
18825
  if (--n > 0) {
18708
18826
  requestAnimationFrame(r);
18709
18827
  return;
18710
18828
  }
18711
- let i = iC(e, ...e.children);
18712
- 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(() => {
18713
18831
  m === t && (m = void 0, h.add(e), T());
18714
18832
  });
18715
18833
  };
@@ -18719,7 +18837,7 @@ function dC(e, t) {
18719
18837
  }, O = (e) => {
18720
18838
  e.target instanceof HTMLDialogElement && T();
18721
18839
  }, k = () => {
18722
- 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();
18723
18841
  }, te = () => {
18724
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();
18725
18843
  };
@@ -18729,16 +18847,16 @@ function dC(e, t) {
18729
18847
  }
18730
18848
  // ../../packages/components/src/chat/PkChatbotAuth.vue?vue&type=script&setup=true&lang.ts
18731
18849
  G(), Y(), R(), De();
18732
- 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 = {
18733
18851
  key: "form",
18734
18852
  class: "pk-chatbot-auth__flip-card flex flex-col"
18735
- }, vC = { class: "flex flex-col" }, yC = {
18853
+ }, bC = { class: "flex flex-col" }, xC = {
18736
18854
  key: 0,
18737
18855
  class: "flex justify-center mb-md"
18738
- }, 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 = {
18739
18857
  key: 0,
18740
18858
  class: "font-bold text-20 m-0"
18741
- }, 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({
18742
18860
  __name: "PkChatbotAuth",
18743
18861
  props: /*@__PURE__*/ ae({
18744
18862
  branding: {
@@ -18830,7 +18948,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18830
18948
  }
18831
18949
  return (t, r) => {
18832
18950
  let i = wn, o = En, s = Cn, h = _n;
18833
- return P(), Z("div", fC, [H("div", pC, [F(K, {
18951
+ return P(), Z("div", mC, [H("div", hC, [F(K, {
18834
18952
  name: "pk-flip",
18835
18953
  mode: "out-in",
18836
18954
  onAfterEnter: D
@@ -18842,13 +18960,13 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18842
18960
  tabindex: "-1",
18843
18961
  class: "pk-chatbot-auth__flip-card outline-none flex flex-col text-center leading-normal"
18844
18962
  }, [
18845
- H("div", mC, [F(i, {
18963
+ H("div", gC, [F(i, {
18846
18964
  name: "ri:mail-check-line",
18847
18965
  "aria-hidden": "true",
18848
18966
  class: "text-success w-32 h-32"
18849
18967
  })]),
18850
- H("h1", hC, N(u.value.title), 1),
18851
- 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),
18852
18970
  F(o, {
18853
18971
  type: "button",
18854
18972
  modifiers: "link",
@@ -18856,14 +18974,14 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18856
18974
  label: E(n)("action.backToSignIn"),
18857
18975
  onClick: p
18858
18976
  }, null, 8, ["label"])
18859
- ], 512)) : (P(), Z("div", _C, [H("div", vC, [
18860
- 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", {
18861
18979
  src: e.branding?.interface.logo,
18862
18980
  alt: e.branding?.name,
18863
18981
  class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
18864
18982
  onError: r[0] ||= (t) => E(c)(e.branding?.interface.logo)
18865
- }, null, 40, bC)])) : q("", !0),
18866
- 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" }, {
18867
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)]),
18868
18986
  _: 1
18869
18987
  }))]),
@@ -18874,7 +18992,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18874
18992
  content: l.value
18875
18993
  }, null, 8, ["content"])) : q("", !0),
18876
18994
  re.value ? (P(), Z(V, { key: 2 }, [
18877
- H("p", CC, N(M.value), 1),
18995
+ H("p", TC, N(M.value), 1),
18878
18996
  F(E(ie), {
18879
18997
  class: "flex flex-col",
18880
18998
  readonly: e.loading,
@@ -18899,7 +19017,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18899
19017
  ])]),
18900
19018
  _: 1
18901
19019
  }, 8, ["readonly"]),
18902
- H("div", wC, [A.value === "totp" ? (P(), L(o, {
19020
+ H("div", EC, [A.value === "totp" ? (P(), L(o, {
18903
19021
  key: 0,
18904
19022
  type: "button",
18905
19023
  modifiers: "link",
@@ -18925,7 +19043,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18925
19043
  readonly: e.loading,
18926
19044
  onSubmit: O
18927
19045
  }, {
18928
- default: B(() => [H("div", TC, [
19046
+ default: B(() => [H("div", DC, [
18929
19047
  F(E(y), {
18930
19048
  name: "email",
18931
19049
  type: "email",
@@ -18940,7 +19058,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18940
19058
  label: E(n)("label.password"),
18941
19059
  floating: ""
18942
19060
  }, null, 8, ["label"]),
18943
- H("div", EC, [F(o, {
19061
+ H("div", OC, [F(o, {
18944
19062
  type: "button",
18945
19063
  modifiers: "link",
18946
19064
  label: E(n)("action.forgetPassword"),
@@ -18970,7 +19088,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
18970
19088
  readonly: e.loading,
18971
19089
  onSubmit: k
18972
19090
  }, {
18973
- default: B(() => [H("div", DC, [
19091
+ default: B(() => [H("div", kC, [
18974
19092
  F(E(x), {
18975
19093
  name: "name",
18976
19094
  type: "text",
@@ -19039,7 +19157,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
19039
19157
  })]),
19040
19158
  _: 1
19041
19159
  }, 8, ["readonly"])) : q("", !0),
19042
- !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, {
19043
19161
  modifiers: "vertical",
19044
19162
  class: "gap-xs mt-xs"
19045
19163
  }, {
@@ -19062,7 +19180,7 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
19062
19180
  }, null, 8, ["disabled", "label"])) : q("", !0)]),
19063
19181
  _: 1
19064
19182
  })], 64)) : q("", !0)
19065
- ]), H("div", kC, [re.value ? (P(), L(o, {
19183
+ ]), H("div", jC, [re.value ? (P(), L(o, {
19066
19184
  key: 0,
19067
19185
  type: "button",
19068
19186
  modifiers: "link",
@@ -19093,20 +19211,20 @@ var fC = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-f
19093
19211
  })])]);
19094
19212
  };
19095
19213
  }
19096
- }), [["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;";
19097
19215
  // ../../packages/components/src/PkLoader.vue
19098
19216
  G();
19099
- var MC = {};
19100
- function NC(e, t) {
19217
+ var PC = {};
19218
+ function FC(e, t) {
19101
19219
  return P(), Z("div", null, [...t[0] ||= [H("div", {
19102
19220
  "aria-hidden": "true",
19103
19221
  class: "pk-loader"
19104
19222
  }, null, -1)]]);
19105
19223
  }
19106
- var PC = /*#__PURE__*/ Nn(MC, [["render", NC], ["styles", [jC]]]);
19224
+ var IC = /*#__PURE__*/ Nn(PC, [["render", FC], ["styles", [NC]]]);
19107
19225
  // ../../packages/components/src/chat/PkWelcomePopup.vue?vue&type=script&setup=true&lang.ts
19108
19226
  G(), Y(), De(), R();
19109
- 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({
19110
19228
  __name: "PkWelcomePopup",
19111
19229
  props: {
19112
19230
  agentId: { type: String },
@@ -19127,7 +19245,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
19127
19245
  c.value = [], s.value = !1;
19128
19246
  let t = e.split(/(\s+)/), n = 0;
19129
19247
  function r() {
19130
- 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;
19131
19249
  }
19132
19250
  r();
19133
19251
  }
@@ -19151,7 +19269,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
19151
19269
  key: 0,
19152
19270
  class: "welcome-popup",
19153
19271
  onClick: ve(m, ["stop"])
19154
- }, [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", {
19155
19273
  key: t,
19156
19274
  class: "welcome-popup__word"
19157
19275
  }, N(e), 1))), 128))]), F(K, null, {
@@ -19167,7 +19285,7 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
19167
19285
  width: "14",
19168
19286
  height: "14",
19169
19287
  fill: "currentColor"
19170
- }, [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)]),
19171
19289
  _: 1
19172
19290
  })])) : q("", !0)]),
19173
19291
  _: 1
@@ -19176,16 +19294,16 @@ var FC = { class: "welcome-popup__text" }, IC = ["aria-label"], LC = 100, RC = /
19176
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)}}"]]]);
19177
19295
  // ../../packages/components/src/chat/PkWorkingBeam.vue?vue&type=script&setup=true&lang.ts
19178
19296
  G(), De();
19179
- var zC = {
19297
+ var VC = {
19180
19298
  key: 0,
19181
19299
  class: "pk-working-beam",
19182
19300
  "aria-hidden": "true"
19183
- }, BC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19301
+ }, HC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19184
19302
  __name: "PkWorkingBeam",
19185
19303
  props: { active: { type: Boolean } },
19186
19304
  setup(e) {
19187
19305
  return (t, n) => (P(), L(K, { name: "pk-working-beam" }, {
19188
- 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)]),
19189
19307
  _: 1
19190
19308
  }));
19191
19309
  }
@@ -19193,7 +19311,7 @@ var zC = {
19193
19311
  // ../../packages/components/src/chat/PkWorkingAurora.vue?vue&type=script&setup=true&lang.ts
19194
19312
  G(), Y(), De();
19195
19313
  // ../../packages/components/src/chat/PkWorkingAurora.vue
19196
- var VC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19314
+ var UC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19197
19315
  __name: "PkWorkingAurora",
19198
19316
  props: {
19199
19317
  active: { type: Boolean },
@@ -19230,7 +19348,7 @@ var VC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19230
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}}"]]]);
19231
19349
  // ../../packages/components/src/chat/PkAgentPresence.vue?vue&type=script&setup=true&lang.ts
19232
19350
  G(), Y(), R();
19233
- 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({
19234
19352
  __name: "PkAgentPresence",
19235
19353
  props: {
19236
19354
  active: { type: Boolean },
@@ -19299,10 +19417,10 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19299
19417
  };
19300
19418
  }, v = (e) => {
19301
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;
19302
- 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];
19303
19421
  }, y = (e) => [
19304
- e.x - WC,
19305
- e.y - WC,
19422
+ e.x - KC,
19423
+ e.y - KC,
19306
19424
  e.width + 6,
19307
19425
  e.height + 6
19308
19426
  ], b = () => {
@@ -19336,7 +19454,7 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19336
19454
  }
19337
19455
  E = e;
19338
19456
  let n = parseFloat(getComputedStyle(e).borderTopLeftRadius);
19339
- 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++;
19340
19458
  }, O = 0, k = async (e) => {
19341
19459
  let t = ++O, i = (t) => e.heading || r("arrived", t), a = g(e.element);
19342
19460
  if (!n.active || !a) {
@@ -19378,7 +19496,7 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19378
19496
  });
19379
19497
  }, j;
19380
19498
  return I(c, (e) => {
19381
- clearInterval(j), j = e ? setInterval(ie, GC) : void 0;
19499
+ clearInterval(j), j = e ? setInterval(ie, qC) : void 0;
19382
19500
  }), re(() => {
19383
19501
  window.addEventListener("scroll", ie, {
19384
19502
  capture: !0,
@@ -19421,14 +19539,14 @@ var HC = 13, UC = 8, WC = 3, GC = 150, KC = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19421
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)}}"]]]);
19422
19540
  // src/components/FloatingChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
19423
19541
  G(), R(), Y(), De();
19424
- var qC = {
19542
+ var YC = {
19425
19543
  key: 0,
19426
19544
  class: "floating-chat-widget__frame",
19427
19545
  "aria-hidden": "true"
19428
- }, JC = {
19546
+ }, XC = {
19429
19547
  key: 0,
19430
19548
  class: "floating-chat-widget__launcher"
19431
- }, YC = ["aria-label", "aria-expanded"], XC = {
19549
+ }, ZC = ["aria-label", "aria-expanded"], QC = {
19432
19550
  key: 0,
19433
19551
  class: "w-full h-full",
19434
19552
  xmlns: "http://www.w3.org/2000/svg",
@@ -19436,7 +19554,7 @@ var qC = {
19436
19554
  width: "24",
19437
19555
  height: "24",
19438
19556
  fill: "currentColor"
19439
- }, ZC = {
19557
+ }, $C = {
19440
19558
  key: 1,
19441
19559
  class: "w-full h-full",
19442
19560
  xmlns: "http://www.w3.org/2000/svg",
@@ -19444,13 +19562,13 @@ var qC = {
19444
19562
  width: "24",
19445
19563
  height: "24",
19446
19564
  fill: "currentColor"
19447
- }, QC = {
19565
+ }, ew = {
19448
19566
  key: 0,
19449
19567
  class: "floating-chat-widget__chat floating-chat-widget__auth"
19450
- }, $C = { class: "floating-chat-widget__close" }, ew = {
19568
+ }, tw = { class: "floating-chat-widget__close" }, nw = {
19451
19569
  key: 0,
19452
19570
  class: "floating-chat-widget__chat floating-chat-widget__loading"
19453
- }, 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({
19454
19572
  inheritAttrs: !1,
19455
19573
  __name: "FloatingChatWidget.ce",
19456
19574
  props: {
@@ -19528,8 +19646,8 @@ var qC = {
19528
19646
  userId: h
19529
19647
  });
19530
19648
  Zh(() => k.isWorking), Qh(() => k.pageControlActive);
19531
- let te = BS(() => !!k.hostConfirmation || k.pageControlActive);
19532
- JS(te, () => k.pageControlActive, {
19649
+ let te = HS(() => !!k.hostConfirmation || k.pageControlActive);
19650
+ XS(te, () => k.pageControlActive, {
19533
19651
  text: () => D("messagePart.pageControlActive"),
19534
19652
  stopLabel: () => D("action.stop"),
19535
19653
  onStop: () => void k.stopHostActions()
@@ -19585,7 +19703,7 @@ var qC = {
19585
19703
  I(l, () => {
19586
19704
  ke.value = !0, clearTimeout(Ae), Ae = setTimeout(() => {
19587
19705
  ke.value = !1;
19588
- }, nw);
19706
+ }, iw);
19589
19707
  });
19590
19708
  let je = U(() => G.value && ke.value ? "floating-chat-widget-copilot" : void 0), Me = U(() => {
19591
19709
  let e = [
@@ -19665,10 +19783,10 @@ var qC = {
19665
19783
  _: 1
19666
19784
  })) : q("", !0),
19667
19785
  F(K, { name: "floating-chat-widget-frame" }, {
19668
- 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", {
19669
19787
  class: "floating-chat-widget__frame-window",
19670
19788
  style: O(Ee.value)
19671
- }, [F(BC, { active: Te.value }, null, 8, ["active"])], 4)])) : q("", !0)]),
19789
+ }, [F(HC, { active: Te.value }, null, 8, ["active"])], 4)])) : q("", !0)]),
19672
19790
  _: 1
19673
19791
  }),
19674
19792
  F(K, { name: "floating-chat-widget-frame" }, {
@@ -19684,7 +19802,7 @@ var qC = {
19684
19802
  class: "floating-chat-widget__page-aurora",
19685
19803
  style: O(Ee.value),
19686
19804
  "aria-hidden": "true"
19687
- }, [F(VC, {
19805
+ }, [F(UC, {
19688
19806
  active: Te.value,
19689
19807
  side: Se.value === "left" ? "left" : "right",
19690
19808
  pulse: E(V)
@@ -19694,7 +19812,7 @@ var qC = {
19694
19812
  "pulse"
19695
19813
  ])], 4)),
19696
19814
  F(K, { name: "slide-bottom" }, {
19697
- 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, {
19698
19816
  "agent-id": e.agentId,
19699
19817
  message: E(A)?.interface.initialMessage,
19700
19818
  enabled: !E(l) && E(A)?.interface?.welcomePopup,
@@ -19709,11 +19827,11 @@ var qC = {
19709
19827
  "aria-expanded": E(l),
19710
19828
  class: "floating-chat-widget__button",
19711
19829
  onClick: ve(u, ["stop"])
19712
- }, [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)]),
19713
19831
  _: 1
19714
19832
  }),
19715
19833
  F(K, { name: je.value }, {
19716
- 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, {
19717
19835
  key: 0,
19718
19836
  "error-message": E(J),
19719
19837
  "onUpdate:errorMessage": n[0] ||= (e) => Ce(J) ? J.value = e : null,
@@ -19746,7 +19864,7 @@ var qC = {
19746
19864
  "onVerifyTwoFactor",
19747
19865
  "onSendTwoFactorCode",
19748
19866
  "onCancelTwoFactor"
19749
- ])) : (P(), L(PC, { key: 1 })), H("span", $C, [F(a, {
19867
+ ])) : (P(), L(IC, { key: 1 })), H("span", tw, [F(a, {
19750
19868
  modifiers: "action-quiet",
19751
19869
  icon: "ri:close-line",
19752
19870
  title: t.$t("action.close"),
@@ -19755,7 +19873,7 @@ var qC = {
19755
19873
  _: 1
19756
19874
  }, 8, ["name"]),
19757
19875
  F(K, { name: je.value }, {
19758
- 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, {
19759
19877
  modifiers: "action-quiet",
19760
19878
  icon: "ri:close-line",
19761
19879
  title: t.$t("action.close"),
@@ -19764,7 +19882,7 @@ var qC = {
19764
19882
  _: 1
19765
19883
  }, 8, ["name"]),
19766
19884
  F(K, { name: je.value }, {
19767
- 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, {
19768
19886
  key: e.agentId,
19769
19887
  ref_key: "chatbotEl",
19770
19888
  ref: o,
@@ -19800,7 +19918,7 @@ var qC = {
19800
19918
  title: t.$t("action.close"),
19801
19919
  onClick: ve(u, ["stop"])
19802
19920
  }, null, 8, ["modifiers", "title"])]),
19803
- "view-auth": B(() => [F(AC, {
19921
+ "view-auth": B(() => [F(MC, {
19804
19922
  "error-message": E(J),
19805
19923
  "onUpdate:errorMessage": n[2] ||= (e) => Ce(J) ? J.value = e : null,
19806
19924
  success: E(Y),
@@ -19858,8 +19976,8 @@ var qC = {
19858
19976
  class: "floating-chat-widget__panel-beam",
19859
19977
  style: O(Ee.value),
19860
19978
  "aria-hidden": "true"
19861
- }, [F(BC, { active: we.value }, null, 8, ["active"])], 4)) : q("", !0),
19862
- F(KC, {
19979
+ }, [F(HC, { active: we.value }, null, 8, ["active"])], 4)) : q("", !0),
19980
+ F(JC, {
19863
19981
  active: E(k).pageControlActive,
19864
19982
  target: E(ye),
19865
19983
  "agent-name": E(A)?.name,
@@ -19875,12 +19993,12 @@ var qC = {
19875
19993
  "style",
19876
19994
  "onArrived"
19877
19995
  ]),
19878
- F(AS, {
19996
+ F(MS, {
19879
19997
  active: E(k).pageControlActive,
19880
19998
  action: E(k).pageAction?.title,
19881
19999
  onStop: n[4] ||= (e) => E(k).stopHostActions()
19882
20000
  }, null, 8, ["active", "action"]),
19883
- E(k).hostConfirmation && E(te) ? (P(), L(MS, {
20001
+ E(k).hostConfirmation && E(te) ? (P(), L(PS, {
19884
20002
  key: 4,
19885
20003
  question: E(k).hostConfirmation.question ?? E(D)("toolApproval.prompt"),
19886
20004
  details: E(k).hostConfirmation.details,
@@ -19897,16 +20015,16 @@ var qC = {
19897
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)))}"]]]);
19898
20016
  // src/components/EmbeddedChatWidget.ce.vue?vue&type=script&setup=true&lang.ts
19899
20017
  G(), R(), Y(), De();
19900
- var iw = {
20018
+ var ow = {
19901
20019
  key: 3,
19902
20020
  class: "embedded-chat-widget embedded-chat-widget--not-found"
19903
- }, aw = {
20021
+ }, sw = {
19904
20022
  key: 0,
19905
20023
  class: "embedded-chat-widget embedded-chat-widget--auth"
19906
- }, ow = {
20024
+ }, cw = {
19907
20025
  key: 0,
19908
20026
  class: "embedded-chat-widget embedded-chat-widget--loading"
19909
- }, sw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
20027
+ }, lw = /*#__PURE__*/ Nn(/* @__PURE__ */ J({
19910
20028
  inheritAttrs: !1,
19911
20029
  __name: "EmbeddedChatWidget.ce",
19912
20030
  props: {
@@ -19996,8 +20114,8 @@ var iw = {
19996
20114
  status: e.status
19997
20115
  }), u(e);
19998
20116
  }
19999
- let { t: te } = Le({ useScope: "global" }), ne = BS(() => !!T.hostConfirmation || T.pageControlActive), re = dC(xe(), () => !!n.followPageDialogs && n.followPageDialogs !== "false");
20000
- 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, {
20001
20119
  text: () => te("messagePart.pageControlActive"),
20002
20120
  stopLabel: () => te("action.stop"),
20003
20121
  onStop: () => void T.stopHostActions()
@@ -20088,7 +20206,7 @@ var iw = {
20088
20206
  default: B(() => [Ne(N(Pe.value), 1)]),
20089
20207
  _: 1
20090
20208
  })) : q("", !0),
20091
- F(KC, {
20209
+ F(JC, {
20092
20210
  active: E(T).pageControlActive,
20093
20211
  target: E(V),
20094
20212
  "agent-name": E(A)?.name,
@@ -20104,12 +20222,12 @@ var iw = {
20104
20222
  "style",
20105
20223
  "onArrived"
20106
20224
  ]),
20107
- F(AS, {
20225
+ F(MS, {
20108
20226
  active: E(T).pageControlActive,
20109
20227
  action: E(T).pageAction?.title,
20110
20228
  onStop: n[0] ||= (e) => E(T).stopHostActions()
20111
20229
  }, null, 8, ["active", "action"]),
20112
- E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(MS, {
20230
+ E(T).hostConfirmation && E(ne) && !E(re) ? (P(), L(PS, {
20113
20231
  key: 2,
20114
20232
  question: E(T).hostConfirmation.question ?? E(te)("toolApproval.prompt"),
20115
20233
  details: E(T).hostConfirmation.details,
@@ -20119,12 +20237,12 @@ var iw = {
20119
20237
  "details",
20120
20238
  "onRespond"
20121
20239
  ])) : q("", !0),
20122
- 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),
20123
20241
  F(K, {
20124
20242
  name: "fade",
20125
20243
  appear: ""
20126
20244
  }, {
20127
- 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, {
20128
20246
  key: 0,
20129
20247
  "error-message": E(we),
20130
20248
  "onUpdate:errorMessage": n[1] ||= (e) => Ce(we) ? we.value = e : null,
@@ -20155,17 +20273,17 @@ var iw = {
20155
20273
  "onVerifyTwoFactor",
20156
20274
  "onSendTwoFactorCode",
20157
20275
  "onCancelTwoFactor"
20158
- ])) : (P(), L(PC, { key: 1 }))])) : q("", !0)]),
20276
+ ])) : (P(), L(IC, { key: 1 }))])) : q("", !0)]),
20159
20277
  _: 1
20160
20278
  }),
20161
20279
  F(K, {
20162
20280
  name: "fade",
20163
20281
  appear: ""
20164
20282
  }, {
20165
- 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)]),
20166
20284
  _: 1
20167
20285
  }),
20168
- E(A) && E(l).data && !E(se) ? (P(), L(DS, {
20286
+ E(A) && E(l).data && !E(se) ? (P(), L(kS, {
20169
20287
  key: 4,
20170
20288
  ref_key: "chatbotEl",
20171
20289
  ref: o,
@@ -20198,7 +20316,7 @@ var iw = {
20198
20316
  }, ge({
20199
20317
  "header-actions": B(() => [pe(t.$slots, "header-actions")]),
20200
20318
  actions: B(() => [pe(t.$slots, "actions")]),
20201
- "view-auth": B(() => [F(AC, {
20319
+ "view-auth": B(() => [F(MC, {
20202
20320
  "error-message": E(we),
20203
20321
  "onUpdate:errorMessage": n[3] ||= (e) => Ce(we) ? we.value = e : null,
20204
20322
  success: E(Te),
@@ -20259,7 +20377,7 @@ var iw = {
20259
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}"]]]);
20260
20378
  // src/lib.ts
20261
20379
  De();
20262
- function cw(e) {
20380
+ function uw(e) {
20263
20381
  let { t } = xr.global;
20264
20382
  e.use($n()), e.use(xr), e.provide(Re, xr), e.use(zr, {
20265
20383
  iconsCollections: [Br, Vr],
@@ -20285,15 +20403,15 @@ function cw(e) {
20285
20403
  ki(e instanceof Error ? e : Error(String(e)), { vueInfo: n });
20286
20404
  };
20287
20405
  }
20288
- function lw(e) {
20406
+ function dw(e) {
20289
20407
  let { styles: t } = e;
20290
20408
  return {
20291
- configureApp: cw,
20409
+ configureApp: uw,
20292
20410
  styles: [Ai, ...t ?? []]
20293
20411
  };
20294
20412
  }
20295
- var uw = we(rw, lw(rw)), dw = we(sw, lw(sw));
20296
- customElements.define("floating-chat-widget", uw), customElements.define("embedded-chat-widget", dw);
20297
- 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 };
20298
20416
 
20299
20417
  //# sourceMappingURL=ai-elements.es.js.map