var $n=I.ea(Zn,"AdfDhtmlCommandImageLinkPeer");m("AdfDhtmlCommandImageLinkPeer",$n);$n.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",$n.C);$n.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.Di(a),this.FG(a),b.setAttribute(J.Hh,"true"))};
r.a("AdfDhtmlCommandImageLinkPeer.prototype.ComponentDisabledChanged",{we:$n.prototype.we});$n.prototype.$a=function(){this.f().getDisabled()||this.Vl(this.f())};r.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseOver",{$a:$n.prototype.$a});$n.prototype.fc=function(){var a=this.f();a.getDisabled()||(this.Gb(a,!1),this.Di(this.f()))};r.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseOut",{fc:$n.prototype.fc});
$n.prototype.Ac=function(){var a=this.f();a.getDisabled()||(this.Gb(a,!1),this.Vl(a))};r.a("AdfDhtmlCommandImageLinkPeer.prototype.HandleComponentMouseUp",{Ac:$n.prototype.Ac});$n.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:$n.prototype.Fa});
$n.prototype.sc=function(a,b){"SPAN"==b.tagName&&(b=C.Li(b,1,1));if(b){u.assert("A"==b.tagName,"Anchor element is expected root of link component");var d=b.getAttribute(Zn.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:$n.prototype.sc});k=$n.prototype;k.Zl=function(a){a=a.g();a=I.j(a,"icon");return q.b.getElementById(a)};
k.Di=function(a){if(!I.xo(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.xo(a)){var d=a.getIcon();d&&(this.Zl(a).src=b||d)}};k.Gb=function(a,b){var d=I.Fb(a),e=$n.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")};