// 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.
define(["_gk3"],function(_gk3){"use strict";function _tl(_83m, _hfl, _w69){_tl.baseConstructor.call(this, _83m);this._etk=_hfl;this._bx8=_w69;};_olk._vjl(_tl, _gk3);_tl.prototype._j6b=function(){this._irl.removeAttribute("viewPagesAsTabs");var _35l=this._irl.selectSingleNode("layouts");var _t9n=_35l.selectSingleNode( ".//page[@iid='" + this._etk + "']" );var _b2m=_ath._36j(_t9n);_b2m.parentNode.removeChild(_b2m);_8qn._k5g(_35l, "*");if(_b2m.nodeName=="conditionalLayout"){_b2m.removeAttribute("refVariableValue");_b2m=_8qn._c6g(_b2m, "layout");}_35l.appendChild(_b2m);var _6am=this._bx8?"reportPages":"*";_8qn._k5g( _b2m, _6am+"//page[@iid!='" + this._etk + "']" );_8qn._k5g(_b2m, _6am+"//pageSet[not(.//page)]");_8qn._k5g(_b2m, _6am+"//bookletItem");_8qn._k5g(_b2m, _6am+"//conditionalRender");_q0n._bsc(_b2m);_8qn._k5g( _b2m, ".//*[self::TOCEntry | self::reportDrills | self::pageModule]" );_8qn._161( this._irl.selectNodes( "queries/query//filterDefinition//*[@parameterized]" ), "parameterized" );var nl=this._irl.selectNodes( "layouts//layoutComponentRef[not(reportPath) and not(layoutComponent)][not(ancestor::layoutComponent)]" );var _tzl=nl.length;for(var i=0;i<_tzl;i++){var _0y5=nl.item(i);var _vdn=_0y5.getAttribute("refLayoutElement");if(!_wle._y56(this._irl, _vdn)){var _ec9=_wle._y56(this._xba, _vdn);_0y5.appendChild(this._irl.ownerDocument.createElement("layoutComponent")).appendChild(_ec9.cloneNode(true));}}this._mg6(_35l);this._h82(_b2m);this._801(_35l);this._eo2(_b2m);_gk3.prototype._j6b.call(this);};_tl.prototype._mg6=function(_1an){var _cpn=_gyc._t5j()+"images/def_el_image.svg";var nl=_1an.selectNodes( ".//image/dataSource/staticValue[not(text()) or text()=''][not(ancestor::layoutComponent)]" );var _tzl=nl.length;for(var i=0;i<_tzl;i++){_7hn._qll(nl.item(i), _cpn);}};_tl.prototype._h82=function(_0pi){if(!this._rfa){var _w8i=["hyperlink","HTMLItem","layoutComponentRef","asOfTime","richTextItem","TOC","TOCEntry","CMMMap","viz","customControl"];_w8i=_w8i.concat(_geb._lw9).concat(_geb._oe7);_tl.prototype._rfa =".//list[not(listColumns/listColumn)][not(ancestor::layoutComponent)] | " +".//crosstab[not(descendant::*[@refDataItem])][not(ancestor::layoutComponent)] | " +".//repeaterTable[not(repeaterTableCell/contents/*)][not(ancestor::layoutComponent)] | " +".//*[self::repeater or self::singleton][not(contents/*)][not(ancestor::layoutComponent)] | " +".//listControl[not(lcColumns/lcColumn)][not(ancestor::layoutComponent)] | " +_8qn._o5b( ".//", _w8i, "[not(ancestor::layoutComponent)]" );}var d=_0pi.ownerDocument;var nl=_0pi.selectNodes(this._rfa);var _tzl=nl.length;for(var i=0;i<_tzl;i++){var n=nl.item(i);if(!_dth._ug8(n)){continue;}var _ick=n.nodeName;if(_geb._7f7[_ick]){if(!_n0n._c12(n)){n.parentNode.replaceChild(this._g62(this._363(n), n.getAttribute("iid")), n);}}else if(_ick=="viz"){if(!_7qn._7vc(n)){n.parentNode.replaceChild(this._g62(this._ek4(n), n.getAttribute("iid")), n);}}else{var _5dn=(new _oc8(n, true, false, true, true))._wfn();var _uyj=n.parentNode.insertBefore(this._g62(_5dn, n.getAttribute("iid")), n);switch(_ick){case "asOfTime":case "TOC":case "TOCEntry":break;default:n.parentNode.removeChild(n);}}}};_tl.prototype._363=function(_8rm){var _lbh=new _oc8(_8rm, true, true);var _xtn=new _ece();var _1ae="display: inline;";var _axf="width:300px; height:180px; text-align: center;";_1ae="display: inline-block;";_axf="text-align:center !important;";_lbh._7p9(_xtn, _8rm, "DIV", _lbh._psc(_8rm, _1ae, _axf));if(!_geb._wsh[_8rm.nodeName]){var _fon=_n0n._z77(_8rm);_xtn._uzm('');}else{var _yti=_fnl._v66(_8rm);_xtn._uzm('
');}_xtn._uzm("