var $AdfMenuSubIdUtils$$ = {};
$goog$exportSymbol$$("AdfMenuSubIdUtils", $AdfMenuSubIdUtils$$);
$AdfMenuSubIdUtils$$.$getMenuItemElement$ = function $$AdfMenuSubIdUtils$$$$getMenuItemElement$$($component$$1861$$, $rootElement$$157$$, $subElementId$$59$$) {
  $AdfAssert$$.$assertNonEmptyString$($subElementId$$59$$);
  if($AdfMenuUtils$$.$isOnMenuBar$($component$$1861$$)) {
    if("bar-item-text" == $subElementId$$59$$ || "text" == $subElementId$$59$$) {
      return $AdfMenuSubIdUtils$$.$_getBarItemTextElement$($rootElement$$157$$)
    }
    if("bar-item-icon" == $subElementId$$59$$) {
      return $AdfMenuSubIdUtils$$.$_getBarItemIconElement$($rootElement$$157$$)
    }
  }else {
    if($AdfMenuUtils$$.$isInMenu$($component$$1861$$)) {
      if("submenu-text" == $subElementId$$59$$ || "text" == $subElementId$$59$$) {
        return $AdfMenuSubIdUtils$$.$_getMenuItemTextElement$($rootElement$$157$$)
      }
      if("submenu-icon" == $subElementId$$59$$) {
        return $AdfMenuSubIdUtils$$.$_getMenuItemIconElement$($rootElement$$157$$)
      }
    }
  }
  return $JSCompiler_alias_NULL$$
};
$goog$exportSymbol$$("AdfMenuSubIdUtils.getMenuItemElement", $AdfMenuSubIdUtils$$.$getMenuItemElement$);
$AdfMenuSubIdUtils$$.$getMenuItemBestMatchSubId$ = function $$AdfMenuSubIdUtils$$$$getMenuItemBestMatchSubId$$($component$$1862_mbTextElement_menuTextElement$$, $mbIconElement_menuIconElement_rootElement$$158$$, $childElement$$38$$) {
  if($AdfMenuUtils$$.$isOnMenuBar$($component$$1862_mbTextElement_menuTextElement$$)) {
    $component$$1862_mbTextElement_menuTextElement$$ = $AdfMenuSubIdUtils$$.$_getBarItemTextElement$($mbIconElement_menuIconElement_rootElement$$158$$);
    if($component$$1862_mbTextElement_menuTextElement$$ != $JSCompiler_alias_NULL$$ && $component$$1862_mbTextElement_menuTextElement$$ == $childElement$$38$$) {
      return"bar-item-text"
    }
    $mbIconElement_menuIconElement_rootElement$$158$$ = $AdfMenuSubIdUtils$$.$_getBarItemIconElement$($mbIconElement_menuIconElement_rootElement$$158$$);
    if($mbIconElement_menuIconElement_rootElement$$158$$ != $JSCompiler_alias_NULL$$ && $mbIconElement_menuIconElement_rootElement$$158$$ == $childElement$$38$$) {
      return"bar-item-icon"
    }
  }else {
    if($AdfMenuUtils$$.$isInMenu$($component$$1862_mbTextElement_menuTextElement$$)) {
      $component$$1862_mbTextElement_menuTextElement$$ = $AdfMenuSubIdUtils$$.$_getMenuItemTextElement$($mbIconElement_menuIconElement_rootElement$$158$$);
      if($component$$1862_mbTextElement_menuTextElement$$ != $JSCompiler_alias_NULL$$ && $component$$1862_mbTextElement_menuTextElement$$ == $childElement$$38$$) {
        return"submenu-text"
      }
      $mbIconElement_menuIconElement_rootElement$$158$$ = $AdfMenuSubIdUtils$$.$_getMenuItemIconElement$($mbIconElement_menuIconElement_rootElement$$158$$);
      if($mbIconElement_menuIconElement_rootElement$$158$$ != $JSCompiler_alias_NULL$$ && $mbIconElement_menuIconElement_rootElement$$158$$ == $childElement$$38$$) {
        return"submenu-icon"
      }
    }
  }
};
$goog$exportSymbol$$("AdfMenuSubIdUtils.getMenuItemBestMatchSubId", $AdfMenuSubIdUtils$$.$getMenuItemBestMatchSubId$);
$AdfMenuSubIdUtils$$.$_getBarItemTextElement$ = function $$AdfMenuSubIdUtils$$$$_getBarItemTextElement$$($rootElement$$159$$) {
  return $AdfDomUtils$$.$getDescendentElement$($rootElement$$159$$, "A", 0)
};
$AdfMenuSubIdUtils$$.$_getMenuItemTextElement$ = function $$AdfMenuSubIdUtils$$$$_getMenuItemTextElement$$($rootElement$$160$$) {
  return $AdfDomUtils$$.$getDescendentElement$($rootElement$$160$$, "TD", 1)
};
$AdfMenuSubIdUtils$$.$_getBarItemIconElement$ = function $$AdfMenuSubIdUtils$$$$_getBarItemIconElement$$($iconTd_rootElement$$161$$) {
  $iconTd_rootElement$$161$$ = $AdfDomUtils$$.$getDescendentElement$($iconTd_rootElement$$161$$, "TD", 0);
  return $AdfDomUtils$$.$getDescendentElement$($iconTd_rootElement$$161$$, "IMG", 0)
};
$AdfMenuSubIdUtils$$.$_getMenuItemIconElement$ = function $$AdfMenuSubIdUtils$$$$_getMenuItemIconElement$$($iconTd$$1_rootElement$$162$$) {
  $iconTd$$1_rootElement$$162$$ = $AdfDomUtils$$.$getDescendentElement$($iconTd$$1_rootElement$$162$$, "TD", 0);
  return $AdfDomUtils$$.$getDescendentElement$($iconTd$$1_rootElement$$162$$, "IMG", 0)
};
