// 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. var _tce=new _lcm("_tce");_tce._jgn=function(_8rm){this._0jm=_8rm;this._4le();};_tce._src=function(){this._s2n=new _lfn(this._2oh("deckMain"));this._wgd="black";this._y7a=["#993333", "#CC9933", "#339966"];this._4l6=[33.33, 66.66];};_tce._fdm=function(){if(this._s2n){this._s2n._fdm();delete this._s2n;}};_tce._5z2=function(){this._prb=_frh._53g("NamedChartPalettes").selectSingleNode( "*" );this._y2n=new _pgk(this._2oh("divList"), _frh._53g("ChartPalette"), this);this._slj=this._2oh("trTop");this._f3f=this._2oh("trBottom");this._4id=this._2oh("trHighLow");this._3k7(this._0jm?this._0jm.selectSingleNode("gaugePalette"):this._d0n._xrb);this._y2n._wfn();this._y2n._gwc(0);this._jse();this._3bg();};_tce._o46=function(){this._y2n._fdm();delete this._y2n;delete this._0jm;delete this._prb;};_tce._bgn=function(){if(this._y2n._tfe().length>0){if(this._d0n._phn){var _l6l=_erh._cnh("gaugePalette");this._2o8(_l6l);this._d0n._phn(_l6l);}else{_erh._ybb();_8qn._k5g(this._0jm, "gaugePalette | gaugePaletteRef");if(!this._nr8()){var _33m=_erh._h56(this._0jm, "gaugePalette");this._2o8(_33m);}_erh._iee();}this._3le();}else{_67j("IDS_MSG_ONE_PALETTE", null, _2dm._bfm);}};_tce._3wc=function(e){if(e.keyCode==_4qn._qrh){e.stopPropagation();}};_tce._5ab=function(e){switch(e.keyCode){case _4qn._x8j:e.preventDefault();e.keyCode=0;e.stopPropagation();this._2oh("btnOK").focus();break;default:_4qn._yo3(e, !this._2oh("chkPercent").checked, 'float');}};_tce._pe4=function(_a6k,_mzj,_zdf){if(_a6k._ezm()=="_tce_divList"){if(this._ys7&&this._ys7.getAttribute("type")=="numeric"){this._9k6(this._ys7);}this._xth(_mzj.getAttribute("type"));this._jse();this._ys7=_mzj;}};_tce._a5g=function(){var _84k=this._y2n._tfe();var _soj=this._2oh("radDiscrete").checked;if(_soj&&!this._to5&&(_84k.length>0)){this._to5=true;if(_84k.length>0){_84k.item(0).parentNode.removeChild(_84k.item(0));}}else if(!_soj&&this._to5&&(_84k.length>0)){this._to5=false;var _tyl;for(var i=0; i<_84k.length; i++){var _pen=_84k.item(i).getAttribute("type");if(_pen=="numeric"){_tyl=isNaN(_tyl)?parseFloat(_84k.item(i).getAttribute("value")):_tyl;break;}}var _zvl=false;if(this._2oh("chkPercent").checked){if(_tyl==0){if(_84k.length>0){_84k.item(0).parentNode.removeChild(_84k.item(0));}}else{_zvl=true;_tyl=0;}}else{_tyl=_tyl>0?0:_tyl-1;_zvl=true;}if(_zvl){var _iln=this._y2n._eq9().ownerDocument.createElement("listItem");_iln.setAttribute("type", "numeric");_iln.setAttribute("value", _tyl);_iln.setAttribute("label", this._wp8(_tyl));this._y2n._5g8().insertBefore(_iln, this._y2n._5g8().selectSingleNode("*"));}}this._y2n._wfn();this._y2n._gwc(0);this._jse();this._3bg();};_tce._m7j=function(){if(this._2oh("radDiscrete").checked){this._2oh("radDiscrete").checked=true;}else{this._2oh("radContinuous").checked=true;}};_tce._y0g=function(_pvm){var _y1k=this._y2n._885();this._jv7=_pvm;_8fm._jgn( "cchl/dialogs/_1zm", this._xp9(), false, _y1k.getAttribute(_pvm), _frh._c6j( "IDS_LBL_" + _pvm ), this );};_tce._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":var _y1k=this._y2n._885();var _pvm=_e5m._6ik();if(_pvm==""){switch(this._jv7){case "COLOR":_pvm=this._wgd;break;}}_y1k.setAttribute(this._jv7, _pvm);this._86a(_y1k);this._jse();this._y2n._wfn();this._3bg();}};_tce._0qh=function(){var _ini=this._y2n._5g8();var _a58=this._y2n._885();var _9an=_a58?_a58.previousSibling:null;var _87n;var _77n;var _njn=0;var _46l=null;var _wai=this._y2n._tfe().length==0;if(!_wai){while(_9an){if(_9an.getAttribute("type")=="numeric"){_87n=parseFloat(_9an.getAttribute("value"));break;}_9an=_9an.previousSibling;}_9an=_a58;while(_9an){if(_9an.getAttribute("type")=="numeric"){_77n=parseFloat(_9an.getAttribute("value"));break;}_9an=_9an.nextSibling;}if(!isNaN(_87n)&&!isNaN(_77n)){_njn=(_87n+_77n)/ 2;}else if(isNaN(_87n)&&!isNaN(_77n)){if(this._2oh("chkPercent").checked){_njn=_77n / 2;}else{_njn=_77n-1;}}else if(!isNaN(_87n)&&isNaN(_77n)){if(this._2oh("chkPercent").checked){_njn=(_87n+100)/ 2;}else{_njn=_87n+1;}}else{_njn=50;}if(_njn==0&&_77n==0){_67j("IDS_MSG_ZERO_PROBLEM");return;}_46l=_ini.ownerDocument.createElement("listItem");_46l.setAttribute("type", "numeric");_46l.setAttribute("value", _njn);_46l.setAttribute("label", this._wp8(_njn));}else if(this._2oh("radContinuous").checked){var _njn=50;var _46l=_ini.ownerDocument.createElement("listItem");_46l.setAttribute("type", "numeric");_46l.setAttribute("value", _njn);_46l.setAttribute("label", this._wp8(_njn));}var _crm=_ini.ownerDocument.createElement("listItem");if(_a58&&_a58.getAttribute("type")=="numeric"){_a58=_a58.previousSibling;}_ini.insertBefore(_crm, _a58?_a58.nextSibling:null);if(_46l){_ini.insertBefore(_46l, _crm);}_crm.setAttribute("type", "color");_crm.setAttribute("COLOR", this._wgd);_crm.setAttribute("selected", "true");this._86a(_crm);this._xth(_crm.getAttribute("type"));this._jse();this._y2n._wfn();this._3bg();this._y2n._uab(_crm);};_tce._ovc=function(){var _y1k=this._y2n._885();var _g4m=this._y2n._tfe();if(_y1k){if(_y1k.getAttribute("type")=="numeric"){_y1k.nextSibling.parentNode.removeChild(_y1k.nextSibling);}else{if(_y1k.previousSibling){_y1k.previousSibling.parentNode.removeChild(_y1k.previousSibling);}else if(_y1k.nextSibling){_y1k.nextSibling.parentNode.removeChild(_y1k.nextSibling);}}_y1k.parentNode.removeChild(_y1k);this._y2n._wfn();if(this._y2n._tfe().length>0){this._y2n._gwc(0);}this._jse();this._3bg();var _mzj=this._y2n._885();if(_mzj){this._xth(_mzj.getAttribute("type"));}}};_tce._a7j=function(e){if(e.ctrlKey){switch(e.keyCode){case "X".charCodeAt(0):this._mhe();break;case "C".charCodeAt(0):this._nvc();break;case "V".charCodeAt(0):this._z9b();break;}}else if(e.keyCode==_4qn._qrh){this._ovc();}this._1f7(e);};_tce._mhe=function(){this._nvc();this._y2n._bzm();this._jse();this._y2n._wfn();this._3bg();};_tce._nvc=function(){var n=this._0jm.ownerDocument.createElement("gaugePalette");this._2o8(n);_dth._2k2(n);_4aj._3bb([n]);};_tce._z9b=function(){var _rlm=_4aj._z6b();if(_rlm&&_rlm[0]&&_rlm[0].nodeName=="gaugePalette"){this._ml5(_rlm[0]);}};_tce._ia6=function(_fod){this._9k6(this._ys7, _fod);};_tce._yem=function(_5qm){this._y2n._gwc(_5qm);};_tce._0ab=function(){var _soj=this._2oh("radDiscrete").checked;var _0f9=this._y2n._tfe();var _aoa=this._y2n._5g8().selectNodes("listItem[@type='numeric']").length;var _6pm=_soj?100 /(_aoa+1):100 / _aoa;var _8pm;var _52l=_soj?1:0;for(var i=0; i<_0f9.length; i++){var _irm=_0f9.item(i);if(_irm.getAttribute("type")=="numeric"){if(this._2oh("chkPercent").checked){_8pm=_6pm*_52l++;}else{_8pm=parseFloat(_irm.getAttribute("value"));}_irm.setAttribute("value", _8pm);_irm.setAttribute("label", this._wp8(_8pm));}}this._y2n._wfn();this._3bg();_4qn._1je( this._2oh("lblNumeric"), _frh._c6j(this._2oh("chkPercent").checked?"IDS_LBL_NUMERIC_PERCENTAGE":"IDS_LBL_NUMERIC_ABSOLUTE") );};_tce._0a5=function(){var btn=this._2oh("btnNamed");var _yua=this._prb.selectNodes("namedChartPalette[gaugePalette]");var _ozj=_frh._53g("EmptyList");_ozj.setAttribute("smallIconWidth", "48px");var _ini=_ozj.selectSingleNode("listItems");var d=_ozj.ownerDocument;for(var i=0; i<_yua.length; i++){var n=_yua.item(i);var _mzj=_ini.appendChild(d.createElement("listItem"));_mzj.setAttribute( "value", n.getAttribute( "id" ) );_8qn._9rc(_mzj, n, "idsLabel");_8qn._9rc(_mzj, n, "label");_8qn._9rc(_mzj, n, "idsTooltip");_8qn._9rc(_mzj, n, "tooltip");_8qn._9rc(_mzj, n, "smallIcon");}_u0n._2a6(this, btn, "gaugePalette", "default", _ozj, NaN, this._2oh("divList").offsetWidth * 1.3 + 48);};_tce._xm=function(_xgc,_5en,_uxm){var _uvd=this._prb.selectSingleNode("namedChartPalette[@id=" + _cgm._zxc( _uxm ) + "]/gaugePalette");this._ml5(_uvd);};_tce._86a=function(_mzj){switch(_mzj.getAttribute("type")){case "color":var _pvm=_mzj.getAttribute("COLOR")||"transparent";_mzj.setAttribute( "html", '' );break;}this._vp4(_mzj);};_tce._jse=function(){var _y1k=this._y2n._885();if(_y1k){this._2oh("rightside").style.visibility = "inherit";switch(_y1k.getAttribute("type")){case "color":_u0n._2b5(this._2oh("btnColor"), _y1k.getAttribute("COLOR"));break;case "numeric":this._2oh("txtNumeric").value = _8gm._fd7( _y1k.getAttribute("value") );_4qn._1je( this._2oh("lblNumeric"), _frh._c6j(this._2oh("chkPercent").checked?"IDS_LBL_NUMERIC_PERCENTAGE":"IDS_LBL_NUMERIC_ABSOLUTE") );break;}}else{if(this._2oh("rightside")){this._2oh("rightside").style.visibility = "hidden";}}this._8lb();};_tce._8lb=function(){var _y1k=this._y2n._885();this._pj8("btnDelete", _y1k);};_tce._xth=function(_ncn){switch(_ncn){case "color":this._s2n._ujk(0);break;case "numeric":this._s2n._ujk(1);break;}};_tce._nr8=function(_by7){var _0f9=this._y2n._tfe();if(_0f9.length!=(this._4l6.length+this._y7a.length)){return false;}for(var i=0; i<_0f9.length; i++){if(_0f9.item(i)){switch(_0f9.item(i).getAttribute("type")){case "numeric":if(!this._4l6[(i-1)/2]||_0f9.item(i).getAttribute("value")!=this._4l6[(i - 1)/2]){return false;}break;case "color":if(!this._y7a[i/2]||_0f9.item(i).getAttribute("COLOR")!=this._y7a[i/2]){return false;}break;}}else{return false;}}if(_by7){return true;}return this._2oh("chkPercent").checked&&this._2oh("radDiscrete").checked;};_tce._2o8=function(_33m){_33m.setAttribute("percentValues", this._2oh("chkPercent").checked?"true":"false");var _0f9=this._y2n._tfe();if(this._2oh("radDiscrete").checked){var _wxj=_erh._u0g(_33m, "discreteGaugePalette");for(var i=0; i<_0f9.length; i++){var _l6l=_0f9.item(i);var _f9c=_erh._u0g(_wxj, "discreteGaugePaletteEntry");_f9c.setAttribute("discreteGaugePaletteColor",_l6l.getAttribute("COLOR")?_l6l.getAttribute("COLOR"):this._wgd);if(i+1<_0f9.length){i++;_f9c.setAttribute("discreteGaugePaletteValue", _0f9.item( i ).getAttribute("value"));}}}else{var _o2h=_erh._u0g(_33m, "continuousChartPalette");var _uxm;for(var i=0; i<_0f9.length; i++){var _l6l=_0f9.item(i);switch(_l6l.getAttribute("type")){case "color":var _hb9=_erh._u0g(_o2h, "continuousChartPaletteEntry");_hb9.setAttribute("paletteEntryValue", _uxm);_hb9.setAttribute("paletteEntryColor", _l6l.getAttribute("COLOR"));break;case "numeric":_uxm=_l6l.getAttribute("value");}}}};_tce._ml5=function(_l6l){if(_l6l.nodeName=="gaugePalette"){this._3k7(_l6l);this._jse();this._y2n._wfn();this._3bg();}};_tce._3k7=function(_l6l){this._y2n._bzm();if(_l6l){this._2oh("chkPercent").checked = _l6l.getAttribute("percentValues")=="true";var _wxj=_l6l.selectSingleNode("discreteGaugePalette");if(_wxj){this._2oh("radDiscrete").checked=true;this._to5=true;var _o3k=_wxj.selectNodes("discreteGaugePaletteEntry");for(var i=0; i<_o3k.length; i++){var _e3h=this._y2n._767();_e3h.setAttribute("type", "color");_e3h.setAttribute("COLOR", _o3k.item( i ).getAttribute("discreteGaugePaletteColor"));this._86a(_e3h);var _uxm=_o3k.item(i).getAttribute("discreteGaugePaletteValue");if(_uxm){var _kjf=this._y2n._767();_kjf.setAttribute("type", "numeric");_kjf.setAttribute("value", _uxm);_kjf.setAttribute("label", this._wp8(parseFloat(_uxm), _l6l.getAttribute("percentValues")=="true"));}}this._y2n._wfn();this._y2n._gwc(0);this._3bg();return;}var _o2h=_l6l.selectSingleNode("continuousChartPalette");if(_o2h){this._2oh("radContinuous").checked=true;this._to5=false;var _o3k=_o2h.selectNodes("continuousChartPaletteEntry");for(var i=0; i<_o3k.length; i++){var _uxm=_o3k.item(i).getAttribute("paletteEntryValue");var _kjf=this._y2n._767();_kjf.setAttribute("type", "numeric");_kjf.setAttribute("value", _uxm);_kjf.setAttribute("label", this._wp8(parseFloat(_uxm), _l6l.getAttribute("percentValues")=="true"));var _fli=this._y2n._767();_fli.setAttribute("type", "color");_fli.setAttribute("COLOR", _o3k.item( i ).getAttribute("paletteEntryColor"));this._86a(_fli);}this._y2n._wfn();this._y2n._gwc(0);this._3bg();return;}}else{this._iz();this._2oh("chkPercent").checked=true;this._2oh("radDiscrete").checked=true;this._to5=true;}};_tce._9k6=function(_5ua,_fod){if(_5ua.getAttribute("type")=="numeric"){var _uxm=this._2oh("txtNumeric").value;var _uyl=_cgm._6qh(_uxm);if(isNaN(_uyl)){if(!_fod){_67j("IDS_HAL_ERR_INVALID_NUMBER");this._2oh("txtNumeric").value = _8gm._fd7( _5ua.getAttribute("value") );}return;}if(this._2oh("chkPercent").checked&&(_uyl<0||_uyl>100)){if(!_fod){_67j("IDS_ERR_BAD_PERCENT");this._2oh("txtNumeric").value = _8gm._fd7( _5ua.getAttribute("value") );}return;}var _m9h=this._y2n._tfe();for(var i=0; i<_m9h.length; i++){if(_m9h.item(i)==_5ua){if(i>2){var _87n=parseFloat(_m9h.item(i-2).getAttribute("value"));if(_uyl<=_87n){if(!_fod){_67j("IDS_ERR_LESS_THEN_PREV");this._2oh("txtNumeric").value = _8gm._fd7( _5ua.getAttribute("value") );}return;}}if(i+2<_m9h.length){var _77n=parseFloat(_m9h.item(i+2).getAttribute("value"));if(_uyl>=_77n){if(!_fod){_67j("IDS_ERR_GREATER_THEN_NEXT");this._2oh("txtNumeric").value = _8gm._fd7( _5ua.getAttribute("value") );}return;}}break;}}if(!_fod){this._2oh("txtNumeric").value=_8gm._fd7(_uyl);}_5ua.setAttribute("label", this._wp8(_uyl));_5ua.setAttribute("value", _uyl.toString());this._y2n._wfn();this._3bg();}};_tce._3bg=function(){while(this._slj.cells.length>0){this._slj.deleteCell(0);}while(this._f3f.cells.length>0){this._f3f.deleteCell(0);}if(this._2oh("radDiscrete").checked){this._bg5();}else{this._bu3();}};_tce._bu3=function(){var _1ul=[];var _4vl=[];var _fyk=this._2oh("chkPercent").checked;this._4y3(_4vl, _1ul, true);var _cyg=parseFloat(_4vl[0]);var _hyg=parseFloat(_4vl[_4vl.length-1]);for(var i=1; i<_1ul.length; i++){var _ibl=this._slj.insertCell(this._slj.cells.length);var _bah=this._f3f.insertCell(this._f3f.cells.length);var _eyg;var _90l=parseFloat(_4vl[i]);var _otj=i>0?parseFloat(_4vl[i-1]):_cyg;if(_fyk){_eyg=_90l-_otj;}else{_eyg=(_90l-_otj)/(_hyg-_cyg)*100;}_eyg=_eyg>5?_eyg:5;_bah.style.width=_eyg+"%";_ibl.style.width=_eyg+"%";_n0n._0k8(_ibl, _1ul[i-1].getAttribute("COLOR"), _1ul[i].getAttribute("COLOR"), "right");this._0eg(this._wp8(_4vl[i-1]), _bah);}if(_1ul.length>1){var _o3j=this._f3f.cells[this._f3f.cells.length-1];_4qn._1je(_o3j, "");this._e6a(_o3j, parseFloat(_4vl[_4vl.length-2]), parseFloat(_4vl[_4vl.length-1]));}};_tce._bg5=function(){var _m4n=[];var _4vl=[];var _fyk=this._2oh("chkPercent").checked;this._4y3(_4vl, _m4n, false);var _jhi=0;var _rrd=1;var _cyg=_fyk?Math.min(parseFloat(_4vl[0]), 0):parseFloat(_4vl[0]);var _hyg=_fyk?Math.max(parseFloat(_4vl[_4vl.length-1]), 100):parseFloat(_4vl[_4vl.length-1]);var _wqm=0;for(var i=0; i<_m4n.length; i++){var _ibl=this._slj.insertCell(this._slj.cells.length);var _bah=this._f3f.insertCell(this._f3f.cells.length);var _39n=_m4n[i];switch(_39n.getAttribute("type")){case "color":_ibl.style.backgroundColor=_39n.getAttribute("COLOR");break;}_ibl.style.cursor="pointer";_ibl.onclick=Function('_tce._yem(' + _jhi + ')');_bah.style.borderRight="solid black 1px";var _men=i==0?0:_4vl[_wqm++];if(i==_m4n.length-1&&_fyk){this._e6a(_bah, parseFloat(_4vl[_4vl.length-1]), 100);}else if(!(i==0&&!_fyk)){this._0eg(this._wp8(_men), _bah);}var _eyg;var _90l=parseFloat(_4vl[_wqm]);var _otj=i>0?parseFloat(_4vl[_wqm-1]):_cyg;if(_fyk){_eyg=_90l-_otj;}else{_eyg=i==0||i==_m4n.length-1?10:(_90l - _otj)/(_hyg-_cyg)*100;}if(!isNaN(_eyg)){if(_fyk||i!=_m4n.length-2){_bah.style.width=_eyg+"%";_ibl.style.width=_eyg+"%";}}_bah.onclick=Function('_tce._yem(' + _rrd + ')');_bah.style.cursor="pointer";_jhi+= 2;_rrd+= 2;}if(this._slj.cells.length==0){this._slj.insertCell(this._slj.cells.length);}if(this._f3f.cells.length==0){this._f3f.insertCell(this._f3f.cells.length);}};_tce._wp8=function(_uyl,_fyk){var _c0l=Math.round(_uyl*100)/ 100;if(this._2oh("chkPercent").checked||_fyk){return _frh._c6j("IDS_HAL_CSS_LENGTH_UNIT_PERCENTAGE", _8gm._fd7(_c0l._fd7));}return _8gm._fd7(_c0l);};_tce._iz=function(){for(var i=0;i0){_4vl.push("0");_xod=true;}_4vl.push(_uxm);break;case "color":if(_xod){_xod=false;_flm.push(_o3k.item(i));}_flm.push(_o3k.item(i));}}if(_zs6&&_fyk&&parseFloat(_4vl[_4vl.length-1])<100){_4vl.push("100");_flm.push(_o3k.item(_o3k.length-1));}if(!_zs6&&_fyk&&!_4vl.length){_4vl.push("0");}};_tce._e6a=function(_pbm,_9yg,_3cf){_pbm.style.padding="2px";_pbm.style.borderRight="solid black 1px";_pbm.style.textAlign="left";_pbm.className="clsDialogText";_pbm.style.whiteSpace="nowrap";var _lxl=_pbm.ownerDocument.createElement("div");_pbm.appendChild(_lxl);_lxl.style.display="inline";_lxl.style.width="50%";_lxl.style.textAlign="left";_4qn._1je(_lxl, this._wp8(_9yg));_lxl.title=_4qn._ofe(_lxl);var _izk=_pbm.ownerDocument.createElement("div");_pbm.appendChild(_izk);_izk.style.display="inline";_izk.style.width="50%";_izk.style.textAlign="right";_4qn._1je(_izk, this._wp8(_3cf));_izk.title=_4qn._ofe(_izk);};_tce._vp4=function(_mzj){if(!_zpn._qsh["hal"]["enableAccessibility"]){return;}var _yvi;switch(_mzj.getAttribute("type")){case "color":_yvi=_4qn._087(_mzj.getAttribute("COLOR"));break;}if(_yvi){_mzj.setAttribute("sAriaLabel", _yvi);}};