var Ut=I.ea(I,"AdfDhtmlPanelDashboardPeer",!1);m("AdfDhtmlPanelDashboardPeer",Ut);Ut.C=function(){this.N1="40";this.c4a=this.kDa=.5};m("AdfDhtmlPanelDashboardPeer.InitSubclass",Ut.C);Ut.prototype.G=function(a){var b=a.K("_allowedFlavors"),d=[];null!=b&&0<b.length&&(d=eval(b));a.WZ(new Dg(d))};r.a("AdfDhtmlPanelDashboardPeer.prototype.InitDomElement",{G:Ut.prototype.G});Ut.prototype.ya=function(){return!0};r.a("AdfDhtmlPanelDashboardPeer.prototype.needsResizeNotify",{ya:Ut.prototype.ya});
Ut.prototype.Sa=function(a,b,d){delete this.M3;delete this.Gia;a=d;q.b.S()==q.ia&&(d=this.i(),b=d.scrollWidth,null==a&&(a=d.offsetWidth),b>a&&(d=this.pn(),Ut.lPa||(Ut.lPa=b-a+2+"px"),A.c.Ka().La()||(d.style.right=Ut.lPa)))};r.a("AdfDhtmlPanelDashboardPeer.prototype.ResizeNotify",{Sa:Ut.prototype.Sa});Ut.prototype.ka=function(){null!=this.Be&&this.Be.stop()};r.a("AdfDhtmlPanelDashboardPeer.prototype.ComponentRemoved",{ka:Ut.prototype.ka});
Ut.prototype.nc=function(a){if(0<a.id.indexOf("optRnd")){if(null!=this.Be){var b=this.Be.stop();this.nOa&&null!=b&&2==b.length&&Vt(this,b[1],!0)}this.nOa=!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(Ut.JPa),l=n=0;l<g.length;l++)"existing"==g[l]&&(Ut.pia(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(Ut.JPa);var d=e.ownerDocument,t=n=0;for(l=0;l<g.length;l++)if("delete"!=g[l])if("placeholder"==g[l])Ut.pia(h,n)?(t++,n++):(g.splice(l,1),e.removeChild(b[l]),b=C.Dc(e),l--);else{if(Ut.pia(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=Ut.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=Ut.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=Wt(this,B);n=Xt(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];Yt(Q,K,P,d,h,n,z);"delete"==g[l]?P={element:Q,Cb:{height:Ut.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();Ut.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*Ut.kDa);B=null;Ut.G5(l)&&(B=this.f());this.Be=jj(3,z,t,null,Ut.ocb,[this,e,g,b,d,h,n,f,l,y],B)}}return a};r.a("AdfDhtmlPanelDashboardPeer.prototype.DomReplaceNotify",{nc:Ut.prototype.nc});
Ut.ocb=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),Yt(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++;Ut.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*Ut.c4a);l=null;Ut.G5(t)&&(l=b.f());b.Be=jj(3,g,a,null,Ut.V6,[b,d],l)};Ut.G5=function(a){a=I.j(a,"shim");return null!=q.b.getElementById(a)};
Ut.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}}))};
Ut.prototype.c$=function(a,b){var d=this.pn(),e=C.Dc(d),f=e.length,g=a.getColumns(),h=Wt(this,a),l=Xt(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=Ut.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],Yt(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();Ut.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*Ut.kDa);f=null;Ut.G5(e)&&(f=this.f());this.Be=jj(3,F,y,null,Ut.V6,[this,null],f)};r.a("AdfDhtmlPanelDashboardPeer.prototype.insertChildBehavior",{c$:Ut.prototype.c$});
Ut.prototype.Ui=function(a,b,d,e,f,g,h){u.s(a,Ia);u.$d(b);u.Da(d);u.$d(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"),Zt(this,a,f,null);else if(e!=b)if(d=null,null!=b){d=parseInt(b);var l=a.getColumns();b=Wt(this,a);e=Xt(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");Zt(this,
a,f,d)}else null!=e&&(C.O(g,"p_AFDropTarget"),null!=f&&(null!=this.Be&&this.Be.stop(),Ut.V6([this,null],f,parseInt(e))))};r.a("AdfDhtmlPanelDashboardPeer.prototype.showDragFeedback",{Ui:Ut.prototype.Ui});Ut.prototype.Yp=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=Wt(this,e);var e=Xt(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",{Yp:Ut.prototype.Yp});Ut.prototype.ro=function(a,b,d){u.Da(a);u.Da(b);u.assert(null!=d);var e=d[Eg.Jz],f=d[Eg.HJ],g=d[Eg.GJ];if(e&&f&&(u.J(e),u.Tc(f),a>=f.left&&b>=f.top&&a<=f.right&&b<=f.bottom)){d[Eg.wi]=e;d[Eg.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:Ut.prototype.ro});
Ut.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:Ut.prototype.nC});Ut.JPa=function(a,b){return a-b};Ut.pia=function(a,b){var d,e=a.length;for(d=0;d<e;d++)if(a[d]==b)return!0;return!1};
Ut.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=Wt(this,g),h=Xt(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[Eg.wi]=null!=e?e:null;d[Eg.ri]=ub.Fba};Ut.prototype.pn=function(){var a=this.i(),a=C.pa(a);u.u(a);return a};
r.a("AdfDhtmlPanelDashboardPeer.prototype.__getDataBody",{pn:Ut.prototype.pn});
function Zt(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=Wt(a,b),t=Xt(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;Yt(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=Ut.V6,ba=[a,
null]):null==d&&Ut.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;Ut.G5(b)&&(e=a.f());a.Be=jj(3,d,f,null,da,ba,e)}}function Yt(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 Wt(a,b){var d=a.pn(),e=C.Dc(d).length;if(a.M3&&e==a.qab)return a.M3;var f=b.getColumns();a.M3=Math.floor(d.offsetWidth/f);a.qab=e;return a.M3}function Xt(a,b){if(a.Gia)return a.Gia;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.Gia=d}
function Vt(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.Ri(f),q.b.yc(f));a.removeChild(f)}}}
Ut.V6=function(a,b,d){var e=a[0];if(e.i()){Vt(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=Ut.TJa(1/b);for(i=0;i<d;i++){var n=Ut.TJa(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();Ut.QT(null,a,b,f,d);this.nOa=!1;A.c.Xg(e)}};Ut.TJa=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+"%"};