_iyc_async.js 31 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. _iyc._ga2=0;_iyc._77j=function(_2am,_2bi){if(_2bi){this._qm4();}this._reg();};_iyc._qm4=function(){this._1og="ViewTitle";var d=document;this._egj=d.getElementById("idViewTitleViewer");this._zte=d.getElementById("idViewTitleViewerAnchor");this._8ql=d.getElementById("idViewTitleBack");this._2zh=d.getElementById("idViewTitleBackAnchor");this._2zh.onmousedown=_38g._blk._4em.bind(_38g._blk, false);this._v0i=d.getElementById("idViewTitleForward");this._t9d=d.getElementById("idViewTitleForwardAnchor");this._t9d.onmousedown=_38g._blk._j6j.bind(_38g._blk);this._a14=d.getElementById("idViewTitleNavigatorSeparator");this._9gj=d.getElementById("idViewTitleReport");this._yte=d.getElementById("idViewTitleReportAnchor");this._wfa=d.getElementById("idViewTitleReportTitle");if(_qgn._bsh){this._wfa.textContent=_frh._c6j("IDS_EL_dataset");}this._xte=d.getElementById("idViewTitleLevel1Anchor");this._67i=d.getElementById("idViewTitleLevel1Span");this._kw7=d.getElementById("idViewTitleLevel2IconSpan");this._wtk=d.getElementById("idViewTitleNameSpan");this._3zh=d.getElementById("idViewTitleNameAnchor");this._hp5=d.getElementById("idViewTitleConditionalState");this._9b3=d.getElementById("idViewTitleConditionalStateAnchor");this._9b3.onmouseover=this._q91.bind(this);this._9b3.onmousedown=this._p91.bind(this);this._cql=d.getElementById("idViewTitleLock");this._jim=d.getElementById("idViewTitleAdd");this._5ej=d.getElementById("idViewTitleAddAnchor");this._h8a=d.getElementById("idViewTitleDotDotDotAnchor");this._2gj=d.getElementById("idViewTitleEditor");this._wte=d.getElementById("idViewTitleEditorAnchor");this._57i=d.getElementById("idViewTitleEditorSpan");this._2qb=d.getElementById("idViewTitleQueriesView");this._np7=d.getElementById("idViewTitleQueriesViewAnchor");this._vfa=d.getElementById("idViewTitleQueriesViewSpan");this._ny8=d.getElementById("idViewTitleLevel2Chevron");this._5gj=d.getElementById("idViewTitleLevel1");this._6gj=d.getElementById("idViewTitleLevel2");this._6cd=d.getElementById("idViewTitleProperties");this._6cd.onmousedown=this._sx3.bind(this);Application.SharedState.AddObserver(this._1og, "showProperties", this._ua3.bind(this));this._ua3();this._3t4=this._2o4.bind(this);this._xr7=this._gl7.bind(this);this._mc3=this._d93.bind(this);this._wp5=this._9k5.bind(this);this._8t4=this._3o4.bind(this);this._yte.onmousedown=this._3t4;this._h8a.onmousedown=this._wn4.bind(this);this._jqb=this._rjb.bind(this);d.getElementById( "idViewTitleLockedAnchor" ).onmousedown = d.getElementById( "idViewTitleUnlockedAnchor" ).onmousedown = this._l4a.bind( this );Application.SharedState.AddObserver(this._1og, "isLocked", this._imb.bind(this));this._imb();this._eql=this._ivh();this._eql.onmousedown=this._wh6.bind(this);this._0gg=_zpn._qsh["hal"]["enableAccessibility"];if(this._0gg){this._eql.querySelector( ".clsViewTitleContainer" ).setAttribute( "_0sg", "true" );this._eql.onkeydown=this._acj.bind(this);}_8l8._q0g(this);_38g._q0g(this);_erh._q0g(this);_qkk._q0g(this);var _w8l=_5ml._9zm();Application.GlassContext.findCollection('com.ibm.bi.authoring.mnuViewTitleNavigatorReport').then(function(_pyb){this._m24=_pyb?this._qn2(_pyb):(_qgn._bsh?_6qn._cdm( ["mnuViewTitleNavigatorPromptPages", "mnuViewTitleNavigatorClassStyles", "mnuViewTitleNavigatorVariables"] ):new Set());this._reg();_w8l._3ml();}.bind(this)).catch(function(){ this._m24=new Set();this._reg();_w8l._3ml();}.bind(this));};_iyc._qn2=function(_pyb){var _484=_6qn._cdm(["mnuViewTitleNavigatorReportPages","mnuViewTitleNavigatorPromptPages","mnuViewTitleNavigatorQueries","mnuViewTitleNavigatorClassStyles","mnuViewTitleNavigatorVariables"]);for(var i=0; i<_pyb.length; i++){var _wlm=_pyb[i].id.split(".");_484.delete(_wlm[_wlm.length-1]);}this._2pb=(_484.size>0);return _484;};_iyc._fdm=function(){this._eql.onkeydown=null;this._eql=null;_qkk._hab(this);_8l8._hab(this); _38g._hab(this);_erh._hab(this);if(this._ju4){this._ju4._fdm();this._ju4=null;}if(this._xd3){this._xd3._fdm();this._xd3=null;}if(this._3r5){this._3r5._fdm();this._3r5=null;}if(this._0e3){this._0e3._fdm();this._0e3=null;}if(this._ct2){this._ct2._fdm();this._ct2=null;}this._egj=null;this._zte=null;this._8ql=null;this._2zh=null;this._v0i=null;this._t9d=null;this._a14=null;this._9gj=null;this._yte=null;this._wfa=null;this._xte=null;this._67i=null;this._kw7=null;this._wtk=null;this._3zh=null;this._cql=null;this._hp5=null;this._9b3=null;this._jim=null;this._5ej=null;this._h8a=null;this._2gj=null;this._wte=null;this._57i=null;this._2qb=null;this._np7=null;this._vfa=null;this._ny8=null;this._5gj=null;this._6gj=null;this._6cd=null;this._m24=null;};_iyc._m9=function(){this._reg();};_iyc._m42=function(){if(this._h09){this._h09._fdm();this._h09=null;}this._reg();};_iyc._pj2=function(){this._6d6();};_iyc._ta5=function(){this._6d6();this._reg();};_iyc._1d7=function(_vdn){switch(_vdn){case "ShowNavigationFlyouts":case "AlwaysShowNavigationIcons":this._6d6();break;case "ShowViewTitleLock":this._reg();break;}};_iyc._6d6=function(){if(this._xd3){this._xd3._fdm();this._xd3=null;}if(this._0e3){this._0e3._fdm();this._0e3=null;}if(this._ct2){this._ct2._fdm();this._ct2=null;}if(this._ev){this._ev._fdm();this._ev=null;}};_iyc._iv8=function(){setTimeout(this._reg.bind(this), 0);};_iyc._reg=function(){if(!this._czh||!_38g._g0n){return;}var _8cn=_38g._g0n;var _83m=_erh._vtc();var _93k=_8cn._p3g();var _1qj=(_8cn._79j=="viewer");this._mad=!!_8cn._oyc;this._q3=this._mad&&( _8cn._79j!="structure" )&&( _8cn._79j != "ar-page-preview" );var _78f=(_8cn==_k8j);var _mc1=_78f?_k8j._i22():null;var _zxk=_78f&&((_mc1=="query" )||( _mc1=="dimensionInfo" )||( _mc1=="memberSetStructure" ) );var _8ci=_78f&&(_mc1=="queries");var _yae=_93k?_93k.getAttribute("iid"):null;var _3nd=this._mad&&_93k&&_93k.parentNode&&(_93k.parentNode.nodeName=="promptPages");this._egj.style.display=_1qj?"":"none";this._8ql.style.display=_1qj?"none":"";this._v0i.style.display=_1qj?"none":"";var _w9l=_38g._blk;this._2zh.title=_w9l._n6b();this._t9d.title=_w9l._u87();this._2zh.setAttribute( "_m9k", _w9l._a5j()?"false":"true" );this._t9d.setAttribute( "_m9k", _w9l._lde()?"false":"true" );this._a14.style.display=_1qj?"none":"";this._9gj.style.display=_1qj?"none":"";this._2gj.style.display=this._mad?"":"none";if(this._mad){this._wte.onmousedown=this._xr7;this._57i.textContent=_frh._c6j(this._319[_8cn._79j]);}this._6cd.style.display=(_8ci||_zxk||!_qgn._bsh)?"":"none";this._2qb.style.display=_8ci?"":"none";if(_8ci){this._np7.onmousedown=this._mc3;this._vfa.textContent=_frh._c6j(this._bt2[_qkk._qik("QueriesViewerFilter")]);}this._ny8.style.display=(!this._2pb&&(this._mad||_zxk))?"":"none";this._6gj.style.display=(!this._2pb&&(this._mad||_zxk))?"":"none";this._kw7.innerHTML='<svg height="19px" width="19px"><use xlink:href="#' + ( _zxk?'def_el_query':'def_el_page' ) + '"/></svg>';var _tpj=(_8cn==_1e7);var _xxk=((_8cn==_j8j)||(_8cn==_ov9));this._5gj.style.display=(this._2pb||_tpj||_1qj)?"none":"";var _av2=null;if(this._mad){_av2=this._o51.bind(this, _3nd?"promptPages":"reportPages", _ypn._3i(), _yae);}else if(_zxk){_av2=this._o51.bind( this, "queries", null, ( _93k.nodeName=="query" )?_yae:_93k.parentNode.getAttribute( "iid" ) );}this._xte.onmousedown=_av2;this._jim.style.display=(!this._2pb&&(_xxk||_8ci))?"":"none";this._5ej.onmousedown=(_xxk||_8ci)?this._jqb:null;this._hp5.style.display=( _8cn._ts&&_7hn._ij8( _83m, "reportVariables/reportVariable" ) )?"":"none";this._9b3.setAttribute( "_l7m", _ypn._0e1()?"true":"false" );this._cql.style.display=( this._q3&&_qkk._qik( "ShowViewTitleLock" )&&!_qgn._bsh)?"":"none";this._67i.textContent=this._0ib(_93k);var _vdn=this._df6(_93k);this._ny8.style.display=(!this._2pb&&_vdn)?"":"none";this._wtk.textContent=_vdn;var _5na=this._mad?this._wp5:(_zxk?this._8t4:null);this._3zh.onmousedown=_5na;this._3zh.setAttribute( "_pwi", _5na?"true":"false" );this._3zh.setAttribute( "_l7m", "false" );this._yte.setAttribute( "_l7m", "false" );this._yte.setAttribute( "_ebk", _tpj?"true":"false" );this._wfa.style.fontWeight=_tpj?"bold":"";this._67i.style.fontWeight=(this._mad||_zxk)?"":"bold";};_iyc._319 ={"design":"IDS_MI_VIEW_PAGE_DESIGN","structure":"IDS_MI_VIEW_PAGE_STRUCTURE","preview2":"IDS_MI_VIEW_PAGE_PREVIEW","ar-page-preview":"IDS_MI_VIEW_PAGE_PREVIEW"};_iyc._bt2 ={"":"IDS_MI_POPUP_QUERYFILTER_ALL","referenced":"IDS_MI_POPUP_QUERYFILTER_REF"};_iyc._0ib=function(_93k){switch(_38g._g0n._79j){case "design":case "structure":case "viewer":case "preview2":case "ar-page-preview":var _3nd=(_93k&&_93k.parentNode&&(_93k.parentNode.nodeName=="promptPages"));return _frh._c6j(_3nd?"IDS_NAV_PROMPTPAGES":"IDS_NAV_REPORTPAGES");}switch(_38g._g0n){case _kv9:return _frh._c6j("IDS_EXPLORER_CLASS_STYLES");case _j8j:return _frh._c6j("IDS_NAV_REPORTPAGES");case _ov9:return _frh._c6j("IDS_NAV_PROMPTPAGES");case _kyc:return _frh._c6j("IDS_EXPLORER_VARIABLES");case _1e7:return _frh._c6j("IDS_EL_report");case _k8j:return _frh._c6j("IDS_EL_queries");}return "";};_iyc._df6=function(_93k){if(_38g._g0n._79j=="viewer"){return "";}if(_93k){var _vdn=_93k.getAttribute("name");if(!_vdn){switch(_93k.nodeName){ case "dimensionInfo":case "memberSetStructure":_vdn=_93k.parentNode.getAttribute("name");}}}return _vdn||"";};_iyc._wn4=function(e){if(e.button!=_4qn._ll8){return;}if(!this._3p6){this._3p6=new _3ce(_frh._53g("MenuPopupViewTitleDotDotDot"), this);}var _tbf=this._h8a.parentNode;var _ymn=_4qn._m97(_tbf);this._3p6._pxc("mnuViewTitleDotDotDotPopup", _ymn.left-8, _ymn.top+_tbf.offsetHeight - this._ga2);};_iyc._rjb=function(e){if(e.button!=_4qn._ll8){return;}e.stopPropagation();switch(_38g._g0n){case _ov9:var _j3m=_erh._e5j(_y7g._znh("promptPage"), true);_erh._ybb();var n=_ov9._2ph(_ypn._jf8(), _j3m, _8l8._r66(), _nkk.eLocationAfter, null);_8l8._axc([n.getAttribute("iid")], false);_erh._iee(true);return;}var _z9l=_4qn._m97(this._5ej);if(!this._h09){var _pvd=_frh._53g("MenuPopupViewTitleAdd");var _uni=_7hn._ij8(_pvd, "menuPopup");var d=_uni.ownerDocument;var a=_8qn._6l3(null, _7hn._x5g(_y7g._c87(), ".//treeNode[@value]"));var _vhi=0;for(var i=0;i<a.length;i++){var _t2k=a[i];var _zzj=_uni.appendChild(d.createElement("menuItem"));_zzj.setAttribute( "id", "mnuViewTitleAdd" + _vhi++ );_zzj.setAttribute( "value", _t2k.getAttribute( "value" ) );_zzj.setAttribute( "idsLabel", _t2k.getAttribute( "idsLabel" ) );_8qn._q5b( _zzj, _t2k, ["smallSvgIcon", "smallIcon"] );}this._h09=new _3ce(_pvd, this);}this._h09._pxc("mnuViewTitleAddPopup", _z9l.left-8, _4qn._m97(this._5ej).top+this._5ej.offsetHeight + 2);};_iyc._q91=function(e){var _21e=_ypn._0e1();var _9hl;if(_21e){var _33k=_agm._n3g(_erh._vtc(), _21e.Variable);var _ysm=_21e.Value?_dth._9h8(_33k, _21e.Value):null;_9hl=_21e.Variable+" = " + _rlk._huc( _33k, _ysm );}this._9b3.title=_9hl||_frh._c6j("IDS_TOOLTIP_CONDITIONAL_STATE");};_iyc._p91=function(e){if(e.button!=_4qn._ll8){return;}var _z9l=_4qn._m97(this._9b3);if(!this._ev){var _pvd=_frh._53g("MenuPopupViewTitleConditionalState");this._8k(_7hn._ij8(_pvd, "menuPopup"));this._ev=new _3ce(_pvd, this);}var _tbf=this._9b3.parentNode;var _ymn=_4qn._m97(_tbf);this._ev._pxc("mnuViewTitleConditionalStatePopup", _z9l.left-8, _ymn.top+_tbf.offsetHeight - this._ga2);};_iyc._8k=function(_uni){var _vhi=0;var d=_uni.ownerDocument;var _83m=_erh._vtc();var _21e=_ypn._0e1();var nl=_7hn._x5g(_83m, "reportVariables/reportVariable");var _tzl=nl.length;for(var i=0;i<_tzl;i++){var _33k=nl.item(i);var _pen=_33k.getAttribute("type");var _zzj=_uni.appendChild(d.createElement("menuSeparatorLabel"));_zzj.setAttribute( "indentLevel", "2" );_zzj.setAttribute( "label", _33k.getAttribute( "name" ) );_zzj.setAttribute( "roid", _33k.getAttribute( "iid" ) );_zzj.setAttribute( "smallSvgIcon", "def_reportVariable_" + _pen );var _p8l=_7hn._x5g(_33k, "variableValues/*");for(var _wqm=0;_wqm<_p8l.length;_wqm++){var _ysm=_p8l.item(_wqm);var _uxm=_ysm.getAttribute("value");var _zzj=_uni.appendChild(d.createElement("menuItem"));_zzj.setAttribute( "id", "mnuViewTitleConditionState" + _vhi++ );_zzj.setAttribute( "indentLevel", "3" );_zzj.setAttribute( "roid", _ysm.getAttribute( "iid" ) );switch(_pen){case "locale":_zzj.setAttribute( "label", ( _ysm.nodeName=="variableValue" )?_r7g._j7b( _uxm ):_uxm );break;case "boolean":if(_uxm=="1"){_zzj.setAttribute( "idsLabel", "IDS_PROPVAL_TRUE" );}break;default:_zzj.setAttribute("label", _uxm);}}var _zzj=_uni.appendChild(d.createElement("menuItem"));_zzj.setAttribute( "id", "mnuViewTitleConditionState" + _vhi++ );_zzj.setAttribute( "indentLevel", "3" );_zzj.setAttribute( "roid", _33k.getAttribute( "iid" ) );_zzj.setAttribute( "idsLabel", ( _pen=="boolean" )?"IDS_PROPVAL_FALSE":"IDS_NO_VALUE" );}};_iyc._ua3=function(){this._6cd.setAttribute( "_cxm", Application.SharedState.Get( "showProperties" )?"true":"false" );};_iyc._sx3=function(e){if(e.button==_4qn._ll8){e.stopPropagation();Application.SharedState.Toggle(this._1og, "showProperties");this._ua3();}};_iyc._imb=function(){var d=document;var _dwl=Application.SharedState.Get("isLocked");d.getElementById( "idViewTitleLockedAnchor" ).style.display = _dwl?"":"none";d.getElementById( "idViewTitleUnlockedAnchor" ).style.display = _dwl?"none":"";if(this._0gg&&this._rn6){var _ksn=this._rn6.id;if ((_ksn=="idViewTitleLockedAnchor" )||( _ksn=="idViewTitleUnlockedAnchor" ) ){this._sl5(d.getElementById(_dwl?"idViewTitleLockedAnchor":"idViewTitleUnlockedAnchor"));}}if(_qkk._qik("ShowUnlockedObjects")){d.getElementById( "idViewTitleUnlockedAnchor" ).style.fill = "rgb(90, 167, 0)";var el=d.getElementById("idWorkareaPane");if(_dwl){el.classList.remove("clsUnLocked");}else{el.classList.add("clsUnLocked");}if(!this._za2){this._za2=true;d.querySelector( "HEAD" ).appendChild( d.createElement( "STYLE" ) ).innerHTML = _geb._6sh.map(function(s){ return '.clsUnLocked *[specname="' + s + '"]:not([_fl9="true"])'; } ).join( ",\n" ) + '{ outline: 2px solid rgba(90, 167, 0, 0.5) !important; }';}}};_iyc._l4a=function(e){if(e.button==_4qn._ll8){e.stopPropagation();_ypn._3v9();}};_iyc._wh6=function(e){if(e.button!=_4qn._he7){return;}if(!this._ju4){this._ju4=new _3ce(_frh._53g("MenuPopupViewTitleOptions"), this);}this._ju4._pxc("mnuViewTitleOptionsPopup", e.clientX, e.clientY);};_iyc._2o4=function(e){if(e.button!=_4qn._ll8){return;}this._yte.setAttribute( "_l7m", "true" );if(!this._xd3){var _1y4=_qkk._qik( "AlwaysShowNavigationIcons" )||!_qkk._qik( "ShowNavigationFlyouts" );var _pvd=_frh._53g("MenuPopupViewTitleNavigator");_8qn._096(_pvd, "indentLevel");if(!_1y4){_8qn._096(_pvd, "smallSvgIcon");_8qn._433( _7hn._x5g( _pvd, ".//menuItem" ), "displayIcon", "false" );}var _uni=_7hn._ij8(_pvd, "menuPopup");_8qn._cqh(_uni, _qgn._bsh?"*[@id='mnuViewTitleNavigatorReport']":"*[@id='mnuViewTitleNavigatorDataset']");var _s05=_8qn._cqh(_uni, "*[@id='mnuViewTitleNavigatorReportPages']");var _o05=_8qn._cqh(_uni, "*[@id='mnuViewTitleNavigatorPromptPages']");var _ld9=_8qn._cqh(_uni, "*[@id='mnuViewTitleNavigatorQueries']");var _qz4=_8qn._cqh(_uni, "*[@id='mnuViewTitleNavigatorClassStyles']");var _bz6=_8qn._cqh(_uni, "*[@id='mnuViewTitleNavigatorVariables']");var _vhi=0;var d=_uni.ownerDocument;var _83m=_erh._vtc();var _qt6;var _cx5=_7hn._ij8(_83m, "layouts/conditionalLayouts");var _hf3=!!_cx5;if(_hf3){var _8wf=_cx5.getAttribute("refVariable");var _33k=_7hn._ij8( _83m, "reportVariables/reportVariable[@name=" + _cgm._zxc( _8wf ) + "]" );var _pen=_33k.getAttribute("type");var _u3k=_7hn._x5g(_cx5, "conditionalLayout[@refVariableValue]");for(var _rzl=0;_rzl<_u3k.length;_rzl++){var _b2m=_u3k.item(_rzl);var _dwm="";var _7b8=_b2m.getAttribute("refVariableValue");var _ysm=_7hn._ij8( _33k, "variableValues/*[@value=" + _cgm._zxc( _7b8 ) + "]" );switch(_pen){case "locale":_dwm=(_ysm.nodeName=="variableValue")?_r7g._j7b(_7b8):_7b8;break;case "boolean":_dwm=_frh._c6j("IDS_PROPVAL_TRUE");_qt6=true;break;default:_dwm=_7b8;}var _9y5=_uni.appendChild(d.createElement("menuItem"));_9y5.setAttribute("label", _dwm);if(_1y4){_9y5.setAttribute( "smallSvgIcon", "def_el_layout" );}else{_9y5.setAttribute( "displayIcon", "false" );}_vhi=this._7k7(_vhi, _uni, d, _hf3, _b2m, _7b8, _s05, _o05);_uni.appendChild(d.createElement("menuSeparator"));}}else{_8qn._cqh(_uni, "menuSeparator");}var _79c=_7hn._ij8(_83m, "layouts/layout");if(_hf3){var _9y5=_uni.appendChild(d.createElement("menuItem"));_9y5.setAttribute( "idsLabel", _qt6?"IDS_PROPVAL_FALSE":"IDS_SINGLE_LAYOUT" );if(_1y4){_9y5.setAttribute( "smallSvgIcon", "def_el_layout" );}else{_9y5.setAttribute( "displayIcon", "false" );}}_vhi=this._7k7(_vhi, _uni, d, _hf3, _79c, "", _s05, _o05);if(_hf3){_uni.appendChild(d.createElement("menuSeparator"));}if(!this._m24.has("mnuViewTitleNavigatorQueries")){var nl=_7hn._x5g(_83m, "queries/query");var _tzl=nl.length;_uni.appendChild(_ld9);var _w48=_uni;if((_tzl>0)&&_qkk._qik("ShowNavigationFlyouts")){_w48=_ld9.appendChild(d.createElement("menuPopup"));_ld9.setAttribute( "hasClickEventAndChildMenuPopup", "true" );_w48.setAttribute( "id", _ld9.getAttribute( "id" ) + "_menuPopup" + _vhi++ );}for(var i=0;i<_tzl;i++){var _fsm=nl.item(i);var _zzj=_w48.appendChild(d.createElement("menuItem"));_zzj.setAttribute( "indentLevel", "1" );_zzj.setAttribute( "id", "mnuViewTitleNavigatorItem" + _vhi++ );_zzj.setAttribute( "label", _fsm.getAttribute( "name" ) );_zzj.setAttribute( "roid", _fsm.getAttribute( "iid" ) );if(_1y4){_zzj.setAttribute( "smallSvgIcon", "def_el_query" );}else{_zzj.setAttribute( "displayIcon", "false" );}}}if(_hf3){_uni.appendChild(d.createElement("menuSeparator"));}if(!this._m24.has("mnuViewTitleNavigatorClassStyles")){_uni.appendChild(_qz4);}if(!this._m24.has("mnuViewTitleNavigatorVariables")){_uni.appendChild(_bz6);}this._xd3=new _3ce(_pvd, this);}var _tbf=this._9gj;var _ymn=_4qn._m97(_tbf);this._xd3._pxc("mnuViewTitleNavigatorPopup", _ymn.left-16, _ymn.top+_tbf.offsetHeight - this._ga2);};_iyc._7k7=function(_vhi, _uni, d, _hf3, _b2m, _59m, _s05, _o05){var _1y4=_qkk._qik( "AlwaysShowNavigationIcons" )||!_qkk._qik( "ShowNavigationFlyouts" );var _wjc=_hf3?_cgm._9vc(_59m):"";var _ldf=_hf3?2:1;var _ztf=_ldf.toString();if(!this._m24.has("mnuViewTitleNavigatorReportPages")){if(_59m){_s05=_s05.cloneNode(true);_s05.setAttribute( "indentLevel", "1" );_s05.setAttribute( "id", _s05.getAttribute( "id" ) + "_" + _59m );_s05.setAttribute( "onCommand", "_iyc._nph('reportPages','" + _wjc + "');" );}if(_hf3){_s05.setAttribute( "indentLevel", "1" );}_uni.appendChild(_s05);}var nl=_7hn._x5g(_b2m, "reportPages//page");var _tzl=nl.length;var _dsa=_uni;if(!this._m24.has("mnuViewTitleNavigatorReportPages")){if((_tzl>0)&&_qkk._qik("ShowNavigationFlyouts")){_dsa=_s05.appendChild(d.createElement("menuPopup"));_s05.setAttribute( "hasClickEventAndChildMenuPopup", "true" );_dsa.setAttribute( "id", _s05.getAttribute( "id" ) + "_menuPopup" + _vhi++ );}}else{_tzl=(_tzl>1)?1:_tzl;}for(var i=0;i<_tzl;i++){var _t9n=nl.item(i);var _zzj=_dsa.appendChild(d.createElement("menuItem"));_zzj.setAttribute( "indentLevel", ( !this._m24.has("mnuViewTitleNavigatorReportPages")?_ztf:"" ) );_zzj.setAttribute( "id", "mnuViewTitleNavigatorItem" + _vhi++ );_zzj.setAttribute( "label", _t9n.getAttribute( "name" ) );_zzj.setAttribute( "roid", _t9n.getAttribute( "iid" ) );_zzj.setAttribute("sLayout", _59m);if(_1y4){_zzj.setAttribute( "smallSvgIcon", "def_el_page" );}else{_zzj.setAttribute( "displayIcon", "false" );}}if(!this._m24.has("mnuViewTitleNavigatorPromptPages")){if(_59m){_o05=_o05.cloneNode(true);_o05.setAttribute( "id", _o05.getAttribute( "id" ) + "_" + _59m ); _o05.setAttribute( "onCommand", "_iyc._nph('promptPages','" + _wjc + "');" );}if(_hf3){_o05.setAttribute( "indentLevel", "1" ); }_uni.appendChild(_o05);var nl=_7hn._x5g(_b2m, "promptPages//page");var _tzl=nl.length;var _274=_uni;if((_tzl>0)&&_qkk._qik("ShowNavigationFlyouts")){_274=_o05.appendChild(d.createElement("menuPopup"));_o05.setAttribute( "hasClickEventAndChildMenuPopup", "true" );_274.setAttribute( "id", _o05.getAttribute( "id" ) + "_menuPopup" + _vhi++ );}for(var i=0;i<_tzl;i++){var _t9n=nl.item(i);var _zzj=_274.appendChild(d.createElement("menuItem"));_zzj.setAttribute("indentLevel", _ztf);_zzj.setAttribute( "id", "mnuViewTitleNavigatorItem" + _vhi++ );_zzj.setAttribute( "label", _t9n.getAttribute( "name" ) );_zzj.setAttribute( "roid", _t9n.getAttribute( "iid" ) );_zzj.setAttribute("sLayout", _59m);if(_1y4){_zzj.setAttribute( "smallSvgIcon", "def_el_page" );}else{_zzj.setAttribute( "displayIcon", "false" );}}}return _vhi;};_iyc._o51=function(_ick,_59m,_cnc,e){if(e.button==_4qn._ll8){this._nph(_ick, _59m, _cnc);}};_iyc._xre=function(_fal,_xae,_wzi,_ryb){setTimeout(_38g._ull.bind(_38g, _fal, _xae, true, undefined, undefined, undefined, _wzi, _ryb), 0);};_iyc._z3d=function(_59m){return _7hn._ij8( _erh._vtc(), _59m?( "layouts/conditionalLayouts/conditionalLayout[@refVariableValue=" + _cgm._zxc( _59m ) + "]/@iid" ):"layouts/layout/@iid" ).value;};_iyc._nph=function(_ick,_59m,_cnc){switch(_ick){case "report":var _eon=_erh._vtc().getAttribute("iid");this._xre(_1e7, _eon, undefined, [_eon]);break;case "reportPages":if(!_qgn._bsh){this._xre(_j8j, this._z3d(_59m), _59m||"", _cnc?[_cnc]:[]);}break;case "promptPages":this._xre(_ov9, this._z3d(_59m), _59m||"", _cnc?[_cnc]:[]);break;case "queries":var _w6l=_7hn._ij8(_erh._vtc(), "queries");this._xre(_k8j, _w6l?_w6l.getAttribute("iid"):null, undefined, _cnc?[_cnc]:[]);break;case "classStyles":this._xre(_kv9, null, undefined, []);break;case "variables":this._xre(_kyc, null, undefined, []);break;}};_iyc._gl7=function(e){if(e.button!=_4qn._ll8){return;}if(!this._3r5){var _pvd=_frh._53g("MenuPopupViewTitleEditor");if(_qgn._bsh){var _uni=_7hn._ij8(_pvd, "menuPopup");var _vh3=_7hn._ij8(_uni, ".//menuItem[@id='mnuViewTitleEditorPageStructure']");if(_vh3){_uni.removeChild(_vh3);}}this._3r5=new _3ce(_pvd, this);}var _tbf=this._wte.parentNode;var _ymn=_4qn._m97(_tbf);this._3r5._pxc("mnuViewTitleEditorPopup", _ymn.left-8, _ymn.top+_tbf.offsetHeight - this._ga2);};_iyc._d93=function(e){if(!this._xb2){this._xb2=new _3ce(_frh._53g("MenuPopupViewTitleQueriesView"), this);}var _tbf=this._np7.parentNode;var _ymn=_4qn._m97(_tbf);this._xb2._pxc("mnuViewTitleQueriesViewPopup", _ymn.left-8, _ymn.top+_tbf.offsetHeight - this._ga2);};_iyc._9k5=function(e){if(e.button!=_4qn._ll8){return;}this._3zh.setAttribute( "_l7m", "true" );var _b2m=_ypn._jf8();var _59m=_b2m.getAttribute( "refVariableValue" )||"";if(this._0e3&&(this._rv4!=_59m)){this._0e3._fdm();this._0e3=null;}if(!this._0e3){var _1y4=_qkk._qik( "AlwaysShowNavigationIcons" )||!_qkk._qik( "ShowNavigationFlyouts" );this._rv4=_59m;var _pvd=_frh._53g("MenuPopupViewTitlePageName");var _uni=_7hn._ij8(_pvd, "menuPopup");var d=_uni.ownerDocument;var _b2m=_ypn._jf8();var _vhi=0;var _n4m=_7hn._x5g(_b2m, "reportPages//page");var _cef=_n4m.length;var _uzd=_7hn._x5g(_b2m, "promptPages//page");var _bw6=_uzd.length;var _xia=_bw6>0;if(_xia){var _9y5=_uni.appendChild(d.createElement("menuSeparatorLabel"));_9y5.setAttribute( "idsLabel", "IDS_NAV_REPORTPAGES" );}for(var i=0;i<_cef;i++){var _t9n=_n4m.item(i);var _zzj=_uni.appendChild(d.createElement("menuItem"));_zzj.setAttribute( "id", "mnuViewTitlePageNamePage" + _vhi++ );_zzj.setAttribute( "label", _t9n.getAttribute( "name" ) );_zzj.setAttribute( "roid", _t9n.getAttribute( "iid" ) );_zzj.setAttribute("sLayout", _59m);if(_1y4){_zzj.setAttribute( "smallSvgIcon", "def_el_page" );}else{_zzj.setAttribute( "displayIcon", "false" );}}if(_xia){var _9y5=_uni.appendChild(d.createElement("menuSeparatorLabel"));_9y5.setAttribute( "idsLabel", "IDS_NAV_PROMPTPAGES" );}for(var i=0;i<_bw6;i++){var _t9n=_uzd.item(i);var _zzj=_uni.appendChild(d.createElement("menuItem"));_zzj.setAttribute( "id", "mnuViewTitlePageNamePage" + _vhi++ );_zzj.setAttribute( "label", _t9n.getAttribute( "name" ) );_zzj.setAttribute( "roid", _t9n.getAttribute( "iid" ) );_zzj.setAttribute("sLayout", _59m);if(_1y4){_zzj.setAttribute( "smallSvgIcon", "def_el_page" );}else{_zzj.setAttribute( "displayIcon", "false" );}}this._0e3=new _3ce(_pvd, this);}var _ymn=_4qn._m97(this._6gj);this._0e3._pxc("mnuViewTitlePageNamePopup", _ymn.left-8, _ymn.top+this._6gj.offsetHeight - this._ga2, this);};_iyc._3o4=function(e){if(e.button!=_4qn._ll8){return;}if(!this._ct2){var _1y4=_qkk._qik( "AlwaysShowNavigationIcons" )||!_qkk._qik( "ShowNavigationFlyouts" );var _pvd=_frh._53g("MenuPopupViewTitleQueryName");var _uni=_7hn._ij8(_pvd, "menuPopup");var d=_uni.ownerDocument;var _pul=_8qn._6l3(null, _7hn._x5g(_erh._vtc(), "queries/query"));var _vhi=0;for(var i=0;i<_pul.length;i++){var _fsm=_pul[i];var _zzj=_uni.appendChild(d.createElement("menuItem"));_zzj.setAttribute( "id", "mnuViewTitleQueryNameQuery" + _vhi++ );_zzj.setAttribute( "label", _fsm.getAttribute( "name" ) );_zzj.setAttribute( "roid", _fsm.getAttribute( "iid" ) );if(_1y4){_zzj.setAttribute( "smallSvgIcon", "def_el_query" );}else{_zzj.setAttribute( "displayIcon", "false" );}}this._ct2=new _3ce(_pvd, this);}var _ymn=_4qn._m97(this._6gj);this._ct2._pxc("mnuViewTitleQueryNamePopup", _ymn.left-8, _ymn.top+this._6gj.offsetHeight - this._ga2);};_iyc._rx=function(_52e,_phh){var _zzj=_52e._s2g(_phh);if(_zzj.getAttribute("onCommand")){return;}this._yte.setAttribute( "_l7m", "false" );this._3zh.setAttribute( "_l7m", "false" );switch(_52e){case this._xd3:case this._0e3:case this._ct2:var _6en=_zzj.getAttribute("roid");if(_6en){var n=_erh._9kl(_6en);switch(n.nodeName){case "page":var _ryb;var _s4n=_8l8._yg8();var _tzl=_s4n.length;for(var i=0;i<_tzl;i++){var _eon=_s4n[i];if(!_7hn._ij8( n, "descendant-or-self::*[@roid='" + _eon + "']" ) ){_ryb=[];break;}}this._xre( _ypn._pc4(), _6en, _zzj.getAttribute( "sLayout" )||"", _ryb );break;case "query":this._xre(_k8j, _6en);break;}}break;case this._h09:var _q3m=_8l8._r66();var _f2b=_q3m?_q3m.nodeName:"";var _j3m=_erh._e5j(_y7g._znh(_zzj.getAttribute("value")), true);var _fsj=_nkk.eLocationAfter;switch(_f2b){case "pageSet":case "detailPages":case "headerPages":case "footerPages":case "pageGroup":_fsj=_nkk.eLocationInside;}switch(_38g._g0n){case _ov9:_erh._ybb();var n=_ov9._2ph(_ypn._jf8(), _j3m, _q3m, _fsj, null);_8l8._axc([n.getAttribute("iid")], false);_erh._iee(true);break;case _j8j:_o42._2ph(_ypn._jf8(), _j3m, _q3m, _fsj, null);break;case _k8j:switch(_k8j._i22()){case "queries":_erh._ybb();var _w6l=_erh._h56(_erh._vtc(), "queries");var n=_enl._2ph(_w6l, _j3m, _q3m, _fsj, null);_8l8._axc([n.getAttribute("iid")], false);_erh._iee(true);break;}break;}break;case this._ev:switch(_phh){case "mnuViewTitleConditionalStateClear":setTimeout(_ypn._rf1.bind(_ypn, null), 0);this._iv8();break;default:var n=_erh._9kl(_zzj.getAttribute("roid"));if(n.nodeName=="reportVariable"){setTimeout(_ypn._rf1.bind(_ypn, n.getAttribute("name")), 0);}else{var _33k=_dth._n3g(n);setTimeout( _ypn._rf1.bind( _ypn, _33k.getAttribute( "name" ), n.getAttribute( "value" ), _33k.getAttribute( "type" ) ), 0 );}this._iv8();}break;}};_iyc._h32=function(_52e,_uni,_qhh){if(!_qhh){this._yte.setAttribute( "_l7m", "false" );this._3zh.setAttribute( "_l7m", "false" );}};_iyc._zp2=function(el,_2xk,_jam){((el.nodeName=="svg" )?el:el.querySelector( "svg" ) ).style.transform = _2xk?( _jam||"rotate(180deg)" ):"rotate(0deg)";};_iyc._mi=function(_52e,_1z7){switch(_52e){case this._0e3:case this._ct2:this._zp2(document.getElementById("idViewTitleNameSpanDropdownArrow"), _1z7);break;case this._xd3:this._zp2(this._yte, _1z7, "rotate(-90deg)");break;case this._3r5:this._zp2(this._wte, _1z7);break;case this._xb2:this._zp2(this._np7, _1z7);break;}};_iyc._qx=function(_52e,_uni){switch(_52e){case this._xd3:case this._0e3:case this._ct2:var _1c9;switch(_38g._g0n){case _kv9:_1c9=_7hn._ij8(_uni, ".//menuItem[@id='mnuViewTitleNavigatorClassStyles']");break;case _j8j:var _59m=_ypn._3i();var _lsn="mnuViewTitleNavigatorReportPages" + ( _59m?( "_" + _59m ):"" );_1c9=_7hn._ij8( _uni, ".//menuItem[@id=" + _cgm._zxc( _lsn ) + "]" );break;case _ov9:var _59m=_ypn._3i();var _lsn="mnuViewTitleNavigatorPromptPages" + ( _59m?( "_" + _59m ):"" );_1c9=_7hn._ij8( _uni, ".//menuItem[@id=" + _cgm._zxc( _lsn ) + "]" );break;case _kyc:_1c9=_7hn._ij8(_uni, ".//menuItem[@id='mnuViewTitleNavigatorVariables']");break;case _1e7:_1c9=_7hn._ij8(_uni, ".//menuItem[@id='mnuViewTitleNavigatorReport']");break;case _k8j:if(_k8j._i22()=="queries"){_1c9=_7hn._ij8(_uni, ".//menuItem[@id='mnuViewTitleNavigatorQueries']");break;}default:var _7en=_38g._g0n._gr9();if(_7en){_1c9=_7hn._ij8( _uni, ".//menuItem[@roid='" + _7en + "']" );}}if(_1c9){_52e._n96( _1c9.getAttribute( "id" ), true, "clsViewTitleDefaultLabel" );}var nl=_7hn._x5g(_uni, ".//menuItem[@default='true']");for(var i=0;i<nl.length;i++){_52e._n96( nl.item( i ).getAttribute( "id" ), false, "clsViewTitleDefaultLabel" );}if(_1c9){_52e._n96( _1c9.getAttribute( "id" ), true, "clsViewTitleDefaultLabel" );}break;case this._3p6:this._ft1(_52e, _uni);break;case this._ev:var nl=_7hn._x5g(_uni, ".//menuItem[@radioChecked='true']");for(var i=0;i<nl.length;i++){_52e._4q3(nl.item(i).getAttribute("id"), false);}var _21e=_ypn._0e1();if(_21e){var _33k=_agm._n3g(_erh._vtc(), _21e.Variable);var _7en=(_21e.Value?_dth._9h8(_33k, _21e.Value):_33k).getAttribute("iid");_52e._4q3( _7hn._ij8( _uni, ".//menuItem[@roid='" + _7en + "']" ).getAttribute( "id" ), true );}break;}};_iyc._xl7=function(e){if(e.button!=_4qn._ll8){return;}if(!this._3p6){this._3p6=new _3ce(_frh._53g("MenuPopupViewTitleDotDotDot"), this);}var _tbf=this._zte.parentNode;var _ymn=_4qn._m97(_tbf);this._3p6._pxc("mnuDebugViewerPopup", _ymn.left-8, _ymn.top+_tbf.offsetHeight - this._ga2);};_iyc._ft1=function(_52e,_uni){var _muf=_uni.getAttribute("id");var _1qj=(_38g._g0n._79j=="viewer");switch(_muf){case "mnuViewTitleDotDotDotPopup":_52e._o96("mnuViewTitleDotDotDotVisualAids", !_1qj&&this._q3&&!_qgn._bsh);_52e._o96("mnuViewTitleDotDotDotEditFind", !_1qj);_52e._o96("mnuViewTitleDotDotDotValidateReport", !_1qj);_52e._o96("mnuViewTitleDotDotDotValidateOptions", !_1qj);_52e._o96("mnuViewTitleDotDotDotAutoCorrect", !_1qj);_52e._o96("mnuViewTitleDotDotDotLCRManager", !_1qj&&!_qgn._bsh);_52e._o96("mnuViewTitleDotDotDotManageConditionalStyles", !_1qj&&!_qgn._bsh);_52e._o96("mnuViewTitleDotDotDotShowGeneratedSQL", !_1qj);_52e._o96( "mnuViewTitleUpdateViz", !_1qj&&!!_7hn._ij8( _erh._vtc(), ".//viz" ) );if(_qgn._bsh){_52e._o96("mnuViewTitleDotDotDotAddSharedSetReport", false);_52e._o96("mnuViewTitleDotDotDotEditSharedSetReports", false);_52e._o96("mnuViewTitleDotDotDotManageSharedSetReferences", false);_52e._o96("mnuViewTitleDotDotDotOptions", false);}break;}};_iyc._9k8=function(_l8m){_qkk._3kk("QueriesViewerFilter", _l8m);this._reg();};_iyc._acj=function(e){var _tzk=this._gbj(e);if(!_tzk){return;}switch(e.keyCode){case _4qn._x8j:case _4qn._09j:case _4qn._b8g:case _4qn._wyc:if(!_tzk.disabled){_k0d._6a6(_tzk, _4qn._ll8, e.ctrlKey, e.shiftKey, true);this._rn6=_tzk;}_4qn._w0g(e);break;case _4qn._1db:this._sl5(this._74d(_tzk));break;case _4qn._xyc:this._sl5(this._dj7(_tzk));break;case _4qn._gml:this._rn6=null;break;}};_iyc._sl5=function(_tzk,e){this._rn6=_tzk;if(!this._rn6.getAttribute("tabIndex")){this._rn6.setAttribute( "tabIndex", "-1" );}this._rn6.focus();if(e){_4qn._w0g(e);}};_iyc._gbj=function(e){for(var el=e.target;el!=this._eql;el=el.parentNode){if(el.nodeName=="A"){return el;}}return null;};_iyc._oh5=function(){return Array.prototype.filter.call( this._eql.querySelectorAll( "A" ),function(el){ return ( el.style.display != "none" )&&( el.parentNode.style.display != "none" ); } );};_iyc._74d=function(_tzk){var _duk=this._oh5();var i=_duk.indexOf(_tzk)+1;return _duk[(i<_duk.length)?i:0];};_iyc._dj7=function(_tzk){var _duk=this._oh5();var i=_duk.indexOf(_tzk)-1;return _duk[(i<0)?(_duk.length-1):i];};