var sm=M.U(M,"AdfDhtmlDecorativeBoxPeer",p);v("AdfDhtmlDecorativeBoxPeer",sm);sm.prototype.Md=t(l);z.a("AdfDhtmlDecorativeBoxPeer.prototype.needsChildVisibilityChanges",{Md:sm.prototype.Md});sm.prototype.ja=t(l);z.a("AdfDhtmlDecorativeBoxPeer.prototype.needsResizeNotify",{ja:sm.prototype.ja});
sm.prototype.Za=function(a,b){sm.f.Za.call(this,a,b);var d=a.e(),e=w.b;this.TZ=e.getElementById(M.g(d,"tl"));this.ZH=e.getElementById(M.g(d,"t"));this.Ol=e.getElementById(M.g(d,"t-i"));this.UZ=e.getElementById(M.g(d,"tr"));this.wba=e.getElementById(M.g(d,"l"));this.n9=e.getElementById(M.g(d,"c"));this.dda=e.getElementById(M.g(d,"r"));if(this.Vaa=H.ta(b,"p_AFFlow"))this.oAa=H.ca(b)};z.a("AdfDhtmlDecorativeBoxPeer.prototype.BindToComponent",{Za:sm.prototype.Za});
sm.prototype.jl=function(){sm.f.jl.call(this);this.dda=this.n9=this.wba=this.UZ=this.Ol=this.ZH=this.TZ=n};z.a("AdfDhtmlDecorativeBoxPeer.prototype.UnbindFromComponent",{jl:sm.prototype.jl});sm.prototype.Ia=ca();z.a("AdfDhtmlDecorativeBoxPeer.prototype.ResizeNotify",{Ia:sm.prototype.Ia});sm.prototype.Rb=function(a){if(a.parentNode!=this.Ol)return a;var b=w.b,d=p,e=H.hc(this.Ol),f=H.hc(a);f!=e&&(H.setVisible(this.Ol,f),this.gn(),d=l);b.Nn(a,"0px");return!d?(b.jm(a,"0px"),a):this.h()};
z.a("AdfDhtmlDecorativeBoxPeer.prototype.DomReplaceNotify",{Rb:sm.prototype.Rb});sm.prototype.Ed=function(a,b,d){if(b.parentNode!=this.Ol)return p;H.setVisible(this.Ol,d);this.gn();H.setVisible(b,d);F.c.lh(this.d());return l};z.a("AdfDhtmlDecorativeBoxPeer.prototype.ChildVisibilityChanged",{Ed:sm.prototype.Ed});
sm.prototype.gn=function(){var a;if(this.Ol&&H.hc(this.Ol))a=this.d().getTopHeight();else a:{var b=this.ZH;a=this.d().getTheme();var d=F.c.u(),e=F.c.Ma().Oa();switch(b){case this.TZ:area=e?"top-end":"top-start";break;case this.ZH:case this.Ol:area="top";break;case this.UZ:area=e?"top-start":"top-end";break;default:a=n;break a}b=n;a!=n&&(b=d.ka("af|decorativeBox::"+area+"[theme\x3d'"+a+"']-tr-height"));b==n&&(b=d.ka("af|decorativeBox::"+area+"-tr-height"));a=b}this.TZ&&(this.TZ.style.height=a);this.ZH&&
(this.ZH.style.height=a);this.UZ&&(this.UZ.style.height=a);if(this.Vaa){if(this.ZH.parentNode.style.height=a,this.Vaa?this.Ol&&this.Ol.parentNode==this.oAa:this.Ol&&this.Ol.parentNode==this.h())this.oAa.style.height=a}else this.wba&&(this.wba.style.top=a),this.n9&&(this.n9.style.top=a),this.dda&&(this.dda.style.top=a)};sm.prototype.Uj=function(){return"simple"==F.c.u().ka("BORDER_STYLE")?M.Na(this.d().e(),"c"):this.d().e()};z.a("AdfDhtmlDecorativeBoxPeer.prototype.getContainerId",{Uj:sm.prototype.Uj});