corp-chat-library-antd-react-socket 1.2.12 → 1.2.13

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.
Files changed (2) hide show
  1. package/dist/index.js +151 -151
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as N, jsxs as Fe } from "react/jsx-runtime";
2
2
  import * as T from "react";
3
- import re, { useRef as me, cloneElement as Ys, forwardRef as ro, useState as Q, useImperativeHandle as Qs, useEffect as fe, version as Zs, isValidElement as Js, useMemo as Ft, useContext as vt, createContext as rn, useLayoutEffect as ec, useCallback as De } from "react";
3
+ import re, { useRef as me, cloneElement as Ys, forwardRef as ro, useState as Z, useImperativeHandle as Qs, useEffect as fe, version as Zs, isValidElement as Js, useMemo as Ft, useContext as vt, createContext as rn, useLayoutEffect as ec, useCallback as De } from "react";
4
4
  import { Badge as tc, Space as no, Popover as sr, Button as et, Layout as zt, Upload as rc, Input as nc, Divider as ac, Empty as Kr, FloatButton as ic, Modal as oc, Dropdown as sc } from "antd";
5
5
  import { SearchOutlined as cc, DragOutlined as Ba, SettingOutlined as lc, BellOutlined as uc, DownloadOutlined as dc, LockOutlined as fc, EyeInvisibleOutlined as hc, PaperClipOutlined as gc, UploadOutlined as mc, SmileOutlined as vc, SendOutlined as pc, CalendarOutlined as yc, CheckOutlined as za, LoadingOutlined as bc, ArrowDownOutlined as Sc, FileFilled as _c, FileTextFilled as Cc, FileZipFilled as xc, FileMarkdownFilled as Ec, FilePptFilled as wc, FileExcelFilled as $c, FileWordFilled as Oc, FilePdfFilled as Tc, FileImageFilled as Fc, CloseOutlined as Pc, MessageOutlined as Mc } from "@ant-design/icons";
6
6
  import Rc from "react-draggable";
@@ -83,27 +83,27 @@ function ol() {
83
83
  }
84
84
  var sl = ol();
85
85
  const Re = /* @__PURE__ */ ao(sl);
86
- function Z(e) {
86
+ function J(e) {
87
87
  "@babel/helpers - typeof";
88
- return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
88
+ return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
89
89
  return typeof t;
90
90
  } : function(t) {
91
91
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
92
- }, Z(e);
92
+ }, J(e);
93
93
  }
94
94
  function cl(e, t) {
95
- if (Z(e) != "object" || !e) return e;
95
+ if (J(e) != "object" || !e) return e;
96
96
  var r = e[Symbol.toPrimitive];
97
97
  if (r !== void 0) {
98
98
  var n = r.call(e, t);
99
- if (Z(n) != "object") return n;
99
+ if (J(n) != "object") return n;
100
100
  throw new TypeError("@@toPrimitive must return a primitive value.");
101
101
  }
102
102
  return (t === "string" ? String : Number)(e);
103
103
  }
104
104
  function io(e) {
105
105
  var t = cl(e, "string");
106
- return Z(t) == "symbol" ? t : t + "";
106
+ return J(t) == "symbol" ? t : t + "";
107
107
  }
108
108
  function x(e, t, r) {
109
109
  return (t = io(t)) in e ? Object.defineProperty(e, t, {
@@ -210,7 +210,7 @@ var fl = /* @__PURE__ */ re.forwardRef(function(e, t) {
210
210
  }), L) {
211
211
  var H = null;
212
212
  if (m) {
213
- var U = !v && !g && y, q = "".concat(s, "-clear-icon"), J = Z(m) === "object" && m !== null && m !== void 0 && m.clearIcon ? m.clearIcon : "✖";
213
+ var U = !v && !g && y, q = "".concat(s, "-clear-icon"), ee = J(m) === "object" && m !== null && m !== void 0 && m.clearIcon ? m.clearIcon : "✖";
214
214
  H = /* @__PURE__ */ re.createElement("button", {
215
215
  type: "button",
216
216
  tabIndex: -1,
@@ -221,7 +221,7 @@ var fl = /* @__PURE__ */ re.forwardRef(function(e, t) {
221
221
  return Ie.preventDefault();
222
222
  },
223
223
  className: Re(q, x(x({}, "".concat(q, "-hidden"), !U), "".concat(q, "-has-suffix"), !!l))
224
- }, J);
224
+ }, ee);
225
225
  }
226
226
  var le = "".concat(s, "-affix-wrapper"), ie = Re(le, x(x(x(x(x({}, "".concat(s, "-disabled"), v), "".concat(le, "-disabled"), v), "".concat(le, "-focused"), h), "".concat(le, "-readonly"), g), "".concat(le, "-input-with-clear-btn"), l && m && y), O?.affixWrapper, _?.affixWrapper, _?.variant), he = (l || m) && /* @__PURE__ */ re.createElement("span", {
227
227
  className: Re("".concat(s, "-suffix"), _?.suffix),
@@ -279,7 +279,7 @@ function gl() {
279
279
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
280
280
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
281
281
  }
282
- function Y(e) {
282
+ function Q(e) {
283
283
  return hl(e) || oo(e) || Ca(e) || gl();
284
284
  }
285
285
  function so(e) {
@@ -399,7 +399,7 @@ var bl = ["show"];
399
399
  function Sl(e, t) {
400
400
  return T.useMemo(function() {
401
401
  var r = {};
402
- t && (r.show = Z(t) === "object" && t.formatter ? t.formatter : !!t), r = j(j({}, r), e);
402
+ t && (r.show = J(t) === "object" && t.formatter ? t.formatter : !!t), r = j(j({}, r), e);
403
403
  var n = r, a = n.show, i = pt(n, bl);
404
404
  return j(j({}, i), {}, {
405
405
  show: !!a,
@@ -411,11 +411,11 @@ function Sl(e, t) {
411
411
  }, [e, t]);
412
412
  }
413
413
  var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], Cl = /* @__PURE__ */ ro(function(e, t) {
414
- var r = e.autoComplete, n = e.onChange, a = e.onFocus, i = e.onBlur, o = e.onPressEnter, s = e.onKeyDown, c = e.onKeyUp, l = e.prefixCls, u = l === void 0 ? "rc-input" : l, d = e.disabled, f = e.htmlSize, p = e.className, v = e.maxLength, g = e.suffix, h = e.showCount, S = e.count, m = e.type, y = m === void 0 ? "text" : m, E = e.classes, C = e.classNames, O = e.styles, _ = e.onCompositionStart, F = e.onCompositionEnd, M = pt(e, _l), P = Q(!1), R = X(P, 2), D = R[0], V = R[1], b = me(!1), w = me(!1), $ = me(null), A = me(null), I = function(te) {
414
+ var r = e.autoComplete, n = e.onChange, a = e.onFocus, i = e.onBlur, o = e.onPressEnter, s = e.onKeyDown, c = e.onKeyUp, l = e.prefixCls, u = l === void 0 ? "rc-input" : l, d = e.disabled, f = e.htmlSize, p = e.className, v = e.maxLength, g = e.suffix, h = e.showCount, S = e.count, m = e.type, y = m === void 0 ? "text" : m, E = e.classes, C = e.classNames, O = e.styles, _ = e.onCompositionStart, F = e.onCompositionEnd, M = pt(e, _l), P = Z(!1), R = X(P, 2), D = R[0], V = R[1], b = me(!1), w = me(!1), $ = me(null), A = me(null), I = function(te) {
415
415
  $.current && dl($.current, te);
416
416
  }, L = pl(e.defaultValue, {
417
417
  value: e.value
418
- }), k = X(L, 2), B = k[0], H = k[1], U = B == null ? "" : String(B), q = Q(null), J = X(q, 2), le = J[0], ie = J[1], he = Sl(S, h), ue = he.max || v, oe = he.strategy(U), ve = !!ue && oe > ue;
418
+ }), k = X(L, 2), B = k[0], H = k[1], U = B == null ? "" : String(B), q = Z(null), ee = X(q, 2), le = ee[0], ie = ee[1], he = Sl(S, h), ue = he.max || v, oe = he.strategy(U), ve = !!ue && oe > ue;
419
419
  Qs(t, function() {
420
420
  var ae;
421
421
  return {
@@ -456,7 +456,7 @@ var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
456
456
  fe(function() {
457
457
  if (le) {
458
458
  var ae;
459
- (ae = $.current) === null || ae === void 0 || ae.setSelectionRange.apply(ae, Y(le));
459
+ (ae = $.current) === null || ae === void 0 || ae.setSelectionRange.apply(ae, Q(le));
460
460
  }
461
461
  }, [le]);
462
462
  var Oe = function(te) {
@@ -674,7 +674,7 @@ function El() {
674
674
  function q(W) {
675
675
  return typeof W == "object" && W !== null && W.$$typeof === e;
676
676
  }
677
- function J(W) {
677
+ function ee(W) {
678
678
  return C(W) === c;
679
679
  }
680
680
  function le(W) {
@@ -701,7 +701,7 @@ function El() {
701
701
  function Oe(W) {
702
702
  return C(W) === u;
703
703
  }
704
- ye.ContextConsumer = O, ye.ContextProvider = _, ye.Element = F, ye.ForwardRef = M, ye.Fragment = P, ye.Lazy = R, ye.Memo = D, ye.Portal = V, ye.Profiler = b, ye.StrictMode = w, ye.Suspense = $, ye.SuspenseList = A, ye.isAsyncMode = k, ye.isConcurrentMode = B, ye.isContextConsumer = H, ye.isContextProvider = U, ye.isElement = q, ye.isForwardRef = J, ye.isFragment = le, ye.isLazy = ie, ye.isMemo = he, ye.isPortal = ue, ye.isProfiler = oe, ye.isStrictMode = ve, ye.isSuspense = Ce, ye.isSuspenseList = Oe, ye.isValidElementType = E, ye.typeOf = C;
704
+ ye.ContextConsumer = O, ye.ContextProvider = _, ye.Element = F, ye.ForwardRef = M, ye.Fragment = P, ye.Lazy = R, ye.Memo = D, ye.Portal = V, ye.Profiler = b, ye.StrictMode = w, ye.Suspense = $, ye.SuspenseList = A, ye.isAsyncMode = k, ye.isConcurrentMode = B, ye.isContextConsumer = H, ye.isContextProvider = U, ye.isElement = q, ye.isForwardRef = ee, ye.isFragment = le, ye.isLazy = ie, ye.isMemo = he, ye.isPortal = ue, ye.isProfiler = oe, ye.isStrictMode = ve, ye.isSuspense = Ce, ye.isSuspenseList = Oe, ye.isValidElementType = E, ye.typeOf = C;
705
705
  })()), ye;
706
706
  }
707
707
  var Ja;
@@ -717,13 +717,13 @@ var $l = Symbol.for("react.element"), Ol = Symbol.for("react.transitional.elemen
717
717
  function fo(e) {
718
718
  return (
719
719
  // Base object type
720
- e && Z(e) === "object" && // React Element type
720
+ e && J(e) === "object" && // React Element type
721
721
  (e.$$typeof === $l || e.$$typeof === Ol) && // React Fragment type
722
722
  e.type === Tl
723
723
  );
724
724
  }
725
725
  var Fl = Number(Zs.split(".")[0]), ho = function(t, r) {
726
- typeof t == "function" ? t(r) : Z(t) === "object" && t && "current" in t && (t.current = r);
726
+ typeof t == "function" ? t(r) : J(t) === "object" && t && "current" in t && (t.current = r);
727
727
  }, Pl = function() {
728
728
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
729
729
  r[n] = arguments[n];
@@ -910,7 +910,7 @@ function ei(e) {
910
910
  }
911
911
  };
912
912
  }
913
- throw new TypeError(Z(e) + " is not iterable");
913
+ throw new TypeError(J(e) + " is not iterable");
914
914
  }
915
915
  function tt() {
916
916
  var e = xa(), t = e.m(tt), r = (Object.getPrototypeOf ? Object.getPrototypeOf(t) : t.__proto__).constructor;
@@ -1051,7 +1051,7 @@ function Ea() {
1051
1051
  })();
1052
1052
  }
1053
1053
  function Nl(e, t) {
1054
- if (t && (Z(t) == "object" || typeof t == "function")) return t;
1054
+ if (t && (J(t) == "object" || typeof t == "function")) return t;
1055
1055
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1056
1056
  return ne(e);
1057
1057
  }
@@ -1126,7 +1126,7 @@ function Nn(e, t) {
1126
1126
  return !1;
1127
1127
  return !0;
1128
1128
  }
1129
- if (i && o && Z(i) === "object" && Z(o) === "object") {
1129
+ if (i && o && J(i) === "object" && J(o) === "object") {
1130
1130
  var d = Object.keys(i);
1131
1131
  return d.length !== Object.keys(o).length ? !1 : d.every(function(f) {
1132
1132
  return a(i[f], o[f], l);
@@ -1323,7 +1323,7 @@ function Ve(e, t) {
1323
1323
  function Wl(e, t, r) {
1324
1324
  var n = [], a = 0, i = e.length;
1325
1325
  function o(s) {
1326
- n.push.apply(n, Y(s || [])), a++, a === i && r(n);
1326
+ n.push.apply(n, Q(s || [])), a++, a === i && r(n);
1327
1327
  }
1328
1328
  e.forEach(function(s) {
1329
1329
  t(s, o);
@@ -1344,7 +1344,7 @@ function ni(e, t, r) {
1344
1344
  function Ul(e) {
1345
1345
  var t = [];
1346
1346
  return Object.keys(e).forEach(function(r) {
1347
- t.push.apply(t, Y(e[r] || []));
1347
+ t.push.apply(t, Q(e[r] || []));
1348
1348
  }), t;
1349
1349
  }
1350
1350
  var ai = /* @__PURE__ */ (function(e) {
@@ -1408,7 +1408,7 @@ function oi(e, t) {
1408
1408
  for (var r in t)
1409
1409
  if (t.hasOwnProperty(r)) {
1410
1410
  var n = t[r];
1411
- Z(n) === "object" && Z(e[r]) === "object" ? e[r] = j(j({}, e[r]), n) : e[r] = n;
1411
+ J(n) === "object" && J(e[r]) === "object" ? e[r] = j(j({}, e[r]), n) : e[r] = n;
1412
1412
  }
1413
1413
  }
1414
1414
  return e;
@@ -1499,7 +1499,7 @@ var si = {
1499
1499
  return isNaN(t) ? !1 : typeof t == "number";
1500
1500
  },
1501
1501
  object: function(t) {
1502
- return Z(t) === "object" && !or.array(t);
1502
+ return J(t) === "object" && !or.array(t);
1503
1503
  },
1504
1504
  method: function(t) {
1505
1505
  return typeof t == "function";
@@ -1519,7 +1519,7 @@ var si = {
1519
1519
  return;
1520
1520
  }
1521
1521
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = t.type;
1522
- o.indexOf(s) > -1 ? or[s](r) || a.push(Ye(i.messages.types[s], t.fullField, t.type)) : s && Z(r) !== t.type && a.push(Ye(i.messages.types[s], t.fullField, t.type));
1522
+ o.indexOf(s) > -1 ? or[s](r) || a.push(Ye(i.messages.types[s], t.fullField, t.type)) : s && J(r) !== t.type && a.push(Ye(i.messages.types[s], t.fullField, t.type));
1523
1523
  }, eu = function(t, r, n, a, i) {
1524
1524
  (/^\s+$/.test(r) || r === "") && a.push(Ye(i.messages.whitespace, t.fullField));
1525
1525
  };
@@ -1631,7 +1631,7 @@ var tu = function(t, r, n, a, i) {
1631
1631
  }
1632
1632
  n(o);
1633
1633
  }, gu = function(t, r, n, a, i) {
1634
- var o = [], s = Array.isArray(r) ? "array" : Z(r);
1634
+ var o = [], s = Array.isArray(r) ? "array" : J(r);
1635
1635
  ce.required(t, r, a, o, i, s), n(o);
1636
1636
  }, mu = function(t, r, n, a, i) {
1637
1637
  var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
@@ -1679,7 +1679,7 @@ var Sr = /* @__PURE__ */ (function() {
1679
1679
  var n = this;
1680
1680
  if (!r)
1681
1681
  throw new Error("Cannot configure a schema with no rules");
1682
- if (Z(r) !== "object" || Array.isArray(r))
1682
+ if (J(r) !== "object" || Array.isArray(r))
1683
1683
  throw new Error("Rules must be an object");
1684
1684
  this.rules = {}, Object.keys(r).forEach(function(a) {
1685
1685
  var i = r[a];
@@ -1703,7 +1703,7 @@ var Sr = /* @__PURE__ */ (function() {
1703
1703
  function S(y) {
1704
1704
  if (Array.isArray(y)) {
1705
1705
  var E;
1706
- g = (E = g).concat.apply(E, Y(y));
1706
+ g = (E = g).concat.apply(E, Q(y));
1707
1707
  } else
1708
1708
  g.push(y);
1709
1709
  }
@@ -1721,7 +1721,7 @@ var Sr = /* @__PURE__ */ (function() {
1721
1721
  var g = n.rules[v], h = o[v];
1722
1722
  g.forEach(function(S) {
1723
1723
  var m = S;
1724
- typeof m.transform == "function" && (o === r && (o = j({}, o)), h = o[v] = m.transform(h), h != null && (m.type = m.type || (Array.isArray(h) ? "array" : Z(h)))), typeof m == "function" ? m = {
1724
+ typeof m.transform == "function" && (o === r && (o = j({}, o)), h = o[v] = m.transform(h), h != null && (m.type = m.type || (Array.isArray(h) ? "array" : J(h)))), typeof m == "function" ? m = {
1725
1725
  validator: m
1726
1726
  } : m = j({}, m), m.validator = n.getValidationMethod(m), m.validator && (m.field = v, m.fullField = m.fullField || v, m.type = n.getType(m), d[v] = d[v] || [], d[v].push({
1727
1727
  rule: m,
@@ -1733,12 +1733,12 @@ var Sr = /* @__PURE__ */ (function() {
1733
1733
  });
1734
1734
  var p = {};
1735
1735
  return ql(d, s, function(v, g) {
1736
- var h = v.rule, S = (h.type === "object" || h.type === "array") && (Z(h.fields) === "object" || Z(h.defaultField) === "object");
1736
+ var h = v.rule, S = (h.type === "object" || h.type === "array") && (J(h.fields) === "object" || J(h.defaultField) === "object");
1737
1737
  S = S && (h.required || !h.required && v.value), h.field = v.field;
1738
1738
  function m(_, F) {
1739
1739
  return j(j({}, F), {}, {
1740
1740
  fullField: "".concat(h.fullField, ".").concat(_),
1741
- fullFields: h.fullFields ? [].concat(Y(h.fullFields), [_]) : [_]
1741
+ fullFields: h.fullFields ? [].concat(Q(h.fullFields), [_]) : [_]
1742
1742
  });
1743
1743
  }
1744
1744
  function y() {
@@ -1764,7 +1764,7 @@ var Sr = /* @__PURE__ */ (function() {
1764
1764
  var D = new e(R);
1765
1765
  D.messages(s.messages), v.rule.options && (v.rule.options.messages = s.messages, v.rule.options.error = s.error), D.validate(v.value, v.rule.options || s, function(V) {
1766
1766
  var b = [];
1767
- M && M.length && b.push.apply(b, Y(M)), V && V.length && b.push.apply(b, Y(V)), g(b.length ? b : null);
1767
+ M && M.length && b.push.apply(b, Q(M)), V && V.length && b.push.apply(b, Q(V)), g(b.length ? b : null);
1768
1768
  });
1769
1769
  }
1770
1770
  }
@@ -1878,14 +1878,14 @@ function Co(e, t, r, n) {
1878
1878
  if (!t.length)
1879
1879
  return r;
1880
1880
  var a = vu(t), i = a[0], o = a.slice(1), s;
1881
- return !e && typeof i == "number" ? s = [] : Array.isArray(e) ? s = Y(e) : s = j({}, e), n && r === void 0 && o.length === 1 ? delete s[i][o[0]] : s[i] = Co(s[i], o, r, n), s;
1881
+ return !e && typeof i == "number" ? s = [] : Array.isArray(e) ? s = Q(e) : s = j({}, e), n && r === void 0 && o.length === 1 ? delete s[i][o[0]] : s[i] = Co(s[i], o, r, n), s;
1882
1882
  }
1883
1883
  function at(e, t, r) {
1884
1884
  var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
1885
1885
  return t.length && n && r === void 0 && !mt(e, t.slice(0, -1)) ? e : Co(e, t, r, n);
1886
1886
  }
1887
1887
  function pu(e) {
1888
- return Z(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
1888
+ return J(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
1889
1889
  }
1890
1890
  function ci(e) {
1891
1891
  return Array.isArray(e) ? [] : {};
@@ -1902,8 +1902,8 @@ function Lt() {
1902
1902
  if (!c.has(l)) {
1903
1903
  c.add(l);
1904
1904
  var d = mt(n, o);
1905
- u ? n = at(n, o, []) : (!d || Z(d) !== "object") && (n = at(n, o, ci(l))), yu(l).forEach(function(f) {
1906
- i([].concat(Y(o), [f]), c);
1905
+ u ? n = at(n, o, []) : (!d || J(d) !== "object") && (n = at(n, o, ci(l))), yu(l).forEach(function(f) {
1906
+ i([].concat(Q(o), [f]), c);
1907
1907
  });
1908
1908
  }
1909
1909
  } else
@@ -1962,7 +1962,7 @@ function Bn() {
1962
1962
  }));
1963
1963
  case 21:
1964
1964
  return f = h.sent, h.abrupt("return", f.reduce(function(S, m) {
1965
- return [].concat(Y(S), Y(m));
1965
+ return [].concat(Q(S), Q(m));
1966
1966
  }, []));
1967
1967
  case 23:
1968
1968
  return p = j(j({}, n), {}, {
@@ -2065,7 +2065,7 @@ function zn() {
2065
2065
  for (; ; ) switch (n.prev = n.next) {
2066
2066
  case 0:
2067
2067
  return n.abrupt("return", Promise.all(t).then(function(a) {
2068
- var i, o = (i = []).concat.apply(i, Y(a));
2068
+ var i, o = (i = []).concat.apply(i, Q(a));
2069
2069
  return o;
2070
2070
  }));
2071
2071
  case 1:
@@ -2123,24 +2123,24 @@ function xo(e, t) {
2123
2123
  function xu(e, t) {
2124
2124
  if (e === t)
2125
2125
  return !0;
2126
- if (!e && t || e && !t || !e || !t || Z(e) !== "object" || Z(t) !== "object")
2126
+ if (!e && t || e && !t || !e || !t || J(e) !== "object" || J(t) !== "object")
2127
2127
  return !1;
2128
2128
  var r = Object.keys(e), n = Object.keys(t), a = new Set([].concat(r, n));
2129
- return Y(a).every(function(i) {
2129
+ return Q(a).every(function(i) {
2130
2130
  var o = e[i], s = t[i];
2131
2131
  return typeof o == "function" && typeof s == "function" ? !0 : o === s;
2132
2132
  });
2133
2133
  }
2134
2134
  function Eu(e) {
2135
2135
  var t = arguments.length <= 1 ? void 0 : arguments[1];
2136
- return t && t.target && Z(t.target) === "object" && e in t.target ? t.target[e] : t;
2136
+ return t && t.target && J(t.target) === "object" && e in t.target ? t.target[e] : t;
2137
2137
  }
2138
2138
  function fi(e, t, r) {
2139
2139
  var n = e.length;
2140
2140
  if (t < 0 || t >= n || r < 0 || r >= n)
2141
2141
  return e;
2142
2142
  var a = e[t], i = t - r;
2143
- return i > 0 ? [].concat(Y(e.slice(0, r)), [a], Y(e.slice(r, t)), Y(e.slice(t + 1, n))) : i < 0 ? [].concat(Y(e.slice(0, t)), Y(e.slice(t + 1, r + 1)), [a], Y(e.slice(r + 1, n))) : e;
2143
+ return i > 0 ? [].concat(Q(e.slice(0, r)), [a], Q(e.slice(r, t)), Q(e.slice(t + 1, n))) : i < 0 ? [].concat(Q(e.slice(0, t)), Q(e.slice(t + 1, r + 1)), [a], Q(e.slice(r + 1, n))) : e;
2144
2144
  }
2145
2145
  var wu = ["name"], Ze = [];
2146
2146
  function Sn(e, t, r, n, a, i) {
@@ -2160,7 +2160,7 @@ var Oa = /* @__PURE__ */ (function(e) {
2160
2160
  a.cancelRegisterFunc && a.cancelRegisterFunc(u, l, Me(d)), a.cancelRegisterFunc = null;
2161
2161
  }), x(ne(a), "getNamePath", function() {
2162
2162
  var c = a.props, l = c.name, u = c.fieldContext, d = u.prefixName, f = d === void 0 ? [] : d;
2163
- return l !== void 0 ? [].concat(Y(f), Y(l)) : [];
2163
+ return l !== void 0 ? [].concat(Q(f), Q(l)) : [];
2164
2164
  }), x(ne(a), "getRules", function() {
2165
2165
  var c = a.props, l = c.rules, u = l === void 0 ? [] : l, d = c.fieldContext;
2166
2166
  return u.map(function(f) {
@@ -2281,7 +2281,7 @@ var Oa = /* @__PURE__ */ (function(e) {
2281
2281
  var D = [], V = [];
2282
2282
  (R = P.forEach) === null || R === void 0 || R.call(P, function(b) {
2283
2283
  var w = b.rule.warningOnly, $ = b.errors, A = $ === void 0 ? Ze : $;
2284
- w ? V.push.apply(V, Y(A)) : D.push.apply(D, Y(A));
2284
+ w ? V.push.apply(V, Q(A)) : D.push.apply(D, Q(A));
2285
2285
  }), a.errors = D, a.warnings = V, a.triggerMetaEvent(), a.reRender();
2286
2286
  }
2287
2287
  }), M.abrupt("return", _);
@@ -2428,7 +2428,7 @@ function $u(e) {
2428
2428
  id: 0
2429
2429
  }), u = l.current, d = T.useMemo(function() {
2430
2430
  var g = Me(s.prefixName) || [];
2431
- return [].concat(Y(g), Y(Me(t)));
2431
+ return [].concat(Q(g), Q(Me(t)));
2432
2432
  }, [s.prefixName, t]), f = T.useMemo(function() {
2433
2433
  return j(j({}, s), {}, {
2434
2434
  prefixName: d
@@ -2466,7 +2466,7 @@ function $u(e) {
2466
2466
  }, O = {
2467
2467
  add: function(M, P) {
2468
2468
  var R = C();
2469
- P >= 0 && P <= R.length ? (u.keys = [].concat(Y(u.keys.slice(0, P)), [u.id], Y(u.keys.slice(P))), y([].concat(Y(R.slice(0, P)), [M], Y(R.slice(P))))) : (process.env.NODE_ENV !== "production" && (P < 0 || P > R.length) && $e(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(Y(u.keys), [u.id]), y([].concat(Y(R), [M]))), u.id += 1;
2469
+ P >= 0 && P <= R.length ? (u.keys = [].concat(Q(u.keys.slice(0, P)), [u.id], Q(u.keys.slice(P))), y([].concat(Q(R.slice(0, P)), [M], Q(R.slice(P))))) : (process.env.NODE_ENV !== "production" && (P < 0 || P > R.length) && $e(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(Q(u.keys), [u.id]), y([].concat(Q(R), [M]))), u.id += 1;
2470
2470
  },
2471
2471
  remove: function(M) {
2472
2472
  var P = C(), R = new Set(Array.isArray(M) ? M : [M]);
@@ -2508,7 +2508,7 @@ function Ou(e) {
2508
2508
  var wo = "__@field_split__";
2509
2509
  function _n(e) {
2510
2510
  return e.map(function(t) {
2511
- return "".concat(Z(t), ":").concat(t);
2511
+ return "".concat(J(t), ":").concat(t);
2512
2512
  }).join(wo);
2513
2513
  }
2514
2514
  var jt = /* @__PURE__ */ (function() {
@@ -2540,7 +2540,7 @@ var jt = /* @__PURE__ */ (function() {
2540
2540
  }, {
2541
2541
  key: "map",
2542
2542
  value: function(r) {
2543
- return Y(this.kvs.entries()).map(function(n) {
2543
+ return Q(this.kvs.entries()).map(function(n) {
2544
2544
  var a = X(n, 2), i = a[0], o = a[1], s = i.split(wo);
2545
2545
  return r({
2546
2546
  key: s.map(function(c) {
@@ -2670,7 +2670,7 @@ var jt = /* @__PURE__ */ (function() {
2670
2670
  }), x(this, "getFieldsValue", function(n, a) {
2671
2671
  r.warningUnhooked();
2672
2672
  var i, o, s;
2673
- if (n === !0 || Array.isArray(n) ? (i = n, o = a) : n && Z(n) === "object" && (s = n.strict, o = n.filter), i === !0 && !o)
2673
+ if (n === !0 || Array.isArray(n) ? (i = n, o = a) : n && J(n) === "object" && (s = n.strict, o = n.filter), i === !0 && !o)
2674
2674
  return r.store;
2675
2675
  var c = r.getFieldEntitiesForNamePathList(Array.isArray(i) ? i : null), l = [];
2676
2676
  return c.forEach(function(u) {
@@ -2736,7 +2736,7 @@ var jt = /* @__PURE__ */ (function() {
2736
2736
  S.every(function(m, y) {
2737
2737
  return h[y] === m;
2738
2738
  }) && f.update(S, function(m) {
2739
- return [].concat(Y(m), [g]);
2739
+ return [].concat(Q(m), [g]);
2740
2740
  });
2741
2741
  });
2742
2742
  });
@@ -2788,7 +2788,7 @@ var jt = /* @__PURE__ */ (function() {
2788
2788
  $e(!1, "Multiple Field with path '".concat(f.join("."), "' set 'initialValue'. Can not decide which one to pick."));
2789
2789
  else if (v) {
2790
2790
  var g = r.getFieldValue(f), h = u.isListField();
2791
- !h && (!n.skipExist || g === void 0) && r.updateStore(at(r.store, f, Y(v)[0].value));
2791
+ !h && (!n.skipExist || g === void 0) && r.updateStore(at(r.store, f, Q(v)[0].value));
2792
2792
  }
2793
2793
  }
2794
2794
  }
@@ -2798,7 +2798,7 @@ var jt = /* @__PURE__ */ (function() {
2798
2798
  var l = a.get(c);
2799
2799
  if (l) {
2800
2800
  var u;
2801
- (u = s).push.apply(u, Y(Y(l).map(function(d) {
2801
+ (u = s).push.apply(u, Q(Q(l).map(function(d) {
2802
2802
  return d.entity;
2803
2803
  })));
2804
2804
  }
@@ -2914,7 +2914,7 @@ var jt = /* @__PURE__ */ (function() {
2914
2914
  var i = r.getDependencyChildrenFields(a);
2915
2915
  return i.length && r.validateFields(i), r.notifyObservers(n, i, {
2916
2916
  type: "dependenciesUpdate",
2917
- relatedFields: [a].concat(Y(i))
2917
+ relatedFields: [a].concat(Q(i))
2918
2918
  }), i;
2919
2919
  }), x(this, "updateValue", function(n, a) {
2920
2920
  var i = Me(n), o = r.store;
@@ -2927,7 +2927,7 @@ var jt = /* @__PURE__ */ (function() {
2927
2927
  var l = di(r.store, [i]);
2928
2928
  c(l, r.getFieldsValue());
2929
2929
  }
2930
- r.triggerOnFieldsChange([i].concat(Y(s)));
2930
+ r.triggerOnFieldsChange([i].concat(Q(s)));
2931
2931
  }), x(this, "setFieldsValue", function(n) {
2932
2932
  r.warningUnhooked();
2933
2933
  var a = r.store;
@@ -3010,7 +3010,7 @@ var jt = /* @__PURE__ */ (function() {
3010
3010
  var O, _ = [], F = [];
3011
3011
  return (O = C.forEach) === null || O === void 0 || O.call(C, function(M) {
3012
3012
  var P = M.rule.warningOnly, R = M.errors;
3013
- P ? F.push.apply(F, Y(R)) : _.push.apply(_, Y(R));
3013
+ P ? F.push.apply(F, Q(R)) : _.push.apply(_, Q(R));
3014
3014
  }), _.length ? Promise.reject({
3015
3015
  name: y,
3016
3016
  errors: _,
@@ -3135,7 +3135,7 @@ var Un = /* @__PURE__ */ T.createContext({
3135
3135
  onValuesChange: v,
3136
3136
  onFieldsChange: function(q) {
3137
3137
  if (C.triggerFormChange(n, q), g) {
3138
- for (var J = arguments.length, le = new Array(J > 1 ? J - 1 : 0), ie = 1; ie < J; ie++)
3138
+ for (var ee = arguments.length, le = new Array(ee > 1 ? ee - 1 : 0), ie = 1; ie < ee; ie++)
3139
3139
  le[ie - 1] = arguments[ie];
3140
3140
  g.apply(void 0, [q].concat(le));
3141
3141
  }
@@ -3181,8 +3181,8 @@ var Un = /* @__PURE__ */ T.createContext({
3181
3181
  q.preventDefault(), q.stopPropagation(), F.submit();
3182
3182
  },
3183
3183
  onReset: function(q) {
3184
- var J;
3185
- q.preventDefault(), F.resetFields(), (J = y.onReset) === null || J === void 0 || J.call(y, q);
3184
+ var ee;
3185
+ q.preventDefault(), F.resetFields(), (ee = y.onReset) === null || ee === void 0 || ee.call(y, q);
3186
3186
  }
3187
3187
  }), H);
3188
3188
  };
@@ -3203,7 +3203,7 @@ function Iu() {
3203
3203
  t[r] = arguments[r];
3204
3204
  var n = t[0], a = t[1], i = a === void 0 ? {} : a, o = Dl(i) ? {
3205
3205
  form: i
3206
- } : i, s = o.form, c = Q(), l = X(c, 2), u = l[0], d = l[1], f = Ft(function() {
3206
+ } : i, s = o.form, c = Z(), l = X(c, 2), u = l[0], d = l[1], f = Ft(function() {
3207
3207
  return hi(u);
3208
3208
  }, [u]), p = me(f);
3209
3209
  p.current = f;
@@ -3544,7 +3544,7 @@ function lr(e) {
3544
3544
  var t = pi.get(e) || "";
3545
3545
  return t || (Object.keys(e).forEach(function(r) {
3546
3546
  var n = e[r];
3547
- t += r, n instanceof Mo ? t += n.id : n && Z(n) === "object" ? t += lr(n) : t += n;
3547
+ t += r, n instanceof Mo ? t += n.id : n && J(n) === "object" ? t += lr(n) : t += n;
3548
3548
  }), t = mr(t), pi.set(e, t)), t;
3549
3549
  }
3550
3550
  function yi(e, t) {
@@ -3636,7 +3636,7 @@ if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && mo
3636
3636
  }
3637
3637
  }
3638
3638
  function Pa(e, t, r, n, a) {
3639
- var i = T.useContext(Cr), o = i.cache, s = [e].concat(Y(t)), c = Gn(s), l = nd([c]), u = od(), d = function(g) {
3639
+ var i = T.useContext(Cr), o = i.cache, s = [e].concat(Q(t)), c = Gn(s), l = nd([c]), u = od(), d = function(g) {
3640
3640
  o.opUpdate(c, function(h) {
3641
3641
  var S = h || [void 0, void 0], m = X(S, 2), y = m[0], E = y === void 0 ? 0 : y, C = m[1], O = C;
3642
3642
  process.env.NODE_ENV !== "production" && C && u && (n?.(O, u), O = null);
@@ -3702,7 +3702,7 @@ var gd = function(t, r, n, a) {
3702
3702
  }, Ao = "token";
3703
3703
  function md(e, t) {
3704
3704
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = vt(Cr), a = n.cache.instanceId, i = n.container, o = r.salt, s = o === void 0 ? "" : o, c = r.override, l = c === void 0 ? cd : c, u = r.formatToken, d = r.getComputedToken, f = r.cssVar, p = Ku(function() {
3705
- return Object.assign.apply(Object, [{}].concat(Y(t)));
3705
+ return Object.assign.apply(Object, [{}].concat(Q(t)));
3706
3706
  }, t), v = lr(p), g = lr(l), h = f ? lr(f) : "", S = Pa(Ao, [s, e.id, v, g, h], function() {
3707
3707
  var m, y = d ? d(p, l, e) : gd(p, l, e, u), E = j({}, y), C = "";
3708
3708
  if (f) {
@@ -4126,14 +4126,14 @@ function Ur(e) {
4126
4126
  return t.replace(/\{%%%\:[^;];}/g, ";");
4127
4127
  }
4128
4128
  function kd(e) {
4129
- return Z(e) === "object" && e && (zo in e || Wo in e);
4129
+ return J(e) === "object" && e && (zo in e || Wo in e);
4130
4130
  }
4131
4131
  function xi(e, t, r) {
4132
4132
  if (!t)
4133
4133
  return e;
4134
4134
  var n = ".".concat(t), a = r === "low" ? ":where(".concat(n, ")") : n, i = e.split(",").map(function(o) {
4135
4135
  var s, c = o.trim().split(/\s+/), l = c[0] || "", u = ((s = l.match(/^\w+/)) === null || s === void 0 ? void 0 : s[0]) || "";
4136
- return l = "".concat(u).concat(a).concat(l.slice(u.length)), [l].concat(Y(c.slice(1))).join(" ");
4136
+ return l = "".concat(u).concat(a).concat(l.slice(u.length)), [l].concat(Q(c.slice(1))).join(" ");
4137
4137
  });
4138
4138
  return i.join(",");
4139
4139
  }
@@ -4173,18 +4173,18 @@ var Hd = function e(t) {
4173
4173
  }, C);
4174
4174
  Object.keys(O).forEach(function(_) {
4175
4175
  var F = O[_];
4176
- if (Z(F) === "object" && F && (_ !== "animationName" || !F._keyframe) && !kd(F)) {
4176
+ if (J(F) === "object" && F && (_ !== "animationName" || !F._keyframe) && !kd(F)) {
4177
4177
  var M = !1, P = _.trim(), R = !1;
4178
4178
  (a || i) && s ? P.startsWith("@") ? M = !0 : P === "&" ? P = xi("", s, u) : P = xi(_, s, u) : a && !s && (P === "&" || P === "") && (P = "", R = !0);
4179
4179
  var D = e(F, r, {
4180
4180
  root: R,
4181
4181
  injectHash: M,
4182
- parentSelectors: [].concat(Y(o), [P])
4182
+ parentSelectors: [].concat(Q(o), [P])
4183
4183
  }), V = X(D, 2), b = V[0], w = V[1];
4184
4184
  h = j(j({}, h), w), g += "".concat(P).concat(b);
4185
4185
  } else {
4186
4186
  let I = function(L, k) {
4187
- process.env.NODE_ENV !== "production" && (Z(F) !== "object" || !(F != null && F[zo])) && [Nd, jd].concat(Y(v)).forEach(function(U) {
4187
+ process.env.NODE_ENV !== "production" && (J(F) !== "object" || !(F != null && F[zo])) && [Nd, jd].concat(Q(v)).forEach(function(U) {
4188
4188
  return U(L, k, {
4189
4189
  path: l,
4190
4190
  hashId: s,
@@ -4197,7 +4197,7 @@ var Hd = function e(t) {
4197
4197
  !pd[L] && typeof H == "number" && H !== 0 && (H = "".concat(H, "px")), L === "animationName" && k !== null && k !== void 0 && k._keyframe && (S(k), H = k.getName(s)), g += "".concat(B, ":").concat(H, ";");
4198
4198
  };
4199
4199
  var $, A = ($ = F?.value) !== null && $ !== void 0 ? $ : F;
4200
- Z(F) === "object" && F !== null && F !== void 0 && F[Wo] && Array.isArray(A) ? A.forEach(function(L) {
4200
+ J(F) === "object" && F !== null && F !== void 0 && F[Wo] && Array.isArray(A) ? A.forEach(function(L) {
4201
4201
  I(_, L);
4202
4202
  }) : I(_, A);
4203
4203
  }
@@ -4217,7 +4217,7 @@ function Bd() {
4217
4217
  var qo = "style";
4218
4218
  function Jn(e, t) {
4219
4219
  var r = e.token, n = e.path, a = e.hashId, i = e.layer, o = e.nonce, s = e.clientOnly, c = e.order, l = c === void 0 ? 0 : c, u = T.useContext(Cr), d = u.autoClear, f = u.mock, p = u.defaultCache, v = u.hashPriority, g = u.container, h = u.ssrInline, S = u.transformers, m = u.linters, y = u.cache, E = u.layer, C = r._tokenKey, O = [C];
4220
- E && O.push("layer"), O.push.apply(O, Y(n));
4220
+ E && O.push("layer"), O.push.apply(O, Q(n));
4221
4221
  var _ = Xn;
4222
4222
  process.env.NODE_ENV !== "production" && f !== void 0 && (_ = f === "client");
4223
4223
  var F = Pa(
@@ -4304,7 +4304,7 @@ var zd = function(t, r, n) {
4304
4304
  }
4305
4305
  }), [u, s, p];
4306
4306
  }, Go = "cssVar", Wd = function(t, r) {
4307
- var n = t.key, a = t.prefix, i = t.unitless, o = t.ignore, s = t.token, c = t.scope, l = c === void 0 ? "" : c, u = vt(Cr), d = u.cache.instanceId, f = u.container, p = s._tokenKey, v = [].concat(Y(t.path), [n, l, p]), g = Pa(Go, v, function() {
4307
+ var n = t.key, a = t.prefix, i = t.unitless, o = t.ignore, s = t.token, c = t.scope, l = c === void 0 ? "" : c, u = vt(Cr), d = u.cache.instanceId, f = u.container, p = s._tokenKey, v = [].concat(Q(t.path), [n, l, p]), g = Pa(Go, v, function() {
4308
4308
  var h = r(), S = Ro(h, n, {
4309
4309
  prefix: a,
4310
4310
  unitless: i,
@@ -5297,7 +5297,7 @@ var _f = /* @__PURE__ */ (function(e) {
5297
5297
  function r(n, a) {
5298
5298
  var i;
5299
5299
  qe(this, r), i = t.call(this), x(ne(i), "result", ""), x(ne(i), "unitlessCssVar", void 0), x(ne(i), "lowPriority", void 0);
5300
- var o = Z(n);
5300
+ var o = J(n);
5301
5301
  return i.unitlessCssVar = a, n instanceof r ? i.result = "(".concat(n.result, ")") : o === "number" ? i.result = Tn(n) : o === "string" && (i.result = n), i;
5302
5302
  }
5303
5303
  return Ge(r, [{
@@ -5401,7 +5401,7 @@ function Jt() {
5401
5401
  ga = !1;
5402
5402
  var n = {};
5403
5403
  return t.forEach(function(a) {
5404
- if (Z(a) === "object") {
5404
+ if (J(a) === "object") {
5405
5405
  var i = Object.keys(a);
5406
5406
  i.forEach(function(o) {
5407
5407
  Object.defineProperty(n, o, {
@@ -5489,7 +5489,7 @@ var Of = 1e3 * 60 * 10, Tf = /* @__PURE__ */ (function() {
5489
5489
  key: "getCompositeKey",
5490
5490
  value: function(r) {
5491
5491
  var n = this, a = r.map(function(i) {
5492
- return i && Z(i) === "object" ? "obj_".concat(n.getObjectID(i)) : "".concat(Z(i), "_").concat(i);
5492
+ return i && J(i) === "object" ? "obj_".concat(n.getObjectID(i)) : "".concat(J(i), "_").concat(i);
5493
5493
  });
5494
5494
  return a.join("|");
5495
5495
  }
@@ -5584,8 +5584,8 @@ function Mf(e) {
5584
5584
  return function(C) {
5585
5585
  var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : C, _ = n(), F = _.theme, M = _.realToken, P = _.hashId, R = _.token, D = _.cssVar, V = a(), b = V.rootPrefixCls, w = V.iconPrefixCls, $ = r(), A = D ? "css" : "js", I = Ff(function() {
5586
5586
  var q = /* @__PURE__ */ new Set();
5587
- return D && Object.keys(g.unitless || {}).forEach(function(J) {
5588
- q.add(Hr(J, D.prefix)), q.add(Hr(J, Mi(m, D.prefix)));
5587
+ return D && Object.keys(g.unitless || {}).forEach(function(ee) {
5588
+ q.add(Hr(ee, D.prefix)), q.add(Hr(ee, Mi(m, D.prefix)));
5589
5589
  }), xf(A, q);
5590
5590
  }, [A, m, D?.prefix]), L = $f(A), k = L.max, B = L.min, H = {
5591
5591
  theme: F,
@@ -5616,13 +5616,13 @@ function Mf(e) {
5616
5616
  }), function() {
5617
5617
  if (g.injectStyle === !1)
5618
5618
  return [];
5619
- var q = wf(R), J = q.token, le = q.flush, ie = Ii(m, M, v), he = ".".concat(C), ue = Ri(m, M, ie, {
5619
+ var q = wf(R), ee = q.token, le = q.flush, ie = Ii(m, M, v), he = ".".concat(C), ue = Ri(m, M, ie, {
5620
5620
  deprecatedTokens: g.deprecatedTokens
5621
5621
  });
5622
- D && ie && Z(ie) === "object" && Object.keys(ie).forEach(function(Oe) {
5622
+ D && ie && J(ie) === "object" && Object.keys(ie).forEach(function(Oe) {
5623
5623
  ie[Oe] = "var(".concat(Hr(Oe, Mi(m, D.prefix)), ")");
5624
5624
  });
5625
- var oe = Jt(J, {
5625
+ var oe = Jt(ee, {
5626
5626
  componentCls: he,
5627
5627
  prefixCls: C,
5628
5628
  iconCls: ".".concat(w),
@@ -6114,7 +6114,7 @@ function Li(e) {
6114
6114
  return e instanceof HTMLElement || e instanceof SVGElement;
6115
6115
  }
6116
6116
  function Uf(e) {
6117
- return e && Z(e) === "object" && Li(e.nativeElement) ? e.nativeElement : Li(e) ? e : null;
6117
+ return e && J(e) === "object" && Li(e.nativeElement) ? e.nativeElement : Li(e) ? e : null;
6118
6118
  }
6119
6119
  function qf(e) {
6120
6120
  var t = Uf(e);
@@ -6189,7 +6189,7 @@ function ps(e) {
6189
6189
  var ys = ps("animationend"), bs = ps("transitionend"), Ss = !!(ys && bs), Hi = ys || "animationend", Bi = bs || "transitionend";
6190
6190
  function zi(e, t) {
6191
6191
  if (!e) return null;
6192
- if (Z(e) === "object") {
6192
+ if (J(e) === "object") {
6193
6193
  var r = t.replace(/-\w/g, function(n) {
6194
6194
  return n[1].toUpperCase();
6195
6195
  });
@@ -6302,7 +6302,7 @@ function oh(e, t, r, n) {
6302
6302
  function q() {
6303
6303
  return r();
6304
6304
  }
6305
- var J = me(!1);
6305
+ var ee = me(!1);
6306
6306
  function le() {
6307
6307
  $(Ct), k(null, !0);
6308
6308
  }
@@ -6311,7 +6311,7 @@ function oh(e, t, r, n) {
6311
6311
  if (be !== Ct) {
6312
6312
  var ae = q();
6313
6313
  if (!(xe && !xe.deadline && xe.target !== ae)) {
6314
- var te = J.current, _e;
6314
+ var te = ee.current, _e;
6315
6315
  be === Nr && te ? _e = C?.(ae, xe) : be === jr && te ? _e = O?.(ae, xe) : be === Vr && te && (_e = _?.(ae, xe)), te && _e !== !1 && le();
6316
6316
  }
6317
6317
  }
@@ -6343,7 +6343,7 @@ function oh(e, t, r, n) {
6343
6343
  });
6344
6344
  }, u))), Ee === ms && le(), ah;
6345
6345
  }), W = X(Oe, 2), Ie = W[0], Ee = W[1], Ue = $s(Ee);
6346
- J.current = Ue;
6346
+ ee.current = Ue;
6347
6347
  var We = me(null);
6348
6348
  _s(function() {
6349
6349
  if (!(H.current && We.current === t)) {
@@ -6376,7 +6376,7 @@ function oh(e, t, r, n) {
6376
6376
  }
6377
6377
  function sh(e) {
6378
6378
  var t = e;
6379
- Z(e) === "object" && (t = e.transitionSupport);
6379
+ J(e) === "object" && (t = e.transitionSupport);
6380
6380
  function r(a, i) {
6381
6381
  return !!(a.motionName && t && i !== !1);
6382
6382
  }
@@ -6431,7 +6431,7 @@ const ch = sh(Ss);
6431
6431
  var ma = "add", va = "keep", pa = "remove", Pn = "removed";
6432
6432
  function lh(e) {
6433
6433
  var t;
6434
- return e && Z(e) === "object" && "key" in e ? t = e : t = {
6434
+ return e && J(e) === "object" && "key" in e ? t = e : t = {
6435
6435
  key: e
6436
6436
  }, j(j({}, t), {}, {
6437
6437
  key: String(t.key)
@@ -6646,7 +6646,7 @@ const _h = (e) => {
6646
6646
  mentions: H,
6647
6647
  modal: U,
6648
6648
  progress: q,
6649
- result: J,
6649
+ result: ee,
6650
6650
  slider: le,
6651
6651
  breadcrumb: ie,
6652
6652
  menu: he,
@@ -6677,7 +6677,7 @@ const _h = (e) => {
6677
6677
  wave: hn,
6678
6678
  dropdown: z,
6679
6679
  warning: G,
6680
- tour: ee,
6680
+ tour: Y,
6681
6681
  tooltip: ge,
6682
6682
  popover: de,
6683
6683
  popconfirm: se,
@@ -6737,7 +6737,7 @@ const _h = (e) => {
6737
6737
  mentions: H,
6738
6738
  modal: U,
6739
6739
  progress: q,
6740
- result: J,
6740
+ result: ee,
6741
6741
  slider: le,
6742
6742
  breadcrumb: ie,
6743
6743
  menu: he,
@@ -6766,7 +6766,7 @@ const _h = (e) => {
6766
6766
  wave: hn,
6767
6767
  dropdown: z,
6768
6768
  warning: G,
6769
- tour: ee,
6769
+ tour: Y,
6770
6770
  tooltip: ge,
6771
6771
  popover: de,
6772
6772
  popconfirm: se,
@@ -6923,7 +6923,7 @@ function Ph(e, t) {
6923
6923
  $e(e, "[@ant-design/icons] ".concat(t));
6924
6924
  }
6925
6925
  function qi(e) {
6926
- return Z(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (Z(e.icon) === "object" || typeof e.icon == "function");
6926
+ return J(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (J(e.icon) === "object" || typeof e.icon == "function");
6927
6927
  }
6928
6928
  function Gi() {
6929
6929
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -8220,10 +8220,10 @@ const zs = /* @__PURE__ */ ro((e, t) => {
8220
8220
  var we;
8221
8221
  return (we = i ?? k) !== null && we !== void 0 ? we : Pe;
8222
8222
  }), U = re.useContext(en), q = o ?? U, {
8223
- status: J,
8223
+ status: ee,
8224
8224
  hasFeedback: le,
8225
8225
  feedbackIcon: ie
8226
- } = vt(Qr), he = kh(J, a), ue = ug(e) || !!le, oe = me(ue);
8226
+ } = vt(Qr), he = kh(ee, a), ue = ug(e) || !!le, oe = me(ue);
8227
8227
  if (process.env.NODE_ENV !== "production") {
8228
8228
  const Pe = Kt("Input");
8229
8229
  fe(() => {
@@ -8288,7 +8288,7 @@ const zs = /* @__PURE__ */ ro((e, t) => {
8288
8288
  });
8289
8289
  process.env.NODE_ENV !== "production" && (zs.displayName = "Input");
8290
8290
  function fg({ onSearchChange: e }) {
8291
- const [t, r] = Q("");
8291
+ const [t, r] = Z("");
8292
8292
  return fe(() => {
8293
8293
  const n = setTimeout(() => {
8294
8294
  e(t.trim());
@@ -8417,7 +8417,7 @@ function gg({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
8417
8417
  }
8418
8418
  const { Content: mg } = zt;
8419
8419
  function vg({ onSelectChat: e, selectedChatId: t }) {
8420
- const [r, n] = Q(!1), [a, i] = Q("topLeft"), [o, s] = Q("");
8420
+ const [r, n] = Z(!1), [a, i] = Z("topLeft"), [o, s] = Z("");
8421
8421
  return /* @__PURE__ */ Fe(zt, { className: K["sidebar-layout"], children: [
8422
8422
  /* @__PURE__ */ N(
8423
8423
  fg,
@@ -8540,7 +8540,7 @@ function yg() {
8540
8540
  return L ? ve : ve.endOf(l);
8541
8541
  }, H = function(ue, oe) {
8542
8542
  return R.w(I.toDate()[ue].apply(I.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(oe)), I);
8543
- }, U = this.$W, q = this.$M, J = this.$D, le = "set" + (this.$u ? "UTC" : "");
8543
+ }, U = this.$W, q = this.$M, ee = this.$D, le = "set" + (this.$u ? "UTC" : "");
8544
8544
  switch (k) {
8545
8545
  case p:
8546
8546
  return L ? B(1, 0) : B(31, 11);
@@ -8548,7 +8548,7 @@ function yg() {
8548
8548
  return L ? B(1, q) : B(0, q + 1);
8549
8549
  case u:
8550
8550
  var ie = this.$locale().weekStart || 0, he = (U < ie ? U + 7 : U) - ie;
8551
- return B(L ? J - he : J + (6 - he), q);
8551
+ return B(L ? ee - he : ee + (6 - he), q);
8552
8552
  case l:
8553
8553
  case v:
8554
8554
  return H(le + "Hours", 0);
@@ -8578,8 +8578,8 @@ function yg() {
8578
8578
  var I, L = this;
8579
8579
  $ = Number($);
8580
8580
  var k = R.p(A), B = function(q) {
8581
- var J = P(L);
8582
- return R.w(J.date(J.date() + Math.round(q * $)), L);
8581
+ var ee = P(L);
8582
+ return R.w(ee.date(ee.date() + Math.round(q * $)), L);
8583
8583
  };
8584
8584
  if (k === d) return this.set(d, this.$M + $);
8585
8585
  if (k === p) return this.set(p, this.$y + $);
@@ -8592,7 +8592,7 @@ function yg() {
8592
8592
  }, w.format = function($) {
8593
8593
  var A = this, I = this.$locale();
8594
8594
  if (!this.isValid()) return I.invalidDate || g;
8595
- var L = $ || "YYYY-MM-DDTHH:mm:ssZ", k = R.z(this), B = this.$H, H = this.$m, U = this.$M, q = I.weekdays, J = I.months, le = I.meridiem, ie = function(oe, ve, Ce, Oe) {
8595
+ var L = $ || "YYYY-MM-DDTHH:mm:ssZ", k = R.z(this), B = this.$H, H = this.$m, U = this.$M, q = I.weekdays, ee = I.months, le = I.meridiem, ie = function(oe, ve, Ce, Oe) {
8596
8596
  return oe && (oe[ve] || oe(A, L)) || Ce[ve].slice(0, Oe);
8597
8597
  }, he = function(oe) {
8598
8598
  return R.s(B % 12 || 12, oe, "0");
@@ -8612,9 +8612,9 @@ function yg() {
8612
8612
  case "MM":
8613
8613
  return R.s(U + 1, 2, "0");
8614
8614
  case "MMM":
8615
- return ie(I.monthsShort, U, J, 3);
8615
+ return ie(I.monthsShort, U, ee, 3);
8616
8616
  case "MMMM":
8617
- return ie(J, U);
8617
+ return ie(ee, U);
8618
8618
  case "D":
8619
8619
  return A.$D;
8620
8620
  case "DD":
@@ -8658,18 +8658,18 @@ function yg() {
8658
8658
  }, w.utcOffset = function() {
8659
8659
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
8660
8660
  }, w.diff = function($, A, I) {
8661
- var L, k = this, B = R.p(A), H = P($), U = (H.utcOffset() - this.utcOffset()) * n, q = this - H, J = function() {
8661
+ var L, k = this, B = R.p(A), H = P($), U = (H.utcOffset() - this.utcOffset()) * n, q = this - H, ee = function() {
8662
8662
  return R.m(k, H);
8663
8663
  };
8664
8664
  switch (B) {
8665
8665
  case p:
8666
- L = J() / 12;
8666
+ L = ee() / 12;
8667
8667
  break;
8668
8668
  case d:
8669
- L = J();
8669
+ L = ee();
8670
8670
  break;
8671
8671
  case f:
8672
- L = J() / 3;
8672
+ L = ee() / 3;
8673
8673
  break;
8674
8674
  case u:
8675
8675
  L = (q - U) / 6048e5;
@@ -8725,7 +8725,7 @@ function yg() {
8725
8725
  var bg = yg();
8726
8726
  const Rt = /* @__PURE__ */ ao(bg);
8727
8727
  function Sg({ onSend: e }) {
8728
- const [t, r] = Q(""), [n, a] = Q(!1), [i, o] = Q([]), s = De(() => {
8728
+ const [t, r] = Z(""), [n, a] = Z(!1), [i, o] = Z([]), s = De(() => {
8729
8729
  const p = t.trim();
8730
8730
  !p && i.length === 0 || (e(p, i), r(""), o([]));
8731
8731
  }, [t, i, e]), c = De((p) => {
@@ -8991,12 +8991,12 @@ const Eg = ({
8991
8991
  }, [e, t, r]);
8992
8992
  };
8993
8993
  function Og({ chatId: e }) {
8994
- const t = me(null), r = re.memo(Cg), n = re.memo(xg), a = re.memo(_g), [i, o] = Q(null), { Content: s, Footer: c } = zt, [l, u] = Q({
8994
+ const t = me(null), r = re.memo(Cg), n = re.memo(xg), a = re.memo(_g), [i, o] = Z(null), { Content: s, Footer: c } = zt, [l, u] = Z({
8995
8995
  chat_id: 0,
8996
8996
  who: "",
8997
8997
  messages: [],
8998
8998
  total: 0
8999
- }), [d, f] = Q(!0), [p, v] = Q(!1), [g, h] = Q(!1), S = De((b) => ({
8999
+ }), [d, f] = Z(!0), [p, v] = Z(!1), [g, h] = Z(!1), S = De((b) => ({
9000
9000
  fromId: b.from_id,
9001
9001
  id: b.id,
9002
9002
  text: b.text,
@@ -9205,7 +9205,7 @@ function Og({ chatId: e }) {
9205
9205
  }
9206
9206
  const { Sider: Tg, Content: Fg } = zt;
9207
9207
  function Pg() {
9208
- const [e, t] = Q(null);
9208
+ const [e, t] = Z(null);
9209
9209
  return /* @__PURE__ */ Fe(zt, { className: K["chat-layout"], children: [
9210
9210
  /* @__PURE__ */ N(Tg, { width: 220, className: K["chat-sidebar"], children: /* @__PURE__ */ N(vg, { onSelectChat: t, selectedChatId: e }) }),
9211
9211
  /* @__PURE__ */ N(Fg, { className: K["chat-content"], children: e ? /* @__PURE__ */ N(Og, { chatId: e }) : /* @__PURE__ */ N(
@@ -9219,7 +9219,7 @@ function Pg() {
9219
9219
  ] });
9220
9220
  }
9221
9221
  const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9222
- const a = me(null), i = me(null), [o, s] = Q(!1), [c, l] = Q({ x: 0, y: 0 }), u = !n, d = (v, g, h) => Math.min(Math.max(v, g), h);
9222
+ const a = me(null), i = me(null), [o, s] = Z(!1), [c, l] = Z({ x: 0, y: 0 }), u = !n, d = (v, g, h) => Math.min(Math.max(v, g), h);
9223
9223
  fe(() => {
9224
9224
  e && l({ x: 0, y: 0 });
9225
9225
  }, [e]), fe(() => {
@@ -9311,7 +9311,7 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9311
9311
  }
9312
9312
  );
9313
9313
  }, Rg = ({ userdata: e }) => {
9314
- const [t, r] = Q(!1), {
9314
+ const [t, r] = Z(!1), {
9315
9315
  connected: n,
9316
9316
  // boolean - подключен ли WebSocket
9317
9317
  totalUnread: a,
@@ -9320,7 +9320,7 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9320
9320
  // [] - список чатов
9321
9321
  init: o,
9322
9322
  fetchChatsList: s
9323
- } = rr(), [c, l] = Q(0);
9323
+ } = rr(), [c, l] = Z(0);
9324
9324
  fe(() => {
9325
9325
  n || console.log("disconnected");
9326
9326
  }, [n]), fe(() => {
@@ -10247,11 +10247,11 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10247
10247
  };
10248
10248
  Mn.defaults.withCredentials = !0;
10249
10249
  const Ag = ({ children: e }) => {
10250
- const r = me(null), [n, a] = Q(!1), [i, o] = Q("disconnected"), [s, c] = Q(null), l = me(s), [u, d] = Q(""), [f, p] = Q(""), [v, g] = Q(!1), [h, S] = Q(0), [m, y] = Q(null), [E, C] = Q(null), [O, _] = Q(null), [F, M] = Q(null), [P, R] = Q(null), [D, V] = Q(null), [b, w] = Q(null), [$, A] = Q(null), [I, L] = Q([]), k = me(I), [B, H] = Q([]), U = me(B), [q, J] = Q(0), [le, ie] = Q(0), [he, ue] = Q(!1), [oe, ve] = Q(!1), [Ce, Oe] = Q(!1), [W, Ie] = Q(0), [Ee, Ue] = Q({
10250
+ const r = me(null), [n, a] = Z(!1), [i, o] = Z("disconnected"), [s, c] = Z(null), l = me(s), [u, d] = Z(""), [f, p] = Z(""), [v, g] = Z(!1), [h, S] = Z(0), [m, y] = Z(null), [E, C] = Z(null), [O, _] = Z(null), [F, M] = Z(null), [P, R] = Z(null), [D, V] = Z(null), [b, w] = Z(null), [$, A] = Z(null), [I, L] = Z([]), k = me(I), [B, H] = Z([]), U = me(B), [q, ee] = Z(0), [le, ie] = Z(0), [he, ue] = Z(!1), [oe, ve] = Z(!1), [Ce, Oe] = Z(!1), [W, Ie] = Z(0), [Ee, Ue] = Z({
10251
10251
  message: "",
10252
10252
  description: "",
10253
10253
  type: "info"
10254
- }), [We, Pe] = Q(!1), we = De(() => {
10254
+ }), [We, Pe] = Z(!1), we = De(() => {
10255
10255
  const z = Mn;
10256
10256
  return z?.default && typeof z.default == "function" ? z.default : z;
10257
10257
  }, []), xe = De(() => {
@@ -10261,8 +10261,8 @@ const Ag = ({ children: e }) => {
10261
10261
  return z && typeof z.post == "function" ? z : null;
10262
10262
  }, [m, we]), be = De((z, G) => {
10263
10263
  if (Mn.isAxiosError(G)) {
10264
- const ee = G.response?.status, ge = G.response?.data;
10265
- console.error(`[${z}] axios error`, { status: ee, data: ge, message: G.message });
10264
+ const Y = G.response?.status, ge = G.response?.data;
10265
+ console.error(`[${z}] axios error`, { status: Y, data: ge, message: G.message });
10266
10266
  return;
10267
10267
  }
10268
10268
  console.error(`[${z}] error`, G);
@@ -10297,37 +10297,37 @@ const Ag = ({ children: e }) => {
10297
10297
  console.log("CHAT WEBSOCKET CONNECT ERROR");
10298
10298
  }));
10299
10299
  }, [We, v, h, u, f, D, b, $]), te = (z) => {
10300
- const G = U.current.find((ee) => +ee.chat_id == +z.chat_id);
10300
+ const G = U.current.find((Y) => +Y.chat_id == +z.chat_id);
10301
10301
  if (!G)
10302
- H((ee) => [...ee, z]);
10302
+ H((Y) => [...Y, z]);
10303
10303
  else {
10304
- const ee = {
10304
+ const Y = {
10305
10305
  ...G,
10306
10306
  messages: [...z.messages, ...G.messages]
10307
10307
  };
10308
- H((ge) => ge.map((de) => de.chat_id === ee.chat_id ? ee : de));
10308
+ H((ge) => ge.map((de) => de.chat_id === Y.chat_id ? Y : de));
10309
10309
  }
10310
10310
  }, _e = (z, G = !0) => {
10311
- L((ee) => {
10311
+ L((Y) => {
10312
10312
  let ge = -1;
10313
- return G ? ge = ee.findIndex((de) => de.chat_id === z.chat_id) : ge = ee.findIndex((de) => de.chat_id === z.from.id), ge === -1 ? [
10314
- ee[0],
10313
+ return G ? ge = Y.findIndex((de) => de.chat_id === z.chat_id) : ge = Y.findIndex((de) => de.chat_id === z.from.id), ge === -1 ? [
10314
+ Y[0],
10315
10315
  z,
10316
- ...ee.slice(1)
10317
- ] : ee.map((de, se) => se === ge ? {
10316
+ ...Y.slice(1)
10317
+ ] : Y.map((de, se) => se === ge ? {
10318
10318
  ...z,
10319
10319
  count_unread: G ? de.count_unread : z.count_unread
10320
10320
  } : de);
10321
10321
  });
10322
10322
  }, lt = (z, G = null) => {
10323
- H((ee) => {
10324
- const ge = G || z.from_id, de = ee.findIndex((se) => se.chat_id === ge);
10325
- return de === -1 ? ee : ee.map((se, Be) => Be === de ? {
10323
+ H((Y) => {
10324
+ const ge = G || z.from_id, de = Y.findIndex((se) => se.chat_id === ge);
10325
+ return de === -1 ? Y : Y.map((se, Be) => Be === de ? {
10326
10326
  ...se,
10327
10327
  messages: [...se.messages, z]
10328
10328
  } : se);
10329
10329
  });
10330
- }, ut = (z, G, ee, ge) => {
10330
+ }, ut = (z, G, Y, ge) => {
10331
10331
  H((de) => {
10332
10332
  const se = de.findIndex((Be) => Be.chat_id === ge);
10333
10333
  return se === -1 ? de : de.map((Be, dt) => {
@@ -10336,7 +10336,7 @@ const Ag = ({ children: e }) => {
10336
10336
  ...nt,
10337
10337
  id: z,
10338
10338
  isSending: !1,
10339
- files: ee
10339
+ files: Y
10340
10340
  } : nt);
10341
10341
  return {
10342
10342
  ...Be,
@@ -10346,10 +10346,10 @@ const Ag = ({ children: e }) => {
10346
10346
  return Be;
10347
10347
  });
10348
10348
  });
10349
- }, Qe = (z, G, ee = !0) => {
10349
+ }, Qe = (z, G, Y = !0) => {
10350
10350
  H((ge) => {
10351
10351
  let de = -1;
10352
- return ee ? de = ge.findIndex((se) => se.chat_id === G) : de = ge.findIndex((se) => se.chat_id === z.from), de === -1 ? ge : ge.map((se, Be) => {
10352
+ return Y ? de = ge.findIndex((se) => se.chat_id === G) : de = ge.findIndex((se) => se.chat_id === z.from), de === -1 ? ge : ge.map((se, Be) => {
10353
10353
  if (Be === de) {
10354
10354
  const dt = se.messages.map((_t) => _t.created_at === z.created_at ? {
10355
10355
  ..._t,
@@ -10364,9 +10364,9 @@ const Ag = ({ children: e }) => {
10364
10364
  });
10365
10365
  });
10366
10366
  }, $t = (z, G) => {
10367
- L((ee) => {
10367
+ L((Y) => {
10368
10368
  let ge = -1;
10369
- return ge = ee.findIndex((de) => de.chat_id === z), ee.map((de, se) => se === ge ? {
10369
+ return ge = Y.findIndex((de) => de.chat_id === z), Y.map((de, se) => se === ge ? {
10370
10370
  ...de,
10371
10371
  count_unread: G
10372
10372
  } : de);
@@ -10408,9 +10408,9 @@ const Ag = ({ children: e }) => {
10408
10408
  if (!oe)
10409
10409
  if (ve(!0), v)
10410
10410
  try {
10411
- const ee = xe();
10412
- if (!ee || !O || !f) return;
10413
- const ge = `${O}/${z}`, se = (await ee.post(
10411
+ const Y = xe();
10412
+ if (!Y || !O || !f) return;
10413
+ const ge = `${O}/${z}`, se = (await Y.post(
10414
10414
  ge,
10415
10415
  {
10416
10416
  data: {
@@ -10425,30 +10425,30 @@ const Ag = ({ children: e }) => {
10425
10425
  }
10426
10426
  }
10427
10427
  )).data;
10428
- se?.content && (J(z), te({
10428
+ se?.content && (ee(z), te({
10429
10429
  chat_id: z,
10430
10430
  who: se?.content?.who,
10431
10431
  messages: se?.content?.messages,
10432
10432
  total: se?.content?.total
10433
10433
  }));
10434
- } catch (ee) {
10435
- be("fetchChatMessages", ee);
10434
+ } catch (Y) {
10435
+ be("fetchChatMessages", Y);
10436
10436
  } finally {
10437
10437
  ve(!1);
10438
10438
  }
10439
10439
  else
10440
- G ? (J(z), te({
10440
+ G ? (ee(z), te({
10441
10441
  chat_id: z,
10442
10442
  who: kr?.content?.who,
10443
10443
  messages: kr?.content?.messages,
10444
10444
  total: kr?.content?.total - kr?.content?.messages?.length
10445
- })) : (J(z), te({
10445
+ })) : (ee(z), te({
10446
10446
  chat_id: z,
10447
10447
  who: Dr?.content?.who,
10448
10448
  messages: Dr?.content?.messages,
10449
10449
  total: Dr?.content?.total - Dr?.content?.messages?.length
10450
10450
  })), ve(!1);
10451
- }, [oe, f, m, v, O, be]), fn = De(async ({ to: z, text: G, files: ee, answer: ge, timestamp: de, from_id: se }) => {
10451
+ }, [oe, f, m, v, O, be]), fn = De(async ({ to: z, text: G, files: Y, answer: ge, timestamp: de, from_id: se }) => {
10452
10452
  lt({
10453
10453
  from_id: se,
10454
10454
  id: de,
@@ -10473,7 +10473,7 @@ const Ag = ({ children: e }) => {
10473
10473
  answer: ge,
10474
10474
  timestamp: de
10475
10475
  })
10476
- ), ee && ee.length > 0 && ee.forEach((Er) => {
10476
+ ), Y && Y.length > 0 && Y.forEach((Er) => {
10477
10477
  Er.originFileObj && dt.append("file[]", Er.originFileObj);
10478
10478
  });
10479
10479
  const nt = (await Be.post(
@@ -10495,9 +10495,9 @@ const Ag = ({ children: e }) => {
10495
10495
  for (const G of z)
10496
10496
  if (v)
10497
10497
  try {
10498
- const ee = xe();
10499
- if (!ee || !P || !f) return;
10500
- const ge = `${P}/${G}`, se = (await ee.post(
10498
+ const Y = xe();
10499
+ if (!Y || !P || !f) return;
10500
+ const ge = `${P}/${G}`, se = (await Y.post(
10501
10501
  ge,
10502
10502
  {
10503
10503
  _token: f
@@ -10510,8 +10510,8 @@ const Ag = ({ children: e }) => {
10510
10510
  }
10511
10511
  )).data;
10512
10512
  se && (Qe(se?.sms, se?.from, !1), $t(se?.sms?.from, se?.sms?.count_unread), ie(se?.sms?.total_unread));
10513
- } catch (ee) {
10514
- be("markMessagesAsRead", ee);
10513
+ } catch (Y) {
10514
+ be("markMessagesAsRead", Y);
10515
10515
  }
10516
10516
  else
10517
10517
  console.log(`/api/sms/read/${G}`);
@@ -10547,7 +10547,7 @@ const Ag = ({ children: e }) => {
10547
10547
  timeout: 3e5,
10548
10548
  withCredentials: !0
10549
10549
  });
10550
- y(G);
10550
+ G.interceptors.request.use((Y) => (Y.data?._token && (Y.headers["X-CSRF-TOKEN"] = Y.data._token), Y)), y(G);
10551
10551
  }, [u, 3e5, we]), fe(() => {
10552
10552
  s && (l.current = s);
10553
10553
  }, [s]), /* @__PURE__ */ N(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corp-chat-library-antd-react-socket",
3
3
  "description": "React chat component with Ant Design and Socket.io support",
4
- "version": "1.2.12",
4
+ "version": "1.2.13",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",