"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[5231],{72243:function(e,n,r){var u=r(96234),t=r(7896),a=r(31461),o=r(30969),c=r(20098),i=r(63970),l=r(61506),f=r(72038),d=r(41806),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},72038:function(e,n,r){var u=r(30969).createContext(void 0);n.Z=u},65231:function(e,n,r){r.r(n),r.d(n,{default:function(){return u.Z},useRadioGroup:function(){return t.Z}});var u=r(72243),t=r(67889)},67889:function(e,n,r){r.d(n,{Z:function(){return a}});var u=r(30969),t=r(72038);function a(){return u.useContext(t.Z)}}}]);
//# sourceMappingURL=5231.06169f96.chunk.js.map