// 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 _ho1(_6c8, _ssa, _b6k, _u5e){_zpn._la6("_frh");_zpn._la6("_tf7");_zpn._la6("_v47");_ho1.baseConstructor.call(this, _6c8, _ssa, _b6k, _u5e);this._htb={};this._1m7(this._0hd);this._9i7();this._9p6={};this._9p6[ "day" ]=null;this._9p6[ "hour" ]=null;this._9p6[ "minute" ]=null;this._9p6[ "second" ]=((this._ave||this._nq7)?null:true);this._9p6[ "millisecond" ]=(this._nq7?null:true);this._mij={};this._mij[ "day" ]=null;this._mij[ "hour" ]=null;this._mij[ "minute" ]=null;this._mij[ "second" ]=((this._ave||this._nq7)?null:false);this._mij[ "millisecond" ]=(this._nq7?null:false);this._gb1;this._8hn();};_olk._vjl(_ho1, _u47);_ho1.prototype._fdm=function(){this._5lg._fdm();this._rze._fdm();this._4ub._fdm();if(this._pub){this._pub._fdm();}if(this._gr5){this._gr5._fdm();}delete this._9p6;delete this._mij;delete this._htb;this._igm();};_ho1.prototype._dzm=function(){this._5lg._dzm();};_ho1.prototype._9i7=function(){_ho1.superClass._9i7.call(this);this._ave=false;this._nq7=false;if(this._9sb.getAttribute("showSeconds")){this._ave=( this._9sb.getAttribute( "showSeconds" )=="true" );}if(this._9sb.getAttribute("showMilliseconds")){this._nq7=( this._9sb.getAttribute( "showMilliseconds" )=="true" );}this._jng=this._qzh?"authoring":"prompting";};_ho1.prototype._1m7=function(_uxm){if(!_uxm||!_uxm.match(/^-?\d+\s\d\d:\d\d:\d\d\.\d\d\d$/gi)){return;}var _0jd=_uxm.split( " " );this._htb[ "day" ]=_0jd[ 0 ];var _8x7=_0jd[ 1 ].split(":");this._htb[ "hour" ]=this._p6d(_8x7[ 0 ]);this._htb[ "minute" ]=this._p6d(_8x7[ 1 ]);var _jt5=_8x7[ 2 ].split(".");this._htb[ "second" ]=this._p6d(_jt5[ 0 ]);this._htb[ "millisecond" ]=this._p6d(_jt5[ 1 ]);};_ho1.prototype._8hn=function(){var _w3j=this._e39.insertRow(0);if(this._dbd){_w3j.setAttribute(_mpc._s9j, _mpc._3eb);}_w3j.insertCell(0);this._2bj( _w3j, this._9sb.getAttribute("daysText")||this._lj7( "PMT_SIC_DAYS", "IDS_CCHL_PRMT_DAYS" ));this._2bj( _w3j, this._9sb.getAttribute("hoursText")||this._lj7( "PMT_SIC_HOURS", "IDS_CCHL_PRMT_HOURS" ));this._2bj( _w3j, this._9sb.getAttribute("minutesText")||this._lj7( "PMT_SIC_MINUTES", "IDS_CCHL_PRMT_MINUTES" ));if(this._ave||this._nq7){this._2bj( _w3j, this._9sb.getAttribute("secondsText")||this._lj7( "PMT_SIC_SECONDS", "IDS_CCHL_PRMT_SECONDS" ));}if(this._nq7){this._2bj( _w3j, this._9sb.getAttribute("millisecondsText")||this._lj7( "PMT_SIC_MILLISECONDS", "IDS_CCHL_PRMT_MILLISECONDS" ));}var _5gk=this._e39.insertRow(1);var _xyf=_5gk.insertCell(0);if(this._6fj&&!this._x8a){this._sh7(_xyf);if(this._dbd){_xyf.setAttribute(_mpc._s9j, _4qn._59b(_xyf)?_mpc._od5:_mpc._nd5);}}this._5lg=this._02d(_5gk, "day");this._rze=this._02d(_5gk, "hour");this._4ub=this._02d(_5gk, "minute");if(this._ave||this._nq7){this._pub=this._02d(_5gk, "second");}if(this._nq7){this._gr5=this._02d(_5gk, "millisecond");}};_ho1.prototype._2bj=function(_w3j,_dwm){var _wbm=_w3j.insertCell(_w3j.cells.length);_wbm.setAttribute( "colSpan", "2" );_wbm.className=this._dbd?"pc":"clsDialogText";_wbm.style.paddingRight="5px";_wbm.style.paddingLeft="2px";if(this._dbd&&_4qn._59b(_wbm)){_wbm.style.textAlign="right";}_wbm.innerHTML=_dwm;};_ho1.prototype._02d=function(_5gk,_vcl){var _zfk=_5gk.insertCell(_5gk.cells.length);if(this._dbd){_zfk.setAttribute(_mpc._s9j, _mpc._2eb);}var _i3j=_zfk.appendChild(document.createElement("table"));_k0d._9q3(_i3j);if(this._dbd){_i3j.classList.add(_mpc._sle);_i3j.setAttribute("nemesis_id","PromptControl");if(_o7g._kdb){_i3j.classList.add(_mpc._ule);}_i3j.style.width=_i3j.style.height="100%";if(_4qn._59b(_i3j)){_i3j.classList.add("clsDirectionRtl");}}if(this._e39&&this._e39.id){_i3j.setAttribute('id', this._e39.id+_vcl);}var _mbc=this._xt1();switch(_vcl){case "minute":_mbc.setAttribute( "maxlength", "2" );break;case "second":_mbc.setAttribute( "maxlength", "2" );break;case "millisecond":_mbc.setAttribute( "maxlength", "3" );break;}this._gb1=_vcl;var _u5e=this._6fj?"0":"";if(this._0hd){_u5e=this._htb[_vcl];}var _bil=_5gk.insertCell(_5gk.cells.length);_bil.innerHTML=" ";if(this._dbd){_bil.setAttribute(_mpc._s9j, _mpc._ox9);}else{_bil.style.width="15px";}if(_zpn._qsh["hal"]["enableAccessibility"]){var _yvi=_frh._c6j("IDS_CCHL_AC_"+_vcl);_mpc._ld8(_mbc, _yvi);}return new _v47(_i3j, _mbc, this, _u5e);};_ho1.prototype._xt1=function(){var _aom=_8qn._w5b();var _mbc=_aom.createElement("promptTextBox");_mbc.setAttribute( "required", ( this._6fj?"true":"false" ) );_mbc.setAttribute( "multiSelect", ( !this._xue?"false":"true" ) );_mbc.setAttribute( "renderAdornmentsCell", "false" );_mbc.setAttribute( "validation", "integer" );_mbc.setAttribute( "formatting", "integer" );_mbc.setAttribute( "renderAdornmentsCell", "false" );_mbc.setAttribute( "inputClass", "clsCCHLIntervalWidget" );_mbc.setAttribute( "size", "4" );if(this._9pb){_mbc.setAttribute( "restrictInput", "true" );_mbc.setAttribute( "restrictInputExponents", "true" );}if(this._9sb.getAttribute("hideAdornments")){_mbc.setAttribute( "hideAdornments", this._9sb.getAttribute( "hideAdornments" ) );}return _mbc;};_ho1.prototype._c97=function(){var _46k=this._yi7();var _ffk=null;if(_46k){if(this._jng&&this._jng==="authoring"){_ffk=( _46k[ "negative" ]?"-":"" ) +_46k[ "day" ] + " " +(this._wq7?"'":"")+this._mth( _46k[ "hour" ].toString(), 2 ) + ":" +this._mth( _46k[ "minute" ].toString(), 2 ) + ":" +this._mth( _46k[ "second" ].toString(), 2 ) + "." +this._mth(_46k[ "millisecond" ].toString(), 3)+(this._wq7?"'":"");}else{_ffk=(_46k["negative"]?"-":"")+"P" + _46k["day"] + "DT" +this._mth(_46k["hour"].toString(), 2) + "H" +this._mth(_46k["minute"].toString(), 2) + "M" +this._mth(_46k["second"].toString(), 2) + "." +this._mth(_46k["millisecond"].toString(), 3) + "S";}}return(new _ipc(false, _ffk, this._ave, this._nq7));};_ho1.prototype._p6d=function(_t9m){_t9m=_t9m.replace(/^0*/, "");return(_t9m==""?"0":_t9m);};_ho1.prototype._mth=function(_t9m,_tzl){while(_t9m.length<_tzl){_t9m="0"+_t9m;}return _t9m;};_ho1.prototype._yi7=function(){if(this._eg7()){return null;}var _46k={};_46k[ "negative" ]=false;var _e6c=0;if(this._nq7){_46k[ "millisecond" ]=this._p6d(this._gr5._yp9());_46k[ "millisecond" ] = ( ( isNaN( _46k[ "millisecond" ] )||_46k[ "millisecond" ]=="" )?0:parseInt( _46k[ "millisecond" ], 10 ) );if(_46k[ "millisecond" ]<0){_46k[ "negative" ]=true;_46k[ "millisecond" ] = Math.abs( _46k[ "millisecond" ] );}}else{_46k[ "millisecond" ]=_tf7._uv8;}if(this._ave||this._nq7){_46k[ "second" ]=this._p6d(this._pub._yp9());_46k[ "second" ] = ( ( isNaN( _46k[ "second" ] )||_46k[ "second" ]=="" )?0:parseInt( _46k[ "second" ], 10 ) );if(_46k[ "second" ]<0){_46k[ "negative" ]=true;_46k[ "second" ] = Math.abs( _46k[ "second" ] );}if(_46k[ "second" ]>_tf7._yeg){_e6c=parseInt(_46k[ "second" ] /(_tf7._yeg+1), 10);_46k[ "second" ] = _46k[ "second" ] % ( _tf7._yeg + 1 );}}else{_46k[ "second" ]=_tf7._0fg;}_46k[ "minute" ]=this._p6d(this._4ub._yp9());_46k[ "minute" ] = ( ( isNaN( _46k[ "minute" ] )||_46k[ "minute" ]=="" )?0:parseInt( _46k[ "minute" ], 10 ) );if(_46k[ "minute" ]<0){_46k[ "negative" ]=true;_46k[ "minute" ] = Math.abs( _46k[ "minute" ] );}if(_e6c){_46k[ "minute" ]+= _e6c;_e6c=0;}if(_46k[ "minute" ]>_tf7._xeg){_e6c=parseInt(_46k[ "minute" ] /(_tf7._xeg+1), 10);_46k[ "minute" ] = _46k[ "minute" ] % ( _tf7._xeg + 1 );}_46k[ "hour" ]=this._p6d(this._rze._yp9());_46k[ "hour" ] = ( ( isNaN( _46k[ "hour" ] )||_46k[ "hour" ]=="" )?0:parseInt( _46k[ "hour" ], 10 ) );if(_46k[ "hour" ]<0){_46k[ "negative" ]=true;_46k[ "hour" ] = Math.abs( _46k[ "hour" ] );}if(_e6c){_46k[ "hour" ]+= _e6c;_e6c=0;}if(_46k[ "hour" ]>_tf7._cdj){_e6c=parseInt(_46k[ "hour" ] /(_tf7._cdj+1), 10);_46k[ "hour" ] = _46k[ "hour" ] % ( _tf7._cdj + 1 );}_46k[ "day" ]=this._p6d(this._5lg._yp9());if(_46k[ "day" ].indexOf( "-" ) != -1 ){_46k[ "negative" ]=true;}_46k[ "day" ] = ( ( isNaN( _46k[ "day" ] )||_46k[ "day" ]=="" )?0:parseInt( _46k[ "day" ], 10 ) );if(_46k[ "day" ]<0){_46k[ "negative" ]=true;_46k[ "day" ] = Math.abs( _46k[ "day" ] );}if(_e6c){_46k[ "day" ] = ( _46k[ "day" ] < 0 )?_46k[ "day" ] - _e6c:_46k[ "day" ] + _e6c;}if ((_46k[ "day" ]==0 )&&( _46k[ "hour" ]==0 )&&( _46k[ "minute" ]==0 )&&( _46k[ "second" ]==0 )&&( _46k[ "millisecond" ]==0 ) ){_46k[ "negative" ]=false;}return _46k;};_ho1.prototype._eg7=function(){if((this._5lg._yp9()=="")&&(this._rze._yp9()=="")&&(this._4ub._yp9()=="")&&(this._pub?this._pub._yp9()=="":true)&&(this._gr5?this._gr5._yp9()=="":true)){return true;}else{return false;}};_ho1.prototype._vm=function(_ugc){var _ot6=this._h3a();this._2t3(_ugc, true);if(!_ot6&&this._h3a()){this._fq4(true);this._1l4();}};_ho1.prototype._me=function(_ugc){var _ot6=this._h3a();this._2t3(_ugc, false);if(_ot6&&!this._h3a()){this._fq4(false);this._j63();}};_ho1.prototype._2t3=function(_ugc,_tnm){switch(_ugc){case this._5lg:this._9p6[ "day" ]=_tnm;break;case this._rze:this._9p6[ "hour" ]=_tnm;break;case this._4ub:this._9p6[ "minute" ]=_tnm;break;case this._pub:this._9p6[ "second" ]=_tnm;break;case this._gr5:this._9p6[ "millisecond" ]=_tnm;break;default:this._9p6[ this._gb1 ]=_tnm;}};_ho1.prototype._h3a=function(){if(this._9p6[ "day" ]&& this._9p6[ "hour" ]&& this._9p6[ "minute" ]&& this._9p6[ "second" ]&& this._9p6[ "millisecond" ]){return true;}else{return false;}};_ho1.prototype._hp3=function(){this._dbg();};_ho1.prototype._n23=function(_rgc){this._ue5(_rgc, true);this._6oe();};_ho1.prototype._x32=function(_rgc){this._ue5(_rgc, false);if(!this._891()){this._ehb();}};_ho1.prototype._891=function(){if(this._mij[ "day" ]|| this._mij[ "hour" ]|| this._mij[ "minute" ]|| this._mij[ "second" ]|| this._mij[ "millisecond" ]){return true;}else{return false;}};_ho1.prototype._ue5=function(_ugc,_tnm){switch(_ugc){case this._5lg:this._mij[ "day" ]=_tnm;break;case this._rze:this._mij[ "hour" ]=_tnm;break;case this._4ub:this._mij[ "minute" ]=_tnm;break;case this._pub:this._mij[ "second" ]=_tnm;break;case this._gr5:this._mij[ "millisecond" ]=_tnm;break;default:this._mij[ this._gb1 ]=_tnm;}};_ho1.prototype._mqh=function(_mvl){if(this._5lg){this._5lg._mqh(_mvl);}if(this._rze){this._rze._mqh(_mvl);}if(this._4ub){this._4ub._mqh(_mvl);}if(this._pub){this._pub._mqh(_mvl);}if(this._gr5){this._gr5._mqh(_mvl);}};_ho1.prototype._o55=function(){var _u5e=this._6fj?"0":"";this._5lg._o55(_u5e);this._rze._o55(_u5e);this._4ub._o55(_u5e);if(this._pub){this._pub._o55(_u5e);}if(this._gr5){this._gr5._o55(_u5e);}};_ho1.prototype._qc7=function(_3vm){var _ffk=this._zqh(_3vm);if(!_ffk||!_ffk.match(/^-?P\d+DT\d{1,2}H\d{1,2}M\d{1,2}\.\d{1,3}S$/gi)){this._o55();}else{var _4vl=_ffk.split(/P/i);var _cen=_4vl[0];_4vl=_4vl[1].split(/DT/i);this._5lg._qc7({"use": _cen+_4vl[0]});_4vl=_4vl[1].split(/H/i);this._rze._qc7({"use": _4vl[0]});_4vl=_4vl[1].split(/M/i);this._4ub._qc7({"use": _4vl[0]});if(this._pub||this._gr5){_4vl=_4vl[1].split(/[.,S]+/i);if(this._pub){this._pub._qc7({"use": _4vl[0]});}if(this._gr5){this._gr5._qc7({"use": _4vl[1]});}}}};_ho1.prototype._9je=function(_uyg){this._5lg._9je(_uyg);this._rze._9je(_uyg);this._4ub._9je(_uyg);if(this._pub){this._pub._9je(_uyg);}if(this._gr5){this._gr5._9je(_uyg);}};