_hzf.js 4.5 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. define([],function(){"use strict";function _hzf(_ffc, _h25){this._btb=_ffc;this._o0i=[];this._cyh=[];this._xnb=[];this._h1n=[];this._0zh=[];this._2v4=_h25;this._o0i=this._wwh(this._btb._3in);};_hzf.prototype._wwh=function(_unn){var _a4f=_unn.split("::");var _b4f=[];for(var i=0; i<_a4f.length;++i){_b4f[i]=_a4f[i].split(":");}if(_b4f&&_b4f.length&&_b4f[0].length){return _b4f;}else{return null;}};_hzf.prototype._mr1=function(){return false;};_hzf.prototype._n03=function(){return this._2v4;};_hzf.prototype._qn3=function(){return this._o0i;};_hzf.prototype._5fe=function(){if(!this._cyh.length){for(var i=0; i<this._o0i.length; i++){this._cyh[this._cyh.length]=[];for(var j=0; j<this._o0i[i].length;++j){var _3xi=this._o0i[i][j];var _79k=this._2v4.getDataItemName(_3xi);this._cyh[this._cyh.length-1].push(_79k);}}}return this._cyh;};_hzf.prototype._ag8=function(){if(!this._xnb.length){for(var i=0; i<this._o0i.length;++i){this._xnb[this._xnb.length]=[];for(var j=0; j<this._o0i[i].length;++j){var _3xi=this._o0i[i][j];var _97e="";var _jon=this._2v4.getLevelId(_3xi);var _aon=this._2v4.getHierarchyUniqueName(_3xi);if(_jon&&_jon!=""){_97e=_jon;}else if(_aon&&_aon!=""){_97e=_aon;}else{_97e=this._2v4.getQueryModelId(_3xi);}this._xnb[this._xnb.length-1].push(_97e);}}}return this._xnb;};_hzf.prototype._7kl=function(){if(!this._h1n.length){for(var i=0; i<this._o0i.length;++i){this._h1n[this._h1n.length]=[];for(var j=0; j<this._o0i[i].length;++j){var _3xi=this._o0i[i][j];this._h1n[this._h1n.length-1].push(this._2v4.getMemberUniqueName(_3xi));}}}return this._h1n;};_hzf.prototype._hge=function(){if(!this._0zh.length){for(var i=0; i<this._o0i.length;++i){this._0zh[this._0zh.length]=[];for(var j=0; j<this._o0i[i].length;++j){var _3xi=this._o0i[i][j];this._0zh[this._0zh.length-1].push(this._2v4.getUseValue(_3xi));}}}return this._0zh;};_hzf.prototype._yp9=function(){return this._btb._yp9();};_hzf.prototype._vnh=function(){return this._btb._c7b();};_hzf.prototype._xf=function(_lmn, _wnj, _9ic, _kya, _jai, _t1l, _w06){var _vha=[];var _bh9=null;if(typeof _w06==="undefined"){_bh9=(typeof _kya!="undefined")?new RegExp("(^|\\s)" + _kya + "(\\s|$)", "i"): null;}else{_bh9=_w06;}if(typeof _wnj=="string"){_wnj=[_wnj];}var _t0m=(_lmn?_wnj.length:0);for(var _p2l=0; _p2l<_t0m; _p2l++){var _vmj=null;if(_jai){if(_wnj[_p2l]=="*"&&_lmn.all){_vmj=_lmn.childNodes;}else{_vmj=[];var _92h=_lmn.childNodes;for(var i=0; i<_92h.length;++i){if(_92h[i].nodeName.toLowerCase()==_wnj[_p2l].toLowerCase()){_vmj.push(_92h[i]);}}}}else{_vmj=(_wnj[_p2l]=="*"&&_lmn.all)?_lmn.all:_lmn.getElementsByTagName(_wnj[_p2l]);}var _izl=_vmj.length;for(var idx=0; idx<_izl; idx++){var _d9l=_vmj[idx];var _hsi=_d9l.getAttribute&&_d9l.getAttribute(_9ic);if(_hsi!==null){var _1wi=null;if(typeof _hsi==="number"){_1wi=String(_hsi);}else if(typeof _hsi==="string"&&_hsi.length>0){_1wi=_hsi;}if(_1wi!==null){if(typeof _kya=="undefined"||(_bh9&&_bh9.test(_1wi))){_vha.push(_d9l);if(_t1l!=-1&&_vha.length>_t1l){return [];}else if(_t1l==1&&_vha.length==1){return _vha;}}}}}}return _vha; };_hzf.prototype._973=function(_lmn,_wnj,_9ic,_kya,_t1l,_w06){return this._xf(_lmn, _wnj, _9ic, _kya, false, _t1l, _w06);};_hzf.prototype._8pe=function(_6mm){var _uxm=null;for(var _5qm=0; _5qm<_6mm.length; _5qm++){if(_6mm[_5qm].style.visisbility!="hidden"){if(_o7g._60n){_uxm=_4qn._ofe(_6mm[_5qm]);}else{_uxm=_6mm[_5qm].textContent;}var _a7l=_6mm[_5qm].nextSibling;while(_a7l!=null){if (_a7l.nodeName.toUpperCase()=="SPAN"&&_a7l.style.visibility != "hidden"){if(_o7g._60n){_uxm+= _4qn._ofe(_a7l);}else{_uxm+= _a7l.textContent;}}_a7l=_a7l.nextSibling;}break;}}return _uxm; };_hzf.prototype._yz2=function(_unn,_g7l){var _uxm=null;var _3ni;var _bcn=new RegExp("(^|\\s)" + _unn + "(\\s|$|:)", "i");if(typeof _g7l!="undefined"){_3ni=this._973(_g7l, ["span", "td", "th"], "ctx", _unn, 1, _bcn); var _6mm;if(_3ni.length>0&&(_3ni[0].nodeName.toUpperCase()=="TD"||_3ni[0].nodeName.toUpperCase()=="TH")){_6mm=_3ni[0].childNodes;}else{_6mm=_3ni;}if(_6mm.length==0 ||(_6mm[0].className.indexOf("chart_area")==-1&&_6mm[0].className.indexOf("bux-comment")==-1)){_uxm=this._8pe(_6mm);}}return _uxm;};_hzf.prototype._oeb=function(_unn){return this._2v4.getUseValue(_unn);};_hzf.prototype._92g=function(_unn){return this._2v4.getDataType(_unn);};_hzf.prototype._sdm=function(_unn){return this._2v4.getHierarchyUniqueName(_unn);};return _hzf;});