import{a0 as m,dh as u,d as f,Z as i,di as g,aa as v,a2 as C,a3 as o,bu as R,a4 as l,a5 as T,dj as b}from"./index-9PRMimni.js";const x=m("collapse-transition",{width:"100%"},[u()]),w=Object.assign(Object.assign({},o.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),_=f({name:"CollapseTransition",props:w,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:a,inlineThemeDisabled:t,mergedRtlRef:r}=C(e),d=o("CollapseTransition","-collapse-transition",x,b,e,a),c=R("CollapseTransition",r,a),h=l(()=>e.collapsed!==void 0?e.collapsed:e.show),n=l(()=>{const{self:{bezier:p}}=d.value;return{"--n-bezier":p}}),s=t?T("collapse-transition",void 0,n,e):void 0;return{rtlEnabled:c,mergedShow:h,mergedClsPrefix:a,cssVars:t?void 0:n,themeClass:s?.themeClass,onRender:s?.onRender}},render(){return i(g,{appear:this.appear},{default:()=>{var e;if(this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),i("div",v({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}});export{_,w as c};
