@2uinc/frontend-component-xpert-chatbot 1.13.0 → 1.13.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 +358 -386
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import Ie, { createContext as Jl, useMemo as es, useState as be, useCallback as vt, useEffect as xe, useContext as Fe, useRef as Ge } from "react";
1
+ import Te, { createContext as Jl, useMemo as es, useState as be, useCallback as vt, useEffect as xe, useContext as Fe, useRef as Ge } from "react";
2
2
  const ts = {
3
3
  xpertKey: "edx",
4
4
  chatApi: {
@@ -346,21 +346,7 @@ const ts = {
346
346
  }
347
347
  },
348
348
  proactiveMessage: {
349
- enabled: !0,
350
- textPrefix: null,
351
- showEmoji: !0,
352
- text: "Got questions about billing, registration, or payment options? I'm here to help!",
353
- delayMs: 0,
354
- style: {
355
- bottom: "6.5rem",
356
- right: "1.45rem",
357
- zIndex: "99999",
358
- mobile: {
359
- bottom: "10.5rem",
360
- right: "1.35rem",
361
- zIndex: "99999"
362
- }
363
- }
349
+ enabled: !1
364
350
  },
365
351
  conversationScreen: {
366
352
  header: {
@@ -439,21 +425,7 @@ const ts = {
439
425
  }
440
426
  },
441
427
  proactiveMessage: {
442
- enabled: !0,
443
- textPrefix: null,
444
- showEmoji: !0,
445
- text: "Got questions about billing, registration, or payment options? I'm here to help!",
446
- delayMs: 0,
447
- style: {
448
- bottom: "6.5rem",
449
- right: "1.45rem",
450
- zIndex: "99999",
451
- mobile: {
452
- bottom: "10.5rem",
453
- right: "1.35rem",
454
- zIndex: "99999"
455
- }
456
- }
428
+ enabled: !1
457
429
  },
458
430
  conversationScreen: {
459
431
  header: {
@@ -556,14 +528,14 @@ us();
556
528
  * This source code is licensed under the MIT license found in the
557
529
  * LICENSE file in the root directory of this source tree.
558
530
  */
559
- var cs = Ie, Io = 60103;
531
+ var cs = Te, To = 60103;
560
532
  Vt.Fragment = 60107;
561
533
  if (typeof Symbol == "function" && Symbol.for) {
562
534
  var di = Symbol.for;
563
- Io = di("react.element"), Vt.Fragment = di("react.fragment");
535
+ To = di("react.element"), Vt.Fragment = di("react.fragment");
564
536
  }
565
537
  var ps = cs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, fs = Object.prototype.hasOwnProperty, ds = { key: !0, ref: !0, __self: !0, __source: !0 };
566
- function To(e, t, n) {
538
+ function Io(e, t, n) {
567
539
  var r, i = {}, o = null, a = null;
568
540
  n !== void 0 && (o = "" + n), t.key !== void 0 && (o = "" + t.key), t.ref !== void 0 && (a = t.ref);
569
541
  for (r in t)
@@ -571,12 +543,12 @@ function To(e, t, n) {
571
543
  if (e && e.defaultProps)
572
544
  for (r in t = e.defaultProps, t)
573
545
  i[r] === void 0 && (i[r] = t[r]);
574
- return { $$typeof: Io, type: e, key: o, ref: a, props: i, _owner: ps.current };
546
+ return { $$typeof: To, type: e, key: o, ref: a, props: i, _owner: ps.current };
575
547
  }
576
- Vt.jsx = To;
577
- Vt.jsxs = To;
548
+ Vt.jsx = Io;
549
+ Vt.jsxs = Io;
578
550
  vo.exports = Vt;
579
- var I = vo.exports;
551
+ var T = vo.exports;
580
552
  /*! js-cookie v3.0.5 | MIT */
581
553
  function tn(e) {
582
554
  for (var t = 1; t < arguments.length; t++) {
@@ -693,7 +665,7 @@ var Ms = function() {
693
665
  };
694
666
  Do.exports = Ms();
695
667
  var Q = Do.exports;
696
- const T = /* @__PURE__ */ nt(Q);
668
+ const I = /* @__PURE__ */ nt(Q);
697
669
  var dn = { exports: {} };
698
670
  dn.exports;
699
671
  (function(e, t) {
@@ -742,7 +714,7 @@ dn.exports;
742
714
  return f ? "Symbol(src)_1." + f : "";
743
715
  }(), qe = P.toString, yt = me.call(Object), N = RegExp(
744
716
  "^" + me.call(le).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
745
- ), O = Qe ? re.Buffer : void 0, Y = re.Symbol, J = re.Uint8Array, oe = O ? O.allocUnsafe : void 0, Te = gt(Object.getPrototypeOf, Object), He = Object.create, $e = P.propertyIsEnumerable, lt = at.splice, Ee = Y ? Y.toStringTag : void 0, ue = function() {
717
+ ), O = Qe ? re.Buffer : void 0, Y = re.Symbol, J = re.Uint8Array, oe = O ? O.allocUnsafe : void 0, Ie = gt(Object.getPrototypeOf, Object), He = Object.create, $e = P.propertyIsEnumerable, lt = at.splice, Ee = Y ? Y.toStringTag : void 0, ue = function() {
746
718
  try {
747
719
  var f = Bn(Object, "defineProperty");
748
720
  return f({}, "", {}), f;
@@ -916,13 +888,13 @@ dn.exports;
916
888
  function ni(f) {
917
889
  return St(f) && Kt(f) == l;
918
890
  }
919
- function Il(f) {
891
+ function Tl(f) {
920
892
  if (!ut(f) || Ul(f))
921
893
  return !1;
922
894
  var y = qn(f) ? N : he;
923
895
  return y.test(ql(f));
924
896
  }
925
- function Tl(f) {
897
+ function Il(f) {
926
898
  return St(f) && li(f.length) && !!h[Kt(f)];
927
899
  }
928
900
  function Dl(f) {
@@ -1022,7 +994,7 @@ dn.exports;
1022
994
  }
1023
995
  function Bn(f, y) {
1024
996
  var v = Je(f, y);
1025
- return Il(v) ? v : void 0;
997
+ return Tl(v) ? v : void 0;
1026
998
  }
1027
999
  function _l(f) {
1028
1000
  var y = le.call(f, Ee), v = f[Ee];
@@ -1035,7 +1007,7 @@ dn.exports;
1035
1007
  return F && (y ? f[Ee] = v : delete f[Ee]), ne;
1036
1008
  }
1037
1009
  function Fl(f) {
1038
- return typeof f.constructor == "function" && !oi(f) ? Ja(Te(f)) : {};
1010
+ return typeof f.constructor == "function" && !oi(f) ? Ja(Ie(f)) : {};
1039
1011
  }
1040
1012
  function ii(f, y) {
1041
1013
  var v = typeof f;
@@ -1142,13 +1114,13 @@ dn.exports;
1142
1114
  function Wl(f) {
1143
1115
  if (!St(f) || Kt(f) != E)
1144
1116
  return !1;
1145
- var y = Te(f);
1117
+ var y = Ie(f);
1146
1118
  if (y === null)
1147
1119
  return !0;
1148
1120
  var v = le.call(y, "constructor") && y.constructor;
1149
1121
  return typeof v == "function" && v instanceof v && me.call(v) == yt;
1150
1122
  }
1151
- var si = ot ? jt(ot) : Tl;
1123
+ var si = ot ? jt(ot) : Il;
1152
1124
  function Gl(f) {
1153
1125
  return Ol(f, ui(f));
1154
1126
  }
@@ -1290,16 +1262,16 @@ const Eo = /* @__PURE__ */ nt(bs), xs = {
1290
1262
  throw new Error("xpertKey or configurations is required");
1291
1263
  const n = ws[e] || {};
1292
1264
  return Eo(n, t);
1293
- }, Is = vs, jo = Jl({}), Co = ({
1265
+ }, Ts = vs, jo = Jl({}), Co = ({
1294
1266
  children: e,
1295
1267
  configurations: t = null,
1296
1268
  xpertKey: n = null
1297
1269
  }) => {
1298
1270
  const r = es(
1299
- () => Is(n, t),
1271
+ () => Ts(n, t),
1300
1272
  [t, n]
1301
1273
  );
1302
- return /* @__PURE__ */ I.jsx(jo.Provider, { value: { ...r }, children: e });
1274
+ return /* @__PURE__ */ T.jsx(jo.Provider, { value: { ...r }, children: e });
1303
1275
  };
1304
1276
  Co.propTypes = {
1305
1277
  children: Q.element.isRequired,
@@ -1410,8 +1382,8 @@ var Ao = { exports: {} };
1410
1382
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
1411
1383
  })();
1412
1384
  })(Ao);
1413
- var Ts = Ao.exports;
1414
- const So = /* @__PURE__ */ nt(Ts), Ds = 576, Ns = (e) => {
1385
+ var Is = Ao.exports;
1386
+ const So = /* @__PURE__ */ nt(Is), Ds = 576, Ns = (e) => {
1415
1387
  const [t, n] = be(), r = vt(() => {
1416
1388
  n(
1417
1389
  window.matchMedia(
@@ -1430,7 +1402,7 @@ function wn({
1430
1402
  ...o
1431
1403
  }) {
1432
1404
  const a = rt(ks);
1433
- return /* @__PURE__ */ I.jsx(
1405
+ return /* @__PURE__ */ T.jsx(
1434
1406
  "button",
1435
1407
  {
1436
1408
  type: "button",
@@ -1450,11 +1422,11 @@ function wn({
1450
1422
  );
1451
1423
  }
1452
1424
  wn.propTypes = {
1453
- label: T.string.isRequired,
1454
- onClick: T.func.isRequired,
1455
- children: T.node.isRequired,
1456
- className: T.string,
1457
- style: T.shape()
1425
+ label: I.string.isRequired,
1426
+ onClick: I.func.isRequired,
1427
+ children: I.node.isRequired,
1428
+ className: I.string,
1429
+ style: I.shape()
1458
1430
  };
1459
1431
  wn.defaultProps = {
1460
1432
  className: "",
@@ -1470,7 +1442,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
1470
1442
  }, kr = ({ handleFloatingActionButtonClick: e }) => {
1471
1443
  var i, o;
1472
1444
  const { xpertKey: t, launchButton: n } = Fe(Pe), r = rt(Es);
1473
- return /* @__PURE__ */ I.jsx(
1445
+ return /* @__PURE__ */ T.jsx(
1474
1446
  wn,
1475
1447
  {
1476
1448
  onClick: e,
@@ -1479,7 +1451,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
1479
1451
  "aria-haspopup": "dialog",
1480
1452
  "aria-expanded": open,
1481
1453
  className: "xpert-chatbot-button",
1482
- children: /* @__PURE__ */ I.jsx(
1454
+ children: /* @__PURE__ */ T.jsx(
1483
1455
  "img",
1484
1456
  {
1485
1457
  "data-ot-ignore": "",
@@ -1494,7 +1466,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
1494
1466
  );
1495
1467
  };
1496
1468
  kr.propTypes = {
1497
- handleFloatingActionButtonClick: T.func
1469
+ handleFloatingActionButtonClick: I.func
1498
1470
  };
1499
1471
  kr.defaultProps = {
1500
1472
  handleFloatingActionButtonClick: null
@@ -1541,7 +1513,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1541
1513
  }, p = () => {
1542
1514
  o.current = !1;
1543
1515
  };
1544
- return /* @__PURE__ */ I.jsxs(
1516
+ return /* @__PURE__ */ T.jsxs(
1545
1517
  "div",
1546
1518
  {
1547
1519
  role: "region",
@@ -1550,8 +1522,8 @@ eyes follow your mouse when you hover near it.`, Er = ({
1550
1522
  onMouseEnter: c,
1551
1523
  onMouseLeave: p,
1552
1524
  children: [
1553
- /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: Os }),
1554
- /* @__PURE__ */ I.jsx(
1525
+ /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: Os }),
1526
+ /* @__PURE__ */ T.jsx(
1555
1527
  wn,
1556
1528
  {
1557
1529
  onClick: e,
@@ -1560,7 +1532,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1560
1532
  style: u ? { ...(x = (D = n.style) == null ? void 0 : D.mobile) == null ? void 0 : x.animatedGraduateExperiment } : { ...(C = n.style) == null ? void 0 : C.animatedGraduateExperiment },
1561
1533
  "aria-haspopup": "dialog",
1562
1534
  "aria-expanded": open,
1563
- children: /* @__PURE__ */ I.jsx("div", { ref: i, children: /* @__PURE__ */ I.jsxs(
1535
+ children: /* @__PURE__ */ T.jsx("div", { ref: i, children: /* @__PURE__ */ T.jsxs(
1564
1536
  "svg",
1565
1537
  {
1566
1538
  style: {
@@ -1571,7 +1543,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1571
1543
  xmlns: "http://www.w3.org/2000/svg",
1572
1544
  className: "xpert_chatbot__animated_graduate",
1573
1545
  children: [
1574
- /* @__PURE__ */ I.jsx(
1546
+ /* @__PURE__ */ T.jsx(
1575
1547
  "path",
1576
1548
  {
1577
1549
  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",
@@ -1579,7 +1551,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1579
1551
  className: "xpert_chatbot__animated_graduate__cap"
1580
1552
  }
1581
1553
  ),
1582
- /* @__PURE__ */ I.jsx(
1554
+ /* @__PURE__ */ T.jsx(
1583
1555
  "path",
1584
1556
  {
1585
1557
  fillRule: "evenodd",
@@ -1589,7 +1561,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1589
1561
  className: "xpert_chatbot__animated_graduate__face"
1590
1562
  }
1591
1563
  ),
1592
- /* @__PURE__ */ I.jsx(
1564
+ /* @__PURE__ */ T.jsx(
1593
1565
  "circle",
1594
1566
  {
1595
1567
  className: `xpert_chatbot__animated_graduate__eyeball ${l ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
@@ -1599,7 +1571,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1599
1571
  fill: "white"
1600
1572
  }
1601
1573
  ),
1602
- /* @__PURE__ */ I.jsx(
1574
+ /* @__PURE__ */ T.jsx(
1603
1575
  "mask",
1604
1576
  {
1605
1577
  id: "mask0_2271_69",
@@ -1608,10 +1580,10 @@ eyes follow your mouse when you hover near it.`, Er = ({
1608
1580
  y: "37",
1609
1581
  width: "15",
1610
1582
  height: "14",
1611
- children: /* @__PURE__ */ I.jsx("circle", { cx: "34.7137", cy: "44.0494", r: "6.94275", fill: "white" })
1583
+ children: /* @__PURE__ */ T.jsx("circle", { cx: "34.7137", cy: "44.0494", r: "6.94275", fill: "white" })
1612
1584
  }
1613
1585
  ),
1614
- /* @__PURE__ */ I.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ I.jsx(
1586
+ /* @__PURE__ */ T.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ T.jsx(
1615
1587
  "circle",
1616
1588
  {
1617
1589
  role: "img",
@@ -1623,7 +1595,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1623
1595
  fill: "black"
1624
1596
  }
1625
1597
  ) }),
1626
- /* @__PURE__ */ I.jsx(
1598
+ /* @__PURE__ */ T.jsx(
1627
1599
  "circle",
1628
1600
  {
1629
1601
  className: `xpert_chatbot__animated_graduate__eyeball ${l ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
@@ -1633,7 +1605,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1633
1605
  fill: "white"
1634
1606
  }
1635
1607
  ),
1636
- /* @__PURE__ */ I.jsx(
1608
+ /* @__PURE__ */ T.jsx(
1637
1609
  "mask",
1638
1610
  {
1639
1611
  id: "mask1_2271_69",
@@ -1642,10 +1614,10 @@ eyes follow your mouse when you hover near it.`, Er = ({
1642
1614
  y: "37",
1643
1615
  width: "15",
1644
1616
  height: "14",
1645
- children: /* @__PURE__ */ I.jsx("circle", { cx: "18.8446", cy: "44.0494", r: "6.94275", fill: "white" })
1617
+ children: /* @__PURE__ */ T.jsx("circle", { cx: "18.8446", cy: "44.0494", r: "6.94275", fill: "white" })
1646
1618
  }
1647
1619
  ),
1648
- /* @__PURE__ */ I.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ I.jsx(
1620
+ /* @__PURE__ */ T.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ T.jsx(
1649
1621
  "circle",
1650
1622
  {
1651
1623
  role: "img",
@@ -1657,7 +1629,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1657
1629
  fill: "black"
1658
1630
  }
1659
1631
  ) }),
1660
- /* @__PURE__ */ I.jsx(
1632
+ /* @__PURE__ */ T.jsx(
1661
1633
  "circle",
1662
1634
  {
1663
1635
  className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1667,7 +1639,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1667
1639
  fill: "#5DE3C0"
1668
1640
  }
1669
1641
  ),
1670
- /* @__PURE__ */ I.jsx(
1642
+ /* @__PURE__ */ T.jsx(
1671
1643
  "circle",
1672
1644
  {
1673
1645
  className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1677,7 +1649,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1677
1649
  fill: "#5DE3C0"
1678
1650
  }
1679
1651
  ),
1680
- /* @__PURE__ */ I.jsx(
1652
+ /* @__PURE__ */ T.jsx(
1681
1653
  "circle",
1682
1654
  {
1683
1655
  className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1687,7 +1659,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1687
1659
  fill: "#5DE3C0"
1688
1660
  }
1689
1661
  ),
1690
- /* @__PURE__ */ I.jsx(
1662
+ /* @__PURE__ */ T.jsx(
1691
1663
  "path",
1692
1664
  {
1693
1665
  className: "xpert_chatbot__animated_graduate__cap_tassel",
@@ -1705,7 +1677,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1705
1677
  );
1706
1678
  };
1707
1679
  Er.propTypes = {
1708
- handleFloatingActionButtonClick: T.func
1680
+ handleFloatingActionButtonClick: I.func
1709
1681
  };
1710
1682
  Er.defaultProps = {
1711
1683
  handleFloatingActionButtonClick: null
@@ -1714,7 +1686,7 @@ const zs = Er;
1714
1686
  const Ls = 991, _s = () => {
1715
1687
  var n;
1716
1688
  const e = rt(Ls), { launchButton: t } = Fe(Pe);
1717
- return (n = t.message) != null && n.enabled ? /* @__PURE__ */ I.jsx(
1689
+ return (n = t.message) != null && n.enabled ? /* @__PURE__ */ T.jsx(
1718
1690
  "div",
1719
1691
  {
1720
1692
  role: "alert",
@@ -2366,13 +2338,13 @@ const uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2366
2338
  __proto__: null,
2367
2339
  createFocusTrap: su
2368
2340
  }, Symbol.toStringTag, { value: "Module" })), cu = /* @__PURE__ */ wo(uu), pu = /* @__PURE__ */ wo(Js);
2369
- function It(e) {
2341
+ function Tt(e) {
2370
2342
  "@babel/helpers - typeof";
2371
- return It = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2343
+ return Tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2372
2344
  return typeof t;
2373
2345
  } : function(t) {
2374
2346
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2375
- }, It(e);
2347
+ }, Tt(e);
2376
2348
  }
2377
2349
  function fu(e, t) {
2378
2350
  if (!(e instanceof t))
@@ -2410,7 +2382,7 @@ function gu(e) {
2410
2382
  };
2411
2383
  }
2412
2384
  function mu(e, t) {
2413
- if (t && (It(t) === "object" || typeof t == "function"))
2385
+ if (t && (Tt(t) === "object" || typeof t == "function"))
2414
2386
  return t;
2415
2387
  if (t !== void 0)
2416
2388
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -2443,21 +2415,21 @@ function Mu(e, t, n) {
2443
2415
  }
2444
2416
  function Qo(e) {
2445
2417
  var t = bu(e, "string");
2446
- return It(t) === "symbol" ? t : String(t);
2418
+ return Tt(t) === "symbol" ? t : String(t);
2447
2419
  }
2448
2420
  function bu(e, t) {
2449
- if (It(e) !== "object" || e === null)
2421
+ if (Tt(e) !== "object" || e === null)
2450
2422
  return e;
2451
2423
  var n = e[Symbol.toPrimitive];
2452
2424
  if (n !== void 0) {
2453
2425
  var r = n.call(e, t || "default");
2454
- if (It(r) !== "object")
2426
+ if (Tt(r) !== "object")
2455
2427
  return r;
2456
2428
  throw new TypeError("@@toPrimitive must return a primitive value.");
2457
2429
  }
2458
2430
  return (t === "string" ? String : Number)(e);
2459
2431
  }
2460
- var rn = Ie, H = Q, xu = cu, wu = xu.createFocusTrap, vu = pu, Iu = vu.isFocusable, jr = /* @__PURE__ */ function(e) {
2432
+ var rn = Te, H = Q, xu = cu, wu = xu.createFocusTrap, vu = pu, Tu = vu.isFocusable, jr = /* @__PURE__ */ function(e) {
2461
2433
  hu(n, e);
2462
2434
  var t = gu(n);
2463
2435
  function n(r) {
@@ -2585,7 +2557,7 @@ var rn = Ie, H = Q, xu = cu, wu = xu.createFocusTrap, vu = pu, Iu = vu.isFocusab
2585
2557
  i.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
2586
2558
  // as a result of the click-through) -- in which case do NOT restore focus
2587
2559
  // to `returnFocusNode` because focus should remain on the outside node
2588
- !Iu(i.outsideClick.target, i.internalOptions.tabbableOptions))), u = i.internalOptions.preventScroll, c = u === void 0 ? !1 : u;
2560
+ !Tu(i.outsideClick.target, i.internalOptions.tabbableOptions))), u = i.internalOptions.preventScroll, c = u === void 0 ? !1 : u;
2589
2561
  s && l.focus({
2590
2562
  preventScroll: c
2591
2563
  }), i.originalOptions.onPostDeactivate && i.originalOptions.onPostDeactivate.call(null), i.outsideClick = null;
@@ -2699,8 +2671,8 @@ jr.defaultProps = {
2699
2671
  focusTrapOptions: {},
2700
2672
  _createFocusTrap: wu
2701
2673
  };
2702
- var Tu = jr;
2703
- const Du = /* @__PURE__ */ nt(Tu);
2674
+ var Iu = jr;
2675
+ const Du = /* @__PURE__ */ nt(Iu);
2704
2676
  const Nu = 991;
2705
2677
  function Cr({
2706
2678
  style: e,
@@ -2710,7 +2682,7 @@ function Cr({
2710
2682
  isMounted: i
2711
2683
  }) {
2712
2684
  const o = rt(Nu), a = Ge(null);
2713
- return /* @__PURE__ */ I.jsx(
2685
+ return /* @__PURE__ */ T.jsx(
2714
2686
  Du,
2715
2687
  {
2716
2688
  focusTrapOptions: {
@@ -2719,7 +2691,7 @@ function Cr({
2719
2691
  displayCheck: void 0
2720
2692
  }
2721
2693
  },
2722
- children: /* @__PURE__ */ I.jsx(
2694
+ children: /* @__PURE__ */ T.jsx(
2723
2695
  "div",
2724
2696
  {
2725
2697
  ref: a,
@@ -2743,11 +2715,11 @@ function Cr({
2743
2715
  );
2744
2716
  }
2745
2717
  Cr.propTypes = {
2746
- children: T.node.isRequired,
2747
- style: T.shape(),
2748
- isMounted: T.bool,
2749
- className: T.string,
2750
- isNormalSize: T.bool
2718
+ children: I.node.isRequired,
2719
+ style: I.shape(),
2720
+ isMounted: I.bool,
2721
+ className: I.string,
2722
+ isNormalSize: I.bool
2751
2723
  };
2752
2724
  Cr.defaultProps = {
2753
2725
  style: {},
@@ -2971,7 +2943,7 @@ const Vo = Object.freeze({
2971
2943
  // Transformations
2972
2944
  ...bn
2973
2945
  }), _u = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Fu = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2974
- function Ii(e, t, n) {
2946
+ function Ti(e, t, n) {
2975
2947
  if (t === 1)
2976
2948
  return e;
2977
2949
  if (n = n || 100, typeof e == "number")
@@ -3039,7 +3011,7 @@ function Ru(e, t) {
3039
3011
  });
3040
3012
  const a = r.width, l = r.height, s = i.width, u = i.height;
3041
3013
  let c, p;
3042
- a === null ? (p = l === null ? "1em" : l === "auto" ? u : l, c = Ii(p, s / u)) : (c = a === "auto" ? s : a, p = l === null ? Ii(c, u / s) : l === "auto" ? u : l);
3014
+ a === null ? (p = l === null ? "1em" : l === "auto" ? u : l, c = Ti(p, s / u)) : (c = a === "auto" ? s : a, p = l === null ? Ti(c, u / s) : l === "auto" ? u : l);
3043
3015
  const m = {}, d = (D, x) => {
3044
3016
  Pu(x) || (m[D] = x.toString());
3045
3017
  };
@@ -3124,7 +3096,7 @@ const qu = () => {
3124
3096
  } catch {
3125
3097
  }
3126
3098
  };
3127
- let Ti = qu();
3099
+ let Ii = qu();
3128
3100
  function Vu(e, t) {
3129
3101
  const n = Lr(e);
3130
3102
  if (!n)
@@ -3171,7 +3143,7 @@ function Zu(e) {
3171
3143
  return "/";
3172
3144
  }
3173
3145
  const Ku = (e, t, n) => {
3174
- if (!Ti) {
3146
+ if (!Ii) {
3175
3147
  n("abort", 424);
3176
3148
  return;
3177
3149
  }
@@ -3194,7 +3166,7 @@ const Ku = (e, t, n) => {
3194
3166
  return;
3195
3167
  }
3196
3168
  let i = 503;
3197
- Ti(e + r).then((o) => {
3169
+ Ii(e + r).then((o) => {
3198
3170
  const a = o.status;
3199
3171
  if (a !== 200) {
3200
3172
  setTimeout(() => {
@@ -3515,7 +3487,7 @@ function gr(e, t) {
3515
3487
  function mr(e) {
3516
3488
  return parseInt(hr(e, Ko)) || 0;
3517
3489
  }
3518
- const In = {
3490
+ const Tn = {
3519
3491
  local: !0,
3520
3492
  session: !0
3521
3493
  }, Jo = {
@@ -3534,7 +3506,7 @@ function ea(e) {
3534
3506
  return on[t];
3535
3507
  } catch {
3536
3508
  }
3537
- In[e] = !1;
3509
+ Tn[e] = !1;
3538
3510
  }
3539
3511
  function ta(e, t) {
3540
3512
  const n = ea(e);
@@ -3570,7 +3542,7 @@ function ta(e, t) {
3570
3542
  function na() {
3571
3543
  if (!Fr) {
3572
3544
  uc(!0);
3573
- for (const e in In)
3545
+ for (const e in Tn)
3574
3546
  ta(e, (t) => {
3575
3547
  const n = t.data, r = t.provider, i = n.prefix, o = dt(
3576
3548
  r,
@@ -3591,7 +3563,7 @@ function cc(e, t) {
3591
3563
  )
3592
3564
  return n === t;
3593
3565
  if (e.lastModifiedCached = t, n)
3594
- for (const r in In)
3566
+ for (const r in Tn)
3595
3567
  ta(r, (i) => {
3596
3568
  const o = i.data;
3597
3569
  return i.provider !== e.provider || o.prefix !== e.prefix || o.lastModified === t;
@@ -3602,7 +3574,7 @@ function pc(e, t) {
3602
3574
  Fr || na();
3603
3575
  function n(r) {
3604
3576
  let i;
3605
- if (!In[r] || !(i = ea(r)))
3577
+ if (!Tn[r] || !(i = ea(r)))
3606
3578
  return;
3607
3579
  const o = Jo[r];
3608
3580
  let a;
@@ -3761,7 +3733,7 @@ function vc(e) {
3761
3733
  return 'url("' + wc(e) + '")';
3762
3734
  }
3763
3735
  let Qt;
3764
- function Ic() {
3736
+ function Tc() {
3765
3737
  try {
3766
3738
  Qt = window.trustedTypes.createPolicy("iconify", {
3767
3739
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return
@@ -3771,8 +3743,8 @@ function Ic() {
3771
3743
  Qt = null;
3772
3744
  }
3773
3745
  }
3774
- function Tc(e) {
3775
- return Qt === void 0 && Ic(), Qt ? Qt.createHTML(e) : e;
3746
+ function Ic(e) {
3747
+ return Qt === void 0 && Tc(), Qt ? Qt.createHTML(e) : e;
3776
3748
  }
3777
3749
  const ra = {
3778
3750
  ...Wo,
@@ -3856,8 +3828,8 @@ const Ec = (e, t, n, r) => {
3856
3828
  }, Object.assign(u, p);
3857
3829
  let M = 0, E = t.id;
3858
3830
  return typeof E == "string" && (E = E.replace(/-/g, "_")), u.dangerouslySetInnerHTML = {
3859
- __html: Tc(Yu(c.body, E ? () => E + "ID" + M++ : "iconifyReact"))
3860
- }, Ie.createElement("svg", u);
3831
+ __html: Ic(Yu(c.body, E ? () => E + "ID" + M++ : "iconifyReact"))
3832
+ }, Te.createElement("svg", u);
3861
3833
  }
3862
3834
  const { body: m, width: d, height: D } = e, x = a === "mask" || (a === "bg" ? !1 : m.indexOf("currentColor") !== -1), C = bc(m, {
3863
3835
  ...p,
@@ -3872,7 +3844,7 @@ const Ec = (e, t, n, r) => {
3872
3844
  ...Nc,
3873
3845
  ...x ? yr : ia,
3874
3846
  ...s
3875
- }, Ie.createElement("span", u);
3847
+ }, Te.createElement("span", u);
3876
3848
  };
3877
3849
  qo(!0);
3878
3850
  Hu("", Xu);
@@ -3908,7 +3880,7 @@ if (typeof document < "u" && typeof window < "u") {
3908
3880
  }
3909
3881
  }
3910
3882
  }
3911
- class oa extends Ie.Component {
3883
+ class oa extends Te.Component {
3912
3884
  constructor(t) {
3913
3885
  super(t), this.state = {
3914
3886
  // Render placeholder before component is mounted
@@ -3986,7 +3958,7 @@ class oa extends Ie.Component {
3986
3958
  render() {
3987
3959
  const t = this.props, n = this.state.icon;
3988
3960
  if (n === null)
3989
- return t.children ? t.children : Ie.createElement("span", {});
3961
+ return t.children ? t.children : Te.createElement("span", {});
3990
3962
  let r = t;
3991
3963
  return n.classes && (r = {
3992
3964
  ...t,
@@ -3997,25 +3969,25 @@ class oa extends Ie.Component {
3997
3969
  }, r, t._inline, t._ref);
3998
3970
  }
3999
3971
  }
4000
- const Tt = Ie.forwardRef(function(t, n) {
3972
+ const It = Te.forwardRef(function(t, n) {
4001
3973
  const r = {
4002
3974
  ...t,
4003
3975
  _ref: n,
4004
3976
  _inline: !1
4005
3977
  };
4006
- return Ie.createElement(oa, r);
3978
+ return Te.createElement(oa, r);
4007
3979
  });
4008
- Ie.forwardRef(function(t, n) {
3980
+ Te.forwardRef(function(t, n) {
4009
3981
  const r = {
4010
3982
  ...t,
4011
3983
  _ref: n,
4012
3984
  _inline: !0
4013
3985
  };
4014
- return Ie.createElement(oa, r);
3986
+ return Te.createElement(oa, r);
4015
3987
  });
4016
3988
  const jc = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0xMjAtMTIwdi0zMDBoNjB2MTk4bDU1OC01NThINTQwdi02MGgzMDB2MzAwaC02MHYtMTk4TDIyMi0xODBoMTk4djYwSDEyMFoiLz48L3N2Zz4=", Cc = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0zNzAtMjg3aDM2MHYtOTBIMzcwdjkwWk0xODAtMTIwcS0yNCAwLTQyLTE4dC0xOC00MnYtNjAwcTAtMjQgMTgtNDJ0NDItMThoNjAwcTI0IDAgNDIgMTh0MTggNDJ2NjAwcTAgMjQtMTggNDJ0LTQyIDE4SDE4MFptMC02MGg2MDB2LTYwMEgxODB2NjAwWm0wLTYwMHY2MDAtNjAwWiIvPjwvc3ZnPg==", Ac = 991;
4017
3989
  function aa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4018
- return rt(Ac) ? null : e ? /* @__PURE__ */ I.jsx(
3990
+ return rt(Ac) ? null : e ? /* @__PURE__ */ T.jsx(
4019
3991
  "button",
4020
3992
  {
4021
3993
  onClick: () => {
@@ -4030,7 +4002,7 @@ function aa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4030
4002
  },
4031
4003
  className: "xpert-chatbot-popup__header--btn-outline",
4032
4004
  "aria-expanded": !e,
4033
- children: /* @__PURE__ */ I.jsx(
4005
+ children: /* @__PURE__ */ T.jsx(
4034
4006
  "img",
4035
4007
  {
4036
4008
  "aria-hidden": !0,
@@ -4041,7 +4013,7 @@ function aa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4041
4013
  }
4042
4014
  )
4043
4015
  }
4044
- ) : /* @__PURE__ */ I.jsx(
4016
+ ) : /* @__PURE__ */ T.jsx(
4045
4017
  "button",
4046
4018
  {
4047
4019
  onClick: () => {
@@ -4055,7 +4027,7 @@ function aa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4055
4027
  cursor: "pointer"
4056
4028
  },
4057
4029
  "aria-expanded": !e,
4058
- children: /* @__PURE__ */ I.jsx(
4030
+ children: /* @__PURE__ */ T.jsx(
4059
4031
  "img",
4060
4032
  {
4061
4033
  "aria-hidden": !0,
@@ -4069,9 +4041,9 @@ function aa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4069
4041
  );
4070
4042
  }
4071
4043
  aa.propTypes = {
4072
- isNormalSize: T.bool.isRequired,
4073
- setIsMounted: T.func.isRequired,
4074
- setIsNormalSize: T.func.isRequired
4044
+ isNormalSize: I.bool.isRequired,
4045
+ setIsMounted: I.func.isRequired,
4046
+ setIsNormalSize: I.func.isRequired
4075
4047
  };
4076
4048
  function la({
4077
4049
  isNormalSize: e,
@@ -4080,8 +4052,8 @@ function la({
4080
4052
  onClose: r,
4081
4053
  isMounted: i
4082
4054
  }) {
4083
- return /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
4084
- /* @__PURE__ */ I.jsx(
4055
+ return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
4056
+ /* @__PURE__ */ T.jsx(
4085
4057
  "div",
4086
4058
  {
4087
4059
  style: {
@@ -4092,7 +4064,7 @@ function la({
4092
4064
  paddingTop: "1.25rem",
4093
4065
  paddingBottom: "1.25rem"
4094
4066
  },
4095
- children: /* @__PURE__ */ I.jsx(
4067
+ children: /* @__PURE__ */ T.jsx(
4096
4068
  aa,
4097
4069
  {
4098
4070
  isMounted: i,
@@ -4103,7 +4075,7 @@ function la({
4103
4075
  )
4104
4076
  }
4105
4077
  ),
4106
- /* @__PURE__ */ I.jsx(
4078
+ /* @__PURE__ */ T.jsx(
4107
4079
  "button",
4108
4080
  {
4109
4081
  style: {
@@ -4118,8 +4090,8 @@ function la({
4118
4090
  onClick: r,
4119
4091
  "aria-label": "Close Xpert dialog",
4120
4092
  type: "button",
4121
- children: /* @__PURE__ */ I.jsx(
4122
- Tt,
4093
+ children: /* @__PURE__ */ T.jsx(
4094
+ It,
4123
4095
  {
4124
4096
  icon: "material-symbols:close",
4125
4097
  alt: "Close",
@@ -4131,13 +4103,13 @@ function la({
4131
4103
  ] });
4132
4104
  }
4133
4105
  la.propTypes = {
4134
- isNormalSize: T.bool.isRequired,
4135
- setIsMounted: T.func.isRequired,
4136
- setIsNormalSize: T.func.isRequired,
4137
- onClose: T.func.isRequired,
4138
- isMounted: T.bool.isRequired
4106
+ isNormalSize: I.bool.isRequired,
4107
+ setIsMounted: I.func.isRequired,
4108
+ setIsNormalSize: I.func.isRequired,
4109
+ onClose: I.func.isRequired,
4110
+ isMounted: I.bool.isRequired
4139
4111
  };
4140
- const Pr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ I.jsxs(
4112
+ const Pr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ T.jsxs(
4141
4113
  "svg",
4142
4114
  {
4143
4115
  role: "banner",
@@ -4147,8 +4119,8 @@ const Pr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ I.jsxs(
4147
4119
  fill: "#none",
4148
4120
  xmlns: "http://www.w3.org/2000/svg",
4149
4121
  children: [
4150
- /* @__PURE__ */ I.jsx("path", { d: "M0 5 L0 20 L70 20 L70 5 Z", fill: t }),
4151
- /* @__PURE__ */ I.jsx(
4122
+ /* @__PURE__ */ T.jsx("path", { d: "M0 5 L0 20 L70 20 L70 5 Z", fill: t }),
4123
+ /* @__PURE__ */ T.jsx(
4152
4124
  "path",
4153
4125
  {
4154
4126
  fill: e,
@@ -4157,13 +4129,13 @@ const Pr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ I.jsxs(
4157
4129
  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"
4158
4130
  }
4159
4131
  ),
4160
- /* @__PURE__ */ I.jsx("path", {})
4132
+ /* @__PURE__ */ T.jsx("path", {})
4161
4133
  ]
4162
4134
  }
4163
4135
  );
4164
4136
  Pr.propTypes = {
4165
- backgroundColor: T.string,
4166
- textColor: T.string
4137
+ backgroundColor: I.string,
4138
+ textColor: I.string
4167
4139
  };
4168
4140
  Pr.defaultProps = {
4169
4141
  backgroundColor: "#F0CC00",
@@ -4180,7 +4152,7 @@ function sa({
4180
4152
  }) {
4181
4153
  var s, u, c, p, m, d, D, x, C;
4182
4154
  const { primaryColor: o, conversationScreen: a } = Fe(Pe), l = rt(Oc);
4183
- return /* @__PURE__ */ I.jsxs(
4155
+ return /* @__PURE__ */ T.jsxs(
4184
4156
  "div",
4185
4157
  {
4186
4158
  "data-testid": "xpert-conversations-header",
@@ -4192,7 +4164,7 @@ function sa({
4192
4164
  ...(s = a.header.container) == null ? void 0 : s.style
4193
4165
  },
4194
4166
  children: [
4195
- /* @__PURE__ */ I.jsx(
4167
+ /* @__PURE__ */ T.jsx(
4196
4168
  "span",
4197
4169
  {
4198
4170
  className: "xpert-chatbot-popup__header_container",
@@ -4202,7 +4174,7 @@ function sa({
4202
4174
  }
4203
4175
  }
4204
4176
  ),
4205
- ((m = (p = a == null ? void 0 : a.header) == null ? void 0 : p.logo) == null ? void 0 : m.type) === "edx" ? /* @__PURE__ */ I.jsx(
4177
+ ((m = (p = a == null ? void 0 : a.header) == null ? void 0 : p.logo) == null ? void 0 : m.type) === "edx" ? /* @__PURE__ */ T.jsx(
4206
4178
  "img",
4207
4179
  {
4208
4180
  "data-ot-ignore": "",
@@ -4212,14 +4184,14 @@ function sa({
4212
4184
  "aria-hidden": !0,
4213
4185
  style: a.header.logo.style
4214
4186
  }
4215
- ) : /* @__PURE__ */ I.jsx(
4187
+ ) : /* @__PURE__ */ T.jsx(
4216
4188
  Sc,
4217
4189
  {
4218
4190
  backgroundColor: (d = a.header.logo.style) == null ? void 0 : d.backgroundColor,
4219
4191
  textColor: (D = a.header.logo.style) == null ? void 0 : D.color
4220
4192
  }
4221
4193
  ),
4222
- /* @__PURE__ */ I.jsx(
4194
+ /* @__PURE__ */ T.jsx(
4223
4195
  la,
4224
4196
  {
4225
4197
  isMounted: n,
@@ -4229,7 +4201,7 @@ function sa({
4229
4201
  onClose: i
4230
4202
  }
4231
4203
  ),
4232
- /* @__PURE__ */ I.jsx(
4204
+ /* @__PURE__ */ T.jsx(
4233
4205
  "span",
4234
4206
  {
4235
4207
  className: "xpert-chatbot-popup__header_container",
@@ -4244,11 +4216,11 @@ function sa({
4244
4216
  );
4245
4217
  }
4246
4218
  sa.propTypes = {
4247
- isMounted: T.bool.isRequired,
4248
- isNormalSize: T.bool.isRequired,
4249
- setIsMounted: T.func.isRequired,
4250
- setIsNormalSize: T.func.isRequired,
4251
- onClose: T.func.isRequired
4219
+ isMounted: I.bool.isRequired,
4220
+ isNormalSize: I.bool.isRequired,
4221
+ setIsMounted: I.func.isRequired,
4222
+ setIsNormalSize: I.func.isRequired,
4223
+ onClose: I.func.isRequired
4252
4224
  };
4253
4225
  function Rr({
4254
4226
  containerStyle: e,
@@ -4266,8 +4238,8 @@ function Rr({
4266
4238
  return xe(() => {
4267
4239
  var p;
4268
4240
  (o || a) && ((p = l.current) == null || p.focus());
4269
- }, [a, o, l]), /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
4270
- /* @__PURE__ */ I.jsx(
4241
+ }, [a, o, l]), /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
4242
+ /* @__PURE__ */ T.jsx(
4271
4243
  "textarea",
4272
4244
  {
4273
4245
  disabled: s,
@@ -4296,7 +4268,7 @@ function Rr({
4296
4268
  }
4297
4269
  }
4298
4270
  ),
4299
- /* @__PURE__ */ I.jsx(
4271
+ /* @__PURE__ */ T.jsx(
4300
4272
  "button",
4301
4273
  {
4302
4274
  disabled: s,
@@ -4305,22 +4277,22 @@ function Rr({
4305
4277
  p.preventDefault(), i(u);
4306
4278
  },
4307
4279
  "aria-label": "Send message",
4308
- children: /* @__PURE__ */ I.jsx(Tt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
4280
+ children: /* @__PURE__ */ T.jsx(It, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
4309
4281
  }
4310
4282
  )
4311
4283
  ] });
4312
4284
  }
4313
4285
  Rr.propTypes = {
4314
- containerStyle: T.shape(),
4315
- handleChange: T.func.isRequired,
4316
- handleInput: T.func.isRequired,
4317
- handleKeyDown: T.func.isRequired,
4318
- handleSend: T.func.isRequired,
4319
- hasError: T.bool,
4320
- hasXpertMessages: T.bool,
4321
- inputRef: T.shape({ current: T.instanceOf(Object) }).isRequired,
4322
- loading: T.bool.isRequired,
4323
- userInput: T.string.isRequired
4286
+ containerStyle: I.shape(),
4287
+ handleChange: I.func.isRequired,
4288
+ handleInput: I.func.isRequired,
4289
+ handleKeyDown: I.func.isRequired,
4290
+ handleSend: I.func.isRequired,
4291
+ hasError: I.bool,
4292
+ hasXpertMessages: I.bool,
4293
+ inputRef: I.shape({ current: I.instanceOf(Object) }).isRequired,
4294
+ loading: I.bool.isRequired,
4295
+ userInput: I.string.isRequired
4324
4296
  };
4325
4297
  Rr.defaultProps = {
4326
4298
  containerStyle: void 0,
@@ -5368,7 +5340,7 @@ function Ur(e, t, n) {
5368
5340
  }
5369
5341
  return t;
5370
5342
  }
5371
- const Ir = {
5343
+ const Tr = {
5372
5344
  name: "attention",
5373
5345
  tokenize: Mp,
5374
5346
  resolveAll: yp
@@ -5487,7 +5459,7 @@ function xp(e, t, n) {
5487
5459
  return n(d);
5488
5460
  }
5489
5461
  }
5490
- const Tn = {
5462
+ const In = {
5491
5463
  tokenize: wp,
5492
5464
  partial: !0
5493
5465
  };
@@ -5504,9 +5476,9 @@ const ga = {
5504
5476
  name: "blockQuote",
5505
5477
  tokenize: vp,
5506
5478
  continuation: {
5507
- tokenize: Ip
5479
+ tokenize: Tp
5508
5480
  },
5509
- exit: Tp
5481
+ exit: Ip
5510
5482
  };
5511
5483
  function vp(e, t, n) {
5512
5484
  const r = this;
@@ -5524,7 +5496,7 @@ function vp(e, t, n) {
5524
5496
  return ie(a) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(a), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(a));
5525
5497
  }
5526
5498
  }
5527
- function Ip(e, t, n) {
5499
+ function Tp(e, t, n) {
5528
5500
  const r = this;
5529
5501
  return i;
5530
5502
  function i(a) {
@@ -5539,7 +5511,7 @@ function Ip(e, t, n) {
5539
5511
  return e.attempt(ga, t, n)(a);
5540
5512
  }
5541
5513
  }
5542
- function Tp(e) {
5514
+ function Ip(e) {
5543
5515
  e.exit("blockQuote");
5544
5516
  }
5545
5517
  const ma = {
@@ -6283,7 +6255,7 @@ function rf(e, t, n) {
6283
6255
  function of(e, t, n) {
6284
6256
  return r;
6285
6257
  function r(i) {
6286
- return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Tn, t, n);
6258
+ return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(In, t, n);
6287
6259
  }
6288
6260
  }
6289
6261
  const af = {
@@ -6644,10 +6616,10 @@ const De = {
6644
6616
  tokenize: Nf
6645
6617
  },
6646
6618
  exit: Ef
6647
- }, If = {
6619
+ }, Tf = {
6648
6620
  tokenize: jf,
6649
6621
  partial: !0
6650
- }, Tf = {
6622
+ }, If = {
6651
6623
  tokenize: kf,
6652
6624
  partial: !0
6653
6625
  };
@@ -6672,11 +6644,11 @@ function Df(e, t, n) {
6672
6644
  }
6673
6645
  function u(d) {
6674
6646
  return e.enter("listItemMarker"), e.consume(d), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || d, e.check(
6675
- Tn,
6647
+ In,
6676
6648
  // Can’t be empty when interrupting.
6677
6649
  r.interrupt ? n : c,
6678
6650
  e.attempt(
6679
- If,
6651
+ Tf,
6680
6652
  m,
6681
6653
  p
6682
6654
  )
@@ -6694,7 +6666,7 @@ function Df(e, t, n) {
6694
6666
  }
6695
6667
  function Nf(e, t, n) {
6696
6668
  const r = this;
6697
- return r.containerState._closeFlow = void 0, e.check(Tn, i, o);
6669
+ return r.containerState._closeFlow = void 0, e.check(In, i, o);
6698
6670
  function i(l) {
6699
6671
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, pe(
6700
6672
  e,
@@ -6704,7 +6676,7 @@ function Nf(e, t, n) {
6704
6676
  )(l);
6705
6677
  }
6706
6678
  function o(l) {
6707
- return r.containerState.furtherBlankLines || !ie(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Tf, t, a)(l));
6679
+ return r.containerState.furtherBlankLines || !ie(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(If, t, a)(l));
6708
6680
  }
6709
6681
  function a(l) {
6710
6682
  return r.containerState._closeFlow = !0, r.interrupt = void 0, pe(
@@ -6796,7 +6768,7 @@ const Sf = {
6796
6768
  function Of(e) {
6797
6769
  const t = this, n = e.attempt(
6798
6770
  // Try to parse a blank line.
6799
- Tn,
6771
+ In,
6800
6772
  r,
6801
6773
  // Try to parse initial flow (essentially, only code).
6802
6774
  e.attempt(
@@ -6830,12 +6802,12 @@ function Of(e) {
6830
6802
  }
6831
6803
  }
6832
6804
  const zf = {
6833
- resolveAll: Ia()
6805
+ resolveAll: Ta()
6834
6806
  }, Lf = va("string"), _f = va("text");
6835
6807
  function va(e) {
6836
6808
  return {
6837
6809
  tokenize: t,
6838
- resolveAll: Ia(
6810
+ resolveAll: Ta(
6839
6811
  e === "text" ? Ff : void 0
6840
6812
  )
6841
6813
  };
@@ -6870,7 +6842,7 @@ function va(e) {
6870
6842
  }
6871
6843
  }
6872
6844
  }
6873
- function Ia(e) {
6845
+ function Ta(e) {
6874
6846
  return t;
6875
6847
  function t(n, r) {
6876
6848
  let i = -1, o;
@@ -7175,15 +7147,15 @@ const Bf = {
7175
7147
  [-3]: ir,
7176
7148
  33: yf,
7177
7149
  38: ya,
7178
- 42: Ir,
7150
+ 42: Tr,
7179
7151
  60: [bp, af],
7180
7152
  91: bf,
7181
7153
  92: [qp, ma],
7182
7154
  93: Qr,
7183
- 95: Ir,
7155
+ 95: Tr,
7184
7156
  96: Sp
7185
7157
  }, Vf = {
7186
- null: [Ir, zf]
7158
+ null: [Tr, zf]
7187
7159
  }, Wf = {
7188
7160
  null: [42, 95]
7189
7161
  }, Gf = {
@@ -7264,7 +7236,7 @@ function Jf(e) {
7264
7236
  ;
7265
7237
  return e;
7266
7238
  }
7267
- function Ta(e, t) {
7239
+ function Ia(e, t) {
7268
7240
  const n = Number.parseInt(e, t);
7269
7241
  return (
7270
7242
  // C0 except for HT, LF, FF, CR, space.
@@ -7284,7 +7256,7 @@ function nd(e, t, n) {
7284
7256
  return t;
7285
7257
  if (n.charCodeAt(0) === 35) {
7286
7258
  const i = n.charCodeAt(1), o = i === 120 || i === 88;
7287
- return Ta(n.slice(o ? 2 : 1), o ? 16 : 10);
7259
+ return Ia(n.slice(o ? 2 : 1), o ? 16 : 10);
7288
7260
  }
7289
7261
  return Br(n) || e;
7290
7262
  }
@@ -7432,12 +7404,12 @@ function id(e) {
7432
7404
  if (N[oe][0] === "enter")
7433
7405
  J.push(oe);
7434
7406
  else {
7435
- const Te = J.pop();
7436
- oe = i(N, Te, oe);
7407
+ const Ie = J.pop();
7408
+ oe = i(N, Ie, oe);
7437
7409
  }
7438
7410
  for (oe = -1; ++oe < N.length; ) {
7439
- const Te = t[N[oe][0]];
7440
- Da.call(Te, N[oe][1].type) && Te[N[oe][1].type].call(
7411
+ const Ie = t[N[oe][0]];
7412
+ Da.call(Ie, N[oe][1].type) && Ie[N[oe][1].type].call(
7441
7413
  Object.assign(
7442
7414
  {
7443
7415
  sliceSerialize: N[oe][2].sliceSerialize
@@ -7448,8 +7420,8 @@ function id(e) {
7448
7420
  );
7449
7421
  }
7450
7422
  if (Y.tokenStack.length > 0) {
7451
- const Te = Y.tokenStack[Y.tokenStack.length - 1];
7452
- (Te[1] || oo).call(Y, void 0, Te[0]);
7423
+ const Ie = Y.tokenStack[Y.tokenStack.length - 1];
7424
+ (Ie[1] || oo).call(Y, void 0, Ie[0]);
7453
7425
  }
7454
7426
  for (O.position = {
7455
7427
  start: et(
@@ -7471,7 +7443,7 @@ function id(e) {
7471
7443
  return O;
7472
7444
  }
7473
7445
  function i(N, O, Y) {
7474
- let J = O - 1, oe = -1, Te = !1, He, $e, lt, Ee;
7446
+ let J = O - 1, oe = -1, Ie = !1, He, $e, lt, Ee;
7475
7447
  for (; ++J <= Y; ) {
7476
7448
  const ue = N[J];
7477
7449
  if (ue[1].type === "listUnordered" || ue[1].type === "listOrdered" || ue[1].type === "blockQuote" ? (ue[0] === "enter" ? oe++ : oe--, Ee = void 0) : ue[1].type === "lineEndingBlank" ? ue[0] === "enter" && (He && !Ee && !oe && !lt && (lt = J), Ee = void 0) : ue[1].type === "linePrefix" || ue[1].type === "listItemValue" || ue[1].type === "listItemMarker" || ue[1].type === "listItemPrefix" || ue[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !oe && ue[0] === "enter" && ue[1].type === "listItemPrefix" || oe === -1 && ue[0] === "exit" && (ue[1].type === "listUnordered" || ue[1].type === "listOrdered")) {
@@ -7482,7 +7454,7 @@ function id(e) {
7482
7454
  if (Oe[1].type === "lineEnding" || Oe[1].type === "lineEndingBlank") {
7483
7455
  if (Oe[0] === "exit")
7484
7456
  continue;
7485
- $e && (N[$e][1].type = "lineEndingBlank", Te = !0), Oe[1].type = "lineEnding", $e = Ct;
7457
+ $e && (N[$e][1].type = "lineEndingBlank", Ie = !0), Oe[1].type = "lineEnding", $e = Ct;
7486
7458
  } else if (!(Oe[1].type === "linePrefix" || Oe[1].type === "blockQuotePrefix" || Oe[1].type === "blockQuotePrefixWhitespace" || Oe[1].type === "blockQuoteMarker" || Oe[1].type === "listItemIndent"))
7487
7459
  break;
7488
7460
  }
@@ -7500,7 +7472,7 @@ function id(e) {
7500
7472
  }, N.splice(J, 0, ["enter", He, ue[2]]), J++, Y++, lt = void 0, Ee = !0);
7501
7473
  }
7502
7474
  }
7503
- return N[O][1]._spread = Te, Y;
7475
+ return N[O][1]._spread = Ie, Y;
7504
7476
  }
7505
7477
  function o(N, O) {
7506
7478
  n[N] = O;
@@ -7697,7 +7669,7 @@ function id(e) {
7697
7669
  function ve(N) {
7698
7670
  const O = this.sliceSerialize(N), Y = a("characterReferenceType");
7699
7671
  let J;
7700
- Y ? (J = Ta(
7672
+ Y ? (J = Ia(
7701
7673
  O,
7702
7674
  Y === "characterReferenceMarkerNumeric" ? 10 : 16
7703
7675
  ), o("characterReferenceType")) : J = Br(O);
@@ -8126,7 +8098,7 @@ function vd(e, t) {
8126
8098
  };
8127
8099
  return e.patch(t, o), e.applyData(t, o);
8128
8100
  }
8129
- function Id(e, t) {
8101
+ function Td(e, t) {
8130
8102
  const n = {
8131
8103
  type: "element",
8132
8104
  tagName: "p",
@@ -8135,7 +8107,7 @@ function Id(e, t) {
8135
8107
  };
8136
8108
  return e.patch(t, n), e.applyData(t, n);
8137
8109
  }
8138
- function Td(e, t) {
8110
+ function Id(e, t) {
8139
8111
  const n = { type: "root", children: e.wrap(e.all(t)) };
8140
8112
  return e.patch(t, n), e.applyData(t, n);
8141
8113
  }
@@ -8278,8 +8250,8 @@ const Od = {
8278
8250
  link: bd,
8279
8251
  listItem: xd,
8280
8252
  list: vd,
8281
- paragraph: Id,
8282
- root: Td,
8253
+ paragraph: Td,
8254
+ root: Id,
8283
8255
  strong: Dd,
8284
8256
  table: kd,
8285
8257
  tableCell: jd,
@@ -8665,7 +8637,7 @@ function za(e, t) {
8665
8637
  Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
8666
8638
  return new Gt(n, r, t);
8667
8639
  }
8668
- function Tr(e) {
8640
+ function Ir(e) {
8669
8641
  return e.toLowerCase();
8670
8642
  }
8671
8643
  class Ue {
@@ -8736,7 +8708,7 @@ function Nt(e) {
8736
8708
  i,
8737
8709
  e.space
8738
8710
  );
8739
- e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Tr(r)] = r, n[Tr(o.attribute)] = r;
8711
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Ir(r)] = r, n[Ir(o.attribute)] = r;
8740
8712
  }
8741
8713
  return new Gt(t, n, e.space);
8742
8714
  }
@@ -9747,7 +9719,7 @@ const Ua = Nt({
9747
9719
  }
9748
9720
  }), ih = /^data[-\w.:]+$/i, ho = /-[a-z]/g, oh = /[A-Z]/g;
9749
9721
  function ah(e, t) {
9750
- const n = Tr(t);
9722
+ const n = Ir(t);
9751
9723
  let r = t, i = Ue;
9752
9724
  if (n in e.normal)
9753
9725
  return e.property[e.normal[n]];
@@ -9931,7 +9903,7 @@ function Mh(e, t) {
9931
9903
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
9932
9904
  ).trim();
9933
9905
  }
9934
- var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh = /^\s*/, wh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, vh = /^:\s*/, Ih = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Th = /^[;\s]*/, Dh = /^\s+|\s+$/g, Nh = `
9906
+ var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh = /^\s*/, wh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, vh = /^:\s*/, Th = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ih = /^[;\s]*/, Dh = /^\s+|\s+$/g, Nh = `
9935
9907
  `, yo = "/", Mo = "*", pt = "", kh = "comment", Eh = "declaration", jh = function(e, t) {
9936
9908
  if (typeof e != "string")
9937
9909
  throw new TypeError("First argument must be a string");
@@ -9997,12 +9969,12 @@ var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh
9997
9969
  if (x) {
9998
9970
  if (p(), !s(vh))
9999
9971
  return l("property missing ':'");
10000
- var C = s(Ih), M = D({
9972
+ var C = s(Th), M = D({
10001
9973
  type: Eh,
10002
9974
  property: bo(x[0].replace(mo, pt)),
10003
9975
  value: C ? bo(C[0].replace(mo, pt)) : pt
10004
9976
  });
10005
- return s(Th), M;
9977
+ return s(Ih), M;
10006
9978
  }
10007
9979
  }
10008
9980
  function d() {
@@ -10049,7 +10021,7 @@ function zh(e, t, n, r) {
10049
10021
  const m = t.position || {
10050
10022
  start: { line: null, column: null, offset: null },
10051
10023
  end: { line: null, column: null, offset: null }
10052
- }, d = i.components && Nr.call(i.components, l) ? i.components[l] : l, D = typeof d == "string" || d === Ie.Fragment;
10024
+ }, d = i.components && Nr.call(i.components, l) ? i.components[l] : l, D = typeof d == "string" || d === Te.Fragment;
10053
10025
  if (!gh.isValidElementType(d))
10054
10026
  throw new TypeError(
10055
10027
  `Component for name \`${l}\` not defined or is not renderable`
@@ -10070,7 +10042,7 @@ function zh(e, t, n, r) {
10070
10042
  const x = Lh(t);
10071
10043
  s.checked = x && x.properties ? !!x.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
10072
10044
  }
10073
- return !D && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), D || (s.isHeader = l === "th")), !D && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Rh(m)), !D && i.rawSourcePos && (s.sourcePosition = t.position), !D && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), D || (s.node = t), p.length > 0 ? Ie.createElement(d, s, p) : Ie.createElement(d, s);
10045
+ return !D && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), D || (s.isHeader = l === "th")), !D && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Rh(m)), !D && i.rawSourcePos && (s.sourcePosition = t.position), !D && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), D || (s.node = t), p.length > 0 ? Te.createElement(d, s, p) : Te.createElement(d, s);
10074
10046
  }
10075
10047
  function Lh(e) {
10076
10048
  let t = -1;
@@ -10160,83 +10132,83 @@ function qa(e) {
10160
10132
  const r = t.runSync(t.parse(n), n);
10161
10133
  if (r.type !== "root")
10162
10134
  throw new TypeError("Expected a `root` node");
10163
- let i = Ie.createElement(
10164
- Ie.Fragment,
10135
+ let i = Te.createElement(
10136
+ Te.Fragment,
10165
10137
  {},
10166
10138
  $a({ options: e, schema: uh, listDepth: 0 }, r)
10167
10139
  );
10168
- return e.className && (i = Ie.createElement("div", { className: e.className }, i)), i;
10140
+ return e.className && (i = Te.createElement("div", { className: e.className }, i)), i;
10169
10141
  }
10170
10142
  qa.propTypes = {
10171
10143
  // Core options:
10172
- children: T.string,
10144
+ children: I.string,
10173
10145
  // Layout options:
10174
- className: T.string,
10146
+ className: I.string,
10175
10147
  // Filter options:
10176
- allowElement: T.func,
10177
- allowedElements: T.arrayOf(T.string),
10178
- disallowedElements: T.arrayOf(T.string),
10179
- unwrapDisallowed: T.bool,
10148
+ allowElement: I.func,
10149
+ allowedElements: I.arrayOf(I.string),
10150
+ disallowedElements: I.arrayOf(I.string),
10151
+ unwrapDisallowed: I.bool,
10180
10152
  // Plugin options:
10181
- remarkPlugins: T.arrayOf(
10182
- T.oneOfType([
10183
- T.object,
10184
- T.func,
10185
- T.arrayOf(
10186
- T.oneOfType([
10187
- T.bool,
10188
- T.string,
10189
- T.object,
10190
- T.func,
10191
- T.arrayOf(
10153
+ remarkPlugins: I.arrayOf(
10154
+ I.oneOfType([
10155
+ I.object,
10156
+ I.func,
10157
+ I.arrayOf(
10158
+ I.oneOfType([
10159
+ I.bool,
10160
+ I.string,
10161
+ I.object,
10162
+ I.func,
10163
+ I.arrayOf(
10192
10164
  // prettier-ignore
10193
10165
  // type-coverage:ignore-next-line
10194
- T.any
10166
+ I.any
10195
10167
  )
10196
10168
  ])
10197
10169
  )
10198
10170
  ])
10199
10171
  ),
10200
- rehypePlugins: T.arrayOf(
10201
- T.oneOfType([
10202
- T.object,
10203
- T.func,
10204
- T.arrayOf(
10205
- T.oneOfType([
10206
- T.bool,
10207
- T.string,
10208
- T.object,
10209
- T.func,
10210
- T.arrayOf(
10172
+ rehypePlugins: I.arrayOf(
10173
+ I.oneOfType([
10174
+ I.object,
10175
+ I.func,
10176
+ I.arrayOf(
10177
+ I.oneOfType([
10178
+ I.bool,
10179
+ I.string,
10180
+ I.object,
10181
+ I.func,
10182
+ I.arrayOf(
10211
10183
  // prettier-ignore
10212
10184
  // type-coverage:ignore-next-line
10213
- T.any
10185
+ I.any
10214
10186
  )
10215
10187
  ])
10216
10188
  )
10217
10189
  ])
10218
10190
  ),
10219
10191
  // Transform options:
10220
- sourcePos: T.bool,
10221
- rawSourcePos: T.bool,
10222
- skipHtml: T.bool,
10223
- includeElementIndex: T.bool,
10224
- transformLinkUri: T.oneOfType([T.func, T.bool]),
10225
- linkTarget: T.oneOfType([T.func, T.string]),
10226
- transformImageUri: T.func,
10227
- components: T.object
10192
+ sourcePos: I.bool,
10193
+ rawSourcePos: I.bool,
10194
+ skipHtml: I.bool,
10195
+ includeElementIndex: I.bool,
10196
+ transformLinkUri: I.oneOfType([I.func, I.bool]),
10197
+ linkTarget: I.oneOfType([I.func, I.string]),
10198
+ transformImageUri: I.func,
10199
+ components: I.object
10228
10200
  };
10229
10201
  function Va({ message: e, id: t, onFeedbackThumbSelection: n }) {
10230
- return /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
10231
- /* @__PURE__ */ I.jsx(
10202
+ return /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
10203
+ /* @__PURE__ */ T.jsx(
10232
10204
  "button",
10233
10205
  {
10234
10206
  className: `xpert-chatbot-popup__feedback--btn-up
10235
10207
  ${e.feedbackThumbType === "UP" ? "xpert-chatbot-popup__feedback--btn-up-selected" : ""}`,
10236
10208
  onClick: () => n(t, "UP"),
10237
10209
  "aria-label": "I like this response",
10238
- children: /* @__PURE__ */ I.jsx(
10239
- Tt,
10210
+ children: /* @__PURE__ */ T.jsx(
10211
+ It,
10240
10212
  {
10241
10213
  className: "xpert-chatbot-popup__feedback--btn-up-icon",
10242
10214
  icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
@@ -10244,7 +10216,7 @@ function Va({ message: e, id: t, onFeedbackThumbSelection: n }) {
10244
10216
  )
10245
10217
  }
10246
10218
  ),
10247
- /* @__PURE__ */ I.jsx(
10219
+ /* @__PURE__ */ T.jsx(
10248
10220
  "button",
10249
10221
  {
10250
10222
  style: { marginLeft: "-0.7rem" },
@@ -10252,8 +10224,8 @@ function Va({ message: e, id: t, onFeedbackThumbSelection: n }) {
10252
10224
  ${e.feedbackThumbType === "DOWN" ? "xpert-chatbot-popup__feedback--btn-down-selected" : ""}`,
10253
10225
  onClick: () => n(t, "DOWN"),
10254
10226
  "aria-label": "I do not like this response",
10255
- children: /* @__PURE__ */ I.jsx(
10256
- Tt,
10227
+ children: /* @__PURE__ */ T.jsx(
10228
+ It,
10257
10229
  {
10258
10230
  className: "xpert-chatbot-popup__feedback--btn-down-icon",
10259
10231
  icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
@@ -10264,9 +10236,9 @@ function Va({ message: e, id: t, onFeedbackThumbSelection: n }) {
10264
10236
  ] });
10265
10237
  }
10266
10238
  Va.propTypes = {
10267
- id: T.number.isRequired,
10268
- message: T.shape().isRequired,
10269
- onFeedbackThumbSelection: T.func.isRequired
10239
+ id: I.number.isRequired,
10240
+ message: I.shape().isRequired,
10241
+ onFeedbackThumbSelection: I.func.isRequired
10270
10242
  };
10271
10243
  const Bh = (e) => {
10272
10244
  Array.from(e.entries()).forEach((n) => {
@@ -10337,18 +10309,18 @@ function _n({
10337
10309
  }
10338
10310
  }), t(!0), window.f9_postMessage({ type: "toggle" });
10339
10311
  };
10340
- return /* @__PURE__ */ I.jsxs("div", { title: "Talk to a live agent at anytime.", style: i, children: [
10341
- s && r && /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
10342
- /* @__PURE__ */ I.jsx(
10312
+ return /* @__PURE__ */ T.jsxs("div", { title: "Talk to a live agent at anytime.", style: i, children: [
10313
+ s && r && /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
10314
+ /* @__PURE__ */ T.jsx(
10343
10315
  "div",
10344
10316
  {
10345
10317
  style: { backgroundColor: c },
10346
10318
  className: "xpert-chatbot-popup__live-chat--message-border"
10347
10319
  }
10348
10320
  ),
10349
- /* @__PURE__ */ I.jsx("div", { children: "Talk to a live agent at anytime." })
10321
+ /* @__PURE__ */ T.jsx("div", { children: "Talk to a live agent at anytime." })
10350
10322
  ] }),
10351
- /* @__PURE__ */ I.jsxs(
10323
+ /* @__PURE__ */ T.jsxs(
10352
10324
  "button",
10353
10325
  {
10354
10326
  type: "button",
@@ -10357,7 +10329,7 @@ function _n({
10357
10329
  style: { position: "relative" },
10358
10330
  className: o,
10359
10331
  children: [
10360
- /* @__PURE__ */ I.jsx(
10332
+ /* @__PURE__ */ T.jsx(
10361
10333
  "img",
10362
10334
  {
10363
10335
  height: "24px",
@@ -10366,21 +10338,21 @@ function _n({
10366
10338
  alt: "Open live chat window icon"
10367
10339
  }
10368
10340
  ),
10369
- a && /* @__PURE__ */ I.jsx("span", { style: { marginLeft: "0.675rem" }, children: a })
10341
+ a && /* @__PURE__ */ T.jsx("span", { style: { marginLeft: "0.675rem" }, children: a })
10370
10342
  ]
10371
10343
  }
10372
10344
  )
10373
10345
  ] });
10374
10346
  }
10375
10347
  _n.propTypes = {
10376
- submitEvent: T.func,
10377
- setLiveChatOpen: T.func,
10378
- isTestUser: T.bool,
10379
- enableLiveChatMessage: T.bool,
10380
- containerStyle: T.shape(),
10381
- buttonClassName: T.string,
10382
- text: T.string,
10383
- userTrackingName: T.string
10348
+ submitEvent: I.func,
10349
+ setLiveChatOpen: I.func,
10350
+ isTestUser: I.bool,
10351
+ enableLiveChatMessage: I.bool,
10352
+ containerStyle: I.shape(),
10353
+ buttonClassName: I.string,
10354
+ text: I.string,
10355
+ userTrackingName: I.string
10384
10356
  };
10385
10357
  _n.defaultProps = {
10386
10358
  submitEvent: null,
@@ -10402,14 +10374,14 @@ const Fn = ({
10402
10374
  submitEvent: a,
10403
10375
  setLiveChatOpen: l,
10404
10376
  isTestUser: s
10405
- }) => /* @__PURE__ */ I.jsx(
10377
+ }) => /* @__PURE__ */ T.jsx(
10406
10378
  "div",
10407
10379
  {
10408
10380
  role: "status",
10409
10381
  className: "xpert-chatbot-popup__bubble--group",
10410
10382
  ref: i,
10411
- children: /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: [
10412
- /* @__PURE__ */ I.jsx(
10383
+ children: /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: [
10384
+ /* @__PURE__ */ T.jsx(
10413
10385
  "div",
10414
10386
  {
10415
10387
  "data-testid": "message-container",
@@ -10417,9 +10389,9 @@ const Fn = ({
10417
10389
  role: "region",
10418
10390
  "aria-label": "Assistant message",
10419
10391
  style: { maxWidth: n ? "85%" : "67%" },
10420
- children: t.liveAgent ? /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
10421
- /* @__PURE__ */ I.jsx("div", { children: "Sure, I can get you to someone who can help." }),
10422
- /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
10392
+ children: t.liveAgent ? /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
10393
+ /* @__PURE__ */ T.jsx("div", { children: "Sure, I can get you to someone who can help." }),
10394
+ /* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsx(
10423
10395
  _n,
10424
10396
  {
10425
10397
  submitEvent: a,
@@ -10431,11 +10403,11 @@ const Fn = ({
10431
10403
  userTrackingName: "assistant.response.clicked"
10432
10404
  }
10433
10405
  ) })
10434
- ] }) : /* @__PURE__ */ I.jsx(
10406
+ ] }) : /* @__PURE__ */ T.jsx(
10435
10407
  qa,
10436
10408
  {
10437
10409
  components: {
10438
- a: (u) => /* @__PURE__ */ I.jsx(
10410
+ a: (u) => /* @__PURE__ */ T.jsx(
10439
10411
  "a",
10440
10412
  {
10441
10413
  ...u,
@@ -10454,7 +10426,7 @@ const Fn = ({
10454
10426
  )
10455
10427
  }
10456
10428
  ),
10457
- t.disableFeedback ? null : /* @__PURE__ */ I.jsx(
10429
+ t.disableFeedback ? null : /* @__PURE__ */ T.jsx(
10458
10430
  Va,
10459
10431
  {
10460
10432
  id: e,
@@ -10466,15 +10438,15 @@ const Fn = ({
10466
10438
  }
10467
10439
  );
10468
10440
  Fn.propTypes = {
10469
- index: T.number.isRequired,
10470
- message: T.shape().isRequired,
10471
- onFeedbackThumbSelection: T.func.isRequired,
10472
- isNormalSize: T.bool.isRequired,
10473
- messageRef: T.shape({ current: T.instanceOf(Element) }),
10474
- handleMessageLinkClicked: T.func,
10475
- submitEvent: T.func,
10476
- setLiveChatOpen: T.func,
10477
- isTestUser: T.bool
10441
+ index: I.number.isRequired,
10442
+ message: I.shape().isRequired,
10443
+ onFeedbackThumbSelection: I.func.isRequired,
10444
+ isNormalSize: I.bool.isRequired,
10445
+ messageRef: I.shape({ current: I.instanceOf(Element) }),
10446
+ handleMessageLinkClicked: I.func,
10447
+ submitEvent: I.func,
10448
+ setLiveChatOpen: I.func,
10449
+ isTestUser: I.bool
10478
10450
  };
10479
10451
  Fn.defaultProps = {
10480
10452
  submitEvent: null,
@@ -10487,7 +10459,7 @@ const $h = Fn, Wa = () => {
10487
10459
  return xe(() => {
10488
10460
  var n;
10489
10461
  (n = t == null ? void 0 : t.current) == null || n.focus();
10490
- }, []), /* @__PURE__ */ I.jsxs(
10462
+ }, []), /* @__PURE__ */ T.jsxs(
10491
10463
  "div",
10492
10464
  {
10493
10465
  ref: t,
@@ -10496,9 +10468,9 @@ const $h = Fn, Wa = () => {
10496
10468
  "aria-live": "assertive",
10497
10469
  className: "xpert-chatbot-popup__conversations_disclaimer--text",
10498
10470
  children: [
10499
- /* @__PURE__ */ I.jsx("span", { children: e.text }),
10500
- /* @__PURE__ */ I.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
10501
- /* @__PURE__ */ I.jsx(
10471
+ /* @__PURE__ */ T.jsx("span", { children: e.text }),
10472
+ /* @__PURE__ */ T.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
10473
+ /* @__PURE__ */ T.jsx(
10502
10474
  "a",
10503
10475
  {
10504
10476
  href: e.privacyPolicyLink,
@@ -10518,11 +10490,11 @@ Wa.displayName = "ConversationScreenDisclaimer";
10518
10490
  const qh = Wa, Kr = ({ loading: e, onPromptClick: t }) => {
10519
10491
  var i;
10520
10492
  const { primaryColor: n, conversationScreen: r } = Fe(Pe);
10521
- return /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
10522
- /* @__PURE__ */ I.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
10493
+ return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
10494
+ /* @__PURE__ */ T.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
10523
10495
  (i = r.prompts) == null ? void 0 : i.map((o) => {
10524
10496
  var a;
10525
- return /* @__PURE__ */ I.jsx(
10497
+ return /* @__PURE__ */ T.jsx(
10526
10498
  "button",
10527
10499
  {
10528
10500
  className: "xpert-chatbot-popup__bubble--prompt",
@@ -10542,11 +10514,11 @@ const qh = Wa, Kr = ({ loading: e, onPromptClick: t }) => {
10542
10514
  ] });
10543
10515
  };
10544
10516
  Kr.propTypes = {
10545
- loading: T.bool.isRequired,
10546
- onPromptClick: T.func.isRequired
10517
+ loading: I.bool.isRequired,
10518
+ onPromptClick: I.func.isRequired
10547
10519
  };
10548
10520
  Kr.displayName = "PromptList";
10549
- const Vh = Kr, Xr = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ I.jsx("div", { role: "status", className: "xpert-chatbot-popup__bubble--group", children: /* @__PURE__ */ I.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ I.jsx(
10521
+ const Vh = Kr, Xr = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ T.jsx("div", { role: "status", className: "xpert-chatbot-popup__bubble--group", children: /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ T.jsx(
10550
10522
  "div",
10551
10523
  {
10552
10524
  "data-testid": "message-container",
@@ -10556,14 +10528,14 @@ const Vh = Kr, Xr = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ I.jsx("
10556
10528
  }
10557
10529
  ) }) });
10558
10530
  Xr.propTypes = {
10559
- message: T.string.isRequired,
10560
- isNormalSize: T.bool.isRequired
10531
+ message: I.string.isRequired,
10532
+ isNormalSize: I.bool.isRequired
10561
10533
  };
10562
10534
  Xr.displayName = "SystemMessageBubble";
10563
10535
  const Wh = Xr, Jr = ({ content: e, isNormalSize: t }) => {
10564
10536
  var i;
10565
10537
  const { primaryColor: n, conversationScreen: r } = Fe(Pe);
10566
- return /* @__PURE__ */ I.jsx(
10538
+ return /* @__PURE__ */ T.jsx(
10567
10539
  "div",
10568
10540
  {
10569
10541
  role: "status",
@@ -10578,8 +10550,8 @@ const Wh = Xr, Jr = ({ content: e, isNormalSize: t }) => {
10578
10550
  );
10579
10551
  };
10580
10552
  Jr.propTypes = {
10581
- content: T.string.isRequired,
10582
- isNormalSize: T.bool.isRequired
10553
+ content: I.string.isRequired,
10554
+ isNormalSize: I.bool.isRequired
10583
10555
  };
10584
10556
  Jr.displayName = "UserMessageBubble";
10585
10557
  const Gh = Jr, Pn = ({
@@ -10600,10 +10572,10 @@ const Gh = Jr, Pn = ({
10600
10572
  behavior: "instant",
10601
10573
  block: "start"
10602
10574
  });
10603
- }, [e.length]), /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
10604
- /* @__PURE__ */ I.jsx(qh, {}),
10605
- (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ I.jsx(Vh, { loading: t, onPromptClick: i }),
10606
- /* @__PURE__ */ I.jsxs(
10575
+ }, [e.length]), /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
10576
+ /* @__PURE__ */ T.jsx(qh, {}),
10577
+ (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ T.jsx(Vh, { loading: t, onPromptClick: i }),
10578
+ /* @__PURE__ */ T.jsxs(
10607
10579
  "div",
10608
10580
  {
10609
10581
  "aria-live": "polite",
@@ -10614,7 +10586,7 @@ const Gh = Jr, Pn = ({
10614
10586
  "aria-busy": t,
10615
10587
  style: { display: "flex", flexDirection: "column" },
10616
10588
  children: [
10617
- p && /* @__PURE__ */ I.jsx(
10589
+ p && /* @__PURE__ */ T.jsx(
10618
10590
  Wh,
10619
10591
  {
10620
10592
  message: p,
@@ -10622,7 +10594,7 @@ const Gh = Jr, Pn = ({
10622
10594
  }
10623
10595
  ),
10624
10596
  e.map(
10625
- (d, D) => d.role === "assistant" ? /* @__PURE__ */ I.jsx(
10597
+ (d, D) => d.role === "assistant" ? /* @__PURE__ */ T.jsx(
10626
10598
  $h,
10627
10599
  {
10628
10600
  index: D,
@@ -10636,7 +10608,7 @@ const Gh = Jr, Pn = ({
10636
10608
  isTestUser: s
10637
10609
  },
10638
10610
  `${d.role}-${D}`
10639
- ) : /* @__PURE__ */ I.jsx(
10611
+ ) : /* @__PURE__ */ T.jsx(
10640
10612
  Gh,
10641
10613
  {
10642
10614
  content: d.content,
@@ -10651,21 +10623,21 @@ const Gh = Jr, Pn = ({
10651
10623
  ] });
10652
10624
  };
10653
10625
  Pn.propTypes = {
10654
- messages: T.arrayOf(
10655
- T.shape({
10656
- role: T.oneOf(["assistant", "user"]).isRequired,
10657
- content: T.string.isRequired,
10658
- liveAgent: T.bool.isRequired
10626
+ messages: I.arrayOf(
10627
+ I.shape({
10628
+ role: I.oneOf(["assistant", "user"]).isRequired,
10629
+ content: I.string.isRequired,
10630
+ liveAgent: I.bool.isRequired
10659
10631
  })
10660
10632
  ),
10661
- loading: T.bool.isRequired,
10662
- isNormalSize: T.bool,
10663
- onFeedbackThumbSelection: T.func.isRequired,
10664
- onPromptClick: T.func,
10665
- handleMessageLinkClicked: T.func,
10666
- submitEvent: T.func,
10667
- setLiveChatOpen: T.func,
10668
- isTestUser: T.bool
10633
+ loading: I.bool.isRequired,
10634
+ isNormalSize: I.bool,
10635
+ onFeedbackThumbSelection: I.func.isRequired,
10636
+ onPromptClick: I.func,
10637
+ handleMessageLinkClicked: I.func,
10638
+ submitEvent: I.func,
10639
+ setLiveChatOpen: I.func,
10640
+ isTestUser: I.bool
10669
10641
  };
10670
10642
  Pn.defaultProps = {
10671
10643
  messages: [],
@@ -10684,23 +10656,23 @@ function Ga({ disableScroll: e }) {
10684
10656
  behavior: "smooth",
10685
10657
  block: "end"
10686
10658
  });
10687
- }, [e]), /* @__PURE__ */ I.jsx(
10659
+ }, [e]), /* @__PURE__ */ T.jsx(
10688
10660
  "div",
10689
10661
  {
10690
10662
  "aria-label": "Loading",
10691
10663
  ref: t,
10692
10664
  role: "status",
10693
10665
  className: "xpert_chatbot__loader__wrapper",
10694
- children: /* @__PURE__ */ I.jsxs("div", { className: "xpert_chatbot__loader__ellipsis", children: [
10695
- /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--first" }),
10696
- /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--second" }),
10697
- /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--third" })
10666
+ children: /* @__PURE__ */ T.jsxs("div", { className: "xpert_chatbot__loader__ellipsis", children: [
10667
+ /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--first" }),
10668
+ /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--second" }),
10669
+ /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--third" })
10698
10670
  ] })
10699
10671
  }
10700
10672
  );
10701
10673
  }
10702
10674
  Ga.propTypes = {
10703
- disableScroll: T.bool
10675
+ disableScroll: I.bool
10704
10676
  };
10705
10677
  const Kh = () => {
10706
10678
  const e = Ge(null);
@@ -10709,7 +10681,7 @@ const Kh = () => {
10709
10681
  (t = e.current) == null || t.scrollIntoView({
10710
10682
  behavior: "instant"
10711
10683
  });
10712
- }, []), /* @__PURE__ */ I.jsxs(
10684
+ }, []), /* @__PURE__ */ T.jsxs(
10713
10685
  "div",
10714
10686
  {
10715
10687
  role: "alert",
@@ -10726,8 +10698,8 @@ const Kh = () => {
10726
10698
  "aria-describedby": "Oops! Something went wrong. Try again later.",
10727
10699
  ref: e,
10728
10700
  children: [
10729
- /* @__PURE__ */ I.jsx(
10730
- Tt,
10701
+ /* @__PURE__ */ T.jsx(
10702
+ It,
10731
10703
  {
10732
10704
  icon: "material-symbols:thunderstorm",
10733
10705
  style: {
@@ -10740,7 +10712,7 @@ const Kh = () => {
10740
10712
  }
10741
10713
  }
10742
10714
  ),
10743
- /* @__PURE__ */ I.jsxs(
10715
+ /* @__PURE__ */ T.jsxs(
10744
10716
  "div",
10745
10717
  {
10746
10718
  style: {
@@ -10751,14 +10723,14 @@ const Kh = () => {
10751
10723
  textAlign: "center"
10752
10724
  },
10753
10725
  children: [
10754
- /* @__PURE__ */ I.jsx(
10726
+ /* @__PURE__ */ T.jsx(
10755
10727
  "span",
10756
10728
  {
10757
10729
  style: { margin: "1.5rem 0", fontWeight: "bold", fontSize: "18px" },
10758
10730
  children: "Oops! Something went wrong"
10759
10731
  }
10760
10732
  ),
10761
- /* @__PURE__ */ I.jsx("span", { style: { marginBottom: "1.5rem", color: "red" }, children: "Please try again later." })
10733
+ /* @__PURE__ */ T.jsx("span", { style: { marginBottom: "1.5rem", color: "red" }, children: "Please try again later." })
10762
10734
  ]
10763
10735
  }
10764
10736
  )
@@ -10804,14 +10776,14 @@ function Za({
10804
10776
  };
10805
10777
  _e.set(x, C, E);
10806
10778
  };
10807
- return u ? /* @__PURE__ */ I.jsx("div", { children: p && /* @__PURE__ */ I.jsxs(
10779
+ return u ? /* @__PURE__ */ T.jsx("div", { children: p && /* @__PURE__ */ T.jsxs(
10808
10780
  "div",
10809
10781
  {
10810
10782
  role: "alertdialog",
10811
10783
  className: "xpert_chatbot__proactive-message",
10812
10784
  style: o,
10813
10785
  children: [
10814
- /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
10786
+ /* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsx(
10815
10787
  "button",
10816
10788
  {
10817
10789
  className: "xpert_chatbot__proactive-message__close",
@@ -10823,8 +10795,8 @@ function Za({
10823
10795
  onClick: m,
10824
10796
  "aria-label": "Close",
10825
10797
  type: "button",
10826
- children: /* @__PURE__ */ I.jsx(
10827
- Tt,
10798
+ children: /* @__PURE__ */ T.jsx(
10799
+ It,
10828
10800
  {
10829
10801
  style: {
10830
10802
  color: "#707070",
@@ -10838,14 +10810,14 @@ function Za({
10838
10810
  )
10839
10811
  }
10840
10812
  ) }),
10841
- /* @__PURE__ */ I.jsx(
10813
+ /* @__PURE__ */ T.jsx(
10842
10814
  "button",
10843
10815
  {
10844
10816
  className: "xpert_chatbot__proactive-message__body-container",
10845
10817
  onClick: n,
10846
10818
  "aria-label": "Can I answer any questions for you?",
10847
10819
  type: "button",
10848
- children: /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__proactive-message__body", children: e })
10820
+ children: /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__proactive-message__body", children: e })
10849
10821
  }
10850
10822
  )
10851
10823
  ]
@@ -10853,12 +10825,12 @@ function Za({
10853
10825
  ) }) : null;
10854
10826
  }
10855
10827
  Za.propTypes = {
10856
- children: T.node.isRequired,
10857
- cookieName: T.string.isRequired,
10858
- onClick: T.func,
10859
- onClose: T.func,
10860
- showMessage: T.bool,
10861
- style: T.shape()
10828
+ children: I.node.isRequired,
10829
+ cookieName: I.string.isRequired,
10830
+ onClick: I.func,
10831
+ onClose: I.func,
10832
+ showMessage: I.bool,
10833
+ style: I.shape()
10862
10834
  };
10863
10835
  function Xh(e, t, n) {
10864
10836
  const r = vt(
@@ -11240,8 +11212,8 @@ function ei({ submitEventExternal: e }) {
11240
11212
  }, Je = ((mt = r.animatedGraduate) == null ? void 0 : mt.enabled) && a.enabled && ye === "A", gt = Je ? s ? i.style.mobile.animatedGraduateExperiment : i.style.animatedGraduateExperiment : s ? i.style.mobile : i.style;
11241
11213
  return (
11242
11214
  // do not remove this class as it's needed to turn off chatbot
11243
- /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-frontend-killswitch", children: [
11244
- i.enabled && /* @__PURE__ */ I.jsx(
11215
+ /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-frontend-killswitch", children: [
11216
+ i.enabled && /* @__PURE__ */ T.jsx(
11245
11217
  Za,
11246
11218
  {
11247
11219
  showMessage: !x,
@@ -11249,9 +11221,9 @@ function ei({ submitEventExternal: e }) {
11249
11221
  onClose: Se,
11250
11222
  onClick: Qe,
11251
11223
  cookieName: `${l}-proactive-message-xpert-chatbot`,
11252
- children: /* @__PURE__ */ I.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
11253
- i.prefix && /* @__PURE__ */ I.jsx("span", { children: i.prefix }),
11254
- i.showEmoji && /* @__PURE__ */ I.jsx(
11224
+ children: /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
11225
+ i.prefix && /* @__PURE__ */ T.jsx("span", { children: i.prefix }),
11226
+ i.showEmoji && /* @__PURE__ */ T.jsx(
11255
11227
  "span",
11256
11228
  {
11257
11229
  role: "img",
@@ -11263,32 +11235,32 @@ function ei({ submitEventExternal: e }) {
11263
11235
  children: "👋"
11264
11236
  }
11265
11237
  ),
11266
- /* @__PURE__ */ I.jsx("span", { children: i.text })
11238
+ /* @__PURE__ */ T.jsx("span", { children: i.text })
11267
11239
  ] }) })
11268
11240
  }
11269
11241
  ),
11270
- Je && /* @__PURE__ */ I.jsx(
11242
+ Je && /* @__PURE__ */ T.jsx(
11271
11243
  zs,
11272
11244
  {
11273
11245
  handleFloatingActionButtonClick: we
11274
11246
  }
11275
11247
  ),
11276
- !Je && /* @__PURE__ */ I.jsx(
11248
+ !Je && /* @__PURE__ */ T.jsx(
11277
11249
  Cs,
11278
11250
  {
11279
11251
  handleFloatingActionButtonClick: we
11280
11252
  }
11281
11253
  ),
11282
- /* @__PURE__ */ I.jsx(Fs, {}),
11283
- x && !M && /* @__PURE__ */ I.jsx(Cr, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ I.jsx(
11254
+ /* @__PURE__ */ T.jsx(Fs, {}),
11255
+ x && !M && /* @__PURE__ */ T.jsx(Cr, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ T.jsx(
11284
11256
  "div",
11285
11257
  {
11286
11258
  ref: _,
11287
11259
  style: { display: "flex", flexDirection: "column", height: "100%" },
11288
11260
  "aria-label": "XPERT Chatbot Popup",
11289
11261
  role: "dialog",
11290
- children: /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
11291
- /* @__PURE__ */ I.jsx(
11262
+ children: /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
11263
+ /* @__PURE__ */ T.jsx(
11292
11264
  sa,
11293
11265
  {
11294
11266
  onClose: Xe,
@@ -11298,7 +11270,7 @@ function ei({ submitEventExternal: e }) {
11298
11270
  setIsNormalSize: ve
11299
11271
  }
11300
11272
  ),
11301
- /* @__PURE__ */ I.jsxs(
11273
+ /* @__PURE__ */ T.jsxs(
11302
11274
  "div",
11303
11275
  {
11304
11276
  style: {
@@ -11307,7 +11279,7 @@ function ei({ submitEventExternal: e }) {
11307
11279
  overscrollBehavior: "contain"
11308
11280
  },
11309
11281
  children: [
11310
- /* @__PURE__ */ I.jsx(
11282
+ /* @__PURE__ */ T.jsx(
11311
11283
  Zh,
11312
11284
  {
11313
11285
  messages: p,
@@ -11321,13 +11293,13 @@ function ei({ submitEventExternal: e }) {
11321
11293
  isTestUser: q
11322
11294
  }
11323
11295
  ),
11324
- d && /* @__PURE__ */ I.jsx(Ga, { disableScroll: S }),
11325
- U && /* @__PURE__ */ I.jsx(lr, {})
11296
+ d && /* @__PURE__ */ T.jsx(Ga, { disableScroll: S }),
11297
+ U && /* @__PURE__ */ T.jsx(lr, {})
11326
11298
  ]
11327
11299
  }
11328
11300
  ),
11329
- /* @__PURE__ */ I.jsxs("div", { style: { marginTop: "auto", display: "flex" }, children: [
11330
- n.liveChat.enabled && /* @__PURE__ */ I.jsx(
11301
+ /* @__PURE__ */ T.jsxs("div", { style: { marginTop: "auto", display: "flex" }, children: [
11302
+ n.liveChat.enabled && /* @__PURE__ */ T.jsx(
11331
11303
  _n,
11332
11304
  {
11333
11305
  submitEvent: K,
@@ -11337,7 +11309,7 @@ function ei({ submitEventExternal: e }) {
11337
11309
  buttonClassName: "xpert-chatbot-popup__live-chat--btn-outline"
11338
11310
  }
11339
11311
  ),
11340
- /* @__PURE__ */ I.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ I.jsx(
11312
+ /* @__PURE__ */ T.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ T.jsx(
11341
11313
  Rr,
11342
11314
  {
11343
11315
  inputRef: B,
@@ -11359,7 +11331,7 @@ function ei({ submitEventExternal: e }) {
11359
11331
  );
11360
11332
  }
11361
11333
  ei.propTypes = {
11362
- submitEventExternal: T.func
11334
+ submitEventExternal: I.func
11363
11335
  };
11364
11336
  ei.defaultProps = {
11365
11337
  submitEventExternal: null
@@ -11369,29 +11341,29 @@ const Ka = ({ children: e, configurations: t = {}, xpertKey: n = null }) => {
11369
11341
  configurations: t,
11370
11342
  xpertKey: n
11371
11343
  };
11372
- return /* @__PURE__ */ I.jsx(Co, { ...r, children: e });
11344
+ return /* @__PURE__ */ T.jsx(Co, { ...r, children: e });
11373
11345
  };
11374
11346
  Ka.propTypes = {
11375
- children: T.element,
11376
- configurations: T.object,
11377
- xpertKey: T.string
11347
+ children: I.element,
11348
+ configurations: I.object,
11349
+ xpertKey: I.string
11378
11350
  };
11379
11351
  function ag({ configurations: e = {}, key: t, submitEventExternal: n, xpertKey: r }) {
11380
- return /* @__PURE__ */ I.jsx(
11352
+ return /* @__PURE__ */ T.jsx(
11381
11353
  Ka,
11382
11354
  {
11383
11355
  xpertKey: r,
11384
11356
  configurations: e,
11385
- children: /* @__PURE__ */ I.jsx(ei, { submitEventExternal: n })
11357
+ children: /* @__PURE__ */ T.jsx(ei, { submitEventExternal: n })
11386
11358
  },
11387
11359
  t
11388
11360
  );
11389
11361
  }
11390
11362
  ag.propTypes = {
11391
- configurations: T.object,
11392
- key: T.string,
11393
- submitEventExternal: T.func,
11394
- xpertKey: T.string.isRequired
11363
+ configurations: I.object,
11364
+ key: I.string,
11365
+ submitEventExternal: I.func,
11366
+ xpertKey: I.string.isRequired
11395
11367
  };
11396
11368
  export {
11397
11369
  ag as Chatbot,