const e=require("../../../_util/vnode.js"),t=require("../TabContext.js");let n=require("vue");var r=(0,n.defineComponent)({compatConfig:{MODE:3},name:`TabPanelList`,inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(r){let{tabs:i,prefixCls:a}=t.useInjectTabs();return()=>{let{id:t,activeKey:o,animated:s,tabPosition:c,rtl:l,destroyInactiveTabPane:u}=r,d=s.tabPane,f=a.value,p=i.value.findIndex(e=>e.key===o);return(0,n.createVNode)(`div`,{class:`${f}-content-holder`},[(0,n.createVNode)(`div`,{class:[`${f}-content`,`${f}-content-${c}`,{[`${f}-content-animated`]:d}],style:p&&d?{[l?`marginRight`:`marginLeft`]:`-${p}00%`}:null},[i.value.map(n=>e.cloneElement(n.node,{key:n.key,prefixCls:f,tabKey:n.key,id:t,animated:d,active:n.key===o,destroyInactiveTabPane:u}))])])}}});exports.default=r;