function $AdfSessionTimeoutHelper$$() {
  this.Init()
}
$goog$exportSymbol$$("AdfSessionTimeoutHelper", $AdfSessionTimeoutHelper$$);
$goog$exportSymbol$$("AdfSessionTimeoutHelper", $AdfSessionTimeoutHelper$$);
$AdfObject$$.$createSubclass$($AdfSessionTimeoutHelper$$);
$AdfSessionTimeoutHelper$$.$TimeoutWindowStates$ = {NONE:0, $CANCEL$:1, $LAUNCHED$:2};
$goog$exportSymbol$$("AdfSessionTimeoutHelper.TimeoutWindowStates", $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$);
$AdfSessionTimeoutHelper$$.prototype.$getTimeoutWindowState$ = $JSCompiler_get$$("$_timeoutWindowState$");
$AdfObject$$.$exportPrototypeSymbol$("AdfSessionTimeoutHelper.prototype.getTimeoutWindowState", {$getTimeoutWindowState$:$AdfSessionTimeoutHelper$$.prototype.$getTimeoutWindowState$});
$AdfSessionTimeoutHelper$$.prototype.Init = function $$AdfSessionTimeoutHelper$$$$Init$() {
  $AdfSessionTimeoutHelper$$.$superclass$.Init.call(this);
  this.$_timeoutWindowState$ = $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$.NONE
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSessionTimeoutHelper.prototype.Init", {Init:$AdfSessionTimeoutHelper$$.prototype.Init});
$AdfSessionTimeoutHelper$$.prototype.$__initializeSessionTimeoutTimer$ = function $$AdfSessionTimeoutHelper$$$$$__initializeSessionTimeoutTimer$$($agent$$704_timeout$$13$$, $warningBeforeTimeout$$1$$, $newSessionURL$$2$$) {
  $JSCompiler_StaticMethods__setSessionTimeoutInWebLocalStorage$$($agent$$704_timeout$$13$$);
  this.$__cancelSessionTimeoutTimer$();
  $JSCompiler_StaticMethods__startSessionTimeoutTimer$$(this, $agent$$704_timeout$$13$$, $warningBeforeTimeout$$1$$);
  this.$_timeout$ = $agent$$704_timeout$$13$$;
  this.$_warningBeforeTimeout$ = $warningBeforeTimeout$$1$$;
  this.$_newSessionURL$ = $newSessionURL$$2$$;
  $agent$$704_timeout$$13$$ = $AdfAgent$$.$AGENT$;
  if(($agent$$704_timeout$$13$$.$isSessionStorageEnabled$() ? $agent$$704_timeout$$13$$.$getSessionStorageProperty$("oracle.adfinternal.view.rich.sessionKeysCleaned") : $JSCompiler_alias_NULL$$) == $JSCompiler_alias_NULL$$) {
    this.$_timeoutWarningTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_cleanupLocalStorageSessionKeys$, $JSCompiler_alias_NULL$$, 6E4), $agent$$704_timeout$$13$$.$isSessionStorageEnabled$() && $agent$$704_timeout$$13$$.$setSessionStorageProperty$("oracle.adfinternal.view.rich.sessionKeysCleaned", "scheduled")
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSessionTimeoutHelper.prototype.__initializeSessionTimeoutTimer", {$__initializeSessionTimeoutTimer$:$AdfSessionTimeoutHelper$$.prototype.$__initializeSessionTimeoutTimer$});
$AdfSessionTimeoutHelper$$.prototype.$__cancelSessionTimeoutTimer$ = function $$AdfSessionTimeoutHelper$$$$$__cancelSessionTimeoutTimer$$() {
  var $logger$$26$$ = $AdfLogger$$.$LOGGER$;
  this.$_timeoutWarningTimer$ && ($AdfPage$$.$PAGE$.$cancelTimer$(this.$_timeoutWarningTimer$), $logger$$26$$.$isLoggable$($AdfLogger$$.INFO) && $logger$$26$$.info("Cancelled session timeout warning dialog timer with id ", this.$_timeoutWarningTimer$), this.$_timeoutWarningTimer$ = $JSCompiler_alias_NULL$$);
  this.$_timeoutTimer$ && ($AdfPage$$.$PAGE$.$cancelTimer$(this.$_timeoutTimer$), $logger$$26$$.$isLoggable$($AdfLogger$$.INFO) && $logger$$26$$.info("Cancelled final session timeout dialog timer with id ", this.$_timeoutTimer$), this.$_timeoutTimer$ = $JSCompiler_alias_NULL$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSessionTimeoutHelper.prototype.__cancelSessionTimeoutTimer", {$__cancelSessionTimeoutTimer$:$AdfSessionTimeoutHelper$$.prototype.$__cancelSessionTimeoutTimer$});
$AdfSessionTimeoutHelper$$.prototype.$__startSessionTimeoutTimer$ = function $$AdfSessionTimeoutHelper$$$$$__startSessionTimeoutTimer$$() {
  $JSCompiler_StaticMethods__setSessionTimeoutInWebLocalStorage$$(this.$_timeout$);
  $JSCompiler_StaticMethods__startSessionTimeoutTimer$$(this, this.$_timeout$, this.$_warningBeforeTimeout$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSessionTimeoutHelper.prototype.__startSessionTimeoutTimer", {$__startSessionTimeoutTimer$:$AdfSessionTimeoutHelper$$.prototype.$__startSessionTimeoutTimer$});
$AdfSessionTimeoutHelper$$.prototype.$__alertTimeout$ = function $$AdfSessionTimeoutHelper$$$$$__alertTimeout$$() {
  this.$_timeout$ = 0;
  var $agentHelper$$inline_4580_timeout$$inline_4584$$ = $AdfAgentHelper$$.$getInstance$();
  if($agentHelper$$inline_4580_timeout$$inline_4584$$.$isLocalStorageEnabled$()) {
    var $sessionKey$$inline_4581_warningBeforeTimeout$$inline_4585$$ = "oracle.adfinternal.view.rich.sessionKey_" + $AdfPage$$.$PAGE$.$getSessionIdentifier$();
    $agentHelper$$inline_4580_timeout$$inline_4584$$.$removeLocalStorageProperty$($sessionKey$$inline_4581_warningBeforeTimeout$$inline_4585$$)
  }
  $agentHelper$$inline_4580_timeout$$inline_4584$$ = this.$_timeout$;
  $sessionKey$$inline_4581_warningBeforeTimeout$$inline_4585$$ = this.$_warningBeforeTimeout$;
  this.$__cancelSessionTimeoutTimer$();
  $JSCompiler_StaticMethods__startSessionTimeoutTimer$$(this, $agentHelper$$inline_4580_timeout$$inline_4584$$, $sessionKey$$inline_4581_warningBeforeTimeout$$inline_4585$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSessionTimeoutHelper.prototype.__alertTimeout", {$__alertTimeout$:$AdfSessionTimeoutHelper$$.prototype.$__alertTimeout$});
$AdfSessionTimeoutHelper$$.prototype.$__recordUserActivity$ = function $$AdfSessionTimeoutHelper$$$$$__recordUserActivity$$($event$$273_userActivityTime$$inline_4589$$) {
  if("click" == $event$$273_userActivityTime$$inline_4589$$.type || "keypress" == $event$$273_userActivityTime$$inline_4589$$.type) {
    var $agentHelper$$inline_4588_logger$$inline_4591$$ = $AdfAgentHelper$$.$getInstance$();
    if($agentHelper$$inline_4588_logger$$inline_4591$$.$isLocalStorageEnabled$()) {
      $event$$273_userActivityTime$$inline_4589$$ = new Date;
      var $userActivityKey$$inline_4590$$ = "oracle.adfinternal.view.rich.userActivityKey_" + $AdfPage$$.$PAGE$.$getSessionIdentifier$();
      $agentHelper$$inline_4588_logger$$inline_4591$$.$setLocalStorageProperty$($userActivityKey$$inline_4590$$, $event$$273_userActivityTime$$inline_4589$$.getTime());
      $agentHelper$$inline_4588_logger$$inline_4591$$ = $AdfLogger$$.$LOGGER$;
      $agentHelper$$inline_4588_logger$$inline_4591$$.$isLoggable$($AdfLogger$$.INFO) && $agentHelper$$inline_4588_logger$$inline_4591$$.info("Last user activity on client for ", $userActivityKey$$inline_4590$$, " at ", $event$$273_userActivityTime$$inline_4589$$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSessionTimeoutHelper.prototype.__recordUserActivity", {$__recordUserActivity$:$AdfSessionTimeoutHelper$$.prototype.$__recordUserActivity$});
$JSCompiler_prototypeAlias$$ = $AdfSessionTimeoutHelper$$.prototype;
$JSCompiler_prototypeAlias$$.$_cleanupLocalStorageSessionKeys$ = function $$JSCompiler_prototypeAlias$$$$_cleanupLocalStorageSessionKeys$$() {
  var $agent$$705_agentHelper$$ = $AdfAgentHelper$$.$getInstance$();
  if($agent$$705_agentHelper$$.$isLocalStorageEnabled$()) {
    var $currentTimeValue$$ = (new Date).getTime(), $localStorageKeys$$ = $agent$$705_agentHelper$$.$getLocalStorageKeys$();
    $AdfLogger$$.$LOGGER$.info("Cleaning expired session info from web local storage");
    for(var $i$$621$$ = 0;$i$$621$$ < $localStorageKeys$$.length;$i$$621$$++) {
      if(0 == $localStorageKeys$$[$i$$621$$].indexOf("oracle.adfinternal.view.rich.sessionKey_")) {
        var $valueInStore$$ = $agent$$705_agentHelper$$.$getLocalStorageProperty$($localStorageKeys$$[$i$$621$$]);
        36E4 < $currentTimeValue$$ - $valueInStore$$ && ($agent$$705_agentHelper$$.$removeLocalStorageProperty$($localStorageKeys$$[$i$$621$$]), $agent$$705_agentHelper$$.$removeLocalStorageProperty$("oracle.adfinternal.view.rich.userActivityKey_" + $localStorageKeys$$[$i$$621$$].split("_")[1]))
      }
    }
    $agent$$705_agentHelper$$ = $AdfAgent$$.$AGENT$;
    $agent$$705_agentHelper$$.$isSessionStorageEnabled$() ? $agent$$705_agentHelper$$.$setSessionStorageProperty$("oracle.adfinternal.view.rich.sessionKeysCleaned", "complete") : $AdfLogger$$.$LOGGER$.info("Could not mark that we cleaned web local storage because session storage is not enabled")
  }
};
function $JSCompiler_StaticMethods__startSessionTimeoutTimer$$($JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$, $timeout$$14$$, $warningBeforeTimeout$$2$$) {
  var $currentTimeVal$$ = (new Date).getTime(), $logger$$27$$ = $AdfLogger$$.$LOGGER$, $timeToWarn$$ = $timeout$$14$$ - $warningBeforeTimeout$$2$$;
  $JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$.$_timeoutWindowState$ = $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$.NONE;
  0 < $timeToWarn$$ && 12E4 <= $warningBeforeTimeout$$2$$ ? ($JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$.$_timeoutWarningTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$($JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$, $JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$.$_showSessionTimeoutWarningDialog$, $JSCompiler_alias_NULL$$, $timeToWarn$$), $logger$$27$$.$isLoggable$($AdfLogger$$.INFO) && $logger$$27$$.info("Scheduled session timeout warning dialog timer with id ", 
  $JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$.$_timeoutWarningTimer$, " to be shown at : ", new Date($currentTimeVal$$ + $timeToWarn$$))) : ($JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$.$_timeoutTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$($JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$, $JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$.$_showFinalSessionTimeoutAlertDialog$, $JSCompiler_alias_NULL$$, $timeout$$14$$), $logger$$27$$.$isLoggable$($AdfLogger$$.INFO) && 
  $logger$$27$$.info("Scheduled final session timeout dialog timer with id ", $JSCompiler_StaticMethods__startSessionTimeoutTimer$self$$.$_timeoutTimer$, " to be shown at : ", new Date($currentTimeVal$$ + $timeout$$14$$)))
}
function $JSCompiler_StaticMethods__setSessionTimeoutInWebLocalStorage$$($timeValueAtTimeout_timeout$$16$$) {
  var $agentHelper$$1_logger$$28$$ = $AdfAgentHelper$$.$getInstance$();
  if($agentHelper$$1_logger$$28$$.$isLocalStorageEnabled$()) {
    $timeValueAtTimeout_timeout$$16$$ = (new Date).getTime() + $timeValueAtTimeout_timeout$$16$$;
    var $sessionKey$$ = "oracle.adfinternal.view.rich.sessionKey_" + $AdfPage$$.$PAGE$.$getSessionIdentifier$(), $storedSessionTimeoutVal$$ = $agentHelper$$1_logger$$28$$.$getLocalStorageProperty$($sessionKey$$);
    if($storedSessionTimeoutVal$$ == $JSCompiler_alias_NULL$$ || $storedSessionTimeoutVal$$ < $timeValueAtTimeout_timeout$$16$$) {
      $agentHelper$$1_logger$$28$$.$setLocalStorageProperty$($sessionKey$$, $timeValueAtTimeout_timeout$$16$$), $agentHelper$$1_logger$$28$$ = $AdfLogger$$.$LOGGER$, $agentHelper$$1_logger$$28$$.$isLoggable$($AdfLogger$$.INFO) && $agentHelper$$1_logger$$28$$.info("Web local storage for key ", $sessionKey$$, " reset to : ", new Date($timeValueAtTimeout_timeout$$16$$))
    }
  }
}
function $JSCompiler_StaticMethods__isUserActiveOnClient$$($duration$$3$$) {
  var $agentHelper$$3_lastActiveTime_timeSinceLastActivity$$ = $AdfAgentHelper$$.$getInstance$();
  if($agentHelper$$3_lastActiveTime_timeSinceLastActivity$$.$isLocalStorageEnabled$()) {
    var $logger$$30_userActivityKey$$2$$ = "oracle.adfinternal.view.rich.userActivityKey_" + $AdfPage$$.$PAGE$.$getSessionIdentifier$();
    if($agentHelper$$3_lastActiveTime_timeSinceLastActivity$$ = $agentHelper$$3_lastActiveTime_timeSinceLastActivity$$.$getLocalStorageProperty$($logger$$30_userActivityKey$$2$$)) {
      if($agentHelper$$3_lastActiveTime_timeSinceLastActivity$$ = (new Date).getTime() - $agentHelper$$3_lastActiveTime_timeSinceLastActivity$$, $agentHelper$$3_lastActiveTime_timeSinceLastActivity$$ < $duration$$3$$) {
        return $logger$$30_userActivityKey$$2$$ = $AdfLogger$$.$LOGGER$, $logger$$30_userActivityKey$$2$$.$isLoggable$($AdfLogger$$.INFO) && $logger$$30_userActivityKey$$2$$.info("User activity on client ", $agentHelper$$3_lastActiveTime_timeSinceLastActivity$$ / 1E3, " seconds ago. Duration checked for activity ", $duration$$3$$ / 1E3, " seconds"), $JSCompiler_alias_TRUE$$
      }
    }
  }
  return $JSCompiler_alias_FALSE$$
}
function $JSCompiler_StaticMethods__getTimeLeftToSessionTimeout$$() {
  var $agentHelper$$5_timeoutValInStorage$$ = $AdfAgentHelper$$.$getInstance$();
  if($agentHelper$$5_timeoutValInStorage$$.$isLocalStorageEnabled$()) {
    var $sessionKey$$2$$ = "oracle.adfinternal.view.rich.sessionKey_" + $AdfPage$$.$PAGE$.$getSessionIdentifier$();
    if($agentHelper$$5_timeoutValInStorage$$ = $agentHelper$$5_timeoutValInStorage$$.$getLocalStorageProperty$($sessionKey$$2$$)) {
      return $agentHelper$$5_timeoutValInStorage$$ - (new Date).getTime()
    }
  }
  return $JSCompiler_alias_NULL$$
}
$JSCompiler_prototypeAlias$$.$_showSessionTimeoutWarningDialog$ = function $$JSCompiler_prototypeAlias$$$$_showSessionTimeoutWarningDialog$$() {
  var $page$$219_timeLeftToTimeout$$ = $JSCompiler_StaticMethods__getTimeLeftToSessionTimeout$$();
  if($page$$219_timeLeftToTimeout$$ && ($page$$219_timeLeftToTimeout$$ < this.$_warningBeforeTimeout$ - 2E3 || $page$$219_timeLeftToTimeout$$ > this.$_warningBeforeTimeout$ + 2E3)) {
    var $preTimeoutMsg_warningBeforeTimeout$$inline_4595$$ = this.$_warningBeforeTimeout$;
    this.$__cancelSessionTimeoutTimer$();
    $JSCompiler_StaticMethods__startSessionTimeoutTimer$$(this, $page$$219_timeLeftToTimeout$$, $preTimeoutMsg_warningBeforeTimeout$$inline_4595$$);
    return-1
  }
  if($JSCompiler_StaticMethods__isUserActiveOnClient$$(this.$_timeout$ - this.$_warningBeforeTimeout$)) {
    return $JSCompiler_StaticMethods__extendSessionInServer$$(this), -1
  }
  this.$_timeoutWarningTimer$ = $JSCompiler_alias_NULL$$;
  $page$$219_timeLeftToTimeout$$ = $AdfPage$$.$PAGE$;
  this.$_timeoutTimer$ && ($page$$219_timeLeftToTimeout$$.$cancelTimer$(this.$_timeoutTimer$), this.$_timeoutTimer$ = $JSCompiler_alias_NULL$$);
  var $laf$$114_preTimeoutTitle$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $preTimeoutMsg_warningBeforeTimeout$$inline_4595$$ = 6E4 <= this.$_warningBeforeTimeout$ ? $laf$$114_preTimeoutTitle$$.$getTranslatedString$("af_document.PRE_SESSION_TIMEOUT_MSG", Math.floor(this.$_warningBeforeTimeout$ / 6E4)) : $laf$$114_preTimeoutTitle$$.$getTranslatedString$("af_document.PRE_SESSION_TIMEOUT_MSG_SECOND", this.$_warningBeforeTimeout$ / 1E3), $laf$$114_preTimeoutTitle$$ = $laf$$114_preTimeoutTitle$$.$getTranslatedString$("af_document.PRE_SESSION_TIMEOUT_CONFIRM_TITLE");
  $laf$$114_preTimeoutTitle$$ == $JSCompiler_alias_NULL$$ && ($laf$$114_preTimeoutTitle$$ = "Expiration Warning");
  var $callback$$71$$ = this.$createCallback$(this.$_handleSessionTimeoutWarningDialogOutcome$);
  this.$_timeoutWindowState$ = $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$.$LAUNCHED$;
  this.$_preSessionTimeoutWarningTime$ = (new Date).getTime();
  $page$$219_timeLeftToTimeout$$.$__confirm$($laf$$114_preTimeoutTitle$$, $preTimeoutMsg_warningBeforeTimeout$$inline_4595$$, $callback$$71$$, this.$_warningBeforeTimeout$, $JSCompiler_alias_TRUE$$);
  return-1
};
$JSCompiler_prototypeAlias$$.$_handleSessionTimeoutWarningDialogOutcome$ = function $$JSCompiler_prototypeAlias$$$$_handleSessionTimeoutWarningDialogOutcome$$($adfDialogEvent_timeLeftToTimeout$$1_timeout$$inline_4599$$) {
  this.$_timeoutWindowState$ = $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$.NONE;
  if($adfDialogEvent_timeLeftToTimeout$$1_timeout$$inline_4599$$.$getOutcome$() == $AdfDialogEvent$$.$OUTCOME_OK$) {
    $JSCompiler_StaticMethods__extendSessionInServer$$(this)
  }else {
    if($adfDialogEvent_timeLeftToTimeout$$1_timeout$$inline_4599$$.$getOutcome$() == $AdfDialogEvent$$.$OUTCOME_CANCEL$) {
      $adfDialogEvent_timeLeftToTimeout$$1_timeout$$inline_4599$$ = $JSCompiler_StaticMethods__getTimeLeftToSessionTimeout$$();
      $adfDialogEvent_timeLeftToTimeout$$1_timeout$$inline_4599$$ || ($adfDialogEvent_timeLeftToTimeout$$1_timeout$$inline_4599$$ = this.$_warningBeforeTimeout$ - ((new Date).getTime() - this.$_preSessionTimeoutWarningTime$), this.$_preSessionTimeoutWarningTime$ = $JSCompiler_alias_NULL$$);
      var $warningBeforeTimeout$$inline_4600$$ = this.$_warningBeforeTimeout$;
      this.$__cancelSessionTimeoutTimer$();
      $JSCompiler_StaticMethods__startSessionTimeoutTimer$$(this, $adfDialogEvent_timeLeftToTimeout$$1_timeout$$inline_4599$$, $warningBeforeTimeout$$inline_4600$$)
    }
  }
};
$JSCompiler_prototypeAlias$$.$_showFinalSessionTimeoutAlertDialog$ = function $$JSCompiler_prototypeAlias$$$$_showFinalSessionTimeoutAlertDialog$$() {
  var $page$$220_timeLeftToTimeout$$2$$ = $JSCompiler_StaticMethods__getTimeLeftToSessionTimeout$$();
  if($page$$220_timeLeftToTimeout$$2$$ && 0 < $page$$220_timeLeftToTimeout$$2$$ && 0 < $page$$220_timeLeftToTimeout$$2$$) {
    var $postTimeoutMsg_warningBeforeTimeout$$inline_4605$$ = this.$_warningBeforeTimeout$;
    this.$__cancelSessionTimeoutTimer$();
    $JSCompiler_StaticMethods__startSessionTimeoutTimer$$(this, $page$$220_timeLeftToTimeout$$2$$, $postTimeoutMsg_warningBeforeTimeout$$inline_4605$$);
    return-1
  }
  if($JSCompiler_StaticMethods__isUserActiveOnClient$$(this.$_timeout$)) {
    return $JSCompiler_StaticMethods__extendSessionInServer$$(this), -1
  }
  this.$_timeoutTimer$ = $JSCompiler_alias_NULL$$;
  $page$$220_timeLeftToTimeout$$2$$ = $AdfPage$$.$PAGE$;
  this.$_timeoutWarningTimer$ && ($page$$220_timeLeftToTimeout$$2$$.$cancelTimer$(this.$_timeoutWarningTimer$), this.$_timeoutWarningTimer$ = $JSCompiler_alias_NULL$$);
  var $laf$$115_postTimeoutTitle$$ = $page$$220_timeLeftToTimeout$$2$$.$getLookAndFeel$(), $postTimeoutMsg_warningBeforeTimeout$$inline_4605$$ = $laf$$115_postTimeoutTitle$$.$getTranslatedString$("af_document.POST_SESSION_TIMEOUT_MSG");
  this.$_newSessionURL$ && ($postTimeoutMsg_warningBeforeTimeout$$inline_4605$$ += " " + $laf$$115_postTimeoutTitle$$.$getTranslatedString$("af_document.POST_SESSION_TIMEOUT_MSG_CONTINUE"));
  $laf$$115_postTimeoutTitle$$ = $laf$$115_postTimeoutTitle$$.$getTranslatedString$("af_document.POST_SESSION_TIMEOUT_ALERT_TITLE");
  $laf$$115_postTimeoutTitle$$ == $JSCompiler_alias_NULL$$ && ($laf$$115_postTimeoutTitle$$ = "Window Expired");
  $AdfDhtmlRichDialogService$$.$getInstance$().$cancelAll$();
  var $callback$$72_docDom$$1$$ = $AdfAgent$$.$AGENT$.getElementById($page$$220_timeLeftToTimeout$$2$$.$_documentClientId$);
  $AdfDomUtils$$.setVisible($callback$$72_docDom$$1$$, $JSCompiler_alias_FALSE$$);
  $callback$$72_docDom$$1$$ = this.$createCallback$(this.$_handleFinalSessionTimeoutAlert$);
  this.$_timeoutWindowState$ = $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$.$LAUNCHED$;
  $page$$220_timeLeftToTimeout$$2$$.$__alert$($laf$$115_postTimeoutTitle$$, $postTimeoutMsg_warningBeforeTimeout$$inline_4605$$, $callback$$72_docDom$$1$$);
  return-1
};
$JSCompiler_prototypeAlias$$.$_handleFinalSessionTimeoutAlert$ = function $$JSCompiler_prototypeAlias$$$$_handleFinalSessionTimeoutAlert$$() {
  this.$_timeoutTimer$ = $JSCompiler_alias_NULL$$;
  var $page$$221$$ = $AdfPage$$.$PAGE$;
  this.$_timeoutWindowState$ = $AdfSessionTimeoutHelper$$.$TimeoutWindowStates$.NONE;
  if(this.$_newSessionURL$) {
    $page$$221$$.$getDomWindow$().location.replace(this.$_newSessionURL$)
  }else {
    var $postTimeoutMsg$$1$$ = $page$$221$$.$getLookAndFeel$().$getTranslatedString$("af_document.POST_SESSION_TIMEOUT_MSG"), $agent$$706$$ = $AdfAgent$$.$AGENT$, $deadDom$$ = $page$$221$$.$getDomDocument$().createElement("div");
    $AdfDomUtils$$.setVisible($deadDom$$, $JSCompiler_alias_FALSE$$);
    $agent$$706$$.$setTextContent$($deadDom$$, $postTimeoutMsg$$1$$);
    $agent$$706$$.getElementById($page$$221$$.$_documentClientId$).parentNode.appendChild($deadDom$$);
    $AdfDomUtils$$.setVisible($deadDom$$, $JSCompiler_alias_TRUE$$);
    $page$$221$$.$getDomWindow$().setTimeout($page$$221$$.$createCallback$($page$$221$$.$Dispose$), 1)
  }
};
function $JSCompiler_StaticMethods__extendSessionInServer$$($JSCompiler_StaticMethods__extendSessionInServer$self$$) {
  var $actionURL$$inline_4608_timeout$$inline_4612$$ = $AdfPage$$.$PAGE$.$getDomDocument$().location.href, $actionURL$$inline_4608_timeout$$inline_4612$$ = -1 == $actionURL$$inline_4608_timeout$$inline_4612$$.indexOf("?") ? $actionURL$$inline_4608_timeout$$inline_4612$$ + "?" : $actionURL$$inline_4608_timeout$$inline_4612$$ + "\x26", $actionURL$$inline_4608_timeout$$inline_4612$$ = $actionURL$$inline_4608_timeout$$inline_4612$$ + ("_afrTS\x3d" + (new Date).getTime()), $warningBeforeTimeout$$inline_4613_xmlr$$inline_4609$$ = 
  new $AdfXMLRequest$$;
  $warningBeforeTimeout$$inline_4613_xmlr$$inline_4609$$.$setSynchronous$($JSCompiler_alias_FALSE$$);
  $warningBeforeTimeout$$inline_4613_xmlr$$inline_4609$$.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  $warningBeforeTimeout$$inline_4613_xmlr$$inline_4609$$.send($actionURL$$inline_4608_timeout$$inline_4612$$, $JSCompiler_alias_NULL$$);
  $warningBeforeTimeout$$inline_4613_xmlr$$inline_4609$$.$cleanup$();
  delete $warningBeforeTimeout$$inline_4613_xmlr$$inline_4609$$;
  $AdfLogger$$.$LOGGER$.info("Extended session lifetime");
  $JSCompiler_StaticMethods__setSessionTimeoutInWebLocalStorage$$($JSCompiler_StaticMethods__extendSessionInServer$self$$.$_timeout$);
  $actionURL$$inline_4608_timeout$$inline_4612$$ = $JSCompiler_StaticMethods__extendSessionInServer$self$$.$_timeout$;
  $warningBeforeTimeout$$inline_4613_xmlr$$inline_4609$$ = $JSCompiler_StaticMethods__extendSessionInServer$self$$.$_warningBeforeTimeout$;
  $JSCompiler_StaticMethods__extendSessionInServer$self$$.$__cancelSessionTimeoutTimer$();
  $JSCompiler_StaticMethods__startSessionTimeoutTimer$$($JSCompiler_StaticMethods__extendSessionInServer$self$$, $actionURL$$inline_4608_timeout$$inline_4612$$, $warningBeforeTimeout$$inline_4613_xmlr$$inline_4609$$)
}
;