"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("lodash-unified"),u=require("vue"),a=require("../../utils.js");function s(e,r){const n=[];for(const t of r){const i=e.find(l=>l.key===t.key);if(t.children?.length){const l=s(i.children,t.children);l.length&&n.push({...i,fixed:t.fixed,children:l})}else{if(!t.show)continue;n.push({...i,fixed:t.fixed})}}return n}function c(e){return o.cloneDeepWith(e,(r,n)=>{if(n==="label")return r})}function d(e,r){const n=e.title,t=o.isArray(n)?n[0]:n;return u.isVNode(t)?t:a.getTableTitle(e,r?.className||"",void 0,r?.color)}function f(e){return u.isVNode(e)?e:o.isArray(e)?e[0]:e}function g(e){function r(n){const t={};return n.forEach((i,l)=>{t[i.key]={...o.omit(i,["label","key","children"]),order:l,children:i.children?.length?r(i.children):void 0}}),t}return r(e)}function h(e,r){return o.isEqualWith(e,r,(n,t,i)=>{if(i==="label")return!0})}exports.customCloneColumnStates=c;exports.default=s;exports.getColumnStateString=g;exports.getLabelNode=d;exports.getLabelRenderNode=f;exports.isEqualColumnStateIgnoreLabel=h;
