radar-ui 1.1.12 → 1.1.13

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 It() {
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 r = Xe, a = Symbol.for("react.element"), c = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
25
+ function j(S, _, F) {
26
+ var P, N = {}, 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) && !x.hasOwnProperty(P) && (N[P] = _[P]);
29
+ if (S && S.defaultProps) for (P in _ = S.defaultProps, _) N[P] === void 0 && (N[P] = _[P]);
30
+ return { $$typeof: a, type: S, key: M, ref: K, props: N, _owner: D.current };
31
31
  }
32
- return ve.Fragment = C, ve.jsx = j, ve.jsxs = j, ve;
32
+ return pe.Fragment = c, pe.jsx = j, pe.jsxs = j, pe;
33
33
  }
34
- var ye = {};
34
+ var xe = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -42,53 +42,53 @@ var ye = {};
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
44
  var Je;
45
- function Lt() {
45
+ function Nt() {
46
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) {
47
+ var r = Xe, a = Symbol.for("react.element"), c = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), j = 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"), N = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), K = Symbol.for("react.offscreen"), Y = Symbol.iterator, J = "@@iterator";
48
+ function E(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[J];
52
52
  return typeof n == "function" ? n : null;
53
53
  }
54
- var d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
+ var u = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
55
  function t(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), R = 1; R < n; R++)
58
+ l[R - 1] = arguments[R];
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 R = u.ReactDebugCurrentFrame, B = R.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 h = !1, g = !1, w = !1, d = !1, T = !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 === x || T || e === D || e === F || e === P || d || e === K || h || g || w || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === N || e.$$typeof === j || 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 R = e.displayName;
83
+ if (R)
84
+ return R;
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
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")
@@ -98,34 +98,34 @@ function Lt() {
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 x:
104
104
  return "Profiler";
105
- case R:
105
+ case D:
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";
116
+ return V(n) + ".Consumer";
117
117
  case j:
118
118
  var l = e;
119
- return M(l._context) + ".Provider";
120
- case y:
121
- return F(e, e.render, "ForwardRef");
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;
119
+ return V(l._context) + ".Provider";
120
+ case _:
121
+ return W(e, e.render, "ForwardRef");
122
+ case N:
123
+ var R = e.displayName || null;
124
+ return R !== null ? R : 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, H = 0, C, y, f, k, O, L, v;
137
+ function b() {
138
138
  }
139
- P.__reactDisabledLog = !0;
140
- function q() {
139
+ b.__reactDisabledLog = !0;
140
+ function X() {
141
141
  {
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;
142
+ if (H === 0) {
143
+ C = console.log, y = console.info, f = console.warn, k = console.error, O = console.group, L = console.groupCollapsed, v = console.groupEnd;
144
144
  var e = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
147
- value: P,
147
+ value: b,
148
148
  writable: !0
149
149
  };
150
150
  Object.defineProperties(console, {
@@ -157,122 +157,122 @@ function Lt() {
157
157
  groupEnd: e
158
158
  });
159
159
  }
160
- U++;
160
+ H++;
161
161
  }
162
162
  }
163
163
  function Q() {
164
164
  {
165
- if (U--, U === 0) {
165
+ if (H--, H === 0) {
166
166
  var e = {
167
167
  configurable: !0,
168
168
  enumerable: !0,
169
169
  writable: !0
170
170
  };
171
171
  Object.defineProperties(console, {
172
- log: G({}, e, {
173
- value: x
172
+ log: q({}, e, {
173
+ value: C
174
174
  }),
175
- info: G({}, e, {
176
- value: v
175
+ info: q({}, e, {
176
+ value: y
177
177
  }),
178
- warn: G({}, e, {
178
+ warn: q({}, e, {
179
179
  value: f
180
180
  }),
181
- error: G({}, e, {
182
- value: E
181
+ error: q({}, e, {
182
+ value: k
183
183
  }),
184
- group: G({}, e, {
184
+ group: q({}, e, {
185
185
  value: O
186
186
  }),
187
- groupCollapsed: G({}, e, {
188
- value: Y
187
+ groupCollapsed: q({}, e, {
188
+ value: L
189
189
  }),
190
- groupEnd: G({}, e, {
191
- value: _
190
+ groupEnd: q({}, e, {
191
+ value: v
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
+ H < 0 && t("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 ee = u.ReactCurrentDispatcher, p;
199
+ function U(e, n, l) {
200
200
  {
201
- if (g === void 0)
201
+ if (p === 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 R = B.stack.trim().match(/\n( *(at )?)/);
206
+ p = R && R[1] || "";
207
207
  }
208
208
  return `
209
- ` + g + e;
209
+ ` + p + 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 R;
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 = ee.current, ee.current = null, X();
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
+ R = 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
+ R = 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
+ R = 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]; )
264
+ if (ie && R && typeof ie.stack == "string") {
265
+ for (var I = ie.stack.split(`
266
+ `), ae = R.stack.split(`
267
+ `), te = I.length - 1, re = ae.length - 1; te >= 1 && re >= 0 && I[te] !== ae[re]; )
268
268
  re--;
269
269
  for (; te >= 1 && re >= 0; te--, re--)
270
- if (L[te] !== oe[re]) {
270
+ if (I[te] !== ae[re]) {
271
271
  if (te !== 1 || re !== 1)
272
272
  do
273
- if (te--, re--, re < 0 || L[te] !== oe[re]) {
273
+ if (te--, re--, re < 0 || I[te] !== ae[re]) {
274
274
  var le = `
275
- ` + L[te].replace(" at new ", " at ");
275
+ ` + I[te].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
278
  while (te >= 1 && re >= 0);
@@ -280,9 +280,9 @@ function Lt() {
280
280
  }
281
281
  }
282
282
  } finally {
283
- ae = !1, ee.current = Z, Q(), Error.prepareStackTrace = B;
283
+ oe = !1, ee.current = Z, Q(), 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 ? U(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 U(e);
302
302
  switch (e) {
303
- case N:
304
- return H("Suspense");
305
- case D:
306
- return H("SuspenseList");
303
+ case F:
304
+ return U("Suspense");
305
+ case P:
306
+ return U("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
- case I:
313
- return xe(e.type, n, l);
314
- case A: {
315
- var S = e, B = S._payload, Z = S._init;
312
+ case N:
313
+ return be(e.type, n, l);
314
+ case M: {
315
+ var R = e, B = R._payload, Z = R._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, R, 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 I = 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((R || "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");
343
+ I = e[A](n, A, R, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
344
  } catch (te) {
345
- L = te;
345
+ I = te;
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
+ I && !(I 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).", R || "React class", l, A, typeof I), _e(null)), I instanceof Error && !(I.message in Te) && (Te[I.message] = !0, _e(B), t("Failed %s type: %s", l, I.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 t("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 Ie = 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
+ }, Ne, $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) {
397
+ function st(e, n) {
398
398
  typeof e.ref == "string" && Ie.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
+ Ne || (Ne = !0, t("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
404
404
  };
405
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, t("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
415
415
  };
416
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, R, B, Z, A) {
423
+ var I = {
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 I._store = {}, Object.defineProperty(I._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(I, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: S
444
- }), Object.defineProperty(L, "_source", {
443
+ value: R
444
+ }), Object.defineProperty(I, "_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(I.props), Object.freeze(I)), I;
450
450
  };
451
- function ct(e, n, l, S, B) {
451
+ function ut(e, n, l, R, 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 = {}, I = null, ae = null;
454
+ l !== void 0 && (Le(l), I = "" + l), it(n) && (Le(n.key), I = "" + 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
458
  var te = e.defaultProps;
459
459
  for (Z in te)
460
- W[Z] === void 0 && (W[Z] = te[Z]);
460
+ A[Z] === void 0 && (A[Z] = te[Z]);
461
461
  }
462
- if (L || oe) {
462
+ if (I || ae) {
463
463
  var re = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- L && it(W, re), oe && st(W, re);
464
+ I && lt(A, re), ae && ct(A, re);
465
465
  }
466
- return lt(e, L, oe, B, S, Ie.current, W);
466
+ return dt(e, I, ae, B, R, Ie.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 R = "";
520
+ e && e._owner && e._owner !== je.current && (R = " It was passed a child from " + z(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, R), 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 R = e[l];
530
+ Se(R) && Me(R, 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 = E(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,29 +547,29 @@ 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
- n.$$typeof === I))
552
+ n.$$typeof === N))
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 R = z(n);
558
+ et(l, e.props, "prop", R, e);
559
559
  } else if (n.PropTypes !== void 0 && !ke) {
560
560
  ke = !0;
561
- var B = V(n);
561
+ var B = z(n);
562
562
  t("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
563
563
  }
564
564
  typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && t("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
565
  }
566
566
  }
567
- 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 R = n[l];
571
+ if (R !== "children" && R !== "key") {
572
+ he(e), t("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), he(null);
573
573
  break;
574
574
  }
575
575
  }
@@ -577,24 +577,24 @@ Check the top-level render call using <` + l + ">.");
577
577
  }
578
578
  }
579
579
  var ze = {};
580
- function Ke(e, n, l, S, B, Z) {
580
+ function Ke(e, n, l, R, 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();
582
+ var A = $(e);
583
+ if (!A) {
584
+ var I = "";
585
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (I += " 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 ? I += ae : I += We();
588
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);
589
+ e === null ? te = "null" : Ee(e) ? te = "array" : e !== void 0 && e.$$typeof === a ? (te = "<" + (z(e.type) || "Unknown") + " />", I = " 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, I);
590
590
  }
591
- var re = ct(e, n, l, B, Z);
591
+ var re = ut(e, n, l, B, Z);
592
592
  if (re == null)
593
593
  return re;
594
- if (W) {
594
+ if (A) {
595
595
  var le = n.children;
596
596
  if (le !== void 0)
597
- if (S)
597
+ if (R)
598
598
  if (Ee(le)) {
599
599
  for (var ge = 0; ge < le.length; ge++)
600
600
  Ve(le[ge], e);
@@ -604,501 +604,501 @@ Check the top-level render call using <` + l + ">.");
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(": ..., ") + ": ...}" : "{}";
612
+ var _t = ie.length > 0 ? "{" + ie.join(": ..., ") + ": ...}" : "{}";
613
613
  t(`A props object containing a "key" prop is being spread into JSX:
614
614
  let props = %s;
615
615
  <%s {...props} />
616
616
  React keys must be passed directly to JSX without using spread:
617
617
  let props = %s;
618
- <%s key={someKey} {...props} />`, 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(re) : gt(re), re;
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 = It() : De.exports = Nt();
635
+ var o = De.exports;
636
+ const $t = ({ column: r, currWidth: a, currMinWidth: c, onResize: s, scrollContainerRef: D }) => {
637
+ const [x, j] = ce(!1), [S, _] = ce(null), [F, P] = ce(0), [N, M] = ce(0), K = ye(null), Y = ye(0), J = ye(!1), E = ye(null), u = G((h) => {
638
+ if (!x || !S || !r) return;
639
+ const g = h.clientX - F;
640
+ let w = Math.min((r == null ? void 0 : r.maxWidth) || 9999999, N + g);
641
+ const d = D == null ? void 0 : D.current, T = -10, m = 10, $ = h.clientX, W = d == null ? void 0 : d.getBoundingClientRect(), V = W == null ? void 0 : W.right;
642
+ d && V && V - $ < T && !J.current && (J.current = !0, Y.current = w, K.current = setInterval(() => {
643
+ if (r != null && r.maxWidth && Y.current >= (r == null ? void 0 : r.maxWidth)) return;
644
+ const q = d.scrollWidth - d.clientWidth + m;
645
+ d.scrollLeft < q ? (d.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)), J.current || s == null || s(S, w);
647
+ }, [x, F, N, S, s, D]), t = G((h) => {
648
+ x && (S && h.clientX - F, K.current && (console.log("Stopping auto scroll on mouse up"), clearInterval(K.current), K.current = null), J.current = !1, j(!1), P(0), M(0), _(null), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", t));
649
+ }, [x, S, F, N, u]), i = G((h, g, w) => {
650
+ h.preventDefault(), j(!0), P(h.clientX), M(w), _(g);
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
+ x && (document.addEventListener("mousemove", u), document.addEventListener("mouseup", t));
654
+ }, [x, u, t]), Ce(() => () => {
655
+ document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", t);
656
+ }, [u, t]), /* @__PURE__ */ o.jsx(
657
657
  "button",
658
658
  {
659
- ref: w,
659
+ ref: E,
660
660
  className: "radar-table__resize-button",
661
- onMouseDown: (u) => o(u, r.key, i || C || 200),
661
+ onMouseDown: (h) => i(h, r.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 = () => {
666
+ }, Ft = ({ text: r, children: a }) => {
667
+ const [c, s] = ce(!1), [D, x] = ce("left"), j = ye(null), S = () => {
668
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");
669
+ const _ = j.current.getBoundingClientRect(), F = window.innerWidth, P = 250, N = 20, M = F - _.left, K = _.right;
670
+ M < P + N && K > P + N ? x("right") : x("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
677
  ref: j,
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}`,
689
+ className: `radar-table__tooltip-text ${c ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${D}`,
690
690
  children: r
691
691
  }
692
692
  )
693
693
  ]
694
694
  }
695
695
  );
696
- }, Xe = _t(null), Nt = () => {
697
- const r = mt(Xe);
696
+ }, Qe = Ct(null), Wt = () => {
697
+ const r = wt(Qe);
698
698
  return r || {
699
699
  activeColumn: null,
700
700
  isValidDropZone: () => !1
701
701
  };
702
702
  };
703
- function Ft({
703
+ function At({
704
704
  children: r,
705
- fullConfig: i,
706
- onColumnReorder: C
705
+ fullConfig: a,
706
+ onColumnReorder: c
707
707
  }) {
708
- const [s, R] = ce(null), p = Ct(
709
- Ye(wt, {
708
+ const [s, D] = ce(null), x = 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
+ ), j = G((E) => {
719
+ const u = St(E);
720
+ if (u.length > 0) {
721
+ const h = u.filter(
722
+ (g) => g.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 (h.length > 0)
725
+ return console.log("🎯 Pointer collision found:", h[0].id), h;
726
726
  }
727
- const o = kt(w).filter(
728
- (u) => u.id.toString().startsWith("drop-zone-")
727
+ const i = Rt(E).filter(
728
+ (h) => h.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);
730
+ return i.length > 0 ? (console.log("📦 Rect collision found:", i[0].id), [i[0]]) : [];
731
+ }, []), S = G((E) => E.some((u) => u.children && u.children.length > 0), []), _ = G((E, u) => {
732
+ const t = (i, h, g = 0, w = null) => {
733
+ for (const d of i) {
734
+ if (d.key === h)
735
+ return { column: d, parent: w, level: g };
736
+ if (d.children && d.children.length > 0) {
737
+ const T = t(d.children, h, g + 1, d);
738
738
  if (T) return T;
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 t(E, u);
744
+ }, []), F = G((E, u) => {
745
+ var i;
746
+ const t = _(u, E);
747
+ return t && (t.column.fixed || ((i = t.parent) == null ? void 0 : i.fixed)) || !1;
748
+ }, [_]), P = G((E, u) => {
749
+ var h, g, w, d;
750
+ if (E.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 t = F(E.columnKey, a), i = F(u.columnKey, a);
753
+ if (t !== i)
754
754
  return console.log("❌ Drop rejected: fixed status mismatch", {
755
755
  draggedFixed: t,
756
- targetFixed: o
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 T = _(a, E.columnKey), m = _(a, u.columnKey);
760
+ if (!T || !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 $ = E.isLeaf, W = u.isLeaf;
763
+ if (!$ && !W) {
764
+ const V = T.level === m.level, z = T.parent === null && m.parent === null || T.parent !== null && m.parent !== null && T.parent.key === m.parent.key;
765
765
  return console.log("🔄 Group to group validation:", {
766
- sameLevel: M,
767
- sameParentLevel: V,
766
+ sameLevel: V,
767
+ sameParentLevel: z,
768
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;
769
+ targetLevel: m.level,
770
+ draggedParent: (h = T.parent) == null ? void 0 : h.key,
771
+ targetParent: (g = m.parent) == null ? void 0 : g.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 = T.level === m.level, z = T.parent === null && m.parent === null || T.parent !== null && m.parent !== null && T.parent.key === m.parent.key;
776
776
  return console.log("🍃 Leaf to leaf validation:", {
777
- sameLevel: M,
778
- sameParent: V,
777
+ sameLevel: V,
778
+ sameParent: z,
779
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;
780
+ targetLevel: m.level,
781
+ draggedParent: (w = T.parent) == null ? void 0 : w.key,
782
+ targetParent: (d = m.parent) == null ? void 0 : d.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)
791
+ }, [a, S, _, F]), N = G((E, u, t) => {
792
+ var H, C;
793
+ if (console.log("🔄 Performing column reorder:", { draggedKey: E, targetKey: u }), !S(a)) {
794
+ const y = t.findIndex((v) => v.key === E), f = t.findIndex((v) => v.key === u);
795
+ if (y === -1 || f === -1)
796
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;
797
+ const k = [...t], O = k[y];
798
+ k.splice(y, 1);
799
+ const L = (y < f, f);
800
+ return k.splice(L, 0, O), console.log("✅ Simple header reorder completed"), k;
801
801
  }
802
- const o = y(i, w), u = y(i, d);
803
- if (!o || !u)
802
+ const i = _(a, E), h = _(a, u);
803
+ if (!i || !h)
804
804
  return console.log("❌ Column info not found in complex config"), t;
805
- const h = JSON.parse(JSON.stringify(i)), m = (v, f) => {
805
+ const g = JSON.parse(JSON.stringify(a)), w = (y, f) => {
806
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;
807
+ return { container: y, parentObj: null };
808
+ const k = (L) => {
809
+ for (const v of L) {
810
+ if (v.key === f)
811
+ return v;
812
+ if (v.children) {
813
+ const b = k(v.children);
814
+ if (b) return b;
815
815
  }
816
816
  }
817
817
  return null;
818
- }, O = E(v);
818
+ }, O = k(y);
819
819
  return {
820
- container: (O == null ? void 0 : O.children) || v,
820
+ container: (O == null ? void 0 : O.children) || y,
821
821
  parentObj: O
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 !== $)
823
+ }, d = ((H = i.parent) == null ? void 0 : H.key) || null, T = ((C = h.parent) == null ? void 0 : C.key) || null, { container: m } = w(g, d), { container: $ } = w(g, T);
824
+ if (m !== $)
825
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)
826
+ const W = m.findIndex((y) => y.key === E), V = m.findIndex((y) => y.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
829
+ draggedIndex: W,
830
+ targetIndex: V,
831
+ containerSize: m.length
832
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) {
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: E,
836
+ targetKey: u,
837
+ draggedIndex: W,
838
+ targetIndex: V,
839
+ insertIndex: q,
840
+ parentKey: d
841
+ }), g;
842
+ }, [a, S, _]), M = G((E) => {
843
+ const u = E.active.data.current;
844
+ D(u), document.body.style.cursor = "grabbing", console.log("🚀 Drag started:", u);
845
+ }, []), K = G((E) => {
846
+ const { active: u, over: t } = E;
847
+ if (!t || !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, h = t.data.current;
852
+ if (!h) {
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 g = P(i, h);
857
+ document.body.style.cursor = g ? "copy" : "not-allowed", console.log("🎯 Drag over:", {
858
+ target: h.columnKey,
859
+ isValid: g,
860
+ draggedType: i.isLeaf ? "leaf" : "group",
861
+ targetType: h.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((E) => {
864
+ const { active: u, over: t } = E;
865
+ if (document.body.style.cursor = "", D(null), !t || !u.data.current || !t.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, h = t.data.current;
870
+ if (!P(i, h)) {
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: h }), c) {
875
+ const g = N(
876
+ i.columnKey,
877
+ h.columnKey,
878
+ a
879
879
  );
880
- h._dragInfo = {
881
- draggedKey: o.columnKey,
882
- targetKey: u.columnKey,
883
- draggedIndex: o.index,
880
+ g._dragInfo = {
881
+ draggedKey: i.columnKey,
882
+ targetKey: h.columnKey,
883
+ draggedIndex: i.index,
884
884
  targetIndex: -1
885
885
  // будет вычислен в TableHeader если нужно
886
- }, C(h), console.log("🔄 Column reorder executed");
886
+ }, c(g), console.log("🔄 Column reorder executed");
887
887
  }
888
- }, [D, C, I, i]), J = {
888
+ }, [P, c, N, a]), J = {
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: J, children: /* @__PURE__ */ o.jsxs(
893
+ Dt,
894
894
  {
895
- sensors: p,
895
+ sensors: x,
896
896
  collisionDetection: j,
897
- onDragStart: A,
898
- onDragOver: z,
899
- onDragEnd: K,
897
+ onDragStart: M,
898
+ onDragOver: K,
899
+ onDragEnd: Y,
900
900
  children: [
901
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: [
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({
913
+ function Mt({
914
914
  column: r,
915
- index: i,
916
- config: C,
915
+ index: a,
916
+ config: c,
917
917
  fullConfig: s,
918
- sorting: R,
919
- onSort: p,
918
+ sorting: D,
919
+ onSort: x,
920
920
  onResize: j,
921
- sortIcon: k,
922
- resizeable: y,
923
- draggableColumns: N,
924
- preset: D,
925
- headerCellClassName: I,
926
- headerCellStyle: A,
927
- headerCellWrapperClassName: z,
928
- headerCellWrapperStyle: K,
921
+ sortIcon: S,
922
+ resizeable: _,
923
+ draggableColumns: F,
924
+ preset: P,
925
+ headerCellClassName: N,
926
+ headerCellStyle: M,
927
+ headerCellWrapperClassName: K,
928
+ headerCellWrapperStyle: Y,
929
929
  stickyHeader: J,
930
- scrollContainerRef: w
930
+ scrollContainerRef: E
931
931
  }) {
932
932
  var ee;
933
933
  if (r.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: t } = Wt(), i = !r.children || r.children.length === 0;
936
+ me(() => (s == null ? void 0 : s.some((p) => p.children && p.children.length > 0)) || !1, [s]);
937
+ const h = F, w = G((p) => {
938
938
  if (!s) return null;
939
- const H = (ae, se, ue = null) => {
940
- for (const ne of ae) {
939
+ const U = (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 = U(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 U(s, p);
951
+ }, [s])(r.key), d = r.fixed || (w == null ? void 0 : w.fixed) || !1, m = G((p) => {
952
952
  if (!s) return 0;
953
- const H = (ae, se, ue = 0) => {
954
- for (const ne of ae) {
953
+ const U = (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 = U(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);
964
+ return U(s, p);
965
965
  }, [s])(r.key), {
966
966
  attributes: $,
967
- listeners: F,
968
- setNodeRef: M,
969
- isDragging: V
970
- } = Tt({
967
+ listeners: W,
968
+ setNodeRef: V,
969
+ isDragging: z
970
+ } = Pt({
971
971
  id: `column-${r.key}`,
972
972
  data: {
973
973
  type: "table-column",
974
974
  columnKey: r.key,
975
- isFixed: c,
976
- parentKey: m == null ? void 0 : m.key,
977
- level: b,
978
- index: i,
979
- isLeaf: o
975
+ isFixed: d,
976
+ parentKey: w == null ? void 0 : w.key,
977
+ level: m,
978
+ index: a,
979
+ isLeaf: i
980
980
  // ✅ Добавляем информацию о типе колонки
981
981
  },
982
- disabled: !u
982
+ disabled: !h
983
983
  }), {
984
- setNodeRef: G,
985
- isOver: U
986
- } = Dt({
984
+ setNodeRef: q,
985
+ isOver: H
986
+ } = Ot({
987
987
  id: `drop-zone-${r.key}`,
988
988
  data: {
989
989
  type: "column-drop-zone",
990
990
  columnKey: r.key,
991
- isFixed: c,
992
- accepts: [c ? "fixed" : "non-fixed"],
993
- isLeaf: o
991
+ isFixed: d,
992
+ accepts: [d ? "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
+ }), C = G((p) => {
998
+ V(p), q(p);
999
+ }, [V, q]), y = me(() => {
1000
+ if (!u || !H) return !1;
1001
+ const p = {
1002
1002
  type: "column-drop-zone",
1003
1003
  columnKey: r.key,
1004
- isFixed: c,
1005
- accepts: [c ? "fixed" : "non-fixed"],
1006
- isLeaf: o
1004
+ isFixed: d,
1005
+ accepts: [d ? "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 t(u, p);
1009
+ }, [u, H, r.key, d, t, i]), f = me(() => z ? "grabbing" : H && u ? y ? "copy" : "not-allowed" : "default", [z, H, u, y]), k = r.fixed && !r.width ? 200 : r.width, O = r.fixed && !r.minWidth ? 200 : r.minWidth;
1010
+ let L = r.fixedLeft ? r.fixedLeft : 0;
1011
+ if (a !== 0)
1012
+ for (let p = 0; p < a; p++) {
1013
+ const U = c[p];
1014
+ U.fixed && !U.hidden && (L += (U.width || U.minWidth || 200) + (U.fixedLeft || 0));
1015
+ }
1016
+ const b = ((p) => {
1017
+ if (p.groupColor)
1018
+ return p.groupColor;
1019
1019
  if (s) {
1020
- const H = (se, ue) => {
1020
+ const U = (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 = U(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 = U(s, p.key);
1030
+ return oe == null ? void 0 : oe.groupColor;
1031
1031
  }
1032
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(
1033
+ let X = "currentColor", Q = "currentColor";
1034
+ return D.sort_field === r.key && (D.sort_order === "ASC" && (X = "#5329FF"), D.sort_order === "DESC" && (Q = "#5329FF")), /* @__PURE__ */ o.jsx(
1035
1035
  "th",
1036
1036
  {
1037
- ref: x,
1037
+ ref: C,
1038
1038
  "data-column-key": r.key,
1039
1039
  className: `
1040
1040
  radar-table__header-cell
1041
- ${D ? D + "__header-cell" : ""}
1042
- ${I || ""}
1043
- ${V ? "dragging" : ""}
1044
- ${U ? "drag-over" : ""}
1045
- ${v && U ? "valid-drop-zone" : ""}
1046
- ${U && !v ? "invalid-drop-zone" : ""}
1047
- ${o ? "leaf-header" : "group-header"}
1041
+ ${P ? P + "__header-cell" : ""}
1042
+ ${N || ""}
1043
+ ${z ? "dragging" : ""}
1044
+ ${H ? "drag-over" : ""}
1045
+ ${y && H ? "valid-drop-zone" : ""}
1046
+ ${H && !y ? "invalid-drop-zone" : ""}
1047
+ ${i ? "leaf-header" : "group-header"}
1048
1048
  ${r.className || ""}`,
1049
1049
  colSpan: r.colSpan || 1,
1050
1050
  rowSpan: r.rowSpan || 1,
1051
1051
  style: {
1052
- width: E,
1052
+ width: k,
1053
1053
  minWidth: O,
1054
1054
  position: r.fixed ? "sticky" : "static",
1055
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",
1056
+ left: L,
1057
+ borderRight: r.fixed && !((ee = c[a + 1]) != null && ee.fixed) ? "1px solid #E8E8E8" : "none",
1058
1058
  zIndex: r.fixed ? 2 : "auto",
1059
- backgroundColor: P,
1059
+ backgroundColor: b,
1060
1060
  cursor: f,
1061
- ...A,
1061
+ ...M,
1062
1062
  ...r.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
+ h && /* @__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
1094
  title: r.title,
1095
1095
  onClick: () => {
1096
- const { sort_order: g } = R;
1097
- let H = {
1096
+ const { sort_order: p } = D;
1097
+ let U = {
1098
1098
  columnKey: r.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
+ p === "ASC" && (U.direction = "DESC"), p === "DESC" && (U.columnKey = void 0, U.direction = void 0), x(U.columnKey, U.direction);
1102
1102
  },
1103
1103
  style: {
1104
1104
  cursor: r.sortable ? "pointer" : "default",
@@ -1106,37 +1106,37 @@ function Wt({
1106
1106
  },
1107
1107
  children: r.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
+ r.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"),
1115
+ onClick: (p) => x(r.key, "ASC"),
1116
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" }) })
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: X, 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"),
1124
+ onClick: (p) => x(r.key, "DESC"),
1125
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" }) })
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: Q, 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
+ r.sortable && S && i && S(D.sort_field, D.sort_order),
1131
+ r.tooltipText && /* @__PURE__ */ o.jsx(Ft, { text: r.tooltipText, children: r.tooltipIcon }),
1132
+ _ && i && /* @__PURE__ */ o.jsx(
1133
+ $t,
1134
1134
  {
1135
1135
  column: r,
1136
- currWidth: E,
1136
+ currWidth: k,
1137
1137
  currMinWidth: O,
1138
1138
  onResize: j,
1139
- scrollContainerRef: w
1139
+ scrollContainerRef: E
1140
1140
  }
1141
1141
  )
1142
1142
  ]
@@ -1145,221 +1145,221 @@ function Wt({
1145
1145
  }
1146
1146
  );
1147
1147
  }
1148
- function Ue({
1148
+ function He({
1149
1149
  config: r,
1150
- fullConfig: i,
1151
- onSort: C,
1150
+ fullConfig: a,
1151
+ onSort: c,
1152
1152
  onResize: s,
1153
- onColumnReorder: R,
1153
+ onColumnReorder: D,
1154
1154
  // ✅ Сохранен (понадобится для передачи в TableDndProvider)
1155
- sortIcon: p,
1155
+ sortIcon: x,
1156
1156
  resizeable: j,
1157
- draggableColumns: k,
1158
- preset: y,
1159
- headerClassName: N,
1160
- headerStyle: D,
1161
- headerRowClassName: I,
1162
- headerRowStyle: A,
1163
- headerCellClassName: z,
1164
- headerCellStyle: K,
1157
+ draggableColumns: S,
1158
+ preset: _,
1159
+ headerClassName: F,
1160
+ headerStyle: P,
1161
+ headerRowClassName: N,
1162
+ headerRowStyle: M,
1163
+ headerCellClassName: K,
1164
+ headerCellStyle: Y,
1165
1165
  headerCellWrapperClassName: J,
1166
- headerCellWrapperStyle: w,
1167
- stickyHeader: d,
1166
+ headerCellWrapperStyle: E,
1167
+ stickyHeader: u,
1168
1168
  scrollContainerRef: t
1169
1169
  // ✅ Сохранен (для передачи в HeaderCell)
1170
1170
  }) {
1171
- const [o, u] = ce({
1171
+ const [i, h] = 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
+ }), g = G((w, d) => {
1175
+ const { sort_field: T, sort_order: m } = i;
1176
1176
  let $ = {
1177
- sort_field: m,
1178
- sort_order: c
1177
+ sort_field: w,
1178
+ sort_order: d
1179
1179
  };
1180
- T === m && b === c && ($ = {
1180
+ T === w && m === d && ($ = {
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", $), h($), 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" : ""} ${N || ""}`,
1189
+ style: M,
1190
+ children: r.map((w, d) => /* @__PURE__ */ o.jsx(
1191
+ Mt,
1192
1192
  {
1193
- column: m,
1194
- index: c,
1193
+ column: w,
1194
+ index: d,
1195
1195
  config: r,
1196
- fullConfig: i,
1197
- sorting: o,
1198
- onSort: h,
1196
+ fullConfig: a,
1197
+ sorting: i,
1198
+ onSort: g,
1199
1199
  onResize: s,
1200
- sortIcon: p,
1200
+ sortIcon: x,
1201
1201
  resizeable: j,
1202
- draggableColumns: k,
1203
- preset: y,
1204
- headerCellClassName: z,
1205
- headerCellStyle: K,
1202
+ draggableColumns: S,
1203
+ preset: _,
1204
+ headerCellClassName: K,
1205
+ headerCellStyle: Y,
1206
1206
  headerCellWrapperClassName: J,
1207
- headerCellWrapperStyle: w,
1208
- stickyHeader: d,
1207
+ headerCellWrapperStyle: E,
1208
+ stickyHeader: u,
1209
1209
  scrollContainerRef: t
1210
1210
  },
1211
- m.key
1211
+ w.key
1212
1212
  ))
1213
1213
  }
1214
1214
  );
1215
1215
  }
1216
- function At(r) {
1216
+ function Vt(r) {
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,
1221
+ headerStyle: D,
1222
+ stickyHeader: x,
1223
1223
  headerRowClassName: j,
1224
- headerRowStyle: k,
1225
- headerCellClassName: y,
1226
- headerCellStyle: N,
1227
- headerCellWrapperClassName: D,
1228
- headerCellWrapperStyle: I,
1229
- onResize: A,
1230
- onColumnReorder: z
1231
- } = r, K = i.some((t) => t.children && t.children.length > 0), J = me(() => {
1232
- if (!K)
1224
+ headerRowStyle: S,
1225
+ headerCellClassName: _,
1226
+ headerCellStyle: F,
1227
+ headerCellWrapperClassName: P,
1228
+ headerCellWrapperStyle: N,
1229
+ onResize: M,
1230
+ onColumnReorder: K
1231
+ } = r, Y = a.some((t) => t.children && t.children.length > 0), J = 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 t = {}, i = (h, g = 0) => {
1235
+ t[g] || (t[g] = []), h.forEach((w) => {
1236
+ w.hidden || (t[g].push(w), w.children && w.children.length > 0 && i(w.children, g + 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), t;
1240
+ }, [a, Y]), E = G((t, i) => {
1241
+ if (!M) return;
1242
+ const h = (d, T) => {
1243
+ for (const m of d) {
1244
+ if (m.key === T) return m;
1245
+ if (m.children) {
1246
+ const $ = h(m.children, T);
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];
1251
+ }, g = (d) => {
1252
+ if (!d.children || d.children.length === 0)
1253
+ return [d];
1254
1254
  const T = [];
1255
- return c.children.forEach((b) => {
1256
- b.hidden || T.push(...h(b));
1255
+ return d.children.forEach((m) => {
1256
+ m.hidden || T.push(...g(m));
1257
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);
1258
+ }, w = h(a, t);
1259
+ if (w)
1260
+ if (w.children && w.children.length > 0) {
1261
+ const d = g(w);
1262
+ if (d.length > 0) {
1263
+ const T = d.reduce(($, W) => $ + (W.width || W.minWidth || 200), 0), m = i / T;
1264
+ d.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(t, i);
1271
+ }, [a, M]), u = G((t) => {
1272
+ if (!K) return;
1273
+ if (!Y) {
1274
+ K(t);
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 = (v, b, X = [], Q = null) => {
1278
+ for (let ee = 0; ee < v.length; ee++) {
1279
+ const p = v[ee], U = [...X, ee];
1280
+ if (p.key === b)
1281
1281
  return {
1282
- column: g,
1282
+ column: p,
1283
1283
  parent: Q,
1284
- path: H,
1285
- level: q.length
1284
+ path: U,
1285
+ level: X.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 (p.children && p.children.length > 0) {
1288
+ const oe = i(p.children, b, U, p);
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(J).find((v) => {
1296
+ if (v.length !== t.length) return !1;
1297
+ const b = v.map((Q) => Q.key).sort(), X = t.map((Q) => Q.key).sort();
1298
+ return JSON.stringify(b) === JSON.stringify(X);
1299
1299
  }))
1300
1300
  return;
1301
- const h = t._dragInfo;
1302
- if (!(h != null && h.draggedKey) || !(h != null && h.targetKey))
1301
+ const g = t._dragInfo;
1302
+ if (!(g != null && g.draggedKey) || !(g != null && g.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: w, targetKey: d } = g, T = i(a, w), m = i(a, d);
1305
+ if (!T || !m) return;
1306
+ const { column: $, parent: W, path: V, level: z } = T, { column: q, parent: H, path: C, level: y } = m, f = (v, b) => v.fixed || (b == null ? void 0 : b.fixed) || !1, k = f($, W), O = f(q, H);
1307
+ if (z !== y || W !== H || W && H && W.key !== H.key || k !== O)
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 L = JSON.parse(JSON.stringify(a));
1310
+ if (z === 0) {
1311
+ const v = V[0], b = C[0], [X] = L.splice(v, 1);
1312
+ L.splice(b, 0, X);
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 v = V.slice(0, -1);
1315
+ let b = L;
1316
+ for (let p = 0; p < v.length; p++)
1317
+ p === 0 ? b = b[v[p]] : b = b.children[v[p]];
1318
+ if (!b || !b.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 X = V[V.length - 1], Q = C[C.length - 1];
1321
+ if (X < 0 || X >= b.children.length || Q < 0 || Q >= b.children.length)
1322
1322
  return;
1323
- const [ee] = P.children.splice(q, 1);
1324
- P.children.splice(Q, 0, ee);
1323
+ const [ee] = b.children.splice(X, 1);
1324
+ b.children.splice(Q, 0, ee);
1325
1325
  }
1326
- z(Y);
1327
- }, [i, z, J]);
1328
- return K ? /* @__PURE__ */ a.jsx(
1326
+ K(L);
1327
+ }, [a, K, J]);
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: x ? "sticky" : "static",
1334
+ top: x && typeof x == "number" ? x : 0,
1335
+ ...D
1336
1336
  },
1337
1337
  children: Object.keys(J).map((t) => {
1338
- const o = J[parseInt(t)], u = parseInt(t);
1339
- return /* @__PURE__ */ a.jsx(
1340
- Ue,
1338
+ const i = J[parseInt(t)], h = parseInt(t);
1339
+ return /* @__PURE__ */ o.jsx(
1340
+ He,
1341
1341
  {
1342
- config: o,
1343
- fullConfig: i,
1342
+ config: i,
1343
+ fullConfig: a,
1344
1344
  onSort: r.onSort,
1345
- onResize: w,
1346
- onColumnReorder: d,
1345
+ onResize: E,
1346
+ onColumnReorder: u,
1347
1347
  resizeable: r.resizeable,
1348
1348
  draggableColumns: r.draggableColumns,
1349
- preset: C,
1349
+ preset: c,
1350
1350
  headerClassName: s,
1351
- headerStyle: R,
1351
+ headerStyle: D,
1352
1352
  headerRowClassName: j,
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: x ? "sticky" : "static",
1356
+ top: x && typeof x == "number" ? x + (h - 1) * 50 : 0
1357
1357
  },
1358
- headerCellClassName: y,
1359
- headerCellStyle: N,
1360
- headerCellWrapperClassName: D,
1361
- headerCellWrapperStyle: I,
1362
- stickyHeader: p,
1358
+ headerCellClassName: _,
1359
+ headerCellStyle: F,
1360
+ headerCellWrapperClassName: P,
1361
+ headerCellWrapperStyle: N,
1362
+ stickyHeader: x,
1363
1363
  sortIcon: r.sortIcon,
1364
1364
  scrollContainerRef: r.scrollContainerRef
1365
1365
  },
@@ -1367,99 +1367,111 @@ function At(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: x ? "sticky" : "static",
1376
+ top: x && typeof x == "number" ? x : 0,
1377
+ ...D
1378
1378
  },
1379
- children: /* @__PURE__ */ a.jsx(Ue, { ...r, fullConfig: i, onResize: w, onColumnReorder: d, scrollContainerRef: r.scrollContainerRef })
1379
+ children: /* @__PURE__ */ o.jsx(He, { ...r, fullConfig: a, onResize: E, onColumnReorder: u, scrollContainerRef: r.scrollContainerRef })
1380
1380
  }
1381
1381
  );
1382
1382
  }
1383
- const Mt = (r, i) => {
1384
- let C = "0";
1383
+ const zt = (r, a) => {
1384
+ let c = "0";
1385
1385
  if (r != null) {
1386
1386
  const s = parseFloat(r);
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({
1393
+ return c;
1394
+ }, Kt = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
1395
+ function Yt({
1396
1396
  draggableRows: r = !1,
1397
- dataSource: i,
1398
- config: C,
1397
+ dataSource: a,
1398
+ config: c,
1399
1399
  rowKey: s,
1400
- loading: R = !1,
1401
- onRowReorder: p,
1400
+ loading: D = !1,
1401
+ onRowReorder: x,
1402
1402
  preset: j,
1403
- customCellRender: k,
1404
- bodyClassName: y,
1405
- bodyStyle: N,
1406
- bodyRowClassName: D,
1407
- bodyRowStyle: I,
1408
- bodyCellClassName: A,
1409
- bodyCellStyle: z,
1410
- bodyCellWrapperClassName: K,
1403
+ customCellRender: S,
1404
+ bodyClassName: _,
1405
+ bodyStyle: F,
1406
+ bodyRowClassName: P,
1407
+ bodyRowStyle: N,
1408
+ bodyCellClassName: M,
1409
+ bodyCellStyle: K,
1410
+ bodyCellWrapperClassName: Y,
1411
1411
  bodyCellWrapperStyle: J,
1412
- noDataRender: w,
1413
- scrollContainerRef: d
1412
+ noDataRender: E,
1413
+ scrollContainerRef: u
1414
1414
  }) {
1415
- var U;
1416
- const [t, o] = ce(null), [u, h] = ce(null);
1415
+ var H;
1416
+ const [t, i] = ce(null), [h, g] = ce(null);
1417
1417
  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");
1418
+ if (Kt) {
1419
+ const C = () => {
1420
+ const f = document.querySelectorAll(".radar-table__body-row");
1421
+ document.querySelectorAll(".radar-table__header-row").forEach((O) => {
1422
+ const L = O.querySelectorAll(".radar-table__header-cell-wrapper");
1423
+ let v = 0;
1424
+ L.forEach((b) => {
1425
+ b.style.height = "auto", v = Math.max(v, b.offsetHeight);
1426
+ }), L.forEach((b) => {
1427
+ b.style.height = v + "px";
1428
+ });
1429
+ }), f.forEach((O) => {
1430
+ const L = O.querySelectorAll(".radar-table__body-cell-wrapper");
1431
+ let v = 0;
1432
+ L.forEach((b) => {
1433
+ b.style.height = "auto", v = Math.max(v, b.offsetHeight);
1434
+ }), L.forEach((b) => {
1435
+ b.style.height = v + "px";
1424
1436
  });
1425
1437
  });
1426
1438
  };
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);
1439
+ C();
1440
+ const y = setTimeout(C, 100);
1441
+ return () => clearTimeout(y);
1442
+ }
1443
+ }, [a, c]);
1444
+ const d = ((C) => {
1445
+ const y = [], f = (k) => {
1446
+ k.forEach((O) => {
1447
+ O.children && O.children.length > 0 ? f(O.children) : y.push(O);
1436
1448
  });
1437
1449
  };
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 _;
1450
+ return f(C), y;
1451
+ })(c), T = (C) => {
1452
+ if (C.groupColor)
1453
+ return C.groupColor;
1454
+ const y = (k, O) => {
1455
+ for (const L of k)
1456
+ if (L.children) {
1457
+ if (L.children.some((b) => b.key === O))
1458
+ return L;
1459
+ const v = y(L.children, O);
1460
+ if (v) return v;
1449
1461
  }
1450
1462
  return null;
1451
- }, f = v(C, x.key);
1463
+ }, f = y(c, C.key);
1452
1464
  return f == null ? void 0 : f.groupColor;
1453
- }, b = X((x, v) => {
1454
- if (!v) {
1455
- x.preventDefault();
1465
+ }, m = G((C, y) => {
1466
+ if (!y) {
1467
+ C.preventDefault();
1456
1468
  return;
1457
1469
  }
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);
1470
+ i(y), C.dataTransfer.effectAllowed = "move", C.dataTransfer.setData("text/plain", y), document.body.style.cursor = "grabbing";
1471
+ const f = a.find((k) => (s ? s(k) : JSON.stringify(k)) === y);
1460
1472
  if (f) {
1461
- const E = document.createElement("div");
1462
- E.style.cssText = `
1473
+ const k = document.createElement("div");
1474
+ k.style.cssText = `
1463
1475
  background: white;
1464
1476
  border-radius: 6px;
1465
1477
  padding: 8px 12px;
@@ -1473,119 +1485,119 @@ function zt({
1473
1485
  overflow: hidden;
1474
1486
  text-overflow: ellipsis;
1475
1487
  `;
1476
- const O = c[0];
1488
+ const O = d[0];
1477
1489
  if (O) {
1478
- const _ = f[O.key];
1479
- E.textContent = (_ == null ? void 0 : _.toString()) || "Строка";
1490
+ const v = f[O.key];
1491
+ k.textContent = (v == null ? void 0 : v.toString()) || "Строка";
1480
1492
  } 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);
1493
+ k.textContent = "Строка";
1494
+ document.body.appendChild(k), k.style.position = "absolute", k.style.top = "-1000px", k.style.left = "-1000px", C.dataTransfer.setDragImage(k, 10, 10);
1495
+ const L = setTimeout(() => {
1496
+ document.body.contains(k) && document.body.removeChild(k);
1485
1497
  }, 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)
1498
+ return () => clearTimeout(L);
1499
+ }
1500
+ }, []), $ = G((C) => {
1501
+ C.preventDefault(), C.dataTransfer.dropEffect = "move";
1502
+ }, []), W = G((C, y) => {
1503
+ C.preventDefault(), t !== y && g(y);
1504
+ }, [t]), V = G((C) => {
1505
+ C.preventDefault(), g(null);
1506
+ }, []), z = G(() => {
1507
+ i(null), g(null), document.body.style.cursor = "";
1508
+ }, []), q = G((C, y) => {
1509
+ if (C.preventDefault(), !t || t === y)
1498
1510
  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)
1511
+ const f = a.findIndex((v) => (s ? s(v) : JSON.stringify(v)) === t), k = a.findIndex((v) => (s ? s(v) : JSON.stringify(v)) === y);
1512
+ if (f === -1 || k === -1)
1501
1513
  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(
1514
+ const O = [...a], [L] = O.splice(f, 1);
1515
+ O.splice(k, 0, L), x && (x == null || x(O)), i(null), g(null);
1516
+ }, [t, a, s, x]);
1517
+ if (a.length === 0) {
1518
+ let C;
1519
+ return u && (C = ((H = u.current) == null ? void 0 : H.clientWidth) + "px"), /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${j ? j + "__body" : ""} ${_}`, style: F, children: /* @__PURE__ */ o.jsx(
1508
1520
  "tr",
1509
1521
  {
1510
- className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${D}`,
1511
- style: I,
1512
- children: /* @__PURE__ */ a.jsxs(
1522
+ className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${P}`,
1523
+ style: N,
1524
+ children: /* @__PURE__ */ o.jsxs(
1513
1525
  "td",
1514
1526
  {
1515
- className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${A}`,
1516
- colSpan: c.length,
1527
+ className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${M}`,
1528
+ colSpan: d.length,
1517
1529
  style: {
1518
- ...z
1530
+ ...K
1519
1531
  },
1520
1532
  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: "Нет данных" })
1533
+ E && E(),
1534
+ !E && /* @__PURE__ */ o.jsx("div", { className: `${C ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: C || "" }, children: "Нет данных" })
1523
1535
  ]
1524
1536
  }
1525
1537
  )
1526
1538
  }
1527
1539
  ) });
1528
1540
  }
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);
1541
+ return /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${j ? j + "__body" : ""} ${_}`, style: F, children: a.map((C) => {
1542
+ const y = s ? s(C) : JSON.stringify(C);
1531
1543
  return (
1532
1544
  // Table row
1533
- /* @__PURE__ */ a.jsx(
1545
+ /* @__PURE__ */ o.jsx(
1534
1546
  "tr",
1535
1547
  {
1536
- className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${D} ${t === v ? "dragging" : ""} ${u === v ? "drag-over" : ""}`,
1537
- style: I,
1548
+ className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${P} ${t === y ? "dragging" : ""} ${h === y ? "drag-over" : ""}`,
1549
+ style: N,
1538
1550
  draggable: r,
1539
- onDragStart: (f) => b(f, v),
1551
+ onDragStart: (f) => m(f, y),
1540
1552
  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) => {
1553
+ onDragEnter: (f) => W(f, y),
1554
+ onDragLeave: V,
1555
+ onDrop: (f) => q(f, y),
1556
+ onDragEnd: z,
1557
+ children: d.map((f, k) => {
1546
1558
  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(
1559
+ const O = f.fixed && !f.width ? 200 : f.width, L = f.fixed && !f.minWidth ? 200 : f.minWidth;
1560
+ let v = f.fixedLeft ? f.fixedLeft : 0, b = !1;
1561
+ if (S && S.idx.includes(f.dataIndex) && (b = !0), S && S.idx.length === 0 && (b = !0), f.fixed && k !== 0)
1562
+ for (let p = 0; p < k; p++)
1563
+ d[p].fixed && !d[p].hidden && (v += (d[p].width || d[p].minWidth || 200) + (d[p].fixedLeft || 0));
1564
+ const X = T(f);
1565
+ return !f.hidden && /* @__PURE__ */ o.jsxs(
1554
1566
  "td",
1555
1567
  {
1556
- className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${A}`,
1568
+ className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${M}`,
1557
1569
  style: {
1558
1570
  width: O,
1559
- minWidth: Y,
1571
+ minWidth: L,
1560
1572
  position: f.fixed ? "sticky" : "static",
1561
- left: _,
1562
- borderRight: f.fixed && !((Q = c[E + 1]) != null && Q.fixed) ? "1px solid #E8E8E8" : "none",
1563
- ...z
1573
+ left: v,
1574
+ borderRight: f.fixed && !((Q = d[k + 1]) != null && Q.fixed) ? "1px solid #E8E8E8" : "none",
1575
+ ...K
1564
1576
  },
1565
1577
  children: [
1566
- !P && /* @__PURE__ */ a.jsxs(
1578
+ !b && /* @__PURE__ */ o.jsxs(
1567
1579
  "div",
1568
1580
  {
1569
- className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${K}`,
1581
+ className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${Y}`,
1570
1582
  style: {
1571
- backgroundColor: q || "white",
1583
+ backgroundColor: X || "white",
1572
1584
  ...J
1573
1585
  },
1574
1586
  children: [
1575
- f.units && Mt(((ee = x[f.key]) == null ? void 0 : ee.toString()) || "", f.units),
1576
- !f.units && x[f.key]
1587
+ f.units && zt(((ee = C[f.key]) == null ? void 0 : ee.toString()) || "", f.units),
1588
+ !f.units && C[f.key]
1577
1589
  ]
1578
1590
  }
1579
1591
  ),
1580
- P && /* @__PURE__ */ a.jsx(
1592
+ b && /* @__PURE__ */ o.jsx(
1581
1593
  "div",
1582
1594
  {
1583
- className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${K}`,
1595
+ className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${Y}`,
1584
1596
  style: {
1585
1597
  ...J,
1586
- backgroundColor: q || "white"
1598
+ backgroundColor: X || "white"
1587
1599
  },
1588
- children: k == null ? void 0 : k.renderer(x[f.dataIndex], x, E, f.dataIndex)
1600
+ children: S == null ? void 0 : S.renderer(C[f.dataIndex], C, k, f.dataIndex)
1589
1601
  }
1590
1602
  )
1591
1603
  ]
@@ -1594,39 +1606,39 @@ function zt({
1594
1606
  );
1595
1607
  })
1596
1608
  },
1597
- v
1609
+ y
1598
1610
  )
1599
1611
  );
1600
1612
  }) });
1601
1613
  }
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);
1614
+ const Ue = ({ config: r }) => {
1615
+ const [{ current: a, pageSize: c, total: s, onChange: D, showQuickJumper: x, buttonsCount: j = 4, hideOnSinglePage: S = !1 }, _] = ce(r);
1604
1616
  Ce(() => {
1605
- y(r);
1617
+ _(r);
1606
1618
  }, [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) => {
1619
+ const F = Math.ceil(a / j), P = (F - 1) * j + 1, N = F * j, M = (t) => {
1620
+ const i = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
1621
+ !/^[0-9]$/.test(t.key) && !i.includes(t.key) && t.preventDefault();
1622
+ }, K = (t) => {
1611
1623
  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 = "");
1624
+ const i = parseInt(t.currentTarget.value);
1625
+ i > 0 && i <= s && (_({ ...r, current: i }), D == null || D(i, c), t.currentTarget.value = "");
1614
1626
  }
1615
- }, K = (t) => {
1616
- const u = t.target.value.replace(/[^0-9]/g, "");
1617
- t.target.value = u;
1627
+ }, Y = (t) => {
1628
+ const h = t.target.value.replace(/[^0-9]/g, "");
1629
+ t.target.value = h;
1618
1630
  }, J = (t) => {
1619
1631
  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);
1632
+ const h = t.clipboardData.getData("text").replace(/[^0-9]/g, ""), g = t.target, w = g.selectionStart || 0, d = g.selectionEnd || 0, T = g.value.substring(0, w) + h + g.value.substring(d);
1633
+ g.value = T, g.setSelectionRange(w + h.length, w + h.length);
1634
+ }, E = (t) => {
1635
+ const i = t.currentTarget.id;
1636
+ i === "pagination_left_button" && a > 1 && (_({ ...r, current: a - 1 }), D == null || D(a - 1, c)), i === "pagination_right_button" && a < s && (_({ ...r, current: a + 1 }), D == null || D(a + 1, c));
1637
+ }, u = (t) => {
1638
+ _({ ...r, current: t }), D == null || D(t, c);
1627
1639
  };
1628
- return k && s <= 1 ? null : /* @__PURE__ */ a.jsxs("div", { className: "radar-table__pagination", children: [
1629
- /* @__PURE__ */ a.jsxs(
1640
+ return S && s <= 1 ? null : /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination", children: [
1641
+ /* @__PURE__ */ o.jsxs(
1630
1642
  "div",
1631
1643
  {
1632
1644
  className: "radar-table__pagination-main",
@@ -1634,26 +1646,26 @@ const He = ({ config: r }) => {
1634
1646
  gridTemplateColumns: `repeat(${j + 2}, 32px)`
1635
1647
  },
1636
1648
  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);
1649
+ /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: E, 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" }) }) }),
1650
+ Array.from({ length: s }, (t, i) => i + 1).map((t) => {
1651
+ const i = a === t;
1652
+ if (t >= P && t <= N)
1653
+ return i ? /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: t }, t) : /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button", onClick: () => u(t), children: t }, t);
1642
1654
  }),
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" }) }) })
1655
+ /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: E, 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
1656
  ]
1645
1657
  }
1646
1658
  ),
1647
- p && /* @__PURE__ */ a.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
1659
+ x && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
1648
1660
  "Перейти на ",
1649
- /* @__PURE__ */ a.jsx(
1661
+ /* @__PURE__ */ o.jsx(
1650
1662
  "input",
1651
1663
  {
1652
1664
  className: "radar-table__pagination-input",
1653
- onKeyDown: A,
1654
- onChange: K,
1665
+ onKeyDown: M,
1666
+ onChange: Y,
1655
1667
  onPaste: J,
1656
- onKeyUp: (t) => z(t)
1668
+ onKeyUp: (t) => K(t)
1657
1669
  }
1658
1670
  ),
1659
1671
  " стр. из ",
@@ -1661,265 +1673,378 @@ const He = ({ config: r }) => {
1661
1673
  ] })
1662
1674
  ] });
1663
1675
  };
1664
- function Jt({
1676
+ function qt({
1665
1677
  dataSource: r,
1666
- preset: i,
1667
- config: C,
1678
+ preset: a,
1679
+ config: c,
1668
1680
  rowKey: s,
1669
- loading: R = !1,
1670
- pagination: p,
1681
+ loading: D = !1,
1682
+ pagination: x,
1671
1683
  stickyHeader: j = !1,
1672
- resizeable: k = !1,
1673
- draggableRows: y = !1,
1674
- draggableColumns: N = !1,
1675
- scrollContainerRef: D,
1676
- onResize: I,
1677
- onSort: A,
1678
- onRowReorder: z,
1679
- onColumnReorder: K,
1684
+ resizeable: S = !1,
1685
+ draggableRows: _ = !1,
1686
+ draggableColumns: F = !1,
1687
+ scrollContainerRef: P,
1688
+ onResize: N,
1689
+ onSort: M,
1690
+ onRowReorder: K,
1691
+ onColumnReorder: Y,
1680
1692
  customCellRender: J,
1681
- noDataRender: w,
1682
- sortIcon: d,
1693
+ noDataRender: E,
1694
+ sortIcon: u,
1683
1695
  className: t = "",
1684
- style: o,
1685
- headerClassName: u = "",
1686
- headerStyle: h,
1687
- headerCellClassName: m = "",
1688
- headerCellStyle: c,
1696
+ style: i,
1697
+ headerClassName: h = "",
1698
+ headerStyle: g,
1699
+ headerCellClassName: w = "",
1700
+ headerCellStyle: d,
1689
1701
  headerRowClassName: T = "",
1690
- headerRowStyle: b,
1702
+ headerRowStyle: m,
1691
1703
  headerCellWrapperClassName: $ = "",
1692
- headerCellWrapperStyle: F,
1693
- bodyClassName: M = "",
1694
- bodyStyle: V,
1695
- bodyRowClassName: G = "",
1696
- bodyRowStyle: U,
1697
- bodyCellClassName: x = "",
1698
- bodyCellStyle: v,
1704
+ headerCellWrapperStyle: W,
1705
+ bodyClassName: V = "",
1706
+ bodyStyle: z,
1707
+ bodyRowClassName: q = "",
1708
+ bodyRowStyle: H,
1709
+ bodyCellClassName: C = "",
1710
+ bodyCellStyle: y,
1699
1711
  bodyCellWrapperClassName: f = "",
1700
- bodyCellWrapperStyle: E,
1712
+ bodyCellWrapperStyle: k,
1701
1713
  headerGroupRowClassName: O,
1702
- headerGroupRowStyle: Y,
1703
- headerGroupCellClassName: _,
1704
- headerGroupCellStyle: P,
1705
- headerGroupCellWrapperClassName: q,
1714
+ headerGroupRowStyle: L,
1715
+ headerGroupCellClassName: v,
1716
+ headerGroupCellStyle: b,
1717
+ headerGroupCellWrapperClassName: X,
1706
1718
  headerGroupCellWrapperStyle: Q,
1707
1719
  paginationContainerClassName: ee = "",
1708
- paginationContainerStyle: g
1720
+ paginationContainerStyle: p
1709
1721
  }) {
1710
- return N ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1711
- /* @__PURE__ */ a.jsx(
1712
- Ft,
1722
+ return F ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1723
+ /* @__PURE__ */ o.jsx(
1724
+ At,
1713
1725
  {
1714
- fullConfig: C,
1715
- onColumnReorder: K,
1716
- children: /* @__PURE__ */ a.jsx(
1726
+ fullConfig: c,
1727
+ onColumnReorder: Y,
1728
+ children: /* @__PURE__ */ o.jsx(
1717
1729
  Ze,
1718
1730
  {
1719
1731
  dataSource: r,
1720
- preset: i,
1721
- config: C,
1732
+ preset: a,
1733
+ config: c,
1722
1734
  rowKey: s,
1723
- loading: R,
1724
- pagination: p,
1735
+ loading: D,
1736
+ pagination: x,
1725
1737
  stickyHeader: j,
1726
- resizeable: k,
1727
- draggableRows: y,
1728
- draggableColumns: N,
1729
- scrollContainerRef: D,
1730
- onResize: I,
1731
- onSort: A,
1732
- onRowReorder: z,
1733
- onColumnReorder: K,
1738
+ resizeable: S,
1739
+ draggableRows: _,
1740
+ draggableColumns: F,
1741
+ scrollContainerRef: P,
1742
+ onResize: N,
1743
+ onSort: M,
1744
+ onRowReorder: K,
1745
+ onColumnReorder: Y,
1734
1746
  customCellRender: J,
1735
- sortIcon: d,
1747
+ sortIcon: u,
1736
1748
  className: t,
1737
- style: o,
1738
- headerClassName: u,
1739
- headerStyle: h,
1740
- headerCellClassName: m,
1741
- headerCellStyle: c,
1749
+ style: i,
1750
+ headerClassName: h,
1751
+ headerStyle: g,
1752
+ headerCellClassName: w,
1753
+ headerCellStyle: d,
1742
1754
  headerRowClassName: T,
1743
- headerRowStyle: b,
1755
+ headerRowStyle: m,
1744
1756
  headerCellWrapperClassName: $,
1745
- headerCellWrapperStyle: F,
1746
- bodyClassName: M,
1747
- bodyStyle: V,
1748
- bodyRowClassName: G,
1749
- bodyRowStyle: U,
1750
- bodyCellClassName: x,
1751
- bodyCellStyle: v,
1757
+ headerCellWrapperStyle: W,
1758
+ bodyClassName: V,
1759
+ bodyStyle: z,
1760
+ bodyRowClassName: q,
1761
+ bodyRowStyle: H,
1762
+ bodyCellClassName: C,
1763
+ bodyCellStyle: y,
1752
1764
  bodyCellWrapperClassName: f,
1753
- bodyCellWrapperStyle: E,
1765
+ bodyCellWrapperStyle: k,
1754
1766
  headerGroupRowClassName: O,
1755
- headerGroupRowStyle: Y,
1756
- headerGroupCellClassName: _,
1757
- headerGroupCellStyle: P,
1758
- headerGroupCellWrapperClassName: q,
1767
+ headerGroupRowStyle: L,
1768
+ headerGroupCellClassName: v,
1769
+ headerGroupCellStyle: b,
1770
+ headerGroupCellWrapperClassName: X,
1759
1771
  headerGroupCellWrapperStyle: Q,
1760
1772
  paginationContainerClassName: ee,
1761
- paginationContainerStyle: g,
1762
- noDataRender: w
1773
+ paginationContainerStyle: p,
1774
+ noDataRender: E
1763
1775
  }
1764
1776
  )
1765
1777
  }
1766
1778
  ),
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(
1779
+ /* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${ee}`, style: p, children: x && /* @__PURE__ */ o.jsx(Ue, { config: x }) })
1780
+ ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1781
+ /* @__PURE__ */ o.jsx(
1770
1782
  Ze,
1771
1783
  {
1772
1784
  dataSource: r,
1773
- preset: i,
1774
- config: C,
1785
+ preset: a,
1786
+ config: c,
1775
1787
  rowKey: s,
1776
- loading: R,
1777
- pagination: p,
1788
+ loading: D,
1789
+ pagination: x,
1778
1790
  stickyHeader: j,
1779
- resizeable: k,
1780
- draggableRows: y,
1781
- draggableColumns: N,
1782
- scrollContainerRef: D,
1783
- onResize: I,
1784
- onSort: A,
1785
- onRowReorder: z,
1786
- onColumnReorder: K,
1791
+ resizeable: S,
1792
+ draggableRows: _,
1793
+ draggableColumns: F,
1794
+ scrollContainerRef: P,
1795
+ onResize: N,
1796
+ onSort: M,
1797
+ onRowReorder: K,
1798
+ onColumnReorder: Y,
1787
1799
  customCellRender: J,
1788
- sortIcon: d,
1800
+ sortIcon: u,
1789
1801
  className: t,
1790
- style: o,
1791
- headerClassName: u,
1792
- headerStyle: h,
1793
- headerCellClassName: m,
1794
- headerCellStyle: c,
1802
+ style: i,
1803
+ headerClassName: h,
1804
+ headerStyle: g,
1805
+ headerCellClassName: w,
1806
+ headerCellStyle: d,
1795
1807
  headerRowClassName: T,
1796
- headerRowStyle: b,
1808
+ headerRowStyle: m,
1797
1809
  headerCellWrapperClassName: $,
1798
- headerCellWrapperStyle: F,
1799
- bodyClassName: M,
1800
- bodyStyle: V,
1801
- bodyRowClassName: G,
1802
- bodyRowStyle: U,
1803
- bodyCellClassName: x,
1804
- bodyCellStyle: v,
1810
+ headerCellWrapperStyle: W,
1811
+ bodyClassName: V,
1812
+ bodyStyle: z,
1813
+ bodyRowClassName: q,
1814
+ bodyRowStyle: H,
1815
+ bodyCellClassName: C,
1816
+ bodyCellStyle: y,
1805
1817
  bodyCellWrapperClassName: f,
1806
- bodyCellWrapperStyle: E,
1818
+ bodyCellWrapperStyle: k,
1807
1819
  headerGroupRowClassName: O,
1808
- headerGroupRowStyle: Y,
1809
- headerGroupCellClassName: _,
1810
- headerGroupCellStyle: P,
1811
- headerGroupCellWrapperClassName: q,
1820
+ headerGroupRowStyle: L,
1821
+ headerGroupCellClassName: v,
1822
+ headerGroupCellStyle: b,
1823
+ headerGroupCellWrapperClassName: X,
1812
1824
  headerGroupCellWrapperStyle: Q,
1813
1825
  paginationContainerClassName: ee,
1814
- paginationContainerStyle: g,
1815
- noDataRender: w
1826
+ paginationContainerStyle: p,
1827
+ noDataRender: E
1816
1828
  }
1817
1829
  ),
1818
- /* @__PURE__ */ a.jsx("div", { className: `radar-table-pagination-container ${ee}`, style: g, children: p && /* @__PURE__ */ a.jsx(He, { config: p }) })
1830
+ /* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${ee}`, style: p, children: x && /* @__PURE__ */ o.jsx(Ue, { config: x }) })
1819
1831
  ] });
1820
1832
  }
1821
1833
  function Ze(r) {
1822
1834
  const {
1823
- dataSource: i,
1824
- preset: C,
1835
+ dataSource: a,
1836
+ preset: c,
1825
1837
  config: s,
1826
- rowKey: R,
1827
- loading: p,
1838
+ rowKey: D,
1839
+ loading: x,
1828
1840
  stickyHeader: j,
1829
- resizeable: k,
1830
- draggableRows: y,
1831
- draggableColumns: N,
1832
- scrollContainerRef: D,
1833
- onResize: I,
1834
- onSort: A,
1835
- onRowReorder: z,
1836
- onColumnReorder: K,
1841
+ resizeable: S,
1842
+ draggableRows: _,
1843
+ draggableColumns: F,
1844
+ scrollContainerRef: P,
1845
+ onResize: N,
1846
+ onSort: M,
1847
+ onRowReorder: K,
1848
+ onColumnReorder: Y,
1837
1849
  customCellRender: J,
1838
- sortIcon: w,
1839
- className: d,
1850
+ sortIcon: E,
1851
+ className: u,
1840
1852
  style: t,
1841
- headerClassName: o,
1842
- headerStyle: u,
1843
- headerCellClassName: h,
1844
- headerCellStyle: m,
1845
- headerRowClassName: c,
1853
+ headerClassName: i,
1854
+ headerStyle: h,
1855
+ headerCellClassName: g,
1856
+ headerCellStyle: w,
1857
+ headerRowClassName: d,
1846
1858
  headerRowStyle: T,
1847
- headerCellWrapperClassName: b,
1859
+ headerCellWrapperClassName: m,
1848
1860
  headerCellWrapperStyle: $,
1849
- bodyClassName: F,
1850
- bodyStyle: M,
1851
- bodyRowClassName: V,
1852
- bodyRowStyle: G,
1853
- bodyCellClassName: U,
1854
- bodyCellStyle: x,
1855
- bodyCellWrapperClassName: v,
1861
+ bodyClassName: W,
1862
+ bodyStyle: V,
1863
+ bodyRowClassName: z,
1864
+ bodyRowStyle: q,
1865
+ bodyCellClassName: H,
1866
+ bodyCellStyle: C,
1867
+ bodyCellWrapperClassName: y,
1856
1868
  bodyCellWrapperStyle: f,
1857
- headerGroupRowClassName: E,
1869
+ headerGroupRowClassName: k,
1858
1870
  headerGroupRowStyle: O,
1859
- headerGroupCellClassName: Y,
1860
- headerGroupCellStyle: _,
1861
- headerGroupCellWrapperClassName: P,
1862
- headerGroupCellWrapperStyle: q,
1871
+ headerGroupCellClassName: L,
1872
+ headerGroupCellStyle: v,
1873
+ headerGroupCellWrapperClassName: b,
1874
+ headerGroupCellWrapperStyle: X,
1863
1875
  noDataRender: Q
1864
1876
  } = r;
1865
- return /* @__PURE__ */ a.jsxs("table", { className: `radar-table ${C || ""} ${d}`, style: t, children: [
1866
- /* @__PURE__ */ a.jsx(
1867
- At,
1877
+ return /* @__PURE__ */ o.jsxs("table", { className: `radar-table ${c || ""} ${u}`, style: t, 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,
1873
- onResize: I,
1874
- sortIcon: w,
1875
- preset: C,
1876
- headerClassName: o,
1877
- headerStyle: u,
1878
- headerRowClassName: c,
1883
+ onSort: M,
1884
+ resizeable: S,
1885
+ onResize: N,
1886
+ sortIcon: E,
1887
+ preset: c,
1888
+ headerClassName: i,
1889
+ headerStyle: h,
1890
+ headerRowClassName: d,
1879
1891
  headerRowStyle: T,
1880
- headerCellClassName: h,
1881
- headerCellStyle: m,
1882
- headerCellWrapperClassName: b,
1892
+ headerCellClassName: g,
1893
+ headerCellStyle: w,
1894
+ headerCellWrapperClassName: m,
1883
1895
  headerCellWrapperStyle: $,
1884
- headerGroupRowClassName: E,
1896
+ headerGroupRowClassName: k,
1885
1897
  headerGroupRowStyle: O,
1886
- headerGroupCellClassName: Y,
1887
- headerGroupCellStyle: _,
1888
- headerGroupCellWrapperClassName: P,
1889
- headerGroupCellWrapperStyle: q,
1898
+ headerGroupCellClassName: L,
1899
+ headerGroupCellStyle: v,
1900
+ headerGroupCellWrapperClassName: b,
1901
+ headerGroupCellWrapperStyle: X,
1890
1902
  stickyHeader: j,
1891
- scrollContainerRef: D,
1892
- onColumnReorder: 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,
1914
+ rowKey: D,
1915
+ loading: x,
1916
+ preset: c,
1905
1917
  customCellRender: J,
1906
- bodyClassName: F,
1907
- bodyStyle: M,
1908
- bodyRowClassName: V,
1909
- bodyRowStyle: G,
1910
- bodyCellClassName: U,
1911
- bodyCellStyle: x,
1912
- bodyCellWrapperClassName: v,
1918
+ bodyClassName: W,
1919
+ bodyStyle: V,
1920
+ bodyRowClassName: z,
1921
+ bodyRowStyle: q,
1922
+ bodyCellClassName: H,
1923
+ bodyCellStyle: C,
1924
+ bodyCellWrapperClassName: y,
1913
1925
  bodyCellWrapperStyle: f,
1914
1926
  noDataRender: Q,
1915
- scrollContainerRef: D
1927
+ scrollContainerRef: P
1916
1928
  }
1917
1929
  )
1918
1930
  ] });
1919
1931
  }
1932
+ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
1933
+ if (a === "h1")
1934
+ return /* @__PURE__ */ o.jsx(
1935
+ "h1",
1936
+ {
1937
+ className: "radar-title radar-title_h1",
1938
+ ...c,
1939
+ children: r
1940
+ }
1941
+ );
1942
+ if (a === "h2")
1943
+ return /* @__PURE__ */ o.jsx(
1944
+ "h2",
1945
+ {
1946
+ className: "radar-title radar-title_h1",
1947
+ ...c,
1948
+ children: r
1949
+ }
1950
+ );
1951
+ if (a === "h3")
1952
+ return /* @__PURE__ */ o.jsx(
1953
+ "h3",
1954
+ {
1955
+ className: "radar-title radar-title_h1",
1956
+ ...c,
1957
+ children: r
1958
+ }
1959
+ );
1960
+ if (a === "h4")
1961
+ return /* @__PURE__ */ o.jsx(
1962
+ "h4",
1963
+ {
1964
+ className: "radar-title radar-title_h1",
1965
+ ...c,
1966
+ children: r
1967
+ }
1968
+ );
1969
+ if (a === "h5")
1970
+ return /* @__PURE__ */ o.jsx(
1971
+ "h5",
1972
+ {
1973
+ className: "radar-title radar-title_h1",
1974
+ ...c,
1975
+ children: r
1976
+ }
1977
+ );
1978
+ if (a === "h6")
1979
+ return /* @__PURE__ */ o.jsx(
1980
+ "h6",
1981
+ {
1982
+ className: "radar-title radar-title_h1",
1983
+ ...c,
1984
+ children: r
1985
+ }
1986
+ );
1987
+ }, Bt = ({ children: r, tagType: a = "h2", ...c }) => {
1988
+ if (a === "h1")
1989
+ return /* @__PURE__ */ o.jsx(
1990
+ "h1",
1991
+ {
1992
+ className: "radar-title radar-title_h2",
1993
+ ...c,
1994
+ children: r
1995
+ }
1996
+ );
1997
+ if (a === "h2")
1998
+ return /* @__PURE__ */ o.jsx(
1999
+ "h2",
2000
+ {
2001
+ className: "radar-title radar-title_h2",
2002
+ ...c,
2003
+ children: r
2004
+ }
2005
+ );
2006
+ if (a === "h3")
2007
+ return /* @__PURE__ */ o.jsx(
2008
+ "h3",
2009
+ {
2010
+ className: "radar-title radar-title_h2",
2011
+ ...c,
2012
+ children: r
2013
+ }
2014
+ );
2015
+ if (a === "h4")
2016
+ return /* @__PURE__ */ o.jsx(
2017
+ "h4",
2018
+ {
2019
+ className: "radar-title radar-title_h2",
2020
+ ...c,
2021
+ children: r
2022
+ }
2023
+ );
2024
+ if (a === "h5")
2025
+ return /* @__PURE__ */ o.jsx(
2026
+ "h5",
2027
+ {
2028
+ className: "radar-title radar-title_h2",
2029
+ ...c,
2030
+ children: r
2031
+ }
2032
+ );
2033
+ if (a === "h6")
2034
+ return /* @__PURE__ */ o.jsx(
2035
+ "h6",
2036
+ {
2037
+ className: "radar-title radar-title_h2",
2038
+ ...c,
2039
+ children: r
2040
+ }
2041
+ );
2042
+ }, Gt = Object.assign(qe, { H1: qe, H2: Bt }), Ge = ({ children: r, fontStyle: a = "medium", ...c }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_m radar-text_${a}`, ...c, children: r }), Jt = ({ children: r, fontStyle: a = "medium", ...c }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_s radar-text_${a}`, ...c, children: r }), Xt = Object.assign(Ge, { M: Ge, S: Jt });
1920
2043
  export {
1921
- Wt as HeaderCell,
1922
- He as Pagination,
1923
- Jt as Table,
1924
- $t as Tooltip
2044
+ Mt as HeaderCell,
2045
+ Ue as Pagination,
2046
+ Xt as RadarText,
2047
+ Gt as RadarTitle,
2048
+ qt as Table,
2049
+ Ft as Tooltip
1925
2050
  };