var Tr=M.U(M,"AdfDhtmlPanelCollectionPeer",p);v("AdfDhtmlPanelCollectionPeer",Tr);
Tr.m=function(){this.a5="_ahTp";this.Y4="_ahBt";this.Rma="_ahCt";this.Kma="_afrAC";this.uKa="_afrHCC";this.Em="_clmCxt";this.m7a="_tbrSpr";this.f6="_frzMn";this.P7="_ufzMn";this.qoa="_frzTbr";this.H5="_dchMn";this.I5="_dchTbr";this.hV="_srtAsc";this.iV="_srtDsc";this.rOa="_srtAvd";this.ENa="_rdrMn";this.gqa="_rszClm";this.Xpa="_qbeTbr";this.Wpa="_qbeMn";this.Ira="_wrpMn";this.Jra="_wrpTbr";this.fQa="_vw";this.q5="_clmns";this.XHa="_shwAll";this.r5="_shwClm";this.YHa="_shwMr";this.TNa="_rwSctT";this.SNa=
"_rwSctC";this.WHa="_clmHdnT";this.VHa="_clmHdnC";this.UHa="_clmFrzT";this.THa="_clmFrzC";this.coa="_xpdItm";this.aoa="_xpdBlw";this.gna="_cpsBlw";this.PJa="_xpdAll";this.RHa="_cpsAll";this.Mqa="_shwTp";this.roa="_goTp";this.uqa="_sclFst";this.vqa="_sclLst";this.Nqa="_shwTpTbr";this.toa="_upTbr";this.soa="_tpTbr";this.bIa="_afrClmWMn";this.qU="_afrSortDialog";this.Kna="sortDlg";this.J5="_afrShowColsDialog";this.Ina="_afrReorderDialog";this.Jna="_afrResizeColDialog";this.kOa="_shwClmDS";this.rf="_PCPop";
this.Rqa="_srtDlgC";this.uOa="_srtDlgR";this.apa=3;this.MNa="_rszDSpn";this.LNa="_rszDSct1";this.Ena="_dchDlgC";this.Fna="_dchDlgW";this.G5="_dchDlgP";this.S4=this.o5=this.p5=this.j7=n;M.ha(this,bb.Lc,ab.ga,Rb.qo,Cf.s4,ic.Iq,Ub.HE);var a=this.O4={},b=Tr.prototype;a[this.f6]=b.P_;a[this.P7]=b.vS;a[this.qoa]=b.eja;a[this.H5]=a[this.I5]=b.detach;a[this.hV]=b.Sia;a[this.iV]=b.Uia;a[this.rOa]=b.Ria;a[this.ENa]=b.Wha;a[this.Xpa]=b.c2;a[this.Wpa]=b.c2;a[this.gqa]=b.nD;a[this.Ira]=a[this.Jra]=b.rja;a[this.XHa]=
b.Kia;a[this.r5]=b.Mia;a[this.YHa]=b.Pia;a[this.coa]=b.nfa;a[this.aoa]=b.mfa;a[this.gna]=b.Rea;a[this.PJa]=b.lfa;a[this.RHa]=b.Qea;a[this.Mqa]=b.Z1;a[this.roa]=b.x0;a[this.uqa]=b.gia;a[this.vqa]=b.hia;a[this.Nqa]=b.Z1;a[this.toa]=b.Oga;a[this.soa]=b.x0};v("AdfDhtmlPanelCollectionPeer.InitSubclass",Tr.m);Tr.prototype.Init=function(a,b){Tr.f.Init.call(this,a,b);this.Rc=n;this.fwa=this.naa=this.Nwa=this.eba=this.Vwa=this.wX=p};z.a("AdfDhtmlPanelCollectionPeer.prototype.Init",{Init:Tr.prototype.Init});
Tr.prototype.MEa=function(){this.Bs();this.zD()};z.a("AdfDhtmlPanelCollectionPeer.prototype.toolboxRefreshNotify",{MEa:Tr.prototype.MEa});
Tr.prototype.nx=function(){if(!this.Nwa){var a=this.Rc;a||(a=this.h().getAttribute(Tr.Kma),a=this.Rc=F.c.j(a));var b=a instanceof AdfRichTable,d=a instanceof AdfRichTreeTable,e=a instanceof AdfRichTree;this.Vwa=e;this.wX=b||d;this.eba=d||e;e||(b=a.getColumnSelection(),b!=n&&(b=b.toLowerCase()),this.naa=b!=n&&("single"==b||"multiple"==b),a=a.getRowSelection(),a!=n&&(a=a.toLowerCase()),this.fwa=a!=n&&-1!=a.toLowerCase().indexOf("multiple"));this.Nwa=l;a=this.d();a.r("_afrDetached")&&Ur(this,a)}};
Tr.prototype.Yha=function(){var a=this.h().getAttribute(Tr.Kma);this.Rc=F.c.j(a)};z.a("AdfDhtmlPanelCollectionPeer.prototype.resetState",{Yha:Tr.prototype.Yha});
Tr.prototype.zD=function(){this.nx();if(this.wX){var a=F.c,b=this.Rc,d=b.k(),e=this.d().e(),f=d.Vq(),g=0<f.length,h,m;h=a.j(e+":"+Tr.hV);m=a.j(e+":"+Tr.iV);if(h&&m){var q=p;if(g)for(d=f.length-1;0<=d;--d){var s=f[d];if(s&&s.getSortProperty()&&s.getSortable()){q=l;break}}else for(var y=d.sg(),d=y.length-1;0<=d;--d)if((s=y[d])&&s.getSortProperty()&&s.getSortable()){q=l;break}q?(h.getParent().setProperty("disabled",p,p,J.Ta),Vr(f,h,m)):h.getParent().setProperty("disabled",l,p,J.Ta)}if(this.naa){h=a.u();
if(g)a:{if(this.eba){b=b.k().kR();for(m=0;m<f.length;m++)if(f[m]==b){b=l;break a}}b=p}else b=p;m=b;var q=Wr(this,f),A,b=a.j(e+":"+Tr.gqa);(s=a.j(e+":"+Tr.f6))&&(A=a.j(e+":"+Tr.P7));d=a.j(e+":"+Tr.qoa);if(s){var C=this.eb();s.setProperty("disabled",q,p,J.Ta);s.setProperty("visible",!C,p,J.Ta);A.setProperty("visible",C,p,J.Ta)}d&&(d.setProperty("selected",C,p,J.Ta),A=C?h.V("af_panelCollection.TIP_BUTTON_UNFREEZE"):h.V("af_panelCollection.TIP_BUTTON_FREEZE"),d.setProperty("shortDesc",A,p,J.Ta),d.getSelected()||
d.setProperty("disabled",q,p,J.Ta));A=a.j(e+":"+Tr.Ira);a=a.j(e+":"+Tr.Jra);e=!g||m;f=!e&&!f[0].getNoWrap();A&&(A.setProperty("disabled",e,p,J.Ta),A.setProperty("selected",f,p,J.Ta));a&&(a.setProperty("disabled",e,p,J.Ta),a.setProperty("selected",f,p,J.Ta),f=f?h.V("af_panelCollection.TIP_BUTTON_UNWRAP"):h.V("af_panelCollection.TIP_BUTTON_WRAP"),a.setProperty("shortDesc",f,p,J.Ta));b&&b.setProperty("disabled",!g,p,J.Ta)}}};
z.a("AdfDhtmlPanelCollectionPeer.prototype.updateStandardMenuToolbarItems",{zD:Tr.prototype.zD});function Wr(a,b){var d=a.Rc,e=d.k(),f=b.length;if(!(0<f))return l;var g=e.sg();if(2>g.length)return l;if(1==f)if("end"==d.getFreezeDirection()){if(b[0]==g[0])return l}else if(b[0]==g[g.length-1])return l;d=b[f-1];f=Xr(d,e);return f!=n&&(e=d.k().h(),d=f.k().h(),f=w.b,f.Sa(d,"_d_index",-1)+parseInt(d.colSpan)-1!=f.Sa(e,"_d_index",-1))?l:p}
function Xr(a,b){for(var d=n,e=b.xV(a);e!=n;)d=e,e=b.xV(e);return d}Tr.prototype.eb=function(){return Yr(this.Rc)!=n};function Yr(a){a=a.k();for(var b=a.sg(),d=b.length,e=0;e<d;e++){var f=b[e];if(f){if(f&&f.getFrozen())return f;f=Xr(f,a);if(f!=n){if(f.getFrozen())return f;f=f.k().h();e+=parseInt(f.colSpan)-1}}}return n}
function Vr(a,b,d){if(1==a.length&&(a=a[0],a.getSortProperty()&&a.getSortable())){b.setProperty("disabled",p,p,J.Ta);d.setProperty("disabled",p,p,J.Ta);a=V.zV(a.e());a==l?(b.setProperty("selected",l,p,J.Ta),d.setProperty("selected",p,p,J.Ta)):a==p?(d.setProperty("selected",l,p,J.Ta),b.setProperty("selected",p,p,J.Ta)):(b.setProperty("selected",p,p,J.Ta),d.setProperty("selected",p,p,J.Ta));return}b.setProperty("selected",p,p,J.Ta);b.setProperty("disabled",l,p,J.Ta);d.setProperty("selected",p,p,J.Ta);
d.setProperty("disabled",l,p,J.Ta)}
Tr.prototype.mja=function(){this.nx();if(!this.Vwa){for(var a=this.Rc.k(),b=a.sg(),d=0,e=0,e=b.length-1;0<=e;e--){var f=b[e];if(f)if(f.getFrozen())d++;else if(0<d&&!f.getRowHeader())d++;else if(f=Xr(f,a),f!=n){var g=f.k().h(),g=parseInt(g.colSpan),e=e-(g-1);f.getFrozen()&&(d+=g)}}Zr(a)&&(d=a.sg().length-d+1);e=a.h().getAttribute(Tr.uKa);a=this.d().e();b=F.c;this.wX&&(f=b.j(a+":"+Tr.UHa),g=b.j(a+":"+Tr.THa),f&&(Tr.o5||(Tr.o5=f.getValue()),f.setProperty("value",0<d?Tr.o5:"",p,J.Ta)),g&&(0<d?g.setProperty("value",
d.toString(),p,J.Ta):g.setProperty("value","",p,J.Ta)));f=b.j(a+":"+Tr.WHa);g=b.j(a+":"+Tr.VHa);f&&(Tr.p5||(Tr.p5=f.getValue()),f.setProperty("value",0<e?Tr.p5:"",p,J.Ta));g&&(0<e?g.setProperty("value",e.toString(),p,J.Ta):g.setProperty("value","",p,J.Ta))}};z.a("AdfDhtmlPanelCollectionPeer.prototype.updateStandardStatusbarItems",{mja:Tr.prototype.mja});
Tr.prototype.Bs=function(){this.nx();var a=this.Rc,b=p,d=0,e=n,f=a.getSelectedRowKeys(),g;for(g in f){if(g==V.Ji){b=f[V.Ji];break}0==d&&(e=g);d++}if(this.fwa){f=b;g=d;var h=F.c,m=this.d().e(),q=h.j(m+":"+Tr.TNa),m=h.j(m+":"+Tr.SNa);q&&(Tr.j7||(Tr.j7=q.getValue()),q.setProperty("value",f||0<g?Tr.j7:"",p,J.Ta));m&&(f?(Tr.S4||(Tr.S4=h.u().V("af_panelCollection.LABEL_STATUSBARITEM_ROWS_SELECTED_ALL")),0<g?m.setProperty("value","",p,J.Ta):m.setProperty("value",Tr.S4,p,J.Ta)):0<g?m.setProperty("value",
g.toString(),p,J.Ta):m.setProperty("value","",p,J.Ta))}if(this.eba){var s=b,y=d,A=e;this.nx();var C=this.d().e(),h=a.k(),G=F.c,K=G.j(C+":"+Tr.coa),q=G.j(C+":"+Tr.aoa),m=G.j(C+":"+Tr.gna),N=G.j(C+":"+Tr.Mqa),e=G.j(C+":"+Tr.roa),d=G.j(C+":"+Tr.uqa),b=G.j(C+":"+Tr.vqa),Q=G.j(C+":"+Tr.Nqa),f=G.j(C+":"+Tr.toa);g=G.j(C+":"+Tr.soa);var T=G.j(C+":"+Tr.Em+Tr.hV),C=G.j(C+":"+Tr.Em+Tr.iV);A&&!h.Ob(A)&&(A=n);var Y=h.Ay(),ra=G=p;if(s||A==n||1<y)K&&K.setProperty("disabled",l,p,J.Ta),T&&T.setProperty("disabled",
l,p,J.Ta),C&&C.setProperty("disabled",l,p,J.Ta),q&&q.setProperty("disabled",l,p,J.Ta),m&&m.setProperty("disabled",l,p,J.Ta),N&&N.setProperty("disabled",l,p,J.Ta),Q&&Q.setProperty("disabled",l,p,J.Ta);else{var s=A==a.getFocusRowKey(),G=h.Zu(A),y=h.dR(A),wa=h.av(),ra=a.Np(A);K&&(K.setProperty("disabled",G,p,J.Ta),K.setProperty("selected",!ra,p,J.Ta));Y&&(a=s||G||!wa&&0==y,N&&N.setProperty("disabled",a,p,J.Ta),Q&&Q.setProperty("disabled",a,p,J.Ta));if(T&&C&&(a=h.kR())&&a.getSortProperty()&&a.getSortable())T.setProperty("disabled",
p,p,J.Ta),C.setProperty("disabled",p,p,J.Ta),T.setProperty("selected",p,p,J.Ta),C.setProperty("selected",p,p,J.Ta);q&&q.setProperty("disabled",G,p,J.Ta);m&&m.setProperty("disabled",G||!ra,p,J.Ta)}a=!h.aD();e&&e.setProperty("disabled",a,p,J.Ta);g&&(g.setProperty("disabled",a,p,J.Ta),f.setProperty("disabled",a,p,J.Ta));b&&b.setProperty("disabled",p,p,J.Ta);d&&d.setProperty("disabled",p,p,J.Ta)}};z.a("AdfDhtmlPanelCollectionPeer.prototype.updateRowSelectionContext",{Bs:Tr.prototype.Bs});
Tr.prototype.Nia=function(a,b){this.nx();if(this.wX){var d=this.Rc,e=d.k(),f=F.c,g=this.d().e(),h=f.j(g+":"+Tr.Em),m,q,s,y;if(h){var A=this.eb(),C=e.Vq();m=f.j(g+":"+Tr.Em+Tr.hV);q=f.j(g+":"+Tr.Em+Tr.iV);(s=f.j(g+":"+Tr.Em+Tr.f6))&&(y=f.j(g+":"+Tr.Em+Tr.P7));s&&(s.setProperty("disabled",Wr(this,C),p,J.Ta),s.setProperty("visible",!A,p,J.Ta),y.setProperty("visible",A,p,J.Ta));if(m){f=l;for(g=C.length-1;0<=g;g--)if(s=C[g],s.getSortProperty()&&s.getSortable()){f=p;break}f?m.getParent().setProperty("disabled",
l,p,J.Ta):(m.getParent().setProperty("disabled",p,p,J.Ta),Vr(C,m,q))}e.ZJ(a,h.e(),n,b,n,d.e())}}};z.a("AdfDhtmlPanelCollectionPeer.prototype.showColumnContextMenu",{Nia:Tr.prototype.Nia});Tr.prototype.gi=function(a){var b=a.getSource().e(),d=Tr.O4,e;for(e in d)if(0<=b.indexOf(e)){d[e].call(this,a);a.cancel();a.dc();break}};z.a("AdfDhtmlPanelCollectionPeer.prototype.HandleComponentAction",{gi:Tr.prototype.gi});
Tr.prototype.Kia=function(){var a=new Cf(this.Rc,n,"showAll");F.c.Up(a);$r(this,l);as(this,"all")};z.a("AdfDhtmlPanelCollectionPeer.prototype.showAllColumns",{Kia:Tr.prototype.Kia});
function $r(a,b,d){var e=F.c,f=a.d().e();if(!a.Jta){var g=w.b.getAttribute(a.h(),Tr.bIa);a.Jta=eval(g)}a=a.Jta;var g=Tr.r5,h=Tr.Em,m=e.j(f+":"+Tr.Em);m&&e.jc(m);if(a)for(m=a.length-1;0<=m;--m){var q=a[m],s=f+":"+g+q,y=e.j(s),s=f+":"+h+g+q,s=e.j(s);y!=n&&(q=b||-1!=ya.indexOf(d,q),y.setSelected(q),e.jc(y),s!=n&&(s.setSelected(q),e.jc(s)))}}
Tr.prototype.Mia=function(a){var b=F.c,d=this.d().e(),e=a.getSource().e(),f=Tr.r5,g=e.substr(e.indexOf(f)+f.length),g=g.replace(/_afrSep_/g,":"),h=this.Rc;a=h.j(g);h=new Cf(h,h.e()+":"+g,a?"hide":"show");b.Up(h);d=0<=e.indexOf(Tr.Em)?d+":"+f+g:d+":"+Tr.Em+f+g;if(b=b.j(d))b.setSelected(a==n),F.c.jc(b);as(this,a?"hide":"show")};z.a("AdfDhtmlPanelCollectionPeer.prototype.showColumn",{Mia:Tr.prototype.Mia});
function as(a,b){var d;if("multiple"!=b){var e=a.Rc.k().sg();d=e.length;for(var f=0;f<d;++f){var g=e[f];if(g&&g.getRowHeader()){--d;break}}}switch(b){case "show":if(1!=d)return;break;case "hide":if(2!=d)return;break;case "all":if(2<=d)return}d=a.d().e();(d=F.c.j(d+":"+Tr.fQa))&&F.c.jc(d)}Tr.prototype.eja=function(){this.eb(this.Rc)?this.vS():this.P_()};z.a("AdfDhtmlPanelCollectionPeer.prototype.toggleFreeze",{eja:Tr.prototype.eja});
Tr.prototype.P_=function(){var a=this.Rc,b=a.k();this.eb(a)&&this.vS();for(var d=n,e=b.sg(),f=e.length,g=f-1;d==n&&0<=g;){var h=e[g];h&&(h.getSelected()&&g!=f-1)&&(d=h);g--}d!=n&&(b=Xr(d,b),b!=n&&(d=b),d.setProperty(AdfRichColumn.FROZEN,l,l),F.c.jc(a))};z.a("AdfDhtmlPanelCollectionPeer.prototype.freezeColumns",{P_:Tr.prototype.P_});Tr.prototype.vS=function(){var a=this.Rc;frozenColumn=Yr(a);frozenColumn!=n&&(frozenColumn.setProperty(AdfRichColumn.FROZEN,p,l),F.c.jc(a))};
z.a("AdfDhtmlPanelCollectionPeer.prototype.unfreezeColumns",{vS:Tr.prototype.vS});Tr.prototype.rh=function(){return this.d().r("_afrDetached")};z.a("AdfDhtmlPanelCollectionPeer.prototype.isDetached",{rh:Tr.prototype.rh});Tr.prototype.Z=function(a){if(a.r("_afrDetached")){this.yXa=l;var b=F.c,d=bs(this);b.th(d)}Tr.f.Z.call(this,a)};z.a("AdfDhtmlPanelCollectionPeer.prototype.ComponentRemoved",{Z:Tr.prototype.Z});
function bs(a){var b=w.b;if(a.Rc.k().dj()){var d=a.d().e();a=a.w().createElement("div");a.style.cssText="position:absolute;width:100%;height:100%";var e=M.g(d,Tr.a5),e=b.getElementById(e),f=M.g(d,Tr.Rma),f=b.getElementById(f),d=M.g(d,Tr.Y4),b=b.getElementById(d);e&&a.appendChild(e);f&&a.appendChild(f);b&&a.appendChild(b)}else for(a=a.h().firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}Tr.prototype.Z7=function(){return Tr.a5};
z.a("AdfDhtmlPanelCollectionPeer.prototype.__getAutoHeightTopFacetId",{Z7:Tr.prototype.Z7});Tr.prototype.Y7=function(){return Tr.Y4};z.a("AdfDhtmlPanelCollectionPeer.prototype.__getAutoHeightBottomFacetId",{Y7:Tr.prototype.Y7});Tr.prototype.detach=function(){var a=this.d();a.r("_afrDetached")?this.ob(a,Tr.G5):(a.setProperty("_afrDetached",l,p,l),Ur(this,a))};z.a("AdfDhtmlPanelCollectionPeer.prototype.detach",{detach:Tr.prototype.detach});
function Ur(a,b){var d=b.e(),e=M.g(d,Tr.Ena),f=w.b,g=F.c;if(e=f.getElementById(e)){for(var h=e.firstChild;h&&1!=h.nodeType;)h=h.nextSibling;var e=a.Rc.k(),m=e.FM(),q=bs(a),s=a.h(),y=M.g(d,Tr.Fna),y=f.getElementById(y);y.className=s.className;s=h.id;B.s(s);s=g.j(s);B.J(s,AdfRichPanelWindow);var A=f.getWindowWidth(),f=f.getWindowHeight();s.setContentWidth(Math.max(100,A-60));s.setContentHeight(Math.max(100,f-80));y.appendChild(q);f=F.c.Ma().Oa()?6:1;q={};q.mousePosition={x:f,y:1};q.modal=l;a.fe(b,h,
q,Tr.G5);e.dj()&&(e.KF(p),g.Xl(e.h(),l));h=g.j(d+":"+Tr.I5);d=g.j(d+":"+Tr.H5);h&&(h.setSelected(l),g=g.u().V("af_panelCollection.TIP_BUTTON_REDUCE"),h.setShortDesc(g));d&&d.setSelected(l);m!=n&&e.EV(m.x,m.y)}}
Tr.prototype.Va=function(a,b,d){Tr.f.Va.call(this,a,b);var e=w.b,f="true"==b.getAttribute(vg.DM);if(d==Tr.G5){d=this.Rc.k();var g=d.FM(),h=F.c,m=a.e(),q=this.d(),s=this.Rc.k().dj(),y=w.b,A=q.e(),q=this.h(),C=M.g(A,Tr.Fna),C=y.getElementById(C);if(s){var s=M.g(A,Tr.a5),s=y.getElementById(s),G=M.g(A,Tr.Rma),G=y.getElementById(G),A=M.g(A,Tr.Y4);(y=y.getElementById(A))&&q.insertBefore(y,q.firstChild);G&&q.insertBefore(G,q.firstChild);s&&q.insertBefore(s,q.firstChild);C.removeChild(C.firstChild)}else q.insertBefore(C.firstChild,
q.firstChild);y=this.h();q=M.g(m,Tr.Ena);e.getElementById(q).appendChild(b);f||(b=h.j(m+":"+Tr.I5),(e=h.j(m+":"+Tr.H5))&&e.setSelected(p),b&&(b.setSelected(p),e=h.u().V("af_panelCollection.TIP_BUTTON_DETACH"),b.setShortDesc(e)),this.yXa||a.setProperty("_afrDetached",p,p,l),d.dj()?(d.KF(p),d.ea().style.height="auto",h.Xl(d.h(),l)):h.Xl(y,p),g!=n&&d.EV(g.x,g.y),b&&(b.getParent()&&w.b.G()==w.aa)&&F.c.jc(b.getParent()))}};z.a("AdfDhtmlPanelCollectionPeer.prototype.PopupClosed",{Va:Tr.prototype.Va});
function cs(a,b){a.nx();var d=a.Rc,e;e=d.k().sg();for(var f=n,g=e.length,h=0;h<g;h++){var m=e[h];if(m&&m.getSelected()){f=m;break}}if(e=f)if(f=e.getSortProperty())B.pc(b),V.zV(e.e())!=b&&ds.qs(d,f,b)}Tr.prototype.Sia=function(){cs(this,l)};z.a("AdfDhtmlPanelCollectionPeer.prototype.sortAscending",{Sia:Tr.prototype.Sia});Tr.prototype.Uia=function(){cs(this,p)};z.a("AdfDhtmlPanelCollectionPeer.prototype.sortDescending",{Uia:Tr.prototype.Uia});Tr.prototype.Ria=function(){es(this,Tr.qU)};
z.a("AdfDhtmlPanelCollectionPeer.prototype.sortAdvanced",{Ria:Tr.prototype.Ria});Tr.prototype.Wha=function(){es(this,Tr.Ina)};z.a("AdfDhtmlPanelCollectionPeer.prototype.reorderColumns",{Wha:Tr.prototype.Wha});Tr.prototype.Pia=function(){es(this,Tr.J5)};z.a("AdfDhtmlPanelCollectionPeer.prototype.showMoreColumns",{Pia:Tr.prototype.Pia});function es(a,b){var d=a.d(),e=d.e(),f=F.c,d=new Xf(d,b);f.Up(d);a.wx=b;f.j(e+":"+Tr.rf).show()}
Tr.prototype.c2=function(){var a=this.Rc,b=this.d().e(),d=F.c,e=!a.getFilterVisible();a.setProperty(AdfRichTable.FILTER_VISIBLE,e,l);d.jc(a);var f=new Vb(a);e||f.aS(l);a.Fg(f);a=d.j(b+":"+Tr.Xpa);b=d.j(b+":"+Tr.Wpa);a.setSelected(e);b&&b.setSelected(e)};z.a("AdfDhtmlPanelCollectionPeer.prototype.showQBE",{c2:Tr.prototype.c2});Tr.prototype.nD=function(){es(this,Tr.Jna)};z.a("AdfDhtmlPanelCollectionPeer.prototype.resizeColumn",{nD:Tr.prototype.nD});
Tr.prototype.qm=function(){if(n!=this.wx&&this.wx==Tr.qU){var a=this.d().e()+":"+Tr.Kna;F.c.j(a).k().MM(a,l)}};z.a("AdfDhtmlPanelCollectionPeer.prototype.HandleComponentPopupOpening",{qm:Tr.prototype.qm});Tr.prototype.jk=function(){if(n!=this.wx&&this.wx==Tr.qU){for(var a=this.d().e(),b=F.c,d=Tr.apa,e=p,f=0;f<d;++f){var g=b.j(a+":"+Tr.Rqa+f);g!=n&&g.getValue()&&(e=l)}a=a+":"+Tr.Kna;b.j(a).k().MM(a,!e)}};z.a("AdfDhtmlPanelCollectionPeer.prototype.HandleComponentValueChange",{jk:Tr.prototype.jk});
Tr.prototype.Yv=function(){delete this.wx};z.a("AdfDhtmlPanelCollectionPeer.prototype.HandleComponentPopupClosed",{Yv:Tr.prototype.Yv});
Tr.prototype.qf=function(a){if(n!=this.wx){var b=l;if(a.Xj()==ab.fl){var d=this.wx;if(d==Tr.qU){for(var d=this.d().e(),e=F.c,f=[],g=[],h=Tr.apa,m=0;m<h;++m){var q=e.j(d+":"+Tr.Rqa+m);if(q!=n&&q.getValue()){var s=e.j(d+":"+Tr.uOa+m);f.push(q.getValue());g.push("Ascending"==s.getValue())}}ds.qs(this.Rc,f,g)}else if(d==Tr.J5||d==Tr.Ina)h=this.Rc,e=this.d().e(),d=F.c,f=d.j(e+":"+Tr.kOa).getSubmittedValue(),g=this.wx==Tr.J5,h=new Cf(h,f,g?"showColumns":"reorderColumns"),d.Up(h),g?($r(this,p,f),as(this,
"multiple")):(e=d.j(e+":"+Tr.q5))&&d.jc(e);else if(d==Tr.Jna){var e=this.Rc.k(),f=this.d().e(),g=F.c,b=f+":"+Tr.MNa,d=g.j(b),y=g.j(f+":"+Tr.LNa),f=d.getValue(),g=e.Vq(),h=g.length,m=p,q=1,s=1E3,y=y.getValue();if("Pixel"==y)q=d.r("_rszDSpnMinPix"),f<q&&(m=l);else if("Percent"==y&&(s=100,f<q||f>s))m=l;if(m)F.c.ff(b),e=TrFastMessageFormatUtils.format(d.r("_rszDSpnErrDtl"),n,n,q,s),d=new Ea(Ea.Ef,d.r("_rszDSpnErrMsg"),e),F.c.rn(b,d,p),F.c.Tn(b),b=p;else{F.c.ff(b);"Percent"==y&&(f=e.yV(f));for(b=0;b<h;b++)f=
Math.max(f,g[b].getMinimumWidth());for(b=0;b<h;b++)g[b].setProperty(AdfRichColumn.WIDTH,f,l);b=l}}a.cancel();b&&(a=this.d().e(),F.c.j(a+":"+Tr.rf).rb())}}};z.a("AdfDhtmlPanelCollectionPeer.prototype.HandleComponentDialog",{qf:Tr.prototype.qf});Tr.prototype.rja=function(){for(var a=this.Rc,b=a.k().sg(),d=[],e=b.length,f=0;f<e;f++){var g=b[f];g&&g.getSelected()&&d.push(g)}for(var h,e=d.length,f=0;f<e;f++)g=d[f],0==f&&(h=!g.getNoWrap()),g.setProperty(AdfRichColumn.NO_WRAP,h,l),F.c.jc(a)};
z.a("AdfDhtmlPanelCollectionPeer.prototype.wrapColumns",{rja:Tr.prototype.rja});Tr.prototype.nla=function(a){if("reorderColumn"==a.Bga()){var b=this.d().e();a=F.c;var d=a.j(b+":"+Tr.q5);d&&(this.naa?(b=a.j(b+":"+Tr.Em+Tr.q5),a.jc(d,b)):a.jc(d))}};z.a("AdfDhtmlPanelCollectionPeer.prototype.HandleComponentShowColumns",{nla:Tr.prototype.nla});
Tr.prototype.nfa=function(){var a=this.Rc,b=a.k(),d=n,e=a.getSelectedRowKeys(),f;for(f in e)if(B.assert(f!=V.Ji,"expand node cannot be invoked on selectAll"),isLeafNode=b.Zu(f),isExpanded=a.Np(f),d==n&&(d=!isExpanded),!isLeafNode)if(d&&!isExpanded){a.Wk(f,l);break}else if(!d&&isExpanded){a.Wk(f,p);break}};z.a("AdfDhtmlPanelCollectionPeer.prototype.expandNode",{nfa:Tr.prototype.nfa});Tr.prototype.mfa=function(){var a=this.Rc,b=a.k(),a=a.getSelectedRowKeys(),d;for(d in a){b.ay(d,l);break}};
z.a("AdfDhtmlPanelCollectionPeer.prototype.expandAllNodesBelow",{mfa:Tr.prototype.mfa});Tr.prototype.Rea=function(){var a=this.Rc,b=a.k(),a=a.getSelectedRowKeys(),d;for(d in a){b.ay(d,p);break}};z.a("AdfDhtmlPanelCollectionPeer.prototype.collapseAllNodesBelow",{Rea:Tr.prototype.Rea});Tr.prototype.lfa=function(){this.Rc.k().ay("",l)};z.a("AdfDhtmlPanelCollectionPeer.prototype.expandAllNodes",{lfa:Tr.prototype.lfa});Tr.prototype.Qea=function(){this.Rc.k().ay("",p)};
z.a("AdfDhtmlPanelCollectionPeer.prototype.collapseAllNodes",{Qea:Tr.prototype.Qea});Tr.prototype.Z1=function(){var a=this.Rc,b=a.k(),a=a.getSelectedRowKeys(),d;for(d in a){b.Y1(d);break}};z.a("AdfDhtmlPanelCollectionPeer.prototype.showNodeAsTop",{Z1:Tr.prototype.Z1});Tr.prototype.hia=function(){var a=this.Rc;a.setProperty("displayRow",n,p,J.Pc);a.setProperty("displayRow","last",p,J.rd)};z.a("AdfDhtmlPanelCollectionPeer.prototype.scrollToLast",{hia:Tr.prototype.hia});
Tr.prototype.gia=function(){var a=this.Rc;a.setProperty("displayRow",n,p,J.Pc);a.setProperty("displayRow","first",p,J.rd)};z.a("AdfDhtmlPanelCollectionPeer.prototype.scrollToFirst",{gia:Tr.prototype.gia});Tr.prototype.x0=function(){this.Rc.k().Y1(n)};z.a("AdfDhtmlPanelCollectionPeer.prototype.goToTopNode",{x0:Tr.prototype.x0});Tr.prototype.Oga=function(){this.Rc.k().Nga()};z.a("AdfDhtmlPanelCollectionPeer.prototype.goUpNode",{Oga:Tr.prototype.Oga});