123456 |
- // 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.
- function _opn(_kek, _b6k, _kz1, _k7f){var doc=document;this._vij=_b6k||null;this._rlj=doc.getElementById(_kek);this._rlj.onselectstart=_4qn._6a7;this._rlj.ondragstart=_4qn._w0g;this._sgg=( this._rlj.getAttribute( "HAL_scrollable" )=="true" );if(this._sgg){var tbl=this._rlj.parentNode.insertBefore(doc.createElement("table"), this._rlj);tbl.cellPadding="0";tbl.style.borderSpacing="0px";tbl.style.borderCollapse="collapse";tbl.style.width=_4qn._sp9(this._rlj).width;this._rlj.style.width="auto";var tr=tbl.insertRow(-1);this._a7i=tr.insertCell(-1);this._a7i.innerHTML='<svg class="clsTabBoxNextPrevious" height="' + this._rlj.getAttribute( "HAL_scrollIconHeight" ) + '" width="' + this._rlj.getAttribute( "HAL_scrollIconWidth" ) + '"><use xlink:href="#' + this._rlj.getAttribute( "HAL_svgPreviousIcon" ) + '"/></svg>';this._a7i.onmousedown=this._pwh.bind(this);var td=tr.insertCell(-1);this._rkm=tr.insertCell(-1);this._rkm.innerHTML='<svg class="clsTabBoxNextPrevious" height="' + this._rlj.getAttribute( "HAL_scrollIconHeight" ) + '" width="' + this._rlj.getAttribute( "HAL_scrollIconWidth" ) + '"><use xlink:href="#' + this._rlj.getAttribute( "HAL_svgNextIcon" ) + '"/></svg>';this._rkm.onmousedown=this._6hm.bind(this);this._dgj=td.appendChild(doc.createElement("div"));this._dgj.appendChild(this._rlj);this._dgj.style.width=_4qn._sp9(this._rlj).width;this._dgj.style.overflowX="hidden";this._dgj.onscroll=this._ank.bind(this);}this._43f=this._rlj.getAttribute( "HAL_tabPanelsId" )||( _kek + "_Panels" );this._glj=this._rlj.getAttribute("HAL_tabWidth");this._5gg=( this._rlj.getAttribute( "HAL_tabOrientation" )=="bottom" );this._rlj.oTab=this;this._rlj._wd2=NaN;if(!this._rlj._0z7){this._rlj._0z7=true;this._rlj.rows.item(0).appendChild(doc.createElement("TD"));}this._rlj.className=this._rlj.className||"clsTabBox";this._rlj.classList.add(this._5gg?"clsTabBoxOrientationBottom":"clsTabBoxOrientationTop");if(!_o7g._60n){this._rlj.style.borderCollapse="separate";}this._rlj.cellPadding=0;this._rlj.cellSpacing=0;var _c6c=this._rlj.rows.item(0).cells.length;for(var i=0;i<_c6c;i++){var td=this._rlj.rows.item(0).cells.item(i);if(td.getAttribute( "removed" )=="true" ){td.style.display="none";}td.bBottomTabs=this._5gg;if(i<_c6c-1){td.className=this._5gg?"clsBottomTabBox_inactive":"clsTabBox_inactive";td.noWrap=true;this._acg(td);}else{td.setAttribute( "_6wl", "true" );td.className=this._5gg?"clsBottomTabBoxLast":"clsTabBoxLast";td.style.filter="";}}if(_o7g._kdb&&_zpn._qsh["hal"]["enableFastClick"]){this._y3i=new _f4j(this._rlj, this._rqe.bind(this));}else{this._rlj[_o7g._ze7?"onpointerdown":"onmousedown"]=_opn._4dg;}this._bj6();this._rp(true);var _wrj=doc.getElementById(this._43f);this._ead=(_wrj!=null);if(this._ead){_wrj.className=_wrj.className||(this._5gg?"clsBottomTabPanels":"clsTabPanels");if(_4qn._sp9(this._rlj).width!="auto"){var _8ef=this._rlj.offsetWidth;if(_8ef>0){_wrj.style.width=_8ef+"px";}}}this._pie((typeof _kz1=="number")?_kz1:0, _k7f);this._aa2();};_opn.prototype._acg=function(td){if(td._old){return;}var a=[];for(var i=td.childNodes.length-1;i>=0;i--){var _ayl=td.childNodes.item(i);a.unshift(td.removeChild(_ayl));}var _ezk=td.appendChild(document.createElement("DIV"));_ezk.className="clsTabDivInner";_8qn._t0g(_ezk, a);if(_8qn._9rc(_ezk, td, "HAL_ids")){td.removeAttribute("HAL_ids");}td._old=true;if(this._glj){td.style.width=this._glj;td.style.textAlign="center";}if(!_o7g._60n){td.setAttribute( "tabIndex", "-1" );}};_opn.prototype._fdm=function(){if(this._y3i){this._y3i._fdm();}if(this._sgg){this._1t3();var tbl=this._rlj.parentNode.parentNode.parentNode.parentNode.parentNode;tbl.parentNode.replaceChild(this._rlj, tbl);this._a7i=null;this._rkm=null;this._dgj=null;}var doc=document;var cells=this._rlj.rows.item(0).cells;for(var i=0;i<cells.length;i++){var td=cells.item(i);td[_o7g._ze7?"onpointerover":"onmouseover"]=null;td[_o7g._ze7?"onpointerout":"onmouseout"]=null;td.style.display="";}var _wrj=this._ead?doc.getElementById(this._43f):null;if(_wrj){var nl=_wrj.childNodes;var _tzl=nl.length;for(var i=0;i<_tzl;i++){var div=nl.item(i);if(div.tagName=="DIV"){div.style.display="block";}}}this._rlj[_o7g._ze7?"onpointerdown":"onmousedown"]=null;this._rp();this._rlj.oTab=null;this._rlj=null;};_opn.prototype._ezm=function(){return this._rlj.id;};_opn.prototype._7he=function(_jw6){return(this._rlj.rows.item( 0 ).cells.item( _jw6 ).getAttribute( "removed" )=="true" );};_opn.prototype._fxc=function(_jw6,_jyk){this._rlj.rows.item( 0 ).cells.item( _jw6 ).setAttribute( "removed", _jyk?"true":"false" );};_opn.prototype._ixc=function(_3zk){this._rlj.style.visibility=_3zk?"visible":"hidden";var _wrj=this._ead?document.getElementById(this._43f):null;if(_wrj){_wrj.style.visibility=_3zk?"visible":"hidden";}};_opn.prototype._dxc=function(_jw6,_wwk,_4c1,_k7f){if(!_wwk&&(_4c1!==undefined)&&(this._pee()==_jw6)){this._pie(_4c1, _k7f);}var td=this._rlj.rows.item(0).cells.item(_jw6);td.style.display=( !_wwk||( td.getAttribute( "removed" )=="true" ) )?"none":"";};_opn.prototype._4oh=function(){return !!this._3pk;};_opn.prototype._mqh=function(_zwk){this._3pk=_zwk;var _utm=this._rlj.rows.item(0).cells;var _tzl=_utm.length;for(var i=0;i<_tzl;i++){var _27n=_utm.item(i);_27n.disabled=!_zwk;_k0d._sj2(_27n, "aria-disabled", !_zwk);}};_opn.prototype._exc=function(_jw6,_zwk){var _27n=this._rlj.rows.item(0).cells.item(_jw6);_27n.disabled=!_zwk;_k0d._sj2(_27n, "aria-disabled", !_zwk);};_opn.prototype._pee=function(){return this._rlj._wd2;};_opn.prototype._pie=function(_jw6,_k7f){this._hre(this._rlj.rows.item(0).cells.item(_jw6), true, _k7f);};_opn.prototype._nf1=function(_k7f){var _c6c=this._rlj.rows.item(0).cells.length;for(var i=0;i<_c6c;i++){var td=this._rlj.rows.item(0).cells.item(i);if ((td.getAttribute( "removed" ) != "true" )&&( td.style.display != "none" ) ){this._pie(i, _k7f);return;}}};_opn.prototype._hre=function(_yfk,_yz7,_k7f){var doc=document;var cells=this._rlj.rows.item(0).cells;var _c6c=cells.length;var _9oa=_c6c-1;var _3ef=0;for(;_3ef<cells.length;_3ef++){if(cells.item(_3ef)==_yfk){break;}}var _wd2=this._rlj._wd2;if((_3ef>=_9oa)||(_wd2==_3ef)||_yfk.disabled ||( _yfk.getAttribute( "removed" )=="true" ) ){return;}if((_k7f!==false)&&this._vij&&this._vij._57g){this._vij._57g(this, _wd2, _3ef);}this._rlj._wd2=_3ef;var _xlc=this._rlj.id+"_Panel";for(var i=0;i<_c6c;i++){var td=cells.item(i);var _ifl=td.getAttribute("HAL_tabPanelId")||(_xlc+i);if(i==_3ef){if(i<_9oa){td[_o7g._ze7?"onpointerover":"onmouseover"]=_opn._6l7;td[_o7g._ze7?"onpointerout":"onmouseout"]=_opn._6s8;if(_yz7){td.className=this._5gg?"clsBottomTabBox_active":"clsTabBox_active";}else{td.className=this._5gg?"clsBottomTabBox_active_hover":"clsTabBox_active_hover";}if(_zpn._qsh["hal"]["enableHighContrastMode"]){td.classList.add("clsHighContrastSelected");}var _gzk=doc.getElementById(_ifl);if(_gzk){_gzk.style.display="block";}}}else{if(td.getAttribute( "_6wl" )=="true" ){td.className=this._5gg?"clsBottomTabBoxLast":"clsTabBoxLast";}else{td[_o7g._ze7?"onpointerover":"onmouseover"]=_opn._3k5;td[_o7g._ze7?"onpointerout":"onmouseout"]=_opn._sh6;td.className=this._5gg?"clsBottomTabBox_inactive":"clsTabBox_inactive";}if(i<_9oa){var _gzk=doc.getElementById(_ifl);if(_gzk){_gzk.style.display="none";}}}}this._a11();if((_k7f!==false)&&this._vij&&this._vij._pk8){this._vij._pk8(this, _wd2, _3ef);}};_opn._6l7=function(e){this.className=this.bBottomTabs?"clsBottomTabBox_active_hover":"clsTabBox_active_hover";if(_zpn._qsh["hal"]["enableHighContrastMode"]){this.classList.add("clsHighContrastSelected");}};_opn._6s8=function(e){this.className=this.bBottomTabs?"clsBottomTabBox_active":"clsTabBox_active";if(_zpn._qsh["hal"]["enableHighContrastMode"]){this.classList.add("clsHighContrastSelected");}};_opn._3k5=function(e){this.className=this.bBottomTabs?"clsBottomTabBox_inactive_hover":"clsTabBox_inactive_hover";if(_zpn._qsh["hal"]["enableHighContrastMode"]){this.classList.add("clsHighContrastHover");}};_opn._sh6=function(e){this.className=this.bBottomTabs?"clsBottomTabBox_inactive":"clsTabBox_inactive";};_opn.prototype._rqe=function(_07n){for(var el=_4qn._n22(_07n);el.nodeName!="TABLE";el=el.parentNode){if(el.tagName=="TD"){if(el.getAttribute( "_6wl" )=="true" ){var _b6k=this._vij;if(_b6k&&_b6k._qk8){_b6k._qk8(this);}}else{this._hre(el);}}}};_opn._4dg=function(e){if(_zpn._70d&&_zpn._70d._g61){_zpn._70d._g61(e, this);}if(e.button==_4qn._ll8){for(var el=_4qn._n22(e.target);el.nodeName!="TABLE";el=el.parentNode){if(el.tagName=="TD"){if(el.getAttribute( "_6wl" )=="true" ){var _b6k=this.oTab._vij;if(_b6k&&_b6k._qk8){_b6k._qk8(this);}}else{this.oTab._hre(el);}}}}};_opn.prototype._bj6=function(){if(!_zpn._qsh["hal"]["enableAccessibility"]){return;}this._rlj.setAttribute( "role", "tablist" );var _xlc=this._rlj.id+"_Panel";var _c6c=this._rlj.rows.item(0).cells.length;for(var i=0;i<_c6c;i++){var _gjn=this._rlj.rows.item(0).cells.item(i);_gjn.setAttribute( "tabIndex", "-1" );_gjn.setAttribute( "role", "tab" );if(_gjn.getAttribute( "_6wl" )=="true" ){_gjn.setAttribute( "role", "presentation" );continue;}var _ian=_gjn.getElementsByTagName("IMG");if(_ian.length!=0){_ian.item(0).alt=_gjn.getAttribute( "title" )||"";}var _ifl=_gjn.getAttribute("HAL_tabPanelId")||(_xlc+i);var _afi=document.getElementById(_ifl);if(_afi){_afi.setAttribute( "role", "tabpanel" );_afi.setAttribute("aria-labelledby", _4qn._a87(_gjn));}}};_opn.prototype._rp=function(_vin){if(!_zpn._qsh["hal"]["enableAccessibility"]){return;}if(_vin){this._rlj.onkeydown=this._acj.bind(this);}else{this._rlj.onkeydown=null;}};_opn.prototype._a11=function(){if(!_zpn._qsh["hal"]["enableAccessibility"]){return;}var _1zl=this._pee();var _c6c=this._rlj.rows.item(0).cells.length-1;for(var i=0;i<_c6c;i++){var _gjn=this._rlj.rows.item(0).cells.item(i);_gjn.setAttribute( "tabIndex", ( i==_1zl )?"0":"-1" );_k0d._sj2(_gjn, "aria-selected",(i==_1zl));}};_opn.prototype._6jb=function(_nyl){return(!_nyl.disabled&&_nyl.getAttribute( "_6wl" ) != "true"&&_nyl.style&&_nyl.style.display != "none"&&_nyl.style.visibility != "hidden" );};_opn.prototype._h2a=function(_xoa){var _0qm=-1;var _xld=false;var _c6c=this._rlj.rows.item(0).cells.length;for(var i=0;i<_c6c;i++){var _gjn=this._rlj.rows.item(0).cells.item(i);if(this._6jb(_gjn)){if(_xld){_0qm=i;break;}else if(_0qm<0){_0qm=i;}}if(!_xld&&i==_xoa){_xld=true;}}return _0qm;};_opn.prototype._6i5=function(_xoa){var _0qm=-1;var _xld=false;var _c6c=this._rlj.rows.item(0).cells.length;for(var i=_c6c-1;i>=0;i--){var _gjn=this._rlj.rows.item(0).cells.item(i);if(this._6jb(_gjn)){if(_xld){_0qm=i;break;}else if(_0qm<0){_0qm=i;}}if(!_xld&&i==_xoa){_xld=true;}}return _0qm;};_opn.prototype._acj=function(e){if(!_zpn._qsh["hal"]["enableAccessibility"]||( e.target.getAttribute( "role" ) != "tab" ) ){return;}var _1zl=this._pee();switch(e.keyCode){case _4qn._wyc:case _4qn._1db:_4qn._w0g(e);_1zl=this._h2a(_1zl);if(_1zl>=0){this._pie(_1zl);this._rlj.rows.item(0).cells.item(_1zl).focus();}break;case _4qn._b8g:case _4qn._xyc:_4qn._w0g(e);_1zl=this._6i5(_1zl);if(_1zl>=0){this._pie(_1zl);this._rlj.rows.item(0).cells.item(_1zl).focus();}break;}};_opn.prototype._n6g=function(_xoa,_dwm){var td=this._rlj.rows.item(0).cells.item(_xoa);if(td){_4qn._1je(td.firstChild.firstChild, _dwm);}};_opn.prototype._xem=function(_xqm){if(!this._sgg){return;}this._a7i.style.display="";this._rkm.style.display="";this._dgj.style.width=_6hn._iem(_xqm-(this._a7i.offsetWidth+this._rkm.offsetWidth))+ "px";if(this._dgj.scrollWidth==this._dgj.offsetWidth){this._a7i.style.display="none";this._rkm.style.display="none";this._dgj.style.width=_xqm+"px";}this._aa2();};_opn.prototype._ank=function(e){this._aa2();};_opn.prototype._pwh=function(e){this._1t3();if(!this._a7i.disabled){_5ml._jll(["haljs!hal/_cm9.js"],function(){if(this._rlj){this._029=new _cm9(this._dgj, this._dgj.scrollLeft-200);this._029._dgn();}}.bind(this));}};_opn.prototype._6hm=function(e){this._1t3();if(!this._rkm.disabled){_5ml._jll(["haljs!hal/_cm9.js"],function(){if(this._rlj){this._029=new _cm9(this._dgj, this._dgj.scrollLeft+200);this._029._dgn();}}.bind(this));}};_opn.prototype._aa2=function(){if(!this._sgg){return;}var _zwk=(this._dgj.scrollLeft>0);this._a7i.disabled=!_zwk;this._a7i.setAttribute( "hal_disabled", _zwk?"false":"true" );var _zwk=(this._dgj.scrollLeft<(this._dgj.scrollWidth-this._dgj.offsetWidth));this._rkm.disabled=!_zwk;this._rkm.setAttribute( "hal_disabled", _zwk?"false":"true" );};_opn.prototype._1t3=function(){if(this._029){this._029._adm();this._029=null;}};
|