radar-ui 1.1.32 → 1.1.34

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,15 @@
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{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}}.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,.radar-table__header-cell.drag-over.invalid-drop-zone{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}.radar-table__header-cell.group-header{cursor:grab}.radar-table__header-cell.group-header.dragging{cursor:grabbing}.radar-table__body-row[draggable=true]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.radar-table__body-row.dragging{opacity:.25;cursor:grabbing;border-radius:20px}.radar-table__body-row.drag-over{border-top:2px solid #5329FF!important}.radar-table__body-row[draggable=true]{cursor:grab}.radar-table__body-row[draggable=true]:active{cursor:grabbing}.radar-table__body-cell{scroll-snap-align:start;box-sizing:border-box;vertical-align:top}.radar-table-default__body-cell,.radar-table-simple__body-cell{height:1px}.radar-table__body-cell-wrapper{width:100%;height:100%;font-family:inherit;background-color:#fff;display:flex;align-items:center}.radar-table__expander-btn{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:16px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:transform .15s ease}.radar-table__expander-btn:focus{outline:none}.radar-table-default__body-cell-wrapper{padding:7px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:14px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-simple__body-cell-wrapper{padding:18px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:16px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-default__body-row:last-of-type .radar-table-default__body-cell-wrapper{border-bottom:none}.radar-table-simple__body-row:last-of-type .radar-table-simple__body-cell-wrapper{border-bottom:none}.radar-table__body-noData{padding:18px 12px;display:flex;align-items:center;font-size:16px;line-height:1.2;width:100%}.radar-table__body-noData_width{padding:18px 12px;display:flex;justify-content:center;align-items:center;font-size:16px;line-height:1.2}.radar-table__body-cell-wrapper--stretch,.radar-table-default__body-cell-wrapper--stretch,.radar-table-simple__body-cell-wrapper--stretch{align-items:stretch!important}.radar-table__body-cell-wrapper .salary-cell,.radar-table-default__body-cell-wrapper .salary-cell,.radar-table-simple__body-cell-wrapper .salary-cell{width:100%;height:auto;min-height:auto}.radar-table__custom-content-wrapper{width:100%;height:auto;min-height:100%}.radar-table__footer{pointer-events:auto}.radar-table__footer.resizing{pointer-events:none}.radar-table-default__footer,.radar-table-simple__footer{background-color:#fff}.radar-table-default__footer-cell,.radar-table-simple__footer-cell{border-top:1px solid #E8E8E8}.radar-table__footer-cell-wrapper{width:100%;font-family:inherit}.radar-table-default__footer-cell-wrapper,.radar-table-simple__footer-cell-wrapper{padding:12px 0;display:flex;gap:8px}.radar-table__resize-button{opacity:0;position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;width:20px;padding-right:6px;background-color:transparent;cursor:col-resize;border:none;display:flex;justify-content:flex-end;align-items:center;transition:all .2s cubic-bezier(.4,0,.2,1)}.radar-table__resize-button:hover{cursor:col-resize!important}.radar-table__resize-button div{background-color:#8c8c8c;width:2px;height:50%;opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);border-radius:1px}.radar-table__resize-button:hover div{opacity:.5}.radar-table__resize-button:active div{background-color:#5329ff80;opacity:0}.radar-table__resize-line{position:fixed;width:2px;background-color:#5329ff80;z-index:9999;pointer-events:none;opacity:.5;will-change:transform;transform:translateZ(0);backface-visibility:hidden}.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";
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}}.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,.radar-table__header-cell.drag-over.invalid-drop-zone{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}.radar-table__header-cell.group-header{cursor:grab}.radar-table__header-cell.group-header.dragging{cursor:grabbing}.radar-table__body-row[draggable=true]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.radar-table__body-row.dragging{opacity:.25;cursor:grabbing;border-radius:20px}.radar-table__body-row.drag-over{border-top:2px solid #5329FF!important}.radar-table__body-row[draggable=true]{cursor:grab}.radar-table__body-row[draggable=true]:active{cursor:grabbing}.radar-table__body-cell{scroll-snap-align:start;box-sizing:border-box;vertical-align:top}.radar-table-default__body-cell,.radar-table-simple__body-cell{height:1px}.radar-table__body-cell-wrapper{width:100%;height:100%;font-family:inherit;background-color:#fff;display:flex;align-items:center}.radar-table__expander-btn{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:16px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:transform .15s ease}.radar-table__expander-btn:focus{outline:none}.radar-table-default__body-cell-wrapper{padding:7px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:14px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-simple__body-cell-wrapper{padding:18px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:16px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-default__body-row:last-of-type .radar-table-default__body-cell-wrapper{border-bottom:none}.radar-table-simple__body-row:last-of-type .radar-table-simple__body-cell-wrapper{border-bottom:none}.radar-table__body-noData{padding:18px 12px;display:flex;align-items:center;font-size:16px;line-height:1.2;width:100%}.radar-table__body-noData_width{padding:18px 12px;display:flex;justify-content:center;align-items:center;font-size:16px;line-height:1.2}.radar-table__body-cell-wrapper--stretch,.radar-table-default__body-cell-wrapper--stretch,.radar-table-simple__body-cell-wrapper--stretch{align-items:stretch!important}.radar-table__body-cell-wrapper .salary-cell,.radar-table-default__body-cell-wrapper .salary-cell,.radar-table-simple__body-cell-wrapper .salary-cell{width:100%;height:auto;min-height:auto}.radar-table__custom-content-wrapper{width:100%;height:auto;min-height:100%}.radar-table__footer{pointer-events:auto}.radar-table__footer.resizing{pointer-events:none}.radar-table-default__footer,.radar-table-simple__footer{background-color:#fff}.radar-table-default__footer-cell,.radar-table-simple__footer-cell{border-top:1px solid #E8E8E8}.radar-table__footer-cell-wrapper{width:100%;font-family:inherit}.radar-table-default__footer-cell-wrapper,.radar-table-simple__footer-cell-wrapper{padding:12px 0;display:flex;gap:8px}.radar-table__resize-button{opacity:0;position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;width:20px;padding-right:6px;background-color:transparent;cursor:col-resize;border:none;display:flex;justify-content:flex-end;align-items:center;transition:all .2s cubic-bezier(.4,0,.2,1)}.radar-table__resize-button:hover{cursor:col-resize!important}.radar-table__resize-button div{background-color:#8c8c8c;width:2px;height:50%;opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);border-radius:1px}.radar-table__resize-button:hover div{opacity:.5}.radar-table__resize-button:active div{background-color:#5329ff;opacity:1}.radar-table__resize-line{display:none;position:fixed;width:2px;background-color:#5329ff80;z-index:9999;pointer-events:none;opacity:.5;will-change:transform;transform:translateZ(0);backface-visibility:hidden}.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 Ne, { useState as pe, useRef as Ce, useCallback as se, startTransition as wt, useEffect as Ie, createContext as Et, useContext as kt, useMemo as Ae, useLayoutEffect as lt } from "react";
8
- import { useSensors as St, useSensor as et, PointerSensor as jt, KeyboardSensor as Rt, pointerWithin as Tt, rectIntersection as $t, DndContext as Ot, DragOverlay as Dt, useDraggable as Pt, useDroppable as Lt } from "@dnd-kit/core";
9
- import { sortableKeyboardCoordinates as Nt } from "@dnd-kit/sortable";
10
- var Ye = { exports: {} }, Pe = {};
7
+ import * as Ze from "react";
8
+ import qe, { useState as ye, useRef as je, useCallback as ue, startTransition as Tt, useEffect as He, createContext as $t, useContext as It, useMemo as Ye, useLayoutEffect as Qe } from "react";
9
+ import { useSensors as Lt, useSensor as ot, PointerSensor as Nt, KeyboardSensor as Wt, pointerWithin as Pt, rectIntersection as Mt, DndContext as At, DragOverlay as zt, useDraggable as Ft, useDroppable as Bt } from "@dnd-kit/core";
10
+ import { sortableKeyboardCoordinates as Vt } from "@dnd-kit/sortable";
11
+ import { flushSync as qt } from "react-dom";
12
+ var Xe = { exports: {} }, Be = {};
11
13
  /**
12
14
  * @license React
13
15
  * react-jsx-runtime.production.min.js
@@ -17,21 +19,21 @@ var Ye = { exports: {} }, Pe = {};
17
19
  * This source code is licensed under the MIT license found in the
18
20
  * LICENSE file in the root directory of this source tree.
19
21
  */
20
- var tt;
21
- function It() {
22
- if (tt) return Pe;
23
- tt = 1;
24
- var t = Ne, r = Symbol.for("react.element"), c = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
25
- function R(P, _, V) {
26
- var S, L = {}, G = null, Q = null;
27
- V !== void 0 && (G = "" + V), _.key !== void 0 && (G = "" + _.key), _.ref !== void 0 && (Q = _.ref);
28
- for (S in _) d.call(_, S) && !x.hasOwnProperty(S) && (L[S] = _[S]);
29
- if (P && P.defaultProps) for (S in _ = P.defaultProps, _) L[S] === void 0 && (L[S] = _[S]);
30
- return { $$typeof: r, type: P, key: G, ref: Q, props: L, _owner: k.current };
22
+ var at;
23
+ function Ht() {
24
+ if (at) return Be;
25
+ at = 1;
26
+ var n = qe, i = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
27
+ function a(c, u, j) {
28
+ var g, T = {}, q = null, X = null;
29
+ j !== void 0 && (q = "" + j), u.key !== void 0 && (q = "" + u.key), u.ref !== void 0 && (X = u.ref);
30
+ for (g in u) r.call(u, g) && !o.hasOwnProperty(g) && (T[g] = u[g]);
31
+ if (c && c.defaultProps) for (g in u = c.defaultProps, u) T[g] === void 0 && (T[g] = u[g]);
32
+ return { $$typeof: i, type: c, key: q, ref: X, props: T, _owner: s.current };
31
33
  }
32
- return Pe.Fragment = c, Pe.jsx = R, Pe.jsxs = R, Pe;
34
+ return Be.Fragment = t, Be.jsx = a, Be.jsxs = a, Be;
33
35
  }
34
- var Le = {};
36
+ var Ve = {};
35
37
  /**
36
38
  * @license React
37
39
  * react-jsx-runtime.development.js
@@ -41,91 +43,91 @@ var Le = {};
41
43
  * This source code is licensed under the MIT license found in the
42
44
  * LICENSE file in the root directory of this source tree.
43
45
  */
44
- var rt;
45
- function Wt() {
46
- return rt || (rt = 1, process.env.NODE_ENV !== "production" && function() {
47
- var t = Ne, r = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), P = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), Q = Symbol.for("react.offscreen"), ne = Symbol.iterator, Z = "@@iterator";
48
- function oe(e) {
46
+ var lt;
47
+ function Kt() {
48
+ return lt || (lt = 1, process.env.NODE_ENV !== "production" && function() {
49
+ var n = qe, i = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), X = Symbol.for("react.offscreen"), U = Symbol.iterator, K = "@@iterator";
50
+ function ae(e) {
49
51
  if (e === null || typeof e != "object")
50
52
  return null;
51
- var i = ne && e[ne] || e[Z];
52
- return typeof i == "function" ? i : null;
53
+ var d = U && e[U] || e[K];
54
+ return typeof d == "function" ? d : null;
53
55
  }
54
- var N = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
- function u(e) {
56
+ var I = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
+ function f(e) {
56
58
  {
57
- for (var i = arguments.length, p = new Array(i > 1 ? i - 1 : 0), j = 1; j < i; j++)
58
- p[j - 1] = arguments[j];
59
- W("error", e, p);
59
+ for (var d = arguments.length, C = new Array(d > 1 ? d - 1 : 0), F = 1; F < d; F++)
60
+ C[F - 1] = arguments[F];
61
+ Y("error", e, C);
60
62
  }
61
63
  }
62
- function W(e, i, p) {
64
+ function Y(e, d, C) {
63
65
  {
64
- var j = N.ReactDebugCurrentFrame, ae = j.getStackAddendum();
65
- ae !== "" && (i += "%s", p = p.concat([ae]));
66
- var ce = p.map(function(U) {
67
- return String(U);
66
+ var F = I.ReactDebugCurrentFrame, de = F.getStackAddendum();
67
+ de !== "" && (d += "%s", C = C.concat([de]));
68
+ var fe = C.map(function(oe) {
69
+ return String(oe);
68
70
  });
69
- ce.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, ce);
71
+ fe.unshift("Warning: " + d), Function.prototype.apply.call(console[e], console, fe);
70
72
  }
71
73
  }
72
- var v = !1, T = !1, q = !1, y = !1, g = !1, l;
73
- l = Symbol.for("react.module.reference");
74
- function b(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || g || e === k || e === V || e === S || y || e === Q || v || T || q || typeof e == "object" && e !== null && (e.$$typeof === G || e.$$typeof === L || e.$$typeof === R || e.$$typeof === P || e.$$typeof === _ || // This needs to include all possible module reference object
74
+ var k = !1, B = !1, ie = !1, y = !1, _ = !1, m;
75
+ m = Symbol.for("react.module.reference");
76
+ function v(e) {
77
+ return !!(typeof e == "string" || typeof e == "function" || e === r || e === o || _ || e === s || e === j || e === g || y || e === X || k || B || ie || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === T || e.$$typeof === a || e.$$typeof === c || e.$$typeof === u || // This needs to include all possible module reference object
76
78
  // types supported by any Flight configuration anywhere since
77
79
  // we don't know which Flight build this will end up being used
78
80
  // with.
79
- e.$$typeof === l || e.getModuleId !== void 0));
81
+ e.$$typeof === m || e.getModuleId !== void 0));
80
82
  }
81
- function f(e, i, p) {
82
- var j = e.displayName;
83
- if (j)
84
- return j;
85
- var ae = i.displayName || i.name || "";
86
- return ae !== "" ? p + "(" + ae + ")" : p;
83
+ function p(e, d, C) {
84
+ var F = e.displayName;
85
+ if (F)
86
+ return F;
87
+ var de = d.displayName || d.name || "";
88
+ return de !== "" ? C + "(" + de + ")" : C;
87
89
  }
88
- function s(e) {
90
+ function b(e) {
89
91
  return e.displayName || "Context";
90
92
  }
91
- function C(e) {
93
+ function x(e) {
92
94
  if (e == null)
93
95
  return null;
94
- if (typeof e.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
96
+ if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
95
97
  return e.displayName || e.name || null;
96
98
  if (typeof e == "string")
97
99
  return e;
98
100
  switch (e) {
99
- case d:
101
+ case r:
100
102
  return "Fragment";
101
- case c:
103
+ case t:
102
104
  return "Portal";
103
- case x:
105
+ case o:
104
106
  return "Profiler";
105
- case k:
107
+ case s:
106
108
  return "StrictMode";
107
- case V:
109
+ case j:
108
110
  return "Suspense";
109
- case S:
111
+ case g:
110
112
  return "SuspenseList";
111
113
  }
112
114
  if (typeof e == "object")
113
115
  switch (e.$$typeof) {
114
- case P:
115
- var i = e;
116
- return s(i) + ".Consumer";
117
- case R:
118
- var p = e;
119
- return s(p._context) + ".Provider";
120
- case _:
121
- return f(e, e.render, "ForwardRef");
122
- case L:
123
- var j = e.displayName || null;
124
- return j !== null ? j : C(e.type) || "Memo";
125
- case G: {
126
- var ae = e, ce = ae._payload, U = ae._init;
116
+ case c:
117
+ var d = e;
118
+ return b(d) + ".Consumer";
119
+ case a:
120
+ var C = e;
121
+ return b(C._context) + ".Provider";
122
+ case u:
123
+ return p(e, e.render, "ForwardRef");
124
+ case T:
125
+ var F = e.displayName || null;
126
+ return F !== null ? F : x(e.type) || "Memo";
127
+ case q: {
128
+ var de = e, fe = de._payload, oe = de._init;
127
129
  try {
128
- return C(U(ce));
130
+ return x(oe(fe));
129
131
  } catch {
130
132
  return null;
131
133
  }
@@ -133,18 +135,18 @@ function Wt() {
133
135
  }
134
136
  return null;
135
137
  }
136
- var E = Object.assign, w = 0, $, ee, J, X, H, M, le;
137
- function he() {
138
+ var O = Object.assign, P = 0, D, H, Z, G, L, ce, R;
139
+ function J() {
138
140
  }
139
- he.__reactDisabledLog = !0;
140
- function z() {
141
+ J.__reactDisabledLog = !0;
142
+ function S() {
141
143
  {
142
- if (w === 0) {
143
- $ = console.log, ee = console.info, J = console.warn, X = console.error, H = console.group, M = console.groupCollapsed, le = console.groupEnd;
144
+ if (P === 0) {
145
+ D = console.log, H = console.info, Z = console.warn, G = console.error, L = console.group, ce = console.groupCollapsed, R = console.groupEnd;
144
146
  var e = {
145
147
  configurable: !0,
146
148
  enumerable: !0,
147
- value: he,
149
+ value: J,
148
150
  writable: !0
149
151
  };
150
152
  Object.defineProperties(console, {
@@ -157,332 +159,332 @@ function Wt() {
157
159
  groupEnd: e
158
160
  });
159
161
  }
160
- w++;
162
+ P++;
161
163
  }
162
164
  }
163
- function F() {
165
+ function E() {
164
166
  {
165
- if (w--, w === 0) {
167
+ if (P--, P === 0) {
166
168
  var e = {
167
169
  configurable: !0,
168
170
  enumerable: !0,
169
171
  writable: !0
170
172
  };
171
173
  Object.defineProperties(console, {
172
- log: E({}, e, {
173
- value: $
174
+ log: O({}, e, {
175
+ value: D
174
176
  }),
175
- info: E({}, e, {
176
- value: ee
177
+ info: O({}, e, {
178
+ value: H
177
179
  }),
178
- warn: E({}, e, {
179
- value: J
180
+ warn: O({}, e, {
181
+ value: Z
180
182
  }),
181
- error: E({}, e, {
182
- value: X
183
+ error: O({}, e, {
184
+ value: G
183
185
  }),
184
- group: E({}, e, {
185
- value: H
186
+ group: O({}, e, {
187
+ value: L
186
188
  }),
187
- groupCollapsed: E({}, e, {
188
- value: M
189
+ groupCollapsed: O({}, e, {
190
+ value: ce
189
191
  }),
190
- groupEnd: E({}, e, {
191
- value: le
192
+ groupEnd: O({}, e, {
193
+ value: R
192
194
  })
193
195
  });
194
196
  }
195
- w < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
+ P < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
198
  }
197
199
  }
198
- var te = N.ReactCurrentDispatcher, ie;
199
- function de(e, i, p) {
200
+ var A = I.ReactCurrentDispatcher, N;
201
+ function Q(e, d, C) {
200
202
  {
201
- if (ie === void 0)
203
+ if (N === void 0)
202
204
  try {
203
205
  throw Error();
204
- } catch (ae) {
205
- var j = ae.stack.trim().match(/\n( *(at )?)/);
206
- ie = j && j[1] || "";
206
+ } catch (de) {
207
+ var F = de.stack.trim().match(/\n( *(at )?)/);
208
+ N = F && F[1] || "";
207
209
  }
208
210
  return `
209
- ` + ie + e;
211
+ ` + N + e;
210
212
  }
211
213
  }
212
- var Y = !1, O;
214
+ var V = !1, M;
213
215
  {
214
- var re = typeof WeakMap == "function" ? WeakMap : Map;
215
- O = new re();
216
+ var ne = typeof WeakMap == "function" ? WeakMap : Map;
217
+ M = new ne();
216
218
  }
217
- function A(e, i) {
218
- if (!e || Y)
219
+ function ee(e, d) {
220
+ if (!e || V)
219
221
  return "";
220
222
  {
221
- var p = O.get(e);
222
- if (p !== void 0)
223
- return p;
223
+ var C = M.get(e);
224
+ if (C !== void 0)
225
+ return C;
224
226
  }
225
- var j;
226
- Y = !0;
227
- var ae = Error.prepareStackTrace;
227
+ var F;
228
+ V = !0;
229
+ var de = Error.prepareStackTrace;
228
230
  Error.prepareStackTrace = void 0;
229
- var ce;
230
- ce = te.current, te.current = null, z();
231
+ var fe;
232
+ fe = A.current, A.current = null, S();
231
233
  try {
232
- if (i) {
233
- var U = function() {
234
+ if (d) {
235
+ var oe = function() {
234
236
  throw Error();
235
237
  };
236
- if (Object.defineProperty(U.prototype, "props", {
238
+ if (Object.defineProperty(oe.prototype, "props", {
237
239
  set: function() {
238
240
  throw Error();
239
241
  }
240
242
  }), typeof Reflect == "object" && Reflect.construct) {
241
243
  try {
242
- Reflect.construct(U, []);
243
- } catch (be) {
244
- j = be;
244
+ Reflect.construct(oe, []);
245
+ } catch (Ee) {
246
+ F = Ee;
245
247
  }
246
- Reflect.construct(e, [], U);
248
+ Reflect.construct(e, [], oe);
247
249
  } else {
248
250
  try {
249
- U.call();
250
- } catch (be) {
251
- j = be;
251
+ oe.call();
252
+ } catch (Ee) {
253
+ F = Ee;
252
254
  }
253
- e.call(U.prototype);
255
+ e.call(oe.prototype);
254
256
  }
255
257
  } else {
256
258
  try {
257
259
  throw Error();
258
- } catch (be) {
259
- j = be;
260
+ } catch (Ee) {
261
+ F = Ee;
260
262
  }
261
263
  e();
262
264
  }
263
- } catch (be) {
264
- if (be && j && typeof be.stack == "string") {
265
- for (var B = be.stack.split(`
266
- `), ve = j.stack.split(`
267
- `), ue = B.length - 1, fe = ve.length - 1; ue >= 1 && fe >= 0 && B[ue] !== ve[fe]; )
268
- fe--;
269
- for (; ue >= 1 && fe >= 0; ue--, fe--)
270
- if (B[ue] !== ve[fe]) {
271
- if (ue !== 1 || fe !== 1)
265
+ } catch (Ee) {
266
+ if (Ee && F && typeof Ee.stack == "string") {
267
+ for (var se = Ee.stack.split(`
268
+ `), _e = F.stack.split(`
269
+ `), ge = se.length - 1, pe = _e.length - 1; ge >= 1 && pe >= 0 && se[ge] !== _e[pe]; )
270
+ pe--;
271
+ for (; ge >= 1 && pe >= 0; ge--, pe--)
272
+ if (se[ge] !== _e[pe]) {
273
+ if (ge !== 1 || pe !== 1)
272
274
  do
273
- if (ue--, fe--, fe < 0 || B[ue] !== ve[fe]) {
274
- var me = `
275
- ` + B[ue].replace(" at new ", " at ");
276
- return e.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", e.displayName)), typeof e == "function" && O.set(e, me), me;
275
+ if (ge--, pe--, pe < 0 || se[ge] !== _e[pe]) {
276
+ var Se = `
277
+ ` + se[ge].replace(" at new ", " at ");
278
+ return e.displayName && Se.includes("<anonymous>") && (Se = Se.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, Se), Se;
277
279
  }
278
- while (ue >= 1 && fe >= 0);
280
+ while (ge >= 1 && pe >= 0);
279
281
  break;
280
282
  }
281
283
  }
282
284
  } finally {
283
- Y = !1, te.current = ce, F(), Error.prepareStackTrace = ae;
285
+ V = !1, A.current = fe, E(), Error.prepareStackTrace = de;
284
286
  }
285
- var $e = e ? e.displayName || e.name : "", Re = $e ? de($e) : "";
286
- return typeof e == "function" && O.set(e, Re), Re;
287
+ var Pe = e ? e.displayName || e.name : "", Le = Pe ? Q(Pe) : "";
288
+ return typeof e == "function" && M.set(e, Le), Le;
287
289
  }
288
- function a(e, i, p) {
289
- return A(e, !1);
290
+ function ve(e, d, C) {
291
+ return ee(e, !1);
290
292
  }
291
- function m(e) {
292
- var i = e.prototype;
293
- return !!(i && i.isReactComponent);
293
+ function be(e) {
294
+ var d = e.prototype;
295
+ return !!(d && d.isReactComponent);
294
296
  }
295
- function h(e, i, p) {
297
+ function le(e, d, C) {
296
298
  if (e == null)
297
299
  return "";
298
300
  if (typeof e == "function")
299
- return A(e, m(e));
301
+ return ee(e, be(e));
300
302
  if (typeof e == "string")
301
- return de(e);
303
+ return Q(e);
302
304
  switch (e) {
303
- case V:
304
- return de("Suspense");
305
- case S:
306
- return de("SuspenseList");
305
+ case j:
306
+ return Q("Suspense");
307
+ case g:
308
+ return Q("SuspenseList");
307
309
  }
308
310
  if (typeof e == "object")
309
311
  switch (e.$$typeof) {
310
- case _:
311
- return a(e.render);
312
- case L:
313
- return h(e.type, i, p);
314
- case G: {
315
- var j = e, ae = j._payload, ce = j._init;
312
+ case u:
313
+ return ve(e.render);
314
+ case T:
315
+ return le(e.type, d, C);
316
+ case q: {
317
+ var F = e, de = F._payload, fe = F._init;
316
318
  try {
317
- return h(ce(ae), i, p);
319
+ return le(fe(de), d, C);
318
320
  } catch {
319
321
  }
320
322
  }
321
323
  }
322
324
  return "";
323
325
  }
324
- var o = Object.prototype.hasOwnProperty, D = {}, K = N.ReactDebugCurrentFrame;
325
- function I(e) {
326
+ var he = Object.prototype.hasOwnProperty, Oe = {}, Re = I.ReactDebugCurrentFrame;
327
+ function Te(e) {
326
328
  if (e) {
327
- var i = e._owner, p = h(e.type, e._source, i ? i.type : null);
328
- K.setExtraStackFrame(p);
329
+ var d = e._owner, C = le(e.type, e._source, d ? d.type : null);
330
+ Re.setExtraStackFrame(C);
329
331
  } else
330
- K.setExtraStackFrame(null);
332
+ Re.setExtraStackFrame(null);
331
333
  }
332
- function xe(e, i, p, j, ae) {
334
+ function Ke(e, d, C, F, de) {
333
335
  {
334
- var ce = Function.call.bind(o);
335
- for (var U in e)
336
- if (ce(e, U)) {
337
- var B = void 0;
336
+ var fe = Function.call.bind(he);
337
+ for (var oe in e)
338
+ if (fe(e, oe)) {
339
+ var se = void 0;
338
340
  try {
339
- if (typeof e[U] != "function") {
340
- var ve = Error((j || "React class") + ": " + p + " type `" + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[U] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
- throw ve.name = "Invariant Violation", ve;
341
+ if (typeof e[oe] != "function") {
342
+ var _e = Error((F || "React class") + ": " + C + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
+ throw _e.name = "Invariant Violation", _e;
342
344
  }
343
- B = e[U](i, U, j, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
- } catch (ue) {
345
- B = ue;
345
+ se = e[oe](d, oe, F, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
+ } catch (ge) {
347
+ se = ge;
346
348
  }
347
- B && !(B instanceof Error) && (I(ae), u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", p, U, typeof B), I(null)), B instanceof Error && !(B.message in D) && (D[B.message] = !0, I(ae), u("Failed %s type: %s", p, B.message), I(null));
349
+ se && !(se instanceof Error) && (Te(de), f("%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).", F || "React class", C, oe, typeof se), Te(null)), se instanceof Error && !(se.message in Oe) && (Oe[se.message] = !0, Te(de), f("Failed %s type: %s", C, se.message), Te(null));
348
350
  }
349
351
  }
350
352
  }
351
- var ge = Array.isArray;
352
- function _e(e) {
353
- return ge(e);
353
+ var h = Array.isArray;
354
+ function $(e) {
355
+ return h(e);
354
356
  }
355
- function ye(e) {
357
+ function z(e) {
356
358
  {
357
- var i = typeof Symbol == "function" && Symbol.toStringTag, p = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
- return p;
359
+ var d = typeof Symbol == "function" && Symbol.toStringTag, C = d && e[Symbol.toStringTag] || e.constructor.name || "Object";
360
+ return C;
359
361
  }
360
362
  }
361
- function Ee(e) {
363
+ function w(e) {
362
364
  try {
363
- return ke(e), !1;
365
+ return W(e), !1;
364
366
  } catch {
365
367
  return !0;
366
368
  }
367
369
  }
368
- function ke(e) {
370
+ function W(e) {
369
371
  return "" + e;
370
372
  }
371
- function je(e) {
372
- if (Ee(e))
373
- return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(e)), ke(e);
373
+ function re(e) {
374
+ if (w(e))
375
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", z(e)), W(e);
374
376
  }
375
- var Se = N.ReactCurrentOwner, We = {
377
+ var te = I.ReactCurrentOwner, Ce = {
376
378
  key: !0,
377
379
  ref: !0,
378
380
  __self: !0,
379
381
  __source: !0
380
- }, Oe, De;
381
- function Fe(e) {
382
- if (o.call(e, "ref")) {
383
- var i = Object.getOwnPropertyDescriptor(e, "ref").get;
384
- if (i && i.isReactWarning)
382
+ }, me, ke;
383
+ function xe(e) {
384
+ if (he.call(e, "ref")) {
385
+ var d = Object.getOwnPropertyDescriptor(e, "ref").get;
386
+ if (d && d.isReactWarning)
385
387
  return !1;
386
388
  }
387
389
  return e.ref !== void 0;
388
390
  }
389
- function we(e) {
390
- if (o.call(e, "key")) {
391
- var i = Object.getOwnPropertyDescriptor(e, "key").get;
392
- if (i && i.isReactWarning)
391
+ function De(e) {
392
+ if (he.call(e, "key")) {
393
+ var d = Object.getOwnPropertyDescriptor(e, "key").get;
394
+ if (d && d.isReactWarning)
393
395
  return !1;
394
396
  }
395
397
  return e.key !== void 0;
396
398
  }
397
- function ze(e, i) {
398
- typeof e.ref == "string" && Se.current;
399
+ function $e(e, d) {
400
+ typeof e.ref == "string" && te.current;
399
401
  }
400
- function Me(e, i) {
402
+ function Ne(e, d) {
401
403
  {
402
- var p = function() {
403
- Oe || (Oe = !0, u("%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)", i));
404
+ var C = function() {
405
+ me || (me = !0, f("%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)", d));
404
406
  };
405
- p.isReactWarning = !0, Object.defineProperty(e, "key", {
406
- get: p,
407
+ C.isReactWarning = !0, Object.defineProperty(e, "key", {
408
+ get: C,
407
409
  configurable: !0
408
410
  });
409
411
  }
410
412
  }
411
- function dt(e, i) {
413
+ function Ie(e, d) {
412
414
  {
413
- var p = function() {
414
- De || (De = !0, u("%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)", i));
415
+ var C = function() {
416
+ ke || (ke = !0, f("%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)", d));
415
417
  };
416
- p.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
- get: p,
418
+ C.isReactWarning = !0, Object.defineProperty(e, "ref", {
419
+ get: C,
418
420
  configurable: !0
419
421
  });
420
422
  }
421
423
  }
422
- var ut = function(e, i, p, j, ae, ce, U) {
423
- var B = {
424
+ var Je = function(e, d, C, F, de, fe, oe) {
425
+ var se = {
424
426
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: r,
427
+ $$typeof: i,
426
428
  // Built-in properties that belong on the element
427
429
  type: e,
428
- key: i,
429
- ref: p,
430
- props: U,
430
+ key: d,
431
+ ref: C,
432
+ props: oe,
431
433
  // Record the component responsible for creating this element.
432
- _owner: ce
434
+ _owner: fe
433
435
  };
434
- return B._store = {}, Object.defineProperty(B._store, "validated", {
436
+ return se._store = {}, Object.defineProperty(se._store, "validated", {
435
437
  configurable: !1,
436
438
  enumerable: !1,
437
439
  writable: !0,
438
440
  value: !1
439
- }), Object.defineProperty(B, "_self", {
441
+ }), Object.defineProperty(se, "_self", {
440
442
  configurable: !1,
441
443
  enumerable: !1,
442
444
  writable: !1,
443
- value: j
444
- }), Object.defineProperty(B, "_source", {
445
+ value: F
446
+ }), Object.defineProperty(se, "_source", {
445
447
  configurable: !1,
446
448
  enumerable: !1,
447
449
  writable: !1,
448
- value: ae
449
- }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
450
+ value: de
451
+ }), Object.freeze && (Object.freeze(se.props), Object.freeze(se)), se;
450
452
  };
451
- function ft(e, i, p, j, ae) {
453
+ function Ue(e, d, C, F, de) {
452
454
  {
453
- var ce, U = {}, B = null, ve = null;
454
- p !== void 0 && (je(p), B = "" + p), we(i) && (je(i.key), B = "" + i.key), Fe(i) && (ve = i.ref, ze(i, ae));
455
- for (ce in i)
456
- o.call(i, ce) && !We.hasOwnProperty(ce) && (U[ce] = i[ce]);
455
+ var fe, oe = {}, se = null, _e = null;
456
+ C !== void 0 && (re(C), se = "" + C), De(d) && (re(d.key), se = "" + d.key), xe(d) && (_e = d.ref, $e(d, de));
457
+ for (fe in d)
458
+ he.call(d, fe) && !Ce.hasOwnProperty(fe) && (oe[fe] = d[fe]);
457
459
  if (e && e.defaultProps) {
458
- var ue = e.defaultProps;
459
- for (ce in ue)
460
- U[ce] === void 0 && (U[ce] = ue[ce]);
460
+ var ge = e.defaultProps;
461
+ for (fe in ge)
462
+ oe[fe] === void 0 && (oe[fe] = ge[fe]);
461
463
  }
462
- if (B || ve) {
463
- var fe = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- B && Me(U, fe), ve && dt(U, fe);
464
+ if (se || _e) {
465
+ var pe = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
466
+ se && Ne(oe, pe), _e && Ie(oe, pe);
465
467
  }
466
- return ut(e, B, ve, ae, j, Se.current, U);
468
+ return Je(e, se, _e, de, F, te.current, oe);
467
469
  }
468
470
  }
469
- var Be = N.ReactCurrentOwner, qe = N.ReactDebugCurrentFrame;
470
- function Te(e) {
471
+ var We = I.ReactCurrentOwner, Ae = I.ReactDebugCurrentFrame;
472
+ function we(e) {
471
473
  if (e) {
472
- var i = e._owner, p = h(e.type, e._source, i ? i.type : null);
473
- qe.setExtraStackFrame(p);
474
+ var d = e._owner, C = le(e.type, e._source, d ? d.type : null);
475
+ Ae.setExtraStackFrame(C);
474
476
  } else
475
- qe.setExtraStackFrame(null);
477
+ Ae.setExtraStackFrame(null);
476
478
  }
477
- var Ve;
478
- Ve = !1;
479
- function Je(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === r;
479
+ var ze;
480
+ ze = !1;
481
+ function Fe(e) {
482
+ return typeof e == "object" && e !== null && e.$$typeof === i;
481
483
  }
482
- function Ke() {
484
+ function et() {
483
485
  {
484
- if (Be.current) {
485
- var e = C(Be.current.type);
486
+ if (We.current) {
487
+ var e = x(We.current.type);
486
488
  if (e)
487
489
  return `
488
490
 
@@ -491,488 +493,522 @@ Check the render method of \`` + e + "`.";
491
493
  return "";
492
494
  }
493
495
  }
494
- function ht(e) {
496
+ function _t(e) {
495
497
  return "";
496
498
  }
497
- var Ue = {};
498
- function gt(e) {
499
+ var tt = {};
500
+ function Ct(e) {
499
501
  {
500
- var i = Ke();
501
- if (!i) {
502
- var p = typeof e == "string" ? e : e.displayName || e.name;
503
- p && (i = `
502
+ var d = et();
503
+ if (!d) {
504
+ var C = typeof e == "string" ? e : e.displayName || e.name;
505
+ C && (d = `
504
506
 
505
- Check the top-level render call using <` + p + ">.");
507
+ Check the top-level render call using <` + C + ">.");
506
508
  }
507
- return i;
509
+ return d;
508
510
  }
509
511
  }
510
- function Ze(e, i) {
512
+ function nt(e, d) {
511
513
  {
512
514
  if (!e._store || e._store.validated || e.key != null)
513
515
  return;
514
516
  e._store.validated = !0;
515
- var p = gt(i);
516
- if (Ue[p])
517
+ var C = Ct(d);
518
+ if (tt[C])
517
519
  return;
518
- Ue[p] = !0;
519
- var j = "";
520
- e && e._owner && e._owner !== Be.current && (j = " It was passed a child from " + C(e._owner.type) + "."), Te(e), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, j), Te(null);
520
+ tt[C] = !0;
521
+ var F = "";
522
+ e && e._owner && e._owner !== We.current && (F = " It was passed a child from " + x(e._owner.type) + "."), we(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, F), we(null);
521
523
  }
522
524
  }
523
- function Ge(e, i) {
525
+ function rt(e, d) {
524
526
  {
525
527
  if (typeof e != "object")
526
528
  return;
527
- if (_e(e))
528
- for (var p = 0; p < e.length; p++) {
529
- var j = e[p];
530
- Je(j) && Ze(j, i);
529
+ if ($(e))
530
+ for (var C = 0; C < e.length; C++) {
531
+ var F = e[C];
532
+ Fe(F) && nt(F, d);
531
533
  }
532
- else if (Je(e))
534
+ else if (Fe(e))
533
535
  e._store && (e._store.validated = !0);
534
536
  else if (e) {
535
- var ae = oe(e);
536
- if (typeof ae == "function" && ae !== e.entries)
537
- for (var ce = ae.call(e), U; !(U = ce.next()).done; )
538
- Je(U.value) && Ze(U.value, i);
537
+ var de = ae(e);
538
+ if (typeof de == "function" && de !== e.entries)
539
+ for (var fe = de.call(e), oe; !(oe = fe.next()).done; )
540
+ Fe(oe.value) && nt(oe.value, d);
539
541
  }
540
542
  }
541
543
  }
542
- function pt(e) {
544
+ function wt(e) {
543
545
  {
544
- var i = e.type;
545
- if (i == null || typeof i == "string")
546
+ var d = e.type;
547
+ if (d == null || typeof d == "string")
546
548
  return;
547
- var p;
548
- if (typeof i == "function")
549
- p = i.propTypes;
550
- else if (typeof i == "object" && (i.$$typeof === _ || // Note: Memo only checks outer props here.
549
+ var C;
550
+ if (typeof d == "function")
551
+ C = d.propTypes;
552
+ else if (typeof d == "object" && (d.$$typeof === u || // Note: Memo only checks outer props here.
551
553
  // Inner props are checked in the reconciler.
552
- i.$$typeof === L))
553
- p = i.propTypes;
554
+ d.$$typeof === T))
555
+ C = d.propTypes;
554
556
  else
555
557
  return;
556
- if (p) {
557
- var j = C(i);
558
- xe(p, e.props, "prop", j, e);
559
- } else if (i.PropTypes !== void 0 && !Ve) {
560
- Ve = !0;
561
- var ae = C(i);
562
- u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ae || "Unknown");
558
+ if (C) {
559
+ var F = x(d);
560
+ Ke(C, e.props, "prop", F, e);
561
+ } else if (d.PropTypes !== void 0 && !ze) {
562
+ ze = !0;
563
+ var de = x(d);
564
+ f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", de || "Unknown");
563
565
  }
564
- typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
567
  }
566
568
  }
567
- function yt(e) {
569
+ function Et(e) {
568
570
  {
569
- for (var i = Object.keys(e.props), p = 0; p < i.length; p++) {
570
- var j = i[p];
571
- if (j !== "children" && j !== "key") {
572
- Te(e), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), Te(null);
571
+ for (var d = Object.keys(e.props), C = 0; C < d.length; C++) {
572
+ var F = d[C];
573
+ if (F !== "children" && F !== "key") {
574
+ we(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", F), we(null);
573
575
  break;
574
576
  }
575
577
  }
576
- e.ref !== null && (Te(e), u("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
578
+ e.ref !== null && (we(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), we(null));
577
579
  }
578
580
  }
579
- var Xe = {};
580
- function Qe(e, i, p, j, ae, ce) {
581
+ var st = {};
582
+ function it(e, d, C, F, de, fe) {
581
583
  {
582
- var U = b(e);
583
- if (!U) {
584
- var B = "";
585
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (B += " 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 ve = ht();
587
- ve ? B += ve : B += Ke();
588
- var ue;
589
- e === null ? ue = "null" : _e(e) ? ue = "array" : e !== void 0 && e.$$typeof === r ? (ue = "<" + (C(e.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof e, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, B);
584
+ var oe = v(e);
585
+ if (!oe) {
586
+ var se = "";
587
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
588
+ var _e = _t();
589
+ _e ? se += _e : se += et();
590
+ var ge;
591
+ e === null ? ge = "null" : $(e) ? ge = "array" : e !== void 0 && e.$$typeof === i ? (ge = "<" + (x(e.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, se);
590
592
  }
591
- var fe = ft(e, i, p, ae, ce);
592
- if (fe == null)
593
- return fe;
594
- if (U) {
595
- var me = i.children;
596
- if (me !== void 0)
597
- if (j)
598
- if (_e(me)) {
599
- for (var $e = 0; $e < me.length; $e++)
600
- Ge(me[$e], e);
601
- Object.freeze && Object.freeze(me);
593
+ var pe = Ue(e, d, C, de, fe);
594
+ if (pe == null)
595
+ return pe;
596
+ if (oe) {
597
+ var Se = d.children;
598
+ if (Se !== void 0)
599
+ if (F)
600
+ if ($(Se)) {
601
+ for (var Pe = 0; Pe < Se.length; Pe++)
602
+ rt(Se[Pe], e);
603
+ Object.freeze && Object.freeze(Se);
602
604
  } else
603
- u("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
+ f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
606
  else
605
- Ge(me, e);
607
+ rt(Se, e);
606
608
  }
607
- if (o.call(i, "key")) {
608
- var Re = C(e), be = Object.keys(i).filter(function(Ct) {
609
- return Ct !== "key";
610
- }), He = be.length > 0 ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}";
611
- if (!Xe[Re + He]) {
612
- var _t = be.length > 0 ? "{" + be.join(": ..., ") + ": ...}" : "{}";
613
- u(`A props object containing a "key" prop is being spread into JSX:
609
+ if (he.call(d, "key")) {
610
+ var Le = x(e), Ee = Object.keys(d).filter(function(Dt) {
611
+ return Dt !== "key";
612
+ }), Ge = Ee.length > 0 ? "{key: someKey, " + Ee.join(": ..., ") + ": ...}" : "{key: someKey}";
613
+ if (!st[Le + Ge]) {
614
+ var Rt = Ee.length > 0 ? "{" + Ee.join(": ..., ") + ": ...}" : "{}";
615
+ f(`A props object containing a "key" prop is being spread into JSX:
614
616
  let props = %s;
615
617
  <%s {...props} />
616
618
  React keys must be passed directly to JSX without using spread:
617
619
  let props = %s;
618
- <%s key={someKey} {...props} />`, He, Re, _t, Re), Xe[Re + He] = !0;
620
+ <%s key={someKey} {...props} />`, Ge, Le, Rt, Le), st[Le + Ge] = !0;
619
621
  }
620
622
  }
621
- return e === d ? yt(fe) : pt(fe), fe;
623
+ return e === r ? Et(pe) : wt(pe), pe;
622
624
  }
623
625
  }
624
- function vt(e, i, p) {
625
- return Qe(e, i, p, !0);
626
+ function St(e, d, C) {
627
+ return it(e, d, C, !0);
626
628
  }
627
- function xt(e, i, p) {
628
- return Qe(e, i, p, !1);
629
+ function kt(e, d, C) {
630
+ return it(e, d, C, !1);
629
631
  }
630
- var bt = xt, mt = vt;
631
- Le.Fragment = d, Le.jsx = bt, Le.jsxs = mt;
632
- }()), Le;
632
+ var jt = kt, Ot = St;
633
+ Ve.Fragment = r, Ve.jsx = jt, Ve.jsxs = Ot;
634
+ }()), Ve;
633
635
  }
634
- process.env.NODE_ENV === "production" ? Ye.exports = It() : Ye.exports = Wt();
635
- var n = Ye.exports;
636
- const Ft = ({
637
- column: t,
638
- currWidth: r,
639
- currMinWidth: c,
640
- onResize: d,
641
- scrollContainerRef: k
636
+ process.env.NODE_ENV === "production" ? Xe.exports = Ht() : Xe.exports = Kt();
637
+ var l = Xe.exports;
638
+ const Jt = ({
639
+ column: n,
640
+ currWidth: i,
641
+ currMinWidth: t,
642
+ onResize: r,
643
+ scrollContainerRef: s
642
644
  }) => {
643
- const [x, R] = pe(!1), [P, _] = pe(null), [V, S] = pe(0), [L, G] = pe(0), [Q, ne] = pe(null), Z = Ce(null);
644
- Ce(0);
645
- const oe = Ce(!1), N = Ce(null), u = Ce(0), W = Ce(0), v = Ce(null), T = Ce(null), q = se((l) => {
646
- !x || !P || !t || (T.current && cancelAnimationFrame(T.current), T.current = requestAnimationFrame(() => {
647
- var X;
648
- const b = l.clientX - V, f = t.minWidth || 50;
649
- let s = L + b;
650
- s < f && (s = f), t.maxWidth && s > t.maxWidth && (s = t.maxWidth), u.current = s;
651
- const C = s - L;
652
- v.current && (v.current.style.transform = `translateX(${C}px)`);
653
- const w = ((H) => {
654
- var M;
655
- return typeof window < "u" && ((M = window.CSS) != null && M.escape) ? window.CSS.escape(H) : H.replace(/([#.;?\[\]\s])/g, "\\$1");
656
- })(t.key), $ = (X = N.current) == null ? void 0 : X.closest("table");
657
- if (!$) return;
658
- const ee = $.querySelector(`th[data-column-key="${w}"]`);
659
- ee && (ee.style.width = `${s}px`, ee.style.minWidth = `${s}px`, console.log("newWidth", s)), $.querySelectorAll(`td[data-column-key="${w}"]`).forEach((H) => {
660
- H.style.width = `${s}px`;
661
- });
645
+ const [o, a] = ye(!1), [c, u] = ye(null), [j, g] = ye(0), [T, q] = ye(0), [X, U] = ye(null), K = je(null);
646
+ je(0);
647
+ const ae = je(!1), I = je(null), f = je(0), Y = je(0), k = je(null), B = je(null), ie = ue((m) => {
648
+ !o || !c || !n || (B.current && cancelAnimationFrame(B.current), B.current = requestAnimationFrame(() => {
649
+ var G;
650
+ const v = m.clientX - j, p = n.minWidth || 50;
651
+ let b = T + v;
652
+ b < p && (b = p), n.maxWidth && b > n.maxWidth && (b = n.maxWidth), f.current = b;
653
+ const x = b - T;
654
+ k.current && (k.current.style.transform = `translateX(${x}px)`);
655
+ const O = (L) => {
656
+ var ce;
657
+ return typeof window < "u" && ((ce = window.CSS) != null && ce.escape) ? window.CSS.escape(L) : L.replace(/([#.;?\[\]\s])/g, "\\$1");
658
+ }, P = O(n.key), D = (G = I.current) == null ? void 0 : G.closest("table");
659
+ if (!D) return;
660
+ const H = D.querySelector(`th[data-column-key="${P}"]`);
661
+ if (H && (H.style.width = `${b}px`, H.style.minWidth = `${b}px`), D.querySelectorAll(`td[data-column-key="${P}"]`).forEach((L) => {
662
+ L.style.width = `${b}px`;
663
+ }), n.fixed) {
664
+ const L = (E) => window.getComputedStyle(E).position === "sticky", R = Array.from(
665
+ D.querySelectorAll("th.radar-table__header-cell.leaf-header")
666
+ ).filter((E) => L(E)), J = H, S = J ? R.indexOf(J) : -1;
667
+ if (S !== -1) {
668
+ let E = parseFloat(R[S].style.left || "0") || 0, A = R[S].getBoundingClientRect().width;
669
+ for (let N = S + 1; N < R.length; N++) {
670
+ E += Math.floor(A), R[N].style.left = `${E}px`;
671
+ const Q = R[N].getAttribute("data-column-key");
672
+ if (Q) {
673
+ const V = O(Q);
674
+ D.querySelectorAll(`td[data-column-key="${V}"]`).forEach((ne) => {
675
+ ne.style.left = `${E}px`;
676
+ });
677
+ }
678
+ A = R[N].getBoundingClientRect().width;
679
+ }
680
+ }
681
+ }
662
682
  }));
663
- }, [x, V, L, P, k, t, v, T, u]), y = se(() => {
664
- var X;
665
- if (console.log("resize end"), !x || !P) return;
666
- const l = t.minWidth || 50;
667
- let b = u.current || L;
668
- b < l && (b = l), t != null && t.maxWidth && b > t.maxWidth && (b = t.maxWidth);
669
- const f = b, s = P;
670
- T.current && (cancelAnimationFrame(T.current), T.current = null), Z.current && (clearInterval(Z.current), Z.current = null), oe.current = !1, v.current && (v.current.style.transform = "translateX(0px)"), R(!1), S(0), G(0), _(null), ne(null), u.current = 0, W.current = 0, document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", y);
671
- const E = ((H) => {
672
- var M;
673
- return typeof window < "u" && ((M = window.CSS) != null && M.escape) ? window.CSS.escape(H) : H.replace(/([#.;?\[\]\s])/g, "\\$1");
674
- })(s), w = (X = N.current) == null ? void 0 : X.closest("table");
675
- if (!w) return;
676
- const $ = w.querySelector(`th[data-column-key="${E}"]`);
677
- $ && ($.style.width = `${f}px`, $.style.minWidth = `${f}px`, console.log("clampedWidth", f)), w.querySelectorAll(`td[data-column-key="${E}"]`).forEach((H) => {
678
- H.style.width = `${f}px`;
679
- });
680
- const J = setTimeout(() => {
681
- var le;
682
- const H = (le = N == null ? void 0 : N.current) == null ? void 0 : le.closest("th"), M = (H == null ? void 0 : H.getBoundingClientRect().width) ?? f;
683
- console.log("realCurrentFinalWidth", M), wt(() => {
684
- d == null || d(s, M);
683
+ }, [o, j, T, c, s, n, k, B, f]), y = ue(() => {
684
+ var G;
685
+ if (I.current.style.opacity = "", !o || !c) return;
686
+ const m = n.minWidth || 50;
687
+ let v = f.current || T;
688
+ v < m && (v = m), n != null && n.maxWidth && v > n.maxWidth && (v = n.maxWidth);
689
+ const p = v, b = c;
690
+ B.current && (cancelAnimationFrame(B.current), B.current = null), K.current && (clearInterval(K.current), K.current = null), ae.current = !1, k.current && (k.current.style.transform = "translateX(0px)"), a(!1), g(0), q(0), u(null), U(null), f.current = 0, Y.current = 0, document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", y);
691
+ const x = (L) => {
692
+ var ce;
693
+ return typeof window < "u" && ((ce = window.CSS) != null && ce.escape) ? window.CSS.escape(L) : L.replace(/([#.;?\[\]\s])/g, "\\$1");
694
+ }, O = x(b), P = (G = I.current) == null ? void 0 : G.closest("table");
695
+ if (!P) return;
696
+ const D = P.querySelector(`th[data-column-key="${O}"]`);
697
+ if (D && (D.style.width = `${p}px`, D.style.minWidth = `${p}px`), P.querySelectorAll(`td[data-column-key="${O}"]`).forEach((L) => {
698
+ L.style.width = `${p}px`;
699
+ }), n.fixed) {
700
+ const L = (E) => window.getComputedStyle(E).position === "sticky", R = Array.from(
701
+ P.querySelectorAll("th.radar-table__header-cell.leaf-header")
702
+ ).filter((E) => L(E)), J = D, S = J ? R.indexOf(J) : -1;
703
+ if (S !== -1) {
704
+ let E = parseFloat(R[S].style.left || "0") || 0, A = R[S].getBoundingClientRect().width;
705
+ for (let N = S + 1; N < R.length; N++) {
706
+ E += Math.floor(A), R[N].style.left = `${E}px`;
707
+ const Q = R[N].getAttribute("data-column-key");
708
+ if (Q) {
709
+ const V = x(Q);
710
+ P.querySelectorAll(`td[data-column-key="${V}"]`).forEach((ne) => {
711
+ ne.style.left = `${E}px`;
712
+ });
713
+ }
714
+ A = R[N].getBoundingClientRect().width;
715
+ }
716
+ }
717
+ }
718
+ const Z = setTimeout(() => {
719
+ var R;
720
+ const L = (R = I == null ? void 0 : I.current) == null ? void 0 : R.closest("th"), ce = (L == null ? void 0 : L.getBoundingClientRect().width) ?? p;
721
+ Tt(() => {
722
+ r == null || r(b, ce);
685
723
  });
686
724
  }, 0);
687
- return () => clearTimeout(J);
688
- }, [x, P, t, L, d, q]), g = se((l, b, f) => {
689
- if (l.preventDefault(), !N.current) return;
690
- const s = N.current.closest("th"), C = (s == null ? void 0 : s.getBoundingClientRect().width) ?? f;
691
- console.log("realCurrentWidth", C), R(!0), S(l.clientX), G(C), _(b), u.current = C;
692
- const E = N.current.getBoundingClientRect(), w = E.left + 12;
693
- W.current = w, v.current && (v.current.style.left = `${w}px`, v.current.style.transform = "translateX(0px)");
694
- const $ = k == null ? void 0 : k.current, ee = N.current.closest("table");
695
- if ($) {
696
- const J = $.getBoundingClientRect();
697
- ne({
698
- top: J.top + E.height * 2,
699
- height: J.height - E.height * 2
725
+ return () => clearTimeout(Z);
726
+ }, [o, c, n, T, r, ie]), _ = ue((m, v, p) => {
727
+ if (m.preventDefault(), !I.current) return;
728
+ const b = I.current.closest("th"), x = (b == null ? void 0 : b.getBoundingClientRect().width) ?? p;
729
+ a(!0), g(m.clientX), q(x), u(v), I.current.style.opacity = "1", I.current.classList.add("radar-table__resize-button_active");
730
+ const O = I.current.getBoundingClientRect(), P = s == null ? void 0 : s.current, D = I.current.closest("table");
731
+ if (P) {
732
+ const H = P.getBoundingClientRect();
733
+ U({
734
+ top: H.top + O.height * 2,
735
+ height: H.height - O.height * 2
700
736
  });
701
- } else if (ee) {
702
- const J = ee.getBoundingClientRect();
703
- ne({
704
- top: J.top,
705
- height: J.height
737
+ } else if (D) {
738
+ const H = D.getBoundingClientRect();
739
+ U({
740
+ top: H.top,
741
+ height: H.height
706
742
  });
707
743
  }
708
- }, [k]);
709
- return Ie(() => {
710
- x && (document.addEventListener("mousemove", q), document.addEventListener("mouseup", y));
711
- }, [x, q, y]), Ie(() => () => {
712
- T.current && (cancelAnimationFrame(T.current), T.current = null), document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", y);
713
- }, [q, y]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
714
- /* @__PURE__ */ n.jsx(
744
+ }, [s]);
745
+ return He(() => {
746
+ o && (document.addEventListener("mousemove", ie), document.addEventListener("mouseup", y));
747
+ }, [o, ie, y]), He(() => () => {
748
+ B.current && (cancelAnimationFrame(B.current), B.current = null), document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", y);
749
+ }, [ie, y]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
750
+ /* @__PURE__ */ l.jsx(
715
751
  "button",
716
752
  {
717
- ref: N,
753
+ ref: I,
718
754
  className: "radar-table__resize-button",
719
- onMouseDown: (l) => g(l, t.key, r || c || 200),
755
+ onMouseDown: (m) => _(m, n.key, i || t || 200),
720
756
  title: "Изменить ширину колонки",
721
- children: /* @__PURE__ */ n.jsx("div", {})
757
+ children: /* @__PURE__ */ l.jsx("div", {})
722
758
  }
723
759
  ),
724
- x && Q && /* @__PURE__ */ n.jsx(
760
+ o && X && /* @__PURE__ */ l.jsx(
725
761
  "div",
726
762
  {
727
- ref: v,
763
+ ref: k,
728
764
  className: "radar-table__resize-line",
729
765
  style: {
730
- left: `${W.current}px`,
731
- top: `${Q.top}px`,
732
- height: `${Q.height}px`,
766
+ left: `${Y.current}px`,
767
+ top: `${X.top}px`,
768
+ height: `${X.height}px`,
733
769
  transform: "translateX(0px)",
734
770
  willChange: "transform"
735
771
  }
736
772
  }
737
773
  )
738
774
  ] });
739
- }, At = ({ text: t, children: r }) => {
740
- const [c, d] = pe(!1), [k, x] = pe("left"), R = Ce(null), P = () => {
741
- if (R.current) {
742
- const _ = R.current.getBoundingClientRect(), V = window.innerWidth, S = 250, L = 20, G = V - _.left, Q = _.right;
743
- G < S + L && Q > S + L ? x("right") : x("left");
775
+ }, Ut = ({ text: n, children: i }) => {
776
+ const [t, r] = ye(!1), [s, o] = ye("left"), a = je(null), c = () => {
777
+ if (a.current) {
778
+ const u = a.current.getBoundingClientRect(), j = window.innerWidth, g = 250, T = 20, q = j - u.left, X = u.right;
779
+ q < g + T && X > g + T ? o("right") : o("left");
744
780
  }
745
- d(!0);
781
+ r(!0);
746
782
  };
747
- return /* @__PURE__ */ n.jsxs(
783
+ return /* @__PURE__ */ l.jsxs(
748
784
  "button",
749
785
  {
750
- ref: R,
786
+ ref: a,
751
787
  className: "radar-table__tooltip-button",
752
- onMouseOver: P,
753
- onMouseOut: () => d(!1),
788
+ onMouseOver: c,
789
+ onMouseOut: () => r(!1),
754
790
  children: [
755
- r || /* @__PURE__ */ n.jsxs("svg", { width: "1.5em", height: "1em", viewBox: "0 0 24 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
756
- /* @__PURE__ */ n.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" }),
757
- /* @__PURE__ */ n.jsx("path", { fill: "currentColor", d: "M9.064 15V7.958H10.338V15H9.064ZM8.952 6.418V5.046H10.464V6.418H8.952Z", fillOpacity: "0.5" })
791
+ i || /* @__PURE__ */ l.jsxs("svg", { width: "1.5em", height: "1em", viewBox: "0 0 24 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
792
+ /* @__PURE__ */ l.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" }),
793
+ /* @__PURE__ */ l.jsx("path", { fill: "currentColor", d: "M9.064 15V7.958H10.338V15H9.064ZM8.952 6.418V5.046H10.464V6.418H8.952Z", fillOpacity: "0.5" })
758
794
  ] }),
759
- /* @__PURE__ */ n.jsx(
795
+ /* @__PURE__ */ l.jsx(
760
796
  "div",
761
797
  {
762
- className: `radar-table__tooltip-text ${c ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${k}`,
763
- children: t
798
+ className: `radar-table__tooltip-text ${t ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${s}`,
799
+ children: n
764
800
  }
765
801
  )
766
802
  ]
767
803
  }
768
804
  );
769
- }, ct = Et(null), zt = () => {
770
- const t = kt(ct);
771
- return t || {
805
+ }, bt = $t(null), Yt = () => {
806
+ const n = It(bt);
807
+ return n || {
772
808
  activeColumn: null,
773
809
  isValidDropZone: () => !1
774
810
  };
775
811
  };
776
- function Mt({
777
- children: t,
778
- fullConfig: r,
779
- onColumnReorder: c,
780
- scrollContainerRef: d
812
+ function Zt({
813
+ children: n,
814
+ fullConfig: i,
815
+ onColumnReorder: t,
816
+ scrollContainerRef: r
781
817
  }) {
782
- const [k, x] = pe(null), [R, P] = pe(40), [_, V] = pe(200), [S, L] = pe(null), G = St(
783
- et(jt, {
818
+ const [s, o] = ye(null), [a, c] = ye(40), [u, j] = ye(200), [g, T] = ye(null), q = Lt(
819
+ ot(Nt, {
784
820
  activationConstraint: {
785
821
  distance: 5
786
822
  // Уменьшили дистанцию
787
823
  }
788
824
  }),
789
- et(Rt, {
790
- coordinateGetter: Nt
825
+ ot(Wt, {
826
+ coordinateGetter: Vt
791
827
  })
792
- ), Q = se((y) => {
793
- const g = Tt(y);
794
- if (g.length > 0) {
795
- const f = g.filter(
796
- (s) => s.id.toString().startsWith("drop-zone-")
828
+ ), X = ue((y) => {
829
+ const _ = Pt(y);
830
+ if (_.length > 0) {
831
+ const p = _.filter(
832
+ (b) => b.id.toString().startsWith("drop-zone-")
797
833
  );
798
- if (f.length > 0)
799
- return f;
834
+ if (p.length > 0)
835
+ return p;
800
836
  }
801
- const b = $t(y).filter(
802
- (f) => f.id.toString().startsWith("drop-zone-")
837
+ const v = Mt(y).filter(
838
+ (p) => p.id.toString().startsWith("drop-zone-")
803
839
  );
804
- return b.length > 0 ? [b[0]] : [];
805
- }, []), ne = se((y) => y.some((g) => g.children && g.children.length > 0), []), Z = se((y, g) => {
806
- const l = (b, f, s = 0, C = null) => {
807
- for (const E of b) {
808
- if (E.key === f)
809
- return { column: E, parent: C, level: s };
810
- if (E.children && E.children.length > 0) {
811
- const w = l(E.children, f, s + 1, E);
812
- if (w) return w;
840
+ return v.length > 0 ? [v[0]] : [];
841
+ }, []), U = ue((y) => y.some((_) => _.children && _.children.length > 0), []), K = ue((y, _) => {
842
+ const m = (v, p, b = 0, x = null) => {
843
+ for (const O of v) {
844
+ if (O.key === p)
845
+ return { column: O, parent: x, level: b };
846
+ if (O.children && O.children.length > 0) {
847
+ const P = m(O.children, p, b + 1, O);
848
+ if (P) return P;
813
849
  }
814
850
  }
815
851
  return null;
816
852
  };
817
- return l(y, g);
818
- }, []), oe = se((y, g) => {
819
- var b;
820
- const l = Z(g, y);
821
- return l && (l.column.fixed || ((b = l.parent) == null ? void 0 : b.fixed)) || !1;
822
- }, [Z]), N = se((y, g) => {
823
- if (y.columnKey === g.columnKey)
853
+ return m(y, _);
854
+ }, []), ae = ue((y, _) => {
855
+ var v;
856
+ const m = K(_, y);
857
+ return m && (m.column.fixed || ((v = m.parent) == null ? void 0 : v.fixed)) || !1;
858
+ }, [K]), I = ue((y, _) => {
859
+ if (y.columnKey === _.columnKey)
824
860
  return !1;
825
- const l = oe(y.columnKey, r), b = oe(g.columnKey, r);
826
- if (l !== b)
861
+ const m = ae(y.columnKey, i), v = ae(_.columnKey, i);
862
+ if (m !== v)
827
863
  return !1;
828
- if (ne(r)) {
829
- const f = Z(r, y.columnKey), s = Z(r, g.columnKey);
830
- if (!f || !s)
864
+ if (U(i)) {
865
+ const p = K(i, y.columnKey), b = K(i, _.columnKey);
866
+ if (!p || !b)
831
867
  return !1;
832
- const C = y.isLeaf, E = g.isLeaf;
833
- if (!C && !E) {
834
- const w = f.level === s.level, $ = f.parent === null && s.parent === null || f.parent !== null && s.parent !== null && f.parent.key === s.parent.key;
835
- return w && $;
868
+ const x = y.isLeaf, O = _.isLeaf;
869
+ if (!x && !O) {
870
+ const P = p.level === b.level, D = p.parent === null && b.parent === null || p.parent !== null && b.parent !== null && p.parent.key === b.parent.key;
871
+ return P && D;
836
872
  }
837
- if (C && E) {
838
- const w = f.level === s.level, $ = f.parent === null && s.parent === null || f.parent !== null && s.parent !== null && f.parent.key === s.parent.key;
839
- return w && $;
873
+ if (x && O) {
874
+ const P = p.level === b.level, D = p.parent === null && b.parent === null || p.parent !== null && b.parent !== null && p.parent.key === b.parent.key;
875
+ return P && D;
840
876
  }
841
877
  return !1;
842
878
  }
843
879
  return !0;
844
- }, [r, ne, Z, oe]), u = se((y, g, l) => {
845
- var le, he;
846
- if (!ne(r)) {
847
- const z = l.findIndex((Y) => Y.key === y), F = l.findIndex((Y) => Y.key === g);
848
- if (z === -1 || F === -1)
849
- return l;
850
- const te = [...l], ie = te[z];
851
- te.splice(z, 1);
852
- const de = (z < F, F);
853
- return te.splice(de, 0, ie), te;
854
- }
855
- const b = Z(r, y), f = Z(r, g);
856
- if (!b || !f)
857
- return l;
858
- const s = JSON.parse(JSON.stringify(r)), C = (z, F) => {
859
- if (F === null)
860
- return { container: z, parentObj: null };
861
- const te = (de) => {
862
- for (const Y of de) {
863
- if (Y.key === F)
864
- return Y;
865
- if (Y.children) {
866
- const O = te(Y.children);
867
- if (O) return O;
880
+ }, [i, U, K, ae]), f = ue((y, _, m) => {
881
+ var R, J;
882
+ if (!U(i)) {
883
+ const S = m.findIndex((V) => V.key === y), E = m.findIndex((V) => V.key === _);
884
+ if (S === -1 || E === -1)
885
+ return m;
886
+ const A = [...m], N = A[S];
887
+ A.splice(S, 1);
888
+ const Q = (S < E, E);
889
+ return A.splice(Q, 0, N), A;
890
+ }
891
+ const v = K(i, y), p = K(i, _);
892
+ if (!v || !p)
893
+ return m;
894
+ const b = JSON.parse(JSON.stringify(i)), x = (S, E) => {
895
+ if (E === null)
896
+ return { container: S, parentObj: null };
897
+ const A = (Q) => {
898
+ for (const V of Q) {
899
+ if (V.key === E)
900
+ return V;
901
+ if (V.children) {
902
+ const M = A(V.children);
903
+ if (M) return M;
868
904
  }
869
905
  }
870
906
  return null;
871
- }, ie = te(z);
907
+ }, N = A(S);
872
908
  return {
873
- container: (ie == null ? void 0 : ie.children) || z,
874
- parentObj: ie
909
+ container: (N == null ? void 0 : N.children) || S,
910
+ parentObj: N
875
911
  };
876
- }, E = ((le = b.parent) == null ? void 0 : le.key) || null, w = ((he = f.parent) == null ? void 0 : he.key) || null, { container: $ } = C(s, E), { container: ee } = C(s, w);
877
- if ($ !== ee)
878
- return l;
879
- const J = $.findIndex((z) => z.key === y), X = $.findIndex((z) => z.key === g);
880
- if (J === -1 || X === -1)
881
- return l;
882
- const [H] = $.splice(J, 1), M = (J < X, X);
883
- return $.splice(M, 0, H), s;
884
- }, [r, ne, Z]), W = se((y) => {
885
- const g = y.active.data.current;
886
- x(g);
887
- const l = document.querySelector(`[data-column-key="${g.columnKey}"]`);
888
- if (l) {
889
- const b = l.getBoundingClientRect();
890
- V(b.width);
891
- const f = l.closest("table");
892
- l.closest('[style*="overflow"]');
893
- const s = f;
894
- if (s) {
895
- const C = s.getBoundingClientRect();
896
- P(C.height);
912
+ }, O = ((R = v.parent) == null ? void 0 : R.key) || null, P = ((J = p.parent) == null ? void 0 : J.key) || null, { container: D } = x(b, O), { container: H } = x(b, P);
913
+ if (D !== H)
914
+ return m;
915
+ const Z = D.findIndex((S) => S.key === y), G = D.findIndex((S) => S.key === _);
916
+ if (Z === -1 || G === -1)
917
+ return m;
918
+ const [L] = D.splice(Z, 1), ce = (Z < G, G);
919
+ return D.splice(ce, 0, L), b;
920
+ }, [i, U, K]), Y = ue((y) => {
921
+ const _ = y.active.data.current;
922
+ o(_);
923
+ const m = document.querySelector(`[data-column-key="${_.columnKey}"]`);
924
+ if (m) {
925
+ const v = m.getBoundingClientRect();
926
+ j(v.width);
927
+ const p = m.closest("table");
928
+ m.closest('[style*="overflow"]');
929
+ const b = p;
930
+ if (b) {
931
+ const x = b.getBoundingClientRect();
932
+ c(x.height);
897
933
  } else
898
- P(400);
934
+ c(400);
899
935
  } else
900
- P(400), V(200);
936
+ c(400), j(200);
901
937
  document.body.style.cursor = "grabbing";
902
- }, []), v = se((y) => {
903
- const { active: g, over: l } = y;
904
- if (!l || !g.data.current) {
905
- document.body.style.cursor = "grabbing", L(null);
938
+ }, []), k = ue((y) => {
939
+ const { active: _, over: m } = y;
940
+ if (!m || !_.data.current) {
941
+ document.body.style.cursor = "grabbing", T(null);
906
942
  return;
907
943
  }
908
- const b = g.data.current, f = l.data.current;
909
- if (!f) {
910
- document.body.style.cursor = "grabbing", L(null);
944
+ const v = _.data.current, p = m.data.current;
945
+ if (!p) {
946
+ document.body.style.cursor = "grabbing", T(null);
911
947
  return;
912
948
  }
913
- const s = N(b, f);
914
- document.body.style.cursor = s ? "copy" : "not-allowed";
915
- const C = document.querySelectorAll(`th[data-column-key="${f.columnKey}"]`), E = ne(r), w = C.length > 0 ? E && f.isLeaf ? C[C.length - 1] : C[0] : null;
916
- if (w) {
917
- const $ = w.getBoundingClientRect(), ee = w.closest("table");
918
- let J = $.left;
919
- const X = d == null ? void 0 : d.current;
920
- let H, M;
921
- if (X) {
922
- const le = X.getBoundingClientRect();
923
- H = le.top, M = le.height;
924
- } else if (ee) {
925
- const le = ee.getBoundingClientRect();
926
- H = le.top, M = le.height;
949
+ const b = I(v, p);
950
+ document.body.style.cursor = b ? "copy" : "not-allowed";
951
+ const x = document.querySelectorAll(`th[data-column-key="${p.columnKey}"]`), O = U(i), P = x.length > 0 ? O && p.isLeaf ? x[x.length - 1] : x[0] : null;
952
+ if (P) {
953
+ const D = P.getBoundingClientRect(), H = P.closest("table");
954
+ let Z = D.left;
955
+ const G = r == null ? void 0 : r.current;
956
+ let L, ce;
957
+ if (G) {
958
+ const R = G.getBoundingClientRect();
959
+ L = R.top, ce = R.height;
960
+ } else if (H) {
961
+ const R = H.getBoundingClientRect();
962
+ L = R.top, ce = R.height;
927
963
  } else
928
- H = $.top, M = $.height * 10;
929
- L({
930
- left: J,
931
- top: H,
932
- height: M,
933
- color: s ? "#5329FF" : "#ff3b3b"
964
+ L = D.top, ce = D.height * 10;
965
+ T({
966
+ left: Z,
967
+ top: L,
968
+ height: ce,
969
+ color: b ? "#5329FF" : "#ff3b3b"
934
970
  });
935
971
  } else
936
- L(null);
937
- }, [N]), T = se((y) => {
938
- const { active: g, over: l } = y;
939
- if (document.body.style.cursor = "", x(null), P(40), V(200), L(null), !l || !g.data.current || !l.data.current)
972
+ T(null);
973
+ }, [I]), B = ue((y) => {
974
+ const { active: _, over: m } = y;
975
+ if (document.body.style.cursor = "", o(null), c(40), j(200), T(null), !m || !_.data.current || !m.data.current)
940
976
  return;
941
- const b = g.data.current, f = l.data.current;
942
- if (N(b, f) && c) {
943
- const s = u(
944
- b.columnKey,
945
- f.columnKey,
946
- r
977
+ const v = _.data.current, p = m.data.current;
978
+ if (I(v, p) && t) {
979
+ const b = f(
980
+ v.columnKey,
981
+ p.columnKey,
982
+ i
947
983
  );
948
- s._dragInfo = {
949
- draggedKey: b.columnKey,
950
- targetKey: f.columnKey,
951
- draggedIndex: b.index,
984
+ b._dragInfo = {
985
+ draggedKey: v.columnKey,
986
+ targetKey: p.columnKey,
987
+ draggedIndex: v.index,
952
988
  targetIndex: -1
953
989
  // будет вычислен в TableHeader если нужно
954
- }, c(s);
990
+ }, t(b);
955
991
  }
956
- }, [N, c, u, r]), q = {
957
- activeColumn: k,
958
- isValidDropZone: N
992
+ }, [I, t, f, i]), ie = {
993
+ activeColumn: s,
994
+ isValidDropZone: I
959
995
  };
960
- return /* @__PURE__ */ n.jsx(ct.Provider, { value: q, children: /* @__PURE__ */ n.jsxs(
961
- Ot,
996
+ return /* @__PURE__ */ l.jsx(bt.Provider, { value: ie, children: /* @__PURE__ */ l.jsxs(
997
+ At,
962
998
  {
963
- sensors: G,
964
- collisionDetection: Q,
965
- onDragStart: W,
966
- onDragOver: v,
967
- onDragEnd: T,
999
+ sensors: q,
1000
+ collisionDetection: X,
1001
+ onDragStart: Y,
1002
+ onDragOver: k,
1003
+ onDragEnd: B,
968
1004
  children: [
969
- t,
970
- /* @__PURE__ */ n.jsx(Dt, { dropAnimation: null, children: k ? /* @__PURE__ */ n.jsx(
1005
+ n,
1006
+ /* @__PURE__ */ l.jsx(zt, { dropAnimation: null, children: s ? /* @__PURE__ */ l.jsx(
971
1007
  "div",
972
1008
  {
973
1009
  style: {
974
- width: `${_}px`,
975
- height: `${R}px`,
1010
+ width: `${u}px`,
1011
+ height: `${a}px`,
976
1012
  backgroundColor: "#5329FF",
977
1013
  opacity: 0.5,
978
1014
  borderRadius: "4px",
@@ -981,16 +1017,16 @@ function Mt({
981
1017
  }
982
1018
  }
983
1019
  ) : null }),
984
- S && /* @__PURE__ */ n.jsx(
1020
+ g && /* @__PURE__ */ l.jsx(
985
1021
  "div",
986
1022
  {
987
1023
  style: {
988
1024
  position: "fixed",
989
- left: `${S.left}px`,
990
- top: `${S.top}px`,
1025
+ left: `${g.left}px`,
1026
+ top: `${g.top}px`,
991
1027
  width: "2px",
992
- height: `${S.height}px`,
993
- backgroundColor: S.color,
1028
+ height: `${g.height}px`,
1029
+ backgroundColor: g.color,
994
1030
  zIndex: 1e4,
995
1031
  pointerEvents: "none",
996
1032
  opacity: 0.2
@@ -1001,260 +1037,260 @@ function Mt({
1001
1037
  }
1002
1038
  ) });
1003
1039
  }
1004
- const Bt = (t) => {
1005
- var r;
1006
- return typeof window < "u" && ((r = window.CSS) != null && r.escape) ? window.CSS.escape(t) : t.replace(/([#.;?\[\]\s])/g, "\\$1");
1007
- }, Vt = (t) => {
1040
+ const Gt = (n) => {
1041
+ var i;
1042
+ return typeof window < "u" && ((i = window.CSS) != null && i.escape) ? window.CSS.escape(n) : n.replace(/([#.;?\[\]\s])/g, "\\$1");
1043
+ }, Xt = (n) => {
1008
1044
  if (typeof document > "u") return null;
1009
- const r = `th[data-column-key="${Bt(t)}"]`, c = document.querySelector(r);
1010
- return c ? c.getBoundingClientRect().width : null;
1045
+ const i = `th[data-column-key="${Gt(n)}"]`, t = document.querySelector(i);
1046
+ return t ? t.getBoundingClientRect().width : null;
1011
1047
  };
1012
- function Jt({
1013
- column: t,
1014
- index: r,
1015
- config: c,
1016
- fullConfig: d,
1017
- sorting: k,
1018
- onSort: x,
1019
- onResize: R,
1020
- sortIcon: P,
1021
- resizeable: _,
1022
- draggableColumns: V,
1023
- preset: S,
1024
- headerCellClassName: L,
1025
- headerCellStyle: G,
1026
- headerCellWrapperClassName: Q,
1027
- headerCellWrapperStyle: ne,
1028
- stickyHeader: Z,
1029
- scrollContainerRef: oe,
1030
- resizeThrottle: N
1048
+ function Qt({
1049
+ column: n,
1050
+ index: i,
1051
+ config: t,
1052
+ fullConfig: r,
1053
+ sorting: s,
1054
+ onSort: o,
1055
+ onResize: a,
1056
+ sortIcon: c,
1057
+ resizeable: u,
1058
+ draggableColumns: j,
1059
+ preset: g,
1060
+ headerCellClassName: T,
1061
+ headerCellStyle: q,
1062
+ headerCellWrapperClassName: X,
1063
+ headerCellWrapperStyle: U,
1064
+ stickyHeader: K,
1065
+ scrollContainerRef: ae,
1066
+ resizeThrottle: I
1031
1067
  }) {
1032
- var Y;
1033
- if (t.hidden)
1068
+ var V;
1069
+ if (n.hidden)
1034
1070
  return null;
1035
- const { activeColumn: u, isValidDropZone: W } = zt(), v = !t.children || t.children.length === 0;
1036
- Ae(() => (d == null ? void 0 : d.some((O) => O.children && O.children.length > 0)) || !1, [d]);
1037
- const T = V, y = se((O) => {
1038
- if (!d) return null;
1039
- const re = (A, a, m = null) => {
1040
- for (const h of A) {
1041
- if (h.key === a)
1042
- return m;
1043
- if (h.children && h.children.length > 0) {
1044
- const o = re(h.children, a, h);
1045
- if (o !== null) return o;
1071
+ const { activeColumn: f, isValidDropZone: Y } = Yt(), k = !n.children || n.children.length === 0;
1072
+ Ye(() => (r == null ? void 0 : r.some((M) => M.children && M.children.length > 0)) || !1, [r]);
1073
+ const B = j, y = ue((M) => {
1074
+ if (!r) return null;
1075
+ const ne = (ee, ve, be = null) => {
1076
+ for (const le of ee) {
1077
+ if (le.key === ve)
1078
+ return be;
1079
+ if (le.children && le.children.length > 0) {
1080
+ const he = ne(le.children, ve, le);
1081
+ if (he !== null) return he;
1046
1082
  }
1047
1083
  }
1048
1084
  return null;
1049
1085
  };
1050
- return re(d, O);
1051
- }, [d])(t.key), g = t.fixed || (y == null ? void 0 : y.fixed) || !1, b = se((O) => {
1052
- if (!d) return 0;
1053
- const re = (A, a, m = 0) => {
1054
- for (const h of A) {
1055
- if (h.key === a)
1056
- return m;
1057
- if (h.children && h.children.length > 0) {
1058
- const o = re(h.children, a, m + 1);
1059
- if (o !== -1) return o;
1086
+ return ne(r, M);
1087
+ }, [r])(n.key), _ = n.fixed || (y == null ? void 0 : y.fixed) || !1, v = ue((M) => {
1088
+ if (!r) return 0;
1089
+ const ne = (ee, ve, be = 0) => {
1090
+ for (const le of ee) {
1091
+ if (le.key === ve)
1092
+ return be;
1093
+ if (le.children && le.children.length > 0) {
1094
+ const he = ne(le.children, ve, be + 1);
1095
+ if (he !== -1) return he;
1060
1096
  }
1061
1097
  }
1062
1098
  return -1;
1063
1099
  };
1064
- return re(d, O);
1065
- }, [d])(t.key), {
1066
- attributes: f,
1067
- listeners: s,
1068
- setNodeRef: C,
1069
- isDragging: E
1070
- } = Pt({
1071
- id: `column-${t.key}`,
1100
+ return ne(r, M);
1101
+ }, [r])(n.key), {
1102
+ attributes: p,
1103
+ listeners: b,
1104
+ setNodeRef: x,
1105
+ isDragging: O
1106
+ } = Ft({
1107
+ id: `column-${n.key}`,
1072
1108
  data: {
1073
1109
  type: "table-column",
1074
- columnKey: t.key,
1075
- isFixed: g,
1110
+ columnKey: n.key,
1111
+ isFixed: _,
1076
1112
  parentKey: y == null ? void 0 : y.key,
1077
- level: b,
1078
- index: r,
1079
- isLeaf: v
1113
+ level: v,
1114
+ index: i,
1115
+ isLeaf: k
1080
1116
  // ✅ Добавляем информацию о типе колонки
1081
1117
  },
1082
- disabled: !T
1118
+ disabled: !B
1083
1119
  }), {
1084
- setNodeRef: w,
1085
- isOver: $
1086
- } = Lt({
1087
- id: `drop-zone-${t.key}`,
1120
+ setNodeRef: P,
1121
+ isOver: D
1122
+ } = Bt({
1123
+ id: `drop-zone-${n.key}`,
1088
1124
  data: {
1089
1125
  type: "column-drop-zone",
1090
- columnKey: t.key,
1091
- isFixed: g,
1092
- accepts: [g ? "fixed" : "non-fixed"],
1093
- isLeaf: v
1126
+ columnKey: n.key,
1127
+ isFixed: _,
1128
+ accepts: [_ ? "fixed" : "non-fixed"],
1129
+ isLeaf: k
1094
1130
  // ✅ Добавляем информацию о типе колонки
1095
1131
  },
1096
1132
  disabled: !1
1097
- }), ee = se((O) => {
1098
- C(O), w(O);
1099
- }, [C, w]), J = Ae(() => {
1100
- if (!u || !$) return !1;
1101
- const O = {
1133
+ }), H = ue((M) => {
1134
+ x(M), P(M);
1135
+ }, [x, P]), Z = Ye(() => {
1136
+ if (!f || !D) return !1;
1137
+ const M = {
1102
1138
  type: "column-drop-zone",
1103
- columnKey: t.key,
1104
- isFixed: g,
1105
- accepts: [g ? "fixed" : "non-fixed"],
1106
- isLeaf: v
1139
+ columnKey: n.key,
1140
+ isFixed: _,
1141
+ accepts: [_ ? "fixed" : "non-fixed"],
1142
+ isLeaf: k
1107
1143
  };
1108
- return W(u, O);
1109
- }, [u, $, t.key, g, W, v]), X = Ae(() => E ? "grabbing" : $ && u ? J ? "copy" : "not-allowed" : "default", [E, $, u, J]), H = t.fixed && !t.width ? 200 : t.width, M = t.fixed && !t.minWidth ? 200 : t.minWidth, le = se(() => {
1110
- let O = t.fixedLeft || 0;
1111
- if (!g)
1112
- return O;
1113
- for (let re = 0; re < r; re++) {
1114
- const A = c[re];
1115
- A.fixed && !A.hidden && (O += (A.width || A.minWidth || 200) + (A.fixedLeft || 0));
1116
- }
1117
- return O;
1118
- }, [t.fixedLeft, c, r, g]), [he, z] = pe(() => le());
1119
- lt(() => {
1120
- if (!g) {
1121
- z(le());
1144
+ return Y(f, M);
1145
+ }, [f, D, n.key, _, Y, k]), G = Ye(() => O ? "grabbing" : D && f ? Z ? "copy" : "not-allowed" : "default", [O, D, f, Z]), L = n.fixed && !n.width ? 200 : n.width, ce = n.fixed && !n.minWidth ? 200 : n.minWidth, R = ue(() => {
1146
+ let M = n.fixedLeft || 0;
1147
+ if (!_)
1148
+ return M;
1149
+ for (let ne = 0; ne < i; ne++) {
1150
+ const ee = t[ne];
1151
+ ee.fixed && !ee.hidden && (M += (ee.width || ee.minWidth || 200) + (ee.fixedLeft || 0));
1152
+ }
1153
+ return M;
1154
+ }, [n.fixedLeft, t, i, _]), [J, S] = ye(() => R());
1155
+ Qe(() => {
1156
+ if (!_) {
1157
+ S(R());
1122
1158
  return;
1123
1159
  }
1124
- let O = t.fixedLeft || 0;
1125
- for (let re = 0; re < r; re++) {
1126
- const A = c[re];
1127
- if (A.fixed && !A.hidden) {
1128
- const a = A.width || A.minWidth || 200, m = Vt(A.key);
1129
- O += Math.floor(m ?? a) + (A.fixedLeft || 0) - 0.05;
1130
- }
1131
- }
1132
- z(O);
1133
- }, [t.fixedLeft, t.width, t.minWidth, c, r, g, le]);
1134
- const te = ((O) => {
1135
- if (O.groupColor)
1136
- return O.groupColor;
1137
- if (d) {
1138
- const re = (a, m) => {
1139
- for (const h of a)
1140
- if (h.children) {
1141
- if (h.children.some((D) => D.key === m))
1142
- return h;
1143
- const o = re(h.children, m);
1144
- if (o) return o;
1160
+ let M = n.fixedLeft || 0;
1161
+ for (let ne = 0; ne < i; ne++) {
1162
+ const ee = t[ne];
1163
+ if (ee.fixed && !ee.hidden) {
1164
+ const ve = ee.width || ee.minWidth || 200, be = Xt(ee.key);
1165
+ M += Math.floor(be ?? ve) + (ee.fixedLeft || 0) - 0.05;
1166
+ }
1167
+ }
1168
+ S(M);
1169
+ }, [n.fixedLeft, n.width, n.minWidth, t, i, _, R]);
1170
+ const A = ((M) => {
1171
+ if (M.groupColor)
1172
+ return M.groupColor;
1173
+ if (r) {
1174
+ const ne = (ve, be) => {
1175
+ for (const le of ve)
1176
+ if (le.children) {
1177
+ if (le.children.some((Oe) => Oe.key === be))
1178
+ return le;
1179
+ const he = ne(le.children, be);
1180
+ if (he) return he;
1145
1181
  }
1146
1182
  return null;
1147
- }, A = re(d, O.key);
1148
- return A == null ? void 0 : A.groupColor;
1183
+ }, ee = ne(r, M.key);
1184
+ return ee == null ? void 0 : ee.groupColor;
1149
1185
  }
1150
- })(t);
1151
- let ie = "currentColor", de = "currentColor";
1152
- return k.sort_field === t.key && (k.sort_order === "ASC" && (ie = "#5329FF"), k.sort_order === "DESC" && (de = "#5329FF")), /* @__PURE__ */ n.jsx(
1186
+ })(n);
1187
+ let N = "currentColor", Q = "currentColor";
1188
+ return s.sort_field === n.key && (s.sort_order === "ASC" && (N = "#5329FF"), s.sort_order === "DESC" && (Q = "#5329FF")), /* @__PURE__ */ l.jsx(
1153
1189
  "th",
1154
1190
  {
1155
- ref: ee,
1156
- "data-column-key": t.key,
1191
+ ref: H,
1192
+ "data-column-key": n.key,
1157
1193
  className: `
1158
1194
  radar-table__header-cell
1159
- ${S ? S + "__header-cell" : ""}
1160
- ${L || ""}
1161
- ${E ? "dragging" : ""}
1162
- ${$ ? "drag-over" : ""}
1163
- ${J && $ ? "valid-drop-zone" : ""}
1164
- ${$ && !J ? "invalid-drop-zone" : ""}
1165
- ${v ? "leaf-header" : "group-header"}
1166
- ${t.className || ""}`,
1167
- colSpan: t.colSpan || 1,
1168
- rowSpan: t.rowSpan || 1,
1195
+ ${g ? g + "__header-cell" : ""}
1196
+ ${T || ""}
1197
+ ${O ? "dragging" : ""}
1198
+ ${D ? "drag-over" : ""}
1199
+ ${Z && D ? "valid-drop-zone" : ""}
1200
+ ${D && !Z ? "invalid-drop-zone" : ""}
1201
+ ${k ? "leaf-header" : "group-header"}
1202
+ ${n.className || ""}`,
1203
+ colSpan: n.colSpan || 1,
1204
+ rowSpan: n.rowSpan || 1,
1169
1205
  style: {
1170
- width: H,
1206
+ width: L,
1171
1207
  //minWidth: currWidth,
1172
- position: t.fixed ? "sticky" : "static",
1173
- top: Z && typeof Z == "number" ? Z : 0,
1174
- left: he,
1175
- borderRight: t.fixed && !((Y = c[r + 1]) != null && Y.fixed) ? "1px solid #E8E8E8" : "none",
1176
- zIndex: t.fixed ? 2 : "auto",
1177
- backgroundColor: te,
1178
- cursor: X,
1179
- ...G,
1180
- ...t.style
1208
+ position: n.fixed ? "sticky" : "static",
1209
+ top: K && typeof K == "number" ? K : 0,
1210
+ left: J,
1211
+ borderRight: n.fixed && !((V = t[i + 1]) != null && V.fixed) ? "1px solid #E8E8E8" : "none",
1212
+ zIndex: n.fixed ? 2 : "auto",
1213
+ backgroundColor: A,
1214
+ cursor: G,
1215
+ ...q,
1216
+ ...n.style
1181
1217
  },
1182
- children: /* @__PURE__ */ n.jsxs(
1218
+ children: /* @__PURE__ */ l.jsxs(
1183
1219
  "div",
1184
1220
  {
1185
1221
  className: `
1186
1222
  radar-table__header-cell-wrapper
1187
- ${S ? S + "__header-cell-wrapper" : ""}
1188
- ${Q || ""}
1223
+ ${g ? g + "__header-cell-wrapper" : ""}
1224
+ ${X || ""}
1189
1225
  `,
1190
- style: ne,
1226
+ style: U,
1191
1227
  children: [
1192
- T && /* @__PURE__ */ n.jsx(
1228
+ B && /* @__PURE__ */ l.jsx(
1193
1229
  "div",
1194
1230
  {
1195
- className: `radar-table__drag-handle ${E ? "dragging" : ""} ${v ? "" : "group-drag-handle"}`,
1196
- ...f,
1197
- ...s,
1198
- style: { cursor: E ? "grabbing" : "grab" },
1199
- children: /* @__PURE__ */ n.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1200
- /* @__PURE__ */ n.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" }),
1201
- /* @__PURE__ */ n.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" }),
1202
- /* @__PURE__ */ n.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" }),
1203
- /* @__PURE__ */ n.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" }),
1204
- /* @__PURE__ */ n.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" }),
1205
- /* @__PURE__ */ n.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" })
1231
+ className: `radar-table__drag-handle ${O ? "dragging" : ""} ${k ? "" : "group-drag-handle"}`,
1232
+ ...p,
1233
+ ...b,
1234
+ style: { cursor: O ? "grabbing" : "grab" },
1235
+ children: /* @__PURE__ */ l.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1236
+ /* @__PURE__ */ l.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" }),
1237
+ /* @__PURE__ */ l.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" }),
1238
+ /* @__PURE__ */ l.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" }),
1239
+ /* @__PURE__ */ l.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" }),
1240
+ /* @__PURE__ */ l.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" }),
1241
+ /* @__PURE__ */ l.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" })
1206
1242
  ] })
1207
1243
  }
1208
1244
  ),
1209
- /* @__PURE__ */ n.jsx("div", { className: "radar-table__header-cell-text-wrapper", children: /* @__PURE__ */ n.jsx(
1245
+ /* @__PURE__ */ l.jsx("div", { className: "radar-table__header-cell-text-wrapper", children: /* @__PURE__ */ l.jsx(
1210
1246
  "span",
1211
1247
  {
1212
- title: t.title,
1248
+ title: n.title,
1213
1249
  onClick: () => {
1214
- const { sort_field: O, sort_order: re } = k;
1215
- let A = {
1216
- columnKey: t.key,
1250
+ const { sort_field: M, sort_order: ne } = s;
1251
+ let ee = {
1252
+ columnKey: n.key,
1217
1253
  direction: "ASC"
1218
1254
  };
1219
- O === t.key ? re === "ASC" ? A.direction = "DESC" : re === "DESC" && (A.columnKey = void 0, A.direction = void 0) : (A.columnKey = t.key, A.direction = "ASC"), x(A.columnKey, A.direction);
1255
+ M === n.key ? ne === "ASC" ? ee.direction = "DESC" : ne === "DESC" && (ee.columnKey = void 0, ee.direction = void 0) : (ee.columnKey = n.key, ee.direction = "ASC"), o(ee.columnKey, ee.direction);
1220
1256
  },
1221
1257
  style: {
1222
- cursor: t.sortable ? "pointer" : "default",
1258
+ cursor: n.sortable ? "pointer" : "default",
1223
1259
  userSelect: "none"
1224
1260
  },
1225
- children: t.title
1261
+ children: n.title
1226
1262
  }
1227
1263
  ) }),
1228
- t.sortable && !P && v && /* @__PURE__ */ n.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
1229
- /* @__PURE__ */ n.jsx(
1264
+ n.sortable && !c && k && /* @__PURE__ */ l.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
1265
+ /* @__PURE__ */ l.jsx(
1230
1266
  "button",
1231
1267
  {
1232
1268
  className: "radar-table__sort-button",
1233
- onClick: (O) => x(t.key, "ASC"),
1234
- title: `Сортировать по ${t.title}`,
1235
- children: /* @__PURE__ */ n.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__ */ n.jsx("path", { fill: ie, 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" }) })
1269
+ onClick: (M) => o(n.key, "ASC"),
1270
+ title: `Сортировать по ${n.title}`,
1271
+ children: /* @__PURE__ */ l.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__ */ l.jsx("path", { fill: N, 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" }) })
1236
1272
  }
1237
1273
  ),
1238
- /* @__PURE__ */ n.jsx(
1274
+ /* @__PURE__ */ l.jsx(
1239
1275
  "button",
1240
1276
  {
1241
1277
  className: "radar-table__sort-button",
1242
- onClick: (O) => x(t.key, "DESC"),
1243
- title: `Сортировать по ${t.title}`,
1244
- children: /* @__PURE__ */ n.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__ */ n.jsx("path", { fill: de, 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" }) })
1278
+ onClick: (M) => o(n.key, "DESC"),
1279
+ title: `Сортировать по ${n.title}`,
1280
+ children: /* @__PURE__ */ l.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__ */ l.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" }) })
1245
1281
  }
1246
1282
  )
1247
1283
  ] }),
1248
- t.sortable && P && v && P(k.sort_field, k.sort_order),
1249
- t.tooltipText && /* @__PURE__ */ n.jsx(At, { text: t.tooltipText, children: t.tooltipIcon }),
1250
- _ && v && /* @__PURE__ */ n.jsx(
1251
- Ft,
1284
+ n.sortable && c && k && c(s.sort_field, s.sort_order),
1285
+ n.tooltipText && /* @__PURE__ */ l.jsx(Ut, { text: n.tooltipText, children: n.tooltipIcon }),
1286
+ u && k && /* @__PURE__ */ l.jsx(
1287
+ Jt,
1252
1288
  {
1253
- column: t,
1254
- currWidth: H,
1255
- currMinWidth: M,
1256
- onResize: R,
1257
- scrollContainerRef: oe
1289
+ column: n,
1290
+ currWidth: L,
1291
+ currMinWidth: ce,
1292
+ onResize: a,
1293
+ scrollContainerRef: ae
1258
1294
  }
1259
1295
  )
1260
1296
  ]
@@ -1263,381 +1299,986 @@ function Jt({
1263
1299
  }
1264
1300
  );
1265
1301
  }
1266
- function nt({
1267
- config: t,
1268
- fullConfig: r,
1269
- onSort: c,
1270
- onResize: d,
1271
- onColumnReorder: k,
1272
- // ✅ Сохранен (понадобится для передачи в TableDndProvider)
1273
- sortIcon: x,
1274
- resizeable: R,
1275
- draggableColumns: P,
1276
- preset: _,
1277
- headerClassName: V,
1278
- headerStyle: S,
1279
- headerRowClassName: L,
1280
- headerRowStyle: G,
1281
- headerCellClassName: Q,
1282
- headerCellStyle: ne,
1283
- headerCellWrapperClassName: Z,
1284
- headerCellWrapperStyle: oe,
1285
- stickyHeader: N,
1286
- scrollContainerRef: u,
1287
- // ✅ Сохранен (для передачи в HeaderCell)
1288
- sorting: W,
1289
- defaultSorting: v,
1290
- resizeThrottle: T
1302
+ function ct({
1303
+ config: n,
1304
+ fullConfig: i,
1305
+ onSort: t,
1306
+ onResize: r,
1307
+ onColumnReorder: s,
1308
+ sortIcon: o,
1309
+ resizeable: a,
1310
+ draggableColumns: c,
1311
+ preset: u,
1312
+ headerClassName: j,
1313
+ headerStyle: g,
1314
+ headerRowClassName: T,
1315
+ headerRowStyle: q,
1316
+ headerCellClassName: X,
1317
+ headerCellStyle: U,
1318
+ headerCellWrapperClassName: K,
1319
+ headerCellWrapperStyle: ae,
1320
+ stickyHeader: I,
1321
+ scrollContainerRef: f,
1322
+ sorting: Y,
1323
+ defaultSorting: k,
1324
+ resizeThrottle: B
1291
1325
  }) {
1292
- const [q, y] = pe(() => v || { sort_field: void 0, sort_order: void 0 }), g = W !== void 0, l = g ? W : q;
1293
- Ie(() => {
1294
- !g && v && y(v);
1295
- }, [v, g]);
1296
- const b = se((f, s) => {
1297
- const { sort_field: C, sort_order: E } = l;
1298
- let w = {
1299
- sort_field: f,
1300
- sort_order: s
1326
+ const [ie, y] = ye(() => k || { sort_field: void 0, sort_order: void 0 }), [_, m] = ye(null), v = Y !== void 0, p = v ? Y : ie;
1327
+ He(() => {
1328
+ !v && k && y(k);
1329
+ }, [k, v]);
1330
+ const b = ue((x, O) => {
1331
+ const { sort_field: P, sort_order: D } = p;
1332
+ let H = {
1333
+ sort_field: x,
1334
+ sort_order: O
1301
1335
  };
1302
- C === f && E === s && (w = {
1336
+ P === x && D === O && (H = {
1303
1337
  sort_field: void 0,
1304
1338
  sort_order: void 0
1305
- }), g || y(w), c == null || c(w.sort_field, w.sort_order);
1306
- }, [l, c, g]);
1307
- return /* @__PURE__ */ n.jsx(
1339
+ }), v || y(H), t == null || t(H.sort_field, H.sort_order);
1340
+ }, [p, t, v]);
1341
+ return Qe(() => {
1342
+ if (n.some((x) => x.children || !a)) {
1343
+ m(n);
1344
+ return;
1345
+ } else {
1346
+ const x = () => {
1347
+ const O = f == null ? void 0 : f.current;
1348
+ if (!O) return;
1349
+ const P = O.clientWidth, D = n.reduce((Z, G) => Z + ((G == null ? void 0 : G.width) ?? 0), 0);
1350
+ if (D > P) {
1351
+ m(n);
1352
+ return;
1353
+ }
1354
+ const H = n.map((Z) => {
1355
+ const G = ((Z == null ? void 0 : Z.width) ?? 0) / D, L = Math.floor(P * G);
1356
+ return Z.width = Math.round(L), Z.maxWidth = L * 2, Z;
1357
+ });
1358
+ m([...H]), requestAnimationFrame(() => {
1359
+ const Z = (J) => {
1360
+ var S;
1361
+ return typeof window < "u" && ((S = window.CSS) != null && S.escape) ? window.CSS.escape(J) : J.replace(/([#.;?\[\]\s])/g, "\\$1");
1362
+ }, G = O.querySelector("table");
1363
+ if (!G) return;
1364
+ H.forEach((J) => {
1365
+ if (J.hidden) return;
1366
+ const S = Z(J.key), E = J.width || J.minWidth || 200, A = G.querySelector(`th[data-column-key="${S}"]`);
1367
+ A && (A.style.width = `${E}px`, A.style.minWidth = `${E}px`), G.querySelectorAll(`td[data-column-key="${S}"]`).forEach((Q) => {
1368
+ Q.style.width = `${E}px`;
1369
+ });
1370
+ });
1371
+ const L = (J) => window.getComputedStyle(J).position === "sticky", R = Array.from(
1372
+ G.querySelectorAll("th.radar-table__header-cell.leaf-header")
1373
+ ).filter((J) => L(J));
1374
+ if (R.length > 0) {
1375
+ let J = 0;
1376
+ R.forEach((S, E) => {
1377
+ if (E === 0) {
1378
+ const N = S.getAttribute("data-column-key"), Q = H.find((V) => V.key === N);
1379
+ J = (Q == null ? void 0 : Q.fixedLeft) || 0, S.style.left = `${J}px`;
1380
+ } else {
1381
+ const N = R[E - 1].getBoundingClientRect().width;
1382
+ J += Math.floor(N), S.style.left = `${J}px`;
1383
+ }
1384
+ const A = S.getAttribute("data-column-key");
1385
+ if (A) {
1386
+ const N = Z(A);
1387
+ G.querySelectorAll(`td[data-column-key="${N}"]`).forEach((V) => {
1388
+ V.style.left = `${S.style.left}`;
1389
+ });
1390
+ }
1391
+ });
1392
+ }
1393
+ });
1394
+ };
1395
+ return x(), window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
1396
+ }
1397
+ }, [n]), /* @__PURE__ */ l.jsx(
1308
1398
  "tr",
1309
1399
  {
1310
- className: `radar-table__header-row ${_ ? _ + "__header-row" : ""} ${L || ""}`,
1311
- style: G,
1312
- children: t.map((f, s) => /* @__PURE__ */ n.jsx(
1313
- Jt,
1400
+ className: `radar-table__header-row ${u ? u + "__header-row" : ""} ${T || ""}`,
1401
+ style: q,
1402
+ children: _ == null ? void 0 : _.map((x, O) => /* @__PURE__ */ l.jsx(
1403
+ Qt,
1314
1404
  {
1315
- column: f,
1316
- index: s,
1317
- config: t,
1318
- fullConfig: r,
1319
- sorting: l,
1405
+ column: x,
1406
+ index: O,
1407
+ config: n,
1408
+ fullConfig: i,
1409
+ sorting: p,
1320
1410
  onSort: b,
1321
- onResize: d,
1322
- sortIcon: x,
1323
- resizeable: R,
1324
- draggableColumns: P,
1325
- preset: _,
1326
- headerCellClassName: Q,
1327
- headerCellStyle: ne,
1328
- headerCellWrapperClassName: Z,
1329
- headerCellWrapperStyle: oe,
1330
- stickyHeader: N,
1331
- scrollContainerRef: u,
1332
- resizeThrottle: T
1411
+ onResize: r,
1412
+ sortIcon: o,
1413
+ resizeable: a,
1414
+ draggableColumns: c,
1415
+ preset: u,
1416
+ headerCellClassName: X,
1417
+ headerCellStyle: U,
1418
+ headerCellWrapperClassName: K,
1419
+ headerCellWrapperStyle: ae,
1420
+ stickyHeader: I,
1421
+ scrollContainerRef: f,
1422
+ resizeThrottle: B
1333
1423
  },
1334
- f.key
1424
+ x.key
1335
1425
  ))
1336
1426
  }
1337
1427
  );
1338
1428
  }
1339
- function Ht(t) {
1429
+ function en(n) {
1340
1430
  const {
1341
- config: r,
1342
- preset: c,
1343
- headerClassName: d,
1344
- headerStyle: k,
1345
- stickyHeader: x,
1346
- headerRowClassName: R,
1347
- headerRowStyle: P,
1348
- headerCellClassName: _,
1349
- headerCellStyle: V,
1350
- headerCellWrapperClassName: S,
1351
- headerCellWrapperStyle: L,
1352
- onResize: G,
1353
- onColumnReorder: Q,
1354
- sorting: ne,
1355
- defaultSorting: Z
1356
- } = t, oe = r.some((v) => v.children && v.children.length > 0), N = Ae(() => {
1357
- if (!oe)
1431
+ config: i,
1432
+ preset: t,
1433
+ headerClassName: r,
1434
+ headerStyle: s,
1435
+ stickyHeader: o,
1436
+ headerRowClassName: a,
1437
+ headerRowStyle: c,
1438
+ headerCellClassName: u,
1439
+ headerCellStyle: j,
1440
+ headerCellWrapperClassName: g,
1441
+ headerCellWrapperStyle: T,
1442
+ onResize: q,
1443
+ onColumnReorder: X,
1444
+ sorting: U,
1445
+ defaultSorting: K
1446
+ } = n, ae = i.some((k) => k.children && k.children.length > 0), I = Ye(() => {
1447
+ if (!ae)
1358
1448
  return null;
1359
- const v = {}, T = (q, y = 0) => {
1360
- v[y] || (v[y] = []), q.forEach((g) => {
1361
- g.hidden || (v[y].push(g), g.children && g.children.length > 0 && T(g.children, y + 1));
1449
+ const k = {}, B = (ie, y = 0) => {
1450
+ k[y] || (k[y] = []), ie.forEach((_) => {
1451
+ _.hidden || (k[y].push(_), _.children && _.children.length > 0 && B(_.children, y + 1));
1362
1452
  });
1363
1453
  };
1364
- return T(r), v;
1365
- }, [r, oe]), u = se((v, T) => {
1366
- if (!G) return;
1367
- const q = (l, b) => {
1368
- for (const f of l) {
1369
- if (f.key === b) return f;
1370
- if (f.children) {
1371
- const s = q(f.children, b);
1372
- if (s) return s;
1454
+ return B(i), k;
1455
+ }, [i, ae]), f = ue((k, B) => {
1456
+ if (!q) return;
1457
+ const ie = (m, v) => {
1458
+ for (const p of m) {
1459
+ if (p.key === v) return p;
1460
+ if (p.children) {
1461
+ const b = ie(p.children, v);
1462
+ if (b) return b;
1373
1463
  }
1374
1464
  }
1375
1465
  return null;
1376
- }, y = (l) => {
1377
- if (!l.children || l.children.length === 0)
1378
- return [l];
1379
- const b = [];
1380
- return l.children.forEach((f) => {
1381
- f.hidden || b.push(...y(f));
1382
- }), b;
1383
- }, g = q(r, v);
1384
- if (g)
1385
- if (g.children && g.children.length > 0) {
1386
- const l = y(g);
1387
- if (l.length > 0) {
1388
- const b = l.reduce((s, C) => s + (C.width || C.minWidth || 200), 0), f = T / b;
1389
- l.forEach((s) => {
1390
- const C = Math.max(50, Math.round((s.width || s.minWidth || 200) * f));
1391
- G(s.key, C);
1466
+ }, y = (m) => {
1467
+ if (!m.children || m.children.length === 0)
1468
+ return [m];
1469
+ const v = [];
1470
+ return m.children.forEach((p) => {
1471
+ p.hidden || v.push(...y(p));
1472
+ }), v;
1473
+ }, _ = ie(i, k);
1474
+ if (_)
1475
+ if (_.children && _.children.length > 0) {
1476
+ const m = y(_);
1477
+ if (m.length > 0) {
1478
+ const v = m.reduce((b, x) => b + (x.width || x.minWidth || 200), 0), p = B / v;
1479
+ m.forEach((b) => {
1480
+ const x = Math.max(50, Math.round((b.width || b.minWidth || 200) * p));
1481
+ q(b.key, x);
1392
1482
  });
1393
1483
  }
1394
1484
  } else
1395
- G(v, T);
1396
- }, [r, G]), W = se((v) => {
1397
- if (!Q) return;
1398
- if (!oe) {
1399
- Q(v);
1485
+ q(k, B);
1486
+ }, [i, q]), Y = ue((k) => {
1487
+ if (!X) return;
1488
+ if (!ae) {
1489
+ X(k);
1400
1490
  return;
1401
1491
  }
1402
- const T = (z, F, te = [], ie = null) => {
1403
- for (let de = 0; de < z.length; de++) {
1404
- const Y = z[de], O = [...te, de];
1405
- if (Y.key === F)
1492
+ const B = (S, E, A = [], N = null) => {
1493
+ for (let Q = 0; Q < S.length; Q++) {
1494
+ const V = S[Q], M = [...A, Q];
1495
+ if (V.key === E)
1406
1496
  return {
1407
- column: Y,
1408
- parent: ie,
1409
- path: O,
1410
- level: te.length
1497
+ column: V,
1498
+ parent: N,
1499
+ path: M,
1500
+ level: A.length
1411
1501
  };
1412
- if (Y.children && Y.children.length > 0) {
1413
- const re = T(Y.children, F, O, Y);
1414
- if (re)
1415
- return re;
1502
+ if (V.children && V.children.length > 0) {
1503
+ const ne = B(V.children, E, M, V);
1504
+ if (ne)
1505
+ return ne;
1416
1506
  }
1417
1507
  }
1418
1508
  return null;
1419
1509
  };
1420
- if (!Object.values(N).find((z) => {
1421
- if (z.length !== v.length) return !1;
1422
- const F = z.map((ie) => ie.key).sort(), te = v.map((ie) => ie.key).sort();
1423
- return JSON.stringify(F) === JSON.stringify(te);
1510
+ if (!Object.values(I).find((S) => {
1511
+ if (S.length !== k.length) return !1;
1512
+ const E = S.map((N) => N.key).sort(), A = k.map((N) => N.key).sort();
1513
+ return JSON.stringify(E) === JSON.stringify(A);
1424
1514
  }))
1425
1515
  return;
1426
- const y = v._dragInfo;
1516
+ const y = k._dragInfo;
1427
1517
  if (!(y != null && y.draggedKey) || !(y != null && y.targetKey))
1428
1518
  return;
1429
- const { draggedKey: g, targetKey: l } = y, b = T(r, g), f = T(r, l);
1430
- if (!b || !f) return;
1431
- const { column: s, parent: C, path: E, level: w } = b, { column: $, parent: ee, path: J, level: X } = f, H = (z, F) => z.fixed || (F == null ? void 0 : F.fixed) || !1, M = H(s, C), le = H($, ee);
1432
- if (w !== X || C !== ee || C && ee && C.key !== ee.key || M !== le)
1519
+ const { draggedKey: _, targetKey: m } = y, v = B(i, _), p = B(i, m);
1520
+ if (!v || !p) return;
1521
+ const { column: b, parent: x, path: O, level: P } = v, { column: D, parent: H, path: Z, level: G } = p, L = (S, E) => S.fixed || (E == null ? void 0 : E.fixed) || !1, ce = L(b, x), R = L(D, H);
1522
+ if (P !== G || x !== H || x && H && x.key !== H.key || ce !== R)
1433
1523
  return;
1434
- const he = JSON.parse(JSON.stringify(r));
1435
- if (w === 0) {
1436
- const z = E[0], F = J[0], [te] = he.splice(z, 1);
1437
- he.splice(F, 0, te);
1524
+ const J = JSON.parse(JSON.stringify(i));
1525
+ if (P === 0) {
1526
+ const S = O[0], E = Z[0], [A] = J.splice(S, 1);
1527
+ J.splice(E, 0, A);
1438
1528
  } else {
1439
- const z = E.slice(0, -1);
1440
- let F = he;
1441
- for (let Y = 0; Y < z.length; Y++)
1442
- Y === 0 ? F = F[z[Y]] : F = F.children[z[Y]];
1443
- if (!F || !F.children)
1529
+ const S = O.slice(0, -1);
1530
+ let E = J;
1531
+ for (let V = 0; V < S.length; V++)
1532
+ V === 0 ? E = E[S[V]] : E = E.children[S[V]];
1533
+ if (!E || !E.children)
1444
1534
  return;
1445
- const te = E[E.length - 1], ie = J[J.length - 1];
1446
- if (te < 0 || te >= F.children.length || ie < 0 || ie >= F.children.length)
1535
+ const A = O[O.length - 1], N = Z[Z.length - 1];
1536
+ if (A < 0 || A >= E.children.length || N < 0 || N >= E.children.length)
1447
1537
  return;
1448
- const [de] = F.children.splice(te, 1);
1449
- F.children.splice(ie, 0, de);
1538
+ const [Q] = E.children.splice(A, 1);
1539
+ E.children.splice(N, 0, Q);
1450
1540
  }
1451
- Q(he);
1452
- }, [r, Q, N]);
1453
- return oe ? /* @__PURE__ */ n.jsx(
1541
+ X(J);
1542
+ }, [i, X, I]);
1543
+ return ae ? /* @__PURE__ */ l.jsx(
1454
1544
  "thead",
1455
1545
  {
1456
- className: `radar-table__header ${c ? c + "__header" : ""} ${d}`,
1546
+ className: `radar-table__header ${t ? t + "__header" : ""} ${r}`,
1457
1547
  style: {
1458
- position: x ? "sticky" : "static",
1459
- top: x && typeof x == "number" ? x : 0,
1460
- ...k
1548
+ position: o ? "sticky" : "static",
1549
+ top: o && typeof o == "number" ? o : 0,
1550
+ ...s
1461
1551
  },
1462
- children: Object.keys(N).map((v) => {
1463
- const T = N[parseInt(v)], q = parseInt(v);
1464
- return /* @__PURE__ */ n.jsx(
1465
- nt,
1552
+ children: Object.keys(I).map((k) => {
1553
+ const B = I[parseInt(k)], ie = parseInt(k);
1554
+ return /* @__PURE__ */ l.jsx(
1555
+ ct,
1466
1556
  {
1467
- config: T,
1468
- fullConfig: r,
1469
- onSort: t.onSort,
1470
- onResize: u,
1471
- onColumnReorder: W,
1472
- resizeable: t.resizeable,
1473
- draggableColumns: t.draggableColumns,
1474
- preset: c,
1475
- headerClassName: d,
1476
- headerStyle: k,
1477
- headerRowClassName: R,
1557
+ config: B,
1558
+ fullConfig: i,
1559
+ onSort: n.onSort,
1560
+ onResize: f,
1561
+ onColumnReorder: Y,
1562
+ resizeable: n.resizeable,
1563
+ draggableColumns: n.draggableColumns,
1564
+ preset: t,
1565
+ headerClassName: r,
1566
+ headerStyle: s,
1567
+ headerRowClassName: a,
1478
1568
  headerRowStyle: {
1479
- ...P,
1480
- position: x ? "sticky" : "static",
1481
- top: x && typeof x == "number" ? x + (q - 1) * 50 : 0
1569
+ ...c,
1570
+ position: o ? "sticky" : "static",
1571
+ top: o && typeof o == "number" ? o + (ie - 1) * 50 : 0
1482
1572
  },
1483
- headerCellClassName: _,
1484
- headerCellStyle: V,
1485
- headerCellWrapperClassName: S,
1486
- headerCellWrapperStyle: L,
1487
- stickyHeader: x,
1488
- sortIcon: t.sortIcon,
1489
- scrollContainerRef: t.scrollContainerRef,
1490
- sorting: ne,
1491
- defaultSorting: Z,
1492
- resizeThrottle: t.resizeThrottle
1573
+ headerCellClassName: u,
1574
+ headerCellStyle: j,
1575
+ headerCellWrapperClassName: g,
1576
+ headerCellWrapperStyle: T,
1577
+ stickyHeader: o,
1578
+ sortIcon: n.sortIcon,
1579
+ scrollContainerRef: n.scrollContainerRef,
1580
+ sorting: U,
1581
+ defaultSorting: K,
1582
+ resizeThrottle: n.resizeThrottle
1493
1583
  },
1494
- v
1584
+ k
1495
1585
  );
1496
1586
  })
1497
1587
  }
1498
- ) : /* @__PURE__ */ n.jsx(
1588
+ ) : /* @__PURE__ */ l.jsx(
1499
1589
  "thead",
1500
1590
  {
1501
- className: `radar-table__header ${c ? c + "__header" : ""} ${d}`,
1591
+ className: `radar-table__header ${t ? t + "__header" : ""} ${r}`,
1502
1592
  style: {
1503
- position: x ? "sticky" : "static",
1504
- top: x && typeof x == "number" ? x : 0,
1505
- ...k
1593
+ position: o ? "sticky" : "static",
1594
+ top: o && typeof o == "number" ? o : 0,
1595
+ ...s
1506
1596
  },
1507
- children: /* @__PURE__ */ n.jsx(nt, { ...t, fullConfig: r, onResize: u, onColumnReorder: W, scrollContainerRef: t.scrollContainerRef, sorting: ne, defaultSorting: Z, resizeThrottle: t.resizeThrottle })
1597
+ children: /* @__PURE__ */ l.jsx(ct, { ...n, fullConfig: i, onResize: f, onColumnReorder: Y, scrollContainerRef: n.scrollContainerRef, sorting: U, defaultSorting: K, resizeThrottle: n.resizeThrottle })
1508
1598
  }
1509
1599
  );
1510
1600
  }
1511
- const Yt = (t, r) => {
1512
- let c = "0";
1513
- if (t != null) {
1514
- const d = parseFloat(t);
1515
- if (Number.isNaN(d))
1516
- return r && (c += ` ${r}`), c;
1517
- c = d.toLocaleString("ru-RU", {
1601
+ const tn = (n, i) => {
1602
+ let t = "0";
1603
+ if (n != null) {
1604
+ const r = parseFloat(n);
1605
+ if (Number.isNaN(r))
1606
+ return i && (t += ` ${i}`), t;
1607
+ t = r.toLocaleString("ru-RU", {
1518
1608
  maximumFractionDigits: 2
1519
- }), r && (c += ` ${r}`);
1609
+ }), i && (t += ` ${i}`);
1610
+ }
1611
+ return t;
1612
+ };
1613
+ function Me(n, i, t) {
1614
+ let r = t.initialDeps ?? [], s;
1615
+ function o() {
1616
+ var a, c, u, j;
1617
+ let g;
1618
+ t.key && ((a = t.debug) != null && a.call(t)) && (g = Date.now());
1619
+ const T = n();
1620
+ if (!(T.length !== r.length || T.some((U, K) => r[K] !== U)))
1621
+ return s;
1622
+ r = T;
1623
+ let X;
1624
+ if (t.key && ((c = t.debug) != null && c.call(t)) && (X = Date.now()), s = i(...T), t.key && ((u = t.debug) != null && u.call(t))) {
1625
+ const U = Math.round((Date.now() - g) * 100) / 100, K = Math.round((Date.now() - X) * 100) / 100, ae = K / 16, I = (f, Y) => {
1626
+ for (f = String(f); f.length < Y; )
1627
+ f = " " + f;
1628
+ return f;
1629
+ };
1630
+ console.info(
1631
+ `%c⏱ ${I(K, 5)} /${I(U, 5)} ms`,
1632
+ `
1633
+ font-size: .6rem;
1634
+ font-weight: bold;
1635
+ color: hsl(${Math.max(
1636
+ 0,
1637
+ Math.min(120 - 120 * ae, 120)
1638
+ )}deg 100% 31%);`,
1639
+ t == null ? void 0 : t.key
1640
+ );
1641
+ }
1642
+ return (j = t == null ? void 0 : t.onChange) == null || j.call(t, s), s;
1643
+ }
1644
+ return o.updateDeps = (a) => {
1645
+ r = a;
1646
+ }, o;
1647
+ }
1648
+ function dt(n, i) {
1649
+ if (n === void 0)
1650
+ throw new Error("Unexpected undefined");
1651
+ return n;
1652
+ }
1653
+ const nn = (n, i) => Math.abs(n - i) < 1.01, rn = (n, i, t) => {
1654
+ let r;
1655
+ return function(...s) {
1656
+ n.clearTimeout(r), r = n.setTimeout(() => i.apply(this, s), t);
1657
+ };
1658
+ }, ut = (n) => {
1659
+ const { offsetWidth: i, offsetHeight: t } = n;
1660
+ return { width: i, height: t };
1661
+ }, sn = (n) => n, on = (n) => {
1662
+ const i = Math.max(n.startIndex - n.overscan, 0), t = Math.min(n.endIndex + n.overscan, n.count - 1), r = [];
1663
+ for (let s = i; s <= t; s++)
1664
+ r.push(s);
1665
+ return r;
1666
+ }, an = (n, i) => {
1667
+ const t = n.scrollElement;
1668
+ if (!t)
1669
+ return;
1670
+ const r = n.targetWindow;
1671
+ if (!r)
1672
+ return;
1673
+ const s = (a) => {
1674
+ const { width: c, height: u } = a;
1675
+ i({ width: Math.round(c), height: Math.round(u) });
1676
+ };
1677
+ if (s(ut(t)), !r.ResizeObserver)
1678
+ return () => {
1679
+ };
1680
+ const o = new r.ResizeObserver((a) => {
1681
+ const c = () => {
1682
+ const u = a[0];
1683
+ if (u != null && u.borderBoxSize) {
1684
+ const j = u.borderBoxSize[0];
1685
+ if (j) {
1686
+ s({ width: j.inlineSize, height: j.blockSize });
1687
+ return;
1688
+ }
1689
+ }
1690
+ s(ut(t));
1691
+ };
1692
+ n.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(c) : c();
1693
+ });
1694
+ return o.observe(t, { box: "border-box" }), () => {
1695
+ o.unobserve(t);
1696
+ };
1697
+ }, ft = {
1698
+ passive: !0
1699
+ }, ht = typeof window > "u" ? !0 : "onscrollend" in window, ln = (n, i) => {
1700
+ const t = n.scrollElement;
1701
+ if (!t)
1702
+ return;
1703
+ const r = n.targetWindow;
1704
+ if (!r)
1705
+ return;
1706
+ let s = 0;
1707
+ const o = n.options.useScrollendEvent && ht ? () => {
1708
+ } : rn(
1709
+ r,
1710
+ () => {
1711
+ i(s, !1);
1712
+ },
1713
+ n.options.isScrollingResetDelay
1714
+ ), a = (g) => () => {
1715
+ const { horizontal: T, isRtl: q } = n.options;
1716
+ s = T ? t.scrollLeft * (q && -1 || 1) : t.scrollTop, o(), i(s, g);
1717
+ }, c = a(!0), u = a(!1);
1718
+ u(), t.addEventListener("scroll", c, ft);
1719
+ const j = n.options.useScrollendEvent && ht;
1720
+ return j && t.addEventListener("scrollend", u, ft), () => {
1721
+ t.removeEventListener("scroll", c), j && t.removeEventListener("scrollend", u);
1722
+ };
1723
+ }, cn = (n, i, t) => {
1724
+ if (i != null && i.borderBoxSize) {
1725
+ const r = i.borderBoxSize[0];
1726
+ if (r)
1727
+ return Math.round(
1728
+ r[t.options.horizontal ? "inlineSize" : "blockSize"]
1729
+ );
1520
1730
  }
1521
- return c;
1522
- }, qt = (t) => {
1523
- var r;
1524
- return typeof window < "u" && ((r = window.CSS) != null && r.escape) ? window.CSS.escape(t) : t.replace(/([#.;?\[\]\s])/g, "\\$1");
1525
- }, Kt = (t) => {
1731
+ return n[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
1732
+ }, dn = (n, {
1733
+ adjustments: i = 0,
1734
+ behavior: t
1735
+ }, r) => {
1736
+ var s, o;
1737
+ const a = n + i;
1738
+ (o = (s = r.scrollElement) == null ? void 0 : s.scrollTo) == null || o.call(s, {
1739
+ [r.options.horizontal ? "left" : "top"]: a,
1740
+ behavior: t
1741
+ });
1742
+ };
1743
+ class un {
1744
+ constructor(i) {
1745
+ this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
1746
+ let t = null;
1747
+ const r = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((s) => {
1748
+ s.forEach((o) => {
1749
+ const a = () => {
1750
+ this._measureElement(o.target, o);
1751
+ };
1752
+ this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(a) : a();
1753
+ });
1754
+ }));
1755
+ return {
1756
+ disconnect: () => {
1757
+ var s;
1758
+ (s = r()) == null || s.disconnect(), t = null;
1759
+ },
1760
+ observe: (s) => {
1761
+ var o;
1762
+ return (o = r()) == null ? void 0 : o.observe(s, { box: "border-box" });
1763
+ },
1764
+ unobserve: (s) => {
1765
+ var o;
1766
+ return (o = r()) == null ? void 0 : o.unobserve(s);
1767
+ }
1768
+ };
1769
+ })(), this.range = null, this.setOptions = (t) => {
1770
+ Object.entries(t).forEach(([r, s]) => {
1771
+ typeof s > "u" && delete t[r];
1772
+ }), this.options = {
1773
+ debug: !1,
1774
+ initialOffset: 0,
1775
+ overscan: 1,
1776
+ paddingStart: 0,
1777
+ paddingEnd: 0,
1778
+ scrollPaddingStart: 0,
1779
+ scrollPaddingEnd: 0,
1780
+ horizontal: !1,
1781
+ getItemKey: sn,
1782
+ rangeExtractor: on,
1783
+ onChange: () => {
1784
+ },
1785
+ measureElement: cn,
1786
+ initialRect: { width: 0, height: 0 },
1787
+ scrollMargin: 0,
1788
+ gap: 0,
1789
+ indexAttribute: "data-index",
1790
+ initialMeasurementsCache: [],
1791
+ lanes: 1,
1792
+ isScrollingResetDelay: 150,
1793
+ enabled: !0,
1794
+ isRtl: !1,
1795
+ useScrollendEvent: !1,
1796
+ useAnimationFrameWithResizeObserver: !1,
1797
+ ...t
1798
+ };
1799
+ }, this.notify = (t) => {
1800
+ var r, s;
1801
+ (s = (r = this.options).onChange) == null || s.call(r, this, t);
1802
+ }, this.maybeNotify = Me(
1803
+ () => (this.calculateRange(), [
1804
+ this.isScrolling,
1805
+ this.range ? this.range.startIndex : null,
1806
+ this.range ? this.range.endIndex : null
1807
+ ]),
1808
+ (t) => {
1809
+ this.notify(t);
1810
+ },
1811
+ {
1812
+ key: process.env.NODE_ENV !== "production" && "maybeNotify",
1813
+ debug: () => this.options.debug,
1814
+ initialDeps: [
1815
+ this.isScrolling,
1816
+ this.range ? this.range.startIndex : null,
1817
+ this.range ? this.range.endIndex : null
1818
+ ]
1819
+ }
1820
+ ), this.cleanup = () => {
1821
+ this.unsubs.filter(Boolean).forEach((t) => t()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null;
1822
+ }, this._didMount = () => () => {
1823
+ this.cleanup();
1824
+ }, this._willUpdate = () => {
1825
+ var t;
1826
+ const r = this.options.enabled ? this.options.getScrollElement() : null;
1827
+ if (this.scrollElement !== r) {
1828
+ if (this.cleanup(), !r) {
1829
+ this.maybeNotify();
1830
+ return;
1831
+ }
1832
+ this.scrollElement = r, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((t = this.scrollElement) == null ? void 0 : t.window) ?? null, this.elementsCache.forEach((s) => {
1833
+ this.observer.observe(s);
1834
+ }), this._scrollToOffset(this.getScrollOffset(), {
1835
+ adjustments: void 0,
1836
+ behavior: void 0
1837
+ }), this.unsubs.push(
1838
+ this.options.observeElementRect(this, (s) => {
1839
+ this.scrollRect = s, this.maybeNotify();
1840
+ })
1841
+ ), this.unsubs.push(
1842
+ this.options.observeElementOffset(this, (s, o) => {
1843
+ this.scrollAdjustments = 0, this.scrollDirection = o ? this.getScrollOffset() < s ? "forward" : "backward" : null, this.scrollOffset = s, this.isScrolling = o, this.maybeNotify();
1844
+ })
1845
+ );
1846
+ }
1847
+ }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (t, r) => {
1848
+ const s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1849
+ for (let a = r - 1; a >= 0; a--) {
1850
+ const c = t[a];
1851
+ if (s.has(c.lane))
1852
+ continue;
1853
+ const u = o.get(
1854
+ c.lane
1855
+ );
1856
+ if (u == null || c.end > u.end ? o.set(c.lane, c) : c.end < u.end && s.set(c.lane, !0), s.size === this.options.lanes)
1857
+ break;
1858
+ }
1859
+ return o.size === this.options.lanes ? Array.from(o.values()).sort((a, c) => a.end === c.end ? a.index - c.index : a.end - c.end)[0] : void 0;
1860
+ }, this.getMeasurementOptions = Me(
1861
+ () => [
1862
+ this.options.count,
1863
+ this.options.paddingStart,
1864
+ this.options.scrollMargin,
1865
+ this.options.getItemKey,
1866
+ this.options.enabled
1867
+ ],
1868
+ (t, r, s, o, a) => (this.pendingMeasuredCacheIndexes = [], {
1869
+ count: t,
1870
+ paddingStart: r,
1871
+ scrollMargin: s,
1872
+ getItemKey: o,
1873
+ enabled: a
1874
+ }),
1875
+ {
1876
+ key: !1
1877
+ }
1878
+ ), this.getMeasurements = Me(
1879
+ () => [this.getMeasurementOptions(), this.itemSizeCache],
1880
+ ({ count: t, paddingStart: r, scrollMargin: s, getItemKey: o, enabled: a }, c) => {
1881
+ if (!a)
1882
+ return this.measurementsCache = [], this.itemSizeCache.clear(), [];
1883
+ this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((g) => {
1884
+ this.itemSizeCache.set(g.key, g.size);
1885
+ }));
1886
+ const u = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
1887
+ this.pendingMeasuredCacheIndexes = [];
1888
+ const j = this.measurementsCache.slice(0, u);
1889
+ for (let g = u; g < t; g++) {
1890
+ const T = o(g), q = this.options.lanes === 1 ? j[g - 1] : this.getFurthestMeasurement(j, g), X = q ? q.end + this.options.gap : r + s, U = c.get(T), K = typeof U == "number" ? U : this.options.estimateSize(g), ae = X + K, I = q ? q.lane : g % this.options.lanes;
1891
+ j[g] = {
1892
+ index: g,
1893
+ start: X,
1894
+ size: K,
1895
+ end: ae,
1896
+ key: T,
1897
+ lane: I
1898
+ };
1899
+ }
1900
+ return this.measurementsCache = j, j;
1901
+ },
1902
+ {
1903
+ key: process.env.NODE_ENV !== "production" && "getMeasurements",
1904
+ debug: () => this.options.debug
1905
+ }
1906
+ ), this.calculateRange = Me(
1907
+ () => [
1908
+ this.getMeasurements(),
1909
+ this.getSize(),
1910
+ this.getScrollOffset(),
1911
+ this.options.lanes
1912
+ ],
1913
+ (t, r, s, o) => this.range = t.length > 0 && r > 0 ? fn({
1914
+ measurements: t,
1915
+ outerSize: r,
1916
+ scrollOffset: s,
1917
+ lanes: o
1918
+ }) : null,
1919
+ {
1920
+ key: process.env.NODE_ENV !== "production" && "calculateRange",
1921
+ debug: () => this.options.debug
1922
+ }
1923
+ ), this.getVirtualIndexes = Me(
1924
+ () => {
1925
+ let t = null, r = null;
1926
+ const s = this.calculateRange();
1927
+ return s && (t = s.startIndex, r = s.endIndex), this.maybeNotify.updateDeps([this.isScrolling, t, r]), [
1928
+ this.options.rangeExtractor,
1929
+ this.options.overscan,
1930
+ this.options.count,
1931
+ t,
1932
+ r
1933
+ ];
1934
+ },
1935
+ (t, r, s, o, a) => o === null || a === null ? [] : t({
1936
+ startIndex: o,
1937
+ endIndex: a,
1938
+ overscan: r,
1939
+ count: s
1940
+ }),
1941
+ {
1942
+ key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
1943
+ debug: () => this.options.debug
1944
+ }
1945
+ ), this.indexFromElement = (t) => {
1946
+ const r = this.options.indexAttribute, s = t.getAttribute(r);
1947
+ return s ? parseInt(s, 10) : (console.warn(
1948
+ `Missing attribute name '${r}={index}' on measured element.`
1949
+ ), -1);
1950
+ }, this._measureElement = (t, r) => {
1951
+ const s = this.indexFromElement(t), o = this.measurementsCache[s];
1952
+ if (!o)
1953
+ return;
1954
+ const a = o.key, c = this.elementsCache.get(a);
1955
+ c !== t && (c && this.observer.unobserve(c), this.observer.observe(t), this.elementsCache.set(a, t)), t.isConnected && this.resizeItem(s, this.options.measureElement(t, r, this));
1956
+ }, this.resizeItem = (t, r) => {
1957
+ const s = this.measurementsCache[t];
1958
+ if (!s)
1959
+ return;
1960
+ const o = this.itemSizeCache.get(s.key) ?? s.size, a = r - o;
1961
+ a !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(s, a, this) : s.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", a), this._scrollToOffset(this.getScrollOffset(), {
1962
+ adjustments: this.scrollAdjustments += a,
1963
+ behavior: void 0
1964
+ })), this.pendingMeasuredCacheIndexes.push(s.index), this.itemSizeCache = new Map(this.itemSizeCache.set(s.key, r)), this.notify(!1));
1965
+ }, this.measureElement = (t) => {
1966
+ if (!t) {
1967
+ this.elementsCache.forEach((r, s) => {
1968
+ r.isConnected || (this.observer.unobserve(r), this.elementsCache.delete(s));
1969
+ });
1970
+ return;
1971
+ }
1972
+ this._measureElement(t, void 0);
1973
+ }, this.getVirtualItems = Me(
1974
+ () => [this.getVirtualIndexes(), this.getMeasurements()],
1975
+ (t, r) => {
1976
+ const s = [];
1977
+ for (let o = 0, a = t.length; o < a; o++) {
1978
+ const c = t[o], u = r[c];
1979
+ s.push(u);
1980
+ }
1981
+ return s;
1982
+ },
1983
+ {
1984
+ key: process.env.NODE_ENV !== "production" && "getVirtualItems",
1985
+ debug: () => this.options.debug
1986
+ }
1987
+ ), this.getVirtualItemForOffset = (t) => {
1988
+ const r = this.getMeasurements();
1989
+ if (r.length !== 0)
1990
+ return dt(
1991
+ r[xt(
1992
+ 0,
1993
+ r.length - 1,
1994
+ (s) => dt(r[s]).start,
1995
+ t
1996
+ )]
1997
+ );
1998
+ }, this.getOffsetForAlignment = (t, r, s = 0) => {
1999
+ const o = this.getSize(), a = this.getScrollOffset();
2000
+ r === "auto" && (r = t >= a + o ? "end" : "start"), r === "center" ? t += (s - o) / 2 : r === "end" && (t -= o);
2001
+ const c = this.getTotalSize() + this.options.scrollMargin - o;
2002
+ return Math.max(Math.min(c, t), 0);
2003
+ }, this.getOffsetForIndex = (t, r = "auto") => {
2004
+ t = Math.max(0, Math.min(t, this.options.count - 1));
2005
+ const s = this.measurementsCache[t];
2006
+ if (!s)
2007
+ return;
2008
+ const o = this.getSize(), a = this.getScrollOffset();
2009
+ if (r === "auto")
2010
+ if (s.end >= a + o - this.options.scrollPaddingEnd)
2011
+ r = "end";
2012
+ else if (s.start <= a + this.options.scrollPaddingStart)
2013
+ r = "start";
2014
+ else
2015
+ return [a, r];
2016
+ const c = r === "end" ? s.end + this.options.scrollPaddingEnd : s.start - this.options.scrollPaddingStart;
2017
+ return [
2018
+ this.getOffsetForAlignment(c, r, s.size),
2019
+ r
2020
+ ];
2021
+ }, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (t, { align: r = "start", behavior: s } = {}) => {
2022
+ s === "smooth" && this.isDynamicMode() && console.warn(
2023
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
2024
+ ), this._scrollToOffset(this.getOffsetForAlignment(t, r), {
2025
+ adjustments: void 0,
2026
+ behavior: s
2027
+ });
2028
+ }, this.scrollToIndex = (t, { align: r = "auto", behavior: s } = {}) => {
2029
+ s === "smooth" && this.isDynamicMode() && console.warn(
2030
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
2031
+ ), t = Math.max(0, Math.min(t, this.options.count - 1));
2032
+ let o = 0;
2033
+ const a = 10, c = (j) => {
2034
+ if (!this.targetWindow) return;
2035
+ const g = this.getOffsetForIndex(t, j);
2036
+ if (!g) {
2037
+ console.warn("Failed to get offset for index:", t);
2038
+ return;
2039
+ }
2040
+ const [T, q] = g;
2041
+ this._scrollToOffset(T, { adjustments: void 0, behavior: s }), this.targetWindow.requestAnimationFrame(() => {
2042
+ const X = this.getScrollOffset(), U = this.getOffsetForIndex(t, q);
2043
+ if (!U) {
2044
+ console.warn("Failed to get offset for index:", t);
2045
+ return;
2046
+ }
2047
+ nn(U[0], X) || u(q);
2048
+ });
2049
+ }, u = (j) => {
2050
+ this.targetWindow && (o++, o < a ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", o, a), this.targetWindow.requestAnimationFrame(() => c(j))) : console.warn(
2051
+ `Failed to scroll to index ${t} after ${a} attempts.`
2052
+ ));
2053
+ };
2054
+ c(r);
2055
+ }, this.scrollBy = (t, { behavior: r } = {}) => {
2056
+ r === "smooth" && this.isDynamicMode() && console.warn(
2057
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
2058
+ ), this._scrollToOffset(this.getScrollOffset() + t, {
2059
+ adjustments: void 0,
2060
+ behavior: r
2061
+ });
2062
+ }, this.getTotalSize = () => {
2063
+ var t;
2064
+ const r = this.getMeasurements();
2065
+ let s;
2066
+ if (r.length === 0)
2067
+ s = this.options.paddingStart;
2068
+ else if (this.options.lanes === 1)
2069
+ s = ((t = r[r.length - 1]) == null ? void 0 : t.end) ?? 0;
2070
+ else {
2071
+ const o = Array(this.options.lanes).fill(null);
2072
+ let a = r.length - 1;
2073
+ for (; a >= 0 && o.some((c) => c === null); ) {
2074
+ const c = r[a];
2075
+ o[c.lane] === null && (o[c.lane] = c.end), a--;
2076
+ }
2077
+ s = Math.max(...o.filter((c) => c !== null));
2078
+ }
2079
+ return Math.max(
2080
+ s - this.options.scrollMargin + this.options.paddingEnd,
2081
+ 0
2082
+ );
2083
+ }, this._scrollToOffset = (t, {
2084
+ adjustments: r,
2085
+ behavior: s
2086
+ }) => {
2087
+ this.options.scrollToFn(t, { behavior: s, adjustments: r }, this);
2088
+ }, this.measure = () => {
2089
+ this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(!1);
2090
+ }, this.setOptions(i);
2091
+ }
2092
+ }
2093
+ const xt = (n, i, t, r) => {
2094
+ for (; n <= i; ) {
2095
+ const s = (n + i) / 2 | 0, o = t(s);
2096
+ if (o < r)
2097
+ n = s + 1;
2098
+ else if (o > r)
2099
+ i = s - 1;
2100
+ else
2101
+ return s;
2102
+ }
2103
+ return n > 0 ? n - 1 : 0;
2104
+ };
2105
+ function fn({
2106
+ measurements: n,
2107
+ outerSize: i,
2108
+ scrollOffset: t,
2109
+ lanes: r
2110
+ }) {
2111
+ const s = n.length - 1, o = (u) => n[u].start;
2112
+ if (n.length <= r)
2113
+ return {
2114
+ startIndex: 0,
2115
+ endIndex: s
2116
+ };
2117
+ let a = xt(
2118
+ 0,
2119
+ s,
2120
+ o,
2121
+ t
2122
+ ), c = a;
2123
+ if (r === 1)
2124
+ for (; c < s && n[c].end < t + i; )
2125
+ c++;
2126
+ else if (r > 1) {
2127
+ const u = Array(r).fill(0);
2128
+ for (; c < s && u.some((g) => g < t + i); ) {
2129
+ const g = n[c];
2130
+ u[g.lane] = g.end, c++;
2131
+ }
2132
+ const j = Array(r).fill(t + i);
2133
+ for (; a >= 0 && j.some((g) => g >= t); ) {
2134
+ const g = n[a];
2135
+ j[g.lane] = g.start, a--;
2136
+ }
2137
+ a = Math.max(0, a - a % r), c = Math.min(s, c + (r - 1 - c % r));
2138
+ }
2139
+ return { startIndex: a, endIndex: c };
2140
+ }
2141
+ const gt = typeof document < "u" ? Ze.useLayoutEffect : Ze.useEffect;
2142
+ function hn(n) {
2143
+ const i = Ze.useReducer(() => ({}), {})[1], t = {
2144
+ ...n,
2145
+ onChange: (s, o) => {
2146
+ var a;
2147
+ o ? qt(i) : i(), (a = n.onChange) == null || a.call(n, s, o);
2148
+ }
2149
+ }, [r] = Ze.useState(
2150
+ () => new un(t)
2151
+ );
2152
+ return r.setOptions(t), gt(() => r._didMount(), []), gt(() => r._willUpdate()), r;
2153
+ }
2154
+ function gn(n) {
2155
+ return hn({
2156
+ observeElementRect: an,
2157
+ observeElementOffset: ln,
2158
+ scrollToFn: dn,
2159
+ ...n
2160
+ });
2161
+ }
2162
+ const pn = (n) => {
2163
+ var i;
2164
+ return typeof window < "u" && ((i = window.CSS) != null && i.escape) ? window.CSS.escape(n) : n.replace(/([#.;?\[\]\s])/g, "\\$1");
2165
+ }, mn = (n) => {
1526
2166
  if (typeof document > "u") return null;
1527
- const r = `th[data-column-key="${qt(t)}"]`, c = document.querySelector(r);
1528
- return c ? c.getBoundingClientRect().width : null;
1529
- }, Ut = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
1530
- function Zt({
1531
- draggableRows: t = !1,
1532
- dataSource: r,
1533
- config: c,
1534
- rowKey: d,
1535
- loading: k = !1,
1536
- onRowReorder: x,
1537
- preset: R,
1538
- customCellRender: P,
1539
- treeMode: _,
1540
- expandedRowKeys: V,
1541
- defaultExpandedRowKeys: S,
1542
- onExpandedRowsChange: L,
1543
- indentSize: G,
1544
- expandIcon: Q,
1545
- bodyClassName: ne,
1546
- bodyStyle: Z,
1547
- bodyRowClassName: oe,
1548
- bodyRowStyle: N,
1549
- bodyCellClassName: u,
1550
- bodyCellStyle: W,
1551
- bodyCellWrapperClassName: v,
1552
- bodyCellWrapperStyle: T,
1553
- noDataRender: q,
2167
+ const i = `th[data-column-key="${pn(n)}"]`, t = document.querySelector(i);
2168
+ return t ? t.getBoundingClientRect().width : null;
2169
+ }, yn = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
2170
+ function vn({
2171
+ draggableRows: n = !1,
2172
+ dataSource: i,
2173
+ config: t,
2174
+ rowKey: r,
2175
+ loading: s = !1,
2176
+ onRowReorder: o,
2177
+ preset: a,
2178
+ customCellRender: c,
2179
+ treeMode: u,
2180
+ expandedRowKeys: j,
2181
+ defaultExpandedRowKeys: g,
2182
+ onExpandedRowsChange: T,
2183
+ indentSize: q,
2184
+ expandIcon: X,
2185
+ bodyClassName: U,
2186
+ bodyStyle: K,
2187
+ bodyRowClassName: ae,
2188
+ bodyRowStyle: I,
2189
+ bodyCellClassName: f,
2190
+ bodyCellStyle: Y,
2191
+ bodyCellWrapperClassName: k,
2192
+ bodyCellWrapperStyle: B,
2193
+ noDataRender: ie,
1554
2194
  scrollContainerRef: y,
1555
- recalculateRowHeight: g
2195
+ recalculateRowHeight: _,
2196
+ virtualization: m
1556
2197
  }) {
1557
- var A;
1558
- const [l, b] = pe(null), [f, s] = pe(null), [C, E] = pe(() => S && S.length > 0 ? new Set(S) : /* @__PURE__ */ new Set()), w = Ne.useMemo(() => V ? new Set(V) : C, [V, C]), $ = se((a) => {
1559
- V || E(new Set(a)), L == null || L(a);
1560
- }, [V, L]), ee = se((a) => d ? d(a) : JSON.stringify(a), [d]), J = Ne.useMemo(() => {
1561
- if (!_) return [];
1562
- const a = [], m = r;
1563
- return m.forEach((h, o) => {
1564
- const D = ee(h), K = h == null ? void 0 : h.children;
1565
- a.push({
1566
- record: h,
1567
- key: D,
2198
+ var Ke;
2199
+ const [v, p] = ye(null), [b, x] = ye(null), [O, P] = ye(() => g && g.length > 0 ? new Set(g) : /* @__PURE__ */ new Set()), D = qe.useMemo(() => j ? new Set(j) : O, [j, O]), H = ue((h) => {
2200
+ j || P(new Set(h)), T == null || T(h);
2201
+ }, [j, T]), Z = ue((h) => r ? r(h) : JSON.stringify(h), [r]), G = qe.useMemo(() => {
2202
+ if (!u) return [];
2203
+ const h = [], $ = i;
2204
+ return $.forEach((z, w) => {
2205
+ const W = Z(z), re = z == null ? void 0 : z.children;
2206
+ h.push({
2207
+ record: z,
2208
+ key: W,
1568
2209
  type: "parent",
1569
2210
  depth: 0,
1570
- indexWithinGroup: o,
1571
- groupSize: m.length
1572
- }), K && K.length > 0 && w.has(D) && K.forEach((I, xe) => {
1573
- a.push({
1574
- record: I,
1575
- key: ee(I),
2211
+ indexWithinGroup: w,
2212
+ groupSize: $.length
2213
+ }), re && re.length > 0 && D.has(W) && re.forEach((te, Ce) => {
2214
+ h.push({
2215
+ record: te,
2216
+ key: Z(te),
1576
2217
  type: "child",
1577
- parentKey: D,
2218
+ parentKey: W,
1578
2219
  depth: 1,
1579
- indexWithinGroup: xe,
1580
- groupSize: K.length
2220
+ indexWithinGroup: Ce,
2221
+ groupSize: re.length
1581
2222
  });
1582
2223
  });
1583
- }), a;
1584
- }, [_, r, ee, w]), X = Ne.useMemo(() => {
1585
- const a = /* @__PURE__ */ new Map();
1586
- return J.forEach((m) => a.set(m.key, m)), a;
1587
- }, [J]);
1588
- Ie(() => {
1589
- Ut && g && (() => {
1590
- const m = document.querySelectorAll(".radar-table__body-row");
1591
- document.querySelectorAll(".radar-table__header-row").forEach((o) => {
1592
- const D = o.querySelectorAll(".radar-table__header-cell-wrapper");
1593
- let K = 0;
1594
- D.forEach((I) => {
1595
- I.style.height = "auto", K = Math.max(K, I.offsetHeight);
1596
- }), D.forEach((I) => {
1597
- I.style.height = K + "px";
2224
+ }), h;
2225
+ }, [u, i, Z, D]), L = qe.useMemo(() => {
2226
+ const h = /* @__PURE__ */ new Map();
2227
+ return G.forEach(($) => h.set($.key, $)), h;
2228
+ }, [G]);
2229
+ He(() => {
2230
+ yn && _ && (() => {
2231
+ const $ = document.querySelectorAll(".radar-table__body-row");
2232
+ document.querySelectorAll(".radar-table__header-row").forEach((w) => {
2233
+ const W = w.querySelectorAll(".radar-table__header-cell-wrapper");
2234
+ let re = 0;
2235
+ W.forEach((te) => {
2236
+ te.style.height = "auto", re = Math.max(re, te.offsetHeight);
2237
+ }), W.forEach((te) => {
2238
+ te.style.height = re + "px";
1598
2239
  });
1599
- }), m.forEach((o) => {
1600
- const D = o.querySelectorAll(".radar-table__body-cell-wrapper");
1601
- let K = 0;
1602
- D.forEach((I) => {
1603
- I.style.height = "auto", K = Math.max(K, I.offsetHeight);
1604
- }), D.forEach((I) => {
1605
- I.style.height = K + "px";
2240
+ }), $.forEach((w) => {
2241
+ const W = w.querySelectorAll(".radar-table__body-cell-wrapper");
2242
+ let re = 0;
2243
+ W.forEach((te) => {
2244
+ te.style.height = "auto", re = Math.max(re, te.offsetHeight);
2245
+ }), W.forEach((te) => {
2246
+ te.style.height = re + "px";
1606
2247
  });
1607
2248
  });
1608
2249
  })();
1609
- }, [r, c]);
1610
- const M = ((a) => {
1611
- const m = [], h = (o) => {
1612
- o.forEach((D) => {
1613
- D.children && D.children.length > 0 ? h(D.children) : m.push(D);
2250
+ }, [i, t]);
2251
+ const R = ((h) => {
2252
+ const $ = [], z = (w) => {
2253
+ w.forEach((W) => {
2254
+ W.children && W.children.length > 0 ? z(W.children) : $.push(W);
1614
2255
  });
1615
2256
  };
1616
- return h(a), m;
1617
- })(c), le = (a) => {
1618
- if (a.groupColor)
1619
- return a.groupColor;
1620
- const m = (o, D) => {
1621
- for (const K of o)
1622
- if (K.children) {
1623
- if (K.children.some((xe) => xe.key === D))
1624
- return K;
1625
- const I = m(K.children, D);
1626
- if (I) return I;
2257
+ return z(h), $;
2258
+ })(t), J = (h) => {
2259
+ if (h.groupColor)
2260
+ return h.groupColor;
2261
+ const $ = (w, W) => {
2262
+ for (const re of w)
2263
+ if (re.children) {
2264
+ if (re.children.some((Ce) => Ce.key === W))
2265
+ return re;
2266
+ const te = $(re.children, W);
2267
+ if (te) return te;
1627
2268
  }
1628
2269
  return null;
1629
- }, h = m(c, a.key);
1630
- return h == null ? void 0 : h.groupColor;
1631
- }, he = se((a, m) => {
1632
- if (!m) {
1633
- a.preventDefault();
2270
+ }, z = $(t, h.key);
2271
+ return z == null ? void 0 : z.groupColor;
2272
+ }, S = ue((h, $) => {
2273
+ if (!$) {
2274
+ h.preventDefault();
1634
2275
  return;
1635
2276
  }
1636
- b(m), a.dataTransfer.effectAllowed = "move", a.dataTransfer.setData("text/plain", m), document.body.style.cursor = "grabbing";
1637
- const h = r.find((o) => (d ? d(o) : JSON.stringify(o)) === m);
1638
- if (h) {
1639
- const o = document.createElement("div");
1640
- o.style.cssText = `
2277
+ p($), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", $), document.body.style.cursor = "grabbing";
2278
+ const z = i.find((w) => (r ? r(w) : JSON.stringify(w)) === $);
2279
+ if (z) {
2280
+ const w = document.createElement("div");
2281
+ w.style.cssText = `
1641
2282
  background: white;
1642
2283
  border-radius: 6px;
1643
2284
  padding: 8px 12px;
@@ -1651,682 +2292,729 @@ function Zt({
1651
2292
  overflow: hidden;
1652
2293
  text-overflow: ellipsis;
1653
2294
  `;
1654
- const D = M[0];
1655
- if (D) {
1656
- const I = h[D.key];
1657
- o.textContent = (I == null ? void 0 : I.toString()) || "Строка";
2295
+ const W = R[0];
2296
+ if (W) {
2297
+ const te = z[W.key];
2298
+ w.textContent = (te == null ? void 0 : te.toString()) || "Строка";
1658
2299
  } else
1659
- o.textContent = "Строка";
1660
- document.body.appendChild(o), o.style.position = "absolute", o.style.top = "-1000px", o.style.left = "-1000px", a.dataTransfer.setDragImage(o, 10, 10);
1661
- const K = setTimeout(() => {
1662
- document.body.contains(o) && document.body.removeChild(o);
2300
+ w.textContent = "Строка";
2301
+ document.body.appendChild(w), w.style.position = "absolute", w.style.top = "-1000px", w.style.left = "-1000px", h.dataTransfer.setDragImage(w, 10, 10);
2302
+ const re = setTimeout(() => {
2303
+ document.body.contains(w) && document.body.removeChild(w);
1663
2304
  }, 0);
1664
- return () => clearTimeout(K);
1665
- }
1666
- }, []), z = se((a) => {
1667
- a.preventDefault(), a.dataTransfer.dropEffect = "move";
1668
- }, []), F = se((a, m) => {
1669
- if (a.preventDefault(), !l) return;
1670
- if (!_) {
1671
- l !== m && s(m);
2305
+ return () => clearTimeout(re);
2306
+ }
2307
+ }, []), E = ue((h) => {
2308
+ h.preventDefault(), h.dataTransfer.dropEffect = "move";
2309
+ }, []), A = ue((h, $) => {
2310
+ if (h.preventDefault(), !v) return;
2311
+ if (!u) {
2312
+ v !== $ && x($);
1672
2313
  return;
1673
2314
  }
1674
- const h = X.get(l), o = X.get(m);
1675
- if (!h || !o) return;
1676
- const D = h.type === "parent" && o.type === "parent" || h.type === "child" && o.type === "child" && h.parentKey === o.parentKey;
1677
- s(D && l !== m ? m : null);
1678
- }, [l, _, X]), te = se((a) => {
1679
- a.preventDefault(), s(null);
1680
- }, []), ie = se(() => {
1681
- b(null), s(null), document.body.style.cursor = "";
1682
- }, []), de = se((a, m) => {
1683
- if (a.preventDefault(), !l || l === m)
2315
+ const z = L.get(v), w = L.get($);
2316
+ if (!z || !w) return;
2317
+ const W = z.type === "parent" && w.type === "parent" || z.type === "child" && w.type === "child" && z.parentKey === w.parentKey;
2318
+ x(W && v !== $ ? $ : null);
2319
+ }, [v, u, L]), N = ue((h) => {
2320
+ h.preventDefault(), x(null);
2321
+ }, []), Q = ue(() => {
2322
+ p(null), x(null), document.body.style.cursor = "";
2323
+ }, []), V = ue((h, $) => {
2324
+ if (h.preventDefault(), !v || v === $)
1684
2325
  return;
1685
- if (!_) {
1686
- const D = r.findIndex((ge) => (d ? d(ge) : JSON.stringify(ge)) === l), K = r.findIndex((ge) => (d ? d(ge) : JSON.stringify(ge)) === m);
1687
- if (D === -1 || K === -1)
2326
+ if (!u) {
2327
+ const W = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === v), re = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === $);
2328
+ if (W === -1 || re === -1)
1688
2329
  return;
1689
- const I = [...r], [xe] = I.splice(D, 1);
1690
- I.splice(K, 0, xe), x == null || x(I), b(null), s(null), document.body.style.cursor = "";
2330
+ const te = [...i], [Ce] = te.splice(W, 1);
2331
+ te.splice(re, 0, Ce), o == null || o(te), p(null), x(null), document.body.style.cursor = "";
1691
2332
  return;
1692
2333
  }
1693
- const h = X.get(l), o = X.get(m);
1694
- if (!(!h || !o)) {
1695
- if (h.type === "parent" && o.type === "parent") {
1696
- const D = r.findIndex((ge) => (d ? d(ge) : JSON.stringify(ge)) === h.key), K = r.findIndex((ge) => (d ? d(ge) : JSON.stringify(ge)) === o.key);
1697
- if (D === -1 || K === -1) return;
1698
- const I = [...r], [xe] = I.splice(D, 1);
1699
- I.splice(K, 0, xe), x == null || x(I), b(null), s(null), document.body.style.cursor = "";
2334
+ const z = L.get(v), w = L.get($);
2335
+ if (!(!z || !w)) {
2336
+ if (z.type === "parent" && w.type === "parent") {
2337
+ const W = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === z.key), re = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === w.key);
2338
+ if (W === -1 || re === -1) return;
2339
+ const te = [...i], [Ce] = te.splice(W, 1);
2340
+ te.splice(re, 0, Ce), o == null || o(te), p(null), x(null), document.body.style.cursor = "";
1700
2341
  return;
1701
2342
  }
1702
- if (h.type === "child" && o.type === "child" && h.parentKey === o.parentKey) {
1703
- const D = r.findIndex((ye) => (d ? d(ye) : JSON.stringify(ye)) === h.parentKey);
1704
- if (D === -1) return;
1705
- const K = r[D], I = K == null ? void 0 : K.children;
1706
- if (!I || I.length === 0) return;
1707
- const xe = I.findIndex((ye) => (d ? d(ye) : JSON.stringify(ye)) === h.key), ge = I.findIndex((ye) => (d ? d(ye) : JSON.stringify(ye)) === o.key);
1708
- if (xe === -1 || ge === -1) return;
1709
- const _e = r.map((ye, Ee) => {
1710
- if (Ee !== D) return ye;
1711
- const ke = [...I], [je] = ke.splice(xe, 1);
1712
- return ke.splice(ge, 0, je), { ...ye, children: ke };
2343
+ if (z.type === "child" && w.type === "child" && z.parentKey === w.parentKey) {
2344
+ const W = i.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === z.parentKey);
2345
+ if (W === -1) return;
2346
+ const re = i[W], te = re == null ? void 0 : re.children;
2347
+ if (!te || te.length === 0) return;
2348
+ const Ce = te.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === z.key), me = te.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === w.key);
2349
+ if (Ce === -1 || me === -1) return;
2350
+ const ke = i.map((xe, De) => {
2351
+ if (De !== W) return xe;
2352
+ const $e = [...te], [Ne] = $e.splice(Ce, 1);
2353
+ return $e.splice(me, 0, Ne), { ...xe, children: $e };
1713
2354
  });
1714
- x == null || x(_e), b(null), s(null), document.body.style.cursor = "";
2355
+ o == null || o(ke), p(null), x(null), document.body.style.cursor = "";
1715
2356
  return;
1716
2357
  }
1717
2358
  }
1718
- }, [l, r, d, x, _, X]);
1719
- if (r.length === 0) {
1720
- let a;
1721
- return y && (a = ((A = y.current) == null ? void 0 : A.clientWidth) + "px"), /* @__PURE__ */ n.jsx("tbody", { className: `radar-table__body ${R ? R + "__body" : ""} ${ne}`, style: Z, children: /* @__PURE__ */ n.jsx(
2359
+ }, [v, i, r, o, u, L]);
2360
+ if (i.length === 0) {
2361
+ let h;
2362
+ return y && (h = ((Ke = y.current) == null ? void 0 : Ke.clientWidth) + "px"), /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${U}`, style: K, children: /* @__PURE__ */ l.jsx(
1722
2363
  "tr",
1723
2364
  {
1724
- className: `radar-table__body-row ${R ? R + "__body-row" : ""} ${oe}`,
1725
- style: N,
1726
- children: /* @__PURE__ */ n.jsxs(
2365
+ className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${ae}`,
2366
+ style: I,
2367
+ children: /* @__PURE__ */ l.jsxs(
1727
2368
  "td",
1728
2369
  {
1729
- className: `radar-table__body-cell ${R ? R + "__body-cell" : ""} ${u}`,
1730
- colSpan: M.length,
2370
+ className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${f}`,
2371
+ colSpan: R.length,
1731
2372
  style: {
1732
- ...W
2373
+ ...Y
1733
2374
  },
1734
2375
  children: [
1735
- q && q(),
1736
- !q && /* @__PURE__ */ n.jsx("div", { className: `${a ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: a || "" }, children: "Нет данных" })
2376
+ ie && ie(),
2377
+ !ie && /* @__PURE__ */ l.jsx("div", { className: `${h ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: h || "" }, children: "Нет данных" })
1737
2378
  ]
1738
2379
  }
1739
2380
  )
1740
2381
  }
1741
2382
  ) });
1742
2383
  }
1743
- const Y = _ ? J : r.map((a) => ({
1744
- record: a,
1745
- key: d ? d(a) : JSON.stringify(a),
2384
+ const M = u ? G : i.map((h) => ({
2385
+ record: h,
2386
+ key: r ? r(h) : JSON.stringify(h),
1746
2387
  type: "parent",
1747
2388
  depth: 0,
1748
2389
  indexWithinGroup: 0,
1749
- groupSize: r.length
1750
- })), O = se((a) => {
1751
- const m = new Set(w);
1752
- m.has(a) ? m.delete(a) : m.add(a), $(Array.from(m));
1753
- }, [w, $]);
1754
- function re({ column: a, index: m, row: h, item: o }) {
1755
- var Oe, De;
1756
- const D = Ce(null), [K, I] = pe(0), xe = a.fixed && !a.width ? 200 : a.width, ge = a.fixed && !a.minWidth ? 200 : a.minWidth;
1757
- let _e = !1;
1758
- P && P.idx.includes(a.dataIndex) && (_e = !0), P && P.idx.length === 0 && (_e = !0), lt(() => {
1759
- if (!a.fixed) {
1760
- I(0);
2390
+ groupSize: i.length
2391
+ })), ne = ue((h) => {
2392
+ const $ = new Set(D);
2393
+ $.has(h) ? $.delete(h) : $.add(h), H(Array.from($));
2394
+ }, [D, H]);
2395
+ function ee({ column: h, index: $, row: z, item: w }) {
2396
+ var Ue, We;
2397
+ const W = je(null), [re, te] = ye(0), Ce = h.fixed && !h.width ? 200 : h.width, me = h.fixed && !h.minWidth ? 200 : h.minWidth;
2398
+ let ke = !1;
2399
+ c && c.idx.includes(h.dataIndex) && (ke = !0), c && c.idx.length === 0 && (ke = !0), Qe(() => {
2400
+ if (!h.fixed) {
2401
+ te(0);
1761
2402
  return;
1762
2403
  }
1763
- let Fe = a.fixedLeft || 0;
1764
- if (m !== 0) {
1765
- for (let we = 0; we < m; we++)
1766
- if (M[we].fixed && !M[we].hidden) {
1767
- const ze = M[we].width || M[we].minWidth || 200, Me = Kt(M[we].key);
1768
- Fe += Math.floor(Me ?? ze) - 0.05;
2404
+ let Ae = h.fixedLeft || 0;
2405
+ if ($ !== 0) {
2406
+ for (let we = 0; we < $; we++)
2407
+ if (R[we].fixed && !R[we].hidden) {
2408
+ const ze = R[we].width || R[we].minWidth || 200, Fe = mn(R[we].key);
2409
+ Ae += Math.floor(Fe ?? ze) - 0.05;
1769
2410
  }
1770
2411
  }
1771
- I(Fe);
1772
- }, [a.fixed, a.fixedLeft, a.width, m]);
1773
- const ye = le(a), Ee = m === 0, ke = _ && Ee && h.depth > 0 ? h.depth * (G || 16) : void 0, je = !!(_ && h.type === "parent"), Se = !!(_ && w.has(h.key)), We = !!(_ && je && (o != null && o.children) && o.children.length > 0);
1774
- return a.hidden ? null : /* @__PURE__ */ n.jsx(
2412
+ te(Ae);
2413
+ }, [h.fixed, h.fixedLeft, h.width, $]);
2414
+ const xe = J(h), De = $ === 0, $e = u && De && z.depth > 0 ? z.depth * (q || 16) : void 0, Ne = !!(u && z.type === "parent"), Ie = !!(u && D.has(z.key)), Je = !!(u && Ne && (w != null && w.children) && w.children.length > 0);
2415
+ return h.hidden ? null : /* @__PURE__ */ l.jsx(
1775
2416
  "td",
1776
2417
  {
1777
- ref: D,
1778
- "data-column-key": a.key,
1779
- className: `radar-table__body-cell ${R ? R + "__body-cell" : ""} ${u}`,
2418
+ ref: W,
2419
+ "data-column-key": h.key,
2420
+ className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${f}`,
1780
2421
  style: {
1781
- width: xe,
1782
- minWidth: ge,
1783
- position: a.fixed ? "sticky" : "static",
1784
- left: K,
1785
- borderRight: a.fixed && !((Oe = M[m + 1]) != null && Oe.fixed) ? "1px solid #E8E8E8" : "none",
1786
- cursor: Ee && We ? "pointer" : "default",
1787
- ...W
2422
+ width: Ce,
2423
+ minWidth: me,
2424
+ position: h.fixed ? "sticky" : "static",
2425
+ left: re,
2426
+ borderRight: h.fixed && !((Ue = R[$ + 1]) != null && Ue.fixed) ? "1px solid #E8E8E8" : "none",
2427
+ cursor: De && Je ? "pointer" : "default",
2428
+ ...Y
1788
2429
  },
1789
- onClick: Ee && We ? () => O(h.key) : void 0,
1790
- children: /* @__PURE__ */ n.jsxs(
2430
+ onClick: De && Je ? () => ne(z.key) : void 0,
2431
+ children: /* @__PURE__ */ l.jsxs(
1791
2432
  "div",
1792
2433
  {
1793
- className: `radar-table__body-cell-wrapper ${R ? R + "__body-cell-wrapper" : ""} ${v}`,
2434
+ className: `radar-table__body-cell-wrapper ${a ? a + "__body-cell-wrapper" : ""} ${k}`,
1794
2435
  style: {
1795
- backgroundColor: ye || "white",
1796
- paddingLeft: ke,
1797
- ...T
2436
+ backgroundColor: xe || "white",
2437
+ paddingLeft: $e,
2438
+ ...B
1798
2439
  },
1799
2440
  children: [
1800
- Ee && je && _ && (o == null ? void 0 : o.children) && o.children.length > 0 && /* @__PURE__ */ n.jsx(
2441
+ De && Ne && u && (w == null ? void 0 : w.children) && w.children.length > 0 && /* @__PURE__ */ l.jsx(
1801
2442
  "button",
1802
2443
  {
1803
2444
  type: "button",
1804
- className: `radar-table__expander-btn ${Se ? "expanded" : ""}`,
1805
- "aria-expanded": Se,
1806
- onClick: () => O(h.key),
1807
- style: { marginRight: 8, background: "transparent", border: "none", transform: Se ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
1808
- title: Se ? "Свернуть" : "Развернуть",
1809
- children: Q ? Q(Se, o) : /* @__PURE__ */ n.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
2445
+ className: `radar-table__expander-btn ${Ie ? "expanded" : ""}`,
2446
+ "aria-expanded": Ie,
2447
+ onClick: () => ne(z.key),
2448
+ style: { marginRight: 8, background: "transparent", border: "none", transform: Ie ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
2449
+ title: Ie ? "Свернуть" : "Развернуть",
2450
+ children: X ? X(Ie, w) : /* @__PURE__ */ l.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
1810
2451
  }
1811
2452
  ),
1812
- _e ? P == null ? void 0 : P.renderer(o[a.dataIndex], o, m, a.dataIndex) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1813
- a.units && Yt(((De = o[a.key]) == null ? void 0 : De.toString()) || "", a.units),
1814
- !a.units && o[a.key]
2453
+ ke ? c == null ? void 0 : c.renderer(w[h.dataIndex], w, $, h.dataIndex) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2454
+ h.units && tn(((We = w[h.key]) == null ? void 0 : We.toString()) || "", h.units),
2455
+ !h.units && w[h.key]
1815
2456
  ] })
1816
2457
  ]
1817
2458
  }
1818
2459
  )
1819
2460
  },
1820
- a.key
2461
+ h.key
1821
2462
  );
1822
2463
  }
1823
- return /* @__PURE__ */ n.jsx("tbody", { className: `radar-table__body ${R ? R + "__body" : ""} ${ne}`, style: Z, children: Y.map((a) => {
1824
- const m = a.record, h = a.key;
1825
- return /* @__PURE__ */ n.jsx(
1826
- "tr",
1827
- {
1828
- className: `radar-table__body-row ${R ? R + "__body-row" : ""} ${oe} ${l === h ? "dragging" : ""} ${f === h ? "drag-over" : ""} ${_ ? a.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
1829
- style: N,
1830
- draggable: t,
1831
- onDragStart: (o) => he(o, h),
1832
- onDragOver: z,
1833
- onDragEnter: (o) => F(o, h),
1834
- onDragLeave: te,
1835
- onDrop: (o) => de(o, h),
1836
- onDragEnd: ie,
1837
- children: M.map((o, D) => /* @__PURE__ */ n.jsx(re, { column: o, index: D, row: a, item: m }, o.key))
1838
- },
1839
- h
1840
- );
1841
- }) });
2464
+ if (!(m != null && m.enabled))
2465
+ return /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${U}`, style: K, children: M.map((h) => {
2466
+ const $ = h.record, z = h.key;
2467
+ return /* @__PURE__ */ l.jsx(
2468
+ "tr",
2469
+ {
2470
+ className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${ae} ${v === z ? "dragging" : ""} ${b === z ? "drag-over" : ""} ${u ? h.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
2471
+ style: I,
2472
+ draggable: n,
2473
+ onDragStart: (w) => S(w, z),
2474
+ onDragOver: E,
2475
+ onDragEnter: (w) => A(w, z),
2476
+ onDragLeave: N,
2477
+ onDrop: (w) => V(w, z),
2478
+ onDragEnd: Q,
2479
+ children: R.map((w, W) => /* @__PURE__ */ l.jsx(ee, { column: w, index: W, row: h, item: $ }, w.key))
2480
+ },
2481
+ z
2482
+ );
2483
+ }) });
2484
+ const ve = m.estimateSize ?? 48, be = m.overscan ?? 12, le = gn({
2485
+ count: M.length,
2486
+ getScrollElement: () => y == null ? void 0 : y.current,
2487
+ estimateSize: () => ve,
2488
+ overscan: be,
2489
+ measureElement: (h) => h.getBoundingClientRect().height
2490
+ }), he = le.getVirtualItems(), Oe = le.getTotalSize(), Re = he.length ? he[0].start : 0, Te = he.length ? Oe - he[he.length - 1].end : 0;
2491
+ return /* @__PURE__ */ l.jsxs("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${U}`, style: K, children: [
2492
+ Re > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: Re }, children: /* @__PURE__ */ l.jsx("td", { colSpan: R.length }) }),
2493
+ he.map((h) => {
2494
+ const $ = M[h.index], z = $.record, w = $.key;
2495
+ return /* @__PURE__ */ l.jsx(
2496
+ "tr",
2497
+ {
2498
+ ref: le.measureElement,
2499
+ className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${ae} ${v === w ? "dragging" : ""} ${b === w ? "drag-over" : ""} ${u ? $.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
2500
+ style: I,
2501
+ draggable: n,
2502
+ onDragStart: (W) => S(W, w),
2503
+ onDragOver: E,
2504
+ onDragEnter: (W) => A(W, w),
2505
+ onDragLeave: N,
2506
+ onDrop: (W) => V(W, w),
2507
+ onDragEnd: Q,
2508
+ children: R.map((W, re) => /* @__PURE__ */ l.jsx(ee, { column: W, index: re, row: $, item: z }, W.key))
2509
+ },
2510
+ w
2511
+ );
2512
+ }),
2513
+ Te > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: Te }, children: /* @__PURE__ */ l.jsx("td", { colSpan: R.length }) })
2514
+ ] });
1842
2515
  }
1843
- const it = ({ config: t }) => {
1844
- const [{ current: r, pageSize: c, total: d, onChange: k, showQuickJumper: x, buttonsCount: R = 4, hideOnSinglePage: P = !1 }, _] = pe(t);
1845
- Ie(() => {
1846
- _(t);
1847
- }, [t]);
1848
- const V = Math.ceil(r / R), S = (V - 1) * R + 1, L = V * R, G = (u) => {
1849
- const W = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
1850
- !/^[0-9]$/.test(u.key) && !W.includes(u.key) && u.preventDefault();
1851
- }, Q = (u) => {
1852
- if (u.key === "Enter") {
1853
- const W = parseInt(u.currentTarget.value);
1854
- W > 0 && W <= d && (_({ ...t, current: W }), k == null || k(W, c), u.currentTarget.value = "");
1855
- }
1856
- }, ne = (u) => {
1857
- const v = u.target.value.replace(/[^0-9]/g, "");
1858
- u.target.value = v;
1859
- }, Z = (u) => {
1860
- u.preventDefault();
1861
- const v = u.clipboardData.getData("text").replace(/[^0-9]/g, ""), T = u.target, q = T.selectionStart || 0, y = T.selectionEnd || 0, g = T.value.substring(0, q) + v + T.value.substring(y);
1862
- T.value = g, T.setSelectionRange(q + v.length, q + v.length);
1863
- }, oe = (u) => {
1864
- const W = u.currentTarget.id;
1865
- W === "pagination_left_button" && r > 1 && (_({ ...t, current: r - 1 }), k == null || k(r - 1, c)), W === "pagination_right_button" && r < d && (_({ ...t, current: r + 1 }), k == null || k(r + 1, c));
1866
- }, N = (u) => {
1867
- _({ ...t, current: u }), k == null || k(u, c);
2516
+ const pt = ({ config: n }) => {
2517
+ const [{ current: i, pageSize: t, total: r, onChange: s, showQuickJumper: o, buttonsCount: a = 4, hideOnSinglePage: c = !1 }, u] = ye(n);
2518
+ He(() => {
2519
+ u(n);
2520
+ }, [n]);
2521
+ const j = Math.ceil(i / a), g = (j - 1) * a + 1, T = j * a, q = (f) => {
2522
+ const Y = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
2523
+ !/^[0-9]$/.test(f.key) && !Y.includes(f.key) && f.preventDefault();
2524
+ }, X = (f) => {
2525
+ if (f.key === "Enter") {
2526
+ const Y = parseInt(f.currentTarget.value);
2527
+ Y > 0 && Y <= r && (u({ ...n, current: Y }), s == null || s(Y, t), f.currentTarget.value = "");
2528
+ }
2529
+ }, U = (f) => {
2530
+ const k = f.target.value.replace(/[^0-9]/g, "");
2531
+ f.target.value = k;
2532
+ }, K = (f) => {
2533
+ f.preventDefault();
2534
+ const k = f.clipboardData.getData("text").replace(/[^0-9]/g, ""), B = f.target, ie = B.selectionStart || 0, y = B.selectionEnd || 0, _ = B.value.substring(0, ie) + k + B.value.substring(y);
2535
+ B.value = _, B.setSelectionRange(ie + k.length, ie + k.length);
2536
+ }, ae = (f) => {
2537
+ const Y = f.currentTarget.id;
2538
+ Y === "pagination_left_button" && i > 1 && (u({ ...n, current: i - 1 }), s == null || s(i - 1, t)), Y === "pagination_right_button" && i < r && (u({ ...n, current: i + 1 }), s == null || s(i + 1, t));
2539
+ }, I = (f) => {
2540
+ u({ ...n, current: f }), s == null || s(f, t);
1868
2541
  };
1869
- return P && d <= 1 ? null : /* @__PURE__ */ n.jsxs("div", { className: "radar-table__pagination", children: [
1870
- /* @__PURE__ */ n.jsxs(
2542
+ return c && r <= 1 ? null : /* @__PURE__ */ l.jsxs("div", { className: "radar-table__pagination", children: [
2543
+ /* @__PURE__ */ l.jsxs(
1871
2544
  "div",
1872
2545
  {
1873
2546
  className: "radar-table__pagination-main",
1874
2547
  style: {
1875
- gridTemplateColumns: `repeat(${R + 2}, 32px)`
2548
+ gridTemplateColumns: `repeat(${a + 2}, 32px)`
1876
2549
  },
1877
2550
  children: [
1878
- /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: oe, title: "Назад", children: /* @__PURE__ */ n.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
1879
- Array.from({ length: d }, (u, W) => W + 1).map((u) => {
1880
- const W = r === u;
1881
- if (u >= S && u <= L)
1882
- return W ? /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: u }, u) : /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button", onClick: () => N(u), children: u }, u);
2551
+ /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: ae, title: "Назад", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
2552
+ Array.from({ length: r }, (f, Y) => Y + 1).map((f) => {
2553
+ const Y = i === f;
2554
+ if (f >= g && f <= T)
2555
+ return Y ? /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: f }, f) : /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button", onClick: () => I(f), children: f }, f);
1883
2556
  }),
1884
- /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: oe, title: "Вперёд", children: /* @__PURE__ */ n.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
2557
+ /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: ae, title: "Вперёд", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
1885
2558
  ]
1886
2559
  }
1887
2560
  ),
1888
- x && /* @__PURE__ */ n.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
2561
+ o && /* @__PURE__ */ l.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
1889
2562
  "Перейти на ",
1890
- /* @__PURE__ */ n.jsx(
2563
+ /* @__PURE__ */ l.jsx(
1891
2564
  "input",
1892
2565
  {
1893
2566
  className: "radar-table__pagination-input",
1894
- onKeyDown: G,
1895
- onChange: ne,
1896
- onPaste: Z,
1897
- onKeyUp: (u) => Q(u)
2567
+ onKeyDown: q,
2568
+ onChange: U,
2569
+ onPaste: K,
2570
+ onKeyUp: (f) => X(f)
1898
2571
  }
1899
2572
  ),
1900
2573
  " стр. из ",
1901
- d
2574
+ r
1902
2575
  ] })
1903
2576
  ] });
1904
2577
  };
1905
- function rr({
1906
- dataSource: t,
1907
- preset: r,
1908
- config: c,
1909
- rowKey: d,
1910
- loading: k = !1,
1911
- pagination: x,
1912
- stickyHeader: R = !1,
1913
- resizeable: P = !1,
1914
- draggableRows: _ = !1,
1915
- draggableColumns: V = !1,
1916
- scrollContainerRef: S,
1917
- onResize: L,
1918
- onSort: G,
1919
- onRowReorder: Q,
1920
- onColumnReorder: ne,
1921
- customCellRender: Z,
1922
- noDataRender: oe,
1923
- sortIcon: N,
1924
- expandIcon: u,
1925
- recalculateRowHeight: W = !1,
2578
+ function Sn({
2579
+ dataSource: n,
2580
+ preset: i,
2581
+ config: t,
2582
+ rowKey: r,
2583
+ loading: s = !1,
2584
+ pagination: o,
2585
+ stickyHeader: a = !1,
2586
+ resizeable: c = !1,
2587
+ draggableRows: u = !1,
2588
+ draggableColumns: j = !1,
2589
+ scrollContainerRef: g,
2590
+ onResize: T,
2591
+ onSort: q,
2592
+ onRowReorder: X,
2593
+ onColumnReorder: U,
2594
+ customCellRender: K,
2595
+ noDataRender: ae,
2596
+ sortIcon: I,
2597
+ expandIcon: f,
2598
+ recalculateRowHeight: Y = !1,
1926
2599
  // sorting props
1927
- sorting: v,
1928
- defaultSorting: T,
2600
+ sorting: k,
2601
+ defaultSorting: B,
1929
2602
  // tree props
1930
- treeMode: q,
2603
+ treeMode: ie,
1931
2604
  expandedRowKeys: y,
1932
- defaultExpandedRowKeys: g,
1933
- onExpandedRowsChange: l,
1934
- indentSize: b,
1935
- className: f = "",
1936
- style: s,
1937
- headerClassName: C = "",
1938
- headerStyle: E,
1939
- headerCellClassName: w = "",
1940
- headerCellStyle: $,
1941
- headerRowClassName: ee = "",
1942
- headerRowStyle: J,
1943
- headerCellWrapperClassName: X = "",
1944
- headerCellWrapperStyle: H,
1945
- bodyClassName: M = "",
1946
- bodyStyle: le,
1947
- bodyRowClassName: he = "",
1948
- bodyRowStyle: z,
1949
- bodyCellClassName: F = "",
1950
- bodyCellStyle: te,
1951
- bodyCellWrapperClassName: ie = "",
1952
- bodyCellWrapperStyle: de,
1953
- headerGroupRowClassName: Y,
1954
- headerGroupRowStyle: O,
1955
- headerGroupCellClassName: re,
1956
- headerGroupCellStyle: A,
1957
- headerGroupCellWrapperClassName: a,
1958
- headerGroupCellWrapperStyle: m,
1959
- paginationContainerClassName: h = "",
1960
- paginationContainerStyle: o,
1961
- resizeThrottle: D = 0
2605
+ defaultExpandedRowKeys: _,
2606
+ onExpandedRowsChange: m,
2607
+ indentSize: v,
2608
+ className: p = "",
2609
+ style: b,
2610
+ headerClassName: x = "",
2611
+ headerStyle: O,
2612
+ headerCellClassName: P = "",
2613
+ headerCellStyle: D,
2614
+ headerRowClassName: H = "",
2615
+ headerRowStyle: Z,
2616
+ headerCellWrapperClassName: G = "",
2617
+ headerCellWrapperStyle: L,
2618
+ bodyClassName: ce = "",
2619
+ bodyStyle: R,
2620
+ bodyRowClassName: J = "",
2621
+ bodyRowStyle: S,
2622
+ bodyCellClassName: E = "",
2623
+ bodyCellStyle: A,
2624
+ bodyCellWrapperClassName: N = "",
2625
+ bodyCellWrapperStyle: Q,
2626
+ headerGroupRowClassName: V,
2627
+ headerGroupRowStyle: M,
2628
+ headerGroupCellClassName: ne,
2629
+ headerGroupCellStyle: ee,
2630
+ headerGroupCellWrapperClassName: ve,
2631
+ headerGroupCellWrapperStyle: be,
2632
+ paginationContainerClassName: le = "",
2633
+ paginationContainerStyle: he,
2634
+ resizeThrottle: Oe = 0,
2635
+ virtualization: Re
1962
2636
  }) {
1963
- return V ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1964
- /* @__PURE__ */ n.jsx(
1965
- Mt,
2637
+ return j ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2638
+ /* @__PURE__ */ l.jsx(
2639
+ Zt,
1966
2640
  {
1967
- fullConfig: c,
1968
- onColumnReorder: ne,
1969
- scrollContainerRef: S,
1970
- children: /* @__PURE__ */ n.jsx(
1971
- at,
2641
+ fullConfig: t,
2642
+ onColumnReorder: U,
2643
+ scrollContainerRef: g,
2644
+ children: /* @__PURE__ */ l.jsx(
2645
+ mt,
1972
2646
  {
1973
- dataSource: t,
1974
- preset: r,
1975
- config: c,
1976
- rowKey: d,
1977
- loading: k,
1978
- pagination: x,
1979
- stickyHeader: R,
1980
- resizeable: P,
1981
- draggableRows: _,
1982
- draggableColumns: V,
1983
- scrollContainerRef: S,
1984
- onResize: L,
1985
- onSort: G,
1986
- onRowReorder: Q,
1987
- onColumnReorder: ne,
1988
- customCellRender: Z,
1989
- sortIcon: N,
1990
- expandIcon: u,
1991
- treeMode: q,
2647
+ dataSource: n,
2648
+ preset: i,
2649
+ config: t,
2650
+ rowKey: r,
2651
+ loading: s,
2652
+ pagination: o,
2653
+ stickyHeader: a,
2654
+ resizeable: c,
2655
+ draggableRows: u,
2656
+ draggableColumns: j,
2657
+ scrollContainerRef: g,
2658
+ onResize: T,
2659
+ onSort: q,
2660
+ onRowReorder: X,
2661
+ onColumnReorder: U,
2662
+ customCellRender: K,
2663
+ sortIcon: I,
2664
+ expandIcon: f,
2665
+ treeMode: ie,
1992
2666
  expandedRowKeys: y,
1993
- defaultExpandedRowKeys: g,
1994
- onExpandedRowsChange: l,
1995
- indentSize: b,
1996
- className: f,
1997
- style: s,
1998
- headerClassName: C,
1999
- headerStyle: E,
2000
- headerCellClassName: w,
2001
- headerCellStyle: $,
2002
- headerRowClassName: ee,
2003
- headerRowStyle: J,
2004
- headerCellWrapperClassName: X,
2005
- headerCellWrapperStyle: H,
2006
- bodyClassName: M,
2007
- bodyStyle: le,
2008
- bodyRowClassName: he,
2009
- bodyRowStyle: z,
2010
- bodyCellClassName: F,
2011
- bodyCellStyle: te,
2012
- bodyCellWrapperClassName: ie,
2013
- bodyCellWrapperStyle: de,
2014
- headerGroupRowClassName: Y,
2015
- headerGroupRowStyle: O,
2016
- headerGroupCellClassName: re,
2017
- headerGroupCellStyle: A,
2018
- headerGroupCellWrapperClassName: a,
2019
- headerGroupCellWrapperStyle: m,
2020
- paginationContainerClassName: h,
2021
- paginationContainerStyle: o,
2022
- noDataRender: oe,
2023
- recalculateRowHeight: W,
2024
- sorting: v,
2025
- defaultSorting: T,
2026
- resizeThrottle: D
2667
+ defaultExpandedRowKeys: _,
2668
+ onExpandedRowsChange: m,
2669
+ indentSize: v,
2670
+ className: p,
2671
+ style: b,
2672
+ headerClassName: x,
2673
+ headerStyle: O,
2674
+ headerCellClassName: P,
2675
+ headerCellStyle: D,
2676
+ headerRowClassName: H,
2677
+ headerRowStyle: Z,
2678
+ headerCellWrapperClassName: G,
2679
+ headerCellWrapperStyle: L,
2680
+ bodyClassName: ce,
2681
+ bodyStyle: R,
2682
+ bodyRowClassName: J,
2683
+ bodyRowStyle: S,
2684
+ bodyCellClassName: E,
2685
+ bodyCellStyle: A,
2686
+ bodyCellWrapperClassName: N,
2687
+ bodyCellWrapperStyle: Q,
2688
+ headerGroupRowClassName: V,
2689
+ headerGroupRowStyle: M,
2690
+ headerGroupCellClassName: ne,
2691
+ headerGroupCellStyle: ee,
2692
+ headerGroupCellWrapperClassName: ve,
2693
+ headerGroupCellWrapperStyle: be,
2694
+ paginationContainerClassName: le,
2695
+ paginationContainerStyle: he,
2696
+ noDataRender: ae,
2697
+ recalculateRowHeight: Y,
2698
+ sorting: k,
2699
+ defaultSorting: B,
2700
+ resizeThrottle: Oe,
2701
+ virtualization: Re
2027
2702
  }
2028
2703
  )
2029
2704
  }
2030
2705
  ),
2031
- /* @__PURE__ */ n.jsx("div", { className: `radar-table-pagination-container ${h}`, style: o, children: x && /* @__PURE__ */ n.jsx(it, { config: x }) })
2032
- ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2033
- /* @__PURE__ */ n.jsx(
2034
- at,
2706
+ /* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${le}`, style: he, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
2707
+ ] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2708
+ /* @__PURE__ */ l.jsx(
2709
+ mt,
2035
2710
  {
2036
- dataSource: t,
2037
- preset: r,
2038
- config: c,
2039
- rowKey: d,
2040
- loading: k,
2041
- pagination: x,
2042
- stickyHeader: R,
2043
- resizeable: P,
2044
- draggableRows: _,
2045
- draggableColumns: V,
2046
- scrollContainerRef: S,
2047
- onResize: L,
2048
- onSort: G,
2049
- onRowReorder: Q,
2050
- onColumnReorder: ne,
2051
- customCellRender: Z,
2052
- sortIcon: N,
2053
- expandIcon: u,
2054
- treeMode: q,
2711
+ dataSource: n,
2712
+ preset: i,
2713
+ config: t,
2714
+ rowKey: r,
2715
+ loading: s,
2716
+ pagination: o,
2717
+ stickyHeader: a,
2718
+ resizeable: c,
2719
+ draggableRows: u,
2720
+ draggableColumns: j,
2721
+ scrollContainerRef: g,
2722
+ onResize: T,
2723
+ onSort: q,
2724
+ onRowReorder: X,
2725
+ onColumnReorder: U,
2726
+ customCellRender: K,
2727
+ sortIcon: I,
2728
+ expandIcon: f,
2729
+ treeMode: ie,
2055
2730
  expandedRowKeys: y,
2056
- defaultExpandedRowKeys: g,
2057
- onExpandedRowsChange: l,
2058
- indentSize: b,
2059
- className: f,
2060
- style: s,
2061
- headerClassName: C,
2062
- headerStyle: E,
2063
- headerCellClassName: w,
2064
- headerCellStyle: $,
2065
- headerRowClassName: ee,
2066
- headerRowStyle: J,
2067
- headerCellWrapperClassName: X,
2068
- headerCellWrapperStyle: H,
2069
- bodyClassName: M,
2070
- bodyStyle: le,
2071
- bodyRowClassName: he,
2072
- bodyRowStyle: z,
2073
- bodyCellClassName: F,
2074
- bodyCellStyle: te,
2075
- bodyCellWrapperClassName: ie,
2076
- bodyCellWrapperStyle: de,
2077
- headerGroupRowClassName: Y,
2078
- headerGroupRowStyle: O,
2079
- headerGroupCellClassName: re,
2080
- headerGroupCellStyle: A,
2081
- headerGroupCellWrapperClassName: a,
2082
- headerGroupCellWrapperStyle: m,
2083
- paginationContainerClassName: h,
2084
- paginationContainerStyle: o,
2085
- noDataRender: oe,
2086
- recalculateRowHeight: W,
2087
- sorting: v,
2088
- defaultSorting: T,
2089
- resizeThrottle: D
2731
+ defaultExpandedRowKeys: _,
2732
+ onExpandedRowsChange: m,
2733
+ indentSize: v,
2734
+ className: p,
2735
+ style: b,
2736
+ headerClassName: x,
2737
+ headerStyle: O,
2738
+ headerCellClassName: P,
2739
+ headerCellStyle: D,
2740
+ headerRowClassName: H,
2741
+ headerRowStyle: Z,
2742
+ headerCellWrapperClassName: G,
2743
+ headerCellWrapperStyle: L,
2744
+ bodyClassName: ce,
2745
+ bodyStyle: R,
2746
+ bodyRowClassName: J,
2747
+ bodyRowStyle: S,
2748
+ bodyCellClassName: E,
2749
+ bodyCellStyle: A,
2750
+ bodyCellWrapperClassName: N,
2751
+ bodyCellWrapperStyle: Q,
2752
+ headerGroupRowClassName: V,
2753
+ headerGroupRowStyle: M,
2754
+ headerGroupCellClassName: ne,
2755
+ headerGroupCellStyle: ee,
2756
+ headerGroupCellWrapperClassName: ve,
2757
+ headerGroupCellWrapperStyle: be,
2758
+ paginationContainerClassName: le,
2759
+ paginationContainerStyle: he,
2760
+ noDataRender: ae,
2761
+ recalculateRowHeight: Y,
2762
+ sorting: k,
2763
+ defaultSorting: B,
2764
+ resizeThrottle: Oe,
2765
+ virtualization: Re
2090
2766
  }
2091
2767
  ),
2092
- /* @__PURE__ */ n.jsx("div", { className: `radar-table-pagination-container ${h}`, style: o, children: x && /* @__PURE__ */ n.jsx(it, { config: x }) })
2768
+ /* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${le}`, style: he, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
2093
2769
  ] });
2094
2770
  }
2095
- function at(t) {
2771
+ function mt(n) {
2096
2772
  const {
2097
- dataSource: r,
2098
- preset: c,
2099
- config: d,
2100
- rowKey: k,
2101
- loading: x,
2102
- stickyHeader: R,
2103
- resizeable: P,
2104
- draggableRows: _,
2105
- draggableColumns: V,
2106
- scrollContainerRef: S,
2107
- onResize: L,
2108
- onSort: G,
2109
- onRowReorder: Q,
2110
- onColumnReorder: ne,
2111
- customCellRender: Z,
2112
- sortIcon: oe,
2113
- expandIcon: N,
2114
- treeMode: u,
2115
- expandedRowKeys: W,
2116
- defaultExpandedRowKeys: v,
2117
- onExpandedRowsChange: T,
2118
- indentSize: q,
2773
+ dataSource: i,
2774
+ preset: t,
2775
+ config: r,
2776
+ rowKey: s,
2777
+ loading: o,
2778
+ stickyHeader: a,
2779
+ resizeable: c,
2780
+ draggableRows: u,
2781
+ draggableColumns: j,
2782
+ scrollContainerRef: g,
2783
+ onResize: T,
2784
+ onSort: q,
2785
+ onRowReorder: X,
2786
+ onColumnReorder: U,
2787
+ customCellRender: K,
2788
+ sortIcon: ae,
2789
+ expandIcon: I,
2790
+ treeMode: f,
2791
+ expandedRowKeys: Y,
2792
+ defaultExpandedRowKeys: k,
2793
+ onExpandedRowsChange: B,
2794
+ indentSize: ie,
2119
2795
  className: y,
2120
- style: g,
2121
- headerClassName: l,
2122
- headerStyle: b,
2123
- headerCellClassName: f,
2124
- headerCellStyle: s,
2125
- headerRowClassName: C,
2126
- headerRowStyle: E,
2127
- headerCellWrapperClassName: w,
2128
- headerCellWrapperStyle: $,
2129
- bodyClassName: ee,
2130
- bodyStyle: J,
2131
- bodyRowClassName: X,
2132
- bodyRowStyle: H,
2133
- bodyCellClassName: M,
2134
- bodyCellStyle: le,
2135
- bodyCellWrapperClassName: he,
2136
- bodyCellWrapperStyle: z,
2137
- headerGroupRowClassName: F,
2138
- headerGroupRowStyle: te,
2139
- headerGroupCellClassName: ie,
2140
- headerGroupCellStyle: de,
2141
- headerGroupCellWrapperClassName: Y,
2142
- headerGroupCellWrapperStyle: O,
2143
- noDataRender: re,
2144
- recalculateRowHeight: A,
2145
- sorting: a,
2146
- defaultSorting: m,
2147
- resizeThrottle: h
2148
- } = t;
2149
- return /* @__PURE__ */ n.jsxs("table", { className: `radar-table ${c || ""} ${y}`, style: g, children: [
2150
- /* @__PURE__ */ n.jsx(
2151
- Ht,
2152
- {
2153
- draggableColumns: V,
2154
- config: d,
2155
- onSort: G,
2156
- resizeable: P,
2157
- onResize: L,
2158
- sortIcon: oe,
2159
- preset: c,
2160
- headerClassName: l,
2161
- headerStyle: b,
2162
- headerRowClassName: C,
2163
- headerRowStyle: E,
2164
- headerCellClassName: f,
2165
- headerCellStyle: s,
2166
- headerCellWrapperClassName: w,
2167
- headerCellWrapperStyle: $,
2168
- headerGroupRowClassName: F,
2169
- headerGroupRowStyle: te,
2170
- headerGroupCellClassName: ie,
2171
- headerGroupCellStyle: de,
2172
- headerGroupCellWrapperClassName: Y,
2173
- headerGroupCellWrapperStyle: O,
2174
- stickyHeader: R,
2175
- scrollContainerRef: S,
2176
- onColumnReorder: ne,
2177
- sorting: a,
2178
- defaultSorting: m,
2179
- resizeThrottle: h
2180
- }
2181
- ),
2182
- /* @__PURE__ */ n.jsx(
2183
- Zt,
2184
- {
2185
- draggableRows: _,
2186
- onRowReorder: Q,
2187
- dataSource: r,
2188
- config: d,
2189
- rowKey: k,
2190
- loading: x,
2191
- preset: c,
2192
- customCellRender: Z,
2193
- expandIcon: N,
2194
- treeMode: u,
2195
- expandedRowKeys: W,
2196
- defaultExpandedRowKeys: v,
2197
- onExpandedRowsChange: T,
2198
- indentSize: q,
2199
- bodyClassName: ee,
2200
- bodyStyle: J,
2201
- bodyRowClassName: X,
2202
- bodyRowStyle: H,
2203
- bodyCellClassName: M,
2204
- bodyCellStyle: le,
2205
- bodyCellWrapperClassName: he,
2206
- bodyCellWrapperStyle: z,
2207
- noDataRender: re,
2208
- scrollContainerRef: S,
2209
- recalculateRowHeight: A
2210
- }
2211
- )
2212
- ] });
2796
+ style: _,
2797
+ headerClassName: m,
2798
+ headerStyle: v,
2799
+ headerCellClassName: p,
2800
+ headerCellStyle: b,
2801
+ headerRowClassName: x,
2802
+ headerRowStyle: O,
2803
+ headerCellWrapperClassName: P,
2804
+ headerCellWrapperStyle: D,
2805
+ bodyClassName: H,
2806
+ bodyStyle: Z,
2807
+ bodyRowClassName: G,
2808
+ bodyRowStyle: L,
2809
+ bodyCellClassName: ce,
2810
+ bodyCellStyle: R,
2811
+ bodyCellWrapperClassName: J,
2812
+ bodyCellWrapperStyle: S,
2813
+ headerGroupRowClassName: E,
2814
+ headerGroupRowStyle: A,
2815
+ headerGroupCellClassName: N,
2816
+ headerGroupCellStyle: Q,
2817
+ headerGroupCellWrapperClassName: V,
2818
+ headerGroupCellWrapperStyle: M,
2819
+ noDataRender: ne,
2820
+ recalculateRowHeight: ee,
2821
+ sorting: ve,
2822
+ defaultSorting: be,
2823
+ resizeThrottle: le
2824
+ } = n;
2825
+ return /* @__PURE__ */ l.jsxs(
2826
+ "table",
2827
+ {
2828
+ className: `radar-table ${t || ""} ${y}`,
2829
+ style: {
2830
+ tableLayout: c ? "fixed" : "auto",
2831
+ width: c ? "max-content" : "auto",
2832
+ ..._
2833
+ },
2834
+ children: [
2835
+ /* @__PURE__ */ l.jsx(
2836
+ en,
2837
+ {
2838
+ draggableColumns: j,
2839
+ config: r,
2840
+ onSort: q,
2841
+ resizeable: c,
2842
+ onResize: T,
2843
+ sortIcon: ae,
2844
+ preset: t,
2845
+ headerClassName: m,
2846
+ headerStyle: v,
2847
+ headerRowClassName: x,
2848
+ headerRowStyle: O,
2849
+ headerCellClassName: p,
2850
+ headerCellStyle: b,
2851
+ headerCellWrapperClassName: P,
2852
+ headerCellWrapperStyle: D,
2853
+ headerGroupRowClassName: E,
2854
+ headerGroupRowStyle: A,
2855
+ headerGroupCellClassName: N,
2856
+ headerGroupCellStyle: Q,
2857
+ headerGroupCellWrapperClassName: V,
2858
+ headerGroupCellWrapperStyle: M,
2859
+ stickyHeader: a,
2860
+ scrollContainerRef: g,
2861
+ onColumnReorder: U,
2862
+ sorting: ve,
2863
+ defaultSorting: be,
2864
+ resizeThrottle: le
2865
+ }
2866
+ ),
2867
+ /* @__PURE__ */ l.jsx(
2868
+ vn,
2869
+ {
2870
+ draggableRows: u,
2871
+ onRowReorder: X,
2872
+ dataSource: i,
2873
+ config: r,
2874
+ rowKey: s,
2875
+ loading: o,
2876
+ preset: t,
2877
+ customCellRender: K,
2878
+ expandIcon: I,
2879
+ treeMode: f,
2880
+ expandedRowKeys: Y,
2881
+ defaultExpandedRowKeys: k,
2882
+ onExpandedRowsChange: B,
2883
+ indentSize: ie,
2884
+ bodyClassName: H,
2885
+ bodyStyle: Z,
2886
+ bodyRowClassName: G,
2887
+ bodyRowStyle: L,
2888
+ bodyCellClassName: ce,
2889
+ bodyCellStyle: R,
2890
+ bodyCellWrapperClassName: J,
2891
+ bodyCellWrapperStyle: S,
2892
+ noDataRender: ne,
2893
+ scrollContainerRef: g,
2894
+ recalculateRowHeight: ee,
2895
+ virtualization: n.virtualization
2896
+ }
2897
+ )
2898
+ ]
2899
+ }
2900
+ );
2213
2901
  }
2214
- const st = ({ children: t, tagType: r = "h1", ...c }) => {
2215
- if (r === "h1")
2216
- return /* @__PURE__ */ n.jsx(
2902
+ const yt = ({ children: n, tagType: i = "h1", ...t }) => {
2903
+ if (i === "h1")
2904
+ return /* @__PURE__ */ l.jsx(
2217
2905
  "h1",
2218
2906
  {
2219
2907
  className: "radar-title radar-title_h1",
2220
- ...c,
2221
- children: t
2908
+ ...t,
2909
+ children: n
2222
2910
  }
2223
2911
  );
2224
- if (r === "h2")
2225
- return /* @__PURE__ */ n.jsx(
2912
+ if (i === "h2")
2913
+ return /* @__PURE__ */ l.jsx(
2226
2914
  "h2",
2227
2915
  {
2228
2916
  className: "radar-title radar-title_h1",
2229
- ...c,
2230
- children: t
2917
+ ...t,
2918
+ children: n
2231
2919
  }
2232
2920
  );
2233
- if (r === "h3")
2234
- return /* @__PURE__ */ n.jsx(
2921
+ if (i === "h3")
2922
+ return /* @__PURE__ */ l.jsx(
2235
2923
  "h3",
2236
2924
  {
2237
2925
  className: "radar-title radar-title_h1",
2238
- ...c,
2239
- children: t
2926
+ ...t,
2927
+ children: n
2240
2928
  }
2241
2929
  );
2242
- if (r === "h4")
2243
- return /* @__PURE__ */ n.jsx(
2930
+ if (i === "h4")
2931
+ return /* @__PURE__ */ l.jsx(
2244
2932
  "h4",
2245
2933
  {
2246
2934
  className: "radar-title radar-title_h1",
2247
- ...c,
2248
- children: t
2935
+ ...t,
2936
+ children: n
2249
2937
  }
2250
2938
  );
2251
- if (r === "h5")
2252
- return /* @__PURE__ */ n.jsx(
2939
+ if (i === "h5")
2940
+ return /* @__PURE__ */ l.jsx(
2253
2941
  "h5",
2254
2942
  {
2255
2943
  className: "radar-title radar-title_h1",
2256
- ...c,
2257
- children: t
2944
+ ...t,
2945
+ children: n
2258
2946
  }
2259
2947
  );
2260
- if (r === "h6")
2261
- return /* @__PURE__ */ n.jsx(
2948
+ if (i === "h6")
2949
+ return /* @__PURE__ */ l.jsx(
2262
2950
  "h6",
2263
2951
  {
2264
2952
  className: "radar-title radar-title_h1",
2265
- ...c,
2266
- children: t
2953
+ ...t,
2954
+ children: n
2267
2955
  }
2268
2956
  );
2269
- }, Gt = ({ children: t, tagType: r = "h2", ...c }) => {
2270
- if (r === "h1")
2271
- return /* @__PURE__ */ n.jsx(
2957
+ }, bn = ({ children: n, tagType: i = "h2", ...t }) => {
2958
+ if (i === "h1")
2959
+ return /* @__PURE__ */ l.jsx(
2272
2960
  "h1",
2273
2961
  {
2274
2962
  className: "radar-title radar-title_h2",
2275
- ...c,
2276
- children: t
2963
+ ...t,
2964
+ children: n
2277
2965
  }
2278
2966
  );
2279
- if (r === "h2")
2280
- return /* @__PURE__ */ n.jsx(
2967
+ if (i === "h2")
2968
+ return /* @__PURE__ */ l.jsx(
2281
2969
  "h2",
2282
2970
  {
2283
2971
  className: "radar-title radar-title_h2",
2284
- ...c,
2285
- children: t
2972
+ ...t,
2973
+ children: n
2286
2974
  }
2287
2975
  );
2288
- if (r === "h3")
2289
- return /* @__PURE__ */ n.jsx(
2976
+ if (i === "h3")
2977
+ return /* @__PURE__ */ l.jsx(
2290
2978
  "h3",
2291
2979
  {
2292
2980
  className: "radar-title radar-title_h2",
2293
- ...c,
2294
- children: t
2981
+ ...t,
2982
+ children: n
2295
2983
  }
2296
2984
  );
2297
- if (r === "h4")
2298
- return /* @__PURE__ */ n.jsx(
2985
+ if (i === "h4")
2986
+ return /* @__PURE__ */ l.jsx(
2299
2987
  "h4",
2300
2988
  {
2301
2989
  className: "radar-title radar-title_h2",
2302
- ...c,
2303
- children: t
2990
+ ...t,
2991
+ children: n
2304
2992
  }
2305
2993
  );
2306
- if (r === "h5")
2307
- return /* @__PURE__ */ n.jsx(
2994
+ if (i === "h5")
2995
+ return /* @__PURE__ */ l.jsx(
2308
2996
  "h5",
2309
2997
  {
2310
2998
  className: "radar-title radar-title_h2",
2311
- ...c,
2312
- children: t
2999
+ ...t,
3000
+ children: n
2313
3001
  }
2314
3002
  );
2315
- if (r === "h6")
2316
- return /* @__PURE__ */ n.jsx(
3003
+ if (i === "h6")
3004
+ return /* @__PURE__ */ l.jsx(
2317
3005
  "h6",
2318
3006
  {
2319
3007
  className: "radar-title radar-title_h2",
2320
- ...c,
2321
- children: t
3008
+ ...t,
3009
+ children: n
2322
3010
  }
2323
3011
  );
2324
- }, nr = Object.assign(st, { H1: st, H2: Gt }), ot = ({ children: t, fontStyle: r = "medium", ...c }) => /* @__PURE__ */ n.jsx("p", { className: `radar-text radar-text_m radar-text_${r}`, ...c, children: t }), Xt = ({ children: t, fontStyle: r = "medium", ...c }) => /* @__PURE__ */ n.jsx("p", { className: `radar-text radar-text_s radar-text_${r}`, ...c, children: t }), ir = Object.assign(ot, { M: ot, S: Xt });
3012
+ }, kn = Object.assign(yt, { H1: yt, H2: bn }), vt = ({ children: n, fontStyle: i = "medium", ...t }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_m radar-text_${i}`, ...t, children: n }), xn = ({ children: n, fontStyle: i = "medium", ...t }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_s radar-text_${i}`, ...t, children: n }), jn = Object.assign(vt, { M: vt, S: xn });
2325
3013
  export {
2326
- Jt as HeaderCell,
2327
- it as Pagination,
2328
- ir as RadarText,
2329
- nr as RadarTitle,
2330
- rr as Table,
2331
- At as Tooltip
3014
+ Qt as HeaderCell,
3015
+ pt as Pagination,
3016
+ jn as RadarText,
3017
+ kn as RadarTitle,
3018
+ Sn as Table,
3019
+ Ut as Tooltip
2332
3020
  };