function Pg(){this.Init()}v("AdfDhtmlPopupLayer",Pg);z.l(Pg,vg);Pg.G3="animateFrameMethod";v("AdfDhtmlPopupLayer.HINT_ANIMATE_FRAME_METHOD",Pg.G3);Pg.pE="animateVertically";v("AdfDhtmlPopupLayer.HINT_ANIMATE_VERTICALLY",Pg.pE);Pg.Vv="animateHorizontally";v("AdfDhtmlPopupLayer.HINT_ANIMATE_HORIZONTALLY",Pg.Vv);Pg.Az="animateClosed";v("AdfDhtmlPopupLayer.HINT_ANIMATE_CLOSED",Pg.Az);Pg.J3="animationDurationOpen";v("AdfDhtmlPopupLayer.HINT_ANIMATION_DURATION_OPEN_SKIN_PROPERTY",Pg.J3);Pg.I3="animationDurationClose";
v("AdfDhtmlPopupLayer.HINT_ANIMATION_DURATION_CLOSE_SKIN_PROPERTY",Pg.I3);Pg.H3="animateMinWidth";v("AdfDhtmlPopupLayer.HINT_ANIMATE_MIN_WIDTH",Pg.H3);Pg.da=function(){this.vo={};this.vo[AdfRichPopup.of]=Pg.pE;this.vo[AdfRichPopup.jK]=Pg.pE;this.vo[AdfRichPopup.DD]=Pg.pE;this.vo[AdfRichPopup.w2]=Pg.pE;this.vo[AdfRichPopup.x2]=Pg.Vv;this.vo[AdfRichPopup.bz]=Pg.Vv;this.vo[AdfRichPopup.y2]=Pg.Vv;this.vo[AdfRichPopup.z2]=Pg.Vv;this.vo[AdfRichPopup.CS]=Pg.Vv;this.vo[AdfRichPopup.DS]=Pg.Vv};
v("AdfDhtmlPopupLayer.InitClass",Pg.da);Pg.prototype.Init=function(){Pg.f.Init.call(this)};z.a("AdfDhtmlPopupLayer.prototype.Init",{Init:Pg.prototype.Init});Pg.prototype.Rf=function(){var a=F.c.w().createElement("div");this.il(a);return a};z.a("AdfDhtmlPopupLayer.prototype.CreateDomElement",{Rf:Pg.prototype.Rf});Pg.prototype.il=da("Aj");z.a("AdfDhtmlPopupLayer.prototype.SetContentParent",{il:Pg.prototype.il});Pg.prototype.zh=r("Aj");z.a("AdfDhtmlPopupLayer.prototype.GetContentParent",{zh:Pg.prototype.zh});
Pg.prototype.vE=t(p);z.a("AdfDhtmlPopupLayer.prototype.HasShadow",{vE:Pg.prototype.vE});Pg.prototype.rj=t(p);z.a("AdfDhtmlPopupLayer.prototype.ShouldHideOnClip",{rj:Pg.prototype.rj});Pg.prototype.YJ=t(p);z.a("AdfDhtmlPopupLayer.prototype.shouldInvertPosition",{YJ:Pg.prototype.YJ});Pg.prototype.yh=function(a){return a[Pg.J3]};z.a("AdfDhtmlPopupLayer.prototype.GetAnimationDurationSkinProperty",{yh:Pg.prototype.yh});Pg.prototype.n3=function(a){return a[Pg.I3]};
z.a("AdfDhtmlPopupLayer.prototype.GetCloseAnimationDurationSkinProperty",{n3:Pg.prototype.n3});
Pg.prototype.dz=function(a,b,d,e,f){var g=this.La(),h=g.ownerDocument.createElement("div"),m=h.style,q=g.style,s=g.offsetHeight,y=g.offsetWidth,A=parseInt(q.left),C=parseInt(q.top),G,K=e[AdfRichPopup.fd];G=K?Pg.vo[K]:n;var N=e[Pg.H3];N==n&&(N=1);b?(m.left=f?q.left:A+y-N+"px",q.left="0px"):(m.left=q.left,m.right=q.right,q.left="",q.right="0px");m.overflow="hidden";m.position="absolute";K={};G==Pg.Vv?(m.height=s+"px",m.top=q.top):(d?(K.top=C,m.top=C+s+1+"px"):m.top=q.top,m.height="1px",K.height=s);
q.top="0px";G==Pg.pE?m.width=y+"px":f?(m.width=y+"px",K.width=N):(m.width=N+"px",K.width=y);m.zIndex=q.zIndex;g.parentNode.replaceChild(h,g);h.appendChild(g);q.visibility="";b&&(K.left=f?A+y-N:A);F.c.Py();(b=e[Pg.G3])||(b=0);this.Ye=Qg(b,a,[{element:h,properties:K}],n,f?Pg.U2:vg.G2,{CD:h,Ln:this})};z.a("AdfDhtmlPopupLayer.prototype.AnimateUsingWrapper",{dz:Pg.prototype.dz});Pg.U2=function(a){var b=a.CD;a=a.Ln;a.Ho&&(delete a.Ho,delete a.Ye,vg.hZ(b),Rg(a))};
v("AdfDhtmlPopupLayer.CloseAnimationComplete",Pg.U2);Pg.prototype.E2=function(){this.Ho=l;var a=p,b=p,d=this.LK();if(0<=d&&(d=F.c.bm().aR(d)))a=d.VC.Du==Lg.Cq,b=d.BD.Du==Lg.jq;this.dz(this.Xsa,a,b,this.CX,l)};z.a("AdfDhtmlPopupLayer.prototype.AnimateClosing",{E2:Pg.prototype.E2});Pg.prototype.show=function(a){this.CX=a;var b=F.c;if(b.Ac()&&a[Pg.Az]){var d=this.n3(a);d&&(b=parseInt(b.u().ka(d)),0<b&&(this.Xsa=b))}Pg.f.show.call(this,a)};z.a("AdfDhtmlPopupLayer.prototype.show",{show:Pg.prototype.show});
Pg.prototype.rb=function(){if(!this.XG){var a=F.c.j(this.yj);if(a&&a.k().q_&&!a.k().q_())return}var b="true"==this.eG.contentDom.getAttribute(vg.DM);if(this.XG)this.Ye&&b&&(this.Ye.stop(),a=this.La().parentNode,Pg.U2({CD:a,Ln:this}));else{this.XG=l;this.Ho&&(delete this.Ho,this.Ye&&(this.Ye.stop(),delete this.Ye),vg.hZ(this.La().parentNode));var d=F.c,a=d.j(this.yj);d.Kk().removeBehavior(a);!Sg(a)&&(O.Vl(this.La())&&!O.P0())&&this.QP();this.zn()[Pg.Az]&&this.Xsa&&b!=l?this.E2():Rg(this)}};
z.a("AdfDhtmlPopupLayer.prototype.hide",{rb:Pg.prototype.rb});function Rg(a){var b=F.c,d=a.wW;d&&(delete a.wW,d(a.eG),delete a.eG);a.ud();delete a.XG;b.hd(l,p,l,"popup hidden")}Pg.prototype.zn=r("CX");z.a("AdfDhtmlPopupLayer.prototype.getHints",{zn:Pg.prototype.zn});function Vg(a,b){var d=b.componentId;a.yj=d;return F.c.j(d)}Pg.prototype.aia=function(){if(this.Y8){var a=this.zn();F.c.Kk().addBehavior(Vg(this,a),a);this.Y8=p}};z.a("AdfDhtmlPopupLayer.prototype.restoreAutodismiss",{aia:Pg.prototype.aia});
Pg.prototype.Tha=function(){if(!this.Y8){this.Y8=l;var a=this.zn();F.c.Kk().removeBehavior(Vg(this,a))}};z.a("AdfDhtmlPopupLayer.prototype.removeAutodismiss",{Tha:Pg.prototype.Tha});