var tq=I.ea(I,"AdfDhtmlLinkPeer");m("AdfDhtmlLinkPeer",tq);tq.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.V0a="p_OraHiddenLabel";this.I1a="_adfClc";this.df="_busy";this.oA="data-afr-tlen";this.nCa="_afrlblBy";this.v5a="af_link.ARIA_SELECTED_STATE"};m("AdfDhtmlLinkPeer.InitSubclass",tq.C);
tq.prototype.M=function(a){if(a.Wd()!=Qa.Ef){var b=a.X();if(C.XY(this.i(),b,tq.I1a))return}var b=this.f(),d=b.K(tq.df);!a.ec()||b.getDisabled()||d||(null!=this.f().getDestination()?this.K4(a):this.J4())};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentClick",{M:tq.prototype.M});tq.prototype.$a=function(){this.f().getDisabled()||this.Vl(this.f())};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentMouseOver",{$a:tq.prototype.$a});
tq.prototype.fc=function(){var a=this.f();a.getDisabled()||(this.Gb(a,!1),this.Ei(this.f()))};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentMouseOut",{fc:tq.prototype.fc});tq.prototype.Ac=function(){var a=this.f();a.getDisabled()||(this.Gb(a,!1),this.Vl(a))};r.a("AdfDhtmlLinkPeer.prototype.HandleComponentMouseUp",{Ac:tq.prototype.Ac});tq.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:tq.prototype.Fa});
tq.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("AdfDhtmlLinkPeer.prototype.ComponentDisabledChanged",{we:tq.prototype.we});
tq.prototype.zq=function(a,b,d){if(d){this.Gb(a,!0);C.w(b,tq.Mj);var e=this.i();b=a.g();"A"!=e.tagName&&(e=C.Ic(e,"a",1));e.setAttribute("aria-labelledby",b+"::text "+b+tq.nCa);d=yc.prototype.Z(tq.v5a);var e=e.parentNode,f=a.o().R().createElement("LABEL");f.id=b+tq.nCa;C.w(f,tq.V0a);q.b.bc(f," : "+d);null!=e&&e.appendChild(f);this.Ul(a)}else this.Gb(a,!1),C.O(b,tq.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.Ei(a)};r.a("AdfDhtmlLinkPeer.prototype.ComponentSelectedChanged",{zq:tq.prototype.zq});tq.prototype.Jg=C.YE;tq.prototype.Gf=function(){return this.f().getText()};r.a("AdfDhtmlLinkPeer.prototype.GetAccessibleName",{Gf:tq.prototype.Gf});
tq.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(tq.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:tq.prototype.sc});tq.prototype.Oa=function(){return ji.jd()};r.a("AdfDhtmlLinkPeer.prototype.GetInlineEditor",{Oa:tq.prototype.Oa});
tq.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(tq.df,a,!1,G.ud)))};r.a("AdfDhtmlLinkPeer.prototype.SetBusy",{vd:tq.prototype.vd});tq.prototype.td=function(){var a=this.f();return a&&a.K(tq.df)};r.a("AdfDhtmlLinkPeer.prototype.isBusy",{td:tq.prototype.td});k=tq.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.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=tq.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")};