corp-chat-library-antd-react-socket 1.1.8 → 1.2.0

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 +189 -192
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as N, jsxs as Ee } from "react/jsx-runtime";
1
+ import { jsx as N, jsxs as Te } from "react/jsx-runtime";
2
2
  import * as F from "react";
3
3
  import re, { useRef as ge, cloneElement as tc, forwardRef as Xi, useState as J, useImperativeHandle as rc, useEffect as de, version as nc, isValidElement as oc, useMemo as Tt, useContext as vt, createContext as Jr, useLayoutEffect as ic, useCallback as Xe } from "react";
4
4
  import { Badge as ac, Space as Yi, Popover as ar, Button as Ze, Layout as zt, Upload as sc, Input as cc, Divider as lc, Empty as Wr, FloatButton as uc, Modal as dc, Dropdown as fc } from "antd";
@@ -82,7 +82,7 @@ function nl() {
82
82
  })(un)), un.exports;
83
83
  }
84
84
  var ol = nl();
85
- const Re = /* @__PURE__ */ aa(ol);
85
+ const Me = /* @__PURE__ */ aa(ol);
86
86
  function Z(e) {
87
87
  "@babel/helpers - typeof";
88
88
  return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -201,7 +201,7 @@ var ll = /* @__PURE__ */ re.forwardRef(function(e, t) {
201
201
  (Ce = M.current) !== null && Ce !== void 0 && Ce.contains(je.target) && y?.();
202
202
  }, k = sl(e), L = /* @__PURE__ */ tc(D, {
203
203
  value: S,
204
- className: Re((r = D.props) === null || r === void 0 ? void 0 : r.className, !k && b?.variant) || null
204
+ className: Me((r = D.props) === null || r === void 0 ? void 0 : r.className, !k && b?.variant) || null
205
205
  }), H = ge(null);
206
206
  if (re.useImperativeHandle(t, function() {
207
207
  return {
@@ -220,11 +220,11 @@ var ll = /* @__PURE__ */ re.forwardRef(function(e, t) {
220
220
  onMouseDown: function(je) {
221
221
  return je.preventDefault();
222
222
  },
223
- className: Re(U, x(x({}, "".concat(U, "-hidden"), !W), "".concat(U, "-has-suffix"), !!c))
223
+ className: Me(U, x(x({}, "".concat(U, "-hidden"), !W), "".concat(U, "-has-suffix"), !!c))
224
224
  }, te);
225
225
  }
226
- var ie = "".concat(s, "-affix-wrapper"), le = Re(ie, x(x(x(x(x({}, "".concat(s, "-disabled"), v), "".concat(ie, "-disabled"), v), "".concat(ie, "-focused"), f), "".concat(ie, "-readonly"), h), "".concat(ie, "-input-with-clear-btn"), c && p && S), _?.affixWrapper, b?.affixWrapper, b?.variant), fe = (c || p) && /* @__PURE__ */ re.createElement("span", {
227
- className: Re("".concat(s, "-suffix"), b?.suffix),
226
+ var ie = "".concat(s, "-affix-wrapper"), le = Me(ie, x(x(x(x(x({}, "".concat(s, "-disabled"), v), "".concat(ie, "-disabled"), v), "".concat(ie, "-focused"), f), "".concat(ie, "-readonly"), h), "".concat(ie, "-input-with-clear-btn"), c && p && S), _?.affixWrapper, b?.affixWrapper, b?.variant), fe = (c || p) && /* @__PURE__ */ re.createElement("span", {
227
+ className: Me("".concat(s, "-suffix"), b?.suffix),
228
228
  style: A?.suffix
229
229
  }, B, c);
230
230
  L = /* @__PURE__ */ re.createElement($, lt({
@@ -234,12 +234,12 @@ var ll = /* @__PURE__ */ re.forwardRef(function(e, t) {
234
234
  }, P?.affixWrapper, {
235
235
  ref: M
236
236
  }), l && /* @__PURE__ */ re.createElement("span", {
237
- className: Re("".concat(s, "-prefix"), b?.prefix),
237
+ className: Me("".concat(s, "-prefix"), b?.prefix),
238
238
  style: A?.prefix
239
239
  }, l), L, fe);
240
240
  }
241
241
  if (al(e)) {
242
- var ue = "".concat(s, "-group"), se = "".concat(ue, "-addon"), pe = "".concat(ue, "-wrapper"), be = Re("".concat(s, "-wrapper"), ue, _?.wrapper, b?.wrapper), Fe = Re(pe, x({}, "".concat(pe, "-disabled"), v), _?.group, b?.groupWrapper);
242
+ var ue = "".concat(s, "-group"), se = "".concat(ue, "-addon"), pe = "".concat(ue, "-wrapper"), be = Me("".concat(s, "-wrapper"), ue, _?.wrapper, b?.wrapper), Fe = Me(pe, x({}, "".concat(pe, "-disabled"), v), _?.group, b?.groupWrapper);
243
243
  L = /* @__PURE__ */ re.createElement(E, {
244
244
  className: Fe,
245
245
  ref: H
@@ -252,7 +252,7 @@ var ll = /* @__PURE__ */ re.forwardRef(function(e, t) {
252
252
  }, d)));
253
253
  }
254
254
  return /* @__PURE__ */ re.cloneElement(L, {
255
- className: Re((n = L.props) === null || n === void 0 ? void 0 : n.className, g) || null,
255
+ className: Me((n = L.props) === null || n === void 0 ? void 0 : n.className, g) || null,
256
256
  style: V(V({}, (o = L.props) === null || o === void 0 ? void 0 : o.style), m),
257
257
  hidden: C
258
258
  });
@@ -475,9 +475,9 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
475
475
  $(!0), o?.(ne);
476
476
  }, rt = function(ne) {
477
477
  T.current && (T.current = !1), $(!1), i?.(ne);
478
- }, _e = function(ne) {
478
+ }, we = function(ne) {
479
479
  B(""), j(), w.current && Bo(w.current, ne, n);
480
- }, Ae = pe && "".concat(u, "-out-of-range"), $e = function() {
480
+ }, Pe = pe && "".concat(u, "-out-of-range"), _e = function() {
481
481
  var ne = vl(e, [
482
482
  "prefixCls",
483
483
  "onPressEnter",
@@ -505,7 +505,7 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
505
505
  onBlur: rt,
506
506
  onKeyDown: je,
507
507
  onKeyUp: Ce,
508
- className: Re(u, x({}, "".concat(u, "-disabled"), d), C?.input),
508
+ className: Me(u, x({}, "".concat(u, "-disabled"), d), C?.input),
509
509
  style: _?.input,
510
510
  ref: w,
511
511
  size: g,
@@ -515,7 +515,7 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
515
515
  },
516
516
  onCompositionEnd: z
517
517
  }));
518
- }, Oe = function() {
518
+ }, $e = function() {
519
519
  var ne = Number(ue) > 0;
520
520
  if (h || fe.show) {
521
521
  var Se = fe.showFormatter ? fe.showFormatter({
@@ -524,7 +524,7 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
524
524
  maxLength: ue
525
525
  }) : "".concat(se).concat(ne ? " / ".concat(ue) : "");
526
526
  return /* @__PURE__ */ re.createElement(re.Fragment, null, fe.show && /* @__PURE__ */ re.createElement("span", {
527
- className: Re("".concat(u, "-show-count-suffix"), x({}, "".concat(u, "-show-count-has-suffix"), !!h), C?.count),
527
+ className: Me("".concat(u, "-show-count-suffix"), x({}, "".concat(u, "-show-count-has-suffix"), !!h), C?.count),
528
528
  style: V({}, _?.count)
529
529
  }, Se), h);
530
530
  }
@@ -532,18 +532,18 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
532
532
  };
533
533
  return /* @__PURE__ */ re.createElement(ll, lt({}, A, {
534
534
  prefixCls: u,
535
- className: Re(m, Ae),
536
- handleReset: _e,
535
+ className: Me(m, Pe),
536
+ handleReset: we,
537
537
  value: W,
538
538
  focused: D,
539
539
  triggerFocus: j,
540
- suffix: Oe(),
540
+ suffix: $e(),
541
541
  disabled: d,
542
542
  classes: O,
543
543
  classNames: C,
544
544
  styles: _,
545
545
  ref: M
546
- }), $e());
546
+ }), _e());
547
547
  }), Or = { exports: {} }, he = {};
548
548
  var Uo;
549
549
  function Sl() {
@@ -1097,20 +1097,20 @@ function ya() {
1097
1097
  function ba(e, t, r) {
1098
1098
  !t && !On[r] && (e(!1, r), On[r] = !0);
1099
1099
  }
1100
- function we(e, t) {
1100
+ function Ee(e, t) {
1101
1101
  ba(So, e, t);
1102
1102
  }
1103
1103
  function Nl(e, t) {
1104
1104
  ba(Il, e, t);
1105
1105
  }
1106
- we.preMessage = Al;
1107
- we.resetWarned = ya;
1108
- we.noteOnce = Nl;
1106
+ Ee.preMessage = Al;
1107
+ Ee.resetWarned = ya;
1108
+ Ee.noteOnce = Nl;
1109
1109
  function Tn(e, t) {
1110
1110
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
1111
1111
  function o(i, a) {
1112
1112
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, l = n.has(i);
1113
- if (we(!l, "Warning: There may be circular references"), l)
1113
+ if (Ee(!l, "Warning: There may be circular references"), l)
1114
1114
  return !1;
1115
1115
  if (i === a)
1116
1116
  return !0;
@@ -1137,7 +1137,7 @@ function Tn(e, t) {
1137
1137
  return o(e, t);
1138
1138
  }
1139
1139
  var Ot = "RC_FORM_INTERNAL_HOOKS", ye = function() {
1140
- we(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
1140
+ Ee(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
1141
1141
  }, Wt = /* @__PURE__ */ F.createContext({
1142
1142
  getFieldValue: ye,
1143
1143
  getFieldsValue: ye,
@@ -1988,10 +1988,10 @@ function mu(e, t, r, n, o, i) {
1988
1988
  for (var C = arguments.length, _ = new Array(C), b = 0; b < C; b++)
1989
1989
  _[b] = arguments[b];
1990
1990
  Promise.resolve().then(function() {
1991
- we(!y, "Your validator function has already return a promise. `callback` will be ignored."), y || f.apply(void 0, _);
1991
+ Ee(!y, "Your validator function has already return a promise. `callback` will be ignored."), y || f.apply(void 0, _);
1992
1992
  });
1993
1993
  }, S = g(v, h, p);
1994
- y = S && typeof S.then == "function" && typeof S.catch == "function", we(y, "`callback` is deprecated. Please return a promise instead."), y && S.then(function() {
1994
+ y = S && typeof S.then == "function" && typeof S.catch == "function", Ee(y, "`callback` is deprecated. Please return a promise instead."), y && S.then(function() {
1995
1995
  f();
1996
1996
  }).catch(function(O) {
1997
1997
  f(O || " ");
@@ -2098,7 +2098,7 @@ function Vn() {
2098
2098
  }, e);
2099
2099
  })), Vn.apply(this, arguments);
2100
2100
  }
2101
- function Pe(e) {
2101
+ function Re(e) {
2102
2102
  return Fn(e);
2103
2103
  }
2104
2104
  function ii(e, t) {
@@ -2157,7 +2157,7 @@ var Co = /* @__PURE__ */ (function(e) {
2157
2157
  resetCount: 0
2158
2158
  }), x(oe(o), "cancelRegisterFunc", null), x(oe(o), "mounted", !1), x(oe(o), "touched", !1), x(oe(o), "dirty", !1), x(oe(o), "validatePromise", void 0), x(oe(o), "prevValidating", void 0), x(oe(o), "errors", Qe), x(oe(o), "warnings", Qe), x(oe(o), "cancelRegister", function() {
2159
2159
  var l = o.props, c = l.preserve, u = l.isListField, d = l.name;
2160
- o.cancelRegisterFunc && o.cancelRegisterFunc(u, c, Pe(d)), o.cancelRegisterFunc = null;
2160
+ o.cancelRegisterFunc && o.cancelRegisterFunc(u, c, Re(d)), o.cancelRegisterFunc = null;
2161
2161
  }), x(oe(o), "getNamePath", function() {
2162
2162
  var l = o.props, c = l.name, u = l.fieldContext, d = u.prefixName, g = d === void 0 ? [] : d;
2163
2163
  return c !== void 0 ? [].concat(X(g), X(c)) : [];
@@ -2220,7 +2220,7 @@ var Co = /* @__PURE__ */ (function(e) {
2220
2220
  break;
2221
2221
  }
2222
2222
  case "dependenciesUpdate": {
2223
- var _ = v.map(Pe);
2223
+ var _ = v.map(Re);
2224
2224
  if (_.some(function(b) {
2225
2225
  return Ht(u.relatedFields, b);
2226
2226
  })) {
@@ -2345,7 +2345,7 @@ var Co = /* @__PURE__ */ (function(e) {
2345
2345
  return x({}, h, E);
2346
2346
  }, R = l[d], I = u !== void 0 ? A(P) : {};
2347
2347
  process.env.NODE_ENV !== "production" && I && Object.keys(I).forEach(function(E) {
2348
- we(typeof I[E] != "function", "It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(E, ")"));
2348
+ Ee(typeof I[E] != "function", "It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(E, ")"));
2349
2349
  });
2350
2350
  var D = V(V({}, l), I);
2351
2351
  D[d] = function() {
@@ -2401,7 +2401,7 @@ var Co = /* @__PURE__ */ (function(e) {
2401
2401
  key: "render",
2402
2402
  value: function() {
2403
2403
  var o = this.state.resetCount, i = this.props.children, a = this.getOnlyChild(i), s = a.child, l = a.isFunction, c;
2404
- return l ? c = s : /* @__PURE__ */ F.isValidElement(s) ? c = /* @__PURE__ */ F.cloneElement(s, this.getControlled(s.props)) : (we(!s, "`children` of Field is not validate ReactElement."), c = s), /* @__PURE__ */ F.createElement(F.Fragment, {
2404
+ return l ? c = s : /* @__PURE__ */ F.isValidElement(s) ? c = /* @__PURE__ */ F.cloneElement(s, this.getControlled(s.props)) : (Ee(!s, "`children` of Field is not validate ReactElement."), c = s), /* @__PURE__ */ F.createElement(F.Fragment, {
2405
2405
  key: o
2406
2406
  }, c);
2407
2407
  }
@@ -2413,8 +2413,8 @@ x(Co, "defaultProps", {
2413
2413
  valuePropName: "value"
2414
2414
  });
2415
2415
  function _a(e) {
2416
- var t, r = e.name, n = pt(e, xu), o = F.useContext(Wt), i = F.useContext(qr), a = r !== void 0 ? Pe(r) : void 0, s = (t = n.isListField) !== null && t !== void 0 ? t : !!i, l = "keep";
2417
- return s || (l = "_".concat((a || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && s && a.length <= 1 && we(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ F.createElement(Co, lt({
2416
+ var t, r = e.name, n = pt(e, xu), o = F.useContext(Wt), i = F.useContext(qr), a = r !== void 0 ? Re(r) : void 0, s = (t = n.isListField) !== null && t !== void 0 ? t : !!i, l = "keep";
2417
+ return s || (l = "_".concat((a || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && s && a.length <= 1 && Ee(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ F.createElement(Co, lt({
2418
2418
  key: l,
2419
2419
  name: a,
2420
2420
  isListField: s
@@ -2427,8 +2427,8 @@ function Eu(e) {
2427
2427
  keys: [],
2428
2428
  id: 0
2429
2429
  }), u = c.current, d = F.useMemo(function() {
2430
- var h = Pe(s.prefixName) || [];
2431
- return [].concat(X(h), X(Pe(t)));
2430
+ var h = Re(s.prefixName) || [];
2431
+ return [].concat(X(h), X(Re(t)));
2432
2432
  }, [s.prefixName, t]), g = F.useMemo(function() {
2433
2433
  return V(V({}, s), {}, {
2434
2434
  prefixName: d
@@ -2442,7 +2442,7 @@ function Eu(e) {
2442
2442
  };
2443
2443
  }, [d]);
2444
2444
  if (typeof n != "function")
2445
- return we(!1, "Form.List only accepts function as children."), null;
2445
+ return Ee(!1, "Form.List only accepts function as children."), null;
2446
2446
  var v = function(f, y, p) {
2447
2447
  var S = p.source;
2448
2448
  return S === "internal" ? !1 : f !== y;
@@ -2466,7 +2466,7 @@ function Eu(e) {
2466
2466
  }, _ = {
2467
2467
  add: function(A, R) {
2468
2468
  var I = C();
2469
- R >= 0 && R <= I.length ? (u.keys = [].concat(X(u.keys.slice(0, R)), [u.id], X(u.keys.slice(R))), S([].concat(X(I.slice(0, R)), [A], X(I.slice(R))))) : (process.env.NODE_ENV !== "production" && (R < 0 || R > I.length) && we(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(X(u.keys), [u.id]), S([].concat(X(I), [A]))), u.id += 1;
2469
+ R >= 0 && R <= I.length ? (u.keys = [].concat(X(u.keys.slice(0, R)), [u.id], X(u.keys.slice(R))), S([].concat(X(I.slice(0, R)), [A], X(I.slice(R))))) : (process.env.NODE_ENV !== "production" && (R < 0 || R > I.length) && Ee(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(X(u.keys), [u.id]), S([].concat(X(I), [A]))), u.id += 1;
2470
2470
  },
2471
2471
  remove: function(A) {
2472
2472
  var R = C(), I = new Set(Array.isArray(A) ? A : [A]);
@@ -2483,7 +2483,7 @@ function Eu(e) {
2483
2483
  }
2484
2484
  }
2485
2485
  }, b = p || [];
2486
- return Array.isArray(b) || (b = [], process.env.NODE_ENV !== "production" && we(!1, "Current value of '".concat(d.join(" > "), "' is not an array type."))), n(b.map(function(P, A) {
2486
+ return Array.isArray(b) || (b = [], process.env.NODE_ENV !== "production" && Ee(!1, "Current value of '".concat(d.join(" > "), "' is not an array type."))), n(b.map(function(P, A) {
2487
2487
  var R = u.keys[A];
2488
2488
  return R === void 0 && (u.keys[A] = u.id, R = u.keys[A], u.id += 1), {
2489
2489
  name: A,
@@ -2597,7 +2597,7 @@ var jt = /* @__PURE__ */ (function() {
2597
2597
  setPreserve: r.setPreserve,
2598
2598
  getInitialValue: r.getInitialValue,
2599
2599
  registerWatch: r.registerWatch
2600
- }) : (we(!1, "`getInternalHooks` is internal usage. Should not call directly."), null);
2600
+ }) : (Ee(!1, "`getInternalHooks` is internal usage. Should not call directly."), null);
2601
2601
  }), x(this, "useSubscribe", function(n) {
2602
2602
  r.subscribable = n;
2603
2603
  }), x(this, "prevWithoutPreserves", null), x(this, "setInitialValues", function(n, o) {
@@ -2642,7 +2642,7 @@ var jt = /* @__PURE__ */ (function() {
2642
2642
  }
2643
2643
  }), x(this, "timeoutId", null), x(this, "warningUnhooked", function() {
2644
2644
  process.env.NODE_ENV !== "production" && !r.timeoutId && typeof window < "u" && (r.timeoutId = setTimeout(function() {
2645
- r.timeoutId = null, r.formHooked || we(!1, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
2645
+ r.timeoutId = null, r.formHooked || Ee(!1, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
2646
2646
  }));
2647
2647
  }), x(this, "updateStore", function(n) {
2648
2648
  r.store = n;
@@ -2662,9 +2662,9 @@ var jt = /* @__PURE__ */ (function() {
2662
2662
  return r.getFieldEntities(!0);
2663
2663
  var o = r.getFieldsMap(!0);
2664
2664
  return n.map(function(i) {
2665
- var a = Pe(i);
2665
+ var a = Re(i);
2666
2666
  return o.get(a) || {
2667
- INVALIDATE_NAME_PATH: Pe(i)
2667
+ INVALIDATE_NAME_PATH: Re(i)
2668
2668
  };
2669
2669
  });
2670
2670
  }), x(this, "getFieldsValue", function(n, o) {
@@ -2687,10 +2687,10 @@ var jt = /* @__PURE__ */ (function() {
2687
2687
  var f = "getMeta" in u ? u.getMeta() : null;
2688
2688
  a(f) && c.push(m);
2689
2689
  }
2690
- }), ii(r.store, c.map(Pe));
2690
+ }), ii(r.store, c.map(Re));
2691
2691
  }), x(this, "getFieldValue", function(n) {
2692
2692
  r.warningUnhooked();
2693
- var o = Pe(n);
2693
+ var o = Re(n);
2694
2694
  return ht(r.store, o);
2695
2695
  }), x(this, "getFieldsError", function(n) {
2696
2696
  r.warningUnhooked();
@@ -2701,25 +2701,25 @@ var jt = /* @__PURE__ */ (function() {
2701
2701
  errors: i.getErrors(),
2702
2702
  warnings: i.getWarnings()
2703
2703
  } : {
2704
- name: Pe(n[a]),
2704
+ name: Re(n[a]),
2705
2705
  errors: [],
2706
2706
  warnings: []
2707
2707
  };
2708
2708
  });
2709
2709
  }), x(this, "getFieldError", function(n) {
2710
2710
  r.warningUnhooked();
2711
- var o = Pe(n), i = r.getFieldsError([o])[0];
2711
+ var o = Re(n), i = r.getFieldsError([o])[0];
2712
2712
  return i.errors;
2713
2713
  }), x(this, "getFieldWarning", function(n) {
2714
2714
  r.warningUnhooked();
2715
- var o = Pe(n), i = r.getFieldsError([o])[0];
2715
+ var o = Re(n), i = r.getFieldsError([o])[0];
2716
2716
  return i.warnings;
2717
2717
  }), x(this, "isFieldsTouched", function() {
2718
2718
  r.warningUnhooked();
2719
2719
  for (var n = arguments.length, o = new Array(n), i = 0; i < n; i++)
2720
2720
  o[i] = arguments[i];
2721
2721
  var a = o[0], s = o[1], l, c = !1;
2722
- o.length === 0 ? l = null : o.length === 1 ? Array.isArray(a) ? (l = a.map(Pe), c = !1) : (l = null, c = a) : (l = a.map(Pe), c = s);
2722
+ o.length === 0 ? l = null : o.length === 1 ? Array.isArray(a) ? (l = a.map(Re), c = !1) : (l = null, c = a) : (l = a.map(Re), c = s);
2723
2723
  var u = r.getFieldEntities(!0), d = function(f) {
2724
2724
  return f.isFieldTouched();
2725
2725
  };
@@ -2756,7 +2756,7 @@ var jt = /* @__PURE__ */ (function() {
2756
2756
  return o.some(function(a) {
2757
2757
  return a.isFieldValidating();
2758
2758
  });
2759
- var i = n.map(Pe);
2759
+ var i = n.map(Re);
2760
2760
  return o.some(function(a) {
2761
2761
  var s = a.getNamePath();
2762
2762
  return Ht(i, s) && a.isFieldValidating();
@@ -2781,11 +2781,11 @@ var jt = /* @__PURE__ */ (function() {
2781
2781
  if (d !== void 0) {
2782
2782
  var g = u.getNamePath(), m = r.getInitialValue(g);
2783
2783
  if (m !== void 0)
2784
- we(!1, "Form already set 'initialValues' with path '".concat(g.join("."), "'. Field can not overwrite it."));
2784
+ Ee(!1, "Form already set 'initialValues' with path '".concat(g.join("."), "'. Field can not overwrite it."));
2785
2785
  else {
2786
2786
  var v = o.get(g);
2787
2787
  if (v && v.size > 1)
2788
- we(!1, "Multiple Field with path '".concat(g.join("."), "' set 'initialValue'. Can not decide which one to pick."));
2788
+ Ee(!1, "Multiple Field with path '".concat(g.join("."), "' set 'initialValue'. Can not decide which one to pick."));
2789
2789
  else if (v) {
2790
2790
  var h = r.getFieldValue(g), f = u.isListField();
2791
2791
  !f && (!n.skipExist || h === void 0) && r.updateStore(it(r.store, g, X(v)[0].value));
@@ -2812,7 +2812,7 @@ var jt = /* @__PURE__ */ (function() {
2812
2812
  }), r.notifyWatch();
2813
2813
  return;
2814
2814
  }
2815
- var i = n.map(Pe);
2815
+ var i = n.map(Re);
2816
2816
  i.forEach(function(a) {
2817
2817
  var s = r.getInitialValue(a);
2818
2818
  r.updateStore(it(r.store, a, s));
@@ -2825,7 +2825,7 @@ var jt = /* @__PURE__ */ (function() {
2825
2825
  r.warningUnhooked();
2826
2826
  var o = r.store, i = [];
2827
2827
  n.forEach(function(a) {
2828
- var s = a.name, l = pt(a, _u), c = Pe(s);
2828
+ var s = a.name, l = pt(a, _u), c = Re(s);
2829
2829
  i.push(c), "value" in l && r.updateStore(it(r.store, c, l.value)), r.notifyObservers(o, [c], {
2830
2830
  type: "setField",
2831
2831
  data: a
@@ -2917,7 +2917,7 @@ var jt = /* @__PURE__ */ (function() {
2917
2917
  relatedFields: [o].concat(X(i))
2918
2918
  }), i;
2919
2919
  }), x(this, "updateValue", function(n, o) {
2920
- var i = Pe(n), a = r.store;
2920
+ var i = Re(n), a = r.store;
2921
2921
  r.updateStore(it(r.store, i, o)), r.notifyObservers(a, [i], {
2922
2922
  type: "valueUpdate",
2923
2923
  source: "internal"
@@ -2951,7 +2951,7 @@ var jt = /* @__PURE__ */ (function() {
2951
2951
  r.getFieldEntities().forEach(function(l) {
2952
2952
  var c = l.props.dependencies;
2953
2953
  (c || []).forEach(function(u) {
2954
- var d = Pe(u);
2954
+ var d = Re(u);
2955
2955
  a.update(d, function() {
2956
2956
  var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /* @__PURE__ */ new Set();
2957
2957
  return g.add(l), g;
@@ -2992,7 +2992,7 @@ var jt = /* @__PURE__ */ (function() {
2992
2992
  r.warningUnhooked();
2993
2993
  var i, a;
2994
2994
  Array.isArray(n) || typeof n == "string" || typeof o == "string" ? (i = n, a = o) : a = n;
2995
- var s = !!i, l = s ? i.map(Pe) : [], c = [], u = String(Date.now()), d = /* @__PURE__ */ new Set(), g = a || {}, m = g.recursive, v = g.dirty;
2995
+ var s = !!i, l = s ? i.map(Re) : [], c = [], u = String(Date.now()), d = /* @__PURE__ */ new Set(), g = a || {}, m = g.recursive, v = g.dirty;
2996
2996
  r.getFieldEntities(!0).forEach(function(p) {
2997
2997
  if (s || l.push(p.getNamePath()), !(!p.props.rules || !p.props.rules.length) && !(v && !p.isFieldDirty())) {
2998
2998
  var S = p.getNamePath();
@@ -3195,7 +3195,7 @@ function si(e) {
3195
3195
  }
3196
3196
  var Pu = process.env.NODE_ENV !== "production" ? function(e) {
3197
3197
  var t = e.join("__RC_FIELD_FORM_SPLIT__"), r = ge(t);
3198
- we(r.current === t, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
3198
+ Ee(r.current === t, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
3199
3199
  } : function() {
3200
3200
  };
3201
3201
  function Ru() {
@@ -3208,8 +3208,8 @@ function Ru() {
3208
3208
  }, [u]), m = ge(g);
3209
3209
  m.current = g;
3210
3210
  var v = vt(Wt), h = s || v, f = h && h._init;
3211
- process.env.NODE_ENV !== "production" && we(t.length === 2 ? s ? f : !0 : f, "useWatch requires a form instance since it can not auto detect from context.");
3212
- var y = Pe(n), p = ge(y);
3211
+ process.env.NODE_ENV !== "production" && Ee(t.length === 2 ? s ? f : !0 : f, "useWatch requires a form instance since it can not auto detect from context.");
3212
+ var y = Re(n), p = ge(y);
3213
3213
  return p.current = y, Pu(y), de(
3214
3214
  function() {
3215
3215
  if (f) {
@@ -3551,7 +3551,7 @@ function fi(e, t) {
3551
3551
  return hr("".concat(t, "_").concat(cr(e)));
3552
3552
  }
3553
3553
  var Bn = bt();
3554
- function Te(e) {
3554
+ function Oe(e) {
3555
3555
  return typeof e == "number" ? "".concat(e, "px") : e;
3556
3556
  }
3557
3557
  function Kr(e, t, r) {
@@ -4079,7 +4079,7 @@ function Rd(e, t, r, n) {
4079
4079
  }
4080
4080
  function Ha(e, t) {
4081
4081
  var r = t.path, n = t.parentSelectors;
4082
- we(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : ""));
4082
+ Ee(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : ""));
4083
4083
  }
4084
4084
  var Md = function(t, r, n) {
4085
4085
  if (t === "content") {
@@ -4355,7 +4355,7 @@ function zd() {
4355
4355
  }
4356
4356
  let Ya = Xa;
4357
4357
  process.env.NODE_ENV !== "production" && (Ya = (e, t, r) => {
4358
- we(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && zd();
4358
+ Ee(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && zd();
4359
4359
  });
4360
4360
  const xr = Ya, Qa = /* @__PURE__ */ F.createContext({}), Kt = process.env.NODE_ENV !== "production" ? (e) => {
4361
4361
  const {
@@ -4539,7 +4539,7 @@ function nr(e, t) {
4539
4539
  const r = t || 255;
4540
4540
  return e > r ? r : e < 0 ? 0 : e;
4541
4541
  }
4542
- class Me {
4542
+ class Ae {
4543
4543
  constructor(t) {
4544
4544
  x(this, "isValid", !0), x(this, "r", 0), x(this, "g", 0), x(this, "b", 0), x(this, "a", 1), x(this, "_h", void 0), x(this, "_s", void 0), x(this, "_l", void 0), x(this, "_v", void 0), x(this, "_max", void 0), x(this, "_min", void 0), x(this, "_brightness", void 0);
4545
4545
  function r(n) {
@@ -4551,7 +4551,7 @@ class Me {
4551
4551
  };
4552
4552
  const n = t.trim();
4553
4553
  /^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : o("rgb") ? this.fromRgbString(n) : o("hsl") ? this.fromHslString(n) : (o("hsv") || o("hsb")) && this.fromHsvString(n);
4554
- } else if (t instanceof Me)
4554
+ } else if (t instanceof Ae)
4555
4555
  this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a, this._h = t._h, this._s = t._s, this._l = t._l, this._v = t._v;
4556
4556
  else if (r("rgb"))
4557
4557
  this.r = nr(t.r), this.g = nr(t.g), this.b = nr(t.b), this.a = typeof t.a == "number" ? nr(t.a, 1) : 1;
@@ -4895,8 +4895,8 @@ function Ei(e, t, r) {
4895
4895
  return r ? n = e.v + Gd * t : n = e.v - Kd * t, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
4896
4896
  }
4897
4897
  function mr(e) {
4898
- for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = new Me(e), o = n.toHsv(), i = rs; i > 0; i -= 1) {
4899
- var a = new Me({
4898
+ for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = new Ae(e), o = n.toHsv(), i = rs; i > 0; i -= 1) {
4899
+ var a = new Ae({
4900
4900
  h: Ci(o, i, !0),
4901
4901
  s: xi(o, i, !0),
4902
4902
  v: Ei(o, i, !0)
@@ -4905,7 +4905,7 @@ function mr(e) {
4905
4905
  }
4906
4906
  r.push(n);
4907
4907
  for (var s = 1; s <= ns; s += 1) {
4908
- var l = new Me({
4908
+ var l = new Ae({
4909
4909
  h: Ci(o, s),
4910
4910
  s: xi(o, s),
4911
4911
  v: Ei(o, s)
@@ -4914,7 +4914,7 @@ function mr(e) {
4914
4914
  }
4915
4915
  return t.theme === "dark" ? Xd.map(function(c) {
4916
4916
  var u = c.index, d = c.amount;
4917
- return new Me(t.backgroundColor || "#141414").mix(r[u], d).toHexString();
4917
+ return new Ae(t.backgroundColor || "#141414").mix(r[u], d).toHexString();
4918
4918
  }) : r.map(function(c) {
4919
4919
  return c.toHexString();
4920
4920
  });
@@ -4986,7 +4986,7 @@ function Yd(e, {
4986
4986
  colorPrimary: s,
4987
4987
  colorBgBase: l,
4988
4988
  colorTextBase: c
4989
- } = e, u = t(s), d = t(n), g = t(o), m = t(i), v = t(a), h = r(l, c), f = e.colorLink || e.colorInfo, y = t(f), p = new Me(m[1]).mix(new Me(m[3]), 50).toHexString();
4989
+ } = e, u = t(s), d = t(n), g = t(o), m = t(i), v = t(a), h = r(l, c), f = e.colorLink || e.colorInfo, y = t(f), p = new Ae(m[1]).mix(new Ae(m[3]), 50).toHexString();
4990
4990
  return Object.assign(Object.assign({}, h), {
4991
4991
  colorPrimaryBg: u[1],
4992
4992
  colorPrimaryBgHover: u[2],
@@ -5043,7 +5043,7 @@ function Yd(e, {
5043
5043
  colorLinkHover: y[4],
5044
5044
  colorLink: y[6],
5045
5045
  colorLinkActive: y[7],
5046
- colorBgMask: new Me("#000").setA(0.45).toRgbString(),
5046
+ colorBgMask: new Ae("#000").setA(0.45).toRgbString(),
5047
5047
  colorWhite: "#fff"
5048
5048
  });
5049
5049
  }
@@ -5149,7 +5149,7 @@ function nf(e) {
5149
5149
  // 4
5150
5150
  };
5151
5151
  }
5152
- const Je = (e, t) => new Me(e).setA(t).toRgbString(), or = (e, t) => new Me(e).darken(t).toHexString(), of = (e) => {
5152
+ const Je = (e, t) => new Ae(e).setA(t).toRgbString(), or = (e, t) => new Ae(e).darken(t).toHexString(), of = (e) => {
5153
5153
  const t = mr(e);
5154
5154
  return {
5155
5155
  1: t[0],
@@ -5238,16 +5238,16 @@ function ff(e, t) {
5238
5238
  let l = a.clone();
5239
5239
  return l = s?.(l) || l, l.toRgbString();
5240
5240
  }, o = (a, s) => {
5241
- const l = new Me(a), c = mr(l.toRgbString());
5241
+ const l = new Ae(a), c = mr(l.toRgbString());
5242
5242
  r[`${s}-color`] = n(l), r[`${s}-color-disabled`] = c[1], r[`${s}-color-hover`] = c[4], r[`${s}-color-active`] = c[6], r[`${s}-color-outline`] = l.clone().setA(0.2).toRgbString(), r[`${s}-color-deprecated-bg`] = c[0], r[`${s}-color-deprecated-border`] = c[2];
5243
5243
  };
5244
5244
  if (t.primaryColor) {
5245
5245
  o(t.primaryColor, "primary");
5246
- const a = new Me(t.primaryColor), s = mr(a.toRgbString());
5246
+ const a = new Ae(t.primaryColor), s = mr(a.toRgbString());
5247
5247
  s.forEach((c, u) => {
5248
5248
  r[`primary-${u + 1}`] = c;
5249
5249
  }), r["primary-color-deprecated-l-35"] = n(a, (c) => c.lighten(35)), r["primary-color-deprecated-l-20"] = n(a, (c) => c.lighten(20)), r["primary-color-deprecated-t-20"] = n(a, (c) => c.tint(20)), r["primary-color-deprecated-t-50"] = n(a, (c) => c.tint(50)), r["primary-color-deprecated-f-12"] = n(a, (c) => c.setA(c.a * 0.12));
5250
- const l = new Me(s[0]);
5250
+ const l = new Ae(s[0]);
5251
5251
  r["primary-color-active-deprecated-f-30"] = n(l, (c) => c.setA(c.a * 0.3)), r["primary-color-active-deprecated-d-02"] = n(l, (c) => c.darken(2));
5252
5252
  }
5253
5253
  return t.successColor && o(t.successColor, "success"), t.warningColor && o(t.warningColor, "warning"), t.errorColor && o(t.errorColor, "error"), t.infoColor && o(t.infoColor, "info"), `
@@ -5381,7 +5381,7 @@ function $i(e, t, r, n) {
5381
5381
  var i = n.deprecatedTokens;
5382
5382
  i.forEach(function(s) {
5383
5383
  var l = K(s, 2), c = l[0], u = l[1];
5384
- if (process.env.NODE_ENV !== "production" && we(!(o != null && o[c]), "Component Token `".concat(String(c), "` of ").concat(String(e), " is deprecated. Please use `").concat(String(u), "` instead.")), o != null && o[c] || o != null && o[u]) {
5384
+ if (process.env.NODE_ENV !== "production" && Ee(!(o != null && o[c]), "Component Token `".concat(String(c), "` of ").concat(String(e), " is deprecated. Please use `").concat(String(u), "` instead.")), o != null && o[c] || o != null && o[u]) {
5385
5385
  var d;
5386
5386
  (d = o[u]) !== null && d !== void 0 || (o[u] = o?.[c]);
5387
5387
  }
@@ -5456,14 +5456,14 @@ function Ef(e) {
5456
5456
  for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
5457
5457
  n[o] = arguments[o];
5458
5458
  return "max(".concat(n.map(function(i) {
5459
- return Te(i);
5459
+ return Oe(i);
5460
5460
  }).join(","), ")");
5461
5461
  },
5462
5462
  min: function() {
5463
5463
  for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
5464
5464
  n[o] = arguments[o];
5465
5465
  return "min(".concat(n.map(function(i) {
5466
- return Te(i);
5466
+ return Oe(i);
5467
5467
  }).join(","), ")");
5468
5468
  }
5469
5469
  };
@@ -5672,25 +5672,25 @@ function Mr(e, t) {
5672
5672
  g: n,
5673
5673
  b: o,
5674
5674
  a: i
5675
- } = new Me(e).toRgb();
5675
+ } = new Ae(e).toRgb();
5676
5676
  if (i < 1)
5677
5677
  return e;
5678
5678
  const {
5679
5679
  r: a,
5680
5680
  g: s,
5681
5681
  b: l
5682
- } = new Me(t).toRgb();
5682
+ } = new Ae(t).toRgb();
5683
5683
  for (let c = 0.01; c <= 1; c += 0.01) {
5684
5684
  const u = Math.round((r - a * (1 - c)) / c), d = Math.round((n - s * (1 - c)) / c), g = Math.round((o - l * (1 - c)) / c);
5685
5685
  if (En(u) && En(d) && En(g))
5686
- return new Me({
5686
+ return new Ae({
5687
5687
  r: u,
5688
5688
  g: d,
5689
5689
  b: g,
5690
5690
  a: Math.round(c * 100) / 100
5691
5691
  }).toRgbString();
5692
5692
  }
5693
- return new Me({
5693
+ return new Ae({
5694
5694
  r,
5695
5695
  g: n,
5696
5696
  b: o,
@@ -5817,9 +5817,9 @@ function ls(e) {
5817
5817
  screenXXLMin: u,
5818
5818
  boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
5819
5819
  boxShadowCard: `
5820
- 0 1px 2px -2px ${new Me("rgba(0, 0, 0, 0.16)").toRgbString()},
5821
- 0 3px 6px 0 ${new Me("rgba(0, 0, 0, 0.12)").toRgbString()},
5822
- 0 5px 12px 4px ${new Me("rgba(0, 0, 0, 0.09)").toRgbString()}
5820
+ 0 1px 2px -2px ${new Ae("rgba(0, 0, 0, 0.16)").toRgbString()},
5821
+ 0 3px 6px 0 ${new Ae("rgba(0, 0, 0, 0.12)").toRgbString()},
5822
+ 0 5px 12px 4px ${new Ae("rgba(0, 0, 0, 0.09)").toRgbString()}
5823
5823
  `,
5824
5824
  boxShadowDrawerRight: `
5825
5825
  -6px 0 16px 0 rgba(0, 0, 0, 0.08),
@@ -6306,17 +6306,17 @@ function ng(e, t, r, n) {
6306
6306
  function ie() {
6307
6307
  w(xt), L(null, !0);
6308
6308
  }
6309
- var le = ur(function($e) {
6310
- var Oe = T();
6311
- if (Oe !== xt) {
6309
+ var le = ur(function(_e) {
6310
+ var $e = T();
6311
+ if ($e !== xt) {
6312
6312
  var ae = U();
6313
- if (!($e && !$e.deadline && $e.target !== ae)) {
6313
+ if (!(_e && !_e.deadline && _e.target !== ae)) {
6314
6314
  var ne = te.current, Se;
6315
- Oe === Ar && ne ? Se = C?.(ae, $e) : Oe === Ir && ne ? Se = _?.(ae, $e) : Oe === Nr && ne && (Se = b?.(ae, $e)), ne && Se !== !1 && ie();
6315
+ $e === Ar && ne ? Se = C?.(ae, _e) : $e === Ir && ne ? Se = _?.(ae, _e) : $e === Nr && ne && (Se = b?.(ae, _e)), ne && Se !== !1 && ie();
6316
6316
  }
6317
6317
  }
6318
- }), fe = Qf(le), ue = K(fe, 1), se = ue[0], pe = function(Oe) {
6319
- switch (Oe) {
6318
+ }), fe = Qf(le), ue = K(fe, 1), se = ue[0], pe = function($e) {
6319
+ switch ($e) {
6320
6320
  case Ar:
6321
6321
  return x(x(x({}, at, g), Dt, h), kt, p);
6322
6322
  case Ir:
@@ -6328,10 +6328,10 @@ function ng(e, t, r, n) {
6328
6328
  }
6329
6329
  }, be = F.useMemo(function() {
6330
6330
  return pe(H);
6331
- }, [H]), Fe = rg(H, !e, function($e) {
6332
- if ($e === at) {
6333
- var Oe = be[at];
6334
- return Oe ? Oe(U()) : $s;
6331
+ }, [H]), Fe = rg(H, !e, function(_e) {
6332
+ if (_e === at) {
6333
+ var $e = be[at];
6334
+ return $e ? $e(U()) : $s;
6335
6335
  }
6336
6336
  if (Ce in be) {
6337
6337
  var ae;
@@ -6348,12 +6348,12 @@ function ng(e, t, r, n) {
6348
6348
  xs(function() {
6349
6349
  if (!(B.current && rt.current === t)) {
6350
6350
  D(t);
6351
- var $e = B.current;
6351
+ var _e = B.current;
6352
6352
  B.current = !0;
6353
- var Oe;
6354
- !$e && t && s && (Oe = Ar), $e && t && i && (Oe = Ir), ($e && !t && c || !$e && d && !t && c) && (Oe = Nr);
6355
- var ae = pe(Oe);
6356
- Oe && (e || ae[at]) ? (w(Oe), je()) : w(xt), rt.current = t;
6353
+ var $e;
6354
+ !_e && t && s && ($e = Ar), _e && t && i && ($e = Ir), (_e && !t && c || !_e && d && !t && c) && ($e = Nr);
6355
+ var ae = pe($e);
6356
+ $e && (e || ae[at]) ? (w($e), je()) : w(xt), rt.current = t;
6357
6357
  }
6358
6358
  }, [t]), de(function() {
6359
6359
  // Cancel appear
@@ -6365,14 +6365,14 @@ function ng(e, t, r, n) {
6365
6365
  B.current = !1, clearTimeout(W.current);
6366
6366
  };
6367
6367
  }, []);
6368
- var _e = F.useRef(!1);
6368
+ var we = F.useRef(!1);
6369
6369
  de(function() {
6370
- I && (_e.current = !0), I !== void 0 && H === xt && ((_e.current || I) && P?.(I), _e.current = !0);
6370
+ I && (we.current = !0), I !== void 0 && H === xt && ((we.current || I) && P?.(I), we.current = !0);
6371
6371
  }, [I, H]);
6372
- var Ae = k;
6373
- return be[at] && Ce === Dt && (Ae = V({
6372
+ var Pe = k;
6373
+ return be[at] && Ce === Dt && (Pe = V({
6374
6374
  transition: "none"
6375
- }, Ae)), [H, Ce, Ae, I ?? t];
6375
+ }, Pe)), [H, Ce, Pe, I ?? t];
6376
6376
  }
6377
6377
  function og(e) {
6378
6378
  var t = e;
@@ -6411,7 +6411,7 @@ function og(e) {
6411
6411
  P === at ? T = "prepare" : Os(P) ? T = "active" : P === Dt && (T = "start");
6412
6412
  var w = Vi(g, "".concat(b, "-").concat(T));
6413
6413
  $ = d(V(V({}, E), {}, {
6414
- className: Re(Vi(g, b), x(x({}, w, w && T), g, typeof g == "string")),
6414
+ className: Me(Vi(g, b), x(x({}, w, w && T), g, typeof g == "string")),
6415
6415
  style: A
6416
6416
  }), D);
6417
6417
  }
@@ -6660,10 +6660,10 @@ const yg = (e) => {
6660
6660
  switch: Ce,
6661
6661
  transfer: ke,
6662
6662
  avatar: rt,
6663
- message: _e,
6664
- tag: Ae,
6665
- table: $e,
6666
- card: Oe,
6663
+ message: we,
6664
+ tag: Pe,
6665
+ table: _e,
6666
+ card: $e,
6667
6667
  tabs: ae,
6668
6668
  timeline: ne,
6669
6669
  timePicker: Se,
@@ -6749,10 +6749,10 @@ const yg = (e) => {
6749
6749
  switch: Ce,
6750
6750
  transfer: ke,
6751
6751
  avatar: rt,
6752
- message: _e,
6753
- tag: Ae,
6754
- table: $e,
6755
- card: Oe,
6752
+ message: we,
6753
+ tag: Pe,
6754
+ table: _e,
6755
+ card: $e,
6756
6756
  tabs: ae,
6757
6757
  timeline: ne,
6758
6758
  timePicker: Se,
@@ -6871,7 +6871,7 @@ const Sg = (e) => {
6871
6871
  isFirstItem: i,
6872
6872
  isLastItem: a
6873
6873
  } = r, s = o === "vertical" ? "-vertical-" : "-";
6874
- return Re(`${e}-compact${s}item`, {
6874
+ return Me(`${e}-compact${s}item`, {
6875
6875
  [`${e}-compact${s}first-item`]: i,
6876
6876
  [`${e}-compact${s}last-item`]: a,
6877
6877
  [`${e}-compact${s}item-rtl`]: t === "rtl"
@@ -6920,7 +6920,7 @@ function $g(e) {
6920
6920
  });
6921
6921
  }
6922
6922
  function Og(e, t) {
6923
- we(e, "[@ant-design/icons] ".concat(t));
6923
+ Ee(e, "[@ant-design/icons] ".concat(t));
6924
6924
  }
6925
6925
  function ki(e) {
6926
6926
  return Z(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (Z(e.icon) === "object" || typeof e.icon == "function");
@@ -7075,7 +7075,7 @@ function Ag() {
7075
7075
  var Ig = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
7076
7076
  Is(Xr.primary);
7077
7077
  var an = /* @__PURE__ */ F.forwardRef(function(e, t) {
7078
- var r = e.className, n = e.icon, o = e.spin, i = e.rotate, a = e.tabIndex, s = e.onClick, l = e.twoToneColor, c = pt(e, Ig), u = F.useContext(Oo), d = u.prefixCls, g = d === void 0 ? "anticon" : d, m = u.rootClassName, v = Re(m, g, x(x({}, "".concat(g, "-").concat(n.name), !!n.name), "".concat(g, "-spin"), !!o || n.name === "loading"), r), h = a;
7078
+ var r = e.className, n = e.icon, o = e.spin, i = e.rotate, a = e.tabIndex, s = e.onClick, l = e.twoToneColor, c = pt(e, Ig), u = F.useContext(Oo), d = u.prefixCls, g = d === void 0 ? "anticon" : d, m = u.rootClassName, v = Me(m, g, x(x({}, "".concat(g, "-").concat(n.name), !!n.name), "".concat(g, "-spin"), !!o || n.name === "loading"), r), h = a;
7079
7079
  h === void 0 && s && (h = -1);
7080
7080
  var f = i ? {
7081
7081
  msTransform: "rotate(".concat(i, "deg)"),
@@ -7113,7 +7113,7 @@ const jg = (e) => {
7113
7113
  }), t;
7114
7114
  };
7115
7115
  function Bi(e, t, r) {
7116
- return Re({
7116
+ return Me({
7117
7117
  [`${e}-status-success`]: t === "success",
7118
7118
  [`${e}-status-warning`]: t === "warning",
7119
7119
  [`${e}-status-error`]: t === "error",
@@ -7331,7 +7331,7 @@ const Vs = (e) => {
7331
7331
  [`${e.componentCls}-group`]: {
7332
7332
  "&-addon": {
7333
7333
  background: e.addonBg,
7334
- border: `${Te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
7334
+ border: `${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
7335
7335
  },
7336
7336
  "&-addon:first-child": {
7337
7337
  borderInlineEnd: 0
@@ -7460,21 +7460,21 @@ const Vs = (e) => {
7460
7460
  color: e.colorTextDisabled
7461
7461
  },
7462
7462
  "&-addon:first-child": {
7463
- borderInlineStart: `${Te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
7464
- borderTop: `${Te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
7465
- borderBottom: `${Te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
7463
+ borderInlineStart: `${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
7464
+ borderTop: `${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
7465
+ borderBottom: `${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
7466
7466
  },
7467
7467
  "&-addon:last-child": {
7468
- borderInlineEnd: `${Te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
7469
- borderTop: `${Te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
7470
- borderBottom: `${Te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
7468
+ borderInlineEnd: `${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
7469
+ borderTop: `${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
7470
+ borderBottom: `${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
7471
7471
  }
7472
7472
  }
7473
7473
  }
7474
7474
  })
7475
7475
  }), ks = (e, t) => ({
7476
7476
  background: e.colorBgContainer,
7477
- borderWidth: `${Te(e.lineWidth)} 0`,
7477
+ borderWidth: `${Oe(e.lineWidth)} 0`,
7478
7478
  borderStyle: `${e.lineType} none`,
7479
7479
  borderColor: `transparent transparent ${t.borderColor} transparent`,
7480
7480
  borderRadius: 0,
@@ -7551,13 +7551,13 @@ const Vs = (e) => {
7551
7551
  paddingInlineLG: o
7552
7552
  } = e;
7553
7553
  return {
7554
- padding: `${Te(t)} ${Te(o)}`,
7554
+ padding: `${Oe(t)} ${Oe(o)}`,
7555
7555
  fontSize: e.inputFontSizeLG,
7556
7556
  lineHeight: r,
7557
7557
  borderRadius: n
7558
7558
  };
7559
7559
  }, Bs = (e) => ({
7560
- padding: `${Te(e.paddingBlockSM)} ${Te(e.paddingInlineSM)}`,
7560
+ padding: `${Oe(e.paddingBlockSM)} ${Oe(e.paddingInlineSM)}`,
7561
7561
  fontSize: e.inputFontSizeSM,
7562
7562
  borderRadius: e.borderRadiusSM
7563
7563
  }), zs = (e) => Object.assign(Object.assign({
@@ -7565,7 +7565,7 @@ const Vs = (e) => {
7565
7565
  display: "inline-block",
7566
7566
  width: "100%",
7567
7567
  minWidth: 0,
7568
- padding: `${Te(e.paddingBlock)} ${Te(e.paddingInline)}`,
7568
+ padding: `${Oe(e.paddingBlock)} ${Oe(e.paddingInline)}`,
7569
7569
  color: e.colorText,
7570
7570
  fontSize: e.inputFontSize,
7571
7571
  lineHeight: e.lineHeight,
@@ -7628,7 +7628,7 @@ const Vs = (e) => {
7628
7628
  },
7629
7629
  "&-addon": {
7630
7630
  position: "relative",
7631
- padding: `0 ${Te(e.paddingInline)}`,
7631
+ padding: `0 ${Oe(e.paddingInline)}`,
7632
7632
  color: e.colorText,
7633
7633
  fontWeight: "normal",
7634
7634
  fontSize: e.inputFontSize,
@@ -7638,18 +7638,18 @@ const Vs = (e) => {
7638
7638
  lineHeight: 1,
7639
7639
  // Reset Select's style in addon
7640
7640
  [`${r}-select`]: {
7641
- margin: `${Te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Te(e.calc(e.paddingInline).mul(-1).equal())}`,
7641
+ margin: `${Oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Oe(e.calc(e.paddingInline).mul(-1).equal())}`,
7642
7642
  [`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]: {
7643
7643
  [`${r}-select-selector`]: {
7644
7644
  backgroundColor: "inherit",
7645
- border: `${Te(e.lineWidth)} ${e.lineType} transparent`,
7645
+ border: `${Oe(e.lineWidth)} ${e.lineType} transparent`,
7646
7646
  boxShadow: "none"
7647
7647
  }
7648
7648
  }
7649
7649
  },
7650
7650
  // https://github.com/ant-design/ant-design/issues/31333
7651
7651
  [`${r}-cascader-picker`]: {
7652
- margin: `-9px ${Te(e.calc(e.paddingInline).mul(-1).equal())}`,
7652
+ margin: `-9px ${Oe(e.calc(e.paddingInline).mul(-1).equal())}`,
7653
7653
  backgroundColor: "transparent",
7654
7654
  [`${r}-cascader-input`]: {
7655
7655
  textAlign: "start",
@@ -7866,7 +7866,7 @@ const Vs = (e) => {
7866
7866
  visibility: "hidden"
7867
7867
  },
7868
7868
  "&-has-suffix": {
7869
- margin: `0 ${Te(e.inputAffixPadding)}`
7869
+ margin: `0 ${Oe(e.inputAffixPadding)}`
7870
7870
  }
7871
7871
  }
7872
7872
  };
@@ -8198,10 +8198,10 @@ const Ws = /* @__PURE__ */ Xi((e, t) => {
8198
8198
  } = e, O = ch(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
8199
8199
  if (process.env.NODE_ENV !== "production") {
8200
8200
  const {
8201
- deprecated: _e
8201
+ deprecated: we
8202
8202
  } = Kt("Input");
8203
- [["bordered", "variant"], ["addonAfter", "Space.Compact"], ["addonBefore", "Space.Compact"]].forEach(([Ae, $e]) => {
8204
- _e(!(Ae in e), Ae, $e);
8203
+ [["bordered", "variant"], ["addonAfter", "Space.Compact"], ["addonBefore", "Space.Compact"]].forEach(([Pe, _e]) => {
8204
+ we(!(Pe in e), Pe, _e);
8205
8205
  });
8206
8206
  }
8207
8207
  const {
@@ -8216,27 +8216,27 @@ const Ws = /* @__PURE__ */ Xi((e, t) => {
8216
8216
  } = uf("input"), $ = C("input", r), E = ge(null), T = Lg($), [w, M, j] = ih($, f), [k] = ah($, T), {
8217
8217
  compactSize: L,
8218
8218
  compactItemClassnames: H
8219
- } = Cg($, _), B = Sg((_e) => {
8220
- var Ae;
8221
- return (Ae = i ?? L) !== null && Ae !== void 0 ? Ae : _e;
8219
+ } = Cg($, _), B = Sg((we) => {
8220
+ var Pe;
8221
+ return (Pe = i ?? L) !== null && Pe !== void 0 ? Pe : we;
8222
8222
  }), W = re.useContext(Yr), U = a ?? W, {
8223
8223
  status: te,
8224
8224
  hasFeedback: ie,
8225
8225
  feedbackIcon: le
8226
8226
  } = vt(Gr), fe = Vg(te, o), ue = sh(e) || !!ie, se = ge(ue);
8227
8227
  if (process.env.NODE_ENV !== "production") {
8228
- const _e = Kt("Input");
8228
+ const we = Kt("Input");
8229
8229
  de(() => {
8230
- var Ae;
8231
- ue && !se.current && process.env.NODE_ENV !== "production" && _e(document.activeElement === ((Ae = E.current) === null || Ae === void 0 ? void 0 : Ae.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), se.current = ue;
8230
+ var Pe;
8231
+ ue && !se.current && process.env.NODE_ENV !== "production" && we(document.activeElement === ((Pe = E.current) === null || Pe === void 0 ? void 0 : Pe.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), se.current = ue;
8232
8232
  }, [ue]);
8233
8233
  }
8234
- const pe = kg(E), be = (_e) => {
8235
- pe(), s?.(_e);
8236
- }, Fe = (_e) => {
8237
- pe(), l?.(_e);
8238
- }, z = (_e) => {
8239
- pe(), y?.(_e);
8234
+ const pe = kg(E), be = (we) => {
8235
+ pe(), s?.(we);
8236
+ }, Fe = (we) => {
8237
+ pe(), l?.(we);
8238
+ }, z = (we) => {
8239
+ pe(), y?.(we);
8240
8240
  }, je = (ie || c) && /* @__PURE__ */ re.createElement(re.Fragment, null, c, ie && le), Ce = jg(u ?? b), [ke, rt] = Dg("input", S, n);
8241
8241
  return w(k(/* @__PURE__ */ re.createElement(bl, Object.assign({
8242
8242
  ref: Ol(t, E),
@@ -8250,7 +8250,7 @@ const Ws = /* @__PURE__ */ Xi((e, t) => {
8250
8250
  styles: Object.assign(Object.assign({}, D), h),
8251
8251
  suffix: je,
8252
8252
  allowClear: Ce,
8253
- className: Re(m, f, j, T, H, A),
8253
+ className: Me(m, f, j, T, H, A),
8254
8254
  onChange: z,
8255
8255
  addonBefore: g && /* @__PURE__ */ re.createElement(Di, {
8256
8256
  form: !0,
@@ -8261,23 +8261,23 @@ const Ws = /* @__PURE__ */ Xi((e, t) => {
8261
8261
  space: !0
8262
8262
  }, d),
8263
8263
  classNames: Object.assign(Object.assign(Object.assign({}, p), I), {
8264
- input: Re({
8264
+ input: Me({
8265
8265
  [`${$}-sm`]: B === "small",
8266
8266
  [`${$}-lg`]: B === "large",
8267
8267
  [`${$}-rtl`]: _ === "rtl"
8268
8268
  }, p?.input, I.input, M),
8269
- variant: Re({
8269
+ variant: Me({
8270
8270
  [`${$}-${ke}`]: rt
8271
8271
  }, Bi($, fe)),
8272
- affixWrapper: Re({
8272
+ affixWrapper: Me({
8273
8273
  [`${$}-affix-wrapper-sm`]: B === "small",
8274
8274
  [`${$}-affix-wrapper-lg`]: B === "large",
8275
8275
  [`${$}-affix-wrapper-rtl`]: _ === "rtl"
8276
8276
  }, M),
8277
- wrapper: Re({
8277
+ wrapper: Me({
8278
8278
  [`${$}-group-rtl`]: _ === "rtl"
8279
8279
  }, M),
8280
- groupWrapper: Re({
8280
+ groupWrapper: Me({
8281
8281
  [`${$}-group-wrapper-sm`]: B === "small",
8282
8282
  [`${$}-group-wrapper-lg`]: B === "large",
8283
8283
  [`${$}-group-wrapper-rtl`]: _ === "rtl",
@@ -8589,7 +8589,7 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8589
8589
  message: "",
8590
8590
  description: "",
8591
8591
  type: "info"
8592
- }), [ke, rt] = J(!1), _e = Xe(() => {
8592
+ }), [ke, rt] = J(!1), we = Xe(() => {
8593
8593
  if (console.log("connect start"), !m || !h || !c || !d || !y) {
8594
8594
  console.log("connect false");
8595
8595
  return;
@@ -8626,7 +8626,7 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8626
8626
  if (console.log("init", ke), ke && a && c && h && d) {
8627
8627
  console.log("Attempting to connect with:", { HTTP_HOST: c, BFF_PORT: h, userdata: a });
8628
8628
  const q = setTimeout(() => {
8629
- _e();
8629
+ we(), Pe(null).then();
8630
8630
  }, 0);
8631
8631
  return () => {
8632
8632
  clearTimeout(q), console.log("Cleaning up socket connection"), t.current?.disconnect();
@@ -8638,7 +8638,7 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8638
8638
  hasBFF_PORT: !!h,
8639
8639
  hasCSRF_TOKEN: !!d
8640
8640
  });
8641
- }, [a, c, h, d, _e]), de(() => {
8641
+ }, [a, c, h, d, we]), de(() => {
8642
8642
  console.log("BEFORE UPDATE CHATS chatsRef", L), B.current = L;
8643
8643
  }, [L]), de(() => {
8644
8644
  k.current = M;
@@ -8653,7 +8653,7 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8653
8653
  }, [c]), de(() => {
8654
8654
  a && (console.log("userdataRef"), l.current = a);
8655
8655
  }, [a]);
8656
- const Ae = Xe(async (q = null) => {
8656
+ const Pe = Xe(async (q = null) => {
8657
8657
  if (console.log("fetchChatsList"), fe(!0), m)
8658
8658
  try {
8659
8659
  if (!y || !S || !d) {
@@ -8678,7 +8678,7 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8678
8678
  } finally {
8679
8679
  fe(!1);
8680
8680
  }
8681
- }, [le, d, y, S]), $e = Xe(async (q, Y = null) => {
8681
+ }, [le, d, y, S]), _e = Xe(async (q, Y = null) => {
8682
8682
  if (console.log("fetchChatMessages"), !ue && (se(!0), m))
8683
8683
  try {
8684
8684
  if (!y || !C || !d) return;
@@ -8706,7 +8706,7 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8706
8706
  } finally {
8707
8707
  se(!1);
8708
8708
  }
8709
- }, [ue, d, y, C]), Oe = Xe(async ({ to: q, text: Y, files: ee, answer: me, timestamp: Q, from_id: xe }) => {
8709
+ }, [ue, d, y, C]), $e = Xe(async ({ to: q, text: Y, files: ee, answer: me, timestamp: Q, from_id: xe }) => {
8710
8710
  console.log("sendSms"), ne({ to: q, text: Y, answer: me, timestamp: Q, from_id: xe }), be(!0);
8711
8711
  try {
8712
8712
  if (!y || !b || !d) return;
@@ -8865,9 +8865,9 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8865
8865
  loadingChat: ue,
8866
8866
  loadingSendSms: pe,
8867
8867
  /* methods */
8868
- fetchChatsList: Ae,
8869
- fetchChatMessages: $e,
8870
- sendSms: Oe,
8868
+ fetchChatsList: Pe,
8869
+ fetchChatMessages: _e,
8870
+ sendSms: $e,
8871
8871
  markMessagesAsRead: ae,
8872
8872
  userdata: a,
8873
8873
  HTTP_HOST: c,
@@ -8941,7 +8941,7 @@ function hh({ search: e, onSelectChat: t, selectedChatId: r }) {
8941
8941
  }, [o, e, a, s, l]);
8942
8942
  return /* @__PURE__ */ N("div", { className: G["chat-list__container"], children: /* @__PURE__ */ N("ul", { className: G["chat-list"], children: u.map((d, g) => {
8943
8943
  const m = s(d), v = l(d, m, d.chat_id === a), h = d.chat_id === r, f = d.text;
8944
- return /* @__PURE__ */ N("div", { children: /* @__PURE__ */ Ee(
8944
+ return /* @__PURE__ */ N("div", { children: /* @__PURE__ */ Te(
8945
8945
  "li",
8946
8946
  {
8947
8947
  className: `${G.chatItem} ${h ? G.activeChatItem : ""}`,
@@ -8949,7 +8949,7 @@ function hh({ search: e, onSelectChat: t, selectedChatId: r }) {
8949
8949
  t(d.chat_id ?? null);
8950
8950
  },
8951
8951
  children: [
8952
- /* @__PURE__ */ Ee("div", { children: [
8952
+ /* @__PURE__ */ Te("div", { children: [
8953
8953
  /* @__PURE__ */ N("div", { className: G.companionName, children: v || "Неизвестный" }),
8954
8954
  /* @__PURE__ */ N("div", { className: G["last-message"], children: c(f, 50) })
8955
8955
  ] }),
@@ -8971,15 +8971,15 @@ function vh({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
8971
8971
  bottomRight: "bottomLeft",
8972
8972
  bottomLeft: "topLeft"
8973
8973
  }[r]);
8974
- }, i = /* @__PURE__ */ Ee("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
8974
+ }, i = /* @__PURE__ */ Te("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
8975
8975
  /* @__PURE__ */ N(Ze, { type: "text", icon: /* @__PURE__ */ N(vc, {}), children: "Уведомления" }),
8976
8976
  /* @__PURE__ */ N(Ze, { type: "text", icon: /* @__PURE__ */ N(pc, {}), children: "Автозагрузка файлов" }),
8977
8977
  /* @__PURE__ */ N(Ze, { type: "text", icon: /* @__PURE__ */ N(mc, {}), children: "Приватность чата" }),
8978
8978
  /* @__PURE__ */ N(Ze, { type: "text", icon: /* @__PURE__ */ N(yc, {}), children: "Скрыть из списка" })
8979
8979
  ] });
8980
- return /* @__PURE__ */ Ee("div", { hidden: !0, children: [
8980
+ return /* @__PURE__ */ Te("div", { hidden: !0, children: [
8981
8981
  /* @__PURE__ */ N("button", { children: "Send" }),
8982
- /* @__PURE__ */ N("footer", { hidden: !0, className: G["chat-footer"], children: /* @__PURE__ */ Ee(Yi.Compact, { children: [
8982
+ /* @__PURE__ */ N("footer", { hidden: !0, className: G["chat-footer"], children: /* @__PURE__ */ Te(Yi.Compact, { children: [
8983
8983
  /* @__PURE__ */ N(
8984
8984
  ar,
8985
8985
  {
@@ -9005,7 +9005,7 @@ function vh({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
9005
9005
  const { Content: ph } = zt;
9006
9006
  function mh({ onSelectChat: e, selectedChatId: t }) {
9007
9007
  const [r, n] = J(!1), [o, i] = J("topLeft"), [a, s] = J("");
9008
- return /* @__PURE__ */ Ee(zt, { className: G["sidebar-layout"], children: [
9008
+ return /* @__PURE__ */ Te(zt, { className: G["sidebar-layout"], children: [
9009
9009
  /* @__PURE__ */ N(
9010
9010
  lh,
9011
9011
  {
@@ -9055,7 +9055,7 @@ function yh({ onSend: e }) {
9055
9055
  const v = i.indexOf(m), h = i.slice();
9056
9056
  h.splice(v, 1), a(h);
9057
9057
  }, g = Xe(() => !1, []);
9058
- return /* @__PURE__ */ Ee("div", { className: G.chat_inputs, children: [
9058
+ return /* @__PURE__ */ Te("div", { className: G.chat_inputs, children: [
9059
9059
  /* @__PURE__ */ N(
9060
9060
  ar,
9061
9061
  {
@@ -9119,7 +9119,7 @@ function yh({ onSend: e }) {
9119
9119
  )
9120
9120
  ] });
9121
9121
  }
9122
- const bh = ({ children: e }) => /* @__PURE__ */ Ee(lc, { orientation: "center", plain: !0, style: { color: "#888" }, children: [
9122
+ const bh = ({ children: e }) => /* @__PURE__ */ Te(lc, { orientation: "center", plain: !0, style: { color: "#888" }, children: [
9123
9123
  /* @__PURE__ */ N(Ec, { style: { marginRight: 8 } }),
9124
9124
  e
9125
9125
  ] });
@@ -9181,15 +9181,15 @@ function Sh({ message: e }) {
9181
9181
  return /* @__PURE__ */ N(Qi, { style: { fontSize: "25px", color: "#555555" } });
9182
9182
  }
9183
9183
  };
9184
- return /* @__PURE__ */ N("div", { className: s, "data-id": e.id, "data-message-id": e.id, children: /* @__PURE__ */ Ee("div", { className: l, children: [
9184
+ return /* @__PURE__ */ N("div", { className: s, "data-id": e.id, "data-message-id": e.id, children: /* @__PURE__ */ Te("div", { className: l, children: [
9185
9185
  /* @__PURE__ */ N("span", { children: t }),
9186
- /* @__PURE__ */ N("div", { className: G.files_container, children: r && r.length > 0 && r.map((u, d) => /* @__PURE__ */ Ee("a", { href: `${a}/${u.route}`, target: "_blank", className: G.file, children: [
9186
+ /* @__PURE__ */ N("div", { className: G.files_container, children: r && r.length > 0 && r.map((u, d) => /* @__PURE__ */ Te("a", { href: `${a}/${u.route}`, target: "_blank", className: G.file, children: [
9187
9187
  /* @__PURE__ */ N("div", { className: `${G.file_circle} ${G.self}`, children: c(u.extension) }),
9188
9188
  /* @__PURE__ */ N("p", { className: G.href_label, children: u?.name })
9189
9189
  ] }, `file-${u.id}-${d}`)) }),
9190
- /* @__PURE__ */ Ee("div", { className: G.time, style: { display: "flex", justifyContent: "flex-end", height: "18px" }, children: [
9190
+ /* @__PURE__ */ Te("div", { className: G.time, style: { display: "flex", justifyContent: "flex-end", height: "18px" }, children: [
9191
9191
  /* @__PURE__ */ N("div", { children: Rt(+n * 1e3).format("HH:mm") }),
9192
- !o && /* @__PURE__ */ Ee(
9192
+ !o && /* @__PURE__ */ Te(
9193
9193
  "span",
9194
9194
  {
9195
9195
  style: { width: "18px", height: "18px", position: "relative" },
@@ -9269,10 +9269,10 @@ function Ch({ message: e }) {
9269
9269
  return /* @__PURE__ */ N(Qi, { style: { fontSize: "25px", color: "#555555" } });
9270
9270
  }
9271
9271
  };
9272
- return /* @__PURE__ */ N("div", { className: `message ${G.message} ${G.otherMessage}`, "data-message-id": e.id, "data-id": e.id, children: /* @__PURE__ */ Ee("div", { className: `${G.bubble} ${G.otherMessageBubble}`, children: [
9272
+ return /* @__PURE__ */ N("div", { className: `message ${G.message} ${G.otherMessage}`, "data-message-id": e.id, "data-id": e.id, children: /* @__PURE__ */ Te("div", { className: `${G.bubble} ${G.otherMessageBubble}`, children: [
9273
9273
  /* @__PURE__ */ N("div", { className: G.senderName, children: o }),
9274
9274
  /* @__PURE__ */ N("span", { children: t }),
9275
- /* @__PURE__ */ N("div", { className: G.files_container, children: r && r.length > 0 && r.map((s, l) => /* @__PURE__ */ Ee("a", { href: `${i}/${s.route}`, target: "_blank", className: G.file, children: [
9275
+ /* @__PURE__ */ N("div", { className: G.files_container, children: r && r.length > 0 && r.map((s, l) => /* @__PURE__ */ Te("a", { href: `${i}/${s.route}`, target: "_blank", className: G.file, children: [
9276
9276
  /* @__PURE__ */ N("div", { className: `${G.file_circle}`, children: a(s.extension) }),
9277
9277
  /* @__PURE__ */ N("p", { className: G.href_label, children: s?.name })
9278
9278
  ] }, `file-${s.id}-${l}`)) }),
@@ -9512,13 +9512,13 @@ function _h({ chatId: e }) {
9512
9512
  from_id: i
9513
9513
  });
9514
9514
  };
9515
- return /* @__PURE__ */ Ee(zt, { className: G.chatcontentLayout, children: [
9516
- /* @__PURE__ */ Ee(s, { className: G.chat_content, children: [
9517
- /* @__PURE__ */ Ee("div", { className: G.chat_header, children: [
9515
+ return /* @__PURE__ */ Te(zt, { className: G.chatcontentLayout, children: [
9516
+ /* @__PURE__ */ Te(s, { className: G.chat_content, children: [
9517
+ /* @__PURE__ */ Te("div", { className: G.chat_header, children: [
9518
9518
  /* @__PURE__ */ N("span", { children: I ? c.who ? c.who : "Неизвестный собеседник" : "Загрузка..." }),
9519
9519
  _ ? /* @__PURE__ */ N(wc, {}) : /* @__PURE__ */ N("span", { children: e })
9520
9520
  ] }),
9521
- /* @__PURE__ */ Ee("div", { className: G.chat_body, ref: t, children: [
9521
+ /* @__PURE__ */ Te("div", { className: G.chat_body, ref: t, children: [
9522
9522
  S && S.length > 0 ? S.map(
9523
9523
  ($) => $.type === "divider" && !$?.message ? /* @__PURE__ */ N(o, { children: $.timestamp ? Rt(+$.timestamp * 1e3).format("DD.MM.YY").toString() : "" }, $.id) : $?.message?.fromId && i && +$?.message?.fromId == +i ? /* @__PURE__ */ N(
9524
9524
  r,
@@ -9565,7 +9565,7 @@ function _h({ chatId: e }) {
9565
9565
  const { Sider: $h, Content: Oh } = zt;
9566
9566
  function Th() {
9567
9567
  const [e, t] = J(null);
9568
- return /* @__PURE__ */ Ee(zt, { className: G["chat-layout"], children: [
9568
+ return /* @__PURE__ */ Te(zt, { className: G["chat-layout"], children: [
9569
9569
  /* @__PURE__ */ N($h, { width: 220, className: G["chat-sidebar"], children: /* @__PURE__ */ N(mh, { onSelectChat: t, selectedChatId: e }) }),
9570
9570
  /* @__PURE__ */ N(Oh, { className: G["chat-content"], children: e ? /* @__PURE__ */ N(_h, { chatId: e }) : /* @__PURE__ */ N(
9571
9571
  Wr,
@@ -9691,9 +9691,9 @@ const Fh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9691
9691
  if (console.log(i), !Array.isArray(i) || i.length === 0)
9692
9692
  return { hasSms: !1, messages: [] };
9693
9693
  const f = i.filter((y) => {
9694
- const p = y.from?.id || y.from_id, S = y.to?.id || y.to_id;
9694
+ const p = y?.from?.id || y?.from_id, S = y?.to?.id || y?.to_id;
9695
9695
  return p === l || S === l;
9696
- }).filter((y) => y.count_unread > 0).map((y) => ({
9696
+ }).filter((y) => y?.count_unread > 0).map((y) => ({
9697
9697
  id: y.chat_id || y.id,
9698
9698
  name: "Неизвестный",
9699
9699
  surname: "",
@@ -9711,19 +9711,16 @@ const Fh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9711
9711
  const { messages: f } = u;
9712
9712
  return f.map((y, p) => ({
9713
9713
  key: `message-${p}-${y.id}`,
9714
- label: /* @__PURE__ */ Ee("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: "10px" }, children: [
9714
+ label: /* @__PURE__ */ Te("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: "10px" }, children: [
9715
9715
  /* @__PURE__ */ N("div", { children: y.name }),
9716
9716
  /* @__PURE__ */ N("div", { children: y.countUnread })
9717
9717
  ] })
9718
9718
  }));
9719
- }, [u]), g = () => r(!0), m = () => r(!1), v = () => r(!1), h = /* @__PURE__ */ Ee(Ze, { style: { background: "transparent" }, type: "primary", onClick: g, children: [
9719
+ }, [u]), g = () => r(!0), m = () => r(!1), v = () => r(!1), h = /* @__PURE__ */ Te(Ze, { style: { background: "transparent" }, type: "primary", onClick: g, children: [
9720
9720
  /* @__PURE__ */ N(Oc, {}),
9721
- o > 0 && /* @__PURE__ */ Ee("span", { className: G["notification-badge"], children: [
9722
- o,
9723
- ","
9724
- ] })
9721
+ o > 0 && /* @__PURE__ */ N("span", { className: G["notification-badge"], children: o })
9725
9722
  ] });
9726
- return /* @__PURE__ */ Ee(Yi, { style: { padding: 0 }, children: [
9723
+ return /* @__PURE__ */ Te(Yi, { style: { padding: 0 }, children: [
9727
9724
  d.length > 0 ? /* @__PURE__ */ N(fc, { menu: { items: d }, trigger: ["hover"], children: /* @__PURE__ */ N("div", { children: h }) }) : /* @__PURE__ */ N("div", { children: h }),
9728
9725
  /* @__PURE__ */ N(
9729
9726
  Fh,
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.1.8",
4
+ "version": "1.2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",