const e=require("../../../_util/warning.js"),t=require("../../../_util/classNames.js");let n=require("vue");var r=(t,n,r,i,a,o)=>{e.default(!r||i>0,`Slider`,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");let s=Object.keys(n).map(Number.parseFloat).sort((e,t)=>e-t);if(r&&i)for(let e=a;e<=o;e+=i)s.includes(e)||s.push(e);return s},i=(e,{attrs:i})=>{let{prefixCls:a,vertical:o,reverse:s,marks:c,dots:l,step:u,included:d,lowerBound:f,upperBound:p,max:m,min:h,dotStyle:g,activeDotStyle:_}=i,v=m-h,y=r(o,c,l,u,h,m).map(e=>{let r=`${Math.abs(e-h)/v*100}%`,i=!d&&e===p||d&&e<=p&&e>=f,c=o?{...g,[s?`top`:`bottom`]:r}:{...g,[s?`right`:`left`]:r};return i&&(c={...c,..._}),(0,n.createVNode)(`span`,{class:t.default({[`${a}-dot`]:!0,[`${a}-dot-active`]:i,[`${a}-dot-reverse`]:s}),style:c,key:e},null)});return(0,n.createVNode)(`div`,{class:`${a}-step`},[y])};i.inheritAttrs=!1,exports.default=i;