const e=require("../../vc-util/devWarning.js"),t=require("../../_util/vnode.js"),n=require("../../vc-table/constant.js"),r=require("./useSelection.js");function i(a,o){let s=o.value;return a.map(a=>{if(a===r.SELECTION_COLUMN||a===n.EXPAND_COLUMN)return a;let c={...a},{slots:l={}}=c;return c.__originColumn__=a,e.default(!(`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.customRenderSlot(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)]}exports.default=a;