"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8591],{73689:(e,a,n)=>{n.d(a,{Z:()=>Z});var r=n(30984),u=n(55559),o=n(66204),t=n(53447),l=n(81597),c=n(24842),d=n(54855),s=n(79673),i=n(43188);const h=["actions","children","defaultValue","name","onChange","value"],Z=o.forwardRef((function(e,a){const{actions:n,children:Z,defaultValue:f,name:v,onChange:b,value:p}=e,g=(0,u.Z)(e,h),w=o.useRef(null),[C,m]=(0,c.Z)({controlled:p,default:f,name:"RadioGroup"});o.useImperativeHandle(n,(()=>({focus:()=>{let e=w.current.querySelector("input:not(:disabled):checked");e||(e=w.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const k=(0,l.Z)(a,w),j=(0,s.Z)(v),x=o.useMemo((()=>({name:j,onChange(e){m(e.target.value),b&&b(e,e.target.value)},value:C})),[j,b,m,C]);return(0,i.jsx)(d.Z.Provider,{value:x,children:(0,i.jsx)(t.Z,(0,r.Z)({role:"radiogroup",ref:k},g,{children:Z}))})}))},54855:(e,a,n)=>{n.d(a,{Z:()=>r});const r=n(66204).createContext(void 0)},88591:(e,a,n)=>{n.r(a),n.d(a,{default:()=>r.Z,useRadioGroup:()=>u.Z});var r=n(73689),u=n(66021)},66021:(e,a,n)=>{n.d(a,{Z:()=>o});var r=n(66204),u=n(54855);function o(){return r.useContext(u.Z)}}}]);
//# sourceMappingURL=8591.201d9c5a.chunk.js.map