import{d as r,c as u,bA as c,e as f,f as m,g as s,n as _,h as b,a5 as p,m as g}from"./index-B4gewkxT.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="60d6307a-2ea5-4be7-9c80-b593bc4f32f1",a._sentryDebugIdIdentifier="sentry-dbid-60d6307a-2ea5-4be7-9c80-b593bc4f32f1")}catch{}})();const y=["data-testid"],h={class:"field__label"},v=r({__name:"FormRadio",props:{name:{default:""},rules:{default:""},disabled:{type:Boolean},modelValue:{default:void 0},value:{},testId:{default:"form-radio"}},emits:["update:modelValue"],setup(a){const e=a,l=u(()=>(Math.random()+1).toString(36).substring(2)),{handleChange:n,checked:o}=c(e.name??l,e.rules,{type:"radio",checkedValue:e.value,uncheckedValue:null,initialValue:e.name?void 0:e.modelValue||null,standalone:!e.name,syncVModel:!0}),i=()=>{if(e.disabled)return null;n(e.value)};return(d,t)=>(f(),m("label",{class:"field",onClick:i},[s("div",{class:_(["field__radio",{"field__radio--disabled":d.disabled,"field__radio--checked":b(o)}]),"data-testid":d.testId},t[0]||(t[0]=[s("div",{class:"field__radio-inside"},null,-1)]),10,y),s("span",h,[p(d.$slots,"default",{},void 0,!0)])]))}}),I=g(v,[["__scopeId","data-v-be4af63d"]]);export{I as F}; //# sourceMappingURL=FormRadio-BfNDr13S.js.map