123456 |
- // 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 _vf2=new _lcm("_vf2");_vf2._jgn=function(_u4c, _3bk, _tx6, _dvm, _0en, _pwm, _aw5, _b99, _g18, _qjn, _s8m, _mia, _n8f, _cv2){this._d0n._do6=_tx6;this._d0n._2km=_dvm;this._d0n._r3n=_0en;this._d0n._dkm=_pwm;this._d0n._rp5=_aw5;this._d0n._az8=_b99;this._d0n._1s7=_g18;this._d0n._phn=_qjn;this._d0n._i8a=_mia;this._d0n._oue=_n8f;this._d0n._wsl=_s8m;this._d0n._5s2=_cv2;this._4le(_u4c, null, _frh._c6j(_3bk));};_vf2._bgn=function(){var _qjn=this._d0n._phn;this._d0n._9lg._4f8();var _p3h=this._d0n._vjg;this._3le();_qjn(_p3h);};_vf2._5z2=function(){this._d0n._vjg=_erh._e5j(this._d0n._do6, true);if(!this._d0n._vjg.selectSingleNode("*")){setTimeout(this._d0n._az8, 0);}this._d0n._9lg=new _h47(this._d0n._vjg, this._d0n._2km, this._d0n._r3n, this._d0n._dkm);this._d0n._80f=new _uzf(this._2oh("divRootPane"), this._53g("RootPane"), null, this._m56(), this._m75());this._d0n._gsk=new _0jl(this._2oh("divToolbar"), this._53g("Toolbar"), this);this._d0n._yjj=new _pgk(this._2oh( "divTokenView" ), this._53g("TokenView" ), this);this._53d();};_vf2._53d=function(_67h){var _nxd=this._d0n._vjg.selectSingleNode("*");var _ini=this._d0n._yjj._5g8();_8qn._k5g(_ini, "*");if(_nxd){this._hhb(_ini, _nxd);this._d0n._yjj._wfn();}else{this._d0n._yjj._u6g(_frh._c6j("IDS_SETFILTER_NOCONDITIONS"));}if(_67h){this._rm7(_67h, false);}this._fmb();};_vf2._rm7=function(_d9n,_k7f){var n=this._d0n._yjj._5g8().selectSingleNode("*[not(@selectable='false')][@roid=" + _cgm._zxc( _d9n.getAttribute("iid") ) + "]");if(n){this._d0n._yjj._uab(n, _k7f);}};_vf2._hhb=function(_ini,_cyj,_kja){switch(_cyj.nodeName){case this._d0n._2km:case this._d0n._r3n:if(_kja){var _mzj=_8qn._u0g(_ini, "listItem");_mzj.setAttribute("label", "(");_mzj.setAttribute("selectable", "false");_mzj.setAttribute("roid", _cyj.getAttribute("iid"));_mzj.setAttribute("classPrefix", "_vf2_clsListItem_tokenOperator");_mzj.setAttribute("roid", _cyj.getAttribute("iid"));}var nl=_cyj.selectNodes("*");for(var i=0; i<nl.length;++i){if(i>0){var _mzj=_8qn._u0g(_ini, "listItem");_mzj.setAttribute("label", (_cyj.nodeName==this._d0n._2km)?" AND ":" OR ");_mzj.setAttribute("roid", _cyj.getAttribute("iid"));_mzj.setAttribute("operator", _cyj.nodeName);_mzj.setAttribute("classPrefix", "_vf2_clsListItem_tokenOperator");}this._hhb(_ini, nl.item(i), true);}if(_kja){var _mzj=_8qn._u0g(_ini, "listItem");_mzj.setAttribute("label", ")");_mzj.setAttribute("selectable", "false");_mzj.setAttribute("roid", _cyj.getAttribute("iid"));_mzj.setAttribute("classPrefix", "_vf2_clsListItem_tokenOperator");_mzj.setAttribute("roid", _cyj.getAttribute("iid"));}break;case this._d0n._dkm:var _mzj=_8qn._u0g(_ini, "listItem");_mzj.setAttribute("label", "NOT ");_mzj.setAttribute("roid", _cyj.getAttribute("iid"));_mzj.setAttribute("classPrefix", "_vf2_clsListItem_tokenOperator");_mzj.setAttribute("operator", _cyj.nodeName);var _mzj=_8qn._u0g(_ini, "listItem");_mzj.setAttribute("label", "(");_mzj.setAttribute("selectable", "false");_mzj.setAttribute("classPrefix", "_vf2_clsListItem_tokenOperator");_mzj.setAttribute("roid", _cyj.getAttribute("iid"));this._hhb(_ini, _cyj.selectSingleNode("*"));var _mzj=_8qn._u0g(_ini, "listItem");_mzj.setAttribute("label", ")");_mzj.setAttribute("selectable", "false");_mzj.setAttribute("classPrefix", "_vf2_clsListItem_tokenOperator");_mzj.setAttribute("roid", _cyj.getAttribute("iid"));break;default:var _mzj=_8qn._u0g(_ini, "listItem");_mzj.setAttribute((this._d0n._oue?"html":"label"), this._d0n._rp5(_cyj));if(_zpn._qsh["hal"]["enableAccessibility"]&&this._d0n._5s2){_mzj.setAttribute("sAriaLabel", this._d0n._5s2(_cyj));}_mzj.setAttribute("roid", _cyj.getAttribute("iid"));break;}};_vf2._fwh=function(){this._d0n._az8();};_vf2._7de=function(_yvd){this._d0n._9lg._7de(_yvd);this._53d(_yvd);};_vf2._0dg=function(){var _5zb=this._zv3(this._d0n._yjj._vd4());this._d0n._1s7(_5zb[0]);};_vf2._bj8=function(_kli,_yvd){_kli.parentNode.replaceChild(_yvd, _kli);this._53d(_yvd);};_vf2._p5d=function(){this._d0n._9lg._b1g(this._zv3(this._d0n._yjj._vd4()));this._53d();};_vf2._gwh=function(){this._d0n._9lg._dhk(this._6ib());this._53d();};_vf2._ecj=function(){this._d0n._9lg._bll(this._6ib());this._53d();};_vf2._owh=function(){this._d0n._9lg._7jk(this._zv3(this._d0n._yjj._vd4()));this._53d();};_vf2._6ib=function(){var _4zb=this._d0n._yjj._vd4();if(_4zb.length==1){var _p4h=_4zb[0];return this._zv3([_p4h.previousSibling, _p4h.nextSibling]);}return this._373(this._zv3(_4zb));};_vf2._4e1=function(){return this._d0n._80f._bg8();};_vf2._1q1=function(){return this._d0n._80f._jq9();};_vf2._zv3=function(_i8i){var _rlm=[];for(var i=0; i<_i8i.length;++i){var _7en=_i8i[i].getAttribute("roid");_rlm.push(this._d0n._vjg.selectSingleNode(".//*[@iid=" + _cgm._zxc( _7en ) + "]"));}return _rlm;};_vf2._373=function(_rlm){var _rpg=[];for(var i=0; i<_rlm.length;++i){var _q9n=_rlm[i];switch(_q9n.nodeName){case this._d0n._2km:case this._d0n._r3n:case this._d0n._dkm:break;default:_rpg.push(_q9n);break;}}return _rpg;};_vf2._jo9=function(){this._d0n._80f._cbb("_vf2_RootPane", this._m56(), this._m75());};_vf2._pe4=function(_a6k,_mzj,_zdf){this._fmb();};_vf2._oi2=function(_a6k,_mzj){var _4zb=this._d0n._yjj._vd4();if(_4zb.length==1){switch(_4zb[0].getAttribute("operator")){case this._d0n._2km:this._ecj();break;case this._d0n._r3n:this._gwh();break;case this._d0n._dkm:this._owh();break;default:var _rpg=this._373(this._zv3(_4zb));if(_rpg.length==1){this._0dg();}break;}}};_vf2._fmb=function(){var _5zb=this._zv3(this._d0n._yjj._vd4());var _rpg=this._373(_5zb);var _gbl=this._d0n._gsk;var _3qi=(_5zb.length==1)?_5zb[0]:null;var _o79=(_3qi&&_rpg.length==1);var _4v5=(_rpg.length>=2);_gbl._pj8("_vf2_btnEditCondition", _o79);_gbl._pj8("_vf2_btnDelete",(_3qi&&_3qi.nodeName==this._d0n._dkm)||((_rpg.length>0)&&(_rpg.length==_5zb.length)));_gbl._pj8("_vf2_btnAnd",(_3qi&&_3qi.nodeName==this._d0n._r3n)||_4v5);_gbl._pj8("_vf2_btnOr",(_3qi&&_3qi.nodeName==this._d0n._2km)||_4v5);_gbl._pj8("_vf2_btnNot", _5zb.length>0);this._pj8("btnOK", this._d0n._i8a||this._d0n._vjg.selectSingleNode("*"));};_vf2._o87=function(){return this._d0n._vjg;};_vf2._16j=function(){return this._d0n._wsl;};
|