@2uinc/frontend-component-xpert-chatbot 1.19.0 → 1.19.1

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 +408 -390
  2. package/package.json +1 -1
@@ -82,7 +82,7 @@ function yo(e, t, n) {
82
82
  sn.jsx = yo;
83
83
  sn.jsxs = yo;
84
84
  mo.exports = sn;
85
- var b = mo.exports;
85
+ var y = mo.exports;
86
86
  /*! js-cookie v3.0.5 | MIT */
87
87
  function yn(e) {
88
88
  for (var t = 1; t < arguments.length; t++) {
@@ -203,8 +203,8 @@ const g = /* @__PURE__ */ st(wo);
203
203
  var On = { exports: {} };
204
204
  On.exports;
205
205
  (function(e, t) {
206
- var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", y = "[object Error]", f = "[object Function]", k = "[object GeneratorFunction]", x = "[object Map]", E = "[object Number]", C = "[object Null]", z = "[object Object]", L = "[object Proxy]", U = "[object RegExp]", j = "[object Set]", v = "[object String]", D = "[object Undefined]", H = "[object WeakMap]", q = "[object ArrayBuffer]", V = "[object DataView]", I = "[object Float32Array]", S = "[object Float64Array]", O = "[object Int8Array]", A = "[object Int16Array]", _ = "[object Int32Array]", P = "[object Uint8Array]", M = "[object Uint8ClampedArray]", N = "[object Uint16Array]", $ = "[object Uint32Array]", p = /[\\^$.*+?()[\]{}|]/g, G = /^\[object .+?Constructor\]$/, J = /^(?:0|[1-9]\d*)$/, m = {};
207
- m[I] = m[S] = m[O] = m[A] = m[_] = m[P] = m[M] = m[N] = m[$] = !0, m[l] = m[u] = m[q] = m[c] = m[V] = m[d] = m[y] = m[f] = m[x] = m[E] = m[z] = m[U] = m[j] = m[v] = m[H] = !1;
206
+ var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", b = "[object Error]", f = "[object Function]", k = "[object GeneratorFunction]", x = "[object Map]", E = "[object Number]", C = "[object Null]", z = "[object Object]", L = "[object Proxy]", U = "[object RegExp]", j = "[object Set]", v = "[object String]", D = "[object Undefined]", H = "[object WeakMap]", q = "[object ArrayBuffer]", V = "[object DataView]", I = "[object Float32Array]", S = "[object Float64Array]", O = "[object Int8Array]", A = "[object Int16Array]", _ = "[object Int32Array]", P = "[object Uint8Array]", M = "[object Uint8ClampedArray]", N = "[object Uint16Array]", $ = "[object Uint32Array]", p = /[\\^$.*+?()[\]{}|]/g, G = /^\[object .+?Constructor\]$/, J = /^(?:0|[1-9]\d*)$/, m = {};
207
+ m[I] = m[S] = m[O] = m[A] = m[_] = m[P] = m[M] = m[N] = m[$] = !0, m[l] = m[u] = m[q] = m[c] = m[V] = m[d] = m[b] = m[f] = m[x] = m[E] = m[z] = m[U] = m[j] = m[v] = m[H] = !1;
208
208
  var ee = typeof pe == "object" && pe && pe.Object === Object && pe, he = typeof self == "object" && self && self.Object === Object && self, re = ee || he || Function("return this")(), ve = t && !t.nodeType && t, we = ve && !0 && e && !e.nodeType && e, Ee = we && we.exports === ve, fe = Ee && ee.process, Te = function() {
209
209
  try {
210
210
  var h = we && we.require && we.require("util").types;
@@ -783,6 +783,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
783
783
  appId: "2U Inc",
784
784
  configId: "Degree | Support_Main_Flow_Xpert"
785
785
  },
786
+ queueMessages: [],
786
787
  useSurvey: !1,
787
788
  useOwnChat: !1
788
789
  }
@@ -865,6 +866,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
865
866
  },
866
867
  privacyPolicyLink: null,
867
868
  privacyPolicyText: null,
869
+ queueMessages: [],
868
870
  socketUrl: null,
869
871
  sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
870
872
  useOwnChat: !1,
@@ -953,6 +955,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
953
955
  formHeader: null,
954
956
  privacyPolicyLink: null,
955
957
  privacyPolicyText: null,
958
+ queueMessages: [],
956
959
  options: null,
957
960
  socketUrl: null,
958
961
  sourceCode: null,
@@ -1039,6 +1042,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
1039
1042
  },
1040
1043
  privacyPolicyLink: null,
1041
1044
  privacyPolicyText: null,
1045
+ queueMessages: [],
1042
1046
  socketUrl: null,
1043
1047
  sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
1044
1048
  useOwnChat: !1,
@@ -1133,6 +1137,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
1133
1137
  },
1134
1138
  privacyPolicyLink: null,
1135
1139
  privacyPolicyText: null,
1140
+ queueMessages: [],
1136
1141
  socketUrl: null,
1137
1142
  sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
1138
1143
  useOwnChat: !1,
@@ -1217,6 +1222,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
1217
1222
  },
1218
1223
  privacyPolicyLink: null,
1219
1224
  privacyPolicyText: null,
1225
+ queueMessages: [],
1220
1226
  socketUrl: null,
1221
1227
  sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
1222
1228
  useOwnChat: !1,
@@ -1300,6 +1306,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
1300
1306
  options: null,
1301
1307
  privacyPolicyLink: null,
1302
1308
  privacyPolicyText: null,
1309
+ queueMessages: [],
1303
1310
  socketUrl: null,
1304
1311
  sourceCode: null,
1305
1312
  useSurvey: null,
@@ -1328,7 +1335,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
1328
1335
  () => xu(t, n),
1329
1336
  [t, n]
1330
1337
  );
1331
- return /* @__PURE__ */ b.jsx(Oe.Provider, { value: { ...r }, children: e });
1338
+ return /* @__PURE__ */ y.jsx(Oe.Provider, { value: { ...r }, children: e });
1332
1339
  };
1333
1340
  ko.propTypes = {
1334
1341
  children: g.element.isRequired,
@@ -1412,6 +1419,7 @@ ko.propTypes = {
1412
1419
  formHeader: g.string,
1413
1420
  privacyPolicyLink: g.string,
1414
1421
  privacyPolicyText: g.string,
1422
+ queueMessages: g.arrayOf(g.string),
1415
1423
  socketUrl: g.string,
1416
1424
  sourceCode: g.string,
1417
1425
  options: g.shape({}),
@@ -1427,7 +1435,7 @@ const Un = $n({}), So = ({ children: e }) => {
1427
1435
  setXpertMessages: n,
1428
1436
  xpertMessages: t
1429
1437
  };
1430
- return /* @__PURE__ */ b.jsx(Un.Provider, { value: i, children: e });
1438
+ return /* @__PURE__ */ y.jsx(Un.Provider, { value: i, children: e });
1431
1439
  };
1432
1440
  So.propTypes = {
1433
1441
  children: g.element.isRequired
@@ -1446,7 +1454,7 @@ const Ji = 991, wu = () => {
1446
1454
  LIVECHAT: "LIVECHAT",
1447
1455
  XPERT: "XPERT"
1448
1456
  }, Le = $n({}), _o = ({ children: e }) => {
1449
- const [t, n] = te(!1), [r, i] = te(!1), [a, o] = te(!1), [l, u] = te(!0), [s, c] = te(!1), [d, y] = te(St.XPERT), f = wu(), k = {
1457
+ const [t, n] = te(!1), [r, i] = te(!1), [a, o] = te(!1), [l, u] = te(!0), [s, c] = te(!1), [d, b] = te(St.XPERT), f = wu(), k = {
1450
1458
  disabledScroll: t,
1451
1459
  hasError: r,
1452
1460
  hasNewMessage: a,
@@ -1459,9 +1467,9 @@ const Ji = 991, wu = () => {
1459
1467
  setHasNewMessage: o,
1460
1468
  setIsNormalSize: u,
1461
1469
  setLoading: c,
1462
- setMode: y
1470
+ setMode: b
1463
1471
  };
1464
- return /* @__PURE__ */ b.jsx(Le.Provider, { value: k, children: e });
1472
+ return /* @__PURE__ */ y.jsx(Le.Provider, { value: k, children: e });
1465
1473
  };
1466
1474
  _o.propTypes = {
1467
1475
  children: g.element.isRequired
@@ -1513,7 +1521,7 @@ function qn({
1513
1521
  ...a
1514
1522
  }) {
1515
1523
  const { isMobile: o } = ne(Le);
1516
- return /* @__PURE__ */ b.jsx(
1524
+ return /* @__PURE__ */ y.jsx(
1517
1525
  "button",
1518
1526
  {
1519
1527
  id: "xpert_chatbot__floating-action-btn",
@@ -1583,20 +1591,20 @@ eyes follow your mouse when you hover near it.`, oi = ({
1583
1591
  }, [c]);
1584
1592
  const d = () => {
1585
1593
  o.current = !0;
1586
- }, y = () => {
1594
+ }, b = () => {
1587
1595
  o.current = !1;
1588
1596
  };
1589
- return /* @__PURE__ */ b.jsxs(
1597
+ return /* @__PURE__ */ y.jsxs(
1590
1598
  "div",
1591
1599
  {
1592
1600
  role: "region",
1593
1601
  "aria-label": "animated graduate region",
1594
1602
  className: c ? "" : "xpert_chatbot__animated_graduate__eyes_follow_mouse_region",
1595
1603
  onMouseEnter: c ? null : d,
1596
- onMouseLeave: c ? null : y,
1604
+ onMouseLeave: c ? null : b,
1597
1605
  children: [
1598
- !c && /* @__PURE__ */ b.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: Su }),
1599
- /* @__PURE__ */ b.jsx(
1606
+ !c && /* @__PURE__ */ y.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: Su }),
1607
+ /* @__PURE__ */ y.jsx(
1600
1608
  qn,
1601
1609
  {
1602
1610
  onClick: e,
@@ -1605,7 +1613,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1605
1613
  style: r ? { ...(x = n.style) == null ? void 0 : x.mobile } : { ...n.style },
1606
1614
  "aria-haspopup": "dialog",
1607
1615
  "aria-expanded": open,
1608
- children: /* @__PURE__ */ b.jsx("div", { ref: a, children: /* @__PURE__ */ b.jsxs(
1616
+ children: /* @__PURE__ */ y.jsx("div", { ref: a, children: /* @__PURE__ */ y.jsxs(
1609
1617
  "svg",
1610
1618
  {
1611
1619
  style: {
@@ -1616,7 +1624,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1616
1624
  xmlns: "http://www.w3.org/2000/svg",
1617
1625
  className: "xpert_chatbot__animated_graduate",
1618
1626
  children: [
1619
- /* @__PURE__ */ b.jsx(
1627
+ /* @__PURE__ */ y.jsx(
1620
1628
  "path",
1621
1629
  {
1622
1630
  d: "M28.7098 11.9636C29.3493 11.5582 30.1637 11.5523 30.8091 11.9482L57.7788 28.4938C59.0325 29.2629 59.0425 31.081 57.7974 31.8639L29.379 49.733C28.6963 50.1623 27.8215 50.1355 27.1663 49.6652L2.38715 31.8772C1.24528 31.0575 1.29468 29.343 2.48186 28.5904L28.7098 11.9636Z",
@@ -1624,7 +1632,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1624
1632
  className: "xpert_chatbot__animated_graduate__cap"
1625
1633
  }
1626
1634
  ),
1627
- /* @__PURE__ */ b.jsx(
1635
+ /* @__PURE__ */ y.jsx(
1628
1636
  "path",
1629
1637
  {
1630
1638
  fillRule: "evenodd",
@@ -1634,7 +1642,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1634
1642
  className: "xpert_chatbot__animated_graduate__face"
1635
1643
  }
1636
1644
  ),
1637
- /* @__PURE__ */ b.jsx(
1645
+ /* @__PURE__ */ y.jsx(
1638
1646
  "circle",
1639
1647
  {
1640
1648
  className: `xpert_chatbot__animated_graduate__eyeball ${u ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
@@ -1644,7 +1652,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1644
1652
  fill: "white"
1645
1653
  }
1646
1654
  ),
1647
- /* @__PURE__ */ b.jsx(
1655
+ /* @__PURE__ */ y.jsx(
1648
1656
  "mask",
1649
1657
  {
1650
1658
  id: "mask0_2271_69",
@@ -1653,10 +1661,10 @@ eyes follow your mouse when you hover near it.`, oi = ({
1653
1661
  y: "37",
1654
1662
  width: "15",
1655
1663
  height: "14",
1656
- children: /* @__PURE__ */ b.jsx("circle", { cx: "34.7137", cy: "44.0494", r: "6.94275", fill: "white" })
1664
+ children: /* @__PURE__ */ y.jsx("circle", { cx: "34.7137", cy: "44.0494", r: "6.94275", fill: "white" })
1657
1665
  }
1658
1666
  ),
1659
- /* @__PURE__ */ b.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ b.jsx(
1667
+ /* @__PURE__ */ y.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ y.jsx(
1660
1668
  "circle",
1661
1669
  {
1662
1670
  role: "img",
@@ -1668,7 +1676,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1668
1676
  fill: "black"
1669
1677
  }
1670
1678
  ) }),
1671
- /* @__PURE__ */ b.jsx(
1679
+ /* @__PURE__ */ y.jsx(
1672
1680
  "circle",
1673
1681
  {
1674
1682
  className: `xpert_chatbot__animated_graduate__eyeball ${u ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
@@ -1678,7 +1686,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1678
1686
  fill: "white"
1679
1687
  }
1680
1688
  ),
1681
- /* @__PURE__ */ b.jsx(
1689
+ /* @__PURE__ */ y.jsx(
1682
1690
  "mask",
1683
1691
  {
1684
1692
  id: "mask1_2271_69",
@@ -1687,10 +1695,10 @@ eyes follow your mouse when you hover near it.`, oi = ({
1687
1695
  y: "37",
1688
1696
  width: "15",
1689
1697
  height: "14",
1690
- children: /* @__PURE__ */ b.jsx("circle", { cx: "18.8446", cy: "44.0494", r: "6.94275", fill: "white" })
1698
+ children: /* @__PURE__ */ y.jsx("circle", { cx: "18.8446", cy: "44.0494", r: "6.94275", fill: "white" })
1691
1699
  }
1692
1700
  ),
1693
- /* @__PURE__ */ b.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ b.jsx(
1701
+ /* @__PURE__ */ y.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ y.jsx(
1694
1702
  "circle",
1695
1703
  {
1696
1704
  role: "img",
@@ -1702,7 +1710,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1702
1710
  fill: "black"
1703
1711
  }
1704
1712
  ) }),
1705
- /* @__PURE__ */ b.jsx(
1713
+ /* @__PURE__ */ y.jsx(
1706
1714
  "circle",
1707
1715
  {
1708
1716
  className: `xpert_chatbot__animated_graduate__mouth ${u ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1712,7 +1720,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1712
1720
  fill: "#5DE3C0"
1713
1721
  }
1714
1722
  ),
1715
- /* @__PURE__ */ b.jsx(
1723
+ /* @__PURE__ */ y.jsx(
1716
1724
  "circle",
1717
1725
  {
1718
1726
  className: `xpert_chatbot__animated_graduate__mouth ${u ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1722,7 +1730,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1722
1730
  fill: "#5DE3C0"
1723
1731
  }
1724
1732
  ),
1725
- /* @__PURE__ */ b.jsx(
1733
+ /* @__PURE__ */ y.jsx(
1726
1734
  "circle",
1727
1735
  {
1728
1736
  className: `xpert_chatbot__animated_graduate__mouth ${u ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1732,7 +1740,7 @@ eyes follow your mouse when you hover near it.`, oi = ({
1732
1740
  fill: "#5DE3C0"
1733
1741
  }
1734
1742
  ),
1735
- /* @__PURE__ */ b.jsx(
1743
+ /* @__PURE__ */ y.jsx(
1736
1744
  "path",
1737
1745
  {
1738
1746
  className: "xpert_chatbot__animated_graduate__cap_tassel",
@@ -1761,7 +1769,7 @@ const _u = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
1761
1769
  }, li = ({ handleFloatingActionButtonClick: e }) => {
1762
1770
  var r, i;
1763
1771
  const { launchButton: t } = ne(Oe), { isMobile: n } = ne(Le);
1764
- return /* @__PURE__ */ b.jsx(
1772
+ return /* @__PURE__ */ y.jsx(
1765
1773
  qn,
1766
1774
  {
1767
1775
  onClick: e,
@@ -1770,7 +1778,7 @@ const _u = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
1770
1778
  "aria-haspopup": "dialog",
1771
1779
  "aria-expanded": open,
1772
1780
  className: "xpert-chatbot-button",
1773
- children: /* @__PURE__ */ b.jsx(
1781
+ children: /* @__PURE__ */ y.jsx(
1774
1782
  "img",
1775
1783
  {
1776
1784
  "data-ot-ignore": "",
@@ -1795,7 +1803,7 @@ const Po = () => {
1795
1803
  return Ce(() => {
1796
1804
  var n;
1797
1805
  (n = t == null ? void 0 : t.current) == null || n.focus();
1798
- }, []), /* @__PURE__ */ b.jsxs(
1806
+ }, []), /* @__PURE__ */ y.jsxs(
1799
1807
  "div",
1800
1808
  {
1801
1809
  ref: t,
@@ -1804,9 +1812,9 @@ const Po = () => {
1804
1812
  "aria-live": "assertive",
1805
1813
  className: "xpert-chatbot-popup__conversations_disclaimer--text",
1806
1814
  children: [
1807
- /* @__PURE__ */ b.jsx("span", { children: e.text }),
1808
- /* @__PURE__ */ b.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
1809
- /* @__PURE__ */ b.jsx(
1815
+ /* @__PURE__ */ y.jsx("span", { children: e.text }),
1816
+ /* @__PURE__ */ y.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
1817
+ /* @__PURE__ */ y.jsx(
1810
1818
  "a",
1811
1819
  {
1812
1820
  href: e.privacyPolicyLink,
@@ -2136,13 +2144,13 @@ function Hu(e, t) {
2136
2144
  const o = r.width, l = r.height, u = i.width, s = i.height;
2137
2145
  let c, d;
2138
2146
  o === null ? (d = l === null ? "1em" : l === "auto" ? s : l, c = na(d, u / s)) : (c = o === "auto" ? u : o, d = l === null ? na(c, s / u) : l === "auto" ? s : l);
2139
- const y = {}, f = (x, E) => {
2140
- zu(E) || (y[x] = E.toString());
2147
+ const b = {}, f = (x, E) => {
2148
+ zu(E) || (b[x] = E.toString());
2141
2149
  };
2142
2150
  f("width", c), f("height", d);
2143
2151
  const k = [i.left, i.top, u, s];
2144
- return y.viewBox = k.join(" "), {
2145
- attributes: y,
2152
+ return b.viewBox = k.join(" "), {
2153
+ attributes: b,
2146
2154
  viewBox: k,
2147
2155
  body: a
2148
2156
  };
@@ -2433,15 +2441,15 @@ function lc(e, t, n, r) {
2433
2441
  } else
2434
2442
  o = e.resources.slice(a).concat(e.resources.slice(0, a));
2435
2443
  const l = Date.now();
2436
- let u = "pending", s = 0, c, d = null, y = [], f = [];
2444
+ let u = "pending", s = 0, c, d = null, b = [], f = [];
2437
2445
  typeof r == "function" && f.push(r);
2438
2446
  function k() {
2439
2447
  d && (clearTimeout(d), d = null);
2440
2448
  }
2441
2449
  function x() {
2442
- u === "pending" && (u = "aborted"), k(), y.forEach((v) => {
2450
+ u === "pending" && (u = "aborted"), k(), b.forEach((v) => {
2443
2451
  v.status === "pending" && (v.status = "aborted");
2444
- }), y = [];
2452
+ }), b = [];
2445
2453
  }
2446
2454
  function E(v, D) {
2447
2455
  D && (f = []), typeof v == "function" && f.push(v);
@@ -2452,7 +2460,7 @@ function lc(e, t, n, r) {
2452
2460
  payload: t,
2453
2461
  status: u,
2454
2462
  queriesSent: s,
2455
- queriesPending: y.length,
2463
+ queriesPending: b.length,
2456
2464
  subscribe: E,
2457
2465
  abort: x
2458
2466
  };
@@ -2463,13 +2471,13 @@ function lc(e, t, n, r) {
2463
2471
  });
2464
2472
  }
2465
2473
  function L() {
2466
- y.forEach((v) => {
2474
+ b.forEach((v) => {
2467
2475
  v.status === "pending" && (v.status = "aborted");
2468
- }), y = [];
2476
+ }), b = [];
2469
2477
  }
2470
2478
  function U(v, D, H) {
2471
2479
  const q = D !== "success";
2472
- switch (y = y.filter((V) => V !== v), u) {
2480
+ switch (b = b.filter((V) => V !== v), u) {
2473
2481
  case "pending":
2474
2482
  break;
2475
2483
  case "failed":
@@ -2484,7 +2492,7 @@ function lc(e, t, n, r) {
2484
2492
  return;
2485
2493
  }
2486
2494
  if (q) {
2487
- c = H, y.length || (o.length ? j() : z());
2495
+ c = H, b.length || (o.length ? j() : z());
2488
2496
  return;
2489
2497
  }
2490
2498
  if (k(), L(), !e.random) {
@@ -2501,7 +2509,7 @@ function lc(e, t, n, r) {
2501
2509
  k();
2502
2510
  const v = o.shift();
2503
2511
  if (v === void 0) {
2504
- if (y.length) {
2512
+ if (b.length) {
2505
2513
  d = setTimeout(() => {
2506
2514
  k(), u === "pending" && (L(), z());
2507
2515
  }, e.timeout);
@@ -2517,7 +2525,7 @@ function lc(e, t, n, r) {
2517
2525
  U(D, H, q);
2518
2526
  }
2519
2527
  };
2520
- y.push(D), s++, d = setTimeout(j, e.rotate), n(v, t, D.callback);
2528
+ b.push(D), s++, d = setTimeout(j, e.rotate), n(v, t, D.callback);
2521
2529
  }
2522
2530
  return setTimeout(j), C;
2523
2531
  }
@@ -2535,8 +2543,8 @@ function Do(e) {
2535
2543
  t,
2536
2544
  l,
2537
2545
  u,
2538
- (d, y) => {
2539
- r(), s && s(d, y);
2546
+ (d, b) => {
2547
+ r(), s && s(d, b);
2540
2548
  }
2541
2549
  );
2542
2550
  return n.push(c), c;
@@ -2788,7 +2796,7 @@ const yc = (e, t) => {
2788
2796
  const d = i[s] || (i[s] = /* @__PURE__ */ Object.create(null));
2789
2797
  d[c] || (d[c] = []);
2790
2798
  }), r.pending.forEach((u) => {
2791
- const { provider: s, prefix: c, name: d } = u, y = _t(s, c), f = y.pendingIcons || (y.pendingIcons = /* @__PURE__ */ new Set());
2799
+ const { provider: s, prefix: c, name: d } = u, b = _t(s, c), f = b.pendingIcons || (b.pendingIcons = /* @__PURE__ */ new Set());
2792
2800
  f.has(d) || (f.add(d), i[s][c].push(d));
2793
2801
  }), a.forEach((u) => {
2794
2802
  const { provider: s, prefix: c } = u;
@@ -2974,9 +2982,9 @@ const Ac = (e, t, n) => {
2974
2982
  __html: Tc(Vu(s.body, C ? () => C + "ID" + E++ : "iconifyReact"))
2975
2983
  }, Br("svg", u);
2976
2984
  }
2977
- const { body: d, width: y, height: f } = e, k = a === "mask" || (a === "bg" ? !1 : d.indexOf("currentColor") !== -1), x = Cc(d, {
2985
+ const { body: d, width: b, height: f } = e, k = a === "mask" || (a === "bg" ? !1 : d.indexOf("currentColor") !== -1), x = Cc(d, {
2978
2986
  ...c,
2979
- width: y + "",
2987
+ width: b + "",
2980
2988
  height: f + ""
2981
2989
  });
2982
2990
  return u.style = {
@@ -3078,10 +3086,10 @@ function Wo(e) {
3078
3086
  Ce(() => (n(!0), u), []), Ce(() => {
3079
3087
  t && c();
3080
3088
  }, [e.icon, t]);
3081
- const { name: d, data: y } = o;
3082
- return y ? Ac({
3089
+ const { name: d, data: b } = o;
3090
+ return b ? Ac({
3083
3091
  ...si,
3084
- ...y
3092
+ ...b
3085
3093
  }, e, d) : e.children ? e.children : Br("span", {});
3086
3094
  }
3087
3095
  const dt = po((e, t) => Wo({
@@ -3116,8 +3124,8 @@ function Gn({
3116
3124
  120
3117
3125
  )}px`);
3118
3126
  };
3119
- return /* @__PURE__ */ b.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: { margin: r }, children: [
3120
- /* @__PURE__ */ b.jsx(
3127
+ return /* @__PURE__ */ y.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: { margin: r }, children: [
3128
+ /* @__PURE__ */ y.jsx(
3121
3129
  "textarea",
3122
3130
  {
3123
3131
  disabled: e,
@@ -3146,7 +3154,7 @@ function Gn({
3146
3154
  }
3147
3155
  }
3148
3156
  ),
3149
- /* @__PURE__ */ b.jsx(
3157
+ /* @__PURE__ */ y.jsx(
3150
3158
  "button",
3151
3159
  {
3152
3160
  "data-testid": "Send",
@@ -3156,7 +3164,7 @@ function Gn({
3156
3164
  d.preventDefault(), n(a);
3157
3165
  },
3158
3166
  "aria-label": "Send message",
3159
- children: /* @__PURE__ */ b.jsx(dt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
3167
+ children: /* @__PURE__ */ y.jsx(dt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
3160
3168
  }
3161
3169
  )
3162
3170
  ] });
@@ -3173,15 +3181,15 @@ Gn.propTypes = {
3173
3181
  };
3174
3182
  Gn.defaultProps = {};
3175
3183
  function Go({ message: e, id: t, onFeedbackThumbSelection: n }) {
3176
- return /* @__PURE__ */ b.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
3177
- /* @__PURE__ */ b.jsx(
3184
+ return /* @__PURE__ */ y.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
3185
+ /* @__PURE__ */ y.jsx(
3178
3186
  "button",
3179
3187
  {
3180
3188
  className: `xpert-chatbot-popup__feedback--btn-up
3181
3189
  ${e.feedbackThumbType === "UP" ? "xpert-chatbot-popup__feedback--btn-up-selected" : ""}`,
3182
3190
  onClick: () => n(t, "UP"),
3183
3191
  "aria-label": "I like this response",
3184
- children: /* @__PURE__ */ b.jsx(
3192
+ children: /* @__PURE__ */ y.jsx(
3185
3193
  dt,
3186
3194
  {
3187
3195
  className: "xpert-chatbot-popup__feedback--btn-up-icon",
@@ -3190,7 +3198,7 @@ function Go({ message: e, id: t, onFeedbackThumbSelection: n }) {
3190
3198
  )
3191
3199
  }
3192
3200
  ),
3193
- /* @__PURE__ */ b.jsx(
3201
+ /* @__PURE__ */ y.jsx(
3194
3202
  "button",
3195
3203
  {
3196
3204
  style: { marginLeft: "-0.7rem" },
@@ -3198,7 +3206,7 @@ function Go({ message: e, id: t, onFeedbackThumbSelection: n }) {
3198
3206
  ${e.feedbackThumbType === "DOWN" ? "xpert-chatbot-popup__feedback--btn-down-selected" : ""}`,
3199
3207
  onClick: () => n(t, "DOWN"),
3200
3208
  "aria-label": "I do not like this response",
3201
- children: /* @__PURE__ */ b.jsx(
3209
+ children: /* @__PURE__ */ y.jsx(
3202
3210
  dt,
3203
3211
  {
3204
3212
  className: "xpert-chatbot-popup__feedback--btn-down-icon",
@@ -3226,7 +3234,7 @@ function Xn({
3226
3234
  userTrackingName: l
3227
3235
  }) {
3228
3236
  var C, z, L, U;
3229
- const [u, s] = te(!0), { primaryColor: c, id: d, userTracking: y, conversationScreen: f } = ne(Oe), k = Rt(
3237
+ const [u, s] = te(!0), { primaryColor: c, id: d, userTracking: b, conversationScreen: f } = ne(Oe), k = Rt(
3230
3238
  (j) => {
3231
3239
  var v, D, H, q;
3232
3240
  ((v = j == null ? void 0 : j.data) == null ? void 0 : v.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (D = window == null ? void 0 : window.OnetrustActiveGroups) != null && D.includes("C0003")) && Ne.set(`${d}-live-chat-open`, 1, {
@@ -3267,7 +3275,7 @@ function Xn({
3267
3275
  const E = () => {
3268
3276
  var j;
3269
3277
  e({
3270
- name: `${y.prefix}.bi.xpert.chatbot.popup.live.chat.${l}`,
3278
+ name: `${b.prefix}.bi.xpert.chatbot.popup.live.chat.${l}`,
3271
3279
  payload: {
3272
3280
  category: "2u",
3273
3281
  label: "xpert-chatbot",
@@ -3275,18 +3283,18 @@ function Xn({
3275
3283
  }
3276
3284
  }), t(!0), (j = f == null ? void 0 : f.liveChat) != null && j.useOwnChat || window.f9_postMessage({ type: "toggle" });
3277
3285
  };
3278
- return /* @__PURE__ */ b.jsxs("div", { title: "Talk to a live agent at anytime.", style: i, children: [
3279
- u && r && /* @__PURE__ */ b.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
3280
- /* @__PURE__ */ b.jsx(
3286
+ return /* @__PURE__ */ y.jsxs("div", { title: "Talk to a live agent at anytime.", style: i, children: [
3287
+ u && r && /* @__PURE__ */ y.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
3288
+ /* @__PURE__ */ y.jsx(
3281
3289
  "div",
3282
3290
  {
3283
3291
  style: { backgroundColor: c },
3284
3292
  className: "xpert-chatbot-popup__live-chat--message-border"
3285
3293
  }
3286
3294
  ),
3287
- /* @__PURE__ */ b.jsx("div", { children: "Talk to a live agent at anytime." })
3295
+ /* @__PURE__ */ y.jsx("div", { children: "Talk to a live agent at anytime." })
3288
3296
  ] }),
3289
- /* @__PURE__ */ b.jsxs(
3297
+ /* @__PURE__ */ y.jsxs(
3290
3298
  "button",
3291
3299
  {
3292
3300
  type: "button",
@@ -3295,7 +3303,7 @@ function Xn({
3295
3303
  style: { position: "relative" },
3296
3304
  className: a,
3297
3305
  children: [
3298
- /* @__PURE__ */ b.jsx(
3306
+ /* @__PURE__ */ y.jsx(
3299
3307
  "img",
3300
3308
  {
3301
3309
  height: "24px",
@@ -3304,7 +3312,7 @@ function Xn({
3304
3312
  alt: "Open live chat window icon"
3305
3313
  }
3306
3314
  ),
3307
- o && /* @__PURE__ */ b.jsx("span", { style: { marginLeft: "0.675rem" }, children: o })
3315
+ o && /* @__PURE__ */ y.jsx("span", { style: { marginLeft: "0.675rem" }, children: o })
3308
3316
  ]
3309
3317
  }
3310
3318
  )
@@ -3890,7 +3898,7 @@ const Zc = Jo().freeze(), Ko = {}.hasOwnProperty;
3890
3898
  function Jo() {
3891
3899
  const e = Gc(), t = [];
3892
3900
  let n = {}, r, i = -1;
3893
- return a.data = o, a.Parser = void 0, a.Compiler = void 0, a.freeze = l, a.attachers = t, a.use = u, a.parse = s, a.stringify = c, a.run = d, a.runSync = y, a.process = f, a.processSync = k, a;
3901
+ return a.data = o, a.Parser = void 0, a.Compiler = void 0, a.freeze = l, a.attachers = t, a.use = u, a.parse = s, a.stringify = c, a.run = d, a.runSync = b, a.process = f, a.processSync = k, a;
3894
3902
  function a() {
3895
3903
  const x = Jo();
3896
3904
  let E = -1;
@@ -3979,7 +3987,7 @@ function Jo() {
3979
3987
  }
3980
3988
  }
3981
3989
  }
3982
- function y(x, E) {
3990
+ function b(x, E) {
3983
3991
  let C, z;
3984
3992
  return a.run(x, E, L), Ea("runSync", "run", z), C;
3985
3993
  function L(U, j) {
@@ -4252,7 +4260,7 @@ function mf(e) {
4252
4260
  function s(L) {
4253
4261
  if (r === n.length) {
4254
4262
  if (!i)
4255
- return y(L);
4263
+ return b(L);
4256
4264
  if (i.currentConstruct && i.currentConstruct.concrete)
4257
4265
  return k(L);
4258
4266
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
@@ -4264,12 +4272,12 @@ function mf(e) {
4264
4272
  )(L);
4265
4273
  }
4266
4274
  function c(L) {
4267
- return i && z(), C(r), y(L);
4275
+ return i && z(), C(r), b(L);
4268
4276
  }
4269
4277
  function d(L) {
4270
4278
  return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, k(L);
4271
4279
  }
4272
- function y(L) {
4280
+ function b(L) {
4273
4281
  return t.containerState = {}, e.attempt(
4274
4282
  Pa,
4275
4283
  f,
@@ -4277,7 +4285,7 @@ function mf(e) {
4277
4285
  )(L);
4278
4286
  }
4279
4287
  function f(L) {
4280
- return r++, n.push([t.currentConstruct, t.containerState]), y(L);
4288
+ return r++, n.push([t.currentConstruct, t.containerState]), b(L);
4281
4289
  }
4282
4290
  function k(L) {
4283
4291
  if (L === null) {
@@ -4379,15 +4387,15 @@ function yf(e, t) {
4379
4387
  if ((e[r][1]._close || e[n][1]._open) && (e[n][1].end.offset - e[n][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[n][1].end.offset - e[n][1].start.offset) % 3))
4380
4388
  continue;
4381
4389
  u = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
4382
- const d = Object.assign({}, e[r][1].end), y = Object.assign({}, e[n][1].start);
4383
- Aa(d, -u), Aa(y, u), o = {
4390
+ const d = Object.assign({}, e[r][1].end), b = Object.assign({}, e[n][1].start);
4391
+ Aa(d, -u), Aa(b, u), o = {
4384
4392
  type: u > 1 ? "strongSequence" : "emphasisSequence",
4385
4393
  start: d,
4386
4394
  end: Object.assign({}, e[r][1].end)
4387
4395
  }, l = {
4388
4396
  type: u > 1 ? "strongSequence" : "emphasisSequence",
4389
4397
  start: Object.assign({}, e[n][1].start),
4390
- end: y
4398
+ end: b
4391
4399
  }, a = {
4392
4400
  type: u > 1 ? "strongText" : "emphasisText",
4393
4401
  start: Object.assign({}, e[r][1].end),
@@ -4437,8 +4445,8 @@ function bf(e, t) {
4437
4445
  function l(u) {
4438
4446
  if (u === a)
4439
4447
  return e.consume(u), l;
4440
- const s = e.exit("attentionSequence"), c = Ia(u), d = !c || c === 2 && i || n.includes(u), y = !i || i === 2 && c || n.includes(r);
4441
- return s._open = !!(a === 42 ? d : d && (i || !y)), s._close = !!(a === 42 ? y : y && (c || !d)), t(u);
4448
+ const s = e.exit("attentionSequence"), c = Ia(u), d = !c || c === 2 && i || n.includes(u), b = !i || i === 2 && c || n.includes(r);
4449
+ return s._open = !!(a === 42 ? d : d && (i || !b)), s._close = !!(a === 42 ? b : b && (c || !d)), t(u);
4442
4450
  }
4443
4451
  }
4444
4452
  function Aa(e, t) {
@@ -4473,11 +4481,11 @@ function xf(e, t, n) {
4473
4481
  return ze(f) ? d(f) : n(f);
4474
4482
  }
4475
4483
  function d(f) {
4476
- return f === 46 ? (e.consume(f), r = 0, c) : f === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : y(f);
4484
+ return f === 46 ? (e.consume(f), r = 0, c) : f === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : b(f);
4477
4485
  }
4478
- function y(f) {
4486
+ function b(f) {
4479
4487
  if ((f === 45 || ze(f)) && r++ < 63) {
4480
- const k = f === 45 ? y : d;
4488
+ const k = f === 45 ? b : d;
4481
4489
  return e.consume(f), k;
4482
4490
  }
4483
4491
  return n(f);
@@ -4577,8 +4585,8 @@ function Ef(e, t, n) {
4577
4585
  }
4578
4586
  function c(d) {
4579
4587
  if (d === 59 && i) {
4580
- const y = e.exit("characterReferenceValue");
4581
- return o === ze && !gi(r.sliceSerialize(y)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
4588
+ const b = e.exit("characterReferenceValue");
4589
+ return o === ze && !gi(r.sliceSerialize(b)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
4582
4590
  }
4583
4591
  return o(d) && i++ < a ? (e.consume(d), c) : n(d);
4584
4592
  }
@@ -4611,10 +4619,10 @@ function Tf(e, t, n) {
4611
4619
  function d(v) {
4612
4620
  return v === null || K(v) ? (e.exit("codeFencedFence"), r.interrupt ? t(v) : e.check(Na, x, U)(v)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
4613
4621
  contentType: "string"
4614
- }), y(v));
4622
+ }), b(v));
4615
4623
  }
4616
- function y(v) {
4617
- return v === null || K(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(v)) : se(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ge(e, f, "whitespace")(v)) : v === 96 && v === l ? n(v) : (e.consume(v), y);
4624
+ function b(v) {
4625
+ return v === null || K(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(v)) : se(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ge(e, f, "whitespace")(v)) : v === 96 && v === l ? n(v) : (e.consume(v), b);
4618
4626
  }
4619
4627
  function f(v) {
4620
4628
  return v === null || K(v) ? d(v) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -4784,22 +4792,22 @@ function jf(e, t) {
4784
4792
  const n = e[t][1], r = e[t][2];
4785
4793
  let i = t - 1;
4786
4794
  const a = [], o = n._tokenizer || r.parser[n.contentType](n.start), l = o.events, u = [], s = {};
4787
- let c, d, y = -1, f = n, k = 0, x = 0;
4795
+ let c, d, b = -1, f = n, k = 0, x = 0;
4788
4796
  const E = [x];
4789
4797
  for (; f; ) {
4790
4798
  for (; e[++i][1] !== f; )
4791
4799
  ;
4792
4800
  a.push(i), f._tokenizer || (c = r.sliceStream(f), f.next || c.push(null), d && o.defineSkip(f.start), f._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = !0), o.write(c), f._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = void 0)), d = f, f = f.next;
4793
4801
  }
4794
- for (f = n; ++y < l.length; )
4802
+ for (f = n; ++b < l.length; )
4795
4803
  // Find a void token that includes a break.
4796
- l[y][0] === "exit" && l[y - 1][0] === "enter" && l[y][1].type === l[y - 1][1].type && l[y][1].start.line !== l[y][1].end.line && (x = y + 1, E.push(x), f._tokenizer = void 0, f.previous = void 0, f = f.next);
4797
- for (o.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : E.pop(), y = E.length; y--; ) {
4798
- const C = l.slice(E[y], E[y + 1]), z = a.pop();
4804
+ l[b][0] === "exit" && l[b - 1][0] === "enter" && l[b][1].type === l[b - 1][1].type && l[b][1].start.line !== l[b][1].end.line && (x = b + 1, E.push(x), f._tokenizer = void 0, f.previous = void 0, f = f.next);
4805
+ for (o.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : E.pop(), b = E.length; b--; ) {
4806
+ const C = l.slice(E[b], E[b + 1]), z = a.pop();
4799
4807
  u.unshift([z, z + C.length - 1]), lt(e, z, 2, C);
4800
4808
  }
4801
- for (y = -1; ++y < u.length; )
4802
- s[k + u[y][0]] = k + u[y][1], k += u[y][1] - u[y][0] - 1;
4809
+ for (b = -1; ++b < u.length; )
4810
+ s[k + u[b][0]] = k + u[b][1], k += u[b][1] - u[b][0] - 1;
4803
4811
  return s;
4804
4812
  }
4805
4813
  const Df = {
@@ -4855,17 +4863,17 @@ function il(e, t, n, r, i, a, o, l, u) {
4855
4863
  let c = 0;
4856
4864
  return d;
4857
4865
  function d(C) {
4858
- return C === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(C), e.exit(a), y) : C === null || C === 32 || C === 41 || Kr(C) ? n(C) : (e.enter(r), e.enter(o), e.enter(l), e.enter("chunkString", {
4866
+ return C === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(C), e.exit(a), b) : C === null || C === 32 || C === 41 || Kr(C) ? n(C) : (e.enter(r), e.enter(o), e.enter(l), e.enter("chunkString", {
4859
4867
  contentType: "string"
4860
4868
  }), x(C));
4861
4869
  }
4862
- function y(C) {
4870
+ function b(C) {
4863
4871
  return C === 62 ? (e.enter(a), e.consume(C), e.exit(a), e.exit(i), e.exit(r), t) : (e.enter(l), e.enter("chunkString", {
4864
4872
  contentType: "string"
4865
4873
  }), f(C));
4866
4874
  }
4867
4875
  function f(C) {
4868
- return C === 62 ? (e.exit("chunkString"), e.exit(l), y(C)) : C === null || C === 60 || K(C) ? n(C) : (e.consume(C), C === 92 ? k : f);
4876
+ return C === 62 ? (e.exit("chunkString"), e.exit(l), b(C)) : C === null || C === 60 || K(C) ? n(C) : (e.consume(C), C === 92 ? k : f);
4869
4877
  }
4870
4878
  function k(C) {
4871
4879
  return C === 60 || C === 62 || C === 92 ? (e.consume(C), f) : f(C);
@@ -4895,31 +4903,31 @@ function al(e, t, n, r, i, a) {
4895
4903
  }), d(f));
4896
4904
  }
4897
4905
  function d(f) {
4898
- return f === null || f === 91 || f === 93 || K(f) || l++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), u || (u = !se(f)), f === 92 ? y : d);
4906
+ return f === null || f === 91 || f === 93 || K(f) || l++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), u || (u = !se(f)), f === 92 ? b : d);
4899
4907
  }
4900
- function y(f) {
4908
+ function b(f) {
4901
4909
  return f === 91 || f === 92 || f === 93 ? (e.consume(f), l++, d) : d(f);
4902
4910
  }
4903
4911
  }
4904
4912
  function ol(e, t, n, r, i, a) {
4905
4913
  let o;
4906
4914
  return l;
4907
- function l(y) {
4908
- return y === 34 || y === 39 || y === 40 ? (e.enter(r), e.enter(i), e.consume(y), e.exit(i), o = y === 40 ? 41 : y, u) : n(y);
4915
+ function l(b) {
4916
+ return b === 34 || b === 39 || b === 40 ? (e.enter(r), e.enter(i), e.consume(b), e.exit(i), o = b === 40 ? 41 : b, u) : n(b);
4909
4917
  }
4910
- function u(y) {
4911
- return y === o ? (e.enter(i), e.consume(y), e.exit(i), e.exit(r), t) : (e.enter(a), s(y));
4918
+ function u(b) {
4919
+ return b === o ? (e.enter(i), e.consume(b), e.exit(i), e.exit(r), t) : (e.enter(a), s(b));
4912
4920
  }
4913
- function s(y) {
4914
- return y === o ? (e.exit(a), u(o)) : y === null ? n(y) : K(y) ? (e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), ge(e, s, "linePrefix")) : (e.enter("chunkString", {
4921
+ function s(b) {
4922
+ return b === o ? (e.exit(a), u(o)) : b === null ? n(b) : K(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), ge(e, s, "linePrefix")) : (e.enter("chunkString", {
4915
4923
  contentType: "string"
4916
- }), c(y));
4924
+ }), c(b));
4917
4925
  }
4918
- function c(y) {
4919
- return y === o || y === null || K(y) ? (e.exit("chunkString"), s(y)) : (e.consume(y), y === 92 ? d : c);
4926
+ function c(b) {
4927
+ return b === o || b === null || K(b) ? (e.exit("chunkString"), s(b)) : (e.consume(b), b === 92 ? d : c);
4920
4928
  }
4921
- function d(y) {
4922
- return y === o || y === 92 ? (e.consume(y), c) : c(y);
4929
+ function d(b) {
4930
+ return b === o || b === 92 ? (e.consume(b), c) : c(b);
4923
4931
  }
4924
4932
  }
4925
4933
  function nn(e, t) {
@@ -4987,9 +4995,9 @@ function qf(e, t, n) {
4987
4995
  return e.attempt(Uf, d, d)(f);
4988
4996
  }
4989
4997
  function d(f) {
4990
- return se(f) ? ge(e, y, "whitespace")(f) : y(f);
4998
+ return se(f) ? ge(e, b, "whitespace")(f) : b(f);
4991
4999
  }
4992
- function y(f) {
5000
+ function b(f) {
4993
5001
  return f === null || K(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
4994
5002
  }
4995
5003
  }
@@ -5165,9 +5173,9 @@ function nd(e, t, n) {
5165
5173
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(m), d;
5166
5174
  }
5167
5175
  function d(m) {
5168
- return m === 33 ? (e.consume(m), y) : m === 47 ? (e.consume(m), a = !0, x) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? t : p) : it(m) ? (e.consume(m), o = String.fromCharCode(m), E) : n(m);
5176
+ return m === 33 ? (e.consume(m), b) : m === 47 ? (e.consume(m), a = !0, x) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? t : p) : it(m) ? (e.consume(m), o = String.fromCharCode(m), E) : n(m);
5169
5177
  }
5170
- function y(m) {
5178
+ function b(m) {
5171
5179
  return m === 45 ? (e.consume(m), i = 2, f) : m === 91 ? (e.consume(m), i = 5, l = 0, k) : it(m) ? (e.consume(m), i = 4, r.interrupt ? t : p) : n(m);
5172
5180
  }
5173
5181
  function f(m) {
@@ -5303,13 +5311,13 @@ function od(e, t, n) {
5303
5311
  return p === 45 ? (e.consume(p), f) : n(p);
5304
5312
  }
5305
5313
  function d(p) {
5306
- return p === null ? n(p) : p === 45 ? (e.consume(p), y) : K(p) ? (o = d, M(p)) : (e.consume(p), d);
5314
+ return p === null ? n(p) : p === 45 ? (e.consume(p), b) : K(p) ? (o = d, M(p)) : (e.consume(p), d);
5307
5315
  }
5308
- function y(p) {
5316
+ function b(p) {
5309
5317
  return p === 45 ? (e.consume(p), f) : d(p);
5310
5318
  }
5311
5319
  function f(p) {
5312
- return p === 62 ? P(p) : p === 45 ? y(p) : d(p);
5320
+ return p === 62 ? P(p) : p === 45 ? b(p) : d(p);
5313
5321
  }
5314
5322
  function k(p) {
5315
5323
  const G = "CDATA[";
@@ -5456,39 +5464,39 @@ function dd(e, t, n) {
5456
5464
  break;
5457
5465
  }
5458
5466
  return l;
5459
- function l(y) {
5460
- return a ? a._inactive ? d(y) : (o = r.parser.defined.includes(
5467
+ function l(b) {
5468
+ return a ? a._inactive ? d(b) : (o = r.parser.defined.includes(
5461
5469
  jt(
5462
5470
  r.sliceSerialize({
5463
5471
  start: a.end,
5464
5472
  end: r.now()
5465
5473
  })
5466
5474
  )
5467
- ), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(y), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(y);
5475
+ ), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(b), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(b);
5468
5476
  }
5469
- function u(y) {
5470
- return y === 40 ? e.attempt(
5477
+ function u(b) {
5478
+ return b === 40 ? e.attempt(
5471
5479
  ld,
5472
5480
  c,
5473
5481
  o ? c : d
5474
- )(y) : y === 91 ? e.attempt(
5482
+ )(b) : b === 91 ? e.attempt(
5475
5483
  sd,
5476
5484
  c,
5477
5485
  o ? s : d
5478
- )(y) : o ? c(y) : d(y);
5486
+ )(b) : o ? c(b) : d(b);
5479
5487
  }
5480
- function s(y) {
5488
+ function s(b) {
5481
5489
  return e.attempt(
5482
5490
  ud,
5483
5491
  c,
5484
5492
  d
5485
- )(y);
5493
+ )(b);
5486
5494
  }
5487
- function c(y) {
5488
- return t(y);
5495
+ function c(b) {
5496
+ return t(b);
5489
5497
  }
5490
- function d(y) {
5491
- return a._balanced = !0, n(y);
5498
+ function d(b) {
5499
+ return a._balanced = !0, n(b);
5492
5500
  }
5493
5501
  }
5494
5502
  function pd(e, t, n) {
@@ -5672,18 +5680,18 @@ function Sd(e, t, n) {
5672
5680
  r.interrupt ? n : c,
5673
5681
  e.attempt(
5674
5682
  Cd,
5675
- y,
5683
+ b,
5676
5684
  d
5677
5685
  )
5678
5686
  );
5679
5687
  }
5680
5688
  function c(f) {
5681
- return r.containerState.initialBlankLine = !0, a++, y(f);
5689
+ return r.containerState.initialBlankLine = !0, a++, b(f);
5682
5690
  }
5683
5691
  function d(f) {
5684
- return se(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), y) : n(f);
5692
+ return se(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), b) : n(f);
5685
5693
  }
5686
- function y(f) {
5694
+ function b(f) {
5687
5695
  return r.containerState.size = a + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(f);
5688
5696
  }
5689
5697
  }
@@ -5854,10 +5862,10 @@ function ll(e) {
5854
5862
  if (c === null)
5855
5863
  return !0;
5856
5864
  const d = i[c];
5857
- let y = -1;
5865
+ let b = -1;
5858
5866
  if (d)
5859
- for (; ++y < d.length; ) {
5860
- const f = d[y];
5867
+ for (; ++b < d.length; ) {
5868
+ const f = d[b];
5861
5869
  if (!f.previous || f.previous.call(r, r.previous))
5862
5870
  return !0;
5863
5871
  }
@@ -5947,7 +5955,7 @@ function Dd(e, t, n) {
5947
5955
  events: [],
5948
5956
  parser: e,
5949
5957
  sliceStream: f,
5950
- sliceSerialize: y,
5958
+ sliceSerialize: b,
5951
5959
  now: k,
5952
5960
  defineSkip: x,
5953
5961
  write: d
@@ -5957,7 +5965,7 @@ function Dd(e, t, n) {
5957
5965
  function d(I) {
5958
5966
  return o = Ue(o, I), E(), o[o.length - 1] !== null ? [] : (H(t, 0), s.events = mi(a, s.events, s), s.events);
5959
5967
  }
5960
- function y(I, S) {
5968
+ function b(I, S) {
5961
5969
  return Bd(f(I), S);
5962
5970
  }
5963
5971
  function f(I) {
@@ -6221,16 +6229,16 @@ function Kd() {
6221
6229
  return i;
6222
6230
  function i(a, o, l) {
6223
6231
  const u = [];
6224
- let s, c, d, y, f;
6232
+ let s, c, d, b, f;
6225
6233
  for (a = t + a.toString(o), d = 0, t = "", n && (a.charCodeAt(0) === 65279 && d++, n = void 0); d < a.length; ) {
6226
- if (Da.lastIndex = d, s = Da.exec(a), y = s && s.index !== void 0 ? s.index : a.length, f = a.charCodeAt(y), !s) {
6234
+ if (Da.lastIndex = d, s = Da.exec(a), b = s && s.index !== void 0 ? s.index : a.length, f = a.charCodeAt(b), !s) {
6227
6235
  t = a.slice(d);
6228
6236
  break;
6229
6237
  }
6230
- if (f === 10 && d === y && r)
6238
+ if (f === 10 && d === b && r)
6231
6239
  u.push(-3), r = void 0;
6232
6240
  else
6233
- switch (r && (u.push(-5), r = void 0), d < y && (u.push(a.slice(d, y)), e += y - d), f) {
6241
+ switch (r && (u.push(-5), r = void 0), d < b && (u.push(a.slice(d, b)), e += b - d), f) {
6234
6242
  case 0: {
6235
6243
  u.push(65533), e++;
6236
6244
  break;
@@ -6246,7 +6254,7 @@ function Kd() {
6246
6254
  default:
6247
6255
  r = !0, e = 1;
6248
6256
  }
6249
- d = y + 1;
6257
+ d = b + 1;
6250
6258
  }
6251
6259
  return l && (r && u.push(-5), t && u.push(t), u.push(null)), u;
6252
6260
  }
@@ -6414,7 +6422,7 @@ function rp(e) {
6414
6422
  enter: s,
6415
6423
  exit: d,
6416
6424
  buffer: u,
6417
- resume: y,
6425
+ resume: b,
6418
6426
  setData: a,
6419
6427
  getData: o
6420
6428
  }, oe = [];
@@ -6533,7 +6541,7 @@ function rp(e) {
6533
6541
  );
6534
6542
  return Y.position.end = ht(F.end), Y;
6535
6543
  }
6536
- function y() {
6544
+ function b() {
6537
6545
  return ef(this.stack.pop());
6538
6546
  }
6539
6547
  function f() {
@@ -7187,9 +7195,9 @@ function Tp(e, t, n) {
7187
7195
  let u = -1;
7188
7196
  const s = [];
7189
7197
  for (; ++u < l; ) {
7190
- const d = t.children[u], y = {}, f = o ? o[u] : void 0;
7191
- f && (y.align = f);
7192
- let k = { type: "element", tagName: a, properties: y, children: [] };
7198
+ const d = t.children[u], b = {}, f = o ? o[u] : void 0;
7199
+ f && (b.align = f);
7200
+ let k = { type: "element", tagName: a, properties: b, children: [] };
7193
7201
  d && (k.children = e.all(d), e.patch(d, k), k = e.applyData(t, k)), s.push(k);
7194
7202
  }
7195
7203
  const c = {
@@ -7363,7 +7371,7 @@ const Dp = !0, $a = !1, Rp = "skip", Bp = (
7363
7371
  function o(l, u, s) {
7364
7372
  const c = l && typeof l == "object" ? l : {};
7365
7373
  if (typeof c.type == "string") {
7366
- const y = (
7374
+ const b = (
7367
7375
  // `hast`
7368
7376
  typeof c.tagName == "string" ? c.tagName : (
7369
7377
  // `xast`
@@ -7371,21 +7379,21 @@ const Dp = !0, $a = !1, Rp = "skip", Bp = (
7371
7379
  )
7372
7380
  );
7373
7381
  Object.defineProperty(d, "name", {
7374
- value: "node (" + (l.type + (y ? "<" + y + ">" : "")) + ")"
7382
+ value: "node (" + (l.type + (b ? "<" + b + ">" : "")) + ")"
7375
7383
  });
7376
7384
  }
7377
7385
  return d;
7378
7386
  function d() {
7379
- let y = [], f, k, x;
7380
- if ((!t || i(l, u, s[s.length - 1] || null)) && (y = zp(n(l, s)), y[0] === $a))
7381
- return y;
7382
- if (l.children && y[0] !== Rp)
7387
+ let b = [], f, k, x;
7388
+ if ((!t || i(l, u, s[s.length - 1] || null)) && (b = zp(n(l, s)), b[0] === $a))
7389
+ return b;
7390
+ if (l.children && b[0] !== Rp)
7383
7391
  for (k = (r ? l.children.length : -1) + a, x = s.concat(l); k > -1 && k < l.children.length; ) {
7384
7392
  if (f = o(l.children[k], k, x)(), f[0] === $a)
7385
7393
  return f;
7386
7394
  k = typeof f[1] == "number" ? f[1] : k + a;
7387
7395
  }
7388
- return y;
7396
+ return b;
7389
7397
  }
7390
7398
  }
7391
7399
  }
@@ -7464,12 +7472,12 @@ function Up(e, t) {
7464
7472
  }
7465
7473
  return c;
7466
7474
  }
7467
- function o(s, c, d, y) {
7468
- return Array.isArray(d) && (y = d, d = {}), a(s, {
7475
+ function o(s, c, d, b) {
7476
+ return Array.isArray(d) && (b = d, d = {}), a(s, {
7469
7477
  type: "element",
7470
7478
  tagName: c,
7471
7479
  properties: d || {},
7472
- children: y || []
7480
+ children: b || []
7473
7481
  });
7474
7482
  }
7475
7483
  function l(s, c) {
@@ -8976,7 +8984,7 @@ var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh
8976
8984
  });
8977
8985
  }
8978
8986
  }
8979
- function y() {
8987
+ function b() {
8980
8988
  var k = a(), x = u(vh);
8981
8989
  if (x) {
8982
8990
  if (d(), !u(xh)) return l("property missing ':'");
@@ -8991,7 +8999,7 @@ var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh
8991
8999
  function f() {
8992
9000
  var k = [];
8993
9001
  c(k);
8994
- for (var x; x = y(); )
9002
+ for (var x; x = b(); )
8995
9003
  x !== !1 && (k.push(x), c(k));
8996
9004
  return k;
8997
9005
  }
@@ -9029,7 +9037,7 @@ function Fh(e, t, n, r) {
9029
9037
  (l === "ol" || l === "ul") && e.listDepth++;
9030
9038
  const d = Il(e, t);
9031
9039
  (l === "ol" || l === "ul") && e.listDepth--, e.schema = o;
9032
- const y = t.position || {
9040
+ const b = t.position || {
9033
9041
  start: { line: null, column: null, offset: null },
9034
9042
  end: { line: null, column: null, offset: null }
9035
9043
  }, f = i.components && ni.call(i.components, l) ? i.components[l] : l, k = typeof f == "string" || f === Je.Fragment;
@@ -9053,7 +9061,7 @@ function Fh(e, t, n, r) {
9053
9061
  const x = Nh(t);
9054
9062
  u.checked = x && x.properties ? !!x.properties.checked : null, u.index = jr(r, t), u.ordered = r.tagName === "ol";
9055
9063
  }
9056
- return !k && (l === "ol" || l === "ul") && (u.ordered = l === "ol", u.depth = e.listDepth), (l === "td" || l === "th") && (u.align && (u.style || (u.style = {}), u.style.textAlign = u.align, delete u.align), k || (u.isHeader = l === "th")), !k && l === "tr" && r.type === "element" && (u.isHeader = r.tagName === "thead"), i.sourcePos && (u["data-sourcepos"] = Dh(y)), !k && i.rawSourcePos && (u.sourcePosition = t.position), !k && i.includeElementIndex && (u.index = jr(r, t), u.siblingCount = jr(r)), k || (u.node = t), d.length > 0 ? Je.createElement(f, u, d) : Je.createElement(f, u);
9064
+ return !k && (l === "ol" || l === "ul") && (u.ordered = l === "ol", u.depth = e.listDepth), (l === "td" || l === "th") && (u.align && (u.style || (u.style = {}), u.style.textAlign = u.align, delete u.align), k || (u.isHeader = l === "th")), !k && l === "tr" && r.type === "element" && (u.isHeader = r.tagName === "thead"), i.sourcePos && (u["data-sourcepos"] = Dh(b)), !k && i.rawSourcePos && (u.sourcePosition = t.position), !k && i.includeElementIndex && (u.index = jr(r, t), u.siblingCount = jr(r)), k || (u.node = t), d.length > 0 ? Je.createElement(f, u, d) : Je.createElement(f, u);
9057
9065
  }
9058
9066
  function Nh(e) {
9059
9067
  let t = -1;
@@ -9215,12 +9223,12 @@ function An({ alignSelf: e, backgroundColor: t, margin: n, size: r }) {
9215
9223
  height: r,
9216
9224
  width: r
9217
9225
  };
9218
- return /* @__PURE__ */ b.jsx(
9226
+ return /* @__PURE__ */ y.jsx(
9219
9227
  "div",
9220
9228
  {
9221
9229
  className: "user-icon",
9222
9230
  style: { alignSelf: e, backgroundColor: t, margin: n, ...i },
9223
- children: /* @__PURE__ */ b.jsx(
9231
+ children: /* @__PURE__ */ y.jsx(
9224
9232
  "img",
9225
9233
  {
9226
9234
  alt: "user icon",
@@ -9248,7 +9256,7 @@ var Al = { exports: {} };
9248
9256
  (function(n, r) {
9249
9257
  e.exports = r();
9250
9258
  })(pe, function() {
9251
- var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", u = "hour", s = "day", c = "week", d = "month", y = "quarter", f = "year", k = "date", x = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|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, z = { 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(A) {
9259
+ var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", u = "hour", s = "day", c = "week", d = "month", b = "quarter", f = "year", k = "date", x = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|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, z = { 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(A) {
9252
9260
  var _ = ["th", "st", "nd", "rd"], P = A % 100;
9253
9261
  return "[" + A + (_[(P - 20) % 10] || _[P] || _[0]) + "]";
9254
9262
  } }, L = function(A, _, P) {
@@ -9264,7 +9272,7 @@ var Al = { exports: {} };
9264
9272
  }, a: function(A) {
9265
9273
  return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
9266
9274
  }, p: function(A) {
9267
- return { M: d, y: f, w: c, d: s, D: k, h: u, m: l, s: o, ms: a, Q: y }[A] || String(A || "").toLowerCase().replace(/s$/, "");
9275
+ return { M: d, y: f, w: c, d: s, D: k, h: u, m: l, s: o, ms: a, Q: b }[A] || String(A || "").toLowerCase().replace(/s$/, "");
9268
9276
  }, u: function(A) {
9269
9277
  return A === void 0;
9270
9278
  } }, j = "en", v = {};
@@ -9466,7 +9474,7 @@ var Al = { exports: {} };
9466
9474
  case d:
9467
9475
  $ = he();
9468
9476
  break;
9469
- case y:
9477
+ case b:
9470
9478
  $ = he() / 3;
9471
9479
  break;
9472
9480
  case c:
@@ -9547,7 +9555,7 @@ const Vh = "Sure, I can get you to someone who can help.", fn = ({
9547
9555
  submitEvent: l
9548
9556
  }) => {
9549
9557
  var z;
9550
- const { primaryColor: u, conversationScreen: s } = ne(Oe), { content: c, disableFeedback: d, liveAgent: y, role: f, timestamp: k } = n ?? {}, x = !y, E = y, C = {
9558
+ const { primaryColor: u, conversationScreen: s } = ne(Oe), { content: c, disableFeedback: d, liveAgent: b, role: f, timestamp: k } = n ?? {}, x = !b, E = b, C = {
9551
9559
  agent: {
9552
9560
  bubbleClassName: "xpert-chatbot-popup__bubble--assistant",
9553
9561
  bubbleStyle: {},
@@ -9576,20 +9584,20 @@ const Vh = "Sure, I can get you to someone who can help.", fn = ({
9576
9584
  sectionAriaLabel: "The user said"
9577
9585
  }
9578
9586
  };
9579
- return /* @__PURE__ */ b.jsxs(
9587
+ return /* @__PURE__ */ y.jsxs(
9580
9588
  "section",
9581
9589
  {
9582
9590
  "aria-label": C[f].sectionAriaLabel,
9583
9591
  className: "xpert-chatbot-popup__bubble--group",
9584
9592
  ref: r,
9585
9593
  children: [
9586
- /* @__PURE__ */ b.jsxs(
9594
+ /* @__PURE__ */ y.jsxs(
9587
9595
  "div",
9588
9596
  {
9589
9597
  className: "xpert-chatbot-popup__bubble--group-inner",
9590
9598
  style: C[f].innerStyle,
9591
9599
  children: [
9592
- f === "agent" && /* @__PURE__ */ b.jsx(
9600
+ f === "agent" && /* @__PURE__ */ y.jsx(
9593
9601
  An,
9594
9602
  {
9595
9603
  alignSelf: "flex-end",
@@ -9597,18 +9605,18 @@ const Vh = "Sure, I can get you to someone who can help.", fn = ({
9597
9605
  margin: "0px 10px 0rem 0px"
9598
9606
  }
9599
9607
  ),
9600
- /* @__PURE__ */ b.jsxs(
9608
+ /* @__PURE__ */ y.jsxs(
9601
9609
  "div",
9602
9610
  {
9603
9611
  "data-testid": "message-container",
9604
9612
  className: C[f].bubbleClassName,
9605
9613
  style: C[f].bubbleStyle,
9606
9614
  children: [
9607
- x && /* @__PURE__ */ b.jsx(
9615
+ x && /* @__PURE__ */ y.jsx(
9608
9616
  Ei,
9609
9617
  {
9610
9618
  components: {
9611
- a: (L) => /* @__PURE__ */ b.jsx(
9619
+ a: (L) => /* @__PURE__ */ y.jsx(
9612
9620
  "a",
9613
9621
  {
9614
9622
  ...L,
@@ -9625,9 +9633,9 @@ const Vh = "Sure, I can get you to someone who can help.", fn = ({
9625
9633
  children: c
9626
9634
  }
9627
9635
  ),
9628
- E && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
9629
- /* @__PURE__ */ b.jsx("div", { children: Vh }),
9630
- /* @__PURE__ */ b.jsx(
9636
+ E && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
9637
+ /* @__PURE__ */ y.jsx("div", { children: Vh }),
9638
+ /* @__PURE__ */ y.jsx(
9631
9639
  Xn,
9632
9640
  {
9633
9641
  submitEvent: l,
@@ -9643,7 +9651,7 @@ const Vh = "Sure, I can get you to someone who can help.", fn = ({
9643
9651
  ]
9644
9652
  }
9645
9653
  ),
9646
- f === "user" && /* @__PURE__ */ b.jsx(
9654
+ f === "user" && /* @__PURE__ */ y.jsx(
9647
9655
  An,
9648
9656
  {
9649
9657
  alignSelf: "flex-end",
@@ -9654,8 +9662,8 @@ const Vh = "Sure, I can get you to someone who can help.", fn = ({
9654
9662
  ]
9655
9663
  }
9656
9664
  ),
9657
- k && /* @__PURE__ */ b.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: Hh(k).format("hh:mm a") }),
9658
- !d && i && f === "assistant" ? /* @__PURE__ */ b.jsx(
9665
+ k && /* @__PURE__ */ y.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: Hh(k).format("hh:mm a") }),
9666
+ !d && i && f === "assistant" ? /* @__PURE__ */ y.jsx(
9659
9667
  Go,
9660
9668
  {
9661
9669
  id: e,
@@ -9691,16 +9699,16 @@ fn.defaultProps = {
9691
9699
  fn.displayName = "MessageBubble";
9692
9700
  function Ti({ message: e }) {
9693
9701
  const { content: t, icon: n, iconColor: r, role: i } = e;
9694
- return i !== "notification" ? null : /* @__PURE__ */ b.jsxs("div", { className: "notification-container", children: [
9695
- /* @__PURE__ */ b.jsx(
9702
+ return i !== "notification" ? null : /* @__PURE__ */ y.jsxs("div", { className: "notification-container", children: [
9703
+ /* @__PURE__ */ y.jsx(
9696
9704
  "div",
9697
9705
  {
9698
9706
  className: "notification-container__icon-container",
9699
9707
  style: { color: r },
9700
- children: /* @__PURE__ */ b.jsx(dt, { icon: `material-symbols:${n}`, alt: "Notification icon" })
9708
+ children: /* @__PURE__ */ y.jsx(dt, { icon: `material-symbols:${n}`, alt: "Notification icon" })
9701
9709
  }
9702
9710
  ),
9703
- /* @__PURE__ */ b.jsx("p", { children: t })
9711
+ /* @__PURE__ */ y.jsx("p", { children: t })
9704
9712
  ] });
9705
9713
  }
9706
9714
  Ti.propTypes = {
@@ -9719,7 +9727,7 @@ const Wh = () => {
9719
9727
  (t = e.current) == null || t.scrollIntoView({
9720
9728
  behavior: "instant"
9721
9729
  });
9722
- }, []), /* @__PURE__ */ b.jsxs(
9730
+ }, []), /* @__PURE__ */ y.jsxs(
9723
9731
  "div",
9724
9732
  {
9725
9733
  role: "alert",
@@ -9736,7 +9744,7 @@ const Wh = () => {
9736
9744
  "aria-describedby": "Oops! Something went wrong. Try again later.",
9737
9745
  ref: e,
9738
9746
  children: [
9739
- /* @__PURE__ */ b.jsx(
9747
+ /* @__PURE__ */ y.jsx(
9740
9748
  dt,
9741
9749
  {
9742
9750
  icon: "material-symbols:thunderstorm",
@@ -9750,7 +9758,7 @@ const Wh = () => {
9750
9758
  }
9751
9759
  }
9752
9760
  ),
9753
- /* @__PURE__ */ b.jsxs(
9761
+ /* @__PURE__ */ y.jsxs(
9754
9762
  "div",
9755
9763
  {
9756
9764
  style: {
@@ -9761,14 +9769,14 @@ const Wh = () => {
9761
9769
  textAlign: "center"
9762
9770
  },
9763
9771
  children: [
9764
- /* @__PURE__ */ b.jsx(
9772
+ /* @__PURE__ */ y.jsx(
9765
9773
  "span",
9766
9774
  {
9767
9775
  style: { margin: "1.5rem 0", fontWeight: "bold", fontSize: "18px" },
9768
9776
  children: "Oops! Something went wrong"
9769
9777
  }
9770
9778
  ),
9771
- /* @__PURE__ */ b.jsx("span", { style: { marginBottom: "1.5rem", color: "red" }, children: "Please try again later." })
9779
+ /* @__PURE__ */ y.jsx("span", { style: { marginBottom: "1.5rem", color: "red" }, children: "Please try again later." })
9772
9780
  ]
9773
9781
  }
9774
9782
  )
@@ -9784,7 +9792,7 @@ function Fl({ disableScroll: e }) {
9784
9792
  behavior: "smooth",
9785
9793
  block: "end"
9786
9794
  });
9787
- }, [e]), /* @__PURE__ */ b.jsx(
9795
+ }, [e]), /* @__PURE__ */ y.jsx(
9788
9796
  "div",
9789
9797
  {
9790
9798
  "aria-label": "Loading messages",
@@ -9792,10 +9800,10 @@ function Fl({ disableScroll: e }) {
9792
9800
  ref: t,
9793
9801
  role: "alert",
9794
9802
  className: "xpert_chatbot__loader__wrapper",
9795
- children: /* @__PURE__ */ b.jsxs("div", { className: "xpert_chatbot__loader__ellipsis", children: [
9796
- /* @__PURE__ */ b.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--first" }),
9797
- /* @__PURE__ */ b.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--second" }),
9798
- /* @__PURE__ */ b.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--third" })
9803
+ children: /* @__PURE__ */ y.jsxs("div", { className: "xpert_chatbot__loader__ellipsis", children: [
9804
+ /* @__PURE__ */ y.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--first" }),
9805
+ /* @__PURE__ */ y.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--second" }),
9806
+ /* @__PURE__ */ y.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--third" })
9799
9807
  ] })
9800
9808
  }
9801
9809
  );
@@ -9819,8 +9827,8 @@ const dn = ({
9819
9827
  behavior: "instant",
9820
9828
  block: "start"
9821
9829
  });
9822
- }, [n.length]), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
9823
- /* @__PURE__ */ b.jsx(
9830
+ }, [n.length]), /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
9831
+ /* @__PURE__ */ y.jsx(
9824
9832
  "section",
9825
9833
  {
9826
9834
  id: "chat-content",
@@ -9831,8 +9839,8 @@ const dn = ({
9831
9839
  "aria-busy": t,
9832
9840
  style: { display: "flex", flexDirection: "column" },
9833
9841
  children: n.map((c, d) => {
9834
- const { role: y } = c, f = `${y}-${d}`;
9835
- return y === "notification" ? /* @__PURE__ */ b.jsx(Ti, { message: c }, f) : ["agent", "assistant", "info", "user"].includes(y) ? /* @__PURE__ */ b.jsx(
9842
+ const { role: b } = c, f = `${b}-${d}`;
9843
+ return b === "notification" ? /* @__PURE__ */ y.jsx(Ti, { message: c }, f) : ["agent", "assistant", "info", "user"].includes(b) ? /* @__PURE__ */ y.jsx(
9836
9844
  fn,
9837
9845
  {
9838
9846
  index: d,
@@ -9849,8 +9857,8 @@ const dn = ({
9849
9857
  })
9850
9858
  }
9851
9859
  ),
9852
- t && /* @__PURE__ */ b.jsx(Fl, { disableScroll: l }),
9853
- u && /* @__PURE__ */ b.jsx(Wh, {})
9860
+ t && /* @__PURE__ */ y.jsx(Fl, { disableScroll: l }),
9861
+ u && /* @__PURE__ */ y.jsx(Wh, {})
9854
9862
  ] });
9855
9863
  };
9856
9864
  dn.propTypes = {
@@ -9894,7 +9902,7 @@ const Nl = () => {
9894
9902
  const l = () => {
9895
9903
  Ne.set(n, "1", { expires: 1 }), i(!1);
9896
9904
  };
9897
- return /* @__PURE__ */ b.jsxs(
9905
+ return /* @__PURE__ */ y.jsxs(
9898
9906
  "div",
9899
9907
  {
9900
9908
  role: "alert",
@@ -9902,8 +9910,8 @@ const Nl = () => {
9902
9910
  className: "xpert-chatbot-popup__chatbot-maintenance-banner",
9903
9911
  "data-testid": "maintenance-banner",
9904
9912
  children: [
9905
- /* @__PURE__ */ b.jsxs("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__header", children: [
9906
- /* @__PURE__ */ b.jsx(
9913
+ /* @__PURE__ */ y.jsxs("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__header", children: [
9914
+ /* @__PURE__ */ y.jsx(
9907
9915
  dt,
9908
9916
  {
9909
9917
  icon: "material-symbols:warning",
@@ -9911,14 +9919,14 @@ const Nl = () => {
9911
9919
  color: "#eed202"
9912
9920
  }
9913
9921
  ),
9914
- /* @__PURE__ */ b.jsx("strong", { children: e.maintenanceBanner.header }),
9915
- /* @__PURE__ */ b.jsx(
9922
+ /* @__PURE__ */ y.jsx("strong", { children: e.maintenanceBanner.header }),
9923
+ /* @__PURE__ */ y.jsx(
9916
9924
  "button",
9917
9925
  {
9918
9926
  className: "xpert-chatbot-popup__chatbot-maintenance-banner__close-btn",
9919
9927
  "aria-label": "Close maintenance banner",
9920
9928
  onClick: l,
9921
- children: /* @__PURE__ */ b.jsx(
9929
+ children: /* @__PURE__ */ y.jsx(
9922
9930
  dt,
9923
9931
  {
9924
9932
  icon: "material-symbols:close",
@@ -9929,7 +9937,7 @@ const Nl = () => {
9929
9937
  }
9930
9938
  )
9931
9939
  ] }),
9932
- /* @__PURE__ */ b.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__body", children: /* @__PURE__ */ b.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__text", children: /* @__PURE__ */ b.jsx(Ei, { linkTarget: "_blank", children: e.maintenanceBanner.text }) }) })
9940
+ /* @__PURE__ */ y.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__body", children: /* @__PURE__ */ y.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__text", children: /* @__PURE__ */ y.jsx(Ei, { linkTarget: "_blank", children: e.maintenanceBanner.text }) }) })
9933
9941
  ]
9934
9942
  }
9935
9943
  );
@@ -9938,11 +9946,11 @@ Nl.displayName = "MaintenanceBanner";
9938
9946
  const Oi = ({ loading: e, onPromptClick: t }) => {
9939
9947
  var i;
9940
9948
  const { primaryColor: n, conversationScreen: r } = ne(Oe);
9941
- return /* @__PURE__ */ b.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
9942
- /* @__PURE__ */ b.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
9949
+ return /* @__PURE__ */ y.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
9950
+ /* @__PURE__ */ y.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
9943
9951
  (i = r.prompts) == null ? void 0 : i.map((a) => {
9944
9952
  var o;
9945
- return /* @__PURE__ */ b.jsx(
9953
+ return /* @__PURE__ */ y.jsx(
9946
9954
  "button",
9947
9955
  {
9948
9956
  className: "xpert-chatbot-popup__bubble--prompt",
@@ -9977,11 +9985,11 @@ function Pi({
9977
9985
  submitEvent: l,
9978
9986
  userInput: u
9979
9987
  }) {
9980
- const { conversationScreen: s } = ne(Oe), { prompts: c, systemMessage: d } = s, { xpertMessages: y } = ne(Un), { loading: f, setMode: k } = ne(Le), x = (E) => {
9988
+ const { conversationScreen: s } = ne(Oe), { prompts: c, systemMessage: d } = s, { xpertMessages: b } = ne(Un), { loading: f, setMode: k } = ne(Le), x = (E) => {
9981
9989
  s.liveChat.useOwnChat ? k(St.LIVECHAT) : o(E);
9982
9990
  };
9983
- return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
9984
- /* @__PURE__ */ b.jsxs(
9991
+ return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
9992
+ /* @__PURE__ */ y.jsxs(
9985
9993
  "div",
9986
9994
  {
9987
9995
  style: {
@@ -9991,9 +9999,9 @@ function Pi({
9991
9999
  position: "relative"
9992
10000
  },
9993
10001
  children: [
9994
- /* @__PURE__ */ b.jsx(Po, {}),
9995
- (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ b.jsx(Oi, { loading: f, onPromptClick: r }),
9996
- d && /* @__PURE__ */ b.jsx(
10002
+ /* @__PURE__ */ y.jsx(Po, {}),
10003
+ (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ y.jsx(Oi, { loading: f, onPromptClick: r }),
10004
+ d && /* @__PURE__ */ y.jsx(
9997
10005
  fn,
9998
10006
  {
9999
10007
  message: {
@@ -10002,11 +10010,11 @@ function Pi({
10002
10010
  }
10003
10011
  }
10004
10012
  ),
10005
- /* @__PURE__ */ b.jsx(
10013
+ /* @__PURE__ */ y.jsx(
10006
10014
  dn,
10007
10015
  {
10008
10016
  isTestUser: a,
10009
- messages: y,
10017
+ messages: b,
10010
10018
  loading: f,
10011
10019
  setLiveChatOpen: o,
10012
10020
  submitEvent: l,
@@ -10017,8 +10025,8 @@ function Pi({
10017
10025
  ]
10018
10026
  }
10019
10027
  ),
10020
- /* @__PURE__ */ b.jsx(Nl, {}),
10021
- /* @__PURE__ */ b.jsxs(
10028
+ /* @__PURE__ */ y.jsx(Nl, {}),
10029
+ /* @__PURE__ */ y.jsxs(
10022
10030
  "div",
10023
10031
  {
10024
10032
  style: {
@@ -10028,7 +10036,7 @@ function Pi({
10028
10036
  width: "100%"
10029
10037
  },
10030
10038
  children: [
10031
- s.liveChat.enabled && /* @__PURE__ */ b.jsx(
10039
+ s.liveChat.enabled && /* @__PURE__ */ y.jsx(
10032
10040
  Xn,
10033
10041
  {
10034
10042
  buttonClassName: "xpert-chatbot-popup__live-chat--btn-outline",
@@ -10038,7 +10046,7 @@ function Pi({
10038
10046
  submitEvent: l
10039
10047
  }
10040
10048
  ),
10041
- /* @__PURE__ */ b.jsx("div", { style: { display: "flex", flex: 1, padding: "1.5rem" }, children: /* @__PURE__ */ b.jsx(
10049
+ /* @__PURE__ */ y.jsx("div", { style: { display: "flex", flex: 1, padding: "1.5rem" }, children: /* @__PURE__ */ y.jsx(
10042
10050
  Gn,
10043
10051
  {
10044
10052
  disabled: f,
@@ -10538,7 +10546,7 @@ $t.useWebSocket = function(e, t, n) {
10538
10546
  return ct.UNPARSABLE_JSON_OBJECT;
10539
10547
  }
10540
10548
  return null;
10541
- }, [i]), c = Pe.useRef(null), d = Pe.useRef(null), y = Pe.useRef(function() {
10549
+ }, [i]), c = Pe.useRef(null), d = Pe.useRef(null), b = Pe.useRef(function() {
10542
10550
  }), f = Pe.useRef(0), k = Pe.useRef([]), x = Pe.useRef(null), E = Pe.useRef(t);
10543
10551
  E.current = t;
10544
10552
  var C = c.current && l[c.current] !== void 0 ? l[c.current] : e !== null && n === !0 ? ct.ReadyState.CONNECTING : ct.ReadyState.UNINSTANTIATED, z = t.queryParams ? JSON.stringify(t.queryParams) : null, L = Pe.useCallback(function(v, D) {
@@ -10551,7 +10559,7 @@ $t.useWebSocket = function(e, t, n) {
10551
10559
  }, []), U = Pe.useCallback(function(v, D) {
10552
10560
  D === void 0 && (D = !0), L(JSON.stringify(v), D);
10553
10561
  }, [L]), j = Pe.useCallback(function() {
10554
- return E.current.share !== !0 || ct.isEventSourceSupported && d.current instanceof EventSource ? d.current : (x.current === null && d.current && (eo.assertIsWebSocket(d.current), x.current = v0.default(d.current, y)), x.current);
10562
+ return E.current.share !== !0 || ct.isEventSourceSupported && d.current instanceof EventSource ? d.current : (x.current === null && d.current && (eo.assertIsWebSocket(d.current), x.current = v0.default(d.current, b)), x.current);
10555
10563
  }, []);
10556
10564
  return Pe.useEffect(function() {
10557
10565
  if (e !== null && n === !0) {
@@ -10570,7 +10578,7 @@ $t.useWebSocket = function(e, t, n) {
10570
10578
  var _;
10571
10579
  return Lt(Lt({}, A), c.current && (_ = {}, _[c.current] = O, _));
10572
10580
  });
10573
- }, v = y0.createOrJoinSocket(d, c.current, I, E, V, y, f, L), [
10581
+ }, v = y0.createOrJoinSocket(d, c.current, I, E, V, b, f, L), [
10574
10582
  2
10575
10583
  /*return*/
10576
10584
  ];
@@ -10578,7 +10586,7 @@ $t.useWebSocket = function(e, t, n) {
10578
10586
  });
10579
10587
  });
10580
10588
  };
10581
- return y.current = function() {
10589
+ return b.current = function() {
10582
10590
  D || (x.current && (x.current = null), v == null || v(), H());
10583
10591
  }, H(), function() {
10584
10592
  D = !0, x.current && (x.current = null), v == null || v(), a(null);
@@ -10669,8 +10677,8 @@ hr.useEventSource = function(e, t, n) {
10669
10677
  i && (l.current = i);
10670
10678
  var u = S0.useWebSocket(e, o, n), s = u.lastMessage, c = u.readyState, d = u.getWebSocket;
10671
10679
  return no.useEffect(function() {
10672
- s != null && s.type && Object.entries(l.current).forEach(function(y) {
10673
- var f = y[0], k = y[1];
10680
+ s != null && s.type && Object.entries(l.current).forEach(function(b) {
10681
+ var f = b[0], k = b[1];
10674
10682
  f === s.type && k(s);
10675
10683
  });
10676
10684
  }, [s]), {
@@ -10722,7 +10730,7 @@ const T0 = "This conversation with a live agent has ended. Please note that a tr
10722
10730
  CONVERSATION: "CONVERSATION",
10723
10731
  FORM: "FORM"
10724
10732
  }, Ot = $n({}), jl = ({ children: e }) => {
10725
- const { conversationScreen: t } = ne(Oe), { pushXpertMessage: n } = ne(Un), { setHasError: r, setMode: i } = ne(Le), [a, o] = te(""), [l, u] = te(!1), [, s] = te(""), [c, d] = te([]), [y, f] = te(null), [k, x] = te(ft.FORM), [E, C] = te(null), z = (M) => d((N) => [...N, M]), L = async (M) => {
10733
+ const { conversationScreen: t } = ne(Oe), { pushXpertMessage: n } = ne(Un), { setHasError: r, setMode: i } = ne(Le), [a, o] = te(""), [l, u] = te(!1), [, s] = te(""), [c, d] = te([]), [b, f] = te(null), [k, x] = te(ft.FORM), [E, C] = te(null), z = (M) => d((N) => [...N, M]), L = async (M) => {
10726
10734
  const N = await E0(M.data), { conversation_id: $, event_type: p, body: G } = N;
10727
10735
  switch (p) {
10728
10736
  case "AGENT_TYPING":
@@ -10748,7 +10756,7 @@ const T0 = "This conversation with a live agent has ended. Please note that a tr
10748
10756
  default:
10749
10757
  return;
10750
10758
  }
10751
- }, { sendJsonMessage: U } = _0(y, {
10759
+ }, { sendJsonMessage: U } = _0(b, {
10752
10760
  onMessage: L
10753
10761
  }), j = () => {
10754
10762
  x(ft.FORM);
@@ -10772,7 +10780,7 @@ const T0 = "This conversation with a live agent has ended. Please note that a tr
10772
10780
  C(M);
10773
10781
  }, V = (M) => {
10774
10782
  const { displayName: N } = M;
10775
- o(N ?? "An agent"), x(ft.CONVERSATION);
10783
+ d([]), o(N ?? "An agent"), x(ft.CONVERSATION);
10776
10784
  }, I = (M) => {
10777
10785
  const { messageId: N, text: $, timestamp: p } = M;
10778
10786
  z({
@@ -10838,7 +10846,7 @@ const T0 = "This conversation with a live agent has ended. Please note that a tr
10838
10846
  },
10839
10847
  terminateConversation: v
10840
10848
  };
10841
- return /* @__PURE__ */ b.jsx(Ot.Provider, { value: P, children: e });
10849
+ return /* @__PURE__ */ y.jsx(Ot.Provider, { value: P, children: e });
10842
10850
  };
10843
10851
  jl.propTypes = {
10844
10852
  children: g.element.isRequired
@@ -10846,7 +10854,7 @@ jl.propTypes = {
10846
10854
  const O0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", P0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
10847
10855
  function Dl({ handleResizeButtonClick: e, setIsMounted: t }) {
10848
10856
  const { isMobile: n, isNormalSize: r } = ne(Le);
10849
- return n ? null : r ? /* @__PURE__ */ b.jsx(
10857
+ return n ? null : r ? /* @__PURE__ */ y.jsx(
10850
10858
  "button",
10851
10859
  {
10852
10860
  onClick: () => {
@@ -10861,7 +10869,7 @@ function Dl({ handleResizeButtonClick: e, setIsMounted: t }) {
10861
10869
  },
10862
10870
  className: "xpert-chatbot-popup__header--btn-outline",
10863
10871
  "aria-expanded": !r,
10864
- children: /* @__PURE__ */ b.jsx(
10872
+ children: /* @__PURE__ */ y.jsx(
10865
10873
  "img",
10866
10874
  {
10867
10875
  "aria-hidden": !0,
@@ -10872,7 +10880,7 @@ function Dl({ handleResizeButtonClick: e, setIsMounted: t }) {
10872
10880
  }
10873
10881
  )
10874
10882
  }
10875
- ) : /* @__PURE__ */ b.jsx(
10883
+ ) : /* @__PURE__ */ y.jsx(
10876
10884
  "button",
10877
10885
  {
10878
10886
  onClick: () => {
@@ -10886,7 +10894,7 @@ function Dl({ handleResizeButtonClick: e, setIsMounted: t }) {
10886
10894
  cursor: "pointer"
10887
10895
  },
10888
10896
  "aria-expanded": !r,
10889
- children: /* @__PURE__ */ b.jsx(
10897
+ children: /* @__PURE__ */ y.jsx(
10890
10898
  "img",
10891
10899
  {
10892
10900
  "aria-hidden": !0,
@@ -10909,8 +10917,8 @@ function Rl({
10909
10917
  onClose: n,
10910
10918
  isMounted: r
10911
10919
  }) {
10912
- return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
10913
- /* @__PURE__ */ b.jsx(
10920
+ return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
10921
+ /* @__PURE__ */ y.jsx(
10914
10922
  "div",
10915
10923
  {
10916
10924
  style: {
@@ -10921,7 +10929,7 @@ function Rl({
10921
10929
  paddingTop: "1.25rem",
10922
10930
  paddingBottom: "1.25rem"
10923
10931
  },
10924
- children: /* @__PURE__ */ b.jsx(
10932
+ children: /* @__PURE__ */ y.jsx(
10925
10933
  Dl,
10926
10934
  {
10927
10935
  isMounted: r,
@@ -10931,7 +10939,7 @@ function Rl({
10931
10939
  )
10932
10940
  }
10933
10941
  ),
10934
- /* @__PURE__ */ b.jsx(
10942
+ /* @__PURE__ */ y.jsx(
10935
10943
  "button",
10936
10944
  {
10937
10945
  style: {
@@ -10946,7 +10954,7 @@ function Rl({
10946
10954
  onClick: n,
10947
10955
  "aria-label": "Close Xpert dialog",
10948
10956
  type: "button",
10949
- children: /* @__PURE__ */ b.jsx(
10957
+ children: /* @__PURE__ */ y.jsx(
10950
10958
  dt,
10951
10959
  {
10952
10960
  icon: "material-symbols:close",
@@ -10964,7 +10972,7 @@ Rl.propTypes = {
10964
10972
  onClose: g.func.isRequired,
10965
10973
  isMounted: g.bool.isRequired
10966
10974
  };
10967
- const Ii = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ b.jsxs(
10975
+ const Ii = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ y.jsxs(
10968
10976
  "svg",
10969
10977
  {
10970
10978
  role: "banner",
@@ -10974,8 +10982,8 @@ const Ii = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ b.jsxs(
10974
10982
  fill: "#none",
10975
10983
  xmlns: "http://www.w3.org/2000/svg",
10976
10984
  children: [
10977
- /* @__PURE__ */ b.jsx("path", { d: "M0 5 L0 20 L70 20 L70 5 Z", fill: t }),
10978
- /* @__PURE__ */ b.jsx(
10985
+ /* @__PURE__ */ y.jsx("path", { d: "M0 5 L0 20 L70 20 L70 5 Z", fill: t }),
10986
+ /* @__PURE__ */ y.jsx(
10979
10987
  "path",
10980
10988
  {
10981
10989
  fill: e,
@@ -10984,7 +10992,7 @@ const Ii = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ b.jsxs(
10984
10992
  d: "M77 0H0V22H71.5L77 0ZM24.5938 10.2472L23.3324 7.27273H21.2997L23.2642 11.6364L19.7997 16H21.9517L24.2358 13.0213H24.304L25.5994 16H27.6832L25.6932 11.6364L29.0724 7.27273H26.929L24.6619 10.2472H24.5938ZM33.6832 7.27273H30.2401L28.7912 16H30.6364L31.1091 13.1705H32.6562C33.3295 13.1705 33.9233 13.0469 34.4375 12.7997C34.9517 12.5526 35.3693 12.2088 35.6903 11.7685C36.0142 11.3253 36.2244 10.8125 36.321 10.2301C36.4148 9.65057 36.375 9.1392 36.2017 8.69602C36.0312 8.25 35.733 7.90199 35.3068 7.65199C34.8835 7.39915 34.3423 7.27273 33.6832 7.27273ZM31.3561 11.6918H32.6009C32.9588 11.6918 33.2642 11.6307 33.517 11.5085C33.7727 11.3835 33.9759 11.2116 34.1264 10.9929C34.277 10.7713 34.375 10.517 34.4205 10.2301C34.4688 9.9375 34.4531 9.68324 34.3736 9.46733C34.294 9.25142 34.1477 9.08381 33.9347 8.96449C33.7244 8.84233 33.4418 8.78125 33.0866 8.78125H31.8423L31.3561 11.6918ZM43.8903 7.27273H38.0096L36.5607 16H42.4585L42.7141 14.4787H38.6616L39.0025 12.3949H42.7354L42.9911 10.8736H39.2582L39.5991 8.79403H43.6346L43.8903 7.27273ZM48.8004 7.27273H45.3572L43.9084 16H45.7536L46.2704 12.9062H47.6117L48.7536 16H50.7905L49.4991 12.6097C49.5278 12.5981 49.5563 12.5862 49.5845 12.5739C50.0959 12.3494 50.5107 12.0298 50.8288 11.6151C51.1499 11.2003 51.3587 10.7031 51.4553 10.1236C51.549 9.54403 51.5078 9.04119 51.3317 8.61506C51.1584 8.18608 50.8572 7.85511 50.4283 7.62216C50.0021 7.3892 49.4595 7.27273 48.8004 7.27273ZM46.5181 11.4233H47.7692C48.1214 11.4233 48.4226 11.375 48.6726 11.2784C48.9226 11.1818 49.12 11.0369 49.2649 10.8438C49.4126 10.6506 49.5092 10.4105 49.5547 10.1236C49.603 9.83097 49.5859 9.58665 49.5036 9.39062C49.4212 9.19176 49.272 9.04119 49.0561 8.93892C48.8402 8.83381 48.5561 8.78125 48.2038 8.78125H46.9595L46.5181 11.4233ZM52.9702 7.27273L52.7145 8.79403H55.3864L54.1932 16H56.017L57.2102 8.79403H59.8821L60.1378 7.27273H52.9702Z"
10985
10993
  }
10986
10994
  ),
10987
- /* @__PURE__ */ b.jsx("path", {})
10995
+ /* @__PURE__ */ y.jsx("path", {})
10988
10996
  ]
10989
10997
  }
10990
10998
  );
@@ -11002,9 +11010,9 @@ function Bl({
11002
11010
  setIsMounted: n,
11003
11011
  onClose: r
11004
11012
  }) {
11005
- var s, c, d, y, f, k, x, E, C;
11013
+ var s, c, d, b, f, k, x, E, C;
11006
11014
  const { primaryColor: i, conversationScreen: a } = ne(Oe), { isMobile: o, mode: l } = ne(Le), { step: u } = ne(Ot);
11007
- return u === ft.CONNECTING && l === St.LIVECHAT ? null : /* @__PURE__ */ b.jsxs(
11015
+ return u === ft.CONNECTING && l === St.LIVECHAT ? null : /* @__PURE__ */ y.jsxs(
11008
11016
  "div",
11009
11017
  {
11010
11018
  "data-testid": "xpert-conversations-header",
@@ -11016,7 +11024,7 @@ function Bl({
11016
11024
  ...(s = a.header.container) == null ? void 0 : s.style
11017
11025
  },
11018
11026
  children: [
11019
- /* @__PURE__ */ b.jsx(
11027
+ /* @__PURE__ */ y.jsx(
11020
11028
  "span",
11021
11029
  {
11022
11030
  className: "xpert-chatbot-popup__header_container",
@@ -11026,7 +11034,7 @@ function Bl({
11026
11034
  }
11027
11035
  }
11028
11036
  ),
11029
- ((f = (y = a == null ? void 0 : a.header) == null ? void 0 : y.logo) == null ? void 0 : f.type) === "edx" ? /* @__PURE__ */ b.jsx(
11037
+ ((f = (b = a == null ? void 0 : a.header) == null ? void 0 : b.logo) == null ? void 0 : f.type) === "edx" ? /* @__PURE__ */ y.jsx(
11030
11038
  "img",
11031
11039
  {
11032
11040
  "data-ot-ignore": "",
@@ -11036,14 +11044,14 @@ function Bl({
11036
11044
  "aria-hidden": !0,
11037
11045
  style: a.header.logo.style
11038
11046
  }
11039
- ) : /* @__PURE__ */ b.jsx(
11047
+ ) : /* @__PURE__ */ y.jsx(
11040
11048
  Ii,
11041
11049
  {
11042
11050
  backgroundColor: (k = a.header.logo.style) == null ? void 0 : k.backgroundColor,
11043
11051
  textColor: ((x = a.header.logo.style) == null ? void 0 : x.color) || "#FFFFFF"
11044
11052
  }
11045
11053
  ),
11046
- /* @__PURE__ */ b.jsx(
11054
+ /* @__PURE__ */ y.jsx(
11047
11055
  Rl,
11048
11056
  {
11049
11057
  handleResizeButtonClick: e,
@@ -11052,7 +11060,7 @@ function Bl({
11052
11060
  onClose: r
11053
11061
  }
11054
11062
  ),
11055
- /* @__PURE__ */ b.jsx(
11063
+ /* @__PURE__ */ y.jsx(
11056
11064
  "span",
11057
11065
  {
11058
11066
  className: "xpert-chatbot-popup__header_container",
@@ -11109,8 +11117,8 @@ var zl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11109
11117
  var c = Et.call(o, Dn);
11110
11118
  c && r.filter(o) && (n || !t.includes(o)) && i.push(o);
11111
11119
  var d = o.shadowRoot || // check for an undisclosed shadow
11112
- typeof r.getShadowRoot == "function" && r.getShadowRoot(o), y = !Bn(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
11113
- if (d && y) {
11120
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(o), b = !Bn(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
11121
+ if (d && b) {
11114
11122
  var f = e(d === !0 ? o.children : d.children, !0, r);
11115
11123
  r.flatten ? i.push.apply(i, f) : i.push({
11116
11124
  scopeParent: o,
@@ -11445,7 +11453,7 @@ var lo = {
11445
11453
  if (!S)
11446
11454
  throw new Error("Your focus-trap needs to have at least one focusable element");
11447
11455
  return S;
11448
- }, y = function() {
11456
+ }, b = function() {
11449
11457
  if (o.containerGroups = o.containers.map(function(S) {
11450
11458
  var O = Wl(S, a.tabbableOptions), A = Gl(S, a.tabbableOptions), _ = O.length > 0 ? O[0] : void 0, P = O.length > 0 ? O[O.length - 1] : void 0, M = A.find(function(p) {
11451
11459
  return wt(p);
@@ -11519,7 +11527,7 @@ var lo = {
11519
11527
  return O || (O === !1 ? !1 : S);
11520
11528
  }, E = function(S) {
11521
11529
  var O = S.target, A = S.event, _ = S.isBackward, P = _ === void 0 ? !1 : _;
11522
- O = O || wn(A), y();
11530
+ O = O || wn(A), b();
11523
11531
  var M = null;
11524
11532
  if (o.tabbableGroups.length > 0) {
11525
11533
  var N = s(O, A), $ = N >= 0 ? o.containerGroups[N] : void 0;
@@ -11660,9 +11668,9 @@ var lo = {
11660
11668
  if (o.active)
11661
11669
  return this;
11662
11670
  var O = u(S, "onActivate"), A = u(S, "onPostActivate"), _ = u(S, "checkCanFocusTrap");
11663
- _ || y(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, O == null || O();
11671
+ _ || b(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, O == null || O();
11664
11672
  var P = function() {
11665
- _ && y(), v(), V(), A == null || A();
11673
+ _ && b(), v(), V(), A == null || A();
11666
11674
  };
11667
11675
  return _ ? (_(o.containers.concat()).then(P, P), this) : (P(), this);
11668
11676
  },
@@ -11694,13 +11702,13 @@ var lo = {
11694
11702
  if (!o.paused || !o.active)
11695
11703
  return this;
11696
11704
  var O = u(S, "onUnpause"), A = u(S, "onPostUnpause");
11697
- return o.paused = !1, O == null || O(), y(), v(), V(), A == null || A(), this;
11705
+ return o.paused = !1, O == null || O(), b(), v(), V(), A == null || A(), this;
11698
11706
  },
11699
11707
  updateContainerElements: function(S) {
11700
11708
  var O = [].concat(S).filter(Boolean);
11701
11709
  return o.containers = O.map(function(A) {
11702
11710
  return typeof A == "string" ? r.querySelector(A) : A;
11703
- }), o.active && y(), V(), this;
11711
+ }), o.active && b(), V(), this;
11704
11712
  }
11705
11713
  }, l.updateContainerElements(t), l;
11706
11714
  };
@@ -11803,8 +11811,8 @@ var Cn = Je, X = wo, pm = nm, hm = pm.createFocusTrap, mm = rm, gm = mm.isFocusa
11803
11811
  im(this, n), i = t.call(this, r), fm(Jt(i), "getNodeForOption", function(l) {
11804
11812
  var u, s = (u = this.internalOptions[l]) !== null && u !== void 0 ? u : this.originalOptions[l];
11805
11813
  if (typeof s == "function") {
11806
- for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), y = 1; y < c; y++)
11807
- d[y - 1] = arguments[y];
11814
+ for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), b = 1; b < c; b++)
11815
+ d[b - 1] = arguments[b];
11808
11816
  s = s.apply(void 0, d);
11809
11817
  }
11810
11818
  if (s === !0 && (s = void 0), !s) {
@@ -12041,7 +12049,7 @@ var ym = Ai;
12041
12049
  const bm = /* @__PURE__ */ st(ym);
12042
12050
  function Fi({ style: e, className: t, children: n, isMounted: r }) {
12043
12051
  const { isMobile: i, isNormalSize: a } = ne(Le), o = qe(null);
12044
- return /* @__PURE__ */ b.jsx(
12052
+ return /* @__PURE__ */ y.jsx(
12045
12053
  bm,
12046
12054
  {
12047
12055
  focusTrapOptions: {
@@ -12050,7 +12058,7 @@ function Fi({ style: e, className: t, children: n, isMounted: r }) {
12050
12058
  displayCheck: void 0
12051
12059
  }
12052
12060
  },
12053
- children: /* @__PURE__ */ b.jsx(
12061
+ children: /* @__PURE__ */ y.jsx(
12054
12062
  "div",
12055
12063
  {
12056
12064
  ref: o,
@@ -12087,7 +12095,7 @@ Fi.defaultProps = {
12087
12095
  const vm = () => {
12088
12096
  var n;
12089
12097
  const { isMobile: e } = ne(Le), { launchButton: t } = ne(Oe);
12090
- return (n = t.message) != null && n.enabled ? /* @__PURE__ */ b.jsx(
12098
+ return (n = t.message) != null && n.enabled ? /* @__PURE__ */ y.jsx(
12091
12099
  "div",
12092
12100
  {
12093
12101
  role: "alert",
@@ -12100,19 +12108,20 @@ const vm = () => {
12100
12108
  ) : null;
12101
12109
  };
12102
12110
  function xm() {
12103
- return /* @__PURE__ */ b.jsx("div", { className: "spinner" });
12111
+ return /* @__PURE__ */ y.jsx("div", { className: "spinner" });
12104
12112
  }
12105
12113
  function Ni() {
12106
- const { primaryColor: e } = ne(Oe), { cancelLiveChatConnection: t } = ne(Ot);
12107
- return /* @__PURE__ */ b.jsxs(
12114
+ var i;
12115
+ const { conversationScreen: e, primaryColor: t } = ne(Oe), { cancelLiveChatConnection: n } = ne(Ot), r = ((i = e == null ? void 0 : e.liveChat) == null ? void 0 : i.queueMessages) ?? [];
12116
+ return /* @__PURE__ */ y.jsxs(
12108
12117
  "div",
12109
12118
  {
12110
12119
  className: "live-chat-connecting",
12111
- style: { backgroundColor: e },
12120
+ style: { backgroundColor: t },
12112
12121
  children: [
12113
- /* @__PURE__ */ b.jsx(xm, {}),
12114
- /* @__PURE__ */ b.jsx("p", { children: "Connecting to live agent" }),
12115
- /* @__PURE__ */ b.jsx("button", { onClick: t, children: "Cancel" })
12122
+ /* @__PURE__ */ y.jsx(xm, {}),
12123
+ /* @__PURE__ */ y.jsx("div", { className: "live-chat-connecting-messages", children: r.length === 0 ? /* @__PURE__ */ y.jsx("p", { children: "Connecting to live agent" }) : r.map((a, o) => /* @__PURE__ */ y.jsx("p", { children: a }, `queue-message-${o}`)) }),
12124
+ /* @__PURE__ */ y.jsx("button", { onClick: n, children: "Cancel" })
12116
12125
  ]
12117
12126
  }
12118
12127
  );
@@ -12140,7 +12149,7 @@ function Mi({ onDismiss: e }) {
12140
12149
  const [t, n] = te(""), [r, i] = te(!1), [a, o] = te(null), { conversationScreen: l } = ne(Oe), { endLiveChat: u, submitSurvey: s, terminateConversation: c } = ne(Ot), d = () => {
12141
12150
  var k;
12142
12151
  c(), (k = l == null ? void 0 : l.liveChat) != null && k.useSurvey ? i(!0) : u();
12143
- }, y = () => {
12152
+ }, b = () => {
12144
12153
  s({
12145
12154
  content: t,
12146
12155
  selectedOption: a
@@ -12148,19 +12157,19 @@ function Mi({ onDismiss: e }) {
12148
12157
  }, f = (k) => {
12149
12158
  n(k.target.value.slice(0, co));
12150
12159
  };
12151
- return /* @__PURE__ */ b.jsxs("div", { className: "livechat-end-confirmation-container", children: [
12152
- !r && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
12153
- /* @__PURE__ */ b.jsx("p", { children: "Are you sure you want to end this conversation?" }),
12154
- /* @__PURE__ */ b.jsxs("div", { className: "livechat-end-confirmation-container__button-container", children: [
12155
- /* @__PURE__ */ b.jsx("button", { className: "string-btn", onClick: e, children: "Nevermind" }),
12156
- /* @__PURE__ */ b.jsx("button", { className: "pill-btn", onClick: d, children: "Close chat" })
12160
+ return /* @__PURE__ */ y.jsxs("div", { className: "livechat-end-confirmation-container", children: [
12161
+ !r && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
12162
+ /* @__PURE__ */ y.jsx("p", { children: "Are you sure you want to end this conversation?" }),
12163
+ /* @__PURE__ */ y.jsxs("div", { className: "livechat-end-confirmation-container__button-container", children: [
12164
+ /* @__PURE__ */ y.jsx("button", { className: "string-btn", onClick: e, children: "Nevermind" }),
12165
+ /* @__PURE__ */ y.jsx("button", { className: "pill-btn", onClick: d, children: "Close chat" })
12157
12166
  ] })
12158
12167
  ] }),
12159
- r && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
12160
- /* @__PURE__ */ b.jsx("p", { children: "Before you go, let me know how I did:" }),
12161
- /* @__PURE__ */ b.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: wm.map(({ key: k, icon: x, text: E }) => {
12168
+ r && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
12169
+ /* @__PURE__ */ y.jsx("p", { children: "Before you go, let me know how I did:" }),
12170
+ /* @__PURE__ */ y.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: wm.map(({ key: k, icon: x, text: E }) => {
12162
12171
  const C = k === a, z = C ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
12163
- return /* @__PURE__ */ b.jsxs(
12172
+ return /* @__PURE__ */ y.jsxs(
12164
12173
  "button",
12165
12174
  {
12166
12175
  "aria-checked": C,
@@ -12169,15 +12178,15 @@ function Mi({ onDismiss: e }) {
12169
12178
  style: z,
12170
12179
  onClick: () => o(k),
12171
12180
  children: [
12172
- /* @__PURE__ */ b.jsx("span", { children: x }),
12173
- /* @__PURE__ */ b.jsx("p", { children: E })
12181
+ /* @__PURE__ */ y.jsx("span", { children: x }),
12182
+ /* @__PURE__ */ y.jsx("p", { children: E })
12174
12183
  ]
12175
12184
  },
12176
12185
  k
12177
12186
  );
12178
12187
  }) }),
12179
- a && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
12180
- /* @__PURE__ */ b.jsx(
12188
+ a && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
12189
+ /* @__PURE__ */ y.jsx(
12181
12190
  "textarea",
12182
12191
  {
12183
12192
  "aria-label": "Add additional comments",
@@ -12186,19 +12195,19 @@ function Mi({ onDismiss: e }) {
12186
12195
  onChange: f
12187
12196
  }
12188
12197
  ),
12189
- /* @__PURE__ */ b.jsxs("p", { className: "livechat-end-confirmation-container__sub-text", children: [
12198
+ /* @__PURE__ */ y.jsxs("p", { className: "livechat-end-confirmation-container__sub-text", children: [
12190
12199
  co - t.length,
12191
12200
  " characters"
12192
12201
  ] })
12193
12202
  ] }),
12194
- /* @__PURE__ */ b.jsxs("div", { className: "livechat-end-confirmation-container__button-container", children: [
12195
- /* @__PURE__ */ b.jsx("button", { className: "string-btn", onClick: u, children: "Dismiss" }),
12196
- /* @__PURE__ */ b.jsx(
12203
+ /* @__PURE__ */ y.jsxs("div", { className: "livechat-end-confirmation-container__button-container", children: [
12204
+ /* @__PURE__ */ y.jsx("button", { className: "string-btn", onClick: u, children: "Dismiss" }),
12205
+ /* @__PURE__ */ y.jsx(
12197
12206
  "button",
12198
12207
  {
12199
12208
  className: "pill-btn",
12200
12209
  disabled: !a,
12201
- onClick: y,
12210
+ onClick: b,
12202
12211
  children: "Submit"
12203
12212
  }
12204
12213
  )
@@ -12232,13 +12241,13 @@ function Li() {
12232
12241
  sendTypingEvent: i
12233
12242
  } = ne(Ot), [a, o] = te(!1), [l, u] = te(""), s = qe(), c = Cm(i, 5e3), d = (k) => {
12234
12243
  u(k.target.value), c();
12235
- }, y = () => {
12244
+ }, b = () => {
12236
12245
  l.trim() !== "" && (r(l), f());
12237
12246
  }, f = () => {
12238
12247
  u(""), s.current.value = "", s.current.style.height = "auto";
12239
12248
  };
12240
- return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
12241
- /* @__PURE__ */ b.jsxs(
12249
+ return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
12250
+ /* @__PURE__ */ y.jsxs(
12242
12251
  "div",
12243
12252
  {
12244
12253
  style: {
@@ -12248,14 +12257,14 @@ function Li() {
12248
12257
  position: "relative"
12249
12258
  },
12250
12259
  children: [
12251
- e && /* @__PURE__ */ b.jsxs("div", { className: "livechat-conversation-break-container", children: [
12252
- /* @__PURE__ */ b.jsx("hr", {}),
12253
- /* @__PURE__ */ b.jsxs("span", { children: [
12260
+ e && /* @__PURE__ */ y.jsxs("div", { className: "livechat-conversation-break-container", children: [
12261
+ /* @__PURE__ */ y.jsx("hr", {}),
12262
+ /* @__PURE__ */ y.jsxs("span", { children: [
12254
12263
  e,
12255
12264
  " has joined"
12256
12265
  ] })
12257
12266
  ] }),
12258
- /* @__PURE__ */ b.jsx(
12267
+ /* @__PURE__ */ y.jsx(
12259
12268
  dn,
12260
12269
  {
12261
12270
  loading: t,
@@ -12265,14 +12274,14 @@ function Li() {
12265
12274
  ]
12266
12275
  }
12267
12276
  ),
12268
- /* @__PURE__ */ b.jsxs("div", { className: "livechat-conversation-footer-container", children: [
12269
- a && /* @__PURE__ */ b.jsx(
12277
+ /* @__PURE__ */ y.jsxs("div", { className: "livechat-conversation-footer-container", children: [
12278
+ a && /* @__PURE__ */ y.jsx(
12270
12279
  Mi,
12271
12280
  {
12272
12281
  onDismiss: () => o(!1)
12273
12282
  }
12274
12283
  ),
12275
- /* @__PURE__ */ b.jsx(
12284
+ /* @__PURE__ */ y.jsx(
12276
12285
  "button",
12277
12286
  {
12278
12287
  className: "livechat-conversation-end-button",
@@ -12281,12 +12290,12 @@ function Li() {
12281
12290
  children: "End conversation"
12282
12291
  }
12283
12292
  ),
12284
- /* @__PURE__ */ b.jsx(
12293
+ /* @__PURE__ */ y.jsx(
12285
12294
  Gn,
12286
12295
  {
12287
12296
  disabled: a,
12288
12297
  handleChange: d,
12289
- handleSend: y,
12298
+ handleSend: b,
12290
12299
  inputRef: s,
12291
12300
  value: l
12292
12301
  }
@@ -12329,16 +12338,16 @@ const Sm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
12329
12338
  }];
12330
12339
  }, Rr = "privacy policy";
12331
12340
  function ji() {
12332
- const { conversationScreen: e, primaryColor: t } = ne(Oe), { startLiveChat: n } = ne(Ot), { setMode: r } = ne(Le), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [u, , s] = Em({}), [c, d] = te(!1), { clearError: y, errors: f, setErrors: k } = _m(), x = fo(
12341
+ const { conversationScreen: e, primaryColor: t } = ne(Oe), { startLiveChat: n } = ne(Ot), { setMode: r } = ne(Le), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [u, , s] = Em({}), [c, d] = te(!1), { clearError: b, errors: f, setErrors: k } = _m(), x = fo(
12333
12342
  () => (l ?? "").split(Rr, 2),
12334
12343
  [l]
12335
12344
  ), E = () => {
12336
12345
  r(St.XPERT);
12337
12346
  }, C = () => {
12338
- y("privacyCheck"), d((j) => !j);
12347
+ b("privacyCheck"), d((j) => !j);
12339
12348
  }, z = (j, v) => {
12340
12349
  const D = j.target.value;
12341
- y(v), s(v, D);
12350
+ b(v), s(v, D);
12342
12351
  }, L = () => {
12343
12352
  U() && n(u);
12344
12353
  }, U = () => {
@@ -12356,12 +12365,12 @@ function ji() {
12356
12365
  }
12357
12366
  return v;
12358
12367
  }, {});
12359
- return c || (j.privacyCheck = "Required"), k(j), Object.keys(j).length === 0;
12368
+ return !c && l && (j.privacyCheck = "Required"), k(j), Object.keys(j).length === 0;
12360
12369
  };
12361
- return /* @__PURE__ */ b.jsxs("div", { className: "live-chat-form", children: [
12362
- a && /* @__PURE__ */ b.jsx("p", { children: a }),
12363
- (i ?? []).map(({ key: j, name: v }) => /* @__PURE__ */ b.jsxs(Ks, { children: [
12364
- /* @__PURE__ */ b.jsx(
12370
+ return /* @__PURE__ */ y.jsxs("div", { className: "live-chat-form", children: [
12371
+ a && /* @__PURE__ */ y.jsx("p", { children: a }),
12372
+ (i ?? []).map(({ key: j, name: v }) => /* @__PURE__ */ y.jsxs(Ks, { children: [
12373
+ /* @__PURE__ */ y.jsx(
12365
12374
  "input",
12366
12375
  {
12367
12376
  className: `live-chat-form-input ${f[j] ? "error" : ""}`,
@@ -12370,53 +12379,62 @@ function ji() {
12370
12379
  onChange: (D) => z(D, j)
12371
12380
  }
12372
12381
  ),
12373
- f[j] && /* @__PURE__ */ b.jsx("p", { className: "live-chat-form-error", children: f[j] })
12382
+ f[j] && /* @__PURE__ */ y.jsx("p", { className: "live-chat-form-error", children: f[j] })
12374
12383
  ] }, j)),
12375
- l && /* @__PURE__ */ b.jsx(
12376
- "div",
12377
- {
12378
- className: "live-chat-privacy-policy-container",
12379
- "data-testid": "PrivacyPolicyContainer",
12380
- children: /* @__PURE__ */ b.jsxs("p", { children: [
12381
- x[0],
12382
- l.includes(Rr) && /* @__PURE__ */ b.jsxs(
12383
- "a",
12384
- {
12385
- "aria-label": "Privacy policy. Opens in new window.",
12386
- href: o,
12387
- rel: "noreferrer",
12388
- target: "_blank",
12389
- children: [
12390
- Rr,
12391
- /* @__PURE__ */ b.jsx("img", { alt: "open in new", "aria-hidden": "true", src: Sm })
12392
- ]
12393
- }
12394
- ),
12395
- x.length > 1 && x[1]
12396
- ] })
12397
- }
12398
- ),
12399
- /* @__PURE__ */ b.jsxs("div", { className: "live-chat-checkbox-container", children: [
12400
- /* @__PURE__ */ b.jsx(
12401
- "input",
12384
+ l && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
12385
+ /* @__PURE__ */ y.jsx(
12386
+ "div",
12402
12387
  {
12403
- checked: c,
12404
- id: "privacy-check",
12405
- style: {
12406
- backgroundColor: c ? t : "#ffffff",
12407
- borderColor: t
12408
- },
12409
- type: "checkbox",
12410
- onChange: C,
12411
- onKeyDown: (j) => j.key === "Enter" && C()
12388
+ className: "live-chat-privacy-policy-container",
12389
+ "data-testid": "PrivacyPolicyContainer",
12390
+ children: /* @__PURE__ */ y.jsxs("p", { children: [
12391
+ x[0],
12392
+ l.includes(Rr) && /* @__PURE__ */ y.jsxs(
12393
+ "a",
12394
+ {
12395
+ "aria-label": "Privacy policy. Opens in new window.",
12396
+ href: o,
12397
+ rel: "noreferrer",
12398
+ target: "_blank",
12399
+ children: [
12400
+ Rr,
12401
+ /* @__PURE__ */ y.jsx(
12402
+ "img",
12403
+ {
12404
+ alt: "open in new",
12405
+ "aria-hidden": "true",
12406
+ src: Sm
12407
+ }
12408
+ )
12409
+ ]
12410
+ }
12411
+ ),
12412
+ x.length > 1 && x[1]
12413
+ ] })
12412
12414
  }
12413
12415
  ),
12414
- /* @__PURE__ */ b.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
12416
+ /* @__PURE__ */ y.jsxs("div", { className: "live-chat-checkbox-container", children: [
12417
+ /* @__PURE__ */ y.jsx(
12418
+ "input",
12419
+ {
12420
+ checked: c,
12421
+ id: "privacy-check",
12422
+ style: {
12423
+ backgroundColor: c ? t : "#ffffff",
12424
+ borderColor: t
12425
+ },
12426
+ type: "checkbox",
12427
+ onChange: C,
12428
+ onKeyDown: (j) => j.key === "Enter" && C()
12429
+ }
12430
+ ),
12431
+ /* @__PURE__ */ y.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
12432
+ ] })
12415
12433
  ] }),
12416
- f.privacyCheck && /* @__PURE__ */ b.jsx("p", { className: "live-chat-form-error", children: f.privacyCheck }),
12417
- /* @__PURE__ */ b.jsxs("div", { className: "live-chat-buttons-container", children: [
12418
- /* @__PURE__ */ b.jsx("button", { className: "live-chat-cancel-button", onClick: E, children: "Cancel" }),
12419
- /* @__PURE__ */ b.jsx(
12434
+ f.privacyCheck && /* @__PURE__ */ y.jsx("p", { className: "live-chat-form-error", children: f.privacyCheck }),
12435
+ /* @__PURE__ */ y.jsxs("div", { className: "live-chat-buttons-container", children: [
12436
+ /* @__PURE__ */ y.jsx("button", { className: "live-chat-cancel-button", onClick: E, children: "Cancel" }),
12437
+ /* @__PURE__ */ y.jsx(
12420
12438
  "button",
12421
12439
  {
12422
12440
  className: "live-chat-start-button",
@@ -12432,10 +12450,10 @@ ji.propTypes = {};
12432
12450
  ji.defaultProps = {};
12433
12451
  function Di() {
12434
12452
  const { step: e } = ne(Ot);
12435
- return /* @__PURE__ */ b.jsxs("div", { className: "live-chat-container", children: [
12436
- e === ft.FORM && /* @__PURE__ */ b.jsx(ji, {}),
12437
- e === ft.CONNECTING && /* @__PURE__ */ b.jsx(Ni, {}),
12438
- e === ft.CONVERSATION && /* @__PURE__ */ b.jsx(Li, {})
12453
+ return /* @__PURE__ */ y.jsxs("div", { className: "live-chat-container", children: [
12454
+ e === ft.FORM && /* @__PURE__ */ y.jsx(ji, {}),
12455
+ e === ft.CONNECTING && /* @__PURE__ */ y.jsx(Ni, {}),
12456
+ e === ft.CONVERSATION && /* @__PURE__ */ y.jsx(Li, {})
12439
12457
  ] });
12440
12458
  }
12441
12459
  Di.propTypes = {};
@@ -12468,7 +12486,7 @@ function Zl({
12468
12486
  } else
12469
12487
  c(!0);
12470
12488
  }, [o.delayMs, o.enabled]);
12471
- const y = () => {
12489
+ const b = () => {
12472
12490
  var x;
12473
12491
  u(!1), (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1), r();
12474
12492
  }, f = (x, E, C) => {
@@ -12478,31 +12496,31 @@ function Zl({
12478
12496
  };
12479
12497
  Ne.set(x, E, z);
12480
12498
  };
12481
- return !s || !d ? null : /* @__PURE__ */ b.jsx("div", { children: /* @__PURE__ */ b.jsxs(
12499
+ return !s || !d ? null : /* @__PURE__ */ y.jsx("div", { children: /* @__PURE__ */ y.jsxs(
12482
12500
  "div",
12483
12501
  {
12484
12502
  role: "alertdialog",
12485
12503
  className: "xpert_chatbot__proactive-message",
12486
12504
  style: a,
12487
12505
  children: [
12488
- /* @__PURE__ */ b.jsx("div", { children: /* @__PURE__ */ b.jsx(
12506
+ /* @__PURE__ */ y.jsx("div", { children: /* @__PURE__ */ y.jsx(
12489
12507
  "button",
12490
12508
  {
12491
12509
  className: "xpert_chatbot__proactive-message__container",
12492
12510
  onClick: n,
12493
12511
  "aria-label": o.text,
12494
12512
  type: "button",
12495
- children: /* @__PURE__ */ b.jsx("div", { className: "xpert_chatbot__proactive-message__text", children: e })
12513
+ children: /* @__PURE__ */ y.jsx("div", { className: "xpert_chatbot__proactive-message__text", children: e })
12496
12514
  }
12497
12515
  ) }),
12498
- /* @__PURE__ */ b.jsx("div", { children: /* @__PURE__ */ b.jsx(
12516
+ /* @__PURE__ */ y.jsx("div", { children: /* @__PURE__ */ y.jsx(
12499
12517
  "button",
12500
12518
  {
12501
12519
  className: "xpert_chatbot__proactive-message__close",
12502
- onClick: y,
12520
+ onClick: b,
12503
12521
  "aria-label": "Close proactive message",
12504
12522
  type: "button",
12505
- children: /* @__PURE__ */ b.jsx(
12523
+ children: /* @__PURE__ */ y.jsx(
12506
12524
  dt,
12507
12525
  {
12508
12526
  style: {
@@ -12623,7 +12641,7 @@ function Ri({ submitEventExternal: e }) {
12623
12641
  id: l
12624
12642
  } = ne(Oe), { pushXpertMessage: u, setXpertMessages: s, xpertMessages: c } = ne(Un), {
12625
12643
  isMobile: d,
12626
- mode: y,
12644
+ mode: b,
12627
12645
  setDisableScroll: f,
12628
12646
  setHasError: k,
12629
12647
  setHasNewMessage: x,
@@ -12899,8 +12917,8 @@ function Ri({ submitEventExternal: e }) {
12899
12917
  }, Te = ((It = r.animatedGraduate) == null ? void 0 : It.enabled) && o.enabled && $ === "A", je = i.enabled ? d ? i.style.mobile : i.style : null;
12900
12918
  return (
12901
12919
  // do not remove this class as it's needed to turn off chatbot
12902
- /* @__PURE__ */ b.jsxs("div", { className: "xpert_chatbot", children: [
12903
- i.enabled && /* @__PURE__ */ b.jsx(
12920
+ /* @__PURE__ */ y.jsxs("div", { className: "xpert_chatbot", children: [
12921
+ i.enabled && /* @__PURE__ */ y.jsx(
12904
12922
  Zl,
12905
12923
  {
12906
12924
  showMessage: !U,
@@ -12908,8 +12926,8 @@ function Ri({ submitEventExternal: e }) {
12908
12926
  onClose: ve,
12909
12927
  onClick: re,
12910
12928
  cookieName: `${l}-proactive-message-xpert-chatbot`,
12911
- children: /* @__PURE__ */ b.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ b.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
12912
- i.textPrefix && /* @__PURE__ */ b.jsx(
12929
+ children: /* @__PURE__ */ y.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ y.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
12930
+ i.textPrefix && /* @__PURE__ */ y.jsx(
12913
12931
  "span",
12914
12932
  {
12915
12933
  style: {
@@ -12918,7 +12936,7 @@ function Ri({ submitEventExternal: e }) {
12918
12936
  children: i.textPrefix
12919
12937
  }
12920
12938
  ),
12921
- i.showEmoji && /* @__PURE__ */ b.jsx(
12939
+ i.showEmoji && /* @__PURE__ */ y.jsx(
12922
12940
  "span",
12923
12941
  {
12924
12942
  role: "img",
@@ -12930,32 +12948,32 @@ function Ri({ submitEventExternal: e }) {
12930
12948
  children: "👋"
12931
12949
  }
12932
12950
  ),
12933
- /* @__PURE__ */ b.jsx("span", { children: i.text })
12951
+ /* @__PURE__ */ y.jsx("span", { children: i.text })
12934
12952
  ] }) })
12935
12953
  }
12936
12954
  ),
12937
- Te && /* @__PURE__ */ b.jsx(
12955
+ Te && /* @__PURE__ */ y.jsx(
12938
12956
  oi,
12939
12957
  {
12940
12958
  handleFloatingActionButtonClick: ee
12941
12959
  }
12942
12960
  ),
12943
- !Te && /* @__PURE__ */ b.jsx(
12961
+ !Te && /* @__PURE__ */ y.jsx(
12944
12962
  li,
12945
12963
  {
12946
12964
  handleFloatingActionButtonClick: ee
12947
12965
  }
12948
12966
  ),
12949
- /* @__PURE__ */ b.jsx(vm, {}),
12950
- U && !v && /* @__PURE__ */ b.jsx(Fi, { isMounted: V, children: /* @__PURE__ */ b.jsx(
12967
+ /* @__PURE__ */ y.jsx(vm, {}),
12968
+ U && !v && /* @__PURE__ */ y.jsx(Fi, { isMounted: V, children: /* @__PURE__ */ y.jsx(
12951
12969
  "div",
12952
12970
  {
12953
12971
  ref: S,
12954
12972
  style: { display: "flex", flexDirection: "column", height: "100%" },
12955
12973
  "aria-label": "XPERT Chatbot Popup",
12956
12974
  role: "dialog",
12957
- children: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
12958
- /* @__PURE__ */ b.jsx(
12975
+ children: /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
12976
+ /* @__PURE__ */ y.jsx(
12959
12977
  Bl,
12960
12978
  {
12961
12979
  onClose: we,
@@ -12964,7 +12982,7 @@ function Ri({ submitEventExternal: e }) {
12964
12982
  setIsMounted: I
12965
12983
  }
12966
12984
  ),
12967
- y === St.XPERT && /* @__PURE__ */ b.jsx(
12985
+ b === St.XPERT && /* @__PURE__ */ y.jsx(
12968
12986
  Pi,
12969
12987
  {
12970
12988
  handleChange: Ee,
@@ -12978,7 +12996,7 @@ function Ri({ submitEventExternal: e }) {
12978
12996
  userInput: H
12979
12997
  }
12980
12998
  ),
12981
- y === St.LIVECHAT && /* @__PURE__ */ b.jsx(Di, {})
12999
+ b === St.LIVECHAT && /* @__PURE__ */ y.jsx(Di, {})
12982
13000
  ] })
12983
13001
  }
12984
13002
  ) })
@@ -12996,7 +13014,7 @@ const Yl = ({ children: e, id: t = null, configurations: n = {} }) => {
12996
13014
  id: t,
12997
13015
  configurations: n
12998
13016
  };
12999
- return /* @__PURE__ */ b.jsx(ko, { ...r, children: /* @__PURE__ */ b.jsx(_o, { children: /* @__PURE__ */ b.jsx(So, { children: /* @__PURE__ */ b.jsx(jl, { children: e }) }) }) });
13017
+ return /* @__PURE__ */ y.jsx(ko, { ...r, children: /* @__PURE__ */ y.jsx(_o, { children: /* @__PURE__ */ y.jsx(So, { children: /* @__PURE__ */ y.jsx(jl, { children: e }) }) }) });
13000
13018
  };
13001
13019
  Yl.propTypes = {
13002
13020
  children: g.element,
@@ -13004,7 +13022,7 @@ Yl.propTypes = {
13004
13022
  id: g.string
13005
13023
  };
13006
13024
  function Nm({ configurations: e = {}, key: t, id: n, submitEventExternal: r }) {
13007
- return /* @__PURE__ */ b.jsx(Yl, { id: n, configurations: e, children: /* @__PURE__ */ b.jsx(Ri, { submitEventExternal: r }) }, t);
13025
+ return /* @__PURE__ */ y.jsx(Yl, { id: n, configurations: e, children: /* @__PURE__ */ y.jsx(Ri, { submitEventExternal: r }) }, t);
13008
13026
  }
13009
13027
  Nm.propTypes = {
13010
13028
  configurations: g.object,