const e=require("../../../_util/vue-types/index.js");let t=require("vue");var n=(0,t.defineComponent)({compatConfig:{MODE:3},name:`ATabPane`,inheritAttrs:!1,__ANT_TAB_PANE:!0,props:{tab:e.default.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}},slots:Object,setup(e,{attrs:n,slots:r}){let i=(0,t.ref)(e.forceRender);(0,t.watch)([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?i.value=!0:e.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});let a=(0,t.computed)(()=>e.active?{}:e.animated?{visibility:`hidden`,height:0,overflowY:`hidden`}:{display:`none`});return()=>{let{prefixCls:o,forceRender:s,id:c,active:l,tabKey:u}=e;return(0,t.createVNode)(`div`,{id:c&&`${c}-panel-${u}`,role:`tabpanel`,tabindex:l?0:-1,"aria-labelledby":c&&`${c}-tab-${u}`,"aria-hidden":!l,style:[a.value,n.style],class:[`${o}-tabpane`,l&&`${o}-tabpane-active`,n.class]},[(l||i.value||s)&&r.default?.()])}}});exports.default=n;