import{customRenderSlot as d}from"../../_util/vnode.mjs";import"vue";import"../../vc-table/context/StickyContext.mjs";import"lodash-es/fromPairs";import"../../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs";import"../../_util/supportsPassive.mjs";import"../../_util/raf.mjs";import f from"../../vc-util/devWarning.mjs";import"../../vc-table/Panel/index.mjs";import{EXPAND_COLUMN as m}from"../../vc-table/constant.mjs";import{SELECTION_COLUMN as p}from"./useSelection.mjs";function a(l,i){const t=i.value;return l.map(r=>{if(r===p||r===m)return r;const e={...r},{slots:s={}}=e;return e.__originColumn__=r,f(!("slots"in e),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(s).forEach(o=>{const n=s[o];e[o]===void 0&&t[n]&&(e[o]=t[n])}),i.value.headerCell&&!r.slots?.title&&(e.title=d(i.value,"headerCell",{title:r.title,column:r},()=>[r.title])),"children"in e&&Array.isArray(e.children)&&(e.children=a(e.children,i)),e})}function L(l){return[t=>a(t,l)]}export{L as default};
