radar-ui 1.1.28 → 1.1.30

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
@@ -4,7 +4,7 @@
4
4
  style.textContent = ".radar-table-container{display:flex;flex-direction:column;gap:16px;position:relative}.radar-table{width:100%;border-collapse:separate;border-spacing:0;font-family:inherit;overflow:clip;scroll-snap-type:x mandatory;scroll-behavior:smooth;table-layout:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.radar-table-default{border-radius:12px;background-color:#fff}.radar-table-pagination-container{position:sticky;bottom:-16px;left:0;background-color:#fff;padding:16px;border-top:1px solid #E8E8E8;width:100%}.radar-table *,.radar-table *:before,.radar-table *:after{box-sizing:border-box}@-moz-document url-prefix(){.radar-table{border-collapse:separate;border-spacing:0}.radar-table__body-row{box-sizing:border-box}.radar-table__body-cell{vertical-align:top;box-sizing:border-box}.radar-table__body-cell-wrapper,.radar-table__header-cell-wrapper{display:flex!important;align-items:center!important;box-sizing:border-box!important;padding:9px 12px!important;height:1px;min-height:32px;vertical-align:top}.radar-table-default__body-cell-wrapper,.radar-table-simple__body-cell-wrapper{line-height:1!important;padding:9px 12px!important;font-size:14px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px!important}.radar-table-simple__header-cell-wrapper{padding:20px 10px!important}}.radar-table__header{text-align:left;z-index:1}.radar-table-default__header{background-color:#f7f6fe}.radar-table-simple__header{background-color:#fff}.radar-table__header-group-cell{scroll-snap-align:start}.radar-table-simple__header-group-cell{font-family:inherit;font-weight:700;font-size:18px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;vertical-align:top}.radar-table__header-group-cell-wrapper{width:100%}.radar-table-simple__header-group-cell-wrapper{padding:12px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:44px}.radar-table__header-cell{scroll-snap-align:start;box-sizing:border-box}.radar-table-default__header-cell{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;font-weight:500!important;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;background-color:#f7f6fe;box-sizing:border-box}.radar-table-simple__header-cell{font-weight:500!important;font-size:16px;line-height:1.2;letter-spacing:0%;color:#8c8c8c;background-color:#fff;box-sizing:border-box;vertical-align:top}.radar-table-default__header-cell:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.radar-table-default__header-cell:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.radar-table__header-cell-wrapper{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table__header-cell-wrapper:hover .radar-table__resize-button{opacity:1}.radar-table__header-cell-wrapper:hover{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px;display:flex;gap:8px;align-items:center;box-sizing:border-box}.radar-table-simple__header-cell-wrapper{padding:20px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:60px}.radar-table__header-cell-text-wrapper{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.radar-table__sort-button-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.radar-table__sort-button{border:none;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.radar-table__sort-button svg{width:1em;height:1em}.radar-table__sort-button:hover{opacity:.75}.radar-table__drag-handle{display:flex;align-items:center;justify-content:center;cursor:move;opacity:.5;transition:opacity .2s ease;padding:2px;margin-right:4px}.radar-table__drag-handle:hover{opacity:.8}.radar-table__drag-handle.dragging{opacity:1}.radar-table__header-cell.dragging{opacity:.5;transform:rotate(2deg);z-index:1000}.radar-table__header-cell.drag-over.valid-drop-zone,.radar-table__header-cell.drag-over.invalid-drop-zone{transition:all .2s ease;z-index:1000}.radar-table__drag-handle{cursor:grab;transition:transform .2s ease}.radar-table__drag-handle:hover{transform:scale(1.1)}.radar-table__drag-handle.dragging{cursor:grabbing}.radar-table__header-cell.group-header{cursor:default!important}.radar-table__header-cell.group-header{cursor:grab}.radar-table__header-cell.group-header.dragging{cursor:grabbing}.radar-table__body-row[draggable=true]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.radar-table__body-row.dragging{opacity:.25;cursor:grabbing;border-radius:20px}.radar-table__body-row.drag-over{border-top:2px solid #5329FF!important}.radar-table__body-row[draggable=true]{cursor:grab}.radar-table__body-row[draggable=true]:active{cursor:grabbing}.radar-table__body-cell{scroll-snap-align:start;box-sizing:border-box;vertical-align:top}.radar-table-default__body-cell,.radar-table-simple__body-cell{height:1px}.radar-table__body-cell-wrapper{width:100%;height:100%;font-family:inherit;background-color:#fff;display:flex;align-items:center}.radar-table__expander-btn{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:16px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:transform .15s ease}.radar-table__expander-btn:focus{outline:none}.radar-table-default__body-cell-wrapper{padding:7px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:14px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-simple__body-cell-wrapper{padding:18px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:16px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-default__body-row:last-of-type .radar-table-default__body-cell-wrapper{border-bottom:none}.radar-table-simple__body-row:last-of-type .radar-table-simple__body-cell-wrapper{border-bottom:none}.radar-table__body-noData{padding:18px 12px;display:flex;align-items:center;font-size:16px;line-height:1.2;width:100%}.radar-table__body-noData_width{padding:18px 12px;display:flex;justify-content:center;align-items:center;font-size:16px;line-height:1.2}.radar-table__body-cell-wrapper--stretch,.radar-table-default__body-cell-wrapper--stretch,.radar-table-simple__body-cell-wrapper--stretch{align-items:stretch!important}.radar-table__body-cell-wrapper .salary-cell,.radar-table-default__body-cell-wrapper .salary-cell,.radar-table-simple__body-cell-wrapper .salary-cell{width:100%;height:auto;min-height:auto}.radar-table__custom-content-wrapper{width:100%;height:auto;min-height:100%}.radar-table__footer{pointer-events:auto}.radar-table__footer.resizing{pointer-events:none}.radar-table-default__footer,.radar-table-simple__footer{background-color:#fff}.radar-table-default__footer-cell,.radar-table-simple__footer-cell{border-top:1px solid #E8E8E8}.radar-table__footer-cell-wrapper{width:100%;font-family:inherit}.radar-table-default__footer-cell-wrapper,.radar-table-simple__footer-cell-wrapper{padding:12px 0;display:flex;gap:8px}.radar-table__resize-button{opacity:0;position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;width:20px;padding-right:6px;background-color:transparent;cursor:col-resize;border:none;display:flex;justify-content:flex-end;align-items:center;transition:all .2s cubic-bezier(.4,0,.2,1)}.radar-table__resize-button:hover{cursor:col-resize!important}.radar-table__resize-button div{background-color:#8c8c8c;width:2px;height:50%;opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);border-radius:1px}.radar-table__resize-button:hover div{opacity:.5}.radar-table__resize-button:active div{background-color:#5329ff80;opacity:0}.radar-table__resize-line{position:fixed;width:2px;background-color:#5329ff80;z-index:9999;pointer-events:none;opacity:.5}.radar-table__pagination{display:flex;align-items:center;gap:24px}.radar-table__pagination-main{display:grid;grid-template-rows:32px;gap:4px}.radar-table__pagination-button{width:100%;height:100%;max-width:32px;max-height:32px;border-radius:8px;border:none;cursor:pointer;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;opacity:1;transition:all .2s ease;display:flex;align-items:center;justify-content:center;border:1px solid #F7F7F7}.radar-table__pagination-button_active{color:#5329ff;background-color:#eeeaff;border:1px solid #5329FF}.radar-table__pagination-button_control{background-color:transparent;border:none}.radar-table__pagination-button_control:hover{background-color:#f7f7f7}.radar-table__pagination-button:hover{opacity:.75}.radar-table__pagination-quick-jumper{display:flex;align-items:center;gap:8px;font-family:inherit;font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a}.radar-table__pagination-input{width:32px;height:32px;border-radius:8px;border:1px solid #F7F7F7;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#5329ff;background-color:#eeeaff;text-align:center;outline:none;border:none}.radar-table__tooltip-button{border:none;display:flex;align-items:center;justify-content:center;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;position:relative}.radar-table__tooltip-button:hover{color:#5329ff}.radar-table__tooltip-text{position:absolute;top:calc(100% + 10px);left:0;background-color:#fff;padding:8px;width:250px;transform:scale(0);opacity:0;transition:all .2s ease;transform-origin:top left;border-radius:8px;box-shadow:0 0 20px #00000014;white-space:pre-line;text-align:left;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a;z-index:1000}.radar-table__tooltip-text_visible{transform:scale(1);opacity:1}.radar-table__tooltip-text--right{left:auto!important;right:0!important;transform-origin:top right!important}.radar-table__tooltip-text--right.radar-table__tooltip-text_visible{transform:scale(1)!important}.radar-table__drag-handle{height:20px;cursor:grab;border-radius:4px;border:none}.radar-title{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-title_h1{font-size:22px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-title_h2{font-size:18px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-text{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-text_m{font-size:14px}.radar-text_s{font-size:12px}.radar-text_medium{font-weight:500}.radar-text_semibold{font-weight:600}.radar-text_bold{font-weight:700}\n";
5
5
  document.head.appendChild(style);
6
6
  })();
7
- import Ne, { useState as ge, useRef as je, useCallback as ne, startTransition as Et, useEffect as Ie, createContext as kt, useContext as wt, useMemo as Ae, useLayoutEffect as lt } from "react";
7
+ import Ne, { useState as ge, useRef as je, useCallback as ae, startTransition as Et, useEffect as Ie, createContext as kt, useContext as wt, useMemo as Ae, useLayoutEffect as lt } from "react";
8
8
  import { useSensors as jt, useSensor as et, PointerSensor as St, KeyboardSensor as Rt, pointerWithin as Tt, rectIntersection as Dt, DndContext as Ot, DragOverlay as $t, useDraggable as Pt, useDroppable as Lt } from "@dnd-kit/core";
9
9
  import { sortableKeyboardCoordinates as Nt } from "@dnd-kit/sortable";
10
10
  var Ye = { exports: {} }, Pe = {};
@@ -21,15 +21,15 @@ var tt;
21
21
  function It() {
22
22
  if (tt) return Pe;
23
23
  tt = 1;
24
- var t = Ne, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
25
- function R($, _, M) {
26
- var w, P = {}, U = null, G = null;
27
- M !== void 0 && (U = "" + M), _.key !== void 0 && (U = "" + _.key), _.ref !== void 0 && (G = _.ref);
28
- for (w in _) l.call(_, w) && !y.hasOwnProperty(w) && (P[w] = _[w]);
29
- if ($ && $.defaultProps) for (w in _ = $.defaultProps, _) P[w] === void 0 && (P[w] = _[w]);
30
- return { $$typeof: r, type: $, key: U, ref: G, props: P, _owner: k.current };
24
+ var t = Ne, r = Symbol.for("react.element"), l = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, w = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
25
+ function R($, m, M) {
26
+ var j, P = {}, U = null, X = null;
27
+ M !== void 0 && (U = "" + M), m.key !== void 0 && (U = "" + m.key), m.ref !== void 0 && (X = m.ref);
28
+ for (j in m) d.call(m, j) && !y.hasOwnProperty(j) && (P[j] = m[j]);
29
+ if ($ && $.defaultProps) for (j in m = $.defaultProps, m) P[j] === void 0 && (P[j] = m[j]);
30
+ return { $$typeof: r, type: $, key: U, ref: X, props: P, _owner: w.current };
31
31
  }
32
- return Pe.Fragment = o, Pe.jsx = R, Pe.jsxs = R, Pe;
32
+ return Pe.Fragment = l, Pe.jsx = R, Pe.jsxs = R, Pe;
33
33
  }
34
34
  var Le = {};
35
35
  /**
@@ -44,15 +44,15 @@ var Le = {};
44
44
  var rt;
45
45
  function Wt() {
46
46
  return rt || (rt = 1, process.env.NODE_ENV !== "production" && function() {
47
- var t = Ne, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), $ = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), X = Symbol.iterator, K = "@@iterator";
48
- function te(e) {
47
+ var t = Ne, r = Symbol.for("react.element"), l = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), $ = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), X = Symbol.for("react.offscreen"), Q = Symbol.iterator, K = "@@iterator";
48
+ function re(e) {
49
49
  if (e === null || typeof e != "object")
50
50
  return null;
51
- var i = X && e[X] || e[K];
51
+ var i = Q && e[Q] || e[K];
52
52
  return typeof i == "function" ? i : null;
53
53
  }
54
54
  var V = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
- function d(e) {
55
+ function f(e) {
56
56
  {
57
57
  for (var i = arguments.length, p = new Array(i > 1 ? i - 1 : 0), S = 1; S < i; S++)
58
58
  p[S - 1] = arguments[S];
@@ -61,71 +61,71 @@ function Wt() {
61
61
  }
62
62
  function L(e, i, p) {
63
63
  {
64
- var S = V.ReactDebugCurrentFrame, ee = S.getStackAddendum();
65
- ee !== "" && (i += "%s", p = p.concat([ee]));
66
- var ie = p.map(function(Y) {
64
+ var S = V.ReactDebugCurrentFrame, te = S.getStackAddendum();
65
+ te !== "" && (i += "%s", p = p.concat([te]));
66
+ var se = p.map(function(Y) {
67
67
  return String(Y);
68
68
  });
69
- ie.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, ie);
69
+ se.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, se);
70
70
  }
71
71
  }
72
- var m = !1, F = !1, J = !1, v = !1, f = !1, c;
73
- c = Symbol.for("react.module.reference");
72
+ var _ = !1, F = !1, J = !1, v = !1, g = !1, o;
73
+ o = Symbol.for("react.module.reference");
74
74
  function x(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === y || f || e === k || e === M || e === w || v || e === G || m || F || J || typeof e == "object" && e !== null && (e.$$typeof === U || e.$$typeof === P || e.$$typeof === R || e.$$typeof === $ || e.$$typeof === _ || // This needs to include all possible module reference object
75
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === y || g || e === w || e === M || e === j || v || e === X || _ || F || J || typeof e == "object" && e !== null && (e.$$typeof === U || e.$$typeof === P || e.$$typeof === R || e.$$typeof === $ || e.$$typeof === m || // 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
- e.$$typeof === c || e.getModuleId !== void 0));
79
+ e.$$typeof === o || e.getModuleId !== void 0));
80
80
  }
81
- function h(e, i, p) {
81
+ function u(e, i, p) {
82
82
  var S = e.displayName;
83
83
  if (S)
84
84
  return S;
85
- var ee = i.displayName || i.name || "";
86
- return ee !== "" ? p + "(" + ee + ")" : p;
85
+ var te = i.displayName || i.name || "";
86
+ return te !== "" ? p + "(" + te + ")" : p;
87
87
  }
88
- function g(e) {
88
+ function c(e) {
89
89
  return e.displayName || "Context";
90
90
  }
91
91
  function C(e) {
92
92
  if (e == null)
93
93
  return null;
94
- if (typeof e.tag == "number" && d("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" && f("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;
98
98
  switch (e) {
99
- case l:
99
+ case d:
100
100
  return "Fragment";
101
- case o:
101
+ case l:
102
102
  return "Portal";
103
103
  case y:
104
104
  return "Profiler";
105
- case k:
105
+ case w:
106
106
  return "StrictMode";
107
107
  case M:
108
108
  return "Suspense";
109
- case w:
109
+ case j:
110
110
  return "SuspenseList";
111
111
  }
112
112
  if (typeof e == "object")
113
113
  switch (e.$$typeof) {
114
114
  case $:
115
115
  var i = e;
116
- return g(i) + ".Consumer";
116
+ return c(i) + ".Consumer";
117
117
  case R:
118
118
  var p = e;
119
- return g(p._context) + ".Provider";
120
- case _:
121
- return h(e, e.render, "ForwardRef");
119
+ return c(p._context) + ".Provider";
120
+ case m:
121
+ return u(e, e.render, "ForwardRef");
122
122
  case P:
123
123
  var S = e.displayName || null;
124
124
  return S !== null ? S : C(e.type) || "Memo";
125
125
  case U: {
126
- var ee = e, ie = ee._payload, Y = ee._init;
126
+ var te = e, se = te._payload, Y = te._init;
127
127
  try {
128
- return C(Y(ie));
128
+ return C(Y(se));
129
129
  } catch {
130
130
  return null;
131
131
  }
@@ -133,14 +133,14 @@ function Wt() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var E = Object.assign, O = 0, j, ae, se, oe, de, re, ce;
136
+ var E = Object.assign, k = 0, O, le, ne, q, ce, ie, de;
137
137
  function he() {
138
138
  }
139
139
  he.__reactDisabledLog = !0;
140
140
  function A() {
141
141
  {
142
- if (O === 0) {
143
- j = console.log, ae = console.info, se = console.warn, oe = console.error, de = console.group, re = console.groupCollapsed, ce = console.groupEnd;
142
+ if (k === 0) {
143
+ O = console.log, le = console.info, ne = console.warn, q = console.error, ce = console.group, ie = console.groupCollapsed, de = console.groupEnd;
144
144
  var e = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
@@ -157,12 +157,12 @@ function Wt() {
157
157
  groupEnd: e
158
158
  });
159
159
  }
160
- O++;
160
+ k++;
161
161
  }
162
162
  }
163
163
  function I() {
164
164
  {
165
- if (O--, O === 0) {
165
+ if (k--, k === 0) {
166
166
  var e = {
167
167
  configurable: !0,
168
168
  enumerable: !0,
@@ -170,49 +170,49 @@ function Wt() {
170
170
  };
171
171
  Object.defineProperties(console, {
172
172
  log: E({}, e, {
173
- value: j
173
+ value: O
174
174
  }),
175
175
  info: E({}, e, {
176
- value: ae
176
+ value: le
177
177
  }),
178
178
  warn: E({}, e, {
179
- value: se
179
+ value: ne
180
180
  }),
181
181
  error: E({}, e, {
182
- value: oe
182
+ value: q
183
183
  }),
184
184
  group: E({}, e, {
185
- value: de
185
+ value: ce
186
186
  }),
187
187
  groupCollapsed: E({}, e, {
188
- value: re
188
+ value: ie
189
189
  }),
190
190
  groupEnd: E({}, e, {
191
- value: ce
191
+ value: de
192
192
  })
193
193
  });
194
194
  }
195
- O < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ k < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
196
  }
197
197
  }
198
- var q = V.ReactCurrentDispatcher, Q;
199
- function le(e, i, p) {
198
+ var Z = V.ReactCurrentDispatcher, ee;
199
+ function oe(e, i, p) {
200
200
  {
201
- if (Q === void 0)
201
+ if (ee === void 0)
202
202
  try {
203
203
  throw Error();
204
- } catch (ee) {
205
- var S = ee.stack.trim().match(/\n( *(at )?)/);
206
- Q = S && S[1] || "";
204
+ } catch (te) {
205
+ var S = te.stack.trim().match(/\n( *(at )?)/);
206
+ ee = S && S[1] || "";
207
207
  }
208
208
  return `
209
- ` + Q + e;
209
+ ` + ee + e;
210
210
  }
211
211
  }
212
212
  var B = !1, T;
213
213
  {
214
- var Z = typeof WeakMap == "function" ? WeakMap : Map;
215
- T = new Z();
214
+ var G = typeof WeakMap == "function" ? WeakMap : Map;
215
+ T = new G();
216
216
  }
217
217
  function W(e, i) {
218
218
  if (!e || B)
@@ -224,10 +224,10 @@ function Wt() {
224
224
  }
225
225
  var S;
226
226
  B = !0;
227
- var ee = Error.prepareStackTrace;
227
+ var te = Error.prepareStackTrace;
228
228
  Error.prepareStackTrace = void 0;
229
- var ie;
230
- ie = q.current, q.current = null, A();
229
+ var se;
230
+ se = Z.current, Z.current = null, A();
231
231
  try {
232
232
  if (i) {
233
233
  var Y = function() {
@@ -271,18 +271,18 @@ function Wt() {
271
271
  if (ue !== 1 || fe !== 1)
272
272
  do
273
273
  if (ue--, fe--, fe < 0 || z[ue] !== ye[fe]) {
274
- var me = `
274
+ var _e = `
275
275
  ` + z[ue].replace(" at new ", " at ");
276
- return e.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", e.displayName)), typeof e == "function" && T.set(e, me), me;
276
+ return e.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", e.displayName)), typeof e == "function" && T.set(e, _e), _e;
277
277
  }
278
278
  while (ue >= 1 && fe >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
- B = !1, q.current = ie, I(), Error.prepareStackTrace = ee;
283
+ B = !1, Z.current = se, I(), Error.prepareStackTrace = te;
284
284
  }
285
- var De = e ? e.displayName || e.name : "", Re = De ? le(De) : "";
285
+ var De = e ? e.displayName || e.name : "", Re = De ? oe(De) : "";
286
286
  return typeof e == "function" && T.set(e, Re), Re;
287
287
  }
288
288
  function a(e, i, p) {
@@ -292,29 +292,29 @@ function Wt() {
292
292
  var i = e.prototype;
293
293
  return !!(i && i.isReactComponent);
294
294
  }
295
- function u(e, i, p) {
295
+ function h(e, i, p) {
296
296
  if (e == null)
297
297
  return "";
298
298
  if (typeof e == "function")
299
299
  return W(e, b(e));
300
300
  if (typeof e == "string")
301
- return le(e);
301
+ return oe(e);
302
302
  switch (e) {
303
303
  case M:
304
- return le("Suspense");
305
- case w:
306
- return le("SuspenseList");
304
+ return oe("Suspense");
305
+ case j:
306
+ return oe("SuspenseList");
307
307
  }
308
308
  if (typeof e == "object")
309
309
  switch (e.$$typeof) {
310
- case _:
310
+ case m:
311
311
  return a(e.render);
312
312
  case P:
313
- return u(e.type, i, p);
313
+ return h(e.type, i, p);
314
314
  case U: {
315
- var S = e, ee = S._payload, ie = S._init;
315
+ var S = e, te = S._payload, se = S._init;
316
316
  try {
317
- return u(ie(ee), i, p);
317
+ return h(se(te), i, p);
318
318
  } catch {
319
319
  }
320
320
  }
@@ -324,16 +324,16 @@ function Wt() {
324
324
  var s = Object.prototype.hasOwnProperty, D = {}, H = V.ReactDebugCurrentFrame;
325
325
  function N(e) {
326
326
  if (e) {
327
- var i = e._owner, p = u(e.type, e._source, i ? i.type : null);
327
+ var i = e._owner, p = h(e.type, e._source, i ? i.type : null);
328
328
  H.setExtraStackFrame(p);
329
329
  } else
330
330
  H.setExtraStackFrame(null);
331
331
  }
332
- function xe(e, i, p, S, ee) {
332
+ function xe(e, i, p, S, te) {
333
333
  {
334
- var ie = Function.call.bind(s);
334
+ var se = Function.call.bind(s);
335
335
  for (var Y in e)
336
- if (ie(e, Y)) {
336
+ if (se(e, Y)) {
337
337
  var z = void 0;
338
338
  try {
339
339
  if (typeof e[Y] != "function") {
@@ -344,12 +344,12 @@ function Wt() {
344
344
  } catch (ue) {
345
345
  z = ue;
346
346
  }
347
- z && !(z instanceof Error) && (N(ee), d("%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).", S || "React class", p, Y, typeof z), N(null)), z instanceof Error && !(z.message in D) && (D[z.message] = !0, N(ee), d("Failed %s type: %s", p, z.message), N(null));
347
+ z && !(z instanceof Error) && (N(te), f("%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).", S || "React class", p, Y, typeof z), N(null)), z instanceof Error && !(z.message in D) && (D[z.message] = !0, N(te), f("Failed %s type: %s", p, z.message), N(null));
348
348
  }
349
349
  }
350
350
  }
351
351
  var pe = Array.isArray;
352
- function _e(e) {
352
+ function me(e) {
353
353
  return pe(e);
354
354
  }
355
355
  function ve(e) {
@@ -370,7 +370,7 @@ function Wt() {
370
370
  }
371
371
  function Se(e) {
372
372
  if (Ee(e))
373
- return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ve(e)), ke(e);
373
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ve(e)), ke(e);
374
374
  }
375
375
  var we = V.ReactCurrentOwner, We = {
376
376
  key: !0,
@@ -400,7 +400,7 @@ function Wt() {
400
400
  function Me(e, i) {
401
401
  {
402
402
  var p = function() {
403
- Oe || (Oe = !0, d("%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)", i));
403
+ Oe || (Oe = !0, f("%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)", i));
404
404
  };
405
405
  p.isReactWarning = !0, Object.defineProperty(e, "key", {
406
406
  get: p,
@@ -411,7 +411,7 @@ function Wt() {
411
411
  function dt(e, i) {
412
412
  {
413
413
  var p = function() {
414
- $e || ($e = !0, d("%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)", i));
414
+ $e || ($e = !0, f("%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)", i));
415
415
  };
416
416
  p.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
417
  get: p,
@@ -419,7 +419,7 @@ function Wt() {
419
419
  });
420
420
  }
421
421
  }
422
- var ut = function(e, i, p, S, ee, ie, Y) {
422
+ var ut = function(e, i, p, S, te, se, Y) {
423
423
  var z = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
425
  $$typeof: r,
@@ -429,7 +429,7 @@ function Wt() {
429
429
  ref: p,
430
430
  props: Y,
431
431
  // Record the component responsible for creating this element.
432
- _owner: ie
432
+ _owner: se
433
433
  };
434
434
  return z._store = {}, Object.defineProperty(z._store, "validated", {
435
435
  configurable: !1,
@@ -445,31 +445,31 @@ function Wt() {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: ee
448
+ value: te
449
449
  }), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
450
450
  };
451
- function ft(e, i, p, S, ee) {
451
+ function ft(e, i, p, S, te) {
452
452
  {
453
- var ie, Y = {}, z = null, ye = null;
454
- p !== void 0 && (Se(p), z = "" + p), Ce(i) && (Se(i.key), z = "" + i.key), Fe(i) && (ye = i.ref, ze(i, ee));
455
- for (ie in i)
456
- s.call(i, ie) && !We.hasOwnProperty(ie) && (Y[ie] = i[ie]);
453
+ var se, Y = {}, z = null, ye = null;
454
+ p !== void 0 && (Se(p), z = "" + p), Ce(i) && (Se(i.key), z = "" + i.key), Fe(i) && (ye = i.ref, ze(i, te));
455
+ for (se in i)
456
+ s.call(i, se) && !We.hasOwnProperty(se) && (Y[se] = i[se]);
457
457
  if (e && e.defaultProps) {
458
458
  var ue = e.defaultProps;
459
- for (ie in ue)
460
- Y[ie] === void 0 && (Y[ie] = ue[ie]);
459
+ for (se in ue)
460
+ Y[se] === void 0 && (Y[se] = ue[se]);
461
461
  }
462
462
  if (z || ye) {
463
463
  var fe = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
464
  z && Me(Y, fe), ye && dt(Y, fe);
465
465
  }
466
- return ut(e, z, ye, ee, S, we.current, Y);
466
+ return ut(e, z, ye, te, S, we.current, Y);
467
467
  }
468
468
  }
469
469
  var Be = V.ReactCurrentOwner, Ke = V.ReactDebugCurrentFrame;
470
470
  function Te(e) {
471
471
  if (e) {
472
- var i = e._owner, p = u(e.type, e._source, i ? i.type : null);
472
+ var i = e._owner, p = h(e.type, e._source, i ? i.type : null);
473
473
  Ke.setExtraStackFrame(p);
474
474
  } else
475
475
  Ke.setExtraStackFrame(null);
@@ -517,14 +517,14 @@ Check the top-level render call using <` + p + ">.");
517
517
  return;
518
518
  qe[p] = !0;
519
519
  var S = "";
520
- e && e._owner && e._owner !== Be.current && (S = " It was passed a child from " + C(e._owner.type) + "."), Te(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, S), Te(null);
520
+ e && e._owner && e._owner !== Be.current && (S = " It was passed a child from " + C(e._owner.type) + "."), Te(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, S), Te(null);
521
521
  }
522
522
  }
523
523
  function Ge(e, i) {
524
524
  {
525
525
  if (typeof e != "object")
526
526
  return;
527
- if (_e(e))
527
+ if (me(e))
528
528
  for (var p = 0; p < e.length; p++) {
529
529
  var S = e[p];
530
530
  Je(S) && Ze(S, i);
@@ -532,9 +532,9 @@ Check the top-level render call using <` + p + ">.");
532
532
  else if (Je(e))
533
533
  e._store && (e._store.validated = !0);
534
534
  else if (e) {
535
- var ee = te(e);
536
- if (typeof ee == "function" && ee !== e.entries)
537
- for (var ie = ee.call(e), Y; !(Y = ie.next()).done; )
535
+ var te = re(e);
536
+ if (typeof te == "function" && te !== e.entries)
537
+ for (var se = te.call(e), Y; !(Y = se.next()).done; )
538
538
  Je(Y.value) && Ze(Y.value, i);
539
539
  }
540
540
  }
@@ -547,7 +547,7 @@ Check the top-level render call using <` + p + ">.");
547
547
  var p;
548
548
  if (typeof i == "function")
549
549
  p = i.propTypes;
550
- else if (typeof i == "object" && (i.$$typeof === _ || // Note: Memo only checks outer props here.
550
+ else if (typeof i == "object" && (i.$$typeof === m || // Note: Memo only checks outer props here.
551
551
  // Inner props are checked in the reconciler.
552
552
  i.$$typeof === P))
553
553
  p = i.propTypes;
@@ -558,10 +558,10 @@ Check the top-level render call using <` + p + ">.");
558
558
  xe(p, e.props, "prop", S, e);
559
559
  } else if (i.PropTypes !== void 0 && !Ve) {
560
560
  Ve = !0;
561
- var ee = C(i);
562
- d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ee || "Unknown");
561
+ var te = C(i);
562
+ f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
563
563
  }
564
- typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
564
+ typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && f("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) {
@@ -569,15 +569,15 @@ Check the top-level render call using <` + p + ">.");
569
569
  for (var i = Object.keys(e.props), p = 0; p < i.length; p++) {
570
570
  var S = i[p];
571
571
  if (S !== "children" && S !== "key") {
572
- Te(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Te(null);
572
+ Te(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Te(null);
573
573
  break;
574
574
  }
575
575
  }
576
- e.ref !== null && (Te(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
576
+ e.ref !== null && (Te(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
577
577
  }
578
578
  }
579
579
  var Xe = {};
580
- function Qe(e, i, p, S, ee, ie) {
580
+ function Qe(e, i, p, S, te, se) {
581
581
  {
582
582
  var Y = x(e);
583
583
  if (!Y) {
@@ -586,39 +586,39 @@ Check the top-level render call using <` + p + ">.");
586
586
  var ye = ht();
587
587
  ye ? z += ye : z += Ue();
588
588
  var ue;
589
- e === null ? ue = "null" : _e(e) ? ue = "array" : e !== void 0 && e.$$typeof === r ? (ue = "<" + (C(e.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, z);
589
+ e === null ? ue = "null" : me(e) ? ue = "array" : e !== void 0 && e.$$typeof === r ? (ue = "<" + (C(e.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, z);
590
590
  }
591
- var fe = ft(e, i, p, ee, ie);
591
+ var fe = ft(e, i, p, te, se);
592
592
  if (fe == null)
593
593
  return fe;
594
594
  if (Y) {
595
- var me = i.children;
596
- if (me !== void 0)
595
+ var _e = i.children;
596
+ if (_e !== void 0)
597
597
  if (S)
598
- if (_e(me)) {
599
- for (var De = 0; De < me.length; De++)
600
- Ge(me[De], e);
601
- Object.freeze && Object.freeze(me);
598
+ if (me(_e)) {
599
+ for (var De = 0; De < _e.length; De++)
600
+ Ge(_e[De], e);
601
+ Object.freeze && Object.freeze(_e);
602
602
  } else
603
- d("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
+ f("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
- Ge(me, e);
605
+ Ge(_e, e);
606
606
  }
607
607
  if (s.call(i, "key")) {
608
608
  var Re = C(e), be = Object.keys(i).filter(function(Ct) {
609
609
  return Ct !== "key";
610
610
  }), He = be.length > 0 ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}";
611
611
  if (!Xe[Re + He]) {
612
- var _t = be.length > 0 ? "{" + be.join(": ..., ") + ": ...}" : "{}";
613
- d(`A props object containing a "key" prop is being spread into JSX:
612
+ var mt = be.length > 0 ? "{" + be.join(": ..., ") + ": ...}" : "{}";
613
+ f(`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:
617
617
  let props = %s;
618
- <%s key={someKey} {...props} />`, He, Re, _t, Re), Xe[Re + He] = !0;
618
+ <%s key={someKey} {...props} />`, He, Re, mt, Re), Xe[Re + He] = !0;
619
619
  }
620
620
  }
621
- return e === l ? vt(fe) : pt(fe), fe;
621
+ return e === d ? vt(fe) : pt(fe), fe;
622
622
  }
623
623
  }
624
624
  function yt(e, i, p) {
@@ -627,8 +627,8 @@ React keys must be passed directly to JSX without using spread:
627
627
  function xt(e, i, p) {
628
628
  return Qe(e, i, p, !1);
629
629
  }
630
- var bt = xt, mt = yt;
631
- Le.Fragment = l, Le.jsx = bt, Le.jsxs = mt;
630
+ var bt = xt, _t = yt;
631
+ Le.Fragment = d, Le.jsx = bt, Le.jsxs = _t;
632
632
  }()), Le;
633
633
  }
634
634
  process.env.NODE_ENV === "production" ? Ye.exports = It() : Ye.exports = Wt();
@@ -636,54 +636,58 @@ var n = Ye.exports;
636
636
  const Ft = ({
637
637
  column: t,
638
638
  currWidth: r,
639
- currMinWidth: o,
640
- onResize: l,
641
- scrollContainerRef: k
639
+ currMinWidth: l,
640
+ onResize: d,
641
+ scrollContainerRef: w
642
642
  }) => {
643
- const [y, R] = ge(!1), [$, _] = ge(null), [M, w] = ge(0), [P, U] = ge(0), [G, X] = ge(null), [K, te] = ge(null), V = je(null);
643
+ const [y, R] = ge(!1), [$, m] = ge(null), [M, j] = ge(0), [P, U] = ge(0), [X, Q] = ge(null), [K, re] = ge(null), V = je(null);
644
644
  je(0);
645
- const d = je(!1), L = je(null), m = je(0), F = je(0), J = ne((c) => {
645
+ const f = je(!1), L = je(null), _ = je(0), F = je(0), J = ae((o) => {
646
646
  if (!y || !$ || !t) return;
647
- const x = c.clientX - M;
648
- t.minWidth;
649
- let h = P + x;
650
- m.current = h;
651
- const g = h - P, C = F.current + g;
652
- X(C);
653
- }, [y, M, P, $, k, t]), v = ne(() => {
647
+ const x = o.clientX - M, u = t.minWidth || 50;
648
+ let c = P + x;
649
+ c < u && (c = u), t.maxWidth && c > t.maxWidth && (c = t.maxWidth), _.current = c;
650
+ const C = c - P, E = F.current + C;
651
+ Q(E);
652
+ }, [y, M, P, $, w, t]), v = ae(() => {
653
+ var ne;
654
654
  if (!y || !$) return;
655
- t.minWidth;
656
- const x = m.current || P, h = $;
657
- V.current && (clearInterval(V.current), V.current = null), d.current = !1, R(!1), w(0), U(0), _(null), X(null), te(null), m.current = 0, F.current = 0, document.removeEventListener("mousemove", J), document.removeEventListener("mouseup", v);
658
- const C = ((j) => {
659
- var ae;
660
- return typeof window < "u" && ((ae = window.CSS) != null && ae.escape) ? window.CSS.escape(j) : j.replace(/([#.;?\[\]\s])/g, "\\$1");
661
- })(h), E = document.querySelector(`th[data-column-key="${C}"]`);
662
- E && (E.style.width = `${x}px`, E.style.minWidth = `${x}px`), document.querySelectorAll(`td[data-column-key="${C}"]`).forEach((j) => {
663
- j.style.width = `${x}px`, j.style.minWidth = `${x}px`;
655
+ const o = t.minWidth || 50;
656
+ let x = _.current || P;
657
+ x < o && (x = o), t != null && t.maxWidth && x > t.maxWidth && (x = t.maxWidth);
658
+ const u = x, c = $;
659
+ V.current && (clearInterval(V.current), V.current = null), f.current = !1, R(!1), j(0), U(0), m(null), Q(null), re(null), _.current = 0, F.current = 0, document.removeEventListener("mousemove", J), document.removeEventListener("mouseup", v);
660
+ const E = ((q) => {
661
+ var ce;
662
+ return typeof window < "u" && ((ce = window.CSS) != null && ce.escape) ? window.CSS.escape(q) : q.replace(/([#.;?\[\]\s])/g, "\\$1");
663
+ })(c), k = (ne = L.current) == null ? void 0 : ne.closest("table");
664
+ if (!k) return;
665
+ const O = k.querySelector(`th[data-column-key="${E}"]`);
666
+ O && (O.style.width = `${u}px`, O.style.minWidth = `${u}px`), k.querySelectorAll(`td[data-column-key="${E}"]`).forEach((q) => {
667
+ q.style.width = `${u}px`;
664
668
  }), Et(() => {
665
- l == null || l(h, x);
669
+ d == null || d(c, u);
666
670
  });
667
- }, [y, $, t, P, l, J]), f = ne((c, x, h) => {
668
- if (c.preventDefault(), !L.current) return;
669
- R(!0), w(c.clientX), U(h), _(x), m.current = h;
670
- const g = L.current.getBoundingClientRect(), C = g.left + 12;
671
- X(C), F.current = C;
672
- const E = k == null ? void 0 : k.current, O = L.current.closest("table");
671
+ }, [y, $, t, P, d, J]), g = ae((o, x, u) => {
672
+ if (o.preventDefault(), !L.current) return;
673
+ R(!0), j(o.clientX), U(u), m(x), _.current = u;
674
+ const c = L.current.getBoundingClientRect(), C = c.left + 12;
675
+ Q(C), F.current = C;
676
+ const E = w == null ? void 0 : w.current, k = L.current.closest("table");
673
677
  if (E) {
674
- const j = E.getBoundingClientRect();
675
- te({
676
- top: j.top + g.height * 2,
677
- height: j.height - g.height * 2
678
+ const O = E.getBoundingClientRect();
679
+ re({
680
+ top: O.top + c.height * 2,
681
+ height: O.height - c.height * 2
678
682
  });
679
- } else if (O) {
680
- const j = O.getBoundingClientRect();
681
- te({
682
- top: j.top,
683
- height: j.height
683
+ } else if (k) {
684
+ const O = k.getBoundingClientRect();
685
+ re({
686
+ top: O.top,
687
+ height: O.height
684
688
  });
685
689
  }
686
- }, [k]);
690
+ }, [w]);
687
691
  return Ie(() => {
688
692
  y && (document.addEventListener("mousemove", J), document.addEventListener("mouseup", v));
689
693
  }, [y, J, v]), Ie(() => () => {
@@ -694,17 +698,17 @@ const Ft = ({
694
698
  {
695
699
  ref: L,
696
700
  className: "radar-table__resize-button",
697
- onMouseDown: (c) => f(c, t.key, r || o || 200),
701
+ onMouseDown: (o) => g(o, t.key, r || l || 200),
698
702
  title: "Изменить ширину колонки",
699
703
  children: /* @__PURE__ */ n.jsx("div", {})
700
704
  }
701
705
  ),
702
- G !== null && K && /* @__PURE__ */ n.jsx(
706
+ X !== null && K && /* @__PURE__ */ n.jsx(
703
707
  "div",
704
708
  {
705
709
  className: "radar-table__resize-line",
706
710
  style: {
707
- left: `${G}px`,
711
+ left: `${X}px`,
708
712
  top: `${K.top}px`,
709
713
  height: `${K.height}px`
710
714
  }
@@ -712,12 +716,12 @@ const Ft = ({
712
716
  )
713
717
  ] });
714
718
  }, At = ({ text: t, children: r }) => {
715
- const [o, l] = ge(!1), [k, y] = ge("left"), R = je(null), $ = () => {
719
+ const [l, d] = ge(!1), [w, y] = ge("left"), R = je(null), $ = () => {
716
720
  if (R.current) {
717
- const _ = R.current.getBoundingClientRect(), M = window.innerWidth, w = 250, P = 20, U = M - _.left, G = _.right;
718
- U < w + P && G > w + P ? y("right") : y("left");
721
+ const m = R.current.getBoundingClientRect(), M = window.innerWidth, j = 250, P = 20, U = M - m.left, X = m.right;
722
+ U < j + P && X > j + P ? y("right") : y("left");
719
723
  }
720
- l(!0);
724
+ d(!0);
721
725
  };
722
726
  return /* @__PURE__ */ n.jsxs(
723
727
  "button",
@@ -725,7 +729,7 @@ const Ft = ({
725
729
  ref: R,
726
730
  className: "radar-table__tooltip-button",
727
731
  onMouseOver: $,
728
- onMouseOut: () => l(!1),
732
+ onMouseOut: () => d(!1),
729
733
  children: [
730
734
  r || /* @__PURE__ */ n.jsxs("svg", { width: "1.5em", height: "1em", viewBox: "0 0 24 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
731
735
  /* @__PURE__ */ n.jsx("rect", { stroke: "currentColor", x: "0.75", y: "0.75", width: "18.5", height: "18.5", rx: "9.25", strokeOpacity: "0.25", strokeWidth: "1.5" }),
@@ -734,7 +738,7 @@ const Ft = ({
734
738
  /* @__PURE__ */ n.jsx(
735
739
  "div",
736
740
  {
737
- className: `radar-table__tooltip-text ${o ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${k}`,
741
+ className: `radar-table__tooltip-text ${l ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${w}`,
738
742
  children: t
739
743
  }
740
744
  )
@@ -751,10 +755,10 @@ const Ft = ({
751
755
  function Mt({
752
756
  children: t,
753
757
  fullConfig: r,
754
- onColumnReorder: o,
755
- scrollContainerRef: l
758
+ onColumnReorder: l,
759
+ scrollContainerRef: d
756
760
  }) {
757
- const [k, y] = ge(null), [R, $] = ge(40), [_, M] = ge(200), [w, P] = ge(null), U = jt(
761
+ const [w, y] = ge(null), [R, $] = ge(40), [m, M] = ge(200), [j, P] = ge(null), U = jt(
758
762
  et(St, {
759
763
  activationConstraint: {
760
764
  distance: 5
@@ -764,189 +768,189 @@ function Mt({
764
768
  et(Rt, {
765
769
  coordinateGetter: Nt
766
770
  })
767
- ), G = ne((v) => {
768
- const f = Tt(v);
769
- if (f.length > 0) {
770
- const h = f.filter(
771
- (g) => g.id.toString().startsWith("drop-zone-")
771
+ ), X = ae((v) => {
772
+ const g = Tt(v);
773
+ if (g.length > 0) {
774
+ const u = g.filter(
775
+ (c) => c.id.toString().startsWith("drop-zone-")
772
776
  );
773
- if (h.length > 0)
774
- return h;
777
+ if (u.length > 0)
778
+ return u;
775
779
  }
776
780
  const x = Dt(v).filter(
777
- (h) => h.id.toString().startsWith("drop-zone-")
781
+ (u) => u.id.toString().startsWith("drop-zone-")
778
782
  );
779
783
  return x.length > 0 ? [x[0]] : [];
780
- }, []), X = ne((v) => v.some((f) => f.children && f.children.length > 0), []), K = ne((v, f) => {
781
- const c = (x, h, g = 0, C = null) => {
784
+ }, []), Q = ae((v) => v.some((g) => g.children && g.children.length > 0), []), K = ae((v, g) => {
785
+ const o = (x, u, c = 0, C = null) => {
782
786
  for (const E of x) {
783
- if (E.key === h)
784
- return { column: E, parent: C, level: g };
787
+ if (E.key === u)
788
+ return { column: E, parent: C, level: c };
785
789
  if (E.children && E.children.length > 0) {
786
- const O = c(E.children, h, g + 1, E);
787
- if (O) return O;
790
+ const k = o(E.children, u, c + 1, E);
791
+ if (k) return k;
788
792
  }
789
793
  }
790
794
  return null;
791
795
  };
792
- return c(v, f);
793
- }, []), te = ne((v, f) => {
796
+ return o(v, g);
797
+ }, []), re = ae((v, g) => {
794
798
  var x;
795
- const c = K(f, v);
796
- return c && (c.column.fixed || ((x = c.parent) == null ? void 0 : x.fixed)) || !1;
797
- }, [K]), V = ne((v, f) => {
798
- if (v.columnKey === f.columnKey)
799
+ const o = K(g, v);
800
+ return o && (o.column.fixed || ((x = o.parent) == null ? void 0 : x.fixed)) || !1;
801
+ }, [K]), V = ae((v, g) => {
802
+ if (v.columnKey === g.columnKey)
799
803
  return !1;
800
- const c = te(v.columnKey, r), x = te(f.columnKey, r);
801
- if (c !== x)
804
+ const o = re(v.columnKey, r), x = re(g.columnKey, r);
805
+ if (o !== x)
802
806
  return !1;
803
- if (X(r)) {
804
- const h = K(r, v.columnKey), g = K(r, f.columnKey);
805
- if (!h || !g)
807
+ if (Q(r)) {
808
+ const u = K(r, v.columnKey), c = K(r, g.columnKey);
809
+ if (!u || !c)
806
810
  return !1;
807
- const C = v.isLeaf, E = f.isLeaf;
811
+ const C = v.isLeaf, E = g.isLeaf;
808
812
  if (!C && !E) {
809
- const O = h.level === g.level, j = h.parent === null && g.parent === null || h.parent !== null && g.parent !== null && h.parent.key === g.parent.key;
810
- return O && j;
813
+ const k = u.level === c.level, O = u.parent === null && c.parent === null || u.parent !== null && c.parent !== null && u.parent.key === c.parent.key;
814
+ return k && O;
811
815
  }
812
816
  if (C && E) {
813
- const O = h.level === g.level, j = h.parent === null && g.parent === null || h.parent !== null && g.parent !== null && h.parent.key === g.parent.key;
814
- return O && j;
817
+ const k = u.level === c.level, O = u.parent === null && c.parent === null || u.parent !== null && c.parent !== null && u.parent.key === c.parent.key;
818
+ return k && O;
815
819
  }
816
820
  return !1;
817
821
  }
818
822
  return !0;
819
- }, [r, X, K, te]), d = ne((v, f, c) => {
820
- var ce, he;
821
- if (!X(r)) {
822
- const A = c.findIndex((B) => B.key === v), I = c.findIndex((B) => B.key === f);
823
+ }, [r, Q, K, re]), f = ae((v, g, o) => {
824
+ var de, he;
825
+ if (!Q(r)) {
826
+ const A = o.findIndex((B) => B.key === v), I = o.findIndex((B) => B.key === g);
823
827
  if (A === -1 || I === -1)
824
- return c;
825
- const q = [...c], Q = q[A];
826
- q.splice(A, 1);
827
- const le = (A < I, I);
828
- return q.splice(le, 0, Q), q;
829
- }
830
- const x = K(r, v), h = K(r, f);
831
- if (!x || !h)
832
- return c;
833
- const g = JSON.parse(JSON.stringify(r)), C = (A, I) => {
828
+ return o;
829
+ const Z = [...o], ee = Z[A];
830
+ Z.splice(A, 1);
831
+ const oe = (A < I, I);
832
+ return Z.splice(oe, 0, ee), Z;
833
+ }
834
+ const x = K(r, v), u = K(r, g);
835
+ if (!x || !u)
836
+ return o;
837
+ const c = JSON.parse(JSON.stringify(r)), C = (A, I) => {
834
838
  if (I === null)
835
839
  return { container: A, parentObj: null };
836
- const q = (le) => {
837
- for (const B of le) {
840
+ const Z = (oe) => {
841
+ for (const B of oe) {
838
842
  if (B.key === I)
839
843
  return B;
840
844
  if (B.children) {
841
- const T = q(B.children);
845
+ const T = Z(B.children);
842
846
  if (T) return T;
843
847
  }
844
848
  }
845
849
  return null;
846
- }, Q = q(A);
850
+ }, ee = Z(A);
847
851
  return {
848
- container: (Q == null ? void 0 : Q.children) || A,
849
- parentObj: Q
852
+ container: (ee == null ? void 0 : ee.children) || A,
853
+ parentObj: ee
850
854
  };
851
- }, E = ((ce = x.parent) == null ? void 0 : ce.key) || null, O = ((he = h.parent) == null ? void 0 : he.key) || null, { container: j } = C(g, E), { container: ae } = C(g, O);
852
- if (j !== ae)
853
- return c;
854
- const se = j.findIndex((A) => A.key === v), oe = j.findIndex((A) => A.key === f);
855
- if (se === -1 || oe === -1)
856
- return c;
857
- const [de] = j.splice(se, 1), re = (se < oe, oe);
858
- return j.splice(re, 0, de), g;
859
- }, [r, X, K]), L = ne((v) => {
860
- const f = v.active.data.current;
861
- y(f);
862
- const c = document.querySelector(`[data-column-key="${f.columnKey}"]`);
863
- if (c) {
864
- const x = c.getBoundingClientRect();
855
+ }, E = ((de = x.parent) == null ? void 0 : de.key) || null, k = ((he = u.parent) == null ? void 0 : he.key) || null, { container: O } = C(c, E), { container: le } = C(c, k);
856
+ if (O !== le)
857
+ return o;
858
+ const ne = O.findIndex((A) => A.key === v), q = O.findIndex((A) => A.key === g);
859
+ if (ne === -1 || q === -1)
860
+ return o;
861
+ const [ce] = O.splice(ne, 1), ie = (ne < q, q);
862
+ return O.splice(ie, 0, ce), c;
863
+ }, [r, Q, K]), L = ae((v) => {
864
+ const g = v.active.data.current;
865
+ y(g);
866
+ const o = document.querySelector(`[data-column-key="${g.columnKey}"]`);
867
+ if (o) {
868
+ const x = o.getBoundingClientRect();
865
869
  M(x.width);
866
- const h = c.closest("table");
867
- c.closest('[style*="overflow"]');
868
- const g = h;
869
- if (g) {
870
- const C = g.getBoundingClientRect();
870
+ const u = o.closest("table");
871
+ o.closest('[style*="overflow"]');
872
+ const c = u;
873
+ if (c) {
874
+ const C = c.getBoundingClientRect();
871
875
  $(C.height);
872
876
  } else
873
877
  $(400);
874
878
  } else
875
879
  $(400), M(200);
876
880
  document.body.style.cursor = "grabbing";
877
- }, []), m = ne((v) => {
878
- const { active: f, over: c } = v;
879
- if (!c || !f.data.current) {
881
+ }, []), _ = ae((v) => {
882
+ const { active: g, over: o } = v;
883
+ if (!o || !g.data.current) {
880
884
  document.body.style.cursor = "grabbing", P(null);
881
885
  return;
882
886
  }
883
- const x = f.data.current, h = c.data.current;
884
- if (!h) {
887
+ const x = g.data.current, u = o.data.current;
888
+ if (!u) {
885
889
  document.body.style.cursor = "grabbing", P(null);
886
890
  return;
887
891
  }
888
- const g = V(x, h);
889
- document.body.style.cursor = g ? "copy" : "not-allowed";
890
- const C = document.querySelectorAll(`th[data-column-key="${h.columnKey}"]`), E = X(r), O = C.length > 0 ? E && h.isLeaf ? C[C.length - 1] : C[0] : null;
891
- if (O) {
892
- const j = O.getBoundingClientRect(), ae = O.closest("table");
893
- let se = j.left;
894
- const oe = l == null ? void 0 : l.current;
895
- let de, re;
896
- if (oe) {
897
- const ce = oe.getBoundingClientRect();
898
- de = ce.top, re = ce.height;
899
- } else if (ae) {
900
- const ce = ae.getBoundingClientRect();
901
- de = ce.top, re = ce.height;
892
+ const c = V(x, u);
893
+ document.body.style.cursor = c ? "copy" : "not-allowed";
894
+ const C = document.querySelectorAll(`th[data-column-key="${u.columnKey}"]`), E = Q(r), k = C.length > 0 ? E && u.isLeaf ? C[C.length - 1] : C[0] : null;
895
+ if (k) {
896
+ const O = k.getBoundingClientRect(), le = k.closest("table");
897
+ let ne = O.left;
898
+ const q = d == null ? void 0 : d.current;
899
+ let ce, ie;
900
+ if (q) {
901
+ const de = q.getBoundingClientRect();
902
+ ce = de.top, ie = de.height;
903
+ } else if (le) {
904
+ const de = le.getBoundingClientRect();
905
+ ce = de.top, ie = de.height;
902
906
  } else
903
- de = j.top, re = j.height * 10;
907
+ ce = O.top, ie = O.height * 10;
904
908
  P({
905
- left: se,
906
- top: de,
907
- height: re,
908
- color: g ? "#5329FF" : "#ff3b3b"
909
+ left: ne,
910
+ top: ce,
911
+ height: ie,
912
+ color: c ? "#5329FF" : "#ff3b3b"
909
913
  });
910
914
  } else
911
915
  P(null);
912
- }, [V]), F = ne((v) => {
913
- const { active: f, over: c } = v;
914
- if (document.body.style.cursor = "", y(null), $(40), M(200), P(null), !c || !f.data.current || !c.data.current)
916
+ }, [V]), F = ae((v) => {
917
+ const { active: g, over: o } = v;
918
+ if (document.body.style.cursor = "", y(null), $(40), M(200), P(null), !o || !g.data.current || !o.data.current)
915
919
  return;
916
- const x = f.data.current, h = c.data.current;
917
- if (V(x, h) && o) {
918
- const g = d(
920
+ const x = g.data.current, u = o.data.current;
921
+ if (V(x, u) && l) {
922
+ const c = f(
919
923
  x.columnKey,
920
- h.columnKey,
924
+ u.columnKey,
921
925
  r
922
926
  );
923
- g._dragInfo = {
927
+ c._dragInfo = {
924
928
  draggedKey: x.columnKey,
925
- targetKey: h.columnKey,
929
+ targetKey: u.columnKey,
926
930
  draggedIndex: x.index,
927
931
  targetIndex: -1
928
932
  // будет вычислен в TableHeader если нужно
929
- }, o(g);
933
+ }, l(c);
930
934
  }
931
- }, [V, o, d, r]), J = {
932
- activeColumn: k,
935
+ }, [V, l, f, r]), J = {
936
+ activeColumn: w,
933
937
  isValidDropZone: V
934
938
  };
935
939
  return /* @__PURE__ */ n.jsx(ct.Provider, { value: J, children: /* @__PURE__ */ n.jsxs(
936
940
  Ot,
937
941
  {
938
942
  sensors: U,
939
- collisionDetection: G,
943
+ collisionDetection: X,
940
944
  onDragStart: L,
941
- onDragOver: m,
945
+ onDragOver: _,
942
946
  onDragEnd: F,
943
947
  children: [
944
948
  t,
945
- /* @__PURE__ */ n.jsx($t, { dropAnimation: null, children: k ? /* @__PURE__ */ n.jsx(
949
+ /* @__PURE__ */ n.jsx($t, { dropAnimation: null, children: w ? /* @__PURE__ */ n.jsx(
946
950
  "div",
947
951
  {
948
952
  style: {
949
- width: `${_}px`,
953
+ width: `${m}px`,
950
954
  height: `${R}px`,
951
955
  backgroundColor: "#5329FF",
952
956
  opacity: 0.5,
@@ -956,16 +960,16 @@ function Mt({
956
960
  }
957
961
  }
958
962
  ) : null }),
959
- w && /* @__PURE__ */ n.jsx(
963
+ j && /* @__PURE__ */ n.jsx(
960
964
  "div",
961
965
  {
962
966
  style: {
963
967
  position: "fixed",
964
- left: `${w.left}px`,
965
- top: `${w.top}px`,
968
+ left: `${j.left}px`,
969
+ top: `${j.top}px`,
966
970
  width: "2px",
967
- height: `${w.height}px`,
968
- backgroundColor: w.color,
971
+ height: `${j.height}px`,
972
+ backgroundColor: j.color,
969
973
  zIndex: 1e4,
970
974
  pointerEvents: "none",
971
975
  opacity: 0.2
@@ -981,65 +985,65 @@ const Bt = (t) => {
981
985
  return typeof window < "u" && ((r = window.CSS) != null && r.escape) ? window.CSS.escape(t) : t.replace(/([#.;?\[\]\s])/g, "\\$1");
982
986
  }, Vt = (t) => {
983
987
  if (typeof document > "u") return null;
984
- const r = `th[data-column-key="${Bt(t)}"]`, o = document.querySelector(r);
985
- return o ? o.getBoundingClientRect().width : null;
988
+ const r = `th[data-column-key="${Bt(t)}"]`, l = document.querySelector(r);
989
+ return l ? l.getBoundingClientRect().width : null;
986
990
  };
987
991
  function Jt({
988
992
  column: t,
989
993
  index: r,
990
- config: o,
991
- fullConfig: l,
992
- sorting: k,
994
+ config: l,
995
+ fullConfig: d,
996
+ sorting: w,
993
997
  onSort: y,
994
998
  onResize: R,
995
999
  sortIcon: $,
996
- resizeable: _,
1000
+ resizeable: m,
997
1001
  draggableColumns: M,
998
- preset: w,
1002
+ preset: j,
999
1003
  headerCellClassName: P,
1000
1004
  headerCellStyle: U,
1001
- headerCellWrapperClassName: G,
1002
- headerCellWrapperStyle: X,
1005
+ headerCellWrapperClassName: X,
1006
+ headerCellWrapperStyle: Q,
1003
1007
  stickyHeader: K,
1004
- scrollContainerRef: te,
1008
+ scrollContainerRef: re,
1005
1009
  resizeThrottle: V
1006
1010
  }) {
1007
1011
  var B;
1008
1012
  if (t.hidden)
1009
1013
  return null;
1010
- const { activeColumn: d, isValidDropZone: L } = zt(), m = !t.children || t.children.length === 0;
1011
- Ae(() => (l == null ? void 0 : l.some((T) => T.children && T.children.length > 0)) || !1, [l]);
1012
- const F = M, v = ne((T) => {
1013
- if (!l) return null;
1014
- const Z = (W, a, b = null) => {
1015
- for (const u of W) {
1016
- if (u.key === a)
1014
+ const { activeColumn: f, isValidDropZone: L } = zt(), _ = !t.children || t.children.length === 0;
1015
+ Ae(() => (d == null ? void 0 : d.some((T) => T.children && T.children.length > 0)) || !1, [d]);
1016
+ const F = M, v = ae((T) => {
1017
+ if (!d) return null;
1018
+ const G = (W, a, b = null) => {
1019
+ for (const h of W) {
1020
+ if (h.key === a)
1017
1021
  return b;
1018
- if (u.children && u.children.length > 0) {
1019
- const s = Z(u.children, a, u);
1022
+ if (h.children && h.children.length > 0) {
1023
+ const s = G(h.children, a, h);
1020
1024
  if (s !== null) return s;
1021
1025
  }
1022
1026
  }
1023
1027
  return null;
1024
1028
  };
1025
- return Z(l, T);
1026
- }, [l])(t.key), f = t.fixed || (v == null ? void 0 : v.fixed) || !1, x = ne((T) => {
1027
- if (!l) return 0;
1028
- const Z = (W, a, b = 0) => {
1029
- for (const u of W) {
1030
- if (u.key === a)
1029
+ return G(d, T);
1030
+ }, [d])(t.key), g = t.fixed || (v == null ? void 0 : v.fixed) || !1, x = ae((T) => {
1031
+ if (!d) return 0;
1032
+ const G = (W, a, b = 0) => {
1033
+ for (const h of W) {
1034
+ if (h.key === a)
1031
1035
  return b;
1032
- if (u.children && u.children.length > 0) {
1033
- const s = Z(u.children, a, b + 1);
1036
+ if (h.children && h.children.length > 0) {
1037
+ const s = G(h.children, a, b + 1);
1034
1038
  if (s !== -1) return s;
1035
1039
  }
1036
1040
  }
1037
1041
  return -1;
1038
1042
  };
1039
- return Z(l, T);
1040
- }, [l])(t.key), {
1041
- attributes: h,
1042
- listeners: g,
1043
+ return G(d, T);
1044
+ }, [d])(t.key), {
1045
+ attributes: u,
1046
+ listeners: c,
1043
1047
  setNodeRef: C,
1044
1048
  isDragging: E
1045
1049
  } = Pt({
@@ -1047,110 +1051,110 @@ function Jt({
1047
1051
  data: {
1048
1052
  type: "table-column",
1049
1053
  columnKey: t.key,
1050
- isFixed: f,
1054
+ isFixed: g,
1051
1055
  parentKey: v == null ? void 0 : v.key,
1052
1056
  level: x,
1053
1057
  index: r,
1054
- isLeaf: m
1058
+ isLeaf: _
1055
1059
  // ✅ Добавляем информацию о типе колонки
1056
1060
  },
1057
1061
  disabled: !F
1058
1062
  }), {
1059
- setNodeRef: O,
1060
- isOver: j
1063
+ setNodeRef: k,
1064
+ isOver: O
1061
1065
  } = Lt({
1062
1066
  id: `drop-zone-${t.key}`,
1063
1067
  data: {
1064
1068
  type: "column-drop-zone",
1065
1069
  columnKey: t.key,
1066
- isFixed: f,
1067
- accepts: [f ? "fixed" : "non-fixed"],
1068
- isLeaf: m
1070
+ isFixed: g,
1071
+ accepts: [g ? "fixed" : "non-fixed"],
1072
+ isLeaf: _
1069
1073
  // ✅ Добавляем информацию о типе колонки
1070
1074
  },
1071
1075
  disabled: !1
1072
- }), ae = ne((T) => {
1073
- C(T), O(T);
1074
- }, [C, O]), se = Ae(() => {
1075
- if (!d || !j) return !1;
1076
+ }), le = ae((T) => {
1077
+ C(T), k(T);
1078
+ }, [C, k]), ne = Ae(() => {
1079
+ if (!f || !O) return !1;
1076
1080
  const T = {
1077
1081
  type: "column-drop-zone",
1078
1082
  columnKey: t.key,
1079
- isFixed: f,
1080
- accepts: [f ? "fixed" : "non-fixed"],
1081
- isLeaf: m
1083
+ isFixed: g,
1084
+ accepts: [g ? "fixed" : "non-fixed"],
1085
+ isLeaf: _
1082
1086
  };
1083
- return L(d, T);
1084
- }, [d, j, t.key, f, L, m]), oe = Ae(() => E ? "grabbing" : j && d ? se ? "copy" : "not-allowed" : "default", [E, j, d, se]), de = t.fixed && !t.width ? 200 : t.width, re = t.fixed && !t.minWidth ? 200 : t.minWidth, ce = ne(() => {
1087
+ return L(f, T);
1088
+ }, [f, O, t.key, g, L, _]), q = Ae(() => E ? "grabbing" : O && f ? ne ? "copy" : "not-allowed" : "default", [E, O, f, ne]), ce = t.fixed && !t.width ? 200 : t.width, ie = t.fixed && !t.minWidth ? 200 : t.minWidth, de = ae(() => {
1085
1089
  let T = t.fixedLeft || 0;
1086
- if (!f)
1090
+ if (!g)
1087
1091
  return T;
1088
- for (let Z = 0; Z < r; Z++) {
1089
- const W = o[Z];
1092
+ for (let G = 0; G < r; G++) {
1093
+ const W = l[G];
1090
1094
  W.fixed && !W.hidden && (T += (W.width || W.minWidth || 200) + (W.fixedLeft || 0));
1091
1095
  }
1092
1096
  return T;
1093
- }, [t.fixedLeft, o, r, f]), [he, A] = ge(() => ce());
1097
+ }, [t.fixedLeft, l, r, g]), [he, A] = ge(() => de());
1094
1098
  lt(() => {
1095
- if (!f) {
1096
- A(ce());
1099
+ if (!g) {
1100
+ A(de());
1097
1101
  return;
1098
1102
  }
1099
1103
  let T = t.fixedLeft || 0;
1100
- for (let Z = 0; Z < r; Z++) {
1101
- const W = o[Z];
1104
+ for (let G = 0; G < r; G++) {
1105
+ const W = l[G];
1102
1106
  if (W.fixed && !W.hidden) {
1103
1107
  const a = W.width || W.minWidth || 200, b = Vt(W.key);
1104
1108
  T += Math.floor(b ?? a) + (W.fixedLeft || 0) - 0.05;
1105
1109
  }
1106
1110
  }
1107
1111
  A(T);
1108
- }, [t.fixedLeft, t.width, t.minWidth, o, r, f, ce]);
1109
- const q = ((T) => {
1112
+ }, [t.fixedLeft, t.width, t.minWidth, l, r, g, de]);
1113
+ const Z = ((T) => {
1110
1114
  if (T.groupColor)
1111
1115
  return T.groupColor;
1112
- if (l) {
1113
- const Z = (a, b) => {
1114
- for (const u of a)
1115
- if (u.children) {
1116
- if (u.children.some((D) => D.key === b))
1117
- return u;
1118
- const s = Z(u.children, b);
1116
+ if (d) {
1117
+ const G = (a, b) => {
1118
+ for (const h of a)
1119
+ if (h.children) {
1120
+ if (h.children.some((D) => D.key === b))
1121
+ return h;
1122
+ const s = G(h.children, b);
1119
1123
  if (s) return s;
1120
1124
  }
1121
1125
  return null;
1122
- }, W = Z(l, T.key);
1126
+ }, W = G(d, T.key);
1123
1127
  return W == null ? void 0 : W.groupColor;
1124
1128
  }
1125
1129
  })(t);
1126
- let Q = "currentColor", le = "currentColor";
1127
- return k.sort_field === t.key && (k.sort_order === "ASC" && (Q = "#5329FF"), k.sort_order === "DESC" && (le = "#5329FF")), /* @__PURE__ */ n.jsx(
1130
+ let ee = "currentColor", oe = "currentColor";
1131
+ return w.sort_field === t.key && (w.sort_order === "ASC" && (ee = "#5329FF"), w.sort_order === "DESC" && (oe = "#5329FF")), /* @__PURE__ */ n.jsx(
1128
1132
  "th",
1129
1133
  {
1130
- ref: ae,
1134
+ ref: le,
1131
1135
  "data-column-key": t.key,
1132
1136
  className: `
1133
1137
  radar-table__header-cell
1134
- ${w ? w + "__header-cell" : ""}
1138
+ ${j ? j + "__header-cell" : ""}
1135
1139
  ${P || ""}
1136
1140
  ${E ? "dragging" : ""}
1137
- ${j ? "drag-over" : ""}
1138
- ${se && j ? "valid-drop-zone" : ""}
1139
- ${j && !se ? "invalid-drop-zone" : ""}
1140
- ${m ? "leaf-header" : "group-header"}
1141
+ ${O ? "drag-over" : ""}
1142
+ ${ne && O ? "valid-drop-zone" : ""}
1143
+ ${O && !ne ? "invalid-drop-zone" : ""}
1144
+ ${_ ? "leaf-header" : "group-header"}
1141
1145
  ${t.className || ""}`,
1142
1146
  colSpan: t.colSpan || 1,
1143
1147
  rowSpan: t.rowSpan || 1,
1144
1148
  style: {
1145
- width: de,
1146
- minWidth: re,
1149
+ width: ce,
1150
+ minWidth: ie,
1147
1151
  position: t.fixed ? "sticky" : "static",
1148
1152
  top: K && typeof K == "number" ? K : 0,
1149
1153
  left: he,
1150
- borderRight: t.fixed && !((B = o[r + 1]) != null && B.fixed) ? "1px solid #E8E8E8" : "none",
1154
+ borderRight: t.fixed && !((B = l[r + 1]) != null && B.fixed) ? "1px solid #E8E8E8" : "none",
1151
1155
  zIndex: t.fixed ? 2 : "auto",
1152
- backgroundColor: q,
1153
- cursor: oe,
1156
+ backgroundColor: Z,
1157
+ cursor: q,
1154
1158
  ...U,
1155
1159
  ...t.style
1156
1160
  },
@@ -1159,17 +1163,17 @@ function Jt({
1159
1163
  {
1160
1164
  className: `
1161
1165
  radar-table__header-cell-wrapper
1162
- ${w ? w + "__header-cell-wrapper" : ""}
1163
- ${G || ""}
1166
+ ${j ? j + "__header-cell-wrapper" : ""}
1167
+ ${X || ""}
1164
1168
  `,
1165
- style: X,
1169
+ style: Q,
1166
1170
  children: [
1167
1171
  F && /* @__PURE__ */ n.jsx(
1168
1172
  "div",
1169
1173
  {
1170
- className: `radar-table__drag-handle ${E ? "dragging" : ""} ${m ? "" : "group-drag-handle"}`,
1171
- ...h,
1172
- ...g,
1174
+ className: `radar-table__drag-handle ${E ? "dragging" : ""} ${_ ? "" : "group-drag-handle"}`,
1175
+ ...u,
1176
+ ...c,
1173
1177
  style: { cursor: E ? "grabbing" : "grab" },
1174
1178
  children: /* @__PURE__ */ n.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1175
1179
  /* @__PURE__ */ n.jsx("path", { d: "M2 2.62268e-07C3.10457 4.07115e-07 4 0.89543 4 2C4 3.10457 3.10457 4 2 4C0.895433 4 2.21557e-06 3.10457 2.36042e-06 2C2.50526e-06 0.89543 0.895433 1.17422e-07 2 2.62268e-07Z", fill: "#999999" }),
@@ -1186,12 +1190,12 @@ function Jt({
1186
1190
  {
1187
1191
  title: t.title,
1188
1192
  onClick: () => {
1189
- const { sort_field: T, sort_order: Z } = k;
1193
+ const { sort_field: T, sort_order: G } = w;
1190
1194
  let W = {
1191
1195
  columnKey: t.key,
1192
1196
  direction: "ASC"
1193
1197
  };
1194
- T === t.key ? Z === "ASC" ? W.direction = "DESC" : Z === "DESC" && (W.columnKey = void 0, W.direction = void 0) : (W.columnKey = t.key, W.direction = "ASC"), y(W.columnKey, W.direction);
1198
+ T === t.key ? G === "ASC" ? W.direction = "DESC" : G === "DESC" && (W.columnKey = void 0, W.direction = void 0) : (W.columnKey = t.key, W.direction = "ASC"), y(W.columnKey, W.direction);
1195
1199
  },
1196
1200
  style: {
1197
1201
  cursor: t.sortable ? "pointer" : "default",
@@ -1200,14 +1204,14 @@ function Jt({
1200
1204
  children: t.title
1201
1205
  }
1202
1206
  ) }),
1203
- t.sortable && !$ && m && /* @__PURE__ */ n.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
1207
+ t.sortable && !$ && _ && /* @__PURE__ */ n.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
1204
1208
  /* @__PURE__ */ n.jsx(
1205
1209
  "button",
1206
1210
  {
1207
1211
  className: "radar-table__sort-button",
1208
1212
  onClick: (T) => y(t.key, "ASC"),
1209
1213
  title: `Сортировать по ${t.title}`,
1210
- children: /* @__PURE__ */ n.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__ */ n.jsx("path", { fill: Q, 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" }) })
1214
+ children: /* @__PURE__ */ n.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__ */ n.jsx("path", { fill: ee, 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" }) })
1211
1215
  }
1212
1216
  ),
1213
1217
  /* @__PURE__ */ n.jsx(
@@ -1216,20 +1220,20 @@ function Jt({
1216
1220
  className: "radar-table__sort-button",
1217
1221
  onClick: (T) => y(t.key, "DESC"),
1218
1222
  title: `Сортировать по ${t.title}`,
1219
- children: /* @__PURE__ */ n.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__ */ n.jsx("path", { fill: le, 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" }) })
1223
+ children: /* @__PURE__ */ n.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__ */ n.jsx("path", { fill: oe, 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" }) })
1220
1224
  }
1221
1225
  )
1222
1226
  ] }),
1223
- t.sortable && $ && m && $(k.sort_field, k.sort_order),
1227
+ t.sortable && $ && _ && $(w.sort_field, w.sort_order),
1224
1228
  t.tooltipText && /* @__PURE__ */ n.jsx(At, { text: t.tooltipText, children: t.tooltipIcon }),
1225
- _ && m && /* @__PURE__ */ n.jsx(
1229
+ m && _ && /* @__PURE__ */ n.jsx(
1226
1230
  Ft,
1227
1231
  {
1228
1232
  column: t,
1229
- currWidth: de,
1230
- currMinWidth: re,
1233
+ currWidth: ce,
1234
+ currMinWidth: ie,
1231
1235
  onResize: R,
1232
- scrollContainerRef: te
1236
+ scrollContainerRef: re
1233
1237
  }
1234
1238
  )
1235
1239
  ]
@@ -1241,72 +1245,72 @@ function Jt({
1241
1245
  function nt({
1242
1246
  config: t,
1243
1247
  fullConfig: r,
1244
- onSort: o,
1245
- onResize: l,
1246
- onColumnReorder: k,
1248
+ onSort: l,
1249
+ onResize: d,
1250
+ onColumnReorder: w,
1247
1251
  // ✅ Сохранен (понадобится для передачи в TableDndProvider)
1248
1252
  sortIcon: y,
1249
1253
  resizeable: R,
1250
1254
  draggableColumns: $,
1251
- preset: _,
1255
+ preset: m,
1252
1256
  headerClassName: M,
1253
- headerStyle: w,
1257
+ headerStyle: j,
1254
1258
  headerRowClassName: P,
1255
1259
  headerRowStyle: U,
1256
- headerCellClassName: G,
1257
- headerCellStyle: X,
1260
+ headerCellClassName: X,
1261
+ headerCellStyle: Q,
1258
1262
  headerCellWrapperClassName: K,
1259
- headerCellWrapperStyle: te,
1263
+ headerCellWrapperStyle: re,
1260
1264
  stickyHeader: V,
1261
- scrollContainerRef: d,
1265
+ scrollContainerRef: f,
1262
1266
  // ✅ Сохранен (для передачи в HeaderCell)
1263
1267
  sorting: L,
1264
- defaultSorting: m,
1268
+ defaultSorting: _,
1265
1269
  resizeThrottle: F
1266
1270
  }) {
1267
- const [J, v] = ge(() => m || { sort_field: void 0, sort_order: void 0 }), f = L !== void 0, c = f ? L : J;
1271
+ const [J, v] = ge(() => _ || { sort_field: void 0, sort_order: void 0 }), g = L !== void 0, o = g ? L : J;
1268
1272
  Ie(() => {
1269
- !f && m && v(m);
1270
- }, [m, f]);
1271
- const x = ne((h, g) => {
1272
- const { sort_field: C, sort_order: E } = c;
1273
- let O = {
1274
- sort_field: h,
1275
- sort_order: g
1273
+ !g && _ && v(_);
1274
+ }, [_, g]);
1275
+ const x = ae((u, c) => {
1276
+ const { sort_field: C, sort_order: E } = o;
1277
+ let k = {
1278
+ sort_field: u,
1279
+ sort_order: c
1276
1280
  };
1277
- C === h && E === g && (O = {
1281
+ C === u && E === c && (k = {
1278
1282
  sort_field: void 0,
1279
1283
  sort_order: void 0
1280
- }), f || v(O), o == null || o(O.sort_field, O.sort_order);
1281
- }, [c, o, f]);
1284
+ }), g || v(k), l == null || l(k.sort_field, k.sort_order);
1285
+ }, [o, l, g]);
1282
1286
  return /* @__PURE__ */ n.jsx(
1283
1287
  "tr",
1284
1288
  {
1285
- className: `radar-table__header-row ${_ ? _ + "__header-row" : ""} ${P || ""}`,
1289
+ className: `radar-table__header-row ${m ? m + "__header-row" : ""} ${P || ""}`,
1286
1290
  style: U,
1287
- children: t.map((h, g) => /* @__PURE__ */ n.jsx(
1291
+ children: t.map((u, c) => /* @__PURE__ */ n.jsx(
1288
1292
  Jt,
1289
1293
  {
1290
- column: h,
1291
- index: g,
1294
+ column: u,
1295
+ index: c,
1292
1296
  config: t,
1293
1297
  fullConfig: r,
1294
- sorting: c,
1298
+ sorting: o,
1295
1299
  onSort: x,
1296
- onResize: l,
1300
+ onResize: d,
1297
1301
  sortIcon: y,
1298
1302
  resizeable: R,
1299
1303
  draggableColumns: $,
1300
- preset: _,
1301
- headerCellClassName: G,
1302
- headerCellStyle: X,
1304
+ preset: m,
1305
+ headerCellClassName: X,
1306
+ headerCellStyle: Q,
1303
1307
  headerCellWrapperClassName: K,
1304
- headerCellWrapperStyle: te,
1308
+ headerCellWrapperStyle: re,
1305
1309
  stickyHeader: V,
1306
- scrollContainerRef: d,
1310
+ scrollContainerRef: f,
1307
1311
  resizeThrottle: F
1308
1312
  },
1309
- h.key
1313
+ u.key
1310
1314
  ))
1311
1315
  }
1312
1316
  );
@@ -1314,102 +1318,102 @@ function nt({
1314
1318
  function Ht(t) {
1315
1319
  const {
1316
1320
  config: r,
1317
- preset: o,
1318
- headerClassName: l,
1319
- headerStyle: k,
1321
+ preset: l,
1322
+ headerClassName: d,
1323
+ headerStyle: w,
1320
1324
  stickyHeader: y,
1321
1325
  headerRowClassName: R,
1322
1326
  headerRowStyle: $,
1323
- headerCellClassName: _,
1327
+ headerCellClassName: m,
1324
1328
  headerCellStyle: M,
1325
- headerCellWrapperClassName: w,
1329
+ headerCellWrapperClassName: j,
1326
1330
  headerCellWrapperStyle: P,
1327
1331
  onResize: U,
1328
- onColumnReorder: G,
1329
- sorting: X,
1332
+ onColumnReorder: X,
1333
+ sorting: Q,
1330
1334
  defaultSorting: K
1331
- } = t, te = r.some((m) => m.children && m.children.length > 0), V = Ae(() => {
1332
- if (!te)
1335
+ } = t, re = r.some((_) => _.children && _.children.length > 0), V = Ae(() => {
1336
+ if (!re)
1333
1337
  return null;
1334
- const m = {}, F = (J, v = 0) => {
1335
- m[v] || (m[v] = []), J.forEach((f) => {
1336
- f.hidden || (m[v].push(f), f.children && f.children.length > 0 && F(f.children, v + 1));
1338
+ const _ = {}, F = (J, v = 0) => {
1339
+ _[v] || (_[v] = []), J.forEach((g) => {
1340
+ g.hidden || (_[v].push(g), g.children && g.children.length > 0 && F(g.children, v + 1));
1337
1341
  });
1338
1342
  };
1339
- return F(r), m;
1340
- }, [r, te]), d = ne((m, F) => {
1343
+ return F(r), _;
1344
+ }, [r, re]), f = ae((_, F) => {
1341
1345
  if (!U) return;
1342
- const J = (c, x) => {
1343
- for (const h of c) {
1344
- if (h.key === x) return h;
1345
- if (h.children) {
1346
- const g = J(h.children, x);
1347
- if (g) return g;
1346
+ const J = (o, x) => {
1347
+ for (const u of o) {
1348
+ if (u.key === x) return u;
1349
+ if (u.children) {
1350
+ const c = J(u.children, x);
1351
+ if (c) return c;
1348
1352
  }
1349
1353
  }
1350
1354
  return null;
1351
- }, v = (c) => {
1352
- if (!c.children || c.children.length === 0)
1353
- return [c];
1355
+ }, v = (o) => {
1356
+ if (!o.children || o.children.length === 0)
1357
+ return [o];
1354
1358
  const x = [];
1355
- return c.children.forEach((h) => {
1356
- h.hidden || x.push(...v(h));
1359
+ return o.children.forEach((u) => {
1360
+ u.hidden || x.push(...v(u));
1357
1361
  }), x;
1358
- }, f = J(r, m);
1359
- if (f)
1360
- if (f.children && f.children.length > 0) {
1361
- const c = v(f);
1362
- if (c.length > 0) {
1363
- const x = c.reduce((g, C) => g + (C.width || C.minWidth || 200), 0), h = F / x;
1364
- c.forEach((g) => {
1365
- const C = Math.max(50, Math.round((g.width || g.minWidth || 200) * h));
1366
- U(g.key, C);
1362
+ }, g = J(r, _);
1363
+ if (g)
1364
+ if (g.children && g.children.length > 0) {
1365
+ const o = v(g);
1366
+ if (o.length > 0) {
1367
+ const x = o.reduce((c, C) => c + (C.width || C.minWidth || 200), 0), u = F / x;
1368
+ o.forEach((c) => {
1369
+ const C = Math.max(50, Math.round((c.width || c.minWidth || 200) * u));
1370
+ U(c.key, C);
1367
1371
  });
1368
1372
  }
1369
1373
  } else
1370
- U(m, F);
1371
- }, [r, U]), L = ne((m) => {
1372
- if (!G) return;
1373
- if (!te) {
1374
- G(m);
1374
+ U(_, F);
1375
+ }, [r, U]), L = ae((_) => {
1376
+ if (!X) return;
1377
+ if (!re) {
1378
+ X(_);
1375
1379
  return;
1376
1380
  }
1377
- const F = (A, I, q = [], Q = null) => {
1378
- for (let le = 0; le < A.length; le++) {
1379
- const B = A[le], T = [...q, le];
1381
+ const F = (A, I, Z = [], ee = null) => {
1382
+ for (let oe = 0; oe < A.length; oe++) {
1383
+ const B = A[oe], T = [...Z, oe];
1380
1384
  if (B.key === I)
1381
1385
  return {
1382
1386
  column: B,
1383
- parent: Q,
1387
+ parent: ee,
1384
1388
  path: T,
1385
- level: q.length
1389
+ level: Z.length
1386
1390
  };
1387
1391
  if (B.children && B.children.length > 0) {
1388
- const Z = F(B.children, I, T, B);
1389
- if (Z)
1390
- return Z;
1392
+ const G = F(B.children, I, T, B);
1393
+ if (G)
1394
+ return G;
1391
1395
  }
1392
1396
  }
1393
1397
  return null;
1394
1398
  };
1395
1399
  if (!Object.values(V).find((A) => {
1396
- if (A.length !== m.length) return !1;
1397
- const I = A.map((Q) => Q.key).sort(), q = m.map((Q) => Q.key).sort();
1398
- return JSON.stringify(I) === JSON.stringify(q);
1400
+ if (A.length !== _.length) return !1;
1401
+ const I = A.map((ee) => ee.key).sort(), Z = _.map((ee) => ee.key).sort();
1402
+ return JSON.stringify(I) === JSON.stringify(Z);
1399
1403
  }))
1400
1404
  return;
1401
- const v = m._dragInfo;
1405
+ const v = _._dragInfo;
1402
1406
  if (!(v != null && v.draggedKey) || !(v != null && v.targetKey))
1403
1407
  return;
1404
- const { draggedKey: f, targetKey: c } = v, x = F(r, f), h = F(r, c);
1405
- if (!x || !h) return;
1406
- const { column: g, parent: C, path: E, level: O } = x, { column: j, parent: ae, path: se, level: oe } = h, de = (A, I) => A.fixed || (I == null ? void 0 : I.fixed) || !1, re = de(g, C), ce = de(j, ae);
1407
- if (O !== oe || C !== ae || C && ae && C.key !== ae.key || re !== ce)
1408
+ const { draggedKey: g, targetKey: o } = v, x = F(r, g), u = F(r, o);
1409
+ if (!x || !u) return;
1410
+ const { column: c, parent: C, path: E, level: k } = x, { column: O, parent: le, path: ne, level: q } = u, ce = (A, I) => A.fixed || (I == null ? void 0 : I.fixed) || !1, ie = ce(c, C), de = ce(O, le);
1411
+ if (k !== q || C !== le || C && le && C.key !== le.key || ie !== de)
1408
1412
  return;
1409
1413
  const he = JSON.parse(JSON.stringify(r));
1410
- if (O === 0) {
1411
- const A = E[0], I = se[0], [q] = he.splice(A, 1);
1412
- he.splice(I, 0, q);
1414
+ if (k === 0) {
1415
+ const A = E[0], I = ne[0], [Z] = he.splice(A, 1);
1416
+ he.splice(I, 0, Z);
1413
1417
  } else {
1414
1418
  const A = E.slice(0, -1);
1415
1419
  let I = he;
@@ -1417,137 +1421,137 @@ function Ht(t) {
1417
1421
  B === 0 ? I = I[A[B]] : I = I.children[A[B]];
1418
1422
  if (!I || !I.children)
1419
1423
  return;
1420
- const q = E[E.length - 1], Q = se[se.length - 1];
1421
- if (q < 0 || q >= I.children.length || Q < 0 || Q >= I.children.length)
1424
+ const Z = E[E.length - 1], ee = ne[ne.length - 1];
1425
+ if (Z < 0 || Z >= I.children.length || ee < 0 || ee >= I.children.length)
1422
1426
  return;
1423
- const [le] = I.children.splice(q, 1);
1424
- I.children.splice(Q, 0, le);
1427
+ const [oe] = I.children.splice(Z, 1);
1428
+ I.children.splice(ee, 0, oe);
1425
1429
  }
1426
- G(he);
1427
- }, [r, G, V]);
1428
- return te ? /* @__PURE__ */ n.jsx(
1430
+ X(he);
1431
+ }, [r, X, V]);
1432
+ return re ? /* @__PURE__ */ n.jsx(
1429
1433
  "thead",
1430
1434
  {
1431
- className: `radar-table__header ${o ? o + "__header" : ""} ${l}`,
1435
+ className: `radar-table__header ${l ? l + "__header" : ""} ${d}`,
1432
1436
  style: {
1433
1437
  position: y ? "sticky" : "static",
1434
1438
  top: y && typeof y == "number" ? y : 0,
1435
- ...k
1439
+ ...w
1436
1440
  },
1437
- children: Object.keys(V).map((m) => {
1438
- const F = V[parseInt(m)], J = parseInt(m);
1441
+ children: Object.keys(V).map((_) => {
1442
+ const F = V[parseInt(_)], J = parseInt(_);
1439
1443
  return /* @__PURE__ */ n.jsx(
1440
1444
  nt,
1441
1445
  {
1442
1446
  config: F,
1443
1447
  fullConfig: r,
1444
1448
  onSort: t.onSort,
1445
- onResize: d,
1449
+ onResize: f,
1446
1450
  onColumnReorder: L,
1447
1451
  resizeable: t.resizeable,
1448
1452
  draggableColumns: t.draggableColumns,
1449
- preset: o,
1450
- headerClassName: l,
1451
- headerStyle: k,
1453
+ preset: l,
1454
+ headerClassName: d,
1455
+ headerStyle: w,
1452
1456
  headerRowClassName: R,
1453
1457
  headerRowStyle: {
1454
1458
  ...$,
1455
1459
  position: y ? "sticky" : "static",
1456
1460
  top: y && typeof y == "number" ? y + (J - 1) * 50 : 0
1457
1461
  },
1458
- headerCellClassName: _,
1462
+ headerCellClassName: m,
1459
1463
  headerCellStyle: M,
1460
- headerCellWrapperClassName: w,
1464
+ headerCellWrapperClassName: j,
1461
1465
  headerCellWrapperStyle: P,
1462
1466
  stickyHeader: y,
1463
1467
  sortIcon: t.sortIcon,
1464
1468
  scrollContainerRef: t.scrollContainerRef,
1465
- sorting: X,
1469
+ sorting: Q,
1466
1470
  defaultSorting: K,
1467
1471
  resizeThrottle: t.resizeThrottle
1468
1472
  },
1469
- m
1473
+ _
1470
1474
  );
1471
1475
  })
1472
1476
  }
1473
1477
  ) : /* @__PURE__ */ n.jsx(
1474
1478
  "thead",
1475
1479
  {
1476
- className: `radar-table__header ${o ? o + "__header" : ""} ${l}`,
1480
+ className: `radar-table__header ${l ? l + "__header" : ""} ${d}`,
1477
1481
  style: {
1478
1482
  position: y ? "sticky" : "static",
1479
1483
  top: y && typeof y == "number" ? y : 0,
1480
- ...k
1484
+ ...w
1481
1485
  },
1482
- children: /* @__PURE__ */ n.jsx(nt, { ...t, fullConfig: r, onResize: d, onColumnReorder: L, scrollContainerRef: t.scrollContainerRef, sorting: X, defaultSorting: K, resizeThrottle: t.resizeThrottle })
1486
+ children: /* @__PURE__ */ n.jsx(nt, { ...t, fullConfig: r, onResize: f, onColumnReorder: L, scrollContainerRef: t.scrollContainerRef, sorting: Q, defaultSorting: K, resizeThrottle: t.resizeThrottle })
1483
1487
  }
1484
1488
  );
1485
1489
  }
1486
1490
  const Yt = (t, r) => {
1487
- let o = "0";
1491
+ let l = "0";
1488
1492
  if (t != null) {
1489
- const l = parseFloat(t);
1490
- if (Number.isNaN(l))
1491
- return r && (o += ` ${r}`), o;
1492
- o = l.toLocaleString("ru-RU", {
1493
+ const d = parseFloat(t);
1494
+ if (Number.isNaN(d))
1495
+ return r && (l += ` ${r}`), l;
1496
+ l = d.toLocaleString("ru-RU", {
1493
1497
  maximumFractionDigits: 2
1494
- }), r && (o += ` ${r}`);
1498
+ }), r && (l += ` ${r}`);
1495
1499
  }
1496
- return o;
1500
+ return l;
1497
1501
  }, Kt = (t) => {
1498
1502
  var r;
1499
1503
  return typeof window < "u" && ((r = window.CSS) != null && r.escape) ? window.CSS.escape(t) : t.replace(/([#.;?\[\]\s])/g, "\\$1");
1500
1504
  }, Ut = (t) => {
1501
1505
  if (typeof document > "u") return null;
1502
- const r = `th[data-column-key="${Kt(t)}"]`, o = document.querySelector(r);
1503
- return o ? o.getBoundingClientRect().width : null;
1506
+ const r = `th[data-column-key="${Kt(t)}"]`, l = document.querySelector(r);
1507
+ return l ? l.getBoundingClientRect().width : null;
1504
1508
  }, qt = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
1505
1509
  function Zt({
1506
1510
  draggableRows: t = !1,
1507
1511
  dataSource: r,
1508
- config: o,
1509
- rowKey: l,
1510
- loading: k = !1,
1512
+ config: l,
1513
+ rowKey: d,
1514
+ loading: w = !1,
1511
1515
  onRowReorder: y,
1512
1516
  preset: R,
1513
1517
  customCellRender: $,
1514
- treeMode: _,
1518
+ treeMode: m,
1515
1519
  expandedRowKeys: M,
1516
- defaultExpandedRowKeys: w,
1520
+ defaultExpandedRowKeys: j,
1517
1521
  onExpandedRowsChange: P,
1518
1522
  indentSize: U,
1519
- expandIcon: G,
1520
- bodyClassName: X,
1523
+ expandIcon: X,
1524
+ bodyClassName: Q,
1521
1525
  bodyStyle: K,
1522
- bodyRowClassName: te,
1526
+ bodyRowClassName: re,
1523
1527
  bodyRowStyle: V,
1524
- bodyCellClassName: d,
1528
+ bodyCellClassName: f,
1525
1529
  bodyCellStyle: L,
1526
- bodyCellWrapperClassName: m,
1530
+ bodyCellWrapperClassName: _,
1527
1531
  bodyCellWrapperStyle: F,
1528
1532
  noDataRender: J,
1529
1533
  scrollContainerRef: v,
1530
- recalculateRowHeight: f
1534
+ recalculateRowHeight: g
1531
1535
  }) {
1532
1536
  var W;
1533
- const [c, x] = ge(null), [h, g] = ge(null), [C, E] = ge(() => w && w.length > 0 ? new Set(w) : /* @__PURE__ */ new Set()), O = Ne.useMemo(() => M ? new Set(M) : C, [M, C]), j = ne((a) => {
1537
+ const [o, x] = ge(null), [u, c] = ge(null), [C, E] = ge(() => j && j.length > 0 ? new Set(j) : /* @__PURE__ */ new Set()), k = Ne.useMemo(() => M ? new Set(M) : C, [M, C]), O = ae((a) => {
1534
1538
  M || E(new Set(a)), P == null || P(a);
1535
- }, [M, P]), ae = ne((a) => l ? l(a) : JSON.stringify(a), [l]), se = Ne.useMemo(() => {
1536
- if (!_) return [];
1539
+ }, [M, P]), le = ae((a) => d ? d(a) : JSON.stringify(a), [d]), ne = Ne.useMemo(() => {
1540
+ if (!m) return [];
1537
1541
  const a = [], b = r;
1538
- return b.forEach((u, s) => {
1539
- const D = ae(u), H = u == null ? void 0 : u.children;
1542
+ return b.forEach((h, s) => {
1543
+ const D = le(h), H = h == null ? void 0 : h.children;
1540
1544
  a.push({
1541
- record: u,
1545
+ record: h,
1542
1546
  key: D,
1543
1547
  type: "parent",
1544
1548
  depth: 0,
1545
1549
  indexWithinGroup: s,
1546
1550
  groupSize: b.length
1547
- }), H && H.length > 0 && O.has(D) && H.forEach((N, xe) => {
1551
+ }), H && H.length > 0 && k.has(D) && H.forEach((N, xe) => {
1548
1552
  a.push({
1549
1553
  record: N,
1550
- key: ae(N),
1554
+ key: le(N),
1551
1555
  type: "child",
1552
1556
  parentKey: D,
1553
1557
  depth: 1,
@@ -1556,12 +1560,12 @@ function Zt({
1556
1560
  });
1557
1561
  });
1558
1562
  }), a;
1559
- }, [_, r, ae, O]), oe = Ne.useMemo(() => {
1563
+ }, [m, r, le, k]), q = Ne.useMemo(() => {
1560
1564
  const a = /* @__PURE__ */ new Map();
1561
- return se.forEach((b) => a.set(b.key, b)), a;
1562
- }, [se]);
1565
+ return ne.forEach((b) => a.set(b.key, b)), a;
1566
+ }, [ne]);
1563
1567
  Ie(() => {
1564
- qt && f && (() => {
1568
+ qt && g && (() => {
1565
1569
  const b = document.querySelectorAll(".radar-table__body-row");
1566
1570
  document.querySelectorAll(".radar-table__header-row").forEach((s) => {
1567
1571
  const D = s.querySelectorAll(".radar-table__header-cell-wrapper");
@@ -1581,15 +1585,15 @@ function Zt({
1581
1585
  });
1582
1586
  });
1583
1587
  })();
1584
- }, [r, o]);
1585
- const re = ((a) => {
1586
- const b = [], u = (s) => {
1588
+ }, [r, l]);
1589
+ const ie = ((a) => {
1590
+ const b = [], h = (s) => {
1587
1591
  s.forEach((D) => {
1588
- D.children && D.children.length > 0 ? u(D.children) : b.push(D);
1592
+ D.children && D.children.length > 0 ? h(D.children) : b.push(D);
1589
1593
  });
1590
1594
  };
1591
- return u(a), b;
1592
- })(o), ce = (a) => {
1595
+ return h(a), b;
1596
+ })(l), de = (a) => {
1593
1597
  if (a.groupColor)
1594
1598
  return a.groupColor;
1595
1599
  const b = (s, D) => {
@@ -1601,16 +1605,16 @@ function Zt({
1601
1605
  if (N) return N;
1602
1606
  }
1603
1607
  return null;
1604
- }, u = b(o, a.key);
1605
- return u == null ? void 0 : u.groupColor;
1606
- }, he = ne((a, b) => {
1608
+ }, h = b(l, a.key);
1609
+ return h == null ? void 0 : h.groupColor;
1610
+ }, he = ae((a, b) => {
1607
1611
  if (!b) {
1608
1612
  a.preventDefault();
1609
1613
  return;
1610
1614
  }
1611
1615
  x(b), a.dataTransfer.effectAllowed = "move", a.dataTransfer.setData("text/plain", b), document.body.style.cursor = "grabbing";
1612
- const u = r.find((s) => (l ? l(s) : JSON.stringify(s)) === b);
1613
- if (u) {
1616
+ const h = r.find((s) => (d ? d(s) : JSON.stringify(s)) === b);
1617
+ if (h) {
1614
1618
  const s = document.createElement("div");
1615
1619
  s.style.cssText = `
1616
1620
  background: white;
@@ -1626,9 +1630,9 @@ function Zt({
1626
1630
  overflow: hidden;
1627
1631
  text-overflow: ellipsis;
1628
1632
  `;
1629
- const D = re[0];
1633
+ const D = ie[0];
1630
1634
  if (D) {
1631
- const N = u[D.key];
1635
+ const N = h[D.key];
1632
1636
  s.textContent = (N == null ? void 0 : N.toString()) || "Строка";
1633
1637
  } else
1634
1638
  s.textContent = "Строка";
@@ -1638,71 +1642,71 @@ function Zt({
1638
1642
  }, 0);
1639
1643
  return () => clearTimeout(H);
1640
1644
  }
1641
- }, []), A = ne((a) => {
1645
+ }, []), A = ae((a) => {
1642
1646
  a.preventDefault(), a.dataTransfer.dropEffect = "move";
1643
- }, []), I = ne((a, b) => {
1644
- if (a.preventDefault(), !c) return;
1645
- if (!_) {
1646
- c !== b && g(b);
1647
+ }, []), I = ae((a, b) => {
1648
+ if (a.preventDefault(), !o) return;
1649
+ if (!m) {
1650
+ o !== b && c(b);
1647
1651
  return;
1648
1652
  }
1649
- const u = oe.get(c), s = oe.get(b);
1650
- if (!u || !s) return;
1651
- const D = u.type === "parent" && s.type === "parent" || u.type === "child" && s.type === "child" && u.parentKey === s.parentKey;
1652
- g(D && c !== b ? b : null);
1653
- }, [c, _, oe]), q = ne((a) => {
1654
- a.preventDefault(), g(null);
1655
- }, []), Q = ne(() => {
1656
- x(null), g(null), document.body.style.cursor = "";
1657
- }, []), le = ne((a, b) => {
1658
- if (a.preventDefault(), !c || c === b)
1653
+ const h = q.get(o), s = q.get(b);
1654
+ if (!h || !s) return;
1655
+ const D = h.type === "parent" && s.type === "parent" || h.type === "child" && s.type === "child" && h.parentKey === s.parentKey;
1656
+ c(D && o !== b ? b : null);
1657
+ }, [o, m, q]), Z = ae((a) => {
1658
+ a.preventDefault(), c(null);
1659
+ }, []), ee = ae(() => {
1660
+ x(null), c(null), document.body.style.cursor = "";
1661
+ }, []), oe = ae((a, b) => {
1662
+ if (a.preventDefault(), !o || o === b)
1659
1663
  return;
1660
- if (!_) {
1661
- const D = r.findIndex((pe) => (l ? l(pe) : JSON.stringify(pe)) === c), H = r.findIndex((pe) => (l ? l(pe) : JSON.stringify(pe)) === b);
1664
+ if (!m) {
1665
+ const D = r.findIndex((pe) => (d ? d(pe) : JSON.stringify(pe)) === o), H = r.findIndex((pe) => (d ? d(pe) : JSON.stringify(pe)) === b);
1662
1666
  if (D === -1 || H === -1)
1663
1667
  return;
1664
1668
  const N = [...r], [xe] = N.splice(D, 1);
1665
- N.splice(H, 0, xe), y == null || y(N), x(null), g(null), document.body.style.cursor = "";
1669
+ N.splice(H, 0, xe), y == null || y(N), x(null), c(null), document.body.style.cursor = "";
1666
1670
  return;
1667
1671
  }
1668
- const u = oe.get(c), s = oe.get(b);
1669
- if (!(!u || !s)) {
1670
- if (u.type === "parent" && s.type === "parent") {
1671
- const D = r.findIndex((pe) => (l ? l(pe) : JSON.stringify(pe)) === u.key), H = r.findIndex((pe) => (l ? l(pe) : JSON.stringify(pe)) === s.key);
1672
+ const h = q.get(o), s = q.get(b);
1673
+ if (!(!h || !s)) {
1674
+ if (h.type === "parent" && s.type === "parent") {
1675
+ const D = r.findIndex((pe) => (d ? d(pe) : JSON.stringify(pe)) === h.key), H = r.findIndex((pe) => (d ? d(pe) : JSON.stringify(pe)) === s.key);
1672
1676
  if (D === -1 || H === -1) return;
1673
1677
  const N = [...r], [xe] = N.splice(D, 1);
1674
- N.splice(H, 0, xe), y == null || y(N), x(null), g(null), document.body.style.cursor = "";
1678
+ N.splice(H, 0, xe), y == null || y(N), x(null), c(null), document.body.style.cursor = "";
1675
1679
  return;
1676
1680
  }
1677
- if (u.type === "child" && s.type === "child" && u.parentKey === s.parentKey) {
1678
- const D = r.findIndex((ve) => (l ? l(ve) : JSON.stringify(ve)) === u.parentKey);
1681
+ if (h.type === "child" && s.type === "child" && h.parentKey === s.parentKey) {
1682
+ const D = r.findIndex((ve) => (d ? d(ve) : JSON.stringify(ve)) === h.parentKey);
1679
1683
  if (D === -1) return;
1680
1684
  const H = r[D], N = H == null ? void 0 : H.children;
1681
1685
  if (!N || N.length === 0) return;
1682
- const xe = N.findIndex((ve) => (l ? l(ve) : JSON.stringify(ve)) === u.key), pe = N.findIndex((ve) => (l ? l(ve) : JSON.stringify(ve)) === s.key);
1686
+ const xe = N.findIndex((ve) => (d ? d(ve) : JSON.stringify(ve)) === h.key), pe = N.findIndex((ve) => (d ? d(ve) : JSON.stringify(ve)) === s.key);
1683
1687
  if (xe === -1 || pe === -1) return;
1684
- const _e = r.map((ve, Ee) => {
1688
+ const me = r.map((ve, Ee) => {
1685
1689
  if (Ee !== D) return ve;
1686
1690
  const ke = [...N], [Se] = ke.splice(xe, 1);
1687
1691
  return ke.splice(pe, 0, Se), { ...ve, children: ke };
1688
1692
  });
1689
- y == null || y(_e), x(null), g(null), document.body.style.cursor = "";
1693
+ y == null || y(me), x(null), c(null), document.body.style.cursor = "";
1690
1694
  return;
1691
1695
  }
1692
1696
  }
1693
- }, [c, r, l, y, _, oe]);
1697
+ }, [o, r, d, y, m, q]);
1694
1698
  if (r.length === 0) {
1695
1699
  let a;
1696
- return v && (a = ((W = v.current) == null ? void 0 : W.clientWidth) + "px"), /* @__PURE__ */ n.jsx("tbody", { className: `radar-table__body ${R ? R + "__body" : ""} ${X}`, style: K, children: /* @__PURE__ */ n.jsx(
1700
+ return v && (a = ((W = v.current) == null ? void 0 : W.clientWidth) + "px"), /* @__PURE__ */ n.jsx("tbody", { className: `radar-table__body ${R ? R + "__body" : ""} ${Q}`, style: K, children: /* @__PURE__ */ n.jsx(
1697
1701
  "tr",
1698
1702
  {
1699
- className: `radar-table__body-row ${R ? R + "__body-row" : ""} ${te}`,
1703
+ className: `radar-table__body-row ${R ? R + "__body-row" : ""} ${re}`,
1700
1704
  style: V,
1701
1705
  children: /* @__PURE__ */ n.jsxs(
1702
1706
  "td",
1703
1707
  {
1704
- className: `radar-table__body-cell ${R ? R + "__body-cell" : ""} ${d}`,
1705
- colSpan: re.length,
1708
+ className: `radar-table__body-cell ${R ? R + "__body-cell" : ""} ${f}`,
1709
+ colSpan: ie.length,
1706
1710
  style: {
1707
1711
  ...L
1708
1712
  },
@@ -1715,22 +1719,22 @@ function Zt({
1715
1719
  }
1716
1720
  ) });
1717
1721
  }
1718
- const B = _ ? se : r.map((a) => ({
1722
+ const B = m ? ne : r.map((a) => ({
1719
1723
  record: a,
1720
- key: l ? l(a) : JSON.stringify(a),
1724
+ key: d ? d(a) : JSON.stringify(a),
1721
1725
  type: "parent",
1722
1726
  depth: 0,
1723
1727
  indexWithinGroup: 0,
1724
1728
  groupSize: r.length
1725
- })), T = ne((a) => {
1726
- const b = new Set(O);
1727
- b.has(a) ? b.delete(a) : b.add(a), j(Array.from(b));
1728
- }, [O, j]);
1729
- function Z({ column: a, index: b, row: u, item: s }) {
1729
+ })), T = ae((a) => {
1730
+ const b = new Set(k);
1731
+ b.has(a) ? b.delete(a) : b.add(a), O(Array.from(b));
1732
+ }, [k, O]);
1733
+ function G({ column: a, index: b, row: h, item: s }) {
1730
1734
  var Oe, $e;
1731
1735
  const D = je(null), [H, N] = ge(0), xe = a.fixed && !a.width ? 200 : a.width, pe = a.fixed && !a.minWidth ? 200 : a.minWidth;
1732
- let _e = !1;
1733
- $ && $.idx.includes(a.dataIndex) && (_e = !0), $ && $.idx.length === 0 && (_e = !0), lt(() => {
1736
+ let me = !1;
1737
+ $ && $.idx.includes(a.dataIndex) && (me = !0), $ && $.idx.length === 0 && (me = !0), lt(() => {
1734
1738
  if (!a.fixed) {
1735
1739
  N(0);
1736
1740
  return;
@@ -1738,53 +1742,53 @@ function Zt({
1738
1742
  let Fe = a.fixedLeft || 0;
1739
1743
  if (b !== 0) {
1740
1744
  for (let Ce = 0; Ce < b; Ce++)
1741
- if (re[Ce].fixed && !re[Ce].hidden) {
1742
- const ze = re[Ce].width || re[Ce].minWidth || 200, Me = Ut(re[Ce].key);
1745
+ if (ie[Ce].fixed && !ie[Ce].hidden) {
1746
+ const ze = ie[Ce].width || ie[Ce].minWidth || 200, Me = Ut(ie[Ce].key);
1743
1747
  Fe += Math.floor(Me ?? ze) - 0.05;
1744
1748
  }
1745
1749
  }
1746
1750
  N(Fe);
1747
1751
  }, [a.fixed, a.fixedLeft, a.width, b]);
1748
- const ve = ce(a), Ee = b === 0, ke = _ && Ee && u.depth > 0 ? u.depth * (U || 16) : void 0, Se = !!(_ && u.type === "parent"), we = !!(_ && O.has(u.key)), We = !!(_ && Se && (s != null && s.children) && s.children.length > 0);
1752
+ const ve = de(a), Ee = b === 0, ke = m && Ee && h.depth > 0 ? h.depth * (U || 16) : void 0, Se = !!(m && h.type === "parent"), we = !!(m && k.has(h.key)), We = !!(m && Se && (s != null && s.children) && s.children.length > 0);
1749
1753
  return a.hidden ? null : /* @__PURE__ */ n.jsx(
1750
1754
  "td",
1751
1755
  {
1752
1756
  ref: D,
1753
1757
  "data-column-key": a.key,
1754
- className: `radar-table__body-cell ${R ? R + "__body-cell" : ""} ${d}`,
1758
+ className: `radar-table__body-cell ${R ? R + "__body-cell" : ""} ${f}`,
1755
1759
  style: {
1756
1760
  width: xe,
1757
1761
  minWidth: pe,
1758
1762
  position: a.fixed ? "sticky" : "static",
1759
1763
  left: H,
1760
- borderRight: a.fixed && !((Oe = re[b + 1]) != null && Oe.fixed) ? "1px solid #E8E8E8" : "none",
1764
+ borderRight: a.fixed && !((Oe = ie[b + 1]) != null && Oe.fixed) ? "1px solid #E8E8E8" : "none",
1761
1765
  cursor: Ee && We ? "pointer" : "default",
1762
1766
  ...L
1763
1767
  },
1764
- onClick: Ee && We ? () => T(u.key) : void 0,
1768
+ onClick: Ee && We ? () => T(h.key) : void 0,
1765
1769
  children: /* @__PURE__ */ n.jsxs(
1766
1770
  "div",
1767
1771
  {
1768
- className: `radar-table__body-cell-wrapper ${R ? R + "__body-cell-wrapper" : ""} ${m}`,
1772
+ className: `radar-table__body-cell-wrapper ${R ? R + "__body-cell-wrapper" : ""} ${_}`,
1769
1773
  style: {
1770
1774
  backgroundColor: ve || "white",
1771
1775
  paddingLeft: ke,
1772
1776
  ...F
1773
1777
  },
1774
1778
  children: [
1775
- Ee && Se && _ && (s == null ? void 0 : s.children) && s.children.length > 0 && /* @__PURE__ */ n.jsx(
1779
+ Ee && Se && m && (s == null ? void 0 : s.children) && s.children.length > 0 && /* @__PURE__ */ n.jsx(
1776
1780
  "button",
1777
1781
  {
1778
1782
  type: "button",
1779
1783
  className: `radar-table__expander-btn ${we ? "expanded" : ""}`,
1780
1784
  "aria-expanded": we,
1781
- onClick: () => T(u.key),
1785
+ onClick: () => T(h.key),
1782
1786
  style: { marginRight: 8, background: "transparent", border: "none", transform: we ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
1783
1787
  title: we ? "Свернуть" : "Развернуть",
1784
- children: G ? G(we, s) : /* @__PURE__ */ n.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
1788
+ children: X ? X(we, s) : /* @__PURE__ */ n.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
1785
1789
  }
1786
1790
  ),
1787
- _e ? $ == null ? void 0 : $.renderer(s[a.dataIndex], s, b, a.dataIndex) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1791
+ me ? $ == null ? void 0 : $.renderer(s[a.dataIndex], s, b, a.dataIndex) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1788
1792
  a.units && Yt((($e = s[a.key]) == null ? void 0 : $e.toString()) || "", a.units),
1789
1793
  !a.units && s[a.key]
1790
1794
  ] })
@@ -1795,53 +1799,53 @@ function Zt({
1795
1799
  a.key
1796
1800
  );
1797
1801
  }
1798
- return /* @__PURE__ */ n.jsx("tbody", { className: `radar-table__body ${R ? R + "__body" : ""} ${X}`, style: K, children: B.map((a) => {
1799
- const b = a.record, u = a.key;
1802
+ return /* @__PURE__ */ n.jsx("tbody", { className: `radar-table__body ${R ? R + "__body" : ""} ${Q}`, style: K, children: B.map((a) => {
1803
+ const b = a.record, h = a.key;
1800
1804
  return /* @__PURE__ */ n.jsx(
1801
1805
  "tr",
1802
1806
  {
1803
- className: `radar-table__body-row ${R ? R + "__body-row" : ""} ${te} ${c === u ? "dragging" : ""} ${h === u ? "drag-over" : ""} ${_ ? a.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
1807
+ className: `radar-table__body-row ${R ? R + "__body-row" : ""} ${re} ${o === h ? "dragging" : ""} ${u === h ? "drag-over" : ""} ${m ? a.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
1804
1808
  style: V,
1805
1809
  draggable: t,
1806
- onDragStart: (s) => he(s, u),
1810
+ onDragStart: (s) => he(s, h),
1807
1811
  onDragOver: A,
1808
- onDragEnter: (s) => I(s, u),
1809
- onDragLeave: q,
1810
- onDrop: (s) => le(s, u),
1811
- onDragEnd: Q,
1812
- children: re.map((s, D) => /* @__PURE__ */ n.jsx(Z, { column: s, index: D, row: a, item: b }, s.key))
1812
+ onDragEnter: (s) => I(s, h),
1813
+ onDragLeave: Z,
1814
+ onDrop: (s) => oe(s, h),
1815
+ onDragEnd: ee,
1816
+ children: ie.map((s, D) => /* @__PURE__ */ n.jsx(G, { column: s, index: D, row: a, item: b }, s.key))
1813
1817
  },
1814
- u
1818
+ h
1815
1819
  );
1816
1820
  }) });
1817
1821
  }
1818
1822
  const it = ({ config: t }) => {
1819
- const [{ current: r, pageSize: o, total: l, onChange: k, showQuickJumper: y, buttonsCount: R = 4, hideOnSinglePage: $ = !1 }, _] = ge(t);
1823
+ const [{ current: r, pageSize: l, total: d, onChange: w, showQuickJumper: y, buttonsCount: R = 4, hideOnSinglePage: $ = !1 }, m] = ge(t);
1820
1824
  Ie(() => {
1821
- _(t);
1825
+ m(t);
1822
1826
  }, [t]);
1823
- const M = Math.ceil(r / R), w = (M - 1) * R + 1, P = M * R, U = (d) => {
1827
+ const M = Math.ceil(r / R), j = (M - 1) * R + 1, P = M * R, U = (f) => {
1824
1828
  const L = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
1825
- !/^[0-9]$/.test(d.key) && !L.includes(d.key) && d.preventDefault();
1826
- }, G = (d) => {
1827
- if (d.key === "Enter") {
1828
- const L = parseInt(d.currentTarget.value);
1829
- L > 0 && L <= l && (_({ ...t, current: L }), k == null || k(L, o), d.currentTarget.value = "");
1830
- }
1831
- }, X = (d) => {
1832
- const m = d.target.value.replace(/[^0-9]/g, "");
1833
- d.target.value = m;
1834
- }, K = (d) => {
1835
- d.preventDefault();
1836
- const m = d.clipboardData.getData("text").replace(/[^0-9]/g, ""), F = d.target, J = F.selectionStart || 0, v = F.selectionEnd || 0, f = F.value.substring(0, J) + m + F.value.substring(v);
1837
- F.value = f, F.setSelectionRange(J + m.length, J + m.length);
1838
- }, te = (d) => {
1839
- const L = d.currentTarget.id;
1840
- L === "pagination_left_button" && r > 1 && (_({ ...t, current: r - 1 }), k == null || k(r - 1, o)), L === "pagination_right_button" && r < l && (_({ ...t, current: r + 1 }), k == null || k(r + 1, o));
1841
- }, V = (d) => {
1842
- _({ ...t, current: d }), k == null || k(d, o);
1829
+ !/^[0-9]$/.test(f.key) && !L.includes(f.key) && f.preventDefault();
1830
+ }, X = (f) => {
1831
+ if (f.key === "Enter") {
1832
+ const L = parseInt(f.currentTarget.value);
1833
+ L > 0 && L <= d && (m({ ...t, current: L }), w == null || w(L, l), f.currentTarget.value = "");
1834
+ }
1835
+ }, Q = (f) => {
1836
+ const _ = f.target.value.replace(/[^0-9]/g, "");
1837
+ f.target.value = _;
1838
+ }, K = (f) => {
1839
+ f.preventDefault();
1840
+ const _ = f.clipboardData.getData("text").replace(/[^0-9]/g, ""), F = f.target, J = F.selectionStart || 0, v = F.selectionEnd || 0, g = F.value.substring(0, J) + _ + F.value.substring(v);
1841
+ F.value = g, F.setSelectionRange(J + _.length, J + _.length);
1842
+ }, re = (f) => {
1843
+ const L = f.currentTarget.id;
1844
+ L === "pagination_left_button" && r > 1 && (m({ ...t, current: r - 1 }), w == null || w(r - 1, l)), L === "pagination_right_button" && r < d && (m({ ...t, current: r + 1 }), w == null || w(r + 1, l));
1845
+ }, V = (f) => {
1846
+ m({ ...t, current: f }), w == null || w(f, l);
1843
1847
  };
1844
- return $ && l <= 1 ? null : /* @__PURE__ */ n.jsxs("div", { className: "radar-table__pagination", children: [
1848
+ return $ && d <= 1 ? null : /* @__PURE__ */ n.jsxs("div", { className: "radar-table__pagination", children: [
1845
1849
  /* @__PURE__ */ n.jsxs(
1846
1850
  "div",
1847
1851
  {
@@ -1850,13 +1854,13 @@ const it = ({ config: t }) => {
1850
1854
  gridTemplateColumns: `repeat(${R + 2}, 32px)`
1851
1855
  },
1852
1856
  children: [
1853
- /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: te, title: "Назад", children: /* @__PURE__ */ n.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
1854
- Array.from({ length: l }, (d, L) => L + 1).map((d) => {
1855
- const L = r === d;
1856
- if (d >= w && d <= P)
1857
- return L ? /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: d }, d) : /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button", onClick: () => V(d), children: d }, d);
1857
+ /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: re, title: "Назад", children: /* @__PURE__ */ n.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
1858
+ Array.from({ length: d }, (f, L) => L + 1).map((f) => {
1859
+ const L = r === f;
1860
+ if (f >= j && f <= P)
1861
+ return L ? /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: f }, f) : /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button", onClick: () => V(f), children: f }, f);
1858
1862
  }),
1859
- /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: te, title: "Вперёд", children: /* @__PURE__ */ n.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
1863
+ /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: re, title: "Вперёд", children: /* @__PURE__ */ n.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
1860
1864
  ]
1861
1865
  }
1862
1866
  ),
@@ -1867,71 +1871,71 @@ const it = ({ config: t }) => {
1867
1871
  {
1868
1872
  className: "radar-table__pagination-input",
1869
1873
  onKeyDown: U,
1870
- onChange: X,
1874
+ onChange: Q,
1871
1875
  onPaste: K,
1872
- onKeyUp: (d) => G(d)
1876
+ onKeyUp: (f) => X(f)
1873
1877
  }
1874
1878
  ),
1875
1879
  " стр. из ",
1876
- l
1880
+ d
1877
1881
  ] })
1878
1882
  ] });
1879
1883
  };
1880
1884
  function rr({
1881
1885
  dataSource: t,
1882
1886
  preset: r,
1883
- config: o,
1884
- rowKey: l,
1885
- loading: k = !1,
1887
+ config: l,
1888
+ rowKey: d,
1889
+ loading: w = !1,
1886
1890
  pagination: y,
1887
1891
  stickyHeader: R = !1,
1888
1892
  resizeable: $ = !1,
1889
- draggableRows: _ = !1,
1893
+ draggableRows: m = !1,
1890
1894
  draggableColumns: M = !1,
1891
- scrollContainerRef: w,
1895
+ scrollContainerRef: j,
1892
1896
  onResize: P,
1893
1897
  onSort: U,
1894
- onRowReorder: G,
1895
- onColumnReorder: X,
1898
+ onRowReorder: X,
1899
+ onColumnReorder: Q,
1896
1900
  customCellRender: K,
1897
- noDataRender: te,
1901
+ noDataRender: re,
1898
1902
  sortIcon: V,
1899
- expandIcon: d,
1903
+ expandIcon: f,
1900
1904
  recalculateRowHeight: L = !1,
1901
1905
  // sorting props
1902
- sorting: m,
1906
+ sorting: _,
1903
1907
  defaultSorting: F,
1904
1908
  // tree props
1905
1909
  treeMode: J,
1906
1910
  expandedRowKeys: v,
1907
- defaultExpandedRowKeys: f,
1908
- onExpandedRowsChange: c,
1911
+ defaultExpandedRowKeys: g,
1912
+ onExpandedRowsChange: o,
1909
1913
  indentSize: x,
1910
- className: h = "",
1911
- style: g,
1914
+ className: u = "",
1915
+ style: c,
1912
1916
  headerClassName: C = "",
1913
1917
  headerStyle: E,
1914
- headerCellClassName: O = "",
1915
- headerCellStyle: j,
1916
- headerRowClassName: ae = "",
1917
- headerRowStyle: se,
1918
- headerCellWrapperClassName: oe = "",
1919
- headerCellWrapperStyle: de,
1920
- bodyClassName: re = "",
1921
- bodyStyle: ce,
1918
+ headerCellClassName: k = "",
1919
+ headerCellStyle: O,
1920
+ headerRowClassName: le = "",
1921
+ headerRowStyle: ne,
1922
+ headerCellWrapperClassName: q = "",
1923
+ headerCellWrapperStyle: ce,
1924
+ bodyClassName: ie = "",
1925
+ bodyStyle: de,
1922
1926
  bodyRowClassName: he = "",
1923
1927
  bodyRowStyle: A,
1924
1928
  bodyCellClassName: I = "",
1925
- bodyCellStyle: q,
1926
- bodyCellWrapperClassName: Q = "",
1927
- bodyCellWrapperStyle: le,
1929
+ bodyCellStyle: Z,
1930
+ bodyCellWrapperClassName: ee = "",
1931
+ bodyCellWrapperStyle: oe,
1928
1932
  headerGroupRowClassName: B,
1929
1933
  headerGroupRowStyle: T,
1930
- headerGroupCellClassName: Z,
1934
+ headerGroupCellClassName: G,
1931
1935
  headerGroupCellStyle: W,
1932
1936
  headerGroupCellWrapperClassName: a,
1933
1937
  headerGroupCellWrapperStyle: b,
1934
- paginationContainerClassName: u = "",
1938
+ paginationContainerClassName: h = "",
1935
1939
  paginationContainerStyle: s,
1936
1940
  resizeThrottle: D = 0
1937
1941
  }) {
@@ -1939,260 +1943,260 @@ function rr({
1939
1943
  /* @__PURE__ */ n.jsx(
1940
1944
  Mt,
1941
1945
  {
1942
- fullConfig: o,
1943
- onColumnReorder: X,
1944
- scrollContainerRef: w,
1946
+ fullConfig: l,
1947
+ onColumnReorder: Q,
1948
+ scrollContainerRef: j,
1945
1949
  children: /* @__PURE__ */ n.jsx(
1946
1950
  at,
1947
1951
  {
1948
1952
  dataSource: t,
1949
1953
  preset: r,
1950
- config: o,
1951
- rowKey: l,
1952
- loading: k,
1954
+ config: l,
1955
+ rowKey: d,
1956
+ loading: w,
1953
1957
  pagination: y,
1954
1958
  stickyHeader: R,
1955
1959
  resizeable: $,
1956
- draggableRows: _,
1960
+ draggableRows: m,
1957
1961
  draggableColumns: M,
1958
- scrollContainerRef: w,
1962
+ scrollContainerRef: j,
1959
1963
  onResize: P,
1960
1964
  onSort: U,
1961
- onRowReorder: G,
1962
- onColumnReorder: X,
1965
+ onRowReorder: X,
1966
+ onColumnReorder: Q,
1963
1967
  customCellRender: K,
1964
1968
  sortIcon: V,
1965
- expandIcon: d,
1969
+ expandIcon: f,
1966
1970
  treeMode: J,
1967
1971
  expandedRowKeys: v,
1968
- defaultExpandedRowKeys: f,
1969
- onExpandedRowsChange: c,
1972
+ defaultExpandedRowKeys: g,
1973
+ onExpandedRowsChange: o,
1970
1974
  indentSize: x,
1971
- className: h,
1972
- style: g,
1975
+ className: u,
1976
+ style: c,
1973
1977
  headerClassName: C,
1974
1978
  headerStyle: E,
1975
- headerCellClassName: O,
1976
- headerCellStyle: j,
1977
- headerRowClassName: ae,
1978
- headerRowStyle: se,
1979
- headerCellWrapperClassName: oe,
1980
- headerCellWrapperStyle: de,
1981
- bodyClassName: re,
1982
- bodyStyle: ce,
1979
+ headerCellClassName: k,
1980
+ headerCellStyle: O,
1981
+ headerRowClassName: le,
1982
+ headerRowStyle: ne,
1983
+ headerCellWrapperClassName: q,
1984
+ headerCellWrapperStyle: ce,
1985
+ bodyClassName: ie,
1986
+ bodyStyle: de,
1983
1987
  bodyRowClassName: he,
1984
1988
  bodyRowStyle: A,
1985
1989
  bodyCellClassName: I,
1986
- bodyCellStyle: q,
1987
- bodyCellWrapperClassName: Q,
1988
- bodyCellWrapperStyle: le,
1990
+ bodyCellStyle: Z,
1991
+ bodyCellWrapperClassName: ee,
1992
+ bodyCellWrapperStyle: oe,
1989
1993
  headerGroupRowClassName: B,
1990
1994
  headerGroupRowStyle: T,
1991
- headerGroupCellClassName: Z,
1995
+ headerGroupCellClassName: G,
1992
1996
  headerGroupCellStyle: W,
1993
1997
  headerGroupCellWrapperClassName: a,
1994
1998
  headerGroupCellWrapperStyle: b,
1995
- paginationContainerClassName: u,
1999
+ paginationContainerClassName: h,
1996
2000
  paginationContainerStyle: s,
1997
- noDataRender: te,
2001
+ noDataRender: re,
1998
2002
  recalculateRowHeight: L,
1999
- sorting: m,
2003
+ sorting: _,
2000
2004
  defaultSorting: F,
2001
2005
  resizeThrottle: D
2002
2006
  }
2003
2007
  )
2004
2008
  }
2005
2009
  ),
2006
- /* @__PURE__ */ n.jsx("div", { className: `radar-table-pagination-container ${u}`, style: s, children: y && /* @__PURE__ */ n.jsx(it, { config: y }) })
2010
+ /* @__PURE__ */ n.jsx("div", { className: `radar-table-pagination-container ${h}`, style: s, children: y && /* @__PURE__ */ n.jsx(it, { config: y }) })
2007
2011
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2008
2012
  /* @__PURE__ */ n.jsx(
2009
2013
  at,
2010
2014
  {
2011
2015
  dataSource: t,
2012
2016
  preset: r,
2013
- config: o,
2014
- rowKey: l,
2015
- loading: k,
2017
+ config: l,
2018
+ rowKey: d,
2019
+ loading: w,
2016
2020
  pagination: y,
2017
2021
  stickyHeader: R,
2018
2022
  resizeable: $,
2019
- draggableRows: _,
2023
+ draggableRows: m,
2020
2024
  draggableColumns: M,
2021
- scrollContainerRef: w,
2025
+ scrollContainerRef: j,
2022
2026
  onResize: P,
2023
2027
  onSort: U,
2024
- onRowReorder: G,
2025
- onColumnReorder: X,
2028
+ onRowReorder: X,
2029
+ onColumnReorder: Q,
2026
2030
  customCellRender: K,
2027
2031
  sortIcon: V,
2028
- expandIcon: d,
2032
+ expandIcon: f,
2029
2033
  treeMode: J,
2030
2034
  expandedRowKeys: v,
2031
- defaultExpandedRowKeys: f,
2032
- onExpandedRowsChange: c,
2035
+ defaultExpandedRowKeys: g,
2036
+ onExpandedRowsChange: o,
2033
2037
  indentSize: x,
2034
- className: h,
2035
- style: g,
2038
+ className: u,
2039
+ style: c,
2036
2040
  headerClassName: C,
2037
2041
  headerStyle: E,
2038
- headerCellClassName: O,
2039
- headerCellStyle: j,
2040
- headerRowClassName: ae,
2041
- headerRowStyle: se,
2042
- headerCellWrapperClassName: oe,
2043
- headerCellWrapperStyle: de,
2044
- bodyClassName: re,
2045
- bodyStyle: ce,
2042
+ headerCellClassName: k,
2043
+ headerCellStyle: O,
2044
+ headerRowClassName: le,
2045
+ headerRowStyle: ne,
2046
+ headerCellWrapperClassName: q,
2047
+ headerCellWrapperStyle: ce,
2048
+ bodyClassName: ie,
2049
+ bodyStyle: de,
2046
2050
  bodyRowClassName: he,
2047
2051
  bodyRowStyle: A,
2048
2052
  bodyCellClassName: I,
2049
- bodyCellStyle: q,
2050
- bodyCellWrapperClassName: Q,
2051
- bodyCellWrapperStyle: le,
2053
+ bodyCellStyle: Z,
2054
+ bodyCellWrapperClassName: ee,
2055
+ bodyCellWrapperStyle: oe,
2052
2056
  headerGroupRowClassName: B,
2053
2057
  headerGroupRowStyle: T,
2054
- headerGroupCellClassName: Z,
2058
+ headerGroupCellClassName: G,
2055
2059
  headerGroupCellStyle: W,
2056
2060
  headerGroupCellWrapperClassName: a,
2057
2061
  headerGroupCellWrapperStyle: b,
2058
- paginationContainerClassName: u,
2062
+ paginationContainerClassName: h,
2059
2063
  paginationContainerStyle: s,
2060
- noDataRender: te,
2064
+ noDataRender: re,
2061
2065
  recalculateRowHeight: L,
2062
- sorting: m,
2066
+ sorting: _,
2063
2067
  defaultSorting: F,
2064
2068
  resizeThrottle: D
2065
2069
  }
2066
2070
  ),
2067
- /* @__PURE__ */ n.jsx("div", { className: `radar-table-pagination-container ${u}`, style: s, children: y && /* @__PURE__ */ n.jsx(it, { config: y }) })
2071
+ /* @__PURE__ */ n.jsx("div", { className: `radar-table-pagination-container ${h}`, style: s, children: y && /* @__PURE__ */ n.jsx(it, { config: y }) })
2068
2072
  ] });
2069
2073
  }
2070
2074
  function at(t) {
2071
2075
  const {
2072
2076
  dataSource: r,
2073
- preset: o,
2074
- config: l,
2075
- rowKey: k,
2077
+ preset: l,
2078
+ config: d,
2079
+ rowKey: w,
2076
2080
  loading: y,
2077
2081
  stickyHeader: R,
2078
2082
  resizeable: $,
2079
- draggableRows: _,
2083
+ draggableRows: m,
2080
2084
  draggableColumns: M,
2081
- scrollContainerRef: w,
2085
+ scrollContainerRef: j,
2082
2086
  onResize: P,
2083
2087
  onSort: U,
2084
- onRowReorder: G,
2085
- onColumnReorder: X,
2088
+ onRowReorder: X,
2089
+ onColumnReorder: Q,
2086
2090
  customCellRender: K,
2087
- sortIcon: te,
2091
+ sortIcon: re,
2088
2092
  expandIcon: V,
2089
- treeMode: d,
2093
+ treeMode: f,
2090
2094
  expandedRowKeys: L,
2091
- defaultExpandedRowKeys: m,
2095
+ defaultExpandedRowKeys: _,
2092
2096
  onExpandedRowsChange: F,
2093
2097
  indentSize: J,
2094
2098
  className: v,
2095
- style: f,
2096
- headerClassName: c,
2099
+ style: g,
2100
+ headerClassName: o,
2097
2101
  headerStyle: x,
2098
- headerCellClassName: h,
2099
- headerCellStyle: g,
2102
+ headerCellClassName: u,
2103
+ headerCellStyle: c,
2100
2104
  headerRowClassName: C,
2101
2105
  headerRowStyle: E,
2102
- headerCellWrapperClassName: O,
2103
- headerCellWrapperStyle: j,
2104
- bodyClassName: ae,
2105
- bodyStyle: se,
2106
- bodyRowClassName: oe,
2107
- bodyRowStyle: de,
2108
- bodyCellClassName: re,
2109
- bodyCellStyle: ce,
2106
+ headerCellWrapperClassName: k,
2107
+ headerCellWrapperStyle: O,
2108
+ bodyClassName: le,
2109
+ bodyStyle: ne,
2110
+ bodyRowClassName: q,
2111
+ bodyRowStyle: ce,
2112
+ bodyCellClassName: ie,
2113
+ bodyCellStyle: de,
2110
2114
  bodyCellWrapperClassName: he,
2111
2115
  bodyCellWrapperStyle: A,
2112
2116
  headerGroupRowClassName: I,
2113
- headerGroupRowStyle: q,
2114
- headerGroupCellClassName: Q,
2115
- headerGroupCellStyle: le,
2117
+ headerGroupRowStyle: Z,
2118
+ headerGroupCellClassName: ee,
2119
+ headerGroupCellStyle: oe,
2116
2120
  headerGroupCellWrapperClassName: B,
2117
2121
  headerGroupCellWrapperStyle: T,
2118
- noDataRender: Z,
2122
+ noDataRender: G,
2119
2123
  recalculateRowHeight: W,
2120
2124
  sorting: a,
2121
2125
  defaultSorting: b,
2122
- resizeThrottle: u
2126
+ resizeThrottle: h
2123
2127
  } = t;
2124
- return /* @__PURE__ */ n.jsxs("table", { className: `radar-table ${o || ""} ${v}`, style: f, children: [
2128
+ return /* @__PURE__ */ n.jsxs("table", { className: `radar-table ${l || ""} ${v}`, style: g, children: [
2125
2129
  /* @__PURE__ */ n.jsx(
2126
2130
  Ht,
2127
2131
  {
2128
2132
  draggableColumns: M,
2129
- config: l,
2133
+ config: d,
2130
2134
  onSort: U,
2131
2135
  resizeable: $,
2132
2136
  onResize: P,
2133
- sortIcon: te,
2134
- preset: o,
2135
- headerClassName: c,
2137
+ sortIcon: re,
2138
+ preset: l,
2139
+ headerClassName: o,
2136
2140
  headerStyle: x,
2137
2141
  headerRowClassName: C,
2138
2142
  headerRowStyle: E,
2139
- headerCellClassName: h,
2140
- headerCellStyle: g,
2141
- headerCellWrapperClassName: O,
2142
- headerCellWrapperStyle: j,
2143
+ headerCellClassName: u,
2144
+ headerCellStyle: c,
2145
+ headerCellWrapperClassName: k,
2146
+ headerCellWrapperStyle: O,
2143
2147
  headerGroupRowClassName: I,
2144
- headerGroupRowStyle: q,
2145
- headerGroupCellClassName: Q,
2146
- headerGroupCellStyle: le,
2148
+ headerGroupRowStyle: Z,
2149
+ headerGroupCellClassName: ee,
2150
+ headerGroupCellStyle: oe,
2147
2151
  headerGroupCellWrapperClassName: B,
2148
2152
  headerGroupCellWrapperStyle: T,
2149
2153
  stickyHeader: R,
2150
- scrollContainerRef: w,
2151
- onColumnReorder: X,
2154
+ scrollContainerRef: j,
2155
+ onColumnReorder: Q,
2152
2156
  sorting: a,
2153
2157
  defaultSorting: b,
2154
- resizeThrottle: u
2158
+ resizeThrottle: h
2155
2159
  }
2156
2160
  ),
2157
2161
  /* @__PURE__ */ n.jsx(
2158
2162
  Zt,
2159
2163
  {
2160
- draggableRows: _,
2161
- onRowReorder: G,
2164
+ draggableRows: m,
2165
+ onRowReorder: X,
2162
2166
  dataSource: r,
2163
- config: l,
2164
- rowKey: k,
2167
+ config: d,
2168
+ rowKey: w,
2165
2169
  loading: y,
2166
- preset: o,
2170
+ preset: l,
2167
2171
  customCellRender: K,
2168
2172
  expandIcon: V,
2169
- treeMode: d,
2173
+ treeMode: f,
2170
2174
  expandedRowKeys: L,
2171
- defaultExpandedRowKeys: m,
2175
+ defaultExpandedRowKeys: _,
2172
2176
  onExpandedRowsChange: F,
2173
2177
  indentSize: J,
2174
- bodyClassName: ae,
2175
- bodyStyle: se,
2176
- bodyRowClassName: oe,
2177
- bodyRowStyle: de,
2178
- bodyCellClassName: re,
2179
- bodyCellStyle: ce,
2178
+ bodyClassName: le,
2179
+ bodyStyle: ne,
2180
+ bodyRowClassName: q,
2181
+ bodyRowStyle: ce,
2182
+ bodyCellClassName: ie,
2183
+ bodyCellStyle: de,
2180
2184
  bodyCellWrapperClassName: he,
2181
2185
  bodyCellWrapperStyle: A,
2182
- noDataRender: Z,
2183
- scrollContainerRef: w,
2186
+ noDataRender: G,
2187
+ scrollContainerRef: j,
2184
2188
  recalculateRowHeight: W
2185
2189
  }
2186
2190
  )
2187
2191
  ] });
2188
2192
  }
2189
- const st = ({ children: t, tagType: r = "h1", ...o }) => {
2193
+ const st = ({ children: t, tagType: r = "h1", ...l }) => {
2190
2194
  if (r === "h1")
2191
2195
  return /* @__PURE__ */ n.jsx(
2192
2196
  "h1",
2193
2197
  {
2194
2198
  className: "radar-title radar-title_h1",
2195
- ...o,
2199
+ ...l,
2196
2200
  children: t
2197
2201
  }
2198
2202
  );
@@ -2201,7 +2205,7 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2201
2205
  "h2",
2202
2206
  {
2203
2207
  className: "radar-title radar-title_h1",
2204
- ...o,
2208
+ ...l,
2205
2209
  children: t
2206
2210
  }
2207
2211
  );
@@ -2210,7 +2214,7 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2210
2214
  "h3",
2211
2215
  {
2212
2216
  className: "radar-title radar-title_h1",
2213
- ...o,
2217
+ ...l,
2214
2218
  children: t
2215
2219
  }
2216
2220
  );
@@ -2219,7 +2223,7 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2219
2223
  "h4",
2220
2224
  {
2221
2225
  className: "radar-title radar-title_h1",
2222
- ...o,
2226
+ ...l,
2223
2227
  children: t
2224
2228
  }
2225
2229
  );
@@ -2228,7 +2232,7 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2228
2232
  "h5",
2229
2233
  {
2230
2234
  className: "radar-title radar-title_h1",
2231
- ...o,
2235
+ ...l,
2232
2236
  children: t
2233
2237
  }
2234
2238
  );
@@ -2237,17 +2241,17 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2237
2241
  "h6",
2238
2242
  {
2239
2243
  className: "radar-title radar-title_h1",
2240
- ...o,
2244
+ ...l,
2241
2245
  children: t
2242
2246
  }
2243
2247
  );
2244
- }, Gt = ({ children: t, tagType: r = "h2", ...o }) => {
2248
+ }, Gt = ({ children: t, tagType: r = "h2", ...l }) => {
2245
2249
  if (r === "h1")
2246
2250
  return /* @__PURE__ */ n.jsx(
2247
2251
  "h1",
2248
2252
  {
2249
2253
  className: "radar-title radar-title_h2",
2250
- ...o,
2254
+ ...l,
2251
2255
  children: t
2252
2256
  }
2253
2257
  );
@@ -2256,7 +2260,7 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2256
2260
  "h2",
2257
2261
  {
2258
2262
  className: "radar-title radar-title_h2",
2259
- ...o,
2263
+ ...l,
2260
2264
  children: t
2261
2265
  }
2262
2266
  );
@@ -2265,7 +2269,7 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2265
2269
  "h3",
2266
2270
  {
2267
2271
  className: "radar-title radar-title_h2",
2268
- ...o,
2272
+ ...l,
2269
2273
  children: t
2270
2274
  }
2271
2275
  );
@@ -2274,7 +2278,7 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2274
2278
  "h4",
2275
2279
  {
2276
2280
  className: "radar-title radar-title_h2",
2277
- ...o,
2281
+ ...l,
2278
2282
  children: t
2279
2283
  }
2280
2284
  );
@@ -2283,7 +2287,7 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2283
2287
  "h5",
2284
2288
  {
2285
2289
  className: "radar-title radar-title_h2",
2286
- ...o,
2290
+ ...l,
2287
2291
  children: t
2288
2292
  }
2289
2293
  );
@@ -2292,11 +2296,11 @@ const st = ({ children: t, tagType: r = "h1", ...o }) => {
2292
2296
  "h6",
2293
2297
  {
2294
2298
  className: "radar-title radar-title_h2",
2295
- ...o,
2299
+ ...l,
2296
2300
  children: t
2297
2301
  }
2298
2302
  );
2299
- }, nr = Object.assign(st, { H1: st, H2: Gt }), ot = ({ children: t, fontStyle: r = "medium", ...o }) => /* @__PURE__ */ n.jsx("p", { className: `radar-text radar-text_m radar-text_${r}`, ...o, children: t }), Xt = ({ children: t, fontStyle: r = "medium", ...o }) => /* @__PURE__ */ n.jsx("p", { className: `radar-text radar-text_s radar-text_${r}`, ...o, children: t }), ir = Object.assign(ot, { M: ot, S: Xt });
2303
+ }, nr = Object.assign(st, { H1: st, H2: Gt }), ot = ({ children: t, fontStyle: r = "medium", ...l }) => /* @__PURE__ */ n.jsx("p", { className: `radar-text radar-text_m radar-text_${r}`, ...l, children: t }), Xt = ({ children: t, fontStyle: r = "medium", ...l }) => /* @__PURE__ */ n.jsx("p", { className: `radar-text radar-text_s radar-text_${r}`, ...l, children: t }), ir = Object.assign(ot, { M: ot, S: Xt });
2300
2304
  export {
2301
2305
  Jt as HeaderCell,
2302
2306
  it as Pagination,