AdfUIComponents.createComponentClass("AdfRichPivotTable",{componentType:"oracle.dss.adf.pivotTable.PivotTable",propertyKeys:[{name:"pivotEnabled",type:"boolean","default":A_b},{name:"pivotLabelVisible",type:"boolean","default":A_b},{name:"sizing",type:"String","default":"fixed"},{name:"splitRow",type:"int"},{name:"splitColumn",type:"int"},{name:"startRow",type:"int"},{name:"startColumn",type:"int"},{name:"secondStartRow",type:"int"},{name:"secondStartColumn",type:"int"},{name:"rowHeaderStartLayer",
type:"int"},{name:"columnHeaderStartLayer",type:"int"},{name:"contextMenuId",type:"String"},{name:"bodyContextMenuId",type:"String"},{name:"startRowPixel",type:"int"},{name:"startColumnPixel",type:"int"},{name:"secondStartRowPixel",type:"int"},{name:"secondStartColumnPixel",type:"int"},{name:"rowHeaderStartPixel",type:"int"},{name:"columnHeaderStartPixel",type:"int"},{name:"selection",type:"String"},{name:"modelName",type:"String"},"activeCellKey"],eventNames:["rangeChange"],namingContainer:A_b,superclass:AdfUIObject});
AdfRichPivotTable.If="_sizeOverrides";AdfRichPivotTable.Ff="_clientBlocks";AdfRichPivotTable.QE="_databodySizes";AdfRichPivotTable.UE="_rowHeaderWidths";AdfRichPivotTable.PE="_columnHeaderHeights";AdfRichPivotTable.av="splitRow";AdfRichPivotTable.$u="splitColumn";AdfRichPivotTable.Sl="startRow";AdfRichPivotTable.Rl="startColumn";AdfRichPivotTable.Jp="secondStartRow";AdfRichPivotTable.Ip="secondStartColumn";AdfRichPivotTable.Zi="rowHeaderStartLayer";AdfRichPivotTable.Xi="columnHeaderStartLayer";
AdfRichPivotTable.dv="startRowPixel";AdfRichPivotTable.cv="startColumnPixel";AdfRichPivotTable.Zu="secondStartRowPixel";AdfRichPivotTable.Yu="secondStartColumnPixel";AdfRichPivotTable.$i="rowHeaderStartPixel";AdfRichPivotTable.Yi="columnHeaderStartPixel";AdfRichPivotTable.Ta="selection";AdfRichPivotTable.Xc="_activeCellKey";
AdfRichPivotTable.prototype.GetChanges=function(){var a=AdfRichPivotTable.superclass.GetChanges.call(this),b=a[AdfRichPivotTable.If];if(b){var c=AdfRichPivotTable.If;this.getPeer();var d="",e;for(e in b)b.hasOwnProperty(e)&&(d+=e+":"+b[e]+",");a[c]=d;this.getPeer();this.setProperty(AdfRichPivotTable.If,A_a)}var b=AdfRichPivotTable.Ff,c=this.getPeer(),d=[],f,g,h;if(c.fa)for(var l=c.Le[1];2>l;++l){e=c.ih[1][l];f=Math.min(c.Sp[1],c.Of[1][l]-e);for(var m=c.Le[0];2>m;++m)g=c.ih[0][m],h=Math.min(c.Sp[0],
c.Of[0][m]-g),g=[e,f,g,h],d.push(g)}else for(var n=c.b.i,p=c.b.N,q=c.b.Ga,v=c.b.na,l=n[1];2>l;++l)for(var u=p[l],w=q[l],r=w.length,m=n[0];2>m;++m)for(var x=u[m],s=v[m],z=s.length,A=0;A<r;++A)for(var G=x[A],B=0;B<z;++B)G[B]&&(e=c.b.getIntAttribute(w[A],"_startSlice"),f=c.b.getIntAttribute(w[A],"_numSlices"),g=c.b.getIntAttribute(s[B],"_startSlice"),h=c.b.getIntAttribute(s[B],"_numSlices"),g=[e,f,g,h],d.push(g));a[b]=d;a[AdfRichPivotTable.Xc]=this.getProperty(AdfRichPivotTable.Xc);a.activeCellKey=this.getProperty("activeCellKey");
if(b=a[AdfRichPivotTable.Ta])c=[],A_Li(this,b,c),a[AdfRichPivotTable.Ta]=c.join(AdfRichPivotTable.Lu);if(!this.getPeer().fa){b=AdfRichPivotTable.QE;c=this.getPeer().b;d=AdfAgent.getAgent();e="";f="Rows:";l=A_c;for(m=1;0<=m;--m){0==m&&(f="Columns:",l=A_b);for(n=c.i[m];2>n;++n){e+=f;p=c.T[m][n];q=p.length;for(v=0;v<q;v++)u=p[v],e+=d.getAttribute(u,"_startSlice")+":"+A_Ch(l,u)+":";e+=";"}}a[b]=e;a[AdfRichPivotTable.UE]=A_Eh(this.getPeer().b);a[AdfRichPivotTable.PE]=A_Fh(this.getPeer().b);A_Di(this.getPeer().b);
a[AdfRichPivotTable.Zi]=this.getProperty(AdfRichPivotTable.Zi);a[AdfRichPivotTable.$i]=this.getProperty(AdfRichPivotTable.$i);a[AdfRichPivotTable.Xi]=this.getProperty(AdfRichPivotTable.Xi);a[AdfRichPivotTable.Yi]=this.getProperty(AdfRichPivotTable.Yi)}return a};A_h("AdfRichPivotTable.prototype.GetChanges",AdfRichPivotTable.prototype.GetChanges);AdfRichPivotTable.prototype.ty=function(){return this.getProperty("pivotEnabled")};A_h("AdfRichPivotTable.prototype.getPivotEnabled",AdfRichPivotTable.prototype.ty);
AdfRichPivotTable.prototype.wn=function(){return this.getProperty("pivotLabelVisible")};A_h("AdfRichPivotTable.prototype.getPivotLabelVisible",AdfRichPivotTable.prototype.wn);
function A_Li(a,b,c){if(b==A_)c.push(AdfRichPivotTable.Iu);else if(b.constructor==Array){c.push(AdfRichPivotTable.Gu);for(var d=0;d<b.length;++d)A_Li(a,b[d],c);c.push(AdfRichPivotTable.Hu)}else if(b.constructor==String)c.push(b);else if("object"==typeof b){c.push(AdfRichPivotTable.Ju);for(d in b)b.hasOwnProperty(d)&&(c.push(d),A_Li(a,b[d],c));c.push(AdfRichPivotTable.Ku)}else c.push(b)}AdfRichPivotTable.Lu="$1!";AdfRichPivotTable.Iu="$2!";AdfRichPivotTable.Gu="$3!";AdfRichPivotTable.Hu="$4!";
AdfRichPivotTable.Ju="$5!";AdfRichPivotTable.Ku="$6!";AdfRichPivotTable.prototype.IJ=function(a,b,c){a=A_Wg(this.getPeer(),a+":"+b);return a!=A_?c!=A_a?AdfPage.PAGE.findComponent(a.id+":"+c):new A_Mi(a):A_};A_h("AdfRichPivotTable.prototype.getCellComponent",AdfRichPivotTable.prototype.IJ);AdfRichPivotTable.prototype.RJ=function(a){var b=a.getValue();if(b==A_){a=A_tf(this.getPeer(),a.getPeer().getDomElement());for(var c=0;c<a.length&&!(b=a[c].pb,b!=A_);c++);}return b};
A_h("AdfRichPivotTable.prototype.getComponentValue",AdfRichPivotTable.prototype.RJ);AdfRichPivotTable.Lu="$1!";AdfRichPivotTable.Iu="$2!";AdfRichPivotTable.Gu="$3!";AdfRichPivotTable.Hu="$4!";AdfRichPivotTable.Ju="$5!";AdfRichPivotTable.Ku="$6!";function A_Mi(a){this.Lh=a}A_h("AdfRichDataCell",A_Mi);AdfObject.createSubclass(A_Mi);
A_Mi.prototype.setInlineStyle=function(a){this.Lh.style.cssText=a;a=this.Lh.style.backgroundColor;if(a!=A_){var b=this.Lh[AdfDhtmlPivotTablePeer.Ng];b==A_&&(b=AdfAgent.AGENT.getAttribute(this.Lh,AdfDhtmlPivotTablePeer.Ng));b!=A_&&(b=AdfDhtmlPivotTablePeer.lR(a),this.Lh[AdfDhtmlPivotTablePeer.Ng]=b)}};A_Mi.prototype.setInlineStyle=A_Mi.prototype.setInlineStyle;
A_Mi.prototype.getDescendantComponents=function(a){if(a==A_a||a==A_)a=[];for(var b=AdfPage.PAGE,c=this.Lh.childNodes,d=0;d<c.length;d++)if(c[d].id){var e=b.findComponent(c[d].id);e!=A_&&a.push(e)}return a};A_Mi.prototype.getDescendantComponents=A_Mi.prototype.getDescendantComponents;