"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5951],{56089:(e,a,n)=>{n.d(a,{A:()=>A});var r=n(6614),u=n(83673),o=n(7552),t=n(83867),l=n(51584),c=n(77259),d=n(76258),s=n(89456),i=n(69500);const h=["actions","children","defaultValue","name","onChange","value"],A=o.forwardRef((function(e,a){const{actions:n,children:A,defaultValue:f,name:v,onChange:b,value:p}=e,g=(0,u.A)(e,h),w=o.useRef(null),[C,m]=(0,c.A)({controlled:p,default:f,name:"RadioGroup"});o.useImperativeHandle(n,(()=>({focus:()=>{let e=w.current.querySelector("input:not(:disabled):checked");e||(e=w.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const k=(0,l.A)(a,w),j=(0,s.A)(v),x=o.useMemo((()=>({name:j,onChange(e){m(e.target.value),b&&b(e,e.target.value)},value:C})),[j,b,m,C]);return(0,i.jsx)(d.A.Provider,{value:x,children:(0,i.jsx)(t.A,(0,r.A)({role:"radiogroup",ref:k},g,{children:A}))})}))},76258:(e,a,n)=>{n.d(a,{A:()=>r});const r=n(7552).createContext(void 0)},25951:(e,a,n)=>{n.r(a),n.d(a,{default:()=>r.A,useRadioGroup:()=>u.A});var r=n(56089),u=n(39006)},39006:(e,a,n)=>{n.d(a,{A:()=>o});var r=n(7552),u=n(76258);function o(){return r.useContext(u.A)}}}]);
//# sourceMappingURL=5951.1d28b142.chunk.js.map