import{getAllAffectedNodes as t}from"./utils/all-affected.js";import{toArray as e}from"./utils/array.js";var r=function(t){return Boolean(e(t.querySelectorAll("iframe")).some((function(t){return t===document.activeElement})))},n=function(e){var n=document&&document.activeElement;return!(!n||n.dataset&&n.dataset.focusGuard)&&t(e).reduce((function(t,e){return t||e.contains(n)||r(e)}),!1)};export{n as focusInside};
//# sourceMappingURL=focusInside.js.map
