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.
- define(["_6k3",'_o8j','_o9g','_j52',"_wh4",'_og4','_s0d',"text!res/_c57.xml","text!reportstyles/VidaChartTypes.json","haljs!_aaj.js"], function(_6k3,_o8j,_o9g,_j52,_wh4,_lyc,_s0d,_bk9,_r2b){"use strict";function _c57(_6mn, _zwg, _b6k){this._whn=_6mn;this._9in=this._whn.getAttribute('iid');var _dvk=_wh4._h97(_6mn);this._ajm=_dvk.length>0?_dvk[0]: null;this._3ig=_zwg;this._vij=_b6k;_o8j._7gn().then(this._2gn.bind(this)).catch(this._fol.bind(this)).done();};_c57.prototype._fol=function(_mmn){this._d91(false);if(_mmn){_vzm._ozm(_mmn);}};_c57.prototype._u2f="v2";_c57.prototype._s14=_qkk._qik("VisGalleryFetchCount")||10;_c57.prototype._2gn=function(){if(!this._6ig){_c57.prototype._6ig=_8qn._dhe(_bk9);}this._3ig.setAttribute('id', "_c57");var _ozj=_7hn._ij8(this._6ig.cloneNode(true), '//listView[@id="_uc1"]');this._qjj=new _pgk(this._3ig, _ozj, {_pe4: this._vij&&this._vij._l7g&&this._vij._l7g.bind(this),_oi2: this._3uh.bind(this)});var _lsn=_j52._ezm(this._whn);this._2m1=_j52._ix(this._whn);_s0d._03(this._qjj);if(!_c57.prototype._qea){_c57.prototype._qea=JSON.parse(_r2b);}_dnl._s5g('halsvg!images/visualizations/viz_icons.svg').done(this._ii6.bind(this));this._d91(true);};_c57.prototype._fdm=function(){if(this._9da){this._9da._7zm();this._9da=null;}if(this._qjj){this._qjj._fdm();this._qjj=null;}this._3ig=null;this._vij=null;};_c57.prototype._3uh=function(){var _6mn=this._whn;var _mzj=this._qjj._885();var _kwi=_mzj.getAttribute('value');_5ml._fll(_o9g._ob(_6mn, null, _kwi, this._ajm).then(function(_6mn){if(this._vij&&this._vij._k7g){this._vij._k7g(_6mn);}}.bind(this),function(_5on){_vzm._ozm(_5on);Application._28j(_frh._c6j('IDS_MSG_COULD_NOT_CONVERT_VIZ'), { type: 'warning' });this._whn=_erh._9kl(this._9in);}.bind(this)));};_c57.prototype._rn9=function(){if(this._qjj){this._qjj._rn9();}};_c57.prototype._ykb=function(_apn){this._ld3=Q.defer();this._9da=new _e57({_996:this._ld3.resolve}, "GET", _apn);this._9da._ign();return this._ld3.promise;};_c57.prototype._ii6=function(){var _3ya=this._qea;for(var _kwi in _3ya){if(_3ya.hasOwnProperty(_kwi)){var _lsn=_kwi;var _qk9=_j52._232(this._2m1, _lsn);if(!_o8j._ji2(_lsn)){continue;}if(!_qk9||_qk9==='Network'){continue;}var _wsi=_3ya[_kwi];var _mzj;if(!_wsi.location){continue;}var _jxm=_wsi.title||"";var _9hl=_wsi.tooltip||"";var _g5n=_wsi.tags||[];var _8ia=[];for(var i=0;i<_g5n.length;i++){_8ia.push(_frh._c6j(_g5n[i]));}_mzj=this._qjj._767();_mzj.setAttribute("value", _qk9);_mzj.setAttribute("tooltip", _frh._c6j(_9hl));_mzj.setAttribute("description", _frh._c6j(_jxm));_mzj.setAttribute("svgIcon", _wsi.svgIcon);}}this._qjj._wfn();};_c57.prototype._yk5=function(_4xg){var _o3k=_4xg.documentElement.selectNodes("entry");var _l3h=_o3k.length;var _lja=_agm._vuc(_erh._vtc());for(var i=0; i<_l3h; i++){var _irm=_o3k.item(i);var _lsn=_irm.selectSingleNode("id").text;var _qk9=_j52._232(this._2m1, _lsn);if(!_qk9){continue;}if(!_o8j._ji2(_lsn)){continue;}if(_gth._e51(_lsn)){continue;}var _iih=_irm.selectSingleNode("outputType")?_irm.selectSingleNode("outputType").text:"all";if(!_lja&&_iih=="interactive"){continue;}var _jxm=_irm.selectSingleNode("title").text||" ";var _9hl=_irm.selectSingleNode("tooltip")?_irm.selectSingleNode("tooltip").text:"";var _3bn=_7qn._zp1(_irm, "icon");var _mzj=this._qjj._767();_mzj.setAttribute("value", _qk9);_mzj.setAttribute("tooltip", _9hl);_mzj.setAttribute("description", _jxm);_mzj.setAttribute("icon", _3bn._gin);}this._qjj._wfn();};_c57.prototype._d91=function(_zyk){if(this._vij&&this._vij._ee8){this._vij._ee8(_zyk);}};_c57.prototype._z82=function(_yal){var _5um=_yal._8ik();if(_5um){throw _5um;}var _79e=_yal._0r9();_79e=_79e.replace(/\s+xmlns\s*=\s*["'](.+?)["']/g, "");var _4xg=(_79e?_8qn._kph(null, _79e, false, true):null);if(!_4xg){throw 'Response recieved but payload was empty.';}_c57.prototype._hcd=_4xg;this._yk5(_4xg);};return _c57;});
|