var ao=I.ea(I,"AdfDhtmlCommandLinkPeer");m("AdfDhtmlCommandLinkPeer",ao);ao.C=function(){r.bb(AdfRichCommandLink);I.ra(this,D.wb);I.hc(this,AdfRichCommandLink.TEXT);I.sb(this,AdfRichCommandLink.TEXT);this.jZa="_adfClc";this.df="_busy";this.oA="data-afr-tlen"};m("AdfDhtmlCommandLinkPeer.InitSubclass",ao.C);
ao.prototype.M=function(a){var b=!0;if(a.Wd()!=Qa.Ef){var d=a.X();C.XY(this.i(),d,ao.jZa)&&(b=!1)}if(b){b=this.f();d=b.K(ao.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:ao.prototype.M});ao.prototype.Gf=function(){return this.f().getText()};r.a("AdfDhtmlCommandLinkPeer.prototype.GetAccessibleName",{Gf:ao.prototype.Gf});
ao.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);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:ao.prototype.sc});ao.prototype.Oa=function(){return ji.jd()};r.a("AdfDhtmlCommandLinkPeer.prototype.GetInlineEditor",{Oa:ao.prototype.Oa});
ao.prototype.Jg=C.YE;ao.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(ao.df,a,!1,G.ud)))};r.a("AdfDhtmlCommandLinkPeer.prototype.SetBusy",{vd:ao.prototype.vd});ao.prototype.td=function(){var a=this.f();return a&&a.K(ao.df)};r.a("AdfDhtmlCommandLinkPeer.prototype.isBusy",{td:ao.prototype.td});