import{m as _}from"./vendor-vueform-slider-CCH9_7pb.js";import{u as x}from"./useFieldsExtraOptions-BNwbfzEK.js";import{d as V,e as g,f as h,i as b,x as o,j as v}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as y,u as t}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 F={class:"slider-wrapper ccb-default-multi-range-field"},B={class:"slider-min-max"},k={class:"slider-min-max-item first"},w={class:"label"},A={class:"slider-min-max-item"},C={class:"label"},U=V({__name:"Default",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(r,{emit:p}){const a=r,{field:s}=y(a),{formatMinMax:m}=x(s),i=p,d=g({get:()=>a.modelValue&&a.modelValue.length?a.modelValue:s.value.values||[0,50],set:e=>i("update:modelValue",e)}),u=e=>{Array.isArray(e)?i("update:modelValue",e):i("update:modelValue",[e,e])},c=e=>{const l=e.toFixed(2);return parseFloat(l).toString()};return(e,l)=>(b(),h("div",F,[o("div",B,[o("div",k,[o("span",w,n(t(m)(t(s).min)),1)]),o("div",A,[o("span",C,n(t(m)(t(s).max)),1)])]),v(t(_),{style:{margin:"10px 0"},modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=f=>d.value=f),format:c,min:t(s).min,max:t(s).max,step:t(s).step,disabled:t(s).disabled,onChange:u,"show-tooltip":"focus"},null,8,["modelValue","min","max","step","disabled"])]))}});export{U as default};
//# sourceMappingURL=Default-DCOvHSMf.js.map
