import{m as _}from"./slider-B0ER1pJ5.js";import{u as x}from"./useFieldsExtraOptions-BAS3Fj_1.js";import{a as V,C as b,b as g,m as v,g as h,p as a,n as F,D as d,u as e}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 y={class:"slider-wrapper ccb-default-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"},j=V({__name:"Default",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(r,{emit:p}){const l=r,{field:t}=b(l),{formatMinMax:i}=x(t),m=p,n=g({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 o=s.toFixed(2);return parseFloat(o).toString()};return(s,o)=>(h(),v("div",y,[a("div",B,[a("div",C,[a("span",D,d(e(i)(e(t).min)),1)]),a("div",k,[a("span",w,d(e(i)(e(t).max)),1)])]),F(e(_),{style:{margin:"10px 0"},modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=f=>n.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{j as default};
//# sourceMappingURL=Default-C_rRxmNu.js.map
