import e from"../_util/classNames.mjs";import{collapsePanelProps as t}from"./commonProps.mjs";import{createVNode as n,defineComponent as r,shallowRef as i,watchEffect as a}from"vue";var o=r({compatConfig:{MODE:3},name:`PanelContent`,props:t(),setup(t,{slots:r}){let o=i(!1);return a(()=>{(t.isActive||t.forceRender)&&(o.value=!0)}),()=>{if(!o.value)return null;let{prefixCls:i,isActive:a,role:s}=t;return n(`div`,{class:e(`${i}-content`,{[`${i}-content-active`]:a,[`${i}-content-inactive`]:!a}),role:s},[n(`div`,{class:`${i}-content-box`},[r.default?.()])])}}});export{o as default};