// Licensed Materials - Property of IBM // IBM Cognos Products: hal // (C) Copyright IBM Corp. 2003, 2017. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. var G_ResManager={};G_ResManager._hK4=G_HAL.M_sPath+"hal/res/hal_strings.dtd";G_ResManager._hJ21=G_HAL.M_sPath+"hal/res/cptf.xml";G_ResManager._h4M1=[];G_ResManager.F_AddListener=function(_hLN1){this._h4M1.F_PushUnique(_hLN1);};G_ResManager.F_RemoveListener=function(_hLN1){this._h4M1.F_RemoveItem(_hLN1);};G_ResManager.F_ClearResources=function(){if(this._hM81&&this._hM81.documentElement){U_XML.F_RemoveNodes(this._hM81.documentElement, "*");}};G_ResManager.F_LoadResources=function(_hV52,_hLN1,_hTO1){G_HAL.F_VerifyDependencies("C_MultiFileRequest");this._hKF=_hLN1;var a=G_HAL.F_GetFilesNotLoaded(_hV52);this._h3K=new C_MultiFileRequest(this, a, null, _hTO1);this._h3K.F_Send();};G_ResManager.F_AbortLoadResources=function(){if(this._h3K){this._h3K.F_Abort();this._h3K=null;}this._hKF=null;};G_ResManager.F_GetResourcesDoc=function(){return this._hM81?this._hM81:null;};G_ResManager.F_AddResourcesDoc=function(d,_h8A2){if(!d){return;}this._h4M1.F_CallEach( "F_ResManager_OnBeforeAddResourcesDoc", d, _h8A2?_h8A2:"" );if(!this._hM81){var _h982=U_XML.F_CreateDocument();_h982.appendChild(U_XML.F_ImportNode(_h982, d.documentElement));this._hM81=_h982;return;}this._hK(d);var _hLM1=this._hM81.selectSingleNode("/resources");var nl=d.selectNodes("/resources/*");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){_hLM1.appendChild(U_XML.F_ImportNode(d, nl.item(i)));}if(G_Debug.F_IsDebugEnabled()){var o={};var nl=_hLM1.selectNodes( ".//*[not(ancestor::xmlFragment)][not(ancestor::*[@isTemplate])][not(ancestor::*[self::treeView | self::listView])]/@id" );var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var _hJE2=nl.item(i).value;if(o[_hJE2]){alert( "Resources added with duplicate id: " + _hJE2 );break;}o[_hJE2]=true;}}};G_ResManager.F_AddResourceXML=function(_hTD2){var d=U_XML.F_LoadString(this, _hTD2, false, false);this.F_AddResourcesDoc(d);};G_ResManager._hK=function(d){var nl=d.selectNodes("/resources/propertySheetExtension");for(var i=0;i\n';}else{var d=U_XML.F_LoadStringWithDTD(this, _hX82, this.M_sStringTableDTD, true, false);this.F_AddStringsDoc(d, true);}G_HAL.F_AddFileToLoadedList(_h8A2);}}var _hLN1=this._hAM;if(_hLN1){this.F_AbortLoadStrings();if(_hLN1&&_hLN1.F_ResManager_OnStringsLoaded){_hLN1.F_ResManager_OnStringsLoaded(_hV52);}}};G_ResManager.F_Request_OnComplete=function(_hWU1){var _hW52=_hWU1.F_GetError();if(_hW52){G_HAL.F_AlertError(_hW52.F_GetErrorSummary()+"\n" + _hW52.F_GetErrorDetails());return;}var _hEZ=_hWU1.F_GetFileContents();var _hV52=_hWU1.F_GetFileNames();switch(_hWU1){case this._h3K:this._hS9(_hV52, _hEZ);break;case this._hGT:this._hRE(_hV52, _hEZ);break;}};G_ResManager.F_ApplyResStrings=function(_h5I){var nl=_h5I.querySelectorAll("[HAL_ids]");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var el=nl.item(i);var ids=el.getAttribute("HAL_ids");var s=el.innerText?this.F_GetOptionalString(ids):this.F_GetString(ids);if(s){el.innerText=s;}}var nl=_h5I.querySelectorAll("[HAL_idsTooltip]");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var el=nl.item(i);var ids=el.getAttribute("HAL_idsTooltip");var s=el.title?this.F_GetOptionalString(ids):this.F_GetString(ids);if(s){el.title=s;}}var nl=_h5I.querySelectorAll("[HAL_idsPlaceholder]");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var el=nl.item(i);el.setAttribute("placeholder", this.F_GetString( el.getAttribute( "HAL_idsPlaceholder" ) ) );}if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){var nl=_h5I.querySelectorAll("[HAL_idsAriaLabel]");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var el=nl.item(i);el.setAttribute( "aria-label", this.F_GetString( el.getAttribute( "HAL_idsAriaLabel" ) ) );}}};G_ResManager.F_GetOptionalString=function(ids){var _hV32=this._hN81(ids);if(!_hV32){return null;}if(arguments.length>1){return this._hL6(_hV32, arguments);}return _hV32.text;};G_ResManager.F_GetString=function(ids){var _hV32=this._hN81(ids);if(!_hV32){G_HAL.F_AlertError( "String ID not found: " + ids );return "---------";}if(arguments.length>1){return this._hL6(_hV32, arguments);}return _hV32.text;};G_ResManager._hN81=function(ids){if(!this._h4W||!ids){return null;}return this._h4W.nodeFromID(ids);};G_ResManager._hL6=function(_hV32,_hA82){var s="";for(var n=_hV32.firstChild;n;n=n.nextSibling){if(n.nodeName=="#text"){s+= n.text;}else if(n.nodeName=="param"){var sIndex=n.getAttribute("index");var iIndex=sIndex?parseInt(sIndex):1;s+= _hA82[iIndex];}}return s;};