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