import{u as V}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{m as C}from"./vendor-vueform-slider-CCH9_7pb.js";import{u as N}from"./useAppearanceTypography-BBl5RU11.js";import{d as w,e as n,f as y,i as F,x as r,j as M}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as i,t as A}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as c}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 B={class:"slider-wrapper ccb-default-multi-range-field"},R={class:"slider-min-max"},j={class:"slider-min-max-item first"},k={class:"label"},D={class:"slider-min-max-item"},S={class:"label"},P=w({__name:"Default",props:{field:{}},setup(p){V(e=>({b244ae36:i(d),"00a82894":i(f),"3f1ef962":i(v)}));const{textColor:v,accentColor:d,containerColor:f}=N(),_=p,{field:a}=A(_),l=(e,o)=>{const u=Number(e);return Number.isFinite(u)?u:o},t=n(()=>l(a.value.min??a.value.minValue,0)),s=n(()=>{const e=l(a.value.max??a.value.maxValue,t.value+100);return e>t.value?e:t.value+1}),x=n(()=>{if(a.value.jump)return 1;const e=l(a.value.step,1);return e>0?e:1}),h=n(()=>{const e=Array.isArray(a.value.values)?a.value.values:[],o=e[0]??a.value.default??a.value.defaultValue??t.value,u=e[1]??s.value,m=Math.min(s.value,Math.max(t.value,l(o,t.value))),g=Math.min(s.value,Math.max(m,l(u,s.value)));return[m,g]}),b=e=>{const o=e.toFixed(2);return parseFloat(o).toString()};return(e,o)=>(F(),y("div",B,[r("div",R,[r("div",j,[r("span",k,c(t.value),1)]),r("div",D,[r("span",S,c(s.value),1)])]),M(i(C),{style:{margin:"10px 0"},"model-value":h.value,format:b,min:t.value,max:s.value,step:x.value,disabled:!0,"show-tooltip":"focus"},null,8,["model-value","min","max","step"])]))}});export{P as default};
//# sourceMappingURL=Default-BWyIPE2X.js.map
