lr-chatbot 0.37.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const e = "<p>¡Bienvenido! Soy R’, su asesor virtual de La Redoute, ¡estoy aquí para ayudarle! Estoy empezando, sea indulgente ;) Seleccione una pregunta frecuente/un tema o formule su pregunta.</p> <div class='button-container'> <lr-pill class='suggestion' size='small'>Question 1</lr-pill> <lr-pill class='suggestion' size='small'>Question 2</lr-pill> <lr-pill class='suggestion' size='small'>Question 3</lr-pill> <lr-pill class='suggestion' size='small'>Question 4</lr-pill></div>", a = "Ingrese su pregunta...", t = "Chatbot La Redoute", o = "Hola, para poder ofrecerle la mejor ayuda posible, utilizamos inteligencia artificial. No comparta datos personales o sensibles como los de pago. Para más información, consulte <a href='/espace-mentions_legales.aspx' target='blank'>nuestra política de privacidad</a>.", s = "<p>Ups, nuestro Chatbot no está disponible en este momento. Le recomendamos contactar con un asesor para más información.</p>",
|
|
1
|
+
const e = "<p>¡Bienvenido! Soy R’, su asesor virtual de La Redoute, ¡estoy aquí para ayudarle! Estoy empezando, sea indulgente ;) Seleccione una pregunta frecuente/un tema o formule su pregunta.</p> <div class='button-container'> <lr-pill class='suggestion' size='small'>Question 1</lr-pill> <lr-pill class='suggestion' size='small'>Question 2</lr-pill> <lr-pill class='suggestion' size='small'>Question 3</lr-pill> <lr-pill class='suggestion' size='small'>Question 4</lr-pill></div>", a = "Ingrese su pregunta...", t = "Chatbot La Redoute", o = "Hola, para poder ofrecerle la mejor ayuda posible, utilizamos inteligencia artificial. No comparta datos personales o sensibles como los de pago. Para más información, consulte <a href='/espace-mentions_legales.aspx' target='blank'>nuestra política de privacidad</a>.", s = "<p>Ups, nuestro Chatbot no está disponible en este momento. Le recomendamos contactar con un asesor para más información.</p>", l = { minimizeLabel: "Minimizar chat", closeLabel: "Cerrar chat" }, n = { text: "¿Está seguro de que desea salir del chat? Al salir perderá el historial de la conversación.", button: "Salir" }, i = "Reanudar conversación", r = "¿Qué le ha parecido nuestra conversación?", c = "Encantado de haberle ayudado, ¿tiene alguna otra pregunta?", p = { suggestions: "<lr-chatbot-escalation-pill channel='contact-form' shouldGetSummary size='small' icon='help'>Formulario de contacto</lr-chatbot-escalation-pill> <lr-chatbot-escalation-pill shouldGetSummary channel='whatsapp' size='small' icon='brand-whatsapp'>WhatsApp</lr-chatbot-escalation-pill><lr-chatbot-escalation-pill channel='faq' size='small' icon='help'>FAQ</lr-chatbot-escalation-pill>", suggestions_mobile: "$t(chatbot:escalation.suggestions, {'context': '' })<lr-chatbot-escalation-pill channel='tel' size='small' icon='smartphone'>0969323515</lr-chatbot-escalation-pill>", url: "", url_whatsapp: "https://api.whatsapp.com/send?phone=747753815", "url_contact-form": "/contact-email.aspx?txtMessage={{message}}", url_faq: "/servicios.aspx", url_tel: "tel:0969323515", message: "", "message_contact-form": "El resumen de mi conversación en el chatbot está disponible mediante el ID: {{conversationId}}", message_whatsapp: "El resumen de mi conversación en el chatbot está disponible mediante el ID: {{conversationId}}" }, u = { label: "Chat", ariaLabel: "Abrir chat" }, m = "5000", d = { sendButtonLabel: "Enviar", messageConfirm: "<lr-icon-check size='small'></lr-icon-check> <p><i>Su comentario ha sido enviado correctamente</i></p>", inputLabel: "Dejar un comentario", inputPlaceholder: "Comentario:" }, h = {
|
|
2
2
|
introMessage: e,
|
|
3
3
|
inputPlaceholder: a,
|
|
4
4
|
title: t,
|
|
5
5
|
legalInformation: o,
|
|
6
6
|
errorMessage: s,
|
|
7
|
-
menu:
|
|
8
|
-
exit:
|
|
7
|
+
menu: l,
|
|
8
|
+
exit: n,
|
|
9
9
|
returnToConversation: i,
|
|
10
10
|
ratingConversation: r,
|
|
11
11
|
otherQuestiononConversation: c,
|
|
@@ -19,16 +19,16 @@ export {
|
|
|
19
19
|
s as errorMessage,
|
|
20
20
|
p as escalation,
|
|
21
21
|
m as evaluationTimeout,
|
|
22
|
-
|
|
22
|
+
n as exit,
|
|
23
23
|
d as feedback,
|
|
24
24
|
a as inputPlaceholder,
|
|
25
25
|
e as introMessage,
|
|
26
26
|
o as legalInformation,
|
|
27
|
-
|
|
27
|
+
l as menu,
|
|
28
28
|
u as minimized,
|
|
29
29
|
c as otherQuestiononConversation,
|
|
30
30
|
r as ratingConversation,
|
|
31
31
|
i as returnToConversation,
|
|
32
32
|
t as title
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=chatbot-
|
|
34
|
+
//# sourceMappingURL=chatbot-DwEZgiuy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-DwEZgiuy.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/index.js
CHANGED
|
@@ -18788,8 +18788,7 @@ const db = {
|
|
|
18788
18788
|
es: ["es"],
|
|
18789
18789
|
it: ["it"],
|
|
18790
18790
|
uk: ["co.uk"],
|
|
18791
|
-
com: ["com"]
|
|
18792
|
-
ru: ["ru"]
|
|
18791
|
+
com: ["com"]
|
|
18793
18792
|
}, hb = "fr", Mc = Object.entries(db).flatMap(([t, r]) => r.map((e) => [e, t])).reduce((t, [r, e]) => (t[r] = e, t), {}), pb = (t) => {
|
|
18794
18793
|
const r = t.toLowerCase();
|
|
18795
18794
|
for (const e in Mc)
|
|
@@ -18934,7 +18933,6 @@ const qa = {
|
|
|
18934
18933
|
lu: "fr-BE",
|
|
18935
18934
|
nl: "nl-NL",
|
|
18936
18935
|
pt: "pt-PT",
|
|
18937
|
-
ru: "ru-RU",
|
|
18938
18936
|
uk: "en-GB"
|
|
18939
18937
|
}, Va = {
|
|
18940
18938
|
be: [],
|
|
@@ -18947,7 +18945,6 @@ const qa = {
|
|
|
18947
18945
|
lu: [],
|
|
18948
18946
|
nl: [],
|
|
18949
18947
|
pt: [],
|
|
18950
|
-
ru: [],
|
|
18951
18948
|
uk: []
|
|
18952
18949
|
}, gb = /((([a-zA-Z]+(-[a-zA-Z0-9]+){0,2})|\*)(;q=[0-1](\.[0-9]+)?)?)*/g;
|
|
18953
18950
|
function vb(t) {
|
|
@@ -22221,7 +22218,7 @@ class Lw extends aw {
|
|
|
22221
22218
|
},
|
|
22222
22219
|
es: {
|
|
22223
22220
|
"es-ES": async () => ({
|
|
22224
|
-
chatbot: (await import("./chatbot-
|
|
22221
|
+
chatbot: (await import("./chatbot-DwEZgiuy.js")).default
|
|
22225
22222
|
})
|
|
22226
22223
|
},
|
|
22227
22224
|
fr: {
|
|
@@ -22249,11 +22246,6 @@ class Lw extends aw {
|
|
|
22249
22246
|
chatbot: (await import("./chatbot-YgdXEFtq.js")).default
|
|
22250
22247
|
})
|
|
22251
22248
|
},
|
|
22252
|
-
ru: {
|
|
22253
|
-
"ru-RU": async () => {
|
|
22254
|
-
throw Error("Not available yet");
|
|
22255
|
-
}
|
|
22256
|
-
},
|
|
22257
22249
|
uk: {
|
|
22258
22250
|
"en-GB": async () => {
|
|
22259
22251
|
throw Error("Not available yet");
|
|
@@ -23292,8 +23284,8 @@ var d4 = Object.defineProperty, h4 = Object.getOwnPropertyDescriptor, ya = (t, r
|
|
|
23292
23284
|
};
|
|
23293
23285
|
let In = class extends fe {
|
|
23294
23286
|
constructor() {
|
|
23295
|
-
super(...arguments), this._isDragging = !1, this._chatbotMinimizedElement = document.createElement("div"), this.
|
|
23296
|
-
t.stopPropagation(),
|
|
23287
|
+
super(...arguments), this._isDragging = !1, this._chatbotMinimizedElement = document.createElement("div"), this._isClickEventRemoved = !1, this._isEventDraggableSet = !1, this._lastX = 0, this._lastY = 0, this._isMobileDevice = ko(), this.handleTouchStart = (t) => {
|
|
23288
|
+
t.stopPropagation(), this._isDragging = !0, this._lastX = t.touches[0].clientX, this._lastY = t.touches[0].clientY;
|
|
23297
23289
|
}, this.handleTouchMove = (t) => {
|
|
23298
23290
|
if (t.stopPropagation(), t.preventDefault(), !this._isDragging) return;
|
|
23299
23291
|
const r = t.touches[0].clientX - this._lastX, e = t.touches[0].clientY - this._lastY, n = parseInt(
|
|
@@ -23303,7 +23295,7 @@ let In = class extends fe {
|
|
|
23303
23295
|
);
|
|
23304
23296
|
this._chatbotMinimizedElement.style.bottom = "", this._chatbotMinimizedElement.style.position = "absolute", this._chatbotMinimizedElement.style.cursor = "grabbing", this._chatbotMinimizedElement.style.left = `${n + r}px`, this._chatbotMinimizedElement.style.top = `${i + e}px`, this._lastX = t.touches[0].clientX, this._lastY = t.touches[0].clientY, this._isClickEventRemoved || (this._isClickEventRemoved = !0);
|
|
23305
23297
|
}, this.handleTouchEnd = (t) => {
|
|
23306
|
-
t.stopPropagation(),
|
|
23298
|
+
t.stopPropagation(), this._isDragging && (this._isDragging = !1, this._chatbotMinimizedElement.style.position = "fixed", this._chatbotMinimizedElement.style.cursor = "grab");
|
|
23307
23299
|
}, this.setElement = async () => {
|
|
23308
23300
|
const t = document.querySelector("#chatbot"), r = t == null ? void 0 : t.shadowRoot, e = r == null ? void 0 : r.querySelector("#chat-minimizerd-wrapper"), n = e == null ? void 0 : e.shadowRoot, i = n == null ? void 0 : n.querySelector("#chat-minimized.isDraggable");
|
|
23309
23301
|
i instanceof HTMLElement ? this._chatbotMinimizedElement = i : console.warn("Chatbot minimized element not found in shadow DOM");
|
|
@@ -23410,7 +23402,7 @@ let It = class extends fe {
|
|
|
23410
23402
|
Jn(this, pi, t);
|
|
23411
23403
|
}
|
|
23412
23404
|
getVersion() {
|
|
23413
|
-
return "LR Chatbot - v0.
|
|
23405
|
+
return "LR Chatbot - v0.39.0";
|
|
23414
23406
|
}
|
|
23415
23407
|
async connectedCallback() {
|
|
23416
23408
|
super.connectedCallback(), this._conversationHistoryTask.run();
|