radar-ui 1.1.13 → 1.1.14

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.
package/dist/index.js CHANGED
@@ -18,18 +18,18 @@ var De = { exports: {} }, pe = {};
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
20
  var Be;
21
- function It() {
21
+ function Nt() {
22
22
  if (Be) return pe;
23
23
  Be = 1;
24
- var r = Xe, a = Symbol.for("react.element"), c = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
25
- function j(S, _, F) {
26
- var P, N = {}, M = null, K = null;
24
+ var t = Xe, a = Symbol.for("react.element"), c = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
25
+ function k(S, _, F) {
26
+ var P, I = {}, M = null, K = null;
27
27
  F !== void 0 && (M = "" + F), _.key !== void 0 && (M = "" + _.key), _.ref !== void 0 && (K = _.ref);
28
- for (P in _) s.call(_, P) && !x.hasOwnProperty(P) && (N[P] = _[P]);
29
- if (S && S.defaultProps) for (P in _ = S.defaultProps, _) N[P] === void 0 && (N[P] = _[P]);
30
- return { $$typeof: a, type: S, key: M, ref: K, props: N, _owner: D.current };
28
+ for (P in _) s.call(_, P) && !y.hasOwnProperty(P) && (I[P] = _[P]);
29
+ if (S && S.defaultProps) for (P in _ = S.defaultProps, _) I[P] === void 0 && (I[P] = _[P]);
30
+ return { $$typeof: a, type: S, key: M, ref: K, props: I, _owner: T.current };
31
31
  }
32
- return pe.Fragment = c, pe.jsx = j, pe.jsxs = j, pe;
32
+ return pe.Fragment = c, pe.jsx = k, pe.jsxs = k, pe;
33
33
  }
34
34
  var xe = {};
35
35
  /**
@@ -41,27 +41,27 @@ var xe = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var Je;
45
- function Nt() {
46
- return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
47
- var r = Xe, a = Symbol.for("react.element"), c = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), S = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), K = Symbol.for("react.offscreen"), Y = Symbol.iterator, J = "@@iterator";
48
- function E(e) {
44
+ var He;
45
+ function It() {
46
+ return He || (He = 1, process.env.NODE_ENV !== "production" && function() {
47
+ var t = Xe, a = Symbol.for("react.element"), c = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), S = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), K = Symbol.for("react.offscreen"), Y = Symbol.iterator, H = "@@iterator";
48
+ function j(e) {
49
49
  if (e === null || typeof e != "object")
50
50
  return null;
51
- var n = Y && e[Y] || e[J];
51
+ var n = Y && e[Y] || e[H];
52
52
  return typeof n == "function" ? n : null;
53
53
  }
54
- var u = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
- function t(e) {
54
+ var u = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ function r(e) {
56
56
  {
57
- for (var n = arguments.length, l = new Array(n > 1 ? n - 1 : 0), R = 1; R < n; R++)
58
- l[R - 1] = arguments[R];
57
+ for (var n = arguments.length, l = new Array(n > 1 ? n - 1 : 0), D = 1; D < n; D++)
58
+ l[D - 1] = arguments[D];
59
59
  i("error", e, l);
60
60
  }
61
61
  }
62
62
  function i(e, n, l) {
63
63
  {
64
- var R = u.ReactDebugCurrentFrame, B = R.getStackAddendum();
64
+ var D = u.ReactDebugCurrentFrame, B = D.getStackAddendum();
65
65
  B !== "" && (n += "%s", l = l.concat([B]));
66
66
  var Z = l.map(function(A) {
67
67
  return String(A);
@@ -69,19 +69,19 @@ function Nt() {
69
69
  Z.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, Z);
70
70
  }
71
71
  }
72
- var h = !1, g = !1, w = !1, d = !1, T = !1, m;
72
+ var d = !1, v = !1, x = !1, p = !1, b = !1, m;
73
73
  m = Symbol.for("react.module.reference");
74
74
  function $(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === x || T || e === D || e === F || e === P || d || e === K || h || g || w || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === N || e.$$typeof === j || e.$$typeof === S || e.$$typeof === _ || // This needs to include all possible module reference object
75
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || b || e === T || e === F || e === P || p || e === K || d || v || x || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === I || e.$$typeof === k || e.$$typeof === S || e.$$typeof === _ || // This needs to include all possible module reference object
76
76
  // types supported by any Flight configuration anywhere since
77
77
  // we don't know which Flight build this will end up being used
78
78
  // with.
79
79
  e.$$typeof === m || e.getModuleId !== void 0));
80
80
  }
81
81
  function W(e, n, l) {
82
- var R = e.displayName;
83
- if (R)
84
- return R;
82
+ var D = e.displayName;
83
+ if (D)
84
+ return D;
85
85
  var B = n.displayName || n.name || "";
86
86
  return B !== "" ? l + "(" + B + ")" : l;
87
87
  }
@@ -91,7 +91,7 @@ function Nt() {
91
91
  function z(e) {
92
92
  if (e == null)
93
93
  return null;
94
- if (typeof e.tag == "number" && t("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
94
+ if (typeof e.tag == "number" && r("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
95
95
  return e.displayName || e.name || null;
96
96
  if (typeof e == "string")
97
97
  return e;
@@ -100,9 +100,9 @@ function Nt() {
100
100
  return "Fragment";
101
101
  case c:
102
102
  return "Portal";
103
- case x:
103
+ case y:
104
104
  return "Profiler";
105
- case D:
105
+ case T:
106
106
  return "StrictMode";
107
107
  case F:
108
108
  return "Suspense";
@@ -114,14 +114,14 @@ function Nt() {
114
114
  case S:
115
115
  var n = e;
116
116
  return V(n) + ".Consumer";
117
- case j:
117
+ case k:
118
118
  var l = e;
119
119
  return V(l._context) + ".Provider";
120
120
  case _:
121
121
  return W(e, e.render, "ForwardRef");
122
- case N:
123
- var R = e.displayName || null;
124
- return R !== null ? R : z(e.type) || "Memo";
122
+ case I:
123
+ var D = e.displayName || null;
124
+ return D !== null ? D : z(e.type) || "Memo";
125
125
  case M: {
126
126
  var B = e, Z = B._payload, A = B._init;
127
127
  try {
@@ -133,18 +133,18 @@ function Nt() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var q = Object.assign, H = 0, C, y, f, k, O, L, v;
137
- function b() {
136
+ var q = Object.assign, U = 0, re, h, R, f, w, O, C;
137
+ function g() {
138
138
  }
139
- b.__reactDisabledLog = !0;
140
- function X() {
139
+ g.__reactDisabledLog = !0;
140
+ function J() {
141
141
  {
142
- if (H === 0) {
143
- C = console.log, y = console.info, f = console.warn, k = console.error, O = console.group, L = console.groupCollapsed, v = console.groupEnd;
142
+ if (U === 0) {
143
+ re = console.log, h = console.info, R = console.warn, f = console.error, w = console.group, O = console.groupCollapsed, C = console.groupEnd;
144
144
  var e = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
147
- value: b,
147
+ value: g,
148
148
  writable: !0
149
149
  };
150
150
  Object.defineProperties(console, {
@@ -157,12 +157,12 @@ function Nt() {
157
157
  groupEnd: e
158
158
  });
159
159
  }
160
- H++;
160
+ U++;
161
161
  }
162
162
  }
163
- function Q() {
163
+ function X() {
164
164
  {
165
- if (H--, H === 0) {
165
+ if (U--, U === 0) {
166
166
  var e = {
167
167
  configurable: !0,
168
168
  enumerable: !0,
@@ -170,43 +170,43 @@ function Nt() {
170
170
  };
171
171
  Object.defineProperties(console, {
172
172
  log: q({}, e, {
173
- value: C
173
+ value: re
174
174
  }),
175
175
  info: q({}, e, {
176
- value: y
176
+ value: h
177
177
  }),
178
178
  warn: q({}, e, {
179
- value: f
179
+ value: R
180
180
  }),
181
181
  error: q({}, e, {
182
- value: k
182
+ value: f
183
183
  }),
184
184
  group: q({}, e, {
185
- value: O
185
+ value: w
186
186
  }),
187
187
  groupCollapsed: q({}, e, {
188
- value: L
188
+ value: O
189
189
  }),
190
190
  groupEnd: q({}, e, {
191
- value: v
191
+ value: C
192
192
  })
193
193
  });
194
194
  }
195
- H < 0 && t("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ U < 0 && r("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
196
  }
197
197
  }
198
- var ee = u.ReactCurrentDispatcher, p;
199
- function U(e, n, l) {
198
+ var Q = u.ReactCurrentDispatcher, E;
199
+ function L(e, n, l) {
200
200
  {
201
- if (p === void 0)
201
+ if (E === void 0)
202
202
  try {
203
203
  throw Error();
204
204
  } catch (B) {
205
- var R = B.stack.trim().match(/\n( *(at )?)/);
206
- p = R && R[1] || "";
205
+ var D = B.stack.trim().match(/\n( *(at )?)/);
206
+ E = D && D[1] || "";
207
207
  }
208
208
  return `
209
- ` + p + e;
209
+ ` + E + e;
210
210
  }
211
211
  }
212
212
  var oe = !1, se;
@@ -222,12 +222,12 @@ function Nt() {
222
222
  if (l !== void 0)
223
223
  return l;
224
224
  }
225
- var R;
225
+ var D;
226
226
  oe = !0;
227
227
  var B = Error.prepareStackTrace;
228
228
  Error.prepareStackTrace = void 0;
229
229
  var Z;
230
- Z = ee.current, ee.current = null, X();
230
+ Z = Q.current, Q.current = null, J();
231
231
  try {
232
232
  if (n) {
233
233
  var A = function() {
@@ -241,14 +241,14 @@ function Nt() {
241
241
  try {
242
242
  Reflect.construct(A, []);
243
243
  } catch (ie) {
244
- R = ie;
244
+ D = ie;
245
245
  }
246
246
  Reflect.construct(e, [], A);
247
247
  } else {
248
248
  try {
249
249
  A.call();
250
250
  } catch (ie) {
251
- R = ie;
251
+ D = ie;
252
252
  }
253
253
  e.call(A.prototype);
254
254
  }
@@ -256,33 +256,33 @@ function Nt() {
256
256
  try {
257
257
  throw Error();
258
258
  } catch (ie) {
259
- R = ie;
259
+ D = ie;
260
260
  }
261
261
  e();
262
262
  }
263
263
  } catch (ie) {
264
- if (ie && R && typeof ie.stack == "string") {
265
- for (var I = ie.stack.split(`
266
- `), ae = R.stack.split(`
267
- `), te = I.length - 1, re = ae.length - 1; te >= 1 && re >= 0 && I[te] !== ae[re]; )
268
- re--;
269
- for (; te >= 1 && re >= 0; te--, re--)
270
- if (I[te] !== ae[re]) {
271
- if (te !== 1 || re !== 1)
264
+ if (ie && D && typeof ie.stack == "string") {
265
+ for (var N = ie.stack.split(`
266
+ `), ae = D.stack.split(`
267
+ `), ee = N.length - 1, te = ae.length - 1; ee >= 1 && te >= 0 && N[ee] !== ae[te]; )
268
+ te--;
269
+ for (; ee >= 1 && te >= 0; ee--, te--)
270
+ if (N[ee] !== ae[te]) {
271
+ if (ee !== 1 || te !== 1)
272
272
  do
273
- if (te--, re--, re < 0 || I[te] !== ae[re]) {
273
+ if (ee--, te--, te < 0 || N[ee] !== ae[te]) {
274
274
  var le = `
275
- ` + I[te].replace(" at new ", " at ");
275
+ ` + N[ee].replace(" at new ", " at ");
276
276
  return e.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", e.displayName)), typeof e == "function" && se.set(e, le), le;
277
277
  }
278
- while (te >= 1 && re >= 0);
278
+ while (ee >= 1 && te >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
- oe = !1, ee.current = Z, Q(), Error.prepareStackTrace = B;
283
+ oe = !1, Q.current = Z, X(), Error.prepareStackTrace = B;
284
284
  }
285
- var ge = e ? e.displayName || e.name : "", fe = ge ? U(ge) : "";
285
+ var ge = e ? e.displayName || e.name : "", fe = ge ? L(ge) : "";
286
286
  return typeof e == "function" && se.set(e, fe), fe;
287
287
  }
288
288
  function de(e, n, l) {
@@ -298,21 +298,21 @@ function Nt() {
298
298
  if (typeof e == "function")
299
299
  return ne(e, we(e));
300
300
  if (typeof e == "string")
301
- return U(e);
301
+ return L(e);
302
302
  switch (e) {
303
303
  case F:
304
- return U("Suspense");
304
+ return L("Suspense");
305
305
  case P:
306
- return U("SuspenseList");
306
+ return L("SuspenseList");
307
307
  }
308
308
  if (typeof e == "object")
309
309
  switch (e.$$typeof) {
310
310
  case _:
311
311
  return de(e.render);
312
- case N:
312
+ case I:
313
313
  return be(e.type, n, l);
314
314
  case M: {
315
- var R = e, B = R._payload, Z = R._init;
315
+ var D = e, B = D._payload, Z = D._init;
316
316
  try {
317
317
  return be(Z(B), n, l);
318
318
  } catch {
@@ -329,22 +329,22 @@ function Nt() {
329
329
  } else
330
330
  Pe.setExtraStackFrame(null);
331
331
  }
332
- function et(e, n, l, R, B) {
332
+ function et(e, n, l, D, B) {
333
333
  {
334
334
  var Z = Function.call.bind(ve);
335
335
  for (var A in e)
336
336
  if (Z(e, A)) {
337
- var I = void 0;
337
+ var N = void 0;
338
338
  try {
339
339
  if (typeof e[A] != "function") {
340
- var ae = Error((R || "React class") + ": " + l + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
+ var ae = Error((D || "React class") + ": " + l + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
341
  throw ae.name = "Invariant Violation", ae;
342
342
  }
343
- I = e[A](n, A, R, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
- } catch (te) {
345
- I = te;
343
+ N = e[A](n, A, D, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ } catch (ee) {
345
+ N = ee;
346
346
  }
347
- I && !(I instanceof Error) && (_e(B), t("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", R || "React class", l, A, typeof I), _e(null)), I instanceof Error && !(I.message in Te) && (Te[I.message] = !0, _e(B), t("Failed %s type: %s", l, I.message), _e(null));
347
+ N && !(N instanceof Error) && (_e(B), r("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", l, A, typeof N), _e(null)), N instanceof Error && !(N.message in Te) && (Te[N.message] = !0, _e(B), r("Failed %s type: %s", l, N.message), _e(null));
348
348
  }
349
349
  }
350
350
  }
@@ -370,14 +370,14 @@ function Nt() {
370
370
  }
371
371
  function Le(e) {
372
372
  if (nt(e))
373
- return t("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rt(e)), Oe(e);
373
+ return r("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rt(e)), Oe(e);
374
374
  }
375
- var Ie = u.ReactCurrentOwner, at = {
375
+ var Ne = u.ReactCurrentOwner, at = {
376
376
  key: !0,
377
377
  ref: !0,
378
378
  __self: !0,
379
379
  __source: !0
380
- }, Ne, $e;
380
+ }, Ie, $e;
381
381
  function ot(e) {
382
382
  if (ve.call(e, "ref")) {
383
383
  var n = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -395,12 +395,12 @@ function Nt() {
395
395
  return e.key !== void 0;
396
396
  }
397
397
  function st(e, n) {
398
- typeof e.ref == "string" && Ie.current;
398
+ typeof e.ref == "string" && Ne.current;
399
399
  }
400
400
  function lt(e, n) {
401
401
  {
402
402
  var l = function() {
403
- Ne || (Ne = !0, t("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
403
+ Ie || (Ie = !0, r("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
404
404
  };
405
405
  l.isReactWarning = !0, Object.defineProperty(e, "key", {
406
406
  get: l,
@@ -411,7 +411,7 @@ function Nt() {
411
411
  function ct(e, n) {
412
412
  {
413
413
  var l = function() {
414
- $e || ($e = !0, t("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
414
+ $e || ($e = !0, r("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
415
415
  };
416
416
  l.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
417
  get: l,
@@ -419,8 +419,8 @@ function Nt() {
419
419
  });
420
420
  }
421
421
  }
422
- var dt = function(e, n, l, R, B, Z, A) {
423
- var I = {
422
+ var dt = function(e, n, l, D, B, Z, A) {
423
+ var N = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
425
  $$typeof: a,
426
426
  // Built-in properties that belong on the element
@@ -431,39 +431,39 @@ function Nt() {
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: Z
433
433
  };
434
- return I._store = {}, Object.defineProperty(I._store, "validated", {
434
+ return N._store = {}, Object.defineProperty(N._store, "validated", {
435
435
  configurable: !1,
436
436
  enumerable: !1,
437
437
  writable: !0,
438
438
  value: !1
439
- }), Object.defineProperty(I, "_self", {
439
+ }), Object.defineProperty(N, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: R
444
- }), Object.defineProperty(I, "_source", {
443
+ value: D
444
+ }), Object.defineProperty(N, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
448
  value: B
449
- }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
449
+ }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
450
450
  };
451
- function ut(e, n, l, R, B) {
451
+ function ut(e, n, l, D, B) {
452
452
  {
453
- var Z, A = {}, I = null, ae = null;
454
- l !== void 0 && (Le(l), I = "" + l), it(n) && (Le(n.key), I = "" + n.key), ot(n) && (ae = n.ref, st(n, B));
453
+ var Z, A = {}, N = null, ae = null;
454
+ l !== void 0 && (Le(l), N = "" + l), it(n) && (Le(n.key), N = "" + n.key), ot(n) && (ae = n.ref, st(n, B));
455
455
  for (Z in n)
456
456
  ve.call(n, Z) && !at.hasOwnProperty(Z) && (A[Z] = n[Z]);
457
457
  if (e && e.defaultProps) {
458
- var te = e.defaultProps;
459
- for (Z in te)
460
- A[Z] === void 0 && (A[Z] = te[Z]);
458
+ var ee = e.defaultProps;
459
+ for (Z in ee)
460
+ A[Z] === void 0 && (A[Z] = ee[Z]);
461
461
  }
462
- if (I || ae) {
463
- var re = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- I && lt(A, re), ae && ct(A, re);
462
+ if (N || ae) {
463
+ var te = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
+ N && lt(A, te), ae && ct(A, te);
465
465
  }
466
- return dt(e, I, ae, B, R, Ie.current, A);
466
+ return dt(e, N, ae, B, D, Ne.current, A);
467
467
  }
468
468
  }
469
469
  var je = u.ReactCurrentOwner, Fe = u.ReactDebugCurrentFrame;
@@ -516,8 +516,8 @@ Check the top-level render call using <` + l + ">.");
516
516
  if (Ae[l])
517
517
  return;
518
518
  Ae[l] = !0;
519
- var R = "";
520
- e && e._owner && e._owner !== je.current && (R = " It was passed a child from " + z(e._owner.type) + "."), he(e), t('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, R), he(null);
519
+ var D = "";
520
+ e && e._owner && e._owner !== je.current && (D = " It was passed a child from " + z(e._owner.type) + "."), he(e), r('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, D), he(null);
521
521
  }
522
522
  }
523
523
  function Ve(e, n) {
@@ -526,13 +526,13 @@ Check the top-level render call using <` + l + ">.");
526
526
  return;
527
527
  if (Ee(e))
528
528
  for (var l = 0; l < e.length; l++) {
529
- var R = e[l];
530
- Se(R) && Me(R, n);
529
+ var D = e[l];
530
+ Se(D) && Me(D, n);
531
531
  }
532
532
  else if (Se(e))
533
533
  e._store && (e._store.validated = !0);
534
534
  else if (e) {
535
- var B = E(e);
535
+ var B = j(e);
536
536
  if (typeof B == "function" && B !== e.entries)
537
537
  for (var Z = B.call(e), A; !(A = Z.next()).done; )
538
538
  Se(A.value) && Me(A.value, n);
@@ -549,58 +549,58 @@ Check the top-level render call using <` + l + ">.");
549
549
  l = n.propTypes;
550
550
  else if (typeof n == "object" && (n.$$typeof === _ || // Note: Memo only checks outer props here.
551
551
  // Inner props are checked in the reconciler.
552
- n.$$typeof === N))
552
+ n.$$typeof === I))
553
553
  l = n.propTypes;
554
554
  else
555
555
  return;
556
556
  if (l) {
557
- var R = z(n);
558
- et(l, e.props, "prop", R, e);
557
+ var D = z(n);
558
+ et(l, e.props, "prop", D, e);
559
559
  } else if (n.PropTypes !== void 0 && !ke) {
560
560
  ke = !0;
561
561
  var B = z(n);
562
- t("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
562
+ r("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
563
563
  }
564
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && t("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
564
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && r("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
565
  }
566
566
  }
567
567
  function vt(e) {
568
568
  {
569
569
  for (var n = Object.keys(e.props), l = 0; l < n.length; l++) {
570
- var R = n[l];
571
- if (R !== "children" && R !== "key") {
572
- he(e), t("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), he(null);
570
+ var D = n[l];
571
+ if (D !== "children" && D !== "key") {
572
+ he(e), r("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), he(null);
573
573
  break;
574
574
  }
575
575
  }
576
- e.ref !== null && (he(e), t("Invalid attribute `ref` supplied to `React.Fragment`."), he(null));
576
+ e.ref !== null && (he(e), r("Invalid attribute `ref` supplied to `React.Fragment`."), he(null));
577
577
  }
578
578
  }
579
579
  var ze = {};
580
- function Ke(e, n, l, R, B, Z) {
580
+ function Ke(e, n, l, D, B, Z) {
581
581
  {
582
582
  var A = $(e);
583
583
  if (!A) {
584
- var I = "";
585
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
+ var N = "";
585
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
586
586
  var ae = ft();
587
- ae ? I += ae : I += We();
588
- var te;
589
- e === null ? te = "null" : Ee(e) ? te = "array" : e !== void 0 && e.$$typeof === a ? (te = "<" + (z(e.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : te = typeof e, t("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, I);
587
+ ae ? N += ae : N += We();
588
+ var ee;
589
+ e === null ? ee = "null" : Ee(e) ? ee = "array" : e !== void 0 && e.$$typeof === a ? (ee = "<" + (z(e.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof e, r("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, N);
590
590
  }
591
- var re = ut(e, n, l, B, Z);
592
- if (re == null)
593
- return re;
591
+ var te = ut(e, n, l, B, Z);
592
+ if (te == null)
593
+ return te;
594
594
  if (A) {
595
595
  var le = n.children;
596
596
  if (le !== void 0)
597
- if (R)
597
+ if (D)
598
598
  if (Ee(le)) {
599
599
  for (var ge = 0; ge < le.length; ge++)
600
600
  Ve(le[ge], e);
601
601
  Object.freeze && Object.freeze(le);
602
602
  } else
603
- t("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
603
+ r("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
604
  else
605
605
  Ve(le, e);
606
606
  }
@@ -610,7 +610,7 @@ Check the top-level render call using <` + l + ">.");
610
610
  }), Re = ie.length > 0 ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}";
611
611
  if (!ze[fe + Re]) {
612
612
  var _t = ie.length > 0 ? "{" + ie.join(": ..., ") + ": ...}" : "{}";
613
- t(`A props object containing a "key" prop is being spread into JSX:
613
+ r(`A props object containing a "key" prop is being spread into JSX:
614
614
  let props = %s;
615
615
  <%s {...props} />
616
616
  React keys must be passed directly to JSX without using spread:
@@ -618,7 +618,7 @@ React keys must be passed directly to JSX without using spread:
618
618
  <%s key={someKey} {...props} />`, Re, fe, _t, fe), ze[fe + Re] = !0;
619
619
  }
620
620
  }
621
- return e === s ? vt(re) : gt(re), re;
621
+ return e === s ? vt(te) : gt(te), te;
622
622
  }
623
623
  }
624
624
  function pt(e, n, l) {
@@ -631,50 +631,50 @@ React keys must be passed directly to JSX without using spread:
631
631
  xe.Fragment = s, xe.jsx = yt, xe.jsxs = bt;
632
632
  }()), xe;
633
633
  }
634
- process.env.NODE_ENV === "production" ? De.exports = It() : De.exports = Nt();
634
+ process.env.NODE_ENV === "production" ? De.exports = Nt() : De.exports = It();
635
635
  var o = De.exports;
636
- const $t = ({ column: r, currWidth: a, currMinWidth: c, onResize: s, scrollContainerRef: D }) => {
637
- const [x, j] = ce(!1), [S, _] = ce(null), [F, P] = ce(0), [N, M] = ce(0), K = ye(null), Y = ye(0), J = ye(!1), E = ye(null), u = G((h) => {
638
- if (!x || !S || !r) return;
639
- const g = h.clientX - F;
640
- let w = Math.min((r == null ? void 0 : r.maxWidth) || 9999999, N + g);
641
- const d = D == null ? void 0 : D.current, T = -10, m = 10, $ = h.clientX, W = d == null ? void 0 : d.getBoundingClientRect(), V = W == null ? void 0 : W.right;
642
- d && V && V - $ < T && !J.current && (J.current = !0, Y.current = w, K.current = setInterval(() => {
643
- if (r != null && r.maxWidth && Y.current >= (r == null ? void 0 : r.maxWidth)) return;
644
- const q = d.scrollWidth - d.clientWidth + m;
645
- d.scrollLeft < q ? (d.scrollLeft += m, Y.current += m, console.log("Calling onResize with width:", Y.current), s == null || s(S, Y.current)) : (console.log("Max scroll reached, but continuing to resize"), Y.current += m, s == null || s(S, Y.current));
646
- }, 16)), J.current || s == null || s(S, w);
647
- }, [x, F, N, S, s, D]), t = G((h) => {
648
- x && (S && h.clientX - F, K.current && (console.log("Stopping auto scroll on mouse up"), clearInterval(K.current), K.current = null), J.current = !1, j(!1), P(0), M(0), _(null), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", t));
649
- }, [x, S, F, N, u]), i = G((h, g, w) => {
650
- h.preventDefault(), j(!0), P(h.clientX), M(w), _(g);
636
+ const $t = ({ column: t, currWidth: a, currMinWidth: c, onResize: s, scrollContainerRef: T }) => {
637
+ const [y, k] = ce(!1), [S, _] = ce(null), [F, P] = ce(0), [I, M] = ce(0), K = ye(null), Y = ye(0), H = ye(!1), j = ye(null), u = G((d) => {
638
+ if (!y || !S || !t) return;
639
+ const v = d.clientX - F;
640
+ let x = Math.min((t == null ? void 0 : t.maxWidth) || 9999999, I + v);
641
+ const p = T == null ? void 0 : T.current, b = -10, m = 10, $ = d.clientX, W = p == null ? void 0 : p.getBoundingClientRect(), V = W == null ? void 0 : W.right;
642
+ p && V && V - $ < b && !H.current && (H.current = !0, Y.current = x, K.current = setInterval(() => {
643
+ if (t != null && t.maxWidth && Y.current >= (t == null ? void 0 : t.maxWidth)) return;
644
+ const q = p.scrollWidth - p.clientWidth + m;
645
+ p.scrollLeft < q ? (p.scrollLeft += m, Y.current += m, console.log("Calling onResize with width:", Y.current), s == null || s(S, Y.current)) : (console.log("Max scroll reached, but continuing to resize"), Y.current += m, s == null || s(S, Y.current));
646
+ }, 16)), H.current || s == null || s(S, x);
647
+ }, [y, F, I, S, s, T]), r = G((d) => {
648
+ y && (S && d.clientX - F, K.current && (console.log("Stopping auto scroll on mouse up"), clearInterval(K.current), K.current = null), H.current = !1, k(!1), P(0), M(0), _(null), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", r));
649
+ }, [y, S, F, I, u]), i = G((d, v, x) => {
650
+ d.preventDefault(), k(!0), P(d.clientX), M(x), _(v);
651
651
  }, []);
652
652
  return Ce(() => {
653
- x && (document.addEventListener("mousemove", u), document.addEventListener("mouseup", t));
654
- }, [x, u, t]), Ce(() => () => {
655
- document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", t);
656
- }, [u, t]), /* @__PURE__ */ o.jsx(
653
+ y && (document.addEventListener("mousemove", u), document.addEventListener("mouseup", r));
654
+ }, [y, u, r]), Ce(() => () => {
655
+ document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", r);
656
+ }, [u, r]), /* @__PURE__ */ o.jsx(
657
657
  "button",
658
658
  {
659
- ref: E,
659
+ ref: j,
660
660
  className: "radar-table__resize-button",
661
- onMouseDown: (h) => i(h, r.key, a || c || 200),
661
+ onMouseDown: (d) => i(d, t.key, a || c || 200),
662
662
  title: "Изменить ширину колонки",
663
663
  children: /* @__PURE__ */ o.jsx("div", {})
664
664
  }
665
665
  );
666
- }, Ft = ({ text: r, children: a }) => {
667
- const [c, s] = ce(!1), [D, x] = ce("left"), j = ye(null), S = () => {
668
- if (j.current) {
669
- const _ = j.current.getBoundingClientRect(), F = window.innerWidth, P = 250, N = 20, M = F - _.left, K = _.right;
670
- M < P + N && K > P + N ? x("right") : x("left");
666
+ }, Ft = ({ text: t, children: a }) => {
667
+ const [c, s] = ce(!1), [T, y] = ce("left"), k = ye(null), S = () => {
668
+ if (k.current) {
669
+ const _ = k.current.getBoundingClientRect(), F = window.innerWidth, P = 250, I = 20, M = F - _.left, K = _.right;
670
+ M < P + I && K > P + I ? y("right") : y("left");
671
671
  }
672
672
  s(!0);
673
673
  };
674
674
  return /* @__PURE__ */ o.jsxs(
675
675
  "button",
676
676
  {
677
- ref: j,
677
+ ref: k,
678
678
  className: "radar-table__tooltip-button",
679
679
  onMouseOver: S,
680
680
  onMouseOut: () => s(!1),
@@ -686,26 +686,26 @@ const $t = ({ column: r, currWidth: a, currMinWidth: c, onResize: s, scrollConta
686
686
  /* @__PURE__ */ o.jsx(
687
687
  "div",
688
688
  {
689
- className: `radar-table__tooltip-text ${c ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${D}`,
690
- children: r
689
+ className: `radar-table__tooltip-text ${c ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${T}`,
690
+ children: t
691
691
  }
692
692
  )
693
693
  ]
694
694
  }
695
695
  );
696
696
  }, Qe = Ct(null), Wt = () => {
697
- const r = wt(Qe);
698
- return r || {
697
+ const t = wt(Qe);
698
+ return t || {
699
699
  activeColumn: null,
700
700
  isValidDropZone: () => !1
701
701
  };
702
702
  };
703
703
  function At({
704
- children: r,
704
+ children: t,
705
705
  fullConfig: a,
706
706
  onColumnReorder: c
707
707
  }) {
708
- const [s, D] = ce(null), x = Et(
708
+ const [s, T] = ce(null), y = Et(
709
709
  Ye(jt, {
710
710
  activationConstraint: {
711
711
  distance: 5
@@ -715,71 +715,71 @@ function At({
715
715
  Ye(kt, {
716
716
  coordinateGetter: Lt
717
717
  })
718
- ), j = G((E) => {
719
- const u = St(E);
718
+ ), k = G((j) => {
719
+ const u = St(j);
720
720
  if (u.length > 0) {
721
- const h = u.filter(
722
- (g) => g.id.toString().startsWith("drop-zone-")
721
+ const d = u.filter(
722
+ (v) => v.id.toString().startsWith("drop-zone-")
723
723
  );
724
- if (h.length > 0)
725
- return console.log("🎯 Pointer collision found:", h[0].id), h;
724
+ if (d.length > 0)
725
+ return console.log("🎯 Pointer collision found:", d[0].id), d;
726
726
  }
727
- const i = Rt(E).filter(
728
- (h) => h.id.toString().startsWith("drop-zone-")
727
+ const i = Rt(j).filter(
728
+ (d) => d.id.toString().startsWith("drop-zone-")
729
729
  );
730
730
  return i.length > 0 ? (console.log("📦 Rect collision found:", i[0].id), [i[0]]) : [];
731
- }, []), S = G((E) => E.some((u) => u.children && u.children.length > 0), []), _ = G((E, u) => {
732
- const t = (i, h, g = 0, w = null) => {
733
- for (const d of i) {
734
- if (d.key === h)
735
- return { column: d, parent: w, level: g };
736
- if (d.children && d.children.length > 0) {
737
- const T = t(d.children, h, g + 1, d);
738
- if (T) return T;
731
+ }, []), S = G((j) => j.some((u) => u.children && u.children.length > 0), []), _ = G((j, u) => {
732
+ const r = (i, d, v = 0, x = null) => {
733
+ for (const p of i) {
734
+ if (p.key === d)
735
+ return { column: p, parent: x, level: v };
736
+ if (p.children && p.children.length > 0) {
737
+ const b = r(p.children, d, v + 1, p);
738
+ if (b) return b;
739
739
  }
740
740
  }
741
741
  return null;
742
742
  };
743
- return t(E, u);
744
- }, []), F = G((E, u) => {
743
+ return r(j, u);
744
+ }, []), F = G((j, u) => {
745
745
  var i;
746
- const t = _(u, E);
747
- return t && (t.column.fixed || ((i = t.parent) == null ? void 0 : i.fixed)) || !1;
748
- }, [_]), P = G((E, u) => {
749
- var h, g, w, d;
750
- if (E.columnKey === u.columnKey)
746
+ const r = _(u, j);
747
+ return r && (r.column.fixed || ((i = r.parent) == null ? void 0 : i.fixed)) || !1;
748
+ }, [_]), P = G((j, u) => {
749
+ var d, v, x, p;
750
+ if (j.columnKey === u.columnKey)
751
751
  return !1;
752
- const t = F(E.columnKey, a), i = F(u.columnKey, a);
753
- if (t !== i)
752
+ const r = F(j.columnKey, a), i = F(u.columnKey, a);
753
+ if (r !== i)
754
754
  return console.log("❌ Drop rejected: fixed status mismatch", {
755
- draggedFixed: t,
755
+ draggedFixed: r,
756
756
  targetFixed: i
757
757
  }), !1;
758
758
  if (S(a)) {
759
- const T = _(a, E.columnKey), m = _(a, u.columnKey);
760
- if (!T || !m)
759
+ const b = _(a, j.columnKey), m = _(a, u.columnKey);
760
+ if (!b || !m)
761
761
  return console.log("❌ Drop rejected: column info not found"), !1;
762
- const $ = E.isLeaf, W = u.isLeaf;
762
+ const $ = j.isLeaf, W = u.isLeaf;
763
763
  if (!$ && !W) {
764
- const V = T.level === m.level, z = T.parent === null && m.parent === null || T.parent !== null && m.parent !== null && T.parent.key === m.parent.key;
764
+ const V = b.level === m.level, z = b.parent === null && m.parent === null || b.parent !== null && m.parent !== null && b.parent.key === m.parent.key;
765
765
  return console.log("🔄 Group to group validation:", {
766
766
  sameLevel: V,
767
767
  sameParentLevel: z,
768
- draggedLevel: T.level,
768
+ draggedLevel: b.level,
769
769
  targetLevel: m.level,
770
- draggedParent: (h = T.parent) == null ? void 0 : h.key,
771
- targetParent: (g = m.parent) == null ? void 0 : g.key
770
+ draggedParent: (d = b.parent) == null ? void 0 : d.key,
771
+ targetParent: (v = m.parent) == null ? void 0 : v.key
772
772
  }), V && z;
773
773
  }
774
774
  if ($ && W) {
775
- const V = T.level === m.level, z = T.parent === null && m.parent === null || T.parent !== null && m.parent !== null && T.parent.key === m.parent.key;
775
+ const V = b.level === m.level, z = b.parent === null && m.parent === null || b.parent !== null && m.parent !== null && b.parent.key === m.parent.key;
776
776
  return console.log("🍃 Leaf to leaf validation:", {
777
777
  sameLevel: V,
778
778
  sameParent: z,
779
- draggedLevel: T.level,
779
+ draggedLevel: b.level,
780
780
  targetLevel: m.level,
781
- draggedParent: (w = T.parent) == null ? void 0 : w.key,
782
- targetParent: (d = m.parent) == null ? void 0 : d.key
781
+ draggedParent: (x = b.parent) == null ? void 0 : x.key,
782
+ targetParent: (p = m.parent) == null ? void 0 : p.key
783
783
  }), V && z;
784
784
  }
785
785
  return console.log("❌ Mixed group/leaf drop rejected", {
@@ -788,117 +788,117 @@ function At({
788
788
  }), !1;
789
789
  }
790
790
  return !0;
791
- }, [a, S, _, F]), N = G((E, u, t) => {
792
- var H, C;
793
- if (console.log("🔄 Performing column reorder:", { draggedKey: E, targetKey: u }), !S(a)) {
794
- const y = t.findIndex((v) => v.key === E), f = t.findIndex((v) => v.key === u);
795
- if (y === -1 || f === -1)
796
- return console.log("❌ Column not found in simple config"), t;
797
- const k = [...t], O = k[y];
798
- k.splice(y, 1);
799
- const L = (y < f, f);
800
- return k.splice(L, 0, O), console.log("✅ Simple header reorder completed"), k;
801
- }
802
- const i = _(a, E), h = _(a, u);
803
- if (!i || !h)
804
- return console.log("❌ Column info not found in complex config"), t;
805
- const g = JSON.parse(JSON.stringify(a)), w = (y, f) => {
806
- if (f === null)
807
- return { container: y, parentObj: null };
808
- const k = (L) => {
809
- for (const v of L) {
810
- if (v.key === f)
811
- return v;
812
- if (v.children) {
813
- const b = k(v.children);
814
- if (b) return b;
791
+ }, [a, S, _, F]), I = G((j, u, r) => {
792
+ var U, re;
793
+ if (console.log("🔄 Performing column reorder:", { draggedKey: j, targetKey: u }), !S(a)) {
794
+ const h = r.findIndex((C) => C.key === j), R = r.findIndex((C) => C.key === u);
795
+ if (h === -1 || R === -1)
796
+ return console.log("❌ Column not found in simple config"), r;
797
+ const f = [...r], w = f[h];
798
+ f.splice(h, 1);
799
+ const O = (h < R, R);
800
+ return f.splice(O, 0, w), console.log("✅ Simple header reorder completed"), f;
801
+ }
802
+ const i = _(a, j), d = _(a, u);
803
+ if (!i || !d)
804
+ return console.log("❌ Column info not found in complex config"), r;
805
+ const v = JSON.parse(JSON.stringify(a)), x = (h, R) => {
806
+ if (R === null)
807
+ return { container: h, parentObj: null };
808
+ const f = (O) => {
809
+ for (const C of O) {
810
+ if (C.key === R)
811
+ return C;
812
+ if (C.children) {
813
+ const g = f(C.children);
814
+ if (g) return g;
815
815
  }
816
816
  }
817
817
  return null;
818
- }, O = k(y);
818
+ }, w = f(h);
819
819
  return {
820
- container: (O == null ? void 0 : O.children) || y,
821
- parentObj: O
820
+ container: (w == null ? void 0 : w.children) || h,
821
+ parentObj: w
822
822
  };
823
- }, d = ((H = i.parent) == null ? void 0 : H.key) || null, T = ((C = h.parent) == null ? void 0 : C.key) || null, { container: m } = w(g, d), { container: $ } = w(g, T);
823
+ }, p = ((U = i.parent) == null ? void 0 : U.key) || null, b = ((re = d.parent) == null ? void 0 : re.key) || null, { container: m } = x(v, p), { container: $ } = x(v, b);
824
824
  if (m !== $)
825
- return console.log("❌ Different containers for drag and target"), t;
826
- const W = m.findIndex((y) => y.key === E), V = m.findIndex((y) => y.key === u);
825
+ return console.log("❌ Different containers for drag and target"), r;
826
+ const W = m.findIndex((h) => h.key === j), V = m.findIndex((h) => h.key === u);
827
827
  if (W === -1 || V === -1)
828
828
  return console.log("❌ Column not found in container", {
829
829
  draggedIndex: W,
830
830
  targetIndex: V,
831
831
  containerSize: m.length
832
- }), t;
832
+ }), r;
833
833
  const [z] = m.splice(W, 1), q = (W < V, V);
834
834
  return m.splice(q, 0, z), console.log("✅ Complex header reorder completed", {
835
- draggedKey: E,
835
+ draggedKey: j,
836
836
  targetKey: u,
837
837
  draggedIndex: W,
838
838
  targetIndex: V,
839
839
  insertIndex: q,
840
- parentKey: d
841
- }), g;
842
- }, [a, S, _]), M = G((E) => {
843
- const u = E.active.data.current;
844
- D(u), document.body.style.cursor = "grabbing", console.log("🚀 Drag started:", u);
845
- }, []), K = G((E) => {
846
- const { active: u, over: t } = E;
847
- if (!t || !u.data.current) {
840
+ parentKey: p
841
+ }), v;
842
+ }, [a, S, _]), M = G((j) => {
843
+ const u = j.active.data.current;
844
+ T(u), document.body.style.cursor = "grabbing", console.log("🚀 Drag started:", u);
845
+ }, []), K = G((j) => {
846
+ const { active: u, over: r } = j;
847
+ if (!r || !u.data.current) {
848
848
  document.body.style.cursor = "grabbing";
849
849
  return;
850
850
  }
851
- const i = u.data.current, h = t.data.current;
852
- if (!h) {
851
+ const i = u.data.current, d = r.data.current;
852
+ if (!d) {
853
853
  document.body.style.cursor = "grabbing";
854
854
  return;
855
855
  }
856
- const g = P(i, h);
857
- document.body.style.cursor = g ? "copy" : "not-allowed", console.log("🎯 Drag over:", {
858
- target: h.columnKey,
859
- isValid: g,
856
+ const v = P(i, d);
857
+ document.body.style.cursor = v ? "copy" : "not-allowed", console.log("🎯 Drag over:", {
858
+ target: d.columnKey,
859
+ isValid: v,
860
860
  draggedType: i.isLeaf ? "leaf" : "group",
861
- targetType: h.isLeaf ? "leaf" : "group"
861
+ targetType: d.isLeaf ? "leaf" : "group"
862
862
  });
863
- }, [P]), Y = G((E) => {
864
- const { active: u, over: t } = E;
865
- if (document.body.style.cursor = "", D(null), !t || !u.data.current || !t.data.current) {
863
+ }, [P]), Y = G((j) => {
864
+ const { active: u, over: r } = j;
865
+ if (document.body.style.cursor = "", T(null), !r || !u.data.current || !r.data.current) {
866
866
  console.log("❌ Invalid drop - no target");
867
867
  return;
868
868
  }
869
- const i = u.data.current, h = t.data.current;
870
- if (!P(i, h)) {
869
+ const i = u.data.current, d = r.data.current;
870
+ if (!P(i, d)) {
871
871
  console.log("❌ Invalid drop - validation failed");
872
872
  return;
873
873
  }
874
- if (console.log("✅ Valid drop:", { dragData: i, dropData: h }), c) {
875
- const g = N(
874
+ if (console.log("✅ Valid drop:", { dragData: i, dropData: d }), c) {
875
+ const v = I(
876
876
  i.columnKey,
877
- h.columnKey,
877
+ d.columnKey,
878
878
  a
879
879
  );
880
- g._dragInfo = {
880
+ v._dragInfo = {
881
881
  draggedKey: i.columnKey,
882
- targetKey: h.columnKey,
882
+ targetKey: d.columnKey,
883
883
  draggedIndex: i.index,
884
884
  targetIndex: -1
885
885
  // будет вычислен в TableHeader если нужно
886
- }, c(g), console.log("🔄 Column reorder executed");
886
+ }, c(v), console.log("🔄 Column reorder executed");
887
887
  }
888
- }, [P, c, N, a]), J = {
888
+ }, [P, c, I, a]), H = {
889
889
  activeColumn: s,
890
890
  isValidDropZone: P
891
891
  };
892
- return /* @__PURE__ */ o.jsx(Qe.Provider, { value: J, children: /* @__PURE__ */ o.jsxs(
892
+ return /* @__PURE__ */ o.jsx(Qe.Provider, { value: H, children: /* @__PURE__ */ o.jsxs(
893
893
  Dt,
894
894
  {
895
- sensors: x,
896
- collisionDetection: j,
895
+ sensors: y,
896
+ collisionDetection: k,
897
897
  onDragStart: M,
898
898
  onDragOver: K,
899
899
  onDragEnd: Y,
900
900
  children: [
901
- r,
901
+ t,
902
902
  /* @__PURE__ */ o.jsx(Tt, { children: s ? /* @__PURE__ */ o.jsx("div", { className: "column-drag-overlay", children: /* @__PURE__ */ o.jsxs("div", { className: "drag-preview", children: [
903
903
  s.isLeaf ? "🍃" : "📁",
904
904
  " ",
@@ -911,155 +911,155 @@ function At({
911
911
  ) });
912
912
  }
913
913
  function Mt({
914
- column: r,
914
+ column: t,
915
915
  index: a,
916
916
  config: c,
917
917
  fullConfig: s,
918
- sorting: D,
919
- onSort: x,
920
- onResize: j,
918
+ sorting: T,
919
+ onSort: y,
920
+ onResize: k,
921
921
  sortIcon: S,
922
922
  resizeable: _,
923
923
  draggableColumns: F,
924
924
  preset: P,
925
- headerCellClassName: N,
925
+ headerCellClassName: I,
926
926
  headerCellStyle: M,
927
927
  headerCellWrapperClassName: K,
928
928
  headerCellWrapperStyle: Y,
929
- stickyHeader: J,
930
- scrollContainerRef: E
929
+ stickyHeader: H,
930
+ scrollContainerRef: j
931
931
  }) {
932
- var ee;
933
- if (r.hidden)
932
+ var Q;
933
+ if (t.hidden)
934
934
  return null;
935
- const { activeColumn: u, isValidDropZone: t } = Wt(), i = !r.children || r.children.length === 0;
936
- me(() => (s == null ? void 0 : s.some((p) => p.children && p.children.length > 0)) || !1, [s]);
937
- const h = F, w = G((p) => {
935
+ const { activeColumn: u, isValidDropZone: r } = Wt(), i = !t.children || t.children.length === 0;
936
+ me(() => (s == null ? void 0 : s.some((E) => E.children && E.children.length > 0)) || !1, [s]);
937
+ const d = F, x = G((E) => {
938
938
  if (!s) return null;
939
- const U = (oe, se, ue = null) => {
939
+ const L = (oe, se, ue = null) => {
940
940
  for (const ne of oe) {
941
941
  if (ne.key === se)
942
942
  return ue;
943
943
  if (ne.children && ne.children.length > 0) {
944
- const de = U(ne.children, se, ne);
944
+ const de = L(ne.children, se, ne);
945
945
  if (de !== null) return de;
946
946
  }
947
947
  }
948
948
  return null;
949
949
  };
950
- return U(s, p);
951
- }, [s])(r.key), d = r.fixed || (w == null ? void 0 : w.fixed) || !1, m = G((p) => {
950
+ return L(s, E);
951
+ }, [s])(t.key), p = t.fixed || (x == null ? void 0 : x.fixed) || !1, m = G((E) => {
952
952
  if (!s) return 0;
953
- const U = (oe, se, ue = 0) => {
953
+ const L = (oe, se, ue = 0) => {
954
954
  for (const ne of oe) {
955
955
  if (ne.key === se)
956
956
  return ue;
957
957
  if (ne.children && ne.children.length > 0) {
958
- const de = U(ne.children, se, ue + 1);
958
+ const de = L(ne.children, se, ue + 1);
959
959
  if (de !== -1) return de;
960
960
  }
961
961
  }
962
962
  return -1;
963
963
  };
964
- return U(s, p);
965
- }, [s])(r.key), {
964
+ return L(s, E);
965
+ }, [s])(t.key), {
966
966
  attributes: $,
967
967
  listeners: W,
968
968
  setNodeRef: V,
969
969
  isDragging: z
970
970
  } = Pt({
971
- id: `column-${r.key}`,
971
+ id: `column-${t.key}`,
972
972
  data: {
973
973
  type: "table-column",
974
- columnKey: r.key,
975
- isFixed: d,
976
- parentKey: w == null ? void 0 : w.key,
974
+ columnKey: t.key,
975
+ isFixed: p,
976
+ parentKey: x == null ? void 0 : x.key,
977
977
  level: m,
978
978
  index: a,
979
979
  isLeaf: i
980
980
  // ✅ Добавляем информацию о типе колонки
981
981
  },
982
- disabled: !h
982
+ disabled: !d
983
983
  }), {
984
984
  setNodeRef: q,
985
- isOver: H
985
+ isOver: U
986
986
  } = Ot({
987
- id: `drop-zone-${r.key}`,
987
+ id: `drop-zone-${t.key}`,
988
988
  data: {
989
989
  type: "column-drop-zone",
990
- columnKey: r.key,
991
- isFixed: d,
992
- accepts: [d ? "fixed" : "non-fixed"],
990
+ columnKey: t.key,
991
+ isFixed: p,
992
+ accepts: [p ? "fixed" : "non-fixed"],
993
993
  isLeaf: i
994
994
  // ✅ Добавляем информацию о типе колонки
995
995
  },
996
996
  disabled: !1
997
- }), C = G((p) => {
998
- V(p), q(p);
999
- }, [V, q]), y = me(() => {
1000
- if (!u || !H) return !1;
1001
- const p = {
997
+ }), re = G((E) => {
998
+ V(E), q(E);
999
+ }, [V, q]), h = me(() => {
1000
+ if (!u || !U) return !1;
1001
+ const E = {
1002
1002
  type: "column-drop-zone",
1003
- columnKey: r.key,
1004
- isFixed: d,
1005
- accepts: [d ? "fixed" : "non-fixed"],
1003
+ columnKey: t.key,
1004
+ isFixed: p,
1005
+ accepts: [p ? "fixed" : "non-fixed"],
1006
1006
  isLeaf: i
1007
1007
  };
1008
- return t(u, p);
1009
- }, [u, H, r.key, d, t, i]), f = me(() => z ? "grabbing" : H && u ? y ? "copy" : "not-allowed" : "default", [z, H, u, y]), k = r.fixed && !r.width ? 200 : r.width, O = r.fixed && !r.minWidth ? 200 : r.minWidth;
1010
- let L = r.fixedLeft ? r.fixedLeft : 0;
1008
+ return r(u, E);
1009
+ }, [u, U, t.key, p, r, i]), R = me(() => z ? "grabbing" : U && u ? h ? "copy" : "not-allowed" : "default", [z, U, u, h]), f = t.fixed && !t.width ? 200 : t.width, w = t.fixed && !t.minWidth ? 200 : t.minWidth;
1010
+ let O = t.fixedLeft ? t.fixedLeft : 0;
1011
1011
  if (a !== 0)
1012
- for (let p = 0; p < a; p++) {
1013
- const U = c[p];
1014
- U.fixed && !U.hidden && (L += (U.width || U.minWidth || 200) + (U.fixedLeft || 0));
1012
+ for (let E = 0; E < a; E++) {
1013
+ const L = c[E];
1014
+ L.fixed && !L.hidden && (O += (L.width || L.minWidth || 200) + (L.fixedLeft || 0));
1015
1015
  }
1016
- const b = ((p) => {
1017
- if (p.groupColor)
1018
- return p.groupColor;
1016
+ const g = ((E) => {
1017
+ if (E.groupColor)
1018
+ return E.groupColor;
1019
1019
  if (s) {
1020
- const U = (se, ue) => {
1020
+ const L = (se, ue) => {
1021
1021
  for (const ne of se)
1022
1022
  if (ne.children) {
1023
1023
  if (ne.children.some((we) => we.key === ue))
1024
1024
  return ne;
1025
- const de = U(ne.children, ue);
1025
+ const de = L(ne.children, ue);
1026
1026
  if (de) return de;
1027
1027
  }
1028
1028
  return null;
1029
- }, oe = U(s, p.key);
1029
+ }, oe = L(s, E.key);
1030
1030
  return oe == null ? void 0 : oe.groupColor;
1031
1031
  }
1032
- })(r);
1033
- let X = "currentColor", Q = "currentColor";
1034
- return D.sort_field === r.key && (D.sort_order === "ASC" && (X = "#5329FF"), D.sort_order === "DESC" && (Q = "#5329FF")), /* @__PURE__ */ o.jsx(
1032
+ })(t);
1033
+ let J = "currentColor", X = "currentColor";
1034
+ return T.sort_field === t.key && (T.sort_order === "ASC" && (J = "#5329FF"), T.sort_order === "DESC" && (X = "#5329FF")), /* @__PURE__ */ o.jsx(
1035
1035
  "th",
1036
1036
  {
1037
- ref: C,
1038
- "data-column-key": r.key,
1037
+ ref: re,
1038
+ "data-column-key": t.key,
1039
1039
  className: `
1040
1040
  radar-table__header-cell
1041
1041
  ${P ? P + "__header-cell" : ""}
1042
- ${N || ""}
1042
+ ${I || ""}
1043
1043
  ${z ? "dragging" : ""}
1044
- ${H ? "drag-over" : ""}
1045
- ${y && H ? "valid-drop-zone" : ""}
1046
- ${H && !y ? "invalid-drop-zone" : ""}
1044
+ ${U ? "drag-over" : ""}
1045
+ ${h && U ? "valid-drop-zone" : ""}
1046
+ ${U && !h ? "invalid-drop-zone" : ""}
1047
1047
  ${i ? "leaf-header" : "group-header"}
1048
- ${r.className || ""}`,
1049
- colSpan: r.colSpan || 1,
1050
- rowSpan: r.rowSpan || 1,
1048
+ ${t.className || ""}`,
1049
+ colSpan: t.colSpan || 1,
1050
+ rowSpan: t.rowSpan || 1,
1051
1051
  style: {
1052
- width: k,
1053
- minWidth: O,
1054
- position: r.fixed ? "sticky" : "static",
1055
- top: J && typeof J == "number" ? J : 0,
1056
- left: L,
1057
- borderRight: r.fixed && !((ee = c[a + 1]) != null && ee.fixed) ? "1px solid #E8E8E8" : "none",
1058
- zIndex: r.fixed ? 2 : "auto",
1059
- backgroundColor: b,
1060
- cursor: f,
1052
+ width: f,
1053
+ minWidth: w,
1054
+ position: t.fixed ? "sticky" : "static",
1055
+ top: H && typeof H == "number" ? H : 0,
1056
+ left: O,
1057
+ borderRight: t.fixed && !((Q = c[a + 1]) != null && Q.fixed) ? "1px solid #E8E8E8" : "none",
1058
+ zIndex: t.fixed ? 2 : "auto",
1059
+ backgroundColor: g,
1060
+ cursor: R,
1061
1061
  ...M,
1062
- ...r.style
1062
+ ...t.style
1063
1063
  },
1064
1064
  children: /* @__PURE__ */ o.jsxs(
1065
1065
  "div",
@@ -1071,7 +1071,7 @@ function Mt({
1071
1071
  `,
1072
1072
  style: Y,
1073
1073
  children: [
1074
- h && /* @__PURE__ */ o.jsx(
1074
+ d && /* @__PURE__ */ o.jsx(
1075
1075
  "div",
1076
1076
  {
1077
1077
  className: `radar-table__drag-handle ${z ? "dragging" : ""} ${i ? "" : "group-drag-handle"}`,
@@ -1091,52 +1091,52 @@ function Mt({
1091
1091
  /* @__PURE__ */ o.jsx("div", { className: "radar-table__header-cell-text-wrapper", children: /* @__PURE__ */ o.jsx(
1092
1092
  "span",
1093
1093
  {
1094
- title: r.title,
1094
+ title: t.title,
1095
1095
  onClick: () => {
1096
- const { sort_order: p } = D;
1097
- let U = {
1098
- columnKey: r.key,
1096
+ const { sort_order: E } = T;
1097
+ let L = {
1098
+ columnKey: t.key,
1099
1099
  direction: "ASC"
1100
1100
  };
1101
- p === "ASC" && (U.direction = "DESC"), p === "DESC" && (U.columnKey = void 0, U.direction = void 0), x(U.columnKey, U.direction);
1101
+ E === "ASC" && (L.direction = "DESC"), E === "DESC" && (L.columnKey = void 0, L.direction = void 0), y(L.columnKey, L.direction);
1102
1102
  },
1103
1103
  style: {
1104
- cursor: r.sortable ? "pointer" : "default",
1104
+ cursor: t.sortable ? "pointer" : "default",
1105
1105
  userSelect: "none"
1106
1106
  },
1107
- children: r.title
1107
+ children: t.title
1108
1108
  }
1109
1109
  ) }),
1110
- r.sortable && !S && i && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
1110
+ t.sortable && !S && i && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
1111
1111
  /* @__PURE__ */ o.jsx(
1112
1112
  "button",
1113
1113
  {
1114
1114
  className: "radar-table__sort-button",
1115
- onClick: (p) => x(r.key, "ASC"),
1116
- title: `Сортировать по ${r.title}`,
1117
- children: /* @__PURE__ */ o.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ o.jsx("path", { fill: X, d: "M4.99264 0.21967C5.28553 -0.0732233 5.76041 -0.0732233 6.0533 0.21967L10.8263 4.99264C11.1192 5.28553 11.1192 5.76041 10.8263 6.0533C10.5334 6.34619 10.0585 6.34619 9.76561 6.0533L6.27297 2.56066L5.5 1.78769L4.77297 2.56066L1.28033 6.0533C0.987437 6.34619 0.512563 6.34619 0.21967 6.0533C-0.0732234 5.76041 -0.0732234 5.28553 0.21967 4.99264L4.99264 0.21967Z" }) })
1115
+ onClick: (E) => y(t.key, "ASC"),
1116
+ title: `Сортировать по ${t.title}`,
1117
+ children: /* @__PURE__ */ o.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ o.jsx("path", { fill: J, d: "M4.99264 0.21967C5.28553 -0.0732233 5.76041 -0.0732233 6.0533 0.21967L10.8263 4.99264C11.1192 5.28553 11.1192 5.76041 10.8263 6.0533C10.5334 6.34619 10.0585 6.34619 9.76561 6.0533L6.27297 2.56066L5.5 1.78769L4.77297 2.56066L1.28033 6.0533C0.987437 6.34619 0.512563 6.34619 0.21967 6.0533C-0.0732234 5.76041 -0.0732234 5.28553 0.21967 4.99264L4.99264 0.21967Z" }) })
1118
1118
  }
1119
1119
  ),
1120
1120
  /* @__PURE__ */ o.jsx(
1121
1121
  "button",
1122
1122
  {
1123
1123
  className: "radar-table__sort-button",
1124
- onClick: (p) => x(r.key, "DESC"),
1125
- title: `Сортировать по ${r.title}`,
1126
- children: /* @__PURE__ */ o.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ o.jsx("path", { fill: Q, d: "M4.99264 6.78033C5.28553 7.07322 5.76041 7.07322 6.0533 6.78033L10.8263 2.00736C11.1192 1.71447 11.1192 1.23959 10.8263 0.946699C10.5334 0.653806 10.0585 0.653806 9.76561 0.946699L6.27297 4.43934L5.5 5.21231L4.77297 4.43934L1.28033 0.946699C0.987437 0.653806 0.512563 0.653806 0.21967 0.946699C-0.0732234 1.23959 -0.0732234 1.71447 0.21967 2.00736L4.99264 6.78033Z" }) })
1124
+ onClick: (E) => y(t.key, "DESC"),
1125
+ title: `Сортировать по ${t.title}`,
1126
+ children: /* @__PURE__ */ o.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ o.jsx("path", { fill: X, d: "M4.99264 6.78033C5.28553 7.07322 5.76041 7.07322 6.0533 6.78033L10.8263 2.00736C11.1192 1.71447 11.1192 1.23959 10.8263 0.946699C10.5334 0.653806 10.0585 0.653806 9.76561 0.946699L6.27297 4.43934L5.5 5.21231L4.77297 4.43934L1.28033 0.946699C0.987437 0.653806 0.512563 0.653806 0.21967 0.946699C-0.0732234 1.23959 -0.0732234 1.71447 0.21967 2.00736L4.99264 6.78033Z" }) })
1127
1127
  }
1128
1128
  )
1129
1129
  ] }),
1130
- r.sortable && S && i && S(D.sort_field, D.sort_order),
1131
- r.tooltipText && /* @__PURE__ */ o.jsx(Ft, { text: r.tooltipText, children: r.tooltipIcon }),
1130
+ t.sortable && S && i && S(T.sort_field, T.sort_order),
1131
+ t.tooltipText && /* @__PURE__ */ o.jsx(Ft, { text: t.tooltipText, children: t.tooltipIcon }),
1132
1132
  _ && i && /* @__PURE__ */ o.jsx(
1133
1133
  $t,
1134
1134
  {
1135
- column: r,
1136
- currWidth: k,
1137
- currMinWidth: O,
1138
- onResize: j,
1139
- scrollContainerRef: E
1135
+ column: t,
1136
+ currWidth: f,
1137
+ currMinWidth: w,
1138
+ onResize: k,
1139
+ scrollContainerRef: j
1140
1140
  }
1141
1141
  )
1142
1142
  ]
@@ -1145,225 +1145,225 @@ function Mt({
1145
1145
  }
1146
1146
  );
1147
1147
  }
1148
- function He({
1149
- config: r,
1148
+ function Je({
1149
+ config: t,
1150
1150
  fullConfig: a,
1151
1151
  onSort: c,
1152
1152
  onResize: s,
1153
- onColumnReorder: D,
1153
+ onColumnReorder: T,
1154
1154
  // ✅ Сохранен (понадобится для передачи в TableDndProvider)
1155
- sortIcon: x,
1156
- resizeable: j,
1155
+ sortIcon: y,
1156
+ resizeable: k,
1157
1157
  draggableColumns: S,
1158
1158
  preset: _,
1159
1159
  headerClassName: F,
1160
1160
  headerStyle: P,
1161
- headerRowClassName: N,
1161
+ headerRowClassName: I,
1162
1162
  headerRowStyle: M,
1163
1163
  headerCellClassName: K,
1164
1164
  headerCellStyle: Y,
1165
- headerCellWrapperClassName: J,
1166
- headerCellWrapperStyle: E,
1165
+ headerCellWrapperClassName: H,
1166
+ headerCellWrapperStyle: j,
1167
1167
  stickyHeader: u,
1168
- scrollContainerRef: t
1168
+ scrollContainerRef: r
1169
1169
  // ✅ Сохранен (для передачи в HeaderCell)
1170
1170
  }) {
1171
- const [i, h] = ce({
1171
+ const [i, d] = ce({
1172
1172
  sort_field: void 0,
1173
1173
  sort_order: void 0
1174
- }), g = G((w, d) => {
1175
- const { sort_field: T, sort_order: m } = i;
1174
+ }), v = G((x, p) => {
1175
+ const { sort_field: b, sort_order: m } = i;
1176
1176
  let $ = {
1177
- sort_field: w,
1178
- sort_order: d
1177
+ sort_field: x,
1178
+ sort_order: p
1179
1179
  };
1180
- T === w && m === d && ($ = {
1180
+ b === x && m === p && ($ = {
1181
1181
  sort_field: void 0,
1182
1182
  sort_order: void 0
1183
- }), console.log("newSortingState", $), h($), c == null || c($.sort_field, $.sort_order);
1183
+ }), console.log("newSortingState", $), d($), c == null || c($.sort_field, $.sort_order);
1184
1184
  }, [i.sort_order, c]);
1185
1185
  return /* @__PURE__ */ o.jsx(
1186
1186
  "tr",
1187
1187
  {
1188
- className: `radar-table__header-row ${_ ? _ + "__header-row" : ""} ${N || ""}`,
1188
+ className: `radar-table__header-row ${_ ? _ + "__header-row" : ""} ${I || ""}`,
1189
1189
  style: M,
1190
- children: r.map((w, d) => /* @__PURE__ */ o.jsx(
1190
+ children: t.map((x, p) => /* @__PURE__ */ o.jsx(
1191
1191
  Mt,
1192
1192
  {
1193
- column: w,
1194
- index: d,
1195
- config: r,
1193
+ column: x,
1194
+ index: p,
1195
+ config: t,
1196
1196
  fullConfig: a,
1197
1197
  sorting: i,
1198
- onSort: g,
1198
+ onSort: v,
1199
1199
  onResize: s,
1200
- sortIcon: x,
1201
- resizeable: j,
1200
+ sortIcon: y,
1201
+ resizeable: k,
1202
1202
  draggableColumns: S,
1203
1203
  preset: _,
1204
1204
  headerCellClassName: K,
1205
1205
  headerCellStyle: Y,
1206
- headerCellWrapperClassName: J,
1207
- headerCellWrapperStyle: E,
1206
+ headerCellWrapperClassName: H,
1207
+ headerCellWrapperStyle: j,
1208
1208
  stickyHeader: u,
1209
- scrollContainerRef: t
1209
+ scrollContainerRef: r
1210
1210
  },
1211
- w.key
1211
+ x.key
1212
1212
  ))
1213
1213
  }
1214
1214
  );
1215
1215
  }
1216
- function Vt(r) {
1216
+ function Vt(t) {
1217
1217
  const {
1218
1218
  config: a,
1219
1219
  preset: c,
1220
1220
  headerClassName: s,
1221
- headerStyle: D,
1222
- stickyHeader: x,
1223
- headerRowClassName: j,
1221
+ headerStyle: T,
1222
+ stickyHeader: y,
1223
+ headerRowClassName: k,
1224
1224
  headerRowStyle: S,
1225
1225
  headerCellClassName: _,
1226
1226
  headerCellStyle: F,
1227
1227
  headerCellWrapperClassName: P,
1228
- headerCellWrapperStyle: N,
1228
+ headerCellWrapperStyle: I,
1229
1229
  onResize: M,
1230
1230
  onColumnReorder: K
1231
- } = r, Y = a.some((t) => t.children && t.children.length > 0), J = me(() => {
1231
+ } = t, Y = a.some((r) => r.children && r.children.length > 0), H = me(() => {
1232
1232
  if (!Y)
1233
1233
  return null;
1234
- const t = {}, i = (h, g = 0) => {
1235
- t[g] || (t[g] = []), h.forEach((w) => {
1236
- w.hidden || (t[g].push(w), w.children && w.children.length > 0 && i(w.children, g + 1));
1234
+ const r = {}, i = (d, v = 0) => {
1235
+ r[v] || (r[v] = []), d.forEach((x) => {
1236
+ x.hidden || (r[v].push(x), x.children && x.children.length > 0 && i(x.children, v + 1));
1237
1237
  });
1238
1238
  };
1239
- return i(a), t;
1240
- }, [a, Y]), E = G((t, i) => {
1239
+ return i(a), r;
1240
+ }, [a, Y]), j = G((r, i) => {
1241
1241
  if (!M) return;
1242
- const h = (d, T) => {
1243
- for (const m of d) {
1244
- if (m.key === T) return m;
1242
+ const d = (p, b) => {
1243
+ for (const m of p) {
1244
+ if (m.key === b) return m;
1245
1245
  if (m.children) {
1246
- const $ = h(m.children, T);
1246
+ const $ = d(m.children, b);
1247
1247
  if ($) return $;
1248
1248
  }
1249
1249
  }
1250
1250
  return null;
1251
- }, g = (d) => {
1252
- if (!d.children || d.children.length === 0)
1253
- return [d];
1254
- const T = [];
1255
- return d.children.forEach((m) => {
1256
- m.hidden || T.push(...g(m));
1257
- }), T;
1258
- }, w = h(a, t);
1259
- if (w)
1260
- if (w.children && w.children.length > 0) {
1261
- const d = g(w);
1262
- if (d.length > 0) {
1263
- const T = d.reduce(($, W) => $ + (W.width || W.minWidth || 200), 0), m = i / T;
1264
- d.forEach(($) => {
1251
+ }, v = (p) => {
1252
+ if (!p.children || p.children.length === 0)
1253
+ return [p];
1254
+ const b = [];
1255
+ return p.children.forEach((m) => {
1256
+ m.hidden || b.push(...v(m));
1257
+ }), b;
1258
+ }, x = d(a, r);
1259
+ if (x)
1260
+ if (x.children && x.children.length > 0) {
1261
+ const p = v(x);
1262
+ if (p.length > 0) {
1263
+ const b = p.reduce(($, W) => $ + (W.width || W.minWidth || 200), 0), m = i / b;
1264
+ p.forEach(($) => {
1265
1265
  const W = Math.max(50, Math.round(($.width || $.minWidth || 200) * m));
1266
1266
  M($.key, W);
1267
1267
  });
1268
1268
  }
1269
1269
  } else
1270
- M(t, i);
1271
- }, [a, M]), u = G((t) => {
1270
+ M(r, i);
1271
+ }, [a, M]), u = G((r) => {
1272
1272
  if (!K) return;
1273
1273
  if (!Y) {
1274
- K(t);
1274
+ K(r);
1275
1275
  return;
1276
1276
  }
1277
- const i = (v, b, X = [], Q = null) => {
1278
- for (let ee = 0; ee < v.length; ee++) {
1279
- const p = v[ee], U = [...X, ee];
1280
- if (p.key === b)
1277
+ const i = (C, g, J = [], X = null) => {
1278
+ for (let Q = 0; Q < C.length; Q++) {
1279
+ const E = C[Q], L = [...J, Q];
1280
+ if (E.key === g)
1281
1281
  return {
1282
- column: p,
1283
- parent: Q,
1284
- path: U,
1285
- level: X.length
1282
+ column: E,
1283
+ parent: X,
1284
+ path: L,
1285
+ level: J.length
1286
1286
  };
1287
- if (p.children && p.children.length > 0) {
1288
- const oe = i(p.children, b, U, p);
1287
+ if (E.children && E.children.length > 0) {
1288
+ const oe = i(E.children, g, L, E);
1289
1289
  if (oe)
1290
1290
  return oe;
1291
1291
  }
1292
1292
  }
1293
1293
  return null;
1294
1294
  };
1295
- if (!Object.values(J).find((v) => {
1296
- if (v.length !== t.length) return !1;
1297
- const b = v.map((Q) => Q.key).sort(), X = t.map((Q) => Q.key).sort();
1298
- return JSON.stringify(b) === JSON.stringify(X);
1295
+ if (!Object.values(H).find((C) => {
1296
+ if (C.length !== r.length) return !1;
1297
+ const g = C.map((X) => X.key).sort(), J = r.map((X) => X.key).sort();
1298
+ return JSON.stringify(g) === JSON.stringify(J);
1299
1299
  }))
1300
1300
  return;
1301
- const g = t._dragInfo;
1302
- if (!(g != null && g.draggedKey) || !(g != null && g.targetKey))
1301
+ const v = r._dragInfo;
1302
+ if (!(v != null && v.draggedKey) || !(v != null && v.targetKey))
1303
1303
  return;
1304
- const { draggedKey: w, targetKey: d } = g, T = i(a, w), m = i(a, d);
1305
- if (!T || !m) return;
1306
- const { column: $, parent: W, path: V, level: z } = T, { column: q, parent: H, path: C, level: y } = m, f = (v, b) => v.fixed || (b == null ? void 0 : b.fixed) || !1, k = f($, W), O = f(q, H);
1307
- if (z !== y || W !== H || W && H && W.key !== H.key || k !== O)
1304
+ const { draggedKey: x, targetKey: p } = v, b = i(a, x), m = i(a, p);
1305
+ if (!b || !m) return;
1306
+ const { column: $, parent: W, path: V, level: z } = b, { column: q, parent: U, path: re, level: h } = m, R = (C, g) => C.fixed || (g == null ? void 0 : g.fixed) || !1, f = R($, W), w = R(q, U);
1307
+ if (z !== h || W !== U || W && U && W.key !== U.key || f !== w)
1308
1308
  return;
1309
- const L = JSON.parse(JSON.stringify(a));
1309
+ const O = JSON.parse(JSON.stringify(a));
1310
1310
  if (z === 0) {
1311
- const v = V[0], b = C[0], [X] = L.splice(v, 1);
1312
- L.splice(b, 0, X);
1311
+ const C = V[0], g = re[0], [J] = O.splice(C, 1);
1312
+ O.splice(g, 0, J);
1313
1313
  } else {
1314
- const v = V.slice(0, -1);
1315
- let b = L;
1316
- for (let p = 0; p < v.length; p++)
1317
- p === 0 ? b = b[v[p]] : b = b.children[v[p]];
1318
- if (!b || !b.children)
1314
+ const C = V.slice(0, -1);
1315
+ let g = O;
1316
+ for (let E = 0; E < C.length; E++)
1317
+ E === 0 ? g = g[C[E]] : g = g.children[C[E]];
1318
+ if (!g || !g.children)
1319
1319
  return;
1320
- const X = V[V.length - 1], Q = C[C.length - 1];
1321
- if (X < 0 || X >= b.children.length || Q < 0 || Q >= b.children.length)
1320
+ const J = V[V.length - 1], X = re[re.length - 1];
1321
+ if (J < 0 || J >= g.children.length || X < 0 || X >= g.children.length)
1322
1322
  return;
1323
- const [ee] = b.children.splice(X, 1);
1324
- b.children.splice(Q, 0, ee);
1323
+ const [Q] = g.children.splice(J, 1);
1324
+ g.children.splice(X, 0, Q);
1325
1325
  }
1326
- K(L);
1327
- }, [a, K, J]);
1326
+ K(O);
1327
+ }, [a, K, H]);
1328
1328
  return Y ? /* @__PURE__ */ o.jsx(
1329
1329
  "thead",
1330
1330
  {
1331
1331
  className: `radar-table__header ${c ? c + "__header" : ""} ${s}`,
1332
1332
  style: {
1333
- position: x ? "sticky" : "static",
1334
- top: x && typeof x == "number" ? x : 0,
1335
- ...D
1333
+ position: y ? "sticky" : "static",
1334
+ top: y && typeof y == "number" ? y : 0,
1335
+ ...T
1336
1336
  },
1337
- children: Object.keys(J).map((t) => {
1338
- const i = J[parseInt(t)], h = parseInt(t);
1337
+ children: Object.keys(H).map((r) => {
1338
+ const i = H[parseInt(r)], d = parseInt(r);
1339
1339
  return /* @__PURE__ */ o.jsx(
1340
- He,
1340
+ Je,
1341
1341
  {
1342
1342
  config: i,
1343
1343
  fullConfig: a,
1344
- onSort: r.onSort,
1345
- onResize: E,
1344
+ onSort: t.onSort,
1345
+ onResize: j,
1346
1346
  onColumnReorder: u,
1347
- resizeable: r.resizeable,
1348
- draggableColumns: r.draggableColumns,
1347
+ resizeable: t.resizeable,
1348
+ draggableColumns: t.draggableColumns,
1349
1349
  preset: c,
1350
1350
  headerClassName: s,
1351
- headerStyle: D,
1352
- headerRowClassName: j,
1351
+ headerStyle: T,
1352
+ headerRowClassName: k,
1353
1353
  headerRowStyle: {
1354
1354
  ...S,
1355
- position: x ? "sticky" : "static",
1356
- top: x && typeof x == "number" ? x + (h - 1) * 50 : 0
1355
+ position: y ? "sticky" : "static",
1356
+ top: y && typeof y == "number" ? y + (d - 1) * 50 : 0
1357
1357
  },
1358
1358
  headerCellClassName: _,
1359
1359
  headerCellStyle: F,
1360
1360
  headerCellWrapperClassName: P,
1361
- headerCellWrapperStyle: N,
1362
- stickyHeader: x,
1363
- sortIcon: r.sortIcon,
1364
- scrollContainerRef: r.scrollContainerRef
1361
+ headerCellWrapperStyle: I,
1362
+ stickyHeader: y,
1363
+ sortIcon: t.sortIcon,
1364
+ scrollContainerRef: t.scrollContainerRef
1365
1365
  },
1366
- t
1366
+ r
1367
1367
  );
1368
1368
  })
1369
1369
  }
@@ -1372,18 +1372,18 @@ function Vt(r) {
1372
1372
  {
1373
1373
  className: `radar-table__header ${c ? c + "__header" : ""} ${s}`,
1374
1374
  style: {
1375
- position: x ? "sticky" : "static",
1376
- top: x && typeof x == "number" ? x : 0,
1377
- ...D
1375
+ position: y ? "sticky" : "static",
1376
+ top: y && typeof y == "number" ? y : 0,
1377
+ ...T
1378
1378
  },
1379
- children: /* @__PURE__ */ o.jsx(He, { ...r, fullConfig: a, onResize: E, onColumnReorder: u, scrollContainerRef: r.scrollContainerRef })
1379
+ children: /* @__PURE__ */ o.jsx(Je, { ...t, fullConfig: a, onResize: j, onColumnReorder: u, scrollContainerRef: t.scrollContainerRef })
1380
1380
  }
1381
1381
  );
1382
1382
  }
1383
- const zt = (r, a) => {
1383
+ const zt = (t, a) => {
1384
1384
  let c = "0";
1385
- if (r != null) {
1386
- const s = parseFloat(r);
1385
+ if (t != null) {
1386
+ const s = parseFloat(t);
1387
1387
  if (Number.isNaN(s))
1388
1388
  return a && (c += ` ${a}`), c;
1389
1389
  c = s.toLocaleString("ru-RU", {
@@ -1393,85 +1393,81 @@ const zt = (r, a) => {
1393
1393
  return c;
1394
1394
  }, Kt = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
1395
1395
  function Yt({
1396
- draggableRows: r = !1,
1396
+ draggableRows: t = !1,
1397
1397
  dataSource: a,
1398
1398
  config: c,
1399
1399
  rowKey: s,
1400
- loading: D = !1,
1401
- onRowReorder: x,
1402
- preset: j,
1400
+ loading: T = !1,
1401
+ onRowReorder: y,
1402
+ preset: k,
1403
1403
  customCellRender: S,
1404
1404
  bodyClassName: _,
1405
1405
  bodyStyle: F,
1406
1406
  bodyRowClassName: P,
1407
- bodyRowStyle: N,
1407
+ bodyRowStyle: I,
1408
1408
  bodyCellClassName: M,
1409
1409
  bodyCellStyle: K,
1410
1410
  bodyCellWrapperClassName: Y,
1411
- bodyCellWrapperStyle: J,
1412
- noDataRender: E,
1413
- scrollContainerRef: u
1411
+ bodyCellWrapperStyle: H,
1412
+ noDataRender: j,
1413
+ scrollContainerRef: u,
1414
+ recalculateRowHeight: r
1414
1415
  }) {
1415
- var H;
1416
- const [t, i] = ce(null), [h, g] = ce(null);
1416
+ var re;
1417
+ const [i, d] = ce(null), [v, x] = ce(null);
1417
1418
  Ce(() => {
1418
- if (Kt) {
1419
- const C = () => {
1420
- const f = document.querySelectorAll(".radar-table__body-row");
1421
- document.querySelectorAll(".radar-table__header-row").forEach((O) => {
1422
- const L = O.querySelectorAll(".radar-table__header-cell-wrapper");
1423
- let v = 0;
1424
- L.forEach((b) => {
1425
- b.style.height = "auto", v = Math.max(v, b.offsetHeight);
1426
- }), L.forEach((b) => {
1427
- b.style.height = v + "px";
1428
- });
1429
- }), f.forEach((O) => {
1430
- const L = O.querySelectorAll(".radar-table__body-cell-wrapper");
1431
- let v = 0;
1432
- L.forEach((b) => {
1433
- b.style.height = "auto", v = Math.max(v, b.offsetHeight);
1434
- }), L.forEach((b) => {
1435
- b.style.height = v + "px";
1436
- });
1419
+ Kt && r && (() => {
1420
+ const R = document.querySelectorAll(".radar-table__body-row");
1421
+ document.querySelectorAll(".radar-table__header-row").forEach((w) => {
1422
+ const O = w.querySelectorAll(".radar-table__header-cell-wrapper");
1423
+ let C = 0;
1424
+ O.forEach((g) => {
1425
+ g.style.height = "auto", C = Math.max(C, g.offsetHeight);
1426
+ }), O.forEach((g) => {
1427
+ g.style.height = C + "px";
1437
1428
  });
1438
- };
1439
- C();
1440
- const y = setTimeout(C, 100);
1441
- return () => clearTimeout(y);
1442
- }
1429
+ }), R.forEach((w) => {
1430
+ const O = w.querySelectorAll(".radar-table__body-cell-wrapper");
1431
+ let C = 0;
1432
+ O.forEach((g) => {
1433
+ g.style.height = "auto", C = Math.max(C, g.offsetHeight);
1434
+ }), O.forEach((g) => {
1435
+ g.style.height = C + "px";
1436
+ });
1437
+ });
1438
+ })();
1443
1439
  }, [a, c]);
1444
- const d = ((C) => {
1445
- const y = [], f = (k) => {
1446
- k.forEach((O) => {
1447
- O.children && O.children.length > 0 ? f(O.children) : y.push(O);
1440
+ const b = ((h) => {
1441
+ const R = [], f = (w) => {
1442
+ w.forEach((O) => {
1443
+ O.children && O.children.length > 0 ? f(O.children) : R.push(O);
1448
1444
  });
1449
1445
  };
1450
- return f(C), y;
1451
- })(c), T = (C) => {
1452
- if (C.groupColor)
1453
- return C.groupColor;
1454
- const y = (k, O) => {
1455
- for (const L of k)
1456
- if (L.children) {
1457
- if (L.children.some((b) => b.key === O))
1458
- return L;
1459
- const v = y(L.children, O);
1460
- if (v) return v;
1446
+ return f(h), R;
1447
+ })(c), m = (h) => {
1448
+ if (h.groupColor)
1449
+ return h.groupColor;
1450
+ const R = (w, O) => {
1451
+ for (const C of w)
1452
+ if (C.children) {
1453
+ if (C.children.some((J) => J.key === O))
1454
+ return C;
1455
+ const g = R(C.children, O);
1456
+ if (g) return g;
1461
1457
  }
1462
1458
  return null;
1463
- }, f = y(c, C.key);
1459
+ }, f = R(c, h.key);
1464
1460
  return f == null ? void 0 : f.groupColor;
1465
- }, m = G((C, y) => {
1466
- if (!y) {
1467
- C.preventDefault();
1461
+ }, $ = G((h, R) => {
1462
+ if (!R) {
1463
+ h.preventDefault();
1468
1464
  return;
1469
1465
  }
1470
- i(y), C.dataTransfer.effectAllowed = "move", C.dataTransfer.setData("text/plain", y), document.body.style.cursor = "grabbing";
1471
- const f = a.find((k) => (s ? s(k) : JSON.stringify(k)) === y);
1466
+ d(R), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", R), document.body.style.cursor = "grabbing";
1467
+ const f = a.find((w) => (s ? s(w) : JSON.stringify(w)) === R);
1472
1468
  if (f) {
1473
- const k = document.createElement("div");
1474
- k.style.cssText = `
1469
+ const w = document.createElement("div");
1470
+ w.style.cssText = `
1475
1471
  background: white;
1476
1472
  border-radius: 6px;
1477
1473
  padding: 8px 12px;
@@ -1485,119 +1481,119 @@ function Yt({
1485
1481
  overflow: hidden;
1486
1482
  text-overflow: ellipsis;
1487
1483
  `;
1488
- const O = d[0];
1484
+ const O = b[0];
1489
1485
  if (O) {
1490
- const v = f[O.key];
1491
- k.textContent = (v == null ? void 0 : v.toString()) || "Строка";
1486
+ const g = f[O.key];
1487
+ w.textContent = (g == null ? void 0 : g.toString()) || "Строка";
1492
1488
  } else
1493
- k.textContent = "Строка";
1494
- document.body.appendChild(k), k.style.position = "absolute", k.style.top = "-1000px", k.style.left = "-1000px", C.dataTransfer.setDragImage(k, 10, 10);
1495
- const L = setTimeout(() => {
1496
- document.body.contains(k) && document.body.removeChild(k);
1489
+ w.textContent = "Строка";
1490
+ document.body.appendChild(w), w.style.position = "absolute", w.style.top = "-1000px", w.style.left = "-1000px", h.dataTransfer.setDragImage(w, 10, 10);
1491
+ const C = setTimeout(() => {
1492
+ document.body.contains(w) && document.body.removeChild(w);
1497
1493
  }, 0);
1498
- return () => clearTimeout(L);
1499
- }
1500
- }, []), $ = G((C) => {
1501
- C.preventDefault(), C.dataTransfer.dropEffect = "move";
1502
- }, []), W = G((C, y) => {
1503
- C.preventDefault(), t !== y && g(y);
1504
- }, [t]), V = G((C) => {
1505
- C.preventDefault(), g(null);
1506
- }, []), z = G(() => {
1507
- i(null), g(null), document.body.style.cursor = "";
1508
- }, []), q = G((C, y) => {
1509
- if (C.preventDefault(), !t || t === y)
1494
+ return () => clearTimeout(C);
1495
+ }
1496
+ }, []), W = G((h) => {
1497
+ h.preventDefault(), h.dataTransfer.dropEffect = "move";
1498
+ }, []), V = G((h, R) => {
1499
+ h.preventDefault(), i !== R && x(R);
1500
+ }, [i]), z = G((h) => {
1501
+ h.preventDefault(), x(null);
1502
+ }, []), q = G(() => {
1503
+ d(null), x(null), document.body.style.cursor = "";
1504
+ }, []), U = G((h, R) => {
1505
+ if (h.preventDefault(), !i || i === R)
1510
1506
  return;
1511
- const f = a.findIndex((v) => (s ? s(v) : JSON.stringify(v)) === t), k = a.findIndex((v) => (s ? s(v) : JSON.stringify(v)) === y);
1512
- if (f === -1 || k === -1)
1507
+ const f = a.findIndex((g) => (s ? s(g) : JSON.stringify(g)) === i), w = a.findIndex((g) => (s ? s(g) : JSON.stringify(g)) === R);
1508
+ if (f === -1 || w === -1)
1513
1509
  return;
1514
- const O = [...a], [L] = O.splice(f, 1);
1515
- O.splice(k, 0, L), x && (x == null || x(O)), i(null), g(null);
1516
- }, [t, a, s, x]);
1510
+ const O = [...a], [C] = O.splice(f, 1);
1511
+ O.splice(w, 0, C), y && (y == null || y(O)), d(null), x(null);
1512
+ }, [i, a, s, y]);
1517
1513
  if (a.length === 0) {
1518
- let C;
1519
- return u && (C = ((H = u.current) == null ? void 0 : H.clientWidth) + "px"), /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${j ? j + "__body" : ""} ${_}`, style: F, children: /* @__PURE__ */ o.jsx(
1514
+ let h;
1515
+ return u && (h = ((re = u.current) == null ? void 0 : re.clientWidth) + "px"), /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${k ? k + "__body" : ""} ${_}`, style: F, children: /* @__PURE__ */ o.jsx(
1520
1516
  "tr",
1521
1517
  {
1522
- className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${P}`,
1523
- style: N,
1518
+ className: `radar-table__body-row ${k ? k + "__body-row" : ""} ${P}`,
1519
+ style: I,
1524
1520
  children: /* @__PURE__ */ o.jsxs(
1525
1521
  "td",
1526
1522
  {
1527
- className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${M}`,
1528
- colSpan: d.length,
1523
+ className: `radar-table__body-cell ${k ? k + "__body-cell" : ""} ${M}`,
1524
+ colSpan: b.length,
1529
1525
  style: {
1530
1526
  ...K
1531
1527
  },
1532
1528
  children: [
1533
- E && E(),
1534
- !E && /* @__PURE__ */ o.jsx("div", { className: `${C ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: C || "" }, children: "Нет данных" })
1529
+ j && j(),
1530
+ !j && /* @__PURE__ */ o.jsx("div", { className: `${h ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: h || "" }, children: "Нет данных" })
1535
1531
  ]
1536
1532
  }
1537
1533
  )
1538
1534
  }
1539
1535
  ) });
1540
1536
  }
1541
- return /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${j ? j + "__body" : ""} ${_}`, style: F, children: a.map((C) => {
1542
- const y = s ? s(C) : JSON.stringify(C);
1537
+ return /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${k ? k + "__body" : ""} ${_}`, style: F, children: a.map((h) => {
1538
+ const R = s ? s(h) : JSON.stringify(h);
1543
1539
  return (
1544
1540
  // Table row
1545
1541
  /* @__PURE__ */ o.jsx(
1546
1542
  "tr",
1547
1543
  {
1548
- className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${P} ${t === y ? "dragging" : ""} ${h === y ? "drag-over" : ""}`,
1549
- style: N,
1550
- draggable: r,
1551
- onDragStart: (f) => m(f, y),
1552
- onDragOver: $,
1553
- onDragEnter: (f) => W(f, y),
1554
- onDragLeave: V,
1555
- onDrop: (f) => q(f, y),
1556
- onDragEnd: z,
1557
- children: d.map((f, k) => {
1558
- var Q, ee;
1559
- const O = f.fixed && !f.width ? 200 : f.width, L = f.fixed && !f.minWidth ? 200 : f.minWidth;
1560
- let v = f.fixedLeft ? f.fixedLeft : 0, b = !1;
1561
- if (S && S.idx.includes(f.dataIndex) && (b = !0), S && S.idx.length === 0 && (b = !0), f.fixed && k !== 0)
1562
- for (let p = 0; p < k; p++)
1563
- d[p].fixed && !d[p].hidden && (v += (d[p].width || d[p].minWidth || 200) + (d[p].fixedLeft || 0));
1564
- const X = T(f);
1544
+ className: `radar-table__body-row ${k ? k + "__body-row" : ""} ${P} ${i === R ? "dragging" : ""} ${v === R ? "drag-over" : ""}`,
1545
+ style: I,
1546
+ draggable: t,
1547
+ onDragStart: (f) => $(f, R),
1548
+ onDragOver: W,
1549
+ onDragEnter: (f) => V(f, R),
1550
+ onDragLeave: z,
1551
+ onDrop: (f) => U(f, R),
1552
+ onDragEnd: q,
1553
+ children: b.map((f, w) => {
1554
+ var Q, E;
1555
+ const O = f.fixed && !f.width ? 200 : f.width, C = f.fixed && !f.minWidth ? 200 : f.minWidth;
1556
+ let g = f.fixedLeft ? f.fixedLeft : 0, J = !1;
1557
+ if (S && S.idx.includes(f.dataIndex) && (J = !0), S && S.idx.length === 0 && (J = !0), f.fixed && w !== 0)
1558
+ for (let L = 0; L < w; L++)
1559
+ b[L].fixed && !b[L].hidden && (g += (b[L].width || b[L].minWidth || 200) + (b[L].fixedLeft || 0));
1560
+ const X = m(f);
1565
1561
  return !f.hidden && /* @__PURE__ */ o.jsxs(
1566
1562
  "td",
1567
1563
  {
1568
- className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${M}`,
1564
+ className: `radar-table__body-cell ${k ? k + "__body-cell" : ""} ${M}`,
1569
1565
  style: {
1570
1566
  width: O,
1571
- minWidth: L,
1567
+ minWidth: C,
1572
1568
  position: f.fixed ? "sticky" : "static",
1573
- left: v,
1574
- borderRight: f.fixed && !((Q = d[k + 1]) != null && Q.fixed) ? "1px solid #E8E8E8" : "none",
1569
+ left: g,
1570
+ borderRight: f.fixed && !((Q = b[w + 1]) != null && Q.fixed) ? "1px solid #E8E8E8" : "none",
1575
1571
  ...K
1576
1572
  },
1577
1573
  children: [
1578
- !b && /* @__PURE__ */ o.jsxs(
1574
+ !J && /* @__PURE__ */ o.jsxs(
1579
1575
  "div",
1580
1576
  {
1581
- className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${Y}`,
1577
+ className: `radar-table__body-cell-wrapper ${k ? k + "__body-cell-wrapper" : ""} ${Y}`,
1582
1578
  style: {
1583
1579
  backgroundColor: X || "white",
1584
- ...J
1580
+ ...H
1585
1581
  },
1586
1582
  children: [
1587
- f.units && zt(((ee = C[f.key]) == null ? void 0 : ee.toString()) || "", f.units),
1588
- !f.units && C[f.key]
1583
+ f.units && zt(((E = h[f.key]) == null ? void 0 : E.toString()) || "", f.units),
1584
+ !f.units && h[f.key]
1589
1585
  ]
1590
1586
  }
1591
1587
  ),
1592
- b && /* @__PURE__ */ o.jsx(
1588
+ J && /* @__PURE__ */ o.jsx(
1593
1589
  "div",
1594
1590
  {
1595
- className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${Y}`,
1591
+ className: `radar-table__body-cell-wrapper ${k ? k + "__body-cell-wrapper" : ""} ${Y}`,
1596
1592
  style: {
1597
- ...J,
1593
+ ...H,
1598
1594
  backgroundColor: X || "white"
1599
1595
  },
1600
- children: S == null ? void 0 : S.renderer(C[f.dataIndex], C, k, f.dataIndex)
1596
+ children: S == null ? void 0 : S.renderer(h[f.dataIndex], h, w, f.dataIndex)
1601
1597
  }
1602
1598
  )
1603
1599
  ]
@@ -1606,36 +1602,36 @@ function Yt({
1606
1602
  );
1607
1603
  })
1608
1604
  },
1609
- y
1605
+ R
1610
1606
  )
1611
1607
  );
1612
1608
  }) });
1613
1609
  }
1614
- const Ue = ({ config: r }) => {
1615
- const [{ current: a, pageSize: c, total: s, onChange: D, showQuickJumper: x, buttonsCount: j = 4, hideOnSinglePage: S = !1 }, _] = ce(r);
1610
+ const Ue = ({ config: t }) => {
1611
+ const [{ current: a, pageSize: c, total: s, onChange: T, showQuickJumper: y, buttonsCount: k = 4, hideOnSinglePage: S = !1 }, _] = ce(t);
1616
1612
  Ce(() => {
1617
- _(r);
1618
- }, [r]);
1619
- const F = Math.ceil(a / j), P = (F - 1) * j + 1, N = F * j, M = (t) => {
1613
+ _(t);
1614
+ }, [t]);
1615
+ const F = Math.ceil(a / k), P = (F - 1) * k + 1, I = F * k, M = (r) => {
1620
1616
  const i = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
1621
- !/^[0-9]$/.test(t.key) && !i.includes(t.key) && t.preventDefault();
1622
- }, K = (t) => {
1623
- if (t.key === "Enter") {
1624
- const i = parseInt(t.currentTarget.value);
1625
- i > 0 && i <= s && (_({ ...r, current: i }), D == null || D(i, c), t.currentTarget.value = "");
1626
- }
1627
- }, Y = (t) => {
1628
- const h = t.target.value.replace(/[^0-9]/g, "");
1629
- t.target.value = h;
1630
- }, J = (t) => {
1631
- t.preventDefault();
1632
- const h = t.clipboardData.getData("text").replace(/[^0-9]/g, ""), g = t.target, w = g.selectionStart || 0, d = g.selectionEnd || 0, T = g.value.substring(0, w) + h + g.value.substring(d);
1633
- g.value = T, g.setSelectionRange(w + h.length, w + h.length);
1634
- }, E = (t) => {
1635
- const i = t.currentTarget.id;
1636
- i === "pagination_left_button" && a > 1 && (_({ ...r, current: a - 1 }), D == null || D(a - 1, c)), i === "pagination_right_button" && a < s && (_({ ...r, current: a + 1 }), D == null || D(a + 1, c));
1637
- }, u = (t) => {
1638
- _({ ...r, current: t }), D == null || D(t, c);
1617
+ !/^[0-9]$/.test(r.key) && !i.includes(r.key) && r.preventDefault();
1618
+ }, K = (r) => {
1619
+ if (r.key === "Enter") {
1620
+ const i = parseInt(r.currentTarget.value);
1621
+ i > 0 && i <= s && (_({ ...t, current: i }), T == null || T(i, c), r.currentTarget.value = "");
1622
+ }
1623
+ }, Y = (r) => {
1624
+ const d = r.target.value.replace(/[^0-9]/g, "");
1625
+ r.target.value = d;
1626
+ }, H = (r) => {
1627
+ r.preventDefault();
1628
+ const d = r.clipboardData.getData("text").replace(/[^0-9]/g, ""), v = r.target, x = v.selectionStart || 0, p = v.selectionEnd || 0, b = v.value.substring(0, x) + d + v.value.substring(p);
1629
+ v.value = b, v.setSelectionRange(x + d.length, x + d.length);
1630
+ }, j = (r) => {
1631
+ const i = r.currentTarget.id;
1632
+ i === "pagination_left_button" && a > 1 && (_({ ...t, current: a - 1 }), T == null || T(a - 1, c)), i === "pagination_right_button" && a < s && (_({ ...t, current: a + 1 }), T == null || T(a + 1, c));
1633
+ }, u = (r) => {
1634
+ _({ ...t, current: r }), T == null || T(r, c);
1639
1635
  };
1640
1636
  return S && s <= 1 ? null : /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination", children: [
1641
1637
  /* @__PURE__ */ o.jsxs(
@@ -1643,20 +1639,20 @@ const Ue = ({ config: r }) => {
1643
1639
  {
1644
1640
  className: "radar-table__pagination-main",
1645
1641
  style: {
1646
- gridTemplateColumns: `repeat(${j + 2}, 32px)`
1642
+ gridTemplateColumns: `repeat(${k + 2}, 32px)`
1647
1643
  },
1648
1644
  children: [
1649
- /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: E, title: "Назад", children: /* @__PURE__ */ o.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
1650
- Array.from({ length: s }, (t, i) => i + 1).map((t) => {
1651
- const i = a === t;
1652
- if (t >= P && t <= N)
1653
- return i ? /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: t }, t) : /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button", onClick: () => u(t), children: t }, t);
1645
+ /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: j, title: "Назад", children: /* @__PURE__ */ o.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
1646
+ Array.from({ length: s }, (r, i) => i + 1).map((r) => {
1647
+ const i = a === r;
1648
+ if (r >= P && r <= I)
1649
+ return i ? /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: r }, r) : /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button", onClick: () => u(r), children: r }, r);
1654
1650
  }),
1655
- /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: E, title: "Вперёд", children: /* @__PURE__ */ o.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
1651
+ /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: j, title: "Вперёд", children: /* @__PURE__ */ o.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
1656
1652
  ]
1657
1653
  }
1658
1654
  ),
1659
- x && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
1655
+ y && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
1660
1656
  "Перейти на ",
1661
1657
  /* @__PURE__ */ o.jsx(
1662
1658
  "input",
@@ -1664,8 +1660,8 @@ const Ue = ({ config: r }) => {
1664
1660
  className: "radar-table__pagination-input",
1665
1661
  onKeyDown: M,
1666
1662
  onChange: Y,
1667
- onPaste: J,
1668
- onKeyUp: (t) => K(t)
1663
+ onPaste: H,
1664
+ onKeyUp: (r) => K(r)
1669
1665
  }
1670
1666
  ),
1671
1667
  " стр. из ",
@@ -1674,50 +1670,51 @@ const Ue = ({ config: r }) => {
1674
1670
  ] });
1675
1671
  };
1676
1672
  function qt({
1677
- dataSource: r,
1673
+ dataSource: t,
1678
1674
  preset: a,
1679
1675
  config: c,
1680
1676
  rowKey: s,
1681
- loading: D = !1,
1682
- pagination: x,
1683
- stickyHeader: j = !1,
1677
+ loading: T = !1,
1678
+ pagination: y,
1679
+ stickyHeader: k = !1,
1684
1680
  resizeable: S = !1,
1685
1681
  draggableRows: _ = !1,
1686
1682
  draggableColumns: F = !1,
1687
1683
  scrollContainerRef: P,
1688
- onResize: N,
1684
+ onResize: I,
1689
1685
  onSort: M,
1690
1686
  onRowReorder: K,
1691
1687
  onColumnReorder: Y,
1692
- customCellRender: J,
1693
- noDataRender: E,
1688
+ customCellRender: H,
1689
+ noDataRender: j,
1694
1690
  sortIcon: u,
1695
- className: t = "",
1696
- style: i,
1697
- headerClassName: h = "",
1698
- headerStyle: g,
1699
- headerCellClassName: w = "",
1700
- headerCellStyle: d,
1701
- headerRowClassName: T = "",
1702
- headerRowStyle: m,
1703
- headerCellWrapperClassName: $ = "",
1704
- headerCellWrapperStyle: W,
1705
- bodyClassName: V = "",
1706
- bodyStyle: z,
1707
- bodyRowClassName: q = "",
1708
- bodyRowStyle: H,
1709
- bodyCellClassName: C = "",
1710
- bodyCellStyle: y,
1691
+ recalculateRowHeight: r = !1,
1692
+ className: i = "",
1693
+ style: d,
1694
+ headerClassName: v = "",
1695
+ headerStyle: x,
1696
+ headerCellClassName: p = "",
1697
+ headerCellStyle: b,
1698
+ headerRowClassName: m = "",
1699
+ headerRowStyle: $,
1700
+ headerCellWrapperClassName: W = "",
1701
+ headerCellWrapperStyle: V,
1702
+ bodyClassName: z = "",
1703
+ bodyStyle: q,
1704
+ bodyRowClassName: U = "",
1705
+ bodyRowStyle: re,
1706
+ bodyCellClassName: h = "",
1707
+ bodyCellStyle: R,
1711
1708
  bodyCellWrapperClassName: f = "",
1712
- bodyCellWrapperStyle: k,
1709
+ bodyCellWrapperStyle: w,
1713
1710
  headerGroupRowClassName: O,
1714
- headerGroupRowStyle: L,
1715
- headerGroupCellClassName: v,
1716
- headerGroupCellStyle: b,
1711
+ headerGroupRowStyle: C,
1712
+ headerGroupCellClassName: g,
1713
+ headerGroupCellStyle: J,
1717
1714
  headerGroupCellWrapperClassName: X,
1718
1715
  headerGroupCellWrapperStyle: Q,
1719
- paginationContainerClassName: ee = "",
1720
- paginationContainerStyle: p
1716
+ paginationContainerClassName: E = "",
1717
+ paginationContainerStyle: L
1721
1718
  }) {
1722
1719
  return F ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1723
1720
  /* @__PURE__ */ o.jsx(
@@ -1728,153 +1725,156 @@ function qt({
1728
1725
  children: /* @__PURE__ */ o.jsx(
1729
1726
  Ze,
1730
1727
  {
1731
- dataSource: r,
1728
+ dataSource: t,
1732
1729
  preset: a,
1733
1730
  config: c,
1734
1731
  rowKey: s,
1735
- loading: D,
1736
- pagination: x,
1737
- stickyHeader: j,
1732
+ loading: T,
1733
+ pagination: y,
1734
+ stickyHeader: k,
1738
1735
  resizeable: S,
1739
1736
  draggableRows: _,
1740
1737
  draggableColumns: F,
1741
1738
  scrollContainerRef: P,
1742
- onResize: N,
1739
+ onResize: I,
1743
1740
  onSort: M,
1744
1741
  onRowReorder: K,
1745
1742
  onColumnReorder: Y,
1746
- customCellRender: J,
1743
+ customCellRender: H,
1747
1744
  sortIcon: u,
1748
- className: t,
1749
- style: i,
1750
- headerClassName: h,
1751
- headerStyle: g,
1752
- headerCellClassName: w,
1753
- headerCellStyle: d,
1754
- headerRowClassName: T,
1755
- headerRowStyle: m,
1756
- headerCellWrapperClassName: $,
1757
- headerCellWrapperStyle: W,
1758
- bodyClassName: V,
1759
- bodyStyle: z,
1760
- bodyRowClassName: q,
1761
- bodyRowStyle: H,
1762
- bodyCellClassName: C,
1763
- bodyCellStyle: y,
1745
+ className: i,
1746
+ style: d,
1747
+ headerClassName: v,
1748
+ headerStyle: x,
1749
+ headerCellClassName: p,
1750
+ headerCellStyle: b,
1751
+ headerRowClassName: m,
1752
+ headerRowStyle: $,
1753
+ headerCellWrapperClassName: W,
1754
+ headerCellWrapperStyle: V,
1755
+ bodyClassName: z,
1756
+ bodyStyle: q,
1757
+ bodyRowClassName: U,
1758
+ bodyRowStyle: re,
1759
+ bodyCellClassName: h,
1760
+ bodyCellStyle: R,
1764
1761
  bodyCellWrapperClassName: f,
1765
- bodyCellWrapperStyle: k,
1762
+ bodyCellWrapperStyle: w,
1766
1763
  headerGroupRowClassName: O,
1767
- headerGroupRowStyle: L,
1768
- headerGroupCellClassName: v,
1769
- headerGroupCellStyle: b,
1764
+ headerGroupRowStyle: C,
1765
+ headerGroupCellClassName: g,
1766
+ headerGroupCellStyle: J,
1770
1767
  headerGroupCellWrapperClassName: X,
1771
1768
  headerGroupCellWrapperStyle: Q,
1772
- paginationContainerClassName: ee,
1773
- paginationContainerStyle: p,
1774
- noDataRender: E
1769
+ paginationContainerClassName: E,
1770
+ paginationContainerStyle: L,
1771
+ noDataRender: j,
1772
+ recalculateRowHeight: r
1775
1773
  }
1776
1774
  )
1777
1775
  }
1778
1776
  ),
1779
- /* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${ee}`, style: p, children: x && /* @__PURE__ */ o.jsx(Ue, { config: x }) })
1777
+ /* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${E}`, style: L, children: y && /* @__PURE__ */ o.jsx(Ue, { config: y }) })
1780
1778
  ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1781
1779
  /* @__PURE__ */ o.jsx(
1782
1780
  Ze,
1783
1781
  {
1784
- dataSource: r,
1782
+ dataSource: t,
1785
1783
  preset: a,
1786
1784
  config: c,
1787
1785
  rowKey: s,
1788
- loading: D,
1789
- pagination: x,
1790
- stickyHeader: j,
1786
+ loading: T,
1787
+ pagination: y,
1788
+ stickyHeader: k,
1791
1789
  resizeable: S,
1792
1790
  draggableRows: _,
1793
1791
  draggableColumns: F,
1794
1792
  scrollContainerRef: P,
1795
- onResize: N,
1793
+ onResize: I,
1796
1794
  onSort: M,
1797
1795
  onRowReorder: K,
1798
1796
  onColumnReorder: Y,
1799
- customCellRender: J,
1797
+ customCellRender: H,
1800
1798
  sortIcon: u,
1801
- className: t,
1802
- style: i,
1803
- headerClassName: h,
1804
- headerStyle: g,
1805
- headerCellClassName: w,
1806
- headerCellStyle: d,
1807
- headerRowClassName: T,
1808
- headerRowStyle: m,
1809
- headerCellWrapperClassName: $,
1810
- headerCellWrapperStyle: W,
1811
- bodyClassName: V,
1812
- bodyStyle: z,
1813
- bodyRowClassName: q,
1814
- bodyRowStyle: H,
1815
- bodyCellClassName: C,
1816
- bodyCellStyle: y,
1799
+ className: i,
1800
+ style: d,
1801
+ headerClassName: v,
1802
+ headerStyle: x,
1803
+ headerCellClassName: p,
1804
+ headerCellStyle: b,
1805
+ headerRowClassName: m,
1806
+ headerRowStyle: $,
1807
+ headerCellWrapperClassName: W,
1808
+ headerCellWrapperStyle: V,
1809
+ bodyClassName: z,
1810
+ bodyStyle: q,
1811
+ bodyRowClassName: U,
1812
+ bodyRowStyle: re,
1813
+ bodyCellClassName: h,
1814
+ bodyCellStyle: R,
1817
1815
  bodyCellWrapperClassName: f,
1818
- bodyCellWrapperStyle: k,
1816
+ bodyCellWrapperStyle: w,
1819
1817
  headerGroupRowClassName: O,
1820
- headerGroupRowStyle: L,
1821
- headerGroupCellClassName: v,
1822
- headerGroupCellStyle: b,
1818
+ headerGroupRowStyle: C,
1819
+ headerGroupCellClassName: g,
1820
+ headerGroupCellStyle: J,
1823
1821
  headerGroupCellWrapperClassName: X,
1824
1822
  headerGroupCellWrapperStyle: Q,
1825
- paginationContainerClassName: ee,
1826
- paginationContainerStyle: p,
1827
- noDataRender: E
1823
+ paginationContainerClassName: E,
1824
+ paginationContainerStyle: L,
1825
+ noDataRender: j,
1826
+ recalculateRowHeight: r
1828
1827
  }
1829
1828
  ),
1830
- /* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${ee}`, style: p, children: x && /* @__PURE__ */ o.jsx(Ue, { config: x }) })
1829
+ /* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${E}`, style: L, children: y && /* @__PURE__ */ o.jsx(Ue, { config: y }) })
1831
1830
  ] });
1832
1831
  }
1833
- function Ze(r) {
1832
+ function Ze(t) {
1834
1833
  const {
1835
1834
  dataSource: a,
1836
1835
  preset: c,
1837
1836
  config: s,
1838
- rowKey: D,
1839
- loading: x,
1840
- stickyHeader: j,
1837
+ rowKey: T,
1838
+ loading: y,
1839
+ stickyHeader: k,
1841
1840
  resizeable: S,
1842
1841
  draggableRows: _,
1843
1842
  draggableColumns: F,
1844
1843
  scrollContainerRef: P,
1845
- onResize: N,
1844
+ onResize: I,
1846
1845
  onSort: M,
1847
1846
  onRowReorder: K,
1848
1847
  onColumnReorder: Y,
1849
- customCellRender: J,
1850
- sortIcon: E,
1848
+ customCellRender: H,
1849
+ sortIcon: j,
1851
1850
  className: u,
1852
- style: t,
1851
+ style: r,
1853
1852
  headerClassName: i,
1854
- headerStyle: h,
1855
- headerCellClassName: g,
1856
- headerCellStyle: w,
1857
- headerRowClassName: d,
1858
- headerRowStyle: T,
1853
+ headerStyle: d,
1854
+ headerCellClassName: v,
1855
+ headerCellStyle: x,
1856
+ headerRowClassName: p,
1857
+ headerRowStyle: b,
1859
1858
  headerCellWrapperClassName: m,
1860
1859
  headerCellWrapperStyle: $,
1861
1860
  bodyClassName: W,
1862
1861
  bodyStyle: V,
1863
1862
  bodyRowClassName: z,
1864
1863
  bodyRowStyle: q,
1865
- bodyCellClassName: H,
1866
- bodyCellStyle: C,
1867
- bodyCellWrapperClassName: y,
1868
- bodyCellWrapperStyle: f,
1869
- headerGroupRowClassName: k,
1870
- headerGroupRowStyle: O,
1871
- headerGroupCellClassName: L,
1872
- headerGroupCellStyle: v,
1873
- headerGroupCellWrapperClassName: b,
1874
- headerGroupCellWrapperStyle: X,
1875
- noDataRender: Q
1876
- } = r;
1877
- return /* @__PURE__ */ o.jsxs("table", { className: `radar-table ${c || ""} ${u}`, style: t, children: [
1864
+ bodyCellClassName: U,
1865
+ bodyCellStyle: re,
1866
+ bodyCellWrapperClassName: h,
1867
+ bodyCellWrapperStyle: R,
1868
+ headerGroupRowClassName: f,
1869
+ headerGroupRowStyle: w,
1870
+ headerGroupCellClassName: O,
1871
+ headerGroupCellStyle: C,
1872
+ headerGroupCellWrapperClassName: g,
1873
+ headerGroupCellWrapperStyle: J,
1874
+ noDataRender: X,
1875
+ recalculateRowHeight: Q
1876
+ } = t;
1877
+ return /* @__PURE__ */ o.jsxs("table", { className: `radar-table ${c || ""} ${u}`, style: r, children: [
1878
1878
  /* @__PURE__ */ o.jsx(
1879
1879
  Vt,
1880
1880
  {
@@ -1882,24 +1882,24 @@ function Ze(r) {
1882
1882
  config: s,
1883
1883
  onSort: M,
1884
1884
  resizeable: S,
1885
- onResize: N,
1886
- sortIcon: E,
1885
+ onResize: I,
1886
+ sortIcon: j,
1887
1887
  preset: c,
1888
1888
  headerClassName: i,
1889
- headerStyle: h,
1890
- headerRowClassName: d,
1891
- headerRowStyle: T,
1892
- headerCellClassName: g,
1893
- headerCellStyle: w,
1889
+ headerStyle: d,
1890
+ headerRowClassName: p,
1891
+ headerRowStyle: b,
1892
+ headerCellClassName: v,
1893
+ headerCellStyle: x,
1894
1894
  headerCellWrapperClassName: m,
1895
1895
  headerCellWrapperStyle: $,
1896
- headerGroupRowClassName: k,
1897
- headerGroupRowStyle: O,
1898
- headerGroupCellClassName: L,
1899
- headerGroupCellStyle: v,
1900
- headerGroupCellWrapperClassName: b,
1901
- headerGroupCellWrapperStyle: X,
1902
- stickyHeader: j,
1896
+ headerGroupRowClassName: f,
1897
+ headerGroupRowStyle: w,
1898
+ headerGroupCellClassName: O,
1899
+ headerGroupCellStyle: C,
1900
+ headerGroupCellWrapperClassName: g,
1901
+ headerGroupCellWrapperStyle: J,
1902
+ stickyHeader: k,
1903
1903
  scrollContainerRef: P,
1904
1904
  onColumnReorder: Y
1905
1905
  }
@@ -1911,32 +1911,33 @@ function Ze(r) {
1911
1911
  onRowReorder: K,
1912
1912
  dataSource: a,
1913
1913
  config: s,
1914
- rowKey: D,
1915
- loading: x,
1914
+ rowKey: T,
1915
+ loading: y,
1916
1916
  preset: c,
1917
- customCellRender: J,
1917
+ customCellRender: H,
1918
1918
  bodyClassName: W,
1919
1919
  bodyStyle: V,
1920
1920
  bodyRowClassName: z,
1921
1921
  bodyRowStyle: q,
1922
- bodyCellClassName: H,
1923
- bodyCellStyle: C,
1924
- bodyCellWrapperClassName: y,
1925
- bodyCellWrapperStyle: f,
1926
- noDataRender: Q,
1927
- scrollContainerRef: P
1922
+ bodyCellClassName: U,
1923
+ bodyCellStyle: re,
1924
+ bodyCellWrapperClassName: h,
1925
+ bodyCellWrapperStyle: R,
1926
+ noDataRender: X,
1927
+ scrollContainerRef: P,
1928
+ recalculateRowHeight: Q
1928
1929
  }
1929
1930
  )
1930
1931
  ] });
1931
1932
  }
1932
- const qe = ({ children: r, tagType: a = "h1", ...c }) => {
1933
+ const qe = ({ children: t, tagType: a = "h1", ...c }) => {
1933
1934
  if (a === "h1")
1934
1935
  return /* @__PURE__ */ o.jsx(
1935
1936
  "h1",
1936
1937
  {
1937
1938
  className: "radar-title radar-title_h1",
1938
1939
  ...c,
1939
- children: r
1940
+ children: t
1940
1941
  }
1941
1942
  );
1942
1943
  if (a === "h2")
@@ -1945,7 +1946,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
1945
1946
  {
1946
1947
  className: "radar-title radar-title_h1",
1947
1948
  ...c,
1948
- children: r
1949
+ children: t
1949
1950
  }
1950
1951
  );
1951
1952
  if (a === "h3")
@@ -1954,7 +1955,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
1954
1955
  {
1955
1956
  className: "radar-title radar-title_h1",
1956
1957
  ...c,
1957
- children: r
1958
+ children: t
1958
1959
  }
1959
1960
  );
1960
1961
  if (a === "h4")
@@ -1963,7 +1964,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
1963
1964
  {
1964
1965
  className: "radar-title radar-title_h1",
1965
1966
  ...c,
1966
- children: r
1967
+ children: t
1967
1968
  }
1968
1969
  );
1969
1970
  if (a === "h5")
@@ -1972,7 +1973,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
1972
1973
  {
1973
1974
  className: "radar-title radar-title_h1",
1974
1975
  ...c,
1975
- children: r
1976
+ children: t
1976
1977
  }
1977
1978
  );
1978
1979
  if (a === "h6")
@@ -1981,17 +1982,17 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
1981
1982
  {
1982
1983
  className: "radar-title radar-title_h1",
1983
1984
  ...c,
1984
- children: r
1985
+ children: t
1985
1986
  }
1986
1987
  );
1987
- }, Bt = ({ children: r, tagType: a = "h2", ...c }) => {
1988
+ }, Bt = ({ children: t, tagType: a = "h2", ...c }) => {
1988
1989
  if (a === "h1")
1989
1990
  return /* @__PURE__ */ o.jsx(
1990
1991
  "h1",
1991
1992
  {
1992
1993
  className: "radar-title radar-title_h2",
1993
1994
  ...c,
1994
- children: r
1995
+ children: t
1995
1996
  }
1996
1997
  );
1997
1998
  if (a === "h2")
@@ -2000,7 +2001,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
2000
2001
  {
2001
2002
  className: "radar-title radar-title_h2",
2002
2003
  ...c,
2003
- children: r
2004
+ children: t
2004
2005
  }
2005
2006
  );
2006
2007
  if (a === "h3")
@@ -2009,7 +2010,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
2009
2010
  {
2010
2011
  className: "radar-title radar-title_h2",
2011
2012
  ...c,
2012
- children: r
2013
+ children: t
2013
2014
  }
2014
2015
  );
2015
2016
  if (a === "h4")
@@ -2018,7 +2019,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
2018
2019
  {
2019
2020
  className: "radar-title radar-title_h2",
2020
2021
  ...c,
2021
- children: r
2022
+ children: t
2022
2023
  }
2023
2024
  );
2024
2025
  if (a === "h5")
@@ -2027,7 +2028,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
2027
2028
  {
2028
2029
  className: "radar-title radar-title_h2",
2029
2030
  ...c,
2030
- children: r
2031
+ children: t
2031
2032
  }
2032
2033
  );
2033
2034
  if (a === "h6")
@@ -2036,10 +2037,10 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
2036
2037
  {
2037
2038
  className: "radar-title radar-title_h2",
2038
2039
  ...c,
2039
- children: r
2040
+ children: t
2040
2041
  }
2041
2042
  );
2042
- }, Gt = Object.assign(qe, { H1: qe, H2: Bt }), Ge = ({ children: r, fontStyle: a = "medium", ...c }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_m radar-text_${a}`, ...c, children: r }), Jt = ({ children: r, fontStyle: a = "medium", ...c }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_s radar-text_${a}`, ...c, children: r }), Xt = Object.assign(Ge, { M: Ge, S: Jt });
2043
+ }, Gt = Object.assign(qe, { H1: qe, H2: Bt }), Ge = ({ children: t, fontStyle: a = "medium", ...c }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_m radar-text_${a}`, ...c, children: t }), Ht = ({ children: t, fontStyle: a = "medium", ...c }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_s radar-text_${a}`, ...c, children: t }), Xt = Object.assign(Ge, { M: Ge, S: Ht });
2043
2044
  export {
2044
2045
  Mt as HeaderCell,
2045
2046
  Ue as Pagination,