"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8249],{5032:(e,o,t)=>{t.d(o,{A:()=>n,q:()=>r});var a=t(51062),s=t(2958);function r(e){return(0,s.Ay)("MuiRadio",e)}const n=(0,a.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"])},8865:(e,o,t)=>{t.d(o,{A:()=>a});const a=t(7552).createContext(void 0)},53009:(e,o,t)=>{t.d(o,{A:()=>r});var a=t(7552),s=t(8865);function r(){return a.useContext(s.A)}},58249:(e,o,t)=>{t.r(o),t.d(o,{default:()=>a.A,getRadioUtilityClass:()=>s.q,radioClasses:()=>s.A});var a=t(94332),s=t(5032)},94332:(e,o,t)=>{t.d(o,{A:()=>$});var a=t(7552),s=t(93878),r=t(75100),n=t(62266),i=t(35880),l=t(29772),c=t(69500);const d=(0,l.A)((0,c.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),p=(0,l.A)((0,c.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var u=t(99977),h=t(80317),m=t(21928);const v=(0,h.Ay)("span",{name:"MuiRadioButtonIcon",shouldForwardProp:u.A})({position:"relative",display:"flex"}),b=(0,h.Ay)(d,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),A=(0,h.Ay)(p,{name:"MuiRadioButtonIcon"})((0,m.A)(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]}))),f=function(e){const{checked:o=!1,classes:t={},fontSize:a}=e,s={...e,checked:o};return(0,c.jsxs)(v,{className:t.root,ownerState:s,children:[(0,c.jsx)(b,{fontSize:a,className:t.background,ownerState:s}),(0,c.jsx)(A,{fontSize:a,className:t.dot,ownerState:s})]})};var y=t(74325),C=t(44947),g=t(45815),k=t(53009),R=t(5032),S=t(20535),z=t(22020),w=t(50864);const j=(0,h.Ay)(i.A,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,"medium"!==t.size&&o[`size${(0,y.A)(t.size)}`],o[`color${(0,y.A)(t.color)}`]]}})((0,m.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${R.A.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,S.A)()).map(([o])=>({props:{color:o,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette[o].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,S.A)()).map(([o])=>({props:{color:o,disabled:!1},style:{[`&.${R.A.checked}`]:{color:(e.vars||e).palette[o].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),x=(0,c.jsx)(f,{checked:!0}),P=(0,c.jsx)(f,{}),$=a.forwardRef(function(e,o){const t=(0,w.b)({props:e,name:"MuiRadio"}),{checked:n,checkedIcon:i=x,color:l="primary",icon:d=P,name:p,onChange:u,size:h="medium",className:m,disabled:v,disableRipple:b=!1,slots:A={},slotProps:f={},inputProps:S,...$}=t,M=(0,g.A)();let O=v;M&&void 0===O&&(O=M.disabled),O??=!1;const I={...t,disabled:O,disableRipple:b,color:l,size:h},B=(e=>{const{classes:o,color:t,size:a}=e,s={root:["root",`color${(0,y.A)(t)}`,"medium"!==a&&`size${(0,y.A)(a)}`]};return{...o,...(0,r.A)(s,R.q,o)}})(I),N=(0,k.A)();let F=n;const _=(0,C.A)(u,N&&N.onChange);let q=p;var T,E;N&&(void 0===F&&(T=N.value,F="object"==typeof(E=t.value)&&null!==E?T===E:String(T)===String(E)),void 0===q&&(q=N.name));const U=f.input??S,[X,Z]=(0,z.A)("root",{ref:o,elementType:j,className:(0,s.A)(B.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:A,slotProps:f,...$},getSlotProps:e=>({...e,onChange:(o,...t)=>{e.onChange?.(o,...t),_(o,...t)}}),ownerState:I,additionalProps:{type:"radio",icon:a.cloneElement(d,{fontSize:d.props.fontSize??h}),checkedIcon:a.cloneElement(i,{fontSize:i.props.fontSize??h}),disabled:O,name:q,checked:F,slots:A,slotProps:{input:"function"==typeof U?U(I):U}}});return(0,c.jsx)(X,{...Z,classes:B})})}}]);
//# sourceMappingURL=8249.7d3d0a81.chunk.js.map