const e=require(`./sessions-Bc5xPyOc.cjs`),t=require(`./common-D4jVmSdJ.cjs`);function n(n){let r=n.to?.trim()??``,i=(n.allowFrom??[]).map(e=>String(e).trim()).filter(Boolean),a=i.includes(`*`),o=i.filter(e=>e!==`*`).map(t=>e.ws(t)).filter(e=>!!e);if(r){let n=e.ws(r);return n&&(e.Cs(n)||a||o.length===0||o.includes(n))?{ok:!0,to:n}:{ok:!1,error:t.m(`WhatsApp`,`<E.164|group JID>`)}}return{ok:!1,error:t.m(`WhatsApp`,`<E.164|group JID>`)}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
