"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8678],{98459:(e,t,n)=>{n.d(t,{A:()=>C});var i=n(83673),o=n(6614),r=n(7552),s=n(93878),a=n(16157),l=n(31755),d=n(60827),u=n(51148),p=n(31049),c=n(94479),h=n(46302),w=n(48231),g=n(51584),m=n(72367),A=n(69500);const y=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],x=(0,u.Ay)("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.A)({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.A)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),E=(0,u.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,o.A)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),f=(0,u.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,o.A)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),v=r.forwardRef((function(e,t){const n=(0,p.A)({props:e,name:"MuiCollapse"}),{addEndListener:u,children:v,className:C,collapsedSize:S="0px",component:b,easing:z,in:$,onEnter:R,onEntered:j,onEntering:D,onExit:I,onExited:M,onExiting:T,orientation:N="vertical",style:k,timeout:H=c.p0.standard,TransitionComponent:W=a.Ay}=n,_=(0,i.A)(n,y),L=(0,o.A)({},n,{orientation:N,collapsedSize:S}),F=(e=>{const{orientation:t,classes:n}=e,i={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,d.A)(i,m.E,n)})(L),U=(0,w.A)(),q=(0,l.A)(),B=r.useRef(null),G=r.useRef(),J="number"==typeof S?`${S}px`:S,K="horizontal"===N,O=K?"width":"height",P=r.useRef(null),Q=(0,g.A)(t,P),V=e=>t=>{if(e){const n=P.current;void 0===t?e(n):e(n,t)}},X=()=>B.current?B.current[K?"clientWidth":"clientHeight"]:0,Y=V(((e,t)=>{B.current&&K&&(B.current.style.position="absolute"),e.style[O]=J,R&&R(e,t)})),Z=V(((e,t)=>{const n=X();B.current&&K&&(B.current.style.position="");const{duration:i,easing:o}=(0,h.c)({style:k,timeout:H,easing:z},{mode:"enter"});if("auto"===H){const t=U.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,G.current=t}else e.style.transitionDuration="string"==typeof i?i:`${i}ms`;e.style[O]=`${n}px`,e.style.transitionTimingFunction=o,D&&D(e,t)})),ee=V(((e,t)=>{e.style[O]="auto",j&&j(e,t)})),te=V((e=>{e.style[O]=`${X()}px`,I&&I(e)})),ne=V(M),ie=V((e=>{const t=X(),{duration:n,easing:i}=(0,h.c)({style:k,timeout:H,easing:z},{mode:"exit"});if("auto"===H){const n=U.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,G.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[O]=J,e.style.transitionTimingFunction=i,T&&T(e)}));return(0,A.jsx)(W,(0,o.A)({in:$,onEnter:Y,onEntered:ee,onEntering:Z,onExit:te,onExited:ne,onExiting:ie,addEndListener:e=>{"auto"===H&&q.start(G.current||0,e),u&&u(P.current,e)},nodeRef:P,timeout:"auto"===H?null:H},_,{children:(e,t)=>(0,A.jsx)(x,(0,o.A)({as:b,className:(0,s.A)(F.root,C,{entered:F.entered,exited:!$&&"0px"===J&&F.hidden}[e]),style:(0,o.A)({[K?"minWidth":"minHeight"]:J},k),ownerState:(0,o.A)({},L,{state:e}),ref:Q},t,{children:(0,A.jsx)(E,{ownerState:(0,o.A)({},L,{state:e}),className:F.wrapper,ref:B,children:(0,A.jsx)(f,{ownerState:(0,o.A)({},L,{state:e}),className:F.wrapperInner,children:v})})}))}))}));v.muiSupportAuto=!0;const C=v},72367:(e,t,n)=>{n.d(t,{A:()=>s,E:()=>r});var i=n(55549),o=n(9577);function r(e){return(0,o.Ay)("MuiCollapse",e)}const s=(0,i.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"])},78678:(e,t,n)=>{n.r(t),n.d(t,{collapseClasses:()=>o.A,default:()=>i.A,getCollapseUtilityClass:()=>o.E});var i=n(98459),o=n(72367)}}]);
//# sourceMappingURL=8678.aa16ef7b.chunk.js.map