@2uinc/frontend-component-xpert-chatbot 1.34.0-alpha.3 → 1.34.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.min.js +379 -327
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -106,7 +106,7 @@ var yu;
|
|
106
106
|
function x0() {
|
107
107
|
return yu || (yu = 1, ga.exports = S0()), ga.exports;
|
108
108
|
}
|
109
|
-
var
|
109
|
+
var I = x0();
|
110
110
|
/*! js-cookie v3.0.5 | MIT */
|
111
111
|
function Ar(e) {
|
112
112
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -243,8 +243,8 @@ Xn.exports;
|
|
243
243
|
var Su;
|
244
244
|
function D0() {
|
245
245
|
return Su || (Su = 1, function(e, t) {
|
246
|
-
var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", T = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", E = "[object Null]", P = "[object Object]", F = "[object Proxy]", X = "[object RegExp]", L = "[object Set]", C = "[object String]", k = "[object Undefined]", W = "[object WeakMap]", M = "[object ArrayBuffer]", K = "[object DataView]", Q = "[object Float32Array]", Y = "[object Float64Array]", D = "[object Int8Array]", O = "[object Int16Array]", N = "[object Int32Array]", U = "[object Uint8Array]", V = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/,
|
247
|
-
|
246
|
+
var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", T = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", E = "[object Null]", P = "[object Object]", F = "[object Proxy]", X = "[object RegExp]", L = "[object Set]", C = "[object String]", k = "[object Undefined]", W = "[object WeakMap]", M = "[object ArrayBuffer]", K = "[object DataView]", Q = "[object Float32Array]", Y = "[object Float64Array]", D = "[object Int8Array]", O = "[object Int16Array]", N = "[object Int32Array]", U = "[object Uint8Array]", V = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, S = {};
|
247
|
+
S[Q] = S[Y] = S[D] = S[O] = S[N] = S[U] = S[V] = S[j] = S[q] = !0, S[s] = S[l] = S[M] = S[d] = S[K] = S[f] = S[p] = S[h] = S[m] = S[y] = S[P] = S[X] = S[L] = S[C] = S[W] = !1;
|
248
248
|
var oe = typeof yr == "object" && yr && yr.Object === Object && yr, Te = typeof self == "object" && self && self.Object === Object && self, me = oe || Te || Function("return this")(), Se = t && !t.nodeType && t, xe = Se && !0 && e && !e.nodeType && e, Fe = xe && xe.exports === Se, ve = Fe && oe.process, Ve = function() {
|
249
249
|
try {
|
250
250
|
var _ = xe && xe.require && xe.require("util").types;
|
@@ -471,7 +471,7 @@ function D0() {
|
|
471
471
|
return w.test(h0(_));
|
472
472
|
}
|
473
473
|
function Yd(_) {
|
474
|
-
return Bn(_) && pu(_.length) && !!
|
474
|
+
return Bn(_) && pu(_.length) && !!S[Er(_)];
|
475
475
|
}
|
476
476
|
function Vd(_) {
|
477
477
|
if (!Jt(_))
|
@@ -1452,7 +1452,7 @@ const xs = /* @__PURE__ */ Rt(N0), L0 = {
|
|
1452
1452
|
() => xs({ id: "generic", ...s }, n ?? {}),
|
1453
1453
|
[n, s]
|
1454
1454
|
), f = or(() => t || r ? i : !!n, [t, i, n, r]);
|
1455
|
-
return /* @__PURE__ */
|
1455
|
+
return /* @__PURE__ */ I.jsx(
|
1456
1456
|
Ue.Provider,
|
1457
1457
|
{
|
1458
1458
|
value: {
|
@@ -3206,7 +3206,7 @@ const Gt = Wr({}), Os = x.shape({
|
|
3206
3206
|
setXpertMessages: h,
|
3207
3207
|
xpertMessages: t ?? p
|
3208
3208
|
};
|
3209
|
-
return /* @__PURE__ */
|
3209
|
+
return /* @__PURE__ */ I.jsx(Gt.Provider, { value: y, children: e });
|
3210
3210
|
};
|
3211
3211
|
ks.propTypes = {
|
3212
3212
|
children: x.element.isRequired,
|
@@ -3243,7 +3243,7 @@ const xu = 991, Q0 = () => {
|
|
3243
3243
|
setLoading: d,
|
3244
3244
|
setMode: p
|
3245
3245
|
};
|
3246
|
-
return /* @__PURE__ */
|
3246
|
+
return /* @__PURE__ */ I.jsx(Ke.Provider, { value: T, children: e });
|
3247
3247
|
};
|
3248
3248
|
ws.propTypes = {
|
3249
3249
|
children: x.element.isRequired
|
@@ -3298,7 +3298,7 @@ function Ii({
|
|
3298
3298
|
...i
|
3299
3299
|
}) {
|
3300
3300
|
const { isMobile: u } = se(Ke);
|
3301
|
-
return /* @__PURE__ */
|
3301
|
+
return /* @__PURE__ */ I.jsx(
|
3302
3302
|
"button",
|
3303
3303
|
{
|
3304
3304
|
id: "xpert_chatbot__floating-action-btn",
|
@@ -3367,7 +3367,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3367
3367
|
}, p = () => {
|
3368
3368
|
u.current = !1;
|
3369
3369
|
};
|
3370
|
-
return /* @__PURE__ */
|
3370
|
+
return /* @__PURE__ */ I.jsxs(
|
3371
3371
|
"div",
|
3372
3372
|
{
|
3373
3373
|
role: "region",
|
@@ -3376,8 +3376,8 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3376
3376
|
onMouseEnter: d ? null : f,
|
3377
3377
|
onMouseLeave: d ? null : p,
|
3378
3378
|
children: [
|
3379
|
-
!d && /* @__PURE__ */
|
3380
|
-
/* @__PURE__ */
|
3379
|
+
!d && /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: V0 }),
|
3380
|
+
/* @__PURE__ */ I.jsx(
|
3381
3381
|
Ii,
|
3382
3382
|
{
|
3383
3383
|
onClick: e,
|
@@ -3386,7 +3386,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3386
3386
|
style: r ? { ...(m = n == null ? void 0 : n.style) == null ? void 0 : m.mobile } : { ...n == null ? void 0 : n.style },
|
3387
3387
|
"aria-haspopup": "dialog",
|
3388
3388
|
"aria-expanded": open,
|
3389
|
-
children: /* @__PURE__ */
|
3389
|
+
children: /* @__PURE__ */ I.jsx("div", { ref: i, children: /* @__PURE__ */ I.jsxs(
|
3390
3390
|
"svg",
|
3391
3391
|
{
|
3392
3392
|
style: {
|
@@ -3397,7 +3397,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3397
3397
|
xmlns: "http://www.w3.org/2000/svg",
|
3398
3398
|
className: "xpert_chatbot__animated_graduate",
|
3399
3399
|
children: [
|
3400
|
-
/* @__PURE__ */
|
3400
|
+
/* @__PURE__ */ I.jsx(
|
3401
3401
|
"path",
|
3402
3402
|
{
|
3403
3403
|
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",
|
@@ -3405,7 +3405,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3405
3405
|
className: "xpert_chatbot__animated_graduate__cap"
|
3406
3406
|
}
|
3407
3407
|
),
|
3408
|
-
/* @__PURE__ */
|
3408
|
+
/* @__PURE__ */ I.jsx(
|
3409
3409
|
"path",
|
3410
3410
|
{
|
3411
3411
|
fillRule: "evenodd",
|
@@ -3415,7 +3415,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3415
3415
|
className: "xpert_chatbot__animated_graduate__face"
|
3416
3416
|
}
|
3417
3417
|
),
|
3418
|
-
/* @__PURE__ */
|
3418
|
+
/* @__PURE__ */ I.jsx(
|
3419
3419
|
"circle",
|
3420
3420
|
{
|
3421
3421
|
className: `xpert_chatbot__animated_graduate__eyeball ${l ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
|
@@ -3425,7 +3425,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3425
3425
|
fill: "white"
|
3426
3426
|
}
|
3427
3427
|
),
|
3428
|
-
/* @__PURE__ */
|
3428
|
+
/* @__PURE__ */ I.jsx(
|
3429
3429
|
"mask",
|
3430
3430
|
{
|
3431
3431
|
id: "mask0_2271_69",
|
@@ -3434,10 +3434,10 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3434
3434
|
y: "37",
|
3435
3435
|
width: "15",
|
3436
3436
|
height: "14",
|
3437
|
-
children: /* @__PURE__ */
|
3437
|
+
children: /* @__PURE__ */ I.jsx("circle", { cx: "34.7137", cy: "44.0494", r: "6.94275", fill: "white" })
|
3438
3438
|
}
|
3439
3439
|
),
|
3440
|
-
/* @__PURE__ */
|
3440
|
+
/* @__PURE__ */ I.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ I.jsx(
|
3441
3441
|
"circle",
|
3442
3442
|
{
|
3443
3443
|
role: "img",
|
@@ -3449,7 +3449,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3449
3449
|
fill: "black"
|
3450
3450
|
}
|
3451
3451
|
) }),
|
3452
|
-
/* @__PURE__ */
|
3452
|
+
/* @__PURE__ */ I.jsx(
|
3453
3453
|
"circle",
|
3454
3454
|
{
|
3455
3455
|
className: `xpert_chatbot__animated_graduate__eyeball ${l ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
|
@@ -3459,7 +3459,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3459
3459
|
fill: "white"
|
3460
3460
|
}
|
3461
3461
|
),
|
3462
|
-
/* @__PURE__ */
|
3462
|
+
/* @__PURE__ */ I.jsx(
|
3463
3463
|
"mask",
|
3464
3464
|
{
|
3465
3465
|
id: "mask1_2271_69",
|
@@ -3468,10 +3468,10 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3468
3468
|
y: "37",
|
3469
3469
|
width: "15",
|
3470
3470
|
height: "14",
|
3471
|
-
children: /* @__PURE__ */
|
3471
|
+
children: /* @__PURE__ */ I.jsx("circle", { cx: "18.8446", cy: "44.0494", r: "6.94275", fill: "white" })
|
3472
3472
|
}
|
3473
3473
|
),
|
3474
|
-
/* @__PURE__ */
|
3474
|
+
/* @__PURE__ */ I.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ I.jsx(
|
3475
3475
|
"circle",
|
3476
3476
|
{
|
3477
3477
|
role: "img",
|
@@ -3483,7 +3483,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3483
3483
|
fill: "black"
|
3484
3484
|
}
|
3485
3485
|
) }),
|
3486
|
-
/* @__PURE__ */
|
3486
|
+
/* @__PURE__ */ I.jsx(
|
3487
3487
|
"circle",
|
3488
3488
|
{
|
3489
3489
|
className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
|
@@ -3493,7 +3493,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3493
3493
|
fill: "#5DE3C0"
|
3494
3494
|
}
|
3495
3495
|
),
|
3496
|
-
/* @__PURE__ */
|
3496
|
+
/* @__PURE__ */ I.jsx(
|
3497
3497
|
"circle",
|
3498
3498
|
{
|
3499
3499
|
className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
|
@@ -3503,7 +3503,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3503
3503
|
fill: "#5DE3C0"
|
3504
3504
|
}
|
3505
3505
|
),
|
3506
|
-
/* @__PURE__ */
|
3506
|
+
/* @__PURE__ */ I.jsx(
|
3507
3507
|
"circle",
|
3508
3508
|
{
|
3509
3509
|
className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
|
@@ -3513,7 +3513,7 @@ eyes follow your mouse when you hover near it.`, Ns = ({
|
|
3513
3513
|
fill: "#5DE3C0"
|
3514
3514
|
}
|
3515
3515
|
),
|
3516
|
-
/* @__PURE__ */
|
3516
|
+
/* @__PURE__ */ I.jsx(
|
3517
3517
|
"path",
|
3518
3518
|
{
|
3519
3519
|
className: "xpert_chatbot__animated_graduate__cap_tassel",
|
@@ -3541,7 +3541,7 @@ const W0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
|
|
3541
3541
|
}) => {
|
3542
3542
|
var r, a;
|
3543
3543
|
const { launchButton: t } = se(Ue), { isMobile: n } = se(Ke);
|
3544
|
-
return /* @__PURE__ */
|
3544
|
+
return /* @__PURE__ */ I.jsx(
|
3545
3545
|
Ii,
|
3546
3546
|
{
|
3547
3547
|
onClick: e,
|
@@ -3550,7 +3550,7 @@ const W0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
|
|
3550
3550
|
"aria-haspopup": "dialog",
|
3551
3551
|
"aria-expanded": open,
|
3552
3552
|
className: "xpert-chatbot-button",
|
3553
|
-
children: /* @__PURE__ */
|
3553
|
+
children: /* @__PURE__ */ I.jsx(
|
3554
3554
|
"img",
|
3555
3555
|
{
|
3556
3556
|
"data-ot-ignore": "",
|
@@ -4005,12 +4005,12 @@ var Du = {
|
|
4005
4005
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
4006
4006
|
*/
|
4007
4007
|
nextTabbableNode: function(ue) {
|
4008
|
-
var
|
4009
|
-
return oe < 0 ?
|
4008
|
+
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, oe = O.indexOf(ue);
|
4009
|
+
return oe < 0 ? S ? N.slice(N.indexOf(ue) + 1).find(function(Te) {
|
4010
4010
|
return rn(Te);
|
4011
4011
|
}) : N.slice(0, N.indexOf(ue)).reverse().find(function(Te) {
|
4012
4012
|
return rn(Te);
|
4013
|
-
}) : O[oe + (
|
4013
|
+
}) : O[oe + (S ? 1 : -1)];
|
4014
4014
|
}
|
4015
4015
|
};
|
4016
4016
|
}), u.tabbableGroups = u.containerGroups.filter(function(D) {
|
@@ -4054,8 +4054,8 @@ var Du = {
|
|
4054
4054
|
return O === xe;
|
4055
4055
|
});
|
4056
4056
|
if (ne < 0 && (g.container === O || wr(O, i.tabbableOptions) && !rn(O, i.tabbableOptions) && !g.nextTabbableNode(O, !1)) && (ne = q), ne >= 0) {
|
4057
|
-
var ue = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1,
|
4058
|
-
j = Vt(O) >= 0 ?
|
4057
|
+
var ue = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, S = u.tabbableGroups[ue];
|
4058
|
+
j = Vt(O) >= 0 ? S.lastTabbableNode : S.lastDomTabbableNode;
|
4059
4059
|
} else Kn(N) || (j = g.nextTabbableNode(O, !1));
|
4060
4060
|
} else {
|
4061
4061
|
var oe = u.tabbableGroups.findIndex(function(Se) {
|
@@ -4569,7 +4569,7 @@ function qs({
|
|
4569
4569
|
style: r = {}
|
4570
4570
|
}) {
|
4571
4571
|
const { isMobile: a, isNormalSize: i } = se(Ke), u = nt(null);
|
4572
|
-
return /* @__PURE__ */
|
4572
|
+
return /* @__PURE__ */ I.jsx(
|
4573
4573
|
Df,
|
4574
4574
|
{
|
4575
4575
|
focusTrapOptions: {
|
@@ -4578,7 +4578,7 @@ function qs({
|
|
4578
4578
|
displayCheck: void 0
|
4579
4579
|
}
|
4580
4580
|
},
|
4581
|
-
children: /* @__PURE__ */
|
4581
|
+
children: /* @__PURE__ */ I.jsx(
|
4582
4582
|
"div",
|
4583
4583
|
{
|
4584
4584
|
"aria-label": "XPERT Chatbot Popup",
|
@@ -4610,7 +4610,7 @@ qs.propTypes = {
|
|
4610
4610
|
};
|
4611
4611
|
function zs({ children: e, isMounted: t }) {
|
4612
4612
|
const { widgetMode: n } = se(Ue);
|
4613
|
-
return n ? /* @__PURE__ */
|
4613
|
+
return n ? /* @__PURE__ */ I.jsx(qs, { isMounted: t, children: e }) : /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot_inline", children: e });
|
4614
4614
|
}
|
4615
4615
|
zs.propTypes = {
|
4616
4616
|
children: x.node.isRequired,
|
@@ -4621,7 +4621,7 @@ const Ys = () => {
|
|
4621
4621
|
return Le(() => {
|
4622
4622
|
var n;
|
4623
4623
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
4624
|
-
}, []), /* @__PURE__ */
|
4624
|
+
}, []), /* @__PURE__ */ I.jsxs(
|
4625
4625
|
"div",
|
4626
4626
|
{
|
4627
4627
|
ref: t,
|
@@ -4630,9 +4630,9 @@ const Ys = () => {
|
|
4630
4630
|
"aria-live": "assertive",
|
4631
4631
|
className: "xpert-chatbot-popup__conversations_disclaimer--text",
|
4632
4632
|
children: [
|
4633
|
-
/* @__PURE__ */
|
4634
|
-
/* @__PURE__ */
|
4635
|
-
/* @__PURE__ */
|
4633
|
+
/* @__PURE__ */ I.jsx("span", { children: e == null ? void 0 : e.text }),
|
4634
|
+
/* @__PURE__ */ I.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
|
4635
|
+
/* @__PURE__ */ I.jsx(
|
4636
4636
|
"a",
|
4637
4637
|
{
|
4638
4638
|
href: e == null ? void 0 : e.privacyPolicyLink,
|
@@ -5874,8 +5874,8 @@ function ki({
|
|
5874
5874
|
120
|
5875
5875
|
)}px`);
|
5876
5876
|
};
|
5877
|
-
return /* @__PURE__ */
|
5878
|
-
/* @__PURE__ */
|
5877
|
+
return /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: { margin: r }, children: [
|
5878
|
+
/* @__PURE__ */ I.jsx(
|
5879
5879
|
"textarea",
|
5880
5880
|
{
|
5881
5881
|
disabled: e,
|
@@ -5905,7 +5905,7 @@ function ki({
|
|
5905
5905
|
}
|
5906
5906
|
}
|
5907
5907
|
),
|
5908
|
-
/* @__PURE__ */
|
5908
|
+
/* @__PURE__ */ I.jsx(
|
5909
5909
|
"button",
|
5910
5910
|
{
|
5911
5911
|
"data-testid": "Send",
|
@@ -5915,7 +5915,7 @@ function ki({
|
|
5915
5915
|
f.preventDefault(), n(i);
|
5916
5916
|
},
|
5917
5917
|
"aria-label": "Send message",
|
5918
|
-
children: /* @__PURE__ */
|
5918
|
+
children: /* @__PURE__ */ I.jsx(Nt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
5919
5919
|
}
|
5920
5920
|
)
|
5921
5921
|
] });
|
@@ -7773,112 +7773,112 @@ function r1(e, t, n) {
|
|
7773
7773
|
const r = this;
|
7774
7774
|
let a, i, u, s, l;
|
7775
7775
|
return c;
|
7776
|
-
function c(
|
7777
|
-
return d(
|
7776
|
+
function c(S) {
|
7777
|
+
return d(S);
|
7778
7778
|
}
|
7779
|
-
function d(
|
7780
|
-
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(
|
7779
|
+
function d(S) {
|
7780
|
+
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(S), f;
|
7781
7781
|
}
|
7782
|
-
function f(
|
7783
|
-
return
|
7782
|
+
function f(S) {
|
7783
|
+
return S === 33 ? (e.consume(S), p) : S === 47 ? (e.consume(S), i = !0, m) : S === 63 ? (e.consume(S), a = 3, r.interrupt ? t : g) : Dt(S) ? (e.consume(S), u = String.fromCharCode(S), y) : n(S);
|
7784
7784
|
}
|
7785
|
-
function p(
|
7786
|
-
return
|
7785
|
+
function p(S) {
|
7786
|
+
return S === 45 ? (e.consume(S), a = 2, h) : S === 91 ? (e.consume(S), a = 5, s = 0, T) : Dt(S) ? (e.consume(S), a = 4, r.interrupt ? t : g) : n(S);
|
7787
7787
|
}
|
7788
|
-
function h(
|
7789
|
-
return
|
7788
|
+
function h(S) {
|
7789
|
+
return S === 45 ? (e.consume(S), r.interrupt ? t : g) : n(S);
|
7790
7790
|
}
|
7791
|
-
function T(
|
7791
|
+
function T(S) {
|
7792
7792
|
const oe = "CDATA[";
|
7793
|
-
return
|
7793
|
+
return S === oe.charCodeAt(s++) ? (e.consume(S), s === oe.length ? r.interrupt ? t : Y : T) : n(S);
|
7794
7794
|
}
|
7795
|
-
function m(
|
7796
|
-
return Dt(
|
7795
|
+
function m(S) {
|
7796
|
+
return Dt(S) ? (e.consume(S), u = String.fromCharCode(S), y) : n(S);
|
7797
7797
|
}
|
7798
|
-
function y(
|
7799
|
-
if (
|
7800
|
-
const oe =
|
7801
|
-
return !oe && !i && co.includes(Te) ? (a = 1, r.interrupt ? t(
|
7798
|
+
function y(S) {
|
7799
|
+
if (S === null || S === 47 || S === 62 || tt(S)) {
|
7800
|
+
const oe = S === 47, Te = u.toLowerCase();
|
7801
|
+
return !oe && !i && co.includes(Te) ? (a = 1, r.interrupt ? t(S) : Y(S)) : Zp.includes(u.toLowerCase()) ? (a = 6, oe ? (e.consume(S), E) : r.interrupt ? t(S) : Y(S)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(S) : i ? P(S) : F(S));
|
7802
7802
|
}
|
7803
|
-
return
|
7803
|
+
return S === 45 || mt(S) ? (e.consume(S), u += String.fromCharCode(S), y) : n(S);
|
7804
7804
|
}
|
7805
|
-
function E(
|
7806
|
-
return
|
7805
|
+
function E(S) {
|
7806
|
+
return S === 62 ? (e.consume(S), r.interrupt ? t : Y) : n(S);
|
7807
7807
|
}
|
7808
|
-
function P(
|
7809
|
-
return Ae(
|
7808
|
+
function P(S) {
|
7809
|
+
return Ae(S) ? (e.consume(S), P) : K(S);
|
7810
7810
|
}
|
7811
|
-
function F(
|
7812
|
-
return
|
7811
|
+
function F(S) {
|
7812
|
+
return S === 47 ? (e.consume(S), K) : S === 58 || S === 95 || Dt(S) ? (e.consume(S), X) : Ae(S) ? (e.consume(S), F) : K(S);
|
7813
7813
|
}
|
7814
|
-
function X(
|
7815
|
-
return
|
7814
|
+
function X(S) {
|
7815
|
+
return S === 45 || S === 46 || S === 58 || S === 95 || mt(S) ? (e.consume(S), X) : L(S);
|
7816
7816
|
}
|
7817
|
-
function L(
|
7818
|
-
return
|
7817
|
+
function L(S) {
|
7818
|
+
return S === 61 ? (e.consume(S), C) : Ae(S) ? (e.consume(S), L) : F(S);
|
7819
7819
|
}
|
7820
|
-
function C(
|
7821
|
-
return
|
7820
|
+
function C(S) {
|
7821
|
+
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (e.consume(S), l = S, k) : Ae(S) ? (e.consume(S), C) : W(S);
|
7822
7822
|
}
|
7823
|
-
function k(
|
7824
|
-
return
|
7823
|
+
function k(S) {
|
7824
|
+
return S === l ? (e.consume(S), l = null, M) : S === null || ce(S) ? n(S) : (e.consume(S), k);
|
7825
7825
|
}
|
7826
|
-
function W(
|
7827
|
-
return
|
7826
|
+
function W(S) {
|
7827
|
+
return S === null || S === 34 || S === 39 || S === 47 || S === 60 || S === 61 || S === 62 || S === 96 || tt(S) ? L(S) : (e.consume(S), W);
|
7828
7828
|
}
|
7829
|
-
function M(
|
7830
|
-
return
|
7829
|
+
function M(S) {
|
7830
|
+
return S === 47 || S === 62 || Ae(S) ? F(S) : n(S);
|
7831
7831
|
}
|
7832
|
-
function K(
|
7833
|
-
return
|
7832
|
+
function K(S) {
|
7833
|
+
return S === 62 ? (e.consume(S), Q) : n(S);
|
7834
7834
|
}
|
7835
|
-
function Q(
|
7836
|
-
return
|
7835
|
+
function Q(S) {
|
7836
|
+
return S === null || ce(S) ? Y(S) : Ae(S) ? (e.consume(S), Q) : n(S);
|
7837
7837
|
}
|
7838
|
-
function Y(
|
7839
|
-
return
|
7838
|
+
function Y(S) {
|
7839
|
+
return S === 45 && a === 2 ? (e.consume(S), U) : S === 60 && a === 1 ? (e.consume(S), V) : S === 62 && a === 4 ? (e.consume(S), ne) : S === 63 && a === 3 ? (e.consume(S), g) : S === 93 && a === 5 ? (e.consume(S), q) : ce(S) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
7840
7840
|
e1,
|
7841
7841
|
ue,
|
7842
7842
|
D
|
7843
|
-
)(
|
7843
|
+
)(S)) : S === null || ce(S) ? (e.exit("htmlFlowData"), D(S)) : (e.consume(S), Y);
|
7844
7844
|
}
|
7845
|
-
function D(
|
7845
|
+
function D(S) {
|
7846
7846
|
return e.check(
|
7847
7847
|
t1,
|
7848
7848
|
O,
|
7849
7849
|
ue
|
7850
|
-
)(
|
7850
|
+
)(S);
|
7851
7851
|
}
|
7852
|
-
function O(
|
7853
|
-
return e.enter("lineEnding"), e.consume(
|
7852
|
+
function O(S) {
|
7853
|
+
return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), N;
|
7854
7854
|
}
|
7855
|
-
function N(
|
7856
|
-
return
|
7855
|
+
function N(S) {
|
7856
|
+
return S === null || ce(S) ? D(S) : (e.enter("htmlFlowData"), Y(S));
|
7857
7857
|
}
|
7858
|
-
function U(
|
7859
|
-
return
|
7858
|
+
function U(S) {
|
7859
|
+
return S === 45 ? (e.consume(S), g) : Y(S);
|
7860
7860
|
}
|
7861
|
-
function V(
|
7862
|
-
return
|
7861
|
+
function V(S) {
|
7862
|
+
return S === 47 ? (e.consume(S), u = "", j) : Y(S);
|
7863
7863
|
}
|
7864
|
-
function j(
|
7865
|
-
if (
|
7864
|
+
function j(S) {
|
7865
|
+
if (S === 62) {
|
7866
7866
|
const oe = u.toLowerCase();
|
7867
|
-
return co.includes(oe) ? (e.consume(
|
7867
|
+
return co.includes(oe) ? (e.consume(S), ne) : Y(S);
|
7868
7868
|
}
|
7869
|
-
return Dt(
|
7869
|
+
return Dt(S) && u.length < 8 ? (e.consume(S), u += String.fromCharCode(S), j) : Y(S);
|
7870
7870
|
}
|
7871
|
-
function q(
|
7872
|
-
return
|
7871
|
+
function q(S) {
|
7872
|
+
return S === 93 ? (e.consume(S), g) : Y(S);
|
7873
7873
|
}
|
7874
|
-
function g(
|
7875
|
-
return
|
7874
|
+
function g(S) {
|
7875
|
+
return S === 62 ? (e.consume(S), ne) : S === 45 && a === 2 ? (e.consume(S), g) : Y(S);
|
7876
7876
|
}
|
7877
|
-
function ne(
|
7878
|
-
return
|
7877
|
+
function ne(S) {
|
7878
|
+
return S === null || ce(S) ? (e.exit("htmlFlowData"), ue(S)) : (e.consume(S), ne);
|
7879
7879
|
}
|
7880
|
-
function ue(
|
7881
|
-
return e.exit("htmlFlow"), t(
|
7880
|
+
function ue(S) {
|
7881
|
+
return e.exit("htmlFlow"), t(S);
|
7882
7882
|
}
|
7883
7883
|
}
|
7884
7884
|
function a1(e, t, n) {
|
@@ -8643,9 +8643,9 @@ function B1(e, t, n) {
|
|
8643
8643
|
}
|
8644
8644
|
}
|
8645
8645
|
function ue(me) {
|
8646
|
-
return V = me, j = 0, me.length === 0 ? U :
|
8646
|
+
return V = me, j = 0, me.length === 0 ? U : S(me[j]);
|
8647
8647
|
}
|
8648
|
-
function
|
8648
|
+
function S(me) {
|
8649
8649
|
return Se;
|
8650
8650
|
function Se(xe) {
|
8651
8651
|
return g = M(), q = me, me.partial || (c.currentConstruct = me), me.name && c.parser.constructs.disable.null.includes(me.name) ? Te() : me.tokenize.call(
|
@@ -8663,7 +8663,7 @@ function B1(e, t, n) {
|
|
8663
8663
|
return Q(q, g), N;
|
8664
8664
|
}
|
8665
8665
|
function Te(me) {
|
8666
|
-
return g.restore(), ++j < V.length ?
|
8666
|
+
return g.restore(), ++j < V.length ? S(V[j]) : U;
|
8667
8667
|
}
|
8668
8668
|
}
|
8669
8669
|
}
|
@@ -9005,7 +9005,7 @@ function am(e) {
|
|
9005
9005
|
paragraph: d(),
|
9006
9006
|
referenceString: me,
|
9007
9007
|
resourceDestinationString: ue,
|
9008
|
-
resourceTitleString:
|
9008
|
+
resourceTitleString: S,
|
9009
9009
|
resource: oe,
|
9010
9010
|
setextHeading: d(K),
|
9011
9011
|
setextHeadingLineSequence: M,
|
@@ -9279,7 +9279,7 @@ function am(e) {
|
|
9279
9279
|
const z = this.resume(), Z = this.stack[this.stack.length - 1];
|
9280
9280
|
Z.url = z;
|
9281
9281
|
}
|
9282
|
-
function
|
9282
|
+
function S() {
|
9283
9283
|
const z = this.resume(), Z = this.stack[this.stack.length - 1];
|
9284
9284
|
Z.title = z;
|
9285
9285
|
}
|
@@ -20889,14 +20889,14 @@ function gT() {
|
|
20889
20889
|
return q ? Ve : Ve.endOf(c);
|
20890
20890
|
}, ue = function(Fe, ve) {
|
20891
20891
|
return Q.w(j.toDate()[Fe].apply(j.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), j);
|
20892
|
-
},
|
20892
|
+
}, S = this.$W, oe = this.$M, Te = this.$D, me = "set" + (this.$u ? "UTC" : "");
|
20893
20893
|
switch (g) {
|
20894
20894
|
case h:
|
20895
20895
|
return q ? ne(1, 0) : ne(31, 11);
|
20896
20896
|
case f:
|
20897
20897
|
return q ? ne(1, oe) : ne(0, oe + 1);
|
20898
20898
|
case d:
|
20899
|
-
var Se = this.$locale().weekStart || 0, xe = (
|
20899
|
+
var Se = this.$locale().weekStart || 0, xe = (S < Se ? S + 7 : S) - Se;
|
20900
20900
|
return ne(q ? Te - xe : Te + (6 - xe), oe);
|
20901
20901
|
case c:
|
20902
20902
|
case T:
|
@@ -20915,8 +20915,8 @@ function gT() {
|
|
20915
20915
|
}, N.$set = function(U, V) {
|
20916
20916
|
var j, q = Q.p(U), g = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = g + "Date", j[T] = g + "Date", j[f] = g + "Month", j[h] = g + "FullYear", j[l] = g + "Hours", j[s] = g + "Minutes", j[u] = g + "Seconds", j[i] = g + "Milliseconds", j)[q], ue = q === c ? this.$D + (V - this.$W) : V;
|
20917
20917
|
if (q === f || q === h) {
|
20918
|
-
var
|
20919
|
-
|
20918
|
+
var S = this.clone().set(T, 1);
|
20919
|
+
S.$d[ne](ue), S.init(), this.$d = S.set(T, Math.min(this.$D, S.daysInMonth())).$d;
|
20920
20920
|
} else ne && this.$d[ne](ue);
|
20921
20921
|
return this.init(), this;
|
20922
20922
|
}, N.set = function(U, V) {
|
@@ -20934,14 +20934,14 @@ function gT() {
|
|
20934
20934
|
if (g === h) return this.set(h, this.$y + U);
|
20935
20935
|
if (g === c) return ne(1);
|
20936
20936
|
if (g === d) return ne(7);
|
20937
|
-
var ue = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[g] || 1,
|
20938
|
-
return Q.w(
|
20937
|
+
var ue = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[g] || 1, S = this.$d.getTime() + U * ue;
|
20938
|
+
return Q.w(S, this);
|
20939
20939
|
}, N.subtract = function(U, V) {
|
20940
20940
|
return this.add(-1 * U, V);
|
20941
20941
|
}, N.format = function(U) {
|
20942
20942
|
var V = this, j = this.$locale();
|
20943
20943
|
if (!this.isValid()) return j.invalidDate || m;
|
20944
|
-
var q = U || "YYYY-MM-DDTHH:mm:ssZ", g = Q.z(this), ne = this.$H, ue = this.$m,
|
20944
|
+
var q = U || "YYYY-MM-DDTHH:mm:ssZ", g = Q.z(this), ne = this.$H, ue = this.$m, S = this.$M, oe = j.weekdays, Te = j.months, me = j.meridiem, Se = function(ve, Ve, it, xt) {
|
20945
20945
|
return ve && (ve[Ve] || ve(V, q)) || it[Ve].slice(0, xt);
|
20946
20946
|
}, xe = function(ve) {
|
20947
20947
|
return Q.s(ne % 12 || 12, ve, "0");
|
@@ -20957,13 +20957,13 @@ function gT() {
|
|
20957
20957
|
case "YYYY":
|
20958
20958
|
return Q.s(V.$y, 4, "0");
|
20959
20959
|
case "M":
|
20960
|
-
return
|
20960
|
+
return S + 1;
|
20961
20961
|
case "MM":
|
20962
|
-
return Q.s(
|
20962
|
+
return Q.s(S + 1, 2, "0");
|
20963
20963
|
case "MMM":
|
20964
|
-
return Se(j.monthsShort,
|
20964
|
+
return Se(j.monthsShort, S, Te, 3);
|
20965
20965
|
case "MMMM":
|
20966
|
-
return Se(Te,
|
20966
|
+
return Se(Te, S);
|
20967
20967
|
case "D":
|
20968
20968
|
return V.$D;
|
20969
20969
|
case "DD":
|
@@ -21007,7 +21007,7 @@ function gT() {
|
|
21007
21007
|
}, N.utcOffset = function() {
|
21008
21008
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
21009
21009
|
}, N.diff = function(U, V, j) {
|
21010
|
-
var q, g = this, ne = Q.p(V), ue = K(U),
|
21010
|
+
var q, g = this, ne = Q.p(V), ue = K(U), S = (ue.utcOffset() - this.utcOffset()) * r, oe = this - ue, Te = function() {
|
21011
21011
|
return Q.m(g, ue);
|
21012
21012
|
};
|
21013
21013
|
switch (ne) {
|
@@ -21021,10 +21021,10 @@ function gT() {
|
|
21021
21021
|
q = Te() / 3;
|
21022
21022
|
break;
|
21023
21023
|
case d:
|
21024
|
-
q = (oe -
|
21024
|
+
q = (oe - S) / 6048e5;
|
21025
21025
|
break;
|
21026
21026
|
case c:
|
21027
|
-
q = (oe -
|
21027
|
+
q = (oe - S) / 864e5;
|
21028
21028
|
break;
|
21029
21029
|
case l:
|
21030
21030
|
q = oe / a;
|
@@ -21095,15 +21095,15 @@ function AT(e) {
|
|
21095
21095
|
}).filter(Boolean);
|
21096
21096
|
}
|
21097
21097
|
function Zc({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
21098
|
-
return /* @__PURE__ */
|
21099
|
-
/* @__PURE__ */
|
21098
|
+
return /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
|
21099
|
+
/* @__PURE__ */ I.jsx(
|
21100
21100
|
"button",
|
21101
21101
|
{
|
21102
21102
|
className: `xpert-chatbot-popup__feedback--btn-up
|
21103
21103
|
${e.feedbackThumbType === "UP" ? "xpert-chatbot-popup__feedback--btn-up-selected" : ""}`,
|
21104
21104
|
onClick: () => n(t, "UP"),
|
21105
21105
|
"aria-label": "I like this response",
|
21106
|
-
children: /* @__PURE__ */
|
21106
|
+
children: /* @__PURE__ */ I.jsx(
|
21107
21107
|
Nt,
|
21108
21108
|
{
|
21109
21109
|
className: "xpert-chatbot-popup__feedback--btn-up-icon",
|
@@ -21112,7 +21112,7 @@ function Zc({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
21112
21112
|
)
|
21113
21113
|
}
|
21114
21114
|
),
|
21115
|
-
/* @__PURE__ */
|
21115
|
+
/* @__PURE__ */ I.jsx(
|
21116
21116
|
"button",
|
21117
21117
|
{
|
21118
21118
|
style: { marginLeft: "-0.7rem" },
|
@@ -21120,7 +21120,7 @@ function Zc({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
21120
21120
|
${e.feedbackThumbType === "DOWN" ? "xpert-chatbot-popup__feedback--btn-down-selected" : ""}`,
|
21121
21121
|
onClick: () => n(t, "DOWN"),
|
21122
21122
|
"aria-label": "I do not like this response",
|
21123
|
-
children: /* @__PURE__ */
|
21123
|
+
children: /* @__PURE__ */ I.jsx(
|
21124
21124
|
Nt,
|
21125
21125
|
{
|
21126
21126
|
className: "xpert-chatbot-popup__feedback--btn-down-icon",
|
@@ -21197,18 +21197,18 @@ function Zi({
|
|
21197
21197
|
}
|
21198
21198
|
}), a(!0), (L = h == null ? void 0 : h.liveChat) != null && L.useOwnChat || window.f9_postMessage({ type: "toggle" });
|
21199
21199
|
};
|
21200
|
-
return /* @__PURE__ */
|
21201
|
-
l && n && /* @__PURE__ */
|
21202
|
-
/* @__PURE__ */
|
21200
|
+
return /* @__PURE__ */ I.jsxs("div", { title: "Talk to a live agent at anytime.", style: t, children: [
|
21201
|
+
l && n && /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
|
21202
|
+
/* @__PURE__ */ I.jsx(
|
21203
21203
|
"div",
|
21204
21204
|
{
|
21205
21205
|
style: { backgroundColor: d },
|
21206
21206
|
className: "xpert-chatbot-popup__live-chat--message-border"
|
21207
21207
|
}
|
21208
21208
|
),
|
21209
|
-
/* @__PURE__ */
|
21209
|
+
/* @__PURE__ */ I.jsx("div", { children: "Talk to a live agent at anytime." })
|
21210
21210
|
] }),
|
21211
|
-
/* @__PURE__ */
|
21211
|
+
/* @__PURE__ */ I.jsxs(
|
21212
21212
|
"button",
|
21213
21213
|
{
|
21214
21214
|
type: "button",
|
@@ -21217,7 +21217,7 @@ function Zi({
|
|
21217
21217
|
style: { position: "relative" },
|
21218
21218
|
className: e,
|
21219
21219
|
children: [
|
21220
|
-
/* @__PURE__ */
|
21220
|
+
/* @__PURE__ */ I.jsx(
|
21221
21221
|
"img",
|
21222
21222
|
{
|
21223
21223
|
height: "24px",
|
@@ -21226,7 +21226,7 @@ function Zi({
|
|
21226
21226
|
alt: "Open live chat window icon"
|
21227
21227
|
}
|
21228
21228
|
),
|
21229
|
-
u && /* @__PURE__ */
|
21229
|
+
u && /* @__PURE__ */ I.jsx("span", { style: { marginLeft: "0.675rem" }, children: u })
|
21230
21230
|
]
|
21231
21231
|
}
|
21232
21232
|
)
|
@@ -21262,9 +21262,9 @@ const Jc = ({ children: e, id: t, link: n }) => {
|
|
21262
21262
|
onFocus: c,
|
21263
21263
|
onBlur: d,
|
21264
21264
|
onKeyDown: f,
|
21265
|
-
children: /* @__PURE__ */
|
21265
|
+
children: /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
21266
21266
|
e.props.children,
|
21267
|
-
a && /* @__PURE__ */
|
21267
|
+
a && /* @__PURE__ */ I.jsx(
|
21268
21268
|
"a",
|
21269
21269
|
{
|
21270
21270
|
"aria-label": "Open source link in a new tab",
|
@@ -21317,7 +21317,7 @@ function ed(e, t, n) {
|
|
21317
21317
|
}
|
21318
21318
|
const Ji = ({ children: e, index: t }) => {
|
21319
21319
|
const n = `tooltip-${ed()}`;
|
21320
|
-
return /* @__PURE__ */
|
21320
|
+
return /* @__PURE__ */ I.jsx(Jc, { link: e, id: n, children: /* @__PURE__ */ I.jsx("span", { className: "source-display-container", role: "button", tabIndex: 0, children: /* @__PURE__ */ I.jsx("span", { className: "source-display-square", children: /* @__PURE__ */ I.jsx("span", { className: "source-display-superindex", children: t }) }) }) });
|
21321
21321
|
};
|
21322
21322
|
Ji.propTypes = {
|
21323
21323
|
children: x.string,
|
@@ -21335,12 +21335,12 @@ function Ai({
|
|
21335
21335
|
height: r,
|
21336
21336
|
width: r
|
21337
21337
|
};
|
21338
|
-
return /* @__PURE__ */
|
21338
|
+
return /* @__PURE__ */ I.jsx(
|
21339
21339
|
"div",
|
21340
21340
|
{
|
21341
21341
|
className: "user-icon",
|
21342
21342
|
style: { alignSelf: e, backgroundColor: t, margin: n, ...a },
|
21343
|
-
children: /* @__PURE__ */
|
21343
|
+
children: /* @__PURE__ */ I.jsx(
|
21344
21344
|
"img",
|
21345
21345
|
{
|
21346
21346
|
alt: "user icon",
|
@@ -21370,8 +21370,8 @@ const td = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbgAAAFMCAYAAAC5yam8AA
|
|
21370
21370
|
return r.current && l.observe(r.current), () => {
|
21371
21371
|
r.current && l.unobserve(r.current);
|
21372
21372
|
};
|
21373
|
-
}, []), /* @__PURE__ */
|
21374
|
-
u && /* @__PURE__ */
|
21373
|
+
}, []), /* @__PURE__ */ I.jsx("div", { ref: r, style: { minHeight: 200, position: "relative" }, children: a && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
21374
|
+
u && /* @__PURE__ */ I.jsx(
|
21375
21375
|
"div",
|
21376
21376
|
{
|
21377
21377
|
style: {
|
@@ -21382,7 +21382,7 @@ const td = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbgAAAFMCAYAAAC5yam8AA
|
|
21382
21382
|
}
|
21383
21383
|
}
|
21384
21384
|
),
|
21385
|
-
/* @__PURE__ */
|
21385
|
+
/* @__PURE__ */ I.jsx(
|
21386
21386
|
"img",
|
21387
21387
|
{
|
21388
21388
|
src: e,
|
@@ -21414,19 +21414,17 @@ const kT = 3e4, eu = ({ src: e, alt: t }) => {
|
|
21414
21414
|
return Le(() => {
|
21415
21415
|
let i;
|
21416
21416
|
return n && (i = setTimeout(() => r(!1), kT)), () => clearTimeout(i);
|
21417
|
-
}, [n]), /* @__PURE__ */
|
21417
|
+
}, [n]), /* @__PURE__ */ I.jsxs(
|
21418
21418
|
"div",
|
21419
21419
|
{
|
21420
|
-
|
21421
|
-
|
21422
|
-
|
21423
|
-
|
21424
|
-
|
21420
|
+
style: {
|
21421
|
+
position: "relative",
|
21422
|
+
display: "inline-block",
|
21423
|
+
maxWidth: "100%",
|
21424
|
+
margin: "0.5rem 0"
|
21425
21425
|
},
|
21426
|
-
style: { cursor: "pointer" },
|
21427
|
-
"aria-pressed": n,
|
21428
21426
|
children: [
|
21429
|
-
/* @__PURE__ */
|
21427
|
+
/* @__PURE__ */ I.jsx(
|
21430
21428
|
"img",
|
21431
21429
|
{
|
21432
21430
|
src: n ? e : a,
|
@@ -21437,14 +21435,68 @@ const kT = 3e4, eu = ({ src: e, alt: t }) => {
|
|
21437
21435
|
maxHeight: "300px",
|
21438
21436
|
objectFit: "contain",
|
21439
21437
|
borderRadius: "8px",
|
21440
|
-
|
21438
|
+
display: "block"
|
21441
21439
|
},
|
21442
21440
|
onError: (i) => {
|
21443
21441
|
i.target.onerror = null, i.target.src = a, i.target.alt = "Image placeholder";
|
21444
21442
|
}
|
21445
21443
|
}
|
21446
21444
|
),
|
21447
|
-
/* @__PURE__ */
|
21445
|
+
/* @__PURE__ */ I.jsx(
|
21446
|
+
"button",
|
21447
|
+
{
|
21448
|
+
type: "button",
|
21449
|
+
onClick: () => r((i) => !i),
|
21450
|
+
"aria-pressed": n,
|
21451
|
+
style: {
|
21452
|
+
position: "absolute",
|
21453
|
+
top: "50%",
|
21454
|
+
left: "50%",
|
21455
|
+
transform: "translate(-50%, -50%)",
|
21456
|
+
background: "rgba(0,0,0,0.6)",
|
21457
|
+
border: "none",
|
21458
|
+
borderRadius: "50%",
|
21459
|
+
width: "48px",
|
21460
|
+
height: "48px",
|
21461
|
+
display: "flex",
|
21462
|
+
alignItems: "center",
|
21463
|
+
justifyContent: "center",
|
21464
|
+
cursor: "pointer",
|
21465
|
+
outline: "none"
|
21466
|
+
},
|
21467
|
+
tabIndex: 0,
|
21468
|
+
onKeyDown: (i) => {
|
21469
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), r((u) => !u));
|
21470
|
+
},
|
21471
|
+
children: n ? (
|
21472
|
+
// Stop icon (square)
|
21473
|
+
/* @__PURE__ */ I.jsx(
|
21474
|
+
"svg",
|
21475
|
+
{
|
21476
|
+
width: "24",
|
21477
|
+
height: "24",
|
21478
|
+
viewBox: "0 0 24 24",
|
21479
|
+
fill: "#fff",
|
21480
|
+
"aria-label": "Stop",
|
21481
|
+
children: /* @__PURE__ */ I.jsx("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" })
|
21482
|
+
}
|
21483
|
+
)
|
21484
|
+
) : (
|
21485
|
+
// Play icon (triangle)
|
21486
|
+
/* @__PURE__ */ I.jsx(
|
21487
|
+
"svg",
|
21488
|
+
{
|
21489
|
+
width: "24",
|
21490
|
+
height: "24",
|
21491
|
+
viewBox: "0 0 24 24",
|
21492
|
+
fill: "#fff",
|
21493
|
+
"aria-label": "Play",
|
21494
|
+
children: /* @__PURE__ */ I.jsx("polygon", { points: "8,5 19,12 8,19" })
|
21495
|
+
}
|
21496
|
+
)
|
21497
|
+
)
|
21498
|
+
}
|
21499
|
+
)
|
21448
21500
|
]
|
21449
21501
|
}
|
21450
21502
|
);
|
@@ -21518,12 +21570,12 @@ const wT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21518
21570
|
), F = or(() => {
|
21519
21571
|
if (!E) return null;
|
21520
21572
|
const L = DT(d);
|
21521
|
-
return /* @__PURE__ */
|
21573
|
+
return /* @__PURE__ */ I.jsx(
|
21522
21574
|
Ui,
|
21523
21575
|
{
|
21524
21576
|
components: {
|
21525
|
-
img: ({ src: C, alt: k }) => C.toLowerCase().endsWith(".gif") ? /* @__PURE__ */
|
21526
|
-
a: (C) => /* @__PURE__ */
|
21577
|
+
img: ({ src: C, alt: k }) => C.toLowerCase().endsWith(".gif") ? /* @__PURE__ */ I.jsx(eu, { src: C, alt: k }) : /* @__PURE__ */ I.jsx(y0, { fallback: /* @__PURE__ */ I.jsx("div", { children: "Loading image..." }), children: /* @__PURE__ */ I.jsx(nd, { src: C, alt: k }) }),
|
21578
|
+
a: (C) => /* @__PURE__ */ I.jsx(
|
21527
21579
|
"a",
|
21528
21580
|
{
|
21529
21581
|
...C,
|
@@ -21538,11 +21590,11 @@ const wT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21538
21590
|
children: C.children
|
21539
21591
|
}
|
21540
21592
|
),
|
21541
|
-
p: (C) => /* @__PURE__ */
|
21593
|
+
p: (C) => /* @__PURE__ */ I.jsx("p", { ...C, style: P[h].bubbleStyle, children: C.children }),
|
21542
21594
|
"document-source": ({ children: C, node: k }) => {
|
21543
21595
|
var M;
|
21544
21596
|
const W = (M = k.properties) == null ? void 0 : M.dataIndex;
|
21545
|
-
return /* @__PURE__ */
|
21597
|
+
return /* @__PURE__ */ I.jsx(Ji, { index: W, children: C });
|
21546
21598
|
}
|
21547
21599
|
},
|
21548
21600
|
linkTarget: "_blank",
|
@@ -21552,20 +21604,20 @@ const wT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21552
21604
|
}
|
21553
21605
|
);
|
21554
21606
|
}, [d, E, i, P, h]);
|
21555
|
-
return /* @__PURE__ */
|
21607
|
+
return /* @__PURE__ */ I.jsxs(
|
21556
21608
|
"section",
|
21557
21609
|
{
|
21558
21610
|
"aria-label": P[h].sectionAriaLabel,
|
21559
21611
|
className: "xpert-chatbot-popup__bubble--group",
|
21560
21612
|
ref: r,
|
21561
21613
|
children: [
|
21562
|
-
/* @__PURE__ */
|
21614
|
+
/* @__PURE__ */ I.jsxs(
|
21563
21615
|
"div",
|
21564
21616
|
{
|
21565
21617
|
className: "xpert-chatbot-popup__bubble--group-inner",
|
21566
21618
|
style: P[h].innerStyle,
|
21567
21619
|
children: [
|
21568
|
-
h === "agent" && /* @__PURE__ */
|
21620
|
+
h === "agent" && /* @__PURE__ */ I.jsx(
|
21569
21621
|
Ai,
|
21570
21622
|
{
|
21571
21623
|
alignSelf: "flex-end",
|
@@ -21573,7 +21625,7 @@ const wT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21573
21625
|
margin: "0px 10px 0rem 0px"
|
21574
21626
|
}
|
21575
21627
|
),
|
21576
|
-
/* @__PURE__ */
|
21628
|
+
/* @__PURE__ */ I.jsxs(
|
21577
21629
|
"div",
|
21578
21630
|
{
|
21579
21631
|
"data-testid": "message-container",
|
@@ -21581,9 +21633,9 @@ const wT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21581
21633
|
style: P[h].bubbleStyle,
|
21582
21634
|
children: [
|
21583
21635
|
F,
|
21584
|
-
y && /* @__PURE__ */
|
21585
|
-
/* @__PURE__ */
|
21586
|
-
/* @__PURE__ */
|
21636
|
+
y && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
21637
|
+
/* @__PURE__ */ I.jsx("div", { children: wT }),
|
21638
|
+
/* @__PURE__ */ I.jsx(
|
21587
21639
|
Zi,
|
21588
21640
|
{
|
21589
21641
|
submitEvent: s,
|
@@ -21599,7 +21651,7 @@ const wT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21599
21651
|
]
|
21600
21652
|
}
|
21601
21653
|
),
|
21602
|
-
h === "user" && /* @__PURE__ */
|
21654
|
+
h === "user" && /* @__PURE__ */ I.jsx(
|
21603
21655
|
Ai,
|
21604
21656
|
{
|
21605
21657
|
alignSelf: "flex-end",
|
@@ -21610,8 +21662,8 @@ const wT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21610
21662
|
]
|
21611
21663
|
}
|
21612
21664
|
),
|
21613
|
-
T && /* @__PURE__ */
|
21614
|
-
!f && a && h === "assistant" ? /* @__PURE__ */
|
21665
|
+
T && /* @__PURE__ */ I.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: ET(T).format("hh:mm a") }),
|
21666
|
+
!f && a && h === "assistant" ? /* @__PURE__ */ I.jsx(
|
21615
21667
|
Zc,
|
21616
21668
|
{
|
21617
21669
|
id: e,
|
@@ -21636,16 +21688,16 @@ aa.propTypes = {
|
|
21636
21688
|
aa.displayName = "MessageBubble";
|
21637
21689
|
function tu({ message: e }) {
|
21638
21690
|
const { content: t, icon: n, iconColor: r, role: a } = e;
|
21639
|
-
return a !== "notification" ? null : /* @__PURE__ */
|
21640
|
-
/* @__PURE__ */
|
21691
|
+
return a !== "notification" ? null : /* @__PURE__ */ I.jsxs("div", { className: "notification-container", children: [
|
21692
|
+
/* @__PURE__ */ I.jsx(
|
21641
21693
|
"div",
|
21642
21694
|
{
|
21643
21695
|
className: "notification-container__icon-container",
|
21644
21696
|
style: { color: r },
|
21645
|
-
children: /* @__PURE__ */
|
21697
|
+
children: /* @__PURE__ */ I.jsx(Nt, { icon: `material-symbols:${n}`, alt: "Notification icon" })
|
21646
21698
|
}
|
21647
21699
|
),
|
21648
|
-
/* @__PURE__ */
|
21700
|
+
/* @__PURE__ */ I.jsx("p", { children: t })
|
21649
21701
|
] });
|
21650
21702
|
}
|
21651
21703
|
tu.propTypes = {
|
@@ -21665,7 +21717,7 @@ function rd({ disableScroll: e }) {
|
|
21665
21717
|
behavior: "smooth",
|
21666
21718
|
block: "end"
|
21667
21719
|
});
|
21668
|
-
}, [e]), /* @__PURE__ */
|
21720
|
+
}, [e]), /* @__PURE__ */ I.jsx(
|
21669
21721
|
"div",
|
21670
21722
|
{
|
21671
21723
|
"aria-label": "Loading messages",
|
@@ -21673,10 +21725,10 @@ function rd({ disableScroll: e }) {
|
|
21673
21725
|
ref: t,
|
21674
21726
|
role: "alert",
|
21675
21727
|
className: "xpert_chatbot__loader__wrapper",
|
21676
|
-
children: /* @__PURE__ */
|
21677
|
-
/* @__PURE__ */
|
21678
|
-
/* @__PURE__ */
|
21679
|
-
/* @__PURE__ */
|
21728
|
+
children: /* @__PURE__ */ I.jsxs("div", { className: "xpert_chatbot__loader__ellipsis", children: [
|
21729
|
+
/* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--first" }),
|
21730
|
+
/* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--second" }),
|
21731
|
+
/* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--third" })
|
21680
21732
|
] })
|
21681
21733
|
}
|
21682
21734
|
);
|
@@ -21691,7 +21743,7 @@ const _i = ({ content: e = "Please try again later." }) => {
|
|
21691
21743
|
(n = t.current) == null || n.scrollIntoView({
|
21692
21744
|
behavior: "instant"
|
21693
21745
|
});
|
21694
|
-
}, []), /* @__PURE__ */
|
21746
|
+
}, []), /* @__PURE__ */ I.jsxs(
|
21695
21747
|
"div",
|
21696
21748
|
{
|
21697
21749
|
role: "alert",
|
@@ -21708,7 +21760,7 @@ const _i = ({ content: e = "Please try again later." }) => {
|
|
21708
21760
|
"aria-describedby": "Oops! Something went wrong. Try again later.",
|
21709
21761
|
ref: t,
|
21710
21762
|
children: [
|
21711
|
-
/* @__PURE__ */
|
21763
|
+
/* @__PURE__ */ I.jsx(
|
21712
21764
|
Nt,
|
21713
21765
|
{
|
21714
21766
|
icon: "material-symbols:thunderstorm",
|
@@ -21722,7 +21774,7 @@ const _i = ({ content: e = "Please try again later." }) => {
|
|
21722
21774
|
}
|
21723
21775
|
}
|
21724
21776
|
),
|
21725
|
-
/* @__PURE__ */
|
21777
|
+
/* @__PURE__ */ I.jsxs(
|
21726
21778
|
"div",
|
21727
21779
|
{
|
21728
21780
|
style: {
|
@@ -21733,14 +21785,14 @@ const _i = ({ content: e = "Please try again later." }) => {
|
|
21733
21785
|
textAlign: "center"
|
21734
21786
|
},
|
21735
21787
|
children: [
|
21736
|
-
/* @__PURE__ */
|
21788
|
+
/* @__PURE__ */ I.jsx(
|
21737
21789
|
"span",
|
21738
21790
|
{
|
21739
21791
|
style: { margin: "1.5rem 0", fontWeight: "bold", fontSize: "18px" },
|
21740
21792
|
children: "Oops! Something went wrong"
|
21741
21793
|
}
|
21742
21794
|
),
|
21743
|
-
/* @__PURE__ */
|
21795
|
+
/* @__PURE__ */ I.jsx("span", { style: { marginBottom: "1.5rem", color: "red" }, children: e })
|
21744
21796
|
]
|
21745
21797
|
}
|
21746
21798
|
)
|
@@ -21767,8 +21819,8 @@ const ia = ({
|
|
21767
21819
|
behavior: "instant",
|
21768
21820
|
block: "start"
|
21769
21821
|
});
|
21770
|
-
}, [n.length]), /* @__PURE__ */
|
21771
|
-
/* @__PURE__ */
|
21822
|
+
}, [n.length]), /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
21823
|
+
/* @__PURE__ */ I.jsx(
|
21772
21824
|
"section",
|
21773
21825
|
{
|
21774
21826
|
id: "chat-content",
|
@@ -21780,7 +21832,7 @@ const ia = ({
|
|
21780
21832
|
style: { display: "flex", flexDirection: "column" },
|
21781
21833
|
children: n.map((d, f) => {
|
21782
21834
|
const { role: p } = d, h = `${p}-${f}`;
|
21783
|
-
return p === "error" ? /* @__PURE__ */
|
21835
|
+
return p === "error" ? /* @__PURE__ */ I.jsx(_i, { content: d == null ? void 0 : d.content }, h) : p === "notification" ? /* @__PURE__ */ I.jsx(tu, { message: d }, h) : ["agent", "assistant", "info", "user"].includes(p) ? /* @__PURE__ */ I.jsx(
|
21784
21836
|
aa,
|
21785
21837
|
{
|
21786
21838
|
index: f,
|
@@ -21797,8 +21849,8 @@ const ia = ({
|
|
21797
21849
|
})
|
21798
21850
|
}
|
21799
21851
|
),
|
21800
|
-
t && /* @__PURE__ */
|
21801
|
-
l && /* @__PURE__ */
|
21852
|
+
t && /* @__PURE__ */ I.jsx(rd, { disableScroll: s }),
|
21853
|
+
l && /* @__PURE__ */ I.jsx(_i, {})
|
21802
21854
|
] });
|
21803
21855
|
};
|
21804
21856
|
ia.propTypes = {
|
@@ -21822,7 +21874,7 @@ const ad = () => {
|
|
21822
21874
|
const s = () => {
|
21823
21875
|
pt.set(n, "1", { expires: 1 }), a(!1);
|
21824
21876
|
};
|
21825
|
-
return /* @__PURE__ */
|
21877
|
+
return /* @__PURE__ */ I.jsxs(
|
21826
21878
|
"div",
|
21827
21879
|
{
|
21828
21880
|
role: "alert",
|
@@ -21830,8 +21882,8 @@ const ad = () => {
|
|
21830
21882
|
className: "xpert-chatbot-popup__chatbot-maintenance-banner",
|
21831
21883
|
"data-testid": "maintenance-banner",
|
21832
21884
|
children: [
|
21833
|
-
/* @__PURE__ */
|
21834
|
-
/* @__PURE__ */
|
21885
|
+
/* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__header", children: [
|
21886
|
+
/* @__PURE__ */ I.jsx(
|
21835
21887
|
Nt,
|
21836
21888
|
{
|
21837
21889
|
icon: "material-symbols:warning",
|
@@ -21839,14 +21891,14 @@ const ad = () => {
|
|
21839
21891
|
color: "#eed202"
|
21840
21892
|
}
|
21841
21893
|
),
|
21842
|
-
/* @__PURE__ */
|
21843
|
-
/* @__PURE__ */
|
21894
|
+
/* @__PURE__ */ I.jsx("strong", { children: e.maintenanceBanner.header }),
|
21895
|
+
/* @__PURE__ */ I.jsx(
|
21844
21896
|
"button",
|
21845
21897
|
{
|
21846
21898
|
className: "xpert-chatbot-popup__chatbot-maintenance-banner__close-btn",
|
21847
21899
|
"aria-label": "Close maintenance banner",
|
21848
21900
|
onClick: s,
|
21849
|
-
children: /* @__PURE__ */
|
21901
|
+
children: /* @__PURE__ */ I.jsx(
|
21850
21902
|
Nt,
|
21851
21903
|
{
|
21852
21904
|
icon: "material-symbols:close",
|
@@ -21857,7 +21909,7 @@ const ad = () => {
|
|
21857
21909
|
}
|
21858
21910
|
)
|
21859
21911
|
] }),
|
21860
|
-
/* @__PURE__ */
|
21912
|
+
/* @__PURE__ */ I.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__body", children: /* @__PURE__ */ I.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__text", children: /* @__PURE__ */ I.jsx(Ui, { linkTarget: "_blank", children: e.maintenanceBanner.text }) }) })
|
21861
21913
|
]
|
21862
21914
|
}
|
21863
21915
|
);
|
@@ -21866,11 +21918,11 @@ ad.displayName = "MaintenanceBanner";
|
|
21866
21918
|
const nu = ({ loading: e, onPromptClick: t }) => {
|
21867
21919
|
var i;
|
21868
21920
|
const { primaryColor: n, conversationScreen: r } = se(Ue), { deleteConversationModal: a } = se(Gt);
|
21869
|
-
return /* @__PURE__ */
|
21870
|
-
/* @__PURE__ */
|
21921
|
+
return /* @__PURE__ */ I.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
|
21922
|
+
/* @__PURE__ */ I.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
21871
21923
|
(i = r == null ? void 0 : r.prompts) == null ? void 0 : i.map((u) => {
|
21872
21924
|
var s;
|
21873
|
-
return /* @__PURE__ */
|
21925
|
+
return /* @__PURE__ */ I.jsx(
|
21874
21926
|
"button",
|
21875
21927
|
{
|
21876
21928
|
disabled: a,
|
@@ -21910,8 +21962,8 @@ function id({
|
|
21910
21962
|
const { conversationScreen: c, disclaimer: d } = se(Ue), { deleteConversationModal: f, xpertMessages: p } = se(Gt), { loading: h, setMode: T } = se(Ke), m = (P) => {
|
21911
21963
|
c.liveChat.useOwnChat ? T(Qt.LIVECHAT) : u(P);
|
21912
21964
|
};
|
21913
|
-
return /* @__PURE__ */
|
21914
|
-
/* @__PURE__ */
|
21965
|
+
return /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
21966
|
+
/* @__PURE__ */ I.jsxs(
|
21915
21967
|
"div",
|
21916
21968
|
{
|
21917
21969
|
style: {
|
@@ -21921,9 +21973,9 @@ function id({
|
|
21921
21973
|
position: "relative"
|
21922
21974
|
},
|
21923
21975
|
children: [
|
21924
|
-
(d == null ? void 0 : d.text) && /* @__PURE__ */
|
21925
|
-
((y = c == null ? void 0 : c.prompts) == null ? void 0 : y.length) > 0 && /* @__PURE__ */
|
21926
|
-
(c == null ? void 0 : c.systemMessage) && /* @__PURE__ */
|
21976
|
+
(d == null ? void 0 : d.text) && /* @__PURE__ */ I.jsx(Ys, {}),
|
21977
|
+
((y = c == null ? void 0 : c.prompts) == null ? void 0 : y.length) > 0 && /* @__PURE__ */ I.jsx(nu, { loading: h, onPromptClick: r }),
|
21978
|
+
(c == null ? void 0 : c.systemMessage) && /* @__PURE__ */ I.jsx(
|
21927
21979
|
aa,
|
21928
21980
|
{
|
21929
21981
|
message: {
|
@@ -21932,7 +21984,7 @@ function id({
|
|
21932
21984
|
}
|
21933
21985
|
}
|
21934
21986
|
),
|
21935
|
-
/* @__PURE__ */
|
21987
|
+
/* @__PURE__ */ I.jsx(
|
21936
21988
|
ia,
|
21937
21989
|
{
|
21938
21990
|
isTestUser: i,
|
@@ -21947,8 +21999,8 @@ function id({
|
|
21947
21999
|
]
|
21948
22000
|
}
|
21949
22001
|
),
|
21950
|
-
/* @__PURE__ */
|
21951
|
-
/* @__PURE__ */
|
22002
|
+
/* @__PURE__ */ I.jsx(ad, {}),
|
22003
|
+
/* @__PURE__ */ I.jsxs(
|
21952
22004
|
"div",
|
21953
22005
|
{
|
21954
22006
|
style: {
|
@@ -21958,7 +22010,7 @@ function id({
|
|
21958
22010
|
width: "100%"
|
21959
22011
|
},
|
21960
22012
|
children: [
|
21961
|
-
((E = c == null ? void 0 : c.liveChat) == null ? void 0 : E.enabled) && /* @__PURE__ */
|
22013
|
+
((E = c == null ? void 0 : c.liveChat) == null ? void 0 : E.enabled) && /* @__PURE__ */ I.jsx(
|
21962
22014
|
Zi,
|
21963
22015
|
{
|
21964
22016
|
buttonClassName: "xpert-chatbot-popup__live-chat--btn-outline",
|
@@ -21968,7 +22020,7 @@ function id({
|
|
21968
22020
|
submitEvent: s
|
21969
22021
|
}
|
21970
22022
|
),
|
21971
|
-
/* @__PURE__ */
|
22023
|
+
/* @__PURE__ */ I.jsx("div", { style: { display: "flex", flex: 1, padding: "1.5rem" }, children: /* @__PURE__ */ I.jsx(
|
21972
22024
|
ki,
|
21973
22025
|
{
|
21974
22026
|
disabled: h || f,
|
@@ -22603,13 +22655,13 @@ function ou() {
|
|
22603
22655
|
if (p !== null && T === !0) {
|
22604
22656
|
var q, g = !1, ne = !0, ue = function() {
|
22605
22657
|
return t(void 0, void 0, void 0, function() {
|
22606
|
-
var
|
22658
|
+
var S, oe, Te;
|
22607
22659
|
return n(this, function(me) {
|
22608
22660
|
switch (me.label) {
|
22609
22661
|
case 0:
|
22610
|
-
return
|
22662
|
+
return S = C, [4, (0, l.getUrl)(p, D)];
|
22611
22663
|
case 1:
|
22612
|
-
return
|
22664
|
+
return S.current = me.sent(), C.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), C.current = "ABORTED", (0, i.flushSync)(function() {
|
22613
22665
|
return X(function(Se) {
|
22614
22666
|
return e(e({}, Se), { ABORTED: u.ReadyState.CLOSED });
|
22615
22667
|
});
|
@@ -22640,9 +22692,9 @@ function ou() {
|
|
22640
22692
|
}, ue(), function() {
|
22641
22693
|
g = !0, ne = !1, Y.current && (Y.current = null), q == null || q(), E(null);
|
22642
22694
|
};
|
22643
|
-
} else (p === null || T === !1) && (M.current = 0, X(function(
|
22695
|
+
} else (p === null || T === !1) && (M.current = 0, X(function(S) {
|
22644
22696
|
var oe;
|
22645
|
-
return e(e({},
|
22697
|
+
return e(e({}, S), C.current && (oe = {}, oe[C.current] = u.ReadyState.CLOSED, oe));
|
22646
22698
|
}));
|
22647
22699
|
}, [p, T, N, U]), (0, a.useEffect)(function() {
|
22648
22700
|
O === u.ReadyState.OPEN && Q.current.splice(0).forEach(function(q) {
|
@@ -22916,7 +22968,7 @@ const qT = "This conversation with a live agent has ended. Please note that a tr
|
|
22916
22968
|
},
|
22917
22969
|
terminateConversation: k
|
22918
22970
|
};
|
22919
|
-
return /* @__PURE__ */
|
22971
|
+
return /* @__PURE__ */ I.jsx(hn.Provider, { value: V, children: e });
|
22920
22972
|
};
|
22921
22973
|
od.propTypes = {
|
22922
22974
|
children: x.element.isRequired,
|
@@ -22928,7 +22980,7 @@ function sd({ handleResizeButtonClick: e, setIsMounted: t }) {
|
|
22928
22980
|
if (n)
|
22929
22981
|
return null;
|
22930
22982
|
const a = `${r ? "Expand" : "Shrink"} Xpert dialog width`;
|
22931
|
-
return /* @__PURE__ */
|
22983
|
+
return /* @__PURE__ */ I.jsx(
|
22932
22984
|
"button",
|
22933
22985
|
{
|
22934
22986
|
"aria-expanded": !r,
|
@@ -22939,7 +22991,7 @@ function sd({ handleResizeButtonClick: e, setIsMounted: t }) {
|
|
22939
22991
|
onClick: () => {
|
22940
22992
|
t(!0), e && e(!r);
|
22941
22993
|
},
|
22942
|
-
children: /* @__PURE__ */
|
22994
|
+
children: /* @__PURE__ */ I.jsx(
|
22943
22995
|
"img",
|
22944
22996
|
{
|
22945
22997
|
alt: a,
|
@@ -22964,8 +23016,8 @@ function ld({
|
|
22964
23016
|
}) {
|
22965
23017
|
var c;
|
22966
23018
|
const { conversationScreen: a } = se(Ue), { mode: i } = se(Ke), { setDeleteConversationModal: u, xpertMessages: s } = se(Gt), l = i === Qt.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
|
22967
|
-
return /* @__PURE__ */
|
22968
|
-
l && /* @__PURE__ */
|
23019
|
+
return /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
23020
|
+
l && /* @__PURE__ */ I.jsx(
|
22969
23021
|
"button",
|
22970
23022
|
{
|
22971
23023
|
"aria-label": "Delete conversation history",
|
@@ -22975,7 +23027,7 @@ function ld({
|
|
22975
23027
|
},
|
22976
23028
|
title: "Delete conversation history",
|
22977
23029
|
onClick: () => u(!0),
|
22978
|
-
children: /* @__PURE__ */
|
23030
|
+
children: /* @__PURE__ */ I.jsx(
|
22979
23031
|
Nt,
|
22980
23032
|
{
|
22981
23033
|
icon: "material-symbols:delete-outline",
|
@@ -22985,7 +23037,7 @@ function ld({
|
|
22985
23037
|
)
|
22986
23038
|
}
|
22987
23039
|
),
|
22988
|
-
/* @__PURE__ */
|
23040
|
+
/* @__PURE__ */ I.jsx(
|
22989
23041
|
"div",
|
22990
23042
|
{
|
22991
23043
|
style: {
|
@@ -22996,7 +23048,7 @@ function ld({
|
|
22996
23048
|
paddingBottom: "1.25rem",
|
22997
23049
|
paddingTop: "1.25rem"
|
22998
23050
|
},
|
22999
|
-
children: /* @__PURE__ */
|
23051
|
+
children: /* @__PURE__ */ I.jsx(
|
23000
23052
|
sd,
|
23001
23053
|
{
|
23002
23054
|
isMounted: r,
|
@@ -23006,14 +23058,14 @@ function ld({
|
|
23006
23058
|
)
|
23007
23059
|
}
|
23008
23060
|
),
|
23009
|
-
/* @__PURE__ */
|
23061
|
+
/* @__PURE__ */ I.jsx(
|
23010
23062
|
"button",
|
23011
23063
|
{
|
23012
23064
|
"aria-label": "Close Xpert dialog",
|
23013
23065
|
className: "xpert-chatbot-popup__header--btn-outline",
|
23014
23066
|
title: "Close Xpert dialog",
|
23015
23067
|
onClick: n,
|
23016
|
-
children: /* @__PURE__ */
|
23068
|
+
children: /* @__PURE__ */ I.jsx(
|
23017
23069
|
Nt,
|
23018
23070
|
{
|
23019
23071
|
icon: "material-symbols:close",
|
@@ -23034,7 +23086,7 @@ ld.propTypes = {
|
|
23034
23086
|
const cd = ({
|
23035
23087
|
backgroundColor: e = "#F0CC00",
|
23036
23088
|
textColor: t = "transparent"
|
23037
|
-
}) => /* @__PURE__ */
|
23089
|
+
}) => /* @__PURE__ */ I.jsxs(
|
23038
23090
|
"svg",
|
23039
23091
|
{
|
23040
23092
|
role: "banner",
|
@@ -23044,8 +23096,8 @@ const cd = ({
|
|
23044
23096
|
fill: "#none",
|
23045
23097
|
xmlns: "http://www.w3.org/2000/svg",
|
23046
23098
|
children: [
|
23047
|
-
/* @__PURE__ */
|
23048
|
-
/* @__PURE__ */
|
23099
|
+
/* @__PURE__ */ I.jsx("path", { d: "M0 5 L0 20 L70 20 L70 5 Z", fill: t }),
|
23100
|
+
/* @__PURE__ */ I.jsx(
|
23049
23101
|
"path",
|
23050
23102
|
{
|
23051
23103
|
fill: e,
|
@@ -23054,7 +23106,7 @@ const cd = ({
|
|
23054
23106
|
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"
|
23055
23107
|
}
|
23056
23108
|
),
|
23057
|
-
/* @__PURE__ */
|
23109
|
+
/* @__PURE__ */ I.jsx("path", {})
|
23058
23110
|
]
|
23059
23111
|
}
|
23060
23112
|
);
|
@@ -23070,7 +23122,7 @@ function dd({
|
|
23070
23122
|
}) {
|
23071
23123
|
var c, d, f, p, h, T, m, y, E, P, F, X, L, C, k;
|
23072
23124
|
const { primaryColor: a, conversationScreen: i } = se(Ue), { isMobile: u, mode: s } = se(Ke), { step: l } = se(hn);
|
23073
|
-
return l === jt.CONNECTING && s === Qt.LIVECHAT ? null : /* @__PURE__ */
|
23125
|
+
return l === jt.CONNECTING && s === Qt.LIVECHAT ? null : /* @__PURE__ */ I.jsxs(
|
23074
23126
|
"div",
|
23075
23127
|
{
|
23076
23128
|
"data-testid": "xpert-conversations-header",
|
@@ -23082,7 +23134,7 @@ function dd({
|
|
23082
23134
|
...(d = (c = i == null ? void 0 : i.header) == null ? void 0 : c.container) == null ? void 0 : d.style
|
23083
23135
|
},
|
23084
23136
|
children: [
|
23085
|
-
/* @__PURE__ */
|
23137
|
+
/* @__PURE__ */ I.jsx(
|
23086
23138
|
"span",
|
23087
23139
|
{
|
23088
23140
|
className: "xpert-chatbot-popup__header_container",
|
@@ -23092,7 +23144,7 @@ function dd({
|
|
23092
23144
|
}
|
23093
23145
|
}
|
23094
23146
|
),
|
23095
|
-
((T = (h = i == null ? void 0 : i.header) == null ? void 0 : h.logo) == null ? void 0 : T.type) === "edx" ? /* @__PURE__ */
|
23147
|
+
((T = (h = i == null ? void 0 : i.header) == null ? void 0 : h.logo) == null ? void 0 : T.type) === "edx" ? /* @__PURE__ */ I.jsx(
|
23096
23148
|
"img",
|
23097
23149
|
{
|
23098
23150
|
"data-ot-ignore": "",
|
@@ -23102,14 +23154,14 @@ function dd({
|
|
23102
23154
|
"aria-hidden": !0,
|
23103
23155
|
style: (y = (m = i == null ? void 0 : i.header) == null ? void 0 : m.logo) == null ? void 0 : y.style
|
23104
23156
|
}
|
23105
|
-
) : /* @__PURE__ */
|
23157
|
+
) : /* @__PURE__ */ I.jsx(
|
23106
23158
|
cd,
|
23107
23159
|
{
|
23108
23160
|
backgroundColor: (E = i == null ? void 0 : i.header.logo.style) == null ? void 0 : E.backgroundColor,
|
23109
23161
|
textColor: ((X = (F = (P = i == null ? void 0 : i.header) == null ? void 0 : P.logo) == null ? void 0 : F.style) == null ? void 0 : X.color) || "#FFFFFF"
|
23110
23162
|
}
|
23111
23163
|
),
|
23112
|
-
/* @__PURE__ */
|
23164
|
+
/* @__PURE__ */ I.jsx(
|
23113
23165
|
ld,
|
23114
23166
|
{
|
23115
23167
|
handleResizeButtonClick: e,
|
@@ -23118,7 +23170,7 @@ function dd({
|
|
23118
23170
|
onClose: r
|
23119
23171
|
}
|
23120
23172
|
),
|
23121
|
-
/* @__PURE__ */
|
23173
|
+
/* @__PURE__ */ I.jsx(
|
23122
23174
|
"span",
|
23123
23175
|
{
|
23124
23176
|
className: "xpert-chatbot-popup__header_container",
|
@@ -23144,20 +23196,20 @@ function VT() {
|
|
23144
23196
|
deleteConversationHistory: t,
|
23145
23197
|
setDeleteConversationModal: n
|
23146
23198
|
} = se(Gt), { primaryColor: r } = se(Ue);
|
23147
|
-
return e ? /* @__PURE__ */
|
23199
|
+
return e ? /* @__PURE__ */ I.jsx(
|
23148
23200
|
"div",
|
23149
23201
|
{
|
23150
23202
|
"aria-modal": !0,
|
23151
23203
|
"aria-labelledby": "delete-conversation-modal-title",
|
23152
23204
|
className: "xpert_chatbot__delete-conversation-modal",
|
23153
23205
|
role: "dialog",
|
23154
|
-
children: /* @__PURE__ */
|
23206
|
+
children: /* @__PURE__ */ I.jsxs(
|
23155
23207
|
"div",
|
23156
23208
|
{
|
23157
23209
|
className: "xpert_chatbot__delete-conversation-modal-container",
|
23158
23210
|
style: { borderColor: r },
|
23159
23211
|
children: [
|
23160
|
-
/* @__PURE__ */
|
23212
|
+
/* @__PURE__ */ I.jsx(
|
23161
23213
|
"h2",
|
23162
23214
|
{
|
23163
23215
|
id: "delete-conversation-modal-title",
|
@@ -23166,10 +23218,10 @@ function VT() {
|
|
23166
23218
|
children: "Delete chat?"
|
23167
23219
|
}
|
23168
23220
|
),
|
23169
|
-
/* @__PURE__ */
|
23170
|
-
/* @__PURE__ */
|
23171
|
-
/* @__PURE__ */
|
23172
|
-
/* @__PURE__ */
|
23221
|
+
/* @__PURE__ */ I.jsx("p", { className: "xpert_chatbot__delete-conversation-modal-p", children: "Are you sure you want to delete your conversation?" }),
|
23222
|
+
/* @__PURE__ */ I.jsx("p", { className: "xpert_chatbot__delete-conversation-modal-p", children: "This action cannot be undone." }),
|
23223
|
+
/* @__PURE__ */ I.jsxs("div", { className: "xpert_chatbot__delete-conversation-modal-buttons-container", children: [
|
23224
|
+
/* @__PURE__ */ I.jsx(
|
23173
23225
|
"button",
|
23174
23226
|
{
|
23175
23227
|
className: "xpert_chatbot__delete-conversation-modal-button",
|
@@ -23177,7 +23229,7 @@ function VT() {
|
|
23177
23229
|
children: "Cancel"
|
23178
23230
|
}
|
23179
23231
|
),
|
23180
|
-
/* @__PURE__ */
|
23232
|
+
/* @__PURE__ */ I.jsx(
|
23181
23233
|
"button",
|
23182
23234
|
{
|
23183
23235
|
className: "xpert_chatbot__delete-conversation-modal-button danger",
|
@@ -23195,7 +23247,7 @@ function VT() {
|
|
23195
23247
|
const WT = () => {
|
23196
23248
|
var n, r, a, i, u;
|
23197
23249
|
const { isMobile: e } = se(Ke), { launchButton: t } = se(Ue);
|
23198
|
-
return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */
|
23250
|
+
return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ I.jsx(
|
23199
23251
|
"div",
|
23200
23252
|
{
|
23201
23253
|
role: "alert",
|
@@ -23208,15 +23260,15 @@ const WT = () => {
|
|
23208
23260
|
) : null;
|
23209
23261
|
};
|
23210
23262
|
function GT() {
|
23211
|
-
return /* @__PURE__ */
|
23263
|
+
return /* @__PURE__ */ I.jsx("div", { className: "spinner" });
|
23212
23264
|
}
|
23213
23265
|
function fd() {
|
23214
23266
|
var s;
|
23215
23267
|
const { conversationScreen: e, primaryColor: t, widgetMode: n } = se(Ue), { cancelLiveChatConnection: r } = se(hn), a = ((s = e == null ? void 0 : e.liveChat) == null ? void 0 : s.queueMessages) ?? [], i = n ? t : "#FFFFFF", u = n ? "#FFFFFF" : t;
|
23216
|
-
return /* @__PURE__ */
|
23217
|
-
/* @__PURE__ */
|
23218
|
-
/* @__PURE__ */
|
23219
|
-
/* @__PURE__ */
|
23268
|
+
return /* @__PURE__ */ I.jsxs("div", { className: "live-chat-connecting", style: { backgroundColor: i }, children: [
|
23269
|
+
/* @__PURE__ */ I.jsx(GT, {}),
|
23270
|
+
/* @__PURE__ */ I.jsx("div", { className: "live-chat-connecting-messages", style: { color: u }, children: a.length === 0 ? /* @__PURE__ */ I.jsx("p", { children: "Connecting to live agent" }) : a.map((l, c) => /* @__PURE__ */ I.jsx("p", { children: l }, `queue-message-${c}`)) }),
|
23271
|
+
/* @__PURE__ */ I.jsx(
|
23220
23272
|
"button",
|
23221
23273
|
{
|
23222
23274
|
onClick: r,
|
@@ -23256,19 +23308,19 @@ function hd({ onDismiss: e }) {
|
|
23256
23308
|
}, h = (T) => {
|
23257
23309
|
n(T.target.value.slice(0, ys));
|
23258
23310
|
};
|
23259
|
-
return /* @__PURE__ */
|
23260
|
-
!r && /* @__PURE__ */
|
23261
|
-
/* @__PURE__ */
|
23262
|
-
/* @__PURE__ */
|
23263
|
-
/* @__PURE__ */
|
23264
|
-
/* @__PURE__ */
|
23311
|
+
return /* @__PURE__ */ I.jsxs("div", { className: "livechat-end-confirmation-container", children: [
|
23312
|
+
!r && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
23313
|
+
/* @__PURE__ */ I.jsx("p", { children: "Are you sure you want to end this conversation?" }),
|
23314
|
+
/* @__PURE__ */ I.jsxs("div", { className: "livechat-end-confirmation-container__button-container", children: [
|
23315
|
+
/* @__PURE__ */ I.jsx("button", { className: "string-btn", onClick: e, children: "Nevermind" }),
|
23316
|
+
/* @__PURE__ */ I.jsx("button", { className: "pill-btn", onClick: f, children: "Close chat" })
|
23265
23317
|
] })
|
23266
23318
|
] }),
|
23267
|
-
r && /* @__PURE__ */
|
23268
|
-
/* @__PURE__ */
|
23269
|
-
/* @__PURE__ */
|
23319
|
+
r && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
23320
|
+
/* @__PURE__ */ I.jsx("p", { children: "Before you go, let me know how I did:" }),
|
23321
|
+
/* @__PURE__ */ I.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: XT.map(({ key: T, icon: m, text: y }) => {
|
23270
23322
|
const E = T === i, P = E ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
|
23271
|
-
return /* @__PURE__ */
|
23323
|
+
return /* @__PURE__ */ I.jsxs(
|
23272
23324
|
"button",
|
23273
23325
|
{
|
23274
23326
|
"aria-checked": E,
|
@@ -23277,15 +23329,15 @@ function hd({ onDismiss: e }) {
|
|
23277
23329
|
style: P,
|
23278
23330
|
onClick: () => u(T),
|
23279
23331
|
children: [
|
23280
|
-
/* @__PURE__ */
|
23281
|
-
/* @__PURE__ */
|
23332
|
+
/* @__PURE__ */ I.jsx("span", { children: m }),
|
23333
|
+
/* @__PURE__ */ I.jsx("p", { children: y })
|
23282
23334
|
]
|
23283
23335
|
},
|
23284
23336
|
T
|
23285
23337
|
);
|
23286
23338
|
}) }),
|
23287
|
-
i && /* @__PURE__ */
|
23288
|
-
/* @__PURE__ */
|
23339
|
+
i && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
23340
|
+
/* @__PURE__ */ I.jsx(
|
23289
23341
|
"textarea",
|
23290
23342
|
{
|
23291
23343
|
"aria-label": "Add additional comments",
|
@@ -23294,14 +23346,14 @@ function hd({ onDismiss: e }) {
|
|
23294
23346
|
onChange: h
|
23295
23347
|
}
|
23296
23348
|
),
|
23297
|
-
/* @__PURE__ */
|
23349
|
+
/* @__PURE__ */ I.jsxs("p", { className: "livechat-end-confirmation-container__sub-text", children: [
|
23298
23350
|
ys - t.length,
|
23299
23351
|
" characters"
|
23300
23352
|
] })
|
23301
23353
|
] }),
|
23302
|
-
/* @__PURE__ */
|
23303
|
-
/* @__PURE__ */
|
23304
|
-
/* @__PURE__ */
|
23354
|
+
/* @__PURE__ */ I.jsxs("div", { className: "livechat-end-confirmation-container__button-container", children: [
|
23355
|
+
/* @__PURE__ */ I.jsx("button", { className: "string-btn", onClick: l, children: "Dismiss" }),
|
23356
|
+
/* @__PURE__ */ I.jsx(
|
23305
23357
|
"button",
|
23306
23358
|
{
|
23307
23359
|
className: "pill-btn",
|
@@ -23344,8 +23396,8 @@ function pd() {
|
|
23344
23396
|
}, h = () => {
|
23345
23397
|
l(""), c.current.value = "", c.current.style.height = "auto";
|
23346
23398
|
};
|
23347
|
-
return /* @__PURE__ */
|
23348
|
-
/* @__PURE__ */
|
23399
|
+
return /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
23400
|
+
/* @__PURE__ */ I.jsxs(
|
23349
23401
|
"div",
|
23350
23402
|
{
|
23351
23403
|
style: {
|
@@ -23355,14 +23407,14 @@ function pd() {
|
|
23355
23407
|
position: "relative"
|
23356
23408
|
},
|
23357
23409
|
children: [
|
23358
|
-
e && /* @__PURE__ */
|
23359
|
-
/* @__PURE__ */
|
23360
|
-
/* @__PURE__ */
|
23410
|
+
e && /* @__PURE__ */ I.jsxs("div", { className: "livechat-conversation-break-container", children: [
|
23411
|
+
/* @__PURE__ */ I.jsx("hr", {}),
|
23412
|
+
/* @__PURE__ */ I.jsxs("span", { children: [
|
23361
23413
|
e,
|
23362
23414
|
" has joined"
|
23363
23415
|
] })
|
23364
23416
|
] }),
|
23365
|
-
/* @__PURE__ */
|
23417
|
+
/* @__PURE__ */ I.jsx(
|
23366
23418
|
ia,
|
23367
23419
|
{
|
23368
23420
|
loading: t,
|
@@ -23372,14 +23424,14 @@ function pd() {
|
|
23372
23424
|
]
|
23373
23425
|
}
|
23374
23426
|
),
|
23375
|
-
/* @__PURE__ */
|
23376
|
-
i && /* @__PURE__ */
|
23427
|
+
/* @__PURE__ */ I.jsxs("div", { className: "livechat-conversation-footer-container", children: [
|
23428
|
+
i && /* @__PURE__ */ I.jsx(
|
23377
23429
|
hd,
|
23378
23430
|
{
|
23379
23431
|
onDismiss: () => u(!1)
|
23380
23432
|
}
|
23381
23433
|
),
|
23382
|
-
/* @__PURE__ */
|
23434
|
+
/* @__PURE__ */ I.jsx(
|
23383
23435
|
"button",
|
23384
23436
|
{
|
23385
23437
|
className: "livechat-conversation-end-button",
|
@@ -23388,7 +23440,7 @@ function pd() {
|
|
23388
23440
|
children: "End conversation"
|
23389
23441
|
}
|
23390
23442
|
),
|
23391
|
-
/* @__PURE__ */
|
23443
|
+
/* @__PURE__ */ I.jsx(
|
23392
23444
|
ki,
|
23393
23445
|
{
|
23394
23446
|
disabled: i,
|
@@ -23468,10 +23520,10 @@ function md() {
|
|
23468
23520
|
}, {});
|
23469
23521
|
return !d && s && (L.privacyCheck = "Required"), T(L), Object.keys(L).length === 0;
|
23470
23522
|
};
|
23471
|
-
return /* @__PURE__ */
|
23472
|
-
i && /* @__PURE__ */
|
23473
|
-
(a ?? []).map(({ key: L, name: C }) => /* @__PURE__ */
|
23474
|
-
/* @__PURE__ */
|
23523
|
+
return /* @__PURE__ */ I.jsxs("div", { className: "live-chat-form", children: [
|
23524
|
+
i && /* @__PURE__ */ I.jsx("p", { children: i }),
|
23525
|
+
(a ?? []).map(({ key: L, name: C }) => /* @__PURE__ */ I.jsxs(A0, { children: [
|
23526
|
+
/* @__PURE__ */ I.jsx(
|
23475
23527
|
"input",
|
23476
23528
|
{
|
23477
23529
|
className: `live-chat-form-input ${h[L] ? "error" : ""}`,
|
@@ -23480,17 +23532,17 @@ function md() {
|
|
23480
23532
|
onChange: (k) => P(k, L)
|
23481
23533
|
}
|
23482
23534
|
),
|
23483
|
-
h[L] && /* @__PURE__ */
|
23535
|
+
h[L] && /* @__PURE__ */ I.jsx("p", { className: "live-chat-form-error", children: h[L] })
|
23484
23536
|
] }, L)),
|
23485
|
-
s && /* @__PURE__ */
|
23486
|
-
/* @__PURE__ */
|
23537
|
+
s && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
23538
|
+
/* @__PURE__ */ I.jsx(
|
23487
23539
|
"div",
|
23488
23540
|
{
|
23489
23541
|
className: "live-chat-privacy-policy-container",
|
23490
23542
|
"data-testid": "PrivacyPolicyContainer",
|
23491
|
-
children: /* @__PURE__ */
|
23543
|
+
children: /* @__PURE__ */ I.jsxs("p", { children: [
|
23492
23544
|
m[0],
|
23493
|
-
s.includes($a) && /* @__PURE__ */
|
23545
|
+
s.includes($a) && /* @__PURE__ */ I.jsxs(
|
23494
23546
|
"a",
|
23495
23547
|
{
|
23496
23548
|
"aria-label": "Privacy policy. Opens in new window.",
|
@@ -23499,7 +23551,7 @@ function md() {
|
|
23499
23551
|
target: "_blank",
|
23500
23552
|
children: [
|
23501
23553
|
$a,
|
23502
|
-
/* @__PURE__ */
|
23554
|
+
/* @__PURE__ */ I.jsx(
|
23503
23555
|
"img",
|
23504
23556
|
{
|
23505
23557
|
alt: "open in new",
|
@@ -23514,8 +23566,8 @@ function md() {
|
|
23514
23566
|
] })
|
23515
23567
|
}
|
23516
23568
|
),
|
23517
|
-
/* @__PURE__ */
|
23518
|
-
/* @__PURE__ */
|
23569
|
+
/* @__PURE__ */ I.jsxs("div", { className: "live-chat-checkbox-container", children: [
|
23570
|
+
/* @__PURE__ */ I.jsx(
|
23519
23571
|
"input",
|
23520
23572
|
{
|
23521
23573
|
checked: d,
|
@@ -23529,13 +23581,13 @@ function md() {
|
|
23529
23581
|
onKeyDown: (L) => L.key === "Enter" && E()
|
23530
23582
|
}
|
23531
23583
|
),
|
23532
|
-
/* @__PURE__ */
|
23584
|
+
/* @__PURE__ */ I.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
|
23533
23585
|
] })
|
23534
23586
|
] }),
|
23535
|
-
h.privacyCheck && /* @__PURE__ */
|
23536
|
-
/* @__PURE__ */
|
23537
|
-
/* @__PURE__ */
|
23538
|
-
/* @__PURE__ */
|
23587
|
+
h.privacyCheck && /* @__PURE__ */ I.jsx("p", { className: "live-chat-form-error", children: h.privacyCheck }),
|
23588
|
+
/* @__PURE__ */ I.jsxs("div", { className: "live-chat-buttons-container", children: [
|
23589
|
+
/* @__PURE__ */ I.jsx("button", { className: "live-chat-cancel-button", onClick: y, children: "Cancel" }),
|
23590
|
+
/* @__PURE__ */ I.jsx(
|
23539
23591
|
"button",
|
23540
23592
|
{
|
23541
23593
|
className: "live-chat-start-button",
|
@@ -23550,10 +23602,10 @@ function md() {
|
|
23550
23602
|
md.propTypes = {};
|
23551
23603
|
function gd() {
|
23552
23604
|
const { step: e } = se(hn);
|
23553
|
-
return /* @__PURE__ */
|
23554
|
-
e === jt.FORM && /* @__PURE__ */
|
23555
|
-
e === jt.CONNECTING && /* @__PURE__ */
|
23556
|
-
e === jt.CONVERSATION && /* @__PURE__ */
|
23605
|
+
return /* @__PURE__ */ I.jsxs("div", { className: "live-chat-container", children: [
|
23606
|
+
e === jt.FORM && /* @__PURE__ */ I.jsx(md, {}),
|
23607
|
+
e === jt.CONNECTING && /* @__PURE__ */ I.jsx(fd, {}),
|
23608
|
+
e === jt.CONVERSATION && /* @__PURE__ */ I.jsx(pd, {})
|
23557
23609
|
] });
|
23558
23610
|
}
|
23559
23611
|
gd.propTypes = {};
|
@@ -23595,31 +23647,31 @@ function bd({
|
|
23595
23647
|
};
|
23596
23648
|
pt.set(m, y, P);
|
23597
23649
|
};
|
23598
|
-
return !c || !f || !a ? null : /* @__PURE__ */
|
23650
|
+
return !c || !f || !a ? null : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsxs(
|
23599
23651
|
"div",
|
23600
23652
|
{
|
23601
23653
|
role: "alertdialog",
|
23602
23654
|
className: "xpert_chatbot__proactive-message",
|
23603
23655
|
style: i,
|
23604
23656
|
children: [
|
23605
|
-
/* @__PURE__ */
|
23657
|
+
/* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
|
23606
23658
|
"button",
|
23607
23659
|
{
|
23608
23660
|
className: "xpert_chatbot__proactive-message__container",
|
23609
23661
|
onClick: n,
|
23610
23662
|
"aria-label": u.text,
|
23611
23663
|
type: "button",
|
23612
|
-
children: /* @__PURE__ */
|
23664
|
+
children: /* @__PURE__ */ I.jsx("div", { className: "xpert_chatbot__proactive-message__text", children: e })
|
23613
23665
|
}
|
23614
23666
|
) }),
|
23615
|
-
/* @__PURE__ */
|
23667
|
+
/* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
|
23616
23668
|
"button",
|
23617
23669
|
{
|
23618
23670
|
className: "xpert_chatbot__proactive-message__close",
|
23619
23671
|
onClick: p,
|
23620
23672
|
"aria-label": "Close proactive message",
|
23621
23673
|
type: "button",
|
23622
|
-
children: /* @__PURE__ */
|
23674
|
+
children: /* @__PURE__ */ I.jsx(
|
23623
23675
|
Nt,
|
23624
23676
|
{
|
23625
23677
|
style: {
|
@@ -23847,7 +23899,7 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23847
23899
|
l == null ? void 0 : l.enabled,
|
23848
23900
|
l == null ? void 0 : l.experimentName
|
23849
23901
|
]);
|
23850
|
-
const
|
23902
|
+
const S = (ae) => {
|
23851
23903
|
var be, _e;
|
23852
23904
|
(be = ae == null ? void 0 : ae.target) != null && be.href && ne({
|
23853
23905
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
@@ -24038,8 +24090,8 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24038
24090
|
}, pn = (gn = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : gn.enabled, mn = u != null && u.enabled ? y ? (vt = u == null ? void 0 : u.style) == null ? void 0 : vt.mobile : u == null ? void 0 : u.style : null;
|
24039
24091
|
return (
|
24040
24092
|
// do not remove this class as it's needed to turn off chatbot
|
24041
|
-
/* @__PURE__ */
|
24042
|
-
(u == null ? void 0 : u.enabled) && /* @__PURE__ */
|
24093
|
+
/* @__PURE__ */ I.jsxs("div", { className: `xpert-chatbot${c ? "" : "--inline"}`, children: [
|
24094
|
+
(u == null ? void 0 : u.enabled) && /* @__PURE__ */ I.jsx(
|
24043
24095
|
bd,
|
24044
24096
|
{
|
24045
24097
|
showMessage: !V,
|
@@ -24047,8 +24099,8 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24047
24099
|
onClose: Ve,
|
24048
24100
|
onClick: ve,
|
24049
24101
|
cookieName: `${a}-proactive-message-xpert-chatbot`,
|
24050
|
-
children: /* @__PURE__ */
|
24051
|
-
(u == null ? void 0 : u.textPrefix) && /* @__PURE__ */
|
24102
|
+
children: /* @__PURE__ */ I.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ I.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
|
24103
|
+
(u == null ? void 0 : u.textPrefix) && /* @__PURE__ */ I.jsx(
|
24052
24104
|
"span",
|
24053
24105
|
{
|
24054
24106
|
style: {
|
@@ -24057,7 +24109,7 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24057
24109
|
children: (u == null ? void 0 : u.textPrefix) ?? ""
|
24058
24110
|
}
|
24059
24111
|
),
|
24060
|
-
(u == null ? void 0 : u.showEmoji) && /* @__PURE__ */
|
24112
|
+
(u == null ? void 0 : u.showEmoji) && /* @__PURE__ */ I.jsx(
|
24061
24113
|
"span",
|
24062
24114
|
{
|
24063
24115
|
role: "img",
|
@@ -24069,30 +24121,30 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24069
24121
|
children: "👋"
|
24070
24122
|
}
|
24071
24123
|
),
|
24072
|
-
/* @__PURE__ */
|
24124
|
+
/* @__PURE__ */ I.jsx("span", { children: (u == null ? void 0 : u.text) ?? "" })
|
24073
24125
|
] }) })
|
24074
24126
|
}
|
24075
24127
|
),
|
24076
|
-
pn && c && /* @__PURE__ */
|
24128
|
+
pn && c && /* @__PURE__ */ I.jsx(
|
24077
24129
|
Ns,
|
24078
24130
|
{
|
24079
24131
|
handleFloatingActionButtonClick: xe
|
24080
24132
|
}
|
24081
24133
|
),
|
24082
|
-
!pn && c && /* @__PURE__ */
|
24134
|
+
!pn && c && /* @__PURE__ */ I.jsx(
|
24083
24135
|
Rs,
|
24084
24136
|
{
|
24085
24137
|
handleFloatingActionButtonClick: xe
|
24086
24138
|
}
|
24087
24139
|
),
|
24088
|
-
c && /* @__PURE__ */
|
24089
|
-
V && !Q && /* @__PURE__ */
|
24140
|
+
c && /* @__PURE__ */ I.jsx(WT, {}),
|
24141
|
+
V && !Q && /* @__PURE__ */ I.jsx(zs, { isMounted: N, children: /* @__PURE__ */ I.jsx(
|
24090
24142
|
"div",
|
24091
24143
|
{
|
24092
24144
|
ref: d,
|
24093
24145
|
style: { display: "flex", flexDirection: "column", height: "100%" },
|
24094
|
-
children: /* @__PURE__ */
|
24095
|
-
c && /* @__PURE__ */
|
24146
|
+
children: /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
24147
|
+
c && /* @__PURE__ */ I.jsx(
|
24096
24148
|
dd,
|
24097
24149
|
{
|
24098
24150
|
onClose: it,
|
@@ -24101,13 +24153,13 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24101
24153
|
setIsMounted: U
|
24102
24154
|
}
|
24103
24155
|
),
|
24104
|
-
/* @__PURE__ */
|
24105
|
-
E === Qt.XPERT && /* @__PURE__ */
|
24156
|
+
/* @__PURE__ */ I.jsx(VT, {}),
|
24157
|
+
E === Qt.XPERT && /* @__PURE__ */ I.jsx(
|
24106
24158
|
id,
|
24107
24159
|
{
|
24108
24160
|
handleChange: xt,
|
24109
24161
|
handleFeedbackThumbSelection: Mn,
|
24110
|
-
handleMessageLinkClicked:
|
24162
|
+
handleMessageLinkClicked: S,
|
24111
24163
|
handleSend: Se,
|
24112
24164
|
inputRef: j,
|
24113
24165
|
isTestUser: g,
|
@@ -24116,7 +24168,7 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24116
24168
|
userInput: D
|
24117
24169
|
}
|
24118
24170
|
),
|
24119
|
-
E === Qt.LIVECHAT && /* @__PURE__ */
|
24171
|
+
E === Qt.LIVECHAT && /* @__PURE__ */ I.jsx(gd, {})
|
24120
24172
|
] })
|
24121
24173
|
}
|
24122
24174
|
) })
|
@@ -24149,7 +24201,7 @@ const Td = ({
|
|
24149
24201
|
}, f = {
|
24150
24202
|
liveChatPayload: a
|
24151
24203
|
};
|
24152
|
-
return /* @__PURE__ */
|
24204
|
+
return /* @__PURE__ */ I.jsx(vs, { ...c, children: /* @__PURE__ */ I.jsx(ws, { children: /* @__PURE__ */ I.jsx(ks, { ...d, children: /* @__PURE__ */ I.jsx(od, { ...f, children: e }) }) }) });
|
24153
24205
|
};
|
24154
24206
|
Td.propTypes = {
|
24155
24207
|
children: x.element,
|
@@ -24174,7 +24226,7 @@ function oC({
|
|
24174
24226
|
xpertKey: s,
|
24175
24227
|
widgetMode: l = !0
|
24176
24228
|
}) {
|
24177
|
-
return /* @__PURE__ */
|
24229
|
+
return /* @__PURE__ */ I.jsx(
|
24178
24230
|
Td,
|
24179
24231
|
{
|
24180
24232
|
clientId: e,
|
@@ -24185,7 +24237,7 @@ function oC({
|
|
24185
24237
|
liveChatPayload: r,
|
24186
24238
|
xpertKey: s,
|
24187
24239
|
widgetMode: l,
|
24188
|
-
children: /* @__PURE__ */
|
24240
|
+
children: /* @__PURE__ */ I.jsx(Ed, { submitEventExternal: u })
|
24189
24241
|
}
|
24190
24242
|
);
|
24191
24243
|
}
|