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