var $AdfDhtmlDocumentPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlDocumentPeer", !1);
$goog$exportSymbol$$("AdfDhtmlDocumentPeer", $AdfDhtmlDocumentPeer$$);
$AdfDhtmlDocumentPeer$$.$InitSubclass$ = function $$AdfDhtmlDocumentPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfComponentEvent$$.$BLUR_EVENT_TYPE$, $AdfComponentEvent$$.$FOCUS_EVENT_TYPE$, $AdfDialogEvent$$.$EVENT_TYPE$, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$, $AdfComponentEvent$$.$CONTEXT_MENU_EVENT_TYPE$, $AdfRedirectEvent$$.$REDIRECT_EVENT_TYPE$);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichDocument.SHORT_DESC, AdfRichDocument.TITLE);
  this.$_ICON_CONTAINER_ID$ = "iconC";
  this.$_MESSAGE_DIALOG_ID$ = "msgDlg";
  this.$_MESSAGE_DIALOG_CONTAINER_ID$ = "msgCtr";
  this.$_GLOBAL_LIVE_CONTAINER_ID$ = "liveCtr";
  this.$_SKIP_LINK_ID$ = "skip";
  this.$_INACTIVE_STYLECLASS$ = "p_AFInactive";
  this.$_ALERT_CONFIRM_DIALOG_CONTAINER_ID$ = "afr::UtilPopupCtnr";
  this.$_ALERT_CONFIRM_POPUP_ID_EXPANDO$ = "data-afr-pid";
  this.$_ALERT_CONFIRM_DIALOG_ID_EXPANDO$ = "data-afr-did";
  this.$_DIALOG_CONTENT_SUBID$ = "contentContainer";
  this.$_DIALOG_CANCEL_ID_SUBID$ = "cancel";
};
$goog$exportSymbol$$("AdfDhtmlDocumentPeer.InitSubclass", $AdfDhtmlDocumentPeer$$.$InitSubclass$);
$AdfDhtmlDocumentPeer$$.prototype.Init = function $$AdfDhtmlDocumentPeer$$$$Init$($component$$1062$$) {
  $AdfPage$$.$PAGE$.$setDocumentClientId$($component$$1062$$.$getClientId$());
  $AdfDhtmlDocumentPeer$$.$superclass$.Init.call(this, $component$$1062$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.Init", {Init:$AdfDhtmlDocumentPeer$$.prototype.Init});
$AdfDhtmlDocumentPeer$$.prototype.$ComponentShortDescChanged$ = function $$AdfDhtmlDocumentPeer$$$$$ComponentShortDescChanged$$($component$$1063$$, $domElement$$187$$, $newValue$$62$$) {
  $AdfAssert$$.$assertStringOrNull$($newValue$$62$$);
  document.body.title = $newValue$$62$$;
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.ComponentShortDescChanged", {$ComponentShortDescChanged$:$AdfDhtmlDocumentPeer$$.prototype.$ComponentShortDescChanged$});
$AdfDhtmlDocumentPeer$$.prototype.$ComponentTitleChanged$ = function $$AdfDhtmlDocumentPeer$$$$$ComponentTitleChanged$$($component$$1064$$, $domElement$$188$$, $newValue$$63$$) {
  $AdfAssert$$.$assertStringOrNull$($newValue$$63$$);
  document.title = $newValue$$63$$;
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.ComponentTitleChanged", {$ComponentTitleChanged$:$AdfDhtmlDocumentPeer$$.prototype.$ComponentTitleChanged$});
$AdfDhtmlDocumentPeer$$.prototype.$isMessagesDialogShowable$ = function $$AdfDhtmlDocumentPeer$$$$$isMessagesDialogShowable$$() {
  var $page$$106$$ = $AdfPage$$.$PAGE$, $globalMessages_messages$$11$$ = $page$$106$$.$getAllMessages$(), $componentID_slaveComponent$$ = this.$getComponent$().$getClientId$(), $globalMessages_messages$$11$$ = $globalMessages_messages$$11$$[$componentID_slaveComponent$$], $componentID_slaveComponent$$ = $JSCompiler_StaticMethods__getSlaveComponent$$(), $globalOnly$$ = !1;
  null != $componentID_slaveComponent$$ && ($globalOnly$$ = $componentID_slaveComponent$$.getGlobalOnly());
  return $AdfMessageUtils$$.$isPageLevelBoxNeeded$($page$$106$$, $globalMessages_messages$$11$$, $globalOnly$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.isMessagesDialogShowable", {$isMessagesDialogShowable$:$AdfDhtmlDocumentPeer$$.prototype.$isMessagesDialogShowable$});
$AdfDhtmlDocumentPeer$$.prototype.$getMessageDialogId$ = function $$AdfDhtmlDocumentPeer$$$$$getMessageDialogId$$() {
  var $clientId$$198$$ = this.$getComponent$().$getClientId$();
  return "old" == $AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$("af|dialog-tr-button-type") ? $AdfRichUIPeer$$.$CreateSubId$($clientId$$198$$, $AdfDhtmlDocumentPeer$$.$_MESSAGE_DIALOG_ID$) : $clientId$$198$$ + "_" + $AdfDhtmlDocumentPeer$$.$_MESSAGE_DIALOG_ID$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.getMessageDialogId", {$getMessageDialogId$:$AdfDhtmlDocumentPeer$$.prototype.$getMessageDialogId$});
$AdfDhtmlDocumentPeer$$.prototype.$isMessagesInline$ = function $$AdfDhtmlDocumentPeer$$$$$isMessagesInline$$() {
  var $dialogElem_dialogId$$3$$ = this.$getMessageDialogId$(), $dialogElem_dialogId$$3$$ = $AdfAgent$$.$AGENT$.getElementById($dialogElem_dialogId$$3$$), $containerId$$2$$ = $JSCompiler_StaticMethods__getMessageDialogContainerId$$(this);
  return $dialogElem_dialogId$$3$$ && $dialogElem_dialogId$$3$$.parentNode.id == $containerId$$2$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.isMessagesInline", {$isMessagesInline$:$AdfDhtmlDocumentPeer$$.prototype.$isMessagesInline$});
$AdfDhtmlDocumentPeer$$.prototype.$setMessagesDialogShown$ = function $$AdfDhtmlDocumentPeer$$$$$setMessagesDialogShown$$($component$$inline_1884_visible$$1$$) {
  $component$$inline_1884_visible$$1$$ ? this.$messageShow$() : ($component$$inline_1884_visible$$1$$ = this.$getComponent$(), this.$hidePopup$($component$$inline_1884_visible$$1$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.setMessagesDialogShown", {$setMessagesDialogShown$:$AdfDhtmlDocumentPeer$$.prototype.$setMessagesDialogShown$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentFocus$$($componentEvent$$186$$) {
  if ($componentEvent$$186$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $skipLinkElement$$ = $JSCompiler_StaticMethods__getSkipLinkElement$$(this.$getComponent$());
    $componentEvent$$186$$.$getNativeEventTarget$() == $skipLinkElement$$ && ($skipLinkElement$$.style.top = "0px");
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentBlur$$($componentEvent$$187$$) {
  if ($componentEvent$$187$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $skipLinkElement$$1$$ = $JSCompiler_StaticMethods__getSkipLinkElement$$(this.$getComponent$());
    $componentEvent$$187$$.$getNativeEventTarget$() == $skipLinkElement$$1$$ && ($skipLinkElement$$1$$.style.top = "");
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentClick$$($componentEvent$$188$$) {
  if ($componentEvent$$188$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$ = $JSCompiler_StaticMethods__getSkipLinkElement$$(this.$getComponent$());
    $componentEvent$$188$$.$getNativeEventTarget$() == $matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$ && ($matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$ = $AdfDhtmlDocumentPeer$$.$_getSkipLinkTargetId$(this.$getComponent$()), $matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$ = $AdfAgent$$.$AGENT$.getElementById($matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$), 
    $AdfAssert$$.$assertDomElement$($matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$), $matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$ = $AdfDomUtils$$.$getNextElementMatch$($matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$, null, !1, $AdfDhtmlDocumentPeer$$.$_isPotentiallyFocusable$), $AdfAssert$$.$assertDomElement$($matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$), 
    $matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$ && ($AdfFocusUtils$$.$isFocusable$($matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$) || ($matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$.tabIndex = -1), $AdfFocusUtils$$.$focusElement$($matchElement$$inline_1889_skipLinkElement$$2_targetElement$$inline_1888_targetId$$inline_1887$$)), $componentEvent$$188$$.cancel());
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentContextMenu$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentContextMenu$$($componentEvent$$189$$) {
  $AdfDhtmlDocumentPeer$$.$__ACTION_LINK_BROWSER_CONTEXT_SUPPRESSION_OFF$ || $AdfDomUtils$$.$suppressActionLinkBrowserContextMenu$($componentEvent$$189$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentContextMenu", {$HandleComponentContextMenu$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentContextMenu$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentKeyUp$$($componentEvent$$190$$) {
  if (!$componentEvent$$190$$.$isCanceled$() && $AdfPage$$.$PAGE$.$getDefaultMessageHandlerComponentId$() == this.$getComponent$().$getClientId$()) {
    var $keyCode$$56$$ = $componentEvent$$190$$.$getKeyCode$();
    $componentEvent$$190$$.ctrlKey && $componentEvent$$190$$.altKey ? 79 == $keyCode$$56$$ && (this.$setMessagesDialogShown$(!1), $componentEvent$$190$$.cancel()) : $componentEvent$$190$$.ctrlKey && $componentEvent$$190$$.shiftKey && 87 == $keyCode$$56$$ && (this.$setMessagesDialogShown$(!0), $componentEvent$$190$$.cancel());
  }
  if (!$componentEvent$$190$$.$isCanceled$()) {
    var $evt$$94$$ = $componentEvent$$190$$.$getNativeEvent$(), $keyCode$$56$$ = $componentEvent$$190$$.$getKeyCode$();
    $evt$$94$$.ctrlKey && $evt$$94$$.altKey && 87 == $keyCode$$56$$ && $AdfDhtmlDialogManager$$.$getInstance$().$focusNextModelessDialog$($componentEvent$$190$$.$getNativeEventTarget$());
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentDialog$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentDialog$$($allMessages_componentEvent$$191_page$$107$$) {
  var $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ = $allMessages_componentEvent$$191_page$$107$$.getSource().$getClientId$(), $documentClientId$$6$$ = this.$getComponent$().$getClientId$(), $dialogId$$4_globalOnly$$1$$ = this.$getMessageDialogId$();
  if ($compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ == $dialogId$$4_globalOnly$$1$$ && ($compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ = $allMessages_componentEvent$$191_page$$107$$.$getOutcome$(), $allMessages_componentEvent$$191_page$$107$$.cancel(), this.$hidePopup$(this.$getComponent$()), $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ == $AdfDialogEvent$$.$OUTCOME_OK$ && ($allMessages_componentEvent$$191_page$$107$$ = $AdfPage$$.$PAGE$, $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ = 
  $JSCompiler_StaticMethods__getSlaveComponent$$(), $dialogId$$4_globalOnly$$1$$ = !1, null != $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ && ($dialogId$$4_globalOnly$$1$$ = $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$.getGlobalOnly()), !$dialogId$$4_globalOnly$$1$$))) {
    var $jumpComponentClientId$$;
    $allMessages_componentEvent$$191_page$$107$$ = $allMessages_componentEvent$$191_page$$107$$.$getAllMessages$();
    for (var $id$$287$$ in $allMessages_componentEvent$$191_page$$107$$) {
      if ($id$$287$$ != $documentClientId$$6$$ && ($compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ = $allMessages_componentEvent$$191_page$$107$$[$id$$287$$], null != $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ && null != $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$.$compId$)) {
        $jumpComponentClientId$$ = $id$$287$$;
        break;
      }
    }
    null != $jumpComponentClientId$$ && $AdfMessageUtils$$.$messageGroupFocus$($jumpComponentClientId$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentDialog", {$HandleComponentDialog$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentDialog$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentRedirect$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentRedirect$$($componentEvent$$192$$) {
  var $url$$55$$ = $componentEvent$$192$$.$getURL$();
  $AdfPage$$.$PAGE$.$doRedirect$($url$$55$$, $componentEvent$$192$$.$getNavigationSuppressed$());
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentRedirect", {$HandleComponentRedirect$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentRedirect$});
$AdfDhtmlDocumentPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlDocumentPeer$$$$$PopupClosed$$($component$$1066$$, $contentDom$$9$$) {
  $AdfDhtmlDocumentPeer$$.$superclass$.$PopupClosed$.call(this, $component$$1066$$, $contentDom$$9$$);
  $AdfDomUtils$$.$removeCSSClassName$($contentDom$$9$$, $AdfRichUIPeer$$.$HOVER_TARGET_STYLECLASS$);
  $AdfDomUtils$$.$removeCSSClassName$($contentDom$$9$$, $AdfDhtmlDocumentPeer$$.$_INACTIVE_STYLECLASS$);
  var $containerId$$3_containerNode$$2$$ = $JSCompiler_StaticMethods__getMessageDialogContainerId$$(this);
  ($containerId$$3_containerNode$$2$$ = $AdfAgent$$.$AGENT$.getElementById($containerId$$3_containerNode$$2$$)) && $containerId$$3_containerNode$$2$$.appendChild($contentDom$$9$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlDocumentPeer$$.prototype.$PopupClosed$});
$AdfDhtmlDocumentPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlDocumentPeer$$$$$InitDomElement$$($component$$1067$$, $domElement$$189$$) {
  var $callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ = $AdfPage$$.$PAGE$;
  $AdfDhtmlDocumentPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1067$$, $domElement$$189$$);
  var $loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$ = new $AdfComponentEvent$$($component$$1067$$, "load");
  $callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$.$_initializationComplete$ ? $loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$.$queue$() : ($loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$ = $loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$.$createCallback$($loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$.$queue$), $callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$.$setOnLoadCallback$($loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$));
  $component$$1067$$.getInitialFocusId() && (this.$_activateFocusCallback$ = this.$createCallback$(this.$_activateFocus$), this.$_focusTimerId$ = window.setTimeout(this.$_activateFocusCallback$, 50));
  this.$_globalMessageCount$ = 0;
  $callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ = !1;
  $loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$ = $AdfDhtmlDocumentPeer$$.$_getSkipLinkTargetId$($component$$1067$$);
  $loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$ ? null == $AdfAgent$$.$AGENT$.getElementById($loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$) && ($callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ = !0, $AdfLogger$$.$LOGGER$.warning("Unable to locate skip link target: " + $loadEvent_queueCallback_skipLinkTargetId$$inline_1894$$ + ".  Make sure that af:skipLinkTarget is contained within a parent that generates content (and an id).")) : 
  $callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ = !0;
  $callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ && ($callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ = $JSCompiler_StaticMethods__getSkipLinkElement$$($component$$1067$$)) && ($callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$.style.display = "none");
  ($callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ = $component$$1067$$.getTitle()) && this.$getDomDocument$().title != $callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ && ($callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$ = this.$createCallback$(this.$_delayedSetDocumentTitle$), setTimeout($callback$$inline_1900_hideSkipLink$$inline_1893_page$$109_skipLinkElement$$inline_1895_title$$inline_1899$$, 
  0));
  this.$_setUncommittedDataWarning$($component$$1067$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlDocumentPeer$$.prototype.$InitDomElement$});
$AdfDhtmlDocumentPeer$$.prototype.$ReplaceDomElement$ = function $$AdfDhtmlDocumentPeer$$$$$ReplaceDomElement$$($newElement$$15$$, $oldElement$$6$$) {
  var $agent$$285_documentClientId$$7_iconContainerId$$ = this.$getComponent$().$getClientId$(), $agent$$285_documentClientId$$7_iconContainerId$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$285_documentClientId$$7_iconContainerId$$, $AdfDhtmlDocumentPeer$$.$_ICON_CONTAINER_ID$);
  if ($newElement$$15$$.id == $agent$$285_documentClientId$$7_iconContainerId$$) {
    for (var $agent$$285_documentClientId$$7_iconContainerId$$ = $AdfAgent$$.$AGENT$, $currChild$$7$$ = $newElement$$15$$.firstChild;$currChild$$7$$;) {
      var $nextChild$$ = $currChild$$7$$.nextSibling;
      if (1 == $currChild$$7$$.nodeType) {
        var $id$$288$$ = $currChild$$7$$.id;
        $id$$288$$ && !$agent$$285_documentClientId$$7_iconContainerId$$.getElementById($id$$288$$) && ($oldElement$$6$$.appendChild($currChild$$7$$), $agent$$285_documentClientId$$7_iconContainerId$$.$elementsAdded$($currChild$$7$$));
      }
      $currChild$$7$$ = $nextChild$$;
    }
  } else {
    $AdfDhtmlDocumentPeer$$.$superclass$.$ReplaceDomElement$.call(this, $newElement$$15$$, $oldElement$$6$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.ReplaceDomElement", {$ReplaceDomElement$:$AdfDhtmlDocumentPeer$$.prototype.$ReplaceDomElement$});
$AdfDhtmlDocumentPeer$$.prototype.$MessageShow$ = function $$AdfDhtmlDocumentPeer$$$$$MessageShow$$($maxType$$6$$, $messages$$12$$) {
  this.$_messageUpdate$($maxType$$6$$, $messages$$12$$, !0);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.MessageShow", {$MessageShow$:$AdfDhtmlDocumentPeer$$.prototype.$MessageShow$});
$AdfDhtmlDocumentPeer$$.prototype.$MessageNotify$ = function $$AdfDhtmlDocumentPeer$$$$$MessageNotify$$($maxType$$7$$, $messages$$13$$) {
  this.$_messageUpdate$($maxType$$7$$, $messages$$13$$, !1);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.MessageNotify", {$MessageNotify$:$AdfDhtmlDocumentPeer$$.prototype.$MessageNotify$});
$AdfDhtmlDocumentPeer$$.prototype.$_messageUpdate$ = function $$AdfDhtmlDocumentPeer$$$$$_messageUpdate$$($maxType$$8_tempMaxType$$, $globalMessageCount_messages$$14$$, $alwaysShow_styleClass$$10$$) {
  var $page$$110_realMaxType$$ = $AdfPage$$.$PAGE$, $dialogId$$5_slaveComponent$$2$$ = $JSCompiler_StaticMethods__getSlaveComponent$$(), $globalOnly$$2$$ = !1;
  null != $dialogId$$5_slaveComponent$$2$$ && ($globalOnly$$2$$ = $dialogId$$5_slaveComponent$$2$$.getGlobalOnly());
  var $compMessages$$1_component$$1068$$ = this.$getComponent$(), $clientId$$199_dialog$$6_wrapper$$20$$ = $compMessages$$1_component$$1068$$.$getClientId$(), $allMessages$$1_dialogContent_div$$6$$ = $page$$110_realMaxType$$.$getAllMessages$(), $globalMessages$$1$$ = $allMessages$$1_dialogContent_div$$6$$[$clientId$$199_dialog$$6_wrapper$$20$$];
  $globalMessageCount_messages$$14$$ = 0;
  null != $globalMessages$$1$$ && ($globalMessageCount_messages$$14$$ = $globalMessages$$1$$.length);
  if (!$alwaysShow_styleClass$$10$$ && !$AdfMessageUtils$$.$hasMessages$($page$$110_realMaxType$$, $globalMessageCount_messages$$14$$, $globalOnly$$2$$)) {
    $AdfMessageUtils$$.$HideMessagesDialog$();
  } else {
    if ($alwaysShow_styleClass$$10$$ && !$AdfMessageUtils$$.$isPageLevelBoxNeeded$($page$$110_realMaxType$$, $globalMessages$$1$$, $globalOnly$$2$$)) {
      for ($clientId$$199_dialog$$6_wrapper$$20$$ in $AdfMessageUtils$$.$HideMessagesDialog$(), $allMessages$$1_dialogContent_div$$6$$) {
        $compMessages$$1_component$$1068$$ = $allMessages$$1_dialogContent_div$$6$$[$clientId$$199_dialog$$6_wrapper$$20$$], null != $compMessages$$1_component$$1068$$ && null != $compMessages$$1_component$$1068$$.$compId$ && $AdfMessageUtils$$.$messageGroupFocus$($clientId$$199_dialog$$6_wrapper$$20$$);
      }
    } else {
      if ($alwaysShow_styleClass$$10$$ || this.$isPopupVisible$($compMessages$$1_component$$1068$$) || this.$_globalMessageCount$ < $globalMessageCount_messages$$14$$) {
        var $agent$$286$$ = $AdfAgent$$.$AGENT$, $message$$63$$ = null, $text$$30$$ = null, $shortDesc$$ = null;
        $alwaysShow_styleClass$$10$$ = null;
        null != $dialogId$$5_slaveComponent$$2$$ && ($message$$63$$ = $dialogId$$5_slaveComponent$$2$$.getMessage(), $text$$30$$ = $dialogId$$5_slaveComponent$$2$$.getText(), $shortDesc$$ = $dialogId$$5_slaveComponent$$2$$.getShortDesc(), $alwaysShow_styleClass$$10$$ = $dialogId$$5_slaveComponent$$2$$.getStyleClass());
        var $dialogId$$5_slaveComponent$$2$$ = this.$getMessageDialogId$(), $dialogComponent$$ = $page$$110_realMaxType$$.$findComponent$($dialogId$$5_slaveComponent$$2$$), $root$$8$$ = this.$getDomElement$(), $page$$110_realMaxType$$ = 0;
        null != $maxType$$8_tempMaxType$$ && ($page$$110_realMaxType$$ = $maxType$$8_tempMaxType$$);
        if ($globalOnly$$2$$) {
          $page$$110_realMaxType$$ = $globalMessages$$1$$.$maxType$;
        } else {
          for (var $clientId2$$ in $allMessages$$1_dialogContent_div$$6$$) {
            $maxType$$8_tempMaxType$$ = $allMessages$$1_dialogContent_div$$6$$[$clientId2$$].$maxType$, $maxType$$8_tempMaxType$$ > $page$$110_realMaxType$$ && ($page$$110_realMaxType$$ = $maxType$$8_tempMaxType$$);
          }
        }
        if ($agent$$286$$.$getExpandoProperty$($root$$8$$, $AdfRichUIPeer$$.$__TYPE_ATTR$) != $page$$110_realMaxType$$) {
          $agent$$286$$.$setExpandoProperty$($root$$8$$, $AdfRichUIPeer$$.$__TYPE_ATTR$, $page$$110_realMaxType$$);
          var $titleIcon$$;
          null != $alwaysShow_styleClass$$10$$ && ($titleIcon$$ = $AdfMessageUtils$$.$getIconWithPrefix$($page$$110_realMaxType$$, "." + $alwaysShow_styleClass$$10$$ + " ", !0), null == $titleIcon$$ && $AdfLogger$$.$LOGGER$.warning("Icon not found with style class " + $alwaysShow_styleClass$$10$$ + ".  Make sure that skin contains class prefixed the message styleCalss: ." + $alwaysShow_styleClass$$10$$));
          $titleIcon$$ || ($titleIcon$$ = $AdfMessageUtils$$.getIcon($page$$110_realMaxType$$, !0));
          $dialogComponent$$.setTitleIconSource($titleIcon$$.src);
          $text$$30$$ ? $dialogComponent$$.setTitle($text$$30$$) : $dialogComponent$$.setTitle($AdfMessageUtils$$.$getString$($page$$110_realMaxType$$));
        }
        $allMessages$$1_dialogContent_div$$6$$ = $AdfRichUIPeer$$.$CreateSubId$($dialogId$$5_slaveComponent$$2$$, "_cnt");
        if ($allMessages$$1_dialogContent_div$$6$$ = $agent$$286$$.getElementById($allMessages$$1_dialogContent_div$$6$$)) {
          $clientId$$199_dialog$$6_wrapper$$20$$ = $AdfMessageUtils$$.$getCombinedMessagesDom$($clientId$$199_dialog$$6_wrapper$$20$$, $message$$63$$, $globalOnly$$2$$), null != $shortDesc$$ && ($clientId$$199_dialog$$6_wrapper$$20$$.title = $shortDesc$$), $allMessages$$1_dialogContent_div$$6$$.hasChildNodes() ? $allMessages$$1_dialogContent_div$$6$$.replaceChild($clientId$$199_dialog$$6_wrapper$$20$$, $allMessages$$1_dialogContent_div$$6$$.firstChild) : $allMessages$$1_dialogContent_div$$6$$.appendChild($clientId$$199_dialog$$6_wrapper$$20$$)
          ;
        }
        this.$isMessagesInline$() && ($clientId$$199_dialog$$6_wrapper$$20$$ = $agent$$286$$.getElementById($dialogId$$5_slaveComponent$$2$$), this.$UpdateMessageType$($clientId$$199_dialog$$6_wrapper$$20$$, $page$$110_realMaxType$$), null != $alwaysShow_styleClass$$10$$ && $allMessages$$1_dialogContent_div$$6$$ && $AdfAgent$$.$AGENT$.getAttribute($allMessages$$1_dialogContent_div$$6$$, "data-afr-msg-apply-class") && $AdfDomUtils$$.$addCSSClassName$($clientId$$199_dialog$$6_wrapper$$20$$, $alwaysShow_styleClass$$10$$), 
        this.$showPopup$($compMessages$$1_component$$1068$$, $clientId$$199_dialog$$6_wrapper$$20$$, {topPosition:.25}));
      }
    }
  }
  this.$_globalMessageCount$ = $globalMessageCount_messages$$14$$;
};
function $JSCompiler_StaticMethods__getSlaveComponent$$() {
  var $page$$111$$ = $AdfPage$$.$PAGE$, $slaveClientId$$ = $page$$111$$.$getMessageHandlerSlaveComponentId$();
  return null != $slaveClientId$$ ? $page$$111$$.$findComponent$($slaveClientId$$) : null;
}
$AdfDhtmlDocumentPeer$$.prototype.$_activateFocus$ = function $$AdfDhtmlDocumentPeer$$$$$_activateFocus$$() {
  var $focusId$$1$$ = this.$getComponent$().getInitialFocusId();
  if ($focusId$$1$$) {
    var $focusComp$$ = $AdfPage$$.$PAGE$.$findComponentByAbsoluteId$($focusId$$1$$);
    $focusComp$$ ? $focusComp$$.focus() : $AdfLogger$$.$LOGGER$.warning("Invalid component id referenced by document initialFocusId: " + $focusId$$1$$ + ". You may need to set clientComponent to true for the desired focus component.");
  }
  window.clearTimeout(this.$_focusTimerId$);
  this.$_focusTimerId$ = this.$_activateFocusCallback$ = null;
};
function $JSCompiler_StaticMethods__getSkipLinkElement$$($component$$1070_documentId_skipLinkId$$) {
  $AdfAssert$$.assert($component$$1070_documentId_skipLinkId$$);
  $component$$1070_documentId_skipLinkId$$ = $component$$1070_documentId_skipLinkId$$.$getClientId$();
  $component$$1070_documentId_skipLinkId$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1070_documentId_skipLinkId$$, $AdfDhtmlDocumentPeer$$.$_SKIP_LINK_ID$);
  return $AdfAgent$$.$AGENT$.getElementById($component$$1070_documentId_skipLinkId$$);
}
$AdfDhtmlDocumentPeer$$.$_getSkipLinkTargetId$ = function $$AdfDhtmlDocumentPeer$$$$_getSkipLinkTargetId$$($component$$1071$$) {
  return $component$$1071$$.$getProperty$("_afrSkpLnk");
};
$AdfDhtmlDocumentPeer$$.$_isPotentiallyFocusable$ = function $$AdfDhtmlDocumentPeer$$$$_isPotentiallyFocusable$$($element$$225$$) {
  if ($AdfFocusUtils$$.$isFocusable$($element$$225$$)) {
    return !0;
  }
  var $potentiallyFocusable$$ = !1;
  switch($element$$225$$.nodeName.toLowerCase()) {
    case "div":
    ;
    case "span":
    ;
    case "h1":
    ;
    case "h2":
    ;
    case "h3":
    ;
    case "h4":
    ;
    case "h5":
    ;
    case "h6":
      $potentiallyFocusable$$ = !0;
  }
  return $potentiallyFocusable$$ ? $AdfFocusUtils$$.$isConnectedAndVisible$($element$$225$$) : !1;
};
$AdfDhtmlDocumentPeer$$.prototype.$_delayedSetDocumentTitle$ = function $$AdfDhtmlDocumentPeer$$$$$_delayedSetDocumentTitle$$() {
  var $doc$$43$$ = this.$getDomDocument$(), $comp$$4$$ = this.$getComponent$();
  $comp$$4$$ && ($doc$$43$$.title = $comp$$4$$.getTitle());
};
$AdfDhtmlDocumentPeer$$.prototype.$_setUncommittedDataWarning$ = function $$AdfDhtmlDocumentPeer$$$$$_setUncommittedDataWarning$$($component$$1074_opt$$) {
  $component$$1074_opt$$ = $component$$1074_opt$$.getUncommittedDataWarning();
  $AdfPage$$.$PAGE$.$__initUncommittedDataWarningForDocument$($component$$1074_opt$$ && "on" == $component$$1074_opt$$.toLowerCase());
};
$AdfDhtmlDocumentPeer$$.prototype.$__showAlertConfirm$ = function $$AdfDhtmlDocumentPeer$$$$$__showAlertConfirm$$($isAlert_state$$40$$, $title$$12$$, $message$$64$$, $callback$$102$$, $timeout$$2$$) {
  $AdfAssert$$.$assertString$($title$$12$$);
  $AdfAssert$$.$assertString$($message$$64$$);
  $AdfAssert$$.$assertFunction$($callback$$102$$, "confirm callback");
  $timeout$$2$$ && $AdfAssert$$.$assertNumber$($timeout$$2$$, "confirm timeout");
  var $page$$113$$ = $AdfPage$$.$PAGE$, $dialogId$$6_popupUtilContainer$$ = $AdfAgent$$.$AGENT$.getElementById($AdfDhtmlDocumentPeer$$.$_ALERT_CONFIRM_DIALOG_CONTAINER_ID$);
  $AdfAssert$$.$assertDomElement$($dialogId$$6_popupUtilContainer$$, "DIV");
  $dialogId$$6_popupUtilContainer$$ = $dialogId$$6_popupUtilContainer$$.getAttribute($AdfDhtmlDocumentPeer$$.$_ALERT_CONFIRM_DIALOG_ID_EXPANDO$);
  $AdfAssert$$.$assertString$($dialogId$$6_popupUtilContainer$$);
  var $dialog$$7$$ = $page$$113$$.$findComponent$($dialogId$$6_popupUtilContainer$$);
  $AdfAssert$$.$assertPrototype$($dialog$$7$$, AdfRichDialog);
  var $popup$$16$$ = $dialog$$7$$.getParent();
  $AdfAssert$$.$assertPrototype$($popup$$16$$, AdfRichPopup);
  if ($popup$$16$$.$isPopupVisible$()) {
    return !1;
  }
  $dialog$$7$$.setTitle($title$$12$$);
  $AdfDhtmlDocumentPeer$$.$_setAlertConfirmMessage$($dialogId$$6_popupUtilContainer$$, $message$$64$$);
  $AdfDhtmlDialogPeer$$.$__setButtonVisible$($dialogId$$6_popupUtilContainer$$, !$isAlert_state$$40$$);
  $dialog$$7$$.addEventListener($AdfDialogEvent$$.$EVENT_TYPE$, $AdfDhtmlDocumentPeer$$.$_alertConfirmCallback$);
  $isAlert_state$$40$$ = {$callback$:$callback$$102$$, $dialogId$:$dialogId$$6_popupUtilContainer$$};
  $timeout$$2$$ && ($isAlert_state$$40$$.$timerId$ = $page$$113$$.$scheduleTimer$(this, $AdfDhtmlDocumentPeer$$.$_alertConfirmTimeoutCallback$, $dialogId$$6_popupUtilContainer$$, $timeout$$2$$));
  $page$$113$$.$setPageProperty$($dialogId$$6_popupUtilContainer$$, $isAlert_state$$40$$);
  $popup$$16$$.show({zorderScope:2});
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.__showAlertConfirm", {$__showAlertConfirm$:$AdfDhtmlDocumentPeer$$.prototype.$__showAlertConfirm$});
function $JSCompiler_StaticMethods__getMessageDialogContainerId$$($JSCompiler_StaticMethods__getMessageDialogContainerId$self_clientId$$200$$) {
  $JSCompiler_StaticMethods__getMessageDialogContainerId$self_clientId$$200$$ = $JSCompiler_StaticMethods__getMessageDialogContainerId$self_clientId$$200$$.$getComponent$().$getClientId$();
  return $AdfRichUIPeer$$.$CreateSubId$($JSCompiler_StaticMethods__getMessageDialogContainerId$self_clientId$$200$$, $AdfDhtmlDocumentPeer$$.$_MESSAGE_DIALOG_CONTAINER_ID$);
}
$AdfDhtmlDocumentPeer$$.$_alertConfirmTimeoutCallback$ = function $$AdfDhtmlDocumentPeer$$$$_alertConfirmTimeoutCallback$$($dialog$$8_dialogId$$7$$) {
  $dialog$$8_dialogId$$7$$ = $AdfPage$$.$PAGE$.$findComponent$($dialog$$8_dialogId$$7$$);
  var $peer$$114$$ = $dialog$$8_dialogId$$7$$.$getPeer$();
  $peer$$114$$.bind($dialog$$8_dialogId$$7$$);
  $peer$$114$$.$fireCancel$();
};
$AdfDhtmlDocumentPeer$$.$_alertConfirmCallback$ = function $$AdfDhtmlDocumentPeer$$$$_alertConfirmCallback$$($event$$194$$) {
  $event$$194$$.cancel();
  var $dialog$$9$$ = $event$$194$$.getSource(), $dialogId$$8$$ = $dialog$$9$$.$getClientId$(), $callback$$103_page$$114_popup$$17$$ = $dialog$$9$$.getParent();
  $AdfAssert$$.$assertPrototype$($callback$$103_page$$114_popup$$17$$, AdfRichPopup);
  $callback$$103_page$$114_popup$$17$$.cancel();
  var $callback$$103_page$$114_popup$$17$$ = $AdfPage$$.$PAGE$, $state$$41$$ = $callback$$103_page$$114_popup$$17$$.$getPageProperty$($dialogId$$8$$);
  $AdfAssert$$.$assertObject$($state$$41$$, "alert/confirm state token invalid");
  $callback$$103_page$$114_popup$$17$$.$setPageProperty$($dialogId$$8$$, null);
  $state$$41$$.$timerId$ && $callback$$103_page$$114_popup$$17$$.$cancelTimer$($state$$41$$.$timerId$);
  $callback$$103_page$$114_popup$$17$$ = $state$$41$$.$callback$;
  try {
    $callback$$103_page$$114_popup$$17$$($event$$194$$);
  } catch ($e$$127$$) {
    $AdfLogger$$.$LOGGER$.$logErrorAsWarning$($e$$127$$, "exception caught calling alert/confirm dialog event callback");
  }
  $dialog$$9$$.setTitle("");
  $AdfDhtmlDocumentPeer$$.$_setAlertConfirmMessage$($dialogId$$8$$, "");
  $dialog$$9$$.removeEventListener($AdfDialogEvent$$.$EVENT_TYPE$, $AdfDhtmlDocumentPeer$$.$_alertConfirmCallback$);
};
$AdfDhtmlDocumentPeer$$.$_setAlertConfirmMessage$ = function $$AdfDhtmlDocumentPeer$$$$_setAlertConfirmMessage$$($dialogId$$9$$, $message$$65$$) {
  var $agent$$288$$ = $AdfAgent$$.$AGENT$, $contentDom$$10_contentId$$4$$ = $AdfRichUIPeer$$.$createSubId$($dialogId$$9$$, $AdfDhtmlDocumentPeer$$.$_DIALOG_CONTENT_SUBID$), $contentDom$$10_contentId$$4$$ = $agent$$288$$.getElementById($contentDom$$10_contentId$$4$$);
  $AdfAssert$$.$assertDomElement$($contentDom$$10_contentId$$4$$, "TD");
  $agent$$288$$.$setTextContent$($contentDom$$10_contentId$$4$$, $message$$65$$);
};
