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

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 +119 -122
  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";
@@ -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
+ }, Ae = pe && "".concat(u, "-out-of-range"), _e = function() {
481
481
  var ne = vl(e, [
482
482
  "prefixCls",
483
483
  "onPressEnter",
@@ -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({
@@ -533,17 +533,17 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
533
533
  return /* @__PURE__ */ re.createElement(ll, lt({}, A, {
534
534
  prefixCls: u,
535
535
  className: Re(m, Ae),
536
- handleReset: _e,
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 || " ");
@@ -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
  }
@@ -2414,7 +2414,7 @@ x(Co, "defaultProps", {
2414
2414
  });
2415
2415
  function _a(e) {
2416
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({
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
@@ -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;
@@ -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));
@@ -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,7 +3208,7 @@ 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.");
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
3212
  var y = Pe(n), p = ge(y);
3213
3213
  return p.current = y, Pu(y), de(
3214
3214
  function() {
@@ -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 {
@@ -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
  };
@@ -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,9 +6365,9 @@ 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
6372
  var Ae = k;
6373
6373
  return be[at] && Ce === Dt && (Ae = V({
@@ -6660,10 +6660,10 @@ const yg = (e) => {
6660
6660
  switch: Ce,
6661
6661
  transfer: ke,
6662
6662
  avatar: rt,
6663
- message: _e,
6663
+ message: we,
6664
6664
  tag: Ae,
6665
- table: $e,
6666
- card: Oe,
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,
6752
+ message: we,
6753
6753
  tag: Ae,
6754
- table: $e,
6755
- card: Oe,
6754
+ table: _e,
6755
+ card: $e,
6756
6756
  tabs: ae,
6757
6757
  timeline: ne,
6758
6758
  timePicker: Se,
@@ -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");
@@ -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(([Ae, _e]) => {
8204
+ we(!(Ae in e), Ae, _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) => {
8219
+ } = Cg($, _), B = Sg((we) => {
8220
8220
  var Ae;
8221
- return (Ae = i ?? L) !== null && Ae !== void 0 ? Ae : _e;
8221
+ return (Ae = i ?? L) !== null && Ae !== void 0 ? Ae : 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
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;
8231
+ ue && !se.current && process.env.NODE_ENV !== "production" && we(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;
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),
@@ -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();
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;
@@ -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;
@@ -8866,8 +8866,8 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8866
8866
  loadingSendSms: pe,
8867
8867
  /* methods */
8868
8868
  fetchChatsList: Ae,
8869
- fetchChatMessages: $e,
8870
- sendSms: Oe,
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.1.9",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",