var di=I.ea(I,"AdfDhtmlCommandNavigationItemPeer");m("AdfDhtmlCommandNavigationItemPeer",di);di.C=function(){I.ra(this,D.Ad,D.wb,D.Oc,D.Nd);I.sb(this,AdfRichCommandNavigationItem.TEXT);I.hc(this,AdfRichCommandNavigationItem.TEXT);q.b.Dd()||I.ra(this,D.ze);this.D6a="disclosureAnchor";this.JDa="rmAbv";this.CE="p_AFHighlighted"};m("AdfDhtmlCommandNavigationItemPeer.InitSubclass",di.C);di.prototype.G=function(a,b){di.h.G.call(this,a,b)};
r.a("AdfDhtmlCommandNavigationItemPeer.prototype.InitDomElement",{G:di.prototype.G});di.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.be(a,null,!0),Ob.cQ(b)))};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentKeyUp",{za:di.prototype.za});
di.prototype.M=function(a){var b=this.f();if(a.getSource()==b)if(this.Le())a.wc();else if(a.ec())if(this.$la(a)){if(this.lO()){this.HB();var d=a.X();J.be(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:di.prototype.M});di.prototype.Ta=function(a){this.Le()?a.wc():this.JV(a,!0)};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentFocus",{Ta:di.prototype.Ta});di.prototype.Lb=function(a){this.JV(a,!1)};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentBlur",{Lb:di.prototype.Lb});
di.prototype.JV=function(a,b){a.cancel();var d=a.X().id;null!=d&&(d=d.split("::"),1>=d.length||d[d.length-1]!=di.D6a||(d=this.i(),b?C.w(d,di.CE):C.O(d,di.CE)))};di.prototype.$a=function(a){this.Le()&&a.wc()};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.HandleComponentMouseOver",{$a:di.prototype.$a});di.prototype.Oa=function(){return ci.jd()};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.GetInlineEditor",{Oa:di.prototype.Oa});
di.prototype.Jg=function(a,b,d,e){return null!=e&&(b=di.qC(a,b))?C.FC(a,b,d):!1};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.ComponentTextChanged",{Jg:di.prototype.Jg});di.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",di.qC);
di.prototype.$la=function(a){var b=this.f().g(),b=I.la(b,di.JDa);a=a.X();return a.id==b?!0:a.parentNode.id==b};di.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,di.JDa),null!=q.oa().getElementById(a)};
r.a("AdfDhtmlCommandNavigationItemPeer.prototype.canRemove",{lO:di.prototype.lO});di.prototype.HB=function(){var a=this.f().getParent(),b=null!=a?a.o():null;b&&(b.bind(a),b&&b.tL&&b.tL())};di.prototype.Le=function(){var a=this.i();return a.disabled||C.sa(a,I.lb)};di.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:di.prototype.sc});
di.prototype.Gf=function(){return this.f().getText()};r.a("AdfDhtmlCommandNavigationItemPeer.prototype.GetAccessibleName",{Gf:di.prototype.Gf});