const e=require("../utils/legacyUtil.js");let t=require("vue");var n=(n,r,{treeNodeFilterProp:i,filterTreeNode:a,fieldNames:o})=>(0,t.computed)(()=>{let{children:t}=o.value,s=r.value,c=i?.value;if(!s||a.value===!1)return n.value;let l;if(typeof a.value==`function`)l=a.value;else{let e=s.toUpperCase();l=(t,n)=>{let r=n[c];return String(r).toUpperCase().includes(e)}}function u(n,r=!1){let i=[];for(let a=0,o=n.length;a<o;a++){let o=n[a],c=o[t],d=r||l(s,e.fillLegacyProps(o)),f=u(c||[],d);(d||f.length)&&i.push({...o,[t]:f})}return i}return u(n.value)});exports.default=n;