radar-ui 1.1.22 → 1.1.24

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