_8d8.js 16 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  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. var _8d8=new _p3b("_8d8");_8d8._jgn=function(_6wa,_val,_u4c,_v94){if(this._09b()){this._3m3();}else{this._4le(_6wa, _val, _u4c, _v94);}};_8d8._zfn=function(_pen,_6wa,_val,_u4c,_v94){this._le3=_pen;var _zpi=_8l8._r66();if(_zpi){var _qxj=_8qn._v65(_zpi, _r0d._5sh);if(_qxj){this._7kj=_qxj.getAttribute("name");}var _fsm=_8qn._v65(_zpi, ["query"]);if(_fsm){this._fkm=_fsm.getAttribute("name");}}this._jgn(_6wa, _val, _u4c, _v94);};_8d8._5z2=function(){this._cxe=0;this._gim=true;this._otb=new _jgk( this._2oh( "divFindTypeCombo" ), this._53g( "FindTypeCombo" ), null, this );this._s2n=new _lfn(this._2oh("deckMain"), this);this._otb._hwc(this._le3||"any");this._oxh();this._qw3();this._1d7("ShowHidden");_erh._q0g(this);_qkk._q0g(this);};_8d8._fdm=function(){this._qhm=null;};_8d8._g67=function(_35k,_mzj){this._gim=true;switch(_35k){case this._otb:this._oxh();this._qw3();return;case this._e24:this._pca._3kk("");break;}this._pp6._bzm();this._pp6._wfn();};_8d8._m86=function(event){this._gim=true;};_8d8._9f1=function(event){_qkk._3kk("ShowHidden", (this._2oh("chkShowHiddenObjects").checked==true));};_8d8._1d7=function(_zwf){if(_zwf=="ShowHidden"){this._2oh("chkShowHiddenObjects").checked = _qkk._qik("ShowHidden");} };_8d8._ta5=function(){if(this._vfd){var _uwm=this._vfd._qik();this._vfd._fdm();var _fxj=_u0n._ul3(_frh._53g("EmptyAuthoredComboWithSmallSvgIcon"), null, true);this._vfd=new _jgk(this._2oh("divQueriesCombo"), _fxj, null, this);if(_uwm){this._vfd._hwc(_uwm);}else{this._vfd._gwc(0);}}if(this._pca){var _79k=this._pca._qik();var _a6k=this._pca._o2g();this._m93(_a6k);if(_79k){this._pca._hwc(_79k);}else{this._pca._gwc(0);}}if(this._qs2){var _a98=this._qs2._qik();this._qs2._fdm();var _fxj=this._53g("ConditionalStyleNameCombo");this._qs2=new _jgk(this._2oh("divConditionalStyleNameCombo"), _fxj, null, this);this._kp();}};_8d8._k3i={"any":0,"hidden":1,"text": 2,"conditional_style":3,"conditional_text":4,"conditional_render":5,"expressions":6,"refQuery":7,"refDataItem":8};_8d8._qw3=function(){var _19k=this._otb._qik();switch(_19k){case "hidden":case "refQuery":case "refDataItem":{this._pp6=new _pgk( this._2oh( "divSearchResultsList" ), this._53g( "SearchResultsList2Col" ), this);break;}default:{var _ozj=this._53g("SearchResultsList3Col");var _dli=_ozj.selectSingleNode("columnHeaders/columnHeader[@id='thirdCol']");var _swi="";switch(_19k){case "any":_swi=_frh._c6j("IDS_MATCHED_TEXT");break;case "text":_swi=_frh._c6j("IDS_MATCHED_TEXT");break;case "conditional_style":_swi=_frh._c6j("IDS_CONDITIONAL_STYLE");break;case "conditional_text":_swi=_frh._c6j("IDS_EL_conditionalDataSources");break;case "conditional_render":_swi=_frh._c6j("IDS_PROP_conditionalRender");break;case "expressions":_swi=_frh._c6j("IDS_PROP_EXPR");break;}_dli.setAttribute("label", _swi);this._pp6=new _pgk(this._2oh("divSearchResultsList"), _ozj, this);}}};_8d8._oxh=function(){var i=_8d8._k3i[this._otb._qik()];this._s2n._ujk(i);switch(i){case 1:case 4:case 5:this._2oh("fldOptions").style.display = "none";break;default:this._2oh("fldOptions").style.display = "";break;}};_8d8._y12=function(_uan,_eei,_urd,_lrd){switch(Object.keys(_8d8._k3i)[_lrd]){case "refQuery":if(!this._vfd){var _fxj=_u0n._ul3(_frh._53g("EmptyAuthoredComboWithSmallSvgIcon"), null, true);this._vfd=new _jgk(this._2oh("divQueriesCombo"), _fxj, null, this);if(this._fkm){this._vfd._hwc(this._fkm);delete this._fkm;}else{this._vfd._gwc(0);}}break;case "refDataItem":if(!this._e24){var _fxj=_u0n._ul3(_frh._53g("EmptyAuthoredComboWithSmallSvgIcon"), null, true);this._e24=new _jgk(this._2oh("divDataItemQueriesCombo"), _fxj, null, this);if(this._fkm){this._e24._hwc(this._fkm);delete this._fkm;}else{this._e24._gwc(0);}}if(!this._pca){var _fxj=_frh._53g("EmptyAuthoredComboWithSmallSvgIcon");this._pca=new _jgk(this._2oh("divDataItemsCombo"), _fxj, null, this);if(this._7kj){this._m93(this._pca._o2g());this._pca._hwc(this._7kj);delete this._7kj;}else{this._pca._gwc(0);}}break;case "conditional_style":if(!this._qs2){var _fxj=this._53g("ConditionalStyleNameCombo");this._qs2=new _jgk(this._2oh("divConditionalStyleNameCombo"), _fxj, null, this);this._kp();this._qs2._hwc("any");}}};_8d8._m93=function(_a6k){_a6k._bzm();var _ozj=_a6k._eq9();var _uwm=this._e24._qik();var _fsm=_agm._kik(_erh._vtc(), _uwm);_u0n._1y2(_ozj, _fsm, true, false);_a6k._wfn();};_8d8._kp=function(){var _a6k=this._qs2._o2g();var _ini=_a6k._eq9().selectSingleNode("listItems");var _83m=_erh._vtc();var d=_ini.ownerDocument;var _br6=_pf7._buc(_83m);var _tzl=_br6.length;for(var i=0;i<_tzl;i++){var _vdn=_br6[i];var _mzj=_ini.appendChild(d.createElement("listItem"));_mzj.setAttribute("label", _vdn);_mzj.setAttribute("value", _vdn);_mzj.setAttribute("smallIcon", _pf7._auc(_83m, _vdn));}_a6k._wfn();};_8d8._kg2=function(_35k,_a6k){switch(_35k){case this._pca:this._m93(_a6k);break;}};_8d8._o46=function(){if(this._qs2){this._qs2._fdm();this._qs2=null;}if(this._vfd){this._vfd._fdm();this._vfd=null;}if(this._e24){this._e24._fdm();this._e24=null;}if(this._pca){this._pca._fdm();this._pca=null;}if(this._otb){this._le3=this._otb._qik();this._otb._fdm();this._otb=null;}if(this._s2n){this._s2n._fdm();this._s2n=null;}_erh._hab(this);_qkk._hab(this);this._7kj=null;this._fkm=null;};_8d8._bgn=function(){this._vph();};_8d8._97j=function(){_u0n._3a6(this._pp6._vhg.lastChild);setTimeout(this._8b7.bind(this), 1);};_8d8._8b7=function(){this._ahn();if(this._qhm.length>0){this._cxe=0;this._gim=false;this._pp6._gwc(this._cxe, false);_ypn._d96(this._qhm[this._cxe++]._q9n);}};_8d8._pe4=function(_a6k,_mzj,_zdf){var _txd=_a6k._885();var _rii=_8qn._cik(_txd);this._cxe=_rii+1;_ypn._d96(this._qhm[_rii]._q9n);};_8d8._vph=function(){if(this._gim){this._gim=false;this._cxe=0;this._97j();return;}if(this._cxe===this._qhm.length){_67j("IDS_MSG_FIND_LAST", null, _2dm._gke);this._cxe=0;this._pp6._rn9(true);_38g._g0n._yem(null);return;}this._pp6._gwc(this._cxe, false);_ypn._d96(this._qhm[this._cxe++]._q9n);};_8d8._yv1=function(){this._pp6._bzm();var _5kn=this._qhm.length;if(_5kn>0){for(var i=0; i<_5kn; i++){var _c3e=this._qhm[i];var _574=this._pp6._767();_574.setAttribute("label", _c3e._8ih);_574.setAttribute("tooltip", _c3e._8ih);var _9x6=_574.appendChild(this._pp6._eq9().ownerDocument.createElement("subItem"));_9x6.setAttribute("label", _c3e._8jc);if(this._pp6._eq9().selectNodes("columnHeaders/columnHeader").length===3){var _315=_574.appendChild(this._pp6._eq9().ownerDocument.createElement("subItem"));var _yxf=_c3e._3l9.trim(); _315.setAttribute("label", _cgm._hkk(_yxf, 100, true));}}}this._pp6._wfn();};_8d8._ahn=function(){this._qhm=[];var _83m=_erh._vtc();switch(this._otb._qik()){case "any":var _men=this._2oh("txtFindAny").value;if(!_men){_67j("IDS_MSG_FIND_NO_TEXT");return;}_vm8._l65(this._qhm, _83m, _men);break;case "text":var _men=this._2oh("txtFindText").value;if(!_men){_67j("IDS_MSG_FIND_NO_TEXT");return;}_vm8._3p9(this._qhm, _83m, _men);break;case "hidden":_vm8._p77(this._qhm, _83m);break;case "conditional_style":_vm8._zh(this._qhm, _83m, this._qs2._qik());break;case "conditional_text":_vm8._6m(this._qhm, _83m);break;case "conditional_render":_vm8._ge(this._qhm, _83m);break;case "expressions":var _men=this._2oh("txtFindExpression").value;if(!_men){_67j("IDS_MSG_FIND_NO_TEXT");return;}_vm8._9c4(this._qhm, _83m, _men);break;case "refQuery":var _uwm=this._vfd._qik();_vm8._h6b(this._qhm, _83m, _uwm);_vm8._md1(this._qhm, _83m, _uwm);break;case "refDataItem":var _uwm=this._e24._qik();var _79k=this._pca._qik();if(!_79k){break;}_vm8._2f8(this._qhm, _83m, _uwm, _79k);_vm8._a9(this._qhm, _83m, _uwm, _79k);_vm8._5m(this._qhm, _83m, _uwm, _79k);break;}if(this._qhm.length==0){_67j("IDS_MSG_FIND_NO_MATCHES", null, _2dm._gke);_38g._g0n._yem(null);}this._yv1();};var _vm8={};function _cce(_jxd, _8ih, _8jc, _3l9){this._q9n=_jxd;this._8ih=_8ih;this._8jc=_8jc;if(_3l9){this._3l9=_3l9;}};_vm8._94d=function(_q9n){var _ick=_frh._c6j("IDS_EL_"+_q9n.nodeName);var _vdn=_q9n.getAttribute("name");if(!_vdn&&!_q9n.getAttribute("refQuery")){var _n9n=_q9n.selectSingleNode( "descendant-or-self::*[@refDataItem]" )||_q9n.selectSingleNode( "parent::*[@refDataItem]" );if(_n9n){_vdn=_n9n.getAttribute("refDataItem");}else if(_q9n.nodeName==="crosstabIntersection"){var _0pn=_q9n.getAttribute("row");var _snn=_q9n.getAttribute("column");var _nxj=_q9n.selectSingleNode("ancestor::crosstab");var _xln=_nxj.selectSingleNode( "descendant::*[contains(@edgeLocation, '" + _0pn + "')]" );var _ukn=_nxj.selectSingleNode( "descendant::*[contains(@edgeLocation, '" + _snn + "')]" );var _kwf=_xln.getAttribute("refDataItem");var _3sf=_ukn.getAttribute("refDataItem");_vdn=_kwf+_frh._c6j("IDS_LBL_LIST")+ _3sf;}}return _vdn?_frh._c6j("IDS_FIND_OBJECT_NAME_LABEL", _ick, _vdn):_ick;};_vm8._3q8=function(_q9n){if(!_q9n){return _frh._c6j("IDS_COLLBL_SSR_REPORTNAME");}return _q9n.getAttribute( "name" )||_frh._c6j( "IDS_EL_" + _q9n.nodeName);};_vm8._n71=function(a,nl){if(!a){a=[];}var _tzl=nl.length;for(var i=0;i<_tzl;++i){_m0n._8qh(a, nl.item(i));}return a;};_vm8._v93=function(_ilm,_c3e){var _jxd=_c3e._q9n;var _5kn=_ilm.length;for(var i=0; i<_5kn; i++){if(_ilm[i]._q9n===_jxd){return false;}}_ilm.push(_c3e);return true;};_vm8._wg6=function(_jxd){return !!_heb._t97().has(_jxd.nodeName);};_vm8._di5=function(_jxd){if(_vm8._wg6(_jxd)){return _jxd;}return _8qn._isc(_jxd, _heb._785()); };_vm8._2mb=function(_ilm){_ilm.sort(function(a,b){var _r7n=a._q9n.getAttribute("iid").slice(1);var _s7n=b._q9n.getAttribute("iid").slice(1);return _r7n-_s7n;});return _ilm;};_vm8._sg1=function(_ilm,_d4m,_nv6,_wy4){var _5kn=_d4m.length;for(var i=0; i<_5kn; i++){var _jxd=_d4m.item(i);if(!_vm8._wg6(_jxd)){continue;}var _c3e=new _cce(_jxd, _vm8._94d(_jxd),_vm8._3q8(_nv6(_jxd)),_wy4?_wy4(_jxd):null);_vm8._v93(_ilm, _c3e);}return _ilm;};_vm8._p77=function(_ilm,_83m){var _2za="[contains(@value, 'visibility:hidden') or contains(@value, 'display:none')]";var _zxm =_8qn._o5b( "layouts//", _geb._vke, "[style/CSS" + _2za + "]" ) + " | " +"classStyles/classStyle[CSS" + _2za + "]";var _d4m=_83m.selectNodes(_zxm);return _vm8._sg1(_ilm, _d4m, _ath._e66.bind(_ath));};_vm8._zh=function(_ilm,_83m,_q35){var _zxm=_8qn._o5b( "layouts//", _geb._vke, _q35!=="any"?( "[conditionalStyleRefs/conditionalStyleRef/@refConditionalStyle=" + _cgm._zxc( _q35 ) + "]" ):"[conditionalStyleRefs/conditionalStyleRef]" );var _d4m=_83m.selectNodes(_zxm);var _wy4=function(_jxd){ return _jxd.selectSingleNode( "descendant::conditionalStyleRef" ).getAttribute( "refConditionalStyle" ); };return _vm8._sg1(_ilm, _d4m, _ath._e66.bind(_ath), _wy4);};_vm8._6m=function(_ilm,_83m){var _zxm="layouts//textItem[conditionalDataSources]";var _d4m=_83m.selectNodes(_zxm);var _wy4=function(_jxd){ return _jxd.selectSingleNode( "conditionalDataSources").getAttribute( "refVariable"); };return _vm8._sg1(_ilm, _d4m, _ath._e66.bind(_ath), _wy4);};_vm8._ge=function(_ilm,_83m){var _zxm=_8qn._o5b( "layouts//", _geb._vke, "[conditionalRender]" );var _d4m=_83m.selectNodes(_zxm);var _wy4=function(_jxd){ return _jxd.selectSingleNode( "conditionalRender" ).getAttribute( "refVariable" ); };return _vm8._sg1(_ilm, _d4m, _ath._e66.bind(_ath), _wy4);};_vm8._9c4=function(_ilm,_83m,_men){var _w37="[contains(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), translate(" + _cgm._zxc( _men ) + ", 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))]";var _zxm =_8qn._o5b( "layouts//", _geb._vke, "[dataSource/reportExpression" + _w37 + "]" ) + " | " +_8qn._o5b( "queries//", _r0d._vke, "[(expression | filterExpression)" + _w37 + "]" ) + " | " +"queries//slicerMemberSet" + _w37 + " | " +"reportVariables/reportVariable/reportExpression"+_w37;var _d4m=_83m.selectNodes(_zxm);var _wy4=function(_jxd){ if(_jxd.nodeName=="slicerMemberSet"){return _jxd.text;}return _jxd.selectSingleNode( "expression | reportExpression | filterExpression | slicerMemberSet | dataSource/reportExpression" ).text; };return _vm8._sg1(_ilm, _d4m, _6aj._tq9, _wy4);};_vm8._h6b=function(_ilm,_83m,_uwm){ var _yqg=[];if(_uwm){_yqg.push("@refQuery="+_cgm._zxc(_uwm));var _kmf=_83m.selectNodes("reportDataStores/reportDataStore[dsSource/*[@refQuery=" + _cgm._zxc(_uwm) + "]]");var _upm=_kmf.length;for(var i=0;i<_upm;i++){_yqg.push("@refDataStore=" + _cgm._zxc(_kmf.item(i).getAttribute("name"))); }var _zxm=_8qn._o5b(".//", _heb._785(), "[" + _yqg.join(" or ") + "]");var _d4m=_83m.selectNodes(_zxm);var _5kn=_d4m.length;for(var i=0; i<_5kn; i++){var _jxd=_d4m.item(i);var _c3e=new _cce(_jxd,_vm8._94d(_jxd),_vm8._3q8(_ath._e66(_jxd)),_uwm);_vm8._v93(_ilm, _c3e);}}return _ilm;};_vm8._2f8=function(_ilm,_83m,_uwm,_79k){var _zxm=".//*[@refDataItem=" + _cgm._zxc(_79k) + " or @refDsColumn=" + _cgm._zxc(_79k) + "]";var a=this._n71(null, _83m.selectNodes(_zxm));for(var i=a.length-1;i>=0;i--){var _jxd=a[i];_jxd=_vm8._di5(_jxd);if(!_jxd){continue;}var _fsm=_dth._tq9(_jxd);if(!_fsm||(_fsm.getAttribute("name")!=_uwm)){a.splice(i, 1);}else{var _c3e=new _cce(_jxd, _vm8._94d(_jxd),_vm8._3q8(_ath._e66(_jxd)),_79k);_vm8._v93(_ilm, _c3e);}}return _ilm;};_vm8._md1=function(_ilm,_83m,_uwm){var re=_6aj._d6(_uwm);var nl=_83m.selectNodes(_8qn._o5b(".//", _6aj._4f));for(var i=0;i<nl.length;i++){var _09n=nl.item(i);if(_09n.text.match(re)){_09n=_vm8._di5(_09n);if(!_09n){continue;}var _c3e=new _cce(_09n, _vm8._94d(_09n),_vm8._3q8(_6aj._tq9(_09n)),_uwm);_vm8._v93(_ilm, _c3e);}}return _ilm;};_vm8._a9=function(_ilm,_83m,_uwm,_79k){var _p1b="[" + _6aj._422( _79k ) + "]";var _fsm=_agm._kik(_83m, _uwm);if(_fsm){var re=_6aj._9i(_p1b);var nl=_fsm.selectNodes(_6aj._sk2);for(var i=0;i<nl.length;i++){var _09n=nl.item(i); if(_09n.text.match(re)){_09n=_vm8._di5(_09n);if(!_09n){continue;}var _c3e=new _cce(_09n, _vm8._94d(_09n),_vm8._3q8(_6aj._tq9(_09n)),_79k);_vm8._v93(_ilm, _c3e);}}}return _ilm;};_vm8._5m=function(_ilm,_83m,_uwm,_79k){var _p1b="[" + _6aj._422( _79k ) + "]";var _z8e="[" + _6aj._422( _uwm ) + "]." + _p1b;var re=_6aj._9i(_z8e);var nl=_83m.selectNodes( ".//*[self::expression | self::filterExpression | self::reportExpression | self::reportCondition]" );for(var i=0;i<nl.length;i++){var _09n=nl.item(i); if(_09n.text.match(re)){if(_09n.nodeName=="reportCondition"){var _738=_09n.selectSingleNode("ancestor::*[parent::namedConditionalStyles]");this._zh(_ilm, _83m, _738.getAttribute("name"));}else{_09n=_vm8._di5(_09n);if(!_09n){continue;}var _c3e=new _cce(_09n, _vm8._94d(_09n),_vm8._3q8(_6aj._tq9(_09n)),_79k);_vm8._v93(_ilm, _c3e);}}}return _ilm;};_vm8._3p9=function(_ilm,_83m,_kjh){var _w37="[contains(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), translate(" + _cgm._zxc( _kjh ) + ", 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))]";var _zxm=_8qn._o5b( "layouts//", ["v2ChartItem", "chartTextItem", "richTextItem", "textItem"], "[dataSource/staticValue" + _w37 + "]" + "[not(ancestor::noDataHandler)]" );var _1ah=_83m.selectNodes(_zxm);var _5kn=_1ah.length;for(var i=0; i<_5kn; i++){var _jxd=_1ah.item(i);var _l2k=_jxd.selectSingleNode("dataSource/staticValue")||_jxd;var _hae=_l2k.text;var _c3e=new _cce(_jxd, _vm8._94d(_jxd),_vm8._3q8(_ath._e66(_jxd)),_hae);_vm8._v93(_ilm, _c3e);}return _ilm;};_vm8._l65=function(_ilm,_83m,_men){var _zxm="queries/*[contains(translate(@name, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), translate(" + _cgm._zxc( _men ) + ", 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))]";var _a4k=_83m.selectNodes(_zxm);var _tzl=_a4k.length;for(var i=0; i<_tzl; i++){var _fsm=_a4k.item(i);_vm8._h6b(_ilm, _83m, _fsm.getAttribute("name"));_vm8._md1(_ilm, _83m, _fsm.getAttribute("name"));}_zxm="queries/query/selection/*[contains(translate(@name, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), translate(" + _cgm._zxc( _men ) + ", 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))]";var _79h=_83m.selectNodes(_zxm);_tzl=_79h.length;for(var i=0; i<_tzl; i++){var _qxj=_79h.item(i);var _79k=_qxj.getAttribute("name");var _uwm=_6aj._kik(_qxj).getAttribute("name");_vm8._2f8(_ilm, _83m, _uwm, _79k);_vm8._a9(_ilm, _83m, _uwm, _79k);_vm8._5m(_ilm, _83m, _uwm, _79k);}_vm8._9c4(_ilm, _83m, _men);_vm8._3p9(_ilm, _83m, _men);var _br6=_pf7._buc(_83m);var _iyb=[];for(var i=0; i<_br6.length; i++){if(_br6[i].toLowerCase().indexOf(_men.toLowerCase())!==-1){_iyb.push(_br6[i]);}}for(var i=0; i<_iyb.length; i++){_vm8._zh(_ilm, _83m, _iyb[i]);}return _ilm;};