var Xo=M.U(M,"AdfDhtmlTogglePeer");v("AdfDhtmlTogglePeer",Xo);Xo.m=function(a){a&&(M.hb(this,a.DDa),M.ha(this,a.tBa));this.IOa=["toggledStyleClass","untoggledStyleClass"];this.mPa=["toggledTipResource","untoggledTipResource"];this.OIa="propertyName clientEventType ltrToggledIconName ltrUntoggledIconName rtlToggledIconName rtlUntoggledIconName".split(" ")};v("AdfDhtmlTogglePeer.InitSubclass",Xo.m);
Xo.kq=function(a,b){for(var d=F.c.u(),e=a.prototype,f=Xo.IOa,g=f.length,h=0;h<g;h++){var m=f[h],q=b[m];q&&(e[m]=d.getStyleClass(q))}m=Xo.mPa;g=m.length;for(h=0;h<g;h++)if(f=m[h],q=b[f+"Key"])q=d.V(q),B.s(q),e[f]=q;d=Xo.OIa;g=d.length;for(h=0;h<g;h++)m=d[h],m in b&&(e[m]=b[m])};v("AdfDhtmlTogglePeer.Config",Xo.kq);Xo.prototype.lt=function(){B.$()};z.a("AdfDhtmlTogglePeer.prototype.QueueClientEvent",{lt:Xo.prototype.lt});
Xo.prototype.L4=function(a){var b=this.cl();if(!b)return p;var d=this.sS,e=this.yS,f=this.E$a;a&&(f=d,d=e,e=f,f=this.D$a);if(d)H.F(b,d),H.n(b,e);else if(b=this.$S())if(a=this.cga(a))b.src=a;f&&this.FD(TrFastMessageFormatUtils.L9a(f,this.Uv()));return l};z.a("AdfDhtmlTogglePeer.prototype.UpdateButton",{L4:Xo.prototype.L4});Xo.prototype.FD=function(a){var b=this.cl();w.b.setAttribute(b,"title",a)};z.a("AdfDhtmlTogglePeer.prototype.ApplyTitle",{FD:Xo.prototype.FD});Xo.prototype.Uv=function(){return this.d().r("text")};
z.a("AdfDhtmlTogglePeer.prototype.GetTitle",{Uv:Xo.prototype.Uv});Xo.prototype.cl=function(){return this.h()};z.a("AdfDhtmlTogglePeer.prototype.GetButtonElement",{cl:Xo.prototype.cl});Xo.prototype.$S=function(){var a=this.cl();return a?a.firstChild:n};z.a("AdfDhtmlTogglePeer.prototype.GetButtonImageElement",{$S:Xo.prototype.$S});Xo.prototype.cga=function(a){a=F.c.Ma().Oa()?a?this.R4a:this.S4a:a?this.r4a:this.s4a;return(a=F.c.u().pR(a))?a.src:n};z.a("AdfDhtmlTogglePeer.prototype.getIconURL",{cga:Xo.prototype.cga});
Xo.prototype.og=t(l);z.a("AdfDhtmlTogglePeer.prototype.EventPropagatesToServer",{og:Xo.prototype.og});Xo.prototype.yJ=function(a){a=w.b.T(a);a="A"!=a.tagName?a.parentNode:a;return a==this.cl()};z.a("AdfDhtmlTogglePeer.prototype.isEventForButton",{yJ:Xo.prototype.yJ});Xo.prototype.Qg=function(a){return this.L4(a)};z.a("AdfDhtmlTogglePeer.prototype.HandleClientSideToggle",{Qg:Xo.prototype.Qg});
Xo.prototype.C=function(a){if(!a.na()){var b=a.L();if(a.Jb()&&this.yJ(b)){var d=!this.MK();this.lt(d,l);w.b.preventDefault(b);a.cancel()}}};z.a("AdfDhtmlTogglePeer.prototype.HandleComponentClick",{C:Xo.prototype.C});Xo.prototype.pa=function(a){if(!a.na()){var b=a.L();if(this.yJ(b)){var d=w.b.ia(b),e=this.MK();if(d==E.Ya&&!e||d==E.Ja&&e)this.lt(!e,l),w.b.preventDefault(b),a.cancel()}}};z.a("AdfDhtmlTogglePeer.prototype.HandleComponentKeyUp",{pa:Xo.prototype.pa});
Xo.J4=function(a,b,d){this.Cwa||this.lt(d,l);return l};v("AdfDhtmlTogglePeer.TogglePropertyChangedImpl",Xo.J4);Xo.N3=function(a){var b=this.d();if(!a.na()&&a.getSource()==b){this.Cwa=l;try{var d=this.Zs(a);!a.M()&&a.JI!=n&&a.JI()==n?b.setProperty(this.propertyName,d,l):a.JI==n&&b.setProperty(this.propertyName,d,l);return this.Qg(d)}finally{delete this.Cwa}}return p};v("AdfDhtmlTogglePeer.HandleToggleEventImpl",Xo.N3);Xo.prototype.Zs=function(){return!this.MK()};
z.a("AdfDhtmlTogglePeer.prototype.GetNewValueFromEvent",{Zs:Xo.prototype.Zs});Xo.prototype.MK=function(){return this.d().r(this.propertyName)};z.a("AdfDhtmlTogglePeer.prototype.GetPropertyValue",{MK:Xo.prototype.MK});