function wf(a){this.Init(a)}m("AdfDhtmlNoteWindowPopupSelector",wf);r.v(wf,vf);wf.ga=function(){this.UEa="AFNoteWindow";this.c5a="AFNoteWindowRight";this.AZa="AFNoteWindowCone";this.DZa="AFNoteWindowConeTR";this.CZa="AFNoteWindowConeBR";this.BZa="AFNoteWindowConeBL";this.wAa="AFNoteWindowConeBorder";this.zZa="AFNoteWindowConeBorderRight";this.vS="AFNoteWindowContent"};m("AdfDhtmlNoteWindowPopupSelector.InitClass",wf.ga);wf.prototype.Init=function(a){wf.h.Init.call(this);this.w$a=a;this.sI(this.ui())};
r.a("AdfDhtmlNoteWindowPopupSelector.prototype.Init",{Init:wf.prototype.Init});wf.prototype.qq=function(a){var b=this.Ha();b.setAttribute("role","tooltip");var d=null,d=null;a&&((d=a.alignElement)?d.setAttribute("aria-describedby",b.id):(d=a[AdfRichPopup.cg])&&(a=q.b.getElementById(d))&&a.setAttribute("aria-describedby",b.id))};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.setAccessibleAttrs",{qq:wf.prototype.qq});
wf.prototype.gy=function(){var a=A.c.H(),b=I.j(A.c.gj,bj.F1),b=q.b.getElementById(b),d=A.c.Y().Zi&&q.b instanceof Ge?"AFTooltipLiveTextMobile":"AFTooltipLiveText",a=a.Z(d);q.b.bc(b,a)};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.announceOpeningViaLiveRegion",{gy:wf.prototype.gy});wf.prototype.Wy=function(){var a=this.Pp();a?a.removeAttribute("aria-describedby"):(a=this.ZO())&&(a=q.b.getElementById(a))&&a.removeAttribute("aria-describedby");a=I.j(A.c.gj,bj.F1);a=q.b.getElementById(a);q.b.bc(a,"")};
r.a("AdfDhtmlNoteWindowPopupSelector.prototype.removeAccessibleAttrs",{Wy:wf.prototype.Wy});wf.prototype.show=function(a){var b=null;a&&(b=a[AdfRichPopup.cg]);b&&null==q.b.getElementById(b)&&(v.l.warning("Attempting to show noteWindow but lauch element is not present."),b=a[AdfRichPopup.cg]=null);b&&(a.alignElement||(a[AdfRichPopup.Jf]=b,a.alignElement=q.b.getElementById(b)),b=A.c.m(b))&&(b.addEventListener(D.Ad,this.MMa,this),b.addEventListener(D.Bc,this.LMa,this));wf.h.show.call(this,a)};
r.a("AdfDhtmlNoteWindowPopupSelector.prototype.show",{show:wf.prototype.show});wf.prototype.Tb=function(){var a=A.c,b=this.ZO();b&&(a=a.m(b))&&(a.removeEventListener(D.Ad,this.MMa,this),a.removeEventListener(D.Bc,this.LMa,this));wf.h.Tb.call(this)};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.hide",{Tb:wf.prototype.Tb});
wf.sO=function(a){var b=null;0==a.indexOf("\x3chtml\x3e")&&a.lastIndexOf("\x3c/html\x3e")==a.length-7?b=C.p8(A.c.Hc,a.substring(6,a.length-7)):(b=A.c.Hc.createElement("div"),q.b.bc(b,a));return b};m("AdfDhtmlNoteWindowPopupSelector.createTextDom",wf.sO);
wf.prototype.Kg=function(){var a=q.b,b=A.c,d=b.R(),e=d.createElement("div"),f=this.N_(1,3);f.Ao="presentation";e.appendChild(f);var f=f.rows[0].cells,g=f[0],h=f[2];g.onclick=h.onclick=this.D(this.ikb);a.ba(g,"focusin",q.Td);a.ba(g,"focus",q.Td);a.ba(h,"focusin",q.Td);a.ba(h,"focus",q.Td);"autodismissMouseOut"==this.w$a&&(g.onmouseover=h.onmouseover=this.D(this.skb),g.onmouseout=h.onmouseout=this.D(this.rkb));a=f[1];this.WJ()&&(a=d.createElement("div"),f[1].appendChild(a),b=b.H().Z("af_popup.TIP_DISMISS"),
a.innerHTML='\x3ca href\x3d"javascript:;" style\x3d"position:absolute;top:-990px;" onclick\x3d"AdfPage.PAGE.getAutoDismissalManager().dismiss()"\x3e'+b+"\x3c/a\x3e",b=d.createElement("div"),f[1].appendChild(b),a=b);f[2].className="";f[2].innerHTML="\x26#160;";f[1].className=wf.UEa;f[0].className=wf.wAa;this.pU=d.createElement("div");this.bn(a);return e};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.CreateDomElement",{Kg:wf.prototype.Kg});wf.prototype.si=function(){return".AFNoteWindow-tr-open-animation-duration"};
r.a("AdfDhtmlNoteWindowPopupSelector.prototype.GetAnimationDurationSkinProperty",{si:wf.prototype.si});wf.prototype.sk=function(){return".AFNoteWindow-tr-animate"};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.GetAnimateSkinProperty",{sk:wf.prototype.sk});
wf.prototype.setPosition=function(a,b){var d=this.iR();if(0<=d&&(d=A.c.Bm().IY(d))){var e=d.FI.ky,f=d.TH.ky,d=this.ui().parentNode.parentNode.parentNode,d="TABLE"==d.tagName?d.rows[0].cells:d.parentNode.rows[0].cells,g=d[1],f=f==gj.rt,e=e==gj.Ts,h=0,l=2;A.c.Ka().La()?(h=d[2],l=d[0]):(h=d[0],l=d[2]);f?(h.className="",h.innerHTML="\x26#160;",g.className=wf.c5a,l.className=wf.zZa,l.style.verticalAlign=e?"bottom":"top",this.pU.className=e?wf.CZa:wf.DZa,l.innerHTML="",l.appendChild(this.pU)):(l.className=
"",l.innerHTML="\x26#160;",g.className=wf.UEa,h.className=wf.wAa,h.style.verticalAlign=e?"bottom":"top",this.pU.className=e?wf.BZa:wf.AZa,h.innerHTML="",h.appendChild(this.pU))}wf.h.setPosition.call(this,a,b)};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.setPosition",{setPosition:wf.prototype.setPosition});k=wf.prototype;
k.ikb=function(a){var b=q.b;a=a||b.Y().event;var d=b.Xb(a);A.c.el().vh(this.Ha().parentNode);var e=A.c.Hc;if(d=e.elementFromPoint?e.elementFromPoint(d.x,d.y):b.Np(d.x,d.y))e=b.Fu(a),b.dispatchEvent(d,e),null!=d.focus&&J.va(d),b.Ea(a)};k.skb=function(){this.KNa||(this.KNa=this.D(this.qkb));var a=A.c.Y();this.dN&&a.clearTimeout(this.dN);this.dN=a.setTimeout(this.KNa,500)};k.qkb=function(){delete this.dN;A.c.el().vh(this.Ha().parentNode)};
k.rkb=function(){var a=A.c.Y();this.dN&&(a.clearTimeout(this.dN),delete this.dN)};k.Hi=function(){var a=this.d0();this.ZR(!0);this.Tv();this.ZR(a)};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.activate",{Hi:wf.prototype.Hi});wf.prototype.QD=function(a){var b=this.ZO();if(b){var d=q.b;if(b=A.c.m(b))b.focus(),d.Ea(a)}};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.HandleKeyNavigation",{QD:wf.prototype.QD});
wf.prototype.LMa=function(a){a.Aa()||a.na()!=w.W_||(q.b.preventDefault(a.U()),this.Hi&&(this.Hi(),a.cancel(),a.wc()))};wf.prototype.MMa=function(a){if(!a.Aa()){var b=a.U(),d=a.na();b.ctrlKey&&b.altKey&&d==w.xK&&this.Hi&&(this.Hi(),a.cancel(),a.wc())}};wf.prototype.Ip=function(){wf.h.Ip.call(this);var a=this.eca();if(a&&this.getWidth()>=a){var b=this.gl();if(b=C.Pu(b,!1,wf.njb)){b=b.style;b.overflow="hidden";var d=this.pU;q.b.S()==q.ia&&d&&(b.width=a-d.offsetWidth+"px")}}};
r.a("AdfDhtmlNoteWindowPopupSelector.prototype.autoSize",{Ip:wf.prototype.Ip});wf.njb=function(a){return"DIV"==a.tagName&&C.sa(a,wf.vS)?!0:!1};wf.Rdb=function(a){return"DIV"==a.tagName&&(a=q.b.getComputedStyle(a))&&"hidden"!=a.visibility&&"none"!=a.display?!0:!1};wf.prototype.xk=function(){var a=this.gl();return C.Pu(a,!1,wf.Rdb)};r.a("AdfDhtmlNoteWindowPopupSelector.prototype.GetFocusContent",{xk:wf.prototype.xk});