_io4.js 11 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: irot
  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. var _io4={};_io4._u42=function(el,_ng8,_ay7,_5g7,_hk5){var _bc9=_fe9._yh2(el);var _wb9=document.documentElement.getBoundingClientRect();var e=document.createEvent("MouseEvents");if(el.onclick&&(_ng8!=_fe9._rj2)){e.initMouseEvent("click", true, true, window, 0, _wb9.left, _wb9.top, _bc9.left, _bc9.top, !!_ay7, false, !!_5g7, false, _ng8||_fe9._bz2, null);setTimeout(this._b97.bind(this, el, e), 0);}else{e.initMouseEvent("mousedown", true, true, window, 0, _wb9.left, _wb9.top, _bc9.left, _bc9.top, !!_ay7, false, !!_5g7, false, _ng8||_fe9._bz2, null);setTimeout(this._b97.bind(this, el, e), 0);if(!_hk5){var e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup", true, true, window, 0, _wb9.left, _wb9.top, _bc9.left, _bc9.top, !!_ay7, false, !!_5g7, false, _ng8||_fe9._bz2, null);setTimeout(this._b97.bind(this, el, e), 0);}}};_io4._b97=function(el,e,_k27){el.dispatchEvent(e);};_io4._zt=function(el,_lm7,_su6){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}if(el){if(_su6){el.setAttribute(_lm7, "true");}else{el.removeAttribute(_lm7);}}};_io4._32=function(_496,_gw3){if(!_be9._kl6["hal"]["enableAccessibility"]){return null;}var _8c4;var _0l5;var nl=_496.getElementsByTagName("INPUT");var _zg8=nl.length;for(var i=0;i<_zg8;i++){var _dg9=nl.item(i);if(_dg9.type=="radio"&&_dg9.name==_gw3){if(!_0l5){_0l5=_dg9;}if(_dg9.checked==true){_8c4=_dg9;break;}}}return _8c4||_0l5;};_io4._sz5=function(_dg9){if(!_be9._kl6["hal"]["enableAccessibility"]){return false;}var _6j7=parseInt(_dg9.getAttribute("tabIndex"));return(_6j7>=0 ||((_dg9.nodeName=="INPUT"||_dg9.nodeName=="BUTTON"||_dg9.nodeName=="TEXTAREA")&&_6j7!=-1));};_io4._zj3=function(el){if(el.getAttribute){var _a79=el.getAttribute("role");if(_a79=="button"||_a79=="combobox"){for(;el;el=el.parentNode){if(el.getAttribute&&el.getAttribute( "role" )=="toolbar" ){return true;}}}}return false;};_io4._fl4=function(_939,_zz7){if(!_be9._kl6["hal"]["enableAccessibility"]){return null;}_zz7=_zz7||_939;var _1g8;var _zg8=_zz7.childNodes.length;for(var i=0;i<_zg8&&!_1g8;i++){var _0g8=_zz7.childNodes[i];var _3f7=(_0g8.disabled ||( _0g8.getAttribute&&( _0g8.getAttribute( "disabled" )=="true"||_0g8.getAttribute( "aria-disabled" )=="true" ) ));if ( ( !_3f7||this._zj3( _0g8))&&_0g8.style&&_0g8.style.visibility!="hidden"&&_0g8.style.display != "none" ){if(_0g8.nodeName=="INPUT"&&_0g8.type=="radio"){_1g8=this._32(_939, _0g8.getAttribute("name"));}else if(this._sz5(_0g8)){_1g8=_0g8;}else{_1g8=this._fl4(_939, _0g8);}}}return _1g8;};_io4._585=function(_939,_zz7){if(!_be9._kl6["hal"]["enableAccessibility"]){return null;}_zz7=_zz7||_939;var _1g8;var _zg8=_zz7.childNodes.length;for(var i=_zg8-1;i>=0&&!_1g8;i--){var _0g8=_zz7.childNodes[i];var _3f7=(_0g8.disabled ||( _0g8.getAttribute&&( _0g8.getAttribute( "disabled" )=="true"||_0g8.getAttribute( "aria-disabled" )=="true" ) ));if ( ( !_3f7||this._zj3( _0g8))&&_0g8.style&&_0g8.style.visibility!="hidden"&&_0g8.style.display != "none" ){if(_0g8.nodeName=="INPUT"&&_0g8.type=="radio"){_1g8=this._32(_939, _0g8.getAttribute("name"));}else if(this._sz5(_0g8)){_1g8=_0g8;}else{_1g8=this._585(_939, _0g8);}}}return _1g8;};_io4._cg2=function(_dg9,_8q5,_k79,_ym){if(!_be9._kl6["hal"]["enableAccessibility"]&&!_ym){return;}var _nh4="hiddenSpanId_"+_8q5;var _p45=_dg9.getAttribute(_nh4);if(_p45&&_dg9.ownerDocument.getElementById(_p45)){_fe9._u95(_dg9.ownerDocument.getElementById(_p45), _k79);return _p45;}else{var _7h7=_dg9.ownerDocument.createElement("SPAN");_7h7.style.display="none";_fe9._u95(_7h7, _k79);_dg9.parentNode.appendChild(_7h7);var _869=_dg9.getAttribute(_8q5);if(_869){_869 += " " + _fe9._9h2( _7h7 );}else{_869=( _8q5=="aria-labelledby"?( _fe9._9h2( _dg9 ) + " " + _fe9._9h2( _7h7 ) ):_fe9._9h2( _7h7 ) );}_dg9.setAttribute(_8q5, _869);_dg9.setAttribute(_nh4, _fe9._9h2(_7h7));return _fe9._9h2(_7h7);}};_io4._bq1=function(_dg9,_8q5,_ym){if(!_be9._kl6["hal"]["enableAccessibility"]&&!_ym){return;}var _nh4="hiddenSpanId_"+_8q5;var _p45=_dg9.getAttribute(_nh4);if(_p45&&_dg9.ownerDocument.getElementById(_p45)){_dg9.ownerDocument.getElementById(_p45).innerHTML="";}};_io4._2x5=function(_dg9,_ap7){if(_dg9.getAttribute( "modifiedTabIndex" ) != "true" ){_dg9.setAttribute( "modifiedTabIndex", "true" );_dg9.setAttribute( "oldTabIndex", _dg9.getAttribute( "tabIndex" ) );_dg9.setAttribute("tabIndex", _ap7);}};_io4._j95=function(_dg9){if(_dg9.getAttribute( "modifiedTabIndex" )=="true" ){_dg9.removeAttribute("tabIndex");if(_dg9.getAttribute("oldTabIndex")){_dg9.setAttribute( "tabIndex", _dg9.getAttribute( "oldTabIndex" ) );}_dg9.removeAttribute("oldTabIndex");_dg9.removeAttribute("modifiedTabIndex");}};_io4._wv=function(el){if(el.getAttribute("tabIndex")!=0){this._2x5(el, "0");}el.focus();};_io4._zi=function(el){el=_fe9._xn(el);for(;el;el=el.parentNode){if(el.nodeName.toLowerCase()=="td"||el.nodeName.toLowerCase()=="th"){return el;}}return null;};_io4._xp=function(elTable){var _va6=elTable.rows.length;for(var i=0;i<_va6;i++){var _ja9=elTable.rows.item(i);var _ol5=_ja9.cells.length;for(var j=0;j<_ol5;j++){var _ia9=_ja9.cells.item(j);if(this._1u7(_ia9)){return;}}}};_io4._v5=function(el){return(el&&el.style&&el.style.visibility!="hidden"&&el.style.display != "none" )&&( el.nodeName=="SPAN"||el.nodeName=="DIV"||el.nodeName=="IMG" );};_io4._kv=function(n){return(n.nodeName=="DIV"||n.nodeName=="STRONG"||n.nodeName=="EM");};_io4._zt7=function(_dg9){var _ah9=this._zi(_dg9);var _za6=this._h34(_ah9);_za6+= this._t11(_ah9);var _bh9=_ah9.parentNode;if(_ah9.rowSpan&&_ah9.rowSpan>1){var _k18=_ah9.rowSpan;for(var rowSpanIndex=1;rowSpanIndex<_k18;rowSpanIndex++){_bh9=_bh9.nextSibling;}}var _u83=false;while(_bh9){if(_bh9.nextSibling){_bh9=_bh9.nextSibling;}else if(_bh9.parentNode.firstChild.cells[_za6+1]&&!_u83){_bh9=_bh9.parentNode.firstChild;_u83=true;_za6++;}else{return false;}if(this._ub5(_bh9, _za6)){return true;}}return false;};_io4._rp8=function(_dg9){var _ah9=this._zi(_dg9);var _bh9=_ah9.parentNode;var _za6=this._h34(_ah9);_za6+= this._t11(_ah9);var _9o1=false;while(_bh9){if(_bh9.previousSibling){_bh9=_bh9.previousSibling;}else if(_ah9.previousSibling&&!_9o1){_bh9=_bh9.parentNode.lastChild;_9o1=true;_za6--;if(_za6<0){return false;}}else{return false;}if(this._ub5(_bh9, _za6)){return true;}}return false;};_io4._ub5=function(_bh9,_za6){if(_bh9!=null){var _fr3=_bh9.firstChild;var pos=this._t11(_fr3);while(_fr3){if(pos==_za6){return this._qj1(_fr3);}else if(pos>_za6){break;}var _i08=0;if(_fr3.colSpan){_i08=_fr3.colSpan;}else{_i08++;}pos+= _i08;_fr3=_fr3.nextSibling;}}};_io4._t11=function(_ah9){var _i08=0;var _bh9=_ah9.parentNode;var _205=0;while(_bh9){var _uv6=_bh9.firstChild;var _0z4=this._g34(_bh9)-_205;while(_uv6&&_uv6.rowSpan>1&&_0z4>0&&_uv6!=_ah9){_i08+= _uv6.colSpan;_uv6=_uv6.nextSibling;_0z4--;}if(_bh9.childNodes.length>_205){_205=this._g34(_bh9);}_bh9=_bh9.previousSibling;}return _i08;};_io4._g34=function(_bh9){var _yh7=0;var _dg9=_bh9.firstChild;while(_dg9){_yh7+= _dg9.colSpan;_dg9=_dg9.nextSibling;}return _yh7;};_io4._h34=function(_dg9){var _zh7=0;while(_dg9.previousSibling){_dg9=_dg9.previousSibling;if(_dg9.rowSpan==1){if(_dg9.colSpan){_zh7+= _dg9.colSpan;}else{_zh7++;}}}return _zh7;};_io4._iu1=function(_dg9){if(_dg9.childNodes){for(var _hu8=_dg9.childNodes.length-1;_hu8>=0;_hu8--){var _0g8=_dg9.childNodes[_hu8];var _1l5=this._kv(_0g8)?this._iu1(_0g8):null;if(_1l5){return _1l5;}if(this._v5(_0g8)){return _0g8;}}}return null;};_io4._5j1=function(_dg9){if(_dg9.childNodes){for(var _hu8=0;_hu8<_dg9.childNodes.length;_hu8++){var _0g8=_dg9.childNodes[_hu8];var _1l5=this._kv(_0g8)?this._5j1(_0g8):null;if(_1l5){return _1l5;}else if(this._v5(_0g8)){return _0g8;}}}return null;};_io4._bl=function(_dg9){var _dh7=_dg9.previousSibling;while(_dh7){var _0g8=this._kv(_dh7)?this._iu1(_dh7):null;if(_0g8){return _0g8;}if(this._v5(_dh7)){return _dh7;}_dh7=_dh7.previousSibling;}if(_dg9.parentNode.nodeName.toLowerCase()!="td"&&_dg9.parentNode.nodeName.toLowerCase() != "th" ){return this._bl(_dg9.parentNode);}return null;};_io4._0u7=function(_dg9){var _sv6=this._bl(_dg9);if(_sv6){this._wv(_sv6);return true;}var _ah9=this._zi(_dg9);while(_ah9.previousSibling){if(this._qj1(_ah9.previousSibling)){return true;}_ah9=_ah9.previousSibling;}var _bh9=_ah9.parentNode;while(_bh9.previousSibling){var _6l5=_bh9.previousSibling;if(this._qj1(_6l5.lastChild)){return true;}_bh9=_bh9.previousSibling;}return false;};_io4._qj1=function(td){var _dg9=this._iu1(td);if(_dg9){this._wv(_dg9);return true;}return false;};_io4._da1=function(_dg9){var _dh7=_dg9.nextSibling;while(_dh7){var _0g8=this._kv(_dh7)?this._5j1(_dh7):null;if(_0g8){return _0g8;}if(this._v5(_dh7)){return _dh7;}_dh7=_dh7.nextSibling;}if(_dg9.parentNode.nodeName.toLowerCase()!="td"&&_dg9.parentNode.nodeName.toLowerCase() != "th" ){return this._da1(_dg9.parentNode);}return null;};_io4._o97=function(_dg9){var _wt8=this._da1(_dg9);if(_wt8){this._wv(_wt8);return true;}var _ah9=this._zi(_dg9);while(_ah9.nextSibling){if(this._1u7(_ah9.nextSibling)){return true;}_ah9=_ah9.nextSibling;}var _bh9=_ah9.parentNode;while(_bh9.nextSibling){var _xy8=_bh9.nextSibling;if(this._1u7(_xy8.childNodes[0])){return true;}_bh9=_bh9.nextSibling;}return false;};_io4._1u7=function(_ah9){var _dg9=this._5j1(_ah9);if(_dg9){this._wv(_dg9);return true;}return false;};_io4._g32=function(_dg9,_1i8,_ym){if(!_be9._kl6["hal"]["enableAccessibility"]&&!_ym){return;}if(_dg9.nodeName=="TABLE"){this._xp(_dg9);return;}switch(_1i8){case _fe9._tx5:this._rp8(_dg9);break;case _fe9._zn4:this._0u7(_dg9);break;case _fe9._yn4:this._zt7(_dg9);break;case _fe9._n14:this._o97(_dg9);break;}};_io4._g04=function(el,_r17){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}if(el.classList.contains("clsHyperlink")){el.setAttribute( "role", "link" );el.setAttribute( "tabIndex", "0" );if(_r17){el.setAttribute("aria-label", _r17);}}};_io4._k9=function(el,_ur3,_kc4,_ym){if(!_be9._kl6["hal"]["enableAccessibility"]&&!_ym){return;}if(_ur3){el.addEventListener("focus", _ur3, true);}if(_kc4){el.addEventListener("blur", _kc4, true);}};_io4._e5=function(el,_ur3,_kc4,_ym){if((!_be9._kl6["hal"]["enableAccessibility"]&&!_ym)||!el){return;}if(_ur3){el.removeEventListener("focus", _ur3, true);}if(_kc4){el.removeEventListener("blur", _kc4, true);}};_io4._p12=function(el,_jb3){if(!_be9._kl6["hal"]["enableAccessibility"]||!_jb3){return;}var _ey=el.getAttribute("aria-describedby");if(_ey){_jb3=_ey+" " + _jb3;}el.setAttribute("aria-describedby", _jb3);};_io4._pj=function(el){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}el.querySelectorAll("TABLE:not([role])").forEach(this._h81.bind(this));};_io4._h81=function(_ag8){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}_ag8.setAttribute( "role", "presentation" );};_io4._yy=function(_4u8,_f96,_q29){if(!_be9._kl6["hal"]["enableAccessibility"]){return;}var _zz7=_4u8.parentNode;_zz7.insertBefore(_zz7.removeChild(_4u8), _f96);if(!_q29){_4u8.setAttribute( "HAL_tabOrientation", "top" );}};_io4._u7=function(){var _sf8=document.createElement("div");_sf8.id="divHighContrastCheck";_sf8.style.border="1px solid";_sf8.style.borderColor="red green";_sf8.style.height="10px";_sf8.style.top="-999px";_sf8.style.position="absolute";document.body.appendChild(_sf8);setTimeout(this._f8.bind(this, _sf8), 0);};_io4._f8=function(_sf8){var _325=_sf8?_fe9._fe3(_sf8):null;if(_325&&(_325.borderTopColor==_325.borderRightColor)){_be9._dz();}document.body.removeChild(_sf8);};_io4._38=function(_6u8,e){if(e.keyCode==_fe9._687){_fe9._8u5(e);this._u42(_6u8, _fe9._bz2, e.ctrlKey, e.shiftKey);}};