var Rq=I.ea(I,"AdfDhtmlTogglePeer");m("AdfDhtmlTogglePeer",Rq);Rq.C=function(a){a&&(I.sb(this,a.kUa),I.ra(this,a.DRa));this.f6a=["toggledStyleClass","untoggledStyleClass"];this.f7a=["toggledTipResource","untoggledTipResource"];this.WZa="propertyName clientEventType ltrToggledIconName ltrUntoggledIconName rtlToggledIconName rtlUntoggledIconName".split(" ")};m("AdfDhtmlTogglePeer.InitSubclass",Rq.C);
Rq.Us=function(a,b){for(var d=A.c.H(),e=a.prototype,f=Rq.f6a,g=f.length,h=0;h<g;h++){var l=f[h],n=b[l];n&&(e[l]=d.getStyleClass(n))}l=Rq.f7a;g=l.length;for(h=0;h<g;h++)if(f=l[h],n=b[f+"Key"])n=d.Z(n),u.J(n),e[f]=n;d=Rq.WZa;g=d.length;for(h=0;h<g;h++)l=d[h],l in b&&(e[l]=b[l])};m("AdfDhtmlTogglePeer.Config",Rq.Us);Rq.prototype.ww=function(){u.fa()};r.a("AdfDhtmlTogglePeer.prototype.QueueClientEvent",{ww:Rq.prototype.ww});
Rq.prototype.tda=function(a){var b=this.tk();if(!b)return!1;var d=this.l_,e=this.r_,f=this.Wwb;a&&(f=d,d=e,e=f,f=this.Vwb);if(d)C.O(b,d),C.w(b,e);else if(b=this.Nba())if(d=this.Qra(a))b.src=d;this.dba(a);f&&(a=TrFastMessageFormatUtils.format(f,this.Hz()),this.gD(a),this.eba(a));return!0};r.a("AdfDhtmlTogglePeer.prototype.UpdateButton",{tda:Rq.prototype.tda});Rq.prototype.dba=function(a){var b=this.tk();q.b.setAttribute(b,"aria-expanded",a)};r.a("AdfDhtmlTogglePeer.prototype.ApplyAriaExpanded",{dba:Rq.prototype.dba});
Rq.prototype.eba=function(a){var b=this.tk();q.b.setAttribute(b,"aria-label",a)};r.a("AdfDhtmlTogglePeer.prototype.ApplyAriaLabel",{eba:Rq.prototype.eba});Rq.prototype.gD=function(a){var b=this.tk();q.b.setAttribute(b,"title",a)};r.a("AdfDhtmlTogglePeer.prototype.ApplyTitle",{gD:Rq.prototype.gD});Rq.prototype.Hz=function(){return this.f().K("text")};r.a("AdfDhtmlTogglePeer.prototype.GetTitle",{Hz:Rq.prototype.Hz});Rq.prototype.tk=function(){return this.i()};
r.a("AdfDhtmlTogglePeer.prototype.GetButtonElement",{tk:Rq.prototype.tk});Rq.prototype.Nba=function(){var a=this.tk();return a?a.firstChild:null};r.a("AdfDhtmlTogglePeer.prototype.GetButtonImageElement",{Nba:Rq.prototype.Nba});Rq.prototype.Qra=function(a){a=A.c.Ka().La()?a?this.Grb:this.Hrb:a?this.crb:this.drb;return(a=A.c.H().aZ(a))?a.src:null};r.a("AdfDhtmlTogglePeer.prototype.getIconURL",{Qra:Rq.prototype.Qra});Rq.prototype.eh=function(){return!0};
r.a("AdfDhtmlTogglePeer.prototype.EventPropagatesToServer",{eh:Rq.prototype.eh});Rq.prototype.JP=function(a){a=q.b.ca(a);a="A"!=a.tagName?a.parentNode:a;var b=this.tk();return b&&a==b};r.a("AdfDhtmlTogglePeer.prototype.isEventForButton",{JP:Rq.prototype.JP});Rq.prototype.Oh=function(a){return this.tda(a)};r.a("AdfDhtmlTogglePeer.prototype.HandleClientSideToggle",{Oh:Rq.prototype.Oh});
Rq.prototype.M=function(a){if(!a.Aa()){var b=a.U();if(a.ec()&&this.JP(b)){var d=!this.jR();this.ww(d,!0);q.b.preventDefault(b);a.cancel()}}};r.a("AdfDhtmlTogglePeer.prototype.HandleComponentClick",{M:Rq.prototype.M});Rq.prototype.za=function(a){if(!a.Aa()){var b=a.U();if(this.JP(b)){var d=q.b.na(b),e=this.jR();if(d==w.gd||d==w.ab&&!e||d==w.Ra&&e)this.ww(!e,!0),q.b.preventDefault(b),a.cancel()}}};r.a("AdfDhtmlTogglePeer.prototype.HandleComponentKeyUp",{za:Rq.prototype.za});
Rq.rda=function(a,b,d){this.PLa||this.ww(d,!0);return!0};m("AdfDhtmlTogglePeer.TogglePropertyChangedImpl",Rq.rda);Rq.oca=function(a){var b=this.f();if(!a.Aa()&&a.getSource()==b){this.PLa=!0;try{var d=this.cw(a);a.aa()||null==a.MO||null!=a.MO()?null==a.MO&&b.setProperty(this.propertyName,d,!0):b.setProperty(this.propertyName,d,!0);return this.Oh(d)}finally{delete this.PLa}}return!1};m("AdfDhtmlTogglePeer.HandleToggleEventImpl",Rq.oca);Rq.prototype.cw=function(){return!this.jR()};
r.a("AdfDhtmlTogglePeer.prototype.GetNewValueFromEvent",{cw:Rq.prototype.cw});Rq.prototype.jR=function(){return this.f().K(this.propertyName)};r.a("AdfDhtmlTogglePeer.prototype.GetPropertyValue",{jR:Rq.prototype.jR});