// __SITE_CONFIG__ is defined in siteConfig.js.j2 declare global { interface Window { __SITE_CONFIG__: { [K in string]?: string } } } if (window.__SITE_CONFIG__ == null) { throw new Error("`window.__SITE_CONFIG__` must be defined."); } export const { requireLogin = false, rootUrl = '', rootElement = '', endpoint = '', projectId = '', webAppUrl = '', facebookUrl = '', twitterUrl = '', twitterUrl2 = '', youtubeUrl = '', redditUrl = '', vimeoUrl = '', communitySite = '', siteSearchServiceUrl = '', retainContainerContent = false, useEda = false, edaServiceUrl = '', edaEnableFullScreenApps = true, edaSingleAppMode = undefined, useUserDatasetsWorkspace = false, datasetImportUrl = '', showUnreleasedData = false, } = window.__SITE_CONFIG__; const edaExampleAnalysesAuthorNum = parseInt(window.__SITE_CONFIG__.edaExampleAnalysesAuthor ?? '', 10); export const edaExampleAnalysesAuthor = Number.isNaN(edaExampleAnalysesAuthorNum) ? undefined : edaExampleAnalysesAuthorNum;