123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var _155=new _p3b("_155");_155._jgn=function(){if(!this._09b()){var _xqm=600;var _mzl=550;var _kkn=(document.body.clientHeight / 2)-(_mzl / 2);var _v7n=(document.body.clientWidth / 2)-(_xqm / 2);this._4le(null, new _l4j(_v7n, _kkn, _v7n+_xqm, _kkn+_mzl));}};_155._src=function(){this._ow8=[];_38g._q0g(this);_erh._q0g(this);_f8j._zk3(this);};_155._bl7=function(_o5n,_ljc,_fna){var _t2k=this._uu3(_ljc);_t2k.setAttribute( "icon", this._hf5( _ljc, _t2k.getAttribute( "dataStoreType" ), _o5n, +_t2k.getAttribute( "sourceRowCount" ), _fna ) );_t2k.setAttribute( "busy", _o5n?"true":"false" );_t2k.setAttribute("clientRowCount", _fna.toString());this._ow8[+_t2k.getAttribute("treeIndex")]._3rh(_t2k);};_155._uu3=function(_ljc){_ljc=_cgm._zxc(_ljc);var _tzl=this._ow8.length;for(var i=0;i<_tzl;i++){var _h7k=this._ow8[i];var _t2k=_7hn._ij8( _h7k._cr9(), ".//treeNode[@name=" + _ljc + "]" );if(_t2k){return _t2k;}}return null;};_155._ff4=function(){var div=this._2oh("divWorkers");if(this._2oh("chkShowWorkers").checked){div.classList.add("_155_clsShowvWorkerDivs");}else{div.classList.remove("_155_clsShowvWorkerDivs");}};_155._5z2=function(){this._zw8=true;this._5pb=true;this._8hn();this._80f=new _uzf( this._2oh( "divPanes" ), this._53g( "Panes" ), this, this._m56(), this._m75() );var _d78=(_38g._g0n instanceof _rcm)?_38g._g0n._f75():null;if(_d78){_d78._512(this, this._bl7.bind(this, true), this._bl7.bind(this, false));}};_155._od7=function(){if(!this._zw8){return;}this._5pb=true;setTimeout(this._01n.bind(this), 0);};_155._3l8=function(){if(!this._zw8){return;}if(this._5pb){setTimeout(this._8hn.bind(this), 0);}var _d78=(_38g._g0n instanceof _rcm)?_38g._g0n._f75():null;if(_d78){_d78._512(this, this._bl7.bind(this, true), this._bl7.bind(this, false));}};_155._lf1=function(_nka,_ydi,_kah){if(!this._zw8||(_kah&&!_kah._jb6)){return;}this._5pb=true;setTimeout(this._01n.bind(this), 0);};_155._q32=function(){if(this._zw8){this._5pb=true;setTimeout(this._01n.bind(this), 0);setTimeout(this._8hn.bind(this), 0);}};_155._jo9=function(){this._80f._cbb("_155_Panes", this._m56(), this._m75());};_155._wl3=function(){this._3m3();var div=this._2oh("divWorkers");div.parentNode.onmouseup=this._ccj.bind(this);};_155._b65=function(){var _d78=(_38g._g0n instanceof _rcm)?_38g._g0n._f75():null;if(_d78){_d78._061(this);}};_155._o46=function(){this._zw8=false;if(this._80f){this._80f._fdm();this._80f=null;}this._2oh( "highlightStyles" ).innerHTML = "";};_155._4e1=function(){return this._80f._bg8();};_155._1q1=function(){return this._80f._jq9();};_155._a7j=function(e){if(e.keyCode==_4qn._rrh){e.stopPropagation();}};_155._y4g=function(e){this._hde();};_155._u32=function(_vpf,_u9n,_xqm,_mzl,_bla){};_155._8hn=function(){this._5pb=false;this._01n();this._gmk();};_155._01n=function(){this._ow8.forEach(function(_h7k){ _h7k._fdm(); });this._ow8.length=0;var _oei=this._2oh("divWorkers");_oei.innerHTML="";};_155._gmk=function(){if(!(_38g._g0n instanceof _rcm)){return;}var _83m=_erh._vtc();var _oei=this._2oh("divWorkers");var _d78=_38g._g0n._f75();if(!_d78){return;}var _kal=_d78._4sk;var _vzb=_kal._bh8();var _tzl=_vzb.length;for(var i=0;i<_tzl;i++){var div=_oei.appendChild(document.createElement("DIV"));div.style.marginBottom="8px";div.style.paddingLeft="8px";div.style.width="100%";div.style.borderRadius="4px";div.style.border="1px solid transparent";div.style.transitionDuration="0.2s";div.style.transitionProperty="background-color";div.innerHTML=_9l8._cj8( '<div style="padding:0 8px 0 0; color:var(--text-03); text-align:right; visibility:hidden">Worker #' + ( i + 1 ) + '</div>' );var _vxl=div.appendChild(document.createElement("DIV"));var d=_8qn._kph( null, '<treeView arrowDirection="down" iconWidth="64px" iconHeight="64px" classPrefix="clsQueryEngineDebuggerOrgTreeNode"/>' );var _u2k=d.documentElement;var _04e=_vzb[i];for(var _98n=0;_98n<_04e._jfm.length;_98n++){var _3cn=_04e._jfm[_98n];var _k25=_3cn._nh4;var _ita=this._l71(d, _u2k, i, _k25, _kal);_ita.setAttribute("name", _k25._i0n);_ita.setAttribute( "dataStoreType", "source" );_ita.setAttribute( "refQuery", _4y9._6fe( _83m, _k25._i0n ).selectSingleNode( "dsSource/dsV5ListQuery/@refQuery" ).value );_ita.setAttribute( "tooltip", "Weight=" + _3cn._wml );_ita.setAttribute("sourceRowCount", _k25._m9j.toString());_ita.setAttribute( "icon", this._hf5( _k25._i0n, "source", false, _k25._m9j, NaN ) );}var _h7k=new _tzf(_vxl, _u2k, this);_h7k._8le=i;this._ow8.push(_h7k);}_d78._bp9().done(function(_4vi){if(!this._zw8){return;}for(var _vdn in _4vi){var _t2k=this._uu3(_vdn);var _o5n=( _t2k.getAttribute( "busy" )=="true" );var _fna=_t2k.getAttribute("clientRowCount")?NaN:_4vi[_vdn];_t2k.setAttribute( "icon", this._hf5( _vdn, _t2k.getAttribute( "dataStoreType" ), _o5n, +_t2k.getAttribute( "sourceRowCount" ), _fna ) );this._ow8[+_t2k.getAttribute("treeIndex")]._3rh(_t2k);}}.bind(this));};_155._hf5=function(_vdn,_pen,_o5n,_roa,_fna){var _vpj=(_pen=="source");var _6pn='<svg xmlns="http://www.w3.org/2000/svg" fill="rgb(37, 64, 97)" height="64px" width="64px" viewBox="-1 -1 55 55">';var _2dn=_vpj?'37, 64, 97':( ( _pen=="control" )?'255, 255, 255':'163, 196, 255' );_6pn += '<path stroke="rgb(37, 64, 97)" fill="rgb(' + _2dn + ')" d="M50.455,8L50.455,8C49.724,3.538,39.281,0,26.5,0S3.276,3.538,2.545,8l0,0H2.5v0.5V20v0.5V21v11v0.5V33v12h0.045c0.731,4.461,11.175,8,23.955,8s23.224-3.539,23.955-8H50.5V33v-0.5V32V21v-0.5V20V8.5V8H50.455z"/>';if(_vpj){_6pn += '<text text-anchor="middle" x="26" y="47" font-family="Verdana" font-size="8" fill="white">' + ( new Intl.NumberFormat().format( _roa ) ) + '</text>';}_6pn += '<ellipse stroke="rgb(37, 64, 97)" fill="rgba(127, 171, 218, ' + ( _vpj?'0.3':'0.1' ) + ')" cx="26.5" cy="9.0" rx="24" ry="8.5"/>';if(!isNaN(_fna)){_6pn +=('<text text-anchor="middle" x="26" y="' + ( _vpj?'38':'42' ) + '" font-family="Verdana" font-size="8" fill="' + ( _vpj?'#CCCCCC':'#808080' ) + '">' + ( new Intl.NumberFormat().format( _fna ) ) + '</text>' );}if(_o5n){_6pn += '<circle fill="#5AA700" stroke="white" cx="47" cy="9" r="6"/>';}var _ytg=!!_7hn._ij8( _erh._vtc(), "reportDataStore/reportDataStore[@name=" + _cgm._zxc( _vdn ) + "]/dsFilters" );if(_ytg){_6pn+='<svg viewBox="0 0 32 32" x="21" y="' + ( _vpj?'19':'21' ) + '" height="12" width="12">' +'<path fill="' + ( _vpj?'#CCCCCC':'#808080' ) + '" d="M31,1H1v4l12,12v14l6-6v-3.379C19.733,22.459,20.798,23,22,23c2.21,0,4-1.79,4-4s-1.79-4-4-4 c-0.423,0-0.822,0.083-1.205,0.205L31,5V1z M24,19c0,1.103-0.898,2-2,2c-1.103,0-2-0.897-2-2s0.897-2,2-2C23.102,17,24,17.897,24,19z M17.586,15.586L17,16.171V17v7.171l-2,2V17v-0.829l-0.586-0.585L3.829,5h24.343L17.586,15.586z"/>' +'</svg>';}_6pn+= '</svg>';return "data:image/svg+xml," + encodeURIComponent(_6pn);};_155._l71=function(d,_bxb,_98n,_gfc,_kal){var _su5=!_gfc._tfm;var _t2k=_bxb.appendChild(d.createElement("treeNode"));_t2k.setAttribute("name", _gfc._i0n);if(_su5){var n=_erh._9kl(_gfc._i0n.substr(_gfc._i0n.lastIndexOf("i")));_t2k.setAttribute( "label", n.getAttribute( "name" )||n.nodeName );_t2k.setAttribute("roid", _gfc._mf7);}else{_t2k.setAttribute("label", _gfc._i0n);}var _pen=_su5?"control":"derived";_t2k.setAttribute("icon", this._hf5(_gfc._i0n, _pen, false, NaN, NaN));_t2k.setAttribute("treeIndex", _98n.toString());_t2k.setAttribute("dataStoreType", _pen);for(var _vdn in _gfc._tfm){this._l71(d, _t2k, _98n, _gfc._tfm[_vdn], _kal);}return _t2k;};_155._fg4=function(_h7k,_t2k,_zdf){var _fff=_h7k?_h7k._8le:-1;this._3q5=_t2k?_fff:-1;this._ow8.forEach(function(_h7k,i){ if(_h7k._8le!=_fff){ _h7k._rn9(true); } });var _tnn="";if(_t2k){var nl=_7hn._x5g(_t2k, "descendant-or-self::treeNode[@roid]/@roid");var _0mm=[];var _tzl=nl.length;for(var i=0;i<_tzl;i++){_0mm.push( "#idWorkareaPane [roid=" + nl.item( i ).value + "]" );}if(_tzl){_tnn=_0mm.join( "," ) + " {outline:3px dashed var(--RS-OUTLINE-SELECTION-COLOR);}";}}this._2oh("highlightStyles").innerHTML=_9l8._cj8(_tnn);};_155._7k2=function(_h7k,_t2k,_zdf){};_155._ccj=function(e){if(e.button==_4qn._he7){if(_4qn._84g(e, this._2oh("divWorkers"))){if(this._3q5>=0){if(!this._hfd){this._hfd=new _3ce(this._53g("MenuPopupSet"), this);}this._hfd._pxc("_155_mnuPopup", e.clientX, e.clientY);}else{this._ez9();}}}};_155._ez9=function(){this._ow8.forEach(function(_h7k){ _h7k._rn9(true); });};_155._c72=function(_52e,_uni){return(this._3q5>=0)?this._ow8[this._3q5]._5r9():null;};_155._qx=function(_52e,_uni){var _t2k=this._c72();this._hfd._o96( "_155_mnuGoToControl", _t2k&&_t2k.getAttribute( "roid" ) );this._hfd._o96( "_155_mnuGoToQuery", _t2k&&( _t2k.getAttribute( "dataStoreType" )=="source" ) );this._hfd._o96( "_155_mnuDownloadDataStore", _t2k&&( _t2k.getAttribute( "dataStoreType" )=="source" ) );};_155._g77=function(){var _t2k=this._c72();var _d78=_38g._g0n._f75();var _vdn=_t2k.getAttribute("name");_d78._up9(_vdn).done(function(_cpn){if(this._zw8){_4qn._l1g(_qgn._a9g+_cpn, _vdn+".json");}}.bind(this));};_155._q3g=function(){var _t2k=this._c72();if(_t2k&&_t2k.getAttribute("roid")){_ypn._d96(_erh._9kl(_t2k.getAttribute("roid")));}};_155._lxc=function(){var _t2k=this._c72();var _d78=_38g._g0n._f75();_d78._6fe(_t2k.getAttribute("name")).done(this._snk.bind(this));};_155._tu9=function(){var _t2k=this._c72();var _d78=_38g._g0n._f75();_d78._kik(_t2k.getAttribute("name")).done(this._snk.bind(this));};_155._snk=function(_8bn){if(!this._zw8){return;}_zgk._5je(true);_zgk._vll(false);_zgk._z5g(true);_zgk._lc7(true);_zgk._jgn( this._xp9(), "", "JSON", JSON.stringify( _8bn, undefined, 4 ), this );};_155._arc=function(){var _t2k=this._c72();var _d78=_38g._g0n._f75();_d78._6fe(_t2k.getAttribute("name")).done(this._7f5.bind(this));};_155._7f5=function(_8bn){if(this._zw8){_4aj._qll(JSON.stringify(_8bn));}};_155._k6j=function(){var _t2k=this._c72();_ypn._sbj( _agm._kik( _erh._vtc(), _t2k.getAttribute( "refQuery" ) ).getAttribute( "iid" ) );};
|