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