var ru=I.ea(I,"AdfDhtmlPanelHeaderPeer",!1);m("AdfDhtmlPanelHeaderPeer",ru);ru.C=function(){I.ra(this,D.wb,Za.ua);this.xea="_afrHlpPop";this.V_a="_afrHlpCnt";this.iFa="_afrTtxt";this.c6a="_afrStr";this.t2a=0;this.L0a="data-afr-hdr-tbl"};m("AdfDhtmlPanelHeaderPeer.InitSubclass",ru.C);ru.prototype.Init=function(a){ru.h.Init.call(this,a);this.PN=!0};r.a("AdfDhtmlPanelHeaderPeer.prototype.Init",{Init:ru.prototype.Init});ru.prototype.ya=function(){return!0};
r.a("AdfDhtmlPanelHeaderPeer.prototype.needsResizeNotify",{ya:ru.prototype.ya});ru.prototype.ka=function(a){delete this.PN;delete this.Qma;delete this.Kna;ru.h.ka.call(this,a)};r.a("AdfDhtmlPanelHeaderPeer.prototype.ComponentRemoved",{ka:ru.prototype.ka});
ru.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,ru.xea))}f.preventDefault(g);return!0}};r.a("AdfDhtmlPanelHeaderPeer.prototype.HandleComponentClick",{M:ru.prototype.M});
ru.prototype.eg=function(a){var b=this.f(),d=b.g();I.j(d,ru.V_a)==a.getSource().g()&&(a.cancel(),this.Jb(b,ru.xea))};r.a("AdfDhtmlPanelHeaderPeer.prototype.HandleComponentDialog",{eg:ru.prototype.eg});ru.prototype.ob=function(a,b,d){ru.xea==d&&(ru.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:ru.prototype.ob});
ru.prototype.Sa=function(a,b,d){a=this.Qma;if(null==this.Qma)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(ru.L0a);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=su(this);g=C.pa(f);g.style.whiteSpace="nowrap";
h=Math.ceil(g.getBoundingClientRect().width);g.style.whiteSpace="";this.Kna=h;a+=h;f.style.width=h+"px";f.style.maxWidth=h+"px";e.S()==q.ed&&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,ru.iFa);f=I.j(f,ru.c6a);n=e.length;for(l=0;l<n;l++)g=e[l],h=g.getAttribute("id"),b!=h&&f!=h&&(a+=g.offsetWidth);this.Qma=a}d>=a?this.PN||(d=su(this),a=this.Kna,d.style.width=a+"px",d.style.maxWidth=a+"px",this.PN=!0):2<a-d&&(d=this.Kna-(a-d),a=ru.t2a,d=d<a?a:d,a=
su(this),a.style.width=d+"px",a.style.maxWidth=d+"px",this.PN=!1)};r.a("AdfDhtmlPanelHeaderPeer.prototype.ResizeNotify",{Sa:ru.prototype.Sa});function su(a){a=a.i().getAttribute("id");a=I.j(a,ru.iFa);a=q.b.getElementById(a);return C.pa(a)};