"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),v=t(84893);const m=(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,v.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)(m,{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),k=t(33960),g=t(39006),z=t(38127),S=t(58520),R=t(4785);const w=(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,v.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${z.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:{[`&.${z.A.checked}`]:{color:(e.vars||e).palette[o].main}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),j=(0,c.jsx)(f,{checked:!0}),x=(0,c.jsx)(f,{}),$=a.forwardRef((function(e,o){const t=(0,R.b)({props:e,name:"MuiRadio"}),{checked:n,checkedIcon:i=j,color:l="primary",icon:d=x,name:p,onChange:u,size:h="medium",className:v,disabled:m,disableRipple:b=!1,...A}=t,f=(0,k.A)();let S=m;f&&void 0===S&&(S=f.disabled),S??=!1;const $={...t,disabled:S,disableRipple:b,color:l,size:h},O=(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,z.q,o)}})($),M=(0,g.A)();let N=n;const _=(0,C.A)(u,M&&M.onChange);let q=p;var I,P;return M&&(void 0===N&&(I=M.value,N="object"==typeof(P=t.value)&&null!==P?I===P:String(I)===String(P)),void 0===q&&(q=M.name)),(0,c.jsx)(w,{type:"radio",icon:a.cloneElement(d,{fontSize:x.props.fontSize??h}),checkedIcon:a.cloneElement(i,{fontSize:j.props.fontSize??h}),disabled:S,ownerState:$,classes:O,name:q,checked:N,onChange:_,ref:o,className:(0,s.A)(O.root,v),...A})}))},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)},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"])},76258:(e,o,t)=>{t.d(o,{A:()=>a});const a=t(7552).createContext(void 0)},39006:(e,o,t)=>{t.d(o,{A:()=>r});var a=t(7552),s=t(76258);function r(){return a.useContext(s.A)}}}]);
//# sourceMappingURL=9384.88241279.chunk.js.map