// Licensed Materials - Property of IBM // IBM Cognos Products: irot // (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 _pt5(_zz7, _zs3, _vl7){this._7c8=0;this._x64=1;this._w64=1;this._0x7="";this._iv7=_zz7;this._0d7=_vl7;this._tv4="";this._2o3=_zs3;this._c99();};_pt5._ce5=150;_pt5._hn2=11;_pt5._nr4=150;_pt5._bw1=6;_pt5.prototype._gc5=function(_3l8){return this._2o3+_3l8;};_pt5.prototype._c99=function(){this._iv7.innerHTML=this._mj3();_4l6._jd3(this._iv7);this._ap6=document.getElementById(this._gc5("divPreview"));this._9p6=document.getElementById(this._gc5("divPalette"));this._7m1=document.getElementById(this._gc5("divSelectorInPalette"));this._pb7=document.getElementById(this._gc5("divHueBar"));this._oo2=document.getElementById(this._gc5("divSliderInHueBar"));this._or8=document.getElementById(this._gc5("txtRed"));this._nr8=document.getElementById(this._gc5("txtHue"));this._8x7=document.getElementById(this._gc5("txtGreen"));this._pr8=document.getElementById(this._gc5("txtSat"));this._rd8=document.getElementById(this._gc5("txtBlue"));this._mr8=document.getElementById(this._gc5("txtBri"));this._8s6=document.getElementById(this._gc5("txtRgbCode"));this._or8.onkeypress=_fe9._z9;this._8x7.onkeypress=_fe9._z9;this._rd8.onkeypress=_fe9._z9;this._nr8.onkeypress=_fe9._z9;this._pr8.onkeypress=_fe9._z9;this._mr8.onkeypress=_fe9._z9;this._591();this._7m1.style.top=-(_pt5._hn2 / 2)+'px';this._7m1.style.left=(_pt5._ce5-_pt5._hn2 / 2)+'px';};_pt5.prototype._1o8=function(){this._iv7=null;this._0d7=null;this._ap6=null;this._9p6=null;this._7m1=null;this._pb7=null;this._oo2=null;this._or8=null;this._nr8=null;this._8x7=null;this._pr8=null;this._rd8=null;this._mr8=null;this._8s6=null;};_pt5.prototype._wc=function(_ex8,_065){if(_ex8&&_ex8.substr(1).match(/^[0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F]$/i)){_ex8=_ex8.substr(1);this._8s6.value=_ex8;var _4c9=_209._eq1(_ex8);this._7c8=_4c9.hue;this._x64=_4c9.saturation;this._w64=_4c9.brightness;if(_065){this._tv4=_065;}this._pn6();}};_pt5.prototype._yq7=function(){this._0x7="";this._7c8=0;this._or8.value="";this._8x7.value="";this._rd8.value="";this._nr8.value="";this._pr8.value="";this._mr8.value="";this._8s6.value="";this._9p6.style.backgroundColor="";this._7m1.style.top=-(_pt5._hn2/2)+'px';this._7m1.style.left=(_pt5._ce5-_pt5._hn2/2)+'px';this._oo2.style.top=(_pt5._nr4-_pt5._bw1 / 2)+'px';this._ap6.style.backgroundColor="";};_pt5.prototype._6z3=function(){if(this._or8.value+this._8x7.value+this._rd8.value){return "#"+this._0x7;}return "";};_pt5.prototype._591=function(){this._7m1.onmousedown=this._rj3.bind(this);this._9p6.onmousedown=this._rj3.bind(this);this._oo2.onmousedown=this._nz5.bind(this);this._pb7.onmousedown=this._nz5.bind(this);this._or8.onchange=this._v33.bind(this);this._8x7.onchange=this._v33.bind(this);this._rd8.onchange=this._v33.bind(this);this._nr8.onchange=this._u33.bind(this);this._pr8.onchange=this._u33.bind(this);this._mr8.onchange=this._u33.bind(this);this._8s6.onchange=this._4l1.bind(this);};_pt5.prototype._wi3=function(){if(this._0d7&&this._0d7._ri){this._0d7._ri("#"+this._0x7);}};_pt5.prototype._m06=function(){this._0x7=_209._dq1(this._7c8, this._x64, this._w64);this._8s6.value=this._0x7;if(!this._0x7){this._or8.value="";this._8x7.value="";this._rd8.value="";}else{this._or8.value=parseInt(this._0x7.substr(0, 2), 16);this._8x7.value=parseInt(this._0x7.substr(2, 2), 16);this._rd8.value=parseInt(this._0x7.substr(4, 2), 16);}this._wi3();};_pt5.prototype._k06=function(){this._0x7=_209._dq1(this._7c8, this._x64, this._w64);this._8s6.value=this._0x7;this._nr8.value=Math.round(this._7c8);this._pr8.value=Math.round(this._x64*100);this._mr8.value=Math.round(this._w64*100);this._wi3();};_pt5.prototype._pn6=function(_3w6){this._4n2();this._7n2();this._sv1();if(_3w6&&typeof _3w6==="function"){_3w6.apply(this);this._5n2();return;}this._m06();this._k06();this._5n2();};_pt5.prototype._4n2=function(){this._9p6.style.backgroundColor='#'+_209._dq1(this._7c8, 1, 1);};_pt5.prototype._5n2=function(){if(this._0x7&&this._ap6){this._ap6.style.backgroundColor='#'+this._0x7;}if(this._tv4){_fe9._kk6(this._ap6,(100-parseInt(this._tv4)).toString());}};_pt5.prototype._7n2=function(){var _qh8=_pt5._ce5-Math.round(((this._7c8 / 360)*_pt5._ce5));this._oo2.style.top=(_qh8-_pt5._bw1 / 2)+'px';};_pt5.prototype._sv1=function(){var _218=Math.round(this._x64*(_pt5._ce5))-_pt5._hn2 / 2;var _qh8=_pt5._ce5-Math.round(this._w64*_pt5._ce5)-_pt5._hn2 / 2;this._7m1.style.left=(_218?_218:-_pt5._hn2 / 2)+'px';this._7m1.style.top=(_qh8?_qh8:(_pt5._ce5-_pt5._hn2 / 2))+'px';};_pt5.prototype._nz5=function(e){_d14._8a5({onmousemove:this._4d5.bind(this),onmouseup: this._hm6.bind(this)});this._4d5(e);};_pt5.prototype._rj3=function(e){_d14._8a5({onmousemove:this._gq4.bind(this),onmouseup: this._434.bind(this)});this._gq4(e);};_pt5.prototype._4d5=function(e){this._tv7=_fe9._yh2(this._pb7, this._pb7.ownerDocument.body).top;if(this._tv7>0){var _j39=e.clientY-this._tv7;_j39=Math.min(_j39, _pt5._ce5);_j39=Math.max(_j39, 0);this._oo2.style.top=(_j39-_pt5._bw1 / 2)+'px';var _na9=Math.round(((_pt5._ce5-_j39)*(360 / _pt5._ce5)));this._7c8=_na9;this._4n2();this._m06();this._k06();this._5n2();}};_pt5.prototype._gq4=function(e){var _yg8=_fe9._yh2(this._9p6, this._9p6.ownerDocument.body).left;var _dv8=_fe9._yh2(this._9p6, this._9p6.ownerDocument.body).top;var _9x6=e.clientX-_yg8;var _aj7=e.clientY-_dv8;_9x6=Math.max(_9x6, 0);_9x6=Math.min(_9x6, _pt5._ce5);_aj7=Math.max(_aj7, 0);_aj7=Math.min(_aj7, _pt5._ce5);this._7m1.style.left=(_9x6-_pt5._hn2 / 2)+'px';this._7m1.style.top=(_aj7-_pt5._hn2 / 2)+'px';this._x64=_9x6 / _pt5._ce5;this._w64=1-(_aj7 / _pt5._ce5);this._m06();this._k06();this._5n2();};_pt5.prototype._434=function(){_d14._dx5();};_pt5.prototype._hm6=function(){_d14._dx5();};_pt5.prototype._kk1=function(){var _ex8=_209._kn(this._or8.value, this._8x7.value, this._rd8.value);var _4c9=_209._eq1(_ex8);this._7c8=_4c9.hue;this._x64=_4c9.saturation;this._w64=_4c9.brightness;this._pn6(this._k06);};_pt5.prototype._jk1=function(){this._7c8=parseInt(this._nr8.value);this._x64=this._pr8.value / 100;this._w64=this._mr8.value / 100;this._pn6(this._m06);};_pt5.prototype._v33=function(e){var _fc9=e.target;var _hy8=_fc9.value;if(!_hy8.match(/^[0-9]+$/i)){_hy8=0;}_hy8=Math.min(_hy8, 255);_fc9.value=_hy8;if(this._or8.value&&this._8x7.value&&this._rd8.value){this._kk1();}};_pt5.prototype._u33=function(e){var _fc9=e.target;var _hy8=_fc9.value;if(!_hy8.match(/^[0-9]+$/i)){_hy8=0;}if(_fc9.id==this._gc5("txtHue")){_hy8=Math.min(_hy8, 360);}else{_hy8=Math.min(_hy8, 100);}_fc9.value=_hy8;if(this._nr8.value&&this._pr8.value&&this._mr8.value){this._jk1();}};_pt5.prototype._4l1=function(e){var _fc9=e.target;var _z68=_fc9.value;if(!_z68.match(/^[0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F]$/i)){_z68='';_fc9.value='';}else{var _4c9=_209._eq1(_z68);this._7c8=_4c9.hue;this._x64=_4c9.saturation;this._w64=_4c9.brightness;this._pn6();}};_pt5.prototype._mj3=function(){return('
' + _4l6._m67("IDS_CCHL_LBL_PREVIEW2") + '
' +'
' + '
' + '
' + '
'+'
' + '
' + '
' + '' + ''+'' + '' + ''+''+''+'' + '' + '' + ''+''+''+'' + '' + '' + ''+''+''+'' + '' + '' + ''+''+''+'' + '' + '' + ''+''+''+'' + '' + '' + ''+''+''+'' +''+''+''+''+''+'' + ''+''+''+''+''+'
'+'');};