import{b}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{m as g}from"./vendor-vueform-slider-CCH9_7pb.js";import{d as _,e as m,w as r,f as N,i as w,x as i,j as h,B}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{r as F,t as S,u as d}from"./vendor-vue-reactivity-CheHbvBM.js";import"./vendor-vue-shared-DrzsEcag.js";const j={class:"slider-wrapper ccb-input-range-field"},k={class:"slider-input"},C=["min","max"],M=_({__name:"Input",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(p,{emit:v}){const n=p,c=v,a=F(n.modelValue),{field:o}=S(n),u=m(()=>Number(o.value.min)),s=m(()=>Number(o.value.max)),f=m(()=>o.value.jump?1:Number(o.value.step||1)),V=t=>{const e=t.target,l=Number(e.value);l<u.value&&(e.value=u.value.toString(),a.value=u.value),l>s.value&&(e.value=s.value.toString(),a.value=s.value)},x=t=>{const e=t.toFixed(2);return parseFloat(e).toString()};return r(()=>n.modelValue,t=>{a.value=t}),r(a,t=>{c("update:modelValue",t)}),(t,e)=>(w(),N("div",j,[i("div",k,[B(i("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=l=>a.value=l),min:u.value,max:s.value,onChange:V},null,40,C),[[b,a.value]])]),h(d(g),{modelValue:a.value,"onUpdate:modelValue":e[1]||(e[1]=l=>a.value=l),min:u.value,max:s.value,step:f.value,disabled:d(o).disabled,"show-tooltip":"focus",class:"custom-slider",format:x},null,8,["modelValue","min","max","step","disabled"])]))}});export{M as default};
//# sourceMappingURL=Input-DgYydD39.js.map
