Build 533169stable
Module 350723
1,057 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{GP:()=>p,R:()=>l,Ts:()=>f,XC:()=>o,_c:()=>d,t2:()=>_,tV:()=>c});var r=n(735438),i=n(73153),s=n(475815),a=n(365971);function o(e,t){i.h.dispatch({type:"WINDOW_FOCUS",windowId:(0,a.Q2)(e),focused:t})}function l(e){i.h.dispatch({type:"WINDOW_HIDDEN",windowId:(0,a.Q2)(e)})}let u=(0,r.memoize)(e=>(0,r.debounce)((t,n)=>{i.h.dispatch({type:"WINDOW_RESIZED",windowId:e,width:t,height:n})},100));function c(e){u((0,a.Q2)(e))(e.innerWidth,e.innerHeight)}function d(e){let t=(0,a.Q2)(e);i.h.dispatch({type:"WINDOW_FULLSCREEN_CHANGE",windowId:t,isElementFullscreen:(0,s._U)(null,e.document)})}function _(e){let t=(0,a.Q2)(e);i.h.dispatch({type:"WINDOW_VISIBILITY_CHANGE",windowId:t,visible:"visible"===e.document.visibilityState})}function f(e){let t=(0,a.Q2)(e),n=e.document;i.h.dispatch({type:"WINDOW_INIT",windowId:t,isElementFullscreen:(0,s._U)(null,n),focused:n.hasFocus(),width:e.innerWidth,height:e.innerHeight,visible:"visible"===n.visibilityState})}function p(e){i.h.dispatch({type:"WINDOW_UNLOAD",windowId:(0,a.Q2)(e)})}}