import{ad as C,t as k,_ as w,n as E}from"./app-JmgyQoR0.js";import{b as F,a as m,c as _,g as S,h as s,t as a,u as i,B as b,q as T,z as g,F as I,G as D,H as M,x as q,d as x}from"./vue-y3KLWBaS.js";const z={class:"label"},A={class:"body"},H={class:"container"},L=["min","max","step","list","value","disabled"],N=["id"],P=["value","label"],R={class:"caption"},$=F({__name:"range",props:{modelValue:{},disabled:{type:Boolean},min:{},max:{},step:{default:1},textConverter:{type:Function,default:l=>l.toString()},showTicks:{type:Boolean},easing:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:h}){const c=C(),t=l,v=m(),r=m(t.modelValue),y=h,f=_(()=>t.step?(t.max-t.min)/t.step:0);function V(e){y("update:modelValue",r.value)}const d=m(!1);function u(){d.value=!0,k(x(()=>w(()=>import("./app-JmgyQoR0.js").then(e=>e.bM),__vite__mapDeps([0,1,2]))),{showing:d,text:_(()=>t.textConverter(r.value)),targetElement:v},{},"closed")}function p(){d.value=!1}return(e,n)=>{const B=S("adaptive-border");return s(),a("label",{class:q(["timctyfi",{disabled:e.disabled,easing:e.easing}])},[i("div",z,[b(e.$slots,"label",{},void 0,!0)]),T((s(),a("div",A,[i("div",H,[i("input",{ref_key:"inputEl",ref:v,type:"range",min:e.min,max:e.max,step:e.step,list:g(c),value:e.modelValue,disabled:e.disabled,onChange:n[0]||(n[0]=o=>V()),onFocus:u,onBlur:p,onTouchstart:u,onTouchend:p,onMouseenter:u,onMouseleave:p,onInput:n[1]||(n[1]=o=>r.value=o.target.value)},null,40,L),e.showTicks&&f.value?(s(),a("datalist",{key:0,id:g(c)},[(s(!0),a(I,null,D(f.value,o=>(s(),a("option",{value:o+e.min,label:(o+e.min).toString()},null,8,P))),256))],8,N)):M("",!0)])])),[[B]]),i("div",R,[b(e.$slots,"caption",{},void 0,!0)])],2)}}}),U=E($,[["__scopeId","data-v-5b9788d3"]]);export{U as F};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["app-JmgyQoR0.js","vue-y3KLWBaS.js","app-9iivmIpH.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}