radar-ui 1.1.30 → 1.1.32

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