"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7926],{75769:(t,e,a)=>{a.d(e,{Z:()=>k});var o=a(31461),c=a(7896),r=a(41867),n=a(66184),i=a(92705),s=a(71939),l=a(9931),d=a(9886),h=a(90293),p=a(75693),u=a(59187),m=a(80838);const w=["className","color","edge","size","sx"],g=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,a.edge&&e["edge".concat((0,l.Z)(a.edge))],e["size".concat((0,l.Z)(a.size))]]}})((t=>{let{ownerState:e}=t;return(0,c.Z)({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"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,["& .".concat(u.Z.thumb)]:{width:16,height:16},["& .".concat(u.Z.switchBase)]:{padding:4,["&.".concat(u.Z.checked)]:{transform:"translateX(16px)"}}})})),v=(0,p.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.switchBase,{["& .".concat(u.Z.input)]:e.input},"default"!==a.color&&e["color".concat((0,l.Z)(a.color))]]}})((t=>{let{theme:e}=t;return{position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:"".concat("light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]),transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),["&.".concat(u.Z.checked)]:{transform:"translateX(20px)"},["&.".concat(u.Z.disabled)]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:"".concat("light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600])},["&.".concat(u.Z.checked," + .").concat(u.Z.track)]:{opacity:.5},["&.".concat(u.Z.disabled," + .").concat(u.Z.track)]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:"".concat("light"===e.palette.mode?.12:.2)},["& .".concat(u.Z.input)]:{left:"-100%",width:"300%"}}}),(t=>{let{theme:e,ownerState:a}=t;return(0,c.Z)({"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.action.activeChannel," / ").concat(e.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==a.color&&{["&.".concat(u.Z.checked)]:{color:(e.vars||e).palette[a.color].main,"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / ").concat(e.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(e.palette[a.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(u.Z.disabled)]:{color:e.vars?e.vars.palette.Switch["".concat(a.color,"DisabledColor")]:"".concat("light"===e.palette.mode?(0,s.$n)(e.palette[a.color].main,.62):(0,s._j)(e.palette[a.color].main,.55))}},["&.".concat(u.Z.checked," + .").concat(u.Z.track)]:{backgroundColor:(e.vars||e).palette[a.color].main}})})),Z=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})((t=>{let{theme:e}=t;return{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:"".concat("light"===e.palette.mode?e.palette.common.black:e.palette.common.white),opacity:e.vars?e.vars.opacity.switchTrack:"".concat("light"===e.palette.mode?.38:.3)}})),b=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})((t=>{let{theme:e}=t;return{boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),k=r.forwardRef((function(t,e){const a=(0,h.Z)({props:t,name:"MuiSwitch"}),{className:r,color:s="primary",edge:d=!1,size:p="medium",sx:k}=a,S=(0,o.Z)(a,w),f=(0,c.Z)({},a,{color:s,edge:d,size:p}),x=(t=>{const{classes:e,edge:a,size:o,color:r,checked:n,disabled:s}=t,d={root:["root",a&&"edge".concat((0,l.Z)(a)),"size".concat((0,l.Z)(o))],switchBase:["switchBase","color".concat((0,l.Z)(r)),n&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=(0,i.Z)(d,u.H,e);return(0,c.Z)({},e,h)})(f),y=(0,m.jsx)(b,{className:x.thumb,ownerState:f});return(0,m.jsxs)(g,{className:(0,n.Z)(x.root,r),sx:k,ownerState:f,children:[(0,m.jsx)(v,(0,c.Z)({type:"checkbox",icon:y,checkedIcon:y,ref:e,ownerState:f},S,{classes:(0,c.Z)({},x,{root:x.switchBase})})),(0,m.jsx)(Z,{className:x.track,ownerState:f})]})}))},17926:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o.Z,getSwitchUtilityClass:()=>c.H,switchClasses:()=>c.Z});var o=a(75769),c=a(59187)},59187:(t,e,a)=>{a.d(e,{H:()=>r,Z:()=>n});var o=a(70101),c=a(88498);function r(t){return(0,c.Z)("MuiSwitch",t)}const n=(0,o.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"])}}]);
//# sourceMappingURL=7926.39ba742c.chunk.js.map