UNPKG

@getontime/cli

Version:

Time keeping for live events

2 lines 1.09 kB
System.register(["./jsx-runtime-legacy-DMkDNnVj.js","./throttle-legacy-mRwvkBID.js"],function(e,t){var n,d,o,r;return{setters:[function(e){n=e.a,d=e.n},function(e){o=e.t}],execute:function(){!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"f14ad0099eab1969fdd065b56af5fdd3cf530de6"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="87d3097e-8979-4d99-8ffd-8a2e77e4fd17",e._sentryDebugIdIdentifier="sentry-dbid-87d3097e-8979-4d99-8ffd-8a2e77e4fd17")}catch(e){}}(),r=n(d(),1),e("t",(e=!1)=>{const[t,n]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let e=null;const t=o(()=>{n(!0),e&&clearTimeout(e),e=setTimeout(()=>n(!1),3e3)},1e3);return t(),document.addEventListener("mousemove",t),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousemove",t),document.removeEventListener("keydown",t),e&&clearTimeout(e)}},[]),t})}}}); //# sourceMappingURL=useFadeOutOnInactivity-legacy-BEtgAp2p.js.map