"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[413],{97517:function(e,n,r){var u=r(96234),t=r(7896),a=r(31461),o=r(30969),c=r(21098),i=r(87352),l=r(47707),f=r(93007),d=r(30570),s=r(37574),v=["actions","children","defaultValue","name","onChange","value"],Z=o.forwardRef((function(e,n){var r=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),k=(0,l.Z)({controlled:w,default:h,name:"RadioGroup"}),m=(0,u.Z)(k,2),j=m[0],x=m[1];o.useImperativeHandle(r,(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);return(0,s.jsx)(f.Z.Provider,{value:{name:_,onChange:function(e){x(e.target.value),b&&b(e,e.target.value)},value:j},children:(0,s.jsx)(c.Z,(0,t.Z)({role:"radiogroup",ref:R},C,{children:Z}))})}));n.Z=Z},93007:function(e,n,r){var u=r(30969).createContext(void 0);n.Z=u},70413:function(e,n,r){r.r(n),r.d(n,{default:function(){return u.Z},useRadioGroup:function(){return t.Z}});var u=r(97517),t=r(94094)},94094:function(e,n,r){r.d(n,{Z:function(){return a}});var u=r(30969),t=r(93007);function a(){return u.useContext(t.Z)}}}]);
//# sourceMappingURL=413.6a0dcb3a.chunk.js.map