!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1d8c7179-4ba9-3aba-9d40-435b3d7a95ae")}catch(e){}}(); define(["exports","./e_file_viewer_static_scl_page_folder","./c_gen_api_auth_WebAuthWeb","react","./c_flux_action_type","./e_core_exception","./c_src_sink_index","./c_init_data_debug_panel","./c_lodash-es_lodash","./c_api_v2_routes_team_provider","./e_edison","./c_pap-events_enums_flexible_sharing_entry_point_variant-utils","./c_pap-events_browse_view_folder_picker","./e_data_modules_stormcrow","./c_react-use_misc_util","./c_core_i18n","metaserver/static/js/langpack","./c_core_notify","react-dom"],(function(e,t,i,s,r,o,c,n,a,h,d,v,p,_,u,m,I,l,y){"use strict";const A=["keypress","keydown","click","contextmenu","dblclick","mousemove","scroll","touchmove","touchstart"];var R;!function(e){e[e.Standard=1]="Standard",e[e.Advanced=2]="Advanced"}(R||(R={}));class F{constructor(e){this.userReportedActive=!1,this.userIsActive=!1,this.userMouseIsInFrame=!1,this.attachedFrames=[],this.activityReportMode=R.Advanced,this.activityReportInSec=5,this.detectFramesInSec=-1,this.onActivity=()=>{},this.onEnterFrame=()=>{},this.onReportUserIsActive=()=>{},this.onReportUserIsIdle=()=>{},this.attachListenerToNewFrames=()=>{const e=Array.prototype.slice.call(window.document.getElementsByTagName("frame")),t=Array.prototype.slice.call(window.document.getElementsByTagName("iframe")),i=e.concat(t);for(const e of i)this.attachedFrames.indexOf(e)<0&&(e.addEventListener("mouseenter",this.onMouseEntersFrame.bind(this),this,!1),this.attachedFrames.push(e),this.userMouseIsInFrame=!0)},this.onUserActivity=()=>{this.onActivity(),this.userIsActive=!0,this.activityReportMode!==R.Advanced||this.userReportedActive||this.reportActivity(),this.userMouseIsInFrame=!1},this.overrideDefaultsWithOptions(e),A.forEach((e=>{window.addEventListener(e,this.onUserActivity,!1)})),setInterval(this.onTimerTick.bind(this),1e3*this.activityReportInSec),this.detectFramesInSec>0&&setInterval(this.attachListenerToNewFrames,1e3*this.detectFramesInSec),this.reportActivity()}onMouseEntersFrame(){this.onEnterFrame(),this.userMouseIsInFrame=!0}onTimerTick(){this.userReportedActive=!1,this.activityReportMode===R.Standard&&this.userIsActive||this.userMouseIsInFrame&&this.isPageVisible()?this.reportActivity():this.onReportUserIsIdle()}reportActivity(){this.onReportUserIsActive(),this.userReportedActive=!0,this.userIsActive=!1}overrideDefaultsWithOptions(e){this.activityReportInSec=e.activityReportInSec||this.activityReportInSec,this.activityReportMode=e.activityReportMode||this.activityReportMode,this.detectFramesInSec=e.detectFramesInSec||this.detectFramesInSec,this.onActivity=e.onActivity||this.onActivity,this.onEnterFrame=e.onEnterFrame||this.onEnterFrame,this.onReportUserIsActive=e.onReportUserIsActive||this.onReportUserIsActive,this.onReportUserIsIdle=e.onReportUserIsIdle||this.onReportUserIsIdle}isPageVisible(){return"hidden"!==window.document.visibilityState}}const f=30;e.initialize_module=function({activityReportInSec:e}){!function(e){new F({onReportUserIsActive:()=>{t.SilentBackgroundRequest({url:i.GetUrlForRefreshIdleSessionCookie(),data:{}})},activityReportInSec:e,detectFramesInSec:f})}(e)}})); //# sourceMappingURL=c_teams_idle_timeout_pagelet.after-display.js-vfl6gDZSk.map //# debugId=1d8c7179-4ba9-3aba-9d40-435b3d7a95ae