var $AdfDhtmlMessagesPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlMessagesPeer");
$goog$exportSymbol$$("AdfDhtmlMessagesPeer", $AdfDhtmlMessagesPeer$$);
$AdfDhtmlMessagesPeer$$.$InitSubclass$ = function $$AdfDhtmlMessagesPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichMessages.SHORT_DESC);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichMessages.MESSAGE);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichMessages.TEXT);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichMessages.GLOBAL_ONLY);
  $AdfDhtmlMessagesPeer$$.$_ATTRIBUTE_GLOBAL_ONLY$ = "_afrGlobalOnly";
  $AdfDhtmlMessagesPeer$$.$_ATTRIBUTE_MESSAGE$ = "_afrMessage";
  $AdfDhtmlMessagesPeer$$.$_ATTRIBUTE_TEXT$ = "_afrText";
  $AdfDhtmlMessagesPeer$$.$_HEADER_TEXT_STYLE_CLASS$ = "af|messages::header-text";
  $AdfDhtmlMessagesPeer$$.$_MESSAGES_INTRO_CLASS$ = "af|messages::intro";
  $AdfDhtmlMessagesPeer$$.$_MESSAGES_GROUP_TITLE_CLASS$ = "af|messages::message-group-title";
  $AdfDhtmlMessagesPeer$$.$_MESSAGES_TYPE_CLASS$ = "af|messages::type";
  $AdfDhtmlMessagesPeer$$.$_MESSAGES_DETAIL_CLASS$ = "af|messages::detail"
};
$goog$exportSymbol$$("AdfDhtmlMessagesPeer.InitSubclass", $AdfDhtmlMessagesPeer$$.$InitSubclass$);
$AdfDhtmlMessagesPeer$$.prototype.$componentRemoved$ = function $$AdfDhtmlMessagesPeer$$$$$componentRemoved$$($ancestor$$2_component$$1122$$) {
  $AdfDhtmlMessagesPeer$$.$superclass$.$componentRemoved$.call(this, $ancestor$$2_component$$1122$$);
  var $page$$123$$ = $AdfPage$$.$PAGE$, $defaultMessageHandlerId$$ = $page$$123$$.$getDefaultMessageHandlerComponentId$(), $slaveMessageHandlerId$$ = $page$$123$$.$getMessageHandlerSlaveComponentId$(), $clientId$$232$$ = $ancestor$$2_component$$1122$$.$getClientId$(), $reset$$ = $JSCompiler_alias_FALSE$$;
  if($clientId$$232$$ == $defaultMessageHandlerId$$) {
    for(var $reset$$ = $JSCompiler_alias_TRUE$$, $documentId$$1$$;$ancestor$$2_component$$1122$$ && !$documentId$$1$$;) {
      ($ancestor$$2_component$$1122$$ = $ancestor$$2_component$$1122$$.getParent()) && $ancestor$$2_component$$1122$$ instanceof AdfRichDocument && ($documentId$$1$$ = $ancestor$$2_component$$1122$$.$getClientId$())
    }
    $defaultMessageHandlerId$$ = $documentId$$1$$
  }
  $clientId$$232$$ == $slaveMessageHandlerId$$ && ($AdfMessageUtils$$.$HideMessagesDialog$(), $reset$$ = $JSCompiler_alias_TRUE$$, $slaveMessageHandlerId$$ = $JSCompiler_alias_NULL$$);
  $reset$$ && $page$$123$$.$setDefaultMessageHandlerComponentId$($defaultMessageHandlerId$$, $slaveMessageHandlerId$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.componentRemoved", {$componentRemoved$:$AdfDhtmlMessagesPeer$$.prototype.$componentRemoved$});
$AdfDhtmlMessagesPeer$$.prototype.$isMessagesDialogShowable$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.isMessagesDialogShowable", {$isMessagesDialogShowable$:$AdfDhtmlMessagesPeer$$.prototype.$isMessagesDialogShowable$});
$AdfDhtmlMessagesPeer$$.prototype.$setMessagesDialogShown$ = $JSCompiler_emptyFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.setMessagesDialogShown", {$setMessagesDialogShown$:$AdfDhtmlMessagesPeer$$.prototype.$setMessagesDialogShown$});
$AdfDhtmlMessagesPeer$$.prototype.$GetComponentShortDesc$ = function $$AdfDhtmlMessagesPeer$$$$$GetComponentShortDesc$$($component$$1123$$, $root$$7$$) {
  return $AdfAgent$$.$AGENT$.getAttribute($root$$7$$, "title")
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.GetComponentShortDesc", {$GetComponentShortDesc$:$AdfDhtmlMessagesPeer$$.prototype.$GetComponentShortDesc$});
$AdfDhtmlMessagesPeer$$.prototype.$GetComponentMessage$ = function $$AdfDhtmlMessagesPeer$$$$$GetComponentMessage$$($component$$1124$$, $root$$8$$) {
  return $AdfAgent$$.$AGENT$.getAttribute($root$$8$$, $AdfDhtmlMessagesPeer$$.$_ATTRIBUTE_MESSAGE$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.GetComponentMessage", {$GetComponentMessage$:$AdfDhtmlMessagesPeer$$.prototype.$GetComponentMessage$});
$AdfDhtmlMessagesPeer$$.prototype.$GetComponentText$ = function $$AdfDhtmlMessagesPeer$$$$$GetComponentText$$($component$$1125$$, $root$$9$$) {
  return $AdfAgent$$.$AGENT$.getAttribute($root$$9$$, $AdfDhtmlMessagesPeer$$.$_ATTRIBUTE_TEXT$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.GetComponentText", {$GetComponentText$:$AdfDhtmlMessagesPeer$$.prototype.$GetComponentText$});
$AdfDhtmlMessagesPeer$$.prototype.$GetComponentGlobalOnly$ = function $$AdfDhtmlMessagesPeer$$$$$GetComponentGlobalOnly$$($component$$1126$$, $root$$10$$) {
  return $AdfAgent$$.$AGENT$.$getBooleanAttribute$($root$$10$$, $AdfDhtmlMessagesPeer$$.$_ATTRIBUTE_GLOBAL_ONLY$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.GetComponentGlobalOnly", {$GetComponentGlobalOnly$:$AdfDhtmlMessagesPeer$$.prototype.$GetComponentGlobalOnly$});
$AdfDhtmlMessagesPeer$$.prototype.$MessageShow$ = function $$AdfDhtmlMessagesPeer$$$$$MessageShow$$($maxType$$10$$, $messages$$16$$) {
  this.$_messageUpdate$($maxType$$10$$, $messages$$16$$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.MessageShow", {$MessageShow$:$AdfDhtmlMessagesPeer$$.prototype.$MessageShow$});
$AdfDhtmlMessagesPeer$$.prototype.$MessageNotify$ = function $$AdfDhtmlMessagesPeer$$$$$MessageNotify$$($maxType$$11$$, $messages$$17$$) {
  $AdfDhtmlMessagesPeer$$.$superclass$.$MessageNotify$.call(this, $maxType$$11$$, $messages$$17$$);
  this.$_messageUpdate$($maxType$$11$$, $messages$$17$$, $JSCompiler_alias_FALSE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMessagesPeer.prototype.MessageNotify", {$MessageNotify$:$AdfDhtmlMessagesPeer$$.prototype.$MessageNotify$});
$AdfDhtmlMessagesPeer$$.prototype.$_messageUpdate$ = function $$AdfDhtmlMessagesPeer$$$$$_messageUpdate$$($maxType$$12_message$$65_wrapper$$15$$, $messages$$18_page$$124$$, $alwaysShow$$1_compMessages$$2_table$$14$$) {
  $messages$$18_page$$124$$ = $AdfPage$$.$PAGE$;
  var $component$$1127$$ = this.$getComponent$(), $clientId$$233$$ = $component$$1127$$.$getClientId$(), $allMessages$$2$$ = $messages$$18_page$$124$$.$getAllMessages$(), $root$$11$$ = this.$getDomElement$(), $globalOnly$$3$$ = this.$GetComponentGlobalOnly$($component$$1127$$, $root$$11$$), $globalMessages$$2_tempMaxType$$1$$ = $allMessages$$2$$[$clientId$$233$$], $cell$$3_globalMessageCount$$1$$ = 0;
  $globalMessages$$2_tempMaxType$$1$$ != $JSCompiler_alias_NULL$$ && ($cell$$3_globalMessageCount$$1$$ = $globalMessages$$2_tempMaxType$$1$$.length);
  if($alwaysShow$$1_compMessages$$2_table$$14$$ && !$AdfMessageUtils$$.$isPageLevelBoxNeeded$($messages$$18_page$$124$$, $globalMessages$$2_tempMaxType$$1$$, $globalOnly$$3$$)) {
    for(var $agent$$346_messageId$$1$$ in $allMessages$$2$$) {
      $alwaysShow$$1_compMessages$$2_table$$14$$ = $allMessages$$2$$[$agent$$346_messageId$$1$$], $alwaysShow$$1_compMessages$$2_table$$14$$ != $JSCompiler_alias_NULL$$ && $alwaysShow$$1_compMessages$$2_table$$14$$.$compId$ != $JSCompiler_alias_NULL$$ && $AdfMessageUtils$$.$messageGroupFocus$($agent$$346_messageId$$1$$)
    }
  }
  if($AdfMessageUtils$$.$hasMessages$($messages$$18_page$$124$$, $cell$$3_globalMessageCount$$1$$, $globalOnly$$3$$)) {
    $AdfDomUtils$$.$removeAllNodes$($root$$11$$);
    $agent$$346_messageId$$1$$ = $AdfAgent$$.$AGENT$;
    $alwaysShow$$1_compMessages$$2_table$$14$$ = $agent$$346_messageId$$1$$.$getDomDocument$().createElement("table");
    $alwaysShow$$1_compMessages$$2_table$$14$$.summary = "";
    $alwaysShow$$1_compMessages$$2_table$$14$$.setAttribute("role", "presentation");
    var $row$$47$$ = $alwaysShow$$1_compMessages$$2_table$$14$$.insertRow(-1), $cell$$3_globalMessageCount$$1$$ = $row$$47$$.insertCell(-1);
    $maxType$$12_message$$65_wrapper$$15$$ == $JSCompiler_alias_NULL$$ && ($maxType$$12_message$$65_wrapper$$15$$ = 0);
    if($globalOnly$$3$$) {
      $maxType$$12_message$$65_wrapper$$15$$ = $globalMessages$$2_tempMaxType$$1$$.$maxType$
    }else {
      for(var $clientId2$$1_icon$$16_laf$$61_text$$36$$ in $allMessages$$2$$) {
        $globalMessages$$2_tempMaxType$$1$$ = $allMessages$$2$$[$clientId2$$1_icon$$16_laf$$61_text$$36$$].$maxType$, $globalMessages$$2_tempMaxType$$1$$ > $maxType$$12_message$$65_wrapper$$15$$ && ($maxType$$12_message$$65_wrapper$$15$$ = $globalMessages$$2_tempMaxType$$1$$)
      }
    }
    $clientId2$$1_icon$$16_laf$$61_text$$36$$ = $AdfMessageUtils$$.getIcon($maxType$$12_message$$65_wrapper$$15$$, $JSCompiler_alias_TRUE$$);
    $cell$$3_globalMessageCount$$1$$.appendChild($clientId2$$1_icon$$16_laf$$61_text$$36$$);
    $cell$$3_globalMessageCount$$1$$ = $row$$47$$.insertCell(-1);
    $clientId2$$1_icon$$16_laf$$61_text$$36$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
    $AdfDomUtils$$.$addCSSClassName$($cell$$3_globalMessageCount$$1$$, $clientId2$$1_icon$$16_laf$$61_text$$36$$.getStyleClass($AdfDhtmlMessagesPeer$$.$_HEADER_TEXT_STYLE_CLASS$));
    $clientId2$$1_icon$$16_laf$$61_text$$36$$ = $component$$1127$$.getText();
    $clientId2$$1_icon$$16_laf$$61_text$$36$$ == $JSCompiler_alias_NULL$$ ? $agent$$346_messageId$$1$$.$setTextContent$($cell$$3_globalMessageCount$$1$$, $AdfMessageUtils$$.$getString$($maxType$$12_message$$65_wrapper$$15$$, $JSCompiler_alias_TRUE$$)) : $agent$$346_messageId$$1$$.$setTextContent$($cell$$3_globalMessageCount$$1$$, $clientId2$$1_icon$$16_laf$$61_text$$36$$);
    $root$$11$$.appendChild($alwaysShow$$1_compMessages$$2_table$$14$$);
    $maxType$$12_message$$65_wrapper$$15$$ = $component$$1127$$.getMessage();
    $maxType$$12_message$$65_wrapper$$15$$ = $AdfMessageUtils$$.$getCombinedMessagesDom$($clientId$$233$$, $maxType$$12_message$$65_wrapper$$15$$, $globalOnly$$3$$);
    $root$$11$$.appendChild($maxType$$12_message$$65_wrapper$$15$$);
    $root$$11$$.style.display = ""
  }else {
    $root$$11$$.style.display = "none", $AdfDomUtils$$.$removeAllNodes$($root$$11$$), $AdfMessageUtils$$.$HideMessagesDialog$()
  }
  $messages$$18_page$$124$$.$__queueDescendantResizeNotifySource$($component$$1127$$);
  $messages$$18_page$$124$$.$__doDescendantResizeNotify$()
};
