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