var tu=I.ea(I,"AdfDhtmlPanelHeaderPeer",!1);m("AdfDhtmlPanelHeaderPeer",tu);tu.C=function(){I.ra(this,D.wb,Za.ua);this.zea="_afrHlpPop";this.$_a="_afrHlpCnt";this.mFa="_afrTtxt";this.f6a="_afrStr";this.y2a=0;this.Q0a="data-afr-hdr-tbl"};m("AdfDhtmlPanelHeaderPeer.InitSubclass",tu.C);tu.prototype.Init=function(a){tu.h.Init.call(this,a);this.PN=!0};r.a("AdfDhtmlPanelHeaderPeer.prototype.Init",{Init:tu.prototype.Init});tu.prototype.ya=function(){return!0};
r.a("AdfDhtmlPanelHeaderPeer.prototype.needsResizeNotify",{ya:tu.prototype.ya});tu.prototype.ka=function(a){delete this.PN;delete this.Tma;delete this.Nna;tu.h.ka.call(this,a)};r.a("AdfDhtmlPanelHeaderPeer.prototype.ComponentRemoved",{ka:tu.prototype.ka});
tu.prototype.M=function(a){var b=this.f(),d=b.g(),e=I.j(d,"_afrHlpLnk"),f=q.b,g=a.U(),h=f.ca(g),h="A"!=h.tagName?h.parentNode:h;if(a.ec()&&h.id==e){a=I.j(d,"_afrHlpCtr");if(a=f.getElementById(a)){for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;null!=a&&(d={},d[AdfRichPopup.Ed]=AdfRichPopup.qf,d[AdfRichPopup.Jf]=e,this.He(b,a,d,tu.zea))}f.preventDefault(g);return!0}};r.a("AdfDhtmlPanelHeaderPeer.prototype.HandleComponentClick",{M:tu.prototype.M});
tu.prototype.eg=function(a){var b=this.f(),d=b.g();I.j(d,tu.$_a)==a.getSource().g()&&(a.cancel(),this.Jb(b,tu.zea))};r.a("AdfDhtmlPanelHeaderPeer.prototype.HandleComponentDialog",{eg:tu.prototype.eg});tu.prototype.ob=function(a,b,d){tu.zea==d&&(tu.h.ob.call(this,a,b),a=a.g(),a=I.j(a,"_afrHlpCtr"),(a=q.b.getElementById(a))&&a.appendChild(b))};r.a("AdfDhtmlPanelHeaderPeer.prototype.PopupClosed",{ob:tu.prototype.ob});
tu.prototype.Sa=function(a,b,d){a=this.Tma;if(null==this.Tma)a:{var e=q.b;b=this.i();a=0;var f=q.Ma,g=e.getComputedStyle(b),g=f(g.paddingLeft)+f(g.paddingRight);a+=g;var g=C.ib(b,"table"),h=C.ib(g,"tr"),h=C.Dc(h),l=g.getAttribute(tu.Q0a);if(3==h.length&&l)var n=!0;if(n){n=C.ib(g,"tr");if(null==n)break a;n=C.Dc(n);a+=n[0].offsetWidth;a+=n[2].offsetWidth;g=n[1];n=C.ib(n[1],"table")}else n=g;g=e.getComputedStyle(g);f=f(g.paddingLeft)+f(g.paddingRight);a+=f;f=uu(this);g=C.pa(f);g.style.whiteSpace="nowrap";
h=Math.ceil(g.getBoundingClientRect().width);g.style.whiteSpace="";this.Nna=h;a+=h;f.style.width=h+"px";f.style.maxWidth=h+"px";e.S()==q.Yc&&1.8==e.Ib()&&(f.style.overflow="hidden");e=C.ib(n,"tr");e=C.Dc(e);f=b.getAttribute("id");b=I.j(f,tu.mFa);f=I.j(f,tu.f6a);n=e.length;for(l=0;l<n;l++)g=e[l],h=g.getAttribute("id"),b!=h&&f!=h&&(a+=g.offsetWidth);this.Tma=a}d>=a?this.PN||(d=uu(this),a=this.Nna,d.style.width=a+"px",d.style.maxWidth=a+"px",this.PN=!0):2<a-d&&(d=this.Nna-(a-d),a=tu.y2a,d=d<a?a:d,a=
uu(this),a.style.width=d+"px",a.style.maxWidth=d+"px",this.PN=!1)};r.a("AdfDhtmlPanelHeaderPeer.prototype.ResizeNotify",{Sa:tu.prototype.Sa});function uu(a){a=a.i().getAttribute("id");a=I.j(a,tu.mFa);a=q.b.getElementById(a);return C.pa(a)};