function c(c){const n=n=>{if(!c.isOpen())return;const t=n.target;if(!c.host.contains(t)){c.onClose()}};const t=()=>document.addEventListener("click",n);const o=()=>document.removeEventListener("click",n);return{connect:t,disconnect:o}}export{c};
//# sourceMappingURL=p-4ef5a884.js.map