var fi=I.ea(I,"AdfDhtmlCommandNavigationItemPeer");m("AdfDhtmlCommandNavigationItemPeer",fi);fi.C=function(){I.ra(this,D.Ad,D.wb,D.Pc,D.Nd);I.sb(this,AdfRichCommandNavigationItem.TEXT);I.hc(this,AdfRichCommandNavigationItem.TEXT);q.b.Dd()||I.ra(this,D.ze);this.G6a="disclosureAnchor";this.NDa="rmAbv";this.CE="p_AFHighlighted"};m("AdfDhtmlCommandNavigationItemPeer.InitSubclass",fi.C);fi.prototype.G=function(a,b){fi.h.G.call(this,a,b)};
r.a("AdfDhtmlCommandNavigationItemPeer.prototype.InitDomElement",{G:fi.prototype.G});fi.prototype.za=function(a){var b=a.U(),d=a.na();b.ctrlKey&&b.altKey&&d==w.V_&&(b=this.f(),!b.getDisabled()&&this.lO()&&(this.HB(),a=a.X(),J.ce(a,null,!0),Ob.cQ(b)))};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentKeyUp",{za:fi.prototype.za});
fi.prototype.M=function(a){var b=this.f();if(a.getSource()==b)if(this.Me())a.wc();else if(a.ec())if(this.cma(a)){if(this.lO()){this.HB();var d=a.X();J.ce(d,null,!0);Ob.cQ(b)}}else{var e=I.Fb(b),d=e.href;void 0==d&&(d=e.getAttribute("href"));var f=q.b.R().location.href,g=f.indexOf("#"),f=-1==g?f:f.substring(0,g);d&&(-1==d.indexOf(f)||1<d.substring(d.indexOf("#")).length)?(A.c.Cc(!0,!0,!0,"User click Command Navigation , GET request"),d=e.getAttribute("target"),A.c.$E(e.attributes.href.value,d),a.cancel()):
(this.HB(),ab.F(b,b.getPartialSubmit()))}};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentClick",{M:fi.prototype.M});fi.prototype.Ta=function(a){this.Me()?a.wc():this.JV(a,!0)};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentFocus",{Ta:fi.prototype.Ta});fi.prototype.Lb=function(a){this.JV(a,!1)};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentBlur",{Lb:fi.prototype.Lb});
fi.prototype.JV=function(a,b){a.cancel();var d=a.X().id;null!=d&&(d=d.split("::"),1>=d.length||d[d.length-1]!=fi.G6a||(d=this.i(),b?C.w(d,fi.CE):C.O(d,fi.CE)))};fi.prototype.$a=function(a){this.Me()&&a.wc()};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentMouseOver",{$a:fi.prototype.$a});fi.prototype.Oa=function(){return ei.jd()};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.GetInlineEditor",{Oa:fi.prototype.Oa});
fi.prototype.Jg=function(a,b,d,e){return null!=e&&(b=fi.qC(a,b))?C.FC(a,b,d):!1};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.ComponentTextChanged",{Jg:fi.prototype.Jg});fi.qC=function(a,b){u.assert(null!=a.K("text"));var d=C.ib(b,"a");d||"a"==q.b.Na(b).toLowerCase()&&(d=b);if(d)if(C.ib(d,"img")){if(d=C.zm(d),"SPAN"==d.tagName)return d}else return d;return null};m("AdfDhtmlCommandNavigationItemPeer.getInlineEditableTextElement",fi.qC);
fi.prototype.cma=function(a){var b=this.f().g(),b=I.la(b,fi.NDa);a=a.X();return a.id==b?!0:a.parentNode.id==b};fi.prototype.lO=function(){var a=this.f();if(a.getRemove){var b=a.getRemove();if(b&&("no"==b||"disabled"==b))return!1}b=a.getParent();if(null==b.getItemRemoval)return!1;b=b.getItemRemoval();if(a.getDisabled()||null==b||"none"==b)return!1;if("all"==b)return!0;if("allExceptLast"==b)return a=a.g(),a=I.la(a,fi.NDa),null!=q.oa().getElementById(a)};
r.a("AdfDhtmlCommandNavigationItemPeer.prototype.canRemove",{lO:fi.prototype.lO});fi.prototype.HB=function(){var a=this.f().getParent(),b=null!=a?a.o():null;b&&(b.bind(a),b&&b.tL&&b.tL())};fi.prototype.Me=function(){var a=this.i();return a.disabled||C.sa(a,I.lb)};fi.prototype.sc=function(a,b){"A"!=b.tagName&&(b=C.ib(b,"a"));if(b){var d=q.b.mc(b);return""==d?null:d}u.assert(!1,"Unable to find the element containing the text")};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.GetComponentText",{sc:fi.prototype.sc});
fi.prototype.Gf=function(){return this.f().getText()};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.GetAccessibleName",{Gf:fi.prototype.Gf});