var Zn=I.ea(I,"AdfDhtmlCommandLinkPeer");m("AdfDhtmlCommandLinkPeer",Zn);Zn.C=function(){r.bb(AdfRichCommandLink);I.ra(this,D.wb);I.hc(this,AdfRichCommandLink.TEXT);I.sb(this,AdfRichCommandLink.TEXT);this.fZa="_adfClc";this.df="_busy";this.oA="data-afr-tlen"};m("AdfDhtmlCommandLinkPeer.InitSubclass",Zn.C);
Zn.prototype.M=function(a){var b=!0;if(a.ce()!=Qa.Ef){var d=a.X();C.XY(this.i(),d,Zn.fZa)&&(b=!1)}if(b){b=this.f();d=b.K(Zn.df);if(a.ec()&&!b.getDisabled()&&!d){var d=new ab(b),e=b.K("_F_PARAMS");e&&M.K2(d,e);d.F(b.getPartialSubmit())}a.cancel()}};r.a("AdfDhtmlCommandLinkPeer.prototype.HandleComponentClick",{M:Zn.prototype.M});Zn.prototype.Gf=function(){return this.f().getText()};r.a("AdfDhtmlCommandLinkPeer.prototype.GetAccessibleName",{Gf:Zn.prototype.Gf});
Zn.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);return null==d?null:0==d?"":q.b.mc(b).slice(0,d)}u.assert(!1,"Unable to find the element containing the text")};r.a("AdfDhtmlCommandLinkPeer.prototype.GetComponentText",{sc:Zn.prototype.sc});Zn.prototype.Oa=function(){return hi.jd()};r.a("AdfDhtmlCommandLinkPeer.prototype.GetInlineEditor",{Oa:Zn.prototype.Oa});
Zn.prototype.Jg=C.YE;Zn.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),q.b.setCursor(d,a?"wait":"auto"),b.setProperty(Zn.df,a,!1,G.ud)))};r.a("AdfDhtmlCommandLinkPeer.prototype.SetBusy",{vd:Zn.prototype.vd});Zn.prototype.td=function(){var a=this.f();return a&&a.K(Zn.df)};r.a("AdfDhtmlCommandLinkPeer.prototype.isBusy",{td:Zn.prototype.td});