lr-chatbot 0.38.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>", n = { minimizeLabel: "Minimizar chat", closeLabel: "Cerrar chat" }, l = { 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 = {
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: n,
8
- exit: l,
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
- l as exit,
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
- n as menu,
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-CSE8yA7z.js.map
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-CSE8yA7z.js")).default
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");
@@ -23313,7 +23305,7 @@ let In = class extends fe {
23313
23305
  this._chatbotMinimizedElement && (this._chatbotMinimizedElement.removeEventListener("touchstart", this.handleTouchStart), this._chatbotMinimizedElement.removeEventListener("touchmove", this.handleTouchMove), this._chatbotMinimizedElement.removeEventListener("touchend", this.handleTouchEnd), this._isEventDraggableSet = !1);
23314
23306
  }, this.handleClick = () => {
23315
23307
  var t;
23316
- console.log("Chatbot minimized element clicked, _isClickEventRemoved : ", !this._isClickEventRemoved), this._isClickEventRemoved || (this._isMobileDevice && this.removeMobileEventListener(), (t = this.open) == null || t.call(this));
23308
+ this._isClickEventRemoved || (this._isMobileDevice && this.removeMobileEventListener(), (t = this.open) == null || t.call(this));
23317
23309
  };
23318
23310
  }
23319
23311
  disconnectedCallback() {
@@ -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.38.0";
23405
+ return "LR Chatbot - v0.39.0";
23414
23406
  }
23415
23407
  async connectedCallback() {
23416
23408
  super.connectedCallback(), this._conversationHistoryTask.run();