import{j as a}from"./fields-wnm5Jtc6.js";import"./vendor-D21mNUGX.js";import{P as s}from"./index-pmrLY__j.js";import{e as c,f as t,s as l,K as S,M as m,P as p,g as d,h as u,S as x,v as f,i as y}from"./sortable.esm-C-GypyhB.js";const g=r=>{let{transform:e}=r;return{...e,x:0}},v=({items:r,onDragEnd:e,mode:o="vertical",children:i})=>{const n=c(t(p),t(m),t(S,{coordinateGetter:l}));return a.jsx(d,{sensors:n,collisionDetection:u,modifiers:o==="vertical"?[g]:[],onDragEnd:e,children:a.jsx(x,{items:r,strategy:o==="vertical"?f:y,children:i})})};v.propTypes={items:s.array.isRequired,mode:s.oneOf(["vertical","horizontal"]),onDragEnd:s.func.isRequired};export{v as S};
