// Licensed Materials - Property of IBM
// IBM Cognos Products: rs
// (C) Copyright IBM Corp. 2003, 2022.
// US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
define([],function(){"use strict";function _b57(_waf, _1nd){this._rzh=_qgn._bsh;this._9ve=false;this._mad=_1nd;this._1gj=_waf.insertBefore(document.createElement("DIV"), _waf.firstChild);this._1gj.style.cssText=_9l8._cj8( "padding:var(--16S); position:absolute; z-index:10000; left:0px; height:100%; width:100%; overflow:auto; background-color:var(--ui-01);" );var _bdn ='
' +''+'' +' ' +' ' +' '+' ' +' '+''+' ' +' ' +' '+''+''+'' +'
' +'
'+' '+' '+''+''+'' +'
' +'
'+' '+' '+''+''+(this._rzh?'':('' +'
' +'
'))+' '+' '+''+''+'' +'
' +'
'+' '+' '+''+''+(this._rzh?'':('' +'
' +'
'))+' '+' '+''+''+'
' +' '+' '+''+'' +' ' +' '+''+'
' +' '+' '+''+'' +'' +' '+' '+'
';this._1gj.innerHTML=_9l8._cj8(_bdn);_frh._gn9(this._1gj);var el=this._1ol("viewerError_tdMsg");var _lsn=_4qn._k3g();el.id=_lsn;el.setAttribute("aria-labelledby", _lsn);var el=this._1ol("viewerError_divUndo");el.onclick=this._bdg.bind(this);el.onkeydown=_b57._183;var el=this._1ol("viewerError_divRefresh");el.onclick=this._1i6.bind(this);el.onkeydown=_b57._183;if(!this._rzh){var el=this._1ol("viewerError_divPageDesignView");el.onclick=this._dl7.bind(this);el.onkeydown=_b57._183;}var el=this._1ol("viewerError_divAutoCorrect");el.onclick=this._jk5.bind(this);el.onkeydown=_b57._183;if(!this._rzh){var el=this._1ol("viewerError_divClose");el.onclick=this._9qe.bind(this);el.onkeydown=_b57._183;}var el=this._1ol("viewerError_expandDetails");el.onclick=this._7o4.bind(this);el.onkeydown=_b57._183;var el=this._1ol("viewerError_lblDetails");el.onclick=this._7o4.bind(this);el.onkeydown=_b57._183;};_b57.prototype._fdm=function(){this._1gj.parentNode.removeChild(this._1gj);this._1gj=null;};_b57.prototype._1gn=function(){this._1gj.style.display="none";};_b57.prototype._08j=function(_5um,_gai){this._1gj.style.display="";this._8xh("viewerError_divRefresh", !this._mad);_4qn._1je( this._1ol( "viewerError_tdMsg" ), _frh._c6j( _gai?"IDS_MSG_PREVIEW_CANCEL":(this._rzh?"IDS_MSG_PREVIEW_ERR_DATASET":"IDS_MSG_PREVIEW_ERR") ) );this._8xh("viewerError_expandDetails", !!_5um);this._8xh("viewerError_lblDetails", !!_5um);this._8xh("viewerError_taDetails",(!!_5um&&this._9ve));this._1ol( "viewerError_taDetails" ).value = _5um?( _5um._cfe() + " " + _5um._3q9() + "\r\n" + _5um._2q9() ):"";this._8xh("viewerError_divUndo", this._mad&&_erh._tkl());this._8xh("viewerError_divAutoCorrect", this._mad&&!_gai);if(!this._rzh){this._8xh("viewerError_divPageDesignView", this._mad);}this._8xh("viewerError_imgError", !_gai);this._8xh("viewerError_imgInfo", _gai);if(_zpn._qsh["hal"]["enableAccessibility"]){this._1ol("viewerError_tdMsg").focus();}};_b57.prototype._1ol=function(_lsn){return this._1gj.querySelector( "[HAL_id='" + _lsn + "']" );};_b57.prototype._8xh=function(_lsn,_wwk){this._1ol(_lsn).style.display=_wwk?"":"none";};_b57.prototype._bdg=function(){setTimeout(_ypn._vhk.bind(_ypn), 0);};_b57.prototype._9qe=function(){setTimeout(Application._ig2.bind(Application), 0);};_b57.prototype._7o4=function(){this._9ve=!this._9ve;this._1ol("viewerError_taDetails").style.display = this._9ve?"":"none";this._1ol("viewerError_expandDetails").src = this._9ve? "hal/images/tv_Lminus.svg":"hal/images/tv_Lplus.svg";};_b57.prototype._dl7=function(){this._1gn();setTimeout(this._uj6.bind(this), 0);};_b57.prototype._uj6=function(){Application.SharedState.Set( "rs_viewer", "editor", "design" );Application.SharedState.Set( "rs_viewer", "isViewer", false );};_b57.prototype._1i6=function(){setTimeout(this._aag.bind(this), 0);};_b57.prototype._aag=function(){Application.SharedState.Call( "rs_viewer", "refresh" );};_b57.prototype._jk5=function(){setTimeout(_8fm._jgn.bind(_8fm, "_5de"), 0);};_b57._183=function(e){if(e.keyCode==_4qn._x8j){_4qn._w0g(e);_k0d._6a6(this, _4qn._ll8, e.ctrlKey, e.shiftKey);}};return _b57;});