@askly/widget 3.2.0 → 3.4.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 (38) hide show
  1. package/README.md +32 -1
  2. package/dist/app/AttachmentTray-Blmv7Guz.js +1 -0
  3. package/dist/app/HelpTab-o98DHXD5.js +1 -0
  4. package/dist/app/{VoiceRecorder-DI4eeIGU.js → VoiceRecorder-Baoi02BQ.js} +1 -1
  5. package/dist/app/ar-DWu25Uo_.js +1 -0
  6. package/dist/app/askly-app.js +1 -1
  7. package/dist/app/de-CXvx-VOw.js +1 -0
  8. package/dist/app/es-B8CNwk2c.js +1 -0
  9. package/dist/app/fr-CVfeNRtY.js +1 -0
  10. package/dist/app/hi-fJomdKtz.js +1 -0
  11. package/dist/app/pt-BcilM4jM.js +1 -0
  12. package/dist/app/shared-D65DNVg3.js +1 -0
  13. package/dist/app/upload-DYAXS5Co.js +1 -0
  14. package/dist/index.esm.js +1 -1
  15. package/dist/index.umd.js +1 -1
  16. package/dist/loader.js +1 -1
  17. package/dist/types/core/attachments.d.ts +28 -0
  18. package/dist/types/core/events.d.ts +18 -0
  19. package/dist/types/core/help.d.ts +32 -0
  20. package/dist/types/core/history.d.ts +5 -0
  21. package/dist/types/core/types.d.ts +25 -0
  22. package/dist/types/core/upload.d.ts +12 -0
  23. package/dist/types/i18n/en.d.ts +20 -0
  24. package/dist/types/i18n/index.d.ts +2 -0
  25. package/dist/types/ui/AttachmentTray.d.ts +8 -0
  26. package/dist/types/ui/Composer.d.ts +4 -0
  27. package/dist/types/ui/HelpTab.d.ts +10 -2
  28. package/dist/types/ui/MessageList.d.ts +4 -2
  29. package/dist/widget.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/app/HelpTab-Bkp6v19K.js +0 -1
  32. package/dist/app/ar-BEKPCQV-.js +0 -1
  33. package/dist/app/de-BXS-sgxq.js +0 -1
  34. package/dist/app/es-Dj6Vnnqs.js +0 -1
  35. package/dist/app/fr-Bh7EpN4T.js +0 -1
  36. package/dist/app/hi-kcZHSMAB.js +0 -1
  37. package/dist/app/pt-hdmOjlnD.js +0 -1
  38. package/dist/app/shared-D58uTBiu.js +0 -1
@@ -0,0 +1 @@
1
+ const e={launcher_open:"Support-Chat öffnen",launcher_close:"Support-Chat schließen",launcher_open_unread_one:"Support-Chat öffnen, {count} neue Nachricht",launcher_open_unread_other:"Support-Chat öffnen, {count} neue Nachrichten",launcher_unread_overflow:"{count}+",panel_label:"{organizationName} Support",header_messages:"Nachrichten",header_help_center:"Hilfe-Center",header_back_to_conversations:"Zurück zu den Unterhaltungen",header_expand:"Fenster vergrößern",header_collapse:"Fenster verkleinern",header_close:"Schließen",conversation_label:"Unterhaltung",sending_to_team:"Wird an das Team gesendet…",uploading_attachment:"Anhang wird hochgeladen…",new_messages_one:"{count} neue Nachricht",new_messages_other:"{count} neue Nachrichten",reaction_helpful:"Hilfreich",reaction_not_helpful:"Nicht hilfreich",copy_message:"Nachricht kopieren",copied:"Kopiert",message_from_agent:"Support",message_from_you:"Sie",terms_notice:"Mit dem Chat stimmen Sie unseren {terms} zu",terms_link:"Nutzungsbedingungen",powered_by:"Bereitgestellt von {brand}",tab_explore:"Entdecken",tab_messages:"Nachrichten",tab_help:"Hilfe",tabs_label:"Bereiche",conversations_empty_title:"Noch keine Unterhaltungen",conversations_empty_desc:"Starten Sie einen Chat – unser KI-Agent und unser Team helfen Ihnen gern weiter.",conversation_no_messages:"Noch keine Nachrichten",conversation_title:"Chat Nr. {number}",start_new_chat:"Frage stellen",conversation_closed_chip:"Geschlossen",message_not_sent:"Nicht gesendet",message_retry:"Erneut senden",conversation_closed:"Diese Unterhaltung wurde geschlossen. Senden Sie eine Nachricht, um sie wieder zu öffnen, oder beginnen Sie eine neue.",conversation_with_agent:"Diese Unterhaltung wurde an unser Team übergeben. Antworten können etwas länger dauern.",composer_label:"Nachricht",composer_placeholder:"Nachricht eingeben…",composer_placeholder_lead_required:"Geben Sie oben Ihre E-Mail-Adresse ein, um fortzufahren…",composer_placeholder_security_check:"Bestätigen Sie die Sicherheitsprüfung, um zu chatten…",composer_hint:"Enter zum Senden, Shift+Enter für eine neue Zeile",attach_file:"Datei anhängen (max. 10 MB)",insert_emoji:"Emoji einfügen",emoji_picker_label:"Emoji auswählen",send_message:"Nachricht senden",attachment_image_alt:"Bildanhang",attachment_file_label:"Dateianhang: {name}",attachment_remove:"{name} entfernen",attachment_uploading:"{name} wird hochgeladen, {percent}%",attachment_too_large:"Zu groß (Limit 10 MB)",attachment_failed:"Hochladen fehlgeschlagen",attachment_rejected:"Dateityp nicht erlaubt",attachment_limit:"Sie können bis zu {count} Dateien pro Nachricht anhängen.",attachment_drop_hint:"Dateien hier ablegen",attachment_open:"{name} öffnen",attachments_summary_one:"{count} Anhang",attachments_summary_other:"{count} Anhänge",feedback_comment_prompt:"Was war falsch? (optional)",feedback_comment_placeholder:"Erzählen Sie uns etwas mehr…",feedback_comment_send:"Senden",feedback_comment_skip:"Überspringen",feedback_thanks:"Danke für Ihr Feedback",notice_security_check_required:"Bitte schließen Sie zuerst die Sicherheitsprüfung ab.",voice_start:"Spracheingabe",voice_finish:"Aufnahme beenden",voice_status_waiting:"Warten auf das Mikrofon…",voice_status_listening:"Ich höre zu…",voice_status_transcribing:"Wird transkribiert…",voice_countdown:"{count} s",voice_seconds_left_one:"Noch 1 Sekunde",voice_seconds_left_other:"Noch {count} Sekunden",voice_cancel:"Spracheingabe abbrechen",voice_stop:"Beenden und transkribieren",voice_retry:"Erneut versuchen",voice_error_insecure:"Die Spracheingabe benötigt eine sichere (https) Seite.",voice_error_unsupported:"Die Spracheingabe wird in diesem Browser nicht unterstützt.",voice_error_denied:"Der Mikrofonzugriff ist blockiert. Erlauben Sie ihn in den Website-Einstellungen Ihres Browsers, um die Spracheingabe zu nutzen.",voice_error_no_microphone:"Es wurde kein Mikrofon gefunden.",voice_error_no_speech:"Das habe ich nicht verstanden. Bitte versuchen Sie es noch einmal.",voice_error_no_audio:"Von Ihrem Mikrofon kommt kein Ton. Prüfen Sie, ob es stummgeschaltet ist und ob das richtige Mikrofon ausgewählt ist.",voice_error_limit:"Die Spracheingabe ist gerade nicht verfügbar. Bitte tippen Sie Ihre Nachricht.",voice_error_disabled:"Die Spracheingabe ist deaktiviert.",voice_error_network:"Ihre Aufnahme konnte nicht transkribiert werden. Prüfen Sie Ihre Verbindung und versuchen Sie es erneut.",voice_error_failed:"Ihre Aufnahme konnte nicht transkribiert werden. Bitte versuchen Sie es erneut oder tippen Sie Ihre Nachricht.",lead_prompt:"Hinterlassen Sie Ihre E-Mail-Adresse, dann antworten wir Ihnen dort, falls Sie nicht mehr da sind.",lead_email_placeholder:"sie@beispiel.de",lead_email_label:"Ihre E-Mail-Adresse",lead_save:"Speichern",lead_saving:"Wird gespeichert…",lead_dismiss:"Nein, danke",lead_error_invalid_email:"Das sieht nicht wie eine E-Mail-Adresse aus.",lead_error_save_failed:"Das konnte gerade nicht gespeichert werden. Sie können einfach weiterchatten.",greeting_default:"Hallo von {organizationName}. Wie können wir helfen?",greeting_default_persona:"Hallo, ich bin {ai_name} von {organizationName}. Wie kann ich helfen?",greeting_dismiss:"Begrüßung ausblenden",welcome_default:"Hallo! Wie kann ich Ihnen heute helfen?",explore_hero_title:"Hallo",explore_hero_subtitle:"Wie können wir helfen?",explore_search_placeholder:"Hilfe suchen…",explore_cta_title:"Unseren KI-Agenten fragen",explore_cta_sub:"Sofortige Antworten, rund um die Uhr – oder das Team erreichen",explore_tile_help_title:"Hilfe-Center",explore_tile_help_sub:"Anleitungen & Dokumentation",explore_tile_messages_title:"Nachrichten",explore_tile_messages_sub:"Ihre Unterhaltungen",explore_popular_questions:"Häufige Fragen",explore_ask_ai_about_this:"KI-Agenten dazu fragen",explore_recommended_reading:"Leseempfehlungen",help_search_placeholder:"Artikel suchen…",help_search_label:"Artikel suchen",help_searching:"Suche läuft…",help_search_no_results:"Keine Artikel zu „{query}“",help_all_collections:"Alle Sammlungen",help_back_to_articles:"Zurück zu den Artikeln",help_document_type_fallback:"Anleitung",help_written_by:"Verfasst vom Support-Team von {organizationName}",help_updated_recently:"Kürzlich aktualisiert",help_read_time_one:"{count} Min. Lesezeit",help_read_time_other:"{count} Min. Lesezeit",help_feedback_title:"Hat das Ihre Frage beantwortet?",help_feedback_thanks:"Vielen Dank für Ihr Feedback!",help_feedback_yes:"Ja",help_feedback_somewhat:"Teilweise",help_feedback_no:"Nein",help_handoff_title:"Noch Fragen?",help_handoff_desc:"Fragen Sie unseren KI-Agenten für sofortige Antworten",help_handoff_prefill:"Ich habe eine Frage zum Artikel „{title}“: ",help_collection_articles:"Artikel in {collection} ({count})",help_article_count_one:"{count} Artikel",help_article_count_other:"{count} Artikel",help_empty_title:"Hilfe-Dokumentation",help_empty_desc:"Suchen Sie oben, um sofort Lösungen aus unserer Wissensdatenbank zu erhalten.",help_collection_guide_title:"Anleitungen & Tutorials",help_collection_guide_desc:"Einrichtungshilfen, Regeln und Erste-Schritte-Anleitungen",help_collection_faq_title:"Häufig gestellte Fragen",help_collection_faq_desc:"Schnelle Antworten auf häufige Fragen zu Konto und Service",help_collection_troubleshooting_title:"Fehlerbehebung & Support",help_collection_troubleshooting_desc:"Schritt-für-Schritt-Lösungen für technische Probleme",help_collection_other_title:"Regeln & Dokumentation",help_collection_other_desc:"Offizielle Bedingungen, Regeln und Richtlinien",help_featured_article:"Empfohlener Artikel",help_untitled_article:"Artikel ohne Titel",help_unavailable:"Das Hilfe-Center konnte nicht geladen werden. Prüfen Sie Ihre Verbindung und versuchen Sie es erneut.",help_updated_on:"Aktualisiert am {date}",help_open_site:"Im Hilfecenter öffnen",help_article_unavailable:"Dieser Artikel konnte nicht geladen werden.",hours_away_until:"Wir sind gerade nicht da und sind {time} zurück. Hinterlassen Sie eine Nachricht, wir antworten per E-Mail.",hours_away:"Wir sind gerade nicht da. Hinterlassen Sie eine Nachricht, wir antworten per E-Mail.",link_opens_new_tab:"(öffnet in einem neuen Tab)",error_search_rate_limited:"Sie suchen zu schnell. Bitte warten Sie einen Moment und versuchen Sie es erneut.",error_search_unavailable:"Die Suche ist gerade nicht verfügbar. Bitte versuchen Sie es in Kürze erneut.",error_send_rate_limited:"Sie senden Nachrichten zu schnell. Bitte warten Sie einen Moment und versuchen Sie es erneut.",error_attachment_rejected:"Diese Datei kann nicht angehängt werden. Sie ist möglicherweise zu groß (max. 10 MB) oder hat einen nicht zugelassenen Dateityp.",error_attachment_upload_failed:"Dieser Anhang konnte nicht hochgeladen werden. Bitte versuchen Sie es erneut."};export{e as default};
@@ -0,0 +1 @@
1
+ const e={launcher_open:"Abrir el chat de soporte",launcher_close:"Cerrar el chat de soporte",launcher_open_unread_one:"Abrir el chat de soporte, {count} mensaje nuevo",launcher_open_unread_other:"Abrir el chat de soporte, {count} mensajes nuevos",launcher_unread_overflow:"{count}+",panel_label:"Soporte de {organizationName}",header_messages:"Mensajes",header_help_center:"Centro de ayuda",header_back_to_conversations:"Volver a las conversaciones",header_expand:"Ampliar ventana",header_collapse:"Reducir ventana",header_close:"Cerrar",conversation_label:"Conversación",sending_to_team:"Enviando al equipo…",uploading_attachment:"Subiendo archivo adjunto…",new_messages_one:"{count} mensaje nuevo",new_messages_other:"{count} mensajes nuevos",reaction_helpful:"Útil",reaction_not_helpful:"No útil",copy_message:"Copiar mensaje",copied:"Copiado",message_from_agent:"Agente",message_from_you:"Tú",terms_notice:"Al chatear, acepta nuestros {terms}",terms_link:"Términos",powered_by:"Con tecnología de {brand}",tab_explore:"Explorar",tab_messages:"Mensajes",tab_help:"Ayuda",tabs_label:"Secciones",conversations_empty_title:"Aún no hay conversaciones",conversations_empty_desc:"Inicie un chat y nuestro agente de IA y nuestro equipo le ayudarán.",conversation_no_messages:"Aún no hay mensajes",conversation_title:"Chat n.º {number}",start_new_chat:"Hacer una pregunta",conversation_closed_chip:"Cerrada",message_not_sent:"No enviado",message_retry:"Reintentar",conversation_closed:"Esta conversación se cerró. Envíe un mensaje para reabrirla o inicie una nueva.",conversation_with_agent:"Esta conversación se ha pasado a nuestro equipo. Las respuestas pueden tardar un poco más.",composer_label:"Mensaje",composer_placeholder:"Escriba su mensaje…",composer_placeholder_lead_required:"Indique su correo electrónico arriba para continuar…",composer_placeholder_security_check:"Complete la verificación de seguridad para chatear…",composer_hint:"Presione Intro para enviar y Mayús+Intro para una nueva línea",attach_file:"Adjuntar un archivo (máx. 10 MB)",insert_emoji:"Insertar emoji",emoji_picker_label:"Elegir un emoji",send_message:"Enviar mensaje",attachment_image_alt:"Imagen adjunta",attachment_file_label:"Archivo adjunto: {name}",attachment_remove:"Quitar {name}",attachment_uploading:"Subiendo {name}, {percent}%",attachment_too_large:"Demasiado grande (límite 10 MB)",attachment_failed:"Error al subir",attachment_rejected:"Tipo de archivo no permitido",attachment_limit:"Puede adjuntar hasta {count} archivos por mensaje.",attachment_drop_hint:"Suelte los archivos para adjuntarlos",attachment_open:"Abrir {name}",attachments_summary_one:"{count} adjunto",attachments_summary_other:"{count} adjuntos",feedback_comment_prompt:"¿Qué estuvo mal? (opcional)",feedback_comment_placeholder:"Cuéntenos un poco más…",feedback_comment_send:"Enviar",feedback_comment_skip:"Omitir",feedback_thanks:"Gracias por su opinión",notice_security_check_required:"Primero complete la verificación de seguridad.",voice_start:"Entrada de voz",voice_finish:"Finalizar grabación",voice_status_waiting:"Esperando el micrófono…",voice_status_listening:"Escuchando…",voice_status_transcribing:"Transcribiendo…",voice_countdown:"{count} s",voice_seconds_left_one:"Queda 1 segundo",voice_seconds_left_other:"Quedan {count} segundos",voice_cancel:"Cancelar entrada de voz",voice_stop:"Detener y transcribir",voice_retry:"Intentar de nuevo",voice_error_insecure:"La entrada de voz requiere una página segura (https).",voice_error_unsupported:"Este navegador no admite la entrada de voz.",voice_error_denied:"El acceso al micrófono está bloqueado. Permítalo en la configuración del sitio de su navegador para usar la entrada de voz.",voice_error_no_microphone:"No se encontró ningún micrófono.",voice_error_no_speech:"No se detectó voz. Intente de nuevo.",voice_error_no_audio:"No llega sonido del micrófono. Verifique que no esté silenciado y que esté seleccionado el correcto.",voice_error_limit:"La entrada de voz no está disponible en este momento. Escriba su mensaje.",voice_error_disabled:"La entrada de voz está desactivada.",voice_error_network:"No se pudo transcribir la grabación. Revise su conexión e intente de nuevo.",voice_error_failed:"No se pudo transcribir la grabación. Intente de nuevo o escriba su mensaje.",lead_prompt:"Deje su correo electrónico y le responderemos ahí si ya no está.",lead_email_placeholder:"nombre@ejemplo.com",lead_email_label:"Su dirección de correo electrónico",lead_save:"Guardar",lead_saving:"Guardando…",lead_dismiss:"No, gracias",lead_error_invalid_email:"Eso no parece una dirección de correo electrónico.",lead_error_save_failed:"No se pudo guardar en este momento. Puede seguir chateando.",greeting_default:"Hola de parte de {organizationName}. ¿En qué podemos ayudarle?",greeting_default_persona:"Hola, soy {ai_name}, de {organizationName}. ¿En qué puedo ayudarle?",greeting_dismiss:"Cerrar saludo",welcome_default:"¡Hola! ¿En qué puedo ayudarle hoy?",explore_hero_title:"¡Hola!",explore_hero_subtitle:"¿En qué podemos ayudarle?",explore_search_placeholder:"Buscar ayuda…",explore_cta_title:"Pregunte a nuestro agente de IA",explore_cta_sub:"Respuestas al instante, 24/7, o hable con el equipo",explore_tile_help_title:"Centro de ayuda",explore_tile_help_sub:"Guías y documentación",explore_tile_messages_title:"Mensajes",explore_tile_messages_sub:"Sus conversaciones",explore_popular_questions:"Preguntas populares",explore_ask_ai_about_this:"Preguntar al agente de IA sobre esto",explore_recommended_reading:"Lectura recomendada",help_search_placeholder:"Buscar artículos…",help_search_label:"Buscar artículos",help_searching:"Buscando…",help_search_no_results:"No hay artículos que coincidan con «{query}»",help_all_collections:"Todas las colecciones",help_back_to_articles:"Volver a los artículos",help_document_type_fallback:"Guía",help_written_by:"Escrito por el equipo de soporte de {organizationName}",help_updated_recently:"Actualizado recientemente",help_read_time_one:"{count} min de lectura",help_read_time_other:"{count} min de lectura",help_feedback_title:"¿Respondió esto a su pregunta?",help_feedback_thanks:"¡Gracias por sus comentarios!",help_feedback_yes:"Sí",help_feedback_somewhat:"Más o menos",help_feedback_no:"No",help_handoff_title:"¿Aún tiene preguntas?",help_handoff_desc:"Pregunte a nuestro agente de IA para obtener respuestas al instante",help_handoff_prefill:"Tengo una pregunta sobre el artículo «{title}»: ",help_collection_articles:"Artículos de {collection} ({count})",help_article_count_one:"{count} artículo",help_article_count_other:"{count} artículos",help_empty_title:"Documentación de ayuda",help_empty_desc:"Busque arriba para obtener soluciones al instante desde nuestra base de conocimientos.",help_collection_guide_title:"Guías y tutoriales",help_collection_guide_desc:"Tutoriales de configuración, normas y guías para empezar",help_collection_faq_title:"Preguntas frecuentes",help_collection_faq_desc:"Respuestas rápidas a preguntas habituales sobre la cuenta y el servicio",help_collection_troubleshooting_title:"Solución de problemas y soporte",help_collection_troubleshooting_desc:"Soluciones paso a paso para problemas técnicos",help_collection_other_title:"Normas y documentación",help_collection_other_desc:"Términos oficiales, normas y documentación de políticas",help_featured_article:"Artículo destacado",help_untitled_article:"Artículo sin título",help_unavailable:"No se pudo cargar el centro de ayuda. Revise su conexión e intente de nuevo.",help_updated_on:"Actualizado el {date}",help_open_site:"Abrir en el centro de ayuda",help_article_unavailable:"No se pudo cargar este artículo.",hours_away_until:"Ahora no estamos y volveremos {time}. Deje un mensaje y le responderemos por correo.",hours_away:"Ahora no estamos. Deje un mensaje y le responderemos por correo.",link_opens_new_tab:"(se abre en una pestaña nueva)",error_search_rate_limited:"Está buscando demasiado rápido. Espere un momento e intente de nuevo.",error_search_unavailable:"La búsqueda no está disponible en este momento. Intente de nuevo en unos instantes.",error_send_rate_limited:"Está enviando mensajes demasiado rápido. Espere un momento e intente de nuevo.",error_attachment_rejected:"No se puede adjuntar ese archivo. Puede que sea demasiado grande (límite de 10 MB) o de un tipo no permitido.",error_attachment_upload_failed:"No se pudo subir el archivo adjunto. Intente de nuevo."};export{e as default};
@@ -0,0 +1 @@
1
+ const e={launcher_open:"Ouvrir le chat d’assistance",launcher_close:"Fermer le chat d’assistance",launcher_open_unread_one:"Ouvrir le chat d’assistance, {count} nouveau message",launcher_open_unread_other:"Ouvrir le chat d’assistance, {count} nouveaux messages",launcher_unread_overflow:"{count}+",panel_label:"Assistance {organizationName}",header_messages:"Messages",header_help_center:"Centre d’aide",header_back_to_conversations:"Retour aux conversations",header_expand:"Agrandir la fenêtre",header_collapse:"Réduire la fenêtre",header_close:"Fermer",conversation_label:"Conversation",sending_to_team:"Envoi à l’équipe…",uploading_attachment:"Envoi de la pièce jointe…",new_messages_one:"{count} nouveau message",new_messages_other:"{count} nouveaux messages",reaction_helpful:"Utile",reaction_not_helpful:"Pas utile",copy_message:"Copier le message",copied:"Copié",message_from_agent:"Agent",message_from_you:"Vous",terms_notice:"En discutant avec nous, vous acceptez nos {terms}",terms_link:"Conditions d’utilisation",powered_by:"Propulsé par {brand}",tab_explore:"Explorer",tab_messages:"Messages",tab_help:"Aide",tabs_label:"Sections",conversations_empty_title:"Aucune conversation pour l’instant",conversations_empty_desc:"Lancez une discussion : notre agent IA et notre équipe sont là pour vous aider.",conversation_no_messages:"Aucun message pour l’instant",conversation_title:"Chat n° {number}",start_new_chat:"Poser une question",conversation_closed_chip:"Fermée",message_not_sent:"Non envoyé",message_retry:"Réessayer",conversation_closed:"Cette conversation a été fermée. Envoyez un message pour la rouvrir, ou commencez-en une nouvelle.",conversation_with_agent:"Cette conversation a été transmise à notre équipe. Les réponses peuvent prendre un peu plus de temps.",composer_label:"Message",composer_placeholder:"Écrivez votre message…",composer_placeholder_lead_required:"Ajoutez votre e-mail ci-dessus pour continuer…",composer_placeholder_security_check:"Validez la vérification de sécurité pour discuter…",composer_hint:"Entrée pour envoyer, Maj+Entrée pour un saut de ligne",attach_file:"Joindre un fichier (10 Mo max)",insert_emoji:"Insérer un emoji",emoji_picker_label:"Choisir un emoji",send_message:"Envoyer le message",attachment_image_alt:"Image jointe",attachment_file_label:"Fichier joint : {name}",attachment_remove:"Retirer {name}",attachment_uploading:"Envoi de {name}, {percent} %",attachment_too_large:"Trop volumineux (limite 10 Mo)",attachment_failed:"Échec de l’envoi",attachment_rejected:"Type de fichier non autorisé",attachment_limit:"Vous pouvez joindre jusqu’à {count} fichiers par message.",attachment_drop_hint:"Déposez les fichiers pour les joindre",attachment_open:"Ouvrir {name}",attachments_summary_one:"{count} pièce jointe",attachments_summary_other:"{count} pièces jointes",feedback_comment_prompt:"Qu’est-ce qui n’allait pas ? (facultatif)",feedback_comment_placeholder:"Dites-nous en un peu plus…",feedback_comment_send:"Envoyer",feedback_comment_skip:"Passer",feedback_thanks:"Merci pour votre retour",notice_security_check_required:"Veuillez d’abord effectuer la vérification de sécurité.",voice_start:"Saisie vocale",voice_finish:"Terminer l’enregistrement",voice_status_waiting:"En attente du micro…",voice_status_listening:"Écoute en cours…",voice_status_transcribing:"Transcription en cours…",voice_countdown:"{count} s",voice_seconds_left_one:"{count} seconde restante",voice_seconds_left_other:"{count} secondes restantes",voice_cancel:"Annuler la saisie vocale",voice_stop:"Arrêter et transcrire",voice_retry:"Réessayer",voice_error_insecure:"La saisie vocale nécessite une page sécurisée (https).",voice_error_unsupported:"La saisie vocale n’est pas prise en charge par ce navigateur.",voice_error_denied:"L’accès au micro est bloqué. Autorisez-le dans les paramètres du site de votre navigateur pour utiliser la saisie vocale.",voice_error_no_microphone:"Aucun micro détecté.",voice_error_no_speech:"Je n’ai pas bien entendu. Veuillez réessayer.",voice_error_no_audio:"Aucun son ne provient de votre micro. Vérifiez qu’il n’est pas coupé et que le bon micro est sélectionné.",voice_error_limit:"La saisie vocale n’est pas disponible pour le moment. Veuillez écrire votre message.",voice_error_disabled:"La saisie vocale est désactivée.",voice_error_network:"Votre enregistrement n’a pas pu être transcrit. Vérifiez votre connexion et réessayez.",voice_error_failed:"Votre enregistrement n’a pas pu être transcrit. Réessayez ou écrivez votre message.",lead_prompt:"Laissez votre e-mail : nous vous y répondrons si vous n’êtes plus là.",lead_email_placeholder:"vous@exemple.com",lead_email_label:"Votre adresse e-mail",lead_save:"Enregistrer",lead_saving:"Enregistrement…",lead_dismiss:"Non merci",lead_error_invalid_email:"Cela ne ressemble pas à une adresse e-mail.",lead_error_save_failed:"Impossible d’enregistrer pour le moment. Vous pouvez continuer à discuter.",greeting_default:"Bonjour, ici {organizationName}. Comment pouvons-nous vous aider ?",greeting_default_persona:"Bonjour, je suis {ai_name} de {organizationName}. Comment puis-je vous aider ?",greeting_dismiss:"Fermer le message d’accueil",welcome_default:"Bonjour ! Comment puis-je vous aider aujourd’hui ?",explore_hero_title:"Bonjour",explore_hero_subtitle:"Comment pouvons-nous vous aider ?",explore_search_placeholder:"Rechercher de l’aide…",explore_cta_title:"Demander à notre agent IA",explore_cta_sub:"Réponses instantanées 24h/24 et 7j/7 — ou contactez l’équipe",explore_tile_help_title:"Centre d’aide",explore_tile_help_sub:"Guides et documentation",explore_tile_messages_title:"Messages",explore_tile_messages_sub:"Vos conversations",explore_popular_questions:"Questions populaires",explore_ask_ai_about_this:"Poser la question à l’agent IA",explore_recommended_reading:"Lectures recommandées",help_search_placeholder:"Rechercher des articles…",help_search_label:"Rechercher des articles",help_searching:"Recherche en cours…",help_search_no_results:"Aucun article ne correspond à « {query} »",help_all_collections:"Toutes les collections",help_back_to_articles:"Retour aux articles",help_document_type_fallback:"Guide",help_written_by:"Rédigé par l’équipe d’assistance {organizationName}",help_updated_recently:"Mis à jour récemment",help_read_time_one:"{count} min de lecture",help_read_time_other:"{count} min de lecture",help_feedback_title:"Cet article a-t-il répondu à votre question ?",help_feedback_thanks:"Merci pour votre retour !",help_feedback_yes:"Oui",help_feedback_somewhat:"En partie",help_feedback_no:"Non",help_handoff_title:"D’autres questions ?",help_handoff_desc:"Demandez à notre agent IA une réponse immédiate",help_handoff_prefill:"J’ai une question sur l’article « {title} » : ",help_collection_articles:"{collection} — articles ({count})",help_article_count_one:"{count} article",help_article_count_other:"{count} articles",help_empty_title:"Documentation d’aide",help_empty_desc:"Recherchez ci-dessus pour trouver des solutions dans notre base de connaissances.",help_collection_guide_title:"Guides et tutoriels",help_collection_guide_desc:"Pas à pas de configuration, règles et guides de démarrage",help_collection_faq_title:"Foire aux questions",help_collection_faq_desc:"Réponses rapides aux questions courantes sur votre compte et nos services",help_collection_troubleshooting_title:"Dépannage et assistance",help_collection_troubleshooting_desc:"Solutions pas à pas aux problèmes techniques",help_collection_other_title:"Règles et documentation",help_collection_other_desc:"Conditions officielles, règles et politiques",help_featured_article:"Article à la une",help_untitled_article:"Article sans titre",help_unavailable:"Le centre d’aide n’a pas pu être chargé. Vérifiez votre connexion et réessayez.",help_updated_on:"Mis à jour le {date}",help_open_site:"Ouvrir dans le centre d’aide",help_article_unavailable:"Cet article n’a pas pu être chargé.",hours_away_until:"Nous sommes absents pour le moment et serons de retour {time}. Laissez un message et nous répondrons par e-mail.",hours_away:"Nous sommes absents pour le moment. Laissez un message et nous répondrons par e-mail.",link_opens_new_tab:"(s’ouvre dans un nouvel onglet)",error_search_rate_limited:"Vous effectuez trop de recherches. Patientez un instant, puis réessayez.",error_search_unavailable:"La recherche est indisponible pour le moment. Veuillez réessayer dans quelques instants.",error_send_rate_limited:"Vous envoyez des messages trop vite. Patientez un instant, puis réessayez.",error_attachment_rejected:"Ce fichier ne peut pas être joint. Il est peut-être trop volumineux (10 Mo max) ou d’un type non autorisé.",error_attachment_upload_failed:"Cette pièce jointe n’a pas pu être envoyée. Veuillez réessayer."};export{e as default};
@@ -0,0 +1 @@
1
+ const e={launcher_open:"सपोर्ट चैट खोलें",launcher_close:"सपोर्ट चैट बंद करें",launcher_open_unread_one:"सपोर्ट चैट खोलें, {count} नया मैसेज",launcher_open_unread_other:"सपोर्ट चैट खोलें, {count} नए मैसेज",launcher_unread_overflow:"{count}+",panel_label:"{organizationName} सपोर्ट",header_messages:"मैसेज",header_help_center:"हेल्प सेंटर",header_back_to_conversations:"बातचीत की सूची पर वापस जाएँ",header_expand:"विंडो बड़ी करें",header_collapse:"विंडो छोटी करें",header_close:"बंद करें",conversation_label:"बातचीत",sending_to_team:"टीम को भेजा जा रहा है…",uploading_attachment:"अटैचमेंट अपलोड हो रहा है…",new_messages_one:"{count} नया मैसेज",new_messages_other:"{count} नए मैसेज",reaction_helpful:"मददगार",reaction_not_helpful:"मददगार नहीं",copy_message:"मैसेज कॉपी करें",copied:"कॉपी हो गया",message_from_agent:"एजेंट",message_from_you:"आप",terms_notice:"चैट करके आप हमारी {terms} स्वीकार करते हैं",terms_link:"सेवा की शर्तें",powered_by:"{brand} द्वारा संचालित",tab_explore:"एक्सप्लोर",tab_messages:"मैसेज",tab_help:"हेल्प",tabs_label:"सेक्शन",conversations_empty_title:"अभी कोई बातचीत नहीं",conversations_empty_desc:"चैट शुरू करें, हमारा AI एजेंट और टीम आपकी मदद करेंगे।",conversation_no_messages:"अभी कोई मैसेज नहीं",conversation_title:"चैट #{number}",start_new_chat:"सवाल पूछें",conversation_closed_chip:"बंद",message_not_sent:"नहीं भेजा गया",message_retry:"फिर से भेजें",conversation_closed:"यह बातचीत बंद कर दी गई थी। इसे फिर से खोलने के लिए संदेश भेजें, या नई बातचीत शुरू करें।",conversation_with_agent:"यह बातचीत हमारी टीम को सौंप दी गई है। जवाब में थोड़ा अधिक समय लग सकता है।",composer_label:"मैसेज",composer_placeholder:"अपना मैसेज लिखें…",composer_placeholder_lead_required:"आगे बढ़ने के लिए ऊपर अपना ईमेल डालें…",composer_placeholder_security_check:"चैट करने के लिए सुरक्षा जाँच पूरी करें…",composer_hint:"भेजने के लिए Enter, नई लाइन के लिए Shift+Enter दबाएँ",attach_file:"फ़ाइल अटैच करें (अधिकतम 10 MB)",insert_emoji:"इमोजी डालें",emoji_picker_label:"इमोजी चुनें",send_message:"मैसेज भेजें",attachment_image_alt:"इमेज अटैचमेंट",attachment_file_label:"फ़ाइल अटैचमेंट: {name}",attachment_remove:"{name} हटाएँ",attachment_uploading:"{name} अपलोड हो रहा है, {percent}%",attachment_too_large:"बहुत बड़ा है (सीमा 10 MB)",attachment_failed:"अपलोड विफल",attachment_rejected:"फ़ाइल प्रकार की अनुमति नहीं",attachment_limit:"आप प्रति संदेश अधिकतम {count} फ़ाइलें संलग्न कर सकते हैं।",attachment_drop_hint:"संलग्न करने के लिए फ़ाइलें यहाँ छोड़ें",attachment_open:"{name} खोलें",attachments_summary_one:"{count} अनुलग्नक",attachments_summary_other:"{count} अनुलग्नक",feedback_comment_prompt:"क्या गलत था? (वैकल्पिक)",feedback_comment_placeholder:"हमें थोड़ा और बताएँ…",feedback_comment_send:"भेजें",feedback_comment_skip:"छोड़ें",feedback_thanks:"आपकी प्रतिक्रिया के लिए धन्यवाद",notice_security_check_required:"कृपया पहले सुरक्षा जाँच पूरी करें।",voice_start:"वॉइस इनपुट",voice_finish:"रिकॉर्डिंग पूरी करें",voice_status_waiting:"माइक्रोफ़ोन का इंतज़ार है…",voice_status_listening:"सुन रहे हैं…",voice_status_transcribing:"टेक्स्ट में बदला जा रहा है…",voice_countdown:"{count} से.",voice_seconds_left_one:"{count} सेकंड बाकी",voice_seconds_left_other:"{count} सेकंड बाकी",voice_cancel:"वॉइस इनपुट रद्द करें",voice_stop:"रोकें और टेक्स्ट में बदलें",voice_retry:"फिर से कोशिश करें",voice_error_insecure:"वॉइस इनपुट के लिए सुरक्षित (https) पेज ज़रूरी है।",voice_error_unsupported:"यह ब्राउज़र वॉइस इनपुट सपोर्ट नहीं करता।",voice_error_denied:"माइक्रोफ़ोन की अनुमति नहीं है। वॉइस इनपुट इस्तेमाल करने के लिए ब्राउज़र की साइट सेटिंग्स में इसे अनुमति दें।",voice_error_no_microphone:"कोई माइक्रोफ़ोन नहीं मिला।",voice_error_no_speech:"कुछ सुनाई नहीं दिया। कृपया फिर से कोशिश करें।",voice_error_no_audio:"आपके माइक्रोफ़ोन से कोई आवाज़ नहीं आ रही है। देख लें कि वह म्यूट न हो और सही माइक्रोफ़ोन चुना गया हो।",voice_error_limit:"वॉइस इनपुट अभी उपलब्ध नहीं है। कृपया अपना मैसेज टाइप करें।",voice_error_disabled:"वॉइस इनपुट बंद है।",voice_error_network:"आपकी रिकॉर्डिंग टेक्स्ट में नहीं बदली जा सकी। अपना कनेक्शन जाँचें और फिर से कोशिश करें।",voice_error_failed:"आपकी रिकॉर्डिंग टेक्स्ट में नहीं बदली जा सकी। कृपया फिर से कोशिश करें या अपना मैसेज टाइप करें।",lead_prompt:"अपना ईमेल छोड़ दें, अगर आप चले गए तो हम वहाँ जवाब देंगे।",lead_email_placeholder:"you@example.com",lead_email_label:"आपका ईमेल पता",lead_save:"सेव करें",lead_saving:"सेव हो रहा है…",lead_dismiss:"नहीं, धन्यवाद",lead_error_invalid_email:"यह ईमेल पता सही नहीं लग रहा।",lead_error_save_failed:"अभी सेव नहीं हो सका। आप चैट जारी रख सकते हैं।",greeting_default:"{organizationName} की ओर से नमस्ते। हम आपकी कैसे मदद कर सकते हैं?",greeting_default_persona:"नमस्ते, मैं {organizationName} से {ai_name} हूँ। बताइए, आपकी कैसे मदद करूँ?",greeting_dismiss:"ग्रीटिंग हटाएँ",welcome_default:"नमस्ते! आज आपकी कैसे मदद करूँ?",explore_hero_title:"नमस्ते",explore_hero_subtitle:"हम आपकी कैसे मदद कर सकते हैं?",explore_search_placeholder:"मदद खोजें…",explore_cta_title:"हमारे AI एजेंट से पूछें",explore_cta_sub:"तुरंत जवाब, 24/7 — या टीम से बात करें",explore_tile_help_title:"हेल्प सेंटर",explore_tile_help_sub:"गाइड और डॉक्स",explore_tile_messages_title:"मैसेज",explore_tile_messages_sub:"आपकी बातचीत",explore_popular_questions:"लोकप्रिय सवाल",explore_ask_ai_about_this:"इस बारे में AI एजेंट से पूछें",explore_recommended_reading:"सुझाए गए लेख",help_search_placeholder:"लेख खोजें…",help_search_label:"लेख खोजें",help_searching:"खोज रहे हैं…",help_search_no_results:"“{query}” से मेल खाता कोई लेख नहीं मिला",help_all_collections:"सभी कलेक्शन",help_back_to_articles:"लेखों पर वापस जाएँ",help_document_type_fallback:"गाइड",help_written_by:"{organizationName} सपोर्ट टीम द्वारा लिखित",help_updated_recently:"हाल ही में अपडेट किया गया",help_read_time_one:"{count} मिनट में पढ़ें",help_read_time_other:"{count} मिनट में पढ़ें",help_feedback_title:"क्या इससे आपके सवाल का जवाब मिला?",help_feedback_thanks:"आपके फ़ीडबैक के लिए धन्यवाद!",help_feedback_yes:"हाँ",help_feedback_somewhat:"कुछ हद तक",help_feedback_no:"नहीं",help_handoff_title:"अभी भी कोई सवाल है?",help_handoff_desc:"तुरंत जवाब के लिए हमारे AI एजेंट से पूछें",help_handoff_prefill:"मुझे “{title}” लेख के बारे में एक सवाल है: ",help_collection_articles:"{collection} के लेख ({count})",help_article_count_one:"{count} लेख",help_article_count_other:"{count} लेख",help_empty_title:"हेल्प डॉक्यूमेंटेशन",help_empty_desc:"हमारे नॉलेज बेस से तुरंत समाधान पाने के लिए ऊपर खोजें।",help_collection_guide_title:"गाइड और ट्यूटोरियल",help_collection_guide_desc:"सेटअप की जानकारी, नियम और शुरुआत करने की गाइड",help_collection_faq_title:"अक्सर पूछे जाने वाले सवाल",help_collection_faq_desc:"अकाउंट और सेवा से जुड़े आम सवालों के छोटे जवाब",help_collection_troubleshooting_title:"समस्या समाधान और सपोर्ट",help_collection_troubleshooting_desc:"तकनीकी समस्याओं के लिए चरण-दर-चरण समाधान",help_collection_other_title:"नियम और डॉक्यूमेंटेशन",help_collection_other_desc:"आधिकारिक शर्तें, नियम और नीति दस्तावेज़",help_featured_article:"विशेष लेख",help_untitled_article:"बिना शीर्षक का लेख",help_unavailable:"हेल्प सेंटर लोड नहीं हो सका। अपना कनेक्शन जाँचें और फिर से कोशिश करें।",help_updated_on:"{date} को अपडेट किया गया",help_open_site:"सहायता केंद्र में खोलें",help_article_unavailable:"यह लेख लोड नहीं हो सका।",hours_away_until:"हम अभी उपलब्ध नहीं हैं और {time} वापस आएँगे। संदेश छोड़ें, हम ईमेल से जवाब देंगे।",hours_away:"हम अभी उपलब्ध नहीं हैं। संदेश छोड़ें, हम ईमेल से जवाब देंगे।",link_opens_new_tab:"(नए टैब में खुलता है)",error_search_rate_limited:"आप बहुत तेज़ी से खोज रहे हैं। कृपया थोड़ा रुकें और फिर से कोशिश करें।",error_search_unavailable:"खोज अभी उपलब्ध नहीं है। कृपया थोड़ी देर बाद फिर से कोशिश करें।",error_send_rate_limited:"आप बहुत तेज़ी से मैसेज भेज रहे हैं। कृपया थोड़ा रुकें और फिर से कोशिश करें।",error_attachment_rejected:"यह फ़ाइल अटैच नहीं की जा सकती। हो सकता है यह बहुत बड़ी हो (10 MB की सीमा) या इस तरह की फ़ाइल की अनुमति न हो।",error_attachment_upload_failed:"यह अटैचमेंट अपलोड नहीं हो सका। कृपया फिर से कोशिश करें।"};export{e as default};
@@ -0,0 +1 @@
1
+ const e={launcher_open:"Abrir chat de suporte",launcher_close:"Fechar chat de suporte",launcher_open_unread_one:"Abrir chat de suporte, {count} mensagem nova",launcher_open_unread_other:"Abrir chat de suporte, {count} mensagens novas",launcher_unread_overflow:"{count}+",panel_label:"Suporte de {organizationName}",header_messages:"Mensagens",header_help_center:"Central de Ajuda",header_back_to_conversations:"Voltar às conversas",header_expand:"Expandir janela",header_collapse:"Reduzir janela",header_close:"Fechar",conversation_label:"Conversa",sending_to_team:"Enviando para a equipe…",uploading_attachment:"Enviando anexo…",new_messages_one:"{count} mensagem nova",new_messages_other:"{count} mensagens novas",reaction_helpful:"Útil",reaction_not_helpful:"Não foi útil",copy_message:"Copiar mensagem",copied:"Copiado",message_from_agent:"Atendente",message_from_you:"Você",terms_notice:"Ao conversar, você concorda com nossos {terms}",terms_link:"Termos",powered_by:"Desenvolvido por {brand}",tab_explore:"Explorar",tab_messages:"Mensagens",tab_help:"Ajuda",tabs_label:"Seções",conversations_empty_title:"Nenhuma conversa ainda",conversations_empty_desc:"Inicie um chat e nosso agente de IA e nossa equipe vão ajudar você.",conversation_no_messages:"Nenhuma mensagem ainda",conversation_title:"Chat nº {number}",start_new_chat:"Fazer uma pergunta",conversation_closed_chip:"Encerrada",message_not_sent:"Não enviada",message_retry:"Tentar novamente",conversation_closed:"Esta conversa foi encerrada. Envie uma mensagem para reabri-la ou inicie uma nova.",conversation_with_agent:"Esta conversa foi encaminhada à nossa equipe. As respostas podem demorar um pouco mais.",composer_label:"Mensagem",composer_placeholder:"Digite sua mensagem…",composer_placeholder_lead_required:"Informe seu e-mail acima para continuar…",composer_placeholder_security_check:"Conclua a verificação de segurança para conversar…",composer_hint:"Pressione Enter para enviar e Shift+Enter para uma nova linha",attach_file:"Anexar um arquivo (máx. 10 MB)",insert_emoji:"Inserir emoji",emoji_picker_label:"Escolha um emoji",send_message:"Enviar mensagem",attachment_image_alt:"Imagem anexada",attachment_file_label:"Arquivo anexado: {name}",attachment_remove:"Remover {name}",attachment_uploading:"Enviando {name}, {percent}%",attachment_too_large:"Muito grande (limite de 10 MB)",attachment_failed:"Falha no envio",attachment_rejected:"Tipo de arquivo não permitido",attachment_limit:"Você pode anexar até {count} arquivos por mensagem.",attachment_drop_hint:"Solte os arquivos para anexá-los",attachment_open:"Abrir {name}",attachments_summary_one:"{count} anexo",attachments_summary_other:"{count} anexos",feedback_comment_prompt:"O que deu errado? (opcional)",feedback_comment_placeholder:"Conte-nos um pouco mais…",feedback_comment_send:"Enviar",feedback_comment_skip:"Pular",feedback_thanks:"Obrigado pelo seu feedback",notice_security_check_required:"Conclua a verificação de segurança primeiro.",voice_start:"Entrada por voz",voice_finish:"Concluir gravação",voice_status_waiting:"Aguardando o microfone…",voice_status_listening:"Ouvindo…",voice_status_transcribing:"Transcrevendo…",voice_countdown:"{count} s",voice_seconds_left_one:"{count} segundo restante",voice_seconds_left_other:"{count} segundos restantes",voice_cancel:"Cancelar entrada por voz",voice_stop:"Parar e transcrever",voice_retry:"Tentar novamente",voice_error_insecure:"A entrada por voz precisa de uma página segura (https).",voice_error_unsupported:"A entrada por voz não é compatível com este navegador.",voice_error_denied:"O acesso ao microfone está bloqueado. Permita-o nas configurações do site no seu navegador para usar a entrada por voz.",voice_error_no_microphone:"Nenhum microfone foi encontrado.",voice_error_no_speech:"Não consegui entender. Tente novamente.",voice_error_no_audio:"Nenhum som está chegando do seu microfone. Verifique se ele não está no mudo e se o microfone certo está selecionado.",voice_error_limit:"A entrada por voz não está disponível no momento. Digite sua mensagem.",voice_error_disabled:"A entrada por voz está desativada.",voice_error_network:"Não foi possível transcrever sua gravação. Verifique sua conexão e tente novamente.",voice_error_failed:"Não foi possível transcrever sua gravação. Tente novamente ou digite sua mensagem.",lead_prompt:"Deixe seu e-mail e responderemos por lá caso você já tenha saído.",lead_email_placeholder:"voce@exemplo.com",lead_email_label:"Seu endereço de e-mail",lead_save:"Salvar",lead_saving:"Salvando…",lead_dismiss:"Não, obrigado",lead_error_invalid_email:"Isso não parece um endereço de e-mail.",lead_error_save_failed:"Não foi possível salvar agora. Você pode continuar conversando.",greeting_default:"Olá, aqui é {organizationName}. Como podemos ajudar?",greeting_default_persona:"Olá, eu sou {ai_name}, de {organizationName}. Como posso ajudar?",greeting_dismiss:"Fechar saudação",welcome_default:"Olá! Como posso ajudar você hoje?",explore_hero_title:"Olá",explore_hero_subtitle:"Como podemos ajudar?",explore_search_placeholder:"Buscar ajuda…",explore_cta_title:"Pergunte ao nosso Agente de IA",explore_cta_sub:"Respostas imediatas, 24 horas por dia — ou fale com a equipe",explore_tile_help_title:"Central de Ajuda",explore_tile_help_sub:"Guias e documentação",explore_tile_messages_title:"Mensagens",explore_tile_messages_sub:"Suas conversas",explore_popular_questions:"Perguntas populares",explore_ask_ai_about_this:"Perguntar ao Agente de IA sobre isso",explore_recommended_reading:"Leitura recomendada",help_search_placeholder:"Buscar artigos…",help_search_label:"Buscar artigos",help_searching:"Buscando…",help_search_no_results:"Nenhum artigo encontrado para “{query}”",help_all_collections:"Todas as coleções",help_back_to_articles:"Voltar aos artigos",help_document_type_fallback:"Guia",help_written_by:"Escrito pela equipe de suporte de {organizationName}",help_updated_recently:"Atualizado recentemente",help_read_time_one:"{count} min de leitura",help_read_time_other:"{count} min de leitura",help_feedback_title:"Isso respondeu à sua pergunta?",help_feedback_thanks:"Obrigado pelo seu feedback!",help_feedback_yes:"Sim",help_feedback_somewhat:"Em parte",help_feedback_no:"Não",help_handoff_title:"Ainda tem dúvidas?",help_handoff_desc:"Pergunte ao nosso Agente de IA e receba respostas imediatas",help_handoff_prefill:"Tenho uma dúvida sobre o artigo “{title}”: ",help_collection_articles:"Artigos de {collection} ({count})",help_article_count_one:"{count} artigo",help_article_count_other:"{count} artigos",help_empty_title:"Documentação de ajuda",help_empty_desc:"Busque acima para encontrar soluções imediatas na nossa base de conhecimento.",help_collection_guide_title:"Guias e tutoriais",help_collection_guide_desc:"Passo a passo de configuração, regras e guias de primeiros passos",help_collection_faq_title:"Perguntas frequentes",help_collection_faq_desc:"Respostas rápidas para dúvidas comuns sobre conta e serviço",help_collection_troubleshooting_title:"Solução de problemas e suporte",help_collection_troubleshooting_desc:"Soluções passo a passo para problemas técnicos",help_collection_other_title:"Regras e documentação",help_collection_other_desc:"Termos oficiais, regras e documentação de políticas",help_featured_article:"Artigo em destaque",help_untitled_article:"Artigo sem título",help_unavailable:"Não foi possível carregar a central de ajuda. Verifique sua conexão e tente novamente.",help_updated_on:"Atualizado em {date}",help_open_site:"Abrir na Central de Ajuda",help_article_unavailable:"Não foi possível carregar este artigo.",hours_away_until:"Estamos ausentes no momento e voltamos {time}. Deixe uma mensagem e responderemos por e-mail.",hours_away:"Estamos ausentes no momento. Deixe uma mensagem e responderemos por e-mail.",link_opens_new_tab:"(abre em uma nova aba)",error_search_rate_limited:"Você está buscando rápido demais. Aguarde um momento e tente novamente.",error_search_unavailable:"A busca não está disponível no momento. Tente novamente em instantes.",error_send_rate_limited:"Você está enviando mensagens rápido demais. Aguarde um momento e tente novamente.",error_attachment_rejected:"Não foi possível anexar esse arquivo. Ele pode ser grande demais (limite de 10 MB) ou de um tipo não permitido.",error_attachment_upload_failed:"Não foi possível enviar esse anexo. Tente novamente."};export{e as default};
@@ -0,0 +1 @@
1
+ var e,t,n,o,r,i,a,s,l,_,u,c,p,d,f,h={},m=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function w(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(t,n,o){var r,i,a,s={};for(a in n)"key"==a?r=n[a]:"ref"==a?i=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return k(t,s,r,i,null)}function k(e,o,r,i,a){var s={type:e,props:o,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++n:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(s),s}function C(e){return e.children}function S(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function N(e){if(e.__P&&e.__d){var n=e.__v,o=n.__e,r=[],i=[],a=y({},n);a.__v=n.__v+1,t.vnode&&t.vnode(a),L(e.__P,a,n,e.__n,e.__P.namespaceURI,32&n.__u?[o]:null,r,null==o?x(n):o,!!(32&n.__u),i),a.__v=n.__v,a.__.__k[a.__i]=a,O(r,a,i),n.__e=n.__=null,a.__e!=o&&M(a)}}function M(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),M(e)}function I(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!$.__r++||r!=t.debounceRendering)&&((r=t.debounceRendering)||i)($)}function $(){try{for(var e,t=1;o.length;)o.length>t&&o.sort(a),e=o.shift(),t=o.length,N(e)}finally{o.length=$.__r=0}}function T(e,t,n,o,r,i,a,s,l,_,u){var c,p,d,f,g,y,w=o&&o.__k||m,b=t.length;for(l=function(e,t,n,o,r){var i,a,s,l,_,u=n.length,c=u,p=0;for(e.__k=new Array(r),i=0;i<r;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[i]=k(null,a,null,null,null):v(a)?a=e.__k[i]=k(C,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[i]=k(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,l=i+p,a.__=e,a.__b=e.__b+1,s=null,-1!=(_=a.__i=P(a,n,l,c))&&(c--,(s=n[_])&&(s.__u|=2)),null==s||null==s.__v?(-1==_&&(r>u?p--:r<u&&p++),"function"!=typeof a.type&&(a.__u|=4)):_!=l&&(_==l-1?p--:_==l+1?p++:(_>l?p--:p++,a.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<u;i++)null!=(s=n[i])&&!(2&s.__u)&&(s.__e==o&&(o=x(s)),z(s,s));return o}(n,t,w,l,b),c=0;c<b;c++)null!=(d=n.__k[c])&&(p=-1!=d.__i&&w[d.__i]||h,d.__i=c,y=L(e,d,p,r,i,a,s,l,_,u),f=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&V(p.ref,null,d),u.push(d.ref,d.__c||f,d)),null==g&&null!=f&&(g=f),4&d.__u?(l=A(d,l,e),p.__e&&(p.__e=null)):"function"==typeof d.type&&void 0!==y?l=y:f&&(l=f.nextSibling),d.__u&=-7);return n.__e=g,l}function A(e,t,n){var o,r;if("function"==typeof e.type){for(o=e.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=e,t=A(o[r],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=x(e)),t=n.insertBefore(e.__e,t||null));do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function H(e,t){return t=t||[],null==e||"boolean"==typeof e||(v(e)?e.some(function(e){H(e,t)}):t.push(e)),t}function P(e,t,n,o){var r,i,a,s=e.key,l=e.type,_=t[n],u=null!=_&&!(2&_.__u);if(null===_&&null==s||u&&s==_.key&&l==_.type)return n;if(o>(u?1:0))for(r=n-1,i=n+1;r>=0||i<t.length;)if(null!=(_=t[a=r>=0?r--:i++])&&!(2&_.__u)&&s==_.key&&l==_.type)return a;return-1}function E(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function U(e,t,n,o,r){var i,a;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||E(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||E(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(u,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o?n[_]=o[_]:(n[_]=c,e.addEventListener(t,i?d:p,i)):e.removeEventListener(t,i?d:p,i);else{if("http://www.w3.org/2000/svg"==r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function D(e){return function(n){if(this.l){var o=this.l[n.type+e];if(null==n[l])n[l]=c++;else if(n[l]<o[_])return;return o(t.event?t.event(n):n)}}}function L(e,n,o,r,i,a,s,l,_,u){var c,p,d,f,h,g,b,k,N,M,I,$,A,H,P,E,U=n.type;if(void 0!==n.constructor)return null;128&o.__u&&(_=!!(32&o.__u),a=[l=n.__e=o.__e]),(c=t.__b)&&c(n);e:if("function"==typeof U){p=s.length;try{if(N=n.props,M=U.prototype&&U.prototype.render,I=(c=U.contextType)&&r[c.__c],$=c?I?I.props.value:c.__:r,o.__c?k=(d=n.__c=o.__c).__=d.__E:(M?n.__c=d=new U(N,$):(n.__c=d=new S(N,$),d.constructor=U,d.render=W),I&&I.sub(d),d.state||(d.state={}),d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),M&&null==d.__s&&(d.__s=d.state),M&&null!=U.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=y({},d.__s)),y(d.__s,U.getDerivedStateFromProps(N,d.__s))),h=d.props,g=d.state,d.__v=n,f)M&&null==U.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),M&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(M&&null==U.getDerivedStateFromProps&&N!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(N,$),n.__v==o.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(N,d.__s,$)){n.__v!=o.__v&&(d.props=N,d.state=d.__s,d.__d=!1),n.__e=o.__e,n.__k=o.__k,n.__k.some(function(e){e&&(e.__=n)}),m.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&s.push(d),l=x(o);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(N,d.__s,$),M&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,g,b)})}if(d.context=$,d.props=N,d.__P=e,d.__e=!1,A=t.__r,H=0,M)d.state=d.__s,d.__d=!1,A&&A(n),c=d.render(d.props,d.state,d.context),m.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,A&&A(n),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++H<25);d.state=d.__s,null!=d.getChildContext&&(r=y(y({},r),d.getChildContext())),M&&!f&&null!=d.getSnapshotBeforeUpdate&&(b=d.getSnapshotBeforeUpdate(h,g)),P=null!=c&&c.type===C&&null==c.key?F(c.props.children):c,l=T(e,v(P)?P:[P],n,o,r,i,a,s,l,_,u),d.base=n.__e,n.__u&=-161,d.__h.length&&s.push(d),k&&(d.__E=d.__=null)}catch(e){if(s.length=p,n.__v=null,_||null!=a){if(e.then){for(n.__u|=_?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;null!=a&&(a[a.indexOf(l)]=null),n.__e=l}else if(null!=a)for(E=a.length;E--;)w(a[E])}else n.__e=o.__e;null==n.__k&&(n.__k=o.__k||[]),e.then||R(n),t.__e(e,n,o)}}else null==a&&n.__v==o.__v?(n.__k=o.__k,n.__e=o.__e):l=n.__e=j(o.__e,n,o,r,i,a,s,_,u);return(c=t.diffed)&&c(n),128&n.__u?void 0:l}function R(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(R))}function O(e,n,o){for(var r=0;r<o.length;r++)V(o[r],o[++r],o[++r]);t.__c&&t.__c(n,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(e){e.call(n)})}catch(e){t.__e(e,n.__v)}})}function F(e){return"object"!=typeof e||null==e||e.__b>0?e:v(e)?e.map(F):void 0!==e.constructor?null:y({},e)}function j(n,o,r,i,a,s,l,_,u){var c,p,d,f,m,g,y,b=r.props||h,k=o.props,C=o.type;if("svg"==C?a="http://www.w3.org/2000/svg":"math"==C?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(c=0;c<s.length;c++)if((m=s[c])&&"setAttribute"in m==!!C&&(C?m.localName==C:3==m.nodeType)){n=m,s[c]=null;break}if(null==n){if(null==C)return document.createTextNode(k);n=document.createElementNS(a,C,k.is&&k),_&&(t.__m&&t.__m(o,s),_=!1),s=null}if(null==C)b===k||_&&n.data==k||(n.data=k);else{if(s="textarea"==C&&null!=k.defaultValue?null:s&&e.call(n.childNodes),!_&&null!=s)for(b={},c=0;c<n.attributes.length;c++)b[(m=n.attributes[c]).name]=m.value;for(c in b)m=b[c],"dangerouslySetInnerHTML"==c?d=m:"children"==c||c in k||"value"==c&&"defaultValue"in k||"checked"==c&&"defaultChecked"in k||U(n,c,null,m,a);for(c in k)m=k[c],"children"==c?f=m:"dangerouslySetInnerHTML"==c?p=m:"value"==c?g=m:"checked"==c?y=m:_&&"function"!=typeof m||b[c]===m||U(n,c,m,b[c],a);if(p)_||d&&(p.__html==d.__html||p.__html==n.innerHTML)||(n.innerHTML=p.__html),o.__k=[];else if(d&&(n.innerHTML=""),T("template"==o.type?n.content:n,v(f)?f:[f],o,r,i,"foreignObject"==C?"http://www.w3.org/1999/xhtml":a,s,l,s?s[0]:r.__k&&x(r,0),_,u),null!=s)for(c=s.length;c--;)w(s[c]);_&&"textarea"!=C||(c="value","progress"==C&&null==g?n.removeAttribute("value"):null!=g&&(g!==n[c]||"progress"==C&&!g||"option"==C&&g!=b[c])&&U(n,c,g,b[c],a),c="checked",null!=y&&y!=n[c]&&U(n,c,y,b[c],a))}return n}function V(e,n,o){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,o)}}function z(e,n,o){var r,i;if(t.unmount&&t.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||V(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){t.__e(e,n)}r.base=r.__P=r.__n=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&z(r[i],n,o||"function"!=typeof e.type);o||w(e.__e),e.__c=e.__=e.__e=void 0}function W(e,t,n){return this.constructor(e,n)}function q(n,o,r){var i,a,s,l;o==document&&(o=document.documentElement),t.__&&t.__(n,o),a=(i="function"==typeof r)?null:r&&r.__k||o.__k,s=[],l=[],L(o,n=(!i&&r||o).__k=b(C,null,[n]),a||h,h,o.namespaceURI,!i&&r?[r]:a?null:o.firstChild?e.call(o.childNodes):null,s,!i&&r?r:a?a.__e:o.firstChild,i,l),O(s,n,l),n.props.children=null}function B(e,t){q(e,t,B)}function Z(t,n,o){var r,i,a,s,l=y({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)"key"==a?r=n[a]:"ref"==a?i=n[a]:l[a]=void 0===n[a]&&null!=s?s[a]:n[a];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):o),k(t.type,l,r||t.key,i||t.ref,null)}e=m.slice,t={__e:function(e,t,n,o){for(var r,i,a;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),a=r.__d),a)return r.__E=r}catch(t){e=t}throw e}},n=0,S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},n),this.props)),e&&y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),I(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),I(this))},S.prototype.render=C,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},$.__r=0,s=Math.random().toString(8),l="__d"+s,_="__a"+s,u=/(PointerCapture)$|Capture$/i,c=0,p=D(!1),d=D(!0),f=0;var Y,J,G,Q,K=0,X=[],ee=t,te=ee.__b,ne=ee.__r,oe=ee.diffed,re=ee.__c,ie=ee.unmount,ae=ee.__;function se(e,t){ee.__h&&ee.__h(J,e,K||t),K=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function le(e){return K=1,_e(xe,e)}function _e(e,t,n){var o=se(Y++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):xe(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=J,!J.__f)){var r=function(e,t,n){if(!o.__c.__H)return!0;var r=!1,a=o.__c.props!==e;if(o.__c.__H.__.some(function(e){if(e.__N){r=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),i){var s=i.call(this,e,t,n);return r?s||a:s}return!r||a};J.__f=!0;var i=J.shouldComponentUpdate,a=J.componentWillUpdate;J.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,r(e,t,n),i=o}a&&a.call(this,e,t,n)},J.shouldComponentUpdate=r}return o.__N||o.__}function ue(e,t){var n=se(Y++,3);!ee.__s&&Se(n.__H,t)&&(n.__=e,n.u=t,J.__H.__h.push(n))}function ce(e,t){var n=se(Y++,4);!ee.__s&&Se(n.__H,t)&&(n.__=e,n.u=t,J.__h.push(n))}function pe(e){return K=5,fe(function(){return{current:e}},[])}function de(e,t,n){K=6,ce(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function fe(e,t){var n=se(Y++,7);return Se(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function he(e,t){return K=8,fe(function(){return e},t)}function me(e){var t=J.context[e.__c],n=se(Y++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(J)),t.props.value):e.__}function ge(e,t){ee.useDebugValue&&ee.useDebugValue(t?t(e):e)}function ve(){var e=se(Y++,11);if(!e.__){for(var t=J.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ye(){for(var e;e=X.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ke),t.__h.some(Ce),t.__h=[]}catch(n){t.__h=[],ee.__e(n,e.__v)}}}ee.__b=function(e){J=null,te&&te(e)},ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ae&&ae(e,t)},ee.__r=function(e){ne&&ne(e),Y=0;var t=(J=e.__c).__H;t&&(G===J?(t.__h=[],J.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(ke),t.__h.some(Ce),t.__h=[],Y=0)),G=J},ee.diffed=function(e){oe&&oe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==X.push(t)&&Q===ee.requestAnimationFrame||((Q=ee.requestAnimationFrame)||be)(ye)),t.__H.__.some(function(e){e.u&&(e.__H=e.u,e.u=void 0)})),G=J=null},ee.__c=function(e,t){t.some(function(e){try{e.__h.some(ke),e.__h=e.__h.filter(function(e){return!e.__||Ce(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ee.__e(n,e.__v)}}),re&&re(e,t)},ee.unmount=function(e){ie&&ie(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{ke(e)}catch(e){t=e}}),n.__H=void 0,t&&ee.__e(t,n.__v))};var we="function"==typeof requestAnimationFrame;function be(e){var t,n=function(){clearTimeout(o),we&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);we&&(t=requestAnimationFrame(n))}function ke(e){var t=J,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),J=t}function Ce(e){var t=J;e.__c=e.__(),J=t}function Se(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function xe(e,t){return"function"==typeof t?t(e):t}function Ne(e,t){for(var n in t)e[n]=t[n];return e}function Me(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])return!0;return!1}function Ie(e,t){var n=t(),o=le({t:{__:n,u:t}}),r=o[0].t,i=o[1];return ce(function(){r.__=n,r.u=t,$e(r)&&i({t:r})},[e,n,t]),ue(function(){return $e(r)&&i({t:r}),e(function(){$e(r)&&i({t:r})})},[e]),n}function $e(e){try{return!((t=e.__)===(n=e.u())&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}var t,n}function Te(e){e()}function Ae(e){return e}function He(){return[!1,Te]}var Pe=ce;function Ee(e,t){this.props=e,this.context=t}(Ee.prototype=new S).isPureReactComponent=!0,Ee.prototype.shouldComponentUpdate=function(e,t){return Me(this.props,e)||Me(this.state,t)};var Ue=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ue&&Ue(e)};var De="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Le=function(e,t){return null==e?null:H(H(e).map(t))},Re={map:Le,forEach:Le,count:function(e){return e?H(e).length:0},only:function(e){var t=H(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:H},Oe=t.__e;t.__e=function(e,t,n,o){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k||[]),r.__c(e,t);Oe(e,t,n,o)};var Fe=t.unmount;function je(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=Ne({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return je(e,t,n)})),e}function Ve(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Ve(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ze(){this.__u=0,this.o=null,this.__b=null}function We(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function qe(e){var t,n,o,r=null;function i(i){if(t||(t=e()).then(function(e){e&&(r=e.default||e),o=!0},function(e){n=e,o=!0}),n)throw n;if(!o)throw t;return r?b(r,i):null}return i.displayName="Lazy",i.__f=!0,i}function Be(){this.i=null,this.l=null}t.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Fe&&Fe(e)},(ze.prototype=new S).__c=function(e,t){var n=t.__c,o=this;null==o.o&&(o.o=[]),o.o.push(n);var r=We(o.__v),i=!1,a=function(){i||o.__z||(i=!0,n.__R=null,r?r(l):l())};n.__R=a;var s=n.__P;n.__P=null;var l=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=Ve(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.o.pop();)t.__P=s,t.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(a,a)},ze.prototype.componentWillUnmount=function(){this.o=[]},ze.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=je(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&b(C,null,e.fallback);return r&&(r.__u&=-33),[b(C,null,t.__a?null:e.children),r]};var Ze=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Ye(e){return this.getChildContext=function(){return e.context},e.children}function Je(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){q(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var o=t.__v;null!==o&&!o.__m&&null!==o.__;)o=o.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:o.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}q(b(Ye,{context:t.context},e.__v),t.v)}(Be.prototype=new S).__a=function(e){var t=this,n=We(t.__v),o=t.l.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),Ze(t,e,o)):r()};n?n(i):i()}},Be.prototype.render=function(e){this.i=null,this.l=new Map;var t=H(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Be.prototype.componentDidUpdate=Be.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Ze(e,n,t)})};var Ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Qe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ke=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xe=/[A-Z0-9]/g,et="undefined"!=typeof document,tt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function nt(e,t,n){return null==t.__k&&(t.textContent=""),q(e,t),"function"==typeof n&&n(),e?e.__c:null}S.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(S.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ot=t.event;t.event=function(e){return ot&&(e=ot(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var rt,it={configurable:!0,get:function(){return this.class}},at=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={},r=-1==n.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||et&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||tt(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":Ke.test(i)&&(i=s):s=i="oninput":r&&Qe.test(i)?i=i.replace(Xe,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&o[i=s]&&(i="oninputCapture"),o[i]=a}}"select"==n&&(o.multiple&&Array.isArray(o.value)&&(o.value=H(t.children).forEach(function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)})),null!=o.defaultValue&&(o.value=H(t.children).forEach(function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",it)):t.className&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=Ge,at&&at(e)};var st=t.__r;t.__r=function(e){st&&st(e),rt=e.__c};var lt=t.diffed;t.diffed=function(e){lt&&lt(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),rt=null};var _t={ReactCurrentDispatcher:{current:{readContext:function(e){return rt.__n[e.__c].props.value},useCallback:he,useContext:me,useDebugValue:ge,useDeferredValue:Ae,useEffect:ue,useId:ve,useImperativeHandle:de,useInsertionEffect:Pe,useLayoutEffect:ce,useMemo:fe,useReducer:_e,useRef:pe,useState:le,useSyncExternalStore:Ie,useTransition:He}}};function ut(e){return!!e&&e.$$typeof===Ge}function ct(e){return!!e.__k&&(q(null,e),!0)}var pt={useState:le,useId:ve,useReducer:_e,useEffect:ue,useLayoutEffect:ce,useInsertionEffect:Pe,useTransition:He,useDeferredValue:Ae,useSyncExternalStore:Ie,startTransition:Te,useRef:pe,useImperativeHandle:de,useMemo:fe,useCallback:he,useContext:me,useDebugValue:ge,version:"18.3.1",Children:Re,render:nt,hydrate:function(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:ct,createPortal:function(e,t){var n=b(Je,{__v:e,h:t});return n.containerInfo=t,n},createElement:b,createContext:function(e){function t(e){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,I(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+f++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t},createFactory:function(e){return b.bind(null,e)},cloneElement:function(e){return ut(e)?Z.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:C,isValidElement:ut,isElement:ut,isFragment:function(e){return ut(e)&&e.type===C},isMemo:function(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:S,PureComponent:Ee,memo:function(e,t){function n(e){var n=this.props.ref;return n!=e.ref&&n&&("function"==typeof n?n(null):n.current=null),t?!t(this.props,e)||n!=e.ref:Me(this.props,e)}function o(t){return this.shouldComponentUpdate=n,b(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.__f=o.prototype.isReactComponent=!0,o.type=e,o},forwardRef:function(e){function t(t){var n=Ne({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=De,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,n){var o,r=t.debounceRendering;t.debounceRendering=function(e){o=e};try{var i=e(n);return o&&o(),i}finally{t.debounceRendering=r}},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:C,Suspense:ze,SuspenseList:Be,lazy:qe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:_t};function dt(e){return{render:function(t){nt(t,e)},unmount:function(){ct(e)}}}const ft=e=>({size:t=24,color:n="currentColor",strokeWidth:o=2,...r})=>pt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",...r},e.map(([e,t],n)=>pt.createElement(e,{key:n,...t}))),ht=ft([["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]]),mt=ft([["path",{d:"M5 12h14"}]]),gt=ft([["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]]),vt=ft([["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]),yt=ft([["path",{d:"M15 3h6v6"}],["path",{d:"m21 3-7 7"}],["path",{d:"m3 21 7-7"}],["path",{d:"M9 21H3v-6"}]]),wt=ft([["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]),bt=ft([["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]]),kt=ft([["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9"}]]),Ct=ft([["path",{d:"m9 18 6-6-6-6"}]]),St=ft([["path",{d:"m15 18-6-6 6-6"}]]),xt=ft([["path",{d:"M12 7v14"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"}]]),Nt=ft([["path",{d:"m6 9 6 6 6-6"}]]),Mt=ft([["path",{d:"M7 10v12"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}]]),It=ft([["path",{d:"M17 14V2"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}]]),$t=ft([["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]]),Tt=ft([["path",{d:"M20 6 9 17l-5-5"}]]),At=ft([["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .962 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.962 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}]]),Ht=({size:e=22,className:t,style:n},o,r)=>pt.createElement("svg",{width:e,height:e,viewBox:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:n,"aria-hidden":"true",focusable:"false"},r),Pt=e=>Ht(e,"0 0 128 128",pt.createElement("g",{fill:"currentColor"},pt.createElement("path",{d:"M109,55c0-29.8-24.2-54-54-54C25.2,1,1,25.2,1,55s24.2,54,54,54c13.5,0,25.8-5,35.2-13.1l25.4,25.4l5.7-5.7L95.9,90.2C104,80.8,109,68.5,109,55z M55,101C29.6,101,9,80.4,9,55S29.6,9,55,9s46,20.6,46,46S80.4,101,55,101z"}),pt.createElement("path",{d:"M25.6,30.9l6.2,5.1C37.5,29,46,25,55,25v-8C43.6,17,32.9,22.1,25.6,30.9z"}),pt.createElement("path",{d:"M17,55h8c0-2.1,0.2-4.1,0.6-6.1l-7.8-1.6C17.3,49.8,17,52.4,17,55z"}))),Et=e=>Ht(e,"0 0 24 24",pt.createElement("path",{fill:"currentColor",d:"M16 2H8C4 2 2 4 2 8V21C2 21.55 2.45 22 3 22H16C20 22 22 20 22 16V8C22 4 20 2 16 2ZM14 15.25H7C6.59 15.25 6.25 14.91 6.25 14.5C6.25 14.09 6.59 13.75 7 13.75H14C14.41 13.75 14.75 14.09 14.75 14.5C14.75 14.91 14.41 15.25 14 15.25ZM17 10.25H7C6.59 10.25 6.25 9.91 6.25 9.5C6.25 9.09 6.59 8.75 7 8.75H17C17.41 8.75 17.75 9.09 17.75 9.5C17.75 9.91 17.41 10.25 17 10.25Z"})),Ut=({size:e=26,className:t,style:n})=>pt.createElement("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:n,"aria-hidden":"true",focusable:"false"},pt.createElement("g",{transform:"translate(24 0) scale(-1 1)"},pt.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16 2H8C4 2 2 4 2 8V21C2 21.55 2.45 22 3 22H16C20 22 22 20 22 16V8C22 4 20 2 16 2ZM15.5 12.75H8.5C8.09 12.75 7.75 12.41 7.75 12C7.75 11.59 8.09 11.25 8.5 11.25H15.5C15.91 11.25 16.25 11.59 16.25 12C16.25 12.41 15.91 12.75 15.5 12.75Z"}))),Dt=e=>Ht(e,"0 0 24 24",pt.createElement(pt.Fragment,null,pt.createElement("path",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20H12.01"}),pt.createElement("path",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",d:"M7 9C7 7.87439 7.37194 6.83566 7.99963 6C8.91184 4.78555 10.3642 4 12 4C14.7614 4 17 6.23858 17 9C17 11.4212 15.279 13.4405 12.9936 13.9013C12.4522 14.0104 12 14.4477 12 15V15V16"}))),Lt={launcher_open:"Open support chat",launcher_close:"Close support chat",launcher_open_unread_one:"Open support chat, {count} new message",launcher_open_unread_other:"Open support chat, {count} new messages",launcher_unread_overflow:"{count}+",panel_label:"{organizationName} support",header_messages:"Messages",header_help_center:"Help Center",header_back_to_conversations:"Back to conversations",header_expand:"Expand window",header_collapse:"Collapse window",header_close:"Close",conversation_label:"Conversation",sending_to_team:"Sending to the team…",uploading_attachment:"Uploading attachment…",new_messages_one:"{count} new message",new_messages_other:"{count} new messages",reaction_helpful:"Helpful",reaction_not_helpful:"Not helpful",copy_message:"Copy message",copied:"Copied",message_from_agent:"Agent",message_from_you:"You",terms_notice:"By chatting, you agree to our {terms}",terms_link:"Terms",powered_by:"Powered by {brand}",tab_explore:"Explore",tab_messages:"Messages",tab_help:"Help",tabs_label:"Sections",conversations_empty_title:"No conversations yet",conversations_empty_desc:"Start a chat and our AI agent & team will help you out.",conversation_no_messages:"No messages yet",conversation_title:"Chat #{number}",conversation_closed_chip:"Closed",start_new_chat:"Ask a Question",message_not_sent:"Not sent",message_retry:"Retry",conversation_closed:"This conversation was closed. Send a message to reopen it, or start a new one.",conversation_with_agent:"This conversation has been passed to our team. Replies may take a little longer.",composer_label:"Message",composer_placeholder:"Type your message…",composer_placeholder_lead_required:"Add your email above to continue…",composer_placeholder_security_check:"Verify security check to chat…",composer_hint:"Press Enter to send, Shift+Enter for a new line",attach_file:"Attach a file (10 MB max)",insert_emoji:"Insert emoji",emoji_picker_label:"Choose an emoji",send_message:"Send message",attachment_image_alt:"Image attachment",attachment_file_label:"File attachment: {name}",attachment_remove:"Remove {name}",attachment_uploading:"Uploading {name}, {percent}%",attachment_too_large:"Too large (10 MB limit)",attachment_failed:"Upload failed",attachment_rejected:"File type not allowed",attachment_limit:"You can attach up to {count} files per message.",attachment_drop_hint:"Drop files to attach them",attachment_open:"Open {name}",attachments_summary_one:"{count} attachment",attachments_summary_other:"{count} attachments",feedback_comment_prompt:"What was wrong? (optional)",feedback_comment_placeholder:"Tell us a little more…",feedback_comment_send:"Send",feedback_comment_skip:"Skip",feedback_thanks:"Thanks for your feedback",notice_security_check_required:"Please complete the security check first.",voice_start:"Voice input",voice_finish:"Finish recording",voice_status_waiting:"Waiting for the microphone…",voice_status_listening:"Listening…",voice_status_transcribing:"Transcribing…",voice_seconds_left_one:"{count} second left",voice_seconds_left_other:"{count} seconds left",voice_countdown:"{count}s",voice_cancel:"Cancel voice input",voice_stop:"Stop and transcribe",voice_retry:"Try again",voice_error_insecure:"Voice input needs a secure (https) page.",voice_error_unsupported:"Voice input isn't supported in this browser.",voice_error_denied:"Microphone access is blocked. Allow it in your browser's site settings to use voice input.",voice_error_no_microphone:"No microphone was found.",voice_error_no_speech:"I didn't catch that. Please try again.",voice_error_no_audio:"No sound is coming from your microphone. Check that it isn't muted and that the right one is selected.",voice_error_limit:"Voice input isn't available right now. Please type your message.",voice_error_disabled:"Voice input is turned off.",voice_error_network:"Your recording couldn't be transcribed. Check your connection and try again.",voice_error_failed:"Your recording couldn't be transcribed. Please try again or type your message.",lead_prompt:"Leave your email and we'll reply there if you've gone.",lead_email_placeholder:"you@example.com",lead_email_label:"Your email address",lead_save:"Save",lead_saving:"Saving…",lead_dismiss:"No thanks",lead_error_invalid_email:"That doesn't look like an email address.",lead_error_save_failed:"Couldn't save that just now. You can carry on chatting.",greeting_default:"Hi from {organizationName}. How can we help?",greeting_default_persona:"Hi, I'm {ai_name} from {organizationName}. How can I help?",greeting_dismiss:"Dismiss greeting",welcome_default:"Hi! How can I help you today?",explore_hero_title:"Hello there",explore_hero_subtitle:"How can we help?",explore_search_placeholder:"Search for help…",explore_cta_title:"Ask our AI Agent",explore_cta_sub:"Instant answers, 24/7 — or reach the team",explore_tile_help_title:"Help Center",explore_tile_help_sub:"Guides & docs",explore_tile_messages_title:"Messages",explore_tile_messages_sub:"Your conversations",explore_popular_questions:"Popular questions",explore_ask_ai_about_this:"Ask AI Agent about this",explore_recommended_reading:"Recommended reading",help_search_placeholder:"Search for articles…",help_search_label:"Search articles",help_searching:"Searching…",help_search_no_results:"No articles matching “{query}”",help_all_collections:"All Collections",help_back_to_articles:"Back to articles",help_document_type_fallback:"Guide",help_written_by:"Written by the {organizationName} support team",help_updated_recently:"Updated recently",help_read_time_one:"{count} min read",help_read_time_other:"{count} min read",help_feedback_title:"Did this answer your question?",help_feedback_thanks:"Thank you for your feedback!",help_feedback_yes:"Yes",help_feedback_somewhat:"Somewhat",help_feedback_no:"No",help_handoff_title:"Still have questions?",help_handoff_desc:"Ask our AI Agent for instant answers",help_handoff_prefill:"I have a question about the article “{title}”: ",help_collection_articles:"{collection} articles ({count})",help_article_count_one:"{count} article",help_article_count_other:"{count} articles",help_empty_title:"Help Documentation",help_empty_desc:"Search above to fetch instant solutions from our knowledge base.",help_collection_guide_title:"Guides & Tutorials",help_collection_guide_desc:"Setup walkthroughs, rules, and getting started guides",help_collection_faq_title:"Frequently Asked Questions",help_collection_faq_desc:"Quick answers to common account and service questions",help_collection_troubleshooting_title:"Troubleshooting & Support",help_collection_troubleshooting_desc:"Step-by-step solutions for technical issues",help_collection_other_title:"Rules & Documentation",help_collection_other_desc:"Official terms, rules, and policy documentation",help_featured_article:"Featured Article",help_untitled_article:"Untitled Article",help_unavailable:"The help centre couldn't be loaded. Check your connection and try again.",help_updated_on:"Updated {date}",help_open_site:"Open in Help Centre",help_article_unavailable:"This article couldn't be loaded.",hours_away_until:"We're away right now and will be back {time}. Leave a message and we'll reply by email.",hours_away:"We're away right now. Leave a message and we'll reply by email.",link_opens_new_tab:"(opens in a new tab)",error_search_rate_limited:"You're searching too fast. Please wait a moment and try again.",error_search_unavailable:"Search is unavailable right now. Please try again shortly.",error_send_rate_limited:"You're sending messages too quickly. Please wait a moment and try again.",error_attachment_rejected:"That file can't be attached. It may be too large (10 MB limit) or a type that isn't allowed.",error_attachment_upload_failed:"That attachment couldn't be uploaded. Please try again."},Rt={ar:()=>import("./ar-DWu25Uo_.js"),de:()=>import("./de-CXvx-VOw.js"),es:()=>import("./es-B8CNwk2c.js"),fr:()=>import("./fr-CVfeNRtY.js"),hi:()=>import("./hi-fJomdKtz.js"),pt:()=>import("./pt-BcilM4jM.js")},Ot=["ar","he","fa","ur","ps","sd","yi","dv","ug"];let Ft="en",jt=0,Vt={},zt={};const Wt=new Set,qt={en:{}};function Bt(){Wt.forEach(e=>{try{e()}catch{}})}function Zt(){return Ft}function Yt(){return-1!==Ot.indexOf(Ft.split("-")[0].toLowerCase())?"rtl":"ltr"}function Jt(e){if(!e)return"en";const t=String(e).trim(),n=t.split(/[-_]/)[0].toLowerCase(),o=t.replace("_","-");return"en"===n||Rt[n]?o:"en"}async function Gt(e){let t=Jt(e),n=t.split("-")[0];const o=++jt;if(void 0===qt[n])try{const e=(await Rt[n]()).default;qt[n]=e}catch(e){console.warn(`[Askly] Could not load the "${n}" translations; staying in English.`,e),t="en",n="en"}return o!==jt||(Ft=t,Vt=qt[n],Bt()),Ft}function Qt(e){zt={...zt,...e},Bt()}function Kt(e){return Wt.add(e),()=>{Wt.delete(e)}}function Xt(e,t){return t?e.replace(/\{(\w+)\}/g,(e,n)=>n in t?String(t[n]):e):e}function en(e,t){var n,o,r;return Xt(null!==(r=null!==(o=null!==(n=zt[e])&&void 0!==n?n:Vt[e])&&void 0!==o?o:Lt[e])&&void 0!==r?r:e,t)}function tn(e,t,n){var o,r;let i="other";try{i=new Intl.PluralRules(Ft).select(t)}catch{}const a=[`${e}_${i}`,`${e}_other`,`${e}_one`];let s;for(const e of a)if(s=null!==(r=null!==(o=zt[e])&&void 0!==o?o:Vt[e])&&void 0!==r?r:Lt[e],void 0!==s)break;return Xt(null!=s?s:e,{count:nn(t)})}function nn(e){try{return new Intl.NumberFormat(Ft).format(e)}catch{return String(e)}}function on(e){if(!e)return"";const t=new Date(e);if(isNaN(t.getTime()))return"";try{return new Intl.DateTimeFormat(Ft,{year:"numeric",month:"short",day:"numeric"}).format(t)}catch{return t.toLocaleDateString()}}function rn(e){if(!e)return"";const t=new Date(e);if(isNaN(t.getTime()))return"";try{const e=new Date,n=t.toDateString()===e.toDateString();return new Intl.DateTimeFormat(Ft,n?{hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}catch{return t.toLocaleTimeString()}}const an={};function sn(e,t){return(an[e]=an[e]||[]).push(t),()=>ln(e,t)}function ln(e,t){const n=an[e];if(n)for(let e=n.length-1;e>=0;e--)n[e]!==t&&n[e].original!==t||n.splice(e,1)}function _n(e,t){const n=o=>{ln(e,n),t(o)};return n.original=t,sn(e,n)}function un(e,...t){const n=an[e];if(n)for(const o of n.slice())try{o(t[0])}catch(t){console.error(`[Askly] "${e}" handler failed:`,t)}}let cn=null,pn=[],dn=!1;function fn(){dn=!0}function hn(e){cn?cn(e):dn?pn.push(e):console.warn(`[Askly] ${e.type}() ignored: the widget is not initialised on this page.`)}function mn(e){cn=e,dn=!1;const t=pn;return pn=[],t.forEach(e),()=>{cn===e&&(cn=null)}}function gn(){pn=[],dn=!1}const vn={ready:!1,open:!1,unread:0,visitorId:""};function yn(){vn.ready=!1,vn.open=!1,vn.unread=0,vn.visitorId=""}function wn(e,t){if(!e||"string"!=typeof e.id||"string"!=typeof e.title)return null;const n=("string"==typeof e.collection?e.collection:"guide").toLowerCase();return{id:e.id,title:e.title,content:"string"==typeof e.content?e.content:"",document_type:kn(n,t),collection:n,excerpt:"string"==typeof e.excerpt?e.excerpt:void 0,updatedAt:"string"==typeof e.updated_at?e.updated_at:void 0,url:"string"==typeof e.url&&/^https?:\/\//i.test(e.url)?e.url:void 0,featured:!!e.featured,source:"help",score:"number"==typeof e.score?e.score:0}}function bn(e){return e&&"string"==typeof e.id?{id:e.id.toLowerCase(),name:"string"==typeof e.name?e.name:e.id,description:"string"==typeof e.description?e.description:"",parentId:"string"==typeof e.parent_id?e.parent_id.toLowerCase():void 0,icon:"string"==typeof e.icon?e.icon:"folder"}:null}function kn(e,t){let n=e;for(let e=0;e<4;e++){const e=t.find(e=>e.id===n);if(!e||!e.parentId)return n;n=e.parentId}return n}function Cn(e){if(!e||"object"!=typeof e||"string"!=typeof e.timezone||"object"!=typeof e.schedule||!e.schedule)return null;const t={};for(const n of Object.keys(e.schedule)){const o=Array.isArray(e.schedule[n])?e.schedule[n]:[];t[n]=o.filter(e=>e&&"string"==typeof e.start&&"string"==typeof e.end).map(e=>({start:e.start,end:e.end}))}return{timezone:e.timezone,schedule:t,outsideMessage:"string"==typeof e.outsideMessage&&e.outsideMessage.trim()?e.outsideMessage:null,open:!!e.open,nextChangeAt:"string"==typeof e.nextChangeAt?e.nextChangeAt:null}}const Sn=["sun","mon","tue","wed","thu","fri","sat"];const xn=e=>{const[t,n]=e.split(":").map(e=>parseInt(e,10));return 60*t+n};function Nn(e,t=new Date){const n=function(e,t){try{const n=new Intl.DateTimeFormat("en-US",{timeZone:t,weekday:"short",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(e),o=e=>{var t;return(null===(t=n.find(t=>t.type===e))||void 0===t?void 0:t.value)||""},r=o("weekday").slice(0,3).toLowerCase(),i=60*parseInt(o("hour"),10)+parseInt(o("minute"),10);return Sn.includes(r)&&!isNaN(i)?{day:r,minutes:i}:null}catch{return null}}(t,e.timezone);if(!n)return{open:e.open,nextChange:e.nextChangeAt?new Date(e.nextChangeAt):null};const o=e.schedule[n.day]||[];for(const e of o){const o=xn(e.start),r=xn(e.end);if(o<=n.minutes&&n.minutes<r)return{open:!0,nextChange:new Date(t.getTime()+6e4*(r-n.minutes))}}const r=Sn.indexOf(n.day);for(let o=0;o<15;o++){const i=Sn[(r+o)%7];for(const r of e.schedule[i]||[]){const e=xn(r.start);if(0===o&&e<=n.minutes)continue;const i=1440*o+e-n.minutes;return{open:!1,nextChange:new Date(t.getTime()+6e4*i)}}}return{open:!1,nextChange:null}}function Mn(e,t){const n=e.getTime()-Date.now()<72e6;try{return new Intl.DateTimeFormat(t,n?{hour:"numeric",minute:"2-digit"}:{weekday:"short",hour:"numeric",minute:"2-digit"}).format(e)}catch{return e.toLocaleString()}}function In(e){try{const t=window.localStorage.getItem(e),n=t?JSON.parse(t):[];return Array.isArray(n)?n.map(e=>Array.isArray(e.messages)&&e.messages.some(e=>e&&"sending"===e.status)?{...e,messages:e.messages.map(e=>"sending"===e.status?{...e,status:"failed"}:e)}:e):[]}catch{return[]}}function $n(e,t){try{return void window.localStorage.setItem(e,JSON.stringify(t))}catch{}try{const n=t.filter(e=>e.messages.some(e=>"user"===e.role)).slice(0,30).map(e=>e.messages.length>200?{...e,messages:e.messages.slice(-200)}:e);window.localStorage.setItem(e,JSON.stringify(n))}catch{}}const Tn=5,An=10485760,Hn=e=>!!e&&/^image\/(png|jpe?g|gif|webp)$/i.test(e);function Pn(e,t){if(!(e>0))return"";const n=["B","KB","MB"];let o=e,r=0;for(;o>=1024&&r<n.length-1;)o/=1024,r++;const i=0===r?0:o<10?1:0;let a;try{a=o.toLocaleString(t,{maximumFractionDigits:i,minimumFractionDigits:0})}catch{a=o.toFixed(i)}return`${a} ${n[r]}`}function En(e){return e&&"string"==typeof e.url&&/^https?:\/\//i.test(e.url)?{url:e.url,name:"string"==typeof e.filename&&e.filename?e.filename:"string"==typeof e.name&&e.name?e.name:"file",type:"string"==typeof e.content_type?e.content_type:"string"==typeof e.type?e.type:"application/octet-stream",size:"number"==typeof e.size?e.size:0}:null}const Un=["active","escalated","resolved"];function Dn(e){return Un.includes(e)?e:"active"}function Ln(){return`m_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,10)}`}function Rn(e){if("string"!=typeof e||!e)return;const t=/(?:[zZ]|[+-]\d\d:?\d\d)$/.test(e)||!/^\d{4}-\d\d-\d\dT/.test(e),n=new Date(t?e:e+"Z");return isNaN(n.getTime())?void 0:n}function On(e){if(!e||!e.message_id)return null;if("user"!==e.role&&"agent"!==e.role&&"human"!==e.role)return null;if("string"!=typeof e.content&&null!==e.content&&void 0!==e.content)return null;const t={role:"user"===e.role?"user":"agent",content:e.content||"",timestamp:Rn(e.timestamp)||new Date,messageId:e.message_id,format:"markdown"===e.format?"markdown":"text"},n=(Array.isArray(e.attachments)?e.attachments:[]).map(En).filter(Boolean);return n.length&&(t.attachments=n),!e.feedback||"up"!==e.feedback.rating&&"down"!==e.feedback.rating||(t.feedback={rating:e.feedback.rating,...e.feedback.comment?{comment:e.feedback.comment}:{}}),t.content||t.attachments?t:null}function Fn(e,t){var n;const o=new Map(e.map(e=>[e.id,e])),r=[],i=new Set;for(const e of t){if(!e||"string"!=typeof e.thread_key||i.has(e.thread_key))continue;i.add(e.thread_key);const t=Dn(e.conversation_status),a=Rn(e.updated_at),s=a?a.toISOString():void 0,l=o.get(e.thread_key);if(l){const e=Date.parse(l.lastUpdated)||0,o=!!a&&a.getTime()-e>2e3;r.push({...l,status:t,hydrated:!o&&(null===(n=l.hydrated)||void 0===n||n),lastUpdated:o?s:l.lastUpdated});continue}const _=e.last_message?On(e.last_message):null;r.push({id:e.thread_key,messages:_?[_]:[],lastUpdated:s||(new Date).toISOString(),status:t,hydrated:!1})}for(const t of e)i.has(t.id)||r.push(t);return r.sort((e,t)=>e.lastUpdated<t.lastUpdated?1:e.lastUpdated>t.lastUpdated?-1:0)}function jn(e,t){const n=new Set(t.map(e=>e.messageId)),o=e.findIndex(e=>"user"===e.role),r=(-1===o?e:e.slice(0,o)).filter(e=>"agent"===e.role&&!e.messageId),i=e=>e.timestamp&&new Date(e.timestamp).getTime()||0,a=t.reduce((e,t)=>Math.max(e,i(t)),0),s=e=>e.content||(e.attachments||[]).map(e=>e.url).join("\n"),l=new Set(t.filter(e=>"user"===e.role).map(s).filter(Boolean)),_=e.filter(e=>e.messageId&&!n.has(e.messageId)&&i(e)>a||"user"===e.role&&("sending"===e.status||"failed"===e.status)&&!e.messageId&&!l.has(s(e)));return[...r,...t,..._]}class Vn{constructor(e){this.options=e,this.token=null,this.supported=!0,this.userId=null,this.human=!1,this.pending=null,this.lastFailure=null}apply(e){e&&"string"==typeof e.session_token&&(this.token=e.session_token,this.userId=e.session_verified&&"string"==typeof e.session_user_id?e.session_user_id:null,this.human=!!e.session_human,this.options.onChange())}clear(){this.token=null,this.pending=null,this.userId=null,this.human=!1,this.options.onChange()}start(e){const t=this.options.getOrganizationId();if(!this.supported||!t)return Promise.resolve(null);if(this.pending)return this.pending;const n=this.options.getVisitorId();let o=null;return o=(async()=>{try{const o=await fetch(this.options.api("/session"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e?{organization_id:t,token:e}:{organization_id:t,visitor_id:n})});if(404===o.status||405===o.status)return this.supported=!1,null;if(!o.ok)return this.lastFailure=401===o.status?"rejected":"transient",null;this.lastFailure=null;const r=await o.json();return n!==this.options.getVisitorId()?null:(this.token&&this.token!==e||this.apply(r),this.token)}catch{return this.lastFailure="transient",null}finally{this.pending===o&&(this.pending=null)}})(),this.pending=o,o}async request(e,t={}){var n;const o=n=>fetch("function"==typeof e?e(!!n):e,{...t,headers:{...t.headers,...n?{Authorization:`Bearer ${n}`}:{}}}),r=null!==(n=this.token)&&void 0!==n?n:await this.start(),i=await o(r);if(401!==i.status||!r)return{res:i,token:r};let a=await this.start(r);if(!a||a===r){const e=this.token;if(e&&e!==r)a=e;else{if("rejected"!==this.lastFailure)return{res:i,token:r};this.clear(),a=await this.start()}}return{res:await o(a),token:a}}async fetch(e,t={}){return(await this.request(e,t)).res}}let zn;function Wn(){if(void 0===zn){const e="undefined"!=typeof window?window.trustedTypes:void 0;if(zn=null,e&&e.createPolicy)try{zn=e.createPolicy("askly",{createHTML:e=>e,createScriptURL:e=>e})}catch{zn=null}}return zn}function qn(e){const t=Wn();return t?t.createHTML(e):e}function Bn(e){const t=Wn();return t?t.createScriptURL(e):e}function Zn(e){return!1===e||"off"===e?"off":!0===e||"review"===e?"review":"auto-send"===e?"auto-send":void 0}function Yn(e){switch(e){case"insecure":return en("voice_error_insecure");case"unsupported":return en("voice_error_unsupported");case"denied":return en("voice_error_denied");case"no-microphone":return en("voice_error_no_microphone");case"no-speech":return en("voice_error_no_speech");case"no-audio":return en("voice_error_no_audio");case"limit":return en("voice_error_limit");case"disabled":return en("voice_error_disabled");case"network":return en("voice_error_network");default:return en("voice_error_failed")}}const Jn=3e3,Gn=3;function Qn(e,t,n){const o=en("greeting_default");let r="string"==typeof e&&e.trim()?e:t?en("greeting_default_persona"):o;return t||-1===r.indexOf("{ai_name}")||(r=o),r.replace(/\{ai_name\}/g,()=>t||"").replace(/\{organizationName\}/g,()=>n).trim()}function Kn(e){try{return"1"===window.sessionStorage.getItem(`askly_greeting_dismissed_${e}`)}catch{return!1}}function Xn(e){try{window.sessionStorage.setItem(`askly_greeting_dismissed_${e}`,"1")}catch{}}function eo(e){un("shown"===e?"greeting:shown":"clicked"===e?"greeting:clicked":"greeting:dismissed");try{window.dispatchEvent(new Event(`askly:greeting:${e}`))}catch{}}const to={headings:!1,blockquotes:!1,images:!1},no={headings:!0,blockquotes:!0,images:!0};function oo(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function ro(e){const t=e.trim();return/^(https?:\/\/|mailto:|tel:)/i.test(t)&&!/[\s\0-]/.test(t)}function io(e,t){return`<a href="${oo(e.trim())}" target="_blank" rel="noopener noreferrer" class="message-inline-link">${t}</a>`}class ao{constructor(){this.items=[]}put(e){return this.items.push(e),`${this.items.length-1}`}restore(e){return e.replace(/(\d+)/g,(e,t)=>this.items[Number(t)])}}const so=/`([^`\n]+)`/g,lo=/!\[([^\]\n]*)\]\(((?:[^()\s]|\([^()\s]*\))+)\)/g,_o=/\[([^\]\n]+)\]\(((?:[^()\s]|\([^()\s]*\))+)\)/g,uo=/(^|[^\w"'=/\]\(])(https?:\/\/[^\s<>()]*[^\s<>().,;:!?'"])/g,co=/\*\*(?=\S)([\s\S]*?\S)\*\*/g,po=/(^|[^\w*])\*(?=\S)([^*\n]*?\S)\*(?![\w*])/g,fo=/(^|[^\w_])_(?=\S)([^_\n]*?\S)_(?![\w_])/g;function ho(e,t){const n=new ao;let o=e;return t.emphasis&&(o=o.replace(so,(e,t)=>n.put(`<code class="inline-code">${oo(t)}</code>`))),t.images?o=o.replace(lo,(e,t,o)=>function(e){const t=e.trim();return/^https:\/\//i.test(t)&&!/[\s\0-]/.test(t)}(o)?n.put(`<img src="${oo(o.trim())}" alt="${oo(t)}" class="message-inline-image" />`):n.put(oo(t))):t.links&&(o=o.replace(lo,(e,t,o)=>n.put(ro(o)?io(o,oo(t||o)):oo(t||o)))),t.links&&(o=o.replace(_o,(e,t,o)=>n.put(ro(o)?io(o,oo(t)):oo(t)))),o=o.replace(uo,(e,t,o)=>t+n.put(io(o,oo(o)))),o=oo(o),t.emphasis&&(o=o.replace(co,"<strong>$1</strong>"),o=o.replace(po,"$1<em>$2</em>"),o=o.replace(fo,"$1<em>$2</em>")),o=o.replace(/\n/g,"<br />"),n.restore(o)}const mo=/^\s{0,3}```\s*([\w+-]*)\s*$/,go=/^\s{0,3}```\s*$/,vo=/^\s{0,3}(#{1,3})\s+(.+?)\s*#*\s*$/,yo=/^\s{0,3}>\s?(.*)$/,wo=/^\s*([-*+]|\d{1,3}[.)])\s+(.*)$/,bo=/^\s{2,}\S/;function ko(e,t){const n={emphasis:!0,links:!0,images:t.images},o=e.replace(/\r\n?/g,"\n").split("\n"),r=[];let i=0;const a=e=>mo.test(e)||wo.test(e)||t.headings&&vo.test(e)||t.blockquotes&&yo.test(e);for(;i<o.length;){const e=o[i];if(""===e.trim()){i++;continue}const s=e.match(mo);if(s){const e=s[1],t=[];for(i++;i<o.length&&!go.test(o[i]);)t.push(o[i]),i++;for(i++;t.length&&""===t[t.length-1].trim();)t.pop();const n=e?` class="language-${e}"`:"";r.push(`<pre><code${n}>${oo(t.join("\n"))}</code></pre>`);continue}if(t.headings){const t=e.match(vo);if(t){const e=t[1].length;r.push(`<h${e}>${ho(t[2],n)}</h${e}>`),i++;continue}}if(t.blockquotes&&yo.test(e)){const e=[];for(;i<o.length;){const t=o[i].match(yo);if(!t)break;e.push(t[1]),i++}r.push(`<blockquote><p>${ho(e.join("\n"),n)}</p></blockquote>`);continue}const l=e.match(wo);if(l){const e=/\d/.test(l[1]),t=e?parseInt(l[1],10):1,a=[];for(;i<o.length;){const e=o[i].match(wo);if(e)a.push(e[2]),i++;else{if(!a.length||!bo.test(o[i]))break;a[a.length-1]+=" "+o[i].trim(),i++}}const s=e?"ol":"ul",_=e&&1!==t?` start="${t}"`:"";r.push(`<${s}${_}>${a.map(e=>`<li>${ho(e,n)}</li>`).join("")}</${s}>`);continue}const _=[e];for(i++;i<o.length&&""!==o[i].trim()&&!a(o[i]);)_.push(o[i]),i++;r.push(`<p>${ho(_.join("\n"),n)}</p>`)}return r.join("")}function Co(e){return e?ko(e,to):""}function So(e){return e?ko(e,no):""}function xo(e){return e?ho(e,{emphasis:!1,links:!1,images:!1}):""}function No(e){return e?e.replace(/```[\s\S]*?```/g," [Code] ").replace(/!\[[^\]]*\]\([^)]*\)/g,"[Image]").replace(/\[[^\]]*\]\([^)]*\)/g,"[Link]").replace(/`([^`]*)`/g,"$1").replace(/\*\*([^*]*)\*\*/g,"$1").replace(/(^|[^\w*])\*([^*\n]+)\*(?![\w*])/g,"$1$2").replace(/(^|[^\w_])_([^_\n]+)_(?![\w_])/g,"$1$2").replace(/^\s{0,3}#{1,6}\s+/gm,"").replace(/^\s*(?:[-*+]|\d{1,3}[.)])\s+/gm,"").replace(/^\s{0,3}>\s?/gm,"").replace(/\s+/g," ").trim():""}export{Fn as $,pe as A,xt as B,Ct as C,$t as D,Co as E,xo as F,Gn as G,Zt as H,Kt as I,Jt as J,Gt as K,Ut as L,Tn as M,In as N,Nn as O,bt as P,bn as Q,wn as R,kt as S,Et as T,$n as U,Qn as V,Vn as W,ht as X,Kn as Y,eo as Z,Xn as _,rn as a,On as a0,Dn as a1,jn as a2,un as a3,Bn as a4,ce as a5,Qt as a6,Zn as a7,mn as a8,vn as a9,yn as aa,Cn as ab,Ln as ac,Mn as ad,Yn as ae,An as af,Jn as ag,hn as ah,_n as ai,ln as aj,sn as ak,dt as al,gn as am,fn as an,on as ao,So as ap,At as aq,tn as b,Nt as c,Pt as d,Dt as e,nn as f,pt as g,Yt as h,vt as i,gt as j,ze as k,mt as l,wt as m,yt as n,St as o,le as p,ue as q,qn as r,No as s,en as t,Hn as u,Pn as v,Mt as w,It as x,Tt as y,qe as z};
@@ -0,0 +1 @@
1
+ function e(e,t,n,o,a,r){return new Promise((s,l)=>{const i=new FormData;i.append("organization_id",t),i.append("file",n);const p=new XMLHttpRequest,d=(e,t)=>{const n=new Error(t);n.status=e,l(n)};if(p.open("POST",e),o&&p.setRequestHeader("Authorization",`Bearer ${o}`),p.upload.onprogress=e=>{e.lengthComputable&&a(Math.round(e.loaded/e.total*100))},p.onerror=()=>d(0,"Upload failed"),p.onabort=()=>d(0,"Upload cancelled"),p.onload=()=>{let e=null;try{e=JSON.parse(p.responseText)}catch{}if(p.status<200||p.status>=300||!e||"string"!=typeof e.blob_url)return d(p.status,e&&e.detail||`HTTP ${p.status}`);s({url:e.blob_url,name:"string"==typeof e.filename?e.filename:n.name,type:"string"==typeof e.content_type?e.content_type:n.type,size:"number"==typeof e.size?e.size:n.size})},r){if(r.aborted)return d(0,"Upload cancelled");r.addEventListener("abort",()=>p.abort(),{once:!0})}p.send(i)})}export{e as uploadFile};
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- function e(e,t=[],o=[]){return t.length>0?t.some(t=>e.startsWith(t)):!(o.length>0)||!o.some(t=>e.startsWith(t))}const t="askly_scope_",o={};function n(e){delete o[e];try{window.localStorage.removeItem(e)}catch{}}function r(e){const s=e||"detect",a=function(e){var t;try{const t=window.localStorage.getItem(e);if(null!==t)return t}catch{}return null!==(t=o[e])&&void 0!==t?t:null}(t+s);a&&a!==s&&r(a),n("askly_visitor_"+s),n("askly_threads_"+s);for(const e of Object.keys(o))e.includes(s)&&!e.startsWith(t)&&delete o[e];try{const e=[];for(let t=0;t<window.localStorage.length;t++){const o=window.localStorage.key(t);o&&o.startsWith(`askly_conversations_${s}`)&&e.push(o)}e.forEach(e=>window.localStorage.removeItem(e))}catch{}}const s=["init","identify","reset","shutdown","unmount","open","close","toggle","show","hide","on","off","once","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","stopVoiceInput","update","setLocale","updateTexts"],a={isOpen:!1,getUnreadCount:0,getVisitorId:""},l=["identify","open","toggle","show","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","update"],i="#0f172a",c="http://www.w3.org/2000/svg";const d=":host{all:initial}.askly-chat-button{position:fixed;bottom:var(--ob,24px);width:60px;height:60px;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;background:var(--a,"+i+");border-radius:23%;box-shadow:0 12px 32px rgba(15,23,42,.28),0 4px 10px rgba(15,23,42,.16);z-index:99999;font:28px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.shape-round{border-radius:50%}.askly-chat-button:hover{transform:translateY(-3px) scale(1.05)}.askly-chat-button:focus-visible{outline:3px solid var(--a,"+i+");outline-offset:3px}.r{right:var(--os,24px)}.l{left:var(--os,24px)}@media (max-width:600px){.askly-chat-button{bottom:var(--ob,16px)}.r{right:var(--os,16px)}.l{left:var(--os,16px)}}@media (prefers-reduced-motion:reduce){.askly-chat-button{transition:none}}";function u(e){try{const t=JSON.parse(e||"[]");return Array.isArray(t)&&t.some(e=>e&&Array.isArray(e.messages)&&e.messages.some(e=>e&&"user"===e.role))}catch{return!1}}const p="https://unpkg.com/@askly/widget@3.2.0/dist/app/askly-app.js",h="undefined"!=typeof window?window.Askly:void 0,f=h&&"function"==typeof h.init?h:function(t){let o=t;const n={q:[],v:3,_r:[],_t:0};let p=null,h=!1,f=null,m=!1,g=null,y=[],w=!1,b=!1;const v=(...e)=>{f&&f.debug&&console.log("[Askly]",...e)},S=e=>e&&(e.appId||e.widgetId||e.orgId)||"detect",k=()=>{y.forEach(clearTimeout),y=[],g&&g.remove(),g=null},x=()=>{if(!f)return h=!0,Promise.resolve();if(!p){const e=(t,o)=>(v("Loading the widget from",t),import(/* webpackIgnore: true */ /* @vite-ignore */t).catch(n=>{if(o&&o!==t)return console.warn(`[Askly] Could not load the widget from ${t}; trying ${o}.`),e(o);p=null,k(),console.error("[Askly] The widget could not be loaded:",n)}));p=e(o.appUrl,o.fallbackUrl)}return p};let A=!1;const I=(e,t)=>{if("undefined"==typeof document||g)return;if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>{!m||g||p||_(e)},{once:!0});const o=e.themeColor||t&&t.themeColor||i,r=e.buttonShape||t&&t.buttonShape||"round";g=document.createElement("askly-loader");const s=g.attachShadow({mode:"open"});let a=!1;try{const e=new CSSStyleSheet;e.replaceSync(d),s.adoptedStyleSheets=[e],a=!0}catch{}if(!a){const e=document.createElement("style");e.textContent=d,s.appendChild(e)}const l=document.createElement("button");l.className=`askly-chat-button shape-${r} ${"left"===e.position?"l":"r"}`,l.type="button",l.setAttribute("aria-label","Open support chat"),l.setAttribute("aria-expanded","false"),l.setAttribute("lang","en"),l.title="Open support chat",l.style.setProperty("--a",`var(--askly-brand, ${o})`),e.offset&&"number"==typeof e.offset.bottom&&l.style.setProperty("--ob",`${e.offset.bottom}px`),e.offset&&"number"==typeof e.offset.side&&l.style.setProperty("--os",`${e.offset.side}px`),e.buttonIcon&&"💬"!==e.buttonIcon?l.textContent=e.buttonIcon:l.appendChild(function(){const e=document.createElementNS(c,"svg");e.setAttribute("width","32"),e.setAttribute("height","32"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none");const t=document.createElementNS(c,"g");t.setAttribute("transform","translate(24 0) scale(-1 1)");const o=document.createElementNS(c,"path");return o.setAttribute("fill","currentColor"),o.setAttribute("fill-rule","evenodd"),o.setAttribute("clip-rule","evenodd"),o.setAttribute("d","M16 2H8C4 2 2 4 2 8V21C2 21.55 2.45 22 3 22H16C20 22 22 20 22 16V8C22 4 20 2 16 2ZM15.5 12.75H8.5C8.09 12.75 7.75 12.41 7.75 12C7.75 11.59 8.09 11.25 8.5 11.25H15.5C15.91 11.25 16.25 11.59 16.25 12C16.25 12.41 15.91 12.75 15.5 12.75Z"),t.appendChild(o),e.appendChild(t),e}()),l.addEventListener("mouseenter",()=>{x()}),l.addEventListener("focus",()=>{x()}),l.addEventListener("click",()=>{n.open()}),s.appendChild(l),document.body.appendChild(g)};let C=!1;const _=e=>{C=!0;const t=e.appId||e.widgetId||e.orgId,r=(e.orgServerRoute||"https://api.askly.co.in/api/messages/widget").replace(/\/widget$/,""),s=`askly_config_${t||"detect"}`;let a=null;try{a=JSON.parse(sessionStorage.getItem(s)||"null")}catch{}e.hideLauncher||I(e,a);let l=null;const i=o=>{l&&clearTimeout(l),l=null;const r=e.greeting;if(!(!0===r||!1!==r&&!(o&&!1===o.greetingEnabled))||e.hideLauncher||function(e){try{return"1"===window.sessionStorage.getItem(`askly_greeting_dismissed_${e}`)}catch{return!1}}(t||"detect"))return;const s="object"==typeof r&&"number"==typeof r.delayMs?r.delayMs:o&&"number"==typeof o.greetingDelayMs?o.greetingDelayMs:3e3;l=setTimeout(()=>{x()},Math.max(0,s-400-(Date.now()-n._t))),y.push(l)};i(a);let c=!1;try{const e=`askly_conversations_${t||"detect"}`;for(let t=0;t<localStorage.length;t++){const o=localStorage.key(t)||"";if(0===o.indexOf(e)&&u(localStorage.getItem(o))){c=!0;break}}}catch{}(e=>{const t=window.requestIdleCallback;t?t(e,{timeout:4e3}):y.push(setTimeout(e,1500))})(()=>{m&&!p&&(c?x():((()=>{if(p||A||"undefined"==typeof document)return;A=!0;const e=document.createElement("link");e.rel="modulepreload",e.href=o.appUrl,document.head.appendChild(e)})(),a||w||(w=!0,fetch(`${r}/widget/config${t?`?org_id=${encodeURIComponent(t)}`:""}`).then(e=>e.ok?e.json():null).then(t=>{if(t&&m){try{sessionStorage.setItem(s,JSON.stringify(t))}catch{}if(t.disabled)return v("Disabled by configuration."),k(),n.q=null,void(m=!1);p||(g&&!e.hideLauncher&&(g.remove(),g=null,I(e,t)),i(t))}}).catch(()=>{}))))})};let E=!1;const L=t=>{if(E||!t.includePaths&&!t.excludePaths)return;E=!0;const o=()=>{if(!m||p)return;e(window.location.pathname,t.includePaths,t.excludePaths)?C||_(t):(k(),C=!1)},n=e=>{const t=history[e];history[e]=function(...e){const n=t.apply(this,e);return setTimeout(o,0),n}};n("pushState"),n("replaceState"),window.addEventListener("popstate",o)};return s.forEach(t=>{const s=(...a)=>n[t]!==s?n[t](...a):(n.q&&n.q.push([t,a]),"init"===t?((t={})=>{if(f=t,m=!0,n._t=Date.now(),t.appUrl&&(o={...o,appUrl:t.appUrl}),t.appId||t.widgetId||t.orgId||console.error("[Askly] Missing required `appId`. The widget cannot load without it."),"undefined"!=typeof window){if(h||t.autoOpen||t.userId)return h=!1,void x();if(L(t),t.customLauncherSelector&&!b){let e=!0;try{document.querySelector(t.customLauncherSelector)}catch{e=!1}e||console.warn(`[Askly] customLauncherSelector is not a valid selector: ${t.customLauncherSelector}`),b=!0,e&&document.addEventListener("click",e=>{if(!(m&&f&&f.customLauncherSelector&&n.q))return;const t=e.target;let o=null;try{o=t&&t.closest?t.closest(f.customLauncherSelector):null}catch{return}o&&("A"===o.tagName&&"#"===(o.getAttribute("href")||"#").charAt(0)&&e.preventDefault(),n.q.some(e=>"open"===e[0]||"toggle"===e[0])||n.open())})}e(window.location.pathname,t.includePaths,t.excludePaths)?_(t):v("Hidden on this path.")}})(a[0]):"reset"===t?r(S(f)):"shutdown"===t||"unmount"===t?("shutdown"===t&&r(S(f)),m=!1,k(),n.q=[]):-1!==l.indexOf(t)&&x(),"on"===t||"once"===t?()=>{n.q?n.q=n.q.filter(e=>!(e[0]===t&&e[1][0]===a[0]&&e[1][1]===a[1])):n.off(a[0],a[1])}:void 0);n[t]=s}),Object.keys(a).forEach(e=>{const t=()=>n[e]!==t?n[e]():a[e];n[e]=t}),n.ready=()=>(x(),new Promise(e=>n._r.push(e))),n._unpaint=k,n}({appUrl:p,fallbackUrl:p});"undefined"==typeof window||h||(window.Askly=f);export{f as default};
1
+ function e(e,t=[],o=[]){return t.length>0?t.some(t=>e.startsWith(t)):!(o.length>0)||!o.some(t=>e.startsWith(t))}const t="askly_scope_",o={};function n(e){delete o[e];try{window.localStorage.removeItem(e)}catch{}}function r(e){const s=e||"detect",a=function(e){var t;try{const t=window.localStorage.getItem(e);if(null!==t)return t}catch{}return null!==(t=o[e])&&void 0!==t?t:null}(t+s);a&&a!==s&&r(a),n("askly_visitor_"+s),n("askly_threads_"+s);for(const e of Object.keys(o))e.includes(s)&&!e.startsWith(t)&&delete o[e];try{const e=[];for(let t=0;t<window.localStorage.length;t++){const o=window.localStorage.key(t);o&&o.startsWith(`askly_conversations_${s}`)&&e.push(o)}e.forEach(e=>window.localStorage.removeItem(e))}catch{}}const s=["init","identify","reset","shutdown","unmount","open","close","toggle","show","hide","on","off","once","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","stopVoiceInput","update","setLocale","updateTexts"],a={isOpen:!1,getUnreadCount:0,getVisitorId:""},l=["identify","open","toggle","show","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","update"],i="#0f172a",c="http://www.w3.org/2000/svg";const d=":host{all:initial}.askly-chat-button{position:fixed;bottom:var(--ob,24px);width:60px;height:60px;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;background:var(--a,"+i+");border-radius:23%;box-shadow:0 12px 32px rgba(15,23,42,.28),0 4px 10px rgba(15,23,42,.16);z-index:99999;font:28px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.shape-round{border-radius:50%}.askly-chat-button:hover{transform:translateY(-3px) scale(1.05)}.askly-chat-button:focus-visible{outline:3px solid var(--a,"+i+");outline-offset:3px}.r{right:var(--os,24px)}.l{left:var(--os,24px)}@media (max-width:600px){.askly-chat-button{bottom:var(--ob,16px)}.r{right:var(--os,16px)}.l{left:var(--os,16px)}}@media (prefers-reduced-motion:reduce){.askly-chat-button{transition:none}}";function u(e){try{const t=JSON.parse(e||"[]");return Array.isArray(t)&&t.some(e=>e&&Array.isArray(e.messages)&&e.messages.some(e=>e&&"user"===e.role))}catch{return!1}}const p="https://unpkg.com/@askly/widget@3.4.0/dist/app/askly-app.js",h="undefined"!=typeof window?window.Askly:void 0,f=h&&"function"==typeof h.init?h:function(t){let o=t;const n={q:[],v:3,_r:[],_t:0};let p=null,h=!1,f=null,m=!1,g=null,y=[],w=!1,b=!1;const v=(...e)=>{f&&f.debug&&console.log("[Askly]",...e)},S=e=>e&&(e.appId||e.widgetId||e.orgId)||"detect",k=()=>{y.forEach(clearTimeout),y=[],g&&g.remove(),g=null},x=()=>{if(!f)return h=!0,Promise.resolve();if(!p){const e=(t,o)=>(v("Loading the widget from",t),import(/* webpackIgnore: true */ /* @vite-ignore */t).catch(n=>{if(o&&o!==t)return console.warn(`[Askly] Could not load the widget from ${t}; trying ${o}.`),e(o);p=null,k(),console.error("[Askly] The widget could not be loaded:",n)}));p=e(o.appUrl,o.fallbackUrl)}return p};let A=!1;const I=(e,t)=>{if("undefined"==typeof document||g)return;if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>{!m||g||p||_(e)},{once:!0});const o=e.themeColor||t&&t.themeColor||i,r=e.buttonShape||t&&t.buttonShape||"round";g=document.createElement("askly-loader");const s=g.attachShadow({mode:"open"});let a=!1;try{const e=new CSSStyleSheet;e.replaceSync(d),s.adoptedStyleSheets=[e],a=!0}catch{}if(!a){const e=document.createElement("style");e.textContent=d,s.appendChild(e)}const l=document.createElement("button");l.className=`askly-chat-button shape-${r} ${"left"===e.position?"l":"r"}`,l.type="button",l.setAttribute("aria-label","Open support chat"),l.setAttribute("aria-expanded","false"),l.setAttribute("lang","en"),l.title="Open support chat",l.style.setProperty("--a",`var(--askly-brand, ${o})`),e.offset&&"number"==typeof e.offset.bottom&&l.style.setProperty("--ob",`${e.offset.bottom}px`),e.offset&&"number"==typeof e.offset.side&&l.style.setProperty("--os",`${e.offset.side}px`),e.buttonIcon&&"💬"!==e.buttonIcon?l.textContent=e.buttonIcon:l.appendChild(function(){const e=document.createElementNS(c,"svg");e.setAttribute("width","32"),e.setAttribute("height","32"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none");const t=document.createElementNS(c,"g");t.setAttribute("transform","translate(24 0) scale(-1 1)");const o=document.createElementNS(c,"path");return o.setAttribute("fill","currentColor"),o.setAttribute("fill-rule","evenodd"),o.setAttribute("clip-rule","evenodd"),o.setAttribute("d","M16 2H8C4 2 2 4 2 8V21C2 21.55 2.45 22 3 22H16C20 22 22 20 22 16V8C22 4 20 2 16 2ZM15.5 12.75H8.5C8.09 12.75 7.75 12.41 7.75 12C7.75 11.59 8.09 11.25 8.5 11.25H15.5C15.91 11.25 16.25 11.59 16.25 12C16.25 12.41 15.91 12.75 15.5 12.75Z"),t.appendChild(o),e.appendChild(t),e}()),l.addEventListener("mouseenter",()=>{x()}),l.addEventListener("focus",()=>{x()}),l.addEventListener("click",()=>{n.open()}),s.appendChild(l),document.body.appendChild(g)};let C=!1;const _=e=>{C=!0;const t=e.appId||e.widgetId||e.orgId,r=(e.orgServerRoute||"https://api.askly.co.in/api/messages/widget").replace(/\/widget$/,""),s=`askly_config_${t||"detect"}`;let a=null;try{a=JSON.parse(sessionStorage.getItem(s)||"null")}catch{}e.hideLauncher||I(e,a);let l=null;const i=o=>{l&&clearTimeout(l),l=null;const r=e.greeting;if(!(!0===r||!1!==r&&!(o&&!1===o.greetingEnabled))||e.hideLauncher||function(e){try{return"1"===window.sessionStorage.getItem(`askly_greeting_dismissed_${e}`)}catch{return!1}}(t||"detect"))return;const s="object"==typeof r&&"number"==typeof r.delayMs?r.delayMs:o&&"number"==typeof o.greetingDelayMs?o.greetingDelayMs:3e3;l=setTimeout(()=>{x()},Math.max(0,s-400-(Date.now()-n._t))),y.push(l)};i(a);let c=!1;try{const e=`askly_conversations_${t||"detect"}`;for(let t=0;t<localStorage.length;t++){const o=localStorage.key(t)||"";if(0===o.indexOf(e)&&u(localStorage.getItem(o))){c=!0;break}}}catch{}(e=>{const t=window.requestIdleCallback;t?t(e,{timeout:4e3}):y.push(setTimeout(e,1500))})(()=>{m&&!p&&(c?x():((()=>{if(p||A||"undefined"==typeof document)return;A=!0;const e=document.createElement("link");e.rel="modulepreload",e.href=o.appUrl,document.head.appendChild(e)})(),a||w||(w=!0,fetch(`${r}/widget/config${t?`?org_id=${encodeURIComponent(t)}`:""}`).then(e=>e.ok?e.json():null).then(t=>{if(t&&m){try{sessionStorage.setItem(s,JSON.stringify(t))}catch{}if(t.disabled)return v("Disabled by configuration."),k(),n.q=null,void(m=!1);p||(g&&!e.hideLauncher&&(g.remove(),g=null,I(e,t)),i(t))}}).catch(()=>{}))))})};let E=!1;const L=t=>{if(E||!t.includePaths&&!t.excludePaths)return;E=!0;const o=()=>{if(!m||p)return;e(window.location.pathname,t.includePaths,t.excludePaths)?C||_(t):(k(),C=!1)},n=e=>{const t=history[e];history[e]=function(...e){const n=t.apply(this,e);return setTimeout(o,0),n}};n("pushState"),n("replaceState"),window.addEventListener("popstate",o)};return s.forEach(t=>{const s=(...a)=>n[t]!==s?n[t](...a):(n.q&&n.q.push([t,a]),"init"===t?((t={})=>{if(f=t,m=!0,n._t=Date.now(),t.appUrl&&(o={...o,appUrl:t.appUrl}),t.appId||t.widgetId||t.orgId||console.error("[Askly] Missing required `appId`. The widget cannot load without it."),"undefined"!=typeof window){if(h||t.autoOpen||t.userId)return h=!1,void x();if(L(t),t.customLauncherSelector&&!b){let e=!0;try{document.querySelector(t.customLauncherSelector)}catch{e=!1}e||console.warn(`[Askly] customLauncherSelector is not a valid selector: ${t.customLauncherSelector}`),b=!0,e&&document.addEventListener("click",e=>{if(!(m&&f&&f.customLauncherSelector&&n.q))return;const t=e.target;let o=null;try{o=t&&t.closest?t.closest(f.customLauncherSelector):null}catch{return}o&&("A"===o.tagName&&"#"===(o.getAttribute("href")||"#").charAt(0)&&e.preventDefault(),n.q.some(e=>"open"===e[0]||"toggle"===e[0])||n.open())})}e(window.location.pathname,t.includePaths,t.excludePaths)?_(t):v("Hidden on this path.")}})(a[0]):"reset"===t?r(S(f)):"shutdown"===t||"unmount"===t?("shutdown"===t&&r(S(f)),m=!1,k(),n.q=[]):-1!==l.indexOf(t)&&x(),"on"===t||"once"===t?()=>{n.q?n.q=n.q.filter(e=>!(e[0]===t&&e[1][0]===a[0]&&e[1][1]===a[1])):n.off(a[0],a[1])}:void 0);n[t]=s}),Object.keys(a).forEach(e=>{const t=()=>n[e]!==t?n[e]():a[e];n[e]=t}),n.ready=()=>(x(),new Promise(e=>n._r.push(e))),n._unpaint=k,n}({appUrl:p,fallbackUrl:p});"undefined"==typeof window||h||(window.Askly=f);export{f as default};
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Askly=t()}(this,function(){"use strict";function e(e,t=[],o=[]){return t.length>0?t.some(t=>e.startsWith(t)):!(o.length>0)||!o.some(t=>e.startsWith(t))}const t="askly_scope_",o={};function n(e){delete o[e];try{window.localStorage.removeItem(e)}catch{}}function r(e){const s=e||"detect",a=function(e){var t;try{const t=window.localStorage.getItem(e);if(null!==t)return t}catch{}return null!==(t=o[e])&&void 0!==t?t:null}(t+s);a&&a!==s&&r(a),n("askly_visitor_"+s),n("askly_threads_"+s);for(const e of Object.keys(o))e.includes(s)&&!e.startsWith(t)&&delete o[e];try{const e=[];for(let t=0;t<window.localStorage.length;t++){const o=window.localStorage.key(t);o&&o.startsWith(`askly_conversations_${s}`)&&e.push(o)}e.forEach(e=>window.localStorage.removeItem(e))}catch{}}const s=["init","identify","reset","shutdown","unmount","open","close","toggle","show","hide","on","off","once","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","stopVoiceInput","update","setLocale","updateTexts"],a={isOpen:!1,getUnreadCount:0,getVisitorId:""},i=["identify","open","toggle","show","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","update"],l="#0f172a",c="http://www.w3.org/2000/svg";const d=":host{all:initial}.askly-chat-button{position:fixed;bottom:var(--ob,24px);width:60px;height:60px;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;background:var(--a,"+l+");border-radius:23%;box-shadow:0 12px 32px rgba(15,23,42,.28),0 4px 10px rgba(15,23,42,.16);z-index:99999;font:28px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.shape-round{border-radius:50%}.askly-chat-button:hover{transform:translateY(-3px) scale(1.05)}.askly-chat-button:focus-visible{outline:3px solid var(--a,"+l+");outline-offset:3px}.r{right:var(--os,24px)}.l{left:var(--os,24px)}@media (max-width:600px){.askly-chat-button{bottom:var(--ob,16px)}.r{right:var(--os,16px)}.l{left:var(--os,16px)}}@media (prefers-reduced-motion:reduce){.askly-chat-button{transition:none}}";function u(e){try{const t=JSON.parse(e||"[]");return Array.isArray(t)&&t.some(e=>e&&Array.isArray(e.messages)&&e.messages.some(e=>e&&"user"===e.role))}catch{return!1}}const p="https://unpkg.com/@askly/widget@3.2.0/dist/app/askly-app.js",h="undefined"!=typeof window?window.Askly:void 0,f=h&&"function"==typeof h.init?h:function(t){let o=t;const n={q:[],v:3,_r:[],_t:0};let p=null,h=!1,f=null,m=!1,y=null,g=[],w=!1,b=!1;const k=(...e)=>{f&&f.debug&&console.log("[Askly]",...e)},v=e=>e&&(e.appId||e.widgetId||e.orgId)||"detect",S=()=>{g.forEach(clearTimeout),g=[],y&&y.remove(),y=null},x=()=>{if(!f)return h=!0,Promise.resolve();if(!p){const e=(t,o)=>(k("Loading the widget from",t),import(/* webpackIgnore: true */ /* @vite-ignore */t).catch(n=>{if(o&&o!==t)return console.warn(`[Askly] Could not load the widget from ${t}; trying ${o}.`),e(o);p=null,S(),console.error("[Askly] The widget could not be loaded:",n)}));p=e(o.appUrl,o.fallbackUrl)}return p};let A=!1;const I=(e,t)=>{if("undefined"==typeof document||y)return;if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>{!m||y||p||_(e)},{once:!0});const o=e.themeColor||t&&t.themeColor||l,r=e.buttonShape||t&&t.buttonShape||"round";y=document.createElement("askly-loader");const s=y.attachShadow({mode:"open"});let a=!1;try{const e=new CSSStyleSheet;e.replaceSync(d),s.adoptedStyleSheets=[e],a=!0}catch{}if(!a){const e=document.createElement("style");e.textContent=d,s.appendChild(e)}const i=document.createElement("button");i.className=`askly-chat-button shape-${r} ${"left"===e.position?"l":"r"}`,i.type="button",i.setAttribute("aria-label","Open support chat"),i.setAttribute("aria-expanded","false"),i.setAttribute("lang","en"),i.title="Open support chat",i.style.setProperty("--a",`var(--askly-brand, ${o})`),e.offset&&"number"==typeof e.offset.bottom&&i.style.setProperty("--ob",`${e.offset.bottom}px`),e.offset&&"number"==typeof e.offset.side&&i.style.setProperty("--os",`${e.offset.side}px`),e.buttonIcon&&"💬"!==e.buttonIcon?i.textContent=e.buttonIcon:i.appendChild(function(){const e=document.createElementNS(c,"svg");e.setAttribute("width","32"),e.setAttribute("height","32"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none");const t=document.createElementNS(c,"g");t.setAttribute("transform","translate(24 0) scale(-1 1)");const o=document.createElementNS(c,"path");return o.setAttribute("fill","currentColor"),o.setAttribute("fill-rule","evenodd"),o.setAttribute("clip-rule","evenodd"),o.setAttribute("d","M16 2H8C4 2 2 4 2 8V21C2 21.55 2.45 22 3 22H16C20 22 22 20 22 16V8C22 4 20 2 16 2ZM15.5 12.75H8.5C8.09 12.75 7.75 12.41 7.75 12C7.75 11.59 8.09 11.25 8.5 11.25H15.5C15.91 11.25 16.25 11.59 16.25 12C16.25 12.41 15.91 12.75 15.5 12.75Z"),t.appendChild(o),e.appendChild(t),e}()),i.addEventListener("mouseenter",()=>{x()}),i.addEventListener("focus",()=>{x()}),i.addEventListener("click",()=>{n.open()}),s.appendChild(i),document.body.appendChild(y)};let C=!1;const _=e=>{C=!0;const t=e.appId||e.widgetId||e.orgId,r=(e.orgServerRoute||"https://api.askly.co.in/api/messages/widget").replace(/\/widget$/,""),s=`askly_config_${t||"detect"}`;let a=null;try{a=JSON.parse(sessionStorage.getItem(s)||"null")}catch{}e.hideLauncher||I(e,a);let i=null;const l=o=>{i&&clearTimeout(i),i=null;const r=e.greeting;if(!(!0===r||!1!==r&&!(o&&!1===o.greetingEnabled))||e.hideLauncher||function(e){try{return"1"===window.sessionStorage.getItem(`askly_greeting_dismissed_${e}`)}catch{return!1}}(t||"detect"))return;const s="object"==typeof r&&"number"==typeof r.delayMs?r.delayMs:o&&"number"==typeof o.greetingDelayMs?o.greetingDelayMs:3e3;i=setTimeout(()=>{x()},Math.max(0,s-400-(Date.now()-n._t))),g.push(i)};l(a);let c=!1;try{const e=`askly_conversations_${t||"detect"}`;for(let t=0;t<localStorage.length;t++){const o=localStorage.key(t)||"";if(0===o.indexOf(e)&&u(localStorage.getItem(o))){c=!0;break}}}catch{}(e=>{const t=window.requestIdleCallback;t?t(e,{timeout:4e3}):g.push(setTimeout(e,1500))})(()=>{m&&!p&&(c?x():((()=>{if(p||A||"undefined"==typeof document)return;A=!0;const e=document.createElement("link");e.rel="modulepreload",e.href=o.appUrl,document.head.appendChild(e)})(),a||w||(w=!0,fetch(`${r}/widget/config${t?`?org_id=${encodeURIComponent(t)}`:""}`).then(e=>e.ok?e.json():null).then(t=>{if(t&&m){try{sessionStorage.setItem(s,JSON.stringify(t))}catch{}if(t.disabled)return k("Disabled by configuration."),S(),n.q=null,void(m=!1);p||(y&&!e.hideLauncher&&(y.remove(),y=null,I(e,t)),l(t))}}).catch(()=>{}))))})};let E=!1;const L=t=>{if(E||!t.includePaths&&!t.excludePaths)return;E=!0;const o=()=>{if(!m||p)return;e(window.location.pathname,t.includePaths,t.excludePaths)?C||_(t):(S(),C=!1)},n=e=>{const t=history[e];history[e]=function(...e){const n=t.apply(this,e);return setTimeout(o,0),n}};n("pushState"),n("replaceState"),window.addEventListener("popstate",o)};return s.forEach(t=>{const s=(...a)=>n[t]!==s?n[t](...a):(n.q&&n.q.push([t,a]),"init"===t?((t={})=>{if(f=t,m=!0,n._t=Date.now(),t.appUrl&&(o={...o,appUrl:t.appUrl}),t.appId||t.widgetId||t.orgId||console.error("[Askly] Missing required `appId`. The widget cannot load without it."),"undefined"!=typeof window){if(h||t.autoOpen||t.userId)return h=!1,void x();if(L(t),t.customLauncherSelector&&!b){let e=!0;try{document.querySelector(t.customLauncherSelector)}catch{e=!1}e||console.warn(`[Askly] customLauncherSelector is not a valid selector: ${t.customLauncherSelector}`),b=!0,e&&document.addEventListener("click",e=>{if(!(m&&f&&f.customLauncherSelector&&n.q))return;const t=e.target;let o=null;try{o=t&&t.closest?t.closest(f.customLauncherSelector):null}catch{return}o&&("A"===o.tagName&&"#"===(o.getAttribute("href")||"#").charAt(0)&&e.preventDefault(),n.q.some(e=>"open"===e[0]||"toggle"===e[0])||n.open())})}e(window.location.pathname,t.includePaths,t.excludePaths)?_(t):k("Hidden on this path.")}})(a[0]):"reset"===t?r(v(f)):"shutdown"===t||"unmount"===t?("shutdown"===t&&r(v(f)),m=!1,S(),n.q=[]):-1!==i.indexOf(t)&&x(),"on"===t||"once"===t?()=>{n.q?n.q=n.q.filter(e=>!(e[0]===t&&e[1][0]===a[0]&&e[1][1]===a[1])):n.off(a[0],a[1])}:void 0);n[t]=s}),Object.keys(a).forEach(e=>{const t=()=>n[e]!==t?n[e]():a[e];n[e]=t}),n.ready=()=>(x(),new Promise(e=>n._r.push(e))),n._unpaint=S,n}({appUrl:p,fallbackUrl:p});return"undefined"==typeof window||h||(window.Askly=f),f});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Askly=t()}(this,function(){"use strict";function e(e,t=[],o=[]){return t.length>0?t.some(t=>e.startsWith(t)):!(o.length>0)||!o.some(t=>e.startsWith(t))}const t="askly_scope_",o={};function n(e){delete o[e];try{window.localStorage.removeItem(e)}catch{}}function r(e){const s=e||"detect",a=function(e){var t;try{const t=window.localStorage.getItem(e);if(null!==t)return t}catch{}return null!==(t=o[e])&&void 0!==t?t:null}(t+s);a&&a!==s&&r(a),n("askly_visitor_"+s),n("askly_threads_"+s);for(const e of Object.keys(o))e.includes(s)&&!e.startsWith(t)&&delete o[e];try{const e=[];for(let t=0;t<window.localStorage.length;t++){const o=window.localStorage.key(t);o&&o.startsWith(`askly_conversations_${s}`)&&e.push(o)}e.forEach(e=>window.localStorage.removeItem(e))}catch{}}const s=["init","identify","reset","shutdown","unmount","open","close","toggle","show","hide","on","off","once","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","stopVoiceInput","update","setLocale","updateTexts"],a={isOpen:!1,getUnreadCount:0,getVisitorId:""},i=["identify","open","toggle","show","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","update"],l="#0f172a",c="http://www.w3.org/2000/svg";const d=":host{all:initial}.askly-chat-button{position:fixed;bottom:var(--ob,24px);width:60px;height:60px;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;background:var(--a,"+l+");border-radius:23%;box-shadow:0 12px 32px rgba(15,23,42,.28),0 4px 10px rgba(15,23,42,.16);z-index:99999;font:28px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.shape-round{border-radius:50%}.askly-chat-button:hover{transform:translateY(-3px) scale(1.05)}.askly-chat-button:focus-visible{outline:3px solid var(--a,"+l+");outline-offset:3px}.r{right:var(--os,24px)}.l{left:var(--os,24px)}@media (max-width:600px){.askly-chat-button{bottom:var(--ob,16px)}.r{right:var(--os,16px)}.l{left:var(--os,16px)}}@media (prefers-reduced-motion:reduce){.askly-chat-button{transition:none}}";function u(e){try{const t=JSON.parse(e||"[]");return Array.isArray(t)&&t.some(e=>e&&Array.isArray(e.messages)&&e.messages.some(e=>e&&"user"===e.role))}catch{return!1}}const p="https://unpkg.com/@askly/widget@3.4.0/dist/app/askly-app.js",h="undefined"!=typeof window?window.Askly:void 0,f=h&&"function"==typeof h.init?h:function(t){let o=t;const n={q:[],v:3,_r:[],_t:0};let p=null,h=!1,f=null,m=!1,y=null,g=[],w=!1,b=!1;const k=(...e)=>{f&&f.debug&&console.log("[Askly]",...e)},v=e=>e&&(e.appId||e.widgetId||e.orgId)||"detect",S=()=>{g.forEach(clearTimeout),g=[],y&&y.remove(),y=null},x=()=>{if(!f)return h=!0,Promise.resolve();if(!p){const e=(t,o)=>(k("Loading the widget from",t),import(/* webpackIgnore: true */ /* @vite-ignore */t).catch(n=>{if(o&&o!==t)return console.warn(`[Askly] Could not load the widget from ${t}; trying ${o}.`),e(o);p=null,S(),console.error("[Askly] The widget could not be loaded:",n)}));p=e(o.appUrl,o.fallbackUrl)}return p};let A=!1;const I=(e,t)=>{if("undefined"==typeof document||y)return;if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>{!m||y||p||_(e)},{once:!0});const o=e.themeColor||t&&t.themeColor||l,r=e.buttonShape||t&&t.buttonShape||"round";y=document.createElement("askly-loader");const s=y.attachShadow({mode:"open"});let a=!1;try{const e=new CSSStyleSheet;e.replaceSync(d),s.adoptedStyleSheets=[e],a=!0}catch{}if(!a){const e=document.createElement("style");e.textContent=d,s.appendChild(e)}const i=document.createElement("button");i.className=`askly-chat-button shape-${r} ${"left"===e.position?"l":"r"}`,i.type="button",i.setAttribute("aria-label","Open support chat"),i.setAttribute("aria-expanded","false"),i.setAttribute("lang","en"),i.title="Open support chat",i.style.setProperty("--a",`var(--askly-brand, ${o})`),e.offset&&"number"==typeof e.offset.bottom&&i.style.setProperty("--ob",`${e.offset.bottom}px`),e.offset&&"number"==typeof e.offset.side&&i.style.setProperty("--os",`${e.offset.side}px`),e.buttonIcon&&"💬"!==e.buttonIcon?i.textContent=e.buttonIcon:i.appendChild(function(){const e=document.createElementNS(c,"svg");e.setAttribute("width","32"),e.setAttribute("height","32"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none");const t=document.createElementNS(c,"g");t.setAttribute("transform","translate(24 0) scale(-1 1)");const o=document.createElementNS(c,"path");return o.setAttribute("fill","currentColor"),o.setAttribute("fill-rule","evenodd"),o.setAttribute("clip-rule","evenodd"),o.setAttribute("d","M16 2H8C4 2 2 4 2 8V21C2 21.55 2.45 22 3 22H16C20 22 22 20 22 16V8C22 4 20 2 16 2ZM15.5 12.75H8.5C8.09 12.75 7.75 12.41 7.75 12C7.75 11.59 8.09 11.25 8.5 11.25H15.5C15.91 11.25 16.25 11.59 16.25 12C16.25 12.41 15.91 12.75 15.5 12.75Z"),t.appendChild(o),e.appendChild(t),e}()),i.addEventListener("mouseenter",()=>{x()}),i.addEventListener("focus",()=>{x()}),i.addEventListener("click",()=>{n.open()}),s.appendChild(i),document.body.appendChild(y)};let C=!1;const _=e=>{C=!0;const t=e.appId||e.widgetId||e.orgId,r=(e.orgServerRoute||"https://api.askly.co.in/api/messages/widget").replace(/\/widget$/,""),s=`askly_config_${t||"detect"}`;let a=null;try{a=JSON.parse(sessionStorage.getItem(s)||"null")}catch{}e.hideLauncher||I(e,a);let i=null;const l=o=>{i&&clearTimeout(i),i=null;const r=e.greeting;if(!(!0===r||!1!==r&&!(o&&!1===o.greetingEnabled))||e.hideLauncher||function(e){try{return"1"===window.sessionStorage.getItem(`askly_greeting_dismissed_${e}`)}catch{return!1}}(t||"detect"))return;const s="object"==typeof r&&"number"==typeof r.delayMs?r.delayMs:o&&"number"==typeof o.greetingDelayMs?o.greetingDelayMs:3e3;i=setTimeout(()=>{x()},Math.max(0,s-400-(Date.now()-n._t))),g.push(i)};l(a);let c=!1;try{const e=`askly_conversations_${t||"detect"}`;for(let t=0;t<localStorage.length;t++){const o=localStorage.key(t)||"";if(0===o.indexOf(e)&&u(localStorage.getItem(o))){c=!0;break}}}catch{}(e=>{const t=window.requestIdleCallback;t?t(e,{timeout:4e3}):g.push(setTimeout(e,1500))})(()=>{m&&!p&&(c?x():((()=>{if(p||A||"undefined"==typeof document)return;A=!0;const e=document.createElement("link");e.rel="modulepreload",e.href=o.appUrl,document.head.appendChild(e)})(),a||w||(w=!0,fetch(`${r}/widget/config${t?`?org_id=${encodeURIComponent(t)}`:""}`).then(e=>e.ok?e.json():null).then(t=>{if(t&&m){try{sessionStorage.setItem(s,JSON.stringify(t))}catch{}if(t.disabled)return k("Disabled by configuration."),S(),n.q=null,void(m=!1);p||(y&&!e.hideLauncher&&(y.remove(),y=null,I(e,t)),l(t))}}).catch(()=>{}))))})};let E=!1;const L=t=>{if(E||!t.includePaths&&!t.excludePaths)return;E=!0;const o=()=>{if(!m||p)return;e(window.location.pathname,t.includePaths,t.excludePaths)?C||_(t):(S(),C=!1)},n=e=>{const t=history[e];history[e]=function(...e){const n=t.apply(this,e);return setTimeout(o,0),n}};n("pushState"),n("replaceState"),window.addEventListener("popstate",o)};return s.forEach(t=>{const s=(...a)=>n[t]!==s?n[t](...a):(n.q&&n.q.push([t,a]),"init"===t?((t={})=>{if(f=t,m=!0,n._t=Date.now(),t.appUrl&&(o={...o,appUrl:t.appUrl}),t.appId||t.widgetId||t.orgId||console.error("[Askly] Missing required `appId`. The widget cannot load without it."),"undefined"!=typeof window){if(h||t.autoOpen||t.userId)return h=!1,void x();if(L(t),t.customLauncherSelector&&!b){let e=!0;try{document.querySelector(t.customLauncherSelector)}catch{e=!1}e||console.warn(`[Askly] customLauncherSelector is not a valid selector: ${t.customLauncherSelector}`),b=!0,e&&document.addEventListener("click",e=>{if(!(m&&f&&f.customLauncherSelector&&n.q))return;const t=e.target;let o=null;try{o=t&&t.closest?t.closest(f.customLauncherSelector):null}catch{return}o&&("A"===o.tagName&&"#"===(o.getAttribute("href")||"#").charAt(0)&&e.preventDefault(),n.q.some(e=>"open"===e[0]||"toggle"===e[0])||n.open())})}e(window.location.pathname,t.includePaths,t.excludePaths)?_(t):k("Hidden on this path.")}})(a[0]):"reset"===t?r(v(f)):"shutdown"===t||"unmount"===t?("shutdown"===t&&r(v(f)),m=!1,S(),n.q=[]):-1!==i.indexOf(t)&&x(),"on"===t||"once"===t?()=>{n.q?n.q=n.q.filter(e=>!(e[0]===t&&e[1][0]===a[0]&&e[1][1]===a[1])):n.off(a[0],a[1])}:void 0);n[t]=s}),Object.keys(a).forEach(e=>{const t=()=>n[e]!==t?n[e]():a[e];n[e]=t}),n.ready=()=>(x(),new Promise(e=>n._r.push(e))),n._unpaint=S,n}({appUrl:p,fallbackUrl:p});return"undefined"==typeof window||h||(window.Askly=f),f});
package/dist/loader.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";function t(t,e=[],o=[]){return e.length>0?e.some(e=>t.startsWith(e)):!(o.length>0)||!o.some(e=>t.startsWith(e))}const e="askly_scope_",o={};function n(t){delete o[t];try{window.localStorage.removeItem(t)}catch{}}function a(t){const r=t||"detect",s=function(t){var e;try{const e=window.localStorage.getItem(t);if(null!==e)return e}catch{}return null!==(e=o[t])&&void 0!==e?e:null}(e+r);s&&s!==r&&a(s),n("askly_visitor_"+r),n("askly_threads_"+r);for(const t of Object.keys(o))t.includes(r)&&!t.startsWith(e)&&delete o[t];try{const t=[];for(let e=0;e<window.localStorage.length;e++){const o=window.localStorage.key(e);o&&o.startsWith(`askly_conversations_${r}`)&&t.push(o)}t.forEach(t=>window.localStorage.removeItem(t))}catch{}}const r=["init","identify","reset","shutdown","unmount","open","close","toggle","show","hide","on","off","once","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","stopVoiceInput","update","setLocale","updateTexts"],s={isOpen:!1,getUnreadCount:0,getVisitorId:""},i=["identify","open","toggle","show","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","update"],l="#0f172a",d="http://www.w3.org/2000/svg";const u=":host{all:initial}.askly-chat-button{position:fixed;bottom:var(--ob,24px);width:60px;height:60px;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;background:var(--a,"+l+");border-radius:23%;box-shadow:0 12px 32px rgba(15,23,42,.28),0 4px 10px rgba(15,23,42,.16);z-index:99999;font:28px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.shape-round{border-radius:50%}.askly-chat-button:hover{transform:translateY(-3px) scale(1.05)}.askly-chat-button:focus-visible{outline:3px solid var(--a,"+l+");outline-offset:3px}.r{right:var(--os,24px)}.l{left:var(--os,24px)}@media (max-width:600px){.askly-chat-button{bottom:var(--ob,16px)}.r{right:var(--os,16px)}.l{left:var(--os,16px)}}@media (prefers-reduced-motion:reduce){.askly-chat-button{transition:none}}";function c(t){try{const e=JSON.parse(t||"[]");return Array.isArray(e)&&e.some(t=>t&&Array.isArray(t.messages)&&t.messages.some(t=>t&&"user"===t.role))}catch{return!1}}function p(t,e){const o=t.getAttribute("data-org-server-route")||void 0,n=e=>{const o=t.getAttribute(e);return null===o?void 0:"true"===o};return{appId:e,orgServerRoute:o,organizationName:t.getAttribute("data-org-name")||void 0,position:t.getAttribute("data-position")||void 0,locale:t.getAttribute("data-locale")||void 0,hideLauncher:n("data-hide-launcher"),customLauncherSelector:t.getAttribute("data-custom-launcher-selector")||void 0,offset:(()=>{const e=t.getAttribute("data-offset-bottom"),o=t.getAttribute("data-offset-side");if(null!==e||null!==o)return{bottom:null===e||isNaN(parseInt(e))?void 0:parseInt(e),side:null===o||isNaN(parseInt(o))?void 0:parseInt(o)}})(),themeColor:t.getAttribute("data-theme-color")||void 0,theme:t.getAttribute("data-theme")||void 0,enableVoiceChat:t.getAttribute("data-enable-voice")?"true"===t.getAttribute("data-enable-voice"):void 0,voiceInput:(()=>{const e=t.getAttribute("data-voice-input");return"off"!==e&&"false"!==e&&("review"===e||"auto-send"===e?e:void 0)})(),welcomeMessage:t.getAttribute("data-welcome-message")||void 0,placeholderText:t.getAttribute("data-placeholder-text")||void 0,organizationLogo:t.getAttribute("data-logo")||void 0,buttonIcon:t.getAttribute("data-button-icon")||void 0,buttonShape:t.getAttribute("data-button-shape")||void 0,autoOpen:n("data-auto-open"),greeting:(()=>{if("false"===t.getAttribute("data-greeting"))return!1;const e=t.getAttribute("data-greeting-message")||void 0,o=t.getAttribute("data-greeting-delay"),a=null===o||isNaN(parseInt(o))?void 0:parseInt(o);return void 0!==e||void 0!==a?{message:e,delayMs:a}:n("data-greeting")})(),showTimestamp:n("data-show-timestamp"),soundEnabled:n("data-sound-enabled"),debug:n("data-debug"),soundVolume:t.getAttribute("data-sound-volume")?parseFloat(t.getAttribute("data-sound-volume")):void 0,poweredBy:t.getAttribute("data-powered-by")||void 0,userId:t.getAttribute("data-user-id")||void 0,timestamp:t.getAttribute("data-timestamp")?parseInt(t.getAttribute("data-timestamp")):void 0,signature:t.getAttribute("data-signature")||void 0,turnstileSiteKey:t.getAttribute("data-turnstile-sitekey")||void 0,excludePaths:t.getAttribute("data-exclude-paths")?t.getAttribute("data-exclude-paths").split(",").map(t=>t.trim()):void 0,includePaths:t.getAttribute("data-include-paths")?t.getAttribute("data-include-paths").split(",").map(t=>t.trim()):void 0}}const g="3.2.0",h=`https://unpkg.com/@askly/widget@${g}/dist/app/askly-app.js`,m=window,f=function(){const t=document.currentScript;if(t&&t.src)return t;const e=Array.from(document.querySelectorAll("script[src]")).filter(t=>/(^|\/)(widget|loader)\.js([?#]|$)/.test(t.src));return e.find(t=>t.hasAttribute("data-app-id")||t.hasAttribute("data-widget-id")||t.hasAttribute("data-org-id"))||e[0]||null}();let b;var y,v,w;m.Askly&&"function"==typeof m.Askly.init?(b=m.Askly,3===b.v&&b.q||console.warn("[Askly] The widget script is included twice; the second copy is ignored.")):(b=function(e){let o=e;const n={q:[],v:3,_r:[],_t:0};let p=null,g=!1,h=null,m=!1,f=null,b=[],y=!1,v=!1;const w=(...t)=>{h&&h.debug&&console.log("[Askly]",...t)},A=t=>t&&(t.appId||t.widgetId||t.orgId)||"detect",k=()=>{b.forEach(clearTimeout),b=[],f&&f.remove(),f=null},S=()=>{if(!h)return g=!0,Promise.resolve();if(!p){const t=(e,o)=>(w("Loading the widget from",e),import(/* webpackIgnore: true */ /* @vite-ignore */e).catch(n=>{if(o&&o!==e)return console.warn(`[Askly] Could not load the widget from ${e}; trying ${o}.`),t(o);p=null,k(),console.error("[Askly] The widget could not be loaded:",n)}));p=t(o.appUrl,o.fallbackUrl)}return p};let x=!1;const I=(t,e)=>{if("undefined"==typeof document||f)return;if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>{!m||f||p||_(t)},{once:!0});const o=t.themeColor||e&&e.themeColor||l,a=t.buttonShape||e&&e.buttonShape||"round";f=document.createElement("askly-loader");const r=f.attachShadow({mode:"open"});let s=!1;try{const t=new CSSStyleSheet;t.replaceSync(u),r.adoptedStyleSheets=[t],s=!0}catch{}if(!s){const t=document.createElement("style");t.textContent=u,r.appendChild(t)}const i=document.createElement("button");i.className=`askly-chat-button shape-${a} ${"left"===t.position?"l":"r"}`,i.type="button",i.setAttribute("aria-label","Open support chat"),i.setAttribute("aria-expanded","false"),i.setAttribute("lang","en"),i.title="Open support chat",i.style.setProperty("--a",`var(--askly-brand, ${o})`),t.offset&&"number"==typeof t.offset.bottom&&i.style.setProperty("--ob",`${t.offset.bottom}px`),t.offset&&"number"==typeof t.offset.side&&i.style.setProperty("--os",`${t.offset.side}px`),t.buttonIcon&&"💬"!==t.buttonIcon?i.textContent=t.buttonIcon:i.appendChild(function(){const t=document.createElementNS(d,"svg");t.setAttribute("width","32"),t.setAttribute("height","32"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none");const e=document.createElementNS(d,"g");e.setAttribute("transform","translate(24 0) scale(-1 1)");const o=document.createElementNS(d,"path");return o.setAttribute("fill","currentColor"),o.setAttribute("fill-rule","evenodd"),o.setAttribute("clip-rule","evenodd"),o.setAttribute("d","M16 2H8C4 2 2 4 2 8V21C2 21.55 2.45 22 3 22H16C20 22 22 20 22 16V8C22 4 20 2 16 2ZM15.5 12.75H8.5C8.09 12.75 7.75 12.41 7.75 12C7.75 11.59 8.09 11.25 8.5 11.25H15.5C15.91 11.25 16.25 11.59 16.25 12C16.25 12.41 15.91 12.75 15.5 12.75Z"),e.appendChild(o),t.appendChild(e),t}()),i.addEventListener("mouseenter",()=>{S()}),i.addEventListener("focus",()=>{S()}),i.addEventListener("click",()=>{n.open()}),r.appendChild(i),document.body.appendChild(f)};let C=!1;const _=t=>{C=!0;const e=t.appId||t.widgetId||t.orgId,a=(t.orgServerRoute||"https://api.askly.co.in/api/messages/widget").replace(/\/widget$/,""),r=`askly_config_${e||"detect"}`;let s=null;try{s=JSON.parse(sessionStorage.getItem(r)||"null")}catch{}t.hideLauncher||I(t,s);let i=null;const l=o=>{i&&clearTimeout(i),i=null;const a=t.greeting;if(!0!==a&&(!1===a||o&&!1===o.greetingEnabled)||t.hideLauncher||function(t){try{return"1"===window.sessionStorage.getItem(`askly_greeting_dismissed_${t}`)}catch{return!1}}(e||"detect"))return;const r="object"==typeof a&&"number"==typeof a.delayMs?a.delayMs:o&&"number"==typeof o.greetingDelayMs?o.greetingDelayMs:3e3;i=setTimeout(()=>{S()},Math.max(0,r-400-(Date.now()-n._t))),b.push(i)};l(s);let d=!1;try{const t=`askly_conversations_${e||"detect"}`;for(let e=0;e<localStorage.length;e++){const o=localStorage.key(e)||"";if(0===o.indexOf(t)&&c(localStorage.getItem(o))){d=!0;break}}}catch{}(t=>{const e=window.requestIdleCallback;e?e(t,{timeout:4e3}):b.push(setTimeout(t,1500))})(()=>{m&&!p&&(d?S():((()=>{if(p||x||"undefined"==typeof document)return;x=!0;const t=document.createElement("link");t.rel="modulepreload",t.href=o.appUrl,document.head.appendChild(t)})(),s||y||(y=!0,fetch(`${a}/widget/config${e?`?org_id=${encodeURIComponent(e)}`:""}`).then(t=>t.ok?t.json():null).then(e=>{if(e&&m){try{sessionStorage.setItem(r,JSON.stringify(e))}catch{}if(e.disabled)return w("Disabled by configuration."),k(),n.q=null,void(m=!1);p||(f&&!t.hideLauncher&&(f.remove(),f=null,I(t,e)),l(e))}}).catch(()=>{}))))})};let E=!1;const $=e=>{if(E||!e.includePaths&&!e.excludePaths)return;E=!0;const o=()=>{m&&!p&&(t(window.location.pathname,e.includePaths,e.excludePaths)?C||_(e):(k(),C=!1))},n=t=>{const e=history[t];history[t]=function(...t){const n=e.apply(this,t);return setTimeout(o,0),n}};n("pushState"),n("replaceState"),window.addEventListener("popstate",o)};return r.forEach(e=>{const r=(...s)=>n[e]!==r?n[e](...s):(n.q&&n.q.push([e,s]),"init"===e?((e={})=>{if(h=e,m=!0,n._t=Date.now(),e.appUrl&&(o={...o,appUrl:e.appUrl}),e.appId||e.widgetId||e.orgId||console.error("[Askly] Missing required `appId`. The widget cannot load without it."),"undefined"!=typeof window){if(g||e.autoOpen||e.userId)return g=!1,void S();if($(e),e.customLauncherSelector&&!v){let t=!0;try{document.querySelector(e.customLauncherSelector)}catch{t=!1}t||console.warn(`[Askly] customLauncherSelector is not a valid selector: ${e.customLauncherSelector}`),v=!0,t&&document.addEventListener("click",t=>{if(!(m&&h&&h.customLauncherSelector&&n.q))return;const e=t.target;let o=null;try{o=e&&e.closest?e.closest(h.customLauncherSelector):null}catch{return}o&&("A"===o.tagName&&"#"===(o.getAttribute("href")||"#").charAt(0)&&t.preventDefault(),n.q.some(t=>"open"===t[0]||"toggle"===t[0])||n.open())})}t(window.location.pathname,e.includePaths,e.excludePaths)?_(e):w("Hidden on this path.")}})(s[0]):"reset"===e?a(A(h)):"shutdown"===e||"unmount"===e?("shutdown"===e&&a(A(h)),m=!1,k(),n.q=[]):-1!==i.indexOf(e)&&S(),"on"===e||"once"===e?()=>{n.q?n.q=n.q.filter(t=>!(t[0]===e&&t[1][0]===s[0]&&t[1][1]===s[1])):n.off(s[0],s[1])}:void 0);n[e]=r}),Object.keys(s).forEach(t=>{const e=()=>n[t]!==e?n[t]():s[t];n[t]=e}),n.ready=()=>(S(),new Promise(t=>n._r.push(t))),n._unpaint=k,n}({appUrl:(y=f&&f.src,v=g,w=h,y?y.replace(/[?#].*$/,"").replace(/[^/]*$/,"").replace(/(\/@askly\/widget)(@[^/]*)?(\/)/,(t,e,o,n)=>`${e}@${v}${n}`)+"app/askly-app.js":w),fallbackUrl:h}),m.Askly=b);const A=function(t){if(t)return t.getAttribute("data-app-id")||t.getAttribute("data-widget-id")||t.getAttribute("data-org-id")||void 0}(f);f&&A&&b.init(p(f,A)),m.customElements&&!m.customElements.get("askly-chat")&&m.customElements.define("askly-chat",class extends HTMLElement{constructor(){super(...arguments),this._gone=null}connectedCallback(){if(this._gone)return clearTimeout(this._gone),void(this._gone=null);const t=this.getAttribute("app-id");if(!t)return;const e=document.createElement("script");Array.from(this.attributes).forEach(t=>e.setAttribute(`data-${t.name}`,t.value)),m.Askly.init(p(e,t))}disconnectedCallback(){this._gone=setTimeout(()=>{this._gone=null,m.Askly.unmount()},0)}})}();
1
+ !function(){"use strict";function t(t,e=[],o=[]){return e.length>0?e.some(e=>t.startsWith(e)):!(o.length>0)||!o.some(e=>t.startsWith(e))}const e="askly_scope_",o={};function n(t){delete o[t];try{window.localStorage.removeItem(t)}catch{}}function a(t){const r=t||"detect",s=function(t){var e;try{const e=window.localStorage.getItem(t);if(null!==e)return e}catch{}return null!==(e=o[t])&&void 0!==e?e:null}(e+r);s&&s!==r&&a(s),n("askly_visitor_"+r),n("askly_threads_"+r);for(const t of Object.keys(o))t.includes(r)&&!t.startsWith(e)&&delete o[t];try{const t=[];for(let e=0;e<window.localStorage.length;e++){const o=window.localStorage.key(e);o&&o.startsWith(`askly_conversations_${r}`)&&t.push(o)}t.forEach(t=>window.localStorage.removeItem(t))}catch{}}const r=["init","identify","reset","shutdown","unmount","open","close","toggle","show","hide","on","off","once","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","stopVoiceInput","update","setLocale","updateTexts"],s={isOpen:!1,getUnreadCount:0,getVisitorId:""},i=["identify","open","toggle","show","showSpace","showNewMessage","sendMessage","showArticle","startVoiceInput","update"],l="#0f172a",d="http://www.w3.org/2000/svg";const u=":host{all:initial}.askly-chat-button{position:fixed;bottom:var(--ob,24px);width:60px;height:60px;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;background:var(--a,"+l+");border-radius:23%;box-shadow:0 12px 32px rgba(15,23,42,.28),0 4px 10px rgba(15,23,42,.16);z-index:99999;font:28px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.shape-round{border-radius:50%}.askly-chat-button:hover{transform:translateY(-3px) scale(1.05)}.askly-chat-button:focus-visible{outline:3px solid var(--a,"+l+");outline-offset:3px}.r{right:var(--os,24px)}.l{left:var(--os,24px)}@media (max-width:600px){.askly-chat-button{bottom:var(--ob,16px)}.r{right:var(--os,16px)}.l{left:var(--os,16px)}}@media (prefers-reduced-motion:reduce){.askly-chat-button{transition:none}}";function c(t){try{const e=JSON.parse(t||"[]");return Array.isArray(e)&&e.some(t=>t&&Array.isArray(t.messages)&&t.messages.some(t=>t&&"user"===t.role))}catch{return!1}}function p(t,e){const o=t.getAttribute("data-org-server-route")||void 0,n=e=>{const o=t.getAttribute(e);return null===o?void 0:"true"===o};return{appId:e,orgServerRoute:o,organizationName:t.getAttribute("data-org-name")||void 0,position:t.getAttribute("data-position")||void 0,locale:t.getAttribute("data-locale")||void 0,hideLauncher:n("data-hide-launcher"),customLauncherSelector:t.getAttribute("data-custom-launcher-selector")||void 0,offset:(()=>{const e=t.getAttribute("data-offset-bottom"),o=t.getAttribute("data-offset-side");if(null!==e||null!==o)return{bottom:null===e||isNaN(parseInt(e))?void 0:parseInt(e),side:null===o||isNaN(parseInt(o))?void 0:parseInt(o)}})(),themeColor:t.getAttribute("data-theme-color")||void 0,theme:t.getAttribute("data-theme")||void 0,enableVoiceChat:t.getAttribute("data-enable-voice")?"true"===t.getAttribute("data-enable-voice"):void 0,voiceInput:(()=>{const e=t.getAttribute("data-voice-input");return"off"!==e&&"false"!==e&&("review"===e||"auto-send"===e?e:void 0)})(),welcomeMessage:t.getAttribute("data-welcome-message")||void 0,placeholderText:t.getAttribute("data-placeholder-text")||void 0,organizationLogo:t.getAttribute("data-logo")||void 0,buttonIcon:t.getAttribute("data-button-icon")||void 0,buttonShape:t.getAttribute("data-button-shape")||void 0,autoOpen:n("data-auto-open"),greeting:(()=>{if("false"===t.getAttribute("data-greeting"))return!1;const e=t.getAttribute("data-greeting-message")||void 0,o=t.getAttribute("data-greeting-delay"),a=null===o||isNaN(parseInt(o))?void 0:parseInt(o);return void 0!==e||void 0!==a?{message:e,delayMs:a}:n("data-greeting")})(),showTimestamp:n("data-show-timestamp"),soundEnabled:n("data-sound-enabled"),debug:n("data-debug"),soundVolume:t.getAttribute("data-sound-volume")?parseFloat(t.getAttribute("data-sound-volume")):void 0,poweredBy:t.getAttribute("data-powered-by")||void 0,userId:t.getAttribute("data-user-id")||void 0,timestamp:t.getAttribute("data-timestamp")?parseInt(t.getAttribute("data-timestamp")):void 0,signature:t.getAttribute("data-signature")||void 0,turnstileSiteKey:t.getAttribute("data-turnstile-sitekey")||void 0,excludePaths:t.getAttribute("data-exclude-paths")?t.getAttribute("data-exclude-paths").split(",").map(t=>t.trim()):void 0,includePaths:t.getAttribute("data-include-paths")?t.getAttribute("data-include-paths").split(",").map(t=>t.trim()):void 0}}const g="3.4.0",h=`https://unpkg.com/@askly/widget@${g}/dist/app/askly-app.js`,m=window,f=function(){const t=document.currentScript;if(t&&t.src)return t;const e=Array.from(document.querySelectorAll("script[src]")).filter(t=>/(^|\/)(widget|loader)\.js([?#]|$)/.test(t.src));return e.find(t=>t.hasAttribute("data-app-id")||t.hasAttribute("data-widget-id")||t.hasAttribute("data-org-id"))||e[0]||null}();let b;var y,v,w;m.Askly&&"function"==typeof m.Askly.init?(b=m.Askly,3===b.v&&b.q||console.warn("[Askly] The widget script is included twice; the second copy is ignored.")):(b=function(e){let o=e;const n={q:[],v:3,_r:[],_t:0};let p=null,g=!1,h=null,m=!1,f=null,b=[],y=!1,v=!1;const w=(...t)=>{h&&h.debug&&console.log("[Askly]",...t)},A=t=>t&&(t.appId||t.widgetId||t.orgId)||"detect",k=()=>{b.forEach(clearTimeout),b=[],f&&f.remove(),f=null},S=()=>{if(!h)return g=!0,Promise.resolve();if(!p){const t=(e,o)=>(w("Loading the widget from",e),import(/* webpackIgnore: true */ /* @vite-ignore */e).catch(n=>{if(o&&o!==e)return console.warn(`[Askly] Could not load the widget from ${e}; trying ${o}.`),t(o);p=null,k(),console.error("[Askly] The widget could not be loaded:",n)}));p=t(o.appUrl,o.fallbackUrl)}return p};let x=!1;const I=(t,e)=>{if("undefined"==typeof document||f)return;if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>{!m||f||p||_(t)},{once:!0});const o=t.themeColor||e&&e.themeColor||l,a=t.buttonShape||e&&e.buttonShape||"round";f=document.createElement("askly-loader");const r=f.attachShadow({mode:"open"});let s=!1;try{const t=new CSSStyleSheet;t.replaceSync(u),r.adoptedStyleSheets=[t],s=!0}catch{}if(!s){const t=document.createElement("style");t.textContent=u,r.appendChild(t)}const i=document.createElement("button");i.className=`askly-chat-button shape-${a} ${"left"===t.position?"l":"r"}`,i.type="button",i.setAttribute("aria-label","Open support chat"),i.setAttribute("aria-expanded","false"),i.setAttribute("lang","en"),i.title="Open support chat",i.style.setProperty("--a",`var(--askly-brand, ${o})`),t.offset&&"number"==typeof t.offset.bottom&&i.style.setProperty("--ob",`${t.offset.bottom}px`),t.offset&&"number"==typeof t.offset.side&&i.style.setProperty("--os",`${t.offset.side}px`),t.buttonIcon&&"💬"!==t.buttonIcon?i.textContent=t.buttonIcon:i.appendChild(function(){const t=document.createElementNS(d,"svg");t.setAttribute("width","32"),t.setAttribute("height","32"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none");const e=document.createElementNS(d,"g");e.setAttribute("transform","translate(24 0) scale(-1 1)");const o=document.createElementNS(d,"path");return o.setAttribute("fill","currentColor"),o.setAttribute("fill-rule","evenodd"),o.setAttribute("clip-rule","evenodd"),o.setAttribute("d","M16 2H8C4 2 2 4 2 8V21C2 21.55 2.45 22 3 22H16C20 22 22 20 22 16V8C22 4 20 2 16 2ZM15.5 12.75H8.5C8.09 12.75 7.75 12.41 7.75 12C7.75 11.59 8.09 11.25 8.5 11.25H15.5C15.91 11.25 16.25 11.59 16.25 12C16.25 12.41 15.91 12.75 15.5 12.75Z"),e.appendChild(o),t.appendChild(e),t}()),i.addEventListener("mouseenter",()=>{S()}),i.addEventListener("focus",()=>{S()}),i.addEventListener("click",()=>{n.open()}),r.appendChild(i),document.body.appendChild(f)};let C=!1;const _=t=>{C=!0;const e=t.appId||t.widgetId||t.orgId,a=(t.orgServerRoute||"https://api.askly.co.in/api/messages/widget").replace(/\/widget$/,""),r=`askly_config_${e||"detect"}`;let s=null;try{s=JSON.parse(sessionStorage.getItem(r)||"null")}catch{}t.hideLauncher||I(t,s);let i=null;const l=o=>{i&&clearTimeout(i),i=null;const a=t.greeting;if(!0!==a&&(!1===a||o&&!1===o.greetingEnabled)||t.hideLauncher||function(t){try{return"1"===window.sessionStorage.getItem(`askly_greeting_dismissed_${t}`)}catch{return!1}}(e||"detect"))return;const r="object"==typeof a&&"number"==typeof a.delayMs?a.delayMs:o&&"number"==typeof o.greetingDelayMs?o.greetingDelayMs:3e3;i=setTimeout(()=>{S()},Math.max(0,r-400-(Date.now()-n._t))),b.push(i)};l(s);let d=!1;try{const t=`askly_conversations_${e||"detect"}`;for(let e=0;e<localStorage.length;e++){const o=localStorage.key(e)||"";if(0===o.indexOf(t)&&c(localStorage.getItem(o))){d=!0;break}}}catch{}(t=>{const e=window.requestIdleCallback;e?e(t,{timeout:4e3}):b.push(setTimeout(t,1500))})(()=>{m&&!p&&(d?S():((()=>{if(p||x||"undefined"==typeof document)return;x=!0;const t=document.createElement("link");t.rel="modulepreload",t.href=o.appUrl,document.head.appendChild(t)})(),s||y||(y=!0,fetch(`${a}/widget/config${e?`?org_id=${encodeURIComponent(e)}`:""}`).then(t=>t.ok?t.json():null).then(e=>{if(e&&m){try{sessionStorage.setItem(r,JSON.stringify(e))}catch{}if(e.disabled)return w("Disabled by configuration."),k(),n.q=null,void(m=!1);p||(f&&!t.hideLauncher&&(f.remove(),f=null,I(t,e)),l(e))}}).catch(()=>{}))))})};let E=!1;const $=e=>{if(E||!e.includePaths&&!e.excludePaths)return;E=!0;const o=()=>{m&&!p&&(t(window.location.pathname,e.includePaths,e.excludePaths)?C||_(e):(k(),C=!1))},n=t=>{const e=history[t];history[t]=function(...t){const n=e.apply(this,t);return setTimeout(o,0),n}};n("pushState"),n("replaceState"),window.addEventListener("popstate",o)};return r.forEach(e=>{const r=(...s)=>n[e]!==r?n[e](...s):(n.q&&n.q.push([e,s]),"init"===e?((e={})=>{if(h=e,m=!0,n._t=Date.now(),e.appUrl&&(o={...o,appUrl:e.appUrl}),e.appId||e.widgetId||e.orgId||console.error("[Askly] Missing required `appId`. The widget cannot load without it."),"undefined"!=typeof window){if(g||e.autoOpen||e.userId)return g=!1,void S();if($(e),e.customLauncherSelector&&!v){let t=!0;try{document.querySelector(e.customLauncherSelector)}catch{t=!1}t||console.warn(`[Askly] customLauncherSelector is not a valid selector: ${e.customLauncherSelector}`),v=!0,t&&document.addEventListener("click",t=>{if(!(m&&h&&h.customLauncherSelector&&n.q))return;const e=t.target;let o=null;try{o=e&&e.closest?e.closest(h.customLauncherSelector):null}catch{return}o&&("A"===o.tagName&&"#"===(o.getAttribute("href")||"#").charAt(0)&&t.preventDefault(),n.q.some(t=>"open"===t[0]||"toggle"===t[0])||n.open())})}t(window.location.pathname,e.includePaths,e.excludePaths)?_(e):w("Hidden on this path.")}})(s[0]):"reset"===e?a(A(h)):"shutdown"===e||"unmount"===e?("shutdown"===e&&a(A(h)),m=!1,k(),n.q=[]):-1!==i.indexOf(e)&&S(),"on"===e||"once"===e?()=>{n.q?n.q=n.q.filter(t=>!(t[0]===e&&t[1][0]===s[0]&&t[1][1]===s[1])):n.off(s[0],s[1])}:void 0);n[e]=r}),Object.keys(s).forEach(t=>{const e=()=>n[t]!==e?n[t]():s[t];n[t]=e}),n.ready=()=>(S(),new Promise(t=>n._r.push(t))),n._unpaint=k,n}({appUrl:(y=f&&f.src,v=g,w=h,y?y.replace(/[?#].*$/,"").replace(/[^/]*$/,"").replace(/(\/@askly\/widget)(@[^/]*)?(\/)/,(t,e,o,n)=>`${e}@${v}${n}`)+"app/askly-app.js":w),fallbackUrl:h}),m.Askly=b);const A=function(t){if(t)return t.getAttribute("data-app-id")||t.getAttribute("data-widget-id")||t.getAttribute("data-org-id")||void 0}(f);f&&A&&b.init(p(f,A)),m.customElements&&!m.customElements.get("askly-chat")&&m.customElements.define("askly-chat",class extends HTMLElement{constructor(){super(...arguments),this._gone=null}connectedCallback(){if(this._gone)return clearTimeout(this._gone),void(this._gone=null);const t=this.getAttribute("app-id");if(!t)return;const e=document.createElement("script");Array.from(this.attributes).forEach(t=>e.setAttribute(`data-${t.name}`,t.value)),m.Askly.init(p(e,t))}disconnectedCallback(){this._gone=setTimeout(()=>{this._gone=null,m.Askly.unmount()},0)}})}();
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Attachments on messages. A file is uploaded to the server when it is picked (with
3
+ * progress, see ./upload.ts, loaded on first use), then named by the URL it got back when
4
+ * the message is sent; the server stores it on the message with the name, type and size
5
+ * from its own upload record.
6
+ */
7
+ import type { Attachment } from "./types";
8
+ export declare const MAX_ATTACHMENTS = 5;
9
+ export declare const MAX_ATTACHMENT_BYTES: number;
10
+ /** A file the visitor picked, on its way up or ready to send. */
11
+ export interface PendingAttachment {
12
+ id: string;
13
+ file: File;
14
+ name: string;
15
+ type: string;
16
+ size: number;
17
+ /** 0–100 while uploading. */
18
+ progress: number;
19
+ /** Set once the server has it. */
20
+ url?: string;
21
+ error?: "too-large" | "rejected" | "failed";
22
+ /** Object URL for an image thumbnail; revoked when the entry goes. */
23
+ previewUrl?: string;
24
+ }
25
+ export declare const isImage: (type: string | undefined) => boolean;
26
+ export declare function formatSize(bytes: number, locale?: string): string;
27
+ /** The attachment as the widget API returns it. */
28
+ export declare function toAttachment(raw: any): Attachment | null;
@@ -17,6 +17,12 @@ export interface AsklyEventMap {
17
17
  "message:sent": {
18
18
  text: string;
19
19
  conversationId: string;
20
+ attachments?: {
21
+ url: string;
22
+ name: string;
23
+ type: string;
24
+ size: number;
25
+ }[];
20
26
  };
21
27
  /** A reply arrived, from the AI or from one of your agents. */
22
28
  "message:received": {
@@ -31,6 +37,18 @@ export interface AsklyEventMap {
31
37
  conversationId: string;
32
38
  status?: number;
33
39
  };
40
+ /** The visitor rated a reply (`rating` null when a rating was withdrawn). */
41
+ "message:feedback": {
42
+ conversationId: string;
43
+ messageId?: string;
44
+ rating: "up" | "down" | null;
45
+ comment?: string;
46
+ };
47
+ /** The visitor answered "was this article helpful?". */
48
+ "article:feedback": {
49
+ articleId: string;
50
+ rating: "yes" | "somewhat" | "no";
51
+ };
34
52
  /** A conversation was closed, taken over by an agent, or reopened. */
35
53
  "conversation:status": {
36
54
  conversationId: string;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The help centre as the widget reads it (servers that list the `help_center` capability),
3
+ * and business hours (servers that list `business_hours`).
4
+ */
5
+ import type { Article, HelpCollection } from "./types";
6
+ /** One article summary or body as GET /widget/help returns it. */
7
+ export declare function toHelpArticle(raw: any, collections: HelpCollection[]): Article | null;
8
+ export declare function toHelpCollection(raw: any): HelpCollection | null;
9
+ /** The top-level ancestor of a collection id (itself when it has no parent or is unknown). */
10
+ export declare function topLevelCollection(id: string, collections: HelpCollection[]): string;
11
+ export interface HoursInterval {
12
+ start: string;
13
+ end: string;
14
+ }
15
+ export interface BusinessHours {
16
+ timezone: string;
17
+ schedule: Record<string, HoursInterval[]>;
18
+ outsideMessage?: string | null;
19
+ open: boolean;
20
+ nextChangeAt?: string | null;
21
+ }
22
+ export declare function toBusinessHours(raw: any): BusinessHours | null;
23
+ /**
24
+ * Whether a person is around now, and when that changes, from the schedule. Falls back to
25
+ * what the server said when the timezone cannot be read in this browser.
26
+ */
27
+ export declare function hoursState(hours: BusinessHours, now?: Date): {
28
+ open: boolean;
29
+ nextChange: Date | null;
30
+ };
31
+ /** "Mon 09:00" style, in the visitor's locale and the visitor's own timezone. */
32
+ export declare function formatNextOpen(at: Date, locale: string): string;
@@ -11,6 +11,11 @@ export interface ServerMessage {
11
11
  timestamp?: string | null;
12
12
  message_id?: string | null;
13
13
  format?: string | null;
14
+ attachments?: any[] | null;
15
+ feedback?: {
16
+ rating?: string | null;
17
+ comment?: string | null;
18
+ } | null;
14
19
  }
15
20
  /** One row of GET /widget/conversations. */
16
21
  export interface ServerThread {