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