radar-ui 1.1.14 → 1.1.16

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