_4ce.js 2.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. function _4ce(_b6k, _nnj, _mu5, _adi){this._vij=_b6k;this._ho5=Boolean(_mu5);this._9ba=_adi?-1:null;this._j6g(_nnj);};_4ce.prototype._j6g=function(_nnj){this._zdj=_nnj;this._fp7=[];var _tzl=_nnj.length;for(var i=0; i<_tzl;++i){var _yal=_nnj[i];var _xg9=_yal._p2g();if(_xg9==this){_vzm._8zm("Request cannot have _4ce as a listener");}this._fp7.push(_xg9);_yal._86g(this);}};_4ce.prototype._p2g=function(){return this._vij;};_4ce.prototype._86g=function(_b6k){this._vij=_b6k;};_4ce.prototype._lqh=function(_kil){this._6uk=_kil;};_4ce.prototype._ynh=function(){return this._6uk;};_4ce.prototype._33g=function(){return this._zdj;};_4ce.prototype._lnk=function(){if(this._9ba!=null&&++this._9ba<this._zdj.length){this._zdj[this._9ba]._ign();}};_4ce.prototype._ign=function(){var _tzl=this._zdj.length;this._6ba=_tzl;if(_tzl==0){this._xu3();return;}_emh._kd8(this);if(this._9ba!=null){this._lnk();}else{for(var i=0; i<_tzl;++i){this._zdj[i]._ign();}}};_4ce.prototype._7zm=function(){if(this._9ba!=null&&this._9ba>=0){this._zdj[this._9ba]._7zm();}else{var _tzl=this._zdj.length;for(var i=0; i<_tzl;++i){this._zdj[i]._7zm();}}_emh._la5(this);if(this._vij&&this._vij._2c7){this._vij._2c7(this);}};_4ce.prototype._996=function(_yal){--this._6ba;this._xu3(_yal);this._lnk();};_4ce.prototype._xh8=function(){return true;};_4ce.prototype._kt9=function(){};_4ce.prototype._xu3=function(_yal){if(this._ho5&&_yal){var _h2l=this._zdj.indexOf(_yal);var _b6k=this._fp7[_h2l];if(_b6k&&_b6k._996){_b6k._996(_yal);}}if(this._6ba==0){if(!this._xh8()){return;}_emh._la5(this);this._kt9();if(this._vij){this._vij._996(this);}}};_4ce.prototype._8ik=function(){var _7ul=[];for(var i=0; i<this._zdj.length;++i){var _yal=this._zdj[i];var _5um=_yal._8ik();if(_5um){_7ul.push(_5um);}}if(_7ul.length==1){return _7ul[0];}if(_7ul.length>=2){var _66e=window["_frh"]?_frh._997( "IDS_HAL_MULTIREQUEST_ERRORS" ):null;_zpn._la6("_6mh");return new _6mh( _66e||"Two or more requests failed.", _7ul );}return null;};