_557.js 3.2 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 _557(_waf, _b6k){this._7we=_waf;this._vij=_b6k;}_557.prototype._fdm=function(){if(this._njj){this._njj._fdm();}};_557.prototype._uz9=function(){if(this._njj){this._njj._fdm();}var _7fk='<treeView id="SharedSetsTree" multiSelect="false" idsLoading="IDS_HAL_TV_LOADING" ensureChildrenVisible="true"></treeView>';var _u2k=_8qn._kph(undefined, _7fk).documentElement;this._njj=new _vgk(this._7we, _u2k, {_fg4:this._vij&&this._vij._25g?this._hq4.bind(this):null,_7k2:this._kq2.bind(this),_k61:this._8a1.bind(this),_dg4:this._vij&&this._vij._r4g?this._gq4.bind(this):null});return _u2k;};_557.prototype._hq4=function(_h7k,_t2k,_zdf){this._vij._25g(this._6m4(_t2k), _zdf); };_557.prototype._kq2=function(_h7k,_t2k){};_557.prototype._8a1=function(_h7k,_t2k){if(_t2k.getAttribute("nodeName")=="sharedSetsReport"){var _a4h=_erh._vtc();var _oj3=_t2k.getAttribute("storeID");_ng4._vb(_a4h.getAttribute("expressionLocale"), _agm._an3(_a4h),_oj3).then(function(_i25){if(_i25._tml===_ng4._ek2){Object.keys(_i25._gd5).forEach(function(_kzi){_i25._gd5[_kzi].forEach(function(_pum){if((!this._5in&&!this._7in)||(_pum._5in==this._5in&&_pum._7in==this._7in)){var _2qi=_8qn._u0g(_t2k, "treeNode");_2qi.setAttribute("label", _pum._xhn);_2qi.setAttribute( "name", _2qi.getAttribute( "label" ) );_2qi.setAttribute( "expandable", "false" );_2qi.setAttribute("tooltip", _pum._phg);_2qi.setAttribute("description", _pum._phg);_2qi.setAttribute( "nodeName", "sharedSet");_2qi.setAttribute( "smallSvgIcon", "def_el_shareSet" );_2qi.setAttribute("modelPath", _kzi);}},this);},this);_t2k.setAttribute("populated", "true");}else {console.warn( '_i25._tml: ', _i25._tml);}}.bind(this)).catch(function(_mmn){console.warn('catch error');this._njj._hee(false);}.bind(this)).done(function(){this._njj._hee(true);}.bind(this));return true;}return false;};_557.prototype._gq4=function(_h7k,_n9i,_zdf,e){this._vij._r4g(_n9i.map(this._6m4, this), _zdf,e);};_557.prototype._hq3=function(_r5f,_xnn,_8on){var _u2k=this._uz9();this._5in=_xnn;this._7in=_8on;_r5f.forEach(function(_k6m){var _83m =_8qn._u0g(_u2k, "treeNode");_83m.setAttribute( "nodeName", "sharedSetsReport");_83m.setAttribute("label", _k6m._f9g);_83m.setAttribute( "name", _83m.getAttribute( "label" ) );_83m.setAttribute( "smallSvgIcon", "def_el_report" );_83m.setAttribute( "expandable", "true" );_83m.setAttribute( "tooltip", _83m.getAttribute( "name" ) );_83m.setAttribute("storeID", _k6m._ilk);});this._njj._wfn();};_557.prototype._5r9=function(){if(!this._njj){return undefined;}var _lun=this._njj._5r9();if(!_lun){return undefined;}return this._6m4(_lun);};_557.prototype._6m4=function(_t2k){var _wdn=_t2k.getAttribute("nodeName");if(_wdn=="sharedSetsReport"){return {type: _wdn,storeID: _t2k.getAttribute("storeID"),name: _t2k.getAttribute("name")};}else if(_wdn=="sharedSet"){var _kxd=_t2k.parentNode;return {type: _wdn,storeID: _kxd.getAttribute("storeID"),name: _t2k.getAttribute("name")};}return undefined;};return _557;});