import{useProvideSummary as e}from"../context/SummaryContext.mjs";import{useInjectTable as t}from"../context/TableContext.mjs";import n from"./Cell.mjs";import r from"./Row.mjs";import i from"./Summary.mjs";import{computed as a,createVNode as o,defineComponent as s,reactive as c,toRef as l}from"vue";var u=s({name:`TableFooter`,inheritAttrs:!1,props:[`stickyOffsets`,`flattenColumns`],setup(n,{slots:r}){let i=t();return e(c({stickyOffsets:l(n,`stickyOffsets`),flattenColumns:l(n,`flattenColumns`),scrollColumnIndex:a(()=>{let e=n.flattenColumns.length-1;return n.flattenColumns[e]?.scrollbar?e:null})})),()=>{let{prefixCls:e}=i;return o(`tfoot`,{class:`${e}-summary`},[r.default?.()])}}}),d=i;export{d as FooterComponents,n as SummaryCell,r as SummaryRow,u as default};