1import{D as e,N as t,b as n}from"./Ssl5WjxV.js";import{c as r,i}from"./C4CXnTcG.js";import{D as a,O as o,S as s,d as c,f as l,h as u,k as d,l as f,y as p}from"./CJcG5UPG.js";import{o as m,r as h}from"./Bq_TObDB.js";var g=t(e());function _(e){return o(`MuiCollapse`,e)}a(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var v=t(n()),y=e=>{let{orientation:t,classes:n}=e;return p({root:[`root`,`${t}`],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,`${t}`],wrapperInner:[`wrapperInner`,`${t}`]},_,n)},b=u(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(l(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),x=u(`div`,{name:`MuiCollapse`,slot:`Wrapper`,overridesResolver:(e,t)=>t.wrapper})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),S=u(`div`,{name:`MuiCollapse`,slot:`WrapperInner`,overridesResolver:(e,t)=>t.wrapperInner})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),C=g.forwardRef(function(e,t){let n=c({props:e,name:`MuiCollapse`}),{addEndListener:a,children:o,className:l,collapsedSize:u=`0px`,component:p,easing:_,in:C,onEnter:w,onEntered:T,onEntering:E,onExit:D,onExited:O,onExiting:k,orientation:A=`vertical`,style:j,timeout:M=r.standard,TransitionComponent:N=m,...P}=n,F={...n,orientation:A,collapsedSize:u},I=y(F),L=i(),R=s(),z=g.useRef(null),B=g.useRef(),V=typeof u==`number`?`${u}px`:u,H=A===`horizontal`,U=H?`width`:`height`,W=g.useRef(null),G=f(t,W),K=e=>t=>{if(e){let n=W.current;t===void 0?e(n):e(n,t)}},q=()=>z.current?z.current[H?`clientWidth`:`clientHeight`]:0,J=K((e,t)=>{z.current&&H&&(z.current.style.position=`absolute`),e.style[U]=V,w&&w(e,t)}),Y=K((e,t)=>{let n=q();z.current&&H&&(z.current.style.position=``);let{duration:r,easing:i}=h({style:j,timeout:M,easing:_},{mode:`enter`});if(M===`auto`){let t=L.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,B.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[U]=`${n}px`,e.style.transitionTimingFunction=i,E&&E(e,t)}),X=K((e,t)=>{e.style[U]=`auto`,T&&T(e,t)}),Z=K(e=>{e.style[U]=`${q()}px`,D&&D(e)}),Q=K(O),$=K(e=>{let t=q(),{duration:n,easing:r}=h({style:j,timeout:M,easing:_},{mode:`exit`});if(M===`auto`){let n=L.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,B.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[U]=V,e.style.transitionTimingFunction=r,k&&k(e)});return(0,v.jsx)(N,{in:C,onEnter:J,onEntered:X,onEntering:Y,onExit:Z,onExited:Q,onExiting:$,addEndListener:e=>{M===`auto`&&R.start(B.current||0,e),a&&a(W.current,e)},nodeRef:W,timeout:M===`auto`?null:M,...P,children:(e,{ownerState:t,...n})=>(0,v.jsx)(b,{as:p,className:d(I.root,l,{entered:I.entered,exited:!C&&V===`0px`&&I.hidden}[e]),style:{[H?`minWidth`:`minHeight`]:V,...j},ref:G,ownerState:{...F,state:e},...n,children:(0,v.jsx)(x,{ownerState:{...F,state:e},className:I.wrapper,ref:z,children:(0,v.jsx)(S,{ownerState:{...F,state:e},className:I.wrapperInner,children:o})})})})});C&&(C.muiSupportAuto=!0);export{C as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.