"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[3089],{6698:function(t,e,n){var i=n(56666),r=n(31461),o=n(7896),a=n(30969),s=n(81856),u=n(92609),l=n(26540),c=n(45971),d=n(17363),p=n(92093),f=n(522),h=n(94702),v=n(87352),w=n(98001),m=n(37574),g=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Z=(0,c.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:function(t,e){var n=t.ownerState;return[e.root,e[n.orientation],"entered"===n.state&&e.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&e.hidden]}})((function(t){var e=t.theme,n=t.ownerState;return(0,o.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===n.state&&(0,o.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),x=(0,c.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:function(t,e){return e.wrapper}})((function(t){var e=t.ownerState;return(0,o.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})})),y=(0,c.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:function(t,e){return e.wrapperInner}})((function(t){var e=t.ownerState;return(0,o.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})})),E=a.forwardRef((function(t,e){var n=(0,d.Z)({props:t,name:"MuiCollapse"}),c=n.addEndListener,E=n.children,C=n.className,S=n.collapsedSize,z=void 0===S?"0px":S,b=n.component,R=n.easing,j=n.in,D=n.onEnter,I=n.onEntered,M=n.onEntering,T=n.onExit,N=n.onExited,k=n.onExiting,H=n.orientation,P=void 0===H?"vertical":H,W=n.style,_=n.timeout,A=void 0===_?p.x9.standard:_,L=n.TransitionComponent,F=void 0===L?u.ZP:L,U=(0,r.Z)(n,g),q=(0,o.Z)({},n,{orientation:P,collapsedSize:z}),B=function(t){var e=t.orientation,n=t.classes,i={root:["root","".concat(e)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(e)],wrapperInner:["wrapperInner","".concat(e)]};return(0,l.Z)(i,w.d,n)}(q),G=(0,h.Z)(),J=a.useRef(),K=a.useRef(null),O=a.useRef(),Q="number"===typeof z?"".concat(z,"px"):z,V="horizontal"===P,X=V?"width":"height";a.useEffect((function(){return function(){clearTimeout(J.current)}}),[]);var Y=a.useRef(null),$=(0,v.Z)(e,Y),tt=function(t){return function(e){if(t){var n=Y.current;void 0===e?t(n):t(n,e)}}},et=function(){return K.current?K.current[V?"clientWidth":"clientHeight"]:0},nt=tt((function(t,e){K.current&&V&&(K.current.style.position="absolute"),t.style[X]=Q,D&&D(t,e)})),it=tt((function(t,e){var n=et();K.current&&V&&(K.current.style.position="");var i=(0,f.C)({style:W,timeout:A,easing:R},{mode:"enter"}),r=i.duration,o=i.easing;if("auto"===A){var a=G.transitions.getAutoHeightDuration(n);t.style.transitionDuration="".concat(a,"ms"),O.current=a}else t.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");t.style[X]="".concat(n,"px"),t.style.transitionTimingFunction=o,M&&M(t,e)})),rt=tt((function(t,e){t.style[X]="auto",I&&I(t,e)})),ot=tt((function(t){t.style[X]="".concat(et(),"px"),T&&T(t)})),at=tt(N),st=tt((function(t){var e=et(),n=(0,f.C)({style:W,timeout:A,easing:R},{mode:"exit"}),i=n.duration,r=n.easing;if("auto"===A){var o=G.transitions.getAutoHeightDuration(e);t.style.transitionDuration="".concat(o,"ms"),O.current=o}else t.style.transitionDuration="string"===typeof i?i:"".concat(i,"ms");t.style[X]=Q,t.style.transitionTimingFunction=r,k&&k(t)}));return(0,m.jsx)(F,(0,o.Z)({in:j,onEnter:nt,onEntered:rt,onEntering:it,onExit:ot,onExited:at,onExiting:st,addEndListener:function(t){"auto"===A&&(J.current=setTimeout(t,O.current||0)),c&&c(Y.current,t)},nodeRef:Y,timeout:"auto"===A?null:A},U,{children:function(t,e){return(0,m.jsx)(Z,(0,o.Z)({as:b,className:(0,s.default)(B.root,C,{entered:B.entered,exited:!j&&"0px"===Q&&B.hidden}[t]),style:(0,o.Z)((0,i.Z)({},V?"minWidth":"minHeight",Q),W),ownerState:(0,o.Z)({},q,{state:t}),ref:$},e,{children:(0,m.jsx)(x,{ownerState:(0,o.Z)({},q,{state:t}),className:B.wrapper,ref:K,children:(0,m.jsx)(y,{ownerState:(0,o.Z)({},q,{state:t}),className:B.wrapperInner,children:E})})}))}}))}));E.muiSupportAuto=!0,e.Z=E},98001:function(t,e,n){n.d(e,{d:function(){return r}});var i=n(2975);function r(t){return(0,i.Z)("MuiCollapse",t)}var o=(0,n(62746).Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);e.Z=o},23089:function(t,e,n){n.r(e),n.d(e,{collapseClasses:function(){return r.Z},default:function(){return i.Z},getCollapseUtilityClass:function(){return r.d}});var i=n(6698),r=n(98001)}}]);
//# sourceMappingURL=3089.315d288d.chunk.js.map