import{r as e,c as l,h as s}from"./p-1ea36ff3.js";let a=class{constructor(s){e(this,s),this.change=l(this,"change",7)}render(){const{disabled:e,errors:l,field:a,value:r}=this,{preview:d}=a,i=l&&l.length>0,n=i?l[0]:void 0,t=[];for(let e=a.min;e<=a.max;e+=a.step)t.push(e);return d?s("div",null,r,s("div",null,n)):"select"===a.inputType?s("dvn-select",{disabled:e||a.disabled,feedback:i?"error":void 0,leaned:!0,value:r},t.map((e=>s("dvn-select-option",{value:`${e}`},e)))):"stars"===a.inputType?s("dvn-rating-stars",{disabled:e||a.disabled,options:t,value:Number(r)}):s("dvn-radio-group",{disabled:e||a.disabled,inline:!0,leaned:!0,options:t.map((e=>({label:`${e}`,value:`${e}`}))),value:r})}};export{a as dvn_field_input_range}