"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6352],{6352:(e,r,o)=>{o.r(r),o.d(r,{default:()=>t.A,getRadioGroupUtilityClass:()=>u.B,radioGroupClasses:()=>u.A,useRadioGroup:()=>a.A});var t=o(94540),a=o(53009),u=o(13094)},8865:(e,r,o)=>{o.d(r,{A:()=>t});const t=o(7552).createContext(void 0)},13094:(e,r,o)=>{o.d(r,{A:()=>n,B:()=>u});var t=o(51062),a=o(2958);function u(e){return(0,a.Ay)("MuiRadioGroup",e)}const n=(0,t.A)("MuiRadioGroup",["root","row","error"])},53009:(e,r,o)=>{o.d(r,{A:()=>u});var t=o(7552),a=o(8865);function u(){return t.useContext(a.A)}},94540:(e,r,o)=>{o.d(r,{A:()=>p});var t=o(7552),a=o(93878),u=o(75100),n=o(36866),s=o(13094),l=o(3055),c=o(87426),d=o(8865),i=o(71761),A=o(69500);const p=t.forwardRef(function(e,r){const{actions:o,children:p,className:f,defaultValue:v,name:h,onChange:b,value:w,...g}=e,C=t.useRef(null),m=(e=>{const{classes:r,row:o,error:t}=e,a={root:["root",o&&"row",t&&"error"]};return(0,u.A)(a,s.B,r)})(e),[R,G]=(0,c.A)({controlled:w,default:v,name:"RadioGroup"});t.useImperativeHandle(o,()=>({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.A)(r,C),j=(0,i.A)(h),x=t.useMemo(()=>({name:j,onChange(e){G(e.target.value),b&&b(e,e.target.value)},value:R}),[j,b,G,R]);return(0,A.jsx)(d.A.Provider,{value:x,children:(0,A.jsx)(n.A,{role:"radiogroup",ref:k,className:(0,a.A)(m.root,f),...g,children:p})})})}}]);
//# sourceMappingURL=6352.aa60b1da.chunk.js.map