function W(){}v("AdfMenuUtils",W);v("AdfMenuUtils",W);z.l(W);
W.da=function(){W.q4="p_AFSelected";v("AdfMenuUtils.SELECTED_STYLE_CLASS",W.q4);this.Pg="p_AFHighlighted";v("AdfMenuUtils.HIGHLIGHTED_STYLE_CLASS",W.Pg);this.QFa="p_AFFocused";v("AdfMenuUtils.FOCUSED_STYLE_CLASS",W.QFa);this.Bf="p_AFDepressed";v("AdfMenuUtils.DEPRESSED_STYLE_CLASS",W.Bf);this.UD="p_AFDetached";v("AdfMenuUtils.DETACHED_STYLE_CLASS",W.UD);this.U3="_afrDth";v("AdfMenuUtils.MENU_DEPTH_KEY",W.U3);this.Tz="_afrOflw";v("AdfMenuUtils.OVERFLOW_KEY",W.Tz);this.fL="AFMenuBarOverflowCell";v("AdfMenuUtils.OVERFLOW_CELL_STYLE_CLASS",
W.fL);this.iK="_afrTargetRowCurrency";v("AdfMenuUtils.AFR_TARGETROWCURRENCY",W.iK);this.hK="_afrTargetComponentId";v("AdfMenuUtils.AFR_TARGETCOMPONENTID",W.hK);this.QB=[]};v("AdfMenuUtils.InitClass",W.da);W.cv=function(a){return a instanceof AdfRichMenuBar?l:(a=a.getParent())&&a instanceof AdfRichMenuBar};v("AdfMenuUtils.isOnMenuBar",W.cv);W.ej=function(a){return"true"==a.parentNode.getAttribute(W.Tz)};v("AdfMenuUtils.isInOverflow",W.ej);W.Bi=function(a){return(a=a.getParent())&&a instanceof AdfRichMenu};
v("AdfMenuUtils.isInMenu",W.Bi);W.Rj=function(a){var b=W.QB;if(b&&0<b.length)for(var d=b.length-1;0<=d;d--){var e=F.c.j(b[d]);if(e){var f=e.k();f.bind(e);f.ob()}else delete b[d]}a&&W.bia()};v("AdfMenuUtils.closeAllMenus",W.Rj);W.dla=function(){return W.vza};v("AdfMenuUtils.GetLastOpenedRootMenuId",W.dla);W.gEa=function(a){W.vza=a};v("AdfMenuUtils.setLastOpenedRootMenuId",W.gEa);W.Mp=function(){return W.xxa};v("AdfMenuUtils.isMenuBarAutoOpenMode",W.Mp);
W.uv=function(a){D.i.finest("menuBar auto open mode: "+W.xxa+" -\x3e "+a);W.xxa=a};v("AdfMenuUtils.setMenuBarAutoOpenMode",W.uv);W.bia=function(){var a=W.vza;if(a&&(a=F.c.j(a),a!=n)){var b=a.k(),d=b.h();b.focus(a);W.By(d)}};v("AdfMenuUtils.restoreFocusToLastOpenedRootMenu",W.bia);W.By=function(a){var b=a.getAttribute("id"),d=W.uaa;d&&d!=b&&W.wS();H.n(a,W.Pg);W.uaa=b};v("AdfMenuUtils.highlightRootMenuItem",W.By);W.wS=function(){var a=w.b.getElementById(W.uaa);a&&H.F(a,W.Pg);W.uaa=n};
v("AdfMenuUtils.unhighlightRootMenuItem",W.wS);W.kh=function(a,b,d){var e=W.QB;if(e&&0!=e.length)for(var f=e.length-1;0<=f;f--){var g=F.c.j(e[f]);if(g){var h=g.k();h.bind(g);if(up(h,a))break;d?e.pop():(h.hr(),b?h.ob():np(h,f))}else delete e[f]}};v("AdfMenuUtils.dismiss",W.kh);W.A2a=function(){return W.QB&&0<W.QB.length};v("AdfMenuUtils.areMenusOpened",W.A2a);W.nha=function(a){return 0<=ya.indexOf(W.QB,a)};v("AdfMenuUtils.isMenuOpen",W.nha);W.Dea=function(a){W.nha(a)||W.QB.push(a)};
v("AdfMenuUtils.addOpenMenu",W.Dea);W.Vha=function(a){ya.Of(W.QB,a)};v("AdfMenuUtils.removeOpenMenu",W.Vha);W.Hfa=function(a){var b=n;for(a=a.getParent();a!=n&&(a instanceof AdfRichMenu||a instanceof AdfRichPopup);){var d;if((d=a[W.iK])!=n){b={C5a:d,A5a:a[W.hK]};break}a=a.getParent()}return b};v("AdfMenuUtils.getContextMenuItemTargetAttrs",W.Hfa);
W.pia=function(a,b){var d=a.Cp(),e=W.iK,f=W.hK;d[e]==n&&(d[e]=d[f]={type:"String"},M.ui(this,e,f));a.setProperty(f,n);a.setProperty(e,n);a.setProperty(f,b.A5a);a.setProperty(e,b.C5a)};v("AdfMenuUtils.setContextMenuItemTargetAttrs",W.pia);
W.Y0=function(a,b,d,e){if(d==l){H.n(b,M.gb);d=W.Bi(a)?b:H.ca(b);var f=d.getAttribute("tabIndex");d.removeAttribute("tabIndex");d.setAttribute(O.Jg,"false");d.setAttribute("aria-disabled","true");e&&e.setAttribute(O.Jg,"false");W.cv(a)&&H.Ua(b,"a").removeAttribute("href");f&&"0"==f&&(a=a.getParent(),b=a.k(),b.bind(a),B.assert(b.kg!=n,"The menu item's parent should have a resetActiveDescendant method."),b.kg())}else H.F(b,M.gb),d=W.Bi(a)?b:H.ca(b),d.setAttribute("tabIndex","-1"),d.setAttribute(O.Jg,
"true"),d.removeAttribute("aria-disabled"),e&&e.removeAttribute(O.Jg),W.cv(a)&&H.Ua(b,"a").setAttribute("href","#")};v("AdfMenuUtils.menuItemDisabledChanged",W.Y0);
W.Z0=function(a,b,d,e){d==l?(a=W.Bi(a)?b:H.ca(b),a.setAttribute("tabIndex","-1"),a.setAttribute(O.Jg,"true"),e&&e.removeAttribute(O.Jg)):(b=W.Bi(a)?b:H.ca(b),d=b.getAttribute("tabIndex"),b.removeAttribute("tabIndex"),b.setAttribute(O.Jg,"false"),e&&e.setAttribute(O.Jg,"false"),d&&"0"==d&&(e=a.getParent(),a=e.k(),a.bind(e),B.assert(a.kg!=n,"The menu item's parent should have a resetActiveDescendant method."),a.kg()))};v("AdfMenuUtils.menuItemVisibleChanged",W.Z0);