import{At as e}from"./vendor-react-N_fu9J_Y.js";import{s as t}from"./useAntavoMemberInfo-2rKaqvDh.js";var n=e(),r=({id:e,name:r,value:i,onChange:a,defaultChecked:o=!1,checked:s,label:c,disabled:l=!1,className:u=``,loading:d=!1})=>(0,n.jsxs)(`div`,{className:`flex items-center space-x-3 ${u}`,children:[(0,n.jsxs)(`div`,{className:`relative`,children:[(0,n.jsx)(`input`,{type:`radio`,id:`${e}`,name:r,value:i,checked:s??o,disabled:l,className:`sr-only peer`,onChange:a}),d?(0,n.jsx)(t,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`label`,{htmlFor:`${e}`,className:`flex items-center justify-center w-[18px] h-[18px] border-[1px] rounded-full cursor-pointer bg-white transition-all duration-200
                ${l?`border-gray-200 cursor-not-allowed`:`border-gray-300 hover:border-[#A0CEA8]`}
                peer-checked:border-[#A0CEA8]`}),(0,n.jsx)(`div`,{className:`pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2
                w-[14px] h-[14px] rounded-full transition-opacity duration-200
                opacity-0 peer-checked:opacity-100
                ${l?`bg-gray-400`:`bg-[#A0CEA8]`}`})]})]}),(0,n.jsx)(`label`,{htmlFor:`${e}`,className:`text-[14px] cursor-pointer transition-colors duration-200 ${l?`text-gray-400 cursor-not-allowed`:`text-black hover:text-gray-900`}`,children:c})]});export{r as t};