@botpress/webchat 2.1.6 → 2.1.7
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.
|
@@ -2,7 +2,7 @@ var g5 = Object.defineProperty;
|
|
|
2
2
|
var v5 = (e, t, n) => t in e ? g5(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var I = (e, t, n) => (v5(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as B from "react";
|
|
5
|
-
import jn, { createContext as Ti, useMemo as hs, createElement as it, useContext as Hi, useRef as yt, useEffect as
|
|
5
|
+
import jn, { createContext as Ti, useMemo as hs, createElement as it, useContext as Hi, useRef as yt, useEffect as nt, useLayoutEffect as Ic, useCallback as Gn, forwardRef as st, Children as mu, isValidElement as nc, cloneElement as jh, Fragment as Sa, useState as ut, useDebugValue as b5, useId as w5, memo as Os, useReducer as YT } from "react";
|
|
6
6
|
import * as _5 from "react-dom";
|
|
7
7
|
import { flushSync as JT, createPortal as x5 } from "react-dom";
|
|
8
8
|
var lt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -1680,7 +1680,7 @@ fp.exports;
|
|
|
1680
1680
|
["partial", C],
|
|
1681
1681
|
["partialRight", T],
|
|
1682
1682
|
["rearg", L]
|
|
1683
|
-
], Fe = "[object Arguments]", Ne = "[object Array]", Ge = "[object AsyncFunction]",
|
|
1683
|
+
], Fe = "[object Arguments]", Ne = "[object Array]", Ge = "[object AsyncFunction]", tt = "[object Boolean]", He = "[object Date]", Oe = "[object DOMException]", Se = "[object Error]", Le = "[object Function]", Ce = "[object GeneratorFunction]", Be = "[object Map]", ct = "[object Number]", V = "[object Null]", ce = "[object Object]", Te = "[object Promise]", _e = "[object Proxy]", Je = "[object RegExp]", je = "[object Set]", ot = "[object String]", Pt = "[object Symbol]", gt = "[object Undefined]", re = "[object WeakMap]", fe = "[object WeakSet]", we = "[object ArrayBuffer]", qe = "[object DataView]", ft = "[object Float32Array]", fn = "[object Float64Array]", nn = "[object Int8Array]", Xt = "[object Int16Array]", cn = "[object Int32Array]", En = "[object Uint8Array]", X = "[object Uint8ClampedArray]", oe = "[object Uint16Array]", pt = "[object Uint32Array]", At = /\b__p \+= '';/g, rn = /\b(__p \+=) '' \+/g, ht = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Dn = /&(?:amp|lt|gt|quot|#39);/g, ir = /[&<>"']/g, P = RegExp(Dn.source), De = RegExp(ir.source), ze = /<%-([\s\S]+?)%>/g, Ye = /<%([\s\S]+?)%>/g, Re = /<%=([\s\S]+?)%>/g, Ze = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xt = /^\w*$/, Nt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Qt = /[\\^$.*+?()[\]{}|]/g, mn = RegExp(Qt.source), Rn = /^\s+/, cr = /\s/, _o = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Fs = /\{\n\/\* \[wrapped with (.+)\] \*/, z = /,? & /, Ee = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ue = /[()=,{}\[\]\/\s]/, vt = /\\(\\)?/g, Kt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, an = /\w*$/, jt = /^[-+]0x[0-9a-f]+$/i, $t = /^0b[01]+$/i, Mn = /^\[object .+?Constructor\]$/, An = /^0o[0-7]+$/i, Tn = /^(?:0|[1-9]\d*)$/, qr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, $i = /($^)/, bd = /['\n\r\u2028\u2029\\]/g, Ur = "\\ud800-\\udfff", cM = "\\u0300-\\u036f", dM = "\\ufe20-\\ufe2f", fM = "\\u20d0-\\u20ff", y_ = cM + dM + fM, g_ = "\\u2700-\\u27bf", v_ = "a-z\\xdf-\\xf6\\xf8-\\xff", pM = "\\xac\\xb1\\xd7\\xf7", hM = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", mM = "\\u2000-\\u206f", yM = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", b_ = "A-Z\\xc0-\\xd6\\xd8-\\xde", w_ = "\\ufe0e\\ufe0f", __ = pM + hM + mM + yM, uy = "['’]", gM = "[" + Ur + "]", x_ = "[" + __ + "]", wd = "[" + y_ + "]", S_ = "\\d+", vM = "[" + g_ + "]", E_ = "[" + v_ + "]", A_ = "[^" + Ur + __ + S_ + g_ + v_ + b_ + "]", ly = "\\ud83c[\\udffb-\\udfff]", bM = "(?:" + wd + "|" + ly + ")", T_ = "[^" + Ur + "]", cy = "(?:\\ud83c[\\udde6-\\uddff]){2}", dy = "[\\ud800-\\udbff][\\udc00-\\udfff]", js = "[" + b_ + "]", C_ = "\\u200d", k_ = "(?:" + E_ + "|" + A_ + ")", wM = "(?:" + js + "|" + A_ + ")", O_ = "(?:" + uy + "(?:d|ll|m|re|s|t|ve))?", $_ = "(?:" + uy + "(?:D|LL|M|RE|S|T|VE))?", R_ = bM + "?", I_ = "[" + w_ + "]?", _M = "(?:" + C_ + "(?:" + [T_, cy, dy].join("|") + ")" + I_ + R_ + ")*", xM = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", SM = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", P_ = I_ + R_ + _M, EM = "(?:" + [vM, cy, dy].join("|") + ")" + P_, AM = "(?:" + [T_ + wd + "?", wd, cy, dy, gM].join("|") + ")", TM = RegExp(uy, "g"), CM = RegExp(wd, "g"), fy = RegExp(ly + "(?=" + ly + ")|" + AM + P_, "g"), kM = RegExp([
|
|
1684
1684
|
js + "?" + E_ + "+" + O_ + "(?=" + [x_, js, "$"].join("|") + ")",
|
|
1685
1685
|
wM + "+" + $_ + "(?=" + [x_, js + k_, "$"].join("|") + ")",
|
|
1686
1686
|
js + "?" + k_ + "+" + O_,
|
|
@@ -1721,9 +1721,9 @@ fp.exports;
|
|
|
1721
1721
|
"parseInt",
|
|
1722
1722
|
"setTimeout"
|
|
1723
1723
|
], IM = -1, Cn = {};
|
|
1724
|
-
Cn[ft] = Cn[fn] = Cn[nn] = Cn[Xt] = Cn[cn] = Cn[En] = Cn[X] = Cn[oe] = Cn[pt] = !0, Cn[Fe] = Cn[Ne] = Cn[we] = Cn[
|
|
1724
|
+
Cn[ft] = Cn[fn] = Cn[nn] = Cn[Xt] = Cn[cn] = Cn[En] = Cn[X] = Cn[oe] = Cn[pt] = !0, Cn[Fe] = Cn[Ne] = Cn[we] = Cn[tt] = Cn[qe] = Cn[He] = Cn[Se] = Cn[Le] = Cn[Be] = Cn[ct] = Cn[ce] = Cn[Je] = Cn[je] = Cn[ot] = Cn[re] = !1;
|
|
1725
1725
|
var _n = {};
|
|
1726
|
-
_n[Fe] = _n[Ne] = _n[we] = _n[qe] = _n[
|
|
1726
|
+
_n[Fe] = _n[Ne] = _n[we] = _n[qe] = _n[tt] = _n[He] = _n[ft] = _n[fn] = _n[nn] = _n[Xt] = _n[cn] = _n[Be] = _n[ct] = _n[ce] = _n[Je] = _n[je] = _n[ot] = _n[Pt] = _n[En] = _n[X] = _n[oe] = _n[pt] = !0, _n[Se] = _n[Le] = _n[re] = !1;
|
|
1727
1727
|
var PM = {
|
|
1728
1728
|
// Latin-1 Supplement block.
|
|
1729
1729
|
À: "A",
|
|
@@ -3522,7 +3522,7 @@ fp.exports;
|
|
|
3522
3522
|
u = u.buffer, d = d.buffer;
|
|
3523
3523
|
case we:
|
|
3524
3524
|
return !(u.byteLength != d.byteLength || !$(new Od(u), new Od(d)));
|
|
3525
|
-
case
|
|
3525
|
+
case tt:
|
|
3526
3526
|
case He:
|
|
3527
3527
|
case ct:
|
|
3528
3528
|
return Pi(+u, +d);
|
|
@@ -3705,7 +3705,7 @@ fp.exports;
|
|
|
3705
3705
|
switch (d) {
|
|
3706
3706
|
case we:
|
|
3707
3707
|
return Wy(u);
|
|
3708
|
-
case
|
|
3708
|
+
case tt:
|
|
3709
3709
|
case He:
|
|
3710
3710
|
return new b(+u);
|
|
3711
3711
|
case qe:
|
|
@@ -4555,7 +4555,7 @@ fp.exports;
|
|
|
4555
4555
|
return Ln(u) && zr(u);
|
|
4556
4556
|
}
|
|
4557
4557
|
function o3(u) {
|
|
4558
|
-
return u === !0 || u === !1 || Ln(u) && Rr(u) ==
|
|
4558
|
+
return u === !0 || u === !1 || Ln(u) && Rr(u) == tt;
|
|
4559
4559
|
}
|
|
4560
4560
|
var ca = bL || gg, a3 = L_ ? ni(L_) : pF;
|
|
4561
4561
|
function s3(u) {
|
|
@@ -6665,7 +6665,7 @@ O(Rk, "hasDefinitions");
|
|
|
6665
6665
|
async function Ik(e, { cwd: t, $refOptions: n }) {
|
|
6666
6666
|
if (mr("green", "dereferencer", "Dereferencing input schema:", t, e), typeof process > "u")
|
|
6667
6667
|
throw new Error("process is not defined");
|
|
6668
|
-
const r = await import("./index-
|
|
6668
|
+
const r = await import("./index-c75fd56a.js").then((s) => s.i), i = new r.$RefParser(), o = /* @__PURE__ */ new WeakMap(), a = await i.dereference(t, e, le(U({}, n), {
|
|
6669
6669
|
dereference: le(U({}, n.dereference), {
|
|
6670
6670
|
onDereference(s, l) {
|
|
6671
6671
|
o.set(l, s);
|
|
@@ -13531,8 +13531,8 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13531
13531
|
return;
|
|
13532
13532
|
}
|
|
13533
13533
|
if (s && N + 1 >= F.length) {
|
|
13534
|
-
var
|
|
13535
|
-
Pe = !!
|
|
13534
|
+
var tt = s(R, Fe);
|
|
13535
|
+
Pe = !!tt, Pe && "get" in tt && !("originalValue" in tt.get) ? R = tt.get : R = R[Fe];
|
|
13536
13536
|
} else
|
|
13537
13537
|
Pe = A(R, Fe), R = R[Fe];
|
|
13538
13538
|
Pe && !ae && (v[ue] = R);
|
|
@@ -13632,7 +13632,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13632
13632
|
}
|
|
13633
13633
|
return X($t, ht, At + 1, rn);
|
|
13634
13634
|
}
|
|
13635
|
-
if (typeof oe == "function" && !
|
|
13635
|
+
if (typeof oe == "function" && !tt(oe)) {
|
|
13636
13636
|
var Ze = Te(oe), xt = En(oe, Re);
|
|
13637
13637
|
return "[Function" + (Ze ? ": " + Ze : " (anonymous)") + "]" + (xt.length > 0 ? " { " + D.call(xt, ", ") + " }" : "");
|
|
13638
13638
|
}
|
|
@@ -13687,7 +13687,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13687
13687
|
return qe(x.call(oe));
|
|
13688
13688
|
if (Oe(oe))
|
|
13689
13689
|
return qe(Re(String(oe)));
|
|
13690
|
-
if (!Ge(oe) && !
|
|
13690
|
+
if (!Ge(oe) && !tt(oe)) {
|
|
13691
13691
|
var Ee = En(oe, Re), Ue = ue ? ue(oe) === Object.prototype : oe instanceof Object || oe.constructor === Object, vt = oe instanceof Object ? "" : "null prototype", Kt = !Ue && G && Object(oe) === oe && G in oe ? A.call(ce(oe), 8, -1) : vt ? "Object" : "", an = Ue || typeof oe.constructor != "function" ? "" : oe.constructor.name ? oe.constructor.name + " " : "", jt = an + (Kt || vt ? "[" + D.call(q.call([], Kt || [], vt || []), ": ") + "] " : "");
|
|
13692
13692
|
return Ee.length === 0 ? jt + "{}" : Ye ? jt + "{" + cn(Ee, Ye) + "}" : jt + "{ " + D.call(Ee, ", ") + " }";
|
|
13693
13693
|
}
|
|
@@ -13706,7 +13706,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13706
13706
|
function Ge(X) {
|
|
13707
13707
|
return ce(X) === "[object Date]" && (!G || !(typeof X == "object" && G in X));
|
|
13708
13708
|
}
|
|
13709
|
-
function
|
|
13709
|
+
function tt(X) {
|
|
13710
13710
|
return ce(X) === "[object RegExp]" && (!G || !(typeof X == "object" && G in X));
|
|
13711
13711
|
}
|
|
13712
13712
|
function He(X) {
|
|
@@ -14103,9 +14103,9 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14103
14103
|
}
|
|
14104
14104
|
return [H(A) + "=" + H(String(ue))];
|
|
14105
14105
|
}
|
|
14106
|
-
var
|
|
14106
|
+
var tt = [];
|
|
14107
14107
|
if (typeof ue > "u")
|
|
14108
|
-
return
|
|
14108
|
+
return tt;
|
|
14109
14109
|
var He;
|
|
14110
14110
|
if (C === "comma" && s(ue))
|
|
14111
14111
|
He = [{ value: ue.length > 0 ? ue.join(",") || null : void 0 }];
|
|
@@ -14121,10 +14121,10 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14121
14121
|
var ct = s(ue) ? typeof C == "function" ? C(Se, Ce) : Se : Se + (ne ? "." + Ce : "[" + Ce + "]");
|
|
14122
14122
|
te.set(S, ae);
|
|
14123
14123
|
var V = n();
|
|
14124
|
-
V.set(v, te), f(
|
|
14124
|
+
V.set(v, te), f(tt, w(Be, ct, C, T, M, L, q, D, Z, ne, J, K, H, F, G, V));
|
|
14125
14125
|
}
|
|
14126
14126
|
}
|
|
14127
|
-
return
|
|
14127
|
+
return tt;
|
|
14128
14128
|
}, _ = function(w) {
|
|
14129
14129
|
if (!w)
|
|
14130
14130
|
return h;
|
|
@@ -15225,7 +15225,7 @@ const vae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
15225
15225
|
async function Ge(P, De = 8072, ze = Se) {
|
|
15226
15226
|
let Ye = (0, Pe.createServer)(async (Re, Ze) => {
|
|
15227
15227
|
try {
|
|
15228
|
-
let xt = await
|
|
15228
|
+
let xt = await tt(Re);
|
|
15229
15229
|
if (xt.path === "/health") {
|
|
15230
15230
|
Ze.writeHead(200).end("ok");
|
|
15231
15231
|
return;
|
|
@@ -15238,7 +15238,7 @@ const vae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
15238
15238
|
});
|
|
15239
15239
|
return Ye.listen(De, () => ze(De)), Ye;
|
|
15240
15240
|
}
|
|
15241
|
-
async function
|
|
15241
|
+
async function tt(P) {
|
|
15242
15242
|
var Re;
|
|
15243
15243
|
let De = await Oe(P), ze = {};
|
|
15244
15244
|
for (let Ze = 0; Ze < P.rawHeaders.length; Ze += 2) {
|
|
@@ -16446,7 +16446,7 @@ function ese() {
|
|
|
16446
16446
|
}
|
|
16447
16447
|
}
|
|
16448
16448
|
var Ne = _.ReactCurrentDispatcher, Ge;
|
|
16449
|
-
function
|
|
16449
|
+
function tt(z, Ee, Ue) {
|
|
16450
16450
|
{
|
|
16451
16451
|
if (Ge === void 0)
|
|
16452
16452
|
try {
|
|
@@ -16532,7 +16532,7 @@ function ese() {
|
|
|
16532
16532
|
} finally {
|
|
16533
16533
|
He = !1, Ne.current = an, Fe(), Error.prepareStackTrace = Kt;
|
|
16534
16534
|
}
|
|
16535
|
-
var $i = z ? z.displayName || z.name : "", bd = $i ?
|
|
16535
|
+
var $i = z ? z.displayName || z.name : "", bd = $i ? tt($i) : "";
|
|
16536
16536
|
return typeof z == "function" && Oe.set(z, bd), bd;
|
|
16537
16537
|
}
|
|
16538
16538
|
function Ce(z, Ee, Ue) {
|
|
@@ -16548,12 +16548,12 @@ function ese() {
|
|
|
16548
16548
|
if (typeof z == "function")
|
|
16549
16549
|
return Le(z, Be(z));
|
|
16550
16550
|
if (typeof z == "string")
|
|
16551
|
-
return
|
|
16551
|
+
return tt(z);
|
|
16552
16552
|
switch (z) {
|
|
16553
16553
|
case c:
|
|
16554
|
-
return
|
|
16554
|
+
return tt("Suspense");
|
|
16555
16555
|
case f:
|
|
16556
|
-
return
|
|
16556
|
+
return tt("SuspenseList");
|
|
16557
16557
|
}
|
|
16558
16558
|
if (typeof z == "object")
|
|
16559
16559
|
switch (z.$$typeof) {
|
|
@@ -16976,7 +16976,7 @@ function tse(...e) {
|
|
|
16976
16976
|
}
|
|
16977
16977
|
function Dr(e) {
|
|
16978
16978
|
const t = yt(e);
|
|
16979
|
-
return
|
|
16979
|
+
return nt(() => {
|
|
16980
16980
|
t.current = e;
|
|
16981
16981
|
}), hs(
|
|
16982
16982
|
() => (...n) => {
|
|
@@ -17075,7 +17075,7 @@ const ase = [
|
|
|
17075
17075
|
], vr = ase.reduce((e, t) => {
|
|
17076
17076
|
const n = /* @__PURE__ */ st((r, i) => {
|
|
17077
17077
|
const { asChild: o, ...a } = r, s = o ? fw : t;
|
|
17078
|
-
return
|
|
17078
|
+
return nt(() => {
|
|
17079
17079
|
window[Symbol.for("radix-ui")] = !0;
|
|
17080
17080
|
}, []), /* @__PURE__ */ it(s, vs({}, a, {
|
|
17081
17081
|
ref: i
|
|
@@ -17116,7 +17116,7 @@ const nP = "Avatar", [use, lke] = Sm(nP), [lse, rP] = use(nP), iP = /* @__PURE__
|
|
|
17116
17116
|
})) : null;
|
|
17117
17117
|
}), dse = "AvatarFallback", aP = /* @__PURE__ */ st((e, t) => {
|
|
17118
17118
|
const { __scopeAvatar: n, delayMs: r, ...i } = e, o = rP(dse, n), [a, s] = ut(r === void 0);
|
|
17119
|
-
return
|
|
17119
|
+
return nt(() => {
|
|
17120
17120
|
if (r !== void 0) {
|
|
17121
17121
|
const l = window.setTimeout(
|
|
17122
17122
|
() => s(!0),
|
|
@@ -17132,7 +17132,7 @@ const nP = "Avatar", [use, lke] = Sm(nP), [lse, rP] = use(nP), iP = /* @__PURE__
|
|
|
17132
17132
|
});
|
|
17133
17133
|
function fse(e) {
|
|
17134
17134
|
const [t, n] = ut("idle");
|
|
17135
|
-
return
|
|
17135
|
+
return nt(() => {
|
|
17136
17136
|
if (!e) {
|
|
17137
17137
|
n("error");
|
|
17138
17138
|
return;
|
|
@@ -20872,14 +20872,14 @@ function Kle(e, t, n) {
|
|
|
20872
20872
|
) : ae(K);
|
|
20873
20873
|
function ae(Ne) {
|
|
20874
20874
|
return Ge;
|
|
20875
|
-
function Ge(
|
|
20876
|
-
const He =
|
|
20875
|
+
function Ge(tt) {
|
|
20876
|
+
const He = tt !== null && Ne[tt], Oe = tt !== null && Ne.null, Se = [
|
|
20877
20877
|
// To do: add more extension tests.
|
|
20878
20878
|
/* c8 ignore next 2 */
|
|
20879
20879
|
...Array.isArray(He) ? He : He ? [He] : [],
|
|
20880
20880
|
...Array.isArray(Oe) ? Oe : Oe ? [Oe] : []
|
|
20881
20881
|
];
|
|
20882
|
-
return Ae(Se)(
|
|
20882
|
+
return Ae(Se)(tt);
|
|
20883
20883
|
}
|
|
20884
20884
|
}
|
|
20885
20885
|
function Ae(Ne) {
|
|
@@ -20887,7 +20887,7 @@ function Kle(e, t, n) {
|
|
|
20887
20887
|
}
|
|
20888
20888
|
function N(Ne) {
|
|
20889
20889
|
return Ge;
|
|
20890
|
-
function Ge(
|
|
20890
|
+
function Ge(tt) {
|
|
20891
20891
|
return R = q(), ue = Ne, Ne.partial || (c.currentConstruct = Ne), Ne.name && c.parser.constructs.disable.null.includes(Ne.name) ? Fe() : Ne.tokenize.call(
|
|
20892
20892
|
// If we do have fields, create an object w/ `context` as its
|
|
20893
20893
|
// prototype.
|
|
@@ -20896,7 +20896,7 @@ function Kle(e, t, n) {
|
|
|
20896
20896
|
l,
|
|
20897
20897
|
Pe,
|
|
20898
20898
|
Fe
|
|
20899
|
-
)(
|
|
20899
|
+
)(tt);
|
|
20900
20900
|
}
|
|
20901
20901
|
}
|
|
20902
20902
|
function Pe(Ne) {
|
|
@@ -21185,7 +21185,7 @@ function hce(e) {
|
|
|
21185
21185
|
atxHeading: l(),
|
|
21186
21186
|
atxHeadingSequence: C,
|
|
21187
21187
|
autolink: l(),
|
|
21188
|
-
autolinkEmail:
|
|
21188
|
+
autolinkEmail: tt,
|
|
21189
21189
|
autolinkProtocol: Ge,
|
|
21190
21190
|
blockQuote: l(),
|
|
21191
21191
|
characterEscapeValue: D,
|
|
@@ -21554,7 +21554,7 @@ function hce(e) {
|
|
|
21554
21554
|
const fe = this.stack[this.stack.length - 1];
|
|
21555
21555
|
fe.url = this.sliceSerialize(re);
|
|
21556
21556
|
}
|
|
21557
|
-
function
|
|
21557
|
+
function tt(re) {
|
|
21558
21558
|
D.call(this, re);
|
|
21559
21559
|
const fe = this.stack[this.stack.length - 1];
|
|
21560
21560
|
fe.url = "mailto:" + this.sliceSerialize(re);
|
|
@@ -25822,7 +25822,7 @@ const Kpe = ({ text: e, type: t, styles: n }) => {
|
|
|
25822
25822
|
};
|
|
25823
25823
|
return /* @__PURE__ */ Q.jsx(Nde, { components: i, remarkPlugins: [Vpe, Bde], children: e });
|
|
25824
25824
|
}, Gpe = (e, t, n = 120) => {
|
|
25825
|
-
|
|
25825
|
+
nt(() => {
|
|
25826
25826
|
if (e) {
|
|
25827
25827
|
e.style.height = "0px";
|
|
25828
25828
|
const r = t ? Math.min(e.scrollHeight, n) : 20;
|
|
@@ -32486,7 +32486,7 @@ var Pb = { exports: {} };
|
|
|
32486
32486
|
ne.call(this, V), this.error = ce.error;
|
|
32487
32487
|
}
|
|
32488
32488
|
H.prototype = Object.create(ne.prototype);
|
|
32489
|
-
var F = -1, G = 0, te = 1, ue = 2, R = -1, ae = 0, Ae = 1, N = 2, Pe = 3, Fe = /^text\/event\-stream(;.*)?$/i, Ne = 1e3, Ge = 18e6,
|
|
32489
|
+
var F = -1, G = 0, te = 1, ue = 2, R = -1, ae = 0, Ae = 1, N = 2, Pe = 3, Fe = /^text\/event\-stream(;.*)?$/i, Ne = 1e3, Ge = 18e6, tt = function(V, ce) {
|
|
32490
32490
|
var Te = V == null ? ce : parseInt(V, 10);
|
|
32491
32491
|
return Te !== Te && (Te = ce), He(Te);
|
|
32492
32492
|
}, He = function(V) {
|
|
@@ -32507,7 +32507,7 @@ var Pb = { exports: {} };
|
|
|
32507
32507
|
var Ce = p != null && m != null && "body" in m.prototype;
|
|
32508
32508
|
function Be(V, ce, Te) {
|
|
32509
32509
|
ce = String(ce);
|
|
32510
|
-
var _e = !!Te.withCredentials, Je = Te.lastEventIdQueryParameterName || "lastEventId", je = He(1e3), ot =
|
|
32510
|
+
var _e = !!Te.withCredentials, Je = Te.lastEventIdQueryParameterName || "lastEventId", je = He(1e3), ot = tt(Te.heartbeatTimeout, 45e3), Pt = "", gt = je, re = !1, fe = 0, we = Te.headers || {}, qe = Te.Transport, ft = Ce && qe == null ? void 0 : new A(qe != null ? new qe() : Le()), fn = qe != null && typeof qe != "string" ? new qe() : ft == null ? new q() : new M(), nn = void 0, Xt = 0, cn = F, En = "", X = "", oe = "", pt = "", At = ae, rn = 0, ht = 0, Dn = function(Ye, Re, Ze, xt) {
|
|
32511
32511
|
if (cn === G)
|
|
32512
32512
|
if (Ye === 200 && Ze != null && Fe.test(Ze)) {
|
|
32513
32513
|
cn = te, re = Date.now(), gt = je, V.readyState = te;
|
|
@@ -32547,7 +32547,7 @@ var Pb = { exports: {} };
|
|
|
32547
32547
|
At === Ae && (ht = Qt + 1);
|
|
32548
32548
|
var mn = Nt.slice(rn, ht - 1), Rn = Nt.slice(ht + (ht < Qt && Nt.charCodeAt(ht) === " ".charCodeAt(0) ? 1 : 0), Qt);
|
|
32549
32549
|
mn === "data" ? (En += `
|
|
32550
|
-
`, En += Rn) : mn === "id" ? X = Rn : mn === "event" ? oe = Rn : mn === "retry" ? (je =
|
|
32550
|
+
`, En += Rn) : mn === "id" ? X = Rn : mn === "event" ? oe = Rn : mn === "retry" ? (je = tt(Rn, je), gt = je) : mn === "heartbeatTimeout" && (ot = tt(Rn, ot), Xt !== 0 && (i(Xt), Xt = r(function() {
|
|
32551
32551
|
ze();
|
|
32552
32552
|
}, ot)));
|
|
32553
32553
|
}
|
|
@@ -36062,7 +36062,7 @@ var Awe = (e) => typeof e == "function", Ch = (e, t) => Awe(e) ? e(t) : e, Twe =
|
|
|
36062
36062
|
});
|
|
36063
36063
|
}, $we = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, Rwe = (e = {}) => {
|
|
36064
36064
|
let [t, n] = ut(tp);
|
|
36065
|
-
|
|
36065
|
+
nt(() => (ep.push(n), () => {
|
|
36066
36066
|
let i = ep.indexOf(n);
|
|
36067
36067
|
i > -1 && ep.splice(i, 1);
|
|
36068
36068
|
}), [t]);
|
|
@@ -36095,7 +36095,7 @@ var Pwe = (e, t) => {
|
|
|
36095
36095
|
Ls({ type: 5, time: Date.now() });
|
|
36096
36096
|
}, Dwe = (e) => {
|
|
36097
36097
|
let { toasts: t, pausedAt: n } = Rwe(e);
|
|
36098
|
-
|
|
36098
|
+
nt(() => {
|
|
36099
36099
|
if (n)
|
|
36100
36100
|
return;
|
|
36101
36101
|
let o = Date.now(), a = t.map((s) => {
|
|
@@ -36356,7 +36356,7 @@ let c_e = class {
|
|
|
36356
36356
|
return this.handoffState === "complete";
|
|
36357
36357
|
}
|
|
36358
36358
|
}, Ql = new c_e(), Vm = (e, t) => {
|
|
36359
|
-
Ql.isServer ?
|
|
36359
|
+
Ql.isServer ? nt(e, t) : Ic(e, t);
|
|
36360
36360
|
};
|
|
36361
36361
|
function Eu(e) {
|
|
36362
36362
|
let t = yt(e);
|
|
@@ -36413,7 +36413,7 @@ function Km() {
|
|
|
36413
36413
|
}
|
|
36414
36414
|
function IN() {
|
|
36415
36415
|
let [e] = ut(Km);
|
|
36416
|
-
return
|
|
36416
|
+
return nt(() => () => e.dispose(), [e]), e;
|
|
36417
36417
|
}
|
|
36418
36418
|
let ls = function(e) {
|
|
36419
36419
|
let t = Eu(e);
|
|
@@ -36421,9 +36421,9 @@ let ls = function(e) {
|
|
|
36421
36421
|
};
|
|
36422
36422
|
function PN() {
|
|
36423
36423
|
let [e, t] = ut(Ql.isHandoffComplete);
|
|
36424
|
-
return e && Ql.isHandoffComplete === !1 && t(!1),
|
|
36424
|
+
return e && Ql.isHandoffComplete === !1 && t(!1), nt(() => {
|
|
36425
36425
|
e !== !0 && t(!0);
|
|
36426
|
-
}, [e]),
|
|
36426
|
+
}, [e]), nt(() => Ql.handoff(), []), e;
|
|
36427
36427
|
}
|
|
36428
36428
|
function ao(e, t, ...n) {
|
|
36429
36429
|
if (e in t) {
|
|
@@ -36436,7 +36436,7 @@ function ao(e, t, ...n) {
|
|
|
36436
36436
|
let f_e = Symbol();
|
|
36437
36437
|
function NN(...e) {
|
|
36438
36438
|
let t = yt(e);
|
|
36439
|
-
|
|
36439
|
+
nt(() => {
|
|
36440
36440
|
t.current = e;
|
|
36441
36441
|
}, [e]);
|
|
36442
36442
|
let n = ls((r) => {
|
|
@@ -36667,13 +36667,13 @@ function iT(e) {
|
|
|
36667
36667
|
}
|
|
36668
36668
|
function A_e(e) {
|
|
36669
36669
|
let t = yt(iT(e));
|
|
36670
|
-
return
|
|
36670
|
+
return nt(() => {
|
|
36671
36671
|
t.current = iT(e);
|
|
36672
36672
|
}, [e]), t;
|
|
36673
36673
|
}
|
|
36674
36674
|
let T_e = "div", BN = MN.RenderStrategy, zN = Yw(function(e, t) {
|
|
36675
36675
|
let { beforeEnter: n, afterEnter: r, beforeLeave: i, afterLeave: o, enter: a, enterFrom: s, enterTo: l, entered: c, leave: f, leaveFrom: p, leaveTo: m, ...h } = e, g = yt(null), v = NN(g, t), x = h.unmount ? jo.Unmount : jo.Hidden, { show: _, appear: w, initial: S } = __e(), [A, C] = ut(_ ? "visible" : "hidden"), T = x_e(), { register: M, unregister: L } = T, q = yt(null);
|
|
36676
|
-
|
|
36676
|
+
nt(() => M(g), [M, g]), nt(() => {
|
|
36677
36677
|
if (x === jo.Hidden && g.current) {
|
|
36678
36678
|
if (_ && A !== "visible") {
|
|
36679
36679
|
C("visible");
|
|
@@ -36683,7 +36683,7 @@ let T_e = "div", BN = MN.RenderStrategy, zN = Yw(function(e, t) {
|
|
|
36683
36683
|
}
|
|
36684
36684
|
}, [A, g, M, L, _, x]);
|
|
36685
36685
|
let D = Eu({ enter: Qa(a), enterFrom: Qa(s), enterTo: Qa(l), entered: Qa(c), leave: Qa(f), leaveFrom: Qa(p), leaveTo: Qa(m) }), Z = A_e({ beforeEnter: n, afterEnter: r, beforeLeave: i, afterLeave: o }), ne = PN();
|
|
36686
|
-
|
|
36686
|
+
nt(() => {
|
|
36687
36687
|
if (ne && A === "visible" && g.current === null)
|
|
36688
36688
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
36689
36689
|
}, [g, A, ne]);
|
|
@@ -36704,7 +36704,7 @@ let T_e = "div", BN = MN.RenderStrategy, zN = Yw(function(e, t) {
|
|
|
36704
36704
|
te.onStart(g, ae, F);
|
|
36705
36705
|
}), onStop: Eu((ae) => {
|
|
36706
36706
|
te.onStop(g, ae, G), ae === "leave" && !Jm(te) && (C("hidden"), L(g));
|
|
36707
|
-
}) }),
|
|
36707
|
+
}) }), nt(() => {
|
|
36708
36708
|
!J || (x === jo.Hidden ? q.current = null : q.current = _);
|
|
36709
36709
|
}, [_, J, A]);
|
|
36710
36710
|
let ue = h, R = { ref: v };
|
|
@@ -36722,7 +36722,7 @@ let T_e = "div", BN = MN.RenderStrategy, zN = Yw(function(e, t) {
|
|
|
36722
36722
|
m !== !1 && g.current[g.current.length - 1] !== n && (g.current.push(n), h(!1));
|
|
36723
36723
|
}, [g, n]);
|
|
36724
36724
|
let v = hs(() => ({ show: n, appear: r, initial: m }), [n, r, m]);
|
|
36725
|
-
|
|
36725
|
+
nt(() => {
|
|
36726
36726
|
if (n)
|
|
36727
36727
|
f("visible");
|
|
36728
36728
|
else if (!Jm(p))
|
|
@@ -36780,7 +36780,7 @@ function M_e() {
|
|
|
36780
36780
|
var e = yt(!1), t = Gn(function() {
|
|
36781
36781
|
return e.current;
|
|
36782
36782
|
}, []);
|
|
36783
|
-
return
|
|
36783
|
+
return nt(function() {
|
|
36784
36784
|
return e.current = !0, function() {
|
|
36785
36785
|
e.current = !1;
|
|
36786
36786
|
};
|
|
@@ -36807,7 +36807,7 @@ function zb(e, t) {
|
|
|
36807
36807
|
var n = L_e(e, t, {
|
|
36808
36808
|
loading: !0
|
|
36809
36809
|
}), r = n[0], i = n[1];
|
|
36810
|
-
return
|
|
36810
|
+
return nt(function() {
|
|
36811
36811
|
i();
|
|
36812
36812
|
}, [i]), r;
|
|
36813
36813
|
}
|
|
@@ -36822,7 +36822,7 @@ function j_e(e) {
|
|
|
36822
36822
|
e && e.removeEventListener && e.removeEventListener.apply(e, t);
|
|
36823
36823
|
}
|
|
36824
36824
|
var q_e = function(e) {
|
|
36825
|
-
|
|
36825
|
+
nt(e, []);
|
|
36826
36826
|
};
|
|
36827
36827
|
const ZN = q_e;
|
|
36828
36828
|
var U_e = function(e) {
|
|
@@ -36857,7 +36857,7 @@ var V_e = function(e) {
|
|
|
36857
36857
|
x: 0,
|
|
36858
36858
|
y: 0
|
|
36859
36859
|
}), n = t[0], r = t[1];
|
|
36860
|
-
return
|
|
36860
|
+
return nt(function() {
|
|
36861
36861
|
var i = function() {
|
|
36862
36862
|
e.current && r({
|
|
36863
36863
|
x: e.current.scrollLeft,
|
|
@@ -37611,7 +37611,7 @@ const Tc = (e) => (t) => {
|
|
|
37611
37611
|
conversationId: void 0,
|
|
37612
37612
|
disableRestartConversation: !1
|
|
37613
37613
|
}, n = e == null ? void 0 : e.client, r = e == null ? void 0 : e.conversationId, i = qo.getState().setClientMode, o = qo.getState().setConversationId;
|
|
37614
|
-
return n && i(n.mode),
|
|
37614
|
+
return n && i(n.mode), nt(() => {
|
|
37615
37615
|
r && o(r);
|
|
37616
37616
|
}, [r]), WN()(
|
|
37617
37617
|
KN(
|
|
@@ -37625,13 +37625,13 @@ const Tc = (e) => (t) => {
|
|
|
37625
37625
|
sendFile: (p) => s().client.sendFile(p),
|
|
37626
37626
|
sendTextMessage: async (p) => {
|
|
37627
37627
|
const m = s().client;
|
|
37628
|
-
|
|
37628
|
+
l({
|
|
37629
37629
|
direction: "outgoing",
|
|
37630
37630
|
sender: { name: "You" },
|
|
37631
37631
|
timestamp: /* @__PURE__ */ new Date(),
|
|
37632
37632
|
disableInput: !1,
|
|
37633
37633
|
block: { type: "bubble", block: { type: "text", text: p } }
|
|
37634
|
-
}), m != null && m.userId && f({ message: p, userId: m.userId });
|
|
37634
|
+
}), m && await m.sendMessage(p), m != null && m.userId && f({ message: p, userId: m.userId });
|
|
37635
37635
|
},
|
|
37636
37636
|
on: (p, m) => {
|
|
37637
37637
|
const h = s().client;
|
|
@@ -37667,7 +37667,7 @@ function rt(e) {
|
|
|
37667
37667
|
}
|
|
37668
37668
|
const pxe = ({ text: e, buttonValue: t, type: n, styles: r, variant: i, groupId: o, reusable: a, ...s }) => {
|
|
37669
37669
|
const l = rt((w) => w.eventEmitter), c = rt((w) => w.sendTextMessage), f = rt((w) => w.isReadOnly), [p, m] = ut(!1), [h, g] = ut(!1), [v, x] = ut(!1);
|
|
37670
|
-
|
|
37670
|
+
nt(() => {
|
|
37671
37671
|
if (o)
|
|
37672
37672
|
return l.on(`button-group-${o}-click`, () => {
|
|
37673
37673
|
g(!0), a || x(!0);
|
|
@@ -37726,7 +37726,7 @@ const gxe = st(
|
|
|
37726
37726
|
const a = w5(), { setIsLoading: s } = yxe(), [l, c] = ut(r), [f, p] = ut(!1);
|
|
37727
37727
|
return Ic(() => {
|
|
37728
37728
|
s((g) => [...g, a]);
|
|
37729
|
-
}, []),
|
|
37729
|
+
}, []), nt(() => {
|
|
37730
37730
|
e && l === "auto" && gwe(e).then(({ width: g, height: v }) => {
|
|
37731
37731
|
c(vxe(g, v)), s((x) => x.filter((_) => _ !== a));
|
|
37732
37732
|
});
|
|
@@ -38168,7 +38168,7 @@ function Xxe(e, t, n, r, i, o, a, s, l, c, f, p, m, h, g, v, x, _, w) {
|
|
|
38168
38168
|
const Be = n;
|
|
38169
38169
|
T.add(Be, "dragstart", (ct) => ct.preventDefault(), C).add(Be, "touchmove", () => {
|
|
38170
38170
|
}, C).add(Be, "touchend", () => {
|
|
38171
|
-
}).add(Be, "touchstart", Ce).add(Be, "mousedown", Ce).add(Be, "touchcancel", Ge).add(Be, "contextmenu", Ge).add(Be, "click",
|
|
38171
|
+
}).add(Be, "touchstart", Ce).add(Be, "mousedown", Ce).add(Be, "touchcancel", Ge).add(Be, "contextmenu", Ge).add(Be, "click", tt, !0);
|
|
38172
38172
|
}
|
|
38173
38173
|
function R() {
|
|
38174
38174
|
T.clear(), M.clear();
|
|
@@ -38203,7 +38203,7 @@ function Xxe(e, t, n, r, i, o, a, s, l, c, f, p, m, h, g, v, x, _, w) {
|
|
|
38203
38203
|
const Ce = p.byDistance(0, !1).index !== m.get(), Be = a.pointerUp(Se) * N(), ct = Pe(t.apply(Be), Ce), V = Kxe(Be, ct), ce = Z - 10 * V, Te = w + V / 50;
|
|
38204
38204
|
F = !1, H = !1, M.clear(), f.useDuration(ce).useFriction(Te), c.distance(ct, !v), te = !1, h.emit("pointerUp");
|
|
38205
38205
|
}
|
|
38206
|
-
function
|
|
38206
|
+
function tt(Se) {
|
|
38207
38207
|
G && (Se.stopPropagation(), Se.preventDefault());
|
|
38208
38208
|
}
|
|
38209
38209
|
function He() {
|
|
@@ -38779,7 +38779,7 @@ function y1e(e, t, n, r, i, o, a, s) {
|
|
|
38779
38779
|
stop: () => s.stop(ce),
|
|
38780
38780
|
update: () => Fe(ce),
|
|
38781
38781
|
render: (Te) => Ne(ce, Te)
|
|
38782
|
-
},
|
|
38782
|
+
}, tt = 0.68, He = R[Ae.get()], Oe = rp(He), Se = rp(He), Le = rp(He), Ce = n1e(Oe, Le, g, tt), Be = l1e(h, R, te, ae, Le), ct = c1e(Ge, Ae, N, Be, Ce, Le, a), V = p1e(L, te, J, F, ae, h, m), ce = {
|
|
38783
38783
|
ownerDocument: r,
|
|
38784
38784
|
ownerWindow: i,
|
|
38785
38785
|
eventHandler: a,
|
|
@@ -38788,7 +38788,7 @@ function y1e(e, t, n, r, i, o, a, s) {
|
|
|
38788
38788
|
animation: Ge,
|
|
38789
38789
|
axis: M,
|
|
38790
38790
|
direction: T,
|
|
38791
|
-
dragHandler: Xxe(M, T, e, r, i, Le, Qxe(M, i), Oe, Ge, ct, Ce, Be, Ae, a, q, v, x, w,
|
|
38791
|
+
dragHandler: Xxe(M, T, e, r, i, Le, Qxe(M, i), Oe, Ge, ct, Ce, Be, Ae, a, q, v, x, w, tt),
|
|
38792
38792
|
eventStore: kc(),
|
|
38793
38793
|
percentOfView: q,
|
|
38794
38794
|
index: Ae,
|
|
@@ -39021,7 +39021,7 @@ function Vu(e, t, n) {
|
|
|
39021
39021
|
function Ge() {
|
|
39022
39022
|
return M;
|
|
39023
39023
|
}
|
|
39024
|
-
function
|
|
39024
|
+
function tt() {
|
|
39025
39025
|
return S;
|
|
39026
39026
|
}
|
|
39027
39027
|
function He() {
|
|
@@ -39037,7 +39037,7 @@ function Vu(e, t, n) {
|
|
|
39037
39037
|
canScrollNext: ae,
|
|
39038
39038
|
canScrollPrev: Ae,
|
|
39039
39039
|
containerNode: Oe,
|
|
39040
|
-
internalEngine:
|
|
39040
|
+
internalEngine: tt,
|
|
39041
39041
|
destroy: H,
|
|
39042
39042
|
off: v,
|
|
39043
39043
|
on: g,
|
|
@@ -39064,16 +39064,16 @@ function n_(e = {}, t = []) {
|
|
|
39064
39064
|
const n = yt(e), r = yt(t), [i, o] = ut(), [a, s] = ut(), l = Gn(() => {
|
|
39065
39065
|
i && i.reInit(n.current, r.current);
|
|
39066
39066
|
}, [i]);
|
|
39067
|
-
return
|
|
39067
|
+
return nt(() => {
|
|
39068
39068
|
if (Hxe() && a) {
|
|
39069
39069
|
Vu.globalOptions = n_.globalOptions;
|
|
39070
39070
|
const c = Vu(a, n.current, r.current);
|
|
39071
39071
|
return o(c), () => c.destroy();
|
|
39072
39072
|
} else
|
|
39073
39073
|
o(void 0);
|
|
39074
|
-
}, [a, o]),
|
|
39074
|
+
}, [a, o]), nt(() => {
|
|
39075
39075
|
Xw(n.current, e) || (n.current = e, l());
|
|
39076
|
-
}, [e, l]),
|
|
39076
|
+
}, [e, l]), nt(() => {
|
|
39077
39077
|
Vxe(r.current, t) || (r.current = t, l());
|
|
39078
39078
|
}, [t, l]), [s, i];
|
|
39079
39079
|
}
|
|
@@ -39228,7 +39228,7 @@ const U1e = B.forwardRef(q1e), B1e = U1e, z1e = st(({ type: e, styles: t, blocks
|
|
|
39228
39228
|
const [i, o] = n_({ skipSnaps: !0 }), [a, s] = ut(!0), [l, c] = ut(!0), f = Gn(() => o && o.scrollPrev(), [o]), p = Gn(() => o && o.scrollNext(), [o]), m = t == null ? void 0 : t[e], h = Gn((g) => {
|
|
39229
39229
|
s(!g.canScrollPrev()), c(!g.canScrollNext());
|
|
39230
39230
|
}, []);
|
|
39231
|
-
return
|
|
39231
|
+
return nt(() => {
|
|
39232
39232
|
o && (h(o), o.on("reInit", h), o.on("select", h));
|
|
39233
39233
|
}, [o, h]), /* @__PURE__ */ Q.jsxs("div", { ...m == null ? void 0 : m.container, "data-container": "carousel", ref: i, children: [
|
|
39234
39234
|
/* @__PURE__ */ Q.jsx("div", { ref: r, ...m == null ? void 0 : m.slidesContainer, children: n.map((g, v) => /* @__PURE__ */ Q.jsx(vd, { styles: t, block: g }, v)) }),
|
|
@@ -40112,7 +40112,7 @@ const xSe = (e, t, n) => {
|
|
|
40112
40112
|
platform: o
|
|
40113
40113
|
});
|
|
40114
40114
|
};
|
|
40115
|
-
var ip = typeof document < "u" ? Ic :
|
|
40115
|
+
var ip = typeof document < "u" ? Ic : nt;
|
|
40116
40116
|
function Ih(e, t) {
|
|
40117
40117
|
if (e === t)
|
|
40118
40118
|
return !0;
|
|
@@ -40548,7 +40548,7 @@ function No(e, t) {
|
|
|
40548
40548
|
});
|
|
40549
40549
|
i ? o() : TT = requestAnimationFrame(o);
|
|
40550
40550
|
}
|
|
40551
|
-
var tr = typeof document < "u" ? Ic :
|
|
40551
|
+
var tr = typeof document < "u" ? Ic : nt;
|
|
40552
40552
|
function Dh() {
|
|
40553
40553
|
return Dh = Object.assign ? Object.assign.bind() : function(e) {
|
|
40554
40554
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -40902,11 +40902,11 @@ function aEe(e) {
|
|
|
40902
40902
|
const Pe = N.relatedTarget;
|
|
40903
40903
|
queueMicrotask(() => {
|
|
40904
40904
|
const Fe = !(Jr(_, Pe) || Jr(w, Pe) || Jr(Pe, w) || Jr(L == null ? void 0 : L.portalNode, Pe) || Pe != null && Pe.hasAttribute($c("focus-guard")) || M && (Tu(M.nodesRef.current, h).find((Ne) => {
|
|
40905
|
-
var Ge,
|
|
40906
|
-
return Jr((Ge = Ne.context) == null ? void 0 : Ge.elements.floating, Pe) || Jr((
|
|
40905
|
+
var Ge, tt;
|
|
40906
|
+
return Jr((Ge = Ne.context) == null ? void 0 : Ge.elements.floating, Pe) || Jr((tt = Ne.context) == null ? void 0 : tt.elements.domReference, Pe);
|
|
40907
40907
|
}) || GSe(M.nodesRef.current, h).find((Ne) => {
|
|
40908
|
-
var Ge,
|
|
40909
|
-
return ((Ge = Ne.context) == null ? void 0 : Ge.elements.floating) === Pe || ((
|
|
40908
|
+
var Ge, tt;
|
|
40909
|
+
return ((Ge = Ne.context) == null ? void 0 : Ge.elements.floating) === Pe || ((tt = Ne.context) == null ? void 0 : tt.elements.domReference) === Pe;
|
|
40910
40910
|
})));
|
|
40911
40911
|
Pe && Fe && !K.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
40912
40912
|
Pe !== J.current && (ne.current = !0, g(!1, N));
|
|
@@ -40952,9 +40952,9 @@ function aEe(e) {
|
|
|
40952
40952
|
return v.on("dismiss", Fe), () => {
|
|
40953
40953
|
v.off("dismiss", Fe);
|
|
40954
40954
|
const Ne = wa(Ae);
|
|
40955
|
-
(Jr(w, Ne) || M && Tu(M.nodesRef.current, h).some((
|
|
40955
|
+
(Jr(w, Ne) || M && Tu(M.nodesRef.current, h).some((tt) => {
|
|
40956
40956
|
var He;
|
|
40957
|
-
return Jr((He =
|
|
40957
|
+
return Jr((He = tt.context) == null ? void 0 : He.elements.floating, Ne);
|
|
40958
40958
|
}) || Pe.openEvent && ["click", "mousedown"].includes(Pe.openEvent.type)) && m.domReference.current && (J.current = m.domReference.current), // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40959
40959
|
T.current && Or(J.current) && !ne.current && No(J.current, {
|
|
40960
40960
|
// When dismissing nested floating elements, by the time the rAF has
|
|
@@ -41481,7 +41481,7 @@ function gEe(e, t) {
|
|
|
41481
41481
|
}), tr(() => {
|
|
41482
41482
|
n || (K.current = null);
|
|
41483
41483
|
}, [n]);
|
|
41484
|
-
const
|
|
41484
|
+
const tt = l != null, He = B.useMemo(() => {
|
|
41485
41485
|
function Oe(Le) {
|
|
41486
41486
|
if (!n)
|
|
41487
41487
|
return;
|
|
@@ -41572,7 +41572,7 @@ function gEe(e, t) {
|
|
|
41572
41572
|
function Ce(V) {
|
|
41573
41573
|
ne.current = _, _ === "auto" && cD(V.nativeEvent) && (ne.current = !0);
|
|
41574
41574
|
}
|
|
41575
|
-
const Be = x && n &&
|
|
41575
|
+
const Be = x && n && tt && {
|
|
41576
41576
|
"aria-activedescendant": Fe || N
|
|
41577
41577
|
}, ct = s.current.find((V) => (V == null ? void 0 : V.id) === N);
|
|
41578
41578
|
return {
|
|
@@ -41626,7 +41626,7 @@ function gEe(e, t) {
|
|
|
41626
41626
|
},
|
|
41627
41627
|
item: He
|
|
41628
41628
|
};
|
|
41629
|
-
}, [o, i, N, Fe, R, ae, s, f, C, v, x, n,
|
|
41629
|
+
}, [o, i, N, Fe, R, ae, s, f, C, v, x, n, tt, g, p, S, m, T, h, _, Z, r, He, D, L]);
|
|
41630
41630
|
}
|
|
41631
41631
|
function vEe(e, t) {
|
|
41632
41632
|
t === void 0 && (t = {});
|
|
@@ -41730,7 +41730,7 @@ function bEe(e, t) {
|
|
|
41730
41730
|
}, [c, r, i, o, p, C, A, w, S]);
|
|
41731
41731
|
}
|
|
41732
41732
|
const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
41733
|
-
var G, te, ue, R, ae, Ae, N, Pe, Fe, Ne, Ge,
|
|
41733
|
+
var G, te, ue, R, ae, Ae, N, Pe, Fe, Ne, Ge, tt;
|
|
41734
41734
|
const o = rt((He) => He.sendTextMessage), a = rt((He) => He.messageContainerRef), s = rt((He) => He.isReadOnly), [l, c] = B.useState(!1), [f, p] = B.useState(null), [m, h] = B.useState(null), g = n.reduce(
|
|
41735
41735
|
(He, Oe) => (He[Oe.label] = Oe.value, He),
|
|
41736
41736
|
{}
|
|
@@ -41804,7 +41804,7 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41804
41804
|
{
|
|
41805
41805
|
ref: _.setFloating,
|
|
41806
41806
|
className: (Fe = (Pe = (N = e == null ? void 0 : e[t]) == null ? void 0 : N.content) == null ? void 0 : Pe.container) == null ? void 0 : Fe.className,
|
|
41807
|
-
style: { ...w, ...(
|
|
41807
|
+
style: { ...w, ...(tt = (Ge = (Ne = e == null ? void 0 : e[t]) == null ? void 0 : Ne.content) == null ? void 0 : Ge.container) == null ? void 0 : tt.style },
|
|
41808
41808
|
...J(),
|
|
41809
41809
|
children: v.map((He, Oe) => {
|
|
41810
41810
|
var Se, Le;
|
|
@@ -41875,16 +41875,14 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41875
41875
|
})
|
|
41876
41876
|
), EEe = Os((e) => {
|
|
41877
41877
|
const { composer: t } = rt((x) => x.theme), n = rt((x) => x.configuration), r = rt((x) => x.disableComposer), { value: i, setValue: o, historyIndex: a, setHistoryIndex: s, sendMessage: l } = JN(), c = yt(null), f = qo((x) => x.user), p = qo((x) => x.messageHistory), [m, h] = ut(!1);
|
|
41878
|
-
Gpe(c.current, i)
|
|
41879
|
-
c.current && (c.current.selectionStart = c.current.value.length, c.current.selectionEnd = c.current.value.length);
|
|
41880
|
-
}, [i]);
|
|
41878
|
+
Gpe(c.current, i);
|
|
41881
41879
|
function g({ key: x }) {
|
|
41882
41880
|
x === "Shift" && h(!0);
|
|
41883
41881
|
}
|
|
41884
41882
|
function v({ key: x }) {
|
|
41885
41883
|
x === "Shift" && h(!1);
|
|
41886
41884
|
}
|
|
41887
|
-
return
|
|
41885
|
+
return nt(() => (window.addEventListener("keydown", g), window.addEventListener("keyup", v), () => {
|
|
41888
41886
|
window.removeEventListener("keydown", g), window.removeEventListener("keyup", v);
|
|
41889
41887
|
}), []), /* @__PURE__ */ Q.jsx(
|
|
41890
41888
|
"textarea",
|
|
@@ -41980,7 +41978,7 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41980
41978
|
return n.current || (n.current = i), /* @__PURE__ */ Q.jsx(GN.Provider, { value: n.current, children: /* @__PURE__ */ Q.jsx(kEe, { children: e }) });
|
|
41981
41979
|
}, kEe = ({ children: e }) => {
|
|
41982
41980
|
const t = rt((h) => h.client), n = rt((h) => h.addMessage), r = rt((h) => h.setMessages), i = rt((h) => h.configuration), o = rt((h) => h.setConnected), a = rt((h) => h.userData), s = qo((h) => h.setConversationId), l = qo((h) => h.user), c = qo((h) => h.conversationId), f = qo((h) => h.setUser), [p, m] = ut(0);
|
|
41983
|
-
return
|
|
41981
|
+
return nt(() => {
|
|
41984
41982
|
if (t)
|
|
41985
41983
|
return t.on("message", (h) => {
|
|
41986
41984
|
try {
|
|
@@ -41996,7 +41994,7 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41996
41994
|
console.error("Invalid message payload");
|
|
41997
41995
|
}
|
|
41998
41996
|
});
|
|
41999
|
-
}, []),
|
|
41997
|
+
}, []), nt(() => {
|
|
42000
41998
|
if (t)
|
|
42001
41999
|
return t.on("conversation", (h) => {
|
|
42002
42000
|
s(h);
|
|
@@ -42079,7 +42077,7 @@ function ID({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
42079
42077
|
}
|
|
42080
42078
|
function REe({ defaultProp: e, onChange: t }) {
|
|
42081
42079
|
const n = ut(e), [r] = n, i = yt(r), o = Dr(t);
|
|
42082
|
-
return
|
|
42080
|
+
return nt(() => {
|
|
42083
42081
|
i.current !== r && (o(r), i.current = r);
|
|
42084
42082
|
}, [
|
|
42085
42083
|
r,
|
|
@@ -42089,7 +42087,7 @@ function REe({ defaultProp: e, onChange: t }) {
|
|
|
42089
42087
|
}
|
|
42090
42088
|
function IEe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
42091
42089
|
const n = Dr(e);
|
|
42092
|
-
|
|
42090
|
+
nt(() => {
|
|
42093
42091
|
const r = (i) => {
|
|
42094
42092
|
i.key === "Escape" && n(i);
|
|
42095
42093
|
};
|
|
@@ -42129,7 +42127,7 @@ const DEe = /* @__PURE__ */ Ti({
|
|
|
42129
42127
|
}, h);
|
|
42130
42128
|
return IEe((L) => {
|
|
42131
42129
|
S === f.layers.size - 1 && (i == null || i(L), !L.defaultPrevented && l && (L.preventDefault(), l()));
|
|
42132
|
-
}, h),
|
|
42130
|
+
}, h), nt(() => {
|
|
42133
42131
|
if (p)
|
|
42134
42132
|
return r && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (DT = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(p)), f.layers.add(p), MT(), () => {
|
|
42135
42133
|
r && f.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = DT);
|
|
@@ -42139,12 +42137,12 @@ const DEe = /* @__PURE__ */ Ti({
|
|
|
42139
42137
|
h,
|
|
42140
42138
|
r,
|
|
42141
42139
|
f
|
|
42142
|
-
]),
|
|
42140
|
+
]), nt(() => () => {
|
|
42143
42141
|
p && (f.layers.delete(p), f.layersWithOutsidePointerEventsDisabled.delete(p), MT());
|
|
42144
42142
|
}, [
|
|
42145
42143
|
p,
|
|
42146
42144
|
f
|
|
42147
|
-
]),
|
|
42145
|
+
]), nt(() => {
|
|
42148
42146
|
const L = () => g({});
|
|
42149
42147
|
return document.addEventListener(Gb, L), () => document.removeEventListener(Gb, L);
|
|
42150
42148
|
}, []), /* @__PURE__ */ it(vr.div, vs({}, c, {
|
|
@@ -42161,7 +42159,7 @@ const DEe = /* @__PURE__ */ Ti({
|
|
|
42161
42159
|
function LEe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
42162
42160
|
const n = Dr(e), r = yt(!1), i = yt(() => {
|
|
42163
42161
|
});
|
|
42164
|
-
return
|
|
42162
|
+
return nt(() => {
|
|
42165
42163
|
const o = (s) => {
|
|
42166
42164
|
if (s.target && !r.current) {
|
|
42167
42165
|
let c = function() {
|
|
@@ -42193,7 +42191,7 @@ function LEe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
42193
42191
|
}
|
|
42194
42192
|
function FEe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
42195
42193
|
const n = Dr(e), r = yt(!1);
|
|
42196
|
-
return
|
|
42194
|
+
return nt(() => {
|
|
42197
42195
|
const i = (o) => {
|
|
42198
42196
|
o.target && !r.current && PD(NEe, n, {
|
|
42199
42197
|
originalEvent: o
|
|
@@ -42240,7 +42238,7 @@ const _v = "focusScope.autoFocusOnMount", xv = "focusScope.autoFocusOnUnmount",
|
|
|
42240
42238
|
this.paused = !1;
|
|
42241
42239
|
}
|
|
42242
42240
|
}).current;
|
|
42243
|
-
|
|
42241
|
+
nt(() => {
|
|
42244
42242
|
if (r) {
|
|
42245
42243
|
let v = function(S) {
|
|
42246
42244
|
if (h.paused || !s)
|
|
@@ -42274,7 +42272,7 @@ const _v = "focusScope.autoFocusOnMount", xv = "focusScope.autoFocusOnUnmount",
|
|
|
42274
42272
|
r,
|
|
42275
42273
|
s,
|
|
42276
42274
|
h.paused
|
|
42277
|
-
]),
|
|
42275
|
+
]), nt(() => {
|
|
42278
42276
|
if (s) {
|
|
42279
42277
|
jT.add(h);
|
|
42280
42278
|
const v = document.activeElement;
|
|
@@ -42433,7 +42431,7 @@ function VEe(e) {
|
|
|
42433
42431
|
MOUNT: "mounted"
|
|
42434
42432
|
}
|
|
42435
42433
|
});
|
|
42436
|
-
return
|
|
42434
|
+
return nt(() => {
|
|
42437
42435
|
const c = Cf(r.current);
|
|
42438
42436
|
o.current = s === "mounted" ? c : "none";
|
|
42439
42437
|
}, [
|
|
@@ -42480,7 +42478,7 @@ function Cf(e) {
|
|
|
42480
42478
|
}
|
|
42481
42479
|
let Sv = 0;
|
|
42482
42480
|
function KEe() {
|
|
42483
|
-
|
|
42481
|
+
nt(() => {
|
|
42484
42482
|
var e, t;
|
|
42485
42483
|
const n = document.querySelectorAll("[data-radix-focus-guard]");
|
|
42486
42484
|
return document.body.insertAdjacentElement("afterbegin", (e = n[0]) !== null && e !== void 0 ? e : UT()), document.body.insertAdjacentElement("beforeend", (t = n[1]) !== null && t !== void 0 ? t : UT()), Sv++, () => {
|
|
@@ -43062,7 +43060,7 @@ const ZD = "Dialog", [WD, yke] = Sm(ZD), [NAe, ea] = WD(ZD), DAe = (e) => {
|
|
|
43062
43060
|
})));
|
|
43063
43061
|
}), BAe = /* @__PURE__ */ st((e, t) => {
|
|
43064
43062
|
const n = ea(Rc, e.__scopeDialog), r = yt(null), i = hi(t, n.contentRef, r);
|
|
43065
|
-
return
|
|
43063
|
+
return nt(() => {
|
|
43066
43064
|
const o = r.current;
|
|
43067
43065
|
if (o)
|
|
43068
43066
|
return PAe(o);
|
|
@@ -43203,7 +43201,7 @@ const nTe = st(({ children: e, ...t }, n) => {
|
|
|
43203
43201
|
] });
|
|
43204
43202
|
}), rTe = () => {
|
|
43205
43203
|
const { modal: e } = rt((r) => r.theme), t = rt((r) => r.connected), { showModal: n } = eD();
|
|
43206
|
-
return
|
|
43204
|
+
return nt(() => {
|
|
43207
43205
|
var r, i, o, a;
|
|
43208
43206
|
t || n({
|
|
43209
43207
|
title: "Connection Error",
|
|
@@ -43276,7 +43274,7 @@ const nTe = st(({ children: e, ...t }, n) => {
|
|
|
43276
43274
|
);
|
|
43277
43275
|
}), cTe = /* @__PURE__ */ st((e, t) => {
|
|
43278
43276
|
const { __scopeCollapsible: n, present: r, children: i, ...o } = e, a = p_(JD, n), [s, l] = ut(r), c = yt(null), f = hi(t, c), p = yt(0), m = p.current, h = yt(0), g = h.current, v = a.open || s, x = yt(v), _ = yt();
|
|
43279
|
-
return
|
|
43277
|
+
return nt(() => {
|
|
43280
43278
|
const w = requestAnimationFrame(
|
|
43281
43279
|
() => x.current = !1
|
|
43282
43280
|
);
|
|
@@ -43498,7 +43496,7 @@ const dTe = aTe, fTe = uTe, pTe = lTe, hTe = (e) => /* @__PURE__ */ B.createElem
|
|
|
43498
43496
|
const [l, c] = ut([]), { message: f } = rt((S) => S.theme), { botAvatar: p, botName: m } = rt((S) => S.configuration), h = rt((S) => S.getClientId)();
|
|
43499
43497
|
B_e(() => {
|
|
43500
43498
|
n();
|
|
43501
|
-
}),
|
|
43499
|
+
}), nt(() => {
|
|
43502
43500
|
l.length === 0 && n();
|
|
43503
43501
|
}, [l.length]);
|
|
43504
43502
|
const g = sP(h ?? "", 15);
|
|
@@ -43608,7 +43606,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43608
43606
|
}, r)));
|
|
43609
43607
|
}), ta = "ScrollAreaScrollbar", DTe = /* @__PURE__ */ st((e, t) => {
|
|
43610
43608
|
const { forceMount: n, ...r } = e, i = Oi(ta, e.__scopeScrollArea), { onScrollbarXEnabledChange: o, onScrollbarYEnabledChange: a } = i, s = e.orientation === "horizontal";
|
|
43611
|
-
return
|
|
43609
|
+
return nt(() => (s ? o(!0) : a(!0), () => {
|
|
43612
43610
|
s ? o(!1) : a(!1);
|
|
43613
43611
|
}), [
|
|
43614
43612
|
s,
|
|
@@ -43628,7 +43626,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43628
43626
|
})) : null;
|
|
43629
43627
|
}), MTe = /* @__PURE__ */ st((e, t) => {
|
|
43630
43628
|
const { forceMount: n, ...r } = e, i = Oi(ta, e.__scopeScrollArea), [o, a] = ut(!1);
|
|
43631
|
-
return
|
|
43629
|
+
return nt(() => {
|
|
43632
43630
|
const s = i.scrollArea;
|
|
43633
43631
|
let l = 0;
|
|
43634
43632
|
if (s) {
|
|
@@ -43676,7 +43674,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43676
43674
|
POINTER_ENTER: "interacting"
|
|
43677
43675
|
}
|
|
43678
43676
|
});
|
|
43679
|
-
return
|
|
43677
|
+
return nt(() => {
|
|
43680
43678
|
if (s === "idle") {
|
|
43681
43679
|
const c = window.setTimeout(
|
|
43682
43680
|
() => l("HIDE"),
|
|
@@ -43688,7 +43686,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43688
43686
|
s,
|
|
43689
43687
|
i.scrollHideDelay,
|
|
43690
43688
|
l
|
|
43691
|
-
]),
|
|
43689
|
+
]), nt(() => {
|
|
43692
43690
|
const c = i.viewport, f = o ? "scrollLeft" : "scrollTop";
|
|
43693
43691
|
if (c) {
|
|
43694
43692
|
let p = c[f];
|
|
@@ -43784,7 +43782,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43784
43782
|
})) : null;
|
|
43785
43783
|
}), FTe = /* @__PURE__ */ st((e, t) => {
|
|
43786
43784
|
const { sizes: n, onSizesChange: r, ...i } = e, o = Oi(ta, e.__scopeScrollArea), [a, s] = ut(), l = yt(null), c = hi(t, l, o.onScrollbarXChange);
|
|
43787
|
-
return
|
|
43785
|
+
return nt(() => {
|
|
43788
43786
|
l.current && s(getComputedStyle(l.current));
|
|
43789
43787
|
}, [
|
|
43790
43788
|
l
|
|
@@ -43822,7 +43820,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43822
43820
|
}));
|
|
43823
43821
|
}), jTe = /* @__PURE__ */ st((e, t) => {
|
|
43824
43822
|
const { sizes: n, onSizesChange: r, ...i } = e, o = Oi(ta, e.__scopeScrollArea), [a, s] = ut(), l = yt(null), c = hi(t, l, o.onScrollbarYChange);
|
|
43825
|
-
return
|
|
43823
|
+
return nt(() => {
|
|
43826
43824
|
l.current && s(getComputedStyle(l.current));
|
|
43827
43825
|
}, [
|
|
43828
43826
|
l
|
|
@@ -43873,7 +43871,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43873
43871
|
});
|
|
43874
43872
|
}
|
|
43875
43873
|
}
|
|
43876
|
-
return
|
|
43874
|
+
return nt(() => {
|
|
43877
43875
|
const q = (D) => {
|
|
43878
43876
|
const Z = D.target;
|
|
43879
43877
|
(g == null ? void 0 : g.contains(Z)) && C(D, A);
|
|
@@ -43888,7 +43886,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43888
43886
|
g,
|
|
43889
43887
|
A,
|
|
43890
43888
|
C
|
|
43891
|
-
]),
|
|
43889
|
+
]), nt(T, [
|
|
43892
43890
|
r,
|
|
43893
43891
|
T
|
|
43894
43892
|
]), Yu(g, M), Yu(h.content, M), /* @__PURE__ */ it(qTe, {
|
|
@@ -43928,7 +43926,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43928
43926
|
), c = yt(), f = ay(() => {
|
|
43929
43927
|
c.current && (c.current(), c.current = void 0);
|
|
43930
43928
|
}, 100);
|
|
43931
|
-
return
|
|
43929
|
+
return nt(() => {
|
|
43932
43930
|
const p = o.viewport;
|
|
43933
43931
|
if (p) {
|
|
43934
43932
|
const m = () => {
|
|
@@ -44056,7 +44054,7 @@ const HTe = (e, t = () => {
|
|
|
44056
44054
|
};
|
|
44057
44055
|
function ay(e, t) {
|
|
44058
44056
|
const n = Dr(e), r = yt(0);
|
|
44059
|
-
return
|
|
44057
|
+
return nt(
|
|
44060
44058
|
() => () => window.clearTimeout(r.current),
|
|
44061
44059
|
[]
|
|
44062
44060
|
), Gn(() => {
|
|
@@ -44193,8 +44191,8 @@ var sM = { exports: {} };
|
|
|
44193
44191
|
case p:
|
|
44194
44192
|
return ue ? ae(1, Pe) : ae(0, Pe + 1);
|
|
44195
44193
|
case f:
|
|
44196
|
-
var Ge = this.$locale().weekStart || 0,
|
|
44197
|
-
return ae(ue ? Fe -
|
|
44194
|
+
var Ge = this.$locale().weekStart || 0, tt = (N < Ge ? N + 7 : N) - Ge;
|
|
44195
|
+
return ae(ue ? Fe - tt : Fe + (6 - tt), Pe);
|
|
44198
44196
|
case c:
|
|
44199
44197
|
case g:
|
|
44200
44198
|
return Ae(Ne + "Hours", 0);
|
|
@@ -44246,7 +44244,7 @@ var sM = { exports: {} };
|
|
|
44246
44244
|
return te.invalidDate || v;
|
|
44247
44245
|
var ue = F || "YYYY-MM-DDTHH:mm:ssZ", R = Z.z(this), ae = this.$H, Ae = this.$m, N = this.$M, Pe = te.weekdays, Fe = te.months, Ne = te.meridiem, Ge = function(Oe, Se, Le, Ce) {
|
|
44248
44246
|
return Oe && (Oe[Se] || Oe(G, ue)) || Le[Se].slice(0, Ce);
|
|
44249
|
-
},
|
|
44247
|
+
}, tt = function(Oe) {
|
|
44250
44248
|
return Z.s(ae % 12 || 12, Oe, "0");
|
|
44251
44249
|
}, He = Ne || function(Oe, Se, Le) {
|
|
44252
44250
|
var Ce = Oe < 12 ? "AM" : "PM";
|
|
@@ -44284,9 +44282,9 @@ var sM = { exports: {} };
|
|
|
44284
44282
|
case "HH":
|
|
44285
44283
|
return Z.s(ae, 2, "0");
|
|
44286
44284
|
case "h":
|
|
44287
|
-
return
|
|
44285
|
+
return tt(1);
|
|
44288
44286
|
case "hh":
|
|
44289
|
-
return
|
|
44287
|
+
return tt(2);
|
|
44290
44288
|
case "a":
|
|
44291
44289
|
return He(ae, Ae, !0);
|
|
44292
44290
|
case "A":
|
|
@@ -44443,17 +44441,17 @@ const GT = 10 * 1e3, oCe = Os(({ scrollDownButton: e, ...t }) => {
|
|
|
44443
44441
|
const { scrollHeight: F } = l.current;
|
|
44444
44442
|
m && l.current.scrollTo({ top: F });
|
|
44445
44443
|
};
|
|
44446
|
-
|
|
44444
|
+
nt(() => {
|
|
44447
44445
|
const F = new Date(Date.now() - GT + 2e3);
|
|
44448
44446
|
r.length > 0 && r[r.length - 1].timestamp < F && f(!1);
|
|
44449
|
-
}, [v]),
|
|
44447
|
+
}, [v]), nt(() => o("messageSent", () => {
|
|
44450
44448
|
f(!0), x(new Date(Date.now() + GT));
|
|
44451
|
-
}), []),
|
|
44449
|
+
}), []), nt(() => o("message", () => {
|
|
44452
44450
|
f(!1);
|
|
44453
|
-
}), []),
|
|
44451
|
+
}), []), nt(() => {
|
|
44454
44452
|
const F = r[r.length - 1];
|
|
44455
44453
|
i({ disableComposer: !!(F != null && F.disableInput) });
|
|
44456
|
-
}, [r.length]),
|
|
44454
|
+
}, [r.length]), nt(() => {
|
|
44457
44455
|
if (!l.current)
|
|
44458
44456
|
return;
|
|
44459
44457
|
const { offsetHeight: F, scrollHeight: G, scrollTop: te } = l.current;
|