function Pi(){this.Init()}m("AdfDhtmlSimpleFloat",Pi);r.v(Pi,V);Pi.ga=function(){this.FS="p_AFDrag";this.L1="p_AFInactive";this.yi="contentContainer";this.Oza="data-afr-panelwindowbackground";this.S6a="_ttxt"};m("AdfDhtmlSimpleFloat.InitClass",Pi.ga);Pi.prototype.Init=function(){Pi.h.Init.call(this)};r.a("AdfDhtmlSimpleFloat.prototype.Init",{Init:Pi.prototype.Init});Pi.prototype.EH=function(){return this.h4};r.a("AdfDhtmlSimpleFloat.prototype.getContainedComponentClientId",{EH:Pi.prototype.EH});
Pi.prototype.xk=function(){var a=q.b;if(a.Y().zj&&a instanceof Ee)return Pi.h.xk.call(this);var a=Dj(this),b=I.j(a.f().g(),Pi.yi);(b=q.b.getElementById(b))&&q.b.S()==q.ed&&(b.tabIndex=-1);b&&(b=J.io(b)?A.c.wd:J.Ee(b));b||(a instanceof Ui&&(b=a.vra(this.EH())),b||(b=a.i()));return b};r.a("AdfDhtmlSimpleFloat.prototype.GetFocusContent",{xk:Pi.prototype.xk});Pi.prototype.Is=function(a){Pi.h.Is.call(this,a);a=Ej(a);this.sI(a);this.h4=I.Cf(a).g()};r.a("AdfDhtmlSimpleFloat.prototype.setContent",{Is:Pi.prototype.Is});
Pi.prototype.qq=function(a){var b=this.Ha(),d=Dj(this),e=I.j(d.f().g(),Pi.yi),d=I.j(d.f().g(),Pi.S6a);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:Pi.prototype.qq});
Pi.prototype.fy=function(a){if(a&&!a.focus){a=A.c.H();var b=I.j(A.c.fj,Zi.F1),b=q.b.getElementById(b),d=A.c.Y().zj&&q.b instanceof Ee?"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",{fy:Pi.prototype.fy});Pi.prototype.Wy=function(){var a=I.j(A.c.fj,Zi.F1);(a=q.b.getElementById(a))&&q.b.bc(a,"")};r.a("AdfDhtmlSimpleFloat.prototype.removeAccessibleAttrs",{Wy:Pi.prototype.Wy});
function Ej(a){a=a.getElementsByTagName("table")[0];u.assert(a,"Main Element of floating window must be a table");return a}Pi.prototype.baa=function(a){this.XIa=a;this.Jr&&(this.Jr.Jd(),delete this.Jr)};r.a("AdfDhtmlSimpleFloat.prototype.setDragElement",{baa:Pi.prototype.baa});Pi.prototype.getModal=function(){return this.Sma};r.a("AdfDhtmlSimpleFloat.prototype.getModal",{getModal:Pi.prototype.getModal});Pi.prototype.setModal=function(a){this.Sma=a};r.a("AdfDhtmlSimpleFloat.prototype.setModal",{setModal:Pi.prototype.setModal});
Pi.prototype.getInitialFocus=function(){return this.Dhb};r.a("AdfDhtmlSimpleFloat.prototype.getInitialFocus",{getInitialFocus:Pi.prototype.getInitialFocus});Pi.prototype.setInitialFocus=function(a){this.Dhb=a};r.a("AdfDhtmlSimpleFloat.prototype.setInitialFocus",{setInitialFocus:Pi.prototype.setInitialFocus});Pi.prototype.Gi=function(){this.vl();this.g_();var a=this.Zf();Ki.uj(a)&&Ki.ev(a);J.io(this.xk())||J.i$()||this.Sv(!0)};r.a("AdfDhtmlSimpleFloat.prototype.activate",{Gi:Pi.prototype.Gi});
Pi.prototype.g_=function(){for(var a=Fj(this),b=a.childNodes,d=b.length,e=0;e<d;e++){var f=b[e],g=f.style;null!=f.getAttribute(Pi.Oza)&&(g.display="none")}C.O(a,Pi.L1);this.vl();a=this.Zf();Ki.uj(a)&&(Ki.ev(a),Ki.iz(a,!0))};r.a("AdfDhtmlSimpleFloat.prototype.showAsActive",{g_:Pi.prototype.g_});
Pi.prototype.yaa=function(){var a=this.Ha().style.zIndex,b=Fj(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(Pi.Oza)?(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,Pi.L1);a=this.Zf();Ki.uj(a)&&(Ki.ev(a),Ki.iz(a,!0))}};r.a("AdfDhtmlSimpleFloat.prototype.showAsInActive",{yaa:Pi.prototype.yaa});
Pi.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.vDa);d.appendChild(b);this.Yj=b;return d};r.a("AdfDhtmlSimpleFloat.prototype.CreateDomElement",{Kg:Pi.prototype.Kg});Pi.prototype.bn=function(a){this.Ik=a};r.a("AdfDhtmlSimpleFloat.prototype.SetContentParent",{bn:Pi.prototype.bn});Pi.prototype.ui=function(){return this.Ik};r.a("AdfDhtmlSimpleFloat.prototype.GetContentParent",{ui:Pi.prototype.ui});
Pi.prototype.si=function(){var a=Dj(this);u.s(a,I);return a.HO()};r.a("AdfDhtmlSimpleFloat.prototype.GetAnimationDurationSkinProperty",{si:Pi.prototype.si});Pi.prototype.sk=function(){var a=Dj(this);u.s(a,I);return a.GO()};r.a("AdfDhtmlSimpleFloat.prototype.GetAnimateSkinProperty",{sk:Pi.prototype.sk});Pi.prototype.Dk=function(){return!1};r.a("AdfDhtmlSimpleFloat.prototype.ShouldHideOnClip",{Dk:Pi.prototype.Dk});Pi.prototype.Osa=function(){this.qHa&&(Ki.QZ(this.Zf()),this.Jr&&(this.Jr.Jd(),delete this.Jr))};
r.a("AdfDhtmlSimpleFloat.prototype.handleComponentRemoved",{Osa:Pi.prototype.Osa});Pi.prototype.R9=function(){if(!this.Jr){this.sI(Ej(this.gl()));var a=!this.rs();a&&this.Mv(a);if(a=A.c.m(this.h4)){var b=a.o();b.bind(a);this.baa(b.e9());this.b$()}}};r.a("AdfDhtmlSimpleFloat.prototype.handleBindToComponent",{R9:Pi.prototype.R9});Pi.prototype.b$=function(){if(!this.Jr){var a=this.Jr=new Gj(this,this.XIa);a.eaa(this.vcb);a.caa(this.qcb)}};
r.a("AdfDhtmlSimpleFloat.prototype.initializeRepositionable",{b$:Pi.prototype.b$});Pi.prototype.OD=function(a){var b=Dj(this);b&&b.EC?b.EC(a):Pi.h.OD.call(this.event)};r.a("AdfDhtmlSimpleFloat.prototype.HandleEscapeKey",{OD:Pi.prototype.OD});
Pi.prototype.Aq=function(a){this.qHa||(this.qHa=!0,this.R9());this.baa(a.dragElement);this.setModal(a.modal);var b=Qi.$();b.Yta(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;Pi.h.Aq.call(this,a);this.XIa&&this.b$();(d=this.Sma)&&A.c.Am().K$(this.Ha());a.focus&&b.jY(this);d&&a.restoreImmediate&&Pi.gib()&&2!=this.P9()&&A.c.sq()};r.a("AdfDhtmlSimpleFloat.prototype.DoShow",{Aq:Pi.prototype.Aq});
Pi.prototype.show=function(a){if(a&&a[AdfRichPopup.gt]&&a[AdfRichPopup.gt]!=AdfRichPopup.kda){var b=this.j9(a.align);this.gpa=b;C.w(this.Yj,b);b=a[AdfRichPopup.gt].charAt(0).toUpperCase()+a[AdfRichPopup.gt].substring(1);C.w(this.Ha(),"AFDialogTail"+b)}else this.Yj=null;Pi.h.show.call(this,a)};r.a("AdfDhtmlSimpleFloat.prototype.show",{show:Pi.prototype.show});Pi.gib=function(){var a=A.c,b=a.wm(),a=a.m(b),a=a.o().ky(a),b=0;for(i in a)b++;return 0<b};
Pi.prototype.Jd=function(){Qi.$().Gva(this);var a=A.c;this.Sma&&a.Am().F$(this.Ha());this.Jr&&(this.Jr.Jd(),delete this.Jr);Pi.h.Jd.call(this)};r.a("AdfDhtmlSimpleFloat.prototype.destroy",{Jd:Pi.prototype.Jd});function Dj(a){var b=null;null!=a.h4&&(a=A.c.m(a.h4),null!=a&&(b=a.o(),b.bind(a)));return b}function Fj(a){a=Dj(a);return null!=a?a.i():null}Pi.prototype.vcb=function(){var a=Fj(this);C.w(a,Pi.FS);Ki.uj(this.Zf())&&Ki.iz(this.Zf(),!1);this.Qla=!0;this.Op()&&(this.iQ(null),this.B0(AdfRichPopup.DQ))};
Pi.prototype.qcb=function(){var a=Fj(this);C.O(a,Pi.FS);Ki.uj(this.Zf())&&Ki.iz(this.Zf(),!0);delete this.Qla;this.setPosition(this.vP(),this.$O())};Pi.prototype.mZ=function(a){var b=Qi.$();return b.BH()==this?!1:b.jY(this)?(a&&this.Sv(),!0):!1};r.a("AdfDhtmlSimpleFloat.prototype.handleActivate",{mZ:Pi.prototype.mZ});Pi.prototype.rs=function(){return this.Qla?!0:Pi.h.rs.call(this)};r.a("AdfDhtmlSimpleFloat.prototype.isAnimating",{rs:Pi.prototype.rs});Pi.prototype.faa=function(a){this.Qla=a};
r.a("AdfDhtmlSimpleFloat.prototype.setDragging",{faa:Pi.prototype.faa});Pi.prototype.paa=function(a){var b=this.Zf();a?Ki.uj(b)||Ki.vY(b,this.Ha().parentNode):Ki.uj(b)&&Ki.QZ(this.Zf())};r.a("AdfDhtmlSimpleFloat.prototype.setShadowVisibility",{paa:Pi.prototype.paa});
Pi.prototype.jC=function(){if(this.Op())return null;var a=q.b,b=A.c.Ka().La(),d=a.getWindowHeight(),e=a.getWindowWidth(),f=a.zf(),g=a.Oe();0<f&&a.S()==q.ed&&(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.ov(g);return g};
r.a("AdfDhtmlSimpleFloat.prototype.getAlignPosition",{jC:Pi.prototype.jC});
Pi.prototype.setPosition=function(a,b){if(this.Op())Pi.h.setPosition.call(this,a,b);else if(this.rs()){var d=q.b,e=d.getWindowHeight(),f=d.getWindowWidth(),g=d.zf(),h=d.Oe();0<g&&d.S()==q.ed&&(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,Pi.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)),Pi.h.setPosition.call(this,a,b)};r.a("AdfDhtmlSimpleFloat.prototype.setPosition",{setPosition:Pi.prototype.setPosition});Pi.prototype.Ee=function(){return this.xk()};r.a("AdfDhtmlSimpleFloat.prototype.getFirstTabStop",{Ee:Pi.prototype.Ee});