import{d as c,e as u,f as i,i as t,x as a,z as f,t as m,F as b,r as _}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as o,a as v}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-vue-reactivity-CheHbvBM.js";const y={class:"ccb-field-preview"},w={class:"ccb-field-preview__label"},h={key:0,class:"ccb-field-preview__required"},k=["name"],C=c({__name:"FieldPreviewRadio",props:{field:{}},setup(l){const d=l,n=u(()=>{var s;const e=(s=d.field.attributes)==null?void 0:s.options;return Array.isArray(e)?e:[]});return(e,s)=>(t(),i("div",y,[a("label",w,[f(o(e.field.attributes&&e.field.attributes.label||"Radio")+" ",1),e.field.attributes&&e.field.attributes.required==="1"?(t(),i("span",h,"*")):m("",!0)]),a("div",{class:v(["ccb-field-preview__radio-group",e.field.attributes&&e.field.attributes.display||"Vertical"])},[(t(!0),i(b,null,_(n.value,(p,r)=>(t(),i("label",{key:r,class:"ccb-field-preview__radio-item"},[a("input",{type:"radio",name:`radio_${e.field.id||e.field.tempId}`,disabled:""},null,8,k),a("span",null,o(p.optionText||`Radio ${r+1}`),1)]))),128))],2)]))}});export{C as default};
//# sourceMappingURL=FieldPreviewRadio-C77LOiaH.js.map
