radar-ui 1.1.25 → 1.1.27

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