function $AdfUserInactivityTimeoutHelper$$($userInactivityTimeout$$1$$) {
  this.Init($userInactivityTimeout$$1$$);
}
$goog$exportSymbol$$("AdfUserInactivityTimeoutHelper", $AdfUserInactivityTimeoutHelper$$);
$goog$exportSymbol$$("AdfUserInactivityTimeoutHelper", $AdfUserInactivityTimeoutHelper$$);
$AdfObject$$.$createSubclass$($AdfUserInactivityTimeoutHelper$$);
$AdfUserInactivityTimeoutHelper$$.prototype.$registerPollComponent$ = function $$AdfUserInactivityTimeoutHelper$$$$$registerPollComponent$$($component$$2408_componentTimeout$$) {
  $AdfAssert$$.$assertObject$($component$$2408_componentTimeout$$);
  var $clientId$$509$$ = $component$$2408_componentTimeout$$.$getClientId$();
  this.$_componentIDsArray$.push($clientId$$509$$);
  $component$$2408_componentTimeout$$ = $component$$2408_componentTimeout$$.getTimeout();
  if (null == this.$_maxComponentTimeoutInterval$) {
    this.$_maxComponentTimeoutInterval$ = $component$$2408_componentTimeout$$;
  } else {
    if (-1 == $component$$2408_componentTimeout$$ || -1 != this.$_maxComponentTimeoutInterval$ && $component$$2408_componentTimeout$$ > this.$_maxComponentTimeoutInterval$) {
      this.$_maxComponentTimeoutInterval$ = $component$$2408_componentTimeout$$;
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUserInactivityTimeoutHelper.prototype.registerPollComponent", {$registerPollComponent$:$AdfUserInactivityTimeoutHelper$$.prototype.$registerPollComponent$});
$AdfUserInactivityTimeoutHelper$$.prototype.$unregisterPollComponent$ = function $$AdfUserInactivityTimeoutHelper$$$$$unregisterPollComponent$$($clientId$$510_component$$2409_timeoutInterval$$inline_5114$$) {
  $AdfAssert$$.$assertObject$($clientId$$510_component$$2409_timeoutInterval$$inline_5114$$);
  $clientId$$510_component$$2409_timeoutInterval$$inline_5114$$ = $clientId$$510_component$$2409_timeoutInterval$$inline_5114$$.$getClientId$();
  $AdfCollections$$.$removeArrayValue$(this.$_componentIDsArray$, $clientId$$510_component$$2409_timeoutInterval$$inline_5114$$);
  $clientId$$510_component$$2409_timeoutInterval$$inline_5114$$ = this.$_defaultTimeoutInterval$;
  var $componentIds$$inline_5115$$ = this.$_componentIDsArray$, $page$$inline_5116$$ = $AdfPage$$.$PAGE$;
  this.$_maxComponentTimeoutInterval$ = null;
  for (var $i$$inline_5117$$ = 0;$i$$inline_5117$$ < $componentIds$$inline_5115$$.length;$i$$inline_5117$$++) {
    var $component$$inline_5118_tmpTimeoutValue$$inline_5119$$ = $page$$inline_5116$$.$findComponent$($componentIds$$inline_5115$$[$i$$inline_5117$$]);
    if ($component$$inline_5118_tmpTimeoutValue$$inline_5119$$) {
      $component$$inline_5118_tmpTimeoutValue$$inline_5119$$ = $component$$inline_5118_tmpTimeoutValue$$inline_5119$$.getTimeout();
      if (-1 == $component$$inline_5118_tmpTimeoutValue$$inline_5119$$) {
        this.$_maxComponentTimeoutInterval$ = $component$$inline_5118_tmpTimeoutValue$$inline_5119$$;
        break;
      }
      null == this.$_maxComponentTimeoutInterval$ ? this.$_maxComponentTimeoutInterval$ = $component$$inline_5118_tmpTimeoutValue$$inline_5119$$ : $component$$inline_5118_tmpTimeoutValue$$inline_5119$$ > this.$_maxComponentTimeoutInterval$ && (this.$_maxComponentTimeoutInterval$ = $component$$inline_5118_tmpTimeoutValue$$inline_5119$$);
    }
  }
  null != this.$_maxComponentTimeoutInterval$ && ($clientId$$510_component$$2409_timeoutInterval$$inline_5114$$ = this.$_maxComponentTimeoutInterval$);
  this.$_globalTimeoutInterval$ = $clientId$$510_component$$2409_timeoutInterval$$inline_5114$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUserInactivityTimeoutHelper.prototype.unregisterPollComponent", {$unregisterPollComponent$:$AdfUserInactivityTimeoutHelper$$.prototype.$unregisterPollComponent$});
$AdfUserInactivityTimeoutHelper$$.prototype.$hasTimedOut$ = function $$AdfUserInactivityTimeoutHelper$$$$$hasTimedOut$$() {
  return this.$_hasTimedOut$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUserInactivityTimeoutHelper.prototype.hasTimedOut", {$hasTimedOut$:$AdfUserInactivityTimeoutHelper$$.prototype.$hasTimedOut$});
$AdfUserInactivityTimeoutHelper$$.prototype.$isTimeoutEnabled$ = function $$AdfUserInactivityTimeoutHelper$$$$$isTimeoutEnabled$$() {
  return -1 != this.$_globalTimeoutInterval$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUserInactivityTimeoutHelper.prototype.isTimeoutEnabled", {$isTimeoutEnabled$:$AdfUserInactivityTimeoutHelper$$.prototype.$isTimeoutEnabled$});
$AdfUserInactivityTimeoutHelper$$.prototype.$initializeTimeout$ = function $$AdfUserInactivityTimeoutHelper$$$$$initializeTimeout$$($interval$$2$$) {
  $AdfAssert$$.$assertNumberOrNull$($interval$$2$$);
  this.$_defaultTimeoutInterval$ = $interval$$2$$;
  var $oldGlobalTimeoutInterval$$ = this.$_globalTimeoutInterval$;
  this.$_globalTimeoutInterval$ = this.$_maxComponentTimeoutInterval$ ? this.$_maxComponentTimeoutInterval$ : $interval$$2$$;
  this.$_globalTimeoutInterval$ != $oldGlobalTimeoutInterval$$ && $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$$(this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUserInactivityTimeoutHelper.prototype.initializeTimeout", {$initializeTimeout$:$AdfUserInactivityTimeoutHelper$$.prototype.$initializeTimeout$});
$AdfUserInactivityTimeoutHelper$$.$InitClass$ = function $$AdfUserInactivityTimeoutHelper$$$$InitClass$$() {
};
$goog$exportSymbol$$("AdfUserInactivityTimeoutHelper.InitClass", $AdfUserInactivityTimeoutHelper$$.$InitClass$);
$AdfUserInactivityTimeoutHelper$$.prototype.Init = function $$AdfUserInactivityTimeoutHelper$$$$Init$() {
  $AdfUserInactivityTimeoutHelper$$.$superclass$.Init.call(this);
  this.$_componentIDsArray$ = [];
  this.$_defaultTimeoutInterval$ = null;
  this.$_globalTimeoutInterval$ = -1;
  this.$_maxComponentTimeoutInterval$ = null;
  this.$_hasTimedOut$ = !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUserInactivityTimeoutHelper.prototype.Init", {Init:$AdfUserInactivityTimeoutHelper$$.prototype.Init});
$AdfUserInactivityTimeoutHelper$$.prototype.$_forceComponentStop$ = function $$AdfUserInactivityTimeoutHelper$$$$$_forceComponentStop$$() {
  this.$_hasTimedOut$ = !0;
  var $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$ = $AdfPage$$.$PAGE$;
  null != $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$.$_componentsUpdatedByPollEvent$ && $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$.$scheduleTimer$(this, this.$_applyPollTimeoutStyle$, null, 500);
  $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$ = $AdfPage$$.$PAGE$;
  $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$.$isActiveDataSupported$() && ($page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$.$getActiveDataSupport$().stop(), $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$ = $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$.$_sessionTimeoutHelper$) && ($page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$.$__cancelSessionTimeoutTimer$(), 
  $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$.$__startSessionTimeoutTimer$());
  $page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$ = $AdfPage$$.$PAGE$;
  null != this.$_timeoutTimer$ && ($page$$255_page$$inline_5122_page$$inline_5124_sessionTimeoutHelper$$inline_5125$$.$cancelTimer$(this.$_timeoutTimer$), this.$_timeoutTimer$ = null);
};
$AdfUserInactivityTimeoutHelper$$.prototype.$_applyPollTimeoutStyle$ = function $$AdfUserInactivityTimeoutHelper$$$$$_applyPollTimeoutStyle$$() {
  for (var $updates$$2$$ = $AdfPage$$.$PAGE$.$_componentsUpdatedByPollEvent$, $timeoutLayers$$ = [], $agent$$804$$ = $AdfAgent$$.$AGENT$, $i$$755$$ = 0;$i$$755$$ < $updates$$2$$.length;$i$$755$$++) {
    var $componentRootDomElement$$ = $agent$$804$$.getElementById($updates$$2$$[$i$$755$$]);
    if ($componentRootDomElement$$) {
      $AdfDomUtils$$.$addCSSClassName$($componentRootDomElement$$, "p_AFNoUpdate");
      var $el$$inline_5129_layer$$11$$, $computedStyle$$inline_5132_element$$inline_5127$$ = $componentRootDomElement$$;
      $AdfAssert$$.$assertDomElement$($computedStyle$$inline_5132_element$$inline_5127$$);
      var $agent$$inline_5128$$ = $AdfAgent$$.$AGENT$;
      $el$$inline_5129_layer$$11$$ = $AdfPage$$.$PAGE$.$getDomDocument$().createElement("div");
      $el$$inline_5129_layer$$11$$.className = "p_AFNoUpdateBadge";
      var $style$$inline_5130$$ = $el$$inline_5129_layer$$11$$.style, $pos$$inline_5131$$ = $AdfDomUtils$$.$getRelativePosition$($computedStyle$$inline_5132_element$$inline_5127$$);
      $style$$inline_5130$$.top = $pos$$inline_5131$$.y + "px";
      $style$$inline_5130$$.left = $pos$$inline_5131$$.x + "px";
      $style$$inline_5130$$.width = $computedStyle$$inline_5132_element$$inline_5127$$.offsetWidth + "px";
      $style$$inline_5130$$.height = $computedStyle$$inline_5132_element$$inline_5127$$.offsetHeight + "px";
      $style$$inline_5130$$.position = "absolute";
      $style$$inline_5130$$.visibility = "visible";
      $computedStyle$$inline_5132_element$$inline_5127$$ = $agent$$inline_5128$$.getComputedStyle($computedStyle$$inline_5132_element$$inline_5127$$);
      $style$$inline_5130$$.zIndex = "auto" == $computedStyle$$inline_5132_element$$inline_5127$$.zIndex ? 1 : $computedStyle$$inline_5132_element$$inline_5127$$.zIndex + 1;
      $timeoutLayers$$.push($el$$inline_5129_layer$$11$$);
      $componentRootDomElement$$.parentNode.insertBefore($el$$inline_5129_layer$$11$$, $componentRootDomElement$$);
    }
  }
  this.$_timeoutLayers$ = $timeoutLayers$$;
};
$AdfUserInactivityTimeoutHelper$$.prototype.$__resetTimeoutHandler$ = function $$AdfUserInactivityTimeoutHelper$$$$$__resetTimeoutHandler$$($event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$) {
  if (-1 != this.$_globalTimeoutInterval$ && "mouseover" != $event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$.type && "mouseout" != $event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$.type && "blur" != $event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$.type && "focus" != $event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$.type && ($event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$ = $AdfPage$$.$PAGE$.$_sessionTimeoutHelper$, !$event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$ || 
  $event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$.$getTimeoutWindowState$() != $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$.$LAUNCHED$)) {
    $event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$ = $AdfPage$$.$PAGE$.$_componentsUpdatedByPollEvent$;
    var $agent$$inline_5139_layers$$inline_5136$$ = this.$_timeoutLayers$;
    if ($agent$$inline_5139_layers$$inline_5136$$ && $agent$$inline_5139_layers$$inline_5136$$.length) {
      for (var $i$$inline_5137_j$$inline_5140$$ = 0;$i$$inline_5137_j$$inline_5140$$ < $agent$$inline_5139_layers$$inline_5136$$.length;$i$$inline_5137_j$$inline_5140$$++) {
        var $componentRootDomElement$$inline_5141_layer$$inline_5138$$ = $agent$$inline_5139_layers$$inline_5136$$.pop();
        $componentRootDomElement$$inline_5141_layer$$inline_5138$$.parentNode.removeChild($componentRootDomElement$$inline_5141_layer$$inline_5138$$);
      }
      $agent$$inline_5139_layers$$inline_5136$$ = $AdfAgent$$.$AGENT$;
      for ($i$$inline_5137_j$$inline_5140$$ = 0;$i$$inline_5137_j$$inline_5140$$ < $event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$.length;$i$$inline_5137_j$$inline_5140$$++) {
        ($componentRootDomElement$$inline_5141_layer$$inline_5138$$ = $agent$$inline_5139_layers$$inline_5136$$.getElementById($event$$356_sessionTimeoutHelper$$2_updates$$inline_5135$$.pop())) && $AdfDomUtils$$.$removeCSSClassName$($componentRootDomElement$$inline_5141_layer$$inline_5138$$, "p_AFNoUpdate");
      }
    }
    $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$$(this);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUserInactivityTimeoutHelper.prototype.__resetTimeoutHandler", {$__resetTimeoutHandler$:$AdfUserInactivityTimeoutHelper$$.prototype.$__resetTimeoutHandler$});
function $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$$($JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$) {
  var $page$$258$$ = $AdfPage$$.$PAGE$;
  if ($page$$258$$.$isActiveDataSupported$()) {
    var $sessionTimeoutHelper$$3$$ = $page$$258$$.$_sessionTimeoutHelper$;
    $sessionTimeoutHelper$$3$$ && $sessionTimeoutHelper$$3$$.$__cancelSessionTimeoutTimer$();
  }
  null != $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_timeoutTimer$ && $page$$258$$.$cancelTimer$($JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_timeoutTimer$);
  $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_timeoutTimer$ = null;
  $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_globalTimeoutInterval$ && -1 != $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_globalTimeoutInterval$ && ($JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_timeoutTimer$ = $page$$258$$.$scheduleTimer$($JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$, $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_forceComponentStop$, null, $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_globalTimeoutInterval$));
  $JSCompiler_StaticMethods__rescheduleOrScheduleTimerIfNeeded$self$$.$_hasTimedOut$ = !1;
}
;