AdfUIComponents.createComponentClass("AdfRichPivotTable",{componentType:"oracle.dss.adf.pivotTable.PivotTable",propertyKeys:[{name:"pivotEnabled",type:"boolean","default":!0},{name:"pivotLabelVisible",type:"boolean","default":!0},{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:!0,superclass:AdfUIObject});
AdfRichPivotTable.Xf="_sizeOverrides";AdfRichPivotTable.Uf="_clientBlocks";AdfRichPivotTable.KF="_databodySizes";AdfRichPivotTable.PF="_rowHeaderWidths";AdfRichPivotTable.JF="_columnHeaderHeights";AdfRichPivotTable.Pv="splitRow";AdfRichPivotTable.Ov="splitColumn";AdfRichPivotTable.tm="startRow";AdfRichPivotTable.sm="startColumn";AdfRichPivotTable.pq="secondStartRow";AdfRichPivotTable.oq="secondStartColumn";AdfRichPivotTable.uj="rowHeaderStartLayer";AdfRichPivotTable.sj="columnHeaderStartLayer";
AdfRichPivotTable.Sv="startRowPixel";AdfRichPivotTable.Rv="startColumnPixel";AdfRichPivotTable.Nv="secondStartRowPixel";AdfRichPivotTable.Mv="secondStartColumnPixel";AdfRichPivotTable.vj="rowHeaderStartPixel";AdfRichPivotTable.tj="columnHeaderStartPixel";AdfRichPivotTable.ab="selection";AdfRichPivotTable.gd="_activeCellKey";AdfRichPivotTable.OF="_pendingCellEdits";
AdfRichPivotTable.prototype.GetChanges=function(){var a=AdfRichPivotTable.superclass.GetChanges.call(this),b=a[AdfRichPivotTable.Xf];if(b){var c=AdfRichPivotTable.Xf;this.getPeer();var d="",e;for(e in b)b.hasOwnProperty(e)&&(d+=e+":"+b[e]+",");a[c]=d;this.getPeer();this.setProperty(AdfRichPivotTable.Xf,void 0)}var b=AdfRichPivotTable.Uf,c=this.getPeer(),d=[],f,g,h;if(c.ma)for(var l=c.Ye[1];2>l;++l){e=c.xh[1][l];f=Math.min(c.yq[1],c.cg[1][l]-e);for(var m=c.Ye[0];2>m;++m)g=c.xh[0][m],h=Math.min(c.yq[0],
c.cg[0][m]-g),g=[e,f,g,h],d.push(g)}else for(var n=c.b.j,p=c.b.V,q=c.b.Pa,u=c.b.wa,l=n[1];2>l;++l)for(var v=p[l],x=q[l],w=x.length,m=n[0];2>m;++m)for(var y=v[m],r=u[m],z=r.length,C=0;C<w;++C)for(var H=y[C],D=0;D<z;++D)H[D]&&(e=c.b.getIntAttribute(x[C],"_startSlice"),f=c.b.getIntAttribute(x[C],"_numSlices"),g=c.b.getIntAttribute(r[D],"_startSlice"),h=c.b.getIntAttribute(r[D],"_numSlices"),g=[e,f,g,h],d.push(g));a[b]=d;a[AdfRichPivotTable.gd]=this.getProperty(AdfRichPivotTable.gd);a.activeCellKey=this.getProperty("activeCellKey");
if(b=a[AdfRichPivotTable.ab])c=[],A_Gi(this,b,c),a[AdfRichPivotTable.ab]=c.join(AdfRichPivotTable.yv);if(!this.getPeer().ma){b=AdfRichPivotTable.KF;c=this.getPeer().b;d=AdfAgent.getAgent();e="";f="Rows:";l=!1;for(m=1;0<=m;--m)for(0==m&&(f="Columns:",l=!0),n=c.j[m];2>n;++n){e+=f;p=c.$[m][n];q=p.length;for(u=0;u<q;u++)v=p[u],e+=d.getAttribute(v,"_startSlice")+":"+A_Fh(l,v)+":";e+=";"}a[b]=e;a[AdfRichPivotTable.PF]=A_Hh(this.getPeer().b);a[AdfRichPivotTable.JF]=A_Ih(this.getPeer().b);A_yi(this.getPeer().b);
a[AdfRichPivotTable.uj]=this.getProperty(AdfRichPivotTable.uj);a[AdfRichPivotTable.vj]=this.getProperty(AdfRichPivotTable.vj);a[AdfRichPivotTable.sj]=this.getProperty(AdfRichPivotTable.sj);a[AdfRichPivotTable.tj]=this.getProperty(AdfRichPivotTable.tj)}A_Se(this.getPeer())&&(b=A_ah(this.getPeer()),a[AdfRichPivotTable.OF]=null!=b&&0<b.length?b.join(","):"");return a};AdfRichPivotTable.prototype.GetChanges=AdfRichPivotTable.prototype.GetChanges;AdfRichPivotTable.prototype.hz=function(){return this.getProperty("pivotEnabled")};
AdfRichPivotTable.prototype.getPivotEnabled=AdfRichPivotTable.prototype.hz;AdfRichPivotTable.prototype.bo=function(){return this.getProperty("pivotLabelVisible")};AdfRichPivotTable.prototype.getPivotLabelVisible=AdfRichPivotTable.prototype.bo;
function A_Gi(a,b,c){if(null==b)c.push(AdfRichPivotTable.vv);else if(b.constructor==Array){c.push(AdfRichPivotTable.tv);for(var d=0;d<b.length;++d)A_Gi(a,b[d],c);c.push(AdfRichPivotTable.uv)}else if(b.constructor==String)c.push(b);else if("object"==typeof b){c.push(AdfRichPivotTable.wv);for(d in b)b.hasOwnProperty(d)&&(c.push(d),A_Gi(a,b[d],c));c.push(AdfRichPivotTable.xv)}else c.push(b)}AdfRichPivotTable.yv="$1!";AdfRichPivotTable.vv="$2!";AdfRichPivotTable.tv="$3!";AdfRichPivotTable.uv="$4!";
AdfRichPivotTable.wv="$5!";AdfRichPivotTable.xv="$6!";AdfRichPivotTable.prototype.yK=function(a,b,c){a=A_Wg(this.getPeer(),a+":"+b);return null!=a?void 0!=c?AdfPage.PAGE.findComponent(a.id+":"+c):new A_Hi(a):null};AdfRichPivotTable.prototype.getCellComponent=AdfRichPivotTable.prototype.yK;AdfRichPivotTable.prototype.HK=function(a){var b=a.getValue();if(null==b){a=A_nf(this.getPeer(),a.getPeer().getDomElement());for(var c=0;c<a.length&&(b=a[c].yb,null==b);c++);}return b};
AdfRichPivotTable.prototype.getComponentValue=AdfRichPivotTable.prototype.HK;AdfRichPivotTable.yv="$1!";AdfRichPivotTable.vv="$2!";AdfRichPivotTable.tv="$3!";AdfRichPivotTable.uv="$4!";AdfRichPivotTable.wv="$5!";AdfRichPivotTable.xv="$6!";function A_Hi(a){this.ci=a}A_a("AdfRichDataCell",A_Hi);AdfObject.createSubclass(A_Hi);
A_Hi.prototype.setInlineStyle=function(a){this.ci.style.cssText=a;a=this.ci.style.backgroundColor;if(null!=a){var b=this.ci[AdfDhtmlPivotTablePeer.dh];null==b&&(b=AdfAgent.AGENT.getAttribute(this.ci,AdfDhtmlPivotTablePeer.dh));null!=b&&(b=AdfDhtmlPivotTablePeer.ZR(a),this.ci[AdfDhtmlPivotTablePeer.dh]=b)}};A_Hi.prototype.setInlineStyle=A_Hi.prototype.setInlineStyle;
A_Hi.prototype.getDescendantComponents=function(a){if(void 0==a||null==a)a=[];for(var b=AdfPage.PAGE,c=this.ci.childNodes,d=0;d<c.length;d++)if(c[d].id){var e=b.findComponent(c[d].id);null!=e&&a.push(e)}return a};A_Hi.prototype.getDescendantComponents=A_Hi.prototype.getDescendantComponents;