"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[8177],{20875:(e,t,n)=>{n.d(t,{d:()=>u});var r=n(41867),o=n(32407),s=n(95809),i=n(89293),a=n(80838);function c(e){return e.substring(2).toLowerCase()}function u(e){const{children:t,disableReactTree:n=!1,mouseEvent:u="onClick",onClickAway:l,touchEvent:d="onTouchEnd"}=e,m=r.useRef(!1),f=r.useRef(null),v=r.useRef(!1),p=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{v.current=!0}),0),()=>{v.current=!1})),[]);const g=(0,o.Z)(t.ref,f),b=(0,s.Z)((e=>{const t=p.current;p.current=!1;const r=(0,i.Z)(f.current);if(!v.current||!f.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(m.current)return void(m.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(f.current)>-1:!r.documentElement.contains(e.target)||f.current.contains(e.target),o||!n&&t||l(e)})),h=e=>n=>{p.current=!0;const r=t.props[e];r&&r(n)},Z={ref:g};return!1!==d&&(Z[d]=h(d)),r.useEffect((()=>{if(!1!==d){const e=c(d),t=(0,i.Z)(f.current),n=()=>{m.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,b),t.removeEventListener("touchmove",n)}}}),[b,d]),!1!==u&&(Z[u]=h(u)),r.useEffect((()=>{if(!1!==u){const e=c(u),t=(0,i.Z)(f.current);return t.addEventListener(e,b),()=>{t.removeEventListener(e,b)}}}),[b,u]),(0,a.jsx)(r.Fragment,{children:r.cloneElement(t,Z)})}},69625:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(31461),o=n(7896),s=n(41867),i=n(66184),a=n(92705),c=n(90293),u=n(75693),l=n(59968),d=n(80838);const m=["className","component","disableGutters","variant"],f=(0,u.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===n.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:n}=e;return"regular"===n.variant&&t.mixins.toolbar})),v=s.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiToolbar"}),{className:s,component:u="div",disableGutters:v=!1,variant:p="regular"}=n,g=(0,r.Z)(n,m),b=(0,o.Z)({},n,{component:u,disableGutters:v,variant:p}),h=(e=>{const{classes:t,disableGutters:n,variant:r}=e,o={root:["root",!n&&"gutters",r]};return(0,a.Z)(o,l.N,t)})(b);return(0,d.jsx)(f,(0,o.Z)({as:u,className:(0,i.Z)(h.root,s),ref:t,ownerState:b},g))}))},59968:(e,t,n)=>{n.d(t,{N:()=>s,Z:()=>i});var r=n(70101),o=n(88498);function s(e){return(0,o.Z)("MuiToolbar",e)}const i=(0,r.Z)("MuiToolbar",["root","gutters","regular","dense"])}}]);
//# sourceMappingURL=8177.d47e7e5d.chunk.js.map