import{r as d,j as e}from"./vendor-react-wBh_31cN.js";import{d as c}from"./index-dNe6i2rS.js";import{M as h,N as f,Q as u,U as b}from"./vendor-radix-BRyWS4bQ.js";function w({className:s,defaultValue:r,value:a,min:t=0,max:i=100,...l}){const o=d.useMemo(()=>Array.isArray(a)?a:Array.isArray(r)?r:[t,i],[a,r,t,i]);return e.jsxs(h,{"data-slot":"slider",defaultValue:r,value:a,min:t,max:i,className:c("relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col",s),...l,children:[e.jsx(f,{"data-slot":"slider-track",className:"relative grow overflow-hidden rounded-full bg-muted data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1",children:e.jsx(u,{"data-slot":"slider-range",className:"absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full"})}),Array.from({length:o.length},(m,n)=>e.jsx(b,{"data-slot":"slider-thumb",className:"relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"},n))]})}export{w as S};
