var Ds=M.U(M,"AdfDhtmlPanelHeaderPeer",p);v("AdfDhtmlPanelHeaderPeer",Ds);Ds.m=function(){M.ha(this,I.jb,ab.ga);this.O5="_afrHlpPop";this.KJa="_afrHlpCnt";this.nra="_afrTtxt";this.FOa="_afrStr";this.RL="_afrEps";this.KLa=0};v("AdfDhtmlPanelHeaderPeer.InitSubclass",Ds.m);Ds.prototype.Init=function(a){Ds.f.Init.call(this,a);this.ZB=l};z.a("AdfDhtmlPanelHeaderPeer.prototype.Init",{Init:Ds.prototype.Init});Ds.prototype.ja=t(l);z.a("AdfDhtmlPanelHeaderPeer.prototype.needsResizeNotify",{ja:Ds.prototype.ja});
Ds.prototype.Z=function(a){delete this.ZB;delete this.Oba;delete this.OY;delete this.Kua;Ds.f.Z.call(this,a)};z.a("AdfDhtmlPanelHeaderPeer.prototype.ComponentRemoved",{Z:Ds.prototype.Z});
Ds.prototype.C=function(a){var b=this.d(),d=b.e(),e=M.g(d,"_afrHlpLnk"),f=w.b,g=a.L(),h=f.T(g),h="A"!=h.tagName?h.parentNode:h;if(a.Jb()&&h.id==e){a=M.g(d,"_afrHlpCtr");if(a=f.getElementById(a)){for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;a!=n&&(d={},d[AdfRichPopup.fd]=AdfRichPopup.of,d[AdfRichPopup.pf]=e,this.fe(b,a,d,Ds.O5))}f.preventDefault(g);return l}};z.a("AdfDhtmlPanelHeaderPeer.prototype.HandleComponentClick",{C:Ds.prototype.C});
Ds.prototype.qf=function(a){var b=this.d(),d=b.e();M.g(d,Ds.KJa)==a.getSource().e()&&(a.cancel(),this.ob(b,Ds.O5))};z.a("AdfDhtmlPanelHeaderPeer.prototype.HandleComponentDialog",{qf:Ds.prototype.qf});Ds.prototype.Va=function(a,b,d){Ds.O5==d&&(Ds.f.Va.call(this,a,b),a=a.e(),a=M.g(a,"_afrHlpCtr"),(a=w.b.getElementById(a))&&a.appendChild(b))};z.a("AdfDhtmlPanelHeaderPeer.prototype.PopupClosed",{Va:Ds.prototype.Va});
Ds.prototype.Ia=function(a,b,d){a=this.Oba;if(this.Oba==n)a:{var e=w.b;b=this.h();a=0;var f=w.ua,g=e.getComputedStyle(b),g=f(g.paddingLeft)+f(g.paddingRight);a+=g;var g=H.Ua(b,"table"),h=H.Ua(g,"tr");if(3==H.Tc(h).length)var m=l;if(m){m=H.Ua(g,"tr");if(m==n)break a;m=H.Tc(m);a+=m[0].offsetWidth;a+=m[2].offsetWidth;g=m[1];m=H.Ua(m[1],"table")}else m=g;g=e.getComputedStyle(g);f=f(g.paddingLeft)+f(g.paddingRight);a+=f;f=Es(this);this.OY=g=H.ca(f).offsetWidth;a+=g;f.style.width=g+"px";f.style.maxWidth=
g+"px";e.G()==w.ed&&1.8==e.nb()&&(f.style.overflow="hidden");e=H.Ua(m,"tr");e=H.Tc(e);f=b.getAttribute("id");b=M.g(f,Ds.nra);for(var f=M.g(f,Ds.FOa),m=e.length,q=0;q<m;q++)g=e[q],h=g.getAttribute("id"),b!=h&&f!=h&&(a+=g.offsetWidth);this.Oba=a}d>=a?this.ZB||(d=this.fx(),H.ca(d).style.display="none",d=Es(this),a=this.OY,d.style.width=a+"px",d.style.maxWidth=a+"px",this.ZB=l):(d=a-d,a=this.fx(),b=H.ca(a),e=this.Kua,this.ZB&&(b.style.display="",e==n&&(this.Kua=e=w.b.MC(a,a.offsetWidth)),0==this.OY&&
(b.style.display="none")),d=this.OY-(e+d),a=Ds.KLa,d=d<a?a:d,a=Es(this),a.style.width=d+"px",a.style.maxWidth=d+"px",this.ZB=p)};z.a("AdfDhtmlPanelHeaderPeer.prototype.ResizeNotify",{Ia:Ds.prototype.Ia});function Es(a){a=a.h().getAttribute("id");a=M.g(a,Ds.nra);a=w.b.getElementById(a);return H.ca(a)}Ds.prototype.fx=function(){var a=this.h().getAttribute("id"),a=M.g(a,Ds.RL);return w.b.getElementById(a)};