/* esm.sh - @radix-ui/react-focus-guards@1.1.1 */
"use client";import*as o from"../../../../react@19.3.1/es2022/react.mjs";var t=0;function u(e){return a(),e.children}function a(){o.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??n()),document.body.insertAdjacentElement("beforeend",e[1]??n()),t++,()=>{t===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),t--}},[])}function n(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var c=u;export{u as FocusGuards,c as Root,a as useFocusGuards};
//# sourceMappingURL=react-focus-guards.mjs.map