import{r as registerInstance,c as createEvent,h}from"./index-102043e0.js";var DvnFieldInputSingleChoice=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,i=e.field,t=e.value;var a=i.options,d=a===void 0?[]:a,l=i.preview;var u=r&&r.length>0;var o=u?r[0]:undefined;if(l){var v=d.find((function(e){return e.value===t}));return h("div",null,v?v.label:"",h("div",null,o))}if(i.inputType==="select"){return h("dvn-select",{dataAdapter:i.dataAdapter,dataProvider:i.dataProvider,disabled:n||i.disabled,feedback:u?"error":undefined,leaned:true,value:t,width:"100%"},d.map((function(e){return h("dvn-select-option",{value:e.value},e.label)})))}if(i.inputType==="radioCard"){return h("dvn-radio-card-group",{options:d,value:t})}return h("dvn-radio-group",{disabled:n||i.disabled,leaned:true,options:d,value:t})};return e}();export{DvnFieldInputSingleChoice as dvn_field_input_single_choice};