PageSourceSearch

https://donatex.gg/assets/Collapse-BUlNtIlA.js

js donatex.gg collected 2026-10-08 05:52:49 UTC 3,650 bytes, 1 lines download raw bytes

1import{p as _,q as tt,r as y,t as et,b7 as nt,b8 as it,u as ot,b9 as rt,aB as st,j as E,v as at,w as lt,s as S,y as pt,ba as N}from"./index-CuWjzpqd.js";function dt(n){return _("MuiCollapse",n)}tt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ct=n=>{const{orientation:e,classes:r}=n,h={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return lt(h,dt,r)},ut=S("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(n,e)=>{const{ownerState:r}=n;return[e.root,e[r.orientation],r.state==="entered"&&e.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&e.hidden]}})(pt(({theme:n})=>({height:0,overflow:"hidden",transition:n.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:n.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"}}]}))),ht=S("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(n,e)=>e.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),mt=S("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(n,e)=>e.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),P=y.forwardRef(function(e,r){const h=et({props:e,name:"MuiCollapse"}),{addEndListener:R,children:U,className:A,collapsedSize:m="0px",component:L,easing:T,in:D,onEnter:$,onEntered:W,onEntering:b,onExit:j,onExited:q,onExiting:I,orientation:M="vertical",style:v,timeout:s=nt.standard,TransitionComponent:B=it,...O}=h,f={...h,orientation:M,collapsedSize:m},p=ct(f),F=ot(),k=rt(),a=y.useRef(null),C=y.useRef(),g=typeof m=="number"?`${m}px`:m,d=M==="horizontal",c=d?"width":"height",w=y.useRef(null),G=st(r,w),l=t=>i=>{if(t){const o=w.current;i===void 0?t(o):t(o,i)}},z=()=>a.current?a.current[d?"clientWidth":"clientHeight"]:0,J=l((t,i)=>{a.current&&d&&(a.current.style.position="absolute"),t.style[c]=g,$&&$(t,i)}),K=l((t,i)=>{const o=z();a.current&&d&&(a.current.style.position="");const{duration:u,easing:x}=N({style:v,timeout:s,easing:T},{mode:"enter"});if(s==="auto"){const H=F.transitions.getAutoHeightDuration(o);t.style.transitionDuration=`${H}ms`,C.current=H}else t.style.transitionDuration=typeof u=="string"?u:`${u}ms`;t.style[c]=`${o}px`,t.style.transitionTimingFunction=x,b&&b(t,i)}),Q=l((t,i)=>{t.style[c]="auto",W&&W(t,i)}),V=l(t=>{t.style[c]=`${z()}px`,j&&j(t)}),X=l(q),Y=l(t=>{const i=z(),{duration:o,easing:u}=N({style:v,timeout:s,easing:T},{mode:"exit"});if(s==="auto"){const x=F.transitions.getAutoHeightDuration(i);t.style.transitionDuration=`${x}ms`,C.current=x}else t.style.transitionDuration=typeof o=="string"?o:`${o}ms`;t.style[c]=g,t.style.transitionTimingFunction=u,I&&I(t)}),Z=t=>{s==="auto"&&k.start(C.current||0,t),R&&R(w.current,t)};return E.jsx(B,{in:D,onEnter:J,onEntered:Q,onEntering:K,onExit:V,onExited:X,onExiting:Y,addEndListener:Z,nodeRef:w,timeout:s==="auto"?null:s,...O,children:(t,{ownerState:i,...o})=>E.jsx(ut,{as:L,className:at(p.root,A,{entered:p.entered,exited:!D&&g==="0px"&&p.hidden}[t]),style:{[d?"minWidth":"minHeight"]:g,...v},ref:G,ownerState:{...f,state:t},...o,children:E.jsx(ht,{ownerState:{...f,state:t},className:p.wrapper,ref:a,children:E.jsx(mt,{ownerState:{...f,state:t},className:p.wrapperInner,children:U})})})})});P&&(P.muiSupportAuto=!0);export{P as C};

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.