@2uinc/frontend-component-xpert-chatbot 1.7.0-beta.2 → 1.7.0-beta.4

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 +137 -136
  2. package/package.json +1 -1
@@ -403,9 +403,9 @@ const N = /* @__PURE__ */ nt(Q);
403
403
  var pn = { exports: {} };
404
404
  pn.exports;
405
405
  (function(e, t) {
406
- var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", j = "[object Number]", v = "[object Null]", C = "[object Object]", S = "[object Proxy]", W = "[object RegExp]", q = "[object Set]", M = "[object String]", P = "[object Undefined]", H = "[object WeakMap]", G = "[object ArrayBuffer]", K = "[object DataView]", A = "[object Float32Array]", b = "[object Float64Array]", I = "[object Int8Array]", z = "[object Int16Array]", L = "[object Int32Array]", U = "[object Uint8Array]", _ = "[object Uint8ClampedArray]", V = "[object Uint16Array]", re = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
407
- h[A] = h[b] = h[I] = h[z] = h[L] = h[U] = h[_] = h[V] = h[re] = !0, h[l] = h[u] = h[G] = h[c] = h[K] = h[p] = h[m] = h[d] = h[x] = h[j] = h[C] = h[W] = h[q] = h[M] = h[H] = !1;
408
- var ge = typeof Jt == "object" && Jt && Jt.Object === Object && Jt, De = typeof self == "object" && self && self.Object === Object && self, ie = ge || De || Function("return this")(), Te = t && !t.nodeType && t, be = Te && !0 && e && !e.nodeType && e, Be = be && be.exports === Te, ze = Be && ge.process, Ke = function() {
406
+ var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", j = "[object Number]", v = "[object Null]", C = "[object Object]", S = "[object Proxy]", W = "[object RegExp]", q = "[object Set]", M = "[object String]", P = "[object Undefined]", H = "[object WeakMap]", G = "[object ArrayBuffer]", K = "[object DataView]", A = "[object Float32Array]", b = "[object Float64Array]", I = "[object Int8Array]", z = "[object Int16Array]", L = "[object Int32Array]", U = "[object Uint8Array]", _ = "[object Uint8ClampedArray]", V = "[object Uint16Array]", ie = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
407
+ h[A] = h[b] = h[I] = h[z] = h[L] = h[U] = h[_] = h[V] = h[ie] = !0, h[l] = h[u] = h[G] = h[c] = h[K] = h[p] = h[m] = h[d] = h[x] = h[j] = h[C] = h[W] = h[q] = h[M] = h[H] = !1;
408
+ var me = typeof Jt == "object" && Jt && Jt.Object === Object && Jt, De = typeof self == "object" && self && self.Object === Object && self, oe = me || De || Function("return this")(), Te = t && !t.nodeType && t, be = Te && !0 && e && !e.nodeType && e, Be = be && be.exports === Te, ze = Be && me.process, Ke = function() {
409
409
  try {
410
410
  var f = be && be.require && be.require("util").types;
411
411
  return f || ze && ze.binding && ze.binding("util");
@@ -443,18 +443,18 @@ pn.exports;
443
443
  return f(y(w));
444
444
  };
445
445
  }
446
- var R = Array.prototype, oe = Function.prototype, me = Object.prototype, he = ie["__core-js_shared__"], je = oe.toString, xe = me.hasOwnProperty, kt = function() {
447
- var f = /[^.]+$/.exec(he && he.keys && he.keys.IE_PROTO || "");
446
+ var R = Array.prototype, ne = Function.prototype, he = Object.prototype, ge = oe["__core-js_shared__"], je = ne.toString, xe = he.hasOwnProperty, kt = function() {
447
+ var f = /[^.]+$/.exec(ge && ge.keys && ge.keys.IE_PROTO || "");
448
448
  return f ? "Symbol(src)_1." + f : "";
449
- }(), Xe = me.toString, jt = je.call(Object), D = RegExp(
449
+ }(), Xe = he.toString, jt = je.call(Object), D = RegExp(
450
450
  "^" + je.call(xe).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
451
- ), O = Be ? ie.Buffer : void 0, Y = ie.Symbol, ee = ie.Uint8Array, ne = O ? O.allocUnsafe : void 0, Ie = at(Object.getPrototypeOf, Object), Qe = Object.create, Ye = me.propertyIsEnumerable, lt = R.splice, Ee = Y ? Y.toStringTag : void 0, se = function() {
451
+ ), O = Be ? oe.Buffer : void 0, Y = oe.Symbol, ee = oe.Uint8Array, re = O ? O.allocUnsafe : void 0, Ie = at(Object.getPrototypeOf, Object), Qe = Object.create, Ye = he.propertyIsEnumerable, lt = R.splice, Ee = Y ? Y.toStringTag : void 0, se = function() {
452
452
  try {
453
453
  var f = Fn(Object, "defineProperty");
454
454
  return f({}, "", {}), f;
455
455
  } catch {
456
456
  }
457
- }(), Et = O ? O.isBuffer : void 0, Le = Math.max, Za = Date.now, Jr = Fn(ie, "Map"), At = Fn(Object, "create"), Ka = function() {
457
+ }(), Et = O ? O.isBuffer : void 0, Le = Math.max, Za = Date.now, Jr = Fn(oe, "Map"), At = Fn(Object, "create"), Ka = function() {
458
458
  function f() {
459
459
  }
460
460
  return function(y) {
@@ -676,7 +676,7 @@ pn.exports;
676
676
  function kl(f, y) {
677
677
  if (y)
678
678
  return f.slice();
679
- var w = f.length, F = ne ? ne(w) : new f.constructor(w);
679
+ var w = f.length, F = re ? re(w) : new f.constructor(w);
680
680
  return f.copy(F), F;
681
681
  }
682
682
  function jl(f) {
@@ -761,7 +761,7 @@ pn.exports;
761
761
  return !!kt && kt in f;
762
762
  }
763
763
  function ri(f) {
764
- var y = f && f.constructor, w = typeof y == "function" && y.prototype || me;
764
+ var y = f && f.constructor, w = typeof y == "function" && y.prototype || he;
765
765
  return f === w;
766
766
  }
767
767
  function Rl(f) {
@@ -4576,16 +4576,16 @@ function Kc(e, t, n) {
4576
4576
  return h === 45 ? (e.consume(h), r.interrupt ? t : g) : n(h);
4577
4577
  }
4578
4578
  function T(h) {
4579
- const ge = "CDATA[";
4580
- return h === ge.charCodeAt(l++) ? (e.consume(h), l === ge.length ? r.interrupt ? t : b : T) : n(h);
4579
+ const me = "CDATA[";
4580
+ return h === me.charCodeAt(l++) ? (e.consume(h), l === me.length ? r.interrupt ? t : b : T) : n(h);
4581
4581
  }
4582
4582
  function x(h) {
4583
4583
  return qe(h) ? (e.consume(h), a = String.fromCharCode(h), j) : n(h);
4584
4584
  }
4585
4585
  function j(h) {
4586
4586
  if (h === null || h === 47 || h === 62 || ke(h)) {
4587
- const ge = h === 47, De = a.toLowerCase();
4588
- return !ge && !o && Vi.includes(De) ? (i = 1, r.interrupt ? t(h) : b(h)) : qc.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), v) : r.interrupt ? t(h) : b(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? C(h) : S(h));
4587
+ const me = h === 47, De = a.toLowerCase();
4588
+ return !me && !o && Vi.includes(De) ? (i = 1, r.interrupt ? t(h) : b(h)) : qc.includes(a.toLowerCase()) ? (i = 6, me ? (e.consume(h), v) : r.interrupt ? t(h) : b(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? C(h) : S(h));
4589
4589
  }
4590
4590
  return h === 45 || Se(h) ? (e.consume(h), a += String.fromCharCode(h), j) : n(h);
4591
4591
  }
@@ -4623,7 +4623,7 @@ function Kc(e, t, n) {
4623
4623
  return h === null || $(h) ? b(h) : te(h) ? (e.consume(h), A) : n(h);
4624
4624
  }
4625
4625
  function b(h) {
4626
- return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), _) : h === 62 && i === 4 ? (e.consume(h), ue) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), re) : $(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
4626
+ return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), _) : h === 62 && i === 4 ? (e.consume(h), ue) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), ie) : $(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
4627
4627
  Wc,
4628
4628
  ye,
4629
4629
  I
@@ -4650,12 +4650,12 @@ function Kc(e, t, n) {
4650
4650
  }
4651
4651
  function V(h) {
4652
4652
  if (h === 62) {
4653
- const ge = a.toLowerCase();
4654
- return Vi.includes(ge) ? (e.consume(h), ue) : b(h);
4653
+ const me = a.toLowerCase();
4654
+ return Vi.includes(me) ? (e.consume(h), ue) : b(h);
4655
4655
  }
4656
4656
  return qe(h) && a.length < 8 ? (e.consume(h), a += String.fromCharCode(h), V) : b(h);
4657
4657
  }
4658
- function re(h) {
4658
+ function ie(h) {
4659
4659
  return h === 93 ? (e.consume(h), g) : b(h);
4660
4660
  }
4661
4661
  function g(h) {
@@ -4777,12 +4777,12 @@ function tf(e, t, n) {
4777
4777
  function V(g) {
4778
4778
  return te(g) ? fe(
4779
4779
  e,
4780
- re,
4780
+ ie,
4781
4781
  "linePrefix",
4782
4782
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
4783
- )(g) : re(g);
4783
+ )(g) : ie(g);
4784
4784
  }
4785
- function re(g) {
4785
+ function ie(g) {
4786
4786
  return e.enter("htmlTextData"), a(g);
4787
4787
  }
4788
4788
  }
@@ -5414,15 +5414,15 @@ function Of(e, t, n) {
5414
5414
  function P(A, b) {
5415
5415
  return I;
5416
5416
  function I(z, L, U) {
5417
- let _, V, re, g;
5417
+ let _, V, ie, g;
5418
5418
  return Array.isArray(z) ? ye(z) : "tokenize" in z ? (
5419
5419
  // @ts-expect-error Looks like a construct.
5420
5420
  ye([z])
5421
5421
  ) : ue(z);
5422
- function ue(ie) {
5422
+ function ue(oe) {
5423
5423
  return Te;
5424
5424
  function Te(be) {
5425
- const Be = be !== null && ie[be], ze = be !== null && ie.null, Ke = [
5425
+ const Be = be !== null && oe[be], ze = be !== null && oe.null, Ke = [
5426
5426
  // To do: add more extension tests.
5427
5427
  /* c8 ignore next 2 */
5428
5428
  ...Array.isArray(Be) ? Be : Be ? [Be] : [],
@@ -5431,27 +5431,27 @@ function Of(e, t, n) {
5431
5431
  return ye(Ke)(be);
5432
5432
  }
5433
5433
  }
5434
- function ye(ie) {
5435
- return _ = ie, V = 0, ie.length === 0 ? U : h(ie[V]);
5434
+ function ye(oe) {
5435
+ return _ = oe, V = 0, oe.length === 0 ? U : h(oe[V]);
5436
5436
  }
5437
- function h(ie) {
5437
+ function h(oe) {
5438
5438
  return Te;
5439
5439
  function Te(be) {
5440
- return g = G(), re = ie, ie.partial || (s.currentConstruct = ie), ie.name && s.parser.constructs.disable.null.includes(ie.name) ? De() : ie.tokenize.call(
5440
+ return g = G(), ie = oe, oe.partial || (s.currentConstruct = oe), oe.name && s.parser.constructs.disable.null.includes(oe.name) ? De() : oe.tokenize.call(
5441
5441
  // If we do have fields, create an object w/ `context` as its
5442
5442
  // prototype.
5443
5443
  // This allows a “live binding”, which is needed for `interrupt`.
5444
5444
  b ? Object.assign(Object.create(s), b) : s,
5445
5445
  u,
5446
- ge,
5446
+ me,
5447
5447
  De
5448
5448
  )(be);
5449
5449
  }
5450
5450
  }
5451
- function ge(ie) {
5452
- return A(re, g), L;
5451
+ function me(oe) {
5452
+ return A(ie, g), L;
5453
5453
  }
5454
- function De(ie) {
5454
+ function De(oe) {
5455
5455
  return g.restore(), ++V < _.length ? h(_[V]) : U;
5456
5456
  }
5457
5457
  }
@@ -5712,7 +5712,7 @@ function Jf(e) {
5712
5712
  transforms: [],
5713
5713
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
5714
5714
  enter: {
5715
- autolink: l(me),
5715
+ autolink: l(he),
5716
5716
  autolinkProtocol: A,
5717
5717
  autolinkEmail: A,
5718
5718
  atxHeading: l(ot),
@@ -5738,13 +5738,13 @@ function Jf(e) {
5738
5738
  htmlFlowData: A,
5739
5739
  htmlText: l(R, u),
5740
5740
  htmlTextData: A,
5741
- image: l(oe),
5741
+ image: l(ne),
5742
5742
  label: u,
5743
- link: l(me),
5743
+ link: l(he),
5744
5744
  listItem: l(je),
5745
5745
  listItemValue: T,
5746
- listOrdered: l(he, d),
5747
- listUnordered: l(he),
5746
+ listOrdered: l(ge, d),
5747
+ listUnordered: l(ge),
5748
5748
  paragraph: l(xe),
5749
5749
  reference: De,
5750
5750
  referenceString: u,
@@ -5785,7 +5785,7 @@ function Jf(e) {
5785
5785
  htmlFlowData: b,
5786
5786
  htmlText: c(U),
5787
5787
  htmlTextData: b,
5788
- image: c(re),
5788
+ image: c(ie),
5789
5789
  label: ue,
5790
5790
  labelText: g,
5791
5791
  lineEnding: I,
@@ -5794,10 +5794,10 @@ function Jf(e) {
5794
5794
  listOrdered: c(),
5795
5795
  listUnordered: c(),
5796
5796
  paragraph: c(),
5797
- referenceString: ie,
5797
+ referenceString: oe,
5798
5798
  resourceDestinationString: ye,
5799
5799
  resourceTitleString: h,
5800
- resource: ge,
5800
+ resource: me,
5801
5801
  setextHeading: c(K),
5802
5802
  setextHeadingLineSequence: G,
5803
5803
  setextHeadingText: H,
@@ -5824,25 +5824,25 @@ function Jf(e) {
5824
5824
  setData: o,
5825
5825
  getData: a
5826
5826
  }, ee = [];
5827
- let ne = -1;
5828
- for (; ++ne < D.length; )
5829
- if (D[ne][1].type === "listOrdered" || D[ne][1].type === "listUnordered")
5830
- if (D[ne][0] === "enter")
5831
- ee.push(ne);
5827
+ let re = -1;
5828
+ for (; ++re < D.length; )
5829
+ if (D[re][1].type === "listOrdered" || D[re][1].type === "listUnordered")
5830
+ if (D[re][0] === "enter")
5831
+ ee.push(re);
5832
5832
  else {
5833
5833
  const Ie = ee.pop();
5834
- ne = i(D, Ie, ne);
5834
+ re = i(D, Ie, re);
5835
5835
  }
5836
- for (ne = -1; ++ne < D.length; ) {
5837
- const Ie = t[D[ne][0]];
5838
- pa.call(Ie, D[ne][1].type) && Ie[D[ne][1].type].call(
5836
+ for (re = -1; ++re < D.length; ) {
5837
+ const Ie = t[D[re][0]];
5838
+ pa.call(Ie, D[re][1].type) && Ie[D[re][1].type].call(
5839
5839
  Object.assign(
5840
5840
  {
5841
- sliceSerialize: D[ne][2].sliceSerialize
5841
+ sliceSerialize: D[re][2].sliceSerialize
5842
5842
  },
5843
5843
  Y
5844
5844
  ),
5845
- D[ne][1]
5845
+ D[re][1]
5846
5846
  );
5847
5847
  }
5848
5848
  if (Y.tokenStack.length > 0) {
@@ -5864,15 +5864,15 @@ function Jf(e) {
5864
5864
  offset: 0
5865
5865
  }
5866
5866
  )
5867
- }, ne = -1; ++ne < t.transforms.length; )
5868
- O = t.transforms[ne](O) || O;
5867
+ }, re = -1; ++re < t.transforms.length; )
5868
+ O = t.transforms[re](O) || O;
5869
5869
  return O;
5870
5870
  }
5871
5871
  function i(D, O, Y) {
5872
- let ee = O - 1, ne = -1, Ie = !1, Qe, Ye, lt, Ee;
5872
+ let ee = O - 1, re = -1, Ie = !1, Qe, Ye, lt, Ee;
5873
5873
  for (; ++ee <= Y; ) {
5874
5874
  const se = D[ee];
5875
- if (se[1].type === "listUnordered" || se[1].type === "listOrdered" || se[1].type === "blockQuote" ? (se[0] === "enter" ? ne++ : ne--, Ee = void 0) : se[1].type === "lineEndingBlank" ? se[0] === "enter" && (Qe && !Ee && !ne && !lt && (lt = ee), Ee = void 0) : se[1].type === "linePrefix" || se[1].type === "listItemValue" || se[1].type === "listItemMarker" || se[1].type === "listItemPrefix" || se[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !ne && se[0] === "enter" && se[1].type === "listItemPrefix" || ne === -1 && se[0] === "exit" && (se[1].type === "listUnordered" || se[1].type === "listOrdered")) {
5875
+ if (se[1].type === "listUnordered" || se[1].type === "listOrdered" || se[1].type === "blockQuote" ? (se[0] === "enter" ? re++ : re--, Ee = void 0) : se[1].type === "lineEndingBlank" ? se[0] === "enter" && (Qe && !Ee && !re && !lt && (lt = ee), Ee = void 0) : se[1].type === "linePrefix" || se[1].type === "listItemValue" || se[1].type === "listItemMarker" || se[1].type === "listItemPrefix" || se[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !re && se[0] === "enter" && se[1].type === "listItemPrefix" || re === -1 && se[0] === "exit" && (se[1].type === "listUnordered" || se[1].type === "listOrdered")) {
5876
5876
  if (Qe) {
5877
5877
  let Et = ee;
5878
5878
  for (Ye = void 0; Et--; ) {
@@ -6048,7 +6048,7 @@ function Jf(e) {
6048
6048
  delete D.identifier, delete D.label;
6049
6049
  o("referenceType");
6050
6050
  }
6051
- function re() {
6051
+ function ie() {
6052
6052
  const D = this.stack[this.stack.length - 1];
6053
6053
  if (a("inReference")) {
6054
6054
  const O = a("referenceType") || "shortcut";
@@ -6077,13 +6077,13 @@ function Jf(e) {
6077
6077
  const D = this.resume(), O = this.stack[this.stack.length - 1];
6078
6078
  O.title = D;
6079
6079
  }
6080
- function ge() {
6080
+ function me() {
6081
6081
  o("inReference");
6082
6082
  }
6083
6083
  function De() {
6084
6084
  o("referenceType", "collapsed");
6085
6085
  }
6086
- function ie(D) {
6086
+ function oe(D) {
6087
6087
  const O = this.resume(), Y = this.stack[this.stack.length - 1];
6088
6088
  Y.label = O, Y.identifier = Mt(
6089
6089
  this.sliceSerialize(D)
@@ -6099,8 +6099,8 @@ function Jf(e) {
6099
6099
  O,
6100
6100
  Y === "characterReferenceMarkerNumeric" ? 10 : 16
6101
6101
  ), o("characterReferenceType")) : ee = zr(O);
6102
- const ne = this.stack.pop();
6103
- ne.value += ee, ne.position.end = Je(D.end);
6102
+ const re = this.stack.pop();
6103
+ re.value += ee, re.position.end = Je(D.end);
6104
6104
  }
6105
6105
  function Be(D) {
6106
6106
  b.call(this, D);
@@ -6165,7 +6165,7 @@ function Jf(e) {
6165
6165
  value: ""
6166
6166
  };
6167
6167
  }
6168
- function oe() {
6168
+ function ne() {
6169
6169
  return {
6170
6170
  type: "image",
6171
6171
  title: null,
@@ -6173,7 +6173,7 @@ function Jf(e) {
6173
6173
  alt: null
6174
6174
  };
6175
6175
  }
6176
- function me() {
6176
+ function he() {
6177
6177
  return {
6178
6178
  type: "link",
6179
6179
  title: null,
@@ -6181,7 +6181,7 @@ function Jf(e) {
6181
6181
  children: []
6182
6182
  };
6183
6183
  }
6184
- function he(D) {
6184
+ function ge(D) {
6185
6185
  return {
6186
6186
  type: "list",
6187
6187
  ordered: D.type === "listOrdered",
@@ -9447,7 +9447,7 @@ var go = {
9447
9447
  return ct(g);
9448
9448
  }), V = z.slice().reverse().find(function(g) {
9449
9449
  return ct(g);
9450
- }), re = !!I.find(function(g) {
9450
+ }), ie = !!I.find(function(g) {
9451
9451
  return et(g) > 0;
9452
9452
  });
9453
9453
  return {
@@ -9455,7 +9455,7 @@ var go = {
9455
9455
  tabbableNodes: I,
9456
9456
  focusableNodes: z,
9457
9457
  /** True if at least one node with positive `tabindex` was found in this container. */
9458
- posTabIndexesFound: re,
9458
+ posTabIndexesFound: ie,
9459
9459
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
9460
9460
  firstTabbableNode: L,
9461
9461
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -9481,10 +9481,10 @@ var go = {
9481
9481
  */
9482
9482
  nextTabbableNode: function(ue) {
9483
9483
  var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = I.indexOf(ue);
9484
- return h < 0 ? ye ? z.slice(z.indexOf(ue) + 1).find(function(ge) {
9485
- return ct(ge);
9486
- }) : z.slice(0, z.indexOf(ue)).reverse().find(function(ge) {
9487
- return ct(ge);
9484
+ return h < 0 ? ye ? z.slice(z.indexOf(ue) + 1).find(function(me) {
9485
+ return ct(me);
9486
+ }) : z.slice(0, z.indexOf(ue)).reverse().find(function(me) {
9487
+ return ct(me);
9488
9488
  }) : I[h + (ye ? 1 : -1)];
9489
9489
  }
9490
9490
  };
@@ -9518,29 +9518,29 @@ var go = {
9518
9518
  I = I || on(z), m();
9519
9519
  var _ = null;
9520
9520
  if (a.tabbableGroups.length > 0) {
9521
- var V = s(I, z), re = V >= 0 ? a.containerGroups[V] : void 0;
9521
+ var V = s(I, z), ie = V >= 0 ? a.containerGroups[V] : void 0;
9522
9522
  if (V < 0)
9523
9523
  U ? _ = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : _ = a.tabbableGroups[0].firstTabbableNode;
9524
9524
  else if (U) {
9525
- var g = yo(a.tabbableGroups, function(ie) {
9526
- var Te = ie.firstTabbableNode;
9525
+ var g = yo(a.tabbableGroups, function(oe) {
9526
+ var Te = oe.firstTabbableNode;
9527
9527
  return I === Te;
9528
9528
  });
9529
- if (g < 0 && (re.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !re.nextTabbableNode(I, !1)) && (g = V), g >= 0) {
9529
+ if (g < 0 && (ie.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !ie.nextTabbableNode(I, !1)) && (g = V), g >= 0) {
9530
9530
  var ue = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[ue];
9531
9531
  _ = et(I) >= 0 ? ye.lastTabbableNode : ye.lastDomTabbableNode;
9532
9532
  } else
9533
- Qt(z) || (_ = re.nextTabbableNode(I, !1));
9533
+ Qt(z) || (_ = ie.nextTabbableNode(I, !1));
9534
9534
  } else {
9535
- var h = yo(a.tabbableGroups, function(ie) {
9536
- var Te = ie.lastTabbableNode;
9535
+ var h = yo(a.tabbableGroups, function(oe) {
9536
+ var Te = oe.lastTabbableNode;
9537
9537
  return I === Te;
9538
9538
  });
9539
- if (h < 0 && (re.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !re.nextTabbableNode(I)) && (h = V), h >= 0) {
9540
- var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, De = a.tabbableGroups[ge];
9539
+ if (h < 0 && (ie.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !ie.nextTabbableNode(I)) && (h = V), h >= 0) {
9540
+ var me = h === a.tabbableGroups.length - 1 ? 0 : h + 1, De = a.tabbableGroups[me];
9541
9541
  _ = et(I) >= 0 ? De.firstTabbableNode : De.firstDomTabbableNode;
9542
9542
  } else
9543
- Qt(z) || (_ = re.nextTabbableNode(I));
9543
+ Qt(z) || (_ = ie.nextTabbableNode(I));
9544
9544
  }
9545
9545
  } else
9546
9546
  _ = c("fallbackFocus");
@@ -9573,10 +9573,10 @@ var go = {
9573
9573
  if (et(a.mostRecentlyFocusedNode) > 0) {
9574
9574
  var _ = s(a.mostRecentlyFocusedNode), V = a.containerGroups[_].tabbableNodes;
9575
9575
  if (V.length > 0) {
9576
- var re = V.findIndex(function(g) {
9576
+ var ie = V.findIndex(function(g) {
9577
9577
  return g === a.mostRecentlyFocusedNode;
9578
9578
  });
9579
- re >= 0 && (o.isKeyForward(a.recentNavEvent) ? re + 1 < V.length && (L = V[re + 1], U = !1) : re - 1 >= 0 && (L = V[re - 1], U = !1));
9579
+ ie >= 0 && (o.isKeyForward(a.recentNavEvent) ? ie + 1 < V.length && (L = V[ie + 1], U = !1) : ie - 1 >= 0 && (L = V[ie - 1], U = !1));
9580
9580
  }
9581
9581
  } else
9582
9582
  a.containerGroups.some(function(g) {
@@ -10394,20 +10394,21 @@ function Xr({ submitEventExternal: e }) {
10394
10394
  proactiveMessage: a,
10395
10395
  conversationScreen: l
10396
10396
  } = We(Ge), u = vt(Vh), [, s] = we(!1), [c, p] = we(Wh), [m, d] = we(!1), [T, x] = we(!1), [j, v] = we(!1), [C, S] = we(""), [W, q] = we(!1), [M, P] = we(!0), [H, G] = we(!1), [K, A] = we(!1), [b, I] = we(!1), z = tt(null), L = tt(null), U = tt(null), _ = He.get(`${t}-test`) === "1", V = Yt(
10397
- ({ name: R, payload: oe }) => {
10397
+ ({ name: R, payload: ne }) => {
10398
10398
  console.log(
10399
- "serTracking.defaultProperties",
10400
- r == null ? void 0 : r.defaultProperties
10399
+ "userTracking.defaultProperties",
10400
+ r == null ? void 0 : r.defaultProperties,
10401
+ ne
10401
10402
  );
10402
- const me = No(r.defaultProperties, oe);
10403
- e ? e({ name: R, payload: me }) : U.current.track(
10403
+ const he = No(r == null ? void 0 : r.defaultProperties, ne);
10404
+ console.log("resolvedPayload", he), e ? (console.log("x1"), e({ name: R, payload: he })) : (console.log("x2"), U.current.track(
10404
10405
  // TODO: this is untestable - create a custom hook to get submit event function.
10405
10406
  R,
10406
- me
10407
- );
10407
+ he
10408
+ ));
10408
10409
  },
10409
10410
  [e, r.defaultProperties]
10410
- ), re = Yt(async () => {
10411
+ ), ie = Yt(async () => {
10411
10412
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
10412
10413
  try {
10413
10414
  const R = He.get(
@@ -10416,7 +10417,7 @@ function Xr({ submitEventExternal: e }) {
10416
10417
  if (!R)
10417
10418
  return;
10418
10419
  d(!0);
10419
- const oe = await fetch(
10420
+ const ne = await fetch(
10420
10421
  `${n.endpoint}/xpert-chat/${R}`,
10421
10422
  {
10422
10423
  method: "GET",
@@ -10425,16 +10426,16 @@ function Xr({ submitEventExternal: e }) {
10425
10426
  }
10426
10427
  }
10427
10428
  );
10428
- if (oe.status === 404) {
10429
+ if (ne.status === 404) {
10429
10430
  He.remove(`${t}-conversation-history-id`);
10430
10431
  return;
10431
10432
  }
10432
- if (!oe.ok)
10433
- throw new rr(`HTTPError: ${oe.status} ${oe.statusText}`);
10434
- const me = await oe.json();
10433
+ if (!ne.ok)
10434
+ throw new rr(`HTTPError: ${ne.status} ${ne.statusText}`);
10435
+ const he = await ne.json();
10435
10436
  p(
10436
- me.map((he) => ({
10437
- ...he,
10437
+ he.map((ge) => ({
10438
+ ...ge,
10438
10439
  disableFeedback: !0
10439
10440
  }))
10440
10441
  ), A(!0), I(!0);
@@ -10444,16 +10445,16 @@ function Xr({ submitEventExternal: e }) {
10444
10445
  d(!1);
10445
10446
  }
10446
10447
  }, [t, n.endpoint]);
10447
- Rh(re), Oe(() => {
10448
+ Rh(ie), Oe(() => {
10448
10449
  console.log("Chatbot - mount");
10449
- let R, oe;
10450
+ let R, ne;
10450
10451
  return r.enabled && (R = setInterval(() => {
10451
- var he;
10452
- console.log("Chatbot - intervalCheckForScripts"), (he = window.analytics) != null && he.track && (!i.enabled || i.enabled && window.optimizely && window.experiments) && (console.log("Chatbot - intervalCheckForScripts all found"), U.current = window.analytics, clearInterval(R), clearTimeout(oe), s(!0));
10453
- }, 1e3), oe = setTimeout(() => {
10452
+ var ge;
10453
+ console.log("Chatbot - intervalCheckForScripts"), (ge = window.analytics) != null && ge.track && (!i.enabled || i.enabled && window.optimizely && window.experiments) && (console.log("Chatbot - intervalCheckForScripts all found"), U.current = window.analytics, clearInterval(R), clearTimeout(ne), s(!0));
10454
+ }, 1e3), ne = setTimeout(() => {
10454
10455
  clearInterval(R);
10455
10456
  }, 6e4)), () => {
10456
- console.log("Chatbot - unmount"), clearInterval(R), clearTimeout(oe);
10457
+ console.log("Chatbot - unmount"), clearInterval(R), clearTimeout(ne);
10457
10458
  };
10458
10459
  }, [
10459
10460
  i.enabled,
@@ -10462,13 +10463,13 @@ function Xr({ submitEventExternal: e }) {
10462
10463
  r.prefix
10463
10464
  ]);
10464
10465
  const g = (R) => {
10465
- var oe, me;
10466
- (oe = R == null ? void 0 : R.target) != null && oe.href && V({
10466
+ var ne, he;
10467
+ (ne = R == null ? void 0 : R.target) != null && ne.href && V({
10467
10468
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
10468
10469
  payload: {
10469
10470
  category: "2u",
10470
10471
  label: "xpert-chatbot",
10471
- link: (me = R == null ? void 0 : R.target) == null ? void 0 : me.href,
10472
+ link: (he = R == null ? void 0 : R.target) == null ? void 0 : he.href,
10472
10473
  isTestUser: _
10473
10474
  }
10474
10475
  });
@@ -10486,7 +10487,7 @@ function Xr({ submitEventExternal: e }) {
10486
10487
  );
10487
10488
  const ye = () => {
10488
10489
  S(""), L.current.value = "", L.current.style.height = "auto";
10489
- }, h = (R, oe) => {
10490
+ }, h = (R, ne) => {
10490
10491
  V({
10491
10492
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
10492
10493
  payload: {
@@ -10495,14 +10496,14 @@ function Xr({ submitEventExternal: e }) {
10495
10496
  linkCount: Bh(R),
10496
10497
  apiResponseMessage: R,
10497
10498
  isTestUser: _,
10498
- conversationHistoryId: oe
10499
+ conversationHistoryId: ne
10499
10500
  }
10500
10501
  });
10501
- }, ge = ({
10502
+ }, me = ({
10502
10503
  conversationSize: R,
10503
- userInputMessage: oe,
10504
- apiResponseMessage: me,
10505
- elapsedSeconds: he,
10504
+ userInputMessage: ne,
10505
+ apiResponseMessage: he,
10506
+ elapsedSeconds: ge,
10506
10507
  conversationByteSize: je
10507
10508
  }) => {
10508
10509
  V({
@@ -10512,9 +10513,9 @@ function Xr({ submitEventExternal: e }) {
10512
10513
  label: "xpert-chatbot",
10513
10514
  isTestUser: _,
10514
10515
  conversationSize: R,
10515
- userInputMessage: oe,
10516
- apiResponseMessage: me,
10517
- elapsedSeconds: he,
10516
+ userInputMessage: ne,
10517
+ apiResponseMessage: he,
10518
+ elapsedSeconds: ge,
10518
10519
  conversationByteSize: je
10519
10520
  }
10520
10521
  });
@@ -10522,21 +10523,21 @@ function Xr({ submitEventExternal: e }) {
10522
10523
  try {
10523
10524
  if (R.trim().length === 0)
10524
10525
  return;
10525
- const oe = /* @__PURE__ */ new Date();
10526
+ const ne = /* @__PURE__ */ new Date();
10526
10527
  I(!1), q(!1);
10527
- const me = c.filter((D) => D.role === "user").length + 1;
10528
+ const he = c.filter((D) => D.role === "user").length + 1;
10528
10529
  V({
10529
10530
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
10530
10531
  payload: {
10531
10532
  category: "2u",
10532
10533
  label: "xpert-chatbot",
10533
- totalUserInputMessagesSent: me,
10534
+ totalUserInputMessagesSent: he,
10534
10535
  userInputMessage: R,
10535
10536
  isTestUser: _
10536
10537
  }
10537
10538
  }), ye();
10538
- let he = He.get(`${t}-conversation-history-id`) || "";
10539
- !he && l.conversationHistory.enabled ? p([
10539
+ let ge = He.get(`${t}-conversation-history-id`) || "";
10540
+ !ge && l.conversationHistory.enabled ? p([
10540
10541
  {
10541
10542
  role: "user",
10542
10543
  content: R
@@ -10561,7 +10562,7 @@ function Xr({ submitEventExternal: e }) {
10561
10562
  method: "POST",
10562
10563
  headers: {
10563
10564
  "Content-Type": "application/json",
10564
- "Conversation-History-Id": he
10565
+ "Conversation-History-Id": ge
10565
10566
  },
10566
10567
  body: JSON.stringify({
10567
10568
  message_list: je,
@@ -10570,20 +10571,20 @@ function Xr({ submitEventExternal: e }) {
10570
10571
  });
10571
10572
  if (!xe.ok)
10572
10573
  throw new rr(`HTTPError: ${xe.status} ${xe.statusText}`);
10573
- he = xe.headers.get("Conversation-History-Id"), he && He.set(
10574
+ ge = xe.headers.get("Conversation-History-Id"), ge && He.set(
10574
10575
  `${t}-conversation-history-id`,
10575
- he,
10576
+ ge,
10576
10577
  { expires: 1 }
10577
10578
  );
10578
10579
  const Xe = (await xe.json()).content;
10579
- h(Xe, he);
10580
+ h(Xe, ge);
10580
10581
  const jt = /* @__PURE__ */ new Date();
10581
- ge({
10582
+ me({
10582
10583
  conversationByteSize: Qh(JSON.stringify(je)),
10583
10584
  conversationSize: c.length + 2,
10584
10585
  userInputMessage: R,
10585
10586
  apiResponseMessage: Xe,
10586
- elapsedSeconds: Uh(oe, jt)
10587
+ elapsedSeconds: Uh(ne, jt)
10587
10588
  }), p((D) => [
10588
10589
  ...D,
10589
10590
  {
@@ -10592,10 +10593,10 @@ function Xr({ submitEventExternal: e }) {
10592
10593
  createdAt: /* @__PURE__ */ new Date()
10593
10594
  }
10594
10595
  ]), A(!1), d(!1), ye(), I(!0);
10595
- } catch (oe) {
10596
- d(!1), ye(), q(!0), console.error(oe);
10596
+ } catch (ne) {
10597
+ d(!1), ye(), q(!0), console.error(ne);
10597
10598
  }
10598
- }, ie = () => {
10599
+ }, oe = () => {
10599
10600
  v(!1), x(!0), V({
10600
10601
  name: `${r.prefix}.bi.xpert.chatbot.action.button.clicked`,
10601
10602
  payload: {
@@ -10651,9 +10652,9 @@ function Xr({ submitEventExternal: e }) {
10651
10652
  S(R.target.value);
10652
10653
  }, It = (R) => {
10653
10654
  R.key === "Enter" && C.trim() === "" || R.key === "Enter" && !R.shiftKey && (R.preventDefault(), De(C));
10654
- }, Nt = (R, oe = "") => {
10655
- const me = c.map((he, je) => R === je ? (V({
10656
- name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${oe.toLowerCase()}.clicked`,
10655
+ }, Nt = (R, ne = "") => {
10656
+ const he = c.map((ge, je) => R === je ? (V({
10657
+ name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${ne.toLowerCase()}.clicked`,
10657
10658
  payload: {
10658
10659
  category: "2u",
10659
10660
  label: "xpert-chatbot",
@@ -10663,10 +10664,10 @@ function Xr({ submitEventExternal: e }) {
10663
10664
  isTestUser: _
10664
10665
  }
10665
10666
  }), {
10666
- ...he,
10667
- feedbackThumbType: oe
10668
- }) : he);
10669
- p(me), A(!1);
10667
+ ...ge,
10668
+ feedbackThumbType: ne
10669
+ }) : ge);
10670
+ p(he), A(!1);
10670
10671
  };
10671
10672
  return (
10672
10673
  // do not remove this class as it's needed to turn off chatbot
@@ -10701,7 +10702,7 @@ function Xr({ submitEventExternal: e }) {
10701
10702
  /* @__PURE__ */ k.jsx(
10702
10703
  Wr,
10703
10704
  {
10704
- onClick: ie,
10705
+ onClick: oe,
10705
10706
  label: "Open XPERT Chatbot",
10706
10707
  style: u ? { ...(ot = o.style) == null ? void 0 : ot.mobile } : { ...o.style },
10707
10708
  "aria-haspopup": "dialog",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.7.0-beta.2",
3
+ "version": "1.7.0-beta.4",
4
4
  "homepage": "/app/plugins/xpert-chatbot/frontend/build/",
5
5
  "repository": {
6
6
  "type": "git",