// 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. function _hv2(_vy6, _pe4, _vl7){_be9._452("_1u5");_hv2.baseConstructor.call(this, _pe4, _vl7);this._yk2();this._dq6=_vy6;this._sa7=[];this._a99();this._fu7();};_9t7._v88(_hv2, _1k4);_hv2.prototype._1o8=function(){while(this._sa7.length>0){this._sa7.pop()._xp8();}if(this._bn3){document.body.removeChild(this._bn3);this._bn3=undefined;}};_hv2.prototype._yk2=function(){_hv2.superClass._yk2.call(this);this._dn1=this._j74.getAttribute("baseModelSearchPath")||"";};_hv2.prototype._a99=function(){var _vy6=this._dq6;_vy6.innerHTML ='
' +'
' +'
' +'' +'
'+'' +'
';this._to2=_vy6.getElementsByClassName("clsSelectFileInput")[0];this._uh3(this._to2, "change", this._533);};_hv2.prototype._uh3=function(_m49,_t58,_3w6){var _909=_3w6.bind(this);_m49.addEventListener(_t58, _909);this._sa7.push({_xp8: function(){_m49.removeEventListener(_t58, _909);}});};_hv2.prototype._533=function(evt){var _dt8=this._fu7();if(_dt8===true){var _ln7=this._to2.value, _012="";var _jw4=_ln7.split("."), _6b9=_jw4.length-1;if((_jw4[_6b9]==="xml")||(_jw4[_6b9]==="XML")){_012="XML";}else if((_jw4[_6b9]==="xls")||(_jw4[_6b9]==="XLS")){_012="Excel2003";}else if((_jw4[_6b9]==="xlsx")||(_jw4[_6b9]==="XLSX")){_012="Excel2003";}else if ((_jw4[_6b9]==="csv") ||(_jw4[_6b9]==="CSV")){_012="CSV";}else{_012="CSV";}var _959=this._dq6.firstChild;var _5l8='';_5l8 += "" + _jp8._s77( this._qr6 ) + "";_5l8 += "" + _jp8._s77( _ln7 ) + "";_5l8 += "" + _jp8._s77( this._dn1 ) + "";_959.inSpec.value=_5l8+"";this._5e5(_959);_959.action=_099._6y5+'/metadataUIService?pid=pdm_process&c=processPersonalData';_959.submit();}};_hv2.prototype._fu7=function(){var _hy8=this._to2.value;var _dt8=true;if(this._gb7){if(this._s26){_dt8=this._s26(this._q67());}else{_dt8=(_hy8&&_hy8.length>0);}}if(_dt8){if(!this._qm3){this._to2.parentNode.style.padding="1px";this._to2.style.border="none";}this._0a2=true;if(this._0d7&&this._0d7._53){this._0d7._53(this);}}else{if(!this._qm3){this._to2.parentNode.style.padding="0px";this._to2.style.border="1px solid #D64427";}this._0a2=false;if(this._0d7&&this._0d7._n1){this._0d7._n1(this);}}if(this._0d7&&this._0d7._gc){this._0d7._gc(this);}return _dt8;};_hv2.prototype._z22=function(){return new _1u5(false, this._to2.value);};_hv2.prototype._qb5=function(){var _un7='IFrame'+Math.floor(Math.random()*11111);this._bn3=document.createElement('DIV');this._bn3.innerHTML='';document.body.appendChild(this._bn3);this._uh3(this._bn3.firstChild, "load", this._j54);return _un7;};_hv2.prototype._5e5=function(_959){var _un7=this._qb5();_959.setAttribute('target', _un7);return true;};_hv2.prototype._j54=function(_un7){};_hv2.prototype._rf1=function(){this._to2.value="";this._fu7();};_hv2.prototype._567=function(_le8){if(!_le8||_le8.length<1){this._bu5();}else{this._to2.value=_le8[0]["use"]||"";this._fu7();}};