_icb.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 _i3b(_5rn, _3d2){this._gqn=_5rn||document;this._g14=this._se5.bind(this);this._mqb=_3d2?null: this._pqe.bind(this);};_i3b.prototype._jbj=function(){if(!this._3pl){this._3pl=["mousedown", "mouseup", "mousemove", "click", "dblclick", "mouseover", "mouseout", "drop" ];if(!_o7g._kdb||_o7g._ze7){this._3pl=this._3pl.concat( ["keydown", "keyup", "keypress"] );}if(_o7g._ze7){this._3pl=this._3pl.concat( ["pointerdown", "pointerup", "pointermove", "pointerover", "pointerout"] );}else if(_o7g._kdb){this._3pl=this._3pl.concat( ["touchstart", "touchmove", "touchend", "touchcancel"] );}if(_zpn._qsh["hal"]["enableAccessibility"]){this._3pl=this._3pl.concat( ["focus", "blur"] );}}return this._3pl;};_i3b.prototype._oje=function(_p5k){if(this._mzh){_vzm._ozm("start capture is stopping a previous capture");this._47g();}var _gga=this._s7a=[window];var nl=document.getElementsByTagName("IFRAME");for(var i=0; i<nl.length;++i){try{var _6rn=nl.item(i); var s=_6rn.style.display;if(s!=="none"){_gga.push(_6rn.contentWindow);}}catch(e){}}this._mzh=true;this._jij=_p5k;this._cu8(true);};_i3b.prototype._47g=function(){if(!this._mzh){_vzm._8zm(" Stopping capture without capture being started.");return;}var _7na=this._jij?this._jij.onStopCapture:null; this._mzh=false;this._jij=null;this._cu8(false);this._s7a=null;if(_7na){_7na();}};_i3b.prototype._pqe=function(e){this._47g();};_i3b.prototype._cu8=function(_vin){if(this._mqb){if(_vin){window.addEventListener("blur", this._mqb);}else{window.removeEventListener("blur", this._mqb);}}for(var id=0; id<this._s7a.length;++id){var w=this._s7a[id];var d;try{if(w.closed){continue;}d=w.document;}catch(e){continue;}var _8ul=this._jbj();for(var i=0;i<_8ul.length;i++){if(_vin){d.addEventListener(_8ul[i], this._g14, true);}else{d.removeEventListener(_8ul[i], this._g14, true);}}}};_i3b.prototype._se5=function(e){if(this._jij){var _rtj=this._jij["on"+e.type];if(_rtj){_rtj.apply(this, arguments);return;}}e.stopPropagation();};var _icb=new _i3b();