import{r as e,c as d,h as r}from"./p-1ea36ff3.js";let i=class{constructor(r){e(this,r),this.change=d(this,"change",7)}render(){const{disabled:e,errors:d,field:i,value:a}=this,{options:o=[],preview:t}=i,s=d&&d.length>0,l=s?d[0]:void 0;if(t){const e=o.find((e=>e.value===a));return r("div",null,e?e.label:"",r("div",null,l))}return"select"===i.inputType?r("dvn-select",{dataAdapter:i.dataAdapter,dataProvider:i.dataProvider,disabled:e||i.disabled,feedback:s?"error":void 0,leaned:!0,value:a,width:"100%"},o.map((e=>r("dvn-select-option",{value:e.value},e.label)))):"radioCard"===i.inputType?r("dvn-radio-card-group",{options:o,value:a}):r("dvn-radio-group",{disabled:e||i.disabled,leaned:!0,options:o,value:a})}};export{i as dvn_field_input_single_choice}