@enegelai/bot-widget 1.16.7 → 1.17.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.
package/dist/index.es.js CHANGED
@@ -232,36 +232,36 @@ function Wi() {
232
232
  function P(M, L) {
233
233
  var C = this, K, U, X, te = "loglevel";
234
234
  typeof M == "string" ? te += ":" + M : typeof M == "symbol" && (te = void 0);
235
- function He(j) {
236
- var V = (s[j] || "silent").toUpperCase();
235
+ function He(H) {
236
+ var N = (s[H] || "silent").toUpperCase();
237
237
  if (!(typeof window === t || !te)) {
238
238
  try {
239
- window.localStorage[te] = V;
239
+ window.localStorage[te] = N;
240
240
  return;
241
241
  } catch {
242
242
  }
243
243
  try {
244
- window.document.cookie = encodeURIComponent(te) + "=" + V + ";";
244
+ window.document.cookie = encodeURIComponent(te) + "=" + N + ";";
245
245
  } catch {
246
246
  }
247
247
  }
248
248
  }
249
249
  function ae() {
250
- var j;
250
+ var H;
251
251
  if (!(typeof window === t || !te)) {
252
252
  try {
253
- j = window.localStorage[te];
253
+ H = window.localStorage[te];
254
254
  } catch {
255
255
  }
256
- if (typeof j === t)
256
+ if (typeof H === t)
257
257
  try {
258
- var V = window.document.cookie, $e = encodeURIComponent(te), Pe = V.indexOf($e + "=");
259
- Pe !== -1 && (j = /^([^;]+)/.exec(
260
- V.slice(Pe + $e.length + 1)
258
+ var N = window.document.cookie, $e = encodeURIComponent(te), Pe = N.indexOf($e + "=");
259
+ Pe !== -1 && (H = /^([^;]+)/.exec(
260
+ N.slice(Pe + $e.length + 1)
261
261
  )[1]);
262
262
  } catch {
263
263
  }
264
- return C.levels[j] === void 0 && (j = void 0), j;
264
+ return C.levels[H] === void 0 && (H = void 0), H;
265
265
  }
266
266
  }
267
267
  function he() {
@@ -276,11 +276,11 @@ function Wi() {
276
276
  }
277
277
  }
278
278
  }
279
- function ge(j) {
280
- var V = j;
281
- if (typeof V == "string" && C.levels[V.toUpperCase()] !== void 0 && (V = C.levels[V.toUpperCase()]), typeof V == "number" && V >= 0 && V <= C.levels.SILENT)
282
- return V;
283
- throw new TypeError("log.setLevel() called with invalid level: " + j);
279
+ function ge(H) {
280
+ var N = H;
281
+ if (typeof N == "string" && C.levels[N.toUpperCase()] !== void 0 && (N = C.levels[N.toUpperCase()]), typeof N == "number" && N >= 0 && N <= C.levels.SILENT)
282
+ return N;
283
+ throw new TypeError("log.setLevel() called with invalid level: " + H);
284
284
  }
285
285
  C.name = M, C.levels = {
286
286
  TRACE: 0,
@@ -291,25 +291,25 @@ function Wi() {
291
291
  SILENT: 5
292
292
  }, C.methodFactory = L || _, C.getLevel = function() {
293
293
  return X ?? U ?? K;
294
- }, C.setLevel = function(j, V) {
295
- return X = ge(j), V !== !1 && He(X), k.call(C);
296
- }, C.setDefaultLevel = function(j) {
297
- U = ge(j), ae() || C.setLevel(j, !1);
294
+ }, C.setLevel = function(H, N) {
295
+ return X = ge(H), N !== !1 && He(X), k.call(C);
296
+ }, C.setDefaultLevel = function(H) {
297
+ U = ge(H), ae() || C.setLevel(H, !1);
298
298
  }, C.resetLevel = function() {
299
299
  X = null, he(), k.call(C);
300
- }, C.enableAll = function(j) {
301
- C.setLevel(C.levels.TRACE, j);
302
- }, C.disableAll = function(j) {
303
- C.setLevel(C.levels.SILENT, j);
300
+ }, C.enableAll = function(H) {
301
+ C.setLevel(C.levels.TRACE, H);
302
+ }, C.disableAll = function(H) {
303
+ C.setLevel(C.levels.SILENT, H);
304
304
  }, C.rebuild = function() {
305
305
  if (o !== C && (K = ge(o.getLevel())), k.call(C), o === C)
306
- for (var j in r)
307
- r[j].rebuild();
306
+ for (var H in r)
307
+ r[H].rebuild();
308
308
  }, K = ge(
309
309
  o ? o.getLevel() : "WARN"
310
310
  );
311
- var F = ae();
312
- F != null && (X = ge(F)), k.call(C);
311
+ var j = ae();
312
+ j != null && (X = ge(j)), k.call(C);
313
313
  }
314
314
  o = new P(), o.getLogger = function(L) {
315
315
  if (typeof L != "symbol" && typeof L != "string" || L === "")
@@ -722,7 +722,10 @@ function Xa(a = !0, e = null) {
722
722
  });
723
723
  }
724
724
  function Vt(a) {
725
- return !a || typeof a != "string" ? "" : a.replace(/&(?!lt;|gt;)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
725
+ if (!a || typeof a != "string")
726
+ return "";
727
+ let e = a.replace(/&(?!lt;|gt;)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
728
+ return e = e.replace(/&lt;br\s*\/?&gt;/gi, "<br>"), e;
726
729
  }
727
730
  const se = Je.noConflict();
728
731
  se.setLevel("info");
@@ -2704,12 +2707,12 @@ class vs {
2704
2707
  let He = -1;
2705
2708
  for (let ae = U; ae <= X; ae += te) {
2706
2709
  let he = 0, ge = 0;
2707
- for (let V = 0; V < o; V++) {
2708
- const $e = _[V], Pe = P[ae + V];
2710
+ for (let N = 0; N < o; N++) {
2711
+ const $e = _[N], Pe = P[ae + N];
2709
2712
  he += $e * Pe, ge += Pe * Pe;
2710
2713
  }
2711
- const F = E * (Math.sqrt(ge) + 1e-12), j = F > 0 ? he / F : 0;
2712
- if (j > He && (He = j), He > Math.min(0.98, this.threshold + 0.25)) break;
2714
+ const j = E * (Math.sqrt(ge) + 1e-12), H = j > 0 ? he / j : 0;
2715
+ if (H > He && (He = H), He > Math.min(0.98, this.threshold + 0.25)) break;
2713
2716
  }
2714
2717
  if (He >= this.threshold) {
2715
2718
  if (this._holdRemain = Math.max(this._holdRemain, Math.round(this.holdMs * this.sr / 1e3)), this.mode === "drop") return null;
@@ -3481,8 +3484,10 @@ class R extends Jt {
3481
3484
  }
3482
3485
  // this is called at startup
3483
3486
  setSetting(e) {
3484
- T.info("appState: Startup: setSetting", e), this.setting = e, this.initBot().catch((t) => {
3485
- T.info(`Exception during bot initialization: ${t.message}`);
3487
+ T.info("appState: Startup: setSetting", e);
3488
+ const t = this.setting;
3489
+ !!t && (t.orgId !== e.orgId || t.botId !== e.botId || t.url !== e.url || t.version !== e.version) && (this.botSettingsInitialized = !1, this.botSettings = null, this.botSettingsRetryTimeout = 5, this.disabled = !1), this.setting = e, this.initBot().catch((s) => {
3490
+ T.info(`Exception during bot initialization: ${s.message}`);
3486
3491
  });
3487
3492
  }
3488
3493
  // set language
@@ -3496,22 +3501,22 @@ class R extends Jt {
3496
3501
  // todo Form disappears on refresh !!!
3497
3502
  async initBot() {
3498
3503
  if (!this.botSettingsInitialized) {
3499
- const i = `${this.setting.url.startsWith("localhost") ? "http" : "https"}://${this.setting.url}/api/bot/settings/${this.setting.orgId}/${this.setting.botId}`;
3500
- T.info(`Getting bot settings at ${i} ...`);
3501
- let s = null, r = null;
3504
+ const t = this.setting.url.startsWith("localhost") ? "http" : "https", i = this.setting.version && this.setting.version !== "current" ? `?version=${encodeURIComponent(this.setting.version)}` : "", s = `${t}://${this.setting.url}/api/bot/settings/${this.setting.orgId}/${this.setting.botId}${i}`;
3505
+ T.info(`Getting bot settings at ${s} ...`);
3506
+ let r = null, o = null;
3502
3507
  try {
3503
- s = await fetch(i, {
3508
+ r = await fetch(s, {
3504
3509
  //mode: 'no-cors',
3505
3510
  headers: {
3506
3511
  "Access-Control-Allow-Origin": "null",
3507
3512
  "X-Enegel-Signature": this.setting.botId
3508
3513
  //"ngrok-skip-browser-warning": "1",
3509
3514
  }
3510
- }), !s.ok || s.status !== 200 ? T.error(`Failed to get bot ${this.setting.botId} settings: ${s.status} ${s.statusText}`) : r = await s.json();
3511
- } catch (o) {
3512
- T.error(`Failed to get bot ${this.setting.botId} settings: ${o.message}`), r = null;
3515
+ }), !r.ok || r.status !== 200 ? T.error(`Failed to get bot ${this.setting.botId} settings: ${r.status} ${r.statusText}`) : o = await r.json();
3516
+ } catch (f) {
3517
+ T.error(`Failed to get bot ${this.setting.botId} settings: ${f.message}`), o = null;
3513
3518
  }
3514
- if (this.botSettingsInitialized = !0, this.botSettings = r, !r) {
3519
+ if (this.botSettingsInitialized = !0, this.botSettings = o, !o) {
3515
3520
  if (T.error(`Unable to retrieve bot settings - bot disabled. Retry in ${this.botSettingsRetryTimeout} seconds.`), this.disabled = !0, this.botSettingsRetryTimeout > 80) {
3516
3521
  T.error("Failed to retrieve bot settings - bot disabled. Retries exhausted. Refresh page to attempt again.");
3517
3522
  return;
@@ -3521,7 +3526,7 @@ class R extends Jt {
3521
3526
  }, this.botSettingsRetryTimeout * 1e3), this.botSettingsRetryTimeout = this.botSettingsRetryTimeout * 2;
3522
3527
  return;
3523
3528
  }
3524
- T.info("Got bot settings - bot is enabled", r), this.disabled = !1, this.setting.welcomeMessage = r?.welcomeMessage || "How can I help ?", this.setting.disclaimerMessage = r?.disclaimerMessage && r.disclaimerMessage !== "" ? r.disclaimerMessage : null, this.setting.engageMessage = r?.engageMessage || "How can I help ?", this.setting.engageTimeout = r?.engageTimeout || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in r ? r.splitMessagesAtBreak : !1, this.setting.feedbackEnabled = "feedbackEnabled" in r ? r.feedbackEnabled : !1, this.setting.uploadImages = "uploadImages" in r ? r.uploadImages : !1, this.setting.newConversationTimeoutInSec = r?.newConversationTimeoutInSec || 86400, this.setting.enableNotificationSound = "enableNotificationSound" in r ? r.enableNotificationSound : !0, this.setting.botAdvancedSettings = r?.botAdvancedSettings ?? {}, this.setting.startFeedbackFromMessage = "startFeedbackFromMessage" in this.setting.botAdvancedSettings ? this.setting.botAdvancedSettings.startFeedbackFromMessage : 1, this.setting.enableMultiModalConnection = this.setting.botAdvancedSettings?.enableMultiModalConnection ?? !1, this.setting.enablePassContextOnConnect = this.setting.botAdvancedSettings?.enablePassContextOnConnect ?? !1, this.setting.enableShowFullDisclaimerMessage = this.setting.botAdvancedSettings?.enableShowFullDisclaimerMessage ?? !1, this.setting.fileUploadEnabledExtensions = this.setting.botAdvancedSettings?.fileUploadEnabledExtensions || ".jpeg,.jpg,.png,.pdf,.txt,.har,.zip,.mov,.mp4,.mp3", this.setting.fileUploadMaxFileSizeMB = this.setting.botAdvancedSettings?.fileUploadMaxFileSizeMB || 30, this.setting.enableAgentDisconnectedMessage = this.setting.botAdvancedSettings?.enableAgentDisconnectedMessage ?? !1, this.setting.showNewConversationOnAgentDisconnected = this.setting.botAdvancedSettings?.showNewConversationOnAgentDisconnected ?? !1, this.setting.enableMultiModalConnection ? this.setting.enableAudio = !0 : this.setting.enableAudio = !1, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
3529
+ T.info("Got bot settings - bot is enabled", o), this.disabled = !1, this.setting.welcomeMessage = o?.welcomeMessage || "How can I help ?", this.setting.disclaimerMessage = o?.disclaimerMessage && o.disclaimerMessage !== "" ? o.disclaimerMessage : null, this.setting.engageMessage = o?.engageMessage || "How can I help ?", this.setting.engageTimeout = o?.engageTimeout || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in o ? o.splitMessagesAtBreak : !1, this.setting.feedbackEnabled = "feedbackEnabled" in o ? o.feedbackEnabled : !1, this.setting.uploadImages = "uploadImages" in o ? o.uploadImages : !1, this.setting.newConversationTimeoutInSec = o?.newConversationTimeoutInSec || 86400, this.setting.enableNotificationSound = "enableNotificationSound" in o ? o.enableNotificationSound : !0, this.setting.botAdvancedSettings = o?.botAdvancedSettings ?? {}, this.setting.startFeedbackFromMessage = "startFeedbackFromMessage" in this.setting.botAdvancedSettings ? this.setting.botAdvancedSettings.startFeedbackFromMessage : 1, this.setting.enableMultiModalConnection = this.setting.botAdvancedSettings?.enableMultiModalConnection ?? !1, this.setting.enablePassContextOnConnect = this.setting.botAdvancedSettings?.enablePassContextOnConnect ?? !1, this.setting.enableShowFullDisclaimerMessage = this.setting.botAdvancedSettings?.enableShowFullDisclaimerMessage ?? !1, this.setting.fileUploadEnabledExtensions = this.setting.botAdvancedSettings?.fileUploadEnabledExtensions || ".jpeg,.jpg,.png,.pdf,.txt,.har,.zip,.mov,.mp4,.mp3", this.setting.fileUploadMaxFileSizeMB = this.setting.botAdvancedSettings?.fileUploadMaxFileSizeMB || 30, this.setting.enableAgentDisconnectedMessage = this.setting.botAdvancedSettings?.enableAgentDisconnectedMessage ?? !1, this.setting.showNewConversationOnAgentDisconnected = this.setting.botAdvancedSettings?.showNewConversationOnAgentDisconnected ?? !1, this.setting.enableMultiModalConnection ? this.setting.enableAudio = !0 : this.setting.enableAudio = !1, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
3525
3530
  this.showEngagePopup();
3526
3531
  }, this.setting.engageTimeout * 1e3);
3527
3532
  }
@@ -3802,7 +3807,7 @@ class R extends Jt {
3802
3807
  return this.wsClient;
3803
3808
  let t = `${this.setting.url.startsWith("localhost") ? "ws" : "wss"}://${this.setting.url}/api/bot/connect/${this.setting.orgId}/${this.setting.botId}/${this.conversationId}`;
3804
3809
  const i = new URL(t);
3805
- if (this.setting.enableMultiModalConnection && (i.searchParams.set("multiModal", "true"), T.info("MultiModal connection enabled - adding multiModal=true parameter")), this.setting.enablePassContextOnConnect && this.context && typeof this.context == "object")
3810
+ if (this.setting.version && this.setting.version !== "current" && i.searchParams.set("version", this.setting.version), this.setting.enableMultiModalConnection && (i.searchParams.set("multiModal", "true"), T.info("MultiModal connection enabled - adding multiModal=true parameter")), this.setting.enablePassContextOnConnect && this.context && typeof this.context == "object")
3806
3811
  try {
3807
3812
  const s = JSON.stringify(this.context);
3808
3813
  i.searchParams.set("context", s), T.info("Adding context to connect URL");
@@ -4413,6 +4418,7 @@ O([
4413
4418
  orgId: null,
4414
4419
  botId: null,
4415
4420
  url: null,
4421
+ version: "current",
4416
4422
  welcomeMessage: null,
4417
4423
  disclaimerMessage: null,
4418
4424
  enableShowFullDisclaimerMessage: !1,
@@ -5827,7 +5833,7 @@ function Zs() {
5827
5833
  return n;
5828
5834
  }
5829
5835
  function v(n, c) {
5830
- if ((V(n) || n === window || n === document) && (n = [n]), Pe(n) || Ve(n) || (n = [n]), ua(n) != 0) {
5836
+ if ((N(n) || n === window || n === document) && (n = [n]), Pe(n) || Ve(n) || (n = [n]), ua(n) != 0) {
5831
5837
  if (Pe(n) && !Ve(n)) for (var l = n.length, d = 0; d < l && c.call(n[d], n[d], d, n) !== !1; d++) ;
5832
5838
  else if (Ve(n)) {
5833
5839
  for (var h in n) if (ie(n, h) && c.call(n[h], n[h], h, n) === !1) break;
@@ -5843,9 +5849,9 @@ function Zs() {
5843
5849
  function w(n) {
5844
5850
  var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = c.onElement, d = c.withCallback, h = c.avoidDuplicate, m = h === void 0 || h, g = c.once, y = g !== void 0 && g, A = c.useCapture, S = A !== void 0 && A, I = arguments.length > 2 ? arguments[2] : void 0, $ = l || [];
5845
5851
  function B(q) {
5846
- F(d) && d.call(I, q, this), y && B.destroy();
5852
+ j(d) && d.call(I, q, this), y && B.destroy();
5847
5853
  }
5848
- return j($) && ($ = document.querySelectorAll($)), B.destroy = function() {
5854
+ return H($) && ($ = document.querySelectorAll($)), B.destroy = function() {
5849
5855
  v($, (function(q) {
5850
5856
  var D = k(q, n, B);
5851
5857
  D.found && D.all.splice(D.evt, 1), q.removeEventListener && q.removeEventListener(n, B, S);
@@ -5877,14 +5883,14 @@ function Zs() {
5877
5883
  function L(n) {
5878
5884
  var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", l = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
5879
5885
  if (!n || c === "") return !1;
5880
- if (c === "none") return F(l) && l(), !1;
5886
+ if (c === "none") return j(l) && l(), !1;
5881
5887
  var d = He(), h = c.split(" ");
5882
5888
  v(h, (function(m) {
5883
5889
  _(n, "g" + m);
5884
5890
  })), w(d, { onElement: n, avoidDuplicate: !1, once: !0, withCallback: function(m, g) {
5885
5891
  v(h, (function(y) {
5886
5892
  P(g, "g" + y);
5887
- })), F(l) && l();
5893
+ })), j(l) && l();
5888
5894
  } });
5889
5895
  }
5890
5896
  function C(n) {
@@ -5922,17 +5928,17 @@ function Zs() {
5922
5928
  }
5923
5929
  function he(n, c, l) {
5924
5930
  if (be(n)) console.error("Inject assets error");
5925
- else if (F(c) && (l = c, c = !1), j(c) && c in window) F(l) && l();
5931
+ else if (j(c) && (l = c, c = !1), H(c) && c in window) j(l) && l();
5926
5932
  else {
5927
5933
  var d;
5928
5934
  if (n.indexOf(".css") !== -1) {
5929
- if ((d = document.querySelectorAll('link[href="' + n + '"]')) && d.length > 0) return void (F(l) && l());
5935
+ if ((d = document.querySelectorAll('link[href="' + n + '"]')) && d.length > 0) return void (j(l) && l());
5930
5936
  var h = document.getElementsByTagName("head")[0], m = h.querySelectorAll('link[rel="stylesheet"]'), g = document.createElement("link");
5931
- return g.rel = "stylesheet", g.type = "text/css", g.href = n, g.media = "all", m ? h.insertBefore(g, m[0]) : h.appendChild(g), void (F(l) && l());
5937
+ return g.rel = "stylesheet", g.type = "text/css", g.href = n, g.media = "all", m ? h.insertBefore(g, m[0]) : h.appendChild(g), void (j(l) && l());
5932
5938
  }
5933
5939
  if ((d = document.querySelectorAll('script[src="' + n + '"]')) && d.length > 0) {
5934
- if (F(l)) {
5935
- if (j(c)) return ae((function() {
5940
+ if (j(l)) {
5941
+ if (H(c)) return ae((function() {
5936
5942
  return window[c] !== void 0;
5937
5943
  }), (function() {
5938
5944
  l();
@@ -5942,8 +5948,8 @@ function Zs() {
5942
5948
  } else {
5943
5949
  var y = document.createElement("script");
5944
5950
  y.type = "text/javascript", y.src = n, y.onload = function() {
5945
- if (F(l)) {
5946
- if (j(c)) return ae((function() {
5951
+ if (j(l)) {
5952
+ if (H(c)) return ae((function() {
5947
5953
  return window[c] !== void 0;
5948
5954
  }), (function() {
5949
5955
  l();
@@ -5957,13 +5963,13 @@ function Zs() {
5957
5963
  function ge() {
5958
5964
  return "navigator" in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
5959
5965
  }
5960
- function F(n) {
5966
+ function j(n) {
5961
5967
  return typeof n == "function";
5962
5968
  }
5963
- function j(n) {
5969
+ function H(n) {
5964
5970
  return typeof n == "string";
5965
5971
  }
5966
- function V(n) {
5972
+ function N(n) {
5967
5973
  return !(!n || !n.nodeType || n.nodeType != 1);
5968
5974
  }
5969
5975
  function $e(n) {
@@ -5973,7 +5979,7 @@ function Zs() {
5973
5979
  return n && n.length && isFinite(n.length);
5974
5980
  }
5975
5981
  function Ve(n) {
5976
- return o(n) === "object" && n != null && !F(n) && !$e(n);
5982
+ return o(n) === "object" && n != null && !j(n) && !$e(n);
5977
5983
  }
5978
5984
  function be(n) {
5979
5985
  return n == null;
@@ -6131,7 +6137,7 @@ function Zs() {
6131
6137
  function ki(n, c, l, d) {
6132
6138
  var h = n.querySelector(".gslide-media"), m = new Image(), g = "gSlideTitle_" + l, y = "gSlideDesc_" + l;
6133
6139
  m.addEventListener("load", (function() {
6134
- F(d) && d();
6140
+ j(d) && d();
6135
6141
  }), !1), m.src = c.href, c.sizes != "" && c.srcset != "" && (m.sizes = c.sizes, m.srcset = c.srcset), m.alt = "", be(c.alt) || c.alt === "" || (m.alt = c.alt), c.title !== "" && m.setAttribute("aria-labelledby", g), c.description !== "" && m.setAttribute("aria-describedby", y), c.hasOwnProperty("_hasCustomWidth") && c._hasCustomWidth && (m.style.width = c.width), c.hasOwnProperty("_hasCustomHeight") && c._hasCustomHeight && (m.style.height = c.height), h.insertBefore(m, h.firstChild);
6136
6142
  }
6137
6143
  function _i(n, c, l, d) {
@@ -6150,7 +6156,7 @@ function Zs() {
6150
6156
  _(S, "".concat($, "-video gvideo")), S.appendChild(D), S.setAttribute("data-id", g), S.setAttribute("data-index", l);
6151
6157
  var ee = ie(h.settings.plyr, "config") ? h.settings.plyr.config : {}, me = new Plyr("#" + g, ee);
6152
6158
  me.on("ready", (function(ue) {
6153
- A[g] = ue.detail.plyr, F(d) && d();
6159
+ A[g] = ue.detail.plyr, j(d) && d();
6154
6160
  })), ae((function() {
6155
6161
  return n.querySelector("iframe") && n.querySelector("iframe").dataset.ready == "true";
6156
6162
  }), (function() {
@@ -6164,7 +6170,7 @@ function Zs() {
6164
6170
  }
6165
6171
  function Si(n, c, l, d) {
6166
6172
  var h, m = this, g = n.querySelector(".gslide-media"), y = !(!ie(c, "href") || !c.href) && c.href.split("#").pop().trim(), A = !(!ie(c, "content") || !c.content) && c.content;
6167
- if (A && (j(A) && (h = X('<div class="ginlined-content">'.concat(A, "</div>"))), V(A))) {
6173
+ if (A && (H(A) && (h = X('<div class="ginlined-content">'.concat(A, "</div>"))), N(A))) {
6168
6174
  A.style.display == "none" && (A.style.display = "block");
6169
6175
  var S = document.createElement("div");
6170
6176
  S.className = "ginlined-content", S.appendChild(A), h = S;
@@ -6178,13 +6184,13 @@ function Zs() {
6178
6184
  if (!h) return console.error("Unable to append inline slide content", c), !1;
6179
6185
  g.style.height = c.height, g.style.width = c.width, g.appendChild(h), this.events["inlineclose" + y] = w("click", { onElement: g.querySelectorAll(".gtrigger-close"), withCallback: function(B) {
6180
6186
  B.preventDefault(), m.close();
6181
- } }), F(d) && d();
6187
+ } }), j(d) && d();
6182
6188
  }
6183
6189
  function Ci(n, c, l, d) {
6184
6190
  var h = n.querySelector(".gslide-media"), m = (function(g) {
6185
6191
  var y = g.url, A = g.allow, S = g.callback, I = g.appendTo, $ = document.createElement("iframe");
6186
6192
  return $.className = "vimeo-video gvideo", $.src = y, $.style.width = "100%", $.style.height = "100%", A && $.setAttribute("allow", A), $.onload = function() {
6187
- $.onload = null, _($, "node-ready"), F(S) && S();
6193
+ $.onload = null, _($, "node-ready"), j(S) && S();
6188
6194
  }, I && I.appendChild($), $;
6189
6195
  })({ url: c.href, callback: d });
6190
6196
  h.parentNode.style.maxWidth = c.width, h.parentNode.style.height = c.height, h.appendChild(m);
@@ -6197,7 +6203,7 @@ function Zs() {
6197
6203
  return (n = n.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/) !== null ? "image" : n.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || n.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || n.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || n.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/) || n.match(/vimeo\.com\/([0-9]*)/) || n.match(/\.(mp4|ogg|webm|mov)/) !== null ? "video" : n.match(/\.(mp3|wav|wma|aac|ogg)/) !== null ? "audio" : n.indexOf("#") > -1 && c.split("#").pop().trim() !== "" ? "inline" : n.indexOf("goajax=true") > -1 ? "ajax" : "external";
6198
6204
  } }, { key: "parseConfig", value: function(n, c) {
6199
6205
  var l = this, d = p({ descPosition: c.descPosition }, this.defaults);
6200
- if (Ve(n) && !V(n)) {
6206
+ if (Ve(n) && !N(n)) {
6201
6207
  ie(n, "type") || (ie(n, "content") && n.content ? n.type = "inline" : ie(n, "href") && (n.type = this.sourceType(n.href)));
6202
6208
  var h = p(d, n);
6203
6209
  return this.setSize(h, c), h;
@@ -6255,16 +6261,16 @@ function Zs() {
6255
6261
  var n = this, c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, l = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
6256
6262
  if (E(c, "loaded")) return !1;
6257
6263
  var d = this.instance.settings, h = this.slideConfig, m = ge();
6258
- F(d.beforeSlideLoad) && d.beforeSlideLoad({ index: this.index, slide: c, player: !1 });
6264
+ j(d.beforeSlideLoad) && d.beforeSlideLoad({ index: this.index, slide: c, player: !1 });
6259
6265
  var g = h.type, y = h.descPosition, A = c.querySelector(".gslide-media"), S = c.querySelector(".gslide-title"), I = c.querySelector(".gslide-desc"), $ = c.querySelector(".gdesc-inner"), B = l, q = "gSlideTitle_" + this.index, D = "gSlideDesc_" + this.index;
6260
- if (F(d.afterSlideLoad) && (B = function() {
6261
- F(l) && l(), d.afterSlideLoad({ index: n.index, slide: c, player: n.instance.getSlidePlayerInstance(n.index) });
6266
+ if (j(d.afterSlideLoad) && (B = function() {
6267
+ j(l) && l(), d.afterSlideLoad({ index: n.index, slide: c, player: n.instance.getSlidePlayerInstance(n.index) });
6262
6268
  }), h.title == "" && h.description == "" ? $ && $.parentNode.parentNode.removeChild($.parentNode) : (S && h.title !== "" ? (S.id = q, S.innerHTML = h.title) : S.parentNode.removeChild(S), I && h.description !== "" ? (I.id = D, m && d.moreLength > 0 ? (h.smallDescription = this.slideShortDesc(h.description, d.moreLength, d.moreText), I.innerHTML = h.smallDescription, this.descriptionEvents(I, h)) : I.innerHTML = h.description) : I.parentNode.removeChild(I), _(A.parentNode, "desc-".concat(y)), _($.parentNode, "description-".concat(y))), _(A, "gslide-".concat(g)), _(c, "loaded"), g !== "video") {
6263
- if (g !== "external") return g === "inline" ? (Si.apply(this.instance, [c, h, this.index, B]), void (h.draggable && new ga({ dragEl: c.querySelector(".gslide-inline"), toleranceX: d.dragToleranceX, toleranceY: d.dragToleranceY, slide: c, instance: this.instance }))) : void (g !== "image" ? F(B) && B() : ki(c, h, this.index, (function() {
6269
+ if (g !== "external") return g === "inline" ? (Si.apply(this.instance, [c, h, this.index, B]), void (h.draggable && new ga({ dragEl: c.querySelector(".gslide-inline"), toleranceX: d.dragToleranceX, toleranceY: d.dragToleranceY, slide: c, instance: this.instance }))) : void (g !== "image" ? j(B) && B() : ki(c, h, this.index, (function() {
6264
6270
  var ee = c.querySelector("img");
6265
6271
  h.draggable && new ga({ dragEl: ee, toleranceX: d.dragToleranceX, toleranceY: d.dragToleranceY, slide: c, instance: n.instance }), h.zoomable && ee.naturalWidth > ee.offsetWidth && (_(ee, "zoomable"), new xi(ee, c, (function() {
6266
6272
  n.instance.resize();
6267
- }))), F(B) && B();
6273
+ }))), j(B) && B();
6268
6274
  })));
6269
6275
  Ci.apply(this, [c, h, this.index, B]);
6270
6276
  } else _i.apply(this.instance, [c, h, this.index, B]);
@@ -6292,7 +6298,7 @@ function Zs() {
6292
6298
  } }, { key: "create", value: function() {
6293
6299
  return X(this.instance.settings.slideHTML);
6294
6300
  } }, { key: "getConfig", value: function() {
6295
- V(this.element) || this.element.hasOwnProperty("draggable") || (this.element.draggable = this.instance.settings.draggable);
6301
+ N(this.element) || this.element.hasOwnProperty("draggable") || (this.element.draggable = this.instance.settings.draggable);
6296
6302
  var n = new Ai(this.instance.settings.slideExtraAttributes);
6297
6303
  return this.slideConfig = n.parseConfig(this.element, this.instance.settings), this.slideConfig;
6298
6304
  } }]);
@@ -6496,7 +6502,7 @@ function Zs() {
6496
6502
  if (this.elements.length === 0) return !1;
6497
6503
  this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null;
6498
6504
  var l = xt(c) ? c : this.settings.startAt;
6499
- if (V(n)) {
6505
+ if (N(n)) {
6500
6506
  var d = n.getAttribute("data-gallery");
6501
6507
  d && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, d)), be(l) && (l = this.getElementIndex(n)) < 0 && (l = 0);
6502
6508
  }
@@ -6506,7 +6512,7 @@ function Zs() {
6506
6512
  var g = document.createElement("style");
6507
6513
  g.type = "text/css", g.className = "gcss-styles", g.innerText = ".gscrollbar-fixer {margin-right: ".concat(m, "px}"), document.head.appendChild(g), _(h, "gscrollbar-fixer");
6508
6514
  }
6509
- _(h, "glightbox-open"), _(wa, "glightbox-open"), ya && (_(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(l, !0), this.elements.length === 1 ? (_(this.prevButton, "glightbox-button-hidden"), _(this.nextButton, "glightbox-button-hidden")) : (P(this.prevButton, "glightbox-button-hidden"), P(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), F(this.settings.onOpen) && this.settings.onOpen(), va && this.settings.touchNavigation && Ei(this), this.settings.keyboardNavigation && wi(this);
6515
+ _(h, "glightbox-open"), _(wa, "glightbox-open"), ya && (_(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(l, !0), this.elements.length === 1 ? (_(this.prevButton, "glightbox-button-hidden"), _(this.nextButton, "glightbox-button-hidden")) : (P(this.prevButton, "glightbox-button-hidden"), P(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), j(this.settings.onOpen) && this.settings.onOpen(), va && this.settings.touchNavigation && Ei(this), this.settings.keyboardNavigation && wi(this);
6510
6516
  } }, { key: "openAt", value: function() {
6511
6517
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
6512
6518
  this.open(null, n);
@@ -6560,21 +6566,21 @@ function Zs() {
6560
6566
  }
6561
6567
  (this.settings.preload && this.index == 0 && c == 0 || this.index - 1 == c || this.index + 1 == c) && this.preloadSlide(c), this.index === 0 && c === 0 && (this.index = 1), this.updateNavigationClasses(), y = this.slidesContainer.querySelectorAll(".gslide")[c], A = this.getSlidePlayerInstance(c), h.slideNode = y;
6562
6568
  }
6563
- this.trigger("slide_inserted", { index: c, slide: y, slideNode: y, slideConfig: d, slideIndex: c, trigger: null, player: A }), F(this.settings.slideInserted) && this.settings.slideInserted({ index: c, slide: y, player: A });
6569
+ this.trigger("slide_inserted", { index: c, slide: y, slideNode: y, slideConfig: d, slideIndex: c, trigger: null, player: A }), j(this.settings.slideInserted) && this.settings.slideInserted({ index: c, slide: y, player: A });
6564
6570
  } }, { key: "removeSlide", value: function() {
6565
6571
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
6566
6572
  if (n < 0 || n > this.elements.length - 1) return !1;
6567
6573
  var c = this.slidesContainer && this.slidesContainer.querySelectorAll(".gslide")[n];
6568
- c && (this.getActiveSlideIndex() == n && (n == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), c.parentNode.removeChild(c)), this.elements.splice(n, 1), this.trigger("slide_removed", n), F(this.settings.slideRemoved) && this.settings.slideRemoved(n);
6574
+ c && (this.getActiveSlideIndex() == n && (n == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), c.parentNode.removeChild(c)), this.elements.splice(n, 1), this.trigger("slide_removed", n), j(this.settings.slideRemoved) && this.settings.slideRemoved(n);
6569
6575
  } }, { key: "slideAnimateIn", value: function(n, c) {
6570
6576
  var l = this, d = n.querySelector(".gslide-media"), h = n.querySelector(".gslide-description"), m = { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlide, slideConfig: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, g = { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideConfig: this.elements[this.index].slideConfig, slideIndex: this.index, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) };
6571
6577
  if (d.offsetWidth > 0 && h && (U(h), h.style.display = ""), P(n, this.effectsClasses), c) L(n, this.settings.cssEfects[this.settings.openEffect].in, (function() {
6572
- l.settings.autoplayVideos && l.slidePlayerPlay(n), l.trigger("slide_changed", { prev: m, current: g }), F(l.settings.afterSlideChange) && l.settings.afterSlideChange.apply(l, [m, g]);
6578
+ l.settings.autoplayVideos && l.slidePlayerPlay(n), l.trigger("slide_changed", { prev: m, current: g }), j(l.settings.afterSlideChange) && l.settings.afterSlideChange.apply(l, [m, g]);
6573
6579
  }));
6574
6580
  else {
6575
6581
  var y = this.settings.slideEffect, A = y !== "none" ? this.settings.cssEfects[y].in : y;
6576
6582
  this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (A = this.settings.cssEfects.slideBack.in), L(n, A, (function() {
6577
- l.settings.autoplayVideos && l.slidePlayerPlay(n), l.trigger("slide_changed", { prev: m, current: g }), F(l.settings.afterSlideChange) && l.settings.afterSlideChange.apply(l, [m, g]);
6583
+ l.settings.autoplayVideos && l.slidePlayerPlay(n), l.trigger("slide_changed", { prev: m, current: g }), j(l.settings.afterSlideChange) && l.settings.afterSlideChange.apply(l, [m, g]);
6578
6584
  }));
6579
6585
  }
6580
6586
  setTimeout((function() {
@@ -6585,7 +6591,7 @@ function Zs() {
6585
6591
  var n = this.prevActiveSlide;
6586
6592
  P(n, this.effectsClasses), _(n, "prev");
6587
6593
  var c = this.settings.slideEffect, l = c !== "none" ? this.settings.cssEfects[c].out : c;
6588
- this.slidePlayerPause(n), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }), F(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [{ index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, { index: this.index, slide: this.activeSlide, player: this.getSlidePlayerInstance(this.index) }]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (l = this.settings.cssEfects.slideBack.out), L(n, l, (function() {
6594
+ this.slidePlayerPause(n), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }), j(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [{ index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, { index: this.index, slide: this.activeSlide, player: this.getSlidePlayerInstance(this.index) }]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (l = this.settings.cssEfects.slideBack.out), L(n, l, (function() {
6589
6595
  var d = n.querySelector(".ginner-container"), h = n.querySelector(".gslide-media"), m = n.querySelector(".gslide-description");
6590
6596
  d.style.transform = "", h.style.transform = "", P(h, "greset"), h.style.opacity = "", m && (m.style.opacity = ""), P(n, "prev");
6591
6597
  }));
@@ -6595,7 +6601,7 @@ function Zs() {
6595
6601
  var c = "gvideo" + n, l = this.getAllPlayers();
6596
6602
  return !(!ie(l, c) || !l[c]) && l[c];
6597
6603
  } }, { key: "stopSlideVideo", value: function(n) {
6598
- if (V(n)) {
6604
+ if (N(n)) {
6599
6605
  var c = n.querySelector(".gvideo-wrapper");
6600
6606
  c && (n = c.getAttribute("data-index"));
6601
6607
  }
@@ -6603,14 +6609,14 @@ function Zs() {
6603
6609
  var l = this.getSlidePlayerInstance(n);
6604
6610
  l && l.playing && l.pause();
6605
6611
  } }, { key: "slidePlayerPause", value: function(n) {
6606
- if (V(n)) {
6612
+ if (N(n)) {
6607
6613
  var c = n.querySelector(".gvideo-wrapper");
6608
6614
  c && (n = c.getAttribute("data-index"));
6609
6615
  }
6610
6616
  var l = this.getSlidePlayerInstance(n);
6611
6617
  l && l.playing && l.pause();
6612
6618
  } }, { key: "playSlideVideo", value: function(n) {
6613
- if (V(n)) {
6619
+ if (N(n)) {
6614
6620
  var c = n.querySelector(".gvideo-wrapper");
6615
6621
  c && (n = c.getAttribute("data-index"));
6616
6622
  }
@@ -6620,7 +6626,7 @@ function Zs() {
6620
6626
  } }, { key: "slidePlayerPlay", value: function(n) {
6621
6627
  var c;
6622
6628
  if (!ya || (c = this.settings.plyr.config) !== null && c !== void 0 && c.muted) {
6623
- if (V(n)) {
6629
+ if (N(n)) {
6624
6630
  var l = n.querySelector(".gvideo-wrapper");
6625
6631
  l && (n = l.getAttribute("data-index"));
6626
6632
  }
@@ -6749,7 +6755,7 @@ function Zs() {
6749
6755
  n.events = null;
6750
6756
  }
6751
6757
  var d = document.body;
6752
- P(wa, "glightbox-open"), P(d, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), n.modal.parentNode.removeChild(n.modal), n.trigger("close"), F(n.settings.onClose) && n.settings.onClose();
6758
+ P(wa, "glightbox-open"), P(d, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), n.modal.parentNode.removeChild(n.modal), n.trigger("close"), j(n.settings.onClose) && n.settings.onClose();
6753
6759
  var h = document.querySelector(".gcss-styles");
6754
6760
  h && h.parentNode.removeChild(h), n.lightboxOpen = !1, n.closing = null;
6755
6761
  }));
@@ -6757,7 +6763,7 @@ function Zs() {
6757
6763
  this.close(), this.clearAllEvents(), this.baseEvents && this.baseEvents.destroy();
6758
6764
  } }, { key: "on", value: function(n, c) {
6759
6765
  var l = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
6760
- if (!n || !F(c)) throw new TypeError("Event name and callback must be defined");
6766
+ if (!n || !j(c)) throw new TypeError("Event name and callback must be defined");
6761
6767
  this.apiEvents.push({ evt: n, once: l, callback: c });
6762
6768
  } }, { key: "once", value: function(n, c) {
6763
6769
  this.on(n, c, !0);
@@ -11568,16 +11574,16 @@ async function Rr(a, e) {
11568
11574
  }).text()
11569
11575
  );
11570
11576
  }
11571
- var zr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, N = (a, e, t, i) => {
11577
+ var zr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, V = (a, e, t, i) => {
11572
11578
  for (var s = i > 1 ? void 0 : i ? Or(e, t) : e, r = a.length - 1, o; r >= 0; r--)
11573
11579
  (o = a[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
11574
11580
  return i && s && zr(e, t, s), s;
11575
11581
  };
11576
11582
  const Be = Je.noConflict();
11577
11583
  Be.setLevel("info");
11578
- let H = class extends re {
11584
+ let F = class extends re {
11579
11585
  constructor() {
11580
- super(...arguments), this.store = new it(this, b), this.displayLicense = !1, this.name = "ChatBot", this.orgId = "", this.botId = "", this.url = "ws://localhost:3070", this.logoUrl = "", this.logoSvg = `<svg width="24" height="24" viewBox="0 0 203 200" fill="none" xmlns="http://www.w3.org/2000/svg">
11586
+ super(...arguments), this.store = new it(this, b), this.displayLicense = !1, this.name = "ChatBot", this.orgId = "", this.botId = "", this.version = "current", this.url = "ws://localhost:3070", this.logoUrl = "", this.logoSvg = `<svg width="24" height="24" viewBox="0 0 203 200" fill="none" xmlns="http://www.w3.org/2000/svg">
11581
11587
  <path d="M100.438 0C155.665 0 200.438 44.7723 200.438 100C200.438 155.228 155.665 200 100.438 200C45.2098 200 0.4375 155.228 0.4375 100C0.4375 44.7723 45.2098 0 100.438 0ZM130.093 60.6063C120.409 60.6063 115.205 61.458 109.344 65.0325C100.122 70.6592 95.629 80.1958 94.2273 93.877C94.1468 94.5544 93.8048 97.2571 93.4091 100.349C93.3152 101.06 93.2281 101.771 93.1409 102.455C92.7318 105.573 92.3093 108.739 92.0142 110.408C90.8808 117.041 89.2914 123.761 83.8927 126.759C83.6915 126.873 83.4702 126.967 83.2556 127.067C78.6013 129.093 72.2905 128.898 72.2905 128.898C72.2905 128.898 69.1988 128.885 69.1787 128.885C69.172 128.885 69.1921 128.885 69.1921 128.898L68.1057 143.632C87.7824 143.666 93.0537 139.213 93.0537 139.213C102.275 133.586 106.768 124.049 108.17 110.368C108.251 109.677 108.593 106.894 109.002 103.735C109.096 103.004 109.196 102.273 109.283 101.576C109.679 98.5246 110.095 95.4798 110.383 93.8435C111.517 87.2108 113.106 80.4842 118.505 77.4931C118.706 77.3791 118.921 77.2852 119.135 77.1846C123.756 75.1727 130.107 75.3471 130.107 75.3471C132.494 75.3269 133.219 75.4007 133.286 75.4074L134.292 60.6264C132.783 60.6264 130.107 60.6264 130.107 60.6264L130.093 60.6063Z" fill="#010101" style="fill:#010101;fill:color(display-p3 0.0039 0.0039 0.0039);fill-opacity:1;"/>
11582
11588
  </svg>`, this.closeSvg = '<svg viewBox="0 0 16 16" width="1.4em" height="1.4em"><path fill="currentColor" d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"></path></svg>', this.logoSvgGradient = `<svg width="28" height="28" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
11583
11589
  <g clip-path="url(#clip0_830_884)">
@@ -11731,7 +11737,7 @@ let H = class extends re {
11731
11737
  _initSetting() {
11732
11738
  Be.info("_initSetting");
11733
11739
  const a = b.setting;
11734
- a.orgId = this.orgId, a.botId = this.botId, a.url = this.url, a.logoUrl = this.logoUrl, a.logoSvg = this.logoSvg, a.closeSvg = this.closeSvg, a.popupLogoSvg = this.popupLogoSvg, a.popupLogoUrl = this.popupLogoUrl, a.botIconSvg = this.botIconSvg, a.userIconSvg = this.userIconSvg, a.systemIconSvg = this.systemIconSvg, a.agentIconSvg = this.agentIconSvg, a.infoIconSvg = this.infoIconSvg, a.anchorOpenSvg = this.anchorOpenSvg, a.anchorCloseSvg = this.anchorCloseSvg, a.sendIconSvg = this.sendIconSvg, a.attachIconSvg = this.attachIconSvg, b.setSetting(a);
11740
+ a.orgId = this.orgId, a.botId = this.botId, a.url = this.url, a.version = this.version || "current", a.logoUrl = this.logoUrl, a.logoSvg = this.logoSvg, a.closeSvg = this.closeSvg, a.popupLogoSvg = this.popupLogoSvg, a.popupLogoUrl = this.popupLogoUrl, a.botIconSvg = this.botIconSvg, a.userIconSvg = this.userIconSvg, a.systemIconSvg = this.systemIconSvg, a.agentIconSvg = this.agentIconSvg, a.infoIconSvg = this.infoIconSvg, a.anchorOpenSvg = this.anchorOpenSvg, a.anchorCloseSvg = this.anchorCloseSvg, a.sendIconSvg = this.sendIconSvg, a.attachIconSvg = this.attachIconSvg, b.setSetting(a);
11735
11741
  let e = {};
11736
11742
  try {
11737
11743
  e = JSON.parse(this.prefilledFormFields);
@@ -11893,100 +11899,103 @@ let H = class extends re {
11893
11899
  this._messageList?.scrollToBottom();
11894
11900
  }
11895
11901
  };
11896
- H.styles = [Xi, Ka];
11897
- N([
11902
+ F.styles = [Xi, Ka];
11903
+ V([
11898
11904
  x({ type: Boolean, attribute: "display-license" })
11899
- ], H.prototype, "displayLicense", 2);
11900
- N([
11905
+ ], F.prototype, "displayLicense", 2);
11906
+ V([
11901
11907
  x({ type: String, attribute: "name" })
11902
- ], H.prototype, "name", 2);
11903
- N([
11908
+ ], F.prototype, "name", 2);
11909
+ V([
11904
11910
  x({ type: String, attribute: "org-id" })
11905
- ], H.prototype, "orgId", 2);
11906
- N([
11911
+ ], F.prototype, "orgId", 2);
11912
+ V([
11907
11913
  x({ type: String, attribute: "bot-id" })
11908
- ], H.prototype, "botId", 2);
11909
- N([
11914
+ ], F.prototype, "botId", 2);
11915
+ V([
11916
+ x({ type: String, attribute: "version" })
11917
+ ], F.prototype, "version", 2);
11918
+ V([
11910
11919
  x({ type: String, attribute: "url" })
11911
- ], H.prototype, "url", 2);
11912
- N([
11920
+ ], F.prototype, "url", 2);
11921
+ V([
11913
11922
  x({ type: String, attribute: "logo-url" })
11914
- ], H.prototype, "logoUrl", 2);
11915
- N([
11923
+ ], F.prototype, "logoUrl", 2);
11924
+ V([
11916
11925
  x({ type: String, attribute: "logo-svg" })
11917
- ], H.prototype, "logoSvg", 2);
11918
- N([
11926
+ ], F.prototype, "logoSvg", 2);
11927
+ V([
11919
11928
  x({ type: String, attribute: "close-svg" })
11920
- ], H.prototype, "closeSvg", 2);
11921
- N([
11929
+ ], F.prototype, "closeSvg", 2);
11930
+ V([
11922
11931
  x({ type: String, attribute: "popup-logo-svg" })
11923
- ], H.prototype, "popupLogoSvg", 2);
11924
- N([
11932
+ ], F.prototype, "popupLogoSvg", 2);
11933
+ V([
11925
11934
  x({ type: String, attribute: "popup-logo-url" })
11926
- ], H.prototype, "popupLogoUrl", 2);
11927
- N([
11935
+ ], F.prototype, "popupLogoUrl", 2);
11936
+ V([
11928
11937
  x({ type: String, attribute: "bot-icon-svg" })
11929
- ], H.prototype, "botIconSvg", 2);
11930
- N([
11938
+ ], F.prototype, "botIconSvg", 2);
11939
+ V([
11931
11940
  x({ type: String, attribute: "user-icon-svg" })
11932
- ], H.prototype, "userIconSvg", 2);
11933
- N([
11941
+ ], F.prototype, "userIconSvg", 2);
11942
+ V([
11934
11943
  x({ type: String, attribute: "system-icon-svg" })
11935
- ], H.prototype, "systemIconSvg", 2);
11936
- N([
11944
+ ], F.prototype, "systemIconSvg", 2);
11945
+ V([
11937
11946
  x({ type: String, attribute: "agent-icon-svg" })
11938
- ], H.prototype, "agentIconSvg", 2);
11939
- N([
11947
+ ], F.prototype, "agentIconSvg", 2);
11948
+ V([
11940
11949
  x({ type: String, attribute: "info-icon-svg" })
11941
- ], H.prototype, "infoIconSvg", 2);
11942
- N([
11950
+ ], F.prototype, "infoIconSvg", 2);
11951
+ V([
11943
11952
  x({ type: String, attribute: "anchor-open-svg" })
11944
- ], H.prototype, "anchorOpenSvg", 2);
11945
- N([
11953
+ ], F.prototype, "anchorOpenSvg", 2);
11954
+ V([
11946
11955
  x({ type: String, attribute: "anchor-close-svg" })
11947
- ], H.prototype, "anchorCloseSvg", 2);
11948
- N([
11956
+ ], F.prototype, "anchorCloseSvg", 2);
11957
+ V([
11949
11958
  x({ type: String, attribute: "send-icon-svg" })
11950
- ], H.prototype, "sendIconSvg", 2);
11951
- N([
11959
+ ], F.prototype, "sendIconSvg", 2);
11960
+ V([
11952
11961
  x({ type: String, attribute: "attach-icon-svg" })
11953
- ], H.prototype, "attachIconSvg", 2);
11954
- N([
11962
+ ], F.prototype, "attachIconSvg", 2);
11963
+ V([
11955
11964
  x({ type: Boolean, attribute: "stream" })
11956
- ], H.prototype, "stream", 2);
11957
- N([
11965
+ ], F.prototype, "stream", 2);
11966
+ V([
11958
11967
  x({ type: Boolean, attribute: "custom-request" })
11959
- ], H.prototype, "customRequest", 2);
11960
- N([
11968
+ ], F.prototype, "customRequest", 2);
11969
+ V([
11961
11970
  x({ type: Boolean, attribute: "enable-file-upload" })
11962
- ], H.prototype, "enableFileUpload", 2);
11963
- N([
11971
+ ], F.prototype, "enableFileUpload", 2);
11972
+ V([
11964
11973
  x({ type: String, attribute: "upload-file-url" })
11965
- ], H.prototype, "uploadFileUrl", 2);
11966
- N([
11974
+ ], F.prototype, "uploadFileUrl", 2);
11975
+ V([
11967
11976
  x({ type: Boolean, attribute: "open" })
11968
- ], H.prototype, "open", 2);
11969
- N([
11977
+ ], F.prototype, "open", 2);
11978
+ V([
11970
11979
  x({ type: Boolean, attribute: "always-open" })
11971
- ], H.prototype, "alwaysOpen", 2);
11972
- N([
11980
+ ], F.prototype, "alwaysOpen", 2);
11981
+ V([
11973
11982
  x({ type: String, attribute: "prefilled-form-fields" })
11974
- ], H.prototype, "prefilledFormFields", 2);
11975
- N([
11983
+ ], F.prototype, "prefilledFormFields", 2);
11984
+ V([
11976
11985
  x({ type: Boolean })
11977
- ], H.prototype, "loading", 2);
11978
- N([
11986
+ ], F.prototype, "loading", 2);
11987
+ V([
11979
11988
  x({ type: Boolean })
11980
- ], H.prototype, "showSetting", 2);
11981
- N([
11989
+ ], F.prototype, "showSetting", 2);
11990
+ V([
11982
11991
  x({ type: Boolean })
11983
- ], H.prototype, "showAuthAlert", 2);
11984
- N([
11992
+ ], F.prototype, "showAuthAlert", 2);
11993
+ V([
11985
11994
  xe("cb-message-list")
11986
- ], H.prototype, "_messageList", 2);
11987
- H = N([
11995
+ ], F.prototype, "_messageList", 2);
11996
+ F = V([
11988
11997
  Z("enegelai-bot")
11989
- ], H);
11998
+ ], F);
11990
11999
  export {
11991
- H as default
12000
+ F as default
11992
12001
  };