import{m as _}from"./vendor-vueform-slider-CCH9_7pb.js";import{u as x}from"./useFieldsExtraOptions-BNwbfzEK.js";import{d as V,e as v,f as b,i as g,x as o,j as h}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as F,u as e}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as n}from"./vendor-vue-shared-DrzsEcag.js";import"./settingsStore-8bwiLMEn.js";import"./vendor-pinia-BSPefQhS.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";const y={class:"slider-wrapper ccb-default-range-field"},B={class:"slider-min-max"},k={class:"slider-min-max-item first"},w={class:"label"},C={class:"slider-min-max-item"},D={class:"label"},q=V({__name:"Default",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(r,{emit:p}){const l=r,{field:t}=F(l),{formatMinMax:i}=x(t),m=p,d=v({get:()=>typeof l.modelValue=="number"?l.modelValue:t.value.value,set:s=>m("update:modelValue",s)}),u=s=>{m("update:modelValue",s)},c=s=>{const a=s.toFixed(2);return parseFloat(a).toString()};return(s,a)=>(g(),b("div",y,[o("div",B,[o("div",k,[o("span",w,n(e(i)(e(t).min)),1)]),o("div",C,[o("span",D,n(e(i)(e(t).max)),1)])]),h(e(_),{style:{margin:"10px 0"},modelValue:d.value,"onUpdate:modelValue":a[0]||(a[0]=f=>d.value=f),format:c,min:e(t).min,max:e(t).max,step:e(t).step,disabled:e(t).disabled,onChange:u,"show-tooltip":"focus"},null,8,["modelValue","min","max","step","disabled"])]))}});export{q as default};
//# sourceMappingURL=Default-Cett9qvB.js.map
