var l={transform(u,r,a){return u?r?u.filter(t=>{let n,o,s;for(let f=0;f<a.length;f++)if(t[a[f]]){if(typeof t[a[f]]=="object"){for(const e of t[a[f]]){if(e.texto&&e.texto.toLowerCase().search(r.toLowerCase())!==-1){e.flag=!0,o=!0,e.key=r.toLowerCase(),t.messageSearch=e;break}if(e.text&&e.text.toLowerCase().search(r.toLowerCase())!==-1){o=!0,e.flag=!0,e.key=r.toLowerCase(),t.messageSearch=e;break}}if(o)break}if(typeof t[a[f]]=="number"&&t[a[f]]==r){s=!0;break}if(typeof t[a[f]]=="string"&&t[a[f]].toLowerCase().indexOf(r.toLowerCase())!==-1){n=!0;break}}if(n||o||s)return!0}):u:[]}};export{l as F};
