radar-ui 1.1.10 → 1.1.12

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