import e from"../../vc-util/devWarning.mjs";import{customRenderSlot as t}from"../../_util/vnode.mjs";import{EXPAND_COLUMN as n}from"../../vc-table/constant.mjs";import{SELECTION_COLUMN as r}from"./useSelection.mjs";function i(a,o){let s=o.value;return a.map(a=>{if(a===r||a===n)return a;let c={...a},{slots:l={}}=c;return c.__originColumn__=a,e(!(`slots`in c),`Table`,"`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(l).forEach(e=>{let t=l[e];c[e]===void 0&&s[t]&&(c[e]=s[t])}),o.value.headerCell&&!a.slots?.title&&(c.title=t(o.value,`headerCell`,{title:a.title,column:a},()=>[a.title])),`children`in c&&Array.isArray(c.children)&&(c.children=i(c.children,o)),c})}function a(e){return[t=>i(t,e)]}export{a as default};