radar-ui 1.1.25 → 1.1.26

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