"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[2693],{21126:function(e,n,u){var r=u(96234),t=u(7896),a=u(31461),o=u(41867),c=u(45489),i=u(40234),l=u(61291),f=u(27088),d=u(56619),s=u(80838),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},27088:function(e,n,u){var r=u(41867).createContext(void 0);n.Z=r},12693:function(e,n,u){u.r(n),u.d(n,{default:function(){return r.Z},useRadioGroup:function(){return t.Z}});var r=u(21126),t=u(20326)},20326:function(e,n,u){u.d(n,{Z:function(){return a}});var r=u(41867),t=u(27088);function a(){return r.useContext(t.Z)}}}]);
//# sourceMappingURL=2693.e87e11ff.chunk.js.map