module.exports=[956798,a=>{"use strict";var b=a.i(187924),c=a.i(572131);let d=(0,a.i(170106).default)("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);var e=a.i(787654),f=a.i(784581);a.s(["ColumnPicker",0,function({cols:a,colState:g,onToggle:h,onReset:i,onMove:j}){let[k,l]=(0,c.useState)(!1),[m,n]=(0,c.useState)(null),o=(0,c.useRef)(null),p=(0,c.useRef)(null);function q(){o.current=null,n(null)}return(0,c.useEffect)(()=>{if(k)return window.addEventListener("mousedown",a),()=>window.removeEventListener("mousedown",a);function a(a){p.current&&!p.current.contains(a.target)&&l(!1)}},[k]),(0,b.jsxs)("div",{ref:p,className:"relative",children:[(0,b.jsxs)("button",{onClick:()=>l(a=>!a),title:"Show/hide/reorder columns",className:`flex items-center gap-1.5 px-2.5 py-1.5 text-xs border rounded-md transition-colors ${k?"border-blue-400 bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300 dark:border-blue-600":"border-border text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-700"}`,children:[(0,b.jsx)(d,{className:"w-3.5 h-3.5"}),"Columns"]}),k&&(0,b.jsxs)("div",{className:"absolute right-0 top-full mt-1 z-50 flex flex-col bg-white dark:bg-gray-800 border border-border rounded-lg shadow-lg min-w-[180px] max-h-[min(70vh,32rem)] overflow-hidden",children:[(0,b.jsx)("div",{className:"px-3 py-1 text-xs text-gray-400 dark:text-gray-500 font-medium uppercase tracking-wide select-none border-b border-border shrink-0",children:"Drag to reorder"}),(0,b.jsx)("div",{className:"flex-1 overflow-y-auto py-1",children:a.map((a,c)=>{let d=g[a.key]?.visible!==!1,e=!1!==a.canHide,i=m===c;return(0,b.jsxs)("div",{draggable:!0,onDragStart:a=>{o.current=c,a.dataTransfer.effectAllowed="move"},onDragOver:a=>{a.preventDefault(),a.dataTransfer.dropEffect="move",n(c)},onDrop:a=>{let b;return a.preventDefault(),void(null!==(b=o.current)&&b!==c&&j(b,c),o.current=null,n(null))},onDragEnd:q,className:`flex items-center gap-2 px-2 py-1.5 text-sm select-none transition-colors ${i?"bg-blue-50 dark:bg-blue-900/30 border-t-2 border-blue-400 dark:border-blue-500":"hover:bg-gray-50 dark:hover:bg-gray-700"}`,children:[(0,b.jsx)(f.GripVertical,{className:"w-3.5 h-3.5 text-gray-300 dark:text-gray-600 shrink-0 cursor-grab active:cursor-grabbing"}),(0,b.jsx)("input",{type:"checkbox",checked:d,disabled:!e,onChange:()=>e&&h(a.key),onClick:a=>a.stopPropagation(),className:`rounded border-border text-blue-600 focus:ring-blue-500 w-3.5 h-3.5 shrink-0 ${!e?"opacity-40 cursor-not-allowed":"cursor-pointer"}`}),(0,b.jsx)("span",{className:`text-gray-700 dark:text-gray-300 truncate ${!e?"opacity-40":""}`,children:a.label})]},a.key)})}),(0,b.jsx)("div",{className:"border-t border-border pt-1 pb-1 shrink-0",children:(0,b.jsxs)("button",{onClick:()=>{i(),l(!1)},className:"flex items-center gap-2 px-3 py-1.5 text-xs text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700 w-full",children:[(0,b.jsx)(e.RotateCcw,{className:"w-3 h-3"})," Reset to defaults"]})})]})]})}],956798)},296496,a=>{"use strict";let b=(0,a.i(170106).default)("toggle-left",[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]]);a.s(["default",0,b])},297621,a=>{"use strict";var b=a.i(296496);a.s(["ToggleLeft",()=>b.default])},303291,a=>{"use strict";let b=(0,a.i(170106).default)("toggle-right",[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]]);a.s(["ToggleRight",0,b],303291)}];

//# sourceMappingURL=_1vv68cf._.js.map