"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue");function l(n,r,a){function u(o){let e=o.target;e.shadowRoot&&o.composed&&(e=o.composedPath()[0]||e);const i=[n[0]?.value,n[1]?.value?.getPopupElement()];r.value&&i.every(t=>t&&!t.contains(e)&&t!==e)&&a(!1)}s.onMounted(()=>{window.addEventListener("mousedown",u)}),s.onBeforeUnmount(()=>{window.removeEventListener("mousedown",u)})}exports.default=l;
