import{bU as ee,bV as te,bX as S,bS as o,r as y,c1 as ne,ee as ie,ef as oe,c3 as re,eg as se,eh as ae,bN as le,j as x,bW as de,c5 as pe,ei as H,b8 as ue,b9 as ce}from"./index-BbiZcFRx.js";function he(n){return te("MuiCollapse",n)}ee("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const fe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],xe=n=>{const{orientation:t,classes:r}=n,p={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return pe(p,he,r)},ge=S("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(n,t)=>{const{ownerState:r}=n;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:n,ownerState:t})=>o({height:0,overflow:"hidden",transition:n.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:n.transitions.create("width")},t.state==="entered"&&o({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),me=S("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(n,t)=>t.wrapper})(({ownerState:n})=>o({display:"flex",width:"100%"},n.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ee=S("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(n,t)=>t.wrapperInner})(({ownerState:n})=>o({width:"100%"},n.orientation==="horizontal"&&{width:"auto",height:"100%"})),ve=y.forwardRef(function(t,r){const p=ne({props:t,name:"MuiCollapse"}),{addEndListener:D,children:L,className:U,collapsedSize:g="0px",component:q,easing:T,in:j,onEnter:M,onEntered:$,onEntering:W,onExit:_,onExited:A,onExiting:I,orientation:N="vertical",style:C,timeout:a=ie.standard,TransitionComponent:O=oe}=p,V=re(p,fe),m=o({},p,{orientation:N,collapsedSize:g}),u=xe(m),P=se(),X=ae(),l=y.useRef(null),z=y.useRef(),E=typeof g=="number"?`${g}px`:g,c=N==="horizontal",h=c?"width":"height",v=y.useRef(null),k=le(r,v),d=e=>i=>{if(e){const s=v.current;i===void 0?e(s):e(s,i)}},R=()=>l.current?l.current[c?"clientWidth":"clientHeight"]:0,B=d((e,i)=>{l.current&&c&&(l.current.style.position="absolute"),e.style[h]=E,M&&M(e,i)}),G=d((e,i)=>{const s=R();l.current&&c&&(l.current.style.position="");const{duration:f,easing:w}=H({style:C,timeout:a,easing:T},{mode:"enter"});if(a==="auto"){const F=P.transitions.getAutoHeightDuration(s);e.style.transitionDuration=`${F}ms`,z.current=F}else e.style.transitionDuration=typeof f=="string"?f:`${f}ms`;e.style[h]=`${s}px`,e.style.transitionTimingFunction=w,W&&W(e,i)}),J=d((e,i)=>{e.style[h]="auto",$&&$(e,i)}),K=d(e=>{e.style[h]=`${R()}px`,_&&_(e)}),Q=d(A),Y=d(e=>{const i=R(),{duration:s,easing:f}=H({style:C,timeout:a,easing:T},{mode:"exit"});if(a==="auto"){const w=P.transitions.getAutoHeightDuration(i);e.style.transitionDuration=`${w}ms`,z.current=w}else e.style.transitionDuration=typeof s=="string"?s:`${s}ms`;e.style[h]=E,e.style.transitionTimingFunction=f,I&&I(e)}),Z=e=>{a==="auto"&&X.start(z.current||0,e),D&&D(v.current,e)};return x.jsx(O,o({in:j,onEnter:B,onEntered:J,onEntering:G,onExit:K,onExited:Q,onExiting:Y,addEndListener:Z,nodeRef:v,timeout:a==="auto"?null:a},V,{children:(e,i)=>x.jsx(ge,o({as:q,className:de(u.root,U,{entered:u.entered,exited:!j&&E==="0px"&&u.hidden}[e]),style:o({[c?"minWidth":"minHeight"]:E},C),ref:k},i,{ownerState:o({},m,{state:e}),children:x.jsx(me,{ownerState:o({},m,{state:e}),className:u.wrapper,ref:l,children:x.jsx(Ee,{ownerState:o({},m,{state:e}),className:u.wrapperInner,children:L})})}))}))});ve.muiSupportAuto=!0;var b={},we=ce;Object.defineProperty(b,"__esModule",{value:!0});var ye=b.default=void 0,Ce=we(ue()),ze=x;ye=b.default=(0,Ce.default)((0,ze.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");export{ve as C,ye as d};
//# sourceMappingURL=ExpandMore-DzP0_5R5.js.map