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