var mo=I.ea(I,"AdfDhtmlDecorativeBoxPeer",!1);m("AdfDhtmlDecorativeBoxPeer",mo);mo.prototype.ue=function(){return!0};r.a("AdfDhtmlDecorativeBoxPeer.prototype.needsChildVisibilityChanges",{ue:mo.prototype.ue});mo.prototype.ya=function(){return!0};r.a("AdfDhtmlDecorativeBoxPeer.prototype.needsResizeNotify",{ya:mo.prototype.ya});
mo.prototype.tb=function(a,b){mo.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.Bma=e.getElementById(I.j(d,"l"));this.Nia=e.getElementById(I.j(d,"c"));this.poa=e.getElementById(I.j(d,"r"));if(this.Vla=C.sa(b,"p_AFFlow"))this.qQa=C.pa(b)};r.a("AdfDhtmlDecorativeBoxPeer.prototype.BindToComponent",{tb:mo.prototype.tb});
mo.prototype.cn=function(){mo.h.cn.call(this);this.poa=this.Nia=this.Bma=this.L7=this.$n=this.WN=this.J7=null};r.a("AdfDhtmlDecorativeBoxPeer.prototype.UnbindFromComponent",{cn:mo.prototype.cn});mo.prototype.Sa=function(){};r.a("AdfDhtmlDecorativeBoxPeer.prototype.ResizeNotify",{Sa:mo.prototype.Sa});mo.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.xp(),d=!0);b.kq(a,"0px");return d?this.i():(b.zo(a,"0px"),a)};
r.a("AdfDhtmlDecorativeBoxPeer.prototype.DomReplaceNotify",{nc:mo.prototype.nc});mo.prototype.le=function(a,b,d){if(b.parentNode!=this.$n)return!1;C.setVisible(this.$n,d);this.xp();C.setVisible(b,d);A.c.Xg(this.f());return!0};r.a("AdfDhtmlDecorativeBoxPeer.prototype.ChildVisibilityChanged",{le:mo.prototype.le});
mo.prototype.xp=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.Vla){if(this.WN.parentNode.style.height=a,this.Vla?this.$n&&this.$n.parentNode==this.qQa:this.$n&&this.$n.parentNode==this.i())this.qQa.style.height=a}else this.Bma&&(this.Bma.style.top=a),this.Nia&&(this.Nia.style.top=a),this.poa&&(this.poa.style.top=a)};mo.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:mo.prototype.fl});