"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5638],{92704:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(55559),o=n(30984),r=n(66204),s=n(56317),a=n(44628),l=n(58029),d=n(61125),u=n(57369),c=n(14262),p=n(79143),h=n(92368),w=n(81597),m=n(7109),g=n(43188);const Z=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],x=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,o.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,o.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),y=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,o.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),f=(0,d.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,o.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),E=r.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCollapse"}),{addEndListener:d,children:E,className:v,collapsedSize:C="0px",component:S,easing:b,in:z,onEnter:R,onEntered:$,onEntering:T,onExit:j,onExited:D,onExiting:I,orientation:M="vertical",style:N,timeout:k=c.x9.standard,TransitionComponent:H=a.ZP}=n,P=(0,i.Z)(n,Z),W=(0,o.Z)({},n,{orientation:M,collapsedSize:C}),_=(e=>{const{orientation:t,classes:n}=e,i={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,l.Z)(i,m.d,n)})(W),A=(0,h.Z)(),L=r.useRef(),F=r.useRef(null),U=r.useRef(),q="number"==typeof C?`${C}px`:C,B="horizontal"===M,G=B?"width":"height";r.useEffect((()=>()=>{clearTimeout(L.current)}),[]);const J=r.useRef(null),K=(0,w.Z)(t,J),O=e=>t=>{if(e){const n=J.current;void 0===t?e(n):e(n,t)}},Q=()=>F.current?F.current[B?"clientWidth":"clientHeight"]:0,V=O(((e,t)=>{F.current&&B&&(F.current.style.position="absolute"),e.style[G]=q,R&&R(e,t)})),X=O(((e,t)=>{const n=Q();F.current&&B&&(F.current.style.position="");const{duration:i,easing:o}=(0,p.C)({style:N,timeout:k,easing:b},{mode:"enter"});if("auto"===k){const t=A.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,U.current=t}else e.style.transitionDuration="string"==typeof i?i:`${i}ms`;e.style[G]=`${n}px`,e.style.transitionTimingFunction=o,T&&T(e,t)})),Y=O(((e,t)=>{e.style[G]="auto",$&&$(e,t)})),ee=O((e=>{e.style[G]=`${Q()}px`,j&&j(e)})),te=O(D),ne=O((e=>{const t=Q(),{duration:n,easing:i}=(0,p.C)({style:N,timeout:k,easing:b},{mode:"exit"});if("auto"===k){const n=A.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,U.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[G]=q,e.style.transitionTimingFunction=i,I&&I(e)}));return(0,g.jsx)(H,(0,o.Z)({in:z,onEnter:V,onEntered:Y,onEntering:X,onExit:ee,onExited:te,onExiting:ne,addEndListener:e=>{"auto"===k&&(L.current=setTimeout(e,U.current||0)),d&&d(J.current,e)},nodeRef:J,timeout:"auto"===k?null:k},P,{children:(e,t)=>(0,g.jsx)(x,(0,o.Z)({as:S,className:(0,s.Z)(_.root,v,{entered:_.entered,exited:!z&&"0px"===q&&_.hidden}[e]),style:(0,o.Z)({[B?"minWidth":"minHeight"]:q},N),ownerState:(0,o.Z)({},W,{state:e}),ref:K},t,{children:(0,g.jsx)(y,{ownerState:(0,o.Z)({},W,{state:e}),className:_.wrapper,ref:F,children:(0,g.jsx)(f,{ownerState:(0,o.Z)({},W,{state:e}),className:_.wrapperInner,children:E})})}))}))}));E.muiSupportAuto=!0;const v=E},7109:(e,t,n)=>{n.d(t,{Z:()=>s,d:()=>r});var i=n(58109),o=n(95201);function r(e){return(0,o.Z)("MuiCollapse",e)}const s=(0,i.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"])},45638:(e,t,n)=>{n.r(t),n.d(t,{collapseClasses:()=>o.Z,default:()=>i.Z,getCollapseUtilityClass:()=>o.d});var i=n(92704),o=n(7109)}}]);
//# sourceMappingURL=5638.d7ca6e15.chunk.js.map