"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("vue"),C=require("../utils/legacyUtil.js"),F=(s,f,{treeNodeFilterProp:v,filterTreeNode:n,fieldNames:h})=>m.computed(()=>{const{children:c}=h.value,u=f.value,g=v?.value;if(!u||n.value===!1)return s.value;let r;if(typeof n.value=="function")r=n.value;else{const t=u.toUpperCase();r=(i,l)=>{const e=l[g];return String(e).toUpperCase().includes(t)}}function a(t,i=!1){const l=[];for(let e=0,y=t.length;e<y;e++){const o=t[e],S=o[c],d=i||r(u,C.fillLegacyProps(o)),p=a(S||[],d);(d||p.length)&&l.push({...o,[c]:p})}return l}return a(s.value)});exports.default=F;
