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