@2uinc/frontend-component-xpert-chatbot 1.37.1 → 1.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lib/index.min.js +118 -116
  2. package/package.json +1 -1
@@ -247,16 +247,16 @@ var Qn = { exports: {} };
247
247
  Qn.exports;
248
248
  var xu;
249
249
  function j0() {
250
- return xu || (xu = 1, function(e, t) {
250
+ return xu || (xu = 1, (function(e, t) {
251
251
  var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", g = "[object Null]", D = "[object Object]", P = "[object Proxy]", Q = "[object RegExp]", j = "[object Set]", C = "[object String]", w = "[object Undefined]", G = "[object WeakMap]", q = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", k = "[object Int8Array]", I = "[object Int16Array]", L = "[object Int32Array]", M = "[object Uint8Array]", V = "[object Uint8ClampedArray]", H = "[object Uint16Array]", U = "[object Uint32Array]", E = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, oe = /^(?:0|[1-9]\d*)$/, v = {};
252
252
  v[Y] = v[$] = v[k] = v[I] = v[L] = v[M] = v[V] = v[H] = v[U] = !0, v[s] = v[l] = v[q] = v[d] = v[te] = v[f] = v[p] = v[h] = v[m] = v[y] = v[D] = v[Q] = v[j] = v[C] = v[G] = !1;
253
- var ie = typeof Cr == "object" && Cr && Cr.Object === Object && Cr, Te = typeof self == "object" && self && self.Object === Object && self, he = ie || Te || Function("return this")(), ve = t && !t.nodeType && t, Oe = ve && !0 && e && !e.nodeType && e, ze = Oe && Oe.exports === ve, Ie = ze && ie.process, tt = function() {
253
+ var ie = typeof Cr == "object" && Cr && Cr.Object === Object && Cr, Te = typeof self == "object" && self && self.Object === Object && self, he = ie || Te || Function("return this")(), ve = t && !t.nodeType && t, Ie = ve && !0 && e && !e.nodeType && e, ze = Ie && Ie.exports === ve, Ne = ze && ie.process, tt = (function() {
254
254
  try {
255
- var A = Oe && Oe.require && Oe.require("util").types;
256
- return A || Ie && Ie.binding && Ie.binding("util");
255
+ var A = Ie && Ie.require && Ie.require("util").types;
256
+ return A || Ne && Ne.binding && Ne.binding("util");
257
257
  } catch {
258
258
  }
259
- }(), pt = tt && tt.isTypedArray;
259
+ })(), pt = tt && tt.isTypedArray;
260
260
  function wt(A, N, F) {
261
261
  switch (F.length) {
262
262
  case 0:
@@ -288,20 +288,20 @@ function j0() {
288
288
  return A(N(F));
289
289
  };
290
290
  }
291
- var se = Array.prototype, ye = Function.prototype, Re = Object.prototype, xe = he["__core-js_shared__"], Be = ye.toString, Ce = Re.hasOwnProperty, _e = function() {
291
+ var se = Array.prototype, ye = Function.prototype, Re = Object.prototype, xe = he["__core-js_shared__"], Be = ye.toString, Ce = Re.hasOwnProperty, _e = (function() {
292
292
  var A = /[^.]+$/.exec(xe && xe.keys && xe.keys.IE_PROTO || "");
293
293
  return A ? "Symbol(src)_1." + A : "";
294
- }(), ut = Re.toString, yt = Be.call(Object), z = RegExp(
294
+ })(), ut = Re.toString, yt = Be.call(Object), z = RegExp(
295
295
  "^" + Be.call(Ce).replace(E, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
296
296
  ), K = ze ? he.Buffer : void 0, re = he.Symbol, ge = he.Uint8Array;
297
297
  K && K.allocUnsafe;
298
- var be = gn(Object.getPrototypeOf, Object), He = Object.create, $e = Re.propertyIsEnumerable, Ze = se.splice, ot = re ? re.toStringTag : void 0, Qe = function() {
298
+ var be = gn(Object.getPrototypeOf, Object), He = Object.create, $e = Re.propertyIsEnumerable, Ze = se.splice, ot = re ? re.toStringTag : void 0, Qe = (function() {
299
299
  try {
300
300
  var A = sa(Object, "defineProperty");
301
301
  return A({}, "", {}), A;
302
302
  } catch {
303
303
  }
304
- }(), Ye = K ? K.isBuffer : void 0, bn = Math.max, Ot = Date.now, lu = sa(he, "Map"), Hn = sa(Object, "create"), Od = /* @__PURE__ */ function() {
304
+ })(), Ye = K ? K.isBuffer : void 0, bn = Math.max, Ot = Date.now, lu = sa(he, "Map"), Hn = sa(Object, "create"), Od = /* @__PURE__ */ (function() {
305
305
  function A() {
306
306
  }
307
307
  return function(N) {
@@ -313,7 +313,7 @@ function j0() {
313
313
  var F = new A();
314
314
  return A.prototype = void 0, F;
315
315
  };
316
- }();
316
+ })();
317
317
  function Jt(A) {
318
318
  var N = -1, F = A == null ? 0 : A.length;
319
319
  for (this.clear(); ++N < F; ) {
@@ -661,9 +661,9 @@ function j0() {
661
661
  function _r(A, N) {
662
662
  return A === N || A !== A && N !== N;
663
663
  }
664
- var ca = cu(/* @__PURE__ */ function() {
664
+ var ca = cu(/* @__PURE__ */ (function() {
665
665
  return arguments;
666
- }()) ? cu : function(A) {
666
+ })()) ? cu : function(A) {
667
667
  return Un(A) && Ce.call(A, "callee") && !$e.call(A, "callee");
668
668
  }, da = Array.isArray;
669
669
  function fa(A) {
@@ -720,7 +720,7 @@ function j0() {
720
720
  return !1;
721
721
  }
722
722
  e.exports = S0;
723
- }(Qn, Qn.exports)), Qn.exports;
723
+ })(Qn, Qn.exports)), Qn.exports;
724
724
  }
725
725
  var q0 = j0();
726
726
  const Ds = /* @__PURE__ */ Bt(q0), z0 = {
@@ -1592,7 +1592,7 @@ Ps.propTypes = {
1592
1592
  xpertKey: x.string,
1593
1593
  widgetMode: x.bool
1594
1594
  };
1595
- const Qt = Gr({}), Ne = {
1595
+ const Qt = Gr({}), Oe = {
1596
1596
  AGENT: "agent",
1597
1597
  ASSISTANT: "assistant",
1598
1598
  ERROR: "error",
@@ -1607,7 +1607,7 @@ const Qt = Gr({}), Ne = {
1607
1607
  content: x.string.isRequired,
1608
1608
  feedbackThumbType: x.oneOf(["DOWN", "UP"]),
1609
1609
  liveAgent: x.bool,
1610
- role: x.oneOf(Object.values(Ne)).isRequired,
1610
+ role: x.oneOf(Object.values(Oe)).isRequired,
1611
1611
  timestamp: x.instanceOf(Date),
1612
1612
  toolCalls: x.arrayOf(
1613
1613
  x.shape({
@@ -1696,7 +1696,7 @@ var _a = { exports: {} };
1696
1696
  */
1697
1697
  var Iu;
1698
1698
  function J0() {
1699
- return Iu || (Iu = 1, function(e) {
1699
+ return Iu || (Iu = 1, (function(e) {
1700
1700
  (function() {
1701
1701
  var t = {}.hasOwnProperty;
1702
1702
  function n() {
@@ -1725,7 +1725,7 @@ function J0() {
1725
1725
  }
1726
1726
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
1727
1727
  })();
1728
- }(_a)), _a.exports;
1728
+ })(_a)), _a.exports;
1729
1729
  }
1730
1730
  var ef = J0();
1731
1731
  const Us = /* @__PURE__ */ Bt(ef);
@@ -2484,8 +2484,8 @@ var wu = {
2484
2484
  V ? H = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : H = u.tabbableGroups[0].firstTabbableNode;
2485
2485
  else if (V) {
2486
2486
  var ne = u.tabbableGroups.findIndex(function(ve) {
2487
- var Oe = ve.firstTabbableNode;
2488
- return I === Oe;
2487
+ var Ie = ve.firstTabbableNode;
2488
+ return I === Ie;
2489
2489
  });
2490
2490
  if (ne < 0 && (E.container === I || Lr(I, i.tabbableOptions) && !an(I, i.tabbableOptions) && !E.nextTabbableNode(I, !1)) && (ne = U), ne >= 0) {
2491
2491
  var oe = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, v = u.tabbableGroups[oe];
@@ -2493,8 +2493,8 @@ var wu = {
2493
2493
  } else Jn(L) || (H = E.nextTabbableNode(I, !1));
2494
2494
  } else {
2495
2495
  var ie = u.tabbableGroups.findIndex(function(ve) {
2496
- var Oe = ve.lastTabbableNode;
2497
- return I === Oe;
2496
+ var Ie = ve.lastTabbableNode;
2497
+ return I === Ie;
2498
2498
  });
2499
2499
  if (ie < 0 && (E.container === I || Lr(I, i.tabbableOptions) && !an(I, i.tabbableOptions) && !E.nextTabbableNode(I)) && (ie = U), ie >= 0) {
2500
2500
  var Te = ie === u.tabbableGroups.length - 1 ? 0 : ie + 1, he = u.tabbableGroups[Te];
@@ -2754,7 +2754,7 @@ function Hf() {
2754
2754
  }
2755
2755
  return (w === "string" ? String : Number)(C);
2756
2756
  }
2757
- var b = At, m = /* @__PURE__ */ Rs(), y = Ff, g = y.createFocusTrap, D = Bf, P = D.isFocusable, Q = /* @__PURE__ */ function(C) {
2757
+ var b = At, m = /* @__PURE__ */ Rs(), y = Ff, g = y.createFocusTrap, D = Bf, P = D.isFocusable, Q = /* @__PURE__ */ (function(C) {
2758
2758
  function w(G) {
2759
2759
  var q;
2760
2760
  t(this, w), q = a(this, w, [G]), f(q, "getNodeForOption", function($) {
@@ -2939,7 +2939,7 @@ function Hf() {
2939
2939
  return null;
2940
2940
  }
2941
2941
  }]);
2942
- }(b.Component), j = typeof Element > "u" ? Function : Element;
2942
+ })(b.Component), j = typeof Element > "u" ? Function : Element;
2943
2943
  return Q.propTypes = {
2944
2944
  active: m.bool,
2945
2945
  paused: m.bool,
@@ -7056,14 +7056,14 @@ function tm(e, t, n) {
7056
7056
  ) : ne(I);
7057
7057
  function ne(he) {
7058
7058
  return ve;
7059
- function ve(Oe) {
7060
- const ze = Oe !== null && he[Oe], Ie = Oe !== null && he.null, tt = [
7059
+ function ve(Ie) {
7060
+ const ze = Ie !== null && he[Ie], Ne = Ie !== null && he.null, tt = [
7061
7061
  // To do: add more extension tests.
7062
7062
  /* c8 ignore next 2 */
7063
7063
  ...Array.isArray(ze) ? ze : ze ? [ze] : [],
7064
- ...Array.isArray(Ie) ? Ie : Ie ? [Ie] : []
7064
+ ...Array.isArray(Ne) ? Ne : Ne ? [Ne] : []
7065
7065
  ];
7066
- return oe(tt)(Oe);
7066
+ return oe(tt)(Ie);
7067
7067
  }
7068
7068
  }
7069
7069
  function oe(he) {
@@ -7071,7 +7071,7 @@ function tm(e, t, n) {
7071
7071
  }
7072
7072
  function v(he) {
7073
7073
  return ve;
7074
- function ve(Oe) {
7074
+ function ve(Ie) {
7075
7075
  return E = q(), U = he, he.partial || (c.currentConstruct = he), he.name && c.parser.constructs.disable.null.includes(he.name) ? Te() : he.tokenize.call(
7076
7076
  // If we do have fields, create an object w/ `context` as its
7077
7077
  // prototype.
@@ -7080,7 +7080,7 @@ function tm(e, t, n) {
7080
7080
  l,
7081
7081
  ie,
7082
7082
  Te
7083
- )(Oe);
7083
+ )(Ie);
7084
7084
  }
7085
7085
  }
7086
7086
  function ie(he) {
@@ -7391,13 +7391,13 @@ function _m(e) {
7391
7391
  atxHeading: d(),
7392
7392
  atxHeadingSequence: w,
7393
7393
  autolink: d(),
7394
- autolinkEmail: Ie,
7394
+ autolinkEmail: Ne,
7395
7395
  autolinkProtocol: ze,
7396
7396
  blockQuote: d(),
7397
7397
  characterEscapeValue: $,
7398
7398
  characterReferenceMarkerHexadecimal: ve,
7399
7399
  characterReferenceMarkerNumeric: ve,
7400
- characterReferenceValue: Oe,
7400
+ characterReferenceValue: Ie,
7401
7401
  codeFenced: d(D),
7402
7402
  codeFencedFence: g,
7403
7403
  codeFencedFenceInfo: m,
@@ -7722,7 +7722,7 @@ function _m(e) {
7722
7722
  function ve(z) {
7723
7723
  i("characterReferenceType", z.type);
7724
7724
  }
7725
- function Oe(z) {
7725
+ function Ie(z) {
7726
7726
  const K = this.sliceSerialize(z), re = u("characterReferenceType");
7727
7727
  let ge;
7728
7728
  re ? (ge = Nl(
@@ -7737,7 +7737,7 @@ function _m(e) {
7737
7737
  const K = this.stack[this.stack.length - 1];
7738
7738
  K.url = this.sliceSerialize(z);
7739
7739
  }
7740
- function Ie(z) {
7740
+ function Ne(z) {
7741
7741
  $.call(this, z);
7742
7742
  const K = this.stack[this.stack.length - 1];
7743
7743
  K.url = "mailto:" + this.sliceSerialize(z);
@@ -8339,7 +8339,7 @@ const Ml = (
8339
8339
  * @param {Test} [test]
8340
8340
  * @returns {AssertAnything}
8341
8341
  */
8342
- function(e) {
8342
+ (function(e) {
8343
8343
  if (e == null)
8344
8344
  return t2;
8345
8345
  if (typeof e == "string")
@@ -8349,7 +8349,7 @@ const Ml = (
8349
8349
  if (typeof e == "function")
8350
8350
  return Zr(e);
8351
8351
  throw new Error("Expected function, string, or object as test");
8352
- }
8352
+ })
8353
8353
  );
8354
8354
  function Zm(e) {
8355
8355
  const t = [];
@@ -8402,7 +8402,7 @@ const n2 = !0, So = !1, r2 = "skip", a2 = (
8402
8402
  * @param {boolean | null | undefined} [reverse]
8403
8403
  * @returns {void}
8404
8404
  */
8405
- function(e, t, n, r) {
8405
+ (function(e, t, n, r) {
8406
8406
  typeof t == "function" && typeof n != "function" && (r = n, n = t, t = null);
8407
8407
  const a = Ml(t), i = r ? -1 : 1;
8408
8408
  u(e, void 0, [])();
@@ -8434,7 +8434,7 @@ const n2 = !0, So = !1, r2 = "skip", a2 = (
8434
8434
  return p;
8435
8435
  }
8436
8436
  }
8437
- }
8437
+ })
8438
8438
  );
8439
8439
  function i2(e) {
8440
8440
  return Array.isArray(e) ? e : typeof e == "number" ? [n2, e] : [e];
@@ -8453,7 +8453,7 @@ const Mi = (
8453
8453
  * @param {boolean | null | undefined} [reverse]
8454
8454
  * @returns {void}
8455
8455
  */
8456
- function(e, t, n, r) {
8456
+ (function(e, t, n, r) {
8457
8457
  typeof t == "function" && typeof n != "function" && (r = n, n = t, t = null), a2(e, t, a, r);
8458
8458
  function a(i, u) {
8459
8459
  const s = u[u.length - 1];
@@ -8463,7 +8463,7 @@ const Mi = (
8463
8463
  s
8464
8464
  );
8465
8465
  }
8466
- }
8466
+ })
8467
8467
  );
8468
8468
  function u2(e) {
8469
8469
  return !e || !e.position || !e.position.start || !e.position.start.line || !e.position.start.column || !e.position.end || !e.position.end.line || !e.position.end.column;
@@ -8662,9 +8662,9 @@ function Bl(e, t) {
8662
8662
  }
8663
8663
  const p2 = (
8664
8664
  /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */
8665
- function(e, t) {
8665
+ (function(e, t) {
8666
8666
  return e && "run" in e ? m2(e, t) : g2(e || t);
8667
- }
8667
+ })
8668
8668
  );
8669
8669
  function m2(e, t) {
8670
8670
  return (n, r, a) => {
@@ -18860,7 +18860,7 @@ const Qc = (
18860
18860
  * @param {Test} [test]
18861
18861
  * @returns {Check}
18862
18862
  */
18863
- function(e) {
18863
+ (function(e) {
18864
18864
  if (e == null)
18865
18865
  return fT;
18866
18866
  if (typeof e == "function")
@@ -18870,7 +18870,7 @@ const Qc = (
18870
18870
  if (typeof e == "string")
18871
18871
  return dT(e);
18872
18872
  throw new Error("Expected function, string, or object as test");
18873
- }
18873
+ })
18874
18874
  );
18875
18875
  function lT(e) {
18876
18876
  const t = [];
@@ -19191,10 +19191,10 @@ function wT(e) {
19191
19191
  }
19192
19192
  var Fr = { exports: {} }, RT = Fr.exports, cs;
19193
19193
  function DT() {
19194
- return cs || (cs = 1, function(e, t) {
19194
+ return cs || (cs = 1, (function(e, t) {
19195
19195
  (function(n, r) {
19196
19196
  e.exports = r();
19197
- })(RT, function() {
19197
+ })(RT, (function() {
19198
19198
  var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year", b = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
19199
19199
  var L = ["th", "st", "nd", "rd"], M = I % 100;
19200
19200
  return "[" + I + (L[(M - 20) % 10] || L[M] || L[0]) + "]";
@@ -19239,13 +19239,13 @@ function DT() {
19239
19239
  Y.l = q, Y.i = G, Y.w = function(I, L) {
19240
19240
  return te(I, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
19241
19241
  };
19242
- var $ = function() {
19242
+ var $ = (function() {
19243
19243
  function I(M) {
19244
19244
  this.$L = q(M.locale, null, !0), this.parse(M), this.$x = this.$x || M.x || {}, this[w] = !0;
19245
19245
  }
19246
19246
  var L = I.prototype;
19247
19247
  return L.parse = function(M) {
19248
- this.$d = function(V) {
19248
+ this.$d = (function(V) {
19249
19249
  var H = V.date, U = V.utc;
19250
19250
  if (H === null) return /* @__PURE__ */ new Date(NaN);
19251
19251
  if (Y.u(H)) return /* @__PURE__ */ new Date();
@@ -19258,7 +19258,7 @@ function DT() {
19258
19258
  }
19259
19259
  }
19260
19260
  return new Date(H);
19261
- }(M), this.init();
19261
+ })(M), this.init();
19262
19262
  }, L.init = function() {
19263
19263
  var M = this.$d;
19264
19264
  this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
@@ -19280,11 +19280,11 @@ function DT() {
19280
19280
  }, L.valueOf = function() {
19281
19281
  return this.$d.getTime();
19282
19282
  }, L.startOf = function(M, V) {
19283
- var H = this, U = !!Y.u(V) || V, E = Y.p(M), ne = function(ze, Ie) {
19284
- var tt = Y.w(H.$u ? Date.UTC(H.$y, Ie, ze) : new Date(H.$y, Ie, ze), H);
19283
+ var H = this, U = !!Y.u(V) || V, E = Y.p(M), ne = function(ze, Ne) {
19284
+ var tt = Y.w(H.$u ? Date.UTC(H.$y, Ne, ze) : new Date(H.$y, Ne, ze), H);
19285
19285
  return U ? tt : tt.endOf(c);
19286
- }, oe = function(ze, Ie) {
19287
- return Y.w(H.toDate()[ze].apply(H.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ie)), H);
19286
+ }, oe = function(ze, Ne) {
19287
+ return Y.w(H.toDate()[ze].apply(H.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ne)), H);
19288
19288
  }, v = this.$W, ie = this.$M, Te = this.$D, he = "set" + (this.$u ? "UTC" : "");
19289
19289
  switch (E) {
19290
19290
  case h:
@@ -19292,8 +19292,8 @@ function DT() {
19292
19292
  case f:
19293
19293
  return U ? ne(1, ie) : ne(0, ie + 1);
19294
19294
  case d:
19295
- var ve = this.$locale().weekStart || 0, Oe = (v < ve ? v + 7 : v) - ve;
19296
- return ne(U ? Te - Oe : Te + (6 - Oe), ie);
19295
+ var ve = this.$locale().weekStart || 0, Ie = (v < ve ? v + 7 : v) - ve;
19296
+ return ne(U ? Te - Ie : Te + (6 - Ie), ie);
19297
19297
  case c:
19298
19298
  case b:
19299
19299
  return oe(he + "Hours", 0);
@@ -19337,16 +19337,16 @@ function DT() {
19337
19337
  }, L.format = function(M) {
19338
19338
  var V = this, H = this.$locale();
19339
19339
  if (!this.isValid()) return H.invalidDate || m;
19340
- var U = M || "YYYY-MM-DDTHH:mm:ssZ", E = Y.z(this), ne = this.$H, oe = this.$m, v = this.$M, ie = H.weekdays, Te = H.months, he = H.meridiem, ve = function(Ie, tt, pt, wt) {
19341
- return Ie && (Ie[tt] || Ie(V, U)) || pt[tt].slice(0, wt);
19342
- }, Oe = function(Ie) {
19343
- return Y.s(ne % 12 || 12, Ie, "0");
19344
- }, ze = he || function(Ie, tt, pt) {
19345
- var wt = Ie < 12 ? "AM" : "PM";
19340
+ var U = M || "YYYY-MM-DDTHH:mm:ssZ", E = Y.z(this), ne = this.$H, oe = this.$m, v = this.$M, ie = H.weekdays, Te = H.months, he = H.meridiem, ve = function(Ne, tt, pt, wt) {
19341
+ return Ne && (Ne[tt] || Ne(V, U)) || pt[tt].slice(0, wt);
19342
+ }, Ie = function(Ne) {
19343
+ return Y.s(ne % 12 || 12, Ne, "0");
19344
+ }, ze = he || function(Ne, tt, pt) {
19345
+ var wt = Ne < 12 ? "AM" : "PM";
19346
19346
  return pt ? wt.toLowerCase() : wt;
19347
19347
  };
19348
- return U.replace(g, function(Ie, tt) {
19349
- return tt || function(pt) {
19348
+ return U.replace(g, (function(Ne, tt) {
19349
+ return tt || (function(pt) {
19350
19350
  switch (pt) {
19351
19351
  case "YY":
19352
19352
  return String(V.$y).slice(-2);
@@ -19377,9 +19377,9 @@ function DT() {
19377
19377
  case "HH":
19378
19378
  return Y.s(ne, 2, "0");
19379
19379
  case "h":
19380
- return Oe(1);
19380
+ return Ie(1);
19381
19381
  case "hh":
19382
- return Oe(2);
19382
+ return Ie(2);
19383
19383
  case "a":
19384
19384
  return ze(ne, oe, !0);
19385
19385
  case "A":
@@ -19398,8 +19398,8 @@ function DT() {
19398
19398
  return E;
19399
19399
  }
19400
19400
  return null;
19401
- }(Ie) || E.replace(":", "");
19402
- });
19401
+ })(Ne) || E.replace(":", "");
19402
+ }));
19403
19403
  }, L.utcOffset = function() {
19404
19404
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
19405
19405
  }, L.diff = function(M, V, H) {
@@ -19454,18 +19454,18 @@ function DT() {
19454
19454
  }, L.toString = function() {
19455
19455
  return this.$d.toUTCString();
19456
19456
  }, I;
19457
- }(), k = $.prototype;
19458
- return te.prototype = k, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", b]].forEach(function(I) {
19457
+ })(), k = $.prototype;
19458
+ return te.prototype = k, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", b]].forEach((function(I) {
19459
19459
  k[I[1]] = function(L) {
19460
19460
  return this.$g(L, I[0], I[1]);
19461
19461
  };
19462
- }), te.extend = function(I, L) {
19462
+ })), te.extend = function(I, L) {
19463
19463
  return I.$i || (I(L, $, te), I.$i = !0), te;
19464
19464
  }, te.locale = q, te.isDayjs = G, te.unix = function(I) {
19465
19465
  return te(1e3 * I);
19466
19466
  }, te.en = C[j], te.Ls = C, te.p = {}, te;
19467
- });
19468
- }(Fr)), Fr.exports;
19467
+ }));
19468
+ })(Fr)), Fr.exports;
19469
19469
  }
19470
19470
  var PT = DT();
19471
19471
  const MT = /* @__PURE__ */ Bt(PT);
@@ -19926,9 +19926,9 @@ const GT = (e) => ({
19926
19926
  content: f,
19927
19927
  disableFeedback: p,
19928
19928
  liveAgent: h,
19929
- role: b = Ne.ASSISTANT,
19929
+ role: b = Oe.ASSISTANT,
19930
19930
  timestamp: m
19931
- } = n ?? {}, y = b === Ne.TOOL ? Ne.ASSISTANT : b, g = h || l === Ms.ESCALATE_TO_AN_AGENT, D = !g && !!f, P = on(
19931
+ } = n ?? {}, y = b === Oe.TOOL ? Oe.ASSISTANT : b, g = h || l === Ms.ESCALATE_TO_AN_AGENT, D = !g && !!f, P = on(
19932
19932
  () => QT(
19933
19933
  c,
19934
19934
  d?.userMessageBubble?.style
@@ -19939,6 +19939,8 @@ const GT = (e) => ({
19939
19939
  [f, l]
19940
19940
  ), j = on(() => {
19941
19941
  if (!D) return null;
19942
+ if (y === Oe.USER)
19943
+ return Q;
19942
19944
  const C = XT(Q);
19943
19945
  return /* @__PURE__ */ S.jsx(
19944
19946
  Ui,
@@ -19973,7 +19975,7 @@ const GT = (e) => ({
19973
19975
  className: "xpert-chatbot-popup__bubble--group-inner",
19974
19976
  style: P[y].innerStyle,
19975
19977
  children: [
19976
- y === Ne.AGENT && /* @__PURE__ */ S.jsx(
19978
+ y === Oe.AGENT && /* @__PURE__ */ S.jsx(
19977
19979
  Ai,
19978
19980
  {
19979
19981
  alignSelf: "flex-end",
@@ -20007,7 +20009,7 @@ const GT = (e) => ({
20007
20009
  ]
20008
20010
  }
20009
20011
  ),
20010
- y === Ne.USER && /* @__PURE__ */ S.jsx(
20012
+ y === Oe.USER && /* @__PURE__ */ S.jsx(
20011
20013
  Ai,
20012
20014
  {
20013
20015
  alignSelf: "flex-end",
@@ -20019,7 +20021,7 @@ const GT = (e) => ({
20019
20021
  }
20020
20022
  ),
20021
20023
  m && /* @__PURE__ */ S.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: MT(m).format("hh:mm a") }),
20022
- !p && a && y === Ne.ASSISTANT && /* @__PURE__ */ S.jsx(
20024
+ !p && a && y === Oe.ASSISTANT && /* @__PURE__ */ S.jsx(
20023
20025
  rd,
20024
20026
  {
20025
20027
  id: e,
@@ -20046,7 +20048,7 @@ tu.displayName = "MessageBubble";
20046
20048
  const od = I0(tu);
20047
20049
  function nu({ message: e }) {
20048
20050
  const { content: t, icon: n, iconColor: r, role: a } = e;
20049
- return a !== Ne.NOTIFICATION ? null : /* @__PURE__ */ S.jsxs("div", { className: "notification-container", children: [
20051
+ return a !== Oe.NOTIFICATION ? null : /* @__PURE__ */ S.jsxs("div", { className: "notification-container", children: [
20050
20052
  /* @__PURE__ */ S.jsx(
20051
20053
  "div",
20052
20054
  {
@@ -20063,7 +20065,7 @@ nu.propTypes = {
20063
20065
  content: x.string,
20064
20066
  icon: x.string,
20065
20067
  iconColor: x.string,
20066
- role: x.oneOf([Ne.NOTIFICATION])
20068
+ role: x.oneOf([Oe.NOTIFICATION])
20067
20069
  }).isRequired
20068
20070
  };
20069
20071
  nu.displayName = "NotificationMessage";
@@ -20121,16 +20123,16 @@ const ia = ({
20121
20123
  style: { display: "flex", flexDirection: "column" },
20122
20124
  children: n.map((p, h) => {
20123
20125
  const { role: b } = p, m = `${b}-${h}`;
20124
- if (b === Ne.ERROR)
20126
+ if (b === Oe.ERROR)
20125
20127
  return /* @__PURE__ */ S.jsx(ai, { content: p?.content }, m);
20126
- if (b === Ne.NOTIFICATION)
20128
+ if (b === Oe.NOTIFICATION)
20127
20129
  return /* @__PURE__ */ S.jsx(nu, { message: p }, m);
20128
20130
  if (![
20129
- Ne.AGENT,
20130
- Ne.ASSISTANT,
20131
- Ne.INFO,
20132
- Ne.TOOL,
20133
- Ne.USER
20131
+ Oe.AGENT,
20132
+ Oe.ASSISTANT,
20133
+ Oe.INFO,
20134
+ Oe.TOOL,
20135
+ Oe.USER
20134
20136
  ].includes(b) || !p.content) return null;
20135
20137
  const y = f[p.toolCallId];
20136
20138
  return /* @__PURE__ */ S.jsx(
@@ -20264,7 +20266,7 @@ const cd = ({ chatContentRef: e, messages: t }) => {
20264
20266
  top: e.current.scrollHeight,
20265
20267
  behavior: "smooth"
20266
20268
  });
20267
- }, [n, e]), n ? null : /* @__PURE__ */ S.jsx("div", { ref: u, tabIndex: -1, children: (a || r) && t.find((c) => c.role === Ne.ASSISTANT) && /* @__PURE__ */ S.jsx(
20269
+ }, [n, e]), n ? null : /* @__PURE__ */ S.jsx("div", { ref: u, tabIndex: -1, children: (a || r) && t.find((c) => c.role === Oe.ASSISTANT) && /* @__PURE__ */ S.jsx(
20268
20270
  "button",
20269
20271
  {
20270
20272
  onClick: l,
@@ -20311,7 +20313,7 @@ function dd({
20311
20313
  {
20312
20314
  message: {
20313
20315
  content: s?.systemMessage,
20314
- role: Ne.ASSISTANT
20316
+ role: Oe.ASSISTANT
20315
20317
  }
20316
20318
  }
20317
20319
  ),
@@ -20382,7 +20384,7 @@ dd.propTypes = {
20382
20384
  };
20383
20385
  var Ya = {}, gt = {}, $a = {}, fs;
20384
20386
  function Ht() {
20385
- return fs || (fs = 1, function(e) {
20387
+ return fs || (fs = 1, (function(e) {
20386
20388
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
20387
20389
  var t = 1, n = 1e3 * t;
20388
20390
  e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
@@ -20405,11 +20407,11 @@ function Ht() {
20405
20407
  }
20406
20408
  };
20407
20409
  e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && a();
20408
- }($a)), $a;
20410
+ })($a)), $a;
20409
20411
  }
20410
20412
  var Xn = {}, Va = {}, hs;
20411
20413
  function au() {
20412
- return hs || (hs = 1, function(e) {
20414
+ return hs || (hs = 1, (function(e) {
20413
20415
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
20414
20416
  var t = function(n) {
20415
20417
  if (n && e.sharedWebSockets.hasOwnProperty(n))
@@ -20419,7 +20421,7 @@ function au() {
20419
20421
  e.sharedWebSockets.hasOwnProperty(r) && delete e.sharedWebSockets[r];
20420
20422
  };
20421
20423
  e.resetWebSockets = t;
20422
- }(Va)), Va;
20424
+ })(Va)), Va;
20423
20425
  }
20424
20426
  var tn = {}, jt = {}, ps;
20425
20427
  function iu() {
@@ -20485,7 +20487,7 @@ function fd() {
20485
20487
  }
20486
20488
  var Kn = {}, Wa = {}, gs;
20487
20489
  function uu() {
20488
- return gs || (gs = 1, function(e) {
20490
+ return gs || (gs = 1, (function(e) {
20489
20491
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
20490
20492
  var t = {}, n = [], r = function(l) {
20491
20493
  return (0, e.hasSubscribers)(l) ? Array.from(t[l]) : n;
@@ -20512,7 +20514,7 @@ function uu() {
20512
20514
  t.hasOwnProperty(c) && delete t[c];
20513
20515
  };
20514
20516
  e.resetSubscribers = s;
20515
- }(Wa)), Wa;
20517
+ })(Wa)), Wa;
20516
20518
  }
20517
20519
  var bs;
20518
20520
  function ou() {
@@ -20705,7 +20707,7 @@ function t3() {
20705
20707
  }
20706
20708
  var qt = {}, _s;
20707
20709
  function n3() {
20708
- return _s || (_s = 1, function(e) {
20710
+ return _s || (_s = 1, (function(e) {
20709
20711
  var t = qt && qt.__awaiter || function(l, c, d, f) {
20710
20712
  function p(h) {
20711
20713
  return h instanceof d ? h : new d(function(b) {
@@ -20838,11 +20840,11 @@ function n3() {
20838
20840
  });
20839
20841
  };
20840
20842
  e.getUrl = s;
20841
- }(qt)), qt;
20843
+ })(qt)), qt;
20842
20844
  }
20843
20845
  var Ga = {}, Cs;
20844
20846
  function r3() {
20845
- return Cs || (Cs = 1, function(e) {
20847
+ return Cs || (Cs = 1, (function(e) {
20846
20848
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
20847
20849
  var t = function(n, r) {
20848
20850
  return new Proxy(n, {
@@ -20857,7 +20859,7 @@ function r3() {
20857
20859
  });
20858
20860
  };
20859
20861
  e.websocketWrapper = t, e.default = e.websocketWrapper;
20860
- }(Ga)), Ga;
20862
+ })(Ga)), Ga;
20861
20863
  }
20862
20864
  var As;
20863
20865
  function su() {
@@ -21008,9 +21010,9 @@ function su() {
21008
21010
  });
21009
21011
  }, Te = function(ve) {
21010
21012
  E || (0, i.flushSync)(function() {
21011
- return Q(function(Oe) {
21013
+ return Q(function(Ie) {
21012
21014
  var ze;
21013
- return e(e({}, Oe), C.current && (ze = {}, ze[C.current] = ve, ze));
21015
+ return e(e({}, Ie), C.current && (ze = {}, ze[C.current] = ve, ze));
21014
21016
  });
21015
21017
  });
21016
21018
  }, ne && (U = (0, s.createOrJoinSocket)(w, C.current, Te, k, ie, G, q, te, M)), [
@@ -21136,7 +21138,7 @@ function i3() {
21136
21138
  }
21137
21139
  var xs;
21138
21140
  function u3() {
21139
- return xs || (xs = 1, function(e) {
21141
+ return xs || (xs = 1, (function(e) {
21140
21142
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
21141
21143
  var t = su();
21142
21144
  Object.defineProperty(e, "default", { enumerable: !0, get: function() {
@@ -21158,7 +21160,7 @@ function u3() {
21158
21160
  Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
21159
21161
  return i.resetGlobalState;
21160
21162
  } });
21161
- }(Ya)), Ya;
21163
+ })(Ya)), Ya;
21162
21164
  }
21163
21165
  var o3 = u3();
21164
21166
  const s3 = /* @__PURE__ */ Bt(o3);
@@ -21221,7 +21223,7 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21221
21223
  }, G = () => {
21222
21224
  r({
21223
21225
  content: c3,
21224
- role: Ne.INFO
21226
+ role: Oe.INFO
21225
21227
  }), q();
21226
21228
  }, q = () => {
21227
21229
  d(""), b(null), y($t.FORM), i(kt.XPERT);
@@ -21239,7 +21241,7 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21239
21241
  P({
21240
21242
  content: E ?? "",
21241
21243
  id: U ?? "",
21242
- role: Ne.AGENT,
21244
+ role: Oe.AGENT,
21243
21245
  timestamp: ne ? new Date(ne) : void 0
21244
21246
  }), j({
21245
21247
  action: "sendmessage",
@@ -21262,7 +21264,7 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21262
21264
  P({
21263
21265
  content: H,
21264
21266
  id: "",
21265
- role: Ne.USER,
21267
+ role: Oe.USER,
21266
21268
  timestamp: /* @__PURE__ */ new Date()
21267
21269
  }), j({
21268
21270
  action: "sendmessage",
@@ -21295,7 +21297,7 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21295
21297
  content: "Feedback submitted",
21296
21298
  icon: "check",
21297
21299
  iconColor: "#30A171",
21298
- role: Ne.NOTIFICATION
21300
+ role: Oe.NOTIFICATION
21299
21301
  }), G();
21300
21302
  },
21301
21303
  terminateConversation: w
@@ -22365,7 +22367,7 @@ function Sd({ submitEventExternal: e = null }) {
22365
22367
  }
22366
22368
  const z = _e.find((K) => K.content)?.content || "";
22367
22369
  return ie(z, ye), _e;
22368
- }, Oe = async (se, ye, Re, xe, Be) => {
22370
+ }, Ie = async (se, ye, Re, xe, Be) => {
22369
22371
  w(!0);
22370
22372
  const Ce = se.body.getReader(), _e = await ve(
22371
22373
  Ce,
@@ -22381,7 +22383,7 @@ function Sd({ submitEventExternal: e = null }) {
22381
22383
  return;
22382
22384
  const ye = /* @__PURE__ */ new Date();
22383
22385
  Q(!1), P(!1);
22384
- const Re = m.filter((_e) => _e.role === Ne.USER).length + 1;
22386
+ const Re = m.filter((_e) => _e.role === Oe.USER).length + 1;
22385
22387
  if (E({
22386
22388
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
22387
22389
  payload: {
@@ -22396,10 +22398,10 @@ function Sd({ submitEventExternal: e = null }) {
22396
22398
  return;
22397
22399
  }
22398
22400
  let xe = null;
22399
- r.conversationHistory.enabled && (xe = ks(a)), h({ role: Ne.USER, content: se });
22401
+ r.conversationHistory.enabled && (xe = ks(a)), h({ role: Oe.USER, content: se });
22400
22402
  const Be = [
22401
22403
  ...m,
22402
- { role: Ne.USER, content: se }
22404
+ { role: Oe.USER, content: se }
22403
22405
  ].map((_e) => ({
22404
22406
  role: _e.role,
22405
22407
  content: _e.content,
@@ -22407,9 +22409,9 @@ function Sd({ submitEventExternal: e = null }) {
22407
22409
  ..._e.toolCallId && { tool_call_id: _e.toolCallId }
22408
22410
  })).filter(
22409
22411
  ({ role: _e }) => [
22410
- Ne.ASSISTANT,
22411
- Ne.TOOL,
22412
- Ne.USER
22412
+ Oe.ASSISTANT,
22413
+ Oe.TOOL,
22414
+ Oe.USER
22413
22415
  ].includes(_e)
22414
22416
  ), Ce = await fetch(t.endpoint, {
22415
22417
  method: "POST",
@@ -22424,7 +22426,7 @@ function Sd({ submitEventExternal: e = null }) {
22424
22426
  });
22425
22427
  if (!Ce.ok)
22426
22428
  throw new Error(`HTTPError: ${Ce.status} ${Ce.statusText}`);
22427
- C(!1), t.payloadParams?.stream ? await Oe(
22429
+ C(!1), t.payloadParams?.stream ? await Ie(
22428
22430
  Ce,
22429
22431
  xe,
22430
22432
  se,
@@ -22440,7 +22442,7 @@ function Sd({ submitEventExternal: e = null }) {
22440
22442
  } catch (ye) {
22441
22443
  C(!1), P(!0), console.error(ye);
22442
22444
  }
22443
- }, Ie = () => {
22445
+ }, Ne = () => {
22444
22446
  k(!1), Y(!0), j(!0), ne(), E({
22445
22447
  name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
22446
22448
  payload: {
@@ -22546,13 +22548,13 @@ function Sd({ submitEventExternal: e = null }) {
22546
22548
  Zt && c && /* @__PURE__ */ S.jsx(
22547
22549
  js,
22548
22550
  {
22549
- handleFloatingActionButtonClick: Ie
22551
+ handleFloatingActionButtonClick: Ne
22550
22552
  }
22551
22553
  ),
22552
22554
  !Zt && c && /* @__PURE__ */ S.jsx(
22553
22555
  zs,
22554
22556
  {
22555
- handleFloatingActionButtonClick: Ie
22557
+ handleFloatingActionButtonClick: Ne
22556
22558
  }
22557
22559
  ),
22558
22560
  c && /* @__PURE__ */ S.jsx(p3, {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.37.1",
3
+ "version": "1.37.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"