@wexio/messenger-widget-react 1.7.9 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -3
- package/dist/widget-react.d.ts +7 -0
- package/dist/widget-react.js +1 -176
- package/dist/widget-react.licenses.txt +0 -3602
- package/package.json +2 -3
- package/CHANGELOG.md +0 -967
- package/dist/widget-react--SnHxPOY.js +0 -2
- package/dist/widget-react-0MqeP0VG2.js +0 -201
- package/dist/widget-react-12srXq362.js +0 -201
- package/dist/widget-react-13R6Vrt62.js +0 -201
- package/dist/widget-react-1a5mHYv6.js +0 -4
- package/dist/widget-react-5vmcmqij.js +0 -2
- package/dist/widget-react-8gKsfB0D.js +0 -2
- package/dist/widget-react-B1v9X8dK2.js +0 -201
- package/dist/widget-react-B4O9LryX.js +0 -2
- package/dist/widget-react-BAzh_M3R.js +0 -201
- package/dist/widget-react-BDwkTnhP.js +0 -2
- package/dist/widget-react-BEeSy_sM.js +0 -201
- package/dist/widget-react-BJLMVdT8.js +0 -2
- package/dist/widget-react-BK8heNFR.js +0 -2
- package/dist/widget-react-BKZZeBk72.js +0 -201
- package/dist/widget-react-BXlRglvP2.js +0 -2
- package/dist/widget-react-BZ7sDBzB.js +0 -2
- package/dist/widget-react-BjrztiIA.js +0 -2
- package/dist/widget-react-BpSJW2vD2.js +0 -201
- package/dist/widget-react-BxEMz2N0.js +0 -2
- package/dist/widget-react-Bz5u8QHz.js +0 -109
- package/dist/widget-react-BzlFOEiU2.js +0 -2
- package/dist/widget-react-C1rXlCoj.js +0 -201
- package/dist/widget-react-C1vTza-V2.js +0 -201
- package/dist/widget-react-C2_GJN-2.js +0 -2
- package/dist/widget-react-C3uItBwG.js +0 -140
- package/dist/widget-react-C6OZyIh32.js +0 -201
- package/dist/widget-react-C78gQza62.js +0 -201
- package/dist/widget-react-C7ABw9U-.js +0 -2
- package/dist/widget-react-CCfIguE3.js +0 -2
- package/dist/widget-react-CESpzeFW.js +0 -2
- package/dist/widget-react-CO_-SXaO.js +0 -2
- package/dist/widget-react-CTr72oJP2.js +0 -2
- package/dist/widget-react-CVu0iQzo.js +0 -2
- package/dist/widget-react-CgvtA8Ek.js +0 -201
- package/dist/widget-react-ChDwJoyJ.js +0 -10
- package/dist/widget-react-Ci-9Gtq-2.js +0 -2
- package/dist/widget-react-CiXpsVM3.js +0 -2
- package/dist/widget-react-Cil8Ajlh.js +0 -201
- package/dist/widget-react-CkrkZ3pp.js +0 -2
- package/dist/widget-react-CrWgGrOv2.js +0 -2
- package/dist/widget-react-Cw8StXTV2.js +0 -201
- package/dist/widget-react-CxTI2WNr.js +0 -201
- package/dist/widget-react-Cx_utOCH.js +0 -2
- package/dist/widget-react-D-bgEOgc.js +0 -292
- package/dist/widget-react-D3JyG2-s.js +0 -2
- package/dist/widget-react-D71FBbwd.js +0 -2
- package/dist/widget-react-D8sZCT6W.js +0 -2
- package/dist/widget-react-DCnPzcmJ2.js +0 -109
- package/dist/widget-react-DFBUOrVn2.js +0 -2
- package/dist/widget-react-DFQYM8pj.js +0 -2
- package/dist/widget-react-DIvxQOfe.js +0 -4
- package/dist/widget-react-DJTgpBXp.js +0 -109
- package/dist/widget-react-DJczk-Ax.js +0 -2
- package/dist/widget-react-DLK0giQJ2.js +0 -201
- package/dist/widget-react-DPf6mDAF2.js +0 -201
- package/dist/widget-react-DR2EqmbG.js +0 -2
- package/dist/widget-react-DR9wD8RF2.js +0 -2
- package/dist/widget-react-DSej45hO2.js +0 -2
- package/dist/widget-react-DV3BZAN0.js +0 -2
- package/dist/widget-react-DVbuLGRg.js +0 -163
- package/dist/widget-react-DdIv5LKJ2.js +0 -2
- package/dist/widget-react-DpT7-wmd.js +0 -2
- package/dist/widget-react-Ds-6CsP4.js +0 -7
- package/dist/widget-react-DtxeNDUn.js +0 -2
- package/dist/widget-react-Dy2T3sIZ2.js +0 -201
- package/dist/widget-react-DyEgiVbP.js +0 -2
- package/dist/widget-react-DySiCebV.js +0 -2
- package/dist/widget-react-Fou9JP7u.js +0 -201
- package/dist/widget-react-G5Axrzd4.js +0 -2
- package/dist/widget-react-JRr_KL3e.js +0 -2
- package/dist/widget-react-RFGjueTQ.js +0 -201
- package/dist/widget-react-RWR7XGaa.js +0 -2
- package/dist/widget-react-SvlXgmVw.js +0 -2
- package/dist/widget-react-YOrK-1WI2.js +0 -201
- package/dist/widget-react-_QsYqFeh.js +0 -2
- package/dist/widget-react-bEpDN5aA2.js +0 -201
- package/dist/widget-react-bxGcWjbs.js +0 -2
- package/dist/widget-react-dWaXqKR32.js +0 -2
- package/dist/widget-react-iwANUtnB.js +0 -201
- package/dist/widget-react-oMWtXf4y.js +0 -2
- package/dist/widget-react-tvX8XSZD.js +0 -201
- package/dist/widget-react-uWEOH9Lh.js +0 -201
- package/dist/widget-react-x1O7Aw-0.js +0 -2
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={sender:`Gaia`,preview:`Bonjour 👋 Merci de nous avoir écrit. Je reviens vers vous très vite…`,ageLabel:`4 h`},t={"demo-news-1":{title:`Pioneer 2026 : réservez la date`,excerpt:`Nous revenons à San Francisco le 8 octobre. Ouverture des portes à 9 h, keynote à 10 h.`,body:`## À quoi s'attendre
|
|
2
|
-
|
|
3
|
-
La keynote de cette année porte sur ce que nous avons livré en toute transparence et sur ce qui arrive. Des démos en direct, pas de diaporama.
|
|
4
|
-
|
|
5
|
-
- **La feuille de route de Gaia** - où ira notre IA au cours des deux prochains trimestres.
|
|
6
|
-
- **Témoignages clients** - trois équipes racontent comment elles ont divisé par deux leur temps de première réponse.
|
|
7
|
-
- **Ateliers pratiques** - venez avec un ordinateur portable et construisez un flow avec nos ingénieurs.
|
|
8
|
-
|
|
9
|
-
## Comment venir
|
|
10
|
-
|
|
11
|
-
Le lieu est le Pier 27 Cruise Terminal, juste sur l'Embarcadero. La station BART la plus proche est Embarcadero, à 12 minutes à pied le long de l'eau.
|
|
12
|
-
|
|
13
|
-
## Billets
|
|
14
|
-
|
|
15
|
-
Les places en prévente sont limitées et ouvriront la semaine prochaine. Les clients existants passent en premier, surveillez donc votre boîte de réception.
|
|
16
|
-
|
|
17
|
-
> Vous ne pouvez pas venir ? La keynote est diffusée en direct et les replays seront ici le soir même.`},"demo-news-2":{title:`Ce qui est sorti en avril`,excerpt:`Trois nouveaux déclencheurs d'automatisation et une recherche dans la boîte de réception bien plus rapide.`,body:`<p>Avril a été un grand mois. Voici tout ce qui est sorti, en un coup d'œil :</p>
|
|
18
|
-
<table>
|
|
19
|
-
<thead><tr><th>Domaine</th><th>Ce qui change</th><th>Pourquoi c'est important</th></tr></thead>
|
|
20
|
-
<tbody>
|
|
21
|
-
<tr><td>Recherche dans la boîte</td><td>Résultats instantanés pendant la saisie</td><td>50 000 conversations, en moins de 100 ms</td></tr>
|
|
22
|
-
<tr><td>Automatisation</td><td>Trois nouveaux déclencheurs</td><td>Panier abandonné, page revisitée, visiteur silencieux</td></tr>
|
|
23
|
-
<tr><td>Éditeur</td><td>Le brouillon survit à un changement d'onglet</td><td>Fini les réponses à moitié tapées perdues</td></tr>
|
|
24
|
-
<tr><td>Mode sombre</td><td>Plus de flash blanc au premier affichage</td><td>Chargement plus propre sur les sites sombres</td></tr>
|
|
25
|
-
</tbody>
|
|
26
|
-
</table>
|
|
27
|
-
<p>Voici la nouvelle recherche en action - les résultats arrivent avant que vous ayez fini de taper :</p>
|
|
28
|
-
<img src="https://picsum.photos/seed/wexio-search/1024/576" alt="Recherche dans la boîte de réception qui renvoie les résultats instantanément" />
|
|
29
|
-
<p>Touchez l'image pour la voir de plus près. Une demande ? Répondez ici - nous les lisons toutes.</p>`},"demo-news-3":{title:`Gaia parle désormais 28 langues`,excerpt:`Détectez automatiquement la langue du visiteur ou imposez-en une. Sans configuration supplémentaire.`,body:`<p>Gaia répond désormais en 28 langues, détectées automatiquement à partir du premier message du visiteur. Les questions les plus fréquentes :</p>
|
|
30
|
-
<details><summary>Comment fonctionne la détection de la langue ?</summary><p>Gaia lit le message d'ouverture et répond dans la même langue. Si vos articles d'aide existent dans cette langue, elle les cite ; sinon, elle répond à partir de l'article le plus proche et vous signale le manque.</p></details>
|
|
31
|
-
<details><summary>Puis-je imposer une seule langue ?</summary><p>Oui. Fixez-en une dans <strong>Paramètres → IA → Langue</strong> et Gaia s'y tiendra quoi que le visiteur écrive.</p></details>
|
|
32
|
-
<details><summary>Que voient les opérateurs ?</summary><p>Les transcriptions restent dans la langue de votre équipe, avec le message d'origine conservé à côté de la traduction.</p></details>
|
|
33
|
-
<p>Un aperçu de Gaia qui change de langue au milieu d'un fil :</p>
|
|
34
|
-
<img src="https://picsum.photos/seed/wexio-lang/1024/576" alt="Gaia répondant dans plusieurs langues" />`},"demo-news-4":{title:`Envoyez les conversations directement dans Slack`,excerpt:`Connectez n'importe quel webhook entrant à un canal Slack. Sans code d'intégration.`,body:`## Connexion en deux clics
|
|
35
|
-
|
|
36
|
-
Allez dans **Intégrations → Slack**, cliquez sur *Connecter* et validez les autorisations. Choisissez le canal où doivent arriver les nouvelles conversations - la plupart des équipes utilisent \`#support\`.
|
|
37
|
-
|
|
38
|
-
## Ce que vous obtenez
|
|
39
|
-
|
|
40
|
-
- Un message Slack dès qu'un chat commence, avec un lien vers la boîte de réception.
|
|
41
|
-
- Les réponses des opérateurs en fil sous le message d'origine.
|
|
42
|
-
- Répondez directement depuis Slack et nous le transmettons au visiteur en temps réel.
|
|
43
|
-
|
|
44
|
-
## Les webhooks aussi
|
|
45
|
-
|
|
46
|
-
Vous envoyez déjà des événements depuis vos propres systèmes ? Dirigez n'importe quel webhook vers votre canal Slack et évitez toute intégration sur mesure.`},"demo-news-5":{title:`Boîte de réception 2.0 : triez sans souris`,excerpt:`De nouveaux raccourcis pour assigner, reporter et résoudre - tout au clavier.`,body:`<p>La boîte de réception 2.0 est pensée pour le clavier. Voici l'aide-mémoire, classé selon ce que vous faites :</p>
|
|
47
|
-
<div data-type="tabs">
|
|
48
|
-
<div data-type="tab"><div data-tab-label>Naviguer</div><ul><li><code>j</code> / <code>k</code> - conversation suivante / précédente</li><li><code>g</code> puis <code>i</code> - aller à la boîte de réception</li></ul></div>
|
|
49
|
-
<div data-type="tab"><div data-tab-label>Agir</div><ul><li><code>e</code> - résoudre</li><li><code>a</code> - me l'assigner</li><li><code>s</code> - reporter</li></ul></div>
|
|
50
|
-
<div data-type="tab"><div data-tab-label>Rédiger</div><ul><li><code>Cmd+Enter</code> - envoyer</li><li><code>/</code> - réponses enregistrées</li><li><code>Cmd+K</code> - palette de commandes</li></ul></div>
|
|
51
|
-
</div>
|
|
52
|
-
<p>La boîte de réception repensée - tout à portée de touche :</p>
|
|
53
|
-
<img src="https://picsum.photos/seed/wexio-inbox/1024/576" alt="La boîte de réception repensée, conçue pour le clavier" />`},"demo-news-6":{title:`Export et suppression des données en libre-service`,excerpt:`Traitez les demandes de données des visiteurs en un clic. Conforme au RGPD dès le départ.`,body:`## Exporter
|
|
54
|
-
|
|
55
|
-
Depuis le profil de n'importe quel visiteur, cliquez sur **Exporter les données** pour générer un fichier JSON de tous les messages, événements et attributs que nous conservons sur lui. Le téléchargement est immédiat et la demande est consignée pour vos registres.
|
|
56
|
-
|
|
57
|
-
## Supprimer
|
|
58
|
-
|
|
59
|
-
**Supprimer les données** retire le visiteur et efface ses messages de la boîte de réception, de la recherche et de tout CRM connecté via le même pont de webhooks. L'action est consignée et irréversible.
|
|
60
|
-
|
|
61
|
-
## Pour votre DPO
|
|
62
|
-
|
|
63
|
-
- Chaque export et chaque suppression est horodaté et attribué.
|
|
64
|
-
- Les durées de conservation sont configurables par espace de travail.
|
|
65
|
-
- Un accord de traitement des données est disponible sur demande.`},"demo-news-7":{title:`SDK mobile en bêta : iOS et Android`,excerpt:`Apportez la même conversation dans votre application native. Places bêta ouvertes.`,body:`## Une conversation, toutes les surfaces
|
|
66
|
-
|
|
67
|
-
Un visiteur qui démarre un chat sur votre site peut le reprendre dans votre application, connecté, avec tout l'historique. La même Gaia, les mêmes opérateurs, la même boîte de réception.
|
|
68
|
-
|
|
69
|
-
## Ce que contient la bêta
|
|
70
|
-
|
|
71
|
-
- Lanceur natif pour SwiftUI et Jetpack Compose.
|
|
72
|
-
- Notifications push pour les nouvelles réponses.
|
|
73
|
-
- File d'attente hors ligne : les messages partent dès le retour de la connexion.
|
|
74
|
-
|
|
75
|
-
## Nous rejoindre
|
|
76
|
-
|
|
77
|
-
Nous intégrons quelques équipes chaque semaine. Répondez ici avec votre plateforme et votre nombre approximatif d'utilisateurs actifs mensuels, et nous vous enverrons une clé.
|
|
78
|
-
|
|
79
|
-
> Bêta veut dire quelques aspérités. Nous publions des correctifs chaque semaine et lisons chaque rapport de bug.`},"demo-news-8":{title:`Voyez quelles réponses de l'IA ont vraiment fonctionné`,excerpt:`Suivez si chaque réponse de Gaia a mené à une résolution, un transfert ou un abandon.`,body:`## La nouvelle vue
|
|
80
|
-
|
|
81
|
-
**Analyses → Résultats de l'IA** détaille chaque réponse de Gaia selon ce qui s'est passé ensuite :
|
|
82
|
-
|
|
83
|
-
- **Résolu** - le visiteur a obtenu ce dont il avait besoin et est parti satisfait.
|
|
84
|
-
- **Transféré** - Gaia a passé la conversation à un humain.
|
|
85
|
-
- **Abandonné** - le visiteur a fermé le widget sans résolution.
|
|
86
|
-
|
|
87
|
-
## Analyse par article
|
|
88
|
-
|
|
89
|
-
Plongez dans n'importe quel article d'aide pour voir à quelle fréquence Gaia le cite et si ces citations aboutissent à une résolution. Un faible taux de résolution sur un article très consulté signifie généralement que le contenu doit être réécrit, pas l'IA.
|
|
90
|
-
|
|
91
|
-
## Passez à l'action
|
|
92
|
-
|
|
93
|
-
Triez par taux d'abandon pour trouver les questions qui mettent Gaia le plus en difficulté, puis ajoutez un flow ou un article plus précis pour combler l'écart.`},tags:{events:`Événements`,product:`Produit`,release:`Version`,ai:`IA`,languages:`Langues`,integrations:`Intégrations`,slack:`Slack`,inbox:`Boîte de réception`,privacy:`Confidentialité`,security:`Sécurité`,mobile:`Mobile`,beta:`Bêta`,analytics:`Analyses`},categories:{company:`Entreprise`,product:`Produit`,engineering:`Ingénierie`}},n={categories:{"demo-cat-getting-started":{title:`Premiers pas`,description:`Installez le widget et configurez votre première conversation.`},"demo-cat-automation":{title:`Automatisation`,description:`Flows, déclencheurs et réponse automatique de l'IA.`},"demo-cat-integrations":{title:`Intégrations`,description:`Connectez votre CRM, Slack et CMS.`},"demo-cat-billing":{title:`Facturation et forfaits`,description:`Niveaux de prix, factures et gestion des licences.`}},articles:{"demo-article-install":{title:`Installer le widget Wexio sur votre site`,excerpt:`Un extrait de 30 secondes à coller avant la balise de fermeture </body>.`,body:`## Ajouter le script de chargement
|
|
94
|
-
|
|
95
|
-
Collez cet extrait dans chaque page où vous voulez voir apparaître le widget :
|
|
96
|
-
|
|
97
|
-
\`\`\`html
|
|
98
|
-
<script
|
|
99
|
-
src="https://cdn.wexio.io/widget/loader.js"
|
|
100
|
-
data-public-key="pk_live_YOUR_KEY"
|
|
101
|
-
><\/script>
|
|
102
|
-
\`\`\`
|
|
103
|
-
|
|
104
|
-
Le chargeur insère un lanceur flottant en bas à droite. Cliquez dessus pour ouvrir le panneau de chat.
|
|
105
|
-
|
|
106
|
-
## Vérifier l'installation
|
|
107
|
-
|
|
108
|
-
- Visitez une page qui contient l'extrait.
|
|
109
|
-
- Ouvrez la console du navigateur.
|
|
110
|
-
- Vous devriez voir \`[wexio] widget mounted\`.
|
|
111
|
-
|
|
112
|
-
## Personnaliser l'apparence
|
|
113
|
-
|
|
114
|
-
Le widget lit les couleurs de marque depuis votre tableau de bord. Modifiez-les dans **Paramètres → Marque**.
|
|
115
|
-
|
|
116
|
-
> Besoin d'un coup de main ? Touchez "Besoin d'aide ? Écrivez-nous" ci-dessous et nous vous guiderons.`},"demo-article-flows":{title:`Créer votre premier flow d'automatisation`,excerpt:`Glissez, déposez et lancez un bot d'accueil en moins de cinq minutes.`,body:`## Qu'est-ce qu'un flow ?
|
|
117
|
-
|
|
118
|
-
Un flow est un petit arbre d'étapes de conversation - questions, réponses et conditions - qui s'exécute chaque fois qu'un visiteur correspond à un déclencheur.
|
|
119
|
-
|
|
120
|
-
## Trois types de déclencheurs
|
|
121
|
-
|
|
122
|
-
1. **Le visiteur a ouvert le widget** - accueillez les nouveaux venus.
|
|
123
|
-
2. **Le visiteur a posé une question** - Gaia (IA) tente de répondre ; si elle n'y arrive pas, le flow prend le relais.
|
|
124
|
-
3. **Webhook reçu** - votre CMS ou plateforme e-commerce envoie un événement ; le flow démarre dans le bon chat.
|
|
125
|
-
|
|
126
|
-
## Bonnes pratiques
|
|
127
|
-
|
|
128
|
-
- Gardez les premières réponses sous 80 caractères.
|
|
129
|
-
- Proposez 2-3 puces de réponse rapide plutôt qu'une question à texte libre.
|
|
130
|
-
- Prévoyez toujours une porte de sortie - *"Parler à un humain"*.`},"demo-article-slack":{title:`Transférer les chats vers Slack`,excerpt:`Répliquez chaque nouvelle conversation dans le canal Slack de votre choix.`,body:`## Connecter votre espace de travail
|
|
131
|
-
|
|
132
|
-
Dans **Intégrations → Slack**, cliquez sur *Connecter*. Vous serez redirigé vers l'écran OAuth de Slack - validez les autorisations demandées (\`chat:write\`, \`channels:read\`).
|
|
133
|
-
|
|
134
|
-
## Choisir un canal
|
|
135
|
-
|
|
136
|
-
Après l'autorisation, choisissez le canal cible (ou créez-en un nouveau comme \`#support\`).
|
|
137
|
-
|
|
138
|
-
## Ce qui est transféré
|
|
139
|
-
|
|
140
|
-
- Le message d'ouverture, avec un lien direct vers la boîte de réception wexio.
|
|
141
|
-
- Les réponses des opérateurs sous forme de messages en fil.
|
|
142
|
-
- Les réponses des visiteurs en temps réel via le pont SSE.
|
|
143
|
-
|
|
144
|
-
## Sens inverse
|
|
145
|
-
|
|
146
|
-
Les opérateurs peuvent répondre *depuis* Slack - wexio écoute les réponses dans les fils Slack et les renvoie dans le widget.`},"demo-article-billing":{title:`Mettre à jour votre forfait et vos informations de facturation`,excerpt:`Changez de formule, de carte ou téléchargez vos factures.`,body:`## Forfaits
|
|
147
|
-
|
|
148
|
-
- **Free** - 1 widget, fonctions de base, badge "Powered by Wexio".
|
|
149
|
-
- **Standard** - widgets illimités, automatisations, intégrations.
|
|
150
|
-
- **Enterprise** - marque blanche, SLA, support dédié.
|
|
151
|
-
|
|
152
|
-
## Changer de forfait
|
|
153
|
-
|
|
154
|
-
**Paramètres → Facturation → Changer de forfait**. Les passages à un forfait supérieur s'appliquent immédiatement ; les rétrogradations à la fin du cycle en cours.
|
|
155
|
-
|
|
156
|
-
## Factures
|
|
157
|
-
|
|
158
|
-
Téléchargez chaque facture au format PDF depuis **Facturation → Historique**. Nous envoyons aussi une copie par e-mail à chaque renouvellement.`},"demo-article-theme":{title:`Personnaliser le thème du widget`,excerpt:`Adaptez le widget à votre marque - couleurs, arrondis, mode sombre.`,body:`## Couleurs de marque
|
|
159
|
-
|
|
160
|
-
Dans **Paramètres → Marque**, définissez :
|
|
161
|
-
|
|
162
|
-
- **Principale** - pilote le lanceur, le bouton d'envoi et les anneaux de focus.
|
|
163
|
-
- **Arrière-plan** - la surface du panneau (clair) et sa version pour le mode sombre.
|
|
164
|
-
|
|
165
|
-
## Arrondis
|
|
166
|
-
|
|
167
|
-
Choisissez entre \`sm\`, \`md\` et \`lg\` pour un rendu plus net ou plus doux. Le changement s'applique en direct à chaque widget sur chaque page.
|
|
168
|
-
|
|
169
|
-
## Mode sombre
|
|
170
|
-
|
|
171
|
-
Par défaut = suivre la préférence système du visiteur. Fixez sur **toujours clair** ou **toujours sombre** si votre site ne gère pas lui-même le mode sombre.`},"demo-article-handoff":{title:`Transférer de Gaia à un opérateur humain`,excerpt:`Quand l'IA ne suffit pas - orientez le visiteur vers un collègue.`,body:`## Déclencheurs
|
|
172
|
-
|
|
173
|
-
Gaia transfère automatiquement lorsque :
|
|
174
|
-
|
|
175
|
-
- Le visiteur écrit *"parler à un humain"* (ou toute variante localisée).
|
|
176
|
-
- La même question est posée deux fois sans résolution.
|
|
177
|
-
- L'intention du visiteur correspond à une règle de routage (p. ex. facturation → équipe finance).
|
|
178
|
-
|
|
179
|
-
## Routage
|
|
180
|
-
|
|
181
|
-
Configurez **Routage → Règles** pour orienter certaines intentions vers des équipes ou des opérateurs précis. Le tourniquet (round-robin) et la charge minimale sont tous deux pris en charge.
|
|
182
|
-
|
|
183
|
-
## Hors horaires
|
|
184
|
-
|
|
185
|
-
Si aucun opérateur n'est en ligne, Gaia propose un rappel ou un formulaire de transfert par e-mail plutôt que de faire croire que quelqu'un est disponible.`},"demo-article-crm":{title:`Synchroniser les conversations avec votre CRM`,excerpt:`Envoyez chaque chat vers HubSpot, Salesforce ou Pipedrive.`,body:`## CRM pris en charge
|
|
186
|
-
|
|
187
|
-
- HubSpot (OAuth)
|
|
188
|
-
- Salesforce (OAuth)
|
|
189
|
-
- Pipedrive (jeton d'API)
|
|
190
|
-
- Personnalisé via webhooks
|
|
191
|
-
|
|
192
|
-
## Ce qui est synchronisé
|
|
193
|
-
|
|
194
|
-
- Les nouvelles conversations créent un contact (s'il n'existe pas déjà) et une note.
|
|
195
|
-
- Les réponses des opérateurs s'ajoutent à la chronologie du contact.
|
|
196
|
-
- Les étiquettes appliquées dans wexio sont répercutées dans le CRM.
|
|
197
|
-
|
|
198
|
-
## Dans les deux sens
|
|
199
|
-
|
|
200
|
-
Les notes d'opérateur ajoutées dans le CRM peuvent revenir dans wexio via le récepteur de webhooks - voir *Intégrations → Webhooks → Entrant*.`},"demo-article-shortcuts":{title:`Raccourcis clavier pour les opérateurs`,excerpt:`Triez deux fois plus vite - sans souris.`,body:"## Navigation dans la boîte de réception\n\n- `j` / `k` - conversation suivante / précédente\n- `e` - résoudre\n- `a` - me l'assigner\n- `s` - reporter\n\n## Éditeur\n\n- `Cmd+Enter` - envoyer\n- `/` - ouvrir le sélecteur de réponses enregistrées\n- `Cmd+K` - palette de commandes (tout)\n\n## Astuce\n\nSurvolez n'importe quel bouton du tableau de bord - l'infobulle indique son raccourci."}},tags:{setup:`Configuration`,install:`Installation`,automation:`Automatisation`,flows:`Flows`,integrations:`Intégrations`,slack:`Slack`,billing:`Facturation`,plans:`Forfaits`,design:`Design`,ai:`IA`,crm:`CRM`,productivity:`Productivité`,inbox:`Boîte de réception`}},r={visitorName:`Vous`,messages:{"m-demo-1":{text:`Bonjour 👋 Je suis Gaia, l'IA de Wexio. Comment puis-je vous aider ?`,ageLabel:`9:41`,buttons:[`Comment fonctionne la tarification ?`,`Que peut-il faire ?`,`Parler à un humain`]},"m-demo-2":{text:`Pouvez-vous me montrer à quoi ressemble le widget ?`,ageLabel:`9:41`},"m-demo-3":{text:``,ageLabel:`9:42`,mediaAlts:[`Capture d'écran du produit`]},"m-demo-4":{text:``,ageLabel:`9:42`,mediaAlts:[`Globe qui tourne`]},"m-demo-5":{text:`Bien joué ! 😄 Voici quelques vues de notre équipe.`,ageLabel:`9:43`},"m-demo-6":{text:`Quelques points forts du tableau de bord`,ageLabel:`9:43`,mediaAlts:[`Vue d'ensemble du tableau de bord`,`Analyses`,`Boîte de réception`,`Rapports`]},"m-demo-7":{text:``,ageLabel:`9:44`,mediaAlts:[`Présentation rapide`]},"m-demo-8":{text:``,ageLabel:`9:44`,mediaAlts:[`Message vocal`]},"m-demo-9":{text:``,ageLabel:`9:45`,mediaAlts:[`Guide de démarrage`]},"m-demo-9b":{text:``,ageLabel:`9:45`,mediaAlts:[`Intégrations Wexio`]},"m-demo-10":{text:`Prêt à l'essayer vous-même ?`,ageLabel:`9:45`,buttons:[`Ouvrir le bac à sable`,`Réserver un appel`,`Continuer à discuter`]}}},i={messengerDescription:`Notre équipe peut aussi vous aider`,messengerMessage:`Bonjour 👋 Posez-nous toutes vos questions ou choisissez une action rapide.`},a={welcome:{system:`Vous discutez maintenant avec Gaia, notre assistante IA.`,hint:`Astuce : joignez un fichier ou enregistrez un message vocal à tout moment.`,greeting:`Bonjour 👋 Je suis Gaia, l'IA de Wexio. Posez-moi vos questions ou choisissez une action rapide pour commencer.`},replies:{pricing:{text:`Wexio est gratuit pour un widget ; les forfaits payants démarrent à 39 $/mois et débloquent les automatisations, les intégrations et la marque blanche.`,planBtn:`Voir les forfaits`,salesBtn:`Parler aux ventes`},gaia:{text:`Gaia est l'agent IA qui répond instantanément aux questions des visiteurs. Elle apprend de vos articles d'aide et passe la main à un humain quand elle ne peut pas aider.`,handoffBtn:`Comment fonctionne le transfert ?`},human:{text:`Bien sûr - je fais venir Alex de l'équipe. Il vous répondra d'ici quelques minutes pendant les heures ouvrées.`},fallback:{text:`Compris - je vérifie cela et je reviens vers vous dans un instant.`},voice:{text:`J'ai bien reçu votre message vocal - je vérifie et je reviens vers vous.`}}},o={main:`Prêt à l'essayer vous-même ?`,billing:`Merci ! J'ai transmis votre question sur la facture à l'équipe facturation.`,integrations:`Comment connecter WhatsApp à mon compte ?`},s={recentMessage:e,news:t,help:n,conversation:r,playgroundDefaults:i,messenger:a,threads:o};export{r as conversation,s as default,n as help,a as messenger,t as news,i as playgroundDefaults,e as recentMessage,o as threads};
|
|
201
|
-
//# sourceMappingURL=widget-react-BEeSy_sM.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Início`,messages:`Mensagens`,help:`Ajuda`,news:`Novidades`,profile:`Perfil`},header:{close:`Fechar`,back:`Voltar`,conversationSubtitle:`A nossa equipa também pode ajudar`,helpTitle:`Ajuda`,newsTitle:`Novidades`,expand:`Expandir widget`,collapse:`Recolher widget`,messagesTitle:`Mensagens`,downloadTranscript:`Transferir conversa`,moreActions:`Mais`},launcher:{open:`Abrir chat`,close:`Fechar chat`,panel:`Chat`},tabError:{title:`Algo correu mal`,hint:`Não foi possível mostrar esta secção.`,retry:`Tentar novamente`},chunkError:{failed:`Não foi possível carregar`,retry:`Tentar novamente`},home:{greetingHeadline:`Olá 👋`,greetingSubheadline:`Como podemos ajudar?`,askTitle:`Faça uma pergunta`,askSubtitle:`O nosso bot e a nossa equipa podem ajudar`,recentMessageLabel:`Mensagem recente`,recentMessageTitle:`Mensagem recente`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 h`,recentMessageSample:`Olá 👋 Obrigado por contactar-nos. Voltamos já a si.`,featuredArticleLoading:`Artigo em destaque`,featuredArticleTap:`Toque para ler`,featuredArticleEmpty:`Escolha um artigo`,featuredArticleSetUp:`Configure este bloco no seu painel`,featuredArticleDemoEyebrow:`Pioneer · Save the date`,featuredArticleDemoHeadline:`8 de outubro de 2026`,featuredArticleDemoSubline:`São Francisco · presencial + virtual`,featuredArticleDemoCta:`Ver a agenda do lançamento`,seeAgenda:`Ver a agenda do lançamento`,browseHelp:`Explorar a ajuda`,whatsNew:`Novidades`,searchPlaceholder:`Procurar na ajuda`,pinnedArticlesTitle:`Leia isto primeiro`,popularArticlesTitle:`Artigos populares`,pinnedArticleRow:`Artigo fixado {n}`,newsPreviewTitle:`Últimas novidades`,seeAll:`Ver tudo`,newsPreviewRow:`Novidade {n}`,myConversationsTitle:`As suas conversas`,myConversationsEmpty:`Ver as suas conversas`,teamStatusOnline:`Estamos online`,teamStatusReplyInstant:`Normalmente responde de imediato`,teamStatusReplyMinutes:`Normalmente responde em poucos minutos`,teamStatusReplyHours:`Normalmente responde em poucas horas`,teamStatusReplyDay:`Normalmente responde no prazo de um dia`,teamStatusAiOnline:`{name} pode ajudar agora`,teamStatusOperatorsBack:`Os operadores regressam {when}`,teamStatusOfflineUntil:`Estamos ausentes, regressamos {when}`,teamStatusOfflineSoon:`Estamos ausentes, regressamos em breve`,recentMessageAttachment:`Anexo`},messages:{today:`Hoje`,yesterday:`Ontem`,unreadMessages:`Mensagens não lidas`,emptyTitle:`Ainda não há mensagens`,emptyBody:`Inicie uma conversa e a nossa equipa responder-lhe-á aqui.`,sendCta:`Envie-nos uma mensagem`,attach:`Anexar um ficheiro`,commands:`Comandos rápidos`,record:`Gravar uma mensagem de voz`,stopRecording:`Parar gravação`,recording:`A gravar…`,uploading:`A carregar…`,uploadFailed:`Falha ao carregar`,voiceDenied:`Acesso ao microfone negado`,voiceUnsupported:`Este navegador não suporta gravação de voz`,fileTooLarge:`O ficheiro é demasiado grande (máx. 10 MB)`,fileMimeNotAllowed:`Este tipo de ficheiro não é suportado`,emoji:`Inserir emoji`,cancelRecording:`Cancelar gravação`,pauseRecording:`Pausar gravação`,resumeRecording:`Retomar gravação`,playPreview:`Reproduzir gravação`,emojiPicker:`Seletor de emojis`,emojiCategories:{suggested:`Utilizados recentemente`,smileysPeople:`Smileys e pessoas`,animalsNature:`Animais e natureza`,foodDrink:`Comida e bebida`,travelPlaces:`Viagens e locais`,activities:`Atividades`,objects:`Objetos`,symbols:`Símbolos`,flags:`Bandeiras`},emojiSearch:`Procurar…`,playAudio:`Reproduzir`,pauseAudio:`Pausar`,openAudio:`Abrir áudio`,removeAttachment:`Remover`,aiAssistant:`Assistente de IA`,operator:`Agente`,openImage:`Abrir imagem`,openPreview:`Abrir pré-visualização`,play:`Reproduzir`,pause:`Pausar`,typing:`a escrever…`,aiThinking:`a pensar…`,aiSearching:`a procurar…`,typingSomeone:`Alguém`,signInToChat:`Inicie sessão para começar a conversa.`,signInUnavailable:`O início de sessão não está disponível neste momento.`,googleSignIn:`Iniciar sessão com Google`,googleUnavailable:`O início de sessão com o Google não está disponível. Verifique a ligação ou o bloqueador de anúncios e tente novamente.`,passkeySignIn:`Iniciar sessão com uma passkey`,passkeyRegister:`Primeira vez? Configure uma passkey`,passkeyError:`Não foi possível iniciar sessão. Tente novamente.`,passkeyNoCredential:`Ainda não há nenhuma passkey neste dispositivo. Toque em «Configure uma passkey» para criar uma.`,googleSignInDemo:`Continuar com Google`,connectingOperator:`Foi-lhe atribuído um operador, aguarde…`,assignment:{eta:{minutes:`Um operador irá responder daqui a cerca de {minutes} min`,soft:`Normalmente respondemos em poucos minutos`,businessHours:`A equipa estará de volta às {time}`}},withOperator:`Está agora a conversar com {name}`,operatorConnected:`Operador ligado`,chatResolved:`Conversa resolvida`,chatResolvedByYou:`Conversa resolvida por si`,chatResolvedByOperator:`Conversa resolvida por {name}`,resolveConversation:`Resolver conversa`,sources:`Fontes`,moreSources:`+{count} mais`,askQuestion:`Fazer uma pergunta`,previewYou:`Você: {text}`,threadsEmptyTitle:`Ainda não há conversas`,threadsEmptyBody:`Inicie uma conversa e ela aparecerá aqui.`,format:{bold:`Negrito`,italic:`Itálico`,underline:`Sublinhado`,strikethrough:`Rasurado`,bulletList:`Lista com marcadores`,numberedList:`Lista numerada`,link:`Ligação`,linkPlaceholder:`https://…`,linkSave:`Guardar`,linkCancel:`Cancelar`,monospace:`Monoespaçado`},queued:`A aguardar ligação`,notDelivered:`Não entregue`,retry:`Tentar novamente`,offlineBanner:`Está offline`,backOnline:`De volta online`,threadsErrorTitle:`Não foi possível carregar as suas conversas`,threadsErrorBody:`Verifique a ligação e tente novamente.`,giphy:{title:`GIFs e autocolantes`,searchPlaceholder:`Pesquisar no GIPHY`,clear:`Limpar`,tabGifs:`GIFs`,tabStickers:`Autocolantes`,error:`Não foi possível carregar`,retry:`Tentar novamente`,empty:`Sem resultados`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Ir para a mais recente`,conversationClosed:`Esta conversa está encerrada`,startNewConversation:`Iniciar uma nova conversa`,conversationBlocked:`Esta conversa está bloqueada`,visitorBlocked:`Já não pode enviar mensagens`,conversationClosedTitle:`Por agora é tudo 👋`,conversationClosedHint:`Esta conversa está encerrada. Inicie uma nova quando quiser.`,fileFallback:`Ficheiro`},prechat:{title:`Antes de começarmos`,subtitle:`Alguns dados rápidos para a nossa equipa ajudar mais depressa.`,labelName:`Nome`,labelEmail:`E-mail`,labelPhone:`Telemóvel`,labelCustom:`Detalhes`,required:`Obrigatório`,invalidEmail:`Introduza um e-mail válido`,invalidPhone:`Introduza um número de telemóvel válido`,submit:`Continuar`,locked:`Verificado - não pode ser alterado`,submitFailed:`Não foi possível submeter. Tente novamente.`},help:{searchPlaceholder:`Procurar na ajuda`,emptyTitle:`Ainda não há artigos`,emptyBody:`Ainda não há nada aqui.`,back:`Voltar`,helpful:`Foi útil?`,yes:`Sim`,no:`Não`,thanks:`Obrigado pelo seu feedback.`,unresolvedCta:`Ainda precisa de ajuda? Escreva-nos`,noResults:`Sem resultados`,articleNotFound:`Artigo não encontrado`,articleNotTranslated:`Este artigo ainda não está disponível no seu idioma.`,writtenBy:`Escrito por {names}`,relatedTitle:`Artigos relacionados`,collectionsCount:`{count, plural, =0 {Sem coleções} one {# coleção} other {# coleções}}`,articlesCount:`{count, plural, =0 {Sem artigos} one {Artigos: #} other {Artigos: #}}`,authorsByline:`Autores {first}{remaining, plural, =0 {} one { e mais #} other { e mais #}}`},news:{emptyTitle:`Ainda não há atualizações`,emptyBody:`Volte aqui para ver novidades do produto e anúncios.`,helpful:`Este artigo foi útil?`,yes:`Sim`,no:`Não`,thanks:`Obrigado pelo seu feedback.`,searchPlaceholder:`Procurar nas novidades`,noResults:`Sem publicações correspondentes`,editedAt:`editado {when}`,articleNotFound:`Artigo não encontrado.`,articleNotTranslated:`Esta publicação ainda não está disponível no seu idioma.`,readOriginal:`Ler o original`,relatedTitle:`Relacionados`,writtenBy:`Escrito por {names}`,unread:`Novidades não lidas`},reactions:{ariaLabel:`Reações`,tapAria:`Reagir com {emoji}`},languageSelector:{title:`Ler noutro idioma`,ariaLabel:`Idiomas do artigo`},branding:{poweredBy:`Com tecnologia de`,wexio:`Wexio`},sound:{mute:`Silenciar sons de notificação`,unmute:`Ativar sons de notificação`},article:{tableOfContents:`Índice`,tabFallback:`Separador {n}`},peek:{newMessage:`Nova mensagem`,dismiss:`Dispensar`,aiAssistant:`Assistente de IA`,operator:`Agente`,quickReplies:`Respostas rápidas`},lightbox:{mediaPreview:`Pré-visualização do conteúdo`,close:`Fechar pré-visualização`,previous:`Anterior`,next:`Seguinte`},authError:{turnstileTitle:`Não foi possível verificar o seu navegador`,turnstileBody:`Não conseguimos concluir a verificação de segurança. Por vezes é um problema de rede ou de bloqueador de anúncios. Tente novamente ou recarregue a página.`,genericTitle:`Não foi possível ligar`,genericBody:`Algo correu mal ao iniciar a sua sessão. Tente novamente daqui a um momento.`,retry:`Tentar novamente`,dismiss:`Dispensar`,visitorLimitTitle:`Test visitor limit reached`,visitorLimitBody:`Too many test visitors today. Reuse an existing test visitor or try again tomorrow.`},profile:{title:`O seu perfil`,subtitle:`Atualize os seus dados e o comportamento do widget.`,uploadAvatar:`Alterar fotografia`,removeAvatar:`Remover fotografia`,avatarUploading:`A carregar…`,preferencesHeading:`Preferências`,preferenceLanguage:`Idioma`,preferenceDesktopNotifications:`Notificações de ambiente de trabalho`,preferenceDesktopNotificationsHint:`Receba uma notificação do sistema quando o widget não estiver em primeiro plano.`,preferenceThemeMode:`Tema`,themeAuto:`Como o sistema`,themeLight:`Claro`,themeDark:`Escuro`,themeLocked:`O tema não pode ser alterado.`,pinnedHint:`Não editável.`,requiredHint:`Obrigatório`,invalidEmail:`Introduza um endereço de e-mail válido.`,invalidPhone:`Use o formato internacional, p. ex. +351912345678.`,noFields:`Ainda não há nada para editar aqui.`,save:`Guardar alterações`,saving:`A guardar…`,cancel:`Descartar`,saved:`Alterações guardadas.`,loading:`A carregar o perfil…`,loadError:`Não foi possível carregar o seu perfil. Tente novamente.`,retry:`Repetir`,errorFieldNotAllowed:`Este campo não é editável neste widget. Tente atualizar.`,errorFieldPinned:`Este campo está bloqueado pela sua conta.`,errorFieldInvalid:`Alguns valores não são válidos. Verifique os campos destacados.`,errorThemeLocked:`O tema não pode ser alterado.`,errorFeatureDisabled:`A edição do perfil não está disponível.`,errorGeneric:`Não foi possível guardar as alterações. Tente novamente.`,notificationsBlocked:`As notificações estão bloqueadas pelo navegador. Atualize as permissões do site para ativar.`,notificationsRequest:`Permita as notificações quando for solicitado para ativar isto.`,systemFields:{avatar:`Fotografia`,wexioId:`ID Wexio`,telegramId:`ID Telegram`,whatsappId:`ID WhatsApp`,viberId:`ID Viber`,instagramId:`ID Instagram`,optInWhatsapp:`Consentimento WhatsApp`,webVerified:`Visitante verificado`,firstName:`Nome próprio`,lastName:`Apelido`,username:`Nome de utilizador`,language:`Idioma`,email:`E-mail`,phone:`Telemóvel`,company:`Empresa`,location:`Localização`,isValid:`Conta válida`,chatStatus:`Estado do chat`,chatCategory:`Categoria do chat`,priority:`Prioridade`,leadSource:`Origem do lead`,leadStatus:`Estado do lead`,interestLevel:`Nível de interesse`,productInterest:`Interesse no produto`,budgetRange:`Orçamento`,purchaseTimeline:`Prazo de compra`,lastMessageSentAt:`Última mensagem enviada`,lastMessageReceivedAt:`Última mensagem recebida`,lastSeenAt:`Visto pela última vez`,firstMessageReceivedAt:`Primeiro contacto`,isBlocked:`Bloqueado`,registrationDate:`Registado`,aiAvailable:`Assistência de IA`,totalMessagesSent:`Mensagens enviadas`,totalMessagesReceived:`Mensagens recebidas`,totalAiMessagesSent:`Mensagens enviadas pela IA`,totalBotMessagesSent:`Mensagens enviadas pelo bot`,totalUserMessagesSent:`Mensagens enviadas pelo agente`,flowCompletionRate:`Taxa de conclusão de flows`,lastFlowCompleted:`Último flow concluído`,totalFlowsStarted:`Flows iniciados`,totalFlowsCompleted:`Flows concluídos`},systemFieldOptions:{chatStatus:{ISSUE:`Problema`,RESOLVED:`Resolvido`,PENDING:`Pendente`,IN_PROGRESS:`Em curso`,CLOSED:`Fechado`},chatCategory:{SALES:`Vendas`,SUPPORT:`Suporte`,BILLING:`Faturação`,FEEDBACK:`Comentários`,GENERAL:`Geral`,OTHER:`Outro`},priority:{LOW:`Baixa`,MEDIUM:`Média`,HIGH:`Alta`,URGENT:`Urgente`},leadStatus:{NEW:`Novo`,CONTACTED:`Contactado`,QUALIFIED:`Qualificado`,NEGOTIATING:`Em negociação`,WON:`Ganho`,LOST:`Perdido`},interestLevel:{LOW:`Baixo`,MEDIUM:`Médio`,HIGH:`Alto`,VERY_HIGH:`Muito alto`}},selectOption:`Selecione uma opção`,noOptions:`Nenhuma opção configurada.`},transcript:{title:`Conversa com {org}`,started:`Iniciada em {when}`,exported:`Exportada de {org} em {when}`,truncated:`Nota: apenas as mensagens mais recentes estão incluídas.`,operator:`Operador`,you:`Você`},notification:{newMessage:`Nova mensagem`,image:`Imagem`,video:`Vídeo`,voiceMessage:`Mensagem de voz`,attachment:`Anexo`}};export{e as default};
|
|
2
|
-
//# sourceMappingURL=widget-react-BJLMVdT8.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{b as e,i as t,n,t as r}from"./widget-react-DIvxQOfe.js";import{l as i,o as a,s as o}from"./widget-react-_QsYqFeh.js";import{t as s}from"./widget-react-8gKsfB0D.js";import{t as c}from"./widget-react-BxEMz2N0.js";import{t as l}from"./widget-react-DJczk-Ax.js";import{useEffect as u,useRef as d,useState as f}from"react";import{Fragment as p,jsx as m,jsxs as h}from"react/jsx-runtime";var g=r(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]);function _(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}var v=class{constructor(){this.listeners={}}on(e,t,n){if(this.listeners[e]||(this.listeners[e]=new Set),n?.once){let n=(...r)=>{this.un(e,n),t(...r)};return this.listeners[e].add(n),()=>this.un(e,n)}return this.listeners[e].add(t),()=>this.un(e,t)}un(e,t){var n;(n=this.listeners[e])==null||n.delete(t)}once(e,t){return this.on(e,t,{once:!0})}unAll(){this.listeners={}}emit(e,...t){this.listeners[e]&&this.listeners[e].forEach((e=>e(...t)))}},y=class extends v{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit(`destroy`),this.subscriptions.forEach((e=>e())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},b=class extends v{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let e=()=>{this.isRunning&&(this.emit(`tick`),this.animationFrameId=requestAnimationFrame(e))};e()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},x=100,S=[`audio/webm`,`audio/wav`,`audio/mpeg`,`audio/mp4`,`audio/mp3`],C=class e extends y{constructor(e){var t,n,r;super(Object.assign(Object.assign({},e),{audioBitsPerSecond:e.audioBitsPerSecond??128e3,scrollingWaveform:(t=e.scrollingWaveform)!=null&&t,scrollingWaveformWindow:e.scrollingWaveformWindow??5,continuousWaveform:(n=e.continuousWaveform)!=null&&n,renderRecordedAudio:(r=e.renderRecordedAudio)==null||r,mediaRecorderTimeslice:e.mediaRecorderTimeslice??void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new b,this.subscriptions.push(this.timer.on(`tick`,(()=>{let e=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+e,this.emit(`record-progress`,this.duration)})))}static create(t){return new e(t||{})}renderMicStream(e){let t=new AudioContext,n=t.createMediaStreamSource(e),r=t.createAnalyser();n.connect(r),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(r.fftSize=32);let i=r.frequencyBinCount,a=new Float32Array(i),o=0;this.wavesurfer&&(this.originalOptions??(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let s=setInterval((()=>{if(!this.isWaveformPaused){if(r.getFloatTimeDomainData(a),this.options.scrollingWaveform){let e=Math.floor((this.options.scrollingWaveformWindow||0)*x),t=0;for(let e=0;e<i;e++){let n=Math.abs(a[e]);n>t&&(t=n)}this.dataWindow||(this.dataWindow=new Float32Array(e));let n=new Float32Array(e);if(this.dataWindow&&this.dataWindow.length>0){let t=e-1,r=this.dataWindow.slice(-t);n.set(r,0)}n[e-1]=t,this.dataWindow=n}else if(this.options.continuousWaveform){if(!this.dataWindow){let e=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*x):(this.wavesurfer?.getWidth()??0)*window.devicePixelRatio;this.dataWindow=new Float32Array(e)}let e=0;for(let t=0;t<i;t++){let n=Math.abs(a[t]);n>e&&(e=n)}if(o+1>this.dataWindow.length){let e=new Float32Array(2*this.dataWindow.length);e.set(this.dataWindow,0),this.dataWindow=e}this.dataWindow[o]=e,o++}else this.dataWindow=a;if(this.wavesurfer){let e=(this.dataWindow?.length??0)/x;this.wavesurfer.load(``,[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:e).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((e=>{console.error(`Error rendering real-time recording data:`,e)}))}}}),10);return{onDestroy:()=>{clearInterval(s),n?.disconnect(),t?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(e){return _(this,void 0,void 0,(function*(){let t;this.micStream&&this.stopMic();try{t=yield navigator.mediaDevices.getUserMedia({audio:e==null||e})}catch(e){throw Error(`Error accessing the microphone: `+e.message)}let n=this.renderMicStream(t);return this.micStream=n,this.unsubscribeDestroy=this.once(`destroy`,n.onDestroy),this.unsubscribeRecordEnd=this.once(`record-end`,n.onEnd),this.stream=t,t}))}stopMic(){var e,t,n;(e=this.micStream)==null||e.onDestroy(),(t=this.unsubscribeDestroy)==null||t.call(this),(n=this.unsubscribeRecordEnd)==null||n.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((e=>e.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(e){return _(this,void 0,void 0,(function*(){let t=this.stream||(yield this.startMic(e));this.dataWindow=null;let n=this.mediaRecorder||new MediaRecorder(t,{mimeType:this.options.mimeType||S.find((e=>MediaRecorder.isTypeSupported(e))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=n,this.stopRecording();let r=[];n.ondataavailable=e=>{e.data.size>0&&r.push(e.data),this.emit(`record-data-available`,e.data)};let i=e=>{var t;let i=new Blob(r,{type:n.mimeType});this.emit(e,i),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(i),(t=this.wavesurfer)==null||t.load(this.recordedBlobUrl))};n.onpause=()=>i(`record-pause`),n.onstop=()=>i(`record-end`),n.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit(`record-start`)}))}getDuration(){return this.duration}isRecording(){return this.mediaRecorder?.state===`recording`}isPaused(){return this.mediaRecorder?.state===`paused`}isActive(){return this.mediaRecorder?.state!==`inactive`}stopRecording(){var e;this.isActive()&&((e=this.mediaRecorder)==null||e.stop(),this.timer.stop())}pauseRecording(){var e,t;this.isRecording()&&(this.isWaveformPaused=!0,(e=this.mediaRecorder)==null||e.requestData(),(t=this.mediaRecorder)==null||t.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var e;this.isPaused()&&(this.isWaveformPaused=!1,(e=this.mediaRecorder)==null||e.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit(`record-resume`))}static getAvailableAudioDevices(){return _(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((e=>e.filter((e=>e.kind===`audioinput`))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};function w(e){let t=Math.max(0,e);return`${Math.floor(t/60)}:${(t%60).toString().padStart(2,`0`)}`}function T(){if(typeof MediaRecorder>`u`)return null;for(let e of[`audio/webm;codecs=opus`,`audio/webm`,`audio/mp4`,`audio/ogg`])if(MediaRecorder.isTypeSupported?.(e))return e;return null}async function E(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;if(typeof e!=`string`){n(Error(`FileReader returned non-string result`));return}let i=e.indexOf(`,`);t(i>=0?e.slice(i+1):e)},r.onerror=()=>n(r.error??Error(`read failed`)),r.readAsDataURL(e)})}function D(e){let t=e?.name??``,n=e?.message??``;return t===`NotAllowedError`||t===`PermissionDeniedError`?`denied`:t===`NotFoundError`||t===`NotReadableError`||t===`OverconstrainedError`||t===`SecurityError`||t===`AbortError`||t===`TypeError`||/not found|could not start|secure origin|not readable|in use/i.test(n)?`failed`:/permission|denied|not allowed/i.test(n)?`denied`:`failed`}function O({onComplete:r,onCancel:c,onError:_}){let v=e(`messages`),y=d(null),b=d(null),x=d(null),S=d(null),O=d([]),A=d(null),[j,M]=f(`recording`),[N,P]=f(0),[F,I]=f(!1),L=d(null),R=d(!1);return u(()=>{let e=y.current;if(!e)return;if(typeof window>`u`||!window.MediaRecorder){_(`unsupported`);return}let t=!1;R.current=!1;let n=getComputedStyle(e),r=n.getPropertyValue(`--wx-primary`).trim()||`#5b6cff`,i=n.getPropertyValue(`--wx-fg-muted`).trim()||`#565d69`,a=l.create({container:e,waveColor:i,progressColor:r,cursorColor:r,cursorWidth:2,height:32,barWidth:2,barGap:2,barRadius:2,interact:!0,hideScrollbar:!0});b.current=a,a.on(`play`,()=>I(!0)),a.on(`pause`,()=>I(!1)),a.on(`finish`,()=>I(!1));let o=a.registerPlugin(C.create({continuousWaveform:!0,continuousWaveformDuration:60,renderRecordedAudio:!1}));x.current=o;let s=null,c=null;return o.startMic().then(e=>{if(t||R.current){try{e.getTracks().forEach(e=>{e.stop()})}catch{}try{o.stopMic()}catch{}return}let n=T(),r=n?new MediaRecorder(e,{mimeType:n}):new MediaRecorder(e);S.current=r,c=r,O.current=[],r.addEventListener(`dataavailable`,e=>{e.data&&e.data.size>0&&O.current.push(e.data)}),r.addEventListener(`stop`,()=>{if(t||R.current)return;try{o.stopMic()}catch{}s!==null&&(clearInterval(s),s=null,A.current=null);let e=r.mimeType||n||`audio/webm`,i=new Blob(O.current,{type:e});E(i).then(n=>{if(t||R.current)return;let r=e.includes(`mp4`)?`mp4`:`webm`;L.current={base64:n,mimetype:e.split(`;`)[0].trim(),size:i.size,filename:`voice-${Date.now()}.${r}`},a.loadBlob(i).then(()=>{if(!(t||R.current)){try{a.setOptions({interact:!0})}catch{}try{a.setTime(0)}catch{}}}).catch(()=>{}),M(`preview`)}).catch(()=>_(`failed`))}),r.start();let i=performance.now();s=window.setInterval(()=>{let e=performance.now()-i,t=Math.floor(e/1e3);P(e=>e===t?e:t)},250),A.current=s}).catch(e=>{t||_(D(e))}),()=>{t=!0,s!==null&&clearInterval(s);try{c?.state===`recording`&&c.stop()}catch{}try{o.stopMic()}catch{}a.destroy(),b.current===a&&(b.current=null),x.current===o&&(x.current=null),S.current===c&&(S.current=null)}},[]),h(t.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.18},className:n(`flex items-center gap-1.5 rounded-wx-lg border border-wx-border bg-wx-bg px-2 py-2`),children:[m(k,{Icon:i,onClick:()=>{R.current=!0;try{S.current?.state===`recording`&&S.current.stop()}catch{}try{x.current?.stopMic()}catch{}try{b.current?.pause()}catch{}c()},ariaLabel:v(`cancelRecording`),intent:`ghost`}),h(`div`,{className:`flex h-9 min-w-0 flex-1 items-center gap-2 rounded-full bg-wx-bg-elevated px-3`,children:[j===`recording`&&m(`span`,{"aria-hidden":`true`,className:`h-2 w-2 shrink-0 animate-pulse rounded-full bg-wx-danger`}),m(`div`,{ref:y,"aria-hidden":`true`,className:n(`min-w-0 flex-1 overflow-hidden`,j!==`preview`&&`pointer-events-none`)}),m(`span`,{className:`shrink-0 font-mono text-xs tabular-nums text-wx-fg-muted`,children:w(N)})]}),j===`recording`&&m(t.button,{type:`button`,onClick:()=>{try{S.current?.state===`recording`&&S.current.stop()}catch{}},"aria-label":v(`stopRecording`),whileHover:{scale:1.08},whileTap:{scale:.9},transition:{type:`spring`,stiffness:400,damping:22},className:n(`flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors`,`text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg`),children:m(g,{size:14})}),j===`preview`&&h(p,{children:[m(k,{Icon:F?a:o,onClick:()=>{let e=b.current;e&&(e.isPlaying()?e.pause():e.play())},ariaLabel:v(F?`pauseRecording`:`playPreview`),intent:`ghost`}),m(t.button,{type:`button`,onClick:()=>{let e=L.current;e&&r(e)},"aria-label":v(`sendCta`),whileHover:{scale:1.08},whileTap:{scale:.9},transition:{type:`spring`,stiffness:400,damping:22},className:n(`flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors`,`bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover`),children:m(s,{size:14})})]})]},`voice-recorder`)}function k({Icon:e,onClick:r,ariaLabel:i,intent:a,size:o=16}){let s=c();return m(t.button,{type:`button`,onClick:r,"aria-label":i,whileHover:{scale:1.08},whileTap:{scale:.9},transition:{type:`spring`,stiffness:400,damping:22},...s.parentHandlers,className:n(`flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors`,a===`primary`?`bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover`:`text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg`),children:m(e,{ref:s.iconRef,size:o})})}export{O as VoiceRecorderBar};
|
|
2
|
-
//# sourceMappingURL=widget-react-BK8heNFR.js.map
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={sender:`Gaia`,preview:`你好 👋 感谢你联系我们,我很快就会回复你…`,ageLabel:`4 小时`},t={"demo-news-1":{title:`Pioneer 2026:请预留日期`,excerpt:`10 月 8 日,我们将回到旧金山。9 点开放入场,10 点开始主题演讲。`,body:`## 活动亮点
|
|
2
|
-
|
|
3
|
-
今年的主题演讲聚焦于我们公开发布的成果和接下来的规划。现场演示,不放幻灯片。
|
|
4
|
-
|
|
5
|
-
- **Gaia 产品路线图** - 我们的 AI 在未来两个季度的发展方向。
|
|
6
|
-
- **客户故事** - 三个团队分享如何将首次响应时间缩短一半。
|
|
7
|
-
- **动手实验室** - 带上笔记本电脑,与我们的工程师一起搭建流程。
|
|
8
|
-
|
|
9
|
-
## 交通方式
|
|
10
|
-
|
|
11
|
-
会场位于 Embarcadero 海滨的 Pier 27 邮轮码头。最近的 BART 站是 Embarcadero,沿着水岸步行约 12 分钟。
|
|
12
|
-
|
|
13
|
-
## 门票
|
|
14
|
-
|
|
15
|
-
早鸟席位有限,将于下周开售。现有客户可优先购买,请留意你的收件箱。
|
|
16
|
-
|
|
17
|
-
> 无法亲自到场?主题演讲将进行直播,录像会在当天晚上上传到这里。`},"demo-news-2":{title:`四月发布的新功能`,excerpt:`三个全新的自动化触发器,以及快得多的收件箱搜索。`,body:`<p>四月是繁忙的一个月。以下是所有新发布的内容,一目了然:</p>
|
|
18
|
-
<table>
|
|
19
|
-
<thead><tr><th>领域</th><th>变化</th><th>为什么重要</th></tr></thead>
|
|
20
|
-
<tbody>
|
|
21
|
-
<tr><td>收件箱搜索</td><td>输入时即时显示结果</td><td>5 万条会话,不到 100 毫秒</td></tr>
|
|
22
|
-
<tr><td>自动化</td><td>三个新触发器</td><td>放弃购物车、重新访问页面、沉默的访客</td></tr>
|
|
23
|
-
<tr><td>回复编辑器</td><td>切换标签页后草稿依然保留</td><td>不会再丢失写到一半的回复</td></tr>
|
|
24
|
-
<tr><td>深色模式</td><td>首次渲染时不再闪白</td><td>在深色网站上加载更顺畅</td></tr>
|
|
25
|
-
</tbody>
|
|
26
|
-
</table>
|
|
27
|
-
<p>来看看新搜索的实际效果 - 你还没输完,结果就出现了:</p>
|
|
28
|
-
<img src="https://picsum.photos/seed/wexio-search/1024/576" alt="收件箱搜索即时返回结果" />
|
|
29
|
-
<p>点按图片可以放大查看。有任何需求吗?直接在这里回复 - 我们每一条都会阅读。</p>`},"demo-news-3":{title:`Gaia 现已支持 28 种语言`,excerpt:`自动检测访客的语言,或固定使用某一种语言。无需额外设置。`,body:`<p>Gaia 现在能以 28 种语言回复,并从访客的第一条消息自动检测语言。以下是我们最常被问到的问题:</p>
|
|
30
|
-
<details><summary>语言检测是如何工作的?</summary><p>Gaia 会读取开场消息,并用相同的语言回复。如果你的帮助文章有该语言的版本,Gaia 会引用;如果没有,就会根据最接近的内容作答,并提醒你缺失的部分。</p></details>
|
|
31
|
-
<details><summary>可以强制只使用一种语言吗?</summary><p>可以。在 <strong>设置 → AI → 语言</strong> 中固定一种语言,无论访客输入什么,Gaia 都会保持该语言。</p></details>
|
|
32
|
-
<details><summary>客服人员会看到什么?</summary><p>会话记录会保持你团队使用的语言,原始消息也会与译文一起保留。</p></details>
|
|
33
|
-
<p>快速看看 Gaia 在对话中途切换语言的样子:</p>
|
|
34
|
-
<img src="https://picsum.photos/seed/wexio-lang/1024/576" alt="Gaia 以多种语言回复" />`},"demo-news-4":{title:`将会话直接导入 Slack`,excerpt:`将任何传入的 webhook 连接到 Slack 频道。无需额外的对接代码。`,body:`## 两次点击即可连接
|
|
35
|
-
|
|
36
|
-
前往 **集成 → Slack**,点击 *连接*,并批准权限。选择新会话要进入的频道 - 大多数团队使用 \`#support\`。
|
|
37
|
-
|
|
38
|
-
## 你将获得
|
|
39
|
-
|
|
40
|
-
- 聊天开始的瞬间,Slack 就会收到消息,并附带返回收件箱的链接。
|
|
41
|
-
- 客服人员的回复会以线程形式排在原始消息下方。
|
|
42
|
-
- 直接在 Slack 中回复,我们会实时转发给访客。
|
|
43
|
-
|
|
44
|
-
## 同样支持 Webhook
|
|
45
|
-
|
|
46
|
-
已经在从自己的系统推送事件了吗?把任何 webhook 指向你的 Slack 频道,就能完全省去自定义集成的工作。`},"demo-news-5":{title:`Inbox 2.0:不用鼠标也能分流`,excerpt:`用于分配、暂缓和解决的新快捷键 - 全部用键盘完成。`,body:`<p>Inbox 2.0 以键盘为先。以下是按操作分类的速查表:</p>
|
|
47
|
-
<div data-type="tabs">
|
|
48
|
-
<div data-type="tab"><div data-tab-label>浏览</div><ul><li><code>j</code> / <code>k</code> - 下一条 / 上一条会话</li><li><code>g</code> 然后 <code>i</code> - 跳转到收件箱</li></ul></div>
|
|
49
|
-
<div data-type="tab"><div data-tab-label>操作</div><ul><li><code>e</code> - 解决</li><li><code>a</code> - 分配给我</li><li><code>s</code> - 暂缓</li></ul></div>
|
|
50
|
-
<div data-type="tab"><div data-tab-label>撰写</div><ul><li><code>Cmd+Enter</code> - 发送</li><li><code>/</code> - 快捷回复</li><li><code>Cmd+K</code> - 命令面板</li></ul></div>
|
|
51
|
-
</div>
|
|
52
|
-
<p>重新设计的收件箱 - 一切尽在指尖:</p>
|
|
53
|
-
<img src="https://picsum.photos/seed/wexio-inbox/1024/576" alt="重新设计、以键盘为先的收件箱" />`},"demo-news-6":{title:`自助式数据导出与删除`,excerpt:`一键处理访客的数据请求。开箱即符合 GDPR。`,body:`## 导出
|
|
54
|
-
|
|
55
|
-
在任意访客的个人资料中,点击 **导出数据**,即可生成一个 JSON 文件,包含我们保存的所有消息、事件和属性。文件会立即下载,并将该请求记录下来供你备查。
|
|
56
|
-
|
|
57
|
-
## 删除
|
|
58
|
-
|
|
59
|
-
**删除数据** 会移除该访客,并通过同一个 webhook 桥接,从收件箱、搜索以及所有已连接的 CRM 中清除其消息。此操作会被记录,且无法撤销。
|
|
60
|
-
|
|
61
|
-
## 给你的数据保护官
|
|
62
|
-
|
|
63
|
-
- 每次导出和删除都有时间戳和执行人。
|
|
64
|
-
- 保留期限可按工作区配置。
|
|
65
|
-
- 如有需要,可提供数据处理协议。`},"demo-news-7":{title:`移动 SDK 测试版:iOS 和 Android`,excerpt:`把同一段会话带进你的原生应用。测试名额现已开放。`,body:`## 一段会话,任意界面
|
|
66
|
-
|
|
67
|
-
在你网站上开始聊天的访客,可以在你的应用中继续,已登录且保留完整记录。同一个 Gaia、同一批客服人员、同一个收件箱。
|
|
68
|
-
|
|
69
|
-
## 测试版内容
|
|
70
|
-
|
|
71
|
-
- 适用于 SwiftUI 和 Jetpack Compose 的原生启动器。
|
|
72
|
-
- 新回复的推送通知。
|
|
73
|
-
- 离线队列,网络恢复后消息会自动发出。
|
|
74
|
-
|
|
75
|
-
## 加入我们
|
|
76
|
-
|
|
77
|
-
我们每周会接入几个团队。请在这里回复你的平台和大致的月活跃用户数,我们会给你发一个密钥。
|
|
78
|
-
|
|
79
|
-
> 测试版意味着还有些粗糙之处。我们每周都会发布修复,也会阅读每一份错误报告。`},"demo-news-8":{title:`看看哪些 AI 回答真正有效`,excerpt:`跟踪 Gaia 的每条回复最终是解决了问题、转接给真人,还是访客离开了。`,body:`## 全新视图
|
|
80
|
-
|
|
81
|
-
**分析 → AI 成效** 会根据后续发生的情况,对 Gaia 的每条回复进行分类:
|
|
82
|
-
|
|
83
|
-
- **已解决** - 访客得到了所需的答案,满意地离开。
|
|
84
|
-
- **已转接** - Gaia 将会话交给了真人。
|
|
85
|
-
- **流失** - 访客在问题未解决前就关闭了小组件。
|
|
86
|
-
|
|
87
|
-
## 单篇文章洞察
|
|
88
|
-
|
|
89
|
-
点进任意帮助文章,查看 Gaia 引用它的频率,以及这些引用是否真的解决了问题。高流量文章的解决率偏低,通常说明内容需要重写,而不是 AI 有问题。
|
|
90
|
-
|
|
91
|
-
## 付诸行动
|
|
92
|
-
|
|
93
|
-
按流失率排序,找出 Gaia 最吃力的问题,再新增一个流程或更精准的文章来填补空白。`},tags:{events:`活动`,product:`产品`,release:`发布`,ai:`AI`,languages:`语言`,integrations:`集成`,slack:`Slack`,inbox:`收件箱`,privacy:`隐私`,security:`安全`,mobile:`移动端`,beta:`测试版`,analytics:`分析`},categories:{company:`公司`,product:`产品`,engineering:`工程`}},n={categories:{"demo-cat-getting-started":{title:`快速入门`,description:`安装小组件并配置你的第一段会话。`},"demo-cat-automation":{title:`自动化`,description:`流程、触发器和 AI 自动回复。`},"demo-cat-integrations":{title:`集成`,description:`连接你的 CRM、Slack 和 CMS。`},"demo-cat-billing":{title:`账单与套餐`,description:`价格档位、发票和席位管理。`}},articles:{"demo-article-install":{title:`在你的网站上安装 Wexio 小组件`,excerpt:`只需 30 秒,把一段代码粘贴到结束 </body> 标签之前即可。`,body:`## 添加加载器脚本
|
|
94
|
-
|
|
95
|
-
将这段代码粘贴到每一个你希望显示小组件的页面:
|
|
96
|
-
|
|
97
|
-
\`\`\`html
|
|
98
|
-
<script
|
|
99
|
-
src="https://cdn.wexio.io/widget/loader.js"
|
|
100
|
-
data-public-key="pk_live_YOUR_KEY"
|
|
101
|
-
><\/script>
|
|
102
|
-
\`\`\`
|
|
103
|
-
|
|
104
|
-
加载器会在右下角添加一个悬浮的启动按钮。点击即可打开聊天面板。
|
|
105
|
-
|
|
106
|
-
## 验证安装是否成功
|
|
107
|
-
|
|
108
|
-
- 访问包含这段代码的页面。
|
|
109
|
-
- 打开浏览器控制台。
|
|
110
|
-
- 你应该会看到 \`[wexio] widget mounted\`。
|
|
111
|
-
|
|
112
|
-
## 自定义外观
|
|
113
|
-
|
|
114
|
-
小组件会从你的控制台读取品牌颜色。请在 **设置 → 品牌** 中更新。
|
|
115
|
-
|
|
116
|
-
> 需要帮助吗?请点击下方的“还需要帮助?给我们发消息”,我们会一步步带你完成。`},"demo-article-flows":{title:`创建你的第一个自动化流程`,excerpt:`拖放即可,五分钟内上线欢迎机器人。`,body:`## 什么是流程?
|
|
117
|
-
|
|
118
|
-
流程是由会话步骤 - 问题、回复和条件 - 组成的小型树状结构,每当访客符合某个触发器时就会运行。
|
|
119
|
-
|
|
120
|
-
## 三种触发器类型
|
|
121
|
-
|
|
122
|
-
1. **访客打开了小组件** - 欢迎首次到访的访客。
|
|
123
|
-
2. **访客提出了问题** - Gaia(AI)会尝试回答;如果无法回答,就由流程接管。
|
|
124
|
-
3. **收到 Webhook** - 你的 CMS 或电商平台推送事件,流程便会在正确的聊天中启动。
|
|
125
|
-
|
|
126
|
-
## 最佳实践
|
|
127
|
-
|
|
128
|
-
- 第一条回复保持在 80 个字符以内。
|
|
129
|
-
- 提供 2-3 个快捷回复按钮,而不是开放式提问。
|
|
130
|
-
- 始终提供退出途径 - *“转接真人”*。`},"demo-article-slack":{title:`将聊天转发到 Slack`,excerpt:`将每一段新会话同步到你选择的 Slack 频道。`,body:`## 连接你的工作区
|
|
131
|
-
|
|
132
|
-
在 **集成 → Slack** 中点击 *连接*。系统会将你带到 Slack 的 OAuth 页面 - 请批准所需权限(\`chat:write\`、\`channels:read\`)。
|
|
133
|
-
|
|
134
|
-
## 选择频道
|
|
135
|
-
|
|
136
|
-
授权后,选择目标频道(或新建一个,例如 \`#support\`)。
|
|
137
|
-
|
|
138
|
-
## 会转发哪些内容
|
|
139
|
-
|
|
140
|
-
- 开场消息,并附带返回 wexio 收件箱的深层链接。
|
|
141
|
-
- 客服人员的回复,以线程消息呈现。
|
|
142
|
-
- 访客的回复,通过 SSE 桥接实时送达。
|
|
143
|
-
|
|
144
|
-
## 反向传送
|
|
145
|
-
|
|
146
|
-
客服人员也可以 *从* Slack 回复 - wexio 会监听 Slack 线程中的回复,并回传到小组件。`},"demo-article-billing":{title:`更新你的套餐和账单信息`,excerpt:`切换档位、更换银行卡或下载发票。`,body:`## 套餐
|
|
147
|
-
|
|
148
|
-
- **Free** - 1 个小组件、基础功能、“Powered by Wexio”标识。
|
|
149
|
-
- **Standard** - 不限数量的小组件、自动化、集成。
|
|
150
|
-
- **Enterprise** - 白标、SLA、专属支持。
|
|
151
|
-
|
|
152
|
-
## 更改套餐
|
|
153
|
-
|
|
154
|
-
**设置 → 账单 → 更改套餐**。升级立即生效;降级将在当前计费周期结束时生效。
|
|
155
|
-
|
|
156
|
-
## 发票
|
|
157
|
-
|
|
158
|
-
在 **账单 → 历史记录** 中可将每张发票下载为 PDF。每次续费时,我们也会把副本发送到你的邮箱。`},"demo-article-theme":{title:`自定义小组件主题`,excerpt:`让小组件契合你的品牌 - 颜色、圆角、深色模式。`,body:`## 品牌颜色
|
|
159
|
-
|
|
160
|
-
在 **设置 → 品牌** 中设置:
|
|
161
|
-
|
|
162
|
-
- **主色** - 用于启动按钮、发送按钮和焦点轮廓。
|
|
163
|
-
- **背景** - 面板表面(浅色)以及对应的深色模式配色。
|
|
164
|
-
|
|
165
|
-
## 圆角
|
|
166
|
-
|
|
167
|
-
从 \`sm\`、\`md\`、\`lg\` 中选择,呈现更利落或更柔和的外观。更改会实时应用到所有页面上的每个小组件。
|
|
168
|
-
|
|
169
|
-
## 深色模式
|
|
170
|
-
|
|
171
|
-
默认 = 跟随访客的系统偏好。如果你的网站本身不支持深色模式,可固定为 **始终浅色** 或 **始终深色**。`},"demo-article-handoff":{title:`从 Gaia 转接给真人客服`,excerpt:`当 AI 不够用时 - 把访客转给团队成员。`,body:`## 触发条件
|
|
172
|
-
|
|
173
|
-
在以下情况下,Gaia 会自动转接:
|
|
174
|
-
|
|
175
|
-
- 访客输入 *“我要和真人沟通”*(或任何本地化的说法)。
|
|
176
|
-
- 同一个问题被问了两次仍未解决。
|
|
177
|
-
- 访客的意图符合路由规则(例如:账单 → 财务团队)。
|
|
178
|
-
|
|
179
|
-
## 路由
|
|
180
|
-
|
|
181
|
-
配置 **路由 → 规则**,将特定意图导向指定的团队或客服人员。同时支持轮流分配和负载最低优先。
|
|
182
|
-
|
|
183
|
-
## 非工作时间
|
|
184
|
-
|
|
185
|
-
如果没有任何客服人员在线,Gaia 会提供回电或邮件转接表单,而不是假装有人可以接听。`},"demo-article-crm":{title:`将会话同步到你的 CRM`,excerpt:`把每一段聊天推送到 HubSpot、Salesforce 或 Pipedrive。`,body:`## 支持的 CRM
|
|
186
|
-
|
|
187
|
-
- HubSpot(OAuth)
|
|
188
|
-
- Salesforce(OAuth)
|
|
189
|
-
- Pipedrive(API 令牌)
|
|
190
|
-
- 通过 webhook 自定义
|
|
191
|
-
|
|
192
|
-
## 同步的内容
|
|
193
|
-
|
|
194
|
-
- 新会话会创建联系人(如果尚不存在)和一条备注。
|
|
195
|
-
- 客服人员的回复会追加到联系人的时间线。
|
|
196
|
-
- 在 wexio 中应用的标签会同步到 CRM。
|
|
197
|
-
|
|
198
|
-
## 双向同步
|
|
199
|
-
|
|
200
|
-
在 CRM 中添加的客服备注,可通过 webhook 接收器传回 wexio - 请参阅 *集成 → Webhook → 入站*。`},"demo-article-shortcuts":{title:`客服人员键盘快捷键`,excerpt:`分流速度翻倍 - 完全不需要鼠标。`,body:"## 收件箱导航\n\n- `j` / `k` - 下一条 / 上一条会话\n- `e` - 解决\n- `a` - 分配给我\n- `s` - 暂缓\n\n## 回复编辑器\n\n- `Cmd+Enter` - 发送\n- `/` - 打开快捷回复选择器\n- `Cmd+K` - 命令面板(包含所有功能)\n\n## 小提示\n\n将光标悬停在控制台中的任意按钮上 - 提示文字会显示它的快捷键。"}},tags:{setup:`设置`,install:`安装`,automation:`自动化`,flows:`流程`,integrations:`集成`,slack:`Slack`,billing:`账单`,plans:`套餐`,design:`设计`,ai:`AI`,crm:`CRM`,productivity:`效率`,inbox:`收件箱`}},r={visitorName:`你`,messages:{"m-demo-1":{text:`你好 👋 我是 Gaia,Wexio 的 AI。有什么我可以帮忙的吗?`,ageLabel:`上午 9:41`,buttons:[`费用是怎么计算的?`,`它能做什么?`,`转接真人`]},"m-demo-2":{text:`可以让我看看小组件长什么样吗?`,ageLabel:`上午 9:41`},"m-demo-3":{text:``,ageLabel:`上午 9:42`,mediaAlts:[`产品截图`]},"m-demo-4":{text:``,ageLabel:`上午 9:42`,mediaAlts:[`旋转的地球`]},"m-demo-5":{text:`太棒了!😄 这里有几张我们团队的画面。`,ageLabel:`上午 9:43`},"m-demo-6":{text:`几个控制台亮点`,ageLabel:`上午 9:43`,mediaAlts:[`控制台总览`,`分析`,`收件箱`,`报表`]},"m-demo-7":{text:``,ageLabel:`上午 9:44`,mediaAlts:[`快速导览`]},"m-demo-8":{text:``,ageLabel:`上午 9:44`,mediaAlts:[`语音消息`]},"m-demo-9":{text:``,ageLabel:`上午 9:45`,mediaAlts:[`入门指南`]},"m-demo-9b":{text:``,ageLabel:`上午 9:45`,mediaAlts:[`Wexio 集成`]},"m-demo-10":{text:`准备好亲自试试了吗?`,ageLabel:`上午 9:45`,buttons:[`打开沙盒`,`预约通话`,`继续聊天`]}}},i={messengerDescription:`我们的团队也可以提供帮助`,messengerMessage:`你好 👋 有任何问题都可以问我们,或选择一个快捷操作。`},a={welcome:{system:`你现在正在与我们的 AI 助手 Gaia 聊天。`,hint:`提示:随时都可以添加附件或录制语音消息。`,greeting:`你好 👋 我是 Gaia,Wexio 的 AI。有任何问题都可以问我,或选择一个快捷操作开始。`},replies:{pricing:{text:`Wexio 的一个小组件可免费使用;付费套餐每月 $39 起,并解锁自动化、集成和白标功能。`,planBtn:`查看套餐档位`,salesBtn:`联系销售`},gaia:{text:`Gaia 是能即时回答访客问题的 AI 代理。她会从你的帮助文章中学习,并在无法协助时转接给真人。`,handoffBtn:`转接是如何工作的?`},human:{text:`没问题 - 我会邀请团队的 Alex 加入。工作时间内,他们会在几分钟内回复你。`},fallback:{text:`明白了 - 我去查一下,稍后再回复你。`},voice:{text:`收到你的语音消息了 - 我去确认一下,再回复你。`}}},o={main:`准备好亲自试试了吗?`,billing:`谢谢!我已将你的发票问题转给账单团队。`,integrations:`我要如何将 WhatsApp 连接到我的账号?`},s={recentMessage:e,news:t,help:n,conversation:r,playgroundDefaults:i,messenger:a,threads:o};export{r as conversation,s as default,n as help,a as messenger,t as news,i as playgroundDefaults,e as recentMessage,o as threads};
|
|
201
|
-
//# sourceMappingURL=widget-react-BKZZeBk72.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Home`,messages:`Messages`,help:`Help`,news:`News`,profile:`Profile`},header:{close:`Close`,back:`Back`,conversationSubtitle:`Our team can also help`,helpTitle:`Help`,newsTitle:`News`,expand:`Expand widget`,collapse:`Collapse widget`,messagesTitle:`Messages`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Open chat`,close:`Close chat`,panel:`Chat`},tabError:{title:`Something went wrong`,hint:`This section couldn't be shown.`,retry:`Try again`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Hi there 👋`,greetingSubheadline:`How can we help?`,askTitle:`Ask a question`,askSubtitle:`Our bot and team can help`,recentMessageLabel:`Recent message`,recentMessageTitle:`Recent message`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4h`,recentMessageSample:`Hi there 👋 Thanks for reaching out - we'll be right back with you.`,featuredArticleLoading:`Featured article`,featuredArticleTap:`Tap to read`,featuredArticleEmpty:`Pick an article`,featuredArticleSetUp:`Configure this block in your dashboard`,featuredArticleDemoEyebrow:`Pioneer · Save the date`,featuredArticleDemoHeadline:`October 8, 2026`,featuredArticleDemoSubline:`San Francisco · In-person + virtual`,featuredArticleDemoCta:`See the launch agenda`,seeAgenda:`See the launch agenda`,browseHelp:`Browse Help`,whatsNew:`What's new`,searchPlaceholder:`Search for help`,pinnedArticlesTitle:`Read these first`,popularArticlesTitle:`Popular articles`,pinnedArticleRow:`Pinned article {n}`,newsPreviewTitle:`Latest news`,seeAll:`See all`,newsPreviewRow:`News update {n}`,myConversationsTitle:`Your conversations`,myConversationsEmpty:`View your conversations`,teamStatusOnline:`We're online`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Today`,yesterday:`Yesterday`,unreadMessages:`Unread messages`,emptyTitle:`No messages yet`,emptyBody:`Start a conversation and our team will get back to you here.`,sendCta:`Send us a message`,attach:`Attach a file`,commands:`Quick commands`,record:`Record a voice message`,stopRecording:`Stop recording`,recording:`Recording…`,uploading:`Uploading…`,uploadFailed:`Upload failed`,voiceDenied:`Microphone access denied`,voiceUnsupported:`Voice recording isn't supported in this browser`,fileTooLarge:`File is too large (max 10MB)`,fileMimeNotAllowed:`This file type isn't supported`,emoji:`Insert emoji`,cancelRecording:`Cancel recording`,pauseRecording:`Pause recording`,resumeRecording:`Resume recording`,playPreview:`Play recording`,emojiPicker:`Emoji picker`,emojiCategories:{suggested:`Recently used`,smileysPeople:`Smileys & People`,animalsNature:`Animals & Nature`,foodDrink:`Food & Drink`,travelPlaces:`Travel & Places`,activities:`Activities`,objects:`Objects`,symbols:`Symbols`,flags:`Flags`},emojiSearch:`Search…`,playAudio:`Play`,pauseAudio:`Pause`,openAudio:`Open audio`,removeAttachment:`Remove`,aiAssistant:`AI assistant`,operator:`Operator`,openImage:`Open image`,openPreview:`Open preview`,play:`Play`,pause:`Pause`,typing:`typing…`,aiThinking:`thinking…`,aiSearching:`browsing…`,typingSomeone:`Someone`,signInToChat:`Please sign in to start the conversation.`,signInUnavailable:`Sign-in is not available right now.`,googleSignIn:`Sign in with Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Sign in with a passkey`,passkeyRegister:`First time? Set up a passkey`,passkeyError:`Couldn't sign in. Please try again.`,passkeyNoCredential:`No passkey on this device yet. Tap “Set up a passkey” to create one.`,googleSignInDemo:`Continue with Google`,connectingOperator:`An operator has been assigned, please wait…`,assignment:{eta:{minutes:`An operator will reply in about {minutes} min`,soft:`We usually reply within a few minutes`,businessHours:`The team will be back at {time}`}},withOperator:`You're now chatting with {name}`,operatorConnected:`Operator connected`,chatResolved:`Conversation resolved`,chatResolvedByYou:`Conversation resolved by you`,chatResolvedByOperator:`Conversation resolved by {name}`,resolveConversation:`Resolve conversation`,sources:`Sources`,moreSources:`+{count} more`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`,fileFallback:`File`},prechat:{title:`Before we start`,subtitle:`A few quick details so our team can help you faster.`,labelName:`Name`,labelEmail:`Email`,labelPhone:`Phone`,labelCustom:`Details`,required:`Required`,invalidEmail:`Please enter a valid email`,invalidPhone:`Please enter a valid phone number`,submit:`Continue`,locked:`Verified - can't be changed`,submitFailed:`Couldn't submit - please try again.`},help:{searchPlaceholder:`Search for help`,emptyTitle:`No articles yet`,emptyBody:`Nothing here yet.`,back:`Back`,helpful:`Was this helpful?`,yes:`Yes`,no:`No`,thanks:`Thanks for the feedback.`,unresolvedCta:`Still need help? Message us`,noResults:`No results`,articleNotFound:`Article not found`,articleNotTranslated:`This article isn't available in your language yet.`,writtenBy:`Written by {names}`,relatedTitle:`Related articles`,collectionsCount:`{count, plural, =0 {No collections} one {# collection} other {# collections}}`,articlesCount:`{count, plural, =0 {No articles} one {Articles: #} other {Articles: #}}`,authorsByline:`Authors {first}{remaining, plural, =0 {} one { and # more} other { and # more}}`},news:{emptyTitle:`No updates yet`,emptyBody:`Check back here for product news and announcements.`,helpful:`Was this article helpful?`,yes:`Yes`,no:`No`,thanks:`Thanks for the feedback.`,searchPlaceholder:`Search news`,noResults:`No matching posts`,editedAt:`edited {when}`,articleNotFound:`Article not found.`,articleNotTranslated:`This post isn't available in your language yet.`,readOriginal:`Read the original`,relatedTitle:`Related`,writtenBy:`Written by {names}`,unread:`Unread news`},reactions:{ariaLabel:`Reactions`,tapAria:`React with {emoji}`},languageSelector:{title:`Read in another language`,ariaLabel:`Article languages`},branding:{poweredBy:`Powered by`,wexio:`Wexio`},sound:{mute:`Mute notification sounds`,unmute:`Unmute notification sounds`},article:{tableOfContents:`Table of contents`,tabFallback:`Tab {n}`},peek:{newMessage:`New message`,dismiss:`Dismiss`,aiAssistant:`AI assistant`,operator:`Operator`,quickReplies:`Quick replies`},lightbox:{mediaPreview:`Media preview`,close:`Close preview`,previous:`Previous`,next:`Next`},authError:{turnstileTitle:`Couldn't verify your browser`,turnstileBody:`We weren't able to complete the security check. This is sometimes a network or ad-blocker issue. Try again, or reload the page.`,genericTitle:`Couldn't connect`,genericBody:`Something went wrong while signing you in. Please try again in a moment.`,retry:`Try again`,dismiss:`Dismiss`,visitorLimitTitle:`Test visitor limit reached`,visitorLimitBody:`Too many test visitors today. Reuse an existing test visitor or try again tomorrow.`},profile:{title:`Your profile`,subtitle:`Update your info and how the widget behaves.`,uploadAvatar:`Change photo`,removeAvatar:`Remove photo`,avatarUploading:`Uploading…`,preferencesHeading:`Preferences`,preferenceLanguage:`Language`,preferenceDesktopNotifications:`Desktop notifications`,preferenceDesktopNotificationsHint:`Get a system notification when the widget isn't focused.`,preferenceThemeMode:`Theme`,themeAuto:`Match system`,themeLight:`Light`,themeDark:`Dark`,themeLocked:`Theme can't be changed.`,pinnedHint:`Not editable.`,requiredHint:`Required`,invalidEmail:`Please enter a valid email address.`,invalidPhone:`Use international format, e.g. +14155552671.`,noFields:`There's nothing to edit here yet.`,save:`Save changes`,saving:`Saving…`,cancel:`Discard`,saved:`Changes saved.`,loading:`Loading profile…`,loadError:`Couldn't load your profile. Please try again.`,retry:`Retry`,errorFieldNotAllowed:`This field isn't editable in this widget. Try refreshing.`,errorFieldPinned:`This field is locked by your account.`,errorFieldInvalid:`Some values aren't valid. Check the highlighted fields.`,errorThemeLocked:`Theme can't be changed.`,errorFeatureDisabled:`Profile editing isn't available.`,errorGeneric:`Couldn't save your changes. Please try again.`,notificationsBlocked:`Notifications are blocked by the browser. Update site permissions to enable.`,notificationsRequest:`Allow notifications when prompted to enable this.`,systemFields:{avatar:`Photo`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`WhatsApp opt-in`,webVerified:`Verified visitor`,firstName:`First name`,lastName:`Last name`,username:`Username`,language:`Language`,email:`Email`,phone:`Phone`,company:`Company`,location:`Location`,isValid:`Account valid`,chatStatus:`Chat status`,chatCategory:`Chat category`,priority:`Priority`,leadSource:`Lead source`,leadStatus:`Lead status`,interestLevel:`Interest level`,productInterest:`Product interest`,budgetRange:`Budget`,purchaseTimeline:`Purchase timeline`,lastMessageSentAt:`Last message sent`,lastMessageReceivedAt:`Last message received`,lastSeenAt:`Last seen`,firstMessageReceivedAt:`First contact`,isBlocked:`Blocked`,registrationDate:`Registered`,aiAvailable:`AI assistance`,totalMessagesSent:`Messages sent`,totalMessagesReceived:`Messages received`,totalAiMessagesSent:`AI messages sent`,totalBotMessagesSent:`Bot messages sent`,totalUserMessagesSent:`Operator messages sent`,flowCompletionRate:`Flow completion rate`,lastFlowCompleted:`Last completed flow`,totalFlowsStarted:`Flows started`,totalFlowsCompleted:`Flows completed`},systemFieldOptions:{chatStatus:{ISSUE:`Issue`,RESOLVED:`Resolved`,PENDING:`Pending`,IN_PROGRESS:`In progress`,CLOSED:`Closed`},chatCategory:{SALES:`Sales`,SUPPORT:`Support`,BILLING:`Billing`,FEEDBACK:`Feedback`,GENERAL:`General`,OTHER:`Other`},priority:{LOW:`Low`,MEDIUM:`Medium`,HIGH:`High`,URGENT:`Urgent`},leadStatus:{NEW:`New`,CONTACTED:`Contacted`,QUALIFIED:`Qualified`,NEGOTIATING:`Negotiating`,WON:`Won`,LOST:`Lost`},interestLevel:{LOW:`Low`,MEDIUM:`Medium`,HIGH:`High`,VERY_HIGH:`Very high`}},selectOption:`Select an option`,noOptions:`No options configured.`},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`},notification:{newMessage:`New message`,image:`Image`,video:`Video`,voiceMessage:`Voice message`,attachment:`Attachment`}};export{e as default};
|
|
2
|
-
//# sourceMappingURL=widget-react-BXlRglvP2.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Home`,messages:`Berichten`,help:`Help`,news:`Nieuws`,profile:`Profiel`},header:{close:`Sluiten`,back:`Terug`,conversationSubtitle:`Ons team kan ook helpen`,helpTitle:`Help`,newsTitle:`Nieuws`,expand:`Widget uitklappen`,collapse:`Widget inklappen`,messagesTitle:`Berichten`,downloadTranscript:`Gesprek downloaden`,moreActions:`Meer`},launcher:{open:`Chat openen`,close:`Chat sluiten`,panel:`Chat`},tabError:{title:`Er is iets misgegaan`,hint:`Dit onderdeel kon niet worden weergegeven.`,retry:`Opnieuw proberen`},chunkError:{failed:`Kan niet laden`,retry:`Opnieuw proberen`},home:{greetingHeadline:`Hoi 👋`,greetingSubheadline:`Hoe kunnen we helpen?`,askTitle:`Stel een vraag`,askSubtitle:`Onze bot en ons team helpen je graag`,recentMessageLabel:`Recent bericht`,recentMessageTitle:`Recent bericht`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 u`,recentMessageSample:`Hoi 👋 Bedankt voor je bericht – we komen zo bij je terug.`,featuredArticleLoading:`Uitgelicht artikel`,featuredArticleTap:`Tik om te lezen`,featuredArticleEmpty:`Kies een artikel`,featuredArticleSetUp:`Stel dit blok in via je dashboard`,featuredArticleDemoEyebrow:`Pioneer · Save the date`,featuredArticleDemoHeadline:`8 oktober 2026`,featuredArticleDemoSubline:`San Francisco · in persoon + virtueel`,featuredArticleDemoCta:`Bekijk de launchagenda`,seeAgenda:`Bekijk de launchagenda`,browseHelp:`Help doorbladeren`,whatsNew:`Wat is er nieuw`,searchPlaceholder:`Zoeken in help`,pinnedArticlesTitle:`Lees deze eerst`,popularArticlesTitle:`Populaire artikelen`,pinnedArticleRow:`Vastgezet artikel {n}`,newsPreviewTitle:`Laatste nieuws`,seeAll:`Alles bekijken`,newsPreviewRow:`Nieuwsupdate {n}`,myConversationsTitle:`Jouw gesprekken`,myConversationsEmpty:`Bekijk je gesprekken`,teamStatusOnline:`We zijn online`,teamStatusReplyInstant:`Antwoordt meestal direct`,teamStatusReplyMinutes:`Antwoordt meestal binnen enkele minuten`,teamStatusReplyHours:`Antwoordt meestal binnen een paar uur`,teamStatusReplyDay:`Antwoordt meestal binnen een dag`,teamStatusAiOnline:`{name} kan je nu helpen`,teamStatusOperatorsBack:`Medewerkers zijn terug {when}`,teamStatusOfflineUntil:`We zijn er niet, terug {when}`,teamStatusOfflineSoon:`We zijn er niet, straks terug`,recentMessageAttachment:`Bijlage`},messages:{today:`Vandaag`,yesterday:`Gisteren`,unreadMessages:`Ongelezen berichten`,emptyTitle:`Nog geen berichten`,emptyBody:`Start een gesprek – ons team antwoordt hier.`,sendCta:`Stuur ons een bericht`,attach:`Bestand bijvoegen`,commands:`Snelle commando's`,record:`Spraakbericht opnemen`,stopRecording:`Opname stoppen`,recording:`Opnemen…`,uploading:`Uploaden…`,uploadFailed:`Uploaden mislukt`,voiceDenied:`Microfoontoegang geweigerd`,voiceUnsupported:`Spraakopname wordt niet ondersteund in deze browser`,fileTooLarge:`Bestand is te groot (max. 10 MB)`,fileMimeNotAllowed:`Dit bestandstype wordt niet ondersteund`,emoji:`Emoji invoegen`,cancelRecording:`Opname annuleren`,pauseRecording:`Opname pauzeren`,resumeRecording:`Opname hervatten`,playPreview:`Opname afspelen`,emojiPicker:`Emoji-keuze`,emojiCategories:{suggested:`Onlangs gebruikt`,smileysPeople:`Smileys & mensen`,animalsNature:`Dieren & natuur`,foodDrink:`Eten & drinken`,travelPlaces:`Reizen & plaatsen`,activities:`Activiteiten`,objects:`Objecten`,symbols:`Symbolen`,flags:`Vlaggen`},emojiSearch:`Zoeken…`,playAudio:`Afspelen`,pauseAudio:`Pauzeren`,openAudio:`Audio openen`,removeAttachment:`Verwijderen`,aiAssistant:`AI-assistent`,operator:`Medewerker`,openImage:`Afbeelding openen`,openPreview:`Voorvertoning openen`,play:`Afspelen`,pause:`Pauzeren`,typing:`typt…`,aiThinking:`denkt na…`,aiSearching:`doorzoekt…`,typingSomeone:`Iemand`,signInToChat:`Meld je aan om het gesprek te starten.`,signInUnavailable:`Aanmelden is op dit moment niet beschikbaar.`,googleSignIn:`Aanmelden met Google`,googleUnavailable:`Inloggen met Google is niet beschikbaar. Controleer je verbinding of adblocker en probeer het opnieuw.`,passkeySignIn:`Aanmelden met een passkey`,passkeyRegister:`Eerste keer? Maak een passkey aan`,passkeyError:`Aanmelden is mislukt. Probeer het opnieuw.`,passkeyNoCredential:`Nog geen passkey op dit apparaat – tik op «Maak een passkey aan» om er een te maken.`,googleSignInDemo:`Doorgaan met Google`,connectingOperator:`Er is een medewerker toegewezen, een moment geduld…`,assignment:{eta:{minutes:`Een medewerker reageert over ongeveer {minutes} min`,soft:`We reageren meestal binnen een paar minuten`,businessHours:`Het team is weer bereikbaar om {time}`}},withOperator:`Je chat nu met {name}`,operatorConnected:`Medewerker verbonden`,chatResolved:`Gesprek opgelost`,chatResolvedByYou:`Gesprek door jou opgelost`,chatResolvedByOperator:`Gesprek opgelost door {name}`,resolveConversation:`Gesprek oplossen`,sources:`Bronnen`,moreSources:`+{count} meer`,askQuestion:`Stel een vraag`,previewYou:`Jij: {text}`,threadsEmptyTitle:`Nog geen gesprekken`,threadsEmptyBody:`Start een gesprek en het verschijnt hier.`,format:{bold:`Vet`,italic:`Cursief`,underline:`Onderstrepen`,strikethrough:`Doorhalen`,bulletList:`Lijst met opsommingstekens`,numberedList:`Genummerde lijst`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Opslaan`,linkCancel:`Annuleren`,monospace:`Monospace`},queued:`Wachten op verbinding`,notDelivered:`Niet bezorgd`,retry:`Opnieuw proberen`,offlineBanner:`Je bent offline`,backOnline:`Weer online`,threadsErrorTitle:`Je gesprekken konden niet worden geladen`,threadsErrorBody:`Controleer je verbinding en probeer het opnieuw.`,giphy:{title:`GIF's en stickers`,searchPlaceholder:`Zoek op GIPHY`,clear:`Wissen`,tabGifs:`GIF's`,tabStickers:`Stickers`,error:`Kan niet laden`,retry:`Opnieuw proberen`,empty:`Geen resultaten`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Naar laatste bericht`,conversationClosed:`Dit gesprek is gesloten`,startNewConversation:`Nieuw gesprek starten`,conversationBlocked:`Dit gesprek is geblokkeerd`,visitorBlocked:`Je kunt geen berichten meer sturen`,conversationClosedTitle:`Dat was het 👋`,conversationClosedHint:`Dit gesprek is gesloten. Start gerust een nieuw gesprek wanneer je wilt.`,fileFallback:`Bestand`},prechat:{title:`Voordat we beginnen`,subtitle:`Een paar snelle gegevens, zodat ons team je sneller kan helpen.`,labelName:`Naam`,labelEmail:`E-mail`,labelPhone:`Telefoon`,labelCustom:`Details`,required:`Verplicht`,invalidEmail:`Voer een geldig e-mailadres in`,invalidPhone:`Voer een geldig telefoonnummer in`,submit:`Doorgaan`,locked:`Geverifieerd - niet te wijzigen`,submitFailed:`Versturen is mislukt – probeer het opnieuw.`},help:{searchPlaceholder:`Zoeken in help`,emptyTitle:`Nog geen artikelen`,emptyBody:`Hier is nog niets.`,back:`Terug`,helpful:`Was dit nuttig?`,yes:`Ja`,no:`Nee`,thanks:`Bedankt voor je feedback.`,unresolvedCta:`Heb je nog hulp nodig? Stuur ons een bericht`,noResults:`Geen resultaten`,articleNotFound:`Artikel niet gevonden`,articleNotTranslated:`Dit artikel is nog niet beschikbaar in jouw taal.`,writtenBy:`Geschreven door {names}`,relatedTitle:`Gerelateerde artikelen`,collectionsCount:`{count, plural, =0 {Geen collecties} one {# collectie} other {# collecties}}`,articlesCount:`{count, plural, =0 {Geen artikelen} one {Artikelen: #} other {Artikelen: #}}`,authorsByline:`Auteurs {first}{remaining, plural, =0 {} one { en # meer} other { en # meer}}`},news:{emptyTitle:`Nog geen updates`,emptyBody:`Kom hier terug voor productnieuws en aankondigingen.`,helpful:`Was dit artikel nuttig?`,yes:`Ja`,no:`Nee`,thanks:`Bedankt voor je feedback.`,searchPlaceholder:`Zoeken in nieuws`,noResults:`Geen overeenkomende berichten`,editedAt:`bewerkt {when}`,articleNotFound:`Artikel niet gevonden.`,articleNotTranslated:`Dit bericht is nog niet beschikbaar in jouw taal.`,readOriginal:`Lees het origineel`,relatedTitle:`Gerelateerd`,writtenBy:`Geschreven door {names}`,unread:`Ongelezen nieuws`},reactions:{ariaLabel:`Reacties`,tapAria:`Reageer met {emoji}`},languageSelector:{title:`Lees in een andere taal`,ariaLabel:`Talen van het artikel`},branding:{poweredBy:`Mogelijk gemaakt door`,wexio:`Wexio`},sound:{mute:`Meldingsgeluiden dempen`,unmute:`Meldingsgeluiden inschakelen`},article:{tableOfContents:`Inhoudsopgave`,tabFallback:`Tabblad {n}`},peek:{newMessage:`Nieuw bericht`,dismiss:`Sluiten`,aiAssistant:`AI-assistent`,operator:`Medewerker`,quickReplies:`Snelle antwoorden`},lightbox:{mediaPreview:`Mediavoorvertoning`,close:`Voorvertoning sluiten`,previous:`Vorige`,next:`Volgende`},authError:{turnstileTitle:`Kon je browser niet verifiëren`,turnstileBody:`De beveiligingscontrole kon niet worden voltooid. Soms ligt het aan het netwerk of een ad-blocker – probeer het opnieuw of laad de pagina opnieuw.`,genericTitle:`Verbinden mislukt`,genericBody:`Er ging iets mis bij het aanmelden. Probeer het zo opnieuw.`,retry:`Opnieuw proberen`,dismiss:`Sluiten`,visitorLimitTitle:`Test visitor limit reached`,visitorLimitBody:`Too many test visitors today. Reuse an existing test visitor or try again tomorrow.`},profile:{title:`Jouw profiel`,subtitle:`Werk je gegevens en het gedrag van de widget bij.`,uploadAvatar:`Foto wijzigen`,removeAvatar:`Foto verwijderen`,avatarUploading:`Uploaden…`,preferencesHeading:`Voorkeuren`,preferenceLanguage:`Taal`,preferenceDesktopNotifications:`Bureaubladmeldingen`,preferenceDesktopNotificationsHint:`Ontvang een systeemmelding wanneer de widget niet op de voorgrond staat.`,preferenceThemeMode:`Thema`,themeAuto:`Volg systeem`,themeLight:`Licht`,themeDark:`Donker`,themeLocked:`Het thema kan niet worden gewijzigd.`,pinnedHint:`Niet aanpasbaar.`,requiredHint:`Verplicht`,invalidEmail:`Voer een geldig e-mailadres in.`,invalidPhone:`Gebruik internationaal formaat, bijv. +31612345678.`,noFields:`Er is hier nog niets te bewerken.`,save:`Wijzigingen opslaan`,saving:`Opslaan…`,cancel:`Verwerpen`,saved:`Wijzigingen opgeslagen.`,loading:`Profiel laden…`,loadError:`Profiel kon niet worden geladen. Probeer het opnieuw.`,retry:`Opnieuw proberen`,errorFieldNotAllowed:`Dit veld kan in deze widget niet worden bewerkt. Probeer te vernieuwen.`,errorFieldPinned:`Dit veld is vergrendeld door je account.`,errorFieldInvalid:`Sommige waarden zijn ongeldig. Controleer de gemarkeerde velden.`,errorThemeLocked:`Het thema kan niet worden gewijzigd.`,errorFeatureDisabled:`Profiel bewerken is niet beschikbaar.`,errorGeneric:`Wijzigingen konden niet worden opgeslagen. Probeer het opnieuw.`,notificationsBlocked:`Meldingen zijn geblokkeerd door de browser. Werk de sitepermissies bij om ze in te schakelen.`,notificationsRequest:`Sta meldingen toe wanneer daarom wordt gevraagd om dit in te schakelen.`,systemFields:{avatar:`Foto`,wexioId:`Wexio-ID`,telegramId:`Telegram-ID`,whatsappId:`WhatsApp-ID`,viberId:`Viber-ID`,instagramId:`Instagram-ID`,optInWhatsapp:`WhatsApp-toestemming`,webVerified:`Geverifieerde bezoeker`,firstName:`Voornaam`,lastName:`Achternaam`,username:`Gebruikersnaam`,language:`Taal`,email:`E-mail`,phone:`Telefoon`,company:`Bedrijf`,location:`Locatie`,isValid:`Account geldig`,chatStatus:`Chatstatus`,chatCategory:`Chatcategorie`,priority:`Prioriteit`,leadSource:`Bron van lead`,leadStatus:`Status van lead`,interestLevel:`Interesseniveau`,productInterest:`Productinteresse`,budgetRange:`Budget`,purchaseTimeline:`Aankooptermijn`,lastMessageSentAt:`Laatste bericht verstuurd`,lastMessageReceivedAt:`Laatste bericht ontvangen`,lastSeenAt:`Laatst gezien`,firstMessageReceivedAt:`Eerste contact`,isBlocked:`Geblokkeerd`,registrationDate:`Geregistreerd`,aiAvailable:`AI-ondersteuning`,totalMessagesSent:`Berichten verstuurd`,totalMessagesReceived:`Berichten ontvangen`,totalAiMessagesSent:`Door AI verstuurde berichten`,totalBotMessagesSent:`Door bot verstuurde berichten`,totalUserMessagesSent:`Door medewerker verstuurde berichten`,flowCompletionRate:`Voltooiingspercentage flow`,lastFlowCompleted:`Laatst voltooide flow`,totalFlowsStarted:`Gestarte flows`,totalFlowsCompleted:`Voltooide flows`},systemFieldOptions:{chatStatus:{ISSUE:`Probleem`,RESOLVED:`Opgelost`,PENDING:`In behandeling`,IN_PROGRESS:`Bezig`,CLOSED:`Gesloten`},chatCategory:{SALES:`Verkoop`,SUPPORT:`Support`,BILLING:`Facturatie`,FEEDBACK:`Feedback`,GENERAL:`Algemeen`,OTHER:`Overig`},priority:{LOW:`Laag`,MEDIUM:`Gemiddeld`,HIGH:`Hoog`,URGENT:`Urgent`},leadStatus:{NEW:`Nieuw`,CONTACTED:`Benaderd`,QUALIFIED:`Gekwalificeerd`,NEGOTIATING:`In onderhandeling`,WON:`Gewonnen`,LOST:`Verloren`},interestLevel:{LOW:`Laag`,MEDIUM:`Gemiddeld`,HIGH:`Hoog`,VERY_HIGH:`Zeer hoog`}},selectOption:`Selecteer een optie`,noOptions:`Geen opties geconfigureerd.`},transcript:{title:`Gesprek met {org}`,started:`Gestart op {when}`,exported:`Geëxporteerd uit {org} op {when}`,truncated:`Let op: alleen de meest recente berichten zijn opgenomen.`,operator:`Medewerker`,you:`Jij`},notification:{newMessage:`Nieuw bericht`,image:`Afbeelding`,video:`Video`,voiceMessage:`Spraakbericht`,attachment:`Bijlage`}};export{e as default};
|
|
2
|
-
//# sourceMappingURL=widget-react-BZ7sDBzB.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{b as e,n as t}from"./widget-react-DIvxQOfe.js";import{A as n,O as r,Q as i,Rt as ee,_ as a,c as te,d as ne,f as o,g as s,j as c,jt as l,l as re,m as u,nt as ie,u as d,w as f}from"./widget-react-D-bgEOgc.js";import{i as p}from"./widget-react-_QsYqFeh.js";import{o as m,p as h,s as ae,t as oe}from"./widget-react-DVbuLGRg.js";import{t as se}from"./widget-react-BxEMz2N0.js";import{a as g,i as ce,n as le,o as ue,r as de,s as _,t as v}from"./widget-react-SvlXgmVw.js";import{useEffect as y,useMemo as b,useRef as fe,useState as pe}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";var C=5;function me(e,t,n=C){let r=e.find(e=>e.slug===t),i=new Set((r?.tags??[]).map(e=>e.slug));return e.filter(e=>e.slug!==t).map(e=>({a:e,score:(r&&e.categoryId===r.categoryId?2:0)+e.tags.filter(e=>i.has(e.slug)).length})).sort((e,t)=>t.score-e.score||t.a.publishedAt.localeCompare(e.a.publishedAt)).slice(0,n).map(({a:e})=>({_id:e.id,title:e.title,slug:e.slug,excerpt:e.excerpt||null}))}function he(e){let t=e=>Array.isArray(e)?e:[];return{id:String(e._id??``),title:typeof e.title==`string`?e.title:``,excerpt:typeof e.excerpt==`string`?e.excerpt:``,content:typeof e.content==`string`?e.content:``,contentFormat:e.contentFormat===g.HTML?g.HTML:g.MARKDOWN,authors:t(e.authors).filter(e=>!!e&&typeof e==`object`).map(e=>({_id:String(e._id??``),name:typeof e.name==`string`?e.name:null,photo:e.photo})),tags:t(e.tags).filter(e=>!!e&&typeof e==`object`).map(e=>({_id:String(e._id??``),slug:typeof e.slug==`string`?e.slug:``,label:typeof e.label==`string`?e.label:``}))}}function w({slug:t,locale:C,isDummy:w,onHandoff:E,onOpenArticle:D,onOpenTranslation:O,onTitleResolved:k}){let A=e(`help`),j=n(),M=d(),N=i(),{config:P}=f(),F=P.messenger?.showRelatedHelpArticles??!0,I=P.messenger?.showReactionCounts??!0,L=se(),[R,ge]=pe(C),z=c(R,j),B=b(()=>{if(w)return null;let e=N.previewData?.helpArticles;return Array.isArray(e)?e.find(e=>e&&typeof e==`object`&&e.slug===t)??null:null},[N.previewData,w,t]),V=!!B,{data:H,loading:_e}=ae({variables:{args:{slug:t,locale:C}},skip:w||V}),U=ee(),W=U.publicKey,G=re(W&&!w&&!V?ie.article(W,t,C):null,H),[K]=m(),{trackLinkClick:q}=te(),J=fe(null),Y=b(()=>w?l(z).find(e=>e.slug===t):null,[w,t,z]),X=w?Y?{id:Y.id,title:Y.title,excerpt:Y.excerpt,content:Y.contentMarkdown,contentFormat:g.MARKDOWN,authors:Y.authors,tags:Y.tags,reactionCounts:null,locale:R,translations:[]}:null:V&&B?{...he(B),reactionCounts:B.reactionCounts??null,locale:C,translations:[]}:G?.visitorHelpArticle?{id:G.visitorHelpArticle._id,title:G.visitorHelpArticle.title,excerpt:G.visitorHelpArticle.excerpt??``,content:G.visitorHelpArticle.content,contentFormat:G.visitorHelpArticle.contentFormat,authors:G.visitorHelpArticle.authors,tags:G.visitorHelpArticle.tags,reactionCounts:G.visitorHelpArticle.reactionCounts??null,locale:G.visitorHelpArticle.locale,translations:G.visitorHelpArticle.translations}:null,{data:ve}=h({variables:{articleId:X?.id??``,limit:5,locale:C},skip:w||V||!X?.id||!F}),ye=b(()=>{if(!V||!X?.id)return[];let e=(N.previewData?.helpArticles??[]).filter(e=>!!e&&typeof e==`object`),t=new Set((X.tags??[]).map(e=>typeof e==`object`&&e&&`slug`in e?String(e.slug):null).filter(e=>!!e)),n=(()=>{let e=B;if(!e)return null;let t=e.folderId;if(typeof t==`string`)return t;let n=e.folder;if(n&&typeof n==`object`&&`_id`in n){let e=n._id;return typeof e==`string`?e:null}return null})();return e.filter(e=>String(e._id??``)!==X.id).map(e=>{let r=typeof e.folderId==`string`?e.folderId:e.folder&&typeof e.folder==`object`&&`_id`in e.folder?String(e.folder._id??``):null,i=Array.isArray(e.tags)?e.tags.map(e=>typeof e==`object`&&e&&`slug`in e?String(e.slug):null).filter(e=>!!e):[];return{raw:e,score:(n&&r===n?2:0)+i.filter(e=>t.has(e)).length}}).filter(e=>e.score>0).sort((e,t)=>t.score-e.score).slice(0,5).map(({raw:e})=>({_id:String(e._id??``),title:typeof e.title==`string`?e.title:``,slug:typeof e.slug==`string`?e.slug:``,excerpt:typeof e.excerpt==`string`?e.excerpt:null}))},[V,X,B,N.previewData]),be=b(()=>w?me(l(z),t):[],[w,z,t]),Z=w?be:V?ye:ve?.visitorHelpRelated??[],xe=w||V?null:H?.visitorHelpArticle?.viewerReaction??null,Se=!w&&!V&&H?.visitorHelpArticle?[H.visitorHelpArticle._id,...(H.visitorHelpArticle.translations??[]).map(e=>e._id)]:X?.id?[X.id]:[];y(()=>{w||!X?.id||!U.token||K({variables:{articleId:X.id}}).catch(()=>{})},[X?.id,w,K,U]),y(()=>{w||V||!X?.id||J.current!==X.id&&(J.current=X.id,q({url:`/help/${t}`,targetType:`HELP_ARTICLE`,targetRefId:X.id}))},[X?.id,w,V,t,q]),ce(X?.title,k);let Ce=()=>E();if(!_e&&!X)return x(`div`,{className:`flex flex-1 flex-col items-center justify-center px-6 py-12`,children:x(s,{children:x(a,{className:`py-8 text-center`,children:x(`p`,{className:`text-sm font-semibold text-wx-fg`,children:A(`articleNotFound`)})})})});let we=C.split(`-`)[0].toLowerCase(),Q=X?X.locale.split(`-`)[0].toLowerCase():null;if(!w&&!V&&!P.contentLocaleFallback&&Q!==null&&Q!==we)return x(`div`,{className:`flex flex-1 flex-col items-center justify-center px-6 py-12`,children:x(s,{children:x(a,{className:`py-8 text-center`,children:x(`p`,{className:`text-sm font-semibold text-wx-fg`,children:A(`articleNotTranslated`)})})})});if(!X)return x(T,{});let $=ne(X.excerpt,X.content)?``:o(X.excerpt,400);return x(u,{followDirection:!0,className:`flex-1`,viewportRef:M,children:S(`div`,{className:`flex flex-col px-5 pt-5 pb-12 [overflow-wrap:anywhere]`,children:[x(`h2`,{className:`text-xl leading-tight font-bold text-wx-fg`,children:X.title}),X.authors.length>0&&S(`p`,{className:`mt-2 flex items-center gap-2 text-xs text-wx-fg-muted`,children:[x(`span`,{className:`flex -space-x-1.5`,children:X.authors.slice(0,3).map(e=>x(`span`,{className:`h-5 w-5 overflow-hidden rounded-full bg-wx-bg-elevated ring-1 ring-wx-bg`,"aria-hidden":`true`,children:e.photo?.url?x(`img`,{src:e.photo.url,alt:``,className:`h-full w-full object-cover`}):x(`span`,{className:`flex h-full w-full items-center justify-center text-[10px] font-semibold uppercase text-wx-fg-muted`,children:(e.name??`?`).charAt(0)})},e._id))}),x(`span`,{children:A(`writtenBy`,{names:X.authors.map(e=>e.name??``).filter(Boolean).join(`, `)})})]}),X.tags.length>0&&x(`div`,{className:`mt-2 flex flex-wrap gap-1`,children:X.tags.map(e=>x(`span`,{className:`rounded-full bg-wx-bg-elevated px-2 py-0.5 text-[11px] font-medium text-wx-fg-muted`,children:e.label},e._id))}),$&&x(`p`,{className:`mt-2 mb-5 text-sm text-wx-fg-muted`,children:$}),x(de,{content:X.content,isHtml:X.contentFormat===g.HTML||_(X.content),markdownMarginClass:`mt-3`}),S(oe,{type:`button`,variant:`solid`,size:`lg`,className:`mt-6 w-full shrink-0 min-h-12`,onClick:Ce,...L.parentHandlers,children:[x(p,{ref:L.iconRef,size:16}),x(`span`,{children:A(`unresolvedCta`)})]}),X.id&&x(v,{surface:ue.HELP,itemId:X.id,reactionCounts:X.reactionCounts,viewerReaction:xe,groupItemIds:Se,isDummy:w,showCounts:I,className:`mt-4`}),x(le,{currentLocale:w?R:X.locale,locales:w?[...r]:X.translations.map(e=>e.locale),allowedLocales:w?void 0:P.supportedLocales,onSelect:w?e=>ge(e):e=>{let t=X.translations.find(t=>t.locale===e);t&&O?.(t.slug,t.locale)},className:`mt-6`}),F&&Z.length>0&&S(`section`,{className:`mt-6`,children:[x(`p`,{className:`mb-2 text-xs font-semibold tracking-wide text-wx-fg-muted uppercase`,children:A(`relatedTitle`)}),x(`ul`,{className:`flex flex-col gap-1.5`,children:Z.map(e=>x(`li`,{children:S(`button`,{type:`button`,onClick:()=>D?.(e.slug),className:`flex w-full flex-col items-start gap-0.5 rounded-wx-lg bg-wx-bg-elevated px-3 py-2 text-start transition-colors hover:bg-wx-bg-elevated/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary`,children:[x(`span`,{className:`block truncate text-sm font-medium text-wx-fg`,children:e.title}),e.excerpt&&x(`span`,{className:`line-clamp-1 block text-xs text-wx-fg-muted`,children:o(e.excerpt,160)})]})},e._id))})]})]})})}function T(){return x(u,{followDirection:!0,className:`flex-1`,viewportRef:d(),children:S(`div`,{className:`flex flex-col px-5 pt-5 pb-12`,"aria-busy":`true`,"aria-live":`polite`,children:[S(`div`,{className:`animate-pulse space-y-2.5`,children:[x(`div`,{className:`h-5 w-3/4 rounded-md bg-wx-bg-elevated`}),x(`div`,{className:`h-5 w-1/2 rounded-md bg-wx-bg-elevated`})]}),S(`div`,{className:`mt-4 flex items-center gap-2 animate-pulse`,children:[x(`div`,{className:`h-5 w-5 rounded-full bg-wx-bg-elevated`}),x(`div`,{className:`h-3 w-32 rounded-md bg-wx-bg-elevated`})]}),x(`div`,{className:`mt-6 space-y-2.5 animate-pulse`,children:[`w-full`,`w-11/12`,`w-10/12`,`w-full`,`w-9/12`,`w-full`,`w-11/12`,`w-7/12`].map((e,n)=>x(`div`,{className:t(`h-3 rounded-md bg-wx-bg-elevated`,e)},n))})]})})}export{w as HelpArticleView};
|
|
2
|
-
//# sourceMappingURL=widget-react-BjrztiIA.js.map
|