var yp=M.U(M,"AdfDhtmlNavigationPanePeer",p);v("AdfDhtmlNavigationPanePeer",yp);
yp.m=function(){M.ha(this,I.qd,I.jb,I.ec,I.Xc);w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Qd);this.$T="_afrChoiceButton";this.fHa="_afrChoiceDataContainer";this.rf="popupContent";this.Ic="_afrChoicePopupPanel";this.N6a="_afrPopupClosedTime";this.yt="tabh";this.G7="tabs";this.b5="bar";this.JGa="disclosureAnchor";this.Aw="Cnvr";yp.b7a="p_AFSelected";this.RL="_afrEps";this.F7="_afrTabCnt";this.k7a="_afrTabDiv";var a=F.c.u().ka("af|navigationPane-tr-layout-type");this.zj="overflow"==a?"overflow":"overflow-droplist"==
a?"overflow-droplist":"conveyorBelt"};v("AdfDhtmlNavigationPanePeer.InitSubclass",yp.m);yp.prototype.q=function(a,b){yp.f.q.call(this,a,b);var d=a.e(),e=w.fa();this.ZB=l;if(a.getHint()==yp.G7){if(d=M.g(d,yp.yt),this.Tb=e.getElementById(d))d="conveyorBelt"==yp.zj?M.g(d,"cbc"):M.g(d,"oc"),this.zX=e.getElementById(d),F.c.Go(a)}else a.getHint()==yp.b5&&(d=M.g(d,"oc"),this.gW=e.getElementById(d),F.c.Go(a))};z.a("AdfDhtmlNavigationPanePeer.prototype.InitDomElement",{q:yp.prototype.q});
yp.prototype.ja=function(a){return this.Tb||a.getHint()==yp.b5?l:p};z.a("AdfDhtmlNavigationPanePeer.prototype.needsResizeNotify",{ja:yp.prototype.ja});
yp.prototype.Ia=function(a,b,d){b=this.d();if(this.zX)a!=d&&("ellipsis"==this.d().getTruncationStyle()?(d=this.kd(this.Tb.id,this.zX),0!=d.length&&this.vba(a,this.Tb.offsetWidth,this.Tb.id,d)):this.xQ(d));else if(this.gW){if(!this.Fa){a=b.e();if(!Oi.b1(a))return;this.Fa=new Oi(a,this,"both");a=this.gW.childNodes;a:{for(d=-1;b=a[++d];)if(H.ta(b,"p_AFSelected"))break a;d=-1}var e;for(b=-1;e=a[++b];)if(1==e.nodeType&&("a"==e.tagName.toLowerCase()||0<e.getElementsByTagName("a").length)){-1==d&&(d=b);
this.Fa.un();d==b?this.Fa.addElement(e):b>d?(zp(this,a,b,l),this.Fa.addElement(e)):(this.Fa.addElement(e),zp(this,a,b,p));var f=e,g=this.d(),h=yp.jSa;h==n&&(h=F.c.u().getStyleClass("AFOverflowElement"),yp.jSa=h);e=f.ownerDocument.createElement("div");e.className=h;h=f.cloneNode(l);h.removeAttribute("id");e.appendChild(h);g=F.c.j(f.id);if(!g.getDisabled()){g=f.href;g==k&&(g=f.getAttribute("href"));var m=w.b.w().location.href;g&&-1==g.indexOf(m)?(h.setAttribute("_href",g),(f=f.getAttribute("target"))&&
h.setAttribute("_target",f)):h.setAttribute("_componentId",f.getAttribute("id"));f=this.o(this.awa);w.b.S(h,"click",f)}this.Fa.lp(e)}}this.Fa.Nf()}};z.a("AdfDhtmlNavigationPanePeer.prototype.ResizeNotify",{Ia:yp.prototype.Ia});u=yp.prototype;u.xQ=function(a){var b=this.kd(this.Tb.id,this.zX);0!=b.length&&this.EH(this.Tb.id,b,a)};
u.vba=function(a,b,d,e,f){a=e.length;var g=this.d();this.uf||(this.uf=g.getMaxTabSize(),this.uf=this.uf==n||"infinity"==this.uf?0:parseFloat(this.uf));this.$g||(this.$g=g.getMinTabSize(),this.$g=parseFloat(this.$g),this.$g==n&&(this.$g=32));if(0<this.uf&&this.$g>this.uf)D.i.warning("Minimum tab width should not be greater than maximum tab width: min\x3d"+this.$g+", max\x3d "+this.uf);else{if(!this.El){this.El=this.$g*a;!this.Ml&&1<a&&(this.Ml=e[0].offsetWidth-(e[1].offsetLeft-e[0].offsetLeft));for(g=
0;g<a;g++){var h=e[g];tabContentElement=this.sO(h);this.fx(h).style.display="none";this.El+=h.offsetWidth-tabContentElement.offsetWidth-this.Ml}this.Ml&&(this.El+=this.Ml)}b<this.El?(this.bQ(e,this.$g),this.EH(d,e,b,f)):(b=Math.floor((b-this.Ml)/a),this.saa(),this.bQ(e,b,l))}};
u.bQ=function(a,b,d){for(var e=p,f=0;f<a.length;f++){var g=a[f];tabContentElement=this.sO(g);var h=this.fx(g),m=tabContentElement.style.width;tabContentElement.style.width="";tabContentElement.style.overflow="";h.style.display="none";g=g.offsetWidth;g=d?b-(g-tabContentElement.offsetWidth)+this.Ml:b;0<this.uf&&g>this.uf&&(g=this.uf);tabContentElement.offsetWidth>g&&(h.style.display="inline",tabContentElement.style.overflow="hidden",g-=h.offsetWidth);tabContentElement.style.width=g+"px";!e&&m!=tabContentElement.style.width&&
(e=l)}return e};u.saa=function(){"conveyorBelt"==yp.zj?this.Lt&&this.Lt.Nf():this.Fa&&this.Fa.kD()};
u.EH=function(a,b){var d=yp.zj;if("overflow"==d){if(!this.Fa){for(var d=new Oi(a,this,"both"),e=0;e<b.length;e++){var f=b[e];1==f.nodeType&&(d.un(),d.addElement(f),"none"!=f.style.display&&d.lp(Ap(this,f)))}this.Fa=d}this.Fa&&this.Fa.Nf()}else if("overflow-droplist"==d){if(!this.Fa){d=new Oi(a,this,"droplist");e=[];for(f=0;f<b.length;f++){var g=b[f];1==g.nodeType&&(d.un(),d.addElement(g),"none"!=g.style.display&&(d.lp(Ap(this,g)),e.push(Ap(this,g))))}d.vu(e);this.Fa=d}this.Fa&&this.Fa.Nf()}else if("conveyorBelt"==
d){if(!this.Lt){d=new ki(a,this);e=[];f=M.g(a,"cbs");for(g=0;g<b.length;g++){var h=b[g];1==h.nodeType&&h.getAttribute("id")!=f&&"none"!=h.style.display&&e.push(Ap(this,h))}d.vu(e);if(e=yp.C9)d.sia(e),yp.C9=n;this.Lt=d}this.Lt&&this.Lt.Nf()}};u.kd=function(a,b){for(var d=b.childNodes,e=[],f="conveyorBelt"==yp.zj,g=f?M.g(a,"cbs"):n,h=0;h<d.length;h++){var m=d[h];1==m.nodeType&&!(f&&m.getAttribute("id")==g)&&e.push(m)}return e};u.PF=function(){var a=this.Lt;a&&(yp.C9=a.b0());this.LP()};
z.a("AdfDhtmlNavigationPanePeer.prototype.__saveAndRemoveCompressedLayout",{PF:yp.prototype.PF});yp.prototype.Z=function(a){this.LP();this.Tb?(delete this.Tb,delete this.zX):this.gW&&delete this.gW;F.c.Nm(a);yp.f.Z.call(this,a)};z.a("AdfDhtmlNavigationPanePeer.prototype.ComponentRemoved",{Z:yp.prototype.Z});yp.prototype.LP=function(){this.Fa&&(this.Fa.lv(),this.Fa=n);this.Lt&&(this.Lt.UR(),this.Lt=n)};yp.prototype.C=function(a){a.cancel();return p};
z.a("AdfDhtmlNavigationPanePeer.prototype.HandleComponentClick",{C:yp.prototype.C});
yp.prototype.pa=function(a){var b=this.d(),d=a.L(),e=w.b.T(d),f=w.b.ia(d);if(this.Qa(b,yp.Ic)){var g=p,h=Bp(b);switch(f){case E.xh:g=Cp(b);O.ra(g);g=M.g(b.e(),yp.$T);F.c.mc.getElementById(g).setAttribute("aria-expanded","false");g=l;break;case E.Ja:O.Ud(e,h);cancelEvt=l;break;case E.Ya:O.Qh(e,h)}g&&this.ob(b,yp.Ic)}else e==Cp(b)&&f==E.Ja&&Dp(this,b);if(!a.na()){if(f==E.Ya||f==E.Kb)this.px(e)&&((b=O.nR(this.h(),e))||(b=O.KC(this.h())),b&&(b.focus(),a.cancel()));else if((f==E.Ja||f==E.Lb)&&this.px(e))(b=
O.aJ(this.h(),e))||(b=O.Zl(this.h())),b&&(b.focus(),a.cancel());(!d.ctrlKey||!(d.altKey&&87==f))&&a.cancel()}};z.a("AdfDhtmlNavigationPanePeer.prototype.HandleComponentKeyUp",{pa:yp.prototype.pa});yp.prototype.px=function(a){if(a==n)return p;a=a.id;if(a==n)return p;a=a.split("::");return 1>=a.length||a[a.length-1]!=yp.JGa?p:l};
yp.prototype.qa=function(a){var b=a.L();a=a.getSource();var b=w.b.T(b),d=Cp(a);if(b==d||b.parentNode==d)this.Qa(a,yp.Ic)?(b=M.g(a.e(),yp.$T),d=F.c.mc.getElementById(b),d.setAttribute("aria-expanded","false"),this.ob(a,yp.Ic)):Dp(this,a)};z.a("AdfDhtmlNavigationPanePeer.prototype.HandleComponentMouseDown",{qa:yp.prototype.qa});yp.prototype.Ka=function(a){if(this.Qa(this.d(),yp.Ic)){var b=a.Q();O.ra(b)}a.cancel()};z.a("AdfDhtmlNavigationPanePeer.prototype.HandleComponentMouseOver",{Ka:yp.prototype.Ka});
yp.prototype.ba=function(a){var b=a.L(),b=w.b.T(b),d=a.getSource();b==Cp(d)&&a.ia()==E.$a&&Dp(this,d)};z.a("AdfDhtmlNavigationPanePeer.prototype.HandleComponentKeyDown",{ba:yp.prototype.ba});yp.prototype.hla=function(a){return Cp(a)};z.a("AdfDhtmlNavigationPanePeer.prototype.GetPopupAlignmentNode",{hla:yp.prototype.hla});yp.prototype.Va=function(a,b,d){d==yp.Ic&&(a=a.e(),a=M.g(a,yp.fHa),w.b.getElementById(a).appendChild(b))};z.a("AdfDhtmlNavigationPanePeer.prototype.PopupClosed",{Va:yp.prototype.Va});
function Cp(a){a=M.g(a.e(),yp.$T);return w.b.getElementById(a)}function Dp(a,b){z.kb(AdfRichPopup);var d=Bp(b),e=M.g(b.e(),yp.$T);d.parentNode.removeChild(d);F.c.mc.getElementById(e).setAttribute("aria-expanded","true");var f={type:"menu"};f[AdfRichPopup.fd]=AdfRichPopup.of;f[AdfRichPopup.pf]=e;f.autodismiss="autodismissMenu";a.fe(b,d,f,yp.Ic)}function Bp(a){a=M.g(a.e(),yp.rf);return w.b.getElementById(a)}
function Ap(a,b){var d=w.b,e=F.c.u(),f=b.getAttribute("id"),g,h=b.getElementsByTagName("a")[0],m=b.getElementsByTagName("a")[1],q=b.getElementsByTagName("img")[0];q&&(q=q.cloneNode(l),q.id&&(q.id+=yp.Aw));if(h&&-1==h.className.indexOf("p_AFDisabled")){h=h.cloneNode(l);h.id&&(h.id+=yp.Aw);g=yp.q1a;g==n&&(g="conveyorBelt"==yp.zj?e.getStyleClass("AFConveyorBeltElement"):e.getStyleClass("AFOverflowElement"),yp.q1a=g);m&&(m=m.cloneNode(l),m.id&&(m.id+=yp.Aw),m.setAttribute("_componentId",f),e=a.o(a.RWa),
d.S(m,"click",e));var e=b.getAttribute("href"),s=d.w().location.href;if(e&&-1==e.indexOf(s)){if(h.setAttribute("_href",e),q&&q.setAttribute("_href",e),f=b.getAttribute("target"))h.setAttribute("_target",f),q&&q.setAttribute("_target",f)}else h.setAttribute("_componentId",f),q&&q.setAttribute("_componentId",f);f=a.o(a.awa);d.S(h,"click",f);q&&d.S(q,"click",f)}else g=h.innerHTML,h=b.ownerDocument.createElement("div"),h.innerHTML=g,g=yp.p1a,g==n&&(g="conveyorBelt"==yp.zj?e.getStyleClass("AFConveyorBeltElementDisabled"):
e.getStyleClass("AFOverflowElementDisabled"),yp.p1a=g),m&&(m=m.cloneNode(l),m.id&&(m.id+=yp.Aw));d=b.ownerDocument.createElement("table");d.cellPadding=0;d.cellSpacing=0;d.style.width="100%";f=d.insertRow(-1);e=f.insertCell(-1);q&&e.appendChild(q);q=f.insertCell(-1);q.style.width="100%";e=b.ownerDocument.createElement("div");e.className=g;q.appendChild(e);e.appendChild(h);h=f.insertCell(-1);m&&(q=b.ownerDocument.createElement("div"),q.className=g,h.appendChild(q),q.appendChild(m));return d}u=yp.prototype;
u.awa=function(a){this.UC(this.d());var b=w.b.T(a);"A"!=b.nodeName&&"IMG"!=b.nodeName&&(b=b.parentNode);(a=b.getAttribute("_href"))?(b=b.getAttribute("_target"))?window.open(a,b):self.location=a:(this.PF(),a=b.getAttribute("_componentId"),a=F.c.j(a),bb.v(a,a.getPartialSubmit()))};u.RWa=function(a){a=w.b.T(a);var b=a.getAttribute("_componentId");b==n&&(b=a.parentNode.getAttribute("_componentId"));a=F.c.j(b);b=a.k();b.bind(a);b&&(b.mI&&b.mI())&&(this.UC(this.d()),this.PF(),Hb.PJ(a))};
function zp(a,b,d,e){var f=d+1;e&&(f=d-1);d=l;for(var g=b[f];d&&g;){if(1==g.nodeType)if("img"==g.tagName.toLowerCase()||0<g.getElementsByTagName("img").length)a.Fa.addElement(g),d=p;else if("span"==g.tagName.toLowerCase()||0<g.getElementsByTagName("span").length)a.Fa.addElement(g),d=p;e?f--:f++;g=b[f]}}u.sO=function(a){a=a.getAttribute("id");a=M.g(a,yp.F7);return w.b.getElementById(a)};u.fx=function(a){a=a.getAttribute("id");a=M.g(a,yp.RL);return w.b.getElementById(a)};
u.Fd=function(a,b,d,e){a=a.e();B.assert(0<=d.indexOf(a));d=d.substring(a.length+1);b=d.indexOf(":");0<b&&(d=d.substring(0,b),a=xa.count(a,":"),e.push([a+1,d]))};z.a("AdfDhtmlNavigationPanePeer.prototype.ConvertClientIdToLocator",{Fd:yp.prototype.Fd});yp.prototype.Jd=function(a,b){var d=a.ce()[b];if(d){var e=a.e(),d=d.e();if(0<d.substring(e.length+1).indexOf(":"))return d;B.assert(p,"Use of [] locator notation is only supported when navigationPane: "+e+" is used with MenuModel")}return n};
z.a("AdfDhtmlNavigationPanePeer.prototype.convertLocatorToClientId",{Jd:yp.prototype.Jd});