var Wm=M.U(M,"AdfDhtmlGoMenuItemPeer",p);v("AdfDhtmlGoMenuItemPeer",Wm);Wm.m=function(){z.kb(AdfRichGoMenuItem);z.kb(W);M.ha(this,I.Xc,I.Xf,I.jb,I.tc,I.Dd,I.qd,I.ec);w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Qd,I.Ve);M.hb(this,AdfRichGoMenuItem.DISABLED,AdfRichGoMenuItem.VISIBLE);M.$b(this,AdfRichGoMenuItem.TEXT)};v("AdfDhtmlGoMenuItemPeer.InitSubclass",Wm.m);Wm.prototype.Init=function(a){a.getParent();Wm.f.Init.call(this,a);this.ep=this.Oo=p};z.a("AdfDhtmlGoMenuItemPeer.prototype.Init",{Init:Wm.prototype.Init});
Wm.prototype.q=function(a,b){Wm.f.q.call(this,a,b);var d=a.getAccelerator();d!=n&&M.Qy(a,d,this.Xm)};z.a("AdfDhtmlGoMenuItemPeer.prototype.InitDomElement",{q:Wm.prototype.q});Wm.prototype.Z=function(a){var b=a.getAccelerator();b!=n&&M.Cv(a,b);Wm.f.Z.call(this,a)};z.a("AdfDhtmlGoMenuItemPeer.prototype.ComponentRemoved",{Z:Wm.prototype.Z});
Wm.prototype.Xb=function(a,b){var d=a.getParent();if(d=window.AdfRichMenu&&d instanceof AdfRichMenu?H.Tc(b)[1]:H.Ua(b,"a"))return d=w.b.Mb(d),""==d?n:d;B.assert(p,"Unable to find the element containing the text")};z.a("AdfDhtmlGoMenuItemPeer.prototype.GetComponentText",{Xb:Wm.prototype.Xb});
Wm.prototype.pa=function(a){var b=a.L();if(!b.ctrlKey){switch(w.b.ia(b)){case E.$a:this.Oo&&this.Xm();this.Oo=p;b=l;break;case E.zd:this.ep&&this.Xm();this.ep=p;b=l;break;default:return}b&&a.cancel();(a=this.d().getParent())&&a instanceof AdfRichMenu&&a.k().Vn()}};z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentKeyUp",{pa:Wm.prototype.pa});Wm.prototype.ba=function(a){if(!a.na()&&!this.Gd()){var b=a.ia();b==E.$a?(this.Oo=l,a.cancel(),a.dc()):b==E.zd&&(this.ep=l,a.cancel(),a.dc())}};
z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentKeyDown",{ba:Wm.prototype.ba});Wm.prototype.Ha=function(a){if(!this.Gd()){a.cancel();a=this.h();im.rC();var b=this.d();W.Bi(b)?H.n(a,W.Pg):(W.Mp()&&W.Rj(p),W.By(a))}};z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentFocus",{Ha:Wm.prototype.Ha});Wm.prototype.qa=function(a){!this.Gd()&&a.Jb()&&(a=this.h(),H.n(a,W.Bf))};z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentMouseDown",{qa:Wm.prototype.qa});
Wm.prototype.cc=function(a){!this.Gd()&&a.Jb()&&(a=this.h(),H.F(a,W.Bf))};z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentMouseUp",{cc:Wm.prototype.cc});Wm.prototype.Ka=function(a){var b=this.d();if(this.Gd())W.Mp()&&W.cv(b)&&W.Rj(p);else{a.cancel();a=this.h();var d=O.Vl(a);W.Bi(b)?(H.n(a,W.Pg),W.kh(a,p),d||this.focus(b)):W.Mp()&&!d?this.focus(b):W.By(a)}};z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentMouseOver",{Ka:Wm.prototype.Ka});
Wm.prototype.vb=function(a){a.cancel();W.wS();this.Gd()||(a=this.d(),W.Bi(a)&&this.hr(),a=this.h(),H.F(a,W.Bf))};z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentMouseOut",{vb:Wm.prototype.vb});Wm.prototype.Eb=function(){this.hr()};z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentBlur",{Eb:Wm.prototype.Eb});Wm.prototype.C=function(a){!this.Gd()&&a.Jb()&&this.Xm();a.cancel()};z.a("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentClick",{C:Wm.prototype.C});
Wm.prototype.Od=function(a,b,d){W.Y0(a,b,d)};z.a("AdfDhtmlGoMenuItemPeer.prototype.ComponentDisabledChanged",{Od:Wm.prototype.Od});Wm.prototype.fk=function(a,b,d,e){Wm.f.fk.call(this,a,b,d,e);W.Z0(a,b,d)};z.a("AdfDhtmlGoMenuItemPeer.prototype.ComponentVisibleChanged",{fk:Wm.prototype.fk});Wm.prototype.uc=function(a){this.bind(a);a=this.Ee(a);var b=a!=n?a.k():n;b&&b.uc&&b.uc(a)};z.a("AdfDhtmlGoMenuItemPeer.prototype.__preferredSizeChangeNotify",{uc:Wm.prototype.uc});
Wm.prototype.Xm=function(){if(!this.Gd()){D.i.finest("menuBar auto open mode, set to OFF due to goMenuItem execute");W.uv(p);var a=this.d(),b=W.Hfa(a);b!=n&&W.pia(a,b);b=a.getDestination();if(b==n)b=W.Bi(a),W.Rj(b);else{var a=a.getTargetFrame(),d=w.b;a!=n&&"_blank"==a.toLowerCase()&&d.G()==w.aa&&8>d.nb()?(W.Rj(p),F.c.zA(b,a)):(F.c.zA(b,a),W.Rj(p))}}};Wm.prototype.hr=function(){var a=this.h();H.F(a,W.Pg)};Wm.prototype.Gd=function(){var a=this.h();return a.disabled||H.ta(a,M.gb)};