var ko=I.ea(I,"AdfDhtmlDecorativeBoxPeer",!1);m("AdfDhtmlDecorativeBoxPeer",ko);ko.prototype.ue=function(){return!0};r.a("AdfDhtmlDecorativeBoxPeer.prototype.needsChildVisibilityChanges",{ue:ko.prototype.ue});ko.prototype.ya=function(){return!0};r.a("AdfDhtmlDecorativeBoxPeer.prototype.needsResizeNotify",{ya:ko.prototype.ya});
ko.prototype.tb=function(a,b){ko.h.tb.call(this,a,b);var d=a.g(),e=q.b;this.J7=e.getElementById(I.j(d,"tl"));this.WN=e.getElementById(I.j(d,"t"));this.$n=e.getElementById(I.j(d,"t-i"));this.L7=e.getElementById(I.j(d,"tr"));this.yma=e.getElementById(I.j(d,"l"));this.Kia=e.getElementById(I.j(d,"c"));this.moa=e.getElementById(I.j(d,"r"));if(this.Sla=C.sa(b,"p_AFFlow"))this.lQa=C.pa(b)};r.a("AdfDhtmlDecorativeBoxPeer.prototype.BindToComponent",{tb:ko.prototype.tb});
ko.prototype.cn=function(){ko.h.cn.call(this);this.moa=this.Kia=this.yma=this.L7=this.$n=this.WN=this.J7=null};r.a("AdfDhtmlDecorativeBoxPeer.prototype.UnbindFromComponent",{cn:ko.prototype.cn});ko.prototype.Sa=function(){};r.a("AdfDhtmlDecorativeBoxPeer.prototype.ResizeNotify",{Sa:ko.prototype.Sa});ko.prototype.nc=function(a){if(a.parentNode!=this.$n)return a;var b=q.b,d=!1,e=C.kb(this.$n),f=C.kb(a);f!=e&&(C.setVisible(this.$n,f),this.wp(),d=!0);b.kq(a,"0px");return d?this.i():(b.yo(a,"0px"),a)};
r.a("AdfDhtmlDecorativeBoxPeer.prototype.DomReplaceNotify",{nc:ko.prototype.nc});ko.prototype.le=function(a,b,d){if(b.parentNode!=this.$n)return!1;C.setVisible(this.$n,d);this.wp();C.setVisible(b,d);A.c.Xg(this.f());return!0};r.a("AdfDhtmlDecorativeBoxPeer.prototype.ChildVisibilityChanged",{le:ko.prototype.le});
ko.prototype.wp=function(){var a;if(this.$n&&C.kb(this.$n))a=this.f().getTopHeight();else a:{var b=this.WN;a=this.f().getTheme();var d=A.c.H(),e=A.c.Ka().La();switch(b){case this.J7:area=e?"top-end":"top-start";break;case this.WN:case this.$n:area="top";break;case this.L7:area=e?"top-start":"top-end";break;default:a=null;break a}b=null;null!=a&&(b=d.qa("af|decorativeBox::"+area+"[theme\x3d'"+a+"']-tr-height"));null==b&&(b=d.qa("af|decorativeBox::"+area+"-tr-height"));a=b}this.J7&&(this.J7.style.height=
a);this.WN&&(this.WN.style.height=a);this.L7&&(this.L7.style.height=a);if(this.Sla){if(this.WN.parentNode.style.height=a,this.Sla?this.$n&&this.$n.parentNode==this.lQa:this.$n&&this.$n.parentNode==this.i())this.lQa.style.height=a}else this.yma&&(this.yma.style.top=a),this.Kia&&(this.Kia.style.top=a),this.moa&&(this.moa.style.top=a)};ko.prototype.fl=function(){return"simple"==A.c.H().qa("BORDER_STYLE")?I.la(this.f().g(),"c"):this.f().g()};r.a("AdfDhtmlDecorativeBoxPeer.prototype.getContainerId",{fl:ko.prototype.fl});