_xt5.js 11 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: irot
  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. _xt5._ct7=0;_xt5._ko4=2;_xt5._gb5=3;_xt5._409=4;_xt5._v87=5;_xt5._x87=6;function _xt5(_9j4, _nn5, _vl7, _wx6, _a45){_be9._452("_4k2");_be9._452("_0g2");_xt5.baseConstructor.call(this, _9j4, _nn5, _vl7, _a45);this._5q6=_wx6;this._wp2;this._tp2;this._yk2();this._4e;this._2b2={};this._2b2[ "min" ]=null;this._2b2[ "max" ]=null;this._uc7={};this._uc7[ "min" ]=null;this._uc7[ "max" ]=null;this._r36={};this._r36[ "min" ]=null;this._r36[ "max" ]=null;this._o74={};this._o74[ "min" ]=null;this._o74[ "max" ]=null;this._a99();this._zl2();};_9t7._v88(_xt5, _zf2);_xt5.prototype._1o8=function(){this._wp2._1o8();this._tp2._1o8();this._lp8();};_xt5.prototype._yk2=function(){_xt5.superClass._yk2.call(this);this._qo6=this._j74.getAttribute("multiLine")=="true";};_xt5.prototype._8j3=function(_8a9){if(!this._dv4){return null;}var _yk8;switch(this._5q6){case _xt5._ko4:case _xt5._gb5:_yk8="date";break;case _xt5._409:_yk8="time";break;case _xt5._v87:_yk8="dateTime";break;case _xt5._x87:_yk8="interval";break;default:_yk8="simpleValue";break;}var _3a4=_4k2._x42(this._dv4, _yk8);return(_3a4===null?null:_3a4[ _8a9?0:1 ]);};_xt5.prototype._zl2=function(){if(!this._gb7){this._zm2(true);this._zm2(false);this._gp();}};_xt5.prototype._a99=function(){this._4e="min";this._x24(true);this._4e="max";this._x24(false);this._4e=null;};_xt5.prototype._x24=function(_8a9){var _j65=this._h73.insertRow(this._h73.rows.length);if(this._5t4){_j65.setAttribute(_1k4._m87, _1k4._424);if(_fe9._a04(_j65)){_j65.style.textAlign="right";}}var _d65=_j65.insertCell(0);if(!this._gb7){_d65.setAttribute( "colSpan", "2" );}_d65.className=this._5t4?"pc":"clsDialogText";_d65.style.paddingBottom="2px";if(!_8a9){if(!this._5t4||(this._k53>=11.5)){_d65.style.paddingTop=(this._k53>=11.5)?"16px":"15px";}}_fe9._u95(_d65, _8a9? (this._j74.getAttribute("fromText")||this._ol2( "PMT_RNG_FROM", "IDS_CCHL_PRMT_FROM" )): (this._j74.getAttribute("toText")||this._ol2( "PMT_RNG_TO", "IDS_CCHL_PRMT_TO" )) );if(_be9._kl6["hal"]["enableAccessibility"]){_d65.tabIndex=0;_d65.setAttribute( "role", "gridcell" );}var _8n8=this._h73.insertRow(this._h73.rows.length);var _dx3;if(!this._gb7){if(this._5t4){if(this._5q6!=_xt5._ct7||!this._qo6){_8n8.setAttribute(_1k4._m87, _1k4._324);}}var _7t5=_8n8.insertCell(0);if(this._5t4){_7t5.setAttribute(_1k4._m87, _1k4._524);if(this._k53>=11.5){_7t5.style.paddingTop="8px";}}else{_7t5.style.width="20px";_7t5.style.verticalAlign="top";_7t5.style.paddingLeft="6px";}var _sp7=_fe9._sv5();var _my4=this._m03(_8a9, _7t5, _sp7, _fe9._485(_d65));this._r36[_8a9?"min":"max"]=_my4;_dx3=_8n8.insertCell(1);if(this._5t4){_dx3.style.width="100%";}else{_dx3.style.paddingLeft="6px";}}else{_dx3=_8n8.insertCell(0);if(this._5t4){_dx3.style[_fe9._a04(_dx3)?"paddingRight":"paddingLeft"] = "8px";}else{_dx3.style.paddingLeft="16px";}}var _uc3=_dx3.appendChild(document.createElement("table"));_io4._h81(_uc3);if(this._5t4){_dx3.style.verticalAlign="top";_uc3.classList.add(_1k4._bb5);_uc3.setAttribute("nemesis_id","PromptControl");if(_kx5._y14){_uc3.classList.add(_1k4._cb5);}if(_fe9._a04(_dx3)){_dx3.classList.add("clsDirectionRtl");} } this._lk1(_uc3, _8a9?"tblMinValue":"tblMaxValue");this._tt1(_8a9, _uc3, _fe9._485(_d65));if(!this._gb7){var _cn8=this._h73.insertRow(this._h73.rows.length);var _ex3=_cn8.insertCell(0);if(this._5t4){if(_fe9._a04(_cn8)){_cn8.style.textAlign="right";}if(this._5q6==_xt5._ct7&&this._qo6){_cn8.setAttribute(_1k4._m87, _1k4._324);}_ex3.setAttribute(_1k4._m87, _1k4._524);if(this._k53>=11.5){_ex3.style.paddingTop="16px";}}else{_ex3.style.width="20px";_ex3.style.paddingLeft="6px";}var _df2=this._dj1(_8a9);var _my4=this._m03(_8a9, _ex3, _sp7,(_fe9._485(_d65)+_df2));this._o74[(_8a9?"min":"max")]=_my4;var _wh6=_cn8.insertCell(1);_wh6.className=this._5t4?"pc":"clsDialogText";if(this._5t4){_wh6.style.verticalAlign="top";if(!!this._k53&&(this._k53<11.5)){_wh6.style.paddingTop="5px";}if(this._k53>=11.5){_wh6.style.paddingTop="16px";}}else{var b=!!this._k53&&(this._k53>11.4);_wh6.style.color=b?_3z2._fx2( "--ui-05" ):"black";_wh6.style.fontSize=b?_3z2._fx2( "--BODY-S" ):"11px";_wh6.style.paddingTop="2px";_wh6.style.paddingLeft="8px";}var _765=_wh6.appendChild(document.createElement("span"));_fe9._u95(_765, _df2);_765.setAttribute( "_qm7", ( _8a9?"min":"max" ) );_765.onclick=_xt5._fv;}};_xt5._fv=function(e){e.stopPropagation();var _8a9=( this.getAttribute( "_qm7" )=="min" );var _7g4=_zf2._0j6(this);_7g4._zm2(_8a9, "boundary");if(!_7g4._3f5){_7g4._xu();}};_xt5.prototype._dj1=function(_8a9){var _p35;switch(this._5q6){case _xt5._ct7:_p35=_8a9? (this._j74.getAttribute("lowestValueText")||this._ol2( "PMT_RNG_LOWEST_VALUE", "IDS_CCHL_PRMT_LOWEST_VALUE" )): (this._j74.getAttribute("highestValueText")||this._ol2( "PMT_RNG_HIGHEST_VALUE", "IDS_CCHL_PRMT_HIGHEST_VALUE" ));break;case _xt5._ko4:case _xt5._gb5:case _xt5._v87:_p35=_8a9? (this._j74.getAttribute("lowestValueText")||this._ol2( "PMT_RNG_EARLIEST_DATE", "IDS_CCHL_PRMT_EARLIEST_DATE" )): (this._j74.getAttribute("highestValueText")||this._ol2( "PMT_RNG_LATEST_DATE", "IDS_CCHL_PRMT_LATEST_DATE" ));break;case _xt5._409:_p35=_8a9? (this._j74.getAttribute("lowestValueText")||this._ol2( "PMT_RNG_EARLIEST_TIME", "IDS_CCHL_PRMT_EARLIEST_TIME" )): (this._j74.getAttribute("highestValueText")||this._ol2( "PMT_RNG_LATEST_TIME", "IDS_CCHL_PRMT_LATEST_TIME" ));break;case _xt5._x87:_p35=_8a9? (this._j74.getAttribute("lowestValueText")||this._ol2( "PMT_RNG_LOWEST_INTERVAL", "IDS_CCHL_PRMT_LOWEST_INTERVAL" )): (this._j74.getAttribute("highestValueText")||this._ol2( "PMT_RNG_HIGHEST_INTERVAL", "IDS_CCHL_PRMT_HIGHEST_INTERVAL" ));break;}return _p35;};_xt5.prototype._m03=function(_8a9,_zz7,_sp7,_r17){var _4g8=_zz7.appendChild(document.createElement("label"));_4g8.className="clsRadioButton";if(this._5t4){_4g8.classList.add("pc");}var _7l5=_4g8.appendChild(document.createElement("input"));_7l5.setAttribute( "type", "radio" );_7l5.setAttribute( "name", ( _8a9?"from":"to" ) + _sp7 );_7l5.onclick=_xt5._u13;this._lk1(_7l5, _8a9?"radioMinValue":"radioMaxValue");if(_be9._kl6["hal"]["enableAccessibility"]){_7l5.setAttribute("aria-label", _r17);}var _2u8=_4g8.appendChild(document.createElement("span"));return _7l5;};_xt5.prototype._tt1=function(_8a9,_uc3,_of6){if(this._5t4){if(this._5q6!=_xt5._409&&this._5q6!=_xt5._v87){_uc3.style.width=_uc3.style.height="100%";}}else{_uc3.style.width="100%";}var _7g4;switch(this._5q6){case _xt5._ct7:_1k4._sv2(this._j74, _of6);_7g4=new _0g2(_uc3, this._j74, this, this._8j3(_8a9));break;case _xt5._ko4:_7g4=new _ry(_uc3, this._j74, this, false, this._8j3(_8a9), _uc3);break;case _xt5._gb5:_7g4=new _961(_uc3, this._j74, this, this._8j3(_8a9));break;case _xt5._409:_7g4=new _a61(_uc3, this._j74, this, !_8a9, this._8j3(_8a9), _uc3);break;case _xt5._v87:_7g4=new _l12(_uc3, this._j74, this, !_8a9, this._8j3(_8a9));break;case _xt5._x87:_7g4=new _ji(_uc3, this._j74, this, this._8j3(_8a9));break;}if(_8a9){this._wp2=_7g4;}else{this._tp2=_7g4;}};_xt5.prototype._m6=function(_8g4){if(typeof this._wp2=="undefined"){this._2b2[ "min" ]=true;return;}if(_8g4==this._wp2){this._2b2[ "min" ]=true;}else{this._2b2[ "max" ]=true;}if(this._2b2[ "min" ]&&( this._2b2[ "max" ] ) ){this._ti1();}else{this._n11();}};_xt5.prototype._54=function(_8g4){if(_8g4==this._wp2){this._2b2[ "min" ]=false;}else{this._2b2[ "max" ]=false;}this._n11();};_xt5.prototype._pn4=function(){return(this._wp2._pn4()&&this._tp2._pn4());};_xt5.prototype._mu5=function(){return(this._wp2._mu5()&&this._tp2._mu5());};_xt5.prototype._uw5=function(_tp7){this._wp2._es7(_tp7);this._zm2(true);};_xt5.prototype._tw5=function(_tp7){this._tp2._es7(_tp7);this._zm2(false);};_xt5.prototype._th2=function(){var _qr5, _lr5;if(this._gb7||(this._r36[ "min" ].checked)){_qr5=this._wp2._th2()._tv5();}if(this._gb7||(this._r36[ "max" ].checked)){_lr5=this._tp2._th2()._tv5();}if((_qr5!=null)&&(_lr5!=null)){var _i79;switch(this._5q6){case _xt5._ct7:if(this._j74.getAttribute("numbersOnly")=="true"){var _0a6=Number(_qr5);var _z96=Number(_lr5);if(_899._bx5(_0a6, _z96)>0){_i79=_qr5;_qr5=_lr5;_lr5=_i79;}}else{if(_qr5>_lr5){_i79=_qr5;_qr5=_lr5;_lr5=_i79;}}break;case _xt5._x87:if(_4k2._7a5(_qr5, _lr5)>0){_i79=_qr5;_qr5=_lr5;_lr5=_i79;}break;case _xt5._ko4:case _xt5._gb5:case _xt5._409:case _xt5._v87:if(_4k2._6a5(_qr5, _lr5)>0){_i79=_qr5;_qr5=_lr5;_lr5=_i79;}break;}}var _pu3=this._wp2._th2();_pu3._0v7=true;_pu3._5x5(_qr5, _qx3._u87);_pu3._5x5(_lr5, _qx3._t87);return _pu3;};_xt5.prototype._681=function(_7g4){this._po(_7g4);this._5z5();};_xt5.prototype._po=function(_7g4){if(_7g4==this._wp2){this._zm2(true, "input");}else if(_7g4==this._tp2){this._zm2(false, "input");}if(!this._3f5){this._xu();}};_xt5.prototype._zm2=function(_8a9,_es5){if(this._gb7){return;}var _kd6=this._r36[(_8a9?"min":"max")];var _8f4=this._o74[(_8a9?"min":"max")];var _tx8=this._8j3(_8a9);if(_es5=="input"){_kd6.checked=true;}else if(!_tx8||_es5=="boundary"){_8f4.checked=true;}else{_kd6.checked=true;}};_xt5._u13=function(e){e.stopPropagation();var _7g4=_zf2._0j6(this);_7g4._gp();if(!_7g4._3f5){_7g4._xu();}};_xt5.prototype._cz8=function(){if(this._wp2&&this._wp2._cz8){this._wp2._cz8();}};_xt5.prototype._ga1=function(_8a9,_nn5){var _502=_nn5.selectSingleNode("value/item");if(!this._gb7){if(this._o74[(_8a9?"min":"max")].checked){_502=null;}}return _502;};_xt5.prototype._l3=function(_it8,_f49,_502,_8a9){var _lj7=_f49.appendChild(_it8.createElement((_8a9?"start":"end")));_lj7.setAttribute( "xsi:type", "bus:simpleParmValueItem" );for(var i=0;i<_502.childNodes.length;i++){_lj7.appendChild(_502.childNodes[ i ].cloneNode(true));}};_xt5.prototype._g01=function(_7g4){this._lt1(_7g4, true);if ((this._uc7[ "min" ]===true )||( this._uc7[ "max" ]===true ) ){this._gp();}};_xt5.prototype._ho=function(_7g4){this._lt1(_7g4, false);if ((this._uc7[ "min" ]===false )&&( this._uc7[ "max" ]===false ) ){this._gp();}};_xt5.prototype._lt1=function(_7g4,_at8){switch(_7g4){case this._wp2:this._uc7[ "min" ]=_at8;break;case this._tp2:this._uc7[ "max" ]=_at8;break;default:this._uc7[ this._4e ]=_at8;break;}};_xt5.prototype._gp=function(){if(!this._3f5){return;}var _y48=this._r36[ "min" ];var _x48=this._r36[ "max" ];if((_y48&&_x48&&!_y48.checked&&!_x48.checked)||(_y48&&!_y48.checked&&(this._uc7[ "max" ]===false))||(_x48&&!_x48.checked&&(this._uc7[ "min" ]===false))||(this._uc7[ "min" ]===false )&&( this._uc7[ "max" ]===false ) ){this._834();}else{this._9c5();}};_xt5.prototype._hk6=function(_ef8){if(this._wp2._hk6){this._wp2._hk6(_ef8);}if(this._tp2._hk6){this._tp2._hk6(_ef8);}};_xt5.prototype._z67=function(){if(this._wp2._z67&&this._tp2._z67){return(this._wp2._z67()&&this._tp2._z67());}return false;};_xt5.prototype._l98=function(){if(this._wp2._l98&&this._tp2._l98){return(this._wp2._l98()&&this._tp2._l98());}return false;};_xt5.prototype._cq1=function(){this._wp2._cq1();this._tp2._cq1();if(!this._gb7){this._o74["min"].checked=true;this._o74["max"].checked=true;}};_xt5.prototype._3j2=function(_8x8){this._wp2._3j2(_8x8["start"]);this._tp2._3j2(_8x8["end"]);if(!this._gb7){if(_8x8["start"]&&_8x8["start"]["use"]){this._r36["min"].checked=true;}else{this._o74["min"].checked=true;}if(_8x8["end"]&&_8x8["end"]["use"]){this._r36["max"].checked=true;}else{this._o74["max"].checked=true;}}};_xt5.prototype._0a5=function(_u96){this._wp2._0a5(_u96);this._tp2._0a5(_u96);};_xt5.prototype._cg1=function(){return this._2b2;};