"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5951],{56089:(e,r,o)=>{o.d(r,{A:()=>v});var a=o(6614),t=o(83673),u=o(7552),n=o(93878),s=o(60827),l=o(83867),c=o(87625),d=o(51584),i=o(77259),A=o(76258),f=o(89456),h=o(69500);const p=["actions","children","className","defaultValue","name","onChange","value"],v=u.forwardRef((function(e,r){const{actions:o,children:v,className:b,defaultValue:w,name:g,onChange:m,value:C}=e,R=(0,t.A)(e,p),G=u.useRef(null),k=(e=>{const{classes:r,row:o,error:a}=e,t={root:["root",o&&"row",a&&"error"]};return(0,s.A)(t,c.B,r)})(e),[j,x]=(0,i.A)({controlled:C,default:w,name:"RadioGroup"});u.useImperativeHandle(o,(()=>({focus:()=>{let e=G.current.querySelector("input:not(:disabled):checked");e||(e=G.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const y=(0,d.A)(r,G),_=(0,f.A)(g),B=u.useMemo((()=>({name:_,onChange(e){x(e.target.value),m&&m(e,e.target.value)},value:j})),[_,m,x,j]);return(0,h.jsx)(A.A.Provider,{value:B,children:(0,h.jsx)(l.A,(0,a.A)({role:"radiogroup",ref:y,className:(0,n.A)(k.root,b)},R,{children:v}))})}))},76258:(e,r,o)=>{o.d(r,{A:()=>a});const a=o(7552).createContext(void 0)},25951:(e,r,o)=>{o.r(r),o.d(r,{default:()=>a.A,getRadioGroupUtilityClass:()=>u.B,radioGroupClasses:()=>u.A,useRadioGroup:()=>t.A});var a=o(56089),t=o(39006),u=o(87625)},87625:(e,r,o)=>{o.d(r,{A:()=>n,B:()=>u});var a=o(55549),t=o(9577);function u(e){return(0,t.Ay)("MuiRadioGroup",e)}const n=(0,a.A)("MuiRadioGroup",["root","row","error"])},39006:(e,r,o)=>{o.d(r,{A:()=>u});var a=o(7552),t=o(76258);function u(){return a.useContext(t.A)}}}]);
//# sourceMappingURL=5951.9a7dcc63.chunk.js.map