@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.19 → 1.36.0-alpha.20
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 +409 -409
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -243,7 +243,7 @@ Jn.exports;
|
|
243
243
|
var Ou;
|
244
244
|
function j0() {
|
245
245
|
return Ou || (Ou = 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]",
|
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]", b = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", g = "[object Null]", P = "[object Object]", M = "[object Proxy]", W = "[object RegExp]", R = "[object Set]", _ = "[object String]", N = "[object Undefined]", $ = "[object WeakMap]", H = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", V = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", w = "[object Int32Array]", B = "[object Uint8Array]", G = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", E = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, x = {};
|
247
247
|
x[Y] = x[V] = x[L] = x[I] = x[w] = x[B] = x[G] = x[j] = x[q] = !0, x[s] = x[l] = x[H] = x[d] = x[te] = x[f] = x[p] = x[h] = x[m] = x[y] = x[P] = x[W] = x[R] = x[_] = x[$] = !1;
|
248
248
|
var se = typeof Sr == "object" && Sr && Sr.Object === Object && Sr, ye = typeof self == "object" && self && self.Object === Object && self, me = se || ye || Function("return this")(), Ae = t && !t.nodeType && t, xe = Ae && !0 && e && !e.nodeType && e, je = xe && xe.exports === Ae, ve = je && se.process, Je = function() {
|
249
249
|
try {
|
@@ -287,10 +287,10 @@ function j0() {
|
|
287
287
|
var A = /[^.]+$/.exec(Bt && Bt.keys && Bt.keys.IE_PROTO || "");
|
288
288
|
return A ? "Symbol(src)_1." + A : "";
|
289
289
|
}(), Se = Nt.toString, qe = Ht.call(Object), F = RegExp(
|
290
|
-
"^" + Ht.call(ie).replace(
|
290
|
+
"^" + Ht.call(ie).replace(E, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
291
291
|
), X = je ? me.Buffer : void 0, re = me.Symbol, ue = me.Uint8Array;
|
292
292
|
X && X.allocUnsafe;
|
293
|
-
var pe = Tn(Object.getPrototypeOf, Object), Re = Object.create,
|
293
|
+
var pe = Tn(Object.getPrototypeOf, Object), Re = Object.create, Xe = Nt.propertyIsEnumerable, ke = en.splice, et = re ? re.toStringTag : void 0, it = function() {
|
294
294
|
try {
|
295
295
|
var A = ca(Object, "defineProperty");
|
296
296
|
return A({}, "", {}), A;
|
@@ -659,7 +659,7 @@ function j0() {
|
|
659
659
|
var fa = du(/* @__PURE__ */ function() {
|
660
660
|
return arguments;
|
661
661
|
}()) ? du : function(A) {
|
662
|
-
return qn(A) && ie.call(A, "callee") && !
|
662
|
+
return qn(A) && ie.call(A, "callee") && !Xe.call(A, "callee");
|
663
663
|
}, ha = Array.isArray;
|
664
664
|
function pa(A) {
|
665
665
|
return A != null && gu(A.length) && !ma(A);
|
@@ -672,7 +672,7 @@ function j0() {
|
|
672
672
|
if (!rn(A))
|
673
673
|
return !1;
|
674
674
|
var k = _r(A);
|
675
|
-
return k == h || k ==
|
675
|
+
return k == h || k == b || k == c || k == M;
|
676
676
|
}
|
677
677
|
function gu(A) {
|
678
678
|
return typeof A == "number" && A > -1 && A % 1 == 0 && A <= u;
|
@@ -1620,7 +1620,7 @@ const Zt = Kr({}), Ie = {
|
|
1620
1620
|
}) => {
|
1621
1621
|
const a = nt(null), { id: i } = oe(Ye), [u, s] = ce(null), [l, c] = ce(!1), [d, f] = ce([]), p = st(() => {
|
1622
1622
|
s(null), c(!1), f([]), lt.remove(`${i}-conversation-history-id`);
|
1623
|
-
}, [i, s]),
|
1623
|
+
}, [i, s]), b = {
|
1624
1624
|
contentRef: a,
|
1625
1625
|
conversationId: u,
|
1626
1626
|
deleteConversationModal: l,
|
@@ -1633,7 +1633,7 @@ const Zt = Kr({}), Ie = {
|
|
1633
1633
|
setXpertMessages: f,
|
1634
1634
|
xpertMessages: t ?? d
|
1635
1635
|
};
|
1636
|
-
return /* @__PURE__ */ S.jsx(Zt.Provider, { value:
|
1636
|
+
return /* @__PURE__ */ S.jsx(Zt.Provider, { value: b, children: e });
|
1637
1637
|
};
|
1638
1638
|
Hs.propTypes = {
|
1639
1639
|
children: v.element.isRequired,
|
@@ -1654,12 +1654,12 @@ const Iu = 991, Z0 = () => {
|
|
1654
1654
|
}, vt = {
|
1655
1655
|
LIVECHAT: "LIVECHAT",
|
1656
1656
|
XPERT: "XPERT"
|
1657
|
-
},
|
1657
|
+
}, Ke = Kr({}), Us = ({
|
1658
1658
|
children: e,
|
1659
1659
|
externalLoading: t = !1,
|
1660
1660
|
externalStreaming: n = !1
|
1661
1661
|
}) => {
|
1662
|
-
const [r, a] = ce(!1), [i, u] = ce(!1), [s, l] = ce(!1), [c, d] = ce(!0), [f, p] = ce(!1), [h,
|
1662
|
+
const [r, a] = ce(!1), [i, u] = ce(!1), [s, l] = ce(!1), [c, d] = ce(!0), [f, p] = ce(!1), [h, b] = ce(!1), [m, y] = ce(vt.XPERT), g = Z0(), P = {
|
1663
1663
|
disabledScroll: r,
|
1664
1664
|
hasError: i,
|
1665
1665
|
hasNewMessage: s,
|
@@ -1673,10 +1673,10 @@ const Iu = 991, Z0 = () => {
|
|
1673
1673
|
setHasNewMessage: l,
|
1674
1674
|
setIsNormalSize: d,
|
1675
1675
|
setLoading: p,
|
1676
|
-
setStreaming:
|
1676
|
+
setStreaming: b,
|
1677
1677
|
setMode: y
|
1678
1678
|
};
|
1679
|
-
return /* @__PURE__ */ S.jsx(
|
1679
|
+
return /* @__PURE__ */ S.jsx(Ke.Provider, { value: P, children: e });
|
1680
1680
|
};
|
1681
1681
|
Us.propTypes = {
|
1682
1682
|
children: v.element.isRequired,
|
@@ -1732,7 +1732,7 @@ function vi({
|
|
1732
1732
|
children: a,
|
1733
1733
|
...i
|
1734
1734
|
}) {
|
1735
|
-
const { isMobile: u } = oe(
|
1735
|
+
const { isMobile: u } = oe(Ke);
|
1736
1736
|
return /* @__PURE__ */ S.jsx(
|
1737
1737
|
"button",
|
1738
1738
|
{
|
@@ -1765,10 +1765,10 @@ const tf = 1500, nf = `The parent container is wider than the chatbot launch but
|
|
1765
1765
|
eyes follow your mouse when you hover near it.`, qs = ({
|
1766
1766
|
handleFloatingActionButtonClick: e = null
|
1767
1767
|
}) => {
|
1768
|
-
var h,
|
1769
|
-
const { id: t, launchButton: n } = oe(Ye), { isMobile: r } = oe(
|
1768
|
+
var h, b, m, y;
|
1769
|
+
const { id: t, launchButton: n } = oe(Ye), { isMobile: r } = oe(Ke), a = !lt.get(
|
1770
1770
|
`${t}-proactive-message-xpert-chatbot`
|
1771
|
-
), i = nt(null), u = nt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((
|
1771
|
+
), i = nt(null), u = nt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((b = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : b.delayMs) * 2, [l, c] = ce(!1), d = window.matchMedia(
|
1772
1772
|
`(max-width: ${tf}px)`
|
1773
1773
|
).matches;
|
1774
1774
|
Ne(() => {
|
@@ -1975,7 +1975,7 @@ const rf = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
|
|
1975
1975
|
handleFloatingActionButtonClick: e = null
|
1976
1976
|
}) => {
|
1977
1977
|
var r, a;
|
1978
|
-
const { launchButton: t } = oe(Ye), { isMobile: n } = oe(
|
1978
|
+
const { launchButton: t } = oe(Ye), { isMobile: n } = oe(Ke);
|
1979
1979
|
return /* @__PURE__ */ S.jsx(
|
1980
1980
|
vi,
|
1981
1981
|
{
|
@@ -2373,17 +2373,17 @@ var Ru = {
|
|
2373
2373
|
return q;
|
2374
2374
|
throw new Error("`".concat(L, "` was specified but was not a node, or did not return a node"));
|
2375
2375
|
}
|
2376
|
-
var
|
2376
|
+
var E = q;
|
2377
2377
|
if (typeof q == "string") {
|
2378
2378
|
try {
|
2379
|
-
|
2379
|
+
E = r.querySelector(q);
|
2380
2380
|
} catch (ne) {
|
2381
2381
|
throw new Error("`".concat(L, '` appears to be an invalid selector; error="').concat(ne.message, '"'));
|
2382
2382
|
}
|
2383
|
-
if (!
|
2383
|
+
if (!E && !B)
|
2384
2384
|
throw new Error("`".concat(L, "` as selector refers to no known node"));
|
2385
2385
|
}
|
2386
|
-
return
|
2386
|
+
return E;
|
2387
2387
|
}, f = function() {
|
2388
2388
|
var L = d("initialFocus", {
|
2389
2389
|
hasFallback: !0
|
@@ -2407,7 +2407,7 @@ var Ru = {
|
|
2407
2407
|
return sn(ne);
|
2408
2408
|
}), q = w.slice().reverse().find(function(ne) {
|
2409
2409
|
return sn(ne);
|
2410
|
-
}),
|
2410
|
+
}), E = !!I.find(function(ne) {
|
2411
2411
|
return Kt(ne) > 0;
|
2412
2412
|
});
|
2413
2413
|
return {
|
@@ -2415,7 +2415,7 @@ var Ru = {
|
|
2415
2415
|
tabbableNodes: I,
|
2416
2416
|
focusableNodes: w,
|
2417
2417
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
2418
|
-
posTabIndexesFound:
|
2418
|
+
posTabIndexesFound: E,
|
2419
2419
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
2420
2420
|
firstTabbableNode: B,
|
2421
2421
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
@@ -2460,10 +2460,10 @@ var Ru = {
|
|
2460
2460
|
var I = L.activeElement;
|
2461
2461
|
if (I)
|
2462
2462
|
return I.shadowRoot && I.shadowRoot.activeElement !== null ? h(I.shadowRoot) : I;
|
2463
|
-
},
|
2463
|
+
}, b = function(L) {
|
2464
2464
|
if (L !== !1 && L !== h(document)) {
|
2465
2465
|
if (!L || !L.focus) {
|
2466
|
-
|
2466
|
+
b(f());
|
2467
2467
|
return;
|
2468
2468
|
}
|
2469
2469
|
L.focus({
|
@@ -2480,7 +2480,7 @@ var Ru = {
|
|
2480
2480
|
I = I || vr(w), p();
|
2481
2481
|
var j = null;
|
2482
2482
|
if (u.tabbableGroups.length > 0) {
|
2483
|
-
var q = c(I, w),
|
2483
|
+
var q = c(I, w), E = q >= 0 ? u.containerGroups[q] : void 0;
|
2484
2484
|
if (q < 0)
|
2485
2485
|
G ? j = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : j = u.tabbableGroups[0].firstTabbableNode;
|
2486
2486
|
else if (G) {
|
@@ -2488,19 +2488,19 @@ var Ru = {
|
|
2488
2488
|
var xe = Ae.firstTabbableNode;
|
2489
2489
|
return I === xe;
|
2490
2490
|
});
|
2491
|
-
if (ne < 0 && (
|
2491
|
+
if (ne < 0 && (E.container === I || Rr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !E.nextTabbableNode(I, !1)) && (ne = q), ne >= 0) {
|
2492
2492
|
var le = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, x = u.tabbableGroups[le];
|
2493
2493
|
j = Kt(I) >= 0 ? x.lastTabbableNode : x.lastDomTabbableNode;
|
2494
|
-
} else tr(w) || (j =
|
2494
|
+
} else tr(w) || (j = E.nextTabbableNode(I, !1));
|
2495
2495
|
} else {
|
2496
2496
|
var se = u.tabbableGroups.findIndex(function(Ae) {
|
2497
2497
|
var xe = Ae.lastTabbableNode;
|
2498
2498
|
return I === xe;
|
2499
2499
|
});
|
2500
|
-
if (se < 0 && (
|
2500
|
+
if (se < 0 && (E.container === I || Rr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !E.nextTabbableNode(I)) && (se = q), se >= 0) {
|
2501
2501
|
var ye = se === u.tabbableGroups.length - 1 ? 0 : se + 1, me = u.tabbableGroups[ye];
|
2502
2502
|
j = Kt(I) >= 0 ? me.firstTabbableNode : me.firstDomTabbableNode;
|
2503
|
-
} else tr(w) || (j =
|
2503
|
+
} else tr(w) || (j = E.nextTabbableNode(I));
|
2504
2504
|
}
|
2505
2505
|
} else
|
2506
2506
|
j = d("fallbackFocus");
|
@@ -2533,10 +2533,10 @@ var Ru = {
|
|
2533
2533
|
if (Kt(u.mostRecentlyFocusedNode) > 0) {
|
2534
2534
|
var j = c(u.mostRecentlyFocusedNode), q = u.containerGroups[j].tabbableNodes;
|
2535
2535
|
if (q.length > 0) {
|
2536
|
-
var
|
2536
|
+
var E = q.findIndex(function(ne) {
|
2537
2537
|
return ne === u.mostRecentlyFocusedNode;
|
2538
2538
|
});
|
2539
|
-
|
2539
|
+
E >= 0 && (i.isKeyForward(u.recentNavEvent) ? E + 1 < q.length && (B = q[E + 1], G = !1) : E - 1 >= 0 && (B = q[E - 1], G = !1));
|
2540
2540
|
}
|
2541
2541
|
} else
|
2542
2542
|
u.containerGroups.some(function(ne) {
|
@@ -2551,7 +2551,7 @@ var Ru = {
|
|
2551
2551
|
// outside the trap causing the focus escape we're trying to fix)
|
2552
2552
|
target: u.mostRecentlyFocusedNode,
|
2553
2553
|
isBackward: i.isKeyBackward(u.recentNavEvent)
|
2554
|
-
})),
|
2554
|
+
})), b(B || u.mostRecentlyFocusedNode || f());
|
2555
2555
|
}
|
2556
2556
|
u.recentNavEvent = void 0;
|
2557
2557
|
}, M = function(L) {
|
@@ -2561,7 +2561,7 @@ var Ru = {
|
|
2561
2561
|
event: L,
|
2562
2562
|
isBackward: I
|
2563
2563
|
});
|
2564
|
-
w && (tr(L) && L.preventDefault(),
|
2564
|
+
w && (tr(L) && L.preventDefault(), b(w));
|
2565
2565
|
}, W = function(L) {
|
2566
2566
|
(i.isKeyForward(L) || i.isKeyBackward(L)) && M(L, i.isKeyBackward(L));
|
2567
2567
|
}, R = function(L) {
|
@@ -2572,8 +2572,8 @@ var Ru = {
|
|
2572
2572
|
}, N = function() {
|
2573
2573
|
if (u.active)
|
2574
2574
|
return Ru.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Du(function() {
|
2575
|
-
|
2576
|
-
}) :
|
2575
|
+
b(f());
|
2576
|
+
}) : b(f()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", g, {
|
2577
2577
|
capture: !0,
|
2578
2578
|
passive: !1
|
2579
2579
|
}), r.addEventListener("touchstart", g, {
|
@@ -2596,7 +2596,7 @@ var Ru = {
|
|
2596
2596
|
return G === u.mostRecentlyFocusedNode;
|
2597
2597
|
});
|
2598
2598
|
});
|
2599
|
-
I &&
|
2599
|
+
I && b(f());
|
2600
2600
|
}, te = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(H) : void 0, Y = function() {
|
2601
2601
|
te && (te.disconnect(), u.active && !u.paused && u.containers.map(function(L) {
|
2602
2602
|
te.observe(L, {
|
@@ -2635,7 +2635,7 @@ var Ru = {
|
|
2635
2635
|
w == null || w();
|
2636
2636
|
var q = function() {
|
2637
2637
|
Du(function() {
|
2638
|
-
j &&
|
2638
|
+
j && b(m(u.nodeFocusedBeforeActivation)), B == null || B();
|
2639
2639
|
});
|
2640
2640
|
};
|
2641
2641
|
return j && G ? (G(m(u.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
|
@@ -2755,7 +2755,7 @@ function Hf() {
|
|
2755
2755
|
}
|
2756
2756
|
return (N === "string" ? String : Number)(_);
|
2757
2757
|
}
|
2758
|
-
var
|
2758
|
+
var b = yt, m = /* @__PURE__ */ Ds(), y = Ff, g = y.createFocusTrap, P = Bf, M = P.isFocusable, W = /* @__PURE__ */ function(_) {
|
2759
2759
|
function N($) {
|
2760
2760
|
var H;
|
2761
2761
|
t(this, N), H = a(this, N, [$]), f(H, "getNodeForOption", function(V) {
|
@@ -2925,14 +2925,14 @@ function Hf() {
|
|
2925
2925
|
}, {
|
2926
2926
|
key: "render",
|
2927
2927
|
value: function() {
|
2928
|
-
var H = this, te = this.props.children ?
|
2928
|
+
var H = this, te = this.props.children ? b.Children.only(this.props.children) : void 0;
|
2929
2929
|
if (te) {
|
2930
|
-
if (te.type && te.type ===
|
2930
|
+
if (te.type && te.type === b.Fragment)
|
2931
2931
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
2932
2932
|
var Y = function(I) {
|
2933
2933
|
var w = H.props.containerElements;
|
2934
2934
|
te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), H.focusTrapElements = w || [I];
|
2935
|
-
}, V =
|
2935
|
+
}, V = b.cloneElement(te, {
|
2936
2936
|
ref: Y
|
2937
2937
|
});
|
2938
2938
|
return V;
|
@@ -2940,7 +2940,7 @@ function Hf() {
|
|
2940
2940
|
return null;
|
2941
2941
|
}
|
2942
2942
|
}]);
|
2943
|
-
}(
|
2943
|
+
}(b.Component), R = typeof Element > "u" ? Function : Element;
|
2944
2944
|
return W.propTypes = {
|
2945
2945
|
active: m.bool,
|
2946
2946
|
paused: m.bool,
|
@@ -3003,7 +3003,7 @@ function Js({
|
|
3003
3003
|
isMounted: n = !1,
|
3004
3004
|
style: r = {}
|
3005
3005
|
}) {
|
3006
|
-
const { isMobile: a, isNormalSize: i } = oe(
|
3006
|
+
const { isMobile: a, isNormalSize: i } = oe(Ke), u = nt(null);
|
3007
3007
|
return /* @__PURE__ */ S.jsx(
|
3008
3008
|
jf,
|
3009
3009
|
{
|
@@ -3412,10 +3412,10 @@ function nh(e, t) {
|
|
3412
3412
|
th(y) || (p[m] = y.toString());
|
3413
3413
|
};
|
3414
3414
|
h("width", d), h("height", f);
|
3415
|
-
const
|
3416
|
-
return p.viewBox =
|
3415
|
+
const b = [a.left, a.top, l, c];
|
3416
|
+
return p.viewBox = b.join(" "), {
|
3417
3417
|
attributes: p,
|
3418
|
-
viewBox:
|
3418
|
+
viewBox: b,
|
3419
3419
|
body: i
|
3420
3420
|
};
|
3421
3421
|
}
|
@@ -3707,11 +3707,11 @@ function Ch(e, t, n, r) {
|
|
3707
3707
|
const s = Date.now();
|
3708
3708
|
let l = "pending", c = 0, d, f = null, p = [], h = [];
|
3709
3709
|
typeof r == "function" && h.push(r);
|
3710
|
-
function
|
3710
|
+
function b() {
|
3711
3711
|
f && (clearTimeout(f), f = null);
|
3712
3712
|
}
|
3713
3713
|
function m() {
|
3714
|
-
l === "pending" && (l = "aborted"),
|
3714
|
+
l === "pending" && (l = "aborted"), b(), p.forEach((_) => {
|
3715
3715
|
_.status === "pending" && (_.status = "aborted");
|
3716
3716
|
}), p = [];
|
3717
3717
|
}
|
@@ -3759,7 +3759,7 @@ function Ch(e, t, n, r) {
|
|
3759
3759
|
d = $, p.length || (u.length ? R() : P());
|
3760
3760
|
return;
|
3761
3761
|
}
|
3762
|
-
if (
|
3762
|
+
if (b(), M(), !e.random) {
|
3763
3763
|
const te = e.resources.indexOf(_.resource);
|
3764
3764
|
te !== -1 && te !== e.index && (e.index = te);
|
3765
3765
|
}
|
@@ -3770,12 +3770,12 @@ function Ch(e, t, n, r) {
|
|
3770
3770
|
function R() {
|
3771
3771
|
if (l !== "pending")
|
3772
3772
|
return;
|
3773
|
-
|
3773
|
+
b();
|
3774
3774
|
const _ = u.shift();
|
3775
3775
|
if (_ === void 0) {
|
3776
3776
|
if (p.length) {
|
3777
3777
|
f = setTimeout(() => {
|
3778
|
-
|
3778
|
+
b(), l === "pending" && (M(), P());
|
3779
3779
|
}, e.timeout);
|
3780
3780
|
return;
|
3781
3781
|
}
|
@@ -4168,7 +4168,7 @@ const qh = (e, t, n) => {
|
|
4168
4168
|
__html: Bh(uh(c.body, g ? () => g + "ID" + y++ : "iconifyReact"))
|
4169
4169
|
}, Za("svg", l);
|
4170
4170
|
}
|
4171
|
-
const { body: f, width: p, height: h } = e,
|
4171
|
+
const { body: f, width: p, height: h } = e, b = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = Rh(f, {
|
4172
4172
|
...d,
|
4173
4173
|
width: p + "",
|
4174
4174
|
height: h + ""
|
@@ -4179,7 +4179,7 @@ const qh = (e, t, n) => {
|
|
4179
4179
|
width: Vu(d.width),
|
4180
4180
|
height: Vu(d.height),
|
4181
4181
|
...Uh,
|
4182
|
-
...
|
4182
|
+
...b ? ii : hl,
|
4183
4183
|
...s
|
4184
4184
|
}, Za("span", l);
|
4185
4185
|
};
|
@@ -4220,16 +4220,16 @@ function pl(e) {
|
|
4220
4220
|
const [t, n] = ce(!!e.ssr), [r, a] = ce({});
|
4221
4221
|
function i(h) {
|
4222
4222
|
if (h) {
|
4223
|
-
const
|
4224
|
-
if (typeof
|
4223
|
+
const b = e.icon;
|
4224
|
+
if (typeof b == "object")
|
4225
4225
|
return {
|
4226
4226
|
name: "",
|
4227
|
-
data:
|
4227
|
+
data: b
|
4228
4228
|
};
|
4229
|
-
const m = Bu(
|
4229
|
+
const m = Bu(b);
|
4230
4230
|
if (m)
|
4231
4231
|
return {
|
4232
|
-
name:
|
4232
|
+
name: b,
|
4233
4233
|
data: m
|
4234
4234
|
};
|
4235
4235
|
}
|
@@ -4248,25 +4248,25 @@ function pl(e) {
|
|
4248
4248
|
}
|
4249
4249
|
function d() {
|
4250
4250
|
var h;
|
4251
|
-
const
|
4252
|
-
if (typeof
|
4251
|
+
const b = e.icon;
|
4252
|
+
if (typeof b == "object") {
|
4253
4253
|
c({
|
4254
4254
|
name: "",
|
4255
|
-
data:
|
4255
|
+
data: b
|
4256
4256
|
});
|
4257
4257
|
return;
|
4258
4258
|
}
|
4259
|
-
const m = Bu(
|
4259
|
+
const m = Bu(b);
|
4260
4260
|
if (c({
|
4261
|
-
name:
|
4261
|
+
name: b,
|
4262
4262
|
data: m
|
4263
4263
|
}))
|
4264
4264
|
if (m === void 0) {
|
4265
|
-
const y = Ih([
|
4265
|
+
const y = Ih([b], d);
|
4266
4266
|
a({
|
4267
4267
|
callback: y
|
4268
4268
|
});
|
4269
|
-
} else m && ((h = e.onLoad) === null || h === void 0 || h.call(e,
|
4269
|
+
} else m && ((h = e.onLoad) === null || h === void 0 || h.call(e, b));
|
4270
4270
|
}
|
4271
4271
|
Ne(() => (n(!0), l), []), Ne(() => {
|
4272
4272
|
t && d();
|
@@ -4294,7 +4294,7 @@ function Li({
|
|
4294
4294
|
handleChange: a
|
4295
4295
|
}) {
|
4296
4296
|
var M;
|
4297
|
-
const i = nt(!1), { conversationScreen: u, primaryColor: s } = oe(Ye), { hasError: l, hasNewMessage: c, loading: d, streaming: f } = oe(
|
4297
|
+
const i = nt(!1), { conversationScreen: u, primaryColor: s } = oe(Ye), { hasError: l, hasNewMessage: c, loading: d, streaming: f } = oe(Ke), [p, h] = ce(""), b = st(
|
4298
4298
|
(W) => {
|
4299
4299
|
W.preventDefault(), h(W.target.value), a && a(W);
|
4300
4300
|
},
|
@@ -4328,7 +4328,7 @@ function Li({
|
|
4328
4328
|
value: p,
|
4329
4329
|
ref: r,
|
4330
4330
|
onInput: P,
|
4331
|
-
onChange:
|
4331
|
+
onChange: b,
|
4332
4332
|
placeholder: "Write a message",
|
4333
4333
|
cols: "5",
|
4334
4334
|
rows: "1",
|
@@ -4937,11 +4937,11 @@ function rp() {
|
|
4937
4937
|
return c[d];
|
4938
4938
|
};
|
4939
4939
|
return La = function l() {
|
4940
|
-
var c, d, f, p, h,
|
4940
|
+
var c, d, f, p, h, b, m = arguments[0], y = 1, g = arguments.length, P = !1;
|
4941
4941
|
for (typeof m == "boolean" && (P = m, m = arguments[1] || {}, y = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); y < g; ++y)
|
4942
4942
|
if (c = arguments[y], c != null)
|
4943
4943
|
for (d in c)
|
4944
|
-
f = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (h = a(p))) ? (h ? (h = !1,
|
4944
|
+
f = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (h = a(p))) ? (h ? (h = !1, b = f && a(f) ? f : []) : b = f && i(f) ? f : {}, u(m, { name: d, newValue: l(P, b, p) })) : typeof p < "u" && u(m, { name: d, newValue: p }));
|
4945
4945
|
return m;
|
4946
4946
|
}, La;
|
4947
4947
|
}
|
@@ -5013,7 +5013,7 @@ const op = El().freeze(), bl = {}.hasOwnProperty;
|
|
5013
5013
|
function El() {
|
5014
5014
|
const e = ip(), t = [];
|
5015
5015
|
let n = {}, r, a = -1;
|
5016
|
-
return i.data = u, i.Parser = void 0, i.Compiler = void 0, i.freeze = s, i.attachers = t, i.use = l, i.parse = c, i.stringify = d, i.run = f, i.runSync = p, i.process = h, i.processSync =
|
5016
|
+
return i.data = u, i.Parser = void 0, i.Compiler = void 0, i.freeze = s, i.attachers = t, i.use = l, i.parse = c, i.stringify = d, i.run = f, i.runSync = p, i.process = h, i.processSync = b, i;
|
5017
5017
|
function i() {
|
5018
5018
|
const m = El();
|
5019
5019
|
let y = -1;
|
@@ -5128,7 +5128,7 @@ function El() {
|
|
5128
5128
|
}
|
5129
5129
|
}
|
5130
5130
|
}
|
5131
|
-
function
|
5131
|
+
function b(m) {
|
5132
5132
|
let y;
|
5133
5133
|
i.freeze(), wa("processSync", i.Parser), Ra("processSync", i.Compiler);
|
5134
5134
|
const g = Wn(m);
|
@@ -5358,7 +5358,7 @@ function yp(e) {
|
|
5358
5358
|
if (!a)
|
5359
5359
|
return p(M);
|
5360
5360
|
if (a.currentConstruct && a.currentConstruct.concrete)
|
5361
|
-
return
|
5361
|
+
return b(M);
|
5362
5362
|
t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
|
5363
5363
|
}
|
5364
5364
|
return t.containerState = {}, e.check(
|
@@ -5371,19 +5371,19 @@ function yp(e) {
|
|
5371
5371
|
return a && P(), g(r), p(M);
|
5372
5372
|
}
|
5373
5373
|
function f(M) {
|
5374
|
-
return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset,
|
5374
|
+
return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, b(M);
|
5375
5375
|
}
|
5376
5376
|
function p(M) {
|
5377
5377
|
return t.containerState = {}, e.attempt(
|
5378
5378
|
oo,
|
5379
5379
|
h,
|
5380
|
-
|
5380
|
+
b
|
5381
5381
|
)(M);
|
5382
5382
|
}
|
5383
5383
|
function h(M) {
|
5384
5384
|
return r++, n.push([t.currentConstruct, t.containerState]), p(M);
|
5385
5385
|
}
|
5386
|
-
function
|
5386
|
+
function b(M) {
|
5387
5387
|
if (M === null) {
|
5388
5388
|
a && P(), g(0), e.consume(M);
|
5389
5389
|
return;
|
@@ -5616,8 +5616,8 @@ function Rp(e, t, n) {
|
|
5616
5616
|
}
|
5617
5617
|
function p(h) {
|
5618
5618
|
if ((h === 45 || xt(h)) && r++ < 63) {
|
5619
|
-
const
|
5620
|
-
return e.consume(h),
|
5619
|
+
const b = h === 45 ? p : f;
|
5620
|
+
return e.consume(h), b;
|
5621
5621
|
}
|
5622
5622
|
return n(h);
|
5623
5623
|
}
|
@@ -5762,10 +5762,10 @@ function Up(e, t, n) {
|
|
5762
5762
|
function h(_) {
|
5763
5763
|
return _ === null || be(_) ? f(_) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
5764
5764
|
contentType: "string"
|
5765
|
-
}),
|
5765
|
+
}), b(_));
|
5766
5766
|
}
|
5767
|
-
function
|
5768
|
-
return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_),
|
5767
|
+
function b(_) {
|
5768
|
+
return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_), b);
|
5769
5769
|
}
|
5770
5770
|
function m(_) {
|
5771
5771
|
return e.attempt(a, W, y)(_);
|
@@ -5927,7 +5927,7 @@ function Xp(e, t) {
|
|
5927
5927
|
const n = e[t][1], r = e[t][2];
|
5928
5928
|
let a = t - 1;
|
5929
5929
|
const i = [], u = n._tokenizer || r.parser[n.contentType](n.start), s = u.events, l = [], c = {};
|
5930
|
-
let d, f, p = -1, h = n,
|
5930
|
+
let d, f, p = -1, h = n, b = 0, m = 0;
|
5931
5931
|
const y = [m];
|
5932
5932
|
for (; h; ) {
|
5933
5933
|
for (; e[++a][1] !== h; )
|
@@ -5942,7 +5942,7 @@ function Xp(e, t) {
|
|
5942
5942
|
l.unshift([P, P + g.length - 1]), Pt(e, P, 2, g);
|
5943
5943
|
}
|
5944
5944
|
for (p = -1; ++p < l.length; )
|
5945
|
-
c[
|
5945
|
+
c[b + l[p][0]] = b + l[p][1], b += l[p][1] - l[p][0] - 1;
|
5946
5946
|
return c;
|
5947
5947
|
}
|
5948
5948
|
const Kp = {
|
@@ -6021,9 +6021,9 @@ function xl(e, t, n, r, a, i, u, s, l) {
|
|
6021
6021
|
}), h(g));
|
6022
6022
|
}
|
6023
6023
|
function h(g) {
|
6024
|
-
return g === 62 ? (e.exit("chunkString"), e.exit(s), p(g)) : g === null || g === 60 || t1(g) ? n(g) : (e.consume(g), g === 92 ?
|
6024
|
+
return g === 62 ? (e.exit("chunkString"), e.exit(s), p(g)) : g === null || g === 60 || t1(g) ? n(g) : (e.consume(g), g === 92 ? b : h);
|
6025
6025
|
}
|
6026
|
-
function
|
6026
|
+
function b(g) {
|
6027
6027
|
return g === 60 || g === 62 || g === 92 ? (e.consume(g), h) : h(g);
|
6028
6028
|
}
|
6029
6029
|
function m(g) {
|
@@ -6336,17 +6336,17 @@ function y1(e, t, n) {
|
|
6336
6336
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(x), f;
|
6337
6337
|
}
|
6338
6338
|
function f(x) {
|
6339
|
-
return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), i = !0, m) : x === 63 ? (e.consume(x), a = 3, r.interrupt ? t :
|
6339
|
+
return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), i = !0, m) : x === 63 ? (e.consume(x), a = 3, r.interrupt ? t : E) : Rt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
|
6340
6340
|
}
|
6341
6341
|
function p(x) {
|
6342
|
-
return x === 45 ? (e.consume(x), a = 2, h) : x === 91 ? (e.consume(x), a = 5, s = 0,
|
6342
|
+
return x === 45 ? (e.consume(x), a = 2, h) : x === 91 ? (e.consume(x), a = 5, s = 0, b) : Rt(x) ? (e.consume(x), a = 4, r.interrupt ? t : E) : n(x);
|
6343
6343
|
}
|
6344
6344
|
function h(x) {
|
6345
|
-
return x === 45 ? (e.consume(x), r.interrupt ? t :
|
6345
|
+
return x === 45 ? (e.consume(x), r.interrupt ? t : E) : n(x);
|
6346
6346
|
}
|
6347
|
-
function
|
6347
|
+
function b(x) {
|
6348
6348
|
const se = "CDATA[";
|
6349
|
-
return x === se.charCodeAt(s++) ? (e.consume(x), s === se.length ? r.interrupt ? t : V :
|
6349
|
+
return x === se.charCodeAt(s++) ? (e.consume(x), s === se.length ? r.interrupt ? t : V : b) : n(x);
|
6350
6350
|
}
|
6351
6351
|
function m(x) {
|
6352
6352
|
return Rt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
|
@@ -6392,7 +6392,7 @@ function y1(e, t, n) {
|
|
6392
6392
|
return x === null || be(x) ? V(x) : we(x) ? (e.consume(x), Y) : n(x);
|
6393
6393
|
}
|
6394
6394
|
function V(x) {
|
6395
|
-
return x === 45 && a === 2 ? (e.consume(x), B) : x === 60 && a === 1 ? (e.consume(x), G) : x === 62 && a === 4 ? (e.consume(x), ne) : x === 63 && a === 3 ? (e.consume(x),
|
6395
|
+
return x === 45 && a === 2 ? (e.consume(x), B) : x === 60 && a === 1 ? (e.consume(x), G) : x === 62 && a === 4 ? (e.consume(x), ne) : x === 63 && a === 3 ? (e.consume(x), E) : x === 93 && a === 5 ? (e.consume(x), q) : be(x) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
6396
6396
|
b1,
|
6397
6397
|
le,
|
6398
6398
|
L
|
@@ -6412,7 +6412,7 @@ function y1(e, t, n) {
|
|
6412
6412
|
return x === null || be(x) ? L(x) : (e.enter("htmlFlowData"), V(x));
|
6413
6413
|
}
|
6414
6414
|
function B(x) {
|
6415
|
-
return x === 45 ? (e.consume(x),
|
6415
|
+
return x === 45 ? (e.consume(x), E) : V(x);
|
6416
6416
|
}
|
6417
6417
|
function G(x) {
|
6418
6418
|
return x === 47 ? (e.consume(x), u = "", j) : V(x);
|
@@ -6425,10 +6425,10 @@ function y1(e, t, n) {
|
|
6425
6425
|
return Rt(x) && u.length < 8 ? (e.consume(x), u += String.fromCharCode(x), j) : V(x);
|
6426
6426
|
}
|
6427
6427
|
function q(x) {
|
6428
|
-
return x === 93 ? (e.consume(x),
|
6428
|
+
return x === 93 ? (e.consume(x), E) : V(x);
|
6429
6429
|
}
|
6430
|
-
function
|
6431
|
-
return x === 62 ? (e.consume(x), ne) : x === 45 && a === 2 ? (e.consume(x),
|
6430
|
+
function E(x) {
|
6431
|
+
return x === 62 ? (e.consume(x), ne) : x === 45 && a === 2 ? (e.consume(x), E) : V(x);
|
6432
6432
|
}
|
6433
6433
|
function ne(x) {
|
6434
6434
|
return x === null || be(x) ? (e.exit("htmlFlowData"), le(x)) : (e.consume(x), ne);
|
@@ -6461,98 +6461,98 @@ function S1(e, t, n) {
|
|
6461
6461
|
const r = this;
|
6462
6462
|
let a, i, u;
|
6463
6463
|
return s;
|
6464
|
-
function s(
|
6465
|
-
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(
|
6464
|
+
function s(E) {
|
6465
|
+
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(E), l;
|
6466
6466
|
}
|
6467
|
-
function l(
|
6468
|
-
return
|
6467
|
+
function l(E) {
|
6468
|
+
return E === 33 ? (e.consume(E), c) : E === 47 ? (e.consume(E), R) : E === 63 ? (e.consume(E), M) : Rt(E) ? (e.consume(E), $) : n(E);
|
6469
6469
|
}
|
6470
|
-
function c(
|
6471
|
-
return
|
6470
|
+
function c(E) {
|
6471
|
+
return E === 45 ? (e.consume(E), d) : E === 91 ? (e.consume(E), i = 0, b) : Rt(E) ? (e.consume(E), P) : n(E);
|
6472
6472
|
}
|
6473
|
-
function d(
|
6474
|
-
return
|
6473
|
+
function d(E) {
|
6474
|
+
return E === 45 ? (e.consume(E), h) : n(E);
|
6475
6475
|
}
|
6476
|
-
function f(
|
6477
|
-
return
|
6476
|
+
function f(E) {
|
6477
|
+
return E === null ? n(E) : E === 45 ? (e.consume(E), p) : be(E) ? (u = f, G(E)) : (e.consume(E), f);
|
6478
6478
|
}
|
6479
|
-
function p(
|
6480
|
-
return
|
6479
|
+
function p(E) {
|
6480
|
+
return E === 45 ? (e.consume(E), h) : f(E);
|
6481
6481
|
}
|
6482
|
-
function h(
|
6483
|
-
return
|
6482
|
+
function h(E) {
|
6483
|
+
return E === 62 ? B(E) : E === 45 ? p(E) : f(E);
|
6484
6484
|
}
|
6485
|
-
function E
|
6485
|
+
function b(E) {
|
6486
6486
|
const ne = "CDATA[";
|
6487
|
-
return
|
6487
|
+
return E === ne.charCodeAt(i++) ? (e.consume(E), i === ne.length ? m : b) : n(E);
|
6488
6488
|
}
|
6489
|
-
function m(
|
6490
|
-
return
|
6489
|
+
function m(E) {
|
6490
|
+
return E === null ? n(E) : E === 93 ? (e.consume(E), y) : be(E) ? (u = m, G(E)) : (e.consume(E), m);
|
6491
6491
|
}
|
6492
|
-
function y(
|
6493
|
-
return
|
6492
|
+
function y(E) {
|
6493
|
+
return E === 93 ? (e.consume(E), g) : m(E);
|
6494
6494
|
}
|
6495
|
-
function g(
|
6496
|
-
return
|
6495
|
+
function g(E) {
|
6496
|
+
return E === 62 ? B(E) : E === 93 ? (e.consume(E), g) : m(E);
|
6497
6497
|
}
|
6498
|
-
function P(
|
6499
|
-
return
|
6498
|
+
function P(E) {
|
6499
|
+
return E === null || E === 62 ? B(E) : be(E) ? (u = P, G(E)) : (e.consume(E), P);
|
6500
6500
|
}
|
6501
|
-
function M(
|
6502
|
-
return
|
6501
|
+
function M(E) {
|
6502
|
+
return E === null ? n(E) : E === 63 ? (e.consume(E), W) : be(E) ? (u = M, G(E)) : (e.consume(E), M);
|
6503
6503
|
}
|
6504
|
-
function W(
|
6505
|
-
return
|
6504
|
+
function W(E) {
|
6505
|
+
return E === 62 ? B(E) : M(E);
|
6506
6506
|
}
|
6507
|
-
function R(
|
6508
|
-
return Rt(
|
6507
|
+
function R(E) {
|
6508
|
+
return Rt(E) ? (e.consume(E), _) : n(E);
|
6509
6509
|
}
|
6510
|
-
function _(
|
6511
|
-
return
|
6510
|
+
function _(E) {
|
6511
|
+
return E === 45 || xt(E) ? (e.consume(E), _) : N(E);
|
6512
6512
|
}
|
6513
|
-
function N(
|
6514
|
-
return be(
|
6513
|
+
function N(E) {
|
6514
|
+
return be(E) ? (u = N, G(E)) : we(E) ? (e.consume(E), N) : B(E);
|
6515
6515
|
}
|
6516
|
-
function $(
|
6517
|
-
return
|
6516
|
+
function $(E) {
|
6517
|
+
return E === 45 || xt(E) ? (e.consume(E), $) : E === 47 || E === 62 || _t(E) ? H(E) : n(E);
|
6518
6518
|
}
|
6519
|
-
function H(
|
6520
|
-
return
|
6519
|
+
function H(E) {
|
6520
|
+
return E === 47 ? (e.consume(E), B) : E === 58 || E === 95 || Rt(E) ? (e.consume(E), te) : be(E) ? (u = H, G(E)) : we(E) ? (e.consume(E), H) : B(E);
|
6521
6521
|
}
|
6522
|
-
function te(
|
6523
|
-
return
|
6522
|
+
function te(E) {
|
6523
|
+
return E === 45 || E === 46 || E === 58 || E === 95 || xt(E) ? (e.consume(E), te) : Y(E);
|
6524
6524
|
}
|
6525
|
-
function Y(
|
6526
|
-
return
|
6525
|
+
function Y(E) {
|
6526
|
+
return E === 61 ? (e.consume(E), V) : be(E) ? (u = Y, G(E)) : we(E) ? (e.consume(E), Y) : H(E);
|
6527
6527
|
}
|
6528
|
-
function V(
|
6529
|
-
return
|
6528
|
+
function V(E) {
|
6529
|
+
return E === null || E === 60 || E === 61 || E === 62 || E === 96 ? n(E) : E === 34 || E === 39 ? (e.consume(E), a = E, L) : be(E) ? (u = V, G(E)) : we(E) ? (e.consume(E), V) : (e.consume(E), I);
|
6530
6530
|
}
|
6531
|
-
function L(
|
6532
|
-
return
|
6531
|
+
function L(E) {
|
6532
|
+
return E === a ? (e.consume(E), a = void 0, w) : E === null ? n(E) : be(E) ? (u = L, G(E)) : (e.consume(E), L);
|
6533
6533
|
}
|
6534
|
-
function I(
|
6535
|
-
return
|
6534
|
+
function I(E) {
|
6535
|
+
return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 96 ? n(E) : E === 47 || E === 62 || _t(E) ? H(E) : (e.consume(E), I);
|
6536
6536
|
}
|
6537
|
-
function w(
|
6538
|
-
return
|
6537
|
+
function w(E) {
|
6538
|
+
return E === 47 || E === 62 || _t(E) ? H(E) : n(E);
|
6539
6539
|
}
|
6540
|
-
function B(
|
6541
|
-
return
|
6540
|
+
function B(E) {
|
6541
|
+
return E === 62 ? (e.consume(E), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(E);
|
6542
6542
|
}
|
6543
|
-
function G(
|
6544
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(
|
6543
|
+
function G(E) {
|
6544
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(E), e.exit("lineEnding"), j;
|
6545
6545
|
}
|
6546
|
-
function j(
|
6547
|
-
return we(
|
6546
|
+
function j(E) {
|
6547
|
+
return we(E) ? Fe(
|
6548
6548
|
e,
|
6549
6549
|
q,
|
6550
6550
|
"linePrefix",
|
6551
6551
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
6552
|
-
)(
|
6552
|
+
)(E) : q(E);
|
6553
6553
|
}
|
6554
|
-
function q(
|
6555
|
-
return e.enter("htmlTextData"), u(
|
6554
|
+
function q(E) {
|
6555
|
+
return e.enter("htmlTextData"), u(E);
|
6556
6556
|
}
|
6557
6557
|
}
|
6558
6558
|
const Pi = {
|
@@ -6822,11 +6822,11 @@ function q1(e, t, n) {
|
|
6822
6822
|
let i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0, u = 0;
|
6823
6823
|
return s;
|
6824
6824
|
function s(h) {
|
6825
|
-
const
|
6826
|
-
if (
|
6827
|
-
if (r.containerState.type || (r.containerState.type =
|
6825
|
+
const b = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
6826
|
+
if (b === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : di(h)) {
|
6827
|
+
if (r.containerState.type || (r.containerState.type = b, e.enter(b, {
|
6828
6828
|
_container: !0
|
6829
|
-
})),
|
6829
|
+
})), b === "listUnordered")
|
6830
6830
|
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Mr, n, c)(h) : c(h);
|
6831
6831
|
if (!r.interrupt || h === 49)
|
6832
6832
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
|
@@ -7119,7 +7119,7 @@ function tm(e, t, n) {
|
|
7119
7119
|
parser: e,
|
7120
7120
|
sliceStream: h,
|
7121
7121
|
sliceSerialize: p,
|
7122
|
-
now:
|
7122
|
+
now: b,
|
7123
7123
|
defineSkip: m,
|
7124
7124
|
write: f
|
7125
7125
|
};
|
@@ -7134,7 +7134,7 @@ function tm(e, t, n) {
|
|
7134
7134
|
function h(Y) {
|
7135
7135
|
return nm(u, Y);
|
7136
7136
|
}
|
7137
|
-
function
|
7137
|
+
function b() {
|
7138
7138
|
const { line: Y, column: V, offset: L, _index: I, _bufferIndex: w } = r;
|
7139
7139
|
return {
|
7140
7140
|
line: Y,
|
@@ -7166,11 +7166,11 @@ function tm(e, t, n) {
|
|
7166
7166
|
}
|
7167
7167
|
function M(Y, V) {
|
7168
7168
|
const L = V || {};
|
7169
|
-
return L.type = Y, L.start =
|
7169
|
+
return L.type = Y, L.start = b(), c.events.push(["enter", L, c]), s.push(L), L;
|
7170
7170
|
}
|
7171
7171
|
function W(Y) {
|
7172
7172
|
const V = s.pop();
|
7173
|
-
return V.end =
|
7173
|
+
return V.end = b(), c.events.push(["exit", V, c]), V;
|
7174
7174
|
}
|
7175
7175
|
function R(Y, V) {
|
7176
7176
|
$(Y, V.from);
|
@@ -7181,7 +7181,7 @@ function tm(e, t, n) {
|
|
7181
7181
|
function N(Y, V) {
|
7182
7182
|
return L;
|
7183
7183
|
function L(I, w, B) {
|
7184
|
-
let G, j, q,
|
7184
|
+
let G, j, q, E;
|
7185
7185
|
return Array.isArray(I) ? le(I) : "tokenize" in I ? (
|
7186
7186
|
// @ts-expect-error Looks like a construct.
|
7187
7187
|
le([I])
|
@@ -7204,7 +7204,7 @@ function tm(e, t, n) {
|
|
7204
7204
|
function x(me) {
|
7205
7205
|
return Ae;
|
7206
7206
|
function Ae(xe) {
|
7207
|
-
return
|
7207
|
+
return E = H(), q = me, me.partial || (c.currentConstruct = me), me.name && c.parser.constructs.disable.null.includes(me.name) ? ye() : me.tokenize.call(
|
7208
7208
|
// If we do have fields, create an object w/ `context` as its
|
7209
7209
|
// prototype.
|
7210
7210
|
// This allows a “live binding”, which is needed for `interrupt`.
|
@@ -7216,10 +7216,10 @@ function tm(e, t, n) {
|
|
7216
7216
|
}
|
7217
7217
|
}
|
7218
7218
|
function se(me) {
|
7219
|
-
return Y(q,
|
7219
|
+
return Y(q, E), w;
|
7220
7220
|
}
|
7221
7221
|
function ye(me) {
|
7222
|
-
return
|
7222
|
+
return E.restore(), ++j < G.length ? x(G[j]) : B;
|
7223
7223
|
}
|
7224
7224
|
}
|
7225
7225
|
}
|
@@ -7232,7 +7232,7 @@ function tm(e, t, n) {
|
|
7232
7232
|
), Y.resolveTo && (c.events = Y.resolveTo(c.events, c));
|
7233
7233
|
}
|
7234
7234
|
function H() {
|
7235
|
-
const Y =
|
7235
|
+
const Y = b(), V = c.previous, L = c.currentConstruct, I = c.events.length, w = Array.from(s);
|
7236
7236
|
return {
|
7237
7237
|
restore: B,
|
7238
7238
|
from: I
|
@@ -7507,7 +7507,7 @@ function _m(e) {
|
|
7507
7507
|
label: l,
|
7508
7508
|
link: s(Nt),
|
7509
7509
|
listItem: s(Ht),
|
7510
|
-
listItemValue:
|
7510
|
+
listItemValue: b,
|
7511
7511
|
listOrdered: s(Bt, h),
|
7512
7512
|
listUnordered: s(Bt),
|
7513
7513
|
paragraph: s(ie),
|
@@ -7552,7 +7552,7 @@ function _m(e) {
|
|
7552
7552
|
htmlTextData: V,
|
7553
7553
|
image: d(q),
|
7554
7554
|
label: ne,
|
7555
|
-
labelText:
|
7555
|
+
labelText: E,
|
7556
7556
|
lineEnding: L,
|
7557
7557
|
link: d(j),
|
7558
7558
|
listItem: d(),
|
@@ -7634,11 +7634,11 @@ function _m(e) {
|
|
7634
7634
|
return X;
|
7635
7635
|
}
|
7636
7636
|
function a(F, X, re) {
|
7637
|
-
let ue = X - 1, pe = -1, Re = !1,
|
7637
|
+
let ue = X - 1, pe = -1, Re = !1, Xe, ke, et, it;
|
7638
7638
|
for (; ++ue <= re; ) {
|
7639
7639
|
const Oe = F[ue];
|
7640
|
-
if (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered" || Oe[1].type === "blockQuote" ? (Oe[0] === "enter" ? pe++ : pe--, it = void 0) : Oe[1].type === "lineEndingBlank" ? Oe[0] === "enter" && (
|
7641
|
-
if (
|
7640
|
+
if (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered" || Oe[1].type === "blockQuote" ? (Oe[0] === "enter" ? pe++ : pe--, it = void 0) : Oe[1].type === "lineEndingBlank" ? Oe[0] === "enter" && (Xe && !it && !pe && !et && (et = ue), it = void 0) : Oe[1].type === "linePrefix" || Oe[1].type === "listItemValue" || Oe[1].type === "listItemMarker" || Oe[1].type === "listItemPrefix" || Oe[1].type === "listItemPrefixWhitespace" || (it = void 0), !pe && Oe[0] === "enter" && Oe[1].type === "listItemPrefix" || pe === -1 && Oe[0] === "exit" && (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered")) {
|
7641
|
+
if (Xe) {
|
7642
7642
|
let rt = ue;
|
7643
7643
|
for (ke = void 0; rt--; ) {
|
7644
7644
|
const ze = F[rt];
|
@@ -7647,18 +7647,18 @@ function _m(e) {
|
|
7647
7647
|
ke && (F[ke][1].type = "lineEndingBlank", Re = !0), ze[1].type = "lineEnding", ke = rt;
|
7648
7648
|
} else if (!(ze[1].type === "linePrefix" || ze[1].type === "blockQuotePrefix" || ze[1].type === "blockQuotePrefixWhitespace" || ze[1].type === "blockQuoteMarker" || ze[1].type === "listItemIndent")) break;
|
7649
7649
|
}
|
7650
|
-
et && (!ke || et < ke) && (
|
7650
|
+
et && (!ke || et < ke) && (Xe._spread = !0), Xe.end = Object.assign(
|
7651
7651
|
{},
|
7652
7652
|
ke ? F[ke][1].start : Oe[1].end
|
7653
|
-
), F.splice(ke || ue, 0, ["exit",
|
7653
|
+
), F.splice(ke || ue, 0, ["exit", Xe, Oe[2]]), ue++, re++;
|
7654
7654
|
}
|
7655
|
-
Oe[1].type === "listItemPrefix" && (
|
7655
|
+
Oe[1].type === "listItemPrefix" && (Xe = {
|
7656
7656
|
type: "listItem",
|
7657
7657
|
_spread: !1,
|
7658
7658
|
start: Object.assign({}, Oe[1].start),
|
7659
7659
|
// @ts-expect-error: we’ll add `end` in a second.
|
7660
7660
|
end: void 0
|
7661
|
-
}, F.splice(ue, 0, ["enter",
|
7661
|
+
}, F.splice(ue, 0, ["enter", Xe, Oe[2]]), ue++, re++, et = void 0, it = !0);
|
7662
7662
|
}
|
7663
7663
|
}
|
7664
7664
|
return F[X][1]._spread = Re, re;
|
@@ -7710,7 +7710,7 @@ function _m(e) {
|
|
7710
7710
|
function h() {
|
7711
7711
|
i("expectingFirstListItemValue", !0);
|
7712
7712
|
}
|
7713
|
-
function
|
7713
|
+
function b(F) {
|
7714
7714
|
if (u("expectingFirstListItemValue")) {
|
7715
7715
|
const X = this.stack[this.stack.length - 2];
|
7716
7716
|
X.start = Number.parseInt(this.sliceSerialize(F), 10), i("expectingFirstListItemValue");
|
@@ -7819,7 +7819,7 @@ function _m(e) {
|
|
7819
7819
|
delete F.identifier, delete F.label;
|
7820
7820
|
i("referenceType");
|
7821
7821
|
}
|
7822
|
-
function
|
7822
|
+
function E(F) {
|
7823
7823
|
const X = this.sliceSerialize(F), re = this.stack[this.stack.length - 2];
|
7824
7824
|
re.label = Em(X), re.identifier = vn(X).toLowerCase();
|
7825
7825
|
}
|
@@ -8367,8 +8367,8 @@ function Vm(e, t, n) {
|
|
8367
8367
|
for (; ++l < s; ) {
|
8368
8368
|
const f = t.children[l], p = {}, h = u ? u[l] : void 0;
|
8369
8369
|
h && (p.align = h);
|
8370
|
-
let
|
8371
|
-
f && (
|
8370
|
+
let b = { type: "element", tagName: i, properties: p, children: [] };
|
8371
|
+
f && (b.children = e.all(f), e.patch(f, b), b = e.applyData(t, b)), c.push(b);
|
8372
8372
|
}
|
8373
8373
|
const d = {
|
8374
8374
|
type: "element",
|
@@ -8554,14 +8554,14 @@ const n2 = !0, xo = !1, r2 = "skip", a2 = (
|
|
8554
8554
|
}
|
8555
8555
|
return f;
|
8556
8556
|
function f() {
|
8557
|
-
let p = [], h,
|
8557
|
+
let p = [], h, b, m;
|
8558
8558
|
if ((!t || a(s, l, c[c.length - 1] || null)) && (p = i2(n(s, c)), p[0] === xo))
|
8559
8559
|
return p;
|
8560
8560
|
if (s.children && p[0] !== r2)
|
8561
|
-
for (
|
8562
|
-
if (h = u(s.children[
|
8561
|
+
for (b = (r ? s.children.length : -1) + i, m = c.concat(s); b > -1 && b < s.children.length; ) {
|
8562
|
+
if (h = u(s.children[b], b, m)(), h[0] === xo)
|
8563
8563
|
return h;
|
8564
|
-
|
8564
|
+
b = typeof h[1] == "number" ? h[1] : b + i;
|
8565
8565
|
}
|
8566
8566
|
return p;
|
8567
8567
|
}
|
@@ -9989,8 +9989,8 @@ var Lo;
|
|
9989
9989
|
function v2() {
|
9990
9990
|
if (Lo) return Ce;
|
9991
9991
|
Lo = 1;
|
9992
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"),
|
9993
|
-
|
9992
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b;
|
9993
|
+
b = Symbol.for("react.module.reference");
|
9994
9994
|
function m(y) {
|
9995
9995
|
if (typeof y == "object" && y !== null) {
|
9996
9996
|
var g = y.$$typeof;
|
@@ -10050,7 +10050,7 @@ function v2() {
|
|
10050
10050
|
}, Ce.isSuspenseList = function(y) {
|
10051
10051
|
return m(y) === d;
|
10052
10052
|
}, Ce.isValidElementType = function(y) {
|
10053
|
-
return typeof y == "string" || typeof y == "function" || y === n || y === a || y === r || y === c || y === d || y === h || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === f || y.$$typeof === i || y.$$typeof === u || y.$$typeof === l || y.$$typeof ===
|
10053
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === a || y === r || y === c || y === d || y === h || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === f || y.$$typeof === i || y.$$typeof === u || y.$$typeof === l || y.$$typeof === b || y.getModuleId !== void 0);
|
10054
10054
|
}, Ce.typeOf = m, Ce;
|
10055
10055
|
}
|
10056
10056
|
var wo;
|
@@ -10162,8 +10162,8 @@ function L2() {
|
|
10162
10162
|
if (te(), !N(a)) return _("property missing ':'");
|
10163
10163
|
var w = N(i), B = L({
|
10164
10164
|
type: h,
|
10165
|
-
property:
|
10166
|
-
value: w ?
|
10165
|
+
property: b(I[0].replace(e, f)),
|
10166
|
+
value: w ? b(w[0].replace(e, f)) : f
|
10167
10167
|
});
|
10168
10168
|
return N(u), B;
|
10169
10169
|
}
|
@@ -10177,7 +10177,7 @@ function L2() {
|
|
10177
10177
|
}
|
10178
10178
|
return $(), V();
|
10179
10179
|
};
|
10180
|
-
function
|
10180
|
+
function b(m) {
|
10181
10181
|
return m ? m.replace(s, f) : f;
|
10182
10182
|
}
|
10183
10183
|
return Ha;
|
@@ -10218,7 +10218,7 @@ function M2(e, t, n, r) {
|
|
10218
10218
|
const p = t.position || {
|
10219
10219
|
start: { line: null, column: null, offset: null },
|
10220
10220
|
end: { line: null, column: null, offset: null }
|
10221
|
-
}, h = a.components && pi.call(a.components, s) ? a.components[s] : s,
|
10221
|
+
}, h = a.components && pi.call(a.components, s) ? a.components[s] : s, b = typeof h == "string" || h === yt.Fragment;
|
10222
10222
|
if (!N2.isValidElementType(h))
|
10223
10223
|
throw new TypeError(
|
10224
10224
|
`Component for name \`${s}\` not defined or is not renderable`
|
@@ -10231,15 +10231,15 @@ function M2(e, t, n, r) {
|
|
10231
10231
|
String(l.href || ""),
|
10232
10232
|
t.children,
|
10233
10233
|
typeof l.title == "string" ? l.title : null
|
10234
|
-
)), !
|
10234
|
+
)), !b && s === "code" && r.type === "element" && r.tagName !== "pre" && (l.inline = !0), !b && (s === "h1" || s === "h2" || s === "h3" || s === "h4" || s === "h5" || s === "h6") && (l.level = Number.parseInt(s.charAt(1), 10)), s === "img" && a.transformImageUri && (l.src = a.transformImageUri(
|
10235
10235
|
String(l.src || ""),
|
10236
10236
|
String(l.alt || ""),
|
10237
10237
|
typeof l.title == "string" ? l.title : null
|
10238
|
-
)), !
|
10238
|
+
)), !b && s === "li" && r.type === "element") {
|
10239
10239
|
const m = F2(t);
|
10240
10240
|
l.checked = m && m.properties ? !!m.properties.checked : null, l.index = Ua(r, t), l.ordered = r.tagName === "ol";
|
10241
10241
|
}
|
10242
|
-
return !
|
10242
|
+
return !b && (s === "ol" || s === "ul") && (l.ordered = s === "ol", l.depth = e.listDepth), (s === "td" || s === "th") && (l.align && (l.style || (l.style = {}), l.style.textAlign = l.align, delete l.align), b || (l.isHeader = s === "th")), !b && s === "tr" && r.type === "element" && (l.isHeader = r.tagName === "thead"), a.sourcePos && (l["data-sourcepos"] = j2(p)), !b && a.rawSourcePos && (l.sourcePosition = t.position), !b && a.includeElementIndex && (l.index = Ua(r, t), l.siblingCount = Ua(r)), b || (l.node = t), f.length > 0 ? yt.createElement(h, l, f) : yt.createElement(h, l);
|
10243
10243
|
}
|
10244
10244
|
function F2(e) {
|
10245
10245
|
let t = -1;
|
@@ -19083,7 +19083,7 @@ function gT(e, t, n, r) {
|
|
19083
19083
|
}
|
19084
19084
|
return p;
|
19085
19085
|
function p() {
|
19086
|
-
let h = Jc,
|
19086
|
+
let h = Jc, b, m, y;
|
19087
19087
|
if ((!t || i(l, c, d[d.length - 1] || void 0)) && (h = bT(n(l, d)), h[0] === ls))
|
19088
19088
|
return h;
|
19089
19089
|
if ("children" in l && l.children) {
|
@@ -19094,9 +19094,9 @@ function gT(e, t, n, r) {
|
|
19094
19094
|
if (g.children && h[0] !== mT)
|
19095
19095
|
for (m = (r ? g.children.length : -1) + u, y = d.concat(g); m > -1 && m < g.children.length; ) {
|
19096
19096
|
const P = g.children[m];
|
19097
|
-
if (
|
19098
|
-
return
|
19099
|
-
m = typeof
|
19097
|
+
if (b = s(P, m, y)(), b[0] === ls)
|
19098
|
+
return b;
|
19099
|
+
m = typeof b[1] == "number" ? b[1] : m + u;
|
19100
19100
|
}
|
19101
19101
|
}
|
19102
19102
|
return h;
|
@@ -19327,7 +19327,7 @@ function DT() {
|
|
19327
19327
|
(function(n, r) {
|
19328
19328
|
e.exports = r();
|
19329
19329
|
})(RT, function() {
|
19330
|
-
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year",
|
19330
|
+
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year", b = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
|
19331
19331
|
var w = ["th", "st", "nd", "rd"], B = I % 100;
|
19332
19332
|
return "[" + I + (w[(B - 20) % 10] || w[B] || w[0]) + "]";
|
19333
19333
|
} }, M = function(I, w, B) {
|
@@ -19338,12 +19338,12 @@ function DT() {
|
|
19338
19338
|
return (w <= 0 ? "+" : "-") + M(G, 2, "0") + ":" + M(j, 2, "0");
|
19339
19339
|
}, m: function I(w, B) {
|
19340
19340
|
if (w.date() < B.date()) return -I(B, w);
|
19341
|
-
var G = 12 * (B.year() - w.year()) + (B.month() - w.month()), j = w.clone().add(G, f), q = B - j < 0,
|
19342
|
-
return +(-(G + (B - j) / (q ? j -
|
19341
|
+
var G = 12 * (B.year() - w.year()) + (B.month() - w.month()), j = w.clone().add(G, f), q = B - j < 0, E = w.clone().add(G + (q ? -1 : 1), f);
|
19342
|
+
return +(-(G + (B - j) / (q ? j - E : E - j)) || 0);
|
19343
19343
|
}, a: function(I) {
|
19344
19344
|
return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
|
19345
19345
|
}, p: function(I) {
|
19346
|
-
return { M: f, y: h, w: d, d: c, D:
|
19346
|
+
return { M: f, y: h, w: d, d: c, D: b, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
|
19347
19347
|
}, u: function(I) {
|
19348
19348
|
return I === void 0;
|
19349
19349
|
} }, R = "en", _ = {};
|
@@ -19356,8 +19356,8 @@ function DT() {
|
|
19356
19356
|
if (typeof w == "string") {
|
19357
19357
|
var q = w.toLowerCase();
|
19358
19358
|
_[q] && (j = q), B && (_[q] = B, j = q);
|
19359
|
-
var
|
19360
|
-
if (!j &&
|
19359
|
+
var E = w.split("-");
|
19360
|
+
if (!j && E.length > 1) return I(E[0]);
|
19361
19361
|
} else {
|
19362
19362
|
var ne = w.name;
|
19363
19363
|
_[ne] = w, j = ne;
|
@@ -19383,10 +19383,10 @@ function DT() {
|
|
19383
19383
|
if (Y.u(j)) return /* @__PURE__ */ new Date();
|
19384
19384
|
if (j instanceof Date) return new Date(j);
|
19385
19385
|
if (typeof j == "string" && !/Z$/i.test(j)) {
|
19386
|
-
var
|
19387
|
-
if (
|
19388
|
-
var ne =
|
19389
|
-
return q ? new Date(Date.UTC(
|
19386
|
+
var E = j.match(y);
|
19387
|
+
if (E) {
|
19388
|
+
var ne = E[2] - 1 || 0, le = (E[7] || "0").substring(0, 3);
|
19389
|
+
return q ? new Date(Date.UTC(E[1], ne, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, le)) : new Date(E[1], ne, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, le);
|
19390
19390
|
}
|
19391
19391
|
}
|
19392
19392
|
return new Date(j);
|
@@ -19412,13 +19412,13 @@ function DT() {
|
|
19412
19412
|
}, w.valueOf = function() {
|
19413
19413
|
return this.$d.getTime();
|
19414
19414
|
}, w.startOf = function(B, G) {
|
19415
|
-
var j = this, q = !!Y.u(G) || G,
|
19415
|
+
var j = this, q = !!Y.u(G) || G, E = Y.p(B), ne = function(je, ve) {
|
19416
19416
|
var Je = Y.w(j.$u ? Date.UTC(j.$y, ve, je) : new Date(j.$y, ve, je), j);
|
19417
19417
|
return q ? Je : Je.endOf(c);
|
19418
19418
|
}, le = function(je, ve) {
|
19419
19419
|
return Y.w(j.toDate()[je].apply(j.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), j);
|
19420
19420
|
}, x = this.$W, se = this.$M, ye = this.$D, me = "set" + (this.$u ? "UTC" : "");
|
19421
|
-
switch (
|
19421
|
+
switch (E) {
|
19422
19422
|
case h:
|
19423
19423
|
return q ? ne(1, 0) : ne(31, 11);
|
19424
19424
|
case f:
|
@@ -19427,7 +19427,7 @@ function DT() {
|
|
19427
19427
|
var Ae = this.$locale().weekStart || 0, xe = (x < Ae ? x + 7 : x) - Ae;
|
19428
19428
|
return ne(q ? ye - xe : ye + (6 - xe), se);
|
19429
19429
|
case c:
|
19430
|
-
case
|
19430
|
+
case b:
|
19431
19431
|
return le(me + "Hours", 0);
|
19432
19432
|
case l:
|
19433
19433
|
return le(me + "Minutes", 1);
|
@@ -19441,10 +19441,10 @@ function DT() {
|
|
19441
19441
|
}, w.endOf = function(B) {
|
19442
19442
|
return this.startOf(B, !1);
|
19443
19443
|
}, w.$set = function(B, G) {
|
19444
|
-
var j, q = Y.p(B),
|
19444
|
+
var j, q = Y.p(B), E = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = E + "Date", j[b] = E + "Date", j[f] = E + "Month", j[h] = E + "FullYear", j[l] = E + "Hours", j[s] = E + "Minutes", j[u] = E + "Seconds", j[i] = E + "Milliseconds", j)[q], le = q === c ? this.$D + (G - this.$W) : G;
|
19445
19445
|
if (q === f || q === h) {
|
19446
|
-
var x = this.clone().set(
|
19447
|
-
x.$d[ne](le), x.init(), this.$d = x.set(
|
19446
|
+
var x = this.clone().set(b, 1);
|
19447
|
+
x.$d[ne](le), x.init(), this.$d = x.set(b, Math.min(this.$D, x.daysInMonth())).$d;
|
19448
19448
|
} else ne && this.$d[ne](le);
|
19449
19449
|
return this.init(), this;
|
19450
19450
|
}, w.set = function(B, G) {
|
@@ -19454,22 +19454,22 @@ function DT() {
|
|
19454
19454
|
}, w.add = function(B, G) {
|
19455
19455
|
var j, q = this;
|
19456
19456
|
B = Number(B);
|
19457
|
-
var
|
19457
|
+
var E = Y.p(G), ne = function(se) {
|
19458
19458
|
var ye = te(q);
|
19459
19459
|
return Y.w(ye.date(ye.date() + Math.round(se * B)), q);
|
19460
19460
|
};
|
19461
|
-
if (
|
19462
|
-
if (
|
19463
|
-
if (
|
19464
|
-
if (
|
19465
|
-
var le = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[
|
19461
|
+
if (E === f) return this.set(f, this.$M + B);
|
19462
|
+
if (E === h) return this.set(h, this.$y + B);
|
19463
|
+
if (E === c) return ne(1);
|
19464
|
+
if (E === d) return ne(7);
|
19465
|
+
var le = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[E] || 1, x = this.$d.getTime() + B * le;
|
19466
19466
|
return Y.w(x, this);
|
19467
19467
|
}, w.subtract = function(B, G) {
|
19468
19468
|
return this.add(-1 * B, G);
|
19469
19469
|
}, w.format = function(B) {
|
19470
19470
|
var G = this, j = this.$locale();
|
19471
19471
|
if (!this.isValid()) return j.invalidDate || m;
|
19472
|
-
var q = B || "YYYY-MM-DDTHH:mm:ssZ",
|
19472
|
+
var q = B || "YYYY-MM-DDTHH:mm:ssZ", E = Y.z(this), ne = this.$H, le = this.$m, x = this.$M, se = j.weekdays, ye = j.months, me = j.meridiem, Ae = function(ve, Je, ft, It) {
|
19473
19473
|
return ve && (ve[Je] || ve(G, q)) || ft[Je].slice(0, It);
|
19474
19474
|
}, xe = function(ve) {
|
19475
19475
|
return Y.s(ne % 12 || 12, ve, "0");
|
@@ -19527,16 +19527,16 @@ function DT() {
|
|
19527
19527
|
case "SSS":
|
19528
19528
|
return Y.s(G.$ms, 3, "0");
|
19529
19529
|
case "Z":
|
19530
|
-
return
|
19530
|
+
return E;
|
19531
19531
|
}
|
19532
19532
|
return null;
|
19533
|
-
}(ve) ||
|
19533
|
+
}(ve) || E.replace(":", "");
|
19534
19534
|
});
|
19535
19535
|
}, w.utcOffset = function() {
|
19536
19536
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
19537
19537
|
}, w.diff = function(B, G, j) {
|
19538
|
-
var q,
|
19539
|
-
return Y.m(
|
19538
|
+
var q, E = this, ne = Y.p(G), le = te(B), x = (le.utcOffset() - this.utcOffset()) * r, se = this - le, ye = function() {
|
19539
|
+
return Y.m(E, le);
|
19540
19540
|
};
|
19541
19541
|
switch (ne) {
|
19542
19542
|
case h:
|
@@ -19587,7 +19587,7 @@ function DT() {
|
|
19587
19587
|
return this.$d.toUTCString();
|
19588
19588
|
}, I;
|
19589
19589
|
}(), L = V.prototype;
|
19590
|
-
return te.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D",
|
19590
|
+
return te.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", b]].forEach(function(I) {
|
19591
19591
|
L[I[1]] = function(w) {
|
19592
19592
|
return this.$g(w, I[0], I[1]);
|
19593
19593
|
};
|
@@ -19655,7 +19655,7 @@ function tu({
|
|
19655
19655
|
userTrackingName: s = "clicked"
|
19656
19656
|
}) {
|
19657
19657
|
var g, P, M, W;
|
19658
|
-
const [l, c] = ce(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = oe(Ye),
|
19658
|
+
const [l, c] = ce(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = oe(Ye), b = st(
|
19659
19659
|
(R) => {
|
19660
19660
|
var _, N, $, H;
|
19661
19661
|
((_ = R == null ? void 0 : R.data) == null ? void 0 : _.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (N = window == null ? void 0 : window.OnetrustActiveGroups) != null && N.includes("C0003")) && lt.set(`${f}-live-chat-open`, 1, {
|
@@ -19679,18 +19679,18 @@ function tu({
|
|
19679
19679
|
}, 3e3)), ($ = h == null ? void 0 : h.liveChat) != null && $.enabled && !((H = h == null ? void 0 : h.liveChat) != null && H.useOwnChat) && (window.Five9ChatPlugin || (R = document.createElement("script"), R.type = "text/javascript", R.src = (te = h == null ? void 0 : h.liveChat) == null ? void 0 : te.sourceCode, R.async = !0, R.onload = () => {
|
19680
19680
|
var Y;
|
19681
19681
|
window.Five9ChatPlugin((Y = h == null ? void 0 : h.liveChat) == null ? void 0 : Y.options);
|
19682
|
-
}, document.body.appendChild(R)), window.addEventListener("message",
|
19682
|
+
}, document.body.appendChild(R)), window.addEventListener("message", b), window.addEventListener("message", m), _ = setTimeout(() => {
|
19683
19683
|
c(!1);
|
19684
19684
|
}, 3e3)), () => {
|
19685
19685
|
var Y;
|
19686
|
-
(Y = h == null ? void 0 : h.liveChat) != null && Y.enabled && (window.removeEventListener("message",
|
19686
|
+
(Y = h == null ? void 0 : h.liveChat) != null && Y.enabled && (window.removeEventListener("message", b), window.removeEventListener("message", m), clearTimeout(_));
|
19687
19687
|
};
|
19688
19688
|
}, [
|
19689
19689
|
(g = h == null ? void 0 : h.liveChat) == null ? void 0 : g.enabled,
|
19690
19690
|
(P = h == null ? void 0 : h.liveChat) == null ? void 0 : P.options,
|
19691
19691
|
(M = h == null ? void 0 : h.liveChat) == null ? void 0 : M.sourceCode,
|
19692
19692
|
(W = h == null ? void 0 : h.liveChat) == null ? void 0 : W.useOwnChat,
|
19693
|
-
|
19693
|
+
b,
|
19694
19694
|
m
|
19695
19695
|
]);
|
19696
19696
|
const y = () => {
|
@@ -19759,8 +19759,8 @@ const id = ({ children: e, id: t, link: n }) => {
|
|
19759
19759
|
return O0(() => {
|
19760
19760
|
if (a && u.current && r.current) {
|
19761
19761
|
const p = u.current.getBoundingClientRect(), h = r.current.getBoundingClientRect();
|
19762
|
-
let
|
19763
|
-
p.right > h.right ? (
|
19762
|
+
let b = 0;
|
19763
|
+
p.right > h.right ? (b = h.right - p.right - 2, u.current.style.transform = `translateX(${b}px)`) : u.current.style.transform = "translateX(-50%)";
|
19764
19764
|
}
|
19765
19765
|
}, [a, r]), yt.cloneElement(e, {
|
19766
19766
|
"aria-describedby": t,
|
@@ -19922,7 +19922,7 @@ const zT = () => /* @__PURE__ */ S.jsx(
|
|
19922
19922
|
)
|
19923
19923
|
}
|
19924
19924
|
), od = ({ src: e, alt: t, ...n }) => {
|
19925
|
-
const { streaming: r } = oe(
|
19925
|
+
const { streaming: r } = oe(Ke), a = nt(null), [i, u] = ce(!1), [s, l] = ce(!1);
|
19926
19926
|
return Ne(() => {
|
19927
19927
|
const c = a.current;
|
19928
19928
|
if (!c) return;
|
@@ -20076,13 +20076,13 @@ const WT = (e) => ({
|
|
20076
20076
|
toolCall: l
|
20077
20077
|
}) => {
|
20078
20078
|
var N;
|
20079
|
-
const { streaming: c } = oe(
|
20079
|
+
const { streaming: c } = oe(Ke), { primaryColor: d, conversationScreen: f } = oe(Ye), {
|
20080
20080
|
content: p,
|
20081
20081
|
disableFeedback: h,
|
20082
|
-
liveAgent:
|
20082
|
+
liveAgent: b,
|
20083
20083
|
role: m = Ie.ASSISTANT,
|
20084
20084
|
timestamp: y
|
20085
|
-
} = n ?? {}, g = m === Ie.TOOL ? Ie.ASSISTANT : m, P =
|
20085
|
+
} = n ?? {}, g = m === Ie.TOOL ? Ie.ASSISTANT : m, P = b || l === Fs.ESCALATE_TO_AN_AGENT, M = !P && !!p, W = cn(
|
20086
20086
|
() => {
|
20087
20087
|
var $;
|
20088
20088
|
return KT(
|
@@ -20226,14 +20226,14 @@ au.propTypes = {
|
|
20226
20226
|
};
|
20227
20227
|
au.displayName = "NotificationMessage";
|
20228
20228
|
function ld({ disableScroll: e }) {
|
20229
|
-
const t = nt(null)
|
20229
|
+
const t = nt(null);
|
20230
20230
|
return Ne(() => {
|
20231
|
-
var
|
20232
|
-
e || (
|
20231
|
+
var n;
|
20232
|
+
e || (n = t.current) == null || n.scrollIntoView({
|
20233
20233
|
behavior: "smooth",
|
20234
20234
|
block: "end"
|
20235
20235
|
});
|
20236
|
-
}, [e]),
|
20236
|
+
}, [e]), /* @__PURE__ */ S.jsx(
|
20237
20237
|
"div",
|
20238
20238
|
{
|
20239
20239
|
"aria-label": "Loading messages",
|
@@ -20261,10 +20261,10 @@ const oa = ({
|
|
20261
20261
|
setLiveChatOpen: i = null,
|
20262
20262
|
submitEvent: u = null
|
20263
20263
|
}) => {
|
20264
|
-
const { disableScroll: s, hasError: l } = oe(
|
20265
|
-
() => n.reduce((
|
20266
|
-
|
20267
|
-
}),
|
20264
|
+
const { disableScroll: s, hasError: l, streaming: c } = oe(Ke), d = nt(null), f = cn(
|
20265
|
+
() => n.reduce((p, h) => (h.toolCalls && h.toolCalls.forEach(({ function: b, id: m }) => {
|
20266
|
+
p[m] = b == null ? void 0 : b.name;
|
20267
|
+
}), p), {}),
|
20268
20268
|
[n]
|
20269
20269
|
);
|
20270
20270
|
return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
@@ -20278,39 +20278,39 @@ const oa = ({
|
|
20278
20278
|
"aria-label": "Chat conversation",
|
20279
20279
|
"aria-busy": t,
|
20280
20280
|
style: { display: "flex", flexDirection: "column" },
|
20281
|
-
children: n.map((
|
20282
|
-
const { role:
|
20283
|
-
if (
|
20284
|
-
return /* @__PURE__ */ S.jsx(ui, { content:
|
20285
|
-
if (
|
20286
|
-
return /* @__PURE__ */ S.jsx(au, { message:
|
20281
|
+
children: n.map((p, h) => {
|
20282
|
+
const { role: b } = p, m = `${b}-${h}`;
|
20283
|
+
if (b === Ie.ERROR)
|
20284
|
+
return /* @__PURE__ */ S.jsx(ui, { content: p == null ? void 0 : p.content }, m);
|
20285
|
+
if (b === Ie.NOTIFICATION)
|
20286
|
+
return /* @__PURE__ */ S.jsx(au, { message: p }, m);
|
20287
20287
|
if (![
|
20288
20288
|
Ie.AGENT,
|
20289
20289
|
Ie.ASSISTANT,
|
20290
20290
|
Ie.INFO,
|
20291
20291
|
Ie.TOOL,
|
20292
20292
|
Ie.USER
|
20293
|
-
].includes(
|
20294
|
-
const
|
20293
|
+
].includes(b) || !p.content) return null;
|
20294
|
+
const y = f[p.toolCallId];
|
20295
20295
|
return /* @__PURE__ */ S.jsx(
|
20296
20296
|
sd,
|
20297
20297
|
{
|
20298
|
-
index:
|
20298
|
+
index: h,
|
20299
20299
|
isTestUser: e,
|
20300
|
-
message:
|
20301
|
-
messageRef:
|
20300
|
+
message: p,
|
20301
|
+
messageRef: d,
|
20302
20302
|
setLiveChatOpen: i,
|
20303
20303
|
submitEvent: u,
|
20304
|
-
toolCall:
|
20304
|
+
toolCall: y,
|
20305
20305
|
onFeedbackThumbSelection: r,
|
20306
20306
|
onMessageLinkClicked: a
|
20307
20307
|
},
|
20308
|
-
|
20308
|
+
m
|
20309
20309
|
);
|
20310
20310
|
})
|
20311
20311
|
}
|
20312
20312
|
),
|
20313
|
-
t && /* @__PURE__ */ S.jsx(ld, { disableScroll: s }),
|
20313
|
+
t && !c && /* @__PURE__ */ S.jsx(ld, { disableScroll: s }),
|
20314
20314
|
l && /* @__PURE__ */ S.jsx(ui, {})
|
20315
20315
|
] });
|
20316
20316
|
};
|
@@ -20378,7 +20378,7 @@ const cd = () => {
|
|
20378
20378
|
cd.displayName = "MaintenanceBanner";
|
20379
20379
|
const iu = ({ onPromptClick: e }) => {
|
20380
20380
|
var s;
|
20381
|
-
const { primaryColor: t, conversationScreen: n } = oe(Ye), { deleteConversationModal: r } = oe(Zt), { loading: a, streaming: i } = oe(
|
20381
|
+
const { primaryColor: t, conversationScreen: n } = oe(Ye), { deleteConversationModal: r } = oe(Zt), { loading: a, streaming: i } = oe(Ke), u = a || i;
|
20382
20382
|
return /* @__PURE__ */ S.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
|
20383
20383
|
/* @__PURE__ */ S.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
20384
20384
|
(s = n == null ? void 0 : n.prompts) == null ? void 0 : s.map((l) => {
|
@@ -20409,7 +20409,7 @@ iu.propTypes = {
|
|
20409
20409
|
};
|
20410
20410
|
iu.displayName = "PromptList";
|
20411
20411
|
const dd = ({ chatContentRef: e, messages: t }) => {
|
20412
|
-
const { loading: n, streaming: r } = oe(
|
20412
|
+
const { loading: n, streaming: r } = oe(Ke), [a, i] = ce(!1), u = nt(null), s = st(() => {
|
20413
20413
|
if (!e.current) return;
|
20414
20414
|
const { scrollTop: c, scrollHeight: d, clientHeight: f } = e.current, p = c + f >= d - 10;
|
20415
20415
|
i(!p);
|
@@ -20454,7 +20454,7 @@ function fd({
|
|
20454
20454
|
submitEvent: u = null
|
20455
20455
|
}) {
|
20456
20456
|
var y, g;
|
20457
|
-
const { conversationScreen: s, disclaimer: l } = oe(Ye), { deleteConversationModal: c, xpertMessages: d } = oe(Zt), { loading: f, setMode: p, mode: h } = oe(
|
20457
|
+
const { conversationScreen: s, disclaimer: l } = oe(Ye), { deleteConversationModal: c, xpertMessages: d } = oe(Zt), { loading: f, setMode: p, mode: h } = oe(Ke), b = nt(null), m = (P) => {
|
20458
20458
|
s.liveChat.useOwnChat ? p(vt.LIVECHAT) : i(P);
|
20459
20459
|
};
|
20460
20460
|
return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
@@ -20467,7 +20467,7 @@ function fd({
|
|
20467
20467
|
overscrollBehavior: "contain",
|
20468
20468
|
position: "relative"
|
20469
20469
|
},
|
20470
|
-
ref:
|
20470
|
+
ref: b,
|
20471
20471
|
children: [
|
20472
20472
|
(l == null ? void 0 : l.text) && /* @__PURE__ */ S.jsx(tl, {}),
|
20473
20473
|
((y = s == null ? void 0 : s.prompts) == null ? void 0 : y.length) > 0 && /* @__PURE__ */ S.jsx(iu, { onPromptClick: n }),
|
@@ -20530,7 +20530,7 @@ function fd({
|
|
20530
20530
|
/* @__PURE__ */ S.jsx(
|
20531
20531
|
dd,
|
20532
20532
|
{
|
20533
|
-
chatContentRef:
|
20533
|
+
chatContentRef: b,
|
20534
20534
|
messages: d
|
20535
20535
|
}
|
20536
20536
|
)
|
@@ -20630,13 +20630,13 @@ function hd() {
|
|
20630
20630
|
}).current : r.current;
|
20631
20631
|
}
|
20632
20632
|
function n(r, a, i) {
|
20633
|
-
var u = i || {}, s = u.interval, l = s === void 0 ? e.DEFAULT_HEARTBEAT.interval : s, c = u.timeout, d = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, f = u.message, p = f === void 0 ? e.DEFAULT_HEARTBEAT.message : f, h = Math.max(100, l / 10),
|
20633
|
+
var u = i || {}, s = u.interval, l = s === void 0 ? e.DEFAULT_HEARTBEAT.interval : s, c = u.timeout, d = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, f = u.message, p = f === void 0 ? e.DEFAULT_HEARTBEAT.message : f, h = Math.max(100, l / 10), b = Date.now(), m = setInterval(function() {
|
20634
20634
|
var y = Date.now(), g = t(a);
|
20635
20635
|
if (g + d <= y)
|
20636
|
-
console.warn("Heartbeat timed out, closing connection, last message received ".concat(y - g, "ms ago, last ping sent ").concat(y -
|
20637
|
-
else if (g + l <= y &&
|
20636
|
+
console.warn("Heartbeat timed out, closing connection, last message received ".concat(y - g, "ms ago, last ping sent ").concat(y - b, "ms ago")), r.close();
|
20637
|
+
else if (g + l <= y && b + l <= y)
|
20638
20638
|
try {
|
20639
|
-
typeof p == "function" ? r.send(p()) : r.send(p),
|
20639
|
+
typeof p == "function" ? r.send(p()) : r.send(p), b = y;
|
20640
20640
|
} catch (P) {
|
20641
20641
|
console.error("Heartbeat failed, closing connection", P instanceof Error ? P.message : P), r.close();
|
20642
20642
|
}
|
@@ -20701,25 +20701,25 @@ function ZT() {
|
|
20701
20701
|
return e = Object.assign || function(d) {
|
20702
20702
|
for (var f, p = 1, h = arguments.length; p < h; p++) {
|
20703
20703
|
f = arguments[p];
|
20704
|
-
for (var
|
20704
|
+
for (var b in f) Object.prototype.hasOwnProperty.call(f, b) && (d[b] = f[b]);
|
20705
20705
|
}
|
20706
20706
|
return d;
|
20707
20707
|
}, e.apply(this, arguments);
|
20708
20708
|
};
|
20709
20709
|
Object.defineProperty(an, "__esModule", { value: !0 }), an.attachListeners = void 0;
|
20710
20710
|
var t = ou(), n = hd(), r = Ft(), a = lu(), i = function(d, f, p, h) {
|
20711
|
-
d.onmessage = function(
|
20711
|
+
d.onmessage = function(b) {
|
20712
20712
|
var m;
|
20713
|
-
f.current.onMessage && f.current.onMessage(
|
20713
|
+
f.current.onMessage && f.current.onMessage(b), typeof (h == null ? void 0 : h.current) == "number" && (h.current = Date.now()), !(typeof f.current.filter == "function" && f.current.filter(b) !== !0) && (f.current.heartbeat && typeof f.current.heartbeat != "boolean" && ((m = f.current.heartbeat) === null || m === void 0 ? void 0 : m.returnMessage) === b.data || p(b));
|
20714
20714
|
};
|
20715
|
-
}, u = function(d, f, p, h,
|
20715
|
+
}, u = function(d, f, p, h, b) {
|
20716
20716
|
d.onopen = function(m) {
|
20717
20717
|
if (f.current.onOpen && f.current.onOpen(m), h.current = 0, p(r.ReadyState.OPEN), f.current.heartbeat && d instanceof WebSocket) {
|
20718
20718
|
var y = typeof f.current.heartbeat == "boolean" ? void 0 : f.current.heartbeat;
|
20719
|
-
|
20719
|
+
b.current = Date.now(), (0, n.heartbeat)(d, b, y);
|
20720
20720
|
}
|
20721
20721
|
};
|
20722
|
-
}, s = function(d, f, p, h,
|
20722
|
+
}, s = function(d, f, p, h, b) {
|
20723
20723
|
if (r.isEventSourceSupported && d instanceof EventSource)
|
20724
20724
|
return function() {
|
20725
20725
|
};
|
@@ -20729,10 +20729,10 @@ function ZT() {
|
|
20729
20729
|
var g;
|
20730
20730
|
if (f.current.onClose && f.current.onClose(y), p(r.ReadyState.CLOSED), f.current.shouldReconnect && f.current.shouldReconnect(y)) {
|
20731
20731
|
var P = (g = f.current.reconnectAttempts) !== null && g !== void 0 ? g : r.DEFAULT_RECONNECT_LIMIT;
|
20732
|
-
if (
|
20733
|
-
var M = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(
|
20732
|
+
if (b.current < P) {
|
20733
|
+
var M = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(b.current) : f.current.reconnectInterval;
|
20734
20734
|
m = window.setTimeout(function() {
|
20735
|
-
|
20735
|
+
b.current++, h();
|
20736
20736
|
}, M ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
|
20737
20737
|
} else
|
20738
20738
|
f.current.onReconnectStop && f.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
|
@@ -20740,24 +20740,24 @@ function ZT() {
|
|
20740
20740
|
}, function() {
|
20741
20741
|
return m && window.clearTimeout(m);
|
20742
20742
|
};
|
20743
|
-
}, l = function(d, f, p, h,
|
20743
|
+
}, l = function(d, f, p, h, b) {
|
20744
20744
|
var m;
|
20745
20745
|
return d.onerror = function(y) {
|
20746
20746
|
var g;
|
20747
20747
|
if (f.current.onError && f.current.onError(y), r.isEventSourceSupported && d instanceof EventSource && (f.current.onClose && f.current.onClose(e(e({}, y), { code: 1006, reason: "An error occurred with the EventSource: ".concat(y), wasClean: !1 })), p(r.ReadyState.CLOSED), d.close()), f.current.retryOnError)
|
20748
|
-
if (
|
20749
|
-
var P = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(
|
20748
|
+
if (b.current < ((g = f.current.reconnectAttempts) !== null && g !== void 0 ? g : r.DEFAULT_RECONNECT_LIMIT)) {
|
20749
|
+
var P = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(b.current) : f.current.reconnectInterval;
|
20750
20750
|
m = window.setTimeout(function() {
|
20751
|
-
|
20751
|
+
b.current++, h();
|
20752
20752
|
}, P ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
|
20753
20753
|
} else
|
20754
20754
|
f.current.onReconnectStop && f.current.onReconnectStop(f.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(f.current.reconnectAttempts, " exceeded"));
|
20755
20755
|
}, function() {
|
20756
20756
|
return m && window.clearTimeout(m);
|
20757
20757
|
};
|
20758
|
-
}, c = function(d, f, p, h,
|
20758
|
+
}, c = function(d, f, p, h, b, m, y) {
|
20759
20759
|
var g = f.setLastMessage, P = f.setReadyState, M, W, R;
|
20760
|
-
return p.current.fromSocketIO && (M = (0, t.setUpSocketIOPing)(y)), i(d, p, g, m), u(d, p, P,
|
20760
|
+
return p.current.fromSocketIO && (M = (0, t.setUpSocketIOPing)(y)), i(d, p, g, m), u(d, p, P, b, m), W = s(d, p, P, h, b), R = l(d, p, P, h, b), function() {
|
20761
20761
|
P(r.ReadyState.CLOSING), W(), R(), d.close(), M && clearInterval(M);
|
20762
20762
|
};
|
20763
20763
|
};
|
@@ -20769,7 +20769,7 @@ function JT() {
|
|
20769
20769
|
ys = 1;
|
20770
20770
|
var e = un && un.__assign || function() {
|
20771
20771
|
return e = Object.assign || function(f) {
|
20772
|
-
for (var p, h = 1,
|
20772
|
+
for (var p, h = 1, b = arguments.length; h < b; h++) {
|
20773
20773
|
p = arguments[h];
|
20774
20774
|
for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (f[m] = p[m]);
|
20775
20775
|
}
|
@@ -20778,48 +20778,48 @@ function JT() {
|
|
20778
20778
|
};
|
20779
20779
|
Object.defineProperty(un, "__esModule", { value: !0 }), un.attachSharedListeners = void 0;
|
20780
20780
|
var t = uu(), n = Ft(), r = su(), a = ou(), i = hd(), u = function(f, p, h) {
|
20781
|
-
f.onmessage = function(
|
20781
|
+
f.onmessage = function(b) {
|
20782
20782
|
(0, r.getSubscribers)(p).forEach(function(m) {
|
20783
20783
|
var y;
|
20784
|
-
m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(
|
20784
|
+
m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(b), typeof ((y = m == null ? void 0 : m.lastMessageTime) === null || y === void 0 ? void 0 : y.current) == "number" && (m.lastMessageTime.current = Date.now()), !(typeof m.optionsRef.current.filter == "function" && m.optionsRef.current.filter(b) !== !0) && (h && typeof h != "boolean" && (h == null ? void 0 : h.returnMessage) === b.data || m.setLastMessage(b));
|
20785
20785
|
});
|
20786
20786
|
};
|
20787
20787
|
}, s = function(f, p, h) {
|
20788
|
-
f.onopen = function(
|
20788
|
+
f.onopen = function(b) {
|
20789
20789
|
var m = (0, r.getSubscribers)(p);
|
20790
20790
|
m.forEach(function(y) {
|
20791
|
-
y.reconnectCount.current = 0, y.optionsRef.current.onOpen && y.optionsRef.current.onOpen(
|
20791
|
+
y.reconnectCount.current = 0, y.optionsRef.current.onOpen && y.optionsRef.current.onOpen(b), y.setReadyState(n.ReadyState.OPEN), h && f instanceof WebSocket && (y.lastMessageTime.current = Date.now());
|
20792
20792
|
}), h && f instanceof WebSocket && (0, i.heartbeat)(f, m.map(function(y) {
|
20793
20793
|
return y.lastMessageTime;
|
20794
20794
|
}), typeof h == "boolean" ? void 0 : h);
|
20795
20795
|
};
|
20796
20796
|
}, l = function(f, p) {
|
20797
20797
|
f instanceof WebSocket && (f.onclose = function(h) {
|
20798
|
-
(0, r.getSubscribers)(p).forEach(function(
|
20799
|
-
|
20800
|
-
}), delete t.sharedWebSockets[p], (0, r.getSubscribers)(p).forEach(function(
|
20798
|
+
(0, r.getSubscribers)(p).forEach(function(b) {
|
20799
|
+
b.optionsRef.current.onClose && b.optionsRef.current.onClose(h), b.setReadyState(n.ReadyState.CLOSED);
|
20800
|
+
}), delete t.sharedWebSockets[p], (0, r.getSubscribers)(p).forEach(function(b) {
|
20801
20801
|
var m;
|
20802
|
-
if (
|
20803
|
-
var y = (m =
|
20804
|
-
if (
|
20805
|
-
var g = typeof
|
20802
|
+
if (b.optionsRef.current.shouldReconnect && b.optionsRef.current.shouldReconnect(h)) {
|
20803
|
+
var y = (m = b.optionsRef.current.reconnectAttempts) !== null && m !== void 0 ? m : n.DEFAULT_RECONNECT_LIMIT;
|
20804
|
+
if (b.reconnectCount.current < y) {
|
20805
|
+
var g = typeof b.optionsRef.current.reconnectInterval == "function" ? b.optionsRef.current.reconnectInterval(b.reconnectCount.current) : b.optionsRef.current.reconnectInterval;
|
20806
20806
|
setTimeout(function() {
|
20807
|
-
|
20807
|
+
b.reconnectCount.current++, b.reconnect.current();
|
20808
20808
|
}, g ?? n.DEFAULT_RECONNECT_INTERVAL_MS);
|
20809
20809
|
} else
|
20810
|
-
|
20810
|
+
b.optionsRef.current.onReconnectStop && b.optionsRef.current.onReconnectStop(b.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(y, " exceeded"));
|
20811
20811
|
}
|
20812
20812
|
});
|
20813
20813
|
});
|
20814
20814
|
}, c = function(f, p) {
|
20815
20815
|
f.onerror = function(h) {
|
20816
|
-
(0, r.getSubscribers)(p).forEach(function(
|
20817
|
-
|
20816
|
+
(0, r.getSubscribers)(p).forEach(function(b) {
|
20817
|
+
b.optionsRef.current.onError && b.optionsRef.current.onError(h), n.isEventSourceSupported && f instanceof EventSource && (b.optionsRef.current.onClose && b.optionsRef.current.onClose(e(e({}, h), { code: 1006, reason: "An error occurred with the EventSource: ".concat(h), wasClean: !1 })), b.setReadyState(n.ReadyState.CLOSED));
|
20818
20818
|
}), n.isEventSourceSupported && f instanceof EventSource && f.close();
|
20819
20819
|
};
|
20820
|
-
}, d = function(f, p, h,
|
20820
|
+
}, d = function(f, p, h, b) {
|
20821
20821
|
var m;
|
20822
|
-
return h.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(
|
20822
|
+
return h.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(b)), u(f, p, h.current.heartbeat), l(f, p), s(f, p, h.current.heartbeat), c(f, p), function() {
|
20823
20823
|
m && clearInterval(m);
|
20824
20824
|
};
|
20825
20825
|
};
|
@@ -20842,7 +20842,7 @@ function e3() {
|
|
20842
20842
|
f && f(), delete e.sharedWebSockets[s];
|
20843
20843
|
}
|
20844
20844
|
};
|
20845
|
-
}, u = function(s, l, c, d, f, p, h,
|
20845
|
+
}, u = function(s, l, c, d, f, p, h, b, m) {
|
20846
20846
|
if (!t.isEventSourceSupported && d.current.eventSourceOptions)
|
20847
20847
|
throw t.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
20848
20848
|
if (d.current.share) {
|
@@ -20853,7 +20853,7 @@ function e3() {
|
|
20853
20853
|
setReadyState: c,
|
20854
20854
|
optionsRef: d,
|
20855
20855
|
reconnectCount: h,
|
20856
|
-
lastMessageTime:
|
20856
|
+
lastMessageTime: b,
|
20857
20857
|
reconnect: p
|
20858
20858
|
};
|
20859
20859
|
return (0, a.addSubscriber)(l, g), i(l, g, d, c, y);
|
@@ -20863,7 +20863,7 @@ function e3() {
|
|
20863
20863
|
return (0, n.attachListeners)(s.current, {
|
20864
20864
|
setLastMessage: f,
|
20865
20865
|
setReadyState: c
|
20866
|
-
}, d, p.current, h,
|
20866
|
+
}, d, p.current, h, b, m);
|
20867
20867
|
}
|
20868
20868
|
};
|
20869
20869
|
return Qn.createOrJoinSocket = u, Qn;
|
@@ -20873,23 +20873,23 @@ function t3() {
|
|
20873
20873
|
return Cs || (Cs = 1, function(e) {
|
20874
20874
|
var t = qt && qt.__awaiter || function(l, c, d, f) {
|
20875
20875
|
function p(h) {
|
20876
|
-
return h instanceof d ? h : new d(function(
|
20877
|
-
|
20876
|
+
return h instanceof d ? h : new d(function(b) {
|
20877
|
+
b(h);
|
20878
20878
|
});
|
20879
20879
|
}
|
20880
|
-
return new (d || (d = Promise))(function(h,
|
20880
|
+
return new (d || (d = Promise))(function(h, b) {
|
20881
20881
|
function m(P) {
|
20882
20882
|
try {
|
20883
20883
|
g(f.next(P));
|
20884
20884
|
} catch (M) {
|
20885
|
-
|
20885
|
+
b(M);
|
20886
20886
|
}
|
20887
20887
|
}
|
20888
20888
|
function y(P) {
|
20889
20889
|
try {
|
20890
20890
|
g(f.throw(P));
|
20891
20891
|
} catch (M) {
|
20892
|
-
|
20892
|
+
b(M);
|
20893
20893
|
}
|
20894
20894
|
}
|
20895
20895
|
function g(P) {
|
@@ -20901,10 +20901,10 @@ function t3() {
|
|
20901
20901
|
var d = { label: 0, sent: function() {
|
20902
20902
|
if (h[0] & 1) throw h[1];
|
20903
20903
|
return h[1];
|
20904
|
-
}, trys: [], ops: [] }, f, p, h,
|
20905
|
-
return
|
20904
|
+
}, trys: [], ops: [] }, f, p, h, b = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
20905
|
+
return b.next = m(0), b.throw = m(1), b.return = m(2), typeof Symbol == "function" && (b[Symbol.iterator] = function() {
|
20906
20906
|
return this;
|
20907
|
-
}),
|
20907
|
+
}), b;
|
20908
20908
|
function m(g) {
|
20909
20909
|
return function(P) {
|
20910
20910
|
return y([g, P]);
|
@@ -20912,7 +20912,7 @@ function t3() {
|
|
20912
20912
|
}
|
20913
20913
|
function y(g) {
|
20914
20914
|
if (f) throw new TypeError("Generator is already executing.");
|
20915
|
-
for (;
|
20915
|
+
for (; b && (b = 0, g[0] && (d = 0)), d; ) try {
|
20916
20916
|
if (f = 1, p && (h = g[0] & 2 ? p.return : g[0] ? p.throw || ((h = p.return) && h.call(p), 0) : p.next) && !(h = h.call(p, g[1])).done) return h;
|
20917
20917
|
switch (p = 0, h && (g = [g[0] & 2, h.value]), g[0]) {
|
20918
20918
|
case 0:
|
@@ -20969,9 +20969,9 @@ function t3() {
|
|
20969
20969
|
}, s = function(l, c) {
|
20970
20970
|
for (var d = [], f = 2; f < arguments.length; f++)
|
20971
20971
|
d[f - 2] = arguments[f];
|
20972
|
-
return t(void 0, r([l, c], d, !0), void 0, function(p, h,
|
20972
|
+
return t(void 0, r([l, c], d, !0), void 0, function(p, h, b) {
|
20973
20973
|
var m, y, g, P, M, W, R, _;
|
20974
|
-
return
|
20974
|
+
return b === void 0 && (b = 0), n(this, function(N) {
|
20975
20975
|
switch (N.label) {
|
20976
20976
|
case 0:
|
20977
20977
|
if (typeof p != "function") return [3, 10];
|
@@ -20981,11 +20981,11 @@ function t3() {
|
|
20981
20981
|
case 2:
|
20982
20982
|
return m = N.sent(), [3, 9];
|
20983
20983
|
case 3:
|
20984
|
-
return N.sent(), h.current.retryOnError ? (y = (W = h.current.reconnectAttempts) !== null && W !== void 0 ? W : i.DEFAULT_RECONNECT_LIMIT,
|
20984
|
+
return N.sent(), h.current.retryOnError ? (y = (W = h.current.reconnectAttempts) !== null && W !== void 0 ? W : i.DEFAULT_RECONNECT_LIMIT, b < y ? (g = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(b) : h.current.reconnectInterval, [4, u(g ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
20985
20985
|
case 4:
|
20986
|
-
return N.sent(), [2, (0, e.getUrl)(p, h,
|
20986
|
+
return N.sent(), [2, (0, e.getUrl)(p, h, b + 1)];
|
20987
20987
|
case 5:
|
20988
|
-
return (_ = (R = h.current).onReconnectStop) === null || _ === void 0 || _.call(R,
|
20988
|
+
return (_ = (R = h.current).onReconnectStop) === null || _ === void 0 || _.call(R, b), [2, null];
|
20989
20989
|
case 6:
|
20990
20990
|
return [3, 8];
|
20991
20991
|
case 7:
|
@@ -21030,19 +21030,19 @@ function cu() {
|
|
21030
21030
|
Ss = 1;
|
21031
21031
|
var e = pt && pt.__assign || function() {
|
21032
21032
|
return e = Object.assign || function(p) {
|
21033
|
-
for (var h,
|
21034
|
-
h = arguments[
|
21033
|
+
for (var h, b = 1, m = arguments.length; b < m; b++) {
|
21034
|
+
h = arguments[b];
|
21035
21035
|
for (var y in h) Object.prototype.hasOwnProperty.call(h, y) && (p[y] = h[y]);
|
21036
21036
|
}
|
21037
21037
|
return p;
|
21038
21038
|
}, e.apply(this, arguments);
|
21039
|
-
}, t = pt && pt.__awaiter || function(p, h,
|
21039
|
+
}, t = pt && pt.__awaiter || function(p, h, b, m) {
|
21040
21040
|
function y(g) {
|
21041
|
-
return g instanceof
|
21041
|
+
return g instanceof b ? g : new b(function(P) {
|
21042
21042
|
P(g);
|
21043
21043
|
});
|
21044
21044
|
}
|
21045
|
-
return new (
|
21045
|
+
return new (b || (b = Promise))(function(g, P) {
|
21046
21046
|
function M(_) {
|
21047
21047
|
try {
|
21048
21048
|
R(m.next(_));
|
@@ -21063,7 +21063,7 @@ function cu() {
|
|
21063
21063
|
R((m = m.apply(p, h || [])).next());
|
21064
21064
|
});
|
21065
21065
|
}, n = pt && pt.__generator || function(p, h) {
|
21066
|
-
var
|
21066
|
+
var b = { label: 0, sent: function() {
|
21067
21067
|
if (g[0] & 1) throw g[1];
|
21068
21068
|
return g[1];
|
21069
21069
|
}, trys: [], ops: [] }, m, y, g, P = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
@@ -21077,7 +21077,7 @@ function cu() {
|
|
21077
21077
|
}
|
21078
21078
|
function W(R) {
|
21079
21079
|
if (m) throw new TypeError("Generator is already executing.");
|
21080
|
-
for (; P && (P = 0, R[0] && (
|
21080
|
+
for (; P && (P = 0, R[0] && (b = 0)), b; ) try {
|
21081
21081
|
if (m = 1, y && (g = R[0] & 2 ? y.return : R[0] ? y.throw || ((g = y.return) && g.call(y), 0) : y.next) && !(g = g.call(y, R[1])).done) return g;
|
21082
21082
|
switch (y = 0, g && (R = [R[0] & 2, g.value]), R[0]) {
|
21083
21083
|
case 0:
|
@@ -21085,34 +21085,34 @@ function cu() {
|
|
21085
21085
|
g = R;
|
21086
21086
|
break;
|
21087
21087
|
case 4:
|
21088
|
-
return
|
21088
|
+
return b.label++, { value: R[1], done: !1 };
|
21089
21089
|
case 5:
|
21090
|
-
|
21090
|
+
b.label++, y = R[1], R = [0];
|
21091
21091
|
continue;
|
21092
21092
|
case 7:
|
21093
|
-
R =
|
21093
|
+
R = b.ops.pop(), b.trys.pop();
|
21094
21094
|
continue;
|
21095
21095
|
default:
|
21096
|
-
if (g =
|
21097
|
-
|
21096
|
+
if (g = b.trys, !(g = g.length > 0 && g[g.length - 1]) && (R[0] === 6 || R[0] === 2)) {
|
21097
|
+
b = 0;
|
21098
21098
|
continue;
|
21099
21099
|
}
|
21100
21100
|
if (R[0] === 3 && (!g || R[1] > g[0] && R[1] < g[3])) {
|
21101
|
-
|
21101
|
+
b.label = R[1];
|
21102
21102
|
break;
|
21103
21103
|
}
|
21104
|
-
if (R[0] === 6 &&
|
21105
|
-
|
21104
|
+
if (R[0] === 6 && b.label < g[1]) {
|
21105
|
+
b.label = g[1], g = R;
|
21106
21106
|
break;
|
21107
21107
|
}
|
21108
|
-
if (g &&
|
21109
|
-
|
21108
|
+
if (g && b.label < g[2]) {
|
21109
|
+
b.label = g[2], b.ops.push(R);
|
21110
21110
|
break;
|
21111
21111
|
}
|
21112
|
-
g[2] &&
|
21112
|
+
g[2] && b.ops.pop(), b.trys.pop();
|
21113
21113
|
continue;
|
21114
21114
|
}
|
21115
|
-
R = h.call(p,
|
21115
|
+
R = h.call(p, b);
|
21116
21116
|
} catch (_) {
|
21117
21117
|
R = [6, _], y = 0;
|
21118
21118
|
} finally {
|
@@ -21125,8 +21125,8 @@ function cu() {
|
|
21125
21125
|
return p && p.__esModule ? p : { default: p };
|
21126
21126
|
};
|
21127
21127
|
Object.defineProperty(pt, "__esModule", { value: !0 }), pt.useWebSocket = void 0;
|
21128
|
-
var a = yt, i = w0, u = Ft(), s = e3(), l = t3(), c = r(n3()), d = lu(), f = function(p, h,
|
21129
|
-
h === void 0 && (h = u.DEFAULT_OPTIONS),
|
21128
|
+
var a = yt, i = w0, u = Ft(), s = e3(), l = t3(), c = r(n3()), d = lu(), f = function(p, h, b) {
|
21129
|
+
h === void 0 && (h = u.DEFAULT_OPTIONS), b === void 0 && (b = !0);
|
21130
21130
|
var m = (0, a.useState)(null), y = m[0], g = m[1], P = (0, a.useState)({}), M = P[0], W = P[1], R = (0, a.useMemo)(function() {
|
21131
21131
|
if (!h.disableJson && y)
|
21132
21132
|
try {
|
@@ -21138,21 +21138,21 @@ function cu() {
|
|
21138
21138
|
}, [y, h.disableJson]), _ = (0, a.useRef)(null), N = (0, a.useRef)(null), $ = (0, a.useRef)(function() {
|
21139
21139
|
}), H = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), V = (0, a.useRef)(null), L = (0, a.useRef)(h);
|
21140
21140
|
L.current = h;
|
21141
|
-
var I = _.current && M[_.current] !== void 0 ? M[_.current] : p !== null &&
|
21141
|
+
var I = _.current && M[_.current] !== void 0 ? M[_.current] : p !== null && b === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, w = h.queryParams ? JSON.stringify(h.queryParams) : null, B = (0, a.useCallback)(function(q, E) {
|
21142
21142
|
var ne;
|
21143
|
-
if (
|
21143
|
+
if (E === void 0 && (E = !0), u.isEventSourceSupported && N.current instanceof EventSource) {
|
21144
21144
|
console.warn("Unable to send a message from an eventSource");
|
21145
21145
|
return;
|
21146
21146
|
}
|
21147
|
-
((ne = N.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(N.current, L.current.skipAssert), N.current.send(q)) :
|
21148
|
-
}, []), G = (0, a.useCallback)(function(q,
|
21149
|
-
|
21147
|
+
((ne = N.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(N.current, L.current.skipAssert), N.current.send(q)) : E && Y.current.push(q);
|
21148
|
+
}, []), G = (0, a.useCallback)(function(q, E) {
|
21149
|
+
E === void 0 && (E = !0), B(JSON.stringify(q), E);
|
21150
21150
|
}, [B]), j = (0, a.useCallback)(function() {
|
21151
21151
|
return L.current.share !== !0 || u.isEventSourceSupported && N.current instanceof EventSource ? N.current : (V.current === null && N.current && ((0, d.assertIsWebSocket)(N.current, L.current.skipAssert), V.current = (0, c.default)(N.current, $)), V.current);
|
21152
21152
|
}, []);
|
21153
21153
|
return (0, a.useEffect)(function() {
|
21154
|
-
if (p !== null &&
|
21155
|
-
var q,
|
21154
|
+
if (p !== null && b === !0) {
|
21155
|
+
var q, E = !1, ne = !0, le = function() {
|
21156
21156
|
return t(void 0, void 0, void 0, function() {
|
21157
21157
|
var x, se, ye;
|
21158
21158
|
return n(this, function(me) {
|
@@ -21168,11 +21168,11 @@ function cu() {
|
|
21168
21168
|
2
|
21169
21169
|
/*return*/
|
21170
21170
|
]) : (se = function(Ae) {
|
21171
|
-
|
21171
|
+
E || (0, i.flushSync)(function() {
|
21172
21172
|
return g(Ae);
|
21173
21173
|
});
|
21174
21174
|
}, ye = function(Ae) {
|
21175
|
-
|
21175
|
+
E || (0, i.flushSync)(function() {
|
21176
21176
|
return W(function(xe) {
|
21177
21177
|
var je;
|
21178
21178
|
return e(e({}, xe), _.current && (je = {}, je[_.current] = Ae, je));
|
@@ -21187,15 +21187,15 @@ function cu() {
|
|
21187
21187
|
});
|
21188
21188
|
};
|
21189
21189
|
return $.current = function() {
|
21190
|
-
|
21190
|
+
E || (V.current && (V.current = null), q == null || q(), le());
|
21191
21191
|
}, le(), function() {
|
21192
|
-
|
21192
|
+
E = !0, ne = !1, V.current && (V.current = null), q == null || q(), g(null);
|
21193
21193
|
};
|
21194
|
-
} else (p === null ||
|
21194
|
+
} else (p === null || b === !1) && (H.current = 0, W(function(x) {
|
21195
21195
|
var se;
|
21196
21196
|
return e(e({}, x), _.current && (se = {}, se[_.current] = u.ReadyState.CLOSED, se));
|
21197
21197
|
}));
|
21198
|
-
}, [p,
|
21198
|
+
}, [p, b, w, B]), (0, a.useEffect)(function() {
|
21199
21199
|
I === u.ReadyState.OPEN && Y.current.splice(0).forEach(function(q) {
|
21200
21200
|
B(q);
|
21201
21201
|
});
|
@@ -21242,9 +21242,9 @@ function r3() {
|
|
21242
21242
|
l === void 0 && (l = r.DEFAULT_OPTIONS), c === void 0 && (c = !0);
|
21243
21243
|
var d = (0, t.useMemo)(function() {
|
21244
21244
|
return e(e({}, l), { fromSocketIO: !0 });
|
21245
|
-
}, []), f = (0, n.useWebSocket)(s, d, c), p = f.sendMessage, h = f.sendJsonMessage,
|
21246
|
-
return i(
|
21247
|
-
}, [
|
21245
|
+
}, []), f = (0, n.useWebSocket)(s, d, c), p = f.sendMessage, h = f.sendJsonMessage, b = f.lastMessage, m = f.readyState, y = f.getWebSocket, g = (0, t.useMemo)(function() {
|
21246
|
+
return i(b);
|
21247
|
+
}, [b]);
|
21248
21248
|
return {
|
21249
21249
|
sendMessage: p,
|
21250
21250
|
sendJsonMessage: h,
|
@@ -21285,7 +21285,7 @@ function a3() {
|
|
21285
21285
|
withCredentials: c
|
21286
21286
|
} }), h = (0, n.useRef)(a.EMPTY_EVENT_HANDLERS);
|
21287
21287
|
d && (h.current = d);
|
21288
|
-
var
|
21288
|
+
var b = (0, r.useWebSocket)(u, p, l), m = b.lastMessage, y = b.readyState, g = b.getWebSocket;
|
21289
21289
|
return (0, n.useEffect)(function() {
|
21290
21290
|
m != null && m.type && Object.entries(h.current).forEach(function(P) {
|
21291
21291
|
var M = P[0], W = P[1];
|
@@ -21346,15 +21346,15 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
|
|
21346
21346
|
CONVERSATION: "CONVERSATION",
|
21347
21347
|
FORM: "FORM"
|
21348
21348
|
}, En = Kr({}), pd = ({ children: e, liveChatPayload: t }) => {
|
21349
|
-
const { conversationScreen: n } = oe(Ye), { pushXpertMessage: r } = oe(Zt), { setHasError: a, setMode: i } = oe(
|
21350
|
-
const q = await s3(j.data), { conversation_id:
|
21349
|
+
const { conversationScreen: n } = oe(Ye), { pushXpertMessage: r } = oe(Zt), { setHasError: a, setMode: i } = oe(Ke), [u, s] = ce(""), [l, c] = ce(!1), [, d] = ce(""), [f, p] = ce([]), [h, b] = ce(null), [m, y] = ce($t.FORM), [g, P] = ce(null), M = (j) => p((q) => [...q, j]), W = async (j) => {
|
21350
|
+
const q = await s3(j.data), { conversation_id: E, event_type: ne, body: le } = q;
|
21351
21351
|
switch (ne) {
|
21352
21352
|
case "AGENT_TYPING":
|
21353
21353
|
return te();
|
21354
21354
|
case "CONVERSATION_ACCEPTED":
|
21355
21355
|
return Y(le);
|
21356
21356
|
case "CONVERSATION_CREATED":
|
21357
|
-
return d(
|
21357
|
+
return d(E);
|
21358
21358
|
case "CONVERSATION_ERROR":
|
21359
21359
|
return;
|
21360
21360
|
case "CONVERSATION_TERMINATED":
|
@@ -21390,7 +21390,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
|
|
21390
21390
|
role: Ie.INFO
|
21391
21391
|
}), H();
|
21392
21392
|
}, H = () => {
|
21393
|
-
d(""),
|
21393
|
+
d(""), b(null), y($t.FORM), i(vt.XPERT);
|
21394
21394
|
}, te = () => {
|
21395
21395
|
g && clearTimeout(g), c(!0);
|
21396
21396
|
const j = setTimeout(() => {
|
@@ -21401,9 +21401,9 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
|
|
21401
21401
|
const { displayName: q } = j;
|
21402
21402
|
p([]), s(q ?? "An agent"), y($t.CONVERSATION);
|
21403
21403
|
}, V = (j) => {
|
21404
|
-
const { messageId: q, text:
|
21404
|
+
const { messageId: q, text: E, timestamp: ne } = j;
|
21405
21405
|
M({
|
21406
|
-
content:
|
21406
|
+
content: E ?? "",
|
21407
21407
|
id: q ?? "",
|
21408
21408
|
role: Ie.AGENT,
|
21409
21409
|
timestamp: ne ? new Date(ne) : void 0
|
@@ -21449,12 +21449,12 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
|
|
21449
21449
|
var q;
|
21450
21450
|
try {
|
21451
21451
|
y($t.CONNECTING);
|
21452
|
-
const
|
21453
|
-
|
21454
|
-
`${(q = n == null ? void 0 : n.liveChat) == null ? void 0 : q.socketUrl}?${
|
21452
|
+
const E = new URLSearchParams({ ...t, ...j });
|
21453
|
+
E.append("url", window.location.href), b(
|
21454
|
+
`${(q = n == null ? void 0 : n.liveChat) == null ? void 0 : q.socketUrl}?${E.toString()}`
|
21455
21455
|
);
|
21456
|
-
} catch (
|
21457
|
-
console.error(
|
21456
|
+
} catch (E) {
|
21457
|
+
console.error(E.message), a(!0), H();
|
21458
21458
|
}
|
21459
21459
|
},
|
21460
21460
|
submitSurvey: () => {
|
@@ -21475,7 +21475,7 @@ pd.propTypes = {
|
|
21475
21475
|
};
|
21476
21476
|
const c3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", d3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
|
21477
21477
|
function md({ handleResizeButtonClick: e, setIsMounted: t }) {
|
21478
|
-
const { isMobile: n, isNormalSize: r } = oe(
|
21478
|
+
const { isMobile: n, isNormalSize: r } = oe(Ke);
|
21479
21479
|
if (n)
|
21480
21480
|
return null;
|
21481
21481
|
const a = `${r ? "Expand" : "Shrink"} Xpert dialog width`;
|
@@ -21514,7 +21514,7 @@ function gd({
|
|
21514
21514
|
isMounted: r
|
21515
21515
|
}) {
|
21516
21516
|
var c;
|
21517
|
-
const { conversationScreen: a } = oe(Ye), { mode: i } = oe(
|
21517
|
+
const { conversationScreen: a } = oe(Ye), { mode: i } = oe(Ke), { setDeleteConversationModal: u, xpertMessages: s } = oe(Zt), l = i === vt.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
|
21518
21518
|
return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
21519
21519
|
l && /* @__PURE__ */ S.jsx(
|
21520
21520
|
"button",
|
@@ -21619,8 +21619,8 @@ function Ed({
|
|
21619
21619
|
setIsMounted: n,
|
21620
21620
|
onClose: r
|
21621
21621
|
}) {
|
21622
|
-
var c, d, f, p, h,
|
21623
|
-
const { primaryColor: a, conversationScreen: i } = oe(Ye), { isMobile: u, mode: s } = oe(
|
21622
|
+
var c, d, f, p, h, b, m, y, g, P, M, W, R, _, N;
|
21623
|
+
const { primaryColor: a, conversationScreen: i } = oe(Ye), { isMobile: u, mode: s } = oe(Ke), { step: l } = oe(En);
|
21624
21624
|
return Ne(() => {
|
21625
21625
|
const $ = document.getElementById("header-mobile");
|
21626
21626
|
return $ && ($.style.display = "none"), () => {
|
@@ -21648,7 +21648,7 @@ function Ed({
|
|
21648
21648
|
}
|
21649
21649
|
}
|
21650
21650
|
),
|
21651
|
-
((
|
21651
|
+
((b = (h = i == null ? void 0 : i.header) == null ? void 0 : h.logo) == null ? void 0 : b.type) === "edx" ? /* @__PURE__ */ S.jsx(
|
21652
21652
|
"img",
|
21653
21653
|
{
|
21654
21654
|
"data-ot-ignore": "",
|
@@ -21750,7 +21750,7 @@ function f3() {
|
|
21750
21750
|
}
|
21751
21751
|
const h3 = () => {
|
21752
21752
|
var n, r, a, i, u;
|
21753
|
-
const { isMobile: e } = oe(
|
21753
|
+
const { isMobile: e } = oe(Ke), { launchButton: t } = oe(Ye);
|
21754
21754
|
return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ S.jsx(
|
21755
21755
|
"div",
|
21756
21756
|
{
|
@@ -21802,15 +21802,15 @@ const Is = 500, m3 = [
|
|
21802
21802
|
];
|
21803
21803
|
function yd({ onDismiss: e }) {
|
21804
21804
|
const [t, n] = ce(""), [r, a] = ce(!1), [i, u] = ce(null), { conversationScreen: s } = oe(Ye), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = oe(En), f = () => {
|
21805
|
-
var
|
21806
|
-
d(), (
|
21805
|
+
var b;
|
21806
|
+
d(), (b = s == null ? void 0 : s.liveChat) != null && b.useSurvey ? a(!0) : l();
|
21807
21807
|
}, p = () => {
|
21808
21808
|
c({
|
21809
21809
|
content: t,
|
21810
21810
|
selectedOption: i
|
21811
21811
|
});
|
21812
|
-
}, h = (
|
21813
|
-
n(
|
21812
|
+
}, h = (b) => {
|
21813
|
+
n(b.target.value.slice(0, Is));
|
21814
21814
|
};
|
21815
21815
|
return /* @__PURE__ */ S.jsxs("div", { className: "livechat-end-confirmation-container", children: [
|
21816
21816
|
!r && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
@@ -21822,8 +21822,8 @@ function yd({ onDismiss: e }) {
|
|
21822
21822
|
] }),
|
21823
21823
|
r && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
21824
21824
|
/* @__PURE__ */ S.jsx("p", { children: "Before you go, let me know how I did:" }),
|
21825
|
-
/* @__PURE__ */ S.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: m3.map(({ key:
|
21826
|
-
const g =
|
21825
|
+
/* @__PURE__ */ S.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: m3.map(({ key: b, icon: m, text: y }) => {
|
21826
|
+
const g = b === i, P = g ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
|
21827
21827
|
return /* @__PURE__ */ S.jsxs(
|
21828
21828
|
"button",
|
21829
21829
|
{
|
@@ -21831,13 +21831,13 @@ function yd({ onDismiss: e }) {
|
|
21831
21831
|
"aria-label": y,
|
21832
21832
|
role: "radio",
|
21833
21833
|
style: P,
|
21834
|
-
onClick: () => u(
|
21834
|
+
onClick: () => u(b),
|
21835
21835
|
children: [
|
21836
21836
|
/* @__PURE__ */ S.jsx("span", { children: m }),
|
21837
21837
|
/* @__PURE__ */ S.jsx("p", { children: y })
|
21838
21838
|
]
|
21839
21839
|
},
|
21840
|
-
|
21840
|
+
b
|
21841
21841
|
);
|
21842
21842
|
}) }),
|
21843
21843
|
i && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
@@ -21988,7 +21988,7 @@ const E3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
21988
21988
|
}];
|
21989
21989
|
}, Qa = "privacy policy";
|
21990
21990
|
function Cd() {
|
21991
|
-
const { conversationScreen: e, primaryColor: t } = oe(Ye), { startLiveChat: n } = oe(En), { setMode: r } = oe(
|
21991
|
+
const { conversationScreen: e, primaryColor: t } = oe(Ye), { startLiveChat: n } = oe(En), { setMode: r } = oe(Ke), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = y3({}), [d, f] = ce(!1), { clearError: p, errors: h, setErrors: b } = T3(), m = cn(
|
21992
21992
|
() => (s ?? "").split(Qa, 2),
|
21993
21993
|
[s]
|
21994
21994
|
), y = () => {
|
@@ -22019,7 +22019,7 @@ function Cd() {
|
|
22019
22019
|
}
|
22020
22020
|
return _;
|
22021
22021
|
}, {});
|
22022
|
-
return !d && s && (R.privacyCheck = "Required"),
|
22022
|
+
return !d && s && (R.privacyCheck = "Required"), b(R), Object.keys(R).length === 0;
|
22023
22023
|
};
|
22024
22024
|
return /* @__PURE__ */ S.jsxs("div", { className: "live-chat-form", children: [
|
22025
22025
|
i && /* @__PURE__ */ S.jsx("p", { children: i }),
|
@@ -22118,8 +22118,8 @@ function Sd({
|
|
22118
22118
|
showMessage: a = !1,
|
22119
22119
|
style: i = {}
|
22120
22120
|
}) {
|
22121
|
-
var
|
22122
|
-
const { proactiveMessage: u } = oe(Ye), [s, l] = ce(!0), [c, d] = ce(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((
|
22121
|
+
var b;
|
22122
|
+
const { proactiveMessage: u } = oe(Ye), [s, l] = ce(!0), [c, d] = ce(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((b = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : b.includes("C0003"))) && lt.get(t) === void 0;
|
22123
22123
|
Ne(() => {
|
22124
22124
|
var m;
|
22125
22125
|
(m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
|
@@ -22300,7 +22300,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22300
22300
|
onFeedbackSelection: f,
|
22301
22301
|
onMessageSent: p,
|
22302
22302
|
pushXpertMessage: h,
|
22303
|
-
setXpertMessages:
|
22303
|
+
setXpertMessages: b,
|
22304
22304
|
xpertMessages: m
|
22305
22305
|
} = oe(Zt), {
|
22306
22306
|
isMobile: y,
|
@@ -22311,7 +22311,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22311
22311
|
setIsNormalSize: R,
|
22312
22312
|
setLoading: _,
|
22313
22313
|
setStreaming: N
|
22314
|
-
} = oe(
|
22314
|
+
} = oe(Ke), [, $] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [V, L] = ce(!1), [I, w] = ce(!1), B = te || !c, G = nt(null), j = nt(null), q = lt.get(`${a}-test`) === "1";
|
22315
22315
|
Ne(() => {
|
22316
22316
|
g === vt.XPERT && B && G.current && G.current.focus();
|
22317
22317
|
}, [g, B]), _3(
|
@@ -22319,7 +22319,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22319
22319
|
V,
|
22320
22320
|
L
|
22321
22321
|
);
|
22322
|
-
const
|
22322
|
+
const E = st(
|
22323
22323
|
({ name: ie, payload: Ee }) => {
|
22324
22324
|
if (!n || !(s != null && s.enabled)) return;
|
22325
22325
|
const Se = Ps(s == null ? void 0 : s.payloadParams, Ee);
|
@@ -22349,7 +22349,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22349
22349
|
for (; !re(); ) {
|
22350
22350
|
if (Re >= ue)
|
22351
22351
|
return !1;
|
22352
|
-
await new Promise((
|
22352
|
+
await new Promise((Xe) => setTimeout(Xe, pe)), Re += pe;
|
22353
22353
|
}
|
22354
22354
|
return !0;
|
22355
22355
|
})(
|
@@ -22371,9 +22371,9 @@ function xd({ submitEventExternal: e = null }) {
|
|
22371
22371
|
);
|
22372
22372
|
if (!Re.ok)
|
22373
22373
|
throw new Error(`HTTPError: ${Re.status} ${Re.statusText}`);
|
22374
|
-
const
|
22375
|
-
|
22376
|
-
|
22374
|
+
const Xe = await Re.json();
|
22375
|
+
b(
|
22376
|
+
Xe.map((ke) => ({
|
22377
22377
|
...ke,
|
22378
22378
|
disableFeedback: !0,
|
22379
22379
|
toolCalls: ke.tool_calls,
|
@@ -22422,7 +22422,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22422
22422
|
]);
|
22423
22423
|
const x = (ie) => {
|
22424
22424
|
var Ee, Se;
|
22425
|
-
(Ee = ie == null ? void 0 : ie.target) != null && Ee.href &&
|
22425
|
+
(Ee = ie == null ? void 0 : ie.target) != null && Ee.href && E({
|
22426
22426
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
22427
22427
|
payload: {
|
22428
22428
|
category: "2u",
|
@@ -22435,7 +22435,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22435
22435
|
if (C3(l == null ? void 0 : l.experimentName), !n || l != null && l.enabled && !(l != null && l.experimentName) && !q || s != null && s.enabled && (s != null && s.prefix) && !((Nt = j == null ? void 0 : j.current) != null && Nt.track) && !e)
|
22436
22436
|
return null;
|
22437
22437
|
const se = (ie, Ee) => {
|
22438
|
-
|
22438
|
+
E({
|
22439
22439
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
|
22440
22440
|
payload: {
|
22441
22441
|
category: "2u",
|
@@ -22454,7 +22454,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22454
22454
|
conversationByteSize: F,
|
22455
22455
|
isStreaming: X
|
22456
22456
|
}) => {
|
22457
|
-
|
22457
|
+
E({
|
22458
22458
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
22459
22459
|
payload: {
|
22460
22460
|
category: "2u",
|
@@ -22490,9 +22490,9 @@ function xd({ submitEventExternal: e = null }) {
|
|
22490
22490
|
);
|
22491
22491
|
const ue = re.filter(({ content: ke }) => !!ke), pe = ue.map((ke) => ke.content ?? "").join("");
|
22492
22492
|
se(pe, Ee);
|
22493
|
-
const Re = /* @__PURE__ */ new Date(),
|
22493
|
+
const Re = /* @__PURE__ */ new Date(), Xe = ks(JSON.stringify(qe));
|
22494
22494
|
return ye({
|
22495
|
-
conversationByteSize:
|
22495
|
+
conversationByteSize: Xe,
|
22496
22496
|
conversationSize: ue.length + m.filter(({ content: ke }) => !!ke).length + 1,
|
22497
22497
|
userInputMessage: Se,
|
22498
22498
|
apiResponseMessage: pe,
|
@@ -22500,7 +22500,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22500
22500
|
isStreaming: !1
|
22501
22501
|
}), re;
|
22502
22502
|
}, Ae = async (ie, Ee, Se, qe, F) => {
|
22503
|
-
var
|
22503
|
+
var Xe;
|
22504
22504
|
const X = new TextDecoder("utf-8");
|
22505
22505
|
let re = [], ue = 0;
|
22506
22506
|
const pe = /* @__PURE__ */ new Date();
|
@@ -22537,7 +22537,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22537
22537
|
isStreaming: !0
|
22538
22538
|
});
|
22539
22539
|
}
|
22540
|
-
await v3(),
|
22540
|
+
await v3(), b((ze) => {
|
22541
22541
|
const Vt = [...ze];
|
22542
22542
|
return Vt.splice(
|
22543
22543
|
Vt.length - rt.length,
|
@@ -22548,7 +22548,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22548
22548
|
} catch {
|
22549
22549
|
}
|
22550
22550
|
}
|
22551
|
-
const Re = ((
|
22551
|
+
const Re = ((Xe = re.find((ke) => ke.content)) == null ? void 0 : Xe.content) || "";
|
22552
22552
|
return se(Re, Ee), re;
|
22553
22553
|
}, xe = async (ie, Ee, Se, qe, F) => {
|
22554
22554
|
N(!0);
|
@@ -22568,7 +22568,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22568
22568
|
const Se = /* @__PURE__ */ new Date();
|
22569
22569
|
W(!1), M(!1);
|
22570
22570
|
const qe = m.filter((ue) => ue.role === Ie.USER).length + 1;
|
22571
|
-
if (
|
22571
|
+
if (E({
|
22572
22572
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
22573
22573
|
payload: {
|
22574
22574
|
category: "2u",
|
@@ -22627,7 +22627,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22627
22627
|
_(!1), M(!0), console.error(Se);
|
22628
22628
|
}
|
22629
22629
|
}, ve = () => {
|
22630
|
-
L(!1), Y(!0), R(!0), ne(),
|
22630
|
+
L(!1), Y(!0), R(!0), ne(), E({
|
22631
22631
|
name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
|
22632
22632
|
payload: {
|
22633
22633
|
category: "2u",
|
@@ -22636,7 +22636,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22636
22636
|
}
|
22637
22637
|
});
|
22638
22638
|
}, Je = (ie) => {
|
22639
|
-
|
22639
|
+
E({
|
22640
22640
|
name: `${s.prefix}.bi.xpert.chatbot.${ie ? "normal" : "expand"}.size.button.clicked`,
|
22641
22641
|
payload: {
|
22642
22642
|
category: "2u",
|
@@ -22645,7 +22645,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22645
22645
|
}
|
22646
22646
|
}), R(ie);
|
22647
22647
|
}, ft = () => {
|
22648
|
-
Y(!0), R(!0), ne(),
|
22648
|
+
Y(!0), R(!0), ne(), E({
|
22649
22649
|
name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
|
22650
22650
|
payload: {
|
22651
22651
|
category: "2u",
|
@@ -22654,7 +22654,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22654
22654
|
}
|
22655
22655
|
});
|
22656
22656
|
}, It = () => {
|
22657
|
-
|
22657
|
+
E({
|
22658
22658
|
name: `${s.prefix}.bi.xpert.chatbot.proactive.message.closed`,
|
22659
22659
|
payload: {
|
22660
22660
|
category: "2u",
|
@@ -22663,7 +22663,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22663
22663
|
}
|
22664
22664
|
});
|
22665
22665
|
}, Un = () => {
|
22666
|
-
Y(!1), w(!1),
|
22666
|
+
Y(!1), w(!1), E({
|
22667
22667
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
|
22668
22668
|
payload: {
|
22669
22669
|
category: "2u",
|
@@ -22676,7 +22676,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22676
22676
|
await f({ index: ie, type: Ee }), P(!1);
|
22677
22677
|
return;
|
22678
22678
|
}
|
22679
|
-
const Se = m.map((qe, F) => ie === F ? (
|
22679
|
+
const Se = m.map((qe, F) => ie === F ? (E({
|
22680
22680
|
name: `${s.prefix}.bi.xpert.chatbot.feedback.thumbs.${Ee.toLowerCase()}.clicked`,
|
22681
22681
|
payload: {
|
22682
22682
|
category: "2u",
|
@@ -22690,7 +22690,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22690
22690
|
...qe,
|
22691
22691
|
feedbackThumbType: Ee
|
22692
22692
|
}) : qe);
|
22693
|
-
|
22693
|
+
b(Se), P(!1);
|
22694
22694
|
}, Jt = (Bt = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : Bt.enabled, Tn = u != null && u.enabled ? y ? (Ht = u == null ? void 0 : u.style) == null ? void 0 : Ht.mobile : u == null ? void 0 : u.style : null;
|
22695
22695
|
return (
|
22696
22696
|
// do not remove this class as it's needed to turn off chatbot
|
@@ -22767,7 +22767,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22767
22767
|
inputRef: G,
|
22768
22768
|
isTestUser: q,
|
22769
22769
|
setLiveChatOpen: L,
|
22770
|
-
submitEvent:
|
22770
|
+
submitEvent: E
|
22771
22771
|
}
|
22772
22772
|
),
|
22773
22773
|
g === vt.LIVECHAT && /* @__PURE__ */ S.jsx(Ad, {})
|
@@ -22804,11 +22804,11 @@ const vd = ({
|
|
22804
22804
|
onMessageSent: l
|
22805
22805
|
}, h = {
|
22806
22806
|
liveChatPayload: u
|
22807
|
-
},
|
22807
|
+
}, b = {
|
22808
22808
|
externalLoading: a,
|
22809
22809
|
externalStreaming: i
|
22810
22810
|
};
|
22811
|
-
return /* @__PURE__ */ S.jsx(Ms, { ...f, children: /* @__PURE__ */ S.jsx(Us, { ...
|
22811
|
+
return /* @__PURE__ */ S.jsx(Ms, { ...f, children: /* @__PURE__ */ S.jsx(Us, { ...b, children: /* @__PURE__ */ S.jsx(Hs, { ...p, children: /* @__PURE__ */ S.jsx(pd, { ...h, children: e }) }) }) });
|
22812
22812
|
};
|
22813
22813
|
vd.propTypes = {
|
22814
22814
|
children: v.element,
|