"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[1181],{31760:(t,e,n)=>{n.d(e,{A:()=>s,E:()=>r});var i=n(51062),o=n(2958);function r(t){return(0,o.Ay)("MuiCollapse",t)}const s=(0,i.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"])},54898:(t,e,n)=>{n.d(e,{A:()=>v});var i=n(7552),o=n(93878),r=n(16157),s=n(17032),a=n(75100),l=n(51414),d=n(80317),p=n(21928),u=n(50864),c=n(51980),h=n(55715),y=n(3055),w=n(31760),g=n(69500);const m=(0,d.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],"entered"===n.state&&e.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&e.hidden]}})((0,p.A)(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>"exited"===t.state&&!t.in&&"0px"===t.collapsedSize,style:{visibility:"hidden"}}]}))),x=(0,d.Ay)("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),f=(0,d.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),A=i.forwardRef(function(t,e){const n=(0,u.b)({props:t,name:"MuiCollapse"}),{addEndListener:d,children:p,className:A,collapsedSize:v="0px",component:E,easing:b,in:C,onEnter:S,onEntered:z,onEntering:$,onExit:R,onExited:j,onExiting:D,orientation:M="vertical",style:I,timeout:T=c.p0.standard,TransitionComponent:k=r.Ay,...H}=n,N={...n,orientation:M,collapsedSize:v},W=(t=>{const{orientation:e,classes:n}=t,i={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return(0,a.A)(i,w.E,n)})(N),_=(0,l.A)(),F=(0,s.A)(),L=i.useRef(null),U=i.useRef(),q="number"==typeof v?`${v}px`:v,B="horizontal"===M,G=B?"width":"height",J=i.useRef(null),K=(0,y.A)(e,J),O=t=>e=>{if(t){const n=J.current;void 0===e?t(n):t(n,e)}},P=()=>L.current?L.current[B?"clientWidth":"clientHeight"]:0,Q=O((t,e)=>{L.current&&B&&(L.current.style.position="absolute"),t.style[G]=q,S&&S(t,e)}),V=O((t,e)=>{const n=P();L.current&&B&&(L.current.style.position="");const{duration:i,easing:o}=(0,h.c)({style:I,timeout:T,easing:b},{mode:"enter"});if("auto"===T){const e=_.transitions.getAutoHeightDuration(n);t.style.transitionDuration=`${e}ms`,U.current=e}else t.style.transitionDuration="string"==typeof i?i:`${i}ms`;t.style[G]=`${n}px`,t.style.transitionTimingFunction=o,$&&$(t,e)}),X=O((t,e)=>{t.style[G]="auto",z&&z(t,e)}),Y=O(t=>{t.style[G]=`${P()}px`,R&&R(t)}),Z=O(j),tt=O(t=>{const e=P(),{duration:n,easing:i}=(0,h.c)({style:I,timeout:T,easing:b},{mode:"exit"});if("auto"===T){const n=_.transitions.getAutoHeightDuration(e);t.style.transitionDuration=`${n}ms`,U.current=n}else t.style.transitionDuration="string"==typeof n?n:`${n}ms`;t.style[G]=q,t.style.transitionTimingFunction=i,D&&D(t)});return(0,g.jsx)(k,{in:C,onEnter:Q,onEntered:X,onEntering:V,onExit:Y,onExited:Z,onExiting:tt,addEndListener:t=>{"auto"===T&&F.start(U.current||0,t),d&&d(J.current,t)},nodeRef:J,timeout:"auto"===T?null:T,...H,children:(t,{ownerState:e,...n})=>(0,g.jsx)(m,{as:E,className:(0,o.A)(W.root,A,{entered:W.entered,exited:!C&&"0px"===q&&W.hidden}[t]),style:{[B?"minWidth":"minHeight"]:q,...I},ref:K,ownerState:{...N,state:t},...n,children:(0,g.jsx)(x,{ownerState:{...N,state:t},className:W.wrapper,ref:L,children:(0,g.jsx)(f,{ownerState:{...N,state:t},className:W.wrapperInner,children:p})})})})});A&&(A.muiSupportAuto=!0);const v=A},71181:(t,e,n)=>{n.r(e),n.d(e,{collapseClasses:()=>o.A,default:()=>i.A,getCollapseUtilityClass:()=>o.E});var i=n(54898),o=n(31760)}}]);
//# sourceMappingURL=1181.f597ed44.chunk.js.map