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$$2405_componentTimeout$$) {
  $AdfAssert$$.$assertObject$($component$$2405_componentTimeout$$);
  var $clientId$$509$$ = $component$$2405_componentTimeout$$.$getClientId$();
  this.$_componentIDsArray$.push($clientId$$509$$);
  $component$$2405_componentTimeout$$ = $component$$2405_componentTimeout$$.getTimeout();
  if (null == this.$_maxComponentTimeoutInterval$) {
    this.$_maxComponentTimeoutInterval$ = $component$$2405_componentTimeout$$;
  } else {
    if (-1 == $component$$2405_componentTimeout$$ || -1 != this.$_maxComponentTimeoutInterval$ && $component$$2405_componentTimeout$$ > this.$_maxComponentTimeoutInterval$) {
      this.$_maxComponentTimeoutInterval$ = $component$$2405_componentTimeout$$;
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUserInactivityTimeoutHelper.prototype.registerPollComponent", {$registerPollComponent$:$AdfUserInactivityTimeoutHelper$$.prototype.$registerPollComponent$});
$AdfUserInactivityTimeoutHelper$$.prototype.$unregisterPollComponent$ = function $$AdfUserInactivityTimeoutHelper$$$$$unregisterPollComponent$$($clientId$$510_component$$2406_timeoutInterval$$inline_5109$$) {
  $AdfAssert$$.$assertObject$($clientId$$510_component$$2406_timeoutInterval$$inline_5109$$);
  $clientId$$510_component$$2406_timeoutInterval$$inline_5109$$ = $clientId$$510_component$$2406_timeoutInterval$$inline_5109$$.$getClientId$();
  $AdfCollections$$.$removeArrayValue$(this.$_componentIDsArray$, $clientId$$510_component$$2406_timeoutInterval$$inline_5109$$);
  $clientId$$510_component$$2406_timeoutInterval$$inline_5109$$ = this.$_defaultTimeoutInterval$;
  var $componentIds$$inline_5110$$ = this.$_componentIDsArray$, $page$$inline_5111$$ = $AdfPage$$.$PAGE$;
  this.$_maxComponentTimeoutInterval$ = null;
  for (var $i$$inline_5112$$ = 0;$i$$inline_5112$$ < $componentIds$$inline_5110$$.length;$i$$inline_5112$$++) {
    var $component$$inline_5113_tmpTimeoutValue$$inline_5114$$ = $page$$inline_5111$$.$findComponent$($componentIds$$inline_5110$$[$i$$inline_5112$$]);
    if ($component$$inline_5113_tmpTimeoutValue$$inline_5114$$) {
      $component$$inline_5113_tmpTimeoutValue$$inline_5114$$ = $component$$inline_5113_tmpTimeoutValue$$inline_5114$$.getTimeout();
      if (-1 == $component$$inline_5113_tmpTimeoutValue$$inline_5114$$) {
        this.$_maxComponentTimeoutInterval$ = $component$$inline_5113_tmpTimeoutValue$$inline_5114$$;
        break;
      }
      null == this.$_maxComponentTimeoutInterval$ ? this.$_maxComponentTimeoutInterval$ = $component$$inline_5113_tmpTimeoutValue$$inline_5114$$ : $component$$inline_5113_tmpTimeoutValue$$inline_5114$$ > this.$_maxComponentTimeoutInterval$ && (this.$_maxComponentTimeoutInterval$ = $component$$inline_5113_tmpTimeoutValue$$inline_5114$$);
    }
  }
  null != this.$_maxComponentTimeoutInterval$ && ($clientId$$510_component$$2406_timeoutInterval$$inline_5109$$ = this.$_maxComponentTimeoutInterval$);
  this.$_globalTimeoutInterval$ = $clientId$$510_component$$2406_timeoutInterval$$inline_5109$$;
};
$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_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$ = $AdfPage$$.$PAGE$;
  null != $page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$.$_componentsUpdatedByPollEvent$ && $page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$.$scheduleTimer$(this, this.$_applyPollTimeoutStyle$, null, 500);
  $page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$ = $AdfPage$$.$PAGE$;
  $page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$.$isActiveDataSupported$() && ($page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$.$getActiveDataSupport$().stop(), $page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$ = $page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$.$_sessionTimeoutHelper$) && ($page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$.$__cancelSessionTimeoutTimer$(), 
  $page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$.$__startSessionTimeoutTimer$());
  $page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$ = $AdfPage$$.$PAGE$;
  null != this.$_timeoutTimer$ && ($page$$255_page$$inline_5117_page$$inline_5119_sessionTimeoutHelper$$inline_5120$$.$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$$752$$ = 0;$i$$752$$ < $updates$$2$$.length;$i$$752$$++) {
    var $componentRootDomElement$$ = $agent$$804$$.getElementById($updates$$2$$[$i$$752$$]);
    if ($componentRootDomElement$$) {
      $AdfDomUtils$$.$addCSSClassName$($componentRootDomElement$$, "p_AFNoUpdate");
      var $el$$inline_5124_layer$$11$$, $computedStyle$$inline_5127_element$$inline_5122$$ = $componentRootDomElement$$;
      $AdfAssert$$.$assertDomElement$($computedStyle$$inline_5127_element$$inline_5122$$);
      var $agent$$inline_5123$$ = $AdfAgent$$.$AGENT$;
      $el$$inline_5124_layer$$11$$ = $AdfPage$$.$PAGE$.$getDomDocument$().createElement("div");
      $el$$inline_5124_layer$$11$$.className = "p_AFNoUpdateBadge";
      var $style$$inline_5125$$ = $el$$inline_5124_layer$$11$$.style, $pos$$inline_5126$$ = $AdfDomUtils$$.$getRelativePosition$($computedStyle$$inline_5127_element$$inline_5122$$);
      $style$$inline_5125$$.top = $pos$$inline_5126$$.y + "px";
      $style$$inline_5125$$.left = $pos$$inline_5126$$.x + "px";
      $style$$inline_5125$$.width = $computedStyle$$inline_5127_element$$inline_5122$$.offsetWidth + "px";
      $style$$inline_5125$$.height = $computedStyle$$inline_5127_element$$inline_5122$$.offsetHeight + "px";
      $style$$inline_5125$$.position = "absolute";
      $style$$inline_5125$$.visibility = "visible";
      $computedStyle$$inline_5127_element$$inline_5122$$ = $agent$$inline_5123$$.getComputedStyle($computedStyle$$inline_5127_element$$inline_5122$$);
      $style$$inline_5125$$.zIndex = "auto" == $computedStyle$$inline_5127_element$$inline_5122$$.zIndex ? 1 : $computedStyle$$inline_5127_element$$inline_5122$$.zIndex + 1;
      $timeoutLayers$$.push($el$$inline_5124_layer$$11$$);
      $componentRootDomElement$$.parentNode.insertBefore($el$$inline_5124_layer$$11$$, $componentRootDomElement$$);
    }
  }
  this.$_timeoutLayers$ = $timeoutLayers$$;
};
$AdfUserInactivityTimeoutHelper$$.prototype.$__resetTimeoutHandler$ = function $$AdfUserInactivityTimeoutHelper$$$$$__resetTimeoutHandler$$($event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$) {
  if (-1 != this.$_globalTimeoutInterval$ && "mouseover" != $event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$.type && "mouseout" != $event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$.type && "blur" != $event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$.type && "focus" != $event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$.type && ($event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$ = $AdfPage$$.$PAGE$.$_sessionTimeoutHelper$, !$event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$ || 
  $event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$.$getTimeoutWindowState$() != $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$.$LAUNCHED$)) {
    $event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$ = $AdfPage$$.$PAGE$.$_componentsUpdatedByPollEvent$;
    var $agent$$inline_5134_layers$$inline_5131$$ = this.$_timeoutLayers$;
    if ($agent$$inline_5134_layers$$inline_5131$$ && $agent$$inline_5134_layers$$inline_5131$$.length) {
      for (var $i$$inline_5132_j$$inline_5135$$ = 0;$i$$inline_5132_j$$inline_5135$$ < $agent$$inline_5134_layers$$inline_5131$$.length;$i$$inline_5132_j$$inline_5135$$++) {
        var $componentRootDomElement$$inline_5136_layer$$inline_5133$$ = $agent$$inline_5134_layers$$inline_5131$$.pop();
        $componentRootDomElement$$inline_5136_layer$$inline_5133$$.parentNode.removeChild($componentRootDomElement$$inline_5136_layer$$inline_5133$$);
      }
      $agent$$inline_5134_layers$$inline_5131$$ = $AdfAgent$$.$AGENT$;
      for ($i$$inline_5132_j$$inline_5135$$ = 0;$i$$inline_5132_j$$inline_5135$$ < $event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$.length;$i$$inline_5132_j$$inline_5135$$++) {
        ($componentRootDomElement$$inline_5136_layer$$inline_5133$$ = $agent$$inline_5134_layers$$inline_5131$$.getElementById($event$$348_sessionTimeoutHelper$$2_updates$$inline_5130$$.pop())) && $AdfDomUtils$$.$removeCSSClassName$($componentRootDomElement$$inline_5136_layer$$inline_5133$$, "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;
}
;