"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[413],{97517:function(e,n,u){var r=u(96234),t=u(7896),a=u(31461),o=u(30969),c=u(21098),i=u(87352),l=u(47707),f=u(93007),d=u(30570),s=u(37574),v=["actions","children","defaultValue","name","onChange","value"],Z=o.forwardRef((function(e,n){var u=e.actions,Z=e.children,h=e.defaultValue,p=e.name,b=e.onChange,w=e.value,C=(0,a.Z)(e,v),g=o.useRef(null),m=(0,l.Z)({controlled:w,default:h,name:"RadioGroup"}),k=(0,r.Z)(m,2),j=k[0],x=k[1];o.useImperativeHandle(u,(function(){return{focus:function(){var e=g.current.querySelector("input:not(:disabled):checked");e||(e=g.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var R=(0,i.Z)(n,g),_=(0,d.Z)(p),q=o.useMemo((function(){return{name:_,onChange:function(e){x(e.target.value),b&&b(e,e.target.value)},value:j}}),[_,b,x,j]);return(0,s.jsx)(f.Z.Provider,{value:q,children:(0,s.jsx)(c.Z,(0,t.Z)({role:"radiogroup",ref:R},C,{children:Z}))})}));n.Z=Z},93007:function(e,n,u){var r=u(30969).createContext(void 0);n.Z=r},70413:function(e,n,u){u.r(n),u.d(n,{default:function(){return r.Z},useRadioGroup:function(){return t.Z}});var r=u(97517),t=u(94094)},94094:function(e,n,u){u.d(n,{Z:function(){return a}});var r=u(30969),t=u(93007);function a(){return r.useContext(t.Z)}}}]);
//# sourceMappingURL=413.98f954dd.chunk.js.map