"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[2693],{21126:(e,n,r)=>{r.d(n,{Z:()=>Z});var a=r(7896),u=r(31461),t=r(41867),o=r(45489),l=r(40234),c=r(61291),d=r(27088),s=r(56619),i=r(80838);const f=["actions","children","defaultValue","name","onChange","value"],Z=t.forwardRef((function(e,n){const{actions:r,children:Z,defaultValue:v,name:h,onChange:p,value:b}=e,w=(0,u.Z)(e,f),C=t.useRef(null),[g,m]=(0,c.Z)({controlled:b,default:v,name:"RadioGroup"});t.useImperativeHandle(r,(()=>({focus:()=>{let e=C.current.querySelector("input:not(:disabled):checked");e||(e=C.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const k=(0,l.Z)(n,C),j=(0,s.Z)(h),x=t.useMemo((()=>({name:j,onChange(e){m(e.target.value),p&&p(e,e.target.value)},value:g})),[j,p,m,g]);return(0,i.jsx)(d.Z.Provider,{value:x,children:(0,i.jsx)(o.Z,(0,a.Z)({role:"radiogroup",ref:k},w,{children:Z}))})}))},27088:(e,n,r)=>{r.d(n,{Z:()=>a});const a=r(41867).createContext(void 0)},12693:(e,n,r)=>{r.r(n),r.d(n,{default:()=>a.Z,useRadioGroup:()=>u.Z});var a=r(21126),u=r(20326)},20326:(e,n,r)=>{r.d(n,{Z:()=>t});var a=r(41867),u=r(27088);function t(){return a.useContext(u.Z)}}}]);
//# sourceMappingURL=2693.d4ed2d82.chunk.js.map