var bo=I.ea(ao,"AdfDhtmlCommandImageLinkPeer");m("AdfDhtmlCommandImageLinkPeer",bo);bo.C=function(){r.bb(AdfRichCommandImageLink);I.ra(this,D.Bd,D.Rg);q.b.Dd()||I.ra(this,D.ze,D.gg);I.sb(this,AdfRichCommandImageLink.DISABLED);this.Ph="p_AFDepressed"};m("AdfDhtmlCommandImageLinkPeer.InitSubclass",bo.C);bo.prototype.we=function(a,b,d){1==d?(C.w(b,I.lb),this.VA(a),this.SG(a),b.setAttribute(J.Hh,"false")):(C.O(b,I.lb),this.Ei(a),this.FG(a),b.setAttribute(J.Hh,"true"))};
r.a("AdfDhtmlCommandImageLinkPeer.prototype.ComponentDisabledChanged",{we:bo.prototype.we});bo.prototype.$a=function(){this.f().getDisabled()||this.Vl(this.f())};r.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseOver",{$a:bo.prototype.$a});bo.prototype.fc=function(){var a=this.f();a.getDisabled()||(this.Gb(a,!1),this.Ei(this.f()))};r.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseOut",{fc:bo.prototype.fc});
bo.prototype.Ac=function(){var a=this.f();a.getDisabled()||(this.Gb(a,!1),this.Vl(a))};r.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseUp",{Ac:bo.prototype.Ac});bo.prototype.Fa=function(a){var b=this.f();a=a.ec();!b.getDisabled()&&a&&(this.Gb(b,!0),this.Ul(b))};r.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseDown",{Fa:bo.prototype.Fa});
bo.prototype.sc=function(a,b){"SPAN"==b.tagName&&(b=C.Mi(b,1,1));if(b){u.assert("A"==b.tagName,"Anchor element is expected root of link component");var d=b.getAttribute(ao.oA);if(null==d)return null;if(0==d)return"";var e=C.ib(b,"span");if(e)return q.b.mc(e).slice(0,d)}u.assert(!1,"Unable to find the element containing the text")};r.a("AdfDhtmlCommandImageLinkPeer.prototype.GetComponentText",{sc:bo.prototype.sc});k=bo.prototype;k.Zl=function(a){a=a.g();a=I.j(a,"icon");return q.b.getElementById(a)};
k.Ei=function(a){if(!I.yo(a)){var b=a.getIcon();b&&(this.Zl(a).src=b)}};k.Ul=function(a){this.Hd(a,a.getDepressedIcon())};k.Vl=function(a){this.Hd(a,a.getHoverIcon())};k.VA=function(a){this.Hd(a,a.getDisabledIcon())};k.Hd=function(a,b){if(!I.yo(a)){var d=a.getIcon();d&&(this.Zl(a).src=b||d)}};k.Gb=function(a,b){var d=I.Fb(a),e=bo.Ph;b?C.w(d,e):C.O(d,e)};k.SG=function(a){a=I.Fb(a);"A"!=a.tagName&&(a=C.Ic(a,"a",1));a.setAttribute("aria-disabled","true")};
k.FG=function(a){a=I.Fb(a);"A"!=a.tagName&&(a=C.Ic(a,"a",1));a.removeAttribute("aria-disabled")};