function Ri(){this.Init()}m("AdfDhtmlSimpleFloat",Ri);r.v(Ri,V);Ri.ga=function(){this.FS="p_AFDrag";this.L1="p_AFInactive";this.yi="contentContainer";this.Sza="data-afr-panelwindowbackground";this.V6a="_ttxt"};m("AdfDhtmlSimpleFloat.InitClass",Ri.ga);Ri.prototype.Init=function(){Ri.h.Init.call(this)};r.a("AdfDhtmlSimpleFloat.prototype.Init",{Init:Ri.prototype.Init});Ri.prototype.EH=function(){return this.h4};r.a("AdfDhtmlSimpleFloat.prototype.getContainedComponentClientId",{EH:Ri.prototype.EH});
Ri.prototype.xk=function(){var a=q.b;if(a.Y().Zi&&a instanceof Ge)return Ri.h.xk.call(this);var a=Fj(this),b=I.j(a.f().g(),Ri.yi);(b=q.b.getElementById(b))&&q.b.S()==q.Yc&&(b.tabIndex=-1);b&&(b=J.io(b)?A.c.wd:J.Ee(b));b||(a instanceof $i&&(b=a.zra(this.EH())),b||(b=a.i()));return b};r.a("AdfDhtmlSimpleFloat.prototype.GetFocusContent",{xk:Ri.prototype.xk});Ri.prototype.Js=function(a){Ri.h.Js.call(this,a);a=Gj(a);this.sI(a);this.h4=I.Cf(a).g()};r.a("AdfDhtmlSimpleFloat.prototype.setContent",{Js:Ri.prototype.Js});
Ri.prototype.qq=function(a){var b=this.Ha(),d=Fj(this),e=I.j(d.f().g(),Ri.yi),d=I.j(d.f().g(),Ri.V6a);b.setAttribute("role","dialog");b.setAttribute("aria-describedby",e);b.setAttribute("aria-labelledby",d);a.modal&&b.setAttribute("aria-modal","true")};r.a("AdfDhtmlSimpleFloat.prototype.setAccessibleAttrs",{qq:Ri.prototype.qq});
Ri.prototype.gy=function(a){if(a&&!a.focus){a=A.c.H();var b=I.j(A.c.gj,bj.F1),b=q.b.getElementById(b),d=A.c.Y().Zi&&q.b instanceof Ge?"af_panelWindow.INITIAL_FOCUS_LIVE_TEXT_MOBILE":"af_panelWindow.INITIAL_FOCUS_LIVE_TEXT";a=a.Z(d);q.b.bc(b,a)}};r.a("AdfDhtmlSimpleFloat.prototype.announceOpeningViaLiveRegion",{gy:Ri.prototype.gy});Ri.prototype.Wy=function(){var a=I.j(A.c.gj,bj.F1);(a=q.b.getElementById(a))&&q.b.bc(a,"")};r.a("AdfDhtmlSimpleFloat.prototype.removeAccessibleAttrs",{Wy:Ri.prototype.Wy});
function Gj(a){a=a.getElementsByTagName("table")[0];u.assert(a,"Main Element of floating window must be a table");return a}Ri.prototype.daa=function(a){this.bJa=a;this.Kr&&(this.Kr.Jd(),delete this.Kr)};r.a("AdfDhtmlSimpleFloat.prototype.setDragElement",{daa:Ri.prototype.daa});Ri.prototype.getModal=function(){return this.Vma};r.a("AdfDhtmlSimpleFloat.prototype.getModal",{getModal:Ri.prototype.getModal});Ri.prototype.setModal=function(a){this.Vma=a};r.a("AdfDhtmlSimpleFloat.prototype.setModal",{setModal:Ri.prototype.setModal});
Ri.prototype.getInitialFocus=function(){return this.Ehb};r.a("AdfDhtmlSimpleFloat.prototype.getInitialFocus",{getInitialFocus:Ri.prototype.getInitialFocus});Ri.prototype.setInitialFocus=function(a){this.Ehb=a};r.a("AdfDhtmlSimpleFloat.prototype.setInitialFocus",{setInitialFocus:Ri.prototype.setInitialFocus});Ri.prototype.Hi=function(){this.vl();this.g_();var a=this.Zf();Mi.vj(a)&&Mi.gv(a);J.io(this.xk())||J.j$()||this.Tv(!0)};r.a("AdfDhtmlSimpleFloat.prototype.activate",{Hi:Ri.prototype.Hi});
Ri.prototype.g_=function(){for(var a=Hj(this),b=a.childNodes,d=b.length,e=0;e<d;e++){var f=b[e],g=f.style;null!=f.getAttribute(Ri.Sza)&&(g.display="none")}C.O(a,Ri.L1);this.vl();a=this.Zf();Mi.vj(a)&&(Mi.gv(a),Mi.iz(a,!0))};r.a("AdfDhtmlSimpleFloat.prototype.showAsActive",{g_:Ri.prototype.g_});
Ri.prototype.Aaa=function(){var a=this.Ha().style.zIndex,b=Hj(this);if(b){for(var d=b.offsetWidth,e=b.offsetHeight,f=b.childNodes,g=f.length,h=0,l=0;h<g;h++){var n=f[h],t=n.style;null!=n.getAttribute(Ri.Sza)?(t.zIndex=a-1,t.marginLeft=l+"px",t.marginTop=3-l+"px",t.width=Math.max(0,d-2-2*l)+"px",t.height=Math.max(0,e-2-2*(3-l))+"px",t.display="block",l++):t.zIndex=a}C.w(b,Ri.L1);a=this.Zf();Mi.vj(a)&&(Mi.gv(a),Mi.iz(a,!0))}};r.a("AdfDhtmlSimpleFloat.prototype.showAsInActive",{Aaa:Ri.prototype.Aaa});
Ri.prototype.Kg=function(){var a=A.c,b=a.R(),d=b.createElement("div");if(this.WJ()){var e=b.createElement("div");d.appendChild(e);a=a.H().Z("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"}e=b.createElement("div");d.appendChild(e);this.bn(e);b=b.createElement("div");b.setAttribute("role","presentation");C.w(b,V.zDa);d.appendChild(b);this.Yj=b;return d};r.a("AdfDhtmlSimpleFloat.prototype.CreateDomElement",{Kg:Ri.prototype.Kg});Ri.prototype.bn=function(a){this.Ik=a};r.a("AdfDhtmlSimpleFloat.prototype.SetContentParent",{bn:Ri.prototype.bn});Ri.prototype.ui=function(){return this.Ik};r.a("AdfDhtmlSimpleFloat.prototype.GetContentParent",{ui:Ri.prototype.ui});
Ri.prototype.si=function(){var a=Fj(this);u.s(a,I);return a.HO()};r.a("AdfDhtmlSimpleFloat.prototype.GetAnimationDurationSkinProperty",{si:Ri.prototype.si});Ri.prototype.sk=function(){var a=Fj(this);u.s(a,I);return a.GO()};r.a("AdfDhtmlSimpleFloat.prototype.GetAnimateSkinProperty",{sk:Ri.prototype.sk});Ri.prototype.Dk=function(){return!1};r.a("AdfDhtmlSimpleFloat.prototype.ShouldHideOnClip",{Dk:Ri.prototype.Dk});Ri.prototype.Rsa=function(){this.uHa&&(Mi.QZ(this.Zf()),this.Kr&&(this.Kr.Jd(),delete this.Kr))};
r.a("AdfDhtmlSimpleFloat.prototype.handleComponentRemoved",{Rsa:Ri.prototype.Rsa});Ri.prototype.S9=function(){if(!this.Kr){this.sI(Gj(this.gl()));var a=!this.ss();a&&this.Nv(a);if(a=A.c.m(this.h4)){var b=a.o();b.bind(a);this.daa(b.e9());this.c$()}}};r.a("AdfDhtmlSimpleFloat.prototype.handleBindToComponent",{S9:Ri.prototype.S9});Ri.prototype.c$=function(){if(!this.Kr){var a=this.Kr=new Ij(this,this.bJa);a.gaa(this.wcb);a.eaa(this.rcb)}};
r.a("AdfDhtmlSimpleFloat.prototype.initializeRepositionable",{c$:Ri.prototype.c$});Ri.prototype.OD=function(a){var b=Fj(this);b&&b.EC?b.EC(a):Ri.h.OD.call(this.event)};r.a("AdfDhtmlSimpleFloat.prototype.HandleEscapeKey",{OD:Ri.prototype.OD});
Ri.prototype.Bq=function(a){this.uHa||(this.uHa=!0,this.S9());this.daa(a.dragElement);this.setModal(a.modal);var b=Si.$();b.bua(this);var d=a.leftPosition;d&&isNaN(d)&&(d=parseFloat(d));this.Y5=d;(d=a.topPosition)&&isNaN(d)&&(d=parseFloat(d));this.K7=d;Ri.h.Bq.call(this,a);this.bJa&&this.c$();(d=this.Vma)&&A.c.Am().L$(this.Ha());a.focus&&b.jY(this);d&&a.restoreImmediate&&Ri.hib()&&2!=this.Q9()&&A.c.sq()};r.a("AdfDhtmlSimpleFloat.prototype.DoShow",{Bq:Ri.prototype.Bq});
Ri.prototype.show=function(a){if(a&&a[AdfRichPopup.ht]&&a[AdfRichPopup.ht]!=AdfRichPopup.mda){var b=this.j9(a.align);this.kpa=b;C.w(this.Yj,b);b=a[AdfRichPopup.ht].charAt(0).toUpperCase()+a[AdfRichPopup.ht].substring(1);C.w(this.Ha(),"AFDialogTail"+b)}else this.Yj=null;Ri.h.show.call(this,a)};r.a("AdfDhtmlSimpleFloat.prototype.show",{show:Ri.prototype.show});Ri.hib=function(){var a=A.c,b=a.wm(),a=a.m(b),a=a.o().ly(a),b=0;for(i in a)b++;return 0<b};
Ri.prototype.Jd=function(){Si.$().Kva(this);var a=A.c;this.Vma&&a.Am().G$(this.Ha());this.Kr&&(this.Kr.Jd(),delete this.Kr);Ri.h.Jd.call(this)};r.a("AdfDhtmlSimpleFloat.prototype.destroy",{Jd:Ri.prototype.Jd});function Fj(a){var b=null;null!=a.h4&&(a=A.c.m(a.h4),null!=a&&(b=a.o(),b.bind(a)));return b}function Hj(a){a=Fj(a);return null!=a?a.i():null}Ri.prototype.wcb=function(){var a=Hj(this);C.w(a,Ri.FS);Mi.vj(this.Zf())&&Mi.iz(this.Zf(),!1);this.Tla=!0;this.Pp()&&(this.iQ(null),this.B0(AdfRichPopup.DQ))};
Ri.prototype.rcb=function(){var a=Hj(this);C.O(a,Ri.FS);Mi.vj(this.Zf())&&Mi.iz(this.Zf(),!0);delete this.Tla;this.setPosition(this.vP(),this.$O())};Ri.prototype.mZ=function(a){var b=Si.$();return b.BH()==this?!1:b.jY(this)?(a&&this.Tv(),!0):!1};r.a("AdfDhtmlSimpleFloat.prototype.handleActivate",{mZ:Ri.prototype.mZ});Ri.prototype.ss=function(){return this.Tla?!0:Ri.h.ss.call(this)};r.a("AdfDhtmlSimpleFloat.prototype.isAnimating",{ss:Ri.prototype.ss});Ri.prototype.haa=function(a){this.Tla=a};
r.a("AdfDhtmlSimpleFloat.prototype.setDragging",{haa:Ri.prototype.haa});Ri.prototype.raa=function(a){var b=this.Zf();a?Mi.vj(b)||Mi.vY(b,this.Ha().parentNode):Mi.vj(b)&&Mi.QZ(this.Zf())};r.a("AdfDhtmlSimpleFloat.prototype.setShadowVisibility",{raa:Ri.prototype.raa});
Ri.prototype.jC=function(){if(this.Pp())return null;var a=q.b,b=A.c.Ka().La(),d=a.getWindowHeight(),e=a.getWindowWidth(),f=a.zf(),g=a.Pe();0<f&&a.S()==q.Yc&&(d=Math.min(d,a.R().body.clientHeight));var a=this.getWidth(),h=this.getHeight(),l=this.K7,n=this.Y5;n||(n=.5);l||(l=.5);b=b?-1:1;l=Math.max(0,Math.round(d*l-h/2))+f;n=Math.max(0,Math.round(e*n-a/2*b))+b*g;d=d+f-(l+h);0>d&&(l=Math.max(f,l+d));e=e+g-(n+b*a);0>e&&(n=Math.max(g,n+e));g={y:l,x:n};this.qv(g);return g};
r.a("AdfDhtmlSimpleFloat.prototype.getAlignPosition",{jC:Ri.prototype.jC});
Ri.prototype.setPosition=function(a,b){if(this.Pp())Ri.h.setPosition.call(this,a,b);else if(this.ss()){var d=q.b,e=d.getWindowHeight(),f=d.getWindowWidth(),g=d.zf(),h=d.Pe();0<g&&d.S()==q.Yc&&(e=Math.min(e,d.R().body.clientHeight));var l=this.getHeight(),d=this.getWidth(),n=0;e>l&&(n=(a-g+l/2)/e);e=0;f>d&&(e=(b-h+d/2)/f);!isNaN(n)&&!isNaN(e)&&1>n&&1>e&&(this.K7=n,this.Y5=e,Ri.h.setPosition.call(this,0==n?g:a,0==e?h:b))}else f=this.jP(),u.J(f),(f=A.c.m(f))&&f instanceof AdfRichPopup&&(g={},g.leftPosition=
this.Y5,g.topPosition=this.K7,g[AdfRichPopup.Ed]=AdfRichPopup.DQ,g[AdfRichPopup.Jf]="",f.o().k_(f,g,!0)),Ri.h.setPosition.call(this,a,b)};r.a("AdfDhtmlSimpleFloat.prototype.setPosition",{setPosition:Ri.prototype.setPosition});Ri.prototype.Ee=function(){return this.xk()};r.a("AdfDhtmlSimpleFloat.prototype.getFirstTabStop",{Ee:Ri.prototype.Ee});