{"version":3,"sources":["../../../../src/elements/useWindowFocus/index.ts"],"sourcesContent":["\"use client\";\nimport { useScope } from \"@usels/core\";\nimport { createWindowFocus } from \"./core\";\n\nexport { createWindowFocus } from \"./core\";\nexport type { UseWindowFocusReturn } from \"./core\";\n\n/**\n * Tracks whether the browser window currently has focus as a reactive\n * `Observable<boolean>`. Updates automatically on focus/blur events.\n * SSR-safe: returns `false` when `document` is not available.\n */\nexport type UseWindowFocus = typeof createWindowFocus;\nexport const useWindowFocus: UseWindowFocus = () => {\n  return useScope(() => createWindowFocus());\n};\n"],"mappings":";AACA,SAAS,gBAAgB;AACzB,SAAS,yBAAyB;AAElC,SAAS,qBAAAA,0BAAyB;AAS3B,MAAM,iBAAiC,MAAM;AAClD,SAAO,SAAS,MAAM,kBAAkB,CAAC;AAC3C;","names":["createWindowFocus"]}