import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{ht as r,t as i}from"./dist-DtfJeYQK.js";import{t as a}from"./jsx-runtime-C2wGStra.js";import{C as o,E as s,T as c,_ as l,w as u}from"./iframe-D-oZzXNK.js";import{n as d,t as f}from"./dist-Cc1j9Pjk.js";var p,m,h,g,_,v=t((()=>{p=`root__Eki38`,m=`track__zosW2`,h=`range__Awc-3`,g=`thumb__IV11l`,_={root:p,track:m,range:h,thumb:g}}));function y(e){let t={};return Object.entries(e).forEach(([e,n])=>{switch(e){case`id`:case`aria-label`:case`aria-labelledby`:case`aria-describedby`:case`aria-invalid`:case`aria-errormessage`:t[e]=n}}),t}var b,x,S,C=t((()=>{b=e(n(),1),l(),v(),i(),f(),x=a(),S=(0,b.forwardRef)(function({value:e,defaultValue:t=0,onValueChange:n,onValueCommit:i,min:a=0,max:l=100,step:f=1,dataset:p,...m},h){let g=r(p,{preplyDsComponent:d.Slider}),v=n?e=>n(e[0]):void 0,b=i?e=>i(e[0]):void 0;return(0,x.jsxs)(u,{ref:h,...g,className:_.root,value:e===void 0?void 0:[e],defaultValue:t===void 0?void 0:[t],onValueChange:v,onValueCommit:b,min:a,max:l,step:f,children:[(0,x.jsx)(s,{className:_.track,children:(0,x.jsx)(o,{className:_.range})}),(0,x.jsx)(c,{...y(m),className:_.thumb})]})});try{y.displayName=`filterThumbProps`,y.__docgenInfo={description:``,displayName:`filterThumbProps`,props:{}}}catch{}try{S.displayName=`Slider`,S.__docgenInfo={description:`A slider input that allows users to select a single value from a range.`,displayName:`Slider`,props:{id:{defaultValue:null,description:`The unique identifier for the range slider element.`,name:`id`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},"aria-label":{defaultValue:null,description:`Accessible label for the range slider.`,name:`aria-label`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},"aria-labelledby":{defaultValue:null,description:`ID of the element that labels the range slider.`,name:`aria-labelledby`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},"aria-describedby":{defaultValue:null,description:`ID of the element that describes the range slider.`,name:`aria-describedby`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},"aria-invalid":{defaultValue:null,description:`Indicates whether the range slider value is invalid.`,name:`aria-invalid`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},"aria-errormessage":{defaultValue:null,description:`ID of the element that describes the error, if any.`,name:`aria-errormessage`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},value:{defaultValue:null,description:"The controlled value of the slider.\nMust be used in conjunction with `onValueChange`.",name:`value`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},defaultValue:{defaultValue:{value:`0`},description:`The value of the slider when initially rendered.
Use when you do not need to control the state of the slider.`,name:`defaultValue`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},onValueChange:{defaultValue:null,description:`Event handler called when the value changes.`,name:`onValueChange`,required:!1,type:{name:`enum`,value:[{value:`(value: number) => void`}]}},onValueCommit:{defaultValue:null,description:`Event handler called when the value is committed (e.g. on pointer up or Enter key).`,name:`onValueCommit`,required:!1,type:{name:`enum`,value:[{value:`(value: number) => void`}]}},name:{defaultValue:null,description:`The name of the slider. Submitted with its owning form as part of a name/value pair.`,name:`name`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},min:{defaultValue:{value:`0`},description:`The minimum value for the slider.`,name:`min`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},max:{defaultValue:{value:`100`},description:`The maximum value for the slider.`,name:`max`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},step:{defaultValue:{value:`1`},description:`The slider stepping interval.`,name:`step`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}}}}}catch{}}));export{v as a,_ as i,y as n,C as r,S as t};