123456 |
- // 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<nl.length;++i){var n=nl.item(i);var _yv8=_999._7y2(n, "level");var _zy6=_999._7y2(n, "ancestor::dimension");var _ad9=n.getAttribute("rootMUN");var _ci8=_cy5._mk4(d, "member");_ci8.setAttribute("_9d8", "true");_ci8.setAttribute("memberCaption", n.getAttribute("rootCaption"));_ci8.setAttribute("memberUniqueName", _ad9);_ci8.setAttribute("_ref", _ad9);_ci8.setAttribute("_path", _ad9);_ci8.setAttribute("dimensionUniqueName", _zy6.getAttribute("_ref"));_ci8.setAttribute("hierarchyUniqueName", n.getAttribute("_ref"));if(_yv8){_ci8.setAttribute("levelUniqueName", _yv8.getAttribute("_ref"));}n.parentNode.replaceChild(_ci8, n);}_ie9._mo(_999._mw5(_ja3, ".//dimension[* and not(*[position()=2])]"));_ie9._hw5(_ja3, ".//level");this._6b1(_s59, _ja3, _v38);return _s59;};function _m34(_x45){if(_x45.match(/(.*\])\.\[.*\]$/)){return RegExp.$1;}return "";};_q57.prototype._6b1=function(_k59,_m49,_v38){var _5e7=[];var nl=_999._mw5(_m49, "*");for(var i=0; i<nl.length;++i){var _mv8=nl.item(i);var _b07=(_mv8.nodeName=="member")?this._i03(_mv8, _v38):this._ha(_mv8);switch(_b07._009){case "member":break;case "dimension":if(_b07._724=="measure"){break;}_b07._009="folder";this._6b1(_b07, _mv8, _v38);break;case "hierarchy":_b07._009="hierarchyRootMembers";_b07._il6=_v38._6b5[_m34(_b07._ho4)];this._6b1(_b07, _mv8, _v38);break;case "namedSet":this._p([_b07],_v38);break;default:this._6b1(_b07, _mv8, _v38);break;}_5e7.push(_b07);}_k59._xc7._tm3=true;if(_5e7.length){this._c41[_k59._lv4]=Q.resolve(_5e7);}};_q57.prototype._dd=function(){if(this._25){return this._25;}if(!_ss7._jr7("UsePartialModelRequest")){this._25=this._kj3().then(function(_kp5){return this._y5(_kp5, _9a);}.bind(this));return this._25;}var _ow8=Q.defer();var _w68=this._c72("DimensionalModelRequest").replace(/@START_AT_PATH@/g, this._t34(""));this._31(_w68).done(function(_e48){var _635={};var _sw8=_e48._cr7();if(_sw8){_635._6p8=_sw8;}else{_635._bo4=_e48._1r1();}_ow8.resolve(_635);}.bind(this));this._25=_ow8.promise;return this._25;};_q57.prototype._kj3=function(){if(this._7n1){return this._7n1;}var _ve2="";if(_ss7._jr7("PassDatasourceSignonsOnModelRootRequest")){var _de8=_t77._xs();if(_de8.length){var _yg9=new _y65();for(var i=0; i<_de8.length;++ i){var _2x8=_de8[i];_yg9._nz8("&");_yg9._nz8(_2x8.name);_yg9._nz8("=");_yg9._nz8(encodeURIComponent(_2x8.value[0].use));}_ve2=_yg9._ms7();}}this._7n1=this._2l3("GET","v1/metadata/fmmodels", "path=" + encodeURIComponent(this._2d7._zz8) + (this._yt7()?"&cached=true":"") + "&locale=" + encodeURIComponent(this._fq2) + _ve2, _6i6._9k);return this._7n1;};_q57.prototype._y5=function(_e48,_8y4){var _uj8={};var _sw8=_e48._cr7();if(_sw8){_uj8._6p8=_sw8;return _uj8;}var _535=_e48._0f3();var _635=_535&&_535.data&&_535.data[_8y4];var _or5=_635&&_635.metadata;if(!_or5){_uj8._6p8=new _3z8(_4l6._m67("IDS_CCHL_BAD_MA_RESPONSE"), _535?JSON.stringify(_535):"");return _uj8;}var d=_ie9._yj6(null, _or5);if(!d){_uj8._6p8=new _3z8(_4l6._m67("IDS_CCHL_BAD_MA_RESPONSE"), _or5);return _uj8; }_uj8._bo4=d.documentElement;return _uj8;};_q57.prototype._9i3=function(_635){var _s59=new _qt5();_s59._009="model";_s59._nr6=this._2d7._zz8;if(_635._6p8){_s59._yz8=_fa5._885(this._2d7._zz8).defaultName;_s59._6p8=this._ai3(_635._6p8);return _s59;}var _wd2=_635._bo4;var _ln5=_999._7y2(_wd2, "package");var _ne4=_999._7y2(_wd2, "folder");_ie9._6z(_s59, _ln5, {"name":"_yz8","description":"_9b5","screenTip":"_799"});_s59._xc7._ad8=_ne4.getAttribute("_path");this._c41[_s59._lv4]=Q.resolve(this._rt1(this._xp4(_ne4)));return _s59;};_q57.prototype._e22=function(){if(this._8x){return this._8x;}this._8x=this._dd().then(function(_635){var _uj8={_vx5:[],_6b5:{}};if(_635._6p8){this._8a7(_635._6p8);return _uj8;}var _wd2=_635._bo4;var _2o5=_999._mw5(_wd2, ".//dimension");if(_2o5.length==0){return null;}for(var _sg9=0; _sg9<_2o5.length;++_sg9){var _zy6=_2o5.item(_sg9);var _n07=this._ha(_zy6);_uj8._6b5[_n07._ho4]=_n07;_uj8._vx5.push(_n07);var _iw4=_n07._va5=[];var _k15=_999._mw5(_zy6, ".//hierarchy");for(var _tg9=0; _tg9<_k15.length;++_tg9){var _3z6=_k15.item(_tg9);var _u07=this._ha(_3z6);_u07._il6=_n07;_uj8._6b5[_u07._ho4]=_u07;_iw4.push(_u07);var _7e8=_u07._ja8=[];var _f38=_999._mw5(_3z6, ".//level");for(var _ug9=0; _ug9<_f38.length;++_ug9){var _yv8=_f38.item(_ug9);var _xw8=this._ha(_yv8);_xw8._jl6=_u07;_uj8._6b5[_xw8._ho4]=_xw8;_7e8.push(_xw8);}}}return _uj8;}.bind(this));return this._8x;};_q57.prototype._xw2=function(_n25){var _c48=this._c41[_n25._lv4];if(_c48){return _c48;}var _ow8=Q.defer();var _w68=this._c72("ModelItemsRequest").replace(/@START_AT_PATH@/g, this._t34(_n25._xc7._ad8)).replace( "@DEPTH@", "2" ).replace( "@CONSTRAINTS@", "" );this._ov1(_w68).done(function(_e48){var _sw8=_e48._cr7();if(_sw8){this._8a7(_sw8);_ow8.resolve([]);return;}var _5e7;var _1t2=_e48._1r1();var _0k7=_999._7y2(_1t2, "*");_5e7=this._rt1(this._xp4(_0k7));this._fa(_5e7).done(function(_583){_ow8.resolve(_583);});}.bind(this));var _c48=this._c41[_n25._lv4]=_ow8.promise;return _c48;};_q57.prototype._292=500;_q57.prototype._aa1=function(){var _ma6;var _na6=_fa5._885(this._2d7._zz8).memberDisplayCountLimit;var _td4=_ss7._jr7("MemberDisplayCountLimit");if(_na6&&_td4){_ma6=(_na6<_td4)?_na6:_td4;}else{_ma6=_na6||_td4||50;}return(_ma6<this._292)?this._292:_ma6+1;};_q57.prototype._tz3=function(_n25){var _c48=this._4y1[_n25._lv4];if(_c48){return _c48;}var _ow8=Q.defer();var _w68=this._c72("RootMembersRequest").replace(/@MA_REF@/g, _jp8._s77(_n25._ho4.replace(/\$/g, "$$$$"))).replace("@RESULTCOUNT@", this._aa1()).replace( "@DEPTH@", "2" ).replace( "@CONSTRAINTS@", "" );Q.all([this._ov1(_w68), this._e22()]).spread(function(_e48,_v38){var _sw8=_e48._cr7();if(_sw8){this._8a7(_sw8);_ow8.resolve([]);return;}_ow8.resolve(this._p44(_e48._1r1(), _v38));}.bind(this)).done();var _c48=this._4y1[_n25._lv4]=_ow8.promise;return _c48;};_q57.prototype._jl4=function(_ad9){var _kj8=this._ru4[_ad9];if(_kj8){return Q.resolve(_kj8);}return this._mh2(_ad9).then(function(){return this._ru4[_ad9]||null;}.bind(this));};_q57.prototype._se3=function(_ad9){return this._jl4(_ad9).then(function(_kj8){return _kj8._pl6?this._jl4(_kj8._pl6):null;}.bind(this));};_q57.prototype._m22=function(_ad9){var _c48=this._er[_ad9];if(_c48){return _c48;}var _ow8=Q.defer();_c48=this._er[_ad9]=_ow8.promise;this._se3(_ad9).done(function(_sj8){if(_sj8){this._m22(_sj8._699).done(function(_z73){_ow8.resolve(_z73.concat(_sj8));}.bind(this));}else{_ow8.resolve([]);}}.bind(this));return _c48;};_q57.prototype._mh2=function(_ad9){var _c48=this._bx[_ad9];if(_c48){return _c48;}var _ow8=Q.defer();var _w68=this._c72("MembersRequest").replace(/@MA_REF@/g, _jp8._s77(_ad9.replace(/\$/g, "$$$$"))).replace("@RESULTCOUNT@", this._aa1()).replace( "@DEPTH@", "2" ).replace( "@CONSTRAINTS@", "" );Q.all([this._ov1(_w68), this._e22()]).spread(function(_e48,_v38){var _sw8=_e48._cr7();if(_sw8){this._8a7(_sw8);_ow8.resolve([]);return;}var _ha3=_e48._1r1();var _y25=this._xq4(_999._7y2(_ha3, "member"), _v38);var _5e7=this._p44(_ha3, _v38);if(_5e7.length==0){_y25._v14=true;}_ow8.resolve(_5e7);}.bind(this)).done();var _c48=this._bx[_ad9]=_ow8.promise;return _c48;};_q57.prototype._vi2=function(_n25,_7o7,_m37,_qa4,_3e1){return this._pm4(_n25._ho4, _7o7, _m37, _qa4, _3e1);};_q57.prototype._pm4=function(_ad9,_7o7,_m37,_qa4,_3e1){var _ow8=Q.defer();var _w68=this._c72("MembersRequest").replace(/@MA_REF@/g, _jp8._s77(_ad9.replace(/\$/g, "$$$$"))).replace("@RESULTCOUNT@", this._aa1()).replace( "@DEPTH@", _3e1?"":"2" ).replace( "@CONSTRAINTS@", this._5u1(_7o7, "memberCaption", _m37, _qa4) );Q.all([this._ov1(_w68), this._e22()]).spread(function(_e48,_v38){var _sw8=_e48._cr7();if(_sw8){this._8a7(_sw8);_ow8.resolve([]);return;}_ow8.resolve(this._p44(_e48._1r1(), _v38));}.bind(this)).done();return _ow8.promise;};_q57.prototype._6y2=function(_n25,_7o7,_m37,_qa4,_3e1){var _ow8=Q.defer();var _al8=_n25._xc7._ad8;var _w68=this._c72("ModelItemsRequest").replace(/@START_AT_PATH@/g, this._t34(_al8)).replace("@RESULTCOUNT@", this._aa1()).replace( "@DEPTH@", _3e1?"":"2" ).replace( "@CONSTRAINTS@", this._5u1(_7o7, "name", _m37, _qa4) );this._ov1(_w68).done(function(_e48){var _sw8=_e48._cr7();if(_sw8){this._8a7(_sw8);_ow8.resolve([]);return;}var _5e7=[];var _1t2=_e48._1r1();var _0k7=_999._7y2(_1t2, "*");var nl=_ie9._mw5(_0k7, ".//", _9e5);for(var i=0; i<nl.length;++i){_5e7.push(this._ha(nl.item(i)));}this._fa(_5e7).done(function(_583){_ow8.resolve(_583);});}.bind(this));return _ow8.promise;};_q57.prototype._xq4=function(_ci8,_v38){var _k59=this._ru4[_ci8.getAttribute("memberUniqueName")];if(!_k59){_k59=this._i03(_ci8, _v38);this._ru4[_k59._699]=_k59;}return _k59;};_q57.prototype._p44=function(_ha3,_v38){var _px7=[];var nl=_999._mw5(_ha3, "*/member");for(var i=0; i<nl.length;++i){var _ci8=nl.item(i);_px7.push(this._xq4(_ci8, _v38));}return _px7;};_q57.prototype._i03=function(_ci8,_v38){var _k59=new _qt5();_k59._009="member";_ie9._6z(_k59, _ci8, {"memberCaption":"_yz8","memberUniqueName":"_699","parentUniqueName":"_pl6","currencyCode":"_eo4"});_k59._ho4=_k59._699;_k59._7o4=_ci8.getAttribute("_9d8")=="true";var _9d9=_ci8.getAttribute("levelUniqueName");var _3d9=_ci8.getAttribute("hierarchyUniqueName");if(_9d9){_k59._7p8=_v38._6b5[_9d9];}_k59._jl6=_v38._6b5[_3d9];return _k59;};_q57.prototype._xp4=function(_m49){return _ie9._mw5(_m49, "", _9e5);};_q57.prototype._rt1=function(nl){var _5e7=[];for(var i=0;i<nl.length;i++){var n=nl.item(i);var _k59=this._ha(n);_5e7.push(_k59);var _4o5=this._xp4(n);if(_4o5.length){this._c41[_k59._lv4]=Q.resolve(this._rt1(_4o5));}}return _5e7;};_q57.prototype._fa=function(_y56){var _lx4=false;for(var i=0; !_lx4&&i<_y56.length;++i){var _x07=_y56[i];switch(_x07._009){case "hierarchy":case "level":case "memberProperty":case "namedSet":case "measure":case "textMeasure":_lx4=true;}}if(_lx4){return this._e22().then(function(_v38){this._p(_y56, _v38);return Q.resolve(_y56);}.bind(this));}return Q.resolve(_y56);};_q57.prototype._p=function(_y56,_v38){for(var i=0; i<_y56.length;++i){var _x07=_y56[i];switch(_x07._009){case "hierarchy":_x07._il6=_v38._6b5[_m34(_x07._ho4)];break;case "level":_x07._jl6=_v38._6b5[_m34(_x07._ho4)];break;case "memberProperty":var _sj8=_v38._6b5[_m34(_x07._ho4)];if(_sj8){if(_sj8._ja8){_x07._jl6=_sj8;}else{_x07._7p8=_sj8;}}break;case "namedSet":_x07._jl6=_v38._6b5[_x07._t99];break;case "measure":case "textMeasure":var _n07=null;var _s37=_m34(_x07._ho4);while(_s37){_n07=_v38._6b5[_s37];if(_n07){break;}_s37=_m34(_s37);}if(!_n07){alert("Measure that does not belong to a dimension: " + _x07._yz8);}_x07._il6=_n07;break;}}};_q57.prototype._ha=function(_ai8){var _k59=new _qt5();_k59._009=_ai8.nodeName;_ie9._6z(_k59, _ai8, {"name":"_yz8","description":"_9b5","screenTip":"_799"});_ie9._6z(_k59._xc7, _ai8, {"_path":"_ad8"});switch(_k59._009){case "dimension":_k59._ho4=_ai8.getAttribute("_ref");if(_ai8.getAttribute("type")=="measure"){_k59._724="measure";}break;case "folder":_k59._wa5=Boolean(Number(_ai8.getAttribute("isNamespace")));case "measureFolder":case "queryItemFolder":case "hierarchyFolder":_k59._009="folder";break;case "querySubject":_k59._ho4=_ai8.getAttribute("_ref");break;case "queryItem":this._o21(_k59, _ai8);break;case "calculation":var _wm7=_ai8.getAttribute("calcType");switch(_wm7){case "namedSet":this._5b1(_k59, _ai8);break;case "macros":_k59._009="macro";_k59._ho4=_ai8.getAttribute("_ref");break;default:_k59._x14=true;this._o21(_k59, _ai8);break;}break;case "measure":_k59._ho4=_ai8.getAttribute("_ref");_k59._hh3=_ai8.getAttribute("isHierarchical")=="1";var _2n7=_ai8.getAttribute("datatype");var _vk5=_2n7?_mx5[_2n7]:undefined;if(_vk5!==undefined){_k59._n87=_ns1[_vk5];if(_vk5==_mx5._aa8){_k59._009="textMeasure";}}break;case "hierarchy":_k59._ho4=_ai8.getAttribute("_ref");_k59._hu=_ai8.getAttribute("parentChild")=="1";break;case "hierarchyNamedSet":this._5b1(_k59, _ai8);break;case "level":case "filter":_k59._ho4=_ai8.getAttribute("_ref");break;default:console.warn("Unrecognized model item type: " + _k59._009);};return _k59;};_q57.prototype._o21=function(_k59,_ai8){_k59._ho4=_ai8.getAttribute("_ref");if(_ai8.getAttribute("currency")){_k59._xx5=true;}_ie9._6z(_k59, _ai8, {"displayType":"_ab5","description":"_9b5","promptType":"_9y5","promptDisplayItemRef":"_491","promptUseItemRef":"_3k2","promptFilterItemRef":"_2i1","promptCascadeOnRef":"_bt1"});var _2n7=_ai8.getAttribute("datatype");var _vk5=_2n7?_mx5[_2n7]:undefined;if(_vk5!==undefined){_k59._n87=_ns1[_vk5];}var _gy8=_ai8.getAttribute("usage");switch(_gy8){case "identifier":case "attribute":_k59._009=_gy8;break;case "fact":_k59._009=_gy8;var _669=_ai8.getAttribute("regularAggregate");switch(_669){case "sum":_669="total";break;case "min":_669="minimum";break;case "max":_669="maximum";break;case "avg":_669="average";break;case "total":case "minimum":case "maximum":case "average":case "count":case "calculated":case "countDistinct":case "standardDeviation":case "variance":case "median":case "automatic":break;default:_669="";break;}if(_669){_k59._ph3=_669;}break;default:console.log("Unknown metadata usage(" + _gy8 + ") for: " + _k59._yz8);_k59._009="attribute";break;}if(_ai8.getAttribute("_isMemberProperty")=="true"){_k59._009="memberProperty";}_k59._5o4=false;};_q57.prototype._5b1=function(_k59,_ai8){_k59._009="namedSet";_k59._ho4=_ai8.getAttribute("_ref");_k59._t99=_ai8.getAttribute("hierarchies");};_q57.prototype._5u1=function(_7o7,_t17,_m37,_qa4){if(!_7o7){return "";}var _ie7=(_m37=="exact")?[_7o7]:_7o7.split(/\s+/g);var _ni5=[];for(var i=0; i<_ie7.length;++i){var _yv3=_jp8._s77( _ie7[i].replace( /'/g, "''" ) );var _9p1;switch(_m37){case "starts-with":case "ends-with":_9p1=_m37;break;default:_9p1="contains";break;}_ni5.push('<Constraint Condition="[');_ni5.push(_9p1);_ni5.push('(@');_ni5.push(_t17);_ni5.push(','');_ni5.push(_yv3);_ni5.push('')]"');if(!_qa4){_ni5.push(' CaseSensitive="false"'); }_ni5.push('/>');}var _pq5=_ni5.join("");if(_ie7.length==1){return '<Constraints>' + _pq5 + '</Constraints>';}return '<Constraints><Blockconstraint Operation="' + ((_m37=="contains-all")?"AND":"OR") + '">' + _pq5 + "</Blockconstraint></Constraints>";};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<nl.length;++i){var n=nl.item(i);_5q2[n.getAttribute("name")] = _999._co8(_999._7y2(n, "*")).replace(/START_AT_PATH=""/g, "@START_AT_PATH@" );}}var _w68=_5q2[_w55];return _w68.replace(/@MODEL@/g, _jp8._s77(this._2d7._zz8.replace(/\$/g, "$$$$"))).replace("@AUTHORING_LOCALE@", _jp8._s77(this._fq2));};_q57.prototype._ai3=function(_2j8){return {_go4:_2j8._le3(),_fo4:_2j8._ke3()};};_q57.prototype._k91=function(_jz6,_gc3,_5s2){if(!_ss7._jr7("UsePartialModelRequest")){return this._kj3().then(function(_kp5){var _635=this._y5(_kp5, _5s2);if(_635._6p8){this._8a7(_635._6p8);return null;}return _635._bo4?_999._7y2(_635._bo4, _jz6):null;}.bind(this));}var _ow8=Q.defer();var _w68=this._c72(_gc3).replace(/@START_AT_PATH@/g, this._t34(""));this._31(_w68).done(function(_e48){var _ki8=null;var _sw8=_e48._cr7();if(_sw8){this._8a7(_sw8);}else{var _5t2=_e48._1r1();_ki8=_5t2?_999._7y2(_5t2, _jz6):null;}_ow8.resolve(_ki8);}.bind(this));return _ow8.promise;};_q57.prototype._wh2=function(){if(!this._d41){this._d41=this._k91("functionsRoot", "QueryFunctions", _yo);}return this._d41;};_q57.prototype._432=function(){if(!this._gx){this._gx=this._k91("functionsRoot", "ReportFunctions", _4k);}return this._gx;};_q57.prototype._kh2=function(){if(!this._741){this._741=this._k91("functionsRoot", "MacroFunctions", _xo);}return this._741;};_q57.prototype._gg1=function(){if(!this._pm){this._pm=this._k91("self::*", "ModelParameterMap", _z6);}return this._pm;};_q57.prototype._yz=function(){if(!this._0e){this._0e=this._k91("self::*", "Operations", _rh1).then(function(_4k7){if(_4k7){return _sa8._fe(_ie9._775(null, _999._mw5(_4k7, ".//function[@qosLevel='OK' or @qosLevel='limited' or @qosLevel='restricted']/@id")));}return {};}.bind(this));}return this._0e;};_q57.prototype._rl4=function(){if(!this._ab2){this._ab2=this._k91("self::*", "Operations", _rh1).then(function(_4k7){if(_4k7){var _2e6={};var nl=_999._mw5(_4k7, "*[@value]");for(var i=0; i<nl.length;++i){var n=nl.item(i);_2e6[n.nodeName]=n.getAttribute("value");}return _2e6;}return {};}.bind(this));}return this._ab2;};_q57.prototype._n71=function(){if(!this._rh){this._rh=this._dd().then(function(_635){if(_635._6p8){this._8a7(_635._6p8);return {};}var _w28=_999._7y2(_635._bo4, "package");var _sy1=["isNullSuppressionAllowed","isMultiEdgeNullSuppressionAllowed","isAccessToNullSuppressionOptionsAllowed"];var _948={};for(var i=0; i<_sy1.length;++i){var _ol8=_sy1[i];_948[_ol8]=_w28.getAttribute(_ol8)!="false";}return _948;}.bind(this));}return this._rh;};_q57.prototype._az3=function(){return Q.resolve([]);};_q57.prototype._ov1=function(_w68){var _ow8=Q.defer();var _j18=this._yl3.length;var _e48=new _8d3({_c42:function(_e48){this._yl3[_j18]=null;_ow8.resolve(_e48);}.bind(this),_si2:function(_e48){this._yl3[_j18]=null;_e48._114("IDS_CCHL_REQUEST_CANCELLED", null, "IDS_CCHL_REQUEST_CANCELLED");_ow8.resolve(_e48);}.bind(this)}, _w68);this._yl3.push(_e48);_e48._v89();return _ow8.promise;};_q57.prototype._2l3=function(_el8,_rd9,_g69,_zg6){var _ow8=Q.defer();var _j18=this._yl3.length;var _e48=new _zt5({_c42:function(_e48){this._yl3[_j18]=null;_ow8.resolve(_e48);}.bind(this),_si2:function(_e48){this._yl3[_j18]=null;_e48._114("IDS_CCHL_REQUEST_CANCELLED", null, "IDS_CCHL_REQUEST_CANCELLED");_ow8.resolve(_e48);}.bind(this)}, _el8, _rd9, _g69, _zg6);this._yl3.push(_e48);_e48._124=_ss7._jr7("ModelRootRequestDelay");_e48._cf(_6i6._v81);_e48._v89();return _ow8.promise;};_q57.prototype._dn=function(){_109._wq7(this._yl3, "_7z8");this._yl3=[];};_q57.prototype._8a7=function(_sw8){if(!this._re5&&_sw8._085()!="IDS_CCHL_REQUEST_CANCELLED"){var _4p7='error', _6y8="IDS_CCHL_INVALID_MODEL_INFO";if(Application.SharedState.Get("isViewer")){_4p7='warning';_6y8="IDS_CCHL_INVALID_MODEL_WARNING";}Application._m77(_4l6._m67(_6y8), {'type': _4p7});console.error(_sw8._le3()+" (" + _sw8._ke3() + ")");this._re5=true;}};return _q57;});
|