import{createVNode as b}from"vue";import T from"../../../_util/classNames.mjs";import{isValidElement as w}from"../../../_util/props-util/index.mjs";import A from"../../../_util/supportsPassive.mjs";const C=(E,{attrs:d,slots:v})=>{const{class:o,vertical:$,reverse:r,marks:a,included:m,upperBound:n,lowerBound:h,max:p,min:l,onClickLabel:u}=d,N=Object.keys(a),f=v.mark,i=p-l,x=N.map(Number.parseFloat).sort((t,s)=>t-s).map(t=>{const s=typeof a[t]=="function"?a[t]():a[t],k=typeof s=="object"&&!w(s);let e=k?s.label:s;if(!e&&e!==0)return null;f&&(e=f({point:t,label:e}));const P=!m&&t===n||m&&t<=n&&t>=h,g=T({[`${o}-text`]:!0,[`${o}-text-active`]:P}),j={marginBottom:"-50%",[r?"top":"bottom"]:`${(t-l)/i*100}%`},B={transform:`translateX(${r?"50%":"-50%"})`,msTransform:`translateX(${r?"50%":"-50%"})`,[r?"right":"left"]:`${(t-l)/i*100}%`},y=$?j:B,M=k?{...y,...s.style}:y,S={[A?"onTouchstartPassive":"onTouchstart"]:c=>u(c,t)};return b("span",{class:g,style:M,key:t,onMousedown:c=>u(c,t),...S},[e])});return b("div",{class:o},[x])};C.inheritAttrs=!1;export{C as default};
