import{m as _}from"./slider-B0ER1pJ5.js";import{u as V}from"./useFieldsExtraOptions-BAS3Fj_1.js";import{a as x,C as g,b as h,m as b,g as v,p as a,n as y,D as n,u as t}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import"./widget-BUAABBRb.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./translationsStore-DBJu9sBR.js";const F={class:"slider-wrapper ccb-default-multi-range-field"},B={class:"slider-min-max"},C={class:"slider-min-max-item first"},D={class:"label"},k={class:"slider-min-max-item"},w={class:"label"},U=x({__name:"Default",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(r,{emit:p}){const o=r,{field:s}=g(o),{formatMinMax:m}=V(s),i=p,d=h({get:()=>o.modelValue&&o.modelValue.length?o.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)=>(v(),b("div",F,[a("div",B,[a("div",C,[a("span",D,n(t(m)(t(s).min)),1)]),a("div",k,[a("span",w,n(t(m)(t(s).max)),1)])]),y(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-DlSqSqz3.js.map
