import{u as b}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{m as h}from"./vendor-vueform-slider-CCH9_7pb.js";import{u as C}from"./useAppearanceTypography-BBl5RU11.js";import{d as V,e as i,f as g,i as N,x as a,j as F}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as r,t as B}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as u}from"./vendor-vue-shared-DrzsEcag.js";import"./useAppearanceStore-IzenP-G4.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";const j={class:"slider-wrapper ccb-default-range-field"},k={class:"slider-min-max"},w={class:"slider-min-max-item first"},y={class:"label"},D={class:"slider-min-max-item"},S={class:"label"},L=V({__name:"Default",props:{field:{}},setup(c){b(e=>({"0d7537d8":r(p),"829fd83a":r(f),"57b8add6":r(d)}));const{textColor:d,accentColor:p,containerColor:f}=C(),v=c,{field:t}=B(v),l=(e,o)=>{const m=Number(e);return Number.isFinite(m)?m:o},s=i(()=>l(t.value.min??t.value.minValue,0)),n=i(()=>{const e=l(t.value.max??t.value.maxValue,s.value+100);return e>s.value?e:s.value+1}),_=i(()=>{if(t.value.jump)return 1;const e=l(t.value.step,1);return e>0?e:1}),x=e=>{const o=e.toFixed(2);return parseFloat(o).toString()};return(e,o)=>(N(),g("div",j,[a("div",k,[a("div",w,[a("span",y,u(s.value),1)]),a("div",D,[a("span",S,u(n.value),1)])]),F(r(h),{style:{margin:"10px 0"},"model-value":n.value,format:x,min:s.value,max:n.value,step:_.value,disabled:!0,"show-tooltip":"focus"},null,8,["model-value","min","max","step"])]))}});export{L as default};
//# sourceMappingURL=Default-D3wdt2iG.js.map
