class t{static filterVirtualOptions(t,e,s,r,o,i,l){if(0===e.length&&s.length>0)return{filteredItems:[...s],showNoResults:!1};if(!e||0===e.length)return{filteredItems:[],showNoResults:!0};if(!t||""===t.trim())return{filteredItems:[...e],showNoResults:!1};const u=t.toLowerCase(),f=l||r,n=e.filter((t=>{const e=f(t).toLowerCase(),s=o(t);return i&&s?e.includes(u)||s.includes(u):e.includes(u)}));return{filteredItems:n,showNoResults:0===n.length}}}export{t as V};
