_4gm.js 3.6 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. var _4gm={};_4gm._lh8=function(_g8k,_1sf){this._xoh(document.getElementById(_g8k), _1sf);};_4gm._xoh=function(btn,_1sf){if(!btn){return;}if(!_1sf){_1sf=btn.getAttribute("HAL_buttonClassPrefix");}if(!_1sf&&(btn.className=="clsDotDotDotButton")){_1sf="clsDotDotDotButton";btn._st6=true;}if(!_1sf&&(btn.className=="clsDlgButtonDropDownArrow")){_1sf="clsDlgButtonDropDownArrow";btn._6z1=true;}btn._1sf=_1sf||"clsDlgButton";btn.classList.add(btn._o5e||btn._1sf);btn[_o7g._ze7?"onpointerover":"onmouseover"]=this._6dg;btn[_o7g._ze7?"onpointerout":"onmouseout"]=this._nwh;btn._h8f=!btn._o5e;this._bj6(btn);};_4gm._fdm=function(btn){btn[_o7g._ze7?"onpointerover":"onmouseover"]=null;btn[_o7g._ze7?"onpointerout":"onmouseout"]=null;};_4gm._z3g=function(el){if(_zpn._qsh["hal"]["enableAccessibility"]){var nl=el.getElementsByTagName("BUTTON");var _tzl=nl.length;for(var i=0;i<_tzl;i++){this._bj6(nl.item(i));}}var nl=el.getElementsByTagName("BUTTON");var _tzl=nl.length;for(var i=0;i<_tzl;i++){var btn=nl.item(i);if(!btn._h8f&&btn.classList.contains( "clsDlgButton" )&&( btn.getAttribute( "HAL_isFixedWidth" ) != "true" ) ){this._xoh(btn, "");}else if(!btn._h8f&&btn.classList.contains("clsDotDotDotButton")){this._xoh(btn, "");}else if(!btn._h8f&&btn.classList.contains("clsDlgButtonDropDownArrow")){this._xoh(btn, "");}}};_4gm._q6j=function(btn){if(btn._h8f){btn.classList.add(btn._1sf);}};_4gm._yj8=function(_g8k,_zwk,_9wm){_4qn._pj8(_g8k, _zwk, _9wm);};_4gm._mqh=function(btn,_zwk,_9wm){_4qn._pf1(btn, _zwk, _9wm);};_4gm._vjk=function(btn,_dwm){_4qn._1je(btn, _dwm);if(_zpn._qsh["hal"]["enableAccessibility"]){btn.setAttribute("aria-label", _dwm);}};_4gm._rje=function(btn,_r5n){if(btn){btn.setAttribute( "_unm", _r5n?"true":"false" );_k0d._sj2(btn, "aria-pressed", _r5n);}};_4gm._6dg=function(e){var btn=this;if(_4qn._ihk(btn, e.target)){if(btn._ggh){btn.classList.add(btn._ggh);}else{btn.classList.remove(btn._1sf);btn.classList.add(btn._1sf+"_hover");}if(_zpn._qsh["hal"]["enableHighContrastMode"]){btn.classList.add("clsHighContrastHover");}}};_4gm._nwh=function(e){var btn=this;if((e.target==btn)||!_4qn._ihk(btn, e.target)){if(btn._ggh){btn.classList.remove(btn._ggh);}else{btn.classList.add(btn._1sf);btn.classList.remove(btn._1sf+"_hover");}if(_zpn._qsh["hal"]["enableHighContrastMode"]){btn.classList.remove("clsHighContrastHover");}}};_4gm._bj6=function(btn){if(!_zpn._qsh["hal"]["enableAccessibility"]){return;}btn.setAttribute( "role", "button" );if(!btn.getAttribute("aria-label")){if(btn.className=="clsDotDotDotButton"||btn.className=="clsDotDotDotPropertyButton"){btn.setAttribute( "aria-label", _frh._c6j( "IDS_HAL_AC_DOTDOTDOT" ) );}else if(btn.className=="clsDlgButtonDropDownArrow"){btn.setAttribute( "aria-label", _frh._c6j( "IDS_HAL_AC_DROPDOWN" ) );}else if(btn.title){btn.setAttribute("aria-label", btn.title);}}if(btn.getAttribute("aria-label")){var _cul=btn.getElementsByTagName("IMG");if(_cul.length==1){_cul[0].setAttribute( "alt", btn.getAttribute( "aria-label" ) );}}};function _kcm(btn, _ttj, _1sf){this._dqn=btn;btn._36k=this;_4gm._xoh(btn, _1sf);btn.onclick=_ttj||null;if(_zpn._qsh["hal"]["enableAccessibility"]){btn.onkeydown=_k0d._zr.bind(_k0d, btn);}};_kcm.prototype._fdm=function(){_4gm._fdm(this._dqn);this._dqn.onclick=null;this._dqn.onkeydown=null;this._dqn._36k=this;this._dqn=null;};_kcm.prototype._vjk=function(_dwm){_4gm._vjk(this._dqn, _dwm);};_kcm.prototype._mqh=function(_zwk,_9wm){_4gm._mqh(this._dqn, _zwk, _9wm);};