var ls=M.U(M,"AdfDhtmlPanelTabbedPeer",p);v("AdfDhtmlPanelTabbedPeer",ls);
ls.m=function(){M.ha(this,I.qd,I.jb,I.tc,I.Dd,I.Xc,I.Xf);w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Qd,I.Ve);this.yt="tabh";this.mV="tabf";this.WOa="tabv";this.TOa="tabb";this.era="tabbc";this.tL="ti";this.uL="tiB";this.F4="icon";this.G4="iconB";this.qt="_afrPtKey";this.Aw="Cnvr";this.Zna="_afrOfwLnk";this.nl="_afrDisTab";this.eF="disAcr";this.fF="disAcrBlw";this.KGa=this.fF.length;this.xNa="rmAbv";this.yNa="rmBlw";this.Mq="p_AFHighlighted";this.RL="_afrEps";this.F7="_afrTabCnt";this.LKa={above:"below",below:"above",
start:"end",end:"start",left:"right",right:"left"};this.zj="notSupported";var a=F.c.u().ka("af|panelTabbed-tr-layout-type"),b=w.b,b=b.G()==w.aa&&7==Math.floor(b.nb());this.zj="overflow"==a?"overflow":"overflow-droplist"==a||b?"overflow-droplist":"conveyorBelt"};v("AdfDhtmlPanelTabbedPeer.InitSubclass",ls.m);
ls.prototype.q=function(a,b){ls.f.q.call(this,a,b);var d=w.fa(),e=M.g(a.e(),ls.yt);this.Tb=d.getElementById(e);var f=M.g(a.e(),ls.WOa);this.eC=d.getElementById(f);e="conveyorBelt"==ls.zj?M.g(e,"cbc"):M.g(e,"oc");this.GO=w.b.getElementById(e);e=M.g(a.e(),ls.mV);this.fX=d.getElementById(e);e="conveyorBelt"==ls.zj?M.g(e,"cbc"):M.g(e,"oc");this.jO=w.b.getElementById(e);e=M.g(a.e(),ls.TOa);this.jta=d.getElementById(e);e=M.g(a.e(),ls.era);this.ita=d.getElementById(e);this.ZB=l;F.c.Go(a)};
z.a("AdfDhtmlPanelTabbedPeer.prototype.InitDomElement",{q:ls.prototype.q});ls.prototype.Za=function(a,b){ls.f.Za.call(this,a,b);var d=ls.ila();if(d!=n){var e,f;l==ls.wla()?(e=ls.fF,f=ls.eF):(e=ls.eF,f=ls.fF);this.Gx=d;e=M.g(d,e);e=w.b.getElementById(e);e==n&&(e=M.g(d,f),e=w.b.getElementById(e));e!=n&&O.ra(e);ls.Lya=n;ls.Mya=n}};z.a("AdfDhtmlPanelTabbedPeer.prototype.BindToComponent",{Za:ls.prototype.Za});ls.prototype.Ka=function(a){this.Vt(a,l,p)};
z.a("AdfDhtmlPanelTabbedPeer.prototype.HandleComponentMouseOver",{Ka:ls.prototype.Ka});ls.prototype.qa=function(a){this.Vt(a,p,l)};z.a("AdfDhtmlPanelTabbedPeer.prototype.HandleComponentMouseDown",{qa:ls.prototype.qa});ls.prototype.cc=function(a){this.Vt(a,p,p)};z.a("AdfDhtmlPanelTabbedPeer.prototype.HandleComponentMouseUp",{cc:ls.prototype.cc});ls.prototype.vb=function(a){this.Vt(a,p,p)};z.a("AdfDhtmlPanelTabbedPeer.prototype.HandleComponentMouseOut",{vb:ls.prototype.vb});
ls.prototype.pa=function(a){var b=a.L(),d=a.ia(),e=a.Q();if(!a.na())if(b.ctrlKey&&b.altKey&&d==E.VS)a=this.ex(e,this.h()),a!=n&&(b=F.c.j(a),!b.getDisabled()&&zt(this,a)&&(this.Ex(),O.Ud(e,n,l),Hb.PJ(b)));else if(d==E.Ya||d==E.Kb)this.px(e)&&((e=O.nR(At(this),e))||(e=O.KC(At(this))),e&&(e.focus(),a.cancel()));else if((d==E.Ja||d==E.Lb)&&this.px(e))(e=O.aJ(At(this),e))||(e=O.Zl(At(this))),e&&(e.focus(),a.cancel())};z.a("AdfDhtmlPanelTabbedPeer.prototype.HandleComponentKeyUp",{pa:ls.prototype.pa});
function At(a){return a.eC?a.eC:w.b.getAttribute(a.Tb,ls.nl)==n?a.fX:a.Tb}ls.prototype.px=function(a){if(a==n)return p;var b=a.id;if(b==n)return p;b=b.split("::");if(1>=b.length)return p;b=b[b.length-1];return b!=ls.eF&&b!=ls.fF||this.ex(a,this.h())==n?p:l};
ls.prototype.C=function(a){if(!a.na()&&a.Jb()){var b=this.d(),d=a.Q();if("1"==w.b.Vh(d,ls.Zna)){b=this.d();this.UC(b);var e=d.FH;if(e){var f=F.c.j(e),b=this.rq(b);if(!f.getDisabled())if(f==b){if(this.Hh||this.Xg)if(b=f.e(),this.Hh){f=M.Na(b,ls.tL);b=w.fa().getElementById(f);e=0;f=this.kd(f,this.GO);for(d=0;d<f.length;d++)if(1==f[d].nodeType){if(f[d]==b){this.Hh.ZR(e);this.Xg&&this.Xg.ZR(e);break}e++}}else if(this.Xg){f=M.Na(b,ls.uL);b=w.fa().getElementById(f);e=0;f=this.kd(f,this.jO);for(d=0;d<f.length;d++)if(1==
f[d].nodeType){if(f[d]==b){this.Xg.ZR(e);break}e++}}}else ls.D4(e,n),this.Ex(),(b=this.KE(b,f))&&b.na()&&this.xQ(0)}a.cancel()}else if(e=this.ex(d,this.h()),e!=n&&(a.cancel(),a=F.c.j(e),!a.getDisabled()))if(this.bba(e,d))zt(this,e)&&(this.UC(b),this.Ex(),d.parentNode.className&&d.parentNode.className!=ls.Nta||O.Ud(d,n,l),Hb.PJ(a));else if(f=this.rq(b),a!=f){var d=d.id,g=d.length-ls.KGa,h=p;0<=g&&(h=g==d.lastIndexOf(ls.fF,g));ls.D4(e,h);this.Ex();(a=this.KE(f,a))&&a.na()&&this.xQ(0);this.oo(b)}else this.Bm(b,
a)}};z.a("AdfDhtmlPanelTabbedPeer.prototype.HandleComponentClick",{C:ls.prototype.C});ls.prototype.Ha=function(a){this.CO(a,l)};z.a("AdfDhtmlPanelTabbedPeer.prototype.HandleComponentFocus",{Ha:ls.prototype.Ha});ls.prototype.Eb=function(a){this.CO(a,p)};z.a("AdfDhtmlPanelTabbedPeer.prototype.HandleComponentBlur",{Eb:ls.prototype.Eb});ls.prototype.Bm=ca();z.a("AdfDhtmlPanelTabbedPeer.prototype.TabReselected",{Bm:ls.prototype.Bm});ls.prototype.oo=ca();
z.a("AdfDhtmlPanelTabbedPeer.prototype.NewTabSelected",{oo:ls.prototype.oo});ls.prototype.FK=r("jta");z.a("AdfDhtmlPanelTabbedPeer.prototype.GetBodyOuterElement",{FK:ls.prototype.FK});ls.prototype.aE=r("ita");z.a("AdfDhtmlPanelTabbedPeer.prototype.GetBodyInnerElement",{aE:ls.prototype.aE});ls.prototype.NK=r("eC");z.a("AdfDhtmlPanelTabbedPeer.prototype.GetVertTabsElement",{NK:ls.prototype.NK});ls.prototype.cF=t(p);z.a("AdfDhtmlPanelTabbedPeer.prototype.UseInvertedRenderingPosition",{cF:ls.prototype.cF});
function Bt(a,b){var d=b.getPosition();return a.cF()?ls.LKa[d]:d}u=ls.prototype;u.iwa=function(a,b,d){a=a.id;if(a==n)return p;a=a.split("::");return 1>=a.length?p:(a=a[a.length-1])&&(a==b||a==d)?l:p};u.hO=function(a,b,d){return this.iwa(a,b,d)&&(a=this.ex(a,this.h()),a!=n)?F.c.j(a):n};u.$c=function(a,b,d){d||(d=b.getIcon());d&&(a.src=d)};
u.Vt=function(a,b,d){a=a.Q();var e=this.hO(a,ls.F4);e==n&&(e=this.hO(a,ls.G4));e&&!e.getDisabled()&&"inline"!=e.getIconDelivery()&&(b?this.$c(a,e,e.getHoverIcon()):d?this.$c(a,e,e.getDepressedIcon()):e.getDisclosed()?this.$c(a,e,e.getDepressedIcon()):this.$c(a,e,e.getIcon()))};
u.CO=function(a,b){a.cancel();var d=a.Q(),e=d.id;e!=n&&(e=e.split("::"),1>=e.length||(e=e[e.length-1],e!=ls.eF&&e!=ls.fF||(d=this.ex(d,this.h()),d!=n&&(d=M.Na(d,e==ls.eF?ls.tL:ls.uL),d=w.fa().getElementById(d),d!=n&&(b?H.n(d,ls.Mq):H.F(d,ls.Mq))))))};u.ja=t(l);z.a("AdfDhtmlPanelTabbedPeer.prototype.needsResizeNotify",{ja:ls.prototype.ja});
ls.prototype.Ia=function(a,b,d){if(a!=d)if(this.NK()){if(d=Bt(this,this.d()),a=this.FK(),!a.style.width){b=p;var e=F.c.Ma().Oa();if("left"==d||"start"==d&&!e||"end"==d&&e)b=l;d=this.NK();b?a.style.left=d.offsetWidth+"px":a.style.right=d.offsetWidth+"px"}}else if("ellipsis"==this.d().getTruncationStyle()){D.i.finer("Available width for tabs changed from "+a+" to "+d);b=this.d();d=Bt(this,b);if("above"==d||"both"==d)e=M.g(b.e(),ls.yt),Ct(this,e,a,l);if("below"==d||"both"==d)b=M.g(b.e(),ls.mV),Ct(this,
b,a,p)}else this.xQ(d)};z.a("AdfDhtmlPanelTabbedPeer.prototype.ResizeNotify",{Ia:ls.prototype.Ia});ls.prototype.xQ=function(a){var b=this.d(),d=Bt(this,b);if("above"==d||"both"==d){var e=M.g(b.e(),ls.yt),f=this.kd(e,this.GO);this.EH(e,f,a,l)}if("below"==d||"both"==d)b=M.g(b.e(),ls.mV),d=this.kd(b,this.jO),this.EH(b,d,a,p)};function Ct(a,b,d,e){if(!a.NK()){var f=e?a.GO:a.jO,g=a.kd(b,f);0!=g.length&&a.vba(d,f.offsetWidth,b,g,e)}}
ls.prototype.Z=function(a){this.LP();delete this.Tb;delete this.GO;delete this.fX;delete this.jO;delete this.jta;delete this.ita;F.c.Nm(a);ls.f.Z.call(this,a)};z.a("AdfDhtmlPanelTabbedPeer.prototype.ComponentRemoved",{Z:ls.prototype.Z});function Dt(a,b,d,e){a=new Oi(b,a,"both",e);for(b=0;b<d.length;b++)e=d[b],1==e.nodeType&&(a.un(),a.addElement(e),a.lp(Et(e)));return a}
function Ft(a,b,d,e){a=new Oi(b,a,"droplist",e);b=[];for(e=0;e<d.length;e++){var f=d[e];1==f.nodeType&&(a.un(),a.addElement(f),"none"!=f.style.display&&(a.lp(Et(f)),b.push(Et(f))))}a.vu(b);return a}function Gt(a,b,d){a=new ki(b,a);var e=[];b=M.g(b,"cbs");for(var f=0;f<d.length;f++){var g=d[f];1==g.nodeType&&g.getAttribute("id")!=b&&"none"!=g.style.display&&e.push(Et(g))}a.vu(e);return a}ls.ila=function(){return ls.Lya};v("AdfDhtmlPanelTabbedPeer.GetRecentTabClientId",ls.ila);ls.wla=function(){return ls.Mya};
v("AdfDhtmlPanelTabbedPeer.IsRecentTabOnTheBelowBar",ls.wla);ls.D4=function(a,b){ls.Lya=a;ls.Mya=b};v("AdfDhtmlPanelTabbedPeer.SetRecentTabInfo",ls.D4);ls.prototype.Gt=function(a,b,d,e,f){d=M.g(b,d);if(d=w.fa().getElementById(d))H.td(f,d,"p_AFSelected"),b=M.g(b,e),(b=w.fa().getElementById(b))&&"inline"!=a.getIconDelivery()&&(f?this.$c(b,a,a.getDepressedIcon()):this.$c(b,a,a.getIcon()))};
ls.prototype.KE=function(a,b){var d=a!=n;if(!d&&!this.AE()||a.getDisclosed()==l){var e=this.d();if("immediate"==e.getContentDelivery())F.c.Dg()?(d&&(d=a.e(),this.Gt(a,d,ls.tL,ls.F4,p),this.Gt(a,d,ls.uL,ls.G4,p),d=a.k(),d.bind(a),d.h().parentNode.style.display="none",a.setDisclosed(p),this.aQ(e,n)),b&&(d=b.k(),d.bind(b),d.h().parentNode.style.display="",d=b.e(),this.Gt(b,d,ls.tL,ls.F4,l),this.Gt(b,d,ls.uL,ls.G4,l),b.setDisclosed(l),this.aQ(e,b.e())),F.c.lh(e)):D.i.warning("PanelTabbed contentDelivery\x3dimmediate is not supported outside of attachment mode. Disclose ability is disabled while in this state.");
else{if(d)return e=a.k(),e.bind(a),e.hD(p,l,b);e=b.k();e.bind(b);return e.hD(l,l)}}else D.i.severe("Unexpected panelTabbed showDetailItem disclosure state for queueing client events")};z.a("AdfDhtmlPanelTabbedPeer.prototype.QueueClientDisclosureChanges",{KE:ls.prototype.KE});ls.prototype.AE=t(l);z.a("AdfDhtmlPanelTabbedPeer.prototype.IsDisclosedTabRequired",{AE:ls.prototype.AE});
function Et(a){var b=w.b,d=b.getAttribute(a,ls.qt),e=a.getElementsByTagName("a")[0],f=a.getElementsByTagName("a")[1],g=a.getElementsByTagName("img")[0],h=F.c.u(),m;g&&(g=g.cloneNode(l),g.id&&(g.id+=ls.Aw));e&&-1==e.className.indexOf("p_AFDisabled")?(e=e.cloneNode(l),e.id&&(e.id+=ls.Aw),e.FH=d,b.Gg(e,ls.Zna,"1"),m=ls.Nta,m==n&&(m="conveyorBelt"==ls.zj?h.getStyleClass("AFConveyorBeltElement"):h.getStyleClass("AFOverflowElement"),ls.Nta=m)):(m=e.innerHTML,e=a.ownerDocument.createElement("div"),e.innerHTML=
m,m=ls.eTa,m==n&&(m="conveyorBelt"==ls.zj?h.getStyleClass("AFConveyorBeltElementDisabled"):h.getStyleClass("AFOverflowElementDisabled"),ls.eTa=m));f&&(f=f.cloneNode(l),f.id&&(f.id+=ls.Aw));h=a.ownerDocument.createElement("table");h.cellPadding=0;h.cellSpacing=0;h.style.width="100%";var q=h.insertRow(-1);b.setAttribute(q,ls.qt,d);b=q.insertCell(-1);g&&b.appendChild(g);g=q.insertCell(-1);g.style.width="100%";b=a.ownerDocument.createElement("div");b.className=m;g.appendChild(b);b.appendChild(e);e=q.insertCell(-1);
f&&(a=a.ownerDocument.createElement("div"),a.className=m,e.appendChild(a),a.appendChild(f));return h}ls.prototype.Ex=function(){var a=this.Hh!=n?this.Hh:this.Xg;a&&(ls.C9=a.b0());this.LP()};ls.prototype.kd=function(a,b){for(var d=b.childNodes,e=[],f="conveyorBelt"==ls.zj,g=f?M.g(a,"cbs"):n,h=d.length,m=0;m<h;m++){var q=d[m];1==q.nodeType&&!(f&&q.getAttribute("id")==g)&&e.push(q)}return e};
ls.prototype.ex=function(a,b){B.p(a);var d=a,e=w.fa();if(d==n||1!=d.nodeType)return n;for(var f=e.getAttribute(d,ls.qt);f==n;){if(d==n||d==b)return n;d=d.parentNode;if(d==n||1!=d.nodeType)return n;f=e.getAttribute(d,ls.qt)}return f};ls.prototype.rq=function(){var a=w.fa(),b=n;this.eC?b=a.getAttribute(this.eC,ls.nl):(b=a.getAttribute(this.Tb,ls.nl),b==n&&(b=a.getAttribute(this.fX,ls.nl)));return F.c.j(b)};z.a("AdfDhtmlPanelTabbedPeer.prototype.GetOldDisclosedChild",{rq:ls.prototype.rq});u=ls.prototype;
u.aQ=function(a,b){var d=w.fa();this.eC?d.setAttribute(this.eC,ls.nl,b):d.getAttribute(this.Tb,ls.nl)==n?d.setAttribute(this.fX,ls.nl,b):d.setAttribute(this.Tb,ls.nl,b)};
function zt(a,b){var d=F.c.j(b);if(d.getDisabled()||d.getRemove&&(d=d.getRemove())&&("no"==d||"disabled"==d))return p;d=a.d().getTabRemoval();if("none"==d)return p;if("all"==d)return l;if("allExceptLast"==d){var d=w.fa(),e=a.d(),f=[],g=Bt(a,e),h="above"==g||"both"==g?a.GO:a.jO,e="above"==g||"both"==g?M.g(e.e(),ls.yt):M.g(e.e(),ls.mV);if(a.h()){h=a.kd(e,h);for(e=0;e<h.length;e++)1==h[e].nodeType&&(g=d.getAttribute(h[e],ls.qt),(g=F.c.j(g))&&f.push(g))}return 1<f.length}D.i.warning("Unexpected panelTabbed tabRemoval type: "+
d);return p}u.bba=function(a,b){var d=M.Na(a,ls.xNa),e=M.Na(a,ls.yNa);if(b.id&&-1<b.id.lastIndexOf(d)||-1<b.id.lastIndexOf(e))return l;var f=b.parentNode.id;return f&&(-1<f.lastIndexOf(d)||-1<f.lastIndexOf(e))};u.sO=function(a){a=a.getAttribute("id");a=M.g(a,ls.F7);return w.b.getElementById(a)};u.fx=function(a){a=a.getAttribute("id");a=M.g(a,ls.RL);return w.b.getElementById(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.EH=function(a,b,d,e){d=ls.zj;"overflow"==d?e?(this.dn||(this.dn=Dt(this,a,b,"after")),this.dn&&this.dn.Nf()):(this.Zm||(this.Zm=Dt(this,a,b,"before")),this.Zm&&this.Zm.Nf()):"overflow-droplist"==d?e?(this.dn||(this.dn=Ft(this,a,b,"after")),this.dn&&this.dn.Nf()):(this.Zm||(this.Zm=Ft(this,a,b,"before")),this.Zm&&this.Zm.Nf()):"conveyorBelt"==d&&(e?(this.Hh||(this.Hh=Gt(this,a,b),this.Xg&&(this.Xg.RJ(this.Hh),this.Hh.RJ(this.Xg))),this.Hh&&this.Hh.Nf()):(this.Xg||(this.Xg=Gt(this,a,b),this.Hh&&(this.Xg.RJ(this.Hh),
this.Hh.RJ(this.Xg))),this.Xg&&this.Xg.Nf()))};u.saa=function(){"conveyorBelt"==ls.zj?(this.Hh&&this.Hh.Nf(),this.Xg&&this.Xg.Nf()):(this.dn&&this.dn.kD(),this.Zm&&this.Zm.kD())};u.LP=function(){this.dn&&(this.dn.lv(l),this.dn=n);this.Zm&&(this.Zm.lv(l),this.Zm=n);this.Hh&&(this.Hh.UR(),this.Hh=n);this.Xg&&(this.Xg.UR(),this.Xg=n)};u.Uj=function(){return M.Na(this.d().e(),ls.era)};z.a("AdfDhtmlPanelTabbedPeer.prototype.getContainerId",{Uj:ls.prototype.Uj});