radar-ui 1.1.17 → 1.1.19

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