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