"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[7117],{17177:(e,t,a)=>{a.d(t,{A:()=>w});var o=a(7552),r=a(93878),i=a(70799),s=a(72639),c=a(15622),n=a(15110),l=a(51148),d=a(60129),h=a(4785),p=a(66889),m=a(69500);const u=(0,l.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.edge&&t[`edge${(0,c.A)(a.edge)}`],t[`size${(0,c.A)(a.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${p.A.thumb}`]:{width:16,height:16},[`& .${p.A.switchBase}`]:{padding:4,[`&.${p.A.checked}`]:{transform:"translateX(16px)"}}}}]}),g=(0,l.Ay)(n.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.switchBase,{[`& .${p.A.input}`]:t.input},"default"!==a.color&&t[`color${(0,c.A)(a.color)}`]]}})((0,d.A)((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${p.A.checked}`]:{transform:"translateX(20px)"},[`&.${p.A.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${p.A.checked} + .${p.A.track}`]:{opacity:.5},[`&.${p.A.disabled} + .${p.A.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${p.A.input}`]:{left:"-100%",width:"300%"}}))),(0,d.A)((({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${p.A.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${p.A.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,s.a)(e.palette[t].main,.62):(0,s.e$)(e.palette[t].main,.55)}`}},[`&.${p.A.checked} + .${p.A.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]})))),v=(0,l.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((0,d.A)((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)})))),b=(0,l.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((0,d.A)((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})))),w=o.forwardRef((function(e,t){const a=(0,h.b)({props:e,name:"MuiSwitch"}),{className:o,color:s="primary",edge:n=!1,size:l="medium",sx:d,...w}=a,A={...a,color:s,edge:n,size:l},k=(e=>{const{classes:t,edge:a,size:o,color:r,checked:s,disabled:n}=e,l={root:["root",a&&`edge${(0,c.A)(a)}`,`size${(0,c.A)(o)}`],switchBase:["switchBase",`color${(0,c.A)(r)}`,s&&"checked",n&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,i.A)(l,p.n,t);return{...t,...d}})(A),$=(0,m.jsx)(b,{className:k.thumb,ownerState:A});return(0,m.jsxs)(u,{className:(0,r.A)(k.root,o),sx:d,ownerState:A,children:[(0,m.jsx)(g,{type:"checkbox",icon:$,checkedIcon:$,ref:t,ownerState:A,...w,classes:{...k,root:k.switchBase}}),(0,m.jsx)(v,{className:k.track,ownerState:A})]})}))},67117:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o.A,getSwitchUtilityClass:()=>r.n,switchClasses:()=>r.A});var o=a(17177),r=a(66889)},66889:(e,t,a)=>{a.d(t,{A:()=>s,n:()=>i});var o=a(33761),r=a(85693);function i(e){return(0,r.Ay)("MuiSwitch",e)}const s=(0,o.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"])}}]);
//# sourceMappingURL=7117.80633385.chunk.js.map