// Licensed Materials - Property of IBM // IBM Cognos Products: irot // (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(["text!cchl/res/FMRequestTemplates.xml"],function(_jp1){"use strict";var _9a=0;var _rh1=1;var _t01=2;var _yo=3;var _4k=4;var _xo=5;var _z6=6;var _9e5=["folder","hierarchyFolder","measureFolder","measure","queryItemFolder","querySubject","queryItem","filter","calculation","dimension","hierarchy","level","member","hierarchyNamedSet"];function _qt5(){this._xc7={};Object.defineProperties(this,{ _p87:{get:this._dz5,enumerable: true},_xc7:{enumerable: false,value: this._xc7},_lv4:{get:this._ej3,enumerable: false}});};_qt5.prototype._dz5=function(){switch(this._009){case "member":return this._699;case "model":return this._nr6;}return this._xc7._ad8;};_qt5.prototype._ej3=function(){if(this._xc7._tm3){return "MT_"+this._xc7._ad8;}return this._xc7._ad8;};function _q57(_wl7, _fu2){this._2d7=_wl7;this._fq2=_fu2;this._yl3=[];this._oi6();this._re5=false;}_q57.prototype._ev5=function(){return this._2d7;};_q57.prototype._oi6=function(){this._c41={};this._4y1={};this._ru4={};this._bx={};this._er={};this._hb={};this._yp2=null;this._941=null;this._d41=null;this._gx=null;this._741=null;this._pm=null;this._0e=null;this._ab2=null;this._rh=null; this._re5=false;};_q57.prototype._yt7=function(){return Application.SharedState.Get('isViewer');};_q57.prototype._t34=function(_al8){if(_al8){return 'start_atPath="' + _jp8._s77( _al8.replace( /\$/g, "$$$$" ) ) + '"'; }return this._yt7()?'':'start_atPath=""';};_q57.prototype._31=function(_w68){if(!this._gb){this._gb=this._ov1(_w68);return this._gb;}else {return this._gb.then(function(_t51){if(_t51._cr7&&_t51._cr7()){return _t51;}return this._ov1(_w68);}.bind(this),function(_d02){return _d02;}.bind(this));}};_q57.prototype._a85=function(){if(this._yp2){return this._yp2;}if(!_ss7._jr7("UsePartialModelRequest")){this._yp2=this._kj3().then(function(_kp5){return this._9i3(this._y5(_kp5, _t01));}.bind(this));return this._yp2;}var _ow8=Q.defer();var _w68=this._c72("ModelItemsRequest").replace(/@START_AT_PATH@/g, this._t34("")).replace( "@DEPTH@", "2" ).replace( "@CONSTRAINTS@", "" );this._31(_w68).done(function(_e48){var _635={};var _sw8=_e48._cr7();if(_sw8){_635._6p8=_sw8;}else{_635._bo4=_e48._1r1();}_ow8.resolve(this._9i3(_635));}.bind(this));this._yp2=_ow8.promise;return this._yp2;};_q57.prototype._nh2=function(){if(this._941){return this._941;}this._941=Q.all([this._dd(), this._e22()]).spread(function(_635,_v38){return this._j91(_635, _v38);}.bind(this));return this._941;};_q57.prototype._j91=function(_635,_v38){var _s59=new _qt5();_s59._009="model";_s59._nr6=this._2d7._zz8;_s59._tm3=true;if(_635._6p8){_s59._yz8=_fa5._885(this._2d7._zz8).defaultName;_s59._6p8=this._ai3(_635._6p8);return _s59;}var _wd2=_635._bo4;if (!_999._7y2(_wd2, ".//*[self::dimension | self::hierarchy | self::member]")){return null;}var _ln5=_999._7y2(_wd2, "package");var _ne4=_999._7y2(_wd2, "folder");_ie9._6z(_s59, _ln5, {"name":"_yz8","description":"_9b5","screenTip":"_799"});var _ja3=_ne4.cloneNode(true);var nl=_999._mw5(_ja3, ".//hierarchy[@rootMUN][@multiRoot='0']");var d=_ja3.ownerDocument;for(var i=0; i');}var _pq5=_ni5.join("");if(_ie7.length==1){return '' + _pq5 + '';}return '' + _pq5 + "";};var _5q2=null;_q57.prototype._c72=function(_w55){if(!_5q2){_5q2={};var d=_ie9._795(_jp1);var nl=_999._mw5(d, "//RequestTemplate");for(var i=0; i