_9ce.js 3.8 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( [ "_og4", "_44b" ],function ( _og4, _44b ) { "use strict";function _9ce(_waf, _8ri, _d78, _wfc){var _fci=_waf.parentElement.classList.contains("q-div");if(_fci){_waf.parentElement.style.display="block";_waf.style.display="inline-block";}else{_waf.style.display="block";}this._7we=_waf;this._ot7=_d78;this._ttb=_wfc;this._g3i=_8ri;this._lpk=true;this._v3n=_8ri.getAttribute("roid");this._nrk=_erh._9kl(this._v3n).getAttribute("type");this._kca=_og4._1em(this._nrk, true).then(this._nme.bind(this));this._vij={ _et9: this._et9.bind(this)};_og4._q0g(this._vij);};_9ce.prototype._et9=function(_cui){if(_cui.id==this._nrk){var _0um=Q.defer();this._kca.then(function(_b9l){ if(_b9l){_b9l._fdm(); }else{this._7we.innerHTML="";}_0um.resolve(this._nme(_cui));}.bind(this)).done();this._kca=_0um.promise;}};_9ce.prototype._fdm=function(){_og4._hab(this._vij);this._kca.then(function(_b9l){ if(_b9l){ _b9l._fdm(); } }).done();};_9ce.prototype._loh=function(){return this._lpk;};_9ce.prototype._tqh=function(_3zk){this._lpk=_3zk;};_9ce.prototype._wfn=function(){this._kca.then(function(_b9l){ if(_b9l){ _b9l._tem(false, true); } }).done();};_9ce._8p1=function(_7en,_p8h){if(!_9ce._gt7){_9ce._gt7={};}var _r15=_9ce._gt7[ _7en ]={};var nl=_p8h.selectNodes("vcDataSets/vcDataSet[@refDataStore]");for(var i=0;i<nl.length;i++){var _74l=nl.item(i);var _m5f=_9ce._hv3(_74l);var _vua=_7hn._x5g(_74l, "dsFilters/dsFilter[@rollupFilter='false']/dsFilterDefinition/*");var _9va=_7hn._x5g(_74l, "dsFilters/dsFilter[@rollupFilter='true']/dsFilterDefinition/*");_r15[ _74l.getAttribute("idDataSet")]={"refDataStore": _74l.getAttribute( "refDataStore" ),"query": {dsProjections: _m5f,dsDetailFilters: _vua.length?_4y9._m5b(_vua):null,dsRollupFilters: _9va.length?_4y9._m5b(_9va):null}};}return _r15;};_9ce._ld7=function(_7en,_d78){var _0zi=JSON.stringify(_9ce._gt7[ _7en ]);var _j6k=_9ce._8p1(_7en, _erh._9kl(_7en));if(JSON.stringify(_j6k)===_0zi){return false;}_d78._033(_7en, _j6k);return true;};_9ce.prototype._nme=function(_97m){if(_97m.SDKConnectionFail){var _xtn=new _ece();_54b._qo9("", _erh._9kl(this._v3n), _xtn, null, _97m.SDKConnectionFail, false, _97m);this._7we.innerHTML=_xtn._fkk();this._7we.setAttribute("_eoc", "false");return false;} else if(_97m.unavailable||!_97m._27g(_erh._9kl(this._v3n))){this._7we.style.overflow="hidden";this._7we.innerHTML=_9l8._cj8(this._2hb(_97m));_frh._gn9(this._7we);this._7we.setAttribute("_eoc", "false");return false;}else{return new _44b(this._7we, this._g3i, this._ot7, this._ttb, _97m, _erh._9kl(this._v3n), this._loh.bind(this));}};_9ce.prototype._2hb=function(_97m){var _xtn=new _ece();_xtn._uzm( "<div style='text-align:center; height:100%; display:flex; flex-direction: column;'>" );_xtn._uzm( "<div style='background-image: url(images/visualizations/placeholders/unknownError_128.svg); background-size:contain; background-repeat:no-repeat; background-position:center; flex-grow:100; height: 100%;'><br/><br /><br /></div>");if(_97m.unavailable){_xtn._uzm( "<div style='font-weight:bold; padding:8px;' HAL_ids='IDS_VIZDEF_UNAVAILABLE_TITLE'></div>");_xtn._uzm( "<div style='padding:8px;' HAL_ids='IDS_VIZDEF_UNAVAILABLE_DETAIL'></div>");}else{_xtn._uzm( "<div style='font-weight:bold; padding:8px;' HAL_ids='IDS_VIZDEF_STALE_TITLE'></div>");_xtn._uzm( "<div style='padding:8px;' HAL_ids='IDS_VIZDEF_STALE_DESCRIPTION'></div>");}_xtn._uzm("</div>");return _xtn._fkk();};_9ce._hv3=function(_74l){var _m5f=[];var _i3k=_74l.selectNodes(".//*[@refDsColumn]");for(var j=0;j<_i3k.length;j++){var n=_i3k.item(j);_m5f.push({refDsColumn: n.getAttribute("refDsColumn"),rollupMethod: n.getAttribute("rollupMethod")});}return _m5f;};return _9ce;});