import{j as m}from"./tanstack-1.0.74-aU0azVkW.js";import{e as f,f as o,C as c}from"./sortable.esm-1.0.74-BjjsGbF3.js";import{b as d}from"./index-1.0.74-8lphm33F.js";const g=({id:t,enabled:a,onCollapse:e})=>{const{attributes:r,listeners:n,setNodeRef:i}=f({id:t}),s={margin:"auto",marginRight:"12px",cursor:"move"};return a||(s.pointerEvents="none",s.opacity="0.4"),m.jsx("div",{ref:i,...n,...r,style:s,onPointerDown:()=>e==null?void 0:e(),children:m.jsx(d,{})})},b=t=>{const{setNodeRef:a,transform:e,transition:r}=o({id:t.id}),n={...(t==null?void 0:t.animation)!==!1&&{transform:c.Transform.toString(e),transition:r}};return t!=null&&t.elementCss&&Object.keys(t.elementCss).map(i=>{n[i]=t.elementCss[i]}),m.jsx("div",{ref:a,style:n,children:t.children},t.id)};export{g as S,b as a};
