// 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 _g45(_347, _kbc, _b6k, _yxb){_g45.baseConstructor.call(this, _kbc, _b6k);this._1r6=_347;this._1r6._gub=this;this._onb=_yxb;this._ql1 ={valid:null,hasValue:null};this._gp6=null;if(this._1r6&&this._1r6.getAttribute("specname")&&!this._qzh){this._0bd=true;if(this._b39&&+this._b39>11){this._1r6.classList.add(_mpc._sle);this._1r6.setAttribute("nemesis_id", "PromptControl");if(_o7g._kdb){this._1r6.classList.add(_mpc._ule);}if(_4qn._59b(this._1r6)){this._1r6.classList.add("clsDirectionRtl");}this._dbd=true;}}var _0lm=["range", "multiSelect"];for(var i=0; i<_0lm.length; i++){var _hcn=_0lm[i];if(_kbc.getAttribute(_hcn)=="true"){_347.setAttribute("_" + _hcn, "true");}}if(this._qzh){this._1r6.setAttribute( "isControl", "true" );_8qn._9rc(this._1r6, this._9sb, "specname");}};_olk._vjl(_g45, _mpc);_g45.prototype._fdm=function(){this._vij=null;this._gp6._fdm();this._gp6=null;if(this._vkg){this._vkg._fdm();}this._is4=null;this._hs4=null;this._k3f=null;this._87i=null;this._lim=null;this._jt4=null;this._ql1=null;this._oa2=null;this._1r6._gub=null;if(this._1r6.firstChild){this._1r6.removeChild(this._1r6.firstChild);}};_g45.prototype._8hn=function(_9u6){this._1r6.setAttribute( "cellPadding", "0" );this._1r6.setAttribute( "cellSpacing", "0" );var _m02=this._1r6;if(this._xue){var _9c8=_m02.insertRow(0);var _7c8=_9c8.insertCell(0);_m02=this._io(_7c8, _9u6);if(!_m02.id){this._lp4(_m02, "tblMultiSelect");}var _y94=_9c8.insertCell(1);this._a81(_y94);var _xfk=_9c8.insertCell(2);this._ke6(_xfk);if(this._dbd){_7c8.setAttribute(_mpc._s9j, _mpc._nm8);_xfk.setAttribute(_mpc._s9j, _mpc._nx9);}}if(this._xue){this._9sb.setAttribute( "required", "false" );}return _m02;};_g45.prototype._io=function(_7c8,_9u6){_7c8.style.verticalAlign="top";var _245=_7c8.appendChild(document.createElement("table"));_k0d._9q3(_245);if(this._dbd){_245.classList.add(_mpc._sle);_245.setAttribute("nemesis_id","PromptControl");if(_o7g._kdb){_245.classList.add(_mpc._ule);}_245.style.width=_245.style.height="100%";if(_4qn._59b(_245)){_245.classList.add("clsDirectionRtl");}}var _t26;if(this._fim||_9u6){_t26=_245;}else{_245.setAttribute( "cellPadding", "0" );_245.setAttribute( "cellSpacing", "0" );var _cun=_245.insertRow(0);var _bun=_cun.insertCell(0);_bun.className=this._dbd?"pc":"clsDialogText";_4qn._1je(_bun, _frh._c6j("IDS_CCHL_PRMT_VALUE"));var _wsn=_245.insertRow(1);var _vsn=_wsn.insertCell(0);_t26=_vsn.appendChild(document.createElement("table"));if(this._1r6.id){_t26.id=this._1r6.id+"_tblPromptControl";}_t26.style.padding="0px";_k0d._9q3(_t26);if(this._dbd){_t26.classList.add(_mpc._sle);_t26.setAttribute("nemesis_id","PromptControl");if(_o7g._kdb){_t26.classList.add(_mpc._ule);}_t26.style.width=_t26.style.height="100%";if(_4qn._59b(_t26)){_t26.classList.add("clsDirectionRtl");} _cun.setAttribute(_mpc._s9j, _mpc._3eb);_wsn.style.height="100%";}if(_zpn._qsh["hal"]["enableAccessibility"]){_t26.setAttribute( "HAL_idsAriaLabel", "IDS_CCHL_PRMT_VALUE" );}}_t26.setAttribute( "cellPadding", "0" );_t26.setAttribute( "cellSpacing", "0" );return _t26;};_g45.prototype._a81=function(_y94){_y94.classList.add("clsPromptButtonsContainer");_y94.style.verticalAlign="top";var _yj3=_y94.appendChild(document.createElement("table"));_yj3.setAttribute( "cellPadding", "0" );_yj3.setAttribute( "cellSpacing", "0" );if(this._8z8<=11.4){_yj3.style.width="40px";}_k0d._9q3(_yj3);if(this._dbd){_yj3.classList.add(_mpc._sle);_yj3.setAttribute("nemesis_id","PromptControl");if(_o7g._kdb){_yj3.classList.add(_mpc._ule);}if(_4qn._59b(_yj3)){_yj3.classList.add("clsDirectionRtl");} }var _7jn=_4qn._59b(_yj3);var _6zf=_yj3.insertRow(0);var _0zf=_6zf.insertCell(0);if(this._dbd){_0zf.className="pc";_0zf.style.visibility="hidden";}else{_0zf.className="clsDialogText";}_0zf.innerHTML=" ";var _1pc=_yj3.insertRow(1);var _roc=_1pc.insertCell(0);_roc.setAttribute( "align", "center" );this._hs4=this._zh1(_roc, true, _7jn);var _3pc=_yj3.insertRow(2);var _voc=_3pc.insertCell(0);_voc.setAttribute( "align", "center" );this._is4=this._zh1(_voc, false, _7jn);_4qn._pj8(_4qn._a87(this._is4), false);};_g45.prototype._zh1=function(_y94,_zvl,_7jn){_y94.classList.add("clsPromptButtonContainer");var btn=_y94.appendChild(document.createElement("button"));if(this._1r6.id){btn.setAttribute("id", (_zvl?"btn_insert_":"btn_remove_") + this._1r6.id);}btn.onclick=_zvl?_g45._nx3:_g45._tx3;btn.className="clsSvgButton16x16 " + ( _zvl?"clsPromptInsertButton":"clsPromptRemoveButton" );if(_zvl&&(this._8z8<=11.0)){btn.style.marginBottom="16px";}btn.innerHTML='';btn.title=_zvl? (this._9sb.getAttribute("insertText")||this._lj7( "PMT_UIM_INSERTTIP", "IDS_CCHL_PRMT_INSERTTIP" )): (this._9sb.getAttribute("removeText")||this._lj7( "PMT_UIM_REMOVETIP", "IDS_CCHL_PRMT_REMOVETIP" ));return btn;};_g45.prototype._ke6=function(_xfk){_xfk.style.verticalAlign="top";var _f3j=_xfk.appendChild(document.createElement("table"));_f3j.setAttribute( "cellPadding", "0" );_f3j.setAttribute( "cellSpacing", "0" );_k0d._9q3(_f3j);if(this._dbd){_f3j.classList.add(_mpc._sle);_f3j.setAttribute("nemesis_id", "PromptControl");if(_o7g._kdb){_f3j.classList.add(_mpc._ule);}_f3j.style.width=_f3j.style.height="100%";if(_4qn._59b(_f3j)){_f3j.classList.add("clsDirectionRtl");} this._87i=_f3j;}var _yoc=_f3j.insertRow(0);var _qoc=_yoc.insertCell(0);_qoc.className=this._dbd?"pc":"clsDialogText";if(this._6fj&&!this._x8a){var _i1h=this._3v3(_qoc);_i1h.style.marginRight="2px";}var _wih=this._9sb.getAttribute("choicesText");_qoc.appendChild( document.createTextNode( _wih||this._lj7( "PMT_UIM_CHOICES", "IDS_CCHL_PRMT_SELECTIONS" )));if(this._dbd&&_4qn._59b(_qoc)){_qoc.style.textAlign="right";}var _4zf=_f3j.insertRow(1);this._k3f=_4zf.insertCell(0);this._k3f.style.verticalAlign="top";var _owg=this._k3f.appendChild(document.createElement("div"));if(this._dbd){_4zf.style.height="100%";_owg.setAttribute(_mpc._s9j, _mpc._zb6);_owg.style.position="relative";_owg.style.width=_owg.style.height="100%";_owg.className="pv";_owg=_owg.appendChild(document.createElement("div"));_owg.style.position="absolute";_owg.style.top=_owg.style.left="0";_owg.style.width=_owg.style.height="100%";if(_4qn._59b(_owg)){_owg.style.textAlign="right";}}else{_owg.style.width="205px";_owg.style.height="120px";}_owg.className="clsListView";_owg.setAttribute('id', this._1r6.id+"_ListView");if(_zpn._qsh["hal"]["enableAccessibility"]){_owg.setAttribute("aria-labelledby", _4qn._a87(_qoc));}this._lim=_8qn._w5b();var _ozj=this._lim.createElement("listView");_ozj.setAttribute( "multiSelect", "true" );this._jt4=_ozj.appendChild(this._lim.createElement("listItems"));this._oa2=[];for(var i=0;this._onb&&(i0){_lia=true;_o49.forEach(function(_q6k){if(!_q6k._l3g()){_lia=false;}});}}else if(_5xa&&_5xa._l3g()){_lia=true;}if(_lia){_rgc._gp6._3kk("");}else{_rgc._gp6._dzm();}}};_g45.prototype._2g7=function(_o49){var _rwl=false;var _tzl=_o49.length;var _i5m=_tzl?_6qn._cdm(_8qn._fde(null, this._jt4.selectNodes("listItem/@value"))):null;for(var i=0; i<_tzl; i++){var _5xa=_o49[i];if(_5xa){var _ffk=_5xa._l3g();if((_ffk||_ffk==="")&&!_i5m.has(_ffk)){_i5m.add(_ffk);this._oa2.push(_5xa);var _mzj=this._jt4.appendChild(this._lim.createElement("listItem"));_mzj.setAttribute("label", _5xa._yp9()||_ffk);_mzj.setAttribute("value", _ffk);_rwl=true;}}}if(_rwl){this._vkg._wfn();}var _znm=this._xa3();if(_znm){this._ev8(true);this._4n2();}this._x51();};_g45._tx3=function(e){e.stopPropagation();var _rgc=this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode._gub;_rgc._ky3(true);};_g45.prototype._ky3=function(_sqj){var _i8i=_sqj?this._vkg._vd4():_8qn._6l3(null, this._vkg._tfe());for(var i=0;i<_i8i.length;i++){for(var j=0;j0);};_g45._q5d=function(e){e.stopPropagation();var _rgc=this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode._gub;_rgc._vkg._rn9(true);_4qn._pj8(_4qn._a87(_rgc._is4), false);};_g45.prototype._pe4=function(_a6k){var _zwk=(_a6k._vd4().length>0);_4qn._pj8(_4qn._a87(this._is4), _zwk);};_g45.prototype._vm=function(_rgc){this._ql1[ "valid" ]=true;this._iq2();if(this._fm6===true){return;}if(!this._6fj||this._6fj&&!this._xue){this._4n2();}};_g45.prototype._me=function(_rgc){this._ql1[ "valid" ]=false;this._iq2();if(this._fm6===false){return;}if(!this._6fj||this._6fj&&!this._xue){this._qt1();}};_g45.prototype._n23=function(){this._ql1[ "hasValue" ]=true;this._iq2();};_g45.prototype._x32=function(){this._ql1[ "hasValue" ]=false;this._iq2();};_g45.prototype._iq2=function(){if(this._hs4){var _zwk=(this._ql1["hasValue"]&&this._ql1["valid"]);_4qn._pj8(_4qn._a87(this._hs4), _zwk);}};_g45.prototype._4n2=function(){this._fm6=true;if(this._vij&&this._vij._9c){this._vij._9c(this);}};_g45.prototype._qt1=function(){this._fm6=false;if(this._vij&&this._vij._i7){this._vij._i7(this);}};_g45.prototype._d66=function(){return this._xue?this._oa2:[this._gp6._c97()];};_g45.prototype._tn2=function(){var _o9i=[];for(var i=0;i0){var _z2m, _cqf, _yxb=this._onb=[];for(var i=0; i<_lua.length; i++){_z2m=_lua.item(i);_yxb.push(_cqf=this._377());var _ffk=_z2m.getAttribute("useValue");if(this._fim){if(_ffk){var a=_ffk.split(":");if(a[0]){_cqf._p6g(a[0], _u3b._faj);}if(a[1]){_cqf._p6g(a[1], _u3b._eaj);}}else{var n=_z2m.selectSingleNode("start");if(n){_cqf._p6g(n.getAttribute("useValue"), _u3b._faj);}var n=_z2m.selectSingleNode("end");if(n){_cqf._p6g(n.getAttribute("useValue"), _u3b._eaj);}}}else{_cqf._p6g(_ffk);}}}};_g45.prototype._ab4=function(){if(this._xue){this._ky3();}else{this._gp6._o55();}};_g45.prototype._95j=function(_4vl){if(this._xue){if(_4vl){var _cqf, _3vm, _mzj;var _okd=[];for(var i=0; i<_4vl.length; i++){_3vm=_4vl[i];_cqf=new _00g(this._fim);if(_cqf._1ll()){_cqf._p6g(_3vm["start"]["use"], _u3b._faj);_cqf._p6g(_3vm["end"]["use"], _u3b._eaj);}else{_cqf._p6g(_3vm["use"]);}_okd.push(_cqf);}this._2g7(_okd);}}else{this._gp6._qc7((_4vl&&_4vl.length>0)?_4vl[0]:null);this._x51();}};_g45.prototype._xa3=function(){if(this._sig){return(!this._6fj||this._sig(this._h6j()));}return(!this._6fj||this._jt4.hasChildNodes());};_g45.prototype._9je=function(_uyg){if(this._xue){_g45.superClass._9je.call(this, _uyg);}else{this._gp6._9je(_uyg);}};_g45.prototype._lp4=function(_atn,_19m){if(this._1r6&&this._1r6.id){_atn.id=this._1r6.id+"__" + _19m;}else{_vzm._ozm("No container id for child: " + _19m);}};