corp-chat-library-antd-react-socket 1.1.7 → 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 +182 -184
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
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
- import re, { useRef as ge, cloneElement as tc, forwardRef as Xi, useState as J, useImperativeHandle as rc, useEffect as fe, version as nc, isValidElement as oc, useMemo as Tt, useContext as vt, createContext as Jr, useLayoutEffect as ic, useCallback as Xe } from "react";
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";
5
5
  import { SearchOutlined as gc, DragOutlined as jo, SettingOutlined as hc, BellOutlined as vc, DownloadOutlined as pc, LockOutlined as mc, EyeInvisibleOutlined as yc, PaperClipOutlined as bc, UploadOutlined as Sc, SmileOutlined as Cc, SendOutlined as xc, CalendarOutlined as Ec, CheckOutlined as Vo, FileFilled as Qi, FileTextFilled as Ji, FileZipFilled as Zi, FileMarkdownFilled as ea, FilePptFilled as ta, FileExcelFilled as ra, FileWordFilled as na, FilePdfFilled as oa, FileImageFilled as ia, LoadingOutlined as wc, ArrowDownOutlined as _c, CloseOutlined as $c, MessageOutlined as Oc } from "@ant-design/icons";
6
6
  import Tc from "react-draggable";
@@ -223,7 +223,7 @@ var ll = /* @__PURE__ */ re.forwardRef(function(e, t) {
223
223
  className: Re(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), de = (c || p) && /* @__PURE__ */ re.createElement("span", {
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
227
  className: Re("".concat(s, "-suffix"), b?.suffix),
228
228
  style: A?.suffix
229
229
  }, B, c);
@@ -236,7 +236,7 @@ var ll = /* @__PURE__ */ re.forwardRef(function(e, t) {
236
236
  }), l && /* @__PURE__ */ re.createElement("span", {
237
237
  className: Re("".concat(s, "-prefix"), b?.prefix),
238
238
  style: A?.prefix
239
- }, l), L, de);
239
+ }, l), L, fe);
240
240
  }
241
241
  if (al(e)) {
242
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);
@@ -415,7 +415,7 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
415
415
  w.current && cl(w.current, ne);
416
416
  }, k = hl(e.defaultValue, {
417
417
  value: e.value
418
- }), L = K(k, 2), H = L[0], B = L[1], W = H == null ? "" : String(H), U = J(null), te = K(U, 2), ie = te[0], le = te[1], de = ml(y, f), ue = de.max || v, se = de.strategy(W), pe = !!ue && se > ue;
418
+ }), L = K(k, 2), H = L[0], B = L[1], W = H == null ? "" : String(H), U = J(null), te = K(U, 2), ie = te[0], le = te[1], fe = ml(y, f), ue = fe.max || v, se = fe.strategy(W), pe = !!ue && se > ue;
419
419
  rc(t, function() {
420
420
  var ae;
421
421
  return {
@@ -435,16 +435,16 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
435
435
  input: w.current,
436
436
  nativeElement: ((ae = M.current) === null || ae === void 0 ? void 0 : ae.nativeElement) || w.current
437
437
  };
438
- }), fe(function() {
438
+ }), de(function() {
439
439
  T.current && (T.current = !1), $(function(ae) {
440
440
  return ae && d ? !1 : ae;
441
441
  });
442
442
  }, [d]);
443
443
  var be = function(ne, Se, ut) {
444
444
  var nt = Se;
445
- if (!E.current && de.exceedFormatter && de.max && de.strategy(Se) > de.max) {
446
- if (nt = de.exceedFormatter(Se, {
447
- max: de.max
445
+ if (!E.current && fe.exceedFormatter && fe.max && fe.strategy(Se) > fe.max) {
446
+ if (nt = fe.exceedFormatter(Se, {
447
+ max: fe.max
448
448
  }), Se !== nt) {
449
449
  var ot, St;
450
450
  le([((ot = w.current) === null || ot === void 0 ? void 0 : ot.selectionStart) || 0, ((St = w.current) === null || St === void 0 ? void 0 : St.selectionEnd) || 0]);
@@ -453,7 +453,7 @@ var yl = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
453
453
  return;
454
454
  B(nt), w.current && Bo(w.current, ne, n, nt);
455
455
  };
456
- fe(function() {
456
+ de(function() {
457
457
  if (ie) {
458
458
  var ae;
459
459
  (ae = w.current) === null || ae === void 0 || ae.setSelectionRange.apply(ae, X(ie));
@@ -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,15 +515,15 @@ 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
- if (h || de.show) {
521
- var Se = de.showFormatter ? de.showFormatter({
520
+ if (h || fe.show) {
521
+ var Se = fe.showFormatter ? fe.showFormatter({
522
522
  value: W,
523
523
  count: se,
524
524
  maxLength: ue
525
525
  }) : "".concat(se).concat(ne ? " / ".concat(ue) : "");
526
- return /* @__PURE__ */ re.createElement(re.Fragment, null, de.show && /* @__PURE__ */ re.createElement("span", {
526
+ return /* @__PURE__ */ re.createElement(re.Fragment, null, fe.show && /* @__PURE__ */ re.createElement("span", {
527
527
  className: Re("".concat(u, "-show-count-suffix"), x({}, "".concat(u, "-show-count-has-suffix"), !!h), C?.count),
528
528
  style: V({}, _?.count)
529
529
  }, Se), h);
@@ -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() {
@@ -683,7 +683,7 @@ function Cl() {
683
683
  function le(z) {
684
684
  return C(z) === g;
685
685
  }
686
- function de(z) {
686
+ function fe(z) {
687
687
  return C(z) === d;
688
688
  }
689
689
  function ue(z) {
@@ -701,7 +701,7 @@ function Cl() {
701
701
  function Fe(z) {
702
702
  return C(z) === u;
703
703
  }
704
- ve.ContextConsumer = _, ve.ContextProvider = b, ve.Element = P, ve.ForwardRef = A, ve.Fragment = R, ve.Lazy = I, ve.Memo = D, ve.Portal = $, ve.Profiler = E, ve.StrictMode = T, ve.Suspense = w, ve.SuspenseList = M, ve.isAsyncMode = L, ve.isConcurrentMode = H, ve.isContextConsumer = B, ve.isContextProvider = W, ve.isElement = U, ve.isForwardRef = te, ve.isFragment = ie, ve.isLazy = le, ve.isMemo = de, ve.isPortal = ue, ve.isProfiler = se, ve.isStrictMode = pe, ve.isSuspense = be, ve.isSuspenseList = Fe, ve.isValidElementType = O, ve.typeOf = C;
704
+ ve.ContextConsumer = _, ve.ContextProvider = b, ve.Element = P, ve.ForwardRef = A, ve.Fragment = R, ve.Lazy = I, ve.Memo = D, ve.Portal = $, ve.Profiler = E, ve.StrictMode = T, ve.Suspense = w, ve.SuspenseList = M, ve.isAsyncMode = L, ve.isConcurrentMode = H, ve.isContextConsumer = B, ve.isContextProvider = W, ve.isElement = U, ve.isForwardRef = te, ve.isFragment = ie, ve.isLazy = le, ve.isMemo = fe, ve.isPortal = ue, ve.isProfiler = se, ve.isStrictMode = pe, ve.isSuspense = be, ve.isSuspenseList = Fe, ve.isValidElementType = O, ve.typeOf = C;
705
705
  })()), ve;
706
706
  }
707
707
  var Go;
@@ -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,9 +3208,9 @@ 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
- return p.current = y, Pu(y), fe(
3213
+ return p.current = y, Pu(y), de(
3214
3214
  function() {
3215
3215
  if (f) {
3216
3216
  var S = h.getFieldsValue, O = h.getInternalHooks, C = O(Ot), _ = C.registerWatch, b = function(I, D) {
@@ -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
  };
@@ -5616,14 +5616,14 @@ function Tf(e) {
5616
5616
  }), function() {
5617
5617
  if (h.injectStyle === !1)
5618
5618
  return [];
5619
- var U = xf(I), te = U.token, ie = U.flush, le = Ti(p, A, v), de = ".".concat(C), ue = $i(p, A, le, {
5619
+ var U = xf(I), te = U.token, ie = U.flush, le = Ti(p, A, v), fe = ".".concat(C), ue = $i(p, A, le, {
5620
5620
  deprecatedTokens: h.deprecatedTokens
5621
5621
  });
5622
5622
  D && le && Z(le) === "object" && Object.keys(le).forEach(function(Fe) {
5623
5623
  le[Fe] = "var(".concat(Vr(Fe, _i(p, D.prefix)), ")");
5624
5624
  });
5625
5625
  var se = Zt(te, {
5626
- componentCls: de,
5626
+ componentCls: fe,
5627
5627
  prefixCls: C,
5628
5628
  iconCls: ".".concat(T),
5629
5629
  antCls: ".".concat(E),
@@ -6211,7 +6211,7 @@ const Qf = (function(e) {
6211
6211
  };
6212
6212
  }, []), [n, r];
6213
6213
  });
6214
- var xs = bt() ? ic : fe, Es = function(t) {
6214
+ var xs = bt() ? ic : de, Es = function(t) {
6215
6215
  return +setTimeout(t, 16);
6216
6216
  }, ws = function(t) {
6217
6217
  return clearTimeout(t);
@@ -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
- }), de = Qf(le), ue = K(de, 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,26 +6348,26 @@ 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
- }, [t]), fe(function() {
6358
+ }, [t]), de(function() {
6359
6359
  // Cancel appear
6360
6360
  (H === Ar && !s || // Cancel enter
6361
6361
  H === Ir && !i || // Cancel leave
6362
6362
  H === Nr && !c) && w(xt);
6363
- }, [s, i, c]), fe(function() {
6363
+ }, [s, i, c]), de(function() {
6364
6364
  return function() {
6365
6365
  B.current = !1, clearTimeout(W.current);
6366
6366
  };
6367
6367
  }, []);
6368
- var _e = F.useRef(!1);
6369
- fe(function() {
6370
- I && (_e.current = !0), I !== void 0 && H === xt && ((_e.current || I) && P?.(I), _e.current = !0);
6368
+ var we = F.useRef(!1);
6369
+ de(function() {
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({
@@ -6649,7 +6649,7 @@ const yg = (e) => {
6649
6649
  result: te,
6650
6650
  slider: ie,
6651
6651
  breadcrumb: le,
6652
- menu: de,
6652
+ menu: fe,
6653
6653
  pagination: ue,
6654
6654
  input: se,
6655
6655
  textArea: pe,
@@ -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,
@@ -6740,7 +6740,7 @@ const yg = (e) => {
6740
6740
  result: te,
6741
6741
  slider: ie,
6742
6742
  breadcrumb: le,
6743
- menu: de,
6743
+ menu: fe,
6744
6744
  pagination: ue,
6745
6745
  empty: be,
6746
6746
  badge: Fe,
@@ -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");
@@ -7015,7 +7015,7 @@ var Tg = `
7015
7015
  var r = vt(Oo), n = r.csp, o = r.prefixCls, i = r.layer, a = Tg;
7016
7016
  o && (a = a.replace(/anticon/g, o)), i && (a = "@layer ".concat(i, ` {
7017
7017
  `).concat(a, `
7018
- }`)), fe(function() {
7018
+ }`)), de(function() {
7019
7019
  var s = t.current, l = _g(s);
7020
7020
  Ft(a, "@ant-design-icons", {
7021
7021
  prepend: !i,
@@ -7142,7 +7142,7 @@ function kg(e, t) {
7142
7142
  !((o = e.current) === null || o === void 0) && o.input && ((i = e.current) === null || i === void 0 ? void 0 : i.input.getAttribute("type")) === "password" && (!((a = e.current) === null || a === void 0) && a.input.hasAttribute("value")) && ((s = e.current) === null || s === void 0 || s.input.removeAttribute("value"));
7143
7143
  }));
7144
7144
  };
7145
- return fe(() => (n(), () => r.current.forEach((o) => {
7145
+ return de(() => (n(), () => r.current.forEach((o) => {
7146
7146
  o && clearTimeout(o);
7147
7147
  })), []), n;
7148
7148
  }
@@ -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
- } = vt(Gr), de = Vg(te, o), ue = sh(e) || !!ie, se = ge(ue);
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");
8229
- fe(() => {
8228
+ const we = Kt("Input");
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),
@@ -8268,7 +8268,7 @@ const Ws = /* @__PURE__ */ Xi((e, t) => {
8268
8268
  }, p?.input, I.input, M),
8269
8269
  variant: Re({
8270
8270
  [`${$}-${ke}`]: rt
8271
- }, Bi($, de)),
8271
+ }, Bi($, fe)),
8272
8272
  affixWrapper: Re({
8273
8273
  [`${$}-affix-wrapper-sm`]: B === "small",
8274
8274
  [`${$}-affix-wrapper-lg`]: B === "large",
@@ -8282,14 +8282,14 @@ const Ws = /* @__PURE__ */ Xi((e, t) => {
8282
8282
  [`${$}-group-wrapper-lg`]: B === "large",
8283
8283
  [`${$}-group-wrapper-rtl`]: _ === "rtl",
8284
8284
  [`${$}-group-wrapper-${ke}`]: rt
8285
- }, Bi(`${$}-group-wrapper`, de, ie), M)
8285
+ }, Bi(`${$}-group-wrapper`, fe, ie), M)
8286
8286
  })
8287
8287
  }))));
8288
8288
  });
8289
8289
  process.env.NODE_ENV !== "production" && (Ws.displayName = "Input");
8290
8290
  function lh({ onSearchChange: e }) {
8291
8291
  const [t, r] = J("");
8292
- return fe(() => {
8292
+ return de(() => {
8293
8293
  const n = setTimeout(() => {
8294
8294
  e(t.trim());
8295
8295
  }, 300);
@@ -8408,8 +8408,8 @@ function dh() {
8408
8408
  case d:
8409
8409
  return k ? H(1, U) : H(0, U + 1);
8410
8410
  case u:
8411
- var le = this.$locale().weekStart || 0, de = (W < le ? W + 7 : W) - le;
8412
- return H(k ? te - de : te + (6 - de), U);
8411
+ var le = this.$locale().weekStart || 0, fe = (W < le ? W + 7 : W) - le;
8412
+ return H(k ? te - fe : te + (6 - fe), U);
8413
8413
  case c:
8414
8414
  case v:
8415
8415
  return B(ie + "Hours", 0);
@@ -8455,7 +8455,7 @@ function dh() {
8455
8455
  if (!this.isValid()) return j.invalidDate || h;
8456
8456
  var k = w || "YYYY-MM-DDTHH:mm:ssZ", L = I.z(this), H = this.$H, B = this.$m, W = this.$M, U = j.weekdays, te = j.months, ie = j.meridiem, le = function(se, pe, be, Fe) {
8457
8457
  return se && (se[pe] || se(M, k)) || be[pe].slice(0, Fe);
8458
- }, de = function(se) {
8458
+ }, fe = function(se) {
8459
8459
  return I.s(H % 12 || 12, se, "0");
8460
8460
  }, ue = ie || function(se, pe, be) {
8461
8461
  var Fe = se < 12 ? "AM" : "PM";
@@ -8493,9 +8493,9 @@ function dh() {
8493
8493
  case "HH":
8494
8494
  return I.s(H, 2, "0");
8495
8495
  case "h":
8496
- return de(1);
8496
+ return fe(1);
8497
8497
  case "hh":
8498
- return de(2);
8498
+ return fe(2);
8499
8499
  case "a":
8500
8500
  return ue(H, B, !0);
8501
8501
  case "A":
@@ -8585,11 +8585,11 @@ function dh() {
8585
8585
  }
8586
8586
  var fh = dh();
8587
8587
  const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8588
- const t = ge(null), [r, n] = J(!1), [o, i] = J("disconnected"), [a, s] = J(null), l = ge(a), [c, u] = J(""), [d, g] = J(""), [m, v] = J(!1), [h, f] = J(0), [y, p] = J(null), [S, O] = J(null), [C, _] = J(null), [b, P] = J(null), [A, R] = J(null), [I, D] = J(null), [$, E] = J(null), [T, w] = J(null), [M, j] = J([]), k = ge(M), [L, H] = J([]), B = ge(L), [W, U] = J(0), [te, ie] = J(0), [le, de] = J(!1), [ue, se] = J(!1), [pe, be] = J(!1), [Fe, z] = J(0), [je, Ce] = J({
8588
+ const t = ge(null), [r, n] = J(!1), [o, i] = J("disconnected"), [a, s] = J(null), l = ge(a), [c, u] = J(""), [d, g] = J(""), [m, v] = J(!1), [h, f] = J(0), [y, p] = J(null), [S, O] = J(null), [C, _] = J(null), [b, P] = J(null), [A, R] = J(null), [I, D] = J(null), [$, E] = J(null), [T, w] = J(null), [M, j] = J([]), k = ge(M), [L, H] = J([]), B = ge(L), [W, U] = J(0), [te, ie] = J(0), [le, fe] = J(!1), [ue, se] = J(!1), [pe, be] = J(!1), [Fe, z] = J(0), [je, Ce] = J({
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;
@@ -8622,11 +8622,11 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8622
8622
  console.log("CHAT WEBSOCKET CONNECT ERROR");
8623
8623
  }));
8624
8624
  }, [ke, m, h, c, d, y, I, $, T]);
8625
- fe(() => {
8625
+ de(() => {
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,11 +8638,11 @@ 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]), fe(() => {
8641
+ }, [a, c, h, d, we]), de(() => {
8642
8642
  console.log("BEFORE UPDATE CHATS chatsRef", L), B.current = L;
8643
- }, [L]), fe(() => {
8643
+ }, [L]), de(() => {
8644
8644
  k.current = M;
8645
- }, [M]), fe(() => {
8645
+ }, [M]), de(() => {
8646
8646
  if (!c) return;
8647
8647
  console.log("SET_PROD_AXIOS_INSTANCE");
8648
8648
  const q = Pc.create({
@@ -8650,9 +8650,11 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8650
8650
  timeout: 3e5
8651
8651
  });
8652
8652
  console.log(q), p(q);
8653
- }, [c]);
8653
+ }, [c]), de(() => {
8654
+ a && (console.log("userdataRef"), l.current = a);
8655
+ }, [a]);
8654
8656
  const Ae = Xe(async (q = null) => {
8655
- if (console.log("fetchChatsList"), de(!0), m)
8657
+ if (console.log("fetchChatsList"), fe(!0), m)
8656
8658
  try {
8657
8659
  if (!y || !S || !d) {
8658
8660
  console.log("fetchChatsList false");
@@ -8674,9 +8676,9 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8674
8676
  } catch (Y) {
8675
8677
  console.log(Y);
8676
8678
  } finally {
8677
- de(!1);
8679
+ fe(!1);
8678
8680
  }
8679
- }, [le, d, y, S]), $e = Xe(async (q, Y = null) => {
8681
+ }, [le, d, y, S]), _e = Xe(async (q, Y = null) => {
8680
8682
  if (console.log("fetchChatMessages"), !ue && (se(!0), m))
8681
8683
  try {
8682
8684
  if (!y || !C || !d) return;
@@ -8704,7 +8706,7 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8704
8706
  } finally {
8705
8707
  se(!1);
8706
8708
  }
8707
- }, [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 }) => {
8708
8710
  console.log("sendSms"), ne({ to: q, text: Y, answer: me, timestamp: Q, from_id: xe }), be(!0);
8709
8711
  try {
8710
8712
  if (!y || !b || !d) return;
@@ -8723,7 +8725,6 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8723
8725
  const We = await (await fetch(b, {
8724
8726
  method: "POST",
8725
8727
  headers: {
8726
- "Content-Type": "application/json",
8727
8728
  "X-CSRF-TOKEN": d
8728
8729
  },
8729
8730
  body: Le
@@ -8865,8 +8866,8 @@ const Rt = /* @__PURE__ */ aa(fh), Us = Jr(void 0), gh = ({ children: e }) => {
8865
8866
  loadingSendSms: pe,
8866
8867
  /* methods */
8867
8868
  fetchChatsList: Ae,
8868
- fetchChatMessages: $e,
8869
- sendSms: Oe,
8869
+ fetchChatMessages: _e,
8870
+ sendSms: $e,
8870
8871
  markMessagesAsRead: ae,
8871
8872
  userdata: a,
8872
8873
  HTTP_HOST: c,
@@ -8905,7 +8906,7 @@ function hh({ search: e, onSelectChat: t, selectedChatId: r }) {
8905
8906
  /* methods */
8906
8907
  fetchChatsList: i
8907
8908
  } = rr(), a = n?.user?.id;
8908
- fe(() => {
8909
+ de(() => {
8909
8910
  i(e);
8910
8911
  }, [e]);
8911
8912
  const s = Xe(
@@ -8940,7 +8941,7 @@ function hh({ search: e, onSelectChat: t, selectedChatId: r }) {
8940
8941
  }, [o, e, a, s, l]);
8941
8942
  return /* @__PURE__ */ N("div", { className: G["chat-list__container"], children: /* @__PURE__ */ N("ul", { className: G["chat-list"], children: u.map((d, g) => {
8942
8943
  const m = s(d), v = l(d, m, d.chat_id === a), h = d.chat_id === r, f = d.text;
8943
- return /* @__PURE__ */ N("div", { children: /* @__PURE__ */ Ee(
8944
+ return /* @__PURE__ */ N("div", { children: /* @__PURE__ */ Te(
8944
8945
  "li",
8945
8946
  {
8946
8947
  className: `${G.chatItem} ${h ? G.activeChatItem : ""}`,
@@ -8948,7 +8949,7 @@ function hh({ search: e, onSelectChat: t, selectedChatId: r }) {
8948
8949
  t(d.chat_id ?? null);
8949
8950
  },
8950
8951
  children: [
8951
- /* @__PURE__ */ Ee("div", { children: [
8952
+ /* @__PURE__ */ Te("div", { children: [
8952
8953
  /* @__PURE__ */ N("div", { className: G.companionName, children: v || "Неизвестный" }),
8953
8954
  /* @__PURE__ */ N("div", { className: G["last-message"], children: c(f, 50) })
8954
8955
  ] }),
@@ -8970,15 +8971,15 @@ function vh({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
8970
8971
  bottomRight: "bottomLeft",
8971
8972
  bottomLeft: "topLeft"
8972
8973
  }[r]);
8973
- }, 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: [
8974
8975
  /* @__PURE__ */ N(Ze, { type: "text", icon: /* @__PURE__ */ N(vc, {}), children: "Уведомления" }),
8975
8976
  /* @__PURE__ */ N(Ze, { type: "text", icon: /* @__PURE__ */ N(pc, {}), children: "Автозагрузка файлов" }),
8976
8977
  /* @__PURE__ */ N(Ze, { type: "text", icon: /* @__PURE__ */ N(mc, {}), children: "Приватность чата" }),
8977
8978
  /* @__PURE__ */ N(Ze, { type: "text", icon: /* @__PURE__ */ N(yc, {}), children: "Скрыть из списка" })
8978
8979
  ] });
8979
- return /* @__PURE__ */ Ee("div", { hidden: !0, children: [
8980
+ return /* @__PURE__ */ Te("div", { hidden: !0, children: [
8980
8981
  /* @__PURE__ */ N("button", { children: "Send" }),
8981
- /* @__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: [
8982
8983
  /* @__PURE__ */ N(
8983
8984
  ar,
8984
8985
  {
@@ -9004,7 +9005,7 @@ function vh({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
9004
9005
  const { Content: ph } = zt;
9005
9006
  function mh({ onSelectChat: e, selectedChatId: t }) {
9006
9007
  const [r, n] = J(!1), [o, i] = J("topLeft"), [a, s] = J("");
9007
- return /* @__PURE__ */ Ee(zt, { className: G["sidebar-layout"], children: [
9008
+ return /* @__PURE__ */ Te(zt, { className: G["sidebar-layout"], children: [
9008
9009
  /* @__PURE__ */ N(
9009
9010
  lh,
9010
9011
  {
@@ -9054,7 +9055,7 @@ function yh({ onSend: e }) {
9054
9055
  const v = i.indexOf(m), h = i.slice();
9055
9056
  h.splice(v, 1), a(h);
9056
9057
  }, g = Xe(() => !1, []);
9057
- return /* @__PURE__ */ Ee("div", { className: G.chat_inputs, children: [
9058
+ return /* @__PURE__ */ Te("div", { className: G.chat_inputs, children: [
9058
9059
  /* @__PURE__ */ N(
9059
9060
  ar,
9060
9061
  {
@@ -9118,7 +9119,7 @@ function yh({ onSend: e }) {
9118
9119
  )
9119
9120
  ] });
9120
9121
  }
9121
- 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: [
9122
9123
  /* @__PURE__ */ N(Ec, { style: { marginRight: 8 } }),
9123
9124
  e
9124
9125
  ] });
@@ -9180,15 +9181,15 @@ function Sh({ message: e }) {
9180
9181
  return /* @__PURE__ */ N(Qi, { style: { fontSize: "25px", color: "#555555" } });
9181
9182
  }
9182
9183
  };
9183
- 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: [
9184
9185
  /* @__PURE__ */ N("span", { children: t }),
9185
- /* @__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: [
9186
9187
  /* @__PURE__ */ N("div", { className: `${G.file_circle} ${G.self}`, children: c(u.extension) }),
9187
9188
  /* @__PURE__ */ N("p", { className: G.href_label, children: u?.name })
9188
9189
  ] }, `file-${u.id}-${d}`)) }),
9189
- /* @__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: [
9190
9191
  /* @__PURE__ */ N("div", { children: Rt(+n * 1e3).format("HH:mm") }),
9191
- !o && /* @__PURE__ */ Ee(
9192
+ !o && /* @__PURE__ */ Te(
9192
9193
  "span",
9193
9194
  {
9194
9195
  style: { width: "18px", height: "18px", position: "relative" },
@@ -9268,10 +9269,10 @@ function Ch({ message: e }) {
9268
9269
  return /* @__PURE__ */ N(Qi, { style: { fontSize: "25px", color: "#555555" } });
9269
9270
  }
9270
9271
  };
9271
- 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: [
9272
9273
  /* @__PURE__ */ N("div", { className: G.senderName, children: o }),
9273
9274
  /* @__PURE__ */ N("span", { children: t }),
9274
- /* @__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: [
9275
9276
  /* @__PURE__ */ N("div", { className: `${G.file_circle}`, children: a(s.extension) }),
9276
9277
  /* @__PURE__ */ N("p", { className: G.href_label, children: s?.name })
9277
9278
  ] }, `file-${s.id}-${l}`)) }),
@@ -9286,7 +9287,7 @@ const xh = ({
9286
9287
  markMessagesAsRead: o
9287
9288
  }) => {
9288
9289
  const i = ge(null), a = ge(/* @__PURE__ */ new Set());
9289
- fe(() => {
9290
+ de(() => {
9290
9291
  if (!e.length || !o || !n?.current) return;
9291
9292
  const s = setTimeout(() => {
9292
9293
  const l = e.filter((u) => u.type !== "divider" && u.message).filter((u) => {
@@ -9320,7 +9321,7 @@ const xh = ({
9320
9321
  i.current = c, l.forEach(({ element: u }) => c.observe(u));
9321
9322
  }, 0);
9322
9323
  return () => clearTimeout(s);
9323
- }, [e, t, r, n?.current, o]), fe(() => {
9324
+ }, [e, t, r, n?.current, o]), de(() => {
9324
9325
  a.current.clear();
9325
9326
  }, [r]);
9326
9327
  }, Eh = ({
@@ -9330,7 +9331,7 @@ const xh = ({
9330
9331
  offset: n = 100
9331
9332
  }) => {
9332
9333
  const o = ge(!1), i = ge(null), a = ge(0), s = ge(0);
9333
- fe(() => {
9334
+ de(() => {
9334
9335
  const l = e.current;
9335
9336
  if (!l || !t) return;
9336
9337
  const c = new IntersectionObserver(
@@ -9392,7 +9393,7 @@ const xh = ({
9392
9393
  containerRef: t,
9393
9394
  offset: r = 100
9394
9395
  }) => {
9395
- fe(() => {
9396
+ de(() => {
9396
9397
  const n = t.current;
9397
9398
  if (!n) return;
9398
9399
  const o = () => {
@@ -9481,18 +9482,18 @@ function _h({ chatId: e }) {
9481
9482
  // контейнер с сообщениями, за которым следим
9482
9483
  offset: 500
9483
9484
  // офсет, расстояние до низа контейнера
9484
- }), fe(() => {
9485
+ }), de(() => {
9485
9486
  const $ = C.find((E) => E.chat_id === e);
9486
9487
  !$ && e && !_ && !b ? (console.log("Fetching chat messages for:", e), S.length = 0, P(e, null)) : $ && (console.log("Chat found:", $), u($));
9487
- }, [C, e, _, b]), fe(() => {
9488
+ }, [C, e, _, b]), de(() => {
9488
9489
  I && I?.user && a(I?.user?.id);
9489
- }, [I]), fe(() => {
9490
+ }, [I]), de(() => {
9490
9491
  t.current && p.length > 0 && !m && (t.current.scrollTop = t.current.scrollHeight, v(!0));
9491
- }, [p]), fe(() => {
9492
+ }, [p]), de(() => {
9492
9493
  v(!1);
9493
- }, [e]), fe(() => {
9494
+ }, [e]), de(() => {
9494
9495
  g(c?.total - c?.messages?.length > 0);
9495
- }, [c]), fe(() => {
9496
+ }, [c]), de(() => {
9496
9497
  const $ = t.current;
9497
9498
  if (!$) return;
9498
9499
  const E = () => {
@@ -9511,13 +9512,13 @@ function _h({ chatId: e }) {
9511
9512
  from_id: i
9512
9513
  });
9513
9514
  };
9514
- return /* @__PURE__ */ Ee(zt, { className: G.chatcontentLayout, children: [
9515
- /* @__PURE__ */ Ee(s, { className: G.chat_content, children: [
9516
- /* @__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: [
9517
9518
  /* @__PURE__ */ N("span", { children: I ? c.who ? c.who : "Неизвестный собеседник" : "Загрузка..." }),
9518
9519
  _ ? /* @__PURE__ */ N(wc, {}) : /* @__PURE__ */ N("span", { children: e })
9519
9520
  ] }),
9520
- /* @__PURE__ */ Ee("div", { className: G.chat_body, ref: t, children: [
9521
+ /* @__PURE__ */ Te("div", { className: G.chat_body, ref: t, children: [
9521
9522
  S && S.length > 0 ? S.map(
9522
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(
9523
9524
  r,
@@ -9564,7 +9565,7 @@ function _h({ chatId: e }) {
9564
9565
  const { Sider: $h, Content: Oh } = zt;
9565
9566
  function Th() {
9566
9567
  const [e, t] = J(null);
9567
- return /* @__PURE__ */ Ee(zt, { className: G["chat-layout"], children: [
9568
+ return /* @__PURE__ */ Te(zt, { className: G["chat-layout"], children: [
9568
9569
  /* @__PURE__ */ N($h, { width: 220, className: G["chat-sidebar"], children: /* @__PURE__ */ N(mh, { onSelectChat: t, selectedChatId: e }) }),
9569
9570
  /* @__PURE__ */ N(Oh, { className: G["chat-content"], children: e ? /* @__PURE__ */ N(_h, { chatId: e }) : /* @__PURE__ */ N(
9570
9571
  Wr,
@@ -9578,9 +9579,9 @@ function Th() {
9578
9579
  }
9579
9580
  const Fh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9580
9581
  const o = ge(null), i = ge(null), [a, s] = J(!1), [l, c] = J({ x: 0, y: 0 }), u = !n, d = (v, h, f) => Math.min(Math.max(v, h), f);
9581
- fe(() => {
9582
+ de(() => {
9582
9583
  e && c({ x: 0, y: 0 });
9583
- }, [e]), fe(() => {
9584
+ }, [e]), de(() => {
9584
9585
  if (e && n) {
9585
9586
  const h = window.innerWidth, f = window.innerHeight, y = o.current ? o.current.offsetWidth : 500, p = o.current ? o.current.offsetHeight : 400;
9586
9587
  let S = 0, O = 0;
@@ -9679,20 +9680,20 @@ const Fh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9679
9680
  init: a,
9680
9681
  fetchChatsList: s
9681
9682
  } = rr(), [l, c] = J(0);
9682
- fe(() => {
9683
+ de(() => {
9683
9684
  n || console.log("disconnected");
9684
- }, [n]), fe(() => {
9685
+ }, [n]), de(() => {
9685
9686
  s(null);
9686
- }, [a, o]), fe(() => {
9687
+ }, [a, o]), de(() => {
9687
9688
  e && e?.user && c(e.user.id);
9688
9689
  }, [e]);
9689
9690
  const u = Tt(() => {
9690
9691
  if (console.log(i), !Array.isArray(i) || i.length === 0)
9691
9692
  return { hasSms: !1, messages: [] };
9692
9693
  const f = i.filter((y) => {
9693
- 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;
9694
9695
  return p === l || S === l;
9695
- }).filter((y) => y.count_unread > 0).map((y) => ({
9696
+ }).filter((y) => y?.count_unread > 0).map((y) => ({
9696
9697
  id: y.chat_id || y.id,
9697
9698
  name: "Неизвестный",
9698
9699
  surname: "",
@@ -9710,19 +9711,16 @@ const Fh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9710
9711
  const { messages: f } = u;
9711
9712
  return f.map((y, p) => ({
9712
9713
  key: `message-${p}-${y.id}`,
9713
- 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: [
9714
9715
  /* @__PURE__ */ N("div", { children: y.name }),
9715
9716
  /* @__PURE__ */ N("div", { children: y.countUnread })
9716
9717
  ] })
9717
9718
  }));
9718
- }, [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: [
9719
9720
  /* @__PURE__ */ N(Oc, {}),
9720
- o > 0 && /* @__PURE__ */ Ee("span", { className: G["notification-badge"], children: [
9721
- o,
9722
- ","
9723
- ] })
9721
+ o > 0 && /* @__PURE__ */ N("span", { className: G["notification-badge"], children: o })
9724
9722
  ] });
9725
- return /* @__PURE__ */ Ee(Yi, { style: { padding: 0 }, children: [
9723
+ return /* @__PURE__ */ Te(Yi, { style: { padding: 0 }, children: [
9726
9724
  d.length > 0 ? /* @__PURE__ */ N(fc, { menu: { items: d }, trigger: ["hover"], children: /* @__PURE__ */ N("div", { children: h }) }) : /* @__PURE__ */ N("div", { children: h }),
9727
9725
  /* @__PURE__ */ N(
9728
9726
  Fh,
@@ -9756,7 +9754,7 @@ const Fh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9756
9754
  setUpdateSms: f,
9757
9755
  setInit: y
9758
9756
  } = rr();
9759
- return fe(() => {
9757
+ return de(() => {
9760
9758
  console.log("CORP-CHAT userdata", e), console.log("CORP-CHAT httpParams", t), console.log("CORP-CHAT fetchParams", r), console.log("CORP-CHAT socketSubscribe", n), console.log("CORP-CHAT socketActions", o);
9761
9759
  let p = !1, S = !1, O = !1, C = !1, _ = !1;
9762
9760
  e && i(e), e && (p = !0), t && t?.HTTP_HOST && a(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && t?.PRODMODE && l(t?.PRODMODE), t && t?.BFF_PORT && c(t?.BFF_PORT), t && t?.HTTP_HOST && t?.CSRF_TOKEN && t?.PRODMODE && t?.BFF_PORT && (S = !0), r && r?.fetchChatsListPath && u(r?.fetchChatsListPath), r && r?.fetchChatMessagesPath && d(r?.fetchChatMessagesPath), r && r?.sendSmsPath && g(r?.sendSmsPath), r && r?.markMessagesAsReadPath && m(r?.markMessagesAsReadPath), r && r?.fetchChatsListPath && r?.fetchChatMessagesPath && r?.sendSmsPath && r?.markMessagesAsReadPath && (O = !0), n && n?.subscribeToChat && v(n?.subscribeToChat), n && n?.subscribeToChat && (C = !0), o && o?.newSms && h(o?.newSms), o && o?.updateSms && f(o?.updateSms), o && o?.newSms && o?.updateSms && (_ = !0), p && S && O && C && _ && y(!0);
@@ -9788,9 +9786,9 @@ const Fh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9788
9786
  socketSubscribe: o,
9789
9787
  socketActions: i
9790
9788
  } = e;
9791
- return fe(() => {
9789
+ return de(() => {
9792
9790
  console.log("CORP-CHAT MOUNTED");
9793
- }, []), fe(() => {
9791
+ }, []), de(() => {
9794
9792
  console.log("CORP-CHAT PARAMS", e);
9795
9793
  }, [e]), /* @__PURE__ */ N("div", { children: t && r && n && o && i ? /* @__PURE__ */ N(gh, { children: /* @__PURE__ */ N(Rh, { ...e }) }) : /* @__PURE__ */ N("div", { children: "AAAAdd userdata, httpParams, fetchParams, socketSubscribe, socketActions" }) });
9796
9794
  };
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.7",
4
+ "version": "1.1.9",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",