_kv9_async.js 7.8 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. _kv9._yjb=function(_jw4){var d=document;this._ar7=d.getElementById("idClassStylesView_divLocalClassList");this._en6=d.getElementById("idClassStylesView_divGlobalClassList");this._11i=d.getElementById("idClassStylesView_preview");this._1ga=d.getElementById("idClassStylesView_preview_block");this._1t5=d.getElementById("idClassStylesView_preview_tableCell");this._2r6=d.getElementById("idClassStylesView_preview_textItem");_erh._q0g(this);_v7g._9n9("WorkAreaRowPane", _kv9);};_kv9._9cj=function(_2bi,_jw4){var d=document;d.getElementById( "idClassStylesView_preview_page" ).style.cssText = _2e7._2n3()._0oh( ".pg" );this._eql.scrollTop=this._l2i;this._eql.onmousedown=this._4dg.bind(this);var _mfi=d.getElementById("idClassesView_classesRootPane");var _8sm=_frh._53g("ClassesBody");var div=this._lvh();this._80f=new _uzf(_mfi, _8sm, null, div.offsetWidth, div.offsetHeight);var _arg=_8l8._4uc();for(var i=0;i<_arg.length;i++){if(_arg[i].nodeName!="classStyle"){_8l8._rn9();break;}}this._90f={};_ud7._85j(this);};_kv9._4hm=function(){_ud7._hie(this);this._eql.onmousedown=null;if(this._eda){this._eda._fdm();this._eda=null;}if(this._519){this._519._fdm();this._519=null;}this._80f._fdm();};_kv9._u32=function(_vpf,_u9n,_xqm,_mzl,_bla){if(this._7ej&&this._80f&&_u9n.getAttribute( "id" )=="WorkAreaRowPane" ){var div=this._lvh();this._80f._cbb("ClassesBody", div.offsetWidth, div.offsetHeight);}};_kv9._ta5=function(){this._90f={};};_kv9._wfn=function(){this._5qe();if(this._eda){this._eda._bzm();}else{this._eda=new _pgk(this._ar7, _frh._53g("MultiSelectListWithCaseInsensitiveKeySearch"), this);}var _83m=_erh._vtc();_u0n._bf1(this._eda);this._eda._wfn();if(this._519){var _gpf=_8qn._867( null, _83m.selectNodes( "classStyles/classStyle[CSS and not(@label)]/@name" ) );var _fc1=_8qn._867( null, _83m.selectNodes( "reportStylesRef/classStyles/classStyle[CSS and not(@label)]/@name" ) );var nl=this._519._tfe();var _tzl=nl.length;for(var i=0;i<_tzl;i++){var _mzj=nl.item(i);var _uxm=_mzj.getAttribute("value");var _cdn="classStyle_global.gif";var _uhi=0;if(_fc1.has(_uxm)){_cdn="classStyle_global_ref.gif";_uhi++;}if(_gpf.has(_uxm)){_cdn="classStyle_global_modified.gif";_uhi++;}if(_uhi>1){_cdn="classStyle_global_ref_modified.gif";}_mzj.setAttribute("smallIcon", _cdn);}this._519._e7g();}else{var _ozj=_frh._53g("MultiSelectListWithCaseInsensitiveKeySearch");this._519=new _pgk(this._en6, _ozj, this);_u0n._t51(this._519, false);this._519._wfn();}this._em5();this._xcg();};_kv9._vq8=function(){var el;var _mzj=this._eda._885();if(_mzj){el=this._eda._803(_mzj);}else{var _mzj=this._519._885();if(_mzj){el=this._519._803(_mzj);}}return el?_4qn._td1([el]):null;};_kv9._yem=function(_6en,_ffc,_vin,_mnm,_qoj){if(_qoj){_8l8._ut9(_6en);}else if(_mnm){_8l8._dab(_6en);}else if(_vin){_8l8._bde(_6en);}else{_8l8._7je(_6en);}this._em5();};_kv9._em5=function(){var _arg=_8l8._yg8();if(_arg.length>0){this._eda._1u9(_pgk._8sc(this._eda._eq9(), "roid", _arg), false);this._519._1u9(_pgk._8sc(this._519._eq9(), "roid", _arg), false);if(_arg.length==1){setTimeout(this._3bg.bind(this, _arg[0]), 0);}else{this._tme();}}else{this._wi5();}_38g._7m();};_kv9._3bg=function(_6en){var _ypf=this._90f[_6en];if(!_ypf){var _b2h=_erh._9kl(_6en);if(!_b2h){this._tme();return;}var _ypf={};this._90f[_6en]=_ypf;var _k2k=_7th._477("textItem", _frh._c6j("IDS_SAMPLE_TEXT"));var _2rm=_erh._cnh("block");_ath._sqc(_2rm, _erh._e5j(_k2k, true));var _psm=_erh._z5b("table/tableRows/tableRow/tableCells/tableCell");var _fqi=_7hn._ij8(_psm, "tableRows/tableRow/tableCells/tableCell");_ath._sqc(_fqi, _erh._e5j(_k2k, true));var _lvm=_b2h.getAttribute("name");_s0n._rjk(_2rm, _lvm);_s0n._rjk(_fqi, _lvm);_s0n._rjk(_k2k, _lvm);_s0n._rjk(_psm, _n9g["table"]);_ypf._dwb=(new _oc8(_2rm, true, false, true))._wfn();_ypf._mq6=(new _oc8(_psm, true, false, true))._wfn();_ypf._6w7=(new _oc8(_k2k, true, false, true))._wfn();}this._1ga.innerHTML=_ypf._dwb;this._1t5.innerHTML=_ypf._mq6;this._2r6.innerHTML=_ypf._6w7;this._11i.style.visibility="";};_kv9._wi5=function(){this._eda._rn9();this._519._rn9();this._tme();};_kv9._tme=function(){this._1ga.innerHTML="";this._1t5.innerHTML="";this._2r6.innerHTML="";this._11i.style.visibility="hidden";};_kv9._r4g=function(){this._wi5();return true;};_kv9._pe4=function(_a6k,_mzj,_zdf){var a=[];var _i8i=_a6k._vd4();for(var i=0;i<_i8i.length;i++){a.push(_i8i[i].getAttribute("roid"));}_8l8._axc(a);if(a.length==1){this._em5();}else{this._tme();}};_kv9._oi2=function(_a6k,_mzj){};_kv9._oe4=function(_a6k,_i8i,_0a9,e){var _mzj=_i8i[0];var n=_erh._9kl(_mzj.getAttribute("roid"));_nkk._szm(null, this, n,(_a6k._ezm()=="idClassStylesView_divLocalClassList")?(_nkk.eEffectMove | _nkk.eEffectCopy):_nkk.eEffectCopy, _0a9);};_kv9._a7j=function(e){if(_vd7._kuc(e)){return;}if(this._519._885()){this._519._a7j(e);}else if(this._eda._885()){this._eda._a7j(e);}};_kv9._uph=function(e,_t8n,_4v2,_bom,_0a9){var _3yl=_nkk.eEffectNone;this._fij={};this._fij._fsj=_nkk.eLocationNone;this._fij.sSourceNodeName=_t8n.nodeName;this._fij._f2b="";var _sf9=this._eda._po9(e.clientX, e.clientY);if(_sf9){this._fij.sTargetROID=_sf9.nNode.getAttribute("roid");this._fij._f2b=_sf9.nNode.getAttribute("specname");}if(!_4qn._84g(e, this._ar7)){this._eda._3g4(_sf9);return _3yl;}switch(_t8n.nodeName){case "classStyle":switch(this._fij._f2b){case "classStyle":_3yl=_nkk.eEffectCopyOrMove;if(_sf9){_sf9._j89=_nkk.eLocationBeforeOrAfter;this._fij._fsj=_sf9._q2g();}break;default:if(!_sf9){_3yl=_nkk.eEffectCopyOrMove;}}break;}this._eda._3g4(_sf9);return(_3yl & _4v2);};_kv9._tph=function(e,_t8n,_3yl,_0a9){this._eda._j65();if(_3yl==_nkk.eEffectNone){this._em5();return;}if(_3yl==_nkk.eEffectCopy){_t8n=_erh._e5j(_t8n, true);}var _vdn=_t8n.getAttribute("name");if(_2e7._uh8(_vdn)){_t8n.setAttribute( "name", "cls" );_t8n.setAttribute( "label", _2e7._851( _vdn ) + "1" );var _tec=_2e7._503(_vdn);var _tkn=_7hn._ij8(_t8n, "CSS/@value");if(_tkn){_tec._5dm(new _bpc(_tkn.value));}_erh._h56( _t8n, "CSS" ).setAttribute( "value", _tec.toString() );}_erh._ybb();var n=this._2ph(null, _t8n, _erh._9kl(this._fij.sTargetROID), this._fij._fsj, this._fij._2yl);if(n){var _6en=n.getAttribute("iid");if(_8l8._wn3()!=_6en){_8l8._7je(_6en);}_erh._iee(true);}else{_erh._5c7();}};_kv9._ohe=function(){this._eda._j65();this._em5();};_kv9._2ph=function(_b2m,_j3m,_q3m,_fsj,_2yl){if(_j3m.nodeName!="classStyle"){return null;}var _83m=_erh._vtc();var _f1m=null;if(_q3m){_f1m=(_fsj==_nkk.eLocationBefore)?_q3m:_8qn._dn3(_q3m);if(_j3m==_f1m){return _j3m;}}if(_j3m.parentNode){_j3m=_j3m.parentNode.removeChild(_j3m);}var _vdn=_j3m.getAttribute("name");if(_2e7._uh8(_vdn)){var _b2h=_7hn._ij8( _83m, "classStyles/classStyle[@name='" + _vdn + "']" );var _tkn=_7hn._ij8(_j3m, "CSS");if(_tkn){var _uxm=_tkn.getAttribute("value");if(_uxm){_erh._h56( _b2h, "CSS" ).setAttribute( "value", _uxm );}}return _b2h;}_8qn._j8b(_j3m, _vdn, _83m.selectNodes("classStyles/classStyle/@name"), _vdn.length==3);var _pdh=_j3m.getAttribute("name");var _vln=_7hn._ij8( _erh._vtc(), "reportStylesRef/classStyles/classStyle[@name=" + _cgm._zxc( _pdh ) + "]" );if(_vln!=null){_j3m.setAttribute("isRef", "true");}else{_j3m.removeAttribute("isRef");}return _erh._h56(_83m, "classStyles").insertBefore(_j3m, _f1m);};_kv9._4dg=function(e){_v7g._ds();if((_4qn._84g(e, this._ar7)&&!this._eda._ukl(e.clientX, e.clientY))||(_4qn._84g(e, this._en6)&&!this._519._ukl(e.clientX, e.clientY))){this._yem(null);}};_kv9._kqc=function(){var _zpi=_8l8._r66();var _q3m=( _zpi&&( _zpi.nodeName=="classStyle" )&&!_2e7._v56()[_zpi.getAttribute( "name" )] )?_zpi:null;_erh._ybb();var n=_kv9._2ph(null, _erh._e5j(_y7g._znh("classStyle"), true), _q3m, _nkk.eLocationAfter);_8l8._axc([n.getAttribute("iid")], false);_erh._iee(true);};