_rn8.js 5.5 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. _be9._452("_in8");var _rn8=new _in8("_rn8");function _lo8(_dd9, _dy8, _m39, _pf6){_rn8._w89(null, _dd9, _dy8, _m39, null, null, null, null, _pf6);};function _7w5(_dd9, _dy8, _m39, _pf6){setTimeout(_lo8.bind(null, _dd9, _dy8, _m39, _pf6), 0);};function _377(_hv8, _z18, _m39, _pf6){var _dy8=null;if(_z18){_dy8=_4l6._m67(_z18);}else if(_z18==""){_dy8="";}_rn8._w89(null, _4l6._m67(_hv8), _dy8, _m39, null, null, null, null, _pf6);};function _i04(_hv8, _z18, _m39, _pf6){setTimeout(_377.bind(null, _hv8, _z18, _m39, _pf6), 0);};_rn8._ga8=1;_rn8._b87=2;_rn8._qa5=3;_rn8._1p8=4;_rn8._fa8=20;_rn8._na5=21;_rn8._0t7=22;_rn8._yo8=23;_rn8._de9=30;_rn8._ba8=31;_rn8._399=32;_rn8._ce9=33;_rn8._rk4=function(){var _127=window["_4l6"]?_4l6._rh2( "IDS_HAL_HELP_CLICK_HERE" ):null;var _zg4='<span class="clsHyperlink" onclick="_rn8._jk3()">' + _jp8._hj6( _127||"click here" ) + '</span>';var _q69;if(window["_4l6"]&&_4l6._rh2( "IDS_HAL_HELP_MORE_INFO" ) ){_q69=_jp8._hj6( _4l6._m67( "IDS_HAL_HELP_MORE_INFO", "%1" ) ).replace( "%1", _zg4 );}else{_q69="For more information" + _127 + ".";}this._2j6("divMoreInfo").innerHTML=_q69;};_rn8._w89=function(_hc4, _dd9, _dy8, _m39, _d08, _sa9, _708, _ra9, _pf6){if(!this._153){this._4m2();this._153=true;}if(typeof _dd9!="string"){_dd9=String(_dd9);}this._k99=_sa9||null;this._lv7=_708||null;this._j99=_ra9||null;if(!_m39){_m39=_rn8._0t7;}if(!_d08){_d08=_rn8._ga8;}var _sy8=this._2j6("tdIcon");var _ux8="";switch(_m39){case _rn8._na5:_sy8.style.display="";_sy8.innerHTML='<svg class="clsSvgIcon32x32"><use xlink:href="#def_hal_icon_info_32x32"/></svg>';if(_be9._kl6["hal"]["enableAccessibility"]){_ux8=_4l6._m67('IDS_HAL_AC_INFO');}break;case _rn8._0t7:_sy8.style.display="";_sy8.innerHTML='<svg class="clsSvgIcon32x32"><use xlink:href="#def_hal_icon_warning_32x32"/></svg>';if(_be9._kl6["hal"]["enableAccessibility"]){_ux8=_4l6._m67('IDS_HAL_AC_WARNING');}break;case _rn8._yo8:_sy8.style.display="";_sy8.innerHTML='<svg class="clsSvgIcon32x32"><use xlink:href="#def_hal_icon_error_32x32"/></svg>';if(_be9._kl6["hal"]["enableAccessibility"]){_ux8=_4l6._m67('IDS_HAL_AC_ERROR');}break;default:_sy8.style.display="none";}if(_be9._kl6["hal"]["enableAccessibility"]){_sy8.setAttribute("aria-label", _ux8);}switch(_d08){case _rn8._b87:this._394="btnOK";this._2j6( "btnOK" ).style.display = "";this._2j6( "btnYes" ).style.display = "none";this._2j6( "btnNo" ).style.display = "none";this._2j6( "btnCancel" ).style.display = "";break;case _rn8._qa5:this._394="btnYes";this._2j6( "btnOK" ).style.display = "none";this._2j6( "btnYes" ).style.display = "";this._2j6( "btnNo" ).style.display = "";this._2j6( "btnCancel" ).style.display = "";break;case _rn8._1p8:this._394="btnYes";this._2j6( "btnOK" ).style.display = "none";this._2j6( "btnYes" ).style.display = "";this._2j6( "btnNo" ).style.display = "";this._2j6( "btnCancel" ).style.display = "none";break;default:this._394="btnOK";this._2j6( "btnOK" ).style.display = "";this._2j6( "btnYes" ).style.display = "none";this._2j6( "btnNo" ).style.display = "none";this._2j6( "btnCancel" ).style.display = "none";}var _ga7=120;var _na7="640px";var _4g7=false;if(_dd9.indexOf("\n")==-1){_4g7=_dd9.length>_ga7;}else{var a=_dd9.split("\n");var _zg8=a.length;for(var i=0;i<_zg8;i++){if(a[i].length>_ga7){_4g7=true;break;}}}var span=this._2j6("spanMsg");var div=span.parentNode;div.style.whiteSpace=_4g7?"normal":"nowrap";div.style.width=_4g7?_na7:"auto";_fe9._u95(span, _dd9);this._l46=_pf6||"";this._2j6( "divMoreInfo" ).style.display = "none";this._1b5(_hc4, null, _dy8);};_rn8._t61=function(){this._2j6(this._394).focus();};_rn8._122=function(){delete this._k99;delete this._lv7;delete this._l46;};_rn8._3k6=function(e){if(e.keyCode==_fe9._687){if(e.target.nodeName!="BUTTON"){this._kq4(_rn8._de9);}return;}this._i52(e);};_rn8._r89=function(){this._kq4(_rn8._de9);};_rn8._yr7=function(){this._kq4(_rn8._ba8);};_rn8._kq4=function(_ng8){switch(_ng8){case _rn8._de9:case _rn8._399:if(this._k99){setTimeout(this._k99, 0);}break;case _rn8._ba8:if(this._lv7){setTimeout(this._lv7, 0);}break;case _rn8._ce9:if(this._j99){setTimeout(this._j99, 0);}break;}this._i89();};_rn8._jk3=function(){this._wi6(this._l46);};_rn8._4m2=function(){var doc=document;doc.body.appendChild(doc.createElement("DIV")).innerHTML='<div id="_rn8" class="clsDialog" onkeypress="_rn8._3k6(event)" role="dialog" aria-labelledBy="_rn8_spanMsg" aria-describedby="_rn8_spanMsg">' +'<table role="presentation" class="clsDialogText" style="padding:4px" cellpadding="0" cellspacing="0">' +'<tr style="vertical-align:top">' +'<td id="_rn8_tdIcon"></td>' +'<td style="padding-left:16px; padding-top:7px; white-space:nowrap">' +'<span id="_rn8_spanMsg">&nbsp;</span>' +'</td>'+'</tr>'+'</table>'+'<div id="_rn8_divMoreInfo" style="padding:7px 0px 7px 50px"></div>' +'<div id="_rn8_divDlgButtonBar" class="clsDlgMsgBoxButtonBar">' +'<button id="_rn8_btnCancel" class="clsDlgButton" onclick="_rn8._kq4(_rn8._ba8)" HAL_ids="IDS_HAL_BTN_CANCEL">Cancel</button>' +'<button id="_rn8_btnNo" class="clsDlgButton" onclick="_rn8._kq4(_rn8._ce9)" HAL_ids="IDS_HAL_BTN_NO">No</button>' +'<button id="_rn8_btnYes" class="clsDlgButton" onclick="_rn8._kq4(_rn8._399)" HAL_ids="IDS_HAL_BTN_YES" HAL_isPrimary="true">Yes</button>' +'<button id="_rn8_btnOK" class="clsDlgButton" onclick="_rn8._kq4(_rn8._de9)" HAL_ids="IDS_HAL_BTN_OK" HAL_isPrimary="true">OK</button>' +'</div>'+'</div>';};