var rq=I.ea(I,"AdfDhtmlLinkPeer");m("AdfDhtmlLinkPeer",rq);rq.C=function(){r.bb(AdfRichLink);I.ra(this,D.wb,D.Bd,D.Rg);q.b.Dd()||I.ra(this,D.ze,D.gg);I.sb(this,AdfRichLink.TEXT,AdfRichLink.DISABLED,AdfRichLink.SELECTED);I.hc(this,AdfRichLink.TEXT);this.Ph="p_AFDepressed";this.Mj="p_AFSelected";this.Q0a="p_OraHiddenLabel";this.D1a="_adfClc";this.df="_busy";this.oA="data-afr-tlen";this.jCa="_afrlblBy";this.s5a="af_link.ARIA_SELECTED_STATE"};m("AdfDhtmlLinkPeer.InitSubclass",rq.C);
rq.prototype.M=function(a){if(a.ce()!=Qa.Ef){var b=a.X();if(C.XY(this.i(),b,rq.D1a))return}var b=this.f(),d=b.K(rq.df);!a.ec()||b.getDisabled()||d||(null!=this.f().getDestination()?this.K4(a):this.J4())};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentClick",{M:rq.prototype.M});rq.prototype.$a=function(){this.f().getDisabled()||this.Vl(this.f())};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentMouseOver",{$a:rq.prototype.$a});
rq.prototype.fc=function(){var a=this.f();a.getDisabled()||(this.Gb(a,!1),this.Di(this.f()))};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentMouseOut",{fc:rq.prototype.fc});rq.prototype.Ac=function(){var a=this.f();a.getDisabled()||(this.Gb(a,!1),this.Vl(a))};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentMouseUp",{Ac:rq.prototype.Ac});rq.prototype.Fa=function(a){var b=this.f();a=a.ec();!b.getDisabled()&&a&&(this.Gb(b,!0),this.Ul(b))};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentMouseDown",{Fa:rq.prototype.Fa});
rq.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("AdfDhtmlLinkPeer.prototype.ComponentDisabledChanged",{we:rq.prototype.we});
rq.prototype.yq=function(a,b,d){if(d){this.Gb(a,!0);C.w(b,rq.Mj);var e=this.i();b=a.g();"A"!=e.tagName&&(e=C.Ic(e,"a",1));e.setAttribute("aria-labelledby",b+"::text "+b+rq.jCa);d=yc.prototype.Z(rq.s5a);var e=e.parentNode,f=a.o().R().createElement("LABEL");f.id=b+rq.jCa;C.w(f,rq.Q0a);q.b.bc(f," : "+d);null!=e&&e.appendChild(f);this.Ul(a)}else this.Gb(a,!1),C.O(b,rq.Mj),b=this.i(),"A"!=b.tagName&&(b=C.Ic(b,"a",1)),b.removeAttribute("aria-labelledby"),b=b.parentNode,console.log(b),b.removeChild(C.Ic(b,
"label",0)),this.Di(a)};r.a("AdfDhtmlLinkPeer.prototype.ComponentSelectedChanged",{yq:rq.prototype.yq});rq.prototype.Jg=C.YE;rq.prototype.Gf=function(){return this.f().getText()};r.a("AdfDhtmlLinkPeer.prototype.GetAccessibleName",{Gf:rq.prototype.Gf});
rq.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(rq.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("AdfDhtmlLinkPeer.prototype.GetComponentText",{sc:rq.prototype.sc});rq.prototype.Oa=function(){return hi.jd()};r.a("AdfDhtmlLinkPeer.prototype.GetInlineEditor",{Oa:rq.prototype.Oa});
rq.prototype.vd=function(a){var b=this.f(),d=this.i(),e=C.lf(d);e&&(e=C.ZH(e),b.getDisabled()||e||A.c.Zg()||(C.qd(a,d,I.lb),b.setProperty(rq.df,a,!1,G.ud)))};r.a("AdfDhtmlLinkPeer.prototype.SetBusy",{vd:rq.prototype.vd});rq.prototype.td=function(){var a=this.f();return a&&a.K(rq.df)};r.a("AdfDhtmlLinkPeer.prototype.isBusy",{td:rq.prototype.td});k=rq.prototype;k.J4=function(){var a=this.f(),b=new ab(a),d=a.K("_F_PARAMS");d&&M.K2(b,d);b.F(a.getPartialSubmit())};
k.K4=function(a){var b=this.i();"A"!=b.tagName&&(b=C.Ic(b,"a",1));var d=b.getAttribute("href");if(null==d||""==d)a.cancel();else{var e=q.b.R().location.href,f=e.indexOf("#");if(-1==d.indexOf(-1==f?e:e.substring(0,f))||1<d.substring(d.indexOf("#")).length)d=b.getAttribute("target"),A.c.$E(b.attributes.href.value,d),a.cancel()}};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=rq.Ph;b?C.w(d,e):C.O(d,e)};k.SG=function(){var a=this.i();"A"!=a.tagName&&(a=C.Ic(a,"a",1));a.setAttribute("aria-disabled","true")};k.FG=function(){var a=this.i();"A"!=a.tagName&&(a=C.Ic(a,"a",1));a.removeAttribute("aria-disabled")};