var Wt=I.ea(I,"AdfDhtmlPanelDashboardPeer",!1);m("AdfDhtmlPanelDashboardPeer",Wt);Wt.C=function(){this.N1="40";this.f4a=this.oDa=.5};m("AdfDhtmlPanelDashboardPeer.InitSubclass",Wt.C);Wt.prototype.G=function(a){var b=a.K("_allowedFlavors"),d=[];null!=b&&0<b.length&&(d=eval(b));a.WZ(new Fg(d))};r.a("AdfDhtmlPanelDashboardPeer.prototype.InitDomElement",{G:Wt.prototype.G});Wt.prototype.ya=function(){return!0};r.a("AdfDhtmlPanelDashboardPeer.prototype.needsResizeNotify",{ya:Wt.prototype.ya});
Wt.prototype.Sa=function(a,b,d){delete this.M3;delete this.Jia;a=d;q.b.S()==q.ia&&(d=this.i(),b=d.scrollWidth,null==a&&(a=d.offsetWidth),b>a&&(d=this.pn(),Wt.qPa||(Wt.qPa=b-a+2+"px"),A.c.Ka().La()||(d.style.right=Wt.qPa)))};r.a("AdfDhtmlPanelDashboardPeer.prototype.ResizeNotify",{Sa:Wt.prototype.Sa});Wt.prototype.ka=function(){null!=this.Be&&this.Be.stop()};r.a("AdfDhtmlPanelDashboardPeer.prototype.ComponentRemoved",{ka:Wt.prototype.ka});
Wt.prototype.nc=function(a){if(0<a.id.indexOf("optRnd")){if(null!=this.Be){var b=this.Be.stop();this.sOa&&null!=b&&2==b.length&&Xt(this,b[1],!0)}this.sOa=!0;var d=q.b,e=this.pn(),b=C.Dc(e),f=b.length,g=[],h=0,l,n;for(l=0;l<f;l++)n=C.pa(b[l]),null==n||"afrPlaceholder"==n.name?(g[l]="placeholder",h++):g[l]="existing";f=d.getAttribute(a,"afrDel");if(null!=f)for(f=JSON.parse(f),f.sort(Wt.OPa),l=n=0;l<g.length;l++)"existing"==g[l]&&(Wt.ria(f,n)&&(g[l]="delete"),n++);n=C.Dc(a);f=n.length;l=parseInt(d.getAttribute(a,
"afrIns"));0<f&&(isNaN(l)||l!=f)&&v.l.severe("Error - the panelDashboard was told to expect "+l+" inserted "+(1==l?"child":"children")+" but "+f+" were sent.");if(0!=h||0!=f){h=[];for(l=0;l<f;l++)h.push(parseInt(d.getAttribute(n[l],"afrIns")));h.sort(Wt.OPa);var d=e.ownerDocument,t=n=0;for(l=0;l<g.length;l++)if("delete"!=g[l])if("placeholder"==g[l])Wt.ria(h,n)?(t++,n++):(g.splice(l,1),e.removeChild(b[l]),b=C.Dc(e),l--);else{if(Wt.ria(h,n)){g.splice(l,0,"placeholder");var y=d.createElement("div"),
z=y.style;z.position="absolute";z.overflow="hidden";z.width="1px";z.height=Wt.N1+"px";l<b.length?e.insertBefore(y,b[l]):e.appendChild(y);b=C.Dc(e);t++}n++}for(;t<f;)g.push("placeholder"),h=d.createElement("div"),n=h.style,n.position="absolute",n.overflow="hidden",n.width="1px",n.height=Wt.N1+"px",l++<b.length?e.insertBefore(h,b[l++]):e.appendChild(h),b=C.Dc(e),t++}e=[];for(l=0;l<g.length;l++)"placeholder"==g[l]&&e.push(b[l]);for(l=0;l<f;l++){d=e[l];for(h=C.pa(d);h;)d.removeChild(h),h=C.pa(d);h=C.pa(a);
n=C.pa(h);a.removeChild(h);h.removeChild(n);d.appendChild(n)}e=[];for(l=0;l<g.length;l++)"delete"==g[l]&&e.push(b[l]);var z=A.c.Ka().La(),B=this.f(),d=B.getColumns(),h=Yt(this,B);n=Zt(this,B);var F=0,t=[];if(g.length>b.length)v.l.severe("ERROR - Mismatch among metaData "+g.length+" and dataBodyChildren "+b.length);else{for(l=y=0;l<g.length;l++){var K=F%d,P=Math.floor(F/d),Q=b[l];$t(Q,K,P,d,h,n,z);"delete"==g[l]?P={element:Q,Cb:{height:Wt.N1,offsetLeft:K*h,offsetTop:P*n}}:(++y,P={element:Q,Cb:{width:h,
offsetLeft:K*h,offsetTop:P*n}});z&&(Q.style.left=Q.offsetLeft+"px",Q.style.right="auto",P.Cb.offsetLeft=(d-1-K)*h);t.push(P);F++}l=B.g();Wt.QT(t,l,d,n,y);z=parseInt(A.c.H().qa("af|panelDashboard-tr-insert-delete-animation-duration"));z=isNaN(z)?0:Math.round(z*Wt.oDa);B=null;Wt.G5(l)&&(B=this.f());this.Be=oj(3,z,t,null,Wt.pcb,[this,e,g,b,d,h,n,f,l,y],B)}}return a};r.a("AdfDhtmlPanelDashboardPeer.prototype.DomReplaceNotify",{nc:Wt.prototype.nc});
Wt.pcb=function(a){var b=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],l=a[6],n=a[7],t=a[8],y=a[9];a=[];var z=0,B=A.c.Ka().La(),F;for(F=0;F<e.length;F++){var K=f[F],P;if("delete"==e[F]){if(P={element:K,Cb:{width:1}},B){var Q=K.offsetLeft;K.style.left=Q+"px";K.style.right="auto";P.Cb.offsetLeft=Q+h}}else Q=z%g,P=Math.floor(z/g),$t(K,Q,P,g,h,l,B),P={element:K,Cb:{height:l,offsetLeft:Q*h,offsetTop:P*l}},B&&(K.style.left=K.offsetLeft+"px",K.style.right="auto",P.Cb.offsetLeft=(g-1-Q)*h),z++;a.push(P)}if(1==
n&&0==d.length)for(F=f=0;F<e.length;F++)if("placeholder"==e[F]){e=l*Math.floor(f/g);f=b.i();a.push({element:f,Cb:{scrollTop:e}});break}else"delete"!=e[F]&&f++;Wt.QT(a,t,g,l,y);g=parseInt(A.c.H().qa("af|panelDashboard-tr-insert-delete-animation-duration"));g=isNaN(g)?0:Math.round(g*Wt.f4a);l=null;Wt.G5(t)&&(l=b.f());b.Be=oj(3,g,a,null,Wt.V6,[b,d],l)};Wt.G5=function(a){a=I.j(a,"shim");return null!=q.b.getElementById(a)};
Wt.QT=function(a,b,d,e,f){b=I.j(b,"shim");b=q.b.getElementById(b);null!=b&&(d=Math.ceil(f/d)*e,null==a?b.style.height=d+"px":a.push({element:b,Cb:{height:d}}))};
Wt.prototype.d$=function(a,b){var d=this.pn(),e=C.Dc(d),f=e.length,g=a.getColumns(),h=Yt(this,a),l=Zt(this,a);-1==b&&(b=f);var n=b%g,t=Math.floor(b/g),y=d.ownerDocument,z=y.createElement("div"),B=z.style,F=t*l;B.position="absolute";B.top=F+"px";var K=A.c.Ka().La();K?(B.right="auto",B.left=(g-1-n)*h+"px"):B.left=n*h+"px";B.overflow="hidden";B.width="1px";B.height=Wt.N1+"px";b<e.length?d.insertBefore(z,e[b]):d.appendChild(z);e=C.Dc(d);n=y.createElement("div");n.name="afrPlaceholder";t=n.style;t.position=
"absolute";t.top="2px";t.bottom="2px";t.left="2px";t.right="2px";t.padding="4px";t.borderWidth="1px";t.borderStyle="solid";t.borderColor="#CCCCCC";z.appendChild(n);n.appendChild(y.createTextNode(" "));y=[];y.push({element:z,Cb:{width:h}});for(z=1+b;z<=f;z++)n=z%g,t=Math.floor(z/g),d=e[z],$t(d,n,t,g,h,l,K),t={element:d,Cb:{offsetLeft:n*h,offsetTop:t*l}},K&&(d.style.left=d.offsetLeft+"px",d.style.right="auto",t.Cb.offsetLeft=(g-1-n)*h),y.push(t);e=a.g();Wt.QT(y,e,g,l,1+f);f=this.i();y.push({element:f,
Cb:{scrollTop:F}});F=parseInt(A.c.H().qa("af|panelDashboard-tr-insert-delete-animation-duration"));F=isNaN(F)?0:Math.round(F*Wt.oDa);f=null;Wt.G5(e)&&(f=this.f());this.Be=oj(3,F,y,null,Wt.V6,[this,null],f)};r.a("AdfDhtmlPanelDashboardPeer.prototype.insertChildBehavior",{d$:Wt.prototype.d$});
Wt.prototype.Vi=function(a,b,d,e,f,g,h){u.s(a,Ia);u.ae(b);u.Da(d);u.ae(e);f=a.kf().f();a=this.f();f=this.nC(f,!0);g=I.j(a.g(),"drpt");g=q.b.getElementById(g);if(h&&d==Ia.Ob)C.O(g,"p_AFDropTarget"),au(this,a,f,null);else if(e!=b)if(d=null,null!=b){d=parseInt(b);var l=a.getColumns();b=Yt(this,a);e=Zt(this,a);var n=Math.max(0,d%l);h=n*b;var t=Math.max(0,Math.floor(d/l))*e;A.c.Ka().La()&&(h=(l-1-n)*b);l=g.style;l.width=b+"px";l.height=e+"px";l.left=h+4+"px";l.top=t+4+"px";C.w(g,"p_AFDropTarget");au(this,
a,f,d)}else null!=e&&(C.O(g,"p_AFDropTarget"),null!=f&&(null!=this.Be&&this.Be.stop(),Wt.V6([this,null],f,parseInt(e))))};r.a("AdfDhtmlPanelDashboardPeer.prototype.showDragFeedback",{Vi:Wt.prototype.Vi});Wt.prototype.Zp=function(a){if(null==a)return null;var b=this.pn(),d=C.Dc(b).length;a=parseInt(a);if(a<d){var e=this.f(),f=e.getColumns(),d=a%f,f=Math.floor(a/f);a=Yt(this,e);var e=Zt(this,e),d=d*a,f=f*e,g=q.b.rd(b);g.left+=d-b.scrollLeft;g.right=g.left+a;g.top+=f-b.scrollTop;g.bottom=g.top+e;return g}return null};
r.a("AdfDhtmlPanelDashboardPeer.prototype.getRowKeyBounds",{Zp:Wt.prototype.Zp});Wt.prototype.ro=function(a,b,d){u.Da(a);u.Da(b);u.assert(null!=d);var e=d[Lg.Jz],f=d[Lg.HJ],g=d[Lg.GJ];if(e&&f&&(u.J(e),u.Uc(f),a>=f.left&&b>=f.top&&a<=f.right&&b<=f.bottom)){d[Lg.wi]=e;d[Lg.ri]=g;return}e=!0;f=A.c.Dg();null!=f&&(f=f.kf().f(),g=this.f(),f.getParent()==g&&(e=!1));this.QF(a,b,d,e)};r.a("AdfDhtmlPanelDashboardPeer.prototype.getRowKeyAndOrientationFromHints",{ro:Wt.prototype.ro});
Wt.prototype.nC=function(a,b){var d=this.pn(),d=C.Dc(d),e=d.length,f=a.g();if(b||this.D4!=f){this.D4=f;for(var g=null,h=0;h<e;h++){var l=C.pa(d[h]);if(l&&f==q.b.getAttribute(l,"id")){g=h;break}}return this.TU=g}return this.TU};r.a("AdfDhtmlPanelDashboardPeer.prototype.getDraggedSourceChildIndex",{nC:Wt.prototype.nC});Wt.OPa=function(a,b){return a-b};Wt.ria=function(a,b){var d,e=a.length;for(d=0;d<e;d++)if(a[d]==b)return!0;return!1};
Wt.prototype.QF=function(a,b,d,e){u.Da(a);u.Da(b);var f=this.pn();var g=this.f(),h=q.b;if(h.yd(this.i(),a,b)){a=a-document.documentElement.scrollLeft-h.Wc(f)+f.scrollLeft;b=b-h.Ld(f)+f.scrollTop;var l=Yt(this,g),h=Zt(this,g),g=g.getColumns();a=Math.floor(a/l);A.c.Ka().La()&&(a=g-1-a);g=Math.floor(b/h)*g+a;f=C.Dc(f).length;e||f--;e=""+Math.min(f,g)}else e=null;d[Lg.wi]=null!=e?e:null;d[Lg.ri]=ub.Hba};Wt.prototype.pn=function(){var a=this.i(),a=C.pa(a);u.u(a);return a};
r.a("AdfDhtmlPanelDashboardPeer.prototype.__getDataBody",{pn:Wt.prototype.pn});
function au(a,b,d,e){null!=a.Be&&a.Be.stop();var f=a.pn(),g=C.Dc(f),h=g.length;if(0!=h){for(var f=[],l=b.getColumns(),n=Yt(a,b),t=Zt(a,b),y=null==e,z=0;z<h;z++){var B=g[z],F={};z==d&&(B.style.display=y?"":"none");if(z!=d){var K=z;y||(null!=d&&K>d&&K--,K>=e&&K++);var P=K%l,K=Math.floor(K/l),Q=A.c.Ka().La();Q?(B.style.left=B.offsetLeft+"px",B.style.right="auto",F.offsetLeft=(l-1-P)*n):F.offsetLeft=P*n;$t(B,P,K,l,n,t,Q);F.offsetTop=K*t}f[z]={element:B,Cb:F}}var da,ba;b=b.g();null==e?(da=Wt.V6,ba=[a,
null]):null==d&&Wt.QT(f,b,l,t,h+1);d=parseInt(A.c.H().qa("af|panelDashboard-tr-reorder-animation-duration"));isNaN(d)&&(d=0);e=null;Wt.G5(b)&&(e=a.f());a.Be=oj(3,d,f,null,da,ba,e)}}function $t(a,b,d,e,f,g,h){g*=d;a.offsetTop!=g&&(d=a.style,d.top=g+"px",b>=Math.floor(e/2)?h?(a.style.right="auto",d.left=-f+"px"):d.left=e*f+"px":h?(a.style.right="auto",d.left=e*f+"px"):d.left=-f+"px")}
function Yt(a,b){var d=a.pn(),e=C.Dc(d).length;if(a.M3&&e==a.sab)return a.M3;var f=b.getColumns();a.M3=Math.floor(d.offsetWidth/f);a.sab=e;return a.M3}function Zt(a,b){if(a.Jia)return a.Jia;var d=b.getRowHeight(),e=d.replace(/[0-9]/g,"");if("px"==e)d=parseInt(d.substring(0,d.length-e.length));else if(d=a.pn(),d=C.Dc(d),0<d.length)d=d[0].offsetHeight;else return 20;return a.Jia=d}
function Xt(a,b,d){if(null!=b){a=a.pn();var e;for(e=0;e<b.length;e++){var f=b[e];d||(A.c.Si(f),q.b.yc(f));a.removeChild(f)}}}
Wt.V6=function(a,b,d){var e=a[0];if(e.i()){Xt(e,a[1],!1);var f=e.pn();null!=b&&b!=d&&(a=C.Dc(f),b=a[b],f.removeChild(b),a=C.Dc(f),d<a.length?f.insertBefore(b,a[d]):f.appendChild(b),b.style.display="");a=C.Dc(f);d=a.length;e=e.f();b=e.getColumns();var g=e.getRowHeight(),h=g.replace(/[0-9]/g,""),f=parseFloat(g.substring(0,g.length-h.length)),l=Wt.YJa(1/b);for(i=0;i<d;i++){var n=Wt.YJa(i%b/b),t=a[i].style;t.top=f*Math.floor(i/b)+h;A.c.Ka().La()?(t.left="auto",t.right=n):t.left=n;t.height=g;t.width=l}a=
e.g();Wt.QT(null,a,b,f,d);this.sOa=!1;A.c.Xg(e)}};Wt.YJa=function(a){a=""+100*a;var b=a.length,d=a.indexOf(".");-1!=d&&d<b-2&&(a=a.substring(0,d+3));return a+"%"};