var gm=M.U(fm,"AdfDhtmlCommandImageLinkPeer");v("AdfDhtmlCommandImageLinkPeer",gm);gm.m=function(){z.kb(AdfRichCommandImageLink);M.ha(this,I.Xc,I.Xf);w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Qd,I.Ve);M.hb(this,AdfRichCommandImageLink.DISABLED);this.Zf="p_AFDepressed"};v("AdfDhtmlCommandImageLinkPeer.InitSubclass",gm.m);gm.prototype.Od=function(a,b,d){d==l?(H.n(b,M.gb),this.Yw(a),this.TB(a),b.setAttribute(O.Jg,"false")):(H.F(b,M.gb),this.Gh(a),this.IB(a),b.setAttribute(O.Jg,"true"))};
z.a("AdfDhtmlCommandImageLinkPeer.prototype.ComponentDisabledChanged",{Od:gm.prototype.Od});gm.prototype.Ka=function(){this.d().getDisabled()||this.wk(this.d())};z.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseOver",{Ka:gm.prototype.Ka});gm.prototype.vb=function(){var a=this.d();a.getDisabled()||(this.Hb(a,p),this.Gh(this.d()))};z.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseOut",{vb:gm.prototype.vb});
gm.prototype.cc=function(){var a=this.d();a.getDisabled()||(this.Hb(a,p),this.wk(a))};z.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseUp",{cc:gm.prototype.cc});gm.prototype.qa=function(a){var b=this.d();a=a.Jb();!b.getDisabled()&&a&&(this.Hb(b,l),this.vk(b))};z.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseDown",{qa:gm.prototype.qa});
gm.prototype.Xb=function(a,b){"SPAN"==b.tagName&&(b=H.Tj(b,1,1));if(b){B.assert("A"==b.tagName,"Anchor element is expected root of link component");var d=b.getAttribute(fm.uw);if(d==n)return n;if(0==d)return"";var e=H.Ua(b,"span");if(e)return w.b.Mb(e).slice(0,d)}B.assert(p,"Unable to find the element containing the text")};z.a("AdfDhtmlCommandImageLinkPeer.prototype.GetComponentText",{Xb:gm.prototype.Xb});u=gm.prototype;u.zk=function(a){a=a.e();a=M.g(a,"icon");return w.b.getElementById(a)};
u.Gh=function(a){if("inline"!=a.getIconDelivery()){var b=a.getIcon();b&&(this.zk(a).src=b)}};u.vk=function(a){this.$c(a,a.getDepressedIcon())};u.wk=function(a){this.$c(a,a.getHoverIcon())};u.Yw=function(a){this.$c(a,a.getDisabledIcon())};u.$c=function(a,b){if("inline"!=a.getIconDelivery()){var d=a.getIcon();d&&(this.zk(a).src=b||d)}};u.Hb=function(a,b){var d=M.Ib(a),e=gm.Zf;b?H.n(d,e):H.F(d,e)};u.TB=function(a){a=M.Ib(a);"A"!=a.tagName&&(a=H.qc(a,"a",1));a.setAttribute("aria-disabled","true")};
u.IB=function(a){a=M.Ib(a);"A"!=a.tagName&&(a=H.qc(a,"a",1));a.removeAttribute("aria-disabled")};