radar-ui 1.1.12 → 1.1.14

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