var $AdfDhtmlCommandToolbarButtonPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlCommandToolbarButtonPeer");
$goog$exportSymbol$$("AdfDhtmlCommandToolbarButtonPeer", $AdfDhtmlCommandToolbarButtonPeer$$);
$AdfDhtmlCommandToolbarButtonPeer$$.$InitSubclass$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_UP_EVENT_TYPE$);
  $AdfAgent$$.$AGENT$.$isTouchFirstDevice$() || $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$MOUSE_IN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_OUT_EVENT_TYPE$);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichCommandToolbarButton.DISABLED, AdfRichCommandToolbarButton.SELECTED, AdfRichCommandToolbarButton.SHORT_DESC, AdfRichCommandToolbarButton.TEXT);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichCommandToolbarButton.TEXT);
  this.$_POPUP_ELEMENT$ = "popEl";
  this.$_POPUP_CONTAINER$ = "popCtr";
  this.$_POPUP_CONTEXT_AREA$ = "popArea";
  this.$_POPUP_CONTENT_ID$ = "popup";
  this.$_POPUP_ID$ = "_afrPopId";
  this.$_AFR_GROUPID$ = "_afrGrp";
  this.$_DEPRESSED_STYLE_CLASS$ = "p_AFDepressed";
  this.$_SELECTED_STYLE_CLASS$ = "p_AFSelected";
  this.$_BUSY$ = "_busy";
};
$goog$exportSymbol$$("AdfDhtmlCommandToolbarButtonPeer.InitSubclass", $AdfDhtmlCommandToolbarButtonPeer$$.$InitSubclass$);
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$BindToComponent$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$BindToComponent$$($component$$992$$, $domElement$$152$$) {
  $AdfDhtmlCommandToolbarButtonPeer$$.$superclass$.$BindToComponent$.call(this, $component$$992$$, $domElement$$152$$);
  this.$_actionDisabled$ = $AdfDomUtils$$.$containsCSSClassName$($domElement$$152$$, "p_AFActionDisabled");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.BindToComponent", {$BindToComponent$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$BindToComponent$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$HandleComponentKeyDown$$($componentEvent$$174$$) {
  if (!$componentEvent$$174$$.$isCanceled$()) {
    var $keyCode$$54$$ = $componentEvent$$174$$.$getKeyCode$(), $component$$993$$ = this.$getComponent$(), $popupId$$35$$ = this.$_getPopupId$();
    if (this.$_isEventInRootElement$($componentEvent$$174$$)) {
      var $actionDisabledAndKeyPress$$1_isBusy$$14$$ = this.$_actionDisabled$ && ($keyCode$$54$$ == $AdfKeyStroke$$.$ENTER_KEY$ || $keyCode$$54$$ == $AdfKeyStroke$$.$SPACE_KEY$);
      $keyCode$$54$$ == $AdfKeyStroke$$.$ARROWDOWN_KEY$ || $actionDisabledAndKeyPress$$1_isBusy$$14$$ ? this.$_openPopupMenu$($popupId$$35$$, !0, $componentEvent$$174$$) : $keyCode$$54$$ == $AdfKeyStroke$$.$SPACE_KEY$ && ($actionDisabledAndKeyPress$$1_isBusy$$14$$ = $component$$993$$.$getProperty$($AdfDhtmlCommandToolbarButtonPeer$$.$_BUSY$), $component$$993$$.getDisabled() || $actionDisabledAndKeyPress$$1_isBusy$$14$$ || (this.$_execute$(), $componentEvent$$174$$.cancel()));
    }
    $keyCode$$54$$ == $AdfKeyStroke$$.$ESC_KEY$ && ($popupId$$35$$ || ($popupId$$35$$ = $component$$993$$.$getClientId$()), this.$hidePopup$($component$$993$$, $popupId$$35$$));
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$HandleComponentClick$$($component$$994_componentEvent$$175$$) {
  if ($component$$994_componentEvent$$175$$.$isLeftButtonPressed$() && !this.$_actionDisabled$ && !this.$_isInPopupSelector$($component$$994_componentEvent$$175$$) && this.$_isEventInRootElement$($component$$994_componentEvent$$175$$)) {
    $component$$994_componentEvent$$175$$ = this.$getComponent$();
    var $isBusy$$15$$ = $component$$994_componentEvent$$175$$.$getProperty$($AdfDhtmlCommandToolbarButtonPeer$$.$_BUSY$);
    $component$$994_componentEvent$$175$$.getDisabled() || $isBusy$$15$$ || this.$_execute$();
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$HandleComponentMouseOver$$($componentEvent$$176$$) {
  !this.$getComponent$().getDisabled() && this.$_isEventInRootElement$($componentEvent$$176$$) && this.$_displayMouseOverIcon$(this.$getComponent$());
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentMouseOut$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$HandleComponentMouseOut$$($componentEvent$$177$$) {
  var $component$$995$$ = this.$getComponent$();
  !$component$$995$$.getDisabled() && this.$_isEventInRootElement$($componentEvent$$177$$) && ($component$$995$$.getSelected() ? (this.$_setDepressedStyle$($component$$995$$, !0), this.$_displayMouseDownIcon$($component$$995$$)) : (this.$_setDepressedStyle$($component$$995$$, !1), this.$_displayDefaultIcon$($component$$995$$)));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$HandleComponentMouseUp$$($componentEvent$$178$$) {
  var $component$$996$$ = this.$getComponent$();
  !$component$$996$$.getDisabled() && $componentEvent$$178$$.$isLeftButtonPressed$() && this.$_isEventInRootElement$($componentEvent$$178$$) && (this.$_setDepressedStyle$($component$$996$$, !1), this.$_displayMouseOverIcon$($component$$996$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.HandleComponentMouseUp", {$HandleComponentMouseUp$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentMouseUp$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$HandleComponentMouseDown$$($componentEvent$$179$$) {
  var $component$$997_popupId$$36$$ = this.$getComponent$(), $isLeftButtonPressed$$2$$ = $componentEvent$$179$$.$isLeftButtonPressed$();
  !$component$$997_popupId$$36$$.getDisabled() && $isLeftButtonPressed$$2$$ && this.$_isEventInRootElement$($componentEvent$$179$$) && (this.$_setDepressedStyle$($component$$997_popupId$$36$$, !0), this.$_displayMouseDownIcon$($component$$997_popupId$$36$$), this.$_actionDisabled$ || this.$_isInPopupSelector$($componentEvent$$179$$)) && ($component$$997_popupId$$36$$ = this.$_getPopupId$(), this.$_openPopupMenu$($component$$997_popupId$$36$$, !1, $componentEvent$$179$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$ComponentDisabledChanged$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$ComponentDisabledChanged$$($component$$998$$, $domElement$$153$$, $newValue$$59$$) {
  var $buttonAnchor$$1$$ = $AdfDomUtils$$.$getFirstDescendentElement$($domElement$$153$$, "A");
  1 == $newValue$$59$$ ? ($AdfDomUtils$$.$addCSSClassName$($domElement$$153$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $buttonAnchor$$1$$.removeAttribute("href"), this.$_displayDisabledIcon$($component$$998$$), this.$_setAriaDisabled$($component$$998$$), $buttonAnchor$$1$$.setAttribute($AdfFocusUtils$$.$DESCENDANT_FOCUSABLE$, "false")) : ($AdfDomUtils$$.$removeCSSClassName$($domElement$$153$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $buttonAnchor$$1$$.setAttribute("href", "#"), this.$_displayDefaultIcon$($component$$998$$), 
  this.$_removeAriaDisabled$($component$$998$$), $buttonAnchor$$1$$.setAttribute($AdfFocusUtils$$.$DESCENDANT_FOCUSABLE$, "true"));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.ComponentDisabledChanged", {$ComponentDisabledChanged$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$ComponentDisabledChanged$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$ComponentSelectedChanged$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$ComponentSelectedChanged$$($component$$999$$, $domElement$$154$$, $newValue$$60$$) {
  var $type$$173$$ = $component$$999$$.getType();
  $newValue$$60$$ ? (this.$_setDepressedStyle$($component$$999$$, !0), $AdfDomUtils$$.$addCSSClassName$($domElement$$154$$, $AdfDhtmlCommandToolbarButtonPeer$$.$_SELECTED_STYLE_CLASS$), this.$_displayMouseDownIcon$($component$$999$$), "radio" == $type$$173$$ && (this.$_toggleRadioGroupItems$(), this.$_enableAriaChecked$($component$$999$$)), "check" == $type$$173$$ && this.$_enableAriaPressed$($component$$999$$)) : (this.$_setDepressedStyle$($component$$999$$, !1), $AdfDomUtils$$.$removeCSSClassName$($domElement$$154$$, 
  $AdfDhtmlCommandToolbarButtonPeer$$.$_SELECTED_STYLE_CLASS$), this.$_displayDefaultIcon$($component$$999$$), "radio" == $type$$173$$ && this.$_disableAriaChecked$($component$$999$$), "check" == $type$$173$$ && this.$_disableAriaPressed$($component$$999$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.ComponentSelectedChanged", {$ComponentSelectedChanged$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$ComponentSelectedChanged$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$ComponentShortDescChanged$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$ComponentShortDescChanged$$($component$$1000_icon$$8$$, $domElement$$155$$, $newValue$$61$$) {
  $domElement$$155$$.setAttribute("title", $newValue$$61$$);
  if ($component$$1000_icon$$8$$ = this.$_getIconElement$($component$$1000_icon$$8$$)) {
    $component$$1000_icon$$8$$.setAttribute("title", $newValue$$61$$), $component$$1000_icon$$8$$.setAttribute("alt", $newValue$$61$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.ComponentShortDescChanged", {$ComponentShortDescChanged$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$ComponentShortDescChanged$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$ComponentTextChanged$ = $AdfDomUtils$$.$__componentTextChanged$;
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$GetInlineEditor$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$GetInlineEditor$$() {
  return $AdfDhtmlSimpleTextEditor$$.$getInlineEditor$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.GetInlineEditor", {$GetInlineEditor$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$GetInlineEditor$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$GetComponentText$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$GetComponentText$$($component$$1001$$, $domElement$$156$$) {
  var $buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1001$$.$getClientId$(), $AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_CONTEXT_AREA$);
  if ($buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$ = ($buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$ = $AdfAgent$$.$AGENT$.getElementById($buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$)) ? $AdfDomUtils$$.$getPreviousElement$($buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$) : $domElement$$156$$) {
    if ($buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$ = $AdfDomUtils$$.$getFirstDescendentElement$($buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$, "span")) {
      if ($buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$ = $AdfAgent$$.$AGENT$.$getTextContent$($buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$), "" != $buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$) {
        return $buttonLinkCell$$1_popArea$$1_popAreaId$$1_text$$28_textElement$$3$$;
      }
    }
    return null;
  }
  $AdfAssert$$.assert(!1, "Unable to find the element containing the text");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.GetComponentText", {$GetComponentText$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$GetComponentText$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$SetBusy$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$SetBusy$$($isBusy$$16$$) {
  var $component$$1002$$ = this.$getComponent$(), $domElement$$157$$ = this.$getDomElement$();
  !$AdfDomUtils$$.$getFormElement$($domElement$$157$$) || $component$$1002$$.getDisabled() || $AdfPage$$.$PAGE$.$isAttachmentMode$() || ($AdfDomUtils$$.$addOrRemoveCSSClassName$($isBusy$$16$$, $domElement$$157$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $component$$1002$$.setProperty($AdfDhtmlCommandToolbarButtonPeer$$.$_BUSY$, $isBusy$$16$$, !1, $AdfUIComponent$$.$PROPAGATE_NEVER$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.SetBusy", {$SetBusy$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$SetBusy$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$PopupClosed$$($clientId$$192_component$$1003$$, $contentDom$$8$$, $containerId$$1_containerNode$$1_popupId$$37$$) {
  $AdfDhtmlCommandToolbarButtonPeer$$.$superclass$.$PopupClosed$.call(this, $clientId$$192_component$$1003$$, $contentDom$$8$$);
  $clientId$$192_component$$1003$$ = $clientId$$192_component$$1003$$.$getClientId$();
  $containerId$$1_containerNode$$1_popupId$$37$$ == $clientId$$192_component$$1003$$ && ($containerId$$1_containerNode$$1_popupId$$37$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$192_component$$1003$$, $AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_CONTAINER$), ($containerId$$1_containerNode$$1_popupId$$37$$ = $AdfAgent$$.$AGENT$.getElementById($containerId$$1_containerNode$$1_popupId$$37$$)) && $containerId$$1_containerNode$$1_popupId$$37$$.appendChild($contentDom$$8$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$PopupClosed$});
$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$__preferredSizeChangeNotify$ = function $$AdfDhtmlCommandToolbarButtonPeer$$$$$__preferredSizeChangeNotify$$($component$$1004_parent$$29$$) {
  this.bind($component$$1004_parent$$29$$);
  $component$$1004_parent$$29$$ = this.$getComponentParent$($component$$1004_parent$$29$$);
  var $parentPeer$$8$$ = null != $component$$1004_parent$$29$$ ? $component$$1004_parent$$29$$.$getPeer$() : null;
  $parentPeer$$8$$ && $parentPeer$$8$$.$__preferredSizeChangeNotify$ && $parentPeer$$8$$.$__preferredSizeChangeNotify$($component$$1004_parent$$29$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandToolbarButtonPeer.prototype.__preferredSizeChangeNotify", {$__preferredSizeChangeNotify$:$AdfDhtmlCommandToolbarButtonPeer$$.prototype.$__preferredSizeChangeNotify$});
$JSCompiler_prototypeAlias$$ = $AdfDhtmlCommandToolbarButtonPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_execute$ = function $$JSCompiler_prototypeAlias$$$$_execute$$() {
  var $component$$1005$$ = this.$getComponent$(), $actionEvent$$4_type$$174$$ = new $AdfActionEvent$$($component$$1005$$);
  $actionEvent$$4_type$$174$$.$queue$($component$$1005$$.getPartialSubmit());
  $actionEvent$$4_type$$174$$.$isCanceled$() || ($actionEvent$$4_type$$174$$ = $component$$1005$$.getType(), "check" == $actionEvent$$4_type$$174$$ ? $component$$1005$$.setSelected(!$component$$1005$$.getSelected()) : "radio" == $actionEvent$$4_type$$174$$ && this.$_toggleRadioGroupItems$());
};
$JSCompiler_prototypeAlias$$.$_openPopupMenu$ = function $$JSCompiler_prototypeAlias$$$$_openPopupMenu$$($hints$$67_popupContId$$1_popupId$$38$$, $autoFocus$$1$$, $componentEvent$$180$$) {
  var $component$$1006_popupPeer$$1$$ = this.$getComponent$(), $clientId$$193$$ = $component$$1006_popupPeer$$1$$.$getClientId$(), $alignElement$$17_dropDownButtonId$$2$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$193$$, $AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_ELEMENT$);
  if ($AdfAgent$$.$AGENT$.getElementById($alignElement$$17_dropDownButtonId$$2$$)) {
    if ($alignElement$$17_dropDownButtonId$$2$$ = this.$getDomElement$(), null != $hints$$67_popupContId$$1_popupId$$38$$) {
      $component$$1006_popupPeer$$1$$ = $AdfPage$$.$PAGE$.$findComponent$($hints$$67_popupContId$$1_popupId$$38$$).$getPeer$(), $hints$$67_popupContId$$1_popupId$$38$$ = {}, $hints$$67_popupContId$$1_popupId$$38$$.alignElement = $alignElement$$17_dropDownButtonId$$2$$, $hints$$67_popupContId$$1_popupId$$38$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_AFTER_START$, $hints$$67_popupContId$$1_popupId$$38$$.focus = $autoFocus$$1$$, $component$$1006_popupPeer$$1$$.show($hints$$67_popupContId$$1_popupId$$38$$), 
      $componentEvent$$180$$.cancel();
    } else {
      $hints$$67_popupContId$$1_popupId$$38$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$193$$, $AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_CONTAINER$);
      var $divWrapper$$1_popupContainer$$4$$ = $AdfAgent$$.$AGENT$.getElementById($hints$$67_popupContId$$1_popupId$$38$$);
      if (null != $divWrapper$$1_popupContainer$$4$$) {
        for (var $contentNode$$28$$ = $divWrapper$$1_popupContainer$$4$$.firstChild;$contentNode$$28$$ && 8 == $contentNode$$28$$.nodeType;) {
          $contentNode$$28$$ = $contentNode$$28$$.nextSibling;
        }
        if (null != $contentNode$$28$$) {
          $hints$$67_popupContId$$1_popupId$$38$$ = {};
          var $contentNodeId$$1$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$193$$, $AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_CONTENT_ID$);
          $contentNode$$28$$.id != $contentNodeId$$1$$ && ($divWrapper$$1_popupContainer$$4$$ = $divWrapper$$1_popupContainer$$4$$.ownerDocument.createElement("div"), $divWrapper$$1_popupContainer$$4$$.appendChild($contentNode$$28$$), $contentNode$$28$$ = $divWrapper$$1_popupContainer$$4$$, $contentNode$$28$$.id = $contentNodeId$$1$$);
          $hints$$67_popupContId$$1_popupId$$38$$.autodismiss = "autodismissAlways";
          $hints$$67_popupContId$$1_popupId$$38$$.alignElement = $alignElement$$17_dropDownButtonId$$2$$;
          $hints$$67_popupContId$$1_popupId$$38$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_AFTER_START$;
          $hints$$67_popupContId$$1_popupId$$38$$.focus = $autoFocus$$1$$;
          this.$showPopup$($component$$1006_popupPeer$$1$$, $contentNode$$28$$, $hints$$67_popupContId$$1_popupId$$38$$, $clientId$$193$$);
          $componentEvent$$180$$.cancel();
        }
      }
    }
  }
};
$JSCompiler_prototypeAlias$$.$_toggleRadioGroupItems$ = function $$JSCompiler_prototypeAlias$$$$_toggleRadioGroupItems$$() {
  for (var $component$$1007$$ = this.$getComponent$(), $currentGroupId$$4_domElement$$158$$ = this.$getDomElement$(), $currentGroupId$$4_domElement$$158$$ = this.$_getGroupId$($currentGroupId$$4_domElement$$158$$), $parent$$30_siblings$$1$$ = $component$$1007$$.getParent(), $parent$$30_siblings$$1$$ = $parent$$30_siblings$$1$$.$getPeer$().$getDescendantComponents$($parent$$30_siblings$$1$$), $i$$307$$ = 0;$i$$307$$ < $parent$$30_siblings$$1$$.length;$i$$307$$++) {
    var $sibling$$5$$ = $parent$$30_siblings$$1$$[$i$$307$$], $groupId$$3_siblingElement$$1$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($sibling$$5$$), $groupId$$3_siblingElement$$1$$ = this.$_getGroupId$($groupId$$3_siblingElement$$1$$);
    $currentGroupId$$4_domElement$$158$$ == $groupId$$3_siblingElement$$1$$ && $sibling$$5$$ != $component$$1007$$ && $sibling$$5$$.getType && "radio" == $sibling$$5$$.getType() && this.$_toggleComponentUnselected$($sibling$$5$$);
  }
  $component$$1007$$.setSelected(!0);
};
$JSCompiler_prototypeAlias$$.$_getGroupId$ = function $$JSCompiler_prototypeAlias$$$$_getGroupId$$($domElement$$159$$) {
  return $domElement$$159$$.getAttribute($AdfDhtmlCommandToolbarButtonPeer$$.$_AFR_GROUPID$);
};
$JSCompiler_prototypeAlias$$.$_toggleComponentUnselected$ = function $$JSCompiler_prototypeAlias$$$$_toggleComponentUnselected$$($buttonComponent$$4$$) {
  $buttonComponent$$4$$.setSelected(!1);
  this.$_setDepressedStyle$($buttonComponent$$4$$, !1);
  this.$_displayDefaultIcon$($buttonComponent$$4$$);
};
$JSCompiler_prototypeAlias$$.$_getIconElement$ = function $$JSCompiler_prototypeAlias$$$$_getIconElement$$($clientId$$194_component$$1008_iconId$$2$$) {
  $clientId$$194_component$$1008_iconId$$2$$ = $clientId$$194_component$$1008_iconId$$2$$.$getClientId$();
  $clientId$$194_component$$1008_iconId$$2$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$194_component$$1008_iconId$$2$$, "icon");
  return $AdfAgent$$.$AGENT$.getElementById($clientId$$194_component$$1008_iconId$$2$$);
};
$JSCompiler_prototypeAlias$$.$_displayDefaultIcon$ = function $$JSCompiler_prototypeAlias$$$$_displayDefaultIcon$$($component$$1009$$) {
  this.$_displayIcon$($component$$1009$$, null);
};
$JSCompiler_prototypeAlias$$.$_displayMouseDownIcon$ = function $$JSCompiler_prototypeAlias$$$$_displayMouseDownIcon$$($component$$1010$$) {
  this.$_displayIcon$($component$$1010$$, $component$$1010$$.getDepressedIcon());
};
$JSCompiler_prototypeAlias$$.$_displayMouseOverIcon$ = function $$JSCompiler_prototypeAlias$$$$_displayMouseOverIcon$$($component$$1011$$) {
  $component$$1011$$.getSelected() || this.$_displayIcon$($component$$1011$$, $component$$1011$$.getHoverIcon());
};
$JSCompiler_prototypeAlias$$.$_displayDisabledIcon$ = function $$JSCompiler_prototypeAlias$$$$_displayDisabledIcon$$($component$$1012$$) {
  this.$_displayIcon$($component$$1012$$, $component$$1012$$.getDisabledIcon());
};
$JSCompiler_prototypeAlias$$.$_displayIcon$ = function $$JSCompiler_prototypeAlias$$$$_displayIcon$$($component$$1013$$, $icon$$9$$) {
  if ($AdfRichUIPeer$$.$isInlineSVGIcon$($component$$1013$$)) {
    $icon$$9$$ && $AdfLogger$$.$LOGGER$.warning("component: ", $component$$1013$$.$getClientId$(), ", depressed, disabled and hover icons are not supported when iconDelivery is inline/fetchAndInline for svg icons.CSS styles can be applied on inline SVG to handle these states.Icon url: ", $icon$$9$$);
  } else {
    var $defaultIcon$$3$$ = $component$$1013$$.getIcon(), $iconElement$$1$$ = this.$_getIconElement$($component$$1013$$);
    $iconElement$$1$$ && $defaultIcon$$3$$ && ($iconElement$$1$$.src = $icon$$9$$ || $defaultIcon$$3$$);
  }
};
$JSCompiler_prototypeAlias$$.$_setDepressedStyle$ = function $$JSCompiler_prototypeAlias$$$$_setDepressedStyle$$($component$$1014$$, $depressed$$4$$) {
  var $domElement$$160$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($component$$1014$$), $className$$22$$ = $AdfDhtmlCommandToolbarButtonPeer$$.$_DEPRESSED_STYLE_CLASS$;
  $depressed$$4$$ ? $AdfDomUtils$$.$addCSSClassName$($domElement$$160$$, $className$$22$$) : $AdfDomUtils$$.$removeCSSClassName$($domElement$$160$$, $className$$22$$);
};
$JSCompiler_prototypeAlias$$.$_isInPopupSelector$ = function $$JSCompiler_prototypeAlias$$$$_isInPopupSelector$$($componentEvent$$181_evtTarget$$3$$) {
  var $toolbarId$$ = this.$getComponent$().$getClientId$(), $popupAreaId$$1$$ = $AdfRichUIPeer$$.$createSubId$($toolbarId$$, $AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_CONTEXT_AREA$);
  for ($componentEvent$$181_evtTarget$$3$$ = $componentEvent$$181_evtTarget$$3$$.$getNativeEventTarget$();null != $componentEvent$$181_evtTarget$$3$$ && $componentEvent$$181_evtTarget$$3$$.id != $toolbarId$$;) {
    if ($componentEvent$$181_evtTarget$$3$$.id == $popupAreaId$$1$$) {
      return !0;
    }
    $componentEvent$$181_evtTarget$$3$$ = $componentEvent$$181_evtTarget$$3$$.parentNode;
  }
  return !1;
};
$JSCompiler_prototypeAlias$$.$_getPopupId$ = function $$JSCompiler_prototypeAlias$$$$_getPopupId$$() {
  var $component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$ = this.$getComponent$(), $component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$ = $AdfRichUIPeer$$.$createSubId$($component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$.$getClientId$(), $AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_ELEMENT$), $component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$ = $AdfAgent$$.$AGENT$.getElementById($component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$);
  if (!$component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$) {
    return null;
  }
  var $component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$ = $component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$.parentNode, $popupId$$39$$ = $component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$.getAttribute($AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_ID$);
  null == $popupId$$39$$ && ($popupId$$39$$ = $component$$1016_dropDownButton$$3_dropDownButtonId$$3_parent$$31$$.parentNode.getAttribute($AdfDhtmlCommandToolbarButtonPeer$$.$_POPUP_ID$));
  return $popupId$$39$$;
};
$JSCompiler_prototypeAlias$$.$_isEventInRootElement$ = function $$JSCompiler_prototypeAlias$$$$_isEventInRootElement$$($componentEvent$$182_popupId$$40$$) {
  var $node$$75_targetNode$$21$$ = $componentEvent$$182_popupId$$40$$.$getNativeEventTarget$();
  $componentEvent$$182_popupId$$40$$ = this.$_getPopupId$();
  for (var $hasPopup$$1$$ = null != $componentEvent$$182_popupId$$40$$, $rootNode$$1$$ = this.$getDomElement$();$node$$75_targetNode$$21$$.parentNode && (!$hasPopup$$1$$ || $componentEvent$$182_popupId$$40$$ != $node$$75_targetNode$$21$$.id);$node$$75_targetNode$$21$$ = $node$$75_targetNode$$21$$.parentNode) {
    if ($node$$75_targetNode$$21$$ == $rootNode$$1$$) {
      return !0;
    }
  }
  return !1;
};
$JSCompiler_prototypeAlias$$.$_enableAriaPressed$ = function $$JSCompiler_prototypeAlias$$$$_enableAriaPressed$$() {
  var $domElement$$161$$ = this.$getDomElement$();
  "A" != $domElement$$161$$.tagName && ($domElement$$161$$ = $AdfDomUtils$$.$getDescendentElement$($domElement$$161$$, "a", 0));
  $domElement$$161$$.setAttribute("aria-pressed", "true");
};
$JSCompiler_prototypeAlias$$.$_disableAriaPressed$ = function $$JSCompiler_prototypeAlias$$$$_disableAriaPressed$$() {
  var $domElement$$162$$ = this.$getDomElement$();
  "A" != $domElement$$162$$.tagName && ($domElement$$162$$ = $AdfDomUtils$$.$getDescendentElement$($domElement$$162$$, "a", 0));
  $domElement$$162$$.setAttribute("aria-pressed", "false");
};
$JSCompiler_prototypeAlias$$.$_enableAriaChecked$ = function $$JSCompiler_prototypeAlias$$$$_enableAriaChecked$$() {
  var $domElement$$163$$ = this.$getDomElement$();
  "A" != $domElement$$163$$.tagName && ($domElement$$163$$ = $AdfDomUtils$$.$getDescendentElement$($domElement$$163$$, "a", 0));
  var $state$$35$$ = "button" == $domElement$$163$$.getAttribute("role").toLowerCase() ? "aria-pressed" : "aria-checked";
  $domElement$$163$$.setAttribute($state$$35$$, "true");
};
$JSCompiler_prototypeAlias$$.$_disableAriaChecked$ = function $$JSCompiler_prototypeAlias$$$$_disableAriaChecked$$() {
  var $domElement$$164$$ = this.$getDomElement$();
  "A" != $domElement$$164$$.tagName && ($domElement$$164$$ = $AdfDomUtils$$.$getDescendentElement$($domElement$$164$$, "a", 0));
  var $state$$36$$ = "button" == $domElement$$164$$.getAttribute("role").toLowerCase() ? "aria-pressed" : "aria-checked";
  $domElement$$164$$.setAttribute($state$$36$$, "false");
};
$JSCompiler_prototypeAlias$$.$_setAriaDisabled$ = function $$JSCompiler_prototypeAlias$$$$_setAriaDisabled$$() {
  var $domElement$$165$$ = this.$getDomElement$();
  "A" != $domElement$$165$$.tagName && ($domElement$$165$$ = $AdfDomUtils$$.$getDescendentElement$($domElement$$165$$, "a", 0));
  $domElement$$165$$.setAttribute("aria-disabled", "true");
};
$JSCompiler_prototypeAlias$$.$_removeAriaDisabled$ = function $$JSCompiler_prototypeAlias$$$$_removeAriaDisabled$$() {
  var $domElement$$166$$ = this.$getDomElement$();
  "A" != $domElement$$166$$.tagName && ($domElement$$166$$ = $AdfDomUtils$$.$getDescendentElement$($domElement$$166$$, "a", 0));
  $domElement$$166$$.removeAttribute("aria-disabled");
};
