// 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(["_ace","_bce","_l8j","text!reportstyles/palettes.json","_og4","haljs!hal/_6ce.js","haljs!hal/_m3b.js","haljs!cchl/_m47.js","haljs!cchl/_oa6.js"], function(_ace,_bce,_l8j,_myc,_lyc){"use strict";function _z3b(_waf, _8ri, _d78, _wfc){this._7we=_waf;this._fcd=_waf.appendChild(document.createElement("DIV"));this._g3i=_8ri;this._v3n=_8ri.getAttribute("roid");this._fkg=_erh._9kl(this._v3n);this._ttb=_wfc;this._lpk=true;this._zo6=new _m47(_8ri.selectSingleNode(".//div[@rs_defaultFormatTests]"));this._nze={};this._fd3={};this._qj6(_frh._c6j("IDS_VISADAPTER_LOADING"));this._3s5=Q.defer();this._ot7=_d78;if(this._ot7){this._ot7._xk3(this._v3n, this._ph6.bind(this));}this._lkm=this._fkg.getAttribute("type");this._x0f=_z3b._pib(this._lkm);this._yhd=this._x0f.adapterId;this._opl=!this._fkg.selectSingleNode("vcDataSets/vcDataSet[@refDataStore]");this._434={"rave-library-tiledmapV2,tiledmapV2": {"customPolygonError": this._ea3.bind(this)}};if(!this._do7(this._fkg)){return;}this._ywb=this._lkm+" " + this._v3n; var _t9l=new _bce(this._fkg, _wfc);_t9l._r5g().done(function(_uuk){if(this._cej){return;}this._dkb(_uuk);setTimeout(_z3b._rcg.bind(_z3b, this._yhd, this._5i6.bind(this)), 0); }.bind(this), this._gne.bind(this)); };_z3b.prototype._fdm=function(){if(this._ot7){this._ot7._042(this._v3n);this._ot7=null;}if(this._sea){this._sea.Destroy();this._sea=null;}this._ze5();if(this._fcd){this._fcd.parentNode.removeChild(this._fcd);this._fcd=null;}this._cej=true;};_z3b.prototype._tqh=function(_3zk){this._lpk=_3zk;};_z3b._8p1=function(_7en,_p8h){var _r15={};var nl=_p8h.selectNodes("vcDataSets/vcDataSet[@refDataStore]");for(var i=0;i0);}.bind(this));};_z3b.prototype._gne=function(_xvm){this._8ej=true;this._2dj(_xvm);};_z3b.prototype._2dj=function(_xvm,_bqj){this._ze5();if(!this._caa){this._fcd.style.display="none";this._caa=this._7we.insertBefore(document.createElement("DIV"), this._7we.firstChild);this._caa.className="clsVizErrorMessage";this._caa.style.height=this._bba+"px";this._caa.style.width=this._zqb+"px";}if(_bqj){_4qn._1je(this._caa.appendChild(document.createElement("DIV")), _xvm);this._caa.title+= _xvm+"\n";}else{_4qn._1je(this._caa, _xvm);this._caa.title=_xvm;}};_z3b.prototype._1uh=function(){if(this._caa){this._caa.parentNode.removeChild(this._caa);this._caa=null;this._fcd.style.display="";}};_z3b.prototype._rm3=function(){return this._sea.GetCurrentVisualizationState();};_z3b.prototype._0u=function(){if(!this._db1){var _z1m=this._fkg.selectSingleNode("style/dataFormat");this._db1=this._zo6._sp1([_z1m], true);}return this._db1;};_z3b.prototype._tt1=function(value,rowIndex,fieldId,dataSetId){if(fieldId){var _e9l=this._v0f[dataSetId];if(_e9l){return _e9l._ac4(value, fieldId, rowIndex);}}return this._yh1(value);};_z3b.prototype._yh1=function(_8pm){var _uxm=((_8pm!==null)&&!isNaN(_8pm))?_8pm.toString(10):"";if(_uxm==""){return "";}if(!this._3b1[_uxm]){this._3b1[_uxm]=_oa6._6ie(_uxm)._y1g(this._0u());}return this._3b1[_uxm];};_z3b.prototype._bj6=function(){if(_tm8._ur4){var _4an=this._g3i.selectSingleNode("span[@rs_alternateText]");if(_4an&&_4an.text){this._sea.SetAccessibilityDescription(_4an.text);}}};_z3b.prototype._heg=function(){if(!this._919){return;}var _e9l=this._7v7[this._919.GetDataSetIdx()];var _d5n=this._919.GetRows();if(_d5n&&_e9l&&_e9l._8r9()){var _ytm=this._919?this._919.GetColor():null;var _hrf=_ytm?( "rgb(" + _ytm.r + "," + _ytm.g + "," + ( ( _ytm.b===undefined )?"1.0":_ytm.b ) + ")" ):"#aaaaaa";var _kkn=this._6xe+(_o7g._kdb?-12:2);var _v7n=this._ddd+(_o7g._kdb?-16:8);var _pqf=_e9l._e8b(this._919.GetRows());if(_pqf){_l8j._xab(_hrf);_l8j._pbb(_pqf);if(_l8j._47j()&&_l8j._0ll(this)){_l8j._fem(_kkn, _v7n, _o7g._kdb);}else{_l8j._zjk(this);_l8j._jgn();_l8j._f6g(_kkn, _v7n, _o7g._kdb);}}else{this._5cg();}}};_z3b.prototype._5cg=function(){_l8j._1gn();};_z3b._9o=function(){if(!this._fu4||!this._rd3){this._fu4={};this._rd3={};var _m68=this._7h5();var _3mj=_m68.adapters;for(var ia=0; ia<_3mj.length;++ia){var _t8l=_3mj[ia];this._fu4[_t8l.id]=_t8l;var _gpg=_t8l.chartTypes;for(var i=0; i<_gpg.length;++i){var _wec=_gpg[i];this._rd3[_wec.id]=_wec;_wec.adapterId=_t8l.id;}}}};_z3b._pib=function(_23j){var _e8k=_23j.split(",")[0];return {adapterId:"com.ibm.cognos.adapters.rave2.RAVEChartAdapter",location:_e8k+"/" + _e8k + ".min.js"};};_z3b._jhb=function(_uvi){return {location:"com.ibm.cognos.adapters.rave2.RAVEChartAdapter/visadapter.js"};};_z3b._7h5=function(){if(!this._at7){var _57e=_7ke._403("visImpl/manifest.json");this._at7=_plk._4kl(_57e);}return this._at7;};_z3b._js9=function(){var _m68=this._7h5();var _3mj=_m68.adapters;if(_3mj){for(var i=0; i<_3mj.length;++i){setTimeout(this._rcg.bind(this, _3mj[i].id), 0);}}};_z3b._rcg=function(_uvi,_f18){var _gf9={lang:_qgn._5eb,useRave2Interactions:true};var _lnf=this._jhb(_uvi);var _fh9=_gyc._ah8()+"/irot/visImpl/adapters/" + _lnf.location;require([_fh9],function(_6dh){_6dh.Initialize(_uvi, _fh9, _gf9).then(function(){this._84a(_uvi, _6dh, _f18);}.bind(this)).catch(function(_fbh){this._84a(_uvi, _6dh, _f18, _fbh);}.bind(this)).done(); }.bind(this));};_z3b._84a=function(_uvi,_6dh,_f18,_fbh){if(_f18){_f18(_6dh, _fbh);}};_z3b.prototype._dkb=function(_uuk){ for(var i=0;i<_uuk.length;i++){var _t9l=_uuk[i];switch(_t9l.name){case "data.region":this._u0f.properties["region.mapData"]=_t9l.data;break;case "data.point":this._u0f.properties["point.mapData"]=_t9l.data;break;}if(!this._u0f.properties["hideGeoWarning"]&&(_t9l.ambiguous.length||_t9l.unmatched.length||_t9l.limited)){this._nze[_t9l.name]={ ambiguous: _t9l.ambiguous,unmatched: _t9l.unmatched,limited: _t9l.limited};}} };_z3b.prototype._ulb=function(_b6n){if(_b6n){if(!this._ypb){var _0xg=this._ypb=this._7we.appendChild(document.createElement("DIV"));_0xg.className="clsGeoWarning";_0xg.onclick=this._5q4.bind(this);_0xg.style.cursor="pointer";_0xg.innerHTML='';_0xg.appendChild(document.createElement("SPAN")).innerHTML = _frh._c6j( "IDS_GEODATA_WARNING" );this._bs2=this._7we.offsetWidth;this._7we.style.width=Math.max(this._7we.offsetWidth,(_0xg.offsetWidth+5))+ "px";}return;}if(this._ypb){this._7we.removeChild(this._ypb);this._7we.style.width=this._bs2+"px";this._ypb=null;}};_z3b.prototype._5q4=function(){_lyc._1em(this._lkm, true).then(function(_97m){_8fm._jgn( "_kmh", this._nze, _97m, { "atlas": {} } );}.bind(this)).done();};return _z3b;});