function wg(){this.Init()}v("AdfDhtmlSimpleFloat",wg);z.l(wg,vg);wg.da=function(){this.NL="p_AFDrag";this.DU="p_AFInactive";this.Fm="contentContainer";this.Sma="data-afr-panelwindowbackground";this.ePa="_ttxt";this.O6a="AFPopupInitialFocusLiveContent"};v("AdfDhtmlSimpleFloat.InitClass",wg.da);wg.prototype.Init=function(){wg.f.Init.call(this)};z.a("AdfDhtmlSimpleFloat.prototype.Init",{Init:wg.prototype.Init});wg.prototype.IC=r("DW");
z.a("AdfDhtmlSimpleFloat.prototype.getContainedComponentClientId",{IC:wg.prototype.IC});wg.prototype.Gi=function(){var a=w.b;if(a.R().gj&&a instanceof ee)return wg.f.Gi.call(this);var a=ih(this),b=M.g(a.d().e(),wg.Fm);if((b=w.b.getElementById(b))&&w.b.G()==w.ed)b.tabIndex=-1;b&&(b=O.Vl(b)?F.c.Qc:O.Re(b));b||(a instanceof Bg&&(b=a.Kfa(this.IC())),b||(b=a.h()));return b};z.a("AdfDhtmlSimpleFloat.prototype.GetFocusContent",{Gi:wg.prototype.Gi});
wg.prototype.Zp=function(a){wg.f.Zp.call(this,a);a=jh(a);this.sD(a);this.DW=M.Lf(a).e()};z.a("AdfDhtmlSimpleFloat.prototype.setContent",{Zp:wg.prototype.Zp});wg.prototype.Rn=function(a){var b=this.La(),d=ih(this),e=M.g(d.d().e(),wg.Fm),d=M.g(d.d().e(),wg.ePa);b.setAttribute("role","dialog");b.setAttribute("aria-describedby",e);b.setAttribute("aria-labelledby",d);a.modal&&b.setAttribute("aria-modal","true")};z.a("AdfDhtmlSimpleFloat.prototype.setAccessibleAttrs",{Rn:wg.prototype.Rn});
wg.prototype.yu=function(a){if(a&&!a.focus){a=F.c.u();var b=M.g(F.c.mi,Dg.yU),b=w.b.getElementById(b),d=F.c.R().gj&&w.b instanceof ee?"af_panelWindow.INITIAL_FOCUS_LIVE_TEXT_MOBILE":"af_panelWindow.INITIAL_FOCUS_LIVE_TEXT";a=a.V(d);w.b.yb(b,a)}};z.a("AdfDhtmlSimpleFloat.prototype.announceOpeningViaLiveRegion",{yu:wg.prototype.yu});wg.prototype.jv=function(){var a=M.g(F.c.mi,Dg.yU);(a=w.b.getElementById(a))&&w.b.yb(a,"")};z.a("AdfDhtmlSimpleFloat.prototype.removeAccessibleAttrs",{jv:wg.prototype.jv});
function jh(a){a=a.getElementsByTagName("table")[0];B.assert(a,"Main Element of floating window must be a table");return a}wg.prototype.C1=function(a){this.sua=a;this.ap&&(this.ap.ud(),delete this.ap)};z.a("AdfDhtmlSimpleFloat.prototype.setDragElement",{C1:wg.prototype.C1});wg.prototype.getModal=r("Qba");z.a("AdfDhtmlSimpleFloat.prototype.getModal",{getModal:wg.prototype.getModal});wg.prototype.setModal=da("Qba");z.a("AdfDhtmlSimpleFloat.prototype.setModal",{setModal:wg.prototype.setModal});
wg.prototype.getInitialFocus=r("JXa");z.a("AdfDhtmlSimpleFloat.prototype.getInitialFocus",{getInitialFocus:wg.prototype.getInitialFocus});wg.prototype.setInitialFocus=da("JXa");z.a("AdfDhtmlSimpleFloat.prototype.setInitialFocus",{setInitialFocus:wg.prototype.setInitialFocus});wg.prototype.Nh=function(){this.bk();this.nS();var a=this.kf();qg.yi(a)&&qg.ms(a);!O.Vl(this.Gi())&&!O.P0()&&this.Ov(l)};z.a("AdfDhtmlSimpleFloat.prototype.activate",{Nh:wg.prototype.Nh});
wg.prototype.nS=function(){for(var a=kh(this),b=a.childNodes,d=b.length,e=0;e<d;e++){var f=b[e],g=f.style;f.getAttribute(wg.Sma)!=n&&(g.display="none")}H.F(a,wg.DU);this.bk();a=this.kf();qg.yi(a)&&(qg.ms(a),qg.wv(a,l))};z.a("AdfDhtmlSimpleFloat.prototype.showAsActive",{nS:wg.prototype.nS});
wg.prototype.X1=function(){for(var a=this.La().style.zIndex,b=kh(this),d=b.offsetWidth,e=b.offsetHeight,f=b.childNodes,g=f.length,h=0,m=0;h<g;h++){var q=f[h],s=q.style;q.getAttribute(wg.Sma)!=n?(s.zIndex=a-1,s.marginLeft=m+"px",s.marginTop=3-m+"px",s.width=Math.max(0,d-2-2*m)+"px",s.height=Math.max(0,e-2-2*(3-m))+"px",s.display="block",m++):s.zIndex=a}H.n(b,wg.DU);a=this.kf();qg.yi(a)&&(qg.ms(a),qg.wv(a,l))};z.a("AdfDhtmlSimpleFloat.prototype.showAsInActive",{X1:wg.prototype.X1});
wg.prototype.Rf=function(){var a=F.c,b=a.w().createElement("div"),d=b;if(this.GE()){var d=a.w(),e=d.createElement("div");b.appendChild(e);a=a.u().V("af_popup.TIP_DISMISS");e.innerHTML='\x3ca href\x3d"javascript:;" style\x3d"position:absolute;top:-999px;" onclick\x3d"var popupDiv \x3d this.parentNode.parentNode;var contentDiv \x3d AdfDomUtils.getChildElements(popupDiv)[1];var label \x3d popupDiv.getAttribute(\'aria-labelledby\');var compId \x3d label.split(\'::\')[0];var comp \x3d AdfPage.PAGE.findComponentByAbsoluteId(compId);var peer \x3d comp.getPeer();peer.bind(comp);peer.Cancel();"\x3e'+
a+"\x3c/a\x3e";a=d.createElement("div");b.appendChild(a);d=a}this.il(d);return b};z.a("AdfDhtmlSimpleFloat.prototype.CreateDomElement",{Rf:wg.prototype.Rf});wg.prototype.il=da("Aj");z.a("AdfDhtmlSimpleFloat.prototype.SetContentParent",{il:wg.prototype.il});wg.prototype.zh=r("Aj");z.a("AdfDhtmlSimpleFloat.prototype.GetContentParent",{zh:wg.prototype.zh});wg.prototype.yh=function(){var a=ih(this);B.J(a,M);return a.FI()};z.a("AdfDhtmlSimpleFloat.prototype.GetAnimationDurationSkinProperty",{yh:wg.prototype.yh});
wg.prototype.lj=function(){var a=ih(this);B.J(a,M);return a.EI()};z.a("AdfDhtmlSimpleFloat.prototype.GetAnimateSkinProperty",{lj:wg.prototype.lj});wg.prototype.rj=t(p);z.a("AdfDhtmlSimpleFloat.prototype.ShouldHideOnClip",{rj:wg.prototype.rj});wg.prototype.Pga=function(){this.gta&&(qg.WR(this.kf()),this.ap&&(this.ap.ud(),delete this.ap))};z.a("AdfDhtmlSimpleFloat.prototype.handleComponentRemoved",{Pga:wg.prototype.Pga});
wg.prototype.z0=function(){if(!this.ap){this.sD(jh(this.Uh()));var a=!this.Ip();a&&this.Kv(a);if(a=F.c.j(this.DW)){var b=a.k();b.bind(a);this.C1(b.Z_());this.I0()}}};z.a("AdfDhtmlSimpleFloat.prototype.handleBindToComponent",{z0:wg.prototype.z0});wg.prototype.I0=function(){if(!this.ap){var a=this.ap=new lh(this,this.sua);a.F1(this.UTa);a.D1(this.PTa)}};z.a("AdfDhtmlSimpleFloat.prototype.initializeRepositionable",{I0:wg.prototype.I0});wg.prototype.Gz=function(a){var b=ih(this);b&&b.RC?b.RC(a):wg.f.Gz.call(this.event)};
z.a("AdfDhtmlSimpleFloat.prototype.HandleEscapeKey",{Gz:wg.prototype.Gz});wg.prototype.ao=function(a){this.gta||(this.gta=l,this.z0());this.C1(a.dragElement);this.setModal(a.modal);var b=xg.O();b.Nha(this);var d=a.leftPosition;d&&isNaN(d)&&(d=parseFloat(d));this.yba=d;(d=a.topPosition)&&isNaN(d)&&(d=parseFloat(d));this.Uda=d;wg.f.ao.call(this,a);this.sua&&this.I0();(d=this.Qba)&&F.c.am().j1(this.La());a.focus&&b.BQ(this);d&&a.restoreImmediate&&wg.aYa()&&2!=this.w0()&&F.c.Tn()};
z.a("AdfDhtmlSimpleFloat.prototype.DoShow",{ao:wg.prototype.ao});wg.aYa=function(){var a=F.c,b=a.Pk(),a=a.j(b),a=a.k().Eu(a),b=0;for(i in a)b++;return 0<b};wg.prototype.ud=function(){xg.O().jja(this);var a=F.c;this.Qba&&a.am().h1(this.La());this.ap&&(this.ap.ud(),delete this.ap);wg.f.ud.call(this)};z.a("AdfDhtmlSimpleFloat.prototype.destroy",{ud:wg.prototype.ud});function ih(a){var b=n;a.DW!=n&&(a=F.c.j(a.DW),a!=n&&(b=a.k(),b.bind(a)));return b}function kh(a){a=ih(a);return a!=n?a.h():n}
wg.prototype.UTa=function(){var a=kh(this);H.n(a,wg.NL);qg.yi(this.kf())&&qg.wv(this.kf(),p);this.Taa=l;this.Xr()&&(this.VJ(n),this.uT(AdfRichPopup.kK))};wg.prototype.PTa=function(){var a=kh(this);H.F(a,wg.NL);qg.yi(this.kf())&&qg.wv(this.kf(),l);delete this.Taa;this.setPosition(this.oJ(),this.YI())};wg.prototype.y0=function(a){var b=xg.O();return b.WQ()==this?p:b.BQ(this)?(a&&this.Ov(),l):p};z.a("AdfDhtmlSimpleFloat.prototype.handleActivate",{y0:wg.prototype.y0});
wg.prototype.Ip=function(){return this.Taa?l:wg.f.Ip.call(this)};z.a("AdfDhtmlSimpleFloat.prototype.isAnimating",{Ip:wg.prototype.Ip});wg.prototype.G1=da("Taa");z.a("AdfDhtmlSimpleFloat.prototype.setDragging",{G1:wg.prototype.G1});wg.prototype.Q1=function(a){var b=this.kf();a?qg.yi(b)||qg.NQ(b,this.La().parentNode):qg.yi(b)&&qg.WR(this.kf())};z.a("AdfDhtmlSimpleFloat.prototype.setShadowVisibility",{Q1:wg.prototype.Q1});
wg.prototype.cy=function(){if(this.Xr())return n;var a=w.b,b=F.c.Ma().Oa(),d=a.getWindowHeight(),e=a.getWindowWidth(),f=a.xf(),g=a.De();0<f&&a.G()==w.ed&&(d=Math.min(d,a.w().body.clientHeight));var a=this.getWidth(),h=this.getHeight(),m=this.Uda,q=this.yba;q||(q=0.5);m||(m=0.5);b=b?-1:1;m=Math.max(0,Math.round(d*m-h/2))+f;q=Math.max(0,Math.round(e*q-b*(a/2)))+b*g;d=d+f-(m+h);0>d&&(m=Math.max(f,m+d));e=e+g-(q+b*a);0>e&&(q=Math.max(g,q+e));g={y:m,x:q};this.Ty(g);return g};
z.a("AdfDhtmlSimpleFloat.prototype.getAlignPosition",{cy:wg.prototype.cy});
wg.prototype.setPosition=function(a,b){if(this.Xr())wg.f.setPosition.call(this,a,b);else if(this.Ip()){var d=w.b,e=d.getWindowHeight(),f=d.getWindowWidth(),g=d.xf(),h=d.De();0<g&&d.G()==w.ed&&(e=Math.min(e,d.w().body.clientHeight));var m=this.getHeight(),d=this.getWidth(),q=0;e>m&&(q=(a-g+m/2)/e);e=0;f>d&&(e=(b-h+d/2)/f);!isNaN(q)&&(!isNaN(e)&&1>q&&1>e)&&(this.Uda=q,this.yba=e,wg.f.setPosition.call(this,0==q?g:a,0==e?h:b))}else{f=this.iJ();B.s(f);if((f=F.c.j(f))&&f instanceof AdfRichPopup)g={},g.leftPosition=
this.yba,g.topPosition=this.Uda,g[AdfRichPopup.fd]=AdfRichPopup.kK,g[AdfRichPopup.pf]="",f.k().rS(f,g,l);wg.f.setPosition.call(this,a,b)}};z.a("AdfDhtmlSimpleFloat.prototype.setPosition",{setPosition:wg.prototype.setPosition});wg.prototype.Re=function(){return this.Gi()};z.a("AdfDhtmlSimpleFloat.prototype.getFirstTabStop",{Re:wg.prototype.Re});