"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9384],{33248:(e,o,t)=>{t.d(o,{A:()=>$});var a=t(7552),s=t(93878),r=t(70799),n=t(963),i=t(15110),l=t(74893),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(55270),h=t(51148),m=t(84893);const v=(0,h.Ay)("span",{shouldForwardProp:u.A})({position:"relative",display:"flex"}),b=(0,h.Ay)(d)({transform:"scale(1)"}),A=(0,h.Ay)(p)((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(15622),C=t(4402),g=t(33960),k=t(39006),S=t(38127),z=t(58520),w=t(43045),R=t(4785);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,[`&.${S.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,z.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,z.A)()).map((([o])=>({props:{color:o,disabled:!1},style:{[`&.${S.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,R.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={},...z}=t,$=(0,g.A)();let O=v;$&&void 0===O&&(O=$.disabled),O??=!1;const M={...t,disabled:O,disableRipple:b,color:l,size:h},N=(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,S.q,o)}})(M),F=(0,k.A)();let _=n;const q=(0,C.A)(u,F&&F.onChange);let I=p;var T,B;F&&(void 0===_&&(T=F.value,_="object"==typeof(B=t.value)&&null!==B?T===B:String(T)===String(B)),void 0===I&&(I=F.name));const[E,U]=(0,w.A)("root",{ref:o,elementType:j,className:(0,s.A)(N.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:A,slotProps:f,...z},getSlotProps:e=>({...e,onChange:(o,...t)=>{e.onChange?.(o,...t),q(o,...t)}}),ownerState:M,additionalProps:{type:"radio",icon:a.cloneElement(d,{fontSize:d.props.fontSize??h}),checkedIcon:a.cloneElement(i,{fontSize:i.props.fontSize??h}),disabled:O,name:I,checked:_,slots:A,slotProps:{input:"function"==typeof f.input?f.input(M):f.input}}});return(0,c.jsx)(E,{...U,classes:N})}))},38127:(e,o,t)=>{t.d(o,{A:()=>n,q:()=>r});var a=t(33761),s=t(85693);function r(e){return(0,s.Ay)("MuiRadio",e)}const n=(0,a.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"])},39006:(e,o,t)=>{t.d(o,{A:()=>r});var a=t(7552),s=t(76258);function r(){return a.useContext(s.A)}},76258:(e,o,t)=>{t.d(o,{A:()=>a});const a=t(7552).createContext(void 0)},79384:(e,o,t)=>{t.r(o),t.d(o,{default:()=>a.A,getRadioUtilityClass:()=>s.q,radioClasses:()=>s.A});var a=t(33248),s=t(38127)}}]);
//# sourceMappingURL=9384.d5c7cdaf.chunk.js.map