"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../_util/props-util/index.js"),C=require("../_util/util.js");function h(n,e){return"key"in n&&n.key!==void 0&&n.key!==null?n.key:n.dataIndex?Array.isArray(n.dataIndex)?n.dataIndex.join("."):n.dataIndex:e}function k(n,e){return e?`${e}-${n}`:`${n}`}function T(n,e){return typeof n=="function"?n(e):n}function d(n=[]){const e=p.flattenChildren(n),c=[];return e.forEach(t=>{if(!t)return;const u=t.key,f=t.props?.style||{},l=t.props?.class||"",o=t.props||{};for(const[i,y]of Object.entries(o))o[C.camelize(i)]=y;const{default:s,...a}=t.children||{},r={...a,...o,style:f,class:l};if(u&&(r.key=u),t.type?.__ANT_TABLE_COLUMN_GROUP)r.children=d(typeof s=="function"?s():s);else{const i=t.children?.default;r.customRender=r.customRender||i}c.push(r)}),c}exports.convertChildrenToColumns=d;exports.getColumnKey=h;exports.getColumnPos=k;exports.renderColumnTitle=T;
