// 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 _o57=new _lcm("_o57");_o57._jgn=function(_u4c,_1bc,_qjn){this._209=_1bc;this._d0n._phn=_qjn;this._4le(_u4c);};_o57._5z2=function(){if(!this._209){setTimeout(this._1gn.bind(this), 0);return;}if(!this._209.selectSingleNode("setCustomGroups")){_erh._u0g(this._209, "setCustomGroups");var _od9=_erh._u0g(this._209, "customGroupRemainingMembers");_erh._u0g(_od9, "includeRemainingMembers");}this._dsb=_dth._ug8(this._209);this._d0n._gsk=new _0jl(this._2oh("divToolbar"), this._53g('ToolbarCustomGroup'), this);this._d0n._64i=new _pgk(this._2oh("divGroupList"), _frh._53g('EmptyList'), this);this._vqe();this._6m1=this._2oh("radRemainginValuesNotShown");this._k21=this._2oh("radRemainingValueEachIsGroup");this._j21=this._2oh("radRemainginValuesOtherGroup");this._ew1();this._2z3();this._fu8();};_o57._o46=function(){this._fdm();this._dsb=null;};_o57._fdm=function(){if(this._d0n._gsk){this._d0n._gsk._fdm();delete this._d0n._gsk;}if(this._d0n._64i){this._d0n._64i._fdm();delete this._d0n._64i;}};_o57._bgn=function(){if(this._d0n._phn){var _q9n=this._209;var _qjn=this._d0n._phn;this._3le();_qjn(_q9n);return;}this._3le();};_o57._9jk=function(){this._bm8();};_o57._pe4=function(_a6k,_mzj,_zdf){this._2z3();};_o57._oi2=function(_a6k,_mzj){this._s4g();};_o57._d7j=function(){var _wmi=this._d0n._64i._885();var _t6c=this._sq8(this._d0n._64i);var _62k=this._209.selectSingleNode("setCustomGroups/*[" + (_t6c + 1) + "]");_t6c=Math.max(_t6c-1, 0);var _jd9=_8qn._4q1(_wmi);_wmi.parentNode.insertBefore(_wmi.parentNode.removeChild(_wmi), _jd9);_jd9=_8qn._4q1(_62k);_62k.parentNode.insertBefore(_62k.parentNode.removeChild(_62k), _jd9);this._d0n._64i._wfn();this._d0n._64i._gwc(_t6c, true);this._2z3();};_o57._q4g=function(){var _wmi=this._d0n._64i._885();var _t6c=this._sq8(this._d0n._64i);var _62k=this._209.selectSingleNode("setCustomGroups/*[" + (_t6c + 1) + "]");_t6c=_t6c+1;var _djf=_8qn._dn3(_wmi);_wmi.parentNode.insertBefore(_wmi.parentNode.removeChild(_djf), _wmi);_djf=_8qn._dn3(_62k);_62k.parentNode.insertBefore(_62k.parentNode.removeChild(_djf), _62k);this._d0n._64i._wfn();this._d0n._64i._gwc(_t6c, true);this._2z3();};_o57._ovc=function(){var _wmi=this._d0n._64i._885();var _t6c=this._sq8(this._d0n._64i);var _62k=this._209.selectSingleNode("setCustomGroups/*[" + (_t6c + 1) + "]");var _1ui=this._d0n._64i._tfe();_t6c=Math.min(_t6c, Math.max(0,(_1ui.length-2)));_wmi.parentNode.removeChild(_wmi);_62k.parentNode.removeChild(_62k);this._d0n._64i._wfn();this._d0n._64i._gwc(_t6c, true);this._2z3();this._fu8();};_o57._oph=function(){var _ikf=_dth._ug8(this._209).cloneNode(true);var _g38=_dth._l7b(_ikf, this._209);var _xmi=this._209.selectSingleNode("setCustomGroups");var _qrm=_erh._u0g(_g38, "customMembersGroup");var _qjn=this._jc6.bind(this, _xmi);_8fm._jgn("_a0g", this._xp9(), _qrm, false, _qjn, false);};_o57._s4g=function(){var _ikf=_dth._ug8(this._209).cloneNode(true);var _g38=_dth._l7b(_ikf, this._209);var _t6c=this._sq8(this._d0n._64i);var _qrm=_g38.selectSingleNode("setCustomGroups/*[" + (_t6c + 1) + "]");var _x0k=_dth._l7b(_dth._ug8(this._209), _qrm);var _qjn=this._z93.bind(this, _x0k);_8fm._jgn("_a0g", this._xp9(), _qrm, false, _qjn, false);};_o57._jc6=function(_33m,_iln){_33m.appendChild(_erh._woh(_iln, true));this._vqe();this._fu8();};_o57._z93=function(_x0k,_iln){_x0k.parentNode.replaceChild(_erh._woh(_iln, true), _x0k);this._vqe();this._fu8();};_o57._f23=function(){var _od9=this._209.selectSingleNode('customGroupRemainingMembers');if(_od9){var _0ta=_od9.firstChild;_0ta.setAttribute("label", this._2oh("txtOtherGroupName").value);}};_o57._fu8=function(){var _roj;if(this._209.selectNodes('setCustomGroups/*').length==0){_roj=true;}this._pj8("btnOK", !_roj);};_o57._2h5=function(_a8k){return _frh._c6j('IDS_CUSTOM_GROUPS_DEFAULT_NAME', _a8k);};_o57._2z3=function(){var _15n=this._d0n._64i._vd4();this._d0n._gsk._pj8("_o57_btnDeleteGroup", _15n.length>0);this._d0n._gsk._pj8("_o57_btnEditGroup", _15n.length==1);this._d0n._gsk._pj8("_o57_btnGroupUp", _15n.length==1&&_15n[0]&&_15n[0].previousSibling);this._d0n._gsk._pj8("_o57_btnGroupDown", _15n.length==1&&_15n[0]&&_15n[0].nextSibling);};_o57._ew1=function(){var _od9=this._209.selectSingleNode('customGroupRemainingMembers');var _0ta=_od9.firstChild;if(_0ta.nodeName=="includeRemainingMembers"){this._6m1.checked=false;this._k21.checked=true;this._j21.checked=false;this._2oh("txtOtherGroupName").value = "";}else if(_0ta.nodeName=="excludeRemainingMembers"){this._6m1.checked=true;this._k21.checked=false;this._j21.checked=false;this._2oh( "txtOtherGroupName").value = "";}else{this._6m1.checked=false;this._k21.checked=false;this._j21.checked=true;this._2oh("txtOtherGroupName").value = _0ta.getAttribute("label");}this._cb5("txtOtherGroupName", this._j21.checked);};_o57._892=function(){var _s16=this._2oh("txtOtherGroupName").value;if(_s16.length==0){_s16="Other";}_8qn._cqh(this._209, 'customGroupRemainingMembers');var _od9=_erh._u0g(this._209, "customGroupRemainingMembers");if(this._k21.checked==true){_erh._u0g(_od9, "includeRemainingMembers");}else if(this._6m1.checked==true){_erh._u0g(_od9, "excludeRemainingMembers");}else{var _z5h=_erh._u0g(_od9, "groupRemainingMembersAs");_z5h.setAttribute("label", _s16);}this._ew1();};_o57._vqe=function(){var _h9h=this._209.selectNodes('setCustomGroups/*');this._d0n._64i._bzm();for(var i=0;i<_h9h.length;i++){this._1n4(_h9h.item(i), false);}this._d0n._64i._wfn();this._2z3();};_o57._1n4=function(_irm,_rwl){var _mzj=this._d0n._64i._767();_mzj.setAttribute('label', _irm.getAttribute('label'));var _t6c=this._sq8(this._d0n._64i);var _1ui=this._d0n._64i._tfe();if(_t6c<_1ui.length-2){var _wmi=this._d0n._64i._885();if(_wmi){var _djf=_8qn._dn3(_wmi);if(_djf){_djf.parentNode.insertBefore(_djf.parentNode.removeChild(_mzj), _djf);}}}if(_rwl){this._d0n._64i._wfn();this._d0n._64i._gwc(_t6c+1, true);this._2z3();}};_o57._sq8=function(_a6k){var nl=_a6k._tfe();for(var i=0;i