radar-ui 1.1.19 → 1.1.21

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