var jg=M.U(M,"AdfDhtmlCommandNavigationItemPeer");v("AdfDhtmlCommandNavigationItemPeer",jg);jg.m=function(){M.ha(this,I.qd,I.jb,I.tc,I.Dd);M.hb(this,AdfRichCommandNavigationItem.TEXT);M.$b(this,AdfRichCommandNavigationItem.TEXT);w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Qd);this.ROa="disclosureAnchor";this.$pa="rmAbv";this.Mq="p_AFHighlighted"};v("AdfDhtmlCommandNavigationItemPeer.InitSubclass",jg.m);jg.prototype.q=function(a,b){jg.f.q.call(this,a,b)};
z.a("AdfDhtmlCommandNavigationItemPeer.prototype.InitDomElement",{q:jg.prototype.q});jg.prototype.pa=function(a){var b=a.L(),d=a.ia();b.ctrlKey&&(b.altKey&&d==E.VS)&&(b=this.d(),!b.getDisabled()&&this.mI()&&(this.Ex(),a=a.Q(),O.Ud(a,n,l),Hb.PJ(b)))};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentKeyUp",{pa:jg.prototype.pa});
jg.prototype.C=function(a){var b=this.d();if(a.getSource()==b)if(this.Gd())a.dc();else if(a.Jb())if(this.bba(a)){if(this.mI()){this.Ex();var d=a.Q();O.Ud(d,n,l);Hb.PJ(b)}}else{var e=M.Ib(b),d=e.href;d==k&&(d=e.getAttribute("href"));var f=w.b.w().location.href,g=f.indexOf("#"),f=-1==g?f:f.substring(0,g);d&&(-1==d.indexOf(f)||1<d.substring(d.indexOf("#")).length)?(F.c.hd(l,l,l,"User click Command Navigation , GET request"),d=e.getAttribute("target"),F.c.zA(e.attributes.href.value,d),a.cancel()):(this.Ex(),
bb.v(b,b.getPartialSubmit()))}};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentClick",{C:jg.prototype.C});jg.prototype.Ha=function(a){this.Gd()?a.dc():this.CO(a,l)};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentFocus",{Ha:jg.prototype.Ha});jg.prototype.Eb=function(a){this.CO(a,p)};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentBlur",{Eb:jg.prototype.Eb});
jg.prototype.CO=function(a,b){a.cancel();var d=a.Q().id;d!=n&&(d=d.split("::"),!(1>=d.length)&&d[d.length-1]==jg.ROa&&(d=this.h(),b?H.n(d,jg.Mq):H.F(d,jg.Mq)))};jg.prototype.Ka=function(a){this.Gd()&&a.dc()};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentMouseOver",{Ka:jg.prototype.Ka});jg.prototype.Aa=function(){return ig.Hc()};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.GetInlineEditor",{Aa:jg.prototype.Aa});
jg.prototype.Qf=function(a,b,d,e){return e!=n&&(b=jg.ky(a,b))?H.zy(a,b,d):p};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.ComponentTextChanged",{Qf:jg.prototype.Qf});jg.ky=function(a,b){B.assert(a.r("text")!=n);var d=H.Ua(b,"a");d||"a"==w.b.Ga(b).toLowerCase()&&(d=b);if(d)if(H.Ua(d,"img")){if(d=H.$l(d),"SPAN"==d.tagName)return d}else return d;return n};v("AdfDhtmlCommandNavigationItemPeer.getInlineEditableTextElement",jg.ky);
jg.prototype.bba=function(a){var b=this.d().e(),b=M.Na(b,jg.$pa);a=a.Q();return a.id==b?l:a.parentNode.id==b};jg.prototype.mI=function(){var a=this.d();if(a.getRemove){var b=a.getRemove();if(b&&("no"==b||"disabled"==b))return p}b=a.getParent();if(b.getItemRemoval==n)return p;b=b.getItemRemoval();if(a.getDisabled()||b==n||"none"==b)return p;if("all"==b)return l;if("allExceptLast"==b)return a=a.e(),a=M.Na(a,jg.$pa),w.fa().getElementById(a)!=n};
z.a("AdfDhtmlCommandNavigationItemPeer.prototype.canRemove",{mI:jg.prototype.mI});jg.prototype.Ex=function(){var a=this.d().getParent(),b=a!=n?a.k():n;b&&(b.bind(a),b&&b.PF&&b.PF())};jg.prototype.Gd=function(){var a=this.h();return a.disabled||H.ta(a,M.gb)};jg.prototype.Xb=function(a,b){"A"!=b.tagName&&(b=H.Ua(b,"a"));if(b){var d=w.b.Mb(b);return""==d?n:d}B.assert(p,"Unable to find the element containing the text")};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.GetComponentText",{Xb:jg.prototype.Xb});
jg.prototype.Te=function(){return this.d().getText()};z.a("AdfDhtmlCommandNavigationItemPeer.prototype.GetAccessibleName",{Te:jg.prototype.Te});