function Oe(a){this.Init(a)}v("AdfDhtmlNoteWindowPopupSelector",Oe);z.l(Oe,Ne);Oe.da=function(){this.$qa="AFNoteWindow";this.QNa="AFNoteWindowRight";this.sIa="AFNoteWindowCone";this.vIa="AFNoteWindowConeTR";this.uIa="AFNoteWindowConeBR";this.tIa="AFNoteWindowConeBL";this.mna="AFNoteWindowConeBorder";this.rIa="AFNoteWindowConeBorderRight";this.HL="AFNoteWindowContent";this.m6a="endContent"};v("AdfDhtmlNoteWindowPopupSelector.InitClass",Oe.da);
Oe.prototype.Init=function(a){Oe.f.Init.call(this);this.eSa=a;this.sD(this.zh())};z.a("AdfDhtmlNoteWindowPopupSelector.prototype.Init",{Init:Oe.prototype.Init});Oe.prototype.Rn=function(a){var b=this.La();b.setAttribute("role","tooltip");var d=n;if(a&&(d=a[AdfRichPopup.Cf]))(a=w.b.getElementById(d))&&a.setAttribute("aria-describedby",b.id)};z.a("AdfDhtmlNoteWindowPopupSelector.prototype.setAccessibleAttrs",{Rn:Oe.prototype.Rn});
Oe.prototype.yu=function(){var a=F.c.u(),b=M.g(F.c.mi,Dg.yU),b=w.b.getElementById(b),d=F.c.R().gj&&w.b instanceof ee?"AFTooltipLiveTextMobile":"AFTooltipLiveText",a=a.V(d);w.b.yb(b,a)};z.a("AdfDhtmlNoteWindowPopupSelector.prototype.announceOpeningViaLiveRegion",{yu:Oe.prototype.yu});Oe.prototype.jv=function(){var a=this.XI();a&&(a=w.b.getElementById(a))&&a.removeAttribute("aria-describedby");a=M.g(F.c.mi,Dg.yU);a=w.b.getElementById(a);w.b.yb(a,"")};
z.a("AdfDhtmlNoteWindowPopupSelector.prototype.removeAccessibleAttrs",{jv:Oe.prototype.jv});Oe.prototype.show=function(a){var b=n;a&&(b=a[AdfRichPopup.Cf]);b&&w.b.getElementById(b)==n&&(D.i.warning("Attempting to show noteWindow but lauch element is not present."),b=a[AdfRichPopup.Cf]=n);if(b&&(a.alignElement||(a[AdfRichPopup.pf]=b,a.alignElement=w.b.getElementById(b)),b=F.c.j(b)))b.addEventListener(I.qd,this.hxa,this),b.addEventListener(I.ec,this.gxa,this);Oe.f.show.call(this,a)};
z.a("AdfDhtmlNoteWindowPopupSelector.prototype.show",{show:Oe.prototype.show});Oe.prototype.rb=function(){var a=F.c,b=this.XI();if(b&&(a=a.j(b)))a.removeEventListener(I.qd,this.hxa,this),a.removeEventListener(I.ec,this.gxa,this);Oe.f.rb.call(this)};z.a("AdfDhtmlNoteWindowPopupSelector.prototype.hide",{rb:Oe.prototype.rb});
Oe.sI=function(a){var b=n;0==a.indexOf("\x3chtml\x3e")&&a.lastIndexOf("\x3c/html\x3e")==a.length-7?b=H.u_(F.c.mc,a.substring(6,a.length-7)):(b=F.c.mc.createElement("div"),w.b.yb(b,a));return b};v("AdfDhtmlNoteWindowPopupSelector.createTextDom",Oe.sI);
Oe.prototype.Rf=function(){var a=w.b,b=F.c,d=b.w(),e=d.createElement("div"),f=this.OS(1,3);f.setAttribute("role","presentation");e.appendChild(f);var f=f.rows[0].cells,g=f[0],h=f[2];g.onclick=h.onclick=this.o(this.SZa);a.S(g,"focusin",w.ld);a.S(g,"focus",w.ld);a.S(h,"focusin",w.ld);a.S(h,"focus",w.ld);"autodismissMouseOut"==this.eSa&&(g.onmouseover=h.onmouseover=this.o(this.b_a),g.onmouseout=h.onmouseout=this.o(this.a_a));a=f[1];this.GE()&&(a=d.createElement("div"),f[1].appendChild(a),b=b.u().V("af_popup.TIP_DISMISS"),
a.innerHTML='\x3ca href\x3d"javascript:;" style\x3d"position:absolute;top:-999px;" onclick\x3d"AdfPage.PAGE.getAutoDismissalManager().dismiss(this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)"\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=Oe.$qa;f[0].className=Oe.mna;this.tN=d.createElement("div");this.il(a);return e};
z.a("AdfDhtmlNoteWindowPopupSelector.prototype.CreateDomElement",{Rf:Oe.prototype.Rf});Oe.prototype.yh=t(".AFNoteWindow-tr-open-animation-duration");z.a("AdfDhtmlNoteWindowPopupSelector.prototype.GetAnimationDurationSkinProperty",{yh:Oe.prototype.yh});Oe.prototype.lj=t(".AFNoteWindow-tr-animate");z.a("AdfDhtmlNoteWindowPopupSelector.prototype.GetAnimateSkinProperty",{lj:Oe.prototype.lj});
Oe.prototype.setPosition=function(a,b){var d=this.LK();if(0<=d&&(d=F.c.bm().aR(d))){var e=d.BD.Du,f=d.VC.Du,d=this.zh().parentNode.parentNode.parentNode,d="TABLE"==d.tagName?d.rows[0].cells:d.parentNode.rows[0].cells,g=d[1],f=f==Lg.Cq,e=e==Lg.jq,h=0,m=2;F.c.Ma().Oa()?(h=d[2],m=d[0]):(h=d[0],m=d[2]);f?(h.className="",h.innerHTML="\x26#160;",g.className=Oe.QNa,m.className=Oe.rIa,m.style.verticalAlign=e?"bottom":"top",this.tN.className=e?Oe.uIa:Oe.vIa,m.innerHTML="",m.appendChild(this.tN)):(m.className=
"",m.innerHTML="\x26#160;",g.className=Oe.$qa,h.className=Oe.mna,h.style.verticalAlign=e?"bottom":"top",this.tN.className=e?Oe.tIa:Oe.sIa,h.innerHTML="",h.appendChild(this.tN))}Oe.f.setPosition.call(this,a,b)};z.a("AdfDhtmlNoteWindowPopupSelector.prototype.setPosition",{setPosition:Oe.prototype.setPosition});u=Oe.prototype;
u.SZa=function(a){var b=w.b;a=a||b.R().event;var d=b.Qb(a);F.c.Kk().kh(this.La().parentNode);var e=F.c.mc;if(d=e.elementFromPoint?e.elementFromPoint(d.x,d.y):b.vn(d.x,d.y))e=b.Pr(a),b.dispatchEvent(d,e),d.focus!=n&&O.ra(d),b.va(a)};u.b_a=function(){this.dya||(this.dya=this.o(this.$Za));var a=F.c.R();this.kH&&a.clearTimeout(this.kH);this.kH=a.setTimeout(this.dya,500)};u.$Za=function(){delete this.kH;F.c.Kk().kh(this.La().parentNode)};
u.a_a=function(){var a=F.c.R();this.kH&&(a.clearTimeout(this.kH),delete this.kH)};u.Nh=function(){var a=this.dT();this.pL(l);this.Ov();this.pL(a)};z.a("AdfDhtmlNoteWindowPopupSelector.prototype.activate",{Nh:Oe.prototype.Nh});Oe.prototype.Iz=function(a){var b=this.XI();if(b){var d=w.b;if(b=F.c.j(b))b.focus(),d.va(a)}};z.a("AdfDhtmlNoteWindowPopupSelector.prototype.HandleKeyNavigation",{Iz:Oe.prototype.Iz});
Oe.prototype.gxa=function(a){!a.na()&&a.ia()==E.WS&&(w.b.preventDefault(a.L()),this.Nh&&(this.Nh(),a.cancel(),a.dc()))};Oe.prototype.hxa=function(a){if(!a.na()){var b=a.L(),d=a.ia();b.ctrlKey&&(b.altKey&&d==E.dF)&&this.Nh&&(this.Nh(),a.cancel(),a.dc())}};Oe.prototype.Lr=function(){Oe.f.Lr.call(this);var a=this.B3();if(a&&this.getWidth()>=a){var b=this.Uh();if(b=H.Lu(b,p,Oe.XYa)){b=b.style;b.overflow="hidden";var d=this.tN;w.b.G()==w.aa&&d&&(b.width=a-d.offsetWidth+"px")}}};
z.a("AdfDhtmlNoteWindowPopupSelector.prototype.autoSize",{Lr:Oe.prototype.Lr});Oe.XYa=function(a){return"DIV"==a.tagName&&H.ta(a,Oe.HL)?l:p};Oe.prototype.Gi=function(){var a=this.Uh();return H.TI(a,"DIV")};z.a("AdfDhtmlNoteWindowPopupSelector.prototype.GetFocusContent",{Gi:Oe.prototype.Gi});