import{r as registerInstance,c as createEvent,h}from"./index-ecdfb761.js";var DvnFieldInputRange=function(){function e(e){registerInstance(this,e);this.change=createEvent(this,"change",7)}e.prototype.render=function(){var e=this,n=e.disabled,r=e.errors,t=e.field,a=e.value;var i=t.preview;var d=r&&r.length>0;var u=d?r[0]:undefined;var s=[];for(var l=t.min;l<=t.max;l+=t.step){s.push(l)}if(i){return h("div",null,a,h("div",null,u))}if(t.inputType==="select"){return h("dvn-select",{disabled:n||t.disabled,feedback:d?"error":undefined,leaned:true,value:a},s.map((function(e){return h("dvn-select-option",{value:"".concat(e)},e)})))}if(t.inputType==="stars"){return h("dvn-rating-stars",{disabled:n||t.disabled,options:s,value:Number(a)})}return h("dvn-radio-group",{disabled:n||t.disabled,inline:true,leaned:true,options:s.map((function(e){return{label:"".concat(e),value:"".concat(e)}})),value:a})};return e}();export{DvnFieldInputRange as dvn_field_input_range};