import{E as e,F as t,H as n,It as r,W as i,Y as a,Z as o,f as s,ft as c,m as l,mt as u,o as d,s as f,st as p,tt as m,u as h,x as g,y as _}from"./BA99CCI5.js";import"./xihTtKlq.js";import"./DGo8yE5j.js";var v=i(`<div><div class="hidden shrink-0 items-center pl-2 md:flex"><div role="button" tabindex="-1" aria-label="Drag to reorder"><svg width="8" height="14" viewBox="0 0 8 14" fill="currentColor" class="text-neutral-400 dark:text-neutral-500"><circle cx="2" cy="2" r="1.25"></circle><circle cx="6" cy="2" r="1.25"></circle><circle cx="2" cy="7" r="1.25"></circle><circle cx="6" cy="7" r="1.25"></circle><circle cx="2" cy="12" r="1.25"></circle><circle cx="6" cy="12" r="1.25"></circle></svg></div></div> <div><!></div></div>`);function y(i,y){let b=d(y,[`children`,`$$slots`,`$$events`,`$$legacy`]),x=d(b,[`isDragging`,`onDragHandlePointerDown`,`variant`,`className`,`contentClass`,`dragHandleOnboarding`]),S=f(y,`isDragging`,8,!1),C=f(y,`onDragHandlePointerDown`,8,void 0),w=f(y,`variant`,8,`ghost`),T=f(y,`className`,8,``),E=f(y,`contentClass`,8,`p-3`),D=f(y,`dragHandleOnboarding`,8,void 0),O={default:`border border-neutral-300 bg-white dark:border-neutral-700/60 dark:bg-neutral-800/50`,ghost:`border border-neutral-300 bg-neutral-50 dark:border-neutral-700/60 dark:bg-neutral-800/40`,outline:`border border-neutral-300 dark:border-neutral-700/60`};var k=v();_(k,()=>({class:`relative flex overflow-hidden rounded-xl select-none ${o(w()),m(()=>O[w()])??``} ${S()?`scale-[0.98] opacity-50`:``} ${T()??``}`,style:`transition: opacity 100ms, transform 100ms;`,...x}));var A=c(k),j=c(A);r(A);var M=u(A,2),N=c(M);t(N,y,`default`,{},null),r(M),r(k),p(()=>{e(j,1,`flex h-7 w-7 items-center justify-center rounded-xl transition-colors ${S()?`cursor-grabbing bg-neutral-100 dark:bg-neutral-700/50`:`cursor-grab hover:bg-neutral-100 dark:hover:bg-neutral-700/50`}`),g(j,`data-onboarding`,D()),e(M,1,`min-w-0 flex-1 ${E()??``}`)}),a(`pointerdown`,j,function(...e){C()?.apply(this,e)}),a(`click`,j,s(l(function(e){h.call(this,y,e)}))),a(`keydown`,j,l(function(e){h.call(this,y,e)})),a(`click`,k,function(e){h.call(this,y,e)}),a(`keydown`,k,function(e){h.call(this,y,e)}),n(i,k)}export{y as t};