define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', 'preact/hooks', './useFormFieldContextProps-4e36b4c3', './useId-c9578d26', './RadioItemContext-70878de8', './CheckboxRadioField-1987c75d'], (function(e,t,i,a,s,o,d,r,l,n,c,u){"use strict";const m=a.forwardRef((({"aria-describedby":e,assistiveText:a,columnSpan:s,direction:r="column",helpSourceLink:m,helpSourceText:x,isDisabled:b,isReadonly:h,isRequired:p=!1,label:C,labelEdge:F,labelStartWidth:R,messages:S,onCommit:v,testId:y,userAssistanceDensity:D,value:I,children:g},f)=>{const j=null!=I,{isDisabled:k,isReadonly:P,labelEdge:A,labelStartWidth:T,userAssistanceDensity:E}=o.useFormContext(),V=b??k,W=h??P,q=F??A,L=R??T,w=D??E,z=l.useFormFieldContextProps({hasValue:j,isDisabled:V,isReadonly:W}),B=n.useId();return t.jsx(d.FormFieldContext.Provider,{value:z,children:t.jsx(u.CheckboxRadioField,{"aria-describedby":e,assistiveText:a,baseId:B,columnSpan:s,direction:r,helpSourceLink:m,helpSourceText:x,isDisabled:V,isReadonly:W,isRequired:p,label:C,labelEdge:q,labelStartWidth:L,parentComponentVariant:"radioSet",messages:S,userAssistanceDensity:w,hasValue:j,ref:f,role:"radiogroup",testId:y,children:t.jsx(c.RadioSetContext.Provider,{value:{name:B,value:I,onCommit:v},children:i.toChildArray(g).map(((e,i)=>t.jsx(c.RadioItemContext.Provider,{value:{index:i},children:e})))})})})}));e.RadioSet=m}));
//# sourceMappingURL=RadioSet-94d12876.js.map
