_3y9.js 1.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(["_wh4","_j52"], function(_wh4,_j52){"use strict";var _3y9={};_3y9._z46=function(_yn1,_x49,_kwi){var i=0;var _cxa;if(_j52._s13(_yn1, _kwi)){_kwi=_j52._551(_yn1, _kwi);};while(_x49[i]&&!_cxa){if(_x49[i].chartType==_kwi){_cxa=_x49[i];}i++;}return _cxa; };_3y9._2y=function(_yn1,_x49,_8jc){var _af3=true;var _1vk=_x49.filter(function(_0nn){ var _v8e=_0nn.chartType;if(_v8e==='Network'){return false;}var _i6m=_j52._yh(_yn1, _v8e); if(!_i6m){_vzm._ozm('Removed ' + _v8e + ' because it is not supported in reporting.');return false;}var _7bl=_6qn._cdm(_0nn.columns.map(function(_75m){ return _75m.slot; }));if(_7bl.size>_i6m.slots.length&&_v8e!="List"){_vzm._ozm('Removed ' + _v8e + ' because its reporting equivalent doesnt support the slots provided with this chart.');return false;}if(_8jc&&_af3){var _5jn=false;_5jn=Array.isArray(_8jc)?_8jc.indexOf(_v8e)===-1:_v8e!==_8jc;if(!_5jn){_vzm._ozm('Removed ' + _v8e + ' because the chart is already of this type.');_af3=false;}return _5jn;}var _aha=_j52._dc4(_i6m);var _mzb=_6qn._0ml(_7bl).filter(function(_een){ return _aha.indexOf(_een)==-1;});if(_mzb.length>0){_vzm._ozm('Recommended viz has an incompatible slot set ' + JSON.stringify(_mzb) + ', ' + _v8e + ' is removed. ');return false;}return true;}.bind(this));return _1vk;};return _3y9;});