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