import{u as r}from"./main-Bfm0Ar4t.js";function d(e){return r.getState().guests.find(t=>t.id===e)}function m(e){return r.getState().guests.find(t=>t.card_number===e)}function f(e){const s=r.getState().guests,t=e.toLowerCase().trim();return t?s.filter(n=>{var u,o;const a=n.name.toLowerCase().includes(t),c=(u=n.card_number)==null?void 0:u.toLowerCase().includes(t),i=(o=n.phone)==null?void 0:o.includes(t);return a||c||i}).slice(0,50):[]}export{m as a,d as g,f as s};
