import{r as registerInstance,h}from"./index-b7735e0d.js";var DvnFieldInputMultipleChoice=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e=this,t=e.disabled,n=e.errors,i=e.field,r=e.value;var l=i.options,u=l===void 0?[]:l;var d=n&&n.length>0;if(i.inputType==="select"){return h("dvn-select",{disabled:t||i.disabled,feedback:d?"error":undefined,leaned:true,multiple:true,enableSearch:true,value:r,width:"100%"},u.map((function(e){return h("dvn-select-option",{value:e.value},e.label)})))}if(i.inputType==="tag-cloud"){return h("dvn-tag-cloud",{disabled:t||i.disabled,editable:true,options:i.options,value:r})}return h("dvn-checkbox-group",{options:i.options,value:r})};return e}();export{DvnFieldInputMultipleChoice as dvn_field_input_multiple_choice};