import{createVNode as y}from"vue";import S from"../../../_util/classNames.mjs";const g=($,c,e,s,r,n)=>{const o=Object.keys(c).map(Number.parseFloat).sort((t,l)=>t-l);if(e&&s)for(let t=r;t<=n;t+=s)o.includes(t)||o.push(t);return o},A=($,{attrs:c})=>{const{prefixCls:e,vertical:s,reverse:r,marks:n,dots:o,step:t,included:l,lowerBound:b,upperBound:m,max:u,min:i,dotStyle:f,activeDotStyle:h}=c,N=u-i,k=g(s,n,o,t,i,u).map(a=>{const p=`${Math.abs(a-i)/N*100}%`,v=!l&&a===m||l&&a<=m&&a>=b;let d=s?{...f,[r?"top":"bottom"]:p}:{...f,[r?"right":"left"]:p};v&&(d={...d,...h});const x=S({[`${e}-dot`]:!0,[`${e}-dot-active`]:v,[`${e}-dot-reverse`]:r});return y("span",{class:x,style:d,key:a},null)});return y("div",{class:`${e}-step`},[k])};A.inheritAttrs=!1;export{A as default};
