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