"use strict";const t=require("react/jsx-runtime"),R=require("react"),d=require("../input/input.cjs"),k=require("../label/label.cjs"),s=require("../tools/tools.cjs"),p=function(h){const{as:a="input",children:n,className:l,contentClasses:f,dropOldClass:r,id:o,inline:y,reverse:b,style:c,switch:x,variables:i,...m}=h,u=R.useMemo(()=>{const e=s.classx(!r&&"form-check-input",l),C=s.stylex((q,N)=>({tKey:s.convertBsKeyToVar(N)}),i,c);return{className:e,style:C}},[r,l,i,c]);if(n){const e=s.processSlotClasses(f,{component:"form-check-input",container:s.classxWithOptions(null,"form-check",x&&"form-switch",y&&"form-check-inline",b&&"form-check-reverse"),label:"form-check-label"});return t.jsxs("div",{className:e.container,"data-slot-container":"",children:[t.jsx(d.Input,{...m,...u,as:a,className:e.component,"data-slot-component":"",dropOldClass:!0,id:o,type:"radio"}),t.jsx(k.Label,{className:e.label,"data-slot-label":"",dropOldClass:!0,htmlFor:o,children:n})]})}return t.jsx(d.Input,{...m,...u,as:a,id:o,type:"radio"})};p.displayName="BRL.Radio";exports.Radio=p;
//# sourceMappingURL=radio.cjs.map
