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