// 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 _4qc=new _lcm("_4qc");_4qc._jgn=function(_u4c,_rlm){this._vhm=_rlm;this._4le(_u4c);};_4qc._fkl=function(){return this._okm.value;};_4qc._5z2=function(){this._kqn=_9l8._9h8("--support-01");if(!this._okm){this._okm=this._2oh("taText");var fn=this._lqe.bind(this);this._okm.onchange=fn;this._okm.oncut=fn;this._okm.onpaste=fn;this._okm.onkeyup=fn;this._okm.ondrop=fn;this._okm.oninput=fn;this._qtl=this._2oh("trValid");this._tlj=this._2oh("trInvalid");}var s=_8qn._w2g(this._vhm[0].selectSingleNode("configuration"));if(s){try{s=JSON.stringify(JSON.parse(s), undefined, 4);}catch(e){}}this._okm.value=s;if(!this._80f){var _mfi=this._2oh("divRootPane");var _p1k=this._53g("pane");this._80f=new _uzf(_mfi, _p1k, null, this._m56(), this._m75());}var _8bn=this._xmk();this._sej=!!_8bn;if(this._sej){this._7bj(_8bn);}this._2oh( "btnEdit" ).style.display = this._sej?"block":"none";this._2oh( "divProperties" ).style.display = this._sej?"block":"none";this._lqe();};_4qc._xmk=function(){var _8bn;try{_8bn=JSON.parse(this._okm.value);}catch(e){return null;}var _k1c=false;for(var _vdn in _8bn){_k1c=true;switch(_9gm._4fm(_8bn[_vdn])){case "number":case "string":case "boolean":break;case "array":var a=_8bn[_vdn];var _tzl=a.length;for(var i=0;i<_tzl;i++){switch(_9gm._4fm(a[i])){case "string":if(a[i].indexOf(",")!=-1){return null;}break;default:return null;}}break;default:return null;}}return _k1c?_8bn:null;};_4qc._7bj=function(_8bn){var _8pd=this._2oh("divProperties");_8pd.innerHTML="";var _kak="12pt";var _ffl="3px 4px 3px 4px";var d=document;var tbl=_8pd.appendChild(d.createElement("TABLE"));tbl.cellPadding=0;tbl.cellSpacing=0;tbl.className="clsPropertySheet";var tbody=tbl.appendChild(d.createElement("TBODY"));for(var _vdn in _8bn){var _vym=_8bn[_vdn];var _8bm=_9gm._4fm(_vym);var tr=tbody.appendChild(d.createElement("TR"));var td=tr.appendChild(d.createElement("TD"));td.className="clsPropertySheetLabel_inactive";td.style.color="#5b5b5b";td.style.fontSize=_kak;td.style.fontWeight="bold";td.style.padding=_ffl;_4qn._1je(td, _vdn);var _2cm=tr.appendChild(d.createElement("TD"));_2cm.className="clsPropertySheetValue";_2cm.setAttribute( "HAL_isSelectable", "true" );_2cm.style.padding=_ffl;switch(_8bm){case "number":var _pvm=_9l8._9h8("--primary1");var _hyl=_2cm.appendChild(d.createElement("INPUT"));_hyl.type="text";_hyl.style.fontSize=_kak;_hyl.style.width="100%";_hyl.style.borderStyle="none";_hyl.style.color=_pvm;_hyl.value=_vym;_hyl.onkeypress=_4qn._yo3;_hyl.onchange=_4qn._m95;_hyl._vdn=_vdn;_hyl._8bm=_8bm;break;case "string":var _pvm=_9l8._9h8("--support-02");var _hyl=_2cm.appendChild(d.createElement("INPUT"));_hyl.type="text";_hyl.style.fontSize=_kak;_hyl.style.width="100%";_hyl.style.borderStyle="none";_hyl.style.color=_pvm;_hyl.value=_vym;_hyl._vdn=_vdn;_hyl._8bm=_8bm;break;case "boolean":var _iyl=_2cm.appendChild(d.createElement("LABEL"));_iyl.className="clsToggle";var _hyl=_iyl.appendChild(d.createElement("INPUT"));_hyl.type="checkbox";_hyl.checked=_vym;_hyl._vdn=_vdn;_hyl._8bm=_8bm;_iyl.appendChild( d.createElement( "SPAN" ) ).innerHTML = " ";break;case "array":var _pvm=_9l8._9h8("--support-02");var _hyl=_2cm.appendChild(d.createElement("INPUT"));_hyl.type="text";_hyl.style.fontSize=_kak;_hyl.style.width="100%";_hyl.style.borderStyle="none";_hyl.style.color=_pvm;_hyl.value=_vym.join( ", " );_hyl._vdn=_vdn;_hyl._8bm=_8bm;break;}}};_4qc._y92=function(){var _8pd=this._2oh("divProperties");var _8bn={};var nl=_8pd.getElementsByTagName("INPUT");var _tzl=nl.length;for(var i=0;i<_tzl;i++){var _hyl=nl.item(i);switch(_hyl._8bm){case "string":_8bn[_hyl._vdn]=_hyl.value;break;case "number":_8bn[_hyl._vdn]=+_hyl.value.replace(/,/g, "");break;case "boolean":_8bn[_hyl._vdn]=_hyl.checked;break;case "array":var a=_hyl.value.split(",");for(var j=0;j