import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{I as t,K as n,Lt as r,Ot as i,R as a,S as o,_t as s,et as c,j as l,k as u,nt as d,zt as f}from"./vendor-vue-core-IZuWV8u3.js";import{z as p}from"./vendor-vueuse-ChbGLbpR.js";import{_ as m,g as h,h as g,nt as _,v}from"./vendor-reka-ui-Dfvl2gA8.js";import{t as y}from"./src-ztBDyvoF.js";var b=a({__name:`Slider`,props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{}},emits:[`update:modelValue`,`valueCommit`],setup(e,{emit:a}){let b=e,x=i(!1),setPressed=e=>{x.value=e},S=a,C=_(p(b,`class`),S);return(e,i)=>(c(),u(r(v),n({"data-slot":`slider`,class:r(y)(`relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50`,`data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col`,b.class)},r(C),{onSlideStart:i[0]||=()=>setPressed(!0),onSlideMove:i[1]||=()=>setPressed(!0),onSlideEnd:i[2]||=()=>setPressed(!1)}),{default:s(({modelValue:e})=>[t(r(g),{"data-slot":`slider-track`,class:f(r(y)(`bg-node-stroke relative grow overflow-hidden rounded-full`,`cursor-pointer overflow-visible`,`before:absolute before:-inset-2 before:block before:bg-transparent`,`data-[orientation=horizontal]:h-0.5 data-[orientation=horizontal]:w-full`,`data-[orientation=vertical]:h-full data-[orientation=vertical]:w-0.5`))},{default:s(()=>[t(r(m),{"data-slot":`slider-range`,class:`absolute bg-node-component-surface-highlight data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full`})]),_:1},8,[`class`]),(c(!0),l(o,null,d(e,(e,t)=>(c(),u(r(h),{key:t,"data-slot":`slider-thumb`,class:f(r(y)(`bg-node-component-surface-highlight ring-node-component-surface-selected block size-3.5 shrink-0 rounded-full shadow-sm transition-[color,box-shadow]`,`cursor-grab`,`before:absolute before:-inset-1 before:block before:bg-transparent before:rounded-full`,`hover:ring-2 focus-visible:ring-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50`,{"cursor-grabbing":x.value}))},null,8,[`class`]))),128))]),_:1},16,[`class`]))}});export{b as t};
//# sourceMappingURL=Slider-DeXCBGeM.js.map