import{_ as d}from"./settings.consts-C6F6lZ8o.js";import{d as p,W as r,X as v,f as l,i as s,j as i,x as u,F as h,r as f}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{a as m}from"./vendor-vue-shared-DrzsEcag.js";import{_ as g}from"./vendor-vue3-html2pdf-KR020wX8.js";const V={class:"ccb-radio__options"},k=["value","checked"],y=p({__name:"Radio",props:r({modelValue:{},label:{},options:{},name:{},layout:{}},{modelValue:{},modelModifiers:{}}),emits:r(["update:modelValue","change"],["update:modelValue"]),setup(o,{emit:n}){const _=o,t=v(o,"modelValue"),c=n,b=e=>{c("update:modelValue",e.target.value),c("change",_.name||"",e.target.value)};return(e,w)=>(s(),l("div",{class:m(["ccb-radio",{"ccb-radio--row":e.layout==="row","ccb-radio--column":e.layout==="column"}])},[i(d,{class:"ccb-radio__header",text:e.label,size:"s",weight:"medium"},null,8,["text"]),u("div",V,[(s(!0),l(h,null,f(e.options,a=>(s(),l("label",{class:m(["ccb-radio__label",{"is-checked":t.value===a.value,"is-disabled":a.disable}]),key:a.value},[u("input",{class:"ccb-radio__input",type:"radio",value:a.value,checked:t.value===a.value,onChange:b},null,40,k),i(d,{class:"ccb-radio__title",text:a.label,size:"s",weight:"medium"},null,8,["text"])],2))),128))])],2))}}),M=g(y,[["__scopeId","data-v-65dae1b8"]]);export{M as R};
//# sourceMappingURL=Radio-BoRywLwa.js.map
