{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/V9ryrjN5Am9WM1dJeyyJ/9mrJHeWj7rhvLTLu7Yzt/UsePageVisibility.js"],
  "sourcesContent": ["import{useState,useEffect}from\"react\";export const isBrowser=()=>typeof document===\"object\";export function getBrowserVisibilityProp(){if(!isBrowser())return;if(typeof document.hidden!==\"undefined\"){// Opera 12.10 and Firefox 18 and later support\nreturn\"visibilitychange\";}else if(typeof document.msHidden!==\"undefined\"){return\"msvisibilitychange\";}else if(typeof document.webkitHidden!==\"undefined\"){return\"webkitvisibilitychange\";}}export function getBrowserDocumentHiddenProp(){if(!isBrowser())return;if(typeof document.hidden!==\"undefined\"){return\"hidden\";}else if(typeof document.msHidden!==\"undefined\"){return\"msHidden\";}else if(typeof document.webkitHidden!==\"undefined\"){return\"webkitHidden\";}}export function getIsDocumentHidden(){if(!isBrowser())return;return!document[getBrowserDocumentHiddenProp()];}export function usePageVisibility(){if(!isBrowser())return;const[isVisible,setIsVisible]=useState(getIsDocumentHidden());const onVisibilityChange=()=>setIsVisible(getIsDocumentHidden());useEffect(()=>{const visibilityChange=getBrowserVisibilityProp();document.addEventListener(visibilityChange,onVisibilityChange,false);return()=>{document.removeEventListener(visibilityChange,onVisibilityChange);};});return isVisible;}\nexport const __FramerMetadata__ = {\"exports\":{\"getBrowserVisibilityProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getIsDocumentHidden\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePageVisibility\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isBrowser\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getBrowserDocumentHiddenProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UsePageVisibility.map"],
  "mappings": "yFAAAA,IAA6C,IAAMC,EAAU,IAAI,OAAO,UAAW,SAAgB,SAASC,GAA0B,CAAC,GAAID,EAAU,EAAS,IAAG,OAAO,SAAS,OAAS,IAC1L,MAAM,mBAAyB,GAAG,OAAO,SAAS,SAAW,IAAa,MAAM,qBAA2B,GAAG,OAAO,SAAS,aAAe,IAAa,MAAM,yBAA0B,CAAQ,SAASE,GAA8B,CAAC,GAAIF,EAAU,EAAS,IAAG,OAAO,SAAS,OAAS,IAAa,MAAM,SAAe,GAAG,OAAO,SAAS,SAAW,IAAa,MAAM,WAAiB,GAAG,OAAO,SAAS,aAAe,IAAa,MAAM,eAAgB,CAAQ,SAASG,GAAqB,CAAC,GAAIH,EAAU,EAAS,MAAM,CAAC,SAASE,EAA6B,CAAC,CAAE,CAAQ,SAASE,GAAmB,CAAC,GAAG,CAACJ,EAAU,EAAE,OAAO,GAAK,CAACK,EAAUC,CAAY,EAAEC,EAASJ,EAAoB,CAAC,EAAQK,EAAmB,IAAIF,EAAaH,EAAoB,CAAC,EAAE,OAAAM,EAAU,IAAI,CAAC,IAAMC,EAAiBT,EAAyB,EAAE,gBAAS,iBAAiBS,EAAiBF,EAAmB,EAAK,EAAQ,IAAI,CAAC,SAAS,oBAAoBE,EAAiBF,CAAkB,CAAE,CAAE,CAAC,EAASH,CAAU",
  "names": ["init_ssg_sandbox_shims", "isBrowser", "getBrowserVisibilityProp", "getBrowserDocumentHiddenProp", "getIsDocumentHidden", "usePageVisibility", "isVisible", "setIsVisible", "ye", "onVisibilityChange", "ue", "visibilityChange"]
}
