@botpress/webchat 2.1.1 → 2.1.3
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 zU = Object.defineProperty;
|
|
|
2
2
|
var ZU = (e, t, n) => t in e ? zU(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var I = (e, t, n) => (ZU(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as B from "react";
|
|
5
|
-
import jn, { createContext as Ci, useMemo as hs, createElement as
|
|
5
|
+
import jn, { createContext as Ci, useMemo as hs, createElement as it, useContext as Wi, useRef as yt, useEffect as nt, useLayoutEffect as Rc, useCallback as Gn, forwardRef as st, Children as hu, isValidElement as tc, cloneElement as Mh, Fragment as Ea, useState as ut, useDebugValue as WU, useId as HU, memo as Ts, useReducer as IC } from "react";
|
|
6
6
|
import * as VU from "react-dom";
|
|
7
7
|
import { flushSync as PC, createPortal as KU } from "react-dom";
|
|
8
8
|
var lt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -376,7 +376,7 @@ function YU() {
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
var je = Array.isArray;
|
|
379
|
-
function
|
|
379
|
+
function ot(z) {
|
|
380
380
|
return je(z);
|
|
381
381
|
}
|
|
382
382
|
function Pt(z) {
|
|
@@ -563,7 +563,7 @@ Check the top-level render call using <` + Ue + ">.");
|
|
|
563
563
|
{
|
|
564
564
|
if (typeof z != "object")
|
|
565
565
|
return;
|
|
566
|
-
if (
|
|
566
|
+
if (ot(z))
|
|
567
567
|
for (var Ue = 0; Ue < z.length; Ue++) {
|
|
568
568
|
var vt = z[Ue];
|
|
569
569
|
P(vt) && Ze(vt, Ee);
|
|
@@ -624,7 +624,7 @@ Check the top-level render call using <` + Ue + ">.");
|
|
|
624
624
|
var Mn = ze(Vt);
|
|
625
625
|
Mn ? $t += Mn : $t += De();
|
|
626
626
|
var An;
|
|
627
|
-
z === null ? An = "null" :
|
|
627
|
+
z === null ? An = "null" : ot(z) ? An = "array" : z !== void 0 && z.$$typeof === t ? (An = "<" + (J(z.type) || "Unknown") + " />", $t = " Did you accidentally export a JSX literal instead of a component?") : An = typeof z, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", An, $t);
|
|
628
628
|
}
|
|
629
629
|
var Cn = At(z, Ee, Ue, Vt, an);
|
|
630
630
|
if (Cn == null)
|
|
@@ -633,7 +633,7 @@ Check the top-level render call using <` + Ue + ">.");
|
|
|
633
633
|
var qr = Ee.children;
|
|
634
634
|
if (qr !== void 0)
|
|
635
635
|
if (vt)
|
|
636
|
-
if (
|
|
636
|
+
if (ot(qr)) {
|
|
637
637
|
for (var $i = 0; $i < qr.length; $i++)
|
|
638
638
|
xt(qr[$i], z);
|
|
639
639
|
Object.freeze && Object.freeze(qr);
|
|
@@ -680,7 +680,7 @@ function Lh(e, t = []) {
|
|
|
680
680
|
() => y,
|
|
681
681
|
Object.values(y)
|
|
682
682
|
);
|
|
683
|
-
return /* @__PURE__ */
|
|
683
|
+
return /* @__PURE__ */ it(v.Provider, {
|
|
684
684
|
value: x
|
|
685
685
|
}, h);
|
|
686
686
|
}
|
|
@@ -790,11 +790,11 @@ const Hb = /* @__PURE__ */ st((e, t) => {
|
|
|
790
790
|
const { children: n, ...r } = e, i = hu.toArray(n), o = i.find(e5);
|
|
791
791
|
if (o) {
|
|
792
792
|
const a = o.props.children, s = i.map((l) => l === o ? hu.count(a) > 1 ? hu.only(null) : /* @__PURE__ */ tc(a) ? a.props.children : null : l);
|
|
793
|
-
return /* @__PURE__ */
|
|
793
|
+
return /* @__PURE__ */ it(Ev, ms({}, r, {
|
|
794
794
|
ref: t
|
|
795
795
|
}), /* @__PURE__ */ tc(a) ? /* @__PURE__ */ Mh(a, void 0, s) : null);
|
|
796
796
|
}
|
|
797
|
-
return /* @__PURE__ */
|
|
797
|
+
return /* @__PURE__ */ it(Ev, ms({}, r, {
|
|
798
798
|
ref: t
|
|
799
799
|
}), n);
|
|
800
800
|
});
|
|
@@ -807,7 +807,7 @@ const Ev = /* @__PURE__ */ st((e, t) => {
|
|
|
807
807
|
}) : hu.count(n) > 1 ? hu.only(null) : null;
|
|
808
808
|
});
|
|
809
809
|
Ev.displayName = "SlotClone";
|
|
810
|
-
const QU = ({ children: e }) => /* @__PURE__ */
|
|
810
|
+
const QU = ({ children: e }) => /* @__PURE__ */ it(Ea, null, e);
|
|
811
811
|
function e5(e) {
|
|
812
812
|
return /* @__PURE__ */ tc(e) && e.type === QU;
|
|
813
813
|
}
|
|
@@ -854,7 +854,7 @@ const n5 = [
|
|
|
854
854
|
const { asChild: o, ...a } = r, s = o ? Hb : t;
|
|
855
855
|
return nt(() => {
|
|
856
856
|
window[Symbol.for("radix-ui")] = !0;
|
|
857
|
-
}, []), /* @__PURE__ */
|
|
857
|
+
}, []), /* @__PURE__ */ it(s, ms({}, a, {
|
|
858
858
|
ref: i
|
|
859
859
|
}));
|
|
860
860
|
});
|
|
@@ -870,11 +870,11 @@ function r5(e, t) {
|
|
|
870
870
|
}
|
|
871
871
|
const DC = "Avatar", [i5, WCe] = Lh(DC), [o5, MC] = i5(DC), LC = /* @__PURE__ */ st((e, t) => {
|
|
872
872
|
const { __scopeAvatar: n, ...r } = e, [i, o] = ut("idle");
|
|
873
|
-
return /* @__PURE__ */
|
|
873
|
+
return /* @__PURE__ */ it(o5, {
|
|
874
874
|
scope: n,
|
|
875
875
|
imageLoadingStatus: i,
|
|
876
876
|
onImageLoadingStatusChange: o
|
|
877
|
-
}, /* @__PURE__ */
|
|
877
|
+
}, /* @__PURE__ */ it(gr.span, Ht({}, r, {
|
|
878
878
|
ref: t
|
|
879
879
|
})));
|
|
880
880
|
}), a5 = "AvatarImage", FC = /* @__PURE__ */ st((e, t) => {
|
|
@@ -887,7 +887,7 @@ const DC = "Avatar", [i5, WCe] = Lh(DC), [o5, MC] = i5(DC), LC = /* @__PURE__ */
|
|
|
887
887
|
}, [
|
|
888
888
|
s,
|
|
889
889
|
l
|
|
890
|
-
]), s === "loaded" ? /* @__PURE__ */
|
|
890
|
+
]), s === "loaded" ? /* @__PURE__ */ it(gr.img, Ht({}, o, {
|
|
891
891
|
ref: t,
|
|
892
892
|
src: r
|
|
893
893
|
})) : null;
|
|
@@ -903,7 +903,7 @@ const DC = "Avatar", [i5, WCe] = Lh(DC), [o5, MC] = i5(DC), LC = /* @__PURE__ */
|
|
|
903
903
|
}
|
|
904
904
|
}, [
|
|
905
905
|
r
|
|
906
|
-
]), a && o.imageLoadingStatus !== "loaded" ? /* @__PURE__ */
|
|
906
|
+
]), a && o.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ it(gr.span, Ht({}, i, {
|
|
907
907
|
ref: t
|
|
908
908
|
})) : null;
|
|
909
909
|
});
|
|
@@ -4955,7 +4955,7 @@ function c4(e) {
|
|
|
4955
4955
|
resourceDestinationString: a,
|
|
4956
4956
|
resourceTitleString: a,
|
|
4957
4957
|
setextHeading: o(Be),
|
|
4958
|
-
strong: o(
|
|
4958
|
+
strong: o(ot),
|
|
4959
4959
|
thematicBreak: o(gt)
|
|
4960
4960
|
},
|
|
4961
4961
|
exit: {
|
|
@@ -5429,7 +5429,7 @@ function c4(e) {
|
|
|
5429
5429
|
children: []
|
|
5430
5430
|
};
|
|
5431
5431
|
}
|
|
5432
|
-
function
|
|
5432
|
+
function ot() {
|
|
5433
5433
|
return {
|
|
5434
5434
|
type: "strong",
|
|
5435
5435
|
children: []
|
|
@@ -14419,7 +14419,7 @@ gp.exports;
|
|
|
14419
14419
|
["partial", k],
|
|
14420
14420
|
["partialRight", C],
|
|
14421
14421
|
["rearg", j]
|
|
14422
|
-
], Fe = "[object Arguments]", Ne = "[object Array]", Ge = "[object AsyncFunction]", tt = "[object Boolean]", He = "[object Date]", Oe = "[object DOMException]", Se = "[object Error]", Le = "[object Function]", ke = "[object GeneratorFunction]", Be = "[object Map]", ct = "[object Number]", V = "[object Null]", ce = "[object Object]", Ce = "[object Promise]", we = "[object Proxy]", Je = "[object RegExp]", je = "[object Set]",
|
|
14422
|
+
], Fe = "[object Arguments]", Ne = "[object Array]", Ge = "[object AsyncFunction]", tt = "[object Boolean]", He = "[object Date]", Oe = "[object DOMException]", Se = "[object Error]", Le = "[object Function]", ke = "[object GeneratorFunction]", Be = "[object Map]", ct = "[object Number]", V = "[object Null]", ce = "[object Object]", Ce = "[object Promise]", we = "[object Proxy]", Je = "[object RegExp]", je = "[object Set]", ot = "[object String]", Pt = "[object Symbol]", gt = "[object Undefined]", re = "[object WeakMap]", de = "[object WeakSet]", _e = "[object ArrayBuffer]", qe = "[object DataView]", ft = "[object Float32Array]", fn = "[object Float64Array]", nn = "[object Int8Array]", Jt = "[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, Xt = /[\\^$.*+?()[\]{}|]/g, mn = RegExp(Xt.source), Rn = /^\s+/, cr = /\s/, wo = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ls = /\{\n\/\* \[wrapped with (.+)\] \*/, z = /,? & /, Ee = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ue = /[()=,{}\[\]\/\s]/, vt = /\\(\\)?/g, Vt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, an = /\w*$/, Ft = /^[-+]0x[0-9a-f]+$/i, $t = /^0b[01]+$/i, Mn = /^\[object .+?Constructor\]$/, An = /^0o[0-7]+$/i, Cn = /^(?:0|[1-9]\d*)$/, qr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, $i = /($^)/, bd = /['\n\r\u2028\u2029\\]/g, Ur = "\\ud800-\\udfff", MD = "\\u0300-\\u036f", LD = "\\ufe20-\\ufe2f", FD = "\\u20d0-\\u20ff", Q_ = MD + LD + FD, ew = "\\u2700-\\u27bf", tw = "a-z\\xdf-\\xf6\\xf8-\\xff", jD = "\\xac\\xb1\\xd7\\xf7", qD = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", UD = "\\u2000-\\u206f", BD = " \\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", nw = "A-Z\\xc0-\\xd6\\xd8-\\xde", rw = "\\ufe0e\\ufe0f", iw = jD + qD + UD + BD, ry = "['’]", zD = "[" + Ur + "]", ow = "[" + iw + "]", _d = "[" + Q_ + "]", aw = "\\d+", ZD = "[" + ew + "]", sw = "[" + tw + "]", uw = "[^" + Ur + iw + aw + ew + tw + nw + "]", iy = "\\ud83c[\\udffb-\\udfff]", WD = "(?:" + _d + "|" + iy + ")", lw = "[^" + Ur + "]", oy = "(?:\\ud83c[\\udde6-\\uddff]){2}", ay = "[\\ud800-\\udbff][\\udc00-\\udfff]", Fs = "[" + nw + "]", cw = "\\u200d", dw = "(?:" + sw + "|" + uw + ")", HD = "(?:" + Fs + "|" + uw + ")", fw = "(?:" + ry + "(?:d|ll|m|re|s|t|ve))?", pw = "(?:" + ry + "(?:D|LL|M|RE|S|T|VE))?", hw = WD + "?", mw = "[" + rw + "]?", VD = "(?:" + cw + "(?:" + [lw, oy, ay].join("|") + ")" + mw + hw + ")*", KD = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", GD = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", yw = mw + hw + VD, YD = "(?:" + [ZD, oy, ay].join("|") + ")" + yw, JD = "(?:" + [lw + _d + "?", _d, oy, ay, zD].join("|") + ")", XD = RegExp(ry, "g"), QD = RegExp(_d, "g"), sy = RegExp(iy + "(?=" + iy + ")|" + JD + yw, "g"), eM = RegExp([
|
|
14423
14423
|
Fs + "?" + sw + "+" + fw + "(?=" + [ow, Fs, "$"].join("|") + ")",
|
|
14424
14424
|
HD + "+" + pw + "(?=" + [ow, Fs + dw, "$"].join("|") + ")",
|
|
14425
14425
|
Fs + "?" + dw + "+" + fw,
|
|
@@ -14460,9 +14460,9 @@ gp.exports;
|
|
|
14460
14460
|
"parseInt",
|
|
14461
14461
|
"setTimeout"
|
|
14462
14462
|
], iM = -1, kn = {};
|
|
14463
|
-
kn[ft] = kn[fn] = kn[nn] = kn[Jt] = kn[cn] = kn[En] = kn[X] = kn[oe] = kn[pt] = !0, kn[Fe] = kn[Ne] = kn[_e] = kn[tt] = kn[qe] = kn[He] = kn[Se] = kn[Le] = kn[Be] = kn[ct] = kn[ce] = kn[Je] = kn[je] = kn[
|
|
14463
|
+
kn[ft] = kn[fn] = kn[nn] = kn[Jt] = kn[cn] = kn[En] = kn[X] = kn[oe] = kn[pt] = !0, kn[Fe] = kn[Ne] = kn[_e] = kn[tt] = kn[qe] = kn[He] = kn[Se] = kn[Le] = kn[Be] = kn[ct] = kn[ce] = kn[Je] = kn[je] = kn[ot] = kn[re] = !1;
|
|
14464
14464
|
var wn = {};
|
|
14465
|
-
wn[Fe] = wn[Ne] = wn[_e] = wn[qe] = wn[tt] = wn[He] = wn[ft] = wn[fn] = wn[nn] = wn[Jt] = wn[cn] = wn[Be] = wn[ct] = wn[ce] = wn[Je] = wn[je] = wn[
|
|
14465
|
+
wn[Fe] = wn[Ne] = wn[_e] = wn[qe] = wn[tt] = wn[He] = wn[ft] = wn[fn] = wn[nn] = wn[Jt] = wn[cn] = wn[Be] = wn[ct] = wn[ce] = wn[Je] = wn[je] = wn[ot] = wn[Pt] = wn[En] = wn[X] = wn[oe] = wn[pt] = !0, wn[Se] = wn[Le] = wn[re] = !1;
|
|
14466
14466
|
var oM = {
|
|
14467
14467
|
// Latin-1 Supplement block.
|
|
14468
14468
|
À: "A",
|
|
@@ -15053,12 +15053,12 @@ gp.exports;
|
|
|
15053
15053
|
return u;
|
|
15054
15054
|
}
|
|
15055
15055
|
function iL() {
|
|
15056
|
-
var u = this.__wrapped__.value(), d = this.__dir__, m = Dt(u), b = d < 0, E = m ? u.length : 0, $ = yF(0, E, this.__views__), F = $.start, W = $.end, ee = W - F, ge = b ? W : F - 1, ve = this.__iteratees__, xe = ve.length, We = 0,
|
|
15057
|
-
if (!m || !b && E == ee &&
|
|
15056
|
+
var u = this.__wrapped__.value(), d = this.__dir__, m = Dt(u), b = d < 0, E = m ? u.length : 0, $ = yF(0, E, this.__views__), F = $.start, W = $.end, ee = W - F, ge = b ? W : F - 1, ve = this.__iteratees__, xe = ve.length, We = 0, at = br(ee, this.__takeCount__);
|
|
15057
|
+
if (!m || !b && E == ee && at == ee)
|
|
15058
15058
|
return fx(u, this.__actions__);
|
|
15059
15059
|
var St = [];
|
|
15060
15060
|
e:
|
|
15061
|
-
for (; ee-- && We <
|
|
15061
|
+
for (; ee-- && We < at; ) {
|
|
15062
15062
|
ge += d;
|
|
15063
15063
|
for (var jt = -1, Et = u[ge]; ++jt < xe; ) {
|
|
15064
15064
|
var zt = ve[jt], Qt = zt.iteratee, oi = zt.type, Pr = Qt(Et);
|
|
@@ -15288,9 +15288,9 @@ gp.exports;
|
|
|
15288
15288
|
}
|
|
15289
15289
|
}
|
|
15290
15290
|
$ || ($ = new Ii());
|
|
15291
|
-
var
|
|
15292
|
-
if (
|
|
15293
|
-
return
|
|
15291
|
+
var at = $.get(u);
|
|
15292
|
+
if (at)
|
|
15293
|
+
return at;
|
|
15294
15294
|
$.set(u, F), l1(u) ? u.forEach(function(Et) {
|
|
15295
15295
|
F.add(bi(Et, d, m, Et, u, $));
|
|
15296
15296
|
}) : s1(u) && u.forEach(function(Et, zt) {
|
|
@@ -15424,14 +15424,14 @@ gp.exports;
|
|
|
15424
15424
|
var xe = -1, We = W[0];
|
|
15425
15425
|
e:
|
|
15426
15426
|
for (; ++xe < E && ge.length < ee; ) {
|
|
15427
|
-
var
|
|
15428
|
-
if (
|
|
15427
|
+
var at = ve[xe], St = d ? d(at) : at;
|
|
15428
|
+
if (at = m || at !== 0 ? at : 0, !(We ? yl(We, St) : b(ge, St, m))) {
|
|
15429
15429
|
for (F = $; --F; ) {
|
|
15430
15430
|
var jt = W[F];
|
|
15431
15431
|
if (!(jt ? yl(jt, St) : b(u[F], St, m)))
|
|
15432
15432
|
continue e;
|
|
15433
15433
|
}
|
|
15434
|
-
We && We.push(St), ge.push(
|
|
15434
|
+
We && We.push(St), ge.push(at);
|
|
15435
15435
|
}
|
|
15436
15436
|
}
|
|
15437
15437
|
return ge;
|
|
@@ -15470,9 +15470,9 @@ gp.exports;
|
|
|
15470
15470
|
if (We && !ve)
|
|
15471
15471
|
return $ || ($ = new Ii()), F || Ys(u) ? Rx(u, d, m, b, E, $) : pF(u, d, ee, m, b, E, $);
|
|
15472
15472
|
if (!(m & y)) {
|
|
15473
|
-
var
|
|
15474
|
-
if (
|
|
15475
|
-
var jt =
|
|
15473
|
+
var at = ve && pn.call(u, "__wrapped__"), St = xe && pn.call(d, "__wrapped__");
|
|
15474
|
+
if (at || St) {
|
|
15475
|
+
var jt = at ? u.value() : u, Et = St ? d.value() : d;
|
|
15476
15476
|
return $ || ($ = new Ii()), E(jt, Et, m, b, $);
|
|
15477
15477
|
}
|
|
15478
15478
|
}
|
|
@@ -15579,8 +15579,8 @@ gp.exports;
|
|
|
15579
15579
|
}
|
|
15580
15580
|
var ve = $ ? $(W, ee, m + "", u, d, F) : n, xe = ve === n;
|
|
15581
15581
|
if (xe) {
|
|
15582
|
-
var We = Dt(ee),
|
|
15583
|
-
ve = ee, We ||
|
|
15582
|
+
var We = Dt(ee), at = !We && ca(ee), St = !We && !at && Ys(ee);
|
|
15583
|
+
ve = ee, We || at || St ? Dt(W) ? ve = W : qn(W) ? ve = Br(W) : at ? (xe = !1, ve = mx(ee, !0)) : St ? (xe = !1, ve = yx(ee, !0)) : ve = [] : $l(ee) || Ya(ee) ? (ve = W, Ya(W) ? ve = f1(W) : (!In(W) || To(W)) && (ve = Nx(ee))) : xe = !1;
|
|
15584
15584
|
}
|
|
15585
15585
|
xe && (F.set(ee, ve), E(ve, ee, b, $, F), F.delete(ee)), Sy(u, m, ve);
|
|
15586
15586
|
}
|
|
@@ -15727,11 +15727,11 @@ gp.exports;
|
|
|
15727
15727
|
return 0;
|
|
15728
15728
|
d = m(d);
|
|
15729
15729
|
for (var F = d !== d, W = d === null, ee = ii(d), ge = d === n; E < $; ) {
|
|
15730
|
-
var ve = Nd((E + $) / 2), xe = m(u[ve]), We = xe !== n,
|
|
15730
|
+
var ve = Nd((E + $) / 2), xe = m(u[ve]), We = xe !== n, at = xe === null, St = xe === xe, jt = ii(xe);
|
|
15731
15731
|
if (F)
|
|
15732
15732
|
var Et = b || St;
|
|
15733
15733
|
else
|
|
15734
|
-
ge ? Et = St && (b || We) : W ? Et = St && We && (b || !
|
|
15734
|
+
ge ? Et = St && (b || We) : W ? Et = St && We && (b || !at) : ee ? Et = St && We && !at && (b || !jt) : at || jt ? Et = !1 : Et = b ? xe <= d : xe < d;
|
|
15735
15735
|
Et ? E = ve + 1 : $ = ve;
|
|
15736
15736
|
}
|
|
15737
15737
|
return br($, Ae);
|
|
@@ -15892,10 +15892,10 @@ gp.exports;
|
|
|
15892
15892
|
function bx(u, d, m, b) {
|
|
15893
15893
|
for (var E = -1, $ = u.length, F = -1, W = m.length, ee = -1, ge = d.length, ve = Xn($ - W, 0), xe = se(ve + ge), We = !b; ++E < ve; )
|
|
15894
15894
|
xe[E] = u[E];
|
|
15895
|
-
for (var
|
|
15896
|
-
xe[
|
|
15895
|
+
for (var at = E; ++ee < ge; )
|
|
15896
|
+
xe[at + ee] = d[ee];
|
|
15897
15897
|
for (; ++F < W; )
|
|
15898
|
-
(We || E < $) && (xe[
|
|
15898
|
+
(We || E < $) && (xe[at + m[F]] = u[E++]);
|
|
15899
15899
|
return xe;
|
|
15900
15900
|
}
|
|
15901
15901
|
function Br(u, d) {
|
|
@@ -16064,13 +16064,13 @@ gp.exports;
|
|
|
16064
16064
|
});
|
|
16065
16065
|
}
|
|
16066
16066
|
function Wd(u, d, m, b, E, $, F, W, ee, ge) {
|
|
16067
|
-
var ve = d & M, xe = d & x, We = d & w,
|
|
16067
|
+
var ve = d & M, xe = d & x, We = d & w, at = d & (S | A), St = d & q, jt = We ? n : kl(u);
|
|
16068
16068
|
function Et() {
|
|
16069
16069
|
for (var zt = arguments.length, Qt = se(zt), oi = zt; oi--; )
|
|
16070
16070
|
Qt[oi] = arguments[oi];
|
|
16071
|
-
if (
|
|
16071
|
+
if (at)
|
|
16072
16072
|
var Pr = Gs(Et), ai = wM(Qt, Pr);
|
|
16073
|
-
if (b && (Qt = vx(Qt, b, E,
|
|
16073
|
+
if (b && (Qt = vx(Qt, b, E, at)), $ && (Qt = bx(Qt, $, F, at)), zt -= ai, at && zt < ge) {
|
|
16074
16074
|
var Un = ia(Qt, Pr);
|
|
16075
16075
|
return kx(
|
|
16076
16076
|
u,
|
|
@@ -16148,13 +16148,13 @@ gp.exports;
|
|
|
16148
16148
|
};
|
|
16149
16149
|
}
|
|
16150
16150
|
function kx(u, d, m, b, E, $, F, W, ee, ge) {
|
|
16151
|
-
var ve = d & S, xe = ve ? F : n, We = ve ? n : F,
|
|
16151
|
+
var ve = d & S, xe = ve ? F : n, We = ve ? n : F, at = ve ? $ : n, St = ve ? n : $;
|
|
16152
16152
|
d |= ve ? k : C, d &= ~(ve ? C : k), d & _ || (d &= ~(x | w));
|
|
16153
16153
|
var jt = [
|
|
16154
16154
|
u,
|
|
16155
16155
|
d,
|
|
16156
16156
|
E,
|
|
16157
|
-
|
|
16157
|
+
at,
|
|
16158
16158
|
xe,
|
|
16159
16159
|
St,
|
|
16160
16160
|
We,
|
|
@@ -16192,7 +16192,7 @@ gp.exports;
|
|
|
16192
16192
|
var ve = b, xe = E;
|
|
16193
16193
|
b = E = n;
|
|
16194
16194
|
}
|
|
16195
|
-
var We = ee ? n : Wy(u),
|
|
16195
|
+
var We = ee ? n : Wy(u), at = [
|
|
16196
16196
|
u,
|
|
16197
16197
|
d,
|
|
16198
16198
|
m,
|
|
@@ -16204,12 +16204,12 @@ gp.exports;
|
|
|
16204
16204
|
F,
|
|
16205
16205
|
W
|
|
16206
16206
|
];
|
|
16207
|
-
if (We && CF(
|
|
16207
|
+
if (We && CF(at, We), u = at[0], d = at[1], m = at[2], b = at[3], E = at[4], W = at[9] = at[9] === n ? ee ? 0 : u.length : Xn(at[9] - ge, 0), !W && d & (S | A) && (d &= ~(S | A)), !d || d == x)
|
|
16208
16208
|
var St = uF(u, d, m);
|
|
16209
16209
|
else
|
|
16210
|
-
d == S || d == A ? St = lF(u, d, W) : (d == k || d == (x | k)) && !E.length ? St = cF(u, d, m, b) : St = Wd.apply(n,
|
|
16210
|
+
d == S || d == A ? St = lF(u, d, W) : (d == k || d == (x | k)) && !E.length ? St = cF(u, d, m, b) : St = Wd.apply(n, at);
|
|
16211
16211
|
var jt = We ? ux : jx;
|
|
16212
|
-
return qx(jt(St,
|
|
16212
|
+
return qx(jt(St, at), u, d);
|
|
16213
16213
|
}
|
|
16214
16214
|
function Ox(u, d, m, b) {
|
|
16215
16215
|
return u === n || Pi(u, zs[m]) && !pn.call(b, m) ? d : u;
|
|
@@ -16227,7 +16227,7 @@ gp.exports;
|
|
|
16227
16227
|
var ge = $.get(u), ve = $.get(d);
|
|
16228
16228
|
if (ge && ve)
|
|
16229
16229
|
return ge == d && ve == u;
|
|
16230
|
-
var xe = -1, We = !0,
|
|
16230
|
+
var xe = -1, We = !0, at = m & v ? new Wa() : n;
|
|
16231
16231
|
for ($.set(u, d), $.set(d, u); ++xe < W; ) {
|
|
16232
16232
|
var St = u[xe], jt = d[xe];
|
|
16233
16233
|
if (b)
|
|
@@ -16238,10 +16238,10 @@ gp.exports;
|
|
|
16238
16238
|
We = !1;
|
|
16239
16239
|
break;
|
|
16240
16240
|
}
|
|
16241
|
-
if (
|
|
16241
|
+
if (at) {
|
|
16242
16242
|
if (!fy(d, function(zt, Qt) {
|
|
16243
|
-
if (!yl(
|
|
16244
|
-
return
|
|
16243
|
+
if (!yl(at, Qt) && (St === zt || E(St, zt, m, b, $)))
|
|
16244
|
+
return at.push(Qt);
|
|
16245
16245
|
})) {
|
|
16246
16246
|
We = !1;
|
|
16247
16247
|
break;
|
|
@@ -16268,7 +16268,7 @@ gp.exports;
|
|
|
16268
16268
|
case Se:
|
|
16269
16269
|
return u.name == d.name && u.message == d.message;
|
|
16270
16270
|
case Je:
|
|
16271
|
-
case
|
|
16271
|
+
case ot:
|
|
16272
16272
|
return u == d + "";
|
|
16273
16273
|
case Be:
|
|
16274
16274
|
var W = vy;
|
|
@@ -16297,9 +16297,9 @@ gp.exports;
|
|
|
16297
16297
|
if (!(F ? We in d : pn.call(d, We)))
|
|
16298
16298
|
return !1;
|
|
16299
16299
|
}
|
|
16300
|
-
var
|
|
16301
|
-
if (
|
|
16302
|
-
return
|
|
16300
|
+
var at = $.get(u), St = $.get(d);
|
|
16301
|
+
if (at && St)
|
|
16302
|
+
return at == d && St == u;
|
|
16303
16303
|
var jt = !0;
|
|
16304
16304
|
$.set(u, d), $.set(d, u);
|
|
16305
16305
|
for (var Et = F; ++xe < ee; ) {
|
|
@@ -16462,7 +16462,7 @@ gp.exports;
|
|
|
16462
16462
|
case Be:
|
|
16463
16463
|
return new b();
|
|
16464
16464
|
case ct:
|
|
16465
|
-
case
|
|
16465
|
+
case ot:
|
|
16466
16466
|
return new b(u);
|
|
16467
16467
|
case Je:
|
|
16468
16468
|
return rF(u);
|
|
@@ -17126,12 +17126,12 @@ gp.exports;
|
|
|
17126
17126
|
if (typeof u != "function")
|
|
17127
17127
|
throw new gi(a);
|
|
17128
17128
|
d = xi(d) || 0, In(m) && (ve = !!m.leading, xe = "maxWait" in m, $ = xe ? Xn(xi(m.maxWait) || 0, d) : $, We = "trailing" in m ? !!m.trailing : We);
|
|
17129
|
-
function
|
|
17129
|
+
function at(Un) {
|
|
17130
17130
|
var Ni = b, $o = E;
|
|
17131
17131
|
return b = E = n, ge = Un, F = u.apply($o, Ni), F;
|
|
17132
17132
|
}
|
|
17133
17133
|
function St(Un) {
|
|
17134
|
-
return ge = Un, W = Ol(zt, d), ve ?
|
|
17134
|
+
return ge = Un, W = Ol(zt, d), ve ? at(Un) : F;
|
|
17135
17135
|
}
|
|
17136
17136
|
function jt(Un) {
|
|
17137
17137
|
var Ni = Un - ee, $o = Un - ge, S1 = d - Ni;
|
|
@@ -17148,7 +17148,7 @@ gp.exports;
|
|
|
17148
17148
|
W = Ol(zt, jt(Un));
|
|
17149
17149
|
}
|
|
17150
17150
|
function Qt(Un) {
|
|
17151
|
-
return W = n, We && b ?
|
|
17151
|
+
return W = n, We && b ? at(Un) : (b = E = n, F);
|
|
17152
17152
|
}
|
|
17153
17153
|
function oi() {
|
|
17154
17154
|
W !== n && hx(W), ge = 0, b = ee = E = W = n;
|
|
@@ -17162,7 +17162,7 @@ gp.exports;
|
|
|
17162
17162
|
if (W === n)
|
|
17163
17163
|
return St(ee);
|
|
17164
17164
|
if (xe)
|
|
17165
|
-
return hx(W), W = Ol(zt, d),
|
|
17165
|
+
return hx(W), W = Ol(zt, d), at(ee);
|
|
17166
17166
|
}
|
|
17167
17167
|
return W === n && (W = Ol(zt, d)), F;
|
|
17168
17168
|
}
|
|
@@ -17390,7 +17390,7 @@ gp.exports;
|
|
|
17390
17390
|
}
|
|
17391
17391
|
var l1 = Sw ? ni(Sw) : zL;
|
|
17392
17392
|
function of(u) {
|
|
17393
|
-
return typeof u == "string" || !Dt(u) && Ln(u) && Rr(u) ==
|
|
17393
|
+
return typeof u == "string" || !Dt(u) && Ln(u) && Rr(u) == ot;
|
|
17394
17394
|
}
|
|
17395
17395
|
function ii(u) {
|
|
17396
17396
|
return typeof u == "symbol" || Ln(u) && Rr(u) == Pt;
|
|
@@ -17708,7 +17708,7 @@ gp.exports;
|
|
|
17708
17708
|
var E = af({}, d.imports, b.imports, Ox), $ = or(E), F = gy(E, $), W, ee, ge = 0, ve = d.interpolate || $i, xe = "__p += '", We = by(
|
|
17709
17709
|
(d.escape || $i).source + "|" + ve.source + "|" + (ve === Re ? Vt : $i).source + "|" + (d.evaluate || $i).source + "|$",
|
|
17710
17710
|
"g"
|
|
17711
|
-
),
|
|
17711
|
+
), at = "//# sourceURL=" + (pn.call(d, "sourceURL") ? (d.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++iM + "]") + `
|
|
17712
17712
|
`;
|
|
17713
17713
|
u.replace(We, function(Et, zt, Qt, oi, Pr, ai) {
|
|
17714
17714
|
return Qt || (Qt = oi), xe += u.slice(ge, ai).replace(bd, EM), zt && (W = !0, xe += `' +
|
|
@@ -17736,7 +17736,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
17736
17736
|
`) + xe + `return __p
|
|
17737
17737
|
}`;
|
|
17738
17738
|
var jt = w1(function() {
|
|
17739
|
-
return ln($,
|
|
17739
|
+
return ln($, at + "return " + xe).apply(n, F);
|
|
17740
17740
|
});
|
|
17741
17741
|
if (jt.source = xe, ng(jt))
|
|
17742
17742
|
throw jt;
|
|
@@ -18038,7 +18038,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18038
18038
|
return b && We ? Qt[0] : Qt;
|
|
18039
18039
|
};
|
|
18040
18040
|
ve && m && typeof ge == "function" && ge.length != 1 && (ee = ve = !1);
|
|
18041
|
-
var We = this.__chain__,
|
|
18041
|
+
var We = this.__chain__, at = !!this.__actions__.length, St = $ && !We, jt = ee && !at;
|
|
18042
18042
|
if (!$ && ve) {
|
|
18043
18043
|
F = jt ? F : new Kt(this);
|
|
18044
18044
|
var Et = u.apply(F, W);
|
|
@@ -19404,7 +19404,7 @@ O(YO, "hasDefinitions");
|
|
|
19404
19404
|
async function JO(e, { cwd: t, $refOptions: n }) {
|
|
19405
19405
|
if (mr("green", "dereferencer", "Dereferencing input schema:", t, e), typeof process > "u")
|
|
19406
19406
|
throw new Error("process is not defined");
|
|
19407
|
-
const r = await import("./index-
|
|
19407
|
+
const r = await import("./index-2c165908.js").then((s) => s.i), i = new r.$RefParser(), o = /* @__PURE__ */ new WeakMap(), a = await i.dereference(t, e, le(U({}, n), {
|
|
19408
19408
|
dereference: le(U({}, n.dereference), {
|
|
19409
19409
|
onDereference(s, l) {
|
|
19410
19410
|
o.set(l, s);
|
|
@@ -26202,7 +26202,7 @@ var wde = Object.create, MI = Object.defineProperty, xde = Object.getOwnProperty
|
|
|
26202
26202
|
return ft("WeakMap");
|
|
26203
26203
|
if (gt(oe))
|
|
26204
26204
|
return ft("WeakSet");
|
|
26205
|
-
if (
|
|
26205
|
+
if (ot(oe))
|
|
26206
26206
|
return ft("WeakRef");
|
|
26207
26207
|
if (Se(oe))
|
|
26208
26208
|
return qe(Re(Number(oe)));
|
|
@@ -26321,7 +26321,7 @@ var wde = Object.create, MI = Object.defineProperty, xde = Object.getOwnProperty
|
|
|
26321
26321
|
}
|
|
26322
26322
|
return !1;
|
|
26323
26323
|
}
|
|
26324
|
-
function
|
|
26324
|
+
function ot(X) {
|
|
26325
26325
|
if (!v || !X || typeof X != "object")
|
|
26326
26326
|
return !1;
|
|
26327
26327
|
try {
|
|
@@ -27880,7 +27880,7 @@ const The = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
27880
27880
|
console.error(Je(P));
|
|
27881
27881
|
}, debug: (...P) => {
|
|
27882
27882
|
console.debug(Je(P));
|
|
27883
|
-
} }) },
|
|
27883
|
+
} }) }, ot = (P) => async (De) => {
|
|
27884
27884
|
let ze = ct(De.headers), Ye = new Ce(new ce.Client({ botId: ze.botId, integrationId: ze.integrationId })), Re = { ctx: ze, req: De, client: Ye, logger: je, instance: P };
|
|
27885
27885
|
try {
|
|
27886
27886
|
let Ze;
|
|
@@ -27973,7 +27973,7 @@ const The = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
27973
27973
|
I(this, "createUser");
|
|
27974
27974
|
I(this, "createConversation");
|
|
27975
27975
|
I(this, "webhook");
|
|
27976
|
-
I(this, "handler",
|
|
27976
|
+
I(this, "handler", ot(this));
|
|
27977
27977
|
I(this, "start", (P) => Ge(this.handler, P));
|
|
27978
27978
|
this.props = P, this.actions = P.actions, this.channels = P.channels, this.register = P.register, this.unregister = P.unregister, this.createUser = P.createUser, this.createConversation = P.createConversation, this.webhook = P.handler;
|
|
27979
27979
|
}
|
|
@@ -31994,11 +31994,11 @@ var Ab = { exports: {} };
|
|
|
31994
31994
|
return 3;
|
|
31995
31995
|
throw new Error();
|
|
31996
31996
|
}
|
|
31997
|
-
for (var we = 65533, Je = "", je = this.bitsNeeded,
|
|
31997
|
+
for (var we = 65533, Je = "", je = this.bitsNeeded, ot = this.codePoint, Pt = 0; Pt < V.length; Pt += 1) {
|
|
31998
31998
|
var gt = V[Pt];
|
|
31999
|
-
je !== 0 && (gt < 128 || gt > 191 || !ce(
|
|
31999
|
+
je !== 0 && (gt < 128 || gt > 191 || !ce(ot << 6 | gt & 63, je - 6, Ce(je, ot))) && (je = 0, ot = we, Je += String.fromCharCode(ot)), je === 0 ? (gt >= 0 && gt <= 127 ? (je = 0, ot = gt) : gt >= 192 && gt <= 223 ? (je = 6 * 1, ot = gt & 31) : gt >= 224 && gt <= 239 ? (je = 6 * 2, ot = gt & 15) : gt >= 240 && gt <= 247 ? (je = 6 * 3, ot = gt & 7) : (je = 0, ot = we), je !== 0 && !ce(ot, je, Ce(je, ot)) && (je = 0, ot = we)) : (je -= 6, ot = ot << 6 | gt & 63), je === 0 && (ot <= 65535 ? Je += String.fromCharCode(ot) : (Je += String.fromCharCode(55296 + (ot - 65535 - 1 >> 10)), Je += String.fromCharCode(56320 + (ot - 65535 - 1 & 1023))));
|
|
32000
32000
|
}
|
|
32001
|
-
return this.bitsNeeded = je, this.codePoint =
|
|
32001
|
+
return this.bitsNeeded = je, this.codePoint = ot, Je;
|
|
32002
32002
|
};
|
|
32003
32003
|
var _ = function() {
|
|
32004
32004
|
try {
|
|
@@ -32020,7 +32020,7 @@ var Ab = { exports: {} };
|
|
|
32020
32020
|
this._abort = function(_e) {
|
|
32021
32021
|
Ce._sendTimeout !== 0 && (i(Ce._sendTimeout), Ce._sendTimeout = 0), (Je === 1 || Je === 2 || Je === 3) && (Je = 4, we.onload = S, we.onerror = S, we.onabort = S, we.onprogress = S, we.onreadystatechange = S, we.abort(), je !== 0 && (i(je), je = 0), _e || (Ce.readyState = 4, Ce.onabort(null), Ce.onreadystatechange())), Je = 0;
|
|
32022
32022
|
};
|
|
32023
|
-
var
|
|
32023
|
+
var ot = function() {
|
|
32024
32024
|
if (Je === 1) {
|
|
32025
32025
|
var _e = 0, qe = "", ft = void 0;
|
|
32026
32026
|
if ("contentType" in we)
|
|
@@ -32034,7 +32034,7 @@ var Ab = { exports: {} };
|
|
|
32034
32034
|
_e !== 0 && (Je = 2, Ce.readyState = 2, Ce.status = _e, Ce.statusText = qe, Ce._contentType = ft, Ce.onreadystatechange());
|
|
32035
32035
|
}
|
|
32036
32036
|
}, Pt = function() {
|
|
32037
|
-
if (
|
|
32037
|
+
if (ot(), Je === 2 || Je === 3) {
|
|
32038
32038
|
Je = 3;
|
|
32039
32039
|
var _e = "";
|
|
32040
32040
|
try {
|
|
@@ -32058,7 +32058,7 @@ var Ab = { exports: {} };
|
|
|
32058
32058
|
Ce.onreadystatechange();
|
|
32059
32059
|
}
|
|
32060
32060
|
}, re = function(_e) {
|
|
32061
|
-
we != null && (we.readyState === 4 ? (!("onload" in we) || !("onerror" in we) || !("onabort" in we)) && gt(we.responseText === "" ? "error" : "load", _e) : we.readyState === 3 ? "onprogress" in we || Pt() : we.readyState === 2 &&
|
|
32061
|
+
we != null && (we.readyState === 4 ? (!("onload" in we) || !("onerror" in we) || !("onabort" in we)) && gt(we.responseText === "" ? "error" : "load", _e) : we.readyState === 3 ? "onprogress" in we || Pt() : we.readyState === 2 && ot());
|
|
32062
32062
|
}, de = function() {
|
|
32063
32063
|
je = r(function() {
|
|
32064
32064
|
de();
|
|
@@ -32108,8 +32108,8 @@ var Ab = { exports: {} };
|
|
|
32108
32108
|
function C(V) {
|
|
32109
32109
|
for (var ce = /* @__PURE__ */ Object.create(null), Ce = V.split(`\r
|
|
32110
32110
|
`), we = 0; we < Ce.length; we += 1) {
|
|
32111
|
-
var Je = Ce[we], je = Je.split(": "),
|
|
32112
|
-
ce[k(
|
|
32111
|
+
var Je = Ce[we], je = Je.split(": "), ot = je.shift(), Pt = je.join(": ");
|
|
32112
|
+
ce[k(ot)] = Pt;
|
|
32113
32113
|
}
|
|
32114
32114
|
this._map = ce;
|
|
32115
32115
|
}
|
|
@@ -32118,7 +32118,7 @@ var Ab = { exports: {} };
|
|
|
32118
32118
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
32119
32119
|
function M() {
|
|
32120
32120
|
}
|
|
32121
|
-
M.prototype.open = function(V, ce, Ce, we, Je, je,
|
|
32121
|
+
M.prototype.open = function(V, ce, Ce, we, Je, je, ot) {
|
|
32122
32122
|
V.open("GET", Je);
|
|
32123
32123
|
var Pt = 0;
|
|
32124
32124
|
V.onprogress = function() {
|
|
@@ -32136,8 +32136,8 @@ var Ab = { exports: {} };
|
|
|
32136
32136
|
ce(re, de, _e, new C(qe));
|
|
32137
32137
|
}
|
|
32138
32138
|
}, V.withCredentials = je;
|
|
32139
|
-
for (var gt in
|
|
32140
|
-
Object.prototype.hasOwnProperty.call(
|
|
32139
|
+
for (var gt in ot)
|
|
32140
|
+
Object.prototype.hasOwnProperty.call(ot, gt) && V.setRequestHeader(gt, ot[gt]);
|
|
32141
32141
|
return V.send(), V;
|
|
32142
32142
|
};
|
|
32143
32143
|
function j(V) {
|
|
@@ -32148,10 +32148,10 @@ var Ab = { exports: {} };
|
|
|
32148
32148
|
};
|
|
32149
32149
|
function q() {
|
|
32150
32150
|
}
|
|
32151
|
-
q.prototype.open = function(V, ce, Ce, we, Je, je,
|
|
32151
|
+
q.prototype.open = function(V, ce, Ce, we, Je, je, ot) {
|
|
32152
32152
|
var Pt = null, gt = new v(), re = gt.signal, de = new h();
|
|
32153
32153
|
return p(Je, {
|
|
32154
|
-
headers:
|
|
32154
|
+
headers: ot,
|
|
32155
32155
|
credentials: je ? "include" : "same-origin",
|
|
32156
32156
|
signal: re,
|
|
32157
32157
|
cache: "no-store"
|
|
@@ -32254,7 +32254,7 @@ var Ab = { exports: {} };
|
|
|
32254
32254
|
var ke = p != null && g != null && "body" in g.prototype;
|
|
32255
32255
|
function Be(V, ce, Ce) {
|
|
32256
32256
|
ce = String(ce);
|
|
32257
|
-
var we = !!Ce.withCredentials, Je = Ce.lastEventIdQueryParameterName || "lastEventId", je = He(1e3),
|
|
32257
|
+
var we = !!Ce.withCredentials, Je = Ce.lastEventIdQueryParameterName || "lastEventId", je = He(1e3), ot = tt(Ce.heartbeatTimeout, 45e3), Pt = "", gt = je, re = !1, de = 0, _e = Ce.headers || {}, qe = Ce.Transport, ft = ke && 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, Jt = 0, cn = L, En = "", X = "", oe = "", pt = "", At = ae, rn = 0, ht = 0, Dn = function(Ye, Re, Ze, xt) {
|
|
32258
32258
|
if (cn === G)
|
|
32259
32259
|
if (Ye === 200 && Ze != null && Fe.test(Ze)) {
|
|
32260
32260
|
cn = te, re = Date.now(), gt = je, V.readyState = te;
|
|
@@ -32294,9 +32294,9 @@ var Ab = { exports: {} };
|
|
|
32294
32294
|
At === Ae && (ht = Xt + 1);
|
|
32295
32295
|
var mn = Nt.slice(rn, ht - 1), Rn = Nt.slice(ht + (ht < Xt && Nt.charCodeAt(ht) === " ".charCodeAt(0) ? 1 : 0), Xt);
|
|
32296
32296
|
mn === "data" ? (En += `
|
|
32297
|
-
`, En += Rn) : mn === "id" ? X = Rn : mn === "event" ? oe = Rn : mn === "retry" ? (je = tt(Rn, je), gt = je) : mn === "heartbeatTimeout" && (
|
|
32297
|
+
`, En += Rn) : mn === "id" ? X = Rn : mn === "event" ? oe = Rn : mn === "retry" ? (je = tt(Rn, je), gt = je) : mn === "heartbeatTimeout" && (ot = tt(Rn, ot), Jt !== 0 && (i(Jt), Jt = r(function() {
|
|
32298
32298
|
ze();
|
|
32299
|
-
},
|
|
32299
|
+
}, ot)));
|
|
32300
32300
|
}
|
|
32301
32301
|
if (At === ae) {
|
|
32302
32302
|
if (En !== "") {
|
|
@@ -32328,9 +32328,9 @@ var Ab = { exports: {} };
|
|
|
32328
32328
|
}, ze = function() {
|
|
32329
32329
|
if (Jt = 0, cn !== L) {
|
|
32330
32330
|
if (!re && nn != null)
|
|
32331
|
-
P(new Error("No activity within " +
|
|
32331
|
+
P(new Error("No activity within " + ot + " milliseconds. " + (cn === G ? "No response received." : de + " chars received.") + " Reconnecting.")), nn != null && (nn.abort(), nn = void 0);
|
|
32332
32332
|
else {
|
|
32333
|
-
var Ye = Math.max((re || Date.now()) +
|
|
32333
|
+
var Ye = Math.max((re || Date.now()) + ot - Date.now(), 1);
|
|
32334
32334
|
re = !1, Jt = r(function() {
|
|
32335
32335
|
ze();
|
|
32336
32336
|
}, Ye);
|
|
@@ -32339,7 +32339,7 @@ var Ab = { exports: {} };
|
|
|
32339
32339
|
}
|
|
32340
32340
|
re = !1, de = 0, Jt = r(function() {
|
|
32341
32341
|
ze();
|
|
32342
|
-
},
|
|
32342
|
+
}, ot), cn = G, En = "", oe = "", X = Pt, pt = "", rn = 0, ht = 0, At = ae;
|
|
32343
32343
|
var Re = ce;
|
|
32344
32344
|
if (ce.slice(0, 5) !== "data:" && ce.slice(0, 5) !== "blob:" && Pt !== "") {
|
|
32345
32345
|
var Ze = ce.indexOf("?");
|
|
@@ -36232,7 +36232,7 @@ function wf(e, t = {}, n, r) {
|
|
|
36232
36232
|
let g = sN((i = f.props) == null ? void 0 : i.className, l.className), h = g ? { className: g } : {};
|
|
36233
36233
|
return Mh(f, Object.assign({}, cN(f.props, jA(nv(l, ["ref"]))), p, c, q_e(f.ref, c.ref), h));
|
|
36234
36234
|
}
|
|
36235
|
-
return
|
|
36235
|
+
return it(o, Object.assign({}, nv(l, ["ref"]), o !== Ea && c, o !== Ea && p), f);
|
|
36236
36236
|
}
|
|
36237
36237
|
function q_e(...e) {
|
|
36238
36238
|
return { ref: e.every((t) => t == null) ? void 0 : (t) => {
|
|
@@ -36489,7 +36489,7 @@ function owe(e) {
|
|
|
36489
36489
|
return Qr.custom((t) => /* @__PURE__ */ Q.jsx(swe, { type: e.type, show: t.visible, children: e.type === "custom" ? e.content : /* @__PURE__ */ Q.jsx(awe, { ...e, toastId: t.id }) }));
|
|
36490
36490
|
}
|
|
36491
36491
|
const awe = ({ icon: e, type: t, title: n, description: r, toastId: i }) => {
|
|
36492
|
-
const { notification: o } =
|
|
36492
|
+
const { notification: o } = rt((a) => a.theme);
|
|
36493
36493
|
return /* @__PURE__ */ Q.jsxs(Q.Fragment, { children: [
|
|
36494
36494
|
e ? /* @__PURE__ */ Q.jsx(e, { ...o == null ? void 0 : o.icon }) : /* @__PURE__ */ Q.jsx(uwe, { ...o == null ? void 0 : o.icon, type: t }),
|
|
36495
36495
|
/* @__PURE__ */ Q.jsx("p", { ...o == null ? void 0 : o.title, children: n }),
|
|
@@ -36497,7 +36497,7 @@ const awe = ({ icon: e, type: t, title: n, description: r, toastId: i }) => {
|
|
|
36497
36497
|
/* @__PURE__ */ Q.jsx(rwe, { ...o == null ? void 0 : o.closeIcon, onClick: () => Qr.dismiss(i) })
|
|
36498
36498
|
] });
|
|
36499
36499
|
}, swe = ({ type: e, ...t }) => {
|
|
36500
|
-
const { notification: n } =
|
|
36500
|
+
const { notification: n } = rt((r) => r.theme);
|
|
36501
36501
|
return /* @__PURE__ */ Q.jsx(twe, { ...t, ...n == null ? void 0 : n.container, appear: !0, "data-type": e ?? "neutral" });
|
|
36502
36502
|
}, uwe = ({ type: e, className: t }) => {
|
|
36503
36503
|
switch (e) {
|
|
@@ -37355,7 +37355,7 @@ const Ac = (e) => (t) => {
|
|
|
37355
37355
|
return n && r(n.mode), gN()(
|
|
37356
37356
|
_N(
|
|
37357
37357
|
(i, o) => {
|
|
37358
|
-
const a = (c) => i((f) => ({ ...f, messages: [...f.messages ?? [], c] })), s = (c) => i((f) => ({ ...f, messages: c })), l = Sa(
|
|
37358
|
+
const a = (c) => i((f) => ({ ...f, messages: [...f.messages ?? [], c] })), s = (c) => i((f) => ({ ...f, messages: c })), l = Sa.getState().addMessageToHistory;
|
|
37359
37359
|
return {
|
|
37360
37360
|
...t,
|
|
37361
37361
|
...e,
|
|
@@ -37398,14 +37398,14 @@ const Ac = (e) => (t) => {
|
|
|
37398
37398
|
)
|
|
37399
37399
|
);
|
|
37400
37400
|
};
|
|
37401
|
-
function
|
|
37401
|
+
function rt(e) {
|
|
37402
37402
|
const t = Wi(wN);
|
|
37403
37403
|
if (!t)
|
|
37404
37404
|
throw new Error("Missing WebchatContext.Provider in the tree");
|
|
37405
37405
|
return bN(t, e);
|
|
37406
37406
|
}
|
|
37407
37407
|
const qwe = ({ text: e, buttonValue: t, type: n, styles: r, variant: i, groupId: o, reusable: a, ...s }) => {
|
|
37408
|
-
const l =
|
|
37408
|
+
const l = rt((_) => _.eventEmitter), c = rt((_) => _.sendTextMessage), f = rt((_) => _.isReadOnly), [p, g] = ut(!1), [h, y] = ut(!1), [v, x] = ut(!1);
|
|
37409
37409
|
nt(() => {
|
|
37410
37410
|
if (o)
|
|
37411
37411
|
return l.on(`button-group-${o}-click`, () => {
|
|
@@ -38491,7 +38491,7 @@ function zxe(e, t, n, r, i, o, a, s) {
|
|
|
38491
38491
|
scrollBody: we,
|
|
38492
38492
|
scrollBounds: Je,
|
|
38493
38493
|
eventHandler: je,
|
|
38494
|
-
animation:
|
|
38494
|
+
animation: ot,
|
|
38495
38495
|
options: {
|
|
38496
38496
|
loop: Pt
|
|
38497
38497
|
}
|
|
@@ -38499,20 +38499,20 @@ function zxe(e, t, n, r, i, o, a, s) {
|
|
|
38499
38499
|
const gt = Ce.pointerDown();
|
|
38500
38500
|
Pt || Je.constrain(gt);
|
|
38501
38501
|
const re = we.seek().settled();
|
|
38502
|
-
re && !gt && (
|
|
38502
|
+
re && !gt && (ot.stop(), je.emit("settle")), re || je.emit("scroll");
|
|
38503
38503
|
}, Ne = ({
|
|
38504
38504
|
scrollBody: Ce,
|
|
38505
38505
|
translate: we,
|
|
38506
38506
|
location: Je,
|
|
38507
38507
|
offsetLocation: je,
|
|
38508
|
-
scrollLooper:
|
|
38508
|
+
scrollLooper: ot,
|
|
38509
38509
|
slideLooper: Pt,
|
|
38510
38510
|
options: {
|
|
38511
38511
|
loop: gt
|
|
38512
38512
|
}
|
|
38513
38513
|
}, re) => {
|
|
38514
38514
|
const de = Ce.velocity();
|
|
38515
|
-
je.set(Je.get() - de + de * re), gt && (
|
|
38515
|
+
je.set(Je.get() - de + de * re), gt && (ot.loop(Ce.direction()), Pt.loop()), we.to(je.get());
|
|
38516
38516
|
}, Ge = {
|
|
38517
38517
|
start: () => s.start(ce),
|
|
38518
38518
|
stop: () => s.stop(ce),
|
|
@@ -41328,8 +41328,8 @@ function ZSe(e, t) {
|
|
|
41328
41328
|
bubbles: !0
|
|
41329
41329
|
});
|
|
41330
41330
|
if (Ce || we) {
|
|
41331
|
-
var
|
|
41332
|
-
const qe = ((
|
|
41331
|
+
var ot, Pt;
|
|
41332
|
+
const qe = ((ot = de.context) == null ? void 0 : ot.elements.domReference) === V.currentTarget, ft = we && !qe ? (Pt = de.context) == null ? void 0 : Pt.elements.domReference : Ce ? ct : null;
|
|
41333
41333
|
ft && (yr(V), ft.dispatchEvent(_e), Ne(void 0));
|
|
41334
41334
|
}
|
|
41335
41335
|
if (Je && de.context && de.context.open && de.parentId && V.currentTarget !== de.context.elements.domReference) {
|
|
@@ -41470,7 +41470,7 @@ function HSe(e, t) {
|
|
|
41470
41470
|
}
|
|
41471
41471
|
const VSe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
41472
41472
|
var G, te, ue, R, ae, Ae, N, Pe, Fe, Ne, Ge, tt;
|
|
41473
|
-
const o =
|
|
41473
|
+
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), [g, h] = B.useState(null), y = n.reduce(
|
|
41474
41474
|
(He, Oe) => (He[Oe.label] = Oe.value, He),
|
|
41475
41475
|
{}
|
|
41476
41476
|
), v = y ? Object.keys(y) : [], x = (He) => {
|
|
@@ -41594,11 +41594,11 @@ const VSe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41594
41594
|
text: ZZ,
|
|
41595
41595
|
video: Hwe
|
|
41596
41596
|
}, vd = ({ block: e, styles: t, ...n }) => {
|
|
41597
|
-
const
|
|
41598
|
-
return /* @__PURE__ */ Q.jsx(
|
|
41597
|
+
const i = rt((a) => a.renderers)[e.type] ?? GSe[e.type], o = { ...n, styles: t, ...e };
|
|
41598
|
+
return /* @__PURE__ */ Q.jsx(i, { ...o });
|
|
41599
41599
|
}, YSe = Ts(
|
|
41600
41600
|
st((e, t) => {
|
|
41601
|
-
const { composer: n } =
|
|
41601
|
+
const { composer: n } = rt((p) => p.theme), r = rt((p) => p.sendTextMessage), i = rt((p) => p.disableComposer), o = rt((p) => p.isReadOnly), [a, s] = ut(""), [l, c] = ut(-1);
|
|
41602
41602
|
if (o)
|
|
41603
41603
|
return null;
|
|
41604
41604
|
const f = () => {
|
|
@@ -41613,7 +41613,7 @@ const VSe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41613
41613
|
);
|
|
41614
41614
|
})
|
|
41615
41615
|
), JSe = Ts((e) => {
|
|
41616
|
-
const { composer: t } =
|
|
41616
|
+
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 } = SN(), c = yt(null), f = Sa((x) => x.user), p = Sa((x) => x.messageHistory), [g, h] = ut(!1);
|
|
41617
41617
|
WZ(c.current, i), nt(() => {
|
|
41618
41618
|
c.current && (c.current.selectionStart = c.current.value.length, c.current.selectionEnd = c.current.value.length);
|
|
41619
41619
|
}, [i]);
|
|
@@ -41659,8 +41659,8 @@ const VSe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41659
41659
|
}), XSe = Ts(
|
|
41660
41660
|
st(({ icon: e = hxe, ...t }, n) => {
|
|
41661
41661
|
var f, p;
|
|
41662
|
-
const { composer: r } =
|
|
41663
|
-
if (!
|
|
41662
|
+
const { composer: r } = rt((g) => g.theme), i = rt((g) => g.sendFile), o = rt((g) => g.addMessage), a = yt(null);
|
|
41663
|
+
if (!rt((g) => g.allowFileUpload))
|
|
41664
41664
|
return null;
|
|
41665
41665
|
const l = () => {
|
|
41666
41666
|
var g;
|
|
@@ -41690,7 +41690,7 @@ const VSe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41690
41690
|
), QSe = Ts(
|
|
41691
41691
|
st(({ icon: e = nxe, ...t }, n) => {
|
|
41692
41692
|
var a, s;
|
|
41693
|
-
const { value: r, sendMessage: i } = SN(), { composer: o } =
|
|
41693
|
+
const { value: r, sendMessage: i } = SN(), { composer: o } = rt((l) => l.theme);
|
|
41694
41694
|
return /* @__PURE__ */ Q.jsx(
|
|
41695
41695
|
"button",
|
|
41696
41696
|
{
|
|
@@ -41715,10 +41715,10 @@ const VSe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41715
41715
|
e
|
|
41716
41716
|
] });
|
|
41717
41717
|
}, Uke = ({ children: e, ...t }) => {
|
|
41718
|
-
const n = yt(), r = yt(null);
|
|
41719
|
-
return n.current || (n.current =
|
|
41718
|
+
const n = yt(), r = yt(null), i = jwe({ ...t, messageContainerRef: r });
|
|
41719
|
+
return n.current || (n.current = i), /* @__PURE__ */ Q.jsx(wN.Provider, { value: n.current, children: /* @__PURE__ */ Q.jsx(tEe, { children: e }) });
|
|
41720
41720
|
}, tEe = ({ children: e }) => {
|
|
41721
|
-
const t =
|
|
41721
|
+
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 = Sa((h) => h.setConversationId), l = Sa((h) => h.user), c = Sa((h) => h.conversationId), f = Sa((h) => h.setUser), [p, g] = ut(0);
|
|
41722
41722
|
return nt(() => {
|
|
41723
41723
|
if (t)
|
|
41724
41724
|
return t.on("message", (h) => {
|
|
@@ -41886,7 +41886,7 @@ const uEe = /* @__PURE__ */ Ci({
|
|
|
41886
41886
|
]), nt(() => {
|
|
41887
41887
|
const j = () => y({});
|
|
41888
41888
|
return document.addEventListener(Ub, j), () => document.removeEventListener(Ub, j);
|
|
41889
|
-
}, []), /* @__PURE__ */
|
|
41889
|
+
}, []), /* @__PURE__ */ it(gr.div, ms({}, c, {
|
|
41890
41890
|
ref: v,
|
|
41891
41891
|
style: {
|
|
41892
41892
|
pointerEvents: A ? k ? "auto" : "none" : void 0,
|
|
@@ -42055,7 +42055,7 @@ const yv = "focusScope.autoFocusOnMount", gv = "focusScope.autoFocusOnUnmount",
|
|
|
42055
42055
|
r,
|
|
42056
42056
|
h.paused
|
|
42057
42057
|
]);
|
|
42058
|
-
return /* @__PURE__ */
|
|
42058
|
+
return /* @__PURE__ */ it(gr.div, ms({
|
|
42059
42059
|
tabIndex: -1
|
|
42060
42060
|
}, a, {
|
|
42061
42061
|
ref: g,
|
|
@@ -42729,7 +42729,7 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42729
42729
|
defaultProp: i,
|
|
42730
42730
|
onChange: o
|
|
42731
42731
|
});
|
|
42732
|
-
return /* @__PURE__ */
|
|
42732
|
+
return /* @__PURE__ */ it(sAe, {
|
|
42733
42733
|
scope: t,
|
|
42734
42734
|
triggerRef: s,
|
|
42735
42735
|
contentRef: l,
|
|
@@ -42750,7 +42750,7 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42750
42750
|
}, n);
|
|
42751
42751
|
}, lAe = "DialogTrigger", cAe = /* @__PURE__ */ st((e, t) => {
|
|
42752
42752
|
const { __scopeDialog: n, ...r } = e, i = ea(lAe, n), o = hi(t, i.triggerRef);
|
|
42753
|
-
return /* @__PURE__ */
|
|
42753
|
+
return /* @__PURE__ */ it(gr.button, Ht({
|
|
42754
42754
|
type: "button",
|
|
42755
42755
|
"aria-haspopup": "dialog",
|
|
42756
42756
|
"aria-expanded": i.open,
|
|
@@ -42764,9 +42764,9 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42764
42764
|
forceMount: void 0
|
|
42765
42765
|
}), zb = "DialogOverlay", fAe = /* @__PURE__ */ st((e, t) => {
|
|
42766
42766
|
const n = vD(zb, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, o = ea(zb, e.__scopeDialog);
|
|
42767
|
-
return o.modal ? /* @__PURE__ */
|
|
42767
|
+
return o.modal ? /* @__PURE__ */ it(Ua, {
|
|
42768
42768
|
present: r || o.open
|
|
42769
|
-
}, /* @__PURE__ */
|
|
42769
|
+
}, /* @__PURE__ */ it(pAe, Ht({}, i, {
|
|
42770
42770
|
ref: t
|
|
42771
42771
|
}))) : null;
|
|
42772
42772
|
}), pAe = /* @__PURE__ */ st((e, t) => {
|
|
@@ -42774,13 +42774,13 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42774
42774
|
return (
|
|
42775
42775
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
42776
42776
|
// ie. when `Overlay` and `Content` are siblings
|
|
42777
|
-
/* @__PURE__ */
|
|
42777
|
+
/* @__PURE__ */ it(nAe, {
|
|
42778
42778
|
as: Hb,
|
|
42779
42779
|
allowPinchZoom: !0,
|
|
42780
42780
|
shards: [
|
|
42781
42781
|
i.contentRef
|
|
42782
42782
|
]
|
|
42783
|
-
}, /* @__PURE__ */
|
|
42783
|
+
}, /* @__PURE__ */ it(gr.div, Ht({
|
|
42784
42784
|
"data-state": G_(i.open)
|
|
42785
42785
|
}, r, {
|
|
42786
42786
|
ref: t,
|
|
@@ -42792,11 +42792,11 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42792
42792
|
);
|
|
42793
42793
|
}), $c = "DialogContent", hAe = /* @__PURE__ */ st((e, t) => {
|
|
42794
42794
|
const n = vD($c, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, o = ea($c, e.__scopeDialog);
|
|
42795
|
-
return /* @__PURE__ */
|
|
42795
|
+
return /* @__PURE__ */ it(Ua, {
|
|
42796
42796
|
present: r || o.open
|
|
42797
|
-
}, o.modal ? /* @__PURE__ */
|
|
42797
|
+
}, o.modal ? /* @__PURE__ */ it(mAe, Ht({}, i, {
|
|
42798
42798
|
ref: t
|
|
42799
|
-
})) : /* @__PURE__ */
|
|
42799
|
+
})) : /* @__PURE__ */ it(yAe, Ht({}, i, {
|
|
42800
42800
|
ref: t
|
|
42801
42801
|
})));
|
|
42802
42802
|
}), mAe = /* @__PURE__ */ st((e, t) => {
|
|
@@ -42805,7 +42805,7 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42805
42805
|
const o = r.current;
|
|
42806
42806
|
if (o)
|
|
42807
42807
|
return aAe(o);
|
|
42808
|
-
}, []), /* @__PURE__ */
|
|
42808
|
+
}, []), /* @__PURE__ */ it(bD, Ht({}, e, {
|
|
42809
42809
|
ref: i,
|
|
42810
42810
|
trapFocus: n.open,
|
|
42811
42811
|
disableOutsidePointerEvents: !0,
|
|
@@ -42824,7 +42824,7 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42824
42824
|
}));
|
|
42825
42825
|
}), yAe = /* @__PURE__ */ st((e, t) => {
|
|
42826
42826
|
const n = ea($c, e.__scopeDialog), r = yt(!1), i = yt(!1);
|
|
42827
|
-
return /* @__PURE__ */
|
|
42827
|
+
return /* @__PURE__ */ it(bD, Ht({}, e, {
|
|
42828
42828
|
ref: t,
|
|
42829
42829
|
trapFocus: !1,
|
|
42830
42830
|
disableOutsidePointerEvents: !1,
|
|
@@ -42845,13 +42845,13 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42845
42845
|
}));
|
|
42846
42846
|
}), bD = /* @__PURE__ */ st((e, t) => {
|
|
42847
42847
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: o, ...a } = e, s = ea($c, n), l = yt(null), c = hi(t, l);
|
|
42848
|
-
return wEe(), /* @__PURE__ */
|
|
42848
|
+
return wEe(), /* @__PURE__ */ it(Ea, null, /* @__PURE__ */ it(fEe, {
|
|
42849
42849
|
asChild: !0,
|
|
42850
42850
|
loop: !0,
|
|
42851
42851
|
trapped: r,
|
|
42852
42852
|
onMountAutoFocus: i,
|
|
42853
42853
|
onUnmountAutoFocus: o
|
|
42854
|
-
}, /* @__PURE__ */
|
|
42854
|
+
}, /* @__PURE__ */ it(lEe, Ht({
|
|
42855
42855
|
role: "dialog",
|
|
42856
42856
|
id: s.contentId,
|
|
42857
42857
|
"aria-describedby": s.descriptionId,
|
|
@@ -42863,14 +42863,14 @@ const yD = "Dialog", [gD, Bke] = Lh(yD), [sAe, ea] = gD(yD), uAe = (e) => {
|
|
|
42863
42863
|
}))), !1);
|
|
42864
42864
|
}), gAe = "DialogTitle", vAe = /* @__PURE__ */ st((e, t) => {
|
|
42865
42865
|
const { __scopeDialog: n, ...r } = e, i = ea(gAe, n);
|
|
42866
|
-
return /* @__PURE__ */
|
|
42866
|
+
return /* @__PURE__ */ it(gr.h2, Ht({
|
|
42867
42867
|
id: i.titleId
|
|
42868
42868
|
}, r, {
|
|
42869
42869
|
ref: t
|
|
42870
42870
|
}));
|
|
42871
42871
|
}), bAe = "DialogClose", _Ae = /* @__PURE__ */ st((e, t) => {
|
|
42872
42872
|
const { __scopeDialog: n, ...r } = e, i = ea(bAe, n);
|
|
42873
|
-
return /* @__PURE__ */
|
|
42873
|
+
return /* @__PURE__ */ it(gr.button, Ht({
|
|
42874
42874
|
type: "button"
|
|
42875
42875
|
}, r, {
|
|
42876
42876
|
ref: t,
|
|
@@ -42916,7 +42916,7 @@ function ks({
|
|
|
42916
42916
|
}
|
|
42917
42917
|
function TAe({ title: e, children: t }) {
|
|
42918
42918
|
var r, i, o, a, s, l, c, f;
|
|
42919
|
-
const { modal: n } =
|
|
42919
|
+
const { modal: n } = rt((p) => p.theme);
|
|
42920
42920
|
return /* @__PURE__ */ Q.jsxs(Q.Fragment, { children: [
|
|
42921
42921
|
/* @__PURE__ */ Q.jsx(SAe, { ...n == null ? void 0 : n.overlay }),
|
|
42922
42922
|
/* @__PURE__ */ Q.jsx("div", { ...n == null ? void 0 : n.container, children: /* @__PURE__ */ Q.jsxs(EAe, { ...(r = n == null ? void 0 : n.dialog) == null ? void 0 : r.container, children: [
|
|
@@ -42932,7 +42932,7 @@ ks.Button = xAe;
|
|
|
42932
42932
|
ks.Close = _D;
|
|
42933
42933
|
ks.Content = TAe;
|
|
42934
42934
|
const OAe = st(({ children: e, ...t }, n) => {
|
|
42935
|
-
const { container: r } =
|
|
42935
|
+
const { container: r } = rt((i) => i.theme);
|
|
42936
42936
|
return /* @__PURE__ */ Q.jsxs("div", { ...t, ...r, ref: n, children: [
|
|
42937
42937
|
/* @__PURE__ */ Q.jsx(N_e, {}),
|
|
42938
42938
|
/* @__PURE__ */ Q.jsxs(eEe, { children: [
|
|
@@ -42941,7 +42941,7 @@ const OAe = st(({ children: e, ...t }, n) => {
|
|
|
42941
42941
|
] })
|
|
42942
42942
|
] });
|
|
42943
42943
|
}), $Ae = () => {
|
|
42944
|
-
const { modal: e } =
|
|
42944
|
+
const { modal: e } = rt((r) => r.theme), t = rt((r) => r.connected), { showModal: n } = CN();
|
|
42945
42945
|
return nt(() => {
|
|
42946
42946
|
var r, i, o, a;
|
|
42947
42947
|
t || n({
|
|
@@ -42961,7 +42961,7 @@ const OAe = st(({ children: e, ...t }, n) => {
|
|
|
42961
42961
|
});
|
|
42962
42962
|
}, [t]), /* @__PURE__ */ Q.jsx(Q.Fragment, {});
|
|
42963
42963
|
}, Zke = st(({ children: e, onClick: t, ...n }, r) => {
|
|
42964
|
-
const { fab: i } =
|
|
42964
|
+
const { fab: i } = rt((s) => s.theme), { container: o, icon: a } = i ?? {};
|
|
42965
42965
|
return /* @__PURE__ */ Q.jsx("div", { ...n, ...o, ref: r, onClick: t, children: /* @__PURE__ */ Q.jsx("div", { ...a }) });
|
|
42966
42966
|
}), xD = "Collapsible", [RAe, Wke] = Lh(xD), [IAe, Y_] = RAe(xD), PAe = /* @__PURE__ */ st((e, t) => {
|
|
42967
42967
|
const { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: o, onOpenChange: a, ...s } = e, [l = !1, c] = iD({
|
|
@@ -42969,7 +42969,7 @@ const OAe = st(({ children: e, ...t }, n) => {
|
|
|
42969
42969
|
defaultProp: i,
|
|
42970
42970
|
onChange: a
|
|
42971
42971
|
});
|
|
42972
|
-
return /* @__PURE__ */
|
|
42972
|
+
return /* @__PURE__ */ it(IAe, {
|
|
42973
42973
|
scope: n,
|
|
42974
42974
|
disabled: o,
|
|
42975
42975
|
contentId: ip(),
|
|
@@ -42982,7 +42982,7 @@ const OAe = st(({ children: e, ...t }, n) => {
|
|
|
42982
42982
|
c
|
|
42983
42983
|
]
|
|
42984
42984
|
)
|
|
42985
|
-
}, /* @__PURE__ */
|
|
42985
|
+
}, /* @__PURE__ */ it(gr.div, Ht({
|
|
42986
42986
|
"data-state": J_(l),
|
|
42987
42987
|
"data-disabled": o ? "" : void 0
|
|
42988
42988
|
}, s, {
|
|
@@ -42990,7 +42990,7 @@ const OAe = st(({ children: e, ...t }, n) => {
|
|
|
42990
42990
|
})));
|
|
42991
42991
|
}), NAe = "CollapsibleTrigger", DAe = /* @__PURE__ */ st((e, t) => {
|
|
42992
42992
|
const { __scopeCollapsible: n, ...r } = e, i = Y_(NAe, n);
|
|
42993
|
-
return /* @__PURE__ */
|
|
42993
|
+
return /* @__PURE__ */ it(gr.button, Ht({
|
|
42994
42994
|
type: "button",
|
|
42995
42995
|
"aria-controls": i.contentId,
|
|
42996
42996
|
"aria-expanded": i.open || !1,
|
|
@@ -43003,12 +43003,12 @@ const OAe = st(({ children: e, ...t }, n) => {
|
|
|
43003
43003
|
}));
|
|
43004
43004
|
}), SD = "CollapsibleContent", MAe = /* @__PURE__ */ st((e, t) => {
|
|
43005
43005
|
const { forceMount: n, ...r } = e, i = Y_(SD, e.__scopeCollapsible);
|
|
43006
|
-
return /* @__PURE__ */
|
|
43006
|
+
return /* @__PURE__ */ it(
|
|
43007
43007
|
Ua,
|
|
43008
43008
|
{
|
|
43009
43009
|
present: n || i.open
|
|
43010
43010
|
},
|
|
43011
|
-
({ present: o }) => /* @__PURE__ */
|
|
43011
|
+
({ present: o }) => /* @__PURE__ */ it(LAe, Ht({}, r, {
|
|
43012
43012
|
ref: t,
|
|
43013
43013
|
present: o
|
|
43014
43014
|
}))
|
|
@@ -43033,7 +43033,7 @@ const OAe = st(({ children: e, ...t }, n) => {
|
|
|
43033
43033
|
}, [
|
|
43034
43034
|
a.open,
|
|
43035
43035
|
r
|
|
43036
|
-
]), /* @__PURE__ */
|
|
43036
|
+
]), /* @__PURE__ */ it(gr.div, Ht({
|
|
43037
43037
|
"data-state": J_(a.open),
|
|
43038
43038
|
"data-disabled": a.disabled ? "" : void 0,
|
|
43039
43039
|
id: a.contentId,
|
|
@@ -43052,7 +43052,7 @@ function J_(e) {
|
|
|
43052
43052
|
}
|
|
43053
43053
|
const FAe = PAe, jAe = DAe, qAe = MAe, UAe = (e) => /* @__PURE__ */ B.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ B.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M15.5 5.5v-5m0 0h-5m5 0L8.833 7.167m-2.5-5H4.5c-1.4 0-2.1 0-2.635.272A2.5 2.5 0 0 0 .772 3.532C.5 4.066.5 4.767.5 6.167V11.5c0 1.4 0 2.1.272 2.635a2.5 2.5 0 0 0 1.093 1.092C2.4 15.5 3.1 15.5 4.5 15.5h5.333c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 0 0 1.093-1.092c.272-.535.272-1.235.272-2.635V9.667" })), BAe = ({ ...e }) => {
|
|
43054
43054
|
var a, s;
|
|
43055
|
-
const { header: t, modal: n } =
|
|
43055
|
+
const { header: t, modal: n } = rt((l) => l.theme), r = rt((l) => l.restartConversation), { showModal: i } = CN(), o = (l) => {
|
|
43056
43056
|
var c, f, p, g;
|
|
43057
43057
|
l.stopPropagation(), i({
|
|
43058
43058
|
title: "Restart Conversation",
|
|
@@ -43077,7 +43077,7 @@ const FAe = PAe, jAe = DAe, qAe = MAe, UAe = (e) => /* @__PURE__ */ B.createElem
|
|
|
43077
43077
|
);
|
|
43078
43078
|
}, zAe = ({ ...e }) => {
|
|
43079
43079
|
var i, o;
|
|
43080
|
-
const { header: t } =
|
|
43080
|
+
const { header: t } = rt((a) => a.theme), n = rt((a) => a.closeWindow), r = (a) => {
|
|
43081
43081
|
a.stopPropagation(), n == null || n();
|
|
43082
43082
|
};
|
|
43083
43083
|
return /* @__PURE__ */ Q.jsx(
|
|
@@ -43095,36 +43095,36 @@ const FAe = PAe, jAe = DAe, qAe = MAe, UAe = (e) => /* @__PURE__ */ B.createElem
|
|
|
43095
43095
|
);
|
|
43096
43096
|
}, ZAe = Ts(
|
|
43097
43097
|
st(({ defaultOpen: e, ...t }, n) => {
|
|
43098
|
-
const { header: r } =
|
|
43098
|
+
const { header: r } = rt((a) => a.theme), [i, o] = ut(!!e);
|
|
43099
43099
|
return /* @__PURE__ */ Q.jsx(FAe, { open: i, onOpenChange: o, ...t, ...r == null ? void 0 : r.container, ref: n });
|
|
43100
43100
|
})
|
|
43101
43101
|
), WAe = st((e, t) => {
|
|
43102
43102
|
var r;
|
|
43103
|
-
const { header: n } =
|
|
43103
|
+
const { header: n } = rt((i) => i.theme);
|
|
43104
43104
|
return /* @__PURE__ */ Q.jsx(jAe, { ...e, ...(r = n == null ? void 0 : n.content) == null ? void 0 : r.container, ref: t });
|
|
43105
43105
|
}), HAe = st((e, t) => {
|
|
43106
43106
|
var r;
|
|
43107
|
-
const { header: n } =
|
|
43107
|
+
const { header: n } = rt((i) => i.theme);
|
|
43108
43108
|
return /* @__PURE__ */ Q.jsx(qAe, { ...e, ...(r = n == null ? void 0 : n.expandedContent) == null ? void 0 : r.container, ref: t });
|
|
43109
43109
|
}), VAe = st(({ src: e, ...t }, n) => {
|
|
43110
43110
|
var o;
|
|
43111
|
-
const { header: r } =
|
|
43111
|
+
const { header: r } = rt((a) => a.theme), i = rt((a) => a.getClientId)();
|
|
43112
43112
|
return /* @__PURE__ */ Q.jsx(UC, { ...t, ref: n, userId: i, src: e, ...(o = r == null ? void 0 : r.content) == null ? void 0 : o.avatar });
|
|
43113
43113
|
}), KAe = st((e, t) => {
|
|
43114
43114
|
var r;
|
|
43115
|
-
const { header: n } =
|
|
43115
|
+
const { header: n } = rt((i) => i.theme);
|
|
43116
43116
|
return /* @__PURE__ */ Q.jsx("h2", { ...e, ...(r = n == null ? void 0 : n.content) == null ? void 0 : r.title, ref: t });
|
|
43117
43117
|
}), GAe = st((e, t) => {
|
|
43118
43118
|
var r;
|
|
43119
|
-
const { header: n } =
|
|
43119
|
+
const { header: n } = rt((i) => i.theme);
|
|
43120
43120
|
return /* @__PURE__ */ Q.jsx("p", { ...e, ...(r = n == null ? void 0 : n.content) == null ? void 0 : r.description, ref: t });
|
|
43121
43121
|
}), YAe = st((e, t) => {
|
|
43122
43122
|
var r, i;
|
|
43123
|
-
const { header: n } =
|
|
43123
|
+
const { header: n } = rt((o) => o.theme);
|
|
43124
43124
|
return /* @__PURE__ */ Q.jsx("div", { ...e, ...(i = (r = n == null ? void 0 : n.content) == null ? void 0 : r.actions) == null ? void 0 : i.container, ref: t });
|
|
43125
43125
|
}), JAe = ({ icon: e, title: t, link: n, ...r }) => {
|
|
43126
43126
|
var s, l, c, f, p, g, h, y, v, x, w, _;
|
|
43127
|
-
const { header: i } =
|
|
43127
|
+
const { header: i } = rt((S) => S.theme), o = e ?? UAe, a = (S) => {
|
|
43128
43128
|
S && z0e(S);
|
|
43129
43129
|
};
|
|
43130
43130
|
return !n && !t ? null : n ? /* @__PURE__ */ Q.jsxs(
|
|
@@ -43164,7 +43164,7 @@ const FAe = PAe, jAe = DAe, qAe = MAe, UAe = (e) => /* @__PURE__ */ B.createElem
|
|
|
43164
43164
|
DescriptionItem: JAe
|
|
43165
43165
|
}), XAe = () => {
|
|
43166
43166
|
var i, o, a, s, l, c, f, p, g, h, y, v, x, w, _, S, A, k, C;
|
|
43167
|
-
const { header: e } =
|
|
43167
|
+
const { header: e } = rt((M) => M.theme), t = rt((M) => M.configuration), n = rt((M) => M.closeWindow), r = !!((i = t.email) != null && i.title) || !!((o = t.phone) != null && o.title) || !!((a = t.website) != null && a.title) || !!((s = t.termsOfService) != null && s.link) || !!((l = t.privacyPolicy) != null && l.link);
|
|
43168
43168
|
return /* @__PURE__ */ Q.jsxs(ui, { open: r ? void 0 : !1, "data-disabled": r ? void 0 : "", children: [
|
|
43169
43169
|
/* @__PURE__ */ Q.jsxs(ui.Content, { children: [
|
|
43170
43170
|
/* @__PURE__ */ Q.jsx(ui.Avatar, { src: t.botAvatar, children: t.botName || "Bot" }),
|
|
@@ -43229,12 +43229,12 @@ const FAe = PAe, jAe = DAe, qAe = MAe, UAe = (e) => /* @__PURE__ */ B.createElem
|
|
|
43229
43229
|
] })
|
|
43230
43230
|
] });
|
|
43231
43231
|
}, Hke = ui, QAe = Ts(({ ...e }) => {
|
|
43232
|
-
const { loadingIndicator: t } =
|
|
43232
|
+
const { loadingIndicator: t } = rt((n) => n.theme);
|
|
43233
43233
|
return /* @__PURE__ */ Q.jsx("div", { ...e, ...t == null ? void 0 : t.container, children: /* @__PURE__ */ Q.jsx("div", { ...t == null ? void 0 : t.loader }) });
|
|
43234
43234
|
}), TC = st(
|
|
43235
43235
|
({ direction: e, block: t, scroll: n, disableInput: r, children: i, sender: o, ...a }, s) => {
|
|
43236
43236
|
var v, x, w, _;
|
|
43237
|
-
const [l, c] = ut([]), { message: f } =
|
|
43237
|
+
const [l, c] = ut([]), { message: f } = rt((S) => S.theme), { botAvatar: p, botName: g } = rt((S) => S.configuration), h = rt((S) => S.getClientId)();
|
|
43238
43238
|
mwe(() => {
|
|
43239
43239
|
n();
|
|
43240
43240
|
}), nt(() => {
|
|
@@ -43280,7 +43280,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43280
43280
|
t,
|
|
43281
43281
|
(Z) => l(Z)
|
|
43282
43282
|
), D = tCe(i);
|
|
43283
|
-
return /* @__PURE__ */
|
|
43283
|
+
return /* @__PURE__ */ it(iCe, {
|
|
43284
43284
|
scope: n,
|
|
43285
43285
|
type: r,
|
|
43286
43286
|
dir: D,
|
|
@@ -43300,7 +43300,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43300
43300
|
onScrollbarYEnabledChange: j,
|
|
43301
43301
|
onCornerWidthChange: _,
|
|
43302
43302
|
onCornerHeightChange: A
|
|
43303
|
-
}, /* @__PURE__ */
|
|
43303
|
+
}, /* @__PURE__ */ it(gr.div, Ht({
|
|
43304
43304
|
dir: D
|
|
43305
43305
|
}, a, {
|
|
43306
43306
|
ref: q,
|
|
@@ -43314,11 +43314,11 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43314
43314
|
})));
|
|
43315
43315
|
}), aCe = "ScrollAreaViewport", sCe = /* @__PURE__ */ st((e, t) => {
|
|
43316
43316
|
const { __scopeScrollArea: n, children: r, ...i } = e, o = Oi(aCe, n), a = yt(null), s = hi(t, a, o.onViewportChange);
|
|
43317
|
-
return /* @__PURE__ */
|
|
43317
|
+
return /* @__PURE__ */ it(Ea, null, /* @__PURE__ */ it("style", {
|
|
43318
43318
|
dangerouslySetInnerHTML: {
|
|
43319
43319
|
__html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"
|
|
43320
43320
|
}
|
|
43321
|
-
}), /* @__PURE__ */
|
|
43321
|
+
}), /* @__PURE__ */ it(gr.div, Ht({
|
|
43322
43322
|
"data-radix-scroll-area-viewport": ""
|
|
43323
43323
|
}, i, {
|
|
43324
43324
|
ref: s,
|
|
@@ -43338,7 +43338,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43338
43338
|
overflowY: o.scrollbarYEnabled ? "scroll" : "hidden",
|
|
43339
43339
|
...e.style
|
|
43340
43340
|
}
|
|
43341
|
-
}), /* @__PURE__ */
|
|
43341
|
+
}), /* @__PURE__ */ it("div", {
|
|
43342
43342
|
ref: o.onContentChange,
|
|
43343
43343
|
style: {
|
|
43344
43344
|
minWidth: "100%",
|
|
@@ -43353,16 +43353,16 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43353
43353
|
s,
|
|
43354
43354
|
o,
|
|
43355
43355
|
a
|
|
43356
|
-
]), i.type === "hover" ? /* @__PURE__ */
|
|
43356
|
+
]), i.type === "hover" ? /* @__PURE__ */ it(lCe, Ht({}, r, {
|
|
43357
43357
|
ref: t,
|
|
43358
43358
|
forceMount: n
|
|
43359
|
-
})) : i.type === "scroll" ? /* @__PURE__ */
|
|
43359
|
+
})) : i.type === "scroll" ? /* @__PURE__ */ it(cCe, Ht({}, r, {
|
|
43360
43360
|
ref: t,
|
|
43361
43361
|
forceMount: n
|
|
43362
|
-
})) : i.type === "auto" ? /* @__PURE__ */
|
|
43362
|
+
})) : i.type === "auto" ? /* @__PURE__ */ it(CD, Ht({}, r, {
|
|
43363
43363
|
ref: t,
|
|
43364
43364
|
forceMount: n
|
|
43365
|
-
})) : i.type === "always" ? /* @__PURE__ */
|
|
43365
|
+
})) : i.type === "always" ? /* @__PURE__ */ it(X_, Ht({}, r, {
|
|
43366
43366
|
ref: t
|
|
43367
43367
|
})) : null;
|
|
43368
43368
|
}), lCe = /* @__PURE__ */ st((e, t) => {
|
|
@@ -43386,9 +43386,9 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43386
43386
|
}, [
|
|
43387
43387
|
i.scrollArea,
|
|
43388
43388
|
i.scrollHideDelay
|
|
43389
|
-
]), /* @__PURE__ */
|
|
43389
|
+
]), /* @__PURE__ */ it(Ua, {
|
|
43390
43390
|
present: n || o
|
|
43391
|
-
}, /* @__PURE__ */
|
|
43391
|
+
}, /* @__PURE__ */ it(CD, Ht({
|
|
43392
43392
|
"data-state": o ? "visible" : "hidden"
|
|
43393
43393
|
}, r, {
|
|
43394
43394
|
ref: t
|
|
@@ -43442,9 +43442,9 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43442
43442
|
o,
|
|
43443
43443
|
l,
|
|
43444
43444
|
a
|
|
43445
|
-
]), /* @__PURE__ */
|
|
43445
|
+
]), /* @__PURE__ */ it(Ua, {
|
|
43446
43446
|
present: n || s !== "hidden"
|
|
43447
|
-
}, /* @__PURE__ */
|
|
43447
|
+
}, /* @__PURE__ */ it(X_, Ht({
|
|
43448
43448
|
"data-state": s === "hidden" ? "hidden" : "visible"
|
|
43449
43449
|
}, r, {
|
|
43450
43450
|
ref: t,
|
|
@@ -43464,9 +43464,9 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43464
43464
|
a(s ? c : f);
|
|
43465
43465
|
}
|
|
43466
43466
|
}, 10);
|
|
43467
|
-
return Yu(n.viewport, l), Yu(n.content, l), /* @__PURE__ */
|
|
43467
|
+
return Yu(n.viewport, l), Yu(n.content, l), /* @__PURE__ */ it(Ua, {
|
|
43468
43468
|
present: r || o
|
|
43469
|
-
}, /* @__PURE__ */
|
|
43469
|
+
}, /* @__PURE__ */ it(X_, Ht({
|
|
43470
43470
|
"data-state": o ? "visible" : "hidden"
|
|
43471
43471
|
}, i, {
|
|
43472
43472
|
ref: t
|
|
@@ -43492,7 +43492,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43492
43492
|
function p(g, h) {
|
|
43493
43493
|
return vCe(g, a.current, s, h);
|
|
43494
43494
|
}
|
|
43495
|
-
return n === "horizontal" ? /* @__PURE__ */
|
|
43495
|
+
return n === "horizontal" ? /* @__PURE__ */ it(dCe, Ht({}, f, {
|
|
43496
43496
|
ref: t,
|
|
43497
43497
|
onThumbPositionChange: () => {
|
|
43498
43498
|
if (i.viewport && o.current) {
|
|
@@ -43506,7 +43506,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43506
43506
|
onDragScroll: (g) => {
|
|
43507
43507
|
i.viewport && (i.viewport.scrollLeft = p(g, i.dir));
|
|
43508
43508
|
}
|
|
43509
|
-
})) : n === "vertical" ? /* @__PURE__ */
|
|
43509
|
+
})) : n === "vertical" ? /* @__PURE__ */ it(fCe, Ht({}, f, {
|
|
43510
43510
|
ref: t,
|
|
43511
43511
|
onThumbPositionChange: () => {
|
|
43512
43512
|
if (i.viewport && o.current) {
|
|
@@ -43527,7 +43527,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43527
43527
|
l.current && s(getComputedStyle(l.current));
|
|
43528
43528
|
}, [
|
|
43529
43529
|
l
|
|
43530
|
-
]), /* @__PURE__ */
|
|
43530
|
+
]), /* @__PURE__ */ it(TD, Ht({
|
|
43531
43531
|
"data-orientation": "horizontal"
|
|
43532
43532
|
}, i, {
|
|
43533
43533
|
ref: c,
|
|
@@ -43565,7 +43565,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43565
43565
|
l.current && s(getComputedStyle(l.current));
|
|
43566
43566
|
}, [
|
|
43567
43567
|
l
|
|
43568
|
-
]), /* @__PURE__ */
|
|
43568
|
+
]), /* @__PURE__ */ it(TD, Ht({
|
|
43569
43569
|
"data-orientation": "vertical"
|
|
43570
43570
|
}, i, {
|
|
43571
43571
|
ref: c,
|
|
@@ -43630,7 +43630,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43630
43630
|
]), nt(C, [
|
|
43631
43631
|
r,
|
|
43632
43632
|
C
|
|
43633
|
-
]), Yu(y, M), Yu(h.content, M), /* @__PURE__ */
|
|
43633
|
+
]), Yu(y, M), Yu(h.content, M), /* @__PURE__ */ it(pCe, {
|
|
43634
43634
|
scope: n,
|
|
43635
43635
|
scrollbar: y,
|
|
43636
43636
|
hasThumb: i,
|
|
@@ -43638,7 +43638,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43638
43638
|
onThumbPointerUp: Dr(a),
|
|
43639
43639
|
onThumbPositionChange: C,
|
|
43640
43640
|
onThumbPointerDown: Dr(s)
|
|
43641
|
-
}, /* @__PURE__ */
|
|
43641
|
+
}, /* @__PURE__ */ it(gr.div, Ht({}, g, {
|
|
43642
43642
|
ref: x,
|
|
43643
43643
|
style: {
|
|
43644
43644
|
position: "absolute",
|
|
@@ -43655,9 +43655,9 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43655
43655
|
})));
|
|
43656
43656
|
}), Zb = "ScrollAreaThumb", hCe = /* @__PURE__ */ st((e, t) => {
|
|
43657
43657
|
const { forceMount: n, ...r } = e, i = kD(Zb, e.__scopeScrollArea);
|
|
43658
|
-
return /* @__PURE__ */
|
|
43658
|
+
return /* @__PURE__ */ it(Ua, {
|
|
43659
43659
|
present: n || i.hasThumb
|
|
43660
|
-
}, /* @__PURE__ */
|
|
43660
|
+
}, /* @__PURE__ */ it(mCe, Ht({
|
|
43661
43661
|
ref: t
|
|
43662
43662
|
}, r)));
|
|
43663
43663
|
}), mCe = /* @__PURE__ */ st((e, t) => {
|
|
@@ -43682,7 +43682,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43682
43682
|
o.viewport,
|
|
43683
43683
|
f,
|
|
43684
43684
|
s
|
|
43685
|
-
]), /* @__PURE__ */
|
|
43685
|
+
]), /* @__PURE__ */ it(gr.div, Ht({
|
|
43686
43686
|
"data-state": a.hasThumb ? "visible" : "hidden"
|
|
43687
43687
|
}, i, {
|
|
43688
43688
|
ref: l,
|
|
@@ -43702,7 +43702,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43702
43702
|
}));
|
|
43703
43703
|
}), OD = "ScrollAreaCorner", yCe = /* @__PURE__ */ st((e, t) => {
|
|
43704
43704
|
const n = Oi(OD, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
43705
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */
|
|
43705
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ it(gCe, Ht({}, e, {
|
|
43706
43706
|
ref: t
|
|
43707
43707
|
})) : null;
|
|
43708
43708
|
}), gCe = /* @__PURE__ */ st((e, t) => {
|
|
@@ -43715,7 +43715,7 @@ const ED = "ScrollArea", [AD, Vke] = Lh(ED), [iCe, Oi] = AD(ED), oCe = /* @__PUR
|
|
|
43715
43715
|
var f;
|
|
43716
43716
|
const p = ((f = i.scrollbarY) === null || f === void 0 ? void 0 : f.offsetWidth) || 0;
|
|
43717
43717
|
i.onCornerWidthChange(p), a(p);
|
|
43718
|
-
}), c ? /* @__PURE__ */
|
|
43718
|
+
}), c ? /* @__PURE__ */ it(gr.div, Ht({}, r, {
|
|
43719
43719
|
ref: t,
|
|
43720
43720
|
style: {
|
|
43721
43721
|
width: o,
|
|
@@ -44176,7 +44176,7 @@ function RCe(e, t = !1) {
|
|
|
44176
44176
|
}
|
|
44177
44177
|
const RC = 10 * 1e3, ICe = Ts(({ scrollDownButton: e, ...t }) => {
|
|
44178
44178
|
var S, A, k, C, M, j, q, D, Z, ne, J, K, H;
|
|
44179
|
-
const { messageList: n } =
|
|
44179
|
+
const { messageList: n } = rt((L) => L.theme), r = rt((L) => L.messages), i = rt((L) => L.setState), o = rt((L) => L.on), a = rt((L) => L.getClientId)(), s = rt((L) => L.configuration), l = rt((L) => L.messageContainerRef), c = rt((L) => L.isTyping), f = rt((L) => L.setIsTyping), p = hs(() => $Ce(r), [r]), [g, h] = ut(!0), { y } = wwe(l), [v, x] = Swe(), w = () => {
|
|
44180
44180
|
if (!l.current)
|
|
44181
44181
|
return;
|
|
44182
44182
|
const { scrollHeight: L } = l.current;
|
|
@@ -44452,7 +44452,7 @@ export {
|
|
|
44452
44452
|
Ma as a,
|
|
44453
44453
|
B0e as b,
|
|
44454
44454
|
lt as c,
|
|
44455
|
-
|
|
44455
|
+
rt as d,
|
|
44456
44456
|
JSe as e,
|
|
44457
44457
|
QSe as f,
|
|
44458
44458
|
Wb as g,
|