@2uinc/frontend-component-xpert-chatbot 1.13.9-beta.4 → 1.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.min.js +614 -613
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -64,9 +64,9 @@ const is = {
|
|
64
64
|
},
|
65
65
|
proactiveMessage: {
|
66
66
|
enabled: !0,
|
67
|
-
textPrefix: "Hi
|
67
|
+
textPrefix: "Hi!",
|
68
68
|
showEmoji: !0,
|
69
|
-
text: "I'm Xpert, an AI
|
69
|
+
text: "I'm Xpert, an AI assistant to help you find things.",
|
70
70
|
delayMs: 4e3,
|
71
71
|
style: {
|
72
72
|
bottom: "6.75rem",
|
@@ -466,7 +466,7 @@ var en = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
466
466
|
function nt(e) {
|
467
467
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
468
468
|
}
|
469
|
-
function
|
469
|
+
function No(e) {
|
470
470
|
if (e.__esModule)
|
471
471
|
return e;
|
472
472
|
var t = e.default;
|
@@ -487,7 +487,7 @@ function Io(e) {
|
|
487
487
|
});
|
488
488
|
}), n;
|
489
489
|
}
|
490
|
-
var
|
490
|
+
var Do = { exports: {} }, Vt = {};
|
491
491
|
/*
|
492
492
|
object-assign
|
493
493
|
(c) Sindre Sorhus
|
@@ -530,11 +530,11 @@ fs();
|
|
530
530
|
* This source code is licensed under the MIT license found in the
|
531
531
|
* LICENSE file in the root directory of this source tree.
|
532
532
|
*/
|
533
|
-
var ds = tt,
|
533
|
+
var ds = tt, Io = 60103;
|
534
534
|
Vt.Fragment = 60107;
|
535
535
|
if (typeof Symbol == "function" && Symbol.for) {
|
536
536
|
var hi = Symbol.for;
|
537
|
-
|
537
|
+
Io = hi("react.element"), Vt.Fragment = hi("react.fragment");
|
538
538
|
}
|
539
539
|
var hs = ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, gs = Object.prototype.hasOwnProperty, ms = { key: !0, ref: !0, __self: !0, __source: !0 };
|
540
540
|
function ko(e, t, n) {
|
@@ -545,12 +545,12 @@ function ko(e, t, n) {
|
|
545
545
|
if (e && e.defaultProps)
|
546
546
|
for (r in t = e.defaultProps, t)
|
547
547
|
i[r] === void 0 && (i[r] = t[r]);
|
548
|
-
return { $$typeof:
|
548
|
+
return { $$typeof: Io, type: e, key: o, ref: a, props: i, _owner: hs.current };
|
549
549
|
}
|
550
550
|
Vt.jsx = ko;
|
551
551
|
Vt.jsxs = ko;
|
552
|
-
|
553
|
-
var
|
552
|
+
Do.exports = Vt;
|
553
|
+
var N = Do.exports;
|
554
554
|
/*! js-cookie v3.0.5 | MIT */
|
555
555
|
function tn(e) {
|
556
556
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -667,13 +667,13 @@ var ws = function() {
|
|
667
667
|
};
|
668
668
|
jo.exports = ws();
|
669
669
|
var Q = jo.exports;
|
670
|
-
const
|
670
|
+
const D = /* @__PURE__ */ nt(Q);
|
671
671
|
var dn = { exports: {} };
|
672
672
|
dn.exports;
|
673
673
|
(function(e, t) {
|
674
674
|
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", f = "[object Function]", v = "[object GeneratorFunction]", b = "[object Map]", k = "[object Number]", M = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", U = "[object Set]", x = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", W = "[object ArrayBuffer]", X = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", F = "[object Int32Array]", B = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", K = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, Me = /^(?:0|[1-9]\d*)$/, h = {};
|
675
675
|
h[A] = h[w] = h[j] = h[O] = h[F] = h[B] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[W] = h[c] = h[X] = h[p] = h[m] = h[f] = h[b] = h[k] = h[z] = h[_] = h[U] = h[x] = h[$] = !1;
|
676
|
-
var ge = typeof en == "object" && en && en.Object === Object && en,
|
676
|
+
var ge = typeof en == "object" && en && en.Object === Object && en, Ie = typeof self == "object" && self && self.Object === Object && self, re = ge || Ie || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && e && !e.nodeType && e, Be = ve && ve.exports === we, Ae = Be && ge.process, Ke = function() {
|
677
677
|
try {
|
678
678
|
var d = ve && ve.require && ve.require("util").types;
|
679
679
|
return d || Ae && Ae.binding && Ae.binding("util");
|
@@ -714,7 +714,7 @@ dn.exports;
|
|
714
714
|
var at = Array.prototype, mt = Function.prototype, R = Object.prototype, ee = re["__core-js_shared__"], me = mt.toString, le = R.hasOwnProperty, Qe = function() {
|
715
715
|
var d = /[^.]+$/.exec(ee && ee.keys && ee.keys.IE_PROTO || "");
|
716
716
|
return d ? "Symbol(src)_1." + d : "";
|
717
|
-
}(), $e = R.toString, yt = me.call(Object),
|
717
|
+
}(), $e = R.toString, yt = me.call(Object), I = RegExp(
|
718
718
|
"^" + me.call(le).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
719
719
|
), S = Be ? re.Buffer : void 0, Y = re.Symbol, J = re.Uint8Array, oe = S ? S.allocUnsafe : void 0, Te = gt(Object.getPrototypeOf, Object), Ye = Object.create, He = R.propertyIsEnumerable, lt = at.splice, ke = Y ? Y.toStringTag : void 0, ue = function() {
|
720
720
|
try {
|
@@ -865,7 +865,7 @@ dn.exports;
|
|
865
865
|
function Rn(d, y, T) {
|
866
866
|
(T !== void 0 && !Jt(d[y], T) || T === void 0 && !(y in d)) && Un(d, y, T);
|
867
867
|
}
|
868
|
-
function
|
868
|
+
function Nl(d, y, T) {
|
869
869
|
var P = d[y];
|
870
870
|
(!(le.call(d, y) && Jt(P, T)) || T === void 0 && !(y in d)) && Un(d, y, T);
|
871
871
|
}
|
@@ -883,17 +883,17 @@ dn.exports;
|
|
883
883
|
writable: !0
|
884
884
|
}) : d[y] = T;
|
885
885
|
}
|
886
|
-
var
|
886
|
+
var Dl = Pl();
|
887
887
|
function Kt(d) {
|
888
888
|
return d == null ? d === void 0 ? L : M : ke && ke in Object(d) ? Rl(d) : $l(d);
|
889
889
|
}
|
890
890
|
function ri(d) {
|
891
891
|
return St(d) && Kt(d) == l;
|
892
892
|
}
|
893
|
-
function
|
893
|
+
function Il(d) {
|
894
894
|
if (!ut(d) || Yl(d))
|
895
895
|
return !1;
|
896
|
-
var y = qn(d) ?
|
896
|
+
var y = qn(d) ? I : he;
|
897
897
|
return y.test(Gl(d));
|
898
898
|
}
|
899
899
|
function kl(d) {
|
@@ -908,7 +908,7 @@ dn.exports;
|
|
908
908
|
return T;
|
909
909
|
}
|
910
910
|
function ii(d, y, T, P, ne) {
|
911
|
-
d !== y &&
|
911
|
+
d !== y && Dl(y, function(se, fe) {
|
912
912
|
if (ne || (ne = new xt()), ut(se))
|
913
913
|
El(d, y, fe, T, ii, P, ne);
|
914
914
|
else {
|
@@ -966,7 +966,7 @@ dn.exports;
|
|
966
966
|
T || (T = {});
|
967
967
|
for (var se = -1, fe = y.length; ++se < fe; ) {
|
968
968
|
var te = y[se], de = P ? P(T[te], d[te], te, T, d) : void 0;
|
969
|
-
de === void 0 && (de = d[te]), ne ? Un(T, te, de) :
|
969
|
+
de === void 0 && (de = d[te]), ne ? Un(T, te, de) : Nl(T, te, de);
|
970
970
|
}
|
971
971
|
return T;
|
972
972
|
}
|
@@ -996,7 +996,7 @@ dn.exports;
|
|
996
996
|
}
|
997
997
|
function Bn(d, y) {
|
998
998
|
var T = Xe(d, y);
|
999
|
-
return
|
999
|
+
return Il(T) ? T : void 0;
|
1000
1000
|
}
|
1001
1001
|
function Rl(d) {
|
1002
1002
|
var y = le.call(d, ke), T = d[ke];
|
@@ -1252,28 +1252,28 @@ const Ao = /* @__PURE__ */ nt(vs), Ts = {
|
|
1252
1252
|
}
|
1253
1253
|
}
|
1254
1254
|
}
|
1255
|
-
},
|
1255
|
+
}, Ns = {
|
1256
1256
|
edx: is,
|
1257
1257
|
"get-smarter": as,
|
1258
1258
|
"speech-emerson": os,
|
1259
1259
|
"exec-ed-ss-olc-moodle": Ts,
|
1260
1260
|
"degrees-canvas-support": ls,
|
1261
1261
|
"degrees-moodle-support": ss
|
1262
|
-
},
|
1262
|
+
}, Ds = (e, t = {}) => {
|
1263
1263
|
if (!e && (!t || Object.keys(t).length === 0))
|
1264
1264
|
throw new Error("xpertKey or configurations is required");
|
1265
|
-
const n =
|
1265
|
+
const n = Ns[e] || {};
|
1266
1266
|
return Ao(n, t);
|
1267
|
-
},
|
1267
|
+
}, Is = Ds, So = ns({}), Oo = ({
|
1268
1268
|
children: e,
|
1269
1269
|
configurations: t = null,
|
1270
1270
|
xpertKey: n = null
|
1271
1271
|
}) => {
|
1272
1272
|
const r = rs(
|
1273
|
-
() =>
|
1273
|
+
() => Is(n, t),
|
1274
1274
|
[t, n]
|
1275
1275
|
);
|
1276
|
-
return /* @__PURE__ */
|
1276
|
+
return /* @__PURE__ */ N.jsx(So.Provider, { value: { ...r }, children: e });
|
1277
1277
|
};
|
1278
1278
|
Oo.propTypes = {
|
1279
1279
|
children: Q.element.isRequired,
|
@@ -1404,7 +1404,7 @@ function wn({
|
|
1404
1404
|
...o
|
1405
1405
|
}) {
|
1406
1406
|
const a = rt(Cs);
|
1407
|
-
return /* @__PURE__ */
|
1407
|
+
return /* @__PURE__ */ N.jsx(
|
1408
1408
|
"button",
|
1409
1409
|
{
|
1410
1410
|
id: "xpert_chatbot__floating-action-btn",
|
@@ -1426,11 +1426,11 @@ function wn({
|
|
1426
1426
|
);
|
1427
1427
|
}
|
1428
1428
|
wn.propTypes = {
|
1429
|
-
label:
|
1430
|
-
onClick:
|
1431
|
-
children:
|
1432
|
-
className:
|
1433
|
-
style:
|
1429
|
+
label: D.string.isRequired,
|
1430
|
+
onClick: D.func.isRequired,
|
1431
|
+
children: D.node.isRequired,
|
1432
|
+
className: D.string,
|
1433
|
+
style: D.shape()
|
1434
1434
|
};
|
1435
1435
|
wn.defaultProps = {
|
1436
1436
|
className: "",
|
@@ -1446,7 +1446,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
1446
1446
|
}, jr = ({ handleFloatingActionButtonClick: e }) => {
|
1447
1447
|
var i, o;
|
1448
1448
|
const { xpertKey: t, launchButton: n } = _e(Fe), r = rt(As);
|
1449
|
-
return /* @__PURE__ */
|
1449
|
+
return /* @__PURE__ */ N.jsx(
|
1450
1450
|
wn,
|
1451
1451
|
{
|
1452
1452
|
onClick: e,
|
@@ -1455,7 +1455,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
1455
1455
|
"aria-haspopup": "dialog",
|
1456
1456
|
"aria-expanded": open,
|
1457
1457
|
className: "xpert-chatbot-button",
|
1458
|
-
children: /* @__PURE__ */
|
1458
|
+
children: /* @__PURE__ */ N.jsx(
|
1459
1459
|
"img",
|
1460
1460
|
{
|
1461
1461
|
"data-ot-ignore": "",
|
@@ -1470,7 +1470,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
1470
1470
|
);
|
1471
1471
|
};
|
1472
1472
|
jr.propTypes = {
|
1473
|
-
handleFloatingActionButtonClick:
|
1473
|
+
handleFloatingActionButtonClick: D.func
|
1474
1474
|
};
|
1475
1475
|
jr.defaultProps = {
|
1476
1476
|
handleFloatingActionButtonClick: null
|
@@ -1517,7 +1517,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1517
1517
|
}, p = () => {
|
1518
1518
|
o.current = !1;
|
1519
1519
|
};
|
1520
|
-
return /* @__PURE__ */
|
1520
|
+
return /* @__PURE__ */ N.jsxs(
|
1521
1521
|
"div",
|
1522
1522
|
{
|
1523
1523
|
role: "region",
|
@@ -1526,8 +1526,8 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1526
1526
|
onMouseEnter: c,
|
1527
1527
|
onMouseLeave: p,
|
1528
1528
|
children: [
|
1529
|
-
/* @__PURE__ */
|
1530
|
-
/* @__PURE__ */
|
1529
|
+
/* @__PURE__ */ N.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: _s }),
|
1530
|
+
/* @__PURE__ */ N.jsx(
|
1531
1531
|
wn,
|
1532
1532
|
{
|
1533
1533
|
onClick: e,
|
@@ -1536,7 +1536,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1536
1536
|
style: u ? { ...(b = (v = n.style) == null ? void 0 : v.mobile) == null ? void 0 : b.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
|
1537
1537
|
"aria-haspopup": "dialog",
|
1538
1538
|
"aria-expanded": open,
|
1539
|
-
children: /* @__PURE__ */
|
1539
|
+
children: /* @__PURE__ */ N.jsx("div", { ref: i, children: /* @__PURE__ */ N.jsxs(
|
1540
1540
|
"svg",
|
1541
1541
|
{
|
1542
1542
|
style: {
|
@@ -1547,7 +1547,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1547
1547
|
xmlns: "http://www.w3.org/2000/svg",
|
1548
1548
|
className: "xpert_chatbot__animated_graduate",
|
1549
1549
|
children: [
|
1550
|
-
/* @__PURE__ */
|
1550
|
+
/* @__PURE__ */ N.jsx(
|
1551
1551
|
"path",
|
1552
1552
|
{
|
1553
1553
|
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",
|
@@ -1555,7 +1555,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1555
1555
|
className: "xpert_chatbot__animated_graduate__cap"
|
1556
1556
|
}
|
1557
1557
|
),
|
1558
|
-
/* @__PURE__ */
|
1558
|
+
/* @__PURE__ */ N.jsx(
|
1559
1559
|
"path",
|
1560
1560
|
{
|
1561
1561
|
fillRule: "evenodd",
|
@@ -1565,7 +1565,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1565
1565
|
className: "xpert_chatbot__animated_graduate__face"
|
1566
1566
|
}
|
1567
1567
|
),
|
1568
|
-
/* @__PURE__ */
|
1568
|
+
/* @__PURE__ */ N.jsx(
|
1569
1569
|
"circle",
|
1570
1570
|
{
|
1571
1571
|
className: `xpert_chatbot__animated_graduate__eyeball ${l ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
|
@@ -1575,7 +1575,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1575
1575
|
fill: "white"
|
1576
1576
|
}
|
1577
1577
|
),
|
1578
|
-
/* @__PURE__ */
|
1578
|
+
/* @__PURE__ */ N.jsx(
|
1579
1579
|
"mask",
|
1580
1580
|
{
|
1581
1581
|
id: "mask0_2271_69",
|
@@ -1584,10 +1584,10 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1584
1584
|
y: "37",
|
1585
1585
|
width: "15",
|
1586
1586
|
height: "14",
|
1587
|
-
children: /* @__PURE__ */
|
1587
|
+
children: /* @__PURE__ */ N.jsx("circle", { cx: "34.7137", cy: "44.0494", r: "6.94275", fill: "white" })
|
1588
1588
|
}
|
1589
1589
|
),
|
1590
|
-
/* @__PURE__ */
|
1590
|
+
/* @__PURE__ */ N.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ N.jsx(
|
1591
1591
|
"circle",
|
1592
1592
|
{
|
1593
1593
|
role: "img",
|
@@ -1599,7 +1599,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1599
1599
|
fill: "black"
|
1600
1600
|
}
|
1601
1601
|
) }),
|
1602
|
-
/* @__PURE__ */
|
1602
|
+
/* @__PURE__ */ N.jsx(
|
1603
1603
|
"circle",
|
1604
1604
|
{
|
1605
1605
|
className: `xpert_chatbot__animated_graduate__eyeball ${l ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
|
@@ -1609,7 +1609,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1609
1609
|
fill: "white"
|
1610
1610
|
}
|
1611
1611
|
),
|
1612
|
-
/* @__PURE__ */
|
1612
|
+
/* @__PURE__ */ N.jsx(
|
1613
1613
|
"mask",
|
1614
1614
|
{
|
1615
1615
|
id: "mask1_2271_69",
|
@@ -1618,10 +1618,10 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1618
1618
|
y: "37",
|
1619
1619
|
width: "15",
|
1620
1620
|
height: "14",
|
1621
|
-
children: /* @__PURE__ */
|
1621
|
+
children: /* @__PURE__ */ N.jsx("circle", { cx: "18.8446", cy: "44.0494", r: "6.94275", fill: "white" })
|
1622
1622
|
}
|
1623
1623
|
),
|
1624
|
-
/* @__PURE__ */
|
1624
|
+
/* @__PURE__ */ N.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ N.jsx(
|
1625
1625
|
"circle",
|
1626
1626
|
{
|
1627
1627
|
role: "img",
|
@@ -1633,7 +1633,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1633
1633
|
fill: "black"
|
1634
1634
|
}
|
1635
1635
|
) }),
|
1636
|
-
/* @__PURE__ */
|
1636
|
+
/* @__PURE__ */ N.jsx(
|
1637
1637
|
"circle",
|
1638
1638
|
{
|
1639
1639
|
className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
|
@@ -1643,7 +1643,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1643
1643
|
fill: "#5DE3C0"
|
1644
1644
|
}
|
1645
1645
|
),
|
1646
|
-
/* @__PURE__ */
|
1646
|
+
/* @__PURE__ */ N.jsx(
|
1647
1647
|
"circle",
|
1648
1648
|
{
|
1649
1649
|
className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
|
@@ -1653,7 +1653,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1653
1653
|
fill: "#5DE3C0"
|
1654
1654
|
}
|
1655
1655
|
),
|
1656
|
-
/* @__PURE__ */
|
1656
|
+
/* @__PURE__ */ N.jsx(
|
1657
1657
|
"circle",
|
1658
1658
|
{
|
1659
1659
|
className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
|
@@ -1663,7 +1663,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1663
1663
|
fill: "#5DE3C0"
|
1664
1664
|
}
|
1665
1665
|
),
|
1666
|
-
/* @__PURE__ */
|
1666
|
+
/* @__PURE__ */ N.jsx(
|
1667
1667
|
"path",
|
1668
1668
|
{
|
1669
1669
|
className: "xpert_chatbot__animated_graduate__cap_tassel",
|
@@ -1681,7 +1681,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1681
1681
|
);
|
1682
1682
|
};
|
1683
1683
|
Er.propTypes = {
|
1684
|
-
handleFloatingActionButtonClick:
|
1684
|
+
handleFloatingActionButtonClick: D.func
|
1685
1685
|
};
|
1686
1686
|
Er.defaultProps = {
|
1687
1687
|
handleFloatingActionButtonClick: null
|
@@ -1690,7 +1690,7 @@ const Fs = Er;
|
|
1690
1690
|
const Ps = 991, Rs = () => {
|
1691
1691
|
var n;
|
1692
1692
|
const e = rt(Ps), { launchButton: t } = _e(Fe);
|
1693
|
-
return (n = t.message) != null && n.enabled ? /* @__PURE__ */
|
1693
|
+
return (n = t.message) != null && n.enabled ? /* @__PURE__ */ N.jsx(
|
1694
1694
|
"div",
|
1695
1695
|
{
|
1696
1696
|
role: "alert",
|
@@ -2173,8 +2173,8 @@ var Mi = {
|
|
2173
2173
|
return j === we;
|
2174
2174
|
});
|
2175
2175
|
if (h < 0 && (K.container === j || sn(j, o.tabbableOptions) && !ct(j, o.tabbableOptions) && !K.nextTabbableNode(j)) && (h = q), h >= 0) {
|
2176
|
-
var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1,
|
2177
|
-
V = et(j) >= 0 ?
|
2176
|
+
var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, Ie = a.tabbableGroups[ge];
|
2177
|
+
V = et(j) >= 0 ? Ie.firstTabbableNode : Ie.firstDomTabbableNode;
|
2178
2178
|
} else
|
2179
2179
|
Ut(O) || (V = K.nextTabbableNode(j));
|
2180
2180
|
}
|
@@ -2341,7 +2341,7 @@ var Mi = {
|
|
2341
2341
|
const fu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2342
2342
|
__proto__: null,
|
2343
2343
|
createFocusTrap: pu
|
2344
|
-
}, Symbol.toStringTag, { value: "Module" })), du = /* @__PURE__ */
|
2344
|
+
}, Symbol.toStringTag, { value: "Module" })), du = /* @__PURE__ */ No(fu), hu = /* @__PURE__ */ No(nu);
|
2345
2345
|
function Tt(e) {
|
2346
2346
|
"@babel/helpers - typeof";
|
2347
2347
|
return Tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
@@ -2433,7 +2433,7 @@ function vu(e, t) {
|
|
2433
2433
|
}
|
2434
2434
|
return (t === "string" ? String : Number)(e);
|
2435
2435
|
}
|
2436
|
-
var rn = tt, H = Q, Tu = du,
|
2436
|
+
var rn = tt, H = Q, Tu = du, Nu = Tu.createFocusTrap, Du = hu, Iu = Du.isFocusable, Cr = /* @__PURE__ */ function(e) {
|
2437
2437
|
yu(n, e);
|
2438
2438
|
var t = Mu(n);
|
2439
2439
|
function n(r) {
|
@@ -2561,7 +2561,7 @@ var rn = tt, H = Q, Tu = du, Iu = Tu.createFocusTrap, Nu = hu, Du = Nu.isFocusab
|
|
2561
2561
|
i.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
2562
2562
|
// as a result of the click-through) -- in which case do NOT restore focus
|
2563
2563
|
// to `returnFocusNode` because focus should remain on the outside node
|
2564
|
-
!
|
2564
|
+
!Iu(i.outsideClick.target, i.internalOptions.tabbableOptions))), u = i.internalOptions.preventScroll, c = u === void 0 ? !1 : u;
|
2565
2565
|
s && l.focus({
|
2566
2566
|
preventScroll: c
|
2567
2567
|
}), i.originalOptions.onPostDeactivate && i.originalOptions.onPostDeactivate.call(null), i.outsideClick = null;
|
@@ -2673,7 +2673,7 @@ Cr.defaultProps = {
|
|
2673
2673
|
active: !0,
|
2674
2674
|
paused: !1,
|
2675
2675
|
focusTrapOptions: {},
|
2676
|
-
_createFocusTrap:
|
2676
|
+
_createFocusTrap: Nu
|
2677
2677
|
};
|
2678
2678
|
var ku = Cr;
|
2679
2679
|
const ju = /* @__PURE__ */ nt(ku);
|
@@ -2686,7 +2686,7 @@ function Ar({
|
|
2686
2686
|
isMounted: i
|
2687
2687
|
}) {
|
2688
2688
|
const o = rt(Eu), a = We(null);
|
2689
|
-
return /* @__PURE__ */
|
2689
|
+
return /* @__PURE__ */ N.jsx(
|
2690
2690
|
ju,
|
2691
2691
|
{
|
2692
2692
|
focusTrapOptions: {
|
@@ -2695,7 +2695,7 @@ function Ar({
|
|
2695
2695
|
displayCheck: void 0
|
2696
2696
|
}
|
2697
2697
|
},
|
2698
|
-
children: /* @__PURE__ */
|
2698
|
+
children: /* @__PURE__ */ N.jsx(
|
2699
2699
|
"div",
|
2700
2700
|
{
|
2701
2701
|
ref: a,
|
@@ -2719,11 +2719,11 @@ function Ar({
|
|
2719
2719
|
);
|
2720
2720
|
}
|
2721
2721
|
Ar.propTypes = {
|
2722
|
-
children:
|
2723
|
-
style:
|
2724
|
-
isMounted:
|
2725
|
-
className:
|
2726
|
-
isNormalSize:
|
2722
|
+
children: D.node.isRequired,
|
2723
|
+
style: D.shape(),
|
2724
|
+
isMounted: D.bool,
|
2725
|
+
className: D.string,
|
2726
|
+
isNormalSize: D.bool
|
2727
2727
|
};
|
2728
2728
|
Ar.defaultProps = {
|
2729
2729
|
style: {},
|
@@ -2905,7 +2905,7 @@ let $t = !1;
|
|
2905
2905
|
function Go(e) {
|
2906
2906
|
return typeof e == "boolean" && ($t = e), $t;
|
2907
2907
|
}
|
2908
|
-
function
|
2908
|
+
function Ni(e) {
|
2909
2909
|
const t = typeof e == "string" ? vn(e, !0, $t) : e;
|
2910
2910
|
if (t) {
|
2911
2911
|
const n = dt(t.provider, t.prefix), r = t.name;
|
@@ -2947,7 +2947,7 @@ const Zo = Object.freeze({
|
|
2947
2947
|
// Transformations
|
2948
2948
|
...xn
|
2949
2949
|
}), Pu = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ru = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
2950
|
-
function
|
2950
|
+
function Di(e, t, n) {
|
2951
2951
|
if (t === 1)
|
2952
2952
|
return e;
|
2953
2953
|
if (n = n || 100, typeof e == "number")
|
@@ -3043,7 +3043,7 @@ function Hu(e, t) {
|
|
3043
3043
|
});
|
3044
3044
|
const a = r.width, l = r.height, s = i.width, u = i.height;
|
3045
3045
|
let c, p;
|
3046
|
-
a === null ? (p = l === null ? "1em" : l === "auto" ? u : l, c =
|
3046
|
+
a === null ? (p = l === null ? "1em" : l === "auto" ? u : l, c = Di(p, s / u)) : (c = a === "auto" ? s : a, p = l === null ? Di(c, u / s) : l === "auto" ? u : l);
|
3047
3047
|
const m = {}, f = (b, k) => {
|
3048
3048
|
Yu(k) || (m[b] = k.toString());
|
3049
3049
|
};
|
@@ -3131,7 +3131,7 @@ const Ku = () => {
|
|
3131
3131
|
} catch {
|
3132
3132
|
}
|
3133
3133
|
};
|
3134
|
-
let
|
3134
|
+
let Ii = Ku();
|
3135
3135
|
function Xu(e, t) {
|
3136
3136
|
const n = _r(e);
|
3137
3137
|
if (!n)
|
@@ -3178,7 +3178,7 @@ function tc(e) {
|
|
3178
3178
|
return "/";
|
3179
3179
|
}
|
3180
3180
|
const nc = (e, t, n) => {
|
3181
|
-
if (!
|
3181
|
+
if (!Ii) {
|
3182
3182
|
n("abort", 424);
|
3183
3183
|
return;
|
3184
3184
|
}
|
@@ -3201,7 +3201,7 @@ const nc = (e, t, n) => {
|
|
3201
3201
|
return;
|
3202
3202
|
}
|
3203
3203
|
let i = 503;
|
3204
|
-
|
3204
|
+
Ii(e + r).then((o) => {
|
3205
3205
|
const a = o.status;
|
3206
3206
|
if (a !== 200) {
|
3207
3207
|
setTimeout(() => {
|
@@ -3726,7 +3726,7 @@ function Tc(e, t) {
|
|
3726
3726
|
}
|
3727
3727
|
});
|
3728
3728
|
}
|
3729
|
-
function
|
3729
|
+
function Nc(e, t = 0) {
|
3730
3730
|
const n = e.replace(/^-?[0-9.]*/, "");
|
3731
3731
|
function r(i) {
|
3732
3732
|
for (; i < 0; )
|
@@ -3752,17 +3752,17 @@ function Ic(e, t = 0) {
|
|
3752
3752
|
}
|
3753
3753
|
return t;
|
3754
3754
|
}
|
3755
|
-
function
|
3755
|
+
function Dc(e, t) {
|
3756
3756
|
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
3757
3757
|
for (const r in t)
|
3758
3758
|
n += " " + r + '="' + t[r] + '"';
|
3759
3759
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
3760
3760
|
}
|
3761
|
-
function
|
3761
|
+
function Ic(e) {
|
3762
3762
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
3763
3763
|
}
|
3764
3764
|
function kc(e) {
|
3765
|
-
return "data:image/svg+xml," +
|
3765
|
+
return "data:image/svg+xml," + Ic(e);
|
3766
3766
|
}
|
3767
3767
|
function jc(e) {
|
3768
3768
|
return 'url("' + kc(e) + '")';
|
@@ -3861,7 +3861,7 @@ const zc = (e, t, n) => {
|
|
3861
3861
|
a.color = M;
|
3862
3862
|
break;
|
3863
3863
|
case "rotate":
|
3864
|
-
typeof M == "string" ? i[k] =
|
3864
|
+
typeof M == "string" ? i[k] = Nc(M) : typeof M == "number" && (i[k] = M);
|
3865
3865
|
break;
|
3866
3866
|
case "ariaHidden":
|
3867
3867
|
case "aria-hidden":
|
@@ -3882,7 +3882,7 @@ const zc = (e, t, n) => {
|
|
3882
3882
|
__html: Cc(Wu(u.body, M ? () => M + "ID" + k++ : "iconifyReact"))
|
3883
3883
|
}, sr("svg", s);
|
3884
3884
|
}
|
3885
|
-
const { body: p, width: m, height: f } = e, v = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), b =
|
3885
|
+
const { body: p, width: m, height: f } = e, v = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), b = Dc(p, {
|
3886
3886
|
...c,
|
3887
3887
|
width: m + "",
|
3888
3888
|
height: f + ""
|
@@ -3941,7 +3941,7 @@ function sa(e) {
|
|
3941
3941
|
name: "",
|
3942
3942
|
data: v
|
3943
3943
|
};
|
3944
|
-
const b =
|
3944
|
+
const b = Ni(v);
|
3945
3945
|
if (b)
|
3946
3946
|
return {
|
3947
3947
|
name: v,
|
@@ -3971,7 +3971,7 @@ function sa(e) {
|
|
3971
3971
|
});
|
3972
3972
|
return;
|
3973
3973
|
}
|
3974
|
-
const b =
|
3974
|
+
const b = Ni(v);
|
3975
3975
|
if (u({
|
3976
3976
|
name: v,
|
3977
3977
|
data: b
|
@@ -3993,7 +3993,7 @@ function sa(e) {
|
|
3993
3993
|
...m
|
3994
3994
|
}, e, p) : e.children ? e.children : sr("span", {});
|
3995
3995
|
}
|
3996
|
-
const
|
3996
|
+
const Nt = To((e, t) => sa({
|
3997
3997
|
...e,
|
3998
3998
|
_ref: t
|
3999
3999
|
}));
|
@@ -4004,7 +4004,7 @@ To((e, t) => sa({
|
|
4004
4004
|
}));
|
4005
4005
|
const Lc = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0xMjAtMTIwdi0zMDBoNjB2MTk4bDU1OC01NThINTQwdi02MGgzMDB2MzAwaC02MHYtMTk4TDIyMi0xODBoMTk4djYwSDEyMFoiLz48L3N2Zz4=", _c = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0zNzAtMjg3aDM2MHYtOTBIMzcwdjkwWk0xODAtMTIwcS0yNCAwLTQyLTE4dC0xOC00MnYtNjAwcTAtMjQgMTgtNDJ0NDItMThoNjAwcTI0IDAgNDIgMTh0MTggNDJ2NjAwcTAgMjQtMTggNDJ0LTQyIDE4SDE4MFptMC02MGg2MDB2LTYwMEgxODB2NjAwWm0wLTYwMHY2MDAtNjAwWiIvPjwvc3ZnPg==", Fc = 991;
|
4006
4006
|
function ua({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
|
4007
|
-
return rt(Fc) ? null : e ? /* @__PURE__ */
|
4007
|
+
return rt(Fc) ? null : e ? /* @__PURE__ */ N.jsx(
|
4008
4008
|
"button",
|
4009
4009
|
{
|
4010
4010
|
onClick: () => {
|
@@ -4019,7 +4019,7 @@ function ua({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
|
|
4019
4019
|
},
|
4020
4020
|
className: "xpert-chatbot-popup__header--btn-outline",
|
4021
4021
|
"aria-expanded": !e,
|
4022
|
-
children: /* @__PURE__ */
|
4022
|
+
children: /* @__PURE__ */ N.jsx(
|
4023
4023
|
"img",
|
4024
4024
|
{
|
4025
4025
|
"aria-hidden": !0,
|
@@ -4030,7 +4030,7 @@ function ua({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
|
|
4030
4030
|
}
|
4031
4031
|
)
|
4032
4032
|
}
|
4033
|
-
) : /* @__PURE__ */
|
4033
|
+
) : /* @__PURE__ */ N.jsx(
|
4034
4034
|
"button",
|
4035
4035
|
{
|
4036
4036
|
onClick: () => {
|
@@ -4044,7 +4044,7 @@ function ua({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
|
|
4044
4044
|
cursor: "pointer"
|
4045
4045
|
},
|
4046
4046
|
"aria-expanded": !e,
|
4047
|
-
children: /* @__PURE__ */
|
4047
|
+
children: /* @__PURE__ */ N.jsx(
|
4048
4048
|
"img",
|
4049
4049
|
{
|
4050
4050
|
"aria-hidden": !0,
|
@@ -4058,9 +4058,9 @@ function ua({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
|
|
4058
4058
|
);
|
4059
4059
|
}
|
4060
4060
|
ua.propTypes = {
|
4061
|
-
isNormalSize:
|
4062
|
-
setIsMounted:
|
4063
|
-
setIsNormalSize:
|
4061
|
+
isNormalSize: D.bool.isRequired,
|
4062
|
+
setIsMounted: D.func.isRequired,
|
4063
|
+
setIsNormalSize: D.func.isRequired
|
4064
4064
|
};
|
4065
4065
|
function ca({
|
4066
4066
|
isNormalSize: e,
|
@@ -4069,8 +4069,8 @@ function ca({
|
|
4069
4069
|
onClose: r,
|
4070
4070
|
isMounted: i
|
4071
4071
|
}) {
|
4072
|
-
return /* @__PURE__ */
|
4073
|
-
/* @__PURE__ */
|
4072
|
+
return /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
|
4073
|
+
/* @__PURE__ */ N.jsx(
|
4074
4074
|
"div",
|
4075
4075
|
{
|
4076
4076
|
style: {
|
@@ -4081,7 +4081,7 @@ function ca({
|
|
4081
4081
|
paddingTop: "1.25rem",
|
4082
4082
|
paddingBottom: "1.25rem"
|
4083
4083
|
},
|
4084
|
-
children: /* @__PURE__ */
|
4084
|
+
children: /* @__PURE__ */ N.jsx(
|
4085
4085
|
ua,
|
4086
4086
|
{
|
4087
4087
|
isMounted: i,
|
@@ -4092,7 +4092,7 @@ function ca({
|
|
4092
4092
|
)
|
4093
4093
|
}
|
4094
4094
|
),
|
4095
|
-
/* @__PURE__ */
|
4095
|
+
/* @__PURE__ */ N.jsx(
|
4096
4096
|
"button",
|
4097
4097
|
{
|
4098
4098
|
style: {
|
@@ -4107,8 +4107,8 @@ function ca({
|
|
4107
4107
|
onClick: r,
|
4108
4108
|
"aria-label": "Close Xpert dialog",
|
4109
4109
|
type: "button",
|
4110
|
-
children: /* @__PURE__ */
|
4111
|
-
|
4110
|
+
children: /* @__PURE__ */ N.jsx(
|
4111
|
+
Nt,
|
4112
4112
|
{
|
4113
4113
|
icon: "material-symbols:close",
|
4114
4114
|
alt: "Close Xpert dialog",
|
@@ -4120,13 +4120,13 @@ function ca({
|
|
4120
4120
|
] });
|
4121
4121
|
}
|
4122
4122
|
ca.propTypes = {
|
4123
|
-
isNormalSize:
|
4124
|
-
setIsMounted:
|
4125
|
-
setIsNormalSize:
|
4126
|
-
onClose:
|
4127
|
-
isMounted:
|
4123
|
+
isNormalSize: D.bool.isRequired,
|
4124
|
+
setIsMounted: D.func.isRequired,
|
4125
|
+
setIsNormalSize: D.func.isRequired,
|
4126
|
+
onClose: D.func.isRequired,
|
4127
|
+
isMounted: D.bool.isRequired
|
4128
4128
|
};
|
4129
|
-
const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */
|
4129
|
+
const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ N.jsxs(
|
4130
4130
|
"svg",
|
4131
4131
|
{
|
4132
4132
|
role: "banner",
|
@@ -4136,8 +4136,8 @@ const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ I.jsxs(
|
|
4136
4136
|
fill: "#none",
|
4137
4137
|
xmlns: "http://www.w3.org/2000/svg",
|
4138
4138
|
children: [
|
4139
|
-
/* @__PURE__ */
|
4140
|
-
/* @__PURE__ */
|
4139
|
+
/* @__PURE__ */ N.jsx("path", { d: "M0 5 L0 20 L70 20 L70 5 Z", fill: t }),
|
4140
|
+
/* @__PURE__ */ N.jsx(
|
4141
4141
|
"path",
|
4142
4142
|
{
|
4143
4143
|
fill: e,
|
@@ -4146,13 +4146,13 @@ const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ I.jsxs(
|
|
4146
4146
|
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"
|
4147
4147
|
}
|
4148
4148
|
),
|
4149
|
-
/* @__PURE__ */
|
4149
|
+
/* @__PURE__ */ N.jsx("path", {})
|
4150
4150
|
]
|
4151
4151
|
}
|
4152
4152
|
);
|
4153
4153
|
Rr.propTypes = {
|
4154
|
-
backgroundColor:
|
4155
|
-
textColor:
|
4154
|
+
backgroundColor: D.string,
|
4155
|
+
textColor: D.string
|
4156
4156
|
};
|
4157
4157
|
Rr.defaultProps = {
|
4158
4158
|
backgroundColor: "#F0CC00",
|
@@ -4169,7 +4169,7 @@ function pa({
|
|
4169
4169
|
}) {
|
4170
4170
|
var s, u, c, p, m, f, v, b, k;
|
4171
4171
|
const { primaryColor: o, conversationScreen: a } = _e(Fe), l = rt(Rc);
|
4172
|
-
return /* @__PURE__ */
|
4172
|
+
return /* @__PURE__ */ N.jsxs(
|
4173
4173
|
"div",
|
4174
4174
|
{
|
4175
4175
|
"data-testid": "xpert-conversations-header",
|
@@ -4181,7 +4181,7 @@ function pa({
|
|
4181
4181
|
...(s = a.header.container) == null ? void 0 : s.style
|
4182
4182
|
},
|
4183
4183
|
children: [
|
4184
|
-
/* @__PURE__ */
|
4184
|
+
/* @__PURE__ */ N.jsx(
|
4185
4185
|
"span",
|
4186
4186
|
{
|
4187
4187
|
className: "xpert-chatbot-popup__header_container",
|
@@ -4191,7 +4191,7 @@ function pa({
|
|
4191
4191
|
}
|
4192
4192
|
}
|
4193
4193
|
),
|
4194
|
-
((m = (p = a == null ? void 0 : a.header) == null ? void 0 : p.logo) == null ? void 0 : m.type) === "edx" ? /* @__PURE__ */
|
4194
|
+
((m = (p = a == null ? void 0 : a.header) == null ? void 0 : p.logo) == null ? void 0 : m.type) === "edx" ? /* @__PURE__ */ N.jsx(
|
4195
4195
|
"img",
|
4196
4196
|
{
|
4197
4197
|
"data-ot-ignore": "",
|
@@ -4201,14 +4201,14 @@ function pa({
|
|
4201
4201
|
"aria-hidden": !0,
|
4202
4202
|
style: a.header.logo.style
|
4203
4203
|
}
|
4204
|
-
) : /* @__PURE__ */
|
4204
|
+
) : /* @__PURE__ */ N.jsx(
|
4205
4205
|
Pc,
|
4206
4206
|
{
|
4207
4207
|
backgroundColor: (f = a.header.logo.style) == null ? void 0 : f.backgroundColor,
|
4208
4208
|
textColor: (v = a.header.logo.style) == null ? void 0 : v.color
|
4209
4209
|
}
|
4210
4210
|
),
|
4211
|
-
/* @__PURE__ */
|
4211
|
+
/* @__PURE__ */ N.jsx(
|
4212
4212
|
ca,
|
4213
4213
|
{
|
4214
4214
|
isMounted: n,
|
@@ -4218,7 +4218,7 @@ function pa({
|
|
4218
4218
|
onClose: i
|
4219
4219
|
}
|
4220
4220
|
),
|
4221
|
-
/* @__PURE__ */
|
4221
|
+
/* @__PURE__ */ N.jsx(
|
4222
4222
|
"span",
|
4223
4223
|
{
|
4224
4224
|
className: "xpert-chatbot-popup__header_container",
|
@@ -4233,11 +4233,11 @@ function pa({
|
|
4233
4233
|
);
|
4234
4234
|
}
|
4235
4235
|
pa.propTypes = {
|
4236
|
-
isMounted:
|
4237
|
-
isNormalSize:
|
4238
|
-
setIsMounted:
|
4239
|
-
setIsNormalSize:
|
4240
|
-
onClose:
|
4236
|
+
isMounted: D.bool.isRequired,
|
4237
|
+
isNormalSize: D.bool.isRequired,
|
4238
|
+
setIsMounted: D.func.isRequired,
|
4239
|
+
setIsNormalSize: D.func.isRequired,
|
4240
|
+
onClose: D.func.isRequired
|
4241
4241
|
};
|
4242
4242
|
function Ur({
|
4243
4243
|
containerStyle: e,
|
@@ -4255,8 +4255,8 @@ function Ur({
|
|
4255
4255
|
return be(() => {
|
4256
4256
|
var p;
|
4257
4257
|
(o || a) && ((p = l.current) == null || p.focus());
|
4258
|
-
}, [a, o, l]), /* @__PURE__ */
|
4259
|
-
/* @__PURE__ */
|
4258
|
+
}, [a, o, l]), /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
|
4259
|
+
/* @__PURE__ */ N.jsx(
|
4260
4260
|
"textarea",
|
4261
4261
|
{
|
4262
4262
|
disabled: s,
|
@@ -4285,7 +4285,7 @@ function Ur({
|
|
4285
4285
|
}
|
4286
4286
|
}
|
4287
4287
|
),
|
4288
|
-
/* @__PURE__ */
|
4288
|
+
/* @__PURE__ */ N.jsx(
|
4289
4289
|
"button",
|
4290
4290
|
{
|
4291
4291
|
disabled: s,
|
@@ -4294,22 +4294,22 @@ function Ur({
|
|
4294
4294
|
p.preventDefault(), i(u);
|
4295
4295
|
},
|
4296
4296
|
"aria-label": "Send message",
|
4297
|
-
children: /* @__PURE__ */
|
4297
|
+
children: /* @__PURE__ */ N.jsx(Nt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
4298
4298
|
}
|
4299
4299
|
)
|
4300
4300
|
] });
|
4301
4301
|
}
|
4302
4302
|
Ur.propTypes = {
|
4303
|
-
containerStyle:
|
4304
|
-
handleChange:
|
4305
|
-
handleInput:
|
4306
|
-
handleKeyDown:
|
4307
|
-
handleSend:
|
4308
|
-
hasError:
|
4309
|
-
hasXpertMessages:
|
4310
|
-
inputRef:
|
4311
|
-
loading:
|
4312
|
-
userInput:
|
4303
|
+
containerStyle: D.shape(),
|
4304
|
+
handleChange: D.func.isRequired,
|
4305
|
+
handleInput: D.func.isRequired,
|
4306
|
+
handleKeyDown: D.func.isRequired,
|
4307
|
+
handleSend: D.func.isRequired,
|
4308
|
+
hasError: D.bool,
|
4309
|
+
hasXpertMessages: D.bool,
|
4310
|
+
inputRef: D.shape({ current: D.instanceOf(Object) }).isRequired,
|
4311
|
+
loading: D.bool.isRequired,
|
4312
|
+
userInput: D.string.isRequired
|
4313
4313
|
};
|
4314
4314
|
Ur.defaultProps = {
|
4315
4315
|
containerStyle: void 0,
|
@@ -5139,7 +5139,7 @@ const Tr = it(/\d/), hp = it(/[\dA-Fa-f]/), gp = it(/[!-/:-@[-`{-~]/);
|
|
5139
5139
|
function G(e) {
|
5140
5140
|
return e !== null && e < -2;
|
5141
5141
|
}
|
5142
|
-
function
|
5142
|
+
function De(e) {
|
5143
5143
|
return e !== null && (e < 0 || e === 32);
|
5144
5144
|
}
|
5145
5145
|
function ie(e) {
|
@@ -5343,7 +5343,7 @@ function vp(e, t, n) {
|
|
5343
5343
|
);
|
5344
5344
|
}
|
5345
5345
|
function Ji(e) {
|
5346
|
-
if (e === null ||
|
5346
|
+
if (e === null || De(e) || yp(e))
|
5347
5347
|
return 1;
|
5348
5348
|
if (mp(e))
|
5349
5349
|
return 2;
|
@@ -5357,9 +5357,9 @@ function Br(e, t, n) {
|
|
5357
5357
|
}
|
5358
5358
|
return t;
|
5359
5359
|
}
|
5360
|
-
const
|
5360
|
+
const Nr = {
|
5361
5361
|
name: "attention",
|
5362
|
-
tokenize:
|
5362
|
+
tokenize: Np,
|
5363
5363
|
resolveAll: Tp
|
5364
5364
|
};
|
5365
5365
|
function Tp(e, t) {
|
@@ -5420,7 +5420,7 @@ function Tp(e, t) {
|
|
5420
5420
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
5421
5421
|
return e;
|
5422
5422
|
}
|
5423
|
-
function
|
5423
|
+
function Np(e, t) {
|
5424
5424
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Ji(r);
|
5425
5425
|
let o;
|
5426
5426
|
return a;
|
@@ -5437,11 +5437,11 @@ function Ip(e, t) {
|
|
5437
5437
|
function eo(e, t) {
|
5438
5438
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
5439
5439
|
}
|
5440
|
-
const
|
5440
|
+
const Dp = {
|
5441
5441
|
name: "autolink",
|
5442
|
-
tokenize:
|
5442
|
+
tokenize: Ip
|
5443
5443
|
};
|
5444
|
-
function
|
5444
|
+
function Ip(e, t, n) {
|
5445
5445
|
let r = 0;
|
5446
5446
|
return i;
|
5447
5447
|
function i(f) {
|
@@ -5476,7 +5476,7 @@ function Dp(e, t, n) {
|
|
5476
5476
|
return n(f);
|
5477
5477
|
}
|
5478
5478
|
}
|
5479
|
-
const
|
5479
|
+
const Nn = {
|
5480
5480
|
tokenize: kp,
|
5481
5481
|
partial: !0
|
5482
5482
|
};
|
@@ -5864,7 +5864,7 @@ function va(e, t, n, r, i, o, a, l, s) {
|
|
5864
5864
|
return M === 60 || M === 62 || M === 92 ? (e.consume(M), f) : f(M);
|
5865
5865
|
}
|
5866
5866
|
function b(M) {
|
5867
|
-
return !c && (M === null || M === 41 ||
|
5867
|
+
return !c && (M === null || M === 41 || De(M)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(M)) : c < u && M === 40 ? (e.consume(M), c++, b) : M === 41 ? (e.consume(M), c--, b) : M === null || M === 32 || M === 40 || vr(M) ? n(M) : (e.consume(M), M === 92 ? k : b);
|
5868
5868
|
}
|
5869
5869
|
function k(M) {
|
5870
5870
|
return M === 40 || M === 41 || M === 92 ? (e.consume(M), b) : b(M);
|
@@ -5894,7 +5894,7 @@ function Ta(e, t, n, r, i, o) {
|
|
5894
5894
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), l++, p) : p(f);
|
5895
5895
|
}
|
5896
5896
|
}
|
5897
|
-
function
|
5897
|
+
function Na(e, t, n, r, i, o) {
|
5898
5898
|
let a;
|
5899
5899
|
return l;
|
5900
5900
|
function l(m) {
|
@@ -5961,7 +5961,7 @@ function Zp(e, t, n) {
|
|
5961
5961
|
), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
|
5962
5962
|
}
|
5963
5963
|
function s(f) {
|
5964
|
-
return
|
5964
|
+
return De(f) ? Ht(e, u)(f) : u(f);
|
5965
5965
|
}
|
5966
5966
|
function u(f) {
|
5967
5967
|
return va(
|
@@ -5989,10 +5989,10 @@ function Zp(e, t, n) {
|
|
5989
5989
|
function Kp(e, t, n) {
|
5990
5990
|
return r;
|
5991
5991
|
function r(l) {
|
5992
|
-
return
|
5992
|
+
return De(l) ? Ht(e, i)(l) : n(l);
|
5993
5993
|
}
|
5994
5994
|
function i(l) {
|
5995
|
-
return
|
5995
|
+
return Na(
|
5996
5996
|
e,
|
5997
5997
|
o,
|
5998
5998
|
n,
|
@@ -6054,7 +6054,7 @@ function nf(e, t, n) {
|
|
6054
6054
|
return e.enter("atxHeadingSequence"), a(c);
|
6055
6055
|
}
|
6056
6056
|
function a(c) {
|
6057
|
-
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null ||
|
6057
|
+
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || De(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
|
6058
6058
|
}
|
6059
6059
|
function l(c) {
|
6060
6060
|
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || G(c) ? (e.exit("atxHeading"), t(c)) : ie(c) ? pe(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
|
@@ -6063,7 +6063,7 @@ function nf(e, t, n) {
|
|
6063
6063
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
|
6064
6064
|
}
|
6065
6065
|
function u(c) {
|
6066
|
-
return c === null || c === 35 ||
|
6066
|
+
return c === null || c === 35 || De(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
|
6067
6067
|
}
|
6068
6068
|
}
|
6069
6069
|
const rf = [
|
@@ -6174,9 +6174,9 @@ function uf(e, t, n) {
|
|
6174
6174
|
return Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
|
6175
6175
|
}
|
6176
6176
|
function k(h) {
|
6177
|
-
if (h === null || h === 47 || h === 62 ||
|
6178
|
-
const ge = h === 47,
|
6179
|
-
return !ge && !o && io.includes(
|
6177
|
+
if (h === null || h === 47 || h === 62 || De(h)) {
|
6178
|
+
const ge = h === 47, Ie = a.toLowerCase();
|
6179
|
+
return !ge && !o && io.includes(Ie) ? (i = 1, r.interrupt ? t(h) : w(h)) : rf.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), M) : r.interrupt ? t(h) : w(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? z(h) : E(h));
|
6180
6180
|
}
|
6181
6181
|
return h === 45 || Ce(h) ? (e.consume(h), a += String.fromCharCode(h), k) : n(h);
|
6182
6182
|
}
|
@@ -6202,7 +6202,7 @@ function uf(e, t, n) {
|
|
6202
6202
|
return h === s ? (e.consume(h), s = null, W) : h === null || G(h) ? n(h) : (e.consume(h), L);
|
6203
6203
|
}
|
6204
6204
|
function $(h) {
|
6205
|
-
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 ||
|
6205
|
+
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || De(h) ? U(h) : (e.consume(h), $);
|
6206
6206
|
}
|
6207
6207
|
function W(h) {
|
6208
6208
|
return h === 47 || h === 62 || ie(h) ? E(h) : n(h);
|
@@ -6272,7 +6272,7 @@ function cf(e, t, n) {
|
|
6272
6272
|
function pf(e, t, n) {
|
6273
6273
|
return r;
|
6274
6274
|
function r(i) {
|
6275
|
-
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(
|
6275
|
+
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Nn, t, n);
|
6276
6276
|
}
|
6277
6277
|
}
|
6278
6278
|
const ff = {
|
@@ -6336,7 +6336,7 @@ function df(e, t, n) {
|
|
6336
6336
|
return G(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : B(g);
|
6337
6337
|
}
|
6338
6338
|
function $(g) {
|
6339
|
-
return g === 45 || Ce(g) ? (e.consume(g), $) : g === 47 || g === 62 ||
|
6339
|
+
return g === 45 || Ce(g) ? (e.consume(g), $) : g === 47 || g === 62 || De(g) ? W(g) : n(g);
|
6340
6340
|
}
|
6341
6341
|
function W(g) {
|
6342
6342
|
return g === 47 ? (e.consume(g), B) : g === 58 || g === 95 || Ve(g) ? (e.consume(g), X) : G(g) ? (a = W, V(g)) : ie(g) ? (e.consume(g), W) : B(g);
|
@@ -6354,10 +6354,10 @@ function df(e, t, n) {
|
|
6354
6354
|
return g === i ? (e.consume(g), i = void 0, F) : g === null ? n(g) : G(g) ? (a = j, V(g)) : (e.consume(g), j);
|
6355
6355
|
}
|
6356
6356
|
function O(g) {
|
6357
|
-
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 ||
|
6357
|
+
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || De(g) ? W(g) : (e.consume(g), O);
|
6358
6358
|
}
|
6359
6359
|
function F(g) {
|
6360
|
-
return g === 47 || g === 62 ||
|
6360
|
+
return g === 47 || g === 62 || De(g) ? W(g) : n(g);
|
6361
6361
|
}
|
6362
6362
|
function B(g) {
|
6363
6363
|
return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
|
@@ -6491,7 +6491,7 @@ function bf(e, t, n) {
|
|
6491
6491
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
|
6492
6492
|
}
|
6493
6493
|
function i(p) {
|
6494
|
-
return
|
6494
|
+
return De(p) ? Ht(e, o)(p) : o(p);
|
6495
6495
|
}
|
6496
6496
|
function o(p) {
|
6497
6497
|
return p === 41 ? c(p) : va(
|
@@ -6507,13 +6507,13 @@ function bf(e, t, n) {
|
|
6507
6507
|
)(p);
|
6508
6508
|
}
|
6509
6509
|
function a(p) {
|
6510
|
-
return
|
6510
|
+
return De(p) ? Ht(e, s)(p) : c(p);
|
6511
6511
|
}
|
6512
6512
|
function l(p) {
|
6513
6513
|
return n(p);
|
6514
6514
|
}
|
6515
6515
|
function s(p) {
|
6516
|
-
return p === 34 || p === 39 || p === 40 ?
|
6516
|
+
return p === 34 || p === 39 || p === 40 ? Na(
|
6517
6517
|
e,
|
6518
6518
|
u,
|
6519
6519
|
n,
|
@@ -6523,7 +6523,7 @@ function bf(e, t, n) {
|
|
6523
6523
|
)(p) : c(p);
|
6524
6524
|
}
|
6525
6525
|
function u(p) {
|
6526
|
-
return
|
6526
|
+
return De(p) ? Ht(e, c)(p) : c(p);
|
6527
6527
|
}
|
6528
6528
|
function c(p) {
|
6529
6529
|
return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
|
@@ -6565,10 +6565,10 @@ function vf(e, t, n) {
|
|
6565
6565
|
}
|
6566
6566
|
const Tf = {
|
6567
6567
|
name: "labelStartImage",
|
6568
|
-
tokenize:
|
6568
|
+
tokenize: Nf,
|
6569
6569
|
resolveAll: Yr.resolveAll
|
6570
6570
|
};
|
6571
|
-
function
|
6571
|
+
function Nf(e, t, n) {
|
6572
6572
|
const r = this;
|
6573
6573
|
return i;
|
6574
6574
|
function i(l) {
|
@@ -6581,12 +6581,12 @@ function If(e, t, n) {
|
|
6581
6581
|
return l === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(l) : t(l);
|
6582
6582
|
}
|
6583
6583
|
}
|
6584
|
-
const
|
6584
|
+
const Df = {
|
6585
6585
|
name: "labelStartLink",
|
6586
|
-
tokenize:
|
6586
|
+
tokenize: If,
|
6587
6587
|
resolveAll: Yr.resolveAll
|
6588
6588
|
};
|
6589
|
-
function
|
6589
|
+
function If(e, t, n) {
|
6590
6590
|
const r = this;
|
6591
6591
|
return i;
|
6592
6592
|
function i(a) {
|
@@ -6626,7 +6626,7 @@ function jf(e, t, n) {
|
|
6626
6626
|
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), ie(u) ? pe(e, l, "whitespace")(u) : l(u));
|
6627
6627
|
}
|
6628
6628
|
}
|
6629
|
-
const
|
6629
|
+
const Ne = {
|
6630
6630
|
name: "list",
|
6631
6631
|
tokenize: Af,
|
6632
6632
|
continuation: {
|
@@ -6661,7 +6661,7 @@ function Af(e, t, n) {
|
|
6661
6661
|
}
|
6662
6662
|
function u(f) {
|
6663
6663
|
return e.enter("listItemMarker"), e.consume(f), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || f, e.check(
|
6664
|
-
|
6664
|
+
Nn,
|
6665
6665
|
// Can’t be empty when interrupting.
|
6666
6666
|
r.interrupt ? n : c,
|
6667
6667
|
e.attempt(
|
@@ -6683,7 +6683,7 @@ function Af(e, t, n) {
|
|
6683
6683
|
}
|
6684
6684
|
function Sf(e, t, n) {
|
6685
6685
|
const r = this;
|
6686
|
-
return r.containerState._closeFlow = void 0, e.check(
|
6686
|
+
return r.containerState._closeFlow = void 0, e.check(Nn, i, o);
|
6687
6687
|
function i(l) {
|
6688
6688
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, pe(
|
6689
6689
|
e,
|
@@ -6698,7 +6698,7 @@ function Sf(e, t, n) {
|
|
6698
6698
|
function a(l) {
|
6699
6699
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, pe(
|
6700
6700
|
e,
|
6701
|
-
e.attempt(
|
6701
|
+
e.attempt(Ne, t, n),
|
6702
6702
|
"linePrefix",
|
6703
6703
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
6704
6704
|
)(l);
|
@@ -6785,7 +6785,7 @@ const Pf = {
|
|
6785
6785
|
function Rf(e) {
|
6786
6786
|
const t = this, n = e.attempt(
|
6787
6787
|
// Try to parse a blank line.
|
6788
|
-
|
6788
|
+
Nn,
|
6789
6789
|
r,
|
6790
6790
|
// Try to parse initial flow (essentially, only code).
|
6791
6791
|
e.attempt(
|
@@ -6819,12 +6819,12 @@ function Rf(e) {
|
|
6819
6819
|
}
|
6820
6820
|
}
|
6821
6821
|
const Uf = {
|
6822
|
-
resolveAll:
|
6823
|
-
}, Bf =
|
6824
|
-
function
|
6822
|
+
resolveAll: Ia()
|
6823
|
+
}, Bf = Da("string"), Qf = Da("text");
|
6824
|
+
function Da(e) {
|
6825
6825
|
return {
|
6826
6826
|
tokenize: t,
|
6827
|
-
resolveAll:
|
6827
|
+
resolveAll: Ia(
|
6828
6828
|
e === "text" ? Yf : void 0
|
6829
6829
|
)
|
6830
6830
|
};
|
@@ -6859,7 +6859,7 @@ function Na(e) {
|
|
6859
6859
|
}
|
6860
6860
|
}
|
6861
6861
|
}
|
6862
|
-
function
|
6862
|
+
function Ia(e) {
|
6863
6863
|
return t;
|
6864
6864
|
function t(n, r) {
|
6865
6865
|
let i = -1, o;
|
@@ -7028,21 +7028,21 @@ function Hf(e, t, n) {
|
|
7028
7028
|
function h(re) {
|
7029
7029
|
return we;
|
7030
7030
|
function we(ve) {
|
7031
|
-
return g = W(), K = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ?
|
7031
|
+
return g = W(), K = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Ie() : re.tokenize.call(
|
7032
7032
|
// If we do have fields, create an object w/ `context` as its
|
7033
7033
|
// prototype.
|
7034
7034
|
// This allows a “live binding”, which is needed for `interrupt`.
|
7035
7035
|
w ? Object.assign(Object.create(u), w) : u,
|
7036
7036
|
s,
|
7037
7037
|
ge,
|
7038
|
-
|
7038
|
+
Ie
|
7039
7039
|
)(ve);
|
7040
7040
|
}
|
7041
7041
|
}
|
7042
7042
|
function ge(re) {
|
7043
7043
|
return A(K, g), F;
|
7044
7044
|
}
|
7045
|
-
function
|
7045
|
+
function Ie(re) {
|
7046
7046
|
return g.restore(), ++q < V.length ? h(V[q]) : B;
|
7047
7047
|
}
|
7048
7048
|
}
|
@@ -7126,19 +7126,19 @@ function qf(e, t) {
|
|
7126
7126
|
return r.join("");
|
7127
7127
|
}
|
7128
7128
|
const Vf = {
|
7129
|
-
42:
|
7130
|
-
43:
|
7131
|
-
45:
|
7132
|
-
48:
|
7133
|
-
49:
|
7134
|
-
50:
|
7135
|
-
51:
|
7136
|
-
52:
|
7137
|
-
53:
|
7138
|
-
54:
|
7139
|
-
55:
|
7140
|
-
56:
|
7141
|
-
57:
|
7129
|
+
42: Ne,
|
7130
|
+
43: Ne,
|
7131
|
+
45: Ne,
|
7132
|
+
48: Ne,
|
7133
|
+
49: Ne,
|
7134
|
+
50: Ne,
|
7135
|
+
51: Ne,
|
7136
|
+
52: Ne,
|
7137
|
+
53: Ne,
|
7138
|
+
54: Ne,
|
7139
|
+
55: Ne,
|
7140
|
+
56: Ne,
|
7141
|
+
57: Ne,
|
7142
7142
|
62: Ma
|
7143
7143
|
}, Wf = {
|
7144
7144
|
91: Wp
|
@@ -7164,15 +7164,15 @@ const Vf = {
|
|
7164
7164
|
[-3]: ir,
|
7165
7165
|
33: Tf,
|
7166
7166
|
38: ba,
|
7167
|
-
42:
|
7168
|
-
60: [
|
7169
|
-
91:
|
7167
|
+
42: Nr,
|
7168
|
+
60: [Dp, ff],
|
7169
|
+
91: Df,
|
7170
7170
|
92: [Xp, xa],
|
7171
7171
|
93: Yr,
|
7172
|
-
95:
|
7172
|
+
95: Nr,
|
7173
7173
|
96: Pp
|
7174
7174
|
}, Jf = {
|
7175
|
-
null: [
|
7175
|
+
null: [Nr, Uf]
|
7176
7176
|
}, ed = {
|
7177
7177
|
null: [42, 95]
|
7178
7178
|
}, td = {
|
@@ -7337,7 +7337,7 @@ function cd(e) {
|
|
7337
7337
|
listOrdered: l(ee, f),
|
7338
7338
|
listUnordered: l(ee),
|
7339
7339
|
paragraph: l(le),
|
7340
|
-
reference:
|
7340
|
+
reference: Ie,
|
7341
7341
|
referenceString: s,
|
7342
7342
|
resourceDestinationString: s,
|
7343
7343
|
resourceTitleString: s,
|
@@ -7399,7 +7399,7 @@ function cd(e) {
|
|
7399
7399
|
Ea(t, (e || {}).mdastExtensions || []);
|
7400
7400
|
const n = {};
|
7401
7401
|
return r;
|
7402
|
-
function r(
|
7402
|
+
function r(I) {
|
7403
7403
|
let S = {
|
7404
7404
|
type: "root",
|
7405
7405
|
children: []
|
@@ -7416,24 +7416,24 @@ function cd(e) {
|
|
7416
7416
|
getData: a
|
7417
7417
|
}, J = [];
|
7418
7418
|
let oe = -1;
|
7419
|
-
for (; ++oe <
|
7420
|
-
if (
|
7421
|
-
if (
|
7419
|
+
for (; ++oe < I.length; )
|
7420
|
+
if (I[oe][1].type === "listOrdered" || I[oe][1].type === "listUnordered")
|
7421
|
+
if (I[oe][0] === "enter")
|
7422
7422
|
J.push(oe);
|
7423
7423
|
else {
|
7424
7424
|
const Te = J.pop();
|
7425
|
-
oe = i(
|
7425
|
+
oe = i(I, Te, oe);
|
7426
7426
|
}
|
7427
|
-
for (oe = -1; ++oe <
|
7428
|
-
const Te = t[
|
7429
|
-
ja.call(Te,
|
7427
|
+
for (oe = -1; ++oe < I.length; ) {
|
7428
|
+
const Te = t[I[oe][0]];
|
7429
|
+
ja.call(Te, I[oe][1].type) && Te[I[oe][1].type].call(
|
7430
7430
|
Object.assign(
|
7431
7431
|
{
|
7432
|
-
sliceSerialize:
|
7432
|
+
sliceSerialize: I[oe][2].sliceSerialize
|
7433
7433
|
},
|
7434
7434
|
Y
|
7435
7435
|
),
|
7436
|
-
|
7436
|
+
I[oe][1]
|
7437
7437
|
);
|
7438
7438
|
}
|
7439
7439
|
if (Y.tokenStack.length > 0) {
|
@@ -7442,14 +7442,14 @@ function cd(e) {
|
|
7442
7442
|
}
|
7443
7443
|
for (S.position = {
|
7444
7444
|
start: Je(
|
7445
|
-
|
7445
|
+
I.length > 0 ? I[0][1].start : {
|
7446
7446
|
line: 1,
|
7447
7447
|
column: 1,
|
7448
7448
|
offset: 0
|
7449
7449
|
}
|
7450
7450
|
),
|
7451
7451
|
end: Je(
|
7452
|
-
|
7452
|
+
I.length > 0 ? I[I.length - 2][1].end : {
|
7453
7453
|
line: 1,
|
7454
7454
|
column: 1,
|
7455
7455
|
offset: 0
|
@@ -7459,26 +7459,26 @@ function cd(e) {
|
|
7459
7459
|
S = t.transforms[oe](S) || S;
|
7460
7460
|
return S;
|
7461
7461
|
}
|
7462
|
-
function i(
|
7462
|
+
function i(I, S, Y) {
|
7463
7463
|
let J = S - 1, oe = -1, Te = !1, Ye, He, lt, ke;
|
7464
7464
|
for (; ++J <= Y; ) {
|
7465
|
-
const ue =
|
7465
|
+
const ue = I[J];
|
7466
7466
|
if (ue[1].type === "listUnordered" || ue[1].type === "listOrdered" || ue[1].type === "blockQuote" ? (ue[0] === "enter" ? oe++ : oe--, ke = void 0) : ue[1].type === "lineEndingBlank" ? ue[0] === "enter" && (Ye && !ke && !oe && !lt && (lt = J), ke = void 0) : ue[1].type === "linePrefix" || ue[1].type === "listItemValue" || ue[1].type === "listItemMarker" || ue[1].type === "listItemPrefix" || ue[1].type === "listItemPrefixWhitespace" || (ke = void 0), !oe && ue[0] === "enter" && ue[1].type === "listItemPrefix" || oe === -1 && ue[0] === "exit" && (ue[1].type === "listUnordered" || ue[1].type === "listOrdered")) {
|
7467
7467
|
if (Ye) {
|
7468
7468
|
let Ct = J;
|
7469
7469
|
for (He = void 0; Ct--; ) {
|
7470
|
-
const Se =
|
7470
|
+
const Se = I[Ct];
|
7471
7471
|
if (Se[1].type === "lineEnding" || Se[1].type === "lineEndingBlank") {
|
7472
7472
|
if (Se[0] === "exit")
|
7473
7473
|
continue;
|
7474
|
-
He && (
|
7474
|
+
He && (I[He][1].type = "lineEndingBlank", Te = !0), Se[1].type = "lineEnding", He = Ct;
|
7475
7475
|
} else if (!(Se[1].type === "linePrefix" || Se[1].type === "blockQuotePrefix" || Se[1].type === "blockQuotePrefixWhitespace" || Se[1].type === "blockQuoteMarker" || Se[1].type === "listItemIndent"))
|
7476
7476
|
break;
|
7477
7477
|
}
|
7478
7478
|
lt && (!He || lt < He) && (Ye._spread = !0), Ye.end = Object.assign(
|
7479
7479
|
{},
|
7480
|
-
He ?
|
7481
|
-
),
|
7480
|
+
He ? I[He][1].start : ue[1].end
|
7481
|
+
), I.splice(He || J, 0, ["exit", Ye, ue[2]]), J++, Y++;
|
7482
7482
|
}
|
7483
7483
|
ue[1].type === "listItemPrefix" && (Ye = {
|
7484
7484
|
type: "listItem",
|
@@ -7486,21 +7486,21 @@ function cd(e) {
|
|
7486
7486
|
start: Object.assign({}, ue[1].start),
|
7487
7487
|
// @ts-expect-error: we’ll add `end` in a second.
|
7488
7488
|
end: void 0
|
7489
|
-
},
|
7489
|
+
}, I.splice(J, 0, ["enter", Ye, ue[2]]), J++, Y++, lt = void 0, ke = !0);
|
7490
7490
|
}
|
7491
7491
|
}
|
7492
|
-
return
|
7492
|
+
return I[S][1]._spread = Te, Y;
|
7493
7493
|
}
|
7494
|
-
function o(
|
7495
|
-
n[
|
7494
|
+
function o(I, S) {
|
7495
|
+
n[I] = S;
|
7496
7496
|
}
|
7497
|
-
function a(
|
7498
|
-
return n[
|
7497
|
+
function a(I) {
|
7498
|
+
return n[I];
|
7499
7499
|
}
|
7500
|
-
function l(
|
7500
|
+
function l(I, S) {
|
7501
7501
|
return Y;
|
7502
7502
|
function Y(J) {
|
7503
|
-
u.call(this,
|
7503
|
+
u.call(this, I(J), J), S && S.call(this, J);
|
7504
7504
|
}
|
7505
7505
|
}
|
7506
7506
|
function s() {
|
@@ -7509,29 +7509,29 @@ function cd(e) {
|
|
7509
7509
|
children: []
|
7510
7510
|
});
|
7511
7511
|
}
|
7512
|
-
function u(
|
7513
|
-
return this.stack[this.stack.length - 1].children.push(
|
7512
|
+
function u(I, S, Y) {
|
7513
|
+
return this.stack[this.stack.length - 1].children.push(I), this.stack.push(I), this.tokenStack.push([S, Y]), I.position = {
|
7514
7514
|
start: Je(S.start)
|
7515
|
-
},
|
7515
|
+
}, I;
|
7516
7516
|
}
|
7517
|
-
function c(
|
7517
|
+
function c(I) {
|
7518
7518
|
return S;
|
7519
7519
|
function S(Y) {
|
7520
|
-
|
7520
|
+
I && I.call(this, Y), p.call(this, Y);
|
7521
7521
|
}
|
7522
7522
|
}
|
7523
|
-
function p(
|
7523
|
+
function p(I, S) {
|
7524
7524
|
const Y = this.stack.pop(), J = this.tokenStack.pop();
|
7525
7525
|
if (J)
|
7526
|
-
J[0].type !==
|
7526
|
+
J[0].type !== I.type && (S ? S.call(this, I, J[0]) : (J[1] || lo).call(this, I, J[0]));
|
7527
7527
|
else
|
7528
7528
|
throw new Error(
|
7529
|
-
"Cannot close `" +
|
7530
|
-
start:
|
7531
|
-
end:
|
7529
|
+
"Cannot close `" + I.type + "` (" + Yt({
|
7530
|
+
start: I.start,
|
7531
|
+
end: I.end
|
7532
7532
|
}) + "): it’s not open"
|
7533
7533
|
);
|
7534
|
-
return Y.position.end = Je(
|
7534
|
+
return Y.position.end = Je(I.end), Y;
|
7535
7535
|
}
|
7536
7536
|
function m() {
|
7537
7537
|
return lp(this.stack.pop());
|
@@ -7539,169 +7539,169 @@ function cd(e) {
|
|
7539
7539
|
function f() {
|
7540
7540
|
o("expectingFirstListItemValue", !0);
|
7541
7541
|
}
|
7542
|
-
function v(
|
7542
|
+
function v(I) {
|
7543
7543
|
if (a("expectingFirstListItemValue")) {
|
7544
7544
|
const S = this.stack[this.stack.length - 2];
|
7545
|
-
S.start = Number.parseInt(this.sliceSerialize(
|
7545
|
+
S.start = Number.parseInt(this.sliceSerialize(I), 10), o("expectingFirstListItemValue");
|
7546
7546
|
}
|
7547
7547
|
}
|
7548
7548
|
function b() {
|
7549
|
-
const
|
7550
|
-
S.lang =
|
7549
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7550
|
+
S.lang = I;
|
7551
7551
|
}
|
7552
7552
|
function k() {
|
7553
|
-
const
|
7554
|
-
S.meta =
|
7553
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7554
|
+
S.meta = I;
|
7555
7555
|
}
|
7556
7556
|
function M() {
|
7557
7557
|
a("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
|
7558
7558
|
}
|
7559
7559
|
function z() {
|
7560
|
-
const
|
7561
|
-
S.value =
|
7560
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7561
|
+
S.value = I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
|
7562
7562
|
}
|
7563
7563
|
function E() {
|
7564
|
-
const
|
7565
|
-
S.value =
|
7564
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7565
|
+
S.value = I.replace(/(\r?\n|\r)$/g, "");
|
7566
7566
|
}
|
7567
|
-
function _(
|
7567
|
+
function _(I) {
|
7568
7568
|
const S = this.resume(), Y = this.stack[this.stack.length - 1];
|
7569
7569
|
Y.label = S, Y.identifier = bt(
|
7570
|
-
this.sliceSerialize(
|
7570
|
+
this.sliceSerialize(I)
|
7571
7571
|
).toLowerCase();
|
7572
7572
|
}
|
7573
7573
|
function U() {
|
7574
|
-
const
|
7575
|
-
S.title =
|
7574
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7575
|
+
S.title = I;
|
7576
7576
|
}
|
7577
7577
|
function x() {
|
7578
|
-
const
|
7579
|
-
S.url =
|
7578
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7579
|
+
S.url = I;
|
7580
7580
|
}
|
7581
|
-
function L(
|
7581
|
+
function L(I) {
|
7582
7582
|
const S = this.stack[this.stack.length - 1];
|
7583
7583
|
if (!S.depth) {
|
7584
|
-
const Y = this.sliceSerialize(
|
7584
|
+
const Y = this.sliceSerialize(I).length;
|
7585
7585
|
S.depth = Y;
|
7586
7586
|
}
|
7587
7587
|
}
|
7588
7588
|
function $() {
|
7589
7589
|
o("setextHeadingSlurpLineEnding", !0);
|
7590
7590
|
}
|
7591
|
-
function W(
|
7591
|
+
function W(I) {
|
7592
7592
|
const S = this.stack[this.stack.length - 1];
|
7593
|
-
S.depth = this.sliceSerialize(
|
7593
|
+
S.depth = this.sliceSerialize(I).charCodeAt(0) === 61 ? 1 : 2;
|
7594
7594
|
}
|
7595
7595
|
function X() {
|
7596
7596
|
o("setextHeadingSlurpLineEnding");
|
7597
7597
|
}
|
7598
|
-
function A(
|
7598
|
+
function A(I) {
|
7599
7599
|
const S = this.stack[this.stack.length - 1];
|
7600
7600
|
let Y = S.children[S.children.length - 1];
|
7601
7601
|
(!Y || Y.type !== "text") && (Y = $e(), Y.position = {
|
7602
|
-
start: Je(
|
7602
|
+
start: Je(I.start)
|
7603
7603
|
}, S.children.push(Y)), this.stack.push(Y);
|
7604
7604
|
}
|
7605
|
-
function w(
|
7605
|
+
function w(I) {
|
7606
7606
|
const S = this.stack.pop();
|
7607
|
-
S.value += this.sliceSerialize(
|
7607
|
+
S.value += this.sliceSerialize(I), S.position.end = Je(I.end);
|
7608
7608
|
}
|
7609
|
-
function j(
|
7609
|
+
function j(I) {
|
7610
7610
|
const S = this.stack[this.stack.length - 1];
|
7611
7611
|
if (a("atHardBreak")) {
|
7612
7612
|
const Y = S.children[S.children.length - 1];
|
7613
|
-
Y.position.end = Je(
|
7613
|
+
Y.position.end = Je(I.end), o("atHardBreak");
|
7614
7614
|
return;
|
7615
7615
|
}
|
7616
|
-
!a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(S.type) && (A.call(this,
|
7616
|
+
!a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(S.type) && (A.call(this, I), w.call(this, I));
|
7617
7617
|
}
|
7618
7618
|
function O() {
|
7619
7619
|
o("atHardBreak", !0);
|
7620
7620
|
}
|
7621
7621
|
function F() {
|
7622
|
-
const
|
7623
|
-
S.value =
|
7622
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7623
|
+
S.value = I;
|
7624
7624
|
}
|
7625
7625
|
function B() {
|
7626
|
-
const
|
7627
|
-
S.value =
|
7626
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7627
|
+
S.value = I;
|
7628
7628
|
}
|
7629
7629
|
function V() {
|
7630
|
-
const
|
7631
|
-
S.value =
|
7630
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7631
|
+
S.value = I;
|
7632
7632
|
}
|
7633
7633
|
function q() {
|
7634
|
-
const
|
7634
|
+
const I = this.stack[this.stack.length - 1];
|
7635
7635
|
if (a("inReference")) {
|
7636
7636
|
const S = a("referenceType") || "shortcut";
|
7637
|
-
|
7637
|
+
I.type += "Reference", I.referenceType = S, delete I.url, delete I.title;
|
7638
7638
|
} else
|
7639
|
-
delete
|
7639
|
+
delete I.identifier, delete I.label;
|
7640
7640
|
o("referenceType");
|
7641
7641
|
}
|
7642
7642
|
function K() {
|
7643
|
-
const
|
7643
|
+
const I = this.stack[this.stack.length - 1];
|
7644
7644
|
if (a("inReference")) {
|
7645
7645
|
const S = a("referenceType") || "shortcut";
|
7646
|
-
|
7646
|
+
I.type += "Reference", I.referenceType = S, delete I.url, delete I.title;
|
7647
7647
|
} else
|
7648
|
-
delete
|
7648
|
+
delete I.identifier, delete I.label;
|
7649
7649
|
o("referenceType");
|
7650
7650
|
}
|
7651
|
-
function g(
|
7652
|
-
const S = this.sliceSerialize(
|
7651
|
+
function g(I) {
|
7652
|
+
const S = this.sliceSerialize(I), Y = this.stack[this.stack.length - 2];
|
7653
7653
|
Y.label = ld(S), Y.identifier = bt(S).toLowerCase();
|
7654
7654
|
}
|
7655
7655
|
function he() {
|
7656
|
-
const
|
7656
|
+
const I = this.stack[this.stack.length - 1], S = this.resume(), Y = this.stack[this.stack.length - 1];
|
7657
7657
|
if (o("inReference", !0), Y.type === "link") {
|
7658
|
-
const J =
|
7658
|
+
const J = I.children;
|
7659
7659
|
Y.children = J;
|
7660
7660
|
} else
|
7661
7661
|
Y.alt = S;
|
7662
7662
|
}
|
7663
7663
|
function Me() {
|
7664
|
-
const
|
7665
|
-
S.url =
|
7664
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7665
|
+
S.url = I;
|
7666
7666
|
}
|
7667
7667
|
function h() {
|
7668
|
-
const
|
7669
|
-
S.title =
|
7668
|
+
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7669
|
+
S.title = I;
|
7670
7670
|
}
|
7671
7671
|
function ge() {
|
7672
7672
|
o("inReference");
|
7673
7673
|
}
|
7674
|
-
function
|
7674
|
+
function Ie() {
|
7675
7675
|
o("referenceType", "collapsed");
|
7676
7676
|
}
|
7677
|
-
function re(
|
7677
|
+
function re(I) {
|
7678
7678
|
const S = this.resume(), Y = this.stack[this.stack.length - 1];
|
7679
7679
|
Y.label = S, Y.identifier = bt(
|
7680
|
-
this.sliceSerialize(
|
7680
|
+
this.sliceSerialize(I)
|
7681
7681
|
).toLowerCase(), o("referenceType", "full");
|
7682
7682
|
}
|
7683
|
-
function we(
|
7684
|
-
o("characterReferenceType",
|
7683
|
+
function we(I) {
|
7684
|
+
o("characterReferenceType", I.type);
|
7685
7685
|
}
|
7686
|
-
function ve(
|
7687
|
-
const S = this.sliceSerialize(
|
7686
|
+
function ve(I) {
|
7687
|
+
const S = this.sliceSerialize(I), Y = a("characterReferenceType");
|
7688
7688
|
let J;
|
7689
7689
|
Y ? (J = ka(
|
7690
7690
|
S,
|
7691
7691
|
Y === "characterReferenceMarkerNumeric" ? 10 : 16
|
7692
7692
|
), o("characterReferenceType")) : J = Qr(S);
|
7693
7693
|
const oe = this.stack.pop();
|
7694
|
-
oe.value += J, oe.position.end = Je(
|
7694
|
+
oe.value += J, oe.position.end = Je(I.end);
|
7695
7695
|
}
|
7696
|
-
function Be(
|
7697
|
-
w.call(this,
|
7696
|
+
function Be(I) {
|
7697
|
+
w.call(this, I);
|
7698
7698
|
const S = this.stack[this.stack.length - 1];
|
7699
|
-
S.url = this.sliceSerialize(
|
7699
|
+
S.url = this.sliceSerialize(I);
|
7700
7700
|
}
|
7701
|
-
function Ae(
|
7702
|
-
w.call(this,
|
7701
|
+
function Ae(I) {
|
7702
|
+
w.call(this, I);
|
7703
7703
|
const S = this.stack[this.stack.length - 1];
|
7704
|
-
S.url = "mailto:" + this.sliceSerialize(
|
7704
|
+
S.url = "mailto:" + this.sliceSerialize(I);
|
7705
7705
|
}
|
7706
7706
|
function Ke() {
|
7707
7707
|
return {
|
@@ -7772,19 +7772,19 @@ function cd(e) {
|
|
7772
7772
|
children: []
|
7773
7773
|
};
|
7774
7774
|
}
|
7775
|
-
function ee(
|
7775
|
+
function ee(I) {
|
7776
7776
|
return {
|
7777
7777
|
type: "list",
|
7778
|
-
ordered:
|
7778
|
+
ordered: I.type === "listOrdered",
|
7779
7779
|
start: null,
|
7780
|
-
spread:
|
7780
|
+
spread: I._spread,
|
7781
7781
|
children: []
|
7782
7782
|
};
|
7783
7783
|
}
|
7784
|
-
function me(
|
7784
|
+
function me(I) {
|
7785
7785
|
return {
|
7786
7786
|
type: "listItem",
|
7787
|
-
spread:
|
7787
|
+
spread: I._spread,
|
7788
7788
|
checked: null,
|
7789
7789
|
children: []
|
7790
7790
|
};
|
@@ -7921,7 +7921,7 @@ function yd(e, t) {
|
|
7921
7921
|
};
|
7922
7922
|
return e.patch(t, n), e.applyData(t, n);
|
7923
7923
|
}
|
7924
|
-
function
|
7924
|
+
function Dt(e) {
|
7925
7925
|
const t = [];
|
7926
7926
|
let n = -1, r = 0, i = 0;
|
7927
7927
|
for (; ++n < e.length; ) {
|
@@ -7941,7 +7941,7 @@ function Nt(e) {
|
|
7941
7941
|
return t.join("") + e.slice(r);
|
7942
7942
|
}
|
7943
7943
|
function Ca(e, t) {
|
7944
|
-
const n = String(t.identifier).toUpperCase(), r =
|
7944
|
+
const n = String(t.identifier).toUpperCase(), r = Dt(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
|
7945
7945
|
let o;
|
7946
7946
|
i === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, o = e.footnoteOrder.length) : (e.footnoteCounts[n]++, o = i + 1);
|
7947
7947
|
const a = e.footnoteCounts[n], l = {
|
@@ -8011,13 +8011,13 @@ function wd(e, t) {
|
|
8011
8011
|
const n = e.definition(t.identifier);
|
8012
8012
|
if (!n)
|
8013
8013
|
return Aa(e, t);
|
8014
|
-
const r = { src:
|
8014
|
+
const r = { src: Dt(n.url || ""), alt: t.alt };
|
8015
8015
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
8016
8016
|
const i = { type: "element", tagName: "img", properties: r, children: [] };
|
8017
8017
|
return e.patch(t, i), e.applyData(t, i);
|
8018
8018
|
}
|
8019
8019
|
function vd(e, t) {
|
8020
|
-
const n = { src:
|
8020
|
+
const n = { src: Dt(t.url) };
|
8021
8021
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
8022
8022
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
8023
8023
|
return e.patch(t, r), e.applyData(t, r);
|
@@ -8033,11 +8033,11 @@ function Td(e, t) {
|
|
8033
8033
|
};
|
8034
8034
|
return e.patch(t, r), e.applyData(t, r);
|
8035
8035
|
}
|
8036
|
-
function
|
8036
|
+
function Nd(e, t) {
|
8037
8037
|
const n = e.definition(t.identifier);
|
8038
8038
|
if (!n)
|
8039
8039
|
return Aa(e, t);
|
8040
|
-
const r = { href:
|
8040
|
+
const r = { href: Dt(n.url || "") };
|
8041
8041
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
8042
8042
|
const i = {
|
8043
8043
|
type: "element",
|
@@ -8047,8 +8047,8 @@ function Id(e, t) {
|
|
8047
8047
|
};
|
8048
8048
|
return e.patch(t, i), e.applyData(t, i);
|
8049
8049
|
}
|
8050
|
-
function
|
8051
|
-
const n = { href:
|
8050
|
+
function Dd(e, t) {
|
8051
|
+
const n = { href: Dt(t.url) };
|
8052
8052
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
8053
8053
|
const r = {
|
8054
8054
|
type: "element",
|
@@ -8058,7 +8058,7 @@ function Nd(e, t) {
|
|
8058
8058
|
};
|
8059
8059
|
return e.patch(t, r), e.applyData(t, r);
|
8060
8060
|
}
|
8061
|
-
function
|
8061
|
+
function Id(e, t, n) {
|
8062
8062
|
const r = e.all(t), i = n ? kd(n) : Sa(t), o = {}, a = [];
|
8063
8063
|
if (typeof t.checked == "boolean") {
|
8064
8064
|
const c = r[0];
|
@@ -8263,9 +8263,9 @@ const Rd = {
|
|
8263
8263
|
imageReference: wd,
|
8264
8264
|
image: vd,
|
8265
8265
|
inlineCode: Td,
|
8266
|
-
linkReference:
|
8267
|
-
link:
|
8268
|
-
listItem:
|
8266
|
+
linkReference: Nd,
|
8267
|
+
link: Dd,
|
8268
|
+
listItem: Id,
|
8269
8269
|
list: jd,
|
8270
8270
|
paragraph: Ed,
|
8271
8271
|
root: Cd,
|
@@ -8302,7 +8302,7 @@ const za = (
|
|
8302
8302
|
if (typeof e == "object")
|
8303
8303
|
return Array.isArray(e) ? Ud(e) : Bd(e);
|
8304
8304
|
if (typeof e == "function")
|
8305
|
-
return
|
8305
|
+
return Dn(e);
|
8306
8306
|
throw new Error("Expected function, string, or object as test");
|
8307
8307
|
}
|
8308
8308
|
);
|
@@ -8311,7 +8311,7 @@ function Ud(e) {
|
|
8311
8311
|
let n = -1;
|
8312
8312
|
for (; ++n < e.length; )
|
8313
8313
|
t[n] = za(e[n]);
|
8314
|
-
return
|
8314
|
+
return Dn(r);
|
8315
8315
|
function r(...i) {
|
8316
8316
|
let o = -1;
|
8317
8317
|
for (; ++o < t.length; )
|
@@ -8321,7 +8321,7 @@ function Ud(e) {
|
|
8321
8321
|
}
|
8322
8322
|
}
|
8323
8323
|
function Bd(e) {
|
8324
|
-
return
|
8324
|
+
return Dn(t);
|
8325
8325
|
function t(n) {
|
8326
8326
|
let r;
|
8327
8327
|
for (r in e)
|
@@ -8331,12 +8331,12 @@ function Bd(e) {
|
|
8331
8331
|
}
|
8332
8332
|
}
|
8333
8333
|
function Qd(e) {
|
8334
|
-
return
|
8334
|
+
return Dn(t);
|
8335
8335
|
function t(n) {
|
8336
8336
|
return n && n.type === e;
|
8337
8337
|
}
|
8338
8338
|
}
|
8339
|
-
function
|
8339
|
+
function Dn(e) {
|
8340
8340
|
return t;
|
8341
8341
|
function t(n, ...r) {
|
8342
8342
|
return !!(n && typeof n == "object" && "type" in n && e.call(this, n, ...r));
|
@@ -8548,7 +8548,7 @@ function th(e) {
|
|
8548
8548
|
const r = e.footnoteById[e.footnoteOrder[n]];
|
8549
8549
|
if (!r)
|
8550
8550
|
continue;
|
8551
|
-
const i = e.all(r), o = String(r.identifier).toUpperCase(), a =
|
8551
|
+
const i = e.all(r), o = String(r.identifier).toUpperCase(), a = Dt(o.toLowerCase());
|
8552
8552
|
let l = 0;
|
8553
8553
|
const s = [];
|
8554
8554
|
for (; ++l <= e.footnoteCounts[o]; ) {
|
@@ -8654,7 +8654,7 @@ function Fa(e, t) {
|
|
8654
8654
|
Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
|
8655
8655
|
return new Gt(n, r, t);
|
8656
8656
|
}
|
8657
|
-
function
|
8657
|
+
function Dr(e) {
|
8658
8658
|
return e.toLowerCase();
|
8659
8659
|
}
|
8660
8660
|
class Re {
|
@@ -8682,7 +8682,7 @@ const Z = ht(), xe = ht(), Pa = ht(), C = ht(), ce = ht(), wt = ht(), Ee = ht();
|
|
8682
8682
|
function ht() {
|
8683
8683
|
return 2 ** ++ah;
|
8684
8684
|
}
|
8685
|
-
const
|
8685
|
+
const Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8686
8686
|
__proto__: null,
|
8687
8687
|
boolean: Z,
|
8688
8688
|
booleanish: xe,
|
@@ -8691,7 +8691,7 @@ const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8691
8691
|
number: C,
|
8692
8692
|
overloadedBoolean: Pa,
|
8693
8693
|
spaceSeparated: ce
|
8694
|
-
}, Symbol.toStringTag, { value: "Module" })), or = Object.keys(
|
8694
|
+
}, Symbol.toStringTag, { value: "Module" })), or = Object.keys(Ir);
|
8695
8695
|
class Wr extends Re {
|
8696
8696
|
/**
|
8697
8697
|
* @constructor
|
@@ -8705,7 +8705,7 @@ class Wr extends Re {
|
|
8705
8705
|
if (super(t, n), go(this, "space", i), typeof r == "number")
|
8706
8706
|
for (; ++o < or.length; ) {
|
8707
8707
|
const a = or[o];
|
8708
|
-
go(this, or[o], (r &
|
8708
|
+
go(this, or[o], (r & Ir[a]) === Ir[a]);
|
8709
8709
|
}
|
8710
8710
|
}
|
8711
8711
|
}
|
@@ -8714,7 +8714,7 @@ function go(e, t, n) {
|
|
8714
8714
|
n && (e[t] = n);
|
8715
8715
|
}
|
8716
8716
|
const lh = {}.hasOwnProperty;
|
8717
|
-
function
|
8717
|
+
function It(e) {
|
8718
8718
|
const t = {}, n = {};
|
8719
8719
|
let r;
|
8720
8720
|
for (r in e.properties)
|
@@ -8725,11 +8725,11 @@ function Dt(e) {
|
|
8725
8725
|
i,
|
8726
8726
|
e.space
|
8727
8727
|
);
|
8728
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[
|
8728
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Dr(r)] = r, n[Dr(o.attribute)] = r;
|
8729
8729
|
}
|
8730
8730
|
return new Gt(t, n, e.space);
|
8731
8731
|
}
|
8732
|
-
const Ra =
|
8732
|
+
const Ra = It({
|
8733
8733
|
space: "xlink",
|
8734
8734
|
transform(e, t) {
|
8735
8735
|
return "xlink:" + t.slice(5).toLowerCase();
|
@@ -8743,7 +8743,7 @@ const Ra = Dt({
|
|
8743
8743
|
xLinkTitle: null,
|
8744
8744
|
xLinkType: null
|
8745
8745
|
}
|
8746
|
-
}), Ua =
|
8746
|
+
}), Ua = It({
|
8747
8747
|
space: "xml",
|
8748
8748
|
transform(e, t) {
|
8749
8749
|
return "xml:" + t.slice(3).toLowerCase();
|
@@ -8756,12 +8756,12 @@ function Ba(e, t) {
|
|
8756
8756
|
function Qa(e, t) {
|
8757
8757
|
return Ba(e, t.toLowerCase());
|
8758
8758
|
}
|
8759
|
-
const Ya =
|
8759
|
+
const Ya = It({
|
8760
8760
|
space: "xmlns",
|
8761
8761
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
8762
8762
|
transform: Qa,
|
8763
8763
|
properties: { xmlns: null, xmlnsXLink: null }
|
8764
|
-
}), Ha =
|
8764
|
+
}), Ha = It({
|
8765
8765
|
transform(e, t) {
|
8766
8766
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
8767
8767
|
},
|
@@ -8816,7 +8816,7 @@ const Ya = Dt({
|
|
8816
8816
|
ariaValueText: null,
|
8817
8817
|
role: null
|
8818
8818
|
}
|
8819
|
-
}), sh =
|
8819
|
+
}), sh = It({
|
8820
8820
|
space: "html",
|
8821
8821
|
attributes: {
|
8822
8822
|
acceptcharset: "accept-charset",
|
@@ -9175,7 +9175,7 @@ const Ya = Dt({
|
|
9175
9175
|
security: null,
|
9176
9176
|
unselectable: null
|
9177
9177
|
}
|
9178
|
-
}), uh =
|
9178
|
+
}), uh = It({
|
9179
9179
|
space: "svg",
|
9180
9180
|
attributes: {
|
9181
9181
|
accentHeight: "accent-height",
|
@@ -9736,7 +9736,7 @@ const Ya = Dt({
|
|
9736
9736
|
}
|
9737
9737
|
}), ch = /^data[-\w.:]+$/i, mo = /-[a-z]/g, ph = /[A-Z]/g;
|
9738
9738
|
function fh(e, t) {
|
9739
|
-
const n =
|
9739
|
+
const n = Dr(t);
|
9740
9740
|
let r = t, i = Re;
|
9741
9741
|
if (n in e.normal)
|
9742
9742
|
return e.property[e.normal[n]];
|
@@ -9808,7 +9808,7 @@ var $a = { exports: {} }, ae = {};
|
|
9808
9808
|
* This source code is licensed under the MIT license found in the
|
9809
9809
|
* LICENSE file in the root directory of this source tree.
|
9810
9810
|
*/
|
9811
|
-
var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"),
|
9811
|
+
var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), In = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), jn = Symbol.for("react.profiler"), En = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), Mh = Symbol.for("react.server_context"), An = Symbol.for("react.forward_ref"), Sn = Symbol.for("react.suspense"), On = Symbol.for("react.suspense_list"), zn = Symbol.for("react.memo"), Ln = Symbol.for("react.lazy"), xh = Symbol.for("react.offscreen"), qa;
|
9812
9812
|
qa = Symbol.for("react.module.reference");
|
9813
9813
|
function Ue(e) {
|
9814
9814
|
if (typeof e == "object" && e !== null) {
|
@@ -9816,7 +9816,7 @@ function Ue(e) {
|
|
9816
9816
|
switch (t) {
|
9817
9817
|
case Gr:
|
9818
9818
|
switch (e = e.type, e) {
|
9819
|
-
case
|
9819
|
+
case In:
|
9820
9820
|
case jn:
|
9821
9821
|
case kn:
|
9822
9822
|
case Sn:
|
@@ -9844,7 +9844,7 @@ ae.ContextConsumer = Cn;
|
|
9844
9844
|
ae.ContextProvider = En;
|
9845
9845
|
ae.Element = Gr;
|
9846
9846
|
ae.ForwardRef = An;
|
9847
|
-
ae.Fragment =
|
9847
|
+
ae.Fragment = In;
|
9848
9848
|
ae.Lazy = Ln;
|
9849
9849
|
ae.Memo = zn;
|
9850
9850
|
ae.Portal = Zr;
|
@@ -9871,7 +9871,7 @@ ae.isForwardRef = function(e) {
|
|
9871
9871
|
return Ue(e) === An;
|
9872
9872
|
};
|
9873
9873
|
ae.isFragment = function(e) {
|
9874
|
-
return Ue(e) ===
|
9874
|
+
return Ue(e) === In;
|
9875
9875
|
};
|
9876
9876
|
ae.isLazy = function(e) {
|
9877
9877
|
return Ue(e) === Ln;
|
@@ -9895,7 +9895,7 @@ ae.isSuspenseList = function(e) {
|
|
9895
9895
|
return Ue(e) === On;
|
9896
9896
|
};
|
9897
9897
|
ae.isValidElementType = function(e) {
|
9898
|
-
return typeof e == "string" || typeof e == "function" || e ===
|
9898
|
+
return typeof e == "string" || typeof e == "function" || e === In || e === jn || e === kn || e === Sn || e === On || e === xh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === En || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === qa || e.getModuleId !== void 0);
|
9899
9899
|
};
|
9900
9900
|
ae.typeOf = Ue;
|
9901
9901
|
$a.exports = ae;
|
@@ -9914,13 +9914,13 @@ function vh(e) {
|
|
9914
9914
|
function Th(e) {
|
9915
9915
|
return e.join(" ").trim();
|
9916
9916
|
}
|
9917
|
-
function
|
9917
|
+
function Nh(e, t) {
|
9918
9918
|
const n = t || {};
|
9919
9919
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
9920
9920
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
9921
9921
|
).trim();
|
9922
9922
|
}
|
9923
|
-
var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,
|
9923
|
+
var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Dh = /\n/g, Ih = /^\s*/, kh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, jh = /^:\s*/, Eh = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ch = /^[;\s]*/, Ah = /^\s+|\s+$/g, Sh = `
|
9924
9924
|
`, xo = "/", bo = "*", pt = "", Oh = "comment", zh = "declaration", Lh = function(e, t) {
|
9925
9925
|
if (typeof e != "string")
|
9926
9926
|
throw new TypeError("First argument must be a string");
|
@@ -9929,7 +9929,7 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Nh = /\n/g, Dh
|
|
9929
9929
|
t = t || {};
|
9930
9930
|
var n = 1, r = 1;
|
9931
9931
|
function i(v) {
|
9932
|
-
var b = v.match(
|
9932
|
+
var b = v.match(Dh);
|
9933
9933
|
b && (n += b.length);
|
9934
9934
|
var k = v.lastIndexOf(Sh);
|
9935
9935
|
r = ~k ? v.length - k : r + v.length;
|
@@ -9959,7 +9959,7 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Nh = /\n/g, Dh
|
|
9959
9959
|
}
|
9960
9960
|
}
|
9961
9961
|
function u() {
|
9962
|
-
s(
|
9962
|
+
s(Ih);
|
9963
9963
|
}
|
9964
9964
|
function c(v) {
|
9965
9965
|
var b;
|
@@ -10079,7 +10079,7 @@ function ar(e, t) {
|
|
10079
10079
|
function Qh(e, t, n, r) {
|
10080
10080
|
const i = fh(r.schema, t);
|
10081
10081
|
let o = n;
|
10082
|
-
o == null || o !== o || (Array.isArray(o) && (o = i.commaSeparated ?
|
10082
|
+
o == null || o !== o || (Array.isArray(o) && (o = i.commaSeparated ? Nh(o) : Th(o)), i.property === "style" && typeof o == "string" && (o = Yh(o)), i.space && i.property ? e[kr.call(yo, i.property) ? yo[i.property] : i.property] = o : i.attribute && (e[i.attribute] = o));
|
10083
10083
|
}
|
10084
10084
|
function Yh(e) {
|
10085
10085
|
const t = {};
|
@@ -10158,74 +10158,74 @@ function Ga(e) {
|
|
10158
10158
|
}
|
10159
10159
|
Ga.propTypes = {
|
10160
10160
|
// Core options:
|
10161
|
-
children:
|
10161
|
+
children: D.string,
|
10162
10162
|
// Layout options:
|
10163
|
-
className:
|
10163
|
+
className: D.string,
|
10164
10164
|
// Filter options:
|
10165
|
-
allowElement:
|
10166
|
-
allowedElements:
|
10167
|
-
disallowedElements:
|
10168
|
-
unwrapDisallowed:
|
10165
|
+
allowElement: D.func,
|
10166
|
+
allowedElements: D.arrayOf(D.string),
|
10167
|
+
disallowedElements: D.arrayOf(D.string),
|
10168
|
+
unwrapDisallowed: D.bool,
|
10169
10169
|
// Plugin options:
|
10170
|
-
remarkPlugins:
|
10171
|
-
|
10172
|
-
|
10173
|
-
|
10174
|
-
|
10175
|
-
|
10176
|
-
|
10177
|
-
|
10178
|
-
|
10179
|
-
|
10180
|
-
|
10170
|
+
remarkPlugins: D.arrayOf(
|
10171
|
+
D.oneOfType([
|
10172
|
+
D.object,
|
10173
|
+
D.func,
|
10174
|
+
D.arrayOf(
|
10175
|
+
D.oneOfType([
|
10176
|
+
D.bool,
|
10177
|
+
D.string,
|
10178
|
+
D.object,
|
10179
|
+
D.func,
|
10180
|
+
D.arrayOf(
|
10181
10181
|
// prettier-ignore
|
10182
10182
|
// type-coverage:ignore-next-line
|
10183
|
-
|
10183
|
+
D.any
|
10184
10184
|
)
|
10185
10185
|
])
|
10186
10186
|
)
|
10187
10187
|
])
|
10188
10188
|
),
|
10189
|
-
rehypePlugins:
|
10190
|
-
|
10191
|
-
|
10192
|
-
|
10193
|
-
|
10194
|
-
|
10195
|
-
|
10196
|
-
|
10197
|
-
|
10198
|
-
|
10199
|
-
|
10189
|
+
rehypePlugins: D.arrayOf(
|
10190
|
+
D.oneOfType([
|
10191
|
+
D.object,
|
10192
|
+
D.func,
|
10193
|
+
D.arrayOf(
|
10194
|
+
D.oneOfType([
|
10195
|
+
D.bool,
|
10196
|
+
D.string,
|
10197
|
+
D.object,
|
10198
|
+
D.func,
|
10199
|
+
D.arrayOf(
|
10200
10200
|
// prettier-ignore
|
10201
10201
|
// type-coverage:ignore-next-line
|
10202
|
-
|
10202
|
+
D.any
|
10203
10203
|
)
|
10204
10204
|
])
|
10205
10205
|
)
|
10206
10206
|
])
|
10207
10207
|
),
|
10208
10208
|
// Transform options:
|
10209
|
-
sourcePos:
|
10210
|
-
rawSourcePos:
|
10211
|
-
skipHtml:
|
10212
|
-
includeElementIndex:
|
10213
|
-
transformLinkUri:
|
10214
|
-
linkTarget:
|
10215
|
-
transformImageUri:
|
10216
|
-
components:
|
10209
|
+
sourcePos: D.bool,
|
10210
|
+
rawSourcePos: D.bool,
|
10211
|
+
skipHtml: D.bool,
|
10212
|
+
includeElementIndex: D.bool,
|
10213
|
+
transformLinkUri: D.oneOfType([D.func, D.bool]),
|
10214
|
+
linkTarget: D.oneOfType([D.func, D.string]),
|
10215
|
+
transformImageUri: D.func,
|
10216
|
+
components: D.object
|
10217
10217
|
};
|
10218
10218
|
function Za({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
10219
|
-
return /* @__PURE__ */
|
10220
|
-
/* @__PURE__ */
|
10219
|
+
return /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
|
10220
|
+
/* @__PURE__ */ N.jsx(
|
10221
10221
|
"button",
|
10222
10222
|
{
|
10223
10223
|
className: `xpert-chatbot-popup__feedback--btn-up
|
10224
10224
|
${e.feedbackThumbType === "UP" ? "xpert-chatbot-popup__feedback--btn-up-selected" : ""}`,
|
10225
10225
|
onClick: () => n(t, "UP"),
|
10226
10226
|
"aria-label": "I like this response",
|
10227
|
-
children: /* @__PURE__ */
|
10228
|
-
|
10227
|
+
children: /* @__PURE__ */ N.jsx(
|
10228
|
+
Nt,
|
10229
10229
|
{
|
10230
10230
|
className: "xpert-chatbot-popup__feedback--btn-up-icon",
|
10231
10231
|
icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
|
@@ -10233,7 +10233,7 @@ function Za({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
10233
10233
|
)
|
10234
10234
|
}
|
10235
10235
|
),
|
10236
|
-
/* @__PURE__ */
|
10236
|
+
/* @__PURE__ */ N.jsx(
|
10237
10237
|
"button",
|
10238
10238
|
{
|
10239
10239
|
style: { marginLeft: "-0.7rem" },
|
@@ -10241,8 +10241,8 @@ function Za({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
10241
10241
|
${e.feedbackThumbType === "DOWN" ? "xpert-chatbot-popup__feedback--btn-down-selected" : ""}`,
|
10242
10242
|
onClick: () => n(t, "DOWN"),
|
10243
10243
|
"aria-label": "I do not like this response",
|
10244
|
-
children: /* @__PURE__ */
|
10245
|
-
|
10244
|
+
children: /* @__PURE__ */ N.jsx(
|
10245
|
+
Nt,
|
10246
10246
|
{
|
10247
10247
|
className: "xpert-chatbot-popup__feedback--btn-down-icon",
|
10248
10248
|
icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
|
@@ -10253,9 +10253,9 @@ function Za({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
10253
10253
|
] });
|
10254
10254
|
}
|
10255
10255
|
Za.propTypes = {
|
10256
|
-
id:
|
10257
|
-
message:
|
10258
|
-
onFeedbackThumbSelection:
|
10256
|
+
id: D.number.isRequired,
|
10257
|
+
message: D.shape().isRequired,
|
10258
|
+
onFeedbackThumbSelection: D.func.isRequired
|
10259
10259
|
};
|
10260
10260
|
const Vh = (e) => {
|
10261
10261
|
Array.from(e.entries()).forEach((n) => {
|
@@ -10326,18 +10326,18 @@ function _n({
|
|
10326
10326
|
}
|
10327
10327
|
}), t(!0), window.f9_postMessage({ type: "toggle" });
|
10328
10328
|
};
|
10329
|
-
return /* @__PURE__ */
|
10330
|
-
s && r && /* @__PURE__ */
|
10331
|
-
/* @__PURE__ */
|
10329
|
+
return /* @__PURE__ */ N.jsxs("div", { title: "Talk to a live agent at anytime.", style: i, children: [
|
10330
|
+
s && r && /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
|
10331
|
+
/* @__PURE__ */ N.jsx(
|
10332
10332
|
"div",
|
10333
10333
|
{
|
10334
10334
|
style: { backgroundColor: c },
|
10335
10335
|
className: "xpert-chatbot-popup__live-chat--message-border"
|
10336
10336
|
}
|
10337
10337
|
),
|
10338
|
-
/* @__PURE__ */
|
10338
|
+
/* @__PURE__ */ N.jsx("div", { children: "Talk to a live agent at anytime." })
|
10339
10339
|
] }),
|
10340
|
-
/* @__PURE__ */
|
10340
|
+
/* @__PURE__ */ N.jsxs(
|
10341
10341
|
"button",
|
10342
10342
|
{
|
10343
10343
|
type: "button",
|
@@ -10346,7 +10346,7 @@ function _n({
|
|
10346
10346
|
style: { position: "relative" },
|
10347
10347
|
className: o,
|
10348
10348
|
children: [
|
10349
|
-
/* @__PURE__ */
|
10349
|
+
/* @__PURE__ */ N.jsx(
|
10350
10350
|
"img",
|
10351
10351
|
{
|
10352
10352
|
height: "24px",
|
@@ -10355,21 +10355,21 @@ function _n({
|
|
10355
10355
|
alt: "Open live chat window icon"
|
10356
10356
|
}
|
10357
10357
|
),
|
10358
|
-
a && /* @__PURE__ */
|
10358
|
+
a && /* @__PURE__ */ N.jsx("span", { style: { marginLeft: "0.675rem" }, children: a })
|
10359
10359
|
]
|
10360
10360
|
}
|
10361
10361
|
)
|
10362
10362
|
] });
|
10363
10363
|
}
|
10364
10364
|
_n.propTypes = {
|
10365
|
-
submitEvent:
|
10366
|
-
setLiveChatOpen:
|
10367
|
-
isTestUser:
|
10368
|
-
enableLiveChatMessage:
|
10369
|
-
containerStyle:
|
10370
|
-
buttonClassName:
|
10371
|
-
text:
|
10372
|
-
userTrackingName:
|
10365
|
+
submitEvent: D.func,
|
10366
|
+
setLiveChatOpen: D.func,
|
10367
|
+
isTestUser: D.bool,
|
10368
|
+
enableLiveChatMessage: D.bool,
|
10369
|
+
containerStyle: D.shape(),
|
10370
|
+
buttonClassName: D.string,
|
10371
|
+
text: D.string,
|
10372
|
+
userTrackingName: D.string
|
10373
10373
|
};
|
10374
10374
|
_n.defaultProps = {
|
10375
10375
|
submitEvent: null,
|
@@ -10381,7 +10381,7 @@ _n.defaultProps = {
|
|
10381
10381
|
text: null,
|
10382
10382
|
userTrackingName: "clicked"
|
10383
10383
|
};
|
10384
|
-
const
|
10384
|
+
const Fn = ({
|
10385
10385
|
index: e,
|
10386
10386
|
message: t,
|
10387
10387
|
isNormalSize: n,
|
@@ -10391,69 +10391,79 @@ const Kh = "Sure, I can get you to someone who can help.", Fn = ({
|
|
10391
10391
|
submitEvent: a,
|
10392
10392
|
setLiveChatOpen: l,
|
10393
10393
|
isTestUser: s
|
10394
|
-
}) => /* @__PURE__ */
|
10395
|
-
|
10396
|
-
|
10397
|
-
|
10398
|
-
|
10399
|
-
|
10400
|
-
|
10401
|
-
|
10402
|
-
|
10403
|
-
style: { maxWidth: n ? "85%" : "67%" },
|
10404
|
-
children: t.liveAgent ? /* @__PURE__ */ I.jsx(I.Fragment, { children: /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
|
10405
|
-
_n,
|
10406
|
-
{
|
10407
|
-
submitEvent: a,
|
10408
|
-
setLiveChatOpen: l,
|
10409
|
-
isTestUser: s,
|
10410
|
-
enableLiveChatMessage: !1,
|
10411
|
-
buttonClassName: "xpert-chatbot-popup__bubble--assistant-live-chat",
|
10412
|
-
text: "Chat with us",
|
10413
|
-
userTrackingName: "assistant.response.clicked"
|
10414
|
-
}
|
10415
|
-
) }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
|
10416
|
-
Ga,
|
10394
|
+
}) => /* @__PURE__ */ N.jsx(
|
10395
|
+
"div",
|
10396
|
+
{
|
10397
|
+
role: "status",
|
10398
|
+
className: "xpert-chatbot-popup__bubble--group",
|
10399
|
+
ref: i,
|
10400
|
+
children: /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: [
|
10401
|
+
/* @__PURE__ */ N.jsx(
|
10402
|
+
"div",
|
10417
10403
|
{
|
10418
|
-
|
10419
|
-
|
10420
|
-
|
10404
|
+
"data-testid": "message-container",
|
10405
|
+
className: "xpert-chatbot-popup__bubble--assistant",
|
10406
|
+
role: "region",
|
10407
|
+
"aria-label": "Assistant message",
|
10408
|
+
style: { maxWidth: n ? "85%" : "67%" },
|
10409
|
+
children: t.liveAgent ? /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
|
10410
|
+
/* @__PURE__ */ N.jsx("div", { children: "Sure, I can get you to someone who can help." }),
|
10411
|
+
/* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsx(
|
10412
|
+
_n,
|
10421
10413
|
{
|
10422
|
-
|
10423
|
-
|
10424
|
-
|
10425
|
-
|
10426
|
-
|
10427
|
-
|
10414
|
+
submitEvent: a,
|
10415
|
+
setLiveChatOpen: l,
|
10416
|
+
isTestUser: s,
|
10417
|
+
enableLiveChatMessage: !1,
|
10418
|
+
buttonClassName: "xpert-chatbot-popup__bubble--assistant-live-chat",
|
10419
|
+
text: "Chat with us",
|
10420
|
+
userTrackingName: "assistant.response.clicked"
|
10428
10421
|
}
|
10429
|
-
)
|
10430
|
-
}
|
10431
|
-
|
10432
|
-
|
10433
|
-
|
10422
|
+
) })
|
10423
|
+
] }) : /* @__PURE__ */ N.jsx(
|
10424
|
+
Ga,
|
10425
|
+
{
|
10426
|
+
components: {
|
10427
|
+
a: (u) => /* @__PURE__ */ N.jsx(
|
10428
|
+
"a",
|
10429
|
+
{
|
10430
|
+
...u,
|
10431
|
+
role: "link",
|
10432
|
+
tabIndex: 0,
|
10433
|
+
onClick: o,
|
10434
|
+
onKeyDown: void 0,
|
10435
|
+
children: u.children
|
10436
|
+
}
|
10437
|
+
)
|
10438
|
+
},
|
10439
|
+
linkTarget: "_blank",
|
10440
|
+
transformLinkUri: Gh,
|
10441
|
+
children: t.content
|
10442
|
+
}
|
10443
|
+
)
|
10434
10444
|
}
|
10435
|
-
)
|
10436
|
-
|
10437
|
-
|
10438
|
-
|
10439
|
-
|
10440
|
-
|
10441
|
-
|
10442
|
-
|
10443
|
-
|
10444
|
-
}
|
10445
|
-
|
10446
|
-
|
10445
|
+
),
|
10446
|
+
t.disableFeedback ? null : /* @__PURE__ */ N.jsx(
|
10447
|
+
Za,
|
10448
|
+
{
|
10449
|
+
id: e,
|
10450
|
+
message: t,
|
10451
|
+
onFeedbackThumbSelection: r
|
10452
|
+
}
|
10453
|
+
)
|
10454
|
+
] })
|
10455
|
+
}
|
10456
|
+
);
|
10447
10457
|
Fn.propTypes = {
|
10448
|
-
index:
|
10449
|
-
message:
|
10450
|
-
onFeedbackThumbSelection:
|
10451
|
-
isNormalSize:
|
10452
|
-
messageRef:
|
10453
|
-
handleMessageLinkClicked:
|
10454
|
-
submitEvent:
|
10455
|
-
setLiveChatOpen:
|
10456
|
-
isTestUser:
|
10458
|
+
index: D.number.isRequired,
|
10459
|
+
message: D.shape().isRequired,
|
10460
|
+
onFeedbackThumbSelection: D.func.isRequired,
|
10461
|
+
isNormalSize: D.bool.isRequired,
|
10462
|
+
messageRef: D.shape({ current: D.instanceOf(Element) }),
|
10463
|
+
handleMessageLinkClicked: D.func,
|
10464
|
+
submitEvent: D.func,
|
10465
|
+
setLiveChatOpen: D.func,
|
10466
|
+
isTestUser: D.bool
|
10457
10467
|
};
|
10458
10468
|
Fn.defaultProps = {
|
10459
10469
|
submitEvent: null,
|
@@ -10461,23 +10471,23 @@ Fn.defaultProps = {
|
|
10461
10471
|
isTestUser: !1
|
10462
10472
|
};
|
10463
10473
|
Fn.displayName = "AssistantMessageBubble";
|
10464
|
-
const
|
10474
|
+
const Kh = Fn, Ka = () => {
|
10465
10475
|
const { disclaimer: e } = _e(Fe), t = We(null);
|
10466
10476
|
return be(() => {
|
10467
10477
|
var n;
|
10468
10478
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
10469
|
-
}, []), /* @__PURE__ */
|
10479
|
+
}, []), /* @__PURE__ */ N.jsxs(
|
10470
10480
|
"div",
|
10471
10481
|
{
|
10472
10482
|
ref: t,
|
10473
|
-
tabIndex:
|
10483
|
+
tabIndex: -1,
|
10474
10484
|
role: "alert",
|
10475
10485
|
"aria-live": "assertive",
|
10476
10486
|
className: "xpert-chatbot-popup__conversations_disclaimer--text",
|
10477
10487
|
children: [
|
10478
|
-
/* @__PURE__ */
|
10479
|
-
/* @__PURE__ */
|
10480
|
-
/* @__PURE__ */
|
10488
|
+
/* @__PURE__ */ N.jsx("span", { children: e.text }),
|
10489
|
+
/* @__PURE__ */ N.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
|
10490
|
+
/* @__PURE__ */ N.jsx(
|
10481
10491
|
"a",
|
10482
10492
|
{
|
10483
10493
|
href: e.privacyPolicyLink,
|
@@ -10494,14 +10504,14 @@ const Xh = Fn, Ka = () => {
|
|
10494
10504
|
);
|
10495
10505
|
};
|
10496
10506
|
Ka.displayName = "ConversationScreenDisclaimer";
|
10497
|
-
const
|
10507
|
+
const Xh = Ka, Xr = ({ loading: e, onPromptClick: t }) => {
|
10498
10508
|
var i;
|
10499
10509
|
const { primaryColor: n, conversationScreen: r } = _e(Fe);
|
10500
|
-
return /* @__PURE__ */
|
10501
|
-
/* @__PURE__ */
|
10510
|
+
return /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
|
10511
|
+
/* @__PURE__ */ N.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
10502
10512
|
(i = r.prompts) == null ? void 0 : i.map((o) => {
|
10503
10513
|
var a;
|
10504
|
-
return /* @__PURE__ */
|
10514
|
+
return /* @__PURE__ */ N.jsx(
|
10505
10515
|
"button",
|
10506
10516
|
{
|
10507
10517
|
className: "xpert-chatbot-popup__bubble--prompt",
|
@@ -10521,43 +10531,31 @@ const Jh = Ka, Xr = ({ loading: e, onPromptClick: t }) => {
|
|
10521
10531
|
] });
|
10522
10532
|
};
|
10523
10533
|
Xr.propTypes = {
|
10524
|
-
loading:
|
10525
|
-
onPromptClick:
|
10534
|
+
loading: D.bool.isRequired,
|
10535
|
+
onPromptClick: D.func.isRequired
|
10526
10536
|
};
|
10527
10537
|
Xr.displayName = "PromptList";
|
10528
|
-
const
|
10538
|
+
const Jh = Xr, Jr = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ N.jsx("div", { role: "status", className: "xpert-chatbot-popup__bubble--group", children: /* @__PURE__ */ N.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ N.jsx(
|
10529
10539
|
"div",
|
10530
10540
|
{
|
10531
|
-
|
10532
|
-
|
10533
|
-
"
|
10534
|
-
|
10535
|
-
children: /* @__PURE__ */ I.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ I.jsx(
|
10536
|
-
"div",
|
10537
|
-
{
|
10538
|
-
id: "message-container",
|
10539
|
-
"data-testid": "message-container",
|
10540
|
-
className: "xpert-chatbot-popup__bubble--assistant",
|
10541
|
-
style: { maxWidth: t ? "85%" : "67%" },
|
10542
|
-
children: e
|
10543
|
-
}
|
10544
|
-
) })
|
10541
|
+
"data-testid": "message-container",
|
10542
|
+
className: "xpert-chatbot-popup__bubble--assistant",
|
10543
|
+
style: { maxWidth: t ? "85%" : "67%" },
|
10544
|
+
children: e
|
10545
10545
|
}
|
10546
|
-
);
|
10546
|
+
) }) });
|
10547
10547
|
Jr.propTypes = {
|
10548
|
-
message:
|
10549
|
-
isNormalSize:
|
10548
|
+
message: D.string.isRequired,
|
10549
|
+
isNormalSize: D.bool.isRequired
|
10550
10550
|
};
|
10551
10551
|
Jr.displayName = "SystemMessageBubble";
|
10552
|
-
const
|
10552
|
+
const eg = Jr, ei = ({ content: e, isNormalSize: t }) => {
|
10553
10553
|
var i;
|
10554
10554
|
const { primaryColor: n, conversationScreen: r } = _e(Fe);
|
10555
|
-
return /* @__PURE__ */
|
10555
|
+
return /* @__PURE__ */ N.jsx(
|
10556
10556
|
"div",
|
10557
10557
|
{
|
10558
|
-
|
10559
|
-
"aria-label": `You said ${e}`,
|
10560
|
-
role: "log",
|
10558
|
+
role: "status",
|
10561
10559
|
className: "xpert-chatbot-popup__bubble--user",
|
10562
10560
|
style: {
|
10563
10561
|
backgroundColor: n,
|
@@ -10569,11 +10567,11 @@ const tg = Jr, ei = ({ content: e, isNormalSize: t }) => {
|
|
10569
10567
|
);
|
10570
10568
|
};
|
10571
10569
|
ei.propTypes = {
|
10572
|
-
content:
|
10573
|
-
isNormalSize:
|
10570
|
+
content: D.string.isRequired,
|
10571
|
+
isNormalSize: D.bool.isRequired
|
10574
10572
|
};
|
10575
10573
|
ei.displayName = "UserMessageBubble";
|
10576
|
-
const
|
10574
|
+
const tg = ei, Pn = ({
|
10577
10575
|
messages: e,
|
10578
10576
|
loading: t,
|
10579
10577
|
isNormalSize: n,
|
@@ -10591,32 +10589,30 @@ const ng = ei, Pn = ({
|
|
10591
10589
|
behavior: "instant",
|
10592
10590
|
block: "start"
|
10593
10591
|
});
|
10594
|
-
}, [e.length]), /* @__PURE__ */
|
10595
|
-
/* @__PURE__ */
|
10596
|
-
(c == null ? void 0 : c.length) > 0 && /* @__PURE__ */
|
10597
|
-
/* @__PURE__ */
|
10592
|
+
}, [e.length]), /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
|
10593
|
+
/* @__PURE__ */ N.jsx(Xh, {}),
|
10594
|
+
(c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ N.jsx(Jh, { loading: t, onPromptClick: i }),
|
10595
|
+
/* @__PURE__ */ N.jsxs(
|
10598
10596
|
"div",
|
10599
10597
|
{
|
10600
|
-
id: "chat-content",
|
10601
|
-
tabIndex: 0,
|
10602
10598
|
"aria-live": "polite",
|
10603
10599
|
role: "region",
|
10604
10600
|
"aria-relevant": "additions",
|
10605
10601
|
"aria-atomic": "false",
|
10606
|
-
"aria-label": "Chat
|
10602
|
+
"aria-label": "Chat log",
|
10607
10603
|
"aria-busy": t,
|
10608
10604
|
style: { display: "flex", flexDirection: "column" },
|
10609
10605
|
children: [
|
10610
|
-
p && /* @__PURE__ */
|
10611
|
-
|
10606
|
+
p && /* @__PURE__ */ N.jsx(
|
10607
|
+
eg,
|
10612
10608
|
{
|
10613
10609
|
message: p,
|
10614
10610
|
isNormalSize: n
|
10615
10611
|
}
|
10616
10612
|
),
|
10617
10613
|
e.map(
|
10618
|
-
(f, v) => f.role === "assistant" ? /* @__PURE__ */
|
10619
|
-
|
10614
|
+
(f, v) => f.role === "assistant" ? /* @__PURE__ */ N.jsx(
|
10615
|
+
Kh,
|
10620
10616
|
{
|
10621
10617
|
index: v,
|
10622
10618
|
message: f,
|
@@ -10629,8 +10625,8 @@ const ng = ei, Pn = ({
|
|
10629
10625
|
isTestUser: s
|
10630
10626
|
},
|
10631
10627
|
`${f.role}-${v}`
|
10632
|
-
) : /* @__PURE__ */
|
10633
|
-
|
10628
|
+
) : /* @__PURE__ */ N.jsx(
|
10629
|
+
tg,
|
10634
10630
|
{
|
10635
10631
|
content: f.content,
|
10636
10632
|
isNormalSize: n
|
@@ -10644,21 +10640,21 @@ const ng = ei, Pn = ({
|
|
10644
10640
|
] });
|
10645
10641
|
};
|
10646
10642
|
Pn.propTypes = {
|
10647
|
-
messages:
|
10648
|
-
|
10649
|
-
role:
|
10650
|
-
content:
|
10651
|
-
liveAgent:
|
10643
|
+
messages: D.arrayOf(
|
10644
|
+
D.shape({
|
10645
|
+
role: D.oneOf(["assistant", "user"]).isRequired,
|
10646
|
+
content: D.string.isRequired,
|
10647
|
+
liveAgent: D.bool.isRequired
|
10652
10648
|
})
|
10653
10649
|
),
|
10654
|
-
loading:
|
10655
|
-
isNormalSize:
|
10656
|
-
onFeedbackThumbSelection:
|
10657
|
-
onPromptClick:
|
10658
|
-
handleMessageLinkClicked:
|
10659
|
-
submitEvent:
|
10660
|
-
setLiveChatOpen:
|
10661
|
-
isTestUser:
|
10650
|
+
loading: D.bool.isRequired,
|
10651
|
+
isNormalSize: D.bool,
|
10652
|
+
onFeedbackThumbSelection: D.func.isRequired,
|
10653
|
+
onPromptClick: D.func,
|
10654
|
+
handleMessageLinkClicked: D.func,
|
10655
|
+
submitEvent: D.func,
|
10656
|
+
setLiveChatOpen: D.func,
|
10657
|
+
isTestUser: D.bool
|
10662
10658
|
};
|
10663
10659
|
Pn.defaultProps = {
|
10664
10660
|
messages: [],
|
@@ -10668,7 +10664,7 @@ Pn.defaultProps = {
|
|
10668
10664
|
isTestUser: !1
|
10669
10665
|
};
|
10670
10666
|
Pn.displayName = "ConversationsMessages";
|
10671
|
-
const
|
10667
|
+
const ng = Pn;
|
10672
10668
|
function Xa({ disableScroll: e }) {
|
10673
10669
|
const t = We(null);
|
10674
10670
|
return be(() => {
|
@@ -10677,33 +10673,32 @@ function Xa({ disableScroll: e }) {
|
|
10677
10673
|
behavior: "smooth",
|
10678
10674
|
block: "end"
|
10679
10675
|
});
|
10680
|
-
}, [e]), /* @__PURE__ */
|
10676
|
+
}, [e]), /* @__PURE__ */ N.jsx(
|
10681
10677
|
"div",
|
10682
10678
|
{
|
10683
|
-
|
10684
|
-
"aria-label": "Loading messages",
|
10679
|
+
"aria-label": "Loading",
|
10685
10680
|
ref: t,
|
10686
|
-
role: "
|
10681
|
+
role: "status",
|
10687
10682
|
className: "xpert_chatbot__loader__wrapper",
|
10688
|
-
children: /* @__PURE__ */
|
10689
|
-
/* @__PURE__ */
|
10690
|
-
/* @__PURE__ */
|
10691
|
-
/* @__PURE__ */
|
10683
|
+
children: /* @__PURE__ */ N.jsxs("div", { className: "xpert_chatbot__loader__ellipsis", children: [
|
10684
|
+
/* @__PURE__ */ N.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--first" }),
|
10685
|
+
/* @__PURE__ */ N.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--second" }),
|
10686
|
+
/* @__PURE__ */ N.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--third" })
|
10692
10687
|
] })
|
10693
10688
|
}
|
10694
10689
|
);
|
10695
10690
|
}
|
10696
10691
|
Xa.propTypes = {
|
10697
|
-
disableScroll:
|
10692
|
+
disableScroll: D.bool
|
10698
10693
|
};
|
10699
|
-
const
|
10694
|
+
const rg = () => {
|
10700
10695
|
const e = We(null);
|
10701
10696
|
return be(() => {
|
10702
10697
|
var t;
|
10703
10698
|
(t = e.current) == null || t.scrollIntoView({
|
10704
10699
|
behavior: "instant"
|
10705
10700
|
});
|
10706
|
-
}, []), /* @__PURE__ */
|
10701
|
+
}, []), /* @__PURE__ */ N.jsxs(
|
10707
10702
|
"div",
|
10708
10703
|
{
|
10709
10704
|
role: "alert",
|
@@ -10720,8 +10715,8 @@ const ig = () => {
|
|
10720
10715
|
"aria-describedby": "Oops! Something went wrong. Try again later.",
|
10721
10716
|
ref: e,
|
10722
10717
|
children: [
|
10723
|
-
/* @__PURE__ */
|
10724
|
-
|
10718
|
+
/* @__PURE__ */ N.jsx(
|
10719
|
+
Nt,
|
10725
10720
|
{
|
10726
10721
|
icon: "material-symbols:thunderstorm",
|
10727
10722
|
style: {
|
@@ -10734,7 +10729,7 @@ const ig = () => {
|
|
10734
10729
|
}
|
10735
10730
|
}
|
10736
10731
|
),
|
10737
|
-
/* @__PURE__ */
|
10732
|
+
/* @__PURE__ */ N.jsxs(
|
10738
10733
|
"div",
|
10739
10734
|
{
|
10740
10735
|
style: {
|
@@ -10745,21 +10740,21 @@ const ig = () => {
|
|
10745
10740
|
textAlign: "center"
|
10746
10741
|
},
|
10747
10742
|
children: [
|
10748
|
-
/* @__PURE__ */
|
10743
|
+
/* @__PURE__ */ N.jsx(
|
10749
10744
|
"span",
|
10750
10745
|
{
|
10751
10746
|
style: { margin: "1.5rem 0", fontWeight: "bold", fontSize: "18px" },
|
10752
10747
|
children: "Oops! Something went wrong"
|
10753
10748
|
}
|
10754
10749
|
),
|
10755
|
-
/* @__PURE__ */
|
10750
|
+
/* @__PURE__ */ N.jsx("span", { style: { marginBottom: "1.5rem", color: "red" }, children: "Please try again later." })
|
10756
10751
|
]
|
10757
10752
|
}
|
10758
10753
|
)
|
10759
10754
|
]
|
10760
10755
|
}
|
10761
10756
|
);
|
10762
|
-
}, lr =
|
10757
|
+
}, lr = rg;
|
10763
10758
|
function Ja({
|
10764
10759
|
children: e,
|
10765
10760
|
cookieName: t,
|
@@ -10798,34 +10793,32 @@ function Ja({
|
|
10798
10793
|
};
|
10799
10794
|
Le.set(b, k, z);
|
10800
10795
|
};
|
10801
|
-
return !u || !p ? null : /* @__PURE__ */
|
10796
|
+
return !u || !p ? null : /* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsxs(
|
10802
10797
|
"div",
|
10803
10798
|
{
|
10804
10799
|
role: "alertdialog",
|
10805
10800
|
className: "xpert_chatbot__proactive-message",
|
10806
10801
|
style: o,
|
10807
10802
|
children: [
|
10808
|
-
/* @__PURE__ */
|
10803
|
+
/* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsx(
|
10809
10804
|
"button",
|
10810
10805
|
{
|
10811
10806
|
className: "xpert_chatbot__proactive-message__container",
|
10812
10807
|
onClick: n,
|
10813
10808
|
"aria-label": a.text,
|
10814
10809
|
type: "button",
|
10815
|
-
|
10816
|
-
children: /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__proactive-message__text", children: e })
|
10810
|
+
children: /* @__PURE__ */ N.jsx("div", { className: "xpert_chatbot__proactive-message__text", children: e })
|
10817
10811
|
}
|
10818
10812
|
) }),
|
10819
|
-
/* @__PURE__ */
|
10813
|
+
/* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsx(
|
10820
10814
|
"button",
|
10821
10815
|
{
|
10822
10816
|
className: "xpert_chatbot__proactive-message__close",
|
10823
10817
|
onClick: m,
|
10824
10818
|
"aria-label": "Close proactive message",
|
10825
10819
|
type: "button",
|
10826
|
-
|
10827
|
-
|
10828
|
-
It,
|
10820
|
+
children: /* @__PURE__ */ N.jsx(
|
10821
|
+
Nt,
|
10829
10822
|
{
|
10830
10823
|
style: {
|
10831
10824
|
color: "#000000",
|
@@ -10843,14 +10836,14 @@ function Ja({
|
|
10843
10836
|
) });
|
10844
10837
|
}
|
10845
10838
|
Ja.propTypes = {
|
10846
|
-
children:
|
10847
|
-
cookieName:
|
10848
|
-
onClick:
|
10849
|
-
onClose:
|
10850
|
-
showMessage:
|
10851
|
-
style:
|
10839
|
+
children: D.node.isRequired,
|
10840
|
+
cookieName: D.string.isRequired,
|
10841
|
+
onClick: D.func,
|
10842
|
+
onClose: D.func,
|
10843
|
+
showMessage: D.bool,
|
10844
|
+
style: D.shape()
|
10852
10845
|
};
|
10853
|
-
function
|
10846
|
+
function ig(e, t, n) {
|
10854
10847
|
const r = vt(
|
10855
10848
|
(i) => {
|
10856
10849
|
const { data: o } = i || {}, { chatState: a, show: l, type: s } = o || {};
|
@@ -10880,7 +10873,7 @@ function og(e, t, n) {
|
|
10880
10873
|
};
|
10881
10874
|
}, [e, t]);
|
10882
10875
|
}
|
10883
|
-
function
|
10876
|
+
function og(e) {
|
10884
10877
|
const [t, n] = ye(null);
|
10885
10878
|
return be(() => {
|
10886
10879
|
try {
|
@@ -10910,7 +10903,7 @@ function ag(e) {
|
|
10910
10903
|
`Chatbot - Optimizely experimentVariation: ${t}`
|
10911
10904
|
), t;
|
10912
10905
|
}
|
10913
|
-
function
|
10906
|
+
function ag(e) {
|
10914
10907
|
be(() => {
|
10915
10908
|
e();
|
10916
10909
|
const t = () => document.visibilityState === "visible" && e();
|
@@ -10919,21 +10912,21 @@ function lg(e) {
|
|
10919
10912
|
};
|
10920
10913
|
}, [e]);
|
10921
10914
|
}
|
10922
|
-
function
|
10915
|
+
function lg(e, t) {
|
10923
10916
|
if (!(e instanceof Date && t instanceof Date))
|
10924
10917
|
throw new Error(
|
10925
10918
|
`Both start and end must be valid Date objects: start=${e} end=${t}`
|
10926
10919
|
);
|
10927
10920
|
return (t.getTime() - e.getTime()) / 1e3;
|
10928
10921
|
}
|
10929
|
-
function
|
10922
|
+
function sg(e) {
|
10930
10923
|
const t = /\[(.+)\]\(([^ ]+)( "(.+)")?\)/gm, n = e.match(t);
|
10931
10924
|
return (n == null ? void 0 : n.length) || 0;
|
10932
10925
|
}
|
10933
|
-
function
|
10926
|
+
function ug(e) {
|
10934
10927
|
return new TextEncoder().encode(e).length;
|
10935
10928
|
}
|
10936
|
-
const
|
10929
|
+
const cg = 991, pg = [];
|
10937
10930
|
function ti({ submitEventExternal: e }) {
|
10938
10931
|
var at, mt;
|
10939
10932
|
const {
|
@@ -10944,8 +10937,8 @@ function ti({ submitEventExternal: e }) {
|
|
10944
10937
|
userTracking: o,
|
10945
10938
|
webExperimentation: a,
|
10946
10939
|
xpertKey: l
|
10947
|
-
} = _e(Fe), s = rt(
|
10948
|
-
|
10940
|
+
} = _e(Fe), s = rt(cg), [, u] = ye(!1), [, c] = ye(!1), [p, m] = ye(pg), [f, v] = ye(!1), [b, k] = ye(!1), [M, z] = ye(!1), [E, _] = ye(""), [U, x] = ye(!1), [L, $] = ye(!0), [W, X] = ye(!1), [A, w] = ye(!1), [j, O] = ye(!1), F = We(null), B = We(null), V = We(null), q = Le.get(`${l}-test`) === "1";
|
10941
|
+
ig(
|
10949
10942
|
n.liveChat.enabled,
|
10950
10943
|
M,
|
10951
10944
|
z
|
@@ -10997,7 +10990,7 @@ function ti({ submitEventExternal: e }) {
|
|
10997
10990
|
v(!1);
|
10998
10991
|
}
|
10999
10992
|
}, [l, t.endpoint]);
|
11000
|
-
|
10993
|
+
ag(g), be(() => {
|
11001
10994
|
let R, ee;
|
11002
10995
|
return o.enabled && (R = setInterval(() => {
|
11003
10996
|
var le;
|
@@ -11028,7 +11021,7 @@ function ti({ submitEventExternal: e }) {
|
|
11028
11021
|
isTestUser: q
|
11029
11022
|
}
|
11030
11023
|
});
|
11031
|
-
}, Me =
|
11024
|
+
}, Me = og(
|
11032
11025
|
a.experimentName
|
11033
11026
|
);
|
11034
11027
|
if (a.enabled && !a.experimentName && !q)
|
@@ -11045,13 +11038,13 @@ function ti({ submitEventExternal: e }) {
|
|
11045
11038
|
payload: {
|
11046
11039
|
category: "2u",
|
11047
11040
|
label: "xpert-chatbot",
|
11048
|
-
linkCount:
|
11041
|
+
linkCount: sg(R),
|
11049
11042
|
apiResponseMessage: R,
|
11050
11043
|
isTestUser: q,
|
11051
11044
|
conversationHistoryId: ee
|
11052
11045
|
}
|
11053
11046
|
});
|
11054
|
-
},
|
11047
|
+
}, Ie = ({
|
11055
11048
|
conversationSize: R,
|
11056
11049
|
userInputMessage: ee,
|
11057
11050
|
apiResponseMessage: me,
|
@@ -11128,20 +11121,20 @@ function ti({ submitEventExternal: e }) {
|
|
11128
11121
|
le,
|
11129
11122
|
{ expires: 1 }
|
11130
11123
|
);
|
11131
|
-
const yt = await $e.json(),
|
11132
|
-
ge(
|
11124
|
+
const yt = await $e.json(), I = yt.content, S = yt.live_agent;
|
11125
|
+
ge(I, le);
|
11133
11126
|
const Y = /* @__PURE__ */ new Date();
|
11134
|
-
|
11135
|
-
conversationByteSize:
|
11127
|
+
Ie({
|
11128
|
+
conversationByteSize: ug(JSON.stringify(Qe)),
|
11136
11129
|
conversationSize: p.length + 2,
|
11137
11130
|
userInputMessage: R,
|
11138
|
-
apiResponseMessage:
|
11139
|
-
elapsedSeconds:
|
11131
|
+
apiResponseMessage: I,
|
11132
|
+
elapsedSeconds: lg(ee, Y)
|
11140
11133
|
}), m((J) => [
|
11141
11134
|
...J,
|
11142
11135
|
{
|
11143
11136
|
role: "assistant",
|
11144
|
-
content:
|
11137
|
+
content: I,
|
11145
11138
|
liveAgent: S,
|
11146
11139
|
createdAt: /* @__PURE__ */ new Date()
|
11147
11140
|
}
|
@@ -11224,8 +11217,8 @@ function ti({ submitEventExternal: e }) {
|
|
11224
11217
|
}, Xe = ((mt = r.animatedGraduate) == null ? void 0 : mt.enabled) && a.enabled && Me === "A", gt = i.enabled ? Xe ? s ? i.style.mobile.animatedGraduateExperiment : i.style.animatedGraduateExperiment : s ? i.style.mobile : i.style : null;
|
11225
11218
|
return (
|
11226
11219
|
// do not remove this class as it's needed to turn off chatbot
|
11227
|
-
/* @__PURE__ */
|
11228
|
-
i.enabled && /* @__PURE__ */
|
11220
|
+
/* @__PURE__ */ N.jsxs("div", { className: "xpert_chatbot", children: [
|
11221
|
+
i.enabled && /* @__PURE__ */ N.jsx(
|
11229
11222
|
Ja,
|
11230
11223
|
{
|
11231
11224
|
showMessage: !b,
|
@@ -11233,46 +11226,54 @@ function ti({ submitEventExternal: e }) {
|
|
11233
11226
|
onClose: Ae,
|
11234
11227
|
onClick: Be,
|
11235
11228
|
cookieName: `${l}-proactive-message-xpert-chatbot`,
|
11236
|
-
children: /* @__PURE__ */
|
11237
|
-
i.
|
11238
|
-
|
11229
|
+
children: /* @__PURE__ */ N.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
|
11230
|
+
i.textPrefix && /* @__PURE__ */ N.jsx(
|
11231
|
+
"span",
|
11232
|
+
{
|
11233
|
+
style: {
|
11234
|
+
paddingRight: i.showEmoji ? "0" : "0.3rem"
|
11235
|
+
},
|
11236
|
+
children: i.textPrefix
|
11237
|
+
}
|
11238
|
+
),
|
11239
|
+
i.showEmoji && /* @__PURE__ */ N.jsx(
|
11239
11240
|
"span",
|
11240
11241
|
{
|
11241
11242
|
role: "img",
|
11242
11243
|
"aria-label": "Hand wave emoji",
|
11243
11244
|
className: "xpert-chatbot-proactive-message__wave",
|
11244
11245
|
style: {
|
11245
|
-
|
11246
|
+
padding: i.textPrefix ? "0 0.3rem" : "0 0.3rem 0 0"
|
11246
11247
|
},
|
11247
11248
|
children: "👋"
|
11248
11249
|
}
|
11249
11250
|
),
|
11250
|
-
/* @__PURE__ */
|
11251
|
+
/* @__PURE__ */ N.jsx("span", { children: i.text })
|
11251
11252
|
] }) })
|
11252
11253
|
}
|
11253
11254
|
),
|
11254
|
-
Xe && /* @__PURE__ */
|
11255
|
+
Xe && /* @__PURE__ */ N.jsx(
|
11255
11256
|
Fs,
|
11256
11257
|
{
|
11257
11258
|
handleFloatingActionButtonClick: we
|
11258
11259
|
}
|
11259
11260
|
),
|
11260
|
-
!Xe && /* @__PURE__ */
|
11261
|
+
!Xe && /* @__PURE__ */ N.jsx(
|
11261
11262
|
Os,
|
11262
11263
|
{
|
11263
11264
|
handleFloatingActionButtonClick: we
|
11264
11265
|
}
|
11265
11266
|
),
|
11266
|
-
/* @__PURE__ */
|
11267
|
-
b && !M && /* @__PURE__ */
|
11267
|
+
/* @__PURE__ */ N.jsx(Us, {}),
|
11268
|
+
b && !M && /* @__PURE__ */ N.jsx(Ar, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ N.jsx(
|
11268
11269
|
"div",
|
11269
11270
|
{
|
11270
11271
|
ref: F,
|
11271
11272
|
style: { display: "flex", flexDirection: "column", height: "100%" },
|
11272
11273
|
"aria-label": "XPERT Chatbot Popup",
|
11273
11274
|
role: "dialog",
|
11274
|
-
children: /* @__PURE__ */
|
11275
|
-
/* @__PURE__ */
|
11275
|
+
children: /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
|
11276
|
+
/* @__PURE__ */ N.jsx(
|
11276
11277
|
pa,
|
11277
11278
|
{
|
11278
11279
|
onClose: Ke,
|
@@ -11282,7 +11283,7 @@ function ti({ submitEventExternal: e }) {
|
|
11282
11283
|
setIsNormalSize: ve
|
11283
11284
|
}
|
11284
11285
|
),
|
11285
|
-
/* @__PURE__ */
|
11286
|
+
/* @__PURE__ */ N.jsxs(
|
11286
11287
|
"div",
|
11287
11288
|
{
|
11288
11289
|
style: {
|
@@ -11291,8 +11292,8 @@ function ti({ submitEventExternal: e }) {
|
|
11291
11292
|
overscrollBehavior: "contain"
|
11292
11293
|
},
|
11293
11294
|
children: [
|
11294
|
-
/* @__PURE__ */
|
11295
|
-
|
11295
|
+
/* @__PURE__ */ N.jsx(
|
11296
|
+
ng,
|
11296
11297
|
{
|
11297
11298
|
messages: p,
|
11298
11299
|
loading: f,
|
@@ -11305,13 +11306,13 @@ function ti({ submitEventExternal: e }) {
|
|
11305
11306
|
isTestUser: q
|
11306
11307
|
}
|
11307
11308
|
),
|
11308
|
-
f && /* @__PURE__ */
|
11309
|
-
U && /* @__PURE__ */
|
11309
|
+
f && /* @__PURE__ */ N.jsx(Xa, { disableScroll: A }),
|
11310
|
+
U && /* @__PURE__ */ N.jsx(lr, {})
|
11310
11311
|
]
|
11311
11312
|
}
|
11312
11313
|
),
|
11313
|
-
/* @__PURE__ */
|
11314
|
-
n.liveChat.enabled && /* @__PURE__ */
|
11314
|
+
/* @__PURE__ */ N.jsxs("div", { style: { marginTop: "auto", display: "flex" }, children: [
|
11315
|
+
n.liveChat.enabled && /* @__PURE__ */ N.jsx(
|
11315
11316
|
_n,
|
11316
11317
|
{
|
11317
11318
|
submitEvent: K,
|
@@ -11321,7 +11322,7 @@ function ti({ submitEventExternal: e }) {
|
|
11321
11322
|
buttonClassName: "xpert-chatbot-popup__live-chat--btn-outline"
|
11322
11323
|
}
|
11323
11324
|
),
|
11324
|
-
/* @__PURE__ */
|
11325
|
+
/* @__PURE__ */ N.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ N.jsx(
|
11325
11326
|
Ur,
|
11326
11327
|
{
|
11327
11328
|
inputRef: B,
|
@@ -11343,7 +11344,7 @@ function ti({ submitEventExternal: e }) {
|
|
11343
11344
|
);
|
11344
11345
|
}
|
11345
11346
|
ti.propTypes = {
|
11346
|
-
submitEventExternal:
|
11347
|
+
submitEventExternal: D.func
|
11347
11348
|
};
|
11348
11349
|
ti.defaultProps = {
|
11349
11350
|
submitEventExternal: null
|
@@ -11353,32 +11354,32 @@ const el = ({ children: e, configurations: t = {}, xpertKey: n = null }) => {
|
|
11353
11354
|
configurations: t,
|
11354
11355
|
xpertKey: n
|
11355
11356
|
};
|
11356
|
-
return /* @__PURE__ */
|
11357
|
+
return /* @__PURE__ */ N.jsx(Oo, { ...r, children: e });
|
11357
11358
|
};
|
11358
11359
|
el.propTypes = {
|
11359
|
-
children:
|
11360
|
-
configurations:
|
11361
|
-
xpertKey:
|
11360
|
+
children: D.element,
|
11361
|
+
configurations: D.object,
|
11362
|
+
xpertKey: D.string
|
11362
11363
|
};
|
11363
|
-
function
|
11364
|
-
return /* @__PURE__ */
|
11364
|
+
function fg({ configurations: e = {}, key: t, submitEventExternal: n, xpertKey: r }) {
|
11365
|
+
return /* @__PURE__ */ N.jsx(
|
11365
11366
|
el,
|
11366
11367
|
{
|
11367
11368
|
xpertKey: r,
|
11368
11369
|
configurations: e,
|
11369
|
-
children: /* @__PURE__ */
|
11370
|
+
children: /* @__PURE__ */ N.jsx(ti, { submitEventExternal: n })
|
11370
11371
|
},
|
11371
11372
|
t
|
11372
11373
|
);
|
11373
11374
|
}
|
11374
|
-
|
11375
|
-
configurations:
|
11376
|
-
key:
|
11377
|
-
submitEventExternal:
|
11378
|
-
xpertKey:
|
11375
|
+
fg.propTypes = {
|
11376
|
+
configurations: D.object,
|
11377
|
+
key: D.string,
|
11378
|
+
submitEventExternal: D.func,
|
11379
|
+
xpertKey: D.string.isRequired
|
11379
11380
|
};
|
11380
11381
|
export {
|
11381
|
-
|
11382
|
+
fg as Chatbot,
|
11382
11383
|
is as EDXConfig,
|
11383
11384
|
os as EmersonSpeechConfig,
|
11384
11385
|
as as GetSmarterConfig,
|